@marimo-team/frontend 0.13.16-dev53 → 0.13.16-dev55

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 (90) hide show
  1. package/dist/assets/{ConnectedDataExplorerComponent-BMqx8Aof.js → ConnectedDataExplorerComponent-Cxx0D34S.js} +1 -1
  2. package/dist/assets/{ImageComparisonComponent-Dj7JatqW.js → ImageComparisonComponent-Czpgb6Qt.js} +1 -1
  3. package/dist/assets/{VegaLite-DzXA3xH5.js → VegaLite-CO8FzCeB.js} +1 -1
  4. package/dist/assets/{_baseEach-BpgepsbW.js → _baseEach-LNOauA-a.js} +1 -1
  5. package/dist/assets/_baseMap-pxqdwgum.js +1 -0
  6. package/dist/assets/{_baseUniq-BiK5Qu27.js → _baseUniq-Cq7N1_IE.js} +1 -1
  7. package/dist/assets/{_createAggregator-BCJ3ogMs.js → _createAggregator-BR5-gteD.js} +1 -1
  8. package/dist/assets/{any-language-editor-DYv-RXmI.js → any-language-editor-Czfxkocl.js} +1 -1
  9. package/dist/assets/{architectureDiagram-IEHRJDOE-L6FX-q7B.js → architectureDiagram-IEHRJDOE-BmRsqRtp.js} +1 -1
  10. package/dist/assets/{blockDiagram-JOT3LUYC-B5lF6-Ea.js → blockDiagram-JOT3LUYC-CbGO6Ot1.js} +1 -1
  11. package/dist/assets/{c4Diagram-VJAJSXHY-VCXvWEdI.js → c4Diagram-VJAJSXHY-BMr1JYxk.js} +1 -1
  12. package/dist/assets/channel-BacrjZjq.js +1 -0
  13. package/dist/assets/{chunk-4BMEZGHF-DY9Nnij5.js → chunk-4BMEZGHF-CdL9xnOp.js} +1 -1
  14. package/dist/assets/{chunk-A2AXSNBT-_3KuU5uV.js → chunk-A2AXSNBT-CFNItUoK.js} +1 -1
  15. package/dist/assets/{chunk-AEK57VVT-DOlRsuXp.js → chunk-AEK57VVT-Bf8UZ8n7.js} +1 -1
  16. package/dist/assets/{chunk-D6G4REZN-CMDIy2Qu.js → chunk-D6G4REZN-Dtxzkm0Y.js} +1 -1
  17. package/dist/assets/{chunk-RZ5BOZE2-B7blSKaR.js → chunk-RZ5BOZE2-X5DkqzYb.js} +1 -1
  18. package/dist/assets/{chunk-XZIHB7SX-Cn1eWiJV.js → chunk-XZIHB7SX-CP3cWTyE.js} +1 -1
  19. package/dist/assets/{circle-play-BFetl357.js → circle-play-BdY0Mz5t.js} +1 -1
  20. package/dist/assets/classDiagram-GIVACNV2-DLiyenS4.js +1 -0
  21. package/dist/assets/classDiagram-v2-COTLJTTW-DLiyenS4.js +1 -0
  22. package/dist/assets/clone-BcTwHBqS.js +1 -0
  23. package/dist/assets/{compile-BD_tg_Y5.js → compile-Bs8kxucU.js} +1 -1
  24. package/dist/assets/{dagre-OKDRZEBW-D8UEUx4e.js → dagre-OKDRZEBW-BeEc9lV7.js} +1 -1
  25. package/dist/assets/{data-editor-D9WfUgLb.js → data-editor-CND4j2oR.js} +1 -1
  26. package/dist/assets/{diagram-SSKATNLV-CTX_yc9F.js → diagram-SSKATNLV-BcKexckW.js} +1 -1
  27. package/dist/assets/{diagram-VNBRO52H-BH-SNQK3.js → diagram-VNBRO52H-CuFUASTh.js} +1 -1
  28. package/dist/assets/{edit-page-Bp83q4wD.js → edit-page-CAiPxrq9.js} +3 -3
  29. package/dist/assets/{erDiagram-Q7BY3M3F-BliFZDQG.js → erDiagram-Q7BY3M3F-BfHHbedj.js} +1 -1
  30. package/dist/assets/{flowDiagram-4HSFHLVR-DQNs2lbe.js → flowDiagram-4HSFHLVR-C7Ue2Pre.js} +1 -1
  31. package/dist/assets/{ganttDiagram-APWFNJXF-DvuLUzFh.js → ganttDiagram-APWFNJXF-CLZ7nSPi.js} +1 -1
  32. package/dist/assets/{gitGraphDiagram-7IBYFJ6S-BCqIsVO5.js → gitGraphDiagram-7IBYFJ6S-CR7I7eDp.js} +1 -1
  33. package/dist/assets/{graph-Dl-YiJze.js → graph-BmY6w9yf.js} +1 -1
  34. package/dist/assets/{home-page-OmY3K-OF.js → home-page-4-Fn19go.js} +1 -1
  35. package/dist/assets/{index-B76YOnPS.js → index-4HEmI9GW.js} +1 -1
  36. package/dist/assets/{index-B4V7753n.js → index-B76erFGc.js} +1 -1
  37. package/dist/assets/{index-C7mg9ReD.js → index-BPbd4S2b.js} +1 -1
  38. package/dist/assets/{index-DMEInz7C.js → index-Bef4_wPf.js} +1 -1
  39. package/dist/assets/{index-7CGc_Zrg.js → index-Bo6aGjTB.js} +1 -1
  40. package/dist/assets/{index-BdVyC9XF.js → index-Br1wm15U.js} +1 -1
  41. package/dist/assets/{index-C3HM5Agv.js → index-C-AbIT2J.js} +1 -1
  42. package/dist/assets/{index-BTyBIYFo.js → index-C4-tV0IQ.js} +1 -1
  43. package/dist/assets/{index-BWh7kliE.js → index-CN9y9bSa.js} +1 -1
  44. package/dist/assets/{index-DHdWS5QZ.js → index-C_YBu4tU.js} +1 -1
  45. package/dist/assets/{index-CDjhJIDr.js → index-Cxfhd3zs.js} +1 -1
  46. package/dist/assets/{index-Sp0e4kH6.js → index-D8Tb-KRz.js} +1 -1
  47. package/dist/assets/{index-BvcXOikb.js → index-D9kHkET-.js} +1 -1
  48. package/dist/assets/{index-Ca4gNeLN.js → index-DAWurPiI.js} +1 -1
  49. package/dist/assets/{index-PUF97-Lr.js → index-DPlv7xGY.js} +1 -1
  50. package/dist/assets/{index-Bsxa1B10.js → index-DVPUMhA6.js} +1 -1
  51. package/dist/assets/{index-C8XoZZzm.js → index-DjwUjO1A.js} +1 -1
  52. package/dist/assets/{index-DR6cIL1R.js → index-QIUy3-fx.js} +105 -105
  53. package/dist/assets/{index-CFbhQR84.js → index-Rh1XQzPr.js} +1 -1
  54. package/dist/assets/infoDiagram-PH2N3AL5-B9SZVXr0.js +2 -0
  55. package/dist/assets/{journeyDiagram-U35MCT3I-BU98BDwi.js → journeyDiagram-U35MCT3I-CPzgwkQ0.js} +1 -1
  56. package/dist/assets/{kanban-definition-NDS4AKOZ-1TUgcjCu.js → kanban-definition-NDS4AKOZ-B0JbR4at.js} +1 -1
  57. package/dist/assets/{layout-CL8vQ-EM.js → layout-cnJA8onR.js} +1 -1
  58. package/dist/assets/{linear-B7NmxxzO.js → linear-Hpe_xbNg.js} +1 -1
  59. package/dist/assets/{mermaid-DIApez7m.js → mermaid-BTnYu19d.js} +4 -4
  60. package/dist/assets/{min-mGrB79e1.js → min-DBYbvr5H.js} +1 -1
  61. package/dist/assets/{mindmap-definition-ALO5MXBD-DFg-7EeN.js → mindmap-definition-ALO5MXBD-CwN12ZUl.js} +1 -1
  62. package/dist/assets/{panels-BjhiOh8X.js → panels-BLAlULf5.js} +3 -3
  63. package/dist/assets/{pieDiagram-IB7DONF6-CVz4ou_B.js → pieDiagram-IB7DONF6-CHFdhRFn.js} +1 -1
  64. package/dist/assets/{quadrantDiagram-7GDLP6J5-DkM9GPsk.js → quadrantDiagram-7GDLP6J5-D5V7aZkv.js} +1 -1
  65. package/dist/assets/{radar-MK3ICKWK-CENEmHQB.js → radar-MK3ICKWK-DHE2mw_c.js} +1 -1
  66. package/dist/assets/{react-plotly-C3v0rmNq.js → react-plotly-CVHyByw0.js} +1 -1
  67. package/dist/assets/{requirementDiagram-KVF5MWMF-C4k2klXa.js → requirementDiagram-KVF5MWMF-AZXQd9LA.js} +1 -1
  68. package/dist/assets/{run-page-C19P-R80.js → run-page-BOmYmTjd.js} +1 -1
  69. package/dist/assets/{sankeyDiagram-QLVOVGJD-ADGl6leG.js → sankeyDiagram-QLVOVGJD-CEP7ugwo.js} +1 -1
  70. package/dist/assets/{sequenceDiagram-X6HHIX6F-DO3GDsb1.js → sequenceDiagram-X6HHIX6F-K8RUIES1.js} +1 -1
  71. package/dist/assets/{slides-component-rUzZngF-.js → slides-component-Dk_dI6Us.js} +1 -1
  72. package/dist/assets/{sortBy-kSKKZrf-.js → sortBy-YG51qdCy.js} +1 -1
  73. package/dist/assets/{stateDiagram-DGXRK772-BGkfR_jO.js → stateDiagram-DGXRK772-C447xjov.js} +1 -1
  74. package/dist/assets/stateDiagram-v2-YXO3MK2T-DiuTh3LP.js +1 -0
  75. package/dist/assets/{terminal-DtQ3URAs.js → terminal-BlJOU13l.js} +1 -1
  76. package/dist/assets/{time-Ceaid8AO.js → time-iwgofemH.js} +1 -1
  77. package/dist/assets/{timeline-definition-BDJGKUSR-BYfJs5OD.js → timeline-definition-BDJGKUSR-uXdcSquY.js} +1 -1
  78. package/dist/assets/{tracing-bfVRvcjD.js → tracing-C7bGildW.js} +2 -2
  79. package/dist/assets/{tree-DV3OlEev.js → tree-Bqit9JR1.js} +2 -2
  80. package/dist/assets/{vega-component-X71AuJa6.js → vega-component-DbGbYG9c.js} +1 -1
  81. package/dist/assets/{xychartDiagram-VJFVF3MP-XqvL5R4-.js → xychartDiagram-VJFVF3MP-BqGaxgM8.js} +1 -1
  82. package/dist/index.html +1 -1
  83. package/package.json +9 -9
  84. package/dist/assets/_baseMap-Co-m7jva.js +0 -1
  85. package/dist/assets/channel-CDhJKh0e.js +0 -1
  86. package/dist/assets/classDiagram-GIVACNV2-BtM5GSav.js +0 -1
  87. package/dist/assets/classDiagram-v2-COTLJTTW-BtM5GSav.js +0 -1
  88. package/dist/assets/clone-BR0LyGRj.js +0 -1
  89. package/dist/assets/infoDiagram-PH2N3AL5-E8Tqqy7e.js +0 -2
  90. package/dist/assets/stateDiagram-v2-YXO3MK2T-A7HTMIsq.js +0 -1
@@ -1 +1 @@
1
- import{aw as d,ax as c,Y as p,ay as b,az as w,aA as y,H as z,aB as g,J as A}from"./index-DR6cIL1R.js";import{a as B}from"./_baseEach-BpgepsbW.js";import{b as H}from"./_baseMap-Co-m7jva.js";function J(n,r){if(n!==r){var u=n!==void 0,l=n===null,t=n==n,e=d(n),a=r!==void 0,o=r===null,f=r==r,i=d(r);if(!o&&!i&&!e&&n>r||e&&a&&f&&!o&&!i||l&&a&&f||!u&&f||!t)return 1;if(!l&&!e&&!i&&n<r||i&&u&&t&&!l&&!e||o&&u&&t||!a&&t||!f)return-1}return 0}function Y(n,r,u){r=r.length?c(r,function(t){return p(t)?function(e){return b(e,t.length===1?t[0]:t)}:t}):[w];var l=-1;return r=c(r,y(B)),function(t,e){var a=t.length;for(t.sort(e);a--;)t[a]=t[a].value;return t}(H(n,function(t,e,a){return{criteria:c(r,function(o){return o(t)}),index:++l,value:t}}),function(t,e){return function(a,o,f){for(var i=-1,v=a.criteria,h=o.criteria,m=v.length,x=f.length;++i<m;){var s=J(v[i],h[i]);if(s)return i>=x?s:s*(f[i]=="desc"?-1:1)}return a.index-o.index}(t,e,u)})}var j=z(function(n,r){if(n==null)return[];var u=r.length;return u>1&&g(n,r[0],r[1])?r=[]:u>2&&g(r[0],r[1],r[2])&&(r=[r[0]]),Y(n,A(r),[])});export{j as s};
1
+ import{aw as d,ax as c,Y as p,ay as b,az as w,aA as y,H as z,aB as g,J as A}from"./index-QIUy3-fx.js";import{a as B}from"./_baseEach-LNOauA-a.js";import{b as H}from"./_baseMap-pxqdwgum.js";function J(n,r){if(n!==r){var u=n!==void 0,l=n===null,t=n==n,e=d(n),a=r!==void 0,o=r===null,f=r==r,i=d(r);if(!o&&!i&&!e&&n>r||e&&a&&f&&!o&&!i||l&&a&&f||!u&&f||!t)return 1;if(!l&&!e&&!i&&n<r||i&&u&&t&&!l&&!e||o&&u&&t||!a&&t||!f)return-1}return 0}function Y(n,r,u){r=r.length?c(r,function(t){return p(t)?function(e){return b(e,t.length===1?t[0]:t)}:t}):[w];var l=-1;return r=c(r,y(B)),function(t,e){var a=t.length;for(t.sort(e);a--;)t[a]=t[a].value;return t}(H(n,function(t,e,a){return{criteria:c(r,function(o){return o(t)}),index:++l,value:t}}),function(t,e){return function(a,o,f){for(var i=-1,v=a.criteria,h=o.criteria,m=v.length,x=f.length;++i<m;){var s=J(v[i],h[i]);if(s)return i>=x?s:s*(f[i]=="desc"?-1:1)}return a.index-o.index}(t,e,u)})}var j=z(function(n,r){if(n==null)return[];var u=r.length;return u>1&&g(n,r[0],r[1])?r=[]:u>2&&g(r[0],r[1],r[2])&&(r=[r[0]]),Y(n,A(r),[])});export{j as s};
@@ -1 +1 @@
1
- import{s as O,a as P,S as M}from"./chunk-AEK57VVT-DOlRsuXp.js";import{_ as f,c as t,l as S,d as R,j as v,u as U}from"./mermaid-DIApez7m.js";import{s as T}from"./transform-Cyp0GDF-.js";import{G as C}from"./graph-Dl-YiJze.js";import{l as I}from"./layout-CL8vQ-EM.js";import{l as W,k as j}from"./step-BwsUM5iJ.js";import"./chunk-RZ5BOZE2-B7blSKaR.js";import"./index-DR6cIL1R.js";import"./timer-DFzT7np-.js";import"./_baseUniq-BiK5Qu27.js";import"./_baseEach-BpgepsbW.js";import"./min-mGrB79e1.js";import"./_baseMap-Co-m7jva.js";import"./sortBy-kSKKZrf-.js";var m,z={},F=f((e,i)=>{z[e]=i},"set"),J=f(e=>z[e],"get"),D=f(()=>Object.keys(z),"keys"),Y=f(()=>D().length,"size"),$={get:J,set:F,keys:D,size:Y},X=f(e=>e.append("circle").attr("class","start-state").attr("r",t().state.sizeUnit).attr("cx",t().state.padding+t().state.sizeUnit).attr("cy",t().state.padding+t().state.sizeUnit),"drawStartState"),_=f(e=>e.append("line").style("stroke","grey").style("stroke-dasharray","3").attr("x1",t().state.textHeight).attr("class","divider").attr("x2",2*t().state.textHeight).attr("y1",0).attr("y2",0),"drawDivider"),q=f((e,i)=>{const o=e.append("text").attr("x",2*t().state.padding).attr("y",t().state.textHeight+2*t().state.padding).attr("font-size",t().state.fontSize).attr("class","state-title").text(i.id),d=o.node().getBBox();return e.insert("rect",":first-child").attr("x",t().state.padding).attr("y",t().state.padding).attr("width",d.width+2*t().state.padding).attr("height",d.height+2*t().state.padding).attr("rx",t().state.radius),o},"drawSimpleState"),Z=f((e,i)=>{const o=f(function(g,y,b){const B=g.append("tspan").attr("x",2*t().state.padding).text(y);b||B.attr("dy",t().state.textHeight)},"addTspan"),d=e.append("text").attr("x",2*t().state.padding).attr("y",t().state.textHeight+1.3*t().state.padding).attr("font-size",t().state.fontSize).attr("class","state-title").text(i.descriptions[0]).node().getBBox(),n=d.height,c=e.append("text").attr("x",t().state.padding).attr("y",n+.4*t().state.padding+t().state.dividerMargin+t().state.textHeight).attr("class","state-description");let l=!0,a=!0;i.descriptions.forEach(function(g){l||(o(c,g,a),a=!1),l=!1});const s=e.append("line").attr("x1",t().state.padding).attr("y1",t().state.padding+n+t().state.dividerMargin/2).attr("y2",t().state.padding+n+t().state.dividerMargin/2).attr("class","descr-divider"),x=c.node().getBBox(),h=Math.max(x.width,d.width);return s.attr("x2",h+3*t().state.padding),e.insert("rect",":first-child").attr("x",t().state.padding).attr("y",t().state.padding).attr("width",h+2*t().state.padding).attr("height",x.height+n+2*t().state.padding).attr("rx",t().state.radius),e},"drawDescrState"),K=f((e,i,o)=>{const d=t().state.padding,n=2*t().state.padding,c=e.node().getBBox(),l=c.width,a=c.x,s=e.append("text").attr("x",0).attr("y",t().state.titleShift).attr("font-size",t().state.fontSize).attr("class","state-title").text(i.id),x=s.node().getBBox().width+n;let h,g=Math.max(x,l);g===l&&(g+=n);const y=e.node().getBBox();i.doc,h=a-d,x>l&&(h=(l-g)/2+d),Math.abs(a-y.x)<d&&x>l&&(h=a-(x-l)/2);const b=1-t().state.textHeight;return e.insert("rect",":first-child").attr("x",h).attr("y",b).attr("class",o?"alt-composit":"composit").attr("width",g).attr("height",y.height+t().state.textHeight+t().state.titleShift+1).attr("rx","0"),s.attr("x",h+d),x<=l&&s.attr("x",a+(g-n)/2-x/2+d),e.insert("rect",":first-child").attr("x",h).attr("y",t().state.titleShift-t().state.textHeight-t().state.padding).attr("width",g).attr("height",3*t().state.textHeight).attr("rx",t().state.radius),e.insert("rect",":first-child").attr("x",h).attr("y",t().state.titleShift-t().state.textHeight-t().state.padding).attr("width",g).attr("height",y.height+3+2*t().state.textHeight).attr("rx",t().state.radius),e},"addTitleAndBox"),Q=f(e=>(e.append("circle").attr("class","end-state-outer").attr("r",t().state.sizeUnit+t().state.miniPadding).attr("cx",t().state.padding+t().state.sizeUnit+t().state.miniPadding).attr("cy",t().state.padding+t().state.sizeUnit+t().state.miniPadding),e.append("circle").attr("class","end-state-inner").attr("r",t().state.sizeUnit).attr("cx",t().state.padding+t().state.sizeUnit+2).attr("cy",t().state.padding+t().state.sizeUnit+2)),"drawEndState"),V=f((e,i)=>{let o=t().state.forkWidth,d=t().state.forkHeight;if(i.parentId){let n=o;o=d,d=n}return e.append("rect").style("stroke","black").style("fill","black").attr("width",o).attr("height",d).attr("x",t().state.padding).attr("y",t().state.padding)},"drawForkJoinState"),tt=f((e,i,o,d)=>{let n=0;const c=d.append("text");c.style("text-anchor","start"),c.attr("class","noteText");let l=e.replace(/\r\n/g,"<br/>");l=l.replace(/\n/g,"<br/>");const a=l.split(v.lineBreakRegex);let s=1.25*t().state.noteMargin;for(const x of a){const h=x.trim();if(h.length>0){const g=c.append("tspan");g.text(h),s===0&&(s+=g.node().getBBox().height),n+=s,g.attr("x",i+t().state.noteMargin),g.attr("y",o+n+1.25*t().state.noteMargin)}}return{textWidth:c.node().getBBox().width,textHeight:n}},"_drawLongText"),et=f((e,i)=>{i.attr("class","state-note");const o=i.append("rect").attr("x",0).attr("y",t().state.padding),d=i.append("g"),{textWidth:n,textHeight:c}=tt(e,0,0,d);return o.attr("height",c+2*t().state.noteMargin),o.attr("width",n+2*t().state.noteMargin),o},"drawNote"),L=f(function(e,i){const o=i.id,d={id:o,label:i.id,width:0,height:0},n=e.append("g").attr("id",o).attr("class","stateGroup");i.type==="start"&&X(n),i.type==="end"&&Q(n),i.type!=="fork"&&i.type!=="join"||V(n,i),i.type==="note"&&et(i.note.text,n),i.type==="divider"&&_(n),i.type==="default"&&i.descriptions.length===0&&q(n,i),i.type==="default"&&i.descriptions.length>0&&Z(n,i);const c=n.node().getBBox();return d.width=c.width+2*t().state.padding,d.height=c.height+2*t().state.padding,$.set(o,d),d},"drawState"),G=0,at=f(function(e,i,o){const d=f(function(s){switch(s){case M.relationType.AGGREGATION:return"aggregation";case M.relationType.EXTENSION:return"extension";case M.relationType.COMPOSITION:return"composition";case M.relationType.DEPENDENCY:return"dependency"}},"getRelationType");i.points=i.points.filter(s=>!Number.isNaN(s.y));const n=i.points,c=W().x(function(s){return s.x}).y(function(s){return s.y}).curve(j),l=e.append("path").attr("d",c(n)).attr("id","edge"+G).attr("class","transition");let a="";if(t().state.arrowMarkerAbsolute&&(a=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,a=a.replace(/\(/g,"\\("),a=a.replace(/\)/g,"\\)")),l.attr("marker-end","url("+a+"#"+d(M.relationType.DEPENDENCY)+"End)"),o.title!==void 0){const s=e.append("g").attr("class","stateLabel"),{x,y:h}=U.calcLabelPosition(i.points),g=v.getRows(o.title);let y=0;const b=[];let B=0,E=0;for(let u=0;u<=g.length;u++){const p=s.append("text").attr("text-anchor","middle").text(g[u]).attr("x",x).attr("y",h+y),w=p.node().getBBox();B=Math.max(B,w.width),E=Math.min(E,w.x),S.info(w.x,x,h+y),y===0&&(y=p.node().getBBox().height,S.info("Title height",y,h)),b.push(p)}let N=y*g.length;if(g.length>1){const u=(g.length-1)*y*.5;b.forEach((p,w)=>p.attr("y",h+w*y-u)),N=y*g.length}const r=s.node().getBBox();s.insert("rect",":first-child").attr("class","box").attr("x",x-B/2-t().state.padding/2).attr("y",h-N/2-t().state.padding/2-3.5).attr("width",B+t().state.padding).attr("height",N+t().state.padding),S.info(r)}G++},"drawEdge"),H={},it=f(function(){},"setConf"),rt=f(function(e){e.append("defs").append("marker").attr("id","dependencyEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z")},"insertMarkers"),nt=f(function(e,i,o,d){m=t().state;const n=t().securityLevel;let c;n==="sandbox"&&(c=T("#i"+i));const l=T(n==="sandbox"?c.nodes()[0].contentDocument.body:"body"),a=n==="sandbox"?c.nodes()[0].contentDocument:document;S.debug("Rendering diagram "+e);const s=l.select(`[id='${i}']`);rt(s);const x=d.db.getRootDoc();A(x,s,void 0,!1,l,a,d);const h=m.padding,g=s.node().getBBox(),y=g.width+2*h,b=g.height+2*h;R(s,b,1.75*y,m.useMaxWidth),s.attr("viewBox",`${g.x-m.padding} ${g.y-m.padding} `+y+" "+b)},"draw"),dt=f(e=>e?e.length*m.fontSizeFactor:1,"getLabelWidth"),A=f((e,i,o,d,n,c,l)=>{const a=new C({compound:!0,multigraph:!0});let s,x=!0;for(s=0;s<e.length;s++)if(e[s].stmt==="relation"){x=!1;break}o?a.setGraph({rankdir:"LR",multigraph:!0,compound:!0,ranker:"tight-tree",ranksep:x?1:m.edgeLengthFactor,nodeSep:x?1:50,isMultiGraph:!0}):a.setGraph({rankdir:"TB",multigraph:!0,compound:!0,ranksep:x?1:m.edgeLengthFactor,nodeSep:x?1:50,ranker:"tight-tree",isMultiGraph:!0}),a.setDefaultEdgeLabel(function(){return{}});const h=l.db.getStates(),g=l.db.getRelations(),y=Object.keys(h);for(const r of y){const u=h[r];let p;if(o&&(u.parentId=o),u.doc){let w=i.append("g").attr("id",u.id).attr("class","stateGroup");p=A(u.doc,w,u.id,!d,n,c,l);{w=K(w,u,d);let k=w.node().getBBox();p.width=k.width,p.height=k.height+m.padding/2,H[u.id]={y:m.compositTitleSize}}}else p=L(i,u,a);if(u.note){const w={descriptions:[],id:u.id+"-note",note:u.note,type:"note"},k=L(i,w,a);u.note.position==="left of"?(a.setNode(p.id+"-note",k),a.setNode(p.id,p)):(a.setNode(p.id,p),a.setNode(p.id+"-note",k)),a.setParent(p.id,p.id+"-group"),a.setParent(p.id+"-note",p.id+"-group")}else a.setNode(p.id,p)}S.debug("Count=",a.nodeCount(),a);let b=0;g.forEach(function(r){b++,S.debug("Setting edge",r),a.setEdge(r.id1,r.id2,{relation:r,width:dt(r.title),height:m.labelHeight*v.getRows(r.title).length,labelpos:"c"},"id"+b)}),I(a),S.debug("Graph after layout",a.nodes());const B=i.node();a.nodes().forEach(function(r){r!==void 0&&a.node(r)!==void 0?(S.warn("Node "+r+": "+JSON.stringify(a.node(r))),n.select("#"+B.id+" #"+r).attr("transform","translate("+(a.node(r).x-a.node(r).width/2)+","+(a.node(r).y+(H[r]?H[r].y:0)-a.node(r).height/2)+" )"),n.select("#"+B.id+" #"+r).attr("data-x-shift",a.node(r).x-a.node(r).width/2),c.querySelectorAll("#"+B.id+" #"+r+" .divider").forEach(u=>{const p=u.parentElement;let w=0,k=0;p&&(p.parentElement&&(w=p.parentElement.getBBox().width),k=parseInt(p.getAttribute("data-x-shift"),10),Number.isNaN(k)&&(k=0)),u.setAttribute("x1",0-k+8),u.setAttribute("x2",w-k-8)})):S.debug("No Node "+r+": "+JSON.stringify(a.node(r)))});let E=B.getBBox();a.edges().forEach(function(r){r!==void 0&&a.edge(r)!==void 0&&(S.debug("Edge "+r.v+" -> "+r.w+": "+JSON.stringify(a.edge(r))),at(i,a.edge(r),a.edge(r).relation))}),E=B.getBBox();const N={id:o||"root",label:o||"root",width:0,height:0};return N.width=E.width+2*m.padding,N.height=E.height+2*m.padding,S.debug("Doc rendered",N,a),N},"renderDoc"),st={setConf:it,draw:nt},ot={parser:P,get db(){return new M(1)},renderer:st,styles:O,init:f(e=>{e.state||(e.state={}),e.state.arrowMarkerAbsolute=e.arrowMarkerAbsolute},"init")};export{ot as diagram};
1
+ import{s as O,a as P,S as M}from"./chunk-AEK57VVT-Bf8UZ8n7.js";import{_ as f,c as t,l as S,d as R,j as v,u as U}from"./mermaid-BTnYu19d.js";import{s as T}from"./transform-Cyp0GDF-.js";import{G as C}from"./graph-BmY6w9yf.js";import{l as I}from"./layout-cnJA8onR.js";import{l as W,k as j}from"./step-BwsUM5iJ.js";import"./chunk-RZ5BOZE2-X5DkqzYb.js";import"./index-QIUy3-fx.js";import"./timer-DFzT7np-.js";import"./_baseUniq-Cq7N1_IE.js";import"./_baseEach-LNOauA-a.js";import"./min-DBYbvr5H.js";import"./_baseMap-pxqdwgum.js";import"./sortBy-YG51qdCy.js";var m,z={},F=f((e,i)=>{z[e]=i},"set"),J=f(e=>z[e],"get"),D=f(()=>Object.keys(z),"keys"),Y=f(()=>D().length,"size"),$={get:J,set:F,keys:D,size:Y},X=f(e=>e.append("circle").attr("class","start-state").attr("r",t().state.sizeUnit).attr("cx",t().state.padding+t().state.sizeUnit).attr("cy",t().state.padding+t().state.sizeUnit),"drawStartState"),_=f(e=>e.append("line").style("stroke","grey").style("stroke-dasharray","3").attr("x1",t().state.textHeight).attr("class","divider").attr("x2",2*t().state.textHeight).attr("y1",0).attr("y2",0),"drawDivider"),q=f((e,i)=>{const o=e.append("text").attr("x",2*t().state.padding).attr("y",t().state.textHeight+2*t().state.padding).attr("font-size",t().state.fontSize).attr("class","state-title").text(i.id),d=o.node().getBBox();return e.insert("rect",":first-child").attr("x",t().state.padding).attr("y",t().state.padding).attr("width",d.width+2*t().state.padding).attr("height",d.height+2*t().state.padding).attr("rx",t().state.radius),o},"drawSimpleState"),Z=f((e,i)=>{const o=f(function(g,y,b){const B=g.append("tspan").attr("x",2*t().state.padding).text(y);b||B.attr("dy",t().state.textHeight)},"addTspan"),d=e.append("text").attr("x",2*t().state.padding).attr("y",t().state.textHeight+1.3*t().state.padding).attr("font-size",t().state.fontSize).attr("class","state-title").text(i.descriptions[0]).node().getBBox(),n=d.height,c=e.append("text").attr("x",t().state.padding).attr("y",n+.4*t().state.padding+t().state.dividerMargin+t().state.textHeight).attr("class","state-description");let l=!0,a=!0;i.descriptions.forEach(function(g){l||(o(c,g,a),a=!1),l=!1});const s=e.append("line").attr("x1",t().state.padding).attr("y1",t().state.padding+n+t().state.dividerMargin/2).attr("y2",t().state.padding+n+t().state.dividerMargin/2).attr("class","descr-divider"),x=c.node().getBBox(),h=Math.max(x.width,d.width);return s.attr("x2",h+3*t().state.padding),e.insert("rect",":first-child").attr("x",t().state.padding).attr("y",t().state.padding).attr("width",h+2*t().state.padding).attr("height",x.height+n+2*t().state.padding).attr("rx",t().state.radius),e},"drawDescrState"),K=f((e,i,o)=>{const d=t().state.padding,n=2*t().state.padding,c=e.node().getBBox(),l=c.width,a=c.x,s=e.append("text").attr("x",0).attr("y",t().state.titleShift).attr("font-size",t().state.fontSize).attr("class","state-title").text(i.id),x=s.node().getBBox().width+n;let h,g=Math.max(x,l);g===l&&(g+=n);const y=e.node().getBBox();i.doc,h=a-d,x>l&&(h=(l-g)/2+d),Math.abs(a-y.x)<d&&x>l&&(h=a-(x-l)/2);const b=1-t().state.textHeight;return e.insert("rect",":first-child").attr("x",h).attr("y",b).attr("class",o?"alt-composit":"composit").attr("width",g).attr("height",y.height+t().state.textHeight+t().state.titleShift+1).attr("rx","0"),s.attr("x",h+d),x<=l&&s.attr("x",a+(g-n)/2-x/2+d),e.insert("rect",":first-child").attr("x",h).attr("y",t().state.titleShift-t().state.textHeight-t().state.padding).attr("width",g).attr("height",3*t().state.textHeight).attr("rx",t().state.radius),e.insert("rect",":first-child").attr("x",h).attr("y",t().state.titleShift-t().state.textHeight-t().state.padding).attr("width",g).attr("height",y.height+3+2*t().state.textHeight).attr("rx",t().state.radius),e},"addTitleAndBox"),Q=f(e=>(e.append("circle").attr("class","end-state-outer").attr("r",t().state.sizeUnit+t().state.miniPadding).attr("cx",t().state.padding+t().state.sizeUnit+t().state.miniPadding).attr("cy",t().state.padding+t().state.sizeUnit+t().state.miniPadding),e.append("circle").attr("class","end-state-inner").attr("r",t().state.sizeUnit).attr("cx",t().state.padding+t().state.sizeUnit+2).attr("cy",t().state.padding+t().state.sizeUnit+2)),"drawEndState"),V=f((e,i)=>{let o=t().state.forkWidth,d=t().state.forkHeight;if(i.parentId){let n=o;o=d,d=n}return e.append("rect").style("stroke","black").style("fill","black").attr("width",o).attr("height",d).attr("x",t().state.padding).attr("y",t().state.padding)},"drawForkJoinState"),tt=f((e,i,o,d)=>{let n=0;const c=d.append("text");c.style("text-anchor","start"),c.attr("class","noteText");let l=e.replace(/\r\n/g,"<br/>");l=l.replace(/\n/g,"<br/>");const a=l.split(v.lineBreakRegex);let s=1.25*t().state.noteMargin;for(const x of a){const h=x.trim();if(h.length>0){const g=c.append("tspan");g.text(h),s===0&&(s+=g.node().getBBox().height),n+=s,g.attr("x",i+t().state.noteMargin),g.attr("y",o+n+1.25*t().state.noteMargin)}}return{textWidth:c.node().getBBox().width,textHeight:n}},"_drawLongText"),et=f((e,i)=>{i.attr("class","state-note");const o=i.append("rect").attr("x",0).attr("y",t().state.padding),d=i.append("g"),{textWidth:n,textHeight:c}=tt(e,0,0,d);return o.attr("height",c+2*t().state.noteMargin),o.attr("width",n+2*t().state.noteMargin),o},"drawNote"),L=f(function(e,i){const o=i.id,d={id:o,label:i.id,width:0,height:0},n=e.append("g").attr("id",o).attr("class","stateGroup");i.type==="start"&&X(n),i.type==="end"&&Q(n),i.type!=="fork"&&i.type!=="join"||V(n,i),i.type==="note"&&et(i.note.text,n),i.type==="divider"&&_(n),i.type==="default"&&i.descriptions.length===0&&q(n,i),i.type==="default"&&i.descriptions.length>0&&Z(n,i);const c=n.node().getBBox();return d.width=c.width+2*t().state.padding,d.height=c.height+2*t().state.padding,$.set(o,d),d},"drawState"),G=0,at=f(function(e,i,o){const d=f(function(s){switch(s){case M.relationType.AGGREGATION:return"aggregation";case M.relationType.EXTENSION:return"extension";case M.relationType.COMPOSITION:return"composition";case M.relationType.DEPENDENCY:return"dependency"}},"getRelationType");i.points=i.points.filter(s=>!Number.isNaN(s.y));const n=i.points,c=W().x(function(s){return s.x}).y(function(s){return s.y}).curve(j),l=e.append("path").attr("d",c(n)).attr("id","edge"+G).attr("class","transition");let a="";if(t().state.arrowMarkerAbsolute&&(a=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,a=a.replace(/\(/g,"\\("),a=a.replace(/\)/g,"\\)")),l.attr("marker-end","url("+a+"#"+d(M.relationType.DEPENDENCY)+"End)"),o.title!==void 0){const s=e.append("g").attr("class","stateLabel"),{x,y:h}=U.calcLabelPosition(i.points),g=v.getRows(o.title);let y=0;const b=[];let B=0,E=0;for(let u=0;u<=g.length;u++){const p=s.append("text").attr("text-anchor","middle").text(g[u]).attr("x",x).attr("y",h+y),w=p.node().getBBox();B=Math.max(B,w.width),E=Math.min(E,w.x),S.info(w.x,x,h+y),y===0&&(y=p.node().getBBox().height,S.info("Title height",y,h)),b.push(p)}let N=y*g.length;if(g.length>1){const u=(g.length-1)*y*.5;b.forEach((p,w)=>p.attr("y",h+w*y-u)),N=y*g.length}const r=s.node().getBBox();s.insert("rect",":first-child").attr("class","box").attr("x",x-B/2-t().state.padding/2).attr("y",h-N/2-t().state.padding/2-3.5).attr("width",B+t().state.padding).attr("height",N+t().state.padding),S.info(r)}G++},"drawEdge"),H={},it=f(function(){},"setConf"),rt=f(function(e){e.append("defs").append("marker").attr("id","dependencyEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z")},"insertMarkers"),nt=f(function(e,i,o,d){m=t().state;const n=t().securityLevel;let c;n==="sandbox"&&(c=T("#i"+i));const l=T(n==="sandbox"?c.nodes()[0].contentDocument.body:"body"),a=n==="sandbox"?c.nodes()[0].contentDocument:document;S.debug("Rendering diagram "+e);const s=l.select(`[id='${i}']`);rt(s);const x=d.db.getRootDoc();A(x,s,void 0,!1,l,a,d);const h=m.padding,g=s.node().getBBox(),y=g.width+2*h,b=g.height+2*h;R(s,b,1.75*y,m.useMaxWidth),s.attr("viewBox",`${g.x-m.padding} ${g.y-m.padding} `+y+" "+b)},"draw"),dt=f(e=>e?e.length*m.fontSizeFactor:1,"getLabelWidth"),A=f((e,i,o,d,n,c,l)=>{const a=new C({compound:!0,multigraph:!0});let s,x=!0;for(s=0;s<e.length;s++)if(e[s].stmt==="relation"){x=!1;break}o?a.setGraph({rankdir:"LR",multigraph:!0,compound:!0,ranker:"tight-tree",ranksep:x?1:m.edgeLengthFactor,nodeSep:x?1:50,isMultiGraph:!0}):a.setGraph({rankdir:"TB",multigraph:!0,compound:!0,ranksep:x?1:m.edgeLengthFactor,nodeSep:x?1:50,ranker:"tight-tree",isMultiGraph:!0}),a.setDefaultEdgeLabel(function(){return{}});const h=l.db.getStates(),g=l.db.getRelations(),y=Object.keys(h);for(const r of y){const u=h[r];let p;if(o&&(u.parentId=o),u.doc){let w=i.append("g").attr("id",u.id).attr("class","stateGroup");p=A(u.doc,w,u.id,!d,n,c,l);{w=K(w,u,d);let k=w.node().getBBox();p.width=k.width,p.height=k.height+m.padding/2,H[u.id]={y:m.compositTitleSize}}}else p=L(i,u,a);if(u.note){const w={descriptions:[],id:u.id+"-note",note:u.note,type:"note"},k=L(i,w,a);u.note.position==="left of"?(a.setNode(p.id+"-note",k),a.setNode(p.id,p)):(a.setNode(p.id,p),a.setNode(p.id+"-note",k)),a.setParent(p.id,p.id+"-group"),a.setParent(p.id+"-note",p.id+"-group")}else a.setNode(p.id,p)}S.debug("Count=",a.nodeCount(),a);let b=0;g.forEach(function(r){b++,S.debug("Setting edge",r),a.setEdge(r.id1,r.id2,{relation:r,width:dt(r.title),height:m.labelHeight*v.getRows(r.title).length,labelpos:"c"},"id"+b)}),I(a),S.debug("Graph after layout",a.nodes());const B=i.node();a.nodes().forEach(function(r){r!==void 0&&a.node(r)!==void 0?(S.warn("Node "+r+": "+JSON.stringify(a.node(r))),n.select("#"+B.id+" #"+r).attr("transform","translate("+(a.node(r).x-a.node(r).width/2)+","+(a.node(r).y+(H[r]?H[r].y:0)-a.node(r).height/2)+" )"),n.select("#"+B.id+" #"+r).attr("data-x-shift",a.node(r).x-a.node(r).width/2),c.querySelectorAll("#"+B.id+" #"+r+" .divider").forEach(u=>{const p=u.parentElement;let w=0,k=0;p&&(p.parentElement&&(w=p.parentElement.getBBox().width),k=parseInt(p.getAttribute("data-x-shift"),10),Number.isNaN(k)&&(k=0)),u.setAttribute("x1",0-k+8),u.setAttribute("x2",w-k-8)})):S.debug("No Node "+r+": "+JSON.stringify(a.node(r)))});let E=B.getBBox();a.edges().forEach(function(r){r!==void 0&&a.edge(r)!==void 0&&(S.debug("Edge "+r.v+" -> "+r.w+": "+JSON.stringify(a.edge(r))),at(i,a.edge(r),a.edge(r).relation))}),E=B.getBBox();const N={id:o||"root",label:o||"root",width:0,height:0};return N.width=E.width+2*m.padding,N.height=E.height+2*m.padding,S.debug("Doc rendered",N,a),N},"renderDoc"),st={setConf:it,draw:nt},ot={parser:P,get db(){return new M(1)},renderer:st,styles:O,init:f(e=>{e.state||(e.state={}),e.state.arrowMarkerAbsolute=e.arrowMarkerAbsolute},"init")};export{ot as diagram};
@@ -0,0 +1 @@
1
+ import{s as t,b as a,a as e,S as s}from"./chunk-AEK57VVT-Bf8UZ8n7.js";import{_ as o}from"./mermaid-BTnYu19d.js";import"./transform-Cyp0GDF-.js";import"./chunk-RZ5BOZE2-X5DkqzYb.js";import"./index-QIUy3-fx.js";import"./step-BwsUM5iJ.js";import"./timer-DFzT7np-.js";var i={parser:e,get db(){return new s(2)},renderer:a,styles:t,init:o(r=>{r.state||(r.state={}),r.state.arrowMarkerAbsolute=r.arrowMarkerAbsolute},"init")};export{i as diagram};
@@ -1,4 +1,4 @@
1
- import{R as pe,Q as se,cn as Le,j as re,d as De,a$ as Re}from"./index-DR6cIL1R.js";var ge,me={exports:{}},Se,xe=ge?me.exports:(ge=1,me.exports=(()=>{var J={4567:function(B,r,o){var l=this&&this.__decorate||function(e,t,a,f){var u,p=arguments.length,c=p<3?t:f===null?f=Object.getOwnPropertyDescriptor(t,a):f;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")c=Reflect.decorate(e,t,a,f);else for(var m=e.length-1;m>=0;m--)(u=e[m])&&(c=(p<3?u(c):p>3?u(t,a,c):u(t,a))||c);return p>3&&c&&Object.defineProperty(t,a,c),c},_=this&&this.__param||function(e,t){return function(a,f){t(a,f,e)}};Object.defineProperty(r,"__esModule",{value:!0}),r.AccessibilityManager=void 0;const n=o(9042),d=o(9924),v=o(844),g=o(4725),h=o(2585),i=o(3656);let s=r.AccessibilityManager=class extends v.Disposable{constructor(e,t,a,f){super(),this._terminal=e,this._coreBrowserService=a,this._renderService=f,this._rowColumns=new WeakMap,this._liveRegionLineCount=0,this._charsToConsume=[],this._charsToAnnounce="",this._accessibilityContainer=this._coreBrowserService.mainDocument.createElement("div"),this._accessibilityContainer.classList.add("xterm-accessibility"),this._rowContainer=this._coreBrowserService.mainDocument.createElement("div"),this._rowContainer.setAttribute("role","list"),this._rowContainer.classList.add("xterm-accessibility-tree"),this._rowElements=[];for(let u=0;u<this._terminal.rows;u++)this._rowElements[u]=this._createAccessibilityTreeNode(),this._rowContainer.appendChild(this._rowElements[u]);if(this._topBoundaryFocusListener=u=>this._handleBoundaryFocus(u,0),this._bottomBoundaryFocusListener=u=>this._handleBoundaryFocus(u,1),this._rowElements[0].addEventListener("focus",this._topBoundaryFocusListener),this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._refreshRowsDimensions(),this._accessibilityContainer.appendChild(this._rowContainer),this._liveRegion=this._coreBrowserService.mainDocument.createElement("div"),this._liveRegion.classList.add("live-region"),this._liveRegion.setAttribute("aria-live","assertive"),this._accessibilityContainer.appendChild(this._liveRegion),this._liveRegionDebouncer=this.register(new d.TimeBasedDebouncer(this._renderRows.bind(this))),!this._terminal.element)throw new Error("Cannot enable accessibility before Terminal.open");this._terminal.element.insertAdjacentElement("afterbegin",this._accessibilityContainer),this.register(this._terminal.onResize(u=>this._handleResize(u.rows))),this.register(this._terminal.onRender(u=>this._refreshRows(u.start,u.end))),this.register(this._terminal.onScroll(()=>this._refreshRows())),this.register(this._terminal.onA11yChar(u=>this._handleChar(u))),this.register(this._terminal.onLineFeed(()=>this._handleChar(`
1
+ import{R as pe,Q as se,cn as Le,j as re,d as De,a$ as Re}from"./index-QIUy3-fx.js";var ge,me={exports:{}},Se,xe=ge?me.exports:(ge=1,me.exports=(()=>{var J={4567:function(B,r,o){var l=this&&this.__decorate||function(e,t,a,f){var u,p=arguments.length,c=p<3?t:f===null?f=Object.getOwnPropertyDescriptor(t,a):f;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")c=Reflect.decorate(e,t,a,f);else for(var m=e.length-1;m>=0;m--)(u=e[m])&&(c=(p<3?u(c):p>3?u(t,a,c):u(t,a))||c);return p>3&&c&&Object.defineProperty(t,a,c),c},_=this&&this.__param||function(e,t){return function(a,f){t(a,f,e)}};Object.defineProperty(r,"__esModule",{value:!0}),r.AccessibilityManager=void 0;const n=o(9042),d=o(9924),v=o(844),g=o(4725),h=o(2585),i=o(3656);let s=r.AccessibilityManager=class extends v.Disposable{constructor(e,t,a,f){super(),this._terminal=e,this._coreBrowserService=a,this._renderService=f,this._rowColumns=new WeakMap,this._liveRegionLineCount=0,this._charsToConsume=[],this._charsToAnnounce="",this._accessibilityContainer=this._coreBrowserService.mainDocument.createElement("div"),this._accessibilityContainer.classList.add("xterm-accessibility"),this._rowContainer=this._coreBrowserService.mainDocument.createElement("div"),this._rowContainer.setAttribute("role","list"),this._rowContainer.classList.add("xterm-accessibility-tree"),this._rowElements=[];for(let u=0;u<this._terminal.rows;u++)this._rowElements[u]=this._createAccessibilityTreeNode(),this._rowContainer.appendChild(this._rowElements[u]);if(this._topBoundaryFocusListener=u=>this._handleBoundaryFocus(u,0),this._bottomBoundaryFocusListener=u=>this._handleBoundaryFocus(u,1),this._rowElements[0].addEventListener("focus",this._topBoundaryFocusListener),this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._refreshRowsDimensions(),this._accessibilityContainer.appendChild(this._rowContainer),this._liveRegion=this._coreBrowserService.mainDocument.createElement("div"),this._liveRegion.classList.add("live-region"),this._liveRegion.setAttribute("aria-live","assertive"),this._accessibilityContainer.appendChild(this._liveRegion),this._liveRegionDebouncer=this.register(new d.TimeBasedDebouncer(this._renderRows.bind(this))),!this._terminal.element)throw new Error("Cannot enable accessibility before Terminal.open");this._terminal.element.insertAdjacentElement("afterbegin",this._accessibilityContainer),this.register(this._terminal.onResize(u=>this._handleResize(u.rows))),this.register(this._terminal.onRender(u=>this._refreshRows(u.start,u.end))),this.register(this._terminal.onScroll(()=>this._refreshRows())),this.register(this._terminal.onA11yChar(u=>this._handleChar(u))),this.register(this._terminal.onLineFeed(()=>this._handleChar(`
2
2
  `))),this.register(this._terminal.onA11yTab(u=>this._handleTab(u))),this.register(this._terminal.onKey(u=>this._handleKey(u.key))),this.register(this._terminal.onBlur(()=>this._clearLiveRegion())),this.register(this._renderService.onDimensionsChange(()=>this._refreshRowsDimensions())),this.register((0,i.addDisposableDomListener)(document,"selectionchange",()=>this._handleSelectionChange())),this.register(this._coreBrowserService.onDprChange(()=>this._refreshRowsDimensions())),this._refreshRows(),this.register((0,v.toDisposable)(()=>{this._accessibilityContainer.remove(),this._rowElements.length=0}))}_handleTab(e){for(let t=0;t<e;t++)this._handleChar(" ")}_handleChar(e){this._liveRegionLineCount<21&&(this._charsToConsume.length>0?this._charsToConsume.shift()!==e&&(this._charsToAnnounce+=e):this._charsToAnnounce+=e,e===`
3
3
  `&&(this._liveRegionLineCount++,this._liveRegionLineCount===21&&(this._liveRegion.textContent+=n.tooMuchOutput)))}_clearLiveRegion(){this._liveRegion.textContent="",this._liveRegionLineCount=0}_handleKey(e){this._clearLiveRegion(),new RegExp("\\p{Control}","u").test(e)||this._charsToConsume.push(e)}_refreshRows(e,t){this._liveRegionDebouncer.refresh(e,t,this._terminal.rows)}_renderRows(e,t){const a=this._terminal.buffer,f=a.lines.length.toString();for(let u=e;u<=t;u++){const p=a.lines.get(a.ydisp+u),c=[],m=(p==null?void 0:p.translateToString(!0,void 0,void 0,c))||"",y=(a.ydisp+u+1).toString(),k=this._rowElements[u];k&&(m.length===0?(k.innerText="\xA0",this._rowColumns.set(k,[0,1])):(k.textContent=m,this._rowColumns.set(k,c)),k.setAttribute("aria-posinset",y),k.setAttribute("aria-setsize",f))}this._announceCharacters()}_announceCharacters(){this._charsToAnnounce.length!==0&&(this._liveRegion.textContent+=this._charsToAnnounce,this._charsToAnnounce="")}_handleBoundaryFocus(e,t){const a=e.target,f=this._rowElements[t===0?1:this._rowElements.length-2];if(a.getAttribute("aria-posinset")===(t===0?"1":`${this._terminal.buffer.lines.length}`)||e.relatedTarget!==f)return;let u,p;if(t===0?(u=a,p=this._rowElements.pop(),this._rowContainer.removeChild(p)):(u=this._rowElements.shift(),p=a,this._rowContainer.removeChild(u)),u.removeEventListener("focus",this._topBoundaryFocusListener),p.removeEventListener("focus",this._bottomBoundaryFocusListener),t===0){const c=this._createAccessibilityTreeNode();this._rowElements.unshift(c),this._rowContainer.insertAdjacentElement("afterbegin",c)}else{const c=this._createAccessibilityTreeNode();this._rowElements.push(c),this._rowContainer.appendChild(c)}this._rowElements[0].addEventListener("focus",this._topBoundaryFocusListener),this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._terminal.scrollLines(t===0?-1:1),this._rowElements[t===0?1:this._rowElements.length-2].focus(),e.preventDefault(),e.stopImmediatePropagation()}_handleSelectionChange(){var m;if(this._rowElements.length===0)return;const e=document.getSelection();if(!e)return;if(e.isCollapsed)return void(this._rowContainer.contains(e.anchorNode)&&this._terminal.clearSelection());if(!e.anchorNode||!e.focusNode)return void console.error("anchorNode and/or focusNode are null");let t={node:e.anchorNode,offset:e.anchorOffset},a={node:e.focusNode,offset:e.focusOffset};if((t.node.compareDocumentPosition(a.node)&Node.DOCUMENT_POSITION_PRECEDING||t.node===a.node&&t.offset>a.offset)&&([t,a]=[a,t]),t.node.compareDocumentPosition(this._rowElements[0])&(Node.DOCUMENT_POSITION_CONTAINED_BY|Node.DOCUMENT_POSITION_FOLLOWING)&&(t={node:this._rowElements[0].childNodes[0],offset:0}),!this._rowContainer.contains(t.node))return;const f=this._rowElements.slice(-1)[0];if(a.node.compareDocumentPosition(f)&(Node.DOCUMENT_POSITION_CONTAINED_BY|Node.DOCUMENT_POSITION_PRECEDING)&&(a={node:f,offset:((m=f.textContent)==null?void 0:m.length)??0}),!this._rowContainer.contains(a.node))return;const u=({node:y,offset:k})=>{const L=y instanceof Text?y.parentNode:y;let w=parseInt(L==null?void 0:L.getAttribute("aria-posinset"),10)-1;if(isNaN(w))return console.warn("row is invalid. Race condition?"),null;const x=this._rowColumns.get(L);if(!x)return console.warn("columns is null. Race condition?"),null;let T=k<x.length?x[k]:x.slice(-1)[0]+1;return T>=this._terminal.cols&&(++w,T=0),{row:w,column:T}},p=u(t),c=u(a);if(p&&c){if(p.row>c.row||p.row===c.row&&p.column>=c.column)throw new Error("invalid range");this._terminal.select(p.column,p.row,(c.row-p.row)*this._terminal.cols-p.column+c.column)}}_handleResize(e){this._rowElements[this._rowElements.length-1].removeEventListener("focus",this._bottomBoundaryFocusListener);for(let t=this._rowContainer.children.length;t<this._terminal.rows;t++)this._rowElements[t]=this._createAccessibilityTreeNode(),this._rowContainer.appendChild(this._rowElements[t]);for(;this._rowElements.length>e;)this._rowContainer.removeChild(this._rowElements.pop());this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._refreshRowsDimensions()}_createAccessibilityTreeNode(){const e=this._coreBrowserService.mainDocument.createElement("div");return e.setAttribute("role","listitem"),e.tabIndex=-1,this._refreshRowDimensions(e),e}_refreshRowsDimensions(){if(this._renderService.dimensions.css.cell.height){this._accessibilityContainer.style.width=`${this._renderService.dimensions.css.canvas.width}px`,this._rowElements.length!==this._terminal.rows&&this._handleResize(this._terminal.rows);for(let e=0;e<this._terminal.rows;e++)this._refreshRowDimensions(this._rowElements[e])}}_refreshRowDimensions(e){e.style.height=`${this._renderService.dimensions.css.cell.height}px`}};r.AccessibilityManager=s=l([_(1,h.IInstantiationService),_(2,g.ICoreBrowserService),_(3,g.IRenderService)],s)},3614:(B,r)=>{function o(d){return d.replace(/\r?\n/g,"\r")}function l(d,v){return v?"\x1B[200~"+d+"\x1B[201~":d}function _(d,v,g,h){d=l(d=o(d),g.decPrivateModes.bracketedPasteMode&&h.rawOptions.ignoreBracketedPasteMode!==!0),g.triggerDataEvent(d,!0),v.value=""}function n(d,v,g){const h=g.getBoundingClientRect(),i=d.clientX-h.left-10,s=d.clientY-h.top-10;v.style.width="20px",v.style.height="20px",v.style.left=`${i}px`,v.style.top=`${s}px`,v.style.zIndex="1000",v.focus()}Object.defineProperty(r,"__esModule",{value:!0}),r.rightClickHandler=r.moveTextAreaUnderMouseCursor=r.paste=r.handlePasteEvent=r.copyHandler=r.bracketTextForPaste=r.prepareTextForTerminal=void 0,r.prepareTextForTerminal=o,r.bracketTextForPaste=l,r.copyHandler=function(d,v){d.clipboardData&&d.clipboardData.setData("text/plain",v.selectionText),d.preventDefault()},r.handlePasteEvent=function(d,v,g,h){d.stopPropagation(),d.clipboardData&&_(d.clipboardData.getData("text/plain"),v,g,h)},r.paste=_,r.moveTextAreaUnderMouseCursor=n,r.rightClickHandler=function(d,v,g,h,i){n(d,v,g),i&&h.rightClickSelect(d),v.value=h.selectionText,v.select()}},7239:(B,r,o)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.ColorContrastCache=void 0;const l=o(1505);r.ColorContrastCache=class{constructor(){this._color=new l.TwoKeyMap,this._css=new l.TwoKeyMap}setCss(_,n,d){this._css.set(_,n,d)}getCss(_,n){return this._css.get(_,n)}setColor(_,n,d){this._color.set(_,n,d)}getColor(_,n){return this._color.get(_,n)}clear(){this._color.clear(),this._css.clear()}}},3656:(B,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.addDisposableDomListener=void 0,r.addDisposableDomListener=function(o,l,_,n){o.addEventListener(l,_,n);let d=!1;return{dispose:()=>{d||(d=!0,o.removeEventListener(l,_,n))}}}},3551:function(B,r,o){var l=this&&this.__decorate||function(s,e,t,a){var f,u=arguments.length,p=u<3?e:a===null?a=Object.getOwnPropertyDescriptor(e,t):a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")p=Reflect.decorate(s,e,t,a);else for(var c=s.length-1;c>=0;c--)(f=s[c])&&(p=(u<3?f(p):u>3?f(e,t,p):f(e,t))||p);return u>3&&p&&Object.defineProperty(e,t,p),p},_=this&&this.__param||function(s,e){return function(t,a){e(t,a,s)}};Object.defineProperty(r,"__esModule",{value:!0}),r.Linkifier=void 0;const n=o(3656),d=o(8460),v=o(844),g=o(2585),h=o(4725);let i=r.Linkifier=class extends v.Disposable{get currentLink(){return this._currentLink}constructor(s,e,t,a,f){super(),this._element=s,this._mouseService=e,this._renderService=t,this._bufferService=a,this._linkProviderService=f,this._linkCacheDisposables=[],this._isMouseOut=!0,this._wasResized=!1,this._activeLine=-1,this._onShowLinkUnderline=this.register(new d.EventEmitter),this.onShowLinkUnderline=this._onShowLinkUnderline.event,this._onHideLinkUnderline=this.register(new d.EventEmitter),this.onHideLinkUnderline=this._onHideLinkUnderline.event,this.register((0,v.getDisposeArrayDisposable)(this._linkCacheDisposables)),this.register((0,v.toDisposable)(()=>{var u;this._lastMouseEvent=void 0,(u=this._activeProviderReplies)==null||u.clear()})),this.register(this._bufferService.onResize(()=>{this._clearCurrentLink(),this._wasResized=!0})),this.register((0,n.addDisposableDomListener)(this._element,"mouseleave",()=>{this._isMouseOut=!0,this._clearCurrentLink()})),this.register((0,n.addDisposableDomListener)(this._element,"mousemove",this._handleMouseMove.bind(this))),this.register((0,n.addDisposableDomListener)(this._element,"mousedown",this._handleMouseDown.bind(this))),this.register((0,n.addDisposableDomListener)(this._element,"mouseup",this._handleMouseUp.bind(this)))}_handleMouseMove(s){this._lastMouseEvent=s;const e=this._positionFromMouseEvent(s,this._element,this._mouseService);if(!e)return;this._isMouseOut=!1;const t=s.composedPath();for(let a=0;a<t.length;a++){const f=t[a];if(f.classList.contains("xterm"))break;if(f.classList.contains("xterm-hover"))return}this._lastBufferCell&&e.x===this._lastBufferCell.x&&e.y===this._lastBufferCell.y||(this._handleHover(e),this._lastBufferCell=e)}_handleHover(s){if(this._activeLine!==s.y||this._wasResized)return this._clearCurrentLink(),this._askForLink(s,!1),void(this._wasResized=!1);this._currentLink&&this._linkAtPosition(this._currentLink.link,s)||(this._clearCurrentLink(),this._askForLink(s,!0))}_askForLink(s,e){var a,f;this._activeProviderReplies&&e||((a=this._activeProviderReplies)==null||a.forEach(u=>{u==null||u.forEach(p=>{p.link.dispose&&p.link.dispose()})}),this._activeProviderReplies=new Map,this._activeLine=s.y);let t=!1;for(const[u,p]of this._linkProviderService.linkProviders.entries())e?(f=this._activeProviderReplies)!=null&&f.get(u)&&(t=this._checkLinkProviderResult(u,s,t)):p.provideLinks(s.y,c=>{var y,k;if(this._isMouseOut)return;const m=c==null?void 0:c.map(L=>({link:L}));(y=this._activeProviderReplies)==null||y.set(u,m),t=this._checkLinkProviderResult(u,s,t),((k=this._activeProviderReplies)==null?void 0:k.size)===this._linkProviderService.linkProviders.length&&this._removeIntersectingLinks(s.y,this._activeProviderReplies)})}_removeIntersectingLinks(s,e){const t=new Set;for(let a=0;a<e.size;a++){const f=e.get(a);if(f)for(let u=0;u<f.length;u++){const p=f[u],c=p.link.range.start.y<s?0:p.link.range.start.x,m=p.link.range.end.y>s?this._bufferService.cols:p.link.range.end.x;for(let y=c;y<=m;y++){if(t.has(y)){f.splice(u--,1);break}t.add(y)}}}}_checkLinkProviderResult(s,e,t){var u;if(!this._activeProviderReplies)return t;const a=this._activeProviderReplies.get(s);let f=!1;for(let p=0;p<s;p++)this._activeProviderReplies.has(p)&&!this._activeProviderReplies.get(p)||(f=!0);if(!f&&a){const p=a.find(c=>this._linkAtPosition(c.link,e));p&&(t=!0,this._handleNewLink(p))}if(this._activeProviderReplies.size===this._linkProviderService.linkProviders.length&&!t)for(let p=0;p<this._activeProviderReplies.size;p++){const c=(u=this._activeProviderReplies.get(p))==null?void 0:u.find(m=>this._linkAtPosition(m.link,e));if(c){t=!0,this._handleNewLink(c);break}}return t}_handleMouseDown(){this._mouseDownLink=this._currentLink}_handleMouseUp(s){if(!this._currentLink)return;const e=this._positionFromMouseEvent(s,this._element,this._mouseService);e&&this._mouseDownLink===this._currentLink&&this._linkAtPosition(this._currentLink.link,e)&&this._currentLink.link.activate(s,this._currentLink.link.text)}_clearCurrentLink(s,e){this._currentLink&&this._lastMouseEvent&&(!s||!e||this._currentLink.link.range.start.y>=s&&this._currentLink.link.range.end.y<=e)&&(this._linkLeave(this._element,this._currentLink.link,this._lastMouseEvent),this._currentLink=void 0,(0,v.disposeArray)(this._linkCacheDisposables))}_handleNewLink(s){if(!this._lastMouseEvent)return;const e=this._positionFromMouseEvent(this._lastMouseEvent,this._element,this._mouseService);e&&this._linkAtPosition(s.link,e)&&(this._currentLink=s,this._currentLink.state={decorations:{underline:s.link.decorations===void 0||s.link.decorations.underline,pointerCursor:s.link.decorations===void 0||s.link.decorations.pointerCursor},isHovered:!0},this._linkHover(this._element,s.link,this._lastMouseEvent),s.link.decorations={},Object.defineProperties(s.link.decorations,{pointerCursor:{get:()=>{var t,a;return(a=(t=this._currentLink)==null?void 0:t.state)==null?void 0:a.decorations.pointerCursor},set:t=>{var a;(a=this._currentLink)!=null&&a.state&&this._currentLink.state.decorations.pointerCursor!==t&&(this._currentLink.state.decorations.pointerCursor=t,this._currentLink.state.isHovered&&this._element.classList.toggle("xterm-cursor-pointer",t))}},underline:{get:()=>{var t,a;return(a=(t=this._currentLink)==null?void 0:t.state)==null?void 0:a.decorations.underline},set:t=>{var a,f,u;(a=this._currentLink)!=null&&a.state&&((u=(f=this._currentLink)==null?void 0:f.state)==null?void 0:u.decorations.underline)!==t&&(this._currentLink.state.decorations.underline=t,this._currentLink.state.isHovered&&this._fireUnderlineEvent(s.link,t))}}}),this._linkCacheDisposables.push(this._renderService.onRenderedViewportChange(t=>{if(!this._currentLink)return;const a=t.start===0?0:t.start+1+this._bufferService.buffer.ydisp,f=this._bufferService.buffer.ydisp+1+t.end;if(this._currentLink.link.range.start.y>=a&&this._currentLink.link.range.end.y<=f&&(this._clearCurrentLink(a,f),this._lastMouseEvent)){const u=this._positionFromMouseEvent(this._lastMouseEvent,this._element,this._mouseService);u&&this._askForLink(u,!1)}})))}_linkHover(s,e,t){var a;(a=this._currentLink)!=null&&a.state&&(this._currentLink.state.isHovered=!0,this._currentLink.state.decorations.underline&&this._fireUnderlineEvent(e,!0),this._currentLink.state.decorations.pointerCursor&&s.classList.add("xterm-cursor-pointer")),e.hover&&e.hover(t,e.text)}_fireUnderlineEvent(s,e){const t=s.range,a=this._bufferService.buffer.ydisp,f=this._createLinkUnderlineEvent(t.start.x-1,t.start.y-a-1,t.end.x,t.end.y-a-1,void 0);(e?this._onShowLinkUnderline:this._onHideLinkUnderline).fire(f)}_linkLeave(s,e,t){var a;(a=this._currentLink)!=null&&a.state&&(this._currentLink.state.isHovered=!1,this._currentLink.state.decorations.underline&&this._fireUnderlineEvent(e,!1),this._currentLink.state.decorations.pointerCursor&&s.classList.remove("xterm-cursor-pointer")),e.leave&&e.leave(t,e.text)}_linkAtPosition(s,e){const t=s.range.start.y*this._bufferService.cols+s.range.start.x,a=s.range.end.y*this._bufferService.cols+s.range.end.x,f=e.y*this._bufferService.cols+e.x;return t<=f&&f<=a}_positionFromMouseEvent(s,e,t){const a=t.getCoords(s,e,this._bufferService.cols,this._bufferService.rows);if(a)return{x:a[0],y:a[1]+this._bufferService.buffer.ydisp}}_createLinkUnderlineEvent(s,e,t,a,f){return{x1:s,y1:e,x2:t,y2:a,cols:this._bufferService.cols,fg:f}}};r.Linkifier=i=l([_(1,h.IMouseService),_(2,h.IRenderService),_(3,g.IBufferService),_(4,h.ILinkProviderService)],i)},9042:(B,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.tooMuchOutput=r.promptLabel=void 0,r.promptLabel="Terminal input",r.tooMuchOutput="Too much output to announce, navigate to rows manually to read"},3730:function(B,r,o){var l=this&&this.__decorate||function(h,i,s,e){var t,a=arguments.length,f=a<3?i:e===null?e=Object.getOwnPropertyDescriptor(i,s):e;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")f=Reflect.decorate(h,i,s,e);else for(var u=h.length-1;u>=0;u--)(t=h[u])&&(f=(a<3?t(f):a>3?t(i,s,f):t(i,s))||f);return a>3&&f&&Object.defineProperty(i,s,f),f},_=this&&this.__param||function(h,i){return function(s,e){i(s,e,h)}};Object.defineProperty(r,"__esModule",{value:!0}),r.OscLinkProvider=void 0;const n=o(511),d=o(2585);let v=r.OscLinkProvider=class{constructor(h,i,s){this._bufferService=h,this._optionsService=i,this._oscLinkService=s}provideLinks(h,i){var m;const s=this._bufferService.buffer.lines.get(h-1);if(!s)return void i(void 0);const e=[],t=this._optionsService.rawOptions.linkHandler,a=new n.CellData,f=s.getTrimmedLength();let u=-1,p=-1,c=!1;for(let y=0;y<f;y++)if(p!==-1||s.hasContent(y)){if(s.loadCell(y,a),a.hasExtendedAttrs()&&a.extended.urlId){if(p===-1){p=y,u=a.extended.urlId;continue}c=a.extended.urlId!==u}else p!==-1&&(c=!0);if(c||p!==-1&&y===f-1){const k=(m=this._oscLinkService.getLinkData(u))==null?void 0:m.uri;if(k){const L={start:{x:p+1,y:h},end:{x:y+(c||y!==f-1?0:1),y:h}};let w=!1;if(!(t!=null&&t.allowNonHttpProtocols))try{const x=new URL(k);["http:","https:"].includes(x.protocol)||(w=!0)}catch{w=!0}w||e.push({text:k,range:L,activate:(x,T)=>t?t.activate(x,T,L):g(0,T),hover:(x,T)=>{var P;return(P=t==null?void 0:t.hover)==null?void 0:P.call(t,x,T,L)},leave:(x,T)=>{var P;return(P=t==null?void 0:t.leave)==null?void 0:P.call(t,x,T,L)}})}c=!1,a.hasExtendedAttrs()&&a.extended.urlId?(p=y,u=a.extended.urlId):(p=-1,u=-1)}}i(e)}};function g(h,i){if(confirm(`Do you want to navigate to ${i}?
4
4
 
@@ -1 +1 @@
1
- import{R,r as ln,d as S,e as q,C as z,n as d,h as fn}from"./timer-DFzT7np-.js";import{c as bn,a as pn}from"./linear-B7NmxxzO.js";import{i as yn}from"./init-DLRA0X12.js";import{bw as wn,bx as m,by as M,bz as N,bA as D,bB as E,bC as vn,bD as G,bE as P,bF as H,bG as gn,bH as J,bI as K,bJ as O,bK as Q,bL as T,bM as Y,bN as mn,bO as dn,bP as Mn,bQ as Nn,bR as Dn,bS as In,bT as kn}from"./index-DR6cIL1R.js";function xn(n,r){let i;if(r===void 0)for(const e of n)e!=null&&(i<e||i===void 0&&e>=e)&&(i=e);else{let e=-1;for(let a of n)(a=r(a,++e,n))!=null&&(i<a||i===void 0&&a>=a)&&(i=a)}return i}function Pn(n,r){let i;if(r===void 0)for(const e of n)e!=null&&(i>e||i===void 0&&e>=e)&&(i=e);else{let e=-1;for(let a of n)(a=r(a,++e,n))!=null&&(i>a||i===void 0&&a>=a)&&(i=a)}return i}function j(n,r,i,e,a,s){const o=[[m,1,M],[m,5,5*M],[m,15,15*M],[m,30,30*M],[s,1,N],[s,5,5*N],[s,15,15*N],[s,30,30*N],[a,1,D],[a,3,3*D],[a,6,6*D],[a,12,12*D],[e,1,E],[e,2,2*E],[i,1,vn],[r,1,G],[r,3,3*G],[n,1,P]];function b(l,u,c){const w=Math.abs(u-l)/c,h=wn(([,,x])=>x).right(o,w);if(h===o.length)return n.every(H(l/P,u/P,c));if(h===0)return gn.every(Math.max(H(l,u,c),1));const[v,k]=o[w/o[h-1][2]<o[h][2]/w?h-1:h];return v.every(k)}return[function(l,u,c){const w=u<l;w&&([l,u]=[u,l]);const h=c&&typeof c.range=="function"?c:b(l,u,c),v=h?h.range(l,+u+1):[];return w?v.reverse():v},b]}const[An,Bn]=j(In,Dn,Nn,Mn,dn,mn),[Cn,Fn]=j(Y,T,Q,O,K,J),U=Math.PI/180,V=180/Math.PI,W=.96422,X=.82521,Z=4/29,g=6/29,_=3*g*g,Ln=g*g*g;function $(n){if(n instanceof p)return new p(n.l,n.a,n.b,n.opacity);if(n instanceof y)return an(n);n instanceof R||(n=ln(n));var r,i,e=F(n.r),a=F(n.g),s=F(n.b),o=A((.2225045*e+.7168786*a+.0606169*s)/1);return e===a&&a===s?r=i=o:(r=A((.4360747*e+.3850649*a+.1430804*s)/W),i=A((.0139322*e+.0971045*a+.7141733*s)/X)),new p(116*o-16,500*(r-o),200*(o-i),n.opacity)}function nn(n,r,i,e){return arguments.length===1?$(n):new p(n,r,i,e??1)}function p(n,r,i,e){this.l=+n,this.a=+r,this.b=+i,this.opacity=+e}function A(n){return n>Ln?Math.pow(n,1/3):n/_+Z}function B(n){return n>g?n*n*n:_*(n-Z)}function C(n){return 255*(n<=.0031308?12.92*n:1.055*Math.pow(n,1/2.4)-.055)}function F(n){return(n/=255)<=.04045?n/12.92:Math.pow((n+.055)/1.055,2.4)}function I(n,r,i,e){return arguments.length===1?function(a){if(a instanceof y)return new y(a.h,a.c,a.l,a.opacity);if(a instanceof p||(a=$(a)),a.a===0&&a.b===0)return new y(NaN,0<a.l&&a.l<100?0:NaN,a.l,a.opacity);var s=Math.atan2(a.b,a.a)*V;return new y(s<0?s+360:s,Math.sqrt(a.a*a.a+a.b*a.b),a.l,a.opacity)}(n):new y(n,r,i,e??1)}function y(n,r,i,e){this.h=+n,this.c=+r,this.l=+i,this.opacity=+e}function an(n){if(isNaN(n.h))return new p(n.l,0,0,n.opacity);var r=n.h*U;return new p(n.l,Math.cos(r)*n.c,Math.sin(r)*n.c,n.opacity)}function rn(n){return function(r,i){var e=n((r=I(r)).h,(i=I(i)).h),a=d(r.c,i.c),s=d(r.l,i.l),o=d(r.opacity,i.opacity);return function(b){return r.h=e(b),r.c=a(b),r.l=s(b),r.opacity=o(b),r+""}}}S(p,nn,q(z,{brighter(n){return new p(this.l+18*(n??1),this.a,this.b,this.opacity)},darker(n){return new p(this.l-18*(n??1),this.a,this.b,this.opacity)},rgb(){var n=(this.l+16)/116,r=isNaN(this.a)?n:n+this.a/500,i=isNaN(this.b)?n:n-this.b/200;return r=W*B(r),n=1*B(n),i=X*B(i),new R(C(3.1338561*r-1.6168667*n-.4906146*i),C(-.9787684*r+1.9161415*n+.033454*i),C(.0719453*r-.2289914*n+1.4052427*i),this.opacity)}})),S(y,I,q(z,{brighter(n){return new y(this.h,this.c,this.l+18*(n??1),this.opacity)},darker(n){return new y(this.h,this.c,this.l-18*(n??1),this.opacity)},rgb(){return an(this).rgb()}}));const Rn=rn(fn);var Sn=rn(d);function en(n,r){var i,e=0,a=(n=n.slice()).length-1,s=n[e],o=n[a];return o<s&&(i=e,e=a,a=i,i=s,s=o,o=i),n[e]=r.floor(s),n[a]=r.ceil(o),n}function qn(n){return new Date(n)}function zn(n){return n instanceof Date?+n:+new Date(+n)}function L(n,r,i,e,a,s,o,b,l,u){var c=bn(),w=c.invert,h=c.domain,v=u(".%L"),k=u(":%S"),x=u("%I:%M"),tn=u("%I %p"),sn=u("%a %d"),on=u("%b %d"),un=u("%B"),cn=u("%Y");function hn(t){return(l(t)<t?v:b(t)<t?k:o(t)<t?x:s(t)<t?tn:e(t)<t?a(t)<t?sn:on:i(t)<t?un:cn)(t)}return c.invert=function(t){return new Date(w(t))},c.domain=function(t){return arguments.length?h(Array.from(t,zn)):h().map(qn)},c.ticks=function(t){var f=h();return n(f[0],f[f.length-1],t??10)},c.tickFormat=function(t,f){return f==null?hn:u(f)},c.nice=function(t){var f=h();return t&&typeof t.range=="function"||(t=r(f[0],f[f.length-1],t??10)),t?h(en(f,t)):c},c.copy=function(){return pn(c,L(n,r,i,e,a,s,o,b,l,u))},c}function En(){return yn.apply(L(Cn,Fn,Y,T,Q,O,K,J,m,kn).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}export{xn as a,An as b,L as c,V as d,I as e,Sn as h,Rn as i,nn as l,Pn as m,en as n,U as r,En as t,Bn as u};
1
+ import{R,r as ln,d as S,e as q,C as z,n as d,h as fn}from"./timer-DFzT7np-.js";import{c as bn,a as pn}from"./linear-Hpe_xbNg.js";import{i as yn}from"./init-DLRA0X12.js";import{bw as wn,bx as m,by as M,bz as N,bA as D,bB as E,bC as vn,bD as G,bE as P,bF as H,bG as gn,bH as J,bI as K,bJ as O,bK as Q,bL as T,bM as Y,bN as mn,bO as dn,bP as Mn,bQ as Nn,bR as Dn,bS as In,bT as kn}from"./index-QIUy3-fx.js";function xn(n,r){let i;if(r===void 0)for(const e of n)e!=null&&(i<e||i===void 0&&e>=e)&&(i=e);else{let e=-1;for(let a of n)(a=r(a,++e,n))!=null&&(i<a||i===void 0&&a>=a)&&(i=a)}return i}function Pn(n,r){let i;if(r===void 0)for(const e of n)e!=null&&(i>e||i===void 0&&e>=e)&&(i=e);else{let e=-1;for(let a of n)(a=r(a,++e,n))!=null&&(i>a||i===void 0&&a>=a)&&(i=a)}return i}function j(n,r,i,e,a,s){const o=[[m,1,M],[m,5,5*M],[m,15,15*M],[m,30,30*M],[s,1,N],[s,5,5*N],[s,15,15*N],[s,30,30*N],[a,1,D],[a,3,3*D],[a,6,6*D],[a,12,12*D],[e,1,E],[e,2,2*E],[i,1,vn],[r,1,G],[r,3,3*G],[n,1,P]];function b(l,u,c){const w=Math.abs(u-l)/c,h=wn(([,,x])=>x).right(o,w);if(h===o.length)return n.every(H(l/P,u/P,c));if(h===0)return gn.every(Math.max(H(l,u,c),1));const[v,k]=o[w/o[h-1][2]<o[h][2]/w?h-1:h];return v.every(k)}return[function(l,u,c){const w=u<l;w&&([l,u]=[u,l]);const h=c&&typeof c.range=="function"?c:b(l,u,c),v=h?h.range(l,+u+1):[];return w?v.reverse():v},b]}const[An,Bn]=j(In,Dn,Nn,Mn,dn,mn),[Cn,Fn]=j(Y,T,Q,O,K,J),U=Math.PI/180,V=180/Math.PI,W=.96422,X=.82521,Z=4/29,g=6/29,_=3*g*g,Ln=g*g*g;function $(n){if(n instanceof p)return new p(n.l,n.a,n.b,n.opacity);if(n instanceof y)return an(n);n instanceof R||(n=ln(n));var r,i,e=F(n.r),a=F(n.g),s=F(n.b),o=A((.2225045*e+.7168786*a+.0606169*s)/1);return e===a&&a===s?r=i=o:(r=A((.4360747*e+.3850649*a+.1430804*s)/W),i=A((.0139322*e+.0971045*a+.7141733*s)/X)),new p(116*o-16,500*(r-o),200*(o-i),n.opacity)}function nn(n,r,i,e){return arguments.length===1?$(n):new p(n,r,i,e??1)}function p(n,r,i,e){this.l=+n,this.a=+r,this.b=+i,this.opacity=+e}function A(n){return n>Ln?Math.pow(n,1/3):n/_+Z}function B(n){return n>g?n*n*n:_*(n-Z)}function C(n){return 255*(n<=.0031308?12.92*n:1.055*Math.pow(n,1/2.4)-.055)}function F(n){return(n/=255)<=.04045?n/12.92:Math.pow((n+.055)/1.055,2.4)}function I(n,r,i,e){return arguments.length===1?function(a){if(a instanceof y)return new y(a.h,a.c,a.l,a.opacity);if(a instanceof p||(a=$(a)),a.a===0&&a.b===0)return new y(NaN,0<a.l&&a.l<100?0:NaN,a.l,a.opacity);var s=Math.atan2(a.b,a.a)*V;return new y(s<0?s+360:s,Math.sqrt(a.a*a.a+a.b*a.b),a.l,a.opacity)}(n):new y(n,r,i,e??1)}function y(n,r,i,e){this.h=+n,this.c=+r,this.l=+i,this.opacity=+e}function an(n){if(isNaN(n.h))return new p(n.l,0,0,n.opacity);var r=n.h*U;return new p(n.l,Math.cos(r)*n.c,Math.sin(r)*n.c,n.opacity)}function rn(n){return function(r,i){var e=n((r=I(r)).h,(i=I(i)).h),a=d(r.c,i.c),s=d(r.l,i.l),o=d(r.opacity,i.opacity);return function(b){return r.h=e(b),r.c=a(b),r.l=s(b),r.opacity=o(b),r+""}}}S(p,nn,q(z,{brighter(n){return new p(this.l+18*(n??1),this.a,this.b,this.opacity)},darker(n){return new p(this.l-18*(n??1),this.a,this.b,this.opacity)},rgb(){var n=(this.l+16)/116,r=isNaN(this.a)?n:n+this.a/500,i=isNaN(this.b)?n:n-this.b/200;return r=W*B(r),n=1*B(n),i=X*B(i),new R(C(3.1338561*r-1.6168667*n-.4906146*i),C(-.9787684*r+1.9161415*n+.033454*i),C(.0719453*r-.2289914*n+1.4052427*i),this.opacity)}})),S(y,I,q(z,{brighter(n){return new y(this.h,this.c,this.l+18*(n??1),this.opacity)},darker(n){return new y(this.h,this.c,this.l-18*(n??1),this.opacity)},rgb(){return an(this).rgb()}}));const Rn=rn(fn);var Sn=rn(d);function en(n,r){var i,e=0,a=(n=n.slice()).length-1,s=n[e],o=n[a];return o<s&&(i=e,e=a,a=i,i=s,s=o,o=i),n[e]=r.floor(s),n[a]=r.ceil(o),n}function qn(n){return new Date(n)}function zn(n){return n instanceof Date?+n:+new Date(+n)}function L(n,r,i,e,a,s,o,b,l,u){var c=bn(),w=c.invert,h=c.domain,v=u(".%L"),k=u(":%S"),x=u("%I:%M"),tn=u("%I %p"),sn=u("%a %d"),on=u("%b %d"),un=u("%B"),cn=u("%Y");function hn(t){return(l(t)<t?v:b(t)<t?k:o(t)<t?x:s(t)<t?tn:e(t)<t?a(t)<t?sn:on:i(t)<t?un:cn)(t)}return c.invert=function(t){return new Date(w(t))},c.domain=function(t){return arguments.length?h(Array.from(t,zn)):h().map(qn)},c.ticks=function(t){var f=h();return n(f[0],f[f.length-1],t??10)},c.tickFormat=function(t,f){return f==null?hn:u(f)},c.nice=function(t){var f=h();return t&&typeof t.range=="function"||(t=r(f[0],f[f.length-1],t??10)),t?h(en(f,t)):c},c.copy=function(){return pn(c,L(n,r,i,e,a,s,o,b,l,u))},c}function En(){return yn.apply(L(Cn,Fn,Y,T,Q,O,K,J,m,kn).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}export{xn as a,An as b,L as c,V as d,I as e,Sn as h,Rn as i,nn as l,Pn as m,en as n,U as r,En as t,Bn as u};
@@ -1,4 +1,4 @@
1
- import{_ as r,c as yt,l as $,S as gt,T as ft,V as mt,W as xt,B as bt,X as _t,y as kt}from"./mermaid-DIApez7m.js";import{s as V}from"./transform-Cyp0GDF-.js";import{d as K}from"./arc-Cuwikxov.js";import"./index-DR6cIL1R.js";import"./step-BwsUM5iJ.js";import"./timer-DFzT7np-.js";var G=function(){var n=r(function(s,h,l,p){for(l=l||{},p=s.length;p--;l[s[p]]=h);return l},"o"),t=[6,8,10,11,12,14,16,17,20,21],e=[1,9],o=[1,10],i=[1,11],a=[1,12],u=[1,13],f=[1,16],d=[1,17],g={trace:r(function(){},"trace"),yy:{},symbols_:{error:2,start:3,timeline:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,title:11,acc_title:12,acc_title_value:13,acc_descr:14,acc_descr_value:15,acc_descr_multiline_value:16,section:17,period_statement:18,event_statement:19,period:20,event:21,$accept:0,$end:1},terminals_:{2:"error",4:"timeline",6:"EOF",8:"SPACE",10:"NEWLINE",11:"title",12:"acc_title",13:"acc_title_value",14:"acc_descr",15:"acc_descr_value",16:"acc_descr_multiline_value",17:"section",20:"period",21:"event"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,1],[9,1],[18,1],[19,1]],performAction:r(function(s,h,l,p,y,c,k){var x=c.length-1;switch(y){case 1:return c[x-1];case 2:case 6:case 7:this.$=[];break;case 3:c[x-1].push(c[x]),this.$=c[x-1];break;case 4:case 5:this.$=c[x];break;case 8:p.getCommonDb().setDiagramTitle(c[x].substr(6)),this.$=c[x].substr(6);break;case 9:this.$=c[x].trim(),p.getCommonDb().setAccTitle(this.$);break;case 10:case 11:this.$=c[x].trim(),p.getCommonDb().setAccDescription(this.$);break;case 12:p.addSection(c[x].substr(8)),this.$=c[x].substr(8);break;case 15:p.addTask(c[x],0,""),this.$=c[x];break;case 16:p.addEvent(c[x].substr(2)),this.$=c[x]}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},n(t,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:e,12:o,14:i,16:a,17:u,18:14,19:15,20:f,21:d},n(t,[2,7],{1:[2,1]}),n(t,[2,3]),{9:18,11:e,12:o,14:i,16:a,17:u,18:14,19:15,20:f,21:d},n(t,[2,5]),n(t,[2,6]),n(t,[2,8]),{13:[1,19]},{15:[1,20]},n(t,[2,11]),n(t,[2,12]),n(t,[2,13]),n(t,[2,14]),n(t,[2,15]),n(t,[2,16]),n(t,[2,4]),n(t,[2,9]),n(t,[2,10])],defaultActions:{},parseError:r(function(s,h){if(!h.recoverable){var l=new Error(s);throw l.hash=h,l}this.trace(s)},"parseError"),parse:r(function(s){var h=this,l=[0],p=[],y=[null],c=[],k=this.table,x="",N=0,P=0,D=c.slice.call(arguments,1),b=Object.create(this.lexer),I={yy:{}};for(var M in this.yy)Object.prototype.hasOwnProperty.call(this.yy,M)&&(I.yy[M]=this.yy[M]);b.setInput(s,I.yy),I.yy.lexer=b,I.yy.parser=this,b.yylloc===void 0&&(b.yylloc={});var v=b.yylloc;c.push(v);var A=b.options&&b.options.ranges;function L(){var T;return typeof(T=p.pop()||b.lex()||1)!="number"&&(T instanceof Array&&(T=(p=T).pop()),T=h.symbols_[T]||T),T}typeof I.yy.parseError=="function"?this.parseError=I.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError,r(function(T){l.length=l.length-2*T,y.length=y.length-T,c.length=c.length-T},"popStack"),r(L,"lex");for(var w,E,S,Y,z,C,Z,B,O={};;){if(E=l[l.length-1],this.defaultActions[E]?S=this.defaultActions[E]:(w==null&&(w=L()),S=k[E]&&k[E][w]),S===void 0||!S.length||!S[0]){var J="";for(z in B=[],k[E])this.terminals_[z]&&z>2&&B.push("'"+this.terminals_[z]+"'");J=b.showPosition?"Parse error on line "+(N+1)+`:
1
+ import{_ as r,c as yt,l as $,S as gt,T as ft,V as mt,W as xt,B as bt,X as _t,y as kt}from"./mermaid-BTnYu19d.js";import{s as V}from"./transform-Cyp0GDF-.js";import{d as K}from"./arc-Cuwikxov.js";import"./index-QIUy3-fx.js";import"./step-BwsUM5iJ.js";import"./timer-DFzT7np-.js";var G=function(){var n=r(function(s,h,l,p){for(l=l||{},p=s.length;p--;l[s[p]]=h);return l},"o"),t=[6,8,10,11,12,14,16,17,20,21],e=[1,9],o=[1,10],i=[1,11],a=[1,12],u=[1,13],f=[1,16],d=[1,17],g={trace:r(function(){},"trace"),yy:{},symbols_:{error:2,start:3,timeline:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,title:11,acc_title:12,acc_title_value:13,acc_descr:14,acc_descr_value:15,acc_descr_multiline_value:16,section:17,period_statement:18,event_statement:19,period:20,event:21,$accept:0,$end:1},terminals_:{2:"error",4:"timeline",6:"EOF",8:"SPACE",10:"NEWLINE",11:"title",12:"acc_title",13:"acc_title_value",14:"acc_descr",15:"acc_descr_value",16:"acc_descr_multiline_value",17:"section",20:"period",21:"event"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,1],[9,1],[18,1],[19,1]],performAction:r(function(s,h,l,p,y,c,k){var x=c.length-1;switch(y){case 1:return c[x-1];case 2:case 6:case 7:this.$=[];break;case 3:c[x-1].push(c[x]),this.$=c[x-1];break;case 4:case 5:this.$=c[x];break;case 8:p.getCommonDb().setDiagramTitle(c[x].substr(6)),this.$=c[x].substr(6);break;case 9:this.$=c[x].trim(),p.getCommonDb().setAccTitle(this.$);break;case 10:case 11:this.$=c[x].trim(),p.getCommonDb().setAccDescription(this.$);break;case 12:p.addSection(c[x].substr(8)),this.$=c[x].substr(8);break;case 15:p.addTask(c[x],0,""),this.$=c[x];break;case 16:p.addEvent(c[x].substr(2)),this.$=c[x]}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},n(t,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:e,12:o,14:i,16:a,17:u,18:14,19:15,20:f,21:d},n(t,[2,7],{1:[2,1]}),n(t,[2,3]),{9:18,11:e,12:o,14:i,16:a,17:u,18:14,19:15,20:f,21:d},n(t,[2,5]),n(t,[2,6]),n(t,[2,8]),{13:[1,19]},{15:[1,20]},n(t,[2,11]),n(t,[2,12]),n(t,[2,13]),n(t,[2,14]),n(t,[2,15]),n(t,[2,16]),n(t,[2,4]),n(t,[2,9]),n(t,[2,10])],defaultActions:{},parseError:r(function(s,h){if(!h.recoverable){var l=new Error(s);throw l.hash=h,l}this.trace(s)},"parseError"),parse:r(function(s){var h=this,l=[0],p=[],y=[null],c=[],k=this.table,x="",N=0,P=0,D=c.slice.call(arguments,1),b=Object.create(this.lexer),I={yy:{}};for(var M in this.yy)Object.prototype.hasOwnProperty.call(this.yy,M)&&(I.yy[M]=this.yy[M]);b.setInput(s,I.yy),I.yy.lexer=b,I.yy.parser=this,b.yylloc===void 0&&(b.yylloc={});var v=b.yylloc;c.push(v);var A=b.options&&b.options.ranges;function L(){var T;return typeof(T=p.pop()||b.lex()||1)!="number"&&(T instanceof Array&&(T=(p=T).pop()),T=h.symbols_[T]||T),T}typeof I.yy.parseError=="function"?this.parseError=I.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError,r(function(T){l.length=l.length-2*T,y.length=y.length-T,c.length=c.length-T},"popStack"),r(L,"lex");for(var w,E,S,Y,z,C,Z,B,O={};;){if(E=l[l.length-1],this.defaultActions[E]?S=this.defaultActions[E]:(w==null&&(w=L()),S=k[E]&&k[E][w]),S===void 0||!S.length||!S[0]){var J="";for(z in B=[],k[E])this.terminals_[z]&&z>2&&B.push("'"+this.terminals_[z]+"'");J=b.showPosition?"Parse error on line "+(N+1)+`:
2
2
  `+b.showPosition()+`
3
3
  Expecting `+B.join(", ")+", got '"+(this.terminals_[w]||w)+"'":"Parse error on line "+(N+1)+": Unexpected "+(w==1?"end of input":"'"+(this.terminals_[w]||w)+"'"),this.parseError(J,{text:b.match,token:this.terminals_[w]||w,line:b.yylineno,loc:v,expected:B})}if(S[0]instanceof Array&&S.length>1)throw new Error("Parse Error: multiple actions possible at state: "+E+", token: "+w);switch(S[0]){case 1:l.push(w),y.push(b.yytext),c.push(b.yylloc),l.push(S[1]),w=null,P=b.yyleng,x=b.yytext,N=b.yylineno,v=b.yylloc;break;case 2:if(C=this.productions_[S[1]][1],O.$=y[y.length-C],O._$={first_line:c[c.length-(C||1)].first_line,last_line:c[c.length-1].last_line,first_column:c[c.length-(C||1)].first_column,last_column:c[c.length-1].last_column},A&&(O._$.range=[c[c.length-(C||1)].range[0],c[c.length-1].range[1]]),(Y=this.performAction.apply(O,[x,P,N,I.yy,S[1],y,c].concat(D)))!==void 0)return Y;C&&(l=l.slice(0,-1*C*2),y=y.slice(0,-1*C),c=c.slice(0,-1*C)),l.push(this.productions_[S[1]][0]),y.push(O.$),c.push(O._$),Z=k[l[l.length-2]][l[l.length-1]],l.push(Z);break;case 3:return!0}}return!0},"parse")},_=function(){return{EOF:1,parseError:r(function(s,h){if(!this.yy.parser)throw new Error(s);this.yy.parser.parseError(s,h)},"parseError"),setInput:r(function(s,h){return this.yy=h||this.yy||{},this._input=s,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:r(function(){var s=this._input[0];return this.yytext+=s,this.yyleng++,this.offset++,this.match+=s,this.matched+=s,s.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),s},"input"),unput:r(function(s){var h=s.length,l=s.split(/(?:\r\n?|\n)/g);this._input=s+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-h),this.offset-=h;var p=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),l.length-1&&(this.yylineno-=l.length-1);var y=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:l?(l.length===p.length?this.yylloc.first_column:0)+p[p.length-l.length].length-l[0].length:this.yylloc.first_column-h},this.options.ranges&&(this.yylloc.range=[y[0],y[0]+this.yyleng-h]),this.yyleng=this.yytext.length,this},"unput"),more:r(function(){return this._more=!0,this},"more"),reject:r(function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
4
4
  `+this.showPosition(),{text:"",token:null,line:this.yylineno})},"reject"),less:r(function(s){this.unput(this.match.slice(s))},"less"),pastInput:r(function(){var s=this.matched.substr(0,this.matched.length-this.match.length);return(s.length>20?"...":"")+s.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:r(function(){var s=this.match;return s.length<20&&(s+=this._input.substr(0,20-s.length)),(s.substr(0,20)+(s.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:r(function(){var s=this.pastInput(),h=new Array(s.length+1).join("-");return s+this.upcomingInput()+`
@@ -1,2 +1,2 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./index-BdVyC9XF.js","./VegaLite-DzXA3xH5.js","./index-DR6cIL1R.js","./index-N-a4M2pk.css","./compile-BD_tg_Y5.js","./time-Ceaid8AO.js","./timer-DFzT7np-.js","./linear-B7NmxxzO.js","./init-DLRA0X12.js","./range-CtcPcB_L.js","./zoom-COrs4lFh.js","./ordinal-DDUp3AbE.js","./colors-bszWmPJw.js","./arc-Cuwikxov.js","./step-BwsUM5iJ.js","./index-CFbhQR84.js"])))=>i.map(i=>d[i]);
2
- import{u as Y,d as N,Z as O,_ as Z,U as G,Q as M,j as s,R as J,$ as K,a0 as W,a1 as V,a2 as X,V as ee,a3 as te,a4 as q,a5 as re,a6 as se,a7 as ie,__tla as oe}from"./index-DR6cIL1R.js";import{P as ae,C as le,f as A,E as ne,a as me,u as pe,__tla as ce}from"./edit-page-Bp83q4wD.js";import{c as de}from"./compile-BD_tg_Y5.js";import{r as ue,u as he,__tla as xe}from"./panels-BjhiOh8X.js";import{A as ge}from"./tree-DV3OlEev.js";import{C as fe}from"./circle-play-BFetl357.js";import"./_createAggregator-BCJ3ogMs.js";import"./_baseEach-BpgepsbW.js";import"./transform-Cyp0GDF-.js";import"./timer-DFzT7np-.js";import"./zoom-COrs4lFh.js";import"./sortBy-kSKKZrf-.js";import"./_baseMap-Co-m7jva.js";import"./time-Ceaid8AO.js";import"./linear-B7NmxxzO.js";import"./init-DLRA0X12.js";import"./range-CtcPcB_L.js";import"./ordinal-DDUp3AbE.js";import"./colors-bszWmPJw.js";import"./arc-Cuwikxov.js";import"./step-BwsUM5iJ.js";import"./index-B76YOnPS.js";import"./index-C7mg9ReD.js";import"./index-DMEInz7C.js";import"./index-7CGc_Zrg.js";import"./index-BTyBIYFo.js";import"./index-PUF97-Lr.js";import"./index-Ca4gNeLN.js";import"./index-C8XoZZzm.js";import"./index-DHdWS5QZ.js";import"./index-CDjhJIDr.js";import"./index-C3HM5Agv.js";import"./index-Sp0e4kH6.js";import"./index-BvcXOikb.js";import"./apl-CXdQSnD-.js";import"./asciiarmor-D5V0T9Cu.js";import"./asterisk-B46aRdXb.js";import"./brainfuck-CtZaYBKt.js";import"./clike-BgBwzOhw.js";import"./cmake-DXn5xaP-.js";import"./cobol-stawOqaz.js";import"./coffeescript-BTDxI-eT.js";import"./commonlisp-vq6DHwts.js";import"./crystal-CRzZ78HM.js";import"./cypher-gJDei3ni.js";import"./d-BShv7fp-.js";import"./diff-UJJ5BM9S.js";import"./dockerfile-knGOOxt4.js";import"./simple-mode-C3vEBAcb.js";import"./dtd-DI9Herc-.js";import"./dylan-CHJ5qNM_.js";import"./ebnf-B-Df8AvO.js";import"./ecl-DPFc0Uaf.js";import"./eiffel-DR5c0IrL.js";import"./elm-D7xaZ7Da.js";import"./erlang-BuqgqA5h.js";import"./factor-CFXhaUWb.js";import"./fcl-CVaBTCzQ.js";import"./forth-Dri_5nFc.js";import"./fortran-DL7KluxX.js";import"./gas-5kEe4nk0.js";import"./gherkin-B6X1vGSW.js";import"./groovy-DnIzCrpZ.js";import"./haskell-CmdsSjFB.js";import"./haxe-D25e-2l-.js";import"./http-BKJkqRj4.js";import"./idl-pcmmZuaN.js";import"./jinja2-DhgKlfW7.js";import"./julia-DjdwvFuI.js";import"./livescript-HO6ttBFx.js";import"./lua-8DXOpKDz.js";import"./mathematica-IIbmv7SK.js";import"./mbox-z_N2Mo3d.js";import"./mirc-DkvFAiy5.js";import"./modelica-DSrSSXCg.js";import"./mscgen-B2igx18G.js";import"./mumps-zvxmGV4l.js";import"./nginx-B4hAVlXN.js";import"./nsis-BvKfQ9lQ.js";import"./ntriples-FFvkTduk.js";import"./octave-C4hdQ5Hf.js";import"./oz-qQq7irPq.js";import"./pascal-CafrKXZF.js";import"./perl-tdMlh9QA.js";import"./pig-CwGJVRC4.js";import"./powershell-D1ly3AHC.js";import"./properties-_nPj978X.js";import"./protobuf-B4y9do6W.js";import"./puppet-Bc-yJKzi.js";import"./q-B0kTJ4cI.js";import"./r-BA4EbLKE.js";import"./ruby-CR-u2WLS.js";import"./sas-Bqaci40L.js";import"./scheme-qjP0V5Ag.js";import"./shell-BLav31RL.js";import"./sieve-r025o_jW.js";import"./smalltalk-C7J3IyEP.js";import"./solr-78MBEUkU.js";import"./sparql-BRLJFz69.js";import"./spreadsheet-CGlWr0eM.js";import"./stylus-OdhglgkO.js";import"./swift-B_XXVlXX.js";import"./tcl-B2fODqDH.js";import"./textile-BuVhTOzU.js";import"./tiddlywiki-BgR6AEZu.js";import"./tiki-CI-ztowC.js";import"./toml-BQXy8elZ.js";import"./troff-Ce85hlLp.js";import"./ttcn-BxnYHtq8.js";import"./turtle-BkSuIpt-.js";import"./vb-BHgjm0DN.js";import"./vbscript-Dawdd5GZ.js";import"./velocity-BdD_26Jv.js";import"./verilog-B4LBqg_1.js";import"./vhdl-CWWH2SUo.js";import"./webidl-CGwyPRYs.js";import"./xquery-CVDBqZPY.js";import"./yacas-I8QjZlxf.js";import"./z80-D8p3gKXp.js";import"./index-CFbhQR84.js";let U,k,ve=Promise.all([(()=>{try{return oe}catch{}})(),(()=>{try{return ce}catch{}})(),(()=>{try{return xe}catch{}})()]).then(async()=>{const Q=Y("circle-ellipsis",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M17 12h.01",key:"1m0b6t"}],["path",{d:"M12 12h.01",key:"1mp3jc"}],["path",{d:"M7 12h.01",key:"eqddd0"}]]),$="hoveredCellId",C="cellHover",R="startTimestamp",P="endTimestamp";let w,L,E,z,B,H,D,F;w=Z(new Map),U=()=>{const t=N.c(28),{runIds:e,runMap:r}=O(ue),l=O(w),{clearRuns:o}=he(),{theme:a}=G(),[i,u]=M.useState("above");let m;t[0]!==i?(m=()=>{u(i==="above"?"sideBySide":"above")},t[0]=i,t[1]=m):m=t[1];const x=m;if(e.length===0){let h;return t[2]===Symbol.for("react.memo_cache_sentinel")?(h=s.jsx(ae,{title:"No traces",description:s.jsx("span",{children:"Cells that have ran will appear here."}),icon:s.jsx(ge,{})}),t[2]=h):h=t[2],h}let d;t[3]===Symbol.for("react.memo_cache_sentinel")?(d=s.jsx("label",{htmlFor:"chartPosition",className:"text-xs",children:"Inline chart"}),t[3]=d):d=t[3];const p=i==="sideBySide";let g,c,y,f,v,I;if(t[4]!==p||t[5]!==x?(g=s.jsxs("div",{className:"flex flex-row gap-1 items-center",children:[d,s.jsx("input",{type:"checkbox",name:"chartPosition",id:"chartPosition",onClick:x,defaultChecked:p,className:"h-3 cursor-pointer"})]}),t[4]=p,t[5]=x,t[6]=g):g=t[6],t[7]!==o?(c=s.jsx(le,{dataTestId:"clear-traces-button",onClick:o}),t[7]=o,t[8]=c):c=t[8],t[9]!==g||t[10]!==c?(y=s.jsxs("div",{className:"flex flex-row justify-end gap-3",children:[g,c]}),t[9]=g,t[10]=c,t[11]=y):y=t[11],t[12]!==i||t[13]!==l||t[14]!==e||t[15]!==r||t[16]!==a){let h;t[18]!==i||t[19]!==l||t[20]!==r||t[21]!==a?(h=(S,n)=>{const j=r.get(S);if(j)return s.jsx(z,{run:j,isExpanded:l.get(j.runId),isMostRecentRun:n===0,chartPosition:i,theme:a},j.runId)},t[18]=i,t[19]=l,t[20]=r,t[21]=a,t[22]=h):h=t[22],f=e.map(h),t[12]=i,t[13]=l,t[14]=e,t[15]=r,t[16]=a,t[17]=f}else f=t[17];return t[23]!==f?(v=s.jsx("div",{className:"flex flex-col gap-3",children:f}),t[23]=f,t[24]=v):v=t[24],t[25]!==y||t[26]!==v?(I=s.jsxs("div",{className:"py-1 px-2 overflow-y-scroll",children:[y,v]}),t[25]=y,t[26]=v,t[27]=I):I=t[27],I},L=J.lazy(()=>K(()=>import("./index-BdVyC9XF.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15]),import.meta.url).then(t=>({default:t.Vega}))),E=t=>{const e=N.c(10),{ref:r,width:l}=pe(),o=l===void 0?300:l,a=t.theme==="dark"?"dark":void 0,i=o-50;let u,m;return e[0]!==t.height||e[1]!==t.signalListeners||e[2]!==t.vegaSpec||e[3]!==a||e[4]!==i?(u=s.jsx(L,{spec:t.vegaSpec,theme:a,width:i,height:t.height,signalListeners:t.signalListeners,actions:!1}),e[0]=t.height,e[1]=t.signalListeners,e[2]=t.vegaSpec,e[3]=a,e[4]=i,e[5]=u):u=e[5],e[6]!==t.className||e[7]!==r||e[8]!==u?(m=s.jsx("div",{className:t.className,ref:r,children:u}),e[6]=t.className,e[7]=r,e[8]=u,e[9]=m):m=e[9],m},z=({run:t,isMostRecentRun:e,chartPosition:r,isExpanded:l,theme:o})=>{const a=W(w),i=(l=l??e)?re:se,u=s.jsx(i,{height:16,className:"inline"}),m=s.jsxs("span",{className:"text-sm cursor-pointer",onClick:()=>{a(x=>{const d=new Map(x);return d.set(t.runId,!l),d})},children:["Run - ",V(t.runStartTime),u]});return l?s.jsx(B,{run:t,chartPosition:r,theme:o,title:m},t.runId):s.jsx("div",{className:"flex flex-col",children:s.jsx("pre",{className:"font-mono font-semibold",children:m})},t.runId)},B=t=>{const e=N.c(32),{run:r,chartPosition:l,theme:o,title:a}=t,[i,u]=M.useState();let m;e[0]===Symbol.for("react.memo_cache_sentinel")?(m={[C]:(S,n)=>{var b;const j=n,_=(b=j.cell)==null?void 0:b[0];u(_??null)}},e[0]=m):m=e[0];const x=m,d=X();let p,g;if(e[1]!==d||e[2]!==l||e[3]!==r.cellRuns||e[4]!==r.runId||e[5]!==o){const S=[...r.cellRuns.values()].map(n=>{const j=n.elapsedTime??0;return{cell:n.cellId,cellNum:d.inOrderIds.indexOf(n.cellId),startTimestamp:k(n.startTime),endTimestamp:k(n.startTime+j),elapsedTime:A(1e3*j),status:n.status}});p=`hiddenInputElement-${r.runId}`,g=de(function(n,j,_,b){return{$schema:"https://vega.github.io/schema/vega-lite/v5.json",background:b==="dark"?"black":void 0,mark:{type:"bar",cornerRadius:2},params:[{name:$,bind:{element:`#${j}`}},{name:C,select:{type:"point",on:"mouseover",fields:["cell"],clear:"mouseout"}}],height:{step:_==="above"?21:26},encoding:{y:{field:"cellNum",scale:{paddingInner:.2},sort:{field:R},title:"cell",axis:_==="sideBySide"?null:void 0},x:{field:R,type:"temporal",axis:{orient:"top",title:null}},x2:{field:P,type:"temporal"},tooltip:[{field:R,type:"temporal",timeUnit:"hoursminutessecondsmilliseconds",title:"Start"},{field:P,type:"temporal",timeUnit:"hoursminutessecondsmilliseconds",title:"End"}],size:{value:{expr:`${$} == toString(datum.cell) ? 19.5 : 18`}},color:{field:"status",scale:{domain:["success","error"],range:["#37BE5F","red"]},legend:null}},data:{values:n},config:{view:{stroke:"transparent"}}}}(S,p,l,o)),e[1]=d,e[2]=l,e[3]=r.cellRuns,e[4]=r.runId,e[5]=o,e[6]=p,e[7]=g}else p=e[6],g=e[7];const c=g.spec;let y;e[8]!==p||e[9]!==i||e[10]!==r?(y=s.jsx(H,{run:r,hoveredCellId:i,hiddenInputElementId:p}),e[8]=p,e[9]=i,e[10]=r,e[11]=y):y=e[11];const f=y;if(l==="above"){let S,n,j;return e[12]!==o||e[13]!==c?(S=s.jsx(E,{vegaSpec:c,height:120,signalListeners:x,theme:o}),e[12]=o,e[13]=c,e[14]=S):S=e[14],e[15]!==S||e[16]!==a||e[17]!==f?(n=s.jsxs("pre",{className:"font-mono font-semibold",children:[a,S,f]}),e[15]=S,e[16]=a,e[17]=f,e[18]=n):n=e[18],e[19]!==r.runId||e[20]!==n?(j=s.jsx("div",{className:"flex flex-col",children:n},r.runId),e[19]=r.runId,e[20]=n,e[21]=j):j=e[21],j}let v,I,h;return e[22]!==a||e[23]!==f?(v=s.jsxs("pre",{className:"font-mono font-semibold",children:[a,f]}),e[22]=a,e[23]=f,e[24]=v):v=e[24],e[25]!==o||e[26]!==c?(I=s.jsx(E,{className:"-mt-0.5 flex-1",vegaSpec:c,height:100,signalListeners:x,theme:o}),e[25]=o,e[26]=c,e[27]=I):I=e[27],e[28]!==r.runId||e[29]!==v||e[30]!==I?(h=s.jsxs("div",{className:"flex flex-row",children:[v,I]},r.runId),e[28]=r.runId,e[29]=v,e[30]=I,e[31]=h):h=e[31],h},H=t=>{const e=N.c(12),{run:r,hoveredCellId:l,hiddenInputElementId:o}=t,a=M.useRef(null);let i;e[0]===Symbol.for("react.memo_cache_sentinel")?(i=c=>{a.current&&(a.current.value=String(c),a.current.dispatchEvent(new Event("input",{bubbles:!0})))},e[0]=i):i=e[0];const u=i,m=l||"";let x,d,p,g;return e[1]!==o||e[2]!==m?(x=s.jsx("input",{type:"text",id:o,defaultValue:m,hidden:!0,ref:a}),e[1]=o,e[2]=m,e[3]=x):x=e[3],e[4]!==r.cellRuns?(d=[...r.cellRuns.values()],e[4]=r.cellRuns,e[5]=d):d=e[5],e[6]!==l||e[7]!==d?(p=d.map(c=>s.jsx(F,{cellRun:c,hovered:c.cellId===l,dispatchHoverEvent:u},c.cellId)),e[6]=l,e[7]=d,e[8]=p):p=e[8],e[9]!==x||e[10]!==p?(g=s.jsxs("div",{className:"text-xs mt-0.5 ml-3 flex flex-col gap-0.5",children:[x,p]}),e[9]=x,e[10]=p,e[11]=g):g=e[11],g},D={success:s.jsx(me,{color:"green",size:14}),running:s.jsx(fe,{color:"var(--blue-10)",size:14}),error:s.jsx(ie,{color:"red",size:14}),queued:s.jsx(Q,{color:"grey",size:14})},F=t=>{const e=N.c(39),{cellRun:r,hovered:l,dispatchHoverEvent:o}=t;let a;e[0]!==r.elapsedTime?(a=r.elapsedTime?A(1e3*r.elapsedTime):"-",e[0]=r.elapsedTime,e[1]=a):a=e[1];const i=a;let u;e[2]!==r.elapsedTime||e[3]!==i?(u=r.elapsedTime?s.jsxs("span",{children:["This cell took ",s.jsx(ne,{elapsedTime:i})," to run"]}):s.jsx("span",{children:"This cell has not been run"}),e[2]=r.elapsedTime,e[3]=i,e[4]=u):u=e[4];const m=u;let x;e[5]!==r.cellId||e[6]!==o?(x=()=>{o(r.cellId)},e[5]=r.cellId,e[6]=o,e[7]=x):x=e[7];const d=x;let p;e[8]!==o?(p=()=>{o(null)},e[8]=o,e[9]=p):p=e[9];const g=p,c=l&&"bg-[var(--gray-3)] opacity-100";let y,f,v,I,h,S,n;e[10]!==c?(y=ee("flex flex-row gap-2 py-1 px-1 opacity-70 hover:bg-[var(--gray-3)] hover:opacity-100",c),e[10]=c,e[11]=y):y=e[11],e[12]!==r.startTime?(f=V(r.startTime),e[12]=r.startTime,e[13]=f):f=e[13],e[14]!==f?(v=s.jsxs("span",{className:"text-[var(--gray-10)] dark:text-[var(--gray-11)]",children:["[",f,"]"]}),e[14]=f,e[15]=v):v=e[15],e[16]!==r.cellId?(I=s.jsxs("span",{className:"text-[var(--gray-10)] w-16",children:["(",s.jsx(te,{cellId:r.cellId}),")"]}),e[16]=r.cellId,e[17]=I):I=e[17],e[18]!==r.code?(h=s.jsx("span",{className:"w-40 truncate -ml-1",children:r.code}),e[18]=r.code,e[19]=h):h=e[19],e[20]!==i?(S=s.jsx("span",{className:"text-[var(--gray-10)] dark:text-[var(--gray-11)]",children:i}),e[20]=i,e[21]=S):S=e[21],e[22]!==m||e[23]!==S?(n=s.jsx(q,{content:m,children:S}),e[22]=m,e[23]=S,e[24]=n):n=e[24];const j=D[r.status];let _,b,T;return e[25]!==r.status||e[26]!==j?(_=s.jsx(q,{content:r.status,children:j}),e[25]=r.status,e[26]=j,e[27]=_):_=e[27],e[28]!==n||e[29]!==_?(b=s.jsxs("div",{className:"flex flex-row gap-1 w-16 justify-end -ml-2",children:[n,_]}),e[28]=n,e[29]=_,e[30]=b):b=e[30],e[31]!==d||e[32]!==g||e[33]!==h||e[34]!==b||e[35]!==y||e[36]!==v||e[37]!==I?(T=s.jsxs("div",{className:y,onMouseEnter:d,onMouseLeave:g,children:[v,I,h,b]}),e[31]=d,e[32]=g,e[33]=h,e[34]=b,e[35]=y,e[36]=v,e[37]=I,e[38]=T):T=e[38],T},k=function(t){try{const e=new Date(1e3*t),r=e.getFullYear(),l=String(e.getMonth()+1).padStart(2,"0"),o=String(e.getDate()).padStart(2,"0"),a=String(e.getHours()).padStart(2,"0"),i=String(e.getMinutes()).padStart(2,"0"),u=String(e.getSeconds()).padStart(2,"0");return`${r}-${l}-${o} ${a}:${i}:${u}.${String(e.getMilliseconds()).padStart(3,"0")}`}catch{return""}}});export{U as Tracing,ve as __tla,k as formatChartTime};
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./index-Br1wm15U.js","./VegaLite-CO8FzCeB.js","./index-QIUy3-fx.js","./index-N-a4M2pk.css","./compile-Bs8kxucU.js","./time-iwgofemH.js","./timer-DFzT7np-.js","./linear-Hpe_xbNg.js","./init-DLRA0X12.js","./range-CtcPcB_L.js","./zoom-COrs4lFh.js","./ordinal-DDUp3AbE.js","./colors-bszWmPJw.js","./arc-Cuwikxov.js","./step-BwsUM5iJ.js","./index-Rh1XQzPr.js"])))=>i.map(i=>d[i]);
2
+ import{u as Y,d as N,Z as O,_ as Z,U as G,Q as M,j as s,R as J,$ as K,a0 as W,a1 as V,a2 as X,V as ee,a3 as te,a4 as q,a5 as re,a6 as se,a7 as ie,__tla as oe}from"./index-QIUy3-fx.js";import{P as ae,C as le,f as A,E as ne,a as me,u as pe,__tla as ce}from"./edit-page-CAiPxrq9.js";import{c as de}from"./compile-Bs8kxucU.js";import{r as ue,u as he,__tla as xe}from"./panels-BLAlULf5.js";import{A as ge}from"./tree-Bqit9JR1.js";import{C as fe}from"./circle-play-BdY0Mz5t.js";import"./_createAggregator-BR5-gteD.js";import"./_baseEach-LNOauA-a.js";import"./transform-Cyp0GDF-.js";import"./timer-DFzT7np-.js";import"./zoom-COrs4lFh.js";import"./sortBy-YG51qdCy.js";import"./_baseMap-pxqdwgum.js";import"./time-iwgofemH.js";import"./linear-Hpe_xbNg.js";import"./init-DLRA0X12.js";import"./range-CtcPcB_L.js";import"./ordinal-DDUp3AbE.js";import"./colors-bszWmPJw.js";import"./arc-Cuwikxov.js";import"./step-BwsUM5iJ.js";import"./index-4HEmI9GW.js";import"./index-BPbd4S2b.js";import"./index-Bef4_wPf.js";import"./index-Bo6aGjTB.js";import"./index-C4-tV0IQ.js";import"./index-DPlv7xGY.js";import"./index-DAWurPiI.js";import"./index-DjwUjO1A.js";import"./index-C_YBu4tU.js";import"./index-Cxfhd3zs.js";import"./index-C-AbIT2J.js";import"./index-D8Tb-KRz.js";import"./index-D9kHkET-.js";import"./apl-CXdQSnD-.js";import"./asciiarmor-D5V0T9Cu.js";import"./asterisk-B46aRdXb.js";import"./brainfuck-CtZaYBKt.js";import"./clike-BgBwzOhw.js";import"./cmake-DXn5xaP-.js";import"./cobol-stawOqaz.js";import"./coffeescript-BTDxI-eT.js";import"./commonlisp-vq6DHwts.js";import"./crystal-CRzZ78HM.js";import"./cypher-gJDei3ni.js";import"./d-BShv7fp-.js";import"./diff-UJJ5BM9S.js";import"./dockerfile-knGOOxt4.js";import"./simple-mode-C3vEBAcb.js";import"./dtd-DI9Herc-.js";import"./dylan-CHJ5qNM_.js";import"./ebnf-B-Df8AvO.js";import"./ecl-DPFc0Uaf.js";import"./eiffel-DR5c0IrL.js";import"./elm-D7xaZ7Da.js";import"./erlang-BuqgqA5h.js";import"./factor-CFXhaUWb.js";import"./fcl-CVaBTCzQ.js";import"./forth-Dri_5nFc.js";import"./fortran-DL7KluxX.js";import"./gas-5kEe4nk0.js";import"./gherkin-B6X1vGSW.js";import"./groovy-DnIzCrpZ.js";import"./haskell-CmdsSjFB.js";import"./haxe-D25e-2l-.js";import"./http-BKJkqRj4.js";import"./idl-pcmmZuaN.js";import"./jinja2-DhgKlfW7.js";import"./julia-DjdwvFuI.js";import"./livescript-HO6ttBFx.js";import"./lua-8DXOpKDz.js";import"./mathematica-IIbmv7SK.js";import"./mbox-z_N2Mo3d.js";import"./mirc-DkvFAiy5.js";import"./modelica-DSrSSXCg.js";import"./mscgen-B2igx18G.js";import"./mumps-zvxmGV4l.js";import"./nginx-B4hAVlXN.js";import"./nsis-BvKfQ9lQ.js";import"./ntriples-FFvkTduk.js";import"./octave-C4hdQ5Hf.js";import"./oz-qQq7irPq.js";import"./pascal-CafrKXZF.js";import"./perl-tdMlh9QA.js";import"./pig-CwGJVRC4.js";import"./powershell-D1ly3AHC.js";import"./properties-_nPj978X.js";import"./protobuf-B4y9do6W.js";import"./puppet-Bc-yJKzi.js";import"./q-B0kTJ4cI.js";import"./r-BA4EbLKE.js";import"./ruby-CR-u2WLS.js";import"./sas-Bqaci40L.js";import"./scheme-qjP0V5Ag.js";import"./shell-BLav31RL.js";import"./sieve-r025o_jW.js";import"./smalltalk-C7J3IyEP.js";import"./solr-78MBEUkU.js";import"./sparql-BRLJFz69.js";import"./spreadsheet-CGlWr0eM.js";import"./stylus-OdhglgkO.js";import"./swift-B_XXVlXX.js";import"./tcl-B2fODqDH.js";import"./textile-BuVhTOzU.js";import"./tiddlywiki-BgR6AEZu.js";import"./tiki-CI-ztowC.js";import"./toml-BQXy8elZ.js";import"./troff-Ce85hlLp.js";import"./ttcn-BxnYHtq8.js";import"./turtle-BkSuIpt-.js";import"./vb-BHgjm0DN.js";import"./vbscript-Dawdd5GZ.js";import"./velocity-BdD_26Jv.js";import"./verilog-B4LBqg_1.js";import"./vhdl-CWWH2SUo.js";import"./webidl-CGwyPRYs.js";import"./xquery-CVDBqZPY.js";import"./yacas-I8QjZlxf.js";import"./z80-D8p3gKXp.js";import"./index-Rh1XQzPr.js";let U,k,ve=Promise.all([(()=>{try{return oe}catch{}})(),(()=>{try{return ce}catch{}})(),(()=>{try{return xe}catch{}})()]).then(async()=>{const Q=Y("circle-ellipsis",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M17 12h.01",key:"1m0b6t"}],["path",{d:"M12 12h.01",key:"1mp3jc"}],["path",{d:"M7 12h.01",key:"eqddd0"}]]),$="hoveredCellId",C="cellHover",R="startTimestamp",P="endTimestamp";let w,L,E,z,B,H,D,F;w=Z(new Map),U=()=>{const t=N.c(28),{runIds:e,runMap:r}=O(ue),l=O(w),{clearRuns:o}=he(),{theme:a}=G(),[i,u]=M.useState("above");let m;t[0]!==i?(m=()=>{u(i==="above"?"sideBySide":"above")},t[0]=i,t[1]=m):m=t[1];const x=m;if(e.length===0){let h;return t[2]===Symbol.for("react.memo_cache_sentinel")?(h=s.jsx(ae,{title:"No traces",description:s.jsx("span",{children:"Cells that have ran will appear here."}),icon:s.jsx(ge,{})}),t[2]=h):h=t[2],h}let d;t[3]===Symbol.for("react.memo_cache_sentinel")?(d=s.jsx("label",{htmlFor:"chartPosition",className:"text-xs",children:"Inline chart"}),t[3]=d):d=t[3];const p=i==="sideBySide";let g,c,y,f,v,I;if(t[4]!==p||t[5]!==x?(g=s.jsxs("div",{className:"flex flex-row gap-1 items-center",children:[d,s.jsx("input",{type:"checkbox",name:"chartPosition",id:"chartPosition",onClick:x,defaultChecked:p,className:"h-3 cursor-pointer"})]}),t[4]=p,t[5]=x,t[6]=g):g=t[6],t[7]!==o?(c=s.jsx(le,{dataTestId:"clear-traces-button",onClick:o}),t[7]=o,t[8]=c):c=t[8],t[9]!==g||t[10]!==c?(y=s.jsxs("div",{className:"flex flex-row justify-end gap-3",children:[g,c]}),t[9]=g,t[10]=c,t[11]=y):y=t[11],t[12]!==i||t[13]!==l||t[14]!==e||t[15]!==r||t[16]!==a){let h;t[18]!==i||t[19]!==l||t[20]!==r||t[21]!==a?(h=(S,n)=>{const j=r.get(S);if(j)return s.jsx(z,{run:j,isExpanded:l.get(j.runId),isMostRecentRun:n===0,chartPosition:i,theme:a},j.runId)},t[18]=i,t[19]=l,t[20]=r,t[21]=a,t[22]=h):h=t[22],f=e.map(h),t[12]=i,t[13]=l,t[14]=e,t[15]=r,t[16]=a,t[17]=f}else f=t[17];return t[23]!==f?(v=s.jsx("div",{className:"flex flex-col gap-3",children:f}),t[23]=f,t[24]=v):v=t[24],t[25]!==y||t[26]!==v?(I=s.jsxs("div",{className:"py-1 px-2 overflow-y-scroll",children:[y,v]}),t[25]=y,t[26]=v,t[27]=I):I=t[27],I},L=J.lazy(()=>K(()=>import("./index-Br1wm15U.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15]),import.meta.url).then(t=>({default:t.Vega}))),E=t=>{const e=N.c(10),{ref:r,width:l}=pe(),o=l===void 0?300:l,a=t.theme==="dark"?"dark":void 0,i=o-50;let u,m;return e[0]!==t.height||e[1]!==t.signalListeners||e[2]!==t.vegaSpec||e[3]!==a||e[4]!==i?(u=s.jsx(L,{spec:t.vegaSpec,theme:a,width:i,height:t.height,signalListeners:t.signalListeners,actions:!1}),e[0]=t.height,e[1]=t.signalListeners,e[2]=t.vegaSpec,e[3]=a,e[4]=i,e[5]=u):u=e[5],e[6]!==t.className||e[7]!==r||e[8]!==u?(m=s.jsx("div",{className:t.className,ref:r,children:u}),e[6]=t.className,e[7]=r,e[8]=u,e[9]=m):m=e[9],m},z=({run:t,isMostRecentRun:e,chartPosition:r,isExpanded:l,theme:o})=>{const a=W(w),i=(l=l??e)?re:se,u=s.jsx(i,{height:16,className:"inline"}),m=s.jsxs("span",{className:"text-sm cursor-pointer",onClick:()=>{a(x=>{const d=new Map(x);return d.set(t.runId,!l),d})},children:["Run - ",V(t.runStartTime),u]});return l?s.jsx(B,{run:t,chartPosition:r,theme:o,title:m},t.runId):s.jsx("div",{className:"flex flex-col",children:s.jsx("pre",{className:"font-mono font-semibold",children:m})},t.runId)},B=t=>{const e=N.c(32),{run:r,chartPosition:l,theme:o,title:a}=t,[i,u]=M.useState();let m;e[0]===Symbol.for("react.memo_cache_sentinel")?(m={[C]:(S,n)=>{var b;const j=n,_=(b=j.cell)==null?void 0:b[0];u(_??null)}},e[0]=m):m=e[0];const x=m,d=X();let p,g;if(e[1]!==d||e[2]!==l||e[3]!==r.cellRuns||e[4]!==r.runId||e[5]!==o){const S=[...r.cellRuns.values()].map(n=>{const j=n.elapsedTime??0;return{cell:n.cellId,cellNum:d.inOrderIds.indexOf(n.cellId),startTimestamp:k(n.startTime),endTimestamp:k(n.startTime+j),elapsedTime:A(1e3*j),status:n.status}});p=`hiddenInputElement-${r.runId}`,g=de(function(n,j,_,b){return{$schema:"https://vega.github.io/schema/vega-lite/v5.json",background:b==="dark"?"black":void 0,mark:{type:"bar",cornerRadius:2},params:[{name:$,bind:{element:`#${j}`}},{name:C,select:{type:"point",on:"mouseover",fields:["cell"],clear:"mouseout"}}],height:{step:_==="above"?21:26},encoding:{y:{field:"cellNum",scale:{paddingInner:.2},sort:{field:R},title:"cell",axis:_==="sideBySide"?null:void 0},x:{field:R,type:"temporal",axis:{orient:"top",title:null}},x2:{field:P,type:"temporal"},tooltip:[{field:R,type:"temporal",timeUnit:"hoursminutessecondsmilliseconds",title:"Start"},{field:P,type:"temporal",timeUnit:"hoursminutessecondsmilliseconds",title:"End"}],size:{value:{expr:`${$} == toString(datum.cell) ? 19.5 : 18`}},color:{field:"status",scale:{domain:["success","error"],range:["#37BE5F","red"]},legend:null}},data:{values:n},config:{view:{stroke:"transparent"}}}}(S,p,l,o)),e[1]=d,e[2]=l,e[3]=r.cellRuns,e[4]=r.runId,e[5]=o,e[6]=p,e[7]=g}else p=e[6],g=e[7];const c=g.spec;let y;e[8]!==p||e[9]!==i||e[10]!==r?(y=s.jsx(H,{run:r,hoveredCellId:i,hiddenInputElementId:p}),e[8]=p,e[9]=i,e[10]=r,e[11]=y):y=e[11];const f=y;if(l==="above"){let S,n,j;return e[12]!==o||e[13]!==c?(S=s.jsx(E,{vegaSpec:c,height:120,signalListeners:x,theme:o}),e[12]=o,e[13]=c,e[14]=S):S=e[14],e[15]!==S||e[16]!==a||e[17]!==f?(n=s.jsxs("pre",{className:"font-mono font-semibold",children:[a,S,f]}),e[15]=S,e[16]=a,e[17]=f,e[18]=n):n=e[18],e[19]!==r.runId||e[20]!==n?(j=s.jsx("div",{className:"flex flex-col",children:n},r.runId),e[19]=r.runId,e[20]=n,e[21]=j):j=e[21],j}let v,I,h;return e[22]!==a||e[23]!==f?(v=s.jsxs("pre",{className:"font-mono font-semibold",children:[a,f]}),e[22]=a,e[23]=f,e[24]=v):v=e[24],e[25]!==o||e[26]!==c?(I=s.jsx(E,{className:"-mt-0.5 flex-1",vegaSpec:c,height:100,signalListeners:x,theme:o}),e[25]=o,e[26]=c,e[27]=I):I=e[27],e[28]!==r.runId||e[29]!==v||e[30]!==I?(h=s.jsxs("div",{className:"flex flex-row",children:[v,I]},r.runId),e[28]=r.runId,e[29]=v,e[30]=I,e[31]=h):h=e[31],h},H=t=>{const e=N.c(12),{run:r,hoveredCellId:l,hiddenInputElementId:o}=t,a=M.useRef(null);let i;e[0]===Symbol.for("react.memo_cache_sentinel")?(i=c=>{a.current&&(a.current.value=String(c),a.current.dispatchEvent(new Event("input",{bubbles:!0})))},e[0]=i):i=e[0];const u=i,m=l||"";let x,d,p,g;return e[1]!==o||e[2]!==m?(x=s.jsx("input",{type:"text",id:o,defaultValue:m,hidden:!0,ref:a}),e[1]=o,e[2]=m,e[3]=x):x=e[3],e[4]!==r.cellRuns?(d=[...r.cellRuns.values()],e[4]=r.cellRuns,e[5]=d):d=e[5],e[6]!==l||e[7]!==d?(p=d.map(c=>s.jsx(F,{cellRun:c,hovered:c.cellId===l,dispatchHoverEvent:u},c.cellId)),e[6]=l,e[7]=d,e[8]=p):p=e[8],e[9]!==x||e[10]!==p?(g=s.jsxs("div",{className:"text-xs mt-0.5 ml-3 flex flex-col gap-0.5",children:[x,p]}),e[9]=x,e[10]=p,e[11]=g):g=e[11],g},D={success:s.jsx(me,{color:"green",size:14}),running:s.jsx(fe,{color:"var(--blue-10)",size:14}),error:s.jsx(ie,{color:"red",size:14}),queued:s.jsx(Q,{color:"grey",size:14})},F=t=>{const e=N.c(39),{cellRun:r,hovered:l,dispatchHoverEvent:o}=t;let a;e[0]!==r.elapsedTime?(a=r.elapsedTime?A(1e3*r.elapsedTime):"-",e[0]=r.elapsedTime,e[1]=a):a=e[1];const i=a;let u;e[2]!==r.elapsedTime||e[3]!==i?(u=r.elapsedTime?s.jsxs("span",{children:["This cell took ",s.jsx(ne,{elapsedTime:i})," to run"]}):s.jsx("span",{children:"This cell has not been run"}),e[2]=r.elapsedTime,e[3]=i,e[4]=u):u=e[4];const m=u;let x;e[5]!==r.cellId||e[6]!==o?(x=()=>{o(r.cellId)},e[5]=r.cellId,e[6]=o,e[7]=x):x=e[7];const d=x;let p;e[8]!==o?(p=()=>{o(null)},e[8]=o,e[9]=p):p=e[9];const g=p,c=l&&"bg-[var(--gray-3)] opacity-100";let y,f,v,I,h,S,n;e[10]!==c?(y=ee("flex flex-row gap-2 py-1 px-1 opacity-70 hover:bg-[var(--gray-3)] hover:opacity-100",c),e[10]=c,e[11]=y):y=e[11],e[12]!==r.startTime?(f=V(r.startTime),e[12]=r.startTime,e[13]=f):f=e[13],e[14]!==f?(v=s.jsxs("span",{className:"text-[var(--gray-10)] dark:text-[var(--gray-11)]",children:["[",f,"]"]}),e[14]=f,e[15]=v):v=e[15],e[16]!==r.cellId?(I=s.jsxs("span",{className:"text-[var(--gray-10)] w-16",children:["(",s.jsx(te,{cellId:r.cellId}),")"]}),e[16]=r.cellId,e[17]=I):I=e[17],e[18]!==r.code?(h=s.jsx("span",{className:"w-40 truncate -ml-1",children:r.code}),e[18]=r.code,e[19]=h):h=e[19],e[20]!==i?(S=s.jsx("span",{className:"text-[var(--gray-10)] dark:text-[var(--gray-11)]",children:i}),e[20]=i,e[21]=S):S=e[21],e[22]!==m||e[23]!==S?(n=s.jsx(q,{content:m,children:S}),e[22]=m,e[23]=S,e[24]=n):n=e[24];const j=D[r.status];let _,b,T;return e[25]!==r.status||e[26]!==j?(_=s.jsx(q,{content:r.status,children:j}),e[25]=r.status,e[26]=j,e[27]=_):_=e[27],e[28]!==n||e[29]!==_?(b=s.jsxs("div",{className:"flex flex-row gap-1 w-16 justify-end -ml-2",children:[n,_]}),e[28]=n,e[29]=_,e[30]=b):b=e[30],e[31]!==d||e[32]!==g||e[33]!==h||e[34]!==b||e[35]!==y||e[36]!==v||e[37]!==I?(T=s.jsxs("div",{className:y,onMouseEnter:d,onMouseLeave:g,children:[v,I,h,b]}),e[31]=d,e[32]=g,e[33]=h,e[34]=b,e[35]=y,e[36]=v,e[37]=I,e[38]=T):T=e[38],T},k=function(t){try{const e=new Date(1e3*t),r=e.getFullYear(),l=String(e.getMonth()+1).padStart(2,"0"),o=String(e.getDate()).padStart(2,"0"),a=String(e.getHours()).padStart(2,"0"),i=String(e.getMinutes()).padStart(2,"0"),u=String(e.getSeconds()).padStart(2,"0");return`${r}-${l}-${o} ${a}:${i}:${u}.${String(e.getMilliseconds()).padStart(3,"0")}`}catch{return""}}});export{U as Tracing,ve as __tla,k as formatChartTime};