@oscharko-dev/keiko 1.2.6 → 1.2.7

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 (172) hide show
  1. package/dist/ui/csp-hashes.json +8 -8
  2. package/dist/ui/static/404.html +1 -1
  3. package/dist/ui/static/__next.__PAGE__.txt +5 -5
  4. package/dist/ui/static/__next._full.txt +5 -5
  5. package/dist/ui/static/__next._tree.txt +1 -1
  6. package/dist/ui/static/_next/static/chunks/06hwq8_gunvuo.js +29 -0
  7. package/dist/ui/static/_next/static/chunks/0891-mvb901op.js +1 -1
  8. package/dist/ui/static/_next/static/chunks/{30-f39wg2ukb0.js → 09v8w4wuj4m1_.js} +2 -2
  9. package/dist/ui/static/_next/static/chunks/0alcm0tnx-n8-.js +1 -1
  10. package/dist/ui/static/_next/static/chunks/0c_k9ehs17w4l.js +1 -1
  11. package/dist/ui/static/_next/static/chunks/0kjv5jpoy_3wx.js +1 -1
  12. package/dist/ui/static/_next/static/chunks/0ob6quzp23sqe.js +1 -1
  13. package/dist/ui/static/_next/static/chunks/0squn2lq5smnf.js +1 -1
  14. package/dist/ui/static/_next/static/chunks/{3ks40owmq5dke.css → 0vqzhbpt7iewb.css} +10 -9
  15. package/dist/ui/static/_next/static/chunks/0xbqv2_0xajgv.js +1 -1
  16. package/dist/ui/static/_next/static/chunks/11186fkh5coce.js +2 -0
  17. package/dist/ui/static/_next/static/chunks/12ncxpwq54-k2.js +1 -1
  18. package/dist/ui/static/_next/static/chunks/14tr5ujuc_u34.js +1 -1
  19. package/dist/ui/static/_next/static/chunks/1daa_1zod-ndb.js +1 -1
  20. package/dist/ui/static/_next/static/chunks/{10-ixote6buhh.js → 1layk925byvud.js} +1 -1
  21. package/dist/ui/static/_next/static/chunks/1mxu3l7fz5yz1.js +1 -1
  22. package/dist/ui/static/_next/static/chunks/1nqe0rzxqwjkw.js +732 -0
  23. package/dist/ui/static/_next/static/chunks/1p6h98yn2nqtv.js +1 -1
  24. package/dist/ui/static/_next/static/chunks/{2bc_13-_upoqj.js → 1wsoxouji7eb9.js} +1 -1
  25. package/dist/ui/static/_next/static/chunks/20ij-phmydgc3.js +1 -1
  26. package/dist/ui/static/_next/static/chunks/{1xivtevfo8yzl.js → 2206mw-z43vyo.js} +1 -1
  27. package/dist/ui/static/_next/static/chunks/{3j_pd5g21st5o.js → 22pvivewswjat.js} +1 -1
  28. package/dist/ui/static/_next/static/chunks/{1293esxg_t46n.css → 272m__6w4ehe1.css} +6 -4
  29. package/dist/ui/static/_next/static/chunks/2az51zfcfe4w7.js +1 -1
  30. package/dist/ui/static/_next/static/chunks/2fr8bahvq9eg9.js +1 -1
  31. package/dist/ui/static/_next/static/chunks/{209aaqjv6z8gh.js → 2gvu8dyrhibpa.js} +1 -1
  32. package/dist/ui/static/_next/static/chunks/2na7t_nmk3z_c.js +1 -1
  33. package/dist/ui/static/_next/static/chunks/2nxhnrgae6nij.js +1 -1
  34. package/dist/ui/static/_next/static/chunks/{1t276xv4ec2k7.js → 2ql8dczlqzd4u.js} +1 -1
  35. package/dist/ui/static/_next/static/chunks/{33po7i9f3y-hi.js → 2ty81249w2gdw.js} +1 -1
  36. package/dist/ui/static/_next/static/chunks/2vmw7uw9qfxtm.js +2 -0
  37. package/dist/ui/static/_next/static/chunks/37kujq-6rc3ey.js +1 -1
  38. package/dist/ui/static/_next/static/chunks/3i3kblvx52ywv.js +1 -1
  39. package/dist/ui/static/_next/static/chunks/3j8fuk7gt_nsd.js +1 -1
  40. package/dist/ui/static/_next/static/chunks/3n0xbx7qq5429.js +1 -1
  41. package/dist/ui/static/_next/static/chunks/3n16srxs2afdp.js +1 -1
  42. package/dist/ui/static/_next/static/chunks/3rg7mh8olm1dj.js +1 -0
  43. package/dist/ui/static/_next/static/chunks/3s1wb0rz0bdep.js +1 -1
  44. package/dist/ui/static/_next/static/chunks/{turbopack-17n7tuo0-0vcg.js → turbopack-3-2dc0s_e9msx.js} +1 -1
  45. package/dist/ui/static/_next/static/media/{codicon.2b_iqd4rvjgu4.ttf → codicon.42hqluqtoi4oe.ttf} +0 -0
  46. package/dist/ui/static/_not-found/__next._full.txt +1 -1
  47. package/dist/ui/static/_not-found/__next._not-found.__PAGE__.txt +1 -1
  48. package/dist/ui/static/_not-found/__next._tree.txt +1 -1
  49. package/dist/ui/static/_not-found.html +1 -1
  50. package/dist/ui/static/_not-found.txt +1 -1
  51. package/dist/ui/static/atlassian-connectors/__next._full.txt +1 -1
  52. package/dist/ui/static/atlassian-connectors/__next._tree.txt +1 -1
  53. package/dist/ui/static/atlassian-connectors/__next.atlassian-connectors.__PAGE__.txt +1 -1
  54. package/dist/ui/static/atlassian-connectors.html +1 -1
  55. package/dist/ui/static/atlassian-connectors.txt +1 -1
  56. package/dist/ui/static/index.html +1 -1
  57. package/dist/ui/static/index.txt +5 -5
  58. package/dist/ui/static/launch/__next._full.txt +5 -5
  59. package/dist/ui/static/launch/__next._tree.txt +1 -1
  60. package/dist/ui/static/launch/__next.launch.__PAGE__.txt +5 -5
  61. package/dist/ui/static/launch.html +1 -1
  62. package/dist/ui/static/launch.txt +5 -5
  63. package/dist/ui/static/local-knowledge/__next._full.txt +5 -5
  64. package/dist/ui/static/local-knowledge/__next._tree.txt +1 -1
  65. package/dist/ui/static/local-knowledge/__next.local-knowledge.__PAGE__.txt +5 -5
  66. package/dist/ui/static/local-knowledge/capsule/__next._full.txt +1 -1
  67. package/dist/ui/static/local-knowledge/capsule/__next._tree.txt +1 -1
  68. package/dist/ui/static/local-knowledge/capsule/__next.local-knowledge.capsule.__PAGE__.txt +1 -1
  69. package/dist/ui/static/local-knowledge/capsule.html +1 -1
  70. package/dist/ui/static/local-knowledge/capsule.txt +1 -1
  71. package/dist/ui/static/local-knowledge.html +1 -1
  72. package/dist/ui/static/local-knowledge.txt +5 -5
  73. package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-code-inventory.generated.d.ts +5 -0
  74. package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-code-inventory.generated.d.ts.map +1 -1
  75. package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-code-inventory.generated.js +6 -0
  76. package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-registry-history.generated.d.ts +7 -0
  77. package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-registry-history.generated.d.ts.map +1 -1
  78. package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-registry-history.generated.js +9 -1
  79. package/node_modules/@oscharko-dev/keiko-activity-log/package.json +3 -3
  80. package/node_modules/@oscharko-dev/keiko-cli/package.json +15 -15
  81. package/node_modules/@oscharko-dev/keiko-connectors/dist/version.d.ts +1 -1
  82. package/node_modules/@oscharko-dev/keiko-connectors/dist/version.js +1 -1
  83. package/node_modules/@oscharko-dev/keiko-connectors/package.json +3 -3
  84. package/node_modules/@oscharko-dev/keiko-contracts/dist/version.d.ts +2 -2
  85. package/node_modules/@oscharko-dev/keiko-contracts/dist/version.js +2 -2
  86. package/node_modules/@oscharko-dev/keiko-contracts/package.json +1 -1
  87. package/node_modules/@oscharko-dev/keiko-evaluations/package.json +9 -9
  88. package/node_modules/@oscharko-dev/keiko-evidence/dist/version.d.ts +1 -1
  89. package/node_modules/@oscharko-dev/keiko-evidence/dist/version.js +1 -1
  90. package/node_modules/@oscharko-dev/keiko-evidence/package.json +4 -4
  91. package/node_modules/@oscharko-dev/keiko-git/dist/version.d.ts +1 -1
  92. package/node_modules/@oscharko-dev/keiko-git/dist/version.js +1 -1
  93. package/node_modules/@oscharko-dev/keiko-git/package.json +1 -1
  94. package/node_modules/@oscharko-dev/keiko-harness/dist/version.d.ts +1 -1
  95. package/node_modules/@oscharko-dev/keiko-harness/dist/version.js +1 -1
  96. package/node_modules/@oscharko-dev/keiko-harness/package.json +7 -7
  97. package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/version.d.ts +1 -1
  98. package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/version.js +1 -1
  99. package/node_modules/@oscharko-dev/keiko-local-knowledge/package.json +6 -6
  100. package/node_modules/@oscharko-dev/keiko-memory-capture/dist/version.d.ts +1 -1
  101. package/node_modules/@oscharko-dev/keiko-memory-capture/dist/version.js +1 -1
  102. package/node_modules/@oscharko-dev/keiko-memory-capture/package.json +3 -3
  103. package/node_modules/@oscharko-dev/keiko-memory-consolidation/dist/version.d.ts +1 -1
  104. package/node_modules/@oscharko-dev/keiko-memory-consolidation/dist/version.js +1 -1
  105. package/node_modules/@oscharko-dev/keiko-memory-consolidation/package.json +3 -3
  106. package/node_modules/@oscharko-dev/keiko-memory-governance/dist/version.d.ts +1 -1
  107. package/node_modules/@oscharko-dev/keiko-memory-governance/dist/version.js +1 -1
  108. package/node_modules/@oscharko-dev/keiko-memory-governance/package.json +3 -3
  109. package/node_modules/@oscharko-dev/keiko-memory-retrieval/dist/version.d.ts +1 -1
  110. package/node_modules/@oscharko-dev/keiko-memory-retrieval/dist/version.js +1 -1
  111. package/node_modules/@oscharko-dev/keiko-memory-retrieval/package.json +3 -3
  112. package/node_modules/@oscharko-dev/keiko-memory-vault/dist/version.d.ts +1 -1
  113. package/node_modules/@oscharko-dev/keiko-memory-vault/dist/version.js +1 -1
  114. package/node_modules/@oscharko-dev/keiko-memory-vault/package.json +3 -3
  115. package/node_modules/@oscharko-dev/keiko-model-gateway/dist/version.d.ts +1 -1
  116. package/node_modules/@oscharko-dev/keiko-model-gateway/dist/version.js +1 -1
  117. package/node_modules/@oscharko-dev/keiko-model-gateway/package.json +4 -4
  118. package/node_modules/@oscharko-dev/keiko-quality-intelligence/package.json +3 -3
  119. package/node_modules/@oscharko-dev/keiko-sandbox/package.json +2 -2
  120. package/node_modules/@oscharko-dev/keiko-sdk/package.json +9 -9
  121. package/node_modules/@oscharko-dev/keiko-security/dist/version.d.ts +1 -1
  122. package/node_modules/@oscharko-dev/keiko-security/dist/version.js +1 -1
  123. package/node_modules/@oscharko-dev/keiko-security/package.json +2 -2
  124. package/node_modules/@oscharko-dev/keiko-server/dist/deps.d.ts.map +1 -1
  125. package/node_modules/@oscharko-dev/keiko-server/dist/deps.js +6 -5
  126. package/node_modules/@oscharko-dev/keiko-server/package.json +24 -24
  127. package/node_modules/@oscharko-dev/keiko-tool-catalog/package.json +3 -3
  128. package/node_modules/@oscharko-dev/keiko-tools/dist/version.d.ts +1 -1
  129. package/node_modules/@oscharko-dev/keiko-tools/dist/version.js +1 -1
  130. package/node_modules/@oscharko-dev/keiko-tools/package.json +7 -7
  131. package/node_modules/@oscharko-dev/keiko-verification/package.json +5 -5
  132. package/node_modules/@oscharko-dev/keiko-workflows/package.json +10 -10
  133. package/node_modules/@oscharko-dev/keiko-workspace/dist/version.d.ts +1 -1
  134. package/node_modules/@oscharko-dev/keiko-workspace/dist/version.js +1 -1
  135. package/node_modules/@oscharko-dev/keiko-workspace/package.json +4 -4
  136. package/package.json +38 -38
  137. package/release-impact.catalog.json +73 -0
  138. package/vendor/oscharko-dev-keiko-activity-log-1.2.7.tgz +0 -0
  139. package/vendor/{oscharko-dev-keiko-cli-1.2.6.tgz → oscharko-dev-keiko-cli-1.2.7.tgz} +0 -0
  140. package/vendor/{oscharko-dev-keiko-connectors-1.2.6.tgz → oscharko-dev-keiko-connectors-1.2.7.tgz} +0 -0
  141. package/vendor/{oscharko-dev-keiko-contracts-1.2.6.tgz → oscharko-dev-keiko-contracts-1.2.7.tgz} +0 -0
  142. package/vendor/{oscharko-dev-keiko-evaluations-1.2.6.tgz → oscharko-dev-keiko-evaluations-1.2.7.tgz} +0 -0
  143. package/vendor/{oscharko-dev-keiko-evidence-1.2.6.tgz → oscharko-dev-keiko-evidence-1.2.7.tgz} +0 -0
  144. package/vendor/{oscharko-dev-keiko-git-1.2.6.tgz → oscharko-dev-keiko-git-1.2.7.tgz} +0 -0
  145. package/vendor/{oscharko-dev-keiko-harness-1.2.6.tgz → oscharko-dev-keiko-harness-1.2.7.tgz} +0 -0
  146. package/vendor/{oscharko-dev-keiko-local-knowledge-1.2.6.tgz → oscharko-dev-keiko-local-knowledge-1.2.7.tgz} +0 -0
  147. package/vendor/{oscharko-dev-keiko-memory-capture-1.2.6.tgz → oscharko-dev-keiko-memory-capture-1.2.7.tgz} +0 -0
  148. package/vendor/{oscharko-dev-keiko-memory-consolidation-1.2.6.tgz → oscharko-dev-keiko-memory-consolidation-1.2.7.tgz} +0 -0
  149. package/vendor/{oscharko-dev-keiko-memory-governance-1.2.6.tgz → oscharko-dev-keiko-memory-governance-1.2.7.tgz} +0 -0
  150. package/vendor/{oscharko-dev-keiko-memory-retrieval-1.2.6.tgz → oscharko-dev-keiko-memory-retrieval-1.2.7.tgz} +0 -0
  151. package/vendor/{oscharko-dev-keiko-memory-vault-1.2.6.tgz → oscharko-dev-keiko-memory-vault-1.2.7.tgz} +0 -0
  152. package/vendor/{oscharko-dev-keiko-model-gateway-1.2.6.tgz → oscharko-dev-keiko-model-gateway-1.2.7.tgz} +0 -0
  153. package/vendor/{oscharko-dev-keiko-quality-intelligence-1.2.6.tgz → oscharko-dev-keiko-quality-intelligence-1.2.7.tgz} +0 -0
  154. package/vendor/{oscharko-dev-keiko-sandbox-1.2.6.tgz → oscharko-dev-keiko-sandbox-1.2.7.tgz} +0 -0
  155. package/vendor/{oscharko-dev-keiko-sdk-1.2.6.tgz → oscharko-dev-keiko-sdk-1.2.7.tgz} +0 -0
  156. package/vendor/{oscharko-dev-keiko-security-1.2.6.tgz → oscharko-dev-keiko-security-1.2.7.tgz} +0 -0
  157. package/vendor/oscharko-dev-keiko-server-1.2.7.tgz +0 -0
  158. package/vendor/{oscharko-dev-keiko-tool-catalog-1.2.6.tgz → oscharko-dev-keiko-tool-catalog-1.2.7.tgz} +0 -0
  159. package/vendor/{oscharko-dev-keiko-tools-1.2.6.tgz → oscharko-dev-keiko-tools-1.2.7.tgz} +0 -0
  160. package/vendor/{oscharko-dev-keiko-verification-1.2.6.tgz → oscharko-dev-keiko-verification-1.2.7.tgz} +0 -0
  161. package/vendor/{oscharko-dev-keiko-workflows-1.2.6.tgz → oscharko-dev-keiko-workflows-1.2.7.tgz} +0 -0
  162. package/vendor/{oscharko-dev-keiko-workspace-1.2.6.tgz → oscharko-dev-keiko-workspace-1.2.7.tgz} +0 -0
  163. package/dist/ui/static/_next/static/chunks/0f-ub6bs0i1sj.js +0 -2
  164. package/dist/ui/static/_next/static/chunks/18voy19pok4ko.js +0 -671
  165. package/dist/ui/static/_next/static/chunks/2eif0mrb2ok4e.js +0 -1
  166. package/dist/ui/static/_next/static/chunks/3ggg2nmiwuz90.js +0 -27
  167. package/dist/ui/static/_next/static/chunks/3qhgsd4mwnt9v.js +0 -2
  168. package/vendor/oscharko-dev-keiko-activity-log-1.2.6.tgz +0 -0
  169. package/vendor/oscharko-dev-keiko-server-1.2.6.tgz +0 -0
  170. /package/dist/ui/static/_next/static/{dHwBvAPZHCBS19_AHKzGd → H3xxDPi4xvbxoz-xJSbax}/_buildManifest.js +0 -0
  171. /package/dist/ui/static/_next/static/{dHwBvAPZHCBS19_AHKzGd → H3xxDPi4xvbxoz-xJSbax}/_clientMiddlewareManifest.js +0 -0
  172. /package/dist/ui/static/_next/static/{dHwBvAPZHCBS19_AHKzGd → H3xxDPi4xvbxoz-xJSbax}/_ssgManifest.js +0 -0
@@ -1 +1 @@
1
- (()=>{"use strict";(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,90317,(e,t,r)=>{Object.defineProperty(r,"__esModule",{value:!0});var n={bindSnapshot:function(){return l;},createAsyncLocalStorage:function(){return d;},createSnapshot:function(){return u;},getOrCreateGlobalAsyncLocalStorage:function(){return c;}};for(var i in n)Object.defineProperty(r,i,{enumerable:!0,get:n[i]});let o=Error("Invariant: AsyncLocalStorage accessed in runtime where it is not available");class a{disable(){throw o;}getStore(){}run(){throw o;}exit(){throw o;}enterWith(){throw o;}static bind(e){return e;}}let s="u">typeof globalThis&&globalThis.AsyncLocalStorage;function d(){return s?new s():new a();}function c(e){var _r$t;let t=Symbol.for(`@next/${e}@16.4.1`),r=globalThis;return(_r$t=r[t])!==null&&_r$t!==void 0?_r$t:r[t]=d();}function l(e){return s?s.bind(e):a.bind(e);}function u(){return s?s.snapshot():function(e,...t){return e(...t);};}},42344,(e,t,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"workAsyncStorageInstance",{enumerable:!0,get:function(){return n;}});let n=(0,e.r(90317).getOrCreateGlobalAsyncLocalStorage)("work-async-storage");},63599,(e,t,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"workAsyncStorage",{enumerable:!0,get:function(){return n.workAsyncStorageInstance;}});let n=e.r(42344);},70703,(e,t,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"default",{enumerable:!0,get:function(){return i;}});let n=e.r(55682)._(e.r(69093));function i(e,t){var _i$loadableGenerated;let r={};"function"==typeof e&&(r.loader=e);let i={...r,...t};return(0,n.default)({...i,modules:(_i$loadableGenerated=i.loadableGenerated)===null||_i$loadableGenerated===void 0?void 0:_i$loadableGenerated.modules});}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default);},9885,(e,t,r)=>{function n(e){return e.split("/").map(e=>encodeURIComponent(e)).join("/");}Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"encodeURIPath",{enumerable:!0,get:function(){return n;}});},67585,(e,t,r)=>{e.i(47167),Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"BailoutToCSRForNextDynamic",{enumerable:!0,get:function(){return a;}});let n=e.r(71645),i=e.r(74080);e.r(32061);let o=e.r(49354).createReactBrowserBailoutReason.bind(null,"next/dynamic");function a({children:e}){return(0,n.use)((0,i.browser)(o)),e;}},69093,(e,t,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"default",{enumerable:!0,get:function(){return c;}});let n=e.r(43476),i=e.r(71645),o=e.r(67585),a=e.r(52157);function s(e){return{default:e&&"default"in e?e.default:e};}let d={loader:()=>Promise.resolve(s(()=>null)),loading:null,ssr:!0},c=function(e){let t={...d,...e},r=(0,i.lazy)(()=>t.loader().then(s)),c=t.loading;function l(e){let s=c?(0,n.jsx)(c,{isLoading:!0,pastDelay:!0,error:null}):null,d=!t.ssr||!!t.loading,l=d?i.Suspense:i.Fragment,u=t.ssr?(0,n.jsxs)(n.Fragment,{children:["u"<typeof window?(0,n.jsx)(a.PreloadChunks,{moduleIds:t.modules}):null,(0,n.jsx)(r,{...e})]}):(0,n.jsx)(o.BailoutToCSRForNextDynamic,{children:(0,n.jsx)(r,{...e})});return(0,n.jsx)(l,{...(d?{fallback:s}:{}),children:u});}return l.displayName="LoadableComponent",l;};},52157,(e,t,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"PreloadChunks",{enumerable:!0,get:function(){return d;}});let n=e.r(43476),i=e.r(74080),o=e.r(63599),a=e.r(9885),s=e.r(43369);function d({moduleIds:e}){if("u">typeof window)return null;let t=o.workAsyncStorage.getStore();if(void 0===t)return null;let r=[];if(t.reactLoadableManifest&&e){let n=t.reactLoadableManifest;for(let t of e){if(!n[t])continue;let e=n[t].files;r.push(...e);}}if(0===r.length)return null;let c=(0,s.getAssetTokenQuery)();return(0,n.jsx)(n.Fragment,{children:r.map(e=>{let r=`${t.assetPrefix}/_next/${(0,a.encodeURIPath)(e)}${c}`;return e.endsWith(".css")?(0,n.jsx)("link",{precedence:"dynamic",href:r,rel:"stylesheet",as:"style",nonce:t.nonce},e):((0,i.preload)(r,{as:"script",fetchPriority:"low",nonce:t.nonce}),null);})});}},49354,(e,t,r)=>{Object.defineProperty(r,"__esModule",{value:!0});var n={createReactBrowserBailoutReason:function(){return a;},getReactBrowserBailoutReason:function(){return s;},isNextBrowserBailoutError:function(){return d;}};for(var i in n)Object.defineProperty(r,i,{enumerable:!0,get:n[i]});let o=Symbol.for("next.browser-bailout-reason");function a(e){return{$$typeof:o,reason:e};}function s(e){let t=e===null||e===void 0?void 0:e.cause;return(t===null||t===void 0?void 0:t.$$typeof)===o?t.reason:void 0;}function d(e){return void 0!==s(e);}},43545,e=>{var t=e.i(57269),r=e.i(47903);let n=Object.freeze({wordWrap:Object.freeze(["off","on","wordWrapColumn","bounded"]),renderWhitespace:Object.freeze(["none","selection","boundary","all"]),externalReload:Object.freeze(["prompt","autoClean","manual"]),largeFileMode:Object.freeze(["default","degraded","readonly"]),gitCommitMessagePolicy:r.S}),i=(0,t.f)([{id:"fontSize",type:"integer",defaultValue:13,scopes:Object.freeze(["user","workspace"]),effect:"live",security:"safe",minimum:8,maximum:32,description:"Monaco editor font size in CSS pixels."},{id:"tabSize",type:"integer",defaultValue:2,scopes:Object.freeze(["user","workspace"]),effect:"live",security:"safe",minimum:1,maximum:12,description:"Editor tab width."},{id:"insertSpaces",type:"boolean",defaultValue:!0,scopes:Object.freeze(["user","workspace"]),effect:"live",security:"safe",description:"Insert spaces when indentation is generated."},{id:"wordWrap",type:"enum",defaultValue:"off",scopes:Object.freeze(["user","workspace"]),effect:"live",security:"safe",enumValues:n.wordWrap,description:"Monaco word wrapping mode."},{id:"renderWhitespace",type:"enum",defaultValue:"selection",scopes:Object.freeze(["user","workspace"]),effect:"live",security:"safe",enumValues:n.renderWhitespace,description:"Whitespace visualization mode."},{id:"minimap",type:"boolean",defaultValue:!1,scopes:Object.freeze(["user"]),effect:"live",security:"safe",description:"Minimap visibility. Workspace overrides are denied to preserve dense layouts."},{id:"formatOnSave",type:"boolean",defaultValue:!1,scopes:Object.freeze(["user","workspace"]),effect:"live",security:"safe",description:"Run the existing governed formatter before save."},{id:"externalReload",type:"enum",defaultValue:"prompt",scopes:Object.freeze(["user","workspace"]),effect:"live",security:"safe",enumValues:n.externalReload,description:"Clean-buffer external reload behavior; dirty buffers still require choice."},{id:"inlineCompletion",type:"boolean",defaultValue:!1,scopes:Object.freeze(["user"]),effect:"live",security:"policyCeiling",description:"Explicit user opt-in for governed inline AI completion."},{id:"testGeneration",type:"boolean",defaultValue:!1,scopes:Object.freeze(["workspace"]),effect:"live",security:"policyCeiling",description:"Explicit workspace opt-in for governed AI test generation; generated tests still require human review."},{id:"patchApply",type:"boolean",defaultValue:!1,scopes:Object.freeze(["workspace"]),effect:"live",security:"policyCeiling",description:"Explicit workspace opt-in for governed AI patch apply; apply remains review-first and never widens delivery authority."},{id:"watcherExclusions",type:"stringArray",defaultValue:Object.freeze([".git/**","node_modules/**","dist/**"]),scopes:Object.freeze(["user","workspace"]),effect:"restart",security:"resourceBounded",maxItems:64,maxItemBytes:256,description:"Bounded root-relative watcher exclusion globs."},{id:"largeFileMode",type:"enum",defaultValue:"default",scopes:Object.freeze(["user","workspace"]),effect:"live",security:"resourceBounded",enumValues:n.largeFileMode,description:"Large-file behavior within the existing hard server size limits."},{id:"modelRetentionCount",type:"integer",defaultValue:32,scopes:Object.freeze(["user","workspace"]),effect:"live",security:"resourceBounded",minimum:4,maximum:128,description:"Maximum retained clean inactive Monaco models."},{id:"modelRetentionBytes",type:"integer",defaultValue:0x4000000,scopes:Object.freeze(["user","workspace"]),effect:"live",security:"resourceBounded",minimum:4194304,maximum:0x10000000,description:"Approximate retained clean inactive Monaco model byte budget."},{id:"keybindingOverrides",type:"stringArray",defaultValue:Object.freeze([]),scopes:Object.freeze(["user","workspace"]),effect:"live",security:"safe",maxItems:64,maxItemBytes:192,description:"Bounded M7 keyboard shortcut override records."},{id:"debuggingEnabled",type:"boolean",defaultValue:!1,scopes:Object.freeze(["workspace"]),effect:"live",security:"policyCeiling",description:"Explicit workspace opt-in for governed Node.js/TypeScript debugging."},{id:"gitCommitMessagePolicy",type:"enum",defaultValue:"keiko-conventional",scopes:Object.freeze(["user","workspace"]),effect:"live",security:"safe",enumValues:n.gitCommitMessagePolicy,description:"Governed commit-message validation: Keiko Conventional or Repository Native formatting."}]);function o(e){return"object"==typeof e&&null!==e&&!Array.isArray(e);}function a(e,t){return Object.keys(e).every(e=>t.includes(e));}function s(e){let t=0;for(let r=0;r<e.length;r+=1){var _e$codePointAt;let n=(_e$codePointAt=e.codePointAt(r))!==null&&_e$codePointAt!==void 0?_e$codePointAt:0;n<=127?t+=1:n<=2047?t+=2:n>65535?(t+=4,r+=1):t+=3;}return t;}function d(e){return"number"==typeof e&&Number.isSafeInteger(e)&&e>=0;}Object.freeze(i.map(e=>e.id)),Object.freeze(["schemaVersion","sequence","kind","revision","userRevision","workspaceRevision","scope","settingIds","storeState"]);let c=/^[a-f0-9]{16,64}$/u;function l(e){return"string"==typeof e&&(0===e.length||4096>=s(e)&&e.length>0&&!e.includes("\0")&&!e.startsWith("/")&&!e.includes("\\")&&!e.split("/").some(e=>""===e||"."===e||".."===e));}function u(e){return"healthy"===e||"degraded"===e||"rescanRequired"===e||"stopped"===e;}function p(e){return"native-watch-unavailable"===e||"unsupported-recursive-watch"===e||"event-overflow"===e||"sequence-gap"===e||"ambiguous-event"===e||"unsafe-path"===e||"root-replaced"===e||"shutdown"===e;}function f(e){return void 0===e||"number"==typeof e&&Number.isFinite(e)&&e>=0;}let h=Object.freeze(["schemaVersion","sequence","health","rootToken","nativeWatcherCount","subscriberCount","queueDepth","replayCapacity","replayOldestSequence","eventCount","requiresSnapshot","degradedReasons"]);function x(e,t,r,n,i,o,a="keiko"){return{id:e,labelKey:t,descriptionKey:`${t}.description`,scope:r,contexts:Object.freeze([...n]),defaultBindings:Object.freeze([...i]),rebindable:o,dispatchOwner:a};}let j=(0,t.f)([x("undo","command.undo","global",["global"],["CtrlOrMeta+Z"],!0),x("redo","command.redo","global",["global"],["CtrlOrMeta+Shift+Z"],!0),x("focus-status","command.focusStatus","global",["global"],["Alt+S"],!0),x("focus-workspace-search","command.focusWorkspaceSearch","global",["global"],["CtrlOrMeta+Shift+F"],!0),x("workspace.commands","command.workspaceCommands","global",["global","editor"],["CtrlOrMeta+Shift+P"],!0),x("open-editor-settings","command.openEditorSettings","settings",["settings","editor"],["CtrlOrMeta+,"],!0),x("view.splitRight","command.splitEditorRight","editor",["editor"],["CtrlOrMeta+Alt+\\"],!0),x("view.splitDown","command.splitEditorDown","editor",["editor"],[],!0),x("view.closeSplit","command.closeEditorSplit","editor",["editor"],[],!0),x("tab.next","command.nextEditorTab","editor",["editor"],["CtrlOrMeta+Alt+ArrowRight"],!0),x("tab.prev","command.previousEditorTab","editor",["editor"],["CtrlOrMeta+Alt+ArrowLeft"],!0),x("tab.close","command.closeEditorTab","editor",["editor"],[],!0),x("tab.reopenClosed","command.reopenClosedEditor","editor",["editor"],["CtrlOrMeta+Alt+R"],!0),x("files.saveAll","command.saveAllEditors","editor",["editor"],["CtrlOrMeta+Alt+S"],!0),x("editor.save","command.editorSave","editor",["editor","monaco"],["CtrlOrMeta+S"],!1,"monaco"),x("editor.find","command.editorFind","editor",["editor","monaco"],["CtrlOrMeta+F"],!1,"monaco"),x("editor.format","command.editorFormat","editor",["editor","monaco"],["Shift+Alt+F"],!1,"monaco"),x("editor.renameSymbol","command.editorRenameSymbol","editor",["editor","monaco"],["F2"],!1,"monaco"),x("editor.action.accessibilityHelp","command.editorAccessibilityHelp","editor",["editor","monaco"],["Alt+F1"],!1,"monaco")]),m=Object.freeze(["CtrlOrMeta+Q","CtrlOrMeta+W","CtrlOrMeta+R","CtrlOrMeta+T","CtrlOrMeta+Shift+N"]),M=Object.freeze(["CtrlOrMeta","Ctrl","Meta","Alt","Shift"]);function y(e,t=j){return t.find(t=>t.id===e);}function v(e){var _r$at,_t$,_find;var t;let r=e.split("+").map(e=>e.trim());if(0===r.length||r.some(e=>0===e.length))return;let n=void 0!==b(t=(_r$at=r.at(-1))!==null&&_r$at!==void 0?_r$at:"")||!function(e){if(0===e.length)return!1;for(let t of e)if(!C.has(t))return!1;return!0;}(t)?void 0:1===t.length?t.toUpperCase():((_t$=t[0])===null||_t$===void 0?void 0:_t$.toLowerCase())==="f"&&t.slice(1).split("").every(A)?`F${t.slice(1)}`:(_find=["ArrowDown","ArrowLeft","ArrowRight","ArrowUp","Esc","Space"].find(e=>e.toLowerCase()===t.toLowerCase()))!==null&&_find!==void 0?_find:t;if(void 0===n)return;let i=function(e){let t=[],r=new Set();for(let n of e){let e=b(n);if(void 0===e||r.has(e)||function(e,t){let r=["CtrlOrMeta","Ctrl","Meta"];return!!r.includes(e)&&r.some(r=>r!==e&&t.has(r));}(e,r))return;r.add(e),t.push(e);}return t.sort((e,t)=>M.indexOf(e)-M.indexOf(t)),t;}(r.slice(0,-1));return void 0===i?void 0:[...i,n].join("+");}function g(e){return[...new Set(e.split("+").map(e=>"Ctrl"===e||"Meta"===e?"CtrlOrMeta":e).map(e=>e.toLowerCase()))].join("+");}function b(e){let t=e.toLowerCase();return M.find(e=>e.toLowerCase()===t);}function A(e){return e>="0"&&e<="9";}function w(){return j.flatMap(e=>e.defaultBindings.map(t=>{var _v;return{commandId:e.id,binding:(_v=v(t))!==null&&_v!==void 0?_v:""};}));}function L(e){return function(e,t){try{var r;let n,i,o=y(e.commandId,t);if(void 0===o)return{ok:!1,reasonCode:"UNKNOWN_COMMAND"};if(s(e.binding)>192)return{ok:!1,reasonCode:"INVALID_INPUT"};let a=function(e,t){let r=v(t);if(void 0!==r)return s(k({schemaVersion:"1",commandId:e,binding:r}))>192?void 0:r;}(e.commandId,e.binding);if(void 0===a||!((n=new Set(a.split("+").slice(0,-1))).has("CtrlOrMeta")||n.has("Ctrl")||n.has("Meta")||n.has("Alt")))return{ok:!1,reasonCode:"INVALID_INPUT"};if(!o.rebindable)return{ok:!1,reasonCode:"POLICY_LOCKED"};if(i=g(a),m.some(e=>{let t=v(e);return void 0!==t&&g(t)===i;}))return{ok:!1,reasonCode:"RESERVED_KEYBINDING"};let d=(Array.isArray(e.activeBindings)?e.activeBindings:(r=e.activeBindings,Object.entries(r).map(([e,t])=>({commandId:e,binding:t})))).find(e=>function(e,t,r,n){let i=v(r.binding);if(r.commandId===e.id||void 0===i||g(i)!==g(t))return!1;let o=y(r.commandId,n);return void 0!==o&&function(e,t){if(e.contexts.includes("global")||t.contexts.includes("global")||e.contexts.some(e=>t.contexts.includes(e)))return!0;let r=new Set(["editor","monaco"]);return e.contexts.some(e=>r.has(e))&&t.contexts.some(e=>r.has(e));}(e,o);}(o,a,e,t));return void 0===d?{ok:!0,value:a}:{ok:!1,reasonCode:"KEYBINDING_COLLISION"};}catch{return{ok:!1,reasonCode:"INVALID_INPUT"};}}(e,j);}function k(e){var _v2;return[e.schemaVersion,e.commandId,(_v2=v(e.binding))!==null&&_v2!==void 0?_v2:""].join("|");}let C=new Set("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789,./;'[]`-\\");function O(e,t,r){return{schemaVersion:"1",feature:e,state:t,reasonCode:r,policyResult:"active"===t?"allowed":"denied"};}Object.freeze(["inlineCompletion","testGeneration","patchApply","verification"]),Object.freeze(["allowed","denied"]),Object.freeze(["available","missing"]),Object.freeze(["available","exhausted"]),Object.freeze(["healthy","degraded","unhealthy","unverified"]),Object.freeze(["satisfied","missing"]),Object.freeze(["unset","disabled","enabled"]),Object.freeze([function(e){return e.productSupported?void 0:O(e.feature,"disabled","PRODUCT_UNSUPPORTED");},function(e){return"denied"===e.operatorCeiling||"disabled"===e.legacyFlag?O(e.feature,"denied","OPERATOR_CEILING_DENIED"):void 0;},function(e){return"missing"===e.securityPrerequisites?O(e.feature,"denied","SECURITY_PREREQUISITE_MISSING"):void 0;},function(e){return e.explicitOptIn?void 0:O(e.feature,"available","EXPLICIT_OPT_IN_REQUIRED");},function(e){return"missing"===e.modelCapability?O(e.feature,"degraded","MODEL_CAPABILITY_MISSING"):void 0;},function(e){return"exhausted"===e.budget?O(e.feature,"degraded","BUDGET_UNAVAILABLE"):void 0;},function(e){if("healthy"!==e.providerHealth)return"unverified"===e.providerHealth?O(e.feature,"degraded","PROVIDER_UNVERIFIED"):O(e.feature,"degraded","PROVIDER_UNHEALTHY");}]),e.s(["u",0,j,"K",0,"1","m",0,i,"p",0,function(){return Object.freeze(Object.fromEntries(i.map(e=>[e.id,e.defaultValue])));},"Q",0,function(e){if(!Array.isArray(e)||e.length>64)return{ok:!1,reasonCode:"OVERSIZED"};let t=w(),r=[],n=new Set();for(let i of e){if("string"!=typeof i)return{ok:!1,reasonCode:"INVALID_INPUT"};let e=function(e){if(s(e)>192)return e;let t=e.split("|");if(3!==t.length||"1"!==t[0])return e;let[,r,n]=t;if("quick-access.files"!==r||void 0===v(n!==null&&n!==void 0?n:""))return"quick-access.commands"===r?[t[0],"workspace.commands",n].join("|"):e;}(i);if(void 0===e)continue;let o=function(e,t=w()){if(s(e)>192)return{ok:!1,reasonCode:"OVERSIZED"};let r=e.split("|");if(3!==r.length||"1"!==r[0])return{ok:!1,reasonCode:"SCHEMA_VERSION_UNSUPPORTED"};let[,n,i]=r,o=L({commandId:n,binding:i,activeBindings:t});return o.ok?{ok:!0,value:{schemaVersion:"1",commandId:n,binding:o.value}}:o;}(e,t);if(!o.ok)return o;if(n.has(o.value.commandId))return{ok:!1,reasonCode:"KEYBINDING_COLLISION"};n.add(o.value.commandId),r.push(o.value),t=[...t.filter(e=>e.commandId!==o.value.commandId),{commandId:o.value.commandId,binding:o.value.binding}];}return{ok:!0,value:Object.freeze(r)};},"v",0,function(e){try{var t,r,n,i,s,h,x,j,m,M;return t=e,o(r=t)&&a(r,["schemaVersion","sequence","kind","relativePath","oldRelativePath","entryKind","sizeBytes","modifiedAt","metadataHash","health","reason"])&&"1"===r.schemaVersion&&d(r.sequence)?("created"===(i=(n=t).kind)||"changed"===i||"deleted"===i||"renamed"===i||"rescan"===i||"overflow"===i)&&l(n.relativePath)&&(void 0===(s=n.oldRelativePath)||l(s))&&(void 0===(h=n.entryKind)||"file"===(x=h)||"directory"===x||"symlink"===x||"unknown"===x)&&f(n.sizeBytes)&&f(n.modifiedAt)&&(void 0===(j=n.metadataHash)||"string"==typeof j&&c.test(j))&&(void 0===(m=n.health)||u(m))&&(void 0===(M=n.reason)||p(M))?{ok:!0,value:t}:{ok:!1,reasonCode:"UNSAFE_PATH"}:{ok:!1,reasonCode:"INVALID_INPUT"};}catch{return{ok:!1,reasonCode:"INVALID_INPUT"};}},"q",0,function(e){try{var t,r,n,i;return t=e,o(r=t)&&a(r,h)&&"1"===r.schemaVersion&&u(r.health)&&"string"==typeof(n=r.rootToken)&&c.test(n)&&d((i=r).sequence)&&d(i.nativeWatcherCount)&&d(i.subscriberCount)&&d(i.queueDepth)&&d(i.replayCapacity)&&d(i.replayOldestSequence)&&d(i.eventCount)&&"boolean"==typeof r.requiresSnapshot&&Array.isArray(r.degradedReasons)&&t.degradedReasons.every(p)?{ok:!0,value:{...t,degradedReasons:Object.freeze([...t.degradedReasons])}}:{ok:!1,reasonCode:"INVALID_INPUT"};}catch{return{ok:!1,reasonCode:"INVALID_INPUT"};}},"G",0,k,"D",0,L]);},47903,e=>{var t=e.i(57269);let r=Object.freeze(["keiko-conventional","repository-native"]),n=Object.freeze(["empty-subject","missing-conventional-prefix","disallowed-type","subject-too-long","missing-issue-key","missing-signoff"]);(0,t.f)({conventionalCommit:{enabled:!0,allowedTypes:["feat","fix","chore","docs","refactor","test","build","ci","perf","style","revert"]},requireIssueKey:{enabled:!1,pattern:""},requireSignoff:!1,subjectMaxLength:72}),(0,t.f)({conventionalCommit:{enabled:!1,allowedTypes:[]},requireIssueKey:{enabled:!1,pattern:""},requireSignoff:!1,subjectMaxLength:Number.MAX_SAFE_INTEGER});let i=e=>"string"==typeof e&&n.includes(e);e.s(["S",0,r,"t",0,n,"e",0,i]);},17161,e=>{var t=e.i(43476);function r({size:e=18,sw:n=1.6,vb:i=24,fill:o,className:a,style:s,children:d,d:c,"aria-hidden":l="true"}){let u=void 0!==o;return(0,t.jsx)("svg",{className:a,width:e,height:e,viewBox:`0 0 ${String(i)} ${String(i)}`,fill:u?o:"none",stroke:u?"none":"currentColor",strokeWidth:n,strokeLinecap:"round",strokeLinejoin:"round",style:s,"aria-hidden":l,children:void 0!==c?(0,t.jsx)("path",{d:c}):d});}function n(){return(0,t.jsxs)(t.Fragment,{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"})]});}e.s(["f",0,{lock:e=>(0,t.jsxs)(r,{...e,children:[(0,t.jsx)("rect",{x:"5",y:"10",width:"14",height:"11",rx:"2"}),(0,t.jsx)("path",{d:"M8 10V7a4 4 0 0 1 8 0v3"}),(0,t.jsx)("path",{d:"M12 14v3"})]}),unlock:e=>(0,t.jsxs)(r,{...e,children:[(0,t.jsx)("rect",{x:"5",y:"10",width:"14",height:"11",rx:"2"}),(0,t.jsx)("path",{d:"M8 10V7a4 4 0 0 1 8 0"}),(0,t.jsx)("path",{d:"M12 14v3"})]}),newChat:e=>(0,t.jsxs)(r,{...e,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:e=>(0,t.jsxs)(r,{...e,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:e=>(0,t.jsxs)(r,{...e,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:e=>(0,t.jsxs)(r,{...e,children:[(0,t.jsx)("circle",{cx:"12",cy:"12",r:"8"}),(0,t.jsx)("path",{d:"M12 7.5V12l3 2"})]}),mobile:e=>(0,t.jsxs)(r,{...e,children:[(0,t.jsx)("rect",{x:"7",y:"3",width:"10",height:"18",rx:"2.5"}),(0,t.jsx)("path",{d:"M11 18h2"})]}),folder:e=>(0,t.jsxs)(r,{...e,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:e=>(0,t.jsxs)(r,{...e,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:e=>(0,t.jsxs)(r,{...e,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:e=>(0,t.jsxs)(r,{...e,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:e=>(0,t.jsxs)(r,{...e,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:e=>(0,t.jsx)(r,{...e,children:(0,t.jsx)(n,{})}),agents:e=>(0,t.jsxs)(r,{...e,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:e=>(0,t.jsxs)(r,{...e,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:e=>(0,t.jsx)(r,{...e,d:"M12 5v14M5 12h14"}),chevron:e=>(0,t.jsx)(r,{...e,d:"M6 9l6 6 6-6"}),chevronR:e=>(0,t.jsx)(r,{...e,d:"M9 6l6 6-6 6"}),mic:e=>(0,t.jsxs)(r,{...e,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:e=>(0,t.jsx)(r,{...e,d:"M12 19V5M6 11l6-6 6 6"}),spark:e=>(0,t.jsx)(r,{...e,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:e=>(0,t.jsx)(r,{...e,d:"M9 3h6l-1 5 3 3-5 1-1 8-1-8-5-1 3-3z"}),brain:e=>(0,t.jsxs)(r,{...e,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:e=>(0,t.jsxs)(r,{...e,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"})]}),codingHistory:e=>(0,t.jsx)(r,{...e,d:"M13.2 4.5h6.3v4h-15v-4h6.3M6 8.5v11h12v-11M10 12l-2 2 2 2m4-4 2 2-2 2"}),archive:e=>(0,t.jsxs)(r,{...e,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:e=>(0,t.jsxs)(r,{...e,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:e=>(0,t.jsxs)(r,{...e,children:[(0,t.jsx)("path",{d:"M7 14 H10.4"}),(0,t.jsx)("path",{d:"M13.6 14 H17"})]}),expand:e=>(0,t.jsx)(r,{...e,d:"M4 9V4h5M20 15v5h-5M20 9V4h-5M4 15v5h5"}),back:e=>(0,t.jsx)(r,{...e,d:"M15 6l-6 6 6 6"}),fwd:e=>(0,t.jsx)(r,{...e,d:"M9 6l6 6-6 6"}),drag:e=>(0,t.jsxs)(r,{...e,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:e=>(0,t.jsxs)(r,{...e,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:e=>(0,t.jsxs)(r,{...e,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:e=>(0,t.jsx)(r,{...e,d:"M5 12.5l4.5 4.5L19 6.5"}),copy:e=>(0,t.jsxs)(r,{...e,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:e=>(0,t.jsxs)(r,{...e,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:e=>(0,t.jsxs)(r,{...e,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:e=>(0,t.jsxs)(r,{...e,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:e=>(0,t.jsxs)(r,{...e,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:e=>(0,t.jsxs)(r,{...e,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:e=>(0,t.jsx)(r,{...e,d:"M12 4v6M9 7h6M5 17h14"}),commit:e=>(0,t.jsxs)(r,{...e,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:e=>(0,t.jsxs)(r,{...e,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:e=>(0,t.jsxs)(r,{...e,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:e=>(0,t.jsxs)(r,{...e,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:e=>(0,t.jsxs)(r,{...e,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"})]}),codingWorkbench:e=>(0,t.jsxs)(r,{...e,children:[(0,t.jsx)(n,{}),(0,t.jsx)("path",{d:"M16.4 6.5 L17 8 L18.5 8.6 L17 9.2 L16.4 10.7 L15.8 9.2 L14.3 8.6 L15.8 8 Z"})]}),regenerate:e=>(0,t.jsxs)(r,{...e,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:e=>(0,t.jsxs)(r,{...e,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:e=>(0,t.jsxs)(r,{...e,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:e=>(0,t.jsxs)(r,{...e,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:e=>(0,t.jsxs)(r,{...e,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:e=>(0,t.jsx)(r,{...e,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:e=>(0,t.jsxs)(r,{...e,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:e=>(0,t.jsxs)(r,{...e,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:e=>(0,t.jsxs)(r,{...e,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:e=>(0,t.jsxs)(r,{...e,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:e=>(0,t.jsx)(r,{...e,children:(0,t.jsx)("path",{d:"M8 9l-3 3 3 3M16 9l3 3-3 3M13.5 6l-3 12"})}),gear:e=>(0,t.jsxs)(r,{...e,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:e=>(0,t.jsxs)(r,{...e,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:e=>(0,t.jsxs)(r,{...e,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:e=>(0,t.jsxs)(r,{...e,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:e=>(0,t.jsxs)(r,{...e,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:e=>(0,t.jsx)(r,{...e,d:"M13 3 5 13h5l-1 8 8-10h-5z"}),add:e=>(0,t.jsxs)(r,{...e,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:e=>(0,t.jsxs)(r,{...e,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:e=>(0,t.jsxs)(r,{...e,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:e=>(0,t.jsx)(r,{...e,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:e=>(0,t.jsxs)(r,{...e,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:e=>(0,t.jsxs)(r,{...e,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:e=>(0,t.jsx)(r,{...e,d:"M3 12h3l2.5-7 5 14 2.5-7H21"}),user:e=>(0,t.jsxs)(r,{...e,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:e=>(0,t.jsxs)(r,{...e,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:e=>(0,t.jsxs)(r,{...e,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"})]})}]);},8245,e=>{var t=e.i(71645);let r=new Set();function n(){for(let e of r)e();}function i(e,t=60){window.requestAnimationFrame(()=>{if((e===null||e===void 0?void 0:e.isConnected)===!0){if(null===e.closest("[inert]"))return void e.focus();t>1&&i(e,t-1);}});}e.s(["m",0,i,"W",0,function({active:e=!0,initialFocusRef:r}={}){(0,t.useEffect)(()=>{var _t$dataset$keikoModal;if(!e)return;let t=document.documentElement,o=document.activeElement,a=Number((_t$dataset$keikoModal=t.dataset.keikoModalOpenCount)!==null&&_t$dataset$keikoModal!==void 0?_t$dataset$keikoModal:"0");t.dataset.keikoModalOpenCount=String(a+1),t.dataset.keikoModalOpen="true",n();let s=void 0===r?null:window.requestAnimationFrame(()=>{var _r$current;return(_r$current=r.current)===null||_r$current===void 0?void 0:_r$current.focus();});return()=>{var _t$dataset$keikoModal2;null!==s&&window.cancelAnimationFrame(s);let e=Math.max(0,Number((_t$dataset$keikoModal2=t.dataset.keikoModalOpenCount)!==null&&_t$dataset$keikoModal2!==void 0?_t$dataset$keikoModal2:"1")-1);0===e?(delete t.dataset.keikoModalOpenCount,delete t.dataset.keikoModalOpen):t.dataset.keikoModalOpenCount=String(e),n(),i(o);};},[e,r]);},"p",0,function(){return(0,t.useSyncExternalStore)(e=>(r.add(e),()=>{r.delete(e);}),()=>"true"===document.documentElement.dataset.keikoModalOpen,()=>!1);}]);},78025,e=>{let t="DRAFT_ATTACHMENTS_UNSAVED",r="ATTACHMENT_CLEANUP_DEFERRED",n="SKILL_SELECTION_UNAVAILABLE";e.s(["F",0,r,"j",0,t,"n",0,n,"d",0,function(e){return e===t?{kind:"draft-attachments-unsaved"}:void 0===e?{kind:"none"}:e===r?{kind:"attachment-cleanup-deferred"}:e===n?{kind:"skill-selection-unavailable"}:{kind:"message",message:e};}]);},58773,12959,48915,e=>{let t,r;var n=e.i(71645);function i(e){return"object"==typeof e&&null!==e&&!Array.isArray(e);}function o(e,t,r){let n=[];for(let i of Object.keys(e))t.includes(i)||n.push(`${r}.${i} is not allowed`);return n;}e.s(["m",0,o,"s",0,i],12959);let a=/^[A-Za-z0-9][A-Za-z0-9._:-]{0,127}$/u,s=/^[a-f0-9]{64}$/u,d="#keiko-app-session=";function c(e){if(!e.startsWith(d))return;let t=e.slice(d.length);try{var r,n,c;let e=JSON.parse(decodeURIComponent(t));return(r=e,i(r)&&0===o(r,["requestId","issuedAtMs","claim"],"attestation").length&&"string"==typeof(n=r.requestId)&&n.length<=128&&a.test(n)&&Number.isSafeInteger(r.issuedAtMs)&&Number(r.issuedAtMs)>=0&&"string"==typeof(c=r.claim)&&c.length<=256&&s.test(c))?e:void 0;}catch(e){if(e instanceof SyntaxError||e instanceof URIError)return;throw e;}}e.s(["M",0,d,"$",0,c],48915);var l=e.i(20081),u=e.i(24541),p=e.i(29835),f=e.i(74952),h=e.i(92215);let x={repairSession:!1};function j(){return{readFragment:()=>window.location.hash,stripFragment:()=>{window.history.replaceState(null,"",window.location.pathname+window.location.search);},postPairing:(e,t)=>(0,h.N)("/api/coding-workbench/app-session/pair",{method:"POST",cache:"no-store",body:JSON.stringify(e),signal:AbortSignal.timeout(15e3)},{...x,correlationId:t}),postLocalSession:async e=>{let t=AbortSignal.timeout(15e3),r=await(0,h.N)("/api/coding-workbench/app-session/local-session",{method:"POST",cache:"no-store",signal:t},{...x,correlationId:e});return await m(e,t),r;}};}async function m(t,r){try{let{createLocalBrowserApprovalClient:t}=await g(e.A(37447),r);await g(t().restore(r),r);}catch(e){(0,u.v)(`Browser session restoration failed: ${(0,p.R)(e)}`,{correlationId:t,errorKind:(0,h.J)(e),errorEvidence:(0,f.f)(e)});}}async function M(e=j()){if(void 0===e)return!1;let t=e.readFragment();if(!t.startsWith(d))return!1;e.stripFragment();let r=(0,l.y)();try{let n=c(t);if(void 0===n)return!1;return await e.postPairing(n,r),!0;}catch(e){var _ref;return(0,u.v)(`[keiko] local app session pairing failed: ${(0,p.R)(e)}`,{correlationId:(_ref=(0,p.E)(e))!==null&&_ref!==void 0?_ref:r,errorKind:(0,h.J)(e),errorEvidence:(0,f.f)(e)}),!1;}}async function y(e,t){if((e===null||e===void 0?void 0:e.postLocalSession)===void 0)return{repaired:!1,errorKind:"unavailable"};try{return await e.postLocalSession(t),{repaired:!0};}catch(r){let e=(0,h.J)(r);return(0,u.v)(`[keiko] local app session ensure failed: ${(0,p.R)(r)}`,{correlationId:t,errorKind:e}),{repaired:!1,errorKind:e};}finally{for(let e of(S+=1,V))e();}}async function v(e=j()){return(await y(e,(0,l.y)())).repaired;}function g(e,t){return void 0===t?e:t.aborted?Promise.reject(t.reason):new Promise((r,n)=>{let i=()=>{t.removeEventListener("abort",i),n(t.reason);};t.addEventListener("abort",i,{once:!0}),e.then(e=>{t.removeEventListener("abort",i),t.aborted?n(t.reason):r(e);},e=>{t.removeEventListener("abort",i),n(e);});});}function b(e){if((e===null||e===void 0?void 0:e.aborted)===!0)return Promise.reject(e.reason);if(void 0===t){let e=(0,l.y)();t=y(j(),e).then(t=>t.repaired?{repaired:!0,correlationId:e}:{repaired:!1,correlationId:e,errorKind:t.errorKind}).finally(()=>{t=void 0;});}return g(t,e);}function A(e,t,r){(0,u.v)(`[keiko] ${e} stream session repair: ${r.outcome}`,{correlationId:t,sessionRepairReport:{...r,stream:e}});}async function w(e,t){let r=await b();return A(e,t,r.repaired?{outcome:"repair-acknowledged",repairCorrelationId:r.correlationId}:{outcome:"repair-failed",repairCorrelationId:r.correlationId,errorKind:r.errorKind}),{acknowledged:r.repaired,repairCorrelationId:r.correlationId};}async function L(){let e=await M(),t=await v();return e||t;}function k(){return r!==null&&r!==void 0?r:r=L();}let C=0,O=new Set(),S=0,V=new Set();function I(e){return O.add(e),()=>{O.delete(e);};}function H(){return C;}function E(){for(let e of(C+=1,O))e();}async function R(e=j()){return await r,!!(await M(e))&&(await v(e),E(),!0);}e.s(["codingAppSessionPairingSettled",0,function(e){return(e===null||e===void 0?void 0:e.aborted)===!0?Promise.reject(e.reason):g(k(),e);},"ensureLocalCodingAppSession",0,v,"notifyCodingAppSessionChanged",0,function(){E();},"redeemCodingAppSessionPairingNavigation",0,R,"redeemCodingAppSessionPairingOnBoot",0,k,"repairLocalCodingAppSessionForStream",0,w,"repairLocalCodingAppSessionWithEvidence",0,b,"reportStreamSessionRecovered",0,function(e,t,r){A(e,t,{outcome:"stream-repaired",repairCorrelationId:r});},"useCodingAppSessionChecks",0,function(){return(0,n.useSyncExternalStore)(e=>(V.add(e),()=>{V.delete(e);}),()=>S,()=>0);},"useCodingAppSessionRedemptions",0,function(){return(0,n.useSyncExternalStore)(I,H,()=>0);},"waitForSharedSessionWork",0,g],58773);}]);})();
1
+ (()=>{"use strict";(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,90317,(e,t,r)=>{Object.defineProperty(r,"__esModule",{value:!0});var n={bindSnapshot:function(){return l;},createAsyncLocalStorage:function(){return d;},createSnapshot:function(){return u;},getOrCreateGlobalAsyncLocalStorage:function(){return c;}};for(var i in n)Object.defineProperty(r,i,{enumerable:!0,get:n[i]});let o=Error("Invariant: AsyncLocalStorage accessed in runtime where it is not available");class a{disable(){throw o;}getStore(){}run(){throw o;}exit(){throw o;}enterWith(){throw o;}static bind(e){return e;}}let s="u">typeof globalThis&&globalThis.AsyncLocalStorage;function d(){return s?new s():new a();}function c(e){var _r$t;let t=Symbol.for(`@next/${e}@16.4.2`),r=globalThis;return(_r$t=r[t])!==null&&_r$t!==void 0?_r$t:r[t]=d();}function l(e){return s?s.bind(e):a.bind(e);}function u(){return s?s.snapshot():function(e,...t){return e(...t);};}},42344,(e,t,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"workAsyncStorageInstance",{enumerable:!0,get:function(){return n;}});let n=(0,e.r(90317).getOrCreateGlobalAsyncLocalStorage)("work-async-storage");},63599,(e,t,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"workAsyncStorage",{enumerable:!0,get:function(){return n.workAsyncStorageInstance;}});let n=e.r(42344);},70703,(e,t,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"default",{enumerable:!0,get:function(){return i;}});let n=e.r(55682)._(e.r(69093));function i(e,t){var _i$loadableGenerated;let r={};"function"==typeof e&&(r.loader=e);let i={...r,...t};return(0,n.default)({...i,modules:(_i$loadableGenerated=i.loadableGenerated)===null||_i$loadableGenerated===void 0?void 0:_i$loadableGenerated.modules});}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default);},9885,(e,t,r)=>{function n(e){return e.split("/").map(e=>encodeURIComponent(e)).join("/");}Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"encodeURIPath",{enumerable:!0,get:function(){return n;}});},67585,(e,t,r)=>{e.i(47167),Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"BailoutToCSRForNextDynamic",{enumerable:!0,get:function(){return a;}});let n=e.r(71645),i=e.r(74080);e.r(32061);let o=e.r(49354).createReactBrowserBailoutReason.bind(null,"next/dynamic");function a({children:e}){return(0,n.use)((0,i.browser)(o)),e;}},69093,(e,t,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"default",{enumerable:!0,get:function(){return c;}});let n=e.r(43476),i=e.r(71645),o=e.r(67585),a=e.r(52157);function s(e){return{default:e&&"default"in e?e.default:e};}let d={loader:()=>Promise.resolve(s(()=>null)),loading:null,ssr:!0},c=function(e){let t={...d,...e},r=(0,i.lazy)(()=>t.loader().then(s)),c=t.loading;function l(e){let s=c?(0,n.jsx)(c,{isLoading:!0,pastDelay:!0,error:null}):null,d=!t.ssr||!!t.loading,l=d?i.Suspense:i.Fragment,u=t.ssr?(0,n.jsxs)(n.Fragment,{children:["u"<typeof window?(0,n.jsx)(a.PreloadChunks,{moduleIds:t.modules}):null,(0,n.jsx)(r,{...e})]}):(0,n.jsx)(o.BailoutToCSRForNextDynamic,{children:(0,n.jsx)(r,{...e})});return(0,n.jsx)(l,{...(d?{fallback:s}:{}),children:u});}return l.displayName="LoadableComponent",l;};},52157,(e,t,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"PreloadChunks",{enumerable:!0,get:function(){return d;}});let n=e.r(43476),i=e.r(74080),o=e.r(63599),a=e.r(9885),s=e.r(43369);function d({moduleIds:e}){if("u">typeof window)return null;let t=o.workAsyncStorage.getStore();if(void 0===t)return null;let r=[];if(t.reactLoadableManifest&&e){let n=t.reactLoadableManifest;for(let t of e){if(!n[t])continue;let e=n[t].files;r.push(...e);}}if(0===r.length)return null;let c=(0,s.getAssetTokenQuery)();return(0,n.jsx)(n.Fragment,{children:r.map(e=>{let r=`${t.assetPrefix}/_next/${(0,a.encodeURIPath)(e)}${c}`;return e.endsWith(".css")?(0,n.jsx)("link",{precedence:"dynamic",href:r,rel:"stylesheet",as:"style",nonce:t.nonce},e):((0,i.preload)(r,{as:"script",fetchPriority:"low",nonce:t.nonce}),null);})});}},49354,(e,t,r)=>{Object.defineProperty(r,"__esModule",{value:!0});var n={createReactBrowserBailoutReason:function(){return a;},getReactBrowserBailoutReason:function(){return s;},isNextBrowserBailoutError:function(){return d;}};for(var i in n)Object.defineProperty(r,i,{enumerable:!0,get:n[i]});let o=Symbol.for("next.browser-bailout-reason");function a(e){return{$$typeof:o,reason:e};}function s(e){let t=e===null||e===void 0?void 0:e.cause;return(t===null||t===void 0?void 0:t.$$typeof)===o?t.reason:void 0;}function d(e){return void 0!==s(e);}},43545,e=>{var t=e.i(57269),r=e.i(47903);let n=Object.freeze({wordWrap:Object.freeze(["off","on","wordWrapColumn","bounded"]),renderWhitespace:Object.freeze(["none","selection","boundary","all"]),externalReload:Object.freeze(["prompt","autoClean","manual"]),largeFileMode:Object.freeze(["default","degraded","readonly"]),gitCommitMessagePolicy:r.S}),i=(0,t.f)([{id:"fontSize",type:"integer",defaultValue:13,scopes:Object.freeze(["user","workspace"]),effect:"live",security:"safe",minimum:8,maximum:32,description:"Monaco editor font size in CSS pixels."},{id:"tabSize",type:"integer",defaultValue:2,scopes:Object.freeze(["user","workspace"]),effect:"live",security:"safe",minimum:1,maximum:12,description:"Editor tab width."},{id:"insertSpaces",type:"boolean",defaultValue:!0,scopes:Object.freeze(["user","workspace"]),effect:"live",security:"safe",description:"Insert spaces when indentation is generated."},{id:"wordWrap",type:"enum",defaultValue:"off",scopes:Object.freeze(["user","workspace"]),effect:"live",security:"safe",enumValues:n.wordWrap,description:"Monaco word wrapping mode."},{id:"renderWhitespace",type:"enum",defaultValue:"selection",scopes:Object.freeze(["user","workspace"]),effect:"live",security:"safe",enumValues:n.renderWhitespace,description:"Whitespace visualization mode."},{id:"minimap",type:"boolean",defaultValue:!1,scopes:Object.freeze(["user"]),effect:"live",security:"safe",description:"Minimap visibility. Workspace overrides are denied to preserve dense layouts."},{id:"formatOnSave",type:"boolean",defaultValue:!1,scopes:Object.freeze(["user","workspace"]),effect:"live",security:"safe",description:"Run the existing governed formatter before save."},{id:"externalReload",type:"enum",defaultValue:"prompt",scopes:Object.freeze(["user","workspace"]),effect:"live",security:"safe",enumValues:n.externalReload,description:"Clean-buffer external reload behavior; dirty buffers still require choice."},{id:"inlineCompletion",type:"boolean",defaultValue:!1,scopes:Object.freeze(["user"]),effect:"live",security:"policyCeiling",description:"Explicit user opt-in for governed inline AI completion."},{id:"testGeneration",type:"boolean",defaultValue:!1,scopes:Object.freeze(["workspace"]),effect:"live",security:"policyCeiling",description:"Explicit workspace opt-in for governed AI test generation; generated tests still require human review."},{id:"patchApply",type:"boolean",defaultValue:!1,scopes:Object.freeze(["workspace"]),effect:"live",security:"policyCeiling",description:"Explicit workspace opt-in for governed AI patch apply; apply remains review-first and never widens delivery authority."},{id:"watcherExclusions",type:"stringArray",defaultValue:Object.freeze([".git/**","node_modules/**","dist/**"]),scopes:Object.freeze(["user","workspace"]),effect:"restart",security:"resourceBounded",maxItems:64,maxItemBytes:256,description:"Bounded root-relative watcher exclusion globs."},{id:"largeFileMode",type:"enum",defaultValue:"default",scopes:Object.freeze(["user","workspace"]),effect:"live",security:"resourceBounded",enumValues:n.largeFileMode,description:"Large-file behavior within the existing hard server size limits."},{id:"modelRetentionCount",type:"integer",defaultValue:32,scopes:Object.freeze(["user","workspace"]),effect:"live",security:"resourceBounded",minimum:4,maximum:128,description:"Maximum retained clean inactive Monaco models."},{id:"modelRetentionBytes",type:"integer",defaultValue:0x4000000,scopes:Object.freeze(["user","workspace"]),effect:"live",security:"resourceBounded",minimum:4194304,maximum:0x10000000,description:"Approximate retained clean inactive Monaco model byte budget."},{id:"keybindingOverrides",type:"stringArray",defaultValue:Object.freeze([]),scopes:Object.freeze(["user","workspace"]),effect:"live",security:"safe",maxItems:64,maxItemBytes:192,description:"Bounded M7 keyboard shortcut override records."},{id:"debuggingEnabled",type:"boolean",defaultValue:!1,scopes:Object.freeze(["workspace"]),effect:"live",security:"policyCeiling",description:"Explicit workspace opt-in for governed Node.js/TypeScript debugging."},{id:"gitCommitMessagePolicy",type:"enum",defaultValue:"keiko-conventional",scopes:Object.freeze(["user","workspace"]),effect:"live",security:"safe",enumValues:n.gitCommitMessagePolicy,description:"Governed commit-message validation: Keiko Conventional or Repository Native formatting."}]);function o(e){return"object"==typeof e&&null!==e&&!Array.isArray(e);}function a(e,t){return Object.keys(e).every(e=>t.includes(e));}function s(e){let t=0;for(let r=0;r<e.length;r+=1){var _e$codePointAt;let n=(_e$codePointAt=e.codePointAt(r))!==null&&_e$codePointAt!==void 0?_e$codePointAt:0;n<=127?t+=1:n<=2047?t+=2:n>65535?(t+=4,r+=1):t+=3;}return t;}function d(e){return"number"==typeof e&&Number.isSafeInteger(e)&&e>=0;}Object.freeze(i.map(e=>e.id)),Object.freeze(["schemaVersion","sequence","kind","revision","userRevision","workspaceRevision","scope","settingIds","storeState"]);let c=/^[a-f0-9]{16,64}$/u;function l(e){return"string"==typeof e&&(0===e.length||4096>=s(e)&&e.length>0&&!e.includes("\0")&&!e.startsWith("/")&&!e.includes("\\")&&!e.split("/").some(e=>""===e||"."===e||".."===e));}function u(e){return"healthy"===e||"degraded"===e||"rescanRequired"===e||"stopped"===e;}function p(e){return"native-watch-unavailable"===e||"unsupported-recursive-watch"===e||"event-overflow"===e||"sequence-gap"===e||"ambiguous-event"===e||"unsafe-path"===e||"root-replaced"===e||"shutdown"===e;}function f(e){return void 0===e||"number"==typeof e&&Number.isFinite(e)&&e>=0;}let h=Object.freeze(["schemaVersion","sequence","health","rootToken","nativeWatcherCount","subscriberCount","queueDepth","replayCapacity","replayOldestSequence","eventCount","requiresSnapshot","degradedReasons"]);function x(e,t,r,n,i,o,a="keiko"){return{id:e,labelKey:t,descriptionKey:`${t}.description`,scope:r,contexts:Object.freeze([...n]),defaultBindings:Object.freeze([...i]),rebindable:o,dispatchOwner:a};}let j=(0,t.f)([x("undo","command.undo","global",["global"],["CtrlOrMeta+Z"],!0),x("redo","command.redo","global",["global"],["CtrlOrMeta+Shift+Z"],!0),x("focus-status","command.focusStatus","global",["global"],["Alt+S"],!0),x("focus-workspace-search","command.focusWorkspaceSearch","global",["global"],["CtrlOrMeta+Shift+F"],!0),x("workspace.commands","command.workspaceCommands","global",["global","editor"],["CtrlOrMeta+Shift+P"],!0),x("open-editor-settings","command.openEditorSettings","settings",["settings","editor"],["CtrlOrMeta+,"],!0),x("view.splitRight","command.splitEditorRight","editor",["editor"],["CtrlOrMeta+Alt+\\"],!0),x("view.splitDown","command.splitEditorDown","editor",["editor"],[],!0),x("view.closeSplit","command.closeEditorSplit","editor",["editor"],[],!0),x("tab.next","command.nextEditorTab","editor",["editor"],["CtrlOrMeta+Alt+ArrowRight"],!0),x("tab.prev","command.previousEditorTab","editor",["editor"],["CtrlOrMeta+Alt+ArrowLeft"],!0),x("tab.close","command.closeEditorTab","editor",["editor"],[],!0),x("tab.reopenClosed","command.reopenClosedEditor","editor",["editor"],["CtrlOrMeta+Alt+R"],!0),x("files.saveAll","command.saveAllEditors","editor",["editor"],["CtrlOrMeta+Alt+S"],!0),x("editor.save","command.editorSave","editor",["editor","monaco"],["CtrlOrMeta+S"],!1,"monaco"),x("editor.find","command.editorFind","editor",["editor","monaco"],["CtrlOrMeta+F"],!1,"monaco"),x("editor.format","command.editorFormat","editor",["editor","monaco"],["Shift+Alt+F"],!1,"monaco"),x("editor.renameSymbol","command.editorRenameSymbol","editor",["editor","monaco"],["F2"],!1,"monaco"),x("editor.action.accessibilityHelp","command.editorAccessibilityHelp","editor",["editor","monaco"],["Alt+F1"],!1,"monaco")]),m=Object.freeze(["CtrlOrMeta+Q","CtrlOrMeta+W","CtrlOrMeta+R","CtrlOrMeta+T","CtrlOrMeta+Shift+N"]),M=Object.freeze(["CtrlOrMeta","Ctrl","Meta","Alt","Shift"]);function y(e,t=j){return t.find(t=>t.id===e);}function v(e){var _r$at,_t$,_find;var t;let r=e.split("+").map(e=>e.trim());if(0===r.length||r.some(e=>0===e.length))return;let n=void 0!==b(t=(_r$at=r.at(-1))!==null&&_r$at!==void 0?_r$at:"")||!function(e){if(0===e.length)return!1;for(let t of e)if(!C.has(t))return!1;return!0;}(t)?void 0:1===t.length?t.toUpperCase():((_t$=t[0])===null||_t$===void 0?void 0:_t$.toLowerCase())==="f"&&t.slice(1).split("").every(A)?`F${t.slice(1)}`:(_find=["ArrowDown","ArrowLeft","ArrowRight","ArrowUp","Esc","Space"].find(e=>e.toLowerCase()===t.toLowerCase()))!==null&&_find!==void 0?_find:t;if(void 0===n)return;let i=function(e){let t=[],r=new Set();for(let n of e){let e=b(n);if(void 0===e||r.has(e)||function(e,t){let r=["CtrlOrMeta","Ctrl","Meta"];return!!r.includes(e)&&r.some(r=>r!==e&&t.has(r));}(e,r))return;r.add(e),t.push(e);}return t.sort((e,t)=>M.indexOf(e)-M.indexOf(t)),t;}(r.slice(0,-1));return void 0===i?void 0:[...i,n].join("+");}function g(e){return[...new Set(e.split("+").map(e=>"Ctrl"===e||"Meta"===e?"CtrlOrMeta":e).map(e=>e.toLowerCase()))].join("+");}function b(e){let t=e.toLowerCase();return M.find(e=>e.toLowerCase()===t);}function A(e){return e>="0"&&e<="9";}function w(){return j.flatMap(e=>e.defaultBindings.map(t=>{var _v;return{commandId:e.id,binding:(_v=v(t))!==null&&_v!==void 0?_v:""};}));}function L(e){return function(e,t){try{var r;let n,i,o=y(e.commandId,t);if(void 0===o)return{ok:!1,reasonCode:"UNKNOWN_COMMAND"};if(s(e.binding)>192)return{ok:!1,reasonCode:"INVALID_INPUT"};let a=function(e,t){let r=v(t);if(void 0!==r)return s(k({schemaVersion:"1",commandId:e,binding:r}))>192?void 0:r;}(e.commandId,e.binding);if(void 0===a||!((n=new Set(a.split("+").slice(0,-1))).has("CtrlOrMeta")||n.has("Ctrl")||n.has("Meta")||n.has("Alt")))return{ok:!1,reasonCode:"INVALID_INPUT"};if(!o.rebindable)return{ok:!1,reasonCode:"POLICY_LOCKED"};if(i=g(a),m.some(e=>{let t=v(e);return void 0!==t&&g(t)===i;}))return{ok:!1,reasonCode:"RESERVED_KEYBINDING"};let d=(Array.isArray(e.activeBindings)?e.activeBindings:(r=e.activeBindings,Object.entries(r).map(([e,t])=>({commandId:e,binding:t})))).find(e=>function(e,t,r,n){let i=v(r.binding);if(r.commandId===e.id||void 0===i||g(i)!==g(t))return!1;let o=y(r.commandId,n);return void 0!==o&&function(e,t){if(e.contexts.includes("global")||t.contexts.includes("global")||e.contexts.some(e=>t.contexts.includes(e)))return!0;let r=new Set(["editor","monaco"]);return e.contexts.some(e=>r.has(e))&&t.contexts.some(e=>r.has(e));}(e,o);}(o,a,e,t));return void 0===d?{ok:!0,value:a}:{ok:!1,reasonCode:"KEYBINDING_COLLISION"};}catch{return{ok:!1,reasonCode:"INVALID_INPUT"};}}(e,j);}function k(e){var _v2;return[e.schemaVersion,e.commandId,(_v2=v(e.binding))!==null&&_v2!==void 0?_v2:""].join("|");}let C=new Set("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789,./;'[]`-\\");function O(e,t,r){return{schemaVersion:"1",feature:e,state:t,reasonCode:r,policyResult:"active"===t?"allowed":"denied"};}Object.freeze(["inlineCompletion","testGeneration","patchApply","verification"]),Object.freeze(["allowed","denied"]),Object.freeze(["available","missing"]),Object.freeze(["available","exhausted"]),Object.freeze(["healthy","degraded","unhealthy","unverified"]),Object.freeze(["satisfied","missing"]),Object.freeze(["unset","disabled","enabled"]),Object.freeze([function(e){return e.productSupported?void 0:O(e.feature,"disabled","PRODUCT_UNSUPPORTED");},function(e){return"denied"===e.operatorCeiling||"disabled"===e.legacyFlag?O(e.feature,"denied","OPERATOR_CEILING_DENIED"):void 0;},function(e){return"missing"===e.securityPrerequisites?O(e.feature,"denied","SECURITY_PREREQUISITE_MISSING"):void 0;},function(e){return e.explicitOptIn?void 0:O(e.feature,"available","EXPLICIT_OPT_IN_REQUIRED");},function(e){return"missing"===e.modelCapability?O(e.feature,"degraded","MODEL_CAPABILITY_MISSING"):void 0;},function(e){return"exhausted"===e.budget?O(e.feature,"degraded","BUDGET_UNAVAILABLE"):void 0;},function(e){if("healthy"!==e.providerHealth)return"unverified"===e.providerHealth?O(e.feature,"degraded","PROVIDER_UNVERIFIED"):O(e.feature,"degraded","PROVIDER_UNHEALTHY");}]),e.s(["u",0,j,"K",0,"1","m",0,i,"p",0,function(){return Object.freeze(Object.fromEntries(i.map(e=>[e.id,e.defaultValue])));},"Q",0,function(e){if(!Array.isArray(e)||e.length>64)return{ok:!1,reasonCode:"OVERSIZED"};let t=w(),r=[],n=new Set();for(let i of e){if("string"!=typeof i)return{ok:!1,reasonCode:"INVALID_INPUT"};let e=function(e){if(s(e)>192)return e;let t=e.split("|");if(3!==t.length||"1"!==t[0])return e;let[,r,n]=t;if("quick-access.files"!==r||void 0===v(n!==null&&n!==void 0?n:""))return"quick-access.commands"===r?[t[0],"workspace.commands",n].join("|"):e;}(i);if(void 0===e)continue;let o=function(e,t=w()){if(s(e)>192)return{ok:!1,reasonCode:"OVERSIZED"};let r=e.split("|");if(3!==r.length||"1"!==r[0])return{ok:!1,reasonCode:"SCHEMA_VERSION_UNSUPPORTED"};let[,n,i]=r,o=L({commandId:n,binding:i,activeBindings:t});return o.ok?{ok:!0,value:{schemaVersion:"1",commandId:n,binding:o.value}}:o;}(e,t);if(!o.ok)return o;if(n.has(o.value.commandId))return{ok:!1,reasonCode:"KEYBINDING_COLLISION"};n.add(o.value.commandId),r.push(o.value),t=[...t.filter(e=>e.commandId!==o.value.commandId),{commandId:o.value.commandId,binding:o.value.binding}];}return{ok:!0,value:Object.freeze(r)};},"v",0,function(e){try{var t,r,n,i,s,h,x,j,m,M;return t=e,o(r=t)&&a(r,["schemaVersion","sequence","kind","relativePath","oldRelativePath","entryKind","sizeBytes","modifiedAt","metadataHash","health","reason"])&&"1"===r.schemaVersion&&d(r.sequence)?("created"===(i=(n=t).kind)||"changed"===i||"deleted"===i||"renamed"===i||"rescan"===i||"overflow"===i)&&l(n.relativePath)&&(void 0===(s=n.oldRelativePath)||l(s))&&(void 0===(h=n.entryKind)||"file"===(x=h)||"directory"===x||"symlink"===x||"unknown"===x)&&f(n.sizeBytes)&&f(n.modifiedAt)&&(void 0===(j=n.metadataHash)||"string"==typeof j&&c.test(j))&&(void 0===(m=n.health)||u(m))&&(void 0===(M=n.reason)||p(M))?{ok:!0,value:t}:{ok:!1,reasonCode:"UNSAFE_PATH"}:{ok:!1,reasonCode:"INVALID_INPUT"};}catch{return{ok:!1,reasonCode:"INVALID_INPUT"};}},"q",0,function(e){try{var t,r,n,i;return t=e,o(r=t)&&a(r,h)&&"1"===r.schemaVersion&&u(r.health)&&"string"==typeof(n=r.rootToken)&&c.test(n)&&d((i=r).sequence)&&d(i.nativeWatcherCount)&&d(i.subscriberCount)&&d(i.queueDepth)&&d(i.replayCapacity)&&d(i.replayOldestSequence)&&d(i.eventCount)&&"boolean"==typeof r.requiresSnapshot&&Array.isArray(r.degradedReasons)&&t.degradedReasons.every(p)?{ok:!0,value:{...t,degradedReasons:Object.freeze([...t.degradedReasons])}}:{ok:!1,reasonCode:"INVALID_INPUT"};}catch{return{ok:!1,reasonCode:"INVALID_INPUT"};}},"G",0,k,"D",0,L]);},47903,e=>{var t=e.i(57269);let r=Object.freeze(["keiko-conventional","repository-native"]),n=Object.freeze(["empty-subject","missing-conventional-prefix","disallowed-type","subject-too-long","missing-issue-key","missing-signoff"]);(0,t.f)({conventionalCommit:{enabled:!0,allowedTypes:["feat","fix","chore","docs","refactor","test","build","ci","perf","style","revert"]},requireIssueKey:{enabled:!1,pattern:""},requireSignoff:!1,subjectMaxLength:72}),(0,t.f)({conventionalCommit:{enabled:!1,allowedTypes:[]},requireIssueKey:{enabled:!1,pattern:""},requireSignoff:!1,subjectMaxLength:Number.MAX_SAFE_INTEGER});let i=e=>"string"==typeof e&&n.includes(e);e.s(["S",0,r,"t",0,n,"e",0,i]);},17161,e=>{var t=e.i(43476);function r({size:e=18,sw:n=1.6,vb:i=24,fill:o,className:a,style:s,children:d,d:c,"aria-hidden":l="true"}){let u=void 0!==o;return(0,t.jsx)("svg",{className:a,width:e,height:e,viewBox:`0 0 ${String(i)} ${String(i)}`,fill:u?o:"none",stroke:u?"none":"currentColor",strokeWidth:n,strokeLinecap:"round",strokeLinejoin:"round",style:s,"aria-hidden":l,children:void 0!==c?(0,t.jsx)("path",{d:c}):d});}function n(){return(0,t.jsxs)(t.Fragment,{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"})]});}e.s(["f",0,{lock:e=>(0,t.jsxs)(r,{...e,children:[(0,t.jsx)("rect",{x:"5",y:"10",width:"14",height:"11",rx:"2"}),(0,t.jsx)("path",{d:"M8 10V7a4 4 0 0 1 8 0v3"}),(0,t.jsx)("path",{d:"M12 14v3"})]}),unlock:e=>(0,t.jsxs)(r,{...e,children:[(0,t.jsx)("rect",{x:"5",y:"10",width:"14",height:"11",rx:"2"}),(0,t.jsx)("path",{d:"M8 10V7a4 4 0 0 1 8 0"}),(0,t.jsx)("path",{d:"M12 14v3"})]}),newChat:e=>(0,t.jsxs)(r,{...e,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:e=>(0,t.jsxs)(r,{...e,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:e=>(0,t.jsxs)(r,{...e,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:e=>(0,t.jsxs)(r,{...e,children:[(0,t.jsx)("circle",{cx:"12",cy:"12",r:"8"}),(0,t.jsx)("path",{d:"M12 7.5V12l3 2"})]}),mobile:e=>(0,t.jsxs)(r,{...e,children:[(0,t.jsx)("rect",{x:"7",y:"3",width:"10",height:"18",rx:"2.5"}),(0,t.jsx)("path",{d:"M11 18h2"})]}),folder:e=>(0,t.jsxs)(r,{...e,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:e=>(0,t.jsxs)(r,{...e,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:e=>(0,t.jsxs)(r,{...e,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:e=>(0,t.jsxs)(r,{...e,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:e=>(0,t.jsxs)(r,{...e,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:e=>(0,t.jsx)(r,{...e,children:(0,t.jsx)(n,{})}),agents:e=>(0,t.jsxs)(r,{...e,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:e=>(0,t.jsxs)(r,{...e,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:e=>(0,t.jsx)(r,{...e,d:"M12 5v14M5 12h14"}),chevron:e=>(0,t.jsx)(r,{...e,d:"M6 9l6 6 6-6"}),chevronR:e=>(0,t.jsx)(r,{...e,d:"M9 6l6 6-6 6"}),mic:e=>(0,t.jsxs)(r,{...e,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:e=>(0,t.jsx)(r,{...e,d:"M12 19V5M6 11l6-6 6 6"}),spark:e=>(0,t.jsx)(r,{...e,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:e=>(0,t.jsx)(r,{...e,d:"M9 3h6l-1 5 3 3-5 1-1 8-1-8-5-1 3-3z"}),brain:e=>(0,t.jsxs)(r,{...e,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:e=>(0,t.jsxs)(r,{...e,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"})]}),codingHistory:e=>(0,t.jsx)(r,{...e,d:"M13.2 4.5h6.3v4h-15v-4h6.3M6 8.5v11h12v-11M10 12l-2 2 2 2m4-4 2 2-2 2"}),archive:e=>(0,t.jsxs)(r,{...e,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:e=>(0,t.jsxs)(r,{...e,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:e=>(0,t.jsxs)(r,{...e,children:[(0,t.jsx)("path",{d:"M7 14 H10.4"}),(0,t.jsx)("path",{d:"M13.6 14 H17"})]}),expand:e=>(0,t.jsx)(r,{...e,d:"M4 9V4h5M20 15v5h-5M20 9V4h-5M4 15v5h5"}),back:e=>(0,t.jsx)(r,{...e,d:"M15 6l-6 6 6 6"}),fwd:e=>(0,t.jsx)(r,{...e,d:"M9 6l6 6-6 6"}),drag:e=>(0,t.jsxs)(r,{...e,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:e=>(0,t.jsxs)(r,{...e,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:e=>(0,t.jsxs)(r,{...e,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:e=>(0,t.jsx)(r,{...e,d:"M5 12.5l4.5 4.5L19 6.5"}),copy:e=>(0,t.jsxs)(r,{...e,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:e=>(0,t.jsxs)(r,{...e,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:e=>(0,t.jsxs)(r,{...e,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:e=>(0,t.jsxs)(r,{...e,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:e=>(0,t.jsxs)(r,{...e,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:e=>(0,t.jsxs)(r,{...e,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:e=>(0,t.jsx)(r,{...e,d:"M12 4v6M9 7h6M5 17h14"}),commit:e=>(0,t.jsxs)(r,{...e,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:e=>(0,t.jsxs)(r,{...e,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:e=>(0,t.jsxs)(r,{...e,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:e=>(0,t.jsxs)(r,{...e,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:e=>(0,t.jsxs)(r,{...e,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"})]}),codingWorkbench:e=>(0,t.jsxs)(r,{...e,children:[(0,t.jsx)(n,{}),(0,t.jsx)("path",{d:"M16.4 6.5 L17 8 L18.5 8.6 L17 9.2 L16.4 10.7 L15.8 9.2 L14.3 8.6 L15.8 8 Z"})]}),regenerate:e=>(0,t.jsxs)(r,{...e,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:e=>(0,t.jsxs)(r,{...e,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:e=>(0,t.jsxs)(r,{...e,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:e=>(0,t.jsxs)(r,{...e,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:e=>(0,t.jsxs)(r,{...e,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:e=>(0,t.jsx)(r,{...e,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:e=>(0,t.jsxs)(r,{...e,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:e=>(0,t.jsxs)(r,{...e,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:e=>(0,t.jsxs)(r,{...e,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:e=>(0,t.jsxs)(r,{...e,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:e=>(0,t.jsx)(r,{...e,children:(0,t.jsx)("path",{d:"M8 9l-3 3 3 3M16 9l3 3-3 3M13.5 6l-3 12"})}),gear:e=>(0,t.jsxs)(r,{...e,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:e=>(0,t.jsxs)(r,{...e,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:e=>(0,t.jsxs)(r,{...e,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:e=>(0,t.jsxs)(r,{...e,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:e=>(0,t.jsxs)(r,{...e,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:e=>(0,t.jsx)(r,{...e,d:"M13 3 5 13h5l-1 8 8-10h-5z"}),add:e=>(0,t.jsxs)(r,{...e,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:e=>(0,t.jsxs)(r,{...e,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:e=>(0,t.jsxs)(r,{...e,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:e=>(0,t.jsx)(r,{...e,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:e=>(0,t.jsxs)(r,{...e,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:e=>(0,t.jsxs)(r,{...e,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:e=>(0,t.jsx)(r,{...e,d:"M3 12h3l2.5-7 5 14 2.5-7H21"}),user:e=>(0,t.jsxs)(r,{...e,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:e=>(0,t.jsxs)(r,{...e,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:e=>(0,t.jsxs)(r,{...e,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"})]})}]);},8245,e=>{var t=e.i(71645);let r=new Set();function n(){for(let e of r)e();}function i(e,t=60){window.requestAnimationFrame(()=>{if((e===null||e===void 0?void 0:e.isConnected)===!0){if(null===e.closest("[inert]"))return void e.focus();t>1&&i(e,t-1);}});}e.s(["m",0,i,"W",0,function({active:e=!0,initialFocusRef:r}={}){(0,t.useEffect)(()=>{var _t$dataset$keikoModal;if(!e)return;let t=document.documentElement,o=document.activeElement,a=Number((_t$dataset$keikoModal=t.dataset.keikoModalOpenCount)!==null&&_t$dataset$keikoModal!==void 0?_t$dataset$keikoModal:"0");t.dataset.keikoModalOpenCount=String(a+1),t.dataset.keikoModalOpen="true",n();let s=void 0===r?null:window.requestAnimationFrame(()=>{var _r$current;return(_r$current=r.current)===null||_r$current===void 0?void 0:_r$current.focus();});return()=>{var _t$dataset$keikoModal2;null!==s&&window.cancelAnimationFrame(s);let e=Math.max(0,Number((_t$dataset$keikoModal2=t.dataset.keikoModalOpenCount)!==null&&_t$dataset$keikoModal2!==void 0?_t$dataset$keikoModal2:"1")-1);0===e?(delete t.dataset.keikoModalOpenCount,delete t.dataset.keikoModalOpen):t.dataset.keikoModalOpenCount=String(e),n(),i(o);};},[e,r]);},"p",0,function(){return(0,t.useSyncExternalStore)(e=>(r.add(e),()=>{r.delete(e);}),()=>"true"===document.documentElement.dataset.keikoModalOpen,()=>!1);}]);},78025,e=>{let t="DRAFT_ATTACHMENTS_UNSAVED",r="ATTACHMENT_CLEANUP_DEFERRED",n="SKILL_SELECTION_UNAVAILABLE";e.s(["F",0,r,"j",0,t,"n",0,n,"d",0,function(e){return e===t?{kind:"draft-attachments-unsaved"}:void 0===e?{kind:"none"}:e===r?{kind:"attachment-cleanup-deferred"}:e===n?{kind:"skill-selection-unavailable"}:{kind:"message",message:e};}]);},58773,12959,48915,e=>{let t,r;var n=e.i(71645);function i(e){return"object"==typeof e&&null!==e&&!Array.isArray(e);}function o(e,t,r){let n=[];for(let i of Object.keys(e))t.includes(i)||n.push(`${r}.${i} is not allowed`);return n;}e.s(["m",0,o,"s",0,i],12959);let a=/^[A-Za-z0-9][A-Za-z0-9._:-]{0,127}$/u,s=/^[a-f0-9]{64}$/u,d="#keiko-app-session=";function c(e){if(!e.startsWith(d))return;let t=e.slice(d.length);try{var r,n,c;let e=JSON.parse(decodeURIComponent(t));return(r=e,i(r)&&0===o(r,["requestId","issuedAtMs","claim"],"attestation").length&&"string"==typeof(n=r.requestId)&&n.length<=128&&a.test(n)&&Number.isSafeInteger(r.issuedAtMs)&&Number(r.issuedAtMs)>=0&&"string"==typeof(c=r.claim)&&c.length<=256&&s.test(c))?e:void 0;}catch(e){if(e instanceof SyntaxError||e instanceof URIError)return;throw e;}}e.s(["M",0,d,"$",0,c],48915);var l=e.i(20081),u=e.i(24541),p=e.i(29835),f=e.i(74952),h=e.i(92215);let x={repairSession:!1};function j(){return{readFragment:()=>window.location.hash,stripFragment:()=>{window.history.replaceState(null,"",window.location.pathname+window.location.search);},postPairing:(e,t)=>(0,h.N)("/api/coding-workbench/app-session/pair",{method:"POST",cache:"no-store",body:JSON.stringify(e),signal:AbortSignal.timeout(15e3)},{...x,correlationId:t}),postLocalSession:async e=>{let t=AbortSignal.timeout(15e3),r=await(0,h.N)("/api/coding-workbench/app-session/local-session",{method:"POST",cache:"no-store",signal:t},{...x,correlationId:e});return await m(e,t),r;}};}async function m(t,r){try{let{createLocalBrowserApprovalClient:t}=await g(e.A(37447),r);await g(t().restore(r),r);}catch(e){(0,u.v)(`Browser session restoration failed: ${(0,p.R)(e)}`,{correlationId:t,errorKind:(0,h.J)(e),errorEvidence:(0,f.f)(e)});}}async function M(e=j()){if(void 0===e)return!1;let t=e.readFragment();if(!t.startsWith(d))return!1;e.stripFragment();let r=(0,l.y)();try{let n=c(t);if(void 0===n)return!1;return await e.postPairing(n,r),!0;}catch(e){var _ref;return(0,u.v)(`[keiko] local app session pairing failed: ${(0,p.R)(e)}`,{correlationId:(_ref=(0,p.E)(e))!==null&&_ref!==void 0?_ref:r,errorKind:(0,h.J)(e),errorEvidence:(0,f.f)(e)}),!1;}}async function y(e,t){if((e===null||e===void 0?void 0:e.postLocalSession)===void 0)return{repaired:!1,errorKind:"unavailable"};try{return await e.postLocalSession(t),{repaired:!0};}catch(r){let e=(0,h.J)(r);return(0,u.v)(`[keiko] local app session ensure failed: ${(0,p.R)(r)}`,{correlationId:t,errorKind:e}),{repaired:!1,errorKind:e};}finally{for(let e of(S+=1,V))e();}}async function v(e=j()){return(await y(e,(0,l.y)())).repaired;}function g(e,t){return void 0===t?e:t.aborted?Promise.reject(t.reason):new Promise((r,n)=>{let i=()=>{t.removeEventListener("abort",i),n(t.reason);};t.addEventListener("abort",i,{once:!0}),e.then(e=>{t.removeEventListener("abort",i),t.aborted?n(t.reason):r(e);},e=>{t.removeEventListener("abort",i),n(e);});});}function b(e){if((e===null||e===void 0?void 0:e.aborted)===!0)return Promise.reject(e.reason);if(void 0===t){let e=(0,l.y)();t=y(j(),e).then(t=>t.repaired?{repaired:!0,correlationId:e}:{repaired:!1,correlationId:e,errorKind:t.errorKind}).finally(()=>{t=void 0;});}return g(t,e);}function A(e,t,r){(0,u.v)(`[keiko] ${e} stream session repair: ${r.outcome}`,{correlationId:t,sessionRepairReport:{...r,stream:e}});}async function w(e,t){let r=await b();return A(e,t,r.repaired?{outcome:"repair-acknowledged",repairCorrelationId:r.correlationId}:{outcome:"repair-failed",repairCorrelationId:r.correlationId,errorKind:r.errorKind}),{acknowledged:r.repaired,repairCorrelationId:r.correlationId};}async function L(){let e=await M(),t=await v();return e||t;}function k(){return r!==null&&r!==void 0?r:r=L();}let C=0,O=new Set(),S=0,V=new Set();function I(e){return O.add(e),()=>{O.delete(e);};}function H(){return C;}function E(){for(let e of(C+=1,O))e();}async function R(e=j()){return await r,!!(await M(e))&&(await v(e),E(),!0);}e.s(["codingAppSessionPairingSettled",0,function(e){return(e===null||e===void 0?void 0:e.aborted)===!0?Promise.reject(e.reason):g(k(),e);},"ensureLocalCodingAppSession",0,v,"notifyCodingAppSessionChanged",0,function(){E();},"redeemCodingAppSessionPairingNavigation",0,R,"redeemCodingAppSessionPairingOnBoot",0,k,"repairLocalCodingAppSessionForStream",0,w,"repairLocalCodingAppSessionWithEvidence",0,b,"reportStreamSessionRecovered",0,function(e,t,r){A(e,t,{outcome:"stream-repaired",repairCorrelationId:r});},"useCodingAppSessionChecks",0,function(){return(0,n.useSyncExternalStore)(e=>(V.add(e),()=>{V.delete(e);}),()=>S,()=>0);},"useCodingAppSessionRedemptions",0,function(){return(0,n.useSyncExternalStore)(I,H,()=>0);},"waitForSharedSessionWork",0,g],58773);}]);})();
@@ -1 +1 @@
1
- function _defineProperty(e,r,t){return(r=_toPropertyKey(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e;}function _toPropertyKey(t){var i=_toPrimitive(t,"string");return"symbol"==typeof i?i:i+"";}function _toPrimitive(t,r){if("object"!=typeof t||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return("string"===r?String:Number)(t);}(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,[84832,e=>{var t=e.i(43476),r=e.i(71645),i=e.i(61287),n=e.i(17161),a=e.i(60865),o=e.i(82178);let s=n.f.mic,c="cmp-voice-privacy-hint",l="cmp-voice-privacy-note";function d({level:e,compact:r=!1}){let i=Number.isFinite(e)?Math.min(1,Math.max(0,e)):0;return(0,t.jsx)("span",{className:"cmp-voice-level","aria-hidden":"true",children:(r?[.22,.44,.66]:[.18,.34,.5,.66,.82]).map((e,r)=>(0,t.jsx)("span",{className:"cmp-voice-level-bar","data-active":i>=e||i>0&&0===r?"true":"false"},e))});}function u(e,t){switch(e){case"permission-denied":return t("voice.dictation.error.permission");case"no-microphone":return t("voice.error.noMicrophone");case"unsupported":return t("voice.dictation.error.unsupported");case"unavailable":return t("voice.dictation.error.unavailable");case"negotiation-failed":return t("voice.dictation.error.negotiationFailed");case"connection-failed":return t("voice.dictation.error.connectionFailed");case"draft-too-long":return t("voice.dictation.error.draftTooLong");case"transcribe-failed":case"capture-failed":return t("voice.dictation.error.failed");}}function p({liveTranscript:e,audioLevel:r,micReady:i,heardSpeech:n,t:a}){let o=a(i?n?"voice.dictation.capturing":"voice.dictation.listening":"voice.dictation.preparingMic");return(0,t.jsxs)("div",{className:"cmp-voice-preview cmp-voice-live",role:"status","aria-live":"polite",children:[(0,t.jsx)(d,{level:i?r:0}),(0,t.jsx)("span",{children:o}),e.trim().length>0?(0,t.jsx)("span",{className:"cmp-voice-label",children:e}):null]});}function v({liveTranscript:e,t:r}){return(0,t.jsxs)("div",{className:"cmp-voice-preview cmp-voice-live",role:"status","aria-live":"polite",children:[(0,t.jsx)(d,{level:0}),(0,t.jsx)("span",{children:r("voice.dictation.finishing")}),e.trim().length>0?(0,t.jsx)("span",{className:"cmp-voice-label",children:e}):null]});}function f({t:e}){return(0,t.jsxs)("div",{className:"cmp-voice-preview",role:"status","aria-live":"polite",children:[(0,t.jsx)("span",{className:"cmp-loading-dot","aria-hidden":"true"}),e("voice.dictation.transcribing")]});}function m({error:e,retryRef:r,onRetry:i,onDiscard:n,t:a}){return(0,t.jsxs)("div",{className:"cmp-voice-preview cmp-voice-error",role:"alert","aria-atomic":"true",children:[(0,t.jsx)("p",{className:"cmp-voice-error-text",children:u(e.reason,a)}),void 0===e.correlationId?null:(0,t.jsx)("p",{className:"cmp-voice-error-text",children:a("voice.dictation.error.supportId",{correlationId:e.correlationId})}),(0,t.jsxs)("div",{className:"cmp-voice-actions",children:[(0,t.jsx)("button",{type:"button",ref:r,className:"cmp-voice-btn",onClick:i,children:a("common.tryAgain")}),(0,t.jsx)("button",{type:"button",className:"cmp-voice-btn",onClick:n,children:a("common.dismiss")})]})]});}function h({transcript:e,finalizationNote:r,textareaRef:i,onTranscriptChange:n,onInsert:o,onRetry:s,onDiscard:c,t:d}){return(0,t.jsxs)("fieldset",{className:"cmp-voice-preview",style:a.w,"aria-label":d("voice.dictation.preview"),children:[(0,t.jsx)("span",{role:"status","aria-live":"polite",className:"sr-only",children:d("voice.dictation.ready")}),(0,t.jsx)("label",{className:"cmp-voice-label",htmlFor:"cmp-voice-transcript",children:d("voice.dictation.review")}),(0,t.jsx)("textarea",{id:"cmp-voice-transcript",ref:i,className:"cmp-voice-transcript",rows:3,value:e,"aria-describedby":l,onChange:e=>n(e.target.value)}),(0,t.jsx)("p",{id:l,className:"cmp-voice-privacy",children:d("voice.dictation.privacy")}),void 0!==r?(0,t.jsx)("p",{className:"cmp-voice-privacy",children:r}):null,(0,t.jsxs)("div",{className:"cmp-voice-actions",children:[(0,t.jsx)("button",{type:"button",className:"cmp-voice-btn cmp-voice-btn-primary","aria-label":d("voice.dictation.insertAria"),disabled:0===e.trim().length,onClick:o,children:d("voice.dictation.insert")}),(0,t.jsx)("button",{type:"button",className:"cmp-voice-btn","aria-label":d("voice.dictation.rerecordAria"),onClick:s,children:d("voice.dictation.rerecord")}),(0,t.jsx)("button",{type:"button",className:"cmp-voice-btn","aria-label":d("voice.dictation.discardAria"),onClick:c,children:d("voice.dictation.discard")})]})]});}function g({phase:e,transcript:n,liveTranscript:a="",finalizationNote:o,audioLevel:s=0,heardSpeech:c=!1,micReady:l=!1,error:d,onTranscriptChange:u,onInsert:y,onDiscard:b,onRetry:k}){let w=(0,i.f)(),x=(0,r.useRef)(null),R=(0,r.useRef)(null);return((0,r.useEffect)(()=>{var _x$current,_R$current;"preview"===e?(_x$current=x.current)===null||_x$current===void 0?void 0:_x$current.focus():"error"===e&&((_R$current=R.current)===null||_R$current===void 0?void 0:_R$current.focus());},[e]),"recording"===e)?(0,t.jsx)(p,{liveTranscript:a,audioLevel:s,micReady:l,heardSpeech:c,t:w}):"finalizing"===e?(0,t.jsx)(v,{liveTranscript:a,t:w}):"transcribing"===e?(0,t.jsx)(f,{t:w}):"error"===e&&void 0!==d?(0,t.jsx)(m,{error:d,retryRef:R,onRetry:k,onDiscard:b,t:w}):"preview"!==e?null:(0,t.jsx)(h,{transcript:n,finalizationNote:o,textareaRef:x,onTranscriptChange:u,onInsert:y,onRetry:k,onDiscard:b,t:w});}e.s(["l",0,function({phase:e,onStart:r,onStop:n,buttonRef:a,compact:l=!1,insertionPending:d=!1}){let u=(0,i.f)(),p="recording"===e,v=p||"finalizing"===e,f="requesting"===e||"finalizing"===e||"transcribing"===e,m=d?u("voice.dictation.insertAria"):function(e,t){switch(e){case"requesting":return t("voice.dictation.starting");case"recording":return t("voice.dictation.stop");case"finalizing":return t("voice.dictation.finishing");case"transcribing":return t("voice.dictation.transcribing");default:return t("voice.dictation.start");}}(e,u);return(0,t.jsxs)("button",{type:"button",ref:a,className:`cmp-icon cmp-voice ui-tip${l?" cmp-mode-compact":""}`,"data-recording":v?"true":"false","data-tip":m,"aria-label":m,"aria-pressed":v,"aria-busy":f,"aria-describedby":c,"aria-disabled":f,onClick:()=>{f||(p?n():r());},children:[v?(0,t.jsx)("span",{className:o.default.cmpStop,"aria-hidden":"true"}):(0,t.jsx)(s,{size:16}),(0,t.jsx)("span",{id:c,className:"sr-only",children:u("voice.dictation.privacy")})]});},"G",0,function({error:e,emptyResult:r=!1}){let n=(0,i.f)();return void 0===e?r?(0,t.jsx)("output",{children:n("voice.dictation.empty")}):null:(0,t.jsxs)("p",{className:"cmp-voice-error-text",role:"alert",children:[u(e.reason,n),void 0===e.correlationId?null:(0,t.jsxs)(t.Fragment,{children:[" ",n("voice.dictation.error.supportId",{correlationId:e.correlationId})]})]});},"f",0,function({controller:e,onAfterDiscard:r}){return(0,t.jsx)(g,{phase:e.phase,transcript:e.transcript,liveTranscript:e.liveTranscript,finalizationNote:e.finalizationNote,audioLevel:e.audioLevel,heardSpeech:e.heardSpeech,micReady:e.micReady,error:e.error,onTranscriptChange:e.setTranscript,onInsert:e.insert,onRetry:e.retry,onDiscard:()=>{e.discard(),r();}});}]);},13493,31317,81046,79274,e=>{var t=e.i(71645),r=e.i(26428),i=e.i(95508),n=e.i(18829),a=e.i(24541),o=e.i(12541),s=e.i(89956);let c=new Set(["proxied-sdp","direct-ephemeral","disabled"]),l=["client-to-host","host-to-client"],d=["session.create","session.created","session.close","session.closed","capability.offer","capability.select","signal.sdp.offer","signal.sdp.answer","signal.ice.candidate","media.track.state","control.cancel","control.interrupt","transcript.partial","transcript.committed","transcript.discarded","playback.state","policy.decision","error"],u=new Set(["unsupported-version","invalid-message","capability-unavailable","not-allowed-for-profile","negotiation-failed","rate-limited","internal"]),p={none:[],"speech-to-text":["session.create","session.created","session.close","session.closed","capability.offer","capability.select","control.cancel","transcript.partial","transcript.committed","transcript.discarded","policy.decision","error"],"speech-output":["session.create","session.created","session.close","session.closed","capability.offer","capability.select","control.cancel","control.interrupt","playback.state","policy.decision","error"],"full-realtime":[...d]},v={none:"disabled","speech-to-text":"disabled","speech-output":"disabled","full-realtime":"proxied-sdp"},f={sessionCreateMs:1e4,signalingMs:15e3,heartbeatIntervalMs:15e3,reconnectBackoffInitialMs:500,reconnectBackoffMaxMs:1e4,maxReconnectAttempts:5},m=new Set(["protocolVersion","sessionId","seq","direction","kind","idempotencyKey","requestedProfile","negotiationMode","transcriptionLanguage","persona","chatContext"]),h=new Set(["chatId","memory","grounding"]),g=new Set(["enabled","budgetTokens"]),y=new Set(["enabled","sourceCount","kind"]),b=/[^A-Za-z0-9._-]/u,k=new Set(s.E);function w(e){return"object"==typeof e&&null!==e&&!Array.isArray(e);}function x(e){return"string"==typeof e&&e.trim().length>0;}function R(e){return"number"==typeof e&&Number.isInteger(e)&&e>=0;}function C(e,t){return Object.keys(e).every(e=>t.has(e));}function T(e){return"none"===e||"speech-to-text"===e||"speech-output"===e||"full-realtime"===e;}function _(e){return void 0===e||"string"==typeof e&&k.has(e);}function S(e){return void 0===e||"string"==typeof e&&e.length>0&&e.length<=128&&!b.test(e);}let M=["protocolVersion","sessionId","seq","direction","kind"],j=new Set([...M,"profile","controlTransport","mediaTransport","negotiationMode","providerLocality"]),I=new Set([...M,"reason"]),L=new Set([...M,"profile","capabilities"]),N=new Set([...M,"profile"]),E=new Set([...M,"sdp"]),D=new Set([...M,"candidate","sdpMid","sdpMLineIndex"]),A=new Set([...M,"track","state"]),q=new Set(M),z=new Set([...M,"atMs"]),K=new Set([...M,"text"]),P=new Set([...M,"state"]),$=new Set([...M,"decision","reason"]),O=new Set([...M,"code","correlationId"]),V=new Set(["loopback-http-sse","loopback-websocket"]),F=new Set(["none","gateway-batch","webrtc"]),B=new Set(["client-request","host-request","policy-disabled","provider-unreachable","timeout","protocol-error"]),U=new Set(["audio-in","audio-out"]),G=new Set(["negotiating","live","muted","ended"]),H=new Set(["idle","playing","paused","stopped","interrupted"]),J=new Set(["allow","deny","degrade"]),W=new Set(["speechToText","speechOutput","realtimeVoice","realtimeToolCalling"]);function Z(e,t,r){var i;C(e,I)||t.push(`${r} fields invalid`),"string"==typeof(i=e.reason)&&B.has(i)||t.push(`${r} reason invalid`);}function Q(e,t,r){var i;C(e,E)||t.push(`${r} fields invalid`),x(i=e.sdp)&&i.length<=256e3||t.push(`${r} sdp invalid`);}function X(e,t,r){C(e,q)||t.push(`${r} fields invalid`);}function Y(e,t,r){var i;C(e,K)||t.push(`${r} fields invalid`),"string"==typeof(i=e.text)&&i.length<=8192||t.push(`${r} text invalid`);}let ee={"session.create":function(e,t){var r,i,n;C(e,m)||t.push("session.create fields invalid"),(0!==e.seq||"client-to-host"!==e.direction)&&t.push("session.create envelope invalid"),x(e.idempotencyKey)||t.push("session.create idempotencyKey invalid");let a=e.requestedProfile;T(a)||t.push("session.create requestedProfile invalid"),er(e.negotiationMode)||t.push("session.create negotiationMode invalid"),r=e.negotiationMode,T(a)&&er(r)&&v[a]!==r&&t.push("session.create profile negotiation mismatch"),void 0===(i=e.transcriptionLanguage)||x(i)||t.push("session.create transcriptionLanguage invalid"),void 0!==(n=e.persona)&&"male"!==n&&"female"!==n&&"neutral"!==n&&t.push("session.create persona invalid"),!function(e){var t,r,i;if(void 0===e)return!0;return w(e)&&C(e,h)&&x(e.chatId)&&(void 0===(t=e.memory)||w(t)&&C(t,g)&&"boolean"==typeof t.enabled&&(void 0===t.budgetTokens||R(t.budgetTokens)))&&(void 0===(r=e.grounding)||w(r)&&C(r,y)&&"boolean"==typeof r.enabled&&R(r.sourceCount)&&("files"===(i=r.kind)||"knowledge"===i||"hybrid"===i||"multi"===i));}(e.chatContext)&&t.push("session.create chatContext invalid");},"session.created":function(e,t){var r,i;C(e,j)||t.push("session.created fields invalid"),T(e.profile)||t.push("session.created profile invalid"),"string"==typeof(r=e.controlTransport)&&V.has(r)||t.push("session.created controlTransport invalid"),"string"==typeof(i=e.mediaTransport)&&F.has(i)||t.push("session.created mediaTransport invalid"),er(e.negotiationMode)||t.push("session.created negotiationMode invalid"),_(e.providerLocality)||t.push("session.created providerLocality invalid");},"session.close":(e,t)=>{Z(e,t,"session.close");},"session.closed":(e,t)=>{Z(e,t,"session.closed");},"capability.offer":function(e,t){var r;C(e,L)||t.push("capability.offer fields invalid"),T(e.profile)||t.push("capability.offer profile invalid"),w(r=e.capabilities)&&C(r,W)&&"boolean"==typeof r.speechToText&&"boolean"==typeof r.speechOutput&&"boolean"==typeof r.realtimeVoice&&(void 0===r.realtimeToolCalling||"boolean"==typeof r.realtimeToolCalling)||t.push("capability.offer capabilities invalid");},"capability.select":function(e,t){C(e,N)||t.push("capability.select fields invalid"),T(e.profile)||t.push("capability.select profile invalid");},"signal.sdp.offer":(e,t)=>{Q(e,t,"signal.sdp.offer");},"signal.sdp.answer":(e,t)=>{Q(e,t,"signal.sdp.answer");},"signal.ice.candidate":function(e,t){var r,i,n;C(e,D)||t.push("signal.ice.candidate fields invalid"),"string"==typeof(r=e.candidate)&&r.length<=4096||t.push("signal.ice.candidate candidate invalid"),null==(i=e.sdpMid)||"string"==typeof i&&i.length>0&&i.length<=128||t.push("signal.ice.candidate sdpMid invalid"),null==(n=e.sdpMLineIndex)||R(n)||t.push("signal.ice.candidate sdpMLineIndex invalid");},"media.track.state":function(e,t){var r,i;C(e,A)||t.push("media.track.state fields invalid"),"string"==typeof(r=e.track)&&U.has(r)||t.push("media.track.state track invalid"),"string"==typeof(i=e.state)&&G.has(i)||t.push("media.track.state state invalid");},"control.cancel":(e,t)=>{X(e,t,"control.cancel");},"control.interrupt":function(e,t){var r;C(e,z)||t.push("control.interrupt fields invalid"),void 0===(r=e.atMs)||"number"==typeof r&&Number.isFinite(r)&&r>=0||t.push("control.interrupt atMs invalid");},"transcript.partial":(e,t)=>{Y(e,t,"transcript.partial");},"transcript.committed":(e,t)=>{Y(e,t,"transcript.committed");},"transcript.discarded":(e,t)=>{X(e,t,"transcript.discarded");},"playback.state":function(e,t){var r;C(e,P)||t.push("playback.state fields invalid"),"string"==typeof(r=e.state)&&H.has(r)||t.push("playback.state state invalid");},"policy.decision":function(e,t){var r,i;C(e,$)||t.push("policy.decision fields invalid"),"string"==typeof(r=e.decision)&&J.has(r)||t.push("policy.decision decision invalid"),void 0!==(i=e.reason)&&"no-voice-provider"!==i&&"policy-disabled"!==i&&"provider-unreachable"!==i&&t.push("policy.decision reason invalid");},error:function(e,t){var r;C(e,O)||t.push("error fields invalid"),"string"==typeof(r=e.code)&&u.has(r)||t.push("error code invalid"),S(e.correlationId)||t.push("error correlationId invalid");}};function et(e){return"string"==typeof e&&d.includes(e);}function er(e){return"string"==typeof e&&c.has(e);}function ei(e){let t=e;if(w(e)&&"error"===e.kind&&!S(e.correlationId)){let r={...e};delete r.correlationId,t=r;}return function(e){var t;if(!w(e))return{ok:!1,reasons:["message must be an object"]};let r=[];"1"!==e.protocolVersion&&r.push("protocolVersion unsupported"),x(e.sessionId)||r.push("sessionId must be a non-empty string"),R(e.seq)||r.push("seq must be a non-negative integer"),"string"==typeof(t=e.direction)&&l.includes(t)||r.push("direction invalid"),et(e.kind)||r.push("kind invalid");let{kind:i}=e;return et(i)&&ee[i](e,r),0===r.length?{ok:!0}:{ok:!1,reasons:r};}(t).ok&&function(e){return"host-to-client"===e.direction&&("error"===e.kind||"session.created"===e.kind&&"full-realtime"===e.profile&&"loopback-websocket"===e.controlTransport&&"webrtc"===e.mediaTransport&&e.negotiationMode===v["full-realtime"]&&_(e.providerLocality)||"signal.sdp.answer"===e.kind&&x(e.sdp));}(t)?t:void 0;}e.s(["$",0,f,"A",0,"1","Z",0,200,"i",0,ei,"e",0,function(e,t){return p[t].includes(e);}],31317);let en=f.signalingMs;class ea extends Error{constructor(e,t,r){super(t),_defineProperty(this,"reason",void 0),_defineProperty(this,"correlationId",void 0),this.reason=e,this.correlationId=r,this.name="VoiceLiveDictationControlError";}}let eo=[["mic_click","first_audio_level"],["stop_pressed","stt_final"],["stop_pressed","live_transcription_final"],["mic_click","live_transcription_delta"],["upload_start","upload_end"],["mic_click","session_ready"],["rtc_offer_created","sdp_answer"],["rtc_connected","session_ready"]];function es(){return"u">typeof performance&&"function"==typeof performance.now?performance.now():Date.now();}function ec(e={}){var _e$now,_e$legs;let t,r=(_e$now=e.now)!==null&&_e$now!==void 0?_e$now:es,i=e.sink,n=(_e$legs=e.legs)!==null&&_e$legs!==void 0?_e$legs:eo,a=new Map(),o=[];return{mark:function(e){let s=r();t!==null&&t!==void 0?t:t=s;let c=Math.max(0,Math.round(s-t));for(let[t,r]of(a.set(e,c),o.push({mark:e,atMs:c}),i!==null&&i!==void 0&&(_i$onMark=i.onMark)!==null&&_i$onMark!==void 0&&_i$onMark.call(i,{mark:e,atMs:c}),n)){var _i$onMark,_i$onLeg;if(r!==e)continue;let n=a.get(t);void 0!==n&&n<=c&&(i===null||i===void 0||(_i$onLeg=i.onLeg)===null||_i$onLeg===void 0?void 0:_i$onLeg.call(i,{from:t,to:r,ms:c-n}));}},legMs:function(e,t){let r=a.get(e),i=a.get(t);if(void 0!==r&&void 0!==i&&!(i<r))return i-r;},snapshot:function(){return o.slice();},reset:function(){t=void 0,a.clear(),o.length=0;}};}e.s(["f",0,ec],81046);let el="The spoken transcript is too long to send as one chat message.",ed=new TextEncoder();function eu(e){return"object"==typeof e&&null!==e&&!Array.isArray(e);}function ep(e,t){let r=e[t];return"string"==typeof r&&r.length>0?r:void 0;}function ev(e,t){let r=ep(e,t);return void 0!==r&&r.length<=256?r:void 0;}function ef(e){let t=ev(e,"item_id");if(void 0!==t)return t;let r=e.item;return eu(r)?ev(r,"id"):void 0;}function em(e){return ed.encode(e).byteLength;}function eh(e){if(256e3>=em(e))return e;let t=0,r=e.length;for(;t<r;){let i=Math.ceil((t+r)/2);256e3>=em(e.slice(0,i))?t=i:r=i-1;}let i=t>0&&/[\uD800-\uDBFF]/u.test(e.charAt(t-1))?t-1:t;return e.slice(0,i);}function eg(e){var _ep;if(eu(e))switch((_ep=ep(e,"type"))!==null&&_ep!==void 0?_ep:ep(e,"kind")){case"session.created":return{kind:"session-created"};case"session.updated":return{kind:"session-updated"};case"input_audio_buffer.speech_started":return{kind:"user-speech-start",itemId:ef(e)};case"input_audio_buffer.speech_stopped":return{kind:"user-speech-stop",itemId:ef(e)};case"conversation.item.input_audio_transcription.completed":let t=ep(e,"transcript");if(void 0!==t&&em(t)>256e3)return{kind:"user-transcript-failed",reason:"limit-exceeded",message:el,reviewText:eh(t),itemId:ef(e)};let r=t===null||t===void 0?void 0:t.trim();return void 0===r||0===r.length?void 0:{kind:"user-transcript-committed",text:r,itemId:ef(e)};case"conversation.item.input_audio_transcription.delta":let i;return void 0!==(i=ep(e,"delta"))&&em(i)>256e3?{kind:"user-transcript-failed",reason:"limit-exceeded",message:el,reviewText:eh(i),itemId:ef(e)}:void 0===i?void 0:{kind:"user-transcript-delta",delta:i,itemId:ef(e)};case"conversation.item.input_audio_transcription.failed":return{kind:"user-transcript-failed",reason:"provider",message:"Speech transcription failed.",itemId:ef(e)};case"error":return{kind:"error",message:"Real-time voice connection failed."};default:return;}}e.s(["D",0,256e3,"m",0,el,"x",0,eh,"P",0,eg,"K",0,em],79274);var ey=e.i(76826),eb=e.i(29030);let ek={phase:"idle",emptyResult:!1,transcript:"",errorReason:void 0,errorMessage:void 0,errorCorrelationId:void 0,audioLevel:0,heardSpeech:!1,micReady:!1,mode:"batch",liveTranscript:"",finalizationNote:void 0};function ew(e,t){switch(t.type){case"requesting":return{...ek,phase:"requesting",mode:t.mode};case"recording":return{...ek,phase:"recording",mode:e.mode};case"finalizing":return{...e,phase:"finalizing",audioLevel:0};case"transcribing":return{...ek,phase:"transcribing",heardSpeech:e.heardSpeech,mode:e.mode,liveTranscript:e.liveTranscript};case"audioLevel":return{...e,audioLevel:t.level};case"micReady":return{...e,micReady:!0};case"speechDetected":return{...e,heardSpeech:!0};case"liveTranscript":return{...e,liveTranscript:t.transcript};case"preview":return{...ek,phase:"preview",transcript:t.transcript,mode:e.mode,liveTranscript:e.liveTranscript,finalizationNote:t.note};case"editTranscript":return{...e,transcript:t.value};case"insertionRefused":return{...e,phase:"error",errorReason:"draft-too-long",errorMessage:"The draft has insufficient space for the completed dictation."};case"error":return{...ek,phase:"error",errorReason:t.reason,errorMessage:t.message,errorCorrelationId:t.correlationId};case"reset":return{...ek,emptyResult:!0===t.emptyResult};}}function ex(e){return e instanceof o.r?{reason:e.reason,message:e.message}:e instanceof n.a?{reason:"VOICE_UNAVAILABLE"===e.code?"unavailable":"transcribe-failed",message:e.message}:{reason:"capture-failed",message:"Dictation could not be completed."};}function eR(e){return e instanceof Error&&e.message===el?{reason:"transcribe-failed",message:el}:e instanceof ey.b?{reason:"permission-denied"===e.reason||"no-microphone"===e.reason||"unsupported"===e.reason||"negotiation-failed"===e.reason||"connection-failed"===e.reason?e.reason:"transcribe-failed",message:e.message}:e instanceof ea?{reason:e.reason,message:e.message,...(void 0===e.correlationId?{}:{correlationId:e.correlationId})}:{reason:"transcribe-failed",message:"Live dictation could not be completed."};}e.s(["j",0,function(e){var _e$error;return((_e$error=e.error)===null||_e$error===void 0?void 0:_e$error.reason)==="draft-too-long";},"y",0,function(e){let t=0===e.trim().length?0:e.trimEnd().length+1;return Math.max(0,r.R-t);},"J",0,function(e){var _e$captureOwner,_e$captureLease,_e$createRecorder,_e$transcribe,_e$realtime,_e$realtime3,_e$realtime5,_e$postRollMs,_I$current;var n,s,c,l,d;let u,p,{onInsert:v,language:f}=e,m=(0,t.useId)(),h=(_e$captureOwner=e.captureOwner)!==null&&_e$captureOwner!==void 0?_e$captureOwner:m,g=(0,t.useRef)((_e$captureLease=e.captureLease)!==null&&_e$captureLease!==void 0?_e$captureLease:Symbol("dictation-capture")),y=void 0===e.captureLease,[b,k]=(0,t.useReducer)(ew,ek),w=(0,t.useRef)(e.contextKey),x=(_e$createRecorder=e.createRecorder)!==null&&_e$createRecorder!==void 0?_e$createRecorder:o.z,R=(_e$transcribe=e.transcribe)!==null&&_e$transcribe!==void 0?_e$transcribe:i.gc,C=((_e$realtime=e.realtime)===null||_e$realtime===void 0?void 0:_e$realtime.enabled)===!0,T=(0,t.useMemo)(()=>{var _e$realtime$createTra,_e$realtime2;return(_e$realtime$createTra=(_e$realtime2=e.realtime)===null||_e$realtime2===void 0?void 0:_e$realtime2.createTransport)!==null&&_e$realtime$createTra!==void 0?_e$realtime$createTra:ey.U;},[(_e$realtime3=e.realtime)===null||_e$realtime3===void 0?void 0:_e$realtime3.createTransport]),_=(0,t.useMemo)(()=>{var _e$realtime$createCon,_e$realtime4;return(_e$realtime$createCon=(_e$realtime4=e.realtime)===null||_e$realtime4===void 0?void 0:_e$realtime4.createControlClient)!==null&&_e$realtime$createCon!==void 0?_e$realtime$createCon:()=>{var _2;let e,t,r,i,n;return t=(_2=void 0)!==null&&_2!==void 0?_2:e=>new WebSocket(e),r=crypto.randomUUID(),i=crypto.randomUUID(),n=1,{negotiate:a=>new Promise((o,s)=>{let c,l=n;n+=1;try{let r;e=t((r="https:"===location.protocol?"wss:":"ws:",`${r}//${location.host}/api/voice/transcribe/live`));}catch(e){s(new ea("unavailable",e instanceof Error?e.message:"Live dictation control could not open."));return;}let d=!1,u=!1,p=!1,v=()=>{void 0!==c&&(clearTimeout(c),c=void 0);},m=e=>{p||(p=!0,v(),s(e));};c=setTimeout(()=>{c=void 0;try{var _e;(_e=e)===null||_e===void 0||_e.close();}catch{}m(new ea("connection-failed","Live dictation negotiation timed out."));},en),e.addEventListener("error",()=>{d?m(new ea("connection-failed","Live dictation control connection was lost.")):m(new ea("unavailable","Live dictation control connection failed."));}),e.addEventListener("close",()=>{d?m(new ea("connection-failed","Live dictation control connection closed during negotiation.")):m(new ea("unavailable","Live dictation control connection was closed."));}),e.addEventListener("open",()=>{var _e2;d=!0,(_e2=e)===null||_e2===void 0?void 0:_e2.send(JSON.stringify({protocolVersion:"1",sessionId:r,seq:0,direction:"client-to-host",kind:"session.create",idempotencyKey:i,requestedProfile:"full-realtime",negotiationMode:"proxied-sdp",...(void 0!==f?{transcriptionLanguage:f}:{})}));}),e.addEventListener("message",t=>{let i;try{i=JSON.parse("string"==typeof t.data?t.data:String(t.data));}catch{m(new ea("connection-failed","Received an unparseable live dictation control message."));return;}let n=ei(i);if(void 0!==n){var s;if("error"===n.kind)return void m(new ea("negotiation-failed"===n.code?"negotiation-failed":"connection-failed",`Live dictation error: ${n.code}`,n.correlationId));if("session.created"===n.kind){var _e3;u=!0,(_e3=e)===null||_e3===void 0?void 0:_e3.send(JSON.stringify({protocolVersion:"1",sessionId:r,seq:l,direction:"client-to-host",kind:"signal.sdp.offer",sdp:a}));return;}"signal.sdp.answer"===n.kind&&u&&(s=n.sdp,p||(p=!0,v(),o(s)));}});}),close(){try{var _e4;(_e4=e)===null||_e4===void 0||_e4.close();}catch{}e=void 0;}};};},[f,(_e$realtime5=e.realtime)===null||_e$realtime5===void 0?void 0:_e$realtime5.createControlClient]),S=e.vad,M=(_e$postRollMs=e.postRollMs)!==null&&_e$postRollMs!==void 0?_e$postRollMs:350,j=(0,t.useRef)(e.latencySink);j.current=e.latencySink;let I=(0,t.useRef)(void 0),L=(_I$current=I.current)!==null&&_I$current!==void 0?_I$current:I.current=ec({sink:{onMark:e=>{var _j$current,_j$current$onMark;return(_j$current=j.current)===null||_j$current===void 0||(_j$current$onMark=_j$current.onMark)===null||_j$current$onMark===void 0?void 0:_j$current$onMark.call(_j$current,e);},onLeg:e=>{var _j$current2,_j$current2$onLeg;return(_j$current2=j.current)===null||_j$current2===void 0||(_j$current2$onLeg=_j$current2.onLeg)===null||_j$current2$onLeg===void 0?void 0:_j$current2$onLeg.call(_j$current2,e);}}}),N=(0,t.useRef)(void 0),E=(0,t.useRef)(void 0),D=(0,t.useRef)(void 0),A=(0,t.useRef)(void 0),q=(0,t.useRef)(void 0),z=(0,t.useRef)(""),K=(0,t.useRef)(void 0),P=(0,t.useRef)(void 0),$=(0,t.useRef)(!1),O=(0,t.useRef)(!1),V=(0,t.useRef)(void 0),F=(0,t.useRef)(void 0),B=(0,t.useRef)(!1),U=(0,t.useRef)(e.onCaptureBoundReached);U.current=e.onCaptureBoundReached;let G=(0,t.useRef)(e.onSilenceRenewalFailed);G.current=e.onSilenceRenewalFailed;let H=(0,t.useRef)(e.onSilenceRenewed);H.current=e.onSilenceRenewed;let J=(0,t.useRef)(void 0),W=(0,t.useRef)(!1),Z=(0,t.useRef)(void 0),Q=(0,t.useRef)(!0),X=(0,t.useRef)(!1),Y=(0,t.useRef)(!1),ee=(0,t.useRef)(0),et=(0,t.useCallback)(()=>{y&&(0,eb._)(g.current);},[y]),er=(0,t.useCallback)(()=>{void 0!==F.current&&(clearTimeout(F.current),F.current=void 0);},[]),eo=(0,t.useCallback)(()=>{void 0!==J.current&&(clearTimeout(J.current),J.current=void 0);},[]),es=(0,t.useCallback)(()=>{void 0!==Z.current&&(Z.current.stop(),Z.current=void 0);},[]),ed=(0,t.useCallback)(e=>{let t=V.current;void 0!==t&&(clearTimeout(t.timer),V.current=void 0,t.resolve(e));},[]),eu=(0,t.useCallback)(e=>{let t=V.current;void 0!==t&&(clearTimeout(t.timer),V.current=void 0,t.reject(e));},[]),ep=(0,t.useCallback)(()=>{var _q$current;eo(),(_q$current=q.current)!==null&&_q$current!==void 0&&_q$current.abort(),q.current=void 0;let e=V.current;void 0!==e&&(clearTimeout(e.timer),V.current=void 0);let t=A.current;A.current=void 0;let r=D.current;D.current=void 0,t!==null&&t!==void 0&&t.close(),r!==null&&r!==void 0&&r.close(),z.current="",K.current=void 0,P.current=void 0,$.current=!1,et();},[eo,et]),ev=(0,t.useCallback)(e=>{D.current!==e||!Q.current||Y.current||W.current||(O.current=!0,Y.current=!0,er(),ep(),k({type:"error",reason:"connection-failed",message:"Live dictation connection was lost."}));},[ep,er]),ef=(0,t.useCallback)(e=>{var _J$current;(_J$current=J.current)!==null&&_J$current!==void 0?_J$current:J.current=setTimeout(ev,5e3,e);},[ev]),em=(0,t.useCallback)(()=>{var _K$current;if(void 0!==P.current)return Promise.reject(Error(P.current));let e=(_K$current=K.current)===null||_K$current===void 0?void 0:_K$current.trim();return void 0!==e&&e.length>0?Promise.resolve({text:e}):new Promise((e,t)=>{let r=setTimeout(()=>{V.current=void 0;let r=z.current.trim();r.length>0?e({text:r,note:"No final transcript arrived; review the live text before inserting."}):t(Error("Live dictation did not produce a transcript."));},4e3);V.current={resolve:e,reject:t,timer:r};});},[]),eh=(0,t.useCallback)(e=>{let t=eg(e);if(void 0!==t&&Q.current&&!Y.current){if("user-transcript-delta"===t.kind){if(void 0!==P.current)return;let e=`${z.current}${t.delta}`;if(e.length>r.R){z.current="",K.current=void 0,P.current=el,k({type:"liveTranscript",transcript:""}),eu(Error(el));return;}z.current=e,$.current||($.current=!0,L.mark("live_transcription_delta"),L.mark("stt_first_delta")),k({type:"liveTranscript",transcript:z.current});return;}if("user-transcript-committed"===t.kind){if(void 0!==P.current)return;let e=t.text.trim();if(0===e.length)return;K.current=e,z.current=e,L.mark("live_transcription_final"),L.mark("stt_final"),k({type:"liveTranscript",transcript:e}),ed({text:e});return;}"user-transcript-failed"===t.kind&&(P.current=t.message,eu(Error(t.message)));}},[L,eu,ed]),eC=(0,t.useCallback)(e=>{var t,r,i;return t=Q.current,r=Y.current,i=ee.current,t&&!r&&e===i;},[]),eT=(0,t.useCallback)(()=>{var _e$requestData;let e=E.current;if(void 0===e||W.current)return;W.current=!0;let t=ee.current;L.mark("stop_pressed"),er(),es(),(_e$requestData=e.requestData)!==null&&_e$requestData!==void 0&&_e$requestData.call(e),k({type:"finalizing"}),new Promise(e=>{setTimeout(e,M);}).then(()=>{if(eC(t)&&E.current===e)return L.mark("postroll_done"),E.current=void 0,k({type:"transcribing"}),e.stop();}).then(e=>{if(void 0!==e&&eC(t)){let t;return et(),L.mark("upload_start"),R((t=Number.isInteger(e.durationMs)&&e.durationMs>0&&e.durationMs<=12e4?e.durationMs:void 0,{audio:e.audioBase64,mimeType:e.mimeType,...(void 0!==t?{durationMs:t}:{}),...(void 0!==f?{language:f}:{})}));}}).then(e=>{void 0===e||eC(t)&&(L.mark("upload_end"),L.mark("stt_final"),k({type:"preview",transcript:e.transcript}));}).catch(e=>{eC(t)&&(et(),k({type:"error",...ex(e)}));}).finally(()=>{ee.current===t&&(W.current=!1);});},[eC,er,es,f,L,M,et,R]),e_=(0,t.useCallback)(()=>{let e=D.current;if(void 0!==e&&!W.current){var _e$sendDataChannelEve;if(W.current=!0,L.mark("stop_pressed"),er(),es(),k({type:"finalizing"}),((_e$sendDataChannelEve=e.sendDataChannelEvent)===null||_e$sendDataChannelEve===void 0?void 0:_e$sendDataChannelEve.call(e,{type:"input_audio_buffer.commit"}))!==!0){ep(),W.current=!1,k({type:"error",reason:"transcribe-failed",message:"Live dictation could not be finalized."});return;}em().then(e=>{Q.current&&k({type:"preview",transcript:e.text,...(void 0!==e.note?{note:e.note}:{})});}).catch(e=>{Q.current&&k({type:"error",...eR(e)});}).finally(()=>{ep(),W.current=!1;});}},[ep,er,es,L,em]),eS=(0,t.useCallback)(()=>{void 0!==D.current?e_():eT();},[eT,e_]),eM=(0,t.useCallback)(()=>{var _N$current;if(void 0!==E.current||void 0!==D.current||X.current)return;X.current=!0,ee.current+=1;let e=ee.current;W.current=!1,Y.current=!1,L.reset(),L.mark("mic_click"),B.current=!1,k({type:"requesting",mode:"batch"}),((_N$current=N.current)!==null&&_N$current!==void 0?_N$current:N.current=x()).start({timesliceMs:250,onReady:()=>{eC(e)&&(L.mark("first_audio_level"),k({type:"micReady"}));},onAudioLevel:t=>{eC(e)&&(k({type:"audioLevel",level:t}),t>=.12&&k({type:"speechDetected"}));}}).then(t=>{var r;let i,n;eC(e)?(X.current=!1,E.current=t,L.mark("media_recorder_start"),k({type:"recording"}),r={session:t,timer:F,stillSilent:()=>{var _Z$current;return((_Z$current=Z.current)===null||_Z$current===void 0?void 0:_Z$current.available)===!0&&!B.current&&eC(e)&&!W.current;},current:()=>eC(e)&&!W.current,stop:eT,renewable:()=>{var _Z$current2;return((_Z$current2=Z.current)===null||_Z$current2===void 0?void 0:_Z$current2.available)===!0;},renewed:()=>{var _H$current;return(_H$current=H.current)===null||_H$current===void 0?void 0:_H$current.call(H);},boundReached:e=>{var _U$current;return(_U$current=U.current)===null||_U$current===void 0?void 0:_U$current.call(U,e);},failed:r=>{var _G$current;eC(e)&&!W.current&&((_G$current=G.current)!==null&&_G$current!==void 0&&_G$current.call(G,r),er(),es(),t.cancel(),E.current=void 0,et(),k({type:"error",...ex(r)}));}},i=Date.now()+119650,(n=()=>{r.timer.current=setTimeout(()=>{if(r.current()){if(!r.renewable()||!r.stillSilent()||void 0===r.session.renewSilence){var e,t;let n=i-Date.now(),a=(e=r.renewable(),t=r.session,e?void 0===t.renewSilence?"renewal-unsupported":"speech-observed":"vad-unavailable"),o=()=>{r.current()&&(r.boundReached(a),r.stop());};n>0?r.timer.current=setTimeout(o,n):o();return;}r.session.renewSilence(r.stillSilent).then(e=>{r.current()&&(void 0!==e&&(i=Date.now()+119650-e,r.renewed()),n());},r.failed);}},Math.min(6e4,Math.max(0,i-Date.now())));})(),void 0!==S&&void 0!==t.stream&&(Z.current=S.start(t.stream,t=>{if(eC(e)){if("speech-onset"===t){B.current=!0,k({type:"speechDetected"});return;}"end-of-turn"===t&&eT();}}))):t.cancel();},t=>{eC(e)&&(X.current=!1,et(),k({type:"error",...ex(t)}));});},[eC,er,es,L,x,et,eT,S]),ej=(0,t.useCallback)(()=>{if(void 0!==E.current||void 0!==D.current||X.current)return;X.current=!0,W.current=!1,Y.current=!1,z.current="",K.current=void 0,P.current=void 0,$.current=!1,L.reset(),L.mark("mic_click"),k({type:"requesting",mode:"realtime"});let e=new AbortController();q.current=e;let t=T(),r=_();A.current=r,(async(_i$onDataChannelEvent,_i$onDataChannelState,_i$onConnectionStateC,_i$onLocalVoiceActivi)=>{let i=await t.connect({signal:e.signal});if(q.current!==e||!Q.current||Y.current)return void i.close();D.current=i,L.mark("permission_granted"),L.mark("rtc_offer_created");let n=()=>q.current===e&&D.current===i;(_i$onDataChannelEvent=i.onDataChannelEvent)!==null&&_i$onDataChannelEvent!==void 0&&_i$onDataChannelEvent.call(i,e=>{n()&&eh(e);}),(_i$onDataChannelState=i.onDataChannelStateChange)!==null&&_i$onDataChannelState!==void 0&&_i$onDataChannelState.call(i,e=>{n()&&"open"===e&&L.mark("datachannel_open");}),(_i$onConnectionStateC=i.onConnectionStateChange)!==null&&_i$onConnectionStateC!==void 0&&_i$onConnectionStateC.call(i,e=>{if(n()&&Q.current&&!Y.current&&!W.current){if("connected"===e){eo(),L.mark("rtc_connected");return;}if("failed"===e||"closed"===e)return void ev(i);"disconnected"===e&&ef(i);}}),(_i$onLocalVoiceActivi=i.onLocalVoiceActivity)===null||_i$onLocalVoiceActivi===void 0?void 0:_i$onLocalVoiceActivi.call(i,e=>{n()&&Q.current&&!Y.current&&"speech-onset"===e&&(L.mark("user_speech_start"),k({type:"speechDetected"}));});let a=await r.negotiate(i.offerSdp);if(n()){if(!Q.current||Y.current){X.current=!1,ep();return;}if(await i.applyAnswer(a),n()){if(!Q.current||Y.current){X.current=!1,ep();return;}L.mark("sdp_answer"),L.mark("first_audio_level"),L.mark("session_ready"),X.current=!1,k({type:"recording"}),k({type:"micReady"}),F.current=setTimeout(()=>e_(),119650);}}})().catch(t=>{if(q.current!==e)return;X.current=!1;let r=t instanceof ea||t instanceof ey.b&&("negotiation-failed"===t.reason||"connection-failed"===t.reason);if(r&&(O.current=!0),ep(),Q.current&&!Y.current){if(r)return void k({type:"error",...eR(t),message:"Live dictation could not start. Try again to use standard dictation."});k({type:"error",...eR(t)});}});},[ep,eo,ev,eh,L,_,T,ef,e_]),eI=(0,t.useCallback)(()=>{(w.current=e.contextKey,(0,eb.e)(h,g.current))?C&&!O.current?ej():eM():k({type:"error",reason:"unavailable",message:"The microphone is active in another chat."});},[h,e.contextKey,C,eM,ej]),eL=(0,t.useCallback)(()=>{var _E$current;Y.current=!0,ee.current+=1,W.current=!1,er(),es(),(_E$current=E.current)!==null&&_E$current!==void 0&&_E$current.cancel(),E.current=void 0,ep(),et(),X.current=!1,k({type:"reset"});},[ep,er,es,et]),eN=(0,t.useCallback)(()=>{eL();},[eL]);n=e.contextKey,s=eL,u=(0,t.useRef)(n),(0,t.useLayoutEffect)(()=>{u.current!==n&&(u.current=n,s(),(0,a.v)("Composer dictation reset after a conversation change.",{composerActivity:"dictation-context-changed"}));},[s,n]);let eE=(0,t.useCallback)(()=>{eL(),eI();},[eL,eI]),eD=(0,t.useCallback)(()=>{var _e$availableCharacter;let t=b.transcript.trim();if(t.length>((_e$availableCharacter=e.availableCharacters)!==null&&_e$availableCharacter!==void 0?_e$availableCharacter:r.R)){k({type:"insertionRefused"}),(0,a.v)("Composer dictation exceeds the remaining input capacity.",{composerActivity:"input-limit"});return;}t.length>0&&v(t),k({type:"reset",emptyResult:!0===e.insertOnComplete&&0===t.length}),(0,a.v)("Composer dictation completed.",{composerActivity:t.length>0?"dictation-inserted":"dictation-empty"});},[v,e.availableCharacters,e.insertOnComplete,b.transcript]),eA=(0,t.useCallback)(()=>{"draft-too-long"===b.errorReason?eD():eI();},[eD,eI,b.errorReason]);c=!0===e.insertOnComplete&&w.current===e.contextKey,l=b,d=eD,p=(0,t.useRef)(!1),(0,t.useEffect)(()=>{if("preview"!==l.phase){p.current=!1;return;}c&&!p.current&&(p.current=!0,d());},[c,l.phase,l.transcript,d]);let eq=(0,t.useCallback)(e=>{k({type:"editTranscript",value:e});},[]);return(0,t.useEffect)(()=>(Q.current=!0,()=>{var _E$current2;Q.current=!1,void 0!==F.current&&(clearTimeout(F.current),F.current=void 0),void 0!==Z.current&&(Z.current.stop(),Z.current=void 0),(_E$current2=E.current)!==null&&_E$current2!==void 0&&_E$current2.cancel(),E.current=void 0,ep(),et();}),[ep,et]),{phase:b.phase,emptyResult:b.emptyResult,mode:b.mode,transcript:b.transcript,liveTranscript:b.liveTranscript,finalizationNote:b.finalizationNote,error:void 0!==b.errorReason&&void 0!==b.errorMessage?{reason:b.errorReason,message:b.errorMessage,...(void 0===b.errorCorrelationId?{}:{correlationId:b.errorCorrelationId})}:void 0,audioLevel:b.audioLevel,heardSpeech:b.heardSpeech,micReady:b.micReady,busy:"requesting"===b.phase||"recording"===b.phase||"finalizing"===b.phase||"transcribing"===b.phase,start:eA,stop:eS,cancel:eL,retry:"draft-too-long"===b.errorReason?eD:eE,discard:eN,insert:eD,setTranscript:eq};}],13493);},2268,92902,e=>{var t=e.i(71645),r=e.i(20081),i=e.i(24541);e.s(["f",0,function(e,n){let a=(0,t.useRef)(!0),o=(0,t.useCallback)(t=>{if(e.current=t,null===t)return;let n=e=>function(e,t,n){var a;if(e.target===t&&!e.defaultPrevented){if(!e.isComposing&&!(a=e).shiftKey&&!a.altKey&&!a.ctrlKey&&!a.metaKey&&("Home"===e.key||"End"===e.key)){let a;e.preventDefault(),n.current="End"===e.key,t.scrollTo({top:n.current?t.scrollHeight:0,behavior:"instant"}),a=(0,r.y)(),(0,i.v)("Transcript navigation started.",{correlationId:a,stageReport:{stage:"transcript navigation",phase:"started",ordinal:1}}),(0,i.v)("Transcript navigation settled.",{correlationId:a,stageReport:{stage:"transcript navigation",phase:"settled",ordinal:1,durationMs:0}});}}}(e,t,a);return t.addEventListener("keydown",n),()=>{t.removeEventListener("keydown",n),e.current===t&&(e.current=null);};},[e,a]),s=(0,t.useCallback)(()=>{let t=e.current;null!==t&&a.current&&(t.scrollTop=t.scrollHeight);},[e]),c=(0,t.useCallback)(()=>{let t=e.current;null!==t&&(a.current=t.scrollHeight-t.scrollTop-t.clientHeight<=64);},[e]),l=(0,t.useCallback)(()=>{a.current=!0,s();},[s]);return(0,t.useEffect)(()=>{s();},[n,s]),(0,t.useMemo)(()=>({stickRef:a,onScroll:c,regionRef:o,resume:l}),[c,o,l]);}],2268);var n=e.i(43476);e.s(["r",0,function({value:e,placeholder:t,onChange:r,onKeyDown:i,onSelect:a,textareaRef:o,id:s,ariaLabel:c,ariaControls:l,disabled:d,maxLength:u,aboveInput:p,belowInput:v,footer:f,input:m}){return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("div",{className:"cmp-input-stack",children:[p,(0,n.jsx)("div",{className:"cmp-input-combobox",children:m!==null&&m!==void 0?m:(0,n.jsx)("textarea",{id:s,className:"cmp-input",ref:o,rows:2,value:e,"aria-label":c,"aria-controls":l,placeholder:t,disabled:d,maxLength:u,"data-shell-chord-bypass":"",onChange:r,onSelect:a,onKeyDown:i})}),v]}),(0,n.jsx)("div",{className:"cmp-footer-row",children:f})]});},"Q",0,function(e){var _e$nativeEvent;return!(e.isComposing||(_e$nativeEvent=e.nativeEvent)!==null&&_e$nativeEvent!==void 0&&_e$nativeEvent.isComposing)&&"Enter"===e.key&&!e.shiftKey&&(e.preventDefault(),!0);},"x",0,function(e,r){(0,t.useEffect)(()=>{let t=e.current;null!==t&&(t.style.height="auto",t.style.height=`${String(Math.min(t.scrollHeight,220))}px`);},[e,r]);}],92902);}],82178,e=>{e.v({cmpStatus:"D2PGEG_cmpStatus",cmpStop:"D2PGEG_cmpStop",cmpWaveform:"D2PGEG_cmpWaveform"});}]);
1
+ function _defineProperty(e,r,t){return(r=_toPropertyKey(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e;}function _toPropertyKey(t){var i=_toPrimitive(t,"string");return"symbol"==typeof i?i:i+"";}function _toPrimitive(t,e){if("object"!=typeof t||!t)return t;var r;if("undefined"!=typeof Symbol&&void 0!==(r=t[Symbol.toPrimitive])){var i=r.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return("string"===e?String:Number)(t);}(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,[84832,e=>{var t=e.i(43476),r=e.i(71645),i=e.i(61287),n=e.i(17161),a=e.i(60865),o=e.i(82178);let s=n.f.mic,c="cmp-voice-privacy-hint",l="cmp-voice-privacy-note";function d({level:e,compact:r=!1}){let i=Number.isFinite(e)?Math.min(1,Math.max(0,e)):0;return(0,t.jsx)("span",{className:"cmp-voice-level","aria-hidden":"true",children:(r?[.22,.44,.66]:[.18,.34,.5,.66,.82]).map((e,r)=>(0,t.jsx)("span",{className:"cmp-voice-level-bar","data-active":i>=e||i>0&&0===r?"true":"false"},e))});}function u(e,t){switch(e){case"permission-denied":return t("voice.dictation.error.permission");case"no-microphone":return t("voice.error.noMicrophone");case"unsupported":return t("voice.dictation.error.unsupported");case"unavailable":return t("voice.dictation.error.unavailable");case"negotiation-failed":return t("voice.dictation.error.negotiationFailed");case"connection-failed":return t("voice.dictation.error.connectionFailed");case"draft-too-long":return t("voice.dictation.error.draftTooLong");case"transcribe-failed":case"capture-failed":return t("voice.dictation.error.failed");}}function p({liveTranscript:e,audioLevel:r,micReady:i,heardSpeech:n,t:a}){let o=a(i?n?"voice.dictation.capturing":"voice.dictation.listening":"voice.dictation.preparingMic");return(0,t.jsxs)("div",{className:"cmp-voice-preview cmp-voice-live",role:"status","aria-live":"polite",children:[(0,t.jsx)(d,{level:i?r:0}),(0,t.jsx)("span",{children:o}),e.trim().length>0?(0,t.jsx)("span",{className:"cmp-voice-label",children:e}):null]});}function v({liveTranscript:e,t:r}){return(0,t.jsxs)("div",{className:"cmp-voice-preview cmp-voice-live",role:"status","aria-live":"polite",children:[(0,t.jsx)(d,{level:0}),(0,t.jsx)("span",{children:r("voice.dictation.finishing")}),e.trim().length>0?(0,t.jsx)("span",{className:"cmp-voice-label",children:e}):null]});}function f({t:e}){return(0,t.jsxs)("div",{className:"cmp-voice-preview",role:"status","aria-live":"polite",children:[(0,t.jsx)("span",{className:"cmp-loading-dot","aria-hidden":"true"}),e("voice.dictation.transcribing")]});}function m({error:e,retryRef:r,onRetry:i,onDiscard:n,t:a}){return(0,t.jsxs)("div",{className:"cmp-voice-preview cmp-voice-error",role:"alert","aria-atomic":"true",children:[(0,t.jsx)("p",{className:"cmp-voice-error-text",children:u(e.reason,a)}),void 0===e.correlationId?null:(0,t.jsx)("p",{className:"cmp-voice-error-text",children:a("voice.dictation.error.supportId",{correlationId:e.correlationId})}),(0,t.jsxs)("div",{className:"cmp-voice-actions",children:[(0,t.jsx)("button",{type:"button",ref:r,className:"cmp-voice-btn",onClick:i,children:a("common.tryAgain")}),(0,t.jsx)("button",{type:"button",className:"cmp-voice-btn",onClick:n,children:a("common.dismiss")})]})]});}function h({transcript:e,finalizationNote:r,textareaRef:i,onTranscriptChange:n,onInsert:o,onRetry:s,onDiscard:c,t:d}){return(0,t.jsxs)("fieldset",{className:"cmp-voice-preview",style:a.w,"aria-label":d("voice.dictation.preview"),children:[(0,t.jsx)("span",{role:"status","aria-live":"polite",className:"sr-only",children:d("voice.dictation.ready")}),(0,t.jsx)("label",{className:"cmp-voice-label",htmlFor:"cmp-voice-transcript",children:d("voice.dictation.review")}),(0,t.jsx)("textarea",{id:"cmp-voice-transcript",ref:i,className:"cmp-voice-transcript",rows:3,value:e,"aria-describedby":l,onChange:e=>n(e.target.value)}),(0,t.jsx)("p",{id:l,className:"cmp-voice-privacy",children:d("voice.dictation.privacy")}),void 0!==r?(0,t.jsx)("p",{className:"cmp-voice-privacy",children:r}):null,(0,t.jsxs)("div",{className:"cmp-voice-actions",children:[(0,t.jsx)("button",{type:"button",className:"cmp-voice-btn cmp-voice-btn-primary","aria-label":d("voice.dictation.insertAria"),disabled:0===e.trim().length,onClick:o,children:d("voice.dictation.insert")}),(0,t.jsx)("button",{type:"button",className:"cmp-voice-btn","aria-label":d("voice.dictation.rerecordAria"),onClick:s,children:d("voice.dictation.rerecord")}),(0,t.jsx)("button",{type:"button",className:"cmp-voice-btn","aria-label":d("voice.dictation.discardAria"),onClick:c,children:d("voice.dictation.discard")})]})]});}function g({phase:e,transcript:n,liveTranscript:a="",finalizationNote:o,audioLevel:s=0,heardSpeech:c=!1,micReady:l=!1,error:d,onTranscriptChange:u,onInsert:y,onDiscard:b,onRetry:k}){let w=(0,i.f)(),x=(0,r.useRef)(null),R=(0,r.useRef)(null);return((0,r.useEffect)(()=>{var _x$current,_R$current;"preview"===e?(_x$current=x.current)===null||_x$current===void 0?void 0:_x$current.focus():"error"===e&&((_R$current=R.current)===null||_R$current===void 0?void 0:_R$current.focus());},[e]),"recording"===e)?(0,t.jsx)(p,{liveTranscript:a,audioLevel:s,micReady:l,heardSpeech:c,t:w}):"finalizing"===e?(0,t.jsx)(v,{liveTranscript:a,t:w}):"transcribing"===e?(0,t.jsx)(f,{t:w}):"error"===e&&void 0!==d?(0,t.jsx)(m,{error:d,retryRef:R,onRetry:k,onDiscard:b,t:w}):"preview"!==e?null:(0,t.jsx)(h,{transcript:n,finalizationNote:o,textareaRef:x,onTranscriptChange:u,onInsert:y,onRetry:k,onDiscard:b,t:w});}e.s(["l",0,function({phase:e,onStart:r,onStop:n,buttonRef:a,compact:l=!1,insertionPending:d=!1}){let u=(0,i.f)(),p="recording"===e,v=p||"finalizing"===e,f="requesting"===e||"finalizing"===e||"transcribing"===e,m=d?u("voice.dictation.insertAria"):function(e,t){switch(e){case"requesting":return t("voice.dictation.starting");case"recording":return t("voice.dictation.stop");case"finalizing":return t("voice.dictation.finishing");case"transcribing":return t("voice.dictation.transcribing");default:return t("voice.dictation.start");}}(e,u);return(0,t.jsxs)("button",{type:"button",ref:a,className:`cmp-icon cmp-voice ui-tip${l?" cmp-mode-compact":""}`,"data-recording":v?"true":"false","data-tip":m,"aria-label":m,"aria-pressed":v,"aria-busy":f,"aria-describedby":c,"aria-disabled":f,onClick:()=>{f||(p?n():r());},children:[v?(0,t.jsx)("span",{className:o.default.cmpStop,"aria-hidden":"true"}):(0,t.jsx)(s,{size:16}),(0,t.jsx)("span",{id:c,className:"sr-only",children:u("voice.dictation.privacy")})]});},"G",0,function({error:e,emptyResult:r=!1}){let n=(0,i.f)();return void 0===e?r?(0,t.jsx)("output",{children:n("voice.dictation.empty")}):null:(0,t.jsxs)("p",{className:"cmp-voice-error-text",role:"alert",children:[u(e.reason,n),void 0===e.correlationId?null:(0,t.jsxs)(t.Fragment,{children:[" ",n("voice.dictation.error.supportId",{correlationId:e.correlationId})]})]});},"f",0,function({controller:e,onAfterDiscard:r}){return(0,t.jsx)(g,{phase:e.phase,transcript:e.transcript,liveTranscript:e.liveTranscript,finalizationNote:e.finalizationNote,audioLevel:e.audioLevel,heardSpeech:e.heardSpeech,micReady:e.micReady,error:e.error,onTranscriptChange:e.setTranscript,onInsert:e.insert,onRetry:e.retry,onDiscard:()=>{e.discard(),r();}});}]);},13493,31317,81046,79274,e=>{var t=e.i(71645),r=e.i(26428),i=e.i(95508),n=e.i(18829),a=e.i(24541),o=e.i(12541),s=e.i(89956);let c=new Set(["proxied-sdp","direct-ephemeral","disabled"]),l=["client-to-host","host-to-client"],d=["session.create","session.created","session.close","session.closed","capability.offer","capability.select","signal.sdp.offer","signal.sdp.answer","signal.ice.candidate","media.track.state","control.cancel","control.interrupt","transcript.partial","transcript.committed","transcript.discarded","playback.state","policy.decision","error"],u=new Set(["unsupported-version","invalid-message","capability-unavailable","not-allowed-for-profile","negotiation-failed","rate-limited","internal"]),p={none:[],"speech-to-text":["session.create","session.created","session.close","session.closed","capability.offer","capability.select","control.cancel","transcript.partial","transcript.committed","transcript.discarded","policy.decision","error"],"speech-output":["session.create","session.created","session.close","session.closed","capability.offer","capability.select","control.cancel","control.interrupt","playback.state","policy.decision","error"],"full-realtime":[...d]},v={none:"disabled","speech-to-text":"disabled","speech-output":"disabled","full-realtime":"proxied-sdp"},f={sessionCreateMs:1e4,signalingMs:15e3,heartbeatIntervalMs:15e3,reconnectBackoffInitialMs:500,reconnectBackoffMaxMs:1e4,maxReconnectAttempts:5},m=new Set(["protocolVersion","sessionId","seq","direction","kind","idempotencyKey","requestedProfile","negotiationMode","transcriptionLanguage","persona","chatContext"]),h=new Set(["chatId","memory","grounding"]),g=new Set(["enabled","budgetTokens"]),y=new Set(["enabled","sourceCount","kind"]),b=/[^A-Za-z0-9._-]/u,k=new Set(s.E);function w(e){return"object"==typeof e&&null!==e&&!Array.isArray(e);}function x(e){return"string"==typeof e&&e.trim().length>0;}function R(e){return"number"==typeof e&&Number.isInteger(e)&&e>=0;}function C(e,t){return Object.keys(e).every(e=>t.has(e));}function T(e){return"none"===e||"speech-to-text"===e||"speech-output"===e||"full-realtime"===e;}function _(e){return void 0===e||"string"==typeof e&&k.has(e);}function S(e){return void 0===e||"string"==typeof e&&e.length>0&&e.length<=128&&!b.test(e);}let M=["protocolVersion","sessionId","seq","direction","kind"],j=new Set([...M,"profile","controlTransport","mediaTransport","negotiationMode","providerLocality"]),I=new Set([...M,"reason"]),L=new Set([...M,"profile","capabilities"]),N=new Set([...M,"profile"]),E=new Set([...M,"sdp"]),D=new Set([...M,"candidate","sdpMid","sdpMLineIndex"]),A=new Set([...M,"track","state"]),q=new Set(M),z=new Set([...M,"atMs"]),K=new Set([...M,"text"]),P=new Set([...M,"state"]),$=new Set([...M,"decision","reason"]),O=new Set([...M,"code","correlationId"]),V=new Set(["loopback-http-sse","loopback-websocket"]),F=new Set(["none","gateway-batch","webrtc"]),B=new Set(["client-request","host-request","policy-disabled","provider-unreachable","timeout","protocol-error"]),U=new Set(["audio-in","audio-out"]),G=new Set(["negotiating","live","muted","ended"]),H=new Set(["idle","playing","paused","stopped","interrupted"]),J=new Set(["allow","deny","degrade"]),W=new Set(["speechToText","speechOutput","realtimeVoice","realtimeToolCalling"]);function Z(e,t,r){var i;C(e,I)||t.push(`${r} fields invalid`),"string"==typeof(i=e.reason)&&B.has(i)||t.push(`${r} reason invalid`);}function Q(e,t,r){var i;C(e,E)||t.push(`${r} fields invalid`),x(i=e.sdp)&&i.length<=256e3||t.push(`${r} sdp invalid`);}function X(e,t,r){C(e,q)||t.push(`${r} fields invalid`);}function Y(e,t,r){var i;C(e,K)||t.push(`${r} fields invalid`),"string"==typeof(i=e.text)&&i.length<=8192||t.push(`${r} text invalid`);}let ee={"session.create":function(e,t){var r,i,n;C(e,m)||t.push("session.create fields invalid"),(0!==e.seq||"client-to-host"!==e.direction)&&t.push("session.create envelope invalid"),x(e.idempotencyKey)||t.push("session.create idempotencyKey invalid");let a=e.requestedProfile;T(a)||t.push("session.create requestedProfile invalid"),er(e.negotiationMode)||t.push("session.create negotiationMode invalid"),r=e.negotiationMode,T(a)&&er(r)&&v[a]!==r&&t.push("session.create profile negotiation mismatch"),void 0===(i=e.transcriptionLanguage)||x(i)||t.push("session.create transcriptionLanguage invalid"),void 0!==(n=e.persona)&&"male"!==n&&"female"!==n&&"neutral"!==n&&t.push("session.create persona invalid"),!function(e){var t,r,i;if(void 0===e)return!0;return w(e)&&C(e,h)&&x(e.chatId)&&(void 0===(t=e.memory)||w(t)&&C(t,g)&&"boolean"==typeof t.enabled&&(void 0===t.budgetTokens||R(t.budgetTokens)))&&(void 0===(r=e.grounding)||w(r)&&C(r,y)&&"boolean"==typeof r.enabled&&R(r.sourceCount)&&("files"===(i=r.kind)||"knowledge"===i||"hybrid"===i||"multi"===i));}(e.chatContext)&&t.push("session.create chatContext invalid");},"session.created":function(e,t){var r,i;C(e,j)||t.push("session.created fields invalid"),T(e.profile)||t.push("session.created profile invalid"),"string"==typeof(r=e.controlTransport)&&V.has(r)||t.push("session.created controlTransport invalid"),"string"==typeof(i=e.mediaTransport)&&F.has(i)||t.push("session.created mediaTransport invalid"),er(e.negotiationMode)||t.push("session.created negotiationMode invalid"),_(e.providerLocality)||t.push("session.created providerLocality invalid");},"session.close":(e,t)=>{Z(e,t,"session.close");},"session.closed":(e,t)=>{Z(e,t,"session.closed");},"capability.offer":function(e,t){var r;C(e,L)||t.push("capability.offer fields invalid"),T(e.profile)||t.push("capability.offer profile invalid"),w(r=e.capabilities)&&C(r,W)&&"boolean"==typeof r.speechToText&&"boolean"==typeof r.speechOutput&&"boolean"==typeof r.realtimeVoice&&(void 0===r.realtimeToolCalling||"boolean"==typeof r.realtimeToolCalling)||t.push("capability.offer capabilities invalid");},"capability.select":function(e,t){C(e,N)||t.push("capability.select fields invalid"),T(e.profile)||t.push("capability.select profile invalid");},"signal.sdp.offer":(e,t)=>{Q(e,t,"signal.sdp.offer");},"signal.sdp.answer":(e,t)=>{Q(e,t,"signal.sdp.answer");},"signal.ice.candidate":function(e,t){var r,i,n;C(e,D)||t.push("signal.ice.candidate fields invalid"),"string"==typeof(r=e.candidate)&&r.length<=4096||t.push("signal.ice.candidate candidate invalid"),null==(i=e.sdpMid)||"string"==typeof i&&i.length>0&&i.length<=128||t.push("signal.ice.candidate sdpMid invalid"),null==(n=e.sdpMLineIndex)||R(n)||t.push("signal.ice.candidate sdpMLineIndex invalid");},"media.track.state":function(e,t){var r,i;C(e,A)||t.push("media.track.state fields invalid"),"string"==typeof(r=e.track)&&U.has(r)||t.push("media.track.state track invalid"),"string"==typeof(i=e.state)&&G.has(i)||t.push("media.track.state state invalid");},"control.cancel":(e,t)=>{X(e,t,"control.cancel");},"control.interrupt":function(e,t){var r;C(e,z)||t.push("control.interrupt fields invalid"),void 0===(r=e.atMs)||"number"==typeof r&&Number.isFinite(r)&&r>=0||t.push("control.interrupt atMs invalid");},"transcript.partial":(e,t)=>{Y(e,t,"transcript.partial");},"transcript.committed":(e,t)=>{Y(e,t,"transcript.committed");},"transcript.discarded":(e,t)=>{X(e,t,"transcript.discarded");},"playback.state":function(e,t){var r;C(e,P)||t.push("playback.state fields invalid"),"string"==typeof(r=e.state)&&H.has(r)||t.push("playback.state state invalid");},"policy.decision":function(e,t){var r,i;C(e,$)||t.push("policy.decision fields invalid"),"string"==typeof(r=e.decision)&&J.has(r)||t.push("policy.decision decision invalid"),void 0!==(i=e.reason)&&"no-voice-provider"!==i&&"policy-disabled"!==i&&"provider-unreachable"!==i&&t.push("policy.decision reason invalid");},error:function(e,t){var r;C(e,O)||t.push("error fields invalid"),"string"==typeof(r=e.code)&&u.has(r)||t.push("error code invalid"),S(e.correlationId)||t.push("error correlationId invalid");}};function et(e){return"string"==typeof e&&d.includes(e);}function er(e){return"string"==typeof e&&c.has(e);}function ei(e){let t=e;if(w(e)&&"error"===e.kind&&!S(e.correlationId)){let r={...e};delete r.correlationId,t=r;}return function(e){var t;if(!w(e))return{ok:!1,reasons:["message must be an object"]};let r=[];"1"!==e.protocolVersion&&r.push("protocolVersion unsupported"),x(e.sessionId)||r.push("sessionId must be a non-empty string"),R(e.seq)||r.push("seq must be a non-negative integer"),"string"==typeof(t=e.direction)&&l.includes(t)||r.push("direction invalid"),et(e.kind)||r.push("kind invalid");let{kind:i}=e;return et(i)&&ee[i](e,r),0===r.length?{ok:!0}:{ok:!1,reasons:r};}(t).ok&&function(e){return"host-to-client"===e.direction&&("error"===e.kind||"session.created"===e.kind&&"full-realtime"===e.profile&&"loopback-websocket"===e.controlTransport&&"webrtc"===e.mediaTransport&&e.negotiationMode===v["full-realtime"]&&_(e.providerLocality)||"signal.sdp.answer"===e.kind&&x(e.sdp));}(t)?t:void 0;}e.s(["$",0,f,"A",0,"1","Z",0,200,"i",0,ei,"e",0,function(e,t){return p[t].includes(e);}],31317);let en=f.signalingMs;class ea extends Error{constructor(e,t,r){super(t),_defineProperty(this,"reason",void 0),_defineProperty(this,"correlationId",void 0),this.reason=e,this.correlationId=r,this.name="VoiceLiveDictationControlError";}}let eo=[["mic_click","first_audio_level"],["stop_pressed","stt_final"],["stop_pressed","live_transcription_final"],["mic_click","live_transcription_delta"],["upload_start","upload_end"],["mic_click","session_ready"],["rtc_offer_created","sdp_answer"],["rtc_connected","session_ready"]];function es(){return"u">typeof performance&&"function"==typeof performance.now?performance.now():Date.now();}function ec(e={}){var _e$now,_e$legs;let t,r=(_e$now=e.now)!==null&&_e$now!==void 0?_e$now:es,i=e.sink,n=(_e$legs=e.legs)!==null&&_e$legs!==void 0?_e$legs:eo,a=new Map(),o=[];return{mark:function(e){let s=r();t!==null&&t!==void 0?t:t=s;let c=Math.max(0,Math.round(s-t));for(let[t,r]of(a.set(e,c),o.push({mark:e,atMs:c}),i!==null&&i!==void 0&&(_i$onMark=i.onMark)!==null&&_i$onMark!==void 0&&_i$onMark.call(i,{mark:e,atMs:c}),n)){var _i$onMark,_i$onLeg;if(r!==e)continue;let n=a.get(t);void 0!==n&&n<=c&&(i===null||i===void 0||(_i$onLeg=i.onLeg)===null||_i$onLeg===void 0?void 0:_i$onLeg.call(i,{from:t,to:r,ms:c-n}));}},legMs:function(e,t){let r=a.get(e),i=a.get(t);if(void 0!==r&&void 0!==i&&!(i<r))return i-r;},snapshot:function(){return o.slice();},reset:function(){t=void 0,a.clear(),o.length=0;}};}e.s(["f",0,ec],81046);let el="The spoken transcript is too long to send as one chat message.",ed=new TextEncoder();function eu(e){return"object"==typeof e&&null!==e&&!Array.isArray(e);}function ep(e,t){let r=e[t];return"string"==typeof r&&r.length>0?r:void 0;}function ev(e,t){let r=ep(e,t);return void 0!==r&&r.length<=256?r:void 0;}function ef(e){let t=ev(e,"item_id");if(void 0!==t)return t;let r=e.item;return eu(r)?ev(r,"id"):void 0;}function em(e){return ed.encode(e).byteLength;}function eh(e){if(256e3>=em(e))return e;let t=0,r=e.length;for(;t<r;){let i=Math.ceil((t+r)/2);256e3>=em(e.slice(0,i))?t=i:r=i-1;}let i=t>0&&/[\uD800-\uDBFF]/u.test(e.charAt(t-1))?t-1:t;return e.slice(0,i);}function eg(e){var _ep;if(eu(e))switch((_ep=ep(e,"type"))!==null&&_ep!==void 0?_ep:ep(e,"kind")){case"session.created":return{kind:"session-created"};case"session.updated":return{kind:"session-updated"};case"input_audio_buffer.speech_started":return{kind:"user-speech-start",itemId:ef(e)};case"input_audio_buffer.speech_stopped":return{kind:"user-speech-stop",itemId:ef(e)};case"conversation.item.input_audio_transcription.completed":let t=ep(e,"transcript");if(void 0!==t&&em(t)>256e3)return{kind:"user-transcript-failed",reason:"limit-exceeded",message:el,reviewText:eh(t),itemId:ef(e)};let r=t===null||t===void 0?void 0:t.trim();return void 0===r||0===r.length?void 0:{kind:"user-transcript-committed",text:r,itemId:ef(e)};case"conversation.item.input_audio_transcription.delta":let i;return void 0!==(i=ep(e,"delta"))&&em(i)>256e3?{kind:"user-transcript-failed",reason:"limit-exceeded",message:el,reviewText:eh(i),itemId:ef(e)}:void 0===i?void 0:{kind:"user-transcript-delta",delta:i,itemId:ef(e)};case"conversation.item.input_audio_transcription.failed":return{kind:"user-transcript-failed",reason:"provider",message:"Speech transcription failed.",itemId:ef(e)};case"error":return{kind:"error",message:"Real-time voice connection failed."};default:return;}}e.s(["D",0,256e3,"m",0,el,"x",0,eh,"P",0,eg,"K",0,em],79274);var ey=e.i(76826),eb=e.i(29030);let ek={phase:"idle",emptyResult:!1,transcript:"",errorReason:void 0,errorMessage:void 0,errorCorrelationId:void 0,audioLevel:0,heardSpeech:!1,micReady:!1,mode:"batch",liveTranscript:"",finalizationNote:void 0};function ew(e,t){switch(t.type){case"requesting":return{...ek,phase:"requesting",mode:t.mode};case"recording":return{...ek,phase:"recording",mode:e.mode};case"finalizing":return{...e,phase:"finalizing",audioLevel:0};case"transcribing":return{...ek,phase:"transcribing",heardSpeech:e.heardSpeech,mode:e.mode,liveTranscript:e.liveTranscript};case"audioLevel":return{...e,audioLevel:t.level};case"micReady":return{...e,micReady:!0};case"speechDetected":return{...e,heardSpeech:!0};case"liveTranscript":return{...e,liveTranscript:t.transcript};case"preview":return{...ek,phase:"preview",transcript:t.transcript,mode:e.mode,liveTranscript:e.liveTranscript,finalizationNote:t.note};case"editTranscript":return{...e,transcript:t.value};case"insertionRefused":return{...e,phase:"error",errorReason:"draft-too-long",errorMessage:"The draft has insufficient space for the completed dictation."};case"error":return{...ek,phase:"error",errorReason:t.reason,errorMessage:t.message,errorCorrelationId:t.correlationId};case"reset":return{...ek,emptyResult:!0===t.emptyResult};}}function ex(e){return e instanceof o.r?{reason:e.reason,message:e.message}:e instanceof n.a?{reason:"VOICE_UNAVAILABLE"===e.code?"unavailable":"transcribe-failed",message:e.message}:{reason:"capture-failed",message:"Dictation could not be completed."};}function eR(e){return e instanceof Error&&e.message===el?{reason:"transcribe-failed",message:el}:e instanceof ey.b?{reason:"permission-denied"===e.reason||"no-microphone"===e.reason||"unsupported"===e.reason||"negotiation-failed"===e.reason||"connection-failed"===e.reason?e.reason:"transcribe-failed",message:e.message}:e instanceof ea?{reason:e.reason,message:e.message,...(void 0===e.correlationId?{}:{correlationId:e.correlationId})}:{reason:"transcribe-failed",message:"Live dictation could not be completed."};}e.s(["j",0,function(e){var _e$error;return((_e$error=e.error)===null||_e$error===void 0?void 0:_e$error.reason)==="draft-too-long";},"y",0,function(e){let t=0===e.trim().length?0:e.trimEnd().length+1;return Math.max(0,r.R-t);},"J",0,function(e){var _e$captureOwner,_e$captureLease,_e$createRecorder,_e$transcribe,_e$realtime,_e$realtime3,_e$realtime5,_e$postRollMs,_I$current;var n,s,c,l,d;let u,p,{onInsert:v,language:f}=e,m=(0,t.useId)(),h=(_e$captureOwner=e.captureOwner)!==null&&_e$captureOwner!==void 0?_e$captureOwner:m,g=(0,t.useRef)((_e$captureLease=e.captureLease)!==null&&_e$captureLease!==void 0?_e$captureLease:Symbol("dictation-capture")),y=void 0===e.captureLease,[b,k]=(0,t.useReducer)(ew,ek),w=(0,t.useRef)(e.contextKey),x=(_e$createRecorder=e.createRecorder)!==null&&_e$createRecorder!==void 0?_e$createRecorder:o.z,R=(_e$transcribe=e.transcribe)!==null&&_e$transcribe!==void 0?_e$transcribe:i.gc,C=((_e$realtime=e.realtime)===null||_e$realtime===void 0?void 0:_e$realtime.enabled)===!0,T=(0,t.useMemo)(()=>{var _e$realtime$createTra,_e$realtime2;return(_e$realtime$createTra=(_e$realtime2=e.realtime)===null||_e$realtime2===void 0?void 0:_e$realtime2.createTransport)!==null&&_e$realtime$createTra!==void 0?_e$realtime$createTra:ey.U;},[(_e$realtime3=e.realtime)===null||_e$realtime3===void 0?void 0:_e$realtime3.createTransport]),_=(0,t.useMemo)(()=>{var _e$realtime$createCon,_e$realtime4;return(_e$realtime$createCon=(_e$realtime4=e.realtime)===null||_e$realtime4===void 0?void 0:_e$realtime4.createControlClient)!==null&&_e$realtime$createCon!==void 0?_e$realtime$createCon:()=>{var _2;let e,t,r,i,n;return t=(_2=void 0)!==null&&_2!==void 0?_2:e=>new WebSocket(e),r=crypto.randomUUID(),i=crypto.randomUUID(),n=1,{negotiate:a=>new Promise((o,s)=>{let c,l=n;n+=1;try{let r;e=t((r="https:"===location.protocol?"wss:":"ws:",`${r}//${location.host}/api/voice/transcribe/live`));}catch(e){s(new ea("unavailable",e instanceof Error?e.message:"Live dictation control could not open."));return;}let d=!1,u=!1,p=!1,v=()=>{void 0!==c&&(clearTimeout(c),c=void 0);},m=e=>{p||(p=!0,v(),s(e));};c=setTimeout(()=>{c=void 0;try{var _e;(_e=e)===null||_e===void 0||_e.close();}catch{}m(new ea("connection-failed","Live dictation negotiation timed out."));},en),e.addEventListener("error",()=>{d?m(new ea("connection-failed","Live dictation control connection was lost.")):m(new ea("unavailable","Live dictation control connection failed."));}),e.addEventListener("close",()=>{d?m(new ea("connection-failed","Live dictation control connection closed during negotiation.")):m(new ea("unavailable","Live dictation control connection was closed."));}),e.addEventListener("open",()=>{var _e2;d=!0,(_e2=e)===null||_e2===void 0?void 0:_e2.send(JSON.stringify({protocolVersion:"1",sessionId:r,seq:0,direction:"client-to-host",kind:"session.create",idempotencyKey:i,requestedProfile:"full-realtime",negotiationMode:"proxied-sdp",...(void 0!==f?{transcriptionLanguage:f}:{})}));}),e.addEventListener("message",t=>{let i;try{i=JSON.parse("string"==typeof t.data?t.data:String(t.data));}catch{m(new ea("connection-failed","Received an unparseable live dictation control message."));return;}let n=ei(i);if(void 0!==n){var s;if("error"===n.kind)return void m(new ea("negotiation-failed"===n.code?"negotiation-failed":"connection-failed",`Live dictation error: ${n.code}`,n.correlationId));if("session.created"===n.kind){var _e3;u=!0,(_e3=e)===null||_e3===void 0?void 0:_e3.send(JSON.stringify({protocolVersion:"1",sessionId:r,seq:l,direction:"client-to-host",kind:"signal.sdp.offer",sdp:a}));return;}"signal.sdp.answer"===n.kind&&u&&(s=n.sdp,p||(p=!0,v(),o(s)));}});}),close(){try{var _e4;(_e4=e)===null||_e4===void 0||_e4.close();}catch{}e=void 0;}};};},[f,(_e$realtime5=e.realtime)===null||_e$realtime5===void 0?void 0:_e$realtime5.createControlClient]),S=e.vad,M=(_e$postRollMs=e.postRollMs)!==null&&_e$postRollMs!==void 0?_e$postRollMs:350,j=(0,t.useRef)(e.latencySink);j.current=e.latencySink;let I=(0,t.useRef)(void 0),L=(_I$current=I.current)!==null&&_I$current!==void 0?_I$current:I.current=ec({sink:{onMark:e=>{var _j$current,_j$current$onMark;return(_j$current=j.current)===null||_j$current===void 0||(_j$current$onMark=_j$current.onMark)===null||_j$current$onMark===void 0?void 0:_j$current$onMark.call(_j$current,e);},onLeg:e=>{var _j$current2,_j$current2$onLeg;return(_j$current2=j.current)===null||_j$current2===void 0||(_j$current2$onLeg=_j$current2.onLeg)===null||_j$current2$onLeg===void 0?void 0:_j$current2$onLeg.call(_j$current2,e);}}}),N=(0,t.useRef)(void 0),E=(0,t.useRef)(void 0),D=(0,t.useRef)(void 0),A=(0,t.useRef)(void 0),q=(0,t.useRef)(void 0),z=(0,t.useRef)(""),K=(0,t.useRef)(void 0),P=(0,t.useRef)(void 0),$=(0,t.useRef)(!1),O=(0,t.useRef)(!1),V=(0,t.useRef)(void 0),F=(0,t.useRef)(void 0),B=(0,t.useRef)(!1),U=(0,t.useRef)(e.onCaptureBoundReached);U.current=e.onCaptureBoundReached;let G=(0,t.useRef)(e.onSilenceRenewalFailed);G.current=e.onSilenceRenewalFailed;let H=(0,t.useRef)(e.onSilenceRenewed);H.current=e.onSilenceRenewed;let J=(0,t.useRef)(void 0),W=(0,t.useRef)(!1),Z=(0,t.useRef)(void 0),Q=(0,t.useRef)(!0),X=(0,t.useRef)(!1),Y=(0,t.useRef)(!1),ee=(0,t.useRef)(0),et=(0,t.useCallback)(()=>{y&&(0,eb._)(g.current);},[y]),er=(0,t.useCallback)(()=>{void 0!==F.current&&(clearTimeout(F.current),F.current=void 0);},[]),eo=(0,t.useCallback)(()=>{void 0!==J.current&&(clearTimeout(J.current),J.current=void 0);},[]),es=(0,t.useCallback)(()=>{void 0!==Z.current&&(Z.current.stop(),Z.current=void 0);},[]),ed=(0,t.useCallback)(e=>{let t=V.current;void 0!==t&&(clearTimeout(t.timer),V.current=void 0,t.resolve(e));},[]),eu=(0,t.useCallback)(e=>{let t=V.current;void 0!==t&&(clearTimeout(t.timer),V.current=void 0,t.reject(e));},[]),ep=(0,t.useCallback)(()=>{var _q$current;eo(),(_q$current=q.current)!==null&&_q$current!==void 0&&_q$current.abort(),q.current=void 0;let e=V.current;void 0!==e&&(clearTimeout(e.timer),V.current=void 0);let t=A.current;A.current=void 0;let r=D.current;D.current=void 0,t!==null&&t!==void 0&&t.close(),r!==null&&r!==void 0&&r.close(),z.current="",K.current=void 0,P.current=void 0,$.current=!1,et();},[eo,et]),ev=(0,t.useCallback)(e=>{D.current!==e||!Q.current||Y.current||W.current||(O.current=!0,Y.current=!0,er(),ep(),k({type:"error",reason:"connection-failed",message:"Live dictation connection was lost."}));},[ep,er]),ef=(0,t.useCallback)(e=>{var _J$current;(_J$current=J.current)!==null&&_J$current!==void 0?_J$current:J.current=setTimeout(ev,5e3,e);},[ev]),em=(0,t.useCallback)(()=>{var _K$current;if(void 0!==P.current)return Promise.reject(Error(P.current));let e=(_K$current=K.current)===null||_K$current===void 0?void 0:_K$current.trim();return void 0!==e&&e.length>0?Promise.resolve({text:e}):new Promise((e,t)=>{let r=setTimeout(()=>{V.current=void 0;let r=z.current.trim();r.length>0?e({text:r,note:"No final transcript arrived; review the live text before inserting."}):t(Error("Live dictation did not produce a transcript."));},4e3);V.current={resolve:e,reject:t,timer:r};});},[]),eh=(0,t.useCallback)(e=>{let t=eg(e);if(void 0!==t&&Q.current&&!Y.current){if("user-transcript-delta"===t.kind){if(void 0!==P.current)return;let e=`${z.current}${t.delta}`;if(e.length>r.R){z.current="",K.current=void 0,P.current=el,k({type:"liveTranscript",transcript:""}),eu(Error(el));return;}z.current=e,$.current||($.current=!0,L.mark("live_transcription_delta"),L.mark("stt_first_delta")),k({type:"liveTranscript",transcript:z.current});return;}if("user-transcript-committed"===t.kind){if(void 0!==P.current)return;let e=t.text.trim();if(0===e.length)return;K.current=e,z.current=e,L.mark("live_transcription_final"),L.mark("stt_final"),k({type:"liveTranscript",transcript:e}),ed({text:e});return;}"user-transcript-failed"===t.kind&&(P.current=t.message,eu(Error(t.message)));}},[L,eu,ed]),eC=(0,t.useCallback)(e=>{var t,r,i;return t=Q.current,r=Y.current,i=ee.current,t&&!r&&e===i;},[]),eT=(0,t.useCallback)(()=>{var _e$requestData;let e=E.current;if(void 0===e||W.current)return;W.current=!0;let t=ee.current;L.mark("stop_pressed"),er(),es(),(_e$requestData=e.requestData)!==null&&_e$requestData!==void 0&&_e$requestData.call(e),k({type:"finalizing"}),new Promise(e=>{setTimeout(e,M);}).then(()=>{if(eC(t)&&E.current===e)return L.mark("postroll_done"),E.current=void 0,k({type:"transcribing"}),e.stop();}).then(e=>{if(void 0!==e&&eC(t)){let t;return et(),L.mark("upload_start"),R((t=Number.isInteger(e.durationMs)&&e.durationMs>0&&e.durationMs<=12e4?e.durationMs:void 0,{audio:e.audioBase64,mimeType:e.mimeType,...(void 0!==t?{durationMs:t}:{}),...(void 0!==f?{language:f}:{})}));}}).then(e=>{void 0===e||eC(t)&&(L.mark("upload_end"),L.mark("stt_final"),k({type:"preview",transcript:e.transcript}));}).catch(e=>{eC(t)&&(et(),k({type:"error",...ex(e)}));}).finally(()=>{ee.current===t&&(W.current=!1);});},[eC,er,es,f,L,M,et,R]),e_=(0,t.useCallback)(()=>{let e=D.current;if(void 0!==e&&!W.current){var _e$sendDataChannelEve;if(W.current=!0,L.mark("stop_pressed"),er(),es(),k({type:"finalizing"}),((_e$sendDataChannelEve=e.sendDataChannelEvent)===null||_e$sendDataChannelEve===void 0?void 0:_e$sendDataChannelEve.call(e,{type:"input_audio_buffer.commit"}))!==!0){ep(),W.current=!1,k({type:"error",reason:"transcribe-failed",message:"Live dictation could not be finalized."});return;}em().then(e=>{Q.current&&k({type:"preview",transcript:e.text,...(void 0!==e.note?{note:e.note}:{})});}).catch(e=>{Q.current&&k({type:"error",...eR(e)});}).finally(()=>{ep(),W.current=!1;});}},[ep,er,es,L,em]),eS=(0,t.useCallback)(()=>{void 0!==D.current?e_():eT();},[eT,e_]),eM=(0,t.useCallback)(()=>{var _N$current;if(void 0!==E.current||void 0!==D.current||X.current)return;X.current=!0,ee.current+=1;let e=ee.current;W.current=!1,Y.current=!1,L.reset(),L.mark("mic_click"),B.current=!1,k({type:"requesting",mode:"batch"}),((_N$current=N.current)!==null&&_N$current!==void 0?_N$current:N.current=x()).start({timesliceMs:250,onReady:()=>{eC(e)&&(L.mark("first_audio_level"),k({type:"micReady"}));},onAudioLevel:t=>{eC(e)&&(k({type:"audioLevel",level:t}),t>=.12&&k({type:"speechDetected"}));}}).then(t=>{var r;let i,n;eC(e)?(X.current=!1,E.current=t,L.mark("media_recorder_start"),k({type:"recording"}),r={session:t,timer:F,stillSilent:()=>{var _Z$current;return((_Z$current=Z.current)===null||_Z$current===void 0?void 0:_Z$current.available)===!0&&!B.current&&eC(e)&&!W.current;},current:()=>eC(e)&&!W.current,stop:eT,renewable:()=>{var _Z$current2;return((_Z$current2=Z.current)===null||_Z$current2===void 0?void 0:_Z$current2.available)===!0;},renewed:()=>{var _H$current;return(_H$current=H.current)===null||_H$current===void 0?void 0:_H$current.call(H);},boundReached:e=>{var _U$current;return(_U$current=U.current)===null||_U$current===void 0?void 0:_U$current.call(U,e);},failed:r=>{var _G$current;eC(e)&&!W.current&&((_G$current=G.current)!==null&&_G$current!==void 0&&_G$current.call(G,r),er(),es(),t.cancel(),E.current=void 0,et(),k({type:"error",...ex(r)}));}},i=Date.now()+119650,(n=()=>{r.timer.current=setTimeout(()=>{if(r.current()){if(!r.renewable()||!r.stillSilent()||void 0===r.session.renewSilence){var e,t;let n=i-Date.now(),a=(e=r.renewable(),t=r.session,e?void 0===t.renewSilence?"renewal-unsupported":"speech-observed":"vad-unavailable"),o=()=>{r.current()&&(r.boundReached(a),r.stop());};n>0?r.timer.current=setTimeout(o,n):o();return;}r.session.renewSilence(r.stillSilent).then(e=>{r.current()&&(void 0!==e&&(i=Date.now()+119650-e,r.renewed()),n());},r.failed);}},Math.min(6e4,Math.max(0,i-Date.now())));})(),void 0!==S&&void 0!==t.stream&&(Z.current=S.start(t.stream,t=>{if(eC(e)){if("speech-onset"===t){B.current=!0,k({type:"speechDetected"});return;}"end-of-turn"===t&&eT();}}))):t.cancel();},t=>{eC(e)&&(X.current=!1,et(),k({type:"error",...ex(t)}));});},[eC,er,es,L,x,et,eT,S]),ej=(0,t.useCallback)(()=>{if(void 0!==E.current||void 0!==D.current||X.current)return;X.current=!0,W.current=!1,Y.current=!1,z.current="",K.current=void 0,P.current=void 0,$.current=!1,L.reset(),L.mark("mic_click"),k({type:"requesting",mode:"realtime"});let e=new AbortController();q.current=e;let t=T(),r=_();A.current=r,(async(_i$onDataChannelEvent,_i$onDataChannelState,_i$onConnectionStateC,_i$onLocalVoiceActivi)=>{let i=await t.connect({signal:e.signal});if(q.current!==e||!Q.current||Y.current)return void i.close();D.current=i,L.mark("permission_granted"),L.mark("rtc_offer_created");let n=()=>q.current===e&&D.current===i;(_i$onDataChannelEvent=i.onDataChannelEvent)!==null&&_i$onDataChannelEvent!==void 0&&_i$onDataChannelEvent.call(i,e=>{n()&&eh(e);}),(_i$onDataChannelState=i.onDataChannelStateChange)!==null&&_i$onDataChannelState!==void 0&&_i$onDataChannelState.call(i,e=>{n()&&"open"===e&&L.mark("datachannel_open");}),(_i$onConnectionStateC=i.onConnectionStateChange)!==null&&_i$onConnectionStateC!==void 0&&_i$onConnectionStateC.call(i,e=>{if(n()&&Q.current&&!Y.current&&!W.current){if("connected"===e){eo(),L.mark("rtc_connected");return;}if("failed"===e||"closed"===e)return void ev(i);"disconnected"===e&&ef(i);}}),(_i$onLocalVoiceActivi=i.onLocalVoiceActivity)===null||_i$onLocalVoiceActivi===void 0?void 0:_i$onLocalVoiceActivi.call(i,e=>{n()&&Q.current&&!Y.current&&"speech-onset"===e&&(L.mark("user_speech_start"),k({type:"speechDetected"}));});let a=await r.negotiate(i.offerSdp);if(n()){if(!Q.current||Y.current){X.current=!1,ep();return;}if(await i.applyAnswer(a),n()){if(!Q.current||Y.current){X.current=!1,ep();return;}L.mark("sdp_answer"),L.mark("first_audio_level"),L.mark("session_ready"),X.current=!1,k({type:"recording"}),k({type:"micReady"}),F.current=setTimeout(()=>e_(),119650);}}})().catch(t=>{if(q.current!==e)return;X.current=!1;let r=t instanceof ea||t instanceof ey.b&&("negotiation-failed"===t.reason||"connection-failed"===t.reason);if(r&&(O.current=!0),ep(),Q.current&&!Y.current){if(r)return void k({type:"error",...eR(t),message:"Live dictation could not start. Try again to use standard dictation."});k({type:"error",...eR(t)});}});},[ep,eo,ev,eh,L,_,T,ef,e_]),eI=(0,t.useCallback)(()=>{(w.current=e.contextKey,(0,eb.e)(h,g.current))?C&&!O.current?ej():eM():k({type:"error",reason:"unavailable",message:"The microphone is active in another chat."});},[h,e.contextKey,C,eM,ej]),eL=(0,t.useCallback)(()=>{var _E$current;Y.current=!0,ee.current+=1,W.current=!1,er(),es(),(_E$current=E.current)!==null&&_E$current!==void 0&&_E$current.cancel(),E.current=void 0,ep(),et(),X.current=!1,k({type:"reset"});},[ep,er,es,et]),eN=(0,t.useCallback)(()=>{eL();},[eL]);n=e.contextKey,s=eL,u=(0,t.useRef)(n),(0,t.useLayoutEffect)(()=>{u.current!==n&&(u.current=n,s(),(0,a.v)("Composer dictation reset after a conversation change.",{composerActivity:"dictation-context-changed"}));},[s,n]);let eE=(0,t.useCallback)(()=>{eL(),eI();},[eL,eI]),eD=(0,t.useCallback)(()=>{var _e$availableCharacter;let t=b.transcript.trim();if(t.length>((_e$availableCharacter=e.availableCharacters)!==null&&_e$availableCharacter!==void 0?_e$availableCharacter:r.R)){k({type:"insertionRefused"}),(0,a.v)("Composer dictation exceeds the remaining input capacity.",{composerActivity:"input-limit"});return;}t.length>0&&v(t),k({type:"reset",emptyResult:!0===e.insertOnComplete&&0===t.length}),(0,a.v)("Composer dictation completed.",{composerActivity:t.length>0?"dictation-inserted":"dictation-empty"});},[v,e.availableCharacters,e.insertOnComplete,b.transcript]),eA=(0,t.useCallback)(()=>{"draft-too-long"===b.errorReason?eD():eI();},[eD,eI,b.errorReason]);c=!0===e.insertOnComplete&&w.current===e.contextKey,l=b,d=eD,p=(0,t.useRef)(!1),(0,t.useEffect)(()=>{if("preview"!==l.phase){p.current=!1;return;}c&&!p.current&&(p.current=!0,d());},[c,l.phase,l.transcript,d]);let eq=(0,t.useCallback)(e=>{k({type:"editTranscript",value:e});},[]);return(0,t.useEffect)(()=>(Q.current=!0,()=>{var _E$current2;Q.current=!1,void 0!==F.current&&(clearTimeout(F.current),F.current=void 0),void 0!==Z.current&&(Z.current.stop(),Z.current=void 0),(_E$current2=E.current)!==null&&_E$current2!==void 0&&_E$current2.cancel(),E.current=void 0,ep(),et();}),[ep,et]),{phase:b.phase,emptyResult:b.emptyResult,mode:b.mode,transcript:b.transcript,liveTranscript:b.liveTranscript,finalizationNote:b.finalizationNote,error:void 0!==b.errorReason&&void 0!==b.errorMessage?{reason:b.errorReason,message:b.errorMessage,...(void 0===b.errorCorrelationId?{}:{correlationId:b.errorCorrelationId})}:void 0,audioLevel:b.audioLevel,heardSpeech:b.heardSpeech,micReady:b.micReady,busy:"requesting"===b.phase||"recording"===b.phase||"finalizing"===b.phase||"transcribing"===b.phase,start:eA,stop:eS,cancel:eL,retry:"draft-too-long"===b.errorReason?eD:eE,discard:eN,insert:eD,setTranscript:eq};}],13493);},2268,92902,e=>{var t=e.i(71645),r=e.i(20081),i=e.i(24541);e.s(["f",0,function(e,n){let a=(0,t.useRef)(!0),o=(0,t.useCallback)(t=>{if(e.current=t,null===t)return;let n=e=>function(e,t,n){var a;if(e.target===t&&!e.defaultPrevented){if(!e.isComposing&&!(a=e).shiftKey&&!a.altKey&&!a.ctrlKey&&!a.metaKey&&("Home"===e.key||"End"===e.key)){let a;e.preventDefault(),n.current="End"===e.key,t.scrollTo({top:n.current?t.scrollHeight:0,behavior:"instant"}),a=(0,r.y)(),(0,i.v)("Transcript navigation started.",{correlationId:a,stageReport:{stage:"transcript navigation",phase:"started",ordinal:1}}),(0,i.v)("Transcript navigation settled.",{correlationId:a,stageReport:{stage:"transcript navigation",phase:"settled",ordinal:1,durationMs:0}});}}}(e,t,a);return t.addEventListener("keydown",n),()=>{t.removeEventListener("keydown",n),e.current===t&&(e.current=null);};},[e,a]),s=(0,t.useCallback)(()=>{let t=e.current;null!==t&&a.current&&(t.scrollTop=t.scrollHeight);},[e]),c=(0,t.useCallback)(()=>{let t=e.current;null!==t&&(a.current=t.scrollHeight-t.scrollTop-t.clientHeight<=64);},[e]),l=(0,t.useCallback)(()=>{a.current=!0,s();},[s]);return(0,t.useEffect)(()=>{s();},[n,s]),(0,t.useMemo)(()=>({stickRef:a,onScroll:c,regionRef:o,resume:l}),[c,o,l]);}],2268);var n=e.i(43476);e.s(["r",0,function({value:e,placeholder:t,onChange:r,onKeyDown:i,onSelect:a,textareaRef:o,id:s,ariaLabel:c,ariaControls:l,disabled:d,maxLength:u,aboveInput:p,belowInput:v,footer:f,input:m}){return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("div",{className:"cmp-input-stack",children:[p,(0,n.jsx)("div",{className:"cmp-input-combobox",children:m!==null&&m!==void 0?m:(0,n.jsx)("textarea",{id:s,className:"cmp-input",ref:o,rows:2,value:e,"aria-label":c,"aria-controls":l,placeholder:t,disabled:d,maxLength:u,"data-shell-chord-bypass":"",onChange:r,onSelect:a,onKeyDown:i})}),v]}),(0,n.jsx)("div",{className:"cmp-footer-row",children:f})]});},"Q",0,function(e){var _e$nativeEvent;return!(e.isComposing||(_e$nativeEvent=e.nativeEvent)!==null&&_e$nativeEvent!==void 0&&_e$nativeEvent.isComposing)&&"Enter"===e.key&&!e.shiftKey&&(e.preventDefault(),!0);},"x",0,function(e,r){(0,t.useEffect)(()=>{let t=e.current;null!==t&&(t.style.height="auto",t.style.height=`${String(Math.min(t.scrollHeight,220))}px`);},[e,r]);}],92902);}],82178,e=>{e.v({cmpStatus:"D2PGEG_cmpStatus",cmpStop:"D2PGEG_cmpStop",cmpWaveform:"D2PGEG_cmpWaveform"});}]);