@jait/gateway 0.1.504 → 0.1.505

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 (69) hide show
  1. package/dist/server.d.ts.map +1 -1
  2. package/dist/server.js +4 -0
  3. package/dist/server.js.map +1 -1
  4. package/dist/tools/index.d.ts +1 -0
  5. package/dist/tools/index.d.ts.map +1 -1
  6. package/dist/tools/index.js +3 -0
  7. package/dist/tools/index.js.map +1 -1
  8. package/dist/tools/screenshot-tools.d.ts +39 -0
  9. package/dist/tools/screenshot-tools.d.ts.map +1 -0
  10. package/dist/tools/screenshot-tools.js +172 -0
  11. package/dist/tools/screenshot-tools.js.map +1 -0
  12. package/package.json +1 -1
  13. package/web-dist/assets/{_basePickBy-bFoCfWix.js → _basePickBy-eOHfAGFv.js} +1 -1
  14. package/web-dist/assets/{_baseUniq-BoTWhsYM.js → _baseUniq-DRNkLG1J.js} +1 -1
  15. package/web-dist/assets/{arc-BbP3TTwp.js → arc-ZONvmv1z.js} +1 -1
  16. package/web-dist/assets/{architectureDiagram-2XIMDMQ5-Doalw_qz.js → architectureDiagram-2XIMDMQ5-DPk6MOjY.js} +1 -1
  17. package/web-dist/assets/{blockDiagram-WCTKOSBZ-CNUF5-Si.js → blockDiagram-WCTKOSBZ-DfE6_tRq.js} +1 -1
  18. package/web-dist/assets/{c4Diagram-IC4MRINW-frUf8uKc.js → c4Diagram-IC4MRINW-B9fG4jnw.js} +1 -1
  19. package/web-dist/assets/channel-DezLL9jZ.js +1 -0
  20. package/web-dist/assets/{chunk-4BX2VUAB-ub6VQrjc.js → chunk-4BX2VUAB-2Y5nSjby.js} +1 -1
  21. package/web-dist/assets/{chunk-55IACEB6-DMZRwtwT.js → chunk-55IACEB6-DIeQ4NKG.js} +1 -1
  22. package/web-dist/assets/{chunk-FMBD7UC4-YI9LVuhv.js → chunk-FMBD7UC4-BaE55Itz.js} +1 -1
  23. package/web-dist/assets/{chunk-JSJVCQXG-Df1Db0bj.js → chunk-JSJVCQXG-CeuwuTtc.js} +1 -1
  24. package/web-dist/assets/{chunk-KX2RTZJC-CiQeL7p6.js → chunk-KX2RTZJC-D1HYSZ-C.js} +1 -1
  25. package/web-dist/assets/{chunk-NQ4KR5QH-CZTf7wMp.js → chunk-NQ4KR5QH-DY0NxYUN.js} +1 -1
  26. package/web-dist/assets/{chunk-QZHKN3VN-UqqGjGTp.js → chunk-QZHKN3VN-mV96qHQu.js} +1 -1
  27. package/web-dist/assets/{chunk-WL4C6EOR-DK0a2IPm.js → chunk-WL4C6EOR-C1N1d0yF.js} +1 -1
  28. package/web-dist/assets/classDiagram-VBA2DB6C-BGJ0Mbbl.js +1 -0
  29. package/web-dist/assets/classDiagram-v2-RAHNMMFH-BGJ0Mbbl.js +1 -0
  30. package/web-dist/assets/clone-Bmm6ICUY.js +1 -0
  31. package/web-dist/assets/{cose-bilkent-S5V4N54A-DTHhAYyX.js → cose-bilkent-S5V4N54A-CfkksG3T.js} +1 -1
  32. package/web-dist/assets/{dagre-KLK3FWXG-CvfR2PN2.js → dagre-KLK3FWXG-DRcTydyd.js} +1 -1
  33. package/web-dist/assets/{diagram-E7M64L7V-E8kQlK95.js → diagram-E7M64L7V-D_jO_7c_.js} +1 -1
  34. package/web-dist/assets/{diagram-IFDJBPK2-DYPqb_lA.js → diagram-IFDJBPK2-DvFozE4l.js} +1 -1
  35. package/web-dist/assets/{diagram-P4PSJMXO-D8oqdRM8.js → diagram-P4PSJMXO-C0UIqZL8.js} +1 -1
  36. package/web-dist/assets/{erDiagram-INFDFZHY-Dtm6lv8r.js → erDiagram-INFDFZHY-BC7OJlxp.js} +1 -1
  37. package/web-dist/assets/{flowDiagram-PKNHOUZH-780t3cps.js → flowDiagram-PKNHOUZH-CGvfqLcL.js} +1 -1
  38. package/web-dist/assets/{ganttDiagram-A5KZAMGK-B5LqHhpq.js → ganttDiagram-A5KZAMGK-B96xAW4I.js} +1 -1
  39. package/web-dist/assets/{gitGraphDiagram-K3NZZRJ6-D4E9DWlV.js → gitGraphDiagram-K3NZZRJ6-Cu0WuQN0.js} +1 -1
  40. package/web-dist/assets/{graph-DXg-Yj8b.js → graph-BXHREU4l.js} +1 -1
  41. package/web-dist/assets/{index-UV59v-Ti.js → index-B914fR61.js} +5 -5
  42. package/web-dist/assets/index-CbWtCcib.css +32 -0
  43. package/web-dist/assets/{index-BxjzCyEc.js → index-Cbo1c6Rq.js} +1 -1
  44. package/web-dist/assets/{index-H22IRMip.js → index-Dj6Wq7mo.js} +1 -1
  45. package/web-dist/assets/{infoDiagram-LFFYTUFH-DDUxYsyf.js → infoDiagram-LFFYTUFH-BdPKNyNT.js} +1 -1
  46. package/web-dist/assets/{ishikawaDiagram-PHBUUO56-BIphFO-6.js → ishikawaDiagram-PHBUUO56-BRq1jm8s.js} +1 -1
  47. package/web-dist/assets/{journeyDiagram-4ABVD52K-Di0EIn7Y.js → journeyDiagram-4ABVD52K-1lIjiaW5.js} +1 -1
  48. package/web-dist/assets/{kanban-definition-K7BYSVSG-Bsook8cN.js → kanban-definition-K7BYSVSG-x4zww1AP.js} +1 -1
  49. package/web-dist/assets/{layout-CXksh3WV.js → layout-Drkk45pz.js} +1 -1
  50. package/web-dist/assets/{linear-gfdv6i8E.js → linear-BvTBmAs1.js} +1 -1
  51. package/web-dist/assets/{mindmap-definition-YRQLILUH-dbGiW4tz.js → mindmap-definition-YRQLILUH-f8hFKH_7.js} +1 -1
  52. package/web-dist/assets/{pieDiagram-SKSYHLDU-63nBc_um.js → pieDiagram-SKSYHLDU-T-B8Z7f4.js} +1 -1
  53. package/web-dist/assets/{quadrantDiagram-337W2JSQ-q0JkNGpM.js → quadrantDiagram-337W2JSQ-BEi4PbV1.js} +1 -1
  54. package/web-dist/assets/{requirementDiagram-Z7DCOOCP-AyMfjYmA.js → requirementDiagram-Z7DCOOCP-CKWcVdXJ.js} +1 -1
  55. package/web-dist/assets/{sankeyDiagram-WA2Y5GQK-B8Xhghtq.js → sankeyDiagram-WA2Y5GQK-BEAIo1bX.js} +1 -1
  56. package/web-dist/assets/{sequenceDiagram-2WXFIKYE-DPGS9_hK.js → sequenceDiagram-2WXFIKYE-BWFXpKWM.js} +1 -1
  57. package/web-dist/assets/{stateDiagram-RAJIS63D-CQLMpY7Z.js → stateDiagram-RAJIS63D-B4vM-DO_.js} +1 -1
  58. package/web-dist/assets/stateDiagram-v2-FVOUBMTO-8WHNlLBv.js +1 -0
  59. package/web-dist/assets/{timeline-definition-YZTLITO2-DzUZuJQG.js → timeline-definition-YZTLITO2-bkIXSBXV.js} +1 -1
  60. package/web-dist/assets/{treemap-KZPCXAKY-DVWmiWhf.js → treemap-KZPCXAKY-C9efUQHy.js} +1 -1
  61. package/web-dist/assets/{vennDiagram-LZ73GAT5-B3VtqzGY.js → vennDiagram-LZ73GAT5-Ce9BXagg.js} +1 -1
  62. package/web-dist/assets/{xychartDiagram-JWTSCODW-D8MGMDFb.js → xychartDiagram-JWTSCODW-DnEURIT5.js} +1 -1
  63. package/web-dist/index.html +2 -2
  64. package/web-dist/assets/channel-B9DFHRXT.js +0 -1
  65. package/web-dist/assets/classDiagram-VBA2DB6C-Dthd4Voy.js +0 -1
  66. package/web-dist/assets/classDiagram-v2-RAHNMMFH-Dthd4Voy.js +0 -1
  67. package/web-dist/assets/clone-oWhMO6PX.js +0 -1
  68. package/web-dist/assets/index-AKmtclsA.css +0 -32
  69. package/web-dist/assets/stateDiagram-v2-FVOUBMTO-DpHwDYQ3.js +0 -1
@@ -1,4 +1,4 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./dagre-KLK3FWXG-CvfR2PN2.js","./graph-DXg-Yj8b.js","./_baseUniq-BoTWhsYM.js","./layout-CXksh3WV.js","./_basePickBy-bFoCfWix.js","./clone-oWhMO6PX.js","./cose-bilkent-S5V4N54A-DTHhAYyX.js","./cytoscape.esm-BQaXIfA_.js","./c4Diagram-IC4MRINW-frUf8uKc.js","./chunk-JSJVCQXG-Df1Db0bj.js","./flowDiagram-PKNHOUZH-780t3cps.js","./chunk-FMBD7UC4-YI9LVuhv.js","./chunk-55IACEB6-DMZRwtwT.js","./chunk-KX2RTZJC-CiQeL7p6.js","./channel-B9DFHRXT.js","./erDiagram-INFDFZHY-Dtm6lv8r.js","./gitGraphDiagram-K3NZZRJ6-D4E9DWlV.js","./chunk-4BX2VUAB-ub6VQrjc.js","./chunk-QZHKN3VN-UqqGjGTp.js","./treemap-KZPCXAKY-DVWmiWhf.js","./ganttDiagram-A5KZAMGK-B5LqHhpq.js","./linear-gfdv6i8E.js","./defaultLocale-DX6XiGOO.js","./infoDiagram-LFFYTUFH-DDUxYsyf.js","./pieDiagram-SKSYHLDU-63nBc_um.js","./arc-BbP3TTwp.js","./quadrantDiagram-337W2JSQ-q0JkNGpM.js","./xychartDiagram-JWTSCODW-D8MGMDFb.js","./requirementDiagram-Z7DCOOCP-AyMfjYmA.js","./sequenceDiagram-2WXFIKYE-DPGS9_hK.js","./classDiagram-VBA2DB6C-Dthd4Voy.js","./chunk-WL4C6EOR-DK0a2IPm.js","./classDiagram-v2-RAHNMMFH-Dthd4Voy.js","./stateDiagram-RAJIS63D-CQLMpY7Z.js","./chunk-NQ4KR5QH-CZTf7wMp.js","./stateDiagram-v2-FVOUBMTO-DpHwDYQ3.js","./journeyDiagram-4ABVD52K-Di0EIn7Y.js","./timeline-definition-YZTLITO2-DzUZuJQG.js","./mindmap-definition-YRQLILUH-dbGiW4tz.js","./kanban-definition-K7BYSVSG-Bsook8cN.js","./diagram-P4PSJMXO-D8oqdRM8.js","./diagram-IFDJBPK2-DYPqb_lA.js","./blockDiagram-WCTKOSBZ-CNUF5-Si.js","./architectureDiagram-2XIMDMQ5-Doalw_qz.js","./diagram-E7M64L7V-E8kQlK95.js","./angular-html-DA-rfuFy.js","./html-pp8916En.js","./javascript-wDzz0qaB.js","./css-CLj8gQPS.js","./angular-ts-BrjP3tb8.js","./scss-D5BDwBP9.js","./astro-HNnZUWAn.js","./json-Cp-IABpG.js","./typescript-BPQ3VLAy.js","./postcss-CXtECtnM.js","./tsx-COt5Ahok.js","./blade-BjGOyj-B.js","./html-derivative-DlHx6ybY.js","./xml-sdJ4AIDG.js","./java-CylS5w8V.js","./sql-BLtJtn59.js","./coffee-Ch7k5sss.js","./cpp-CofmeUqb.js","./regexp-CDVJQ6XC.js","./glsl-DplSGwfg.js","./c-BIGW1oBm.js","./graphql-ChdNCCLP.js","./jsx-g9-lgVsj.js","./haml-D5jkg6IW.js","./handlebars-BpdQsYii.js","./yaml-Buea-lGh.js","./http-jrhK8wxY.js","./shellscript-Yzrsuije.js","./hurl-irOxFIW8.js","./csv-fuZLfV_i.js","./jinja-f2NsQr07.js","./jison-wvAkD_A8.js","./julia-CxzCAyBv.js","./python-B6aJPvgy.js","./r-Dspwwk_N.js","./marko-DjSrsDqO.js","./less-B1dDrJ26.js","./mdc-DTYItulj.js","./markdown-Cvjx9yec.js","./php-R6g_5hLQ.js","./pug-DKIMFp6K.js","./svelte-Cy7k_4gC.js","./ts-tags-DQrlYJgV.js","./vue-D2xRrEX4.js","./vue-html-AaS7Mt5G.js","./vue-vine-BoDAl6tE.js","./stylus-BEDo0Tqx.js"])))=>i.map(i=>d[i]);
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./dagre-KLK3FWXG-DRcTydyd.js","./graph-BXHREU4l.js","./_baseUniq-DRNkLG1J.js","./layout-Drkk45pz.js","./_basePickBy-eOHfAGFv.js","./clone-Bmm6ICUY.js","./cose-bilkent-S5V4N54A-CfkksG3T.js","./cytoscape.esm-BQaXIfA_.js","./c4Diagram-IC4MRINW-B9fG4jnw.js","./chunk-JSJVCQXG-CeuwuTtc.js","./flowDiagram-PKNHOUZH-CGvfqLcL.js","./chunk-FMBD7UC4-BaE55Itz.js","./chunk-55IACEB6-DIeQ4NKG.js","./chunk-KX2RTZJC-D1HYSZ-C.js","./channel-DezLL9jZ.js","./erDiagram-INFDFZHY-BC7OJlxp.js","./gitGraphDiagram-K3NZZRJ6-Cu0WuQN0.js","./chunk-4BX2VUAB-2Y5nSjby.js","./chunk-QZHKN3VN-mV96qHQu.js","./treemap-KZPCXAKY-C9efUQHy.js","./ganttDiagram-A5KZAMGK-B96xAW4I.js","./linear-BvTBmAs1.js","./defaultLocale-DX6XiGOO.js","./infoDiagram-LFFYTUFH-BdPKNyNT.js","./pieDiagram-SKSYHLDU-T-B8Z7f4.js","./arc-ZONvmv1z.js","./quadrantDiagram-337W2JSQ-BEi4PbV1.js","./xychartDiagram-JWTSCODW-DnEURIT5.js","./requirementDiagram-Z7DCOOCP-CKWcVdXJ.js","./sequenceDiagram-2WXFIKYE-BWFXpKWM.js","./classDiagram-VBA2DB6C-BGJ0Mbbl.js","./chunk-WL4C6EOR-C1N1d0yF.js","./classDiagram-v2-RAHNMMFH-BGJ0Mbbl.js","./stateDiagram-RAJIS63D-B4vM-DO_.js","./chunk-NQ4KR5QH-DY0NxYUN.js","./stateDiagram-v2-FVOUBMTO-8WHNlLBv.js","./journeyDiagram-4ABVD52K-1lIjiaW5.js","./timeline-definition-YZTLITO2-bkIXSBXV.js","./mindmap-definition-YRQLILUH-f8hFKH_7.js","./kanban-definition-K7BYSVSG-x4zww1AP.js","./diagram-P4PSJMXO-C0UIqZL8.js","./diagram-IFDJBPK2-DvFozE4l.js","./blockDiagram-WCTKOSBZ-DfE6_tRq.js","./architectureDiagram-2XIMDMQ5-DPk6MOjY.js","./diagram-E7M64L7V-D_jO_7c_.js","./angular-html-DA-rfuFy.js","./html-pp8916En.js","./javascript-wDzz0qaB.js","./css-CLj8gQPS.js","./angular-ts-BrjP3tb8.js","./scss-D5BDwBP9.js","./astro-HNnZUWAn.js","./json-Cp-IABpG.js","./typescript-BPQ3VLAy.js","./postcss-CXtECtnM.js","./tsx-COt5Ahok.js","./blade-BjGOyj-B.js","./html-derivative-DlHx6ybY.js","./xml-sdJ4AIDG.js","./java-CylS5w8V.js","./sql-BLtJtn59.js","./coffee-Ch7k5sss.js","./cpp-CofmeUqb.js","./regexp-CDVJQ6XC.js","./glsl-DplSGwfg.js","./c-BIGW1oBm.js","./graphql-ChdNCCLP.js","./jsx-g9-lgVsj.js","./haml-D5jkg6IW.js","./handlebars-BpdQsYii.js","./yaml-Buea-lGh.js","./http-jrhK8wxY.js","./shellscript-Yzrsuije.js","./hurl-irOxFIW8.js","./csv-fuZLfV_i.js","./jinja-f2NsQr07.js","./jison-wvAkD_A8.js","./julia-CxzCAyBv.js","./python-B6aJPvgy.js","./r-Dspwwk_N.js","./marko-DjSrsDqO.js","./less-B1dDrJ26.js","./mdc-DTYItulj.js","./markdown-Cvjx9yec.js","./php-R6g_5hLQ.js","./pug-DKIMFp6K.js","./svelte-Cy7k_4gC.js","./ts-tags-DQrlYJgV.js","./vue-D2xRrEX4.js","./vue-html-AaS7Mt5G.js","./vue-vine-BoDAl6tE.js","./stylus-BEDo0Tqx.js"])))=>i.map(i=>d[i]);
2
2
  var npe=Object.defineProperty;var ipe=(e,r,n)=>r in e?npe(e,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[r]=n;var Je=(e,r,n)=>ipe(e,typeof r!="symbol"?r+"":r,n);function spe(e,r){for(var n=0;n<r.length;n++){const i=r[n];if(typeof i!="string"&&!Array.isArray(i)){for(const s in i)if(s!=="default"&&!(s in e)){const a=Object.getOwnPropertyDescriptor(i,s);a&&Object.defineProperty(e,s,a.get?a:{enumerable:!0,get:()=>i[s]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const r=document.createElement("link").relList;if(r&&r.supports&&r.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))i(s);new MutationObserver(s=>{for(const a of s)if(a.type==="childList")for(const o of a.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&i(o)}).observe(document,{childList:!0,subtree:!0});function n(s){const a={};return s.integrity&&(a.integrity=s.integrity),s.referrerPolicy&&(a.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?a.credentials="include":s.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function i(s){if(s.ep)return;s.ep=!0;const a=n(s);fetch(s.href,a)}})();function A0(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Ubt(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var r=e.default;if(typeof r=="function"){var n=function i(){return this instanceof i?Reflect.construct(r,arguments,this.constructor):r.apply(this,arguments)};n.prototype=r.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(i){var s=Object.getOwnPropertyDescriptor(e,i);Object.defineProperty(n,i,s.get?s:{enumerable:!0,get:function(){return e[i]}})}),n}var j6={exports:{}},Av={};/**
3
3
  * @license React
4
4
  * react-jsx-runtime.production.js
@@ -1112,8 +1112,8 @@ Please report this to https://github.com/markedjs/marked.`,r){let s="<p>An error
1112
1112
  node : x:${e.x} y:${e.y} w:${e.width} h:${e.height}`);const i=e.x,s=e.y,a=Math.abs(i-n.x),o=e.width/2;let l=n.x<r.x?o-a:o+a;const u=e.height/2,d=Math.abs(r.y-n.y),h=Math.abs(r.x-n.x);if(Math.abs(s-r.y)*o>Math.abs(i-r.x)*u){let f=n.y<r.y?r.y-u-s:s-u-r.y;l=h*f/d;const m={x:n.x<r.x?n.x+l:n.x-h+l,y:n.y<r.y?n.y+d-f:n.y-d+f};return l===0&&(m.x=r.x,m.y=r.y),h===0&&(m.x=r.x),d===0&&(m.y=r.y),Ct.debug(`abc89 top/bottom calc, Q ${d}, q ${f}, R ${h}, r ${l}`,m),m}else{n.x<r.x?l=r.x-o-i:l=i-o-r.x;let f=d*l/h,m=n.x<r.x?n.x+h-l:n.x-h+l,x=n.y<r.y?n.y+f:n.y-f;return Ct.debug(`sides calc abc89, Q ${d}, q ${f}, R ${h}, r ${l}`,{_x:m,_y:x}),l===0&&(m=r.x,x=r.y),h===0&&(m=r.x),d===0&&(x=r.y),{x:m,y:x}}},"intersection"),lz=Y((e,r)=>{Ct.warn("abc88 cutPathAtIntersect",e,r);let n=[],i=e[0],s=!1;return e.forEach(a=>{if(Ct.info("abc88 checking point",a,r),!uOe(r,a)&&!s){const o=dOe(r,i,a);Ct.debug("abc88 inside",a,i,o),Ct.debug("abc88 intersection",o,r);let l=!1;n.forEach(u=>{l=l||u.x===o.x&&u.y===o.y}),n.some(u=>u.x===o.x&&u.y===o.y)?Ct.warn("abc88 no intersect",o,n):n.push(o),s=!0}else Ct.warn("abc88 outside",a,i),i=a,s||n.push(a)}),Ct.debug("returning points",n),n},"cutPathAtIntersect");function tne(e){const r=[],n=[];for(let i=1;i<e.length-1;i++){const s=e[i-1],a=e[i],o=e[i+1];(s.x===a.x&&a.y===o.y&&Math.abs(a.x-o.x)>5&&Math.abs(a.y-s.y)>5||s.y===a.y&&a.x===o.x&&Math.abs(a.x-s.x)>5&&Math.abs(a.y-o.y)>5)&&(r.push(a),n.push(i))}return{cornerPoints:r,cornerPointPositions:n}}Y(tne,"extractCornerPoints");var cz=Y(function(e,r,n){const i=r.x-e.x,s=r.y-e.y,a=Math.sqrt(i*i+s*s),o=n/a;return{x:r.x-o*i,y:r.y-o*s}},"findAdjacentPoint"),hOe=Y(function(e){const{cornerPointPositions:r}=tne(e),n=[];for(let i=0;i<e.length;i++)if(r.includes(i)){const s=e[i-1],a=e[i+1],o=e[i],l=cz(s,o,5),u=cz(a,o,5),d=u.x-l.x,h=u.y-l.y;n.push(l);const f=Math.sqrt(2)*2;let m={x:o.x,y:o.y};if(Math.abs(a.x-s.x)>10&&Math.abs(a.y-s.y)>=10){Ct.debug("Corner point fixing",Math.abs(a.x-s.x),Math.abs(a.y-s.y));const x=5;o.x===l.x?m={x:d<0?l.x-x+f:l.x+x-f,y:h<0?l.y-f:l.y+f}:m={x:d<0?l.x-f:l.x+f,y:h<0?l.y-x+f:l.y+x-f}}else Ct.debug("Corner point skipping fixing",Math.abs(a.x-s.x),Math.abs(a.y-s.y));n.push(m,u)}else n.push(e[i]);return n},"fixCorners"),fOe=Y((e,r,n)=>{const i=e-r-n,s=2,a=2,o=s+a,l=Math.floor(i/o),u=Array(l).fill(`${s} ${a}`).join(" ");return`0 ${r} ${u} ${n}`},"generateDashArray"),pOe=Y(function(e,r,n,i,s,a,o,l=!1){var R;const{handDrawnSeed:u}=hi();let d=r.points,h=!1;const f=s;var m=a;const x=[];for(const P in r.cssCompiledStyles)tte(P)||x.push(r.cssCompiledStyles[P]);Ct.debug("UIO intersect check",r.points,m.x,f.x),m.intersect&&f.intersect&&!l&&(d=d.slice(1,r.points.length-1),d.unshift(f.intersect(d[0])),Ct.debug("Last point UIO",r.start,"-->",r.end,d[d.length-1],m,m.intersect(d[d.length-1])),d.push(m.intersect(d[d.length-1])));const v=btoa(JSON.stringify(d));r.toCluster&&(Ct.info("to cluster abc88",n.get(r.toCluster)),d=lz(r.points,n.get(r.toCluster).node),h=!0),r.fromCluster&&(Ct.debug("from cluster abc88",n.get(r.fromCluster),JSON.stringify(d,null,2)),d=lz(d.reverse(),n.get(r.fromCluster).node).reverse(),h=!0);let _=d.filter(P=>!Number.isNaN(P.y));const w=oOe(r.curve);w!=="rounded"&&(_=hOe(_));let S=f_;switch(w){case"linear":S=f_;break;case"basis":S=SA;break;case"cardinal":S=LZ;break;case"bumpX":S=AZ;break;case"bumpY":S=OZ;break;case"catmullRom":S=DZ;break;case"monotoneX":S=WZ;break;case"monotoneY":S=UZ;break;case"natural":S=qZ;break;case"step":S=GZ;break;case"stepAfter":S=YZ;break;case"stepBefore":S=KZ;break;case"rounded":S=f_;break;default:S=SA}const{x:C,y:j}=u6e(r),T=z4e().x(C).y(j).curve(S);let E;switch(r.thickness){case"normal":E="edge-thickness-normal";break;case"thick":E="edge-thickness-thick";break;case"invisible":E="edge-thickness-invisible";break;default:E="edge-thickness-normal"}switch(r.pattern){case"solid":E+=" edge-pattern-solid";break;case"dotted":E+=" edge-pattern-dotted";break;case"dashed":E+=" edge-pattern-dashed";break;default:E+=" edge-pattern-solid"}let N,M=w==="rounded"?rne(nne(_,r),5):T(_);const $=Array.isArray(r.style)?r.style:[r.style];let q=$.find(P=>P==null?void 0:P.startsWith("stroke:")),F="";r.animate&&(F="edge-animation-fast"),r.animation&&(F="edge-animation-"+r.animation);let B=!1;if(r.look==="handDrawn"){const P=wr.svg(e);Object.assign([],_);const H=P.path(M,{roughness:.3,seed:u});E+=" transition",N=Vr(H).select("path").attr("id",r.id).attr("class"," "+E+(r.classes?" "+r.classes:"")+(F?" "+F:"")).attr("style",$?$.reduce((U,V)=>U+";"+V,""):"");let G=N.attr("d");N.attr("d",G),e.node().appendChild(N.node())}else{const P=x.join(";"),H=$?$.reduce((ee,X)=>ee+X+";",""):"",G=(P?P+";"+H+";":H)+";"+($?$.reduce((ee,X)=>ee+";"+X,""):"");N=e.append("path").attr("d",M).attr("id",r.id).attr("class"," "+E+(r.classes?" "+r.classes:"")+(F?" "+F:"")).attr("style",G),q=(R=G.match(/stroke:([^;]+)/))==null?void 0:R[1],B=r.animate===!0||!!r.animation||P.includes("animation");const U=N.node(),V=typeof U.getTotalLength=="function"?U.getTotalLength():0,J=kB[r.arrowTypeStart]||0,z=kB[r.arrowTypeEnd]||0;if(r.look==="neo"&&!B){const X=`stroke-dasharray: ${r.pattern==="dotted"||r.pattern==="dashed"?fOe(V,J,z):`0 ${J} ${V-J-z} ${z}`}; stroke-dashoffset: 0;`;N.attr("style",X+N.attr("style"))}}N.attr("data-edge",!0),N.attr("data-et","edge"),N.attr("data-id",r.id),N.attr("data-points",v),r.showPoints&&_.forEach(P=>{e.append("circle").style("stroke","red").style("fill","red").attr("r",1).attr("cx",P.x).attr("cy",P.y)});let W="";(hi().flowchart.arrowMarkerAbsolute||hi().state.arrowMarkerAbsolute)&&(W=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,W=W.replace(/\(/g,"\\(").replace(/\)/g,"\\)")),Ct.info("arrowTypeStart",r.arrowTypeStart),Ct.info("arrowTypeEnd",r.arrowTypeEnd),sOe(N,r,W,o,i,q);const D=Math.floor(d.length/2),O=d[D];cd.isLabelCoordinateInPath(O,N.attr("d"))||(h=!0);let I={};return h&&(I.updatedPath=d),I.originalPath=r.points,I},"insertEdge");function rne(e,r){if(e.length<2)return"";let n="";const i=e.length,s=1e-5;for(let a=0;a<i;a++){const o=e[a],l=e[a-1],u=e[a+1];if(a===0)n+=`M${o.x},${o.y}`;else if(a===i-1)n+=`L${o.x},${o.y}`;else{const d=o.x-l.x,h=o.y-l.y,f=u.x-o.x,m=u.y-o.y,x=Math.hypot(d,h),v=Math.hypot(f,m);if(x<s||v<s){n+=`L${o.x},${o.y}`;continue}const _=d/x,w=h/x,S=f/v,C=m/v,j=_*S+w*C,T=Math.max(-1,Math.min(1,j)),E=Math.acos(T);if(E<s||Math.abs(Math.PI-E)<s){n+=`L${o.x},${o.y}`;continue}const N=Math.min(r/Math.sin(E/2),x/2,v/2),M=o.x-_*N,$=o.y-w*N,q=o.x+S*N,F=o.y+C*N;n+=`L${M},${$}`,n+=`Q${o.x},${o.y} ${q},${F}`}}return n}Y(rne,"generateRoundedPath");function JA(e,r){if(!e||!r)return{angle:0,deltaX:0,deltaY:0};const n=r.x-e.x,i=r.y-e.y;return{angle:Math.atan2(i,n),deltaX:n,deltaY:i}}Y(JA,"calculateDeltaAndAngle");function nne(e,r){const n=e.map(s=>({...s}));if(e.length>=2&&yo[r.arrowTypeStart]){const s=yo[r.arrowTypeStart],a=e[0],o=e[1],{angle:l}=JA(a,o),u=s*Math.cos(l),d=s*Math.sin(l);n[0].x=a.x+u,n[0].y=a.y+d}const i=e.length;if(i>=2&&yo[r.arrowTypeEnd]){const s=yo[r.arrowTypeEnd],a=e[i-1],o=e[i-2],{angle:l}=JA(o,a),u=s*Math.cos(l),d=s*Math.sin(l);n[i-1].x=a.x-u,n[i-1].y=a.y-d}return n}Y(nne,"applyMarkerOffsetsToPoints");var mOe=Y((e,r,n,i)=>{r.forEach(s=>{OOe[s](e,n,i)})},"insertMarkers"),gOe=Y((e,r,n)=>{Ct.trace("Making markers for ",n),e.append("defs").append("marker").attr("id",n+"_"+r+"-extensionStart").attr("class","marker extension "+r).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 1,7 L18,13 V 1 Z"),e.append("defs").append("marker").attr("id",n+"_"+r+"-extensionEnd").attr("class","marker extension "+r).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 1,1 V 13 L18,7 Z")},"extension"),yOe=Y((e,r,n)=>{e.append("defs").append("marker").attr("id",n+"_"+r+"-compositionStart").attr("class","marker composition "+r).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",n+"_"+r+"-compositionEnd").attr("class","marker composition "+r).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},"composition"),xOe=Y((e,r,n)=>{e.append("defs").append("marker").attr("id",n+"_"+r+"-aggregationStart").attr("class","marker aggregation "+r).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",n+"_"+r+"-aggregationEnd").attr("class","marker aggregation "+r).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},"aggregation"),vOe=Y((e,r,n)=>{e.append("defs").append("marker").attr("id",n+"_"+r+"-dependencyStart").attr("class","marker dependency "+r).attr("refX",6).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",n+"_"+r+"-dependencyEnd").attr("class","marker dependency "+r).attr("refX",13).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},"dependency"),bOe=Y((e,r,n)=>{e.append("defs").append("marker").attr("id",n+"_"+r+"-lollipopStart").attr("class","marker lollipop "+r).attr("refX",13).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6),e.append("defs").append("marker").attr("id",n+"_"+r+"-lollipopEnd").attr("class","marker lollipop "+r).attr("refX",1).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6)},"lollipop"),_Oe=Y((e,r,n)=>{e.append("marker").attr("id",n+"_"+r+"-pointEnd").attr("class","marker "+r).attr("viewBox","0 0 10 10").attr("refX",5).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",8).attr("markerHeight",8).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),e.append("marker").attr("id",n+"_"+r+"-pointStart").attr("class","marker "+r).attr("viewBox","0 0 10 10").attr("refX",4.5).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",8).attr("markerHeight",8).attr("orient","auto").append("path").attr("d","M 0 5 L 10 10 L 10 0 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0")},"point"),wOe=Y((e,r,n)=>{e.append("marker").attr("id",n+"_"+r+"-circleEnd").attr("class","marker "+r).attr("viewBox","0 0 10 10").attr("refX",11).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),e.append("marker").attr("id",n+"_"+r+"-circleStart").attr("class","marker "+r).attr("viewBox","0 0 10 10").attr("refX",-1).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0")},"circle"),SOe=Y((e,r,n)=>{e.append("marker").attr("id",n+"_"+r+"-crossEnd").attr("class","marker cross "+r).attr("viewBox","0 0 11 11").attr("refX",12).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0"),e.append("marker").attr("id",n+"_"+r+"-crossStart").attr("class","marker cross "+r).attr("viewBox","0 0 11 11").attr("refX",-1).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0")},"cross"),kOe=Y((e,r,n)=>{e.append("defs").append("marker").attr("id",n+"_"+r+"-barbEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","userSpaceOnUse").attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z")},"barb"),COe=Y((e,r,n)=>{e.append("defs").append("marker").attr("id",n+"_"+r+"-onlyOneStart").attr("class","marker onlyOne "+r).attr("refX",0).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("d","M9,0 L9,18 M15,0 L15,18"),e.append("defs").append("marker").attr("id",n+"_"+r+"-onlyOneEnd").attr("class","marker onlyOne "+r).attr("refX",18).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("d","M3,0 L3,18 M9,0 L9,18")},"only_one"),jOe=Y((e,r,n)=>{const i=e.append("defs").append("marker").attr("id",n+"_"+r+"-zeroOrOneStart").attr("class","marker zeroOrOne "+r).attr("refX",0).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto");i.append("circle").attr("fill","white").attr("cx",21).attr("cy",9).attr("r",6),i.append("path").attr("d","M9,0 L9,18");const s=e.append("defs").append("marker").attr("id",n+"_"+r+"-zeroOrOneEnd").attr("class","marker zeroOrOne "+r).attr("refX",30).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto");s.append("circle").attr("fill","white").attr("cx",9).attr("cy",9).attr("r",6),s.append("path").attr("d","M21,0 L21,18")},"zero_or_one"),NOe=Y((e,r,n)=>{e.append("defs").append("marker").attr("id",n+"_"+r+"-oneOrMoreStart").attr("class","marker oneOrMore "+r).attr("refX",18).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("d","M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27"),e.append("defs").append("marker").attr("id",n+"_"+r+"-oneOrMoreEnd").attr("class","marker oneOrMore "+r).attr("refX",27).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("d","M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18")},"one_or_more"),TOe=Y((e,r,n)=>{const i=e.append("defs").append("marker").attr("id",n+"_"+r+"-zeroOrMoreStart").attr("class","marker zeroOrMore "+r).attr("refX",18).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto");i.append("circle").attr("fill","white").attr("cx",48).attr("cy",18).attr("r",6),i.append("path").attr("d","M0,18 Q18,0 36,18 Q18,36 0,18");const s=e.append("defs").append("marker").attr("id",n+"_"+r+"-zeroOrMoreEnd").attr("class","marker zeroOrMore "+r).attr("refX",39).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto");s.append("circle").attr("fill","white").attr("cx",9).attr("cy",18).attr("r",6),s.append("path").attr("d","M21,18 Q39,0 57,18 Q39,36 21,18")},"zero_or_more"),EOe=Y((e,r,n)=>{e.append("defs").append("marker").attr("id",n+"_"+r+"-requirement_arrowEnd").attr("refX",20).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").append("path").attr("d",`M0,0
1113
1113
  L20,10
1114
1114
  M20,10
1115
- L0,20`)},"requirement_arrow"),AOe=Y((e,r,n)=>{const i=e.append("defs").append("marker").attr("id",n+"_"+r+"-requirement_containsStart").attr("refX",0).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").append("g");i.append("circle").attr("cx",10).attr("cy",10).attr("r",9).attr("fill","none"),i.append("line").attr("x1",1).attr("x2",19).attr("y1",10).attr("y2",10),i.append("line").attr("y1",1).attr("y2",19).attr("x1",10).attr("x2",10)},"requirement_contains"),OOe={extension:gOe,composition:yOe,aggregation:xOe,dependency:vOe,lollipop:bOe,point:_Oe,circle:wOe,cross:SOe,barb:kOe,only_one:COe,zero_or_one:jOe,one_or_more:NOe,zero_or_more:TOe,requirement_arrow:EOe,requirement_contains:AOe},MOe=mOe,ROe={common:iS,getConfig:So,insertCluster:BAe,insertEdge:pOe,insertEdgeLabel:lOe,insertMarkers:MOe,insertNode:ene,interpolateToCurve:l9,labelHelper:Qr,log:Ct,positionEdgeLabel:cOe},t2={},ine=Y(e=>{for(const r of e)t2[r.name]=r},"registerLayoutLoaders"),POe=Y(()=>{ine([{name:"dagre",loader:Y(async()=>await it(()=>import("./dagre-KLK3FWXG-CvfR2PN2.js"),__vite__mapDeps([0,1,2,3,4,5]),import.meta.url),"loader")},{name:"cose-bilkent",loader:Y(async()=>await it(()=>import("./cose-bilkent-S5V4N54A-DTHhAYyX.js"),__vite__mapDeps([6,7]),import.meta.url),"loader")}])},"registerDefaultLayoutLoaders");POe();var T_t=Y(async(e,r)=>{if(!(e.layoutAlgorithm in t2))throw new Error(`Unknown layout algorithm: ${e.layoutAlgorithm}`);const n=t2[e.layoutAlgorithm];return(await n.loader()).render(e,r,ROe,{algorithm:n.algorithm})},"render"),E_t=Y((e="",{fallback:r="dagre"}={})=>{if(e in t2)return e;if(r in t2)return Ct.warn(`Layout algorithm ${e} is not registered. Using ${r} as fallback.`),r;throw new Error(`Both layout algorithms ${e} and ${r} are not registered.`)},"getRegisteredLayoutAlgorithm"),sne="comm",ane="rule",one="decl",LOe="@import",$Oe="@namespace",DOe="@keyframes",IOe="@layer",lne=Math.abs,E9=String.fromCharCode;function cne(e){return e.trim()}function C3(e,r,n){return e.replace(r,n)}function BOe(e,r,n){return e.indexOf(r,n)}function k1(e,r){return e.charCodeAt(r)|0}function Z1(e,r,n){return e.slice(r,n)}function ph(e){return e.length}function zOe(e){return e.length}function gC(e,r){return r.push(e),e}var z4=1,Q1=1,une=0,ju=0,Ks=0,Cx="";function A9(e,r,n,i,s,a,o,l){return{value:e,root:r,parent:n,type:i,props:s,children:a,line:z4,column:Q1,length:o,return:"",siblings:l}}function FOe(){return Ks}function HOe(){return Ks=ju>0?k1(Cx,--ju):0,Q1--,Ks===10&&(Q1=1,z4--),Ks}function vd(){return Ks=ju<une?k1(Cx,ju++):0,Q1++,Ks===10&&(Q1=1,z4++),Ks}function ym(){return k1(Cx,ju)}function j3(){return ju}function F4(e,r){return Z1(Cx,e,r)}function r2(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function WOe(e){return z4=Q1=1,une=ph(Cx=e),ju=0,[]}function UOe(e){return Cx="",e}function wT(e){return cne(F4(ju-1,ZA(e===91?e+2:e===40?e+1:e)))}function VOe(e){for(;(Ks=ym())&&Ks<33;)vd();return r2(e)>2||r2(Ks)>3?"":" "}function qOe(e,r){for(;--r&&vd()&&!(Ks<48||Ks>102||Ks>57&&Ks<65||Ks>70&&Ks<97););return F4(e,j3()+(r<6&&ym()==32&&vd()==32))}function ZA(e){for(;vd();)switch(Ks){case e:return ju;case 34:case 39:e!==34&&e!==39&&ZA(Ks);break;case 40:e===41&&ZA(e);break;case 92:vd();break}return ju}function GOe(e,r){for(;vd()&&e+Ks!==57;)if(e+Ks===84&&ym()===47)break;return"/*"+F4(r,ju-1)+"*"+E9(e===47?e:vd())}function KOe(e){for(;!r2(ym());)vd();return F4(e,ju)}function YOe(e){return UOe(N3("",null,null,null,[""],e=WOe(e),0,[0],e))}function N3(e,r,n,i,s,a,o,l,u){for(var d=0,h=0,f=o,m=0,x=0,v=0,_=1,w=1,S=1,C=0,j="",T=s,E=a,N=i,M=j;w;)switch(v=C,C=vd()){case 40:if(v!=108&&k1(M,f-1)==58){BOe(M+=C3(wT(C),"&","&\f"),"&\f",lne(d?l[d-1]:0))!=-1&&(S=-1);break}case 34:case 39:case 91:M+=wT(C);break;case 9:case 10:case 13:case 32:M+=VOe(v);break;case 92:M+=qOe(j3()-1,7);continue;case 47:switch(ym()){case 42:case 47:gC(XOe(GOe(vd(),j3()),r,n,u),u),(r2(v||1)==5||r2(ym()||1)==5)&&ph(M)&&Z1(M,-1,void 0)!==" "&&(M+=" ");break;default:M+="/"}break;case 123*_:l[d++]=ph(M)*S;case 125*_:case 59:case 0:switch(C){case 0:case 125:w=0;case 59+h:S==-1&&(M=C3(M,/\f/g,"")),x>0&&(ph(M)-f||_===0&&v===47)&&gC(x>32?dz(M+";",i,n,f-1,u):dz(C3(M," ","")+";",i,n,f-2,u),u);break;case 59:M+=";";default:if(gC(N=uz(M,r,n,d,h,s,l,j,T=[],E=[],f,a),a),C===123)if(h===0)N3(M,r,N,N,T,a,f,l,E);else{switch(m){case 99:if(k1(M,3)===110)break;case 108:if(k1(M,2)===97)break;default:h=0;case 100:case 109:case 115:}h?N3(e,N,N,i&&gC(uz(e,N,N,0,0,s,l,j,s,T=[],f,E),E),s,E,f,l,i?T:E):N3(M,N,N,N,[""],E,0,l,E)}}d=h=x=0,_=S=1,j=M="",f=o;break;case 58:f=1+ph(M),x=v;default:if(_<1){if(C==123)--_;else if(C==125&&_++==0&&HOe()==125)continue}switch(M+=E9(C),C*_){case 38:S=h>0?1:(M+="\f",-1);break;case 44:l[d++]=(ph(M)-1)*S,S=1;break;case 64:ym()===45&&(M+=wT(vd())),m=ym(),h=f=ph(j=M+=KOe(j3())),C++;break;case 45:v===45&&ph(M)==2&&(_=0)}}return a}function uz(e,r,n,i,s,a,o,l,u,d,h,f){for(var m=s-1,x=s===0?a:[""],v=zOe(x),_=0,w=0,S=0;_<i;++_)for(var C=0,j=Z1(e,m+1,m=lne(w=o[_])),T=e;C<v;++C)(T=cne(w>0?x[C]+" "+j:C3(j,/&\f/g,x[C])))&&(u[S++]=T);return A9(e,r,n,s===0?ane:l,u,d,h,f)}function XOe(e,r,n,i){return A9(e,r,n,sne,E9(FOe()),Z1(e,2,-2),0,i)}function dz(e,r,n,i,s){return A9(e,r,n,one,Z1(e,0,i),Z1(e,i+1,-1),i,s)}function QA(e,r){for(var n="",i=0;i<e.length;i++)n+=r(e[i],i,e,r)||"";return n}function JOe(e,r,n,i){switch(e.type){case IOe:if(e.children.length)break;case LOe:case $Oe:case one:return e.return=e.return||e.value;case sne:return"";case DOe:return e.return=e.value+"{"+QA(e.children,i)+"}";case ane:if(!ph(e.value=e.props.join(",")))return""}return ph(n=QA(e.children,i))?e.return=e.value+"{"+n+"}":""}var ZOe=Pee(Object.keys,Object),QOe=Object.prototype,e7e=QOe.hasOwnProperty;function t7e(e){if(!O4(e))return ZOe(e);var r=[];for(var n in Object(e))e7e.call(e,n)&&n!="constructor"&&r.push(n);return r}var eO=z0(Md,"DataView"),tO=z0(Md,"Promise"),rO=z0(Md,"Set"),nO=z0(Md,"WeakMap"),hz="[object Map]",r7e="[object Object]",fz="[object Promise]",pz="[object Set]",mz="[object WeakMap]",gz="[object DataView]",n7e=B0(eO),i7e=B0(Q_),s7e=B0(tO),a7e=B0(rO),o7e=B0(nO),$g=I0;(eO&&$g(new eO(new ArrayBuffer(1)))!=gz||Q_&&$g(new Q_)!=hz||tO&&$g(tO.resolve())!=fz||rO&&$g(new rO)!=pz||nO&&$g(new nO)!=mz)&&($g=function(e){var r=I0(e),n=r==r7e?e.constructor:void 0,i=n?B0(n):"";if(i)switch(i){case n7e:return gz;case i7e:return hz;case s7e:return fz;case a7e:return pz;case o7e:return mz}return r});var l7e="[object Map]",c7e="[object Set]",u7e=Object.prototype,d7e=u7e.hasOwnProperty;function yz(e){if(e==null)return!0;if(M4(e)&&($5(e)||typeof e=="string"||typeof e.splice=="function"||a9(e)||o9(e)||L5(e)))return!e.length;var r=$g(e);if(r==l7e||r==c7e)return!e.size;if(O4(e))return!t7e(e).length;for(var n in e)if(d7e.call(e,n))return!1;return!0}var dne="c4",h7e=Y(e=>/^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(e),"detector"),f7e=Y(async()=>{const{diagram:e}=await it(async()=>{const{diagram:r}=await import("./c4Diagram-IC4MRINW-frUf8uKc.js");return{diagram:r}},__vite__mapDeps([8,9]),import.meta.url);return{id:dne,diagram:e}},"loader"),p7e={id:dne,detector:h7e,loader:f7e},m7e=p7e,hne="flowchart",g7e=Y((e,r)=>{var n,i;return((n=r==null?void 0:r.flowchart)==null?void 0:n.defaultRenderer)==="dagre-wrapper"||((i=r==null?void 0:r.flowchart)==null?void 0:i.defaultRenderer)==="elk"?!1:/^\s*graph/.test(e)},"detector"),y7e=Y(async()=>{const{diagram:e}=await it(async()=>{const{diagram:r}=await import("./flowDiagram-PKNHOUZH-780t3cps.js");return{diagram:r}},__vite__mapDeps([10,11,9,12,13,14]),import.meta.url);return{id:hne,diagram:e}},"loader"),x7e={id:hne,detector:g7e,loader:y7e},v7e=x7e,fne="flowchart-v2",b7e=Y((e,r)=>{var n,i,s;return((n=r==null?void 0:r.flowchart)==null?void 0:n.defaultRenderer)==="dagre-d3"?!1:(((i=r==null?void 0:r.flowchart)==null?void 0:i.defaultRenderer)==="elk"&&(r.layout="elk"),/^\s*graph/.test(e)&&((s=r==null?void 0:r.flowchart)==null?void 0:s.defaultRenderer)==="dagre-wrapper"?!0:/^\s*flowchart/.test(e))},"detector"),_7e=Y(async()=>{const{diagram:e}=await it(async()=>{const{diagram:r}=await import("./flowDiagram-PKNHOUZH-780t3cps.js");return{diagram:r}},__vite__mapDeps([10,11,9,12,13,14]),import.meta.url);return{id:fne,diagram:e}},"loader"),w7e={id:fne,detector:b7e,loader:_7e},S7e=w7e,pne="er",k7e=Y(e=>/^\s*erDiagram/.test(e),"detector"),C7e=Y(async()=>{const{diagram:e}=await it(async()=>{const{diagram:r}=await import("./erDiagram-INFDFZHY-Dtm6lv8r.js");return{diagram:r}},__vite__mapDeps([15,12,13,14]),import.meta.url);return{id:pne,diagram:e}},"loader"),j7e={id:pne,detector:k7e,loader:C7e},N7e=j7e,mne="gitGraph",T7e=Y(e=>/^\s*gitGraph/.test(e),"detector"),E7e=Y(async()=>{const{diagram:e}=await it(async()=>{const{diagram:r}=await import("./gitGraphDiagram-K3NZZRJ6-D4E9DWlV.js");return{diagram:r}},__vite__mapDeps([16,17,18,19,2,4,5]),import.meta.url);return{id:mne,diagram:e}},"loader"),A7e={id:mne,detector:T7e,loader:E7e},O7e=A7e,gne="gantt",M7e=Y(e=>/^\s*gantt/.test(e),"detector"),R7e=Y(async()=>{const{diagram:e}=await it(async()=>{const{diagram:r}=await import("./ganttDiagram-A5KZAMGK-B5LqHhpq.js");return{diagram:r}},__vite__mapDeps([20,21,22]),import.meta.url);return{id:gne,diagram:e}},"loader"),P7e={id:gne,detector:M7e,loader:R7e},L7e=P7e,yne="info",$7e=Y(e=>/^\s*info/.test(e),"detector"),D7e=Y(async()=>{const{diagram:e}=await it(async()=>{const{diagram:r}=await import("./infoDiagram-LFFYTUFH-DDUxYsyf.js");return{diagram:r}},__vite__mapDeps([23,19,2,4,5]),import.meta.url);return{id:yne,diagram:e}},"loader"),I7e={id:yne,detector:$7e,loader:D7e},xne="pie",B7e=Y(e=>/^\s*pie/.test(e),"detector"),z7e=Y(async()=>{const{diagram:e}=await it(async()=>{const{diagram:r}=await import("./pieDiagram-SKSYHLDU-63nBc_um.js");return{diagram:r}},__vite__mapDeps([24,17,19,2,4,5,25]),import.meta.url);return{id:xne,diagram:e}},"loader"),F7e={id:xne,detector:B7e,loader:z7e},vne="quadrantChart",H7e=Y(e=>/^\s*quadrantChart/.test(e),"detector"),W7e=Y(async()=>{const{diagram:e}=await it(async()=>{const{diagram:r}=await import("./quadrantDiagram-337W2JSQ-q0JkNGpM.js");return{diagram:r}},__vite__mapDeps([26,21,22]),import.meta.url);return{id:vne,diagram:e}},"loader"),U7e={id:vne,detector:H7e,loader:W7e},V7e=U7e,bne="xychart",q7e=Y(e=>/^\s*xychart(-beta)?/.test(e),"detector"),G7e=Y(async()=>{const{diagram:e}=await it(async()=>{const{diagram:r}=await import("./xychartDiagram-JWTSCODW-D8MGMDFb.js");return{diagram:r}},__vite__mapDeps([27,21,22]),import.meta.url);return{id:bne,diagram:e}},"loader"),K7e={id:bne,detector:q7e,loader:G7e},Y7e=K7e,_ne="requirement",X7e=Y(e=>/^\s*requirement(Diagram)?/.test(e),"detector"),J7e=Y(async()=>{const{diagram:e}=await it(async()=>{const{diagram:r}=await import("./requirementDiagram-Z7DCOOCP-AyMfjYmA.js");return{diagram:r}},__vite__mapDeps([28,12,13]),import.meta.url);return{id:_ne,diagram:e}},"loader"),Z7e={id:_ne,detector:X7e,loader:J7e},Q7e=Z7e,wne="sequence",eMe=Y(e=>/^\s*sequenceDiagram/.test(e),"detector"),tMe=Y(async()=>{const{diagram:e}=await it(async()=>{const{diagram:r}=await import("./sequenceDiagram-2WXFIKYE-DPGS9_hK.js");return{diagram:r}},__vite__mapDeps([29,9,18]),import.meta.url);return{id:wne,diagram:e}},"loader"),rMe={id:wne,detector:eMe,loader:tMe},nMe=rMe,Sne="class",iMe=Y((e,r)=>{var n;return((n=r==null?void 0:r.class)==null?void 0:n.defaultRenderer)==="dagre-wrapper"?!1:/^\s*classDiagram/.test(e)},"detector"),sMe=Y(async()=>{const{diagram:e}=await it(async()=>{const{diagram:r}=await import("./classDiagram-VBA2DB6C-Dthd4Voy.js");return{diagram:r}},__vite__mapDeps([30,31,11,9,12,13]),import.meta.url);return{id:Sne,diagram:e}},"loader"),aMe={id:Sne,detector:iMe,loader:sMe},oMe=aMe,kne="classDiagram",lMe=Y((e,r)=>{var n;return/^\s*classDiagram/.test(e)&&((n=r==null?void 0:r.class)==null?void 0:n.defaultRenderer)==="dagre-wrapper"?!0:/^\s*classDiagram-v2/.test(e)},"detector"),cMe=Y(async()=>{const{diagram:e}=await it(async()=>{const{diagram:r}=await import("./classDiagram-v2-RAHNMMFH-Dthd4Voy.js");return{diagram:r}},__vite__mapDeps([32,31,11,9,12,13]),import.meta.url);return{id:kne,diagram:e}},"loader"),uMe={id:kne,detector:lMe,loader:cMe},dMe=uMe,Cne="state",hMe=Y((e,r)=>{var n;return((n=r==null?void 0:r.state)==null?void 0:n.defaultRenderer)==="dagre-wrapper"?!1:/^\s*stateDiagram/.test(e)},"detector"),fMe=Y(async()=>{const{diagram:e}=await it(async()=>{const{diagram:r}=await import("./stateDiagram-RAJIS63D-CQLMpY7Z.js");return{diagram:r}},__vite__mapDeps([33,34,12,13,1,2,3,4]),import.meta.url);return{id:Cne,diagram:e}},"loader"),pMe={id:Cne,detector:hMe,loader:fMe},mMe=pMe,jne="stateDiagram",gMe=Y((e,r)=>{var n;return!!(/^\s*stateDiagram-v2/.test(e)||/^\s*stateDiagram/.test(e)&&((n=r==null?void 0:r.state)==null?void 0:n.defaultRenderer)==="dagre-wrapper")},"detector"),yMe=Y(async()=>{const{diagram:e}=await it(async()=>{const{diagram:r}=await import("./stateDiagram-v2-FVOUBMTO-DpHwDYQ3.js");return{diagram:r}},__vite__mapDeps([35,34,12,13]),import.meta.url);return{id:jne,diagram:e}},"loader"),xMe={id:jne,detector:gMe,loader:yMe},vMe=xMe,Nne="journey",bMe=Y(e=>/^\s*journey/.test(e),"detector"),_Me=Y(async()=>{const{diagram:e}=await it(async()=>{const{diagram:r}=await import("./journeyDiagram-4ABVD52K-Di0EIn7Y.js");return{diagram:r}},__vite__mapDeps([36,11,9,25]),import.meta.url);return{id:Nne,diagram:e}},"loader"),wMe={id:Nne,detector:bMe,loader:_Me},SMe=wMe,kMe=Y((e,r,n)=>{Ct.debug(`rendering svg for syntax error
1116
- `);const i=rNe(r),s=i.append("g");i.attr("viewBox","0 0 2412 512"),XJ(i,100,512,!0),s.append("path").attr("class","error-icon").attr("d","m411.313,123.313c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32-9.375,9.375-20.688-20.688c-12.484-12.5-32.766-12.5-45.25,0l-16,16c-1.261,1.261-2.304,2.648-3.31,4.051-21.739-8.561-45.324-13.426-70.065-13.426-105.867,0-192,86.133-192,192s86.133,192 192,192 192-86.133 192-192c0-24.741-4.864-48.327-13.426-70.065 1.402-1.007 2.79-2.049 4.051-3.31l16-16c12.5-12.492 12.5-32.758 0-45.25l-20.688-20.688 9.375-9.375 32.001-31.999zm-219.313,100.687c-52.938,0-96,43.063-96,96 0,8.836-7.164,16-16,16s-16-7.164-16-16c0-70.578 57.422-128 128-128 8.836,0 16,7.164 16,16s-7.164,16-16,16z"),s.append("path").attr("class","error-icon").attr("d","m459.02,148.98c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l16,16c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16.001-16z"),s.append("path").attr("class","error-icon").attr("d","m340.395,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16-16c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l15.999,16z"),s.append("path").attr("class","error-icon").attr("d","m400,64c8.844,0 16-7.164 16-16v-32c0-8.836-7.156-16-16-16-8.844,0-16,7.164-16,16v32c0,8.836 7.156,16 16,16z"),s.append("path").attr("class","error-icon").attr("d","m496,96.586h-32c-8.844,0-16,7.164-16,16 0,8.836 7.156,16 16,16h32c8.844,0 16-7.164 16-16 0-8.836-7.156-16-16-16z"),s.append("path").attr("class","error-icon").attr("d","m436.98,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688l32-32c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32c-6.251,6.25-6.251,16.375-0.001,22.625z"),s.append("text").attr("class","error-text").attr("x",1440).attr("y",250).attr("font-size","150px").style("text-anchor","middle").text("Syntax error in text"),s.append("text").attr("class","error-text").attr("x",1250).attr("y",400).attr("font-size","100px").style("text-anchor","middle").text(`mermaid version ${n}`)},"draw"),Tne={draw:kMe},CMe=Tne,jMe={db:{},renderer:Tne,parser:{parse:Y(()=>{},"parse")}},NMe=jMe,Ene="flowchart-elk",TMe=Y((e,r={})=>{var n;return/^\s*flowchart-elk/.test(e)||/^\s*(flowchart|graph)/.test(e)&&((n=r==null?void 0:r.flowchart)==null?void 0:n.defaultRenderer)==="elk"?(r.layout="elk",!0):!1},"detector"),EMe=Y(async()=>{const{diagram:e}=await it(async()=>{const{diagram:r}=await import("./flowDiagram-PKNHOUZH-780t3cps.js");return{diagram:r}},__vite__mapDeps([10,11,9,12,13,14]),import.meta.url);return{id:Ene,diagram:e}},"loader"),AMe={id:Ene,detector:TMe,loader:EMe},OMe=AMe,Ane="timeline",MMe=Y(e=>/^\s*timeline/.test(e),"detector"),RMe=Y(async()=>{const{diagram:e}=await it(async()=>{const{diagram:r}=await import("./timeline-definition-YZTLITO2-DzUZuJQG.js");return{diagram:r}},__vite__mapDeps([37,25]),import.meta.url);return{id:Ane,diagram:e}},"loader"),PMe={id:Ane,detector:MMe,loader:RMe},LMe=PMe,One="mindmap",$Me=Y(e=>/^\s*mindmap/.test(e),"detector"),DMe=Y(async()=>{const{diagram:e}=await it(async()=>{const{diagram:r}=await import("./mindmap-definition-YRQLILUH-dbGiW4tz.js");return{diagram:r}},__vite__mapDeps([38,12,13]),import.meta.url);return{id:One,diagram:e}},"loader"),IMe={id:One,detector:$Me,loader:DMe},BMe=IMe,Mne="kanban",zMe=Y(e=>/^\s*kanban/.test(e),"detector"),FMe=Y(async()=>{const{diagram:e}=await it(async()=>{const{diagram:r}=await import("./kanban-definition-K7BYSVSG-Bsook8cN.js");return{diagram:r}},__vite__mapDeps([39,11]),import.meta.url);return{id:Mne,diagram:e}},"loader"),HMe={id:Mne,detector:zMe,loader:FMe},WMe=HMe,Rne="sankey",UMe=Y(e=>/^\s*sankey(-beta)?/.test(e),"detector"),VMe=Y(async()=>{const{diagram:e}=await it(async()=>{const{diagram:r}=await import("./sankeyDiagram-WA2Y5GQK-B8Xhghtq.js");return{diagram:r}},[],import.meta.url);return{id:Rne,diagram:e}},"loader"),qMe={id:Rne,detector:UMe,loader:VMe},GMe=qMe,Pne="packet",KMe=Y(e=>/^\s*packet(-beta)?/.test(e),"detector"),YMe=Y(async()=>{const{diagram:e}=await it(async()=>{const{diagram:r}=await import("./diagram-P4PSJMXO-D8oqdRM8.js");return{diagram:r}},__vite__mapDeps([40,17,19,2,4,5]),import.meta.url);return{id:Pne,diagram:e}},"loader"),XMe={id:Pne,detector:KMe,loader:YMe},Lne="radar",JMe=Y(e=>/^\s*radar-beta/.test(e),"detector"),ZMe=Y(async()=>{const{diagram:e}=await it(async()=>{const{diagram:r}=await import("./diagram-IFDJBPK2-DYPqb_lA.js");return{diagram:r}},__vite__mapDeps([41,17,19,2,4,5]),import.meta.url);return{id:Lne,diagram:e}},"loader"),QMe={id:Lne,detector:JMe,loader:ZMe},$ne="block",eRe=Y(e=>/^\s*block(-beta)?/.test(e),"detector"),tRe=Y(async()=>{const{diagram:e}=await it(async()=>{const{diagram:r}=await import("./blockDiagram-WCTKOSBZ-CNUF5-Si.js");return{diagram:r}},__vite__mapDeps([42,11,5,2,1,14]),import.meta.url);return{id:$ne,diagram:e}},"loader"),rRe={id:$ne,detector:eRe,loader:tRe},nRe=rRe,Dne="architecture",iRe=Y(e=>/^\s*architecture/.test(e),"detector"),sRe=Y(async()=>{const{diagram:e}=await it(async()=>{const{diagram:r}=await import("./architectureDiagram-2XIMDMQ5-Doalw_qz.js");return{diagram:r}},__vite__mapDeps([43,17,19,2,4,5,7]),import.meta.url);return{id:Dne,diagram:e}},"loader"),aRe={id:Dne,detector:iRe,loader:sRe},oRe=aRe,Ine="ishikawa",lRe=Y(e=>/^\s*ishikawa(-beta)?\b/i.test(e),"detector"),cRe=Y(async()=>{const{diagram:e}=await it(async()=>{const{diagram:r}=await import("./ishikawaDiagram-PHBUUO56-BIphFO-6.js");return{diagram:r}},[],import.meta.url);return{id:Ine,diagram:e}},"loader"),uRe={id:Ine,detector:lRe,loader:cRe},Bne="venn",dRe=Y(e=>/^\s*venn-beta/.test(e),"detector"),hRe=Y(async()=>{const{diagram:e}=await it(async()=>{const{diagram:r}=await import("./vennDiagram-LZ73GAT5-B3VtqzGY.js");return{diagram:r}},[],import.meta.url);return{id:Bne,diagram:e}},"loader"),fRe={id:Bne,detector:dRe,loader:hRe},pRe=fRe,zne="treemap",mRe=Y(e=>/^\s*treemap/.test(e),"detector"),gRe=Y(async()=>{const{diagram:e}=await it(async()=>{const{diagram:r}=await import("./diagram-E7M64L7V-E8kQlK95.js");return{diagram:r}},__vite__mapDeps([44,13,17,19,2,4,5,22]),import.meta.url);return{id:zne,diagram:e}},"loader"),yRe={id:zne,detector:mRe,loader:gRe},xz=!1,H4=Y(()=>{xz||(xz=!0,y5("error",NMe,e=>e.toLowerCase().trim()==="error"),y5("---",{db:{clear:Y(()=>{},"clear")},styles:{},renderer:{draw:Y(()=>{},"draw")},parser:{parse:Y(()=>{throw new Error("Diagrams beginning with --- are not valid. If you were trying to use a YAML front-matter, please ensure that you've correctly opened and closed the YAML front-matter with un-indented `---` blocks")},"parse")},init:Y(()=>null,"init")},e=>e.toLowerCase().trimStart().startsWith("---")),lA(OMe,BMe,oRe),lA(m7e,WMe,dMe,oMe,N7e,L7e,I7e,F7e,Q7e,nMe,S7e,v7e,LMe,O7e,vMe,mMe,SMe,V7e,GMe,XMe,Y7e,nRe,QMe,uRe,yRe,pRe))},"addDiagrams"),xRe=Y(async()=>{Ct.debug("Loading registered diagrams");const r=(await Promise.allSettled(Object.entries(d0).map(async([n,{detector:i,loader:s}])=>{if(s)try{hA(n)}catch{try{const{diagram:a,id:o}=await s();y5(o,a,i)}catch(a){throw Ct.error(`Failed to load external diagram with key ${n}. Removing from detectors.`),delete d0[n],a}}}))).filter(n=>n.status==="rejected");if(r.length>0){Ct.error(`Failed to load ${r.length} external diagrams`);for(const n of r)Ct.error(n);throw new Error(`Failed to load ${r.length} external diagrams`)}},"loadRegisteredDiagrams"),vRe="graphics-document document";function Fne(e,r){e.attr("role",vRe),r!==""&&e.attr("aria-roledescription",r)}Y(Fne,"setA11yDiagramInfo");function Hne(e,r,n,i){if(e.insert!==void 0){if(n){const s=`chart-desc-${i}`;e.attr("aria-describedby",s),e.insert("desc",":first-child").attr("id",s).text(n)}if(r){const s=`chart-title-${i}`;e.attr("aria-labelledby",s),e.insert("title",":first-child").attr("id",s).text(r)}}}Y(Hne,"addSVGa11yTitleDescription");var a0,iO=(a0=class{constructor(r,n,i,s,a){this.type=r,this.text=n,this.db=i,this.parser=s,this.renderer=a}static async fromText(r,n={}){var d,h;const i=So(),s=ER(r,i);r=s8e(r)+`
1115
+ L0,20`)},"requirement_arrow"),AOe=Y((e,r,n)=>{const i=e.append("defs").append("marker").attr("id",n+"_"+r+"-requirement_containsStart").attr("refX",0).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").append("g");i.append("circle").attr("cx",10).attr("cy",10).attr("r",9).attr("fill","none"),i.append("line").attr("x1",1).attr("x2",19).attr("y1",10).attr("y2",10),i.append("line").attr("y1",1).attr("y2",19).attr("x1",10).attr("x2",10)},"requirement_contains"),OOe={extension:gOe,composition:yOe,aggregation:xOe,dependency:vOe,lollipop:bOe,point:_Oe,circle:wOe,cross:SOe,barb:kOe,only_one:COe,zero_or_one:jOe,one_or_more:NOe,zero_or_more:TOe,requirement_arrow:EOe,requirement_contains:AOe},MOe=mOe,ROe={common:iS,getConfig:So,insertCluster:BAe,insertEdge:pOe,insertEdgeLabel:lOe,insertMarkers:MOe,insertNode:ene,interpolateToCurve:l9,labelHelper:Qr,log:Ct,positionEdgeLabel:cOe},t2={},ine=Y(e=>{for(const r of e)t2[r.name]=r},"registerLayoutLoaders"),POe=Y(()=>{ine([{name:"dagre",loader:Y(async()=>await it(()=>import("./dagre-KLK3FWXG-DRcTydyd.js"),__vite__mapDeps([0,1,2,3,4,5]),import.meta.url),"loader")},{name:"cose-bilkent",loader:Y(async()=>await it(()=>import("./cose-bilkent-S5V4N54A-CfkksG3T.js"),__vite__mapDeps([6,7]),import.meta.url),"loader")}])},"registerDefaultLayoutLoaders");POe();var T_t=Y(async(e,r)=>{if(!(e.layoutAlgorithm in t2))throw new Error(`Unknown layout algorithm: ${e.layoutAlgorithm}`);const n=t2[e.layoutAlgorithm];return(await n.loader()).render(e,r,ROe,{algorithm:n.algorithm})},"render"),E_t=Y((e="",{fallback:r="dagre"}={})=>{if(e in t2)return e;if(r in t2)return Ct.warn(`Layout algorithm ${e} is not registered. Using ${r} as fallback.`),r;throw new Error(`Both layout algorithms ${e} and ${r} are not registered.`)},"getRegisteredLayoutAlgorithm"),sne="comm",ane="rule",one="decl",LOe="@import",$Oe="@namespace",DOe="@keyframes",IOe="@layer",lne=Math.abs,E9=String.fromCharCode;function cne(e){return e.trim()}function C3(e,r,n){return e.replace(r,n)}function BOe(e,r,n){return e.indexOf(r,n)}function k1(e,r){return e.charCodeAt(r)|0}function Z1(e,r,n){return e.slice(r,n)}function ph(e){return e.length}function zOe(e){return e.length}function gC(e,r){return r.push(e),e}var z4=1,Q1=1,une=0,ju=0,Ks=0,Cx="";function A9(e,r,n,i,s,a,o,l){return{value:e,root:r,parent:n,type:i,props:s,children:a,line:z4,column:Q1,length:o,return:"",siblings:l}}function FOe(){return Ks}function HOe(){return Ks=ju>0?k1(Cx,--ju):0,Q1--,Ks===10&&(Q1=1,z4--),Ks}function vd(){return Ks=ju<une?k1(Cx,ju++):0,Q1++,Ks===10&&(Q1=1,z4++),Ks}function ym(){return k1(Cx,ju)}function j3(){return ju}function F4(e,r){return Z1(Cx,e,r)}function r2(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function WOe(e){return z4=Q1=1,une=ph(Cx=e),ju=0,[]}function UOe(e){return Cx="",e}function wT(e){return cne(F4(ju-1,ZA(e===91?e+2:e===40?e+1:e)))}function VOe(e){for(;(Ks=ym())&&Ks<33;)vd();return r2(e)>2||r2(Ks)>3?"":" "}function qOe(e,r){for(;--r&&vd()&&!(Ks<48||Ks>102||Ks>57&&Ks<65||Ks>70&&Ks<97););return F4(e,j3()+(r<6&&ym()==32&&vd()==32))}function ZA(e){for(;vd();)switch(Ks){case e:return ju;case 34:case 39:e!==34&&e!==39&&ZA(Ks);break;case 40:e===41&&ZA(e);break;case 92:vd();break}return ju}function GOe(e,r){for(;vd()&&e+Ks!==57;)if(e+Ks===84&&ym()===47)break;return"/*"+F4(r,ju-1)+"*"+E9(e===47?e:vd())}function KOe(e){for(;!r2(ym());)vd();return F4(e,ju)}function YOe(e){return UOe(N3("",null,null,null,[""],e=WOe(e),0,[0],e))}function N3(e,r,n,i,s,a,o,l,u){for(var d=0,h=0,f=o,m=0,x=0,v=0,_=1,w=1,S=1,C=0,j="",T=s,E=a,N=i,M=j;w;)switch(v=C,C=vd()){case 40:if(v!=108&&k1(M,f-1)==58){BOe(M+=C3(wT(C),"&","&\f"),"&\f",lne(d?l[d-1]:0))!=-1&&(S=-1);break}case 34:case 39:case 91:M+=wT(C);break;case 9:case 10:case 13:case 32:M+=VOe(v);break;case 92:M+=qOe(j3()-1,7);continue;case 47:switch(ym()){case 42:case 47:gC(XOe(GOe(vd(),j3()),r,n,u),u),(r2(v||1)==5||r2(ym()||1)==5)&&ph(M)&&Z1(M,-1,void 0)!==" "&&(M+=" ");break;default:M+="/"}break;case 123*_:l[d++]=ph(M)*S;case 125*_:case 59:case 0:switch(C){case 0:case 125:w=0;case 59+h:S==-1&&(M=C3(M,/\f/g,"")),x>0&&(ph(M)-f||_===0&&v===47)&&gC(x>32?dz(M+";",i,n,f-1,u):dz(C3(M," ","")+";",i,n,f-2,u),u);break;case 59:M+=";";default:if(gC(N=uz(M,r,n,d,h,s,l,j,T=[],E=[],f,a),a),C===123)if(h===0)N3(M,r,N,N,T,a,f,l,E);else{switch(m){case 99:if(k1(M,3)===110)break;case 108:if(k1(M,2)===97)break;default:h=0;case 100:case 109:case 115:}h?N3(e,N,N,i&&gC(uz(e,N,N,0,0,s,l,j,s,T=[],f,E),E),s,E,f,l,i?T:E):N3(M,N,N,N,[""],E,0,l,E)}}d=h=x=0,_=S=1,j=M="",f=o;break;case 58:f=1+ph(M),x=v;default:if(_<1){if(C==123)--_;else if(C==125&&_++==0&&HOe()==125)continue}switch(M+=E9(C),C*_){case 38:S=h>0?1:(M+="\f",-1);break;case 44:l[d++]=(ph(M)-1)*S,S=1;break;case 64:ym()===45&&(M+=wT(vd())),m=ym(),h=f=ph(j=M+=KOe(j3())),C++;break;case 45:v===45&&ph(M)==2&&(_=0)}}return a}function uz(e,r,n,i,s,a,o,l,u,d,h,f){for(var m=s-1,x=s===0?a:[""],v=zOe(x),_=0,w=0,S=0;_<i;++_)for(var C=0,j=Z1(e,m+1,m=lne(w=o[_])),T=e;C<v;++C)(T=cne(w>0?x[C]+" "+j:C3(j,/&\f/g,x[C])))&&(u[S++]=T);return A9(e,r,n,s===0?ane:l,u,d,h,f)}function XOe(e,r,n,i){return A9(e,r,n,sne,E9(FOe()),Z1(e,2,-2),0,i)}function dz(e,r,n,i,s){return A9(e,r,n,one,Z1(e,0,i),Z1(e,i+1,-1),i,s)}function QA(e,r){for(var n="",i=0;i<e.length;i++)n+=r(e[i],i,e,r)||"";return n}function JOe(e,r,n,i){switch(e.type){case IOe:if(e.children.length)break;case LOe:case $Oe:case one:return e.return=e.return||e.value;case sne:return"";case DOe:return e.return=e.value+"{"+QA(e.children,i)+"}";case ane:if(!ph(e.value=e.props.join(",")))return""}return ph(n=QA(e.children,i))?e.return=e.value+"{"+n+"}":""}var ZOe=Pee(Object.keys,Object),QOe=Object.prototype,e7e=QOe.hasOwnProperty;function t7e(e){if(!O4(e))return ZOe(e);var r=[];for(var n in Object(e))e7e.call(e,n)&&n!="constructor"&&r.push(n);return r}var eO=z0(Md,"DataView"),tO=z0(Md,"Promise"),rO=z0(Md,"Set"),nO=z0(Md,"WeakMap"),hz="[object Map]",r7e="[object Object]",fz="[object Promise]",pz="[object Set]",mz="[object WeakMap]",gz="[object DataView]",n7e=B0(eO),i7e=B0(Q_),s7e=B0(tO),a7e=B0(rO),o7e=B0(nO),$g=I0;(eO&&$g(new eO(new ArrayBuffer(1)))!=gz||Q_&&$g(new Q_)!=hz||tO&&$g(tO.resolve())!=fz||rO&&$g(new rO)!=pz||nO&&$g(new nO)!=mz)&&($g=function(e){var r=I0(e),n=r==r7e?e.constructor:void 0,i=n?B0(n):"";if(i)switch(i){case n7e:return gz;case i7e:return hz;case s7e:return fz;case a7e:return pz;case o7e:return mz}return r});var l7e="[object Map]",c7e="[object Set]",u7e=Object.prototype,d7e=u7e.hasOwnProperty;function yz(e){if(e==null)return!0;if(M4(e)&&($5(e)||typeof e=="string"||typeof e.splice=="function"||a9(e)||o9(e)||L5(e)))return!e.length;var r=$g(e);if(r==l7e||r==c7e)return!e.size;if(O4(e))return!t7e(e).length;for(var n in e)if(d7e.call(e,n))return!1;return!0}var dne="c4",h7e=Y(e=>/^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(e),"detector"),f7e=Y(async()=>{const{diagram:e}=await it(async()=>{const{diagram:r}=await import("./c4Diagram-IC4MRINW-B9fG4jnw.js");return{diagram:r}},__vite__mapDeps([8,9]),import.meta.url);return{id:dne,diagram:e}},"loader"),p7e={id:dne,detector:h7e,loader:f7e},m7e=p7e,hne="flowchart",g7e=Y((e,r)=>{var n,i;return((n=r==null?void 0:r.flowchart)==null?void 0:n.defaultRenderer)==="dagre-wrapper"||((i=r==null?void 0:r.flowchart)==null?void 0:i.defaultRenderer)==="elk"?!1:/^\s*graph/.test(e)},"detector"),y7e=Y(async()=>{const{diagram:e}=await it(async()=>{const{diagram:r}=await import("./flowDiagram-PKNHOUZH-CGvfqLcL.js");return{diagram:r}},__vite__mapDeps([10,11,9,12,13,14]),import.meta.url);return{id:hne,diagram:e}},"loader"),x7e={id:hne,detector:g7e,loader:y7e},v7e=x7e,fne="flowchart-v2",b7e=Y((e,r)=>{var n,i,s;return((n=r==null?void 0:r.flowchart)==null?void 0:n.defaultRenderer)==="dagre-d3"?!1:(((i=r==null?void 0:r.flowchart)==null?void 0:i.defaultRenderer)==="elk"&&(r.layout="elk"),/^\s*graph/.test(e)&&((s=r==null?void 0:r.flowchart)==null?void 0:s.defaultRenderer)==="dagre-wrapper"?!0:/^\s*flowchart/.test(e))},"detector"),_7e=Y(async()=>{const{diagram:e}=await it(async()=>{const{diagram:r}=await import("./flowDiagram-PKNHOUZH-CGvfqLcL.js");return{diagram:r}},__vite__mapDeps([10,11,9,12,13,14]),import.meta.url);return{id:fne,diagram:e}},"loader"),w7e={id:fne,detector:b7e,loader:_7e},S7e=w7e,pne="er",k7e=Y(e=>/^\s*erDiagram/.test(e),"detector"),C7e=Y(async()=>{const{diagram:e}=await it(async()=>{const{diagram:r}=await import("./erDiagram-INFDFZHY-BC7OJlxp.js");return{diagram:r}},__vite__mapDeps([15,12,13,14]),import.meta.url);return{id:pne,diagram:e}},"loader"),j7e={id:pne,detector:k7e,loader:C7e},N7e=j7e,mne="gitGraph",T7e=Y(e=>/^\s*gitGraph/.test(e),"detector"),E7e=Y(async()=>{const{diagram:e}=await it(async()=>{const{diagram:r}=await import("./gitGraphDiagram-K3NZZRJ6-Cu0WuQN0.js");return{diagram:r}},__vite__mapDeps([16,17,18,19,2,4,5]),import.meta.url);return{id:mne,diagram:e}},"loader"),A7e={id:mne,detector:T7e,loader:E7e},O7e=A7e,gne="gantt",M7e=Y(e=>/^\s*gantt/.test(e),"detector"),R7e=Y(async()=>{const{diagram:e}=await it(async()=>{const{diagram:r}=await import("./ganttDiagram-A5KZAMGK-B96xAW4I.js");return{diagram:r}},__vite__mapDeps([20,21,22]),import.meta.url);return{id:gne,diagram:e}},"loader"),P7e={id:gne,detector:M7e,loader:R7e},L7e=P7e,yne="info",$7e=Y(e=>/^\s*info/.test(e),"detector"),D7e=Y(async()=>{const{diagram:e}=await it(async()=>{const{diagram:r}=await import("./infoDiagram-LFFYTUFH-BdPKNyNT.js");return{diagram:r}},__vite__mapDeps([23,19,2,4,5]),import.meta.url);return{id:yne,diagram:e}},"loader"),I7e={id:yne,detector:$7e,loader:D7e},xne="pie",B7e=Y(e=>/^\s*pie/.test(e),"detector"),z7e=Y(async()=>{const{diagram:e}=await it(async()=>{const{diagram:r}=await import("./pieDiagram-SKSYHLDU-T-B8Z7f4.js");return{diagram:r}},__vite__mapDeps([24,17,19,2,4,5,25]),import.meta.url);return{id:xne,diagram:e}},"loader"),F7e={id:xne,detector:B7e,loader:z7e},vne="quadrantChart",H7e=Y(e=>/^\s*quadrantChart/.test(e),"detector"),W7e=Y(async()=>{const{diagram:e}=await it(async()=>{const{diagram:r}=await import("./quadrantDiagram-337W2JSQ-BEi4PbV1.js");return{diagram:r}},__vite__mapDeps([26,21,22]),import.meta.url);return{id:vne,diagram:e}},"loader"),U7e={id:vne,detector:H7e,loader:W7e},V7e=U7e,bne="xychart",q7e=Y(e=>/^\s*xychart(-beta)?/.test(e),"detector"),G7e=Y(async()=>{const{diagram:e}=await it(async()=>{const{diagram:r}=await import("./xychartDiagram-JWTSCODW-DnEURIT5.js");return{diagram:r}},__vite__mapDeps([27,21,22]),import.meta.url);return{id:bne,diagram:e}},"loader"),K7e={id:bne,detector:q7e,loader:G7e},Y7e=K7e,_ne="requirement",X7e=Y(e=>/^\s*requirement(Diagram)?/.test(e),"detector"),J7e=Y(async()=>{const{diagram:e}=await it(async()=>{const{diagram:r}=await import("./requirementDiagram-Z7DCOOCP-CKWcVdXJ.js");return{diagram:r}},__vite__mapDeps([28,12,13]),import.meta.url);return{id:_ne,diagram:e}},"loader"),Z7e={id:_ne,detector:X7e,loader:J7e},Q7e=Z7e,wne="sequence",eMe=Y(e=>/^\s*sequenceDiagram/.test(e),"detector"),tMe=Y(async()=>{const{diagram:e}=await it(async()=>{const{diagram:r}=await import("./sequenceDiagram-2WXFIKYE-BWFXpKWM.js");return{diagram:r}},__vite__mapDeps([29,9,18]),import.meta.url);return{id:wne,diagram:e}},"loader"),rMe={id:wne,detector:eMe,loader:tMe},nMe=rMe,Sne="class",iMe=Y((e,r)=>{var n;return((n=r==null?void 0:r.class)==null?void 0:n.defaultRenderer)==="dagre-wrapper"?!1:/^\s*classDiagram/.test(e)},"detector"),sMe=Y(async()=>{const{diagram:e}=await it(async()=>{const{diagram:r}=await import("./classDiagram-VBA2DB6C-BGJ0Mbbl.js");return{diagram:r}},__vite__mapDeps([30,31,11,9,12,13]),import.meta.url);return{id:Sne,diagram:e}},"loader"),aMe={id:Sne,detector:iMe,loader:sMe},oMe=aMe,kne="classDiagram",lMe=Y((e,r)=>{var n;return/^\s*classDiagram/.test(e)&&((n=r==null?void 0:r.class)==null?void 0:n.defaultRenderer)==="dagre-wrapper"?!0:/^\s*classDiagram-v2/.test(e)},"detector"),cMe=Y(async()=>{const{diagram:e}=await it(async()=>{const{diagram:r}=await import("./classDiagram-v2-RAHNMMFH-BGJ0Mbbl.js");return{diagram:r}},__vite__mapDeps([32,31,11,9,12,13]),import.meta.url);return{id:kne,diagram:e}},"loader"),uMe={id:kne,detector:lMe,loader:cMe},dMe=uMe,Cne="state",hMe=Y((e,r)=>{var n;return((n=r==null?void 0:r.state)==null?void 0:n.defaultRenderer)==="dagre-wrapper"?!1:/^\s*stateDiagram/.test(e)},"detector"),fMe=Y(async()=>{const{diagram:e}=await it(async()=>{const{diagram:r}=await import("./stateDiagram-RAJIS63D-B4vM-DO_.js");return{diagram:r}},__vite__mapDeps([33,34,12,13,1,2,3,4]),import.meta.url);return{id:Cne,diagram:e}},"loader"),pMe={id:Cne,detector:hMe,loader:fMe},mMe=pMe,jne="stateDiagram",gMe=Y((e,r)=>{var n;return!!(/^\s*stateDiagram-v2/.test(e)||/^\s*stateDiagram/.test(e)&&((n=r==null?void 0:r.state)==null?void 0:n.defaultRenderer)==="dagre-wrapper")},"detector"),yMe=Y(async()=>{const{diagram:e}=await it(async()=>{const{diagram:r}=await import("./stateDiagram-v2-FVOUBMTO-8WHNlLBv.js");return{diagram:r}},__vite__mapDeps([35,34,12,13]),import.meta.url);return{id:jne,diagram:e}},"loader"),xMe={id:jne,detector:gMe,loader:yMe},vMe=xMe,Nne="journey",bMe=Y(e=>/^\s*journey/.test(e),"detector"),_Me=Y(async()=>{const{diagram:e}=await it(async()=>{const{diagram:r}=await import("./journeyDiagram-4ABVD52K-1lIjiaW5.js");return{diagram:r}},__vite__mapDeps([36,11,9,25]),import.meta.url);return{id:Nne,diagram:e}},"loader"),wMe={id:Nne,detector:bMe,loader:_Me},SMe=wMe,kMe=Y((e,r,n)=>{Ct.debug(`rendering svg for syntax error
1116
+ `);const i=rNe(r),s=i.append("g");i.attr("viewBox","0 0 2412 512"),XJ(i,100,512,!0),s.append("path").attr("class","error-icon").attr("d","m411.313,123.313c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32-9.375,9.375-20.688-20.688c-12.484-12.5-32.766-12.5-45.25,0l-16,16c-1.261,1.261-2.304,2.648-3.31,4.051-21.739-8.561-45.324-13.426-70.065-13.426-105.867,0-192,86.133-192,192s86.133,192 192,192 192-86.133 192-192c0-24.741-4.864-48.327-13.426-70.065 1.402-1.007 2.79-2.049 4.051-3.31l16-16c12.5-12.492 12.5-32.758 0-45.25l-20.688-20.688 9.375-9.375 32.001-31.999zm-219.313,100.687c-52.938,0-96,43.063-96,96 0,8.836-7.164,16-16,16s-16-7.164-16-16c0-70.578 57.422-128 128-128 8.836,0 16,7.164 16,16s-7.164,16-16,16z"),s.append("path").attr("class","error-icon").attr("d","m459.02,148.98c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l16,16c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16.001-16z"),s.append("path").attr("class","error-icon").attr("d","m340.395,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16-16c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l15.999,16z"),s.append("path").attr("class","error-icon").attr("d","m400,64c8.844,0 16-7.164 16-16v-32c0-8.836-7.156-16-16-16-8.844,0-16,7.164-16,16v32c0,8.836 7.156,16 16,16z"),s.append("path").attr("class","error-icon").attr("d","m496,96.586h-32c-8.844,0-16,7.164-16,16 0,8.836 7.156,16 16,16h32c8.844,0 16-7.164 16-16 0-8.836-7.156-16-16-16z"),s.append("path").attr("class","error-icon").attr("d","m436.98,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688l32-32c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32c-6.251,6.25-6.251,16.375-0.001,22.625z"),s.append("text").attr("class","error-text").attr("x",1440).attr("y",250).attr("font-size","150px").style("text-anchor","middle").text("Syntax error in text"),s.append("text").attr("class","error-text").attr("x",1250).attr("y",400).attr("font-size","100px").style("text-anchor","middle").text(`mermaid version ${n}`)},"draw"),Tne={draw:kMe},CMe=Tne,jMe={db:{},renderer:Tne,parser:{parse:Y(()=>{},"parse")}},NMe=jMe,Ene="flowchart-elk",TMe=Y((e,r={})=>{var n;return/^\s*flowchart-elk/.test(e)||/^\s*(flowchart|graph)/.test(e)&&((n=r==null?void 0:r.flowchart)==null?void 0:n.defaultRenderer)==="elk"?(r.layout="elk",!0):!1},"detector"),EMe=Y(async()=>{const{diagram:e}=await it(async()=>{const{diagram:r}=await import("./flowDiagram-PKNHOUZH-CGvfqLcL.js");return{diagram:r}},__vite__mapDeps([10,11,9,12,13,14]),import.meta.url);return{id:Ene,diagram:e}},"loader"),AMe={id:Ene,detector:TMe,loader:EMe},OMe=AMe,Ane="timeline",MMe=Y(e=>/^\s*timeline/.test(e),"detector"),RMe=Y(async()=>{const{diagram:e}=await it(async()=>{const{diagram:r}=await import("./timeline-definition-YZTLITO2-bkIXSBXV.js");return{diagram:r}},__vite__mapDeps([37,25]),import.meta.url);return{id:Ane,diagram:e}},"loader"),PMe={id:Ane,detector:MMe,loader:RMe},LMe=PMe,One="mindmap",$Me=Y(e=>/^\s*mindmap/.test(e),"detector"),DMe=Y(async()=>{const{diagram:e}=await it(async()=>{const{diagram:r}=await import("./mindmap-definition-YRQLILUH-f8hFKH_7.js");return{diagram:r}},__vite__mapDeps([38,12,13]),import.meta.url);return{id:One,diagram:e}},"loader"),IMe={id:One,detector:$Me,loader:DMe},BMe=IMe,Mne="kanban",zMe=Y(e=>/^\s*kanban/.test(e),"detector"),FMe=Y(async()=>{const{diagram:e}=await it(async()=>{const{diagram:r}=await import("./kanban-definition-K7BYSVSG-x4zww1AP.js");return{diagram:r}},__vite__mapDeps([39,11]),import.meta.url);return{id:Mne,diagram:e}},"loader"),HMe={id:Mne,detector:zMe,loader:FMe},WMe=HMe,Rne="sankey",UMe=Y(e=>/^\s*sankey(-beta)?/.test(e),"detector"),VMe=Y(async()=>{const{diagram:e}=await it(async()=>{const{diagram:r}=await import("./sankeyDiagram-WA2Y5GQK-BEAIo1bX.js");return{diagram:r}},[],import.meta.url);return{id:Rne,diagram:e}},"loader"),qMe={id:Rne,detector:UMe,loader:VMe},GMe=qMe,Pne="packet",KMe=Y(e=>/^\s*packet(-beta)?/.test(e),"detector"),YMe=Y(async()=>{const{diagram:e}=await it(async()=>{const{diagram:r}=await import("./diagram-P4PSJMXO-C0UIqZL8.js");return{diagram:r}},__vite__mapDeps([40,17,19,2,4,5]),import.meta.url);return{id:Pne,diagram:e}},"loader"),XMe={id:Pne,detector:KMe,loader:YMe},Lne="radar",JMe=Y(e=>/^\s*radar-beta/.test(e),"detector"),ZMe=Y(async()=>{const{diagram:e}=await it(async()=>{const{diagram:r}=await import("./diagram-IFDJBPK2-DvFozE4l.js");return{diagram:r}},__vite__mapDeps([41,17,19,2,4,5]),import.meta.url);return{id:Lne,diagram:e}},"loader"),QMe={id:Lne,detector:JMe,loader:ZMe},$ne="block",eRe=Y(e=>/^\s*block(-beta)?/.test(e),"detector"),tRe=Y(async()=>{const{diagram:e}=await it(async()=>{const{diagram:r}=await import("./blockDiagram-WCTKOSBZ-DfE6_tRq.js");return{diagram:r}},__vite__mapDeps([42,11,5,2,1,14]),import.meta.url);return{id:$ne,diagram:e}},"loader"),rRe={id:$ne,detector:eRe,loader:tRe},nRe=rRe,Dne="architecture",iRe=Y(e=>/^\s*architecture/.test(e),"detector"),sRe=Y(async()=>{const{diagram:e}=await it(async()=>{const{diagram:r}=await import("./architectureDiagram-2XIMDMQ5-DPk6MOjY.js");return{diagram:r}},__vite__mapDeps([43,17,19,2,4,5,7]),import.meta.url);return{id:Dne,diagram:e}},"loader"),aRe={id:Dne,detector:iRe,loader:sRe},oRe=aRe,Ine="ishikawa",lRe=Y(e=>/^\s*ishikawa(-beta)?\b/i.test(e),"detector"),cRe=Y(async()=>{const{diagram:e}=await it(async()=>{const{diagram:r}=await import("./ishikawaDiagram-PHBUUO56-BRq1jm8s.js");return{diagram:r}},[],import.meta.url);return{id:Ine,diagram:e}},"loader"),uRe={id:Ine,detector:lRe,loader:cRe},Bne="venn",dRe=Y(e=>/^\s*venn-beta/.test(e),"detector"),hRe=Y(async()=>{const{diagram:e}=await it(async()=>{const{diagram:r}=await import("./vennDiagram-LZ73GAT5-Ce9BXagg.js");return{diagram:r}},[],import.meta.url);return{id:Bne,diagram:e}},"loader"),fRe={id:Bne,detector:dRe,loader:hRe},pRe=fRe,zne="treemap",mRe=Y(e=>/^\s*treemap/.test(e),"detector"),gRe=Y(async()=>{const{diagram:e}=await it(async()=>{const{diagram:r}=await import("./diagram-E7M64L7V-D_jO_7c_.js");return{diagram:r}},__vite__mapDeps([44,13,17,19,2,4,5,22]),import.meta.url);return{id:zne,diagram:e}},"loader"),yRe={id:zne,detector:mRe,loader:gRe},xz=!1,H4=Y(()=>{xz||(xz=!0,y5("error",NMe,e=>e.toLowerCase().trim()==="error"),y5("---",{db:{clear:Y(()=>{},"clear")},styles:{},renderer:{draw:Y(()=>{},"draw")},parser:{parse:Y(()=>{throw new Error("Diagrams beginning with --- are not valid. If you were trying to use a YAML front-matter, please ensure that you've correctly opened and closed the YAML front-matter with un-indented `---` blocks")},"parse")},init:Y(()=>null,"init")},e=>e.toLowerCase().trimStart().startsWith("---")),lA(OMe,BMe,oRe),lA(m7e,WMe,dMe,oMe,N7e,L7e,I7e,F7e,Q7e,nMe,S7e,v7e,LMe,O7e,vMe,mMe,SMe,V7e,GMe,XMe,Y7e,nRe,QMe,uRe,yRe,pRe))},"addDiagrams"),xRe=Y(async()=>{Ct.debug("Loading registered diagrams");const r=(await Promise.allSettled(Object.entries(d0).map(async([n,{detector:i,loader:s}])=>{if(s)try{hA(n)}catch{try{const{diagram:a,id:o}=await s();y5(o,a,i)}catch(a){throw Ct.error(`Failed to load external diagram with key ${n}. Removing from detectors.`),delete d0[n],a}}}))).filter(n=>n.status==="rejected");if(r.length>0){Ct.error(`Failed to load ${r.length} external diagrams`);for(const n of r)Ct.error(n);throw new Error(`Failed to load ${r.length} external diagrams`)}},"loadRegisteredDiagrams"),vRe="graphics-document document";function Fne(e,r){e.attr("role",vRe),r!==""&&e.attr("aria-roledescription",r)}Y(Fne,"setA11yDiagramInfo");function Hne(e,r,n,i){if(e.insert!==void 0){if(n){const s=`chart-desc-${i}`;e.attr("aria-describedby",s),e.insert("desc",":first-child").attr("id",s).text(n)}if(r){const s=`chart-title-${i}`;e.attr("aria-labelledby",s),e.insert("title",":first-child").attr("id",s).text(r)}}}Y(Hne,"addSVGa11yTitleDescription");var a0,iO=(a0=class{constructor(r,n,i,s,a){this.type=r,this.text=n,this.db=i,this.parser=s,this.renderer=a}static async fromText(r,n={}){var d,h;const i=So(),s=ER(r,i);r=s8e(r)+`
1117
1117
  `;try{hA(s)}catch{const f=Gke(s);if(!f)throw new $J(`Diagram ${s} not found.`);const{id:m,diagram:x}=await f();y5(m,x)}const{db:a,parser:o,renderer:l,init:u}=hA(s);return o.parser&&(o.parser.yy=a),(d=a.clear)==null||d.call(a),u==null||u(i),n.title&&((h=a.setDiagramTitle)==null||h.call(a,n.title)),await o.parse(r),new a0(s,r,a,o,l)}async render(r,n){await this.renderer.draw(this.text,r,n,this)}getParser(){return this.parser}getType(){return this.type}},Y(a0,"Diagram"),a0),vz=[],bRe=Y(()=>{vz.forEach(e=>{e()}),vz=[]},"attachFunctions"),_Re=Y(e=>e.replace(/^\s*%%(?!{)[^\n]+\n?/gm,"").trimStart(),"cleanupComments");function Wne(e){const r=e.match(LJ);if(!r)return{text:e,metadata:{}};let n=c6e(r[1],{schema:l6e})??{};n=typeof n=="object"&&!Array.isArray(n)?n:{};const i={};return n.displayMode&&(i.displayMode=n.displayMode.toString()),n.title&&(i.title=n.title.toString()),n.config&&(i.config=n.config),{text:e.slice(r[0].length),metadata:i}}Y(Wne,"extractFrontMatter");var wRe=Y(e=>e.replace(/\r\n?/g,`
1118
1118
  `).replace(/<(\w+)([^>]*)>/g,(r,n,i)=>"<"+n+i.replace(/="([^"]*)"/g,"='$1'")+">"),"cleanupText"),SRe=Y(e=>{const{text:r,metadata:n}=Wne(e),{displayMode:i,title:s,config:a={}}=n;return i&&(a.gantt||(a.gantt={}),a.gantt.displayMode=i),{title:s,config:a,text:r}},"processFrontmatter"),kRe=Y(e=>{const r=cd.detectInit(e)??{},n=cd.detectDirective(e,"wrap");return Array.isArray(n)?r.wrap=n.some(({type:i})=>i==="wrap"):(n==null?void 0:n.type)==="wrap"&&(r.wrap=!0),{text:qEe(e),directive:r}},"processDirectives");function O9(e){const r=wRe(e),n=SRe(r),i=kRe(n.text),s=f9(n.config,i.directive);return e=_Re(i.text),{code:e,title:n.title,config:s}}Y(O9,"preprocessDiagram");function Une(e){const r=new TextEncoder().encode(e),n=Array.from(r,i=>String.fromCodePoint(i)).join("");return btoa(n)}Y(Une,"toBase64");var CRe=5e4,jRe="graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa",NRe="sandbox",TRe="loose",ERe="http://www.w3.org/2000/svg",ARe="http://www.w3.org/1999/xlink",ORe="http://www.w3.org/1999/xhtml",MRe="100%",RRe="100%",PRe="border:0;margin:0;",LRe="margin:0",$Re="allow-top-navigation-by-user-activation allow-popups",DRe='The "iframe" tag is not supported by your browser.',IRe=["foreignobject"],BRe=["dominant-baseline"];function M9(e){const r=O9(e);return m5(),cCe(r.config??{}),r}Y(M9,"processAndSetConfigs");async function Vne(e,r){H4();try{const{code:n,config:i}=M9(e);return{diagramType:(await Gne(n)).type,config:i}}catch(n){if(r!=null&&r.suppressErrors)return!1;throw n}}Y(Vne,"parse");var bz=Y((e,r,n=[])=>`
1119
1119
  .${e} ${r} { ${n.join(" !important; ")} !important; }`,"cssImportantStyles"),zRe=Y((e,r=new Map)=>{let n="";if(e.themeCSS!==void 0&&(n+=`
@@ -1123,7 +1123,7 @@ ${e.themeCSS}`),e.fontFamily!==void 0&&(n+=`
1123
1123
  ${DRe}
1124
1124
  </iframe>`},"putIntoIFrame"),_z=Y((e,r,n,i,s)=>{const a=e.append("div");a.attr("id",n),i&&a.attr("style",i);const o=a.append("svg").attr("id",r).attr("width","100%").attr("xmlns",ERe);return s&&o.attr("xmlns:xlink",s),o.append("g"),e},"appendDivSvgG");function sO(e,r){return e.append("iframe").attr("id",r).attr("style","width: 100%; height: 100%;").attr("sandbox","")}Y(sO,"sandboxedIframe");var URe=Y((e,r,n,i)=>{var s,a,o;(s=e.getElementById(r))==null||s.remove(),(a=e.getElementById(n))==null||a.remove(),(o=e.getElementById(i))==null||o.remove()},"removeExistingElements"),VRe=Y(async function(e,r,n){var W,D,O,I,R,P;H4();const i=M9(r);r=i.code;const s=So();Ct.debug(s),r.length>((s==null?void 0:s.maxTextSize)??CRe)&&(r=jRe);const a="#"+e,o="i"+e,l="#"+o,u="d"+e,d="#"+u,h=Y(()=>{const G=Vr(m?l:d).node();G&&"remove"in G&&G.remove()},"removeTempElements");let f=Vr("body");const m=s.securityLevel===NRe,x=s.securityLevel===TRe,v=s.fontFamily;if(n!==void 0){if(n&&(n.innerHTML=""),m){const H=sO(Vr(n),o);f=Vr(H.nodes()[0].contentDocument.body),f.node().style.margin=0}else f=Vr(n);_z(f,e,u,`font-family: ${v}`,ARe)}else{if(URe(document,e,u,o),m){const H=sO(Vr("body"),o);f=Vr(H.nodes()[0].contentDocument.body),f.node().style.margin=0}else f=Vr("body");_z(f,e,u)}let _,w;try{_=await iO.fromText(r,{title:i.title})}catch(H){if(s.suppressErrorRendering)throw h(),H;_=await iO.fromText("error"),w=H}const S=f.select(d).node(),C=_.type,j=S.firstChild,T=j.firstChild,E=(D=(W=_.renderer).getClasses)==null?void 0:D.call(W,r,_),N=FRe(s,C,E,a),M=document.createElement("style");M.innerHTML=N,j.insertBefore(M,T);try{await _.renderer.draw(r,e,"11.13.0",_)}catch(H){throw s.suppressErrorRendering?h():CMe.draw(r,e,"11.13.0"),H}const $=f.select(`${d} svg`),q=(I=(O=_.db).getAccTitle)==null?void 0:I.call(O),F=(P=(R=_.db).getAccDescription)==null?void 0:P.call(R);Kne(C,$,q,F),f.select(`[id="${e}"]`).selectAll("foreignobject > *").attr("xmlns",ORe);let B=f.select(d).node().innerHTML;if(Ct.debug("config.arrowMarkerAbsolute",s.arrowMarkerAbsolute),B=HRe(B,m,Vm(s.arrowMarkerAbsolute)),m){const H=f.select(d+" svg").node();B=WRe(B,H)}else x||(B=q1.sanitize(B,{ADD_TAGS:IRe,ADD_ATTR:BRe,HTML_INTEGRATION_POINTS:{foreignobject:!0}}));if(bRe(),w)throw w;return h(),{diagramType:C,svg:B,bindFunctions:_.db.bindFunctions}},"render");function qne(e={}){var i;const r=ga({},e);r!=null&&r.fontFamily&&!((i=r.themeVariables)!=null&&i.fontFamily)&&(r.themeVariables||(r.themeVariables={}),r.themeVariables.fontFamily=r.fontFamily),oCe(r),r!=null&&r.theme&&r.theme in $f?r.themeVariables=$f[r.theme].getThemeVariables(r.themeVariables):r&&(r.themeVariables=$f.default.getThemeVariables(r.themeVariables));const n=typeof r=="object"?aCe(r):FJ();TR(n.logLevel),H4()}Y(qne,"initialize");var Gne=Y((e,r={})=>{const{code:n}=O9(e);return iO.fromText(n,r)},"getDiagramFromText");function Kne(e,r,n,i){Fne(r,e),Hne(r,n,i,r.attr("id"))}Y(Kne,"addA11yInfo");var y0=Object.freeze({render:VRe,parse:Vne,getDiagramFromText:Gne,initialize:qne,getConfig:So,setConfig:HJ,getSiteConfig:FJ,updateSiteConfig:lCe,reset:Y(()=>{m5()},"reset"),globalReset:Y(()=>{m5(G1)},"globalReset"),defaultConfig:G1});TR(So().logLevel);m5(So());var qRe=Y((e,r,n)=>{Ct.warn(e),h9(e)?(n&&n(e.str,e.hash),r.push({...e,message:e.str,error:e})):(n&&n(e),e instanceof Error&&r.push({str:e.message,message:e.message,hash:e.name,error:e}))},"handleError"),Yne=Y(async function(e={querySelector:".mermaid"}){try{await GRe(e)}catch(r){if(h9(r)&&Ct.error(r.str),Nc.parseError&&Nc.parseError(r),!e.suppressErrors)throw Ct.error("Use the suppressErrors option to suppress these errors"),r}},"run"),GRe=Y(async function({postRenderCallback:e,querySelector:r,nodes:n}={querySelector:".mermaid"}){const i=y0.getConfig();Ct.debug(`${e?"":"No "}Callback function found`);let s;if(n)s=n;else if(r)s=document.querySelectorAll(r);else throw new Error("Nodes and querySelector are both undefined");Ct.debug(`Found ${s.length} diagrams`),(i==null?void 0:i.startOnLoad)!==void 0&&(Ct.debug("Start On Load: "+(i==null?void 0:i.startOnLoad)),y0.updateSiteConfig({startOnLoad:i==null?void 0:i.startOnLoad}));const a=new cd.InitIDGenerator(i.deterministicIds,i.deterministicIDSeed);let o;const l=[];for(const u of Array.from(s)){if(Ct.info("Rendering diagram: "+u.id),u.getAttribute("data-processed"))continue;u.setAttribute("data-processed","true");const d=`mermaid-${a.next()}`;o=u.innerHTML,o=pte(cd.entityDecode(o)).trim().replace(/<br\s*\/?>/gi,"<br/>");const h=cd.detectInit(o);h&&Ct.debug("Detected early reinit: ",h);try{const{svg:f,bindFunctions:m}=await Qne(d,o,u);u.innerHTML=f,e&&await e(d),m&&m(u)}catch(f){qRe(f,l,Nc.parseError)}}if(l.length>0)throw l[0]},"runThrowsErrors"),Xne=Y(function(e){y0.initialize(e)},"initialize"),KRe=Y(async function(e,r,n){Ct.warn("mermaid.init is deprecated. Please use run instead."),e&&Xne(e);const i={postRenderCallback:n,querySelector:".mermaid"};typeof r=="string"?i.querySelector=r:r&&(r instanceof HTMLElement?i.nodes=[r]:i.nodes=r),await Yne(i)},"init"),YRe=Y(async(e,{lazyLoad:r=!0}={})=>{H4(),lA(...e),r===!1&&await xRe()},"registerExternalDiagrams"),Jne=Y(function(){if(Nc.startOnLoad){const{startOnLoad:e}=y0.getConfig();e&&Nc.run().catch(r=>Ct.error("Mermaid failed to initialize",r))}},"contentLoaded");typeof document<"u"&&window.addEventListener("load",Jne,!1);var XRe=Y(function(e){Nc.parseError=e},"setParseErrorHandler"),G5=[],ST=!1,Zne=Y(async()=>{if(!ST){for(ST=!0;G5.length>0;){const e=G5.shift();if(e)try{await e()}catch(r){Ct.error("Error executing queue",r)}}ST=!1}},"executeQueue"),JRe=Y(async(e,r)=>new Promise((n,i)=>{const s=Y(()=>new Promise((a,o)=>{y0.parse(e,r).then(l=>{a(l),n(l)},l=>{var u;Ct.error("Error parsing",l),(u=Nc.parseError)==null||u.call(Nc,l),o(l),i(l)})}),"performCall");G5.push(s),Zne().catch(i)}),"parse"),Qne=Y((e,r,n)=>new Promise((i,s)=>{const a=Y(()=>new Promise((o,l)=>{y0.render(e,r,n).then(u=>{o(u),i(u)},u=>{var d;Ct.error("Error parsing",u),(d=Nc.parseError)==null||d.call(Nc,u),l(u),s(u)})}),"performCall");G5.push(a),Zne().catch(s)}),"render"),ZRe=Y(()=>Object.keys(d0).map(e=>({id:e})),"getRegisteredDiagramsMetadata"),Nc={startOnLoad:!0,mermaidAPI:y0,parse:JRe,render:Qne,init:KRe,run:Yne,registerExternalDiagrams:YRe,registerLayoutLoaders:ine,initialize:Xne,parseError:void 0,contentLoaded:Jne,setParseErrorHandler:XRe,detectType:ER,registerIconPacks:hAe,getRegisteredDiagramsMetadata:ZRe},aO=Nc;/*! Check if previously processed *//*!
1125
1125
  * Wait for document loaded before starting the execution
1126
- */let oO=!1;const QRe=.1,e9e=20;function kT(e){return Math.min(e9e,Math.max(QRe,e))}function wz(e,r,n,i){if(e===r)return n;const s=r/e;return{x:i.x-(i.x-n.x)*s,y:i.y-(i.y-n.y)*s}}function Sz(e){aO.initialize({startOnLoad:!1,theme:e==="dark"?"dark":"default",securityLevel:"strict",fontFamily:"ui-sans-serif, system-ui, -apple-system, sans-serif",flowchart:{htmlLabels:!0,curve:"basis"},themeVariables:e==="dark"?{primaryColor:"#1e293b",primaryTextColor:"#e2e8f0",primaryBorderColor:"#475569",lineColor:"#64748b",secondaryColor:"#334155",tertiaryColor:"#1e293b",background:"#0f172a",mainBkg:"#1e293b",nodeBorder:"#475569",clusterBkg:"#1e293b",clusterBorder:"#334155",titleColor:"#e2e8f0",edgeLabelBackground:"#1e293b"}:{}}),oO=!0}function lO({diagram:e,isGenerating:r,onRegenerate:n,onGenerate:i,theme:s="dark",onRenderResult:a}){const o=y.useRef(null),l=y.useRef(null),[u,d]=y.useState(null),[h,f]=y.useState(!1),[m,x]=y.useState(1),[v,_]=y.useState({x:0,y:0}),w=y.useRef(0),S=y.useRef(new Map),C=y.useRef(null),j=y.useRef(null),T=y.useCallback(async D=>{if(!o.current)return;const O=++w.current;try{if(oO||Sz(s),!await aO.parse(D)||O!==w.current)return;const{svg:R}=await aO.render(`arch-${O}`,D);if(O!==w.current)return;o.current.innerHTML=R;const P=o.current.querySelector("svg"),H=l.current;if(P&&H){const G=H.clientWidth,U=H.clientHeight,V=P.width.baseVal.value||P.getBoundingClientRect().width,J=P.height.baseVal.value||P.getBoundingClientRect().height;if(V>0&&J>0&&G>0&&U>0){const ee=Math.min((G-32)/V,(U-32)/J);x(kT(ee))}else x(1)}else x(1);_({x:0,y:0}),d(null),a==null||a({ok:!0})}catch(I){if(O!==w.current)return;const R=I instanceof Error?I.message:"Failed to render diagram";d(R),a==null||a({ok:!1,error:R})}},[a,s]);y.useEffect(()=>{Sz(s),oO=!0,e&&T(e)},[s,e,T]),y.useEffect(()=>{e&&T(e)},[e,T]);const E=y.useCallback(()=>{e&&navigator.clipboard.writeText(e).then(()=>{f(!0),setTimeout(()=>f(!1),2e3)})},[e]),N=y.useCallback(()=>{if(!o.current)return;const D=o.current.querySelector("svg");if(!D)return;const O=new XMLSerializer().serializeToString(D),I=new Blob([O],{type:"image/svg+xml"}),R=URL.createObjectURL(I),P=document.createElement("a");P.href=R,P.download="architecture.svg",P.click(),URL.revokeObjectURL(R)},[]),M=y.useCallback((D,O)=>{var R;const I=(R=l.current)==null?void 0:R.getBoundingClientRect();return I?{x:D-I.left-I.width/2,y:O-I.top-I.height/2}:null},[]),$=y.useCallback((D,O)=>{x(I=>{const R=kT(D);return R===I?I:(_(P=>O?wz(I,R,P,O):P),R)})},[]),q=y.useCallback(D=>{const O=M(D.clientX,D.clientY);if(!O)return;D.preventDefault();const I=D.deltaY<0?1.1:.9;$(m*I,O)},[M,$,m]),F=y.useCallback(D=>{const O={x:D.clientX,y:D.clientY};if(S.current.set(D.pointerId,O),D.currentTarget.setPointerCapture(D.pointerId),S.current.size===1){C.current={pointerId:D.pointerId,x:D.clientX,y:D.clientY},j.current=null;return}if(S.current.size===2){const[I,R]=[...S.current.values()],P=Math.hypot(R.x-I.x,R.y-I.y);j.current={distance:P,scale:m,pan:v},C.current=null}},[v,m]),B=y.useCallback(D=>{var I;if(!S.current.has(D.pointerId))return;const O=S.current.get(D.pointerId);if(S.current.set(D.pointerId,{x:D.clientX,y:D.clientY}),S.current.size===1&&((I=C.current)==null?void 0:I.pointerId)===D.pointerId){const R=D.clientX-O.x,P=D.clientY-O.y;_(H=>({x:H.x+R,y:H.y+P})),C.current={pointerId:D.pointerId,x:D.clientX,y:D.clientY};return}if(S.current.size===2&&j.current){const[R,P]=[...S.current.values()],H={x:(R.x+P.x)/2,y:(R.y+P.y)/2},G=M(H.x,H.y),U=Math.hypot(P.x-R.x,P.y-R.y);if(!G||j.current.distance<=0)return;const V=kT(j.current.scale*(U/j.current.distance)),J=wz(j.current.scale,V,j.current.pan,G);x(V),_(J)}},[M]),W=y.useCallback(D=>{var O;if(S.current.delete(D.pointerId),((O=C.current)==null?void 0:O.pointerId)===D.pointerId&&(C.current=null),S.current.size<2&&(j.current=null),S.current.size===1){const[I,R]=[...S.current.entries()][0]??[];typeof I=="number"&&R&&(C.current={pointerId:I,x:R.x,y:R.y})}},[]);return!e&&!r?c.jsxs("div",{className:"h-full flex flex-col items-center justify-center text-muted-foreground gap-4 px-8",children:[c.jsxs("div",{className:"flex flex-col items-center gap-2 text-center",children:[c.jsx("h3",{className:"text-sm font-medium text-foreground",children:"Software Architecture"}),c.jsx("p",{className:"text-xs max-w-sm",children:"Generate a visual architecture diagram of your project. The AI will analyze your project structure, dependencies, and code organization to create a Mermaid diagram."})]}),i&&c.jsxs("button",{onClick:i,className:"flex items-center gap-2 px-4 py-2 text-sm rounded-lg border bg-background hover:bg-accent hover:text-accent-foreground transition-colors",children:[c.jsx(D_,{className:"h-3.5 w-3.5"}),"Generate Architecture Diagram"]})]}):c.jsxs("div",{className:"h-full flex flex-col",children:[c.jsxs("div",{className:"flex items-center gap-1 px-2 h-8 border-b bg-muted/20 shrink-0",children:[c.jsx("span",{className:"text-xs font-medium text-muted-foreground mr-auto",children:"Architecture"}),c.jsx("button",{onClick:()=>$(m-.25),className:"p-1 rounded hover:bg-muted transition-colors",title:"Zoom out",children:c.jsx(vve,{className:"h-3 w-3"})}),c.jsxs("span",{className:"text-2xs text-muted-foreground min-w-[3ch] text-center",children:[Math.round(m*100),"%"]}),c.jsx("button",{onClick:()=>$(m+.25),className:"p-1 rounded hover:bg-muted transition-colors",title:"Zoom in",children:c.jsx(yve,{className:"h-3 w-3"})}),c.jsx("button",{onClick:()=>{x(1),_({x:0,y:0})},className:"p-1 rounded hover:bg-muted transition-colors",title:"Reset zoom",children:c.jsx(eR,{className:"h-3 w-3"})}),c.jsx("div",{className:"w-px h-4 bg-border mx-1"}),e&&c.jsxs(c.Fragment,{children:[c.jsx("button",{onClick:E,className:"p-1 rounded hover:bg-muted transition-colors",title:"Copy Mermaid source",children:h?c.jsx(ls,{className:"h-3 w-3 text-green-500"}):c.jsx(Tl,{className:"h-3 w-3"})}),c.jsx("button",{onClick:N,className:"p-1 rounded hover:bg-muted transition-colors",title:"Download SVG",children:c.jsx(Rf,{className:"h-3 w-3"})})]}),n&&c.jsx("button",{onClick:n,className:"p-1 rounded hover:bg-muted transition-colors",title:"Regenerate diagram",disabled:r,children:c.jsx(js,{className:`h-3 w-3 ${r?"animate-spin":""}`})})]}),c.jsxs("div",{ref:l,className:"flex-1 overflow-hidden relative touch-none",onWheel:q,onPointerDown:F,onPointerMove:B,onPointerUp:W,onPointerCancel:W,onPointerLeave:W,style:{cursor:S.current.size>0?"grabbing":"grab"},children:[r&&!e&&c.jsxs("div",{className:"h-full flex flex-col items-center justify-center text-muted-foreground gap-3",children:[c.jsx(Ot,{className:"h-6 w-6 animate-spin"}),c.jsx("span",{className:"text-xs",children:"Analyzing project architecture…"})]}),r&&e&&c.jsxs("div",{className:"absolute top-2 right-2 z-10 flex items-center gap-1.5 px-2 py-1 rounded bg-background/80 border text-xs text-muted-foreground",children:[c.jsx(Ot,{className:"h-3 w-3 animate-spin"}),"Regenerating…"]}),u&&c.jsxs("div",{className:"p-4 text-xs text-destructive bg-destructive/10 rounded m-2",children:[c.jsx("p",{className:"font-medium mb-1",children:"Render error"}),c.jsx("pre",{className:"whitespace-pre-wrap",children:u}),e&&c.jsxs("details",{className:"mt-2",children:[c.jsx("summary",{className:"cursor-pointer text-muted-foreground hover:text-foreground",children:"View source"}),c.jsx("pre",{className:"mt-1 p-2 bg-muted rounded text-2xs whitespace-pre-wrap",children:e})]})]}),c.jsx("div",{className:"absolute inset-0 flex items-center justify-center p-4",style:{transform:`translate(${v.x}px, ${v.y}px) scale(${m})`,transformOrigin:"center center"},children:c.jsx("div",{ref:o,className:"flex items-center justify-center"})})]})]})}const vc=y.forwardRef(({className:e,children:r,...n},i)=>c.jsx("div",{ref:i,className:Ce("relative overflow-auto",e),...n,children:r}));vc.displayName="ScrollArea";const t9e=y.forwardRef(({className:e,orientation:r="vertical",...n},i)=>c.jsx("div",{ref:i,"data-orientation":r,className:Ce("hidden",e),...n}));t9e.displayName="ScrollBar";const Th=y.forwardRef(({className:e,...r},n)=>c.jsx("textarea",{className:Ce("flex min-h-[72px] w-full rounded-lg border border-input bg-background/90 px-3 py-2 text-sm shadow-sm placeholder:text-muted-foreground/90 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring/60 focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50",e),ref:n,...r}));Th.displayName="Textarea";var CT={},Gv={},kz;function r9e(){return kz||(kz=1,Object.defineProperty(Gv,"__esModule",{value:!0}),Gv.FileExtensions1ToIcon=void 0,Gv.FileExtensions1ToIcon={accdb:"file_type_access.svg",accdt:"file_type_access.svg",mdb:"file_type_access.svg",accda:"file_type_access.svg",accdc:"file_type_access.svg",accde:"file_type_access.svg",accdp:"file_type_access.svg",accdr:"file_type_access.svg",accdu:"file_type_access.svg",ade:"file_type_access.svg",adp:"file_type_access.svg",laccdb:"file_type_access.svg",ldb:"file_type_access.svg",mam:"file_type_access.svg",maq:"file_type_access.svg",mdw:"file_type_access.svg",afdesign:"file_type_affinitydesigner.svg",affinitydesigner:"file_type_affinitydesigner.svg",afphoto:"file_type_affinityphoto.svg",affinityphoto:"file_type_affinityphoto.svg",afpub:"file_type_affinitypublisher.svg",affinitypublisher:"file_type_affinitypublisher.svg",ai:"file_type_ai.svg",ino:"file_type_arduino.svg",pde:"file_type_arduino.svg",aspx:"file_type_aspx.svg",ascx:"file_type_aspx.svg",astro:"file_type_astro.svg",aac:"file_type_audio.svg",act:"file_type_audio.svg",aiff:"file_type_audio.svg",amr:"file_type_audio.svg",ape:"file_type_audio.svg",au:"file_type_audio.svg",dct:"file_type_audio.svg",dss:"file_type_audio.svg",dvf:"file_type_audio.svg",flac:"file_type_audio.svg",gsm:"file_type_audio.svg",iklax:"file_type_audio.svg",ivs:"file_type_audio.svg",m4a:"file_type_audio.svg",m4b:"file_type_audio.svg",m4p:"file_type_audio.svg",mmf:"file_type_audio.svg",mogg:"file_type_audio.svg",mp3:"file_type_audio.svg",mpc:"file_type_audio.svg",msv:"file_type_audio.svg",oga:"file_type_audio.svg",ogg:"file_type_audio.svg",opus:"file_type_audio.svg",ra:"file_type_audio.svg",raw:"file_type_audio.svg",tta:"file_type_audio.svg",vox:"file_type_audio.svg",wav:"file_type_audio.svg",wma:"file_type_audio.svg",avif:"file_type_avif.svg",awk:"file_type_awk.svg",a:"file_type_binary.svg",app:"file_type_binary.svg",bin:"file_type_binary.svg",cmo:"file_type_binary.svg",cmx:"file_type_binary.svg",cma:"file_type_binary.svg",cmxa:"file_type_binary.svg",cmi:"file_type_binary.svg",dll:"file_type_binary.svg",exe:"file_type_binary.svg",hl:"file_type_binary.svg",ilk:"file_type_binary.svg",lib:"file_type_binary.svg",n:"file_type_binary.svg",ndll:"file_type_binary.svg",o:"file_type_binary.svg",obj:"file_type_binary.svg",pyc:"file_type_binary.svg",pyd:"file_type_binary.svg",pyo:"file_type_binary.svg",pdb:"file_type_binary.svg",scpt:"file_type_binary.svg",scptd:"file_type_binary.svg",so:"file_type_binary.svg",bb:"file_type_blitzbasic.svg",gemfile:"file_type_bundler.svg",cake:"file_type_cake.svg",csr:"file_type_cert.svg",crt:"file_type_cert.svg",cer:"file_type_cert.svg",der:"file_type_cert.svg",pfx:"file_type_cert.svg",p12:"file_type_cert.svg",p7b:"file_type_cert.svg",p7r:"file_type_cert.svg",src:"file_type_cert.svg",crl:"file_type_cert.svg",sst:"file_type_cert.svg",stl:"file_type_cert.svg",lucee:"file_type_cf.svg",h:"file_type_cheader.svg",class:"file_type_class.svg",cjm:"file_type_clojure.svg",cljc:"file_type_clojure.svg",cljs:"file_type_clojurescript.svg",kit:"file_type_codekit.svg",plist:"file_type_light_config.svg",hpp:"file_type_cppheader.svg",hh:"file_type_cppheader.svg",hxx:"file_type_cppheader.svg","h++":"file_type_cppheader.svg",csx:"file_type_csharp.svg",csproj:"file_type_csproj.svg",db:"file_type_light_db.svg",djt:"file_type_django.svg",eco:"file_type_light_docpad.svg",drawio:"file_type_drawio.svg",dio:"file_type_drawio.svg",ejs:"file_type_ejs.svg",el:"file_type_emacs.svg",elc:"file_type_emacs.svg",ensime:"file_type_ensime.svg",eps:"file_type_eps.svg",xls:"file_type_excel.svg",xlsx:"file_type_excel.svg",xlsm:"file_type_excel.svg",ods:"file_type_excel.svg",fods:"file_type_excel.svg",xlsb:"file_type_excel.svg",fbx:"file_type_fbx.svg",fla:"file_type_light_fla.svg",swf:"file_type_flash.svg",swc:"file_type_flash.svg",woff:"file_type_light_font.svg",woff2:"file_type_light_font.svg",ttf:"file_type_light_font.svg",otf:"file_type_light_font.svg",eot:"file_type_light_font.svg",pfa:"file_type_light_font.svg",pfb:"file_type_light_font.svg",sfd:"file_type_light_font.svg",fsproj:"file_type_fsproj.svg",gmx:"file_type_gamemaker.svg",yy:"file_type_light_gamemaker2.svg",yyp:"file_type_light_gamemaker2.svg",gradle:"file_type_light_gradle.svg",hxproj:"file_type_haxedevelop.svg",idr:"file_type_idris.svg",lidr:"file_type_idris.svg",ibc:"file_type_idrisbin.svg",ipkg:"file_type_idrispkg.svg",jpeg:"file_type_image.svg",jpg:"file_type_image.svg",gif:"file_type_image.svg",png:"file_type_image.svg",bmp:"file_type_image.svg",tiff:"file_type_image.svg",ico:"file_type_image.svg",imba:"file_type_imba.svg",imba2:"file_type_imba.svg",inc:"file_type_inc.svg",include:"file_type_inc.svg",infopathxml:"file_type_infopath.svg",xsn:"file_type_infopath.svg",xsf:"file_type_infopath.svg",xtp2:"file_type_infopath.svg",jar:"file_type_jar.svg",jbuilder:"file_type_jbuilder.svg",json5:"file_type_light_json5.svg",jsonld:"file_type_light_jsonld.svg","json-ld":"file_type_light_jsonld.svg",jsp:"file_type_jsp.svg",jss:"file_type_jss.svg",ipynb:"file_type_jupyter.svg",key:"file_type_key.svg",pem:"file_type_key.svg",master:"file_type_layout.svg",enc:"file_type_license.svg",hxp:"file_type_lime.svg",liquid:"file_type_liquid.svg",ls:"file_type_livescript.svg",lnk:"file_type_lnk.svg",log:"file_type_log.svg",tlg:"file_type_log.svg",crec:"file_type_lync.svg",ocrec:"file_type_lync.svg",makefile:"file_type_makefile.svg",map:"file_type_map.svg",mdown:"file_type_markdown.svg",markdown:"file_type_markdown.svg",fig:"file_type_matlab.svg",mex:"file_type_matlab.svg",mexn:"file_type_matlab.svg",mexrs6:"file_type_matlab.svg",mn:"file_type_matlab.svg",mum:"file_type_matlab.svg",mx:"file_type_matlab.svg",mx3:"file_type_matlab.svg",rwd:"file_type_matlab.svg",slx:"file_type_matlab.svg",slddc:"file_type_matlab.svg",smv:"file_type_matlab.svg",xvc:"file_type_matlab.svg",mustache:"file_type_light_mustache.svg",mst:"file_type_light_mustache.svg",njsproj:"file_type_njsproj.svg",nupkg:"file_type_nuget.svg",snupkg:"file_type_nuget.svg",nuspec:"file_type_nuget.svg",psmdcp:"file_type_nuget.svg",npy:"file_type_numpy.svg",npz:"file_type_numpy.svg",nunj:"file_type_nunjucks.svg",njs:"file_type_nunjucks.svg",one:"file_type_onenote.svg",onepkg:"file_type_onenote.svg",onetoc:"file_type_onenote.svg",onetoc2:"file_type_onenote.svg",sig:"file_type_onenote.svg",cl:"file_type_opencl.svg",opencl:"file_type_opencl.svg",org:"file_type_org.svg",pst:"file_type_outlook.svg",bcmx:"file_type_outlook.svg",otm:"file_type_outlook.svg",msg:"file_type_outlook.svg",oft:"file_type_outlook.svg",ovpn:"file_type_ovpn.svg",pkg:"file_type_package.svg",patch:"file_type_patch.svg",pcd:"file_type_light_pcl.svg",pdf:"file_type_pdf.svg",psd:"file_type_photoshop.svg",php1:"file_type_php.svg",php2:"file_type_php.svg",php3:"file_type_php.svg",php4:"file_type_php.svg",php5:"file_type_php.svg",php6:"file_type_php.svg",phps:"file_type_php.svg",phpsa:"file_type_php.svg",phpt:"file_type_php.svg",phtml:"file_type_php.svg",phar:"file_type_php.svg",pipeline:"file_type_pipeline.svg",pu:"file_type_plantuml.svg",plantuml:"file_type_plantuml.svg",iuml:"file_type_plantuml.svg",puml:"file_type_plantuml.svg",pck:"file_type_plsql_package.svg",pkb:"file_type_plsql_package_body.svg",pkh:"file_type_plsql_package_header.svg",pks:"file_type_plsql_package_spec.svg",po:"file_type_poedit.svg",mo:"file_type_poedit.svg",pot:"file_type_powerpoint.svg",potx:"file_type_powerpoint.svg",potm:"file_type_powerpoint.svg",pps:"file_type_powerpoint.svg",ppsx:"file_type_powerpoint.svg",ppsm:"file_type_powerpoint.svg",ppt:"file_type_powerpoint.svg",pptx:"file_type_powerpoint.svg",pptm:"file_type_powerpoint.svg",pa:"file_type_powerpoint.svg",ppa:"file_type_powerpoint.svg",ppam:"file_type_powerpoint.svg",sldm:"file_type_powerpoint.svg",sldx:"file_type_powerpoint.svg",psd1:"file_type_powershell_psd.svg",psm1:"file_type_powershell_psm.svg",pro:"file_type_prolog.svg",P:"file_type_prolog.svg",pub:"file_type_publisher.svg",puz:"file_type_publisher.svg",q:"file_type_q.svg",qbs:"file_type_qbs.svg",qvd:"file_type_qlikview.svg",qvw:"file_type_qlikview.svg",rake:"file_type_rake.svg",rt:"file_type_reacttemplate.svg",reg:"file_type_registry.svg",rego:"file_type_rego.svg",rproj:"file_type_rproj.svg",sls:"file_type_saltstack.svg",sass:"file_type_sass.svg",scssm:"file_type_scss.svg",unity:"file_type_light_shaderlab.svg",fish:"file_type_shell.svg",sketch:"file_type_sketch.svg",eskip:"file_type_skipper.svg",sln:"file_type_sln.svg",spe:"file_type_spacengine.svg",sqlite:"file_type_sqlite.svg",sqlite3:"file_type_sqlite.svg",db3:"file_type_sqlite.svg",sss:"file_type_sss.svg",dta:"file_type_stata.svg",storyboard:"file_type_storyboard.svg",svg:"file_type_svg.svg",tcl:"file_type_tcl.svg",exp:"file_type_tcl.svg",tfstate:"file_type_terraform.svg",tst:"file_type_test.svg",texi:"file_type_light_tex.svg",tikz:"file_type_light_tex.svg",csv:"file_type_text.svg",tsv:"file_type_text.svg",todo:"file_type_light_todo.svg",tt2:"file_type_tt.svg",vala:"file_type_vala.svg",vapi:"file_type_vapi.svg",vash:"file_type_light_vash.svg",vbhtml:"file_type_vbhtml.svg",vbproj:"file_type_vbproj.svg",vcxproj:"file_type_vcxproj.svg","3g2":"file_type_video.svg","3gp":"file_type_video.svg",asf:"file_type_video.svg",amv:"file_type_video.svg",avi:"file_type_video.svg",divx:"file_type_video.svg",qt:"file_type_video.svg",f4a:"file_type_video.svg",f4b:"file_type_video.svg",f4p:"file_type_video.svg",f4v:"file_type_video.svg",flv:"file_type_video.svg",m2v:"file_type_video.svg",m4v:"file_type_video.svg",mkv:"file_type_video.svg",mk3d:"file_type_video.svg",mov:"file_type_video.svg",mp2:"file_type_video.svg",mp4:"file_type_video.svg",mpe:"file_type_video.svg",mpeg:"file_type_video.svg",mpeg2:"file_type_video.svg",mpg:"file_type_video.svg",mpv:"file_type_video.svg",nsv:"file_type_video.svg",ogv:"file_type_video.svg",rm:"file_type_video.svg",rmvb:"file_type_video.svg",svi:"file_type_video.svg",vob:"file_type_video.svg",webm:"file_type_video.svg",wmv:"file_type_video.svg",vsix:"file_type_light_vsix.svg",vsixmanifest:"file_type_light_vsixmanifest.svg",wasm:"file_type_wasm.svg",webp:"file_type_webp.svg",doc:"file_type_word.svg",docx:"file_type_word.svg",docm:"file_type_word.svg",dot:"file_type_word.svg",dotx:"file_type_word.svg",dotm:"file_type_word.svg",wll:"file_type_word.svg",wxml:"file_type_wxml.svg",wxss:"file_type_wxss.svg",xcodeproj:"file_type_xcode.svg",xfl:"file_type_light_xfl.svg",xib:"file_type_xib.svg",xliff:"file_type_xliff.svg",xlf:"file_type_xliff.svg",pex:"file_type_xml.svg",tmlanguage:"file_type_xml.svg",zip:"file_type_zip.svg",rar:"file_type_zip.svg","7z":"file_type_zip.svg",tar:"file_type_zip.svg",tgz:"file_type_zip.svg",bz:"file_type_zip.svg",gz:"file_type_zip.svg",bzip2:"file_type_zip.svg",xz:"file_type_zip.svg",bz2:"file_type_zip.svg",zipx:"file_type_zip.svg"}),Gv}var Kv={},Cz;function n9e(){return Cz||(Cz=1,Object.defineProperty(Kv,"__esModule",{value:!0}),Kv.FileExtensions2ToIcon=void 0,Kv.FileExtensions2ToIcon={"gemfile.lock":"file_type_bundler.svg","css.map":"file_type_cssmap.svg","drawio.png":"file_type_drawio.svg","drawio.svg":"file_type_drawio.svg","js.flow":"file_type_flow.svg","ejs.t":"file_type_hygen.svg","js.snap":"file_type_jest_snapshot.svg","jsx.snap":"file_type_jest_snapshot.svg","ts.snap":"file_type_jest_snapshot.svg","tsx.snap":"file_type_jest_snapshot.svg","js.map":"file_type_light_jsmap.svg","layout.html":"file_type_layout.svg","layout.htm":"file_type_layout.svg","marko.js":"file_type_markojs.svg","format.ps1xml":"file_type_powershell_format.svg","types.ps1xml":"file_type_powershell_types.svg","story.js":"file_type_storybook.svg","story.jsx":"file_type_storybook.svg","story.ts":"file_type_storybook.svg","story.tsx":"file_type_storybook.svg","story.mdx":"file_type_storybook.svg","stories.js":"file_type_storybook.svg","stories.jsx":"file_type_storybook.svg","stories.ts":"file_type_storybook.svg","stories.tsx":"file_type_storybook.svg","stories.mdx":"file_type_storybook.svg","test.js":"file_type_light_testjs.svg","test.jsx":"file_type_light_testjs.svg","test.mjs":"file_type_light_testjs.svg","spec.js":"file_type_light_testjs.svg","spec.jsx":"file_type_light_testjs.svg","spec.mjs":"file_type_light_testjs.svg","test.ts":"file_type_testts.svg","test.tsx":"file_type_testts.svg","spec.ts":"file_type_testts.svg","spec.tsx":"file_type_testts.svg","e2e-test.ts":"file_type_testts.svg","e2e-test.tsx":"file_type_testts.svg","e2e-spec.ts":"file_type_testts.svg","e2e-spec.tsx":"file_type_testts.svg","d.ts":"file_type_typescriptdef.svg"}),Kv}var Yv={},jz;function i9e(){return jz||(jz=1,Object.defineProperty(Yv,"__esModule",{value:!0}),Yv.FileNamesToIcon=void 0,Yv.FileNamesToIcon={".angular-cli.json":"file_type_angular.svg","angular-cli.json":"file_type_angular.svg","angular.json":"file_type_angular.svg",".angular.json":"file_type_angular.svg","api-extractor.json":"file_type_api_extractor.svg","api-extractor-base.json":"file_type_api_extractor.svg",".appsemblerc.yaml":"file_type_appsemble.svg","app-definition.yaml":"file_type_appsemble.svg","appveyor.yml":"file_type_appveyor.svg",".appveyor.yml":"file_type_appveyor.svg","astro.config.js":"file_type_astroconfig.svg","astro.config.cjs":"file_type_astroconfig.svg","astro.config.mjs":"file_type_astroconfig.svg","aurelia.json":"file_type_aurelia.svg","azure-pipelines.yml":"file_type_azurepipelines.svg",".vsts-ci.yml":"file_type_azurepipelines.svg",".babelrc":"file_type_light_babel.svg",".babelignore":"file_type_light_babel.svg",".babelrc.js":"file_type_light_babel.svg",".babelrc.cjs":"file_type_light_babel.svg",".babelrc.mjs":"file_type_light_babel.svg",".babelrc.json":"file_type_light_babel.svg","babel.config.js":"file_type_light_babel.svg","babel.config.cjs":"file_type_light_babel.svg","babel.config.mjs":"file_type_light_babel.svg","babel.config.json":"file_type_light_babel.svg",".bzrignore":"file_type_bazaar.svg","BUILD.bazel":"file_type_bazel.svg",".bazelrc":"file_type_bazel.svg","bazel.rc":"file_type_bazel.svg","bazel.bazelrc":"file_type_bazel.svg","bitbucket-pipelines.yml":"file_type_bitbucketpipeline.svg",".bithoundrc":"file_type_bithound.svg",".bowerrc":"file_type_bower.svg","bower.json":"file_type_bower.svg",".browserslistrc":"file_type_browserslist.svg",browserslist:"file_type_browserslist.svg",".buckconfig":"file_type_buckbuild.svg",gemfile:"file_type_bundler.svg","gemfile.lock":"file_type_bundler.svg","capacitor.config.json":"file_type_capacitor.svg","cargo.toml":"file_type_cargo.svg","cargo.lock":"file_type_cargo.svg",chefignore:"file_type_chef.svg",berksfile:"file_type_chef.svg","berksfile.lock":"file_type_chef.svg","policyfile.rb":"file_type_chef.svg","policyfile.lock.json":"file_type_chef.svg","circle.yml":"file_type_light_circleci.svg",".cfignore":"file_type_light_cloudfoundry.svg",".codacy.yml":"file_type_light_codacy.svg",".codacy.yaml":"file_type_light_codacy.svg",".codeclimate.yml":"file_type_light_codeclimate.svg","codecov.yml":"file_type_codecov.svg",".codecov.yml":"file_type_codecov.svg","config.codekit":"file_type_codekit.svg","config.codekit2":"file_type_codekit.svg","config.codekit3":"file_type_codekit.svg",".config.codekit":"file_type_codekit.svg",".config.codekit2":"file_type_codekit.svg",".config.codekit3":"file_type_codekit.svg","coffeelint.json":"file_type_coffeelint.svg",".coffeelintignore":"file_type_coffeelint.svg","commitlint.config.js":"file_type_commitlint.svg",".commitlintrc.js":"file_type_commitlint.svg",".commitlintrc.json":"file_type_commitlint.svg",".commitlintrc.yml":"file_type_commitlint.svg","composer.json":"file_type_composer.svg","composer.lock":"file_type_composer.svg","conanfile.txt":"file_type_conan.svg","conanfile.py":"file_type_conan.svg",".condarc":"file_type_conda.svg",".coveralls.yml":"file_type_coveralls.svg","crowdin.yml":"file_type_crowdin.svg",".csscomb.json":"file_type_csscomb.svg",".csslintrc":"file_type_csslint.svg",".cvsignore":"file_type_cvs.svg","cypress.json":"file_type_cypress.svg","cypress.env.json":"file_type_cypress.svg",".boringignore":"file_type_darcs.svg","dependabot.yml":"file_type_dependabot.svg","dependencies.yml":"file_type_dependencies.svg","devcontainer.json":"file_type_devcontainer.svg",".devcontainer.json":"file_type_devcontainer.svg","compose.yaml":"file_type_docker.svg","compose.yml":"file_type_docker.svg","docker-compose.yaml":"file_type_docker.svg","docker-compose.yml":"file_type_docker.svg","docker-compose.ci-build.yaml":"file_type_docker.svg","docker-compose.ci-build.yml":"file_type_docker.svg","docker-compose.override.yaml":"file_type_docker.svg","docker-compose.override.yml":"file_type_docker.svg","docker-compose.vs.debug.yaml":"file_type_docker.svg","docker-compose.vs.debug.yml":"file_type_docker.svg","docker-compose.vs.release.yaml":"file_type_docker.svg","docker-compose.vs.release.yml":"file_type_docker.svg","docker-cloud.yaml":"file_type_docker.svg","docker-cloud.yml":"file_type_docker.svg","docker-compose.test.yml":"file_type_dockertest.svg",".doczrc":"file_type_docz.svg","docz.js":"file_type_docz.svg","docz.json":"file_type_docz.svg",".docz.js":"file_type_docz.svg",".docz.json":"file_type_docz.svg","doczrc.js":"file_type_docz.svg","doczrc.json":"file_type_docz.svg","docz.config.js":"file_type_docz.svg","docz.config.json":"file_type_docz.svg",".dojorc":"file_type_dojo.svg",".drone.yml":"file_type_light_drone.svg",".drone.yml.sig":"file_type_light_drone.svg",".dvc":"file_type_dvc.svg",".editorconfig":"file_type_editorconfig.svg","elm-package.json":"file_type_elm.svg",".ember-cli":"file_type_ember.svg",emakefile:"file_type_erlang.svg",".emakerfile":"file_type_erlang.svg",".eslintrc":"file_type_eslint.svg",".eslintignore":"file_type_eslint.svg",".eslintcache":"file_type_eslint.svg",".eslintrc.js":"file_type_eslint.svg",".eslintrc.mjs":"file_type_eslint.svg",".eslintrc.cjs":"file_type_eslint.svg",".eslintrc.json":"file_type_eslint.svg",".eslintrc.yaml":"file_type_eslint.svg",".eslintrc.yml":"file_type_eslint.svg","app.json":"file_type_light_expo.svg","app.config.js":"file_type_light_expo.svg","app.config.json":"file_type_light_expo.svg","app.config.json5":"file_type_light_expo.svg",".faunarc":"file_type_fauna.svg","favicon.ico":"file_type_favicon.svg",".firebaserc":"file_type_firebase.svg","firebase.json":"file_type_light_firebasehosting.svg","firestore.rules":"file_type_firestore.svg","firestore.indexes.json":"file_type_firestore.svg",".flooignore":"file_type_floobits.svg",".flowconfig":"file_type_flow.svg",".flutter-plugins":"file_type_flutter.svg",".metadata":"file_type_flutter.svg","pubspec.lock":"file_type_flutter_package.svg","pubspec.yaml":"file_type_flutter_package.svg",".packages":"file_type_flutter_package.svg",".fossaignore":"file_type_fossa.svg","ignore-glob":"file_type_fossil.svg","fuse.js":"file_type_fusebox.svg","gatsby-config.js":"file_type_gatsby.svg","gatsby-config.ts":"file_type_gatsby.svg","gatsby-node.js":"file_type_gatsby.svg","gatsby-node.ts":"file_type_gatsby.svg","gatsby-browser.js":"file_type_gatsby.svg","gatsby-browser.ts":"file_type_gatsby.svg","gatsby-ssr.js":"file_type_gatsby.svg","gatsby-ssr.ts":"file_type_gatsby.svg",".gitattributes":"file_type_git.svg",".gitconfig":"file_type_git.svg",".gitignore":"file_type_git.svg",".gitmodules":"file_type_git.svg",".gitkeep":"file_type_git.svg",".mailmap":"file_type_git.svg",".gitlab-ci.yml":"file_type_gitlab.svg",".gitpod.yaml":"file_type_gitpod.svg",".gitpod.yml":"file_type_gitpod.svg","gitpod.yaml":"file_type_gitpod.svg","gitpod.yml":"file_type_gitpod.svg","glide.yml":"file_type_glide.svg",".glitterrc":"file_type_glitter.svg","go.sum":"file_type_go_package.svg","go.mod":"file_type_go_package.svg",".gqlconfig":"file_type_graphql.svg",".graphqlconfig":"file_type_graphql_config.svg",".graphqlconfig.yml":"file_type_graphql_config.svg",".graphqlconfig.yaml":"file_type_graphql_config.svg","greenkeeper.json":"file_type_greenkeeper.svg","gridsome.config.js":"file_type_gridsome.svg","gridsome.config.ts":"file_type_gridsome.svg","gridsome.server.js":"file_type_gridsome.svg","gridsome.server.ts":"file_type_gridsome.svg","gridsome.client.js":"file_type_gridsome.svg","gridsome.client.ts":"file_type_gridsome.svg","gruntfile.js":"file_type_grunt.svg","gruntfile.coffee":"file_type_grunt.svg","gruntfile.ts":"file_type_grunt.svg","gruntfile.babel.js":"file_type_grunt.svg","gruntfile.babel.coffee":"file_type_grunt.svg","gruntfile.babel.ts":"file_type_grunt.svg","gulpfile.js":"file_type_gulp.svg","gulpfile.coffee":"file_type_gulp.svg","gulpfile.ts":"file_type_gulp.svg","gulpfile.mjs":"file_type_gulp.svg","gulpfile.esm.js":"file_type_gulp.svg","gulpfile.esm.coffee":"file_type_gulp.svg","gulpfile.esm.ts":"file_type_gulp.svg","gulpfile.esm.mjs":"file_type_gulp.svg","gulpfile.babel.js":"file_type_gulp.svg","gulpfile.babel.coffee":"file_type_gulp.svg","gulpfile.babel.ts":"file_type_gulp.svg","gulpfile.babel.mjs":"file_type_gulp.svg","haxelib.json":"file_type_haxe.svg","checkstyle.json":"file_type_haxecheckstyle.svg",".p4ignore":"file_type_helix.svg","chart.lock":"file_type_helm.svg","chart.yaml":"file_type_helm.svg","horusec-config.json":"file_type_horusec.svg",".htmlhintrc":"file_type_htmlhint.svg",".huskyrc":"file_type_husky.svg","husky.config.js":"file_type_husky.svg",".huskyrc.js":"file_type_husky.svg",".huskyrc.json":"file_type_husky.svg",".huskyrc.yaml":"file_type_husky.svg",".huskyrc.yml":"file_type_husky.svg","ionic.project":"file_type_ionic.svg","ionic.config.json":"file_type_ionic.svg",jakefile:"file_type_jake.svg","jakefile.js":"file_type_jake.svg","jasmine.json":"file_type_jasmine.svg","jest.config.json":"file_type_jest.svg","jest.config.base.json":"file_type_jest.svg","jest.config.common.json":"file_type_jest.svg","jest.config.ts":"file_type_jest.svg","jest.config.base.ts":"file_type_jest.svg","jest.config.common.ts":"file_type_jest.svg","jest.json":"file_type_jest.svg",".jestrc":"file_type_jest.svg",".jestrc.js":"file_type_jest.svg",".jestrc.json":"file_type_jest.svg","jest.config.js":"file_type_jest.svg","jest.config.cjs":"file_type_jest.svg","jest.config.mjs":"file_type_jest.svg","jest.config.base.js":"file_type_jest.svg","jest.config.base.cjs":"file_type_jest.svg","jest.config.base.mjs":"file_type_jest.svg","jest.config.common.js":"file_type_jest.svg","jest.config.common.cjs":"file_type_jest.svg","jest.config.common.mjs":"file_type_jest.svg","jest.config.babel.js":"file_type_jest.svg","jest.config.babel.cjs":"file_type_jest.svg","jest.config.babel.mjs":"file_type_jest.svg",".jpmignore":"file_type_jpm.svg",".jsbeautifyrc":"file_type_jsbeautify.svg",jsbeautifyrc:"file_type_jsbeautify.svg",".jsbeautify":"file_type_jsbeautify.svg",jsbeautify:"file_type_jsbeautify.svg","jsconfig.json":"file_type_light_jsconfig.svg",".jscpd.json":"file_type_jscpd.svg","jscpd-report.xml":"file_type_jscpd.svg","jscpd-report.json":"file_type_jscpd.svg","jscpd-report.html":"file_type_jscpd.svg",".jshintrc":"file_type_jshint.svg",".jshintignore":"file_type_jshint.svg","karma.conf.js":"file_type_karma.svg","karma.conf.coffee":"file_type_karma.svg","karma.conf.ts":"file_type_karma.svg",".kitchen.yml":"file_type_kitchenci.svg","kitchen.yml":"file_type_kitchenci.svg",".kiteignore":"file_type_light_kite.svg","layout.html":"file_type_layout.svg","layout.htm":"file_type_layout.svg","lerna.json":"file_type_light_lerna.svg",license:"file_type_license.svg",licence:"file_type_license.svg",copying:"file_type_license.svg","copying.lesser":"file_type_license.svg","license.md":"file_type_license.svg","license.txt":"file_type_license.svg","licence.md":"file_type_license.svg","licence.txt":"file_type_license.svg","copying.md":"file_type_license.svg","copying.txt":"file_type_license.svg","copying.lesser.md":"file_type_license.svg","copying.lesser.txt":"file_type_license.svg",".licrc":"file_type_licensebat.svg",".lighthouserc.js":"file_type_lighthouse.svg",".lighthouserc.json":"file_type_lighthouse.svg",".lighthouserc.yaml":"file_type_lighthouse.svg",".lighthouserc.yml":"file_type_lighthouse.svg","include.xml":"file_type_lime.svg",".lintstagedrc":"file_type_lintstagedrc.svg","lint-staged.config.js":"file_type_lintstagedrc.svg",".lintstagedrc.js":"file_type_lintstagedrc.svg",".lintstagedrc.json":"file_type_lintstagedrc.svg",".lintstagedrc.yaml":"file_type_lintstagedrc.svg",".lintstagedrc.yml":"file_type_lintstagedrc.svg",manifest:"file_type_manifest.svg","manifest.bak":"file_type_manifest_bak.svg","manifest.skip":"file_type_manifest_skip.svg",".markdownlint.json":"file_type_markdownlint.svg","maven.config":"file_type_maven.svg","pom.xml":"file_type_maven.svg","extensions.xml":"file_type_maven.svg","settings.xml":"file_type_maven.svg",".hgignore":"file_type_mercurial.svg","mocha.opts":"file_type_mocha.svg",".mocharc.js":"file_type_mocha.svg",".mocharc.json":"file_type_mocha.svg",".mocharc.jsonc":"file_type_mocha.svg",".mocharc.yaml":"file_type_mocha.svg",".mocharc.yml":"file_type_mocha.svg",modernizr:"file_type_modernizr.svg","modernizr.js":"file_type_modernizr.svg","modernizrrc.js":"file_type_modernizr.svg",".modernizr.js":"file_type_modernizr.svg",".modernizrrc.js":"file_type_modernizr.svg","moleculer.config.js":"file_type_moleculer.svg","moleculer.config.json":"file_type_moleculer.svg","moleculer.config.ts":"file_type_moleculer.svg",".mtn-ignore":"file_type_monotone.svg",".nest-cli.json":"file_type_nestjs.svg","nest-cli.json":"file_type_nestjs.svg","nestconfig.json":"file_type_nestjs.svg",".nestconfig.json":"file_type_nestjs.svg","netlify.toml":"file_type_netlify.svg","next.config.js":"file_type_light_next.svg","ng-tailwind.js":"file_type_ng_tailwind.svg","nginx.conf":"file_type_nginx.svg","build.ninja":"file_type_ninja.svg",".node-version":"file_type_node.svg",".nvmrc":"file_type_node.svg","nodemon.json":"file_type_nodemon.svg",".npmignore":"file_type_npm.svg",".npmrc":"file_type_npm.svg","package.json":"file_type_npm.svg","package-lock.json":"file_type_npm.svg","npm-shrinkwrap.json":"file_type_npm.svg",".nsrirc":"file_type_nsri.svg",".nsriignore":"file_type_nsri.svg","nsri.config.js":"file_type_nsri.svg",".nsrirc.js":"file_type_nsri.svg",".nsrirc.json":"file_type_nsri.svg",".nsrirc.yaml":"file_type_nsri.svg",".nsrirc.yml":"file_type_nsri.svg",".integrity.json":"file_type_nsri-integrity.svg","nuxt.config.js":"file_type_nuxt.svg","nuxt.config.ts":"file_type_nuxt.svg",".nycrc":"file_type_nyc.svg",".nycrc.json":"file_type_nyc.svg",".merlin":"file_type_ocaml.svg","paket.dependencies":"file_type_paket.svg","paket.lock":"file_type_paket.svg","paket.references":"file_type_paket.svg","paket.template":"file_type_paket.svg","paket.local":"file_type_paket.svg",".php_cs":"file_type_phpcsfixer.svg",".php_cs.dist":"file_type_phpcsfixer.svg",phpunit:"file_type_phpunit.svg","phpunit.xml":"file_type_phpunit.svg","phpunit.xml.dist":"file_type_phpunit.svg",".phraseapp.yml":"file_type_phraseapp.svg",pipfile:"file_type_pip.svg","pipfile.lock":"file_type_pip.svg","platformio.ini":"file_type_platformio.svg","pnpmfile.js":"file_type_light_pnpm.svg","pnpm-lock.yaml":"file_type_light_pnpm.svg","pnpm-workspace.yaml":"file_type_light_pnpm.svg",".postcssrc":"file_type_postcssconfig.svg",".postcssrc.json":"file_type_postcssconfig.svg",".postcssrc.yaml":"file_type_postcssconfig.svg",".postcssrc.yml":"file_type_postcssconfig.svg",".postcssrc.ts":"file_type_postcssconfig.svg",".postcssrc.js":"file_type_postcssconfig.svg",".postcssrc.cjs":"file_type_postcssconfig.svg","postcss.config.ts":"file_type_postcssconfig.svg","postcss.config.js":"file_type_postcssconfig.svg","postcss.config.cjs":"file_type_postcssconfig.svg","preact.config.js":"file_type_preact.svg",".pre-commit-config.yaml":"file_type_precommit.svg",".prettierrc":"file_type_light_prettier.svg",".prettierignore":"file_type_light_prettier.svg","prettier.config.js":"file_type_light_prettier.svg","prettier.config.cjs":"file_type_light_prettier.svg","prettier.config.ts":"file_type_light_prettier.svg","prettier.config.coffee":"file_type_light_prettier.svg",".prettierrc.js":"file_type_light_prettier.svg",".prettierrc.cjs":"file_type_light_prettier.svg",".prettierrc.json":"file_type_light_prettier.svg",".prettierrc.json5":"file_type_light_prettier.svg",".prettierrc.yml":"file_type_light_prettier.svg",".prettierrc.yaml":"file_type_light_prettier.svg",procfile:"file_type_procfile.svg","protractor.conf.js":"file_type_protractor.svg","protractor.conf.coffee":"file_type_protractor.svg","protractor.conf.ts":"file_type_protractor.svg",".jade-lintrc":"file_type_pug.svg",".pug-lintrc":"file_type_pug.svg",".jade-lint.json":"file_type_pug.svg",".pug-lintrc.js":"file_type_pug.svg",".pug-lintrc.json":"file_type_pug.svg","py.typed":"file_type_pytyped.svg",".pyup":"file_type_pyup.svg",".pyup.yml":"file_type_pyup.svg",qmldir:"file_type_qmldir.svg","quasar.conf.js":"file_type_quasar.svg",rakefile:"file_type_rake.svg","razzle.config.js":"file_type_light_razzle.svg",".rehyperc":"file_type_light_rehype.svg",".rehypeignore":"file_type_light_rehype.svg",".rehyperc.cjs":"file_type_light_rehype.svg",".rehyperc.js":"file_type_light_rehype.svg",".rehyperc.json":"file_type_light_rehype.svg",".rehyperc.mjs":"file_type_light_rehype.svg",".rehyperc.yml":"file_type_light_rehype.svg",".rehyperc.yaml":"file_type_light_rehype.svg",".remarkrc":"file_type_light_remark.svg",".remarkignore":"file_type_light_remark.svg",".remarkrc.cjs":"file_type_light_remark.svg",".remarkrc.js":"file_type_light_remark.svg",".remarkrc.json":"file_type_light_remark.svg",".remarkrc.mjs":"file_type_light_remark.svg",".remarkrc.yml":"file_type_light_remark.svg",".remarkrc.yaml":"file_type_light_remark.svg",".renovaterc":"file_type_renovate.svg","renovate.json":"file_type_renovate.svg",".renovaterc.json":"file_type_renovate.svg",".retextrc":"file_type_light_retext.svg",".retextignore":"file_type_light_retext.svg",".retextrc.cjs":"file_type_light_retext.svg",".retextrc.js":"file_type_light_retext.svg",".retextrc.json":"file_type_light_retext.svg",".retextrc.mjs":"file_type_light_retext.svg",".retextrc.yml":"file_type_light_retext.svg",".retextrc.yaml":"file_type_light_retext.svg","robots.txt":"file_type_robots.svg","rollup.config.js":"file_type_rollup.svg","rollup.config.cjs":"file_type_rollup.svg","rollup.config.mjs":"file_type_rollup.svg","rollup.config.coffee":"file_type_rollup.svg","rollup.config.ts":"file_type_rollup.svg","rollup.config.common.js":"file_type_rollup.svg","rollup.config.common.cjs":"file_type_rollup.svg","rollup.config.common.mjs":"file_type_rollup.svg","rollup.config.common.coffee":"file_type_rollup.svg","rollup.config.common.ts":"file_type_rollup.svg","rollup.config.dev.js":"file_type_rollup.svg","rollup.config.dev.cjs":"file_type_rollup.svg","rollup.config.dev.mjs":"file_type_rollup.svg","rollup.config.dev.coffee":"file_type_rollup.svg","rollup.config.dev.ts":"file_type_rollup.svg","rollup.config.prod.js":"file_type_rollup.svg","rollup.config.prod.cjs":"file_type_rollup.svg","rollup.config.prod.mjs":"file_type_rollup.svg","rollup.config.prod.coffee":"file_type_rollup.svg","rollup.config.prod.ts":"file_type_rollup.svg",".rspec":"file_type_rspec.svg",".rubocop.yml":"file_type_light_rubocop.svg",".rubocop_todo.yml":"file_type_light_rubocop.svg","rust-toolchain":"file_type_light_rust_toolchain.svg",".sailsrc":"file_type_sails.svg",".sentryclirc":"file_type_sentry.svg",".sequelizerc":"file_type_sequelize.svg",".sequelizerc.js":"file_type_sequelize.svg",".sequelizerc.json":"file_type_sequelize.svg","serverless.yml":"file_type_serverless.svg","serverless.json":"file_type_serverless.svg","serverless.js":"file_type_serverless.svg","serverless.ts":"file_type_serverless.svg","snapcraft.yaml":"file_type_snapcraft.svg",".snyk":"file_type_snyk.svg",".solidarity":"file_type_solidarity.svg",".solidarity.json":"file_type_solidarity.svg",".stylelintrc":"file_type_light_stylelint.svg",".stylelintignore":"file_type_light_stylelint.svg",".stylelintcache":"file_type_light_stylelint.svg","stylelint.config.js":"file_type_light_stylelint.svg","stylelint.config.json":"file_type_light_stylelint.svg","stylelint.config.yaml":"file_type_light_stylelint.svg","stylelint.config.yml":"file_type_light_stylelint.svg","stylelint.config.ts":"file_type_light_stylelint.svg","stylelint.config.cjs":"file_type_light_stylelint.svg",".stylelintrc.js":"file_type_light_stylelint.svg",".stylelintrc.json":"file_type_light_stylelint.svg",".stylelintrc.yaml":"file_type_light_stylelint.svg",".stylelintrc.yml":"file_type_light_stylelint.svg",".stylelintrc.ts":"file_type_light_stylelint.svg",".stylelintrc.cjs":"file_type_light_stylelint.svg",".stylish-haskell.yaml":"file_type_stylish_haskell.svg",".svnignore":"file_type_subversion.svg","package.pins":"file_type_swift.svg","symfony.lock":"file_type_light_symfony.svg","tailwind.js":"file_type_tailwind.svg","tailwind.cjs":"file_type_tailwind.svg","tailwind.coffee":"file_type_tailwind.svg","tailwind.ts":"file_type_tailwind.svg","tailwind.json":"file_type_tailwind.svg","tailwind.config.js":"file_type_tailwind.svg","tailwind.config.cjs":"file_type_tailwind.svg","tailwind.config.coffee":"file_type_tailwind.svg","tailwind.config.ts":"file_type_tailwind.svg","tailwind.config.json":"file_type_tailwind.svg",".testcaferc.json":"file_type_light_testcafe.svg",".tfignore":"file_type_tfs.svg","tox.ini":"file_type_tox.svg",".travis.yml":"file_type_travis.svg","tsconfig.json":"file_type_tsconfig.svg","tsconfig.app.json":"file_type_tsconfig.svg","tsconfig.base.json":"file_type_tsconfig.svg","tsconfig.common.json":"file_type_tsconfig.svg","tsconfig.dev.json":"file_type_tsconfig.svg","tsconfig.development.json":"file_type_tsconfig.svg","tsconfig.e2e.json":"file_type_tsconfig.svg","tsconfig.prod.json":"file_type_tsconfig.svg","tsconfig.production.json":"file_type_tsconfig.svg","tsconfig.server.json":"file_type_tsconfig.svg","tsconfig.spec.json":"file_type_tsconfig.svg","tsconfig.staging.json":"file_type_tsconfig.svg","tsconfig.test.json":"file_type_tsconfig.svg","tsconfig.lib.json":"file_type_tsconfig.svg","tsconfig.lib.prod.json":"file_type_tsconfig.svg","tslint.json":"file_type_tslint.svg","tslint.yaml":"file_type_tslint.svg","tslint.yml":"file_type_tslint.svg","typedoc.js":"file_type_typedoc.svg","typedoc.json":"file_type_typedoc.svg",".unibeautifyrc":"file_type_light_unibeautify.svg","unibeautify.config.js":"file_type_light_unibeautify.svg",".unibeautifyrc.js":"file_type_light_unibeautify.svg",".unibeautifyrc.json":"file_type_light_unibeautify.svg",".unibeautifyrc.yaml":"file_type_light_unibeautify.svg",".unibeautifyrc.yml":"file_type_light_unibeautify.svg",unlicense:"file_type_unlicense.svg",unlicence:"file_type_unlicense.svg","unlicense.md":"file_type_unlicense.svg","unlicense.txt":"file_type_unlicense.svg","unlicence.md":"file_type_unlicense.svg","unlicence.txt":"file_type_unlicense.svg",vagrantfile:"file_type_vagrant.svg","vapor.yml":"file_type_vapor.svg",".vimrc":"file_type_vim.svg",".gvimrc":"file_type_vim.svg","vite.config.js":"file_type_vite.svg","vite.config.ts":"file_type_vite.svg",".vscodeignore":"file_type_vscode.svg","launch.json":"file_type_vscode.svg","tasks.json":"file_type_vscode.svg","vscodeignore.json":"file_type_vscode.svg",".vuerc":"file_type_vueconfig.svg","vue.config.js":"file_type_vueconfig.svg","wallaby.json":"file_type_wallaby.svg","wallaby.js":"file_type_wallaby.svg","wallaby.ts":"file_type_wallaby.svg","wallaby.coffee":"file_type_wallaby.svg","wallaby.conf.json":"file_type_wallaby.svg","wallaby.conf.js":"file_type_wallaby.svg","wallaby.conf.ts":"file_type_wallaby.svg","wallaby.conf.coffee":"file_type_wallaby.svg",".wallaby.json":"file_type_wallaby.svg",".wallaby.js":"file_type_wallaby.svg",".wallaby.ts":"file_type_wallaby.svg",".wallaby.coffee":"file_type_wallaby.svg",".wallaby.conf.json":"file_type_wallaby.svg",".wallaby.conf.js":"file_type_wallaby.svg",".wallaby.conf.ts":"file_type_wallaby.svg",".wallaby.conf.coffee":"file_type_wallaby.svg",".watchmanconfig":"file_type_watchmanconfig.svg","webpack.base.conf.js":"file_type_webpack.svg","webpack.base.conf.coffee":"file_type_webpack.svg","webpack.base.conf.ts":"file_type_webpack.svg","webpack.common.js":"file_type_webpack.svg","webpack.common.coffee":"file_type_webpack.svg","webpack.common.ts":"file_type_webpack.svg","webpack.config.js":"file_type_webpack.svg","webpack.config.coffee":"file_type_webpack.svg","webpack.config.ts":"file_type_webpack.svg","webpack.config.base.js":"file_type_webpack.svg","webpack.config.base.coffee":"file_type_webpack.svg","webpack.config.base.ts":"file_type_webpack.svg","webpack.config.common.js":"file_type_webpack.svg","webpack.config.common.coffee":"file_type_webpack.svg","webpack.config.common.ts":"file_type_webpack.svg","webpack.config.dev.js":"file_type_webpack.svg","webpack.config.dev.coffee":"file_type_webpack.svg","webpack.config.dev.ts":"file_type_webpack.svg","webpack.config.development.js":"file_type_webpack.svg","webpack.config.development.coffee":"file_type_webpack.svg","webpack.config.development.ts":"file_type_webpack.svg","webpack.config.staging.js":"file_type_webpack.svg","webpack.config.staging.coffee":"file_type_webpack.svg","webpack.config.staging.ts":"file_type_webpack.svg","webpack.config.test.js":"file_type_webpack.svg","webpack.config.test.coffee":"file_type_webpack.svg","webpack.config.test.ts":"file_type_webpack.svg","webpack.config.prod.js":"file_type_webpack.svg","webpack.config.prod.coffee":"file_type_webpack.svg","webpack.config.prod.ts":"file_type_webpack.svg","webpack.config.production.js":"file_type_webpack.svg","webpack.config.production.coffee":"file_type_webpack.svg","webpack.config.production.ts":"file_type_webpack.svg","webpack.config.babel.js":"file_type_webpack.svg","webpack.config.babel.coffee":"file_type_webpack.svg","webpack.config.babel.ts":"file_type_webpack.svg","webpack.config.base.babel.js":"file_type_webpack.svg","webpack.config.base.babel.coffee":"file_type_webpack.svg","webpack.config.base.babel.ts":"file_type_webpack.svg","webpack.config.common.babel.js":"file_type_webpack.svg","webpack.config.common.babel.coffee":"file_type_webpack.svg","webpack.config.common.babel.ts":"file_type_webpack.svg","webpack.config.dev.babel.js":"file_type_webpack.svg","webpack.config.dev.babel.coffee":"file_type_webpack.svg","webpack.config.dev.babel.ts":"file_type_webpack.svg","webpack.config.development.babel.js":"file_type_webpack.svg","webpack.config.development.babel.coffee":"file_type_webpack.svg","webpack.config.development.babel.ts":"file_type_webpack.svg","webpack.config.staging.babel.js":"file_type_webpack.svg","webpack.config.staging.babel.coffee":"file_type_webpack.svg","webpack.config.staging.babel.ts":"file_type_webpack.svg","webpack.config.test.babel.js":"file_type_webpack.svg","webpack.config.test.babel.coffee":"file_type_webpack.svg","webpack.config.test.babel.ts":"file_type_webpack.svg","webpack.config.prod.babel.js":"file_type_webpack.svg","webpack.config.prod.babel.coffee":"file_type_webpack.svg","webpack.config.prod.babel.ts":"file_type_webpack.svg","webpack.config.production.babel.js":"file_type_webpack.svg","webpack.config.production.babel.coffee":"file_type_webpack.svg","webpack.config.production.babel.ts":"file_type_webpack.svg","webpack.dev.js":"file_type_webpack.svg","webpack.dev.coffee":"file_type_webpack.svg","webpack.dev.ts":"file_type_webpack.svg","webpack.dev.conf.js":"file_type_webpack.svg","webpack.dev.conf.coffee":"file_type_webpack.svg","webpack.dev.conf.ts":"file_type_webpack.svg","webpack.prod.js":"file_type_webpack.svg","webpack.prod.coffee":"file_type_webpack.svg","webpack.prod.ts":"file_type_webpack.svg","webpack.prod.conf.js":"file_type_webpack.svg","webpack.prod.conf.coffee":"file_type_webpack.svg","webpack.prod.conf.ts":"file_type_webpack.svg","webpack.main.config.js":"file_type_webpack.svg","webpack.main.config.coffee":"file_type_webpack.svg","webpack.main.config.ts":"file_type_webpack.svg","webpack.mix.js":"file_type_webpack.svg","webpack.mix.coffee":"file_type_webpack.svg","webpack.mix.ts":"file_type_webpack.svg","webpack.plugins.js":"file_type_webpack.svg","webpack.plugins.coffee":"file_type_webpack.svg","webpack.plugins.ts":"file_type_webpack.svg","webpack.renderer.config.js":"file_type_webpack.svg","webpack.renderer.config.coffee":"file_type_webpack.svg","webpack.renderer.config.ts":"file_type_webpack.svg","webpack.rules.js":"file_type_webpack.svg","webpack.rules.coffee":"file_type_webpack.svg","webpack.rules.ts":"file_type_webpack.svg","webpack.test.conf.js":"file_type_webpack.svg","webpack.test.conf.coffee":"file_type_webpack.svg","webpack.test.conf.ts":"file_type_webpack.svg","wercker.yml":"file_type_wercker.svg","wpml-config.xml":"file_type_wpml.svg",".yamllint":"file_type_yamllint.svg",".yaspellerrc":"file_type_yandex.svg",".yaspeller.json":"file_type_yandex.svg","yarn.lock":"file_type_yarn.svg",".yarnrc":"file_type_yarn.svg",".yarnrc.yml":"file_type_yarn.svg",".yarnclean":"file_type_yarn.svg",".yarn-integrity":"file_type_yarn.svg",".yarn-metadata.json":"file_type_yarn.svg",".yarnignore":"file_type_yarn.svg",".yo-rc.json":"file_type_yeoman.svg","now.json":"file_type_light_zeit.svg",".nowignore":"file_type_light_zeit.svg","vercel.json":"file_type_light_zeit.svg",".vercelignore":"file_type_light_zeit.svg",Jenkinsfile:"file_type_groovy.svg",config:"file_type_ini.svg",gitconfig:"file_type_ini.svg",guardfile:"file_type_ruby.svg",podfile:"file_type_ruby.svg",capfile:"file_type_ruby.svg"}),Yv}var Xv={},Nz;function s9e(){return Nz||(Nz=1,Object.defineProperty(Xv,"__esModule",{value:!0}),Xv.FolderNamesToIcon=void 0,Xv.FolderNamesToIcon={android:"folder_type_android.svg",api:"folder_type_api.svg",".api":"folder_type_api.svg",apis:"folder_type_api.svg",".apis":"folder_type_api.svg",app:"folder_type_app.svg",".app":"folder_type_app.svg",arangodb:"folder_type_arangodb.svg",arango:"folder_type_arangodb.svg",assets:"folder_type_asset.svg",".assets":"folder_type_asset.svg",audio:"folder_type_audio.svg",".audio":"folder_type_audio.svg",audios:"folder_type_audio.svg",".audios":"folder_type_audio.svg",sound:"folder_type_audio.svg",".sound":"folder_type_audio.svg",sounds:"folder_type_audio.svg",".sounds":"folder_type_audio.svg",aurelia_project:"folder_type_aurelia.svg",aws:"folder_type_aws.svg",".aws":"folder_type_aws.svg",azure:"folder_type_azure.svg",".azure":"folder_type_azure.svg","azure-pipelines":"folder_type_azurepipelines.svg",".azure-pipelines":"folder_type_azurepipelines.svg",bin:"folder_type_binary.svg",".bin":"folder_type_binary.svg",blocs:"folder_type_bloc.svg",bloc:"folder_type_bloc.svg",blueprint:"folder_type_blueprint.svg",".blueprint":"folder_type_blueprint.svg",blueprints:"folder_type_blueprint.svg",".blueprints":"folder_type_blueprint.svg",bower_components:"folder_type_bower.svg",".buildkite":"folder_type_buildkite.svg",cake:"folder_type_cake.svg",".cake":"folder_type_cake.svg",certificates:"folder_type_certificate.svg",".certificates":"folder_type_certificate.svg",certs:"folder_type_certificate.svg","certs.":"folder_type_certificate.svg",chef:"folder_type_chef.svg",".chef":"folder_type_chef.svg",".circleci":"folder_type_circleci.svg",cli:"folder_type_cli.svg",cmd:"folder_type_cli.svg",command:"folder_type_cli.svg",commands:"folder_type_cli.svg",commandline:"folder_type_cli.svg",console:"folder_type_cli.svg",client:"folder_type_client.svg",clients:"folder_type_client.svg",".cmake":"folder_type_cmake.svg",cmake:"folder_type_cmake.svg",component:"folder_type_component.svg",components:"folder_type_component.svg",".components":"folder_type_component.svg",widgets:"folder_type_component.svg",composer:"folder_type_composer.svg",".composer":"folder_type_composer.svg",conf:"folder_type_config.svg",".conf":"folder_type_config.svg",config:"folder_type_config.svg",".config":"folder_type_config.svg",configs:"folder_type_config.svg",".configs":"folder_type_config.svg",configuration:"folder_type_config.svg",".configuration":"folder_type_config.svg",configurations:"folder_type_config.svg",".configurations":"folder_type_config.svg",setting:"folder_type_config.svg",".setting":"folder_type_config.svg",settings:"folder_type_config.svg",".settings":"folder_type_config.svg",ini:"folder_type_config.svg",".ini":"folder_type_config.svg",initializers:"folder_type_config.svg",".initializers":"folder_type_config.svg",controller:"folder_type_controller.svg",controllers:"folder_type_controller.svg",".controllers":"folder_type_controller.svg",handlers:"folder_type_controller.svg",".handlers":"folder_type_controller.svg",coverage:"folder_type_coverage.svg",css:"folder_type_css.svg",_css:"folder_type_css.svg",cubits:"folder_type_cubit.svg",cubit:"folder_type_cubit.svg",cypress:"folder_type_cypress.svg",".dapr":"folder_type_dapr.svg",dapr:"folder_type_dapr.svg",db:"folder_type_db.svg",database:"folder_type_db.svg",sql:"folder_type_db.svg",data:"folder_type_db.svg",repo:"folder_type_db.svg",repository:"folder_type_db.svg",repositories:"folder_type_db.svg",debian:"folder_type_debian.svg",deb:"folder_type_debian.svg",".dependabot":"folder_type_dependabot.svg",".devcontainer":"folder_type_devcontainer.svg",dist:"folder_type_dist.svg",".dist":"folder_type_dist.svg",dists:"folder_type_dist.svg",out:"folder_type_dist.svg",outs:"folder_type_dist.svg",export:"folder_type_dist.svg",exports:"folder_type_dist.svg",build:"folder_type_dist.svg",".build":"folder_type_dist.svg",builds:"folder_type_dist.svg",release:"folder_type_dist.svg",releases:"folder_type_dist.svg",target:"folder_type_dist.svg",targets:"folder_type_dist.svg",docker:"folder_type_docker.svg",".docker":"folder_type_docker.svg",docs:"folder_type_docs.svg",doc:"folder_type_docs.svg",e2e:"folder_type_e2e.svg",".elasticbeanstalk":"folder_type_elasticbeanstalk.svg",".ebextensions":"folder_type_elasticbeanstalk.svg",electron:"folder_type_light_electron.svg",".expo":"folder_type_light_expo.svg",".expo-shared":"folder_type_light_expo.svg",favicon:"folder_type_favicon.svg",favicons:"folder_type_favicon.svg",flow:"folder_type_flow.svg","flow-typed":"folder_type_flow.svg",fonts:"folder_type_light_fonts.svg",font:"folder_type_light_fonts.svg",fnt:"folder_type_light_fonts.svg",gcp:"folder_type_gcp.svg",".gcp":"folder_type_gcp.svg",".git":"folder_type_git.svg",submodules:"folder_type_git.svg",".submodules":"folder_type_git.svg",".github":"folder_type_github.svg",".gitlab":"folder_type_gitlab.svg",gradle:"folder_type_light_gradle.svg",".gradle":"folder_type_light_gradle.svg",graphql:"folder_type_graphql.svg",grunt:"folder_type_grunt.svg",gulp:"folder_type_gulp.svg","gulpfile.js":"folder_type_gulp.svg","gulpfile.coffee":"folder_type_gulp.svg","gulpfile.ts":"folder_type_gulp.svg","gulpfile.babel.js":"folder_type_gulp.svg","gulpfile.babel.coffee":"folder_type_gulp.svg","gulpfile.babel.ts":"folder_type_gulp.svg",".haxelib":"folder_type_haxelib.svg",haxe_libraries:"folder_type_haxelib.svg",helper:"folder_type_helper.svg",".helper":"folder_type_helper.svg",helpers:"folder_type_helper.svg",".helpers":"folder_type_helper.svg",hook:"folder_type_hook.svg",".hook":"folder_type_hook.svg",hooks:"folder_type_hook.svg",".hooks":"folder_type_hook.svg",".husky":"folder_type_husky.svg",".idea":"folder_type_idea.svg",images:"folder_type_images.svg",image:"folder_type_images.svg",img:"folder_type_images.svg",icons:"folder_type_images.svg",icon:"folder_type_images.svg",ico:"folder_type_images.svg",screenshot:"folder_type_images.svg",screenshots:"folder_type_images.svg",svg:"folder_type_images.svg",include:"folder_type_include.svg",includes:"folder_type_include.svg",incl:"folder_type_include.svg",inc:"folder_type_include.svg",".include":"folder_type_include.svg",".includes":"folder_type_include.svg",".incl":"folder_type_include.svg",".inc":"folder_type_include.svg",_include:"folder_type_include.svg",_includes:"folder_type_include.svg",_incl:"folder_type_include.svg",_inc:"folder_type_include.svg",interface:"folder_type_interfaces.svg",interfaces:"folder_type_interfaces.svg",ios:"folder_type_ios.svg",js:"folder_type_js.svg",json:"folder_type_json.svg",kubernetes:"folder_type_kubernetes.svg",k8s:"folder_type_kubernetes.svg",kube:"folder_type_kubernetes.svg",kuber:"folder_type_kubernetes.svg",".kubernetes":"folder_type_kubernetes.svg",".k8s":"folder_type_kubernetes.svg",".kube":"folder_type_kubernetes.svg",".kuber":"folder_type_kubernetes.svg",less:"folder_type_less.svg",_less:"folder_type_less.svg",lib:"folder_type_library.svg",libs:"folder_type_library.svg",".lib":"folder_type_library.svg",".libs":"folder_type_library.svg",library:"folder_type_library.svg",libraries:"folder_type_library.svg",linux:"folder_type_linux.svg",lang:"folder_type_locale.svg",language:"folder_type_locale.svg",languages:"folder_type_locale.svg",locale:"folder_type_locale.svg",locales:"folder_type_locale.svg",_locale:"folder_type_locale.svg",_locales:"folder_type_locale.svg",internationalization:"folder_type_locale.svg",globalization:"folder_type_locale.svg",localization:"folder_type_locale.svg",i18n:"folder_type_locale.svg",g11n:"folder_type_locale.svg",l10n:"folder_type_locale.svg",log:"folder_type_log.svg",logs:"folder_type_log.svg",macos:"folder_type_macos.svg",darwin:"folder_type_macos.svg",mariadb:"folder_type_mariadb.svg",maria:"folder_type_mariadb.svg",".mvn":"folder_type_maven.svg",memcached:"folder_type_memcached.svg",".memcached":"folder_type_memcached.svg",".meteor":"folder_type_light_meteor.svg",middleware:"folder_type_middleware.svg",middlewares:"folder_type_middleware.svg",minikube:"folder_type_minikube.svg",minik8s:"folder_type_minikube.svg",minikuber:"folder_type_minikube.svg",mjml:"folder_type_mjml.svg",".mjml":"folder_type_mjml.svg",mocks:"folder_type_mock.svg",".mocks":"folder_type_mock.svg",__mocks__:"folder_type_mock.svg",model:"folder_type_model.svg",".model":"folder_type_model.svg",models:"folder_type_model.svg",".models":"folder_type_model.svg",entities:"folder_type_model.svg",".entities":"folder_type_model.svg",modules:"folder_type_module.svg",mongodb:"folder_type_mongodb.svg",mongo:"folder_type_mongodb.svg",mysqldb:"folder_type_light_mysql.svg",mysql:"folder_type_light_mysql.svg",".next":"folder_type_next.svg",nginx:"folder_type_nginx.svg","conf.d":"folder_type_nginx.svg",node_modules:"folder_type_light_node.svg",notification:"folder_type_notification.svg",notifications:"folder_type_notification.svg",event:"folder_type_notification.svg",events:"folder_type_notification.svg",".nuget":"folder_type_nuget.svg",".nuxt":"folder_type_nuxt.svg",package:"folder_type_package.svg",packages:"folder_type_package.svg",".package":"folder_type_package.svg",".packages":"folder_type_package.svg",pkg:"folder_type_package.svg",".paket":"folder_type_paket.svg",php:"folder_type_php.svg",".pio":"folder_type_platformio.svg",".pioenvs":"folder_type_platformio.svg",plugin:"folder_type_plugin.svg",".plugin":"folder_type_plugin.svg",plugins:"folder_type_plugin.svg",".plugins":"folder_type_plugin.svg",extension:"folder_type_plugin.svg",".extension":"folder_type_plugin.svg",extensions:"folder_type_plugin.svg",".extensions":"folder_type_plugin.svg",private:"folder_type_private.svg",".private":"folder_type_private.svg",public:"folder_type_public.svg",".public":"folder_type_public.svg",".venv":"folder_type_python.svg",".virtualenv":"folder_type_python.svg",ravendb:"folder_type_ravendb.svg",redis:"folder_type_redis.svg",redux:"folder_type_light_redux.svg",route:"folder_type_route.svg",routes:"folder_type_route.svg",_route:"folder_type_route.svg",_routes:"folder_type_route.svg",routers:"folder_type_route.svg",sass:"folder_type_light_sass.svg",scss:"folder_type_light_sass.svg",_sass:"folder_type_light_sass.svg",_scss:"folder_type_light_sass.svg",script:"folder_type_script.svg",scripts:"folder_type_script.svg",server:"folder_type_server.svg",service:"folder_type_services.svg",services:"folder_type_services.svg",src:"folder_type_src.svg",source:"folder_type_src.svg",sources:"folder_type_src.svg",sso:"folder_type_sso.svg",story:"folder_type_story.svg",stories:"folder_type_story.svg",__stories__:"folder_type_story.svg",".storybook":"folder_type_story.svg",style:"folder_type_style.svg",styles:"folder_type_style.svg",temp:"folder_type_temp.svg",".temp":"folder_type_temp.svg",tmp:"folder_type_temp.svg",".tmp":"folder_type_temp.svg",template:"folder_type_template.svg",".template":"folder_type_template.svg",templates:"folder_type_template.svg",".templates":"folder_type_template.svg",tests:"folder_type_test.svg",".tests":"folder_type_test.svg",test:"folder_type_test.svg",".test":"folder_type_test.svg",__tests__:"folder_type_test.svg",__test__:"folder_type_test.svg",spec:"folder_type_test.svg",".spec":"folder_type_test.svg",specs:"folder_type_test.svg",".specs":"folder_type_test.svg",integration:"folder_type_test.svg",theme:"folder_type_theme.svg",themes:"folder_type_theme.svg",tool:"folder_type_tools.svg",tools:"folder_type_tools.svg",".tools":"folder_type_tools.svg",util:"folder_type_tools.svg",utils:"folder_type_tools.svg",".travis":"folder_type_travis.svg",typescript:"folder_type_typescript.svg",ts:"folder_type_typescript.svg",typings:"folder_type_typings.svg","@types":"folder_type_typings.svg",vagrant:"folder_type_vagrant.svg",".vagrant":"folder_type_vagrant.svg",video:"folder_type_video.svg",".video":"folder_type_video.svg",videos:"folder_type_video.svg",".videos":"folder_type_video.svg",html:"folder_type_view.svg",view:"folder_type_view.svg",views:"folder_type_view.svg",layout:"folder_type_view.svg",layouts:"folder_type_view.svg",page:"folder_type_view.svg",pages:"folder_type_view.svg",_view:"folder_type_view.svg",_views:"folder_type_view.svg",_layout:"folder_type_view.svg",_layouts:"folder_type_view.svg",_page:"folder_type_view.svg",_pages:"folder_type_view.svg",".vs":"folder_type_vs.svg",".vscode":"folder_type_vscode.svg",vscode:"folder_type_vscode.svg",".vscode-test":"folder_type_vscode_test.svg",webpack:"folder_type_webpack.svg",windows:"folder_type_windows.svg",win32:"folder_type_windows.svg",www:"folder_type_www.svg",wwwroot:"folder_type_www.svg"}),Xv}var Jv={},Tz;function a9e(){return Tz||(Tz=1,Object.defineProperty(Jv,"__esModule",{value:!0}),Jv.LanguagesToIcon=void 0,Jv.LanguagesToIcon={as:"file_type_actionscript.svg",ada:"file_type_light_ada.svg",prw:"file_type_advpl.svg",affect:"file_type_affectscript.svg",al:"file_type_al.svg",ansible:"file_type_ansible.svg",g4:"file_type_antlr.svg",any:"file_type_anyscript.svg",cls:"file_type_apex.svg",apl:"file_type_light_apl.svg",applescript:"file_type_applescript.svg",adoc:"file_type_asciidoc.svg",asp:"file_type_asp.svg",ats:"file_type_ats.svg",au3:"file_type_autoit.svg",avcs:"file_type_avro.svg",azcli:"file_type_azure.svg",bal:"file_type_ballerina.svg",bat:"file_type_bat.svg",cmd:"file_type_bat.svg",bats:"file_type_bats.svg",bzl:"file_type_bazel.svg",bf:"file_type_befunge.svg",bicep:"file_type_bicep.svg",bib:"file_type_light_tex.svg",biml:"file_type_biml.svg","blade.php":"file_type_blade.svg",blitzbasic:"file_type_blitzbasic.svg",bolt:"file_type_bolt.svg",bsq:"file_type_bosque.svg",c:"file_type_c.svg",cabal:"file_type_cabal.svg",Caddyfile:"file_type_caddy.svg",casc:"file_type_casc.svg",cddl:"file_type_cddl.svg",ceylon:"file_type_ceylon.svg",cfc:"file_type_cfc.svg",clj:"file_type_clojure.svg",cljs:"file_type_clojure.svg",cljc:"file_type_clojure.svg",cljx:"file_type_clojure.svg",clojure:"file_type_clojure.svg",edn:"file_type_clojure.svg",clojurescript:"file_type_clojurescript.svg",cmake:"file_type_cmake.svg",cbl:"file_type_cobol.svg",coffee:"file_type_coffeescript.svg",cson:"file_type_coffeescript.svg",confluence:"file_type_confluence.svg",ckbk:"file_type_chef_cookbook.svg",cpp:"file_type_cpp.svg",cc:"file_type_cpp.svg",cxx:"file_type_cpp.svg",hpp:"file_type_cpp.svg",hh:"file_type_cpp.svg",hxx:"file_type_cpp.svg",h:"file_type_cpp.svg",ino:"file_type_cpp.svg",inl:"file_type_cpp.svg",ipp:"file_type_cpp.svg",cr:"file_type_light_crystal.svg",cs:"file_type_csharp.svg",csx:"file_type_csharp.svg",cake:"file_type_csharp.svg",css:"file_type_css.svg",cu:"file_type_cuda.svg",pyx:"file_type_cython.svg",dal:"file_type_dal.svg",dart:"file_type_dartlang.svg",diff:"file_type_diff.svg",patch:"file_type_diff.svg",rej:"file_type_diff.svg",dockerfile:"file_type_docker.svg",dtx:"file_type_light_tex.svg",env:"file_type_light_config.svg",dot:"file_type_dotjs.svg",dox:"file_type_doxygen.svg",drl:"file_type_drools.svg",dust:"file_type_dustjs.svg",edge:"file_type_edge.svg",eex:"file_type_eex.svg",ex:"file_type_elixir.svg",elm:"file_type_elm.svg",erb:"file_type_erb.svg",erl:"file_type_erlang.svg",falcon:"file_type_falcon.svg",fs:"file_type_fsharp.svg",fsi:"file_type_fsharp.svg",fsx:"file_type_fsharp.svg",fsscript:"file_type_fsharp.svg",fthtml:"file_type_fthtml.svg",gspec:"file_type_galen.svg",gcode:"file_type_gcode.svg",gen:"file_type_genstat.svg",glsl:"file_type_glsl.svg",glyphs:"file_type_glyphs.svg",gp:"file_type_gnuplot.svg",go:"file_type_go.svg",gql:"file_type_graphql.svg",groovy:"file_type_groovy.svg",gvy:"file_type_groovy.svg",gradle:"file_type_groovy.svg",haml:"file_type_haml.svg",handlebars:"file_type_handlebars.svg",hbs:"file_type_handlebars.svg",hjs:"file_type_handlebars.svg",prg:"file_type_harbour.svg",hs:"file_type_haskell.svg",haxe:"file_type_haxe.svg","helm.tpl":"file_type_helm.svg",hjson:"file_type_light_hjson.svg",hlsl:"file_type_hlsl.svg",hlsli:"file_type_hlsl.svg",fx:"file_type_hlsl.svg",fxh:"file_type_hlsl.svg",vsh:"file_type_hlsl.svg",psh:"file_type_hlsl.svg",cginc:"file_type_hlsl.svg",compute:"file_type_hlsl.svg",hosts:"file_type_host.svg",html:"file_type_html.svg",htm:"file_type_html.svg",shtml:"file_type_html.svg",xhtml:"file_type_html.svg",mdoc:"file_type_html.svg",jsp:"file_type_html.svg",aspx:"file_type_html.svg",jshtm:"file_type_html.svg",volt:"file_type_html.svg",ejs:"file_type_html.svg",rhtml:"file_type_html.svg",http:"file_type_http.svg",hy:"file_type_hy.svg",hypr:"file_type_hypr.svg",icl:"file_type_icl.svg",imba:"file_type_imba.svg",properties:"file_type_light_ini.svg",gitconfig:"file_type_light_ini.svg",cfg:"file_type_light_ini.svg",conf:"file_type_light_ini.svg",ink:"file_type_ink.svg",iss:"file_type_innosetup.svg",io:"file_type_light_io.svg",janet:"file_type_janet.svg",java:"file_type_java.svg",jav:"file_type_java.svg",js:"file_type_light_js.svg",es6:"file_type_light_js.svg",mjs:"file_type_light_js.svg",pac:"file_type_light_js.svg",jsx:"file_type_reactjs.svg",jekyll:"file_type_jekyll.svg",json:"file_type_light_json.svg",bowerrc:"file_type_light_json.svg",jshintrc:"file_type_light_json.svg",jscsrc:"file_type_light_json.svg",eslintrc:"file_type_light_json.svg",babelrc:"file_type_light_json.svg",webmanifest:"file_type_light_json.svg",jsonc:"file_type_light_json.svg",jsonnet:"file_type_jsonnet.svg",json5:"file_type_light_json5.svg",jl:"file_type_julia.svg",id:"file_type_iodine.svg",kv:"file_type_kivy.svg",ks:"file_type_kos.svg",kt:"file_type_kotlin.svg",".kusto":"file_type_kusto.svg",tex:"file_type_light_tex.svg",lat:"file_type_latino.svg",less:"file_type_less.svg",flex:"file_type_lex.svg",lisp:"file_type_lisp.svg",log:"file_type_log.svg",lol:"file_type_lolcode.svg",lsl:"file_type_lsl.svg",lua:"file_type_lua.svg",mk:"file_type_makefile.svg",md:"file_type_markdown.svg",mdown:"file_type_markdown.svg",markdown:"file_type_markdown.svg",markdn:"file_type_markdown.svg",marko:"file_type_marko.svg",mat:"file_type_matlab.svg",ms:"file_type_maxscript.svg",mdx:"file_type_light_mdx.svg",mediawiki:"file_type_mediawiki.svg",mel:"file_type_maya.svg","meson.build":"file_type_meson.svg",mjml:"file_type_mjml.svg",ep:"file_type_mojolicious.svg",mongo:"file_type_mongo.svg",mson:"file_type_mson.svg",ne:"file_type_nearly.svg",nim:"file_type_nim.svg",nimble:"file_type_nimble.svg",nix:"file_type_nix.svg",nsi:"file_type_nsi.svg",nunjucks:"file_type_nunjucks.svg",ml:"file_type_ocaml.svg",o3:"file_type_ogone.svg",pas:"file_type_delphi.svg",pddl:"file_type_pddl.svg",pl:"file_type_perl.svg",pm:"file_type_perl.svg",pod:"file_type_perl.svg",t:"file_type_perl.svg",PL:"file_type_perl.svg",psgi:"file_type_perl.svg",p6:"file_type_perl.svg",pl6:"file_type_perl.svg",pm6:"file_type_perl.svg",nqp:"file_type_perl.svg",pgsql:"file_type_pgsql.svg",php:"file_type_php.svg",php4:"file_type_php.svg",php5:"file_type_php.svg",phtml:"file_type_php.svg",ctp:"file_type_php.svg",pine:"file_type_pine.svg",txt:"file_type_text.svg",ddl:"file_type_plsql.svg",polymer:"file_type_polymer.svg",pony:"file_type_pony.svg",pcss:"file_type_postcss.svg",ps1:"file_type_powershell.svg",psm1:"file_type_powershell.svg",psd1:"file_type_powershell.svg",pssc:"file_type_powershell.svg",psrc:"file_type_powershell.svg",prisma:"file_type_light_prisma.svg",pro:"file_type_prolog.svg",rules:"file_type_prometheus.svg",pp:"file_type_puppet.svg",purs:"file_type_light_purescript.svg",arr:"file_type_pyret.svg",py:"file_type_python.svg",rpy:"file_type_python.svg",pyw:"file_type_python.svg",cpy:"file_type_python.svg",gyp:"file_type_python.svg",gypi:"file_type_python.svg",qvs:"file_type_qlikview.svg",qml:"file_type_qml.svg",qs:"file_type_qsharp.svg",r:"file_type_r.svg",rhistory:"file_type_r.svg",rprofile:"file_type_r.svg",rt:"file_type_r.svg",rkt:"file_type_racket.svg",cshtml:"file_type_razor.svg",raml:"file_type_raml.svg",re:"file_type_reason.svg",red:"file_type_red.svg",res:"file_type_rescript.svg",rst:"file_type_rest.svg",rex:"file_type_rexx.svg",tag:"file_type_riot.svg",rmd:"file_type_rmd.svg",robot:"file_type_robotframework.svg",rb:"file_type_ruby.svg",rbx:"file_type_ruby.svg",rjs:"file_type_ruby.svg",gemspec:"file_type_ruby.svg",rake:"file_type_ruby.svg",ru:"file_type_ruby.svg",rs:"file_type_light_rust.svg",san:"file_type_san.svg",sbt:"file_type_sbt.svg",scad:"file_type_openscad.svg",scala:"file_type_scala.svg",sce:"file_type_scilab.svg",scss:"file_type_scss.svg",shader:"file_type_light_shaderlab.svg",sh:"file_type_shell.svg",bash:"file_type_shell.svg",bashrc:"file_type_shell.svg",bash_aliases:"file_type_shell.svg",bash_profile:"file_type_shell.svg",bash_login:"file_type_shell.svg",ebuild:"file_type_shell.svg",install:"file_type_shell.svg",profile:"file_type_shell.svg",bash_logout:"file_type_shell.svg",zsh:"file_type_shell.svg",zshrc:"file_type_shell.svg",zprofile:"file_type_shell.svg",zlogin:"file_type_shell.svg",zlogout:"file_type_shell.svg",zshenv:"file_type_shell.svg","zsh-theme":"file_type_shell.svg",slang:"file_type_slang.svg",ice:"file_type_slice.svg",slim:"file_type_slim.svg",ss:"file_type_silverstripe.svg",tpl:"file_type_smarty.svg",snort:"file_type_snort.svg",sol:"file_type_light_solidity.svg",rq:"file_type_sparql.svg",sqf:"file_type_sqf.svg",sql:"file_type_sql.svg",dsql:"file_type_sql.svg",nut:"file_type_squirrel.svg",stan:"file_type_stan.svg",bazel:"file_type_bazel.svg",do:"file_type_stata.svg",stencil:"file_type_stencil.svg","st.css":"file_type_stylable.svg",styl:"file_type_light_stylus.svg",svelte:"file_type_svelte.svg",swagger:"file_type_swagger.svg",swift:"file_type_swift.svg",swig:"file_type_swig.svg",sv:"file_type_light_systemverilog.svg",tt:"file_type_t4tt.svg",teal:"file_type_teal.svg",tera:"file_type_tera.svg",tf:"file_type_terraform.svg",sty:"file_type_light_tex.svg",textile:"file_type_textile.svg",Tiltfile:"file_type_tiltfile.svg",toml:"file_type_light_toml.svg",ttcn3:"file_type_ttcn.svg",tuc:"file_type_tuc.svg",twig:"file_type_twig.svg",ts:"file_type_typescript.svg",tsx:"file_type_reactts.svg",vb:"file_type_vb.svg",brs:"file_type_vb.svg",vbs:"file_type_vb.svg",bas:"file_type_vb.svg",wsf:"file_type_script.svg",vm:"file_type_velocity.svg",v:"file_type_verilog.svg",vhdl:"file_type_vhdl.svg",vim:"file_type_vim.svg",vue:"file_type_vue.svg",wasm:"file_type_wasm.svg",wy:"file_type_wenyan.svg",wl:"file_type_wolfram.svg",wurst:"file_type_wurst.svg","xmake.lua":"file_type_xmake.svg",xml:"file_type_xml.svg",xsd:"file_type_xml.svg",ascx:"file_type_xml.svg",atom:"file_type_xml.svg",axml:"file_type_xml.svg",bpmn:"file_type_xml.svg",config:"file_type_xml.svg",cpt:"file_type_xml.svg",csl:"file_type_xml.svg",csproj:"file_type_xml.svg","csproj.user":"file_type_xml.svg",dita:"file_type_xml.svg",ditamap:"file_type_xml.svg",dtd:"file_type_xml.svg",dtml:"file_type_xml.svg",fsproj:"file_type_xml.svg",fxml:"file_type_xml.svg",iml:"file_type_xml.svg",isml:"file_type_xml.svg",jmx:"file_type_xml.svg",launch:"file_type_xml.svg",menu:"file_type_xml.svg",mxml:"file_type_xml.svg",nuspec:"file_type_xml.svg",opml:"file_type_xml.svg",owl:"file_type_xml.svg",proj:"file_type_xml.svg",props:"file_type_xml.svg",pt:"file_type_xml.svg",publishsettings:"file_type_xml.svg",pubxml:"file_type_xml.svg","pubxml.user":"file_type_xml.svg",rdf:"file_type_xml.svg",rng:"file_type_xml.svg",rss:"file_type_xml.svg",shproj:"file_type_xml.svg",storyboard:"file_type_xml.svg",svg:"file_type_xml.svg",targets:"file_type_xml.svg",tld:"file_type_xml.svg",tmx:"file_type_xml.svg",vbproj:"file_type_xml.svg","vbproj.user":"file_type_xml.svg",vcxproj:"file_type_xml.svg","vcxproj.filters":"file_type_xml.svg",wsdl:"file_type_xml.svg",wxi:"file_type_xml.svg",wxl:"file_type_xml.svg",wxs:"file_type_xml.svg",xaml:"file_type_xml.svg",xbl:"file_type_xml.svg",xib:"file_type_xml.svg",xlf:"file_type_xml.svg",xliff:"file_type_xml.svg",xpdl:"file_type_xml.svg",xul:"file_type_xml.svg",xoml:"file_type_xml.svg",xquery:"file_type_xquery.svg",xsl:"file_type_xsl.svg",xslt:"file_type_xsl.svg",bison:"file_type_yacc.svg",eyaml:"file_type_light_yaml.svg",eyml:"file_type_light_yaml.svg",yaml:"file_type_light_yaml.svg",yml:"file_type_light_yaml.svg",yang:"file_type_yang.svg",zig:"file_type_zig.svg"}),Jv}var Ez;function o9e(){return Ez||(Ez=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.getIconForOpenFolder=e.getIconForFile=e.getIconForFolder=e.DEFAULT_FILE=e.DEFAULT_ROOT_OPENED=e.DEFAULT_ROOT=e.DEFAULT_FOLDER_OPENED=e.DEFAULT_FOLDER=void 0;var r=r9e(),n=n9e(),i=i9e(),s=s9e(),a=a9e();e.DEFAULT_FOLDER="default_folder.svg",e.DEFAULT_FOLDER_OPENED="default_folder_opened.svg",e.DEFAULT_ROOT="default_root_folder.svg",e.DEFAULT_ROOT_OPENED="default_root_folder_opened.svg",e.DEFAULT_FILE="default_file.svg";function o(f){var m=s.FolderNamesToIcon[f];return m||e.DEFAULT_FOLDER}e.getIconForFolder=o;var l=void 0,u=void 0;function d(f){var m=i.FileNamesToIcon[f];if(m!==void 0)return m;var x=f.split(".");if(x.length>2){var v=x.pop(),_=x.pop(),w=n.FileExtensions2ToIcon[_+"."+v];if(w!==void 0)return w;if(!v)return e.DEFAULT_FILE;if(v===l)return u;var S=r.FileExtensions1ToIcon[v];if(S!==void 0)return l=v,u=S,S}else{var C=x.pop();if(!C)return e.DEFAULT_FILE;if(C===l)return u;var j=r.FileExtensions1ToIcon[C];if(j!==void 0)return l=C,u=j,j}var T=f.split(".").pop();if(T!==void 0){var E=a.LanguagesToIcon[T];if(E)return E}return e.DEFAULT_FILE}e.getIconForFile=d;function h(f){return o(f).split(".").shift()+"_opened.svg"}e.getIconForOpenFolder=h})(CT)),CT}var fd=o9e();const eie="https://cdn.jsdelivr.net/gh/vscode-icons/vscode-icons@12.9.0/icons/";function fa({filename:e,className:r}){const n=fd.getIconForFile(e)??fd.DEFAULT_FILE;return c.jsx("img",{src:`${eie}${n}`,alt:"",className:r,loading:"lazy",decoding:"async",draggable:!1})}function W4({name:e,open:r=!1,className:n}){const i=r?fd.getIconForOpenFolder(e)??fd.DEFAULT_FOLDER_OPENED:fd.getIconForFolder(e)??fd.DEFAULT_FOLDER;return c.jsx("img",{src:`${eie}${i}`,alt:"",className:n,loading:"lazy",decoding:"async",draggable:!1})}function tie(){const[e,r]=y.useState(()=>typeof document<"u"&&document.documentElement.classList.contains("dark")?"dark":"light");return y.useEffect(()=>{const n=document.documentElement,i=()=>r(n.classList.contains("dark")?"dark":"light");i();const s=new MutationObserver(i);return s.observe(n,{attributes:!0,attributeFilter:["class"]}),()=>s.disconnect()},[]),e}const rie=Object.freeze(JSON.parse('{"colors":{"actionBar.toggledBackground":"#383a49","activityBarBadge.background":"#007ACC","checkbox.border":"#6B6B6B","editor.background":"#1E1E1E","editor.foreground":"#D4D4D4","editor.inactiveSelectionBackground":"#3A3D41","editor.selectionHighlightBackground":"#ADD6FF26","editorIndentGuide.activeBackground1":"#707070","editorIndentGuide.background1":"#404040","input.placeholderForeground":"#A6A6A6","list.activeSelectionIconForeground":"#FFF","list.dropBackground":"#383B3D","menu.background":"#252526","menu.border":"#454545","menu.foreground":"#CCCCCC","menu.selectionBackground":"#0078d4","menu.separatorBackground":"#454545","ports.iconRunningProcessForeground":"#369432","sideBarSectionHeader.background":"#0000","sideBarSectionHeader.border":"#ccc3","sideBarTitle.foreground":"#BBBBBB","statusBarItem.remoteBackground":"#16825D","statusBarItem.remoteForeground":"#FFF","tab.lastPinnedBorder":"#ccc3","tab.selectedBackground":"#222222","tab.selectedForeground":"#ffffffa0","terminal.inactiveSelectionBackground":"#3A3D41","widget.border":"#303031"},"displayName":"Dark Plus","name":"dark-plus","semanticHighlighting":true,"semanticTokenColors":{"customLiteral":"#DCDCAA","newOperator":"#C586C0","numberLiteral":"#b5cea8","stringLiteral":"#ce9178"},"tokenColors":[{"scope":["meta.embedded","source.groovy.embedded","string meta.image.inline.markdown","variable.legacy.builtin.python"],"settings":{"foreground":"#D4D4D4"}},{"scope":"emphasis","settings":{"fontStyle":"italic"}},{"scope":"strong","settings":{"fontStyle":"bold"}},{"scope":"header","settings":{"foreground":"#000080"}},{"scope":"comment","settings":{"foreground":"#6A9955"}},{"scope":"constant.language","settings":{"foreground":"#569cd6"}},{"scope":["constant.numeric","variable.other.enummember","keyword.operator.plus.exponent","keyword.operator.minus.exponent"],"settings":{"foreground":"#b5cea8"}},{"scope":"constant.regexp","settings":{"foreground":"#646695"}},{"scope":"entity.name.tag","settings":{"foreground":"#569cd6"}},{"scope":["entity.name.tag.css","entity.name.tag.less"],"settings":{"foreground":"#d7ba7d"}},{"scope":"entity.other.attribute-name","settings":{"foreground":"#9cdcfe"}},{"scope":["entity.other.attribute-name.class.css","source.css entity.other.attribute-name.class","entity.other.attribute-name.id.css","entity.other.attribute-name.parent-selector.css","entity.other.attribute-name.parent.less","source.css entity.other.attribute-name.pseudo-class","entity.other.attribute-name.pseudo-element.css","source.css.less entity.other.attribute-name.id","entity.other.attribute-name.scss"],"settings":{"foreground":"#d7ba7d"}},{"scope":"invalid","settings":{"foreground":"#f44747"}},{"scope":"markup.underline","settings":{"fontStyle":"underline"}},{"scope":"markup.bold","settings":{"fontStyle":"bold","foreground":"#569cd6"}},{"scope":"markup.heading","settings":{"fontStyle":"bold","foreground":"#569cd6"}},{"scope":"markup.italic","settings":{"fontStyle":"italic"}},{"scope":"markup.strikethrough","settings":{"fontStyle":"strikethrough"}},{"scope":"markup.inserted","settings":{"foreground":"#b5cea8"}},{"scope":"markup.deleted","settings":{"foreground":"#ce9178"}},{"scope":"markup.changed","settings":{"foreground":"#569cd6"}},{"scope":"punctuation.definition.quote.begin.markdown","settings":{"foreground":"#6A9955"}},{"scope":"punctuation.definition.list.begin.markdown","settings":{"foreground":"#6796e6"}},{"scope":"markup.inline.raw","settings":{"foreground":"#ce9178"}},{"scope":"punctuation.definition.tag","settings":{"foreground":"#808080"}},{"scope":["meta.preprocessor","entity.name.function.preprocessor"],"settings":{"foreground":"#569cd6"}},{"scope":"meta.preprocessor.string","settings":{"foreground":"#ce9178"}},{"scope":"meta.preprocessor.numeric","settings":{"foreground":"#b5cea8"}},{"scope":"meta.structure.dictionary.key.python","settings":{"foreground":"#9cdcfe"}},{"scope":"meta.diff.header","settings":{"foreground":"#569cd6"}},{"scope":"storage","settings":{"foreground":"#569cd6"}},{"scope":"storage.type","settings":{"foreground":"#569cd6"}},{"scope":["storage.modifier","keyword.operator.noexcept"],"settings":{"foreground":"#569cd6"}},{"scope":["string","meta.embedded.assembly"],"settings":{"foreground":"#ce9178"}},{"scope":"string.tag","settings":{"foreground":"#ce9178"}},{"scope":"string.value","settings":{"foreground":"#ce9178"}},{"scope":"string.regexp","settings":{"foreground":"#d16969"}},{"scope":["punctuation.definition.template-expression.begin","punctuation.definition.template-expression.end","punctuation.section.embedded"],"settings":{"foreground":"#569cd6"}},{"scope":["meta.template.expression"],"settings":{"foreground":"#d4d4d4"}},{"scope":["support.type.vendored.property-name","support.type.property-name","source.css variable","source.coffee.embedded"],"settings":{"foreground":"#9cdcfe"}},{"scope":"keyword","settings":{"foreground":"#569cd6"}},{"scope":"keyword.control","settings":{"foreground":"#569cd6"}},{"scope":"keyword.operator","settings":{"foreground":"#d4d4d4"}},{"scope":["keyword.operator.new","keyword.operator.expression","keyword.operator.cast","keyword.operator.sizeof","keyword.operator.alignof","keyword.operator.typeid","keyword.operator.alignas","keyword.operator.instanceof","keyword.operator.logical.python","keyword.operator.wordlike"],"settings":{"foreground":"#569cd6"}},{"scope":"keyword.other.unit","settings":{"foreground":"#b5cea8"}},{"scope":["punctuation.section.embedded.begin.php","punctuation.section.embedded.end.php"],"settings":{"foreground":"#569cd6"}},{"scope":"support.function.git-rebase","settings":{"foreground":"#9cdcfe"}},{"scope":"constant.sha.git-rebase","settings":{"foreground":"#b5cea8"}},{"scope":["storage.modifier.import.java","variable.language.wildcard.java","storage.modifier.package.java"],"settings":{"foreground":"#d4d4d4"}},{"scope":"variable.language","settings":{"foreground":"#569cd6"}},{"scope":["entity.name.function","support.function","support.constant.handlebars","source.powershell variable.other.member","entity.name.operator.custom-literal"],"settings":{"foreground":"#DCDCAA"}},{"scope":["support.class","support.type","entity.name.type","entity.name.namespace","entity.other.attribute","entity.name.scope-resolution","entity.name.class","storage.type.numeric.go","storage.type.byte.go","storage.type.boolean.go","storage.type.string.go","storage.type.uintptr.go","storage.type.error.go","storage.type.rune.go","storage.type.cs","storage.type.generic.cs","storage.type.modifier.cs","storage.type.variable.cs","storage.type.annotation.java","storage.type.generic.java","storage.type.java","storage.type.object.array.java","storage.type.primitive.array.java","storage.type.primitive.java","storage.type.token.java","storage.type.groovy","storage.type.annotation.groovy","storage.type.parameters.groovy","storage.type.generic.groovy","storage.type.object.array.groovy","storage.type.primitive.array.groovy","storage.type.primitive.groovy"],"settings":{"foreground":"#4EC9B0"}},{"scope":["meta.type.cast.expr","meta.type.new.expr","support.constant.math","support.constant.dom","support.constant.json","entity.other.inherited-class","punctuation.separator.namespace.ruby"],"settings":{"foreground":"#4EC9B0"}},{"scope":["keyword.control","source.cpp keyword.operator.new","keyword.operator.delete","keyword.other.using","keyword.other.directive.using","keyword.other.operator","entity.name.operator"],"settings":{"foreground":"#C586C0"}},{"scope":["variable","meta.definition.variable.name","support.variable","entity.name.variable","constant.other.placeholder"],"settings":{"foreground":"#9CDCFE"}},{"scope":["variable.other.constant","variable.other.enummember"],"settings":{"foreground":"#4FC1FF"}},{"scope":["meta.object-literal.key"],"settings":{"foreground":"#9CDCFE"}},{"scope":["support.constant.property-value","support.constant.font-name","support.constant.media-type","support.constant.media","constant.other.color.rgb-value","constant.other.rgb-value","support.constant.color"],"settings":{"foreground":"#CE9178"}},{"scope":["punctuation.definition.group.regexp","punctuation.definition.group.assertion.regexp","punctuation.definition.character-class.regexp","punctuation.character.set.begin.regexp","punctuation.character.set.end.regexp","keyword.operator.negation.regexp","support.other.parenthesis.regexp"],"settings":{"foreground":"#CE9178"}},{"scope":["constant.character.character-class.regexp","constant.other.character-class.set.regexp","constant.other.character-class.regexp","constant.character.set.regexp"],"settings":{"foreground":"#d16969"}},{"scope":["keyword.operator.or.regexp","keyword.control.anchor.regexp"],"settings":{"foreground":"#DCDCAA"}},{"scope":"keyword.operator.quantifier.regexp","settings":{"foreground":"#d7ba7d"}},{"scope":["constant.character","constant.other.option"],"settings":{"foreground":"#569cd6"}},{"scope":"constant.character.escape","settings":{"foreground":"#d7ba7d"}},{"scope":"entity.name.label","settings":{"foreground":"#C8C8C8"}}],"type":"dark"}')),l9e=Object.freeze(Object.defineProperty({__proto__:null,default:rie},Symbol.toStringTag,{value:"Module"})),c9e=["editor theme","vscode theme","monaco theme","workbench colors"],jT=new Set,n2="dark-plus",Az=new WeakSet,Oz=rie,u9e={"editor.background":"#0B0C0E","editorGutter.background":"#0B0C0E","editorStickyScroll.background":"#0B0C0E","editorStickyScrollGutter.background":"#0B0C0E","minimap.background":"#0B0C0E","editor.lineHighlightBackground":"#151922","editorWidget.background":"#16181D","editorHoverWidget.background":"#16181D","editorWidget.border":"#363B44","editorHoverWidget.border":"#363B44","editorGroupHeader.tabsBackground":"#0B0C0E"},d9e={base:"vs-dark",inherit:!1,rules:[...iie(Oz.tokenColors??[]),...x9e()],colors:{...sie(Oz.colors??{}),...u9e}};function h9e(){return c9e}function nie(e){var r,n;(n=(r=e==null?void 0:e.editor)==null?void 0:r.defineTheme)==null||n.call(r,n2,d9e)}function f9e(e){!e||typeof e!="object"||Az.has(e)||(Az.add(e),Promise.all([it(()=>import("./index-BxjzCyEc.js"),[],import.meta.url),it(()=>import("./index-H22IRMip.js"),[],import.meta.url)]).then(async([{shikiToMonaco:r},{createHighlighter:n}])=>{var l,u,d;const i=e.languages,s=new Set(((l=i==null?void 0:i.getLanguages)==null?void 0:l.call(i).map(h=>h.id))??[]);for(const h of["javascript","typescript","json","css","html","markdown","python","yaml","diff"])s.has(h)||((u=i==null?void 0:i.register)==null||u.call(i,{id:h}),s.add(h));const a=await n({themes:["dark-plus"],langs:["javascript","typescript","jsx","tsx","json","css","html","markdown","python","yaml","diff"]});r(a,e),nie(e);const o=e.editor;typeof document<"u"&&document.documentElement.dataset.monacoTheme===n2&&((d=o==null?void 0:o.setTheme)==null||d.call(o,n2))}).catch(r=>{console.error("Failed to initialize Shiki Monaco Dark Plus theme:",r)}))}function p9e(e){var o;const r=m9e(e.text),n=sie(r.colors??{}),i=b9e(r,n),s=((o=r.name)==null?void 0:o.trim())||e.sourceLabel.trim()||"Imported Theme",a=`jait-vscode-${N9e(s)}-${e.id}`;return{id:e.id,name:s,sourceLabel:e.sourceLabel,importedAt:e.importedAt??new Date().toISOString(),colorMode:i,monacoThemeName:a,monacoThemeData:{base:i==="dark"?"vs-dark":"vs",inherit:!0,rules:iie(r.tokenColors??[]),colors:n},cssVariables:v9e(n),rawColors:n,hasInclude:typeof r.include=="string"&&r.include.trim().length>0}}function m9e(e){const r=j9e(C9e(e)),n=JSON.parse(r);if(!n||typeof n!="object"||Array.isArray(n))throw new Error("Theme file must contain a JSON object.");return n}function g9e(e,r){var n;!r||!((n=e==null?void 0:e.editor)!=null&&n.defineTheme)||e.editor.defineTheme(r.monacoThemeName,r.monacoThemeData)}function y9e(e){if(typeof document>"u")return;const r=document.documentElement;r.classList.toggle("dark",e.colorMode==="dark"),r.dataset.monacoTheme=e.monacoThemeName;for(const n of jT)r.style.removeProperty(n);if(jT.clear(),!!e.theme)for(const[n,i]of Object.entries(e.theme.cssVariables))r.style.setProperty(n,i),jT.add(n)}function iie(e){var n;const r=[];for(const i of e){const s=i.settings??{},a=_9e(i.scope);if(a.length===0)continue;const o=Rz(s.foreground),l=Rz(s.background),u=((n=s.fontStyle)==null?void 0:n.trim())||void 0;for(const d of a)r.push({token:d,foreground:o,background:l,fontStyle:u})}return r}function x9e(){return[{token:"",foreground:"D4D4D4",background:"1E1E1E"},{token:"invalid",foreground:"F44747"},{token:"emphasis",fontStyle:"italic"},{token:"strong",fontStyle:"bold"},{token:"comment",foreground:"6A9955"},{token:"constant",foreground:"569CD6"},{token:"number",foreground:"B5CEA8"},{token:"regexp",foreground:"D16969"},{token:"string",foreground:"CE9178"},{token:"string.key.json",foreground:"9CDCFE"},{token:"string.value.json",foreground:"CE9178"},{token:"keyword",foreground:"569CD6"},{token:"keyword.flow",foreground:"C586C0"},{token:"keyword.operator",foreground:"D4D4D4"},{token:"keyword.operator.new",foreground:"C586C0"},{token:"operator",foreground:"D4D4D4"},{token:"type",foreground:"4EC9B0"},{token:"type.identifier",foreground:"4EC9B0"},{token:"class",foreground:"4EC9B0"},{token:"interface",foreground:"4EC9B0"},{token:"enum",foreground:"4EC9B0"},{token:"namespace",foreground:"4EC9B0"},{token:"identifier",foreground:"9CDCFE"},{token:"identifier.function",foreground:"DCDCAA"},{token:"function",foreground:"DCDCAA"},{token:"member",foreground:"DCDCAA"},{token:"method",foreground:"DCDCAA"},{token:"property",foreground:"9CDCFE"},{token:"variable",foreground:"9CDCFE"},{token:"variable.parameter",foreground:"9CDCFE"},{token:"parameter",foreground:"9CDCFE"},{token:"delimiter",foreground:"D4D4D4"},{token:"delimiter.html",foreground:"808080"},{token:"delimiter.xml",foreground:"808080"},{token:"tag",foreground:"569CD6"},{token:"attribute.name",foreground:"9CDCFE"},{token:"attribute.value",foreground:"CE9178"}]}function v9e(e){const r={},n=ii(e,["editor.background","sideBar.background","panel.background"]),i=ii(e,["editor.foreground","foreground"]),s=ii(e,["sideBar.background","panel.background","editorWidget.background"]),a=ii(e,["panel.background","tab.inactiveBackground","editorGroupHeader.tabsBackground"]),o=ii(e,["list.hoverBackground","tab.activeBackground","editor.lineHighlightBackground"]),l=ii(e,["button.background","focusBorder","textLink.foreground"]),u=ii(e,["widget.border","panel.border","sideBar.border","contrastBorder"]);Ci(r,"--background",n),Ci(r,"--foreground",i),Ci(r,"--card",s),Ci(r,"--card-foreground",ii(e,["sideBar.foreground","foreground"])??i),Ci(r,"--popover",ii(e,["editorWidget.background","panel.background"])??s),Ci(r,"--popover-foreground",ii(e,["editorWidget.foreground","foreground"])??i),Ci(r,"--primary",l),Ci(r,"--primary-foreground",Mz(l)),Ci(r,"--secondary",ii(e,["tab.inactiveBackground","panel.background"])??a),Ci(r,"--secondary-foreground",ii(e,["tab.inactiveForeground","foreground"])??i),Ci(r,"--muted",a),Ci(r,"--muted-foreground",ii(e,["descriptionForeground","input.placeholderForeground","disabledForeground"])),Ci(r,"--accent",o),Ci(r,"--accent-foreground",ii(e,["list.activeSelectionForeground","foreground"])??i),Ci(r,"--destructive",ii(e,["inputValidation.errorBackground","errorForeground","list.errorForeground"])),Ci(r,"--destructive-foreground",Mz(ii(e,["inputValidation.errorBackground","errorForeground"]))),Ci(r,"--border",u),Ci(r,"--input",ii(e,["input.background","editorWidget.background","dropdown.background"])??u),Ci(r,"--ring",ii(e,["focusBorder","button.background","textLink.foreground"])??l),Ci(r,"--scrollbar-track",ii(e,["editor.background","sideBar.background","panel.background"])??n),Ci(r,"--scrollbar-thumb",ii(e,["scrollbarSlider.background","scrollbar.shadow"])),Ci(r,"--scrollbar-thumb-hover",ii(e,["scrollbarSlider.hoverBackground","scrollbarSlider.activeBackground","scrollbarSlider.background"])),Ci(r,"--toast-bg",ii(e,["notifications.background","editorWidget.background","panel.background"])??s,!0),Ci(r,"--toast-border",ii(e,["notifications.border","widget.border","panel.border"])??u,!0),Ci(r,"--toast-success-accent",ii(e,["testing.iconPassed","terminal.ansiGreen"])),Ci(r,"--toast-info-accent",ii(e,["textLink.foreground","focusBorder"])??l),Ci(r,"--toast-warning-accent",ii(e,["editorWarning.foreground","terminal.ansiYellow"])),Ci(r,"--toast-error-accent",ii(e,["editorError.foreground","terminal.ansiRed"]));const d=ii(e,["editorGroupHeader.tabsBackground","tab.inactiveBackground","sideBar.background"]);d&&(r["--tab-bg"]=d);const h=ii(e,["activityBarBadge.background","button.background","focusBorder"]),f=ii(e,["textLink.foreground","terminal.ansiBlue"]),m=ii(e,["editorWarning.foreground","terminal.ansiYellow"]),x=ii(e,["terminal.ansiMagenta","badge.background"]);return h&&(r["--ctx-system"]=h),f&&(r["--ctx-history"]=f),m&&(r["--ctx-tool-results"]=m),x&&(r["--ctx-tools"]=x),r}function Ci(e,r,n,i=!1){if(!n)return;const s=w9e(n,i);s&&(e[r]=s)}function Mz(e){const r=R9(e);return r?(.2126*r.r+.7152*r.g+.0722*r.b)/255>.55?"0 0% 7%":"0 0% 100%":null}function b9e(e,r){if(e.type==="light"||e.type==="hc-light")return"light";if(e.type==="dark"||e.type==="hc-dark")return"dark";const n=R9(r["editor.background"]??r["sideBar.background"]??"");return n&&(.2126*n.r+.7152*n.g+.0722*n.b)/255>.55?"light":"dark"}function sie(e){const r={};for(const[n,i]of Object.entries(e))typeof i=="string"&&i.trim()&&(r[n]=i.trim());return r}function _9e(e){return Array.isArray(e)?e.flatMap(r=>r.split(",")).map(r=>r.trim()).filter(Boolean):typeof e!="string"?[]:e.split(",").map(r=>r.trim()).filter(Boolean)}function Rz(e){if(!e)return;const r=e.trim();if(r.startsWith("#"))return aie(r).slice(1)}function ii(e,r){for(const n of r){const i=e[n];if(typeof i=="string"&&i.trim())return i.trim()}return null}function w9e(e,r=!1){const n=R9(e);if(!n)return null;const i=n.r/255,s=n.g/255,a=n.b/255,o=Math.max(i,s,a),l=Math.min(i,s,a),u=o-l,d=(o+l)/2;let h=0;u!==0&&(o===i?h=(s-a)/u%6:o===s?h=(a-i)/u+2:h=(i-s)/u+4,h*=60),h<0&&(h+=360);const f=u===0?0:u/(1-Math.abs(2*d-1)),m=`${Math.round(h)} ${Math.round(f*100)}% ${Math.round(d*100)}%`;return r&&n.a<1?`${m} / ${Number(n.a.toFixed(3))}`:m}function R9(e){if(!e)return null;const r=e.trim();if(!r)return null;if(r.startsWith("#"))return S9e(r);const n=r.match(/^rgba?\(([^)]+)\)$/i);if(!n)return null;const i=n[1].split(",").map(u=>u.trim());if(i.length<3)return null;const s=NT(i[0]),a=NT(i[1]),o=NT(i[2]),l=i[3]==null?1:k9e(i[3]);return s==null||a==null||o==null||l==null?null:{r:s,g:a,b:o,a:l}}function S9e(e){const r=aie(e).slice(1);return r.length===6?{r:Number.parseInt(r.slice(0,2),16),g:Number.parseInt(r.slice(2,4),16),b:Number.parseInt(r.slice(4,6),16),a:1}:r.length===8?{r:Number.parseInt(r.slice(0,2),16),g:Number.parseInt(r.slice(2,4),16),b:Number.parseInt(r.slice(4,6),16),a:Number.parseInt(r.slice(6,8),16)/255}:null}function NT(e){if(e.endsWith("%")){const n=Number.parseFloat(e.slice(0,-1));return Number.isFinite(n)?Pz(Math.round(n/100*255)):null}const r=Number.parseFloat(e);return Number.isFinite(r)?Pz(Math.round(r)):null}function k9e(e){const r=Number.parseFloat(e);return Number.isFinite(r)?Math.max(0,Math.min(1,r)):null}function Pz(e){return Math.max(0,Math.min(255,e))}function aie(e){const r=e.trim().slice(1);return r.length===3||r.length===4?`#${r.split("").map(n=>`${n}${n}`).join("").toLowerCase()}`:`#${r.toLowerCase()}`}function C9e(e){let r="",n=!1,i=!1,s=!1,a=!1;for(let o=0;o<e.length;o+=1){const l=e[o],u=e[o+1];if(i){l===`
1126
+ */let oO=!1;const QRe=.1,e9e=20;function kT(e){return Math.min(e9e,Math.max(QRe,e))}function wz(e,r,n,i){if(e===r)return n;const s=r/e;return{x:i.x-(i.x-n.x)*s,y:i.y-(i.y-n.y)*s}}function Sz(e){aO.initialize({startOnLoad:!1,theme:e==="dark"?"dark":"default",securityLevel:"strict",fontFamily:"ui-sans-serif, system-ui, -apple-system, sans-serif",flowchart:{htmlLabels:!0,curve:"basis"},themeVariables:e==="dark"?{primaryColor:"#1e293b",primaryTextColor:"#e2e8f0",primaryBorderColor:"#475569",lineColor:"#64748b",secondaryColor:"#334155",tertiaryColor:"#1e293b",background:"#0f172a",mainBkg:"#1e293b",nodeBorder:"#475569",clusterBkg:"#1e293b",clusterBorder:"#334155",titleColor:"#e2e8f0",edgeLabelBackground:"#1e293b"}:{}}),oO=!0}function lO({diagram:e,isGenerating:r,onRegenerate:n,onGenerate:i,theme:s="dark",onRenderResult:a}){const o=y.useRef(null),l=y.useRef(null),[u,d]=y.useState(null),[h,f]=y.useState(!1),[m,x]=y.useState(1),[v,_]=y.useState({x:0,y:0}),w=y.useRef(0),S=y.useRef(new Map),C=y.useRef(null),j=y.useRef(null),T=y.useCallback(async D=>{if(!o.current)return;const O=++w.current;try{if(oO||Sz(s),!await aO.parse(D)||O!==w.current)return;const{svg:R}=await aO.render(`arch-${O}`,D);if(O!==w.current)return;o.current.innerHTML=R;const P=o.current.querySelector("svg"),H=l.current;if(P&&H){const G=H.clientWidth,U=H.clientHeight,V=P.width.baseVal.value||P.getBoundingClientRect().width,J=P.height.baseVal.value||P.getBoundingClientRect().height;if(V>0&&J>0&&G>0&&U>0){const ee=Math.min((G-32)/V,(U-32)/J);x(kT(ee))}else x(1)}else x(1);_({x:0,y:0}),d(null),a==null||a({ok:!0})}catch(I){if(O!==w.current)return;const R=I instanceof Error?I.message:"Failed to render diagram";d(R),a==null||a({ok:!1,error:R})}},[a,s]);y.useEffect(()=>{Sz(s),oO=!0,e&&T(e)},[s,e,T]),y.useEffect(()=>{e&&T(e)},[e,T]);const E=y.useCallback(()=>{e&&navigator.clipboard.writeText(e).then(()=>{f(!0),setTimeout(()=>f(!1),2e3)})},[e]),N=y.useCallback(()=>{if(!o.current)return;const D=o.current.querySelector("svg");if(!D)return;const O=new XMLSerializer().serializeToString(D),I=new Blob([O],{type:"image/svg+xml"}),R=URL.createObjectURL(I),P=document.createElement("a");P.href=R,P.download="architecture.svg",P.click(),URL.revokeObjectURL(R)},[]),M=y.useCallback((D,O)=>{var R;const I=(R=l.current)==null?void 0:R.getBoundingClientRect();return I?{x:D-I.left-I.width/2,y:O-I.top-I.height/2}:null},[]),$=y.useCallback((D,O)=>{x(I=>{const R=kT(D);return R===I?I:(_(P=>O?wz(I,R,P,O):P),R)})},[]),q=y.useCallback(D=>{const O=M(D.clientX,D.clientY);if(!O)return;D.preventDefault();const I=D.deltaY<0?1.1:.9;$(m*I,O)},[M,$,m]),F=y.useCallback(D=>{const O={x:D.clientX,y:D.clientY};if(S.current.set(D.pointerId,O),D.currentTarget.setPointerCapture(D.pointerId),S.current.size===1){C.current={pointerId:D.pointerId,x:D.clientX,y:D.clientY},j.current=null;return}if(S.current.size===2){const[I,R]=[...S.current.values()],P=Math.hypot(R.x-I.x,R.y-I.y);j.current={distance:P,scale:m,pan:v},C.current=null}},[v,m]),B=y.useCallback(D=>{var I;if(!S.current.has(D.pointerId))return;const O=S.current.get(D.pointerId);if(S.current.set(D.pointerId,{x:D.clientX,y:D.clientY}),S.current.size===1&&((I=C.current)==null?void 0:I.pointerId)===D.pointerId){const R=D.clientX-O.x,P=D.clientY-O.y;_(H=>({x:H.x+R,y:H.y+P})),C.current={pointerId:D.pointerId,x:D.clientX,y:D.clientY};return}if(S.current.size===2&&j.current){const[R,P]=[...S.current.values()],H={x:(R.x+P.x)/2,y:(R.y+P.y)/2},G=M(H.x,H.y),U=Math.hypot(P.x-R.x,P.y-R.y);if(!G||j.current.distance<=0)return;const V=kT(j.current.scale*(U/j.current.distance)),J=wz(j.current.scale,V,j.current.pan,G);x(V),_(J)}},[M]),W=y.useCallback(D=>{var O;if(S.current.delete(D.pointerId),((O=C.current)==null?void 0:O.pointerId)===D.pointerId&&(C.current=null),S.current.size<2&&(j.current=null),S.current.size===1){const[I,R]=[...S.current.entries()][0]??[];typeof I=="number"&&R&&(C.current={pointerId:I,x:R.x,y:R.y})}},[]);return!e&&!r?c.jsxs("div",{className:"h-full flex flex-col items-center justify-center text-muted-foreground gap-4 px-8",children:[c.jsxs("div",{className:"flex flex-col items-center gap-2 text-center",children:[c.jsx("h3",{className:"text-sm font-medium text-foreground",children:"Software Architecture"}),c.jsx("p",{className:"text-xs max-w-sm",children:"Generate a visual architecture diagram of your project. The AI will analyze your project structure, dependencies, and code organization to create a Mermaid diagram."})]}),i&&c.jsxs("button",{onClick:i,className:"flex items-center gap-2 px-4 py-2 text-sm rounded-lg border bg-background hover:bg-accent hover:text-accent-foreground transition-colors",children:[c.jsx(D_,{className:"h-3.5 w-3.5"}),"Generate Architecture Diagram"]})]}):c.jsxs("div",{className:"h-full flex flex-col",children:[c.jsxs("div",{className:"flex items-center gap-1 px-2 h-8 border-b bg-muted/20 shrink-0",children:[c.jsx("span",{className:"text-xs font-medium text-muted-foreground mr-auto",children:"Architecture"}),c.jsx("button",{onClick:()=>$(m-.25),className:"p-1 rounded hover:bg-muted transition-colors",title:"Zoom out",children:c.jsx(vve,{className:"h-3 w-3"})}),c.jsxs("span",{className:"text-2xs text-muted-foreground min-w-[3ch] text-center",children:[Math.round(m*100),"%"]}),c.jsx("button",{onClick:()=>$(m+.25),className:"p-1 rounded hover:bg-muted transition-colors",title:"Zoom in",children:c.jsx(yve,{className:"h-3 w-3"})}),c.jsx("button",{onClick:()=>{x(1),_({x:0,y:0})},className:"p-1 rounded hover:bg-muted transition-colors",title:"Reset zoom",children:c.jsx(eR,{className:"h-3 w-3"})}),c.jsx("div",{className:"w-px h-4 bg-border mx-1"}),e&&c.jsxs(c.Fragment,{children:[c.jsx("button",{onClick:E,className:"p-1 rounded hover:bg-muted transition-colors",title:"Copy Mermaid source",children:h?c.jsx(ls,{className:"h-3 w-3 text-green-500"}):c.jsx(Tl,{className:"h-3 w-3"})}),c.jsx("button",{onClick:N,className:"p-1 rounded hover:bg-muted transition-colors",title:"Download SVG",children:c.jsx(Rf,{className:"h-3 w-3"})})]}),n&&c.jsx("button",{onClick:n,className:"p-1 rounded hover:bg-muted transition-colors",title:"Regenerate diagram",disabled:r,children:c.jsx(js,{className:`h-3 w-3 ${r?"animate-spin":""}`})})]}),c.jsxs("div",{ref:l,className:"flex-1 overflow-hidden relative touch-none",onWheel:q,onPointerDown:F,onPointerMove:B,onPointerUp:W,onPointerCancel:W,onPointerLeave:W,style:{cursor:S.current.size>0?"grabbing":"grab"},children:[r&&!e&&c.jsxs("div",{className:"h-full flex flex-col items-center justify-center text-muted-foreground gap-3",children:[c.jsx(Ot,{className:"h-6 w-6 animate-spin"}),c.jsx("span",{className:"text-xs",children:"Analyzing project architecture…"})]}),r&&e&&c.jsxs("div",{className:"absolute top-2 right-2 z-10 flex items-center gap-1.5 px-2 py-1 rounded bg-background/80 border text-xs text-muted-foreground",children:[c.jsx(Ot,{className:"h-3 w-3 animate-spin"}),"Regenerating…"]}),u&&c.jsxs("div",{className:"p-4 text-xs text-destructive bg-destructive/10 rounded m-2",children:[c.jsx("p",{className:"font-medium mb-1",children:"Render error"}),c.jsx("pre",{className:"whitespace-pre-wrap",children:u}),e&&c.jsxs("details",{className:"mt-2",children:[c.jsx("summary",{className:"cursor-pointer text-muted-foreground hover:text-foreground",children:"View source"}),c.jsx("pre",{className:"mt-1 p-2 bg-muted rounded text-2xs whitespace-pre-wrap",children:e})]})]}),c.jsx("div",{className:"absolute inset-0 flex items-center justify-center p-4",style:{transform:`translate(${v.x}px, ${v.y}px) scale(${m})`,transformOrigin:"center center"},children:c.jsx("div",{ref:o,className:"flex items-center justify-center"})})]})]})}const vc=y.forwardRef(({className:e,children:r,...n},i)=>c.jsx("div",{ref:i,className:Ce("relative overflow-auto",e),...n,children:r}));vc.displayName="ScrollArea";const t9e=y.forwardRef(({className:e,orientation:r="vertical",...n},i)=>c.jsx("div",{ref:i,"data-orientation":r,className:Ce("hidden",e),...n}));t9e.displayName="ScrollBar";const Th=y.forwardRef(({className:e,...r},n)=>c.jsx("textarea",{className:Ce("flex min-h-[72px] w-full rounded-lg border border-input bg-background/90 px-3 py-2 text-sm shadow-sm placeholder:text-muted-foreground/90 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring/60 focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50",e),ref:n,...r}));Th.displayName="Textarea";var CT={},Gv={},kz;function r9e(){return kz||(kz=1,Object.defineProperty(Gv,"__esModule",{value:!0}),Gv.FileExtensions1ToIcon=void 0,Gv.FileExtensions1ToIcon={accdb:"file_type_access.svg",accdt:"file_type_access.svg",mdb:"file_type_access.svg",accda:"file_type_access.svg",accdc:"file_type_access.svg",accde:"file_type_access.svg",accdp:"file_type_access.svg",accdr:"file_type_access.svg",accdu:"file_type_access.svg",ade:"file_type_access.svg",adp:"file_type_access.svg",laccdb:"file_type_access.svg",ldb:"file_type_access.svg",mam:"file_type_access.svg",maq:"file_type_access.svg",mdw:"file_type_access.svg",afdesign:"file_type_affinitydesigner.svg",affinitydesigner:"file_type_affinitydesigner.svg",afphoto:"file_type_affinityphoto.svg",affinityphoto:"file_type_affinityphoto.svg",afpub:"file_type_affinitypublisher.svg",affinitypublisher:"file_type_affinitypublisher.svg",ai:"file_type_ai.svg",ino:"file_type_arduino.svg",pde:"file_type_arduino.svg",aspx:"file_type_aspx.svg",ascx:"file_type_aspx.svg",astro:"file_type_astro.svg",aac:"file_type_audio.svg",act:"file_type_audio.svg",aiff:"file_type_audio.svg",amr:"file_type_audio.svg",ape:"file_type_audio.svg",au:"file_type_audio.svg",dct:"file_type_audio.svg",dss:"file_type_audio.svg",dvf:"file_type_audio.svg",flac:"file_type_audio.svg",gsm:"file_type_audio.svg",iklax:"file_type_audio.svg",ivs:"file_type_audio.svg",m4a:"file_type_audio.svg",m4b:"file_type_audio.svg",m4p:"file_type_audio.svg",mmf:"file_type_audio.svg",mogg:"file_type_audio.svg",mp3:"file_type_audio.svg",mpc:"file_type_audio.svg",msv:"file_type_audio.svg",oga:"file_type_audio.svg",ogg:"file_type_audio.svg",opus:"file_type_audio.svg",ra:"file_type_audio.svg",raw:"file_type_audio.svg",tta:"file_type_audio.svg",vox:"file_type_audio.svg",wav:"file_type_audio.svg",wma:"file_type_audio.svg",avif:"file_type_avif.svg",awk:"file_type_awk.svg",a:"file_type_binary.svg",app:"file_type_binary.svg",bin:"file_type_binary.svg",cmo:"file_type_binary.svg",cmx:"file_type_binary.svg",cma:"file_type_binary.svg",cmxa:"file_type_binary.svg",cmi:"file_type_binary.svg",dll:"file_type_binary.svg",exe:"file_type_binary.svg",hl:"file_type_binary.svg",ilk:"file_type_binary.svg",lib:"file_type_binary.svg",n:"file_type_binary.svg",ndll:"file_type_binary.svg",o:"file_type_binary.svg",obj:"file_type_binary.svg",pyc:"file_type_binary.svg",pyd:"file_type_binary.svg",pyo:"file_type_binary.svg",pdb:"file_type_binary.svg",scpt:"file_type_binary.svg",scptd:"file_type_binary.svg",so:"file_type_binary.svg",bb:"file_type_blitzbasic.svg",gemfile:"file_type_bundler.svg",cake:"file_type_cake.svg",csr:"file_type_cert.svg",crt:"file_type_cert.svg",cer:"file_type_cert.svg",der:"file_type_cert.svg",pfx:"file_type_cert.svg",p12:"file_type_cert.svg",p7b:"file_type_cert.svg",p7r:"file_type_cert.svg",src:"file_type_cert.svg",crl:"file_type_cert.svg",sst:"file_type_cert.svg",stl:"file_type_cert.svg",lucee:"file_type_cf.svg",h:"file_type_cheader.svg",class:"file_type_class.svg",cjm:"file_type_clojure.svg",cljc:"file_type_clojure.svg",cljs:"file_type_clojurescript.svg",kit:"file_type_codekit.svg",plist:"file_type_light_config.svg",hpp:"file_type_cppheader.svg",hh:"file_type_cppheader.svg",hxx:"file_type_cppheader.svg","h++":"file_type_cppheader.svg",csx:"file_type_csharp.svg",csproj:"file_type_csproj.svg",db:"file_type_light_db.svg",djt:"file_type_django.svg",eco:"file_type_light_docpad.svg",drawio:"file_type_drawio.svg",dio:"file_type_drawio.svg",ejs:"file_type_ejs.svg",el:"file_type_emacs.svg",elc:"file_type_emacs.svg",ensime:"file_type_ensime.svg",eps:"file_type_eps.svg",xls:"file_type_excel.svg",xlsx:"file_type_excel.svg",xlsm:"file_type_excel.svg",ods:"file_type_excel.svg",fods:"file_type_excel.svg",xlsb:"file_type_excel.svg",fbx:"file_type_fbx.svg",fla:"file_type_light_fla.svg",swf:"file_type_flash.svg",swc:"file_type_flash.svg",woff:"file_type_light_font.svg",woff2:"file_type_light_font.svg",ttf:"file_type_light_font.svg",otf:"file_type_light_font.svg",eot:"file_type_light_font.svg",pfa:"file_type_light_font.svg",pfb:"file_type_light_font.svg",sfd:"file_type_light_font.svg",fsproj:"file_type_fsproj.svg",gmx:"file_type_gamemaker.svg",yy:"file_type_light_gamemaker2.svg",yyp:"file_type_light_gamemaker2.svg",gradle:"file_type_light_gradle.svg",hxproj:"file_type_haxedevelop.svg",idr:"file_type_idris.svg",lidr:"file_type_idris.svg",ibc:"file_type_idrisbin.svg",ipkg:"file_type_idrispkg.svg",jpeg:"file_type_image.svg",jpg:"file_type_image.svg",gif:"file_type_image.svg",png:"file_type_image.svg",bmp:"file_type_image.svg",tiff:"file_type_image.svg",ico:"file_type_image.svg",imba:"file_type_imba.svg",imba2:"file_type_imba.svg",inc:"file_type_inc.svg",include:"file_type_inc.svg",infopathxml:"file_type_infopath.svg",xsn:"file_type_infopath.svg",xsf:"file_type_infopath.svg",xtp2:"file_type_infopath.svg",jar:"file_type_jar.svg",jbuilder:"file_type_jbuilder.svg",json5:"file_type_light_json5.svg",jsonld:"file_type_light_jsonld.svg","json-ld":"file_type_light_jsonld.svg",jsp:"file_type_jsp.svg",jss:"file_type_jss.svg",ipynb:"file_type_jupyter.svg",key:"file_type_key.svg",pem:"file_type_key.svg",master:"file_type_layout.svg",enc:"file_type_license.svg",hxp:"file_type_lime.svg",liquid:"file_type_liquid.svg",ls:"file_type_livescript.svg",lnk:"file_type_lnk.svg",log:"file_type_log.svg",tlg:"file_type_log.svg",crec:"file_type_lync.svg",ocrec:"file_type_lync.svg",makefile:"file_type_makefile.svg",map:"file_type_map.svg",mdown:"file_type_markdown.svg",markdown:"file_type_markdown.svg",fig:"file_type_matlab.svg",mex:"file_type_matlab.svg",mexn:"file_type_matlab.svg",mexrs6:"file_type_matlab.svg",mn:"file_type_matlab.svg",mum:"file_type_matlab.svg",mx:"file_type_matlab.svg",mx3:"file_type_matlab.svg",rwd:"file_type_matlab.svg",slx:"file_type_matlab.svg",slddc:"file_type_matlab.svg",smv:"file_type_matlab.svg",xvc:"file_type_matlab.svg",mustache:"file_type_light_mustache.svg",mst:"file_type_light_mustache.svg",njsproj:"file_type_njsproj.svg",nupkg:"file_type_nuget.svg",snupkg:"file_type_nuget.svg",nuspec:"file_type_nuget.svg",psmdcp:"file_type_nuget.svg",npy:"file_type_numpy.svg",npz:"file_type_numpy.svg",nunj:"file_type_nunjucks.svg",njs:"file_type_nunjucks.svg",one:"file_type_onenote.svg",onepkg:"file_type_onenote.svg",onetoc:"file_type_onenote.svg",onetoc2:"file_type_onenote.svg",sig:"file_type_onenote.svg",cl:"file_type_opencl.svg",opencl:"file_type_opencl.svg",org:"file_type_org.svg",pst:"file_type_outlook.svg",bcmx:"file_type_outlook.svg",otm:"file_type_outlook.svg",msg:"file_type_outlook.svg",oft:"file_type_outlook.svg",ovpn:"file_type_ovpn.svg",pkg:"file_type_package.svg",patch:"file_type_patch.svg",pcd:"file_type_light_pcl.svg",pdf:"file_type_pdf.svg",psd:"file_type_photoshop.svg",php1:"file_type_php.svg",php2:"file_type_php.svg",php3:"file_type_php.svg",php4:"file_type_php.svg",php5:"file_type_php.svg",php6:"file_type_php.svg",phps:"file_type_php.svg",phpsa:"file_type_php.svg",phpt:"file_type_php.svg",phtml:"file_type_php.svg",phar:"file_type_php.svg",pipeline:"file_type_pipeline.svg",pu:"file_type_plantuml.svg",plantuml:"file_type_plantuml.svg",iuml:"file_type_plantuml.svg",puml:"file_type_plantuml.svg",pck:"file_type_plsql_package.svg",pkb:"file_type_plsql_package_body.svg",pkh:"file_type_plsql_package_header.svg",pks:"file_type_plsql_package_spec.svg",po:"file_type_poedit.svg",mo:"file_type_poedit.svg",pot:"file_type_powerpoint.svg",potx:"file_type_powerpoint.svg",potm:"file_type_powerpoint.svg",pps:"file_type_powerpoint.svg",ppsx:"file_type_powerpoint.svg",ppsm:"file_type_powerpoint.svg",ppt:"file_type_powerpoint.svg",pptx:"file_type_powerpoint.svg",pptm:"file_type_powerpoint.svg",pa:"file_type_powerpoint.svg",ppa:"file_type_powerpoint.svg",ppam:"file_type_powerpoint.svg",sldm:"file_type_powerpoint.svg",sldx:"file_type_powerpoint.svg",psd1:"file_type_powershell_psd.svg",psm1:"file_type_powershell_psm.svg",pro:"file_type_prolog.svg",P:"file_type_prolog.svg",pub:"file_type_publisher.svg",puz:"file_type_publisher.svg",q:"file_type_q.svg",qbs:"file_type_qbs.svg",qvd:"file_type_qlikview.svg",qvw:"file_type_qlikview.svg",rake:"file_type_rake.svg",rt:"file_type_reacttemplate.svg",reg:"file_type_registry.svg",rego:"file_type_rego.svg",rproj:"file_type_rproj.svg",sls:"file_type_saltstack.svg",sass:"file_type_sass.svg",scssm:"file_type_scss.svg",unity:"file_type_light_shaderlab.svg",fish:"file_type_shell.svg",sketch:"file_type_sketch.svg",eskip:"file_type_skipper.svg",sln:"file_type_sln.svg",spe:"file_type_spacengine.svg",sqlite:"file_type_sqlite.svg",sqlite3:"file_type_sqlite.svg",db3:"file_type_sqlite.svg",sss:"file_type_sss.svg",dta:"file_type_stata.svg",storyboard:"file_type_storyboard.svg",svg:"file_type_svg.svg",tcl:"file_type_tcl.svg",exp:"file_type_tcl.svg",tfstate:"file_type_terraform.svg",tst:"file_type_test.svg",texi:"file_type_light_tex.svg",tikz:"file_type_light_tex.svg",csv:"file_type_text.svg",tsv:"file_type_text.svg",todo:"file_type_light_todo.svg",tt2:"file_type_tt.svg",vala:"file_type_vala.svg",vapi:"file_type_vapi.svg",vash:"file_type_light_vash.svg",vbhtml:"file_type_vbhtml.svg",vbproj:"file_type_vbproj.svg",vcxproj:"file_type_vcxproj.svg","3g2":"file_type_video.svg","3gp":"file_type_video.svg",asf:"file_type_video.svg",amv:"file_type_video.svg",avi:"file_type_video.svg",divx:"file_type_video.svg",qt:"file_type_video.svg",f4a:"file_type_video.svg",f4b:"file_type_video.svg",f4p:"file_type_video.svg",f4v:"file_type_video.svg",flv:"file_type_video.svg",m2v:"file_type_video.svg",m4v:"file_type_video.svg",mkv:"file_type_video.svg",mk3d:"file_type_video.svg",mov:"file_type_video.svg",mp2:"file_type_video.svg",mp4:"file_type_video.svg",mpe:"file_type_video.svg",mpeg:"file_type_video.svg",mpeg2:"file_type_video.svg",mpg:"file_type_video.svg",mpv:"file_type_video.svg",nsv:"file_type_video.svg",ogv:"file_type_video.svg",rm:"file_type_video.svg",rmvb:"file_type_video.svg",svi:"file_type_video.svg",vob:"file_type_video.svg",webm:"file_type_video.svg",wmv:"file_type_video.svg",vsix:"file_type_light_vsix.svg",vsixmanifest:"file_type_light_vsixmanifest.svg",wasm:"file_type_wasm.svg",webp:"file_type_webp.svg",doc:"file_type_word.svg",docx:"file_type_word.svg",docm:"file_type_word.svg",dot:"file_type_word.svg",dotx:"file_type_word.svg",dotm:"file_type_word.svg",wll:"file_type_word.svg",wxml:"file_type_wxml.svg",wxss:"file_type_wxss.svg",xcodeproj:"file_type_xcode.svg",xfl:"file_type_light_xfl.svg",xib:"file_type_xib.svg",xliff:"file_type_xliff.svg",xlf:"file_type_xliff.svg",pex:"file_type_xml.svg",tmlanguage:"file_type_xml.svg",zip:"file_type_zip.svg",rar:"file_type_zip.svg","7z":"file_type_zip.svg",tar:"file_type_zip.svg",tgz:"file_type_zip.svg",bz:"file_type_zip.svg",gz:"file_type_zip.svg",bzip2:"file_type_zip.svg",xz:"file_type_zip.svg",bz2:"file_type_zip.svg",zipx:"file_type_zip.svg"}),Gv}var Kv={},Cz;function n9e(){return Cz||(Cz=1,Object.defineProperty(Kv,"__esModule",{value:!0}),Kv.FileExtensions2ToIcon=void 0,Kv.FileExtensions2ToIcon={"gemfile.lock":"file_type_bundler.svg","css.map":"file_type_cssmap.svg","drawio.png":"file_type_drawio.svg","drawio.svg":"file_type_drawio.svg","js.flow":"file_type_flow.svg","ejs.t":"file_type_hygen.svg","js.snap":"file_type_jest_snapshot.svg","jsx.snap":"file_type_jest_snapshot.svg","ts.snap":"file_type_jest_snapshot.svg","tsx.snap":"file_type_jest_snapshot.svg","js.map":"file_type_light_jsmap.svg","layout.html":"file_type_layout.svg","layout.htm":"file_type_layout.svg","marko.js":"file_type_markojs.svg","format.ps1xml":"file_type_powershell_format.svg","types.ps1xml":"file_type_powershell_types.svg","story.js":"file_type_storybook.svg","story.jsx":"file_type_storybook.svg","story.ts":"file_type_storybook.svg","story.tsx":"file_type_storybook.svg","story.mdx":"file_type_storybook.svg","stories.js":"file_type_storybook.svg","stories.jsx":"file_type_storybook.svg","stories.ts":"file_type_storybook.svg","stories.tsx":"file_type_storybook.svg","stories.mdx":"file_type_storybook.svg","test.js":"file_type_light_testjs.svg","test.jsx":"file_type_light_testjs.svg","test.mjs":"file_type_light_testjs.svg","spec.js":"file_type_light_testjs.svg","spec.jsx":"file_type_light_testjs.svg","spec.mjs":"file_type_light_testjs.svg","test.ts":"file_type_testts.svg","test.tsx":"file_type_testts.svg","spec.ts":"file_type_testts.svg","spec.tsx":"file_type_testts.svg","e2e-test.ts":"file_type_testts.svg","e2e-test.tsx":"file_type_testts.svg","e2e-spec.ts":"file_type_testts.svg","e2e-spec.tsx":"file_type_testts.svg","d.ts":"file_type_typescriptdef.svg"}),Kv}var Yv={},jz;function i9e(){return jz||(jz=1,Object.defineProperty(Yv,"__esModule",{value:!0}),Yv.FileNamesToIcon=void 0,Yv.FileNamesToIcon={".angular-cli.json":"file_type_angular.svg","angular-cli.json":"file_type_angular.svg","angular.json":"file_type_angular.svg",".angular.json":"file_type_angular.svg","api-extractor.json":"file_type_api_extractor.svg","api-extractor-base.json":"file_type_api_extractor.svg",".appsemblerc.yaml":"file_type_appsemble.svg","app-definition.yaml":"file_type_appsemble.svg","appveyor.yml":"file_type_appveyor.svg",".appveyor.yml":"file_type_appveyor.svg","astro.config.js":"file_type_astroconfig.svg","astro.config.cjs":"file_type_astroconfig.svg","astro.config.mjs":"file_type_astroconfig.svg","aurelia.json":"file_type_aurelia.svg","azure-pipelines.yml":"file_type_azurepipelines.svg",".vsts-ci.yml":"file_type_azurepipelines.svg",".babelrc":"file_type_light_babel.svg",".babelignore":"file_type_light_babel.svg",".babelrc.js":"file_type_light_babel.svg",".babelrc.cjs":"file_type_light_babel.svg",".babelrc.mjs":"file_type_light_babel.svg",".babelrc.json":"file_type_light_babel.svg","babel.config.js":"file_type_light_babel.svg","babel.config.cjs":"file_type_light_babel.svg","babel.config.mjs":"file_type_light_babel.svg","babel.config.json":"file_type_light_babel.svg",".bzrignore":"file_type_bazaar.svg","BUILD.bazel":"file_type_bazel.svg",".bazelrc":"file_type_bazel.svg","bazel.rc":"file_type_bazel.svg","bazel.bazelrc":"file_type_bazel.svg","bitbucket-pipelines.yml":"file_type_bitbucketpipeline.svg",".bithoundrc":"file_type_bithound.svg",".bowerrc":"file_type_bower.svg","bower.json":"file_type_bower.svg",".browserslistrc":"file_type_browserslist.svg",browserslist:"file_type_browserslist.svg",".buckconfig":"file_type_buckbuild.svg",gemfile:"file_type_bundler.svg","gemfile.lock":"file_type_bundler.svg","capacitor.config.json":"file_type_capacitor.svg","cargo.toml":"file_type_cargo.svg","cargo.lock":"file_type_cargo.svg",chefignore:"file_type_chef.svg",berksfile:"file_type_chef.svg","berksfile.lock":"file_type_chef.svg","policyfile.rb":"file_type_chef.svg","policyfile.lock.json":"file_type_chef.svg","circle.yml":"file_type_light_circleci.svg",".cfignore":"file_type_light_cloudfoundry.svg",".codacy.yml":"file_type_light_codacy.svg",".codacy.yaml":"file_type_light_codacy.svg",".codeclimate.yml":"file_type_light_codeclimate.svg","codecov.yml":"file_type_codecov.svg",".codecov.yml":"file_type_codecov.svg","config.codekit":"file_type_codekit.svg","config.codekit2":"file_type_codekit.svg","config.codekit3":"file_type_codekit.svg",".config.codekit":"file_type_codekit.svg",".config.codekit2":"file_type_codekit.svg",".config.codekit3":"file_type_codekit.svg","coffeelint.json":"file_type_coffeelint.svg",".coffeelintignore":"file_type_coffeelint.svg","commitlint.config.js":"file_type_commitlint.svg",".commitlintrc.js":"file_type_commitlint.svg",".commitlintrc.json":"file_type_commitlint.svg",".commitlintrc.yml":"file_type_commitlint.svg","composer.json":"file_type_composer.svg","composer.lock":"file_type_composer.svg","conanfile.txt":"file_type_conan.svg","conanfile.py":"file_type_conan.svg",".condarc":"file_type_conda.svg",".coveralls.yml":"file_type_coveralls.svg","crowdin.yml":"file_type_crowdin.svg",".csscomb.json":"file_type_csscomb.svg",".csslintrc":"file_type_csslint.svg",".cvsignore":"file_type_cvs.svg","cypress.json":"file_type_cypress.svg","cypress.env.json":"file_type_cypress.svg",".boringignore":"file_type_darcs.svg","dependabot.yml":"file_type_dependabot.svg","dependencies.yml":"file_type_dependencies.svg","devcontainer.json":"file_type_devcontainer.svg",".devcontainer.json":"file_type_devcontainer.svg","compose.yaml":"file_type_docker.svg","compose.yml":"file_type_docker.svg","docker-compose.yaml":"file_type_docker.svg","docker-compose.yml":"file_type_docker.svg","docker-compose.ci-build.yaml":"file_type_docker.svg","docker-compose.ci-build.yml":"file_type_docker.svg","docker-compose.override.yaml":"file_type_docker.svg","docker-compose.override.yml":"file_type_docker.svg","docker-compose.vs.debug.yaml":"file_type_docker.svg","docker-compose.vs.debug.yml":"file_type_docker.svg","docker-compose.vs.release.yaml":"file_type_docker.svg","docker-compose.vs.release.yml":"file_type_docker.svg","docker-cloud.yaml":"file_type_docker.svg","docker-cloud.yml":"file_type_docker.svg","docker-compose.test.yml":"file_type_dockertest.svg",".doczrc":"file_type_docz.svg","docz.js":"file_type_docz.svg","docz.json":"file_type_docz.svg",".docz.js":"file_type_docz.svg",".docz.json":"file_type_docz.svg","doczrc.js":"file_type_docz.svg","doczrc.json":"file_type_docz.svg","docz.config.js":"file_type_docz.svg","docz.config.json":"file_type_docz.svg",".dojorc":"file_type_dojo.svg",".drone.yml":"file_type_light_drone.svg",".drone.yml.sig":"file_type_light_drone.svg",".dvc":"file_type_dvc.svg",".editorconfig":"file_type_editorconfig.svg","elm-package.json":"file_type_elm.svg",".ember-cli":"file_type_ember.svg",emakefile:"file_type_erlang.svg",".emakerfile":"file_type_erlang.svg",".eslintrc":"file_type_eslint.svg",".eslintignore":"file_type_eslint.svg",".eslintcache":"file_type_eslint.svg",".eslintrc.js":"file_type_eslint.svg",".eslintrc.mjs":"file_type_eslint.svg",".eslintrc.cjs":"file_type_eslint.svg",".eslintrc.json":"file_type_eslint.svg",".eslintrc.yaml":"file_type_eslint.svg",".eslintrc.yml":"file_type_eslint.svg","app.json":"file_type_light_expo.svg","app.config.js":"file_type_light_expo.svg","app.config.json":"file_type_light_expo.svg","app.config.json5":"file_type_light_expo.svg",".faunarc":"file_type_fauna.svg","favicon.ico":"file_type_favicon.svg",".firebaserc":"file_type_firebase.svg","firebase.json":"file_type_light_firebasehosting.svg","firestore.rules":"file_type_firestore.svg","firestore.indexes.json":"file_type_firestore.svg",".flooignore":"file_type_floobits.svg",".flowconfig":"file_type_flow.svg",".flutter-plugins":"file_type_flutter.svg",".metadata":"file_type_flutter.svg","pubspec.lock":"file_type_flutter_package.svg","pubspec.yaml":"file_type_flutter_package.svg",".packages":"file_type_flutter_package.svg",".fossaignore":"file_type_fossa.svg","ignore-glob":"file_type_fossil.svg","fuse.js":"file_type_fusebox.svg","gatsby-config.js":"file_type_gatsby.svg","gatsby-config.ts":"file_type_gatsby.svg","gatsby-node.js":"file_type_gatsby.svg","gatsby-node.ts":"file_type_gatsby.svg","gatsby-browser.js":"file_type_gatsby.svg","gatsby-browser.ts":"file_type_gatsby.svg","gatsby-ssr.js":"file_type_gatsby.svg","gatsby-ssr.ts":"file_type_gatsby.svg",".gitattributes":"file_type_git.svg",".gitconfig":"file_type_git.svg",".gitignore":"file_type_git.svg",".gitmodules":"file_type_git.svg",".gitkeep":"file_type_git.svg",".mailmap":"file_type_git.svg",".gitlab-ci.yml":"file_type_gitlab.svg",".gitpod.yaml":"file_type_gitpod.svg",".gitpod.yml":"file_type_gitpod.svg","gitpod.yaml":"file_type_gitpod.svg","gitpod.yml":"file_type_gitpod.svg","glide.yml":"file_type_glide.svg",".glitterrc":"file_type_glitter.svg","go.sum":"file_type_go_package.svg","go.mod":"file_type_go_package.svg",".gqlconfig":"file_type_graphql.svg",".graphqlconfig":"file_type_graphql_config.svg",".graphqlconfig.yml":"file_type_graphql_config.svg",".graphqlconfig.yaml":"file_type_graphql_config.svg","greenkeeper.json":"file_type_greenkeeper.svg","gridsome.config.js":"file_type_gridsome.svg","gridsome.config.ts":"file_type_gridsome.svg","gridsome.server.js":"file_type_gridsome.svg","gridsome.server.ts":"file_type_gridsome.svg","gridsome.client.js":"file_type_gridsome.svg","gridsome.client.ts":"file_type_gridsome.svg","gruntfile.js":"file_type_grunt.svg","gruntfile.coffee":"file_type_grunt.svg","gruntfile.ts":"file_type_grunt.svg","gruntfile.babel.js":"file_type_grunt.svg","gruntfile.babel.coffee":"file_type_grunt.svg","gruntfile.babel.ts":"file_type_grunt.svg","gulpfile.js":"file_type_gulp.svg","gulpfile.coffee":"file_type_gulp.svg","gulpfile.ts":"file_type_gulp.svg","gulpfile.mjs":"file_type_gulp.svg","gulpfile.esm.js":"file_type_gulp.svg","gulpfile.esm.coffee":"file_type_gulp.svg","gulpfile.esm.ts":"file_type_gulp.svg","gulpfile.esm.mjs":"file_type_gulp.svg","gulpfile.babel.js":"file_type_gulp.svg","gulpfile.babel.coffee":"file_type_gulp.svg","gulpfile.babel.ts":"file_type_gulp.svg","gulpfile.babel.mjs":"file_type_gulp.svg","haxelib.json":"file_type_haxe.svg","checkstyle.json":"file_type_haxecheckstyle.svg",".p4ignore":"file_type_helix.svg","chart.lock":"file_type_helm.svg","chart.yaml":"file_type_helm.svg","horusec-config.json":"file_type_horusec.svg",".htmlhintrc":"file_type_htmlhint.svg",".huskyrc":"file_type_husky.svg","husky.config.js":"file_type_husky.svg",".huskyrc.js":"file_type_husky.svg",".huskyrc.json":"file_type_husky.svg",".huskyrc.yaml":"file_type_husky.svg",".huskyrc.yml":"file_type_husky.svg","ionic.project":"file_type_ionic.svg","ionic.config.json":"file_type_ionic.svg",jakefile:"file_type_jake.svg","jakefile.js":"file_type_jake.svg","jasmine.json":"file_type_jasmine.svg","jest.config.json":"file_type_jest.svg","jest.config.base.json":"file_type_jest.svg","jest.config.common.json":"file_type_jest.svg","jest.config.ts":"file_type_jest.svg","jest.config.base.ts":"file_type_jest.svg","jest.config.common.ts":"file_type_jest.svg","jest.json":"file_type_jest.svg",".jestrc":"file_type_jest.svg",".jestrc.js":"file_type_jest.svg",".jestrc.json":"file_type_jest.svg","jest.config.js":"file_type_jest.svg","jest.config.cjs":"file_type_jest.svg","jest.config.mjs":"file_type_jest.svg","jest.config.base.js":"file_type_jest.svg","jest.config.base.cjs":"file_type_jest.svg","jest.config.base.mjs":"file_type_jest.svg","jest.config.common.js":"file_type_jest.svg","jest.config.common.cjs":"file_type_jest.svg","jest.config.common.mjs":"file_type_jest.svg","jest.config.babel.js":"file_type_jest.svg","jest.config.babel.cjs":"file_type_jest.svg","jest.config.babel.mjs":"file_type_jest.svg",".jpmignore":"file_type_jpm.svg",".jsbeautifyrc":"file_type_jsbeautify.svg",jsbeautifyrc:"file_type_jsbeautify.svg",".jsbeautify":"file_type_jsbeautify.svg",jsbeautify:"file_type_jsbeautify.svg","jsconfig.json":"file_type_light_jsconfig.svg",".jscpd.json":"file_type_jscpd.svg","jscpd-report.xml":"file_type_jscpd.svg","jscpd-report.json":"file_type_jscpd.svg","jscpd-report.html":"file_type_jscpd.svg",".jshintrc":"file_type_jshint.svg",".jshintignore":"file_type_jshint.svg","karma.conf.js":"file_type_karma.svg","karma.conf.coffee":"file_type_karma.svg","karma.conf.ts":"file_type_karma.svg",".kitchen.yml":"file_type_kitchenci.svg","kitchen.yml":"file_type_kitchenci.svg",".kiteignore":"file_type_light_kite.svg","layout.html":"file_type_layout.svg","layout.htm":"file_type_layout.svg","lerna.json":"file_type_light_lerna.svg",license:"file_type_license.svg",licence:"file_type_license.svg",copying:"file_type_license.svg","copying.lesser":"file_type_license.svg","license.md":"file_type_license.svg","license.txt":"file_type_license.svg","licence.md":"file_type_license.svg","licence.txt":"file_type_license.svg","copying.md":"file_type_license.svg","copying.txt":"file_type_license.svg","copying.lesser.md":"file_type_license.svg","copying.lesser.txt":"file_type_license.svg",".licrc":"file_type_licensebat.svg",".lighthouserc.js":"file_type_lighthouse.svg",".lighthouserc.json":"file_type_lighthouse.svg",".lighthouserc.yaml":"file_type_lighthouse.svg",".lighthouserc.yml":"file_type_lighthouse.svg","include.xml":"file_type_lime.svg",".lintstagedrc":"file_type_lintstagedrc.svg","lint-staged.config.js":"file_type_lintstagedrc.svg",".lintstagedrc.js":"file_type_lintstagedrc.svg",".lintstagedrc.json":"file_type_lintstagedrc.svg",".lintstagedrc.yaml":"file_type_lintstagedrc.svg",".lintstagedrc.yml":"file_type_lintstagedrc.svg",manifest:"file_type_manifest.svg","manifest.bak":"file_type_manifest_bak.svg","manifest.skip":"file_type_manifest_skip.svg",".markdownlint.json":"file_type_markdownlint.svg","maven.config":"file_type_maven.svg","pom.xml":"file_type_maven.svg","extensions.xml":"file_type_maven.svg","settings.xml":"file_type_maven.svg",".hgignore":"file_type_mercurial.svg","mocha.opts":"file_type_mocha.svg",".mocharc.js":"file_type_mocha.svg",".mocharc.json":"file_type_mocha.svg",".mocharc.jsonc":"file_type_mocha.svg",".mocharc.yaml":"file_type_mocha.svg",".mocharc.yml":"file_type_mocha.svg",modernizr:"file_type_modernizr.svg","modernizr.js":"file_type_modernizr.svg","modernizrrc.js":"file_type_modernizr.svg",".modernizr.js":"file_type_modernizr.svg",".modernizrrc.js":"file_type_modernizr.svg","moleculer.config.js":"file_type_moleculer.svg","moleculer.config.json":"file_type_moleculer.svg","moleculer.config.ts":"file_type_moleculer.svg",".mtn-ignore":"file_type_monotone.svg",".nest-cli.json":"file_type_nestjs.svg","nest-cli.json":"file_type_nestjs.svg","nestconfig.json":"file_type_nestjs.svg",".nestconfig.json":"file_type_nestjs.svg","netlify.toml":"file_type_netlify.svg","next.config.js":"file_type_light_next.svg","ng-tailwind.js":"file_type_ng_tailwind.svg","nginx.conf":"file_type_nginx.svg","build.ninja":"file_type_ninja.svg",".node-version":"file_type_node.svg",".nvmrc":"file_type_node.svg","nodemon.json":"file_type_nodemon.svg",".npmignore":"file_type_npm.svg",".npmrc":"file_type_npm.svg","package.json":"file_type_npm.svg","package-lock.json":"file_type_npm.svg","npm-shrinkwrap.json":"file_type_npm.svg",".nsrirc":"file_type_nsri.svg",".nsriignore":"file_type_nsri.svg","nsri.config.js":"file_type_nsri.svg",".nsrirc.js":"file_type_nsri.svg",".nsrirc.json":"file_type_nsri.svg",".nsrirc.yaml":"file_type_nsri.svg",".nsrirc.yml":"file_type_nsri.svg",".integrity.json":"file_type_nsri-integrity.svg","nuxt.config.js":"file_type_nuxt.svg","nuxt.config.ts":"file_type_nuxt.svg",".nycrc":"file_type_nyc.svg",".nycrc.json":"file_type_nyc.svg",".merlin":"file_type_ocaml.svg","paket.dependencies":"file_type_paket.svg","paket.lock":"file_type_paket.svg","paket.references":"file_type_paket.svg","paket.template":"file_type_paket.svg","paket.local":"file_type_paket.svg",".php_cs":"file_type_phpcsfixer.svg",".php_cs.dist":"file_type_phpcsfixer.svg",phpunit:"file_type_phpunit.svg","phpunit.xml":"file_type_phpunit.svg","phpunit.xml.dist":"file_type_phpunit.svg",".phraseapp.yml":"file_type_phraseapp.svg",pipfile:"file_type_pip.svg","pipfile.lock":"file_type_pip.svg","platformio.ini":"file_type_platformio.svg","pnpmfile.js":"file_type_light_pnpm.svg","pnpm-lock.yaml":"file_type_light_pnpm.svg","pnpm-workspace.yaml":"file_type_light_pnpm.svg",".postcssrc":"file_type_postcssconfig.svg",".postcssrc.json":"file_type_postcssconfig.svg",".postcssrc.yaml":"file_type_postcssconfig.svg",".postcssrc.yml":"file_type_postcssconfig.svg",".postcssrc.ts":"file_type_postcssconfig.svg",".postcssrc.js":"file_type_postcssconfig.svg",".postcssrc.cjs":"file_type_postcssconfig.svg","postcss.config.ts":"file_type_postcssconfig.svg","postcss.config.js":"file_type_postcssconfig.svg","postcss.config.cjs":"file_type_postcssconfig.svg","preact.config.js":"file_type_preact.svg",".pre-commit-config.yaml":"file_type_precommit.svg",".prettierrc":"file_type_light_prettier.svg",".prettierignore":"file_type_light_prettier.svg","prettier.config.js":"file_type_light_prettier.svg","prettier.config.cjs":"file_type_light_prettier.svg","prettier.config.ts":"file_type_light_prettier.svg","prettier.config.coffee":"file_type_light_prettier.svg",".prettierrc.js":"file_type_light_prettier.svg",".prettierrc.cjs":"file_type_light_prettier.svg",".prettierrc.json":"file_type_light_prettier.svg",".prettierrc.json5":"file_type_light_prettier.svg",".prettierrc.yml":"file_type_light_prettier.svg",".prettierrc.yaml":"file_type_light_prettier.svg",procfile:"file_type_procfile.svg","protractor.conf.js":"file_type_protractor.svg","protractor.conf.coffee":"file_type_protractor.svg","protractor.conf.ts":"file_type_protractor.svg",".jade-lintrc":"file_type_pug.svg",".pug-lintrc":"file_type_pug.svg",".jade-lint.json":"file_type_pug.svg",".pug-lintrc.js":"file_type_pug.svg",".pug-lintrc.json":"file_type_pug.svg","py.typed":"file_type_pytyped.svg",".pyup":"file_type_pyup.svg",".pyup.yml":"file_type_pyup.svg",qmldir:"file_type_qmldir.svg","quasar.conf.js":"file_type_quasar.svg",rakefile:"file_type_rake.svg","razzle.config.js":"file_type_light_razzle.svg",".rehyperc":"file_type_light_rehype.svg",".rehypeignore":"file_type_light_rehype.svg",".rehyperc.cjs":"file_type_light_rehype.svg",".rehyperc.js":"file_type_light_rehype.svg",".rehyperc.json":"file_type_light_rehype.svg",".rehyperc.mjs":"file_type_light_rehype.svg",".rehyperc.yml":"file_type_light_rehype.svg",".rehyperc.yaml":"file_type_light_rehype.svg",".remarkrc":"file_type_light_remark.svg",".remarkignore":"file_type_light_remark.svg",".remarkrc.cjs":"file_type_light_remark.svg",".remarkrc.js":"file_type_light_remark.svg",".remarkrc.json":"file_type_light_remark.svg",".remarkrc.mjs":"file_type_light_remark.svg",".remarkrc.yml":"file_type_light_remark.svg",".remarkrc.yaml":"file_type_light_remark.svg",".renovaterc":"file_type_renovate.svg","renovate.json":"file_type_renovate.svg",".renovaterc.json":"file_type_renovate.svg",".retextrc":"file_type_light_retext.svg",".retextignore":"file_type_light_retext.svg",".retextrc.cjs":"file_type_light_retext.svg",".retextrc.js":"file_type_light_retext.svg",".retextrc.json":"file_type_light_retext.svg",".retextrc.mjs":"file_type_light_retext.svg",".retextrc.yml":"file_type_light_retext.svg",".retextrc.yaml":"file_type_light_retext.svg","robots.txt":"file_type_robots.svg","rollup.config.js":"file_type_rollup.svg","rollup.config.cjs":"file_type_rollup.svg","rollup.config.mjs":"file_type_rollup.svg","rollup.config.coffee":"file_type_rollup.svg","rollup.config.ts":"file_type_rollup.svg","rollup.config.common.js":"file_type_rollup.svg","rollup.config.common.cjs":"file_type_rollup.svg","rollup.config.common.mjs":"file_type_rollup.svg","rollup.config.common.coffee":"file_type_rollup.svg","rollup.config.common.ts":"file_type_rollup.svg","rollup.config.dev.js":"file_type_rollup.svg","rollup.config.dev.cjs":"file_type_rollup.svg","rollup.config.dev.mjs":"file_type_rollup.svg","rollup.config.dev.coffee":"file_type_rollup.svg","rollup.config.dev.ts":"file_type_rollup.svg","rollup.config.prod.js":"file_type_rollup.svg","rollup.config.prod.cjs":"file_type_rollup.svg","rollup.config.prod.mjs":"file_type_rollup.svg","rollup.config.prod.coffee":"file_type_rollup.svg","rollup.config.prod.ts":"file_type_rollup.svg",".rspec":"file_type_rspec.svg",".rubocop.yml":"file_type_light_rubocop.svg",".rubocop_todo.yml":"file_type_light_rubocop.svg","rust-toolchain":"file_type_light_rust_toolchain.svg",".sailsrc":"file_type_sails.svg",".sentryclirc":"file_type_sentry.svg",".sequelizerc":"file_type_sequelize.svg",".sequelizerc.js":"file_type_sequelize.svg",".sequelizerc.json":"file_type_sequelize.svg","serverless.yml":"file_type_serverless.svg","serverless.json":"file_type_serverless.svg","serverless.js":"file_type_serverless.svg","serverless.ts":"file_type_serverless.svg","snapcraft.yaml":"file_type_snapcraft.svg",".snyk":"file_type_snyk.svg",".solidarity":"file_type_solidarity.svg",".solidarity.json":"file_type_solidarity.svg",".stylelintrc":"file_type_light_stylelint.svg",".stylelintignore":"file_type_light_stylelint.svg",".stylelintcache":"file_type_light_stylelint.svg","stylelint.config.js":"file_type_light_stylelint.svg","stylelint.config.json":"file_type_light_stylelint.svg","stylelint.config.yaml":"file_type_light_stylelint.svg","stylelint.config.yml":"file_type_light_stylelint.svg","stylelint.config.ts":"file_type_light_stylelint.svg","stylelint.config.cjs":"file_type_light_stylelint.svg",".stylelintrc.js":"file_type_light_stylelint.svg",".stylelintrc.json":"file_type_light_stylelint.svg",".stylelintrc.yaml":"file_type_light_stylelint.svg",".stylelintrc.yml":"file_type_light_stylelint.svg",".stylelintrc.ts":"file_type_light_stylelint.svg",".stylelintrc.cjs":"file_type_light_stylelint.svg",".stylish-haskell.yaml":"file_type_stylish_haskell.svg",".svnignore":"file_type_subversion.svg","package.pins":"file_type_swift.svg","symfony.lock":"file_type_light_symfony.svg","tailwind.js":"file_type_tailwind.svg","tailwind.cjs":"file_type_tailwind.svg","tailwind.coffee":"file_type_tailwind.svg","tailwind.ts":"file_type_tailwind.svg","tailwind.json":"file_type_tailwind.svg","tailwind.config.js":"file_type_tailwind.svg","tailwind.config.cjs":"file_type_tailwind.svg","tailwind.config.coffee":"file_type_tailwind.svg","tailwind.config.ts":"file_type_tailwind.svg","tailwind.config.json":"file_type_tailwind.svg",".testcaferc.json":"file_type_light_testcafe.svg",".tfignore":"file_type_tfs.svg","tox.ini":"file_type_tox.svg",".travis.yml":"file_type_travis.svg","tsconfig.json":"file_type_tsconfig.svg","tsconfig.app.json":"file_type_tsconfig.svg","tsconfig.base.json":"file_type_tsconfig.svg","tsconfig.common.json":"file_type_tsconfig.svg","tsconfig.dev.json":"file_type_tsconfig.svg","tsconfig.development.json":"file_type_tsconfig.svg","tsconfig.e2e.json":"file_type_tsconfig.svg","tsconfig.prod.json":"file_type_tsconfig.svg","tsconfig.production.json":"file_type_tsconfig.svg","tsconfig.server.json":"file_type_tsconfig.svg","tsconfig.spec.json":"file_type_tsconfig.svg","tsconfig.staging.json":"file_type_tsconfig.svg","tsconfig.test.json":"file_type_tsconfig.svg","tsconfig.lib.json":"file_type_tsconfig.svg","tsconfig.lib.prod.json":"file_type_tsconfig.svg","tslint.json":"file_type_tslint.svg","tslint.yaml":"file_type_tslint.svg","tslint.yml":"file_type_tslint.svg","typedoc.js":"file_type_typedoc.svg","typedoc.json":"file_type_typedoc.svg",".unibeautifyrc":"file_type_light_unibeautify.svg","unibeautify.config.js":"file_type_light_unibeautify.svg",".unibeautifyrc.js":"file_type_light_unibeautify.svg",".unibeautifyrc.json":"file_type_light_unibeautify.svg",".unibeautifyrc.yaml":"file_type_light_unibeautify.svg",".unibeautifyrc.yml":"file_type_light_unibeautify.svg",unlicense:"file_type_unlicense.svg",unlicence:"file_type_unlicense.svg","unlicense.md":"file_type_unlicense.svg","unlicense.txt":"file_type_unlicense.svg","unlicence.md":"file_type_unlicense.svg","unlicence.txt":"file_type_unlicense.svg",vagrantfile:"file_type_vagrant.svg","vapor.yml":"file_type_vapor.svg",".vimrc":"file_type_vim.svg",".gvimrc":"file_type_vim.svg","vite.config.js":"file_type_vite.svg","vite.config.ts":"file_type_vite.svg",".vscodeignore":"file_type_vscode.svg","launch.json":"file_type_vscode.svg","tasks.json":"file_type_vscode.svg","vscodeignore.json":"file_type_vscode.svg",".vuerc":"file_type_vueconfig.svg","vue.config.js":"file_type_vueconfig.svg","wallaby.json":"file_type_wallaby.svg","wallaby.js":"file_type_wallaby.svg","wallaby.ts":"file_type_wallaby.svg","wallaby.coffee":"file_type_wallaby.svg","wallaby.conf.json":"file_type_wallaby.svg","wallaby.conf.js":"file_type_wallaby.svg","wallaby.conf.ts":"file_type_wallaby.svg","wallaby.conf.coffee":"file_type_wallaby.svg",".wallaby.json":"file_type_wallaby.svg",".wallaby.js":"file_type_wallaby.svg",".wallaby.ts":"file_type_wallaby.svg",".wallaby.coffee":"file_type_wallaby.svg",".wallaby.conf.json":"file_type_wallaby.svg",".wallaby.conf.js":"file_type_wallaby.svg",".wallaby.conf.ts":"file_type_wallaby.svg",".wallaby.conf.coffee":"file_type_wallaby.svg",".watchmanconfig":"file_type_watchmanconfig.svg","webpack.base.conf.js":"file_type_webpack.svg","webpack.base.conf.coffee":"file_type_webpack.svg","webpack.base.conf.ts":"file_type_webpack.svg","webpack.common.js":"file_type_webpack.svg","webpack.common.coffee":"file_type_webpack.svg","webpack.common.ts":"file_type_webpack.svg","webpack.config.js":"file_type_webpack.svg","webpack.config.coffee":"file_type_webpack.svg","webpack.config.ts":"file_type_webpack.svg","webpack.config.base.js":"file_type_webpack.svg","webpack.config.base.coffee":"file_type_webpack.svg","webpack.config.base.ts":"file_type_webpack.svg","webpack.config.common.js":"file_type_webpack.svg","webpack.config.common.coffee":"file_type_webpack.svg","webpack.config.common.ts":"file_type_webpack.svg","webpack.config.dev.js":"file_type_webpack.svg","webpack.config.dev.coffee":"file_type_webpack.svg","webpack.config.dev.ts":"file_type_webpack.svg","webpack.config.development.js":"file_type_webpack.svg","webpack.config.development.coffee":"file_type_webpack.svg","webpack.config.development.ts":"file_type_webpack.svg","webpack.config.staging.js":"file_type_webpack.svg","webpack.config.staging.coffee":"file_type_webpack.svg","webpack.config.staging.ts":"file_type_webpack.svg","webpack.config.test.js":"file_type_webpack.svg","webpack.config.test.coffee":"file_type_webpack.svg","webpack.config.test.ts":"file_type_webpack.svg","webpack.config.prod.js":"file_type_webpack.svg","webpack.config.prod.coffee":"file_type_webpack.svg","webpack.config.prod.ts":"file_type_webpack.svg","webpack.config.production.js":"file_type_webpack.svg","webpack.config.production.coffee":"file_type_webpack.svg","webpack.config.production.ts":"file_type_webpack.svg","webpack.config.babel.js":"file_type_webpack.svg","webpack.config.babel.coffee":"file_type_webpack.svg","webpack.config.babel.ts":"file_type_webpack.svg","webpack.config.base.babel.js":"file_type_webpack.svg","webpack.config.base.babel.coffee":"file_type_webpack.svg","webpack.config.base.babel.ts":"file_type_webpack.svg","webpack.config.common.babel.js":"file_type_webpack.svg","webpack.config.common.babel.coffee":"file_type_webpack.svg","webpack.config.common.babel.ts":"file_type_webpack.svg","webpack.config.dev.babel.js":"file_type_webpack.svg","webpack.config.dev.babel.coffee":"file_type_webpack.svg","webpack.config.dev.babel.ts":"file_type_webpack.svg","webpack.config.development.babel.js":"file_type_webpack.svg","webpack.config.development.babel.coffee":"file_type_webpack.svg","webpack.config.development.babel.ts":"file_type_webpack.svg","webpack.config.staging.babel.js":"file_type_webpack.svg","webpack.config.staging.babel.coffee":"file_type_webpack.svg","webpack.config.staging.babel.ts":"file_type_webpack.svg","webpack.config.test.babel.js":"file_type_webpack.svg","webpack.config.test.babel.coffee":"file_type_webpack.svg","webpack.config.test.babel.ts":"file_type_webpack.svg","webpack.config.prod.babel.js":"file_type_webpack.svg","webpack.config.prod.babel.coffee":"file_type_webpack.svg","webpack.config.prod.babel.ts":"file_type_webpack.svg","webpack.config.production.babel.js":"file_type_webpack.svg","webpack.config.production.babel.coffee":"file_type_webpack.svg","webpack.config.production.babel.ts":"file_type_webpack.svg","webpack.dev.js":"file_type_webpack.svg","webpack.dev.coffee":"file_type_webpack.svg","webpack.dev.ts":"file_type_webpack.svg","webpack.dev.conf.js":"file_type_webpack.svg","webpack.dev.conf.coffee":"file_type_webpack.svg","webpack.dev.conf.ts":"file_type_webpack.svg","webpack.prod.js":"file_type_webpack.svg","webpack.prod.coffee":"file_type_webpack.svg","webpack.prod.ts":"file_type_webpack.svg","webpack.prod.conf.js":"file_type_webpack.svg","webpack.prod.conf.coffee":"file_type_webpack.svg","webpack.prod.conf.ts":"file_type_webpack.svg","webpack.main.config.js":"file_type_webpack.svg","webpack.main.config.coffee":"file_type_webpack.svg","webpack.main.config.ts":"file_type_webpack.svg","webpack.mix.js":"file_type_webpack.svg","webpack.mix.coffee":"file_type_webpack.svg","webpack.mix.ts":"file_type_webpack.svg","webpack.plugins.js":"file_type_webpack.svg","webpack.plugins.coffee":"file_type_webpack.svg","webpack.plugins.ts":"file_type_webpack.svg","webpack.renderer.config.js":"file_type_webpack.svg","webpack.renderer.config.coffee":"file_type_webpack.svg","webpack.renderer.config.ts":"file_type_webpack.svg","webpack.rules.js":"file_type_webpack.svg","webpack.rules.coffee":"file_type_webpack.svg","webpack.rules.ts":"file_type_webpack.svg","webpack.test.conf.js":"file_type_webpack.svg","webpack.test.conf.coffee":"file_type_webpack.svg","webpack.test.conf.ts":"file_type_webpack.svg","wercker.yml":"file_type_wercker.svg","wpml-config.xml":"file_type_wpml.svg",".yamllint":"file_type_yamllint.svg",".yaspellerrc":"file_type_yandex.svg",".yaspeller.json":"file_type_yandex.svg","yarn.lock":"file_type_yarn.svg",".yarnrc":"file_type_yarn.svg",".yarnrc.yml":"file_type_yarn.svg",".yarnclean":"file_type_yarn.svg",".yarn-integrity":"file_type_yarn.svg",".yarn-metadata.json":"file_type_yarn.svg",".yarnignore":"file_type_yarn.svg",".yo-rc.json":"file_type_yeoman.svg","now.json":"file_type_light_zeit.svg",".nowignore":"file_type_light_zeit.svg","vercel.json":"file_type_light_zeit.svg",".vercelignore":"file_type_light_zeit.svg",Jenkinsfile:"file_type_groovy.svg",config:"file_type_ini.svg",gitconfig:"file_type_ini.svg",guardfile:"file_type_ruby.svg",podfile:"file_type_ruby.svg",capfile:"file_type_ruby.svg"}),Yv}var Xv={},Nz;function s9e(){return Nz||(Nz=1,Object.defineProperty(Xv,"__esModule",{value:!0}),Xv.FolderNamesToIcon=void 0,Xv.FolderNamesToIcon={android:"folder_type_android.svg",api:"folder_type_api.svg",".api":"folder_type_api.svg",apis:"folder_type_api.svg",".apis":"folder_type_api.svg",app:"folder_type_app.svg",".app":"folder_type_app.svg",arangodb:"folder_type_arangodb.svg",arango:"folder_type_arangodb.svg",assets:"folder_type_asset.svg",".assets":"folder_type_asset.svg",audio:"folder_type_audio.svg",".audio":"folder_type_audio.svg",audios:"folder_type_audio.svg",".audios":"folder_type_audio.svg",sound:"folder_type_audio.svg",".sound":"folder_type_audio.svg",sounds:"folder_type_audio.svg",".sounds":"folder_type_audio.svg",aurelia_project:"folder_type_aurelia.svg",aws:"folder_type_aws.svg",".aws":"folder_type_aws.svg",azure:"folder_type_azure.svg",".azure":"folder_type_azure.svg","azure-pipelines":"folder_type_azurepipelines.svg",".azure-pipelines":"folder_type_azurepipelines.svg",bin:"folder_type_binary.svg",".bin":"folder_type_binary.svg",blocs:"folder_type_bloc.svg",bloc:"folder_type_bloc.svg",blueprint:"folder_type_blueprint.svg",".blueprint":"folder_type_blueprint.svg",blueprints:"folder_type_blueprint.svg",".blueprints":"folder_type_blueprint.svg",bower_components:"folder_type_bower.svg",".buildkite":"folder_type_buildkite.svg",cake:"folder_type_cake.svg",".cake":"folder_type_cake.svg",certificates:"folder_type_certificate.svg",".certificates":"folder_type_certificate.svg",certs:"folder_type_certificate.svg","certs.":"folder_type_certificate.svg",chef:"folder_type_chef.svg",".chef":"folder_type_chef.svg",".circleci":"folder_type_circleci.svg",cli:"folder_type_cli.svg",cmd:"folder_type_cli.svg",command:"folder_type_cli.svg",commands:"folder_type_cli.svg",commandline:"folder_type_cli.svg",console:"folder_type_cli.svg",client:"folder_type_client.svg",clients:"folder_type_client.svg",".cmake":"folder_type_cmake.svg",cmake:"folder_type_cmake.svg",component:"folder_type_component.svg",components:"folder_type_component.svg",".components":"folder_type_component.svg",widgets:"folder_type_component.svg",composer:"folder_type_composer.svg",".composer":"folder_type_composer.svg",conf:"folder_type_config.svg",".conf":"folder_type_config.svg",config:"folder_type_config.svg",".config":"folder_type_config.svg",configs:"folder_type_config.svg",".configs":"folder_type_config.svg",configuration:"folder_type_config.svg",".configuration":"folder_type_config.svg",configurations:"folder_type_config.svg",".configurations":"folder_type_config.svg",setting:"folder_type_config.svg",".setting":"folder_type_config.svg",settings:"folder_type_config.svg",".settings":"folder_type_config.svg",ini:"folder_type_config.svg",".ini":"folder_type_config.svg",initializers:"folder_type_config.svg",".initializers":"folder_type_config.svg",controller:"folder_type_controller.svg",controllers:"folder_type_controller.svg",".controllers":"folder_type_controller.svg",handlers:"folder_type_controller.svg",".handlers":"folder_type_controller.svg",coverage:"folder_type_coverage.svg",css:"folder_type_css.svg",_css:"folder_type_css.svg",cubits:"folder_type_cubit.svg",cubit:"folder_type_cubit.svg",cypress:"folder_type_cypress.svg",".dapr":"folder_type_dapr.svg",dapr:"folder_type_dapr.svg",db:"folder_type_db.svg",database:"folder_type_db.svg",sql:"folder_type_db.svg",data:"folder_type_db.svg",repo:"folder_type_db.svg",repository:"folder_type_db.svg",repositories:"folder_type_db.svg",debian:"folder_type_debian.svg",deb:"folder_type_debian.svg",".dependabot":"folder_type_dependabot.svg",".devcontainer":"folder_type_devcontainer.svg",dist:"folder_type_dist.svg",".dist":"folder_type_dist.svg",dists:"folder_type_dist.svg",out:"folder_type_dist.svg",outs:"folder_type_dist.svg",export:"folder_type_dist.svg",exports:"folder_type_dist.svg",build:"folder_type_dist.svg",".build":"folder_type_dist.svg",builds:"folder_type_dist.svg",release:"folder_type_dist.svg",releases:"folder_type_dist.svg",target:"folder_type_dist.svg",targets:"folder_type_dist.svg",docker:"folder_type_docker.svg",".docker":"folder_type_docker.svg",docs:"folder_type_docs.svg",doc:"folder_type_docs.svg",e2e:"folder_type_e2e.svg",".elasticbeanstalk":"folder_type_elasticbeanstalk.svg",".ebextensions":"folder_type_elasticbeanstalk.svg",electron:"folder_type_light_electron.svg",".expo":"folder_type_light_expo.svg",".expo-shared":"folder_type_light_expo.svg",favicon:"folder_type_favicon.svg",favicons:"folder_type_favicon.svg",flow:"folder_type_flow.svg","flow-typed":"folder_type_flow.svg",fonts:"folder_type_light_fonts.svg",font:"folder_type_light_fonts.svg",fnt:"folder_type_light_fonts.svg",gcp:"folder_type_gcp.svg",".gcp":"folder_type_gcp.svg",".git":"folder_type_git.svg",submodules:"folder_type_git.svg",".submodules":"folder_type_git.svg",".github":"folder_type_github.svg",".gitlab":"folder_type_gitlab.svg",gradle:"folder_type_light_gradle.svg",".gradle":"folder_type_light_gradle.svg",graphql:"folder_type_graphql.svg",grunt:"folder_type_grunt.svg",gulp:"folder_type_gulp.svg","gulpfile.js":"folder_type_gulp.svg","gulpfile.coffee":"folder_type_gulp.svg","gulpfile.ts":"folder_type_gulp.svg","gulpfile.babel.js":"folder_type_gulp.svg","gulpfile.babel.coffee":"folder_type_gulp.svg","gulpfile.babel.ts":"folder_type_gulp.svg",".haxelib":"folder_type_haxelib.svg",haxe_libraries:"folder_type_haxelib.svg",helper:"folder_type_helper.svg",".helper":"folder_type_helper.svg",helpers:"folder_type_helper.svg",".helpers":"folder_type_helper.svg",hook:"folder_type_hook.svg",".hook":"folder_type_hook.svg",hooks:"folder_type_hook.svg",".hooks":"folder_type_hook.svg",".husky":"folder_type_husky.svg",".idea":"folder_type_idea.svg",images:"folder_type_images.svg",image:"folder_type_images.svg",img:"folder_type_images.svg",icons:"folder_type_images.svg",icon:"folder_type_images.svg",ico:"folder_type_images.svg",screenshot:"folder_type_images.svg",screenshots:"folder_type_images.svg",svg:"folder_type_images.svg",include:"folder_type_include.svg",includes:"folder_type_include.svg",incl:"folder_type_include.svg",inc:"folder_type_include.svg",".include":"folder_type_include.svg",".includes":"folder_type_include.svg",".incl":"folder_type_include.svg",".inc":"folder_type_include.svg",_include:"folder_type_include.svg",_includes:"folder_type_include.svg",_incl:"folder_type_include.svg",_inc:"folder_type_include.svg",interface:"folder_type_interfaces.svg",interfaces:"folder_type_interfaces.svg",ios:"folder_type_ios.svg",js:"folder_type_js.svg",json:"folder_type_json.svg",kubernetes:"folder_type_kubernetes.svg",k8s:"folder_type_kubernetes.svg",kube:"folder_type_kubernetes.svg",kuber:"folder_type_kubernetes.svg",".kubernetes":"folder_type_kubernetes.svg",".k8s":"folder_type_kubernetes.svg",".kube":"folder_type_kubernetes.svg",".kuber":"folder_type_kubernetes.svg",less:"folder_type_less.svg",_less:"folder_type_less.svg",lib:"folder_type_library.svg",libs:"folder_type_library.svg",".lib":"folder_type_library.svg",".libs":"folder_type_library.svg",library:"folder_type_library.svg",libraries:"folder_type_library.svg",linux:"folder_type_linux.svg",lang:"folder_type_locale.svg",language:"folder_type_locale.svg",languages:"folder_type_locale.svg",locale:"folder_type_locale.svg",locales:"folder_type_locale.svg",_locale:"folder_type_locale.svg",_locales:"folder_type_locale.svg",internationalization:"folder_type_locale.svg",globalization:"folder_type_locale.svg",localization:"folder_type_locale.svg",i18n:"folder_type_locale.svg",g11n:"folder_type_locale.svg",l10n:"folder_type_locale.svg",log:"folder_type_log.svg",logs:"folder_type_log.svg",macos:"folder_type_macos.svg",darwin:"folder_type_macos.svg",mariadb:"folder_type_mariadb.svg",maria:"folder_type_mariadb.svg",".mvn":"folder_type_maven.svg",memcached:"folder_type_memcached.svg",".memcached":"folder_type_memcached.svg",".meteor":"folder_type_light_meteor.svg",middleware:"folder_type_middleware.svg",middlewares:"folder_type_middleware.svg",minikube:"folder_type_minikube.svg",minik8s:"folder_type_minikube.svg",minikuber:"folder_type_minikube.svg",mjml:"folder_type_mjml.svg",".mjml":"folder_type_mjml.svg",mocks:"folder_type_mock.svg",".mocks":"folder_type_mock.svg",__mocks__:"folder_type_mock.svg",model:"folder_type_model.svg",".model":"folder_type_model.svg",models:"folder_type_model.svg",".models":"folder_type_model.svg",entities:"folder_type_model.svg",".entities":"folder_type_model.svg",modules:"folder_type_module.svg",mongodb:"folder_type_mongodb.svg",mongo:"folder_type_mongodb.svg",mysqldb:"folder_type_light_mysql.svg",mysql:"folder_type_light_mysql.svg",".next":"folder_type_next.svg",nginx:"folder_type_nginx.svg","conf.d":"folder_type_nginx.svg",node_modules:"folder_type_light_node.svg",notification:"folder_type_notification.svg",notifications:"folder_type_notification.svg",event:"folder_type_notification.svg",events:"folder_type_notification.svg",".nuget":"folder_type_nuget.svg",".nuxt":"folder_type_nuxt.svg",package:"folder_type_package.svg",packages:"folder_type_package.svg",".package":"folder_type_package.svg",".packages":"folder_type_package.svg",pkg:"folder_type_package.svg",".paket":"folder_type_paket.svg",php:"folder_type_php.svg",".pio":"folder_type_platformio.svg",".pioenvs":"folder_type_platformio.svg",plugin:"folder_type_plugin.svg",".plugin":"folder_type_plugin.svg",plugins:"folder_type_plugin.svg",".plugins":"folder_type_plugin.svg",extension:"folder_type_plugin.svg",".extension":"folder_type_plugin.svg",extensions:"folder_type_plugin.svg",".extensions":"folder_type_plugin.svg",private:"folder_type_private.svg",".private":"folder_type_private.svg",public:"folder_type_public.svg",".public":"folder_type_public.svg",".venv":"folder_type_python.svg",".virtualenv":"folder_type_python.svg",ravendb:"folder_type_ravendb.svg",redis:"folder_type_redis.svg",redux:"folder_type_light_redux.svg",route:"folder_type_route.svg",routes:"folder_type_route.svg",_route:"folder_type_route.svg",_routes:"folder_type_route.svg",routers:"folder_type_route.svg",sass:"folder_type_light_sass.svg",scss:"folder_type_light_sass.svg",_sass:"folder_type_light_sass.svg",_scss:"folder_type_light_sass.svg",script:"folder_type_script.svg",scripts:"folder_type_script.svg",server:"folder_type_server.svg",service:"folder_type_services.svg",services:"folder_type_services.svg",src:"folder_type_src.svg",source:"folder_type_src.svg",sources:"folder_type_src.svg",sso:"folder_type_sso.svg",story:"folder_type_story.svg",stories:"folder_type_story.svg",__stories__:"folder_type_story.svg",".storybook":"folder_type_story.svg",style:"folder_type_style.svg",styles:"folder_type_style.svg",temp:"folder_type_temp.svg",".temp":"folder_type_temp.svg",tmp:"folder_type_temp.svg",".tmp":"folder_type_temp.svg",template:"folder_type_template.svg",".template":"folder_type_template.svg",templates:"folder_type_template.svg",".templates":"folder_type_template.svg",tests:"folder_type_test.svg",".tests":"folder_type_test.svg",test:"folder_type_test.svg",".test":"folder_type_test.svg",__tests__:"folder_type_test.svg",__test__:"folder_type_test.svg",spec:"folder_type_test.svg",".spec":"folder_type_test.svg",specs:"folder_type_test.svg",".specs":"folder_type_test.svg",integration:"folder_type_test.svg",theme:"folder_type_theme.svg",themes:"folder_type_theme.svg",tool:"folder_type_tools.svg",tools:"folder_type_tools.svg",".tools":"folder_type_tools.svg",util:"folder_type_tools.svg",utils:"folder_type_tools.svg",".travis":"folder_type_travis.svg",typescript:"folder_type_typescript.svg",ts:"folder_type_typescript.svg",typings:"folder_type_typings.svg","@types":"folder_type_typings.svg",vagrant:"folder_type_vagrant.svg",".vagrant":"folder_type_vagrant.svg",video:"folder_type_video.svg",".video":"folder_type_video.svg",videos:"folder_type_video.svg",".videos":"folder_type_video.svg",html:"folder_type_view.svg",view:"folder_type_view.svg",views:"folder_type_view.svg",layout:"folder_type_view.svg",layouts:"folder_type_view.svg",page:"folder_type_view.svg",pages:"folder_type_view.svg",_view:"folder_type_view.svg",_views:"folder_type_view.svg",_layout:"folder_type_view.svg",_layouts:"folder_type_view.svg",_page:"folder_type_view.svg",_pages:"folder_type_view.svg",".vs":"folder_type_vs.svg",".vscode":"folder_type_vscode.svg",vscode:"folder_type_vscode.svg",".vscode-test":"folder_type_vscode_test.svg",webpack:"folder_type_webpack.svg",windows:"folder_type_windows.svg",win32:"folder_type_windows.svg",www:"folder_type_www.svg",wwwroot:"folder_type_www.svg"}),Xv}var Jv={},Tz;function a9e(){return Tz||(Tz=1,Object.defineProperty(Jv,"__esModule",{value:!0}),Jv.LanguagesToIcon=void 0,Jv.LanguagesToIcon={as:"file_type_actionscript.svg",ada:"file_type_light_ada.svg",prw:"file_type_advpl.svg",affect:"file_type_affectscript.svg",al:"file_type_al.svg",ansible:"file_type_ansible.svg",g4:"file_type_antlr.svg",any:"file_type_anyscript.svg",cls:"file_type_apex.svg",apl:"file_type_light_apl.svg",applescript:"file_type_applescript.svg",adoc:"file_type_asciidoc.svg",asp:"file_type_asp.svg",ats:"file_type_ats.svg",au3:"file_type_autoit.svg",avcs:"file_type_avro.svg",azcli:"file_type_azure.svg",bal:"file_type_ballerina.svg",bat:"file_type_bat.svg",cmd:"file_type_bat.svg",bats:"file_type_bats.svg",bzl:"file_type_bazel.svg",bf:"file_type_befunge.svg",bicep:"file_type_bicep.svg",bib:"file_type_light_tex.svg",biml:"file_type_biml.svg","blade.php":"file_type_blade.svg",blitzbasic:"file_type_blitzbasic.svg",bolt:"file_type_bolt.svg",bsq:"file_type_bosque.svg",c:"file_type_c.svg",cabal:"file_type_cabal.svg",Caddyfile:"file_type_caddy.svg",casc:"file_type_casc.svg",cddl:"file_type_cddl.svg",ceylon:"file_type_ceylon.svg",cfc:"file_type_cfc.svg",clj:"file_type_clojure.svg",cljs:"file_type_clojure.svg",cljc:"file_type_clojure.svg",cljx:"file_type_clojure.svg",clojure:"file_type_clojure.svg",edn:"file_type_clojure.svg",clojurescript:"file_type_clojurescript.svg",cmake:"file_type_cmake.svg",cbl:"file_type_cobol.svg",coffee:"file_type_coffeescript.svg",cson:"file_type_coffeescript.svg",confluence:"file_type_confluence.svg",ckbk:"file_type_chef_cookbook.svg",cpp:"file_type_cpp.svg",cc:"file_type_cpp.svg",cxx:"file_type_cpp.svg",hpp:"file_type_cpp.svg",hh:"file_type_cpp.svg",hxx:"file_type_cpp.svg",h:"file_type_cpp.svg",ino:"file_type_cpp.svg",inl:"file_type_cpp.svg",ipp:"file_type_cpp.svg",cr:"file_type_light_crystal.svg",cs:"file_type_csharp.svg",csx:"file_type_csharp.svg",cake:"file_type_csharp.svg",css:"file_type_css.svg",cu:"file_type_cuda.svg",pyx:"file_type_cython.svg",dal:"file_type_dal.svg",dart:"file_type_dartlang.svg",diff:"file_type_diff.svg",patch:"file_type_diff.svg",rej:"file_type_diff.svg",dockerfile:"file_type_docker.svg",dtx:"file_type_light_tex.svg",env:"file_type_light_config.svg",dot:"file_type_dotjs.svg",dox:"file_type_doxygen.svg",drl:"file_type_drools.svg",dust:"file_type_dustjs.svg",edge:"file_type_edge.svg",eex:"file_type_eex.svg",ex:"file_type_elixir.svg",elm:"file_type_elm.svg",erb:"file_type_erb.svg",erl:"file_type_erlang.svg",falcon:"file_type_falcon.svg",fs:"file_type_fsharp.svg",fsi:"file_type_fsharp.svg",fsx:"file_type_fsharp.svg",fsscript:"file_type_fsharp.svg",fthtml:"file_type_fthtml.svg",gspec:"file_type_galen.svg",gcode:"file_type_gcode.svg",gen:"file_type_genstat.svg",glsl:"file_type_glsl.svg",glyphs:"file_type_glyphs.svg",gp:"file_type_gnuplot.svg",go:"file_type_go.svg",gql:"file_type_graphql.svg",groovy:"file_type_groovy.svg",gvy:"file_type_groovy.svg",gradle:"file_type_groovy.svg",haml:"file_type_haml.svg",handlebars:"file_type_handlebars.svg",hbs:"file_type_handlebars.svg",hjs:"file_type_handlebars.svg",prg:"file_type_harbour.svg",hs:"file_type_haskell.svg",haxe:"file_type_haxe.svg","helm.tpl":"file_type_helm.svg",hjson:"file_type_light_hjson.svg",hlsl:"file_type_hlsl.svg",hlsli:"file_type_hlsl.svg",fx:"file_type_hlsl.svg",fxh:"file_type_hlsl.svg",vsh:"file_type_hlsl.svg",psh:"file_type_hlsl.svg",cginc:"file_type_hlsl.svg",compute:"file_type_hlsl.svg",hosts:"file_type_host.svg",html:"file_type_html.svg",htm:"file_type_html.svg",shtml:"file_type_html.svg",xhtml:"file_type_html.svg",mdoc:"file_type_html.svg",jsp:"file_type_html.svg",aspx:"file_type_html.svg",jshtm:"file_type_html.svg",volt:"file_type_html.svg",ejs:"file_type_html.svg",rhtml:"file_type_html.svg",http:"file_type_http.svg",hy:"file_type_hy.svg",hypr:"file_type_hypr.svg",icl:"file_type_icl.svg",imba:"file_type_imba.svg",properties:"file_type_light_ini.svg",gitconfig:"file_type_light_ini.svg",cfg:"file_type_light_ini.svg",conf:"file_type_light_ini.svg",ink:"file_type_ink.svg",iss:"file_type_innosetup.svg",io:"file_type_light_io.svg",janet:"file_type_janet.svg",java:"file_type_java.svg",jav:"file_type_java.svg",js:"file_type_light_js.svg",es6:"file_type_light_js.svg",mjs:"file_type_light_js.svg",pac:"file_type_light_js.svg",jsx:"file_type_reactjs.svg",jekyll:"file_type_jekyll.svg",json:"file_type_light_json.svg",bowerrc:"file_type_light_json.svg",jshintrc:"file_type_light_json.svg",jscsrc:"file_type_light_json.svg",eslintrc:"file_type_light_json.svg",babelrc:"file_type_light_json.svg",webmanifest:"file_type_light_json.svg",jsonc:"file_type_light_json.svg",jsonnet:"file_type_jsonnet.svg",json5:"file_type_light_json5.svg",jl:"file_type_julia.svg",id:"file_type_iodine.svg",kv:"file_type_kivy.svg",ks:"file_type_kos.svg",kt:"file_type_kotlin.svg",".kusto":"file_type_kusto.svg",tex:"file_type_light_tex.svg",lat:"file_type_latino.svg",less:"file_type_less.svg",flex:"file_type_lex.svg",lisp:"file_type_lisp.svg",log:"file_type_log.svg",lol:"file_type_lolcode.svg",lsl:"file_type_lsl.svg",lua:"file_type_lua.svg",mk:"file_type_makefile.svg",md:"file_type_markdown.svg",mdown:"file_type_markdown.svg",markdown:"file_type_markdown.svg",markdn:"file_type_markdown.svg",marko:"file_type_marko.svg",mat:"file_type_matlab.svg",ms:"file_type_maxscript.svg",mdx:"file_type_light_mdx.svg",mediawiki:"file_type_mediawiki.svg",mel:"file_type_maya.svg","meson.build":"file_type_meson.svg",mjml:"file_type_mjml.svg",ep:"file_type_mojolicious.svg",mongo:"file_type_mongo.svg",mson:"file_type_mson.svg",ne:"file_type_nearly.svg",nim:"file_type_nim.svg",nimble:"file_type_nimble.svg",nix:"file_type_nix.svg",nsi:"file_type_nsi.svg",nunjucks:"file_type_nunjucks.svg",ml:"file_type_ocaml.svg",o3:"file_type_ogone.svg",pas:"file_type_delphi.svg",pddl:"file_type_pddl.svg",pl:"file_type_perl.svg",pm:"file_type_perl.svg",pod:"file_type_perl.svg",t:"file_type_perl.svg",PL:"file_type_perl.svg",psgi:"file_type_perl.svg",p6:"file_type_perl.svg",pl6:"file_type_perl.svg",pm6:"file_type_perl.svg",nqp:"file_type_perl.svg",pgsql:"file_type_pgsql.svg",php:"file_type_php.svg",php4:"file_type_php.svg",php5:"file_type_php.svg",phtml:"file_type_php.svg",ctp:"file_type_php.svg",pine:"file_type_pine.svg",txt:"file_type_text.svg",ddl:"file_type_plsql.svg",polymer:"file_type_polymer.svg",pony:"file_type_pony.svg",pcss:"file_type_postcss.svg",ps1:"file_type_powershell.svg",psm1:"file_type_powershell.svg",psd1:"file_type_powershell.svg",pssc:"file_type_powershell.svg",psrc:"file_type_powershell.svg",prisma:"file_type_light_prisma.svg",pro:"file_type_prolog.svg",rules:"file_type_prometheus.svg",pp:"file_type_puppet.svg",purs:"file_type_light_purescript.svg",arr:"file_type_pyret.svg",py:"file_type_python.svg",rpy:"file_type_python.svg",pyw:"file_type_python.svg",cpy:"file_type_python.svg",gyp:"file_type_python.svg",gypi:"file_type_python.svg",qvs:"file_type_qlikview.svg",qml:"file_type_qml.svg",qs:"file_type_qsharp.svg",r:"file_type_r.svg",rhistory:"file_type_r.svg",rprofile:"file_type_r.svg",rt:"file_type_r.svg",rkt:"file_type_racket.svg",cshtml:"file_type_razor.svg",raml:"file_type_raml.svg",re:"file_type_reason.svg",red:"file_type_red.svg",res:"file_type_rescript.svg",rst:"file_type_rest.svg",rex:"file_type_rexx.svg",tag:"file_type_riot.svg",rmd:"file_type_rmd.svg",robot:"file_type_robotframework.svg",rb:"file_type_ruby.svg",rbx:"file_type_ruby.svg",rjs:"file_type_ruby.svg",gemspec:"file_type_ruby.svg",rake:"file_type_ruby.svg",ru:"file_type_ruby.svg",rs:"file_type_light_rust.svg",san:"file_type_san.svg",sbt:"file_type_sbt.svg",scad:"file_type_openscad.svg",scala:"file_type_scala.svg",sce:"file_type_scilab.svg",scss:"file_type_scss.svg",shader:"file_type_light_shaderlab.svg",sh:"file_type_shell.svg",bash:"file_type_shell.svg",bashrc:"file_type_shell.svg",bash_aliases:"file_type_shell.svg",bash_profile:"file_type_shell.svg",bash_login:"file_type_shell.svg",ebuild:"file_type_shell.svg",install:"file_type_shell.svg",profile:"file_type_shell.svg",bash_logout:"file_type_shell.svg",zsh:"file_type_shell.svg",zshrc:"file_type_shell.svg",zprofile:"file_type_shell.svg",zlogin:"file_type_shell.svg",zlogout:"file_type_shell.svg",zshenv:"file_type_shell.svg","zsh-theme":"file_type_shell.svg",slang:"file_type_slang.svg",ice:"file_type_slice.svg",slim:"file_type_slim.svg",ss:"file_type_silverstripe.svg",tpl:"file_type_smarty.svg",snort:"file_type_snort.svg",sol:"file_type_light_solidity.svg",rq:"file_type_sparql.svg",sqf:"file_type_sqf.svg",sql:"file_type_sql.svg",dsql:"file_type_sql.svg",nut:"file_type_squirrel.svg",stan:"file_type_stan.svg",bazel:"file_type_bazel.svg",do:"file_type_stata.svg",stencil:"file_type_stencil.svg","st.css":"file_type_stylable.svg",styl:"file_type_light_stylus.svg",svelte:"file_type_svelte.svg",swagger:"file_type_swagger.svg",swift:"file_type_swift.svg",swig:"file_type_swig.svg",sv:"file_type_light_systemverilog.svg",tt:"file_type_t4tt.svg",teal:"file_type_teal.svg",tera:"file_type_tera.svg",tf:"file_type_terraform.svg",sty:"file_type_light_tex.svg",textile:"file_type_textile.svg",Tiltfile:"file_type_tiltfile.svg",toml:"file_type_light_toml.svg",ttcn3:"file_type_ttcn.svg",tuc:"file_type_tuc.svg",twig:"file_type_twig.svg",ts:"file_type_typescript.svg",tsx:"file_type_reactts.svg",vb:"file_type_vb.svg",brs:"file_type_vb.svg",vbs:"file_type_vb.svg",bas:"file_type_vb.svg",wsf:"file_type_script.svg",vm:"file_type_velocity.svg",v:"file_type_verilog.svg",vhdl:"file_type_vhdl.svg",vim:"file_type_vim.svg",vue:"file_type_vue.svg",wasm:"file_type_wasm.svg",wy:"file_type_wenyan.svg",wl:"file_type_wolfram.svg",wurst:"file_type_wurst.svg","xmake.lua":"file_type_xmake.svg",xml:"file_type_xml.svg",xsd:"file_type_xml.svg",ascx:"file_type_xml.svg",atom:"file_type_xml.svg",axml:"file_type_xml.svg",bpmn:"file_type_xml.svg",config:"file_type_xml.svg",cpt:"file_type_xml.svg",csl:"file_type_xml.svg",csproj:"file_type_xml.svg","csproj.user":"file_type_xml.svg",dita:"file_type_xml.svg",ditamap:"file_type_xml.svg",dtd:"file_type_xml.svg",dtml:"file_type_xml.svg",fsproj:"file_type_xml.svg",fxml:"file_type_xml.svg",iml:"file_type_xml.svg",isml:"file_type_xml.svg",jmx:"file_type_xml.svg",launch:"file_type_xml.svg",menu:"file_type_xml.svg",mxml:"file_type_xml.svg",nuspec:"file_type_xml.svg",opml:"file_type_xml.svg",owl:"file_type_xml.svg",proj:"file_type_xml.svg",props:"file_type_xml.svg",pt:"file_type_xml.svg",publishsettings:"file_type_xml.svg",pubxml:"file_type_xml.svg","pubxml.user":"file_type_xml.svg",rdf:"file_type_xml.svg",rng:"file_type_xml.svg",rss:"file_type_xml.svg",shproj:"file_type_xml.svg",storyboard:"file_type_xml.svg",svg:"file_type_xml.svg",targets:"file_type_xml.svg",tld:"file_type_xml.svg",tmx:"file_type_xml.svg",vbproj:"file_type_xml.svg","vbproj.user":"file_type_xml.svg",vcxproj:"file_type_xml.svg","vcxproj.filters":"file_type_xml.svg",wsdl:"file_type_xml.svg",wxi:"file_type_xml.svg",wxl:"file_type_xml.svg",wxs:"file_type_xml.svg",xaml:"file_type_xml.svg",xbl:"file_type_xml.svg",xib:"file_type_xml.svg",xlf:"file_type_xml.svg",xliff:"file_type_xml.svg",xpdl:"file_type_xml.svg",xul:"file_type_xml.svg",xoml:"file_type_xml.svg",xquery:"file_type_xquery.svg",xsl:"file_type_xsl.svg",xslt:"file_type_xsl.svg",bison:"file_type_yacc.svg",eyaml:"file_type_light_yaml.svg",eyml:"file_type_light_yaml.svg",yaml:"file_type_light_yaml.svg",yml:"file_type_light_yaml.svg",yang:"file_type_yang.svg",zig:"file_type_zig.svg"}),Jv}var Ez;function o9e(){return Ez||(Ez=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.getIconForOpenFolder=e.getIconForFile=e.getIconForFolder=e.DEFAULT_FILE=e.DEFAULT_ROOT_OPENED=e.DEFAULT_ROOT=e.DEFAULT_FOLDER_OPENED=e.DEFAULT_FOLDER=void 0;var r=r9e(),n=n9e(),i=i9e(),s=s9e(),a=a9e();e.DEFAULT_FOLDER="default_folder.svg",e.DEFAULT_FOLDER_OPENED="default_folder_opened.svg",e.DEFAULT_ROOT="default_root_folder.svg",e.DEFAULT_ROOT_OPENED="default_root_folder_opened.svg",e.DEFAULT_FILE="default_file.svg";function o(f){var m=s.FolderNamesToIcon[f];return m||e.DEFAULT_FOLDER}e.getIconForFolder=o;var l=void 0,u=void 0;function d(f){var m=i.FileNamesToIcon[f];if(m!==void 0)return m;var x=f.split(".");if(x.length>2){var v=x.pop(),_=x.pop(),w=n.FileExtensions2ToIcon[_+"."+v];if(w!==void 0)return w;if(!v)return e.DEFAULT_FILE;if(v===l)return u;var S=r.FileExtensions1ToIcon[v];if(S!==void 0)return l=v,u=S,S}else{var C=x.pop();if(!C)return e.DEFAULT_FILE;if(C===l)return u;var j=r.FileExtensions1ToIcon[C];if(j!==void 0)return l=C,u=j,j}var T=f.split(".").pop();if(T!==void 0){var E=a.LanguagesToIcon[T];if(E)return E}return e.DEFAULT_FILE}e.getIconForFile=d;function h(f){return o(f).split(".").shift()+"_opened.svg"}e.getIconForOpenFolder=h})(CT)),CT}var fd=o9e();const eie="https://cdn.jsdelivr.net/gh/vscode-icons/vscode-icons@12.9.0/icons/";function fa({filename:e,className:r}){const n=fd.getIconForFile(e)??fd.DEFAULT_FILE;return c.jsx("img",{src:`${eie}${n}`,alt:"",className:r,loading:"lazy",decoding:"async",draggable:!1})}function W4({name:e,open:r=!1,className:n}){const i=r?fd.getIconForOpenFolder(e)??fd.DEFAULT_FOLDER_OPENED:fd.getIconForFolder(e)??fd.DEFAULT_FOLDER;return c.jsx("img",{src:`${eie}${i}`,alt:"",className:n,loading:"lazy",decoding:"async",draggable:!1})}function tie(){const[e,r]=y.useState(()=>typeof document<"u"&&document.documentElement.classList.contains("dark")?"dark":"light");return y.useEffect(()=>{const n=document.documentElement,i=()=>r(n.classList.contains("dark")?"dark":"light");i();const s=new MutationObserver(i);return s.observe(n,{attributes:!0,attributeFilter:["class"]}),()=>s.disconnect()},[]),e}const rie=Object.freeze(JSON.parse('{"colors":{"actionBar.toggledBackground":"#383a49","activityBarBadge.background":"#007ACC","checkbox.border":"#6B6B6B","editor.background":"#1E1E1E","editor.foreground":"#D4D4D4","editor.inactiveSelectionBackground":"#3A3D41","editor.selectionHighlightBackground":"#ADD6FF26","editorIndentGuide.activeBackground1":"#707070","editorIndentGuide.background1":"#404040","input.placeholderForeground":"#A6A6A6","list.activeSelectionIconForeground":"#FFF","list.dropBackground":"#383B3D","menu.background":"#252526","menu.border":"#454545","menu.foreground":"#CCCCCC","menu.selectionBackground":"#0078d4","menu.separatorBackground":"#454545","ports.iconRunningProcessForeground":"#369432","sideBarSectionHeader.background":"#0000","sideBarSectionHeader.border":"#ccc3","sideBarTitle.foreground":"#BBBBBB","statusBarItem.remoteBackground":"#16825D","statusBarItem.remoteForeground":"#FFF","tab.lastPinnedBorder":"#ccc3","tab.selectedBackground":"#222222","tab.selectedForeground":"#ffffffa0","terminal.inactiveSelectionBackground":"#3A3D41","widget.border":"#303031"},"displayName":"Dark Plus","name":"dark-plus","semanticHighlighting":true,"semanticTokenColors":{"customLiteral":"#DCDCAA","newOperator":"#C586C0","numberLiteral":"#b5cea8","stringLiteral":"#ce9178"},"tokenColors":[{"scope":["meta.embedded","source.groovy.embedded","string meta.image.inline.markdown","variable.legacy.builtin.python"],"settings":{"foreground":"#D4D4D4"}},{"scope":"emphasis","settings":{"fontStyle":"italic"}},{"scope":"strong","settings":{"fontStyle":"bold"}},{"scope":"header","settings":{"foreground":"#000080"}},{"scope":"comment","settings":{"foreground":"#6A9955"}},{"scope":"constant.language","settings":{"foreground":"#569cd6"}},{"scope":["constant.numeric","variable.other.enummember","keyword.operator.plus.exponent","keyword.operator.minus.exponent"],"settings":{"foreground":"#b5cea8"}},{"scope":"constant.regexp","settings":{"foreground":"#646695"}},{"scope":"entity.name.tag","settings":{"foreground":"#569cd6"}},{"scope":["entity.name.tag.css","entity.name.tag.less"],"settings":{"foreground":"#d7ba7d"}},{"scope":"entity.other.attribute-name","settings":{"foreground":"#9cdcfe"}},{"scope":["entity.other.attribute-name.class.css","source.css entity.other.attribute-name.class","entity.other.attribute-name.id.css","entity.other.attribute-name.parent-selector.css","entity.other.attribute-name.parent.less","source.css entity.other.attribute-name.pseudo-class","entity.other.attribute-name.pseudo-element.css","source.css.less entity.other.attribute-name.id","entity.other.attribute-name.scss"],"settings":{"foreground":"#d7ba7d"}},{"scope":"invalid","settings":{"foreground":"#f44747"}},{"scope":"markup.underline","settings":{"fontStyle":"underline"}},{"scope":"markup.bold","settings":{"fontStyle":"bold","foreground":"#569cd6"}},{"scope":"markup.heading","settings":{"fontStyle":"bold","foreground":"#569cd6"}},{"scope":"markup.italic","settings":{"fontStyle":"italic"}},{"scope":"markup.strikethrough","settings":{"fontStyle":"strikethrough"}},{"scope":"markup.inserted","settings":{"foreground":"#b5cea8"}},{"scope":"markup.deleted","settings":{"foreground":"#ce9178"}},{"scope":"markup.changed","settings":{"foreground":"#569cd6"}},{"scope":"punctuation.definition.quote.begin.markdown","settings":{"foreground":"#6A9955"}},{"scope":"punctuation.definition.list.begin.markdown","settings":{"foreground":"#6796e6"}},{"scope":"markup.inline.raw","settings":{"foreground":"#ce9178"}},{"scope":"punctuation.definition.tag","settings":{"foreground":"#808080"}},{"scope":["meta.preprocessor","entity.name.function.preprocessor"],"settings":{"foreground":"#569cd6"}},{"scope":"meta.preprocessor.string","settings":{"foreground":"#ce9178"}},{"scope":"meta.preprocessor.numeric","settings":{"foreground":"#b5cea8"}},{"scope":"meta.structure.dictionary.key.python","settings":{"foreground":"#9cdcfe"}},{"scope":"meta.diff.header","settings":{"foreground":"#569cd6"}},{"scope":"storage","settings":{"foreground":"#569cd6"}},{"scope":"storage.type","settings":{"foreground":"#569cd6"}},{"scope":["storage.modifier","keyword.operator.noexcept"],"settings":{"foreground":"#569cd6"}},{"scope":["string","meta.embedded.assembly"],"settings":{"foreground":"#ce9178"}},{"scope":"string.tag","settings":{"foreground":"#ce9178"}},{"scope":"string.value","settings":{"foreground":"#ce9178"}},{"scope":"string.regexp","settings":{"foreground":"#d16969"}},{"scope":["punctuation.definition.template-expression.begin","punctuation.definition.template-expression.end","punctuation.section.embedded"],"settings":{"foreground":"#569cd6"}},{"scope":["meta.template.expression"],"settings":{"foreground":"#d4d4d4"}},{"scope":["support.type.vendored.property-name","support.type.property-name","source.css variable","source.coffee.embedded"],"settings":{"foreground":"#9cdcfe"}},{"scope":"keyword","settings":{"foreground":"#569cd6"}},{"scope":"keyword.control","settings":{"foreground":"#569cd6"}},{"scope":"keyword.operator","settings":{"foreground":"#d4d4d4"}},{"scope":["keyword.operator.new","keyword.operator.expression","keyword.operator.cast","keyword.operator.sizeof","keyword.operator.alignof","keyword.operator.typeid","keyword.operator.alignas","keyword.operator.instanceof","keyword.operator.logical.python","keyword.operator.wordlike"],"settings":{"foreground":"#569cd6"}},{"scope":"keyword.other.unit","settings":{"foreground":"#b5cea8"}},{"scope":["punctuation.section.embedded.begin.php","punctuation.section.embedded.end.php"],"settings":{"foreground":"#569cd6"}},{"scope":"support.function.git-rebase","settings":{"foreground":"#9cdcfe"}},{"scope":"constant.sha.git-rebase","settings":{"foreground":"#b5cea8"}},{"scope":["storage.modifier.import.java","variable.language.wildcard.java","storage.modifier.package.java"],"settings":{"foreground":"#d4d4d4"}},{"scope":"variable.language","settings":{"foreground":"#569cd6"}},{"scope":["entity.name.function","support.function","support.constant.handlebars","source.powershell variable.other.member","entity.name.operator.custom-literal"],"settings":{"foreground":"#DCDCAA"}},{"scope":["support.class","support.type","entity.name.type","entity.name.namespace","entity.other.attribute","entity.name.scope-resolution","entity.name.class","storage.type.numeric.go","storage.type.byte.go","storage.type.boolean.go","storage.type.string.go","storage.type.uintptr.go","storage.type.error.go","storage.type.rune.go","storage.type.cs","storage.type.generic.cs","storage.type.modifier.cs","storage.type.variable.cs","storage.type.annotation.java","storage.type.generic.java","storage.type.java","storage.type.object.array.java","storage.type.primitive.array.java","storage.type.primitive.java","storage.type.token.java","storage.type.groovy","storage.type.annotation.groovy","storage.type.parameters.groovy","storage.type.generic.groovy","storage.type.object.array.groovy","storage.type.primitive.array.groovy","storage.type.primitive.groovy"],"settings":{"foreground":"#4EC9B0"}},{"scope":["meta.type.cast.expr","meta.type.new.expr","support.constant.math","support.constant.dom","support.constant.json","entity.other.inherited-class","punctuation.separator.namespace.ruby"],"settings":{"foreground":"#4EC9B0"}},{"scope":["keyword.control","source.cpp keyword.operator.new","keyword.operator.delete","keyword.other.using","keyword.other.directive.using","keyword.other.operator","entity.name.operator"],"settings":{"foreground":"#C586C0"}},{"scope":["variable","meta.definition.variable.name","support.variable","entity.name.variable","constant.other.placeholder"],"settings":{"foreground":"#9CDCFE"}},{"scope":["variable.other.constant","variable.other.enummember"],"settings":{"foreground":"#4FC1FF"}},{"scope":["meta.object-literal.key"],"settings":{"foreground":"#9CDCFE"}},{"scope":["support.constant.property-value","support.constant.font-name","support.constant.media-type","support.constant.media","constant.other.color.rgb-value","constant.other.rgb-value","support.constant.color"],"settings":{"foreground":"#CE9178"}},{"scope":["punctuation.definition.group.regexp","punctuation.definition.group.assertion.regexp","punctuation.definition.character-class.regexp","punctuation.character.set.begin.regexp","punctuation.character.set.end.regexp","keyword.operator.negation.regexp","support.other.parenthesis.regexp"],"settings":{"foreground":"#CE9178"}},{"scope":["constant.character.character-class.regexp","constant.other.character-class.set.regexp","constant.other.character-class.regexp","constant.character.set.regexp"],"settings":{"foreground":"#d16969"}},{"scope":["keyword.operator.or.regexp","keyword.control.anchor.regexp"],"settings":{"foreground":"#DCDCAA"}},{"scope":"keyword.operator.quantifier.regexp","settings":{"foreground":"#d7ba7d"}},{"scope":["constant.character","constant.other.option"],"settings":{"foreground":"#569cd6"}},{"scope":"constant.character.escape","settings":{"foreground":"#d7ba7d"}},{"scope":"entity.name.label","settings":{"foreground":"#C8C8C8"}}],"type":"dark"}')),l9e=Object.freeze(Object.defineProperty({__proto__:null,default:rie},Symbol.toStringTag,{value:"Module"})),c9e=["editor theme","vscode theme","monaco theme","workbench colors"],jT=new Set,n2="dark-plus",Az=new WeakSet,Oz=rie,u9e={"editor.background":"#0B0C0E","editorGutter.background":"#0B0C0E","editorStickyScroll.background":"#0B0C0E","editorStickyScrollGutter.background":"#0B0C0E","minimap.background":"#0B0C0E","editor.lineHighlightBackground":"#151922","editorWidget.background":"#16181D","editorHoverWidget.background":"#16181D","editorWidget.border":"#363B44","editorHoverWidget.border":"#363B44","editorGroupHeader.tabsBackground":"#0B0C0E"},d9e={base:"vs-dark",inherit:!1,rules:[...iie(Oz.tokenColors??[]),...x9e()],colors:{...sie(Oz.colors??{}),...u9e}};function h9e(){return c9e}function nie(e){var r,n;(n=(r=e==null?void 0:e.editor)==null?void 0:r.defineTheme)==null||n.call(r,n2,d9e)}function f9e(e){!e||typeof e!="object"||Az.has(e)||(Az.add(e),Promise.all([it(()=>import("./index-Cbo1c6Rq.js"),[],import.meta.url),it(()=>import("./index-Dj6Wq7mo.js"),[],import.meta.url)]).then(async([{shikiToMonaco:r},{createHighlighter:n}])=>{var l,u,d;const i=e.languages,s=new Set(((l=i==null?void 0:i.getLanguages)==null?void 0:l.call(i).map(h=>h.id))??[]);for(const h of["javascript","typescript","json","css","html","markdown","python","yaml","diff"])s.has(h)||((u=i==null?void 0:i.register)==null||u.call(i,{id:h}),s.add(h));const a=await n({themes:["dark-plus"],langs:["javascript","typescript","jsx","tsx","json","css","html","markdown","python","yaml","diff"]});r(a,e),nie(e);const o=e.editor;typeof document<"u"&&document.documentElement.dataset.monacoTheme===n2&&((d=o==null?void 0:o.setTheme)==null||d.call(o,n2))}).catch(r=>{console.error("Failed to initialize Shiki Monaco Dark Plus theme:",r)}))}function p9e(e){var o;const r=m9e(e.text),n=sie(r.colors??{}),i=b9e(r,n),s=((o=r.name)==null?void 0:o.trim())||e.sourceLabel.trim()||"Imported Theme",a=`jait-vscode-${N9e(s)}-${e.id}`;return{id:e.id,name:s,sourceLabel:e.sourceLabel,importedAt:e.importedAt??new Date().toISOString(),colorMode:i,monacoThemeName:a,monacoThemeData:{base:i==="dark"?"vs-dark":"vs",inherit:!0,rules:iie(r.tokenColors??[]),colors:n},cssVariables:v9e(n),rawColors:n,hasInclude:typeof r.include=="string"&&r.include.trim().length>0}}function m9e(e){const r=j9e(C9e(e)),n=JSON.parse(r);if(!n||typeof n!="object"||Array.isArray(n))throw new Error("Theme file must contain a JSON object.");return n}function g9e(e,r){var n;!r||!((n=e==null?void 0:e.editor)!=null&&n.defineTheme)||e.editor.defineTheme(r.monacoThemeName,r.monacoThemeData)}function y9e(e){if(typeof document>"u")return;const r=document.documentElement;r.classList.toggle("dark",e.colorMode==="dark"),r.dataset.monacoTheme=e.monacoThemeName;for(const n of jT)r.style.removeProperty(n);if(jT.clear(),!!e.theme)for(const[n,i]of Object.entries(e.theme.cssVariables))r.style.setProperty(n,i),jT.add(n)}function iie(e){var n;const r=[];for(const i of e){const s=i.settings??{},a=_9e(i.scope);if(a.length===0)continue;const o=Rz(s.foreground),l=Rz(s.background),u=((n=s.fontStyle)==null?void 0:n.trim())||void 0;for(const d of a)r.push({token:d,foreground:o,background:l,fontStyle:u})}return r}function x9e(){return[{token:"",foreground:"D4D4D4",background:"1E1E1E"},{token:"invalid",foreground:"F44747"},{token:"emphasis",fontStyle:"italic"},{token:"strong",fontStyle:"bold"},{token:"comment",foreground:"6A9955"},{token:"constant",foreground:"569CD6"},{token:"number",foreground:"B5CEA8"},{token:"regexp",foreground:"D16969"},{token:"string",foreground:"CE9178"},{token:"string.key.json",foreground:"9CDCFE"},{token:"string.value.json",foreground:"CE9178"},{token:"keyword",foreground:"569CD6"},{token:"keyword.flow",foreground:"C586C0"},{token:"keyword.operator",foreground:"D4D4D4"},{token:"keyword.operator.new",foreground:"C586C0"},{token:"operator",foreground:"D4D4D4"},{token:"type",foreground:"4EC9B0"},{token:"type.identifier",foreground:"4EC9B0"},{token:"class",foreground:"4EC9B0"},{token:"interface",foreground:"4EC9B0"},{token:"enum",foreground:"4EC9B0"},{token:"namespace",foreground:"4EC9B0"},{token:"identifier",foreground:"9CDCFE"},{token:"identifier.function",foreground:"DCDCAA"},{token:"function",foreground:"DCDCAA"},{token:"member",foreground:"DCDCAA"},{token:"method",foreground:"DCDCAA"},{token:"property",foreground:"9CDCFE"},{token:"variable",foreground:"9CDCFE"},{token:"variable.parameter",foreground:"9CDCFE"},{token:"parameter",foreground:"9CDCFE"},{token:"delimiter",foreground:"D4D4D4"},{token:"delimiter.html",foreground:"808080"},{token:"delimiter.xml",foreground:"808080"},{token:"tag",foreground:"569CD6"},{token:"attribute.name",foreground:"9CDCFE"},{token:"attribute.value",foreground:"CE9178"}]}function v9e(e){const r={},n=ii(e,["editor.background","sideBar.background","panel.background"]),i=ii(e,["editor.foreground","foreground"]),s=ii(e,["sideBar.background","panel.background","editorWidget.background"]),a=ii(e,["panel.background","tab.inactiveBackground","editorGroupHeader.tabsBackground"]),o=ii(e,["list.hoverBackground","tab.activeBackground","editor.lineHighlightBackground"]),l=ii(e,["button.background","focusBorder","textLink.foreground"]),u=ii(e,["widget.border","panel.border","sideBar.border","contrastBorder"]);Ci(r,"--background",n),Ci(r,"--foreground",i),Ci(r,"--card",s),Ci(r,"--card-foreground",ii(e,["sideBar.foreground","foreground"])??i),Ci(r,"--popover",ii(e,["editorWidget.background","panel.background"])??s),Ci(r,"--popover-foreground",ii(e,["editorWidget.foreground","foreground"])??i),Ci(r,"--primary",l),Ci(r,"--primary-foreground",Mz(l)),Ci(r,"--secondary",ii(e,["tab.inactiveBackground","panel.background"])??a),Ci(r,"--secondary-foreground",ii(e,["tab.inactiveForeground","foreground"])??i),Ci(r,"--muted",a),Ci(r,"--muted-foreground",ii(e,["descriptionForeground","input.placeholderForeground","disabledForeground"])),Ci(r,"--accent",o),Ci(r,"--accent-foreground",ii(e,["list.activeSelectionForeground","foreground"])??i),Ci(r,"--destructive",ii(e,["inputValidation.errorBackground","errorForeground","list.errorForeground"])),Ci(r,"--destructive-foreground",Mz(ii(e,["inputValidation.errorBackground","errorForeground"]))),Ci(r,"--border",u),Ci(r,"--input",ii(e,["input.background","editorWidget.background","dropdown.background"])??u),Ci(r,"--ring",ii(e,["focusBorder","button.background","textLink.foreground"])??l),Ci(r,"--scrollbar-track",ii(e,["editor.background","sideBar.background","panel.background"])??n),Ci(r,"--scrollbar-thumb",ii(e,["scrollbarSlider.background","scrollbar.shadow"])),Ci(r,"--scrollbar-thumb-hover",ii(e,["scrollbarSlider.hoverBackground","scrollbarSlider.activeBackground","scrollbarSlider.background"])),Ci(r,"--toast-bg",ii(e,["notifications.background","editorWidget.background","panel.background"])??s,!0),Ci(r,"--toast-border",ii(e,["notifications.border","widget.border","panel.border"])??u,!0),Ci(r,"--toast-success-accent",ii(e,["testing.iconPassed","terminal.ansiGreen"])),Ci(r,"--toast-info-accent",ii(e,["textLink.foreground","focusBorder"])??l),Ci(r,"--toast-warning-accent",ii(e,["editorWarning.foreground","terminal.ansiYellow"])),Ci(r,"--toast-error-accent",ii(e,["editorError.foreground","terminal.ansiRed"]));const d=ii(e,["editorGroupHeader.tabsBackground","tab.inactiveBackground","sideBar.background"]);d&&(r["--tab-bg"]=d);const h=ii(e,["activityBarBadge.background","button.background","focusBorder"]),f=ii(e,["textLink.foreground","terminal.ansiBlue"]),m=ii(e,["editorWarning.foreground","terminal.ansiYellow"]),x=ii(e,["terminal.ansiMagenta","badge.background"]);return h&&(r["--ctx-system"]=h),f&&(r["--ctx-history"]=f),m&&(r["--ctx-tool-results"]=m),x&&(r["--ctx-tools"]=x),r}function Ci(e,r,n,i=!1){if(!n)return;const s=w9e(n,i);s&&(e[r]=s)}function Mz(e){const r=R9(e);return r?(.2126*r.r+.7152*r.g+.0722*r.b)/255>.55?"0 0% 7%":"0 0% 100%":null}function b9e(e,r){if(e.type==="light"||e.type==="hc-light")return"light";if(e.type==="dark"||e.type==="hc-dark")return"dark";const n=R9(r["editor.background"]??r["sideBar.background"]??"");return n&&(.2126*n.r+.7152*n.g+.0722*n.b)/255>.55?"light":"dark"}function sie(e){const r={};for(const[n,i]of Object.entries(e))typeof i=="string"&&i.trim()&&(r[n]=i.trim());return r}function _9e(e){return Array.isArray(e)?e.flatMap(r=>r.split(",")).map(r=>r.trim()).filter(Boolean):typeof e!="string"?[]:e.split(",").map(r=>r.trim()).filter(Boolean)}function Rz(e){if(!e)return;const r=e.trim();if(r.startsWith("#"))return aie(r).slice(1)}function ii(e,r){for(const n of r){const i=e[n];if(typeof i=="string"&&i.trim())return i.trim()}return null}function w9e(e,r=!1){const n=R9(e);if(!n)return null;const i=n.r/255,s=n.g/255,a=n.b/255,o=Math.max(i,s,a),l=Math.min(i,s,a),u=o-l,d=(o+l)/2;let h=0;u!==0&&(o===i?h=(s-a)/u%6:o===s?h=(a-i)/u+2:h=(i-s)/u+4,h*=60),h<0&&(h+=360);const f=u===0?0:u/(1-Math.abs(2*d-1)),m=`${Math.round(h)} ${Math.round(f*100)}% ${Math.round(d*100)}%`;return r&&n.a<1?`${m} / ${Number(n.a.toFixed(3))}`:m}function R9(e){if(!e)return null;const r=e.trim();if(!r)return null;if(r.startsWith("#"))return S9e(r);const n=r.match(/^rgba?\(([^)]+)\)$/i);if(!n)return null;const i=n[1].split(",").map(u=>u.trim());if(i.length<3)return null;const s=NT(i[0]),a=NT(i[1]),o=NT(i[2]),l=i[3]==null?1:k9e(i[3]);return s==null||a==null||o==null||l==null?null:{r:s,g:a,b:o,a:l}}function S9e(e){const r=aie(e).slice(1);return r.length===6?{r:Number.parseInt(r.slice(0,2),16),g:Number.parseInt(r.slice(2,4),16),b:Number.parseInt(r.slice(4,6),16),a:1}:r.length===8?{r:Number.parseInt(r.slice(0,2),16),g:Number.parseInt(r.slice(2,4),16),b:Number.parseInt(r.slice(4,6),16),a:Number.parseInt(r.slice(6,8),16)/255}:null}function NT(e){if(e.endsWith("%")){const n=Number.parseFloat(e.slice(0,-1));return Number.isFinite(n)?Pz(Math.round(n/100*255)):null}const r=Number.parseFloat(e);return Number.isFinite(r)?Pz(Math.round(r)):null}function k9e(e){const r=Number.parseFloat(e);return Number.isFinite(r)?Math.max(0,Math.min(1,r)):null}function Pz(e){return Math.max(0,Math.min(255,e))}function aie(e){const r=e.trim().slice(1);return r.length===3||r.length===4?`#${r.split("").map(n=>`${n}${n}`).join("").toLowerCase()}`:`#${r.toLowerCase()}`}function C9e(e){let r="",n=!1,i=!1,s=!1,a=!1;for(let o=0;o<e.length;o+=1){const l=e[o],u=e[o+1];if(i){l===`
1127
1127
  `&&(i=!1,r+=l);continue}if(s){l==="*"&&u==="/"&&(s=!1,o+=1);continue}if(n){r+=l,a?a=!1:l==="\\"?a=!0:l==='"'&&(n=!1);continue}if(l==='"'){n=!0,r+=l;continue}if(l==="/"&&u==="/"){i=!0,o+=1;continue}if(l==="/"&&u==="*"){s=!0,o+=1;continue}r+=l}return r}function j9e(e){return e.replace(/,\s*([}\]])/g,"$1")}function N9e(e){return e.toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,"").slice(0,40)||"theme"}function Lz(){if(typeof document>"u")return"vs";const e=document.documentElement;return e.dataset.monacoTheme??(e.classList.contains("dark")?n2:"vs")}function pS(){const[e,r]=y.useState(Lz);return y.useEffect(()=>{if(typeof document>"u")return;const n=document.documentElement,i=()=>r(Lz());i();const s=new MutationObserver(i);return s.observe(n,{attributes:!0,attributeFilter:["class","data-monaco-theme"]}),()=>s.disconnect()},[]),e}const P9="jait:vscode-theme-store",T3=new Set;let bd=lie(),$z=!1;function oie(){if(typeof window>"u")return null;try{return window.localStorage}catch{return null}}function lie(){const e=oie();if(!e)return{importedThemes:[],activeThemeId:null};let r=null;try{r=e.getItem(P9)}catch{return{importedThemes:[],activeThemeId:null}}if(!r)return{importedThemes:[],activeThemeId:null};try{const n=JSON.parse(r),i=Array.isArray(n.importedThemes)?n.importedThemes.filter(a=>!!(a&&typeof a.id=="string"&&typeof a.monacoThemeName=="string")):[],s=typeof n.activeThemeId=="string"?n.activeThemeId:null;return{importedThemes:i,activeThemeId:i.some(a=>a.id===s)?s:null}}catch{return{importedThemes:[],activeThemeId:null}}}function L9(e){bd=e;const r=oie();if(r)try{r.setItem(P9,JSON.stringify(e))}catch{}for(const n of T3)n()}function T9e(e){return!$z&&typeof window<"u"&&($z=!0,window.addEventListener("storage",r=>{if(r.key===P9){bd=lie();for(const n of T3)n()}})),T3.add(e),()=>T3.delete(e)}function Dz(){return bd}function cie(){const e=y.useSyncExternalStore(T9e,Dz,Dz);return{...e,activeTheme:e.importedThemes.find(r=>r.id===e.activeThemeId)??null}}function uie(){return bd.importedThemes.find(e=>e.id===bd.activeThemeId)??null}function E9e(e,r){const n=`${Date.now().toString(36)}-${M9e(e+r)}`,i=p9e({id:n,sourceLabel:e,text:r});return L9({importedThemes:[...bd.importedThemes.filter(s=>s.id!==n),i],activeThemeId:n}),i}function K5(e){L9({...bd,activeThemeId:e&&bd.importedThemes.some(r=>r.id===e)?e:null})}function A9e(e){L9({importedThemes:bd.importedThemes.filter(r=>r.id!==e),activeThemeId:bd.activeThemeId===e?null:bd.activeThemeId})}function O9e(e){nie(e);const r=uie();r?g9e(e,r):f9e(e)}function Ll(e,r){var n,i;O9e(e),r&&((i=(n=e==null?void 0:e.editor)==null?void 0:n.setTheme)==null||i.call(n,r))}function M9e(e){let r=0;for(let n=0;n<e.length;n+=1)r=(r<<5)-r+e.charCodeAt(n)|0;return Math.abs(r).toString(36)}function Iz(e){return e.split(`
1128
1128
  `)}function R9e(e,r){const n=e.length+1,i=r.length+1,s=Array.from({length:n},()=>Array(i).fill(0));for(let a=e.length-1;a>=0;a-=1)for(let o=r.length-1;o>=0;o-=1)e[a]===r[o]?s[a][o]=(s[a+1][o+1]??0)+1:s[a][o]=Math.max(s[a+1][o]??0,s[a][o+1]??0);return s}function die(e,r){var u,d;const n=Iz(e),i=Iz(r),s=R9e(n,i),a=[];let o=0,l=0;for(;o<n.length||l<i.length;){if(o<n.length&&l<i.length&&n[o]===i[l]){o+=1,l+=1;continue}const h=o,f=l;for(;(o<n.length||l<i.length)&&!(o<n.length&&l<i.length&&n[o]===i[l]);){const m=o<n.length?((u=s[o+1])==null?void 0:u[l])??0:-1,x=l<i.length?((d=s[o])==null?void 0:d[l+1])??0:-1;l>=i.length||o<n.length&&m>=x?o+=1:l+=1}a.push({originalStartLineNumber:h<o?h+1:o,originalEndLineNumber:h<o?o:0,modifiedStartLineNumber:f<l?f+1:l,modifiedEndLineNumber:f<l?l:0})}return a.map((h,f)=>({...h,index:f,state:"undecided"}))}function hie(e,r,n){const i=[...e];for(let s=n.length-1;s>=0;s-=1){const a=n[s];if(!a||a.state==="rejected")continue;const o=a.modifiedEndLineNumber===0?[]:r.slice(a.modifiedStartLineNumber-1,a.modifiedEndLineNumber);if(a.originalEndLineNumber===0)i.splice(a.originalStartLineNumber,0,...o);else{const l=a.originalStartLineNumber-1,u=a.originalEndLineNumber-a.originalStartLineNumber+1;i.splice(l,u,...o)}}return i.join(`
1129
1129
  `)}function Y5(e){return e.modifiedStartLineNumber>0?e.modifiedStartLineNumber:e.modifiedEndLineNumber>0?e.modifiedEndLineNumber:Math.max(1,e.originalStartLineNumber)}function Bz({filePath:e,originalContent:r,modifiedContent:n,language:i,onClose:s,onApply:a}){const o=y.useRef(null),l=y.useRef(null),[u,d]=y.useState([]),[h,f]=y.useState([]),[m,x]=y.useState(0),[v,_]=y.useState(()=>typeof window<"u"&&window.innerWidth<768),w=pS(),S=e.split(/[/\\]/).pop()??e;y.useEffect(()=>{const P=()=>_(window.innerWidth<768);return P(),window.addEventListener("resize",P),()=>window.removeEventListener("resize",P)},[]),y.useEffect(()=>{f(P=>{const H=die(r,n);return P.length===H.length?H.map((G,U)=>{var V;return{...G,state:((V=P[U])==null?void 0:V.state)??"undecided"}}):H}),x(0)},[r,n]);const C=y.useCallback(()=>{var J,z;const P=(z=(J=o.current)==null?void 0:J.getModifiedEditor)==null?void 0:z.call(J);if(!P||h.length===0){d([]);return}const H=P.getScrollTop(),G=P.getLayoutInfo(),U=P.getScrollHeight()>0?P.getScrollHeight():G.height,V=h.flatMap(ee=>{if(ee.state!=="undecided")return[];const X=Y5(ee),Q=P.getTopForLineNumber(X)-H+2;return!Number.isFinite(Q)||Q<-28||Q>U?[]:[{hunkIndex:ee.index,top:Q}]});d(V)},[h]),j=y.useRef([]),T=y.useCallback((P,H)=>{o.current=P,l.current=H,Ll(H,w);const G=P.getModifiedEditor();j.current=[G.onDidScrollChange(()=>C()),G.onDidLayoutChange(()=>C()),G.onDidContentSizeChange(()=>C()),P.onDidUpdateDiff(()=>C())],window.setTimeout(C,0)},[w,C]);y.useEffect(()=>{Ll(l.current,w)},[w]),y.useEffect(()=>()=>{var H,G;for(const U of j.current)U.dispose();j.current=[];const P=o.current;if(P)try{const U=P.getModel();P.dispose(),(H=U==null?void 0:U.original)==null||H.dispose(),(G=U==null?void 0:U.modified)==null||G.dispose()}catch{}o.current=null,l.current=null},[]),y.useEffect(()=>{if(!o.current||h.length===0)return;const P=h[m];if(!P)return;const H=Y5(P);try{o.current.getModifiedEditor().revealLineInCenter(H)}catch{}},[m,h]),y.useEffect(()=>{if(!o.current||!l.current||h.length===0)return;const P=l.current,H=o.current.getModifiedEditor(),G=[];for(const V of h){if(V.state==="undecided")continue;const J=V.modifiedEndLineNumber>0?V.modifiedStartLineNumber:V.originalStartLineNumber,z=V.modifiedEndLineNumber>0?V.modifiedEndLineNumber:V.originalStartLineNumber;G.push({range:new P.Range(J,1,z,1),options:{isWholeLine:!0,className:V.state==="accepted"?"diff-hunk-accepted":"diff-hunk-rejected",overviewRuler:{color:V.state==="accepted"?"#22c55e44":"#ef444444",position:P.editor.OverviewRulerLane.Full}}})}const U=H.deltaDecorations([],G);return()=>{try{H.deltaDecorations(U,[])}catch{}}},[h]),y.useEffect(()=>{C()},[C,m,h]),y.useEffect(()=>{if(!o.current||!l.current||h.length===0)return;const P=l.current,H=o.current.getModifiedEditor(),G=h[m];if(!G)return;const U=G.modifiedEndLineNumber>0?G.modifiedStartLineNumber:G.originalStartLineNumber,V=G.modifiedEndLineNumber>0?G.modifiedEndLineNumber:G.originalStartLineNumber,J=H.deltaDecorations([],[{range:new P.Range(U,1,V,1),options:{isWholeLine:!0,className:"diff-hunk-active"}}]);return()=>{try{H.deltaDecorations(J,[])}catch{}}},[m,h]);const E=y.useCallback((P,H)=>{f(G=>{const U=G.map((J,z)=>z===P?{...J,state:H}:J),V=U.findIndex((J,z)=>z>P&&J.state==="undecided");return V>=0&&x(V),U})},[]),N=y.useCallback(()=>E(m,"accepted"),[m,E]),M=y.useCallback(()=>E(m,"rejected"),[m,E]),$=y.useCallback(()=>{f(P=>P.map(H=>({...H,state:"accepted"})))},[]),q=y.useCallback(()=>{f(P=>P.map(H=>({...H,state:"rejected"})))},[]),F=y.useCallback(()=>{x(P=>Math.min(P+1,h.length-1))},[h.length]),B=y.useCallback(()=>{x(P=>Math.max(P-1,0))},[]),W=y.useCallback(()=>{const P=h.findIndex((G,U)=>U>m&&G.state==="undecided");if(P>=0){x(P);return}const H=h.findIndex(G=>G.state==="undecided");H>=0&&x(H)},[h,m]),D=y.useMemo(()=>h.filter(P=>P.state==="undecided").length,[h]),O=h.length>0&&D===0,I=h[m],R=y.useCallback(()=>{const P=r.split(`
@@ -1422,7 +1422,7 @@ Referenced files:
1422
1422
  `).replace(/\\t/g," ").replace(/\\"/g,'"').replace(/\\\\/g,"\\"):null}function hu(e,r){if(!e)return null;const n=r.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),i=new RegExp(`"${n}"\\s*:\\s*"((?:[^"\\\\]|\\\\.)*)`),s=e.match(i);return s?s[1].replace(/\\n/g,`
1423
1423
  `).replace(/\\t/g," ").replace(/\\"/g,'"').replace(/\\\\/g,"\\"):null}function Pde(e){if(!e)return null;const r=hu(e,"url")??hu(e,"uri")??hu(e,"href")??hu(e,"query")??hu(e,"q");if(r)return zf(r)??r;const n=hu(e,"type"),i=hu(e,"action");return n==="webSearch"||i==="webSearch"?"web search":n==="fetch"||i==="fetch"?"website":null}function Vpt({tool:e,streamingArgs:r}){const n=Za(e),i=kde[n],s=n.startsWith("terminal.")||n==="jait.terminal"||n==="execute",a=s?Rde(r):null,o=n==="web"||n==="web.search"||n==="web.fetch"||n==="browser.search"||n==="browser.fetch",l=o?Pde(r):null;return i&&s&&a?c.jsxs("span",{className:"inline-flex max-w-full min-w-0 items-center gap-1.5 text-foreground",children:[c.jsx("span",{className:"shrink-0 text-xs text-emerald-500 dark:text-emerald-400 font-mono",children:"$"}),c.jsx("code",{className:"min-w-0 truncate text-xs font-mono",children:a}),c.jsx("span",{className:"inline-block w-1 h-3.5 bg-blue-400 animate-pulse ml-0.5 align-text-bottom"})]}):i&&o&&l?c.jsxs("span",{className:"inline-flex max-w-full min-w-0 items-center gap-1.5 text-foreground",children:[c.jsxs("span",{children:[i.label,":"]}),c.jsx("code",{className:"min-w-0 truncate text-xs font-mono",children:l}),c.jsx("span",{className:"inline-block w-1 h-3.5 bg-blue-400 animate-pulse ml-0.5 align-text-bottom"})]}):i?c.jsxs("span",{className:"text-blue-400",children:[i.label,c.jsx("span",{className:"inline-block w-1 h-3 bg-blue-400 animate-pulse ml-1 align-text-bottom"})]}):e?c.jsxs("span",{className:"text-blue-400",children:[c.jsx("code",{className:"text-xs font-mono",children:e}),c.jsx("span",{className:"inline-block w-1 h-3 bg-blue-400 animate-pulse ml-0.5 align-text-bottom"})]}):c.jsx("span",{className:"text-muted-foreground",children:"Preparing..."})}function qpt({tool:e,streamingArgs:r,scrollRef:n}){const i=Za(e),s=i.startsWith("terminal."),a=s?Rde(r):null,o=i==="web"||i==="web.search"||i==="web.fetch"||i==="browser.search"||i==="browser.fetch",l=o?Pde(r):null;if(s&&a)return c.jsxs("pre",{ref:n,className:Ce("text-xs font-mono leading-5 rounded-md px-3 py-2 overflow-x-auto max-h-64 overflow-y-auto whitespace-pre-wrap break-all","bg-muted/40 text-foreground"),children:[c.jsx("span",{className:"text-emerald-400",children:"$ "}),a,c.jsx("span",{className:"inline-block w-1.5 h-3.5 bg-blue-400 animate-pulse ml-0.5 align-text-bottom"})]});if(o&&l){const u=i==="web.search"||i==="browser.search"?"Searching":"Fetching";return c.jsx("div",{className:Ce("rounded-md border px-3 py-2 text-xs","bg-muted/40 text-foreground"),children:c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx(Ot,{className:"h-3 w-3 shrink-0 animate-spin text-blue-400"}),c.jsxs("span",{className:"break-all",children:[u," ",l,"..."]})]})})}if(i==="memory.save"){const u=hu(r,"scope")??"memory",d=hu(r,"content");return c.jsxs("div",{className:Ce("rounded-md border px-3 py-2 text-xs","bg-muted/40 text-foreground"),children:[c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx(Ot,{className:"h-3 w-3 shrink-0 animate-spin text-blue-400"}),c.jsxs("span",{children:["Saving memory (",u,")..."]})]}),d?c.jsxs("div",{className:"mt-1 opacity-80",children:['"',wc(d,120),'"']}):null]})}if(i==="cron.add"){const u=hu(r,"name"),d=hu(r,"cron"),h=hu(r,"toolName");return c.jsxs("div",{className:Ce("rounded-md border px-3 py-2 text-xs","bg-muted/40 text-foreground"),children:[c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx(Ot,{className:"h-3 w-3 shrink-0 animate-spin text-blue-400"}),c.jsxs("span",{children:["Creating cron job",u?`: ${u}`:"..."]})]}),(d||h)&&c.jsxs("div",{className:"mt-1 opacity-80",children:[d?`schedule ${d}`:"",d&&h?" • ":"",h?`tool ${h}`:""]})]})}return r?c.jsxs("pre",{ref:n,className:Ce("text-xs font-mono leading-5 rounded-md px-3 py-2 overflow-x-auto max-h-36 overflow-y-auto whitespace-pre-wrap break-all","bg-muted/40 text-muted-foreground"),children:[r,c.jsx("span",{className:"inline-block w-1.5 h-3.5 bg-blue-400 animate-pulse ml-0.5 align-text-bottom"})]}):c.jsx("div",{className:Ce("rounded-md border px-3 py-2 text-xs","bg-muted/40 text-foreground"),children:c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx(Ot,{className:"h-3 w-3 shrink-0 animate-spin text-blue-400"}),c.jsx("span",{children:"Preparing..."})]})})}function Lde(e){const r=new Map,n=new Set,i=new Map(e.map(s=>[s.callId,s]));for(const s of e){if(!s.parentCallId||!i.has(s.parentCallId))continue;const a=r.get(s.parentCallId)??[];r.set(s.parentCallId,[...a,s]),n.add(s.callId)}for(let s=0;s<e.length;s++){const a=e[s];if(!K0(a.tool))continue;const o=[];for(let l=s+1;l<e.length;l++){const u=e[l];if(n.has(u.callId))continue;const d=a.status==="running"||a.status==="pending",h=a.completedAt!=null&&u.startedAt<=a.completedAt;if(d||h)o.push(u),n.add(u.callId);else break}if(o.length>0){const l=r.get(a.callId)??[];r.set(a.callId,[...l,...o])}}return{childMap:r,parentSet:n}}function $de(e){return e==="browserScreenshot"}function Dde(e){var a,o;const r=Za(e.tool),n=(a=e.result)!=null&&a.data&&typeof e.result.data=="object"?e.result.data:void 0,i=Cc(r,e.args,n),s=wde(r,i,n,(o=e.result)==null?void 0:o.message);return $de(Sde({tool:r,args:i,status:e.status,displayOutput:Ode(e.result,r)||e.streamingOutput||"",snapshotText:typeof(n==null?void 0:n.snapshot)=="string"?n.snapshot:null,screenshotPath:s}))}function Gpt({path:e,onOpenDiff:r,disabled:n}){const i=wN(e),s=!!r&&!n,a=c.jsxs(c.Fragment,{children:[c.jsx(fa,{filename:i,className:"h-3.5 w-3.5 shrink-0"}),c.jsx("span",{className:"whitespace-nowrap",children:i})]});return s?c.jsx("span",{role:"button",tabIndex:0,className:"inline-flex shrink-0 items-center gap-1.5 rounded-md border border-border/70 bg-muted/45 px-2 py-1 text-xs font-medium leading-none text-foreground transition-colors hover:bg-muted cursor-pointer",title:`Open diff for ${e}`,onClick:o=>{o.preventDefault(),o.stopPropagation(),r(e)},onKeyDown:o=>{(o.key==="Enter"||o.key===" ")&&(o.preventDefault(),o.stopPropagation(),r(e))},children:a}):c.jsx("span",{className:"inline-flex shrink-0 items-center gap-1.5 rounded-md border border-border/70 bg-muted/45 px-2 py-1 text-xs font-medium leading-none text-foreground",title:e,children:a})}function Kpt({status:e}){const r=e==="completed"?"border-green-500/30 bg-green-500/10 text-green-600 dark:text-green-400":e==="error"||e==="interrupted"?"border-red-500/30 bg-red-500/10 text-red-600 dark:text-red-400":e==="running"||e==="starting"?"border-blue-500/30 bg-blue-500/10 text-blue-600 dark:text-blue-400":"border-border/70 bg-muted/45 text-muted-foreground",n=e==="completed"?Ts:e==="error"||e==="interrupted"?kh:e==="running"||e==="starting"?Ot:gc;return c.jsxs("span",{className:Ce("inline-flex shrink-0 items-center gap-1 rounded border px-1.5 py-0.5 text-2xs font-medium capitalize",r),children:[c.jsx(n,{className:Ce("h-3 w-3",(e==="running"||e==="starting")&&"animate-spin")}),e]})}function Ypt({items:e,resultMessage:r}){return e.length===0?c.jsx("div",{className:"rounded-md border border-border/60 bg-muted/25 px-3 py-2 text-xs text-muted-foreground",children:"No thread details available."}):c.jsxs("div",{className:"rounded-md border border-purple-500/20 bg-purple-500/[0.025] text-xs",children:[c.jsxs("div",{className:"flex items-center justify-between gap-2 border-b border-purple-500/15 px-3 py-2",children:[c.jsxs("span",{className:"font-medium text-foreground",children:[e.length," thread",e.length===1?"":"s"]}),c.jsxs("span",{className:"text-muted-foreground",children:[e.filter(n=>n.status==="completed").length," completed"]})]}),c.jsx("div",{className:"divide-y divide-border/35",children:e.map((n,i)=>{const s=n.id?n.id.slice(-8):null,a=n.branch??(n.workingDirectory?wN(n.workingDirectory):null);return c.jsxs("div",{className:"grid grid-cols-[minmax(0,1fr)_auto] gap-2 px-3 py-2",children:[c.jsxs("div",{className:"min-w-0",children:[c.jsx("div",{className:"truncate font-medium text-foreground",title:n.title,children:n.title}),c.jsxs("div",{className:"mt-1 flex min-w-0 flex-wrap items-center gap-1.5 text-2xs text-muted-foreground",children:[s&&c.jsx("code",{className:"rounded bg-background/70 px-1 py-0.5 font-mono",children:s}),n.providerId&&c.jsx("span",{children:n.providerId}),n.kind&&c.jsx("span",{children:n.kind}),a&&c.jsx("span",{className:"min-w-0 truncate",children:a})]}),n.error&&c.jsx("div",{className:"mt-1 truncate text-2xs text-red-500",title:n.error,children:n.error})]}),c.jsx(Kpt,{status:n.status})]},n.id??`${n.title}-${i}`)})}),r&&c.jsx("div",{className:"border-t border-purple-500/15 px-3 py-2 text-2xs text-muted-foreground",children:r})]})}function Xpt({call:e,childCalls:r,threadControlThreads:n,onOpenTerminal:i,onOpenDiff:s,inlineSecretPrompt:a,renderInlineSecretPrompt:o,hideTopConnector:l=!1,hideBottomConnector:u=!1}){var Dt,Bt,mt,Ae,jt,Ne,ke,et,at,Ze,xt,Tt,We,ve;const d=Dde(e),[h,f]=y.useState(e.status==="running"||e.status==="pending"||d),[m,x]=y.useState(()=>Date.now()),v=y.useRef(e.status),_=Za(e.tool),w=(Dt=e.result)!=null&&Dt.data&&typeof e.result.data=="object"?e.result.data:void 0,S=Cc(_,e.args,w),C=G0(_)?_N({..._.startsWith("mcp.")&&!S.title?{title:_}:{},...S},w):null,j=C?mpt(C.title):null,T=mL(_),E=(j==null?void 0:j.icon)??T.icon,N=(j==null?void 0:j.color)??T.color,M=kpt(_,S,(Bt=e.result)==null?void 0:Bt.data,(mt=e.result)==null?void 0:mt.message),$=O7(_,S),F=Ode(e.result,_)||e.streamingOutput||"",B=typeof(w==null?void 0:w.snapshot)=="string"?w.snapshot:null,W=wde(_,S,w,(Ae=e.result)==null?void 0:Ae.message),D=_.startsWith("terminal.")||_==="jait.terminal"||_==="execute"||_.startsWith("ssh.")||_==="run.ssh"||_==="elevated.run",O=$pt(e),I=Upt(e),R=I?I3(e):null,P=Ppt(_,S),H=a??(o==null?void 0:o(e))??null,G=H!=null,U=e.status==="pending",V=_de(_,S,(jt=e.result)==null?void 0:jt.data,(Ne=e.result)==null?void 0:Ne.message).map(ye=>ye.trim()).filter(Boolean),J=V[0]??((et=Lw(_,S,w,(ke=e.result)==null?void 0:ke.message))==null?void 0:et.trim())??"",z=!!J&&(aq(_)||_==="read"||_==="file.read"),ee=rq(F),X=rq(e.streamingArgs),Q=Sde({tool:_,args:S,status:e.status,displayOutput:F,snapshotText:B,screenshotPath:W}),ie=$de(Q),re=Q==="terminal"?!0:Q!=="none"&&!ie,le=Q==="threadList"?Cde(S,w,e.status,n):[],fe=G?!0:h,se=y.useCallback(ye=>{G&&!ye||f(ye)},[G]),oe=e.status==="pending"||e.status==="running"?Ot:e.status==="success"?Ts:kh,be=e.status==="pending"?"text-blue-400":e.status==="running"?"text-muted-foreground":e.status==="success"?"text-green-500":"text-red-500",je=e.status==="error"?{row:"bg-red-500/[0.035] hover:bg-red-500/[0.06]",icon:"bg-red-500/10",connector:"bg-red-500/25",body:"bg-red-500/[0.025]"}:e.status==="success"?{row:"bg-card/58 hover:bg-muted/42",icon:"bg-emerald-500/[0.08]",connector:"bg-border/55",body:"bg-card/42"}:{row:"bg-primary/[0.045] hover:bg-primary/[0.075]",icon:"bg-primary/10",connector:"bg-primary/30",body:"bg-primary/[0.025]"};y.useEffect(()=>{const ye=v.current;!ie&&Q!=="threadList"&&(ye==="running"||ye==="pending")&&e.status!=="running"&&e.status!=="pending"&&f(!1),(e.status==="pending"||e.status==="running"||ie||G)&&f(!0),v.current=e.status},[Q,e.status,G,ie]),y.useEffect(()=>{var ye;_!=="web"&&_!=="web.search"&&_!=="web.fetch"&&_!=="browser.search"&&_!=="browser.fetch"||console.debug("[tool-call-card:web]",{tool:e.tool,normalizedTool:_,callId:e.callId,status:e.status,rawArgs:e.args,normalizedArgs:S,resultMessage:(ye=e.result)==null?void 0:ye.message,resultData:w,streamingArgs:e.streamingArgs})},[e.args,e.callId,(at=e.result)==null?void 0:at.message,e.status,e.streamingArgs,e.tool,S,_,w]),y.useEffect(()=>{if(e.status!=="running"&&e.status!=="pending")return;const ye=window.setInterval(()=>x(Date.now()),250);return()=>window.clearInterval(ye)},[e.status]);const He=ppt(_,S,(Ze=e.result)==null?void 0:Ze.data,(xt=e.result)==null?void 0:xt.message),Qe=e.status==="running"||e.status==="pending",ft=Qe?He.running:He.done,Nt=z?bpt(_,Qe):ft,Mt=c.jsxs(c.Fragment,{children:[c.jsx(oe,{className:Ce("h-4 w-4 shrink-0",be,(e.status==="running"||e.status==="pending")&&"animate-spin")}),c.jsx("span",{className:"flex-1 truncate text-[13px] font-medium text-muted-foreground",children:U?c.jsx(Vpt,{tool:e.tool,streamingArgs:e.streamingArgs}):D?c.jsxs("span",{className:"inline-flex max-w-full min-w-0 items-center gap-1.5 text-foreground",children:[c.jsx("span",{className:"shrink-0 text-xs text-emerald-500 dark:text-emerald-400 font-mono",children:"$"}),c.jsx("code",{className:"min-w-0 truncate text-xs font-mono",title:M,children:M})]}):z?c.jsxs("span",{className:"flex min-w-0 max-w-full items-center gap-2",children:[c.jsxs("span",{className:"shrink-0",children:[Nt,":"]}),c.jsx("span",{className:"flex min-w-0 items-center gap-1 overflow-x-auto [scrollbar-width:thin]",children:(V.length>0?V:[J]).filter(Boolean).map((ye,Fe)=>c.jsx(Gpt,{path:ye,onOpenDiff:aq(_)?s:void 0,disabled:e.status!=="success"},`${ye}-${Fe}`))})]}):C&&(C.title||C.details)?c.jsx("span",{className:"inline-flex min-w-0 max-w-full items-center gap-2",children:C.title?c.jsxs("span",{className:"min-w-0 truncate",children:[c.jsx("code",{className:"text-[11px] font-mono",children:C.title}),C.details?c.jsx("span",{className:"text-muted-foreground",children:" • "}):null,C.details?c.jsx("span",{className:"text-xs text-muted-foreground",children:C.details}):null]}):c.jsxs("span",{children:[ft,": ",c.jsx("span",{className:"text-xs text-muted-foreground",children:C.details})]})}):c.jsxs("span",{children:[ft,": ",c.jsx("code",{className:"text-[11px] font-mono",children:M})]})}),c.jsx("span",{className:"text-xs text-muted-foreground/60 tabular-nums shrink-0",children:c.jsx(R7,{startedAt:e.startedAt,completedAt:e.completedAt,now:m})}),$&&($.insertions>0||$.deletions>0)&&c.jsx(_pt,{counts:$}),O&&c.jsx("span",{className:Ce("rounded border px-1.5 py-0.5 text-2xs font-semibold uppercase tracking-wide shrink-0",O.className),children:O.label})]}),Ut=Q==="pending"?c.jsx(qpt,{tool:e.tool,streamingArgs:e.streamingArgs,scrollRef:X}):Q==="terminal"?c.jsxs("pre",{ref:ee,className:Ce("text-xs font-mono leading-5 rounded-md px-3 py-2 overflow-x-auto max-h-72 overflow-y-auto whitespace-pre","bg-zinc-950 text-zinc-100 shadow-inner ring-1 ring-border/40",e.result&&!e.result.ok&&"text-red-200"),children:[!F&&e.status!=="running"&&c.jsxs("span",{className:"text-zinc-400",children:[c.jsx("span",{className:"text-emerald-400",children:"$ "}),M]}),F,e.status==="running"&&!F&&c.jsx("span",{className:"text-zinc-400",children:M?`Executing ${M}...`:"Running..."}),e.status==="running"&&c.jsx("span",{className:"inline-block w-1.5 h-3.5 bg-zinc-100 animate-pulse ml-0.5 align-text-bottom"})]}):Q==="browserSnapshot"?c.jsx(Hpt,{snapshot:B}):Q==="browserScreenshot"?c.jsx(Wpt,{path:W}):Q==="subagent"?r&&r.length>0?c.jsxs("div",{className:"rounded-lg border border-purple-500/20 bg-purple-500/[0.03] text-xs",children:[(e.status==="running"||e.status==="pending")&&r.length>0&&c.jsxs("div",{className:"flex items-center justify-end gap-2 border-b border-purple-500/15 px-3 py-2 text-xs text-muted-foreground",children:[c.jsx(Ot,{className:"h-3 w-3 animate-spin text-purple-500"}),c.jsxs("span",{children:[r.length," tool",r.length!==1?"s":""]})]}),(e.status==="running"||e.status==="pending")&&r.length===0&&c.jsx("div",{className:"px-3 py-2 text-xs text-muted-foreground",children:"Agent is working..."}),c.jsx("div",{className:"divide-y divide-border/30",children:r.map(ye=>c.jsx(Ff,{call:ye,threadControlThreads:n,onOpenTerminal:i,onOpenDiff:s,renderInlineSecretPrompt:o},ye.callId))}),((Tt=e.result)==null?void 0:Tt.message)&&(e.status==="success"||e.status==="error")&&c.jsxs("div",{className:"border-t border-purple-500/15 px-3 py-2",children:[c.jsx("div",{className:"mb-1 text-xs font-medium text-muted-foreground",children:"Result"}),c.jsx("pre",{className:"max-h-48 overflow-auto whitespace-pre-wrap rounded bg-background/60 p-2 font-mono text-xs leading-5",children:e.result.message})]})]}):c.jsx(Fpt,{data:w??{},message:(We=e.result)==null?void 0:We.message,status:e.status}):Q==="threadList"?c.jsx(Ypt,{items:le,resultMessage:(ve=e.result)==null?void 0:ve.message}):Q==="editDiff"?c.jsx(ipt,{filePath:String(S.path??""),oldText:_==="file.patch"||_==="edit"&&S.search!=null?String(S.search??""):void 0,newText:_==="file.patch"||_==="edit"&&S.replace!=null?String(S.replace??""):void 0,writtenContent:_==="file.write"||_==="edit"&&S.content!=null?String(S.content??""):void 0,isNewFile:_==="file.write"}):Q==="output"?c.jsx(zpt,{output:F,tool:_,isError:!!e.result&&!e.result.ok,isRunning:e.status==="running"}):Q==="runningHint"?c.jsxs("div",{className:Ce("rounded-md border px-3 py-2 text-xs","bg-muted/40 text-foreground"),children:[c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx(Ot,{className:"h-3 w-3 shrink-0 animate-spin"}),c.jsx("span",{className:"break-all",children:P})]}),c.jsxs("div",{className:"mt-1 text-xs opacity-75",children:["Elapsed: ",c.jsx(R7,{startedAt:e.startedAt,completedAt:e.completedAt,now:m})]})]}):null;return c.jsxs(jS,{open:re?fe:!1,onOpenChange:se,children:[c.jsxs("div",{className:"relative pl-8",children:[!l&&c.jsx("span",{className:Ce("absolute left-[12.5px] top-0 h-6 w-px",je.connector),style:{maskImage:"linear-gradient(to bottom, transparent 0 22px, #000 22px 100%)"},"aria-hidden":"true"}),!u&&c.jsx("span",{className:Ce("absolute left-[12.5px] top-0 bottom-0 w-px",je.connector),style:{maskImage:"linear-gradient(to bottom, #000 0 5px, transparent 5px 23px, #000 23px 100%)"},"aria-hidden":"true"}),u&&!l&&c.jsx("span",{className:Ce("absolute left-[12.5px] top-0 bottom-0 w-px",je.connector),style:{maskImage:"linear-gradient(to bottom, #000 0 5px, transparent 5px 100%)"},"aria-hidden":"true"}),c.jsx("div",{className:Ce("absolute left-[3px] top-[6px] z-10 flex h-5 w-5 items-center justify-center rounded-md shadow-sm ring-2 ring-background",je.icon),children:c.jsx(E,{className:Ce("h-3.5 w-3.5 shrink-0",N)})}),c.jsx("div",{className:"group pb-1",children:c.jsxs("div",{className:Ce("flex min-h-8 items-center gap-2 rounded-md px-2 py-1 transition-colors",je.row),children:[re?c.jsxs(NS,{className:"flex min-w-0 flex-1 items-center gap-2 text-left",children:[c.jsx(gs,{className:Ce("h-3 w-3 shrink-0 text-muted-foreground transition-transform duration-200",fe&&"rotate-90")}),Mt]}):c.jsxs("div",{className:"flex min-w-0 flex-1 items-center gap-2 text-left",children:[c.jsx("span",{className:"h-3 w-3 shrink-0"}),Mt]}),I&&i&&c.jsxs(pn,{children:[c.jsx(un,{asChild:!0,children:c.jsx(ge,{type:"button",variant:"ghost",size:"icon",className:"h-6 w-6 sm:h-6 sm:w-6 shrink-0",onClick:ye=>{ye.preventDefault(),ye.stopPropagation(),i(R)},children:c.jsx(Uf,{className:"h-3.5 w-3.5"})})}),c.jsx(dn,{side:"top",children:"Open terminal"})]}),Q==="editDiff"&&s&&e.status==="success"&&J&&c.jsxs(pn,{children:[c.jsx(un,{asChild:!0,children:c.jsx(ge,{type:"button",variant:"ghost",size:"icon",className:"h-6 w-6 sm:h-6 sm:w-6 shrink-0",onClick:ye=>{ye.preventDefault(),ye.stopPropagation(),s(J)},children:c.jsx(Uf,{className:"h-3.5 w-3.5"})})}),c.jsx(dn,{side:"top",children:"Open diff in editor"})]})]})})]}),re&&c.jsx(TS,{children:c.jsx("div",{className:Ce("ml-8 mr-3 mb-2 rounded-md px-3 py-2",je.body),children:Ut})}),ie&&c.jsx("div",{className:Ce("ml-8 mr-3 mb-2 rounded-md px-3 py-2",je.body),children:Ut}),G&&c.jsx("div",{className:"ml-6 mr-1.5 mb-2 rounded-md bg-yellow-500/[0.035] px-2.5 py-2 ring-1 ring-yellow-500/15 sm:ml-8 sm:mr-3 sm:px-3",children:c.jsx("div",{className:"rounded-md bg-background/35 px-2.5 py-2 sm:px-3",children:H})})]})}const Ff=y.memo(Xpt);Ff.displayName="ToolCallCard";const Ide=3,A1=6;function Bde(e,r){return!!r&&e.some(n=>r(n)!=null)}function Jpt(e,r){if(!r||e.some(Dde))return!1;const n=e.filter(i=>i.status!=="running"&&i.status!=="pending");return n.length>=Ide&&n.length===e.length}function Zpt({calls:e,collapsible:r,threadControlThreads:n,onOpenTerminal:i,onOpenDiff:s,renderInlineSecretPrompt:a}){const[o,l]=y.useState(!1),[u,d]=y.useState(()=>!Jpt(e,r)),h=y.useRef(!1),{childMap:f,parentSet:m}=y.useMemo(()=>Lde(e),[e]),x=y.useMemo(()=>e.filter(B=>!m.has(B.callId)),[e,m]),v=x.filter(B=>B.status==="running"||B.status==="pending"),_=x.filter(B=>B.status!=="running"&&B.status!=="pending"),w=v.length===0&&_.length>0,S=Bde(e,a),C=r&&!S&&w&&_.length>=Ide;if(y.useEffect(()=>{if(S){d(!0);return}C&&!h.current&&d(!1),h.current=w},[w,S,C]),e.length===0)return null;const j=_.filter(B=>B.status==="success").length,T=_.filter(B=>B.status==="error").length,E=jde(_);if(C&&!u)return c.jsx("div",{className:"my-2",children:c.jsxs("button",{type:"button",onClick:()=>d(!0),className:"flex w-full items-center gap-2 rounded-md px-2 py-2 text-xs text-muted-foreground transition-colors hover:bg-muted/35",children:[c.jsx(gs,{className:"h-3.5 w-3.5 shrink-0"}),c.jsx(E,{className:"h-3.5 w-3.5 shrink-0 text-muted-foreground"}),c.jsx("span",{className:"font-medium",children:M7(_)}),j>0&&c.jsxs("span",{className:"inline-flex items-center gap-0.5 text-green-500",children:[c.jsx(Ts,{className:"h-3 w-3"})," ",j]}),T>0&&c.jsxs("span",{className:"inline-flex items-center gap-0.5 text-red-500",children:[c.jsx(kh,{className:"h-3 w-3"})," ",T]})]})});const N=!o&&_.length>A1,M=N?_.length-A1:0,$=N?_.slice(-A1):_,q=N?_.slice(0,M).filter(B=>B.status==="success").length:0,F=M-q;return c.jsxs("div",{className:"my-2",children:[C&&c.jsxs("button",{type:"button",onClick:()=>d(!1),className:"mb-1 flex w-full items-center gap-2 rounded-md px-2 py-1.5 text-xs text-muted-foreground transition-colors hover:bg-muted/35",children:[c.jsx(gs,{className:"h-3 w-3 rotate-90 transition-transform"}),c.jsxs("span",{children:["Collapse ",M7(_)]})]}),N&&c.jsxs("button",{type:"button",onClick:()=>l(!0),className:"mb-1 flex w-full items-center gap-2 rounded-md px-2 py-1.5 text-xs text-muted-foreground transition-colors hover:bg-muted/35",children:[c.jsx(gs,{className:"h-3 w-3"}),c.jsxs("span",{children:[M," earlier tool call",M!==1?"s":"",q>0&&c.jsxs("span",{className:"text-green-500 ml-1",children:["(",q," passed)"]}),F>0&&c.jsxs("span",{className:"text-red-500 ml-1",children:["(",F," failed)"]})]})]}),o&&_.slice(0,M).map((B,W,D)=>c.jsx(Ff,{call:B,childCalls:f.get(B.callId),threadControlThreads:n,onOpenTerminal:i,onOpenDiff:s,renderInlineSecretPrompt:a,hideTopConnector:W===0,hideBottomConnector:W===D.length-1&&$.length===0&&v.length===0},B.callId)),$.map((B,W)=>c.jsx(Ff,{call:B,childCalls:f.get(B.callId),threadControlThreads:n,onOpenTerminal:i,onOpenDiff:s,renderInlineSecretPrompt:a,hideTopConnector:o?!1:W===0,hideBottomConnector:W===$.length-1&&v.length===0},B.callId)),v.map((B,W)=>c.jsx(Ff,{call:B,childCalls:f.get(B.callId),threadControlThreads:n,onOpenTerminal:i,onOpenDiff:s,renderInlineSecretPrompt:a,hideTopConnector:_.length===0&&W===0,hideBottomConnector:W===v.length-1},B.callId))]})}function zde(e,r){if(e===r)return!0;if(e.length!==r.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==r[n])return!1;return!0}const L7=y.memo(Zpt,(e,r)=>e.onOpenTerminal===r.onOpenTerminal&&e.onOpenDiff===r.onOpenDiff&&e.renderInlineSecretPrompt===r.renderInlineSecretPrompt&&e.threadControlThreads===r.threadControlThreads&&e.collapsible===r.collapsible&&zde(e.calls,r.calls));L7.displayName="ToolCallGroup";function dq(e,r){return r?!1:e.length>0&&e.every(n=>n.status!=="running"&&n.status!=="pending")}function Qpt({provider:e,calls:r,isStreaming:n,threadControlThreads:i,onOpenTerminal:s,onOpenDiff:a,renderInlineSecretPrompt:o}){const[l,u]=y.useState(()=>!dq(r,n)),[d,h]=y.useState(!1),[f,m]=y.useState(()=>Date.now()),x=y.useRef(!dq(r,n)),v=!!n||r.some(P=>P.status==="running"||P.status==="pending"),_=Bde(r,o),w=_?!0:l,S=y.useCallback(P=>{_&&!P||u(P)},[_]),C=r.filter(P=>P.status==="success").length,j=r.filter(P=>P.status==="error").length,T=r.length>0?Math.min(...r.map(P=>P.startedAt)):Date.now(),E=!v&&r.length>0?Math.max(...r.map(P=>P.completedAt??P.startedAt)):void 0,N=jde(r),{childMap:M,parentSet:$}=y.useMemo(()=>Lde(r),[r]),q=y.useMemo(()=>r.filter(P=>!$.has(P.callId)),[r,$]),F=q.filter(P=>P.status==="running"||P.status==="pending"),B=q.filter(P=>P.status!=="running"&&P.status!=="pending"),W=!d&&B.length>A1,D=W?B.length-A1:0,O=W?B.slice(-A1):B,I=W?B.slice(0,D).filter(P=>P.status==="success").length:0,R=D-I;return y.useEffect(()=>{if(_){u(!0),x.current=v;return}x.current&&!v&&r.length>0&&u(!1),x.current=v},[_,v,r.length]),y.useEffect(()=>{if(!v)return;const P=window.setInterval(()=>m(Date.now()),250);return()=>window.clearInterval(P)},[v]),r.length===0?null:c.jsx(jS,{open:w,onOpenChange:S,children:c.jsxs("div",{className:"my-2",children:[c.jsxs(NS,{className:"flex w-full items-center gap-2 rounded-md px-2 py-2 text-left transition-colors hover:bg-muted/35",children:[c.jsx(gs,{className:Ce("h-3.5 w-3.5 shrink-0 text-muted-foreground transition-transform duration-200",w&&"rotate-90")}),v?c.jsx(Ot,{className:"h-4 w-4 shrink-0 text-muted-foreground animate-spin"}):c.jsx(N,{className:"h-4 w-4 shrink-0 text-muted-foreground"}),c.jsx("span",{className:"text-sm font-medium text-foreground truncate",children:M7(r)}),c.jsxs("div",{className:"flex items-center gap-2 ml-auto text-xs text-muted-foreground tabular-nums shrink-0",children:[!v&&j>0&&c.jsxs("span",{className:"text-red-500",children:[j," failed"]}),c.jsx(R7,{startedAt:T,completedAt:E,now:f})]}),!v&&j===0&&C>0&&c.jsx(Ts,{className:"h-3.5 w-3.5 shrink-0 text-green-500"}),!v&&j>0&&c.jsx(kh,{className:"h-3.5 w-3.5 shrink-0 text-red-500"})]}),c.jsx(TS,{children:c.jsxs("div",{className:"mt-1",children:[W&&c.jsxs("button",{type:"button",onClick:()=>h(!0),className:"mb-1 flex w-full items-center gap-2 rounded-md px-2 py-1.5 text-xs text-muted-foreground transition-colors hover:bg-muted/35",children:[c.jsx(gs,{className:"h-3 w-3"}),c.jsxs("span",{children:[D," earlier tool call",D!==1?"s":"",I>0&&c.jsxs("span",{className:"text-green-500 ml-1",children:["(",I," passed)"]}),R>0&&c.jsxs("span",{className:"text-red-500 ml-1",children:["(",R," failed)"]})]})]}),d&&B.slice(0,D).map((P,H,G)=>c.jsx(Ff,{call:P,childCalls:M.get(P.callId),threadControlThreads:i,onOpenTerminal:s,onOpenDiff:a,renderInlineSecretPrompt:o,hideTopConnector:H===0,hideBottomConnector:H===G.length-1&&O.length===0&&F.length===0},P.callId)),O.map((P,H)=>c.jsx(Ff,{call:P,childCalls:M.get(P.callId),threadControlThreads:i,onOpenTerminal:s,onOpenDiff:a,renderInlineSecretPrompt:o,hideTopConnector:d?!1:H===0,hideBottomConnector:H===O.length-1&&F.length===0},P.callId)),F.map((P,H)=>c.jsx(Ff,{call:P,childCalls:M.get(P.callId),threadControlThreads:i,onOpenTerminal:s,onOpenDiff:a,renderInlineSecretPrompt:o,hideTopConnector:B.length===0&&H===0,hideBottomConnector:H===F.length-1},P.callId))]})})]})})}const $7=y.memo(Qpt,(e,r)=>e.provider===r.provider&&e.isStreaming===r.isStreaming&&e.onOpenTerminal===r.onOpenTerminal&&e.onOpenDiff===r.onOpenDiff&&e.renderInlineSecretPrompt===r.renderInlineSecretPrompt&&e.threadControlThreads===r.threadControlThreads&&zde(e.calls,r.calls));$7.displayName="AgentToolCallWrapper";function hq(e){switch(e){case"system":return"border-red-500/35 bg-red-500/10 text-red-700 dark:text-red-300";case"user":return"border-blue-500/35 bg-blue-500/10 text-blue-700 dark:text-blue-300";case"assistant":return"border-emerald-500/35 bg-emerald-500/10 text-emerald-700 dark:text-emerald-300";case"tool":return"border-amber-500/35 bg-amber-500/10 text-amber-700 dark:text-amber-300";default:return"border-border bg-muted text-muted-foreground"}}function Hf(e){if(e==null)return"";if(typeof e=="string")return e;if(typeof e=="number"||typeof e=="boolean")return String(e);try{return JSON.stringify(e,null,2)}catch{return String(e)}}function emt(e){return"content"in e?Hf(e.content):Hf(e)}function tmt(e){return(Array.isArray(e.tool_calls)?e.tool_calls:Array.isArray(e.toolCalls)?e.toolCalls:[]).map((n,i)=>{const s=n&&typeof n=="object"?n:{},a=s.function&&typeof s.function=="object"?s.function:{};return{id:Hf(s.id||s.call_id||s.tool_call_id||`tool-call-${i+1}`),name:Hf(a.name||s.name||s.tool||"tool"),args:Hf(a.arguments||s.arguments||s.args||{})}})}function rmt(e,r){const n=e&&typeof e=="object"?e:{},i=n.function&&typeof n.function=="object"?n.function:{};return{name:Hf(i.name||n.name||`tool_${r+1}`),description:typeof i.description=="string"?i.description:typeof n.description=="string"?n.description:void 0,raw:e}}function Fde(e){return e<1e3?`${e}ms`:`${(e/1e3).toFixed(1)}s`}function dm(e){return e>=1e6?`${(e/1e6).toFixed(1)}M`:e>=1e3?`${(e/1e3).toFixed(1)}k`:String(e)}function fq({badge:e,meta:r,preview:n,children:i,tone:s="default",defaultOpen:a=!1}){const[o,l]=y.useState(a);return c.jsx(jS,{open:o,onOpenChange:l,children:c.jsxs("div",{className:Ce("rounded-md border p-3",s==="assistant"?"border-emerald-500/25 bg-emerald-500/10":"border-border/80 bg-background"),children:[c.jsxs("div",{className:"flex items-start gap-2",children:[c.jsxs(NS,{className:"mt-0.5 rounded-sm p-0.5 text-muted-foreground transition-colors hover:bg-background/70 hover:text-foreground",children:[c.jsx(gs,{className:Ce("h-4 w-4 transition-transform",o&&"rotate-90")}),c.jsx("span",{className:"sr-only",children:o?"Collapse section":"Expand section"})]}),c.jsxs("div",{className:"min-w-0 flex-1",children:[c.jsxs("div",{className:"flex min-w-0 flex-wrap items-center gap-2",children:[e,r]}),n?c.jsx("div",{className:"mt-1 text-xs text-muted-foreground/70",children:n}):null]})]}),c.jsx(TS,{className:"pl-6",children:c.jsx("div",{className:"pt-3",children:i})})]})})}function nmt({flow:e}){const r=e.rounds;if(!r.some(f=>f.metrics))return null;let i=0,s=0,a=0,o=0,l,u=0,d=0;for(const f of r){const m=f.metrics;m&&(i+=m.durationMs,m.promptTokens&&(s+=m.promptTokens),m.completionTokens&&(a+=m.completionTokens),m.totalTokens&&(o+=m.totalTokens),m.tokensPerSecond&&m.completionTokens&&(u+=m.tokensPerSecond*m.completionTokens,d+=m.completionTokens),m.contextUsage&&(l=m.contextUsage))}const h=d>0?Math.round(u/d*10)/10:void 0;return c.jsxs("div",{className:"grid grid-cols-2 gap-2 sm:grid-cols-4",children:[c.jsxs("div",{className:"rounded-md border border-border bg-muted/30 px-2.5 py-2",children:[c.jsxs("div",{className:"flex items-center gap-1.5 text-xs text-muted-foreground",children:[c.jsx(Wm,{className:"h-3 w-3"}),"Total Duration"]}),c.jsx("div",{className:"mt-0.5 text-sm font-semibold text-foreground",children:Fde(i)}),c.jsxs("div",{className:"text-xs text-muted-foreground",children:[r.length," round",r.length!==1?"s":""]})]}),c.jsxs("div",{className:"rounded-md border border-border bg-muted/30 px-2.5 py-2",children:[c.jsxs("div",{className:"flex items-center gap-1.5 text-xs text-muted-foreground",children:[c.jsx(Y8,{className:"h-3 w-3"}),"Tokens"]}),c.jsx("div",{className:"mt-0.5 text-sm font-semibold text-foreground",children:o>0?dm(o):s+a>0?dm(s+a):"—"}),c.jsxs("div",{className:"text-xs text-muted-foreground",children:[s>0?`${dm(s)} in`:"",s>0&&a>0?" · ":"",a>0?`${dm(a)} out`:"",s===0&&a===0?"estimated":""]})]}),c.jsxs("div",{className:"rounded-md border border-border bg-muted/30 px-2.5 py-2",children:[c.jsxs("div",{className:"flex items-center gap-1.5 text-xs text-muted-foreground",children:[c.jsx(LY,{className:"h-3 w-3"}),"Speed"]}),c.jsx("div",{className:"mt-0.5 text-sm font-semibold text-foreground",children:h?`${h} tok/s`:"—"}),c.jsx("div",{className:"text-xs text-muted-foreground",children:"completion tokens/sec"})]}),c.jsxs("div",{className:"rounded-md border border-border bg-muted/30 px-2.5 py-2",children:[c.jsxs("div",{className:"flex items-center gap-1.5 text-xs text-muted-foreground",children:[c.jsx(Dye,{className:"h-3 w-3"}),"Context Window"]}),l?c.jsxs(c.Fragment,{children:[c.jsxs("div",{className:"mt-0.5 text-sm font-semibold text-foreground",children:[Math.round(l.ratio*100),"%"]}),c.jsxs("div",{className:"text-xs text-muted-foreground",children:[dm(l.total)," / ",dm(l.limit)," tokens",l.pruned?" (pruned)":""]})]}):c.jsxs(c.Fragment,{children:[c.jsx("div",{className:"mt-0.5 text-sm font-semibold text-foreground",children:"—"}),c.jsx("div",{className:"text-xs text-muted-foreground",children:"no data"})]})]})]})}function imt({metrics:e}){return e?c.jsxs("div",{className:"mt-2 flex flex-wrap gap-x-3 gap-y-1 text-xs text-muted-foreground",children:[c.jsx("span",{title:"LLM request duration",children:Fde(e.durationMs)}),e.promptTokens!=null&&c.jsxs("span",{title:"Prompt tokens",children:[dm(e.promptTokens)," prompt"]}),e.completionTokens!=null&&c.jsxs("span",{title:"Completion tokens",children:[dm(e.completionTokens)," completion"]}),e.tokensPerSecond!=null&&c.jsxs("span",{title:"Completion tokens per second",className:"font-medium text-foreground/80",children:[e.tokensPerSecond," tok/s"]}),e.contextUsage&&c.jsxs("span",{title:"Context window utilisation",children:["ctx ",Math.round(e.contextUsage.ratio*100),"%",e.contextUsage.pruned?" (pruned)":""]})]}):null}function smt(e,r){const n=[];if(!e)return r?[{id:"assistant-response",kind:"response",content:r}]:n;e.rounds.some(i=>i.metrics)&&n.push({id:"summary",kind:"summary",flow:e}),e.memory&&n.push({id:"memory",kind:"memory",flow:e.memory});for(const i of e.rounds){const s=Array.isArray(i.messages)?i.messages:[],a=Array.isArray(i.tools)?i.tools.map(rmt):[];n.push({id:`round-${i.round}`,kind:"round",round:i,messageCount:s.length,toolCount:a.length}),s.forEach((o,l)=>{const u=o&&typeof o=="object"?o:{content:o};n.push({id:`round-${i.round}-message-${l}`,kind:"message",roundNumber:i.round,index:l,role:Hf(u.role||"message"),content:emt(u),raw:o,toolCalls:tmt(u)})}),a.length>0&&n.push({id:`round-${i.round}-tools`,kind:"tools",roundNumber:i.round,tools:a})}return r&&n.push({id:"assistant-response",kind:"response",content:r}),n}function amt({row:e}){if(e.kind==="summary")return c.jsx(nmt,{flow:e.flow});if(e.kind==="memory")return c.jsxs("div",{className:"min-w-0 overflow-hidden rounded-md border border-amber-500/30 bg-amber-500/10 px-3 py-2",children:[c.jsxs("div",{className:"flex min-w-0 flex-wrap items-center gap-2",children:[c.jsx(vo,{className:"h-3.5 w-3.5 text-amber-600 dark:text-amber-300"}),c.jsx("span",{className:"text-xs font-semibold text-foreground",children:"Relevant memory"}),c.jsxs("span",{className:"text-xs text-muted-foreground",children:[e.flow.injectedIds.length," injected / ",e.flow.retrieved.length," retrieved"]})]}),c.jsx("div",{className:"mt-2 space-y-1",children:e.flow.retrieved.length>0?e.flow.retrieved.map(n=>c.jsxs("div",{className:"min-w-0 rounded border border-border/60 bg-background/65 px-2 py-1",children:[c.jsxs("div",{className:"flex min-w-0 flex-wrap items-center gap-2 text-[11px] text-muted-foreground",children:[c.jsx("span",{children:n.scope}),c.jsx("span",{className:"truncate",title:n.source,children:n.source}),n.sourceId?c.jsxs("span",{className:"truncate",title:n.sourceId,children:["source ",n.sourceId]}):null,c.jsx("span",{children:new Date(n.updatedAt).toLocaleDateString()})]}),c.jsx("div",{className:"mt-0.5 break-words text-xs text-foreground",children:n.content})]},n.id)):c.jsx("div",{className:"text-xs text-muted-foreground",children:"No memory injected for this turn."})})]});if(e.kind==="round")return c.jsxs("div",{className:"min-w-0 overflow-hidden rounded-md border border-border bg-background px-3 py-2",children:[c.jsxs("div",{className:"flex min-w-0 flex-wrap items-center gap-2",children:[c.jsxs("span",{className:"rounded-md bg-foreground px-2 py-1 text-xs font-semibold text-background",children:["Round ",e.round.round]}),c.jsx("span",{className:"min-w-0 break-words text-xs text-muted-foreground",children:e.round.model}),c.jsx("span",{className:"min-w-0 break-words text-xs text-muted-foreground",children:new Date(e.round.createdAt).toLocaleString()})]}),c.jsxs("div",{className:"mt-2 flex min-w-0 flex-wrap gap-2 text-xs text-muted-foreground",children:[c.jsxs("span",{children:[e.messageCount," messages sent"]}),c.jsxs("span",{children:[e.toolCount," tool schemas available"]}),e.round.tool_choice?c.jsxs("span",{className:"min-w-0 break-words",children:["tool_choice: ",e.round.tool_choice]}):null]}),c.jsx(imt,{metrics:e.round.metrics})]});if(e.kind==="tools")return c.jsxs("div",{className:"relative ml-2 sm:ml-4 border-l border-border pl-2 sm:pl-4",children:[c.jsx("div",{className:"absolute -left-1.5 top-3 h-3 w-3 rounded-full border border-border bg-background"}),c.jsxs("div",{className:"rounded-md border border-border/80 bg-muted/25 p-3",children:[c.jsxs("div",{className:"mb-2 flex items-center gap-2 text-xs font-medium text-foreground",children:[c.jsx(rR,{className:"h-3.5 w-3.5"}),"Tools offered to model in round ",e.roundNumber]}),c.jsx("div",{className:"grid gap-2 sm:grid-cols-2",children:e.tools.map(n=>c.jsxs("details",{className:"rounded-md border border-border/70 bg-background/70 p-2",children:[c.jsx("summary",{className:"cursor-pointer text-xs font-medium text-foreground",children:n.name}),n.description?c.jsx("p",{className:"mt-1 text-xs leading-relaxed text-muted-foreground",children:n.description}):null,c.jsx("pre",{className:"mt-2 max-h-40 overflow-auto whitespace-pre-wrap break-words rounded bg-muted/40 p-2 font-mono text-xs leading-5",children:Hf(n.raw)})]},n.name))})]})]});if(e.kind==="response")return c.jsxs("div",{className:"relative ml-2 sm:ml-4 border-l border-border pl-2 sm:pl-4",children:[c.jsx("div",{className:"absolute -left-1.5 top-3 h-3 w-3 rounded-full border border-emerald-500/40 bg-background"}),c.jsx(fq,{tone:"assistant",defaultOpen:!1,badge:c.jsx("span",{className:Ce("rounded-md border px-2 py-0.5 text-xs font-semibold",hq("assistant")),children:"assistant response"}),meta:c.jsx("span",{className:"text-xs text-muted-foreground",children:"rendered chat answer"}),preview:c.jsx("span",{className:"block truncate",children:e.content||"(empty response)"}),children:c.jsx("pre",{className:"max-h-72 overflow-auto whitespace-pre-wrap break-words rounded-md bg-background/70 p-3 font-mono text-xs leading-5 text-foreground [overflow-wrap:anywhere]",children:e.content||"(empty response)"})})]});const r=e.content?e.content.length>80?e.content.slice(0,80)+"...":e.content:"(empty content)";return c.jsxs("div",{className:"relative ml-2 sm:ml-4 border-l border-border pl-2 sm:pl-4",children:[c.jsx("div",{className:"absolute -left-1.5 top-3 h-3 w-3 rounded-full border border-border bg-background"}),c.jsxs(fq,{defaultOpen:!1,badge:c.jsx("span",{className:Ce("rounded-md border px-2 py-0.5 text-xs font-semibold",hq(e.role)),children:e.role}),meta:c.jsxs(c.Fragment,{children:[c.jsxs("span",{className:"text-xs text-muted-foreground",children:["round ",e.roundNumber," / message ",e.index+1]}),e.toolCalls.length>0?c.jsxs("span",{className:"text-xs text-amber-600 dark:text-amber-400",children:[e.toolCalls.length," tool call",e.toolCalls.length!==1?"s":""]}):null]}),preview:c.jsx("span",{className:"block truncate",children:r}),children:[c.jsx("pre",{className:"max-h-72 overflow-auto whitespace-pre-wrap break-words rounded-md bg-muted/35 p-3 font-mono text-xs leading-5 text-foreground [overflow-wrap:anywhere]",children:e.content||"(empty content)"}),e.toolCalls.length>0?c.jsx("div",{className:"mt-3 space-y-2",children:e.toolCalls.map(n=>c.jsxs("details",{className:"rounded-md border border-amber-500/25 bg-amber-500/10 p-2",children:[c.jsxs("summary",{className:"cursor-pointer text-xs font-medium text-amber-800 dark:text-amber-200",children:["Tool call: ",n.name," ",c.jsxs("span",{className:"font-normal text-muted-foreground",children:["(",n.id,")"]})]}),c.jsx("pre",{className:"mt-2 max-h-48 overflow-auto whitespace-pre-wrap break-words rounded bg-background/70 p-2 font-mono text-xs leading-5",children:n.args||"{}"})]},n.id))}):null,c.jsxs("details",{className:"mt-2",children:[c.jsx("summary",{className:"cursor-pointer text-xs text-muted-foreground",children:"Raw message JSON"}),c.jsx("pre",{className:"mt-2 max-h-48 overflow-auto whitespace-pre-wrap break-words rounded bg-muted/35 p-2 font-mono text-xs leading-5",children:Hf(e.raw)})]})]})]})}function omt({open:e,rows:r,contextFlow:n}){const i=y.useRef(null),s=sR({count:r.length,getScrollElement:()=>i.current,estimateSize:a=>{const o=r[a];return o?o.kind==="summary"?110:o.kind==="memory"?Math.min(360,84+o.flow.retrieved.length*74):o.kind==="round"?120:o.kind==="tools"?Math.min(420,110+o.tools.length*72):o.kind==="response"?72:52:120},overscan:5,enabled:e});return y.useEffect(()=>{if(!e)return;const a=window.requestAnimationFrame(()=>{s.measure()});return()=>window.cancelAnimationFrame(a)},[e,r.length,s]),c.jsxs("div",{className:"flex h-full min-h-0 flex-col px-3 pb-3 pt-2",children:[n!=null&&n.note?c.jsx("p",{className:"mb-2 shrink-0 rounded-md border border-border/70 bg-muted/40 px-2.5 py-1.5 text-xs text-muted-foreground",children:n.note}):null,r.length>0?c.jsx("div",{ref:i,className:"min-h-0 flex-1 overflow-auto pr-2",children:c.jsx("div",{className:"relative w-full",style:{height:`${s.getTotalSize()}px`},children:s.getVirtualItems().map(a=>{const o=r[a.index];return o?c.jsx("div",{"data-index":a.index,ref:s.measureElement,className:"absolute left-0 top-0 w-full pb-3",style:{transform:`translateY(${a.start}px)`},children:c.jsx(amt,{row:o})},o.id):null})})}):c.jsxs("div",{className:"flex min-h-0 flex-1 items-center justify-center rounded-md border border-dashed border-border text-sm text-muted-foreground",children:[c.jsx(yd,{className:"mr-2 h-4 w-4"}),"No context snapshot is available for this message."]})]})}function lmt({rawText:e}){const r=pS(),n=e||"No context snapshot is available for this message.";return c.jsx("div",{className:"h-full min-h-0 p-3 pt-2",children:c.jsx("div",{className:"h-full min-h-0 overflow-hidden rounded-md border border-border/70 bg-background",children:c.jsx(tS,{height:"100%",language:e?"json":"plaintext",beforeMount:i=>Ll(i,r),theme:r,value:n,options:{readOnly:!0,domReadOnly:!0,minimap:{enabled:!1},"semanticHighlighting.enabled":!0,automaticLayout:!0,wordWrap:"on",fontSize:12,lineHeight:18,padding:{top:12,bottom:12},scrollBeyondLastLine:!1,renderLineHighlight:"none",overviewRulerLanes:0,tabSize:2}})})})}function cmt({open:e,onOpenChange:r,contextFlow:n,responseContent:i}){const[s,a]=y.useState("trace"),[o,l]=y.useState(!1),u=y.useMemo(()=>smt(n,i),[n,i]),d=y.useMemo(()=>n?JSON.stringify(n,null,2):"",[n]),h=async()=>{d&&(await navigator.clipboard.writeText(d),l(!0),window.setTimeout(()=>l(!1),1200))};return c.jsx(jo,{open:e,onOpenChange:r,children:c.jsxs(Ya,{showCloseButton:!1,className:"grid h-[95vh] w-[calc(100dvw-1rem)] max-w-[1200px] grid-rows-[auto_minmax(0,1fr)] overflow-hidden p-0 sm:h-[85vh] sm:w-[96vw]",children:[c.jsx(el,{className:"border-b px-3 py-2",children:c.jsxs("div",{className:"grid min-w-0 grid-cols-[minmax(0,1fr)_auto] items-center gap-2",children:[c.jsxs("div",{className:"min-w-0",children:[c.jsx(Xa,{className:"truncate text-sm font-semibold",children:"LLM Context Flow"}),c.jsx(ku,{className:"truncate text-xs",children:n?`${n.provider}${n.model?` / ${n.model}`:""} · ${n.rounds.length} round${n.rounds.length===1?"":"s"}`:"No context snapshot available"})]}),c.jsxs("div",{className:"-my-1 flex shrink-0 items-center gap-1 p-1",children:[c.jsx(ge,{type:"button",variant:s==="trace"?"default":"outline",size:"sm",className:"h-7 px-2 text-xs",onClick:()=>a("trace"),children:"Trace"}),c.jsx(ge,{type:"button",variant:s==="raw"?"default":"outline",size:"sm",className:"h-7 px-2 text-xs",onClick:()=>a("raw"),children:"Raw"}),c.jsxs(ge,{type:"button",variant:"outline",size:"sm",className:"h-7 px-2 text-xs",onClick:h,disabled:!d,children:[o?c.jsx(ls,{className:"h-3 w-3 sm:mr-1"}):c.jsx(Tl,{className:"h-3 w-3 sm:mr-1"}),c.jsx("span",{className:"hidden sm:inline",children:o?"Copied":"Copy"}),c.jsx("span",{className:"sr-only",children:o?"Copied":"Copy raw trace"})]}),c.jsxs(qM,{className:"ml-1 rounded-sm p-1 opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",children:[c.jsx(Hn,{className:"h-4 w-4"}),c.jsx("span",{className:"sr-only",children:"Close"})]})]})]})}),s==="trace"?c.jsx(omt,{open:e,rows:u,contextFlow:n},"trace-list"):c.jsx(lmt,{rawText:d})]})})}const D7=/^[A-Za-z]:[\\/]/,umt=/^\//;function pq(e){return e.replace(/\\/g,"/").replace(/\/+$/,"")||(e.startsWith("/")?"/":"")}function dmt(e){const r=e.pathname||"/",n=/^\/[A-Za-z]:\//.test(r)?r.slice(1):r;return!e.hostname||e.hostname==="localhost"?n:`//${e.hostname}${n}`}function Hde(e){return D7.test(e)||umt.test(e)}function Wde(e,r){const n=e.replace(/\\/g,"/");if(!n||n==="/")return!1;if(/^L\d+(?:C\d+)?$/i.test(r))return!0;const i=n.split("/").pop()??"";return/\.[A-Za-z0-9]+(?::\d+(?::\d+)?)?$/.test(i)}function hmt(e,r){if(r)return null;const n=e.replace(/\\/g,"/"),i=n.lastIndexOf("/"),a=(i>=0?n.slice(i+1):n).match(/^(.*?):(\d+)(?::(\d+))?$/);if(!a)return null;const o=i>=0?`${e.slice(0,i+1)}${a[1]??""}`:a[1]??"";if(!Hde(o)||!Wde(o,`L${a[2]}`))return null;const l={path:o,line:Number.parseInt(a[2],10)};return a[3]&&(l.column=Number.parseInt(a[3],10)),l}function fmt(e){if(!e)return null;const r=e.trim();if(!r)return null;let n=r,i="";try{const u=new URL(r);if(u.protocol==="http:"||u.protocol==="https:"){if(n=u.pathname,i=u.hash.startsWith("#")?u.hash.slice(1):u.hash,!Wde(n,i))return null}else if(u.protocol==="file:")n=dmt(u),i=u.hash.startsWith("#")?u.hash.slice(1):u.hash;else{const d=r.indexOf("#");d>=0&&(n=r.slice(0,d),i=r.slice(d+1))}}catch{const u=r.indexOf("#");u>=0&&(n=r.slice(0,u),i=r.slice(u+1))}let s;try{s=decodeURIComponent(n)}catch{return null}const a=hmt(s,i);if(a)return a;if(!Hde(s))return null;const o={path:s},l=i.match(/^L(\d+)(?:C(\d+))?$/i);return l&&(o.line=Number.parseInt(l[1],10),l[2]&&(o.column=Number.parseInt(l[2],10))),o}function mq(e,r){if(!r)return!1;const n=pq(e),i=pq(r);if(!n||!i)return!1;const s=D7.test(n)?n.toLowerCase():n,a=D7.test(i)?i.toLowerCase():i;return s===a||(a==="/"?s.startsWith("/"):s.startsWith(`${a}/`))}function pmt(e){const r=e==null?void 0:e.memory;if(!r||r.injectedIds.length===0)return[];const n=new Set(r.injectedIds);return r.retrieved.filter(i=>n.has(i.id))}const mmt="memory_feedback",gq=500,yL={should_have_remembered:{label:"Memorize this",description:"The user wants this assistant answer reviewed as durable memory.",tag:"should-have-remembered"},wrong_memory_used:{label:"Wrong memory used",description:"The user says an incorrect or irrelevant memory influenced this answer.",tag:"wrong-memory-used"}};function gmt(e){return yL[e].label}function ymt(e){return`${yL[e].label} feedback saved`}function xmt(e){const r=(e??"").replace(/\s+/g," ").trim();return r?r.length<=gq?r:`${r.slice(0,gq-3).trimEnd()}...`:null}function vmt({kind:e,messageId:r,sessionId:n,projectId:i,answerContent:s}){const a=yL[e],o=xmt(s);return{content:[`Memory feedback: ${a.label}. ${a.description}`,o?`Assistant answer excerpt: ${o}`:null].filter(Boolean).join(`
1424
1424
  `),projectId:i??null,sessionId:n??null,sourceType:mmt,sourceId:r,sourceSurface:"chat",tags:["memory-feedback","feedback",a.tag]}}function bmt(e){return e.content.length>0||e.userDisplayText.length>0||e.userDisplaySegments.length>0||e.attachmentCount>0}function _mt(){return["fixed left-1/2 bottom-[max(0.75rem,env(safe-area-inset-bottom))] z-50","w-[min(42rem,calc(100vw-1rem))] max-w-[calc(100vw-1rem)] -translate-x-1/2","rounded-2xl border border-border bg-background p-1.5 shadow-2xl shadow-black/30","md:static md:w-full md:max-w-3xl md:translate-x-0","md:rounded-none md:border-0 md:bg-transparent md:p-0 md:shadow-none"].join(" ")}function wmt(e){return["space-y-3 origin-bottom transition-opacity duration-150 ease-out",e?"opacity-100":"opacity-0"].join(" ")}const Smt=3,kmt=120,m1=new Map;function yq(e,r){return!!(e&&e!=="jait"&&r.length>=Smt)}const xq=/<pre[^>]*><code>([\s\S]*)<\/code><\/pre>/;function vq(){return c.jsx("span",{className:"inline-flex items-center gap-1",children:[0,1,2].map(e=>c.jsx("span",{className:"h-1.5 w-1.5 rounded-full bg-current animate-pulse",style:{animationDelay:`${e*160}ms`}},e))})}function Ude(e){const r=e.toLowerCase();return!r||r==="text"||r==="plain"?"txt":r==="shell"||r==="sh"?"bash":r}function Cmt(e,r,n){return`${n}\0${Ude(r)}\0${e}`}function w8(e,r){if(m1.size>=kmt){const n=m1.keys().next().value;n&&m1.delete(n)}m1.set(e,r)}function jmt({code:e,language:r,className:n}){const[i,s]=y.useState(null);return y.useEffect(()=>{let a=!1;const o=setTimeout(()=>{(async()=>{var f,m;const u=document.documentElement.classList.contains("dark")?"github-dark":"github-light",d=Ude(r),h=Cmt(e,r,u);if(m1.has(h)){s(m1.get(h)??null);return}try{const x=await eq(e,{lang:d,theme:u});if(a)return;const v=((f=x.match(xq))==null?void 0:f[1])??null;w8(h,v),s(v)}catch{try{const x=await eq(e,{lang:"txt",theme:u});if(a)return;const v=((m=x.match(xq))==null?void 0:m[1])??null;w8(h,v),s(v)}catch{a||(w8(h,null),s(null))}}})()},150);return()=>{a=!0,clearTimeout(o)}},[e,r]),i?c.jsx("code",{className:Ce(n,"whitespace-pre"),dangerouslySetInnerHTML:{__html:i}}):c.jsx("code",{className:Ce(n,"whitespace-pre"),children:e})}function Vde(e){return"prose dark:prose-invert max-w-none break-words [overflow-wrap:anywhere] prose-pre:bg-muted prose-pre:border prose-pre:max-w-full prose-pre:overflow-x-auto prose-code:before:content-none prose-code:after:content-none prose-p:leading-relaxed [font-size:0.9rem]"}function Nmt(e){const r=e.replace(/\\/g,"/"),n=r.split("/");return n[n.length-1]??r}function Tmt({href:e,target:r,onOpenPath:n}){const i=Nmt(r.path),s=r.line?`L${r.line}${r.column?`:${r.column}`:""}`:null;return c.jsxs("a",{href:e,className:Ce("not-prose inline-flex max-w-full items-center gap-1.5 rounded-md border border-border/70 bg-muted/45 px-2 py-1 align-middle text-xs font-medium leading-none text-foreground no-underline transition-colors hover:bg-muted focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2"),title:r.path,onClick:a=>{a.preventDefault(),n(r.path,r.line,r.column)},children:[c.jsx(fa,{filename:i,className:"h-3.5 w-3.5 shrink-0"}),c.jsx("span",{className:"max-w-[220px] truncate",children:i}),s?c.jsx("span",{className:"shrink-0 rounded bg-background/80 px-1 py-0.5 text-2xs text-muted-foreground",children:s}):null]})}function qde(e){return{pre:({children:r})=>c.jsx(c.Fragment,{children:r}),code:({node:r,className:n,children:i,ref:s,...a})=>{var l,u;if(!(((l=r==null?void 0:r.position)==null?void 0:l.start.line)===((u=r==null?void 0:r.position)==null?void 0:u.end.line)&&!n)){const d=typeof n=="string"&&n.replace(/^language-/,"").split(" ")[0]||"text",h=String(i??"").replace(/\n$/,"");return c.jsxs(Kft,{code:h,language:d,children:[c.jsxs(Yft,{children:[c.jsx(Xft,{children:c.jsx(Jft,{children:d})}),c.jsx(Zft,{children:c.jsx(Qft,{})})]}),c.jsx("div",{className:"overflow-x-auto px-3 py-2 text-sm",children:c.jsx(jmt,{code:h,language:d,className:n})})]})}return c.jsx("code",{className:Ce("not-prose inline-flex max-w-full items-baseline rounded-md border border-border/70 bg-muted/45 px-2 py-1 align-middle font-mono text-xs font-medium leading-[1.2] text-foreground","shadow-[inset_0_1px_0_hsl(var(--background)/0.55)]"),...a,children:c.jsx("span",{className:"max-w-[32rem] truncate sm:max-w-[40rem]",children:i})})},a:({href:r,ref:n,...i})=>{if(!e)return c.jsx("a",{href:r,...i,children:i.children});const s=fmt(r);return s?c.jsx(Tmt,{href:r,target:s,onOpenPath:e}):c.jsx("a",{href:r,...i,children:i.children})},img:({src:r,alt:n,ref:i,...s})=>{const a=typeof r=="string"?yde(r):null;return a?c.jsx("a",{href:a,target:"_blank",rel:"noreferrer",className:"not-prose block overflow-hidden rounded-xl border border-border/60 bg-muted/20 no-underline",children:c.jsx("img",{src:a,alt:n??"Chat image",loading:"lazy",className:"max-h-[28rem] w-full object-contain bg-background/80",...s})}):c.jsx("span",{className:"inline-flex rounded-md border border-dashed border-border/70 px-2 py-1 text-xs text-muted-foreground",children:"image unavailable"})}}}function Emt({content:e,compact:r,onOpenPath:n}){const i=y.useMemo(()=>qde(n),[n]);return c.jsx("div",{className:Vde(),children:c.jsx(lae,{remarkPlugins:[Xse],components:i,children:e})})}function Amt({content:e,compact:r,onOpenPath:n}){const i=y.useMemo(()=>qde(n),[n]),s=({blockMatch:o})=>c.jsx(lae,{remarkPlugins:[Xse],components:i,children:o.output}),{blockMatches:a}=Oht({llmOutput:e,blocks:[],fallbackBlock:{component:s,lookBack:bht()},isStreamFinished:!1});return c.jsx("div",{className:Vde(),children:a.map((o,l)=>{const u=o.block.component;return c.jsx(u,{blockMatch:o},l)})})}const I7=y.memo(function({content:r,compact:n,isStreaming:i,preferLlmUi:s,onOpenPath:a}){return s&&i?c.jsx(Amt,{content:r,compact:n,onOpenPath:a}):c.jsx(Emt,{content:r,compact:n,onOpenPath:a})});I7.displayName="AssistantMarkdown";function Omt({messageId:e,messageIndex:r,messageFromEnd:n,role:i,content:s,contextFlow:a,displayContent:o,referencedFiles:l,displaySegments:u,attachments:d,thinking:h,thinkingDuration:f,toolCalls:m,segments:x,isStreaming:v,compact:_,preferLlmUi:w,provider:S,threadControlThreads:C,onOpenTerminal:j,renderInlineSecretPrompt:T,onEditMessage:E,editComposer:N,onOpenPath:M,onOpenDiff:$,onOpenMemorySource:q,onMemoryFeedback:F}){const B=i==="user",W=Um(),{userDisplayText:D,userDisplaySegments:O}=y.useMemo(()=>{if(!B)return{userDisplayText:s,userDisplaySegments:[]};if(u!=null&&u.length)return{userDisplayText:k0(u),userDisplaySegments:u};if(o){const Ye=Cj(o,l);return{userDisplayText:o,userDisplaySegments:Ye}}const Ee=w7(s);return{userDisplayText:Ee.text,userDisplaySegments:Ee.displaySegments}},[B,s,o,l,u]),[I,R]=y.useState(!1),[P,H]=y.useState(!1),[G,U]=y.useState(!1),[V,J]=y.useState(!1),[z,ee]=y.useState(!1),[X,Q]=y.useState(!1),[ie,re]=y.useState(!1),[le,fe]=y.useState(null),[se,oe]=y.useState(""),[be,je]=y.useState([]),[He,Qe]=y.useState(null),[ft,Nt]=y.useState(null),Mt=y.useMemo(()=>{if(!B)return[];const Ee=$s(ft??O).flatMap(Ye=>Ye.type==="image"||Ye.type==="attachment"?[{name:Ye.name,mimeType:Ye.mimeType,data:Ye.data,...Ye.type==="image"?{preview:`data:${Ye.mimeType};base64,${Ye.data}`}:{}}]:[]);return Ee.length>0?Ee:d??[]},[d,B,ft,O]),Ut=y.useMemo(()=>Mt.filter(Ee=>Ee.mimeType.startsWith("image/")),[Mt]),Dt=y.useMemo(()=>Mt.filter(Ee=>!Ee.mimeType.startsWith("image/")),[Mt]),Bt=B&&bmt({content:s,userDisplayText:He??D,userDisplaySegments:ft??O,attachmentCount:Mt.length}),mt=y.useRef(null),Ae=y.useRef(null),jt=y.useRef(null),Ne=y.useRef(null);y.useEffect(()=>()=>{mt.current!==null&&window.clearTimeout(mt.current),Ae.current!==null&&window.clearTimeout(Ae.current)},[]),y.useEffect(()=>{G||(oe(D),je(O))},[G,O,D]),y.useEffect(()=>{if(!ft&&He==null)return;const Ee=He===D,Ye=ft===O||JSON.stringify(ft??[])===JSON.stringify(O);Ee&&Ye&&(Qe(null),Nt(null))},[ft,He,O,D]),y.useEffect(()=>{var Ye;if(!G){J(!1);return}const Ee=window.requestAnimationFrame(()=>{J(!0)});return(Ye=Ne.current)==null||Ye.focus(),()=>window.cancelAnimationFrame(Ee)},[G]);const ke=()=>{var Ye;const Ee=[];if(m&&m.length>0)for(const _e of m){const Wt=_e.tool.replace(/_/g,"."),vt=Object.entries(_e.args).filter(([,en])=>en!=null&&en!=="").map(([en,Sn])=>`${en}: ${typeof Sn=="string"?Sn:JSON.stringify(Sn)}`).join(", "),Rt=_e.status==="success"?"✓":_e.status==="error"?"✗":"…",sr=_e.completedAt&&_e.startedAt?Mde(_e.startedAt,_e.completedAt):"";if(Ee.push(`[${Rt} ${Wt}] ${vt}`),(Ye=_e.result)!=null&&Ye.message){const en=_e.result.message.length>500?_e.result.message.slice(0,500)+"…":_e.result.message;Ee.push(en)}sr&&Ee.push(`Duration: ${sr}`),Ee.push("")}return s&&Ee.push(B?wue(O)||D:s),Ee.join(`
1425
- `).trim()},et=async()=>{const Ee=ke();if(!Ee)return;const Ye=B?Sue(O):null;try{Ye&&typeof ClipboardItem<"u"&&navigator.clipboard.write?await navigator.clipboard.write([new ClipboardItem({"text/plain":new Blob([Ee],{type:"text/plain"}),[kj]:new Blob([Ye],{type:kj})})]):await navigator.clipboard.writeText(Ee)}catch{const _e=document.createElement("textarea");_e.value=Ee,_e.style.position="fixed",_e.style.opacity="0",document.body.appendChild(_e),_e.focus(),_e.select(),document.execCommand("copy"),document.body.removeChild(_e)}R(!0),mt.current!==null&&window.clearTimeout(mt.current),mt.current=window.setTimeout(()=>R(!1),1200)},at=$0(),Ze=B&&!!e&&!!E,xt=Ze,Tt=v&&!h&&!(typeof s=="string"?s:"").trim(),We=B||!v,ve=!B&&!!e&&!!F&&!v,ye=(le==null?void 0:le.status)==="saving",Fe=y.useCallback(()=>{!Ze||z||(oe(D),je(O),U(!0))},[Ze,z,O,D]),Ke=y.useCallback(()=>{oe(D),je(O),U(!1)},[O,D]),Be=()=>{var Ye;!Ze||G||typeof window<"u"&&(Ye=window.getSelection())!=null&&Ye.toString().trim()||Fe()},At=y.useCallback(async(Ee,Ye)=>{if(!Ze||!e||!E||z)return;const _e=npt(Ee??se,Ye??be,O);if(_e){Qe(_e.text),Nt(_e.displaySegments),U(!1),ee(!0);try{await E(e,_e.text,r,n,{referencedFiles:_e.referencedFiles,displaySegments:_e.displaySegments})}catch(Wt){throw Qe(null),Nt(null),U(!0),Wt}finally{ee(!1)}}},[Ze,se,be,z,e,n,r,E]),dt=async(Ee,Ye)=>{if(!Ze||!e||!E)return;const _e=Ee.trim();_e&&await E(e,_e,r,n,{referencedFiles:(Ye??O).filter(Wt=>Wt.type==="file").map(Wt=>({path:Wt.path,name:Wt.name})),displaySegments:Ye??O})},er=async()=>{if(xt){H(!0);try{await dt(D,O)}finally{H(!1)}}},Jt=async Ee=>{if(!(!ve||!e||ye)&&await W({title:"Memorize this?",description:"This saves a memory feedback item with this assistant message as context. Future agents can use it when reviewing or updating memory for this chat and project.",confirmLabel:"Memorize",cancelLabel:"Cancel"})){fe({kind:Ee,status:"saving"});try{await(F==null?void 0:F({messageId:e,kind:Ee,content:s})),fe({kind:Ee,status:"saved"}),Ae.current!==null&&window.clearTimeout(Ae.current),Ae.current=window.setTimeout(()=>fe(null),1200)}catch{fe(null)}}},Vt=(Ee,Ye)=>(le==null?void 0:le.kind)!==Ee?Ye:le.status==="saving"?c.jsx(Ot,{className:"h-3.5 w-3.5 animate-spin"}):c.jsx(ls,{className:"h-3.5 w-3.5"}),Et=[...Ze?[{key:"edit",label:"Edit message",icon:c.jsx(L_,{className:"h-3.5 w-3.5"}),onClick:()=>Fe()}]:[],...xt?[{key:"retry",label:"Retry from this message",icon:c.jsx(MY,{className:Ce("h-3.5 w-3.5",P&&"animate-spin")}),onClick:()=>{er()},disabled:P}]:[],...!B&&a?[{key:"context",label:"View LLM context",icon:c.jsx(wm,{className:"h-3.5 w-3.5"}),onClick:()=>Q(!0)}]:[],...ve?[{key:"memory",label:gmt("should_have_remembered"),icon:Vt("should_have_remembered",c.jsx(vo,{className:"h-3.5 w-3.5"})),onClick:()=>{Jt("should_have_remembered")},disabled:ye}]:[],{key:"copy",label:I?"Copied":"Copy message",icon:I?c.jsx(ls,{className:"h-3.5 w-3.5"}):c.jsx(Tl,{className:"h-3.5 w-3.5"}),onClick:()=>{et()}}],It=Ee=>G||!We||!s||Et.length===0?null:at?c.jsx("div",{className:Ce("absolute z-10","right-0 bottom-0"),children:c.jsxs(Ml,{children:[c.jsx(Rl,{asChild:!0,children:c.jsx("button",{type:"button","aria-label":"Message actions",className:"flex h-6 w-6 items-center justify-center rounded-md text-muted-foreground transition-colors hover:text-foreground",children:c.jsx(H1,{className:"h-4 w-4"})})}),c.jsx(Ko,{align:"end",side:"top",className:"min-w-[10rem]",children:Et.map(Ye=>c.jsxs(Vn,{disabled:Ye.disabled,onSelect:_e=>{_e.preventDefault(),Ye.onClick()},className:"gap-2",children:[Ye.icon,c.jsx("span",{children:Ye.label})]},Ye.key))})]})}):c.jsx("div",{className:Ce("absolute z-10 rounded-md border border-border/60 bg-background/95 p-0.5 shadow-sm","right-1 bottom-[.25rem]","opacity-0 transition-opacity group-hover/message:opacity-100 focus-within:opacity-100",I&&"opacity-100"),children:c.jsx(tpt,{children:Et.map(Ye=>c.jsx(rpt,{onClick:_e=>{_e.preventDefault(),_e.stopPropagation(),Ye.onClick()},disabled:Ye.disabled,"aria-label":Ye.label,tooltip:Ye.label,className:"h-5 w-5 rounded-md p-0 [&_svg]:h-3 [&_svg]:w-3",children:Ye.icon},Ye.key))})}),Ft=B?null:It(),ze=!B&&(x==null?void 0:x.some(Ee=>Ee.type==="thinking"&&Ee.content.trim())),tt=B?[]:pmt(a),yt=tt.length>0?c.jsxs("div",{className:"not-prose mt-2 flex min-w-0 flex-wrap items-center gap-1.5 text-xs text-muted-foreground",children:[c.jsxs("button",{type:"button",className:"inline-flex max-w-full items-center gap-1.5 rounded-md border border-amber-500/30 bg-amber-500/10 px-2 py-1 font-medium text-amber-700 transition-colors hover:bg-amber-500/15 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 dark:text-amber-200",onClick:Ee=>{Ee.preventDefault(),Ee.stopPropagation(),re(Ye=>!Ye)},"aria-expanded":ie,title:ie?"Hide injected memories":"Show memories injected for this answer",children:[c.jsx(vo,{className:"h-3.5 w-3.5 shrink-0"}),c.jsx("span",{children:"Memory"}),c.jsx("span",{className:"rounded bg-background/75 px-1 text-2xs",children:tt.length})]}),ie&&tt.slice(0,3).map(Ee=>{const Ye={memoryId:Ee.id,sourceType:Ee.sourceType,sourceId:Ee.sourceId,sourceSurface:Ee.sourceSurface},_e=!!(q&&Ee.sourceSurface==="chat"&&Ee.sourceId);return c.jsxs("button",{type:"button",className:"inline-flex max-w-[220px] items-center gap-1.5 rounded-md border border-border/70 bg-muted/45 px-2 py-1 text-foreground transition-colors hover:bg-muted focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",onClick:Wt=>{Wt.preventDefault(),Wt.stopPropagation(),_e?q==null||q(Ye):Q(!0)},title:_e?`Open source chat for injected memory: ${Ee.source||Ee.id}`:`View injected memory source: ${Ee.source||Ee.id}`,children:[_e?c.jsx(yd,{className:"h-3.5 w-3.5 shrink-0"}):c.jsx(vo,{className:"h-3.5 w-3.5 shrink-0"}),c.jsx("span",{className:"truncate",children:Ee.source||Ee.id})]},Ee.id)})]}):null;return c.jsxs(c.Fragment,{children:[c.jsx(ept,{from:i,className:Ce(_?"py-2":"py-4"),children:c.jsxs("div",{className:Ce("min-w-0 max-w-[85%] space-y-2",B&&"order-1"),children:[!B&&h&&!ze&&c.jsx(tq,{content:h,isStreaming:!!v&&!s,duration:f}),!B&&x&&x.length>0?c.jsxs("div",{className:"relative min-w-0 max-w-full select-text break-words [overflow-wrap:anywhere]",children:[x.map((Ee,Ye)=>{if(Ee.type==="toolGroup"){const _e=(m??[]).filter(vt=>Ee.callIds.includes(vt.callId)),Wt=x.slice(Ye+1).some(vt=>vt.type==="text"&&typeof vt.content=="string"&&vt.content.trim());return _e.length>0?yq(S,_e)?c.jsx($7,{provider:S,calls:_e,isStreaming:!!v&&Ye===x.length-1,threadControlThreads:C,onOpenTerminal:j,onOpenDiff:$,renderInlineSecretPrompt:T},`tg-${Ye}`):c.jsx(L7,{calls:_e,collapsible:Wt,threadControlThreads:C,onOpenTerminal:j,onOpenDiff:$,renderInlineSecretPrompt:T},`tg-${Ye}`):null}return Ee.type==="thinking"?Ee.content.trim()?c.jsx(tq,{content:Ee.content,isStreaming:!!v&&Ye===x.length-1,duration:f},`th-${Ye}`):null:Ee.type==="error"?c.jsxs("div",{className:"flex items-start gap-2.5 rounded-lg border border-red-500/40 bg-red-500/10 px-3 py-2.5 text-sm text-red-600 dark:text-red-400",children:[c.jsx(W1,{className:"mt-0.5 h-4 w-4 shrink-0"}),c.jsx("span",{className:"min-w-0 break-words",children:Ee.content})]},`err-${Ye}`):typeof Ee.content=="string"&&Ee.content.trim()?c.jsx(y8,{"data-message-from":"assistant",className:"max-w-full bg-card/78",children:c.jsx(I7,{content:Ee.content,compact:_,isStreaming:!!v&&Ye===x.length-1,preferLlmUi:w,onOpenPath:M})},`ts-${Ye}`):null}),v&&!s&&!x.some(Ee=>Ee.type==="text"&&typeof Ee.content=="string"&&Ee.content.trim())&&c.jsx("div",{className:"flex items-center gap-3 px-1 py-1 text-sm text-muted-foreground",children:c.jsx(vq,{})}),Ft,yt]}):c.jsxs(c.Fragment,{children:[m&&m.length>0&&(yq(S,m)?c.jsx($7,{provider:S,calls:m,isStreaming:v,threadControlThreads:C,onOpenTerminal:j,onOpenDiff:$,renderInlineSecretPrompt:T}):c.jsx(L7,{calls:m,collapsible:S!=="jait",threadControlThreads:C,onOpenTerminal:j,onOpenDiff:$,renderInlineSecretPrompt:T})),Bt||s?B?G?c.jsx("div",{className:_mt(),onClick:Ee=>Ee.stopPropagation(),children:c.jsx("div",{className:wmt(V),children:c.jsx(Ew,{ref:Ne,draftStateKey:`edit:${e??"user-message"}`,value:se,segments:be,onChange:Ee=>{var Ye;oe(Ee),je(((Ye=Ne.current)==null?void 0:Ye.getSegments())??[])},onSubmit:(Ee,Ye,_e)=>{const Wt=_e??[],vt=k0(Wt)||se;je(Wt),At(vt,Wt)},disabled:z,controlsDisabled:z,placeholder:"Edit message...",onVoiceInput:N==null?void 0:N.onVoiceInput,voiceRecording:N==null?void 0:N.voiceRecording,voiceLevels:N==null?void 0:N.voiceLevels,voiceTranscribing:N==null?void 0:N.voiceTranscribing,onVoiceStop:N==null?void 0:N.onVoiceStop,mode:N==null?void 0:N.mode,onModeChange:N==null?void 0:N.onModeChange,provider:N==null?void 0:N.provider,onProviderChange:N==null?void 0:N.onProviderChange,responseStyle:N==null?void 0:N.responseStyle,onResponseStyleChange:N==null?void 0:N.onResponseStyleChange,providerRuntimeMode:N==null?void 0:N.providerRuntimeMode,onProviderRuntimeModeChange:N==null?void 0:N.onProviderRuntimeModeChange,cliModel:N==null?void 0:N.cliModel,onCliModelChange:N==null?void 0:N.onCliModelChange,sessionInfo:N==null?void 0:N.sessionInfo,projectNodeId:N==null?void 0:N.projectNodeId,availableFiles:(N==null?void 0:N.availableFiles)??C0(O),onSearchFiles:N==null?void 0:N.onSearchFiles,projectOpen:(N==null?void 0:N.projectOpen)??C0(O).length>0,footerTrailingContent:c.jsx(ge,{type:"button",variant:"ghost",size:"icon",className:"h-8 w-8 shrink-0 rounded-lg",onClick:Ke,disabled:z,"aria-label":"Cancel editing message",title:"Cancel editing",children:c.jsx(Hn,{className:"h-3.5 w-3.5"})}),className:"rounded-lg border-primary/20 bg-primary/[0.08] dark:!bg-primary/[0.08] shadow-none [&_.text-muted-foreground]:text-muted-foreground [&>div]:!bg-transparent [&_[contenteditable='true']]:!bg-transparent"},`edit-${e??"user-message"}`)})}):c.jsxs("div",{className:"relative w-fit max-w-full",children:[c.jsx(y8,{ref:jt,"data-message-from":"user",className:Ce("min-w-0 rounded-lg bg-muted px-4 py-3 break-words [overflow-wrap:anywhere]",Ze&&!G&&"cursor-text transition-colors hover:bg-muted/80","leading-relaxed [font-size:0.9rem]"),onClick:Be,title:Ze&&!G?"Click to edit message":void 0,children:c.jsxs("div",{className:"min-w-0 space-y-3",children:[c.jsx("div",{className:"min-w-0 whitespace-pre-wrap break-words [overflow-wrap:anywhere]",children:(ft??O).length>0?(ft??O).map((Ee,Ye)=>Ee.type==="text"?c.jsx("span",{children:Ee.text},`text-${Ye}`):Ee.type==="file"?c.jsxs("span",{className:"mx-[2px] inline-flex items-center gap-1.5 rounded-md border border-border/70 bg-muted/45 px-2 py-1 text-xs font-medium leading-none text-foreground align-middle select-none",title:Ee.path,children:[c.jsx(fa,{filename:Ee.name,className:"h-3.5 w-3.5 shrink-0"}),c.jsx("span",{className:"max-w-[180px] truncate",children:Ee.lineRange?`${Ee.name}:${Nw(Ee.lineRange).replace(/^lines? /,"")}`:Ee.name})]},`${Ee.path}-${Ye}`):Ee.type==="project"?c.jsxs("span",{className:"mx-[2px] inline-flex items-center gap-1.5 rounded-md border border-border/70 bg-muted/45 px-2 py-1 text-xs font-medium leading-none text-foreground align-middle select-none",title:Ee.path,children:[c.jsx(W4,{name:Ee.name,className:"h-3.5 w-3.5 shrink-0"}),c.jsx("span",{className:"max-w-[180px] truncate",children:Ee.name})]},`${Ee.path}-${Ye}`):Ee.type==="terminal"?c.jsxs("span",{className:"mx-[2px] inline-flex items-center gap-1.5 rounded-md border border-border/70 bg-muted/45 px-2 py-1 text-xs font-medium leading-none text-foreground align-middle select-none",title:Ee.projectRoot?`${Ee.terminalId} · ${Ee.projectRoot}`:Ee.terminalId,children:[c.jsx("span",{className:"inline-flex h-3.5 w-3.5 items-center justify-center rounded-sm bg-muted-foreground/15 text-2xs font-bold uppercase text-muted-foreground",children:"T"}),c.jsx("span",{className:"max-w-[180px] truncate",children:Ee.lineRange?`${Ee.name}:${Nw(Ee.lineRange).replace(/^lines? /,"")}`:Ee.name})]},`${Ee.terminalId}-${Ye}`):null):He??D}),Ut.length>0&&c.jsx("div",{className:"grid grid-cols-1 gap-2 sm:grid-cols-2",children:Ut.map((Ee,Ye)=>{const _e=Ee.preview??`data:${Ee.mimeType};base64,${Ee.data}`;return c.jsxs(jo,{children:[c.jsx(bve,{asChild:!0,children:c.jsxs("button",{type:"button",className:"group block overflow-hidden rounded-lg border border-primary/10 bg-background/65 text-left transition-colors hover:border-primary/25 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 focus:ring-offset-background","aria-label":`Expand image ${Ee.name}`,children:[c.jsxs("span",{className:"relative block",children:[c.jsx("img",{src:_e,alt:Ee.name,className:"max-h-72 w-full object-cover transition-opacity group-hover:opacity-85"}),c.jsx("span",{className:"pointer-events-none absolute inset-0 flex items-center justify-center opacity-0 transition-opacity group-hover:opacity-100",children:c.jsx("span",{className:"rounded-full bg-black/65 px-3 py-1.5 text-xs font-medium text-white",children:"Click to expand"})})]}),c.jsx("span",{className:"block truncate border-t border-border/60 px-2 py-1 text-xs text-muted-foreground",children:Ee.name})]})}),c.jsxs(Ya,{className:"max-h-[92vh] max-w-[96vw] gap-2 overflow-hidden p-2",showCloseButton:!0,children:[c.jsx(Xa,{className:"mr-8 truncate px-1 text-sm font-medium",children:Ee.name}),c.jsx("img",{src:_e,alt:Ee.name,className:"max-h-[82vh] w-full object-contain"})]})]},`${Ee.name}-${Ye}`)})}),Dt.length>0&&c.jsx("div",{className:"flex flex-wrap gap-2",children:Dt.map((Ee,Ye)=>c.jsxs("span",{className:"inline-flex max-w-full items-center gap-1.5 rounded-md border border-border/70 bg-muted/45 px-2 py-1 text-xs font-medium leading-none text-foreground",title:Ee.mimeType,children:[c.jsx(fa,{filename:Ee.name,className:"h-3.5 w-3.5 shrink-0"}),c.jsx("span",{className:"max-w-[180px] truncate",children:Ee.name})]},`${Ee.name}-${Ye}`))})]})}),It()]}):c.jsxs("div",{className:"relative min-w-0 max-w-full break-words [overflow-wrap:anywhere]",children:[c.jsx(y8,{"data-message-from":"assistant",className:"min-w-0 max-w-full break-words [overflow-wrap:anywhere]",children:c.jsx(I7,{content:s,compact:_,isStreaming:v,preferLlmUi:w,onOpenPath:M})}),Ft,yt]}):Tt?c.jsx("div",{className:"flex items-center gap-3 px-1 py-1 text-sm text-muted-foreground",children:c.jsx(vq,{})}):null]})]})}),c.jsx(cmt,{open:X,onOpenChange:Q,contextFlow:a,responseContent:s})]})}const xL=y.memo(Omt,(e,r)=>{const{messageFromEnd:n,messageIndex:i,...s}=e,{messageFromEnd:a,messageIndex:o,...l}=r,u=Object.keys(l);return u.length===Object.keys(s).length&&u.every(d=>Object.is(s[d],l[d]))});xL.displayName="Message";function Mmt(e){if(!(e!=null&&e.metadata))return{};try{const r=JSON.parse(e.metadata);return r&&typeof r=="object"&&!Array.isArray(r)?r:{}}catch{return{}}}function Gde(e){const r=Mmt(e),n=r.repositoryId??r.repoId;return typeof n=="string"&&n.trim()?n.trim():null}function bq(e,r){const n=Gde(e);return n?r.find(i=>i.id===n)??null:null}function Rmt(e,r){return!e||e==="gateway"?!1:!r.has(e)}function _q(e){const r=new Date(e),i=new Date().getTime()-r.getTime();return i<6e4?"just now":i<36e5?`${Math.floor(i/6e4)}m ago`:i<864e5?`${Math.floor(i/36e5)}h ago`:r.toLocaleDateString()}function Pmt({platform:e}){switch(e){case"windows":case"macos":case"linux":return c.jsx(wo,{className:"h-2.5 w-2.5"});case"android":case"ios":return c.jsx(r4,{className:"h-2.5 w-2.5"});default:return c.jsx(_i,{className:"h-2.5 w-2.5"})}}function Lmt({projects:e,personalSessions:r=[],activeProjectId:n,activeSessionId:i,loading:s=!1,hasMoreProjects:a=!1,showFewerProjects:o=!1,onSelectProject:l,onSelectPersonalSession:u,onNewPersonalSession:d,onCreateProject:h,onRemoveProject:f,onChangeDirectory:m,onAssignRepository:x,onShowMore:v,onShowFewer:_,sessionInfo:w,nodes:S=[],repositories:C=[]}){const j=y.useMemo(()=>new Set(S.filter(q=>!q.isGateway).map(q=>q.id)),[S]),[T,E]=y.useState(""),N=T.trim().toLowerCase(),M=y.useMemo(()=>N?e.filter(q=>{const F=bq(q,C),B=q.nodeId&&q.nodeId!=="gateway"?S.find(D=>D.id===q.nodeId):null;return[q.title,q.rootPath,F==null?void 0:F.name,B==null?void 0:B.name,...q.sessions.flatMap(D=>[D.name,D.projectPath])].some(D=>D==null?void 0:D.toLowerCase().includes(N))}):e,[S,N,C,e]),$=y.useMemo(()=>N?r.filter(q=>[q.name,q.projectPath].some(F=>F==null?void 0:F.toLowerCase().includes(N))):r,[N,r]);return c.jsxs("div",{className:"flex flex-col h-full",children:[c.jsxs("div",{className:"flex h-[35px] shrink-0 items-center gap-2 px-2.5 border-b",children:[c.jsxs("div",{className:"flex min-w-0 flex-1 items-center gap-1.5 rounded-md bg-muted/60 px-2 py-1",children:[c.jsx(Ka,{className:"h-3.5 w-3.5 shrink-0 text-muted-foreground"}),c.jsx("input",{type:"search",value:T,onChange:q=>E(q.target.value),placeholder:"Search chats and projects","aria-label":"Search chats and projects",className:"min-w-0 flex-1 bg-transparent text-xs outline-none placeholder:text-muted-foreground"})]}),c.jsxs(pn,{children:[c.jsx(un,{asChild:!0,children:c.jsx(ge,{variant:"ghost",size:"icon",className:"h-6 w-6 shrink-0",onClick:h,children:c.jsx(Ps,{className:"h-3.5 w-3.5"})})}),c.jsx(dn,{side:"right",children:"New project"})]})]}),s?c.jsx("div",{className:"flex flex-1 items-center justify-center",children:c.jsx(Ot,{className:"h-4 w-4 animate-spin text-muted-foreground"})}):c.jsxs(c.Fragment,{children:[c.jsxs("div",{className:"flex max-h-[50%] min-h-0 shrink-0 flex-col border-b",children:[c.jsx("div",{className:"flex h-7 shrink-0 items-center justify-between px-3",children:c.jsx("span",{className:"text-2xs font-medium text-muted-foreground",children:"Projects"})}),c.jsx(vc,{className:"min-h-0 flex-1",children:c.jsxs("div",{className:"space-y-0.5 px-1.5 pb-1.5",children:[e.length===0&&c.jsxs("p",{className:"text-xs text-muted-foreground text-center py-4",children:["No projects yet.",c.jsx("br",{}),c.jsx("button",{onClick:h,className:"underline underline-offset-2 hover:text-foreground mt-1 inline-block",children:"Choose project folder"})]}),e.length>0&&M.length===0&&c.jsx("p",{className:"text-xs text-muted-foreground text-center py-4",children:"No matching projects."}),M.map(q=>{const F=q.id===n,B=q.nodeId&&q.nodeId!=="gateway"?S.find(O=>O.id===q.nodeId):null,W=Rmt(q.nodeId,j),D=bq(q,C);return c.jsxs("div",{className:`group grid w-full grid-cols-[auto,minmax(0,1fr),auto] items-start gap-1.5 px-1.5 py-1.5 text-sm transition-colors ${W||F?"cursor-default":"cursor-pointer"} ${F?"rounded-md bg-secondary/70":W?"opacity-50":"hover:rounded-md hover:bg-muted/40"}`,draggable:!!q.rootPath,onDragStart:O=>{if(!q.rootPath){O.preventDefault();return}O.dataTransfer.effectAllowed="copy",O.dataTransfer.setData(bue,JSON.stringify(Lct(q.rootPath,q.title||void 0)))},onClick:()=>{!W&&!F&&l(q.id)},children:[F?c.jsx(Ch,{className:"mt-0.5 h-3.5 w-3.5 shrink-0 text-primary"}):c.jsx(ZM,{className:"mt-0.5 h-3.5 w-3.5 shrink-0 text-muted-foreground"}),c.jsxs("div",{className:"min-w-0 overflow-hidden",children:[c.jsxs("div",{className:"flex min-w-0 items-center gap-1 overflow-hidden",children:[c.jsx("span",{className:"min-w-0 truncate text-xs font-medium",children:q.title||"Untitled Project"}),D&&c.jsxs(c.Fragment,{children:[c.jsx("span",{className:"shrink-0 text-2xs text-muted-foreground",children:"·"}),c.jsxs("span",{className:"flex min-w-0 items-center gap-1 text-2xs text-muted-foreground",children:[c.jsx(Lf,{className:"h-2.5 w-2.5 shrink-0"}),c.jsx("span",{className:"truncate",children:D.name})]})]})]}),c.jsxs("div",{className:"flex min-w-0 items-center gap-1 overflow-hidden text-2xs text-muted-foreground",children:[c.jsx("span",{className:"min-w-0 truncate",children:q.rootPath||"No folder linked"}),c.jsx("span",{className:"shrink-0",children:"·"}),c.jsx("span",{className:"shrink-0",children:_q(q.lastActiveAt)})]}),W&&c.jsxs("div",{className:"mt-0.5 flex items-center gap-1 text-2xs text-orange-500",children:[c.jsx(cve,{className:"h-2.5 w-2.5 shrink-0"}),c.jsx("span",{className:"truncate",children:"Node offline"})]}),B&&!W&&c.jsx("div",{className:"mt-0.5 flex min-w-0 items-center gap-1 text-2xs",children:c.jsxs("span",{className:"inline-flex max-w-full items-center gap-0.5 rounded bg-muted px-1 py-0.5 text-muted-foreground",children:[c.jsx(Pmt,{platform:B.platform}),c.jsx("span",{className:"truncate max-w-[80px]",children:B.name})]})}),F&&w&&c.jsxs("div",{className:"mt-0.5 flex min-w-0 items-center gap-1 text-2xs text-blue-500",children:[c.jsx("span",{className:"truncate",children:w.provider}),c.jsx("span",{className:"shrink-0 text-muted-foreground",children:"·"}),c.jsx(wo,{className:"h-2.5 w-2.5 shrink-0"}),c.jsx("span",{className:"truncate",children:w.isRemote&&w.remoteNode?w.remoteNode.nodeName:"Gateway"})]})]}),c.jsx("div",{className:"flex shrink-0 self-start",children:c.jsxs(Ml,{children:[c.jsx(Rl,{asChild:!0,children:c.jsx(ge,{variant:"ghost",size:"icon","aria-label":"Project actions",className:"h-5.5 w-5.5 shrink-0 text-muted-foreground transition-opacity hover:text-foreground data-[state=open]:opacity-100 sm:opacity-0 sm:group-hover:opacity-100",onClick:O=>O.stopPropagation(),children:c.jsx(H1,{className:"h-3 w-3"})})}),c.jsxs(Ko,{align:"end",side:"right",className:"min-w-[10rem]",children:[x&&c.jsxs(Vn,{disabled:!q.rootPath,className:`gap-2 ${D?"text-primary focus:text-primary":""}`,onSelect:O=>{O.preventDefault(),x(q.id)},children:[c.jsx(Lf,{className:"h-3.5 w-3.5"}),c.jsx("span",{children:D?`Repository: ${D.name}`:"Assign repository"})]}),c.jsxs(Vn,{className:"gap-2",onSelect:O=>{O.preventDefault(),m(q.id)},children:[c.jsx(n1e,{className:"h-3.5 w-3.5"}),c.jsx("span",{children:"Change directory"})]}),c.jsxs(Vn,{className:"gap-2 text-destructive focus:text-destructive",onSelect:O=>{O.preventDefault(),f(q.id)},children:[c.jsx(GM,{className:"h-3.5 w-3.5"}),c.jsx("span",{children:"Archive project"})]})]})]})})]},q.id)}),!N&&a&&v&&c.jsx("button",{className:"w-full px-2 py-2 text-left text-xs text-muted-foreground transition-colors hover:text-foreground",onClick:v,children:"Show more projects"}),!N&&o&&_&&c.jsx("button",{className:"w-full px-2 py-2 text-left text-xs text-muted-foreground transition-colors hover:text-foreground",onClick:_,children:"Show fewer projects"})]})})]}),c.jsxs("div",{className:"flex min-h-0 flex-1 flex-col",children:[c.jsxs("div",{className:"flex h-7 shrink-0 items-center justify-between px-3",children:[c.jsx("span",{className:"text-2xs font-medium text-muted-foreground",children:"Personal chats"}),d&&c.jsxs(pn,{children:[c.jsx(un,{asChild:!0,children:c.jsx(ge,{variant:"ghost",size:"icon",className:"h-5 w-5",onClick:d,children:c.jsx(Ps,{className:"h-3 w-3"})})}),c.jsx(dn,{side:"right",children:"New personal chat"})]})]}),c.jsx(vc,{className:"min-h-0 flex-1",children:c.jsxs("div",{className:"space-y-0.5 px-1.5 pb-1.5",children:[r.length===0&&c.jsxs("p",{className:"text-xs text-muted-foreground text-center py-4",children:["No personal chats yet.",d&&c.jsxs(c.Fragment,{children:[c.jsx("br",{}),c.jsx("button",{onClick:d,className:"underline underline-offset-2 hover:text-foreground mt-1 inline-block",children:"Start a chat"})]})]}),r.length>0&&$.length===0&&c.jsx("p",{className:"text-xs text-muted-foreground text-center py-4",children:"No matching personal chats."}),$.map(q=>{const F=n===null&&q.id===i;return c.jsxs("div",{className:`group flex items-center gap-1.5 rounded-md px-1.5 py-1 transition-colors text-sm ${F?"bg-secondary/70 cursor-default":"cursor-pointer hover:bg-muted/40"}`,onClick:()=>{!F&&u&&u(q.id)},children:[c.jsx(yd,{className:`h-3.5 w-3.5 shrink-0 ${F?"text-primary":"text-muted-foreground"}`}),c.jsxs("div",{className:"min-w-0 flex-1",children:[c.jsx("div",{className:"truncate text-xs font-medium",children:q.name||"Personal chat"}),c.jsx("div",{className:"text-2xs text-muted-foreground",children:_q(q.lastActiveAt??q.createdAt)})]})]},q.id)})]})})]})]})]})}function $mt({suggestions:e,onSelect:r,className:n}){return c.jsx("div",{className:Ce("flex flex-wrap gap-2 justify-center",n),children:e.map(i=>c.jsx("button",{onClick:()=>r(i),className:"px-4 py-2 text-sm rounded-full border bg-background text-muted-foreground hover:bg-accent hover:text-accent-foreground transition-colors",children:i},i))})}const Dmt={pending:{icon:Wm,label:"Pending",color:"text-muted-foreground"},approved:{icon:Ot,label:"Running",color:"text-blue-500"},rejected:{icon:Hn,label:"Rejected",color:"text-destructive"},executed:{icon:Ts,label:"Done",color:"text-green-500"},failed:{icon:Is,label:"Failed",color:"text-destructive"}};function Imt({action:e,expanded:r,onToggle:n}){const i=Dmt[e.status],s=i.icon;return c.jsxs("div",{className:"border rounded-md",children:[c.jsxs("button",{type:"button",className:"flex items-center gap-3 w-full px-3 py-2.5 text-left hover:bg-muted/50 transition-colors",onClick:n,children:[c.jsx(s,{className:Ce("h-4 w-4 shrink-0",i.color,e.status==="approved"&&"animate-spin")}),c.jsxs("span",{className:"flex-1 min-w-0",children:[c.jsx("span",{className:"font-mono text-sm font-medium",children:e.tool}),c.jsxs("span",{className:"text-xs text-muted-foreground ml-2",children:["Step ",e.order+1]})]}),c.jsx(Mr,{variant:"outline",className:"text-2xs px-1.5 py-0",children:i.label}),r?c.jsx(nl,{className:"h-4 w-4 text-muted-foreground"}):c.jsx(gs,{className:"h-4 w-4 text-muted-foreground"})]}),r&&c.jsxs("div",{className:"px-3 pb-3 pt-1 border-t bg-muted/30",children:[c.jsx("p",{className:"text-sm text-muted-foreground mb-2",children:e.description}),c.jsx("pre",{className:"text-xs bg-background rounded p-2 overflow-x-auto max-h-48",children:JSON.stringify(e.args,null,2)}),e.result&&c.jsx("div",{className:Ce("mt-2 text-xs rounded p-2",e.result.ok?"bg-green-500/10 text-green-700 dark:text-green-400":"bg-destructive/10 text-destructive"),children:e.result.message})]})]})}function Bmt({plan:e,onApprove:r,onReject:n,isExecuting:i,className:s}){const[a,o]=y.useState(new Set),l=m=>{o(x=>{const v=new Set(x);return v.has(m)?v.delete(m):v.add(m),v})},u=e.actions.filter(m=>m.status==="pending").length,d=e.actions.filter(m=>m.status==="executed").length,h=e.actions.filter(m=>m.status==="failed").length,f=u===0;return c.jsxs(Fr,{className:Ce("p-4 space-y-3",s),children:[c.jsxs("div",{className:"flex items-start justify-between gap-3",children:[c.jsxs("div",{children:[c.jsxs("h3",{className:"text-sm font-medium flex items-center gap-2",children:[c.jsx(zmt,{className:"h-4 w-4"}),"Plan",c.jsxs(Mr,{variant:"secondary",className:"text-2xs px-1.5 py-0",children:[e.actions.length," step",e.actions.length!==1?"s":""]})]}),c.jsx("p",{className:"text-xs text-muted-foreground mt-1 line-clamp-2",children:e.summary})]}),f&&c.jsx(Mr,{variant:h>0?"destructive":"success",className:"shrink-0",children:h>0?`${h} failed`:"Complete"})]}),c.jsx("div",{className:"space-y-1.5",children:e.actions.map(m=>c.jsx(Imt,{action:m,expanded:a.has(m.id),onToggle:()=>l(m.id)},m.id))}),u>0&&c.jsxs("div",{className:"flex items-center gap-2 pt-1",children:[c.jsx(ge,{size:"sm",onClick:()=>r(),disabled:i,children:i?c.jsxs(c.Fragment,{children:[c.jsx(Ot,{className:"h-3.5 w-3.5 mr-1.5 animate-spin"}),"Executing..."]}):c.jsxs(c.Fragment,{children:[c.jsx(Gw,{className:"h-3.5 w-3.5 mr-1.5"}),"Execute all (",u,")"]})}),c.jsxs(ge,{size:"sm",variant:"outline",onClick:n,disabled:i,children:[c.jsx(Hn,{className:"h-3.5 w-3.5 mr-1.5"}),"Reject"]})]}),f&&!i&&c.jsxs("p",{className:"text-xs text-muted-foreground",children:[d>0&&`${d} action${d!==1?"s":""} executed.`,h>0&&` ${h} failed.`]})]})}function zmt({className:e}){return c.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:e,children:[c.jsx("rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1"}),c.jsx("path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2"}),c.jsx("path",{d:"M12 11h4"}),c.jsx("path",{d:"M12 16h4"}),c.jsx("path",{d:"M8 11h.01"}),c.jsx("path",{d:"M8 16h.01"})]})}function Fmt(e){return e.find(r=>r.status==="in-progress")??null}function Kde(e){return e.length>0&&e.every(r=>r.status==="completed")}function Hmt(e){const r=Fmt(e),n=Kde(e);return{headerLabel:r?r.title:n?"All tasks completed":"Tasks",showHeaderSpinner:!!r,showHeaderCompleted:!r&&n}}function B7({items:e,className:r,onClear:n}){const[i,s]=y.useState(!1),a=y.useMemo(()=>Kde(e),[e]),o=y.useMemo(()=>Hmt(e),[e]);if(e.length===0)return null;const l=e.filter(m=>m.status==="completed").length,u=e.length,d=u>0?Math.round(l/u*100):0,h=i?"Tasks":o.headerLabel,f=a?"bg-green-500":"bg-primary";return c.jsxs("div",{className:Ce("rounded-lg border bg-muted/30 p-3 space-y-2",r),children:[c.jsxs("button",{type:"button",onClick:()=>s(m=>!m),className:"flex items-center gap-2 w-full text-left",children:[c.jsx(nl,{className:Ce("h-3 w-3 shrink-0 text-muted-foreground transition-transform duration-200",!i&&"-rotate-90")}),!i&&o.showHeaderSpinner&&c.jsx(Ot,{className:"h-3.5 w-3.5 shrink-0 text-primary animate-spin"}),!i&&o.showHeaderCompleted&&c.jsx(Ts,{className:"h-3.5 w-3.5 shrink-0 text-green-500"}),c.jsx("span",{className:"min-w-0 truncate text-xs font-medium text-foreground",children:h}),c.jsx("div",{className:"flex-1 h-1.5 rounded-full bg-muted overflow-hidden",children:c.jsx("div",{className:Ce("h-full rounded-full transition-all duration-300",f),style:{width:`${d}%`}})}),c.jsxs("span",{className:"text-2xs text-muted-foreground tabular-nums",children:[l,"/",u]}),n&&c.jsx("button",{type:"button",onClick:m=>{m.stopPropagation(),n()},className:"shrink-0 p-0.5 rounded hover:bg-muted text-muted-foreground hover:text-foreground transition-colors",title:"Clear todo list",children:c.jsx(Hn,{className:"h-3 w-3"})})]}),i&&c.jsx("div",{className:"space-y-1",children:e.map(m=>c.jsxs("div",{className:Ce("flex items-start gap-2 text-xs py-0.5",m.status==="completed"&&"text-muted-foreground"),children:[m.status==="completed"?c.jsx(Ts,{className:"h-3.5 w-3.5 shrink-0 mt-0.5 text-green-500"}):m.status==="in-progress"?c.jsx(Ot,{className:"h-3.5 w-3.5 shrink-0 mt-0.5 text-primary animate-spin"}):c.jsx(JM,{className:"h-3.5 w-3.5 shrink-0 mt-0.5 text-muted-foreground/50"}),c.jsx("span",{className:Ce("flex-1 min-w-0",m.status==="completed"&&"line-through"),children:m.title})]},m.id))})]})}function Wmt({files:e,onAccept:r,onReject:n,onAcceptAll:i,onRejectAll:s,onFileClick:a,className:o}){const l=y.useRef(null),[u,d]=y.useState(!1),[h,f]=y.useState(!1);if(y.useEffect(()=>{const C=l.current;if(!C||typeof ResizeObserver>"u")return;const j=()=>{d(C.clientWidth<560)};j();const T=new ResizeObserver(()=>j());return T.observe(C),()=>T.disconnect()},[]),e.length===0)return null;const m=e.filter(C=>C.state==="undecided").length,x=e.reduce((C,j)=>C+(j.insertions??0),0),v=e.reduce((C,j)=>C+(j.deletions??0),0),_=e.some(C=>C.insertions!==void 0||C.deletions!==void 0),w=_?null:`${e.length} ${e.length===1?"file":"files"}`,S=({insertions:C,deletions:j})=>c.jsxs("span",{className:"shrink-0 whitespace-nowrap text-2xs tabular-nums",children:[c.jsxs("span",{className:"text-green-600 dark:text-green-400",children:["+",C]}),c.jsxs("span",{className:"ml-1 text-red-600 dark:text-red-400",children:["-",j]})]});return c.jsxs("div",{ref:l,className:Ce("overflow-hidden rounded-lg border bg-muted/30",o),children:[c.jsxs("div",{className:Ce("flex items-center justify-between gap-2 bg-muted/20 px-3 py-2",h&&"border-b"),children:[c.jsxs("button",{type:"button",className:"flex min-w-0 items-center gap-1.5 text-left",onClick:()=>f(C=>!C),"aria-expanded":h,children:[c.jsx(gs,{className:Ce("h-3.5 w-3.5 shrink-0 text-muted-foreground transition-transform",h&&"rotate-90")}),c.jsx(hh,{className:"h-3.5 w-3.5 text-muted-foreground"}),c.jsx("span",{className:"truncate text-xs font-medium",children:"Files changed"}),_&&c.jsx(S,{insertions:x,deletions:v}),w&&c.jsx("span",{className:"shrink-0 whitespace-nowrap text-2xs tabular-nums text-muted-foreground",children:w}),h&&m>0&&c.jsxs("span",{className:"shrink-0 text-2xs text-amber-500 dark:text-amber-400",children:[m," pending"]})]}),m>0&&c.jsxs("div",{className:"ml-auto flex shrink-0 items-center gap-1",children:[c.jsxs(ge,{size:u?"icon":"sm",variant:"ghost",className:Ce("h-6 shrink-0 text-xs",u?"w-6 p-0":"px-2"),onClick:i,title:"Keep all","aria-label":"Keep all",children:[c.jsx(ls,{className:Ce("h-3 w-3 shrink-0",!u&&"mr-1")}),!u&&"Keep all"]}),c.jsxs(ge,{size:u?"icon":"sm",variant:"ghost",className:Ce("h-6 shrink-0 text-xs",u?"w-6 p-0":"px-2"),onClick:s,title:"Undo all","aria-label":"Undo all",children:[c.jsx(pu,{className:Ce("h-3 w-3 shrink-0",!u&&"mr-1")}),!u&&"Undo all"]})]})]}),h&&c.jsx("div",{className:"divide-y",children:e.map(C=>c.jsxs("div",{className:Ce("flex items-center gap-2 px-3 py-1.5 text-xs",C.state==="accepted"&&"bg-green-500/5",C.state==="rejected"&&"bg-red-500/5 text-muted-foreground"),children:[c.jsx(fa,{filename:C.name,className:"h-3.5 w-3.5 shrink-0"}),c.jsx("button",{type:"button",className:Ce("min-w-0 flex-1 truncate text-left hover:underline cursor-pointer",C.state==="rejected"&&"line-through"),title:`Review diff for ${C.path}`,onClick:()=>a==null?void 0:a(C.path),children:C.path}),_&&c.jsx(S,{insertions:C.insertions??0,deletions:C.deletions??0}),C.state==="undecided"&&c.jsxs("div",{className:"ml-auto flex items-center gap-0.5 shrink-0",children:[c.jsx("button",{type:"button",className:"p-1 rounded hover:bg-primary/10 text-primary transition-colors",onClick:()=>a==null?void 0:a(C.path),title:"Review changes",children:c.jsx(Uf,{className:"h-3 w-3"})}),c.jsx("button",{type:"button",className:"p-1 rounded hover:bg-green-500/20 text-green-600 dark:text-green-400 transition-colors",onClick:()=>r==null?void 0:r(C.path),title:"Keep all changes",children:c.jsx(ls,{className:"h-3 w-3"})}),c.jsx("button",{type:"button",className:"p-1 rounded hover:bg-red-500/20 text-red-600 dark:text-red-400 transition-colors",onClick:()=>n==null?void 0:n(C.path),title:"Undo all changes",children:c.jsx(pu,{className:"h-3 w-3"})})]}),C.state==="accepted"&&c.jsx("span",{className:"text-2xs text-green-600 dark:text-green-400 shrink-0",children:"Kept"}),C.state==="rejected"&&c.jsx("span",{className:"text-2xs text-red-500 shrink-0",children:"Undone"})]},C.path))})]})}function Umt(e,r,n,i){const s=e.findIndex(u=>u.id===r);if(s<0)return e;const a=[...e],[o]=a.splice(s,1);if(!o)return e;if(n==null)return a.push(o),a;const l=a.findIndex(u=>u.id===n);return l<0?e:(a.splice(l+(i==="after"?1:0),0,o),a)}function Vmt({item:e,index:r}){return c.jsxs("div",{className:"flex items-start gap-2 rounded-lg border border-border/40 bg-background px-3 py-2 text-sm shadow-2xl ring-1 ring-primary/10",children:[c.jsx("div",{className:"mt-0.5 shrink-0 rounded p-0.5 text-muted-foreground",children:r===0?c.jsx(QM,{className:"h-3.5 w-3.5 text-primary"}):c.jsx(gs,{className:"h-3.5 w-3.5 text-muted-foreground"})}),c.jsx("div",{className:"mt-0.5 shrink-0 rounded p-0.5 text-muted-foreground",children:c.jsx(e4,{className:"h-3.5 w-3.5"})}),c.jsxs("div",{className:"min-w-0 flex-1",children:[r===0?c.jsx("span",{className:"mb-0.5 block text-2xs font-medium uppercase tracking-wider text-primary/70",children:"Next"}):c.jsxs("span",{className:"mb-0.5 block text-2xs font-medium uppercase tracking-wider text-muted-foreground",children:["Queued #",r+1]}),c.jsx("span",{className:"whitespace-pre-wrap break-words text-foreground",children:e.displayContent??e.content})]})]})}function qmt({item:e,index:r,onRemove:n,onEdit:i,onReorder:s,onSteer:a,onSendToParallelThread:o,dragActive:l,dropBefore:u,dropAfter:d,onDragStart:h}){const[f,m]=y.useState(!1),[x,v]=y.useState(!0),[_,w]=y.useState(e.displayContent??e.content),S=y.useRef(null),C=f||!l;y.useEffect(()=>{if(f){const N=S.current;N&&(N.focus(),N.setSelectionRange(N.value.length,N.value.length))}},[f]),y.useEffect(()=>{f||w(e.displayContent??e.content)},[e.content,e.displayContent,f]);const j=y.useCallback(()=>{const N=_.trim(),M=e.displayContent??e.content;N&&N!==M&&(i==null||i(e.id,N)),m(!1)},[_,e.content,e.displayContent,e.id,i]),T=y.useCallback(()=>{w(e.displayContent??e.content),m(!1)},[e.content,e.displayContent]),E=y.useCallback(N=>{N.key==="Enter"&&!N.shiftKey?(N.preventDefault(),j()):N.key==="Escape"&&T()},[j,T]);return c.jsxs(c.Fragment,{children:[u&&c.jsx("div",{className:"relative h-0",children:c.jsx("div",{className:"absolute inset-x-2 -top-px h-0.5 rounded-full bg-primary shadow-[0_0_0_1px_hsl(var(--background))]"})}),c.jsxs("div",{"data-queue-id":e.id,className:Ce("group flex cursor-grab touch-none items-start gap-2 rounded-lg border border-border/40 bg-muted/50 px-3 py-2 text-sm transition-all duration-150 ease-out hover:bg-muted/70 active:cursor-grabbing",l&&"border-dashed border-primary/35 bg-primary/5 opacity-0"),onPointerDown:N=>{f||!s||N.target.closest('button, textarea, input, a, [data-no-drag="true"]')||h==null||h(e.id,N)},children:[c.jsx("button",{type:"button","data-no-drag":"true",className:"mt-0.5 shrink-0 rounded p-0.5 text-muted-foreground hover:bg-foreground/10 hover:text-foreground transition-colors",onClick:()=>v(N=>!N),"aria-label":x?"Expand queued message":"Collapse queued message",title:x?"Expand queued message":"Collapse queued message",children:x?c.jsx(gs,{className:"h-3.5 w-3.5"}):r===0?c.jsx(QM,{className:"h-3.5 w-3.5 text-primary"}):c.jsx(nl,{className:"h-3.5 w-3.5 text-muted-foreground"})}),s&&!f&&c.jsx("div",{className:"mt-0.5 shrink-0 rounded p-0.5 text-muted-foreground cursor-grab active:cursor-grabbing touch-none",title:"Drag to reorder","aria-label":"Drag to reorder",children:c.jsx(e4,{className:"h-3.5 w-3.5"})}),c.jsxs("div",{className:"flex-1 min-w-0",children:[r===0&&!f&&c.jsx("span",{className:"text-2xs font-medium uppercase tracking-wider text-primary/70 block mb-0.5",children:"Next"}),r>0&&!f&&c.jsxs("span",{className:"text-2xs font-medium uppercase tracking-wider text-muted-foreground block mb-0.5",children:["Queued #",r+1]}),f?c.jsx("textarea",{ref:S,value:_,onChange:N=>w(N.target.value),onKeyDown:E,onBlur:j,rows:Math.min(_.split(`
1425
+ `).trim()},et=async()=>{const Ee=ke();if(!Ee)return;const Ye=B?Sue(O):null;try{Ye&&typeof ClipboardItem<"u"&&navigator.clipboard.write?await navigator.clipboard.write([new ClipboardItem({"text/plain":new Blob([Ee],{type:"text/plain"}),[kj]:new Blob([Ye],{type:kj})})]):await navigator.clipboard.writeText(Ee)}catch{const _e=document.createElement("textarea");_e.value=Ee,_e.style.position="fixed",_e.style.opacity="0",document.body.appendChild(_e),_e.focus(),_e.select(),document.execCommand("copy"),document.body.removeChild(_e)}R(!0),mt.current!==null&&window.clearTimeout(mt.current),mt.current=window.setTimeout(()=>R(!1),1200)},at=$0(),Ze=B&&!!e&&!!E,xt=Ze,Tt=v&&!h&&!(typeof s=="string"?s:"").trim(),We=B||!v,ve=!B&&!!e&&!!F&&!v,ye=(le==null?void 0:le.status)==="saving",Fe=y.useCallback(()=>{!Ze||z||(oe(D),je(O),U(!0))},[Ze,z,O,D]),Ke=y.useCallback(()=>{oe(D),je(O),U(!1)},[O,D]),Be=()=>{var Ye;!Ze||G||typeof window<"u"&&(Ye=window.getSelection())!=null&&Ye.toString().trim()||Fe()},At=y.useCallback(async(Ee,Ye)=>{if(!Ze||!e||!E||z)return;const _e=npt(Ee??se,Ye??be,O);if(_e){Qe(_e.text),Nt(_e.displaySegments),U(!1),ee(!0);try{await E(e,_e.text,r,n,{referencedFiles:_e.referencedFiles,displaySegments:_e.displaySegments})}catch(Wt){throw Qe(null),Nt(null),U(!0),Wt}finally{ee(!1)}}},[Ze,se,be,z,e,n,r,E]),dt=async(Ee,Ye)=>{if(!Ze||!e||!E)return;const _e=Ee.trim();_e&&await E(e,_e,r,n,{referencedFiles:(Ye??O).filter(Wt=>Wt.type==="file").map(Wt=>({path:Wt.path,name:Wt.name})),displaySegments:Ye??O})},er=async()=>{if(xt){H(!0);try{await dt(D,O)}finally{H(!1)}}},Jt=async Ee=>{if(!(!ve||!e||ye)&&await W({title:"Memorize this?",description:"This saves a memory feedback item with this assistant message as context. Future agents can use it when reviewing or updating memory for this chat and project.",confirmLabel:"Memorize",cancelLabel:"Cancel"})){fe({kind:Ee,status:"saving"});try{await(F==null?void 0:F({messageId:e,kind:Ee,content:s})),fe({kind:Ee,status:"saved"}),Ae.current!==null&&window.clearTimeout(Ae.current),Ae.current=window.setTimeout(()=>fe(null),1200)}catch{fe(null)}}},Vt=(Ee,Ye)=>(le==null?void 0:le.kind)!==Ee?Ye:le.status==="saving"?c.jsx(Ot,{className:"h-3.5 w-3.5 animate-spin"}):c.jsx(ls,{className:"h-3.5 w-3.5"}),Et=[...Ze?[{key:"edit",label:"Edit message",icon:c.jsx(L_,{className:"h-3.5 w-3.5"}),onClick:()=>Fe()}]:[],...xt?[{key:"retry",label:"Retry from this message",icon:c.jsx(MY,{className:Ce("h-3.5 w-3.5",P&&"animate-spin")}),onClick:()=>{er()},disabled:P}]:[],...!B&&a?[{key:"context",label:"View LLM context",icon:c.jsx(wm,{className:"h-3.5 w-3.5"}),onClick:()=>Q(!0)}]:[],...ve?[{key:"memory",label:gmt("should_have_remembered"),icon:Vt("should_have_remembered",c.jsx(vo,{className:"h-3.5 w-3.5"})),onClick:()=>{Jt("should_have_remembered")},disabled:ye}]:[],{key:"copy",label:I?"Copied":"Copy message",icon:I?c.jsx(ls,{className:"h-3.5 w-3.5"}):c.jsx(Tl,{className:"h-3.5 w-3.5"}),onClick:()=>{et()}}],It=Ee=>G||!We||!s||Et.length===0?null:at?c.jsx("div",{className:Ce("absolute z-10","right-1 bottom-1"),children:c.jsxs(Ml,{children:[c.jsx(Rl,{asChild:!0,children:c.jsx("button",{type:"button","aria-label":"Message actions",className:"flex h-6 w-6 items-center justify-center rounded-md text-muted-foreground transition-colors hover:text-foreground",children:c.jsx(H1,{className:"h-4 w-4"})})}),c.jsx(Ko,{align:"end",side:"top",className:"min-w-[10rem]",children:Et.map(Ye=>c.jsxs(Vn,{disabled:Ye.disabled,onSelect:_e=>{_e.preventDefault(),Ye.onClick()},className:"gap-2",children:[Ye.icon,c.jsx("span",{children:Ye.label})]},Ye.key))})]})}):c.jsx("div",{className:Ce("absolute z-10 rounded-md border border-border/60 bg-background/95 p-0.5 shadow-sm","right-1 bottom-[.25rem]","opacity-0 transition-opacity group-hover/message:opacity-100 focus-within:opacity-100",I&&"opacity-100"),children:c.jsx(tpt,{children:Et.map(Ye=>c.jsx(rpt,{onClick:_e=>{_e.preventDefault(),_e.stopPropagation(),Ye.onClick()},disabled:Ye.disabled,"aria-label":Ye.label,tooltip:Ye.label,className:"h-5 w-5 rounded-md p-0 [&_svg]:h-3 [&_svg]:w-3",children:Ye.icon},Ye.key))})}),Ft=B?null:It(),ze=!B&&(x==null?void 0:x.some(Ee=>Ee.type==="thinking"&&Ee.content.trim())),tt=B?[]:pmt(a),yt=tt.length>0?c.jsxs("div",{className:"not-prose mt-2 flex min-w-0 flex-wrap items-center gap-1.5 text-xs text-muted-foreground",children:[c.jsxs("button",{type:"button",className:"inline-flex max-w-full items-center gap-1.5 rounded-md border border-amber-500/30 bg-amber-500/10 px-2 py-1 font-medium text-amber-700 transition-colors hover:bg-amber-500/15 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 dark:text-amber-200",onClick:Ee=>{Ee.preventDefault(),Ee.stopPropagation(),re(Ye=>!Ye)},"aria-expanded":ie,title:ie?"Hide injected memories":"Show memories injected for this answer",children:[c.jsx(vo,{className:"h-3.5 w-3.5 shrink-0"}),c.jsx("span",{children:"Memory"}),c.jsx("span",{className:"rounded bg-background/75 px-1 text-2xs",children:tt.length})]}),ie&&tt.slice(0,3).map(Ee=>{const Ye={memoryId:Ee.id,sourceType:Ee.sourceType,sourceId:Ee.sourceId,sourceSurface:Ee.sourceSurface},_e=!!(q&&Ee.sourceSurface==="chat"&&Ee.sourceId);return c.jsxs("button",{type:"button",className:"inline-flex max-w-[220px] items-center gap-1.5 rounded-md border border-border/70 bg-muted/45 px-2 py-1 text-foreground transition-colors hover:bg-muted focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",onClick:Wt=>{Wt.preventDefault(),Wt.stopPropagation(),_e?q==null||q(Ye):Q(!0)},title:_e?`Open source chat for injected memory: ${Ee.source||Ee.id}`:`View injected memory source: ${Ee.source||Ee.id}`,children:[_e?c.jsx(yd,{className:"h-3.5 w-3.5 shrink-0"}):c.jsx(vo,{className:"h-3.5 w-3.5 shrink-0"}),c.jsx("span",{className:"truncate",children:Ee.source||Ee.id})]},Ee.id)})]}):null;return c.jsxs(c.Fragment,{children:[c.jsx(ept,{from:i,className:Ce(_?"py-2":"py-4"),children:c.jsxs("div",{className:Ce("min-w-0 max-w-[85%] space-y-2",B&&"order-1"),children:[!B&&h&&!ze&&c.jsx(tq,{content:h,isStreaming:!!v&&!s,duration:f}),!B&&x&&x.length>0?c.jsxs("div",{className:"relative min-w-0 max-w-full select-text break-words [overflow-wrap:anywhere]",children:[x.map((Ee,Ye)=>{if(Ee.type==="toolGroup"){const _e=(m??[]).filter(vt=>Ee.callIds.includes(vt.callId)),Wt=x.slice(Ye+1).some(vt=>vt.type==="text"&&typeof vt.content=="string"&&vt.content.trim());return _e.length>0?yq(S,_e)?c.jsx($7,{provider:S,calls:_e,isStreaming:!!v&&Ye===x.length-1,threadControlThreads:C,onOpenTerminal:j,onOpenDiff:$,renderInlineSecretPrompt:T},`tg-${Ye}`):c.jsx(L7,{calls:_e,collapsible:Wt,threadControlThreads:C,onOpenTerminal:j,onOpenDiff:$,renderInlineSecretPrompt:T},`tg-${Ye}`):null}return Ee.type==="thinking"?Ee.content.trim()?c.jsx(tq,{content:Ee.content,isStreaming:!!v&&Ye===x.length-1,duration:f},`th-${Ye}`):null:Ee.type==="error"?c.jsxs("div",{className:"flex items-start gap-2.5 rounded-lg border border-red-500/40 bg-red-500/10 px-3 py-2.5 text-sm text-red-600 dark:text-red-400",children:[c.jsx(W1,{className:"mt-0.5 h-4 w-4 shrink-0"}),c.jsx("span",{className:"min-w-0 break-words",children:Ee.content})]},`err-${Ye}`):typeof Ee.content=="string"&&Ee.content.trim()?c.jsx(y8,{"data-message-from":"assistant",className:"max-w-full bg-card/78",children:c.jsx(I7,{content:Ee.content,compact:_,isStreaming:!!v&&Ye===x.length-1,preferLlmUi:w,onOpenPath:M})},`ts-${Ye}`):null}),v&&!s&&!x.some(Ee=>Ee.type==="text"&&typeof Ee.content=="string"&&Ee.content.trim())&&c.jsx("div",{className:"flex items-center gap-3 px-1 py-1 text-sm text-muted-foreground",children:c.jsx(vq,{})}),Ft,yt]}):c.jsxs(c.Fragment,{children:[m&&m.length>0&&(yq(S,m)?c.jsx($7,{provider:S,calls:m,isStreaming:v,threadControlThreads:C,onOpenTerminal:j,onOpenDiff:$,renderInlineSecretPrompt:T}):c.jsx(L7,{calls:m,collapsible:S!=="jait",threadControlThreads:C,onOpenTerminal:j,onOpenDiff:$,renderInlineSecretPrompt:T})),Bt||s?B?G?c.jsx("div",{className:_mt(),onClick:Ee=>Ee.stopPropagation(),children:c.jsx("div",{className:wmt(V),children:c.jsx(Ew,{ref:Ne,draftStateKey:`edit:${e??"user-message"}`,value:se,segments:be,onChange:Ee=>{var Ye;oe(Ee),je(((Ye=Ne.current)==null?void 0:Ye.getSegments())??[])},onSubmit:(Ee,Ye,_e)=>{const Wt=_e??[],vt=k0(Wt)||se;je(Wt),At(vt,Wt)},disabled:z,controlsDisabled:z,placeholder:"Edit message...",onVoiceInput:N==null?void 0:N.onVoiceInput,voiceRecording:N==null?void 0:N.voiceRecording,voiceLevels:N==null?void 0:N.voiceLevels,voiceTranscribing:N==null?void 0:N.voiceTranscribing,onVoiceStop:N==null?void 0:N.onVoiceStop,mode:N==null?void 0:N.mode,onModeChange:N==null?void 0:N.onModeChange,provider:N==null?void 0:N.provider,onProviderChange:N==null?void 0:N.onProviderChange,responseStyle:N==null?void 0:N.responseStyle,onResponseStyleChange:N==null?void 0:N.onResponseStyleChange,providerRuntimeMode:N==null?void 0:N.providerRuntimeMode,onProviderRuntimeModeChange:N==null?void 0:N.onProviderRuntimeModeChange,cliModel:N==null?void 0:N.cliModel,onCliModelChange:N==null?void 0:N.onCliModelChange,sessionInfo:N==null?void 0:N.sessionInfo,projectNodeId:N==null?void 0:N.projectNodeId,availableFiles:(N==null?void 0:N.availableFiles)??C0(O),onSearchFiles:N==null?void 0:N.onSearchFiles,projectOpen:(N==null?void 0:N.projectOpen)??C0(O).length>0,footerTrailingContent:c.jsx(ge,{type:"button",variant:"ghost",size:"icon",className:"h-8 w-8 shrink-0 rounded-lg",onClick:Ke,disabled:z,"aria-label":"Cancel editing message",title:"Cancel editing",children:c.jsx(Hn,{className:"h-3.5 w-3.5"})}),className:"rounded-lg border-primary/20 bg-primary/[0.08] dark:!bg-primary/[0.08] shadow-none [&_.text-muted-foreground]:text-muted-foreground [&>div]:!bg-transparent [&_[contenteditable='true']]:!bg-transparent"},`edit-${e??"user-message"}`)})}):c.jsxs("div",{className:"relative w-fit max-w-full",children:[c.jsx(y8,{ref:jt,"data-message-from":"user",className:Ce("min-w-0 rounded-lg bg-muted px-4 py-3 break-words [overflow-wrap:anywhere]",Ze&&!G&&"cursor-text transition-colors hover:bg-muted/80","leading-relaxed [font-size:0.9rem]"),onClick:Be,title:Ze&&!G?"Click to edit message":void 0,children:c.jsxs("div",{className:"min-w-0 space-y-3",children:[c.jsx("div",{className:"min-w-0 whitespace-pre-wrap break-words [overflow-wrap:anywhere]",children:(ft??O).length>0?(ft??O).map((Ee,Ye)=>Ee.type==="text"?c.jsx("span",{children:Ee.text},`text-${Ye}`):Ee.type==="file"?c.jsxs("span",{className:"mx-[2px] inline-flex items-center gap-1.5 rounded-md border border-border/70 bg-muted/45 px-2 py-1 text-xs font-medium leading-none text-foreground align-middle select-none",title:Ee.path,children:[c.jsx(fa,{filename:Ee.name,className:"h-3.5 w-3.5 shrink-0"}),c.jsx("span",{className:"max-w-[180px] truncate",children:Ee.lineRange?`${Ee.name}:${Nw(Ee.lineRange).replace(/^lines? /,"")}`:Ee.name})]},`${Ee.path}-${Ye}`):Ee.type==="project"?c.jsxs("span",{className:"mx-[2px] inline-flex items-center gap-1.5 rounded-md border border-border/70 bg-muted/45 px-2 py-1 text-xs font-medium leading-none text-foreground align-middle select-none",title:Ee.path,children:[c.jsx(W4,{name:Ee.name,className:"h-3.5 w-3.5 shrink-0"}),c.jsx("span",{className:"max-w-[180px] truncate",children:Ee.name})]},`${Ee.path}-${Ye}`):Ee.type==="terminal"?c.jsxs("span",{className:"mx-[2px] inline-flex items-center gap-1.5 rounded-md border border-border/70 bg-muted/45 px-2 py-1 text-xs font-medium leading-none text-foreground align-middle select-none",title:Ee.projectRoot?`${Ee.terminalId} · ${Ee.projectRoot}`:Ee.terminalId,children:[c.jsx("span",{className:"inline-flex h-3.5 w-3.5 items-center justify-center rounded-sm bg-muted-foreground/15 text-2xs font-bold uppercase text-muted-foreground",children:"T"}),c.jsx("span",{className:"max-w-[180px] truncate",children:Ee.lineRange?`${Ee.name}:${Nw(Ee.lineRange).replace(/^lines? /,"")}`:Ee.name})]},`${Ee.terminalId}-${Ye}`):null):He??D}),Ut.length>0&&c.jsx("div",{className:"grid grid-cols-1 gap-2 sm:grid-cols-2",children:Ut.map((Ee,Ye)=>{const _e=Ee.preview??`data:${Ee.mimeType};base64,${Ee.data}`;return c.jsxs(jo,{children:[c.jsx(bve,{asChild:!0,children:c.jsxs("button",{type:"button",className:"group block overflow-hidden rounded-lg border border-primary/10 bg-background/65 text-left transition-colors hover:border-primary/25 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 focus:ring-offset-background","aria-label":`Expand image ${Ee.name}`,children:[c.jsxs("span",{className:"relative block",children:[c.jsx("img",{src:_e,alt:Ee.name,className:"max-h-72 w-full object-cover transition-opacity group-hover:opacity-85"}),c.jsx("span",{className:"pointer-events-none absolute inset-0 flex items-center justify-center opacity-0 transition-opacity group-hover:opacity-100",children:c.jsx("span",{className:"rounded-full bg-black/65 px-3 py-1.5 text-xs font-medium text-white",children:"Click to expand"})})]}),c.jsx("span",{className:"block truncate border-t border-border/60 px-2 py-1 text-xs text-muted-foreground",children:Ee.name})]})}),c.jsxs(Ya,{className:"max-h-[92vh] max-w-[96vw] gap-2 overflow-hidden p-2",showCloseButton:!0,children:[c.jsx(Xa,{className:"mr-8 truncate px-1 text-sm font-medium",children:Ee.name}),c.jsx("img",{src:_e,alt:Ee.name,className:"max-h-[82vh] w-full object-contain"})]})]},`${Ee.name}-${Ye}`)})}),Dt.length>0&&c.jsx("div",{className:"flex flex-wrap gap-2",children:Dt.map((Ee,Ye)=>c.jsxs("span",{className:"inline-flex max-w-full items-center gap-1.5 rounded-md border border-border/70 bg-muted/45 px-2 py-1 text-xs font-medium leading-none text-foreground",title:Ee.mimeType,children:[c.jsx(fa,{filename:Ee.name,className:"h-3.5 w-3.5 shrink-0"}),c.jsx("span",{className:"max-w-[180px] truncate",children:Ee.name})]},`${Ee.name}-${Ye}`))})]})}),It()]}):c.jsxs("div",{className:"relative min-w-0 max-w-full break-words [overflow-wrap:anywhere]",children:[c.jsx(y8,{"data-message-from":"assistant",className:"min-w-0 max-w-full break-words [overflow-wrap:anywhere]",children:c.jsx(I7,{content:s,compact:_,isStreaming:v,preferLlmUi:w,onOpenPath:M})}),Ft,yt]}):Tt?c.jsx("div",{className:"flex items-center gap-3 px-1 py-1 text-sm text-muted-foreground",children:c.jsx(vq,{})}):null]})]})}),c.jsx(cmt,{open:X,onOpenChange:Q,contextFlow:a,responseContent:s})]})}const xL=y.memo(Omt,(e,r)=>{const{messageFromEnd:n,messageIndex:i,...s}=e,{messageFromEnd:a,messageIndex:o,...l}=r,u=Object.keys(l);return u.length===Object.keys(s).length&&u.every(d=>Object.is(s[d],l[d]))});xL.displayName="Message";function Mmt(e){if(!(e!=null&&e.metadata))return{};try{const r=JSON.parse(e.metadata);return r&&typeof r=="object"&&!Array.isArray(r)?r:{}}catch{return{}}}function Gde(e){const r=Mmt(e),n=r.repositoryId??r.repoId;return typeof n=="string"&&n.trim()?n.trim():null}function bq(e,r){const n=Gde(e);return n?r.find(i=>i.id===n)??null:null}function Rmt(e,r){return!e||e==="gateway"?!1:!r.has(e)}function _q(e){const r=new Date(e),i=new Date().getTime()-r.getTime();return i<6e4?"just now":i<36e5?`${Math.floor(i/6e4)}m ago`:i<864e5?`${Math.floor(i/36e5)}h ago`:r.toLocaleDateString()}function Pmt({platform:e}){switch(e){case"windows":case"macos":case"linux":return c.jsx(wo,{className:"h-2.5 w-2.5"});case"android":case"ios":return c.jsx(r4,{className:"h-2.5 w-2.5"});default:return c.jsx(_i,{className:"h-2.5 w-2.5"})}}function Lmt({projects:e,personalSessions:r=[],activeProjectId:n,activeSessionId:i,loading:s=!1,hasMoreProjects:a=!1,showFewerProjects:o=!1,onSelectProject:l,onSelectPersonalSession:u,onNewPersonalSession:d,onCreateProject:h,onRemoveProject:f,onChangeDirectory:m,onAssignRepository:x,onShowMore:v,onShowFewer:_,sessionInfo:w,nodes:S=[],repositories:C=[]}){const j=y.useMemo(()=>new Set(S.filter(q=>!q.isGateway).map(q=>q.id)),[S]),[T,E]=y.useState(""),N=T.trim().toLowerCase(),M=y.useMemo(()=>N?e.filter(q=>{const F=bq(q,C),B=q.nodeId&&q.nodeId!=="gateway"?S.find(D=>D.id===q.nodeId):null;return[q.title,q.rootPath,F==null?void 0:F.name,B==null?void 0:B.name,...q.sessions.flatMap(D=>[D.name,D.projectPath])].some(D=>D==null?void 0:D.toLowerCase().includes(N))}):e,[S,N,C,e]),$=y.useMemo(()=>N?r.filter(q=>[q.name,q.projectPath].some(F=>F==null?void 0:F.toLowerCase().includes(N))):r,[N,r]);return c.jsxs("div",{className:"flex flex-col h-full",children:[c.jsxs("div",{className:"flex h-[35px] shrink-0 items-center gap-2 px-2.5 border-b",children:[c.jsxs("div",{className:"flex min-w-0 flex-1 items-center gap-1.5 rounded-md bg-muted/60 px-2 py-1",children:[c.jsx(Ka,{className:"h-3.5 w-3.5 shrink-0 text-muted-foreground"}),c.jsx("input",{type:"search",value:T,onChange:q=>E(q.target.value),placeholder:"Search chats and projects","aria-label":"Search chats and projects",className:"min-w-0 flex-1 bg-transparent text-xs outline-none placeholder:text-muted-foreground"})]}),c.jsxs(pn,{children:[c.jsx(un,{asChild:!0,children:c.jsx(ge,{variant:"ghost",size:"icon",className:"h-6 w-6 shrink-0",onClick:h,children:c.jsx(Ps,{className:"h-3.5 w-3.5"})})}),c.jsx(dn,{side:"right",children:"New project"})]})]}),s?c.jsx("div",{className:"flex flex-1 items-center justify-center",children:c.jsx(Ot,{className:"h-4 w-4 animate-spin text-muted-foreground"})}):c.jsxs(c.Fragment,{children:[c.jsxs("div",{className:"flex max-h-[50%] min-h-0 shrink-0 flex-col border-b",children:[c.jsx("div",{className:"flex h-7 shrink-0 items-center justify-between px-3",children:c.jsx("span",{className:"text-2xs font-medium text-muted-foreground",children:"Projects"})}),c.jsx(vc,{className:"min-h-0 flex-1",children:c.jsxs("div",{className:"space-y-0.5 px-1.5 pb-1.5",children:[e.length===0&&c.jsxs("p",{className:"text-xs text-muted-foreground text-center py-4",children:["No projects yet.",c.jsx("br",{}),c.jsx("button",{onClick:h,className:"underline underline-offset-2 hover:text-foreground mt-1 inline-block",children:"Choose project folder"})]}),e.length>0&&M.length===0&&c.jsx("p",{className:"text-xs text-muted-foreground text-center py-4",children:"No matching projects."}),M.map(q=>{const F=q.id===n,B=q.nodeId&&q.nodeId!=="gateway"?S.find(O=>O.id===q.nodeId):null,W=Rmt(q.nodeId,j),D=bq(q,C);return c.jsxs("div",{className:`group grid w-full grid-cols-[auto,minmax(0,1fr),auto] items-start gap-1.5 px-1.5 py-1.5 text-sm transition-colors ${W||F?"cursor-default":"cursor-pointer"} ${F?"rounded-md bg-secondary/70":W?"opacity-50":"hover:rounded-md hover:bg-muted/40"}`,draggable:!!q.rootPath,onDragStart:O=>{if(!q.rootPath){O.preventDefault();return}O.dataTransfer.effectAllowed="copy",O.dataTransfer.setData(bue,JSON.stringify(Lct(q.rootPath,q.title||void 0)))},onClick:()=>{!W&&!F&&l(q.id)},children:[F?c.jsx(Ch,{className:"mt-0.5 h-3.5 w-3.5 shrink-0 text-primary"}):c.jsx(ZM,{className:"mt-0.5 h-3.5 w-3.5 shrink-0 text-muted-foreground"}),c.jsxs("div",{className:"min-w-0 overflow-hidden",children:[c.jsxs("div",{className:"flex min-w-0 items-center gap-1 overflow-hidden",children:[c.jsx("span",{className:"min-w-0 truncate text-xs font-medium",children:q.title||"Untitled Project"}),D&&c.jsxs(c.Fragment,{children:[c.jsx("span",{className:"shrink-0 text-2xs text-muted-foreground",children:"·"}),c.jsxs("span",{className:"flex min-w-0 items-center gap-1 text-2xs text-muted-foreground",children:[c.jsx(Lf,{className:"h-2.5 w-2.5 shrink-0"}),c.jsx("span",{className:"truncate",children:D.name})]})]})]}),c.jsxs("div",{className:"flex min-w-0 items-center gap-1 overflow-hidden text-2xs text-muted-foreground",children:[c.jsx("span",{className:"min-w-0 truncate",children:q.rootPath||"No folder linked"}),c.jsx("span",{className:"shrink-0",children:"·"}),c.jsx("span",{className:"shrink-0",children:_q(q.lastActiveAt)})]}),W&&c.jsxs("div",{className:"mt-0.5 flex items-center gap-1 text-2xs text-orange-500",children:[c.jsx(cve,{className:"h-2.5 w-2.5 shrink-0"}),c.jsx("span",{className:"truncate",children:"Node offline"})]}),B&&!W&&c.jsx("div",{className:"mt-0.5 flex min-w-0 items-center gap-1 text-2xs",children:c.jsxs("span",{className:"inline-flex max-w-full items-center gap-0.5 rounded bg-muted px-1 py-0.5 text-muted-foreground",children:[c.jsx(Pmt,{platform:B.platform}),c.jsx("span",{className:"truncate max-w-[80px]",children:B.name})]})}),F&&w&&c.jsxs("div",{className:"mt-0.5 flex min-w-0 items-center gap-1 text-2xs text-blue-500",children:[c.jsx("span",{className:"truncate",children:w.provider}),c.jsx("span",{className:"shrink-0 text-muted-foreground",children:"·"}),c.jsx(wo,{className:"h-2.5 w-2.5 shrink-0"}),c.jsx("span",{className:"truncate",children:w.isRemote&&w.remoteNode?w.remoteNode.nodeName:"Gateway"})]})]}),c.jsx("div",{className:"flex shrink-0 self-start",children:c.jsxs(Ml,{children:[c.jsx(Rl,{asChild:!0,children:c.jsx(ge,{variant:"ghost",size:"icon","aria-label":"Project actions",className:"h-5.5 w-5.5 shrink-0 text-muted-foreground transition-opacity hover:text-foreground data-[state=open]:opacity-100 sm:opacity-0 sm:group-hover:opacity-100",onClick:O=>O.stopPropagation(),children:c.jsx(H1,{className:"h-3 w-3"})})}),c.jsxs(Ko,{align:"end",side:"right",className:"min-w-[10rem]",children:[x&&c.jsxs(Vn,{disabled:!q.rootPath,className:`gap-2 ${D?"text-primary focus:text-primary":""}`,onSelect:O=>{O.preventDefault(),x(q.id)},children:[c.jsx(Lf,{className:"h-3.5 w-3.5"}),c.jsx("span",{children:D?`Repository: ${D.name}`:"Assign repository"})]}),c.jsxs(Vn,{className:"gap-2",onSelect:O=>{O.preventDefault(),m(q.id)},children:[c.jsx(n1e,{className:"h-3.5 w-3.5"}),c.jsx("span",{children:"Change directory"})]}),c.jsxs(Vn,{className:"gap-2 text-destructive focus:text-destructive",onSelect:O=>{O.preventDefault(),f(q.id)},children:[c.jsx(GM,{className:"h-3.5 w-3.5"}),c.jsx("span",{children:"Archive project"})]})]})]})})]},q.id)}),!N&&a&&v&&c.jsx("button",{className:"w-full px-2 py-2 text-left text-xs text-muted-foreground transition-colors hover:text-foreground",onClick:v,children:"Show more projects"}),!N&&o&&_&&c.jsx("button",{className:"w-full px-2 py-2 text-left text-xs text-muted-foreground transition-colors hover:text-foreground",onClick:_,children:"Show fewer projects"})]})})]}),c.jsxs("div",{className:"flex min-h-0 flex-1 flex-col",children:[c.jsxs("div",{className:"flex h-7 shrink-0 items-center justify-between px-3",children:[c.jsx("span",{className:"text-2xs font-medium text-muted-foreground",children:"Personal chats"}),d&&c.jsxs(pn,{children:[c.jsx(un,{asChild:!0,children:c.jsx(ge,{variant:"ghost",size:"icon",className:"h-5 w-5",onClick:d,children:c.jsx(Ps,{className:"h-3 w-3"})})}),c.jsx(dn,{side:"right",children:"New personal chat"})]})]}),c.jsx(vc,{className:"min-h-0 flex-1",children:c.jsxs("div",{className:"space-y-0.5 px-1.5 pb-1.5",children:[r.length===0&&c.jsxs("p",{className:"text-xs text-muted-foreground text-center py-4",children:["No personal chats yet.",d&&c.jsxs(c.Fragment,{children:[c.jsx("br",{}),c.jsx("button",{onClick:d,className:"underline underline-offset-2 hover:text-foreground mt-1 inline-block",children:"Start a chat"})]})]}),r.length>0&&$.length===0&&c.jsx("p",{className:"text-xs text-muted-foreground text-center py-4",children:"No matching personal chats."}),$.map(q=>{const F=n===null&&q.id===i;return c.jsxs("div",{className:`group flex items-center gap-1.5 rounded-md px-1.5 py-1 transition-colors text-sm ${F?"bg-secondary/70 cursor-default":"cursor-pointer hover:bg-muted/40"}`,onClick:()=>{!F&&u&&u(q.id)},children:[c.jsx(yd,{className:`h-3.5 w-3.5 shrink-0 ${F?"text-primary":"text-muted-foreground"}`}),c.jsxs("div",{className:"min-w-0 flex-1",children:[c.jsx("div",{className:"truncate text-xs font-medium",children:q.name||"Personal chat"}),c.jsx("div",{className:"text-2xs text-muted-foreground",children:_q(q.lastActiveAt??q.createdAt)})]})]},q.id)})]})})]})]})]})}function $mt({suggestions:e,onSelect:r,className:n}){return c.jsx("div",{className:Ce("flex flex-wrap gap-2 justify-center",n),children:e.map(i=>c.jsx("button",{onClick:()=>r(i),className:"px-4 py-2 text-sm rounded-full border bg-background text-muted-foreground hover:bg-accent hover:text-accent-foreground transition-colors",children:i},i))})}const Dmt={pending:{icon:Wm,label:"Pending",color:"text-muted-foreground"},approved:{icon:Ot,label:"Running",color:"text-blue-500"},rejected:{icon:Hn,label:"Rejected",color:"text-destructive"},executed:{icon:Ts,label:"Done",color:"text-green-500"},failed:{icon:Is,label:"Failed",color:"text-destructive"}};function Imt({action:e,expanded:r,onToggle:n}){const i=Dmt[e.status],s=i.icon;return c.jsxs("div",{className:"border rounded-md",children:[c.jsxs("button",{type:"button",className:"flex items-center gap-3 w-full px-3 py-2.5 text-left hover:bg-muted/50 transition-colors",onClick:n,children:[c.jsx(s,{className:Ce("h-4 w-4 shrink-0",i.color,e.status==="approved"&&"animate-spin")}),c.jsxs("span",{className:"flex-1 min-w-0",children:[c.jsx("span",{className:"font-mono text-sm font-medium",children:e.tool}),c.jsxs("span",{className:"text-xs text-muted-foreground ml-2",children:["Step ",e.order+1]})]}),c.jsx(Mr,{variant:"outline",className:"text-2xs px-1.5 py-0",children:i.label}),r?c.jsx(nl,{className:"h-4 w-4 text-muted-foreground"}):c.jsx(gs,{className:"h-4 w-4 text-muted-foreground"})]}),r&&c.jsxs("div",{className:"px-3 pb-3 pt-1 border-t bg-muted/30",children:[c.jsx("p",{className:"text-sm text-muted-foreground mb-2",children:e.description}),c.jsx("pre",{className:"text-xs bg-background rounded p-2 overflow-x-auto max-h-48",children:JSON.stringify(e.args,null,2)}),e.result&&c.jsx("div",{className:Ce("mt-2 text-xs rounded p-2",e.result.ok?"bg-green-500/10 text-green-700 dark:text-green-400":"bg-destructive/10 text-destructive"),children:e.result.message})]})]})}function Bmt({plan:e,onApprove:r,onReject:n,isExecuting:i,className:s}){const[a,o]=y.useState(new Set),l=m=>{o(x=>{const v=new Set(x);return v.has(m)?v.delete(m):v.add(m),v})},u=e.actions.filter(m=>m.status==="pending").length,d=e.actions.filter(m=>m.status==="executed").length,h=e.actions.filter(m=>m.status==="failed").length,f=u===0;return c.jsxs(Fr,{className:Ce("p-4 space-y-3",s),children:[c.jsxs("div",{className:"flex items-start justify-between gap-3",children:[c.jsxs("div",{children:[c.jsxs("h3",{className:"text-sm font-medium flex items-center gap-2",children:[c.jsx(zmt,{className:"h-4 w-4"}),"Plan",c.jsxs(Mr,{variant:"secondary",className:"text-2xs px-1.5 py-0",children:[e.actions.length," step",e.actions.length!==1?"s":""]})]}),c.jsx("p",{className:"text-xs text-muted-foreground mt-1 line-clamp-2",children:e.summary})]}),f&&c.jsx(Mr,{variant:h>0?"destructive":"success",className:"shrink-0",children:h>0?`${h} failed`:"Complete"})]}),c.jsx("div",{className:"space-y-1.5",children:e.actions.map(m=>c.jsx(Imt,{action:m,expanded:a.has(m.id),onToggle:()=>l(m.id)},m.id))}),u>0&&c.jsxs("div",{className:"flex items-center gap-2 pt-1",children:[c.jsx(ge,{size:"sm",onClick:()=>r(),disabled:i,children:i?c.jsxs(c.Fragment,{children:[c.jsx(Ot,{className:"h-3.5 w-3.5 mr-1.5 animate-spin"}),"Executing..."]}):c.jsxs(c.Fragment,{children:[c.jsx(Gw,{className:"h-3.5 w-3.5 mr-1.5"}),"Execute all (",u,")"]})}),c.jsxs(ge,{size:"sm",variant:"outline",onClick:n,disabled:i,children:[c.jsx(Hn,{className:"h-3.5 w-3.5 mr-1.5"}),"Reject"]})]}),f&&!i&&c.jsxs("p",{className:"text-xs text-muted-foreground",children:[d>0&&`${d} action${d!==1?"s":""} executed.`,h>0&&` ${h} failed.`]})]})}function zmt({className:e}){return c.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:e,children:[c.jsx("rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1"}),c.jsx("path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2"}),c.jsx("path",{d:"M12 11h4"}),c.jsx("path",{d:"M12 16h4"}),c.jsx("path",{d:"M8 11h.01"}),c.jsx("path",{d:"M8 16h.01"})]})}function Fmt(e){return e.find(r=>r.status==="in-progress")??null}function Kde(e){return e.length>0&&e.every(r=>r.status==="completed")}function Hmt(e){const r=Fmt(e),n=Kde(e);return{headerLabel:r?r.title:n?"All tasks completed":"Tasks",showHeaderSpinner:!!r,showHeaderCompleted:!r&&n}}function B7({items:e,className:r,onClear:n}){const[i,s]=y.useState(!1),a=y.useMemo(()=>Kde(e),[e]),o=y.useMemo(()=>Hmt(e),[e]);if(e.length===0)return null;const l=e.filter(m=>m.status==="completed").length,u=e.length,d=u>0?Math.round(l/u*100):0,h=i?"Tasks":o.headerLabel,f=a?"bg-green-500":"bg-primary";return c.jsxs("div",{className:Ce("rounded-lg border bg-muted/30 p-3 space-y-2",r),children:[c.jsxs("button",{type:"button",onClick:()=>s(m=>!m),className:"flex items-center gap-2 w-full text-left",children:[c.jsx(nl,{className:Ce("h-3 w-3 shrink-0 text-muted-foreground transition-transform duration-200",!i&&"-rotate-90")}),!i&&o.showHeaderSpinner&&c.jsx(Ot,{className:"h-3.5 w-3.5 shrink-0 text-primary animate-spin"}),!i&&o.showHeaderCompleted&&c.jsx(Ts,{className:"h-3.5 w-3.5 shrink-0 text-green-500"}),c.jsx("span",{className:"min-w-0 truncate text-xs font-medium text-foreground",children:h}),c.jsx("div",{className:"flex-1 h-1.5 rounded-full bg-muted overflow-hidden",children:c.jsx("div",{className:Ce("h-full rounded-full transition-all duration-300",f),style:{width:`${d}%`}})}),c.jsxs("span",{className:"text-2xs text-muted-foreground tabular-nums",children:[l,"/",u]}),n&&c.jsx("button",{type:"button",onClick:m=>{m.stopPropagation(),n()},className:"shrink-0 p-0.5 rounded hover:bg-muted text-muted-foreground hover:text-foreground transition-colors",title:"Clear todo list",children:c.jsx(Hn,{className:"h-3 w-3"})})]}),i&&c.jsx("div",{className:"space-y-1",children:e.map(m=>c.jsxs("div",{className:Ce("flex items-start gap-2 text-xs py-0.5",m.status==="completed"&&"text-muted-foreground"),children:[m.status==="completed"?c.jsx(Ts,{className:"h-3.5 w-3.5 shrink-0 mt-0.5 text-green-500"}):m.status==="in-progress"?c.jsx(Ot,{className:"h-3.5 w-3.5 shrink-0 mt-0.5 text-primary animate-spin"}):c.jsx(JM,{className:"h-3.5 w-3.5 shrink-0 mt-0.5 text-muted-foreground/50"}),c.jsx("span",{className:Ce("flex-1 min-w-0",m.status==="completed"&&"line-through"),children:m.title})]},m.id))})]})}function Wmt({files:e,onAccept:r,onReject:n,onAcceptAll:i,onRejectAll:s,onFileClick:a,className:o}){const l=y.useRef(null),[u,d]=y.useState(!1),[h,f]=y.useState(!1);if(y.useEffect(()=>{const C=l.current;if(!C||typeof ResizeObserver>"u")return;const j=()=>{d(C.clientWidth<560)};j();const T=new ResizeObserver(()=>j());return T.observe(C),()=>T.disconnect()},[]),e.length===0)return null;const m=e.filter(C=>C.state==="undecided").length,x=e.reduce((C,j)=>C+(j.insertions??0),0),v=e.reduce((C,j)=>C+(j.deletions??0),0),_=e.some(C=>C.insertions!==void 0||C.deletions!==void 0),w=_?null:`${e.length} ${e.length===1?"file":"files"}`,S=({insertions:C,deletions:j})=>c.jsxs("span",{className:"shrink-0 whitespace-nowrap text-2xs tabular-nums",children:[c.jsxs("span",{className:"text-green-600 dark:text-green-400",children:["+",C]}),c.jsxs("span",{className:"ml-1 text-red-600 dark:text-red-400",children:["-",j]})]});return c.jsxs("div",{ref:l,className:Ce("overflow-hidden rounded-lg border bg-muted/30",o),children:[c.jsxs("div",{className:Ce("flex items-center justify-between gap-2 bg-muted/20 px-3 py-2",h&&"border-b"),children:[c.jsxs("button",{type:"button",className:"flex min-w-0 items-center gap-1.5 text-left",onClick:()=>f(C=>!C),"aria-expanded":h,children:[c.jsx(gs,{className:Ce("h-3.5 w-3.5 shrink-0 text-muted-foreground transition-transform",h&&"rotate-90")}),c.jsx(hh,{className:"h-3.5 w-3.5 text-muted-foreground"}),c.jsx("span",{className:"truncate text-xs font-medium",children:"Files changed"}),_&&c.jsx(S,{insertions:x,deletions:v}),w&&c.jsx("span",{className:"shrink-0 whitespace-nowrap text-2xs tabular-nums text-muted-foreground",children:w}),h&&m>0&&c.jsxs("span",{className:"shrink-0 text-2xs text-amber-500 dark:text-amber-400",children:[m," pending"]})]}),m>0&&c.jsxs("div",{className:"ml-auto flex shrink-0 items-center gap-1",children:[c.jsxs(ge,{size:u?"icon":"sm",variant:"ghost",className:Ce("h-6 shrink-0 text-xs",u?"w-6 p-0":"px-2"),onClick:i,title:"Keep all","aria-label":"Keep all",children:[c.jsx(ls,{className:Ce("h-3 w-3 shrink-0",!u&&"mr-1")}),!u&&"Keep all"]}),c.jsxs(ge,{size:u?"icon":"sm",variant:"ghost",className:Ce("h-6 shrink-0 text-xs",u?"w-6 p-0":"px-2"),onClick:s,title:"Undo all","aria-label":"Undo all",children:[c.jsx(pu,{className:Ce("h-3 w-3 shrink-0",!u&&"mr-1")}),!u&&"Undo all"]})]})]}),h&&c.jsx("div",{className:"divide-y",children:e.map(C=>c.jsxs("div",{className:Ce("flex items-center gap-2 px-3 py-1.5 text-xs",C.state==="accepted"&&"bg-green-500/5",C.state==="rejected"&&"bg-red-500/5 text-muted-foreground"),children:[c.jsx(fa,{filename:C.name,className:"h-3.5 w-3.5 shrink-0"}),c.jsx("button",{type:"button",className:Ce("min-w-0 flex-1 truncate text-left hover:underline cursor-pointer",C.state==="rejected"&&"line-through"),title:`Review diff for ${C.path}`,onClick:()=>a==null?void 0:a(C.path),children:C.path}),_&&c.jsx(S,{insertions:C.insertions??0,deletions:C.deletions??0}),C.state==="undecided"&&c.jsxs("div",{className:"ml-auto flex items-center gap-0.5 shrink-0",children:[c.jsx("button",{type:"button",className:"p-1 rounded hover:bg-primary/10 text-primary transition-colors",onClick:()=>a==null?void 0:a(C.path),title:"Review changes",children:c.jsx(Uf,{className:"h-3 w-3"})}),c.jsx("button",{type:"button",className:"p-1 rounded hover:bg-green-500/20 text-green-600 dark:text-green-400 transition-colors",onClick:()=>r==null?void 0:r(C.path),title:"Keep all changes",children:c.jsx(ls,{className:"h-3 w-3"})}),c.jsx("button",{type:"button",className:"p-1 rounded hover:bg-red-500/20 text-red-600 dark:text-red-400 transition-colors",onClick:()=>n==null?void 0:n(C.path),title:"Undo all changes",children:c.jsx(pu,{className:"h-3 w-3"})})]}),C.state==="accepted"&&c.jsx("span",{className:"text-2xs text-green-600 dark:text-green-400 shrink-0",children:"Kept"}),C.state==="rejected"&&c.jsx("span",{className:"text-2xs text-red-500 shrink-0",children:"Undone"})]},C.path))})]})}function Umt(e,r,n,i){const s=e.findIndex(u=>u.id===r);if(s<0)return e;const a=[...e],[o]=a.splice(s,1);if(!o)return e;if(n==null)return a.push(o),a;const l=a.findIndex(u=>u.id===n);return l<0?e:(a.splice(l+(i==="after"?1:0),0,o),a)}function Vmt({item:e,index:r}){return c.jsxs("div",{className:"flex items-start gap-2 rounded-lg border border-border/40 bg-background px-3 py-2 text-sm shadow-2xl ring-1 ring-primary/10",children:[c.jsx("div",{className:"mt-0.5 shrink-0 rounded p-0.5 text-muted-foreground",children:r===0?c.jsx(QM,{className:"h-3.5 w-3.5 text-primary"}):c.jsx(gs,{className:"h-3.5 w-3.5 text-muted-foreground"})}),c.jsx("div",{className:"mt-0.5 shrink-0 rounded p-0.5 text-muted-foreground",children:c.jsx(e4,{className:"h-3.5 w-3.5"})}),c.jsxs("div",{className:"min-w-0 flex-1",children:[r===0?c.jsx("span",{className:"mb-0.5 block text-2xs font-medium uppercase tracking-wider text-primary/70",children:"Next"}):c.jsxs("span",{className:"mb-0.5 block text-2xs font-medium uppercase tracking-wider text-muted-foreground",children:["Queued #",r+1]}),c.jsx("span",{className:"whitespace-pre-wrap break-words text-foreground",children:e.displayContent??e.content})]})]})}function qmt({item:e,index:r,onRemove:n,onEdit:i,onReorder:s,onSteer:a,onSendToParallelThread:o,dragActive:l,dropBefore:u,dropAfter:d,onDragStart:h}){const[f,m]=y.useState(!1),[x,v]=y.useState(!0),[_,w]=y.useState(e.displayContent??e.content),S=y.useRef(null),C=f||!l;y.useEffect(()=>{if(f){const N=S.current;N&&(N.focus(),N.setSelectionRange(N.value.length,N.value.length))}},[f]),y.useEffect(()=>{f||w(e.displayContent??e.content)},[e.content,e.displayContent,f]);const j=y.useCallback(()=>{const N=_.trim(),M=e.displayContent??e.content;N&&N!==M&&(i==null||i(e.id,N)),m(!1)},[_,e.content,e.displayContent,e.id,i]),T=y.useCallback(()=>{w(e.displayContent??e.content),m(!1)},[e.content,e.displayContent]),E=y.useCallback(N=>{N.key==="Enter"&&!N.shiftKey?(N.preventDefault(),j()):N.key==="Escape"&&T()},[j,T]);return c.jsxs(c.Fragment,{children:[u&&c.jsx("div",{className:"relative h-0",children:c.jsx("div",{className:"absolute inset-x-2 -top-px h-0.5 rounded-full bg-primary shadow-[0_0_0_1px_hsl(var(--background))]"})}),c.jsxs("div",{"data-queue-id":e.id,className:Ce("group flex cursor-grab touch-none items-start gap-2 rounded-lg border border-border/40 bg-muted/50 px-3 py-2 text-sm transition-all duration-150 ease-out hover:bg-muted/70 active:cursor-grabbing",l&&"border-dashed border-primary/35 bg-primary/5 opacity-0"),onPointerDown:N=>{f||!s||N.target.closest('button, textarea, input, a, [data-no-drag="true"]')||h==null||h(e.id,N)},children:[c.jsx("button",{type:"button","data-no-drag":"true",className:"mt-0.5 shrink-0 rounded p-0.5 text-muted-foreground hover:bg-foreground/10 hover:text-foreground transition-colors",onClick:()=>v(N=>!N),"aria-label":x?"Expand queued message":"Collapse queued message",title:x?"Expand queued message":"Collapse queued message",children:x?c.jsx(gs,{className:"h-3.5 w-3.5"}):r===0?c.jsx(QM,{className:"h-3.5 w-3.5 text-primary"}):c.jsx(nl,{className:"h-3.5 w-3.5 text-muted-foreground"})}),s&&!f&&c.jsx("div",{className:"mt-0.5 shrink-0 rounded p-0.5 text-muted-foreground cursor-grab active:cursor-grabbing touch-none",title:"Drag to reorder","aria-label":"Drag to reorder",children:c.jsx(e4,{className:"h-3.5 w-3.5"})}),c.jsxs("div",{className:"flex-1 min-w-0",children:[r===0&&!f&&c.jsx("span",{className:"text-2xs font-medium uppercase tracking-wider text-primary/70 block mb-0.5",children:"Next"}),r>0&&!f&&c.jsxs("span",{className:"text-2xs font-medium uppercase tracking-wider text-muted-foreground block mb-0.5",children:["Queued #",r+1]}),f?c.jsx("textarea",{ref:S,value:_,onChange:N=>w(N.target.value),onKeyDown:E,onBlur:j,rows:Math.min(_.split(`
1426
1426
  `).length,5),className:"w-full resize-none rounded border border-primary/30 bg-background px-2 py-1 text-sm outline-none focus:border-primary focus:ring-1 focus:ring-primary/20"}):x?c.jsx("span",{className:"block truncate text-foreground",children:e.displayContent??e.content}):c.jsx("span",{className:"whitespace-pre-wrap break-words text-foreground",children:e.displayContent??e.content})]}),c.jsx("div",{className:Ce("mt-0.5 flex shrink-0 items-center gap-0.5 transition-opacity",a?"opacity-100":C?"opacity-0 group-hover:opacity-100":"opacity-0"),children:f?c.jsxs(c.Fragment,{children:[c.jsx("button",{type:"button","data-no-drag":"true",className:"p-1 rounded hover:bg-primary/10 text-primary transition-colors",onClick:j,title:"Save",children:c.jsx(ls,{className:"h-3.5 w-3.5"})}),c.jsx("button",{type:"button","data-no-drag":"true",className:"p-1 rounded hover:bg-foreground/10 text-muted-foreground transition-colors",onClick:T,title:"Cancel",children:c.jsx(Hn,{className:"h-3.5 w-3.5"})})]}):c.jsxs(c.Fragment,{children:[i&&c.jsx("button",{type:"button","data-no-drag":"true",className:"p-1 rounded hover:bg-foreground/10 text-muted-foreground transition-colors",onClick:()=>m(!0),title:"Edit message",children:c.jsx(L_,{className:"h-3 w-3"})}),a&&c.jsxs("button",{type:"button","data-no-drag":"true",className:"inline-flex h-6 items-center gap-1 rounded border border-primary/25 bg-primary/5 px-1.5 text-2xs font-medium text-primary transition-colors hover:bg-primary/10",onClick:()=>a(e.id),title:"Steer with message",children:[c.jsx("span",{children:"Steer"}),c.jsx(tye,{className:"h-3 w-3"})]}),o&&c.jsx("button",{type:"button","data-no-drag":"true",className:"p-1 rounded hover:bg-primary/10 text-muted-foreground hover:text-primary transition-colors",onClick:()=>o(e.id),title:"Send to parallel thread",children:c.jsx(Lf,{className:"h-3 w-3"})}),c.jsx("button",{type:"button","data-no-drag":"true",className:"p-1 rounded hover:bg-destructive/10 text-muted-foreground hover:text-destructive transition-colors",onClick:()=>n==null?void 0:n(e.id),title:"Remove from queue",children:c.jsx(Hn,{className:"h-3.5 w-3.5"})})]})})]}),d&&c.jsx("div",{className:"relative h-0",children:c.jsx("div",{className:"absolute inset-x-2 -top-px h-0.5 rounded-full bg-primary shadow-[0_0_0_1px_hsl(var(--background))]"})})]})}function Yde({items:e,onRemove:r,onEdit:n,onReorder:i,onSteer:s,onSendToParallelThread:a,className:o}){const l=y.useRef(null),u=y.useRef(null),[d,h]=y.useState(null),[f,m]=y.useState(null),[x,v]=y.useState(null);y.useEffect(()=>{if(d&&!e.some(j=>j.id===d)){h(null),m(null),v(null);return}f!=null&&f.targetId&&!e.some(j=>j.id===f.targetId)&&m(d?{targetId:d,placement:"before"}:null)},[d,f,e]),y.useEffect(()=>{var $;if(!d||!x)return;document.body.style.cursor="grabbing",document.body.style.userSelect="none",document.body.style.touchAction="none";const j=(q,F)=>{var O,I;const B=Array.from(((O=l.current)==null?void 0:O.querySelectorAll("[data-queue-id]"))??[]);if(B.length===0){m(null);return}const W=B.filter(R=>R.dataset.queueId&&R.dataset.queueId!==d);if(W.length===0){m({targetId:null,placement:"after"});return}for(const R of W){const P=R.dataset.queueId;if(!P)continue;const H=R.getBoundingClientRect(),G=H.top+H.height/2;if(F<G){m({targetId:P,placement:"before"});return}}const D=((I=W[W.length-1])==null?void 0:I.dataset.queueId)??null;m(D?{targetId:D,placement:"after"}:{targetId:null,placement:"after"})},T=q=>{q.pointerId===x.pointerId&&(v(F=>F&&{...F,x:q.clientX,y:q.clientY}),j(q.clientX,q.clientY))},E=q=>{var B,W;if(q&&q.pointerId!==x.pointerId)return;d&&f&&f.targetId!==d&&(i==null||i(d,f.targetId,f.placement));const F=u.current;(B=F==null?void 0:F.hasPointerCapture)!=null&&B.call(F,x.pointerId)&&((W=F.releasePointerCapture)==null||W.call(F,x.pointerId)),u.current=null,h(null),m(null),v(null)},N=()=>{E()},M=()=>{E()};return window.addEventListener("pointermove",T),window.addEventListener("pointerup",E),window.addEventListener("pointercancel",E),window.addEventListener("blur",M),($=u.current)==null||$.addEventListener("lostpointercapture",N),()=>{var q;document.body.style.cursor="",document.body.style.userSelect="",document.body.style.touchAction="",window.removeEventListener("pointermove",T),window.removeEventListener("pointerup",E),window.removeEventListener("pointercancel",E),window.removeEventListener("blur",M),(q=u.current)==null||q.removeEventListener("lostpointercapture",N)}},[x,d,f,i]);const _=y.useCallback((j,T)=>{var M;if(!i||T.button!==0&&T.pointerType!=="touch"&&T.pointerType!=="pen")return;T.preventDefault();const E=T.currentTarget.closest("[data-queue-id]");if(!E)return;u.current=E,(M=E.setPointerCapture)==null||M.call(E,T.pointerId);const N=E.getBoundingClientRect();h(j),m({targetId:j,placement:"before"}),v({id:j,pointerId:T.pointerId,x:T.clientX,y:T.clientY,offsetX:T.clientX-N.left,offsetY:T.clientY-N.top,width:N.width,height:N.height})},[i]);if(e.length===0)return null;const w=d&&f&&(f.targetId!==d||f.placement==="after")?Umt(e,d,f.targetId,f.placement):e,S=x?w.findIndex(j=>j.id===x.id):-1,C=S>=0?w[S]:null;return c.jsxs("div",{ref:l,className:Ce("space-y-1.5",o),children:[c.jsx("div",{className:"flex items-center gap-1.5 px-0.5",children:c.jsxs("span",{className:"text-xs font-medium text-muted-foreground",children:[e.length," queued message",e.length!==1?"s":""]})}),w.map((j,T)=>c.jsx(qmt,{item:j,index:T,onRemove:r,onEdit:n,onReorder:i,onSteer:s,onSendToParallelThread:a,dragActive:d===j.id,dropBefore:!!(d&&(f==null?void 0:f.targetId)===j.id&&f.placement==="before"&&d!==j.id),dropAfter:!!(d&&(f==null?void 0:f.targetId)===j.id&&f.placement==="after"&&d!==j.id),onDragStart:_},j.id)),x&&C&&c.jsx("div",{className:"pointer-events-none fixed z-50",style:{left:`${x.x-x.offsetX}px`,top:`${x.y-x.offsetY}px`,width:`${x.width}px`,minHeight:`${x.height}px`},children:c.jsx("div",{className:"scale-[1.01] opacity-95",children:c.jsx(Vmt,{item:C,index:S})})})]})}function Gmt({activeProject:e,activeProjectId:r,activeSessionId:n,authLoading:i,fsNodes:s,hasMoreProjects:a,isMobile:o,personalSessions:l,previewOpen:u,projectListLimit:d,projects:h,projectsLoading:f,repositories:m,sessionInfo:x,showArchitecture:v,showDebugPanel:_,showProject:w,showSidebar:S,showTerminal:C,sidebarRef:j,onAssignRepository:T,onBlur:E,onChangeDirectory:N,onCreateProject:M,onCreatePersonalSession:$,onRemoveProject:q,onSelectPersonalSession:F,onSelectProject:B,onShowFewer:W,onShowMore:D,onToggleArchitecture:O,onToggleDebug:I,onToggleEditor:R,onTogglePreview:P,onToggleSidebar:H,onToggleTerminal:G}){return c.jsxs(c.Fragment,{children:[S&&o&&c.jsx("div",{className:"fixed inset-0 z-20",onClick:H}),!o&&c.jsxs("aside",{className:"flex w-12 shrink-0 flex-col items-center gap-2 border-r bg-background px-1 py-2",children:[c.jsxs(pn,{children:[c.jsx(un,{asChild:!0,children:c.jsx(ge,{variant:S?"secondary":"ghost",size:"sm",className:"h-9 w-9 rounded-md p-0",onClick:H,"aria-label":"Toggle projects panel",children:S?c.jsx(e5,{className:"h-4 w-4"}):c.jsx(t5,{className:"h-4 w-4"})})}),c.jsx(dn,{side:"right",children:"Projects"})]}),c.jsxs(pn,{children:[c.jsx(un,{asChild:!0,children:c.jsx(ge,{variant:C?"secondary":"ghost",size:"sm",className:"h-9 w-9 rounded-md p-0",onClick:G,"aria-label":"Terminal",children:c.jsx(Rs,{className:"h-4 w-4"})})}),c.jsx(dn,{side:"right",children:"Terminal"})]}),c.jsxs(pn,{children:[c.jsx(un,{asChild:!0,children:c.jsx(ge,{variant:w?"secondary":"ghost",size:"sm",className:"h-9 w-9 rounded-md p-0",onClick:R,"aria-label":"Editor",children:c.jsx(P_,{className:"h-4 w-4"})})}),c.jsx(dn,{side:"right",children:"Editor"})]}),c.jsxs(pn,{children:[c.jsx(un,{asChild:!0,children:c.jsx(ge,{variant:u?"secondary":"ghost",size:"sm",className:"h-9 w-9 rounded-md p-0","aria-label":"Preview",disabled:i||f,onClick:P,children:c.jsx(_i,{className:"h-4 w-4"})})}),c.jsx(dn,{side:"right",children:"Preview"})]}),c.jsxs(pn,{children:[c.jsx(un,{asChild:!0,children:c.jsx(ge,{variant:v?"secondary":"ghost",size:"sm",className:"h-9 w-9 rounded-md p-0",disabled:i||f,"aria-label":"Architecture",onClick:O,children:c.jsx(R_,{className:"h-4 w-4"})})}),c.jsx(dn,{side:"right",children:"Architecture"})]}),c.jsx("div",{className:"flex-1"}),c.jsxs(pn,{children:[c.jsx(un,{asChild:!0,children:c.jsx(ge,{variant:_?"secondary":"ghost",size:"sm",className:"h-9 w-9 rounded-md p-0",disabled:!w||!e,"aria-label":"Debug",onClick:I,children:c.jsx(KM,{className:"h-4 w-4"})})}),c.jsx(dn,{side:"right",children:"Debug"})]})]}),S&&c.jsx("aside",{ref:j,tabIndex:-1,onBlur:E,className:`overflow-hidden outline-none ${o?"fixed right-[3.25rem] top-1/2 z-50 h-[min(28rem,80vh)] w-[min(20rem,calc(100vw-5rem))] -translate-y-1/2 rounded-xl border bg-background shadow-2xl":"w-64 border-r shrink-0"}`,children:c.jsx(Aa,{name:"Project sidebar",variant:"section",className:"h-full",resetKeys:[r,n,h.length,l.length],children:c.jsx(Lmt,{projects:h,personalSessions:l,activeProjectId:r,activeSessionId:n,loading:f,hasMoreProjects:a,showFewerProjects:h.length>d,onSelectProject:B,onSelectPersonalSession:F,onNewPersonalSession:$,onCreateProject:M,onRemoveProject:q,onChangeDirectory:N,onAssignRepository:T,onShowMore:D,onShowFewer:W,sessionInfo:x,nodes:s,repositories:m})})})]})}const l1=Nn(),Kmt=D0();function Ymt(e){const[r,n]=y.useState([]),i=y.useRef(async()=>{}),s=y.useRef(e);s.current=e;const a=y.useCallback(async()=>{try{const d=e?`${l1}/api/consent/pending/${e}`:`${l1}/api/consent/pending`,f=await(await fetch(d)).json();n(f.requests)}catch{}},[e]);i.current=a,y.useEffect(()=>{a()},[a]),y.useEffect(()=>{let d=!1;const h=new WebSocket(Kmt);return h.onmessage=f=>{if(!d)try{const m=JSON.parse(f.data);if(m.type==="consent.required"){const x=m.payload,v=s.current;(!v||x.sessionId===v)&&n(_=>[..._,x])}if(m.type==="consent.resolved"){const x=m.payload;n(v=>v.filter(_=>_.id!==x.requestId))}}catch{}},h.onopen=()=>{d||i.current()},()=>{if(d=!0,h.onopen=()=>{try{h.close()}catch{}},h.onmessage=null,h.onerror=null,h.onclose=null,h.readyState===WebSocket.OPEN)try{h.close()}catch{}}},[]);const o=y.useCallback(async d=>{try{await fetch(`${l1}/api/consent/${d}/approve`,{method:"POST"}),n(h=>h.filter(f=>f.id!==d))}catch{}},[]),l=y.useCallback(async(d,h)=>{try{await fetch(`${l1}/api/consent/${d}/reject`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({reason:h})}),n(f=>f.filter(m=>m.id!==d))}catch{}},[]),u=y.useCallback(async(d,h)=>{try{const m=await(await fetch(`${l1}/api/consent/pending/${d}/approve-all`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({reason:h})})).json(),x=new Set(m.requestIds??[]);return x.size>0?n(v=>v.filter(_=>!x.has(_.id))):n(v=>v.filter(_=>_.sessionId!==d)),!0}catch{return!1}},[]);return{queue:r,approve:o,reject:l,approveAllForSession:u,refresh:a}}function Xmt(){const[e,r]=y.useState(null),n=y.useCallback(async()=>{try{const s=await(await fetch(`${l1}/api/consent/policy`)).json();r(s)}catch{r(null)}},[]);return y.useEffect(()=>{n()},[n]),{policy:e,refresh:n}}function wq({risk:e}){const r={low:"bg-green-500/10 text-green-600 dark:text-green-400",medium:"bg-yellow-500/10 text-yellow-600 dark:text-yellow-400",high:"bg-red-500/10 text-red-600 dark:text-red-400"},i={low:t4,medium:PY,high:Z8}[e];return c.jsxs("span",{className:`inline-flex items-center gap-1 px-2 py-0.5 rounded-full text-xs font-medium ${r[e]}`,children:[c.jsx(i,{className:"h-3 w-3"}),e]})}function Sq({level:e}){const r={none:"bg-emerald-500/10 text-emerald-600 dark:text-emerald-400",once:"bg-blue-500/10 text-blue-600 dark:text-blue-400",always:"bg-amber-500/10 text-amber-700 dark:text-amber-300",dangerous:"bg-red-500/10 text-red-600 dark:text-red-400"};return c.jsx("span",{className:`inline-flex items-center gap-1 px-2 py-0.5 rounded-full text-xs font-medium ${r[e]}`,children:e})}function kq({expiresAt:e}){const[r,n]=y.useState("");return y.useEffect(()=>{const i=()=>{const a=new Date(e).getTime()-Date.now();if(a<=0){n("expired");return}const o=Math.ceil(a/1e3);o>60?n(`${Math.ceil(o/60)}m`):n(`${o}s`)};i();const s=setInterval(i,1e3);return()=>clearInterval(s)},[e]),c.jsxs("span",{className:"inline-flex items-center gap-1 text-xs text-muted-foreground",children:[c.jsx(Wm,{className:"h-3 w-3"}),r]})}function Cq({toolName:e}){return e.startsWith("terminal.")?c.jsx(Rs,{className:"h-4 w-4"}):e.startsWith("file.")?c.jsx(hh,{className:"h-4 w-4"}):c.jsx(TY,{className:"h-4 w-4"})}function Jmt({preview:e,toolName:r}){const n=e.command,i=e.path,s=e.content;return n?c.jsxs("div",{className:"rounded-md bg-muted p-3 font-mono text-xs leading-relaxed overflow-x-auto",children:[c.jsx("span",{className:"text-muted-foreground",children:"$ "}),n]}):i?c.jsxs("div",{className:"rounded-md bg-muted p-3 text-xs leading-relaxed overflow-x-auto",children:[c.jsxs("div",{className:"text-muted-foreground mb-1",children:[r,": ",i]}),s&&c.jsx("pre",{className:"font-mono whitespace-pre-wrap",children:s.length>500?s.slice(0,500)+"...":s})]}):c.jsx("div",{className:"rounded-md bg-muted p-3 font-mono text-xs leading-relaxed overflow-x-auto",children:JSON.stringify(e,null,2)})}function Zmt({request:e,onApprove:r,onReject:n,compact:i=!1}){const[s,a]=y.useState(!1),o=async()=>{a(!0),r(e.id)},l=async()=>{a(!0),n(e.id)};return i?c.jsxs("div",{className:"flex items-center gap-3 px-3 py-2 rounded-lg border bg-card",children:[c.jsx(Cq,{toolName:e.toolName}),c.jsxs("div",{className:"flex-1 min-w-0",children:[c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx("span",{className:"text-xs font-medium truncate",children:e.toolName}),c.jsx(wq,{risk:e.risk}),c.jsx(Sq,{level:e.policy.consentLevel}),c.jsx(kq,{expiresAt:e.expiresAt})]}),c.jsx("p",{className:"text-xs text-muted-foreground truncate",children:e.summary})]}),c.jsxs("div",{className:"flex items-center gap-1.5 shrink-0",children:[c.jsxs("button",{onClick:o,disabled:s,className:"inline-flex items-center gap-1 px-2.5 py-1 rounded-md text-xs font-medium bg-green-500/10 text-green-600 dark:text-green-400 hover:bg-green-500/20 disabled:opacity-50 transition-colors",children:[c.jsx(tI,{className:"h-3 w-3"}),"Approve"]}),c.jsxs("button",{onClick:l,disabled:s,className:"inline-flex items-center gap-1 px-2.5 py-1 rounded-md text-xs font-medium bg-red-500/10 text-red-600 dark:text-red-400 hover:bg-red-500/20 disabled:opacity-50 transition-colors",children:[c.jsx(Z8,{className:"h-3 w-3"}),"Reject"]})]})]}):c.jsxs("div",{className:"rounded-lg border bg-card shadow-sm overflow-hidden",children:[c.jsxs("div",{className:"flex items-center justify-between px-4 py-3 border-b bg-muted/30",children:[c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx(Cq,{toolName:e.toolName}),c.jsx("span",{className:"text-sm font-medium",children:e.toolName}),c.jsx(wq,{risk:e.risk}),c.jsx(Sq,{level:e.policy.consentLevel})]}),c.jsx(kq,{expiresAt:e.expiresAt})]}),c.jsxs("div",{className:"p-4 space-y-3",children:[c.jsx("p",{className:"text-sm text-foreground",children:e.summary}),c.jsxs("div",{className:"space-y-1",children:[c.jsx("p",{className:"text-xs text-muted-foreground",children:e.policy.description}),!e.policy.knownTool&&c.jsx("p",{className:"text-xs text-red-600 dark:text-red-400",children:"Unknown tool: blocked behind dangerous consent until added to the active profile."})]}),c.jsx(Jmt,{preview:e.preview,toolName:e.toolName})]}),c.jsxs("div",{className:"flex items-center justify-end gap-2 px-4 py-3 border-t bg-muted/20",children:[c.jsxs("button",{onClick:l,disabled:s,className:"inline-flex items-center gap-1.5 px-4 py-2 rounded-md text-xs font-medium bg-red-500/10 text-red-600 dark:text-red-400 hover:bg-red-500/20 disabled:opacity-50 transition-colors",children:[c.jsx(Z8,{className:"h-3.5 w-3.5"}),"Reject"]}),c.jsxs("button",{onClick:o,disabled:s,className:"inline-flex items-center gap-1.5 px-4 py-2 rounded-md text-xs font-medium bg-green-500/10 text-green-600 dark:text-green-400 hover:bg-green-500/20 disabled:opacity-50 transition-colors",children:[c.jsx(tI,{className:"h-3.5 w-3.5"}),"Approve"]})]})]})}function Qmt({status:e}){const r={running:{icon:Ot,label:"Running",color:"bg-blue-500/10 text-blue-600 dark:text-blue-400"},"awaiting-approval":{icon:PY,label:"Awaiting Approval",color:"bg-yellow-500/10 text-yellow-600 dark:text-yellow-400"},"needs-input":{icon:Wm,label:"Needs Input",color:"bg-orange-500/10 text-orange-600 dark:text-orange-400"},completed:{icon:Ts,label:"Completed",color:"bg-green-500/10 text-green-600 dark:text-green-400"},failed:{icon:kh,label:"Failed",color:"bg-red-500/10 text-red-600 dark:text-red-400"}},{icon:n,label:i,color:s}=r[e];return c.jsxs("span",{className:`inline-flex items-center gap-1 px-2 py-0.5 rounded-full text-xs font-medium ${s}`,children:[c.jsx(n,{className:`h-3 w-3 ${e==="running"?"animate-spin":""}`}),i]})}function egt({className:e="",compact:r=!1,sessionId:n,onApproveAllEnabled:i}){const{queue:s,approve:a,reject:o,approveAllForSession:l}=Ymt(n),{policy:u}=Xmt(),[d,h]=y.useState(!1),f=y.useMemo(()=>n?s.filter(x=>x.sessionId===n):s,[s,n]),m=async()=>{if(!n||d)return;h(!0),await l(n)&&(i==null||i()),h(!1)};return f.length===0?null:c.jsxs("div",{className:`space-y-2 ${e}`,children:[c.jsxs("div",{className:"flex items-center justify-between px-1",children:[c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx(Qmt,{status:"awaiting-approval"}),c.jsxs("div",{className:"flex flex-col",children:[c.jsxs("span",{className:"text-xs text-muted-foreground",children:[f.length," pending ",f.length===1?"request":"requests"]}),u&&c.jsxs("span",{className:"text-xs text-muted-foreground",children:["Profile: ",c.jsx("span",{className:"font-medium text-foreground",children:u.activeProfileName??"custom"})," ","• ",u.toolCount," configured tools • unknown tools require dangerous consent"]})]})]}),n&&f.length>0&&c.jsx("button",{onClick:m,disabled:d,className:"text-xs text-green-600 hover:text-green-500 dark:text-green-400 dark:hover:text-green-300 disabled:opacity-50 disabled:cursor-not-allowed",children:d?"Approving...":"Approve all in this session"})]}),c.jsx("div",{className:"space-y-2",children:f.map(x=>c.jsx(Zmt,{request:x,onApprove:a,onReject:o,compact:r},x.id))})]})}function tgt({activeProject:e,activeProjectDisplayName:r,activeProjectRoot:n,activeSessionId:i,availableFilesForMention:s,availableSkills:a,changedFiles:o,changedFilesForComposer:l,chatCollapsed:u,chatMode:d,chatProvider:h,chatProviderRuntimeMode:f,chatResponseStyle:m,cliModel:x,developerChatPanelStyle:v,developerChatSubmitLoading:_,developerChatUiState:w,developerComposerControlRow:S,developerPlaceholder:C,editComposerBag:j,error:T,hasMessages:E,hasMoreMessages:N,hitMaxRounds:M,inputSegments:$,inputValueRef:q,inputVersion:F,isLoading:B,isLoadingHistory:W,isMobile:D,loadOlderMessages:O,limitReached:I,managerThreads:R,messageContents:P,messageQueue:H,messages:G,pendingPlan:U,previewOpen:V,projectNodeId:J,projectSuggestions:z,projects:ee,projectsLoading:X,promptInputRef:Q,sendTarget:ie,sessionInfo:re,setChatPanelElement:le,showDesktopProject:fe,showProject:se,showScreenShare:oe,suggestions:be,threadTargetRepoRuntime:je,token:He,todoList:Qe,voiceLevels:ft,voiceRecording:Nt,voiceTranscribing:Mt,onAcceptAllFiles:Ut,onAcceptFile:Dt,onCancelRequest:Bt,onChangedFileClick:mt,onChatModeChange:Ae,onClearTodoList:jt,onCliModelChange:Ne,onContinueChat:ke,onDequeueMessage:et,onEditPreviousMessage:at,onExecutePlan:Ze,onHandleInputChange:xt,onHandleMemoryFeedback:Tt,onHandleSuggestion:We,onMemorySourceOpen:ve,onMoveRepoToGateway:ye,onOpenAddProject:Fe,onOpenMessagePath:Ke,onOpenTerminalFromToolCall:Be,onProviderChange:At,onProviderRuntimeModeChange:dt,onQueue:er,onRejectAllFiles:Jt,onRejectFile:Vt,onRejectPlan:Et,onReorderQueueItem:It,onResponseStyleChange:Ft,onSearchFiles:ze,onSendTargetChange:tt,onSetApproveAllInSession:yt,onSteerQueuedMessage:Ee,onStopRecording:Ye,onSubmit:_e,onUpdateQueueItem:Wt,onVoiceInput:vt,renderInlineSecretPrompt:Rt}){return E?c.jsx("div",{ref:le,className:"relative flex flex-col min-h-0 min-w-0 overflow-hidden",style:v,children:!u&&c.jsxs(c.Fragment,{children:[c.jsx(Aa,{name:"Chat transcript",variant:"section",className:"min-h-0 flex-1 border-b",resetKeys:[i,G.length,H.length,fe],children:c.jsxs(Hue,{className:"min-h-0 flex-1 border-b",compact:fe,loading:W,loadingLabel:"Loading chat",messageContents:P,hasMore:N,onLoadMore:O,children:[G.map((sr,en)=>c.jsx(xL,{messageId:sr.id,messageIndex:en,messageFromEnd:G.length-1-en,role:sr.role,content:sr.content,contextFlow:sr.contextFlow,displayContent:sr.displayContent,referencedFiles:sr.referencedFiles,displaySegments:sr.displaySegments,attachments:sr.attachments,thinking:sr.thinking,thinkingDuration:sr.thinkingDuration,toolCalls:sr.toolCalls,segments:sr.segments,isStreaming:B&&sr===G[G.length-1],compact:se||oe||V,preferLlmUi:!0,provider:h,threadControlThreads:R,onOpenTerminal:Be,renderInlineSecretPrompt:Rt,onEditMessage:at,editComposer:j,onOpenPath:Ke,onOpenDiff:mt,onOpenMemorySource:ve,onMemoryFeedback:Tt},sr.id)),H.length>0&&c.jsx(Yde,{items:H,onRemove:et,onEdit:Wt,onReorder:It,onSteer:B&&i?Ee:void 0})]},i??"developer-empty")}),c.jsx("div",{className:`shrink-0 ${D?"px-2 py-2":`py-3 ${fe?"px-3":"px-4"}`}`,children:c.jsxs("div",{className:"mx-auto w-full max-w-3xl space-y-1.5",children:[c.jsxs("div",{className:"space-y-1.5 max-h-[40vh] overflow-y-auto",children:[w.showTodoList&&c.jsx(B7,{items:Qe,onClear:jt}),T&&T!=="login_required"&&T!=="limit_reached"&&!B&&c.jsxs("div",{className:"flex items-center gap-2.5 rounded-lg border border-red-500/40 bg-red-500/10 px-3.5 py-2.5 text-sm text-red-400 dark:text-red-400 dark:border-red-400/40 dark:bg-red-400/10",children:[c.jsx(W1,{className:"h-4 w-4 shrink-0"}),c.jsx("span",{className:"min-w-0 break-words",children:T})]}),M&&!B&&c.jsxs("div",{className:"flex items-center justify-center gap-2 py-1.5",children:[c.jsxs("button",{onClick:()=>ke({token:He,sessionId:i}),className:"inline-flex items-center gap-1.5 rounded-md border bg-background px-3 py-1.5 text-xs font-medium text-foreground shadow-sm hover:bg-accent transition-colors",children:[c.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:c.jsx("polygon",{points:"5 3 19 12 5 21 5 3"})}),"Continue"]}),c.jsx("span",{className:"text-xs text-muted-foreground",children:"Agent stopped - continue to resume"})]}),c.jsx(egt,{compact:!0,sessionId:i,onApproveAllEnabled:()=>yt(!0)}),U&&c.jsx(Bmt,{plan:U,onApprove:Ze,onReject:Et,isExecuting:B}),I&&c.jsx("p",{className:"text-center text-sm text-destructive",children:"Daily limit reached. Come back tomorrow."}),o.length>0&&c.jsx(Wmt,{files:l,onAccept:Dt,onReject:Vt,onAcceptAll:Ut,onRejectAll:Jt,onFileClick:mt})]}),c.jsx(Aa,{name:"Chat composer",variant:"section",resetKeys:[i,F,ie],children:c.jsx(Ew,{ref:Q,availableSkills:a,draftStateKey:`developer:${i??"new-chat"}`,value:q.current,syncKey:F,segments:$,onChange:xt,onSubmit:_e,onStop:Bt,onQueue:er,isLoading:B,submitLoading:_,disabled:I,placeholder:C,onVoiceInput:vt,voiceRecording:Nt,voiceLevels:ft,voiceTranscribing:Mt,onVoiceStop:Ye,mode:d,onModeChange:Ae,responseStyle:m,onResponseStyleChange:Ft,sendTarget:ie,onSendTargetChange:tt,showSendTargetSelector:!1,provider:h,onProviderChange:At,providerRuntimeMode:f,onProviderRuntimeModeChange:dt,cliModel:x,onCliModelChange:Ne,repoRuntime:ie==="thread"?je:null,onMoveToGateway:ie==="thread"?ye:void 0,availableFiles:s,onSearchFiles:ze,projectOpen:se,projectName:r??void 0,projectPath:n??void 0,sessionInfo:re,projectNodeId:J??void 0})}),S]})})]})}):c.jsx("div",{ref:le,className:`relative flex-1 min-w-0 flex flex-col items-center justify-center overflow-hidden ${u?"":"px-4"} ${D?"pt-12":""}`,style:v,children:c.jsxs("div",{className:"w-full max-w-3xl space-y-8",children:[c.jsxs("div",{className:"text-center",children:[c.jsx("h1",{className:"text-3xl font-semibold tracking-tight",children:"Jait"}),c.jsx("p",{className:"text-base text-muted-foreground mt-1",children:"Just Another Intelligent Tool"})]}),!X&&ee.length===0?c.jsxs("div",{className:"text-center space-y-3",children:[c.jsx("p",{className:"text-sm text-muted-foreground",children:"Add a project folder to start chatting with your code."}),c.jsxs(ge,{variant:"default",size:"lg",onClick:Fe,children:[c.jsx(Ch,{className:"h-4 w-4 mr-2"}),"Add Project"]})]}):c.jsx($mt,{suggestions:se&&e?z:be,onSelect:We}),w.showTodoList&&c.jsx(B7,{items:Qe,onClear:jt}),c.jsx(Aa,{name:"Chat composer",variant:"section",resetKeys:[i,F,ie],children:c.jsx(Ew,{ref:Q,availableSkills:a,draftStateKey:`developer:${i??"new-chat"}`,value:q.current,syncKey:F,segments:$,onChange:xt,onSubmit:_e,onStop:Bt,onQueue:er,isLoading:B,submitLoading:_,placeholder:C,onVoiceInput:vt,voiceRecording:Nt,voiceLevels:ft,voiceTranscribing:Mt,onVoiceStop:Ye,mode:d,onModeChange:Ae,responseStyle:m,onResponseStyleChange:Ft,sendTarget:ie,onSendTargetChange:tt,showSendTargetSelector:!1,provider:h,onProviderChange:At,providerRuntimeMode:f,onProviderRuntimeModeChange:dt,cliModel:x,onCliModelChange:Ne,repoRuntime:ie==="thread"?je:null,onMoveToGateway:ie==="thread"?ye:void 0,availableFiles:s,onSearchFiles:ze,projectOpen:se,projectName:r??void 0,projectPath:n??void 0,sessionInfo:re,projectNodeId:J??void 0})}),S]})})}/**
1427
1427
  * Copyright (c) 2014-2024 The xterm.js authors. All rights reserved.
1428
1428
  * @license MIT