@marimo-team/frontend 0.14.8-dev23 → 0.14.8-dev5

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 (130) hide show
  1. package/dist/assets/{ConnectedDataExplorerComponent-7Y4UJwQ8.js → ConnectedDataExplorerComponent-DEfuvRlm.js} +2 -2
  2. package/dist/assets/{ImageComparisonComponent-BdMdcXuZ.js → ImageComparisonComponent-CM5mcXb2.js} +1 -1
  3. package/dist/assets/{VegaLite-C9O2e88m.js → VegaLite-f5rO5fju.js} +4 -4
  4. package/dist/assets/_baseEach-DoSMVVEH.js +1 -0
  5. package/dist/assets/_baseMap-DxzKXZWb.js +1 -0
  6. package/dist/assets/_baseUniq-BVVpHwSp.js +1 -0
  7. package/dist/assets/_createAggregator-BS668Eim.js +1 -0
  8. package/dist/assets/{any-language-editor-CLlB0lb1.js → any-language-editor-DDE_A41z.js} +1 -1
  9. package/dist/assets/architectureDiagram-IEHRJDOE-60TZkOSo.js +36 -0
  10. package/dist/assets/{blockDiagram-JOT3LUYC-Dq_OP5Mb.js → blockDiagram-JOT3LUYC-D_bfYQ1W.js} +1 -1
  11. package/dist/assets/{c4Diagram-VJAJSXHY-BmKWfydL.js → c4Diagram-VJAJSXHY-2RnlK5MW.js} +1 -1
  12. package/dist/assets/channel-DjeZJwED.js +1 -0
  13. package/dist/assets/{chunk-4BMEZGHF-Bd1EspUL.js → chunk-4BMEZGHF-DjDWkboJ.js} +1 -1
  14. package/dist/assets/{chunk-A2AXSNBT-CBDv53VH.js → chunk-A2AXSNBT-Bphhjp_9.js} +1 -1
  15. package/dist/assets/{chunk-AEK57VVT-D-W0qSQa.js → chunk-AEK57VVT-EHtcMbuG.js} +1 -1
  16. package/dist/assets/{chunk-D6G4REZN-EPS48aeF.js → chunk-D6G4REZN-CaiEek1J.js} +1 -1
  17. package/dist/assets/{chunk-RZ5BOZE2-DjVRx4yE.js → chunk-RZ5BOZE2-DtGrt2KV.js} +1 -1
  18. package/dist/assets/{chunk-XZIHB7SX-BfmwhuxN.js → chunk-XZIHB7SX-C3JxGRwm.js} +1 -1
  19. package/dist/assets/{circle-play-BCR0f9gL.js → circle-play-BGaLsUGT.js} +1 -1
  20. package/dist/assets/classDiagram-GIVACNV2-C0Z_9O7c.js +1 -0
  21. package/dist/assets/classDiagram-v2-COTLJTTW-C0Z_9O7c.js +1 -0
  22. package/dist/assets/clone-B_4k1gKL.js +1 -0
  23. package/dist/assets/compile-II-_FrhU.js +3 -0
  24. package/dist/assets/dagre-OKDRZEBW-CfwPCOPe.js +4 -0
  25. package/dist/assets/{data-editor-QwZdx60v.js → data-editor-Bo1cJUED.js} +1 -1
  26. package/dist/assets/diagram-SSKATNLV-DQ2HFnf1.js +43 -0
  27. package/dist/assets/diagram-VNBRO52H-Bkfi9ixf.js +24 -0
  28. package/dist/assets/edit-page-C_mv2M9Y.js +144 -0
  29. package/dist/assets/{erDiagram-Q7BY3M3F-BMvy_ytI.js → erDiagram-Q7BY3M3F-XXo5vM2J.js} +5 -5
  30. package/dist/assets/{flowDiagram-4HSFHLVR-CWerJvxn.js → flowDiagram-4HSFHLVR-ClYS30J_.js} +1 -1
  31. package/dist/assets/{ganttDiagram-APWFNJXF-CGd-2Fvy.js → ganttDiagram-APWFNJXF-PYCGdNTL.js} +4 -4
  32. package/dist/assets/gitGraphDiagram-7IBYFJ6S-BmrwYh6H.js +65 -0
  33. package/dist/assets/{graph-Clr0GerS.js → graph-CWfI8ofr.js} +1 -1
  34. package/dist/assets/{home-page-CakQMtDl.js → home-page-BtzHBDBc.js} +3 -3
  35. package/dist/assets/{index-CyNqYU8O.css → index-7fo-bO1b.css} +1 -1
  36. package/dist/assets/{index-qLd9J0Lc.js → index-BAKLY1vn.js} +1 -1
  37. package/dist/assets/index-BRG7BYdR.js +507 -0
  38. package/dist/assets/{index-BZ1XzkJM.js → index-BXk22EGt.js} +1 -1
  39. package/dist/assets/{index-B3ofozAI.js → index-B_zAOTnu.js} +1 -1
  40. package/dist/assets/{index-sQ0vn0Br.js → index-BeAR3ttA.js} +1 -1
  41. package/dist/assets/{index-D5ApBol-.js → index-Bgn8C5u3.js} +1 -1
  42. package/dist/assets/{index-BRfiyCo6.js → index-BjEFPOfG.js} +1 -1
  43. package/dist/assets/{index-DsJQbIZo.js → index-Bo_YimmO.js} +1 -1
  44. package/dist/assets/{index-D920AkzY.js → index-BogUqXsb.js} +1 -1
  45. package/dist/assets/{index-Dl5AdiEL.js → index-C242JsH1.js} +1 -1
  46. package/dist/assets/{index-CAQM4HON.js → index-C80lzoSZ.js} +1 -1
  47. package/dist/assets/{index-CnBy-K8f.js → index-C97E4DPL.js} +1 -1
  48. package/dist/assets/{index-DkO4StZ4.js → index-CBxgNTzl.js} +1 -1
  49. package/dist/assets/index-D3ETG5lC.js +1 -0
  50. package/dist/assets/{index-CGyg_C7q.js → index-DUTwfd2N.js} +1 -1
  51. package/dist/assets/{index-cDs0MKDO.js → index-DxuMI5IZ.js} +1 -1
  52. package/dist/assets/{index-yhpQ-Rgs.js → index-DyngPC-h.js} +1 -1
  53. package/dist/assets/{index-C2fn_OVP.js → index-GkTVrWOP.js} +1 -1
  54. package/dist/assets/index-_5U3krjw.js +1 -0
  55. package/dist/assets/infoDiagram-PH2N3AL5-uxYNd2te.js +2 -0
  56. package/dist/assets/{journeyDiagram-U35MCT3I-1TLteBpF.js → journeyDiagram-U35MCT3I-BgHIlgOe.js} +6 -6
  57. package/dist/assets/{kanban-definition-NDS4AKOZ-7ISU9FhB.js → kanban-definition-NDS4AKOZ-C8w2m7XV.js} +1 -1
  58. package/dist/assets/layout-D4Hi2l3_.js +1 -0
  59. package/dist/assets/{mermaid-CZoZ3kF8.js → mermaid-Dia-lIHk.js} +30 -30
  60. package/dist/assets/min-Cpvs9FX2.js +1 -0
  61. package/dist/assets/mindmap-definition-ALO5MXBD-Cl7WFdOL.js +95 -0
  62. package/dist/assets/pieDiagram-IB7DONF6-BCkALcKk.js +30 -0
  63. package/dist/assets/{quadrantDiagram-7GDLP6J5-BHiN1C58.js → quadrantDiagram-7GDLP6J5-Bm4DXZnX.js} +4 -4
  64. package/dist/assets/{radar-MK3ICKWK-DiqtToST.js → radar-MK3ICKWK-m1qGKX1l.js} +29 -29
  65. package/dist/assets/{react-plotly-BR8qKkt8.js → react-plotly-BLm9UAMh.js} +1 -1
  66. package/dist/assets/{requirementDiagram-KVF5MWMF-DhAYTP8-.js → requirementDiagram-KVF5MWMF-DxiCXyRK.js} +1 -1
  67. package/dist/assets/run-page-BRrMRpkE.js +1 -0
  68. package/dist/assets/sankeyDiagram-QLVOVGJD-DsbFddGV.js +10 -0
  69. package/dist/assets/{save-worker-DZnx0AG9.js → save-worker-Bm3BvYpV.js} +1 -1
  70. package/dist/assets/{sequenceDiagram-X6HHIX6F-mACBC0ae.js → sequenceDiagram-X6HHIX6F-CKKF3iN6.js} +1 -1
  71. package/dist/assets/{shutdown-button-uxXW-Xar.js → shutdown-button-BRqNY4x0.js} +11 -11
  72. package/dist/assets/slides-component-BfOE86wk.css +1 -0
  73. package/dist/assets/slides-component-d0lnbGkP.js +1 -0
  74. package/dist/assets/sortBy-DKAw-tZa.js +1 -0
  75. package/dist/assets/stateDiagram-DGXRK772-DC5pw4fa.js +1 -0
  76. package/dist/assets/stateDiagram-v2-YXO3MK2T-BFTFqSej.js +1 -0
  77. package/dist/assets/{storage-BeV4qs7Q.js → storage-ouQPa_tr.js} +7 -7
  78. package/dist/assets/{terminal-CWrDWtY7.js → terminal--YvoRK0r.js} +1 -1
  79. package/dist/assets/{timeline-definition-BDJGKUSR-cWPVJUgd.js → timeline-definition-BDJGKUSR-CupfhmvP.js} +1 -1
  80. package/dist/assets/tracing-BQXBWY23.js +2 -0
  81. package/dist/assets/transform-CzICUQw2.js +1 -0
  82. package/dist/assets/vega-component-DtuPSr8Q.js +1 -0
  83. package/dist/assets/{worker-BwUTXR8k.js → worker-CJ614ngf.js} +1 -1
  84. package/dist/assets/{worker-BbdB3qWL.js → worker-C_uu8t-8.js} +1 -1
  85. package/dist/assets/{xychartDiagram-VJFVF3MP-DC-6_xUM.js → xychartDiagram-VJFVF3MP-BLmNorBW.js} +3 -3
  86. package/dist/index.html +2 -2
  87. package/package.json +6 -6
  88. package/dist/assets/_baseEach-DpLsJsui.js +0 -1
  89. package/dist/assets/_baseMap-CbBmsyzj.js +0 -1
  90. package/dist/assets/_baseUniq-D1fMDpf0.js +0 -1
  91. package/dist/assets/_createAggregator-Cuplh_JD.js +0 -1
  92. package/dist/assets/arc-CfyY4LWz.js +0 -1
  93. package/dist/assets/architectureDiagram-IEHRJDOE-2FGttfzU.js +0 -36
  94. package/dist/assets/channel-BoB-9e78.js +0 -1
  95. package/dist/assets/classDiagram-GIVACNV2-AbYoiRr5.js +0 -1
  96. package/dist/assets/classDiagram-v2-COTLJTTW-AbYoiRr5.js +0 -1
  97. package/dist/assets/clone-CLOnXW63.js +0 -1
  98. package/dist/assets/colors-bszWmPJw.js +0 -1
  99. package/dist/assets/compile-CrEPTfLe.js +0 -10
  100. package/dist/assets/dagre-OKDRZEBW-B9p5F-Tq.js +0 -4
  101. package/dist/assets/diagram-SSKATNLV-BbA3V4ra.js +0 -43
  102. package/dist/assets/diagram-VNBRO52H-CvscxY_i.js +0 -24
  103. package/dist/assets/edit-page-B9Xk6MzM.js +0 -144
  104. package/dist/assets/gitGraphDiagram-7IBYFJ6S-CYDW2IlE.js +0 -65
  105. package/dist/assets/index-BAuPysHE.js +0 -500
  106. package/dist/assets/index-BsxK9GNM.js +0 -1
  107. package/dist/assets/index-Dbco_2pv.js +0 -1
  108. package/dist/assets/infoDiagram-PH2N3AL5-BqJ0mEKy.js +0 -2
  109. package/dist/assets/init-DLRA0X12.js +0 -1
  110. package/dist/assets/layout-CG4gjHnj.js +0 -1
  111. package/dist/assets/linear-BM9unkyR.js +0 -1
  112. package/dist/assets/min-E1QsHdwz.js +0 -1
  113. package/dist/assets/mindmap-definition-ALO5MXBD-DheSaGjQ.js +0 -95
  114. package/dist/assets/ordinal-DDUp3AbE.js +0 -1
  115. package/dist/assets/pieDiagram-IB7DONF6-Djhs15wi.js +0 -30
  116. package/dist/assets/range-CtcPcB_L.js +0 -1
  117. package/dist/assets/run-page-C7Zg7but.js +0 -1
  118. package/dist/assets/sankeyDiagram-QLVOVGJD-CbDFs2l-.js +0 -10
  119. package/dist/assets/slides-component-C_44YZgJ.js +0 -1
  120. package/dist/assets/slides-component-DeDT_a8V.css +0 -1
  121. package/dist/assets/sortBy-D-qh0eyr.js +0 -1
  122. package/dist/assets/stateDiagram-DGXRK772-Cj1QunXe.js +0 -1
  123. package/dist/assets/stateDiagram-v2-YXO3MK2T-D0osnjOm.js +0 -1
  124. package/dist/assets/step-BwsUM5iJ.js +0 -1
  125. package/dist/assets/time-BnKO5H8b.js +0 -1
  126. package/dist/assets/timer-Bqd5yn_a.js +0 -1
  127. package/dist/assets/tracing-BGvn_j3g.js +0 -2
  128. package/dist/assets/transform-DetRMEbJ.js +0 -1
  129. package/dist/assets/vega-component-TGiMdMxj.js +0 -1
  130. package/dist/assets/zoom-COrs4lFh.js +0 -1
@@ -1 +0,0 @@
1
- import{s as O,a as P,S as M}from"./chunk-AEK57VVT-D-W0qSQa.js";import{_ as f,c as t,l as S,d as R,j as v,u as U}from"./mermaid-CZoZ3kF8.js";import{s as T}from"./transform-DetRMEbJ.js";import{G as I}from"./graph-Clr0GerS.js";import{l as C}from"./layout-CG4gjHnj.js";import{l as W,k as j}from"./step-BwsUM5iJ.js";import"./chunk-RZ5BOZE2-DjVRx4yE.js";import"./index-BAuPysHE.js";import"./timer-Bqd5yn_a.js";import"./_baseUniq-D1fMDpf0.js";import"./_baseEach-DpLsJsui.js";import"./min-E1QsHdwz.js";import"./_baseMap-CbBmsyzj.js";import"./sortBy-D-qh0eyr.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 I({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)}),C(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 +0,0 @@
1
- import{s as t,b as a,a as e,S as s}from"./chunk-AEK57VVT-D-W0qSQa.js";import{_ as o}from"./mermaid-CZoZ3kF8.js";import"./transform-DetRMEbJ.js";import"./chunk-RZ5BOZE2-DjVRx4yE.js";import"./index-BAuPysHE.js";import"./step-BwsUM5iJ.js";import"./timer-Bqd5yn_a.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 +0,0 @@
1
- function p(t){return function(){return t}}const ct=Math.abs,rt=Math.atan2,lt=Math.cos,xt=Math.max,ut=Math.min,yt=Math.sin,pt=Math.sqrt,M=1e-12,d=Math.PI,E=d/2,ft=2*d;function dt(t){return t>1?0:t<-1?d:Math.acos(t)}function bt(t){return t>=1?E:t<=-1?-E:Math.asin(t)}const m=Math.PI,S=2*m,f=1e-6,wt=S-f;function F(t){this._+=t[0];for(let i=1,n=t.length;i<n;++i)this._+=arguments[i]+t[i]}class g{constructor(i){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=i==null?F:function(n){let s=Math.floor(n);if(!(s>=0))throw new Error(`invalid digits: ${n}`);if(s>15)return F;const h=10**s;return function(_){this._+=_[0];for(let e=1,a=_.length;e<a;++e)this._+=Math.round(arguments[e]*h)/h+_[e]}}(i)}moveTo(i,n){this._append`M${this._x0=this._x1=+i},${this._y0=this._y1=+n}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(i,n){this._append`L${this._x1=+i},${this._y1=+n}`}quadraticCurveTo(i,n,s,h){this._append`Q${+i},${+n},${this._x1=+s},${this._y1=+h}`}bezierCurveTo(i,n,s,h,_,e){this._append`C${+i},${+n},${+s},${+h},${this._x1=+_},${this._y1=+e}`}arcTo(i,n,s,h,_){if(i=+i,n=+n,s=+s,h=+h,(_=+_)<0)throw new Error(`negative radius: ${_}`);let e=this._x1,a=this._y1,o=s-i,c=h-n,r=e-i,l=a-n,x=r*r+l*l;if(this._x1===null)this._append`M${this._x1=i},${this._y1=n}`;else if(x>f)if(Math.abs(l*o-c*r)>f&&_){let u=s-e,k=h-a,L=o*o+c*c,at=u*u+k*k,j=Math.sqrt(L),I=Math.sqrt(x),Z=_*Math.tan((m-Math.acos((L+x-at)/(2*j*I)))/2),N=Z/I,B=Z/j;Math.abs(N-1)>f&&this._append`L${i+N*r},${n+N*l}`,this._append`A${_},${_},0,0,${+(l*u>r*k)},${this._x1=i+B*o},${this._y1=n+B*c}`}else this._append`L${this._x1=i},${this._y1=n}`}arc(i,n,s,h,_,e){if(i=+i,n=+n,e=!!e,(s=+s)<0)throw new Error(`negative radius: ${s}`);let a=s*Math.cos(h),o=s*Math.sin(h),c=i+a,r=n+o,l=1^e,x=e?h-_:_-h;this._x1===null?this._append`M${c},${r}`:(Math.abs(this._x1-c)>f||Math.abs(this._y1-r)>f)&&this._append`L${c},${r}`,s&&(x<0&&(x=x%S+S),x>wt?this._append`A${s},${s},0,1,${l},${i-a},${n-o}A${s},${s},0,1,${l},${this._x1=c},${this._y1=r}`:x>f&&this._append`A${s},${s},0,${+(x>=m)},${l},${this._x1=i+s*Math.cos(_)},${this._y1=n+s*Math.sin(_)}`)}rect(i,n,s,h){this._append`M${this._x0=this._x1=+i},${this._y0=this._y1=+n}h${s=+s}v${+h}h${-s}Z`}toString(){return this._}}function G(){return new g}function H(t){let i=3;return t.digits=function(n){if(!arguments.length)return i;if(n==null)i=null;else{const s=Math.floor(n);if(!(s>=0))throw new RangeError(`invalid digits: ${n}`);i=s}return t},()=>new g(i)}function J(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}function K(t){this._context=t}function O(t){return new K(t)}function Q(t){return t[0]}function R(t){return t[1]}function Tt(t,i){var n=p(!0),s=null,h=O,_=null,e=H(a);function a(o){var c,r,l,x=(o=J(o)).length,u=!1;for(s==null&&(_=h(l=e())),c=0;c<=x;++c)!(c<x&&n(r=o[c],c,o))===u&&((u=!u)?_.lineStart():_.lineEnd()),u&&_.point(+t(r,c,o),+i(r,c,o));if(l)return _=null,l+""||null}return t=typeof t=="function"?t:t===void 0?Q:p(t),i=typeof i=="function"?i:i===void 0?R:p(i),a.x=function(o){return arguments.length?(t=typeof o=="function"?o:p(+o),a):t},a.y=function(o){return arguments.length?(i=typeof o=="function"?o:p(+o),a):i},a.defined=function(o){return arguments.length?(n=typeof o=="function"?o:p(!!o),a):n},a.curve=function(o){return arguments.length?(h=o,s!=null&&(_=h(s)),a):h},a.context=function(o){return arguments.length?(o==null?s=_=null:_=h(s=o),a):s},a}function y(){}function b(t,i,n){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+i)/6,(t._y0+4*t._y1+n)/6)}function w(t){this._context=t}function vt(t){return new w(t)}function D(t){this._context=t}function $t(t){return new D(t)}function U(t){this._context=t}function kt(t){return new U(t)}function V(t,i){this._basis=new w(t),this._beta=i}G.prototype=g.prototype,K.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,i){switch(t=+t,i=+i,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,i):this._context.moveTo(t,i);break;case 1:this._point=2;default:this._context.lineTo(t,i)}}},w.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:b(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,i){switch(t=+t,i=+i,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,i):this._context.moveTo(t,i);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:b(this,t,i)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=i}},D.prototype={areaStart:y,areaEnd:y,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(t,i){switch(t=+t,i=+i,this._point){case 0:this._point=1,this._x2=t,this._y2=i;break;case 1:this._point=2,this._x3=t,this._y3=i;break;case 2:this._point=3,this._x4=t,this._y4=i,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+i)/6);break;default:b(this,t,i)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=i}},U.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(t,i){switch(t=+t,i=+i,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+t)/6,s=(this._y0+4*this._y1+i)/6;this._line?this._context.lineTo(n,s):this._context.moveTo(n,s);break;case 3:this._point=4;default:b(this,t,i)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=i}},V.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var t=this._x,i=this._y,n=t.length-1;if(n>0)for(var s,h=t[0],_=i[0],e=t[n]-h,a=i[n]-_,o=-1;++o<=n;)s=o/n,this._basis.point(this._beta*t[o]+(1-this._beta)*(h+s*e),this._beta*i[o]+(1-this._beta)*(_+s*a));this._x=this._y=null,this._basis.lineEnd()},point:function(t,i){this._x.push(+t),this._y.push(+i)}};const Nt=function t(i){function n(s){return i===1?new w(s):new V(s,i)}return n.beta=function(s){return t(+s)},n}(.85);function T(t,i,n){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-i),t._y2+t._k*(t._y1-n),t._x2,t._y2)}function P(t,i){this._context=t,this._k=(1-i)/6}P.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:T(this,this._x1,this._y1)}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,i){switch(t=+t,i=+i,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,i):this._context.moveTo(t,i);break;case 1:this._point=2,this._x1=t,this._y1=i;break;case 2:this._point=3;default:T(this,t,i)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=i}};const Mt=function t(i){function n(s){return new P(s,i)}return n.tension=function(s){return t(+s)},n}(0);function C(t,i){this._context=t,this._k=(1-i)/6}C.prototype={areaStart:y,areaEnd:y,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,i){switch(t=+t,i=+i,this._point){case 0:this._point=1,this._x3=t,this._y3=i;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=i);break;case 2:this._point=3,this._x5=t,this._y5=i;break;default:T(this,t,i)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=i}};const Et=function t(i){function n(s){return new C(s,i)}return n.tension=function(s){return t(+s)},n}(0);function z(t,i){this._context=t,this._k=(1-i)/6}z.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(t,i){switch(t=+t,i=+i,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:T(this,t,i)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=i}};const mt=function t(i){function n(s){return new z(s,i)}return n.tension=function(s){return t(+s)},n}(0);function A(t,i,n){var s=t._x1,h=t._y1,_=t._x2,e=t._y2;if(t._l01_a>M){var a=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,o=3*t._l01_a*(t._l01_a+t._l12_a);s=(s*a-t._x0*t._l12_2a+t._x2*t._l01_2a)/o,h=(h*a-t._y0*t._l12_2a+t._y2*t._l01_2a)/o}if(t._l23_a>M){var c=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,r=3*t._l23_a*(t._l23_a+t._l12_a);_=(_*c+t._x1*t._l23_2a-i*t._l12_2a)/r,e=(e*c+t._y1*t._l23_2a-n*t._l12_2a)/r}t._context.bezierCurveTo(s,h,_,e,t._x2,t._y2)}function W(t,i){this._context=t,this._alpha=i}W.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,i){if(t=+t,i=+i,this._point){var n=this._x2-t,s=this._y2-i;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+s*s,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,i):this._context.moveTo(t,i);break;case 1:this._point=2;break;case 2:this._point=3;default:A(this,t,i)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=i}};const St=function t(i){function n(s){return i?new W(s,i):new P(s,0)}return n.alpha=function(s){return t(+s)},n}(.5);function X(t,i){this._context=t,this._alpha=i}X.prototype={areaStart:y,areaEnd:y,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,i){if(t=+t,i=+i,this._point){var n=this._x2-t,s=this._y2-i;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+s*s,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=t,this._y3=i;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=i);break;case 2:this._point=3,this._x5=t,this._y5=i;break;default:A(this,t,i)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=i}};const gt=function t(i){function n(s){return i?new X(s,i):new C(s,0)}return n.alpha=function(s){return t(+s)},n}(.5);function Y(t,i){this._context=t,this._alpha=i}Y.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(t,i){if(t=+t,i=+i,this._point){var n=this._x2-t,s=this._y2-i;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+s*s,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:A(this,t,i)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=i}};const Pt=function t(i){function n(s){return i?new Y(s,i):new z(s,0)}return n.alpha=function(s){return t(+s)},n}(.5);function tt(t){this._context=t}function Ct(t){return new tt(t)}function it(t){return t<0?-1:1}function st(t,i,n){var s=t._x1-t._x0,h=i-t._x1,_=(t._y1-t._y0)/(s||h<0&&-0),e=(n-t._y1)/(h||s<0&&-0),a=(_*h+e*s)/(s+h);return(it(_)+it(e))*Math.min(Math.abs(_),Math.abs(e),.5*Math.abs(a))||0}function nt(t,i){var n=t._x1-t._x0;return n?(3*(t._y1-t._y0)/n-i)/2:i}function q(t,i,n){var s=t._x0,h=t._y0,_=t._x1,e=t._y1,a=(_-s)/3;t._context.bezierCurveTo(s+a,h+a*i,_-a,e-a*n,_,e)}function v(t){this._context=t}function _t(t){this._context=new ht(t)}function ht(t){this._context=t}function zt(t){return new v(t)}function At(t){return new _t(t)}function et(t){this._context=t}function ot(t){var i,n,s=t.length-1,h=new Array(s),_=new Array(s),e=new Array(s);for(h[0]=0,_[0]=2,e[0]=t[0]+2*t[1],i=1;i<s-1;++i)h[i]=1,_[i]=4,e[i]=4*t[i]+2*t[i+1];for(h[s-1]=2,_[s-1]=7,e[s-1]=8*t[s-1]+t[s],i=1;i<s;++i)n=h[i]/_[i-1],_[i]-=n,e[i]-=n*e[i-1];for(h[s-1]=e[s-1]/_[s-1],i=s-2;i>=0;--i)h[i]=(e[i]-h[i+1])/_[i];for(_[s-1]=(t[s]+h[s-1])/2,i=0;i<s-1;++i)_[i]=2*t[i+1]-h[i+1];return[h,_]}function qt(t){return new et(t)}function $(t,i){this._context=t,this._t=i}function Lt(t){return new $(t,.5)}function jt(t){return new $(t,0)}function It(t){return new $(t,1)}tt.prototype={areaStart:y,areaEnd:y,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(t,i){t=+t,i=+i,this._point?this._context.lineTo(t,i):(this._point=1,this._context.moveTo(t,i))}},v.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:q(this,this._t0,nt(this,this._t0))}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,i){var n=NaN;if(i=+i,(t=+t)!==this._x1||i!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,i):this._context.moveTo(t,i);break;case 1:this._point=2;break;case 2:this._point=3,q(this,nt(this,n=st(this,t,i)),n);break;default:q(this,this._t0,n=st(this,t,i))}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=i,this._t0=n}}},(_t.prototype=Object.create(v.prototype)).point=function(t,i){v.prototype.point.call(this,i,t)},ht.prototype={moveTo:function(t,i){this._context.moveTo(i,t)},closePath:function(){this._context.closePath()},lineTo:function(t,i){this._context.lineTo(i,t)},bezierCurveTo:function(t,i,n,s,h,_){this._context.bezierCurveTo(i,t,s,n,_,h)}},et.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var t=this._x,i=this._y,n=t.length;if(n)if(this._line?this._context.lineTo(t[0],i[0]):this._context.moveTo(t[0],i[0]),n===2)this._context.lineTo(t[1],i[1]);else for(var s=ot(t),h=ot(i),_=0,e=1;e<n;++_,++e)this._context.bezierCurveTo(s[0][_],h[0][_],s[1][_],h[1][_],t[e],i[e]);(this._line||this._line!==0&&n===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(t,i){this._x.push(+t),this._y.push(+i)}},$.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,i){switch(t=+t,i=+i,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,i):this._context.moveTo(t,i);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,i),this._context.lineTo(t,i);else{var n=this._x*(1-this._t)+t*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,i)}}this._x=t,this._y=i}};export{St as A,Pt as B,gt as C,Mt as D,mt as E,Et as F,Nt as G,kt as H,$t as I,Q as J,R as K,G as L,p as a,pt as b,lt as c,ct as d,M as e,rt as f,bt as g,E as h,xt as i,dt as j,vt as k,Tt as l,ut as m,J as n,jt as o,d as p,It as q,Lt as r,yt as s,ft as t,qt as u,At as v,H as w,zt as x,Ct as y,O as z};
@@ -1 +0,0 @@
1
- import{R,r as ln,d as S,e as q,C as z,n as d,h as fn}from"./timer-Bqd5yn_a.js";import{c as bn,a as pn}from"./linear-BM9unkyR.js";import{i as yn}from"./init-DLRA0X12.js";import{bx as vn,by as m,bz as M,bA as N,bB as D,bC as E,bD as wn,bE as G,bF as P,bG as H,bH as gn,bI as J,bJ as K,bK as O,bL as Q,bM as T,bN as U,bO as mn,bP as dn,bQ as Mn,bR as Nn,bS as Dn,bT as In,bU as kn}from"./index-BAuPysHE.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 Y(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,wn],[r,1,G],[r,3,3*G],[n,1,P]];function b(l,u,c){const v=Math.abs(u-l)/c,h=vn(([,,x])=>x).right(o,v);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[w,k]=o[v/o[h-1][2]<o[h][2]/v?h-1:h];return w.every(k)}return[function(l,u,c){const v=u<l;v&&([l,u]=[u,l]);const h=c&&typeof c.range=="function"?c:b(l,u,c),w=h?h.range(l,+u+1):[];return v?w.reverse():w},b]}const[An,Bn]=Y(In,Dn,Nn,Mn,dn,mn),[Cn,Fn]=Y(U,T,Q,O,K,J),j=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*j;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(),v=c.invert,h=c.domain,w=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?w: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(v(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,U,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,j as r,En as t,Bn as u};
@@ -1 +0,0 @@
1
- function j(e,r,n){e.prototype=r.prototype=n,n.constructor=e}function V(e,r){var n=Object.create(e.prototype);for(var t in r)n[t]=r[t];return n}function x(){}var k=.7,_=1/k,$="\\s*([+-]?\\d+)\\s*",E="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",w="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Ne=/^#([0-9a-f]{3,8})$/,Me=new RegExp(`^rgb\\(${$},${$},${$}\\)$`),_e=new RegExp(`^rgb\\(${w},${w},${w}\\)$`),Ee=new RegExp(`^rgba\\(${$},${$},${$},${E}\\)$`),qe=new RegExp(`^rgba\\(${w},${w},${w},${E}\\)$`),Xe=new RegExp(`^hsl\\(${E},${w},${w}\\)$`),Re=new RegExp(`^hsla\\(${E},${w},${w},${E}\\)$`),ee={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function re(){return this.rgb().formatHex()}function ne(){return this.rgb().formatRgb()}function I(e){var r,n;return e=(e+"").trim().toLowerCase(),(r=Ne.exec(e))?(n=r[1].length,r=parseInt(r[1],16),n===6?te(r):n===3?new g(r>>8&15|r>>4&240,r>>4&15|240&r,(15&r)<<4|15&r,1):n===8?Y(r>>24&255,r>>16&255,r>>8&255,(255&r)/255):n===4?Y(r>>12&15|r>>8&240,r>>8&15|r>>4&240,r>>4&15|240&r,((15&r)<<4|15&r)/255):null):(r=Me.exec(e))?new g(r[1],r[2],r[3],1):(r=_e.exec(e))?new g(255*r[1]/100,255*r[2]/100,255*r[3]/100,1):(r=Ee.exec(e))?Y(r[1],r[2],r[3],r[4]):(r=qe.exec(e))?Y(255*r[1]/100,255*r[2]/100,255*r[3]/100,r[4]):(r=Xe.exec(e))?se(r[1],r[2]/100,r[3]/100,1):(r=Re.exec(e))?se(r[1],r[2]/100,r[3]/100,r[4]):ee.hasOwnProperty(e)?te(ee[e]):e==="transparent"?new g(NaN,NaN,NaN,0):null}function te(e){return new g(e>>16&255,e>>8&255,255&e,1)}function Y(e,r,n,t){return t<=0&&(e=r=n=NaN),new g(e,r,n,t)}function ie(e){return e instanceof x||(e=I(e)),e?new g((e=e.rgb()).r,e.g,e.b,e.opacity):new g}function q(e,r,n,t){return arguments.length===1?ie(e):new g(e,r,n,t??1)}function g(e,r,n,t){this.r=+e,this.g=+r,this.b=+n,this.opacity=+t}function ae(){return`#${b(this.r)}${b(this.g)}${b(this.b)}`}function oe(){const e=A(this.opacity);return`${e===1?"rgb(":"rgba("}${y(this.r)}, ${y(this.g)}, ${y(this.b)}${e===1?")":`, ${e})`}`}function A(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function y(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function b(e){return((e=y(e))<16?"0":"")+e.toString(16)}function se(e,r,n,t){return t<=0?e=r=n=NaN:n<=0||n>=1?e=r=NaN:r<=0&&(e=NaN),new p(e,r,n,t)}function ue(e){if(e instanceof p)return new p(e.h,e.s,e.l,e.opacity);if(e instanceof x||(e=I(e)),!e)return new p;if(e instanceof p)return e;var r=(e=e.rgb()).r/255,n=e.g/255,t=e.b/255,i=Math.min(r,n,t),a=Math.max(r,n,t),o=NaN,s=a-i,u=(a+i)/2;return s?(o=r===a?(n-t)/s+6*(n<t):n===a?(t-r)/s+2:(r-n)/s+4,s/=u<.5?a+i:2-a-i,o*=60):s=u>0&&u<1?0:o,new p(o,s,u,e.opacity)}function le(e,r,n,t){return arguments.length===1?ue(e):new p(e,r,n,t??1)}function p(e,r,n,t){this.h=+e,this.s=+r,this.l=+n,this.opacity=+t}function he(e){return(e=(e||0)%360)<0?e+360:e}function S(e){return Math.max(0,Math.min(1,e||0))}function W(e,r,n){return 255*(e<60?r+(n-r)*e/60:e<180?n:e<240?r+(n-r)*(240-e)/60:r)}function ce(e,r,n,t,i){var a=e*e,o=a*e;return((1-3*e+3*a-o)*r+(4-6*a+3*o)*n+(1+3*e+3*a-3*o)*t+o*i)/6}function fe(e){var r=e.length-1;return function(n){var t=n<=0?n=0:n>=1?(n=1,r-1):Math.floor(n*r),i=e[t],a=e[t+1],o=t>0?e[t-1]:2*i-a,s=t<r-1?e[t+2]:2*a-i;return ce((n-t/r)*r,o,i,a,s)}}function ge(e){var r=e.length;return function(n){var t=Math.floor(((n%=1)<0?++n:n)*r),i=e[(t+r-1)%r],a=e[t%r],o=e[(t+1)%r],s=e[(t+2)%r];return ce((n-t/r)*r,i,a,o,s)}}j(x,I,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:re,formatHex:re,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return ue(this).formatHsl()},formatRgb:ne,toString:ne}),j(g,q,V(x,{brighter(e){return e=e==null?_:Math.pow(_,e),new g(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?k:Math.pow(k,e),new g(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new g(y(this.r),y(this.g),y(this.b),A(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:ae,formatHex:ae,formatHex8:function(){return`#${b(this.r)}${b(this.g)}${b(this.b)}${b(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:oe,toString:oe})),j(p,le,V(x,{brighter(e){return e=e==null?_:Math.pow(_,e),new p(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?k:Math.pow(k,e),new p(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),r=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,t=n+(n<.5?n:1-n)*r,i=2*n-t;return new g(W(e>=240?e-240:e+120,i,t),W(e,i,t),W(e<120?e+240:e-120,i,t),this.opacity)},clamp(){return new p(he(this.h),S(this.s),S(this.l),A(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=A(this.opacity);return`${e===1?"hsl(":"hsla("}${he(this.h)}, ${100*S(this.s)}%, ${100*S(this.l)}%${e===1?")":`, ${e})`}`}}));const P=e=>()=>e;function pe(e,r){return function(n){return e+n*r}}function He(e,r){var n=r-e;return n?pe(e,n>180||n<-180?n-360*Math.round(n/360):n):P(isNaN(e)?r:e)}function Oe(e){return(e=+e)==1?B:function(r,n){return n-r?function(t,i,a){return t=Math.pow(t,a),i=Math.pow(i,a)-t,a=1/a,function(o){return Math.pow(t+o*i,a)}}(r,n,e):P(isNaN(r)?n:r)}}function B(e,r){var n=r-e;return n?pe(e,n):P(isNaN(e)?r:e)}const je=function e(r){var n=Oe(r);function t(i,a){var o=n((i=q(i)).r,(a=q(a)).r),s=n(i.g,a.g),u=n(i.b,a.b),h=B(i.opacity,a.opacity);return function(l){return i.r=o(l),i.g=s(l),i.b=u(l),i.opacity=h(l),i+""}}return t.gamma=e,t}(1);function we(e){return function(r){var n,t,i=r.length,a=new Array(i),o=new Array(i),s=new Array(i);for(n=0;n<i;++n)t=q(r[n]),a[n]=t.r||0,o[n]=t.g||0,s[n]=t.b||0;return a=e(a),o=e(o),s=e(s),t.opacity=1,function(u){return t.r=a(u),t.g=o(u),t.b=s(u),t+""}}}var Ie=we(fe),Ye=we(ge);function d(e,r){return e=+e,r=+r,function(n){return e*(1-n)+r*n}}var G=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,J=new RegExp(G.source,"g");function Ae(e,r){var n,t,i,a=G.lastIndex=J.lastIndex=0,o=-1,s=[],u=[];for(e+="",r+="";(n=G.exec(e))&&(t=J.exec(r));)(i=t.index)>a&&(i=r.slice(a,i),s[o]?s[o]+=i:s[++o]=i),(n=n[0])===(t=t[0])?s[o]?s[o]+=t:s[++o]=t:(s[++o]=null,u.push({i:o,x:d(n,t)})),a=J.lastIndex;return a<r.length&&(i=r.slice(a),s[o]?s[o]+=i:s[++o]=i),s.length<2?u[0]?function(h){return function(l){return h(l)+""}}(u[0].x):function(h){return function(){return h}}(r):(r=u.length,function(h){for(var l,c=0;c<r;++c)s[(l=u[c]).i]=l.x(h);return s.join("")})}var T,de=180/Math.PI,Q={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function me(e,r,n,t,i,a){var o,s,u;return(o=Math.sqrt(e*e+r*r))&&(e/=o,r/=o),(u=e*n+r*t)&&(n-=e*u,t-=r*u),(s=Math.sqrt(n*n+t*t))&&(n/=s,t/=s,u/=s),e*t<r*n&&(e=-e,r=-r,u=-u,o=-o),{translateX:i,translateY:a,rotate:Math.atan2(r,e)*de,skewX:Math.atan(u)*de,scaleX:o,scaleY:s}}function ye(e,r,n,t){function i(a){return a.length?a.pop()+" ":""}return function(a,o){var s=[],u=[];return a=e(a),o=e(o),function(h,l,c,f,m,L){if(h!==c||l!==f){var M=m.push("translate(",null,r,null,n);L.push({i:M-4,x:d(h,c)},{i:M-2,x:d(l,f)})}else(c||f)&&m.push("translate("+c+r+f+n)}(a.translateX,a.translateY,o.translateX,o.translateY,s,u),function(h,l,c,f){h!==l?(h-l>180?l+=360:l-h>180&&(h+=360),f.push({i:c.push(i(c)+"rotate(",null,t)-2,x:d(h,l)})):l&&c.push(i(c)+"rotate("+l+t)}(a.rotate,o.rotate,s,u),function(h,l,c,f){h!==l?f.push({i:c.push(i(c)+"skewX(",null,t)-2,x:d(h,l)}):l&&c.push(i(c)+"skewX("+l+t)}(a.skewX,o.skewX,s,u),function(h,l,c,f,m,L){if(h!==c||l!==f){var M=m.push(i(m)+"scale(",null,",",null,")");L.push({i:M-4,x:d(h,c)},{i:M-2,x:d(l,f)})}else c===1&&f===1||m.push(i(m)+"scale("+c+","+f+")")}(a.scaleX,a.scaleY,o.scaleX,o.scaleY,s,u),a=o=null,function(h){for(var l,c=-1,f=u.length;++c<f;)s[(l=u[c]).i]=l.x(h);return s.join("")}}}var Se=ye(function(e){const r=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return r.isIdentity?Q:me(r.a,r.b,r.c,r.d,r.e,r.f)},"px, ","px)","deg)"),Pe=ye(function(e){return e==null?Q:(T||(T=document.createElementNS("http://www.w3.org/2000/svg","g")),T.setAttribute("transform",e),(e=T.transform.baseVal.consolidate())?me((e=e.matrix).a,e.b,e.c,e.d,e.e,e.f):Q)},", ",")",")"),Te={value:()=>{}};function be(){for(var e,r=0,n=arguments.length,t={};r<n;++r){if(!(e=arguments[r]+"")||e in t||/[\s.]/.test(e))throw new Error("illegal type: "+e);t[e]=[]}return new C(t)}function C(e){this._=e}function Ce(e,r){for(var n,t=0,i=e.length;t<i;++t)if((n=e[t]).name===r)return n.value}function ve(e,r,n){for(var t=0,i=e.length;t<i;++t)if(e[t].name===r){e[t]=Te,e=e.slice(0,t).concat(e.slice(t+1));break}return n!=null&&e.push({name:r,value:n}),e}C.prototype=be.prototype={constructor:C,on:function(e,r){var n,t,i=this._,a=(t=i,(e+"").trim().split(/^|\s+/).map(function(u){var h="",l=u.indexOf(".");if(l>=0&&(h=u.slice(l+1),u=u.slice(0,l)),u&&!t.hasOwnProperty(u))throw new Error("unknown type: "+u);return{type:u,name:h}})),o=-1,s=a.length;if(!(arguments.length<2)){if(r!=null&&typeof r!="function")throw new Error("invalid callback: "+r);for(;++o<s;)if(n=(e=a[o]).type)i[n]=ve(i[n],e.name,r);else if(r==null)for(n in i)i[n]=ve(i[n],e.name,null);return this}for(;++o<s;)if((n=(e=a[o]).type)&&(n=Ce(i[n],e.name)))return n},copy:function(){var e={},r=this._;for(var n in r)e[n]=r[n].slice();return new C(e)},call:function(e,r){if((n=arguments.length-2)>0)for(var n,t,i=new Array(n),a=0;a<n;++a)i[a]=arguments[a+2];if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(a=0,n=(t=this._[e]).length;a<n;++a)t[a].value.apply(r,i)},apply:function(e,r,n){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(var t=this._[e],i=0,a=t.length;i<a;++i)t[i].value.apply(r,n)}};var D,X,N=0,R=0,H=0,F=0,v=0,z=0,O=typeof performance=="object"&&performance.now?performance:Date,xe=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function U(){return v||(xe(De),v=O.now()+z)}function De(){v=0}function K(){this._call=this._time=this._next=null}function ke(e,r,n){var t=new K;return t.restart(e,r,n),t}function $e(){v=(F=O.now())+z,N=R=0;try{(function(){U(),++N;for(var e,r=D;r;)(e=v-r._time)>=0&&r._call.call(void 0,e),r=r._next;--N})()}finally{N=0,function(){for(var e,r,n=D,t=1/0;n;)n._call?(t>n._time&&(t=n._time),e=n,n=n._next):(r=n._next,n._next=null,n=e?e._next=r:D=r);X=e,Z(t)}(),v=0}}function Fe(){var e=O.now(),r=e-F;r>1e3&&(z-=r,F=e)}function Z(e){N||(R&&(R=clearTimeout(R)),e-v>24?(e<1/0&&(R=setTimeout($e,e-O.now()-z)),H&&(H=clearInterval(H))):(H||(F=O.now(),H=setInterval(Fe,1e3)),N=1,xe($e)))}K.prototype=ke.prototype={constructor:K,restart:function(e,r,n){if(typeof e!="function")throw new TypeError("callback is not a function");n=(n==null?U():+n)+(r==null?0:+r),this._next||X===this||(X?X._next=this:D=this,X=this),this._call=e,this._time=n,Z()},stop:function(){this._call&&(this._call=null,this._time=1/0,Z())}};export{x as C,g as R,K as T,je as a,Ae as b,P as c,j as d,V as e,I as f,be as g,He as h,d as i,Pe as j,Se as k,U as l,k as m,B as n,_ as o,le as p,fe as q,ie as r,ge as s,ke as t,Ie as u,Ye as v,q as w};
@@ -1,2 +0,0 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./index-Dbco_2pv.js","./VegaLite-C9O2e88m.js","./index-BAuPysHE.js","./index-CyNqYU8O.css","./compile-CrEPTfLe.js","./time-BnKO5H8b.js","./timer-Bqd5yn_a.js","./linear-BM9unkyR.js","./init-DLRA0X12.js","./range-CtcPcB_L.js","./zoom-COrs4lFh.js","./ordinal-DDUp3AbE.js","./colors-bszWmPJw.js","./step-BwsUM5iJ.js","./arc-CfyY4LWz.js","./index-DsJQbIZo.js"])))=>i.map(i=>d[i]);
2
- import{u as Y,c as N,Z as U,_ as Z,U as G,Q as k,j as s,a 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-BAuPysHE.js";import{P as ae,C as le,f as A,E as ne,a as me,u as ce,__tla as pe}from"./edit-page-B9Xk6MzM.js";import{c as de}from"./compile-CrEPTfLe.js";import{r as ue,u as he,__tla as xe}from"./storage-BeV4qs7Q.js";import{A as ge}from"./shutdown-button-uxXW-Xar.js";import{C as fe}from"./circle-play-BCR0f9gL.js";import"./_createAggregator-Cuplh_JD.js";import"./_baseEach-DpLsJsui.js";import"./transform-DetRMEbJ.js";import"./timer-Bqd5yn_a.js";import"./zoom-COrs4lFh.js";import"./sortBy-D-qh0eyr.js";import"./_baseMap-CbBmsyzj.js";import"./time-BnKO5H8b.js";import"./linear-BM9unkyR.js";import"./init-DLRA0X12.js";import"./range-CtcPcB_L.js";import"./ordinal-DDUp3AbE.js";import"./colors-bszWmPJw.js";import"./step-BwsUM5iJ.js";import"./arc-CfyY4LWz.js";import"./index-CnBy-K8f.js";import"./index-yhpQ-Rgs.js";import"./index-Dl5AdiEL.js";import"./index-CAQM4HON.js";import"./index-C2fn_OVP.js";import"./index-BZ1XzkJM.js";import"./index-sQ0vn0Br.js";import"./index-qLd9J0Lc.js";import"./index-DkO4StZ4.js";import"./index-D920AkzY.js";import"./index-BRfiyCo6.js";import"./index-D5ApBol-.js";import"./index-B3ofozAI.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-DkEP81N9.js";import"./ebnf-B-Df8AvO.js";import"./ecl-DPFc0Uaf.js";import"./eiffel-DR5c0IrL.js";import"./elm-DompmV0j.js";import"./erlang-BuqgqA5h.js";import"./factor-CFXhaUWb.js";import"./fcl-CVaBTCzQ.js";import"./forth-POgR1ypr.js";import"./fortran-DL7KluxX.js";import"./gas-bV0CklSb.js";import"./gherkin-B6X1vGSW.js";import"./groovy-DnIzCrpZ.js";import"./haskell-CLQs6EAM.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-BSwWqoLa.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-Bdo_Aemu.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-wcPdHu67.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-DsJQbIZo.js";let F,w,ve=Promise.all([(()=>{try{return oe}catch{}})(),(()=>{try{return pe}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 E,L,M,z,B,H,D,O;E=Z(new Map),F=()=>{const t=N.c(28),{runIds:e,runMap:r}=U(ue),l=U(E),{clearRuns:o}=he(),{theme:a}=G(),[i,u]=k.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 c=i==="sideBySide";let g,p,y,f,v,I;if(t[4]!==c||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:c,className:"h-3 cursor-pointer"})]}),t[4]=c,t[5]=x,t[6]=g):g=t[6],t[7]!==o?(p=s.jsx(le,{dataTestId:"clear-traces-button",onClick:o}),t[7]=o,t[8]=p):p=t[8],t[9]!==g||t[10]!==p?(y=s.jsxs("div",{className:"flex flex-row justify-end gap-3",children:[g,p]}),t[9]=g,t[10]=p,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-Dbco_2pv.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}))),M=t=>{const e=N.c(10),{ref:r,width:l}=ce(),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(k.Suspense,{children: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(E),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]=k.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 c,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:w(n.startTime),endTimestamp:w(n.startTime+j),elapsedTime:A(1e3*j),status:n.status}});c=`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,c,l,o)),e[1]=d,e[2]=l,e[3]=r.cellRuns,e[4]=r.runId,e[5]=o,e[6]=c,e[7]=g}else c=e[6],g=e[7];const p=g.spec;let y;e[8]!==c||e[9]!==i||e[10]!==r?(y=s.jsx(H,{run:r,hoveredCellId:i,hiddenInputElementId:c}),e[8]=c,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]!==p?(S=s.jsx(M,{vegaSpec:p,height:120,signalListeners:x,theme:o}),e[12]=o,e[13]=p,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]!==p?(I=s.jsx(M,{className:"-mt-0.5 flex-1",vegaSpec:p,height:100,signalListeners:x,theme:o}),e[25]=o,e[26]=p,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=k.useRef(null);let i;e[0]===Symbol.for("react.memo_cache_sentinel")?(i=p=>{a.current&&(a.current.value=String(p),a.current.dispatchEvent(new Event("input",{bubbles:!0})))},e[0]=i):i=e[0];const u=i,m=l||"";let x,d,c,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?(c=d.map(p=>s.jsx(O,{cellRun:p,hovered:p.cellId===l,dispatchHoverEvent:u},p.cellId)),e[6]=l,e[7]=d,e[8]=c):c=e[8],e[9]!==x||e[10]!==c?(g=s.jsxs("div",{className:"text-xs mt-0.5 ml-3 flex flex-col gap-0.5",children:[x,c]}),e[9]=x,e[10]=c,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})},O=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 c;e[8]!==o?(c=()=>{o(null)},e[8]=o,e[9]=c):c=e[9];const g=c,p=l&&"bg-[var(--gray-3)] opacity-100";let y,f,v,I,h,S,n;e[10]!==p?(y=ee("flex flex-row gap-2 py-1 px-1 opacity-70 hover:bg-[var(--gray-3)] hover:opacity-100",p),e[10]=p,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},w=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{F as Tracing,ve as __tla,w as formatChartTime};
@@ -1 +0,0 @@
1
- import{T as it,t as ot,g as ut,i as st,a as V,b as at,f as X,j as lt,k as ct,l as ft}from"./timer-Bqd5yn_a.js";function z(t,n,e){var r=new it;return n=n==null?0:+n,r.restart(i=>{r.stop(),t(i+n)},n,e),r}var M="http://www.w3.org/1999/xhtml";const H={svg:"http://www.w3.org/2000/svg",xhtml:M,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function T(t){var n=t+="",e=n.indexOf(":");return e>=0&&(n=t.slice(0,e))!=="xmlns"&&(t=t.slice(e+1)),H.hasOwnProperty(n)?{space:H[n],local:t}:t}function ht(t){return function(){var n=this.ownerDocument,e=this.namespaceURI;return e===M&&n.documentElement.namespaceURI===M?n.createElement(t):n.createElementNS(e,t)}}function pt(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function I(t){var n=T(t);return(n.local?pt:ht)(n)}function _t(){}function q(t){return t==null?_t:function(){return this.querySelector(t)}}function vt(){return[]}function R(t){return t==null?vt:function(){return this.querySelectorAll(t)}}function dt(t){return function(){return(n=t.apply(this,arguments))==null?[]:Array.isArray(n)?n:Array.from(n);var n}}function U(t){return function(){return this.matches(t)}}function Y(t){return function(n){return n.matches(t)}}var yt=Array.prototype.find;function mt(){return this.firstElementChild}var gt=Array.prototype.filter;function wt(){return Array.from(this.children)}function $(t){return new Array(t.length)}function L(t,n){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=n}function At(t,n,e,r,i,u){for(var s,o=0,l=n.length,a=u.length;o<a;++o)(s=n[o])?(s.__data__=u[o],r[o]=s):e[o]=new L(t,u[o]);for(;o<l;++o)(s=n[o])&&(i[o]=s)}function xt(t,n,e,r,i,u,s){var o,l,a,c=new Map,f=n.length,h=u.length,p=new Array(f);for(o=0;o<f;++o)(l=n[o])&&(p[o]=a=s.call(l,l.__data__,o,n)+"",c.has(a)?i[o]=l:c.set(a,l));for(o=0;o<h;++o)a=s.call(t,u[o],o,u)+"",(l=c.get(a))?(r[o]=l,l.__data__=u[o],c.delete(a)):e[o]=new L(t,u[o]);for(o=0;o<f;++o)(l=n[o])&&c.get(p[o])===l&&(i[o]=l)}function bt(t){return t.__data__}function Et(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}function St(t,n){return t<n?-1:t>n?1:t>=n?0:NaN}function Nt(t){return function(){this.removeAttribute(t)}}function Ct(t){return function(){this.removeAttributeNS(t.space,t.local)}}function kt(t,n){return function(){this.setAttribute(t,n)}}function Pt(t,n){return function(){this.setAttributeNS(t.space,t.local,n)}}function Tt(t,n){return function(){var e=n.apply(this,arguments);e==null?this.removeAttribute(t):this.setAttribute(t,e)}}function Lt(t,n){return function(){var e=n.apply(this,arguments);e==null?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,e)}}function F(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function Bt(t){return function(){this.style.removeProperty(t)}}function Mt(t,n,e){return function(){this.style.setProperty(t,n,e)}}function qt(t,n,e){return function(){var r=n.apply(this,arguments);r==null?this.style.removeProperty(t):this.style.setProperty(t,r,e)}}function C(t,n){return t.style.getPropertyValue(n)||F(t).getComputedStyle(t,null).getPropertyValue(n)}function Dt(t){return function(){delete this[t]}}function Ot(t,n){return function(){this[t]=n}}function jt(t,n){return function(){var e=n.apply(this,arguments);e==null?delete this[t]:this[t]=e}}function G(t){return t.trim().split(/^|\s+/)}function D(t){return t.classList||new J(t)}function J(t){this._node=t,this._names=G(t.getAttribute("class")||"")}function K(t,n){for(var e=D(t),r=-1,i=n.length;++r<i;)e.add(n[r])}function Q(t,n){for(var e=D(t),r=-1,i=n.length;++r<i;)e.remove(n[r])}function Vt(t){return function(){K(this,t)}}function Xt(t){return function(){Q(this,t)}}function zt(t,n){return function(){(n.apply(this,arguments)?K:Q)(this,t)}}function Ht(){this.textContent=""}function It(t){return function(){this.textContent=t}}function Rt(t){return function(){var n=t.apply(this,arguments);this.textContent=n??""}}function Ut(){this.innerHTML=""}function Yt(t){return function(){this.innerHTML=t}}function $t(t){return function(){var n=t.apply(this,arguments);this.innerHTML=n??""}}function Ft(){this.nextSibling&&this.parentNode.appendChild(this)}function Gt(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Jt(){return null}function Kt(){var t=this.parentNode;t&&t.removeChild(this)}function Qt(){var t=this.cloneNode(!1),n=this.parentNode;return n?n.insertBefore(t,this.nextSibling):t}function Wt(){var t=this.cloneNode(!0),n=this.parentNode;return n?n.insertBefore(t,this.nextSibling):t}function Zt(t){return function(){var n=this.__on;if(n){for(var e,r=0,i=-1,u=n.length;r<u;++r)e=n[r],t.type&&e.type!==t.type||e.name!==t.name?n[++i]=e:this.removeEventListener(e.type,e.listener,e.options);++i?n.length=i:delete this.__on}}}function tn(t,n,e){return function(){var r,i=this.__on,u=function(l){return function(a){l.call(this,a,this.__data__)}}(n);if(i){for(var s=0,o=i.length;s<o;++s)if((r=i[s]).type===t.type&&r.name===t.name)return this.removeEventListener(r.type,r.listener,r.options),this.addEventListener(r.type,r.listener=u,r.options=e),void(r.value=n)}this.addEventListener(t.type,u,e),r={type:t.type,name:t.name,value:n,listener:u,options:e},i?i.push(r):this.__on=[r]}}function W(t,n,e){var r=F(t),i=r.CustomEvent;typeof i=="function"?i=new i(n,e):(i=r.document.createEvent("Event"),e?(i.initEvent(n,e.bubbles,e.cancelable),i.detail=e.detail):i.initEvent(n,!1,!1)),t.dispatchEvent(i)}function nn(t,n){return function(){return W(this,t,n)}}function en(t,n){return function(){return W(this,t,n.apply(this,arguments))}}L.prototype={constructor:L,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,n){return this._parent.insertBefore(t,n)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}},J.prototype={add:function(t){this._names.indexOf(t)<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var n=this._names.indexOf(t);n>=0&&(this._names.splice(n,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var Z=[null];function g(t,n){this._groups=t,this._parents=n}function k(){return new g([[document.documentElement]],Z)}function rn(t){return typeof t=="string"?new g([[document.querySelector(t)]],[document.documentElement]):new g([[t]],Z)}g.prototype=k.prototype={constructor:g,select:function(t){typeof t!="function"&&(t=q(t));for(var n=this._groups,e=n.length,r=new Array(e),i=0;i<e;++i)for(var u,s,o=n[i],l=o.length,a=r[i]=new Array(l),c=0;c<l;++c)(u=o[c])&&(s=t.call(u,u.__data__,c,o))&&("__data__"in u&&(s.__data__=u.__data__),a[c]=s);return new g(r,this._parents)},selectAll:function(t){t=typeof t=="function"?dt(t):R(t);for(var n=this._groups,e=n.length,r=[],i=[],u=0;u<e;++u)for(var s,o=n[u],l=o.length,a=0;a<l;++a)(s=o[a])&&(r.push(t.call(s,s.__data__,a,o)),i.push(s));return new g(r,i)},selectChild:function(t){return this.select(t==null?mt:function(n){return function(){return yt.call(this.children,n)}}(typeof t=="function"?t:Y(t)))},selectChildren:function(t){return this.selectAll(t==null?wt:function(n){return function(){return gt.call(this.children,n)}}(typeof t=="function"?t:Y(t)))},filter:function(t){typeof t!="function"&&(t=U(t));for(var n=this._groups,e=n.length,r=new Array(e),i=0;i<e;++i)for(var u,s=n[i],o=s.length,l=r[i]=[],a=0;a<o;++a)(u=s[a])&&t.call(u,u.__data__,a,s)&&l.push(u);return new g(r,this._parents)},data:function(t,n){if(!arguments.length)return Array.from(this,bt);var e,r=n?xt:At,i=this._parents,u=this._groups;typeof t!="function"&&(e=t,t=function(){return e});for(var s=u.length,o=new Array(s),l=new Array(s),a=new Array(s),c=0;c<s;++c){var f=i[c],h=u[c],p=h.length,_=Et(t.call(f,f&&f.__data__,c,i)),y=_.length,m=l[c]=new Array(y),d=o[c]=new Array(y);r(f,h,m,d,a[c]=new Array(p),_,n);for(var x,S,v=0,P=0;v<y;++v)if(x=m[v]){for(v>=P&&(P=v+1);!(S=d[P])&&++P<y;);x._next=S||null}}return(o=new g(o,i))._enter=l,o._exit=a,o},enter:function(){return new g(this._enter||this._groups.map($),this._parents)},exit:function(){return new g(this._exit||this._groups.map($),this._parents)},join:function(t,n,e){var r=this.enter(),i=this,u=this.exit();return typeof t=="function"?(r=t(r))&&(r=r.selection()):r=r.append(t+""),n!=null&&(i=n(i))&&(i=i.selection()),e==null?u.remove():e(u),r&&i?r.merge(i).order():i},merge:function(t){for(var n=t.selection?t.selection():t,e=this._groups,r=n._groups,i=e.length,u=r.length,s=Math.min(i,u),o=new Array(i),l=0;l<s;++l)for(var a,c=e[l],f=r[l],h=c.length,p=o[l]=new Array(h),_=0;_<h;++_)(a=c[_]||f[_])&&(p[_]=a);for(;l<i;++l)o[l]=e[l];return new g(o,this._parents)},selection:function(){return this},order:function(){for(var t=this._groups,n=-1,e=t.length;++n<e;)for(var r,i=t[n],u=i.length-1,s=i[u];--u>=0;)(r=i[u])&&(s&&4^r.compareDocumentPosition(s)&&s.parentNode.insertBefore(r,s),s=r);return this},sort:function(t){function n(f,h){return f&&h?t(f.__data__,h.__data__):!f-!h}t||(t=St);for(var e=this._groups,r=e.length,i=new Array(r),u=0;u<r;++u){for(var s,o=e[u],l=o.length,a=i[u]=new Array(l),c=0;c<l;++c)(s=o[c])&&(a[c]=s);a.sort(n)}return new g(i,this._parents).order()},call:function(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this},nodes:function(){return Array.from(this)},node:function(){for(var t=this._groups,n=0,e=t.length;n<e;++n)for(var r=t[n],i=0,u=r.length;i<u;++i){var s=r[i];if(s)return s}return null},size:function(){let t=0;for(const n of this)++t;return t},empty:function(){return!this.node()},each:function(t){for(var n=this._groups,e=0,r=n.length;e<r;++e)for(var i,u=n[e],s=0,o=u.length;s<o;++s)(i=u[s])&&t.call(i,i.__data__,s,u);return this},attr:function(t,n){var e=T(t);if(arguments.length<2){var r=this.node();return e.local?r.getAttributeNS(e.space,e.local):r.getAttribute(e)}return this.each((n==null?e.local?Ct:Nt:typeof n=="function"?e.local?Lt:Tt:e.local?Pt:kt)(e,n))},style:function(t,n,e){return arguments.length>1?this.each((n==null?Bt:typeof n=="function"?qt:Mt)(t,n,e??"")):C(this.node(),t)},property:function(t,n){return arguments.length>1?this.each((n==null?Dt:typeof n=="function"?jt:Ot)(t,n)):this.node()[t]},classed:function(t,n){var e=G(t+"");if(arguments.length<2){for(var r=D(this.node()),i=-1,u=e.length;++i<u;)if(!r.contains(e[i]))return!1;return!0}return this.each((typeof n=="function"?zt:n?Vt:Xt)(e,n))},text:function(t){return arguments.length?this.each(t==null?Ht:(typeof t=="function"?Rt:It)(t)):this.node().textContent},html:function(t){return arguments.length?this.each(t==null?Ut:(typeof t=="function"?$t:Yt)(t)):this.node().innerHTML},raise:function(){return this.each(Ft)},lower:function(){return this.each(Gt)},append:function(t){var n=typeof t=="function"?t:I(t);return this.select(function(){return this.appendChild(n.apply(this,arguments))})},insert:function(t,n){var e=typeof t=="function"?t:I(t),r=n==null?Jt:typeof n=="function"?n:q(n);return this.select(function(){return this.insertBefore(e.apply(this,arguments),r.apply(this,arguments)||null)})},remove:function(){return this.each(Kt)},clone:function(t){return this.select(t?Wt:Qt)},datum:function(t){return arguments.length?this.property("__data__",t):this.node().__data__},on:function(t,n,e){var r,i,u=function(f){return f.trim().split(/^|\s+/).map(function(h){var p="",_=h.indexOf(".");return _>=0&&(p=h.slice(_+1),h=h.slice(0,_)),{type:h,name:p}})}(t+""),s=u.length;if(!(arguments.length<2)){for(o=n?tn:Zt,r=0;r<s;++r)this.each(o(u[r],n,e));return this}var o=this.node().__on;if(o){for(var l,a=0,c=o.length;a<c;++a)for(r=0,l=o[a];r<s;++r)if((i=u[r]).type===l.type&&i.name===l.name)return l.value}},dispatch:function(t,n){return this.each((typeof n=="function"?en:nn)(t,n))},[Symbol.iterator]:function*(){for(var t=this._groups,n=0,e=t.length;n<e;++n)for(var r,i=t[n],u=0,s=i.length;u<s;++u)(r=i[u])&&(yield r)}};var on=ut("start","end","cancel","interrupt"),un=[];function B(t,n,e,r,i,u){var s=t.__transition;if(s){if(e in s)return}else t.__transition={};(function(o,l,a){var c,f=o.__transition;function h(m){a.state=1,a.timer.restart(p,a.delay,a.time),a.delay<=m&&p(m-a.delay)}function p(m){var d,x,S,v;if(a.state!==1)return y();for(d in f)if((v=f[d]).name===a.name){if(v.state===3)return z(p);v.state===4?(v.state=6,v.timer.stop(),v.on.call("interrupt",o,o.__data__,v.index,v.group),delete f[d]):+d<l&&(v.state=6,v.timer.stop(),v.on.call("cancel",o,o.__data__,v.index,v.group),delete f[d])}if(z(function(){a.state===3&&(a.state=4,a.timer.restart(_,a.delay,a.time),_(m))}),a.state=2,a.on.call("start",o,o.__data__,a.index,a.group),a.state===2){for(a.state=3,c=new Array(S=a.tween.length),d=0,x=-1;d<S;++d)(v=a.tween[d].value.call(o,o.__data__,a.index,a.group))&&(c[++x]=v);c.length=x+1}}function _(m){for(var d=m<a.duration?a.ease.call(null,m/a.duration):(a.timer.restart(y),a.state=5,1),x=-1,S=c.length;++x<S;)c[x].call(o,d);a.state===5&&(a.on.call("end",o,o.__data__,a.index,a.group),y())}function y(){for(var m in a.state=6,a.timer.stop(),delete f[l],f)return;delete o.__transition}f[l]=a,a.timer=ot(h,0,a.time)})(t,e,{name:n,index:r,group:i,on,tween:un,time:u.time,delay:u.delay,duration:u.duration,ease:u.ease,timer:null,state:0})}function O(t,n){var e=w(t,n);if(e.state>0)throw new Error("too late; already scheduled");return e}function A(t,n){var e=w(t,n);if(e.state>3)throw new Error("too late; already running");return e}function w(t,n){var e=t.__transition;if(!e||!(e=e[n]))throw new Error("transition not found");return e}function tt(t,n){var e,r,i,u=t.__transition,s=!0;if(u){for(i in n=n==null?null:n+"",u)(e=u[i]).name===n?(r=e.state>2&&e.state<5,e.state=6,e.timer.stop(),e.on.call(r?"interrupt":"cancel",t,t.__data__,e.index,e.group),delete u[i]):s=!1;s&&delete t.__transition}}function sn(t,n){var e,r;return function(){var i=A(this,t),u=i.tween;if(u!==e){for(var s=0,o=(r=e=u).length;s<o;++s)if(r[s].name===n){(r=r.slice()).splice(s,1);break}}i.tween=r}}function an(t,n,e){var r,i;if(typeof e!="function")throw new Error;return function(){var u=A(this,t),s=u.tween;if(s!==r){i=(r=s).slice();for(var o={name:n,value:e},l=0,a=i.length;l<a;++l)if(i[l].name===n){i[l]=o;break}l===a&&i.push(o)}u.tween=i}}function j(t,n,e){var r=t._id;return t.each(function(){var i=A(this,r);(i.value||(i.value={}))[n]=e.apply(this,arguments)}),function(i){return w(i,r).value[n]}}function nt(t,n){var e;return(typeof n=="number"?st:n instanceof X?V:(e=X(n))?(n=e,V):at)(t,n)}function ln(t){return function(){this.removeAttribute(t)}}function cn(t){return function(){this.removeAttributeNS(t.space,t.local)}}function fn(t,n,e){var r,i,u=e+"";return function(){var s=this.getAttribute(t);return s===u?null:s===r?i:i=n(r=s,e)}}function hn(t,n,e){var r,i,u=e+"";return function(){var s=this.getAttributeNS(t.space,t.local);return s===u?null:s===r?i:i=n(r=s,e)}}function pn(t,n,e){var r,i,u;return function(){var s,o,l=e(this);if(l!=null)return(s=this.getAttribute(t))===(o=l+"")?null:s===r&&o===i?u:(i=o,u=n(r=s,l));this.removeAttribute(t)}}function _n(t,n,e){var r,i,u;return function(){var s,o,l=e(this);if(l!=null)return(s=this.getAttributeNS(t.space,t.local))===(o=l+"")?null:s===r&&o===i?u:(i=o,u=n(r=s,l));this.removeAttributeNS(t.space,t.local)}}function vn(t,n){var e,r;function i(){var u=n.apply(this,arguments);return u!==r&&(e=(r=u)&&function(s,o){return function(l){this.setAttributeNS(s.space,s.local,o.call(this,l))}}(t,u)),e}return i._value=n,i}function dn(t,n){var e,r;function i(){var u=n.apply(this,arguments);return u!==r&&(e=(r=u)&&function(s,o){return function(l){this.setAttribute(s,o.call(this,l))}}(t,u)),e}return i._value=n,i}function yn(t,n){return function(){O(this,t).delay=+n.apply(this,arguments)}}function mn(t,n){return n=+n,function(){O(this,t).delay=n}}function gn(t,n){return function(){A(this,t).duration=+n.apply(this,arguments)}}function wn(t,n){return n=+n,function(){A(this,t).duration=n}}var An=k.prototype.constructor;function et(t){return function(){this.style.removeProperty(t)}}var xn=0;function b(t,n,e,r){this._groups=t,this._parents=n,this._name=e,this._id=r}function rt(){return++xn}var E=k.prototype;b.prototype={constructor:b,select:function(t){var n=this._name,e=this._id;typeof t!="function"&&(t=q(t));for(var r=this._groups,i=r.length,u=new Array(i),s=0;s<i;++s)for(var o,l,a=r[s],c=a.length,f=u[s]=new Array(c),h=0;h<c;++h)(o=a[h])&&(l=t.call(o,o.__data__,h,a))&&("__data__"in o&&(l.__data__=o.__data__),f[h]=l,B(f[h],n,e,h,f,w(o,e)));return new b(u,this._parents,n,e)},selectAll:function(t){var n=this._name,e=this._id;typeof t!="function"&&(t=R(t));for(var r=this._groups,i=r.length,u=[],s=[],o=0;o<i;++o)for(var l,a=r[o],c=a.length,f=0;f<c;++f)if(l=a[f]){for(var h,p=t.call(l,l.__data__,f,a),_=w(l,e),y=0,m=p.length;y<m;++y)(h=p[y])&&B(h,n,e,y,p,_);u.push(p),s.push(l)}return new b(u,s,n,e)},selectChild:E.selectChild,selectChildren:E.selectChildren,filter:function(t){typeof t!="function"&&(t=U(t));for(var n=this._groups,e=n.length,r=new Array(e),i=0;i<e;++i)for(var u,s=n[i],o=s.length,l=r[i]=[],a=0;a<o;++a)(u=s[a])&&t.call(u,u.__data__,a,s)&&l.push(u);return new b(r,this._parents,this._name,this._id)},merge:function(t){if(t._id!==this._id)throw new Error;for(var n=this._groups,e=t._groups,r=n.length,i=e.length,u=Math.min(r,i),s=new Array(r),o=0;o<u;++o)for(var l,a=n[o],c=e[o],f=a.length,h=s[o]=new Array(f),p=0;p<f;++p)(l=a[p]||c[p])&&(h[p]=l);for(;o<r;++o)s[o]=n[o];return new b(s,this._parents,this._name,this._id)},selection:function(){return new An(this._groups,this._parents)},transition:function(){for(var t=this._name,n=this._id,e=rt(),r=this._groups,i=r.length,u=0;u<i;++u)for(var s,o=r[u],l=o.length,a=0;a<l;++a)if(s=o[a]){var c=w(s,n);B(s,t,e,a,o,{time:c.time+c.delay+c.duration,delay:0,duration:c.duration,ease:c.ease})}return new b(r,this._parents,t,e)},call:E.call,nodes:E.nodes,node:E.node,size:E.size,empty:E.empty,each:E.each,on:function(t,n){var e=this._id;return arguments.length<2?w(this.node(),e).on.on(t):this.each(function(r,i,u){var s,o,l=function(a){return(a+"").trim().split(/^|\s+/).every(function(c){var f=c.indexOf(".");return f>=0&&(c=c.slice(0,f)),!c||c==="start"})}(i)?O:A;return function(){var a=l(this,r),c=a.on;c!==s&&(o=(s=c).copy()).on(i,u),a.on=o}}(e,t,n))},attr:function(t,n){var e=T(t),r=e==="transform"?lt:nt;return this.attrTween(t,typeof n=="function"?(e.local?_n:pn)(e,r,j(this,"attr."+t,n)):n==null?(e.local?cn:ln)(e):(e.local?hn:fn)(e,r,n))},attrTween:function(t,n){var e="attr."+t;if(arguments.length<2)return(e=this.tween(e))&&e._value;if(n==null)return this.tween(e,null);if(typeof n!="function")throw new Error;var r=T(t);return this.tween(e,(r.local?vn:dn)(r,n))},style:function(t,n,e){var r=(t+="")=="transform"?ct:nt;return n==null?this.styleTween(t,function(i,u){var s,o,l;return function(){var a=C(this,i),c=(this.style.removeProperty(i),C(this,i));return a===c?null:a===s&&c===o?l:l=u(s=a,o=c)}}(t,r)).on("end.style."+t,et(t)):typeof n=="function"?this.styleTween(t,function(i,u,s){var o,l,a;return function(){var c=C(this,i),f=s(this),h=f+"";return f==null&&(this.style.removeProperty(i),h=f=C(this,i)),c===h?null:c===o&&h===l?a:(l=h,a=u(o=c,f))}}(t,r,j(this,"style."+t,n))).each(function(i,u){var s,o,l,a,c="style."+u,f="end."+c;return function(){var h=A(this,i),p=h.on,_=h.value[c]==null?a||(a=et(u)):void 0;p===s&&l===_||(o=(s=p).copy()).on(f,l=_),h.on=o}}(this._id,t)):this.styleTween(t,function(i,u,s){var o,l,a=s+"";return function(){var c=C(this,i);return c===a?null:c===o?l:l=u(o=c,s)}}(t,r,n),e).on("end.style."+t,null)},styleTween:function(t,n,e){var r="style."+(t+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(n==null)return this.tween(r,null);if(typeof n!="function")throw new Error;return this.tween(r,function(i,u,s){var o,l;function a(){var c=u.apply(this,arguments);return c!==l&&(o=(l=c)&&function(f,h,p){return function(_){this.style.setProperty(f,h.call(this,_),p)}}(i,c,s)),o}return a._value=u,a}(t,n,e??""))},text:function(t){return this.tween("text",typeof t=="function"?function(n){return function(){var e=n(this);this.textContent=e??""}}(j(this,"text",t)):function(n){return function(){this.textContent=n}}(t==null?"":t+""))},textTween:function(t){var n="text";if(arguments.length<1)return(n=this.tween(n))&&n._value;if(t==null)return this.tween(n,null);if(typeof t!="function")throw new Error;return this.tween(n,function(e){var r,i;function u(){var s=e.apply(this,arguments);return s!==i&&(r=(i=s)&&function(o){return function(l){this.textContent=o.call(this,l)}}(s)),r}return u._value=e,u}(t))},remove:function(){return this.on("end.remove",function(t){return function(){var n=this.parentNode;for(var e in this.__transition)if(+e!==t)return;n&&n.removeChild(this)}}(this._id))},tween:function(t,n){var e=this._id;if(t+="",arguments.length<2){for(var r,i=w(this.node(),e).tween,u=0,s=i.length;u<s;++u)if((r=i[u]).name===t)return r.value;return null}return this.each((n==null?sn:an)(e,t,n))},delay:function(t){var n=this._id;return arguments.length?this.each((typeof t=="function"?yn:mn)(n,t)):w(this.node(),n).delay},duration:function(t){var n=this._id;return arguments.length?this.each((typeof t=="function"?gn:wn)(n,t)):w(this.node(),n).duration},ease:function(t){var n=this._id;return arguments.length?this.each(function(e,r){if(typeof r!="function")throw new Error;return function(){A(this,e).ease=r}}(n,t)):w(this.node(),n).ease},easeVarying:function(t){if(typeof t!="function")throw new Error;return this.each(function(n,e){return function(){var r=e.apply(this,arguments);if(typeof r!="function")throw new Error;A(this,n).ease=r}}(this._id,t))},end:function(){var t,n,e=this,r=e._id,i=e.size();return new Promise(function(u,s){var o={value:s},l={value:function(){--i===0&&u()}};e.each(function(){var a=A(this,r),c=a.on;c!==t&&((n=(t=c).copy())._.cancel.push(o),n._.interrupt.push(o),n._.end.push(l)),a.on=n}),i===0&&u()})},[Symbol.iterator]:E[Symbol.iterator]};var bn={time:null,delay:0,duration:250,ease:function(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}};function En(t,n){for(var e;!(e=t.__transition)||!(e=e[n]);)if(!(t=t.parentNode))throw new Error(`transition ${n} not found`);return e}function N(t,n,e){this.k=t,this.x=n,this.y=e}k.prototype.interrupt=function(t){return this.each(function(){tt(this,t)})},k.prototype.transition=function(t){var n,e;t instanceof b?(n=t._id,t=t._name):(n=rt(),(e=bn).time=ft(),t=t==null?null:t+"");for(var r=this._groups,i=r.length,u=0;u<i;++u)for(var s,o=r[u],l=o.length,a=0;a<l;++a)(s=o[a])&&B(s,t,n,a,o,e||En(s,n));return new b(r,this._parents,t,n)},N.prototype={constructor:N,scale:function(t){return t===1?this:new N(this.k*t,this.x,this.y)},translate:function(t,n){return t===0&n===0?this:new N(this.k,this.x+this.k*t,this.y+this.k*n)},apply:function(t){return[t[0]*this.k+this.x,t[1]*this.k+this.y]},applyX:function(t){return t*this.k+this.x},applyY:function(t){return t*this.k+this.y},invert:function(t){return[(t[0]-this.x)/this.k,(t[1]-this.y)/this.k]},invertX:function(t){return(t-this.x)/this.k},invertY:function(t){return(t-this.y)/this.k},rescaleX:function(t){return t.copy().domain(t.range().map(this.invertX,this).map(t.invert,t))},rescaleY:function(t){return t.copy().domain(t.range().map(this.invertY,this).map(t.invert,t))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var Sn=new N(1,0,0);N.prototype;export{N as T,tt as a,Sn as i,rn as s};
@@ -1 +0,0 @@
1
- import{aG as K,aH as F,c as E,aI as G,aJ as D,aK as W,j as g,E as $,U as C,Q as j,aL as L,aM as I,aN as Q,L as _,aO as V,aP as R,aQ as q,aR as J,aS as U,a4 as B,aT as X}from"./index-BAuPysHE.js";import{M as y}from"./compile-CrEPTfLe.js";import{a as Y}from"./VegaLite-C9O2e88m.js";import"./time-BnKO5H8b.js";import"./timer-Bqd5yn_a.js";import"./linear-BM9unkyR.js";import"./init-DLRA0X12.js";import"./range-CtcPcB_L.js";import"./zoom-COrs4lFh.js";import"./ordinal-DDUp3AbE.js";import"./colors-bszWmPJw.js";import"./step-BwsUM5iJ.js";import"./arc-CfyY4LWz.js";import"./index-DsJQbIZo.js";const z=new Set(["boxplot","errorband","errorbar"]),S={getMarkType(t){const e=typeof t=="string"?t:t.type;if(z.has(e))throw new Error("Not supported");return e},isInteractive(t){const e=typeof t=="string"?t:t.type;return!z.has(e)},makeClickable(t){const e=typeof t=="string"?t:t.type;return e in y?typeof t=="string"?{type:t,cursor:"pointer",tooltip:!0}:{...t,type:e,cursor:"pointer",tooltip:!0}:t},getOpacity:t=>typeof t=="string"?null:"opacity"in t&&typeof t.opacity=="number"?t.opacity:null},tt=new Set(["color","fill","fillOpacity","opacity","shape","size"]);function et(t,e,r,i){const u={and:r.map(d=>({param:d}))};if(t==="opacity"){const d=S.getOpacity(i)||1;return{...e,opacity:{condition:{test:u,value:d},value:d/5}}}return e}const w={point:t=>t==null?"select_point":`select_point_${t}`,interval:t=>t==null?"select_interval":`select_interval_${t}`,legendSelection:t=>`legend_selection_${t}`,HIGHLIGHT:"highlight",PAN_ZOOM:"pan_zoom",hasPoint:t=>t.some(e=>e.startsWith("select_point")),hasInterval:t=>t.some(e=>e.startsWith("select_interval")),hasLegend:t=>t.some(e=>e.startsWith("legend_selection")),hasPanZoom:t=>t.some(e=>e.startsWith("pan_zoom"))},P={highlight:()=>({name:w.HIGHLIGHT,select:{type:"point",on:"mouseover"}}),interval:(t,e)=>({name:w.interval(e),select:{type:"interval",encodings:T(t),mark:{fill:"#669EFF",fillOpacity:.07,stroke:"#669EFF",strokeOpacity:.4},on:"[mousedown[!event.metaKey], mouseup] > mousemove[!event.metaKey]",translate:"[mousedown[!event.metaKey], mouseup] > mousemove[!event.metaKey]"}}),point:(t,e)=>({name:w.point(e),select:{type:"point",encodings:T(t),on:"click[!event.metaKey]"}}),legend:t=>({name:w.legendSelection(t),select:{type:"point",fields:[t]},bind:"legend"}),panZoom:()=>({name:w.PAN_ZOOM,bind:"scales",select:{type:"interval",on:"[mousedown[event.metaKey], window:mouseup] > window:mousemove!",translate:"[mousedown[event.metaKey], window:mouseup] > window:mousemove!",zoom:"wheel![event.metaKey]"}})};function T(t){switch(S.getMarkType(t.mark)){case y.image:case y.trail:return;case y.area:case y.arc:return["color"];case y.bar:{const e=function(r){var d,l;if(!r||!("mark"in r))return;const i=(d=r.encoding)==null?void 0:d.x,u=(l=r.encoding)==null?void 0:l.y;if(i&&"type"in i&&i.type==="nominal")return"vertical";if(u&&"type"in u&&u.type==="nominal"||i&&"aggregate"in i)return"horizontal";if(u&&"aggregate"in u)return"vertical"}(t);return e==="horizontal"?["y"]:e==="vertical"?["x"]:void 0}case y.circle:case y.geoshape:case y.line:case y.point:case y.rect:case y.rule:case y.square:case y.text:case y.tick:return["x","y"]}}function Z(t){return"params"in t&&t.params&&t.params.length>0?t.params.filter(e=>e!=null&&"select"in e&&e.select!==void 0).map(e=>e.name):"layer"in t?[...new Set(t.layer.flatMap(Z))]:[]}function at(t,e){var f,v;let{chartSelection:r=!0,fieldSelection:i=!0}=e;if(!r&&!i)return t;if(((f=t.params)==null?void 0:f.some(c=>c.bind==="legend"))&&(i=!1),((v=t.params)==null?void 0:v.some(c=>!c.bind))&&(r=!1),"vconcat"in t){const c=t.vconcat.map(o=>"mark"in o?O(o):o);return{...t,vconcat:c}}if("hconcat"in t){const c=t.hconcat.map(o=>"mark"in o?O(o):o);return{...t,hconcat:c}}if("layer"in t){const c=t.layer.map((o,p)=>{if(!("mark"in o))return o;let s=o;return s=A(s,r,p),s=O(s),p===0&&(s=H(s)),s});return{...t,layer:c}}if(!("mark"in t)||!S.isInteractive(t.mark))return t;let l=t;return l=function(c,o){if(o===!1)return c;let p=function(h){if(!h||!("encoding"in h))return[];const{encoding:b}=h;return b?Object.entries(b).flatMap(a=>{const[n,m]=a;return m&&tt.has(n)?"field"in m&&typeof m.field=="string"?[m.field]:"condition"in m&&m.condition&&typeof m.condition=="object"&&"field"in m.condition&&m.condition.field&&typeof m.condition.field=="string"?[m.condition.field]:[]:[]}):[]}(c);Array.isArray(o)&&(p=p.filter(h=>o.includes(h)));const s=p.map(h=>P.legend(h)),x=[...c.params||[],...s];return{...c,params:x}}(l,i),l=A(l,r,void 0),l=O(l),l=H(l),l}function A(t,e,r){if(e===!1)return t;let i;try{i=S.getMarkType(t.mark)}catch{return t}if(i==="geoshape")return t;const u=e===!0?function(f){switch(f){case"arc":case"area":return["point"];case"text":case"bar":default:return["point","interval"];case"line":return}}(i):[e];if(!u)return t;const d=u.map(f=>f==="interval"?P.interval(t,r):P.point(t,r)),l=[...t.params||[],...d];return{...t,params:l}}function H(t){let e;try{e=S.getMarkType(t.mark)}catch{}if(e==="geoshape")return t;const r=t.params||[];return r.some(i=>i.bind==="scales")?t:{...t,params:[...r,P.panZoom()]}}function O(t){const e="encoding"in t?t.encoding:void 0,r=t.params||[],i=r.map(u=>u.name);return r.length===0?t:S.isInteractive(t.mark)?{...t,mark:S.makeClickable(t.mark),encoding:et("opacity",e||{},i,t.mark)}:t}D("arrow",W);const nt=t=>{const e=E.c(11),{value:r,setValue:i,chartSelection:u,fieldSelection:d,spec:l}=t;let f,v;e[0]!==l?(f=async()=>async function(s){if(!s)return s;const x="datasets"in s?{...s.datasets}:{},h=async a=>{if(!a)return a;if("layer"in a){const k=await Promise.all(a.layer.map(h));a={...a,layer:k}}if("hconcat"in a){const k=await Promise.all(a.hconcat.map(h));a={...a,hconcat:k}}if("vconcat"in a){const k=await Promise.all(a.vconcat.map(h));a={...a,vconcat:k}}if("spec"in a&&(a={...a,spec:await h(a.spec)}),!a.data||!("url"in a.data))return a;let n;try{n=K(a.data.url)}catch{return a}const m=await F(n.href,a.data.format);return x[n.pathname]=m,{...a,data:{name:n.pathname}}},b=await h(s);return Object.keys(x).length===0?b:{...b,datasets:x}}(l),v=[l],e[0]=l,e[1]=f,e[2]=v):(f=e[1],v=e[2]);const{data:c,error:o}=G(f,v);if(o){let s;return e[3]!==o?(s=g.jsx($,{error:o}),e[3]=o,e[4]=s):s=e[4],s}if(!c)return null;let p;return e[5]!==u||e[6]!==d||e[7]!==c||e[8]!==i||e[9]!==r?(p=g.jsx(rt,{value:r,setValue:i,chartSelection:u,fieldSelection:d,spec:c}),e[5]=u,e[6]=d,e[7]=c,e[8]=i,e[9]=r,e[10]=p):p=e[10],p},rt=({value:t,setValue:e,chartSelection:r,fieldSelection:i,spec:u})=>{const{theme:d}=C(),l=j.useRef(void 0),[f,v]=j.useState(),c=L(u),o=j.useMemo(()=>at(function(n){return n.data&&"url"in n.data&&(n.data.url=K(n.data.url).href),n}(c),{chartSelection:r,fieldSelection:i}),[c,r,i]),p=j.useMemo(()=>Z(o),[o]),s=I(n=>{e({...t,...n})}),x=L(p),h=j.useMemo(()=>x.reduce((n,m)=>(w.PAN_ZOOM===m||(n[m]=Q((k,N)=>{_.debug("[Vega signal]",k,N);let M=V.mapValues(N,st);M=V.mapValues(M,ot),s({[k]:M})},100)),n),{}),[x,s]),b=I(n=>{_.error(n),_.debug(o),v(n)}),a=I(n=>{_.debug("[Vega view] created",n),l.current=n,v(void 0)});return g.jsxs(g.Fragment,{children:[f&&g.jsxs(R,{variant:"destructive",children:[g.jsx(q,{children:f.message}),g.jsx("div",{className:"text-md",children:f.stack})]}),g.jsxs("div",{className:"relative",onPointerDown:J.stopPropagation(),children:[g.jsx(Y,{spec:o,theme:d==="dark"?"dark":void 0,actions:it,signalListeners:h,onError:b,onNewView:a}),(()=>{const n=[];return w.hasPoint(p)&&n.push(["Point selection","click to select a point; hold shift for multi-select"]),w.hasInterval(p)&&n.push(["Interval selection","click and drag to select an interval"]),w.hasLegend(p)&&n.push(["Legend selection","click to select a legend item; hold shift for multi-select"]),w.hasPanZoom(p)&&n.push(["Pan","hold the meta key and drag"],["Zoom","hold the meta key and scroll"]),n.length===0?null:g.jsx(B,{delayDuration:300,side:"left",content:g.jsx("div",{className:"text-xs flex flex-col",children:n.map((m,k)=>g.jsxs("div",{children:[g.jsxs("span",{className:"font-bold tracking-wide",children:[m[0],":"]})," ",m[1]]},k))}),children:g.jsx(X,{className:"absolute bottom-1 right-0 m-2 h-4 w-4 cursor-help text-muted-foreground hover:text-foreground"})})})()]})]})},it={source:!1,compiled:!1};function ot(t){return t instanceof Set?[...t]:t}function st(t){return Array.isArray(t)?t.map(e=>e instanceof Date&&U(e)?new Date(e).getTime():e):t}export{nt as default};
@@ -1 +0,0 @@
1
- function w(h){return((h=Math.exp(h))+1/h)/2}const B=function h(n,p,m){function q(o,a){var r,u,l=o[0],v=o[1],t=o[2],y=a[0],z=a[1],e=a[2],f=y-l,c=z-v,s=f*f+c*c;if(s<1e-12)u=Math.log(e/t)/n,r=function(i){return[l+i*f,v+i*c,t*Math.exp(n*i*u)]};else{var S=Math.sqrt(s),T=(e*e-t*t+m*s)/(2*t*p*S),d=(e*e-t*t-m*s)/(2*e*p*S),M=Math.log(Math.sqrt(T*T+1)-T),A=Math.log(Math.sqrt(d*d+1)-d);u=(A-M)/n,r=function(i){var x,b=i*u,j=w(M),k=t/(p*S)*(j*(x=n*b+M,((x=Math.exp(2*x))-1)/(x+1))-function(g){return((g=Math.exp(g))-1/g)/2}(M));return[l+k*f,v+k*c,t*j/w(n*b+M)]}}return r.duration=1e3*u*n/Math.SQRT2,r}return q.rho=function(o){var a=Math.max(.001,+o),r=a*a;return h(a,r,r*r)},q}(Math.SQRT2,2,4);export{B as i};