@kabmo-labs/kabmo 0.38.0 → 0.38.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/index.html +1 -1
- package/dist/client/index.js +421 -420
- package/dist/client/static/js/{CsvGrid-90zfbn7f.js → CsvGrid-4dpsfdrf.js} +1 -1
- package/dist/client/static/js/{DocxView-vwq2rf16.js → DocxView-crdgc0jd.js} +1 -1
- package/dist/client/static/js/{DrawioView-bvx7eqcz.js → DrawioView-1ts9y0yk.js} +1 -1
- package/dist/client/static/js/{ImageView-q6xfmbrq.js → ImageView-w2hyp129.js} +1 -1
- package/dist/client/static/js/{LayoutWrapper-qatdaw3n.js → LayoutWrapper-pdvfkncm.js} +1 -1
- package/dist/client/static/js/{Modal-6jx1fvfb.js → Modal-2sx1tgqr.js} +1 -1
- package/dist/client/static/js/{PdfView-tkv2d2zs.js → PdfView-72c123a9.js} +1 -1
- package/dist/client/static/js/{SessionsView-rbnecykz.js → SessionsView-a8921ysr.js} +1 -1
- package/dist/client/static/js/{SheetView-t08g8kdr.js → SheetView-8xh69wgk.js} +1 -1
- package/dist/client/static/js/{SvgPreview-9vh6mdcp.js → SvgPreview-z3fm87h6.js} +1 -1
- package/dist/client/static/js/{abnfDiagram-O67JEVCF-bxcn33e1.js → abnfDiagram-O67JEVCF-25r2p3vh.js} +1 -1
- package/dist/client/static/js/{architectureDiagram-NJMV4G6O-40ggw6e8.js → architectureDiagram-NJMV4G6O-z3n19xwk.js} +1 -1
- package/dist/client/static/js/{blockDiagram-BEXU5L5S-k41cvjrd.js → blockDiagram-BEXU5L5S-vzamgz9s.js} +1 -1
- package/dist/client/static/js/{c4Diagram-YGBWAQC7-rdcmn6ac.js → c4Diagram-YGBWAQC7-jejafgn0.js} +1 -1
- package/dist/client/static/js/{classDiagram-v2-NBCMYWYE-txbmbkxv.js → classDiagram-v2-NBCMYWYE-qfa6mj0q.js} +1 -1
- package/dist/client/static/js/{cose-bilkent-JH36ORCC-bxzh3qj1.js → cose-bilkent-JH36ORCC-9vzdgmk1.js} +1 -1
- package/dist/client/static/js/{cynefinDiagram-VND7K2PF-abx5343b.js → cynefinDiagram-VND7K2PF-a3k3w1t5.js} +1 -1
- package/dist/client/static/js/{dagre-6A5THRUB-baj278kt.js → dagre-6A5THRUB-gf04dvxj.js} +1 -1
- package/dist/client/static/js/{diagram-22UHCM2B-vqvhdc5m.js → diagram-22UHCM2B-a9e0a684.js} +1 -1
- package/dist/client/static/js/{diagram-3UASUU5V-w328rfx0.js → diagram-3UASUU5V-fb73gfjd.js} +1 -1
- package/dist/client/static/js/{diagram-ATOU4E4O-zzcmwnm8.js → diagram-ATOU4E4O-yb9n3t30.js} +1 -1
- package/dist/client/static/js/{diagram-CDSNMT55-8yw39mmj.js → diagram-CDSNMT55-adhbhw28.js} +1 -1
- package/dist/client/static/js/{diagram-MLGK6HIB-zgc386pv.js → diagram-MLGK6HIB-v4yxyb8r.js} +1 -1
- package/dist/client/static/js/{diagram-MPIPVDR6-efmvvscm.js → diagram-MPIPVDR6-94ttsqy2.js} +1 -1
- package/dist/client/static/js/{dockerfile-bp5dre33.js → dockerfile-mrranatf.js} +1 -1
- package/dist/client/static/js/{ebnfDiagram-ZINNZB2B-p66h0dzq.js → ebnfDiagram-ZINNZB2B-jj4f3pyq.js} +1 -1
- package/dist/client/static/js/{elk-276RUBZZ-g0jjxcqd.js → elk-276RUBZZ-mtnkhyte.js} +1 -1
- package/dist/client/static/js/{erDiagram-OPXOYQCR-39gat96z.js → erDiagram-OPXOYQCR-18qdkhm5.js} +1 -1
- package/dist/client/static/js/flowDiagram-KWPJA3E3-zmz4grtx.js +1 -0
- package/dist/client/static/js/{ganttDiagram-FUAMR5RP-nsjv1zt4.js → ganttDiagram-FUAMR5RP-vz28h061.js} +1 -1
- package/dist/client/static/js/{gitGraphDiagram-X574FWY7-r4vnkcy3.js → gitGraphDiagram-X574FWY7-cgq3r4rz.js} +1 -1
- package/dist/client/static/js/{index-73jwm4d5.js → index-12p63902.js} +1 -1
- package/dist/client/static/js/{index-h8h5c2r8.js → index-1c7294vk.js} +1 -1
- package/dist/client/static/js/{index-9wtg6ywn.js → index-2xb54jt3.js} +1 -1
- package/dist/client/static/js/{index-da10qpns.js → index-4hsxaa87.js} +1 -1
- package/dist/client/static/js/{index-5y0bvq4q.js → index-5v9v41ap.js} +2 -2
- package/dist/client/static/js/{index-rgp69pa8.js → index-6d5qj0kb.js} +1 -1
- package/dist/client/static/js/{index-11bdd235.js → index-6j9h1fa7.js} +1 -1
- package/dist/client/static/js/{index-dkseg29t.js → index-6k2x281j.js} +2 -2
- package/dist/client/static/js/{index-tzm90bsz.js → index-6rt7gs1j.js} +1 -1
- package/dist/client/static/js/{index-5ebhb94w.js → index-737w2mqf.js} +1 -1
- package/dist/client/static/js/{index-c15r8jd3.js → index-95t1hwr8.js} +1 -1
- package/dist/client/static/js/{index-vnn7m9yp.js → index-a5ptb956.js} +1 -1
- package/dist/client/static/js/{index-2drjp9ks.js → index-aa6qdgmv.js} +1 -1
- package/dist/client/static/js/{index-gwhx66f4.js → index-ajtd1q1h.js} +1 -1
- package/dist/client/static/js/{index-rf0p3v7q.js → index-arvqarv3.js} +1 -1
- package/dist/client/static/js/{index-ra38ggke.js → index-bgcp21ed.js} +1 -1
- package/dist/client/static/js/{index-rqrcw8nj.js → index-d146s9g3.js} +1 -1
- package/dist/client/static/js/{index-st202rjv.js → index-d8kjsgpt.js} +7 -7
- package/dist/client/static/js/{index-z0cpp5bc.js → index-dr7nhha9.js} +1 -1
- package/dist/client/static/js/{index-6ax2z70w.js → index-enxfdvdq.js} +1 -1
- package/dist/client/static/js/{index-dfgdn3fj.js → index-fqhpxzyb.js} +1 -1
- package/dist/client/static/js/{index-24yyj78e.js → index-gbdvr4rt.js} +1 -1
- package/dist/client/static/js/{index-50z4ek83.js → index-hp8kfk9z.js} +1 -1
- package/dist/client/static/js/{index-ha75kff0.js → index-kf9t3mzv.js} +1 -1
- package/dist/client/static/js/{index-hzx81cjq.js → index-naz3px72.js} +1 -1
- package/dist/client/static/js/{index-1qszrvzk.js → index-njqpkcvw.js} +1 -1
- package/dist/client/static/js/{index-e1pr3k50.js → index-qxb8k6py.js} +1 -1
- package/dist/client/static/js/{index-a74k07z2.js → index-rtd9frp1.js} +1 -1
- package/dist/client/static/js/{index-2ndq1ngv.js → index-s16h2nmv.js} +1 -1
- package/dist/client/static/js/{index-k9xsvab3.js → index-s910y31q.js} +1 -1
- package/dist/client/static/js/{index-tv61v3t3.js → index-we2ezmn7.js} +1 -1
- package/dist/client/static/js/{index-0kxqzafy.js → index-y5y7smet.js} +1 -1
- package/dist/client/static/js/{index-tfsaj5d1.js → index-z72wf7q4.js} +1 -1
- package/dist/client/static/js/{index-vxd4gykh.js → index-zdbvm01f.js} +1 -1
- package/dist/client/static/js/{infoDiagram-VRGFBTTK-e39pvm4j.js → infoDiagram-VRGFBTTK-jjwckbr9.js} +1 -1
- package/dist/client/static/js/{ishikawaDiagram-OU5B5YK6-rqhszgvp.js → ishikawaDiagram-OU5B5YK6-qzk5gejf.js} +1 -1
- package/dist/client/static/js/{journeyDiagram-ZHPQQLJL-wgy5qrsv.js → journeyDiagram-ZHPQQLJL-maccpg3q.js} +1 -1
- package/dist/client/static/js/{kanban-definition-PNTS6WVX-b8bxn0h1.js → kanban-definition-PNTS6WVX-xv2azgws.js} +1 -1
- package/dist/client/static/js/{mermaid.core-vb5ehtre.js → mermaid.core-e4ys760s.js} +2 -2
- package/dist/client/static/js/{mindmap-definition-NLK3R4M7-t4p38s38.js → mindmap-definition-NLK3R4M7-b779wz81.js} +1 -1
- package/dist/client/static/js/one-dark-pro-kckm8epj.js +1 -0
- package/dist/client/static/js/one-light-0v7rg9a7.js +1 -0
- package/dist/client/static/js/{pegDiagram-GJSIUBJH-3gp4madx.js → pegDiagram-GJSIUBJH-8sgdmhnw.js} +1 -1
- package/dist/client/static/js/{pieDiagram-5QR66LMP-0cbm773h.js → pieDiagram-5QR66LMP-nz6n95d6.js} +1 -1
- package/dist/client/static/js/{quadrantDiagram-O4NWA36T-jwg7fc9f.js → quadrantDiagram-O4NWA36T-47dpygk5.js} +1 -1
- package/dist/client/static/js/{railroadDiagram-XR7U4H2S-38xh691s.js → railroadDiagram-XR7U4H2S-wv0bvwve.js} +1 -1
- package/dist/client/static/js/{requirementDiagram-PLB6GJNP-gpddawxh.js → requirementDiagram-PLB6GJNP-w3r8r837.js} +1 -1
- package/dist/client/static/js/{rust-bx3ecv4n.js → rust-42c4h7e4.js} +1 -1
- package/dist/client/static/js/{sankeyDiagram-IPEJSGJF-s6t6bbhk.js → sankeyDiagram-IPEJSGJF-t55rjgad.js} +1 -1
- package/dist/client/static/js/{sequenceDiagram-PO4LG4MO-wkq51pmb.js → sequenceDiagram-PO4LG4MO-yfwjwy37.js} +1 -1
- package/dist/client/static/js/{sizeCapture-INFHLROL-xtwexf8k.js → sizeCapture-INFHLROL-nq6hy7ce.js} +1 -1
- package/dist/client/static/js/{stateDiagram-v2-GCMORJYK-jnwsqa7y.js → stateDiagram-v2-GCMORJYK-4xy0atqh.js} +1 -1
- package/dist/client/static/js/{swimlanes-2SLR337P-mnkkqcbx.js → swimlanes-2SLR337P-np47cy1q.js} +1 -1
- package/dist/client/static/js/{swimlanesDiagram-TC7HE7FX-6xmrz03n.js → swimlanesDiagram-TC7HE7FX-56rk9kxv.js} +1 -1
- package/dist/client/static/js/{timeline-definition-EJHVYXUP-rxq6heqh.js → timeline-definition-EJHVYXUP-rb0gnm35.js} +1 -1
- package/dist/client/static/js/{usecaseDiagram-POWQR4AR-dz94f57t.js → usecaseDiagram-POWQR4AR-gatkznan.js} +1 -1
- package/dist/client/static/js/{vennDiagram-UO4OBE2U-5mmvkhsq.js → vennDiagram-UO4OBE2U-r3f5xjjq.js} +1 -1
- package/dist/client/static/js/{wardleyDiagram-VNRHLVJA-dctdntpa.js → wardleyDiagram-VNRHLVJA-tpass65t.js} +1 -1
- package/dist/client/static/js/{xychartDiagram-PMCCYNJV-njyfrqkv.js → xychartDiagram-PMCCYNJV-8xkh67cw.js} +1 -1
- package/package.json +1 -1
- package/src/server/lib/changes/capture-bash.server.ts +69 -4
- package/src/server/lib/changes/capture-fs.server.ts +2 -10
- package/src/server/lib/changes/capture-races.test.ts +107 -0
- package/src/server/lib/changes/capture-scan.test.ts +157 -0
- package/src/server/lib/changes/capture-test-util.ts +1 -1
- package/src/server/lib/changes/capture-types.ts +3 -1
- package/src/server/lib/changes/capture-write.server.ts +50 -0
- package/src/server/lib/changes/capture.server.ts +33 -18
- package/src/server/lib/changes/capture.test.ts +48 -0
- package/src/server/lib/changes/classify-command.test.ts +20 -0
- package/src/server/lib/changes/classify-command.ts +46 -23
- package/src/server/lib/changes/classify-git.ts +12 -11
- package/src/server/lib/changes/classify-tokenize.ts +9 -1
- package/src/server/lib/changes/journal.server.ts +3 -1
- package/src/server/lib/changes/omp-fallback.server.ts +48 -0
- package/src/server/lib/changes/omp-fallback.test.ts +75 -0
- package/src/server/lib/changes/reader.server.ts +28 -0
- package/src/server/lib/changes/scan.server.ts +56 -1
- package/src/server/lib/changes/sessions.server.ts +65 -0
- package/src/server/lib/changes/sessions.test.ts +52 -0
- package/dist/client/static/js/flowDiagram-KWPJA3E3-f6jpcqyq.js +0 -1
- package/dist/client/static/js/one-dark-pro-dhybn1ff.js +0 -1
- package/dist/client/static/js/one-light-bqg77ay0.js +0 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{t,oa,sa,Cf,Ot,dp}from"./index-5y0bvq4q.js";import{gl}from"./index-ha75kff0.js";import"./index-r83kr4s5.js";import{Oi,bd}from"./index-1qszrvzk.js";function X(){throw Error("elkjs is not bundled in this build; use the default dagre layout")}class pt{}var yt=new Proxy(pt,{construct:X,apply:X,get:X});var kt=t((e,r,{parentById:n})=>{let o=new Set,i=e;if(e===r)return n[e]||"root";while(i){if(o.add(i),i===r)return i;i=n[i]}i=r;while(i){if(o.has(i))return i;i=n[i]}return"root"},"findCommonAncestor"),pe=6;function bt(e,{measure:r}){let n=e.config?.elk?.lineHops;if(n===!1)return;let o=e.edges.filter((i)=>Array.isArray(i.points)&&i.points.length>=2).map((i)=>({id:i.id,points:i.points,curve:i.curve,arrowTypeStart:i.arrowTypeStart,arrowTypeEnd:i.arrowTypeEnd}));gl(r.groups.edgePaths,o,{enabled:!0,jumpRadius:pe,jumpStyle:n==="gap"?"gap":"arc"})}t(bt,"applyElkLineJumps");var ye={},Ee={},xe={},me={},R=1,ke=10,v=t((e,r,n=0.5)=>{let o=e.width/2,i=e.height/2,s=e.x-o,a=e.x+o,c=e.y-i,l=e.y+i,u=Math.abs(r.x-s)<=n&&r.y>=c-n&&r.y<=l+n,h=Math.abs(r.x-a)<=n&&r.y>=c-n&&r.y<=l+n,d=Math.abs(r.y-c)<=n&&r.x>=s-n&&r.x<=a+n,f=Math.abs(r.y-l)<=n&&r.x>=s-n&&r.x<=a+n;return u||h||d||f},"onBorder"),be=t((e,r,n)=>{let{x:o,y:i}=e,s=Math.abs(o-n.x),a=e.width/2,c=n.x<r.x?a-s:a+s,l=e.height/2,u=Math.abs(r.y-n.y),h=Math.abs(r.x-n.x);if(Math.abs(i-r.y)*a>Math.abs(o-r.x)*l){let d=n.y<r.y?r.y-l-i:i-l-r.y;c=h*d/u;let f={x:n.x<r.x?n.x+c:n.x-h+c,y:n.y<r.y?n.y+u-d:n.y-u+d};if(h===0)f.x=r.x;if(u===0)f.y=r.y;return f}else{if(n.x<r.x)c=r.x-a-o;else c=o-a-r.x;let d=u*c/h,f=n.x<r.x?n.x+h-c:n.x-h+c,g=n.y<r.y?n.y+d:n.y-d;if(h===0)f=r.x;if(u===0)g=r.y;return{x:f,y:g}}},"intersection"),T=t((e,r)=>{let{x:n,y:o}=e,i=Math.abs(r.x-n),s=Math.abs(r.y-o),a=e.width/2,c=e.height/2;return i>=a||s>=c},"outsideNode"),we=t((e,r,n=ke)=>{let o=Math.abs(r.x-e.x),i=Math.abs(r.y-e.y),s=e.width/2,a=e.height/2;if(Math.abs(o-s)<R||Math.abs(i-a)<R){let c=r.x-e.x,l=r.y-e.y,u=Math.sqrt(c*c+l*l);if(u>0)return{x:e.x+c/u*(u+n),y:e.y+l/u*(u+n)}}return r},"ensureTrulyOutside"),Ie=t((e,r,n)=>{let o=Math.abs(r.x-e.x)<R,i=Math.abs(r.y-e.y)<R;return{x:o?r.x:r.x<e.x?e.x-e.width/4:e.x+e.width/4,y:i?r.y:n.y}},"makeInsidePoint"),Oe=t((e,r,n)=>{if(!e?.intersect)return null;let o=e.intersect(n);if(!o)return null;if(n.x<r.x&&o.x>r.x||n.x>r.x&&o.x<r.x)return null;if(Math.hypot(n.x-o.x,n.y-o.y)<=R)return null;return o},"tryNodeIntersect"),Se=t((e,r,n)=>{let o=Ie(e,r,n);return be(e,r,o)},"fallbackIntersection"),Pe=20,Et=0.000001,W=t((e,r,n)=>{let o=e.intersect?.(n);if(!o)return!1;let i=Math.hypot(n.x-r.x,n.y-r.y),s=Math.hypot(o.x-r.x,o.y-r.y);return i<=s+0.000000001},"insideOutline"),Me=t((e,r,n,o)=>{if(!e?.intersect)return null;let i=o.x-n.x,s=o.y-n.y;if(i===0&&s===0)return null;if(Math.abs(i)>Et&&Math.abs(s)>Et)return null;let a={x:r.x,y:r.y},c=Math.abs(i)>Math.abs(s),l=t((d)=>c?{x:d,y:n.y}:{x:n.x,y:d},"along"),u=c?a.x:a.y,h=c?n.x:n.y;if(!W(e,a,l(u)))return null;if(W(e,a,l(h)))return{...n};for(let d=0;d<Pe;d++){let f=(u+h)/2;if(W(e,a,l(f)))u=f;else h=f}return l(u)},"outlineAttachPoint"),C=t((e,r,n,o)=>{let i=we(r,n);return Oe(e,r,i)??Se(r,i,o)},"computeNodeIntersection"),L=t((e,r,n,o=0.1)=>{if(!n||e.length===0)return;if(r==="start")if(e.length>0&&Math.abs(e[0].x-n.x)<o&&Math.abs(e[0].y-n.y)<o)e.shift();else e[0]=n;else{let i=e.length-1;if(e.length>0&&Math.abs(e[i].x-n.x)<o&&Math.abs(e[i].y-n.y)<o)e.pop();else e[i]=n}},"replaceEndpoint"),wt=8,It=t((e)=>{if(typeof e!=="string")return 0;return Math.max(Ot[e]??0,dp[e]??0)},"markerPathOffset"),xt={arrow_open:["none","none"],arrow_cross:["none","arrow_cross"],double_arrow_cross:["arrow_cross","arrow_cross"],arrow_point:["none","arrow_point"],double_arrow_point:["arrow_point","arrow_point"],arrow_circle:["none","arrow_circle"],double_arrow_circle:["arrow_circle","arrow_circle"]},N=12,St=`[top=${N},left=${N},bottom=${N},right=${N}]`,O=24,Pt=24,Mt=50,P=15,M=10,nt={"spacing.baseValue":15,"spacing.nodeNode":15,"elk.aspectRatio":"1.6","elk.expandNodes":"true","elk.rectpacking.trybox":"true","elk.rectpacking.packing.compaction.rowHeightReevaluation":"true","elk.rectpacking.packing.compaction.iterations":10,"elk.rectpacking.whiteSpaceElimination.strategy":"EQUAL_BETWEEN_STRUCTURES","elk.rectpacking.widthApproximation.strategy":"SCANLINE"},Ne=["nodeSize.constraints","nodeSize.minimum","elk.algorithm","elk.aspectRatio","elk.contentAlignment","elk.expandNodes","elk.padding",...Object.keys(nt)];function Nt(e){for(let r of Ne)delete e[r];e["spacing.baseValue"]=Pt,e["spacing.nodeNode"]=Mt}t(Nt,"clearContainerAlgorithmOptions");var mt=new Set(["elk.layered","elk.box","elk.rectpacking","elk.stress","elk.force","elk.mrtree","elk.radial","elk.sporeOverlap"]);function it(e,r){if(typeof e!=="string")return;if(!mt.has(e)){r?.warn(`Unknown container layout algorithm "${e}". Supported values: ${[...mt].join(", ")}. Falling back to the diagram's layout algorithm.`);return}return e}t(it,"resolveContainerAlgorithm");function ot(e){switch(e){case"LR":return"RIGHT";case"RL":return"LEFT";case"TB":case"TD":return"DOWN";case"BT":return"UP";default:return"DOWN"}}t(ot,"dir2ElkDirection");function F(e){if(!Cf(e.shape))return 0;return(e.labelData?.width??e.labels?.[0]?.width??0)+(e.padding??0)}t(F,"groupTitleWidth");function st(e){if(!Cf(e.shape))return{};return{"nodeSize.constraints":"[MINIMUM_SIZE, NODE_LABELS]","nodeSize.minimum":`(${F(e)}, 0)`}}t(st,"groupTitleSizeOptions");function At(e,r,n,o){let i=e.labelData?.width??0,s=e.padding??0,a=i+2*s,c=e.labelData?.height??0,l=ct(r?.preset),u={...st(e),"spacing.baseValue":Pt,"elk.layered.spacing.edgeNodeBetweenLayers":30,"elk.spacing.edgeEdge":20,"spacing.nodeNode":Mt,"elk.padding":`[top=${O},left=${O},bottom=${O},right=${O}]`,"nodeLabels.placement":"[H_CENTER V_TOP, INSIDE]","elk.layered.mergeEdges":r?.mergeEdges,"elk.layered.nodePlacement.bk.fixedAlignment":r?.nodePlacementAlignment??l.alignment,"elk.layered.nodePlacement.strategy":r?.nodePlacementStrategy??l.containerPlacement,"elk.layered.cycleBreaking.strategy":r?.cycleBreakingStrategy??l.cycleBreaking,"elk.layered.nodePlacement.networkSimplex.nodeFlexibility":"PORT_POSITION","elk.spacing.portsSurrounding":St},h=it(e.metadata?.algorithm,o);if(h){let d=c+P;if(u["nodeSize.constraints"]="[MINIMUM_SIZE, NODE_LABELS]",u["nodeSize.minimum"]=`(${a}, ${d+P})`,u["elk.algorithm"]=h,u["elk.hierarchyHandling"]="SEPARATE_CHILDREN",u["elk.aspectRatio"]="2.0",u["elk.contentAlignment"]="H_CENTER V_TOP",u["elk.expandNodes"]="true",u["elk.padding"]=`[top=${d},left=${P},bottom=${P},right=${P}]`,h==="elk.rectpacking"){let f=c+M;Object.assign(u,nt,{"elk.padding":`[top=${f},left=${M},bottom=${M},right=${M}]`,"nodeSize.minimum":`(${a}, ${f+M})`})}}else if(e.dir)u["elk.algorithm"]=n,u["elk.direction"]=ot(e.dir),u["elk.hierarchyHandling"]="SEPARATE_CHILDREN";return Object.assign(u,me),u}t(At,"buildSubgraphLayoutOptions");function _t(e,r){let n=new Set,o=new Map;for(let{id:i,parentId:s}of e){let a=o.get(s);if(a)a.push(i);else o.set(s,[i])}for(let i of o.values()){let s=new Set(i),a=new Map(i.map((p)=>[p,0])),c=new Map(i.map((p)=>[p,[]])),l=[];for(let p of r){let y=p.source==null?void 0:String(p.source),E=p.target==null?void 0:String(p.target);if(!y||!E||y===E)continue;if(!s.has(y)||!s.has(E))continue;a.set(E,(a.get(E)??0)+1),c.get(y).push(E),c.get(E).push(y),l.push([y,E])}let u=new Map,h=0;for(let p of i){if(u.has(p))continue;let y=[p];u.set(p,h);while(y.length>0){let E=y.pop();for(let b of c.get(E))if(!u.has(b))u.set(b,h),y.push(b)}h++}let d=Array(h).fill(!1);for(let p of i)if((a.get(p)??0)===0)d[u.get(p)]=!0;if(!d.includes(!1))continue;let f=new Map(i.map((p)=>[p,[]])),g=new Map(i.map((p)=>[p,0])),m=t((p,y)=>{let E=new Set([p]),b=[p];while(b.length>0){let w=b.pop();if(w===y)return!0;for(let x of f.get(w))if(!E.has(x))E.add(x),b.push(x)}return!1},"reaches");for(let[p,y]of l){if(m(y,p))continue;f.get(p).push(y),g.set(y,(g.get(y)??0)+1)}let k=Array(h).fill(!1);for(let p of i){let y=u.get(p);if(!d[y]&&!k[y]&&g.get(p)===0)n.add(p),k[y]=!0}}return n}t(_t,"findCyclicEntryNodes");function vt(e,r){if(!e.config.elk?.keepEntryNodeOnTop)return;let n=_t(e.nodes,e.edges.map((o)=>({source:o.start,target:o.end})));for(let o of n){let i=r[o];if(i)i.layoutOptions={...i.layoutOptions,"elk.layered.layering.layerConstraint":"FIRST"}}}t(vt,"applyCyclicEntryConstraint");function Rt(e,r){let n=at(r);return Ct(n),se(e,n),{algorithm:n.algorithm}}t(Rt,"prepareLayoutForElk");async function Tt(e,r){let n=at(r),o=Dt(e,n),i=new yt;n.log.info("Drawing flowchart using v4 renderer",i);let s=await Kt(i,o.elkGraph,n.log);return jt(e,s,o,n.log),Lt(e.nodes),s}t(Tt,"runElkLayoutCore");function Dt(e,r){let n={},o=Gt(e,r.algorithm,r.rootLayoutOptions),i=e.direction??"DOWN";o.layoutOptions["elk.direction"]=ot(i);let s=Bt(e.nodes,r.log);return lt(e.nodes,o,n,r),Xt(e,o,n,r),$t(e,n,s,r),Yt(o,n,s,r.log),vt(e,n),{elkGraph:o,nodeDb:n,parentLookupDb:s}}t(Dt,"buildElkGraphFromLayoutData");var Ve=Oi({afterPaint:bt,prepareLayout:Rt,measureLayout:t((e,r)=>bd(e,r,{unwrapGroupLabels:!0}),"measureLayout"),runLayoutCore:Tt,paintOptions:{skipIntersect:!0}});function Ct(e){oa(e.getConfig())}t(Ct,"syncHostConfig");function Lt(e){let r=new Map(e.map((n)=>[n.id,n]));e.sort((n,o)=>{if(n.isGroup!==o.isGroup)return n.isGroup?-1:1;if(n.isGroup&&o.isGroup)return K(n,r)-K(o,r);return 0})}t(Lt,"orderNodesForElkPaint");function K(e,r){let n=0,o=new Set,i=e.parentId;while(i&&!o.has(i)){o.add(i);let s=r.get(i);if(!s?.isGroup)break;n++,i=s.parentId}return n}t(K,"getGroupDepth");function at(e){let r=e.helpers;if(!r)throw Error("ELK layout requires Mermaid internal helpers");return{algorithm:e.preparedLayout?.algorithm??e.options?.algorithm,rootLayoutOptions:e.options?.rootLayoutOptions,common:r.common,getConfig:r.getConfig,interpolateToCurve:r.interpolateToCurve,log:r.log}}t(at,"getElkLayoutContext");var Y={default:{layering:"NETWORK_SIMPLEX",placement:"BRANDES_KOEPF",containerPlacement:"BRANDES_KOEPF",alignment:"BALANCED",cycleBreaking:"DEPTH_FIRST"},legacy:{layering:"NETWORK_SIMPLEX",placement:"BRANDES_KOEPF",containerPlacement:"BRANDES_KOEPF",alignment:"NONE",cycleBreaking:"GREEDY"},modelOrder:{layering:"NETWORK_SIMPLEX",placement:"NETWORK_SIMPLEX",containerPlacement:"BRANDES_KOEPF",alignment:"NONE",cycleBreaking:"GREEDY_MODEL_ORDER"},depthFirst:{layering:"NETWORK_SIMPLEX",placement:"NETWORK_SIMPLEX",containerPlacement:"BRANDES_KOEPF",alignment:"NONE",cycleBreaking:"DEPTH_FIRST"}};function ct(e){return e!==void 0&&Object.hasOwn(Y,e)?Y[e]:Y.default}t(ct,"resolveElkPreset");function Gt(e,r,n){let o=ct(e.config.elk?.preset),i={id:"root",layoutOptions:{"elk.hierarchyHandling":"INCLUDE_CHILDREN","elk.algorithm":r,"elk.layered.nodePlacement.strategy":e.config.elk?.nodePlacementStrategy??o.placement,"elk.layered.nodePlacement.bk.fixedAlignment":e.config.elk?.nodePlacementAlignment??o.alignment,"elk.layered.mergeEdges":e.config.elk?.mergeEdges,"elk.direction":"DOWN","spacing.baseValue":40,"elk.layered.crossingMinimization.forceNodeModelOrder":e.config.elk?.forceNodeModelOrder,"elk.layered.considerModelOrder.strategy":e.config.elk?.considerModelOrder,"elk.layered.unnecessaryBendpoints":!0,"elk.layered.cycleBreaking.strategy":e.config.elk?.cycleBreakingStrategy??o.cycleBreaking,"elk.layered.layering.strategy":e.config.elk?.layeringStrategy??o.layering,"elk.layered.layering.coffmanGraham.layerBound":e.config.elk?.layeringLayerBound,"elk.layered.wrapping.multiEdge.improveCuts":!0,"elk.layered.wrapping.multiEdge.improveWrappedEdges":!0,"elk.layered.edgeRouting.selfLoopDistribution":"EQUALLY","elk.layered.mergeHierarchyEdges":!0,"elk.spacing.portsSurrounding":St},children:[],edges:[]};if(r==="elk.rectpacking")Object.assign(i.layoutOptions,nt,{"elk.contentAlignment":"H_CENTER V_TOP","elk.padding":"[top=15,left=15,bottom=15,right=15]"});if(n)Object.assign(i.layoutOptions,n);return Object.assign(i.layoutOptions,ye,Ee,xe),i}t(Gt,"createRootElkGraph");function Bt(e,r){let n={parentById:{},childrenById:{}},o=e.filter((i)=>i.isGroup);return r.info("Subgraphs - ",o),o.forEach((i)=>{e.filter((a)=>a.parentId===i.id).forEach((a)=>{n.parentById[a.id]=i.id,n.childrenById[i.id]??=[],n.childrenById[i.id].push(a.id)})}),n}t(Bt,"addSubGraphs");function lt(e,r,n,o,i){let s=e.filter((a)=>a?.parentId===i);return o.log.info("addVertices APA12",s,i),s.forEach((a)=>{Ft(r,e,a,n,o)}),r}t(lt,"addVertices");function Ft(e,r,n,o,i){let s=Ut(n);if(e.children.push(s),o[n.id]=s,n.isGroup)s.children=[],lt(r,s,o,i,n.id),s.labelData=Ht(n,i.getConfig())}t(Ft,"addVertex");function Ut(e){let r={...e};if(delete r.domId,e.isGroup)r.children=[];else if(r.width=e.width??0,r.height=e.height??0,e.spreadPorts)r.layoutOptions={...r.layoutOptions,"elk.portAlignment.default":"CENTER"};return r}t(Ut,"createElkNode");function Ht(e,r){let n=e.labelData;if(n)return n;if(e.labelBBox)return{width:e.labelBBox.width,height:Math.max(0,e.labelBBox.height-2),wrappingWidth:e.wrappingWidth??r.flowchart?.wrappingWidth};return{width:0,height:0,wrappingWidth:e.wrappingWidth??r.flowchart?.wrappingWidth}}t(Ht,"getMeasuredLabelData");function Xt(e,r,n,o){o.log.info("abc78 DAGA edges = ",e);let i={};return e.edges.forEach((s)=>{let a=s.id;i[a]=(i[a]??-1)+1;let c=a;s.id=c,o.log.info("abc78 new link id to be used is",a,c,i[a]);let{source:l,target:u,sourceId:h,targetId:d}=Wt(s,n);o.log.debug("abc78 source and target",l,u),r.edges.push({...s,sources:[l],targets:[u],sourceId:h,targetId:d,labels:[{width:s.width??0,height:s.height??0,orgWidth:s.width??0,orgHeight:s.height??0,text:s.label??"",layoutOptions:{"edgeLabels.inline":"true","edgeLabels.placement":"CENTER"}}]})}),r}t(Xt,"addEdgesToElkGraph");function Wt(e,r){let{start:n,end:o}=e,i=n,s=o,a=n?r[n]:void 0,c=o?r[o]:void 0;if(!a||!c)return{source:i,target:s};return{source:i,target:s,sourceId:n,targetId:o}}t(Wt,"getEdgeStartEndPoint");function $t(e,r,n,o){e.nodes.forEach((i)=>{let s=r[i.id];if(!s||n.childrenById[s.id]===void 0)return;s.labels=[{text:s.label,width:s?.labelData?.width??50,height:s?.labelData?.height??50}],o.log.debug("UIO node label",s?.labelData?.width,s.padding),s.layoutOptions=At(s,e.config.elk,o.algorithm,o.log),delete s.x,delete s.y,delete s.width,delete s.height})}t($t,"configureSubgraphNodes");function Yt(e,r,n,o){o.debug("APA01 processing edges, count:",e.edges.length),e.edges.forEach((i,s)=>{o.debug("APA01 processing edge",s,":",i);let a=i.sources[0],c=i.targets[0];if(o.debug("APA01 source:",a,"target:",c),o.debug("APA01 nodeDb[source]:",r[a]),o.debug("APA01 nodeDb[target]:",r[c]),r[a]&&r[c]&&r[a].parentId!==r[c].parentId){let l=kt(a,c,n);G(r,a,l,o),G(r,c,l,o)}})}t(Yt,"configureCrossHierarchyEdges");function G(e,r,n,o){let i=e[r];if(!i)return;if(i.layoutOptions??={},i.layoutOptions["elk.hierarchyHandling"]==="SEPARATE_CHILDREN"&&it(i.metadata?.algorithm))o.debug("Dropping explicit algorithm for node",i.id,"due to cross-boundary edges"),Nt(i.layoutOptions),Object.assign(i.layoutOptions,st(i));if(i.layoutOptions["elk.hierarchyHandling"]="INCLUDE_CHILDREN",i.id!==n&&i.parentId)G(e,i.parentId,n,o)}t(G,"setIncludeChildrenPolicy");async function Kt(e,r,n){let o=globalThis.__mermaidProfiler;try{o?.begin("layoutCore");let i;try{i=await e.layout(r)}finally{o?.end()}return n.debug("APA01 after - success"),n.debug("APA01 layout result:",i),i}catch(i){throw n.error("ELK layout error:",i),i}}t(Kt,"runElkLayout");function jt(e,r,n,o){let i=new Map(e.nodes.map((s)=>[s.id,s]));ht(r.children??[],n,i,0,0,0,o),ft(r.children??[],n,i,r),Qt(e,r,n,o)}t(jt,"applyElkLayoutResult");function ut(e,r=new Set){for(let n of e.children??[])r.add(n.id),ut(n,r);return r}t(ut,"collectDescendantIds");function Vt(e,r,n,o){let i=[];for(let s of e.edges??[]){let a=s.sources?.[0]??s.start,c=s.targets?.[0]??s.end,l=r.has(a)&&r.has(c),u=a===o,h=c===o;if(!l&&!u&&!h)continue;let d=B(a,c,n.parentLookupDb,n.nodeDb);for(let f of s.sections??[]){let g=l?[f.startPoint,...f.bendPoints??[],f.endPoint]:[u?f.startPoint:null,h?f.endPoint:null];for(let m of g)if(m)i.push({x:m.x+d.x,y:m.y+d.y})}}return i}t(Vt,"internalEdgePoints");function ft(e,r,n,o={}){for(let i of e){if(!i?.isGroup)continue;let s=i.children??[];ft(s,r,n,o);let a=r.nodeDb[i.id],c=s.map((x)=>r.nodeDb[x.id]).filter((x)=>x?.offset&&x.width&&x.height);if(!a?.offset||c.length===0)continue;let l=Vt(o,ut(i),r,i.id),u=[...c.map((x)=>x.offset.posX),...c.map((x)=>x.offset.posX+x.width),...l.map((x)=>x.x)],h=[...c.map((x)=>x.offset.posY),...c.map((x)=>x.offset.posY+x.height),...l.map((x)=>x.y)],d=a.offset,f=Math.max(d.posX,Math.min(...u)-O),g=Math.min(d.posX+a.width,Math.max(...u)+O),m=Math.min(d.posY+a.height,Math.max(...h)+O),k=d.posY,p=F(i),y=f,E=g-f;if(E<p){y-=(p-E)/2,E=p;let x=d.posX+a.width;y=Math.max(d.posX,Math.min(y,x-E)),E=Math.min(E,a.width)}let b=m-k;if(b<=0||E<=0)continue;a.elkOrigin??={posX:d.posX,posY:d.posY},a.offset.posX=y,a.offset.width=E,a.offset.height=b,a.width=E,a.height=b,a.x=y+E/2,a.y=k+b/2;let w=n.get(i.id);if(w)w.x=a.x,w.y=a.y,w.width=E,w.height=b}}t(ft,"evenGroupFrames");function ht(e,r,n,o,i,s,a){e.forEach((c)=>{if(!c)return;let l=r.nodeDb[c.id]??c,u=Math.max(c.width,c.labels?c.labels[0]?.width||0:0),h={posX:c.x+o,posY:c.y+i,x:o,y:i,depth:s,width:u,height:c.height};l.offset=h,l.x=h.posX+c.width/2,l.y=h.posY+c.height/2,l.width=c.width,l.height=c.height;let d=n.get(c.id);if(d){d.x=l.x,d.y=l.y,d.width=c.isGroup?Math.max(c.width,c.labelData?.width??0):c.width,d.height=c.height;let f=d;f.labelData=c.labelData,f.labels=c.labels}if(c.isGroup)a.debug("Id abc88 subgraph = ",c.id,c.x,c.y,c.labelData),ht(c.children??[],r,n,h.posX,h.posY,s+1,a);else a.info("Id NODE = ",c.id,c.x,c.y,o,i,`translate(${l.x}, ${l.y})`)})}t(ht,"applyElkNodePositions");var Ae=16,_e=30,A=0.01;function _(e,r){let n=Math.abs(r.x-e.x),o=Math.abs(r.y-e.y);if(n>A&&o<=A)return"h";if(o>A&&n<=A)return"v";return}t(_,"axisOf");function zt(e){let r=j(e)??e,n=[...r].reverse(),o=j(n);if(o)r=o.reverse();return r}t(zt,"straightenTerminalJogs");function j(e){if(e.length<5)return null;let[r,n,o,i]=e,s=_(r,n);if(!s||_(o,i)!==s||_(n,o)!==(s==="h"?"v":"h"))return null;if(Math.hypot(n.x-r.x,n.y-r.y)>_e)return null;let a=s==="h"?Math.abs(o.y-n.y):Math.abs(o.x-n.x);if(a<A||a>Ae)return null;if(!(s==="h"?Math.sign(n.x-r.x)===Math.sign(i.x-o.x):Math.sign(n.y-r.y)===Math.sign(i.y-o.y)))return null;let l=3;while(l+1<e.length&&_(e[l],e[l+1])===s)l++;if(l===e.length-1)return null;let u=[...e];for(let h=2;h<=l;h++)u[h]=s==="h"?{x:e[h].x,y:r.y}:{x:r.x,y:e[h].y};return u.splice(1,2),u}t(j,"straightenFront");function Jt(e,r,n,o){let i=t((u,h,d)=>(h.x-u.x)*(d.y-u.y)-(h.y-u.y)*(d.x-u.x),"side"),s=i(n,o,e),a=i(n,o,r),c=i(e,r,n),l=i(e,r,o);return(s>0&&a<0||s<0&&a>0)&&(c>0&&l<0||c<0&&l>0)}t(Jt,"segmentsCrossStrict");function V(e,r){let n=0;for(let o=0;o<e.length-1;o++)for(let i=0;i<r.length-1;i++)if(Jt(e[o],e[o+1],r[i],r[i+1]))n++;return n}t(V,"crossingCount");function qt(e){let r=e.map((n)=>n.points??[]);for(let[n,o]of e.entries()){let i=r[n];if(i.length<5)continue;let s=zt(i);if(s===i)continue;let a=0,c=0;for(let[l,u]of r.entries()){if(l===n||u.length<2)continue;a+=V(i,u),c+=V(s,u)}if(c>a)continue;o.points=s,r[n]=s}}t(qt,"straightenEdgeTerminals");function Qt(e,r,n,o){let i=new Map(e.edges.map((l)=>[l.id,l])),s=e.config.elk?.straightenEdges!==!1,a=new Map(e.nodes.map((l)=>[l.id,l])),c=new Set;if(r.edges?.forEach((l)=>{if(!l.sections?.length)return;let u=n.nodeDb[l.sources?.[0]??l.start],h=n.nodeDb[l.targets?.[0]??l.end];if(!u||!h)return;let d=l.start??l.sourceId??l.sources?.[0],f=l.end??l.targetId??l.targets?.[0],g=B(d,f,n.parentLookupDb,n.nodeDb),m=l.sections[0];if(u.shape!=="rect33")z(u,{x:m.startPoint.x+g.x,y:m.startPoint.y+g.y},a,c);if(h.shape!=="rect33")z(h,{x:m.endPoint.x+g.x,y:m.endPoint.y+g.y},a,c)}),r.edges?.forEach((l)=>{let u=i.get(l.id);if(!u)return;let h=l.sources?.[0]??l.start,d=l.targets?.[0]??l.end,f=n.nodeDb[h],g=n.nodeDb[d];if(!f||!g)return;if(!l.sections?.length){let x=t((S)=>({x:(S.offset?.posX??S.x??0)+(S.width??0)/2,y:(S.offset?.posY??S.y??0)+(S.height??0)/2}),"centre"),U=x(f),H=x(g);f.x=U.x,f.y=U.y,g.x=H.x,g.y=H.y;let D=J([U,H],f,g,o);u.points=D,u.curve="linear";let dt=D[0],gt=D[D.length-1];u.x=(dt.x+gt.x)/2,u.y=(dt.y+gt.y)/2,o.debug("APA18 no edge sections, using a straight line",l.id,u.points);return}let m=l.start??l.sourceId??h,k=l.end??l.targetId??d,p=B(m,k,n.parentLookupDb,n.nodeDb);o.debug("APA18 offset",p,m," ==> ",k,"edge:",l,f);let y=l.sections[0],E=Zt(y,p);if(f.x=f.offset.posX+f.width/2,f.y=f.offset.posY+f.height/2,g.x=g.offset.posX+g.width/2,g.y=g.offset.posY+g.height/2,f.shape!=="rect33")E.unshift({x:f.x,y:f.y});if(g.shape!=="rect33")E.push({x:g.x,y:g.y});let b=J(E,f,g,o);u.points=ie(oe(b,I(g),re(u),o),I(f),ne(u),o),u.curve="rounded";let w=l.labels?.[0];if(w)u.x=w.x+p.x+w.width/2,u.y=w.y+p.y+w.height/2}),s)qt(e.edges)}t(Qt,"applyElkEdgeLayout");function z(e,r,n,o){let i=e.width??0,s=e.height??0,a=e.offset.posY,c=a+s,l=0.5,u=Math.abs(r.y-a)<=0.5||Math.abs(r.y-c)<=0.5;if((u?i:s)>=2*N)return;if(o.has(e.id))return;o.add(e.id);let h=u?r.x-(e.offset.posX+i/2):r.y-(e.offset.posY+s/2);if(Math.abs(h)<0.01)return;if(u)e.offset.posX+=h,e.x=e.offset.posX+i/2;else e.offset.posY+=h,e.y=e.offset.posY+s/2;let d=n.get(e.id);if(d)d.x=e.offset.posX+i/2,d.y=e.offset.posY+s/2}t(z,"alignDegenerateNodeToAnchor");function Zt(e,r){let{startPoint:n,endPoint:o}=e,s=(e.bendPoints?e.bendPoints:[]).map((a)=>({x:a.x+r.x,y:a.y+r.y}));return[{x:n.x+r.x,y:n.y+r.y},...s,{x:o.x+r.x,y:o.y+r.y}]}t(Zt,"createEdgePointsFromSection");function B(e,r,n,o){let i=kt(e,r,n);if(i===void 0||i==="root")return{x:0,y:0};let s=o[i],a=s?.elkOrigin??s?.offset;return{x:a?.posX??0,y:a?.posY??0}}t(B,"calcOffset");function J(e,r,n,o){let i=Array.isArray(e)?[...e]:[],s=I(n);o.debug("PPP cutter2: Points before cutter2:",JSON.stringify(e),"endBounds:",s,v(s,e[e.length-1]));let a;{let c=I(r),l=I(n),u=!!r?.isGroup,h=!!n?.isGroup,{candidate:d,centerApprox:f}=Z(i,r,"start"),{candidate:g,centerApprox:m}=Z(i,n,"end"),k=u&&v(c,d),p=h&&v(l,g);if(tt(i,"start",k&&f),tt(i,"end",p&&m),u&&!k)k=et(i,c,"start");if(h&&!p)p=et(i,l,"end");if(k||p){if(!k)he(i,r,c,o);if(!p)de(i,n,l,o);o.debug("PPP cutter2: skipping cutter2 due to on-border group endpoint(s)",{skipStart:k,skipEnd:p,startCenterApprox:f,endCenterApprox:m,startCandidate:d,endCandidate:g}),a=i}else a=ge(r,n,i,o)}if(o.debug("PPP cutter2: Points after cutter2:",JSON.stringify(a)),!Array.isArray(a)||a.length<2||te(a)){o.warn("POI cutter2: Invalid points from cutter2, falling back to prevPoints",a);let c=i.filter((l)=>Number.isFinite(l?.x)&&Number.isFinite(l?.y));a=c.length>=2?c:i}return o.debug("UIO cutter2: Points after cutter2 (sanitized):",a),ee(a,o)}t(J,"sanitizeElkEdgePoints");function te(e){return e?.some((r)=>!Number.isFinite(r?.x)||!Number.isFinite(r?.y))}t(te,"hasInvalidPoint");function ee(e,r){let n=e.filter((o,i,s)=>{if(i===0)return!0;let a=s[i-1];return Math.abs(o.x-a.x)>0.000001||Math.abs(o.y-a.y)>0.000001});if(n.length!==e.length)r.debug("UIO cutter2: removed consecutive duplicate points",{before:e,after:n});return n}t(ee,"dedupeConsecutivePoints");function re(e){return It(e.arrowTypeEnd)}t(re,"getEndMarkerPathOffset");function ne(e){return It(e.arrowTypeStart)}t(ne,"getStartMarkerPathOffset");function ie(e,r,n,o){if(n<=0||e.length<3)return e;let i=e[0],s=e[1],a=Math.hypot(s.x-i.x,s.y-i.y);if(a>=Math.max(wt,n*2))return e;if(!v(r,s,1))return e;let c=[i,...e.slice(2)];return o.debug("UIO cutter2: removed short start marker segment",{before:e,after:c,markerOffset:n,segmentLength:a}),c}t(ie,"ensureStartMarkerSegmentLength");function oe(e,r,n,o){if(n<=0||e.length<3)return e;let i=e[e.length-1],s=e[e.length-2],a=Math.hypot(i.x-s.x,i.y-s.y);if(a>=Math.max(wt,n*2))return e;if(!v(r,s,1))return e;let c=[...e.slice(0,-2),i];return o.debug("UIO cutter2: removed short end marker segment",{before:e,after:c,markerOffset:n,segmentLength:a}),c}t(oe,"ensureEndMarkerSegmentLength");function se(e,r){let n=e.edges.defaultInterpolate,o=e.edges.defaultStyle,i=r.getConfig();e.edges.forEach((s)=>{let a=ue(s,{defaultStyle:o,defaultInterpolate:n,confCurve:i.curve},r);Object.assign(s,a)})}t(se,"applyElkEdgeRenderData");function ae(e){if(e.classes!==void 0)return e.classes;if(e.start&&e.end)return`flowchart-link LS_${e.start} LE_${e.end}`;return}t(ae,"buildFallbackEdgeClasses");function ce(e,r,n){let o="normal",i="solid",s=[],a=[];if(e==="dotted")i="dotted",s=["fill:none","stroke-width:2px","stroke-dasharray:3"];else if(e==="thick")o="thick",s=["stroke-width: 3.5px","fill:none"];else if(s=r??["fill:none"],n!==void 0)a=n;return{thickness:o,pattern:i,style:s,labelStyle:a}}t(ce,"computeStroke");function le(e,r,n){if(e!==void 0)return e;if(r!==void 0)return r;return n}t(le,"getCurve");function ue(e,r,n){let o={};o.minlen=e.minlen??e.length??1,o.text=e.text??e.label,o.arrowhead=e.arrowhead??(e.type==="arrow_open"?"none":"normal");let i=xt[e.type??"arrow_open"]??xt.arrow_open;o.arrowTypeStart=e.arrowTypeStart??i[0],o.arrowTypeEnd=e.arrowTypeEnd??i[1],o.startLabelRight=e.startLabelRight,o.endLabelLeft=e.endLabelLeft;let s=ce(e.stroke,r.defaultStyle,r.defaultLabelStyle);o.thickness=e.thickness??s.thickness,o.pattern=e.pattern??s.pattern,o.style=e.style??s.style,o.labelStyle=e.labelStyle??s.labelStyle,o.classes=ae(e),o.curve=n.interpolateToCurve(le(e.curve??e.interpolate,r.defaultInterpolate,r.confCurve),sa);let a=(o.text??"")!=="";if(e.arrowheadStyle!==void 0)o.arrowheadStyle=e.arrowheadStyle;else if(a||e.style!==void 0)o.arrowheadStyle="fill: #333";return o.labelpos=e.labelpos??(a?"c":void 0),o.labelType=e.labelType,o.label=(e.label??o.text??"").replace(n.common.lineBreakRegex,`
|
|
1
|
+
import{t,oa,sa,Cf,Ot,dp}from"./index-5v9v41ap.js";import{gl}from"./index-kf9t3mzv.js";import"./index-r83kr4s5.js";import{Oi,bd}from"./index-njqpkcvw.js";function X(){throw Error("elkjs is not bundled in this build; use the default dagre layout")}class pt{}var yt=new Proxy(pt,{construct:X,apply:X,get:X});var kt=t((e,r,{parentById:n})=>{let o=new Set,i=e;if(e===r)return n[e]||"root";while(i){if(o.add(i),i===r)return i;i=n[i]}i=r;while(i){if(o.has(i))return i;i=n[i]}return"root"},"findCommonAncestor"),pe=6;function bt(e,{measure:r}){let n=e.config?.elk?.lineHops;if(n===!1)return;let o=e.edges.filter((i)=>Array.isArray(i.points)&&i.points.length>=2).map((i)=>({id:i.id,points:i.points,curve:i.curve,arrowTypeStart:i.arrowTypeStart,arrowTypeEnd:i.arrowTypeEnd}));gl(r.groups.edgePaths,o,{enabled:!0,jumpRadius:pe,jumpStyle:n==="gap"?"gap":"arc"})}t(bt,"applyElkLineJumps");var ye={},Ee={},xe={},me={},R=1,ke=10,v=t((e,r,n=0.5)=>{let o=e.width/2,i=e.height/2,s=e.x-o,a=e.x+o,c=e.y-i,l=e.y+i,u=Math.abs(r.x-s)<=n&&r.y>=c-n&&r.y<=l+n,h=Math.abs(r.x-a)<=n&&r.y>=c-n&&r.y<=l+n,d=Math.abs(r.y-c)<=n&&r.x>=s-n&&r.x<=a+n,f=Math.abs(r.y-l)<=n&&r.x>=s-n&&r.x<=a+n;return u||h||d||f},"onBorder"),be=t((e,r,n)=>{let{x:o,y:i}=e,s=Math.abs(o-n.x),a=e.width/2,c=n.x<r.x?a-s:a+s,l=e.height/2,u=Math.abs(r.y-n.y),h=Math.abs(r.x-n.x);if(Math.abs(i-r.y)*a>Math.abs(o-r.x)*l){let d=n.y<r.y?r.y-l-i:i-l-r.y;c=h*d/u;let f={x:n.x<r.x?n.x+c:n.x-h+c,y:n.y<r.y?n.y+u-d:n.y-u+d};if(h===0)f.x=r.x;if(u===0)f.y=r.y;return f}else{if(n.x<r.x)c=r.x-a-o;else c=o-a-r.x;let d=u*c/h,f=n.x<r.x?n.x+h-c:n.x-h+c,g=n.y<r.y?n.y+d:n.y-d;if(h===0)f=r.x;if(u===0)g=r.y;return{x:f,y:g}}},"intersection"),T=t((e,r)=>{let{x:n,y:o}=e,i=Math.abs(r.x-n),s=Math.abs(r.y-o),a=e.width/2,c=e.height/2;return i>=a||s>=c},"outsideNode"),we=t((e,r,n=ke)=>{let o=Math.abs(r.x-e.x),i=Math.abs(r.y-e.y),s=e.width/2,a=e.height/2;if(Math.abs(o-s)<R||Math.abs(i-a)<R){let c=r.x-e.x,l=r.y-e.y,u=Math.sqrt(c*c+l*l);if(u>0)return{x:e.x+c/u*(u+n),y:e.y+l/u*(u+n)}}return r},"ensureTrulyOutside"),Ie=t((e,r,n)=>{let o=Math.abs(r.x-e.x)<R,i=Math.abs(r.y-e.y)<R;return{x:o?r.x:r.x<e.x?e.x-e.width/4:e.x+e.width/4,y:i?r.y:n.y}},"makeInsidePoint"),Oe=t((e,r,n)=>{if(!e?.intersect)return null;let o=e.intersect(n);if(!o)return null;if(n.x<r.x&&o.x>r.x||n.x>r.x&&o.x<r.x)return null;if(Math.hypot(n.x-o.x,n.y-o.y)<=R)return null;return o},"tryNodeIntersect"),Se=t((e,r,n)=>{let o=Ie(e,r,n);return be(e,r,o)},"fallbackIntersection"),Pe=20,Et=0.000001,W=t((e,r,n)=>{let o=e.intersect?.(n);if(!o)return!1;let i=Math.hypot(n.x-r.x,n.y-r.y),s=Math.hypot(o.x-r.x,o.y-r.y);return i<=s+0.000000001},"insideOutline"),Me=t((e,r,n,o)=>{if(!e?.intersect)return null;let i=o.x-n.x,s=o.y-n.y;if(i===0&&s===0)return null;if(Math.abs(i)>Et&&Math.abs(s)>Et)return null;let a={x:r.x,y:r.y},c=Math.abs(i)>Math.abs(s),l=t((d)=>c?{x:d,y:n.y}:{x:n.x,y:d},"along"),u=c?a.x:a.y,h=c?n.x:n.y;if(!W(e,a,l(u)))return null;if(W(e,a,l(h)))return{...n};for(let d=0;d<Pe;d++){let f=(u+h)/2;if(W(e,a,l(f)))u=f;else h=f}return l(u)},"outlineAttachPoint"),C=t((e,r,n,o)=>{let i=we(r,n);return Oe(e,r,i)??Se(r,i,o)},"computeNodeIntersection"),L=t((e,r,n,o=0.1)=>{if(!n||e.length===0)return;if(r==="start")if(e.length>0&&Math.abs(e[0].x-n.x)<o&&Math.abs(e[0].y-n.y)<o)e.shift();else e[0]=n;else{let i=e.length-1;if(e.length>0&&Math.abs(e[i].x-n.x)<o&&Math.abs(e[i].y-n.y)<o)e.pop();else e[i]=n}},"replaceEndpoint"),wt=8,It=t((e)=>{if(typeof e!=="string")return 0;return Math.max(Ot[e]??0,dp[e]??0)},"markerPathOffset"),xt={arrow_open:["none","none"],arrow_cross:["none","arrow_cross"],double_arrow_cross:["arrow_cross","arrow_cross"],arrow_point:["none","arrow_point"],double_arrow_point:["arrow_point","arrow_point"],arrow_circle:["none","arrow_circle"],double_arrow_circle:["arrow_circle","arrow_circle"]},N=12,St=`[top=${N},left=${N},bottom=${N},right=${N}]`,O=24,Pt=24,Mt=50,P=15,M=10,nt={"spacing.baseValue":15,"spacing.nodeNode":15,"elk.aspectRatio":"1.6","elk.expandNodes":"true","elk.rectpacking.trybox":"true","elk.rectpacking.packing.compaction.rowHeightReevaluation":"true","elk.rectpacking.packing.compaction.iterations":10,"elk.rectpacking.whiteSpaceElimination.strategy":"EQUAL_BETWEEN_STRUCTURES","elk.rectpacking.widthApproximation.strategy":"SCANLINE"},Ne=["nodeSize.constraints","nodeSize.minimum","elk.algorithm","elk.aspectRatio","elk.contentAlignment","elk.expandNodes","elk.padding",...Object.keys(nt)];function Nt(e){for(let r of Ne)delete e[r];e["spacing.baseValue"]=Pt,e["spacing.nodeNode"]=Mt}t(Nt,"clearContainerAlgorithmOptions");var mt=new Set(["elk.layered","elk.box","elk.rectpacking","elk.stress","elk.force","elk.mrtree","elk.radial","elk.sporeOverlap"]);function it(e,r){if(typeof e!=="string")return;if(!mt.has(e)){r?.warn(`Unknown container layout algorithm "${e}". Supported values: ${[...mt].join(", ")}. Falling back to the diagram's layout algorithm.`);return}return e}t(it,"resolveContainerAlgorithm");function ot(e){switch(e){case"LR":return"RIGHT";case"RL":return"LEFT";case"TB":case"TD":return"DOWN";case"BT":return"UP";default:return"DOWN"}}t(ot,"dir2ElkDirection");function F(e){if(!Cf(e.shape))return 0;return(e.labelData?.width??e.labels?.[0]?.width??0)+(e.padding??0)}t(F,"groupTitleWidth");function st(e){if(!Cf(e.shape))return{};return{"nodeSize.constraints":"[MINIMUM_SIZE, NODE_LABELS]","nodeSize.minimum":`(${F(e)}, 0)`}}t(st,"groupTitleSizeOptions");function At(e,r,n,o){let i=e.labelData?.width??0,s=e.padding??0,a=i+2*s,c=e.labelData?.height??0,l=ct(r?.preset),u={...st(e),"spacing.baseValue":Pt,"elk.layered.spacing.edgeNodeBetweenLayers":30,"elk.spacing.edgeEdge":20,"spacing.nodeNode":Mt,"elk.padding":`[top=${O},left=${O},bottom=${O},right=${O}]`,"nodeLabels.placement":"[H_CENTER V_TOP, INSIDE]","elk.layered.mergeEdges":r?.mergeEdges,"elk.layered.nodePlacement.bk.fixedAlignment":r?.nodePlacementAlignment??l.alignment,"elk.layered.nodePlacement.strategy":r?.nodePlacementStrategy??l.containerPlacement,"elk.layered.cycleBreaking.strategy":r?.cycleBreakingStrategy??l.cycleBreaking,"elk.layered.nodePlacement.networkSimplex.nodeFlexibility":"PORT_POSITION","elk.spacing.portsSurrounding":St},h=it(e.metadata?.algorithm,o);if(h){let d=c+P;if(u["nodeSize.constraints"]="[MINIMUM_SIZE, NODE_LABELS]",u["nodeSize.minimum"]=`(${a}, ${d+P})`,u["elk.algorithm"]=h,u["elk.hierarchyHandling"]="SEPARATE_CHILDREN",u["elk.aspectRatio"]="2.0",u["elk.contentAlignment"]="H_CENTER V_TOP",u["elk.expandNodes"]="true",u["elk.padding"]=`[top=${d},left=${P},bottom=${P},right=${P}]`,h==="elk.rectpacking"){let f=c+M;Object.assign(u,nt,{"elk.padding":`[top=${f},left=${M},bottom=${M},right=${M}]`,"nodeSize.minimum":`(${a}, ${f+M})`})}}else if(e.dir)u["elk.algorithm"]=n,u["elk.direction"]=ot(e.dir),u["elk.hierarchyHandling"]="SEPARATE_CHILDREN";return Object.assign(u,me),u}t(At,"buildSubgraphLayoutOptions");function _t(e,r){let n=new Set,o=new Map;for(let{id:i,parentId:s}of e){let a=o.get(s);if(a)a.push(i);else o.set(s,[i])}for(let i of o.values()){let s=new Set(i),a=new Map(i.map((p)=>[p,0])),c=new Map(i.map((p)=>[p,[]])),l=[];for(let p of r){let y=p.source==null?void 0:String(p.source),E=p.target==null?void 0:String(p.target);if(!y||!E||y===E)continue;if(!s.has(y)||!s.has(E))continue;a.set(E,(a.get(E)??0)+1),c.get(y).push(E),c.get(E).push(y),l.push([y,E])}let u=new Map,h=0;for(let p of i){if(u.has(p))continue;let y=[p];u.set(p,h);while(y.length>0){let E=y.pop();for(let b of c.get(E))if(!u.has(b))u.set(b,h),y.push(b)}h++}let d=Array(h).fill(!1);for(let p of i)if((a.get(p)??0)===0)d[u.get(p)]=!0;if(!d.includes(!1))continue;let f=new Map(i.map((p)=>[p,[]])),g=new Map(i.map((p)=>[p,0])),m=t((p,y)=>{let E=new Set([p]),b=[p];while(b.length>0){let w=b.pop();if(w===y)return!0;for(let x of f.get(w))if(!E.has(x))E.add(x),b.push(x)}return!1},"reaches");for(let[p,y]of l){if(m(y,p))continue;f.get(p).push(y),g.set(y,(g.get(y)??0)+1)}let k=Array(h).fill(!1);for(let p of i){let y=u.get(p);if(!d[y]&&!k[y]&&g.get(p)===0)n.add(p),k[y]=!0}}return n}t(_t,"findCyclicEntryNodes");function vt(e,r){if(!e.config.elk?.keepEntryNodeOnTop)return;let n=_t(e.nodes,e.edges.map((o)=>({source:o.start,target:o.end})));for(let o of n){let i=r[o];if(i)i.layoutOptions={...i.layoutOptions,"elk.layered.layering.layerConstraint":"FIRST"}}}t(vt,"applyCyclicEntryConstraint");function Rt(e,r){let n=at(r);return Ct(n),se(e,n),{algorithm:n.algorithm}}t(Rt,"prepareLayoutForElk");async function Tt(e,r){let n=at(r),o=Dt(e,n),i=new yt;n.log.info("Drawing flowchart using v4 renderer",i);let s=await Kt(i,o.elkGraph,n.log);return jt(e,s,o,n.log),Lt(e.nodes),s}t(Tt,"runElkLayoutCore");function Dt(e,r){let n={},o=Gt(e,r.algorithm,r.rootLayoutOptions),i=e.direction??"DOWN";o.layoutOptions["elk.direction"]=ot(i);let s=Bt(e.nodes,r.log);return lt(e.nodes,o,n,r),Xt(e,o,n,r),$t(e,n,s,r),Yt(o,n,s,r.log),vt(e,n),{elkGraph:o,nodeDb:n,parentLookupDb:s}}t(Dt,"buildElkGraphFromLayoutData");var Ve=Oi({afterPaint:bt,prepareLayout:Rt,measureLayout:t((e,r)=>bd(e,r,{unwrapGroupLabels:!0}),"measureLayout"),runLayoutCore:Tt,paintOptions:{skipIntersect:!0}});function Ct(e){oa(e.getConfig())}t(Ct,"syncHostConfig");function Lt(e){let r=new Map(e.map((n)=>[n.id,n]));e.sort((n,o)=>{if(n.isGroup!==o.isGroup)return n.isGroup?-1:1;if(n.isGroup&&o.isGroup)return K(n,r)-K(o,r);return 0})}t(Lt,"orderNodesForElkPaint");function K(e,r){let n=0,o=new Set,i=e.parentId;while(i&&!o.has(i)){o.add(i);let s=r.get(i);if(!s?.isGroup)break;n++,i=s.parentId}return n}t(K,"getGroupDepth");function at(e){let r=e.helpers;if(!r)throw Error("ELK layout requires Mermaid internal helpers");return{algorithm:e.preparedLayout?.algorithm??e.options?.algorithm,rootLayoutOptions:e.options?.rootLayoutOptions,common:r.common,getConfig:r.getConfig,interpolateToCurve:r.interpolateToCurve,log:r.log}}t(at,"getElkLayoutContext");var Y={default:{layering:"NETWORK_SIMPLEX",placement:"BRANDES_KOEPF",containerPlacement:"BRANDES_KOEPF",alignment:"BALANCED",cycleBreaking:"DEPTH_FIRST"},legacy:{layering:"NETWORK_SIMPLEX",placement:"BRANDES_KOEPF",containerPlacement:"BRANDES_KOEPF",alignment:"NONE",cycleBreaking:"GREEDY"},modelOrder:{layering:"NETWORK_SIMPLEX",placement:"NETWORK_SIMPLEX",containerPlacement:"BRANDES_KOEPF",alignment:"NONE",cycleBreaking:"GREEDY_MODEL_ORDER"},depthFirst:{layering:"NETWORK_SIMPLEX",placement:"NETWORK_SIMPLEX",containerPlacement:"BRANDES_KOEPF",alignment:"NONE",cycleBreaking:"DEPTH_FIRST"}};function ct(e){return e!==void 0&&Object.hasOwn(Y,e)?Y[e]:Y.default}t(ct,"resolveElkPreset");function Gt(e,r,n){let o=ct(e.config.elk?.preset),i={id:"root",layoutOptions:{"elk.hierarchyHandling":"INCLUDE_CHILDREN","elk.algorithm":r,"elk.layered.nodePlacement.strategy":e.config.elk?.nodePlacementStrategy??o.placement,"elk.layered.nodePlacement.bk.fixedAlignment":e.config.elk?.nodePlacementAlignment??o.alignment,"elk.layered.mergeEdges":e.config.elk?.mergeEdges,"elk.direction":"DOWN","spacing.baseValue":40,"elk.layered.crossingMinimization.forceNodeModelOrder":e.config.elk?.forceNodeModelOrder,"elk.layered.considerModelOrder.strategy":e.config.elk?.considerModelOrder,"elk.layered.unnecessaryBendpoints":!0,"elk.layered.cycleBreaking.strategy":e.config.elk?.cycleBreakingStrategy??o.cycleBreaking,"elk.layered.layering.strategy":e.config.elk?.layeringStrategy??o.layering,"elk.layered.layering.coffmanGraham.layerBound":e.config.elk?.layeringLayerBound,"elk.layered.wrapping.multiEdge.improveCuts":!0,"elk.layered.wrapping.multiEdge.improveWrappedEdges":!0,"elk.layered.edgeRouting.selfLoopDistribution":"EQUALLY","elk.layered.mergeHierarchyEdges":!0,"elk.spacing.portsSurrounding":St},children:[],edges:[]};if(r==="elk.rectpacking")Object.assign(i.layoutOptions,nt,{"elk.contentAlignment":"H_CENTER V_TOP","elk.padding":"[top=15,left=15,bottom=15,right=15]"});if(n)Object.assign(i.layoutOptions,n);return Object.assign(i.layoutOptions,ye,Ee,xe),i}t(Gt,"createRootElkGraph");function Bt(e,r){let n={parentById:{},childrenById:{}},o=e.filter((i)=>i.isGroup);return r.info("Subgraphs - ",o),o.forEach((i)=>{e.filter((a)=>a.parentId===i.id).forEach((a)=>{n.parentById[a.id]=i.id,n.childrenById[i.id]??=[],n.childrenById[i.id].push(a.id)})}),n}t(Bt,"addSubGraphs");function lt(e,r,n,o,i){let s=e.filter((a)=>a?.parentId===i);return o.log.info("addVertices APA12",s,i),s.forEach((a)=>{Ft(r,e,a,n,o)}),r}t(lt,"addVertices");function Ft(e,r,n,o,i){let s=Ut(n);if(e.children.push(s),o[n.id]=s,n.isGroup)s.children=[],lt(r,s,o,i,n.id),s.labelData=Ht(n,i.getConfig())}t(Ft,"addVertex");function Ut(e){let r={...e};if(delete r.domId,e.isGroup)r.children=[];else if(r.width=e.width??0,r.height=e.height??0,e.spreadPorts)r.layoutOptions={...r.layoutOptions,"elk.portAlignment.default":"CENTER"};return r}t(Ut,"createElkNode");function Ht(e,r){let n=e.labelData;if(n)return n;if(e.labelBBox)return{width:e.labelBBox.width,height:Math.max(0,e.labelBBox.height-2),wrappingWidth:e.wrappingWidth??r.flowchart?.wrappingWidth};return{width:0,height:0,wrappingWidth:e.wrappingWidth??r.flowchart?.wrappingWidth}}t(Ht,"getMeasuredLabelData");function Xt(e,r,n,o){o.log.info("abc78 DAGA edges = ",e);let i={};return e.edges.forEach((s)=>{let a=s.id;i[a]=(i[a]??-1)+1;let c=a;s.id=c,o.log.info("abc78 new link id to be used is",a,c,i[a]);let{source:l,target:u,sourceId:h,targetId:d}=Wt(s,n);o.log.debug("abc78 source and target",l,u),r.edges.push({...s,sources:[l],targets:[u],sourceId:h,targetId:d,labels:[{width:s.width??0,height:s.height??0,orgWidth:s.width??0,orgHeight:s.height??0,text:s.label??"",layoutOptions:{"edgeLabels.inline":"true","edgeLabels.placement":"CENTER"}}]})}),r}t(Xt,"addEdgesToElkGraph");function Wt(e,r){let{start:n,end:o}=e,i=n,s=o,a=n?r[n]:void 0,c=o?r[o]:void 0;if(!a||!c)return{source:i,target:s};return{source:i,target:s,sourceId:n,targetId:o}}t(Wt,"getEdgeStartEndPoint");function $t(e,r,n,o){e.nodes.forEach((i)=>{let s=r[i.id];if(!s||n.childrenById[s.id]===void 0)return;s.labels=[{text:s.label,width:s?.labelData?.width??50,height:s?.labelData?.height??50}],o.log.debug("UIO node label",s?.labelData?.width,s.padding),s.layoutOptions=At(s,e.config.elk,o.algorithm,o.log),delete s.x,delete s.y,delete s.width,delete s.height})}t($t,"configureSubgraphNodes");function Yt(e,r,n,o){o.debug("APA01 processing edges, count:",e.edges.length),e.edges.forEach((i,s)=>{o.debug("APA01 processing edge",s,":",i);let a=i.sources[0],c=i.targets[0];if(o.debug("APA01 source:",a,"target:",c),o.debug("APA01 nodeDb[source]:",r[a]),o.debug("APA01 nodeDb[target]:",r[c]),r[a]&&r[c]&&r[a].parentId!==r[c].parentId){let l=kt(a,c,n);G(r,a,l,o),G(r,c,l,o)}})}t(Yt,"configureCrossHierarchyEdges");function G(e,r,n,o){let i=e[r];if(!i)return;if(i.layoutOptions??={},i.layoutOptions["elk.hierarchyHandling"]==="SEPARATE_CHILDREN"&&it(i.metadata?.algorithm))o.debug("Dropping explicit algorithm for node",i.id,"due to cross-boundary edges"),Nt(i.layoutOptions),Object.assign(i.layoutOptions,st(i));if(i.layoutOptions["elk.hierarchyHandling"]="INCLUDE_CHILDREN",i.id!==n&&i.parentId)G(e,i.parentId,n,o)}t(G,"setIncludeChildrenPolicy");async function Kt(e,r,n){let o=globalThis.__mermaidProfiler;try{o?.begin("layoutCore");let i;try{i=await e.layout(r)}finally{o?.end()}return n.debug("APA01 after - success"),n.debug("APA01 layout result:",i),i}catch(i){throw n.error("ELK layout error:",i),i}}t(Kt,"runElkLayout");function jt(e,r,n,o){let i=new Map(e.nodes.map((s)=>[s.id,s]));ht(r.children??[],n,i,0,0,0,o),ft(r.children??[],n,i,r),Qt(e,r,n,o)}t(jt,"applyElkLayoutResult");function ut(e,r=new Set){for(let n of e.children??[])r.add(n.id),ut(n,r);return r}t(ut,"collectDescendantIds");function Vt(e,r,n,o){let i=[];for(let s of e.edges??[]){let a=s.sources?.[0]??s.start,c=s.targets?.[0]??s.end,l=r.has(a)&&r.has(c),u=a===o,h=c===o;if(!l&&!u&&!h)continue;let d=B(a,c,n.parentLookupDb,n.nodeDb);for(let f of s.sections??[]){let g=l?[f.startPoint,...f.bendPoints??[],f.endPoint]:[u?f.startPoint:null,h?f.endPoint:null];for(let m of g)if(m)i.push({x:m.x+d.x,y:m.y+d.y})}}return i}t(Vt,"internalEdgePoints");function ft(e,r,n,o={}){for(let i of e){if(!i?.isGroup)continue;let s=i.children??[];ft(s,r,n,o);let a=r.nodeDb[i.id],c=s.map((x)=>r.nodeDb[x.id]).filter((x)=>x?.offset&&x.width&&x.height);if(!a?.offset||c.length===0)continue;let l=Vt(o,ut(i),r,i.id),u=[...c.map((x)=>x.offset.posX),...c.map((x)=>x.offset.posX+x.width),...l.map((x)=>x.x)],h=[...c.map((x)=>x.offset.posY),...c.map((x)=>x.offset.posY+x.height),...l.map((x)=>x.y)],d=a.offset,f=Math.max(d.posX,Math.min(...u)-O),g=Math.min(d.posX+a.width,Math.max(...u)+O),m=Math.min(d.posY+a.height,Math.max(...h)+O),k=d.posY,p=F(i),y=f,E=g-f;if(E<p){y-=(p-E)/2,E=p;let x=d.posX+a.width;y=Math.max(d.posX,Math.min(y,x-E)),E=Math.min(E,a.width)}let b=m-k;if(b<=0||E<=0)continue;a.elkOrigin??={posX:d.posX,posY:d.posY},a.offset.posX=y,a.offset.width=E,a.offset.height=b,a.width=E,a.height=b,a.x=y+E/2,a.y=k+b/2;let w=n.get(i.id);if(w)w.x=a.x,w.y=a.y,w.width=E,w.height=b}}t(ft,"evenGroupFrames");function ht(e,r,n,o,i,s,a){e.forEach((c)=>{if(!c)return;let l=r.nodeDb[c.id]??c,u=Math.max(c.width,c.labels?c.labels[0]?.width||0:0),h={posX:c.x+o,posY:c.y+i,x:o,y:i,depth:s,width:u,height:c.height};l.offset=h,l.x=h.posX+c.width/2,l.y=h.posY+c.height/2,l.width=c.width,l.height=c.height;let d=n.get(c.id);if(d){d.x=l.x,d.y=l.y,d.width=c.isGroup?Math.max(c.width,c.labelData?.width??0):c.width,d.height=c.height;let f=d;f.labelData=c.labelData,f.labels=c.labels}if(c.isGroup)a.debug("Id abc88 subgraph = ",c.id,c.x,c.y,c.labelData),ht(c.children??[],r,n,h.posX,h.posY,s+1,a);else a.info("Id NODE = ",c.id,c.x,c.y,o,i,`translate(${l.x}, ${l.y})`)})}t(ht,"applyElkNodePositions");var Ae=16,_e=30,A=0.01;function _(e,r){let n=Math.abs(r.x-e.x),o=Math.abs(r.y-e.y);if(n>A&&o<=A)return"h";if(o>A&&n<=A)return"v";return}t(_,"axisOf");function zt(e){let r=j(e)??e,n=[...r].reverse(),o=j(n);if(o)r=o.reverse();return r}t(zt,"straightenTerminalJogs");function j(e){if(e.length<5)return null;let[r,n,o,i]=e,s=_(r,n);if(!s||_(o,i)!==s||_(n,o)!==(s==="h"?"v":"h"))return null;if(Math.hypot(n.x-r.x,n.y-r.y)>_e)return null;let a=s==="h"?Math.abs(o.y-n.y):Math.abs(o.x-n.x);if(a<A||a>Ae)return null;if(!(s==="h"?Math.sign(n.x-r.x)===Math.sign(i.x-o.x):Math.sign(n.y-r.y)===Math.sign(i.y-o.y)))return null;let l=3;while(l+1<e.length&&_(e[l],e[l+1])===s)l++;if(l===e.length-1)return null;let u=[...e];for(let h=2;h<=l;h++)u[h]=s==="h"?{x:e[h].x,y:r.y}:{x:r.x,y:e[h].y};return u.splice(1,2),u}t(j,"straightenFront");function Jt(e,r,n,o){let i=t((u,h,d)=>(h.x-u.x)*(d.y-u.y)-(h.y-u.y)*(d.x-u.x),"side"),s=i(n,o,e),a=i(n,o,r),c=i(e,r,n),l=i(e,r,o);return(s>0&&a<0||s<0&&a>0)&&(c>0&&l<0||c<0&&l>0)}t(Jt,"segmentsCrossStrict");function V(e,r){let n=0;for(let o=0;o<e.length-1;o++)for(let i=0;i<r.length-1;i++)if(Jt(e[o],e[o+1],r[i],r[i+1]))n++;return n}t(V,"crossingCount");function qt(e){let r=e.map((n)=>n.points??[]);for(let[n,o]of e.entries()){let i=r[n];if(i.length<5)continue;let s=zt(i);if(s===i)continue;let a=0,c=0;for(let[l,u]of r.entries()){if(l===n||u.length<2)continue;a+=V(i,u),c+=V(s,u)}if(c>a)continue;o.points=s,r[n]=s}}t(qt,"straightenEdgeTerminals");function Qt(e,r,n,o){let i=new Map(e.edges.map((l)=>[l.id,l])),s=e.config.elk?.straightenEdges!==!1,a=new Map(e.nodes.map((l)=>[l.id,l])),c=new Set;if(r.edges?.forEach((l)=>{if(!l.sections?.length)return;let u=n.nodeDb[l.sources?.[0]??l.start],h=n.nodeDb[l.targets?.[0]??l.end];if(!u||!h)return;let d=l.start??l.sourceId??l.sources?.[0],f=l.end??l.targetId??l.targets?.[0],g=B(d,f,n.parentLookupDb,n.nodeDb),m=l.sections[0];if(u.shape!=="rect33")z(u,{x:m.startPoint.x+g.x,y:m.startPoint.y+g.y},a,c);if(h.shape!=="rect33")z(h,{x:m.endPoint.x+g.x,y:m.endPoint.y+g.y},a,c)}),r.edges?.forEach((l)=>{let u=i.get(l.id);if(!u)return;let h=l.sources?.[0]??l.start,d=l.targets?.[0]??l.end,f=n.nodeDb[h],g=n.nodeDb[d];if(!f||!g)return;if(!l.sections?.length){let x=t((S)=>({x:(S.offset?.posX??S.x??0)+(S.width??0)/2,y:(S.offset?.posY??S.y??0)+(S.height??0)/2}),"centre"),U=x(f),H=x(g);f.x=U.x,f.y=U.y,g.x=H.x,g.y=H.y;let D=J([U,H],f,g,o);u.points=D,u.curve="linear";let dt=D[0],gt=D[D.length-1];u.x=(dt.x+gt.x)/2,u.y=(dt.y+gt.y)/2,o.debug("APA18 no edge sections, using a straight line",l.id,u.points);return}let m=l.start??l.sourceId??h,k=l.end??l.targetId??d,p=B(m,k,n.parentLookupDb,n.nodeDb);o.debug("APA18 offset",p,m," ==> ",k,"edge:",l,f);let y=l.sections[0],E=Zt(y,p);if(f.x=f.offset.posX+f.width/2,f.y=f.offset.posY+f.height/2,g.x=g.offset.posX+g.width/2,g.y=g.offset.posY+g.height/2,f.shape!=="rect33")E.unshift({x:f.x,y:f.y});if(g.shape!=="rect33")E.push({x:g.x,y:g.y});let b=J(E,f,g,o);u.points=ie(oe(b,I(g),re(u),o),I(f),ne(u),o),u.curve="rounded";let w=l.labels?.[0];if(w)u.x=w.x+p.x+w.width/2,u.y=w.y+p.y+w.height/2}),s)qt(e.edges)}t(Qt,"applyElkEdgeLayout");function z(e,r,n,o){let i=e.width??0,s=e.height??0,a=e.offset.posY,c=a+s,l=0.5,u=Math.abs(r.y-a)<=0.5||Math.abs(r.y-c)<=0.5;if((u?i:s)>=2*N)return;if(o.has(e.id))return;o.add(e.id);let h=u?r.x-(e.offset.posX+i/2):r.y-(e.offset.posY+s/2);if(Math.abs(h)<0.01)return;if(u)e.offset.posX+=h,e.x=e.offset.posX+i/2;else e.offset.posY+=h,e.y=e.offset.posY+s/2;let d=n.get(e.id);if(d)d.x=e.offset.posX+i/2,d.y=e.offset.posY+s/2}t(z,"alignDegenerateNodeToAnchor");function Zt(e,r){let{startPoint:n,endPoint:o}=e,s=(e.bendPoints?e.bendPoints:[]).map((a)=>({x:a.x+r.x,y:a.y+r.y}));return[{x:n.x+r.x,y:n.y+r.y},...s,{x:o.x+r.x,y:o.y+r.y}]}t(Zt,"createEdgePointsFromSection");function B(e,r,n,o){let i=kt(e,r,n);if(i===void 0||i==="root")return{x:0,y:0};let s=o[i],a=s?.elkOrigin??s?.offset;return{x:a?.posX??0,y:a?.posY??0}}t(B,"calcOffset");function J(e,r,n,o){let i=Array.isArray(e)?[...e]:[],s=I(n);o.debug("PPP cutter2: Points before cutter2:",JSON.stringify(e),"endBounds:",s,v(s,e[e.length-1]));let a;{let c=I(r),l=I(n),u=!!r?.isGroup,h=!!n?.isGroup,{candidate:d,centerApprox:f}=Z(i,r,"start"),{candidate:g,centerApprox:m}=Z(i,n,"end"),k=u&&v(c,d),p=h&&v(l,g);if(tt(i,"start",k&&f),tt(i,"end",p&&m),u&&!k)k=et(i,c,"start");if(h&&!p)p=et(i,l,"end");if(k||p){if(!k)he(i,r,c,o);if(!p)de(i,n,l,o);o.debug("PPP cutter2: skipping cutter2 due to on-border group endpoint(s)",{skipStart:k,skipEnd:p,startCenterApprox:f,endCenterApprox:m,startCandidate:d,endCandidate:g}),a=i}else a=ge(r,n,i,o)}if(o.debug("PPP cutter2: Points after cutter2:",JSON.stringify(a)),!Array.isArray(a)||a.length<2||te(a)){o.warn("POI cutter2: Invalid points from cutter2, falling back to prevPoints",a);let c=i.filter((l)=>Number.isFinite(l?.x)&&Number.isFinite(l?.y));a=c.length>=2?c:i}return o.debug("UIO cutter2: Points after cutter2 (sanitized):",a),ee(a,o)}t(J,"sanitizeElkEdgePoints");function te(e){return e?.some((r)=>!Number.isFinite(r?.x)||!Number.isFinite(r?.y))}t(te,"hasInvalidPoint");function ee(e,r){let n=e.filter((o,i,s)=>{if(i===0)return!0;let a=s[i-1];return Math.abs(o.x-a.x)>0.000001||Math.abs(o.y-a.y)>0.000001});if(n.length!==e.length)r.debug("UIO cutter2: removed consecutive duplicate points",{before:e,after:n});return n}t(ee,"dedupeConsecutivePoints");function re(e){return It(e.arrowTypeEnd)}t(re,"getEndMarkerPathOffset");function ne(e){return It(e.arrowTypeStart)}t(ne,"getStartMarkerPathOffset");function ie(e,r,n,o){if(n<=0||e.length<3)return e;let i=e[0],s=e[1],a=Math.hypot(s.x-i.x,s.y-i.y);if(a>=Math.max(wt,n*2))return e;if(!v(r,s,1))return e;let c=[i,...e.slice(2)];return o.debug("UIO cutter2: removed short start marker segment",{before:e,after:c,markerOffset:n,segmentLength:a}),c}t(ie,"ensureStartMarkerSegmentLength");function oe(e,r,n,o){if(n<=0||e.length<3)return e;let i=e[e.length-1],s=e[e.length-2],a=Math.hypot(i.x-s.x,i.y-s.y);if(a>=Math.max(wt,n*2))return e;if(!v(r,s,1))return e;let c=[...e.slice(0,-2),i];return o.debug("UIO cutter2: removed short end marker segment",{before:e,after:c,markerOffset:n,segmentLength:a}),c}t(oe,"ensureEndMarkerSegmentLength");function se(e,r){let n=e.edges.defaultInterpolate,o=e.edges.defaultStyle,i=r.getConfig();e.edges.forEach((s)=>{let a=ue(s,{defaultStyle:o,defaultInterpolate:n,confCurve:i.curve},r);Object.assign(s,a)})}t(se,"applyElkEdgeRenderData");function ae(e){if(e.classes!==void 0)return e.classes;if(e.start&&e.end)return`flowchart-link LS_${e.start} LE_${e.end}`;return}t(ae,"buildFallbackEdgeClasses");function ce(e,r,n){let o="normal",i="solid",s=[],a=[];if(e==="dotted")i="dotted",s=["fill:none","stroke-width:2px","stroke-dasharray:3"];else if(e==="thick")o="thick",s=["stroke-width: 3.5px","fill:none"];else if(s=r??["fill:none"],n!==void 0)a=n;return{thickness:o,pattern:i,style:s,labelStyle:a}}t(ce,"computeStroke");function le(e,r,n){if(e!==void 0)return e;if(r!==void 0)return r;return n}t(le,"getCurve");function ue(e,r,n){let o={};o.minlen=e.minlen??e.length??1,o.text=e.text??e.label,o.arrowhead=e.arrowhead??(e.type==="arrow_open"?"none":"normal");let i=xt[e.type??"arrow_open"]??xt.arrow_open;o.arrowTypeStart=e.arrowTypeStart??i[0],o.arrowTypeEnd=e.arrowTypeEnd??i[1],o.startLabelRight=e.startLabelRight,o.endLabelLeft=e.endLabelLeft;let s=ce(e.stroke,r.defaultStyle,r.defaultLabelStyle);o.thickness=e.thickness??s.thickness,o.pattern=e.pattern??s.pattern,o.style=e.style??s.style,o.labelStyle=e.labelStyle??s.labelStyle,o.classes=ae(e),o.curve=n.interpolateToCurve(le(e.curve??e.interpolate,r.defaultInterpolate,r.confCurve),sa);let a=(o.text??"")!=="";if(e.arrowheadStyle!==void 0)o.arrowheadStyle=e.arrowheadStyle;else if(a||e.style!==void 0)o.arrowheadStyle="fill: #333";return o.labelpos=e.labelpos??(a?"c":void 0),o.labelType=e.labelType,o.label=(e.label??o.text??"").replace(n.common.lineBreakRegex,`
|
|
2
2
|
`),o}t(ue,"buildEdgeData");function fe(e){return Math.max(e.width??0,F(e))}t(fe,"getEffectiveGroupWidth");function I(e){let r=e?.isGroup?fe(e):e.width;return{x:e.offset.posX+e.width/2,y:e.offset.posY+e.height/2,width:r??0,height:e.height??0,padding:e.padding}}t(I,"boundsFor");function q(e,r,n=0.000001){return Math.abs(e-r)<n}t(q,"approxEq");function Q(e,r){return q(e.x,r.x??0)&&q(e.y,r.y??0)}t(Q,"isCenterApprox");function Z(e,r,n){if(!e?.length)return{candidate:{x:r.x??0,y:r.y??0},centerApprox:!0};if(n==="start"){let o=e[0],i=Q(o,r);return{candidate:i&&e.length>1?e[1]:o,centerApprox:i}}else{let o=e[e.length-1],i=Q(o,r);return{candidate:i&&e.length>1?e[e.length-2]:o,centerApprox:i}}}t(Z,"getCandidateBorderPoint");function tt(e,r,n){if(!n)return;if(r==="start"){if(e.length>0)e.shift()}else if(e.length>0)e.pop()}t(tt,"dropAutoCenterPoint");function et(e,r,n){let o=n==="start"?1:-1,i=n==="start"?0:e.length-1,s=i;while(i>=0&&i<e.length&&!T(r,e[i]))i+=o;if(i===s||i<0||i>=e.length)return!1;let a=e[i],c=e[i-o],l=a.x-c.x,u=a.y-c.y,h=l===0?1/0:(r.x+Math.sign(l)*r.width/2-c.x)/l,d=u===0?1/0:(r.y+Math.sign(u)*r.height/2-c.y)/u,f=Math.min(h,d),g={x:c.x+f*l,y:c.y+f*u};if(n==="start")e.splice(0,i,g);else e.splice(i+1,e.length-i-1,g);return!0}t(et,"clipGroupEndpoint");function he(e,r,n,o){let i=-1;for(let[s,a]of e.entries())if(T(n,a)){i=s;break}if(i!==-1){let s=e[i],a=e[0],c=C(r,n,s,a);L(e,"start",c),o.debug("UIO cutter2: start-only intersection applied",{startIntersection:c})}}t(he,"applyStartIntersectionIfNeeded");function de(e,r,n,o){let i=-1;for(let s=e.length-1;s>=0;s--)if(T(n,e[s])){i=s;break}if(i!==-1){let s=e[i],a=e[e.length-1],c=C(r,n,s,a);L(e,"end",c),o.debug("UIO cutter2: end-only intersection applied",{endIntersection:c})}}t(de,"applyEndIntersectionIfNeeded");function rt(e,r,n,o,i){if(e?.isGroup)return null;let s=n[o],a=n[o+i];if(!s||!a)return null;return Me(e,r,s,a)}t(rt,"attachAlongDepartureAxis");function ge(e,r,n,o){let i=I(e),s=I(r);if(n.length===0)return[];let a=[...n],c=a[0],l=a[a.length-1];o.debug("PPP cutter2: bounds",{startBounds:i,endBounds:s}),o.debug("PPP cutter2: original points",n);let u=-1;for(let[f,g]of a.entries())if(u===-1&&T(i,g))u=f;if(u!==-1){let f=a[u],g=rt(e,i,a,u,1)??C(e,i,f,c);o.debug("UIO cutter2: start intersection",g),L(a,"start",g)}let h=null,d=-1;for(let f=a.length-1;f>=0;f--)if(T(s,a[f])){h=a[f],d=f;break}if(!h&&a.length>1)h=a[a.length-2],d=a.length-2;if(h){let f=rt(r,s,a,d,-1)??C(r,s,h,l);o.debug("UIO cutter2: end intersection",{endIntersection:f,outsideIndexForEnd:d}),L(a,"end",f)}if(a.length>1){let f=a[a.length-1],g=a[a.length-2],m=Math.sqrt((f.x-g.x)**2+(f.y-g.y)**2);if(m<2)o.debug("UIO cutter2: trimming tail point (too close)",{distance:m,lastPoint:f,secondLastPoint:g}),a.pop()}return o.debug("UIO cutter2: final points",a),a}t(ge,"cutter2");export{Ve as render};
|
package/dist/client/static/js/{erDiagram-OPXOYQCR-39gat96z.js → erDiagram-OPXOYQCR-18qdkhm5.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{t,ri,l,st,ia,x,R,L,z,O,U,j,G,p,h,W,hn,wu,lt,Ye,Je,Mr,_t,St,Tt,ct}from"./index-5y0bvq4q.js";var we=function(){var s=t(function(Z,n,c,f){for(c=c||{},f=Z.length;f--;c[Z[f]]=n);return c},"o"),o=[6,9,21,23,25,27,34,37,38,39,40,41,43,46,47,51,53,54,55],b=[2,2],a=[1,7],u=[1,9],g=[1,10],S=[1,11],y=[1,12],T=[1,30],k=[1,23],_=[1,24],v=[1,25],q=[1,26],X=[1,27],C=[1,19],V=[1,28],te=[1,29],D=[1,20],M=[1,18],B=[1,21],F=[1,22],Ve=[2,6],d=[6,9,21,23,25,27,33,34,37,38,39,40,41,43,46,47,51,53,54,55],Se=[1,36],Te=[1,37],Ce=[1,38],Oe=[1,39],Ne=[1,40],se=[6,9,12,14,16,19,20,21,23,25,27,33,34,37,38,39,40,41,43,46,47,50,51,53,54,55,69,70,71,72,73],Y=[1,46],P=[1,47],ie=[1,57],re=[43,51,53,54,55,74,75],ae=[1,70],ne=[1,68],K=[1,65],oe=[1,69],le=[1,71],ue=[6,9,12,16,21,23,25,27,33,34,37,38,39,40,41,43,44,45,46,47,51,52,53,54,55,69,70,71,72,73],de=[1,78],be=[1,77],pe=[1,76],Me=[69,70,71,72,73],Be=[1,91],Ge=[6,9,45,50],J=[6,9,12,44,45,50,51,52],fe=[1,101],ke=[1,100],ge=[1,99],ce=[18,61],Fe=[1,110],Pe=[1,109],ze=[20,43,51,53,54,55],xe=[18,61,64,66],Ae={trace:t(function(){},"trace"),yy:{},symbols_:{error:2,start:3,ER_DIAGRAM:4,document:5,EOF:6,line:7,statement:8,NEWLINE:9,entityName:10,relSpec:11,COLON:12,role:13,STYLE_SEPARATOR:14,idList:15,BLOCK_START:16,attributes:17,BLOCK_STOP:18,SQS:19,SQE:20,title:21,title_value:22,acc_title:23,acc_title_value:24,acc_descr:25,acc_descr_value:26,acc_descr_multiline_value:27,direction:28,classDefStatement:29,classStatement:30,styleStatement:31,subgraphHeader:32,END:33,SUBGRAPH:34,separator:35,subgraphTitle:36,direction_tb:37,direction_bt:38,direction_rl:39,direction_lr:40,CLASSDEF:41,stylesOpt:42,UNICODE_TEXT:43,STYLE_TEXT:44,COMMA:45,CLASS:46,STYLE:47,style:48,styleComponent:49,SEMI:50,NUM:51,BRKT:52,ENTITY_NAME:53,DECIMAL_NUM:54,ENTITY_ONE:55,attribute:56,attributeType:57,attributeName:58,attributeKeyTypeList:59,attributeComment:60,ATTRIBUTE_WORD:61,"?":62,attributeKeyType:63,",":64,ATTRIBUTE_KEY:65,COMMENT:66,cardinality:67,relType:68,ZERO_OR_ONE:69,ZERO_OR_MORE:70,ONE_OR_MORE:71,ONLY_ONE:72,MD_PARENT:73,NON_IDENTIFYING:74,IDENTIFYING:75,WORD:76,$accept:0,$end:1},terminals_:{2:"error",4:"ER_DIAGRAM",6:"EOF",9:"NEWLINE",12:"COLON",14:"STYLE_SEPARATOR",16:"BLOCK_START",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",33:"END",34:"SUBGRAPH",37:"direction_tb",38:"direction_bt",39:"direction_rl",40:"direction_lr",41:"CLASSDEF",43:"UNICODE_TEXT",44:"STYLE_TEXT",45:"COMMA",46:"CLASS",47:"STYLE",50:"SEMI",51:"NUM",52:"BRKT",53:"ENTITY_NAME",54:"DECIMAL_NUM",55:"ENTITY_ONE",61:"ATTRIBUTE_WORD",62:"?",64:",",65:"ATTRIBUTE_KEY",66:"COMMENT",69:"ZERO_OR_ONE",70:"ZERO_OR_MORE",71:"ONE_OR_MORE",72:"ONLY_ONE",73:"MD_PARENT",74:"NON_IDENTIFYING",75:"IDENTIFYING",76:"WORD"},productions_:[0,[3,3],[5,0],[5,2],[7,1],[7,1],[7,1],[8,5],[8,9],[8,7],[8,7],[8,4],[8,6],[8,3],[8,5],[8,1],[8,3],[8,7],[8,9],[8,6],[8,8],[8,4],[8,6],[8,2],[8,2],[8,2],[8,1],[8,1],[8,1],[8,1],[8,1],[8,3],[32,3],[32,6],[36,1],[36,2],[28,1],[28,1],[28,1],[28,1],[29,4],[15,1],[15,1],[15,3],[15,3],[30,3],[31,4],[42,1],[42,3],[48,1],[48,2],[35,1],[35,1],[35,1],[49,1],[49,1],[49,1],[49,1],[10,1],[10,1],[10,1],[10,1],[10,1],[17,1],[17,2],[56,2],[56,3],[56,3],[56,4],[57,1],[57,2],[58,1],[59,1],[59,3],[63,1],[60,1],[11,3],[67,1],[67,1],[67,1],[67,1],[67,1],[68,1],[68,1],[13,1],[13,1],[13,1]],performAction:t(function(n,c,f,r,m,e,he){var i=e.length-1;switch(m){case 1:break;case 2:this.$=[];break;case 3:this.$=e[i-1].concat(e[i]);break;case 4:this.$=e[i];break;case 5:case 6:this.$=[];break;case 7:r.addEntity(e[i-4]),r.addEntity(e[i-2]),r.addRelationship(e[i-4],e[i],e[i-2],e[i-3]),this.$=[e[i-4],e[i-2]];break;case 8:r.addEntity(e[i-8]),r.addEntity(e[i-4]),r.addRelationship(e[i-8],e[i],e[i-4],e[i-5]),r.setClass([e[i-8]],e[i-6]),r.setClass([e[i-4]],e[i-2]),this.$=[e[i-8],e[i-4]];break;case 9:r.addEntity(e[i-6]),r.addEntity(e[i-2]),r.addRelationship(e[i-6],e[i],e[i-2],e[i-3]),r.setClass([e[i-6]],e[i-4]),this.$=[e[i-6],e[i-2]];break;case 10:r.addEntity(e[i-6]),r.addEntity(e[i-4]),r.addRelationship(e[i-6],e[i],e[i-4],e[i-5]),r.setClass([e[i-4]],e[i-2]),this.$=[e[i-6],e[i-4]];break;case 11:r.addEntity(e[i-3]),r.addAttributes(e[i-3],e[i-1]),this.$=[e[i-3]];break;case 12:r.addEntity(e[i-5]),r.addAttributes(e[i-5],e[i-1]),r.setClass([e[i-5]],e[i-3]),this.$=[e[i-5]];break;case 13:r.addEntity(e[i-2]),this.$=[e[i-2]];break;case 14:r.addEntity(e[i-4]),r.setClass([e[i-4]],e[i-2]),this.$=[e[i-4]];break;case 15:r.addEntity(e[i]),this.$=[e[i]];break;case 16:r.addEntity(e[i-2]),r.setClass([e[i-2]],e[i]),this.$=[e[i-2]];break;case 17:r.addEntity(e[i-6],e[i-4]),r.addAttributes(e[i-6],e[i-1]),this.$=[e[i-6]];break;case 18:r.addEntity(e[i-8],e[i-6]),r.addAttributes(e[i-8],e[i-1]),r.setClass([e[i-8]],e[i-3]),this.$=[e[i-8]];break;case 19:r.addEntity(e[i-5],e[i-3]),this.$=[e[i-5]];break;case 20:r.addEntity(e[i-7],e[i-5]),r.setClass([e[i-7]],e[i-2]),this.$=[e[i-7]];break;case 21:r.addEntity(e[i-3],e[i-1]);break;case 22:r.addEntity(e[i-5],e[i-3]),r.setClass([e[i-5]],e[i]);break;case 23:case 24:this.$=e[i].trim(),r.setAccTitle(this.$);break;case 25:case 26:this.$=e[i].trim(),r.setAccDescription(this.$);break;case 27:if(!r.subgraphDepth)r.setDirection(e[i].value),this.$=[];else this.$=e[i];break;case 31:r.subgraphDepth=(r.subgraphDepth||1)-1,this.$=r.addSubGraph({text:e[i-2].id},e[i-1],{text:e[i-2].text});break;case 32:r.subgraphDepth=(r.subgraphDepth||0)+1,this.$={id:e[i-1],text:e[i-1]};break;case 33:r.subgraphDepth=(r.subgraphDepth||0)+1,this.$={id:e[i-4],text:e[i-2]};break;case 34:case 59:case 60:case 61:case 62:case 86:this.$=e[i];break;case 35:this.$=e[i-1]+" "+e[i];break;case 36:this.$={stmt:"dir",value:"TB"};break;case 37:this.$={stmt:"dir",value:"BT"};break;case 38:this.$={stmt:"dir",value:"RL"};break;case 39:this.$={stmt:"dir",value:"LR"};break;case 40:this.$=e[i-3],r.addClass(e[i-2],e[i-1]);break;case 41:case 42:case 63:case 72:this.$=[e[i]];break;case 43:case 44:this.$=e[i-2].concat([e[i]]);break;case 45:this.$=e[i-2],r.setClass(e[i-1],e[i]);break;case 46:this.$=e[i-3],r.addCssStyles(e[i-2],e[i-1]);break;case 47:this.$=[e[i]];break;case 48:e[i-2].push(e[i]),this.$=e[i-2];break;case 50:this.$=e[i-1]+e[i];break;case 58:case 84:case 85:this.$=e[i].replace(/"/g,"");break;case 64:e[i].push(e[i-1]),this.$=e[i];break;case 65:this.$={type:e[i-1],name:e[i]};break;case 66:this.$={type:e[i-2],name:e[i-1],keys:e[i]};break;case 67:this.$={type:e[i-2],name:e[i-1],comment:e[i]};break;case 68:this.$={type:e[i-3],name:e[i-2],keys:e[i-1],comment:e[i]};break;case 69:case 71:case 74:this.$=e[i];break;case 70:this.$=e[i-1]+e[i];break;case 73:e[i-2].push(e[i]),this.$=e[i-2];break;case 75:this.$=e[i].replace(/"/g,"");break;case 76:this.$={cardA:e[i],relType:e[i-1],cardB:e[i-2]};break;case 77:this.$=r.Cardinality.ZERO_OR_ONE;break;case 78:this.$=r.Cardinality.ZERO_OR_MORE;break;case 79:this.$=r.Cardinality.ONE_OR_MORE;break;case 80:this.$=r.Cardinality.ONLY_ONE;break;case 81:this.$=r.Cardinality.MD_PARENT;break;case 82:this.$=r.Identification.NON_IDENTIFYING;break;case 83:this.$=r.Identification.IDENTIFYING;break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},s(o,b,{5:3}),{6:[1,4],7:5,8:6,9:a,10:8,21:u,23:g,25:S,27:y,28:13,29:14,30:15,31:16,32:17,34:T,37:k,38:_,39:v,40:q,41:X,43:C,46:V,47:te,51:D,53:M,54:B,55:F},s(o,Ve,{1:[2,1]}),s(d,[2,3]),s(d,[2,4]),s(d,[2,5]),s(d,[2,15],{11:31,67:35,14:[1,32],16:[1,33],19:[1,34],69:Se,70:Te,71:Ce,72:Oe,73:Ne}),{22:[1,41]},{24:[1,42]},{26:[1,43]},s(d,[2,26]),s(d,[2,27]),s(d,[2,28]),s(d,[2,29]),s(d,[2,30]),s(d,b,{5:44}),s(se,[2,58]),s(se,[2,59]),s(se,[2,60]),s(se,[2,61]),s(se,[2,62]),s(d,[2,36]),s(d,[2,37]),s(d,[2,38]),s(d,[2,39]),{15:45,43:Y,44:P},{15:48,43:Y,44:P},{15:49,43:Y,44:P},{10:50,43:C,51:D,53:M,54:B,55:F},{10:51,43:C,51:D,53:M,54:B,55:F},{15:52,43:Y,44:P},{17:53,18:[1,54],56:55,57:56,61:ie},{10:58,43:C,51:D,53:M,54:B,55:F},{68:59,74:[1,60],75:[1,61]},s(re,[2,77]),s(re,[2,78]),s(re,[2,79]),s(re,[2,80]),s(re,[2,81]),s(d,[2,23]),s(d,[2,24]),s(d,[2,25]),{6:[1,63],7:5,8:6,9:a,10:8,21:u,23:g,25:S,27:y,28:13,29:14,30:15,31:16,32:17,33:[1,62],34:T,37:k,38:_,39:v,40:q,41:X,43:C,46:V,47:te,51:D,53:M,54:B,55:F},{12:ae,42:64,44:ne,45:K,48:66,49:67,51:oe,52:le},s(ue,[2,41]),s(ue,[2,42]),{15:72,43:Y,44:P,45:K},{12:ae,42:73,44:ne,45:K,48:66,49:67,51:oe,52:le},{6:de,9:be,19:[1,75],35:74,50:pe},{12:[1,79],14:[1,80]},s(d,[2,16],{67:35,11:81,16:[1,82],45:K,69:Se,70:Te,71:Ce,72:Oe,73:Ne}),{18:[1,83]},s(d,[2,13]),{17:84,18:[2,63],56:55,57:56,61:ie},{58:85,61:[1,86]},{61:[2,69],62:[1,87]},{20:[1,88]},{67:89,69:Se,70:Te,71:Ce,72:Oe,73:Ne},s(Me,[2,82]),s(Me,[2,83]),s(d,[2,31]),s(d,Ve),{6:de,9:be,35:90,45:Be,50:pe},{43:[1,92],44:[1,93]},s(Ge,[2,47],{49:94,12:ae,44:ne,51:oe,52:le}),s(J,[2,49]),s(J,[2,54]),s(J,[2,55]),s(J,[2,56]),s(J,[2,57]),s(d,[2,45],{45:K}),{6:de,9:be,35:95,45:Be,50:pe},s(d,[2,32]),{10:97,36:96,43:C,51:D,53:M,54:B,55:F},s(d,[2,51]),s(d,[2,52]),s(d,[2,53]),{13:98,43:fe,53:ke,76:ge},{15:102,43:Y,44:P},{10:103,43:C,51:D,53:M,54:B,55:F},{17:104,18:[1,105],56:55,57:56,61:ie},s(d,[2,11]),{18:[2,64]},s(ce,[2,65],{59:106,60:107,63:108,65:Fe,66:Pe}),s([18,61,65,66],[2,71]),{61:[2,70]},s(d,[2,21],{14:[1,112],16:[1,111]}),s([43,51,53,54,55],[2,76]),s(d,[2,40]),{12:ae,44:ne,48:113,49:67,51:oe,52:le},s(ue,[2,43]),s(ue,[2,44]),s(J,[2,50]),s(d,[2,46]),{10:115,20:[1,114],43:C,51:D,53:M,54:B,55:F},s(ze,[2,34]),s(d,[2,7]),s(d,[2,84]),s(d,[2,85]),s(d,[2,86]),{12:[1,116],45:K},{12:[1,118],14:[1,117]},{18:[1,119]},s(d,[2,14]),s(ce,[2,66],{60:120,64:[1,121],66:Pe}),s(ce,[2,67]),s(xe,[2,72]),s(ce,[2,75]),s(xe,[2,74]),{17:122,18:[1,123],56:55,57:56,61:ie},{15:124,43:Y,44:P},s(Ge,[2,48],{49:94,12:ae,44:ne,51:oe,52:le}),{6:de,9:be,35:125,50:pe},s(ze,[2,35]),{13:126,43:fe,53:ke,76:ge},{15:127,43:Y,44:P},{13:128,43:fe,53:ke,76:ge},s(d,[2,12]),s(ce,[2,68]),{63:129,65:Fe},{18:[1,130]},s(d,[2,19]),s(d,[2,22],{16:[1,131],45:K}),s(d,[2,33]),s(d,[2,10]),{12:[1,132],45:K},s(d,[2,9]),s(xe,[2,73]),s(d,[2,17]),{17:133,18:[1,134],56:55,57:56,61:ie},{13:135,43:fe,53:ke,76:ge},{18:[1,136]},s(d,[2,20]),s(d,[2,8]),s(d,[2,18])],defaultActions:{84:[2,64],87:[2,70]},parseError:t(function(n,c){if(c.recoverable)this.trace(n);else{var f=Error(n);throw f.hash=c,f}},"parseError"),parse:t(function(n){var c=this,f=[0],r=[],m=[null],e=[],he=this.table,i="",_e=0,Ue=0,Ke=0,Xe=2,Ze=1,$e=e.slice.call(arguments,1),E=Object.create(this.lexer),H={yy:{}};for(var Ie in this.yy)if(Object.prototype.hasOwnProperty.call(this.yy,Ie))H.yy[Ie]=this.yy[Ie];if(E.setInput(n,H.yy),H.yy.lexer=E,H.yy.parser=this,typeof E.yylloc>"u")E.yylloc={};var Re=E.yylloc;e.push(Re);var et=E.options&&E.options.ranges;if(typeof H.yy.parseError==="function")this.parseError=H.yy.parseError;else this.parseError=Object.getPrototypeOf(this).parseError;function tt(I){f.length=f.length-2*I,m.length=m.length-I,e.length=e.length-I}t(tt,"popStack");function je(){var I=r.pop()||E.lex()||Ze;if(typeof I!=="number"){if(I instanceof Array)r=I,I=r.pop();I=c.symbols_[I]||I}return I}t(je,"lex");var N,ve,Q,A,ut,De,ee={},me,w,qe,Ee;while(!0){if(Q=f[f.length-1],this.defaultActions[Q])A=this.defaultActions[Q];else{if(N===null||typeof N>"u")N=je();A=he[Q]&&he[Q][N]}if(typeof A>"u"||!A.length||!A[0]){var Le="";Ee=[];for(me in he[Q])if(this.terminals_[me]&&me>Xe)Ee.push("'"+this.terminals_[me]+"'");if(E.showPosition)Le="Parse error on line "+(_e+1)+`:
|
|
1
|
+
import{t,ri,l,st,ia,x,R,L,z,O,U,j,G,p,h,W,hn,wu,lt,Ye,Je,Mr,_t,St,Tt,ct}from"./index-5v9v41ap.js";var we=function(){var s=t(function(Z,n,c,f){for(c=c||{},f=Z.length;f--;c[Z[f]]=n);return c},"o"),o=[6,9,21,23,25,27,34,37,38,39,40,41,43,46,47,51,53,54,55],b=[2,2],a=[1,7],u=[1,9],g=[1,10],S=[1,11],y=[1,12],T=[1,30],k=[1,23],_=[1,24],v=[1,25],q=[1,26],X=[1,27],C=[1,19],V=[1,28],te=[1,29],D=[1,20],M=[1,18],B=[1,21],F=[1,22],Ve=[2,6],d=[6,9,21,23,25,27,33,34,37,38,39,40,41,43,46,47,51,53,54,55],Se=[1,36],Te=[1,37],Ce=[1,38],Oe=[1,39],Ne=[1,40],se=[6,9,12,14,16,19,20,21,23,25,27,33,34,37,38,39,40,41,43,46,47,50,51,53,54,55,69,70,71,72,73],Y=[1,46],P=[1,47],ie=[1,57],re=[43,51,53,54,55,74,75],ae=[1,70],ne=[1,68],K=[1,65],oe=[1,69],le=[1,71],ue=[6,9,12,16,21,23,25,27,33,34,37,38,39,40,41,43,44,45,46,47,51,52,53,54,55,69,70,71,72,73],de=[1,78],be=[1,77],pe=[1,76],Me=[69,70,71,72,73],Be=[1,91],Ge=[6,9,45,50],J=[6,9,12,44,45,50,51,52],fe=[1,101],ke=[1,100],ge=[1,99],ce=[18,61],Fe=[1,110],Pe=[1,109],ze=[20,43,51,53,54,55],xe=[18,61,64,66],Ae={trace:t(function(){},"trace"),yy:{},symbols_:{error:2,start:3,ER_DIAGRAM:4,document:5,EOF:6,line:7,statement:8,NEWLINE:9,entityName:10,relSpec:11,COLON:12,role:13,STYLE_SEPARATOR:14,idList:15,BLOCK_START:16,attributes:17,BLOCK_STOP:18,SQS:19,SQE:20,title:21,title_value:22,acc_title:23,acc_title_value:24,acc_descr:25,acc_descr_value:26,acc_descr_multiline_value:27,direction:28,classDefStatement:29,classStatement:30,styleStatement:31,subgraphHeader:32,END:33,SUBGRAPH:34,separator:35,subgraphTitle:36,direction_tb:37,direction_bt:38,direction_rl:39,direction_lr:40,CLASSDEF:41,stylesOpt:42,UNICODE_TEXT:43,STYLE_TEXT:44,COMMA:45,CLASS:46,STYLE:47,style:48,styleComponent:49,SEMI:50,NUM:51,BRKT:52,ENTITY_NAME:53,DECIMAL_NUM:54,ENTITY_ONE:55,attribute:56,attributeType:57,attributeName:58,attributeKeyTypeList:59,attributeComment:60,ATTRIBUTE_WORD:61,"?":62,attributeKeyType:63,",":64,ATTRIBUTE_KEY:65,COMMENT:66,cardinality:67,relType:68,ZERO_OR_ONE:69,ZERO_OR_MORE:70,ONE_OR_MORE:71,ONLY_ONE:72,MD_PARENT:73,NON_IDENTIFYING:74,IDENTIFYING:75,WORD:76,$accept:0,$end:1},terminals_:{2:"error",4:"ER_DIAGRAM",6:"EOF",9:"NEWLINE",12:"COLON",14:"STYLE_SEPARATOR",16:"BLOCK_START",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",33:"END",34:"SUBGRAPH",37:"direction_tb",38:"direction_bt",39:"direction_rl",40:"direction_lr",41:"CLASSDEF",43:"UNICODE_TEXT",44:"STYLE_TEXT",45:"COMMA",46:"CLASS",47:"STYLE",50:"SEMI",51:"NUM",52:"BRKT",53:"ENTITY_NAME",54:"DECIMAL_NUM",55:"ENTITY_ONE",61:"ATTRIBUTE_WORD",62:"?",64:",",65:"ATTRIBUTE_KEY",66:"COMMENT",69:"ZERO_OR_ONE",70:"ZERO_OR_MORE",71:"ONE_OR_MORE",72:"ONLY_ONE",73:"MD_PARENT",74:"NON_IDENTIFYING",75:"IDENTIFYING",76:"WORD"},productions_:[0,[3,3],[5,0],[5,2],[7,1],[7,1],[7,1],[8,5],[8,9],[8,7],[8,7],[8,4],[8,6],[8,3],[8,5],[8,1],[8,3],[8,7],[8,9],[8,6],[8,8],[8,4],[8,6],[8,2],[8,2],[8,2],[8,1],[8,1],[8,1],[8,1],[8,1],[8,3],[32,3],[32,6],[36,1],[36,2],[28,1],[28,1],[28,1],[28,1],[29,4],[15,1],[15,1],[15,3],[15,3],[30,3],[31,4],[42,1],[42,3],[48,1],[48,2],[35,1],[35,1],[35,1],[49,1],[49,1],[49,1],[49,1],[10,1],[10,1],[10,1],[10,1],[10,1],[17,1],[17,2],[56,2],[56,3],[56,3],[56,4],[57,1],[57,2],[58,1],[59,1],[59,3],[63,1],[60,1],[11,3],[67,1],[67,1],[67,1],[67,1],[67,1],[68,1],[68,1],[13,1],[13,1],[13,1]],performAction:t(function(n,c,f,r,m,e,he){var i=e.length-1;switch(m){case 1:break;case 2:this.$=[];break;case 3:this.$=e[i-1].concat(e[i]);break;case 4:this.$=e[i];break;case 5:case 6:this.$=[];break;case 7:r.addEntity(e[i-4]),r.addEntity(e[i-2]),r.addRelationship(e[i-4],e[i],e[i-2],e[i-3]),this.$=[e[i-4],e[i-2]];break;case 8:r.addEntity(e[i-8]),r.addEntity(e[i-4]),r.addRelationship(e[i-8],e[i],e[i-4],e[i-5]),r.setClass([e[i-8]],e[i-6]),r.setClass([e[i-4]],e[i-2]),this.$=[e[i-8],e[i-4]];break;case 9:r.addEntity(e[i-6]),r.addEntity(e[i-2]),r.addRelationship(e[i-6],e[i],e[i-2],e[i-3]),r.setClass([e[i-6]],e[i-4]),this.$=[e[i-6],e[i-2]];break;case 10:r.addEntity(e[i-6]),r.addEntity(e[i-4]),r.addRelationship(e[i-6],e[i],e[i-4],e[i-5]),r.setClass([e[i-4]],e[i-2]),this.$=[e[i-6],e[i-4]];break;case 11:r.addEntity(e[i-3]),r.addAttributes(e[i-3],e[i-1]),this.$=[e[i-3]];break;case 12:r.addEntity(e[i-5]),r.addAttributes(e[i-5],e[i-1]),r.setClass([e[i-5]],e[i-3]),this.$=[e[i-5]];break;case 13:r.addEntity(e[i-2]),this.$=[e[i-2]];break;case 14:r.addEntity(e[i-4]),r.setClass([e[i-4]],e[i-2]),this.$=[e[i-4]];break;case 15:r.addEntity(e[i]),this.$=[e[i]];break;case 16:r.addEntity(e[i-2]),r.setClass([e[i-2]],e[i]),this.$=[e[i-2]];break;case 17:r.addEntity(e[i-6],e[i-4]),r.addAttributes(e[i-6],e[i-1]),this.$=[e[i-6]];break;case 18:r.addEntity(e[i-8],e[i-6]),r.addAttributes(e[i-8],e[i-1]),r.setClass([e[i-8]],e[i-3]),this.$=[e[i-8]];break;case 19:r.addEntity(e[i-5],e[i-3]),this.$=[e[i-5]];break;case 20:r.addEntity(e[i-7],e[i-5]),r.setClass([e[i-7]],e[i-2]),this.$=[e[i-7]];break;case 21:r.addEntity(e[i-3],e[i-1]);break;case 22:r.addEntity(e[i-5],e[i-3]),r.setClass([e[i-5]],e[i]);break;case 23:case 24:this.$=e[i].trim(),r.setAccTitle(this.$);break;case 25:case 26:this.$=e[i].trim(),r.setAccDescription(this.$);break;case 27:if(!r.subgraphDepth)r.setDirection(e[i].value),this.$=[];else this.$=e[i];break;case 31:r.subgraphDepth=(r.subgraphDepth||1)-1,this.$=r.addSubGraph({text:e[i-2].id},e[i-1],{text:e[i-2].text});break;case 32:r.subgraphDepth=(r.subgraphDepth||0)+1,this.$={id:e[i-1],text:e[i-1]};break;case 33:r.subgraphDepth=(r.subgraphDepth||0)+1,this.$={id:e[i-4],text:e[i-2]};break;case 34:case 59:case 60:case 61:case 62:case 86:this.$=e[i];break;case 35:this.$=e[i-1]+" "+e[i];break;case 36:this.$={stmt:"dir",value:"TB"};break;case 37:this.$={stmt:"dir",value:"BT"};break;case 38:this.$={stmt:"dir",value:"RL"};break;case 39:this.$={stmt:"dir",value:"LR"};break;case 40:this.$=e[i-3],r.addClass(e[i-2],e[i-1]);break;case 41:case 42:case 63:case 72:this.$=[e[i]];break;case 43:case 44:this.$=e[i-2].concat([e[i]]);break;case 45:this.$=e[i-2],r.setClass(e[i-1],e[i]);break;case 46:this.$=e[i-3],r.addCssStyles(e[i-2],e[i-1]);break;case 47:this.$=[e[i]];break;case 48:e[i-2].push(e[i]),this.$=e[i-2];break;case 50:this.$=e[i-1]+e[i];break;case 58:case 84:case 85:this.$=e[i].replace(/"/g,"");break;case 64:e[i].push(e[i-1]),this.$=e[i];break;case 65:this.$={type:e[i-1],name:e[i]};break;case 66:this.$={type:e[i-2],name:e[i-1],keys:e[i]};break;case 67:this.$={type:e[i-2],name:e[i-1],comment:e[i]};break;case 68:this.$={type:e[i-3],name:e[i-2],keys:e[i-1],comment:e[i]};break;case 69:case 71:case 74:this.$=e[i];break;case 70:this.$=e[i-1]+e[i];break;case 73:e[i-2].push(e[i]),this.$=e[i-2];break;case 75:this.$=e[i].replace(/"/g,"");break;case 76:this.$={cardA:e[i],relType:e[i-1],cardB:e[i-2]};break;case 77:this.$=r.Cardinality.ZERO_OR_ONE;break;case 78:this.$=r.Cardinality.ZERO_OR_MORE;break;case 79:this.$=r.Cardinality.ONE_OR_MORE;break;case 80:this.$=r.Cardinality.ONLY_ONE;break;case 81:this.$=r.Cardinality.MD_PARENT;break;case 82:this.$=r.Identification.NON_IDENTIFYING;break;case 83:this.$=r.Identification.IDENTIFYING;break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},s(o,b,{5:3}),{6:[1,4],7:5,8:6,9:a,10:8,21:u,23:g,25:S,27:y,28:13,29:14,30:15,31:16,32:17,34:T,37:k,38:_,39:v,40:q,41:X,43:C,46:V,47:te,51:D,53:M,54:B,55:F},s(o,Ve,{1:[2,1]}),s(d,[2,3]),s(d,[2,4]),s(d,[2,5]),s(d,[2,15],{11:31,67:35,14:[1,32],16:[1,33],19:[1,34],69:Se,70:Te,71:Ce,72:Oe,73:Ne}),{22:[1,41]},{24:[1,42]},{26:[1,43]},s(d,[2,26]),s(d,[2,27]),s(d,[2,28]),s(d,[2,29]),s(d,[2,30]),s(d,b,{5:44}),s(se,[2,58]),s(se,[2,59]),s(se,[2,60]),s(se,[2,61]),s(se,[2,62]),s(d,[2,36]),s(d,[2,37]),s(d,[2,38]),s(d,[2,39]),{15:45,43:Y,44:P},{15:48,43:Y,44:P},{15:49,43:Y,44:P},{10:50,43:C,51:D,53:M,54:B,55:F},{10:51,43:C,51:D,53:M,54:B,55:F},{15:52,43:Y,44:P},{17:53,18:[1,54],56:55,57:56,61:ie},{10:58,43:C,51:D,53:M,54:B,55:F},{68:59,74:[1,60],75:[1,61]},s(re,[2,77]),s(re,[2,78]),s(re,[2,79]),s(re,[2,80]),s(re,[2,81]),s(d,[2,23]),s(d,[2,24]),s(d,[2,25]),{6:[1,63],7:5,8:6,9:a,10:8,21:u,23:g,25:S,27:y,28:13,29:14,30:15,31:16,32:17,33:[1,62],34:T,37:k,38:_,39:v,40:q,41:X,43:C,46:V,47:te,51:D,53:M,54:B,55:F},{12:ae,42:64,44:ne,45:K,48:66,49:67,51:oe,52:le},s(ue,[2,41]),s(ue,[2,42]),{15:72,43:Y,44:P,45:K},{12:ae,42:73,44:ne,45:K,48:66,49:67,51:oe,52:le},{6:de,9:be,19:[1,75],35:74,50:pe},{12:[1,79],14:[1,80]},s(d,[2,16],{67:35,11:81,16:[1,82],45:K,69:Se,70:Te,71:Ce,72:Oe,73:Ne}),{18:[1,83]},s(d,[2,13]),{17:84,18:[2,63],56:55,57:56,61:ie},{58:85,61:[1,86]},{61:[2,69],62:[1,87]},{20:[1,88]},{67:89,69:Se,70:Te,71:Ce,72:Oe,73:Ne},s(Me,[2,82]),s(Me,[2,83]),s(d,[2,31]),s(d,Ve),{6:de,9:be,35:90,45:Be,50:pe},{43:[1,92],44:[1,93]},s(Ge,[2,47],{49:94,12:ae,44:ne,51:oe,52:le}),s(J,[2,49]),s(J,[2,54]),s(J,[2,55]),s(J,[2,56]),s(J,[2,57]),s(d,[2,45],{45:K}),{6:de,9:be,35:95,45:Be,50:pe},s(d,[2,32]),{10:97,36:96,43:C,51:D,53:M,54:B,55:F},s(d,[2,51]),s(d,[2,52]),s(d,[2,53]),{13:98,43:fe,53:ke,76:ge},{15:102,43:Y,44:P},{10:103,43:C,51:D,53:M,54:B,55:F},{17:104,18:[1,105],56:55,57:56,61:ie},s(d,[2,11]),{18:[2,64]},s(ce,[2,65],{59:106,60:107,63:108,65:Fe,66:Pe}),s([18,61,65,66],[2,71]),{61:[2,70]},s(d,[2,21],{14:[1,112],16:[1,111]}),s([43,51,53,54,55],[2,76]),s(d,[2,40]),{12:ae,44:ne,48:113,49:67,51:oe,52:le},s(ue,[2,43]),s(ue,[2,44]),s(J,[2,50]),s(d,[2,46]),{10:115,20:[1,114],43:C,51:D,53:M,54:B,55:F},s(ze,[2,34]),s(d,[2,7]),s(d,[2,84]),s(d,[2,85]),s(d,[2,86]),{12:[1,116],45:K},{12:[1,118],14:[1,117]},{18:[1,119]},s(d,[2,14]),s(ce,[2,66],{60:120,64:[1,121],66:Pe}),s(ce,[2,67]),s(xe,[2,72]),s(ce,[2,75]),s(xe,[2,74]),{17:122,18:[1,123],56:55,57:56,61:ie},{15:124,43:Y,44:P},s(Ge,[2,48],{49:94,12:ae,44:ne,51:oe,52:le}),{6:de,9:be,35:125,50:pe},s(ze,[2,35]),{13:126,43:fe,53:ke,76:ge},{15:127,43:Y,44:P},{13:128,43:fe,53:ke,76:ge},s(d,[2,12]),s(ce,[2,68]),{63:129,65:Fe},{18:[1,130]},s(d,[2,19]),s(d,[2,22],{16:[1,131],45:K}),s(d,[2,33]),s(d,[2,10]),{12:[1,132],45:K},s(d,[2,9]),s(xe,[2,73]),s(d,[2,17]),{17:133,18:[1,134],56:55,57:56,61:ie},{13:135,43:fe,53:ke,76:ge},{18:[1,136]},s(d,[2,20]),s(d,[2,8]),s(d,[2,18])],defaultActions:{84:[2,64],87:[2,70]},parseError:t(function(n,c){if(c.recoverable)this.trace(n);else{var f=Error(n);throw f.hash=c,f}},"parseError"),parse:t(function(n){var c=this,f=[0],r=[],m=[null],e=[],he=this.table,i="",_e=0,Ue=0,Ke=0,Xe=2,Ze=1,$e=e.slice.call(arguments,1),E=Object.create(this.lexer),H={yy:{}};for(var Ie in this.yy)if(Object.prototype.hasOwnProperty.call(this.yy,Ie))H.yy[Ie]=this.yy[Ie];if(E.setInput(n,H.yy),H.yy.lexer=E,H.yy.parser=this,typeof E.yylloc>"u")E.yylloc={};var Re=E.yylloc;e.push(Re);var et=E.options&&E.options.ranges;if(typeof H.yy.parseError==="function")this.parseError=H.yy.parseError;else this.parseError=Object.getPrototypeOf(this).parseError;function tt(I){f.length=f.length-2*I,m.length=m.length-I,e.length=e.length-I}t(tt,"popStack");function je(){var I=r.pop()||E.lex()||Ze;if(typeof I!=="number"){if(I instanceof Array)r=I,I=r.pop();I=c.symbols_[I]||I}return I}t(je,"lex");var N,ve,Q,A,ut,De,ee={},me,w,qe,Ee;while(!0){if(Q=f[f.length-1],this.defaultActions[Q])A=this.defaultActions[Q];else{if(N===null||typeof N>"u")N=je();A=he[Q]&&he[Q][N]}if(typeof A>"u"||!A.length||!A[0]){var Le="";Ee=[];for(me in he[Q])if(this.terminals_[me]&&me>Xe)Ee.push("'"+this.terminals_[me]+"'");if(E.showPosition)Le="Parse error on line "+(_e+1)+`:
|
|
2
2
|
`+E.showPosition()+`
|
|
3
3
|
Expecting `+Ee.join(", ")+", got '"+(this.terminals_[N]||N)+"'";else Le="Parse error on line "+(_e+1)+": Unexpected "+(N==Ze?"end of input":"'"+(this.terminals_[N]||N)+"'");this.parseError(Le,{text:E.match,token:this.terminals_[N]||N,line:E.yylineno,loc:Re,expected:Ee})}if(A[0]instanceof Array&&A.length>1)throw Error("Parse Error: multiple actions possible at state: "+Q+", token: "+N);switch(A[0]){case 1:if(f.push(N),m.push(E.yytext),e.push(E.yylloc),f.push(A[1]),N=null,!ve){if(Ue=E.yyleng,i=E.yytext,_e=E.yylineno,Re=E.yylloc,Ke>0)Ke--}else N=ve,ve=null;break;case 2:if(w=this.productions_[A[1]][1],ee.$=m[m.length-w],ee._$={first_line:e[e.length-(w||1)].first_line,last_line:e[e.length-1].last_line,first_column:e[e.length-(w||1)].first_column,last_column:e[e.length-1].last_column},et)ee._$.range=[e[e.length-(w||1)].range[0],e[e.length-1].range[1]];if(De=this.performAction.apply(ee,[i,Ue,_e,H.yy,A[1],m,e].concat($e)),typeof De<"u")return De;if(w)f=f.slice(0,-1*w*2),m=m.slice(0,-1*w),e=e.slice(0,-1*w);f.push(this.productions_[A[1]][0]),m.push(ee.$),e.push(ee._$),qe=he[f[f.length-2]][f[f.length-1]],f.push(qe);break;case 3:return!0}}return!0},"parse")},Qe=function(){var Z={EOF:1,parseError:t(function(c,f){if(this.yy.parser)this.yy.parser.parseError(c,f);else throw Error(c)},"parseError"),setInput:t(function(n,c){if(this.yy=c||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];return this.offset=0,this},"setInput"),input:t(function(){var n=this._input[0];this.yytext+=n,this.yyleng++,this.offset++,this.match+=n,this.matched+=n;var c=n.match(/(?:\r\n?|\n).*/g);if(c)this.yylineno++,this.yylloc.last_line++;else this.yylloc.last_column++;if(this.options.ranges)this.yylloc.range[1]++;return this._input=this._input.slice(1),n},"input"),unput:t(function(n){var c=n.length,f=n.split(/(?:\r\n?|\n)/g);this._input=n+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-c),this.offset-=c;var r=this.match.split(/(?:\r\n?|\n)/g);if(this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),f.length-1)this.yylineno-=f.length-1;var m=this.yylloc.range;if(this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:f?(f.length===r.length?this.yylloc.first_column:0)+r[r.length-f.length].length-f[0].length:this.yylloc.first_column-c},this.options.ranges)this.yylloc.range=[m[0],m[0]+this.yyleng-c];return this.yyleng=this.yytext.length,this},"unput"),more:t(function(){return this._more=!0,this},"more"),reject:t(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:t(function(n){this.unput(this.match.slice(n))},"less"),pastInput:t(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:t(function(){var n=this.match;if(n.length<20)n+=this._input.substr(0,20-n.length);return(n.substr(0,20)+(n.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:t(function(){var n=this.pastInput(),c=Array(n.length+1).join("-");return n+this.upcomingInput()+`
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./index-5v9v41ap.js";import"./index-95t1hwr8.js";import{ah}from"./index-fqhpxzyb.js";export{ah as diagram};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{t,Fd,l,x,te,R,L,z,O,U,j,G,p,h,Io,Dl,_o,bf,kn,bA,Ui,oi,Bs,W}from"./index-5y0bvq4q.js";import{Al,du,fd,pu,na}from"./index-z0cpp5bc.js";import{on,vn}from"./index-b9b2nwdd.js";var dn=vn(function(Ke,tr){(function(e,r){typeof Ke=="object"&&typeof tr<"u"?tr.exports=r():typeof define=="function"&&define.amd?define(r):(e=typeof globalThis<"u"?globalThis:e||self).dayjs_plugin_isoWeek=r()})(Ke,function(){var e="day";return function(r,n,i){var a=function(w){return w.add(4-w.isoWeekday(),e)},s=n.prototype;s.isoWeekYear=function(){return a(this).year()},s.isoWeek=function(w){if(!this.$utils().u(w))return this.add(7*(w-this.isoWeek()),e);var D,H,_,rt,N=a(this),Y=(D=this.isoWeekYear(),H=this.$u,_=(H?i.utc:i)().year(D).startOf("year"),rt=4-_.isoWeekday(),_.isoWeekday()>4&&(rt+=7),_.add(rt,e));return N.diff(Y,"week")+1},s.isoWeekday=function(w){return this.$utils().u(w)?this.day()||7:this.day(this.day()%7?w:w-7)};var c=s.startOf;s.startOf=function(w,D){var H=this.$utils(),_=!!H.u(D)||D;return H.p(w)==="isoweek"?_?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):c.bind(this)(w,D)}}})});var mn=vn(function(er,rr){(function(e,r){typeof er=="object"&&typeof rr<"u"?rr.exports=r():typeof define=="function"&&define.amd?define(r):(e=typeof globalThis<"u"?globalThis:e||self).dayjs_plugin_customParseFormat=r()})(er,function(){var e={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,n=/\d/,i=/\d\d/,a=/\d\d?/,s=/\d*[^-_:/,()\s\d]+/,c={},w=function(A){return(A=+A)+(A>68?1900:2000)},D=function(A){return function(P){this[A]=+P}},H=[/[+-]\d\d:?(\d\d)?|Z/,function(A){(this.zone||(this.zone={})).offset=function(P){if(!P)return 0;if(P==="Z")return 0;var F=P.match(/([+-]|\d\d)/g),J=60*F[1]+(+F[2]||0);return J===0?0:F[0]==="+"?-J:J}(A)}],_=function(A){var P=c[A];return P&&(P.indexOf?P:P.s.concat(P.f))},rt=function(A,P){var F,J=c.meridiem;if(J){for(var lt=1;lt<=24;lt+=1)if(A.indexOf(J(lt,0,P))>-1){F=lt>12;break}}else F=A===(P?"pm":"PM");return F},N={A:[s,function(A){this.afternoon=rt(A,!1)}],a:[s,function(A){this.afternoon=rt(A,!0)}],Q:[n,function(A){this.month=3*(A-1)+1}],S:[n,function(A){this.milliseconds=100*+A}],SS:[i,function(A){this.milliseconds=10*+A}],SSS:[/\d{3}/,function(A){this.milliseconds=+A}],s:[a,D("seconds")],ss:[a,D("seconds")],m:[a,D("minutes")],mm:[a,D("minutes")],H:[a,D("hours")],h:[a,D("hours")],HH:[a,D("hours")],hh:[a,D("hours")],D:[a,D("day")],DD:[i,D("day")],Do:[s,function(A){var P=c.ordinal,F=A.match(/\d+/);if(this.day=F[0],P)for(var J=1;J<=31;J+=1)P(J).replace(/\[|\]/g,"")===A&&(this.day=J)}],w:[a,D("week")],ww:[i,D("week")],M:[a,D("month")],MM:[i,D("month")],MMM:[s,function(A){var P=_("months"),F=(_("monthsShort")||P.map(function(J){return J.slice(0,3)})).indexOf(A)+1;if(F<1)throw Error();this.month=F%12||F}],MMMM:[s,function(A){var P=_("months").indexOf(A)+1;if(P<1)throw Error();this.month=P%12||P}],Y:[/[+-]?\d+/,D("year")],YY:[i,function(A){this.year=w(A)}],YYYY:[/\d{4}/,D("year")],Z:H,ZZ:H};function Y(A){var P,F;P=A,F=c&&c.formats;for(var J=(A=P.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(tt,et,v){var S=v&&v.toUpperCase();return et||F[v]||e[v]||F[S].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(C,E,f){return E||f.slice(1)})})).match(r),lt=J.length,it=0;it<lt;it+=1){var V=J[it],M=N[V],u=M&&M[0],I=M&&M[1];J[it]=I?{regex:u,parser:I}:V.replace(/^\[|\]$/g,"")}return function(tt){for(var et={},v=0,S=0;v<lt;v+=1){var C=J[v];if(typeof C=="string")S+=C.length;else{var{regex:E,parser:f}=C,b=tt.slice(S),T=E.exec(b)[0];f.call(et,T),tt=tt.replace(T,"")}}return function(k){var X=k.afternoon;if(X!==void 0){var o=k.hours;X?o<12&&(k.hours+=12):o===12&&(k.hours=0),delete k.afternoon}}(et),et}}return function(A,P,F){F.p.customParseFormat=!0,A&&A.parseTwoDigitYear&&(w=A.parseTwoDigitYear);var J=P.prototype,lt=J.parse;J.parse=function(it){var{date:V,utc:M,args:u}=it;this.$u=M;var I=u[1];if(typeof I=="string"){var tt=u[2]===!0,et=u[3]===!0,v=tt||et,S=u[2];et&&(S=u[2]),c=this.$locale(),!tt&&S&&(c=F.Ls[S]),this.$d=function(b,T,k,X){try{if(["x","X"].indexOf(T)>-1)return new Date((T==="X"?1000:1)*b);var o=Y(T)(b),{year:q,month:m,day:dt,hours:d,minutes:Z,seconds:Q,milliseconds:ct,zone:ut,week:nt}=o,g=new Date,B=dt||(q||m?1:g.getDate()),K=q||g.getFullYear(),y=0;q&&!m||(y=m>0?m-1:g.getMonth());var mt,at=d||0,st=Z||0,ht=Q||0,yt=ct||0;return ut?new Date(Date.UTC(K,y,B,at,st,ht,yt+60*ut.offset*1000)):k?new Date(Date.UTC(K,y,B,at,st,ht,yt)):(mt=new Date(K,y,B,at,st,ht,yt),nt&&(mt=X(mt).week(nt).toDate()),mt)}catch(pt){return new Date("")}}(V,I,M,F),this.init(),S&&S!==!0&&(this.$L=this.locale(S).$L),v&&V!=this.format(I)&&(this.$d=new Date("")),c={}}else if(I instanceof Array)for(var C=I.length,E=1;E<=C;E+=1){u[1]=I[E-1];var f=F.apply(this,u);if(f.isValid()){this.$d=f.$d,this.$L=f.$L,this.init();break}E===C&&(this.$d=new Date(""))}else lt.call(this,it)}}})});var hn=vn(function(nr,ir){(function(e,r){typeof nr=="object"&&typeof ir<"u"?ir.exports=r():typeof define=="function"&&define.amd?define(r):(e=typeof globalThis<"u"?globalThis:e||self).dayjs_plugin_advancedFormat=r()})(nr,function(){return function(e,r){var n=r.prototype,i=n.format;n.format=function(a){var s=this,c=this.$locale();if(!this.isValid())return i.bind(this)(a);var w=this.$utils(),D=(a||"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(H){switch(H){case"Q":return Math.ceil((s.$M+1)/3);case"Do":return c.ordinal(s.$D);case"gggg":return s.weekYear();case"GGGG":return s.isoWeekYear();case"wo":return c.ordinal(s.week(),"W");case"w":case"ww":return w.s(s.week(),H==="w"?1:2,"0");case"W":case"WW":return w.s(s.isoWeek(),H==="W"?1:2,"0");case"k":case"kk":return w.s(String(s.$H===0?24:s.$H),H==="k"?1:2,"0");case"X":return Math.floor(s.$d.getTime()/1000);case"x":return s.$d.getTime();case"z":return"["+s.offsetName()+"]";case"zzz":return"["+s.offsetName("long")+"]";default:return H}});return i.bind(this)(D)}}})});var yn=vn(function(ar,sr){(function(e,r){typeof ar=="object"&&typeof sr<"u"?sr.exports=r():typeof define=="function"&&define.amd?define(r):(e=typeof globalThis<"u"?globalThis:e||self).dayjs_plugin_duration=r()})(ar,function(){var e,r,n=1000,i=60000,a=3600000,s=86400000,c=31536000000,w=2628000000,D=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,H=/\[([^\]]+)]|YYYY|YY|Y|M{1,2}|D{1,2}|H{1,2}|m{1,2}|s{1,2}|SSS/g,_={years:c,months:w,days:s,hours:a,minutes:i,seconds:n,milliseconds:1,weeks:604800000},rt=function(V){return V instanceof lt},N=function(V,M,u){return new lt(V,u,M.$l)},Y=function(V){return r.p(V)+"s"},A=function(V){return V<0},P=function(V){return A(V)?Math.ceil(V):Math.floor(V)},F=function(V){return Math.abs(V)},J=function(V,M){return V?A(V)?{negative:!0,format:""+F(V)+M}:{negative:!1,format:""+V+M}:{negative:!1,format:""}},lt=function(){function V(u,I,tt){var et=this;if(this.$d={},this.$l=tt,u===void 0&&(this.$ms=0,this.parseFromMilliseconds()),I)return N(u*_[Y(I)],this);if(typeof u=="number")return this.$ms=u,this.parseFromMilliseconds(),this;if(typeof u=="object")return Object.keys(u).forEach(function(C){et.$d[Y(C)]=u[C]}),this.calMilliseconds(),this;if(typeof u=="string"){var v=u.match(D);if(v){var S=v.slice(2).map(function(C){return C!=null?Number(C):0});return this.$d.years=S[0],this.$d.months=S[1],this.$d.weeks=S[2],this.$d.days=S[3],this.$d.hours=S[4],this.$d.minutes=S[5],this.$d.seconds=S[6],this.calMilliseconds(),this}}return this}var M=V.prototype;return M.calMilliseconds=function(){var u=this;this.$ms=Object.keys(this.$d).reduce(function(I,tt){return I+(u.$d[tt]||0)*_[tt]},0)},M.parseFromMilliseconds=function(){var u=this.$ms;this.$d.years=P(u/c),u%=c,this.$d.months=P(u/w),u%=w,this.$d.days=P(u/s),u%=s,this.$d.hours=P(u/a),u%=a,this.$d.minutes=P(u/i),u%=i,this.$d.seconds=P(u/n),u%=n,this.$d.milliseconds=u},M.toISOString=function(){var u=J(this.$d.years,"Y"),I=J(this.$d.months,"M"),tt=+this.$d.days||0;this.$d.weeks&&(tt+=7*this.$d.weeks);var et=J(tt,"D"),v=J(this.$d.hours,"H"),S=J(this.$d.minutes,"M"),C=this.$d.seconds||0;this.$d.milliseconds&&(C+=this.$d.milliseconds/1000,C=Math.round(1000*C)/1000);var E=J(C,"S"),f=u.negative||I.negative||et.negative||v.negative||S.negative||E.negative,b=v.format||S.format||E.format?"T":"",T=(f?"-":"")+"P"+u.format+I.format+et.format+b+v.format+S.format+E.format;return T==="P"||T==="-P"?"P0D":T},M.toJSON=function(){return this.toISOString()},M.format=function(u){var I=u||"YYYY-MM-DDTHH:mm:ss",tt={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 I.replace(H,function(et,v){return v||String(tt[et])})},M.as=function(u){return this.$ms/_[Y(u)]},M.get=function(u){var I=this.$ms,tt=Y(u);return tt==="milliseconds"?I%=1000:I=tt==="weeks"?P(I/_[tt]):this.$d[tt],I||0},M.add=function(u,I,tt){var et;return et=I?u*_[Y(I)]:rt(u)?u.$ms:N(u,this).$ms,N(this.$ms+et*(tt?-1:1),this)},M.subtract=function(u,I){return this.add(u,I,!0)},M.locale=function(u){var I=this.clone();return I.$l=u,I},M.clone=function(){return N(this.$ms,this)},M.humanize=function(u){return e().add(this.$ms,"ms").locale(this.$l).fromNow(!u)},M.valueOf=function(){return this.asMilliseconds()},M.milliseconds=function(){return this.get("milliseconds")},M.asMilliseconds=function(){return this.as("milliseconds")},M.seconds=function(){return this.get("seconds")},M.asSeconds=function(){return this.as("seconds")},M.minutes=function(){return this.get("minutes")},M.asMinutes=function(){return this.as("minutes")},M.hours=function(){return this.get("hours")},M.asHours=function(){return this.as("hours")},M.days=function(){return this.get("days")},M.asDays=function(){return this.as("days")},M.weeks=function(){return this.get("weeks")},M.asWeeks=function(){return this.as("weeks")},M.months=function(){return this.get("months")},M.asMonths=function(){return this.as("months")},M.years=function(){return this.get("years")},M.asYears=function(){return this.as("years")},V}(),it=function(V,M,u){return V.add(M.years()*u,"y").add(M.months()*u,"M").add(M.days()*u,"d").add(M.hours()*u,"h").add(M.minutes()*u,"m").add(M.seconds()*u,"s").add(M.milliseconds()*u,"ms")};return function(V,M,u){e=u,r=u().$utils(),u.duration=function(et,v){var S=u.locale();return N(et,{$l:S},v)},u.isDuration=rt;var I=M.prototype.add,tt=M.prototype.subtract;M.prototype.add=function(et,v){return rt(et)?it(this,et,1):I.bind(this)(et,v)},M.prototype.subtract=function(et,v){return rt(et)?it(this,et,-1):tt.bind(this)(et,v)}}})});function Ie(e,r){let n;if(r===void 0){for(let i of e)if(i!=null&&(n<i||n===void 0&&i>=i))n=i}else{let i=-1;for(let a of e)if((a=r(a,++i,e))!=null&&(n<a||n===void 0&&a>=a))n=a}return n}function Ue(e,r){let n;if(r===void 0){for(let i of e)if(i!=null&&(n>i||n===void 0&&i>=i))n=i}else{let i=-1;for(let a of e)if((a=r(a,++i,e))!=null&&(n>a||n===void 0&&a>=a))n=a}return n}function Le(e){return e}var me=1,We=2,Ee=3,de=4,wr=0.000001;function En(e){return"translate("+e+",0)"}function An(e){return"translate(0,"+e+")"}function On(e){return(r)=>+e(r)}function $n(e,r){if(r=Math.max(0,e.bandwidth()-r*2)/2,e.round())r=Math.round(r);return(n)=>+e(n)+r}function Hn(){return!this.__axis}function Mr(e,r){var n=[],i=null,a=null,s=6,c=6,w=3,D=typeof window<"u"&&window.devicePixelRatio>1?0:0.5,H=e===me||e===de?-1:1,_=e===de||e===We?"x":"y",rt=e===me||e===Ee?En:An;function N(Y){var A=i==null?r.ticks?r.ticks.apply(r,n):r.domain():i,P=a==null?r.tickFormat?r.tickFormat.apply(r,n):Le:a,F=Math.max(s,0)+w,J=r.range(),lt=+J[0]+D,it=+J[J.length-1]+D,V=(r.bandwidth?$n:On)(r.copy(),D),M=Y.selection?Y.selection():Y,u=M.selectAll(".domain").data([null]),I=M.selectAll(".tick").data(A,r).order(),tt=I.exit(),et=I.enter().append("g").attr("class","tick"),v=I.select("line"),S=I.select("text");if(u=u.merge(u.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),I=I.merge(et),v=v.merge(et.append("line").attr("stroke","currentColor").attr(_+"2",H*s)),S=S.merge(et.append("text").attr("fill","currentColor").attr(_,H*F).attr("dy",e===me?"0em":e===Ee?"0.71em":"0.32em")),Y!==M)u=u.transition(Y),I=I.transition(Y),v=v.transition(Y),S=S.transition(Y),tt=tt.transition(Y).attr("opacity",wr).attr("transform",function(C){return isFinite(C=V(C))?rt(C+D):this.getAttribute("transform")}),et.attr("opacity",wr).attr("transform",function(C){var E=this.parentNode.__axis;return rt((E&&isFinite(E=E(C))?E:V(C))+D)});tt.remove(),u.attr("d",e===de||e===We?c?"M"+H*c+","+lt+"H"+D+"V"+it+"H"+H*c:"M"+D+","+lt+"V"+it:c?"M"+lt+","+H*c+"V"+D+"H"+it+"V"+H*c:"M"+lt+","+D+"H"+it),I.attr("opacity",1).attr("transform",function(C){return rt(V(C)+D)}),v.attr(_+"2",H*s),S.attr(_,H*F).text(P),M.filter(Hn).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",e===We?"start":e===de?"end":"middle"),M.each(function(){this.__axis=V})}return N.scale=function(Y){return arguments.length?(r=Y,N):r},N.ticks=function(){return n=Array.from(arguments),N},N.tickArguments=function(Y){return arguments.length?(n=Y==null?[]:Array.from(Y),N):n.slice()},N.tickValues=function(Y){return arguments.length?(i=Y==null?null:Array.from(Y),N):i&&i.slice()},N.tickFormat=function(Y){return arguments.length?(a=Y,N):a},N.tickSize=function(Y){return arguments.length?(s=c=+Y,N):s},N.tickSizeInner=function(Y){return arguments.length?(s=+Y,N):s},N.tickSizeOuter=function(Y){return arguments.length?(c=+Y,N):c},N.tickPadding=function(Y){return arguments.length?(w=+Y,N):w},N.offset=function(Y){return arguments.length?(D=+Y,N):D},N}function Ae(e){return Mr(me,e)}function Oe(e){return Mr(Ee,e)}var Dr=Math.PI/180,Cr=180/Math.PI;var he=18,Sr=0.96422,_r=1,Yr=0.82521,Fr=0.13793103448275862,Xt=0.20689655172413793,Ir=3*Xt*Xt,Nn=Xt*Xt*Xt;function Ur(e){if(e instanceof _t)return new _t(e.l,e.a,e.b,e.opacity);if(e instanceof Wt)return Wr(e);if(!(e instanceof kn))e=bf(e);var r=Pe(e.r),n=Pe(e.g),i=Pe(e.b),a=$e((0.2225045*r+0.7168786*n+0.0606169*i)/_r),s,c;if(r===n&&n===i)s=c=a;else s=$e((0.4360747*r+0.3850649*n+0.1430804*i)/Sr),c=$e((0.0139322*r+0.0971045*n+0.7141733*i)/Yr);return new _t(116*a-16,500*(s-a),200*(a-c),e.opacity)}function Lr(e,r,n,i){return arguments.length===1?Ur(e):new _t(e,r,n,i==null?1:i)}function _t(e,r,n,i){this.l=+e,this.a=+r,this.b=+n,this.opacity=+i}Io(_t,Lr,Dl(_o,{brighter(e){return new _t(this.l+he*(e==null?1:e),this.a,this.b,this.opacity)},darker(e){return new _t(this.l-he*(e==null?1:e),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,r=isNaN(this.a)?e:e+this.a/500,n=isNaN(this.b)?e:e-this.b/200;return r=Sr*He(r),e=_r*He(e),n=Yr*He(n),new kn(Ne(3.1338561*r-1.6168667*e-0.4906146*n),Ne(-0.9787684*r+1.9161415*e+0.033454*n),Ne(0.0719453*r-0.2289914*e+1.4052427*n),this.opacity)}}));function $e(e){return e>Nn?Math.pow(e,0.3333333333333333):e/Ir+Fr}function He(e){return e>Xt?e*e*e:Ir*(e-Fr)}function Ne(e){return 255*(e<=0.0031308?12.92*e:1.055*Math.pow(e,0.4166666666666667)-0.055)}function Pe(e){return(e/=255)<=0.04045?e/12.92:Math.pow((e+0.055)/1.055,2.4)}function Pn(e){if(e instanceof Wt)return new Wt(e.h,e.c,e.l,e.opacity);if(!(e instanceof _t))e=Ur(e);if(e.a===0&&e.b===0)return new Wt(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var r=Math.atan2(e.b,e.a)*Cr;return new Wt(r<0?r+360:r,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}function ye(e,r,n,i){return arguments.length===1?Pn(e):new Wt(e,r,n,i==null?1:i)}function Wt(e,r,n,i){this.h=+e,this.c=+r,this.l=+n,this.opacity=+i}function Wr(e){if(isNaN(e.h))return new _t(e.l,0,0,e.opacity);var r=e.h*Dr;return new _t(e.l,Math.cos(r)*e.c,Math.sin(r)*e.c,e.opacity)}Io(Wt,ye,Dl(_o,{brighter(e){return new Wt(this.h,this.c,this.l+he*(e==null?1:e),this.opacity)},darker(e){return new Wt(this.h,this.c,this.l-he*(e==null?1:e),this.opacity)},rgb(){return Wr(this).rgb()}}));function Er(e){return function(r,n){var i=e((r=ye(r)).h,(n=ye(n)).h),a=Ui(r.c,n.c),s=Ui(r.l,n.l),c=Ui(r.opacity,n.opacity);return function(w){return r.h=i(w),r.c=a(w),r.l=s(w),r.opacity=c(w),r+""}}}var Ar=Er(bA),Ms=Er(Ui);function Ve(e,r){e=e.slice();var n=0,i=e.length-1,a=e[n],s=e[i],c;if(s<a)c=n,n=i,i=c,c=a,a=s,s=c;return e[n]=r.floor(a),e[i]=r.ceil(s),e}var ze=new Date,Re=new Date;function ft(e,r,n,i){function a(s){return e(s=arguments.length===0?new Date:new Date(+s)),s}if(a.floor=(s)=>(e(s=new Date(+s)),s),a.ceil=(s)=>(e(s=new Date(s-1)),r(s,1),e(s),s),a.round=(s)=>{let c=a(s),w=a.ceil(s);return s-c<w-s?c:w},a.offset=(s,c)=>(r(s=new Date(+s),c==null?1:Math.floor(c)),s),a.range=(s,c,w)=>{let D=[];if(s=a.ceil(s),w=w==null?1:Math.floor(w),!(s<c)||!(w>0))return D;let H;do D.push(H=new Date(+s)),r(s,w),e(s);while(H<s&&s<c);return D},a.filter=(s)=>ft((c)=>{if(c>=c)while(e(c),!s(c))c.setTime(c-1)},(c,w)=>{if(c>=c)if(w<0)while(++w<=0)while(r(c,-1),!s(c));else while(--w>=0)while(r(c,1),!s(c));}),n)a.count=(s,c)=>(ze.setTime(+s),Re.setTime(+c),e(ze),e(Re),Math.floor(n(ze,Re))),a.every=(s)=>(s=Math.floor(s),!isFinite(s)||!(s>0)?null:!(s>1)?a:a.filter(i?(c)=>i(c)%s===0:(c)=>a.count(0,c)%s===0));return a}var Yt=ft(()=>{},(e,r)=>{e.setTime(+e+r)},(e,r)=>r-e);Yt.every=(e)=>{if(e=Math.floor(e),!isFinite(e)||!(e>0))return null;if(!(e>1))return Yt;return ft((r)=>{r.setTime(Math.floor(r/e)*e)},(r,n)=>{r.setTime(+r+n*e)},(r,n)=>(n-r)/e)};var Or=Yt.range;var Mt=1000,Tt=60000,Ft=3600000,Ht=86400000,ie=604800000,Be=2592000000,ge=31536000000;var vt=ft((e)=>{e.setTime(e-e.getMilliseconds())},(e,r)=>{e.setTime(+e+r*Mt)},(e,r)=>(r-e)/Mt,(e)=>e.getUTCSeconds()),$r=vt.range;var Et=ft((e)=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Mt)},(e,r)=>{e.setTime(+e+r*Tt)},(e,r)=>(r-e)/Tt,(e)=>e.getMinutes()),Vn=Et.range,ke=ft((e)=>{e.setUTCSeconds(0,0)},(e,r)=>{e.setTime(+e+r*Tt)},(e,r)=>(r-e)/Tt,(e)=>e.getUTCMinutes()),zn=ke.range;var At=ft((e)=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Mt-e.getMinutes()*Tt)},(e,r)=>{e.setTime(+e+r*Ft)},(e,r)=>(r-e)/Ft,(e)=>e.getHours()),Rn=At.range,pe=ft((e)=>{e.setUTCMinutes(0,0,0)},(e,r)=>{e.setTime(+e+r*Ft)},(e,r)=>(r-e)/Ft,(e)=>e.getUTCHours()),Bn=pe.range;var Dt=ft((e)=>e.setHours(0,0,0,0),(e,r)=>e.setDate(e.getDate()+r),(e,r)=>(r-e-(r.getTimezoneOffset()-e.getTimezoneOffset())*Tt)/Ht,(e)=>e.getDate()-1),Zn=Dt.range,ae=ft((e)=>{e.setUTCHours(0,0,0,0)},(e,r)=>{e.setUTCDate(e.getUTCDate()+r)},(e,r)=>(r-e)/Ht,(e)=>e.getUTCDate()-1),jn=ae.range,Te=ft((e)=>{e.setUTCHours(0,0,0,0)},(e,r)=>{e.setUTCDate(e.getUTCDate()+r)},(e,r)=>(r-e)/Ht,(e)=>Math.floor(e/Ht)),Xn=Te.range;function Vt(e){return ft((r)=>{r.setDate(r.getDate()-(r.getDay()+7-e)%7),r.setHours(0,0,0,0)},(r,n)=>{r.setDate(r.getDate()+n*7)},(r,n)=>(n-r-(n.getTimezoneOffset()-r.getTimezoneOffset())*Tt)/ie)}var Ct=Vt(0),Nt=Vt(1),ve=Vt(2),xe=Vt(3),It=Vt(4),be=Vt(5),we=Vt(6),Hr=Ct.range,qn=Nt.range,Gn=ve.range,Qn=xe.range,Jn=It.range,Kn=be.range,ti=we.range;function zt(e){return ft((r)=>{r.setUTCDate(r.getUTCDate()-(r.getUTCDay()+7-e)%7),r.setUTCHours(0,0,0,0)},(r,n)=>{r.setUTCDate(r.getUTCDate()+n*7)},(r,n)=>(n-r)/ie)}var Rt=zt(0),qt=zt(1),Nr=zt(2),Pr=zt(3),Pt=zt(4),Vr=zt(5),zr=zt(6),Rr=Rt.range,ei=qt.range,ri=Nr.range,ni=Pr.range,ii=Pt.range,ai=Vr.range,si=zr.range;var Ot=ft((e)=>{e.setDate(1),e.setHours(0,0,0,0)},(e,r)=>{e.setMonth(e.getMonth()+r)},(e,r)=>r.getMonth()-e.getMonth()+(r.getFullYear()-e.getFullYear())*12,(e)=>e.getMonth()),ci=Ot.range,Me=ft((e)=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,r)=>{e.setUTCMonth(e.getUTCMonth()+r)},(e,r)=>r.getUTCMonth()-e.getUTCMonth()+(r.getUTCFullYear()-e.getUTCFullYear())*12,(e)=>e.getUTCMonth()),ui=Me.range;var xt=ft((e)=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,r)=>{e.setFullYear(e.getFullYear()+r)},(e,r)=>r.getFullYear()-e.getFullYear(),(e)=>e.getFullYear());xt.every=(e)=>!isFinite(e=Math.floor(e))||!(e>0)?null:ft((r)=>{r.setFullYear(Math.floor(r.getFullYear()/e)*e),r.setMonth(0,1),r.setHours(0,0,0,0)},(r,n)=>{r.setFullYear(r.getFullYear()+n*e)});var li=xt.range,St=ft((e)=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,r)=>{e.setUTCFullYear(e.getUTCFullYear()+r)},(e,r)=>r.getUTCFullYear()-e.getUTCFullYear(),(e)=>e.getUTCFullYear());St.every=(e)=>!isFinite(e=Math.floor(e))||!(e>0)?null:ft((r)=>{r.setUTCFullYear(Math.floor(r.getUTCFullYear()/e)*e),r.setUTCMonth(0,1),r.setUTCHours(0,0,0,0)},(r,n)=>{r.setUTCFullYear(r.getUTCFullYear()+n*e)});var fi=St.range;function Br(e,r,n,i,a,s){let c=[[vt,1,Mt],[vt,5,5*Mt],[vt,15,15*Mt],[vt,30,30*Mt],[s,1,Tt],[s,5,5*Tt],[s,15,15*Tt],[s,30,30*Tt],[a,1,Ft],[a,3,3*Ft],[a,6,6*Ft],[a,12,12*Ft],[i,1,Ht],[i,2,2*Ht],[n,1,ie],[r,1,Be],[r,3,3*Be],[e,1,ge]];function w(H,_,rt){let N=_<H;if(N)[H,_]=[_,H];let Y=rt&&typeof rt.range==="function"?rt:D(H,_,rt),A=Y?Y.range(H,+_+1):[];return N?A.reverse():A}function D(H,_,rt){let N=Math.abs(_-H)/rt,Y=Al(([,,F])=>F).right(c,N);if(Y===c.length)return e.every(du(H/ge,_/ge,rt));if(Y===0)return Yt.every(Math.max(du(H,_,rt),1));let[A,P]=c[N/c[Y-1][2]<c[Y][2]/N?Y-1:Y];return A.every(P)}return[w,D]}var[di,mi]=Br(St,Me,Rt,Te,pe,ke),[Ze,je]=Br(xt,Ot,Ct,Dt,At,Et);function Xe(e){if(0<=e.y&&e.y<100){var r=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return r.setFullYear(e.y),r}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function qe(e){if(0<=e.y&&e.y<100){var r=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return r.setUTCFullYear(e.y),r}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function se(e,r,n){return{y:e,m:r,d:n,H:0,M:0,S:0,L:0}}function Ge(e){var{dateTime:r,date:n,time:i,periods:a,days:s,shortDays:c,months:w,shortMonths:D}=e,H=oe(a),_=ce(a),rt=oe(s),N=ce(s),Y=oe(c),A=ce(c),P=oe(w),F=ce(w),J=oe(D),lt=ce(D),it={a:k,A:X,b:o,B:q,c:null,d:Qr,e:Qr,f:Oi,g:ji,G:qi,H:Wi,I:Ei,j:Ai,L:rn,m:$i,M:Hi,p:m,q:dt,Q:tn,s:en,S:Ni,u:Pi,U:Vi,V:zi,w:Ri,W:Bi,x:null,X:null,y:Zi,Y:Xi,Z:Gi,"%":Kr},V={a:d,A:Z,b:Q,B:ct,c:null,d:Jr,e:Jr,f:ta,g:fa,G:ma,H:Qi,I:Ji,j:Ki,L:an,m:ea,M:ra,p:ut,q:nt,Q:tn,s:en,S:ia,u:aa,U:sa,V:oa,w:ca,W:ua,x:null,X:null,y:la,Y:da,Z:ha,"%":Kr},M={a:v,A:S,b:C,B:E,c:f,d:qr,e:qr,f:Yi,g:Xr,G:jr,H:Gr,I:Gr,j:Di,L:_i,m:Mi,M:Ci,p:et,q:wi,Q:Ii,s:Li,S:Si,u:pi,U:Ti,V:vi,w:ki,W:xi,x:b,X:T,y:Xr,Y:jr,Z:bi,"%":Fi};it.x=u(n,it),it.X=u(i,it),it.c=u(r,it),V.x=u(n,V),V.X=u(i,V),V.c=u(r,V);function u(g,B){return function(K){var y=[],mt=-1,at=0,st=g.length,ht,yt,pt;if(!(K instanceof Date))K=new Date(+K);while(++mt<st)if(g.charCodeAt(mt)===37){if(y.push(g.slice(at,mt)),(yt=Zr[ht=g.charAt(++mt)])!=null)ht=g.charAt(++mt);else yt=ht==="e"?" ":"0";if(pt=B[ht])ht=pt(K,yt);y.push(ht),at=mt+1}return y.push(g.slice(at,mt)),y.join("")}}function I(g,B){return function(K){var y=se(1900,void 0,1),mt=tt(y,g,K+="",0),at,st;if(mt!=K.length)return null;if("Q"in y)return new Date(y.Q);if("s"in y)return new Date(y.s*1000+("L"in y?y.L:0));if(B&&!("Z"in y))y.Z=0;if("p"in y)y.H=y.H%12+y.p*12;if(y.m===void 0)y.m="q"in y?y.q:0;if("V"in y){if(y.V<1||y.V>53)return null;if(!("w"in y))y.w=1;if("Z"in y)at=qe(se(y.y,0,1)),st=at.getUTCDay(),at=st>4||st===0?qt.ceil(at):qt(at),at=ae.offset(at,(y.V-1)*7),y.y=at.getUTCFullYear(),y.m=at.getUTCMonth(),y.d=at.getUTCDate()+(y.w+6)%7;else at=Xe(se(y.y,0,1)),st=at.getDay(),at=st>4||st===0?Nt.ceil(at):Nt(at),at=Dt.offset(at,(y.V-1)*7),y.y=at.getFullYear(),y.m=at.getMonth(),y.d=at.getDate()+(y.w+6)%7}else if("W"in y||"U"in y){if(!("w"in y))y.w="u"in y?y.u%7:("W"in y)?1:0;st="Z"in y?qe(se(y.y,0,1)).getUTCDay():Xe(se(y.y,0,1)).getDay(),y.m=0,y.d="W"in y?(y.w+6)%7+y.W*7-(st+5)%7:y.w+y.U*7-(st+6)%7}if("Z"in y)return y.H+=y.Z/100|0,y.M+=y.Z%100,qe(y);return Xe(y)}}function tt(g,B,K,y){var mt=0,at=B.length,st=K.length,ht,yt;while(mt<at){if(y>=st)return-1;if(ht=B.charCodeAt(mt++),ht===37){if(ht=B.charAt(mt++),yt=M[ht in Zr?B.charAt(mt++):ht],!yt||(y=yt(g,K,y))<0)return-1}else if(ht!=K.charCodeAt(y++))return-1}return y}function et(g,B,K){var y=H.exec(B.slice(K));return y?(g.p=_.get(y[0].toLowerCase()),K+y[0].length):-1}function v(g,B,K){var y=Y.exec(B.slice(K));return y?(g.w=A.get(y[0].toLowerCase()),K+y[0].length):-1}function S(g,B,K){var y=rt.exec(B.slice(K));return y?(g.w=N.get(y[0].toLowerCase()),K+y[0].length):-1}function C(g,B,K){var y=J.exec(B.slice(K));return y?(g.m=lt.get(y[0].toLowerCase()),K+y[0].length):-1}function E(g,B,K){var y=P.exec(B.slice(K));return y?(g.m=F.get(y[0].toLowerCase()),K+y[0].length):-1}function f(g,B,K){return tt(g,r,B,K)}function b(g,B,K){return tt(g,n,B,K)}function T(g,B,K){return tt(g,i,B,K)}function k(g){return c[g.getDay()]}function X(g){return s[g.getDay()]}function o(g){return D[g.getMonth()]}function q(g){return w[g.getMonth()]}function m(g){return a[+(g.getHours()>=12)]}function dt(g){return 1+~~(g.getMonth()/3)}function d(g){return c[g.getUTCDay()]}function Z(g){return s[g.getUTCDay()]}function Q(g){return D[g.getUTCMonth()]}function ct(g){return w[g.getUTCMonth()]}function ut(g){return a[+(g.getUTCHours()>=12)]}function nt(g){return 1+~~(g.getUTCMonth()/3)}return{format:function(g){var B=u(g+="",it);return B.toString=function(){return g},B},parse:function(g){var B=I(g+="",!1);return B.toString=function(){return g},B},utcFormat:function(g){var B=u(g+="",V);return B.toString=function(){return g},B},utcParse:function(g){var B=I(g+="",!0);return B.toString=function(){return g},B}}}var Zr={"-":"",_:" ","0":"0"},kt=/^\s*\d+/,hi=/^%/,yi=/[\\^$*+?|[\]().{}]/g;function ot(e,r,n){var i=e<0?"-":"",a=(i?-e:e)+"",s=a.length;return i+(s<n?Array(n-s+1).join(r)+a:a)}function gi(e){return e.replace(yi,"\\$&")}function oe(e){return new RegExp("^(?:"+e.map(gi).join("|")+")","i")}function ce(e){return new Map(e.map((r,n)=>[r.toLowerCase(),n]))}function ki(e,r,n){var i=kt.exec(r.slice(n,n+1));return i?(e.w=+i[0],n+i[0].length):-1}function pi(e,r,n){var i=kt.exec(r.slice(n,n+1));return i?(e.u=+i[0],n+i[0].length):-1}function Ti(e,r,n){var i=kt.exec(r.slice(n,n+2));return i?(e.U=+i[0],n+i[0].length):-1}function vi(e,r,n){var i=kt.exec(r.slice(n,n+2));return i?(e.V=+i[0],n+i[0].length):-1}function xi(e,r,n){var i=kt.exec(r.slice(n,n+2));return i?(e.W=+i[0],n+i[0].length):-1}function jr(e,r,n){var i=kt.exec(r.slice(n,n+4));return i?(e.y=+i[0],n+i[0].length):-1}function Xr(e,r,n){var i=kt.exec(r.slice(n,n+2));return i?(e.y=+i[0]+(+i[0]>68?1900:2000),n+i[0].length):-1}function bi(e,r,n){var i=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(r.slice(n,n+6));return i?(e.Z=i[1]?0:-(i[2]+(i[3]||"00")),n+i[0].length):-1}function wi(e,r,n){var i=kt.exec(r.slice(n,n+1));return i?(e.q=i[0]*3-3,n+i[0].length):-1}function Mi(e,r,n){var i=kt.exec(r.slice(n,n+2));return i?(e.m=i[0]-1,n+i[0].length):-1}function qr(e,r,n){var i=kt.exec(r.slice(n,n+2));return i?(e.d=+i[0],n+i[0].length):-1}function Di(e,r,n){var i=kt.exec(r.slice(n,n+3));return i?(e.m=0,e.d=+i[0],n+i[0].length):-1}function Gr(e,r,n){var i=kt.exec(r.slice(n,n+2));return i?(e.H=+i[0],n+i[0].length):-1}function Ci(e,r,n){var i=kt.exec(r.slice(n,n+2));return i?(e.M=+i[0],n+i[0].length):-1}function Si(e,r,n){var i=kt.exec(r.slice(n,n+2));return i?(e.S=+i[0],n+i[0].length):-1}function _i(e,r,n){var i=kt.exec(r.slice(n,n+3));return i?(e.L=+i[0],n+i[0].length):-1}function Yi(e,r,n){var i=kt.exec(r.slice(n,n+6));return i?(e.L=Math.floor(i[0]/1000),n+i[0].length):-1}function Fi(e,r,n){var i=hi.exec(r.slice(n,n+1));return i?n+i[0].length:-1}function Ii(e,r,n){var i=kt.exec(r.slice(n));return i?(e.Q=+i[0],n+i[0].length):-1}function Li(e,r,n){var i=kt.exec(r.slice(n));return i?(e.s=+i[0],n+i[0].length):-1}function Qr(e,r){return ot(e.getDate(),r,2)}function Wi(e,r){return ot(e.getHours(),r,2)}function Ei(e,r){return ot(e.getHours()%12||12,r,2)}function Ai(e,r){return ot(1+Dt.count(xt(e),e),r,3)}function rn(e,r){return ot(e.getMilliseconds(),r,3)}function Oi(e,r){return rn(e,r)+"000"}function $i(e,r){return ot(e.getMonth()+1,r,2)}function Hi(e,r){return ot(e.getMinutes(),r,2)}function Ni(e,r){return ot(e.getSeconds(),r,2)}function Pi(e){var r=e.getDay();return r===0?7:r}function Vi(e,r){return ot(Ct.count(xt(e)-1,e),r,2)}function nn(e){var r=e.getDay();return r>=4||r===0?It(e):It.ceil(e)}function zi(e,r){return e=nn(e),ot(It.count(xt(e),e)+(xt(e).getDay()===4),r,2)}function Ri(e){return e.getDay()}function Bi(e,r){return ot(Nt.count(xt(e)-1,e),r,2)}function Zi(e,r){return ot(e.getFullYear()%100,r,2)}function ji(e,r){return e=nn(e),ot(e.getFullYear()%100,r,2)}function Xi(e,r){return ot(e.getFullYear()%1e4,r,4)}function qi(e,r){var n=e.getDay();return e=n>=4||n===0?It(e):It.ceil(e),ot(e.getFullYear()%1e4,r,4)}function Gi(e){var r=e.getTimezoneOffset();return(r>0?"-":(r*=-1,"+"))+ot(r/60|0,"0",2)+ot(r%60,"0",2)}function Jr(e,r){return ot(e.getUTCDate(),r,2)}function Qi(e,r){return ot(e.getUTCHours(),r,2)}function Ji(e,r){return ot(e.getUTCHours()%12||12,r,2)}function Ki(e,r){return ot(1+ae.count(St(e),e),r,3)}function an(e,r){return ot(e.getUTCMilliseconds(),r,3)}function ta(e,r){return an(e,r)+"000"}function ea(e,r){return ot(e.getUTCMonth()+1,r,2)}function ra(e,r){return ot(e.getUTCMinutes(),r,2)}function ia(e,r){return ot(e.getUTCSeconds(),r,2)}function aa(e){var r=e.getUTCDay();return r===0?7:r}function sa(e,r){return ot(Rt.count(St(e)-1,e),r,2)}function sn(e){var r=e.getUTCDay();return r>=4||r===0?Pt(e):Pt.ceil(e)}function oa(e,r){return e=sn(e),ot(Pt.count(St(e),e)+(St(e).getUTCDay()===4),r,2)}function ca(e){return e.getUTCDay()}function ua(e,r){return ot(qt.count(St(e)-1,e),r,2)}function la(e,r){return ot(e.getUTCFullYear()%100,r,2)}function fa(e,r){return e=sn(e),ot(e.getUTCFullYear()%100,r,2)}function da(e,r){return ot(e.getUTCFullYear()%1e4,r,4)}function ma(e,r){var n=e.getUTCDay();return e=n>=4||n===0?Pt(e):Pt.ceil(e),ot(e.getUTCFullYear()%1e4,r,4)}function ha(){return"+0000"}function Kr(){return"%"}function tn(e){return+e}function en(e){return Math.floor(+e/1000)}var Gt,Bt,cn,un,ln;Qe({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 Qe(e){return Gt=Ge(e),Bt=Gt.format,cn=Gt.parse,un=Gt.utcFormat,ln=Gt.utcParse,Gt}function ya(e){return new Date(e)}function ga(e){return e instanceof Date?+e:+new Date(+e)}function fn(e,r,n,i,a,s,c,w,D,H){var _=pu(),{invert:rt,domain:N}=_,Y=H(".%L"),A=H(":%S"),P=H("%I:%M"),F=H("%I %p"),J=H("%a %d"),lt=H("%b %d"),it=H("%B"),V=H("%Y");function M(u){return(D(u)<u?Y:w(u)<u?A:c(u)<u?P:s(u)<u?F:i(u)<u?a(u)<u?J:lt:n(u)<u?it:V)(u)}return _.invert=function(u){return new Date(rt(u))},_.domain=function(u){return arguments.length?N(Array.from(u,ga)):N().map(ya)},_.ticks=function(u){var I=N();return e(I[0],I[I.length-1],u==null?10:u)},_.tickFormat=function(u,I){return I==null?M:H(I)},_.nice=function(u){var I=N();if(!u||typeof u.range!=="function")u=r(I[0],I[I.length-1],u==null?10:u);return u?N(Ve(I,u)):_},_.copy=function(){return fd(_,fn(e,r,n,i,a,s,c,w,D,H))},_}function Je(){return oi.apply(fn(Ze,je,xt,Ot,Ct,Dt,At,Et,vt,Bt).domain([new Date(2000,0,1),new Date(2000,0,2)]),arguments)}var xn=on(Bs(),1),bt=on(Fd(),1),bn=on(dn(),1),wn=on(mn(),1),Mn=on(hn(),1),Jt=on(Fd(),1),Wn=on(yn(),1);var cr=function(){var e=t(function(E,f,b,T){for(b=b||{},T=E.length;T--;b[E[T]]=f);return b},"o"),r=[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],i=[1,27],a=[1,28],s=[1,29],c=[1,30],w=[1,31],D=[1,32],H=[1,33],_=[1,34],rt=[1,9],N=[1,10],Y=[1,11],A=[1,12],P=[1,13],F=[1,14],J=[1,15],lt=[1,16],it=[1,19],V=[1,20],M=[1,21],u=[1,22],I=[1,23],tt=[1,25],et=[1,35],v={trace:t(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:t(function(f,b,T,k,X,o,q){var m=o.length-1;switch(X){case 1:return o[m-1];case 2:this.$=[];break;case 3:o[m-1].push(o[m]),this.$=o[m-1];break;case 4:case 5:this.$=o[m];break;case 6:case 7:this.$=[];break;case 8:k.setWeekday("monday");break;case 9:k.setWeekday("tuesday");break;case 10:k.setWeekday("wednesday");break;case 11:k.setWeekday("thursday");break;case 12:k.setWeekday("friday");break;case 13:k.setWeekday("saturday");break;case 14:k.setWeekday("sunday");break;case 15:k.setWeekend("friday");break;case 16:k.setWeekend("saturday");break;case 17:k.setDateFormat(o[m].substr(11)),this.$=o[m].substr(11);break;case 18:k.enableInclusiveEndDates(),this.$=o[m].substr(18);break;case 19:k.TopAxis(),this.$=o[m].substr(8);break;case 20:k.setAxisFormat(o[m].substr(11)),this.$=o[m].substr(11);break;case 21:k.setTickInterval(o[m].substr(13)),this.$=o[m].substr(13);break;case 22:k.setExcludes(o[m].substr(9)),this.$=o[m].substr(9);break;case 23:k.setIncludes(o[m].substr(9)),this.$=o[m].substr(9);break;case 24:k.setTodayMarker(o[m].substr(12)),this.$=o[m].substr(12);break;case 27:k.setDiagramTitle(o[m].substr(6)),this.$=o[m].substr(6);break;case 28:this.$=o[m].trim(),k.setAccTitle(this.$);break;case 29:case 30:this.$=o[m].trim(),k.setAccDescription(this.$);break;case 31:k.addSection(o[m].substr(8)),this.$=o[m].substr(8);break;case 33:k.addTask(o[m-1],o[m]),this.$="task";break;case 34:this.$=o[m-1],k.setClickEvent(o[m-1],o[m],null);break;case 35:this.$=o[m-2],k.setClickEvent(o[m-2],o[m-1],o[m]);break;case 36:this.$=o[m-2],k.setClickEvent(o[m-2],o[m-1],null),k.setLink(o[m-2],o[m]);break;case 37:this.$=o[m-3],k.setClickEvent(o[m-3],o[m-2],o[m-1]),k.setLink(o[m-3],o[m]);break;case 38:this.$=o[m-2],k.setClickEvent(o[m-2],o[m],null),k.setLink(o[m-2],o[m-1]);break;case 39:this.$=o[m-3],k.setClickEvent(o[m-3],o[m-1],o[m]),k.setLink(o[m-3],o[m-2]);break;case 40:this.$=o[m-1],k.setLink(o[m-1],o[m]);break;case 41:case 47:this.$=o[m-1]+" "+o[m];break;case 42:case 43:case 45:this.$=o[m-2]+" "+o[m-1]+" "+o[m];break;case 44:case 46:this.$=o[m-3]+" "+o[m-2]+" "+o[m-1]+" "+o[m];break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},e(r,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:17,12:n,13:i,14:a,15:s,16:c,17:w,18:D,19:18,20:H,21:_,22:rt,23:N,24:Y,25:A,26:P,27:F,28:J,29:lt,30:it,31:V,33:M,35:u,36:I,37:24,38:tt,40:et},e(r,[2,7],{1:[2,1]}),e(r,[2,3]),{9:36,11:17,12:n,13:i,14:a,15:s,16:c,17:w,18:D,19:18,20:H,21:_,22:rt,23:N,24:Y,25:A,26:P,27:F,28:J,29:lt,30:it,31:V,33:M,35:u,36:I,37:24,38:tt,40:et},e(r,[2,5]),e(r,[2,6]),e(r,[2,17]),e(r,[2,18]),e(r,[2,19]),e(r,[2,20]),e(r,[2,21]),e(r,[2,22]),e(r,[2,23]),e(r,[2,24]),e(r,[2,25]),e(r,[2,26]),e(r,[2,27]),{32:[1,37]},{34:[1,38]},e(r,[2,30]),e(r,[2,31]),e(r,[2,32]),{39:[1,39]},e(r,[2,8]),e(r,[2,9]),e(r,[2,10]),e(r,[2,11]),e(r,[2,12]),e(r,[2,13]),e(r,[2,14]),e(r,[2,15]),e(r,[2,16]),{41:[1,40],43:[1,41]},e(r,[2,4]),e(r,[2,28]),e(r,[2,29]),e(r,[2,33]),e(r,[2,34],{42:[1,42],43:[1,43]}),e(r,[2,40],{41:[1,44]}),e(r,[2,35],{43:[1,45]}),e(r,[2,36]),e(r,[2,38],{42:[1,46]}),e(r,[2,37]),e(r,[2,39])],defaultActions:{},parseError:t(function(f,b){if(b.recoverable)this.trace(f);else{var T=Error(f);throw T.hash=b,T}},"parseError"),parse:t(function(f){var b=this,T=[0],k=[],X=[null],o=[],q=this.table,m="",dt=0,d=0,Z=0,Q=2,ct=1,ut=o.slice.call(arguments,1),nt=Object.create(this.lexer),g={yy:{}};for(var B in this.yy)if(Object.prototype.hasOwnProperty.call(this.yy,B))g.yy[B]=this.yy[B];if(nt.setInput(f,g.yy),g.yy.lexer=nt,g.yy.parser=this,typeof nt.yylloc>"u")nt.yylloc={};var K=nt.yylloc;o.push(K);var y=nt.options&&nt.options.ranges;if(typeof g.yy.parseError==="function")this.parseError=g.yy.parseError;else this.parseError=Object.getPrototypeOf(this).parseError;function mt(wt){T.length=T.length-2*wt,X.length=X.length-wt,o.length=o.length-wt}t(mt,"popStack");function at(){var wt=k.pop()||nt.lex()||ct;if(typeof wt!=="number"){if(wt instanceof Array)k=wt,wt=k.pop();wt=b.symbols_[wt]||wt}return wt}t(at,"lex");var st,ht,yt,pt,os,Ye,jt={},le,Lt,br,fe;while(!0){if(yt=T[T.length-1],this.defaultActions[yt])pt=this.defaultActions[yt];else{if(st===null||typeof st>"u")st=at();pt=q[yt]&&q[yt][st]}if(typeof pt>"u"||!pt.length||!pt[0]){var Fe="";fe=[];for(le in q[yt])if(this.terminals_[le]&&le>Q)fe.push("'"+this.terminals_[le]+"'");if(nt.showPosition)Fe="Parse error on line "+(dt+1)+`:
|
|
1
|
+
import{t,Fd,l,x,te,R,L,z,O,U,j,G,p,h,Io,Dl,_o,bf,kn,bA,Ui,oi,Bs,W}from"./index-5v9v41ap.js";import{Al,du,fd,pu,na}from"./index-dr7nhha9.js";import{on,vn}from"./index-b9b2nwdd.js";var dn=vn(function(Ke,tr){(function(e,r){typeof Ke=="object"&&typeof tr<"u"?tr.exports=r():typeof define=="function"&&define.amd?define(r):(e=typeof globalThis<"u"?globalThis:e||self).dayjs_plugin_isoWeek=r()})(Ke,function(){var e="day";return function(r,n,i){var a=function(w){return w.add(4-w.isoWeekday(),e)},s=n.prototype;s.isoWeekYear=function(){return a(this).year()},s.isoWeek=function(w){if(!this.$utils().u(w))return this.add(7*(w-this.isoWeek()),e);var D,H,_,rt,N=a(this),Y=(D=this.isoWeekYear(),H=this.$u,_=(H?i.utc:i)().year(D).startOf("year"),rt=4-_.isoWeekday(),_.isoWeekday()>4&&(rt+=7),_.add(rt,e));return N.diff(Y,"week")+1},s.isoWeekday=function(w){return this.$utils().u(w)?this.day()||7:this.day(this.day()%7?w:w-7)};var c=s.startOf;s.startOf=function(w,D){var H=this.$utils(),_=!!H.u(D)||D;return H.p(w)==="isoweek"?_?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):c.bind(this)(w,D)}}})});var mn=vn(function(er,rr){(function(e,r){typeof er=="object"&&typeof rr<"u"?rr.exports=r():typeof define=="function"&&define.amd?define(r):(e=typeof globalThis<"u"?globalThis:e||self).dayjs_plugin_customParseFormat=r()})(er,function(){var e={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,n=/\d/,i=/\d\d/,a=/\d\d?/,s=/\d*[^-_:/,()\s\d]+/,c={},w=function(A){return(A=+A)+(A>68?1900:2000)},D=function(A){return function(P){this[A]=+P}},H=[/[+-]\d\d:?(\d\d)?|Z/,function(A){(this.zone||(this.zone={})).offset=function(P){if(!P)return 0;if(P==="Z")return 0;var F=P.match(/([+-]|\d\d)/g),J=60*F[1]+(+F[2]||0);return J===0?0:F[0]==="+"?-J:J}(A)}],_=function(A){var P=c[A];return P&&(P.indexOf?P:P.s.concat(P.f))},rt=function(A,P){var F,J=c.meridiem;if(J){for(var lt=1;lt<=24;lt+=1)if(A.indexOf(J(lt,0,P))>-1){F=lt>12;break}}else F=A===(P?"pm":"PM");return F},N={A:[s,function(A){this.afternoon=rt(A,!1)}],a:[s,function(A){this.afternoon=rt(A,!0)}],Q:[n,function(A){this.month=3*(A-1)+1}],S:[n,function(A){this.milliseconds=100*+A}],SS:[i,function(A){this.milliseconds=10*+A}],SSS:[/\d{3}/,function(A){this.milliseconds=+A}],s:[a,D("seconds")],ss:[a,D("seconds")],m:[a,D("minutes")],mm:[a,D("minutes")],H:[a,D("hours")],h:[a,D("hours")],HH:[a,D("hours")],hh:[a,D("hours")],D:[a,D("day")],DD:[i,D("day")],Do:[s,function(A){var P=c.ordinal,F=A.match(/\d+/);if(this.day=F[0],P)for(var J=1;J<=31;J+=1)P(J).replace(/\[|\]/g,"")===A&&(this.day=J)}],w:[a,D("week")],ww:[i,D("week")],M:[a,D("month")],MM:[i,D("month")],MMM:[s,function(A){var P=_("months"),F=(_("monthsShort")||P.map(function(J){return J.slice(0,3)})).indexOf(A)+1;if(F<1)throw Error();this.month=F%12||F}],MMMM:[s,function(A){var P=_("months").indexOf(A)+1;if(P<1)throw Error();this.month=P%12||P}],Y:[/[+-]?\d+/,D("year")],YY:[i,function(A){this.year=w(A)}],YYYY:[/\d{4}/,D("year")],Z:H,ZZ:H};function Y(A){var P,F;P=A,F=c&&c.formats;for(var J=(A=P.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(tt,et,v){var S=v&&v.toUpperCase();return et||F[v]||e[v]||F[S].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(C,E,f){return E||f.slice(1)})})).match(r),lt=J.length,it=0;it<lt;it+=1){var V=J[it],M=N[V],u=M&&M[0],I=M&&M[1];J[it]=I?{regex:u,parser:I}:V.replace(/^\[|\]$/g,"")}return function(tt){for(var et={},v=0,S=0;v<lt;v+=1){var C=J[v];if(typeof C=="string")S+=C.length;else{var{regex:E,parser:f}=C,b=tt.slice(S),T=E.exec(b)[0];f.call(et,T),tt=tt.replace(T,"")}}return function(k){var X=k.afternoon;if(X!==void 0){var o=k.hours;X?o<12&&(k.hours+=12):o===12&&(k.hours=0),delete k.afternoon}}(et),et}}return function(A,P,F){F.p.customParseFormat=!0,A&&A.parseTwoDigitYear&&(w=A.parseTwoDigitYear);var J=P.prototype,lt=J.parse;J.parse=function(it){var{date:V,utc:M,args:u}=it;this.$u=M;var I=u[1];if(typeof I=="string"){var tt=u[2]===!0,et=u[3]===!0,v=tt||et,S=u[2];et&&(S=u[2]),c=this.$locale(),!tt&&S&&(c=F.Ls[S]),this.$d=function(b,T,k,X){try{if(["x","X"].indexOf(T)>-1)return new Date((T==="X"?1000:1)*b);var o=Y(T)(b),{year:q,month:m,day:dt,hours:d,minutes:Z,seconds:Q,milliseconds:ct,zone:ut,week:nt}=o,g=new Date,B=dt||(q||m?1:g.getDate()),K=q||g.getFullYear(),y=0;q&&!m||(y=m>0?m-1:g.getMonth());var mt,at=d||0,st=Z||0,ht=Q||0,yt=ct||0;return ut?new Date(Date.UTC(K,y,B,at,st,ht,yt+60*ut.offset*1000)):k?new Date(Date.UTC(K,y,B,at,st,ht,yt)):(mt=new Date(K,y,B,at,st,ht,yt),nt&&(mt=X(mt).week(nt).toDate()),mt)}catch(pt){return new Date("")}}(V,I,M,F),this.init(),S&&S!==!0&&(this.$L=this.locale(S).$L),v&&V!=this.format(I)&&(this.$d=new Date("")),c={}}else if(I instanceof Array)for(var C=I.length,E=1;E<=C;E+=1){u[1]=I[E-1];var f=F.apply(this,u);if(f.isValid()){this.$d=f.$d,this.$L=f.$L,this.init();break}E===C&&(this.$d=new Date(""))}else lt.call(this,it)}}})});var hn=vn(function(nr,ir){(function(e,r){typeof nr=="object"&&typeof ir<"u"?ir.exports=r():typeof define=="function"&&define.amd?define(r):(e=typeof globalThis<"u"?globalThis:e||self).dayjs_plugin_advancedFormat=r()})(nr,function(){return function(e,r){var n=r.prototype,i=n.format;n.format=function(a){var s=this,c=this.$locale();if(!this.isValid())return i.bind(this)(a);var w=this.$utils(),D=(a||"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(H){switch(H){case"Q":return Math.ceil((s.$M+1)/3);case"Do":return c.ordinal(s.$D);case"gggg":return s.weekYear();case"GGGG":return s.isoWeekYear();case"wo":return c.ordinal(s.week(),"W");case"w":case"ww":return w.s(s.week(),H==="w"?1:2,"0");case"W":case"WW":return w.s(s.isoWeek(),H==="W"?1:2,"0");case"k":case"kk":return w.s(String(s.$H===0?24:s.$H),H==="k"?1:2,"0");case"X":return Math.floor(s.$d.getTime()/1000);case"x":return s.$d.getTime();case"z":return"["+s.offsetName()+"]";case"zzz":return"["+s.offsetName("long")+"]";default:return H}});return i.bind(this)(D)}}})});var yn=vn(function(ar,sr){(function(e,r){typeof ar=="object"&&typeof sr<"u"?sr.exports=r():typeof define=="function"&&define.amd?define(r):(e=typeof globalThis<"u"?globalThis:e||self).dayjs_plugin_duration=r()})(ar,function(){var e,r,n=1000,i=60000,a=3600000,s=86400000,c=31536000000,w=2628000000,D=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,H=/\[([^\]]+)]|YYYY|YY|Y|M{1,2}|D{1,2}|H{1,2}|m{1,2}|s{1,2}|SSS/g,_={years:c,months:w,days:s,hours:a,minutes:i,seconds:n,milliseconds:1,weeks:604800000},rt=function(V){return V instanceof lt},N=function(V,M,u){return new lt(V,u,M.$l)},Y=function(V){return r.p(V)+"s"},A=function(V){return V<0},P=function(V){return A(V)?Math.ceil(V):Math.floor(V)},F=function(V){return Math.abs(V)},J=function(V,M){return V?A(V)?{negative:!0,format:""+F(V)+M}:{negative:!1,format:""+V+M}:{negative:!1,format:""}},lt=function(){function V(u,I,tt){var et=this;if(this.$d={},this.$l=tt,u===void 0&&(this.$ms=0,this.parseFromMilliseconds()),I)return N(u*_[Y(I)],this);if(typeof u=="number")return this.$ms=u,this.parseFromMilliseconds(),this;if(typeof u=="object")return Object.keys(u).forEach(function(C){et.$d[Y(C)]=u[C]}),this.calMilliseconds(),this;if(typeof u=="string"){var v=u.match(D);if(v){var S=v.slice(2).map(function(C){return C!=null?Number(C):0});return this.$d.years=S[0],this.$d.months=S[1],this.$d.weeks=S[2],this.$d.days=S[3],this.$d.hours=S[4],this.$d.minutes=S[5],this.$d.seconds=S[6],this.calMilliseconds(),this}}return this}var M=V.prototype;return M.calMilliseconds=function(){var u=this;this.$ms=Object.keys(this.$d).reduce(function(I,tt){return I+(u.$d[tt]||0)*_[tt]},0)},M.parseFromMilliseconds=function(){var u=this.$ms;this.$d.years=P(u/c),u%=c,this.$d.months=P(u/w),u%=w,this.$d.days=P(u/s),u%=s,this.$d.hours=P(u/a),u%=a,this.$d.minutes=P(u/i),u%=i,this.$d.seconds=P(u/n),u%=n,this.$d.milliseconds=u},M.toISOString=function(){var u=J(this.$d.years,"Y"),I=J(this.$d.months,"M"),tt=+this.$d.days||0;this.$d.weeks&&(tt+=7*this.$d.weeks);var et=J(tt,"D"),v=J(this.$d.hours,"H"),S=J(this.$d.minutes,"M"),C=this.$d.seconds||0;this.$d.milliseconds&&(C+=this.$d.milliseconds/1000,C=Math.round(1000*C)/1000);var E=J(C,"S"),f=u.negative||I.negative||et.negative||v.negative||S.negative||E.negative,b=v.format||S.format||E.format?"T":"",T=(f?"-":"")+"P"+u.format+I.format+et.format+b+v.format+S.format+E.format;return T==="P"||T==="-P"?"P0D":T},M.toJSON=function(){return this.toISOString()},M.format=function(u){var I=u||"YYYY-MM-DDTHH:mm:ss",tt={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 I.replace(H,function(et,v){return v||String(tt[et])})},M.as=function(u){return this.$ms/_[Y(u)]},M.get=function(u){var I=this.$ms,tt=Y(u);return tt==="milliseconds"?I%=1000:I=tt==="weeks"?P(I/_[tt]):this.$d[tt],I||0},M.add=function(u,I,tt){var et;return et=I?u*_[Y(I)]:rt(u)?u.$ms:N(u,this).$ms,N(this.$ms+et*(tt?-1:1),this)},M.subtract=function(u,I){return this.add(u,I,!0)},M.locale=function(u){var I=this.clone();return I.$l=u,I},M.clone=function(){return N(this.$ms,this)},M.humanize=function(u){return e().add(this.$ms,"ms").locale(this.$l).fromNow(!u)},M.valueOf=function(){return this.asMilliseconds()},M.milliseconds=function(){return this.get("milliseconds")},M.asMilliseconds=function(){return this.as("milliseconds")},M.seconds=function(){return this.get("seconds")},M.asSeconds=function(){return this.as("seconds")},M.minutes=function(){return this.get("minutes")},M.asMinutes=function(){return this.as("minutes")},M.hours=function(){return this.get("hours")},M.asHours=function(){return this.as("hours")},M.days=function(){return this.get("days")},M.asDays=function(){return this.as("days")},M.weeks=function(){return this.get("weeks")},M.asWeeks=function(){return this.as("weeks")},M.months=function(){return this.get("months")},M.asMonths=function(){return this.as("months")},M.years=function(){return this.get("years")},M.asYears=function(){return this.as("years")},V}(),it=function(V,M,u){return V.add(M.years()*u,"y").add(M.months()*u,"M").add(M.days()*u,"d").add(M.hours()*u,"h").add(M.minutes()*u,"m").add(M.seconds()*u,"s").add(M.milliseconds()*u,"ms")};return function(V,M,u){e=u,r=u().$utils(),u.duration=function(et,v){var S=u.locale();return N(et,{$l:S},v)},u.isDuration=rt;var I=M.prototype.add,tt=M.prototype.subtract;M.prototype.add=function(et,v){return rt(et)?it(this,et,1):I.bind(this)(et,v)},M.prototype.subtract=function(et,v){return rt(et)?it(this,et,-1):tt.bind(this)(et,v)}}})});function Ie(e,r){let n;if(r===void 0){for(let i of e)if(i!=null&&(n<i||n===void 0&&i>=i))n=i}else{let i=-1;for(let a of e)if((a=r(a,++i,e))!=null&&(n<a||n===void 0&&a>=a))n=a}return n}function Ue(e,r){let n;if(r===void 0){for(let i of e)if(i!=null&&(n>i||n===void 0&&i>=i))n=i}else{let i=-1;for(let a of e)if((a=r(a,++i,e))!=null&&(n>a||n===void 0&&a>=a))n=a}return n}function Le(e){return e}var me=1,We=2,Ee=3,de=4,wr=0.000001;function En(e){return"translate("+e+",0)"}function An(e){return"translate(0,"+e+")"}function On(e){return(r)=>+e(r)}function $n(e,r){if(r=Math.max(0,e.bandwidth()-r*2)/2,e.round())r=Math.round(r);return(n)=>+e(n)+r}function Hn(){return!this.__axis}function Mr(e,r){var n=[],i=null,a=null,s=6,c=6,w=3,D=typeof window<"u"&&window.devicePixelRatio>1?0:0.5,H=e===me||e===de?-1:1,_=e===de||e===We?"x":"y",rt=e===me||e===Ee?En:An;function N(Y){var A=i==null?r.ticks?r.ticks.apply(r,n):r.domain():i,P=a==null?r.tickFormat?r.tickFormat.apply(r,n):Le:a,F=Math.max(s,0)+w,J=r.range(),lt=+J[0]+D,it=+J[J.length-1]+D,V=(r.bandwidth?$n:On)(r.copy(),D),M=Y.selection?Y.selection():Y,u=M.selectAll(".domain").data([null]),I=M.selectAll(".tick").data(A,r).order(),tt=I.exit(),et=I.enter().append("g").attr("class","tick"),v=I.select("line"),S=I.select("text");if(u=u.merge(u.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),I=I.merge(et),v=v.merge(et.append("line").attr("stroke","currentColor").attr(_+"2",H*s)),S=S.merge(et.append("text").attr("fill","currentColor").attr(_,H*F).attr("dy",e===me?"0em":e===Ee?"0.71em":"0.32em")),Y!==M)u=u.transition(Y),I=I.transition(Y),v=v.transition(Y),S=S.transition(Y),tt=tt.transition(Y).attr("opacity",wr).attr("transform",function(C){return isFinite(C=V(C))?rt(C+D):this.getAttribute("transform")}),et.attr("opacity",wr).attr("transform",function(C){var E=this.parentNode.__axis;return rt((E&&isFinite(E=E(C))?E:V(C))+D)});tt.remove(),u.attr("d",e===de||e===We?c?"M"+H*c+","+lt+"H"+D+"V"+it+"H"+H*c:"M"+D+","+lt+"V"+it:c?"M"+lt+","+H*c+"V"+D+"H"+it+"V"+H*c:"M"+lt+","+D+"H"+it),I.attr("opacity",1).attr("transform",function(C){return rt(V(C)+D)}),v.attr(_+"2",H*s),S.attr(_,H*F).text(P),M.filter(Hn).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",e===We?"start":e===de?"end":"middle"),M.each(function(){this.__axis=V})}return N.scale=function(Y){return arguments.length?(r=Y,N):r},N.ticks=function(){return n=Array.from(arguments),N},N.tickArguments=function(Y){return arguments.length?(n=Y==null?[]:Array.from(Y),N):n.slice()},N.tickValues=function(Y){return arguments.length?(i=Y==null?null:Array.from(Y),N):i&&i.slice()},N.tickFormat=function(Y){return arguments.length?(a=Y,N):a},N.tickSize=function(Y){return arguments.length?(s=c=+Y,N):s},N.tickSizeInner=function(Y){return arguments.length?(s=+Y,N):s},N.tickSizeOuter=function(Y){return arguments.length?(c=+Y,N):c},N.tickPadding=function(Y){return arguments.length?(w=+Y,N):w},N.offset=function(Y){return arguments.length?(D=+Y,N):D},N}function Ae(e){return Mr(me,e)}function Oe(e){return Mr(Ee,e)}var Dr=Math.PI/180,Cr=180/Math.PI;var he=18,Sr=0.96422,_r=1,Yr=0.82521,Fr=0.13793103448275862,Xt=0.20689655172413793,Ir=3*Xt*Xt,Nn=Xt*Xt*Xt;function Ur(e){if(e instanceof _t)return new _t(e.l,e.a,e.b,e.opacity);if(e instanceof Wt)return Wr(e);if(!(e instanceof kn))e=bf(e);var r=Pe(e.r),n=Pe(e.g),i=Pe(e.b),a=$e((0.2225045*r+0.7168786*n+0.0606169*i)/_r),s,c;if(r===n&&n===i)s=c=a;else s=$e((0.4360747*r+0.3850649*n+0.1430804*i)/Sr),c=$e((0.0139322*r+0.0971045*n+0.7141733*i)/Yr);return new _t(116*a-16,500*(s-a),200*(a-c),e.opacity)}function Lr(e,r,n,i){return arguments.length===1?Ur(e):new _t(e,r,n,i==null?1:i)}function _t(e,r,n,i){this.l=+e,this.a=+r,this.b=+n,this.opacity=+i}Io(_t,Lr,Dl(_o,{brighter(e){return new _t(this.l+he*(e==null?1:e),this.a,this.b,this.opacity)},darker(e){return new _t(this.l-he*(e==null?1:e),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,r=isNaN(this.a)?e:e+this.a/500,n=isNaN(this.b)?e:e-this.b/200;return r=Sr*He(r),e=_r*He(e),n=Yr*He(n),new kn(Ne(3.1338561*r-1.6168667*e-0.4906146*n),Ne(-0.9787684*r+1.9161415*e+0.033454*n),Ne(0.0719453*r-0.2289914*e+1.4052427*n),this.opacity)}}));function $e(e){return e>Nn?Math.pow(e,0.3333333333333333):e/Ir+Fr}function He(e){return e>Xt?e*e*e:Ir*(e-Fr)}function Ne(e){return 255*(e<=0.0031308?12.92*e:1.055*Math.pow(e,0.4166666666666667)-0.055)}function Pe(e){return(e/=255)<=0.04045?e/12.92:Math.pow((e+0.055)/1.055,2.4)}function Pn(e){if(e instanceof Wt)return new Wt(e.h,e.c,e.l,e.opacity);if(!(e instanceof _t))e=Ur(e);if(e.a===0&&e.b===0)return new Wt(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var r=Math.atan2(e.b,e.a)*Cr;return new Wt(r<0?r+360:r,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}function ye(e,r,n,i){return arguments.length===1?Pn(e):new Wt(e,r,n,i==null?1:i)}function Wt(e,r,n,i){this.h=+e,this.c=+r,this.l=+n,this.opacity=+i}function Wr(e){if(isNaN(e.h))return new _t(e.l,0,0,e.opacity);var r=e.h*Dr;return new _t(e.l,Math.cos(r)*e.c,Math.sin(r)*e.c,e.opacity)}Io(Wt,ye,Dl(_o,{brighter(e){return new Wt(this.h,this.c,this.l+he*(e==null?1:e),this.opacity)},darker(e){return new Wt(this.h,this.c,this.l-he*(e==null?1:e),this.opacity)},rgb(){return Wr(this).rgb()}}));function Er(e){return function(r,n){var i=e((r=ye(r)).h,(n=ye(n)).h),a=Ui(r.c,n.c),s=Ui(r.l,n.l),c=Ui(r.opacity,n.opacity);return function(w){return r.h=i(w),r.c=a(w),r.l=s(w),r.opacity=c(w),r+""}}}var Ar=Er(bA),Ms=Er(Ui);function Ve(e,r){e=e.slice();var n=0,i=e.length-1,a=e[n],s=e[i],c;if(s<a)c=n,n=i,i=c,c=a,a=s,s=c;return e[n]=r.floor(a),e[i]=r.ceil(s),e}var ze=new Date,Re=new Date;function ft(e,r,n,i){function a(s){return e(s=arguments.length===0?new Date:new Date(+s)),s}if(a.floor=(s)=>(e(s=new Date(+s)),s),a.ceil=(s)=>(e(s=new Date(s-1)),r(s,1),e(s),s),a.round=(s)=>{let c=a(s),w=a.ceil(s);return s-c<w-s?c:w},a.offset=(s,c)=>(r(s=new Date(+s),c==null?1:Math.floor(c)),s),a.range=(s,c,w)=>{let D=[];if(s=a.ceil(s),w=w==null?1:Math.floor(w),!(s<c)||!(w>0))return D;let H;do D.push(H=new Date(+s)),r(s,w),e(s);while(H<s&&s<c);return D},a.filter=(s)=>ft((c)=>{if(c>=c)while(e(c),!s(c))c.setTime(c-1)},(c,w)=>{if(c>=c)if(w<0)while(++w<=0)while(r(c,-1),!s(c));else while(--w>=0)while(r(c,1),!s(c));}),n)a.count=(s,c)=>(ze.setTime(+s),Re.setTime(+c),e(ze),e(Re),Math.floor(n(ze,Re))),a.every=(s)=>(s=Math.floor(s),!isFinite(s)||!(s>0)?null:!(s>1)?a:a.filter(i?(c)=>i(c)%s===0:(c)=>a.count(0,c)%s===0));return a}var Yt=ft(()=>{},(e,r)=>{e.setTime(+e+r)},(e,r)=>r-e);Yt.every=(e)=>{if(e=Math.floor(e),!isFinite(e)||!(e>0))return null;if(!(e>1))return Yt;return ft((r)=>{r.setTime(Math.floor(r/e)*e)},(r,n)=>{r.setTime(+r+n*e)},(r,n)=>(n-r)/e)};var Or=Yt.range;var Mt=1000,Tt=60000,Ft=3600000,Ht=86400000,ie=604800000,Be=2592000000,ge=31536000000;var vt=ft((e)=>{e.setTime(e-e.getMilliseconds())},(e,r)=>{e.setTime(+e+r*Mt)},(e,r)=>(r-e)/Mt,(e)=>e.getUTCSeconds()),$r=vt.range;var Et=ft((e)=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Mt)},(e,r)=>{e.setTime(+e+r*Tt)},(e,r)=>(r-e)/Tt,(e)=>e.getMinutes()),Vn=Et.range,ke=ft((e)=>{e.setUTCSeconds(0,0)},(e,r)=>{e.setTime(+e+r*Tt)},(e,r)=>(r-e)/Tt,(e)=>e.getUTCMinutes()),zn=ke.range;var At=ft((e)=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Mt-e.getMinutes()*Tt)},(e,r)=>{e.setTime(+e+r*Ft)},(e,r)=>(r-e)/Ft,(e)=>e.getHours()),Rn=At.range,pe=ft((e)=>{e.setUTCMinutes(0,0,0)},(e,r)=>{e.setTime(+e+r*Ft)},(e,r)=>(r-e)/Ft,(e)=>e.getUTCHours()),Bn=pe.range;var Dt=ft((e)=>e.setHours(0,0,0,0),(e,r)=>e.setDate(e.getDate()+r),(e,r)=>(r-e-(r.getTimezoneOffset()-e.getTimezoneOffset())*Tt)/Ht,(e)=>e.getDate()-1),Zn=Dt.range,ae=ft((e)=>{e.setUTCHours(0,0,0,0)},(e,r)=>{e.setUTCDate(e.getUTCDate()+r)},(e,r)=>(r-e)/Ht,(e)=>e.getUTCDate()-1),jn=ae.range,Te=ft((e)=>{e.setUTCHours(0,0,0,0)},(e,r)=>{e.setUTCDate(e.getUTCDate()+r)},(e,r)=>(r-e)/Ht,(e)=>Math.floor(e/Ht)),Xn=Te.range;function Vt(e){return ft((r)=>{r.setDate(r.getDate()-(r.getDay()+7-e)%7),r.setHours(0,0,0,0)},(r,n)=>{r.setDate(r.getDate()+n*7)},(r,n)=>(n-r-(n.getTimezoneOffset()-r.getTimezoneOffset())*Tt)/ie)}var Ct=Vt(0),Nt=Vt(1),ve=Vt(2),xe=Vt(3),It=Vt(4),be=Vt(5),we=Vt(6),Hr=Ct.range,qn=Nt.range,Gn=ve.range,Qn=xe.range,Jn=It.range,Kn=be.range,ti=we.range;function zt(e){return ft((r)=>{r.setUTCDate(r.getUTCDate()-(r.getUTCDay()+7-e)%7),r.setUTCHours(0,0,0,0)},(r,n)=>{r.setUTCDate(r.getUTCDate()+n*7)},(r,n)=>(n-r)/ie)}var Rt=zt(0),qt=zt(1),Nr=zt(2),Pr=zt(3),Pt=zt(4),Vr=zt(5),zr=zt(6),Rr=Rt.range,ei=qt.range,ri=Nr.range,ni=Pr.range,ii=Pt.range,ai=Vr.range,si=zr.range;var Ot=ft((e)=>{e.setDate(1),e.setHours(0,0,0,0)},(e,r)=>{e.setMonth(e.getMonth()+r)},(e,r)=>r.getMonth()-e.getMonth()+(r.getFullYear()-e.getFullYear())*12,(e)=>e.getMonth()),ci=Ot.range,Me=ft((e)=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,r)=>{e.setUTCMonth(e.getUTCMonth()+r)},(e,r)=>r.getUTCMonth()-e.getUTCMonth()+(r.getUTCFullYear()-e.getUTCFullYear())*12,(e)=>e.getUTCMonth()),ui=Me.range;var xt=ft((e)=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,r)=>{e.setFullYear(e.getFullYear()+r)},(e,r)=>r.getFullYear()-e.getFullYear(),(e)=>e.getFullYear());xt.every=(e)=>!isFinite(e=Math.floor(e))||!(e>0)?null:ft((r)=>{r.setFullYear(Math.floor(r.getFullYear()/e)*e),r.setMonth(0,1),r.setHours(0,0,0,0)},(r,n)=>{r.setFullYear(r.getFullYear()+n*e)});var li=xt.range,St=ft((e)=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,r)=>{e.setUTCFullYear(e.getUTCFullYear()+r)},(e,r)=>r.getUTCFullYear()-e.getUTCFullYear(),(e)=>e.getUTCFullYear());St.every=(e)=>!isFinite(e=Math.floor(e))||!(e>0)?null:ft((r)=>{r.setUTCFullYear(Math.floor(r.getUTCFullYear()/e)*e),r.setUTCMonth(0,1),r.setUTCHours(0,0,0,0)},(r,n)=>{r.setUTCFullYear(r.getUTCFullYear()+n*e)});var fi=St.range;function Br(e,r,n,i,a,s){let c=[[vt,1,Mt],[vt,5,5*Mt],[vt,15,15*Mt],[vt,30,30*Mt],[s,1,Tt],[s,5,5*Tt],[s,15,15*Tt],[s,30,30*Tt],[a,1,Ft],[a,3,3*Ft],[a,6,6*Ft],[a,12,12*Ft],[i,1,Ht],[i,2,2*Ht],[n,1,ie],[r,1,Be],[r,3,3*Be],[e,1,ge]];function w(H,_,rt){let N=_<H;if(N)[H,_]=[_,H];let Y=rt&&typeof rt.range==="function"?rt:D(H,_,rt),A=Y?Y.range(H,+_+1):[];return N?A.reverse():A}function D(H,_,rt){let N=Math.abs(_-H)/rt,Y=Al(([,,F])=>F).right(c,N);if(Y===c.length)return e.every(du(H/ge,_/ge,rt));if(Y===0)return Yt.every(Math.max(du(H,_,rt),1));let[A,P]=c[N/c[Y-1][2]<c[Y][2]/N?Y-1:Y];return A.every(P)}return[w,D]}var[di,mi]=Br(St,Me,Rt,Te,pe,ke),[Ze,je]=Br(xt,Ot,Ct,Dt,At,Et);function Xe(e){if(0<=e.y&&e.y<100){var r=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return r.setFullYear(e.y),r}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function qe(e){if(0<=e.y&&e.y<100){var r=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return r.setUTCFullYear(e.y),r}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function se(e,r,n){return{y:e,m:r,d:n,H:0,M:0,S:0,L:0}}function Ge(e){var{dateTime:r,date:n,time:i,periods:a,days:s,shortDays:c,months:w,shortMonths:D}=e,H=oe(a),_=ce(a),rt=oe(s),N=ce(s),Y=oe(c),A=ce(c),P=oe(w),F=ce(w),J=oe(D),lt=ce(D),it={a:k,A:X,b:o,B:q,c:null,d:Qr,e:Qr,f:Oi,g:ji,G:qi,H:Wi,I:Ei,j:Ai,L:rn,m:$i,M:Hi,p:m,q:dt,Q:tn,s:en,S:Ni,u:Pi,U:Vi,V:zi,w:Ri,W:Bi,x:null,X:null,y:Zi,Y:Xi,Z:Gi,"%":Kr},V={a:d,A:Z,b:Q,B:ct,c:null,d:Jr,e:Jr,f:ta,g:fa,G:ma,H:Qi,I:Ji,j:Ki,L:an,m:ea,M:ra,p:ut,q:nt,Q:tn,s:en,S:ia,u:aa,U:sa,V:oa,w:ca,W:ua,x:null,X:null,y:la,Y:da,Z:ha,"%":Kr},M={a:v,A:S,b:C,B:E,c:f,d:qr,e:qr,f:Yi,g:Xr,G:jr,H:Gr,I:Gr,j:Di,L:_i,m:Mi,M:Ci,p:et,q:wi,Q:Ii,s:Li,S:Si,u:pi,U:Ti,V:vi,w:ki,W:xi,x:b,X:T,y:Xr,Y:jr,Z:bi,"%":Fi};it.x=u(n,it),it.X=u(i,it),it.c=u(r,it),V.x=u(n,V),V.X=u(i,V),V.c=u(r,V);function u(g,B){return function(K){var y=[],mt=-1,at=0,st=g.length,ht,yt,pt;if(!(K instanceof Date))K=new Date(+K);while(++mt<st)if(g.charCodeAt(mt)===37){if(y.push(g.slice(at,mt)),(yt=Zr[ht=g.charAt(++mt)])!=null)ht=g.charAt(++mt);else yt=ht==="e"?" ":"0";if(pt=B[ht])ht=pt(K,yt);y.push(ht),at=mt+1}return y.push(g.slice(at,mt)),y.join("")}}function I(g,B){return function(K){var y=se(1900,void 0,1),mt=tt(y,g,K+="",0),at,st;if(mt!=K.length)return null;if("Q"in y)return new Date(y.Q);if("s"in y)return new Date(y.s*1000+("L"in y?y.L:0));if(B&&!("Z"in y))y.Z=0;if("p"in y)y.H=y.H%12+y.p*12;if(y.m===void 0)y.m="q"in y?y.q:0;if("V"in y){if(y.V<1||y.V>53)return null;if(!("w"in y))y.w=1;if("Z"in y)at=qe(se(y.y,0,1)),st=at.getUTCDay(),at=st>4||st===0?qt.ceil(at):qt(at),at=ae.offset(at,(y.V-1)*7),y.y=at.getUTCFullYear(),y.m=at.getUTCMonth(),y.d=at.getUTCDate()+(y.w+6)%7;else at=Xe(se(y.y,0,1)),st=at.getDay(),at=st>4||st===0?Nt.ceil(at):Nt(at),at=Dt.offset(at,(y.V-1)*7),y.y=at.getFullYear(),y.m=at.getMonth(),y.d=at.getDate()+(y.w+6)%7}else if("W"in y||"U"in y){if(!("w"in y))y.w="u"in y?y.u%7:("W"in y)?1:0;st="Z"in y?qe(se(y.y,0,1)).getUTCDay():Xe(se(y.y,0,1)).getDay(),y.m=0,y.d="W"in y?(y.w+6)%7+y.W*7-(st+5)%7:y.w+y.U*7-(st+6)%7}if("Z"in y)return y.H+=y.Z/100|0,y.M+=y.Z%100,qe(y);return Xe(y)}}function tt(g,B,K,y){var mt=0,at=B.length,st=K.length,ht,yt;while(mt<at){if(y>=st)return-1;if(ht=B.charCodeAt(mt++),ht===37){if(ht=B.charAt(mt++),yt=M[ht in Zr?B.charAt(mt++):ht],!yt||(y=yt(g,K,y))<0)return-1}else if(ht!=K.charCodeAt(y++))return-1}return y}function et(g,B,K){var y=H.exec(B.slice(K));return y?(g.p=_.get(y[0].toLowerCase()),K+y[0].length):-1}function v(g,B,K){var y=Y.exec(B.slice(K));return y?(g.w=A.get(y[0].toLowerCase()),K+y[0].length):-1}function S(g,B,K){var y=rt.exec(B.slice(K));return y?(g.w=N.get(y[0].toLowerCase()),K+y[0].length):-1}function C(g,B,K){var y=J.exec(B.slice(K));return y?(g.m=lt.get(y[0].toLowerCase()),K+y[0].length):-1}function E(g,B,K){var y=P.exec(B.slice(K));return y?(g.m=F.get(y[0].toLowerCase()),K+y[0].length):-1}function f(g,B,K){return tt(g,r,B,K)}function b(g,B,K){return tt(g,n,B,K)}function T(g,B,K){return tt(g,i,B,K)}function k(g){return c[g.getDay()]}function X(g){return s[g.getDay()]}function o(g){return D[g.getMonth()]}function q(g){return w[g.getMonth()]}function m(g){return a[+(g.getHours()>=12)]}function dt(g){return 1+~~(g.getMonth()/3)}function d(g){return c[g.getUTCDay()]}function Z(g){return s[g.getUTCDay()]}function Q(g){return D[g.getUTCMonth()]}function ct(g){return w[g.getUTCMonth()]}function ut(g){return a[+(g.getUTCHours()>=12)]}function nt(g){return 1+~~(g.getUTCMonth()/3)}return{format:function(g){var B=u(g+="",it);return B.toString=function(){return g},B},parse:function(g){var B=I(g+="",!1);return B.toString=function(){return g},B},utcFormat:function(g){var B=u(g+="",V);return B.toString=function(){return g},B},utcParse:function(g){var B=I(g+="",!0);return B.toString=function(){return g},B}}}var Zr={"-":"",_:" ","0":"0"},kt=/^\s*\d+/,hi=/^%/,yi=/[\\^$*+?|[\]().{}]/g;function ot(e,r,n){var i=e<0?"-":"",a=(i?-e:e)+"",s=a.length;return i+(s<n?Array(n-s+1).join(r)+a:a)}function gi(e){return e.replace(yi,"\\$&")}function oe(e){return new RegExp("^(?:"+e.map(gi).join("|")+")","i")}function ce(e){return new Map(e.map((r,n)=>[r.toLowerCase(),n]))}function ki(e,r,n){var i=kt.exec(r.slice(n,n+1));return i?(e.w=+i[0],n+i[0].length):-1}function pi(e,r,n){var i=kt.exec(r.slice(n,n+1));return i?(e.u=+i[0],n+i[0].length):-1}function Ti(e,r,n){var i=kt.exec(r.slice(n,n+2));return i?(e.U=+i[0],n+i[0].length):-1}function vi(e,r,n){var i=kt.exec(r.slice(n,n+2));return i?(e.V=+i[0],n+i[0].length):-1}function xi(e,r,n){var i=kt.exec(r.slice(n,n+2));return i?(e.W=+i[0],n+i[0].length):-1}function jr(e,r,n){var i=kt.exec(r.slice(n,n+4));return i?(e.y=+i[0],n+i[0].length):-1}function Xr(e,r,n){var i=kt.exec(r.slice(n,n+2));return i?(e.y=+i[0]+(+i[0]>68?1900:2000),n+i[0].length):-1}function bi(e,r,n){var i=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(r.slice(n,n+6));return i?(e.Z=i[1]?0:-(i[2]+(i[3]||"00")),n+i[0].length):-1}function wi(e,r,n){var i=kt.exec(r.slice(n,n+1));return i?(e.q=i[0]*3-3,n+i[0].length):-1}function Mi(e,r,n){var i=kt.exec(r.slice(n,n+2));return i?(e.m=i[0]-1,n+i[0].length):-1}function qr(e,r,n){var i=kt.exec(r.slice(n,n+2));return i?(e.d=+i[0],n+i[0].length):-1}function Di(e,r,n){var i=kt.exec(r.slice(n,n+3));return i?(e.m=0,e.d=+i[0],n+i[0].length):-1}function Gr(e,r,n){var i=kt.exec(r.slice(n,n+2));return i?(e.H=+i[0],n+i[0].length):-1}function Ci(e,r,n){var i=kt.exec(r.slice(n,n+2));return i?(e.M=+i[0],n+i[0].length):-1}function Si(e,r,n){var i=kt.exec(r.slice(n,n+2));return i?(e.S=+i[0],n+i[0].length):-1}function _i(e,r,n){var i=kt.exec(r.slice(n,n+3));return i?(e.L=+i[0],n+i[0].length):-1}function Yi(e,r,n){var i=kt.exec(r.slice(n,n+6));return i?(e.L=Math.floor(i[0]/1000),n+i[0].length):-1}function Fi(e,r,n){var i=hi.exec(r.slice(n,n+1));return i?n+i[0].length:-1}function Ii(e,r,n){var i=kt.exec(r.slice(n));return i?(e.Q=+i[0],n+i[0].length):-1}function Li(e,r,n){var i=kt.exec(r.slice(n));return i?(e.s=+i[0],n+i[0].length):-1}function Qr(e,r){return ot(e.getDate(),r,2)}function Wi(e,r){return ot(e.getHours(),r,2)}function Ei(e,r){return ot(e.getHours()%12||12,r,2)}function Ai(e,r){return ot(1+Dt.count(xt(e),e),r,3)}function rn(e,r){return ot(e.getMilliseconds(),r,3)}function Oi(e,r){return rn(e,r)+"000"}function $i(e,r){return ot(e.getMonth()+1,r,2)}function Hi(e,r){return ot(e.getMinutes(),r,2)}function Ni(e,r){return ot(e.getSeconds(),r,2)}function Pi(e){var r=e.getDay();return r===0?7:r}function Vi(e,r){return ot(Ct.count(xt(e)-1,e),r,2)}function nn(e){var r=e.getDay();return r>=4||r===0?It(e):It.ceil(e)}function zi(e,r){return e=nn(e),ot(It.count(xt(e),e)+(xt(e).getDay()===4),r,2)}function Ri(e){return e.getDay()}function Bi(e,r){return ot(Nt.count(xt(e)-1,e),r,2)}function Zi(e,r){return ot(e.getFullYear()%100,r,2)}function ji(e,r){return e=nn(e),ot(e.getFullYear()%100,r,2)}function Xi(e,r){return ot(e.getFullYear()%1e4,r,4)}function qi(e,r){var n=e.getDay();return e=n>=4||n===0?It(e):It.ceil(e),ot(e.getFullYear()%1e4,r,4)}function Gi(e){var r=e.getTimezoneOffset();return(r>0?"-":(r*=-1,"+"))+ot(r/60|0,"0",2)+ot(r%60,"0",2)}function Jr(e,r){return ot(e.getUTCDate(),r,2)}function Qi(e,r){return ot(e.getUTCHours(),r,2)}function Ji(e,r){return ot(e.getUTCHours()%12||12,r,2)}function Ki(e,r){return ot(1+ae.count(St(e),e),r,3)}function an(e,r){return ot(e.getUTCMilliseconds(),r,3)}function ta(e,r){return an(e,r)+"000"}function ea(e,r){return ot(e.getUTCMonth()+1,r,2)}function ra(e,r){return ot(e.getUTCMinutes(),r,2)}function ia(e,r){return ot(e.getUTCSeconds(),r,2)}function aa(e){var r=e.getUTCDay();return r===0?7:r}function sa(e,r){return ot(Rt.count(St(e)-1,e),r,2)}function sn(e){var r=e.getUTCDay();return r>=4||r===0?Pt(e):Pt.ceil(e)}function oa(e,r){return e=sn(e),ot(Pt.count(St(e),e)+(St(e).getUTCDay()===4),r,2)}function ca(e){return e.getUTCDay()}function ua(e,r){return ot(qt.count(St(e)-1,e),r,2)}function la(e,r){return ot(e.getUTCFullYear()%100,r,2)}function fa(e,r){return e=sn(e),ot(e.getUTCFullYear()%100,r,2)}function da(e,r){return ot(e.getUTCFullYear()%1e4,r,4)}function ma(e,r){var n=e.getUTCDay();return e=n>=4||n===0?Pt(e):Pt.ceil(e),ot(e.getUTCFullYear()%1e4,r,4)}function ha(){return"+0000"}function Kr(){return"%"}function tn(e){return+e}function en(e){return Math.floor(+e/1000)}var Gt,Bt,cn,un,ln;Qe({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 Qe(e){return Gt=Ge(e),Bt=Gt.format,cn=Gt.parse,un=Gt.utcFormat,ln=Gt.utcParse,Gt}function ya(e){return new Date(e)}function ga(e){return e instanceof Date?+e:+new Date(+e)}function fn(e,r,n,i,a,s,c,w,D,H){var _=pu(),{invert:rt,domain:N}=_,Y=H(".%L"),A=H(":%S"),P=H("%I:%M"),F=H("%I %p"),J=H("%a %d"),lt=H("%b %d"),it=H("%B"),V=H("%Y");function M(u){return(D(u)<u?Y:w(u)<u?A:c(u)<u?P:s(u)<u?F:i(u)<u?a(u)<u?J:lt:n(u)<u?it:V)(u)}return _.invert=function(u){return new Date(rt(u))},_.domain=function(u){return arguments.length?N(Array.from(u,ga)):N().map(ya)},_.ticks=function(u){var I=N();return e(I[0],I[I.length-1],u==null?10:u)},_.tickFormat=function(u,I){return I==null?M:H(I)},_.nice=function(u){var I=N();if(!u||typeof u.range!=="function")u=r(I[0],I[I.length-1],u==null?10:u);return u?N(Ve(I,u)):_},_.copy=function(){return fd(_,fn(e,r,n,i,a,s,c,w,D,H))},_}function Je(){return oi.apply(fn(Ze,je,xt,Ot,Ct,Dt,At,Et,vt,Bt).domain([new Date(2000,0,1),new Date(2000,0,2)]),arguments)}var xn=on(Bs(),1),bt=on(Fd(),1),bn=on(dn(),1),wn=on(mn(),1),Mn=on(hn(),1),Jt=on(Fd(),1),Wn=on(yn(),1);var cr=function(){var e=t(function(E,f,b,T){for(b=b||{},T=E.length;T--;b[E[T]]=f);return b},"o"),r=[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],i=[1,27],a=[1,28],s=[1,29],c=[1,30],w=[1,31],D=[1,32],H=[1,33],_=[1,34],rt=[1,9],N=[1,10],Y=[1,11],A=[1,12],P=[1,13],F=[1,14],J=[1,15],lt=[1,16],it=[1,19],V=[1,20],M=[1,21],u=[1,22],I=[1,23],tt=[1,25],et=[1,35],v={trace:t(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:t(function(f,b,T,k,X,o,q){var m=o.length-1;switch(X){case 1:return o[m-1];case 2:this.$=[];break;case 3:o[m-1].push(o[m]),this.$=o[m-1];break;case 4:case 5:this.$=o[m];break;case 6:case 7:this.$=[];break;case 8:k.setWeekday("monday");break;case 9:k.setWeekday("tuesday");break;case 10:k.setWeekday("wednesday");break;case 11:k.setWeekday("thursday");break;case 12:k.setWeekday("friday");break;case 13:k.setWeekday("saturday");break;case 14:k.setWeekday("sunday");break;case 15:k.setWeekend("friday");break;case 16:k.setWeekend("saturday");break;case 17:k.setDateFormat(o[m].substr(11)),this.$=o[m].substr(11);break;case 18:k.enableInclusiveEndDates(),this.$=o[m].substr(18);break;case 19:k.TopAxis(),this.$=o[m].substr(8);break;case 20:k.setAxisFormat(o[m].substr(11)),this.$=o[m].substr(11);break;case 21:k.setTickInterval(o[m].substr(13)),this.$=o[m].substr(13);break;case 22:k.setExcludes(o[m].substr(9)),this.$=o[m].substr(9);break;case 23:k.setIncludes(o[m].substr(9)),this.$=o[m].substr(9);break;case 24:k.setTodayMarker(o[m].substr(12)),this.$=o[m].substr(12);break;case 27:k.setDiagramTitle(o[m].substr(6)),this.$=o[m].substr(6);break;case 28:this.$=o[m].trim(),k.setAccTitle(this.$);break;case 29:case 30:this.$=o[m].trim(),k.setAccDescription(this.$);break;case 31:k.addSection(o[m].substr(8)),this.$=o[m].substr(8);break;case 33:k.addTask(o[m-1],o[m]),this.$="task";break;case 34:this.$=o[m-1],k.setClickEvent(o[m-1],o[m],null);break;case 35:this.$=o[m-2],k.setClickEvent(o[m-2],o[m-1],o[m]);break;case 36:this.$=o[m-2],k.setClickEvent(o[m-2],o[m-1],null),k.setLink(o[m-2],o[m]);break;case 37:this.$=o[m-3],k.setClickEvent(o[m-3],o[m-2],o[m-1]),k.setLink(o[m-3],o[m]);break;case 38:this.$=o[m-2],k.setClickEvent(o[m-2],o[m],null),k.setLink(o[m-2],o[m-1]);break;case 39:this.$=o[m-3],k.setClickEvent(o[m-3],o[m-1],o[m]),k.setLink(o[m-3],o[m-2]);break;case 40:this.$=o[m-1],k.setLink(o[m-1],o[m]);break;case 41:case 47:this.$=o[m-1]+" "+o[m];break;case 42:case 43:case 45:this.$=o[m-2]+" "+o[m-1]+" "+o[m];break;case 44:case 46:this.$=o[m-3]+" "+o[m-2]+" "+o[m-1]+" "+o[m];break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},e(r,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:17,12:n,13:i,14:a,15:s,16:c,17:w,18:D,19:18,20:H,21:_,22:rt,23:N,24:Y,25:A,26:P,27:F,28:J,29:lt,30:it,31:V,33:M,35:u,36:I,37:24,38:tt,40:et},e(r,[2,7],{1:[2,1]}),e(r,[2,3]),{9:36,11:17,12:n,13:i,14:a,15:s,16:c,17:w,18:D,19:18,20:H,21:_,22:rt,23:N,24:Y,25:A,26:P,27:F,28:J,29:lt,30:it,31:V,33:M,35:u,36:I,37:24,38:tt,40:et},e(r,[2,5]),e(r,[2,6]),e(r,[2,17]),e(r,[2,18]),e(r,[2,19]),e(r,[2,20]),e(r,[2,21]),e(r,[2,22]),e(r,[2,23]),e(r,[2,24]),e(r,[2,25]),e(r,[2,26]),e(r,[2,27]),{32:[1,37]},{34:[1,38]},e(r,[2,30]),e(r,[2,31]),e(r,[2,32]),{39:[1,39]},e(r,[2,8]),e(r,[2,9]),e(r,[2,10]),e(r,[2,11]),e(r,[2,12]),e(r,[2,13]),e(r,[2,14]),e(r,[2,15]),e(r,[2,16]),{41:[1,40],43:[1,41]},e(r,[2,4]),e(r,[2,28]),e(r,[2,29]),e(r,[2,33]),e(r,[2,34],{42:[1,42],43:[1,43]}),e(r,[2,40],{41:[1,44]}),e(r,[2,35],{43:[1,45]}),e(r,[2,36]),e(r,[2,38],{42:[1,46]}),e(r,[2,37]),e(r,[2,39])],defaultActions:{},parseError:t(function(f,b){if(b.recoverable)this.trace(f);else{var T=Error(f);throw T.hash=b,T}},"parseError"),parse:t(function(f){var b=this,T=[0],k=[],X=[null],o=[],q=this.table,m="",dt=0,d=0,Z=0,Q=2,ct=1,ut=o.slice.call(arguments,1),nt=Object.create(this.lexer),g={yy:{}};for(var B in this.yy)if(Object.prototype.hasOwnProperty.call(this.yy,B))g.yy[B]=this.yy[B];if(nt.setInput(f,g.yy),g.yy.lexer=nt,g.yy.parser=this,typeof nt.yylloc>"u")nt.yylloc={};var K=nt.yylloc;o.push(K);var y=nt.options&&nt.options.ranges;if(typeof g.yy.parseError==="function")this.parseError=g.yy.parseError;else this.parseError=Object.getPrototypeOf(this).parseError;function mt(wt){T.length=T.length-2*wt,X.length=X.length-wt,o.length=o.length-wt}t(mt,"popStack");function at(){var wt=k.pop()||nt.lex()||ct;if(typeof wt!=="number"){if(wt instanceof Array)k=wt,wt=k.pop();wt=b.symbols_[wt]||wt}return wt}t(at,"lex");var st,ht,yt,pt,os,Ye,jt={},le,Lt,br,fe;while(!0){if(yt=T[T.length-1],this.defaultActions[yt])pt=this.defaultActions[yt];else{if(st===null||typeof st>"u")st=at();pt=q[yt]&&q[yt][st]}if(typeof pt>"u"||!pt.length||!pt[0]){var Fe="";fe=[];for(le in q[yt])if(this.terminals_[le]&&le>Q)fe.push("'"+this.terminals_[le]+"'");if(nt.showPosition)Fe="Parse error on line "+(dt+1)+`:
|
|
2
2
|
`+nt.showPosition()+`
|
|
3
3
|
Expecting `+fe.join(", ")+", got '"+(this.terminals_[st]||st)+"'";else Fe="Parse error on line "+(dt+1)+": Unexpected "+(st==ct?"end of input":"'"+(this.terminals_[st]||st)+"'");this.parseError(Fe,{text:nt.match,token:this.terminals_[st]||st,line:nt.yylineno,loc:K,expected:fe})}if(pt[0]instanceof Array&&pt.length>1)throw Error("Parse Error: multiple actions possible at state: "+yt+", token: "+st);switch(pt[0]){case 1:if(T.push(st),X.push(nt.yytext),o.push(nt.yylloc),T.push(pt[1]),st=null,!ht){if(d=nt.yyleng,m=nt.yytext,dt=nt.yylineno,K=nt.yylloc,Z>0)Z--}else st=ht,ht=null;break;case 2:if(Lt=this.productions_[pt[1]][1],jt.$=X[X.length-Lt],jt._$={first_line:o[o.length-(Lt||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(Lt||1)].first_column,last_column:o[o.length-1].last_column},y)jt._$.range=[o[o.length-(Lt||1)].range[0],o[o.length-1].range[1]];if(Ye=this.performAction.apply(jt,[m,d,dt,g.yy,pt[1],X,o].concat(ut)),typeof Ye<"u")return Ye;if(Lt)T=T.slice(0,-1*Lt*2),X=X.slice(0,-1*Lt),o=o.slice(0,-1*Lt);T.push(this.productions_[pt[1]][0]),X.push(jt.$),o.push(jt._$),br=q[T[T.length-2]][T[T.length-1]],T.push(br);break;case 3:return!0}}return!0},"parse")},S=function(){var E={EOF:1,parseError:t(function(b,T){if(this.yy.parser)this.yy.parser.parseError(b,T);else throw Error(b)},"parseError"),setInput:t(function(f,b){if(this.yy=b||this.yy||{},this._input=f,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];return this.offset=0,this},"setInput"),input:t(function(){var f=this._input[0];this.yytext+=f,this.yyleng++,this.offset++,this.match+=f,this.matched+=f;var b=f.match(/(?:\r\n?|\n).*/g);if(b)this.yylineno++,this.yylloc.last_line++;else this.yylloc.last_column++;if(this.options.ranges)this.yylloc.range[1]++;return this._input=this._input.slice(1),f},"input"),unput:t(function(f){var b=f.length,T=f.split(/(?:\r\n?|\n)/g);this._input=f+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-b),this.offset-=b;var k=this.match.split(/(?:\r\n?|\n)/g);if(this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),T.length-1)this.yylineno-=T.length-1;var X=this.yylloc.range;if(this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:T?(T.length===k.length?this.yylloc.first_column:0)+k[k.length-T.length].length-T[0].length:this.yylloc.first_column-b},this.options.ranges)this.yylloc.range=[X[0],X[0]+this.yyleng-b];return this.yyleng=this.yytext.length,this},"unput"),more:t(function(){return this._more=!0,this},"more"),reject:t(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:t(function(f){this.unput(this.match.slice(f))},"less"),pastInput:t(function(){var f=this.matched.substr(0,this.matched.length-this.match.length);return(f.length>20?"...":"")+f.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:t(function(){var f=this.match;if(f.length<20)f+=this._input.substr(0,20-f.length);return(f.substr(0,20)+(f.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:t(function(){var f=this.pastInput(),b=Array(f.length+1).join("-");return f+this.upcomingInput()+`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{Ao}from"./index-gwhx66f4.js";import{be}from"./index-11bdd235.js";import{t,l,K,E,x,R,L,z,O,U,j,G,p,Tl,h,xf,oe,W}from"./index-5y0bvq4q.js";import{Te}from"./index-fghst0kd.js";var k={NORMAL:0,REVERSE:1,HIGHLIGHT:2,MERGE:3,CHERRY_PICK:4},ke=K.gitGraph,V=t(()=>oe({...ke,...E().gitGraph}),"getConfig"),m=new Ao(()=>{let e=V(),{mainBranchName:r,mainBranchOrder:a}=e;return{mainBranchName:r,commits:new Map,head:null,branchConfig:new Map([[r,{name:r,order:a}]]),branches:new Map([[r,null]]),currBranch:r,direction:"LR",seq:0,options:{}}});function ae(){return xf({length:7})}t(ae,"getID");function fe(e,r){let a=Object.create(null);return e.reduce((n,c)=>{let d=r(c);if(!a[d])a[d]=!0,n.push(c);return n},[])}t(fe,"uniqBy");var Ce=t(function(e){m.records.direction=e},"setDirection"),ve=t(function(e){l.debug("options str",e),e=e?.trim(),e=e||"{}";try{m.records.options=JSON.parse(e)}catch(r){l.error("error while parsing gitGraph options",r.message)}},"setOptions"),Ee=t(function(){return m.records.options},"getOptions"),Le=t(function(e){let{msg:r,id:a,type:n,tags:c}=e;l.info("commit",r,a,n,c),l.debug("Entering commit:",r,a,n,c);let d=V();a=x.sanitizeText(a,d),r=x.sanitizeText(r,d),c=c?.map((o)=>x.sanitizeText(o,d));let s={id:a?a:m.records.seq+"-"+ae(),message:r,seq:m.records.seq++,type:n??k.NORMAL,tags:c??[],parents:m.records.head==null?[]:[m.records.head.id],branch:m.records.currBranch};if(m.records.head=s,l.info("main branch",d.mainBranchName),m.records.commits.has(s.id))l.warn(`Commit ID ${s.id} already exists`);m.records.commits.set(s.id,s),m.records.branches.set(m.records.currBranch,s.id),l.debug("in pushCommit "+s.id)},"commit"),Me=t(function(e){let{name:r,order:a}=e;if(r=x.sanitizeText(r,V()),m.records.branches.has(r))throw 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}")`);m.records.branches.set(r,m.records.head!=null?m.records.head.id:null),m.records.branchConfig.set(r,{name:r,order:a}),$e(r),l.debug("in createBranch")},"branch"),Pe=t((e)=>{let{branch:r,id:a,type:n,tags:c}=e,d=V();if(r=x.sanitizeText(r,d),a)a=x.sanitizeText(a,d);let s=m.records.branches.get(m.records.currBranch),o=m.records.branches.get(r),g=s?m.records.commits.get(s):void 0,y=o?m.records.commits.get(o):void 0;if(g&&y&&g.branch===r)throw Error(`Cannot merge branch '${r}' into itself.`);if(m.records.currBranch===r){let i=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(g===void 0||!g){let i=Error(`Incorrect usage of "merge". Current branch (${m.records.currBranch})has no commits`);throw i.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["commit"]},i}if(!m.records.branches.has(r)){let i=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(y===void 0||!y){let i=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(g===y){let i=Error('Incorrect usage of "merge". Both branches have same head');throw i.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["branch abc"]},i}if(a&&m.records.commits.has(a)){let i=Error('Incorrect usage of "merge". Commit with id:'+a+" already exists, use different custom id");throw i.hash={text:`merge ${r} ${a} ${n} ${c?.join(" ")}`,token:`merge ${r} ${a} ${n} ${c?.join(" ")}`,expected:[`merge ${r} ${a}_UNIQUE ${n} ${c?.join(" ")}`]},i}let u=o?o:"",f={id:a||`${m.records.seq}-${ae()}`,message:`merged branch ${r} into ${m.records.currBranch}`,seq:m.records.seq++,parents:m.records.head==null?[]:[m.records.head.id,u],branch:m.records.currBranch,type:k.MERGE,customType:n,customId:a?!0:!1,tags:c??[]};m.records.head=f,m.records.commits.set(f.id,f),m.records.branches.set(m.records.currBranch,f.id),l.debug(m.records.branches),l.debug("in mergeBranch")},"merge"),Re=t(function(e){let{id:r,targetId:a,tags:n,parent:c}=e;l.debug("Entering cherryPick:",r,a,n);let d=V();if(r=x.sanitizeText(r,d),a=x.sanitizeText(a,d),n=n?.map((g)=>x.sanitizeText(g,d)),c=x.sanitizeText(c,d),!r||!m.records.commits.has(r)){let g=Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');throw g.hash={text:`cherryPick ${r} ${a}`,token:`cherryPick ${r} ${a}`,expected:["cherry-pick abc"]},g}let s=m.records.commits.get(r);if(s===void 0||!s)throw Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');if(c&&!(Array.isArray(s.parents)&&s.parents.includes(c)))throw Error("Invalid operation: The specified parent commit is not an immediate parent of the cherry-picked commit.");let o=s.branch;if(s.type===k.MERGE&&!c)throw Error("Incorrect usage of cherry-pick: If the source commit is a merge commit, an immediate parent commit must be specified.");if(!a||!m.records.commits.has(a)){if(o===m.records.currBranch){let f=Error('Incorrect usage of "cherryPick". Source commit is already on current branch');throw f.hash={text:`cherryPick ${r} ${a}`,token:`cherryPick ${r} ${a}`,expected:["cherry-pick abc"]},f}let g=m.records.branches.get(m.records.currBranch);if(g===void 0||!g){let f=Error(`Incorrect usage of "cherry-pick". Current branch (${m.records.currBranch})has no commits`);throw f.hash={text:`cherryPick ${r} ${a}`,token:`cherryPick ${r} ${a}`,expected:["cherry-pick abc"]},f}let y=m.records.commits.get(g);if(y===void 0||!y){let f=Error(`Incorrect usage of "cherry-pick". Current branch (${m.records.currBranch})has no commits`);throw f.hash={text:`cherryPick ${r} ${a}`,token:`cherryPick ${r} ${a}`,expected:["cherry-pick abc"]},f}let u={id:m.records.seq+"-"+ae(),message:`cherry-picked ${s?.message} into ${m.records.currBranch}`,seq:m.records.seq++,parents:m.records.head==null?[]:[m.records.head.id,s.id],branch:m.records.currBranch,type:k.CHERRY_PICK,tags:n?n.filter(Boolean):[`cherry-pick:${s.id}${s.type===k.MERGE?`|parent:${c}`:""}`]};m.records.head=u,m.records.commits.set(u.id,u),m.records.branches.set(m.records.currBranch,u.id),l.debug(m.records.branches),l.debug("in cherryPick")}},"cherryPick"),$e=t(function(e){if(e=x.sanitizeText(e,V()),!m.records.branches.has(e)){let r=Error(`Trying to checkout branch which is not yet created. (Help try using "branch ${e}")`);throw r.hash={text:`checkout ${e}`,token:`checkout ${e}`,expected:[`branch ${e}`]},r}else{m.records.currBranch=e;let r=m.records.branches.get(m.records.currBranch);if(r===void 0||!r)m.records.head=null;else m.records.head=m.records.commits.get(r)??null}},"checkout");function ie(e,r,a){let n=e.indexOf(r);if(n===-1)e.push(a);else e.splice(n,1,a)}t(ie,"upsert");function he(e){let r=e.reduce((c,d)=>{if(c.seq>d.seq)return c;return d},e[0]),a="";e.forEach(function(c){if(c===r)a+="\t*";else a+="\t|"});let n=[a,r.id,r.seq];for(let c in m.records.branches)if(m.records.branches.get(c)===r.id)n.push(c);if(l.debug(n.join(" ")),r.parents&&r.parents.length==2&&r.parents[0]&&r.parents[1]){let c=m.records.commits.get(r.parents[0]);if(ie(e,r,c),r.parents[1])e.push(m.records.commits.get(r.parents[1]))}else if(r.parents.length==0)return;else if(r.parents[0]){let c=m.records.commits.get(r.parents[0]);ie(e,r,c)}e=fe(e,(c)=>c.id),he(e)}t(he,"prettyPrintCommitHistory");var Oe=t(function(){l.debug(m.records.commits);let e=pe()[0];he([e])},"prettyPrint"),Ie=t(function(){m.reset(),R()},"clear"),_e=t(function(){return[...m.records.branchConfig.values()].map((r,a)=>{if(r.order!==null&&r.order!==void 0)return r;return{...r,order:parseFloat(`0.${a}`)}}).sort((r,a)=>(r.order??0)-(a.order??0)).map(({name:r})=>({name:r}))},"getBranchesAsObjArray"),Ge=t(function(){return m.records.branches},"getBranches"),De=t(function(){return m.records.commits},"getCommits"),pe=t(function(){let e=[...m.records.commits.values()];return e.forEach(function(r){l.debug(r.id)}),e.sort((r,a)=>r.seq-a.seq),e},"getCommitsArray"),We=t(function(){return m.records.currBranch},"getCurrentBranch"),qe=t(function(){return m.records.direction},"getDirection"),Ae=t(function(){return m.records.head},"getHead"),ye={commitType:k,getConfig:V,setDirection:Ce,setOptions:ve,getOptions:Ee,commit:Le,branch:Me,merge:Pe,cherryPick:Re,checkout:$e,prettyPrint:Oe,clear:Ie,getBranchesAsObjArray:_e,getBranches:Ge,getCommits:De,getCommitsArray:pe,getCurrentBranch:We,getDirection:qe,getHead:Ae,setAccTitle:L,getAccTitle:z,getAccDescription:U,setAccDescription:O,setDiagramTitle:j,getDiagramTitle:G},He=t((e,r)=>{if(be(e,r),e.dir)r.setDirection(e.dir);for(let a of e.statements)Se(a,r)},"populate"),Se=t((e,r)=>{let n={Commit:t((c)=>r.commit(Ne(c)),"Commit"),Branch:t((c)=>r.branch(Fe(c)),"Branch"),Merge:t((c)=>r.merge(ze(c)),"Merge"),Checkout:t((c)=>r.checkout(Ye(c)),"Checkout"),CherryPicking:t((c)=>r.cherryPick(je(c)),"CherryPicking")}[e.$type];if(n)n(e);else l.error(`Unknown statement type: ${e.$type}`)},"parseStatement"),Ne=t((e)=>({id:e.id,msg:e.message??"",type:e.type!==void 0?k[e.type]:k.NORMAL,tags:e.tags??void 0}),"parseCommit"),Fe=t((e)=>({name:e.name,order:e.order??0}),"parseBranch"),ze=t((e)=>({branch:e.branch,id:e.id??"",type:e.type!==void 0?k[e.type]:void 0,tags:e.tags??void 0}),"parseMerge"),Ye=t((e)=>e.branch,"parseCheckout"),je=t((e)=>({id:e.id,targetId:"",tags:e.tags?.length===0?void 0:e.tags,parent:e.parent}),"parseCherryPicking"),Ke={parse:t(async(e)=>{let r=await Te("gitGraph",e);l.debug(r),He(r,ye)},"parse")},S=10,N=40,D=4,A=2,F=8,se=new Set(["redux","redux-dark","redux-color","redux-dark-color"]),de=12,le=new Set(["redux-color","redux-dark-color"]),Ue=new Set(["dark","redux-dark","redux-dark-color","neo-dark"]),Y=t((e,r,a=!1)=>{if(a&&e>0)return(e-1)%(r-1)+1;return e%r},"calcColorIndex"),P=new Map,I=new Map,te=30,J=new Map,re=[],H=0,w="LR",Ve=t(()=>{P.clear(),I.clear(),J.clear(),H=0,re=[],w="LR"},"clear"),xe=t((e)=>{let r=document.createElementNS("http://www.w3.org/2000/svg","text");return(typeof e==="string"?e.split(/\\n|\n|<br\s*\/?>/gi):e).forEach((n)=>{let c=document.createElementNS("http://www.w3.org/2000/svg","tspan");c.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),c.setAttribute("dy","1em"),c.setAttribute("x","0"),c.setAttribute("class","row"),c.textContent=n.trim(),r.appendChild(c)}),r},"drawText"),ue=t((e)=>{let r,a,n;if(w==="BT")a=t((c,d)=>c<=d,"comparisonFunc"),n=1/0;else a=t((c,d)=>c>=d,"comparisonFunc"),n=0;return e.forEach((c)=>{let d=w==="TB"||w=="BT"?I.get(c)?.y:I.get(c)?.x;if(d!==void 0&&a(d,n))r=c,n=d}),r},"findClosestParent"),Ze=t((e)=>{let r="",a=1/0;return e.forEach((n)=>{let c=I.get(n).y;if(c<=a)r=n,a=c}),r||void 0},"findClosestParentBT"),Xe=t((e,r,a)=>{let n=a,c=a,d=[];e.forEach((s)=>{let o=r.get(s);if(!o)throw Error(`Commit not found for key ${s}`);if(o.parents.length)n=Qe(o),c=Math.max(n,c);else d.push(o);et(o,n)}),n=c,d.forEach((s)=>{tt(s,n,a)}),e.forEach((s)=>{let o=r.get(s);if(o?.parents.length){let g=Ze(o.parents);if(n=I.get(g).y-N,n<=c)c=n;let y=P.get(o.branch).pos,u=n-S;I.set(o.id,{x:y,y:u})}})},"setParallelBTPos"),Je=t((e)=>{let r=ue(e.parents.filter((n)=>n!==null));if(!r)throw Error(`Closest parent not found for commit ${e.id}`);let a=I.get(r)?.y;if(a===void 0)throw Error(`Closest parent position not found for commit ${e.id}`);return a},"findClosestParentPos"),Qe=t((e)=>Je(e)+N,"calculateCommitPosition"),et=t((e,r)=>{let a=P.get(e.branch);if(!a)throw Error(`Branch not found for commit ${e.id}`);let n=a.pos,c=r+S;return I.set(e.id,{x:n,y:c}),{x:n,y:c}},"setCommitPosition"),tt=t((e,r,a)=>{let n=P.get(e.branch);if(!n)throw Error(`Branch not found for commit ${e.id}`);let c=r+a,d=n.pos;I.set(e.id,{x:d,y:c})},"setRootPosition"),rt=t((e,r,a,n,c,d)=>{let{theme:s}=p(),o=se.has(s??""),g=le.has(s??""),y=Ue.has(s??"");if(d===k.HIGHLIGHT)e.append("rect").attr("x",a.x-10+(o?3:0)).attr("y",a.y-10+(o?3:0)).attr("width",o?14:20).attr("height",o?14:20).attr("class",`commit ${r.id} commit-highlight${Y(c,F,g)} ${n}-outer`),e.append("rect").attr("x",a.x-6+(o?2:0)).attr("y",a.y-6+(o?2:0)).attr("width",o?8:12).attr("height",o?8:12).attr("class",`commit ${r.id} commit${Y(c,F,g)} ${n}-inner`);else if(d===k.CHERRY_PICK)e.append("circle").attr("cx",a.x).attr("cy",a.y).attr("r",o?7:10).attr("class",`commit ${r.id} ${n}`),e.append("circle").attr("cx",a.x-3).attr("cy",a.y+2).attr("r",o?2.5:2.75).attr("fill",y?"#000000":"#fff").attr("class",`commit ${r.id} ${n}`),e.append("circle").attr("cx",a.x+3).attr("cy",a.y+2).attr("r",o?2.5:2.75).attr("fill",y?"#000000":"#fff").attr("class",`commit ${r.id} ${n}`),e.append("line").attr("x1",a.x+3).attr("y1",a.y+1).attr("x2",a.x).attr("y2",a.y-5).attr("stroke",y?"#000000":"#fff").attr("class",`commit ${r.id} ${n}`),e.append("line").attr("x1",a.x-3).attr("y1",a.y+1).attr("x2",a.x).attr("y2",a.y-5).attr("stroke",y?"#000000":"#fff").attr("class",`commit ${r.id} ${n}`);else{let u=e.append("circle");if(u.attr("cx",a.x),u.attr("cy",a.y),u.attr("r",o?7:10),u.attr("class",`commit ${r.id} commit${Y(c,F,g)}`),d===k.MERGE){let f=e.append("circle");f.attr("cx",a.x),f.attr("cy",a.y),f.attr("r",o?5:6),f.attr("class",`commit ${n} ${r.id} commit${Y(c,F,g)}`)}if(d===k.REVERSE){let f=e.append("path"),i=o?4:5;f.attr("d",`M ${a.x-i},${a.y-i}L${a.x+i},${a.y+i}M${a.x-i},${a.y+i}L${a.x+i},${a.y-i}`).attr("class",`commit ${n} ${r.id} commit${Y(c,F,g)}`)}}},"drawCommitBullet"),at=t((e,r,a,n,c)=>{if(r.type!==k.CHERRY_PICK&&(r.customId&&r.type===k.MERGE||r.type!==k.MERGE)&&c.showCommitLabel){let d=e.append("g"),s=d.insert("rect").attr("class","commit-label-bkg"),o=d.append("text").attr("x",n).attr("y",a.y+25).attr("class","commit-label").text(r.id),g=o.node()?.getBBox();if(g){if(s.attr("x",a.posWithOffset-g.width/2-A).attr("y",a.y+13.5).attr("width",g.width+2*A).attr("height",g.height+2*A),w==="TB"||w==="BT")s.attr("x",a.x-(g.width+4*D+5)).attr("y",a.y-12),o.attr("x",a.x-(g.width+4*D)).attr("y",a.y+g.height-12);else o.attr("x",a.posWithOffset-g.width/2);if(c.rotateCommitLabel)if(w==="TB"||w==="BT")o.attr("transform","rotate(-45, "+a.x+", "+a.y+")"),s.attr("transform","rotate(-45, "+a.x+", "+a.y+")");else{let y=-7.5-(g.width+10)/25*9.5,u=10+g.width/25*8.5;d.attr("transform","translate("+y+", "+u+") rotate(-45, "+n+", "+a.y+")")}}}},"drawCommitLabel"),ot=t((e,r,a,n)=>{if(r.tags.length>0){let c=0,d=0,s=0,o=[];for(let g of r.tags.reverse()){let y=e.insert("polygon"),u=e.append("circle"),f=e.append("text").attr("y",a.y-16-c).attr("class","tag-label").text(g),i=f.node()?.getBBox();if(!i)throw Error("Tag bbox not found");d=Math.max(d,i.width),s=Math.max(s,i.height),f.attr("x",a.posWithOffset-i.width/2),o.push({tag:f,hole:u,rect:y,yOffset:c}),c+=20}for(let{tag:g,hole:y,rect:u,yOffset:f}of o){let i=s/2,B=a.y-19.2-f;if(u.attr("class","tag-label-bkg").attr("points",`
|
|
1
|
+
import{Ao}from"./index-ajtd1q1h.js";import{be}from"./index-6j9h1fa7.js";import{t,l,K,E,x,R,L,z,O,U,j,G,p,Tl,h,xf,oe,W}from"./index-5v9v41ap.js";import{Te}from"./index-fghst0kd.js";var k={NORMAL:0,REVERSE:1,HIGHLIGHT:2,MERGE:3,CHERRY_PICK:4},ke=K.gitGraph,V=t(()=>oe({...ke,...E().gitGraph}),"getConfig"),m=new Ao(()=>{let e=V(),{mainBranchName:r,mainBranchOrder:a}=e;return{mainBranchName:r,commits:new Map,head:null,branchConfig:new Map([[r,{name:r,order:a}]]),branches:new Map([[r,null]]),currBranch:r,direction:"LR",seq:0,options:{}}});function ae(){return xf({length:7})}t(ae,"getID");function fe(e,r){let a=Object.create(null);return e.reduce((n,c)=>{let d=r(c);if(!a[d])a[d]=!0,n.push(c);return n},[])}t(fe,"uniqBy");var Ce=t(function(e){m.records.direction=e},"setDirection"),ve=t(function(e){l.debug("options str",e),e=e?.trim(),e=e||"{}";try{m.records.options=JSON.parse(e)}catch(r){l.error("error while parsing gitGraph options",r.message)}},"setOptions"),Ee=t(function(){return m.records.options},"getOptions"),Le=t(function(e){let{msg:r,id:a,type:n,tags:c}=e;l.info("commit",r,a,n,c),l.debug("Entering commit:",r,a,n,c);let d=V();a=x.sanitizeText(a,d),r=x.sanitizeText(r,d),c=c?.map((o)=>x.sanitizeText(o,d));let s={id:a?a:m.records.seq+"-"+ae(),message:r,seq:m.records.seq++,type:n??k.NORMAL,tags:c??[],parents:m.records.head==null?[]:[m.records.head.id],branch:m.records.currBranch};if(m.records.head=s,l.info("main branch",d.mainBranchName),m.records.commits.has(s.id))l.warn(`Commit ID ${s.id} already exists`);m.records.commits.set(s.id,s),m.records.branches.set(m.records.currBranch,s.id),l.debug("in pushCommit "+s.id)},"commit"),Me=t(function(e){let{name:r,order:a}=e;if(r=x.sanitizeText(r,V()),m.records.branches.has(r))throw 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}")`);m.records.branches.set(r,m.records.head!=null?m.records.head.id:null),m.records.branchConfig.set(r,{name:r,order:a}),$e(r),l.debug("in createBranch")},"branch"),Pe=t((e)=>{let{branch:r,id:a,type:n,tags:c}=e,d=V();if(r=x.sanitizeText(r,d),a)a=x.sanitizeText(a,d);let s=m.records.branches.get(m.records.currBranch),o=m.records.branches.get(r),g=s?m.records.commits.get(s):void 0,y=o?m.records.commits.get(o):void 0;if(g&&y&&g.branch===r)throw Error(`Cannot merge branch '${r}' into itself.`);if(m.records.currBranch===r){let i=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(g===void 0||!g){let i=Error(`Incorrect usage of "merge". Current branch (${m.records.currBranch})has no commits`);throw i.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["commit"]},i}if(!m.records.branches.has(r)){let i=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(y===void 0||!y){let i=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(g===y){let i=Error('Incorrect usage of "merge". Both branches have same head');throw i.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["branch abc"]},i}if(a&&m.records.commits.has(a)){let i=Error('Incorrect usage of "merge". Commit with id:'+a+" already exists, use different custom id");throw i.hash={text:`merge ${r} ${a} ${n} ${c?.join(" ")}`,token:`merge ${r} ${a} ${n} ${c?.join(" ")}`,expected:[`merge ${r} ${a}_UNIQUE ${n} ${c?.join(" ")}`]},i}let u=o?o:"",f={id:a||`${m.records.seq}-${ae()}`,message:`merged branch ${r} into ${m.records.currBranch}`,seq:m.records.seq++,parents:m.records.head==null?[]:[m.records.head.id,u],branch:m.records.currBranch,type:k.MERGE,customType:n,customId:a?!0:!1,tags:c??[]};m.records.head=f,m.records.commits.set(f.id,f),m.records.branches.set(m.records.currBranch,f.id),l.debug(m.records.branches),l.debug("in mergeBranch")},"merge"),Re=t(function(e){let{id:r,targetId:a,tags:n,parent:c}=e;l.debug("Entering cherryPick:",r,a,n);let d=V();if(r=x.sanitizeText(r,d),a=x.sanitizeText(a,d),n=n?.map((g)=>x.sanitizeText(g,d)),c=x.sanitizeText(c,d),!r||!m.records.commits.has(r)){let g=Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');throw g.hash={text:`cherryPick ${r} ${a}`,token:`cherryPick ${r} ${a}`,expected:["cherry-pick abc"]},g}let s=m.records.commits.get(r);if(s===void 0||!s)throw Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');if(c&&!(Array.isArray(s.parents)&&s.parents.includes(c)))throw Error("Invalid operation: The specified parent commit is not an immediate parent of the cherry-picked commit.");let o=s.branch;if(s.type===k.MERGE&&!c)throw Error("Incorrect usage of cherry-pick: If the source commit is a merge commit, an immediate parent commit must be specified.");if(!a||!m.records.commits.has(a)){if(o===m.records.currBranch){let f=Error('Incorrect usage of "cherryPick". Source commit is already on current branch');throw f.hash={text:`cherryPick ${r} ${a}`,token:`cherryPick ${r} ${a}`,expected:["cherry-pick abc"]},f}let g=m.records.branches.get(m.records.currBranch);if(g===void 0||!g){let f=Error(`Incorrect usage of "cherry-pick". Current branch (${m.records.currBranch})has no commits`);throw f.hash={text:`cherryPick ${r} ${a}`,token:`cherryPick ${r} ${a}`,expected:["cherry-pick abc"]},f}let y=m.records.commits.get(g);if(y===void 0||!y){let f=Error(`Incorrect usage of "cherry-pick". Current branch (${m.records.currBranch})has no commits`);throw f.hash={text:`cherryPick ${r} ${a}`,token:`cherryPick ${r} ${a}`,expected:["cherry-pick abc"]},f}let u={id:m.records.seq+"-"+ae(),message:`cherry-picked ${s?.message} into ${m.records.currBranch}`,seq:m.records.seq++,parents:m.records.head==null?[]:[m.records.head.id,s.id],branch:m.records.currBranch,type:k.CHERRY_PICK,tags:n?n.filter(Boolean):[`cherry-pick:${s.id}${s.type===k.MERGE?`|parent:${c}`:""}`]};m.records.head=u,m.records.commits.set(u.id,u),m.records.branches.set(m.records.currBranch,u.id),l.debug(m.records.branches),l.debug("in cherryPick")}},"cherryPick"),$e=t(function(e){if(e=x.sanitizeText(e,V()),!m.records.branches.has(e)){let r=Error(`Trying to checkout branch which is not yet created. (Help try using "branch ${e}")`);throw r.hash={text:`checkout ${e}`,token:`checkout ${e}`,expected:[`branch ${e}`]},r}else{m.records.currBranch=e;let r=m.records.branches.get(m.records.currBranch);if(r===void 0||!r)m.records.head=null;else m.records.head=m.records.commits.get(r)??null}},"checkout");function ie(e,r,a){let n=e.indexOf(r);if(n===-1)e.push(a);else e.splice(n,1,a)}t(ie,"upsert");function he(e){let r=e.reduce((c,d)=>{if(c.seq>d.seq)return c;return d},e[0]),a="";e.forEach(function(c){if(c===r)a+="\t*";else a+="\t|"});let n=[a,r.id,r.seq];for(let c in m.records.branches)if(m.records.branches.get(c)===r.id)n.push(c);if(l.debug(n.join(" ")),r.parents&&r.parents.length==2&&r.parents[0]&&r.parents[1]){let c=m.records.commits.get(r.parents[0]);if(ie(e,r,c),r.parents[1])e.push(m.records.commits.get(r.parents[1]))}else if(r.parents.length==0)return;else if(r.parents[0]){let c=m.records.commits.get(r.parents[0]);ie(e,r,c)}e=fe(e,(c)=>c.id),he(e)}t(he,"prettyPrintCommitHistory");var Oe=t(function(){l.debug(m.records.commits);let e=pe()[0];he([e])},"prettyPrint"),Ie=t(function(){m.reset(),R()},"clear"),_e=t(function(){return[...m.records.branchConfig.values()].map((r,a)=>{if(r.order!==null&&r.order!==void 0)return r;return{...r,order:parseFloat(`0.${a}`)}}).sort((r,a)=>(r.order??0)-(a.order??0)).map(({name:r})=>({name:r}))},"getBranchesAsObjArray"),Ge=t(function(){return m.records.branches},"getBranches"),De=t(function(){return m.records.commits},"getCommits"),pe=t(function(){let e=[...m.records.commits.values()];return e.forEach(function(r){l.debug(r.id)}),e.sort((r,a)=>r.seq-a.seq),e},"getCommitsArray"),We=t(function(){return m.records.currBranch},"getCurrentBranch"),qe=t(function(){return m.records.direction},"getDirection"),Ae=t(function(){return m.records.head},"getHead"),ye={commitType:k,getConfig:V,setDirection:Ce,setOptions:ve,getOptions:Ee,commit:Le,branch:Me,merge:Pe,cherryPick:Re,checkout:$e,prettyPrint:Oe,clear:Ie,getBranchesAsObjArray:_e,getBranches:Ge,getCommits:De,getCommitsArray:pe,getCurrentBranch:We,getDirection:qe,getHead:Ae,setAccTitle:L,getAccTitle:z,getAccDescription:U,setAccDescription:O,setDiagramTitle:j,getDiagramTitle:G},He=t((e,r)=>{if(be(e,r),e.dir)r.setDirection(e.dir);for(let a of e.statements)Se(a,r)},"populate"),Se=t((e,r)=>{let n={Commit:t((c)=>r.commit(Ne(c)),"Commit"),Branch:t((c)=>r.branch(Fe(c)),"Branch"),Merge:t((c)=>r.merge(ze(c)),"Merge"),Checkout:t((c)=>r.checkout(Ye(c)),"Checkout"),CherryPicking:t((c)=>r.cherryPick(je(c)),"CherryPicking")}[e.$type];if(n)n(e);else l.error(`Unknown statement type: ${e.$type}`)},"parseStatement"),Ne=t((e)=>({id:e.id,msg:e.message??"",type:e.type!==void 0?k[e.type]:k.NORMAL,tags:e.tags??void 0}),"parseCommit"),Fe=t((e)=>({name:e.name,order:e.order??0}),"parseBranch"),ze=t((e)=>({branch:e.branch,id:e.id??"",type:e.type!==void 0?k[e.type]:void 0,tags:e.tags??void 0}),"parseMerge"),Ye=t((e)=>e.branch,"parseCheckout"),je=t((e)=>({id:e.id,targetId:"",tags:e.tags?.length===0?void 0:e.tags,parent:e.parent}),"parseCherryPicking"),Ke={parse:t(async(e)=>{let r=await Te("gitGraph",e);l.debug(r),He(r,ye)},"parse")},S=10,N=40,D=4,A=2,F=8,se=new Set(["redux","redux-dark","redux-color","redux-dark-color"]),de=12,le=new Set(["redux-color","redux-dark-color"]),Ue=new Set(["dark","redux-dark","redux-dark-color","neo-dark"]),Y=t((e,r,a=!1)=>{if(a&&e>0)return(e-1)%(r-1)+1;return e%r},"calcColorIndex"),P=new Map,I=new Map,te=30,J=new Map,re=[],H=0,w="LR",Ve=t(()=>{P.clear(),I.clear(),J.clear(),H=0,re=[],w="LR"},"clear"),xe=t((e)=>{let r=document.createElementNS("http://www.w3.org/2000/svg","text");return(typeof e==="string"?e.split(/\\n|\n|<br\s*\/?>/gi):e).forEach((n)=>{let c=document.createElementNS("http://www.w3.org/2000/svg","tspan");c.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),c.setAttribute("dy","1em"),c.setAttribute("x","0"),c.setAttribute("class","row"),c.textContent=n.trim(),r.appendChild(c)}),r},"drawText"),ue=t((e)=>{let r,a,n;if(w==="BT")a=t((c,d)=>c<=d,"comparisonFunc"),n=1/0;else a=t((c,d)=>c>=d,"comparisonFunc"),n=0;return e.forEach((c)=>{let d=w==="TB"||w=="BT"?I.get(c)?.y:I.get(c)?.x;if(d!==void 0&&a(d,n))r=c,n=d}),r},"findClosestParent"),Ze=t((e)=>{let r="",a=1/0;return e.forEach((n)=>{let c=I.get(n).y;if(c<=a)r=n,a=c}),r||void 0},"findClosestParentBT"),Xe=t((e,r,a)=>{let n=a,c=a,d=[];e.forEach((s)=>{let o=r.get(s);if(!o)throw Error(`Commit not found for key ${s}`);if(o.parents.length)n=Qe(o),c=Math.max(n,c);else d.push(o);et(o,n)}),n=c,d.forEach((s)=>{tt(s,n,a)}),e.forEach((s)=>{let o=r.get(s);if(o?.parents.length){let g=Ze(o.parents);if(n=I.get(g).y-N,n<=c)c=n;let y=P.get(o.branch).pos,u=n-S;I.set(o.id,{x:y,y:u})}})},"setParallelBTPos"),Je=t((e)=>{let r=ue(e.parents.filter((n)=>n!==null));if(!r)throw Error(`Closest parent not found for commit ${e.id}`);let a=I.get(r)?.y;if(a===void 0)throw Error(`Closest parent position not found for commit ${e.id}`);return a},"findClosestParentPos"),Qe=t((e)=>Je(e)+N,"calculateCommitPosition"),et=t((e,r)=>{let a=P.get(e.branch);if(!a)throw Error(`Branch not found for commit ${e.id}`);let n=a.pos,c=r+S;return I.set(e.id,{x:n,y:c}),{x:n,y:c}},"setCommitPosition"),tt=t((e,r,a)=>{let n=P.get(e.branch);if(!n)throw Error(`Branch not found for commit ${e.id}`);let c=r+a,d=n.pos;I.set(e.id,{x:d,y:c})},"setRootPosition"),rt=t((e,r,a,n,c,d)=>{let{theme:s}=p(),o=se.has(s??""),g=le.has(s??""),y=Ue.has(s??"");if(d===k.HIGHLIGHT)e.append("rect").attr("x",a.x-10+(o?3:0)).attr("y",a.y-10+(o?3:0)).attr("width",o?14:20).attr("height",o?14:20).attr("class",`commit ${r.id} commit-highlight${Y(c,F,g)} ${n}-outer`),e.append("rect").attr("x",a.x-6+(o?2:0)).attr("y",a.y-6+(o?2:0)).attr("width",o?8:12).attr("height",o?8:12).attr("class",`commit ${r.id} commit${Y(c,F,g)} ${n}-inner`);else if(d===k.CHERRY_PICK)e.append("circle").attr("cx",a.x).attr("cy",a.y).attr("r",o?7:10).attr("class",`commit ${r.id} ${n}`),e.append("circle").attr("cx",a.x-3).attr("cy",a.y+2).attr("r",o?2.5:2.75).attr("fill",y?"#000000":"#fff").attr("class",`commit ${r.id} ${n}`),e.append("circle").attr("cx",a.x+3).attr("cy",a.y+2).attr("r",o?2.5:2.75).attr("fill",y?"#000000":"#fff").attr("class",`commit ${r.id} ${n}`),e.append("line").attr("x1",a.x+3).attr("y1",a.y+1).attr("x2",a.x).attr("y2",a.y-5).attr("stroke",y?"#000000":"#fff").attr("class",`commit ${r.id} ${n}`),e.append("line").attr("x1",a.x-3).attr("y1",a.y+1).attr("x2",a.x).attr("y2",a.y-5).attr("stroke",y?"#000000":"#fff").attr("class",`commit ${r.id} ${n}`);else{let u=e.append("circle");if(u.attr("cx",a.x),u.attr("cy",a.y),u.attr("r",o?7:10),u.attr("class",`commit ${r.id} commit${Y(c,F,g)}`),d===k.MERGE){let f=e.append("circle");f.attr("cx",a.x),f.attr("cy",a.y),f.attr("r",o?5:6),f.attr("class",`commit ${n} ${r.id} commit${Y(c,F,g)}`)}if(d===k.REVERSE){let f=e.append("path"),i=o?4:5;f.attr("d",`M ${a.x-i},${a.y-i}L${a.x+i},${a.y+i}M${a.x-i},${a.y+i}L${a.x+i},${a.y-i}`).attr("class",`commit ${n} ${r.id} commit${Y(c,F,g)}`)}}},"drawCommitBullet"),at=t((e,r,a,n,c)=>{if(r.type!==k.CHERRY_PICK&&(r.customId&&r.type===k.MERGE||r.type!==k.MERGE)&&c.showCommitLabel){let d=e.append("g"),s=d.insert("rect").attr("class","commit-label-bkg"),o=d.append("text").attr("x",n).attr("y",a.y+25).attr("class","commit-label").text(r.id),g=o.node()?.getBBox();if(g){if(s.attr("x",a.posWithOffset-g.width/2-A).attr("y",a.y+13.5).attr("width",g.width+2*A).attr("height",g.height+2*A),w==="TB"||w==="BT")s.attr("x",a.x-(g.width+4*D+5)).attr("y",a.y-12),o.attr("x",a.x-(g.width+4*D)).attr("y",a.y+g.height-12);else o.attr("x",a.posWithOffset-g.width/2);if(c.rotateCommitLabel)if(w==="TB"||w==="BT")o.attr("transform","rotate(-45, "+a.x+", "+a.y+")"),s.attr("transform","rotate(-45, "+a.x+", "+a.y+")");else{let y=-7.5-(g.width+10)/25*9.5,u=10+g.width/25*8.5;d.attr("transform","translate("+y+", "+u+") rotate(-45, "+n+", "+a.y+")")}}}},"drawCommitLabel"),ot=t((e,r,a,n)=>{if(r.tags.length>0){let c=0,d=0,s=0,o=[];for(let g of r.tags.reverse()){let y=e.insert("polygon"),u=e.append("circle"),f=e.append("text").attr("y",a.y-16-c).attr("class","tag-label").text(g),i=f.node()?.getBBox();if(!i)throw Error("Tag bbox not found");d=Math.max(d,i.width),s=Math.max(s,i.height),f.attr("x",a.posWithOffset-i.width/2),o.push({tag:f,hole:u,rect:y,yOffset:c}),c+=20}for(let{tag:g,hole:y,rect:u,yOffset:f}of o){let i=s/2,B=a.y-19.2-f;if(u.attr("class","tag-label-bkg").attr("points",`
|
|
2
2
|
${n-d/2-D/2},${B+A}
|
|
3
3
|
${n-d/2-D/2},${B-A}
|
|
4
4
|
${a.posWithOffset-d/2-D},${B-i-A}
|