@wildo-ai/application-creation-workbench 1.1.7 → 1.1.8

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 (97) hide show
  1. package/dist/.vite/manifest.json +381 -381
  2. package/dist/assets/{ChartEmptyState-BP_Yq5V7.js → ChartEmptyState-CPZnYOAw.js} +1 -1
  3. package/dist/assets/{ChartView-07Vh3EtV.js → ChartView-ULKE6l35.js} +1 -1
  4. package/dist/assets/{_basePickBy-C0TWefH3.js → _basePickBy-BiLKhh6-.js} +1 -1
  5. package/dist/assets/{_baseUniq-aBjj_hOi.js → _baseUniq-DqfHtDwq.js} +1 -1
  6. package/dist/assets/{arc-B7pBcXhk.js → arc-CbziG7uU.js} +1 -1
  7. package/dist/assets/{architectureDiagram-VXUJARFQ-CxaR1SOK.js → architectureDiagram-VXUJARFQ-DNknUUYG.js} +1 -1
  8. package/dist/assets/{blockDiagram-VD42YOAC-FQ6rpl1q.js → blockDiagram-VD42YOAC-DjyyEJw4.js} +1 -1
  9. package/dist/assets/{c4Diagram-YG6GDRKO-MBotlECZ.js → c4Diagram-YG6GDRKO-CpQzPjh8.js} +1 -1
  10. package/dist/assets/channel-8XWMyg2t.js +1 -0
  11. package/dist/assets/{chunk-4BX2VUAB-DH3JjsZf.js → chunk-4BX2VUAB-D4SAUSXH.js} +1 -1
  12. package/dist/assets/{chunk-55IACEB6-B-1eMtsJ.js → chunk-55IACEB6-CSgJZSYU.js} +1 -1
  13. package/dist/assets/{chunk-B4BG7PRW-DjqjS8Nd.js → chunk-B4BG7PRW-BaaR_68i.js} +1 -1
  14. package/dist/assets/{chunk-DI55MBZ5-CNDJpkHu.js → chunk-DI55MBZ5-Ctws9Nua.js} +1 -1
  15. package/dist/assets/{chunk-FMBD7UC4-C_LJMr3H.js → chunk-FMBD7UC4-miRsz_bp.js} +1 -1
  16. package/dist/assets/{chunk-QN33PNHL-DOWhVFKY.js → chunk-QN33PNHL-DyqXU-AC.js} +1 -1
  17. package/dist/assets/{chunk-QZHKN3VN-BqSJxIuw.js → chunk-QZHKN3VN-DoGQixgZ.js} +1 -1
  18. package/dist/assets/{chunk-TZMSLE5B-CnGhg192.js → chunk-TZMSLE5B-DUkaqvSW.js} +1 -1
  19. package/dist/assets/classDiagram-2ON5EDUG-BQOkAVtr.js +1 -0
  20. package/dist/assets/classDiagram-v2-WZHVMYZB-BQOkAVtr.js +1 -0
  21. package/dist/assets/clone-R56dYs_d.js +1 -0
  22. package/dist/assets/{cm6-editor-DpZrV-bm.js → cm6-editor-Ex5Z8Emo.js} +3 -3
  23. package/dist/assets/{code-block-IT6T5CEO-CJXyw75w.js → code-block-IT6T5CEO-OZDQuPLO.js} +1 -1
  24. package/dist/assets/{context-CYZBYFJH.js → context-BxQoCUbC.js} +1 -1
  25. package/dist/assets/{cose-bilkent-S5V4N54A-BV1r6KdQ.js → cose-bilkent-S5V4N54A-DfpaT0ww.js} +1 -1
  26. package/dist/assets/{dagre-6UL2VRFP-xo5kvHqM.js → dagre-6UL2VRFP-BXv69Oxl.js} +1 -1
  27. package/dist/assets/{diagram-PSM6KHXK-yWnIouwj.js → diagram-PSM6KHXK-BRc3-xgi.js} +1 -1
  28. package/dist/assets/{diagram-QEK2KX5R-7PaiBPsn.js → diagram-QEK2KX5R-8CpEq7ZA.js} +1 -1
  29. package/dist/assets/{diagram-S2PKOQOG-CLb_cZaK.js → diagram-S2PKOQOG-D1W1sSkJ.js} +1 -1
  30. package/dist/assets/{dropbox-picker-dJzRo9BP.js → dropbox-picker-BHSSkFLC.js} +1 -1
  31. package/dist/assets/{erDiagram-Q2GNP2WA-C7zQODGQ.js → erDiagram-Q2GNP2WA-DiLkIVeF.js} +1 -1
  32. package/dist/assets/{flowDiagram-NV44I4VS-CU90-nPK.js → flowDiagram-NV44I4VS-DuorS0Te.js} +1 -1
  33. package/dist/assets/{flows-actors-graph-runtime-I8VIayGy.js → flows-actors-graph-runtime-C0MZ4gE8.js} +1 -1
  34. package/dist/assets/{ganttDiagram-JELNMOA3-QChqch-L.js → ganttDiagram-JELNMOA3-D6rWWaQh.js} +1 -1
  35. package/dist/assets/{gitGraphDiagram-V2S2FVAM-C9TJLfq4.js → gitGraphDiagram-V2S2FVAM-CfZsCbMz.js} +1 -1
  36. package/dist/assets/{google-drive-picker-DP0pskfD.js → google-drive-picker-DVx5Omaa.js} +1 -1
  37. package/dist/assets/{graph-BSonitmV.js → graph-gqV6Zkhz.js} +1 -1
  38. package/dist/assets/{graph-runtime-8-ugTIpe.js → graph-runtime-DnTcDIcx.js} +1 -1
  39. package/dist/assets/{index-BZyZXiVP.js → index--n_CsJ_L.js} +1 -1
  40. package/dist/assets/{index-Dl0klRA0.js → index-8yCF6i2e.js} +1 -1
  41. package/dist/assets/{index-D8dkqP85.js → index-B0VAn5-V.js} +12 -12
  42. package/dist/assets/{index-jiRPxWhK.js → index-B7L9jUWa.js} +1 -1
  43. package/dist/assets/{index-B3f48X5_.js → index-BpAZX5i7.js} +1 -1
  44. package/dist/assets/{index-CclRN4na.js → index-BpG1Asja.js} +1 -1
  45. package/dist/assets/{index-D12-fzIP.js → index-BsttfdbI.js} +1 -1
  46. package/dist/assets/{index-BAj7bJQ9.js → index-BtMOrmRc.js} +1 -1
  47. package/dist/assets/{index-D-9PKSn4.js → index-C8A3XsfH.js} +1 -1
  48. package/dist/assets/{index-CZfKMV0S.js → index-CDsihDHt.js} +1 -1
  49. package/dist/assets/{index-dEth1qer.js → index-CEQG0sL4.js} +1 -1
  50. package/dist/assets/{index-CqAJwEb9.js → index-CVuPkWUj.js} +1 -1
  51. package/dist/assets/{index-CpNjptBT.js → index-CXlCPLW3.js} +3 -3
  52. package/dist/assets/{index-BkfsYGDI.js → index-Cd7vOcmr.js} +1 -1
  53. package/dist/assets/{index-DwafvHBM.js → index-CnWI1gxP.js} +1 -1
  54. package/dist/assets/{index-vvv2MPol.js → index-CqzxLcDY.js} +1 -1
  55. package/dist/assets/{index-D_QZLEQq.js → index-CvOUzGfB.js} +1 -1
  56. package/dist/assets/{index-CFS2kf4X.js → index-Cw01f2TF.js} +1 -1
  57. package/dist/assets/{index-B5SFUruu.js → index-D0Tl3k_n.js} +1 -1
  58. package/dist/assets/{index-CTGTArYi.js → index-DYSQAORQ.js} +1 -1
  59. package/dist/assets/{index-Bzi4leGz.js → index-D_qREvJE.js} +1 -1
  60. package/dist/assets/{index-DNdNQX3_.js → index-Dh0Bmwci.js} +1 -1
  61. package/dist/assets/{index-BVEXkCPp.js → index-DhO-M1Ob.js} +1 -1
  62. package/dist/assets/{index-Cx98Z3Ta.js → index-Dl1_rx0L.js} +1 -1
  63. package/dist/assets/{index-DL_hDFJK.js → index-DpNmbMZ6.js} +1 -1
  64. package/dist/assets/{index-tJ39cHN5.js → index-gI9jukto.js} +1 -1
  65. package/dist/assets/{index-DRrfjJvh.js → index-rZVYAYhY.js} +1 -1
  66. package/dist/assets/{index.es-BIyJxiiZ.js → index.es-CznBk03W.js} +1 -1
  67. package/dist/assets/{infoDiagram-HS3SLOUP-Beor-41t.js → infoDiagram-HS3SLOUP-DFtdjaMK.js} +1 -1
  68. package/dist/assets/{journeyDiagram-XKPGCS4Q-TTxuStRy.js → journeyDiagram-XKPGCS4Q-DbdwxQHC.js} +1 -1
  69. package/dist/assets/{kanban-definition-3W4ZIXB7-BYqFfkjy.js → kanban-definition-3W4ZIXB7-Bi1qDqWT.js} +1 -1
  70. package/dist/assets/{layout-DrzykIoN.js → layout-D5DcKJsv.js} +1 -1
  71. package/dist/assets/{linear-D86elEgL.js → linear-BAEXCBnK.js} +1 -1
  72. package/dist/assets/{maximize-2-zJKkDRK0.js → maximize-2-BPmhoPLp.js} +1 -1
  73. package/dist/assets/{mermaid-VLURNSYL-BAygRTK6.js → mermaid-VLURNSYL-D2mykrpe.js} +4 -4
  74. package/dist/assets/{mermaid.core-bwWKwscf.js → mermaid.core-B_cUK0gA.js} +5 -5
  75. package/dist/assets/{mindmap-definition-VGOIOE7T-DmkSZj5s.js → mindmap-definition-VGOIOE7T-DExoSL-S.js} +1 -1
  76. package/dist/assets/{onedrive-picker-CyXOFDsr.js → onedrive-picker-CukId4tT.js} +1 -1
  77. package/dist/assets/{pdf-viewer-BSy3edho.js → pdf-viewer-CCg2RXkT.js} +1 -1
  78. package/dist/assets/{pieDiagram-ADFJNKIX-BoqRK1Nj.js → pieDiagram-ADFJNKIX-dyQp_y9R.js} +1 -1
  79. package/dist/assets/{quadrantDiagram-AYHSOK5B-iVG56kyl.js → quadrantDiagram-AYHSOK5B-NQ0_JfN_.js} +1 -1
  80. package/dist/assets/{requirementDiagram-UZGBJVZJ-BlfhbQSa.js → requirementDiagram-UZGBJVZJ-Dp7ND9vz.js} +1 -1
  81. package/dist/assets/{sankeyDiagram-TZEHDZUN-CIqchrnr.js → sankeyDiagram-TZEHDZUN-DR3FyaES.js} +1 -1
  82. package/dist/assets/{sequenceDiagram-WL72ISMW-D98Lehfv.js → sequenceDiagram-WL72ISMW-COxtegpi.js} +1 -1
  83. package/dist/assets/{shiki-highlighter-runtime-CUsH9pAI.js → shiki-highlighter-runtime-7rNdU0U5.js} +1 -1
  84. package/dist/assets/{stateDiagram-FKZM4ZOC-DKCmtDHk.js → stateDiagram-FKZM4ZOC-DGFUOEdh.js} +1 -1
  85. package/dist/assets/stateDiagram-v2-4FDKWEC3-C75QKVY6.js +1 -0
  86. package/dist/assets/{timeline-definition-IT6M3QCI-DeDxHecT.js → timeline-definition-IT6M3QCI-C7I88B18.js} +1 -1
  87. package/dist/assets/treemap-GDKQZRPO-CGjffbYp.js +160 -0
  88. package/dist/assets/{useQuickActionButtonBehavior-BpISdruD.js → useQuickActionButtonBehavior-DSvj7lAT.js} +1 -1
  89. package/dist/assets/{xychartDiagram-PRI3JC2R-DeAMabcI.js → xychartDiagram-PRI3JC2R-DysnJiZf.js} +1 -1
  90. package/dist/index.html +1 -1
  91. package/package.json +8 -8
  92. package/dist/assets/channel-BihP_0tn.js +0 -1
  93. package/dist/assets/classDiagram-2ON5EDUG-DmlHswhx.js +0 -1
  94. package/dist/assets/classDiagram-v2-WZHVMYZB-DmlHswhx.js +0 -1
  95. package/dist/assets/clone-H3FbKF9K.js +0 -1
  96. package/dist/assets/stateDiagram-v2-4FDKWEC3-BExRj50s.js +0 -1
  97. package/dist/assets/treemap-GDKQZRPO-DIQh1NSx.js +0 -160
@@ -1,4 +1,4 @@
1
- import{_ as b,E as m,I as $,d as B,l as u,b as C,a as S,p as D,q as T,g as E,s as F,F as P,G as z,y as A}from"./mermaid.core-bwWKwscf.js";import{p as W}from"./chunk-4BX2VUAB-DH3JjsZf.js";import{p as _}from"./treemap-GDKQZRPO-DIQh1NSx.js";import"./index-D8dkqP85.js";import"./mermaid-VLURNSYL-BAygRTK6.js";import"./index-e-4cSkrt.js";import"./maximize-2-zJKkDRK0.js";import"./_baseUniq-aBjj_hOi.js";import"./_basePickBy-C0TWefH3.js";import"./clone-H3FbKF9K.js";var N=P.packet,w=class{constructor(){this.packet=[],this.setAccTitle=C,this.getAccTitle=S,this.setDiagramTitle=D,this.getDiagramTitle=T,this.getAccDescription=E,this.setAccDescription=F}static{b(this,"PacketDB")}getConfig(){const t=m({...N,...z().packet});return t.showBits&&(t.paddingY+=10),t}getPacket(){return this.packet}pushWord(t){t.length>0&&this.packet.push(t)}clear(){A(),this.packet=[]}},I=1e4,L=b((t,e)=>{W(t,e);let r=-1,o=[],n=1;const{bitsPerRow:l}=e.getConfig();for(let{start:a,end:i,bits:d,label:c}of t.blocks){if(a!==void 0&&i!==void 0&&i<a)throw new Error(`Packet block ${a} - ${i} is invalid. End must be greater than start.`);if(a??=r+1,a!==r+1)throw new Error(`Packet block ${a} - ${i??a} is not contiguous. It should start from ${r+1}.`);if(d===0)throw new Error(`Packet block ${a} is invalid. Cannot have a zero bit field.`);for(i??=a+(d??1)-1,d??=i-a+1,r=i,u.debug(`Packet block ${a} - ${r} with label ${c}`);o.length<=l+1&&e.getPacket().length<I;){const[p,s]=M({start:a,end:i,bits:d,label:c},n,l);if(o.push(p),p.end+1===n*l&&(e.pushWord(o),o=[],n++),!s)break;({start:a,end:i,bits:d,label:c}=s)}}e.pushWord(o)},"populate"),M=b((t,e,r)=>{if(t.start===void 0)throw new Error("start should have been set during first phase");if(t.end===void 0)throw new Error("end should have been set during first phase");if(t.start>t.end)throw new Error(`Block start ${t.start} is greater than block end ${t.end}.`);if(t.end+1<=e*r)return[t,void 0];const o=e*r-1,n=e*r;return[{start:t.start,end:o,label:t.label,bits:o-t.start},{start:n,end:t.end,label:t.label,bits:t.end-n}]},"getNextFittingBlock"),v={parser:{yy:void 0},parse:b(async t=>{const e=await _("packet",t),r=v.parser?.yy;if(!(r instanceof w))throw new Error("parser.parser?.yy was not a PacketDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");u.debug(e),L(e,r)},"parse")},Y=b((t,e,r,o)=>{const n=o.db,l=n.getConfig(),{rowHeight:a,paddingY:i,bitWidth:d,bitsPerRow:c}=l,p=n.getPacket(),s=n.getDiagramTitle(),h=a+i,g=h*(p.length+1)-(s?0:a),k=d*c+2,f=$(e);f.attr("viewbox",`0 0 ${k} ${g}`),B(f,g,k,l.useMaxWidth);for(const[x,y]of p.entries())G(f,y,x,l);f.append("text").text(s).attr("x",k/2).attr("y",g-h/2).attr("dominant-baseline","middle").attr("text-anchor","middle").attr("class","packetTitle")},"draw"),G=b((t,e,r,{rowHeight:o,paddingX:n,paddingY:l,bitWidth:a,bitsPerRow:i,showBits:d})=>{const c=t.append("g"),p=r*(o+l)+l;for(const s of e){const h=s.start%i*a+1,g=(s.end-s.start+1)*a-n;if(c.append("rect").attr("x",h).attr("y",p).attr("width",g).attr("height",o).attr("class","packetBlock"),c.append("text").attr("x",h+g/2).attr("y",p+o/2).attr("class","packetLabel").attr("dominant-baseline","middle").attr("text-anchor","middle").text(s.label),!d)continue;const k=s.end===s.start,f=p-2;c.append("text").attr("x",h+(k?g/2:0)).attr("y",f).attr("class","packetByte start").attr("dominant-baseline","auto").attr("text-anchor",k?"middle":"start").text(s.start),k||c.append("text").attr("x",h+g).attr("y",f).attr("class","packetByte end").attr("dominant-baseline","auto").attr("text-anchor","end").text(s.end)}},"drawWord"),O={draw:Y},j={byteFontSize:"10px",startByteColor:"black",endByteColor:"black",labelColor:"black",labelFontSize:"12px",titleColor:"black",titleFontSize:"14px",blockStrokeColor:"black",blockStrokeWidth:"1",blockFillColor:"#efefef"},q=b(({packet:t}={})=>{const e=m(j,t);return`
1
+ import{_ as b,E as m,I as $,d as B,l as u,b as C,a as S,p as D,q as T,g as E,s as F,F as P,G as z,y as A}from"./mermaid.core-B_cUK0gA.js";import{p as W}from"./chunk-4BX2VUAB-D4SAUSXH.js";import{p as _}from"./treemap-GDKQZRPO-CGjffbYp.js";import"./index-B0VAn5-V.js";import"./mermaid-VLURNSYL-D2mykrpe.js";import"./index-e-4cSkrt.js";import"./maximize-2-BPmhoPLp.js";import"./_baseUniq-DqfHtDwq.js";import"./_basePickBy-BiLKhh6-.js";import"./clone-R56dYs_d.js";var N=P.packet,w=class{constructor(){this.packet=[],this.setAccTitle=C,this.getAccTitle=S,this.setDiagramTitle=D,this.getDiagramTitle=T,this.getAccDescription=E,this.setAccDescription=F}static{b(this,"PacketDB")}getConfig(){const t=m({...N,...z().packet});return t.showBits&&(t.paddingY+=10),t}getPacket(){return this.packet}pushWord(t){t.length>0&&this.packet.push(t)}clear(){A(),this.packet=[]}},I=1e4,L=b((t,e)=>{W(t,e);let r=-1,o=[],n=1;const{bitsPerRow:l}=e.getConfig();for(let{start:a,end:i,bits:d,label:c}of t.blocks){if(a!==void 0&&i!==void 0&&i<a)throw new Error(`Packet block ${a} - ${i} is invalid. End must be greater than start.`);if(a??=r+1,a!==r+1)throw new Error(`Packet block ${a} - ${i??a} is not contiguous. It should start from ${r+1}.`);if(d===0)throw new Error(`Packet block ${a} is invalid. Cannot have a zero bit field.`);for(i??=a+(d??1)-1,d??=i-a+1,r=i,u.debug(`Packet block ${a} - ${r} with label ${c}`);o.length<=l+1&&e.getPacket().length<I;){const[p,s]=M({start:a,end:i,bits:d,label:c},n,l);if(o.push(p),p.end+1===n*l&&(e.pushWord(o),o=[],n++),!s)break;({start:a,end:i,bits:d,label:c}=s)}}e.pushWord(o)},"populate"),M=b((t,e,r)=>{if(t.start===void 0)throw new Error("start should have been set during first phase");if(t.end===void 0)throw new Error("end should have been set during first phase");if(t.start>t.end)throw new Error(`Block start ${t.start} is greater than block end ${t.end}.`);if(t.end+1<=e*r)return[t,void 0];const o=e*r-1,n=e*r;return[{start:t.start,end:o,label:t.label,bits:o-t.start},{start:n,end:t.end,label:t.label,bits:t.end-n}]},"getNextFittingBlock"),v={parser:{yy:void 0},parse:b(async t=>{const e=await _("packet",t),r=v.parser?.yy;if(!(r instanceof w))throw new Error("parser.parser?.yy was not a PacketDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");u.debug(e),L(e,r)},"parse")},Y=b((t,e,r,o)=>{const n=o.db,l=n.getConfig(),{rowHeight:a,paddingY:i,bitWidth:d,bitsPerRow:c}=l,p=n.getPacket(),s=n.getDiagramTitle(),h=a+i,g=h*(p.length+1)-(s?0:a),k=d*c+2,f=$(e);f.attr("viewbox",`0 0 ${k} ${g}`),B(f,g,k,l.useMaxWidth);for(const[x,y]of p.entries())G(f,y,x,l);f.append("text").text(s).attr("x",k/2).attr("y",g-h/2).attr("dominant-baseline","middle").attr("text-anchor","middle").attr("class","packetTitle")},"draw"),G=b((t,e,r,{rowHeight:o,paddingX:n,paddingY:l,bitWidth:a,bitsPerRow:i,showBits:d})=>{const c=t.append("g"),p=r*(o+l)+l;for(const s of e){const h=s.start%i*a+1,g=(s.end-s.start+1)*a-n;if(c.append("rect").attr("x",h).attr("y",p).attr("width",g).attr("height",o).attr("class","packetBlock"),c.append("text").attr("x",h+g/2).attr("y",p+o/2).attr("class","packetLabel").attr("dominant-baseline","middle").attr("text-anchor","middle").text(s.label),!d)continue;const k=s.end===s.start,f=p-2;c.append("text").attr("x",h+(k?g/2:0)).attr("y",f).attr("class","packetByte start").attr("dominant-baseline","auto").attr("text-anchor",k?"middle":"start").text(s.start),k||c.append("text").attr("x",h+g).attr("y",f).attr("class","packetByte end").attr("dominant-baseline","auto").attr("text-anchor","end").text(s.end)}},"drawWord"),O={draw:Y},j={byteFontSize:"10px",startByteColor:"black",endByteColor:"black",labelColor:"black",labelFontSize:"12px",titleColor:"black",titleFontSize:"14px",blockStrokeColor:"black",blockStrokeWidth:"1",blockFillColor:"#efefef"},q=b(({packet:t}={})=>{const e=m(j,t);return`
2
2
  .packetByte {
3
3
  font-size: ${e.byteFontSize};
4
4
  }
@@ -1 +1 @@
1
- import{r as l,P as p}from"./index-D8dkqP85.js";function s(e){return typeof e=="string"&&e.length>0?e:void 0}function f(e){return typeof e=="number"&&Number.isFinite(e)?e:void 0}function m(e){const c=l.useRef(!1);return l.useEffect(()=>{if(c.current)return;c.current=!0;let t=!1;const n=r=>{t||e.onError(new Error(r))},i=window.Dropbox;if(i===void 0){n("The Dropbox Chooser script has not loaded, so the picker cannot open. The `dropbox` provider declares it in `scripts`; check that the surface injects provider scripts and that the composed Content-Security-Policy admits https://www.dropbox.com.");return}const a=s(e.publicConfig.appKey);if(a===void 0){n("The `dropbox` provider's publicConfig declares no `appKey`, which the Dropbox Chooser requires.");return}if(typeof i.init!="function"){n("The loaded Dropbox Chooser script exposes no `Dropbox.init`, so its app key cannot be supplied. The framework injects the script without the vendor-documented `data-app-key` attribute because that key is per-application configuration, and `Dropbox.init({ appKey })` is the documented alternative.");return}return i.init({appKey:a}),i.choose({linkType:"direct",multiselect:e.constraints.maxFiles!==void 0&&e.constraints.maxFiles>1,folderselect:!1,...e.constraints.maxSize===void 0?{}:{sizeLimit:e.constraints.maxSize},success:r=>{if(t)return;const d=[];for(const o of r){const u=s(o.link);if(u===void 0){n('Dropbox returned a chosen file with no link. The Chooser must be opened with `linkType: "direct"` for its result to be browser-readable, which is what this provider declares.');return}d.push({kind:p.BROWSER_READABLE_URL,url:u,displayName:s(o.name),sizeBytes:f(o.bytes)})}e.onSelect(d)},cancel:()=>{t||e.onCancel()}}),()=>{t=!0}},[]),null}export{m as DropboxPicker};
1
+ import{r as l,P as p}from"./index-B0VAn5-V.js";function s(e){return typeof e=="string"&&e.length>0?e:void 0}function f(e){return typeof e=="number"&&Number.isFinite(e)?e:void 0}function m(e){const c=l.useRef(!1);return l.useEffect(()=>{if(c.current)return;c.current=!0;let t=!1;const n=r=>{t||e.onError(new Error(r))},i=window.Dropbox;if(i===void 0){n("The Dropbox Chooser script has not loaded, so the picker cannot open. The `dropbox` provider declares it in `scripts`; check that the surface injects provider scripts and that the composed Content-Security-Policy admits https://www.dropbox.com.");return}const a=s(e.publicConfig.appKey);if(a===void 0){n("The `dropbox` provider's publicConfig declares no `appKey`, which the Dropbox Chooser requires.");return}if(typeof i.init!="function"){n("The loaded Dropbox Chooser script exposes no `Dropbox.init`, so its app key cannot be supplied. The framework injects the script without the vendor-documented `data-app-key` attribute because that key is per-application configuration, and `Dropbox.init({ appKey })` is the documented alternative.");return}return i.init({appKey:a}),i.choose({linkType:"direct",multiselect:e.constraints.maxFiles!==void 0&&e.constraints.maxFiles>1,folderselect:!1,...e.constraints.maxSize===void 0?{}:{sizeLimit:e.constraints.maxSize},success:r=>{if(t)return;const d=[];for(const o of r){const u=s(o.link);if(u===void 0){n('Dropbox returned a chosen file with no link. The Chooser must be opened with `linkType: "direct"` for its result to be browser-readable, which is what this provider declares.');return}d.push({kind:p.BROWSER_READABLE_URL,url:u,displayName:s(o.name),sizeBytes:f(o.bytes)})}e.onSelect(d)},cancel:()=>{t||e.onCancel()}}),()=>{t=!0}},[]),null}export{m as DropboxPicker};
@@ -1,4 +1,4 @@
1
- import{g as vt}from"./chunk-55IACEB6-B-1eMtsJ.js";import{s as Dt}from"./chunk-QN33PNHL-DOWhVFKY.js";import{_ as l,b as wt,a as Vt,s as Lt,g as Mt,p as Bt,q as Ft,c as $,l as D,y as Yt,x as Pt,A as zt,B as Gt,o as Kt,r as Zt,u as Ut}from"./mermaid.core-bwWKwscf.js";import{s as jt}from"./index-D8dkqP85.js";import{c as Wt}from"./channel-BihP_0tn.js";import"./mermaid-VLURNSYL-BAygRTK6.js";import"./index-e-4cSkrt.js";import"./maximize-2-zJKkDRK0.js";var ut=(function(){var e=l(function(N,n,a,c){for(a=a||{},c=N.length;c--;a[N[c]]=n);return a},"o"),i=[6,8,10,22,24,26,28,33,34,35,36,37,40,43,44,50],d=[1,10],o=[1,11],h=[1,12],p=[1,13],R=[1,20],g=[1,21],m=[1,22],w=[1,23],K=[1,24],k=[1,19],tt=[1,25],Z=[1,26],S=[1,18],V=[1,33],et=[1,34],st=[1,35],it=[1,36],rt=[1,37],dt=[6,8,10,13,15,17,20,21,22,24,26,28,33,34,35,36,37,40,43,44,50,63,64,65,66,67],T=[1,42],O=[1,43],L=[1,52],M=[40,50,68,69],B=[1,63],F=[1,61],A=[1,58],Y=[1,62],P=[1,64],U=[6,8,10,13,17,22,24,26,28,33,34,35,36,37,40,41,42,43,44,48,49,50,63,64,65,66,67],pt=[63,64,65,66,67],ft=[1,81],yt=[1,80],_t=[1,78],gt=[1,79],bt=[6,10,42,47],C=[6,10,13,41,42,47,48,49],j=[1,89],W=[1,88],Q=[1,87],z=[19,56],mt=[1,98],Et=[1,97],nt=[19,56,58,60],at={trace:l(function(){},"trace"),yy:{},symbols_:{error:2,start:3,ER_DIAGRAM:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,entityName:11,relSpec:12,COLON:13,role:14,STYLE_SEPARATOR:15,idList:16,BLOCK_START:17,attributes:18,BLOCK_STOP:19,SQS:20,SQE:21,title:22,title_value:23,acc_title:24,acc_title_value:25,acc_descr:26,acc_descr_value:27,acc_descr_multiline_value:28,direction:29,classDefStatement:30,classStatement:31,styleStatement:32,direction_tb:33,direction_bt:34,direction_rl:35,direction_lr:36,CLASSDEF:37,stylesOpt:38,separator:39,UNICODE_TEXT:40,STYLE_TEXT:41,COMMA:42,CLASS:43,STYLE:44,style:45,styleComponent:46,SEMI:47,NUM:48,BRKT:49,ENTITY_NAME:50,attribute:51,attributeType:52,attributeName:53,attributeKeyTypeList:54,attributeComment:55,ATTRIBUTE_WORD:56,attributeKeyType:57,",":58,ATTRIBUTE_KEY:59,COMMENT:60,cardinality:61,relType:62,ZERO_OR_ONE:63,ZERO_OR_MORE:64,ONE_OR_MORE:65,ONLY_ONE:66,MD_PARENT:67,NON_IDENTIFYING:68,IDENTIFYING:69,WORD:70,$accept:0,$end:1},terminals_:{2:"error",4:"ER_DIAGRAM",6:"EOF",8:"SPACE",10:"NEWLINE",13:"COLON",15:"STYLE_SEPARATOR",17:"BLOCK_START",19:"BLOCK_STOP",20:"SQS",21:"SQE",22:"title",23:"title_value",24:"acc_title",25:"acc_title_value",26:"acc_descr",27:"acc_descr_value",28:"acc_descr_multiline_value",33:"direction_tb",34:"direction_bt",35:"direction_rl",36:"direction_lr",37:"CLASSDEF",40:"UNICODE_TEXT",41:"STYLE_TEXT",42:"COMMA",43:"CLASS",44:"STYLE",47:"SEMI",48:"NUM",49:"BRKT",50:"ENTITY_NAME",56:"ATTRIBUTE_WORD",58:",",59:"ATTRIBUTE_KEY",60:"COMMENT",63:"ZERO_OR_ONE",64:"ZERO_OR_MORE",65:"ONE_OR_MORE",66:"ONLY_ONE",67:"MD_PARENT",68:"NON_IDENTIFYING",69:"IDENTIFYING",70:"WORD"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,5],[9,9],[9,7],[9,7],[9,4],[9,6],[9,3],[9,5],[9,1],[9,3],[9,7],[9,9],[9,6],[9,8],[9,4],[9,6],[9,2],[9,2],[9,2],[9,1],[9,1],[9,1],[9,1],[9,1],[29,1],[29,1],[29,1],[29,1],[30,4],[16,1],[16,1],[16,3],[16,3],[31,3],[32,4],[38,1],[38,3],[45,1],[45,2],[39,1],[39,1],[39,1],[46,1],[46,1],[46,1],[46,1],[11,1],[11,1],[18,1],[18,2],[51,2],[51,3],[51,3],[51,4],[52,1],[53,1],[54,1],[54,3],[57,1],[55,1],[12,3],[61,1],[61,1],[61,1],[61,1],[61,1],[62,1],[62,1],[14,1],[14,1],[14,1]],performAction:l(function(n,a,c,r,u,t,G){var s=t.length-1;switch(u){case 1:break;case 2:this.$=[];break;case 3:t[s-1].push(t[s]),this.$=t[s-1];break;case 4:case 5:this.$=t[s];break;case 6:case 7:this.$=[];break;case 8:r.addEntity(t[s-4]),r.addEntity(t[s-2]),r.addRelationship(t[s-4],t[s],t[s-2],t[s-3]);break;case 9:r.addEntity(t[s-8]),r.addEntity(t[s-4]),r.addRelationship(t[s-8],t[s],t[s-4],t[s-5]),r.setClass([t[s-8]],t[s-6]),r.setClass([t[s-4]],t[s-2]);break;case 10:r.addEntity(t[s-6]),r.addEntity(t[s-2]),r.addRelationship(t[s-6],t[s],t[s-2],t[s-3]),r.setClass([t[s-6]],t[s-4]);break;case 11:r.addEntity(t[s-6]),r.addEntity(t[s-4]),r.addRelationship(t[s-6],t[s],t[s-4],t[s-5]),r.setClass([t[s-4]],t[s-2]);break;case 12:r.addEntity(t[s-3]),r.addAttributes(t[s-3],t[s-1]);break;case 13:r.addEntity(t[s-5]),r.addAttributes(t[s-5],t[s-1]),r.setClass([t[s-5]],t[s-3]);break;case 14:r.addEntity(t[s-2]);break;case 15:r.addEntity(t[s-4]),r.setClass([t[s-4]],t[s-2]);break;case 16:r.addEntity(t[s]);break;case 17:r.addEntity(t[s-2]),r.setClass([t[s-2]],t[s]);break;case 18:r.addEntity(t[s-6],t[s-4]),r.addAttributes(t[s-6],t[s-1]);break;case 19:r.addEntity(t[s-8],t[s-6]),r.addAttributes(t[s-8],t[s-1]),r.setClass([t[s-8]],t[s-3]);break;case 20:r.addEntity(t[s-5],t[s-3]);break;case 21:r.addEntity(t[s-7],t[s-5]),r.setClass([t[s-7]],t[s-2]);break;case 22:r.addEntity(t[s-3],t[s-1]);break;case 23:r.addEntity(t[s-5],t[s-3]),r.setClass([t[s-5]],t[s]);break;case 24:case 25:this.$=t[s].trim(),r.setAccTitle(this.$);break;case 26:case 27:this.$=t[s].trim(),r.setAccDescription(this.$);break;case 32:r.setDirection("TB");break;case 33:r.setDirection("BT");break;case 34:r.setDirection("RL");break;case 35:r.setDirection("LR");break;case 36:this.$=t[s-3],r.addClass(t[s-2],t[s-1]);break;case 37:case 38:case 56:case 64:this.$=[t[s]];break;case 39:case 40:this.$=t[s-2].concat([t[s]]);break;case 41:this.$=t[s-2],r.setClass(t[s-1],t[s]);break;case 42:this.$=t[s-3],r.addCssStyles(t[s-2],t[s-1]);break;case 43:this.$=[t[s]];break;case 44:t[s-2].push(t[s]),this.$=t[s-2];break;case 46:this.$=t[s-1]+t[s];break;case 54:case 76:case 77:this.$=t[s].replace(/"/g,"");break;case 55:case 78:this.$=t[s];break;case 57:t[s].push(t[s-1]),this.$=t[s];break;case 58:this.$={type:t[s-1],name:t[s]};break;case 59:this.$={type:t[s-2],name:t[s-1],keys:t[s]};break;case 60:this.$={type:t[s-2],name:t[s-1],comment:t[s]};break;case 61:this.$={type:t[s-3],name:t[s-2],keys:t[s-1],comment:t[s]};break;case 62:case 63:case 66:this.$=t[s];break;case 65:t[s-2].push(t[s]),this.$=t[s-2];break;case 67:this.$=t[s].replace(/"/g,"");break;case 68:this.$={cardA:t[s],relType:t[s-1],cardB:t[s-2]};break;case 69:this.$=r.Cardinality.ZERO_OR_ONE;break;case 70:this.$=r.Cardinality.ZERO_OR_MORE;break;case 71:this.$=r.Cardinality.ONE_OR_MORE;break;case 72:this.$=r.Cardinality.ONLY_ONE;break;case 73:this.$=r.Cardinality.MD_PARENT;break;case 74:this.$=r.Identification.NON_IDENTIFYING;break;case 75:this.$=r.Identification.IDENTIFYING;break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},e(i,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:9,22:d,24:o,26:h,28:p,29:14,30:15,31:16,32:17,33:R,34:g,35:m,36:w,37:K,40:k,43:tt,44:Z,50:S},e(i,[2,7],{1:[2,1]}),e(i,[2,3]),{9:27,11:9,22:d,24:o,26:h,28:p,29:14,30:15,31:16,32:17,33:R,34:g,35:m,36:w,37:K,40:k,43:tt,44:Z,50:S},e(i,[2,5]),e(i,[2,6]),e(i,[2,16],{12:28,61:32,15:[1,29],17:[1,30],20:[1,31],63:V,64:et,65:st,66:it,67:rt}),{23:[1,38]},{25:[1,39]},{27:[1,40]},e(i,[2,27]),e(i,[2,28]),e(i,[2,29]),e(i,[2,30]),e(i,[2,31]),e(dt,[2,54]),e(dt,[2,55]),e(i,[2,32]),e(i,[2,33]),e(i,[2,34]),e(i,[2,35]),{16:41,40:T,41:O},{16:44,40:T,41:O},{16:45,40:T,41:O},e(i,[2,4]),{11:46,40:k,50:S},{16:47,40:T,41:O},{18:48,19:[1,49],51:50,52:51,56:L},{11:53,40:k,50:S},{62:54,68:[1,55],69:[1,56]},e(M,[2,69]),e(M,[2,70]),e(M,[2,71]),e(M,[2,72]),e(M,[2,73]),e(i,[2,24]),e(i,[2,25]),e(i,[2,26]),{13:B,38:57,41:F,42:A,45:59,46:60,48:Y,49:P},e(U,[2,37]),e(U,[2,38]),{16:65,40:T,41:O,42:A},{13:B,38:66,41:F,42:A,45:59,46:60,48:Y,49:P},{13:[1,67],15:[1,68]},e(i,[2,17],{61:32,12:69,17:[1,70],42:A,63:V,64:et,65:st,66:it,67:rt}),{19:[1,71]},e(i,[2,14]),{18:72,19:[2,56],51:50,52:51,56:L},{53:73,56:[1,74]},{56:[2,62]},{21:[1,75]},{61:76,63:V,64:et,65:st,66:it,67:rt},e(pt,[2,74]),e(pt,[2,75]),{6:ft,10:yt,39:77,42:_t,47:gt},{40:[1,82],41:[1,83]},e(bt,[2,43],{46:84,13:B,41:F,48:Y,49:P}),e(C,[2,45]),e(C,[2,50]),e(C,[2,51]),e(C,[2,52]),e(C,[2,53]),e(i,[2,41],{42:A}),{6:ft,10:yt,39:85,42:_t,47:gt},{14:86,40:j,50:W,70:Q},{16:90,40:T,41:O},{11:91,40:k,50:S},{18:92,19:[1,93],51:50,52:51,56:L},e(i,[2,12]),{19:[2,57]},e(z,[2,58],{54:94,55:95,57:96,59:mt,60:Et}),e([19,56,59,60],[2,63]),e(i,[2,22],{15:[1,100],17:[1,99]}),e([40,50],[2,68]),e(i,[2,36]),{13:B,41:F,45:101,46:60,48:Y,49:P},e(i,[2,47]),e(i,[2,48]),e(i,[2,49]),e(U,[2,39]),e(U,[2,40]),e(C,[2,46]),e(i,[2,42]),e(i,[2,8]),e(i,[2,76]),e(i,[2,77]),e(i,[2,78]),{13:[1,102],42:A},{13:[1,104],15:[1,103]},{19:[1,105]},e(i,[2,15]),e(z,[2,59],{55:106,58:[1,107],60:Et}),e(z,[2,60]),e(nt,[2,64]),e(z,[2,67]),e(nt,[2,66]),{18:108,19:[1,109],51:50,52:51,56:L},{16:110,40:T,41:O},e(bt,[2,44],{46:84,13:B,41:F,48:Y,49:P}),{14:111,40:j,50:W,70:Q},{16:112,40:T,41:O},{14:113,40:j,50:W,70:Q},e(i,[2,13]),e(z,[2,61]),{57:114,59:mt},{19:[1,115]},e(i,[2,20]),e(i,[2,23],{17:[1,116],42:A}),e(i,[2,11]),{13:[1,117],42:A},e(i,[2,10]),e(nt,[2,65]),e(i,[2,18]),{18:118,19:[1,119],51:50,52:51,56:L},{14:120,40:j,50:W,70:Q},{19:[1,121]},e(i,[2,21]),e(i,[2,9]),e(i,[2,19])],defaultActions:{52:[2,62],72:[2,57]},parseError:l(function(n,a){if(a.recoverable)this.trace(n);else{var c=new Error(n);throw c.hash=a,c}},"parseError"),parse:l(function(n){var a=this,c=[0],r=[],u=[null],t=[],G=this.table,s="",q=0,kt=0,Rt=2,St=1,xt=t.slice.call(arguments,1),f=Object.create(this.lexer),x={yy:{}};for(var ct in this.yy)Object.prototype.hasOwnProperty.call(this.yy,ct)&&(x.yy[ct]=this.yy[ct]);f.setInput(n,x.yy),x.yy.lexer=f,x.yy.parser=this,typeof f.yylloc>"u"&&(f.yylloc={});var ot=f.yylloc;t.push(ot);var It=f.options&&f.options.ranges;typeof x.yy.parseError=="function"?this.parseError=x.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Ct(_){c.length=c.length-2*_,u.length=u.length-_,t.length=t.length-_}l(Ct,"popStack");function Tt(){var _;return _=r.pop()||f.lex()||St,typeof _!="number"&&(_ instanceof Array&&(r=_,_=r.pop()),_=a.symbols_[_]||_),_}l(Tt,"lex");for(var y,I,b,lt,v={},H,E,Ot,J;;){if(I=c[c.length-1],this.defaultActions[I]?b=this.defaultActions[I]:((y===null||typeof y>"u")&&(y=Tt()),b=G[I]&&G[I][y]),typeof b>"u"||!b.length||!b[0]){var ht="";J=[];for(H in G[I])this.terminals_[H]&&H>Rt&&J.push("'"+this.terminals_[H]+"'");f.showPosition?ht="Parse error on line "+(q+1)+`:
1
+ import{g as vt}from"./chunk-55IACEB6-CSgJZSYU.js";import{s as Dt}from"./chunk-QN33PNHL-DyqXU-AC.js";import{_ as l,b as wt,a as Vt,s as Lt,g as Mt,p as Bt,q as Ft,c as $,l as D,y as Yt,x as Pt,A as zt,B as Gt,o as Kt,r as Zt,u as Ut}from"./mermaid.core-B_cUK0gA.js";import{s as jt}from"./index-B0VAn5-V.js";import{c as Wt}from"./channel-8XWMyg2t.js";import"./mermaid-VLURNSYL-D2mykrpe.js";import"./index-e-4cSkrt.js";import"./maximize-2-BPmhoPLp.js";var ut=(function(){var e=l(function(N,n,a,c){for(a=a||{},c=N.length;c--;a[N[c]]=n);return a},"o"),i=[6,8,10,22,24,26,28,33,34,35,36,37,40,43,44,50],d=[1,10],o=[1,11],h=[1,12],p=[1,13],R=[1,20],g=[1,21],m=[1,22],w=[1,23],K=[1,24],k=[1,19],tt=[1,25],Z=[1,26],S=[1,18],V=[1,33],et=[1,34],st=[1,35],it=[1,36],rt=[1,37],dt=[6,8,10,13,15,17,20,21,22,24,26,28,33,34,35,36,37,40,43,44,50,63,64,65,66,67],T=[1,42],O=[1,43],L=[1,52],M=[40,50,68,69],B=[1,63],F=[1,61],A=[1,58],Y=[1,62],P=[1,64],U=[6,8,10,13,17,22,24,26,28,33,34,35,36,37,40,41,42,43,44,48,49,50,63,64,65,66,67],pt=[63,64,65,66,67],ft=[1,81],yt=[1,80],_t=[1,78],gt=[1,79],bt=[6,10,42,47],C=[6,10,13,41,42,47,48,49],j=[1,89],W=[1,88],Q=[1,87],z=[19,56],mt=[1,98],Et=[1,97],nt=[19,56,58,60],at={trace:l(function(){},"trace"),yy:{},symbols_:{error:2,start:3,ER_DIAGRAM:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,entityName:11,relSpec:12,COLON:13,role:14,STYLE_SEPARATOR:15,idList:16,BLOCK_START:17,attributes:18,BLOCK_STOP:19,SQS:20,SQE:21,title:22,title_value:23,acc_title:24,acc_title_value:25,acc_descr:26,acc_descr_value:27,acc_descr_multiline_value:28,direction:29,classDefStatement:30,classStatement:31,styleStatement:32,direction_tb:33,direction_bt:34,direction_rl:35,direction_lr:36,CLASSDEF:37,stylesOpt:38,separator:39,UNICODE_TEXT:40,STYLE_TEXT:41,COMMA:42,CLASS:43,STYLE:44,style:45,styleComponent:46,SEMI:47,NUM:48,BRKT:49,ENTITY_NAME:50,attribute:51,attributeType:52,attributeName:53,attributeKeyTypeList:54,attributeComment:55,ATTRIBUTE_WORD:56,attributeKeyType:57,",":58,ATTRIBUTE_KEY:59,COMMENT:60,cardinality:61,relType:62,ZERO_OR_ONE:63,ZERO_OR_MORE:64,ONE_OR_MORE:65,ONLY_ONE:66,MD_PARENT:67,NON_IDENTIFYING:68,IDENTIFYING:69,WORD:70,$accept:0,$end:1},terminals_:{2:"error",4:"ER_DIAGRAM",6:"EOF",8:"SPACE",10:"NEWLINE",13:"COLON",15:"STYLE_SEPARATOR",17:"BLOCK_START",19:"BLOCK_STOP",20:"SQS",21:"SQE",22:"title",23:"title_value",24:"acc_title",25:"acc_title_value",26:"acc_descr",27:"acc_descr_value",28:"acc_descr_multiline_value",33:"direction_tb",34:"direction_bt",35:"direction_rl",36:"direction_lr",37:"CLASSDEF",40:"UNICODE_TEXT",41:"STYLE_TEXT",42:"COMMA",43:"CLASS",44:"STYLE",47:"SEMI",48:"NUM",49:"BRKT",50:"ENTITY_NAME",56:"ATTRIBUTE_WORD",58:",",59:"ATTRIBUTE_KEY",60:"COMMENT",63:"ZERO_OR_ONE",64:"ZERO_OR_MORE",65:"ONE_OR_MORE",66:"ONLY_ONE",67:"MD_PARENT",68:"NON_IDENTIFYING",69:"IDENTIFYING",70:"WORD"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,5],[9,9],[9,7],[9,7],[9,4],[9,6],[9,3],[9,5],[9,1],[9,3],[9,7],[9,9],[9,6],[9,8],[9,4],[9,6],[9,2],[9,2],[9,2],[9,1],[9,1],[9,1],[9,1],[9,1],[29,1],[29,1],[29,1],[29,1],[30,4],[16,1],[16,1],[16,3],[16,3],[31,3],[32,4],[38,1],[38,3],[45,1],[45,2],[39,1],[39,1],[39,1],[46,1],[46,1],[46,1],[46,1],[11,1],[11,1],[18,1],[18,2],[51,2],[51,3],[51,3],[51,4],[52,1],[53,1],[54,1],[54,3],[57,1],[55,1],[12,3],[61,1],[61,1],[61,1],[61,1],[61,1],[62,1],[62,1],[14,1],[14,1],[14,1]],performAction:l(function(n,a,c,r,u,t,G){var s=t.length-1;switch(u){case 1:break;case 2:this.$=[];break;case 3:t[s-1].push(t[s]),this.$=t[s-1];break;case 4:case 5:this.$=t[s];break;case 6:case 7:this.$=[];break;case 8:r.addEntity(t[s-4]),r.addEntity(t[s-2]),r.addRelationship(t[s-4],t[s],t[s-2],t[s-3]);break;case 9:r.addEntity(t[s-8]),r.addEntity(t[s-4]),r.addRelationship(t[s-8],t[s],t[s-4],t[s-5]),r.setClass([t[s-8]],t[s-6]),r.setClass([t[s-4]],t[s-2]);break;case 10:r.addEntity(t[s-6]),r.addEntity(t[s-2]),r.addRelationship(t[s-6],t[s],t[s-2],t[s-3]),r.setClass([t[s-6]],t[s-4]);break;case 11:r.addEntity(t[s-6]),r.addEntity(t[s-4]),r.addRelationship(t[s-6],t[s],t[s-4],t[s-5]),r.setClass([t[s-4]],t[s-2]);break;case 12:r.addEntity(t[s-3]),r.addAttributes(t[s-3],t[s-1]);break;case 13:r.addEntity(t[s-5]),r.addAttributes(t[s-5],t[s-1]),r.setClass([t[s-5]],t[s-3]);break;case 14:r.addEntity(t[s-2]);break;case 15:r.addEntity(t[s-4]),r.setClass([t[s-4]],t[s-2]);break;case 16:r.addEntity(t[s]);break;case 17:r.addEntity(t[s-2]),r.setClass([t[s-2]],t[s]);break;case 18:r.addEntity(t[s-6],t[s-4]),r.addAttributes(t[s-6],t[s-1]);break;case 19:r.addEntity(t[s-8],t[s-6]),r.addAttributes(t[s-8],t[s-1]),r.setClass([t[s-8]],t[s-3]);break;case 20:r.addEntity(t[s-5],t[s-3]);break;case 21:r.addEntity(t[s-7],t[s-5]),r.setClass([t[s-7]],t[s-2]);break;case 22:r.addEntity(t[s-3],t[s-1]);break;case 23:r.addEntity(t[s-5],t[s-3]),r.setClass([t[s-5]],t[s]);break;case 24:case 25:this.$=t[s].trim(),r.setAccTitle(this.$);break;case 26:case 27:this.$=t[s].trim(),r.setAccDescription(this.$);break;case 32:r.setDirection("TB");break;case 33:r.setDirection("BT");break;case 34:r.setDirection("RL");break;case 35:r.setDirection("LR");break;case 36:this.$=t[s-3],r.addClass(t[s-2],t[s-1]);break;case 37:case 38:case 56:case 64:this.$=[t[s]];break;case 39:case 40:this.$=t[s-2].concat([t[s]]);break;case 41:this.$=t[s-2],r.setClass(t[s-1],t[s]);break;case 42:this.$=t[s-3],r.addCssStyles(t[s-2],t[s-1]);break;case 43:this.$=[t[s]];break;case 44:t[s-2].push(t[s]),this.$=t[s-2];break;case 46:this.$=t[s-1]+t[s];break;case 54:case 76:case 77:this.$=t[s].replace(/"/g,"");break;case 55:case 78:this.$=t[s];break;case 57:t[s].push(t[s-1]),this.$=t[s];break;case 58:this.$={type:t[s-1],name:t[s]};break;case 59:this.$={type:t[s-2],name:t[s-1],keys:t[s]};break;case 60:this.$={type:t[s-2],name:t[s-1],comment:t[s]};break;case 61:this.$={type:t[s-3],name:t[s-2],keys:t[s-1],comment:t[s]};break;case 62:case 63:case 66:this.$=t[s];break;case 65:t[s-2].push(t[s]),this.$=t[s-2];break;case 67:this.$=t[s].replace(/"/g,"");break;case 68:this.$={cardA:t[s],relType:t[s-1],cardB:t[s-2]};break;case 69:this.$=r.Cardinality.ZERO_OR_ONE;break;case 70:this.$=r.Cardinality.ZERO_OR_MORE;break;case 71:this.$=r.Cardinality.ONE_OR_MORE;break;case 72:this.$=r.Cardinality.ONLY_ONE;break;case 73:this.$=r.Cardinality.MD_PARENT;break;case 74:this.$=r.Identification.NON_IDENTIFYING;break;case 75:this.$=r.Identification.IDENTIFYING;break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},e(i,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:9,22:d,24:o,26:h,28:p,29:14,30:15,31:16,32:17,33:R,34:g,35:m,36:w,37:K,40:k,43:tt,44:Z,50:S},e(i,[2,7],{1:[2,1]}),e(i,[2,3]),{9:27,11:9,22:d,24:o,26:h,28:p,29:14,30:15,31:16,32:17,33:R,34:g,35:m,36:w,37:K,40:k,43:tt,44:Z,50:S},e(i,[2,5]),e(i,[2,6]),e(i,[2,16],{12:28,61:32,15:[1,29],17:[1,30],20:[1,31],63:V,64:et,65:st,66:it,67:rt}),{23:[1,38]},{25:[1,39]},{27:[1,40]},e(i,[2,27]),e(i,[2,28]),e(i,[2,29]),e(i,[2,30]),e(i,[2,31]),e(dt,[2,54]),e(dt,[2,55]),e(i,[2,32]),e(i,[2,33]),e(i,[2,34]),e(i,[2,35]),{16:41,40:T,41:O},{16:44,40:T,41:O},{16:45,40:T,41:O},e(i,[2,4]),{11:46,40:k,50:S},{16:47,40:T,41:O},{18:48,19:[1,49],51:50,52:51,56:L},{11:53,40:k,50:S},{62:54,68:[1,55],69:[1,56]},e(M,[2,69]),e(M,[2,70]),e(M,[2,71]),e(M,[2,72]),e(M,[2,73]),e(i,[2,24]),e(i,[2,25]),e(i,[2,26]),{13:B,38:57,41:F,42:A,45:59,46:60,48:Y,49:P},e(U,[2,37]),e(U,[2,38]),{16:65,40:T,41:O,42:A},{13:B,38:66,41:F,42:A,45:59,46:60,48:Y,49:P},{13:[1,67],15:[1,68]},e(i,[2,17],{61:32,12:69,17:[1,70],42:A,63:V,64:et,65:st,66:it,67:rt}),{19:[1,71]},e(i,[2,14]),{18:72,19:[2,56],51:50,52:51,56:L},{53:73,56:[1,74]},{56:[2,62]},{21:[1,75]},{61:76,63:V,64:et,65:st,66:it,67:rt},e(pt,[2,74]),e(pt,[2,75]),{6:ft,10:yt,39:77,42:_t,47:gt},{40:[1,82],41:[1,83]},e(bt,[2,43],{46:84,13:B,41:F,48:Y,49:P}),e(C,[2,45]),e(C,[2,50]),e(C,[2,51]),e(C,[2,52]),e(C,[2,53]),e(i,[2,41],{42:A}),{6:ft,10:yt,39:85,42:_t,47:gt},{14:86,40:j,50:W,70:Q},{16:90,40:T,41:O},{11:91,40:k,50:S},{18:92,19:[1,93],51:50,52:51,56:L},e(i,[2,12]),{19:[2,57]},e(z,[2,58],{54:94,55:95,57:96,59:mt,60:Et}),e([19,56,59,60],[2,63]),e(i,[2,22],{15:[1,100],17:[1,99]}),e([40,50],[2,68]),e(i,[2,36]),{13:B,41:F,45:101,46:60,48:Y,49:P},e(i,[2,47]),e(i,[2,48]),e(i,[2,49]),e(U,[2,39]),e(U,[2,40]),e(C,[2,46]),e(i,[2,42]),e(i,[2,8]),e(i,[2,76]),e(i,[2,77]),e(i,[2,78]),{13:[1,102],42:A},{13:[1,104],15:[1,103]},{19:[1,105]},e(i,[2,15]),e(z,[2,59],{55:106,58:[1,107],60:Et}),e(z,[2,60]),e(nt,[2,64]),e(z,[2,67]),e(nt,[2,66]),{18:108,19:[1,109],51:50,52:51,56:L},{16:110,40:T,41:O},e(bt,[2,44],{46:84,13:B,41:F,48:Y,49:P}),{14:111,40:j,50:W,70:Q},{16:112,40:T,41:O},{14:113,40:j,50:W,70:Q},e(i,[2,13]),e(z,[2,61]),{57:114,59:mt},{19:[1,115]},e(i,[2,20]),e(i,[2,23],{17:[1,116],42:A}),e(i,[2,11]),{13:[1,117],42:A},e(i,[2,10]),e(nt,[2,65]),e(i,[2,18]),{18:118,19:[1,119],51:50,52:51,56:L},{14:120,40:j,50:W,70:Q},{19:[1,121]},e(i,[2,21]),e(i,[2,9]),e(i,[2,19])],defaultActions:{52:[2,62],72:[2,57]},parseError:l(function(n,a){if(a.recoverable)this.trace(n);else{var c=new Error(n);throw c.hash=a,c}},"parseError"),parse:l(function(n){var a=this,c=[0],r=[],u=[null],t=[],G=this.table,s="",q=0,kt=0,Rt=2,St=1,xt=t.slice.call(arguments,1),f=Object.create(this.lexer),x={yy:{}};for(var ct in this.yy)Object.prototype.hasOwnProperty.call(this.yy,ct)&&(x.yy[ct]=this.yy[ct]);f.setInput(n,x.yy),x.yy.lexer=f,x.yy.parser=this,typeof f.yylloc>"u"&&(f.yylloc={});var ot=f.yylloc;t.push(ot);var It=f.options&&f.options.ranges;typeof x.yy.parseError=="function"?this.parseError=x.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Ct(_){c.length=c.length-2*_,u.length=u.length-_,t.length=t.length-_}l(Ct,"popStack");function Tt(){var _;return _=r.pop()||f.lex()||St,typeof _!="number"&&(_ instanceof Array&&(r=_,_=r.pop()),_=a.symbols_[_]||_),_}l(Tt,"lex");for(var y,I,b,lt,v={},H,E,Ot,J;;){if(I=c[c.length-1],this.defaultActions[I]?b=this.defaultActions[I]:((y===null||typeof y>"u")&&(y=Tt()),b=G[I]&&G[I][y]),typeof b>"u"||!b.length||!b[0]){var ht="";J=[];for(H in G[I])this.terminals_[H]&&H>Rt&&J.push("'"+this.terminals_[H]+"'");f.showPosition?ht="Parse error on line "+(q+1)+`:
2
2
  `+f.showPosition()+`
3
3
  Expecting `+J.join(", ")+", got '"+(this.terminals_[y]||y)+"'":ht="Parse error on line "+(q+1)+": Unexpected "+(y==St?"end of input":"'"+(this.terminals_[y]||y)+"'"),this.parseError(ht,{text:f.match,token:this.terminals_[y]||y,line:f.yylineno,loc:ot,expected:J})}if(b[0]instanceof Array&&b.length>1)throw new Error("Parse Error: multiple actions possible at state: "+I+", token: "+y);switch(b[0]){case 1:c.push(y),u.push(f.yytext),t.push(f.yylloc),c.push(b[1]),y=null,kt=f.yyleng,s=f.yytext,q=f.yylineno,ot=f.yylloc;break;case 2:if(E=this.productions_[b[1]][1],v.$=u[u.length-E],v._$={first_line:t[t.length-(E||1)].first_line,last_line:t[t.length-1].last_line,first_column:t[t.length-(E||1)].first_column,last_column:t[t.length-1].last_column},It&&(v._$.range=[t[t.length-(E||1)].range[0],t[t.length-1].range[1]]),lt=this.performAction.apply(v,[s,kt,q,x.yy,b[1],u,t].concat(xt)),typeof lt<"u")return lt;E&&(c=c.slice(0,-1*E*2),u=u.slice(0,-1*E),t=t.slice(0,-1*E)),c.push(this.productions_[b[1]][0]),u.push(v.$),t.push(v._$),Ot=G[c[c.length-2]][c[c.length-1]],c.push(Ot);break;case 3:return!0}}return!0},"parse")},Nt=(function(){var N={EOF:1,parseError:l(function(a,c){if(this.yy.parser)this.yy.parser.parseError(a,c);else throw new Error(a)},"parseError"),setInput:l(function(n,a){return this.yy=a||this.yy||{},this._input=n,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:l(function(){var n=this._input[0];this.yytext+=n,this.yyleng++,this.offset++,this.match+=n,this.matched+=n;var a=n.match(/(?:\r\n?|\n).*/g);return a?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),n},"input"),unput:l(function(n){var a=n.length,c=n.split(/(?:\r\n?|\n)/g);this._input=n+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-a),this.offset-=a;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),c.length-1&&(this.yylineno-=c.length-1);var u=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:c?(c.length===r.length?this.yylloc.first_column:0)+r[r.length-c.length].length-c[0].length:this.yylloc.first_column-a},this.options.ranges&&(this.yylloc.range=[u[0],u[0]+this.yyleng-a]),this.yyleng=this.yytext.length,this},"unput"),more:l(function(){return this._more=!0,this},"more"),reject:l(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
4
4
  `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:l(function(n){this.unput(this.match.slice(n))},"less"),pastInput:l(function(){var n=this.matched.substr(0,this.matched.length-this.match.length);return(n.length>20?"...":"")+n.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:l(function(){var n=this.match;return n.length<20&&(n+=this._input.substr(0,20-n.length)),(n.substr(0,20)+(n.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:l(function(){var n=this.pastInput(),a=new Array(n.length+1).join("-");return n+this.upcomingInput()+`
@@ -1,4 +1,4 @@
1
- import{g as Yt}from"./chunk-FMBD7UC4-C_LJMr3H.js";import{_ as A,n as Pt,l as $,c as g1,o as qt,r as Ht,u as st,b as Xt,s as Qt,p as Jt,a as Zt,g as $t,q as te,j as ee,t as se,J as ie,v as re,x as et,y as ae,z as ne,A as ue}from"./mermaid.core-bwWKwscf.js";import{g as oe}from"./chunk-55IACEB6-B-1eMtsJ.js";import{s as le}from"./chunk-QN33PNHL-DOWhVFKY.js";import{s as E1}from"./index-D8dkqP85.js";import{c as ce}from"./channel-BihP_0tn.js";import"./mermaid-VLURNSYL-BAygRTK6.js";import"./index-e-4cSkrt.js";import"./maximize-2-zJKkDRK0.js";var he="flowchart-",de=class{constructor(){this.vertexCounter=0,this.config=g1(),this.vertices=new Map,this.edges=[],this.classes=new Map,this.subGraphs=[],this.subGraphLookup=new Map,this.tooltips=new Map,this.subCount=0,this.firstGraphFlag=!0,this.secCount=-1,this.posCrossRef=[],this.funs=[],this.setAccTitle=Xt,this.setAccDescription=Qt,this.setDiagramTitle=Jt,this.getAccTitle=Zt,this.getAccDescription=$t,this.getDiagramTitle=te,this.funs.push(this.setupToolTips.bind(this)),this.addVertex=this.addVertex.bind(this),this.firstGraph=this.firstGraph.bind(this),this.setDirection=this.setDirection.bind(this),this.addSubGraph=this.addSubGraph.bind(this),this.addLink=this.addLink.bind(this),this.setLink=this.setLink.bind(this),this.updateLink=this.updateLink.bind(this),this.addClass=this.addClass.bind(this),this.setClass=this.setClass.bind(this),this.destructLink=this.destructLink.bind(this),this.setClickEvent=this.setClickEvent.bind(this),this.setTooltip=this.setTooltip.bind(this),this.updateLinkInterpolate=this.updateLinkInterpolate.bind(this),this.setClickFun=this.setClickFun.bind(this),this.bindFunctions=this.bindFunctions.bind(this),this.lex={firstGraph:this.firstGraph.bind(this)},this.clear(),this.setGen("gen-2")}static{A(this,"FlowDB")}sanitizeText(t){return ee.sanitizeText(t,this.config)}lookUpDomId(t){for(const i of this.vertices.values())if(i.id===t)return i.domId;return t}addVertex(t,i,r,a,o,d,l={},b){if(!t||t.trim().length===0)return;let u;if(b!==void 0){let D;b.includes(`
1
+ import{g as Yt}from"./chunk-FMBD7UC4-miRsz_bp.js";import{_ as A,n as Pt,l as $,c as g1,o as qt,r as Ht,u as st,b as Xt,s as Qt,p as Jt,a as Zt,g as $t,q as te,j as ee,t as se,J as ie,v as re,x as et,y as ae,z as ne,A as ue}from"./mermaid.core-B_cUK0gA.js";import{g as oe}from"./chunk-55IACEB6-CSgJZSYU.js";import{s as le}from"./chunk-QN33PNHL-DyqXU-AC.js";import{s as E1}from"./index-B0VAn5-V.js";import{c as ce}from"./channel-8XWMyg2t.js";import"./mermaid-VLURNSYL-D2mykrpe.js";import"./index-e-4cSkrt.js";import"./maximize-2-BPmhoPLp.js";var he="flowchart-",de=class{constructor(){this.vertexCounter=0,this.config=g1(),this.vertices=new Map,this.edges=[],this.classes=new Map,this.subGraphs=[],this.subGraphLookup=new Map,this.tooltips=new Map,this.subCount=0,this.firstGraphFlag=!0,this.secCount=-1,this.posCrossRef=[],this.funs=[],this.setAccTitle=Xt,this.setAccDescription=Qt,this.setDiagramTitle=Jt,this.getAccTitle=Zt,this.getAccDescription=$t,this.getDiagramTitle=te,this.funs.push(this.setupToolTips.bind(this)),this.addVertex=this.addVertex.bind(this),this.firstGraph=this.firstGraph.bind(this),this.setDirection=this.setDirection.bind(this),this.addSubGraph=this.addSubGraph.bind(this),this.addLink=this.addLink.bind(this),this.setLink=this.setLink.bind(this),this.updateLink=this.updateLink.bind(this),this.addClass=this.addClass.bind(this),this.setClass=this.setClass.bind(this),this.destructLink=this.destructLink.bind(this),this.setClickEvent=this.setClickEvent.bind(this),this.setTooltip=this.setTooltip.bind(this),this.updateLinkInterpolate=this.updateLinkInterpolate.bind(this),this.setClickFun=this.setClickFun.bind(this),this.bindFunctions=this.bindFunctions.bind(this),this.lex={firstGraph:this.firstGraph.bind(this)},this.clear(),this.setGen("gen-2")}static{A(this,"FlowDB")}sanitizeText(t){return ee.sanitizeText(t,this.config)}lookUpDomId(t){for(const i of this.vertices.values())if(i.id===t)return i.domId;return t}addVertex(t,i,r,a,o,d,l={},b){if(!t||t.trim().length===0)return;let u;if(b!==void 0){let D;b.includes(`
2
2
  `)?D=b+`
3
3
  `:D=`{
4
4
  `+b+`
@@ -1 +1 @@
1
- import{u as w,F as O,e as b,j as e,C as W,f as V,h as Q,i as Z,c as C,k as ee,l as te,m as z,n as K,o as P,T as se,p as ne,q as re,t as h,I as A,v as oe,w as he,x as _e,B as H,y as Y,z as k,A as Ne,D as v,E as je,r as T,S as G,G as D,H as ae,J as ce,K as I,M as S,N as F,O as Ee,Q as ie,U as ye,V as Ce,W as Oe,X as Le,Y as we,Z as Ae,$ as Te,a0 as Ie}from"./index-D8dkqP85.js";const x=O.LOW_LEVEL_AI_ACTOR,le={coordinator:"role_coordinator",task_planner:"role_task_planner",operator:"role_operator",analyzer:"role_analyzer",reviewer:"role_reviewer",human_in_the_loop:"role_human_in_the_loop",flow_execution:"role_flow_execution"},Se={agentic:"mode_agentic",flow_execution:"mode_flow_execution",human_interaction:"mode_human_interaction"},ve={agentic:"modeDesc_agentic",flow_execution:"modeDesc_flow_execution",human_interaction:"modeDesc_human_interaction"},de={coordinator:h.USERS,task_planner:h.BOOK,operator:h.WRENCH,analyzer:h.SEARCH,reviewer:h.CHECK_CIRCLE,human_in_the_loop:h.LOCK,flow_execution:h.ARROW_RIGHT},be={agentic:h.BRAIN,flow_execution:h.ARROW_RIGHT,human_interaction:h.USERS},Re={coordinator:"default",task_planner:"default",operator:"secondary",analyzer:"secondary",reviewer:"outline",human_in_the_loop:"destructive",flow_execution:"outline"},ue={idle:"bg-muted-foreground/40",executing:"bg-primary animate-pulse",blocked:"bg-warning",completed:"bg-success"},Me={idle:"status_idle",executing:"status_executing",blocked:"status_blocked",completed:"status_completed"},dt=({systemName:t,actors:s,systemRef:o,executions:r,className:n,children:c,...l})=>{const{tComponent:m,isReady:f}=w({component:x}),_=je(),[N,d]=T.useState("grid"),a=s,u=r??_?.executions,i=o&&_?.isLoading&&!a,E=T.useMemo(()=>{if(!a)return new Map;const p=new Map;for(const j of a)p.set(j.roleCategory,(p.get(j.roleCategory)??0)+1);return p},[a]);return f?i?e.jsxs("div",{className:C("flex flex-col gap-card",n),"aria-label":m(x,"loading"),...l,children:[e.jsx(G,{className:"h-6 w-48"}),e.jsxs("div",{className:"grid gap-card sm:grid-cols-2 lg:grid-cols-3",children:[e.jsx(G,{className:"h-40"}),e.jsx(G,{className:"h-40"}),e.jsx(G,{className:"h-40"})]})]}):a&&a.length===0?e.jsx("div",{className:C("flex flex-col items-center gap-element py-section text-center text-muted-foreground",n),...l,children:e.jsx("p",{className:"text-sm",children:m(x,"noActors")})}):e.jsxs("div",{className:C("flex flex-col gap-card",n),...l,children:[e.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-element",children:[e.jsxs("div",{className:"flex flex-wrap items-center gap-element",children:[t&&e.jsx("h3",{className:"text-sm font-semibold",children:m(x,"teamTitle",{name:t})}),a&&e.jsx(se,{as:"span",size:re.XS,variant:ne.MUTED,children:m(x,"teamSummary",{count:String(a.length)})})]}),a&&a.length>1&&e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx(H,{variant:N==="grid"?k.SECONDARY:k.GHOST,size:Y.SM,onClick:()=>d("grid"),"aria-label":m(x,"gridView"),children:m(x,"gridView")}),e.jsx(H,{variant:N==="graph"?k.SECONDARY:k.GHOST,size:Y.SM,onClick:()=>d("graph"),"aria-label":m(x,"graphView"),children:m(x,"graphView")})]})]}),a&&a.length>0&&e.jsx("div",{className:"flex flex-wrap gap-1",children:Array.from(E.entries()).map(([p,j])=>e.jsx(v,{variant:"outline",className:"text-2xs",children:m(x,"roleCount",{role:m(x,le[p]??p),count:String(j)})},p))}),N==="grid"?e.jsx("div",{className:"grid gap-card sm:grid-cols-2 lg:grid-cols-3",children:a?a.map(p=>e.jsx(ze,{actor:p,status:U(p.ref,o,u),currentTask:ke(p.ref,o,u)},p.ref)):c}):a&&e.jsx(We,{actors:a,executions:u,systemRef:o})]}):null};function me(t,s){return new RegExp(`(?:^|[\\s_\\-/:|])${s.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}(?:$|[\\s_\\-/:|])`).test(t)}function U(t,s,o){if(!o||!s)return"idle";let r=!1;for(const n of o.values()){if(n.systemRef!==s)continue;const c=n.currentStep!=null&&me(n.currentStep,t);if(n.status===D.RUNNING&&c)return"executing";if(n.status===D.AWAITING_APPROVAL&&c)return"blocked";if(c&&(r=!0),n.status===D.COMPLETED&&r)return"completed"}return"idle"}function ke(t,s,o){if(!(!o||!s)){for(const r of o.values())if(r.systemRef===s&&(r.status===D.RUNNING||r.status===D.AWAITING_APPROVAL)&&r.currentStep!=null&&me(r.currentStep,t))return r.currentStep}}const De=220,Fe=120;function We({actors:t,executions:s,systemRef:o}){const{nodes:r,edges:n}=T.useMemo(()=>{const l=t.filter(u=>u.roleCategory==="coordinator"),m=t.filter(u=>u.roleCategory!=="coordinator"),f=[],_=[],N=Math.max(1,Math.ceil(Math.sqrt(m.length))),d=De+80,a=Fe+60;return l.forEach((u,i)=>{f.push({id:u.ref,type:"actorNode",position:{x:i*d,y:0},data:{actor:u,status:U(u.ref,o,s),label:u.displayName}})}),m.forEach((u,i)=>{const E=i%N,p=Math.floor(i/N);f.push({id:u.ref,type:"actorNode",position:{x:E*d,y:(l.length>0?a:0)+p*a},data:{actor:u,status:U(u.ref,o,s),label:u.displayName}});for(const j of l)_.push({id:`${j.ref}->${u.ref}`,source:j.ref,target:u.ref,type:"default",animated:U(u.ref,o,s)==="executing"})}),{nodes:f,edges:_}},[t,s,o]),c=T.useMemo(()=>({actorNode:Ve}),[]);return e.jsx("div",{className:"h-80 w-full rounded-md border",children:e.jsx(ae,{nodes:r,edges:n,nodeTypes:c,fitView:!0,panOnDrag:!0,panOnScroll:!1,children:e.jsx(ce,{})})})}function Ve({data:t}){const{tComponent:s,isReady:o}=w({component:x}),{renderIcon:r}=b(),n=de[t.actor.roleCategory],c=ue[t.status];return e.jsxs(W,{className:"relative size-full h-auto w-52 gap-0 rounded-md p-0",children:[e.jsx(I,{position:S.Left,type:"target"}),e.jsx(V,{className:"gap-0.5 rounded-t-md border-b bg-secondary p-card-sm!",children:e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx("span",{className:C("inline-block size-2 shrink-0 rounded-full",c)}),n&&r(n,{size:A.SM,className:"text-muted-foreground"}),e.jsx(z,{className:"truncate text-xs",children:t.actor.displayName})]})}),e.jsx(P,{className:"p-card-sm",children:e.jsxs("div",{className:"flex flex-wrap gap-1",children:[e.jsx(pe,{role:t.actor.roleCategory}),e.jsx(xe,{mode:t.actor.executionMode})]})}),e.jsx(I,{position:S.Right,type:"source"})]})}const ze=({actor:t,actorRef:s,displayName:o,roleCategory:r,executionMode:n,description:c,agentRef:l,flowRef:m,status:f="idle",currentTask:_,onAgentClick:N,onFlowClick:d,className:a,...u})=>{const{tComponent:i,isReady:E}=w({component:x}),{renderIcon:p}=b();if(!E)return null;const j=t?.ref??s??"",g=t?.displayName??o??j,y=t?.roleCategory??r??"",fe=t?.executionMode??n??"",B=c,R=t?.agentRef??l,M=t?.flowRef??m,ge=ue[f],X=i(x,Me[f]);return e.jsxs(W,{className:C("flex flex-col",a),...u,children:[e.jsxs(V,{children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{className:"flex flex-wrap items-center gap-element",children:[e.jsx(pe,{role:y}),e.jsx(xe,{mode:fe})]}),e.jsxs(Q,{children:[e.jsx(Z,{asChild:!0,children:e.jsx("span",{role:"img","aria-label":X,className:C("inline-block size-2.5 shrink-0 rounded-full",ge)})}),e.jsx(ee,{side:te.TOP,className:"text-xs",children:X})]})]}),e.jsx(z,{className:"text-sm",children:g}),e.jsx(K,{className:"text-xs",children:j})]}),e.jsxs(P,{className:"flex flex-col gap-element",children:[B&&e.jsx(se,{size:re.XS,variant:ne.MUTED,"aria-label":i(x,"description"),children:B}),_&&e.jsxs("div",{className:"flex items-center gap-1 rounded-sm bg-primary/10 px-2 py-1","aria-label":i(x,"currentTask"),children:[p(h.LOADER_2,{size:A.SM,className:"animate-spin text-primary"}),e.jsx("span",{className:"truncate text-xs font-medium text-primary",children:_})]}),(R||M)&&e.jsxs("div",{className:"flex flex-col gap-1",children:[R&&e.jsxs("button",{type:"button",className:"flex items-center gap-1 text-start text-xs text-muted-foreground hover:text-foreground",onClick:()=>N?.(R),"aria-label":`${i(x,"linkedAgent")}: ${R}`,children:[p(h.BRAIN,{size:A.SM,className:"shrink-0"}),e.jsxs("span",{className:"font-medium",children:[i(x,"linkedAgent"),":"]}),e.jsx("span",{className:"truncate",children:R})]}),M&&e.jsxs("button",{type:"button",className:"flex items-center gap-1 text-start text-xs text-muted-foreground hover:text-foreground",onClick:()=>d?.(M),"aria-label":`${i(x,"linkedFlow")}: ${M}`,children:[p(h.ARROW_RIGHT,{size:A.SM,className:"shrink-0"}),e.jsxs("span",{className:"font-medium",children:[i(x,"linkedFlow"),":"]}),e.jsx("span",{className:"truncate",children:M})]})]})]}),e.jsx(oe,{className:"border-t pt-card-sm",children:e.jsxs(he,{className:"w-full",children:[e.jsx(_e,{asChild:!0,children:e.jsx(H,{variant:k.GHOST,size:Y.SM,className:"w-full text-xs",children:i(x,"details")})}),e.jsxs(Ne,{className:"mt-element flex flex-col gap-element text-xs text-muted-foreground",children:[e.jsxs("div",{children:[e.jsxs("span",{className:"font-medium",children:[i(x,"actorRef"),":"]})," ",e.jsx("code",{className:"text-2xs",children:j})]}),e.jsxs("div",{children:[e.jsxs("span",{className:"font-medium",children:[i(x,"capabilities"),":"]})," ",i(x,"triggersNotConfigured")]}),e.jsx("div",{children:e.jsx("span",{className:"font-medium",children:i(x,"noExecutions")})})]})]})})]})},pe=({role:t,className:s})=>{const{tComponent:o,isReady:r}=w({component:x}),{renderIcon:n}=b();if(!r)return null;const c=de[t],l=le[t],m=l?o(x,l):t;return e.jsxs(v,{variant:Re[t]??"secondary",className:C("text-2xs gap-1",s),children:[c&&n(c,{size:A.XS}),m]})},xe=({mode:t,className:s})=>{const{tComponent:o,isReady:r}=w({component:x}),{renderIcon:n}=b();if(!r)return null;const c=be[t],l=Se[t],m=l?o(x,l):t,f=ve[t],_=f?o(x,f):void 0,N=e.jsxs(v,{variant:"outline",className:C("text-2xs gap-1",s),children:[c&&n(c,{size:A.XS}),m]});return _?e.jsxs(Q,{children:[e.jsx(Z,{asChild:!0,children:N}),e.jsx(ee,{side:te.TOP,className:"text-xs",children:_})]}):N},Ge={"agent.call":"agentic",function:"agentic",connector:"agentic","compute.resource.operation":"agentic","compute.custom":"agentic","flow.subflow":"agentic","artifact.write":"artifact","artifact.read":"artifact","control.branch":"control","control.switch":"control","control.loop":"control","control.parallel":"control","control.delay":"control","control.retry":"control","state.memory.read":"state","state.memory.write":"state","event.emit":"event","event.wait":"event","error.catch":"error","error.compensate":"error","error.finally":"error","human.in.the.loop":"human","actor.system.call":"human"},Ue={agentic:"border-s-primary",artifact:"border-s-chart-2",control:"border-s-chart-3",state:"border-s-chart-4",event:"border-s-chart-5",error:"border-s-destructive",human:"border-s-warning"},$={ready:"ring-muted",pending:"ring-warning/50",processing:"ring-primary ring-2 animate-pulse",completed:"ring-success ring-2",failed:"ring-destructive ring-2",cancelled:"ring-muted",aborted:"ring-destructive ring-2"},Pe={agentic:h.BRAIN,artifact:h.FILE,control:h.CHEVRONS_UP_DOWN,state:h.BOOKMARK,event:h.CLOCK,error:h.WARNING,human:h.USERS},He={manual:h.CORNER_DOWN_LEFT,schedule:h.CALENDAR,webhook:h.EXTERNAL_LINK,resource_event:h.DOT,event:h.CLOCK,task_completion:h.CHECK_CIRCLE},Ye={manual:"triggerManual",schedule:"triggerSchedule",webhook:"triggerWebhook",resource_event:"triggerResourceEvent",event:"triggerEvent",task_completion:"triggerTaskCompletion"};function Ke(t){return Ge[t]??"agentic"}function $e(t){return He[t]??h.DOT}function Be(t){return Ye[t]??t}const Xe=({stepKind:t,stepName:s,stepDescription:o,status:r,handles:n={target:!0,source:!0},className:c,children:l,...m})=>{const f=Ke(t),{renderIcon:_}=b(),N=n.sourceCount??(F.isControlMultiSourceKind(t)?2:1);return e.jsxs(W,{className:C("node-container relative size-full h-auto w-sm gap-0 rounded-md border-s-4 p-0",Ue[f],r&&$[r],c),...m,children:[n.target&&e.jsx(I,{position:S.Left,type:"target"}),e.jsxs(V,{className:"gap-0.5 rounded-t-md border-b bg-secondary p-card-sm!",children:[e.jsxs("div",{className:"flex items-center gap-element",children:[e.jsx("span",{className:"text-muted-foreground",children:_(Pe[f],{size:A.SM})}),e.jsx(Ee,{category:f,kind:t}),e.jsx(z,{className:"text-sm",children:s})]}),o&&e.jsx(K,{className:"text-xs",children:o})]}),l&&e.jsx(P,{className:"p-card-sm",children:l}),r&&e.jsx(oe,{className:"rounded-b-md border-t bg-secondary p-card-sm!",children:e.jsx(ie,{status:r})}),n.source&&N>1?Array.from({length:N},(d,a)=>e.jsx(I,{type:"source",position:S.Right,id:`source-${a}`,style:{top:`${(a+1)/(N+1)*100}%`}},`source-${a}`)):n.source&&e.jsx(I,{position:S.Right,type:"source"})]})},qe=({triggerType:t,displayName:s,description:o,status:r,className:n,children:c,...l})=>{const{tComponent:m,isReady:f}=w({component:O.LOW_LEVEL_AI_FLOW_NODE}),{renderIcon:_}=b();return f?e.jsxs(W,{className:C("node-container relative size-full h-auto w-sm gap-0 rounded-md border-s-4 border-s-success p-0",r&&$[r],n),...l,children:[e.jsxs(V,{className:"gap-0.5 rounded-t-md border-b bg-success/10 p-card-sm!",children:[e.jsxs("div",{className:"flex items-center gap-element",children:[e.jsx("span",{className:"text-success",children:_($e(t),{size:A.SM})}),e.jsx(v,{variant:"outline",className:"text-2xs",children:m(O.LOW_LEVEL_AI_FLOW_NODE,"trigger")}),e.jsx(v,{variant:"secondary",className:"text-2xs",children:m(O.LOW_LEVEL_AI_FLOW_NODE,Be(t))})]}),e.jsx(z,{className:"text-sm",children:s}),o&&e.jsx(K,{className:"text-xs",children:o})]}),c&&e.jsx(P,{className:"p-card-sm",children:c}),e.jsx(I,{position:S.Right,type:"source"})]}):null},Je=({status:t,className:s,...o})=>{const{tComponent:r,isReady:n}=w({component:O.LOW_LEVEL_AI_FLOW_NODE}),{renderIcon:c}=b();return n?e.jsxs(W,{className:C("node-container relative size-full h-auto w-sm gap-0 rounded-md border-s-4 border-s-muted-foreground p-0",t&&$[t],s),...o,children:[e.jsx(I,{position:S.Left,type:"target"}),e.jsx(V,{className:"rounded-md bg-secondary p-card-sm!",children:e.jsxs("div",{className:"flex items-center gap-element",children:[e.jsx("span",{className:"text-muted-foreground",children:c(h.CHECK_CIRCLE,{size:A.SM})}),e.jsx(z,{className:"text-sm text-muted-foreground",children:r(O.LOW_LEVEL_AI_FLOW_NODE,"finish")})]})})]}):null},Qe=384,q=120,Ze=100,J=40;function et(t,s){if(t.length===0)return new Map;const o=new Map,r=new Map;for(const d of t)o.set(d,[]),r.set(d,[]);for(const d of s)o.get(d.source)?.push(d.target),r.get(d.target)?.push(d.source);const n=new Map,c=new Map,l=[];for(const d of t){const a=r.get(d)?.length??0;c.set(d,a),a===0&&(l.push(d),n.set(d,0))}const m=new Set;let f=0;for(;l.length>0&&f<t.length*2;){f++;const d=l.shift();if(m.has(d))continue;m.add(d);const a=n.get(d)??0;for(const u of o.get(d)??[]){if(m.has(u))continue;n.set(u,Math.max(n.get(u)??0,a+1));const i=(c.get(u)??1)-1;c.set(u,i),i<=0&&l.push(u)}}for(const d of t)if(!n.has(d)){let a=0;for(const u of r.get(d)??[])n.has(u)&&(a=Math.max(a,n.get(u)));n.set(d,a+1)}const _=new Map;for(const[d,a]of n)_.has(a)||_.set(a,[]),_.get(a).push(d);const N=new Map;for(const[d,a]of _){const u=d*(Qe+Ze),E=-((a.length-1)*(q+J))/2;a.forEach((p,j)=>{N.set(p,{x:u,y:E+j*(q+J)})})}return N}function L(t,s){return`${t}--${s}`}function tt(t){const s=t.indexOf("--");return s===-1?{type:"step",ref:t}:{type:t.slice(0,s),ref:t.slice(s+2)}}function st({data:t}){const s=t;return e.jsx(Xe,{stepKind:s.kind,stepName:s.name,stepDescription:s.description,status:s.status,handles:{target:!0,source:!0,sourceCount:s.sourceCount}})}function nt({data:t}){const s=t;return e.jsx(qe,{triggerType:s.triggerType,displayName:s.displayName,description:s.description,status:s.status})}function rt({data:t}){const s=t;return e.jsx(Je,{status:s.status})}const ot=({id:t,sourceX:s,sourceY:o,targetX:r,targetY:n,sourcePosition:c,targetPosition:l,style:m,markerEnd:f})=>{const[_]=ye({sourceX:s,sourceY:o,sourcePosition:c,targetX:r,targetY:n,targetPosition:l});return e.jsxs(e.Fragment,{children:[e.jsx(Ce,{id:t,path:_,markerEnd:f,style:{...m,stroke:"var(--primary)",strokeWidth:2}}),e.jsx("circle",{r:"4",fill:"var(--primary)",children:e.jsx("animateMotion",{dur:"2s",path:_,repeatCount:"indefinite"})})]})},at={flowStep:st,flowTrigger:nt,flowFinish:rt},ct={active:ot},ut=({triggers:t,steps:s,edges:o,finishes:r,nodeStates:n=[],onNodeClick:c,className:l,...m})=>{const{tComponent:f,isReady:_}=w({component:O.LOW_LEVEL_AI_FLOW_EXECUTION}),N=T.useMemo(()=>new Map(n.map(i=>[L(i.nodeType,i.nodeRef),i])),[n]),d=T.useMemo(()=>{const i=[],E=[];for(const g of t)i.push(L("trigger",g.ref));for(const g of s)i.push(L("step",g.ref));for(const g of r)i.push(L("finish",g.ref));for(const g of o)E.push({source:L(g.from.type,g.from.ref),target:L(g.to.type,g.to.ref)});const p=et(i,E),j=[];for(const g of t){const y=L("trigger",g.ref);j.push({id:y,type:"flowTrigger",position:p.get(y)??{x:0,y:0},data:{triggerType:g.type,displayName:g.displayName,description:g.description,status:N.get(y)?.status}})}for(const g of s){const y=L("step",g.ref);j.push({id:y,type:"flowStep",position:p.get(y)??{x:0,y:0},data:{kind:g.kind,name:g.name,description:g.description,status:N.get(y)?.status,sourceCount:F.isControlMultiSourceKind(g.kind)?2:1}})}for(const g of r){const y=L("finish",g.ref);j.push({id:y,type:"flowFinish",position:p.get(y)??{x:0,y:0},data:{status:N.get(y)?.status}})}return j},[t,s,r,o,N]),a=T.useMemo(()=>o.map(i=>{const E=L(i.from.type,i.from.ref),p=L(i.to.type,i.to.ref),j=N.get(E)?.status,g=N.get(p)?.status,y=(j==="completed"||j==="processing")&&(g==="processing"||g==="pending");return{id:`${E}__${p}`,source:E,target:p,type:y?"active":void 0,animated:y}}),[o,N]),u=t.length===0&&s.length===0&&r.length===0;return _?u?e.jsx("div",{className:C("flex items-center justify-center rounded-lg border bg-card p-section text-center text-muted-foreground",l),...m,children:e.jsx("p",{className:"text-sm",children:f(O.LOW_LEVEL_AI_FLOW_EXECUTION,"canvasEmpty")})}):e.jsx("div",{className:C("relative h-[500px] overflow-hidden rounded-lg border bg-card",l),...m,children:e.jsx(ae,{nodes:d,edges:a,nodeTypes:at,edgeTypes:ct,onNodeClick:(i,E)=>{const p=tt(E.id);c?.(p.ref,p.type)},panOnDrag:!0,selectionOnDrag:!1,nodesDraggable:!1,nodesConnectable:!1,elementsSelectable:!0,fitView:!0,fitViewOptions:{padding:.2},children:e.jsx(ce,{})})}):null},mt=({totalSteps:t,completedSteps:s,failedSteps:o,status:r,startedAt:n,completedAt:c,className:l,...m})=>{const{tComponent:f,isReady:_}=w({component:O.LOW_LEVEL_AI_FLOW_EXECUTION});return _?e.jsxs("div",{className:C("flex items-center gap-card rounded-lg border bg-card p-card-sm",l),...m,children:[e.jsxs("div",{className:"flex flex-1 items-center gap-element",children:[e.jsx(v,{variant:r==="completed"?"default":r==="failed"?"destructive":"secondary",children:f(O.LOW_LEVEL_AI_FLOW_EXECUTION,F.getStatusLabelKey(r))}),e.jsx("span",{className:"text-sm text-muted-foreground",children:f(O.LOW_LEVEL_AI_FLOW_EXECUTION,"stepsProgress",{completed:s,total:t})})]}),o>0&&e.jsx(v,{variant:"destructive",children:f(O.LOW_LEVEL_AI_FLOW_EXECUTION,"failedSteps",{count:o})}),n&&e.jsx("span",{className:"text-2xs text-muted-foreground",children:F.formatDuration(n,c)})]}):null},pt=({events:t,className:s,...o})=>{const{tComponent:r,isReady:n}=w({component:O.LOW_LEVEL_AI_FLOW_EXECUTION});return n?e.jsxs("div",{className:C("flex flex-col",s),...o,children:[e.jsx("h4",{className:"mb-2 text-sm font-medium",children:r(O.LOW_LEVEL_AI_FLOW_EXECUTION,"timeline")}),e.jsx(Oe,{className:"max-h-64",children:e.jsx(Le,{className:"gap-element",children:t.map((c,l)=>e.jsx(it,{event:c,previousTimestamp:l>0?t[l-1].timestamp:void 0},`${c.nodeRef}-${c.timestamp}-${l}`))})})]}):null},it=({event:t,previousTimestamp:s,className:o,...r})=>{const n=s?F.formatDuration(s,t.timestamp):void 0;return e.jsxs(we,{tone:Ie(t.status),className:o,...r,children:[e.jsx(Ae,{dateTime:t.timestamp,children:new Date(t.timestamp).toLocaleTimeString()}),e.jsx(Te,{children:e.jsxs("div",{className:"flex flex-wrap items-center gap-element",children:[e.jsx("span",{className:"text-xs font-medium",children:t.nodeName??t.nodeRef}),e.jsx(ie,{status:t.status}),n&&e.jsxs("span",{className:"text-2xs text-muted-foreground",children:["+",n]})]})})]})};export{ze as AI_ActorCard,xe as AI_ActorExecutionModeBadge,pe as AI_ActorRoleBadge,dt as AI_ActorTeam,ot as AI_FlowEdgeActive,ut as AI_FlowExecutionCanvas,mt as AI_FlowExecutionSummary,pt as AI_FlowExecutionTimeline,it as AI_FlowExecutionTimelineItem,Je as AI_FlowFinishNode,Xe as AI_FlowNode,qe as AI_FlowTriggerNode};
1
+ import{u as w,F as O,e as b,j as e,C as W,f as V,h as Q,i as Z,c as C,k as ee,l as te,m as z,n as K,o as P,T as se,p as ne,q as re,t as h,I as A,v as oe,w as he,x as _e,B as H,y as Y,z as k,A as Ne,D as v,E as je,r as T,S as G,G as D,H as ae,J as ce,K as I,M as S,N as F,O as Ee,Q as ie,U as ye,V as Ce,W as Oe,X as Le,Y as we,Z as Ae,$ as Te,a0 as Ie}from"./index-B0VAn5-V.js";const x=O.LOW_LEVEL_AI_ACTOR,le={coordinator:"role_coordinator",task_planner:"role_task_planner",operator:"role_operator",analyzer:"role_analyzer",reviewer:"role_reviewer",human_in_the_loop:"role_human_in_the_loop",flow_execution:"role_flow_execution"},Se={agentic:"mode_agentic",flow_execution:"mode_flow_execution",human_interaction:"mode_human_interaction"},ve={agentic:"modeDesc_agentic",flow_execution:"modeDesc_flow_execution",human_interaction:"modeDesc_human_interaction"},de={coordinator:h.USERS,task_planner:h.BOOK,operator:h.WRENCH,analyzer:h.SEARCH,reviewer:h.CHECK_CIRCLE,human_in_the_loop:h.LOCK,flow_execution:h.ARROW_RIGHT},be={agentic:h.BRAIN,flow_execution:h.ARROW_RIGHT,human_interaction:h.USERS},Re={coordinator:"default",task_planner:"default",operator:"secondary",analyzer:"secondary",reviewer:"outline",human_in_the_loop:"destructive",flow_execution:"outline"},ue={idle:"bg-muted-foreground/40",executing:"bg-primary animate-pulse",blocked:"bg-warning",completed:"bg-success"},Me={idle:"status_idle",executing:"status_executing",blocked:"status_blocked",completed:"status_completed"},dt=({systemName:t,actors:s,systemRef:o,executions:r,className:n,children:c,...l})=>{const{tComponent:m,isReady:f}=w({component:x}),_=je(),[N,d]=T.useState("grid"),a=s,u=r??_?.executions,i=o&&_?.isLoading&&!a,E=T.useMemo(()=>{if(!a)return new Map;const p=new Map;for(const j of a)p.set(j.roleCategory,(p.get(j.roleCategory)??0)+1);return p},[a]);return f?i?e.jsxs("div",{className:C("flex flex-col gap-card",n),"aria-label":m(x,"loading"),...l,children:[e.jsx(G,{className:"h-6 w-48"}),e.jsxs("div",{className:"grid gap-card sm:grid-cols-2 lg:grid-cols-3",children:[e.jsx(G,{className:"h-40"}),e.jsx(G,{className:"h-40"}),e.jsx(G,{className:"h-40"})]})]}):a&&a.length===0?e.jsx("div",{className:C("flex flex-col items-center gap-element py-section text-center text-muted-foreground",n),...l,children:e.jsx("p",{className:"text-sm",children:m(x,"noActors")})}):e.jsxs("div",{className:C("flex flex-col gap-card",n),...l,children:[e.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-element",children:[e.jsxs("div",{className:"flex flex-wrap items-center gap-element",children:[t&&e.jsx("h3",{className:"text-sm font-semibold",children:m(x,"teamTitle",{name:t})}),a&&e.jsx(se,{as:"span",size:re.XS,variant:ne.MUTED,children:m(x,"teamSummary",{count:String(a.length)})})]}),a&&a.length>1&&e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx(H,{variant:N==="grid"?k.SECONDARY:k.GHOST,size:Y.SM,onClick:()=>d("grid"),"aria-label":m(x,"gridView"),children:m(x,"gridView")}),e.jsx(H,{variant:N==="graph"?k.SECONDARY:k.GHOST,size:Y.SM,onClick:()=>d("graph"),"aria-label":m(x,"graphView"),children:m(x,"graphView")})]})]}),a&&a.length>0&&e.jsx("div",{className:"flex flex-wrap gap-1",children:Array.from(E.entries()).map(([p,j])=>e.jsx(v,{variant:"outline",className:"text-2xs",children:m(x,"roleCount",{role:m(x,le[p]??p),count:String(j)})},p))}),N==="grid"?e.jsx("div",{className:"grid gap-card sm:grid-cols-2 lg:grid-cols-3",children:a?a.map(p=>e.jsx(ze,{actor:p,status:U(p.ref,o,u),currentTask:ke(p.ref,o,u)},p.ref)):c}):a&&e.jsx(We,{actors:a,executions:u,systemRef:o})]}):null};function me(t,s){return new RegExp(`(?:^|[\\s_\\-/:|])${s.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}(?:$|[\\s_\\-/:|])`).test(t)}function U(t,s,o){if(!o||!s)return"idle";let r=!1;for(const n of o.values()){if(n.systemRef!==s)continue;const c=n.currentStep!=null&&me(n.currentStep,t);if(n.status===D.RUNNING&&c)return"executing";if(n.status===D.AWAITING_APPROVAL&&c)return"blocked";if(c&&(r=!0),n.status===D.COMPLETED&&r)return"completed"}return"idle"}function ke(t,s,o){if(!(!o||!s)){for(const r of o.values())if(r.systemRef===s&&(r.status===D.RUNNING||r.status===D.AWAITING_APPROVAL)&&r.currentStep!=null&&me(r.currentStep,t))return r.currentStep}}const De=220,Fe=120;function We({actors:t,executions:s,systemRef:o}){const{nodes:r,edges:n}=T.useMemo(()=>{const l=t.filter(u=>u.roleCategory==="coordinator"),m=t.filter(u=>u.roleCategory!=="coordinator"),f=[],_=[],N=Math.max(1,Math.ceil(Math.sqrt(m.length))),d=De+80,a=Fe+60;return l.forEach((u,i)=>{f.push({id:u.ref,type:"actorNode",position:{x:i*d,y:0},data:{actor:u,status:U(u.ref,o,s),label:u.displayName}})}),m.forEach((u,i)=>{const E=i%N,p=Math.floor(i/N);f.push({id:u.ref,type:"actorNode",position:{x:E*d,y:(l.length>0?a:0)+p*a},data:{actor:u,status:U(u.ref,o,s),label:u.displayName}});for(const j of l)_.push({id:`${j.ref}->${u.ref}`,source:j.ref,target:u.ref,type:"default",animated:U(u.ref,o,s)==="executing"})}),{nodes:f,edges:_}},[t,s,o]),c=T.useMemo(()=>({actorNode:Ve}),[]);return e.jsx("div",{className:"h-80 w-full rounded-md border",children:e.jsx(ae,{nodes:r,edges:n,nodeTypes:c,fitView:!0,panOnDrag:!0,panOnScroll:!1,children:e.jsx(ce,{})})})}function Ve({data:t}){const{tComponent:s,isReady:o}=w({component:x}),{renderIcon:r}=b(),n=de[t.actor.roleCategory],c=ue[t.status];return e.jsxs(W,{className:"relative size-full h-auto w-52 gap-0 rounded-md p-0",children:[e.jsx(I,{position:S.Left,type:"target"}),e.jsx(V,{className:"gap-0.5 rounded-t-md border-b bg-secondary p-card-sm!",children:e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx("span",{className:C("inline-block size-2 shrink-0 rounded-full",c)}),n&&r(n,{size:A.SM,className:"text-muted-foreground"}),e.jsx(z,{className:"truncate text-xs",children:t.actor.displayName})]})}),e.jsx(P,{className:"p-card-sm",children:e.jsxs("div",{className:"flex flex-wrap gap-1",children:[e.jsx(pe,{role:t.actor.roleCategory}),e.jsx(xe,{mode:t.actor.executionMode})]})}),e.jsx(I,{position:S.Right,type:"source"})]})}const ze=({actor:t,actorRef:s,displayName:o,roleCategory:r,executionMode:n,description:c,agentRef:l,flowRef:m,status:f="idle",currentTask:_,onAgentClick:N,onFlowClick:d,className:a,...u})=>{const{tComponent:i,isReady:E}=w({component:x}),{renderIcon:p}=b();if(!E)return null;const j=t?.ref??s??"",g=t?.displayName??o??j,y=t?.roleCategory??r??"",fe=t?.executionMode??n??"",B=c,R=t?.agentRef??l,M=t?.flowRef??m,ge=ue[f],X=i(x,Me[f]);return e.jsxs(W,{className:C("flex flex-col",a),...u,children:[e.jsxs(V,{children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{className:"flex flex-wrap items-center gap-element",children:[e.jsx(pe,{role:y}),e.jsx(xe,{mode:fe})]}),e.jsxs(Q,{children:[e.jsx(Z,{asChild:!0,children:e.jsx("span",{role:"img","aria-label":X,className:C("inline-block size-2.5 shrink-0 rounded-full",ge)})}),e.jsx(ee,{side:te.TOP,className:"text-xs",children:X})]})]}),e.jsx(z,{className:"text-sm",children:g}),e.jsx(K,{className:"text-xs",children:j})]}),e.jsxs(P,{className:"flex flex-col gap-element",children:[B&&e.jsx(se,{size:re.XS,variant:ne.MUTED,"aria-label":i(x,"description"),children:B}),_&&e.jsxs("div",{className:"flex items-center gap-1 rounded-sm bg-primary/10 px-2 py-1","aria-label":i(x,"currentTask"),children:[p(h.LOADER_2,{size:A.SM,className:"animate-spin text-primary"}),e.jsx("span",{className:"truncate text-xs font-medium text-primary",children:_})]}),(R||M)&&e.jsxs("div",{className:"flex flex-col gap-1",children:[R&&e.jsxs("button",{type:"button",className:"flex items-center gap-1 text-start text-xs text-muted-foreground hover:text-foreground",onClick:()=>N?.(R),"aria-label":`${i(x,"linkedAgent")}: ${R}`,children:[p(h.BRAIN,{size:A.SM,className:"shrink-0"}),e.jsxs("span",{className:"font-medium",children:[i(x,"linkedAgent"),":"]}),e.jsx("span",{className:"truncate",children:R})]}),M&&e.jsxs("button",{type:"button",className:"flex items-center gap-1 text-start text-xs text-muted-foreground hover:text-foreground",onClick:()=>d?.(M),"aria-label":`${i(x,"linkedFlow")}: ${M}`,children:[p(h.ARROW_RIGHT,{size:A.SM,className:"shrink-0"}),e.jsxs("span",{className:"font-medium",children:[i(x,"linkedFlow"),":"]}),e.jsx("span",{className:"truncate",children:M})]})]})]}),e.jsx(oe,{className:"border-t pt-card-sm",children:e.jsxs(he,{className:"w-full",children:[e.jsx(_e,{asChild:!0,children:e.jsx(H,{variant:k.GHOST,size:Y.SM,className:"w-full text-xs",children:i(x,"details")})}),e.jsxs(Ne,{className:"mt-element flex flex-col gap-element text-xs text-muted-foreground",children:[e.jsxs("div",{children:[e.jsxs("span",{className:"font-medium",children:[i(x,"actorRef"),":"]})," ",e.jsx("code",{className:"text-2xs",children:j})]}),e.jsxs("div",{children:[e.jsxs("span",{className:"font-medium",children:[i(x,"capabilities"),":"]})," ",i(x,"triggersNotConfigured")]}),e.jsx("div",{children:e.jsx("span",{className:"font-medium",children:i(x,"noExecutions")})})]})]})})]})},pe=({role:t,className:s})=>{const{tComponent:o,isReady:r}=w({component:x}),{renderIcon:n}=b();if(!r)return null;const c=de[t],l=le[t],m=l?o(x,l):t;return e.jsxs(v,{variant:Re[t]??"secondary",className:C("text-2xs gap-1",s),children:[c&&n(c,{size:A.XS}),m]})},xe=({mode:t,className:s})=>{const{tComponent:o,isReady:r}=w({component:x}),{renderIcon:n}=b();if(!r)return null;const c=be[t],l=Se[t],m=l?o(x,l):t,f=ve[t],_=f?o(x,f):void 0,N=e.jsxs(v,{variant:"outline",className:C("text-2xs gap-1",s),children:[c&&n(c,{size:A.XS}),m]});return _?e.jsxs(Q,{children:[e.jsx(Z,{asChild:!0,children:N}),e.jsx(ee,{side:te.TOP,className:"text-xs",children:_})]}):N},Ge={"agent.call":"agentic",function:"agentic",connector:"agentic","compute.resource.operation":"agentic","compute.custom":"agentic","flow.subflow":"agentic","artifact.write":"artifact","artifact.read":"artifact","control.branch":"control","control.switch":"control","control.loop":"control","control.parallel":"control","control.delay":"control","control.retry":"control","state.memory.read":"state","state.memory.write":"state","event.emit":"event","event.wait":"event","error.catch":"error","error.compensate":"error","error.finally":"error","human.in.the.loop":"human","actor.system.call":"human"},Ue={agentic:"border-s-primary",artifact:"border-s-chart-2",control:"border-s-chart-3",state:"border-s-chart-4",event:"border-s-chart-5",error:"border-s-destructive",human:"border-s-warning"},$={ready:"ring-muted",pending:"ring-warning/50",processing:"ring-primary ring-2 animate-pulse",completed:"ring-success ring-2",failed:"ring-destructive ring-2",cancelled:"ring-muted",aborted:"ring-destructive ring-2"},Pe={agentic:h.BRAIN,artifact:h.FILE,control:h.CHEVRONS_UP_DOWN,state:h.BOOKMARK,event:h.CLOCK,error:h.WARNING,human:h.USERS},He={manual:h.CORNER_DOWN_LEFT,schedule:h.CALENDAR,webhook:h.EXTERNAL_LINK,resource_event:h.DOT,event:h.CLOCK,task_completion:h.CHECK_CIRCLE},Ye={manual:"triggerManual",schedule:"triggerSchedule",webhook:"triggerWebhook",resource_event:"triggerResourceEvent",event:"triggerEvent",task_completion:"triggerTaskCompletion"};function Ke(t){return Ge[t]??"agentic"}function $e(t){return He[t]??h.DOT}function Be(t){return Ye[t]??t}const Xe=({stepKind:t,stepName:s,stepDescription:o,status:r,handles:n={target:!0,source:!0},className:c,children:l,...m})=>{const f=Ke(t),{renderIcon:_}=b(),N=n.sourceCount??(F.isControlMultiSourceKind(t)?2:1);return e.jsxs(W,{className:C("node-container relative size-full h-auto w-sm gap-0 rounded-md border-s-4 p-0",Ue[f],r&&$[r],c),...m,children:[n.target&&e.jsx(I,{position:S.Left,type:"target"}),e.jsxs(V,{className:"gap-0.5 rounded-t-md border-b bg-secondary p-card-sm!",children:[e.jsxs("div",{className:"flex items-center gap-element",children:[e.jsx("span",{className:"text-muted-foreground",children:_(Pe[f],{size:A.SM})}),e.jsx(Ee,{category:f,kind:t}),e.jsx(z,{className:"text-sm",children:s})]}),o&&e.jsx(K,{className:"text-xs",children:o})]}),l&&e.jsx(P,{className:"p-card-sm",children:l}),r&&e.jsx(oe,{className:"rounded-b-md border-t bg-secondary p-card-sm!",children:e.jsx(ie,{status:r})}),n.source&&N>1?Array.from({length:N},(d,a)=>e.jsx(I,{type:"source",position:S.Right,id:`source-${a}`,style:{top:`${(a+1)/(N+1)*100}%`}},`source-${a}`)):n.source&&e.jsx(I,{position:S.Right,type:"source"})]})},qe=({triggerType:t,displayName:s,description:o,status:r,className:n,children:c,...l})=>{const{tComponent:m,isReady:f}=w({component:O.LOW_LEVEL_AI_FLOW_NODE}),{renderIcon:_}=b();return f?e.jsxs(W,{className:C("node-container relative size-full h-auto w-sm gap-0 rounded-md border-s-4 border-s-success p-0",r&&$[r],n),...l,children:[e.jsxs(V,{className:"gap-0.5 rounded-t-md border-b bg-success/10 p-card-sm!",children:[e.jsxs("div",{className:"flex items-center gap-element",children:[e.jsx("span",{className:"text-success",children:_($e(t),{size:A.SM})}),e.jsx(v,{variant:"outline",className:"text-2xs",children:m(O.LOW_LEVEL_AI_FLOW_NODE,"trigger")}),e.jsx(v,{variant:"secondary",className:"text-2xs",children:m(O.LOW_LEVEL_AI_FLOW_NODE,Be(t))})]}),e.jsx(z,{className:"text-sm",children:s}),o&&e.jsx(K,{className:"text-xs",children:o})]}),c&&e.jsx(P,{className:"p-card-sm",children:c}),e.jsx(I,{position:S.Right,type:"source"})]}):null},Je=({status:t,className:s,...o})=>{const{tComponent:r,isReady:n}=w({component:O.LOW_LEVEL_AI_FLOW_NODE}),{renderIcon:c}=b();return n?e.jsxs(W,{className:C("node-container relative size-full h-auto w-sm gap-0 rounded-md border-s-4 border-s-muted-foreground p-0",t&&$[t],s),...o,children:[e.jsx(I,{position:S.Left,type:"target"}),e.jsx(V,{className:"rounded-md bg-secondary p-card-sm!",children:e.jsxs("div",{className:"flex items-center gap-element",children:[e.jsx("span",{className:"text-muted-foreground",children:c(h.CHECK_CIRCLE,{size:A.SM})}),e.jsx(z,{className:"text-sm text-muted-foreground",children:r(O.LOW_LEVEL_AI_FLOW_NODE,"finish")})]})})]}):null},Qe=384,q=120,Ze=100,J=40;function et(t,s){if(t.length===0)return new Map;const o=new Map,r=new Map;for(const d of t)o.set(d,[]),r.set(d,[]);for(const d of s)o.get(d.source)?.push(d.target),r.get(d.target)?.push(d.source);const n=new Map,c=new Map,l=[];for(const d of t){const a=r.get(d)?.length??0;c.set(d,a),a===0&&(l.push(d),n.set(d,0))}const m=new Set;let f=0;for(;l.length>0&&f<t.length*2;){f++;const d=l.shift();if(m.has(d))continue;m.add(d);const a=n.get(d)??0;for(const u of o.get(d)??[]){if(m.has(u))continue;n.set(u,Math.max(n.get(u)??0,a+1));const i=(c.get(u)??1)-1;c.set(u,i),i<=0&&l.push(u)}}for(const d of t)if(!n.has(d)){let a=0;for(const u of r.get(d)??[])n.has(u)&&(a=Math.max(a,n.get(u)));n.set(d,a+1)}const _=new Map;for(const[d,a]of n)_.has(a)||_.set(a,[]),_.get(a).push(d);const N=new Map;for(const[d,a]of _){const u=d*(Qe+Ze),E=-((a.length-1)*(q+J))/2;a.forEach((p,j)=>{N.set(p,{x:u,y:E+j*(q+J)})})}return N}function L(t,s){return`${t}--${s}`}function tt(t){const s=t.indexOf("--");return s===-1?{type:"step",ref:t}:{type:t.slice(0,s),ref:t.slice(s+2)}}function st({data:t}){const s=t;return e.jsx(Xe,{stepKind:s.kind,stepName:s.name,stepDescription:s.description,status:s.status,handles:{target:!0,source:!0,sourceCount:s.sourceCount}})}function nt({data:t}){const s=t;return e.jsx(qe,{triggerType:s.triggerType,displayName:s.displayName,description:s.description,status:s.status})}function rt({data:t}){const s=t;return e.jsx(Je,{status:s.status})}const ot=({id:t,sourceX:s,sourceY:o,targetX:r,targetY:n,sourcePosition:c,targetPosition:l,style:m,markerEnd:f})=>{const[_]=ye({sourceX:s,sourceY:o,sourcePosition:c,targetX:r,targetY:n,targetPosition:l});return e.jsxs(e.Fragment,{children:[e.jsx(Ce,{id:t,path:_,markerEnd:f,style:{...m,stroke:"var(--primary)",strokeWidth:2}}),e.jsx("circle",{r:"4",fill:"var(--primary)",children:e.jsx("animateMotion",{dur:"2s",path:_,repeatCount:"indefinite"})})]})},at={flowStep:st,flowTrigger:nt,flowFinish:rt},ct={active:ot},ut=({triggers:t,steps:s,edges:o,finishes:r,nodeStates:n=[],onNodeClick:c,className:l,...m})=>{const{tComponent:f,isReady:_}=w({component:O.LOW_LEVEL_AI_FLOW_EXECUTION}),N=T.useMemo(()=>new Map(n.map(i=>[L(i.nodeType,i.nodeRef),i])),[n]),d=T.useMemo(()=>{const i=[],E=[];for(const g of t)i.push(L("trigger",g.ref));for(const g of s)i.push(L("step",g.ref));for(const g of r)i.push(L("finish",g.ref));for(const g of o)E.push({source:L(g.from.type,g.from.ref),target:L(g.to.type,g.to.ref)});const p=et(i,E),j=[];for(const g of t){const y=L("trigger",g.ref);j.push({id:y,type:"flowTrigger",position:p.get(y)??{x:0,y:0},data:{triggerType:g.type,displayName:g.displayName,description:g.description,status:N.get(y)?.status}})}for(const g of s){const y=L("step",g.ref);j.push({id:y,type:"flowStep",position:p.get(y)??{x:0,y:0},data:{kind:g.kind,name:g.name,description:g.description,status:N.get(y)?.status,sourceCount:F.isControlMultiSourceKind(g.kind)?2:1}})}for(const g of r){const y=L("finish",g.ref);j.push({id:y,type:"flowFinish",position:p.get(y)??{x:0,y:0},data:{status:N.get(y)?.status}})}return j},[t,s,r,o,N]),a=T.useMemo(()=>o.map(i=>{const E=L(i.from.type,i.from.ref),p=L(i.to.type,i.to.ref),j=N.get(E)?.status,g=N.get(p)?.status,y=(j==="completed"||j==="processing")&&(g==="processing"||g==="pending");return{id:`${E}__${p}`,source:E,target:p,type:y?"active":void 0,animated:y}}),[o,N]),u=t.length===0&&s.length===0&&r.length===0;return _?u?e.jsx("div",{className:C("flex items-center justify-center rounded-lg border bg-card p-section text-center text-muted-foreground",l),...m,children:e.jsx("p",{className:"text-sm",children:f(O.LOW_LEVEL_AI_FLOW_EXECUTION,"canvasEmpty")})}):e.jsx("div",{className:C("relative h-[500px] overflow-hidden rounded-lg border bg-card",l),...m,children:e.jsx(ae,{nodes:d,edges:a,nodeTypes:at,edgeTypes:ct,onNodeClick:(i,E)=>{const p=tt(E.id);c?.(p.ref,p.type)},panOnDrag:!0,selectionOnDrag:!1,nodesDraggable:!1,nodesConnectable:!1,elementsSelectable:!0,fitView:!0,fitViewOptions:{padding:.2},children:e.jsx(ce,{})})}):null},mt=({totalSteps:t,completedSteps:s,failedSteps:o,status:r,startedAt:n,completedAt:c,className:l,...m})=>{const{tComponent:f,isReady:_}=w({component:O.LOW_LEVEL_AI_FLOW_EXECUTION});return _?e.jsxs("div",{className:C("flex items-center gap-card rounded-lg border bg-card p-card-sm",l),...m,children:[e.jsxs("div",{className:"flex flex-1 items-center gap-element",children:[e.jsx(v,{variant:r==="completed"?"default":r==="failed"?"destructive":"secondary",children:f(O.LOW_LEVEL_AI_FLOW_EXECUTION,F.getStatusLabelKey(r))}),e.jsx("span",{className:"text-sm text-muted-foreground",children:f(O.LOW_LEVEL_AI_FLOW_EXECUTION,"stepsProgress",{completed:s,total:t})})]}),o>0&&e.jsx(v,{variant:"destructive",children:f(O.LOW_LEVEL_AI_FLOW_EXECUTION,"failedSteps",{count:o})}),n&&e.jsx("span",{className:"text-2xs text-muted-foreground",children:F.formatDuration(n,c)})]}):null},pt=({events:t,className:s,...o})=>{const{tComponent:r,isReady:n}=w({component:O.LOW_LEVEL_AI_FLOW_EXECUTION});return n?e.jsxs("div",{className:C("flex flex-col",s),...o,children:[e.jsx("h4",{className:"mb-2 text-sm font-medium",children:r(O.LOW_LEVEL_AI_FLOW_EXECUTION,"timeline")}),e.jsx(Oe,{className:"max-h-64",children:e.jsx(Le,{className:"gap-element",children:t.map((c,l)=>e.jsx(it,{event:c,previousTimestamp:l>0?t[l-1].timestamp:void 0},`${c.nodeRef}-${c.timestamp}-${l}`))})})]}):null},it=({event:t,previousTimestamp:s,className:o,...r})=>{const n=s?F.formatDuration(s,t.timestamp):void 0;return e.jsxs(we,{tone:Ie(t.status),className:o,...r,children:[e.jsx(Ae,{dateTime:t.timestamp,children:new Date(t.timestamp).toLocaleTimeString()}),e.jsx(Te,{children:e.jsxs("div",{className:"flex flex-wrap items-center gap-element",children:[e.jsx("span",{className:"text-xs font-medium",children:t.nodeName??t.nodeRef}),e.jsx(ie,{status:t.status}),n&&e.jsxs("span",{className:"text-2xs text-muted-foreground",children:["+",n]})]})})]})};export{ze as AI_ActorCard,xe as AI_ActorExecutionModeBadge,pe as AI_ActorRoleBadge,dt as AI_ActorTeam,ot as AI_FlowEdgeActive,ut as AI_FlowExecutionCanvas,mt as AI_FlowExecutionSummary,pt as AI_FlowExecutionTimeline,it as AI_FlowExecutionTimelineItem,Je as AI_FlowFinishNode,Xe as AI_FlowNode,qe as AI_FlowTriggerNode};
@@ -1,4 +1,4 @@
1
- import{g as In,s as Ln,q as An,p as Wn,a as $n,b as On,_ as d,c as _t,d as Hn,aV as rt,l as Tt,j as Nn,i as Pn,y as Vn,u as zn}from"./mermaid.core-bwWKwscf.js";import{bl as Je,bm as Rn,bn as Ke,bo as tn,bp as en,bq as se,br as Zn,b as ne,g as re,s as Bt}from"./index-D8dkqP85.js";import{b as Bn,t as We,c as qn,a as Xn,l as Gn}from"./linear-D86elEgL.js";import{i as jn}from"./init-Gi6I4Gst.js";import"./mermaid-VLURNSYL-BAygRTK6.js";import"./index-e-4cSkrt.js";import"./maximize-2-zJKkDRK0.js";import"./defaultLocale-DX6XiGOO.js";const Qn=Math.PI/180,Jn=180/Math.PI,Qt=18,nn=.96422,rn=1,sn=.82521,an=4/29,Yt=6/29,on=3*Yt*Yt,Kn=Yt*Yt*Yt;function cn(t){if(t instanceof ft)return new ft(t.l,t.a,t.b,t.opacity);if(t instanceof ht)return un(t);t instanceof Je||(t=Rn(t));var e=ue(t.r),n=ue(t.g),r=ue(t.b),i=ae((.2225045*e+.7168786*n+.0606169*r)/rn),a,c;return e===n&&n===r?a=c=i:(a=ae((.4360747*e+.3850649*n+.1430804*r)/nn),c=ae((.0139322*e+.0971045*n+.7141733*r)/sn)),new ft(116*i-16,500*(a-i),200*(i-c),t.opacity)}function tr(t,e,n,r){return arguments.length===1?cn(t):new ft(t,e,n,r??1)}function ft(t,e,n,r){this.l=+t,this.a=+e,this.b=+n,this.opacity=+r}Ke(ft,tr,tn(en,{brighter(t){return new ft(this.l+Qt*(t??1),this.a,this.b,this.opacity)},darker(t){return new ft(this.l-Qt*(t??1),this.a,this.b,this.opacity)},rgb(){var t=(this.l+16)/116,e=isNaN(this.a)?t:t+this.a/500,n=isNaN(this.b)?t:t-this.b/200;return e=nn*oe(e),t=rn*oe(t),n=sn*oe(n),new Je(ce(3.1338561*e-1.6168667*t-.4906146*n),ce(-.9787684*e+1.9161415*t+.033454*n),ce(.0719453*e-.2289914*t+1.4052427*n),this.opacity)}}));function ae(t){return t>Kn?Math.pow(t,1/3):t/on+an}function oe(t){return t>Yt?t*t*t:on*(t-an)}function ce(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function ue(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function er(t){if(t instanceof ht)return new ht(t.h,t.c,t.l,t.opacity);if(t instanceof ft||(t=cn(t)),t.a===0&&t.b===0)return new ht(NaN,0<t.l&&t.l<100?0:NaN,t.l,t.opacity);var e=Math.atan2(t.b,t.a)*Jn;return new ht(e<0?e+360:e,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}function ke(t,e,n,r){return arguments.length===1?er(t):new ht(t,e,n,r??1)}function ht(t,e,n,r){this.h=+t,this.c=+e,this.l=+n,this.opacity=+r}function un(t){if(isNaN(t.h))return new ft(t.l,0,0,t.opacity);var e=t.h*Qn;return new ft(t.l,Math.cos(e)*t.c,Math.sin(e)*t.c,t.opacity)}Ke(ht,ke,tn(en,{brighter(t){return new ht(this.h,this.c,this.l+Qt*(t??1),this.opacity)},darker(t){return new ht(this.h,this.c,this.l-Qt*(t??1),this.opacity)},rgb(){return un(this).rgb()}}));function nr(t){return function(e,n){var r=t((e=ke(e)).h,(n=ke(n)).h),i=se(e.c,n.c),a=se(e.l,n.l),c=se(e.opacity,n.opacity);return function(m){return e.h=r(m),e.c=i(m),e.l=a(m),e.opacity=c(m),e+""}}}const rr=nr(Zn);function ir(t,e){let n;if(e===void 0)for(const r of t)r!=null&&(n<r||n===void 0&&r>=r)&&(n=r);else{let r=-1;for(let i of t)(i=e(i,++r,t))!=null&&(n<i||n===void 0&&i>=i)&&(n=i)}return n}function sr(t,e){let n;if(e===void 0)for(const r of t)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);else{let r=-1;for(let i of t)(i=e(i,++r,t))!=null&&(n>i||n===void 0&&i>=i)&&(n=i)}return n}function ar(t){return t}var Xt=1,le=2,pe=3,qt=4,$e=1e-6;function or(t){return"translate("+t+",0)"}function cr(t){return"translate(0,"+t+")"}function ur(t){return e=>+t(e)}function lr(t,e){return e=Math.max(0,t.bandwidth()-e*2)/2,t.round()&&(e=Math.round(e)),n=>+t(n)+e}function fr(){return!this.__axis}function ln(t,e){var n=[],r=null,i=null,a=6,c=6,m=3,F=typeof window<"u"&&window.devicePixelRatio>1?0:.5,C=t===Xt||t===qt?-1:1,k=t===qt||t===le?"x":"y",L=t===Xt||t===pe?or:cr;function _(S){var B=r??(e.ticks?e.ticks.apply(e,n):e.domain()),A=i??(e.tickFormat?e.tickFormat.apply(e,n):ar),U=Math.max(a,0)+m,I=e.range(),N=+I[0]+F,W=+I[I.length-1]+F,Z=(e.bandwidth?lr:ur)(e.copy(),F),j=S.selection?S.selection():S,p=j.selectAll(".domain").data([null]),g=j.selectAll(".tick").data(B,e).order(),y=g.exit(),h=g.enter().append("g").attr("class","tick"),M=g.select("line"),w=g.select("text");p=p.merge(p.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),g=g.merge(h),M=M.merge(h.append("line").attr("stroke","currentColor").attr(k+"2",C*a)),w=w.merge(h.append("text").attr("fill","currentColor").attr(k,C*U).attr("dy",t===Xt?"0em":t===pe?"0.71em":"0.32em")),S!==j&&(p=p.transition(S),g=g.transition(S),M=M.transition(S),w=w.transition(S),y=y.transition(S).attr("opacity",$e).attr("transform",function(T){return isFinite(T=Z(T))?L(T+F):this.getAttribute("transform")}),h.attr("opacity",$e).attr("transform",function(T){var v=this.parentNode.__axis;return L((v&&isFinite(v=v(T))?v:Z(T))+F)})),y.remove(),p.attr("d",t===qt||t===le?c?"M"+C*c+","+N+"H"+F+"V"+W+"H"+C*c:"M"+F+","+N+"V"+W:c?"M"+N+","+C*c+"V"+F+"H"+W+"V"+C*c:"M"+N+","+F+"H"+W),g.attr("opacity",1).attr("transform",function(T){return L(Z(T)+F)}),M.attr(k+"2",C*a),w.attr(k,C*U).text(A),j.filter(fr).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",t===le?"start":t===qt?"end":"middle"),j.each(function(){this.__axis=Z})}return _.scale=function(S){return arguments.length?(e=S,_):e},_.ticks=function(){return n=Array.from(arguments),_},_.tickArguments=function(S){return arguments.length?(n=S==null?[]:Array.from(S),_):n.slice()},_.tickValues=function(S){return arguments.length?(r=S==null?null:Array.from(S),_):r&&r.slice()},_.tickFormat=function(S){return arguments.length?(i=S,_):i},_.tickSize=function(S){return arguments.length?(a=c=+S,_):a},_.tickSizeInner=function(S){return arguments.length?(a=+S,_):a},_.tickSizeOuter=function(S){return arguments.length?(c=+S,_):c},_.tickPadding=function(S){return arguments.length?(m=+S,_):m},_.offset=function(S){return arguments.length?(F=+S,_):F},_}function dr(t){return ln(Xt,t)}function hr(t){return ln(pe,t)}function mr(t,e){t=t.slice();var n=0,r=t.length-1,i=t[n],a=t[r],c;return a<i&&(c=n,n=r,r=c,c=i,i=a,a=c),t[n]=e.floor(i),t[r]=e.ceil(a),t}const fe=new Date,de=new Date;function et(t,e,n,r){function i(a){return t(a=arguments.length===0?new Date:new Date(+a)),a}return i.floor=a=>(t(a=new Date(+a)),a),i.ceil=a=>(t(a=new Date(a-1)),e(a,1),t(a),a),i.round=a=>{const c=i(a),m=i.ceil(a);return a-c<m-a?c:m},i.offset=(a,c)=>(e(a=new Date(+a),c==null?1:Math.floor(c)),a),i.range=(a,c,m)=>{const F=[];if(a=i.ceil(a),m=m==null?1:Math.floor(m),!(a<c)||!(m>0))return F;let C;do F.push(C=new Date(+a)),e(a,m),t(a);while(C<a&&a<c);return F},i.filter=a=>et(c=>{if(c>=c)for(;t(c),!a(c);)c.setTime(c-1)},(c,m)=>{if(c>=c)if(m<0)for(;++m<=0;)for(;e(c,-1),!a(c););else for(;--m>=0;)for(;e(c,1),!a(c););}),n&&(i.count=(a,c)=>(fe.setTime(+a),de.setTime(+c),t(fe),t(de),Math.floor(n(fe,de))),i.every=a=>(a=Math.floor(a),!isFinite(a)||!(a>0)?null:a>1?i.filter(r?c=>r(c)%a===0:c=>i.count(0,c)%a===0):i)),i}const Ut=et(()=>{},(t,e)=>{t.setTime(+t+e)},(t,e)=>e-t);Ut.every=t=>(t=Math.floor(t),!isFinite(t)||!(t>0)?null:t>1?et(e=>{e.setTime(Math.floor(e/t)*t)},(e,n)=>{e.setTime(+e+n*t)},(e,n)=>(n-e)/t):Ut);Ut.range;const mt=1e3,ct=mt*60,gt=ct*60,yt=gt*24,we=yt*7,Oe=yt*30,he=yt*365,vt=et(t=>{t.setTime(t-t.getMilliseconds())},(t,e)=>{t.setTime(+t+e*mt)},(t,e)=>(e-t)/mt,t=>t.getUTCSeconds());vt.range;const $t=et(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*mt)},(t,e)=>{t.setTime(+t+e*ct)},(t,e)=>(e-t)/ct,t=>t.getMinutes());$t.range;const gr=et(t=>{t.setUTCSeconds(0,0)},(t,e)=>{t.setTime(+t+e*ct)},(t,e)=>(e-t)/ct,t=>t.getUTCMinutes());gr.range;const Ot=et(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*mt-t.getMinutes()*ct)},(t,e)=>{t.setTime(+t+e*gt)},(t,e)=>(e-t)/gt,t=>t.getHours());Ot.range;const yr=et(t=>{t.setUTCMinutes(0,0,0)},(t,e)=>{t.setTime(+t+e*gt)},(t,e)=>(e-t)/gt,t=>t.getUTCHours());yr.range;const bt=et(t=>t.setHours(0,0,0,0),(t,e)=>t.setDate(t.getDate()+e),(t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*ct)/yt,t=>t.getDate()-1);bt.range;const Me=et(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/yt,t=>t.getUTCDate()-1);Me.range;const kr=et(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/yt,t=>Math.floor(t/yt));kr.range;function Mt(t){return et(e=>{e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)},(e,n)=>{e.setDate(e.getDate()+n*7)},(e,n)=>(n-e-(n.getTimezoneOffset()-e.getTimezoneOffset())*ct)/we)}const Pt=Mt(0),Ht=Mt(1),fn=Mt(2),dn=Mt(3),xt=Mt(4),hn=Mt(5),mn=Mt(6);Pt.range;Ht.range;fn.range;dn.range;xt.range;hn.range;mn.range;function Dt(t){return et(e=>{e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)},(e,n)=>{e.setUTCDate(e.getUTCDate()+n*7)},(e,n)=>(n-e)/we)}const gn=Dt(0),Jt=Dt(1),pr=Dt(2),vr=Dt(3),Et=Dt(4),Tr=Dt(5),br=Dt(6);gn.range;Jt.range;pr.range;vr.range;Et.range;Tr.range;br.range;const Nt=et(t=>{t.setDate(1),t.setHours(0,0,0,0)},(t,e)=>{t.setMonth(t.getMonth()+e)},(t,e)=>e.getMonth()-t.getMonth()+(e.getFullYear()-t.getFullYear())*12,t=>t.getMonth());Nt.range;const xr=et(t=>{t.setUTCDate(1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCMonth(t.getUTCMonth()+e)},(t,e)=>e.getUTCMonth()-t.getUTCMonth()+(e.getUTCFullYear()-t.getUTCFullYear())*12,t=>t.getUTCMonth());xr.range;const kt=et(t=>{t.setMonth(0,1),t.setHours(0,0,0,0)},(t,e)=>{t.setFullYear(t.getFullYear()+e)},(t,e)=>e.getFullYear()-t.getFullYear(),t=>t.getFullYear());kt.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:et(e=>{e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)},(e,n)=>{e.setFullYear(e.getFullYear()+n*t)});kt.range;const wt=et(t=>{t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCFullYear(t.getUTCFullYear()+e)},(t,e)=>e.getUTCFullYear()-t.getUTCFullYear(),t=>t.getUTCFullYear());wt.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:et(e=>{e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,n)=>{e.setUTCFullYear(e.getUTCFullYear()+n*t)});wt.range;function wr(t,e,n,r,i,a){const c=[[vt,1,mt],[vt,5,5*mt],[vt,15,15*mt],[vt,30,30*mt],[a,1,ct],[a,5,5*ct],[a,15,15*ct],[a,30,30*ct],[i,1,gt],[i,3,3*gt],[i,6,6*gt],[i,12,12*gt],[r,1,yt],[r,2,2*yt],[n,1,we],[e,1,Oe],[e,3,3*Oe],[t,1,he]];function m(C,k,L){const _=k<C;_&&([C,k]=[k,C]);const S=L&&typeof L.range=="function"?L:F(C,k,L),B=S?S.range(C,+k+1):[];return _?B.reverse():B}function F(C,k,L){const _=Math.abs(k-C)/L,S=Bn(([,,U])=>U).right(c,_);if(S===c.length)return t.every(We(C/he,k/he,L));if(S===0)return Ut.every(Math.max(We(C,k,L),1));const[B,A]=c[_/c[S-1][2]<c[S][2]/_?S-1:S];return B.every(A)}return[m,F]}const[Mr,Dr]=wr(kt,Nt,Pt,bt,Ot,$t);function me(t){if(0<=t.y&&t.y<100){var e=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return e.setFullYear(t.y),e}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function ge(t){if(0<=t.y&&t.y<100){var e=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return e.setUTCFullYear(t.y),e}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function Lt(t,e,n){return{y:t,m:e,d:n,H:0,M:0,S:0,L:0}}function Cr(t){var e=t.dateTime,n=t.date,r=t.time,i=t.periods,a=t.days,c=t.shortDays,m=t.months,F=t.shortMonths,C=At(i),k=Wt(i),L=At(a),_=Wt(a),S=At(c),B=Wt(c),A=At(m),U=Wt(m),I=At(F),N=Wt(F),W={a:x,A:Y,b:o,B:X,c:null,d:Re,e:Re,f:Gr,g:si,G:oi,H:Br,I:qr,j:Xr,L:yn,m:jr,M:Qr,p:s,q:E,Q:qe,s:Xe,S:Jr,u:Kr,U:ti,V:ei,w:ni,W:ri,x:null,X:null,y:ii,Y:ai,Z:ci,"%":Be},Z={a:R,A:z,b:P,B:K,c:null,d:Ze,e:Ze,f:di,g:xi,G:Mi,H:ui,I:li,j:fi,L:pn,m:hi,M:mi,p:O,q:st,Q:qe,s:Xe,S:gi,u:yi,U:ki,V:pi,w:vi,W:Ti,x:null,X:null,y:bi,Y:wi,Z:Di,"%":Be},j={a:M,A:w,b:T,B:v,c:u,d:Ve,e:Ve,f:Vr,g:Pe,G:Ne,H:ze,I:ze,j:Or,L:Pr,m:$r,M:Hr,p:h,q:Wr,Q:Rr,s:Zr,S:Nr,u:Ur,U:Er,V:Ir,w:Fr,W:Lr,x:f,X:b,y:Pe,Y:Ne,Z:Ar,"%":zr};W.x=p(n,W),W.X=p(r,W),W.c=p(e,W),Z.x=p(n,Z),Z.X=p(r,Z),Z.c=p(e,Z);function p(D,H){return function(V){var l=[],J=-1,$=0,Q=D.length,G,it,at;for(V instanceof Date||(V=new Date(+V));++J<Q;)D.charCodeAt(J)===37&&(l.push(D.slice($,J)),(it=He[G=D.charAt(++J)])!=null?G=D.charAt(++J):it=G==="e"?" ":"0",(at=H[G])&&(G=at(V,it)),l.push(G),$=J+1);return l.push(D.slice($,J)),l.join("")}}function g(D,H){return function(V){var l=Lt(1900,void 0,1),J=y(l,D,V+="",0),$,Q;if(J!=V.length)return null;if("Q"in l)return new Date(l.Q);if("s"in l)return new Date(l.s*1e3+("L"in l?l.L:0));if(H&&!("Z"in l)&&(l.Z=0),"p"in l&&(l.H=l.H%12+l.p*12),l.m===void 0&&(l.m="q"in l?l.q:0),"V"in l){if(l.V<1||l.V>53)return null;"w"in l||(l.w=1),"Z"in l?($=ge(Lt(l.y,0,1)),Q=$.getUTCDay(),$=Q>4||Q===0?Jt.ceil($):Jt($),$=Me.offset($,(l.V-1)*7),l.y=$.getUTCFullYear(),l.m=$.getUTCMonth(),l.d=$.getUTCDate()+(l.w+6)%7):($=me(Lt(l.y,0,1)),Q=$.getDay(),$=Q>4||Q===0?Ht.ceil($):Ht($),$=bt.offset($,(l.V-1)*7),l.y=$.getFullYear(),l.m=$.getMonth(),l.d=$.getDate()+(l.w+6)%7)}else("W"in l||"U"in l)&&("w"in l||(l.w="u"in l?l.u%7:"W"in l?1:0),Q="Z"in l?ge(Lt(l.y,0,1)).getUTCDay():me(Lt(l.y,0,1)).getDay(),l.m=0,l.d="W"in l?(l.w+6)%7+l.W*7-(Q+5)%7:l.w+l.U*7-(Q+6)%7);return"Z"in l?(l.H+=l.Z/100|0,l.M+=l.Z%100,ge(l)):me(l)}}function y(D,H,V,l){for(var J=0,$=H.length,Q=V.length,G,it;J<$;){if(l>=Q)return-1;if(G=H.charCodeAt(J++),G===37){if(G=H.charAt(J++),it=j[G in He?H.charAt(J++):G],!it||(l=it(D,V,l))<0)return-1}else if(G!=V.charCodeAt(l++))return-1}return l}function h(D,H,V){var l=C.exec(H.slice(V));return l?(D.p=k.get(l[0].toLowerCase()),V+l[0].length):-1}function M(D,H,V){var l=S.exec(H.slice(V));return l?(D.w=B.get(l[0].toLowerCase()),V+l[0].length):-1}function w(D,H,V){var l=L.exec(H.slice(V));return l?(D.w=_.get(l[0].toLowerCase()),V+l[0].length):-1}function T(D,H,V){var l=I.exec(H.slice(V));return l?(D.m=N.get(l[0].toLowerCase()),V+l[0].length):-1}function v(D,H,V){var l=A.exec(H.slice(V));return l?(D.m=U.get(l[0].toLowerCase()),V+l[0].length):-1}function u(D,H,V){return y(D,e,H,V)}function f(D,H,V){return y(D,n,H,V)}function b(D,H,V){return y(D,r,H,V)}function x(D){return c[D.getDay()]}function Y(D){return a[D.getDay()]}function o(D){return F[D.getMonth()]}function X(D){return m[D.getMonth()]}function s(D){return i[+(D.getHours()>=12)]}function E(D){return 1+~~(D.getMonth()/3)}function R(D){return c[D.getUTCDay()]}function z(D){return a[D.getUTCDay()]}function P(D){return F[D.getUTCMonth()]}function K(D){return m[D.getUTCMonth()]}function O(D){return i[+(D.getUTCHours()>=12)]}function st(D){return 1+~~(D.getUTCMonth()/3)}return{format:function(D){var H=p(D+="",W);return H.toString=function(){return D},H},parse:function(D){var H=g(D+="",!1);return H.toString=function(){return D},H},utcFormat:function(D){var H=p(D+="",Z);return H.toString=function(){return D},H},utcParse:function(D){var H=g(D+="",!0);return H.toString=function(){return D},H}}}var He={"-":"",_:" ",0:"0"},nt=/^\s*\d+/,Sr=/^%/,_r=/[\\^$*+?|[\]().{}]/g;function q(t,e,n){var r=t<0?"-":"",i=(r?-t:t)+"",a=i.length;return r+(a<n?new Array(n-a+1).join(e)+i:i)}function Yr(t){return t.replace(_r,"\\$&")}function At(t){return new RegExp("^(?:"+t.map(Yr).join("|")+")","i")}function Wt(t){return new Map(t.map((e,n)=>[e.toLowerCase(),n]))}function Fr(t,e,n){var r=nt.exec(e.slice(n,n+1));return r?(t.w=+r[0],n+r[0].length):-1}function Ur(t,e,n){var r=nt.exec(e.slice(n,n+1));return r?(t.u=+r[0],n+r[0].length):-1}function Er(t,e,n){var r=nt.exec(e.slice(n,n+2));return r?(t.U=+r[0],n+r[0].length):-1}function Ir(t,e,n){var r=nt.exec(e.slice(n,n+2));return r?(t.V=+r[0],n+r[0].length):-1}function Lr(t,e,n){var r=nt.exec(e.slice(n,n+2));return r?(t.W=+r[0],n+r[0].length):-1}function Ne(t,e,n){var r=nt.exec(e.slice(n,n+4));return r?(t.y=+r[0],n+r[0].length):-1}function Pe(t,e,n){var r=nt.exec(e.slice(n,n+2));return r?(t.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function Ar(t,e,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(n,n+6));return r?(t.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function Wr(t,e,n){var r=nt.exec(e.slice(n,n+1));return r?(t.q=r[0]*3-3,n+r[0].length):-1}function $r(t,e,n){var r=nt.exec(e.slice(n,n+2));return r?(t.m=r[0]-1,n+r[0].length):-1}function Ve(t,e,n){var r=nt.exec(e.slice(n,n+2));return r?(t.d=+r[0],n+r[0].length):-1}function Or(t,e,n){var r=nt.exec(e.slice(n,n+3));return r?(t.m=0,t.d=+r[0],n+r[0].length):-1}function ze(t,e,n){var r=nt.exec(e.slice(n,n+2));return r?(t.H=+r[0],n+r[0].length):-1}function Hr(t,e,n){var r=nt.exec(e.slice(n,n+2));return r?(t.M=+r[0],n+r[0].length):-1}function Nr(t,e,n){var r=nt.exec(e.slice(n,n+2));return r?(t.S=+r[0],n+r[0].length):-1}function Pr(t,e,n){var r=nt.exec(e.slice(n,n+3));return r?(t.L=+r[0],n+r[0].length):-1}function Vr(t,e,n){var r=nt.exec(e.slice(n,n+6));return r?(t.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function zr(t,e,n){var r=Sr.exec(e.slice(n,n+1));return r?n+r[0].length:-1}function Rr(t,e,n){var r=nt.exec(e.slice(n));return r?(t.Q=+r[0],n+r[0].length):-1}function Zr(t,e,n){var r=nt.exec(e.slice(n));return r?(t.s=+r[0],n+r[0].length):-1}function Re(t,e){return q(t.getDate(),e,2)}function Br(t,e){return q(t.getHours(),e,2)}function qr(t,e){return q(t.getHours()%12||12,e,2)}function Xr(t,e){return q(1+bt.count(kt(t),t),e,3)}function yn(t,e){return q(t.getMilliseconds(),e,3)}function Gr(t,e){return yn(t,e)+"000"}function jr(t,e){return q(t.getMonth()+1,e,2)}function Qr(t,e){return q(t.getMinutes(),e,2)}function Jr(t,e){return q(t.getSeconds(),e,2)}function Kr(t){var e=t.getDay();return e===0?7:e}function ti(t,e){return q(Pt.count(kt(t)-1,t),e,2)}function kn(t){var e=t.getDay();return e>=4||e===0?xt(t):xt.ceil(t)}function ei(t,e){return t=kn(t),q(xt.count(kt(t),t)+(kt(t).getDay()===4),e,2)}function ni(t){return t.getDay()}function ri(t,e){return q(Ht.count(kt(t)-1,t),e,2)}function ii(t,e){return q(t.getFullYear()%100,e,2)}function si(t,e){return t=kn(t),q(t.getFullYear()%100,e,2)}function ai(t,e){return q(t.getFullYear()%1e4,e,4)}function oi(t,e){var n=t.getDay();return t=n>=4||n===0?xt(t):xt.ceil(t),q(t.getFullYear()%1e4,e,4)}function ci(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+q(e/60|0,"0",2)+q(e%60,"0",2)}function Ze(t,e){return q(t.getUTCDate(),e,2)}function ui(t,e){return q(t.getUTCHours(),e,2)}function li(t,e){return q(t.getUTCHours()%12||12,e,2)}function fi(t,e){return q(1+Me.count(wt(t),t),e,3)}function pn(t,e){return q(t.getUTCMilliseconds(),e,3)}function di(t,e){return pn(t,e)+"000"}function hi(t,e){return q(t.getUTCMonth()+1,e,2)}function mi(t,e){return q(t.getUTCMinutes(),e,2)}function gi(t,e){return q(t.getUTCSeconds(),e,2)}function yi(t){var e=t.getUTCDay();return e===0?7:e}function ki(t,e){return q(gn.count(wt(t)-1,t),e,2)}function vn(t){var e=t.getUTCDay();return e>=4||e===0?Et(t):Et.ceil(t)}function pi(t,e){return t=vn(t),q(Et.count(wt(t),t)+(wt(t).getUTCDay()===4),e,2)}function vi(t){return t.getUTCDay()}function Ti(t,e){return q(Jt.count(wt(t)-1,t),e,2)}function bi(t,e){return q(t.getUTCFullYear()%100,e,2)}function xi(t,e){return t=vn(t),q(t.getUTCFullYear()%100,e,2)}function wi(t,e){return q(t.getUTCFullYear()%1e4,e,4)}function Mi(t,e){var n=t.getUTCDay();return t=n>=4||n===0?Et(t):Et.ceil(t),q(t.getUTCFullYear()%1e4,e,4)}function Di(){return"+0000"}function Be(){return"%"}function qe(t){return+t}function Xe(t){return Math.floor(+t/1e3)}var St,Kt;Ci({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function Ci(t){return St=Cr(t),Kt=St.format,St.parse,St.utcFormat,St.utcParse,St}function Si(t){return new Date(t)}function _i(t){return t instanceof Date?+t:+new Date(+t)}function Tn(t,e,n,r,i,a,c,m,F,C){var k=qn(),L=k.invert,_=k.domain,S=C(".%L"),B=C(":%S"),A=C("%I:%M"),U=C("%I %p"),I=C("%a %d"),N=C("%b %d"),W=C("%B"),Z=C("%Y");function j(p){return(F(p)<p?S:m(p)<p?B:c(p)<p?A:a(p)<p?U:r(p)<p?i(p)<p?I:N:n(p)<p?W:Z)(p)}return k.invert=function(p){return new Date(L(p))},k.domain=function(p){return arguments.length?_(Array.from(p,_i)):_().map(Si)},k.ticks=function(p){var g=_();return t(g[0],g[g.length-1],p??10)},k.tickFormat=function(p,g){return g==null?j:C(g)},k.nice=function(p){var g=_();return(!p||typeof p.range!="function")&&(p=e(g[0],g[g.length-1],p??10)),p?_(mr(g,p)):k},k.copy=function(){return Xn(k,Tn(t,e,n,r,i,a,c,m,F,C))},k}function Yi(){return jn.apply(Tn(Mr,Dr,kt,Nt,Pt,bt,Ot,$t,vt,Kt).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}var bn={exports:{}};(function(t,e){(function(n,r){t.exports=r()})(ne,(function(){var n="day";return function(r,i,a){var c=function(C){return C.add(4-C.isoWeekday(),n)},m=i.prototype;m.isoWeekYear=function(){return c(this).year()},m.isoWeek=function(C){if(!this.$utils().u(C))return this.add(7*(C-this.isoWeek()),n);var k,L,_,S,B=c(this),A=(k=this.isoWeekYear(),L=this.$u,_=(L?a.utc:a)().year(k).startOf("year"),S=4-_.isoWeekday(),_.isoWeekday()>4&&(S+=7),_.add(S,n));return B.diff(A,"week")+1},m.isoWeekday=function(C){return this.$utils().u(C)?this.day()||7:this.day(this.day()%7?C:C-7)};var F=m.startOf;m.startOf=function(C,k){var L=this.$utils(),_=!!L.u(k)||k;return L.p(C)==="isoweek"?_?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):F.bind(this)(C,k)}}}))})(bn);var Fi=bn.exports;const Ui=re(Fi);var xn={exports:{}};(function(t,e){(function(n,r){t.exports=r()})(ne,(function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},r=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,i=/\d/,a=/\d\d/,c=/\d\d?/,m=/\d*[^-_:/,()\s\d]+/,F={},C=function(U){return(U=+U)+(U>68?1900:2e3)},k=function(U){return function(I){this[U]=+I}},L=[/[+-]\d\d:?(\d\d)?|Z/,function(U){(this.zone||(this.zone={})).offset=(function(I){if(!I||I==="Z")return 0;var N=I.match(/([+-]|\d\d)/g),W=60*N[1]+(+N[2]||0);return W===0?0:N[0]==="+"?-W:W})(U)}],_=function(U){var I=F[U];return I&&(I.indexOf?I:I.s.concat(I.f))},S=function(U,I){var N,W=F.meridiem;if(W){for(var Z=1;Z<=24;Z+=1)if(U.indexOf(W(Z,0,I))>-1){N=Z>12;break}}else N=U===(I?"pm":"PM");return N},B={A:[m,function(U){this.afternoon=S(U,!1)}],a:[m,function(U){this.afternoon=S(U,!0)}],Q:[i,function(U){this.month=3*(U-1)+1}],S:[i,function(U){this.milliseconds=100*+U}],SS:[a,function(U){this.milliseconds=10*+U}],SSS:[/\d{3}/,function(U){this.milliseconds=+U}],s:[c,k("seconds")],ss:[c,k("seconds")],m:[c,k("minutes")],mm:[c,k("minutes")],H:[c,k("hours")],h:[c,k("hours")],HH:[c,k("hours")],hh:[c,k("hours")],D:[c,k("day")],DD:[a,k("day")],Do:[m,function(U){var I=F.ordinal,N=U.match(/\d+/);if(this.day=N[0],I)for(var W=1;W<=31;W+=1)I(W).replace(/\[|\]/g,"")===U&&(this.day=W)}],w:[c,k("week")],ww:[a,k("week")],M:[c,k("month")],MM:[a,k("month")],MMM:[m,function(U){var I=_("months"),N=(_("monthsShort")||I.map((function(W){return W.slice(0,3)}))).indexOf(U)+1;if(N<1)throw new Error;this.month=N%12||N}],MMMM:[m,function(U){var I=_("months").indexOf(U)+1;if(I<1)throw new Error;this.month=I%12||I}],Y:[/[+-]?\d+/,k("year")],YY:[a,function(U){this.year=C(U)}],YYYY:[/\d{4}/,k("year")],Z:L,ZZ:L};function A(U){var I,N;I=U,N=F&&F.formats;for(var W=(U=I.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(M,w,T){var v=T&&T.toUpperCase();return w||N[T]||n[T]||N[v].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(u,f,b){return f||b.slice(1)}))}))).match(r),Z=W.length,j=0;j<Z;j+=1){var p=W[j],g=B[p],y=g&&g[0],h=g&&g[1];W[j]=h?{regex:y,parser:h}:p.replace(/^\[|\]$/g,"")}return function(M){for(var w={},T=0,v=0;T<Z;T+=1){var u=W[T];if(typeof u=="string")v+=u.length;else{var f=u.regex,b=u.parser,x=M.slice(v),Y=f.exec(x)[0];b.call(w,Y),M=M.replace(Y,"")}}return(function(o){var X=o.afternoon;if(X!==void 0){var s=o.hours;X?s<12&&(o.hours+=12):s===12&&(o.hours=0),delete o.afternoon}})(w),w}}return function(U,I,N){N.p.customParseFormat=!0,U&&U.parseTwoDigitYear&&(C=U.parseTwoDigitYear);var W=I.prototype,Z=W.parse;W.parse=function(j){var p=j.date,g=j.utc,y=j.args;this.$u=g;var h=y[1];if(typeof h=="string"){var M=y[2]===!0,w=y[3]===!0,T=M||w,v=y[2];w&&(v=y[2]),F=this.$locale(),!M&&v&&(F=N.Ls[v]),this.$d=(function(x,Y,o,X){try{if(["x","X"].indexOf(Y)>-1)return new Date((Y==="X"?1e3:1)*x);var s=A(Y)(x),E=s.year,R=s.month,z=s.day,P=s.hours,K=s.minutes,O=s.seconds,st=s.milliseconds,D=s.zone,H=s.week,V=new Date,l=z||(E||R?1:V.getDate()),J=E||V.getFullYear(),$=0;E&&!R||($=R>0?R-1:V.getMonth());var Q,G=P||0,it=K||0,at=O||0,pt=st||0;return D?new Date(Date.UTC(J,$,l,G,it,at,pt+60*D.offset*1e3)):o?new Date(Date.UTC(J,$,l,G,it,at,pt)):(Q=new Date(J,$,l,G,it,at,pt),H&&(Q=X(Q).week(H).toDate()),Q)}catch{return new Date("")}})(p,h,g,N),this.init(),v&&v!==!0&&(this.$L=this.locale(v).$L),T&&p!=this.format(h)&&(this.$d=new Date("")),F={}}else if(h instanceof Array)for(var u=h.length,f=1;f<=u;f+=1){y[1]=h[f-1];var b=N.apply(this,y);if(b.isValid()){this.$d=b.$d,this.$L=b.$L,this.init();break}f===u&&(this.$d=new Date(""))}else Z.call(this,j)}}}))})(xn);var Ei=xn.exports;const Ii=re(Ei);var wn={exports:{}};(function(t,e){(function(n,r){t.exports=r()})(ne,(function(){return function(n,r){var i=r.prototype,a=i.format;i.format=function(c){var m=this,F=this.$locale();if(!this.isValid())return a.bind(this)(c);var C=this.$utils(),k=(c||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,(function(L){switch(L){case"Q":return Math.ceil((m.$M+1)/3);case"Do":return F.ordinal(m.$D);case"gggg":return m.weekYear();case"GGGG":return m.isoWeekYear();case"wo":return F.ordinal(m.week(),"W");case"w":case"ww":return C.s(m.week(),L==="w"?1:2,"0");case"W":case"WW":return C.s(m.isoWeek(),L==="W"?1:2,"0");case"k":case"kk":return C.s(String(m.$H===0?24:m.$H),L==="k"?1:2,"0");case"X":return Math.floor(m.$d.getTime()/1e3);case"x":return m.$d.getTime();case"z":return"["+m.offsetName()+"]";case"zzz":return"["+m.offsetName("long")+"]";default:return L}}));return a.bind(this)(k)}}}))})(wn);var Li=wn.exports;const Ai=re(Li);var Mn={exports:{}};(function(t,e){(function(n,r){t.exports=r()})(ne,(function(){var n,r,i=1e3,a=6e4,c=36e5,m=864e5,F=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,C=31536e6,k=2628e6,L=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,_={years:C,months:k,days:m,hours:c,minutes:a,seconds:i,milliseconds:1,weeks:6048e5},S=function(p){return p instanceof Z},B=function(p,g,y){return new Z(p,y,g.$l)},A=function(p){return r.p(p)+"s"},U=function(p){return p<0},I=function(p){return U(p)?Math.ceil(p):Math.floor(p)},N=function(p){return Math.abs(p)},W=function(p,g){return p?U(p)?{negative:!0,format:""+N(p)+g}:{negative:!1,format:""+p+g}:{negative:!1,format:""}},Z=(function(){function p(y,h,M){var w=this;if(this.$d={},this.$l=M,y===void 0&&(this.$ms=0,this.parseFromMilliseconds()),h)return B(y*_[A(h)],this);if(typeof y=="number")return this.$ms=y,this.parseFromMilliseconds(),this;if(typeof y=="object")return Object.keys(y).forEach((function(u){w.$d[A(u)]=y[u]})),this.calMilliseconds(),this;if(typeof y=="string"){var T=y.match(L);if(T){var v=T.slice(2).map((function(u){return u!=null?Number(u):0}));return this.$d.years=v[0],this.$d.months=v[1],this.$d.weeks=v[2],this.$d.days=v[3],this.$d.hours=v[4],this.$d.minutes=v[5],this.$d.seconds=v[6],this.calMilliseconds(),this}}return this}var g=p.prototype;return g.calMilliseconds=function(){var y=this;this.$ms=Object.keys(this.$d).reduce((function(h,M){return h+(y.$d[M]||0)*_[M]}),0)},g.parseFromMilliseconds=function(){var y=this.$ms;this.$d.years=I(y/C),y%=C,this.$d.months=I(y/k),y%=k,this.$d.days=I(y/m),y%=m,this.$d.hours=I(y/c),y%=c,this.$d.minutes=I(y/a),y%=a,this.$d.seconds=I(y/i),y%=i,this.$d.milliseconds=y},g.toISOString=function(){var y=W(this.$d.years,"Y"),h=W(this.$d.months,"M"),M=+this.$d.days||0;this.$d.weeks&&(M+=7*this.$d.weeks);var w=W(M,"D"),T=W(this.$d.hours,"H"),v=W(this.$d.minutes,"M"),u=this.$d.seconds||0;this.$d.milliseconds&&(u+=this.$d.milliseconds/1e3,u=Math.round(1e3*u)/1e3);var f=W(u,"S"),b=y.negative||h.negative||w.negative||T.negative||v.negative||f.negative,x=T.format||v.format||f.format?"T":"",Y=(b?"-":"")+"P"+y.format+h.format+w.format+x+T.format+v.format+f.format;return Y==="P"||Y==="-P"?"P0D":Y},g.toJSON=function(){return this.toISOString()},g.format=function(y){var h=y||"YYYY-MM-DDTHH:mm:ss",M={Y:this.$d.years,YY:r.s(this.$d.years,2,"0"),YYYY:r.s(this.$d.years,4,"0"),M:this.$d.months,MM:r.s(this.$d.months,2,"0"),D:this.$d.days,DD:r.s(this.$d.days,2,"0"),H:this.$d.hours,HH:r.s(this.$d.hours,2,"0"),m:this.$d.minutes,mm:r.s(this.$d.minutes,2,"0"),s:this.$d.seconds,ss:r.s(this.$d.seconds,2,"0"),SSS:r.s(this.$d.milliseconds,3,"0")};return h.replace(F,(function(w,T){return T||String(M[w])}))},g.as=function(y){return this.$ms/_[A(y)]},g.get=function(y){var h=this.$ms,M=A(y);return M==="milliseconds"?h%=1e3:h=M==="weeks"?I(h/_[M]):this.$d[M],h||0},g.add=function(y,h,M){var w;return w=h?y*_[A(h)]:S(y)?y.$ms:B(y,this).$ms,B(this.$ms+w*(M?-1:1),this)},g.subtract=function(y,h){return this.add(y,h,!0)},g.locale=function(y){var h=this.clone();return h.$l=y,h},g.clone=function(){return B(this.$ms,this)},g.humanize=function(y){return n().add(this.$ms,"ms").locale(this.$l).fromNow(!y)},g.valueOf=function(){return this.asMilliseconds()},g.milliseconds=function(){return this.get("milliseconds")},g.asMilliseconds=function(){return this.as("milliseconds")},g.seconds=function(){return this.get("seconds")},g.asSeconds=function(){return this.as("seconds")},g.minutes=function(){return this.get("minutes")},g.asMinutes=function(){return this.as("minutes")},g.hours=function(){return this.get("hours")},g.asHours=function(){return this.as("hours")},g.days=function(){return this.get("days")},g.asDays=function(){return this.as("days")},g.weeks=function(){return this.get("weeks")},g.asWeeks=function(){return this.as("weeks")},g.months=function(){return this.get("months")},g.asMonths=function(){return this.as("months")},g.years=function(){return this.get("years")},g.asYears=function(){return this.as("years")},p})(),j=function(p,g,y){return p.add(g.years()*y,"y").add(g.months()*y,"M").add(g.days()*y,"d").add(g.hours()*y,"h").add(g.minutes()*y,"m").add(g.seconds()*y,"s").add(g.milliseconds()*y,"ms")};return function(p,g,y){n=y,r=y().$utils(),y.duration=function(w,T){var v=y.locale();return B(w,{$l:v},T)},y.isDuration=S;var h=g.prototype.add,M=g.prototype.subtract;g.prototype.add=function(w,T){return S(w)?j(this,w,1):h.bind(this)(w,T)},g.prototype.subtract=function(w,T){return S(w)?j(this,w,-1):M.bind(this)(w,T)}}}))})(Mn);var Wi=Mn.exports;const $i=re(Wi);var ve=(function(){var t=d(function(v,u,f,b){for(f=f||{},b=v.length;b--;f[v[b]]=u);return f},"o"),e=[6,8,10,12,13,14,15,16,17,18,20,21,22,23,24,25,26,27,28,29,30,31,33,35,36,38,40],n=[1,26],r=[1,27],i=[1,28],a=[1,29],c=[1,30],m=[1,31],F=[1,32],C=[1,33],k=[1,34],L=[1,9],_=[1,10],S=[1,11],B=[1,12],A=[1,13],U=[1,14],I=[1,15],N=[1,16],W=[1,19],Z=[1,20],j=[1,21],p=[1,22],g=[1,23],y=[1,25],h=[1,35],M={trace:d(function(){},"trace"),yy:{},symbols_:{error:2,start:3,gantt:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NL:10,weekday:11,weekday_monday:12,weekday_tuesday:13,weekday_wednesday:14,weekday_thursday:15,weekday_friday:16,weekday_saturday:17,weekday_sunday:18,weekend:19,weekend_friday:20,weekend_saturday:21,dateFormat:22,inclusiveEndDates:23,topAxis:24,axisFormat:25,tickInterval:26,excludes:27,includes:28,todayMarker:29,title:30,acc_title:31,acc_title_value:32,acc_descr:33,acc_descr_value:34,acc_descr_multiline_value:35,section:36,clickStatement:37,taskTxt:38,taskData:39,click:40,callbackname:41,callbackargs:42,href:43,clickStatementDebug:44,$accept:0,$end:1},terminals_:{2:"error",4:"gantt",6:"EOF",8:"SPACE",10:"NL",12:"weekday_monday",13:"weekday_tuesday",14:"weekday_wednesday",15:"weekday_thursday",16:"weekday_friday",17:"weekday_saturday",18:"weekday_sunday",20:"weekend_friday",21:"weekend_saturday",22:"dateFormat",23:"inclusiveEndDates",24:"topAxis",25:"axisFormat",26:"tickInterval",27:"excludes",28:"includes",29:"todayMarker",30:"title",31:"acc_title",32:"acc_title_value",33:"acc_descr",34:"acc_descr_value",35:"acc_descr_multiline_value",36:"section",38:"taskTxt",39:"taskData",40:"click",41:"callbackname",42:"callbackargs",43:"href"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[11,1],[11,1],[11,1],[11,1],[11,1],[11,1],[11,1],[19,1],[19,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,1],[9,2],[37,2],[37,3],[37,3],[37,4],[37,3],[37,4],[37,2],[44,2],[44,3],[44,3],[44,4],[44,3],[44,4],[44,2]],performAction:d(function(u,f,b,x,Y,o,X){var s=o.length-1;switch(Y){case 1:return o[s-1];case 2:this.$=[];break;case 3:o[s-1].push(o[s]),this.$=o[s-1];break;case 4:case 5:this.$=o[s];break;case 6:case 7:this.$=[];break;case 8:x.setWeekday("monday");break;case 9:x.setWeekday("tuesday");break;case 10:x.setWeekday("wednesday");break;case 11:x.setWeekday("thursday");break;case 12:x.setWeekday("friday");break;case 13:x.setWeekday("saturday");break;case 14:x.setWeekday("sunday");break;case 15:x.setWeekend("friday");break;case 16:x.setWeekend("saturday");break;case 17:x.setDateFormat(o[s].substr(11)),this.$=o[s].substr(11);break;case 18:x.enableInclusiveEndDates(),this.$=o[s].substr(18);break;case 19:x.TopAxis(),this.$=o[s].substr(8);break;case 20:x.setAxisFormat(o[s].substr(11)),this.$=o[s].substr(11);break;case 21:x.setTickInterval(o[s].substr(13)),this.$=o[s].substr(13);break;case 22:x.setExcludes(o[s].substr(9)),this.$=o[s].substr(9);break;case 23:x.setIncludes(o[s].substr(9)),this.$=o[s].substr(9);break;case 24:x.setTodayMarker(o[s].substr(12)),this.$=o[s].substr(12);break;case 27:x.setDiagramTitle(o[s].substr(6)),this.$=o[s].substr(6);break;case 28:this.$=o[s].trim(),x.setAccTitle(this.$);break;case 29:case 30:this.$=o[s].trim(),x.setAccDescription(this.$);break;case 31:x.addSection(o[s].substr(8)),this.$=o[s].substr(8);break;case 33:x.addTask(o[s-1],o[s]),this.$="task";break;case 34:this.$=o[s-1],x.setClickEvent(o[s-1],o[s],null);break;case 35:this.$=o[s-2],x.setClickEvent(o[s-2],o[s-1],o[s]);break;case 36:this.$=o[s-2],x.setClickEvent(o[s-2],o[s-1],null),x.setLink(o[s-2],o[s]);break;case 37:this.$=o[s-3],x.setClickEvent(o[s-3],o[s-2],o[s-1]),x.setLink(o[s-3],o[s]);break;case 38:this.$=o[s-2],x.setClickEvent(o[s-2],o[s],null),x.setLink(o[s-2],o[s-1]);break;case 39:this.$=o[s-3],x.setClickEvent(o[s-3],o[s-1],o[s]),x.setLink(o[s-3],o[s-2]);break;case 40:this.$=o[s-1],x.setLink(o[s-1],o[s]);break;case 41:case 47:this.$=o[s-1]+" "+o[s];break;case 42:case 43:case 45:this.$=o[s-2]+" "+o[s-1]+" "+o[s];break;case 44:case 46:this.$=o[s-3]+" "+o[s-2]+" "+o[s-1]+" "+o[s];break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},t(e,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:17,12:n,13:r,14:i,15:a,16:c,17:m,18:F,19:18,20:C,21:k,22:L,23:_,24:S,25:B,26:A,27:U,28:I,29:N,30:W,31:Z,33:j,35:p,36:g,37:24,38:y,40:h},t(e,[2,7],{1:[2,1]}),t(e,[2,3]),{9:36,11:17,12:n,13:r,14:i,15:a,16:c,17:m,18:F,19:18,20:C,21:k,22:L,23:_,24:S,25:B,26:A,27:U,28:I,29:N,30:W,31:Z,33:j,35:p,36:g,37:24,38:y,40:h},t(e,[2,5]),t(e,[2,6]),t(e,[2,17]),t(e,[2,18]),t(e,[2,19]),t(e,[2,20]),t(e,[2,21]),t(e,[2,22]),t(e,[2,23]),t(e,[2,24]),t(e,[2,25]),t(e,[2,26]),t(e,[2,27]),{32:[1,37]},{34:[1,38]},t(e,[2,30]),t(e,[2,31]),t(e,[2,32]),{39:[1,39]},t(e,[2,8]),t(e,[2,9]),t(e,[2,10]),t(e,[2,11]),t(e,[2,12]),t(e,[2,13]),t(e,[2,14]),t(e,[2,15]),t(e,[2,16]),{41:[1,40],43:[1,41]},t(e,[2,4]),t(e,[2,28]),t(e,[2,29]),t(e,[2,33]),t(e,[2,34],{42:[1,42],43:[1,43]}),t(e,[2,40],{41:[1,44]}),t(e,[2,35],{43:[1,45]}),t(e,[2,36]),t(e,[2,38],{42:[1,46]}),t(e,[2,37]),t(e,[2,39])],defaultActions:{},parseError:d(function(u,f){if(f.recoverable)this.trace(u);else{var b=new Error(u);throw b.hash=f,b}},"parseError"),parse:d(function(u){var f=this,b=[0],x=[],Y=[null],o=[],X=this.table,s="",E=0,R=0,z=2,P=1,K=o.slice.call(arguments,1),O=Object.create(this.lexer),st={yy:{}};for(var D in this.yy)Object.prototype.hasOwnProperty.call(this.yy,D)&&(st.yy[D]=this.yy[D]);O.setInput(u,st.yy),st.yy.lexer=O,st.yy.parser=this,typeof O.yylloc>"u"&&(O.yylloc={});var H=O.yylloc;o.push(H);var V=O.options&&O.options.ranges;typeof st.yy.parseError=="function"?this.parseError=st.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function l(ot){b.length=b.length-2*ot,Y.length=Y.length-ot,o.length=o.length-ot}d(l,"popStack");function J(){var ot;return ot=x.pop()||O.lex()||P,typeof ot!="number"&&(ot instanceof Array&&(x=ot,ot=x.pop()),ot=f.symbols_[ot]||ot),ot}d(J,"lex");for(var $,Q,G,it,at={},pt,ut,Ae,Zt;;){if(Q=b[b.length-1],this.defaultActions[Q]?G=this.defaultActions[Q]:(($===null||typeof $>"u")&&($=J()),G=X[Q]&&X[Q][$]),typeof G>"u"||!G.length||!G[0]){var ie="";Zt=[];for(pt in X[Q])this.terminals_[pt]&&pt>z&&Zt.push("'"+this.terminals_[pt]+"'");O.showPosition?ie="Parse error on line "+(E+1)+`:
1
+ import{g as In,s as Ln,q as An,p as Wn,a as $n,b as On,_ as d,c as _t,d as Hn,aV as rt,l as Tt,j as Nn,i as Pn,y as Vn,u as zn}from"./mermaid.core-B_cUK0gA.js";import{bl as Je,bm as Rn,bn as Ke,bo as tn,bp as en,bq as se,br as Zn,b as ne,g as re,s as Bt}from"./index-B0VAn5-V.js";import{b as Bn,t as We,c as qn,a as Xn,l as Gn}from"./linear-BAEXCBnK.js";import{i as jn}from"./init-Gi6I4Gst.js";import"./mermaid-VLURNSYL-D2mykrpe.js";import"./index-e-4cSkrt.js";import"./maximize-2-BPmhoPLp.js";import"./defaultLocale-DX6XiGOO.js";const Qn=Math.PI/180,Jn=180/Math.PI,Qt=18,nn=.96422,rn=1,sn=.82521,an=4/29,Yt=6/29,on=3*Yt*Yt,Kn=Yt*Yt*Yt;function cn(t){if(t instanceof ft)return new ft(t.l,t.a,t.b,t.opacity);if(t instanceof ht)return un(t);t instanceof Je||(t=Rn(t));var e=ue(t.r),n=ue(t.g),r=ue(t.b),i=ae((.2225045*e+.7168786*n+.0606169*r)/rn),a,c;return e===n&&n===r?a=c=i:(a=ae((.4360747*e+.3850649*n+.1430804*r)/nn),c=ae((.0139322*e+.0971045*n+.7141733*r)/sn)),new ft(116*i-16,500*(a-i),200*(i-c),t.opacity)}function tr(t,e,n,r){return arguments.length===1?cn(t):new ft(t,e,n,r??1)}function ft(t,e,n,r){this.l=+t,this.a=+e,this.b=+n,this.opacity=+r}Ke(ft,tr,tn(en,{brighter(t){return new ft(this.l+Qt*(t??1),this.a,this.b,this.opacity)},darker(t){return new ft(this.l-Qt*(t??1),this.a,this.b,this.opacity)},rgb(){var t=(this.l+16)/116,e=isNaN(this.a)?t:t+this.a/500,n=isNaN(this.b)?t:t-this.b/200;return e=nn*oe(e),t=rn*oe(t),n=sn*oe(n),new Je(ce(3.1338561*e-1.6168667*t-.4906146*n),ce(-.9787684*e+1.9161415*t+.033454*n),ce(.0719453*e-.2289914*t+1.4052427*n),this.opacity)}}));function ae(t){return t>Kn?Math.pow(t,1/3):t/on+an}function oe(t){return t>Yt?t*t*t:on*(t-an)}function ce(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function ue(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function er(t){if(t instanceof ht)return new ht(t.h,t.c,t.l,t.opacity);if(t instanceof ft||(t=cn(t)),t.a===0&&t.b===0)return new ht(NaN,0<t.l&&t.l<100?0:NaN,t.l,t.opacity);var e=Math.atan2(t.b,t.a)*Jn;return new ht(e<0?e+360:e,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}function ke(t,e,n,r){return arguments.length===1?er(t):new ht(t,e,n,r??1)}function ht(t,e,n,r){this.h=+t,this.c=+e,this.l=+n,this.opacity=+r}function un(t){if(isNaN(t.h))return new ft(t.l,0,0,t.opacity);var e=t.h*Qn;return new ft(t.l,Math.cos(e)*t.c,Math.sin(e)*t.c,t.opacity)}Ke(ht,ke,tn(en,{brighter(t){return new ht(this.h,this.c,this.l+Qt*(t??1),this.opacity)},darker(t){return new ht(this.h,this.c,this.l-Qt*(t??1),this.opacity)},rgb(){return un(this).rgb()}}));function nr(t){return function(e,n){var r=t((e=ke(e)).h,(n=ke(n)).h),i=se(e.c,n.c),a=se(e.l,n.l),c=se(e.opacity,n.opacity);return function(m){return e.h=r(m),e.c=i(m),e.l=a(m),e.opacity=c(m),e+""}}}const rr=nr(Zn);function ir(t,e){let n;if(e===void 0)for(const r of t)r!=null&&(n<r||n===void 0&&r>=r)&&(n=r);else{let r=-1;for(let i of t)(i=e(i,++r,t))!=null&&(n<i||n===void 0&&i>=i)&&(n=i)}return n}function sr(t,e){let n;if(e===void 0)for(const r of t)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);else{let r=-1;for(let i of t)(i=e(i,++r,t))!=null&&(n>i||n===void 0&&i>=i)&&(n=i)}return n}function ar(t){return t}var Xt=1,le=2,pe=3,qt=4,$e=1e-6;function or(t){return"translate("+t+",0)"}function cr(t){return"translate(0,"+t+")"}function ur(t){return e=>+t(e)}function lr(t,e){return e=Math.max(0,t.bandwidth()-e*2)/2,t.round()&&(e=Math.round(e)),n=>+t(n)+e}function fr(){return!this.__axis}function ln(t,e){var n=[],r=null,i=null,a=6,c=6,m=3,F=typeof window<"u"&&window.devicePixelRatio>1?0:.5,C=t===Xt||t===qt?-1:1,k=t===qt||t===le?"x":"y",L=t===Xt||t===pe?or:cr;function _(S){var B=r??(e.ticks?e.ticks.apply(e,n):e.domain()),A=i??(e.tickFormat?e.tickFormat.apply(e,n):ar),U=Math.max(a,0)+m,I=e.range(),N=+I[0]+F,W=+I[I.length-1]+F,Z=(e.bandwidth?lr:ur)(e.copy(),F),j=S.selection?S.selection():S,p=j.selectAll(".domain").data([null]),g=j.selectAll(".tick").data(B,e).order(),y=g.exit(),h=g.enter().append("g").attr("class","tick"),M=g.select("line"),w=g.select("text");p=p.merge(p.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),g=g.merge(h),M=M.merge(h.append("line").attr("stroke","currentColor").attr(k+"2",C*a)),w=w.merge(h.append("text").attr("fill","currentColor").attr(k,C*U).attr("dy",t===Xt?"0em":t===pe?"0.71em":"0.32em")),S!==j&&(p=p.transition(S),g=g.transition(S),M=M.transition(S),w=w.transition(S),y=y.transition(S).attr("opacity",$e).attr("transform",function(T){return isFinite(T=Z(T))?L(T+F):this.getAttribute("transform")}),h.attr("opacity",$e).attr("transform",function(T){var v=this.parentNode.__axis;return L((v&&isFinite(v=v(T))?v:Z(T))+F)})),y.remove(),p.attr("d",t===qt||t===le?c?"M"+C*c+","+N+"H"+F+"V"+W+"H"+C*c:"M"+F+","+N+"V"+W:c?"M"+N+","+C*c+"V"+F+"H"+W+"V"+C*c:"M"+N+","+F+"H"+W),g.attr("opacity",1).attr("transform",function(T){return L(Z(T)+F)}),M.attr(k+"2",C*a),w.attr(k,C*U).text(A),j.filter(fr).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",t===le?"start":t===qt?"end":"middle"),j.each(function(){this.__axis=Z})}return _.scale=function(S){return arguments.length?(e=S,_):e},_.ticks=function(){return n=Array.from(arguments),_},_.tickArguments=function(S){return arguments.length?(n=S==null?[]:Array.from(S),_):n.slice()},_.tickValues=function(S){return arguments.length?(r=S==null?null:Array.from(S),_):r&&r.slice()},_.tickFormat=function(S){return arguments.length?(i=S,_):i},_.tickSize=function(S){return arguments.length?(a=c=+S,_):a},_.tickSizeInner=function(S){return arguments.length?(a=+S,_):a},_.tickSizeOuter=function(S){return arguments.length?(c=+S,_):c},_.tickPadding=function(S){return arguments.length?(m=+S,_):m},_.offset=function(S){return arguments.length?(F=+S,_):F},_}function dr(t){return ln(Xt,t)}function hr(t){return ln(pe,t)}function mr(t,e){t=t.slice();var n=0,r=t.length-1,i=t[n],a=t[r],c;return a<i&&(c=n,n=r,r=c,c=i,i=a,a=c),t[n]=e.floor(i),t[r]=e.ceil(a),t}const fe=new Date,de=new Date;function et(t,e,n,r){function i(a){return t(a=arguments.length===0?new Date:new Date(+a)),a}return i.floor=a=>(t(a=new Date(+a)),a),i.ceil=a=>(t(a=new Date(a-1)),e(a,1),t(a),a),i.round=a=>{const c=i(a),m=i.ceil(a);return a-c<m-a?c:m},i.offset=(a,c)=>(e(a=new Date(+a),c==null?1:Math.floor(c)),a),i.range=(a,c,m)=>{const F=[];if(a=i.ceil(a),m=m==null?1:Math.floor(m),!(a<c)||!(m>0))return F;let C;do F.push(C=new Date(+a)),e(a,m),t(a);while(C<a&&a<c);return F},i.filter=a=>et(c=>{if(c>=c)for(;t(c),!a(c);)c.setTime(c-1)},(c,m)=>{if(c>=c)if(m<0)for(;++m<=0;)for(;e(c,-1),!a(c););else for(;--m>=0;)for(;e(c,1),!a(c););}),n&&(i.count=(a,c)=>(fe.setTime(+a),de.setTime(+c),t(fe),t(de),Math.floor(n(fe,de))),i.every=a=>(a=Math.floor(a),!isFinite(a)||!(a>0)?null:a>1?i.filter(r?c=>r(c)%a===0:c=>i.count(0,c)%a===0):i)),i}const Ut=et(()=>{},(t,e)=>{t.setTime(+t+e)},(t,e)=>e-t);Ut.every=t=>(t=Math.floor(t),!isFinite(t)||!(t>0)?null:t>1?et(e=>{e.setTime(Math.floor(e/t)*t)},(e,n)=>{e.setTime(+e+n*t)},(e,n)=>(n-e)/t):Ut);Ut.range;const mt=1e3,ct=mt*60,gt=ct*60,yt=gt*24,we=yt*7,Oe=yt*30,he=yt*365,vt=et(t=>{t.setTime(t-t.getMilliseconds())},(t,e)=>{t.setTime(+t+e*mt)},(t,e)=>(e-t)/mt,t=>t.getUTCSeconds());vt.range;const $t=et(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*mt)},(t,e)=>{t.setTime(+t+e*ct)},(t,e)=>(e-t)/ct,t=>t.getMinutes());$t.range;const gr=et(t=>{t.setUTCSeconds(0,0)},(t,e)=>{t.setTime(+t+e*ct)},(t,e)=>(e-t)/ct,t=>t.getUTCMinutes());gr.range;const Ot=et(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*mt-t.getMinutes()*ct)},(t,e)=>{t.setTime(+t+e*gt)},(t,e)=>(e-t)/gt,t=>t.getHours());Ot.range;const yr=et(t=>{t.setUTCMinutes(0,0,0)},(t,e)=>{t.setTime(+t+e*gt)},(t,e)=>(e-t)/gt,t=>t.getUTCHours());yr.range;const bt=et(t=>t.setHours(0,0,0,0),(t,e)=>t.setDate(t.getDate()+e),(t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*ct)/yt,t=>t.getDate()-1);bt.range;const Me=et(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/yt,t=>t.getUTCDate()-1);Me.range;const kr=et(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/yt,t=>Math.floor(t/yt));kr.range;function Mt(t){return et(e=>{e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)},(e,n)=>{e.setDate(e.getDate()+n*7)},(e,n)=>(n-e-(n.getTimezoneOffset()-e.getTimezoneOffset())*ct)/we)}const Pt=Mt(0),Ht=Mt(1),fn=Mt(2),dn=Mt(3),xt=Mt(4),hn=Mt(5),mn=Mt(6);Pt.range;Ht.range;fn.range;dn.range;xt.range;hn.range;mn.range;function Dt(t){return et(e=>{e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)},(e,n)=>{e.setUTCDate(e.getUTCDate()+n*7)},(e,n)=>(n-e)/we)}const gn=Dt(0),Jt=Dt(1),pr=Dt(2),vr=Dt(3),Et=Dt(4),Tr=Dt(5),br=Dt(6);gn.range;Jt.range;pr.range;vr.range;Et.range;Tr.range;br.range;const Nt=et(t=>{t.setDate(1),t.setHours(0,0,0,0)},(t,e)=>{t.setMonth(t.getMonth()+e)},(t,e)=>e.getMonth()-t.getMonth()+(e.getFullYear()-t.getFullYear())*12,t=>t.getMonth());Nt.range;const xr=et(t=>{t.setUTCDate(1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCMonth(t.getUTCMonth()+e)},(t,e)=>e.getUTCMonth()-t.getUTCMonth()+(e.getUTCFullYear()-t.getUTCFullYear())*12,t=>t.getUTCMonth());xr.range;const kt=et(t=>{t.setMonth(0,1),t.setHours(0,0,0,0)},(t,e)=>{t.setFullYear(t.getFullYear()+e)},(t,e)=>e.getFullYear()-t.getFullYear(),t=>t.getFullYear());kt.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:et(e=>{e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)},(e,n)=>{e.setFullYear(e.getFullYear()+n*t)});kt.range;const wt=et(t=>{t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCFullYear(t.getUTCFullYear()+e)},(t,e)=>e.getUTCFullYear()-t.getUTCFullYear(),t=>t.getUTCFullYear());wt.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:et(e=>{e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,n)=>{e.setUTCFullYear(e.getUTCFullYear()+n*t)});wt.range;function wr(t,e,n,r,i,a){const c=[[vt,1,mt],[vt,5,5*mt],[vt,15,15*mt],[vt,30,30*mt],[a,1,ct],[a,5,5*ct],[a,15,15*ct],[a,30,30*ct],[i,1,gt],[i,3,3*gt],[i,6,6*gt],[i,12,12*gt],[r,1,yt],[r,2,2*yt],[n,1,we],[e,1,Oe],[e,3,3*Oe],[t,1,he]];function m(C,k,L){const _=k<C;_&&([C,k]=[k,C]);const S=L&&typeof L.range=="function"?L:F(C,k,L),B=S?S.range(C,+k+1):[];return _?B.reverse():B}function F(C,k,L){const _=Math.abs(k-C)/L,S=Bn(([,,U])=>U).right(c,_);if(S===c.length)return t.every(We(C/he,k/he,L));if(S===0)return Ut.every(Math.max(We(C,k,L),1));const[B,A]=c[_/c[S-1][2]<c[S][2]/_?S-1:S];return B.every(A)}return[m,F]}const[Mr,Dr]=wr(kt,Nt,Pt,bt,Ot,$t);function me(t){if(0<=t.y&&t.y<100){var e=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return e.setFullYear(t.y),e}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function ge(t){if(0<=t.y&&t.y<100){var e=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return e.setUTCFullYear(t.y),e}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function Lt(t,e,n){return{y:t,m:e,d:n,H:0,M:0,S:0,L:0}}function Cr(t){var e=t.dateTime,n=t.date,r=t.time,i=t.periods,a=t.days,c=t.shortDays,m=t.months,F=t.shortMonths,C=At(i),k=Wt(i),L=At(a),_=Wt(a),S=At(c),B=Wt(c),A=At(m),U=Wt(m),I=At(F),N=Wt(F),W={a:x,A:Y,b:o,B:X,c:null,d:Re,e:Re,f:Gr,g:si,G:oi,H:Br,I:qr,j:Xr,L:yn,m:jr,M:Qr,p:s,q:E,Q:qe,s:Xe,S:Jr,u:Kr,U:ti,V:ei,w:ni,W:ri,x:null,X:null,y:ii,Y:ai,Z:ci,"%":Be},Z={a:R,A:z,b:P,B:K,c:null,d:Ze,e:Ze,f:di,g:xi,G:Mi,H:ui,I:li,j:fi,L:pn,m:hi,M:mi,p:O,q:st,Q:qe,s:Xe,S:gi,u:yi,U:ki,V:pi,w:vi,W:Ti,x:null,X:null,y:bi,Y:wi,Z:Di,"%":Be},j={a:M,A:w,b:T,B:v,c:u,d:Ve,e:Ve,f:Vr,g:Pe,G:Ne,H:ze,I:ze,j:Or,L:Pr,m:$r,M:Hr,p:h,q:Wr,Q:Rr,s:Zr,S:Nr,u:Ur,U:Er,V:Ir,w:Fr,W:Lr,x:f,X:b,y:Pe,Y:Ne,Z:Ar,"%":zr};W.x=p(n,W),W.X=p(r,W),W.c=p(e,W),Z.x=p(n,Z),Z.X=p(r,Z),Z.c=p(e,Z);function p(D,H){return function(V){var l=[],J=-1,$=0,Q=D.length,G,it,at;for(V instanceof Date||(V=new Date(+V));++J<Q;)D.charCodeAt(J)===37&&(l.push(D.slice($,J)),(it=He[G=D.charAt(++J)])!=null?G=D.charAt(++J):it=G==="e"?" ":"0",(at=H[G])&&(G=at(V,it)),l.push(G),$=J+1);return l.push(D.slice($,J)),l.join("")}}function g(D,H){return function(V){var l=Lt(1900,void 0,1),J=y(l,D,V+="",0),$,Q;if(J!=V.length)return null;if("Q"in l)return new Date(l.Q);if("s"in l)return new Date(l.s*1e3+("L"in l?l.L:0));if(H&&!("Z"in l)&&(l.Z=0),"p"in l&&(l.H=l.H%12+l.p*12),l.m===void 0&&(l.m="q"in l?l.q:0),"V"in l){if(l.V<1||l.V>53)return null;"w"in l||(l.w=1),"Z"in l?($=ge(Lt(l.y,0,1)),Q=$.getUTCDay(),$=Q>4||Q===0?Jt.ceil($):Jt($),$=Me.offset($,(l.V-1)*7),l.y=$.getUTCFullYear(),l.m=$.getUTCMonth(),l.d=$.getUTCDate()+(l.w+6)%7):($=me(Lt(l.y,0,1)),Q=$.getDay(),$=Q>4||Q===0?Ht.ceil($):Ht($),$=bt.offset($,(l.V-1)*7),l.y=$.getFullYear(),l.m=$.getMonth(),l.d=$.getDate()+(l.w+6)%7)}else("W"in l||"U"in l)&&("w"in l||(l.w="u"in l?l.u%7:"W"in l?1:0),Q="Z"in l?ge(Lt(l.y,0,1)).getUTCDay():me(Lt(l.y,0,1)).getDay(),l.m=0,l.d="W"in l?(l.w+6)%7+l.W*7-(Q+5)%7:l.w+l.U*7-(Q+6)%7);return"Z"in l?(l.H+=l.Z/100|0,l.M+=l.Z%100,ge(l)):me(l)}}function y(D,H,V,l){for(var J=0,$=H.length,Q=V.length,G,it;J<$;){if(l>=Q)return-1;if(G=H.charCodeAt(J++),G===37){if(G=H.charAt(J++),it=j[G in He?H.charAt(J++):G],!it||(l=it(D,V,l))<0)return-1}else if(G!=V.charCodeAt(l++))return-1}return l}function h(D,H,V){var l=C.exec(H.slice(V));return l?(D.p=k.get(l[0].toLowerCase()),V+l[0].length):-1}function M(D,H,V){var l=S.exec(H.slice(V));return l?(D.w=B.get(l[0].toLowerCase()),V+l[0].length):-1}function w(D,H,V){var l=L.exec(H.slice(V));return l?(D.w=_.get(l[0].toLowerCase()),V+l[0].length):-1}function T(D,H,V){var l=I.exec(H.slice(V));return l?(D.m=N.get(l[0].toLowerCase()),V+l[0].length):-1}function v(D,H,V){var l=A.exec(H.slice(V));return l?(D.m=U.get(l[0].toLowerCase()),V+l[0].length):-1}function u(D,H,V){return y(D,e,H,V)}function f(D,H,V){return y(D,n,H,V)}function b(D,H,V){return y(D,r,H,V)}function x(D){return c[D.getDay()]}function Y(D){return a[D.getDay()]}function o(D){return F[D.getMonth()]}function X(D){return m[D.getMonth()]}function s(D){return i[+(D.getHours()>=12)]}function E(D){return 1+~~(D.getMonth()/3)}function R(D){return c[D.getUTCDay()]}function z(D){return a[D.getUTCDay()]}function P(D){return F[D.getUTCMonth()]}function K(D){return m[D.getUTCMonth()]}function O(D){return i[+(D.getUTCHours()>=12)]}function st(D){return 1+~~(D.getUTCMonth()/3)}return{format:function(D){var H=p(D+="",W);return H.toString=function(){return D},H},parse:function(D){var H=g(D+="",!1);return H.toString=function(){return D},H},utcFormat:function(D){var H=p(D+="",Z);return H.toString=function(){return D},H},utcParse:function(D){var H=g(D+="",!0);return H.toString=function(){return D},H}}}var He={"-":"",_:" ",0:"0"},nt=/^\s*\d+/,Sr=/^%/,_r=/[\\^$*+?|[\]().{}]/g;function q(t,e,n){var r=t<0?"-":"",i=(r?-t:t)+"",a=i.length;return r+(a<n?new Array(n-a+1).join(e)+i:i)}function Yr(t){return t.replace(_r,"\\$&")}function At(t){return new RegExp("^(?:"+t.map(Yr).join("|")+")","i")}function Wt(t){return new Map(t.map((e,n)=>[e.toLowerCase(),n]))}function Fr(t,e,n){var r=nt.exec(e.slice(n,n+1));return r?(t.w=+r[0],n+r[0].length):-1}function Ur(t,e,n){var r=nt.exec(e.slice(n,n+1));return r?(t.u=+r[0],n+r[0].length):-1}function Er(t,e,n){var r=nt.exec(e.slice(n,n+2));return r?(t.U=+r[0],n+r[0].length):-1}function Ir(t,e,n){var r=nt.exec(e.slice(n,n+2));return r?(t.V=+r[0],n+r[0].length):-1}function Lr(t,e,n){var r=nt.exec(e.slice(n,n+2));return r?(t.W=+r[0],n+r[0].length):-1}function Ne(t,e,n){var r=nt.exec(e.slice(n,n+4));return r?(t.y=+r[0],n+r[0].length):-1}function Pe(t,e,n){var r=nt.exec(e.slice(n,n+2));return r?(t.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function Ar(t,e,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(n,n+6));return r?(t.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function Wr(t,e,n){var r=nt.exec(e.slice(n,n+1));return r?(t.q=r[0]*3-3,n+r[0].length):-1}function $r(t,e,n){var r=nt.exec(e.slice(n,n+2));return r?(t.m=r[0]-1,n+r[0].length):-1}function Ve(t,e,n){var r=nt.exec(e.slice(n,n+2));return r?(t.d=+r[0],n+r[0].length):-1}function Or(t,e,n){var r=nt.exec(e.slice(n,n+3));return r?(t.m=0,t.d=+r[0],n+r[0].length):-1}function ze(t,e,n){var r=nt.exec(e.slice(n,n+2));return r?(t.H=+r[0],n+r[0].length):-1}function Hr(t,e,n){var r=nt.exec(e.slice(n,n+2));return r?(t.M=+r[0],n+r[0].length):-1}function Nr(t,e,n){var r=nt.exec(e.slice(n,n+2));return r?(t.S=+r[0],n+r[0].length):-1}function Pr(t,e,n){var r=nt.exec(e.slice(n,n+3));return r?(t.L=+r[0],n+r[0].length):-1}function Vr(t,e,n){var r=nt.exec(e.slice(n,n+6));return r?(t.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function zr(t,e,n){var r=Sr.exec(e.slice(n,n+1));return r?n+r[0].length:-1}function Rr(t,e,n){var r=nt.exec(e.slice(n));return r?(t.Q=+r[0],n+r[0].length):-1}function Zr(t,e,n){var r=nt.exec(e.slice(n));return r?(t.s=+r[0],n+r[0].length):-1}function Re(t,e){return q(t.getDate(),e,2)}function Br(t,e){return q(t.getHours(),e,2)}function qr(t,e){return q(t.getHours()%12||12,e,2)}function Xr(t,e){return q(1+bt.count(kt(t),t),e,3)}function yn(t,e){return q(t.getMilliseconds(),e,3)}function Gr(t,e){return yn(t,e)+"000"}function jr(t,e){return q(t.getMonth()+1,e,2)}function Qr(t,e){return q(t.getMinutes(),e,2)}function Jr(t,e){return q(t.getSeconds(),e,2)}function Kr(t){var e=t.getDay();return e===0?7:e}function ti(t,e){return q(Pt.count(kt(t)-1,t),e,2)}function kn(t){var e=t.getDay();return e>=4||e===0?xt(t):xt.ceil(t)}function ei(t,e){return t=kn(t),q(xt.count(kt(t),t)+(kt(t).getDay()===4),e,2)}function ni(t){return t.getDay()}function ri(t,e){return q(Ht.count(kt(t)-1,t),e,2)}function ii(t,e){return q(t.getFullYear()%100,e,2)}function si(t,e){return t=kn(t),q(t.getFullYear()%100,e,2)}function ai(t,e){return q(t.getFullYear()%1e4,e,4)}function oi(t,e){var n=t.getDay();return t=n>=4||n===0?xt(t):xt.ceil(t),q(t.getFullYear()%1e4,e,4)}function ci(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+q(e/60|0,"0",2)+q(e%60,"0",2)}function Ze(t,e){return q(t.getUTCDate(),e,2)}function ui(t,e){return q(t.getUTCHours(),e,2)}function li(t,e){return q(t.getUTCHours()%12||12,e,2)}function fi(t,e){return q(1+Me.count(wt(t),t),e,3)}function pn(t,e){return q(t.getUTCMilliseconds(),e,3)}function di(t,e){return pn(t,e)+"000"}function hi(t,e){return q(t.getUTCMonth()+1,e,2)}function mi(t,e){return q(t.getUTCMinutes(),e,2)}function gi(t,e){return q(t.getUTCSeconds(),e,2)}function yi(t){var e=t.getUTCDay();return e===0?7:e}function ki(t,e){return q(gn.count(wt(t)-1,t),e,2)}function vn(t){var e=t.getUTCDay();return e>=4||e===0?Et(t):Et.ceil(t)}function pi(t,e){return t=vn(t),q(Et.count(wt(t),t)+(wt(t).getUTCDay()===4),e,2)}function vi(t){return t.getUTCDay()}function Ti(t,e){return q(Jt.count(wt(t)-1,t),e,2)}function bi(t,e){return q(t.getUTCFullYear()%100,e,2)}function xi(t,e){return t=vn(t),q(t.getUTCFullYear()%100,e,2)}function wi(t,e){return q(t.getUTCFullYear()%1e4,e,4)}function Mi(t,e){var n=t.getUTCDay();return t=n>=4||n===0?Et(t):Et.ceil(t),q(t.getUTCFullYear()%1e4,e,4)}function Di(){return"+0000"}function Be(){return"%"}function qe(t){return+t}function Xe(t){return Math.floor(+t/1e3)}var St,Kt;Ci({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function Ci(t){return St=Cr(t),Kt=St.format,St.parse,St.utcFormat,St.utcParse,St}function Si(t){return new Date(t)}function _i(t){return t instanceof Date?+t:+new Date(+t)}function Tn(t,e,n,r,i,a,c,m,F,C){var k=qn(),L=k.invert,_=k.domain,S=C(".%L"),B=C(":%S"),A=C("%I:%M"),U=C("%I %p"),I=C("%a %d"),N=C("%b %d"),W=C("%B"),Z=C("%Y");function j(p){return(F(p)<p?S:m(p)<p?B:c(p)<p?A:a(p)<p?U:r(p)<p?i(p)<p?I:N:n(p)<p?W:Z)(p)}return k.invert=function(p){return new Date(L(p))},k.domain=function(p){return arguments.length?_(Array.from(p,_i)):_().map(Si)},k.ticks=function(p){var g=_();return t(g[0],g[g.length-1],p??10)},k.tickFormat=function(p,g){return g==null?j:C(g)},k.nice=function(p){var g=_();return(!p||typeof p.range!="function")&&(p=e(g[0],g[g.length-1],p??10)),p?_(mr(g,p)):k},k.copy=function(){return Xn(k,Tn(t,e,n,r,i,a,c,m,F,C))},k}function Yi(){return jn.apply(Tn(Mr,Dr,kt,Nt,Pt,bt,Ot,$t,vt,Kt).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}var bn={exports:{}};(function(t,e){(function(n,r){t.exports=r()})(ne,(function(){var n="day";return function(r,i,a){var c=function(C){return C.add(4-C.isoWeekday(),n)},m=i.prototype;m.isoWeekYear=function(){return c(this).year()},m.isoWeek=function(C){if(!this.$utils().u(C))return this.add(7*(C-this.isoWeek()),n);var k,L,_,S,B=c(this),A=(k=this.isoWeekYear(),L=this.$u,_=(L?a.utc:a)().year(k).startOf("year"),S=4-_.isoWeekday(),_.isoWeekday()>4&&(S+=7),_.add(S,n));return B.diff(A,"week")+1},m.isoWeekday=function(C){return this.$utils().u(C)?this.day()||7:this.day(this.day()%7?C:C-7)};var F=m.startOf;m.startOf=function(C,k){var L=this.$utils(),_=!!L.u(k)||k;return L.p(C)==="isoweek"?_?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):F.bind(this)(C,k)}}}))})(bn);var Fi=bn.exports;const Ui=re(Fi);var xn={exports:{}};(function(t,e){(function(n,r){t.exports=r()})(ne,(function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},r=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,i=/\d/,a=/\d\d/,c=/\d\d?/,m=/\d*[^-_:/,()\s\d]+/,F={},C=function(U){return(U=+U)+(U>68?1900:2e3)},k=function(U){return function(I){this[U]=+I}},L=[/[+-]\d\d:?(\d\d)?|Z/,function(U){(this.zone||(this.zone={})).offset=(function(I){if(!I||I==="Z")return 0;var N=I.match(/([+-]|\d\d)/g),W=60*N[1]+(+N[2]||0);return W===0?0:N[0]==="+"?-W:W})(U)}],_=function(U){var I=F[U];return I&&(I.indexOf?I:I.s.concat(I.f))},S=function(U,I){var N,W=F.meridiem;if(W){for(var Z=1;Z<=24;Z+=1)if(U.indexOf(W(Z,0,I))>-1){N=Z>12;break}}else N=U===(I?"pm":"PM");return N},B={A:[m,function(U){this.afternoon=S(U,!1)}],a:[m,function(U){this.afternoon=S(U,!0)}],Q:[i,function(U){this.month=3*(U-1)+1}],S:[i,function(U){this.milliseconds=100*+U}],SS:[a,function(U){this.milliseconds=10*+U}],SSS:[/\d{3}/,function(U){this.milliseconds=+U}],s:[c,k("seconds")],ss:[c,k("seconds")],m:[c,k("minutes")],mm:[c,k("minutes")],H:[c,k("hours")],h:[c,k("hours")],HH:[c,k("hours")],hh:[c,k("hours")],D:[c,k("day")],DD:[a,k("day")],Do:[m,function(U){var I=F.ordinal,N=U.match(/\d+/);if(this.day=N[0],I)for(var W=1;W<=31;W+=1)I(W).replace(/\[|\]/g,"")===U&&(this.day=W)}],w:[c,k("week")],ww:[a,k("week")],M:[c,k("month")],MM:[a,k("month")],MMM:[m,function(U){var I=_("months"),N=(_("monthsShort")||I.map((function(W){return W.slice(0,3)}))).indexOf(U)+1;if(N<1)throw new Error;this.month=N%12||N}],MMMM:[m,function(U){var I=_("months").indexOf(U)+1;if(I<1)throw new Error;this.month=I%12||I}],Y:[/[+-]?\d+/,k("year")],YY:[a,function(U){this.year=C(U)}],YYYY:[/\d{4}/,k("year")],Z:L,ZZ:L};function A(U){var I,N;I=U,N=F&&F.formats;for(var W=(U=I.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(M,w,T){var v=T&&T.toUpperCase();return w||N[T]||n[T]||N[v].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(u,f,b){return f||b.slice(1)}))}))).match(r),Z=W.length,j=0;j<Z;j+=1){var p=W[j],g=B[p],y=g&&g[0],h=g&&g[1];W[j]=h?{regex:y,parser:h}:p.replace(/^\[|\]$/g,"")}return function(M){for(var w={},T=0,v=0;T<Z;T+=1){var u=W[T];if(typeof u=="string")v+=u.length;else{var f=u.regex,b=u.parser,x=M.slice(v),Y=f.exec(x)[0];b.call(w,Y),M=M.replace(Y,"")}}return(function(o){var X=o.afternoon;if(X!==void 0){var s=o.hours;X?s<12&&(o.hours+=12):s===12&&(o.hours=0),delete o.afternoon}})(w),w}}return function(U,I,N){N.p.customParseFormat=!0,U&&U.parseTwoDigitYear&&(C=U.parseTwoDigitYear);var W=I.prototype,Z=W.parse;W.parse=function(j){var p=j.date,g=j.utc,y=j.args;this.$u=g;var h=y[1];if(typeof h=="string"){var M=y[2]===!0,w=y[3]===!0,T=M||w,v=y[2];w&&(v=y[2]),F=this.$locale(),!M&&v&&(F=N.Ls[v]),this.$d=(function(x,Y,o,X){try{if(["x","X"].indexOf(Y)>-1)return new Date((Y==="X"?1e3:1)*x);var s=A(Y)(x),E=s.year,R=s.month,z=s.day,P=s.hours,K=s.minutes,O=s.seconds,st=s.milliseconds,D=s.zone,H=s.week,V=new Date,l=z||(E||R?1:V.getDate()),J=E||V.getFullYear(),$=0;E&&!R||($=R>0?R-1:V.getMonth());var Q,G=P||0,it=K||0,at=O||0,pt=st||0;return D?new Date(Date.UTC(J,$,l,G,it,at,pt+60*D.offset*1e3)):o?new Date(Date.UTC(J,$,l,G,it,at,pt)):(Q=new Date(J,$,l,G,it,at,pt),H&&(Q=X(Q).week(H).toDate()),Q)}catch{return new Date("")}})(p,h,g,N),this.init(),v&&v!==!0&&(this.$L=this.locale(v).$L),T&&p!=this.format(h)&&(this.$d=new Date("")),F={}}else if(h instanceof Array)for(var u=h.length,f=1;f<=u;f+=1){y[1]=h[f-1];var b=N.apply(this,y);if(b.isValid()){this.$d=b.$d,this.$L=b.$L,this.init();break}f===u&&(this.$d=new Date(""))}else Z.call(this,j)}}}))})(xn);var Ei=xn.exports;const Ii=re(Ei);var wn={exports:{}};(function(t,e){(function(n,r){t.exports=r()})(ne,(function(){return function(n,r){var i=r.prototype,a=i.format;i.format=function(c){var m=this,F=this.$locale();if(!this.isValid())return a.bind(this)(c);var C=this.$utils(),k=(c||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,(function(L){switch(L){case"Q":return Math.ceil((m.$M+1)/3);case"Do":return F.ordinal(m.$D);case"gggg":return m.weekYear();case"GGGG":return m.isoWeekYear();case"wo":return F.ordinal(m.week(),"W");case"w":case"ww":return C.s(m.week(),L==="w"?1:2,"0");case"W":case"WW":return C.s(m.isoWeek(),L==="W"?1:2,"0");case"k":case"kk":return C.s(String(m.$H===0?24:m.$H),L==="k"?1:2,"0");case"X":return Math.floor(m.$d.getTime()/1e3);case"x":return m.$d.getTime();case"z":return"["+m.offsetName()+"]";case"zzz":return"["+m.offsetName("long")+"]";default:return L}}));return a.bind(this)(k)}}}))})(wn);var Li=wn.exports;const Ai=re(Li);var Mn={exports:{}};(function(t,e){(function(n,r){t.exports=r()})(ne,(function(){var n,r,i=1e3,a=6e4,c=36e5,m=864e5,F=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,C=31536e6,k=2628e6,L=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,_={years:C,months:k,days:m,hours:c,minutes:a,seconds:i,milliseconds:1,weeks:6048e5},S=function(p){return p instanceof Z},B=function(p,g,y){return new Z(p,y,g.$l)},A=function(p){return r.p(p)+"s"},U=function(p){return p<0},I=function(p){return U(p)?Math.ceil(p):Math.floor(p)},N=function(p){return Math.abs(p)},W=function(p,g){return p?U(p)?{negative:!0,format:""+N(p)+g}:{negative:!1,format:""+p+g}:{negative:!1,format:""}},Z=(function(){function p(y,h,M){var w=this;if(this.$d={},this.$l=M,y===void 0&&(this.$ms=0,this.parseFromMilliseconds()),h)return B(y*_[A(h)],this);if(typeof y=="number")return this.$ms=y,this.parseFromMilliseconds(),this;if(typeof y=="object")return Object.keys(y).forEach((function(u){w.$d[A(u)]=y[u]})),this.calMilliseconds(),this;if(typeof y=="string"){var T=y.match(L);if(T){var v=T.slice(2).map((function(u){return u!=null?Number(u):0}));return this.$d.years=v[0],this.$d.months=v[1],this.$d.weeks=v[2],this.$d.days=v[3],this.$d.hours=v[4],this.$d.minutes=v[5],this.$d.seconds=v[6],this.calMilliseconds(),this}}return this}var g=p.prototype;return g.calMilliseconds=function(){var y=this;this.$ms=Object.keys(this.$d).reduce((function(h,M){return h+(y.$d[M]||0)*_[M]}),0)},g.parseFromMilliseconds=function(){var y=this.$ms;this.$d.years=I(y/C),y%=C,this.$d.months=I(y/k),y%=k,this.$d.days=I(y/m),y%=m,this.$d.hours=I(y/c),y%=c,this.$d.minutes=I(y/a),y%=a,this.$d.seconds=I(y/i),y%=i,this.$d.milliseconds=y},g.toISOString=function(){var y=W(this.$d.years,"Y"),h=W(this.$d.months,"M"),M=+this.$d.days||0;this.$d.weeks&&(M+=7*this.$d.weeks);var w=W(M,"D"),T=W(this.$d.hours,"H"),v=W(this.$d.minutes,"M"),u=this.$d.seconds||0;this.$d.milliseconds&&(u+=this.$d.milliseconds/1e3,u=Math.round(1e3*u)/1e3);var f=W(u,"S"),b=y.negative||h.negative||w.negative||T.negative||v.negative||f.negative,x=T.format||v.format||f.format?"T":"",Y=(b?"-":"")+"P"+y.format+h.format+w.format+x+T.format+v.format+f.format;return Y==="P"||Y==="-P"?"P0D":Y},g.toJSON=function(){return this.toISOString()},g.format=function(y){var h=y||"YYYY-MM-DDTHH:mm:ss",M={Y:this.$d.years,YY:r.s(this.$d.years,2,"0"),YYYY:r.s(this.$d.years,4,"0"),M:this.$d.months,MM:r.s(this.$d.months,2,"0"),D:this.$d.days,DD:r.s(this.$d.days,2,"0"),H:this.$d.hours,HH:r.s(this.$d.hours,2,"0"),m:this.$d.minutes,mm:r.s(this.$d.minutes,2,"0"),s:this.$d.seconds,ss:r.s(this.$d.seconds,2,"0"),SSS:r.s(this.$d.milliseconds,3,"0")};return h.replace(F,(function(w,T){return T||String(M[w])}))},g.as=function(y){return this.$ms/_[A(y)]},g.get=function(y){var h=this.$ms,M=A(y);return M==="milliseconds"?h%=1e3:h=M==="weeks"?I(h/_[M]):this.$d[M],h||0},g.add=function(y,h,M){var w;return w=h?y*_[A(h)]:S(y)?y.$ms:B(y,this).$ms,B(this.$ms+w*(M?-1:1),this)},g.subtract=function(y,h){return this.add(y,h,!0)},g.locale=function(y){var h=this.clone();return h.$l=y,h},g.clone=function(){return B(this.$ms,this)},g.humanize=function(y){return n().add(this.$ms,"ms").locale(this.$l).fromNow(!y)},g.valueOf=function(){return this.asMilliseconds()},g.milliseconds=function(){return this.get("milliseconds")},g.asMilliseconds=function(){return this.as("milliseconds")},g.seconds=function(){return this.get("seconds")},g.asSeconds=function(){return this.as("seconds")},g.minutes=function(){return this.get("minutes")},g.asMinutes=function(){return this.as("minutes")},g.hours=function(){return this.get("hours")},g.asHours=function(){return this.as("hours")},g.days=function(){return this.get("days")},g.asDays=function(){return this.as("days")},g.weeks=function(){return this.get("weeks")},g.asWeeks=function(){return this.as("weeks")},g.months=function(){return this.get("months")},g.asMonths=function(){return this.as("months")},g.years=function(){return this.get("years")},g.asYears=function(){return this.as("years")},p})(),j=function(p,g,y){return p.add(g.years()*y,"y").add(g.months()*y,"M").add(g.days()*y,"d").add(g.hours()*y,"h").add(g.minutes()*y,"m").add(g.seconds()*y,"s").add(g.milliseconds()*y,"ms")};return function(p,g,y){n=y,r=y().$utils(),y.duration=function(w,T){var v=y.locale();return B(w,{$l:v},T)},y.isDuration=S;var h=g.prototype.add,M=g.prototype.subtract;g.prototype.add=function(w,T){return S(w)?j(this,w,1):h.bind(this)(w,T)},g.prototype.subtract=function(w,T){return S(w)?j(this,w,-1):M.bind(this)(w,T)}}}))})(Mn);var Wi=Mn.exports;const $i=re(Wi);var ve=(function(){var t=d(function(v,u,f,b){for(f=f||{},b=v.length;b--;f[v[b]]=u);return f},"o"),e=[6,8,10,12,13,14,15,16,17,18,20,21,22,23,24,25,26,27,28,29,30,31,33,35,36,38,40],n=[1,26],r=[1,27],i=[1,28],a=[1,29],c=[1,30],m=[1,31],F=[1,32],C=[1,33],k=[1,34],L=[1,9],_=[1,10],S=[1,11],B=[1,12],A=[1,13],U=[1,14],I=[1,15],N=[1,16],W=[1,19],Z=[1,20],j=[1,21],p=[1,22],g=[1,23],y=[1,25],h=[1,35],M={trace:d(function(){},"trace"),yy:{},symbols_:{error:2,start:3,gantt:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NL:10,weekday:11,weekday_monday:12,weekday_tuesday:13,weekday_wednesday:14,weekday_thursday:15,weekday_friday:16,weekday_saturday:17,weekday_sunday:18,weekend:19,weekend_friday:20,weekend_saturday:21,dateFormat:22,inclusiveEndDates:23,topAxis:24,axisFormat:25,tickInterval:26,excludes:27,includes:28,todayMarker:29,title:30,acc_title:31,acc_title_value:32,acc_descr:33,acc_descr_value:34,acc_descr_multiline_value:35,section:36,clickStatement:37,taskTxt:38,taskData:39,click:40,callbackname:41,callbackargs:42,href:43,clickStatementDebug:44,$accept:0,$end:1},terminals_:{2:"error",4:"gantt",6:"EOF",8:"SPACE",10:"NL",12:"weekday_monday",13:"weekday_tuesday",14:"weekday_wednesday",15:"weekday_thursday",16:"weekday_friday",17:"weekday_saturday",18:"weekday_sunday",20:"weekend_friday",21:"weekend_saturday",22:"dateFormat",23:"inclusiveEndDates",24:"topAxis",25:"axisFormat",26:"tickInterval",27:"excludes",28:"includes",29:"todayMarker",30:"title",31:"acc_title",32:"acc_title_value",33:"acc_descr",34:"acc_descr_value",35:"acc_descr_multiline_value",36:"section",38:"taskTxt",39:"taskData",40:"click",41:"callbackname",42:"callbackargs",43:"href"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[11,1],[11,1],[11,1],[11,1],[11,1],[11,1],[11,1],[19,1],[19,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,1],[9,2],[37,2],[37,3],[37,3],[37,4],[37,3],[37,4],[37,2],[44,2],[44,3],[44,3],[44,4],[44,3],[44,4],[44,2]],performAction:d(function(u,f,b,x,Y,o,X){var s=o.length-1;switch(Y){case 1:return o[s-1];case 2:this.$=[];break;case 3:o[s-1].push(o[s]),this.$=o[s-1];break;case 4:case 5:this.$=o[s];break;case 6:case 7:this.$=[];break;case 8:x.setWeekday("monday");break;case 9:x.setWeekday("tuesday");break;case 10:x.setWeekday("wednesday");break;case 11:x.setWeekday("thursday");break;case 12:x.setWeekday("friday");break;case 13:x.setWeekday("saturday");break;case 14:x.setWeekday("sunday");break;case 15:x.setWeekend("friday");break;case 16:x.setWeekend("saturday");break;case 17:x.setDateFormat(o[s].substr(11)),this.$=o[s].substr(11);break;case 18:x.enableInclusiveEndDates(),this.$=o[s].substr(18);break;case 19:x.TopAxis(),this.$=o[s].substr(8);break;case 20:x.setAxisFormat(o[s].substr(11)),this.$=o[s].substr(11);break;case 21:x.setTickInterval(o[s].substr(13)),this.$=o[s].substr(13);break;case 22:x.setExcludes(o[s].substr(9)),this.$=o[s].substr(9);break;case 23:x.setIncludes(o[s].substr(9)),this.$=o[s].substr(9);break;case 24:x.setTodayMarker(o[s].substr(12)),this.$=o[s].substr(12);break;case 27:x.setDiagramTitle(o[s].substr(6)),this.$=o[s].substr(6);break;case 28:this.$=o[s].trim(),x.setAccTitle(this.$);break;case 29:case 30:this.$=o[s].trim(),x.setAccDescription(this.$);break;case 31:x.addSection(o[s].substr(8)),this.$=o[s].substr(8);break;case 33:x.addTask(o[s-1],o[s]),this.$="task";break;case 34:this.$=o[s-1],x.setClickEvent(o[s-1],o[s],null);break;case 35:this.$=o[s-2],x.setClickEvent(o[s-2],o[s-1],o[s]);break;case 36:this.$=o[s-2],x.setClickEvent(o[s-2],o[s-1],null),x.setLink(o[s-2],o[s]);break;case 37:this.$=o[s-3],x.setClickEvent(o[s-3],o[s-2],o[s-1]),x.setLink(o[s-3],o[s]);break;case 38:this.$=o[s-2],x.setClickEvent(o[s-2],o[s],null),x.setLink(o[s-2],o[s-1]);break;case 39:this.$=o[s-3],x.setClickEvent(o[s-3],o[s-1],o[s]),x.setLink(o[s-3],o[s-2]);break;case 40:this.$=o[s-1],x.setLink(o[s-1],o[s]);break;case 41:case 47:this.$=o[s-1]+" "+o[s];break;case 42:case 43:case 45:this.$=o[s-2]+" "+o[s-1]+" "+o[s];break;case 44:case 46:this.$=o[s-3]+" "+o[s-2]+" "+o[s-1]+" "+o[s];break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},t(e,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:17,12:n,13:r,14:i,15:a,16:c,17:m,18:F,19:18,20:C,21:k,22:L,23:_,24:S,25:B,26:A,27:U,28:I,29:N,30:W,31:Z,33:j,35:p,36:g,37:24,38:y,40:h},t(e,[2,7],{1:[2,1]}),t(e,[2,3]),{9:36,11:17,12:n,13:r,14:i,15:a,16:c,17:m,18:F,19:18,20:C,21:k,22:L,23:_,24:S,25:B,26:A,27:U,28:I,29:N,30:W,31:Z,33:j,35:p,36:g,37:24,38:y,40:h},t(e,[2,5]),t(e,[2,6]),t(e,[2,17]),t(e,[2,18]),t(e,[2,19]),t(e,[2,20]),t(e,[2,21]),t(e,[2,22]),t(e,[2,23]),t(e,[2,24]),t(e,[2,25]),t(e,[2,26]),t(e,[2,27]),{32:[1,37]},{34:[1,38]},t(e,[2,30]),t(e,[2,31]),t(e,[2,32]),{39:[1,39]},t(e,[2,8]),t(e,[2,9]),t(e,[2,10]),t(e,[2,11]),t(e,[2,12]),t(e,[2,13]),t(e,[2,14]),t(e,[2,15]),t(e,[2,16]),{41:[1,40],43:[1,41]},t(e,[2,4]),t(e,[2,28]),t(e,[2,29]),t(e,[2,33]),t(e,[2,34],{42:[1,42],43:[1,43]}),t(e,[2,40],{41:[1,44]}),t(e,[2,35],{43:[1,45]}),t(e,[2,36]),t(e,[2,38],{42:[1,46]}),t(e,[2,37]),t(e,[2,39])],defaultActions:{},parseError:d(function(u,f){if(f.recoverable)this.trace(u);else{var b=new Error(u);throw b.hash=f,b}},"parseError"),parse:d(function(u){var f=this,b=[0],x=[],Y=[null],o=[],X=this.table,s="",E=0,R=0,z=2,P=1,K=o.slice.call(arguments,1),O=Object.create(this.lexer),st={yy:{}};for(var D in this.yy)Object.prototype.hasOwnProperty.call(this.yy,D)&&(st.yy[D]=this.yy[D]);O.setInput(u,st.yy),st.yy.lexer=O,st.yy.parser=this,typeof O.yylloc>"u"&&(O.yylloc={});var H=O.yylloc;o.push(H);var V=O.options&&O.options.ranges;typeof st.yy.parseError=="function"?this.parseError=st.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function l(ot){b.length=b.length-2*ot,Y.length=Y.length-ot,o.length=o.length-ot}d(l,"popStack");function J(){var ot;return ot=x.pop()||O.lex()||P,typeof ot!="number"&&(ot instanceof Array&&(x=ot,ot=x.pop()),ot=f.symbols_[ot]||ot),ot}d(J,"lex");for(var $,Q,G,it,at={},pt,ut,Ae,Zt;;){if(Q=b[b.length-1],this.defaultActions[Q]?G=this.defaultActions[Q]:(($===null||typeof $>"u")&&($=J()),G=X[Q]&&X[Q][$]),typeof G>"u"||!G.length||!G[0]){var ie="";Zt=[];for(pt in X[Q])this.terminals_[pt]&&pt>z&&Zt.push("'"+this.terminals_[pt]+"'");O.showPosition?ie="Parse error on line "+(E+1)+`:
2
2
  `+O.showPosition()+`
3
3
  Expecting `+Zt.join(", ")+", got '"+(this.terminals_[$]||$)+"'":ie="Parse error on line "+(E+1)+": Unexpected "+($==P?"end of input":"'"+(this.terminals_[$]||$)+"'"),this.parseError(ie,{text:O.match,token:this.terminals_[$]||$,line:O.yylineno,loc:H,expected:Zt})}if(G[0]instanceof Array&&G.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Q+", token: "+$);switch(G[0]){case 1:b.push($),Y.push(O.yytext),o.push(O.yylloc),b.push(G[1]),$=null,R=O.yyleng,s=O.yytext,E=O.yylineno,H=O.yylloc;break;case 2:if(ut=this.productions_[G[1]][1],at.$=Y[Y.length-ut],at._$={first_line:o[o.length-(ut||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(ut||1)].first_column,last_column:o[o.length-1].last_column},V&&(at._$.range=[o[o.length-(ut||1)].range[0],o[o.length-1].range[1]]),it=this.performAction.apply(at,[s,R,E,st.yy,G[1],Y,o].concat(K)),typeof it<"u")return it;ut&&(b=b.slice(0,-1*ut*2),Y=Y.slice(0,-1*ut),o=o.slice(0,-1*ut)),b.push(this.productions_[G[1]][0]),Y.push(at.$),o.push(at._$),Ae=X[b[b.length-2]][b[b.length-1]],b.push(Ae);break;case 3:return!0}}return!0},"parse")},w=(function(){var v={EOF:1,parseError:d(function(f,b){if(this.yy.parser)this.yy.parser.parseError(f,b);else throw new Error(f)},"parseError"),setInput:d(function(u,f){return this.yy=f||this.yy||{},this._input=u,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:d(function(){var u=this._input[0];this.yytext+=u,this.yyleng++,this.offset++,this.match+=u,this.matched+=u;var f=u.match(/(?:\r\n?|\n).*/g);return f?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),u},"input"),unput:d(function(u){var f=u.length,b=u.split(/(?:\r\n?|\n)/g);this._input=u+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-f),this.offset-=f;var x=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),b.length-1&&(this.yylineno-=b.length-1);var Y=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:b?(b.length===x.length?this.yylloc.first_column:0)+x[x.length-b.length].length-b[0].length:this.yylloc.first_column-f},this.options.ranges&&(this.yylloc.range=[Y[0],Y[0]+this.yyleng-f]),this.yyleng=this.yytext.length,this},"unput"),more:d(function(){return this._more=!0,this},"more"),reject:d(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
4
4
  `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:d(function(u){this.unput(this.match.slice(u))},"less"),pastInput:d(function(){var u=this.matched.substr(0,this.matched.length-this.match.length);return(u.length>20?"...":"")+u.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:d(function(){var u=this.match;return u.length<20&&(u+=this._input.substr(0,20-u.length)),(u.substr(0,20)+(u.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:d(function(){var u=this.pastInput(),f=new Array(u.length+1).join("-");return u+this.upcomingInput()+`
@@ -1,4 +1,4 @@
1
- import{p as Y}from"./chunk-4BX2VUAB-DH3JjsZf.js";import{I as K}from"./chunk-QZHKN3VN-BqSJxIuw.js";import{q as U,p as V,s as X,g as J,a as Q,b as Z,_ as l,l as m,u as rr,D as er,y as tr,j as C,E as ar,F as sr,G as nr,c as or,H as cr}from"./mermaid.core-bwWKwscf.js";import{p as ir}from"./treemap-GDKQZRPO-DIQh1NSx.js";import{s as dr}from"./index-D8dkqP85.js";import"./mermaid-VLURNSYL-BAygRTK6.js";import"./index-e-4cSkrt.js";import"./maximize-2-zJKkDRK0.js";import"./_baseUniq-aBjj_hOi.js";import"./_basePickBy-C0TWefH3.js";import"./clone-H3FbKF9K.js";var x={NORMAL:0,REVERSE:1,HIGHLIGHT:2,MERGE:3,CHERRY_PICK:4},hr=sr.gitGraph,I=l(()=>ar({...hr,...nr().gitGraph}),"getConfig"),c=new K(()=>{const t=I(),r=t.mainBranchName,s=t.mainBranchOrder;return{mainBranchName:r,commits:new Map,head:null,branchConfig:new Map([[r,{name:r,order:s}]]),branches:new Map([[r,null]]),currBranch:r,direction:"LR",seq:0,options:{}}});function A(){return cr({length:7})}l(A,"getID");function F(t,r){const s=Object.create(null);return t.reduce((n,e)=>{const a=r(e);return s[a]||(s[a]=!0,n.push(e)),n},[])}l(F,"uniqBy");var lr=l(function(t){c.records.direction=t},"setDirection"),$r=l(function(t){m.debug("options str",t),t=t?.trim(),t=t||"{}";try{c.records.options=JSON.parse(t)}catch(r){m.error("error while parsing gitGraph options",r.message)}},"setOptions"),fr=l(function(){return c.records.options},"getOptions"),gr=l(function(t){let r=t.msg,s=t.id;const n=t.type;let e=t.tags;m.info("commit",r,s,n,e),m.debug("Entering commit:",r,s,n,e);const a=I();s=C.sanitizeText(s,a),r=C.sanitizeText(r,a),e=e?.map(o=>C.sanitizeText(o,a));const d={id:s||c.records.seq+"-"+A(),message:r,seq:c.records.seq++,type:n??x.NORMAL,tags:e??[],parents:c.records.head==null?[]:[c.records.head.id],branch:c.records.currBranch};c.records.head=d,m.info("main branch",a.mainBranchName),c.records.commits.has(d.id)&&m.warn(`Commit ID ${d.id} already exists`),c.records.commits.set(d.id,d),c.records.branches.set(c.records.currBranch,d.id),m.debug("in pushCommit "+d.id)},"commit"),yr=l(function(t){let r=t.name;const s=t.order;if(r=C.sanitizeText(r,I()),c.records.branches.has(r))throw new Error(`Trying to create an existing branch. (Help: Either use a new name if you want create a new branch or try using "checkout ${r}")`);c.records.branches.set(r,c.records.head!=null?c.records.head.id:null),c.records.branchConfig.set(r,{name:r,order:s}),z(r),m.debug("in createBranch")},"branch"),ur=l(t=>{let r=t.branch,s=t.id;const n=t.type,e=t.tags,a=I();r=C.sanitizeText(r,a),s&&(s=C.sanitizeText(s,a));const d=c.records.branches.get(c.records.currBranch),o=c.records.branches.get(r),f=d?c.records.commits.get(d):void 0,h=o?c.records.commits.get(o):void 0;if(f&&h&&f.branch===r)throw new Error(`Cannot merge branch '${r}' into itself.`);if(c.records.currBranch===r){const i=new Error('Incorrect usage of "merge". Cannot merge a branch to itself');throw i.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["branch abc"]},i}if(f===void 0||!f){const i=new Error(`Incorrect usage of "merge". Current branch (${c.records.currBranch})has no commits`);throw i.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["commit"]},i}if(!c.records.branches.has(r)){const i=new Error('Incorrect usage of "merge". Branch to be merged ('+r+") does not exist");throw i.hash={text:`merge ${r}`,token:`merge ${r}`,expected:[`branch ${r}`]},i}if(h===void 0||!h){const i=new Error('Incorrect usage of "merge". Branch to be merged ('+r+") has no commits");throw i.hash={text:`merge ${r}`,token:`merge ${r}`,expected:['"commit"']},i}if(f===h){const i=new Error('Incorrect usage of "merge". Both branches have same head');throw i.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["branch abc"]},i}if(s&&c.records.commits.has(s)){const i=new Error('Incorrect usage of "merge". Commit with id:'+s+" already exists, use different custom id");throw i.hash={text:`merge ${r} ${s} ${n} ${e?.join(" ")}`,token:`merge ${r} ${s} ${n} ${e?.join(" ")}`,expected:[`merge ${r} ${s}_UNIQUE ${n} ${e?.join(" ")}`]},i}const $=o||"",g={id:s||`${c.records.seq}-${A()}`,message:`merged branch ${r} into ${c.records.currBranch}`,seq:c.records.seq++,parents:c.records.head==null?[]:[c.records.head.id,$],branch:c.records.currBranch,type:x.MERGE,customType:n,customId:!!s,tags:e??[]};c.records.head=g,c.records.commits.set(g.id,g),c.records.branches.set(c.records.currBranch,g.id),m.debug(c.records.branches),m.debug("in mergeBranch")},"merge"),pr=l(function(t){let r=t.id,s=t.targetId,n=t.tags,e=t.parent;m.debug("Entering cherryPick:",r,s,n);const a=I();if(r=C.sanitizeText(r,a),s=C.sanitizeText(s,a),n=n?.map(f=>C.sanitizeText(f,a)),e=C.sanitizeText(e,a),!r||!c.records.commits.has(r)){const f=new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');throw f.hash={text:`cherryPick ${r} ${s}`,token:`cherryPick ${r} ${s}`,expected:["cherry-pick abc"]},f}const d=c.records.commits.get(r);if(d===void 0||!d)throw new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');if(e&&!(Array.isArray(d.parents)&&d.parents.includes(e)))throw new Error("Invalid operation: The specified parent commit is not an immediate parent of the cherry-picked commit.");const o=d.branch;if(d.type===x.MERGE&&!e)throw new Error("Incorrect usage of cherry-pick: If the source commit is a merge commit, an immediate parent commit must be specified.");if(!s||!c.records.commits.has(s)){if(o===c.records.currBranch){const g=new Error('Incorrect usage of "cherryPick". Source commit is already on current branch');throw g.hash={text:`cherryPick ${r} ${s}`,token:`cherryPick ${r} ${s}`,expected:["cherry-pick abc"]},g}const f=c.records.branches.get(c.records.currBranch);if(f===void 0||!f){const g=new Error(`Incorrect usage of "cherry-pick". Current branch (${c.records.currBranch})has no commits`);throw g.hash={text:`cherryPick ${r} ${s}`,token:`cherryPick ${r} ${s}`,expected:["cherry-pick abc"]},g}const h=c.records.commits.get(f);if(h===void 0||!h){const g=new Error(`Incorrect usage of "cherry-pick". Current branch (${c.records.currBranch})has no commits`);throw g.hash={text:`cherryPick ${r} ${s}`,token:`cherryPick ${r} ${s}`,expected:["cherry-pick abc"]},g}const $={id:c.records.seq+"-"+A(),message:`cherry-picked ${d?.message} into ${c.records.currBranch}`,seq:c.records.seq++,parents:c.records.head==null?[]:[c.records.head.id,d.id],branch:c.records.currBranch,type:x.CHERRY_PICK,tags:n?n.filter(Boolean):[`cherry-pick:${d.id}${d.type===x.MERGE?`|parent:${e}`:""}`]};c.records.head=$,c.records.commits.set($.id,$),c.records.branches.set(c.records.currBranch,$.id),m.debug(c.records.branches),m.debug("in cherryPick")}},"cherryPick"),z=l(function(t){if(t=C.sanitizeText(t,I()),c.records.branches.has(t)){c.records.currBranch=t;const r=c.records.branches.get(c.records.currBranch);r===void 0||!r?c.records.head=null:c.records.head=c.records.commits.get(r)??null}else{const r=new Error(`Trying to checkout branch which is not yet created. (Help try using "branch ${t}")`);throw r.hash={text:`checkout ${t}`,token:`checkout ${t}`,expected:[`branch ${t}`]},r}},"checkout");function _(t,r,s){const n=t.indexOf(r);n===-1?t.push(s):t.splice(n,1,s)}l(_,"upsert");function P(t){const r=t.reduce((e,a)=>e.seq>a.seq?e:a,t[0]);let s="";t.forEach(function(e){e===r?s+=" *":s+=" |"});const n=[s,r.id,r.seq];for(const e in c.records.branches)c.records.branches.get(e)===r.id&&n.push(e);if(m.debug(n.join(" ")),r.parents&&r.parents.length==2&&r.parents[0]&&r.parents[1]){const e=c.records.commits.get(r.parents[0]);_(t,r,e),r.parents[1]&&t.push(c.records.commits.get(r.parents[1]))}else{if(r.parents.length==0)return;if(r.parents[0]){const e=c.records.commits.get(r.parents[0]);_(t,r,e)}}t=F(t,e=>e.id),P(t)}l(P,"prettyPrintCommitHistory");var xr=l(function(){m.debug(c.records.commits);const t=N()[0];P([t])},"prettyPrint"),mr=l(function(){c.reset(),tr()},"clear"),br=l(function(){return[...c.records.branchConfig.values()].map((r,s)=>r.order!==null&&r.order!==void 0?r:{...r,order:parseFloat(`0.${s}`)}).sort((r,s)=>(r.order??0)-(s.order??0)).map(({name:r})=>({name:r}))},"getBranchesAsObjArray"),wr=l(function(){return c.records.branches},"getBranches"),vr=l(function(){return c.records.commits},"getCommits"),N=l(function(){const t=[...c.records.commits.values()];return t.forEach(function(r){m.debug(r.id)}),t.sort((r,s)=>r.seq-s.seq),t},"getCommitsArray"),Cr=l(function(){return c.records.currBranch},"getCurrentBranch"),Er=l(function(){return c.records.direction},"getDirection"),Tr=l(function(){return c.records.head},"getHead"),S={commitType:x,getConfig:I,setDirection:lr,setOptions:$r,getOptions:fr,commit:gr,branch:yr,merge:ur,cherryPick:pr,checkout:z,prettyPrint:xr,clear:mr,getBranchesAsObjArray:br,getBranches:wr,getCommits:vr,getCommitsArray:N,getCurrentBranch:Cr,getDirection:Er,getHead:Tr,setAccTitle:Z,getAccTitle:Q,getAccDescription:J,setAccDescription:X,setDiagramTitle:V,getDiagramTitle:U},Br=l((t,r)=>{Y(t,r),t.dir&&r.setDirection(t.dir);for(const s of t.statements)Lr(s,r)},"populate"),Lr=l((t,r)=>{const n={Commit:l(e=>r.commit(kr(e)),"Commit"),Branch:l(e=>r.branch(Mr(e)),"Branch"),Merge:l(e=>r.merge(Ir(e)),"Merge"),Checkout:l(e=>r.checkout(Rr(e)),"Checkout"),CherryPicking:l(e=>r.cherryPick(Gr(e)),"CherryPicking")}[t.$type];n?n(t):m.error(`Unknown statement type: ${t.$type}`)},"parseStatement"),kr=l(t=>({id:t.id,msg:t.message??"",type:t.type!==void 0?x[t.type]:x.NORMAL,tags:t.tags??void 0}),"parseCommit"),Mr=l(t=>({name:t.name,order:t.order??0}),"parseBranch"),Ir=l(t=>({branch:t.branch,id:t.id??"",type:t.type!==void 0?x[t.type]:void 0,tags:t.tags??void 0}),"parseMerge"),Rr=l(t=>t.branch,"parseCheckout"),Gr=l(t=>({id:t.id,targetId:"",tags:t.tags?.length===0?void 0:t.tags,parent:t.parent}),"parseCherryPicking"),Or={parse:l(async t=>{const r=await ir("gitGraph",t);m.debug(r),Br(r,S)},"parse")},qr=or(),v=qr?.gitGraph,L=10,k=40,E=4,T=2,M=8,b=new Map,w=new Map,O=30,R=new Map,q=[],B=0,u="LR",Ar=l(()=>{b.clear(),w.clear(),R.clear(),B=0,q=[],u="LR"},"clear"),W=l(t=>{const r=document.createElementNS("http://www.w3.org/2000/svg","text");return(typeof t=="string"?t.split(/\\n|\n|<br\s*\/?>/gi):t).forEach(n=>{const e=document.createElementNS("http://www.w3.org/2000/svg","tspan");e.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),e.setAttribute("dy","1em"),e.setAttribute("x","0"),e.setAttribute("class","row"),e.textContent=n.trim(),r.appendChild(e)}),r},"drawText"),j=l(t=>{let r,s,n;return u==="BT"?(s=l((e,a)=>e<=a,"comparisonFunc"),n=1/0):(s=l((e,a)=>e>=a,"comparisonFunc"),n=0),t.forEach(e=>{const a=u==="TB"||u=="BT"?w.get(e)?.y:w.get(e)?.x;a!==void 0&&s(a,n)&&(r=e,n=a)}),r},"findClosestParent"),Hr=l(t=>{let r="",s=1/0;return t.forEach(n=>{const e=w.get(n).y;e<=s&&(r=n,s=e)}),r||void 0},"findClosestParentBT"),_r=l((t,r,s)=>{let n=s,e=s;const a=[];t.forEach(d=>{const o=r.get(d);if(!o)throw new Error(`Commit not found for key ${d}`);o.parents.length?(n=Dr(o),e=Math.max(n,e)):a.push(o),Fr(o,n)}),n=e,a.forEach(d=>{zr(d,n,s)}),t.forEach(d=>{const o=r.get(d);if(o?.parents.length){const f=Hr(o.parents);n=w.get(f).y-k,n<=e&&(e=n);const h=b.get(o.branch).pos,$=n-L;w.set(o.id,{x:h,y:$})}})},"setParallelBTPos"),Pr=l(t=>{const r=j(t.parents.filter(n=>n!==null));if(!r)throw new Error(`Closest parent not found for commit ${t.id}`);const s=w.get(r)?.y;if(s===void 0)throw new Error(`Closest parent position not found for commit ${t.id}`);return s},"findClosestParentPos"),Dr=l(t=>Pr(t)+k,"calculateCommitPosition"),Fr=l((t,r)=>{const s=b.get(t.branch);if(!s)throw new Error(`Branch not found for commit ${t.id}`);const n=s.pos,e=r+L;return w.set(t.id,{x:n,y:e}),{x:n,y:e}},"setCommitPosition"),zr=l((t,r,s)=>{const n=b.get(t.branch);if(!n)throw new Error(`Branch not found for commit ${t.id}`);const e=r+s,a=n.pos;w.set(t.id,{x:a,y:e})},"setRootPosition"),Nr=l((t,r,s,n,e,a)=>{if(a===x.HIGHLIGHT)t.append("rect").attr("x",s.x-10).attr("y",s.y-10).attr("width",20).attr("height",20).attr("class",`commit ${r.id} commit-highlight${e%M} ${n}-outer`),t.append("rect").attr("x",s.x-6).attr("y",s.y-6).attr("width",12).attr("height",12).attr("class",`commit ${r.id} commit${e%M} ${n}-inner`);else if(a===x.CHERRY_PICK)t.append("circle").attr("cx",s.x).attr("cy",s.y).attr("r",10).attr("class",`commit ${r.id} ${n}`),t.append("circle").attr("cx",s.x-3).attr("cy",s.y+2).attr("r",2.75).attr("fill","#fff").attr("class",`commit ${r.id} ${n}`),t.append("circle").attr("cx",s.x+3).attr("cy",s.y+2).attr("r",2.75).attr("fill","#fff").attr("class",`commit ${r.id} ${n}`),t.append("line").attr("x1",s.x+3).attr("y1",s.y+1).attr("x2",s.x).attr("y2",s.y-5).attr("stroke","#fff").attr("class",`commit ${r.id} ${n}`),t.append("line").attr("x1",s.x-3).attr("y1",s.y+1).attr("x2",s.x).attr("y2",s.y-5).attr("stroke","#fff").attr("class",`commit ${r.id} ${n}`);else{const d=t.append("circle");if(d.attr("cx",s.x),d.attr("cy",s.y),d.attr("r",r.type===x.MERGE?9:10),d.attr("class",`commit ${r.id} commit${e%M}`),a===x.MERGE){const o=t.append("circle");o.attr("cx",s.x),o.attr("cy",s.y),o.attr("r",6),o.attr("class",`commit ${n} ${r.id} commit${e%M}`)}a===x.REVERSE&&t.append("path").attr("d",`M ${s.x-5},${s.y-5}L${s.x+5},${s.y+5}M${s.x-5},${s.y+5}L${s.x+5},${s.y-5}`).attr("class",`commit ${n} ${r.id} commit${e%M}`)}},"drawCommitBullet"),Sr=l((t,r,s,n)=>{if(r.type!==x.CHERRY_PICK&&(r.customId&&r.type===x.MERGE||r.type!==x.MERGE)&&v?.showCommitLabel){const e=t.append("g"),a=e.insert("rect").attr("class","commit-label-bkg"),d=e.append("text").attr("x",n).attr("y",s.y+25).attr("class","commit-label").text(r.id),o=d.node()?.getBBox();if(o&&(a.attr("x",s.posWithOffset-o.width/2-T).attr("y",s.y+13.5).attr("width",o.width+2*T).attr("height",o.height+2*T),u==="TB"||u==="BT"?(a.attr("x",s.x-(o.width+4*E+5)).attr("y",s.y-12),d.attr("x",s.x-(o.width+4*E)).attr("y",s.y+o.height-12)):d.attr("x",s.posWithOffset-o.width/2),v.rotateCommitLabel))if(u==="TB"||u==="BT")d.attr("transform","rotate(-45, "+s.x+", "+s.y+")"),a.attr("transform","rotate(-45, "+s.x+", "+s.y+")");else{const f=-7.5-(o.width+10)/25*9.5,h=10+o.width/25*8.5;e.attr("transform","translate("+f+", "+h+") rotate(-45, "+n+", "+s.y+")")}}},"drawCommitLabel"),Wr=l((t,r,s,n)=>{if(r.tags.length>0){let e=0,a=0,d=0;const o=[];for(const f of r.tags.reverse()){const h=t.insert("polygon"),$=t.append("circle"),g=t.append("text").attr("y",s.y-16-e).attr("class","tag-label").text(f),i=g.node()?.getBBox();if(!i)throw new Error("Tag bbox not found");a=Math.max(a,i.width),d=Math.max(d,i.height),g.attr("x",s.posWithOffset-i.width/2),o.push({tag:g,hole:$,rect:h,yOffset:e}),e+=20}for(const{tag:f,hole:h,rect:$,yOffset:g}of o){const i=d/2,y=s.y-19.2-g;if($.attr("class","tag-label-bkg").attr("points",`
1
+ import{p as Y}from"./chunk-4BX2VUAB-D4SAUSXH.js";import{I as K}from"./chunk-QZHKN3VN-DoGQixgZ.js";import{q as U,p as V,s as X,g as J,a as Q,b as Z,_ as l,l as m,u as rr,D as er,y as tr,j as C,E as ar,F as sr,G as nr,c as or,H as cr}from"./mermaid.core-B_cUK0gA.js";import{p as ir}from"./treemap-GDKQZRPO-CGjffbYp.js";import{s as dr}from"./index-B0VAn5-V.js";import"./mermaid-VLURNSYL-D2mykrpe.js";import"./index-e-4cSkrt.js";import"./maximize-2-BPmhoPLp.js";import"./_baseUniq-DqfHtDwq.js";import"./_basePickBy-BiLKhh6-.js";import"./clone-R56dYs_d.js";var x={NORMAL:0,REVERSE:1,HIGHLIGHT:2,MERGE:3,CHERRY_PICK:4},hr=sr.gitGraph,I=l(()=>ar({...hr,...nr().gitGraph}),"getConfig"),c=new K(()=>{const t=I(),r=t.mainBranchName,s=t.mainBranchOrder;return{mainBranchName:r,commits:new Map,head:null,branchConfig:new Map([[r,{name:r,order:s}]]),branches:new Map([[r,null]]),currBranch:r,direction:"LR",seq:0,options:{}}});function A(){return cr({length:7})}l(A,"getID");function F(t,r){const s=Object.create(null);return t.reduce((n,e)=>{const a=r(e);return s[a]||(s[a]=!0,n.push(e)),n},[])}l(F,"uniqBy");var lr=l(function(t){c.records.direction=t},"setDirection"),$r=l(function(t){m.debug("options str",t),t=t?.trim(),t=t||"{}";try{c.records.options=JSON.parse(t)}catch(r){m.error("error while parsing gitGraph options",r.message)}},"setOptions"),fr=l(function(){return c.records.options},"getOptions"),gr=l(function(t){let r=t.msg,s=t.id;const n=t.type;let e=t.tags;m.info("commit",r,s,n,e),m.debug("Entering commit:",r,s,n,e);const a=I();s=C.sanitizeText(s,a),r=C.sanitizeText(r,a),e=e?.map(o=>C.sanitizeText(o,a));const d={id:s||c.records.seq+"-"+A(),message:r,seq:c.records.seq++,type:n??x.NORMAL,tags:e??[],parents:c.records.head==null?[]:[c.records.head.id],branch:c.records.currBranch};c.records.head=d,m.info("main branch",a.mainBranchName),c.records.commits.has(d.id)&&m.warn(`Commit ID ${d.id} already exists`),c.records.commits.set(d.id,d),c.records.branches.set(c.records.currBranch,d.id),m.debug("in pushCommit "+d.id)},"commit"),yr=l(function(t){let r=t.name;const s=t.order;if(r=C.sanitizeText(r,I()),c.records.branches.has(r))throw new Error(`Trying to create an existing branch. (Help: Either use a new name if you want create a new branch or try using "checkout ${r}")`);c.records.branches.set(r,c.records.head!=null?c.records.head.id:null),c.records.branchConfig.set(r,{name:r,order:s}),z(r),m.debug("in createBranch")},"branch"),ur=l(t=>{let r=t.branch,s=t.id;const n=t.type,e=t.tags,a=I();r=C.sanitizeText(r,a),s&&(s=C.sanitizeText(s,a));const d=c.records.branches.get(c.records.currBranch),o=c.records.branches.get(r),f=d?c.records.commits.get(d):void 0,h=o?c.records.commits.get(o):void 0;if(f&&h&&f.branch===r)throw new Error(`Cannot merge branch '${r}' into itself.`);if(c.records.currBranch===r){const i=new Error('Incorrect usage of "merge". Cannot merge a branch to itself');throw i.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["branch abc"]},i}if(f===void 0||!f){const i=new Error(`Incorrect usage of "merge". Current branch (${c.records.currBranch})has no commits`);throw i.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["commit"]},i}if(!c.records.branches.has(r)){const i=new Error('Incorrect usage of "merge". Branch to be merged ('+r+") does not exist");throw i.hash={text:`merge ${r}`,token:`merge ${r}`,expected:[`branch ${r}`]},i}if(h===void 0||!h){const i=new Error('Incorrect usage of "merge". Branch to be merged ('+r+") has no commits");throw i.hash={text:`merge ${r}`,token:`merge ${r}`,expected:['"commit"']},i}if(f===h){const i=new Error('Incorrect usage of "merge". Both branches have same head');throw i.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["branch abc"]},i}if(s&&c.records.commits.has(s)){const i=new Error('Incorrect usage of "merge". Commit with id:'+s+" already exists, use different custom id");throw i.hash={text:`merge ${r} ${s} ${n} ${e?.join(" ")}`,token:`merge ${r} ${s} ${n} ${e?.join(" ")}`,expected:[`merge ${r} ${s}_UNIQUE ${n} ${e?.join(" ")}`]},i}const $=o||"",g={id:s||`${c.records.seq}-${A()}`,message:`merged branch ${r} into ${c.records.currBranch}`,seq:c.records.seq++,parents:c.records.head==null?[]:[c.records.head.id,$],branch:c.records.currBranch,type:x.MERGE,customType:n,customId:!!s,tags:e??[]};c.records.head=g,c.records.commits.set(g.id,g),c.records.branches.set(c.records.currBranch,g.id),m.debug(c.records.branches),m.debug("in mergeBranch")},"merge"),pr=l(function(t){let r=t.id,s=t.targetId,n=t.tags,e=t.parent;m.debug("Entering cherryPick:",r,s,n);const a=I();if(r=C.sanitizeText(r,a),s=C.sanitizeText(s,a),n=n?.map(f=>C.sanitizeText(f,a)),e=C.sanitizeText(e,a),!r||!c.records.commits.has(r)){const f=new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');throw f.hash={text:`cherryPick ${r} ${s}`,token:`cherryPick ${r} ${s}`,expected:["cherry-pick abc"]},f}const d=c.records.commits.get(r);if(d===void 0||!d)throw new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');if(e&&!(Array.isArray(d.parents)&&d.parents.includes(e)))throw new Error("Invalid operation: The specified parent commit is not an immediate parent of the cherry-picked commit.");const o=d.branch;if(d.type===x.MERGE&&!e)throw new Error("Incorrect usage of cherry-pick: If the source commit is a merge commit, an immediate parent commit must be specified.");if(!s||!c.records.commits.has(s)){if(o===c.records.currBranch){const g=new Error('Incorrect usage of "cherryPick". Source commit is already on current branch');throw g.hash={text:`cherryPick ${r} ${s}`,token:`cherryPick ${r} ${s}`,expected:["cherry-pick abc"]},g}const f=c.records.branches.get(c.records.currBranch);if(f===void 0||!f){const g=new Error(`Incorrect usage of "cherry-pick". Current branch (${c.records.currBranch})has no commits`);throw g.hash={text:`cherryPick ${r} ${s}`,token:`cherryPick ${r} ${s}`,expected:["cherry-pick abc"]},g}const h=c.records.commits.get(f);if(h===void 0||!h){const g=new Error(`Incorrect usage of "cherry-pick". Current branch (${c.records.currBranch})has no commits`);throw g.hash={text:`cherryPick ${r} ${s}`,token:`cherryPick ${r} ${s}`,expected:["cherry-pick abc"]},g}const $={id:c.records.seq+"-"+A(),message:`cherry-picked ${d?.message} into ${c.records.currBranch}`,seq:c.records.seq++,parents:c.records.head==null?[]:[c.records.head.id,d.id],branch:c.records.currBranch,type:x.CHERRY_PICK,tags:n?n.filter(Boolean):[`cherry-pick:${d.id}${d.type===x.MERGE?`|parent:${e}`:""}`]};c.records.head=$,c.records.commits.set($.id,$),c.records.branches.set(c.records.currBranch,$.id),m.debug(c.records.branches),m.debug("in cherryPick")}},"cherryPick"),z=l(function(t){if(t=C.sanitizeText(t,I()),c.records.branches.has(t)){c.records.currBranch=t;const r=c.records.branches.get(c.records.currBranch);r===void 0||!r?c.records.head=null:c.records.head=c.records.commits.get(r)??null}else{const r=new Error(`Trying to checkout branch which is not yet created. (Help try using "branch ${t}")`);throw r.hash={text:`checkout ${t}`,token:`checkout ${t}`,expected:[`branch ${t}`]},r}},"checkout");function _(t,r,s){const n=t.indexOf(r);n===-1?t.push(s):t.splice(n,1,s)}l(_,"upsert");function P(t){const r=t.reduce((e,a)=>e.seq>a.seq?e:a,t[0]);let s="";t.forEach(function(e){e===r?s+=" *":s+=" |"});const n=[s,r.id,r.seq];for(const e in c.records.branches)c.records.branches.get(e)===r.id&&n.push(e);if(m.debug(n.join(" ")),r.parents&&r.parents.length==2&&r.parents[0]&&r.parents[1]){const e=c.records.commits.get(r.parents[0]);_(t,r,e),r.parents[1]&&t.push(c.records.commits.get(r.parents[1]))}else{if(r.parents.length==0)return;if(r.parents[0]){const e=c.records.commits.get(r.parents[0]);_(t,r,e)}}t=F(t,e=>e.id),P(t)}l(P,"prettyPrintCommitHistory");var xr=l(function(){m.debug(c.records.commits);const t=N()[0];P([t])},"prettyPrint"),mr=l(function(){c.reset(),tr()},"clear"),br=l(function(){return[...c.records.branchConfig.values()].map((r,s)=>r.order!==null&&r.order!==void 0?r:{...r,order:parseFloat(`0.${s}`)}).sort((r,s)=>(r.order??0)-(s.order??0)).map(({name:r})=>({name:r}))},"getBranchesAsObjArray"),wr=l(function(){return c.records.branches},"getBranches"),vr=l(function(){return c.records.commits},"getCommits"),N=l(function(){const t=[...c.records.commits.values()];return t.forEach(function(r){m.debug(r.id)}),t.sort((r,s)=>r.seq-s.seq),t},"getCommitsArray"),Cr=l(function(){return c.records.currBranch},"getCurrentBranch"),Er=l(function(){return c.records.direction},"getDirection"),Tr=l(function(){return c.records.head},"getHead"),S={commitType:x,getConfig:I,setDirection:lr,setOptions:$r,getOptions:fr,commit:gr,branch:yr,merge:ur,cherryPick:pr,checkout:z,prettyPrint:xr,clear:mr,getBranchesAsObjArray:br,getBranches:wr,getCommits:vr,getCommitsArray:N,getCurrentBranch:Cr,getDirection:Er,getHead:Tr,setAccTitle:Z,getAccTitle:Q,getAccDescription:J,setAccDescription:X,setDiagramTitle:V,getDiagramTitle:U},Br=l((t,r)=>{Y(t,r),t.dir&&r.setDirection(t.dir);for(const s of t.statements)Lr(s,r)},"populate"),Lr=l((t,r)=>{const n={Commit:l(e=>r.commit(kr(e)),"Commit"),Branch:l(e=>r.branch(Mr(e)),"Branch"),Merge:l(e=>r.merge(Ir(e)),"Merge"),Checkout:l(e=>r.checkout(Rr(e)),"Checkout"),CherryPicking:l(e=>r.cherryPick(Gr(e)),"CherryPicking")}[t.$type];n?n(t):m.error(`Unknown statement type: ${t.$type}`)},"parseStatement"),kr=l(t=>({id:t.id,msg:t.message??"",type:t.type!==void 0?x[t.type]:x.NORMAL,tags:t.tags??void 0}),"parseCommit"),Mr=l(t=>({name:t.name,order:t.order??0}),"parseBranch"),Ir=l(t=>({branch:t.branch,id:t.id??"",type:t.type!==void 0?x[t.type]:void 0,tags:t.tags??void 0}),"parseMerge"),Rr=l(t=>t.branch,"parseCheckout"),Gr=l(t=>({id:t.id,targetId:"",tags:t.tags?.length===0?void 0:t.tags,parent:t.parent}),"parseCherryPicking"),Or={parse:l(async t=>{const r=await ir("gitGraph",t);m.debug(r),Br(r,S)},"parse")},qr=or(),v=qr?.gitGraph,L=10,k=40,E=4,T=2,M=8,b=new Map,w=new Map,O=30,R=new Map,q=[],B=0,u="LR",Ar=l(()=>{b.clear(),w.clear(),R.clear(),B=0,q=[],u="LR"},"clear"),W=l(t=>{const r=document.createElementNS("http://www.w3.org/2000/svg","text");return(typeof t=="string"?t.split(/\\n|\n|<br\s*\/?>/gi):t).forEach(n=>{const e=document.createElementNS("http://www.w3.org/2000/svg","tspan");e.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),e.setAttribute("dy","1em"),e.setAttribute("x","0"),e.setAttribute("class","row"),e.textContent=n.trim(),r.appendChild(e)}),r},"drawText"),j=l(t=>{let r,s,n;return u==="BT"?(s=l((e,a)=>e<=a,"comparisonFunc"),n=1/0):(s=l((e,a)=>e>=a,"comparisonFunc"),n=0),t.forEach(e=>{const a=u==="TB"||u=="BT"?w.get(e)?.y:w.get(e)?.x;a!==void 0&&s(a,n)&&(r=e,n=a)}),r},"findClosestParent"),Hr=l(t=>{let r="",s=1/0;return t.forEach(n=>{const e=w.get(n).y;e<=s&&(r=n,s=e)}),r||void 0},"findClosestParentBT"),_r=l((t,r,s)=>{let n=s,e=s;const a=[];t.forEach(d=>{const o=r.get(d);if(!o)throw new Error(`Commit not found for key ${d}`);o.parents.length?(n=Dr(o),e=Math.max(n,e)):a.push(o),Fr(o,n)}),n=e,a.forEach(d=>{zr(d,n,s)}),t.forEach(d=>{const o=r.get(d);if(o?.parents.length){const f=Hr(o.parents);n=w.get(f).y-k,n<=e&&(e=n);const h=b.get(o.branch).pos,$=n-L;w.set(o.id,{x:h,y:$})}})},"setParallelBTPos"),Pr=l(t=>{const r=j(t.parents.filter(n=>n!==null));if(!r)throw new Error(`Closest parent not found for commit ${t.id}`);const s=w.get(r)?.y;if(s===void 0)throw new Error(`Closest parent position not found for commit ${t.id}`);return s},"findClosestParentPos"),Dr=l(t=>Pr(t)+k,"calculateCommitPosition"),Fr=l((t,r)=>{const s=b.get(t.branch);if(!s)throw new Error(`Branch not found for commit ${t.id}`);const n=s.pos,e=r+L;return w.set(t.id,{x:n,y:e}),{x:n,y:e}},"setCommitPosition"),zr=l((t,r,s)=>{const n=b.get(t.branch);if(!n)throw new Error(`Branch not found for commit ${t.id}`);const e=r+s,a=n.pos;w.set(t.id,{x:a,y:e})},"setRootPosition"),Nr=l((t,r,s,n,e,a)=>{if(a===x.HIGHLIGHT)t.append("rect").attr("x",s.x-10).attr("y",s.y-10).attr("width",20).attr("height",20).attr("class",`commit ${r.id} commit-highlight${e%M} ${n}-outer`),t.append("rect").attr("x",s.x-6).attr("y",s.y-6).attr("width",12).attr("height",12).attr("class",`commit ${r.id} commit${e%M} ${n}-inner`);else if(a===x.CHERRY_PICK)t.append("circle").attr("cx",s.x).attr("cy",s.y).attr("r",10).attr("class",`commit ${r.id} ${n}`),t.append("circle").attr("cx",s.x-3).attr("cy",s.y+2).attr("r",2.75).attr("fill","#fff").attr("class",`commit ${r.id} ${n}`),t.append("circle").attr("cx",s.x+3).attr("cy",s.y+2).attr("r",2.75).attr("fill","#fff").attr("class",`commit ${r.id} ${n}`),t.append("line").attr("x1",s.x+3).attr("y1",s.y+1).attr("x2",s.x).attr("y2",s.y-5).attr("stroke","#fff").attr("class",`commit ${r.id} ${n}`),t.append("line").attr("x1",s.x-3).attr("y1",s.y+1).attr("x2",s.x).attr("y2",s.y-5).attr("stroke","#fff").attr("class",`commit ${r.id} ${n}`);else{const d=t.append("circle");if(d.attr("cx",s.x),d.attr("cy",s.y),d.attr("r",r.type===x.MERGE?9:10),d.attr("class",`commit ${r.id} commit${e%M}`),a===x.MERGE){const o=t.append("circle");o.attr("cx",s.x),o.attr("cy",s.y),o.attr("r",6),o.attr("class",`commit ${n} ${r.id} commit${e%M}`)}a===x.REVERSE&&t.append("path").attr("d",`M ${s.x-5},${s.y-5}L${s.x+5},${s.y+5}M${s.x-5},${s.y+5}L${s.x+5},${s.y-5}`).attr("class",`commit ${n} ${r.id} commit${e%M}`)}},"drawCommitBullet"),Sr=l((t,r,s,n)=>{if(r.type!==x.CHERRY_PICK&&(r.customId&&r.type===x.MERGE||r.type!==x.MERGE)&&v?.showCommitLabel){const e=t.append("g"),a=e.insert("rect").attr("class","commit-label-bkg"),d=e.append("text").attr("x",n).attr("y",s.y+25).attr("class","commit-label").text(r.id),o=d.node()?.getBBox();if(o&&(a.attr("x",s.posWithOffset-o.width/2-T).attr("y",s.y+13.5).attr("width",o.width+2*T).attr("height",o.height+2*T),u==="TB"||u==="BT"?(a.attr("x",s.x-(o.width+4*E+5)).attr("y",s.y-12),d.attr("x",s.x-(o.width+4*E)).attr("y",s.y+o.height-12)):d.attr("x",s.posWithOffset-o.width/2),v.rotateCommitLabel))if(u==="TB"||u==="BT")d.attr("transform","rotate(-45, "+s.x+", "+s.y+")"),a.attr("transform","rotate(-45, "+s.x+", "+s.y+")");else{const f=-7.5-(o.width+10)/25*9.5,h=10+o.width/25*8.5;e.attr("transform","translate("+f+", "+h+") rotate(-45, "+n+", "+s.y+")")}}},"drawCommitLabel"),Wr=l((t,r,s,n)=>{if(r.tags.length>0){let e=0,a=0,d=0;const o=[];for(const f of r.tags.reverse()){const h=t.insert("polygon"),$=t.append("circle"),g=t.append("text").attr("y",s.y-16-e).attr("class","tag-label").text(f),i=g.node()?.getBBox();if(!i)throw new Error("Tag bbox not found");a=Math.max(a,i.width),d=Math.max(d,i.height),g.attr("x",s.posWithOffset-i.width/2),o.push({tag:g,hole:$,rect:h,yOffset:e}),e+=20}for(const{tag:f,hole:h,rect:$,yOffset:g}of o){const i=d/2,y=s.y-19.2-g;if($.attr("class","tag-label-bkg").attr("points",`
2
2
  ${n-a/2-E/2},${y+T}
3
3
  ${n-a/2-E/2},${y-T}
4
4
  ${s.posWithOffset-a/2-E},${y-i-T}
@@ -1 +1 @@
1
- import{r as g,P as m}from"./index-D8dkqP85.js";function r(e){return typeof e=="string"&&e.length>0?e:void 0}function b(e){if(typeof e=="number"&&Number.isFinite(e))return e;const n=typeof e=="string"&&e.trim()!==""?Number(e):Number.NaN;return Number.isFinite(n)?n:void 0}function w(e){const n=g.useRef(!1);return g.useEffect(()=>{if(n.current)return;n.current=!0;let s=!1;const t=o=>{s||e.onError(new Error(o))};return(async()=>{const o=window;if(o.gapi===void 0){t("The Google API script has not loaded, so the Drive picker cannot open. The `google-drive` provider declares it in `scripts`; check that the surface injects provider scripts and that the composed Content-Security-Policy admits https://apis.google.com.");return}const l=await e.getAccessToken?.();if(l===void 0){t("No Google access token is available for this user, so the Drive picker cannot open. The Picker authorizes as the SIGNED-IN USER, so the application must connect the user's Google account first. A token must never be read from `publicConfig`, which is served to every browser.");return}const a=r(e.publicConfig.appId);if(a===void 0){t("The `google-drive` provider's publicConfig declares no `appId`, which the Drive picker requires.");return}o.gapi.load("picker",()=>{const i=window.google?.picker;if(i===void 0){t("The Google Picker module loaded but installed no `google.picker` global.");return}const d=new i.PickerBuilder().setOAuthToken(l).setAppId(a).addView(new i.DocsView(i.ViewId.DOCS)).setCallback(u=>{if(s)return;if(u.action===i.Action.CANCEL){e.onCancel();return}if(u.action!==i.Action.PICKED)return;const p=[];for(const c of u.docs??[]){const h=r(c.id);if(h===void 0){t("Google Picker returned a selected document with no id, which cannot be resolved.");return}p.push({kind:m.REMOTE_REFERENCE,externalId:h,displayName:r(c.name),mimeType:r(c.mimeType),sizeBytes:b(c.sizeBytes)})}e.onSelect(p)});e.constraints.maxFiles!==void 0&&e.constraints.maxFiles>1&&d.enableFeature("multiselectEnabled");const f=r(e.publicConfig.developerKey);f!==void 0&&d.setDeveloperKey(f),d.build().setVisible(!0)})})(),()=>{s=!0}},[]),null}export{w as GoogleDrivePicker};
1
+ import{r as g,P as m}from"./index-B0VAn5-V.js";function r(e){return typeof e=="string"&&e.length>0?e:void 0}function b(e){if(typeof e=="number"&&Number.isFinite(e))return e;const n=typeof e=="string"&&e.trim()!==""?Number(e):Number.NaN;return Number.isFinite(n)?n:void 0}function w(e){const n=g.useRef(!1);return g.useEffect(()=>{if(n.current)return;n.current=!0;let s=!1;const t=o=>{s||e.onError(new Error(o))};return(async()=>{const o=window;if(o.gapi===void 0){t("The Google API script has not loaded, so the Drive picker cannot open. The `google-drive` provider declares it in `scripts`; check that the surface injects provider scripts and that the composed Content-Security-Policy admits https://apis.google.com.");return}const l=await e.getAccessToken?.();if(l===void 0){t("No Google access token is available for this user, so the Drive picker cannot open. The Picker authorizes as the SIGNED-IN USER, so the application must connect the user's Google account first. A token must never be read from `publicConfig`, which is served to every browser.");return}const a=r(e.publicConfig.appId);if(a===void 0){t("The `google-drive` provider's publicConfig declares no `appId`, which the Drive picker requires.");return}o.gapi.load("picker",()=>{const i=window.google?.picker;if(i===void 0){t("The Google Picker module loaded but installed no `google.picker` global.");return}const d=new i.PickerBuilder().setOAuthToken(l).setAppId(a).addView(new i.DocsView(i.ViewId.DOCS)).setCallback(u=>{if(s)return;if(u.action===i.Action.CANCEL){e.onCancel();return}if(u.action!==i.Action.PICKED)return;const p=[];for(const c of u.docs??[]){const h=r(c.id);if(h===void 0){t("Google Picker returned a selected document with no id, which cannot be resolved.");return}p.push({kind:m.REMOTE_REFERENCE,externalId:h,displayName:r(c.name),mimeType:r(c.mimeType),sizeBytes:b(c.sizeBytes)})}e.onSelect(p)});e.constraints.maxFiles!==void 0&&e.constraints.maxFiles>1&&d.enableFeature("multiselectEnabled");const f=r(e.publicConfig.developerKey);f!==void 0&&d.setDeveloperKey(f),d.build().setVisible(!0)})})(),()=>{s=!0}},[]),null}export{w as GoogleDrivePicker};
@@ -1 +1 @@
1
- import{aq as N,ar as j,as as f,at as b,au as E}from"./mermaid.core-bwWKwscf.js";import{a as v,c as P,k as _,f as g,d,i as l,v as p,r as D}from"./_baseUniq-aBjj_hOi.js";var w=N(function(o){return v(P(o,1,j,!0))}),F="\0",a="\0",O="";class L{constructor(e={}){this._isDirected=Object.prototype.hasOwnProperty.call(e,"directed")?e.directed:!0,this._isMultigraph=Object.prototype.hasOwnProperty.call(e,"multigraph")?e.multigraph:!1,this._isCompound=Object.prototype.hasOwnProperty.call(e,"compound")?e.compound:!1,this._label=void 0,this._defaultNodeLabelFn=f(void 0),this._defaultEdgeLabelFn=f(void 0),this._nodes={},this._isCompound&&(this._parent={},this._children={},this._children[a]={}),this._in={},this._preds={},this._out={},this._sucs={},this._edgeObjs={},this._edgeLabels={}}isDirected(){return this._isDirected}isMultigraph(){return this._isMultigraph}isCompound(){return this._isCompound}setGraph(e){return this._label=e,this}graph(){return this._label}setDefaultNodeLabel(e){return b(e)||(e=f(e)),this._defaultNodeLabelFn=e,this}nodeCount(){return this._nodeCount}nodes(){return _(this._nodes)}sources(){var e=this;return g(this.nodes(),function(t){return E(e._in[t])})}sinks(){var e=this;return g(this.nodes(),function(t){return E(e._out[t])})}setNodes(e,t){var s=arguments,i=this;return d(e,function(r){s.length>1?i.setNode(r,t):i.setNode(r)}),this}setNode(e,t){return Object.prototype.hasOwnProperty.call(this._nodes,e)?(arguments.length>1&&(this._nodes[e]=t),this):(this._nodes[e]=arguments.length>1?t:this._defaultNodeLabelFn(e),this._isCompound&&(this._parent[e]=a,this._children[e]={},this._children[a][e]=!0),this._in[e]={},this._preds[e]={},this._out[e]={},this._sucs[e]={},++this._nodeCount,this)}node(e){return this._nodes[e]}hasNode(e){return Object.prototype.hasOwnProperty.call(this._nodes,e)}removeNode(e){if(Object.prototype.hasOwnProperty.call(this._nodes,e)){var t=s=>this.removeEdge(this._edgeObjs[s]);delete this._nodes[e],this._isCompound&&(this._removeFromParentsChildList(e),delete this._parent[e],d(this.children(e),s=>{this.setParent(s)}),delete this._children[e]),d(_(this._in[e]),t),delete this._in[e],delete this._preds[e],d(_(this._out[e]),t),delete this._out[e],delete this._sucs[e],--this._nodeCount}return this}setParent(e,t){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(l(t))t=a;else{t+="";for(var s=t;!l(s);s=this.parent(s))if(s===e)throw new Error("Setting "+t+" as parent of "+e+" would create a cycle");this.setNode(t)}return this.setNode(e),this._removeFromParentsChildList(e),this._parent[e]=t,this._children[t][e]=!0,this}_removeFromParentsChildList(e){delete this._children[this._parent[e]][e]}parent(e){if(this._isCompound){var t=this._parent[e];if(t!==a)return t}}children(e){if(l(e)&&(e=a),this._isCompound){var t=this._children[e];if(t)return _(t)}else{if(e===a)return this.nodes();if(this.hasNode(e))return[]}}predecessors(e){var t=this._preds[e];if(t)return _(t)}successors(e){var t=this._sucs[e];if(t)return _(t)}neighbors(e){var t=this.predecessors(e);if(t)return w(t,this.successors(e))}isLeaf(e){var t;return this.isDirected()?t=this.successors(e):t=this.neighbors(e),t.length===0}filterNodes(e){var t=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});t.setGraph(this.graph());var s=this;d(this._nodes,function(n,h){e(h)&&t.setNode(h,n)}),d(this._edgeObjs,function(n){t.hasNode(n.v)&&t.hasNode(n.w)&&t.setEdge(n,s.edge(n))});var i={};function r(n){var h=s.parent(n);return h===void 0||t.hasNode(h)?(i[n]=h,h):h in i?i[h]:r(h)}return this._isCompound&&d(t.nodes(),function(n){t.setParent(n,r(n))}),t}setDefaultEdgeLabel(e){return b(e)||(e=f(e)),this._defaultEdgeLabelFn=e,this}edgeCount(){return this._edgeCount}edges(){return p(this._edgeObjs)}setPath(e,t){var s=this,i=arguments;return D(e,function(r,n){return i.length>1?s.setEdge(r,n,t):s.setEdge(r,n),n}),this}setEdge(){var e,t,s,i,r=!1,n=arguments[0];typeof n=="object"&&n!==null&&"v"in n?(e=n.v,t=n.w,s=n.name,arguments.length===2&&(i=arguments[1],r=!0)):(e=n,t=arguments[1],s=arguments[3],arguments.length>2&&(i=arguments[2],r=!0)),e=""+e,t=""+t,l(s)||(s=""+s);var h=c(this._isDirected,e,t,s);if(Object.prototype.hasOwnProperty.call(this._edgeLabels,h))return r&&(this._edgeLabels[h]=i),this;if(!l(s)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(e),this.setNode(t),this._edgeLabels[h]=r?i:this._defaultEdgeLabelFn(e,t,s);var u=M(this._isDirected,e,t,s);return e=u.v,t=u.w,Object.freeze(u),this._edgeObjs[h]=u,y(this._preds[t],e),y(this._sucs[e],t),this._in[t][h]=u,this._out[e][h]=u,this._edgeCount++,this}edge(e,t,s){var i=arguments.length===1?m(this._isDirected,arguments[0]):c(this._isDirected,e,t,s);return this._edgeLabels[i]}hasEdge(e,t,s){var i=arguments.length===1?m(this._isDirected,arguments[0]):c(this._isDirected,e,t,s);return Object.prototype.hasOwnProperty.call(this._edgeLabels,i)}removeEdge(e,t,s){var i=arguments.length===1?m(this._isDirected,arguments[0]):c(this._isDirected,e,t,s),r=this._edgeObjs[i];return r&&(e=r.v,t=r.w,delete this._edgeLabels[i],delete this._edgeObjs[i],C(this._preds[t],e),C(this._sucs[e],t),delete this._in[t][i],delete this._out[e][i],this._edgeCount--),this}inEdges(e,t){var s=this._in[e];if(s){var i=p(s);return t?g(i,function(r){return r.v===t}):i}}outEdges(e,t){var s=this._out[e];if(s){var i=p(s);return t?g(i,function(r){return r.w===t}):i}}nodeEdges(e,t){var s=this.inEdges(e,t);if(s)return s.concat(this.outEdges(e,t))}}L.prototype._nodeCount=0;L.prototype._edgeCount=0;function y(o,e){o[e]?o[e]++:o[e]=1}function C(o,e){--o[e]||delete o[e]}function c(o,e,t,s){var i=""+e,r=""+t;if(!o&&i>r){var n=i;i=r,r=n}return i+O+r+O+(l(s)?F:s)}function M(o,e,t,s){var i=""+e,r=""+t;if(!o&&i>r){var n=i;i=r,r=n}var h={v:i,w:r};return s&&(h.name=s),h}function m(o,e){return c(o,e.v,e.w,e.name)}export{L as G};
1
+ import{aq as N,ar as j,as as f,at as b,au as E}from"./mermaid.core-B_cUK0gA.js";import{a as v,c as P,k as _,f as g,d,i as l,v as p,r as D}from"./_baseUniq-DqfHtDwq.js";var w=N(function(o){return v(P(o,1,j,!0))}),F="\0",a="\0",O="";class L{constructor(e={}){this._isDirected=Object.prototype.hasOwnProperty.call(e,"directed")?e.directed:!0,this._isMultigraph=Object.prototype.hasOwnProperty.call(e,"multigraph")?e.multigraph:!1,this._isCompound=Object.prototype.hasOwnProperty.call(e,"compound")?e.compound:!1,this._label=void 0,this._defaultNodeLabelFn=f(void 0),this._defaultEdgeLabelFn=f(void 0),this._nodes={},this._isCompound&&(this._parent={},this._children={},this._children[a]={}),this._in={},this._preds={},this._out={},this._sucs={},this._edgeObjs={},this._edgeLabels={}}isDirected(){return this._isDirected}isMultigraph(){return this._isMultigraph}isCompound(){return this._isCompound}setGraph(e){return this._label=e,this}graph(){return this._label}setDefaultNodeLabel(e){return b(e)||(e=f(e)),this._defaultNodeLabelFn=e,this}nodeCount(){return this._nodeCount}nodes(){return _(this._nodes)}sources(){var e=this;return g(this.nodes(),function(t){return E(e._in[t])})}sinks(){var e=this;return g(this.nodes(),function(t){return E(e._out[t])})}setNodes(e,t){var s=arguments,i=this;return d(e,function(r){s.length>1?i.setNode(r,t):i.setNode(r)}),this}setNode(e,t){return Object.prototype.hasOwnProperty.call(this._nodes,e)?(arguments.length>1&&(this._nodes[e]=t),this):(this._nodes[e]=arguments.length>1?t:this._defaultNodeLabelFn(e),this._isCompound&&(this._parent[e]=a,this._children[e]={},this._children[a][e]=!0),this._in[e]={},this._preds[e]={},this._out[e]={},this._sucs[e]={},++this._nodeCount,this)}node(e){return this._nodes[e]}hasNode(e){return Object.prototype.hasOwnProperty.call(this._nodes,e)}removeNode(e){if(Object.prototype.hasOwnProperty.call(this._nodes,e)){var t=s=>this.removeEdge(this._edgeObjs[s]);delete this._nodes[e],this._isCompound&&(this._removeFromParentsChildList(e),delete this._parent[e],d(this.children(e),s=>{this.setParent(s)}),delete this._children[e]),d(_(this._in[e]),t),delete this._in[e],delete this._preds[e],d(_(this._out[e]),t),delete this._out[e],delete this._sucs[e],--this._nodeCount}return this}setParent(e,t){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(l(t))t=a;else{t+="";for(var s=t;!l(s);s=this.parent(s))if(s===e)throw new Error("Setting "+t+" as parent of "+e+" would create a cycle");this.setNode(t)}return this.setNode(e),this._removeFromParentsChildList(e),this._parent[e]=t,this._children[t][e]=!0,this}_removeFromParentsChildList(e){delete this._children[this._parent[e]][e]}parent(e){if(this._isCompound){var t=this._parent[e];if(t!==a)return t}}children(e){if(l(e)&&(e=a),this._isCompound){var t=this._children[e];if(t)return _(t)}else{if(e===a)return this.nodes();if(this.hasNode(e))return[]}}predecessors(e){var t=this._preds[e];if(t)return _(t)}successors(e){var t=this._sucs[e];if(t)return _(t)}neighbors(e){var t=this.predecessors(e);if(t)return w(t,this.successors(e))}isLeaf(e){var t;return this.isDirected()?t=this.successors(e):t=this.neighbors(e),t.length===0}filterNodes(e){var t=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});t.setGraph(this.graph());var s=this;d(this._nodes,function(n,h){e(h)&&t.setNode(h,n)}),d(this._edgeObjs,function(n){t.hasNode(n.v)&&t.hasNode(n.w)&&t.setEdge(n,s.edge(n))});var i={};function r(n){var h=s.parent(n);return h===void 0||t.hasNode(h)?(i[n]=h,h):h in i?i[h]:r(h)}return this._isCompound&&d(t.nodes(),function(n){t.setParent(n,r(n))}),t}setDefaultEdgeLabel(e){return b(e)||(e=f(e)),this._defaultEdgeLabelFn=e,this}edgeCount(){return this._edgeCount}edges(){return p(this._edgeObjs)}setPath(e,t){var s=this,i=arguments;return D(e,function(r,n){return i.length>1?s.setEdge(r,n,t):s.setEdge(r,n),n}),this}setEdge(){var e,t,s,i,r=!1,n=arguments[0];typeof n=="object"&&n!==null&&"v"in n?(e=n.v,t=n.w,s=n.name,arguments.length===2&&(i=arguments[1],r=!0)):(e=n,t=arguments[1],s=arguments[3],arguments.length>2&&(i=arguments[2],r=!0)),e=""+e,t=""+t,l(s)||(s=""+s);var h=c(this._isDirected,e,t,s);if(Object.prototype.hasOwnProperty.call(this._edgeLabels,h))return r&&(this._edgeLabels[h]=i),this;if(!l(s)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(e),this.setNode(t),this._edgeLabels[h]=r?i:this._defaultEdgeLabelFn(e,t,s);var u=M(this._isDirected,e,t,s);return e=u.v,t=u.w,Object.freeze(u),this._edgeObjs[h]=u,y(this._preds[t],e),y(this._sucs[e],t),this._in[t][h]=u,this._out[e][h]=u,this._edgeCount++,this}edge(e,t,s){var i=arguments.length===1?m(this._isDirected,arguments[0]):c(this._isDirected,e,t,s);return this._edgeLabels[i]}hasEdge(e,t,s){var i=arguments.length===1?m(this._isDirected,arguments[0]):c(this._isDirected,e,t,s);return Object.prototype.hasOwnProperty.call(this._edgeLabels,i)}removeEdge(e,t,s){var i=arguments.length===1?m(this._isDirected,arguments[0]):c(this._isDirected,e,t,s),r=this._edgeObjs[i];return r&&(e=r.v,t=r.w,delete this._edgeLabels[i],delete this._edgeObjs[i],C(this._preds[t],e),C(this._sucs[e],t),delete this._in[t][i],delete this._out[e][i],this._edgeCount--),this}inEdges(e,t){var s=this._in[e];if(s){var i=p(s);return t?g(i,function(r){return r.v===t}):i}}outEdges(e,t){var s=this._out[e];if(s){var i=p(s);return t?g(i,function(r){return r.w===t}):i}}nodeEdges(e,t){var s=this.inEdges(e,t);if(s)return s.concat(this.outEdges(e,t))}}L.prototype._nodeCount=0;L.prototype._edgeCount=0;function y(o,e){o[e]?o[e]++:o[e]=1}function C(o,e){--o[e]||delete o[e]}function c(o,e,t,s){var i=""+e,r=""+t;if(!o&&i>r){var n=i;i=r,r=n}return i+O+r+O+(l(s)?F:s)}function M(o,e,t,s){var i=""+e,r=""+t;if(!o&&i>r){var n=i;i=r,r=n}var h={v:i,w:r};return s&&(h.name=s),h}function m(o,e){return c(o,e.v,e.w,e.name)}export{L as G};