cx-viewer 1.0.0 → 1.0.1
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.
- package/cli.js +2 -2
- package/dist/assets/App-B_TIw8e4.js +41 -0
- package/dist/assets/{AppHeader-B3hrnZr-.css → AppHeader-BqUGBbBx.css} +2 -2
- package/dist/assets/{AppHeader.module-BMU2vyC4.js → AppHeader.module-Y8uZjbOm.js} +194 -190
- package/dist/assets/Mobile-BMOIr-Ox.js +10 -0
- package/dist/assets/{_baseUniq-CXWHShmB.js → _baseUniq-rFMjvMp9.js} +1 -1
- package/dist/assets/{arc-qbol0NJo.js → arc--Wq2RaH7.js} +1 -1
- package/dist/assets/{architectureDiagram-Q4EWVU46-COZebb1N.js → architectureDiagram-Q4EWVU46-BvEf2lP5.js} +1 -1
- package/dist/assets/{blockDiagram-DXYQGD6D-COCgzPKy.js → blockDiagram-DXYQGD6D-OPovcZG5.js} +1 -1
- package/dist/assets/{c4Diagram-AHTNJAMY-Bs5XvLEo.js → c4Diagram-AHTNJAMY-kgKyKOjo.js} +1 -1
- package/dist/assets/channel-73kvDnsL.js +1 -0
- package/dist/assets/{chunk-4BX2VUAB-CyGriz9d.js → chunk-4BX2VUAB-DzorV1it.js} +1 -1
- package/dist/assets/{chunk-4TB4RGXK-DlT_q-fl.js → chunk-4TB4RGXK-CqLZ1UMO.js} +1 -1
- package/dist/assets/{chunk-55IACEB6-NHN99ZNC.js → chunk-55IACEB6-DSt0287z.js} +1 -1
- package/dist/assets/{chunk-EDXVE4YY-fK4f9Na9.js → chunk-EDXVE4YY-Ba5P02iy.js} +1 -1
- package/dist/assets/{chunk-FMBD7UC4-DL-dQIq1.js → chunk-FMBD7UC4-B74A73-h.js} +1 -1
- package/dist/assets/{chunk-OYMX7WX6-6uruB4VY.js → chunk-OYMX7WX6-BAHzADpU.js} +1 -1
- package/dist/assets/{chunk-QZHKN3VN-CCWIqLO8.js → chunk-QZHKN3VN-BD8A_1ir.js} +1 -1
- package/dist/assets/{chunk-YZCP3GAM-Cu84DMJo.js → chunk-YZCP3GAM-ClWecwcp.js} +1 -1
- package/dist/assets/classDiagram-6PBFFD2Q-eoMr9KbW.js +1 -0
- package/dist/assets/classDiagram-v2-HSJHXN6E-eoMr9KbW.js +1 -0
- package/dist/assets/clone-Dcc2YhiK.js +1 -0
- package/dist/assets/{cose-bilkent-S5V4N54A-Dqi4iU3-.js → cose-bilkent-S5V4N54A-D_ghrbfg.js} +1 -1
- package/dist/assets/{dagre-KV5264BT-Dl-EJ9rb.js → dagre-KV5264BT-CB0vROfS.js} +1 -1
- package/dist/assets/{diagram-5BDNPKRD-BYtyzF0D.js → diagram-5BDNPKRD-BpcZ1UHM.js} +1 -1
- package/dist/assets/{diagram-G4DWMVQ6-BuETHFNU.js → diagram-G4DWMVQ6-BrFuDts4.js} +1 -1
- package/dist/assets/{diagram-MMDJMWI5-Z02oZp6I.js → diagram-MMDJMWI5-CsU-BG3D.js} +1 -1
- package/dist/assets/{diagram-TYMM5635-BpGlKv8l.js → diagram-TYMM5635-B1sb0AXF.js} +1 -1
- package/dist/assets/{erDiagram-SMLLAGMA-C4YngeQh.js → erDiagram-SMLLAGMA-CQyK2nOQ.js} +1 -1
- package/dist/assets/{flowDiagram-DWJPFMVM-BWddFffg.js → flowDiagram-DWJPFMVM-DZBShvn4.js} +1 -1
- package/dist/assets/{ganttDiagram-T4ZO3ILL-Bg0jOD4m.js → ganttDiagram-T4ZO3ILL-m6fTKdLL.js} +1 -1
- package/dist/assets/{gitGraphDiagram-UUTBAWPF-Bz-3sTXZ.js → gitGraphDiagram-UUTBAWPF-DkFErNFt.js} +1 -1
- package/dist/assets/{graph-XiH8DkIu.js → graph-bSi0W7jc.js} +1 -1
- package/dist/assets/{index-BuUsWKGZ.js → index-Br7dizB3.js} +2 -2
- package/dist/assets/{infoDiagram-42DDH7IO-DLo-lOCE.js → infoDiagram-42DDH7IO-CSm4RFl4.js} +1 -1
- package/dist/assets/{ishikawaDiagram-UXIWVN3A-BsIzT5eO.js → ishikawaDiagram-UXIWVN3A-Bwg4bCOs.js} +1 -1
- package/dist/assets/{journeyDiagram-VCZTEJTY-C3bOkKqv.js → journeyDiagram-VCZTEJTY-DPHJjuBf.js} +1 -1
- package/dist/assets/{kanban-definition-6JOO6SKY-D-rJRNbp.js → kanban-definition-6JOO6SKY-Cv9ev85o.js} +1 -1
- package/dist/assets/{layout-Bqp8Hh1c.js → layout-Ds0a2T6Q.js} +1 -1
- package/dist/assets/{linear-BWRSipGb.js → linear-Cp7l1b4X.js} +1 -1
- package/dist/assets/{mermaid.core-CJa7klhs.js → mermaid.core-CqjmsXPZ.js} +4 -4
- package/dist/assets/{min-CQ_VyzMd.js → min-Dt_Z0wyg.js} +1 -1
- package/dist/assets/{mindmap-definition-QFDTVHPH-Bnj7DDSx.js → mindmap-definition-QFDTVHPH-CX3dSqAw.js} +1 -1
- package/dist/assets/{pieDiagram-DEJITSTG-CC8a7Ylw.js → pieDiagram-DEJITSTG-Dx1Yb4B1.js} +1 -1
- package/dist/assets/{quadrantDiagram-34T5L4WZ-CrmL1WUV.js → quadrantDiagram-34T5L4WZ-DuVKMvkU.js} +1 -1
- package/dist/assets/{requirementDiagram-MS252O5E-TfkX4u_6.js → requirementDiagram-MS252O5E-D_k1MqxJ.js} +1 -1
- package/dist/assets/{sankeyDiagram-XADWPNL6-DMwBbND7.js → sankeyDiagram-XADWPNL6-Dd_dC8NM.js} +1 -1
- package/dist/assets/{sequenceDiagram-FGHM5R23-CFghMYsm.js → sequenceDiagram-FGHM5R23-zK876LNJ.js} +1 -1
- package/dist/assets/{stateDiagram-FHFEXIEX-1H6JIM7l.js → stateDiagram-FHFEXIEX-u5eiAg1J.js} +1 -1
- package/dist/assets/stateDiagram-v2-QKLJ7IA2-D0bdvVZJ.js +1 -0
- package/dist/assets/{timeline-definition-GMOUNBTQ-DnLMBlVa.js → timeline-definition-GMOUNBTQ-DR55BNQ6.js} +1 -1
- package/dist/assets/{vennDiagram-DHZGUBPP-DoIkY_KL.js → vennDiagram-DHZGUBPP-DYZc8vSs.js} +1 -1
- package/dist/assets/{wardley-RL74JXVD-3n5XmOD5.js → wardley-RL74JXVD-ofYR-6m2.js} +1 -1
- package/dist/assets/{wardleyDiagram-NUSXRM2D-UMOq3ofC.js → wardleyDiagram-NUSXRM2D-DnwarCdv.js} +1 -1
- package/dist/assets/{xychartDiagram-5P7HB3ND-CNDuQ5Cg.js → xychartDiagram-5P7HB3ND-1fCoOMAS.js} +1 -1
- package/dist/index.html +1 -1
- package/lib/appserver-bridge.js +108 -9
- package/lib/log-management.js +3 -1
- package/lib/plugin-loader.js +126 -6
- package/lib/sdk-manager.js +55 -0
- package/package.json +1 -1
- package/pty-manager.js +27 -3
- package/server.js +290 -25
- package/dist/assets/App-BzrN42Qt.js +0 -41
- package/dist/assets/Mobile-C9wxQTXV.js +0 -10
- package/dist/assets/channel-DvLUZ3Xf.js +0 -1
- package/dist/assets/classDiagram-6PBFFD2Q-ByKhp2Tk.js +0 -1
- package/dist/assets/classDiagram-v2-HSJHXN6E-ByKhp2Tk.js +0 -1
- package/dist/assets/clone-DZHpE494.js +0 -1
- package/dist/assets/stateDiagram-v2-QKLJ7IA2-CtXMaKcb.js +0 -1
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
var Fe=Object.defineProperty;var He=(t,l,s)=>l in t?Fe(t,l,{enumerable:!0,configurable:!0,writable:!0,value:s}):t[l]=s;var Z=(t,l,s)=>He(t,typeof l!="symbol"?l+"":l,s);import{r as x,j as e,i as We,a as Ge}from"./index-BuUsWKGZ.js";import{g as _e,m as Ue,a as Te,r as $e,K,u as A,C as ue,i as Le,c as M,b as ke,d as Ze,I as qe,_ as Xe,e as D,t as g,f as Ke,h as Ye,F as Je,j as Qe,k as et,l as tt,n as st,o as it,s as a,q as le,v as q,A as lt,w as ot,x as at,y as je,z as c,B,R as nt,D as ve,E as rt,T as ct,O as dt,G as mt,H as ht,S as ut,J as he,L as Ne,M as bt,N as Se}from"./AppHeader.module-BMU2vyC4.js";const gt=new K("antStatusProcessing",{"0%":{transform:"scale(0.8)",opacity:.5},"100%":{transform:"scale(2.4)",opacity:0}}),ft=new K("antZoomBadgeIn",{"0%":{transform:"scale(0) translate(50%, -50%)",opacity:0},"100%":{transform:"scale(1) translate(50%, -50%)"}}),xt=new K("antZoomBadgeOut",{"0%":{transform:"scale(1) translate(50%, -50%)"},"100%":{transform:"scale(0) translate(50%, -50%)",opacity:0}}),pt=new K("antNoWrapperZoomBadgeIn",{"0%":{transform:"scale(0)",opacity:0},"100%":{transform:"scale(1)"}}),jt=new K("antNoWrapperZoomBadgeOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0)",opacity:0}}),vt=new K("antBadgeLoadingCircle",{"0%":{transformOrigin:"50%"},"100%":{transform:"translate(50%, -50%) rotate(360deg)",transformOrigin:"50%"}}),Nt=t=>{const{componentCls:l,iconCls:s,antCls:i,badgeShadowSize:o,textFontSize:u,textFontSizeSM:n,statusSize:r,dotSize:p,textFontWeight:d,indicatorHeight:f,indicatorHeightSM:h,marginXS:j,calc:C}=t,v=`${i}-scroll-number`,w=Te(t,(y,{darkColor:b})=>({[`&${l} ${l}-color-${y}`]:{background:b,[`&:not(${l}-count)`]:{color:b},"a:hover &":{background:b}}}));return{[l]:Object.assign(Object.assign(Object.assign(Object.assign({},$e(t)),{position:"relative",display:"inline-block",width:"fit-content",lineHeight:1,[`${l}-count`]:{display:"inline-flex",justifyContent:"center",zIndex:t.indicatorZIndex,minWidth:f,height:f,color:t.badgeTextColor,fontWeight:d,fontSize:u,lineHeight:A(f),whiteSpace:"nowrap",textAlign:"center",background:t.badgeColor,borderRadius:C(f).div(2).equal(),boxShadow:`0 0 0 ${A(o)} ${t.badgeShadowColor}`,transition:`background ${t.motionDurationMid}`,a:{color:t.badgeTextColor},"a:hover":{color:t.badgeTextColor},"a:hover &":{background:t.badgeColorHover}},[`${l}-count-sm`]:{minWidth:h,height:h,fontSize:n,lineHeight:A(h),borderRadius:C(h).div(2).equal()},[`${l}-multiple-words`]:{padding:`0 ${A(t.paddingXS)}`,bdi:{unicodeBidi:"plaintext"}},[`${l}-dot`]:{zIndex:t.indicatorZIndex,width:p,minWidth:p,height:p,background:t.badgeColor,borderRadius:"100%",boxShadow:`0 0 0 ${A(o)} ${t.badgeShadowColor}`},[`${l}-count, ${l}-dot, ${v}-custom-component`]:{position:"absolute",top:0,insetInlineEnd:0,transform:"translate(50%, -50%)",transformOrigin:"100% 0%",[`&${s}-spin`]:{animationName:vt,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear"}},[`&${l}-status`]:{lineHeight:"inherit",verticalAlign:"baseline",[`${l}-status-dot`]:{position:"relative",top:-1,display:"inline-block",width:r,height:r,verticalAlign:"middle",borderRadius:"50%"},[`${l}-status-success`]:{backgroundColor:t.colorSuccess},[`${l}-status-processing`]:{overflow:"visible",color:t.colorInfo,backgroundColor:t.colorInfo,borderColor:"currentcolor","&::after":{position:"absolute",top:0,insetInlineStart:0,width:"100%",height:"100%",borderWidth:o,borderStyle:"solid",borderColor:"inherit",borderRadius:"50%",animationName:gt,animationDuration:t.badgeProcessingDuration,animationIterationCount:"infinite",animationTimingFunction:"ease-in-out",content:'""'}},[`${l}-status-default`]:{backgroundColor:t.colorTextPlaceholder},[`${l}-status-error`]:{backgroundColor:t.colorError},[`${l}-status-warning`]:{backgroundColor:t.colorWarning},[`${l}-status-text`]:{marginInlineStart:j,color:t.colorText,fontSize:t.fontSize}}}),w),{[`${l}-zoom-appear, ${l}-zoom-enter`]:{animationName:ft,animationDuration:t.motionDurationSlow,animationTimingFunction:t.motionEaseOutBack,animationFillMode:"both"},[`${l}-zoom-leave`]:{animationName:xt,animationDuration:t.motionDurationSlow,animationTimingFunction:t.motionEaseOutBack,animationFillMode:"both"},[`&${l}-not-a-wrapper`]:{[`${l}-zoom-appear, ${l}-zoom-enter`]:{animationName:pt,animationDuration:t.motionDurationSlow,animationTimingFunction:t.motionEaseOutBack},[`${l}-zoom-leave`]:{animationName:jt,animationDuration:t.motionDurationSlow,animationTimingFunction:t.motionEaseOutBack},[`&:not(${l}-status)`]:{verticalAlign:"middle"},[`${v}-custom-component, ${l}-count`]:{transform:"none"},[`${v}-custom-component, ${v}`]:{position:"relative",top:"auto",display:"block",transformOrigin:"50% 50%"}},[v]:{overflow:"hidden",transition:`all ${t.motionDurationMid} ${t.motionEaseOutBack}`,[`${v}-only`]:{position:"relative",display:"inline-block",height:f,transition:`all ${t.motionDurationSlow} ${t.motionEaseOutBack}`,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden",[`> p${v}-only-unit`]:{height:f,margin:0,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden"}},[`${v}-symbol`]:{verticalAlign:"top"}},"&-rtl":{direction:"rtl",[`${l}-count, ${l}-dot, ${v}-custom-component`]:{transform:"translate(-50%, -50%)"}}})}},Pe=t=>{const{fontHeight:l,lineWidth:s,marginXS:i,colorBorderBg:o}=t,u=l,n=s,r=t.colorTextLightSolid,p=t.colorError,d=t.colorErrorHover;return Ue(t,{badgeFontHeight:u,badgeShadowSize:n,badgeTextColor:r,badgeColor:p,badgeColorHover:d,badgeShadowColor:o,badgeProcessingDuration:"1.2s",badgeRibbonOffset:i,badgeRibbonCornerTransform:"scaleY(0.75)",badgeRibbonCornerFilter:"brightness(75%)"})},Ve=t=>{const{fontSize:l,lineHeight:s,fontSizeSM:i,lineWidth:o}=t;return{indicatorZIndex:"auto",indicatorHeight:Math.round(l*s)-2*o,indicatorHeightSM:l,dotSize:i/2,textFontSize:i,textFontSizeSM:i,textFontWeight:"normal",statusSize:i/2}},St=_e("Badge",t=>{const l=Pe(t);return Nt(l)},Ve),yt=t=>{const{antCls:l,badgeFontHeight:s,marginXS:i,badgeRibbonOffset:o,calc:u}=t,n=`${l}-ribbon`,r=`${l}-ribbon-wrapper`,p=Te(t,(d,{darkColor:f})=>({[`&${n}-color-${d}`]:{background:f,color:f}}));return{[r]:{position:"relative"},[n]:Object.assign(Object.assign(Object.assign(Object.assign({},$e(t)),{position:"absolute",top:i,padding:`0 ${A(t.paddingXS)}`,color:t.colorPrimary,lineHeight:A(s),whiteSpace:"nowrap",backgroundColor:t.colorPrimary,borderRadius:t.borderRadiusSM,[`${n}-text`]:{color:t.badgeTextColor},[`${n}-corner`]:{position:"absolute",top:"100%",width:o,height:o,color:"currentcolor",border:`${A(u(o).div(2).equal())} solid`,transform:t.badgeRibbonCornerTransform,transformOrigin:"top",filter:t.badgeRibbonCornerFilter}}),p),{[`&${n}-placement-end`]:{insetInlineEnd:u(o).mul(-1).equal(),borderEndEndRadius:0,[`${n}-corner`]:{insetInlineEnd:0,borderInlineEndColor:"transparent",borderBlockEndColor:"transparent"}},[`&${n}-placement-start`]:{insetInlineStart:u(o).mul(-1).equal(),borderEndStartRadius:0,[`${n}-corner`]:{insetInlineStart:0,borderBlockEndColor:"transparent",borderInlineStartColor:"transparent"}},"&-rtl":{direction:"rtl"}})}},Ct=_e(["Badge","Ribbon"],t=>{const l=Pe(t);return yt(l)},Ve),wt=t=>{const{className:l,prefixCls:s,style:i,color:o,children:u,text:n,placement:r="end",rootClassName:p}=t,{getPrefixCls:d,direction:f}=x.useContext(ue),h=d("ribbon",s),j=`${h}-wrapper`,[C,v,w]=Ct(h,j),y=Le(o,!1),b=M(h,`${h}-placement-${r}`,{[`${h}-rtl`]:f==="rtl",[`${h}-color-${o}`]:y},l),m={},L={};return o&&!y&&(m.background=o,L.color=o),C(x.createElement("div",{className:M(j,p,v,w)},u,x.createElement("div",{className:M(b,v),style:Object.assign(Object.assign({},m),i)},x.createElement("span",{className:`${h}-text`},n),x.createElement("div",{className:`${h}-corner`,style:L}))))},ye=t=>{const{prefixCls:l,value:s,current:i,offset:o=0}=t;let u;return o&&(u={position:"absolute",top:`${o}00%`,left:0}),x.createElement("span",{style:u,className:M(`${l}-only-unit`,{current:i})},s)};function _t(t,l,s){let i=t,o=0;for(;(i+10)%10!==l;)i+=s,o+=s;return o}const Tt=t=>{const{prefixCls:l,count:s,value:i}=t,o=Number(i),u=Math.abs(s),[n,r]=x.useState(o),[p,d]=x.useState(u),f=()=>{r(o),d(u)};x.useEffect(()=>{const C=setTimeout(f,1e3);return()=>clearTimeout(C)},[o]);let h,j;if(n===o||Number.isNaN(o)||Number.isNaN(n))h=[x.createElement(ye,Object.assign({},t,{key:o,current:!0}))],j={transition:"none"};else{h=[];const C=o+10,v=[];for(let m=o;m<=C;m+=1)v.push(m);const w=p<u?1:-1,y=v.findIndex(m=>m%10===n);h=(w<0?v.slice(0,y+1):v.slice(y)).map((m,L)=>{const R=m%10;return x.createElement(ye,Object.assign({},t,{key:m,value:R,offset:w<0?L-y:L,current:L===y}))}),j={transform:`translateY(${-_t(n,o,w)}00%)`}}return x.createElement("span",{className:`${l}-only`,style:j,onTransitionEnd:f},h)};var $t=function(t,l){var s={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&l.indexOf(i)<0&&(s[i]=t[i]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(t);o<i.length;o++)l.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(t,i[o])&&(s[i[o]]=t[i[o]]);return s};const Lt=x.forwardRef((t,l)=>{const{prefixCls:s,count:i,className:o,motionClassName:u,style:n,title:r,show:p,component:d="sup",children:f}=t,h=$t(t,["prefixCls","count","className","motionClassName","style","title","show","component","children"]),{getPrefixCls:j}=x.useContext(ue),C=j("scroll-number",s),v=Object.assign(Object.assign({},h),{"data-show":p,style:n,className:M(C,o,u),title:r});let w=i;if(i&&Number(i)%1===0){const y=String(i).split("");w=x.createElement("bdi",null,y.map((b,m)=>x.createElement(Tt,{prefixCls:C,count:Number(i),value:b,key:y.length-m})))}return n!=null&&n.borderColor&&(v.style=Object.assign(Object.assign({},n),{boxShadow:`0 0 0 1px ${n.borderColor} inset`})),f?ke(f,y=>({className:M(`${C}-custom-component`,y==null?void 0:y.className,u)})):x.createElement(d,Object.assign({},v,{ref:l}),w)});var kt=function(t,l){var s={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&l.indexOf(i)<0&&(s[i]=t[i]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(t);o<i.length;o++)l.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(t,i[o])&&(s[i[o]]=t[i[o]]);return s};const Pt=x.forwardRef((t,l)=>{var s,i,o,u,n;const{prefixCls:r,scrollNumberPrefixCls:p,children:d,status:f,text:h,color:j,count:C=null,overflowCount:v=99,dot:w=!1,size:y="default",title:b,offset:m,style:L,className:R,rootClassName:z,classNames:P,styles:V,showZero:F=!1}=t,Y=kt(t,["prefixCls","scrollNumberPrefixCls","children","status","text","color","count","overflowCount","dot","size","title","offset","style","className","rootClassName","classNames","styles","showZero"]),{getPrefixCls:H,direction:E,badge:N}=x.useContext(ue),_=H("badge",r),[J,ee,oe]=St(_),T=C>v?`${v}+`:C,$=T==="0"||T===0||h==="0"||h===0,I=C===null||$&&!F,ae=(f!=null||j!=null)&&I,Re=f!=null||!$,Q=w&&!$,W=Q?"":T,G=x.useMemo(()=>((W==null||W==="")&&(h==null||h==="")||$&&!F)&&!Q,[W,$,F,Q,h]),be=x.useRef(C);G||(be.current=C);const U=be.current,ge=x.useRef(W);G||(ge.current=W);const ne=ge.current,fe=x.useRef(Q);G||(fe.current=Q);const te=x.useMemo(()=>{if(!m)return Object.assign(Object.assign({},N==null?void 0:N.style),L);const O={marginTop:m[1]};return E==="rtl"?O.left=Number.parseInt(m[0],10):O.right=-Number.parseInt(m[0],10),Object.assign(Object.assign(Object.assign({},O),N==null?void 0:N.style),L)},[E,m,L,N==null?void 0:N.style]),Ie=b??(typeof U=="string"||typeof U=="number"?U:void 0),xe=!G&&(h===0?F:!!h&&h!==!0),Ae=xe?x.createElement("span",{className:`${_}-status-text`},h):null,Ee=!U||typeof U!="object"?void 0:ke(U,O=>({style:Object.assign(Object.assign({},te),O.style)})),se=Le(j,!1),Be=M(P==null?void 0:P.indicator,(s=N==null?void 0:N.classNames)===null||s===void 0?void 0:s.indicator,{[`${_}-status-dot`]:ae,[`${_}-status-${f}`]:!!f,[`${_}-color-${j}`]:se}),re={};j&&!se&&(re.color=j,re.background=j);const pe=M(_,{[`${_}-status`]:ae,[`${_}-not-a-wrapper`]:!d,[`${_}-rtl`]:E==="rtl"},R,z,N==null?void 0:N.className,(i=N==null?void 0:N.classNames)===null||i===void 0?void 0:i.root,P==null?void 0:P.root,ee,oe);if(!d&&ae&&(h||Re||!I)){const O=te.color;return J(x.createElement("span",Object.assign({},Y,{className:pe,style:Object.assign(Object.assign(Object.assign({},V==null?void 0:V.root),(o=N==null?void 0:N.styles)===null||o===void 0?void 0:o.root),te)}),x.createElement("span",{className:Be,style:Object.assign(Object.assign(Object.assign({},V==null?void 0:V.indicator),(u=N==null?void 0:N.styles)===null||u===void 0?void 0:u.indicator),re)}),xe&&x.createElement("span",{style:{color:O},className:`${_}-status-text`},h)))}return J(x.createElement("span",Object.assign({ref:l},Y,{className:pe,style:Object.assign(Object.assign({},(n=N==null?void 0:N.styles)===null||n===void 0?void 0:n.root),V==null?void 0:V.root)}),d,x.createElement(Ze,{visible:!G,motionName:`${_}-zoom`,motionAppear:!1,motionDeadline:1e3},({className:O})=>{var ce,de;const De=H("scroll-number",p),me=fe.current,ze=M(P==null?void 0:P.indicator,(ce=N==null?void 0:N.classNames)===null||ce===void 0?void 0:ce.indicator,{[`${_}-dot`]:me,[`${_}-count`]:!me,[`${_}-count-sm`]:y==="small",[`${_}-multiple-words`]:!me&&ne&&ne.toString().length>1,[`${_}-status-${f}`]:!!f,[`${_}-color-${j}`]:se});let ie=Object.assign(Object.assign(Object.assign({},V==null?void 0:V.indicator),(de=N==null?void 0:N.styles)===null||de===void 0?void 0:de.indicator),te);return j&&!se&&(ie=ie||{},ie.background=j),x.createElement(Lt,{prefixCls:De,show:!G,motionClassName:O,className:ze,count:ne,title:Ie,style:ie,key:"scrollNumber"},Ee)}),Ae))}),Oe=Pt;Oe.Ribbon=wt;var Vt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M793 242H366v-74c0-6.7-7.7-10.4-12.9-6.3l-142 112a8 8 0 000 12.6l142 112c5.2 4.1 12.9.4 12.9-6.3v-74h415v470H175c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h618c35.3 0 64-28.7 64-64V306c0-35.3-28.7-64-64-64z"}}]},name:"rollback",theme:"outlined"},Ot=function(l,s){return x.createElement(qe,Xe({},l,{ref:s,icon:Vt}))},Mt=x.forwardRef(Ot);const Rt="_container_1k4mc_1",It="_fileListSection_1k4mc_10",At="_header_1k4mc_19",Et="_headerTitle_1k4mc_28",Bt="_fileCount_1k4mc_36",Dt="_changesContainer_1k4mc_44",zt="_changeItem_1k4mc_51",Ft="_changeItemActive_1k4mc_68",Ht="_dirItem_1k4mc_77",Wt="_dirArrow_1k4mc_88",Gt="_dirName_1k4mc_97",Ut="_status_1k4mc_102",Zt="_icon_1k4mc_111",qt="_fileName_1k4mc_120",Xt="_diffSection_1k4mc_127",Kt="_diffHeader_1k4mc_135",Yt="_diffFilePath_1k4mc_145",Jt="_diffBadge_1k4mc_155",Qt="_diffContent_1k4mc_167",es="_diffPlaceholder_1k4mc_173",ts="_statusText_1k4mc_184",ss="_errorText_1k4mc_191",is="_emptyText_1k4mc_198",ls="_warningText_1k4mc_205",os="_fileSizeNote_1k4mc_217",as="_statusTextItalic_1k4mc_222",ns="_imagePreviewWrap_1k4mc_226",rs="_imagePreview_1k4mc_226",cs="_rotated90_1k4mc_242",S={container:Rt,fileListSection:It,header:At,headerTitle:Et,fileCount:Bt,changesContainer:Dt,changeItem:zt,changeItemActive:Ft,dirItem:Ht,dirArrow:Wt,dirName:Gt,status:Ut,icon:Zt,fileName:qt,diffSection:Xt,diffHeader:Kt,diffFilePath:Yt,diffBadge:Jt,diffContent:Qt,diffPlaceholder:es,statusText:ts,errorText:ss,emptyText:is,warningText:ls,fileSizeNote:os,statusTextItalic:as,imagePreviewWrap:ns,imagePreview:rs,rotated90:cs},ds={M:"#e2c08d",A:"#73c991",D:"#f14c4c",R:"#73c991",C:"#73c991",U:"#e2c08d","?":"#73c991","??":"#73c991"},ms={"??":"U"},hs={js:"#e8d44d",jsx:"#61dafb",ts:"#3178c6",tsx:"#3178c6",json:"#999",md:"#519aba",css:"#a86fd9",scss:"#cd6799",html:"#e34c26",py:"#3572a5",go:"#00add8",rs:"#dea584"};function us(t){const l=t.includes(".")?t.split(".").pop().toLowerCase():"",s=hs[l]||"#888";return e.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:s,strokeWidth:"1.5",children:[e.jsx("path",{d:"M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"}),e.jsx("polyline",{points:"14 2 14 8 20 8"})]})}function bs(){return e.jsx("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"#c09553",stroke:"none",children:e.jsx("path",{d:"M2 6c0-1.1.9-2 2-2h5l2 2h9a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V6z"})})}function gs(t){const l={dirs:{},files:[]};for(const s of t){const i=s.file.split("/");let o=l;for(let u=0;u<i.length-1;u++)o.dirs[i[u]]||(o.dirs[i[u]]={dirs:{},files:[]}),o=o.dirs[i[u]];o.files.push({name:i[i.length-1],status:s.status,fullPath:s.file})}return l}function Me({name:t,node:l,depth:s,selectedFile:i,onFileClick:o}){const u=Object.keys(l.dirs).sort(),n=[...l.files].sort((r,p)=>r.name.localeCompare(p.name));return e.jsxs(e.Fragment,{children:[t&&e.jsxs("div",{className:S.dirItem,style:{paddingLeft:8+s*16},children:[e.jsx("span",{className:S.dirArrow,children:e.jsx("svg",{width:"10",height:"10",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",className:S.rotated90,children:e.jsx("polyline",{points:"9 6 15 12 9 18"})})}),e.jsx("span",{className:S.icon,children:bs()}),e.jsx("span",{className:S.dirName,children:t})]}),u.map(r=>e.jsx(Me,{name:r,node:l.dirs[r],depth:t?s+1:s,selectedFile:i,onFileClick:o},r)),n.map(r=>e.jsxs("div",{className:`${S.changeItem} ${i===r.fullPath?S.changeItemActive:""}`,style:{paddingLeft:8+(t?s+1:s)*16},onClick:()=>o&&o(r.fullPath),children:[e.jsx("span",{className:S.icon,children:us(r.name)}),e.jsx("span",{className:S.fileName,children:r.name}),e.jsx("span",{className:S.status,style:{color:ds[r.status]||"#888"},children:ms[r.status]||r.status})]},r.fullPath))]})}function fs({visible:t}){const[l,s]=x.useState(null),[i,o]=x.useState(null),[u,n]=x.useState(!0),[r,p]=x.useState(null),[d,f]=x.useState(null),[h,j]=x.useState(null),[C,v]=x.useState(!1),[w,y]=x.useState(!1),b=x.useRef(!0);return x.useEffect(()=>{if(b.current=!0,!!t)return n(!0),o(null),fetch(D("/api/git-status")).then(m=>m.ok?m.json():Promise.reject()).then(m=>{b.current&&(s(m.changes||[]),n(!1))}).catch(()=>{b.current&&(o("Failed to load git status"),n(!1))}),()=>{b.current=!1}},[t]),x.useEffect(()=>{if(!r){f(null),j(null);return}v(!0),f(null),j(null),fetch(D(`/api/git-diff?files=${encodeURIComponent(r)}`)).then(m=>{if(!m.ok)throw new Error(`HTTP ${m.status}`);return m.json()}).then(m=>{b.current&&(m.diffs&&m.diffs[0]?f(m.diffs[0]):j("No diff data available"),v(!1))}).catch(m=>{b.current&&(j(`${g("ui.fileLoadError")}: ${m.message}`),v(!1))})},[r]),e.jsxs("div",{className:S.container,children:[e.jsxs("div",{className:S.fileListSection,children:[e.jsxs("div",{className:S.header,children:[e.jsx("span",{className:S.headerTitle,children:g("ui.gitChanges")}),e.jsx("span",{className:S.fileCount,children:l?l.length:0})]}),e.jsxs("div",{className:S.changesContainer,children:[u&&e.jsx("div",{className:S.statusText,children:"Loading..."}),i&&e.jsx("div",{className:S.errorText,children:i}),!u&&!i&&l&&l.length===0&&e.jsx("div",{className:S.emptyText,children:"No changes"}),!u&&!i&&l&&l.length>0&&e.jsx(Me,{name:"",node:gs(l),depth:0,selectedFile:r,onFileClick:p})]})]}),e.jsx("div",{className:S.diffSection,children:r?e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:S.diffHeader,children:[e.jsx("span",{className:S.diffFilePath,children:r}),e.jsx("span",{className:S.diffBadge,children:"DIFF"})]}),e.jsxs("div",{className:S.diffContent,children:[C&&e.jsx("div",{className:S.statusText,children:g("ui.loading")}),h&&e.jsx("div",{className:S.errorText,children:h}),!C&&!h&&d&&e.jsx(e.Fragment,{children:d.is_large?e.jsxs("div",{className:S.warningText,children:[e.jsx("p",{children:g("ui.largeFileWarning")}),e.jsxs("p",{className:S.fileSizeNote,children:[g("ui.fileSize"),": ",(d.size/(1024*1024)).toFixed(2)," MB"]})]}):Ke(r)&&!d.is_deleted?e.jsxs("div",{className:S.imagePreviewWrap,children:[e.jsx("img",{className:S.imagePreview,src:D(`/api/file-raw?path=${encodeURIComponent(r)}`),alt:r,onClick:()=>y(!0)}),w&&e.jsx(Ye,{src:D(`/api/file-raw?path=${encodeURIComponent(r)}`),alt:r,onClose:()=>y(!1)})]}):d.is_binary?e.jsx("div",{className:`${S.statusText} ${S.statusTextItalic}`,children:g("ui.binaryFileNotice")}):e.jsx(Je,{file_path:r,old_string:d.old_content,new_string:d.new_content})})]})]}):e.jsxs("div",{className:S.diffPlaceholder,children:[e.jsxs("svg",{width:"32",height:"32",viewBox:"0 0 24 24",fill:"none",stroke:"#333",strokeWidth:"1.5",children:[e.jsx("line",{x1:"6",y1:"3",x2:"6",y2:"15"}),e.jsx("circle",{cx:"18",cy:"6",r:"3"}),e.jsx("circle",{cx:"6",cy:"18",r:"3"}),e.jsx("path",{d:"M18 9a9 9 0 0 1-9 9"})]}),e.jsx("span",{children:g("ui.mobileGitDiffHint")})]})})]})}const xs="_container_1bb9n_1",ps="_header_1bb9n_9",js="_headerTitle_1bb9n_18",vs="_closeBtn_1bb9n_24",Ns="_content_1bb9n_38",Ss="_empty_1bb9n_47",ys="_fixedTable_1bb9n_54",Cs="_ellipsisCell_1bb9n_58",ws="_thLeft_1bb9n_65",_s="_colWide_1bb9n_69",Ts="_colNarrow_1bb9n_73",k={container:xs,header:ps,headerTitle:js,closeBtn:vs,content:Ns,empty:Ss,fixedTable:ys,ellipsisCell:Cs,thLeft:ws,colWide:_s,colNarrow:Ts},$s=["ttl","system_change","tools_change","model_change","msg_truncated","msg_modified","key_change"],Ce={ttl:"cacheLoss.ttl",system_change:"cacheLoss.systemChange",tools_change:"cacheLoss.toolsChange",model_change:"cacheLoss.modelChange",msg_truncated:"cacheLoss.msgTruncated",msg_modified:"cacheLoss.msgModified",key_change:"cacheLoss.keyChange"};function Ls({requests:t=[],visible:l,onClose:s}){const{byModel:i,models:o,toolStats:u,skillStats:n,cacheStats:r,activeReasons:p,totalCount:d,totalCache:f,hasCacheStats:h,subAgentEntries:j,hasSubAgentStats:C,teammateEntries:v,hasTeammateStats:w,isEmpty:y}=x.useMemo(()=>{const b=Qe(t),m=Object.keys(b),L=et(t),R=tt(t),z=st(t),P=$s.filter(T=>z[T].count>0),V=P.reduce((T,$)=>T+z[$].count,0),F=P.reduce((T,$)=>T+z[$].cacheCreate,0),Y=P.length>0,H={},E={};for(let T=0;T<t.length;T++){const $=it(t[T],t[T+1]);if($.type==="SubAgent"){const I=$.subType||"Other";H[I]=(H[I]||0)+1}else if($.type==="Teammate"){const I=$.subType||"Teammate";E[I]=(E[I]||0)+1}}const N=Object.entries(H).sort((T,$)=>$[1]-T[1]),_=N.length>0,J=Object.entries(E).sort((T,$)=>$[1]-T[1]),ee=J.length>0,oe=m.length===0&&L.length===0&&!Y&&!_&&!ee&&R.length===0;return{byModel:b,models:m,toolStats:L,skillStats:R,cacheStats:z,activeReasons:P,totalCount:V,totalCache:F,hasCacheStats:Y,subAgentEntries:N,hasSubAgentStats:_,teammateEntries:J,hasTeammateStats:ee,isEmpty:oe}},[t]);return l?e.jsxs("div",{className:k.container,children:[e.jsxs("div",{className:k.header,children:[e.jsx("span",{className:k.headerTitle,children:g("ui.tokenStats")}),e.jsx("button",{className:k.closeBtn,onClick:s,children:e.jsxs("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",children:[e.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),e.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})})]}),e.jsx("div",{className:k.content,children:y?e.jsx("div",{className:k.empty,children:"—"}):e.jsxs(e.Fragment,{children:[n.length>0&&e.jsxs("div",{className:a.modelCard,children:[e.jsx("div",{className:a.modelName,children:g("ui.skillUsageStats")}),e.jsxs("table",{className:a.statsTable,children:[e.jsx("thead",{children:e.jsxs("tr",{children:[e.jsx("td",{className:`${a.th} ${k.thLeft}`,children:"Skill"}),e.jsx("td",{className:a.th,children:g("ui.cacheRebuild.count")})]})}),e.jsxs("tbody",{children:[n.map(([b,m])=>e.jsxs("tr",{className:a.rowBorder,children:[e.jsx("td",{className:a.label,children:b}),e.jsx("td",{className:a.td,children:m})]},b)),n.length>1&&e.jsxs("tr",{className:a.rebuildTotalRow,children:[e.jsx("td",{className:a.label,children:"Total"}),e.jsx("td",{className:a.td,children:n.reduce((b,m)=>b+m[1],0)})]})]})]})]}),C&&e.jsxs("div",{className:a.modelCard,children:[e.jsx("div",{className:a.modelName,children:g("ui.subAgentStats")}),e.jsxs("table",{className:a.statsTable,children:[e.jsx("thead",{children:e.jsxs("tr",{children:[e.jsx("td",{className:`${a.th} ${k.thLeft}`,children:"SubAgent"}),e.jsx("td",{className:a.th,children:g("ui.cacheRebuild.count")})]})}),e.jsxs("tbody",{children:[j.map(([b,m])=>e.jsxs("tr",{className:a.rowBorder,children:[e.jsxs("td",{className:a.label,children:[b," ",e.jsx(le,{doc:`SubAgent-${b}`})]}),e.jsx("td",{className:a.td,children:m})]},b)),j.length>1&&e.jsxs("tr",{className:a.rebuildTotalRow,children:[e.jsx("td",{className:a.label,children:"Total"}),e.jsx("td",{className:a.td,children:j.reduce((b,m)=>b+m[1],0)})]})]})]})]}),w&&e.jsxs("div",{className:a.modelCard,children:[e.jsx("div",{className:a.modelName,children:"Teammate"}),e.jsxs("table",{className:a.statsTable,children:[e.jsx("thead",{children:e.jsxs("tr",{children:[e.jsx("td",{className:`${a.th} ${k.thLeft}`,children:"Name"}),e.jsx("td",{className:a.th,children:g("ui.cacheRebuild.count")})]})}),e.jsxs("tbody",{children:[v.map(([b,m])=>e.jsxs("tr",{className:a.rowBorder,children:[e.jsx("td",{className:a.label,children:b}),e.jsx("td",{className:a.td,children:m})]},b)),v.length>1&&e.jsxs("tr",{className:a.rebuildTotalRow,children:[e.jsx("td",{className:a.label,children:"Total"}),e.jsx("td",{className:a.td,children:v.reduce((b,m)=>b+m[1],0)})]})]})]})]}),u.length>0&&e.jsxs("div",{className:a.modelCard,children:[e.jsx("div",{className:a.modelName,children:g("ui.toolUsageStats")}),e.jsxs("table",{className:a.statsTable,children:[e.jsx("thead",{children:e.jsxs("tr",{children:[e.jsx("td",{className:`${a.th} ${k.thLeft}`,children:"Tool"}),e.jsx("td",{className:a.th,children:g("ui.cacheRebuild.count")})]})}),e.jsxs("tbody",{children:[u.map(([b,m])=>e.jsxs("tr",{className:a.rowBorder,children:[e.jsxs("td",{className:a.label,children:[b," ",e.jsx(le,{doc:`Tool-${b}`})]}),e.jsx("td",{className:a.td,children:m})]},b)),u.length>1&&e.jsxs("tr",{className:a.rebuildTotalRow,children:[e.jsx("td",{className:a.label,children:"Total"}),e.jsx("td",{className:a.td,children:u.reduce((b,m)=>b+m[1],0)})]})]})]})]}),h&&e.jsxs("div",{className:a.modelCard,children:[e.jsxs("div",{className:a.modelName,children:["MainAgent",e.jsx(le,{doc:"MainAgent"})," ",g("ui.cacheRebuildStats"),e.jsx(le,{doc:"CacheRebuild"})]}),e.jsxs("table",{className:`${a.statsTable} ${k.fixedTable}`,children:[e.jsxs("colgroup",{children:[e.jsx("col",{className:k.colWide}),e.jsx("col",{className:k.colNarrow}),e.jsx("col",{className:k.colNarrow})]}),e.jsx("thead",{children:e.jsxs("tr",{children:[e.jsx("td",{className:`${a.th} ${k.thLeft}`,children:g("ui.cacheRebuild.reason")}),e.jsx("td",{className:a.th,children:g("ui.cacheRebuild.count")}),e.jsx("td",{className:a.th,children:g("ui.cacheRebuild.cacheCreate")})]})}),e.jsxs("tbody",{children:[p.map(b=>e.jsxs("tr",{className:a.rowBorder,children:[e.jsx("td",{className:`${a.label} ${k.ellipsisCell}`,title:g(`ui.${Ce[b]}`),children:g(`ui.${Ce[b]}`)}),e.jsx("td",{className:a.td,children:r[b].count}),e.jsx("td",{className:a.td,children:q(r[b].cacheCreate)})]},b)),p.length>1&&e.jsxs("tr",{className:a.rebuildTotalRow,children:[e.jsx("td",{className:a.label,children:"Total"}),e.jsx("td",{className:a.td,children:d}),e.jsx("td",{className:a.td,children:q(f)})]})]})]})]}),o.map(b=>{const m=i[b],L=m.input+m.cacheCreation+m.cacheRead,R=L>0?(m.cacheRead/L*100).toFixed(1):"0.0";return e.jsxs("div",{className:a.modelCard,children:[e.jsx("div",{className:a.modelName,children:b}),e.jsx("table",{className:a.statsTable,children:e.jsxs("tbody",{children:[e.jsxs("tr",{children:[e.jsx("td",{className:a.label,children:"Token"}),e.jsx("td",{className:a.th,children:"input"}),e.jsx("td",{className:a.th,children:"output"})]}),e.jsxs("tr",{className:a.rowBorder,children:[e.jsx("td",{className:a.label}),e.jsx("td",{className:a.td,children:q(L)}),e.jsx("td",{className:a.td,children:q(m.output)})]}),e.jsxs("tr",{children:[e.jsx("td",{className:a.label,children:"Cache"}),e.jsx("td",{className:a.th,children:"create"}),e.jsx("td",{className:a.th,children:"read"})]}),e.jsxs("tr",{className:a.rowBorder,children:[e.jsx("td",{className:a.label}),e.jsx("td",{className:a.td,children:q(m.cacheCreation)}),e.jsx("td",{className:a.td,children:q(m.cacheRead)})]}),e.jsxs("tr",{children:[e.jsx("td",{className:a.label,children:g("ui.hitRate")}),e.jsxs("td",{colSpan:2,className:a.td,children:[R,"%"]})]})]})})]},b)})]})})]}):null}const X=class X extends lt{constructor(s){super(s);Z(this,"handleExportPromptsTxt",s=>{if(!s||s.length===0)return;const i=[];for(const r of s){const p=[],d=r.timestamp?new Date(r.timestamp).toLocaleString():"";d&&p.push(`${d}:
|
|
2
|
-
`);const f=(r.segments||[]).filter(h=>h.type==="text").map(h=>h.content);f.length>0&&p.push(f.join(`
|
|
3
|
-
`)),i.push(p.join(`
|
|
4
|
-
`))}if(i.length===0)return;const o=new Blob([i.join(`
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
`)],{type:"text/plain;charset=utf-8"}),u=URL.createObjectURL(o),n=document.createElement("a");n.href=u,n.download=`user-prompts-${new Date().toISOString().slice(0,10)}.txt`,n.click(),URL.revokeObjectURL(u)});Z(this,"handlePendingPermission",s=>{this.setState({globalPermission:s})});Z(this,"handlePendingPlanApproval",s=>{this.setState({globalPlanApproval:s})});Z(this,"handleAutoApproveChange",s=>{this.setState({autoApproveSeconds:s}),fetch(D("/api/preferences"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({autoApproveSeconds:s})}).catch(()=>{})});Object.assign(this.state,{mobileMenuVisible:!1,mobileStatsVisible:!1,mobileGitDiffVisible:!1,mobileChatVisible:!1,mobileLogMgmtVisible:!1,mobileSettingsVisible:!1,mobilePromptVisible:!1,mobileTerminalVisible:!1,globalPermission:null,globalPlanApproval:null,autoApproveSeconds:0,hasGit:!0})}componentDidMount(){super.componentDidMount(),fetch(D("/api/git-status")).then(s=>{s.ok||this.setState({hasGit:!1,mobileGitDiffVisible:!1})}).catch(()=>this.setState({hasGit:!1,mobileGitDiffVisible:!1})),We&&!Ge&&window.visualViewport&&(this._onVisualViewportChange=()=>{const s=this._layoutRef.current;if(!s)return;const i=window.visualViewport;s.style.position="fixed",s.style.top=`${i.offsetTop}px`,s.style.height=`${i.height}px`,s.style.width="100%",s.style.left="0"},window.visualViewport.addEventListener("resize",this._onVisualViewportChange),window.visualViewport.addEventListener("scroll",this._onVisualViewportChange),this._onVisualViewportChange())}componentWillUnmount(){this._onVisualViewportChange&&window.visualViewport&&(window.visualViewport.removeEventListener("resize",this._onVisualViewportChange),window.visualViewport.removeEventListener("scroll",this._onVisualViewportChange)),super.componentWillUnmount()}static parseSegments(s){const i=[],o=/<([a-zA-Z_][\w-]*)(?:\s[^>]*)?>[\s\S]*?<\/\1>/g;let u=0,n;for(;(n=o.exec(s))!==null;){const p=s.slice(u,n.index).trim();p&&i.push({type:"text",content:p});const d=n[1];if(u=n.index+n[0].length,X.COMMAND_TAGS.has(d))continue;const f=new RegExp(`^<${d}(?:\\s[^>]*)?>([\\s\\S]*)<\\/${d}>$`),h=n[0].match(f),j=h?h[1].trim():n[0].trim();i.push({type:"system",content:j,label:d})}const r=s.slice(u).trim();return r&&i.push({type:"text",content:r}),i}static extractUserTexts(s){const i=[],o=[];let u=null;for(const n of s)if(n.role==="user"){if(typeof n.content=="string"){const r=n.content.trim();if(!r)continue;if(!ot(r)){if(/Implement the following plan:/i.test(r))continue;i.push(r),o.push(r)}}else if(Array.isArray(n.content)){const{commands:r,textBlocks:p}=at(n.content);r.length>0&&(u=r[r.length-1]);const d=[];for(const h of p)/Implement the following plan:/i.test((h.text||"").trim())||d.push(h.text.trim());const f=n.content.filter(h=>{var j;return h.type==="text"&&((j=h.text)==null?void 0:j.trim())}).map(h=>h.text.trim());d.length>0&&(i.push(d.join(`
|
|
9
|
-
`)),o.push(f.join(`
|
|
10
|
-
`)))}}return{userMsgs:i,fullTexts:o,slashCmd:u}}extractUserPrompts(s){var r;const i=[],o=new Set;let u=null;const n=s.filter(p=>je(p));for(let p=0;p<n.length;p++){const d=n[p],f=((r=d.body)==null?void 0:r.messages)||[],h=d.timestamp||"",{userMsgs:j,fullTexts:C,slashCmd:v}=X.extractUserTexts(f);v&&v!=="/compact"&&v!==u&&i.push({type:"prompt",segments:[{type:"text",content:v}],timestamp:h}),u=v;for(let w=0;w<j.length;w++){const y=j[w];if(o.has(y))continue;o.add(y);const b=C[w]||y;i.push({type:"prompt",segments:X.parseSegments(b),timestamp:h})}}return i}renderOriginalPrompt(s){const i=s.segments.filter(o=>o.type==="text");return i.length===0?null:e.jsx("div",{className:c.mobilePromptCard,children:i.map((o,u)=>e.jsx("pre",{className:c.mobilePromptPreText,children:o.content},u))})}render(){var p;const{filteredRequests:s,fileLoading:i,fileLoadingCount:o,mainAgentSessions:u}=this.renderPrepare();if(this.state.workspaceMode)return this.renderWorkspaceMode();const n=!!this._isLocalLog;let r=null;for(let d=s.length-1;d>=0;d--)if(je(s[d])&&((p=s[d].body)!=null&&p.model)){r=s[d].body.model;break}return e.jsxs("div",{className:c.mobileCLIRoot,ref:this._layoutRef,children:[e.jsxs("div",{className:c.mobileCLIHeader,children:[e.jsxs("div",{className:c.mobileCLIHeaderLeft,children:[e.jsx("button",{className:c.mobileMenuBtn,onClick:()=>this.setState(d=>({mobileMenuVisible:!d.mobileMenuVisible})),"aria-label":g("ui.mobileMenu"),children:e.jsxs("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",children:[e.jsx("line",{x1:"3",y1:"6",x2:"21",y2:"6"}),e.jsx("line",{x1:"3",y1:"12",x2:"21",y2:"12"}),e.jsx("line",{x1:"3",y1:"18",x2:"21",y2:"18"})]})}),e.jsx(Oe,{status:"processing",color:"green"}),e.jsx("span",{className:c.mobileCLIStatusLabel,children:n?g("ui.historyLog",{file:this._localLogFile}):g("ui.liveMonitoring")+(this.state.projectName?`: ${this.state.projectName}`:"")})]}),e.jsxs("div",{className:c.mobileCLIHeaderRight,children:[n?e.jsx(B,{type:"text",size:"small",icon:e.jsx(Mt,{}),onClick:()=>history.back(),className:c.mobileNavBtn,children:g("ui.mobileGoBack")}):this.state.hasGit?e.jsx(B,{type:"text",size:"small",icon:e.jsx(nt,{}),onClick:()=>this.setState(d=>({mobileGitDiffVisible:!d.mobileGitDiffVisible,mobileChatVisible:!1,mobileTerminalVisible:!1,mobileStatsVisible:!1,mobileLogMgmtVisible:!1,mobileSettingsVisible:!1})),style:{color:this.state.mobileGitDiffVisible?"var(--color-primary)":"var(--text-tertiary)",fontSize:12},children:this.state.mobileGitDiffVisible?g("ui.mobileGitDiffExit"):g("ui.mobileGitDiffBrowse")}):null,!n&&e.jsx(B,{type:"text",size:"small",icon:e.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[e.jsx("polyline",{points:"4 17 10 11 4 5"}),e.jsx("line",{x1:"12",y1:"19",x2:"20",y2:"19"})]}),onClick:()=>this.setState(d=>({mobileTerminalVisible:!d.mobileTerminalVisible,mobileGitDiffVisible:!1,mobileStatsVisible:!1,mobileLogMgmtVisible:!1,mobileSettingsVisible:!1})),style:{color:this.state.mobileTerminalVisible?"var(--color-primary)":"var(--text-tertiary)",fontSize:12},children:this.state.mobileTerminalVisible?g("ui.mobileTerminalExit"):g("ui.mobileTerminalBrowse")})]}),this.state.mobileMenuVisible&&e.jsxs(e.Fragment,{children:[e.jsx("div",{className:c.mobileMenuOverlay,onClick:()=>this.setState({mobileMenuVisible:!1})}),e.jsxs("div",{className:c.mobileMenuDropdown,children:[e.jsxs("button",{className:c.mobileMenuItem,onClick:()=>{this.setState({mobileMenuVisible:!1,mobileLogMgmtVisible:!0,mobileStatsVisible:!1,mobileGitDiffVisible:!1,mobileChatVisible:!1,mobileTerminalVisible:!1,mobileSettingsVisible:!1,mobilePromptVisible:!1}),this.handleImportLocalLogs()},children:[e.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[e.jsx("path",{d:"M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"}),e.jsx("polyline",{points:"14 2 14 8 20 8"}),e.jsx("line",{x1:"16",y1:"13",x2:"8",y2:"13"}),e.jsx("line",{x1:"16",y1:"17",x2:"8",y2:"17"})]}),g("ui.logManagement")]}),e.jsxs("button",{className:c.mobileMenuItem,onClick:()=>{this.setState({mobileMenuVisible:!1,mobileStatsVisible:!0,mobileGitDiffVisible:!1,mobileChatVisible:!1,mobileTerminalVisible:!1,mobileLogMgmtVisible:!1,mobileSettingsVisible:!1,mobilePromptVisible:!1})},children:[e.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[e.jsx("rect",{x:"3",y:"3",width:"7",height:"7"}),e.jsx("rect",{x:"14",y:"3",width:"7",height:"7"}),e.jsx("rect",{x:"3",y:"14",width:"7",height:"7"}),e.jsx("rect",{x:"14",y:"14",width:"7",height:"7"})]}),g("ui.tokenStats")]}),e.jsxs("button",{className:c.mobileMenuItem,onClick:()=>{this.setState({mobileMenuVisible:!1,mobileSettingsVisible:!0,mobileStatsVisible:!1,mobileGitDiffVisible:!1,mobileChatVisible:!1,mobileTerminalVisible:!1,mobileLogMgmtVisible:!1,mobilePromptVisible:!1})},children:[e.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[e.jsx("circle",{cx:"12",cy:"12",r:"3"}),e.jsx("path",{d:"M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1-2.83 2.83l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-4 0v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83-2.83l.06-.06A1.65 1.65 0 0 0 4.68 15a1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1 0-4h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 2.83-2.83l.06.06A1.65 1.65 0 0 0 9 4.68a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 4 0v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 2.83l-.06.06A1.65 1.65 0 0 0 19.4 9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 0 4h-.09a1.65 1.65 0 0 0-1.51 1z"})]}),g("ui.settings")]}),e.jsxs("button",{className:c.mobileMenuItem,onClick:()=>{this.setState({mobileMenuVisible:!1,mobilePromptVisible:!0,mobileStatsVisible:!1,mobileGitDiffVisible:!1,mobileChatVisible:!1,mobileTerminalVisible:!1,mobileLogMgmtVisible:!1,mobileSettingsVisible:!1})},children:[e.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[e.jsx("path",{d:"M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"}),e.jsx("polyline",{points:"14 2 14 8 20 8"}),e.jsx("line",{x1:"12",y1:"18",x2:"12",y2:"12"}),e.jsx("line",{x1:"12",y1:"12",x2:"9",y2:"15"}),e.jsx("line",{x1:"12",y1:"12",x2:"15",y2:"15"})]}),g("ui.userPrompt")]})]})]})]}),e.jsxs("div",{className:c.mobileCLIBody,children:[!n&&e.jsxs(e.Fragment,{children:[i&&e.jsxs("div",{className:c.mobileLoadingOverlay,children:[e.jsx("div",{className:c.mobileLoadingSpinner}),e.jsxs("div",{className:c.mobileLoadingLabel,children:[g("ui.loadingChat"),o>0?` (${o})`:""]})]}),e.jsx(ve,{theme:this.themeConfig,children:e.jsx("div",{className:c.mobileChatInner,children:e.jsx(rt,{requests:s,mainAgentSessions:u,userProfile:this.state.userProfile,collapseToolResults:this.state.collapseToolResults,expandThinking:this.state.expandThinking,showFullToolContent:this.state.showFullToolContent,showThinkingSummaries:this.state.showThinkingSummaries,onViewRequest:null,scrollToTimestamp:null,onScrollTsDone:()=>{},cliMode:this.state.cliMode,sdkMode:this.state.sdkMode,terminalVisible:!1,mobileChatVisible:!0,fileLoading:this.state.fileLoading,isStreaming:this.state.isStreaming,hasMoreHistory:this.state.hasMoreHistory,loadingMore:this.state.loadingMore,onLoadMoreHistory:()=>this.loadMoreHistory(),loadingSessionId:this.state.loadingSessionId,onLoadSession:d=>this.loadSession(d),onPendingPermission:this.handlePendingPermission,onPendingPlanApproval:this.handlePendingPlanApproval})})})]}),!n&&e.jsx("div",{className:`${c.mobileChatOverlay} ${this.state.mobileTerminalVisible?c.mobileChatOverlayVisible:""}`,children:e.jsx(ct,{modelName:r})}),e.jsx("div",{className:`${c.mobileGitDiffOverlay} ${this.state.mobileGitDiffVisible?c.mobileGitDiffOverlayVisible:""}`,children:e.jsx("div",{className:c.mobileGitDiffInner,children:e.jsx(fs,{visible:this.state.mobileGitDiffVisible})})}),e.jsx("div",{className:`${c.mobileStatsOverlay} ${this.state.mobileStatsVisible?c.mobileStatsOverlayVisible:""}`,children:e.jsx("div",{className:c.mobileStatsInner,children:e.jsx(Ls,{requests:s,visible:this.state.mobileStatsVisible,onClose:()=>this.setState({mobileStatsVisible:!1})})})}),e.jsxs("div",{className:`${c.mobileLogMgmtOverlay} ${this.state.mobileLogMgmtVisible?c.mobileLogMgmtOverlayVisible:""}`,children:[e.jsxs("div",{className:c.mobileLogMgmtHeader,children:[e.jsxs("span",{className:c.mobileLogMgmtTitle,children:[e.jsx(dt,{apiEndpoint:D("/api/open-log-dir"),title:g("ui.openLogDir"),size:14}),g("ui.importLocalLogs")]}),e.jsx("button",{className:c.mobileLogMgmtClose,onClick:()=>this.setState({mobileLogMgmtVisible:!1,selectedLogs:new Set}),children:e.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",children:[e.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),e.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})})]}),e.jsxs("div",{className:c.mobileLogMgmtActions,children:[e.jsx(B,{size:"small",type:this.state.selectedLogs.size>=2?"primary":"default",disabled:this.state.selectedLogs.size<2,onClick:this.handleMergeLogs,style:this.state.selectedLogs.size<2?{color:"var(--text-muted)",borderColor:"var(--border-light)"}:void 0,children:g("ui.mergeLogs")}),e.jsx(B,{size:"small",icon:e.jsx(mt,{}),disabled:this.state.selectedLogs.size===0,onClick:this.handleDeleteLogs,style:this.state.selectedLogs.size===0?{color:"var(--text-muted)",borderColor:"var(--border-light)"}:{color:"var(--color-error-light)",borderColor:"var(--color-error-light)"},children:g("ui.deleteLogs")}),e.jsx(B,{size:"small",icon:e.jsx(ht,{spin:this.state.refreshingStats}),loading:this.state.refreshingStats,onClick:this.handleRefreshStats,children:g("ui.refreshStats")})]}),e.jsx("div",{className:c.mobileLogMgmtBody,children:this.state.localLogsLoading?e.jsx("div",{className:c.spinCenter,children:e.jsx(ut,{})}):(()=>{const d=this.state.localLogs[this.state.currentProject];return!d||d.length===0?e.jsx("div",{className:c.emptyCenter,children:g("ui.noLogs")}):e.jsx(ve,{theme:this.themeConfig,children:e.jsx("div",{className:c.logListContainer,children:this.renderLogTable(d,!0)})})})()})]}),e.jsxs("div",{className:`${c.mobileSettingsOverlay} ${this.state.mobileSettingsVisible?c.mobileSettingsOverlayVisible:""}`,children:[e.jsxs("div",{className:c.mobileLogMgmtHeader,children:[e.jsx("span",{className:c.mobileLogMgmtTitle,children:g("ui.settings")}),e.jsx("button",{className:c.mobileLogMgmtClose,onClick:()=>this.setState({mobileSettingsVisible:!1}),children:e.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",children:[e.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),e.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})})]}),e.jsxs("div",{className:c.mobileSettingsBody,children:[e.jsx("div",{className:c.mobileSettingsSectionTitle,children:g("ui.chatDisplaySwitches")}),e.jsxs("div",{className:c.mobileSettingsRow,children:[e.jsx("span",{className:c.mobileSettingsLabel,children:g("ui.collapseToolResults")}),e.jsx(he,{checked:!!this.state.collapseToolResults,onChange:this.handleCollapseToolResultsChange})]}),e.jsxs("div",{className:c.mobileSettingsRow,children:[e.jsx("span",{className:c.mobileSettingsLabel,children:g("ui.expandThinking")}),e.jsx(he,{checked:!!this.state.expandThinking,onChange:this.handleExpandThinkingChange})]}),e.jsxs("div",{className:c.mobileSettingsRow,children:[e.jsx("span",{className:c.mobileSettingsLabel,children:g("ui.showFullToolContent")}),e.jsx(he,{checked:!!this.state.showFullToolContent,onChange:this.handleShowFullToolContentChange})]}),e.jsx("div",{className:c.mobileSettingsSectionTitle,children:g("ui.themeColor")}),e.jsx("div",{className:c.mobileSettingsRow,children:e.jsx(Ne,{size:"small",value:this.state.themeColor||"dark",onChange:this.handleThemeColorChange,options:[{label:g("ui.themeColor.dark"),value:"dark"},{label:g("ui.themeColor.light"),value:"light"}],style:{width:140}})}),e.jsx("div",{className:c.mobileSettingsSectionTitle,children:g("ui.permission.autoApprove.setting")}),e.jsx("div",{className:c.mobileSettingsRow,children:e.jsx(Ne,{size:"small",value:this.state.autoApproveSeconds||0,onChange:this.handleAutoApproveChange,options:[{label:g("ui.permission.autoApprove.off"),value:0},{label:"3s",value:3},{label:"5s",value:5},{label:"10s",value:10},{label:"15s",value:15},{label:"20s",value:20},{label:"30s",value:30},{label:"60s",value:60}],style:{width:100}})})]})]}),e.jsxs("div",{className:`${c.mobilePromptOverlay} ${this.state.mobilePromptVisible?c.mobilePromptOverlayVisible:""}`,children:[e.jsxs("div",{className:c.mobileLogMgmtHeader,children:[e.jsx("span",{className:c.mobileLogMgmtTitle,children:g("ui.userPrompt")}),e.jsx("button",{className:c.mobileLogMgmtClose,onClick:()=>this.setState({mobilePromptVisible:!1}),children:e.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",children:[e.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),e.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})})]}),e.jsx("div",{className:c.mobilePromptBody,children:(()=>{const d=this.extractUserPrompts(s);return d.length===0?e.jsx("div",{className:c.mobilePromptEmpty,children:g("ui.noPrompt")}):e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:c.mobilePromptHeader,children:[e.jsxs("span",{className:c.mobilePromptCount,children:[d.length," ",g("ui.promptCountUnit")]}),e.jsx(B,{size:"small",icon:e.jsx(bt,{}),onClick:()=>this.handleExportPromptsTxt(d),children:g("ui.exportPromptsTxt")})]}),e.jsx("div",{className:c.mobilePromptList,children:d.map((f,h)=>e.jsxs("div",{className:c.mobilePromptItem,children:[f.timestamp&&e.jsx("div",{className:c.mobilePromptTimestamp,children:new Date(f.timestamp).toLocaleString()}),this.renderOriginalPrompt(f)]},h))})]})})()})]})]}),this.state.globalPermission&&e.jsx(Se,{toolName:this.state.globalPermission.permission.toolName,toolInput:this.state.globalPermission.permission.input,requestId:this.state.globalPermission.permission.id,onAllow:this.state.globalPermission.handlers.allow,onAllowSession:this.state.globalPermission.handlers.allowSession,onDeny:this.state.globalPermission.handlers.deny,visible:!0,global:!0,autoApproveSeconds:this.state.autoApproveSeconds,onAutoApproveChange:this.handleAutoApproveChange,modelName:this.state.globalPermission.modelName}),this.state.globalPlanApproval&&e.jsx(Se,{toolName:"ExitPlanMode",toolInput:this.state.globalPlanApproval.plan.input,requestId:this.state.globalPlanApproval.plan.id,onAllow:this.state.globalPlanApproval.handlers.approve,onDeny:d=>this.state.globalPlanApproval.handlers.reject(d,""),visible:!0,global:!0})]})}};Z(X,"COMMAND_TAGS",new Set(["command-name","command-message","command-args","local-command-caveat","local-command-stdout"]));let we=X;export{we as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{ap as o,aq as n}from"./mermaid.core-CJa7klhs.js";const t=(a,r)=>o.lang.round(n.parse(a)[r]);export{t as c};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{s as a,c as s,a as e,C as t}from"./chunk-4TB4RGXK-DlT_q-fl.js";import{_ as i}from"./mermaid.core-CJa7klhs.js";import"./chunk-FMBD7UC4-DL-dQIq1.js";import"./chunk-YZCP3GAM-Cu84DMJo.js";import"./chunk-55IACEB6-NHN99ZNC.js";import"./chunk-EDXVE4YY-fK4f9Na9.js";import"./AppHeader.module-BMU2vyC4.js";import"./index-BuUsWKGZ.js";var f={parser:e,get db(){return new t},renderer:s,styles:a,init:i(r=>{r.class||(r.class={}),r.class.arrowMarkerAbsolute=r.arrowMarkerAbsolute},"init")};export{f as diagram};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{s as a,c as s,a as e,C as t}from"./chunk-4TB4RGXK-DlT_q-fl.js";import{_ as i}from"./mermaid.core-CJa7klhs.js";import"./chunk-FMBD7UC4-DL-dQIq1.js";import"./chunk-YZCP3GAM-Cu84DMJo.js";import"./chunk-55IACEB6-NHN99ZNC.js";import"./chunk-EDXVE4YY-fK4f9Na9.js";import"./AppHeader.module-BMU2vyC4.js";import"./index-BuUsWKGZ.js";var f={parser:e,get db(){return new t},renderer:s,styles:a,init:i(r=>{r.class||(r.class={}),r.class.arrowMarkerAbsolute=r.arrowMarkerAbsolute},"init")};export{f as diagram};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{b as r}from"./graph-XiH8DkIu.js";var e=4;function a(o){return r(o,e)}export{a as c};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{s as r,b as e,a,S as s}from"./chunk-OYMX7WX6-6uruB4VY.js";import{_ as i}from"./mermaid.core-CJa7klhs.js";import"./chunk-55IACEB6-NHN99ZNC.js";import"./chunk-EDXVE4YY-fK4f9Na9.js";import"./index-BuUsWKGZ.js";import"./AppHeader.module-BMU2vyC4.js";var u={parser:a,get db(){return new s(2)},renderer:e,styles:r,init:i(t=>{t.state||(t.state={}),t.state.arrowMarkerAbsolute=t.arrowMarkerAbsolute},"init")};export{u as diagram};
|