@logan-jun/cd1-rag-chat 0.4.0 → 0.4.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.
Files changed (57) hide show
  1. package/dist/assets/{arc-scm8MMJs.js → arc-pCRNGa7W.js} +1 -1
  2. package/dist/assets/{architectureDiagram-3BPJPVTR-B4HnSePg.js → architectureDiagram-3BPJPVTR-BT3zjf2O.js} +1 -1
  3. package/dist/assets/{blockDiagram-GPEHLZMM-Br570MCp.js → blockDiagram-GPEHLZMM-DiCk9kRh.js} +1 -1
  4. package/dist/assets/{c4Diagram-AAUBKEIU-DkTSnj0d.js → c4Diagram-AAUBKEIU-CLHkauF7.js} +1 -1
  5. package/dist/assets/channel-uh6PxTgh.js +1 -0
  6. package/dist/assets/{chunk-2J33WTMH-CrTr9xzl.js → chunk-2J33WTMH-CXuH0ZJ2.js} +1 -1
  7. package/dist/assets/{chunk-4BX2VUAB-D0wgG8xH.js → chunk-4BX2VUAB-JBWjMXmI.js} +1 -1
  8. package/dist/assets/{chunk-55IACEB6-Duov_Htw.js → chunk-55IACEB6-DrdwYbrF.js} +1 -1
  9. package/dist/assets/{chunk-727SXJPM-DDvX-nhe.js → chunk-727SXJPM-EJreahwy.js} +1 -1
  10. package/dist/assets/{chunk-AQP2D5EJ-09XyW5jk.js → chunk-AQP2D5EJ-BSuOE8Fl.js} +1 -1
  11. package/dist/assets/{chunk-FMBD7UC4-C8_DpYrt.js → chunk-FMBD7UC4-DytmfhVl.js} +1 -1
  12. package/dist/assets/{chunk-ND2GUHAM-BeN_xln2.js → chunk-ND2GUHAM-34C1YW85.js} +1 -1
  13. package/dist/assets/{chunk-QZHKN3VN-vOMf7cyc.js → chunk-QZHKN3VN-CZc9G__T.js} +1 -1
  14. package/dist/assets/classDiagram-4FO5ZUOK-D7qIjrQs.js +1 -0
  15. package/dist/assets/classDiagram-v2-Q7XG4LA2-D7qIjrQs.js +1 -0
  16. package/dist/assets/{cose-bilkent-S5V4N54A-pK2cAyHP.js → cose-bilkent-S5V4N54A-BnA4F643.js} +1 -1
  17. package/dist/assets/{dagre-BM42HDAG-kL6GF6jg.js → dagre-BM42HDAG-C9p-bhyW.js} +1 -1
  18. package/dist/assets/{diagram-2AECGRRQ-dykDFI_K.js → diagram-2AECGRRQ-B6FruBT9.js} +1 -1
  19. package/dist/assets/{diagram-5GNKFQAL-WJvXRiuM.js → diagram-5GNKFQAL-CC-X1vrW.js} +1 -1
  20. package/dist/assets/{diagram-KO2AKTUF-D2favLYT.js → diagram-KO2AKTUF-5LSyCa2k.js} +1 -1
  21. package/dist/assets/{diagram-LMA3HP47-CXVuETL_.js → diagram-LMA3HP47-NCIkzHXK.js} +1 -1
  22. package/dist/assets/{diagram-OG6HWLK6-BcJzKfoj.js → diagram-OG6HWLK6-B2ml3GRH.js} +1 -1
  23. package/dist/assets/{erDiagram-TEJ5UH35-thR4lGNd.js → erDiagram-TEJ5UH35-DPN3MDsL.js} +1 -1
  24. package/dist/assets/{flowDiagram-I6XJVG4X-BxfwGe_r.js → flowDiagram-I6XJVG4X-CRuJQi7u.js} +1 -1
  25. package/dist/assets/{ganttDiagram-6RSMTGT7-fwLip5Nh.js → ganttDiagram-6RSMTGT7-D6D_Y_Y7.js} +1 -1
  26. package/dist/assets/{gitGraphDiagram-PVQCEYII-D-oFePm0.js → gitGraphDiagram-PVQCEYII-82gEHn57.js} +1 -1
  27. package/dist/assets/index-CNMccJ44.css +1 -0
  28. package/dist/assets/index-DS9nwwVz.js +94 -0
  29. package/dist/assets/{infoDiagram-5YYISTIA-D4MiRb75.js → infoDiagram-5YYISTIA-BARiYn_h.js} +1 -1
  30. package/dist/assets/{ishikawaDiagram-YF4QCWOH-BXo0XBC7.js → ishikawaDiagram-YF4QCWOH-B_WSce8w.js} +1 -1
  31. package/dist/assets/{journeyDiagram-JHISSGLW-CqScJnKj.js → journeyDiagram-JHISSGLW-CL3MtaGa.js} +1 -1
  32. package/dist/assets/{kanban-definition-UN3LZRKU-MV47OAPx.js → kanban-definition-UN3LZRKU-Cksw8W8r.js} +1 -1
  33. package/dist/assets/{linear-DLYnUT7M.js → linear-KbP41E8H.js} +1 -1
  34. package/dist/assets/{mermaid.core-DuagT3S2.js → mermaid.core-D_mFRtuY.js} +4 -4
  35. package/dist/assets/{mindmap-definition-RKZ34NQL-HJXV2iNz.js → mindmap-definition-RKZ34NQL-CvTMPwp2.js} +1 -1
  36. package/dist/assets/{pieDiagram-4H26LBE5-BVHq2F8U.js → pieDiagram-4H26LBE5-fBzvwZIV.js} +1 -1
  37. package/dist/assets/{quadrantDiagram-W4KKPZXB-BUPck4BP.js → quadrantDiagram-W4KKPZXB-DOq7H6qv.js} +1 -1
  38. package/dist/assets/{requirementDiagram-4Y6WPE33-DQl89ON9.js → requirementDiagram-4Y6WPE33-6dvh9aRE.js} +1 -1
  39. package/dist/assets/{sankeyDiagram-5OEKKPKP-DD5N52ZQ.js → sankeyDiagram-5OEKKPKP-BZRa0Yp5.js} +1 -1
  40. package/dist/assets/{sequenceDiagram-3UESZ5HK-zctcDLCC.js → sequenceDiagram-3UESZ5HK-DoxI6gHW.js} +1 -1
  41. package/dist/assets/{stateDiagram-AJRCARHV-Vyn0aDZv.js → stateDiagram-AJRCARHV-Dil73wf7.js} +1 -1
  42. package/dist/assets/stateDiagram-v2-BHNVJYJU-Cj5G8vUU.js +1 -0
  43. package/dist/assets/{timeline-definition-PNZ67QCA-1XNXDgjy.js → timeline-definition-PNZ67QCA-BybP4fDM.js} +1 -1
  44. package/dist/assets/{vennDiagram-CIIHVFJN-DZ1fF_Rg.js → vennDiagram-CIIHVFJN-CIg8OwuQ.js} +1 -1
  45. package/dist/assets/{wardley-L42UT6IY-DsEWk1n9.js → wardley-L42UT6IY-pXxmrIkF.js} +1 -1
  46. package/dist/assets/{wardleyDiagram-YWT4CUSO-CpQIM9KB.js → wardleyDiagram-YWT4CUSO-DcjDNJ4g.js} +1 -1
  47. package/dist/assets/{xychartDiagram-2RQKCTM6-CIryoW2U.js → xychartDiagram-2RQKCTM6-Y9DRV4WF.js} +1 -1
  48. package/dist/index.html +2 -2
  49. package/host-integration/HOST_INTEGRATION.md +123 -0
  50. package/host-integration/RemoteModule.vue +23 -1
  51. package/package.json +1 -1
  52. package/dist/assets/channel-DiZdOJ9B.js +0 -1
  53. package/dist/assets/classDiagram-4FO5ZUOK-DDDJcc4H.js +0 -1
  54. package/dist/assets/classDiagram-v2-Q7XG4LA2-DDDJcc4H.js +0 -1
  55. package/dist/assets/index-CbSmh0fl.js +0 -86
  56. package/dist/assets/index-DDQloFPo.css +0 -1
  57. package/dist/assets/stateDiagram-v2-BHNVJYJU-BY6pmmBt.js +0 -1
@@ -1,4 +1,4 @@
1
- import{b as C,af as pe,a3 as ee,s as K,b0 as fe,F as ge,aE as Q,bc as P,a$ as j,b2 as me,a2 as ye,b4 as Se,a6 as ve,a1 as xe,b1 as be,T as we,aw as Ce,t as Te}from"./mermaid.core-DuagT3S2.js";import{s as Le}from"./chunk-2J33WTMH-CrTr9xzl.js";import{p as $e}from"./chunk-4BX2VUAB-D0wgG8xH.js";import{p as Ae}from"./wardley-L42UT6IY-DsEWk1n9.js";import{f as O}from"./defaultLocale-CrowFXzY.js";import{o as J}from"./ordinal-Cboi1Yqb.js";import"./index-CbSmh0fl.js";import"./init-Gi6I4Gst.js";function Fe(t){var n=0,l=t.children,a=l&&l.length;if(!a)n=1;else for(;--a>=0;)n+=l[a].value;t.value=n}function Ne(){return this.eachAfter(Fe)}function Me(t,n){let l=-1;for(const a of this)t.call(n,a,++l,this);return this}function Ve(t,n){for(var l=this,a=[l],r,c,d=-1;l=a.pop();)if(t.call(n,l,++d,this),r=l.children)for(c=r.length-1;c>=0;--c)a.push(r[c]);return this}function ke(t,n){for(var l=this,a=[l],r=[],c,d,u,g=-1;l=a.pop();)if(r.push(l),c=l.children)for(d=0,u=c.length;d<u;++d)a.push(c[d]);for(;l=r.pop();)t.call(n,l,++g,this);return this}function _e(t,n){let l=-1;for(const a of this)if(t.call(n,a,++l,this))return a}function ze(t){return this.eachAfter(function(n){for(var l=+t(n.data)||0,a=n.children,r=a&&a.length;--r>=0;)l+=a[r].value;n.value=l})}function De(t){return this.eachBefore(function(n){n.children&&n.children.sort(t)})}function Pe(t){for(var n=this,l=Be(n,t),a=[n];n!==l;)n=n.parent,a.push(n);for(var r=a.length;t!==l;)a.splice(r,0,t),t=t.parent;return a}function Be(t,n){if(t===n)return t;var l=t.ancestors(),a=n.ancestors(),r=null;for(t=l.pop(),n=a.pop();t===n;)r=t,t=l.pop(),n=a.pop();return r}function Ee(){for(var t=this,n=[t];t=t.parent;)n.push(t);return n}function Re(){return Array.from(this)}function We(){var t=[];return this.eachBefore(function(n){n.children||t.push(n)}),t}function He(){var t=this,n=[];return t.each(function(l){l!==t&&n.push({source:l.parent,target:l})}),n}function*Ie(){var t=this,n,l=[t],a,r,c;do for(n=l.reverse(),l=[];t=n.pop();)if(yield t,a=t.children)for(r=0,c=a.length;r<c;++r)l.push(a[r]);while(l.length)}function te(t,n){t instanceof Map?(t=[void 0,t],n===void 0&&(n=qe)):n===void 0&&(n=Ge);for(var l=new U(t),a,r=[l],c,d,u,g;a=r.pop();)if((d=n(a.data))&&(g=(d=Array.from(d)).length))for(a.children=d,u=g-1;u>=0;--u)r.push(c=d[u]=new U(d[u])),c.parent=a,c.depth=a.depth+1;return l.eachBefore(Ye)}function Oe(){return te(this).eachBefore(Xe)}function Ge(t){return t.children}function qe(t){return Array.isArray(t)?t[1]:null}function Xe(t){t.data.value!==void 0&&(t.value=t.data.value),t.data=t.data.data}function Ye(t){var n=0;do t.height=n;while((t=t.parent)&&t.height<++n)}function U(t){this.data=t,this.depth=this.height=0,this.parent=null}U.prototype=te.prototype={constructor:U,count:Ne,each:Me,eachAfter:ke,eachBefore:Ve,find:_e,sum:ze,sort:De,path:Pe,ancestors:Ee,descendants:Re,leaves:We,links:He,copy:Oe,[Symbol.iterator]:Ie};function je(t){if(typeof t!="function")throw new Error;return t}function G(){return 0}function q(t){return function(){return t}}function Ue(t){t.x0=Math.round(t.x0),t.y0=Math.round(t.y0),t.x1=Math.round(t.x1),t.y1=Math.round(t.y1)}function Ze(t,n,l,a,r){for(var c=t.children,d,u=-1,g=c.length,o=t.value&&(a-n)/t.value;++u<g;)d=c[u],d.y0=l,d.y1=r,d.x0=n,d.x1=n+=d.value*o}function Je(t,n,l,a,r){for(var c=t.children,d,u=-1,g=c.length,o=t.value&&(r-l)/t.value;++u<g;)d=c[u],d.x0=n,d.x1=a,d.y0=l,d.y1=l+=d.value*o}var Ke=(1+Math.sqrt(5))/2;function Qe(t,n,l,a,r,c){for(var d=[],u=n.children,g,o,h=0,m=0,s=u.length,y,S,v=n.value,p,x,M,N,z,R,V;h<s;){y=r-l,S=c-a;do p=u[m++].value;while(!p&&m<s);for(x=M=p,R=Math.max(S/y,y/S)/(v*t),V=p*p*R,z=Math.max(M/V,V/x);m<s;++m){if(p+=o=u[m].value,o<x&&(x=o),o>M&&(M=o),V=p*p*R,N=Math.max(M/V,V/x),N>z){p-=o;break}z=N}d.push(g={value:p,dice:y<S,children:u.slice(h,m)}),g.dice?Ze(g,l,a,r,v?a+=S*p/v:c):Je(g,l,a,v?l+=y*p/v:r,c),v-=p,h=m}return d}const et=function t(n){function l(a,r,c,d,u){Qe(n,a,r,c,d,u)}return l.ratio=function(a){return t((a=+a)>1?a:1)},l}(Ke);function tt(){var t=et,n=!1,l=1,a=1,r=[0],c=G,d=G,u=G,g=G,o=G;function h(s){return s.x0=s.y0=0,s.x1=l,s.y1=a,s.eachBefore(m),r=[0],n&&s.eachBefore(Ue),s}function m(s){var y=r[s.depth],S=s.x0+y,v=s.y0+y,p=s.x1-y,x=s.y1-y;p<S&&(S=p=(S+p)/2),x<v&&(v=x=(v+x)/2),s.x0=S,s.y0=v,s.x1=p,s.y1=x,s.children&&(y=r[s.depth+1]=c(s)/2,S+=o(s)-y,v+=d(s)-y,p-=u(s)-y,x-=g(s)-y,p<S&&(S=p=(S+p)/2),x<v&&(v=x=(v+x)/2),t(s,S,v,p,x))}return h.round=function(s){return arguments.length?(n=!!s,h):n},h.size=function(s){return arguments.length?(l=+s[0],a=+s[1],h):[l,a]},h.tile=function(s){return arguments.length?(t=je(s),h):t},h.padding=function(s){return arguments.length?h.paddingInner(s).paddingOuter(s):h.paddingInner()},h.paddingInner=function(s){return arguments.length?(c=typeof s=="function"?s:q(+s),h):c},h.paddingOuter=function(s){return arguments.length?h.paddingTop(s).paddingRight(s).paddingBottom(s).paddingLeft(s):h.paddingTop()},h.paddingTop=function(s){return arguments.length?(d=typeof s=="function"?s:q(+s),h):d},h.paddingRight=function(s){return arguments.length?(u=typeof s=="function"?s:q(+s),h):u},h.paddingBottom=function(s){return arguments.length?(g=typeof s=="function"?s:q(+s),h):g},h.paddingLeft=function(s){return arguments.length?(o=typeof s=="function"?s:q(+s),h):o},h}var E,re=(E=class{constructor(){this.nodes=[],this.levels=new Map,this.outerNodes=[],this.classes=new Map,this.setAccTitle=me,this.getAccTitle=ye,this.setDiagramTitle=Se,this.getDiagramTitle=ve,this.getAccDescription=xe,this.setAccDescription=be}getNodes(){return this.nodes}getConfig(){var a;const n=we,l=ee();return K({...n.treemap,...(a=l.treemap)!=null?a:{}})}addNode(n,l){var a;this.nodes.push(n),this.levels.set(n,l),l===0&&(this.outerNodes.push(n),(a=this.root)!=null||(this.root=n))}getRoot(){return{name:"",children:this.outerNodes}}addClass(n,l){var c;const a=(c=this.classes.get(n))!=null?c:{id:n,styles:[],textStyles:[]},r=l.replace(/\\,/g,"§§§").replace(/,/g,";").replace(/§§§/g,",").split(";");r&&r.forEach(d=>{Ce(d)&&(a!=null&&a.textStyles?a.textStyles.push(d):a.textStyles=[d]),a!=null&&a.styles?a.styles.push(d):a.styles=[d]}),this.classes.set(n,a)}getClasses(){return this.classes}getStylesForClass(n){var l,a;return(a=(l=this.classes.get(n))==null?void 0:l.styles)!=null?a:[]}clear(){Te(),this.nodes=[],this.levels=new Map,this.outerNodes=[],this.classes=new Map,this.root=void 0}},C(E,"TreeMapDB"),E);function se(t){if(!t.length)return[];const n=[],l=[];return t.forEach(a=>{const r={name:a.name,children:a.type==="Leaf"?void 0:[]};for(r.classSelector=a==null?void 0:a.classSelector,a!=null&&a.cssCompiledStyles&&(r.cssCompiledStyles=a.cssCompiledStyles),a.type==="Leaf"&&a.value!==void 0&&(r.value=a.value);l.length>0&&l[l.length-1].level>=a.level;)l.pop();if(l.length===0)n.push(r);else{const c=l[l.length-1].node;c.children?c.children.push(r):c.children=[r]}a.type!=="Leaf"&&l.push({node:r,level:a.level})}),n}C(se,"buildHierarchy");var at=C((t,n)=>{var c,d,u,g;$e(t,n);const l=[];for(const o of(c=t.TreemapRows)!=null?c:[])o.$type==="ClassDefStatement"&&n.addClass((d=o.className)!=null?d:"",(u=o.styleText)!=null?u:"");for(const o of(g=t.TreemapRows)!=null?g:[]){const h=o.item;if(!h)continue;const m=o.indent?parseInt(o.indent):0,s=nt(h),y=h.classSelector?n.getStylesForClass(h.classSelector):[],S=y.length>0?y:void 0,v={level:m,name:s,type:h.$type,value:h.value,classSelector:h.classSelector,cssCompiledStyles:S};l.push(v)}const a=se(l),r=C((o,h)=>{for(const m of o)n.addNode(m,h),m.children&&m.children.length>0&&r(m.children,h+1)},"addNodesRecursively");r(a,0)},"populate"),nt=C(t=>t.name?String(t.name):"","getItemName"),ie={parser:{yy:void 0},parse:C(async t=>{var n;try{const a=await Ae("treemap",t);Q.debug("Treemap AST:",a);const r=(n=ie.parser)==null?void 0:n.yy;if(!(r instanceof re))throw new Error("parser.parser?.yy was not a TreemapDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");at(a,r)}catch(l){throw Q.error("Error parsing treemap:",l),l}},"parse")},lt=10,B=10,X=25,rt=C((t,n,l,a)=>{var ne,le;const r=a.db,c=r.getConfig(),d=(ne=c.padding)!=null?ne:lt,u=r.getDiagramTitle(),g=r.getRoot(),{themeVariables:o}=ee();if(!g)return;const h=u?30:0,m=fe(n),s=c.nodeWidth?c.nodeWidth*B:960,y=c.nodeHeight?c.nodeHeight*B:500,S=s,v=y+h;m.attr("viewBox",`0 0 ${S} ${v}`),ge(m,v,S,c.useMaxWidth);let p;try{const e=c.valueFormat||",";if(e==="$0,0")p=C(i=>"$"+O(",")(i),"valueFormat");else if(e.startsWith("$")&&e.includes(",")){const i=/\.\d+/.exec(e),f=i?i[0]:"";p=C(w=>"$"+O(","+f)(w),"valueFormat")}else if(e.startsWith("$")){const i=e.substring(1);p=C(f=>"$"+O(i||"")(f),"valueFormat")}else p=O(e)}catch(e){Q.error("Error creating format function:",e),p=O(",")}const x=J().range(["transparent",o.cScale0,o.cScale1,o.cScale2,o.cScale3,o.cScale4,o.cScale5,o.cScale6,o.cScale7,o.cScale8,o.cScale9,o.cScale10,o.cScale11]),M=J().range(["transparent",o.cScalePeer0,o.cScalePeer1,o.cScalePeer2,o.cScalePeer3,o.cScalePeer4,o.cScalePeer5,o.cScalePeer6,o.cScalePeer7,o.cScalePeer8,o.cScalePeer9,o.cScalePeer10,o.cScalePeer11]),N=J().range([o.cScaleLabel0,o.cScaleLabel1,o.cScaleLabel2,o.cScaleLabel3,o.cScaleLabel4,o.cScaleLabel5,o.cScaleLabel6,o.cScaleLabel7,o.cScaleLabel8,o.cScaleLabel9,o.cScaleLabel10,o.cScaleLabel11]);u&&m.append("text").attr("x",S/2).attr("y",h/2).attr("class","treemapTitle").attr("text-anchor","middle").attr("dominant-baseline","middle").text(u);const z=m.append("g").attr("transform",`translate(0, ${h})`).attr("class","treemapContainer"),R=te(g).sum(e=>{var i;return(i=e.value)!=null?i:0}).sort((e,i)=>{var f,w;return((f=i.value)!=null?f:0)-((w=e.value)!=null?w:0)}),ae=tt().size([s,y]).paddingTop(e=>e.children&&e.children.length>0?X+B:0).paddingInner(d).paddingLeft(e=>e.children&&e.children.length>0?B:0).paddingRight(e=>e.children&&e.children.length>0?B:0).paddingBottom(e=>e.children&&e.children.length>0?B:0).round(!0)(R),oe=ae.descendants().filter(e=>e.children&&e.children.length>0),W=z.selectAll(".treemapSection").data(oe).enter().append("g").attr("class","treemapSection").attr("transform",e=>`translate(${e.x0},${e.y0})`);W.append("rect").attr("width",e=>e.x1-e.x0).attr("height",X).attr("class","treemapSectionHeader").attr("fill","none").attr("fill-opacity",.6).attr("stroke-width",.6).attr("style",e=>e.depth===0?"display: none;":""),W.append("clipPath").attr("id",(e,i)=>`clip-section-${n}-${i}`).append("rect").attr("width",e=>Math.max(0,e.x1-e.x0-12)).attr("height",X),W.append("rect").attr("width",e=>e.x1-e.x0).attr("height",e=>e.y1-e.y0).attr("class",(e,i)=>`treemapSection section${i}`).attr("fill",e=>x(e.data.name)).attr("fill-opacity",.6).attr("stroke",e=>M(e.data.name)).attr("stroke-width",2).attr("stroke-opacity",.4).attr("style",e=>{if(e.depth===0)return"display: none;";const i=P({cssCompiledStyles:e.data.cssCompiledStyles});return i.nodeStyles+";"+i.borderStyles.join(";")}),W.append("text").attr("class","treemapSectionLabel").attr("x",6).attr("y",X/2).attr("dominant-baseline","middle").text(e=>e.depth===0?"":e.data.name).attr("font-weight","bold").attr("style",e=>{if(e.depth===0)return"display: none;";const i="dominant-baseline: middle; font-size: 12px; fill:"+N(e.data.name)+"; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;",f=P({cssCompiledStyles:e.data.cssCompiledStyles});return i+f.labelStyles.replace("color:","fill:")}).each(function(e){if(e.depth===0)return;const i=j(this),f=e.data.name;i.text(f);const w=e.x1-e.x0,$=6;let A;c.showValues!==!1&&e.value?A=w-10-30-10-$:A=w-$-6;const F=Math.max(15,A),b=i.node();if(b.getComputedTextLength()>F){const T="...";let L=f;for(;L.length>0;){if(L=f.substring(0,L.length-1),L.length===0){i.text(T),b.getComputedTextLength()>F&&i.text("");break}if(i.text(L+T),b.getComputedTextLength()<=F)break}}}),c.showValues!==!1&&W.append("text").attr("class","treemapSectionValue").attr("x",e=>e.x1-e.x0-10).attr("y",X/2).attr("text-anchor","end").attr("dominant-baseline","middle").text(e=>e.value?p(e.value):"").attr("font-style","italic").attr("style",e=>{if(e.depth===0)return"display: none;";const i="text-anchor: end; dominant-baseline: middle; font-size: 10px; fill:"+N(e.data.name)+"; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;",f=P({cssCompiledStyles:e.data.cssCompiledStyles});return i+f.labelStyles.replace("color:","fill:")});const ce=ae.leaves(),Y=z.selectAll(".treemapLeafGroup").data(ce).enter().append("g").attr("class",(e,i)=>`treemapNode treemapLeafGroup leaf${i}${e.data.classSelector?` ${e.data.classSelector}`:""}x`).attr("transform",e=>`translate(${e.x0},${e.y0})`);Y.append("rect").attr("width",e=>e.x1-e.x0).attr("height",e=>e.y1-e.y0).attr("class","treemapLeaf").attr("fill",e=>e.parent?x(e.parent.data.name):x(e.data.name)).attr("style",e=>P({cssCompiledStyles:e.data.cssCompiledStyles}).nodeStyles).attr("fill-opacity",.3).attr("stroke",e=>e.parent?x(e.parent.data.name):x(e.data.name)).attr("stroke-width",3),Y.append("clipPath").attr("id",(e,i)=>`clip-${n}-${i}`).append("rect").attr("width",e=>Math.max(0,e.x1-e.x0-4)).attr("height",e=>Math.max(0,e.y1-e.y0-4)),Y.append("text").attr("class","treemapLabel").attr("x",e=>(e.x1-e.x0)/2).attr("y",e=>(e.y1-e.y0)/2).attr("style",e=>{const i="text-anchor: middle; dominant-baseline: middle; font-size: 38px;fill:"+N(e.data.name)+";",f=P({cssCompiledStyles:e.data.cssCompiledStyles});return i+f.labelStyles.replace("color:","fill:")}).attr("clip-path",(e,i)=>`url(#clip-${n}-${i})`).text(e=>e.data.name).each(function(e){const i=j(this),f=e.x1-e.x0,w=e.y1-e.y0,$=i.node(),A=4,D=f-2*A,F=w-2*A;if(D<10||F<10){i.style("display","none");return}let b=parseInt(i.style("font-size"),10);const k=8,T=28,L=.6,_=6,H=2;for(;$.getComputedTextLength()>D&&b>k;)b--,i.style("font-size",`${b}px`);let I=Math.max(_,Math.min(T,Math.round(b*L))),Z=b+H+I;for(;Z>F&&b>k&&(b--,I=Math.max(_,Math.min(T,Math.round(b*L))),!(I<_&&b===k));)i.style("font-size",`${b}px`),Z=b+H+I;i.style("font-size",`${b}px`),($.getComputedTextLength()>D||b<k||F<b)&&i.style("display","none")}),c.showValues!==!1&&Y.append("text").attr("class","treemapValue").attr("x",i=>(i.x1-i.x0)/2).attr("y",function(i){return(i.y1-i.y0)/2}).attr("style",i=>{const f="text-anchor: middle; dominant-baseline: hanging; font-size: 28px;fill:"+N(i.data.name)+";",w=P({cssCompiledStyles:i.data.cssCompiledStyles});return f+w.labelStyles.replace("color:","fill:")}).attr("clip-path",(i,f)=>`url(#clip-${n}-${f})`).text(i=>i.value?p(i.value):"").each(function(i){const f=j(this),w=this.parentNode;if(!w){f.style("display","none");return}const $=j(w).select(".treemapLabel");if($.empty()||$.style("display")==="none"){f.style("display","none");return}const A=parseFloat($.style("font-size")),D=28,F=.6,b=6,k=2,T=Math.max(b,Math.min(D,Math.round(A*F)));f.style("font-size",`${T}px`);const _=(i.y1-i.y0)/2+A/2+k;f.attr("y",_);const H=i.x1-i.x0,he=i.y1-i.y0-4,ue=H-2*4;f.node().getComputedTextLength()>ue||_+T>he||T<b?f.style("display","none"):f.style("display",null)});const de=(le=c.diagramPadding)!=null?le:8;Le(m,de,"flowchart",(c==null?void 0:c.useMaxWidth)||!1)},"draw"),st=C(function(t,n){return n.db.getClasses()},"getClasses"),it={draw:rt,getClasses:st},ot={sectionStrokeColor:"black",sectionStrokeWidth:"1",sectionFillColor:"#efefef",leafStrokeColor:"black",leafStrokeWidth:"1",leafFillColor:"#efefef",labelFontSize:"12px",valueFontSize:"10px",titleFontSize:"14px"},ct=C(({treemap:t}={})=>{var g,o,h;const n=pe(),l=ee(),a=K(n,l.themeVariables),r=K(ot,t),c=(g=r.titleColor)!=null?g:a.titleColor,d=(o=r.labelColor)!=null?o:a.textColor,u=(h=r.valueColor)!=null?h:a.textColor;return`
1
+ import{b as C,af as pe,a3 as ee,s as K,b0 as fe,F as ge,aE as Q,bc as P,a$ as j,b2 as me,a2 as ye,b4 as Se,a6 as ve,a1 as xe,b1 as be,T as we,aw as Ce,t as Te}from"./mermaid.core-D_mFRtuY.js";import{s as Le}from"./chunk-2J33WTMH-CXuH0ZJ2.js";import{p as $e}from"./chunk-4BX2VUAB-JBWjMXmI.js";import{p as Ae}from"./wardley-L42UT6IY-pXxmrIkF.js";import{f as O}from"./defaultLocale-CrowFXzY.js";import{o as J}from"./ordinal-Cboi1Yqb.js";import"./index-DS9nwwVz.js";import"./init-Gi6I4Gst.js";function Fe(t){var n=0,l=t.children,a=l&&l.length;if(!a)n=1;else for(;--a>=0;)n+=l[a].value;t.value=n}function Ne(){return this.eachAfter(Fe)}function Me(t,n){let l=-1;for(const a of this)t.call(n,a,++l,this);return this}function Ve(t,n){for(var l=this,a=[l],r,c,d=-1;l=a.pop();)if(t.call(n,l,++d,this),r=l.children)for(c=r.length-1;c>=0;--c)a.push(r[c]);return this}function ke(t,n){for(var l=this,a=[l],r=[],c,d,u,g=-1;l=a.pop();)if(r.push(l),c=l.children)for(d=0,u=c.length;d<u;++d)a.push(c[d]);for(;l=r.pop();)t.call(n,l,++g,this);return this}function _e(t,n){let l=-1;for(const a of this)if(t.call(n,a,++l,this))return a}function ze(t){return this.eachAfter(function(n){for(var l=+t(n.data)||0,a=n.children,r=a&&a.length;--r>=0;)l+=a[r].value;n.value=l})}function De(t){return this.eachBefore(function(n){n.children&&n.children.sort(t)})}function Pe(t){for(var n=this,l=Be(n,t),a=[n];n!==l;)n=n.parent,a.push(n);for(var r=a.length;t!==l;)a.splice(r,0,t),t=t.parent;return a}function Be(t,n){if(t===n)return t;var l=t.ancestors(),a=n.ancestors(),r=null;for(t=l.pop(),n=a.pop();t===n;)r=t,t=l.pop(),n=a.pop();return r}function Ee(){for(var t=this,n=[t];t=t.parent;)n.push(t);return n}function Re(){return Array.from(this)}function We(){var t=[];return this.eachBefore(function(n){n.children||t.push(n)}),t}function He(){var t=this,n=[];return t.each(function(l){l!==t&&n.push({source:l.parent,target:l})}),n}function*Ie(){var t=this,n,l=[t],a,r,c;do for(n=l.reverse(),l=[];t=n.pop();)if(yield t,a=t.children)for(r=0,c=a.length;r<c;++r)l.push(a[r]);while(l.length)}function te(t,n){t instanceof Map?(t=[void 0,t],n===void 0&&(n=qe)):n===void 0&&(n=Ge);for(var l=new U(t),a,r=[l],c,d,u,g;a=r.pop();)if((d=n(a.data))&&(g=(d=Array.from(d)).length))for(a.children=d,u=g-1;u>=0;--u)r.push(c=d[u]=new U(d[u])),c.parent=a,c.depth=a.depth+1;return l.eachBefore(Ye)}function Oe(){return te(this).eachBefore(Xe)}function Ge(t){return t.children}function qe(t){return Array.isArray(t)?t[1]:null}function Xe(t){t.data.value!==void 0&&(t.value=t.data.value),t.data=t.data.data}function Ye(t){var n=0;do t.height=n;while((t=t.parent)&&t.height<++n)}function U(t){this.data=t,this.depth=this.height=0,this.parent=null}U.prototype=te.prototype={constructor:U,count:Ne,each:Me,eachAfter:ke,eachBefore:Ve,find:_e,sum:ze,sort:De,path:Pe,ancestors:Ee,descendants:Re,leaves:We,links:He,copy:Oe,[Symbol.iterator]:Ie};function je(t){if(typeof t!="function")throw new Error;return t}function G(){return 0}function q(t){return function(){return t}}function Ue(t){t.x0=Math.round(t.x0),t.y0=Math.round(t.y0),t.x1=Math.round(t.x1),t.y1=Math.round(t.y1)}function Ze(t,n,l,a,r){for(var c=t.children,d,u=-1,g=c.length,o=t.value&&(a-n)/t.value;++u<g;)d=c[u],d.y0=l,d.y1=r,d.x0=n,d.x1=n+=d.value*o}function Je(t,n,l,a,r){for(var c=t.children,d,u=-1,g=c.length,o=t.value&&(r-l)/t.value;++u<g;)d=c[u],d.x0=n,d.x1=a,d.y0=l,d.y1=l+=d.value*o}var Ke=(1+Math.sqrt(5))/2;function Qe(t,n,l,a,r,c){for(var d=[],u=n.children,g,o,h=0,m=0,s=u.length,y,S,v=n.value,p,x,M,N,z,R,V;h<s;){y=r-l,S=c-a;do p=u[m++].value;while(!p&&m<s);for(x=M=p,R=Math.max(S/y,y/S)/(v*t),V=p*p*R,z=Math.max(M/V,V/x);m<s;++m){if(p+=o=u[m].value,o<x&&(x=o),o>M&&(M=o),V=p*p*R,N=Math.max(M/V,V/x),N>z){p-=o;break}z=N}d.push(g={value:p,dice:y<S,children:u.slice(h,m)}),g.dice?Ze(g,l,a,r,v?a+=S*p/v:c):Je(g,l,a,v?l+=y*p/v:r,c),v-=p,h=m}return d}const et=function t(n){function l(a,r,c,d,u){Qe(n,a,r,c,d,u)}return l.ratio=function(a){return t((a=+a)>1?a:1)},l}(Ke);function tt(){var t=et,n=!1,l=1,a=1,r=[0],c=G,d=G,u=G,g=G,o=G;function h(s){return s.x0=s.y0=0,s.x1=l,s.y1=a,s.eachBefore(m),r=[0],n&&s.eachBefore(Ue),s}function m(s){var y=r[s.depth],S=s.x0+y,v=s.y0+y,p=s.x1-y,x=s.y1-y;p<S&&(S=p=(S+p)/2),x<v&&(v=x=(v+x)/2),s.x0=S,s.y0=v,s.x1=p,s.y1=x,s.children&&(y=r[s.depth+1]=c(s)/2,S+=o(s)-y,v+=d(s)-y,p-=u(s)-y,x-=g(s)-y,p<S&&(S=p=(S+p)/2),x<v&&(v=x=(v+x)/2),t(s,S,v,p,x))}return h.round=function(s){return arguments.length?(n=!!s,h):n},h.size=function(s){return arguments.length?(l=+s[0],a=+s[1],h):[l,a]},h.tile=function(s){return arguments.length?(t=je(s),h):t},h.padding=function(s){return arguments.length?h.paddingInner(s).paddingOuter(s):h.paddingInner()},h.paddingInner=function(s){return arguments.length?(c=typeof s=="function"?s:q(+s),h):c},h.paddingOuter=function(s){return arguments.length?h.paddingTop(s).paddingRight(s).paddingBottom(s).paddingLeft(s):h.paddingTop()},h.paddingTop=function(s){return arguments.length?(d=typeof s=="function"?s:q(+s),h):d},h.paddingRight=function(s){return arguments.length?(u=typeof s=="function"?s:q(+s),h):u},h.paddingBottom=function(s){return arguments.length?(g=typeof s=="function"?s:q(+s),h):g},h.paddingLeft=function(s){return arguments.length?(o=typeof s=="function"?s:q(+s),h):o},h}var E,re=(E=class{constructor(){this.nodes=[],this.levels=new Map,this.outerNodes=[],this.classes=new Map,this.setAccTitle=me,this.getAccTitle=ye,this.setDiagramTitle=Se,this.getDiagramTitle=ve,this.getAccDescription=xe,this.setAccDescription=be}getNodes(){return this.nodes}getConfig(){var a;const n=we,l=ee();return K({...n.treemap,...(a=l.treemap)!=null?a:{}})}addNode(n,l){var a;this.nodes.push(n),this.levels.set(n,l),l===0&&(this.outerNodes.push(n),(a=this.root)!=null||(this.root=n))}getRoot(){return{name:"",children:this.outerNodes}}addClass(n,l){var c;const a=(c=this.classes.get(n))!=null?c:{id:n,styles:[],textStyles:[]},r=l.replace(/\\,/g,"§§§").replace(/,/g,";").replace(/§§§/g,",").split(";");r&&r.forEach(d=>{Ce(d)&&(a!=null&&a.textStyles?a.textStyles.push(d):a.textStyles=[d]),a!=null&&a.styles?a.styles.push(d):a.styles=[d]}),this.classes.set(n,a)}getClasses(){return this.classes}getStylesForClass(n){var l,a;return(a=(l=this.classes.get(n))==null?void 0:l.styles)!=null?a:[]}clear(){Te(),this.nodes=[],this.levels=new Map,this.outerNodes=[],this.classes=new Map,this.root=void 0}},C(E,"TreeMapDB"),E);function se(t){if(!t.length)return[];const n=[],l=[];return t.forEach(a=>{const r={name:a.name,children:a.type==="Leaf"?void 0:[]};for(r.classSelector=a==null?void 0:a.classSelector,a!=null&&a.cssCompiledStyles&&(r.cssCompiledStyles=a.cssCompiledStyles),a.type==="Leaf"&&a.value!==void 0&&(r.value=a.value);l.length>0&&l[l.length-1].level>=a.level;)l.pop();if(l.length===0)n.push(r);else{const c=l[l.length-1].node;c.children?c.children.push(r):c.children=[r]}a.type!=="Leaf"&&l.push({node:r,level:a.level})}),n}C(se,"buildHierarchy");var at=C((t,n)=>{var c,d,u,g;$e(t,n);const l=[];for(const o of(c=t.TreemapRows)!=null?c:[])o.$type==="ClassDefStatement"&&n.addClass((d=o.className)!=null?d:"",(u=o.styleText)!=null?u:"");for(const o of(g=t.TreemapRows)!=null?g:[]){const h=o.item;if(!h)continue;const m=o.indent?parseInt(o.indent):0,s=nt(h),y=h.classSelector?n.getStylesForClass(h.classSelector):[],S=y.length>0?y:void 0,v={level:m,name:s,type:h.$type,value:h.value,classSelector:h.classSelector,cssCompiledStyles:S};l.push(v)}const a=se(l),r=C((o,h)=>{for(const m of o)n.addNode(m,h),m.children&&m.children.length>0&&r(m.children,h+1)},"addNodesRecursively");r(a,0)},"populate"),nt=C(t=>t.name?String(t.name):"","getItemName"),ie={parser:{yy:void 0},parse:C(async t=>{var n;try{const a=await Ae("treemap",t);Q.debug("Treemap AST:",a);const r=(n=ie.parser)==null?void 0:n.yy;if(!(r instanceof re))throw new Error("parser.parser?.yy was not a TreemapDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");at(a,r)}catch(l){throw Q.error("Error parsing treemap:",l),l}},"parse")},lt=10,B=10,X=25,rt=C((t,n,l,a)=>{var ne,le;const r=a.db,c=r.getConfig(),d=(ne=c.padding)!=null?ne:lt,u=r.getDiagramTitle(),g=r.getRoot(),{themeVariables:o}=ee();if(!g)return;const h=u?30:0,m=fe(n),s=c.nodeWidth?c.nodeWidth*B:960,y=c.nodeHeight?c.nodeHeight*B:500,S=s,v=y+h;m.attr("viewBox",`0 0 ${S} ${v}`),ge(m,v,S,c.useMaxWidth);let p;try{const e=c.valueFormat||",";if(e==="$0,0")p=C(i=>"$"+O(",")(i),"valueFormat");else if(e.startsWith("$")&&e.includes(",")){const i=/\.\d+/.exec(e),f=i?i[0]:"";p=C(w=>"$"+O(","+f)(w),"valueFormat")}else if(e.startsWith("$")){const i=e.substring(1);p=C(f=>"$"+O(i||"")(f),"valueFormat")}else p=O(e)}catch(e){Q.error("Error creating format function:",e),p=O(",")}const x=J().range(["transparent",o.cScale0,o.cScale1,o.cScale2,o.cScale3,o.cScale4,o.cScale5,o.cScale6,o.cScale7,o.cScale8,o.cScale9,o.cScale10,o.cScale11]),M=J().range(["transparent",o.cScalePeer0,o.cScalePeer1,o.cScalePeer2,o.cScalePeer3,o.cScalePeer4,o.cScalePeer5,o.cScalePeer6,o.cScalePeer7,o.cScalePeer8,o.cScalePeer9,o.cScalePeer10,o.cScalePeer11]),N=J().range([o.cScaleLabel0,o.cScaleLabel1,o.cScaleLabel2,o.cScaleLabel3,o.cScaleLabel4,o.cScaleLabel5,o.cScaleLabel6,o.cScaleLabel7,o.cScaleLabel8,o.cScaleLabel9,o.cScaleLabel10,o.cScaleLabel11]);u&&m.append("text").attr("x",S/2).attr("y",h/2).attr("class","treemapTitle").attr("text-anchor","middle").attr("dominant-baseline","middle").text(u);const z=m.append("g").attr("transform",`translate(0, ${h})`).attr("class","treemapContainer"),R=te(g).sum(e=>{var i;return(i=e.value)!=null?i:0}).sort((e,i)=>{var f,w;return((f=i.value)!=null?f:0)-((w=e.value)!=null?w:0)}),ae=tt().size([s,y]).paddingTop(e=>e.children&&e.children.length>0?X+B:0).paddingInner(d).paddingLeft(e=>e.children&&e.children.length>0?B:0).paddingRight(e=>e.children&&e.children.length>0?B:0).paddingBottom(e=>e.children&&e.children.length>0?B:0).round(!0)(R),oe=ae.descendants().filter(e=>e.children&&e.children.length>0),W=z.selectAll(".treemapSection").data(oe).enter().append("g").attr("class","treemapSection").attr("transform",e=>`translate(${e.x0},${e.y0})`);W.append("rect").attr("width",e=>e.x1-e.x0).attr("height",X).attr("class","treemapSectionHeader").attr("fill","none").attr("fill-opacity",.6).attr("stroke-width",.6).attr("style",e=>e.depth===0?"display: none;":""),W.append("clipPath").attr("id",(e,i)=>`clip-section-${n}-${i}`).append("rect").attr("width",e=>Math.max(0,e.x1-e.x0-12)).attr("height",X),W.append("rect").attr("width",e=>e.x1-e.x0).attr("height",e=>e.y1-e.y0).attr("class",(e,i)=>`treemapSection section${i}`).attr("fill",e=>x(e.data.name)).attr("fill-opacity",.6).attr("stroke",e=>M(e.data.name)).attr("stroke-width",2).attr("stroke-opacity",.4).attr("style",e=>{if(e.depth===0)return"display: none;";const i=P({cssCompiledStyles:e.data.cssCompiledStyles});return i.nodeStyles+";"+i.borderStyles.join(";")}),W.append("text").attr("class","treemapSectionLabel").attr("x",6).attr("y",X/2).attr("dominant-baseline","middle").text(e=>e.depth===0?"":e.data.name).attr("font-weight","bold").attr("style",e=>{if(e.depth===0)return"display: none;";const i="dominant-baseline: middle; font-size: 12px; fill:"+N(e.data.name)+"; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;",f=P({cssCompiledStyles:e.data.cssCompiledStyles});return i+f.labelStyles.replace("color:","fill:")}).each(function(e){if(e.depth===0)return;const i=j(this),f=e.data.name;i.text(f);const w=e.x1-e.x0,$=6;let A;c.showValues!==!1&&e.value?A=w-10-30-10-$:A=w-$-6;const F=Math.max(15,A),b=i.node();if(b.getComputedTextLength()>F){const T="...";let L=f;for(;L.length>0;){if(L=f.substring(0,L.length-1),L.length===0){i.text(T),b.getComputedTextLength()>F&&i.text("");break}if(i.text(L+T),b.getComputedTextLength()<=F)break}}}),c.showValues!==!1&&W.append("text").attr("class","treemapSectionValue").attr("x",e=>e.x1-e.x0-10).attr("y",X/2).attr("text-anchor","end").attr("dominant-baseline","middle").text(e=>e.value?p(e.value):"").attr("font-style","italic").attr("style",e=>{if(e.depth===0)return"display: none;";const i="text-anchor: end; dominant-baseline: middle; font-size: 10px; fill:"+N(e.data.name)+"; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;",f=P({cssCompiledStyles:e.data.cssCompiledStyles});return i+f.labelStyles.replace("color:","fill:")});const ce=ae.leaves(),Y=z.selectAll(".treemapLeafGroup").data(ce).enter().append("g").attr("class",(e,i)=>`treemapNode treemapLeafGroup leaf${i}${e.data.classSelector?` ${e.data.classSelector}`:""}x`).attr("transform",e=>`translate(${e.x0},${e.y0})`);Y.append("rect").attr("width",e=>e.x1-e.x0).attr("height",e=>e.y1-e.y0).attr("class","treemapLeaf").attr("fill",e=>e.parent?x(e.parent.data.name):x(e.data.name)).attr("style",e=>P({cssCompiledStyles:e.data.cssCompiledStyles}).nodeStyles).attr("fill-opacity",.3).attr("stroke",e=>e.parent?x(e.parent.data.name):x(e.data.name)).attr("stroke-width",3),Y.append("clipPath").attr("id",(e,i)=>`clip-${n}-${i}`).append("rect").attr("width",e=>Math.max(0,e.x1-e.x0-4)).attr("height",e=>Math.max(0,e.y1-e.y0-4)),Y.append("text").attr("class","treemapLabel").attr("x",e=>(e.x1-e.x0)/2).attr("y",e=>(e.y1-e.y0)/2).attr("style",e=>{const i="text-anchor: middle; dominant-baseline: middle; font-size: 38px;fill:"+N(e.data.name)+";",f=P({cssCompiledStyles:e.data.cssCompiledStyles});return i+f.labelStyles.replace("color:","fill:")}).attr("clip-path",(e,i)=>`url(#clip-${n}-${i})`).text(e=>e.data.name).each(function(e){const i=j(this),f=e.x1-e.x0,w=e.y1-e.y0,$=i.node(),A=4,D=f-2*A,F=w-2*A;if(D<10||F<10){i.style("display","none");return}let b=parseInt(i.style("font-size"),10);const k=8,T=28,L=.6,_=6,H=2;for(;$.getComputedTextLength()>D&&b>k;)b--,i.style("font-size",`${b}px`);let I=Math.max(_,Math.min(T,Math.round(b*L))),Z=b+H+I;for(;Z>F&&b>k&&(b--,I=Math.max(_,Math.min(T,Math.round(b*L))),!(I<_&&b===k));)i.style("font-size",`${b}px`),Z=b+H+I;i.style("font-size",`${b}px`),($.getComputedTextLength()>D||b<k||F<b)&&i.style("display","none")}),c.showValues!==!1&&Y.append("text").attr("class","treemapValue").attr("x",i=>(i.x1-i.x0)/2).attr("y",function(i){return(i.y1-i.y0)/2}).attr("style",i=>{const f="text-anchor: middle; dominant-baseline: hanging; font-size: 28px;fill:"+N(i.data.name)+";",w=P({cssCompiledStyles:i.data.cssCompiledStyles});return f+w.labelStyles.replace("color:","fill:")}).attr("clip-path",(i,f)=>`url(#clip-${n}-${f})`).text(i=>i.value?p(i.value):"").each(function(i){const f=j(this),w=this.parentNode;if(!w){f.style("display","none");return}const $=j(w).select(".treemapLabel");if($.empty()||$.style("display")==="none"){f.style("display","none");return}const A=parseFloat($.style("font-size")),D=28,F=.6,b=6,k=2,T=Math.max(b,Math.min(D,Math.round(A*F)));f.style("font-size",`${T}px`);const _=(i.y1-i.y0)/2+A/2+k;f.attr("y",_);const H=i.x1-i.x0,he=i.y1-i.y0-4,ue=H-2*4;f.node().getComputedTextLength()>ue||_+T>he||T<b?f.style("display","none"):f.style("display",null)});const de=(le=c.diagramPadding)!=null?le:8;Le(m,de,"flowchart",(c==null?void 0:c.useMaxWidth)||!1)},"draw"),st=C(function(t,n){return n.db.getClasses()},"getClasses"),it={draw:rt,getClasses:st},ot={sectionStrokeColor:"black",sectionStrokeWidth:"1",sectionFillColor:"#efefef",leafStrokeColor:"black",leafStrokeWidth:"1",leafFillColor:"#efefef",labelFontSize:"12px",valueFontSize:"10px",titleFontSize:"14px"},ct=C(({treemap:t}={})=>{var g,o,h;const n=pe(),l=ee(),a=K(n,l.themeVariables),r=K(ot,t),c=(g=r.titleColor)!=null?g:a.titleColor,d=(o=r.labelColor)!=null?o:a.textColor,u=(h=r.valueColor)!=null?h:a.textColor;return`
2
2
  .treemapNode.section {
3
3
  stroke: ${r.sectionStrokeColor};
4
4
  stroke-width: ${r.sectionStrokeWidth};
@@ -1,4 +1,4 @@
1
- import{g as Bt}from"./chunk-55IACEB6-Duov_Htw.js";import{s as Ft}from"./chunk-2J33WTMH-CrTr9xzl.js";import{b as p,b2 as Yt,a2 as Pt,b1 as zt,a1 as Gt,b4 as Kt,a6 as Ut,a4 as at,aE as M,t as Zt,a7 as jt,aY as Wt,_ as Qt,ab as Xt,aV as Ht,a$ as qt,bl as Jt}from"./mermaid.core-DuagT3S2.js";import{c as $t}from"./channel-DiZdOJ9B.js";import"./index-CbSmh0fl.js";var gt=function(){var s=p(function(R,n,a,l){for(a=a||{},l=R.length;l--;a[R[l]]=n);return a},"o"),i=[6,8,10,22,24,26,28,33,34,35,36,37,40,43,44,48,50,51,52],c=[1,10],h=[1,11],o=[1,12],d=[1,13],y=[1,23],u=[1,24],k=[1,25],X=[1,26],H=[1,27],T=[1,19],q=[1,28],F=[1,29],S=[1,20],O=[1,18],D=[1,21],x=[1,22],L=[1,36],Y=[1,37],ot=[1,38],lt=[1,39],ht=[1,40],P=[6,8,10,13,15,17,20,21,22,24,26,28,33,34,35,36,37,40,43,44,48,50,51,52,65,66,67,68,69],N=[1,45],A=[1,46],z=[1,55],G=[40,48,50,51,52,70,71],K=[1,66],U=[1,64],I=[1,61],Z=[1,65],j=[1,67],J=[6,8,10,13,17,22,24,26,28,33,34,35,36,37,40,41,42,43,44,48,49,50,51,52,65,66,67,68,69],bt=[65,66,67,68,69],mt=[1,84],kt=[1,83],Et=[1,81],Tt=[1,82],St=[6,10,42,47],w=[6,10,13,41,42,47,48,49],$=[1,92],tt=[1,91],et=[1,90],W=[19,58],Ot=[1,101],Nt=[1,100],ut=[19,58,60,62],dt={trace:p(function(){},"trace"),yy:{},symbols_:{error:2,start:3,ER_DIAGRAM:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,entityName:11,relSpec:12,COLON:13,role:14,STYLE_SEPARATOR:15,idList:16,BLOCK_START:17,attributes:18,BLOCK_STOP:19,SQS:20,SQE:21,title:22,title_value:23,acc_title:24,acc_title_value:25,acc_descr:26,acc_descr_value:27,acc_descr_multiline_value:28,direction:29,classDefStatement:30,classStatement:31,styleStatement:32,direction_tb:33,direction_bt:34,direction_rl:35,direction_lr:36,CLASSDEF:37,stylesOpt:38,separator:39,UNICODE_TEXT:40,STYLE_TEXT:41,COMMA:42,CLASS:43,STYLE:44,style:45,styleComponent:46,SEMI:47,NUM:48,BRKT:49,ENTITY_NAME:50,DECIMAL_NUM:51,ENTITY_ONE:52,attribute:53,attributeType:54,attributeName:55,attributeKeyTypeList:56,attributeComment:57,ATTRIBUTE_WORD:58,attributeKeyType:59,",":60,ATTRIBUTE_KEY:61,COMMENT:62,cardinality:63,relType:64,ZERO_OR_ONE:65,ZERO_OR_MORE:66,ONE_OR_MORE:67,ONLY_ONE:68,MD_PARENT:69,NON_IDENTIFYING:70,IDENTIFYING:71,WORD:72,$accept:0,$end:1},terminals_:{2:"error",4:"ER_DIAGRAM",6:"EOF",8:"SPACE",10:"NEWLINE",13:"COLON",15:"STYLE_SEPARATOR",17:"BLOCK_START",19:"BLOCK_STOP",20:"SQS",21:"SQE",22:"title",23:"title_value",24:"acc_title",25:"acc_title_value",26:"acc_descr",27:"acc_descr_value",28:"acc_descr_multiline_value",33:"direction_tb",34:"direction_bt",35:"direction_rl",36:"direction_lr",37:"CLASSDEF",40:"UNICODE_TEXT",41:"STYLE_TEXT",42:"COMMA",43:"CLASS",44:"STYLE",47:"SEMI",48:"NUM",49:"BRKT",50:"ENTITY_NAME",51:"DECIMAL_NUM",52:"ENTITY_ONE",58:"ATTRIBUTE_WORD",60:",",61:"ATTRIBUTE_KEY",62:"COMMENT",65:"ZERO_OR_ONE",66:"ZERO_OR_MORE",67:"ONE_OR_MORE",68:"ONLY_ONE",69:"MD_PARENT",70:"NON_IDENTIFYING",71:"IDENTIFYING",72:"WORD"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,5],[9,9],[9,7],[9,7],[9,4],[9,6],[9,3],[9,5],[9,1],[9,3],[9,7],[9,9],[9,6],[9,8],[9,4],[9,6],[9,2],[9,2],[9,2],[9,1],[9,1],[9,1],[9,1],[9,1],[29,1],[29,1],[29,1],[29,1],[30,4],[16,1],[16,1],[16,3],[16,3],[31,3],[32,4],[38,1],[38,3],[45,1],[45,2],[39,1],[39,1],[39,1],[46,1],[46,1],[46,1],[46,1],[11,1],[11,1],[11,1],[11,1],[11,1],[18,1],[18,2],[53,2],[53,3],[53,3],[53,4],[54,1],[55,1],[56,1],[56,3],[59,1],[57,1],[12,3],[63,1],[63,1],[63,1],[63,1],[63,1],[64,1],[64,1],[14,1],[14,1],[14,1]],performAction:p(function(n,a,l,r,f,t,Q){var e=t.length-1;switch(f){case 1:break;case 2:this.$=[];break;case 3:t[e-1].push(t[e]),this.$=t[e-1];break;case 4:case 5:this.$=t[e];break;case 6:case 7:this.$=[];break;case 8:r.addEntity(t[e-4]),r.addEntity(t[e-2]),r.addRelationship(t[e-4],t[e],t[e-2],t[e-3]);break;case 9:r.addEntity(t[e-8]),r.addEntity(t[e-4]),r.addRelationship(t[e-8],t[e],t[e-4],t[e-5]),r.setClass([t[e-8]],t[e-6]),r.setClass([t[e-4]],t[e-2]);break;case 10:r.addEntity(t[e-6]),r.addEntity(t[e-2]),r.addRelationship(t[e-6],t[e],t[e-2],t[e-3]),r.setClass([t[e-6]],t[e-4]);break;case 11:r.addEntity(t[e-6]),r.addEntity(t[e-4]),r.addRelationship(t[e-6],t[e],t[e-4],t[e-5]),r.setClass([t[e-4]],t[e-2]);break;case 12:r.addEntity(t[e-3]),r.addAttributes(t[e-3],t[e-1]);break;case 13:r.addEntity(t[e-5]),r.addAttributes(t[e-5],t[e-1]),r.setClass([t[e-5]],t[e-3]);break;case 14:r.addEntity(t[e-2]);break;case 15:r.addEntity(t[e-4]),r.setClass([t[e-4]],t[e-2]);break;case 16:r.addEntity(t[e]);break;case 17:r.addEntity(t[e-2]),r.setClass([t[e-2]],t[e]);break;case 18:r.addEntity(t[e-6],t[e-4]),r.addAttributes(t[e-6],t[e-1]);break;case 19:r.addEntity(t[e-8],t[e-6]),r.addAttributes(t[e-8],t[e-1]),r.setClass([t[e-8]],t[e-3]);break;case 20:r.addEntity(t[e-5],t[e-3]);break;case 21:r.addEntity(t[e-7],t[e-5]),r.setClass([t[e-7]],t[e-2]);break;case 22:r.addEntity(t[e-3],t[e-1]);break;case 23:r.addEntity(t[e-5],t[e-3]),r.setClass([t[e-5]],t[e]);break;case 24:case 25:this.$=t[e].trim(),r.setAccTitle(this.$);break;case 26:case 27:this.$=t[e].trim(),r.setAccDescription(this.$);break;case 32:r.setDirection("TB");break;case 33:r.setDirection("BT");break;case 34:r.setDirection("RL");break;case 35:r.setDirection("LR");break;case 36:this.$=t[e-3],r.addClass(t[e-2],t[e-1]);break;case 37:case 38:case 59:case 67:this.$=[t[e]];break;case 39:case 40:this.$=t[e-2].concat([t[e]]);break;case 41:this.$=t[e-2],r.setClass(t[e-1],t[e]);break;case 42:this.$=t[e-3],r.addCssStyles(t[e-2],t[e-1]);break;case 43:this.$=[t[e]];break;case 44:t[e-2].push(t[e]),this.$=t[e-2];break;case 46:this.$=t[e-1]+t[e];break;case 54:case 79:case 80:this.$=t[e].replace(/"/g,"");break;case 55:case 56:case 57:case 58:case 81:this.$=t[e];break;case 60:t[e].push(t[e-1]),this.$=t[e];break;case 61:this.$={type:t[e-1],name:t[e]};break;case 62:this.$={type:t[e-2],name:t[e-1],keys:t[e]};break;case 63:this.$={type:t[e-2],name:t[e-1],comment:t[e]};break;case 64:this.$={type:t[e-3],name:t[e-2],keys:t[e-1],comment:t[e]};break;case 65:case 66:case 69:this.$=t[e];break;case 68:t[e-2].push(t[e]),this.$=t[e-2];break;case 70:this.$=t[e].replace(/"/g,"");break;case 71:this.$={cardA:t[e],relType:t[e-1],cardB:t[e-2]};break;case 72:this.$=r.Cardinality.ZERO_OR_ONE;break;case 73:this.$=r.Cardinality.ZERO_OR_MORE;break;case 74:this.$=r.Cardinality.ONE_OR_MORE;break;case 75:this.$=r.Cardinality.ONLY_ONE;break;case 76:this.$=r.Cardinality.MD_PARENT;break;case 77:this.$=r.Identification.NON_IDENTIFYING;break;case 78:this.$=r.Identification.IDENTIFYING;break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},s(i,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:9,22:c,24:h,26:o,28:d,29:14,30:15,31:16,32:17,33:y,34:u,35:k,36:X,37:H,40:T,43:q,44:F,48:S,50:O,51:D,52:x},s(i,[2,7],{1:[2,1]}),s(i,[2,3]),{9:30,11:9,22:c,24:h,26:o,28:d,29:14,30:15,31:16,32:17,33:y,34:u,35:k,36:X,37:H,40:T,43:q,44:F,48:S,50:O,51:D,52:x},s(i,[2,5]),s(i,[2,6]),s(i,[2,16],{12:31,63:35,15:[1,32],17:[1,33],20:[1,34],65:L,66:Y,67:ot,68:lt,69:ht}),{23:[1,41]},{25:[1,42]},{27:[1,43]},s(i,[2,27]),s(i,[2,28]),s(i,[2,29]),s(i,[2,30]),s(i,[2,31]),s(P,[2,54]),s(P,[2,55]),s(P,[2,56]),s(P,[2,57]),s(P,[2,58]),s(i,[2,32]),s(i,[2,33]),s(i,[2,34]),s(i,[2,35]),{16:44,40:N,41:A},{16:47,40:N,41:A},{16:48,40:N,41:A},s(i,[2,4]),{11:49,40:T,48:S,50:O,51:D,52:x},{16:50,40:N,41:A},{18:51,19:[1,52],53:53,54:54,58:z},{11:56,40:T,48:S,50:O,51:D,52:x},{64:57,70:[1,58],71:[1,59]},s(G,[2,72]),s(G,[2,73]),s(G,[2,74]),s(G,[2,75]),s(G,[2,76]),s(i,[2,24]),s(i,[2,25]),s(i,[2,26]),{13:K,38:60,41:U,42:I,45:62,46:63,48:Z,49:j},s(J,[2,37]),s(J,[2,38]),{16:68,40:N,41:A,42:I},{13:K,38:69,41:U,42:I,45:62,46:63,48:Z,49:j},{13:[1,70],15:[1,71]},s(i,[2,17],{63:35,12:72,17:[1,73],42:I,65:L,66:Y,67:ot,68:lt,69:ht}),{19:[1,74]},s(i,[2,14]),{18:75,19:[2,59],53:53,54:54,58:z},{55:76,58:[1,77]},{58:[2,65]},{21:[1,78]},{63:79,65:L,66:Y,67:ot,68:lt,69:ht},s(bt,[2,77]),s(bt,[2,78]),{6:mt,10:kt,39:80,42:Et,47:Tt},{40:[1,85],41:[1,86]},s(St,[2,43],{46:87,13:K,41:U,48:Z,49:j}),s(w,[2,45]),s(w,[2,50]),s(w,[2,51]),s(w,[2,52]),s(w,[2,53]),s(i,[2,41],{42:I}),{6:mt,10:kt,39:88,42:Et,47:Tt},{14:89,40:$,50:tt,72:et},{16:93,40:N,41:A},{11:94,40:T,48:S,50:O,51:D,52:x},{18:95,19:[1,96],53:53,54:54,58:z},s(i,[2,12]),{19:[2,60]},s(W,[2,61],{56:97,57:98,59:99,61:Ot,62:Nt}),s([19,58,61,62],[2,66]),s(i,[2,22],{15:[1,103],17:[1,102]}),s([40,48,50,51,52],[2,71]),s(i,[2,36]),{13:K,41:U,45:104,46:63,48:Z,49:j},s(i,[2,47]),s(i,[2,48]),s(i,[2,49]),s(J,[2,39]),s(J,[2,40]),s(w,[2,46]),s(i,[2,42]),s(i,[2,8]),s(i,[2,79]),s(i,[2,80]),s(i,[2,81]),{13:[1,105],42:I},{13:[1,107],15:[1,106]},{19:[1,108]},s(i,[2,15]),s(W,[2,62],{57:109,60:[1,110],62:Nt}),s(W,[2,63]),s(ut,[2,67]),s(W,[2,70]),s(ut,[2,69]),{18:111,19:[1,112],53:53,54:54,58:z},{16:113,40:N,41:A},s(St,[2,44],{46:87,13:K,41:U,48:Z,49:j}),{14:114,40:$,50:tt,72:et},{16:115,40:N,41:A},{14:116,40:$,50:tt,72:et},s(i,[2,13]),s(W,[2,64]),{59:117,61:Ot},{19:[1,118]},s(i,[2,20]),s(i,[2,23],{17:[1,119],42:I}),s(i,[2,11]),{13:[1,120],42:I},s(i,[2,10]),s(ut,[2,68]),s(i,[2,18]),{18:121,19:[1,122],53:53,54:54,58:z},{14:123,40:$,50:tt,72:et},{19:[1,124]},s(i,[2,21]),s(i,[2,9]),s(i,[2,19])],defaultActions:{55:[2,65],75:[2,60]},parseError:p(function(n,a){if(a.recoverable)this.trace(n);else{var l=new Error(n);throw l.hash=a,l}},"parseError"),parse:p(function(n){var a=this,l=[0],r=[],f=[null],t=[],Q=this.table,e="",it=0,At=0,Lt=2,It=1,wt=t.slice.call(arguments,1),_=Object.create(this.lexer),C={yy:{}};for(var pt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,pt)&&(C.yy[pt]=this.yy[pt]);_.setInput(n,C.yy),C.yy.lexer=_,C.yy.parser=this,typeof _.yylloc=="undefined"&&(_.yylloc={});var yt=_.yylloc;t.push(yt);var Vt=_.options&&_.options.ranges;typeof C.yy.parseError=="function"?this.parseError=C.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Mt(b){l.length=l.length-2*b,f.length=f.length-b,t.length=t.length-b}p(Mt,"popStack");function Rt(){var b;return b=r.pop()||_.lex()||It,typeof b!="number"&&(b instanceof Array&&(r=b,b=r.pop()),b=a.symbols_[b]||b),b}p(Rt,"lex");for(var g,v,m,ft,V={},rt,E,xt,nt;;){if(v=l[l.length-1],this.defaultActions[v]?m=this.defaultActions[v]:((g===null||typeof g=="undefined")&&(g=Rt()),m=Q[v]&&Q[v][g]),typeof m=="undefined"||!m.length||!m[0]){var _t="";nt=[];for(rt in Q[v])this.terminals_[rt]&&rt>Lt&&nt.push("'"+this.terminals_[rt]+"'");_.showPosition?_t="Parse error on line "+(it+1)+`:
1
+ import{g as Bt}from"./chunk-55IACEB6-DrdwYbrF.js";import{s as Ft}from"./chunk-2J33WTMH-CXuH0ZJ2.js";import{b as p,b2 as Yt,a2 as Pt,b1 as zt,a1 as Gt,b4 as Kt,a6 as Ut,a4 as at,aE as M,t as Zt,a7 as jt,aY as Wt,_ as Qt,ab as Xt,aV as Ht,a$ as qt,bl as Jt}from"./mermaid.core-D_mFRtuY.js";import{c as $t}from"./channel-uh6PxTgh.js";import"./index-DS9nwwVz.js";var gt=function(){var s=p(function(R,n,a,l){for(a=a||{},l=R.length;l--;a[R[l]]=n);return a},"o"),i=[6,8,10,22,24,26,28,33,34,35,36,37,40,43,44,48,50,51,52],c=[1,10],h=[1,11],o=[1,12],d=[1,13],y=[1,23],u=[1,24],k=[1,25],X=[1,26],H=[1,27],T=[1,19],q=[1,28],F=[1,29],S=[1,20],O=[1,18],D=[1,21],x=[1,22],L=[1,36],Y=[1,37],ot=[1,38],lt=[1,39],ht=[1,40],P=[6,8,10,13,15,17,20,21,22,24,26,28,33,34,35,36,37,40,43,44,48,50,51,52,65,66,67,68,69],N=[1,45],A=[1,46],z=[1,55],G=[40,48,50,51,52,70,71],K=[1,66],U=[1,64],I=[1,61],Z=[1,65],j=[1,67],J=[6,8,10,13,17,22,24,26,28,33,34,35,36,37,40,41,42,43,44,48,49,50,51,52,65,66,67,68,69],bt=[65,66,67,68,69],mt=[1,84],kt=[1,83],Et=[1,81],Tt=[1,82],St=[6,10,42,47],w=[6,10,13,41,42,47,48,49],$=[1,92],tt=[1,91],et=[1,90],W=[19,58],Ot=[1,101],Nt=[1,100],ut=[19,58,60,62],dt={trace:p(function(){},"trace"),yy:{},symbols_:{error:2,start:3,ER_DIAGRAM:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,entityName:11,relSpec:12,COLON:13,role:14,STYLE_SEPARATOR:15,idList:16,BLOCK_START:17,attributes:18,BLOCK_STOP:19,SQS:20,SQE:21,title:22,title_value:23,acc_title:24,acc_title_value:25,acc_descr:26,acc_descr_value:27,acc_descr_multiline_value:28,direction:29,classDefStatement:30,classStatement:31,styleStatement:32,direction_tb:33,direction_bt:34,direction_rl:35,direction_lr:36,CLASSDEF:37,stylesOpt:38,separator:39,UNICODE_TEXT:40,STYLE_TEXT:41,COMMA:42,CLASS:43,STYLE:44,style:45,styleComponent:46,SEMI:47,NUM:48,BRKT:49,ENTITY_NAME:50,DECIMAL_NUM:51,ENTITY_ONE:52,attribute:53,attributeType:54,attributeName:55,attributeKeyTypeList:56,attributeComment:57,ATTRIBUTE_WORD:58,attributeKeyType:59,",":60,ATTRIBUTE_KEY:61,COMMENT:62,cardinality:63,relType:64,ZERO_OR_ONE:65,ZERO_OR_MORE:66,ONE_OR_MORE:67,ONLY_ONE:68,MD_PARENT:69,NON_IDENTIFYING:70,IDENTIFYING:71,WORD:72,$accept:0,$end:1},terminals_:{2:"error",4:"ER_DIAGRAM",6:"EOF",8:"SPACE",10:"NEWLINE",13:"COLON",15:"STYLE_SEPARATOR",17:"BLOCK_START",19:"BLOCK_STOP",20:"SQS",21:"SQE",22:"title",23:"title_value",24:"acc_title",25:"acc_title_value",26:"acc_descr",27:"acc_descr_value",28:"acc_descr_multiline_value",33:"direction_tb",34:"direction_bt",35:"direction_rl",36:"direction_lr",37:"CLASSDEF",40:"UNICODE_TEXT",41:"STYLE_TEXT",42:"COMMA",43:"CLASS",44:"STYLE",47:"SEMI",48:"NUM",49:"BRKT",50:"ENTITY_NAME",51:"DECIMAL_NUM",52:"ENTITY_ONE",58:"ATTRIBUTE_WORD",60:",",61:"ATTRIBUTE_KEY",62:"COMMENT",65:"ZERO_OR_ONE",66:"ZERO_OR_MORE",67:"ONE_OR_MORE",68:"ONLY_ONE",69:"MD_PARENT",70:"NON_IDENTIFYING",71:"IDENTIFYING",72:"WORD"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,5],[9,9],[9,7],[9,7],[9,4],[9,6],[9,3],[9,5],[9,1],[9,3],[9,7],[9,9],[9,6],[9,8],[9,4],[9,6],[9,2],[9,2],[9,2],[9,1],[9,1],[9,1],[9,1],[9,1],[29,1],[29,1],[29,1],[29,1],[30,4],[16,1],[16,1],[16,3],[16,3],[31,3],[32,4],[38,1],[38,3],[45,1],[45,2],[39,1],[39,1],[39,1],[46,1],[46,1],[46,1],[46,1],[11,1],[11,1],[11,1],[11,1],[11,1],[18,1],[18,2],[53,2],[53,3],[53,3],[53,4],[54,1],[55,1],[56,1],[56,3],[59,1],[57,1],[12,3],[63,1],[63,1],[63,1],[63,1],[63,1],[64,1],[64,1],[14,1],[14,1],[14,1]],performAction:p(function(n,a,l,r,f,t,Q){var e=t.length-1;switch(f){case 1:break;case 2:this.$=[];break;case 3:t[e-1].push(t[e]),this.$=t[e-1];break;case 4:case 5:this.$=t[e];break;case 6:case 7:this.$=[];break;case 8:r.addEntity(t[e-4]),r.addEntity(t[e-2]),r.addRelationship(t[e-4],t[e],t[e-2],t[e-3]);break;case 9:r.addEntity(t[e-8]),r.addEntity(t[e-4]),r.addRelationship(t[e-8],t[e],t[e-4],t[e-5]),r.setClass([t[e-8]],t[e-6]),r.setClass([t[e-4]],t[e-2]);break;case 10:r.addEntity(t[e-6]),r.addEntity(t[e-2]),r.addRelationship(t[e-6],t[e],t[e-2],t[e-3]),r.setClass([t[e-6]],t[e-4]);break;case 11:r.addEntity(t[e-6]),r.addEntity(t[e-4]),r.addRelationship(t[e-6],t[e],t[e-4],t[e-5]),r.setClass([t[e-4]],t[e-2]);break;case 12:r.addEntity(t[e-3]),r.addAttributes(t[e-3],t[e-1]);break;case 13:r.addEntity(t[e-5]),r.addAttributes(t[e-5],t[e-1]),r.setClass([t[e-5]],t[e-3]);break;case 14:r.addEntity(t[e-2]);break;case 15:r.addEntity(t[e-4]),r.setClass([t[e-4]],t[e-2]);break;case 16:r.addEntity(t[e]);break;case 17:r.addEntity(t[e-2]),r.setClass([t[e-2]],t[e]);break;case 18:r.addEntity(t[e-6],t[e-4]),r.addAttributes(t[e-6],t[e-1]);break;case 19:r.addEntity(t[e-8],t[e-6]),r.addAttributes(t[e-8],t[e-1]),r.setClass([t[e-8]],t[e-3]);break;case 20:r.addEntity(t[e-5],t[e-3]);break;case 21:r.addEntity(t[e-7],t[e-5]),r.setClass([t[e-7]],t[e-2]);break;case 22:r.addEntity(t[e-3],t[e-1]);break;case 23:r.addEntity(t[e-5],t[e-3]),r.setClass([t[e-5]],t[e]);break;case 24:case 25:this.$=t[e].trim(),r.setAccTitle(this.$);break;case 26:case 27:this.$=t[e].trim(),r.setAccDescription(this.$);break;case 32:r.setDirection("TB");break;case 33:r.setDirection("BT");break;case 34:r.setDirection("RL");break;case 35:r.setDirection("LR");break;case 36:this.$=t[e-3],r.addClass(t[e-2],t[e-1]);break;case 37:case 38:case 59:case 67:this.$=[t[e]];break;case 39:case 40:this.$=t[e-2].concat([t[e]]);break;case 41:this.$=t[e-2],r.setClass(t[e-1],t[e]);break;case 42:this.$=t[e-3],r.addCssStyles(t[e-2],t[e-1]);break;case 43:this.$=[t[e]];break;case 44:t[e-2].push(t[e]),this.$=t[e-2];break;case 46:this.$=t[e-1]+t[e];break;case 54:case 79:case 80:this.$=t[e].replace(/"/g,"");break;case 55:case 56:case 57:case 58:case 81:this.$=t[e];break;case 60:t[e].push(t[e-1]),this.$=t[e];break;case 61:this.$={type:t[e-1],name:t[e]};break;case 62:this.$={type:t[e-2],name:t[e-1],keys:t[e]};break;case 63:this.$={type:t[e-2],name:t[e-1],comment:t[e]};break;case 64:this.$={type:t[e-3],name:t[e-2],keys:t[e-1],comment:t[e]};break;case 65:case 66:case 69:this.$=t[e];break;case 68:t[e-2].push(t[e]),this.$=t[e-2];break;case 70:this.$=t[e].replace(/"/g,"");break;case 71:this.$={cardA:t[e],relType:t[e-1],cardB:t[e-2]};break;case 72:this.$=r.Cardinality.ZERO_OR_ONE;break;case 73:this.$=r.Cardinality.ZERO_OR_MORE;break;case 74:this.$=r.Cardinality.ONE_OR_MORE;break;case 75:this.$=r.Cardinality.ONLY_ONE;break;case 76:this.$=r.Cardinality.MD_PARENT;break;case 77:this.$=r.Identification.NON_IDENTIFYING;break;case 78:this.$=r.Identification.IDENTIFYING;break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},s(i,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:9,22:c,24:h,26:o,28:d,29:14,30:15,31:16,32:17,33:y,34:u,35:k,36:X,37:H,40:T,43:q,44:F,48:S,50:O,51:D,52:x},s(i,[2,7],{1:[2,1]}),s(i,[2,3]),{9:30,11:9,22:c,24:h,26:o,28:d,29:14,30:15,31:16,32:17,33:y,34:u,35:k,36:X,37:H,40:T,43:q,44:F,48:S,50:O,51:D,52:x},s(i,[2,5]),s(i,[2,6]),s(i,[2,16],{12:31,63:35,15:[1,32],17:[1,33],20:[1,34],65:L,66:Y,67:ot,68:lt,69:ht}),{23:[1,41]},{25:[1,42]},{27:[1,43]},s(i,[2,27]),s(i,[2,28]),s(i,[2,29]),s(i,[2,30]),s(i,[2,31]),s(P,[2,54]),s(P,[2,55]),s(P,[2,56]),s(P,[2,57]),s(P,[2,58]),s(i,[2,32]),s(i,[2,33]),s(i,[2,34]),s(i,[2,35]),{16:44,40:N,41:A},{16:47,40:N,41:A},{16:48,40:N,41:A},s(i,[2,4]),{11:49,40:T,48:S,50:O,51:D,52:x},{16:50,40:N,41:A},{18:51,19:[1,52],53:53,54:54,58:z},{11:56,40:T,48:S,50:O,51:D,52:x},{64:57,70:[1,58],71:[1,59]},s(G,[2,72]),s(G,[2,73]),s(G,[2,74]),s(G,[2,75]),s(G,[2,76]),s(i,[2,24]),s(i,[2,25]),s(i,[2,26]),{13:K,38:60,41:U,42:I,45:62,46:63,48:Z,49:j},s(J,[2,37]),s(J,[2,38]),{16:68,40:N,41:A,42:I},{13:K,38:69,41:U,42:I,45:62,46:63,48:Z,49:j},{13:[1,70],15:[1,71]},s(i,[2,17],{63:35,12:72,17:[1,73],42:I,65:L,66:Y,67:ot,68:lt,69:ht}),{19:[1,74]},s(i,[2,14]),{18:75,19:[2,59],53:53,54:54,58:z},{55:76,58:[1,77]},{58:[2,65]},{21:[1,78]},{63:79,65:L,66:Y,67:ot,68:lt,69:ht},s(bt,[2,77]),s(bt,[2,78]),{6:mt,10:kt,39:80,42:Et,47:Tt},{40:[1,85],41:[1,86]},s(St,[2,43],{46:87,13:K,41:U,48:Z,49:j}),s(w,[2,45]),s(w,[2,50]),s(w,[2,51]),s(w,[2,52]),s(w,[2,53]),s(i,[2,41],{42:I}),{6:mt,10:kt,39:88,42:Et,47:Tt},{14:89,40:$,50:tt,72:et},{16:93,40:N,41:A},{11:94,40:T,48:S,50:O,51:D,52:x},{18:95,19:[1,96],53:53,54:54,58:z},s(i,[2,12]),{19:[2,60]},s(W,[2,61],{56:97,57:98,59:99,61:Ot,62:Nt}),s([19,58,61,62],[2,66]),s(i,[2,22],{15:[1,103],17:[1,102]}),s([40,48,50,51,52],[2,71]),s(i,[2,36]),{13:K,41:U,45:104,46:63,48:Z,49:j},s(i,[2,47]),s(i,[2,48]),s(i,[2,49]),s(J,[2,39]),s(J,[2,40]),s(w,[2,46]),s(i,[2,42]),s(i,[2,8]),s(i,[2,79]),s(i,[2,80]),s(i,[2,81]),{13:[1,105],42:I},{13:[1,107],15:[1,106]},{19:[1,108]},s(i,[2,15]),s(W,[2,62],{57:109,60:[1,110],62:Nt}),s(W,[2,63]),s(ut,[2,67]),s(W,[2,70]),s(ut,[2,69]),{18:111,19:[1,112],53:53,54:54,58:z},{16:113,40:N,41:A},s(St,[2,44],{46:87,13:K,41:U,48:Z,49:j}),{14:114,40:$,50:tt,72:et},{16:115,40:N,41:A},{14:116,40:$,50:tt,72:et},s(i,[2,13]),s(W,[2,64]),{59:117,61:Ot},{19:[1,118]},s(i,[2,20]),s(i,[2,23],{17:[1,119],42:I}),s(i,[2,11]),{13:[1,120],42:I},s(i,[2,10]),s(ut,[2,68]),s(i,[2,18]),{18:121,19:[1,122],53:53,54:54,58:z},{14:123,40:$,50:tt,72:et},{19:[1,124]},s(i,[2,21]),s(i,[2,9]),s(i,[2,19])],defaultActions:{55:[2,65],75:[2,60]},parseError:p(function(n,a){if(a.recoverable)this.trace(n);else{var l=new Error(n);throw l.hash=a,l}},"parseError"),parse:p(function(n){var a=this,l=[0],r=[],f=[null],t=[],Q=this.table,e="",it=0,At=0,Lt=2,It=1,wt=t.slice.call(arguments,1),_=Object.create(this.lexer),C={yy:{}};for(var pt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,pt)&&(C.yy[pt]=this.yy[pt]);_.setInput(n,C.yy),C.yy.lexer=_,C.yy.parser=this,typeof _.yylloc=="undefined"&&(_.yylloc={});var yt=_.yylloc;t.push(yt);var Vt=_.options&&_.options.ranges;typeof C.yy.parseError=="function"?this.parseError=C.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Mt(b){l.length=l.length-2*b,f.length=f.length-b,t.length=t.length-b}p(Mt,"popStack");function Rt(){var b;return b=r.pop()||_.lex()||It,typeof b!="number"&&(b instanceof Array&&(r=b,b=r.pop()),b=a.symbols_[b]||b),b}p(Rt,"lex");for(var g,v,m,ft,V={},rt,E,xt,nt;;){if(v=l[l.length-1],this.defaultActions[v]?m=this.defaultActions[v]:((g===null||typeof g=="undefined")&&(g=Rt()),m=Q[v]&&Q[v][g]),typeof m=="undefined"||!m.length||!m[0]){var _t="";nt=[];for(rt in Q[v])this.terminals_[rt]&&rt>Lt&&nt.push("'"+this.terminals_[rt]+"'");_.showPosition?_t="Parse error on line "+(it+1)+`:
2
2
  `+_.showPosition()+`
3
3
  Expecting `+nt.join(", ")+", got '"+(this.terminals_[g]||g)+"'":_t="Parse error on line "+(it+1)+": Unexpected "+(g==It?"end of input":"'"+(this.terminals_[g]||g)+"'"),this.parseError(_t,{text:_.match,token:this.terminals_[g]||g,line:_.yylineno,loc:yt,expected:nt})}if(m[0]instanceof Array&&m.length>1)throw new Error("Parse Error: multiple actions possible at state: "+v+", token: "+g);switch(m[0]){case 1:l.push(g),f.push(_.yytext),t.push(_.yylloc),l.push(m[1]),g=null,At=_.yyleng,e=_.yytext,it=_.yylineno,yt=_.yylloc;break;case 2:if(E=this.productions_[m[1]][1],V.$=f[f.length-E],V._$={first_line:t[t.length-(E||1)].first_line,last_line:t[t.length-1].last_line,first_column:t[t.length-(E||1)].first_column,last_column:t[t.length-1].last_column},Vt&&(V._$.range=[t[t.length-(E||1)].range[0],t[t.length-1].range[1]]),ft=this.performAction.apply(V,[e,At,it,C.yy,m[1],f,t].concat(wt)),typeof ft!="undefined")return ft;E&&(l=l.slice(0,-1*E*2),f=f.slice(0,-1*E),t=t.slice(0,-1*E)),l.push(this.productions_[m[1]][0]),f.push(V.$),t.push(V._$),xt=Q[l[l.length-2]][l[l.length-1]],l.push(xt);break;case 3:return!0}}return!0},"parse")},Dt=function(){var R={EOF:1,parseError:p(function(a,l){if(this.yy.parser)this.yy.parser.parseError(a,l);else throw new Error(a)},"parseError"),setInput:p(function(n,a){return this.yy=a||this.yy||{},this._input=n,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:p(function(){var n=this._input[0];this.yytext+=n,this.yyleng++,this.offset++,this.match+=n,this.matched+=n;var a=n.match(/(?:\r\n?|\n).*/g);return a?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),n},"input"),unput:p(function(n){var a=n.length,l=n.split(/(?:\r\n?|\n)/g);this._input=n+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-a),this.offset-=a;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),l.length-1&&(this.yylineno-=l.length-1);var f=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:l?(l.length===r.length?this.yylloc.first_column:0)+r[r.length-l.length].length-l[0].length:this.yylloc.first_column-a},this.options.ranges&&(this.yylloc.range=[f[0],f[0]+this.yyleng-a]),this.yyleng=this.yytext.length,this},"unput"),more:p(function(){return this._more=!0,this},"more"),reject:p(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:p(function(n){this.unput(this.match.slice(n))},"less"),pastInput:p(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:p(function(){var n=this.match;return n.length<20&&(n+=this._input.substr(0,20-n.length)),(n.substr(0,20)+(n.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:p(function(){var n=this.pastInput(),a=new Array(n.length+1).join("-");return n+this.upcomingInput()+`
@@ -1,4 +1,4 @@
1
- import{g as qt}from"./chunk-FMBD7UC4-C8_DpYrt.js";import{b as T,b3 as Mt,aE as Z,a4 as b1,ab as Xt,aV as Qt,bl as rt,b2 as Jt,b1 as Zt,b4 as $t,a2 as te,a1 as ee,a6 as se,z as ie,aD as re,J as ae,az as ne,a7 as st,a$ as it,t as ue,S as le,aY as oe}from"./mermaid.core-DuagT3S2.js";import{c as ce}from"./chunk-ND2GUHAM-BeN_xln2.js";import{g as he}from"./chunk-55IACEB6-Duov_Htw.js";import{s as de}from"./chunk-2J33WTMH-CrTr9xzl.js";import{p as pe}from"./index-CbSmh0fl.js";import{c as fe}from"./channel-DiZdOJ9B.js";var ge="flowchart-",G1,be=(G1=class{constructor(){this.vertexCounter=0,this.config=b1(),this.diagramId="",this.vertices=new Map,this.edges=[],this.classes=new Map,this.subGraphs=[],this.subGraphLookup=new Map,this.tooltips=new Map,this.subCount=0,this.firstGraphFlag=!0,this.secCount=-1,this.posCrossRef=[],this.funs=[],this.setAccTitle=Jt,this.setAccDescription=Zt,this.setDiagramTitle=$t,this.getAccTitle=te,this.getAccDescription=ee,this.getDiagramTitle=se,this.funs.push(this.setupToolTips.bind(this)),this.addVertex=this.addVertex.bind(this),this.firstGraph=this.firstGraph.bind(this),this.setDirection=this.setDirection.bind(this),this.addSubGraph=this.addSubGraph.bind(this),this.addLink=this.addLink.bind(this),this.setLink=this.setLink.bind(this),this.updateLink=this.updateLink.bind(this),this.addClass=this.addClass.bind(this),this.setClass=this.setClass.bind(this),this.destructLink=this.destructLink.bind(this),this.setClickEvent=this.setClickEvent.bind(this),this.setTooltip=this.setTooltip.bind(this),this.updateLinkInterpolate=this.updateLinkInterpolate.bind(this),this.setClickFun=this.setClickFun.bind(this),this.bindFunctions=this.bindFunctions.bind(this),this.lex={firstGraph:this.firstGraph.bind(this)},this.clear(),this.setGen("gen-2")}sanitizeText(i){return ie.sanitizeText(i,this.config)}sanitizeNodeLabelType(i){switch(i){case"markdown":case"string":case"text":return i;default:return"markdown"}}setDiagramId(i){this.diagramId=i}lookUpDomId(i){for(const n of this.vertices.values())if(n.id===i)return this.diagramId?`${this.diagramId}-${n.domId}`:n.domId;return this.diagramId?`${this.diagramId}-${i}`:i}addVertex(i,n,a,u,c,h,o={},k){var K,E;if(!i||i.trim().length===0)return;let r;if(k!==void 0){let p;k.includes(`
1
+ import{g as qt}from"./chunk-FMBD7UC4-DytmfhVl.js";import{b as T,b3 as Mt,aE as Z,a4 as b1,ab as Xt,aV as Qt,bl as rt,b2 as Jt,b1 as Zt,b4 as $t,a2 as te,a1 as ee,a6 as se,z as ie,aD as re,J as ae,az as ne,a7 as st,a$ as it,t as ue,S as le,aY as oe}from"./mermaid.core-D_mFRtuY.js";import{c as ce}from"./chunk-ND2GUHAM-34C1YW85.js";import{g as he}from"./chunk-55IACEB6-DrdwYbrF.js";import{s as de}from"./chunk-2J33WTMH-CXuH0ZJ2.js";import{p as pe}from"./index-DS9nwwVz.js";import{c as fe}from"./channel-uh6PxTgh.js";var ge="flowchart-",G1,be=(G1=class{constructor(){this.vertexCounter=0,this.config=b1(),this.diagramId="",this.vertices=new Map,this.edges=[],this.classes=new Map,this.subGraphs=[],this.subGraphLookup=new Map,this.tooltips=new Map,this.subCount=0,this.firstGraphFlag=!0,this.secCount=-1,this.posCrossRef=[],this.funs=[],this.setAccTitle=Jt,this.setAccDescription=Zt,this.setDiagramTitle=$t,this.getAccTitle=te,this.getAccDescription=ee,this.getDiagramTitle=se,this.funs.push(this.setupToolTips.bind(this)),this.addVertex=this.addVertex.bind(this),this.firstGraph=this.firstGraph.bind(this),this.setDirection=this.setDirection.bind(this),this.addSubGraph=this.addSubGraph.bind(this),this.addLink=this.addLink.bind(this),this.setLink=this.setLink.bind(this),this.updateLink=this.updateLink.bind(this),this.addClass=this.addClass.bind(this),this.setClass=this.setClass.bind(this),this.destructLink=this.destructLink.bind(this),this.setClickEvent=this.setClickEvent.bind(this),this.setTooltip=this.setTooltip.bind(this),this.updateLinkInterpolate=this.updateLinkInterpolate.bind(this),this.setClickFun=this.setClickFun.bind(this),this.bindFunctions=this.bindFunctions.bind(this),this.lex={firstGraph:this.firstGraph.bind(this)},this.clear(),this.setGen("gen-2")}sanitizeText(i){return ie.sanitizeText(i,this.config)}sanitizeNodeLabelType(i){switch(i){case"markdown":case"string":case"text":return i;default:return"markdown"}}setDiagramId(i){this.diagramId=i}lookUpDomId(i){for(const n of this.vertices.values())if(n.id===i)return this.diagramId?`${this.diagramId}-${n.domId}`:n.domId;return this.diagramId?`${this.diagramId}-${i}`:i}addVertex(i,n,a,u,c,h,o={},k){var K,E;if(!i||i.trim().length===0)return;let r;if(k!==void 0){let p;k.includes(`
2
2
  `)?p=k+`
3
3
  `:p=`{
4
4
  `+k+`
@@ -1,4 +1,4 @@
1
- import{R as Ke,aX as Ln,V as tn,X as en,a as nn,aK as ae,ak as An,A as re,a5 as ie,a1 as Wn,b1 as On,a6 as $n,b4 as Hn,a2 as Nn,b2 as Pn,b as d,a4 as Yt,a$ as Xt,F as Vn,P as rt,aE as Tt,z as zn,a_ as Rn,t as Zn,bl as Bn}from"./mermaid.core-DuagT3S2.js";import{b as Xn,t as Oe,c as qn,a as Gn,l as jn}from"./linear-DLYnUT7M.js";import{i as Qn}from"./init-Gi6I4Gst.js";import"./index-CbSmh0fl.js";import"./defaultLocale-CrowFXzY.js";function Jn(t,e){let n;if(e===void 0)for(const r of t)r!=null&&(n<r||n===void 0&&r>=r)&&(n=r);else{let r=-1;for(let s of t)(s=e(s,++r,t))!=null&&(n<s||n===void 0&&s>=s)&&(n=s)}return n}function Kn(t,e){let n;if(e===void 0)for(const r of t)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);else{let r=-1;for(let s of t)(s=e(s,++r,t))!=null&&(n>s||n===void 0&&s>=s)&&(n=s)}return n}function tr(t){return t}var Gt=1,oe=2,pe=3,qt=4,$e=1e-6;function er(t){return"translate("+t+",0)"}function nr(t){return"translate(0,"+t+")"}function rr(t){return e=>+t(e)}function ir(t,e){return e=Math.max(0,t.bandwidth()-e*2)/2,t.round()&&(e=Math.round(e)),n=>+t(n)+e}function sr(){return!this.__axis}function rn(t,e){var n=[],r=null,s=null,a=6,o=6,m=3,F=typeof window!="undefined"&&window.devicePixelRatio>1?0:.5,C=t===Gt||t===qt?-1:1,k=t===qt||t===oe?"x":"y",L=t===Gt||t===pe?er:nr;function _(S){var X=r==null?e.ticks?e.ticks.apply(e,n):e.domain():r,A=s==null?e.tickFormat?e.tickFormat.apply(e,n):tr:s,U=Math.max(a,0)+m,I=e.range(),N=+I[0]+F,W=+I[I.length-1]+F,B=(e.bandwidth?ir:rr)(e.copy(),F),j=S.selection?S.selection():S,p=j.selectAll(".domain").data([null]),g=j.selectAll(".tick").data(X,e).order(),y=g.exit(),h=g.enter().append("g").attr("class","tick"),D=g.select("line"),w=g.select("text");p=p.merge(p.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),g=g.merge(h),D=D.merge(h.append("line").attr("stroke","currentColor").attr(k+"2",C*a)),w=w.merge(h.append("text").attr("fill","currentColor").attr(k,C*U).attr("dy",t===Gt?"0em":t===pe?"0.71em":"0.32em")),S!==j&&(p=p.transition(S),g=g.transition(S),D=D.transition(S),w=w.transition(S),y=y.transition(S).attr("opacity",$e).attr("transform",function(T){return isFinite(T=B(T))?L(T+F):this.getAttribute("transform")}),h.attr("opacity",$e).attr("transform",function(T){var v=this.parentNode.__axis;return L((v&&isFinite(v=v(T))?v:B(T))+F)})),y.remove(),p.attr("d",t===qt||t===oe?o?"M"+C*o+","+N+"H"+F+"V"+W+"H"+C*o:"M"+F+","+N+"V"+W:o?"M"+N+","+C*o+"V"+F+"H"+W+"V"+C*o:"M"+N+","+F+"H"+W),g.attr("opacity",1).attr("transform",function(T){return L(B(T)+F)}),D.attr(k+"2",C*a),w.attr(k,C*U).text(A),j.filter(sr).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",t===oe?"start":t===qt?"end":"middle"),j.each(function(){this.__axis=B})}return _.scale=function(S){return arguments.length?(e=S,_):e},_.ticks=function(){return n=Array.from(arguments),_},_.tickArguments=function(S){return arguments.length?(n=S==null?[]:Array.from(S),_):n.slice()},_.tickValues=function(S){return arguments.length?(r=S==null?null:Array.from(S),_):r&&r.slice()},_.tickFormat=function(S){return arguments.length?(s=S,_):s},_.tickSize=function(S){return arguments.length?(a=o=+S,_):a},_.tickSizeInner=function(S){return arguments.length?(a=+S,_):a},_.tickSizeOuter=function(S){return arguments.length?(o=+S,_):o},_.tickPadding=function(S){return arguments.length?(m=+S,_):m},_.offset=function(S){return arguments.length?(F=+S,_):F},_}function ar(t){return rn(Gt,t)}function or(t){return rn(pe,t)}const cr=Math.PI/180,ur=180/Math.PI,Jt=18,sn=.96422,an=1,on=.82521,cn=4/29,Ft=6/29,un=3*Ft*Ft,lr=Ft*Ft*Ft;function ln(t){if(t instanceof ft)return new ft(t.l,t.a,t.b,t.opacity);if(t instanceof ht)return fn(t);t instanceof Ke||(t=Ln(t));var e=fe(t.r),n=fe(t.g),r=fe(t.b),s=ce((.2225045*e+.7168786*n+.0606169*r)/an),a,o;return e===n&&n===r?a=o=s:(a=ce((.4360747*e+.3850649*n+.1430804*r)/sn),o=ce((.0139322*e+.0971045*n+.7141733*r)/on)),new ft(116*s-16,500*(a-s),200*(s-o),t.opacity)}function fr(t,e,n,r){return arguments.length===1?ln(t):new ft(t,e,n,r==null?1:r)}function ft(t,e,n,r){this.l=+t,this.a=+e,this.b=+n,this.opacity=+r}tn(ft,fr,en(nn,{brighter(t){return new ft(this.l+Jt*(t==null?1:t),this.a,this.b,this.opacity)},darker(t){return new ft(this.l-Jt*(t==null?1:t),this.a,this.b,this.opacity)},rgb(){var t=(this.l+16)/116,e=isNaN(this.a)?t:t+this.a/500,n=isNaN(this.b)?t:t-this.b/200;return e=sn*ue(e),t=an*ue(t),n=on*ue(n),new Ke(le(3.1338561*e-1.6168667*t-.4906146*n),le(-.9787684*e+1.9161415*t+.033454*n),le(.0719453*e-.2289914*t+1.4052427*n),this.opacity)}}));function ce(t){return t>lr?Math.pow(t,1/3):t/un+cn}function ue(t){return t>Ft?t*t*t:un*(t-cn)}function le(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function fe(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function dr(t){if(t instanceof ht)return new ht(t.h,t.c,t.l,t.opacity);if(t instanceof ft||(t=ln(t)),t.a===0&&t.b===0)return new ht(NaN,0<t.l&&t.l<100?0:NaN,t.l,t.opacity);var e=Math.atan2(t.b,t.a)*ur;return new ht(e<0?e+360:e,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}function ve(t,e,n,r){return arguments.length===1?dr(t):new ht(t,e,n,r==null?1:r)}function ht(t,e,n,r){this.h=+t,this.c=+e,this.l=+n,this.opacity=+r}function fn(t){if(isNaN(t.h))return new ft(t.l,0,0,t.opacity);var e=t.h*cr;return new ft(t.l,Math.cos(e)*t.c,Math.sin(e)*t.c,t.opacity)}tn(ht,ve,en(nn,{brighter(t){return new ht(this.h,this.c,this.l+Jt*(t==null?1:t),this.opacity)},darker(t){return new ht(this.h,this.c,this.l-Jt*(t==null?1:t),this.opacity)},rgb(){return fn(this).rgb()}}));function hr(t){return function(e,n){var r=t((e=ve(e)).h,(n=ve(n)).h),s=ae(e.c,n.c),a=ae(e.l,n.l),o=ae(e.opacity,n.opacity);return function(m){return e.h=r(m),e.c=s(m),e.l=a(m),e.opacity=o(m),e+""}}}const mr=hr(An);function gr(t,e){t=t.slice();var n=0,r=t.length-1,s=t[n],a=t[r],o;return a<s&&(o=n,n=r,r=o,o=s,s=a,a=o),t[n]=e.floor(s),t[r]=e.ceil(a),t}const de=new Date,he=new Date;function et(t,e,n,r){function s(a){return t(a=arguments.length===0?new Date:new Date(+a)),a}return s.floor=a=>(t(a=new Date(+a)),a),s.ceil=a=>(t(a=new Date(a-1)),e(a,1),t(a),a),s.round=a=>{const o=s(a),m=s.ceil(a);return a-o<m-a?o:m},s.offset=(a,o)=>(e(a=new Date(+a),o==null?1:Math.floor(o)),a),s.range=(a,o,m)=>{const F=[];if(a=s.ceil(a),m=m==null?1:Math.floor(m),!(a<o)||!(m>0))return F;let C;do F.push(C=new Date(+a)),e(a,m),t(a);while(C<a&&a<o);return F},s.filter=a=>et(o=>{if(o>=o)for(;t(o),!a(o);)o.setTime(o-1)},(o,m)=>{if(o>=o)if(m<0)for(;++m<=0;)for(;e(o,-1),!a(o););else for(;--m>=0;)for(;e(o,1),!a(o););}),n&&(s.count=(a,o)=>(de.setTime(+a),he.setTime(+o),t(de),t(he),Math.floor(n(de,he))),s.every=a=>(a=Math.floor(a),!isFinite(a)||!(a>0)?null:a>1?s.filter(r?o=>r(o)%a===0:o=>s.count(0,o)%a===0):s)),s}const Et=et(()=>{},(t,e)=>{t.setTime(+t+e)},(t,e)=>e-t);Et.every=t=>(t=Math.floor(t),!isFinite(t)||!(t>0)?null:t>1?et(e=>{e.setTime(Math.floor(e/t)*t)},(e,n)=>{e.setTime(+e+n*t)},(e,n)=>(n-e)/t):Et);Et.range;const mt=1e3,ct=mt*60,gt=ct*60,yt=gt*24,De=yt*7,He=yt*30,me=yt*365,vt=et(t=>{t.setTime(t-t.getMilliseconds())},(t,e)=>{t.setTime(+t+e*mt)},(t,e)=>(e-t)/mt,t=>t.getUTCSeconds());vt.range;const $t=et(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*mt)},(t,e)=>{t.setTime(+t+e*ct)},(t,e)=>(e-t)/ct,t=>t.getMinutes());$t.range;const yr=et(t=>{t.setUTCSeconds(0,0)},(t,e)=>{t.setTime(+t+e*ct)},(t,e)=>(e-t)/ct,t=>t.getUTCMinutes());yr.range;const Ht=et(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*mt-t.getMinutes()*ct)},(t,e)=>{t.setTime(+t+e*gt)},(t,e)=>(e-t)/gt,t=>t.getHours());Ht.range;const kr=et(t=>{t.setUTCMinutes(0,0,0)},(t,e)=>{t.setTime(+t+e*gt)},(t,e)=>(e-t)/gt,t=>t.getUTCHours());kr.range;const xt=et(t=>t.setHours(0,0,0,0),(t,e)=>t.setDate(t.getDate()+e),(t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*ct)/yt,t=>t.getDate()-1);xt.range;const Me=et(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/yt,t=>t.getUTCDate()-1);Me.range;const pr=et(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/yt,t=>Math.floor(t/yt));pr.range;function Dt(t){return et(e=>{e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)},(e,n)=>{e.setDate(e.getDate()+n*7)},(e,n)=>(n-e-(n.getTimezoneOffset()-e.getTimezoneOffset())*ct)/De)}const Vt=Dt(0),Nt=Dt(1),dn=Dt(2),hn=Dt(3),bt=Dt(4),mn=Dt(5),gn=Dt(6);Vt.range;Nt.range;dn.range;hn.range;bt.range;mn.range;gn.range;function Mt(t){return et(e=>{e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)},(e,n)=>{e.setUTCDate(e.getUTCDate()+n*7)},(e,n)=>(n-e)/De)}const yn=Mt(0),Kt=Mt(1),vr=Mt(2),Tr=Mt(3),It=Mt(4),xr=Mt(5),br=Mt(6);yn.range;Kt.range;vr.range;Tr.range;It.range;xr.range;br.range;const Pt=et(t=>{t.setDate(1),t.setHours(0,0,0,0)},(t,e)=>{t.setMonth(t.getMonth()+e)},(t,e)=>e.getMonth()-t.getMonth()+(e.getFullYear()-t.getFullYear())*12,t=>t.getMonth());Pt.range;const wr=et(t=>{t.setUTCDate(1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCMonth(t.getUTCMonth()+e)},(t,e)=>e.getUTCMonth()-t.getUTCMonth()+(e.getUTCFullYear()-t.getUTCFullYear())*12,t=>t.getUTCMonth());wr.range;const kt=et(t=>{t.setMonth(0,1),t.setHours(0,0,0,0)},(t,e)=>{t.setFullYear(t.getFullYear()+e)},(t,e)=>e.getFullYear()-t.getFullYear(),t=>t.getFullYear());kt.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:et(e=>{e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)},(e,n)=>{e.setFullYear(e.getFullYear()+n*t)});kt.range;const wt=et(t=>{t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCFullYear(t.getUTCFullYear()+e)},(t,e)=>e.getUTCFullYear()-t.getUTCFullYear(),t=>t.getUTCFullYear());wt.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:et(e=>{e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,n)=>{e.setUTCFullYear(e.getUTCFullYear()+n*t)});wt.range;function Dr(t,e,n,r,s,a){const o=[[vt,1,mt],[vt,5,5*mt],[vt,15,15*mt],[vt,30,30*mt],[a,1,ct],[a,5,5*ct],[a,15,15*ct],[a,30,30*ct],[s,1,gt],[s,3,3*gt],[s,6,6*gt],[s,12,12*gt],[r,1,yt],[r,2,2*yt],[n,1,De],[e,1,He],[e,3,3*He],[t,1,me]];function m(C,k,L){const _=k<C;_&&([C,k]=[k,C]);const S=L&&typeof L.range=="function"?L:F(C,k,L),X=S?S.range(C,+k+1):[];return _?X.reverse():X}function F(C,k,L){const _=Math.abs(k-C)/L,S=Xn(([,,U])=>U).right(o,_);if(S===o.length)return t.every(Oe(C/me,k/me,L));if(S===0)return Et.every(Math.max(Oe(C,k,L),1));const[X,A]=o[_/o[S-1][2]<o[S][2]/_?S-1:S];return X.every(A)}return[m,F]}const[Mr,Cr]=Dr(kt,Pt,Vt,xt,Ht,$t);function ge(t){if(0<=t.y&&t.y<100){var e=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return e.setFullYear(t.y),e}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function ye(t){if(0<=t.y&&t.y<100){var e=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return e.setUTCFullYear(t.y),e}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function At(t,e,n){return{y:t,m:e,d:n,H:0,M:0,S:0,L:0}}function Sr(t){var e=t.dateTime,n=t.date,r=t.time,s=t.periods,a=t.days,o=t.shortDays,m=t.months,F=t.shortMonths,C=Wt(s),k=Ot(s),L=Wt(a),_=Ot(a),S=Wt(o),X=Ot(o),A=Wt(m),U=Ot(m),I=Wt(F),N=Ot(F),W={a:b,A:Y,b:c,B:z,c:null,d:Ze,e:Ze,f:jr,g:ai,G:ci,H:Xr,I:qr,j:Gr,L:kn,m:Qr,M:Jr,p:i,q:E,Q:qe,s:Ge,S:Kr,u:ti,U:ei,V:ni,w:ri,W:ii,x:null,X:null,y:si,Y:oi,Z:ui,"%":Xe},B={a:Z,A:P,b:R,B:J,c:null,d:Be,e:Be,f:hi,g:wi,G:Mi,H:li,I:fi,j:di,L:vn,m:mi,M:gi,p:$,q:st,Q:qe,s:Ge,S:yi,u:ki,U:pi,V:vi,w:Ti,W:xi,x:null,X:null,y:bi,Y:Di,Z:Ci,"%":Xe},j={a:D,A:w,b:T,B:v,c:u,d:ze,e:ze,f:zr,g:Ve,G:Pe,H:Re,I:Re,j:Hr,L:Vr,m:$r,M:Nr,p:h,q:Or,Q:Zr,s:Br,S:Pr,u:Er,U:Ir,V:Lr,w:Ur,W:Ar,x:f,X:x,y:Ve,Y:Pe,Z:Wr,"%":Rr};W.x=p(n,W),W.X=p(r,W),W.c=p(e,W),B.x=p(n,B),B.X=p(r,B),B.c=p(e,B);function p(M,H){return function(V){var l=[],K=-1,O=0,Q=M.length,G,it,at;for(V instanceof Date||(V=new Date(+V));++K<Q;)M.charCodeAt(K)===37&&(l.push(M.slice(O,K)),(it=Ne[G=M.charAt(++K)])!=null?G=M.charAt(++K):it=G==="e"?" ":"0",(at=H[G])&&(G=at(V,it)),l.push(G),O=K+1);return l.push(M.slice(O,K)),l.join("")}}function g(M,H){return function(V){var l=At(1900,void 0,1),K=y(l,M,V+="",0),O,Q;if(K!=V.length)return null;if("Q"in l)return new Date(l.Q);if("s"in l)return new Date(l.s*1e3+("L"in l?l.L:0));if(H&&!("Z"in l)&&(l.Z=0),"p"in l&&(l.H=l.H%12+l.p*12),l.m===void 0&&(l.m="q"in l?l.q:0),"V"in l){if(l.V<1||l.V>53)return null;"w"in l||(l.w=1),"Z"in l?(O=ye(At(l.y,0,1)),Q=O.getUTCDay(),O=Q>4||Q===0?Kt.ceil(O):Kt(O),O=Me.offset(O,(l.V-1)*7),l.y=O.getUTCFullYear(),l.m=O.getUTCMonth(),l.d=O.getUTCDate()+(l.w+6)%7):(O=ge(At(l.y,0,1)),Q=O.getDay(),O=Q>4||Q===0?Nt.ceil(O):Nt(O),O=xt.offset(O,(l.V-1)*7),l.y=O.getFullYear(),l.m=O.getMonth(),l.d=O.getDate()+(l.w+6)%7)}else("W"in l||"U"in l)&&("w"in l||(l.w="u"in l?l.u%7:"W"in l?1:0),Q="Z"in l?ye(At(l.y,0,1)).getUTCDay():ge(At(l.y,0,1)).getDay(),l.m=0,l.d="W"in l?(l.w+6)%7+l.W*7-(Q+5)%7:l.w+l.U*7-(Q+6)%7);return"Z"in l?(l.H+=l.Z/100|0,l.M+=l.Z%100,ye(l)):ge(l)}}function y(M,H,V,l){for(var K=0,O=H.length,Q=V.length,G,it;K<O;){if(l>=Q)return-1;if(G=H.charCodeAt(K++),G===37){if(G=H.charAt(K++),it=j[G in Ne?H.charAt(K++):G],!it||(l=it(M,V,l))<0)return-1}else if(G!=V.charCodeAt(l++))return-1}return l}function h(M,H,V){var l=C.exec(H.slice(V));return l?(M.p=k.get(l[0].toLowerCase()),V+l[0].length):-1}function D(M,H,V){var l=S.exec(H.slice(V));return l?(M.w=X.get(l[0].toLowerCase()),V+l[0].length):-1}function w(M,H,V){var l=L.exec(H.slice(V));return l?(M.w=_.get(l[0].toLowerCase()),V+l[0].length):-1}function T(M,H,V){var l=I.exec(H.slice(V));return l?(M.m=N.get(l[0].toLowerCase()),V+l[0].length):-1}function v(M,H,V){var l=A.exec(H.slice(V));return l?(M.m=U.get(l[0].toLowerCase()),V+l[0].length):-1}function u(M,H,V){return y(M,e,H,V)}function f(M,H,V){return y(M,n,H,V)}function x(M,H,V){return y(M,r,H,V)}function b(M){return o[M.getDay()]}function Y(M){return a[M.getDay()]}function c(M){return F[M.getMonth()]}function z(M){return m[M.getMonth()]}function i(M){return s[+(M.getHours()>=12)]}function E(M){return 1+~~(M.getMonth()/3)}function Z(M){return o[M.getUTCDay()]}function P(M){return a[M.getUTCDay()]}function R(M){return F[M.getUTCMonth()]}function J(M){return m[M.getUTCMonth()]}function $(M){return s[+(M.getUTCHours()>=12)]}function st(M){return 1+~~(M.getUTCMonth()/3)}return{format:function(M){var H=p(M+="",W);return H.toString=function(){return M},H},parse:function(M){var H=g(M+="",!1);return H.toString=function(){return M},H},utcFormat:function(M){var H=p(M+="",B);return H.toString=function(){return M},H},utcParse:function(M){var H=g(M+="",!0);return H.toString=function(){return M},H}}}var Ne={"-":"",_:" ",0:"0"},nt=/^\s*\d+/,_r=/^%/,Yr=/[\\^$*+?|[\]().{}]/g;function q(t,e,n){var r=t<0?"-":"",s=(r?-t:t)+"",a=s.length;return r+(a<n?new Array(n-a+1).join(e)+s:s)}function Fr(t){return t.replace(Yr,"\\$&")}function Wt(t){return new RegExp("^(?:"+t.map(Fr).join("|")+")","i")}function Ot(t){return new Map(t.map((e,n)=>[e.toLowerCase(),n]))}function Ur(t,e,n){var r=nt.exec(e.slice(n,n+1));return r?(t.w=+r[0],n+r[0].length):-1}function Er(t,e,n){var r=nt.exec(e.slice(n,n+1));return r?(t.u=+r[0],n+r[0].length):-1}function Ir(t,e,n){var r=nt.exec(e.slice(n,n+2));return r?(t.U=+r[0],n+r[0].length):-1}function Lr(t,e,n){var r=nt.exec(e.slice(n,n+2));return r?(t.V=+r[0],n+r[0].length):-1}function Ar(t,e,n){var r=nt.exec(e.slice(n,n+2));return r?(t.W=+r[0],n+r[0].length):-1}function Pe(t,e,n){var r=nt.exec(e.slice(n,n+4));return r?(t.y=+r[0],n+r[0].length):-1}function Ve(t,e,n){var r=nt.exec(e.slice(n,n+2));return r?(t.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function Wr(t,e,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(n,n+6));return r?(t.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function Or(t,e,n){var r=nt.exec(e.slice(n,n+1));return r?(t.q=r[0]*3-3,n+r[0].length):-1}function $r(t,e,n){var r=nt.exec(e.slice(n,n+2));return r?(t.m=r[0]-1,n+r[0].length):-1}function ze(t,e,n){var r=nt.exec(e.slice(n,n+2));return r?(t.d=+r[0],n+r[0].length):-1}function Hr(t,e,n){var r=nt.exec(e.slice(n,n+3));return r?(t.m=0,t.d=+r[0],n+r[0].length):-1}function Re(t,e,n){var r=nt.exec(e.slice(n,n+2));return r?(t.H=+r[0],n+r[0].length):-1}function Nr(t,e,n){var r=nt.exec(e.slice(n,n+2));return r?(t.M=+r[0],n+r[0].length):-1}function Pr(t,e,n){var r=nt.exec(e.slice(n,n+2));return r?(t.S=+r[0],n+r[0].length):-1}function Vr(t,e,n){var r=nt.exec(e.slice(n,n+3));return r?(t.L=+r[0],n+r[0].length):-1}function zr(t,e,n){var r=nt.exec(e.slice(n,n+6));return r?(t.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function Rr(t,e,n){var r=_r.exec(e.slice(n,n+1));return r?n+r[0].length:-1}function Zr(t,e,n){var r=nt.exec(e.slice(n));return r?(t.Q=+r[0],n+r[0].length):-1}function Br(t,e,n){var r=nt.exec(e.slice(n));return r?(t.s=+r[0],n+r[0].length):-1}function Ze(t,e){return q(t.getDate(),e,2)}function Xr(t,e){return q(t.getHours(),e,2)}function qr(t,e){return q(t.getHours()%12||12,e,2)}function Gr(t,e){return q(1+xt.count(kt(t),t),e,3)}function kn(t,e){return q(t.getMilliseconds(),e,3)}function jr(t,e){return kn(t,e)+"000"}function Qr(t,e){return q(t.getMonth()+1,e,2)}function Jr(t,e){return q(t.getMinutes(),e,2)}function Kr(t,e){return q(t.getSeconds(),e,2)}function ti(t){var e=t.getDay();return e===0?7:e}function ei(t,e){return q(Vt.count(kt(t)-1,t),e,2)}function pn(t){var e=t.getDay();return e>=4||e===0?bt(t):bt.ceil(t)}function ni(t,e){return t=pn(t),q(bt.count(kt(t),t)+(kt(t).getDay()===4),e,2)}function ri(t){return t.getDay()}function ii(t,e){return q(Nt.count(kt(t)-1,t),e,2)}function si(t,e){return q(t.getFullYear()%100,e,2)}function ai(t,e){return t=pn(t),q(t.getFullYear()%100,e,2)}function oi(t,e){return q(t.getFullYear()%1e4,e,4)}function ci(t,e){var n=t.getDay();return t=n>=4||n===0?bt(t):bt.ceil(t),q(t.getFullYear()%1e4,e,4)}function ui(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+q(e/60|0,"0",2)+q(e%60,"0",2)}function Be(t,e){return q(t.getUTCDate(),e,2)}function li(t,e){return q(t.getUTCHours(),e,2)}function fi(t,e){return q(t.getUTCHours()%12||12,e,2)}function di(t,e){return q(1+Me.count(wt(t),t),e,3)}function vn(t,e){return q(t.getUTCMilliseconds(),e,3)}function hi(t,e){return vn(t,e)+"000"}function mi(t,e){return q(t.getUTCMonth()+1,e,2)}function gi(t,e){return q(t.getUTCMinutes(),e,2)}function yi(t,e){return q(t.getUTCSeconds(),e,2)}function ki(t){var e=t.getUTCDay();return e===0?7:e}function pi(t,e){return q(yn.count(wt(t)-1,t),e,2)}function Tn(t){var e=t.getUTCDay();return e>=4||e===0?It(t):It.ceil(t)}function vi(t,e){return t=Tn(t),q(It.count(wt(t),t)+(wt(t).getUTCDay()===4),e,2)}function Ti(t){return t.getUTCDay()}function xi(t,e){return q(Kt.count(wt(t)-1,t),e,2)}function bi(t,e){return q(t.getUTCFullYear()%100,e,2)}function wi(t,e){return t=Tn(t),q(t.getUTCFullYear()%100,e,2)}function Di(t,e){return q(t.getUTCFullYear()%1e4,e,4)}function Mi(t,e){var n=t.getUTCDay();return t=n>=4||n===0?It(t):It.ceil(t),q(t.getUTCFullYear()%1e4,e,4)}function Ci(){return"+0000"}function Xe(){return"%"}function qe(t){return+t}function Ge(t){return Math.floor(+t/1e3)}var St,te;Si({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 Si(t){return St=Sr(t),te=St.format,St.parse,St.utcFormat,St.utcParse,St}function _i(t){return new Date(t)}function Yi(t){return t instanceof Date?+t:+new Date(+t)}function xn(t,e,n,r,s,a,o,m,F,C){var k=qn(),L=k.invert,_=k.domain,S=C(".%L"),X=C(":%S"),A=C("%I:%M"),U=C("%I %p"),I=C("%a %d"),N=C("%b %d"),W=C("%B"),B=C("%Y");function j(p){return(F(p)<p?S:m(p)<p?X:o(p)<p?A:a(p)<p?U:r(p)<p?s(p)<p?I:N:n(p)<p?W:B)(p)}return k.invert=function(p){return new Date(L(p))},k.domain=function(p){return arguments.length?_(Array.from(p,Yi)):_().map(_i)},k.ticks=function(p){var g=_();return t(g[0],g[g.length-1],p==null?10:p)},k.tickFormat=function(p,g){return g==null?j:C(g)},k.nice=function(p){var g=_();return(!p||typeof p.range!="function")&&(p=e(g[0],g[g.length-1],p==null?10:p)),p?_(gr(g,p)):k},k.copy=function(){return Gn(k,xn(t,e,n,r,s,a,o,m,F,C))},k}function Fi(){return Qn.apply(xn(Mr,Cr,kt,Pt,Vt,xt,Ht,$t,vt,te).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}var bn={exports:{}};(function(t,e){(function(n,r){t.exports=r()})(re,function(){var n="day";return function(r,s,a){var o=function(C){return C.add(4-C.isoWeekday(),n)},m=s.prototype;m.isoWeekYear=function(){return o(this).year()},m.isoWeek=function(C){if(!this.$utils().u(C))return this.add(7*(C-this.isoWeek()),n);var k,L,_,S,X=o(this),A=(k=this.isoWeekYear(),L=this.$u,_=(L?a.utc:a)().year(k).startOf("year"),S=4-_.isoWeekday(),_.isoWeekday()>4&&(S+=7),_.add(S,n));return X.diff(A,"week")+1},m.isoWeekday=function(C){return this.$utils().u(C)?this.day()||7:this.day(this.day()%7?C:C-7)};var F=m.startOf;m.startOf=function(C,k){var L=this.$utils(),_=!!L.u(k)||k;return L.p(C)==="isoweek"?_?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):F.bind(this)(C,k)}}})})(bn);var Ui=bn.exports;const Ei=ie(Ui);var wn={exports:{}};(function(t,e){(function(n,r){t.exports=r()})(re,function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},r=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,s=/\d/,a=/\d\d/,o=/\d\d?/,m=/\d*[^-_:/,()\s\d]+/,F={},C=function(U){return(U=+U)+(U>68?1900:2e3)},k=function(U){return function(I){this[U]=+I}},L=[/[+-]\d\d:?(\d\d)?|Z/,function(U){(this.zone||(this.zone={})).offset=function(I){if(!I||I==="Z")return 0;var N=I.match(/([+-]|\d\d)/g),W=60*N[1]+(+N[2]||0);return W===0?0:N[0]==="+"?-W:W}(U)}],_=function(U){var I=F[U];return I&&(I.indexOf?I:I.s.concat(I.f))},S=function(U,I){var N,W=F.meridiem;if(W){for(var B=1;B<=24;B+=1)if(U.indexOf(W(B,0,I))>-1){N=B>12;break}}else N=U===(I?"pm":"PM");return N},X={A:[m,function(U){this.afternoon=S(U,!1)}],a:[m,function(U){this.afternoon=S(U,!0)}],Q:[s,function(U){this.month=3*(U-1)+1}],S:[s,function(U){this.milliseconds=100*+U}],SS:[a,function(U){this.milliseconds=10*+U}],SSS:[/\d{3}/,function(U){this.milliseconds=+U}],s:[o,k("seconds")],ss:[o,k("seconds")],m:[o,k("minutes")],mm:[o,k("minutes")],H:[o,k("hours")],h:[o,k("hours")],HH:[o,k("hours")],hh:[o,k("hours")],D:[o,k("day")],DD:[a,k("day")],Do:[m,function(U){var I=F.ordinal,N=U.match(/\d+/);if(this.day=N[0],I)for(var W=1;W<=31;W+=1)I(W).replace(/\[|\]/g,"")===U&&(this.day=W)}],w:[o,k("week")],ww:[a,k("week")],M:[o,k("month")],MM:[a,k("month")],MMM:[m,function(U){var I=_("months"),N=(_("monthsShort")||I.map(function(W){return W.slice(0,3)})).indexOf(U)+1;if(N<1)throw new Error;this.month=N%12||N}],MMMM:[m,function(U){var I=_("months").indexOf(U)+1;if(I<1)throw new Error;this.month=I%12||I}],Y:[/[+-]?\d+/,k("year")],YY:[a,function(U){this.year=C(U)}],YYYY:[/\d{4}/,k("year")],Z:L,ZZ:L};function A(U){var I,N;I=U,N=F&&F.formats;for(var W=(U=I.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(D,w,T){var v=T&&T.toUpperCase();return w||N[T]||n[T]||N[v].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(u,f,x){return f||x.slice(1)})})).match(r),B=W.length,j=0;j<B;j+=1){var p=W[j],g=X[p],y=g&&g[0],h=g&&g[1];W[j]=h?{regex:y,parser:h}:p.replace(/^\[|\]$/g,"")}return function(D){for(var w={},T=0,v=0;T<B;T+=1){var u=W[T];if(typeof u=="string")v+=u.length;else{var f=u.regex,x=u.parser,b=D.slice(v),Y=f.exec(b)[0];x.call(w,Y),D=D.replace(Y,"")}}return function(c){var z=c.afternoon;if(z!==void 0){var i=c.hours;z?i<12&&(c.hours+=12):i===12&&(c.hours=0),delete c.afternoon}}(w),w}}return function(U,I,N){N.p.customParseFormat=!0,U&&U.parseTwoDigitYear&&(C=U.parseTwoDigitYear);var W=I.prototype,B=W.parse;W.parse=function(j){var p=j.date,g=j.utc,y=j.args;this.$u=g;var h=y[1];if(typeof h=="string"){var D=y[2]===!0,w=y[3]===!0,T=D||w,v=y[2];w&&(v=y[2]),F=this.$locale(),!D&&v&&(F=N.Ls[v]),this.$d=function(b,Y,c,z){try{if(["x","X"].indexOf(Y)>-1)return new Date((Y==="X"?1e3:1)*b);var i=A(Y)(b),E=i.year,Z=i.month,P=i.day,R=i.hours,J=i.minutes,$=i.seconds,st=i.milliseconds,M=i.zone,H=i.week,V=new Date,l=P||(E||Z?1:V.getDate()),K=E||V.getFullYear(),O=0;E&&!Z||(O=Z>0?Z-1:V.getMonth());var Q,G=R||0,it=J||0,at=$||0,pt=st||0;return M?new Date(Date.UTC(K,O,l,G,it,at,pt+60*M.offset*1e3)):c?new Date(Date.UTC(K,O,l,G,it,at,pt)):(Q=new Date(K,O,l,G,it,at,pt),H&&(Q=z(Q).week(H).toDate()),Q)}catch{return new Date("")}}(p,h,g,N),this.init(),v&&v!==!0&&(this.$L=this.locale(v).$L),T&&p!=this.format(h)&&(this.$d=new Date("")),F={}}else if(h instanceof Array)for(var u=h.length,f=1;f<=u;f+=1){y[1]=h[f-1];var x=N.apply(this,y);if(x.isValid()){this.$d=x.$d,this.$L=x.$L,this.init();break}f===u&&(this.$d=new Date(""))}else B.call(this,j)}}})})(wn);var Ii=wn.exports;const Li=ie(Ii);var Dn={exports:{}};(function(t,e){(function(n,r){t.exports=r()})(re,function(){return function(n,r){var s=r.prototype,a=s.format;s.format=function(o){var m=this,F=this.$locale();if(!this.isValid())return a.bind(this)(o);var C=this.$utils(),k=(o||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(L){switch(L){case"Q":return Math.ceil((m.$M+1)/3);case"Do":return F.ordinal(m.$D);case"gggg":return m.weekYear();case"GGGG":return m.isoWeekYear();case"wo":return F.ordinal(m.week(),"W");case"w":case"ww":return C.s(m.week(),L==="w"?1:2,"0");case"W":case"WW":return C.s(m.isoWeek(),L==="W"?1:2,"0");case"k":case"kk":return C.s(String(m.$H===0?24:m.$H),L==="k"?1:2,"0");case"X":return Math.floor(m.$d.getTime()/1e3);case"x":return m.$d.getTime();case"z":return"["+m.offsetName()+"]";case"zzz":return"["+m.offsetName("long")+"]";default:return L}});return a.bind(this)(k)}}})})(Dn);var Ai=Dn.exports;const Wi=ie(Ai);var Mn={exports:{}};(function(t,e){(function(n,r){t.exports=r()})(re,function(){var n,r,s=1e3,a=6e4,o=36e5,m=864e5,F=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,C=31536e6,k=2628e6,L=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,_={years:C,months:k,days:m,hours:o,minutes:a,seconds:s,milliseconds:1,weeks:6048e5},S=function(p){return p instanceof B},X=function(p,g,y){return new B(p,y,g.$l)},A=function(p){return r.p(p)+"s"},U=function(p){return p<0},I=function(p){return U(p)?Math.ceil(p):Math.floor(p)},N=function(p){return Math.abs(p)},W=function(p,g){return p?U(p)?{negative:!0,format:""+N(p)+g}:{negative:!1,format:""+p+g}:{negative:!1,format:""}},B=function(){function p(y,h,D){var w=this;if(this.$d={},this.$l=D,y===void 0&&(this.$ms=0,this.parseFromMilliseconds()),h)return X(y*_[A(h)],this);if(typeof y=="number")return this.$ms=y,this.parseFromMilliseconds(),this;if(typeof y=="object")return Object.keys(y).forEach(function(u){w.$d[A(u)]=y[u]}),this.calMilliseconds(),this;if(typeof y=="string"){var T=y.match(L);if(T){var v=T.slice(2).map(function(u){return u!=null?Number(u):0});return this.$d.years=v[0],this.$d.months=v[1],this.$d.weeks=v[2],this.$d.days=v[3],this.$d.hours=v[4],this.$d.minutes=v[5],this.$d.seconds=v[6],this.calMilliseconds(),this}}return this}var g=p.prototype;return g.calMilliseconds=function(){var y=this;this.$ms=Object.keys(this.$d).reduce(function(h,D){return h+(y.$d[D]||0)*_[D]},0)},g.parseFromMilliseconds=function(){var y=this.$ms;this.$d.years=I(y/C),y%=C,this.$d.months=I(y/k),y%=k,this.$d.days=I(y/m),y%=m,this.$d.hours=I(y/o),y%=o,this.$d.minutes=I(y/a),y%=a,this.$d.seconds=I(y/s),y%=s,this.$d.milliseconds=y},g.toISOString=function(){var y=W(this.$d.years,"Y"),h=W(this.$d.months,"M"),D=+this.$d.days||0;this.$d.weeks&&(D+=7*this.$d.weeks);var w=W(D,"D"),T=W(this.$d.hours,"H"),v=W(this.$d.minutes,"M"),u=this.$d.seconds||0;this.$d.milliseconds&&(u+=this.$d.milliseconds/1e3,u=Math.round(1e3*u)/1e3);var f=W(u,"S"),x=y.negative||h.negative||w.negative||T.negative||v.negative||f.negative,b=T.format||v.format||f.format?"T":"",Y=(x?"-":"")+"P"+y.format+h.format+w.format+b+T.format+v.format+f.format;return Y==="P"||Y==="-P"?"P0D":Y},g.toJSON=function(){return this.toISOString()},g.format=function(y){var h=y||"YYYY-MM-DDTHH:mm:ss",D={Y:this.$d.years,YY:r.s(this.$d.years,2,"0"),YYYY:r.s(this.$d.years,4,"0"),M:this.$d.months,MM:r.s(this.$d.months,2,"0"),D:this.$d.days,DD:r.s(this.$d.days,2,"0"),H:this.$d.hours,HH:r.s(this.$d.hours,2,"0"),m:this.$d.minutes,mm:r.s(this.$d.minutes,2,"0"),s:this.$d.seconds,ss:r.s(this.$d.seconds,2,"0"),SSS:r.s(this.$d.milliseconds,3,"0")};return h.replace(F,function(w,T){return T||String(D[w])})},g.as=function(y){return this.$ms/_[A(y)]},g.get=function(y){var h=this.$ms,D=A(y);return D==="milliseconds"?h%=1e3:h=D==="weeks"?I(h/_[D]):this.$d[D],h||0},g.add=function(y,h,D){var w;return w=h?y*_[A(h)]:S(y)?y.$ms:X(y,this).$ms,X(this.$ms+w*(D?-1:1),this)},g.subtract=function(y,h){return this.add(y,h,!0)},g.locale=function(y){var h=this.clone();return h.$l=y,h},g.clone=function(){return X(this.$ms,this)},g.humanize=function(y){return n().add(this.$ms,"ms").locale(this.$l).fromNow(!y)},g.valueOf=function(){return this.asMilliseconds()},g.milliseconds=function(){return this.get("milliseconds")},g.asMilliseconds=function(){return this.as("milliseconds")},g.seconds=function(){return this.get("seconds")},g.asSeconds=function(){return this.as("seconds")},g.minutes=function(){return this.get("minutes")},g.asMinutes=function(){return this.as("minutes")},g.hours=function(){return this.get("hours")},g.asHours=function(){return this.as("hours")},g.days=function(){return this.get("days")},g.asDays=function(){return this.as("days")},g.weeks=function(){return this.get("weeks")},g.asWeeks=function(){return this.as("weeks")},g.months=function(){return this.get("months")},g.asMonths=function(){return this.as("months")},g.years=function(){return this.get("years")},g.asYears=function(){return this.as("years")},p}(),j=function(p,g,y){return p.add(g.years()*y,"y").add(g.months()*y,"M").add(g.days()*y,"d").add(g.hours()*y,"h").add(g.minutes()*y,"m").add(g.seconds()*y,"s").add(g.milliseconds()*y,"ms")};return function(p,g,y){n=y,r=y().$utils(),y.duration=function(w,T){var v=y.locale();return X(w,{$l:v},T)},y.isDuration=S;var h=g.prototype.add,D=g.prototype.subtract;g.prototype.add=function(w,T){return S(w)?j(this,w,1):h.bind(this)(w,T)},g.prototype.subtract=function(w,T){return S(w)?j(this,w,-1):D.bind(this)(w,T)}}})})(Mn);var Oi=Mn.exports;const $i=ie(Oi);var Te=function(){var t=d(function(v,u,f,x){for(f=f||{},x=v.length;x--;f[v[x]]=u);return f},"o"),e=[6,8,10,12,13,14,15,16,17,18,20,21,22,23,24,25,26,27,28,29,30,31,33,35,36,38,40],n=[1,26],r=[1,27],s=[1,28],a=[1,29],o=[1,30],m=[1,31],F=[1,32],C=[1,33],k=[1,34],L=[1,9],_=[1,10],S=[1,11],X=[1,12],A=[1,13],U=[1,14],I=[1,15],N=[1,16],W=[1,19],B=[1,20],j=[1,21],p=[1,22],g=[1,23],y=[1,25],h=[1,35],D={trace:d(function(){},"trace"),yy:{},symbols_:{error:2,start:3,gantt:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NL:10,weekday:11,weekday_monday:12,weekday_tuesday:13,weekday_wednesday:14,weekday_thursday:15,weekday_friday:16,weekday_saturday:17,weekday_sunday:18,weekend:19,weekend_friday:20,weekend_saturday:21,dateFormat:22,inclusiveEndDates:23,topAxis:24,axisFormat:25,tickInterval:26,excludes:27,includes:28,todayMarker:29,title:30,acc_title:31,acc_title_value:32,acc_descr:33,acc_descr_value:34,acc_descr_multiline_value:35,section:36,clickStatement:37,taskTxt:38,taskData:39,click:40,callbackname:41,callbackargs:42,href:43,clickStatementDebug:44,$accept:0,$end:1},terminals_:{2:"error",4:"gantt",6:"EOF",8:"SPACE",10:"NL",12:"weekday_monday",13:"weekday_tuesday",14:"weekday_wednesday",15:"weekday_thursday",16:"weekday_friday",17:"weekday_saturday",18:"weekday_sunday",20:"weekend_friday",21:"weekend_saturday",22:"dateFormat",23:"inclusiveEndDates",24:"topAxis",25:"axisFormat",26:"tickInterval",27:"excludes",28:"includes",29:"todayMarker",30:"title",31:"acc_title",32:"acc_title_value",33:"acc_descr",34:"acc_descr_value",35:"acc_descr_multiline_value",36:"section",38:"taskTxt",39:"taskData",40:"click",41:"callbackname",42:"callbackargs",43:"href"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[11,1],[11,1],[11,1],[11,1],[11,1],[11,1],[11,1],[19,1],[19,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,1],[9,2],[37,2],[37,3],[37,3],[37,4],[37,3],[37,4],[37,2],[44,2],[44,3],[44,3],[44,4],[44,3],[44,4],[44,2]],performAction:d(function(u,f,x,b,Y,c,z){var i=c.length-1;switch(Y){case 1:return c[i-1];case 2:this.$=[];break;case 3:c[i-1].push(c[i]),this.$=c[i-1];break;case 4:case 5:this.$=c[i];break;case 6:case 7:this.$=[];break;case 8:b.setWeekday("monday");break;case 9:b.setWeekday("tuesday");break;case 10:b.setWeekday("wednesday");break;case 11:b.setWeekday("thursday");break;case 12:b.setWeekday("friday");break;case 13:b.setWeekday("saturday");break;case 14:b.setWeekday("sunday");break;case 15:b.setWeekend("friday");break;case 16:b.setWeekend("saturday");break;case 17:b.setDateFormat(c[i].substr(11)),this.$=c[i].substr(11);break;case 18:b.enableInclusiveEndDates(),this.$=c[i].substr(18);break;case 19:b.TopAxis(),this.$=c[i].substr(8);break;case 20:b.setAxisFormat(c[i].substr(11)),this.$=c[i].substr(11);break;case 21:b.setTickInterval(c[i].substr(13)),this.$=c[i].substr(13);break;case 22:b.setExcludes(c[i].substr(9)),this.$=c[i].substr(9);break;case 23:b.setIncludes(c[i].substr(9)),this.$=c[i].substr(9);break;case 24:b.setTodayMarker(c[i].substr(12)),this.$=c[i].substr(12);break;case 27:b.setDiagramTitle(c[i].substr(6)),this.$=c[i].substr(6);break;case 28:this.$=c[i].trim(),b.setAccTitle(this.$);break;case 29:case 30:this.$=c[i].trim(),b.setAccDescription(this.$);break;case 31:b.addSection(c[i].substr(8)),this.$=c[i].substr(8);break;case 33:b.addTask(c[i-1],c[i]),this.$="task";break;case 34:this.$=c[i-1],b.setClickEvent(c[i-1],c[i],null);break;case 35:this.$=c[i-2],b.setClickEvent(c[i-2],c[i-1],c[i]);break;case 36:this.$=c[i-2],b.setClickEvent(c[i-2],c[i-1],null),b.setLink(c[i-2],c[i]);break;case 37:this.$=c[i-3],b.setClickEvent(c[i-3],c[i-2],c[i-1]),b.setLink(c[i-3],c[i]);break;case 38:this.$=c[i-2],b.setClickEvent(c[i-2],c[i],null),b.setLink(c[i-2],c[i-1]);break;case 39:this.$=c[i-3],b.setClickEvent(c[i-3],c[i-1],c[i]),b.setLink(c[i-3],c[i-2]);break;case 40:this.$=c[i-1],b.setLink(c[i-1],c[i]);break;case 41:case 47:this.$=c[i-1]+" "+c[i];break;case 42:case 43:case 45:this.$=c[i-2]+" "+c[i-1]+" "+c[i];break;case 44:case 46:this.$=c[i-3]+" "+c[i-2]+" "+c[i-1]+" "+c[i];break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},t(e,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:17,12:n,13:r,14:s,15:a,16:o,17:m,18:F,19:18,20:C,21:k,22:L,23:_,24:S,25:X,26:A,27:U,28:I,29:N,30:W,31:B,33:j,35:p,36:g,37:24,38:y,40:h},t(e,[2,7],{1:[2,1]}),t(e,[2,3]),{9:36,11:17,12:n,13:r,14:s,15:a,16:o,17:m,18:F,19:18,20:C,21:k,22:L,23:_,24:S,25:X,26:A,27:U,28:I,29:N,30:W,31:B,33:j,35:p,36:g,37:24,38:y,40:h},t(e,[2,5]),t(e,[2,6]),t(e,[2,17]),t(e,[2,18]),t(e,[2,19]),t(e,[2,20]),t(e,[2,21]),t(e,[2,22]),t(e,[2,23]),t(e,[2,24]),t(e,[2,25]),t(e,[2,26]),t(e,[2,27]),{32:[1,37]},{34:[1,38]},t(e,[2,30]),t(e,[2,31]),t(e,[2,32]),{39:[1,39]},t(e,[2,8]),t(e,[2,9]),t(e,[2,10]),t(e,[2,11]),t(e,[2,12]),t(e,[2,13]),t(e,[2,14]),t(e,[2,15]),t(e,[2,16]),{41:[1,40],43:[1,41]},t(e,[2,4]),t(e,[2,28]),t(e,[2,29]),t(e,[2,33]),t(e,[2,34],{42:[1,42],43:[1,43]}),t(e,[2,40],{41:[1,44]}),t(e,[2,35],{43:[1,45]}),t(e,[2,36]),t(e,[2,38],{42:[1,46]}),t(e,[2,37]),t(e,[2,39])],defaultActions:{},parseError:d(function(u,f){if(f.recoverable)this.trace(u);else{var x=new Error(u);throw x.hash=f,x}},"parseError"),parse:d(function(u){var f=this,x=[0],b=[],Y=[null],c=[],z=this.table,i="",E=0,Z=0,P=2,R=1,J=c.slice.call(arguments,1),$=Object.create(this.lexer),st={yy:{}};for(var M in this.yy)Object.prototype.hasOwnProperty.call(this.yy,M)&&(st.yy[M]=this.yy[M]);$.setInput(u,st.yy),st.yy.lexer=$,st.yy.parser=this,typeof $.yylloc=="undefined"&&($.yylloc={});var H=$.yylloc;c.push(H);var V=$.options&&$.options.ranges;typeof st.yy.parseError=="function"?this.parseError=st.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function l(ot){x.length=x.length-2*ot,Y.length=Y.length-ot,c.length=c.length-ot}d(l,"popStack");function K(){var ot;return ot=b.pop()||$.lex()||R,typeof ot!="number"&&(ot instanceof Array&&(b=ot,ot=b.pop()),ot=f.symbols_[ot]||ot),ot}d(K,"lex");for(var O,Q,G,it,at={},pt,ut,We,Bt;;){if(Q=x[x.length-1],this.defaultActions[Q]?G=this.defaultActions[Q]:((O===null||typeof O=="undefined")&&(O=K()),G=z[Q]&&z[Q][O]),typeof G=="undefined"||!G.length||!G[0]){var se="";Bt=[];for(pt in z[Q])this.terminals_[pt]&&pt>P&&Bt.push("'"+this.terminals_[pt]+"'");$.showPosition?se="Parse error on line "+(E+1)+`:
1
+ import{R as Ke,aX as Ln,V as tn,X as en,a as nn,aK as ae,ak as An,A as re,a5 as ie,a1 as Wn,b1 as On,a6 as $n,b4 as Hn,a2 as Nn,b2 as Pn,b as d,a4 as Yt,a$ as Xt,F as Vn,P as rt,aE as Tt,z as zn,a_ as Rn,t as Zn,bl as Bn}from"./mermaid.core-D_mFRtuY.js";import{b as Xn,t as Oe,c as qn,a as Gn,l as jn}from"./linear-KbP41E8H.js";import{i as Qn}from"./init-Gi6I4Gst.js";import"./index-DS9nwwVz.js";import"./defaultLocale-CrowFXzY.js";function Jn(t,e){let n;if(e===void 0)for(const r of t)r!=null&&(n<r||n===void 0&&r>=r)&&(n=r);else{let r=-1;for(let s of t)(s=e(s,++r,t))!=null&&(n<s||n===void 0&&s>=s)&&(n=s)}return n}function Kn(t,e){let n;if(e===void 0)for(const r of t)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);else{let r=-1;for(let s of t)(s=e(s,++r,t))!=null&&(n>s||n===void 0&&s>=s)&&(n=s)}return n}function tr(t){return t}var Gt=1,oe=2,pe=3,qt=4,$e=1e-6;function er(t){return"translate("+t+",0)"}function nr(t){return"translate(0,"+t+")"}function rr(t){return e=>+t(e)}function ir(t,e){return e=Math.max(0,t.bandwidth()-e*2)/2,t.round()&&(e=Math.round(e)),n=>+t(n)+e}function sr(){return!this.__axis}function rn(t,e){var n=[],r=null,s=null,a=6,o=6,m=3,F=typeof window!="undefined"&&window.devicePixelRatio>1?0:.5,C=t===Gt||t===qt?-1:1,k=t===qt||t===oe?"x":"y",L=t===Gt||t===pe?er:nr;function _(S){var X=r==null?e.ticks?e.ticks.apply(e,n):e.domain():r,A=s==null?e.tickFormat?e.tickFormat.apply(e,n):tr:s,U=Math.max(a,0)+m,I=e.range(),N=+I[0]+F,W=+I[I.length-1]+F,B=(e.bandwidth?ir:rr)(e.copy(),F),j=S.selection?S.selection():S,p=j.selectAll(".domain").data([null]),g=j.selectAll(".tick").data(X,e).order(),y=g.exit(),h=g.enter().append("g").attr("class","tick"),D=g.select("line"),w=g.select("text");p=p.merge(p.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),g=g.merge(h),D=D.merge(h.append("line").attr("stroke","currentColor").attr(k+"2",C*a)),w=w.merge(h.append("text").attr("fill","currentColor").attr(k,C*U).attr("dy",t===Gt?"0em":t===pe?"0.71em":"0.32em")),S!==j&&(p=p.transition(S),g=g.transition(S),D=D.transition(S),w=w.transition(S),y=y.transition(S).attr("opacity",$e).attr("transform",function(T){return isFinite(T=B(T))?L(T+F):this.getAttribute("transform")}),h.attr("opacity",$e).attr("transform",function(T){var v=this.parentNode.__axis;return L((v&&isFinite(v=v(T))?v:B(T))+F)})),y.remove(),p.attr("d",t===qt||t===oe?o?"M"+C*o+","+N+"H"+F+"V"+W+"H"+C*o:"M"+F+","+N+"V"+W:o?"M"+N+","+C*o+"V"+F+"H"+W+"V"+C*o:"M"+N+","+F+"H"+W),g.attr("opacity",1).attr("transform",function(T){return L(B(T)+F)}),D.attr(k+"2",C*a),w.attr(k,C*U).text(A),j.filter(sr).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",t===oe?"start":t===qt?"end":"middle"),j.each(function(){this.__axis=B})}return _.scale=function(S){return arguments.length?(e=S,_):e},_.ticks=function(){return n=Array.from(arguments),_},_.tickArguments=function(S){return arguments.length?(n=S==null?[]:Array.from(S),_):n.slice()},_.tickValues=function(S){return arguments.length?(r=S==null?null:Array.from(S),_):r&&r.slice()},_.tickFormat=function(S){return arguments.length?(s=S,_):s},_.tickSize=function(S){return arguments.length?(a=o=+S,_):a},_.tickSizeInner=function(S){return arguments.length?(a=+S,_):a},_.tickSizeOuter=function(S){return arguments.length?(o=+S,_):o},_.tickPadding=function(S){return arguments.length?(m=+S,_):m},_.offset=function(S){return arguments.length?(F=+S,_):F},_}function ar(t){return rn(Gt,t)}function or(t){return rn(pe,t)}const cr=Math.PI/180,ur=180/Math.PI,Jt=18,sn=.96422,an=1,on=.82521,cn=4/29,Ft=6/29,un=3*Ft*Ft,lr=Ft*Ft*Ft;function ln(t){if(t instanceof ft)return new ft(t.l,t.a,t.b,t.opacity);if(t instanceof ht)return fn(t);t instanceof Ke||(t=Ln(t));var e=fe(t.r),n=fe(t.g),r=fe(t.b),s=ce((.2225045*e+.7168786*n+.0606169*r)/an),a,o;return e===n&&n===r?a=o=s:(a=ce((.4360747*e+.3850649*n+.1430804*r)/sn),o=ce((.0139322*e+.0971045*n+.7141733*r)/on)),new ft(116*s-16,500*(a-s),200*(s-o),t.opacity)}function fr(t,e,n,r){return arguments.length===1?ln(t):new ft(t,e,n,r==null?1:r)}function ft(t,e,n,r){this.l=+t,this.a=+e,this.b=+n,this.opacity=+r}tn(ft,fr,en(nn,{brighter(t){return new ft(this.l+Jt*(t==null?1:t),this.a,this.b,this.opacity)},darker(t){return new ft(this.l-Jt*(t==null?1:t),this.a,this.b,this.opacity)},rgb(){var t=(this.l+16)/116,e=isNaN(this.a)?t:t+this.a/500,n=isNaN(this.b)?t:t-this.b/200;return e=sn*ue(e),t=an*ue(t),n=on*ue(n),new Ke(le(3.1338561*e-1.6168667*t-.4906146*n),le(-.9787684*e+1.9161415*t+.033454*n),le(.0719453*e-.2289914*t+1.4052427*n),this.opacity)}}));function ce(t){return t>lr?Math.pow(t,1/3):t/un+cn}function ue(t){return t>Ft?t*t*t:un*(t-cn)}function le(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function fe(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function dr(t){if(t instanceof ht)return new ht(t.h,t.c,t.l,t.opacity);if(t instanceof ft||(t=ln(t)),t.a===0&&t.b===0)return new ht(NaN,0<t.l&&t.l<100?0:NaN,t.l,t.opacity);var e=Math.atan2(t.b,t.a)*ur;return new ht(e<0?e+360:e,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}function ve(t,e,n,r){return arguments.length===1?dr(t):new ht(t,e,n,r==null?1:r)}function ht(t,e,n,r){this.h=+t,this.c=+e,this.l=+n,this.opacity=+r}function fn(t){if(isNaN(t.h))return new ft(t.l,0,0,t.opacity);var e=t.h*cr;return new ft(t.l,Math.cos(e)*t.c,Math.sin(e)*t.c,t.opacity)}tn(ht,ve,en(nn,{brighter(t){return new ht(this.h,this.c,this.l+Jt*(t==null?1:t),this.opacity)},darker(t){return new ht(this.h,this.c,this.l-Jt*(t==null?1:t),this.opacity)},rgb(){return fn(this).rgb()}}));function hr(t){return function(e,n){var r=t((e=ve(e)).h,(n=ve(n)).h),s=ae(e.c,n.c),a=ae(e.l,n.l),o=ae(e.opacity,n.opacity);return function(m){return e.h=r(m),e.c=s(m),e.l=a(m),e.opacity=o(m),e+""}}}const mr=hr(An);function gr(t,e){t=t.slice();var n=0,r=t.length-1,s=t[n],a=t[r],o;return a<s&&(o=n,n=r,r=o,o=s,s=a,a=o),t[n]=e.floor(s),t[r]=e.ceil(a),t}const de=new Date,he=new Date;function et(t,e,n,r){function s(a){return t(a=arguments.length===0?new Date:new Date(+a)),a}return s.floor=a=>(t(a=new Date(+a)),a),s.ceil=a=>(t(a=new Date(a-1)),e(a,1),t(a),a),s.round=a=>{const o=s(a),m=s.ceil(a);return a-o<m-a?o:m},s.offset=(a,o)=>(e(a=new Date(+a),o==null?1:Math.floor(o)),a),s.range=(a,o,m)=>{const F=[];if(a=s.ceil(a),m=m==null?1:Math.floor(m),!(a<o)||!(m>0))return F;let C;do F.push(C=new Date(+a)),e(a,m),t(a);while(C<a&&a<o);return F},s.filter=a=>et(o=>{if(o>=o)for(;t(o),!a(o);)o.setTime(o-1)},(o,m)=>{if(o>=o)if(m<0)for(;++m<=0;)for(;e(o,-1),!a(o););else for(;--m>=0;)for(;e(o,1),!a(o););}),n&&(s.count=(a,o)=>(de.setTime(+a),he.setTime(+o),t(de),t(he),Math.floor(n(de,he))),s.every=a=>(a=Math.floor(a),!isFinite(a)||!(a>0)?null:a>1?s.filter(r?o=>r(o)%a===0:o=>s.count(0,o)%a===0):s)),s}const Et=et(()=>{},(t,e)=>{t.setTime(+t+e)},(t,e)=>e-t);Et.every=t=>(t=Math.floor(t),!isFinite(t)||!(t>0)?null:t>1?et(e=>{e.setTime(Math.floor(e/t)*t)},(e,n)=>{e.setTime(+e+n*t)},(e,n)=>(n-e)/t):Et);Et.range;const mt=1e3,ct=mt*60,gt=ct*60,yt=gt*24,De=yt*7,He=yt*30,me=yt*365,vt=et(t=>{t.setTime(t-t.getMilliseconds())},(t,e)=>{t.setTime(+t+e*mt)},(t,e)=>(e-t)/mt,t=>t.getUTCSeconds());vt.range;const $t=et(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*mt)},(t,e)=>{t.setTime(+t+e*ct)},(t,e)=>(e-t)/ct,t=>t.getMinutes());$t.range;const yr=et(t=>{t.setUTCSeconds(0,0)},(t,e)=>{t.setTime(+t+e*ct)},(t,e)=>(e-t)/ct,t=>t.getUTCMinutes());yr.range;const Ht=et(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*mt-t.getMinutes()*ct)},(t,e)=>{t.setTime(+t+e*gt)},(t,e)=>(e-t)/gt,t=>t.getHours());Ht.range;const kr=et(t=>{t.setUTCMinutes(0,0,0)},(t,e)=>{t.setTime(+t+e*gt)},(t,e)=>(e-t)/gt,t=>t.getUTCHours());kr.range;const xt=et(t=>t.setHours(0,0,0,0),(t,e)=>t.setDate(t.getDate()+e),(t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*ct)/yt,t=>t.getDate()-1);xt.range;const Me=et(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/yt,t=>t.getUTCDate()-1);Me.range;const pr=et(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/yt,t=>Math.floor(t/yt));pr.range;function Dt(t){return et(e=>{e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)},(e,n)=>{e.setDate(e.getDate()+n*7)},(e,n)=>(n-e-(n.getTimezoneOffset()-e.getTimezoneOffset())*ct)/De)}const Vt=Dt(0),Nt=Dt(1),dn=Dt(2),hn=Dt(3),bt=Dt(4),mn=Dt(5),gn=Dt(6);Vt.range;Nt.range;dn.range;hn.range;bt.range;mn.range;gn.range;function Mt(t){return et(e=>{e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)},(e,n)=>{e.setUTCDate(e.getUTCDate()+n*7)},(e,n)=>(n-e)/De)}const yn=Mt(0),Kt=Mt(1),vr=Mt(2),Tr=Mt(3),It=Mt(4),xr=Mt(5),br=Mt(6);yn.range;Kt.range;vr.range;Tr.range;It.range;xr.range;br.range;const Pt=et(t=>{t.setDate(1),t.setHours(0,0,0,0)},(t,e)=>{t.setMonth(t.getMonth()+e)},(t,e)=>e.getMonth()-t.getMonth()+(e.getFullYear()-t.getFullYear())*12,t=>t.getMonth());Pt.range;const wr=et(t=>{t.setUTCDate(1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCMonth(t.getUTCMonth()+e)},(t,e)=>e.getUTCMonth()-t.getUTCMonth()+(e.getUTCFullYear()-t.getUTCFullYear())*12,t=>t.getUTCMonth());wr.range;const kt=et(t=>{t.setMonth(0,1),t.setHours(0,0,0,0)},(t,e)=>{t.setFullYear(t.getFullYear()+e)},(t,e)=>e.getFullYear()-t.getFullYear(),t=>t.getFullYear());kt.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:et(e=>{e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)},(e,n)=>{e.setFullYear(e.getFullYear()+n*t)});kt.range;const wt=et(t=>{t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCFullYear(t.getUTCFullYear()+e)},(t,e)=>e.getUTCFullYear()-t.getUTCFullYear(),t=>t.getUTCFullYear());wt.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:et(e=>{e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,n)=>{e.setUTCFullYear(e.getUTCFullYear()+n*t)});wt.range;function Dr(t,e,n,r,s,a){const o=[[vt,1,mt],[vt,5,5*mt],[vt,15,15*mt],[vt,30,30*mt],[a,1,ct],[a,5,5*ct],[a,15,15*ct],[a,30,30*ct],[s,1,gt],[s,3,3*gt],[s,6,6*gt],[s,12,12*gt],[r,1,yt],[r,2,2*yt],[n,1,De],[e,1,He],[e,3,3*He],[t,1,me]];function m(C,k,L){const _=k<C;_&&([C,k]=[k,C]);const S=L&&typeof L.range=="function"?L:F(C,k,L),X=S?S.range(C,+k+1):[];return _?X.reverse():X}function F(C,k,L){const _=Math.abs(k-C)/L,S=Xn(([,,U])=>U).right(o,_);if(S===o.length)return t.every(Oe(C/me,k/me,L));if(S===0)return Et.every(Math.max(Oe(C,k,L),1));const[X,A]=o[_/o[S-1][2]<o[S][2]/_?S-1:S];return X.every(A)}return[m,F]}const[Mr,Cr]=Dr(kt,Pt,Vt,xt,Ht,$t);function ge(t){if(0<=t.y&&t.y<100){var e=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return e.setFullYear(t.y),e}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function ye(t){if(0<=t.y&&t.y<100){var e=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return e.setUTCFullYear(t.y),e}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function At(t,e,n){return{y:t,m:e,d:n,H:0,M:0,S:0,L:0}}function Sr(t){var e=t.dateTime,n=t.date,r=t.time,s=t.periods,a=t.days,o=t.shortDays,m=t.months,F=t.shortMonths,C=Wt(s),k=Ot(s),L=Wt(a),_=Ot(a),S=Wt(o),X=Ot(o),A=Wt(m),U=Ot(m),I=Wt(F),N=Ot(F),W={a:b,A:Y,b:c,B:z,c:null,d:Ze,e:Ze,f:jr,g:ai,G:ci,H:Xr,I:qr,j:Gr,L:kn,m:Qr,M:Jr,p:i,q:E,Q:qe,s:Ge,S:Kr,u:ti,U:ei,V:ni,w:ri,W:ii,x:null,X:null,y:si,Y:oi,Z:ui,"%":Xe},B={a:Z,A:P,b:R,B:J,c:null,d:Be,e:Be,f:hi,g:wi,G:Mi,H:li,I:fi,j:di,L:vn,m:mi,M:gi,p:$,q:st,Q:qe,s:Ge,S:yi,u:ki,U:pi,V:vi,w:Ti,W:xi,x:null,X:null,y:bi,Y:Di,Z:Ci,"%":Xe},j={a:D,A:w,b:T,B:v,c:u,d:ze,e:ze,f:zr,g:Ve,G:Pe,H:Re,I:Re,j:Hr,L:Vr,m:$r,M:Nr,p:h,q:Or,Q:Zr,s:Br,S:Pr,u:Er,U:Ir,V:Lr,w:Ur,W:Ar,x:f,X:x,y:Ve,Y:Pe,Z:Wr,"%":Rr};W.x=p(n,W),W.X=p(r,W),W.c=p(e,W),B.x=p(n,B),B.X=p(r,B),B.c=p(e,B);function p(M,H){return function(V){var l=[],K=-1,O=0,Q=M.length,G,it,at;for(V instanceof Date||(V=new Date(+V));++K<Q;)M.charCodeAt(K)===37&&(l.push(M.slice(O,K)),(it=Ne[G=M.charAt(++K)])!=null?G=M.charAt(++K):it=G==="e"?" ":"0",(at=H[G])&&(G=at(V,it)),l.push(G),O=K+1);return l.push(M.slice(O,K)),l.join("")}}function g(M,H){return function(V){var l=At(1900,void 0,1),K=y(l,M,V+="",0),O,Q;if(K!=V.length)return null;if("Q"in l)return new Date(l.Q);if("s"in l)return new Date(l.s*1e3+("L"in l?l.L:0));if(H&&!("Z"in l)&&(l.Z=0),"p"in l&&(l.H=l.H%12+l.p*12),l.m===void 0&&(l.m="q"in l?l.q:0),"V"in l){if(l.V<1||l.V>53)return null;"w"in l||(l.w=1),"Z"in l?(O=ye(At(l.y,0,1)),Q=O.getUTCDay(),O=Q>4||Q===0?Kt.ceil(O):Kt(O),O=Me.offset(O,(l.V-1)*7),l.y=O.getUTCFullYear(),l.m=O.getUTCMonth(),l.d=O.getUTCDate()+(l.w+6)%7):(O=ge(At(l.y,0,1)),Q=O.getDay(),O=Q>4||Q===0?Nt.ceil(O):Nt(O),O=xt.offset(O,(l.V-1)*7),l.y=O.getFullYear(),l.m=O.getMonth(),l.d=O.getDate()+(l.w+6)%7)}else("W"in l||"U"in l)&&("w"in l||(l.w="u"in l?l.u%7:"W"in l?1:0),Q="Z"in l?ye(At(l.y,0,1)).getUTCDay():ge(At(l.y,0,1)).getDay(),l.m=0,l.d="W"in l?(l.w+6)%7+l.W*7-(Q+5)%7:l.w+l.U*7-(Q+6)%7);return"Z"in l?(l.H+=l.Z/100|0,l.M+=l.Z%100,ye(l)):ge(l)}}function y(M,H,V,l){for(var K=0,O=H.length,Q=V.length,G,it;K<O;){if(l>=Q)return-1;if(G=H.charCodeAt(K++),G===37){if(G=H.charAt(K++),it=j[G in Ne?H.charAt(K++):G],!it||(l=it(M,V,l))<0)return-1}else if(G!=V.charCodeAt(l++))return-1}return l}function h(M,H,V){var l=C.exec(H.slice(V));return l?(M.p=k.get(l[0].toLowerCase()),V+l[0].length):-1}function D(M,H,V){var l=S.exec(H.slice(V));return l?(M.w=X.get(l[0].toLowerCase()),V+l[0].length):-1}function w(M,H,V){var l=L.exec(H.slice(V));return l?(M.w=_.get(l[0].toLowerCase()),V+l[0].length):-1}function T(M,H,V){var l=I.exec(H.slice(V));return l?(M.m=N.get(l[0].toLowerCase()),V+l[0].length):-1}function v(M,H,V){var l=A.exec(H.slice(V));return l?(M.m=U.get(l[0].toLowerCase()),V+l[0].length):-1}function u(M,H,V){return y(M,e,H,V)}function f(M,H,V){return y(M,n,H,V)}function x(M,H,V){return y(M,r,H,V)}function b(M){return o[M.getDay()]}function Y(M){return a[M.getDay()]}function c(M){return F[M.getMonth()]}function z(M){return m[M.getMonth()]}function i(M){return s[+(M.getHours()>=12)]}function E(M){return 1+~~(M.getMonth()/3)}function Z(M){return o[M.getUTCDay()]}function P(M){return a[M.getUTCDay()]}function R(M){return F[M.getUTCMonth()]}function J(M){return m[M.getUTCMonth()]}function $(M){return s[+(M.getUTCHours()>=12)]}function st(M){return 1+~~(M.getUTCMonth()/3)}return{format:function(M){var H=p(M+="",W);return H.toString=function(){return M},H},parse:function(M){var H=g(M+="",!1);return H.toString=function(){return M},H},utcFormat:function(M){var H=p(M+="",B);return H.toString=function(){return M},H},utcParse:function(M){var H=g(M+="",!0);return H.toString=function(){return M},H}}}var Ne={"-":"",_:" ",0:"0"},nt=/^\s*\d+/,_r=/^%/,Yr=/[\\^$*+?|[\]().{}]/g;function q(t,e,n){var r=t<0?"-":"",s=(r?-t:t)+"",a=s.length;return r+(a<n?new Array(n-a+1).join(e)+s:s)}function Fr(t){return t.replace(Yr,"\\$&")}function Wt(t){return new RegExp("^(?:"+t.map(Fr).join("|")+")","i")}function Ot(t){return new Map(t.map((e,n)=>[e.toLowerCase(),n]))}function Ur(t,e,n){var r=nt.exec(e.slice(n,n+1));return r?(t.w=+r[0],n+r[0].length):-1}function Er(t,e,n){var r=nt.exec(e.slice(n,n+1));return r?(t.u=+r[0],n+r[0].length):-1}function Ir(t,e,n){var r=nt.exec(e.slice(n,n+2));return r?(t.U=+r[0],n+r[0].length):-1}function Lr(t,e,n){var r=nt.exec(e.slice(n,n+2));return r?(t.V=+r[0],n+r[0].length):-1}function Ar(t,e,n){var r=nt.exec(e.slice(n,n+2));return r?(t.W=+r[0],n+r[0].length):-1}function Pe(t,e,n){var r=nt.exec(e.slice(n,n+4));return r?(t.y=+r[0],n+r[0].length):-1}function Ve(t,e,n){var r=nt.exec(e.slice(n,n+2));return r?(t.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function Wr(t,e,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(n,n+6));return r?(t.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function Or(t,e,n){var r=nt.exec(e.slice(n,n+1));return r?(t.q=r[0]*3-3,n+r[0].length):-1}function $r(t,e,n){var r=nt.exec(e.slice(n,n+2));return r?(t.m=r[0]-1,n+r[0].length):-1}function ze(t,e,n){var r=nt.exec(e.slice(n,n+2));return r?(t.d=+r[0],n+r[0].length):-1}function Hr(t,e,n){var r=nt.exec(e.slice(n,n+3));return r?(t.m=0,t.d=+r[0],n+r[0].length):-1}function Re(t,e,n){var r=nt.exec(e.slice(n,n+2));return r?(t.H=+r[0],n+r[0].length):-1}function Nr(t,e,n){var r=nt.exec(e.slice(n,n+2));return r?(t.M=+r[0],n+r[0].length):-1}function Pr(t,e,n){var r=nt.exec(e.slice(n,n+2));return r?(t.S=+r[0],n+r[0].length):-1}function Vr(t,e,n){var r=nt.exec(e.slice(n,n+3));return r?(t.L=+r[0],n+r[0].length):-1}function zr(t,e,n){var r=nt.exec(e.slice(n,n+6));return r?(t.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function Rr(t,e,n){var r=_r.exec(e.slice(n,n+1));return r?n+r[0].length:-1}function Zr(t,e,n){var r=nt.exec(e.slice(n));return r?(t.Q=+r[0],n+r[0].length):-1}function Br(t,e,n){var r=nt.exec(e.slice(n));return r?(t.s=+r[0],n+r[0].length):-1}function Ze(t,e){return q(t.getDate(),e,2)}function Xr(t,e){return q(t.getHours(),e,2)}function qr(t,e){return q(t.getHours()%12||12,e,2)}function Gr(t,e){return q(1+xt.count(kt(t),t),e,3)}function kn(t,e){return q(t.getMilliseconds(),e,3)}function jr(t,e){return kn(t,e)+"000"}function Qr(t,e){return q(t.getMonth()+1,e,2)}function Jr(t,e){return q(t.getMinutes(),e,2)}function Kr(t,e){return q(t.getSeconds(),e,2)}function ti(t){var e=t.getDay();return e===0?7:e}function ei(t,e){return q(Vt.count(kt(t)-1,t),e,2)}function pn(t){var e=t.getDay();return e>=4||e===0?bt(t):bt.ceil(t)}function ni(t,e){return t=pn(t),q(bt.count(kt(t),t)+(kt(t).getDay()===4),e,2)}function ri(t){return t.getDay()}function ii(t,e){return q(Nt.count(kt(t)-1,t),e,2)}function si(t,e){return q(t.getFullYear()%100,e,2)}function ai(t,e){return t=pn(t),q(t.getFullYear()%100,e,2)}function oi(t,e){return q(t.getFullYear()%1e4,e,4)}function ci(t,e){var n=t.getDay();return t=n>=4||n===0?bt(t):bt.ceil(t),q(t.getFullYear()%1e4,e,4)}function ui(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+q(e/60|0,"0",2)+q(e%60,"0",2)}function Be(t,e){return q(t.getUTCDate(),e,2)}function li(t,e){return q(t.getUTCHours(),e,2)}function fi(t,e){return q(t.getUTCHours()%12||12,e,2)}function di(t,e){return q(1+Me.count(wt(t),t),e,3)}function vn(t,e){return q(t.getUTCMilliseconds(),e,3)}function hi(t,e){return vn(t,e)+"000"}function mi(t,e){return q(t.getUTCMonth()+1,e,2)}function gi(t,e){return q(t.getUTCMinutes(),e,2)}function yi(t,e){return q(t.getUTCSeconds(),e,2)}function ki(t){var e=t.getUTCDay();return e===0?7:e}function pi(t,e){return q(yn.count(wt(t)-1,t),e,2)}function Tn(t){var e=t.getUTCDay();return e>=4||e===0?It(t):It.ceil(t)}function vi(t,e){return t=Tn(t),q(It.count(wt(t),t)+(wt(t).getUTCDay()===4),e,2)}function Ti(t){return t.getUTCDay()}function xi(t,e){return q(Kt.count(wt(t)-1,t),e,2)}function bi(t,e){return q(t.getUTCFullYear()%100,e,2)}function wi(t,e){return t=Tn(t),q(t.getUTCFullYear()%100,e,2)}function Di(t,e){return q(t.getUTCFullYear()%1e4,e,4)}function Mi(t,e){var n=t.getUTCDay();return t=n>=4||n===0?It(t):It.ceil(t),q(t.getUTCFullYear()%1e4,e,4)}function Ci(){return"+0000"}function Xe(){return"%"}function qe(t){return+t}function Ge(t){return Math.floor(+t/1e3)}var St,te;Si({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 Si(t){return St=Sr(t),te=St.format,St.parse,St.utcFormat,St.utcParse,St}function _i(t){return new Date(t)}function Yi(t){return t instanceof Date?+t:+new Date(+t)}function xn(t,e,n,r,s,a,o,m,F,C){var k=qn(),L=k.invert,_=k.domain,S=C(".%L"),X=C(":%S"),A=C("%I:%M"),U=C("%I %p"),I=C("%a %d"),N=C("%b %d"),W=C("%B"),B=C("%Y");function j(p){return(F(p)<p?S:m(p)<p?X:o(p)<p?A:a(p)<p?U:r(p)<p?s(p)<p?I:N:n(p)<p?W:B)(p)}return k.invert=function(p){return new Date(L(p))},k.domain=function(p){return arguments.length?_(Array.from(p,Yi)):_().map(_i)},k.ticks=function(p){var g=_();return t(g[0],g[g.length-1],p==null?10:p)},k.tickFormat=function(p,g){return g==null?j:C(g)},k.nice=function(p){var g=_();return(!p||typeof p.range!="function")&&(p=e(g[0],g[g.length-1],p==null?10:p)),p?_(gr(g,p)):k},k.copy=function(){return Gn(k,xn(t,e,n,r,s,a,o,m,F,C))},k}function Fi(){return Qn.apply(xn(Mr,Cr,kt,Pt,Vt,xt,Ht,$t,vt,te).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}var bn={exports:{}};(function(t,e){(function(n,r){t.exports=r()})(re,function(){var n="day";return function(r,s,a){var o=function(C){return C.add(4-C.isoWeekday(),n)},m=s.prototype;m.isoWeekYear=function(){return o(this).year()},m.isoWeek=function(C){if(!this.$utils().u(C))return this.add(7*(C-this.isoWeek()),n);var k,L,_,S,X=o(this),A=(k=this.isoWeekYear(),L=this.$u,_=(L?a.utc:a)().year(k).startOf("year"),S=4-_.isoWeekday(),_.isoWeekday()>4&&(S+=7),_.add(S,n));return X.diff(A,"week")+1},m.isoWeekday=function(C){return this.$utils().u(C)?this.day()||7:this.day(this.day()%7?C:C-7)};var F=m.startOf;m.startOf=function(C,k){var L=this.$utils(),_=!!L.u(k)||k;return L.p(C)==="isoweek"?_?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):F.bind(this)(C,k)}}})})(bn);var Ui=bn.exports;const Ei=ie(Ui);var wn={exports:{}};(function(t,e){(function(n,r){t.exports=r()})(re,function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},r=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,s=/\d/,a=/\d\d/,o=/\d\d?/,m=/\d*[^-_:/,()\s\d]+/,F={},C=function(U){return(U=+U)+(U>68?1900:2e3)},k=function(U){return function(I){this[U]=+I}},L=[/[+-]\d\d:?(\d\d)?|Z/,function(U){(this.zone||(this.zone={})).offset=function(I){if(!I||I==="Z")return 0;var N=I.match(/([+-]|\d\d)/g),W=60*N[1]+(+N[2]||0);return W===0?0:N[0]==="+"?-W:W}(U)}],_=function(U){var I=F[U];return I&&(I.indexOf?I:I.s.concat(I.f))},S=function(U,I){var N,W=F.meridiem;if(W){for(var B=1;B<=24;B+=1)if(U.indexOf(W(B,0,I))>-1){N=B>12;break}}else N=U===(I?"pm":"PM");return N},X={A:[m,function(U){this.afternoon=S(U,!1)}],a:[m,function(U){this.afternoon=S(U,!0)}],Q:[s,function(U){this.month=3*(U-1)+1}],S:[s,function(U){this.milliseconds=100*+U}],SS:[a,function(U){this.milliseconds=10*+U}],SSS:[/\d{3}/,function(U){this.milliseconds=+U}],s:[o,k("seconds")],ss:[o,k("seconds")],m:[o,k("minutes")],mm:[o,k("minutes")],H:[o,k("hours")],h:[o,k("hours")],HH:[o,k("hours")],hh:[o,k("hours")],D:[o,k("day")],DD:[a,k("day")],Do:[m,function(U){var I=F.ordinal,N=U.match(/\d+/);if(this.day=N[0],I)for(var W=1;W<=31;W+=1)I(W).replace(/\[|\]/g,"")===U&&(this.day=W)}],w:[o,k("week")],ww:[a,k("week")],M:[o,k("month")],MM:[a,k("month")],MMM:[m,function(U){var I=_("months"),N=(_("monthsShort")||I.map(function(W){return W.slice(0,3)})).indexOf(U)+1;if(N<1)throw new Error;this.month=N%12||N}],MMMM:[m,function(U){var I=_("months").indexOf(U)+1;if(I<1)throw new Error;this.month=I%12||I}],Y:[/[+-]?\d+/,k("year")],YY:[a,function(U){this.year=C(U)}],YYYY:[/\d{4}/,k("year")],Z:L,ZZ:L};function A(U){var I,N;I=U,N=F&&F.formats;for(var W=(U=I.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(D,w,T){var v=T&&T.toUpperCase();return w||N[T]||n[T]||N[v].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(u,f,x){return f||x.slice(1)})})).match(r),B=W.length,j=0;j<B;j+=1){var p=W[j],g=X[p],y=g&&g[0],h=g&&g[1];W[j]=h?{regex:y,parser:h}:p.replace(/^\[|\]$/g,"")}return function(D){for(var w={},T=0,v=0;T<B;T+=1){var u=W[T];if(typeof u=="string")v+=u.length;else{var f=u.regex,x=u.parser,b=D.slice(v),Y=f.exec(b)[0];x.call(w,Y),D=D.replace(Y,"")}}return function(c){var z=c.afternoon;if(z!==void 0){var i=c.hours;z?i<12&&(c.hours+=12):i===12&&(c.hours=0),delete c.afternoon}}(w),w}}return function(U,I,N){N.p.customParseFormat=!0,U&&U.parseTwoDigitYear&&(C=U.parseTwoDigitYear);var W=I.prototype,B=W.parse;W.parse=function(j){var p=j.date,g=j.utc,y=j.args;this.$u=g;var h=y[1];if(typeof h=="string"){var D=y[2]===!0,w=y[3]===!0,T=D||w,v=y[2];w&&(v=y[2]),F=this.$locale(),!D&&v&&(F=N.Ls[v]),this.$d=function(b,Y,c,z){try{if(["x","X"].indexOf(Y)>-1)return new Date((Y==="X"?1e3:1)*b);var i=A(Y)(b),E=i.year,Z=i.month,P=i.day,R=i.hours,J=i.minutes,$=i.seconds,st=i.milliseconds,M=i.zone,H=i.week,V=new Date,l=P||(E||Z?1:V.getDate()),K=E||V.getFullYear(),O=0;E&&!Z||(O=Z>0?Z-1:V.getMonth());var Q,G=R||0,it=J||0,at=$||0,pt=st||0;return M?new Date(Date.UTC(K,O,l,G,it,at,pt+60*M.offset*1e3)):c?new Date(Date.UTC(K,O,l,G,it,at,pt)):(Q=new Date(K,O,l,G,it,at,pt),H&&(Q=z(Q).week(H).toDate()),Q)}catch{return new Date("")}}(p,h,g,N),this.init(),v&&v!==!0&&(this.$L=this.locale(v).$L),T&&p!=this.format(h)&&(this.$d=new Date("")),F={}}else if(h instanceof Array)for(var u=h.length,f=1;f<=u;f+=1){y[1]=h[f-1];var x=N.apply(this,y);if(x.isValid()){this.$d=x.$d,this.$L=x.$L,this.init();break}f===u&&(this.$d=new Date(""))}else B.call(this,j)}}})})(wn);var Ii=wn.exports;const Li=ie(Ii);var Dn={exports:{}};(function(t,e){(function(n,r){t.exports=r()})(re,function(){return function(n,r){var s=r.prototype,a=s.format;s.format=function(o){var m=this,F=this.$locale();if(!this.isValid())return a.bind(this)(o);var C=this.$utils(),k=(o||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(L){switch(L){case"Q":return Math.ceil((m.$M+1)/3);case"Do":return F.ordinal(m.$D);case"gggg":return m.weekYear();case"GGGG":return m.isoWeekYear();case"wo":return F.ordinal(m.week(),"W");case"w":case"ww":return C.s(m.week(),L==="w"?1:2,"0");case"W":case"WW":return C.s(m.isoWeek(),L==="W"?1:2,"0");case"k":case"kk":return C.s(String(m.$H===0?24:m.$H),L==="k"?1:2,"0");case"X":return Math.floor(m.$d.getTime()/1e3);case"x":return m.$d.getTime();case"z":return"["+m.offsetName()+"]";case"zzz":return"["+m.offsetName("long")+"]";default:return L}});return a.bind(this)(k)}}})})(Dn);var Ai=Dn.exports;const Wi=ie(Ai);var Mn={exports:{}};(function(t,e){(function(n,r){t.exports=r()})(re,function(){var n,r,s=1e3,a=6e4,o=36e5,m=864e5,F=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,C=31536e6,k=2628e6,L=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,_={years:C,months:k,days:m,hours:o,minutes:a,seconds:s,milliseconds:1,weeks:6048e5},S=function(p){return p instanceof B},X=function(p,g,y){return new B(p,y,g.$l)},A=function(p){return r.p(p)+"s"},U=function(p){return p<0},I=function(p){return U(p)?Math.ceil(p):Math.floor(p)},N=function(p){return Math.abs(p)},W=function(p,g){return p?U(p)?{negative:!0,format:""+N(p)+g}:{negative:!1,format:""+p+g}:{negative:!1,format:""}},B=function(){function p(y,h,D){var w=this;if(this.$d={},this.$l=D,y===void 0&&(this.$ms=0,this.parseFromMilliseconds()),h)return X(y*_[A(h)],this);if(typeof y=="number")return this.$ms=y,this.parseFromMilliseconds(),this;if(typeof y=="object")return Object.keys(y).forEach(function(u){w.$d[A(u)]=y[u]}),this.calMilliseconds(),this;if(typeof y=="string"){var T=y.match(L);if(T){var v=T.slice(2).map(function(u){return u!=null?Number(u):0});return this.$d.years=v[0],this.$d.months=v[1],this.$d.weeks=v[2],this.$d.days=v[3],this.$d.hours=v[4],this.$d.minutes=v[5],this.$d.seconds=v[6],this.calMilliseconds(),this}}return this}var g=p.prototype;return g.calMilliseconds=function(){var y=this;this.$ms=Object.keys(this.$d).reduce(function(h,D){return h+(y.$d[D]||0)*_[D]},0)},g.parseFromMilliseconds=function(){var y=this.$ms;this.$d.years=I(y/C),y%=C,this.$d.months=I(y/k),y%=k,this.$d.days=I(y/m),y%=m,this.$d.hours=I(y/o),y%=o,this.$d.minutes=I(y/a),y%=a,this.$d.seconds=I(y/s),y%=s,this.$d.milliseconds=y},g.toISOString=function(){var y=W(this.$d.years,"Y"),h=W(this.$d.months,"M"),D=+this.$d.days||0;this.$d.weeks&&(D+=7*this.$d.weeks);var w=W(D,"D"),T=W(this.$d.hours,"H"),v=W(this.$d.minutes,"M"),u=this.$d.seconds||0;this.$d.milliseconds&&(u+=this.$d.milliseconds/1e3,u=Math.round(1e3*u)/1e3);var f=W(u,"S"),x=y.negative||h.negative||w.negative||T.negative||v.negative||f.negative,b=T.format||v.format||f.format?"T":"",Y=(x?"-":"")+"P"+y.format+h.format+w.format+b+T.format+v.format+f.format;return Y==="P"||Y==="-P"?"P0D":Y},g.toJSON=function(){return this.toISOString()},g.format=function(y){var h=y||"YYYY-MM-DDTHH:mm:ss",D={Y:this.$d.years,YY:r.s(this.$d.years,2,"0"),YYYY:r.s(this.$d.years,4,"0"),M:this.$d.months,MM:r.s(this.$d.months,2,"0"),D:this.$d.days,DD:r.s(this.$d.days,2,"0"),H:this.$d.hours,HH:r.s(this.$d.hours,2,"0"),m:this.$d.minutes,mm:r.s(this.$d.minutes,2,"0"),s:this.$d.seconds,ss:r.s(this.$d.seconds,2,"0"),SSS:r.s(this.$d.milliseconds,3,"0")};return h.replace(F,function(w,T){return T||String(D[w])})},g.as=function(y){return this.$ms/_[A(y)]},g.get=function(y){var h=this.$ms,D=A(y);return D==="milliseconds"?h%=1e3:h=D==="weeks"?I(h/_[D]):this.$d[D],h||0},g.add=function(y,h,D){var w;return w=h?y*_[A(h)]:S(y)?y.$ms:X(y,this).$ms,X(this.$ms+w*(D?-1:1),this)},g.subtract=function(y,h){return this.add(y,h,!0)},g.locale=function(y){var h=this.clone();return h.$l=y,h},g.clone=function(){return X(this.$ms,this)},g.humanize=function(y){return n().add(this.$ms,"ms").locale(this.$l).fromNow(!y)},g.valueOf=function(){return this.asMilliseconds()},g.milliseconds=function(){return this.get("milliseconds")},g.asMilliseconds=function(){return this.as("milliseconds")},g.seconds=function(){return this.get("seconds")},g.asSeconds=function(){return this.as("seconds")},g.minutes=function(){return this.get("minutes")},g.asMinutes=function(){return this.as("minutes")},g.hours=function(){return this.get("hours")},g.asHours=function(){return this.as("hours")},g.days=function(){return this.get("days")},g.asDays=function(){return this.as("days")},g.weeks=function(){return this.get("weeks")},g.asWeeks=function(){return this.as("weeks")},g.months=function(){return this.get("months")},g.asMonths=function(){return this.as("months")},g.years=function(){return this.get("years")},g.asYears=function(){return this.as("years")},p}(),j=function(p,g,y){return p.add(g.years()*y,"y").add(g.months()*y,"M").add(g.days()*y,"d").add(g.hours()*y,"h").add(g.minutes()*y,"m").add(g.seconds()*y,"s").add(g.milliseconds()*y,"ms")};return function(p,g,y){n=y,r=y().$utils(),y.duration=function(w,T){var v=y.locale();return X(w,{$l:v},T)},y.isDuration=S;var h=g.prototype.add,D=g.prototype.subtract;g.prototype.add=function(w,T){return S(w)?j(this,w,1):h.bind(this)(w,T)},g.prototype.subtract=function(w,T){return S(w)?j(this,w,-1):D.bind(this)(w,T)}}})})(Mn);var Oi=Mn.exports;const $i=ie(Oi);var Te=function(){var t=d(function(v,u,f,x){for(f=f||{},x=v.length;x--;f[v[x]]=u);return f},"o"),e=[6,8,10,12,13,14,15,16,17,18,20,21,22,23,24,25,26,27,28,29,30,31,33,35,36,38,40],n=[1,26],r=[1,27],s=[1,28],a=[1,29],o=[1,30],m=[1,31],F=[1,32],C=[1,33],k=[1,34],L=[1,9],_=[1,10],S=[1,11],X=[1,12],A=[1,13],U=[1,14],I=[1,15],N=[1,16],W=[1,19],B=[1,20],j=[1,21],p=[1,22],g=[1,23],y=[1,25],h=[1,35],D={trace:d(function(){},"trace"),yy:{},symbols_:{error:2,start:3,gantt:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NL:10,weekday:11,weekday_monday:12,weekday_tuesday:13,weekday_wednesday:14,weekday_thursday:15,weekday_friday:16,weekday_saturday:17,weekday_sunday:18,weekend:19,weekend_friday:20,weekend_saturday:21,dateFormat:22,inclusiveEndDates:23,topAxis:24,axisFormat:25,tickInterval:26,excludes:27,includes:28,todayMarker:29,title:30,acc_title:31,acc_title_value:32,acc_descr:33,acc_descr_value:34,acc_descr_multiline_value:35,section:36,clickStatement:37,taskTxt:38,taskData:39,click:40,callbackname:41,callbackargs:42,href:43,clickStatementDebug:44,$accept:0,$end:1},terminals_:{2:"error",4:"gantt",6:"EOF",8:"SPACE",10:"NL",12:"weekday_monday",13:"weekday_tuesday",14:"weekday_wednesday",15:"weekday_thursday",16:"weekday_friday",17:"weekday_saturday",18:"weekday_sunday",20:"weekend_friday",21:"weekend_saturday",22:"dateFormat",23:"inclusiveEndDates",24:"topAxis",25:"axisFormat",26:"tickInterval",27:"excludes",28:"includes",29:"todayMarker",30:"title",31:"acc_title",32:"acc_title_value",33:"acc_descr",34:"acc_descr_value",35:"acc_descr_multiline_value",36:"section",38:"taskTxt",39:"taskData",40:"click",41:"callbackname",42:"callbackargs",43:"href"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[11,1],[11,1],[11,1],[11,1],[11,1],[11,1],[11,1],[19,1],[19,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,1],[9,2],[37,2],[37,3],[37,3],[37,4],[37,3],[37,4],[37,2],[44,2],[44,3],[44,3],[44,4],[44,3],[44,4],[44,2]],performAction:d(function(u,f,x,b,Y,c,z){var i=c.length-1;switch(Y){case 1:return c[i-1];case 2:this.$=[];break;case 3:c[i-1].push(c[i]),this.$=c[i-1];break;case 4:case 5:this.$=c[i];break;case 6:case 7:this.$=[];break;case 8:b.setWeekday("monday");break;case 9:b.setWeekday("tuesday");break;case 10:b.setWeekday("wednesday");break;case 11:b.setWeekday("thursday");break;case 12:b.setWeekday("friday");break;case 13:b.setWeekday("saturday");break;case 14:b.setWeekday("sunday");break;case 15:b.setWeekend("friday");break;case 16:b.setWeekend("saturday");break;case 17:b.setDateFormat(c[i].substr(11)),this.$=c[i].substr(11);break;case 18:b.enableInclusiveEndDates(),this.$=c[i].substr(18);break;case 19:b.TopAxis(),this.$=c[i].substr(8);break;case 20:b.setAxisFormat(c[i].substr(11)),this.$=c[i].substr(11);break;case 21:b.setTickInterval(c[i].substr(13)),this.$=c[i].substr(13);break;case 22:b.setExcludes(c[i].substr(9)),this.$=c[i].substr(9);break;case 23:b.setIncludes(c[i].substr(9)),this.$=c[i].substr(9);break;case 24:b.setTodayMarker(c[i].substr(12)),this.$=c[i].substr(12);break;case 27:b.setDiagramTitle(c[i].substr(6)),this.$=c[i].substr(6);break;case 28:this.$=c[i].trim(),b.setAccTitle(this.$);break;case 29:case 30:this.$=c[i].trim(),b.setAccDescription(this.$);break;case 31:b.addSection(c[i].substr(8)),this.$=c[i].substr(8);break;case 33:b.addTask(c[i-1],c[i]),this.$="task";break;case 34:this.$=c[i-1],b.setClickEvent(c[i-1],c[i],null);break;case 35:this.$=c[i-2],b.setClickEvent(c[i-2],c[i-1],c[i]);break;case 36:this.$=c[i-2],b.setClickEvent(c[i-2],c[i-1],null),b.setLink(c[i-2],c[i]);break;case 37:this.$=c[i-3],b.setClickEvent(c[i-3],c[i-2],c[i-1]),b.setLink(c[i-3],c[i]);break;case 38:this.$=c[i-2],b.setClickEvent(c[i-2],c[i],null),b.setLink(c[i-2],c[i-1]);break;case 39:this.$=c[i-3],b.setClickEvent(c[i-3],c[i-1],c[i]),b.setLink(c[i-3],c[i-2]);break;case 40:this.$=c[i-1],b.setLink(c[i-1],c[i]);break;case 41:case 47:this.$=c[i-1]+" "+c[i];break;case 42:case 43:case 45:this.$=c[i-2]+" "+c[i-1]+" "+c[i];break;case 44:case 46:this.$=c[i-3]+" "+c[i-2]+" "+c[i-1]+" "+c[i];break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},t(e,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:17,12:n,13:r,14:s,15:a,16:o,17:m,18:F,19:18,20:C,21:k,22:L,23:_,24:S,25:X,26:A,27:U,28:I,29:N,30:W,31:B,33:j,35:p,36:g,37:24,38:y,40:h},t(e,[2,7],{1:[2,1]}),t(e,[2,3]),{9:36,11:17,12:n,13:r,14:s,15:a,16:o,17:m,18:F,19:18,20:C,21:k,22:L,23:_,24:S,25:X,26:A,27:U,28:I,29:N,30:W,31:B,33:j,35:p,36:g,37:24,38:y,40:h},t(e,[2,5]),t(e,[2,6]),t(e,[2,17]),t(e,[2,18]),t(e,[2,19]),t(e,[2,20]),t(e,[2,21]),t(e,[2,22]),t(e,[2,23]),t(e,[2,24]),t(e,[2,25]),t(e,[2,26]),t(e,[2,27]),{32:[1,37]},{34:[1,38]},t(e,[2,30]),t(e,[2,31]),t(e,[2,32]),{39:[1,39]},t(e,[2,8]),t(e,[2,9]),t(e,[2,10]),t(e,[2,11]),t(e,[2,12]),t(e,[2,13]),t(e,[2,14]),t(e,[2,15]),t(e,[2,16]),{41:[1,40],43:[1,41]},t(e,[2,4]),t(e,[2,28]),t(e,[2,29]),t(e,[2,33]),t(e,[2,34],{42:[1,42],43:[1,43]}),t(e,[2,40],{41:[1,44]}),t(e,[2,35],{43:[1,45]}),t(e,[2,36]),t(e,[2,38],{42:[1,46]}),t(e,[2,37]),t(e,[2,39])],defaultActions:{},parseError:d(function(u,f){if(f.recoverable)this.trace(u);else{var x=new Error(u);throw x.hash=f,x}},"parseError"),parse:d(function(u){var f=this,x=[0],b=[],Y=[null],c=[],z=this.table,i="",E=0,Z=0,P=2,R=1,J=c.slice.call(arguments,1),$=Object.create(this.lexer),st={yy:{}};for(var M in this.yy)Object.prototype.hasOwnProperty.call(this.yy,M)&&(st.yy[M]=this.yy[M]);$.setInput(u,st.yy),st.yy.lexer=$,st.yy.parser=this,typeof $.yylloc=="undefined"&&($.yylloc={});var H=$.yylloc;c.push(H);var V=$.options&&$.options.ranges;typeof st.yy.parseError=="function"?this.parseError=st.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function l(ot){x.length=x.length-2*ot,Y.length=Y.length-ot,c.length=c.length-ot}d(l,"popStack");function K(){var ot;return ot=b.pop()||$.lex()||R,typeof ot!="number"&&(ot instanceof Array&&(b=ot,ot=b.pop()),ot=f.symbols_[ot]||ot),ot}d(K,"lex");for(var O,Q,G,it,at={},pt,ut,We,Bt;;){if(Q=x[x.length-1],this.defaultActions[Q]?G=this.defaultActions[Q]:((O===null||typeof O=="undefined")&&(O=K()),G=z[Q]&&z[Q][O]),typeof G=="undefined"||!G.length||!G[0]){var se="";Bt=[];for(pt in z[Q])this.terminals_[pt]&&pt>P&&Bt.push("'"+this.terminals_[pt]+"'");$.showPosition?se="Parse error on line "+(E+1)+`:
2
2
  `+$.showPosition()+`
3
3
  Expecting `+Bt.join(", ")+", got '"+(this.terminals_[O]||O)+"'":se="Parse error on line "+(E+1)+": Unexpected "+(O==R?"end of input":"'"+(this.terminals_[O]||O)+"'"),this.parseError(se,{text:$.match,token:this.terminals_[O]||O,line:$.yylineno,loc:H,expected:Bt})}if(G[0]instanceof Array&&G.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Q+", token: "+O);switch(G[0]){case 1:x.push(O),Y.push($.yytext),c.push($.yylloc),x.push(G[1]),O=null,Z=$.yyleng,i=$.yytext,E=$.yylineno,H=$.yylloc;break;case 2:if(ut=this.productions_[G[1]][1],at.$=Y[Y.length-ut],at._$={first_line:c[c.length-(ut||1)].first_line,last_line:c[c.length-1].last_line,first_column:c[c.length-(ut||1)].first_column,last_column:c[c.length-1].last_column},V&&(at._$.range=[c[c.length-(ut||1)].range[0],c[c.length-1].range[1]]),it=this.performAction.apply(at,[i,Z,E,st.yy,G[1],Y,c].concat(J)),typeof it!="undefined")return it;ut&&(x=x.slice(0,-1*ut*2),Y=Y.slice(0,-1*ut),c=c.slice(0,-1*ut)),x.push(this.productions_[G[1]][0]),Y.push(at.$),c.push(at._$),We=z[x[x.length-2]][x[x.length-1]],x.push(We);break;case 3:return!0}}return!0},"parse")},w=function(){var v={EOF:1,parseError:d(function(f,x){if(this.yy.parser)this.yy.parser.parseError(f,x);else throw new Error(f)},"parseError"),setInput:d(function(u,f){return this.yy=f||this.yy||{},this._input=u,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:d(function(){var u=this._input[0];this.yytext+=u,this.yyleng++,this.offset++,this.match+=u,this.matched+=u;var f=u.match(/(?:\r\n?|\n).*/g);return f?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),u},"input"),unput:d(function(u){var f=u.length,x=u.split(/(?:\r\n?|\n)/g);this._input=u+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-f),this.offset-=f;var b=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),x.length-1&&(this.yylineno-=x.length-1);var Y=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:x?(x.length===b.length?this.yylloc.first_column:0)+b[b.length-x.length].length-x[0].length:this.yylloc.first_column-f},this.options.ranges&&(this.yylloc.range=[Y[0],Y[0]+this.yyleng-f]),this.yyleng=this.yytext.length,this},"unput"),more:d(function(){return this._more=!0,this},"more"),reject:d(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
4
4
  `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:d(function(u){this.unput(this.match.slice(u))},"less"),pastInput:d(function(){var u=this.matched.substr(0,this.matched.length-this.match.length);return(u.length>20?"...":"")+u.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:d(function(){var u=this.match;return u.length<20&&(u+=this._input.substr(0,20-u.length)),(u.substr(0,20)+(u.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:d(function(){var u=this.pastInput(),f=new Array(u.length+1).join("-");return u+this.upcomingInput()+`
@@ -1,4 +1,4 @@
1
- import{p as hr}from"./chunk-4BX2VUAB-D0wgG8xH.js";import{I as $r}from"./chunk-QZHKN3VN-vOMf7cyc.js";import{a6 as fr,b4 as gr,b1 as ur,a1 as yr,a2 as xr,b2 as mr,b as $,a3 as Q,aE as v,a$ as pr,a4 as Y,bl as br,b8 as wr,t as kr,z as M,s as vr,T as Er,aS as Cr}from"./mermaid.core-DuagT3S2.js";import{p as Br}from"./wardley-L42UT6IY-DsEWk1n9.js";import"./index-CbSmh0fl.js";var p={NORMAL:0,REVERSE:1,HIGHLIGHT:2,MERGE:3,CHERRY_PICK:4},Tr=Er.gitGraph,W=$(()=>vr({...Tr,...Q().gitGraph}),"getConfig"),i=new $r(()=>{const r=W(),e=r.mainBranchName,t=r.mainBranchOrder;return{mainBranchName:e,commits:new Map,head:null,branchConfig:new Map([[e,{name:e,order:t}]]),branches:new Map([[e,null]]),currBranch:e,direction:"LR",seq:0,options:{}}});function K(){return Cr({length:7})}$(K,"getID");function ar(r,e){const t=Object.create(null);return r.reduce((o,s)=>{const c=e(s);return t[c]||(t[c]=!0,o.push(s)),o},[])}$(ar,"uniqBy");var Lr=$(function(r){i.records.direction=r},"setDirection"),Mr=$(function(r){v.debug("options str",r),r=r==null?void 0:r.trim(),r=r||"{}";try{i.records.options=JSON.parse(r)}catch(e){v.error("error while parsing gitGraph options",e.message)}},"setOptions"),Rr=$(function(){return i.records.options},"getOptions"),Ir=$(function(r){let e=r.msg,t=r.id;const o=r.type;let s=r.tags;v.info("commit",e,t,o,s),v.debug("Entering commit:",e,t,o,s);const c=W();t=M.sanitizeText(t,c),e=M.sanitizeText(e,c),s=s==null?void 0:s.map(a=>M.sanitizeText(a,c));const n={id:t||i.records.seq+"-"+K(),message:e,seq:i.records.seq++,type:o!=null?o:p.NORMAL,tags:s!=null?s:[],parents:i.records.head==null?[]:[i.records.head.id],branch:i.records.currBranch};i.records.head=n,v.info("main branch",c.mainBranchName),i.records.commits.has(n.id)&&v.warn(`Commit ID ${n.id} already exists`),i.records.commits.set(n.id,n),i.records.branches.set(i.records.currBranch,n.id),v.debug("in pushCommit "+n.id)},"commit"),Or=$(function(r){let e=r.name;const t=r.order;if(e=M.sanitizeText(e,W()),i.records.branches.has(e))throw new Error(`Trying to create an existing branch. (Help: Either use a new name if you want create a new branch or try using "checkout ${e}")`);i.records.branches.set(e,i.records.head!=null?i.records.head.id:null),i.records.branchConfig.set(e,{name:e,order:t}),nr(e),v.debug("in createBranch")},"branch"),_r=$(r=>{let e=r.branch,t=r.id;const o=r.type,s=r.tags,c=W();e=M.sanitizeText(e,c),t&&(t=M.sanitizeText(t,c));const n=i.records.branches.get(i.records.currBranch),a=i.records.branches.get(e),d=n?i.records.commits.get(n):void 0,l=a?i.records.commits.get(a):void 0;if(d&&l&&d.branch===e)throw new Error(`Cannot merge branch '${e}' into itself.`);if(i.records.currBranch===e){const h=new Error('Incorrect usage of "merge". Cannot merge a branch to itself');throw h.hash={text:`merge ${e}`,token:`merge ${e}`,expected:["branch abc"]},h}if(d===void 0||!d){const h=new Error(`Incorrect usage of "merge". Current branch (${i.records.currBranch})has no commits`);throw h.hash={text:`merge ${e}`,token:`merge ${e}`,expected:["commit"]},h}if(!i.records.branches.has(e)){const h=new Error('Incorrect usage of "merge". Branch to be merged ('+e+") does not exist");throw h.hash={text:`merge ${e}`,token:`merge ${e}`,expected:[`branch ${e}`]},h}if(l===void 0||!l){const h=new Error('Incorrect usage of "merge". Branch to be merged ('+e+") has no commits");throw h.hash={text:`merge ${e}`,token:`merge ${e}`,expected:['"commit"']},h}if(d===l){const h=new Error('Incorrect usage of "merge". Both branches have same head');throw h.hash={text:`merge ${e}`,token:`merge ${e}`,expected:["branch abc"]},h}if(t&&i.records.commits.has(t)){const h=new Error('Incorrect usage of "merge". Commit with id:'+t+" already exists, use different custom id");throw h.hash={text:`merge ${e} ${t} ${o} ${s==null?void 0:s.join(" ")}`,token:`merge ${e} ${t} ${o} ${s==null?void 0:s.join(" ")}`,expected:[`merge ${e} ${t}_UNIQUE ${o} ${s==null?void 0:s.join(" ")}`]},h}const g=a||"",f={id:t||`${i.records.seq}-${K()}`,message:`merged branch ${e} into ${i.records.currBranch}`,seq:i.records.seq++,parents:i.records.head==null?[]:[i.records.head.id,g],branch:i.records.currBranch,type:p.MERGE,customType:o,customId:!!t,tags:s!=null?s:[]};i.records.head=f,i.records.commits.set(f.id,f),i.records.branches.set(i.records.currBranch,f.id),v.debug(i.records.branches),v.debug("in mergeBranch")},"merge"),Gr=$(function(r){let e=r.id,t=r.targetId,o=r.tags,s=r.parent;v.debug("Entering cherryPick:",e,t,o);const c=W();if(e=M.sanitizeText(e,c),t=M.sanitizeText(t,c),o=o==null?void 0:o.map(d=>M.sanitizeText(d,c)),s=M.sanitizeText(s,c),!e||!i.records.commits.has(e)){const d=new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');throw d.hash={text:`cherryPick ${e} ${t}`,token:`cherryPick ${e} ${t}`,expected:["cherry-pick abc"]},d}const n=i.records.commits.get(e);if(n===void 0||!n)throw new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');if(s&&!(Array.isArray(n.parents)&&n.parents.includes(s)))throw new Error("Invalid operation: The specified parent commit is not an immediate parent of the cherry-picked commit.");const a=n.branch;if(n.type===p.MERGE&&!s)throw new Error("Incorrect usage of cherry-pick: If the source commit is a merge commit, an immediate parent commit must be specified.");if(!t||!i.records.commits.has(t)){if(a===i.records.currBranch){const f=new Error('Incorrect usage of "cherryPick". Source commit is already on current branch');throw f.hash={text:`cherryPick ${e} ${t}`,token:`cherryPick ${e} ${t}`,expected:["cherry-pick abc"]},f}const d=i.records.branches.get(i.records.currBranch);if(d===void 0||!d){const f=new Error(`Incorrect usage of "cherry-pick". Current branch (${i.records.currBranch})has no commits`);throw f.hash={text:`cherryPick ${e} ${t}`,token:`cherryPick ${e} ${t}`,expected:["cherry-pick abc"]},f}const l=i.records.commits.get(d);if(l===void 0||!l){const f=new Error(`Incorrect usage of "cherry-pick". Current branch (${i.records.currBranch})has no commits`);throw f.hash={text:`cherryPick ${e} ${t}`,token:`cherryPick ${e} ${t}`,expected:["cherry-pick abc"]},f}const g={id:i.records.seq+"-"+K(),message:`cherry-picked ${n==null?void 0:n.message} into ${i.records.currBranch}`,seq:i.records.seq++,parents:i.records.head==null?[]:[i.records.head.id,n.id],branch:i.records.currBranch,type:p.CHERRY_PICK,tags:o?o.filter(Boolean):[`cherry-pick:${n.id}${n.type===p.MERGE?`|parent:${s}`:""}`]};i.records.head=g,i.records.commits.set(g.id,g),i.records.branches.set(i.records.currBranch,g.id),v.debug(i.records.branches),v.debug("in cherryPick")}},"cherryPick"),nr=$(function(r){var e;if(r=M.sanitizeText(r,W()),i.records.branches.has(r)){i.records.currBranch=r;const t=i.records.branches.get(i.records.currBranch);t===void 0||!t?i.records.head=null:i.records.head=(e=i.records.commits.get(t))!=null?e:null}else{const t=new Error(`Trying to checkout branch which is not yet created. (Help try using "branch ${r}")`);throw t.hash={text:`checkout ${r}`,token:`checkout ${r}`,expected:[`branch ${r}`]},t}},"checkout");function X(r,e,t){const o=r.indexOf(e);o===-1?r.push(t):r.splice(o,1,t)}$(X,"upsert");function Z(r){const e=r.reduce((s,c)=>s.seq>c.seq?s:c,r[0]);let t="";r.forEach(function(s){s===e?t+=" *":t+=" |"});const o=[t,e.id,e.seq];for(const s in i.records.branches)i.records.branches.get(s)===e.id&&o.push(s);if(v.debug(o.join(" ")),e.parents&&e.parents.length==2&&e.parents[0]&&e.parents[1]){const s=i.records.commits.get(e.parents[0]);X(r,e,s),e.parents[1]&&r.push(i.records.commits.get(e.parents[1]))}else{if(e.parents.length==0)return;if(e.parents[0]){const s=i.records.commits.get(e.parents[0]);X(r,e,s)}}r=ar(r,s=>s.id),Z(r)}$(Z,"prettyPrintCommitHistory");var Hr=$(function(){v.debug(i.records.commits);const r=sr()[0];Z([r])},"prettyPrint"),Sr=$(function(){i.reset(),kr()},"clear"),Ar=$(function(){return[...i.records.branchConfig.values()].map((e,t)=>e.order!==null&&e.order!==void 0?e:{...e,order:parseFloat(`0.${t}`)}).sort((e,t)=>{var o,s;return((o=e.order)!=null?o:0)-((s=t.order)!=null?s:0)}).map(({name:e})=>({name:e}))},"getBranchesAsObjArray"),Dr=$(function(){return i.records.branches},"getBranches"),Pr=$(function(){return i.records.commits},"getCommits"),sr=$(function(){const r=[...i.records.commits.values()];return r.forEach(function(e){v.debug(e.id)}),r.sort((e,t)=>e.seq-t.seq),r},"getCommitsArray"),Wr=$(function(){return i.records.currBranch},"getCurrentBranch"),qr=$(function(){return i.records.direction},"getDirection"),Nr=$(function(){return i.records.head},"getHead"),or={commitType:p,getConfig:W,setDirection:Lr,setOptions:Mr,getOptions:Rr,commit:Ir,branch:Or,merge:_r,cherryPick:Gr,checkout:nr,prettyPrint:Hr,clear:Sr,getBranchesAsObjArray:Ar,getBranches:Dr,getCommits:Pr,getCommitsArray:sr,getCurrentBranch:Wr,getDirection:qr,getHead:Nr,setAccTitle:mr,getAccTitle:xr,getAccDescription:yr,setAccDescription:ur,setDiagramTitle:gr,getDiagramTitle:fr},Fr=$((r,e)=>{hr(r,e),r.dir&&e.setDirection(r.dir);for(const t of r.statements)zr(t,e)},"populate"),zr=$((r,e)=>{const o={Commit:$(s=>e.commit(Yr(s)),"Commit"),Branch:$(s=>e.branch(jr(s)),"Branch"),Merge:$(s=>e.merge(Ur(s)),"Merge"),Checkout:$(s=>e.checkout(Kr(s)),"Checkout"),CherryPicking:$(s=>e.cherryPick(Vr(s)),"CherryPicking")}[r.$type];o?o(r):v.error(`Unknown statement type: ${r.$type}`)},"parseStatement"),Yr=$(r=>{var t,o;return{id:r.id,msg:(t=r.message)!=null?t:"",type:r.type!==void 0?p[r.type]:p.NORMAL,tags:(o=r.tags)!=null?o:void 0}},"parseCommit"),jr=$(r=>{var t;return{name:r.name,order:(t=r.order)!=null?t:0}},"parseBranch"),Ur=$(r=>{var t,o;return{branch:r.branch,id:(t=r.id)!=null?t:"",type:r.type!==void 0?p[r.type]:void 0,tags:(o=r.tags)!=null?o:void 0}},"parseMerge"),Kr=$(r=>r.branch,"parseCheckout"),Vr=$(r=>{var t;return{id:r.id,targetId:"",tags:((t=r.tags)==null?void 0:t.length)===0?void 0:r.tags,parent:r.parent}},"parseCherryPicking"),Xr={parse:$(async r=>{const e=await Br("gitGraph",r);v.debug(e),Fr(e,or)},"parse")},S=10,A=40,R=4,G=2,D=8,V=new Set(["redux","redux-dark","redux-color","redux-dark-color"]),J=12,rr=new Set(["redux-color","redux-dark-color"]),Jr=new Set(["dark","redux-dark","redux-dark-color","neo-dark"]),P=$((r,e,t=!1)=>t&&r>0?(r-1)%(e-1)+1:r%e,"calcColorIndex"),B=new Map,T=new Map,j=30,F=new Map,U=[],H=0,x="LR",Qr=$(()=>{B.clear(),T.clear(),F.clear(),H=0,U=[],x="LR"},"clear"),cr=$(r=>{const e=document.createElementNS("http://www.w3.org/2000/svg","text");return(typeof r=="string"?r.split(/\\n|\n|<br\s*\/?>/gi):r).forEach(o=>{const s=document.createElementNS("http://www.w3.org/2000/svg","tspan");s.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),s.setAttribute("dy","1em"),s.setAttribute("x","0"),s.setAttribute("class","row"),s.textContent=o.trim(),e.appendChild(s)}),e},"drawText"),ir=$(r=>{let e,t,o;return x==="BT"?(t=$((s,c)=>s<=c,"comparisonFunc"),o=1/0):(t=$((s,c)=>s>=c,"comparisonFunc"),o=0),r.forEach(s=>{var n,a;const c=x==="TB"||x=="BT"?(n=T.get(s))==null?void 0:n.y:(a=T.get(s))==null?void 0:a.x;c!==void 0&&t(c,o)&&(e=s,o=c)}),e},"findClosestParent"),Zr=$(r=>{let e="",t=1/0;return r.forEach(o=>{const s=T.get(o).y;s<=t&&(e=o,t=s)}),e||void 0},"findClosestParentBT"),re=$((r,e,t)=>{let o=t,s=t;const c=[];r.forEach(n=>{const a=e.get(n);if(!a)throw new Error(`Commit not found for key ${n}`);a.parents.length?(o=te(a),s=Math.max(o,s)):c.push(a),ae(a,o)}),o=s,c.forEach(n=>{ne(n,o,t)}),r.forEach(n=>{const a=e.get(n);if(a!=null&&a.parents.length){const d=Zr(a.parents);o=T.get(d).y-A,o<=s&&(s=o);const l=B.get(a.branch).pos,g=o-S;T.set(a.id,{x:l,y:g})}})},"setParallelBTPos"),ee=$(r=>{var o;const e=ir(r.parents.filter(s=>s!==null));if(!e)throw new Error(`Closest parent not found for commit ${r.id}`);const t=(o=T.get(e))==null?void 0:o.y;if(t===void 0)throw new Error(`Closest parent position not found for commit ${r.id}`);return t},"findClosestParentPos"),te=$(r=>ee(r)+A,"calculateCommitPosition"),ae=$((r,e)=>{const t=B.get(r.branch);if(!t)throw new Error(`Branch not found for commit ${r.id}`);const o=t.pos,s=e+S;return T.set(r.id,{x:o,y:s}),{x:o,y:s}},"setCommitPosition"),ne=$((r,e,t)=>{const o=B.get(r.branch);if(!o)throw new Error(`Branch not found for commit ${r.id}`);const s=e+t,c=o.pos;T.set(r.id,{x:c,y:s})},"setRootPosition"),se=$((r,e,t,o,s,c)=>{const{theme:n}=Y(),a=V.has(n!=null?n:""),d=rr.has(n!=null?n:""),l=Jr.has(n!=null?n:"");if(c===p.HIGHLIGHT)r.append("rect").attr("x",t.x-10+(a?3:0)).attr("y",t.y-10+(a?3:0)).attr("width",a?14:20).attr("height",a?14:20).attr("class",`commit ${e.id} commit-highlight${P(s,D,d)} ${o}-outer`),r.append("rect").attr("x",t.x-6+(a?2:0)).attr("y",t.y-6+(a?2:0)).attr("width",a?8:12).attr("height",a?8:12).attr("class",`commit ${e.id} commit${P(s,D,d)} ${o}-inner`);else if(c===p.CHERRY_PICK)r.append("circle").attr("cx",t.x).attr("cy",t.y).attr("r",a?7:10).attr("class",`commit ${e.id} ${o}`),r.append("circle").attr("cx",t.x-3).attr("cy",t.y+2).attr("r",a?2.5:2.75).attr("fill",l?"#000000":"#fff").attr("class",`commit ${e.id} ${o}`),r.append("circle").attr("cx",t.x+3).attr("cy",t.y+2).attr("r",a?2.5:2.75).attr("fill",l?"#000000":"#fff").attr("class",`commit ${e.id} ${o}`),r.append("line").attr("x1",t.x+3).attr("y1",t.y+1).attr("x2",t.x).attr("y2",t.y-5).attr("stroke",l?"#000000":"#fff").attr("class",`commit ${e.id} ${o}`),r.append("line").attr("x1",t.x-3).attr("y1",t.y+1).attr("x2",t.x).attr("y2",t.y-5).attr("stroke",l?"#000000":"#fff").attr("class",`commit ${e.id} ${o}`);else{const g=r.append("circle");if(g.attr("cx",t.x),g.attr("cy",t.y),g.attr("r",a?7:10),g.attr("class",`commit ${e.id} commit${P(s,D,d)}`),c===p.MERGE){const f=r.append("circle");f.attr("cx",t.x),f.attr("cy",t.y),f.attr("r",a?5:6),f.attr("class",`commit ${o} ${e.id} commit${P(s,D,d)}`)}if(c===p.REVERSE){const f=r.append("path"),h=a?4:5;f.attr("d",`M ${t.x-h},${t.y-h}L${t.x+h},${t.y+h}M${t.x-h},${t.y+h}L${t.x+h},${t.y-h}`).attr("class",`commit ${o} ${e.id} commit${P(s,D,d)}`)}}},"drawCommitBullet"),oe=$((r,e,t,o,s)=>{var c;if(e.type!==p.CHERRY_PICK&&(e.customId&&e.type===p.MERGE||e.type!==p.MERGE)&&s.showCommitLabel){const n=r.append("g"),a=n.insert("rect").attr("class","commit-label-bkg"),d=n.append("text").attr("x",o).attr("y",t.y+25).attr("class","commit-label").text(e.id),l=(c=d.node())==null?void 0:c.getBBox();if(l&&(a.attr("x",t.posWithOffset-l.width/2-G).attr("y",t.y+13.5).attr("width",l.width+2*G).attr("height",l.height+2*G),x==="TB"||x==="BT"?(a.attr("x",t.x-(l.width+4*R+5)).attr("y",t.y-12),d.attr("x",t.x-(l.width+4*R)).attr("y",t.y+l.height-12)):d.attr("x",t.posWithOffset-l.width/2),s.rotateCommitLabel))if(x==="TB"||x==="BT")d.attr("transform","rotate(-45, "+t.x+", "+t.y+")"),a.attr("transform","rotate(-45, "+t.x+", "+t.y+")");else{const g=-7.5-(l.width+10)/25*9.5,f=10+l.width/25*8.5;n.attr("transform","translate("+g+", "+f+") rotate(-45, "+o+", "+t.y+")")}}},"drawCommitLabel"),ce=$((r,e,t,o)=>{var s;if(e.tags.length>0){let c=0,n=0,a=0;const d=[];for(const l of e.tags.reverse()){const g=r.insert("polygon"),f=r.append("circle"),h=r.append("text").attr("y",t.y-16-c).attr("class","tag-label").text(l),y=(s=h.node())==null?void 0:s.getBBox();if(!y)throw new Error("Tag bbox not found");n=Math.max(n,y.width),a=Math.max(a,y.height),h.attr("x",t.posWithOffset-y.width/2),d.push({tag:h,hole:f,rect:g,yOffset:c}),c+=20}for(const{tag:l,hole:g,rect:f,yOffset:h}of d){const y=a/2,u=t.y-19.2-h;if(f.attr("class","tag-label-bkg").attr("points",`
1
+ import{p as hr}from"./chunk-4BX2VUAB-JBWjMXmI.js";import{I as $r}from"./chunk-QZHKN3VN-CZc9G__T.js";import{a6 as fr,b4 as gr,b1 as ur,a1 as yr,a2 as xr,b2 as mr,b as $,a3 as Q,aE as v,a$ as pr,a4 as Y,bl as br,b8 as wr,t as kr,z as M,s as vr,T as Er,aS as Cr}from"./mermaid.core-D_mFRtuY.js";import{p as Br}from"./wardley-L42UT6IY-pXxmrIkF.js";import"./index-DS9nwwVz.js";var p={NORMAL:0,REVERSE:1,HIGHLIGHT:2,MERGE:3,CHERRY_PICK:4},Tr=Er.gitGraph,W=$(()=>vr({...Tr,...Q().gitGraph}),"getConfig"),i=new $r(()=>{const r=W(),e=r.mainBranchName,t=r.mainBranchOrder;return{mainBranchName:e,commits:new Map,head:null,branchConfig:new Map([[e,{name:e,order:t}]]),branches:new Map([[e,null]]),currBranch:e,direction:"LR",seq:0,options:{}}});function K(){return Cr({length:7})}$(K,"getID");function ar(r,e){const t=Object.create(null);return r.reduce((o,s)=>{const c=e(s);return t[c]||(t[c]=!0,o.push(s)),o},[])}$(ar,"uniqBy");var Lr=$(function(r){i.records.direction=r},"setDirection"),Mr=$(function(r){v.debug("options str",r),r=r==null?void 0:r.trim(),r=r||"{}";try{i.records.options=JSON.parse(r)}catch(e){v.error("error while parsing gitGraph options",e.message)}},"setOptions"),Rr=$(function(){return i.records.options},"getOptions"),Ir=$(function(r){let e=r.msg,t=r.id;const o=r.type;let s=r.tags;v.info("commit",e,t,o,s),v.debug("Entering commit:",e,t,o,s);const c=W();t=M.sanitizeText(t,c),e=M.sanitizeText(e,c),s=s==null?void 0:s.map(a=>M.sanitizeText(a,c));const n={id:t||i.records.seq+"-"+K(),message:e,seq:i.records.seq++,type:o!=null?o:p.NORMAL,tags:s!=null?s:[],parents:i.records.head==null?[]:[i.records.head.id],branch:i.records.currBranch};i.records.head=n,v.info("main branch",c.mainBranchName),i.records.commits.has(n.id)&&v.warn(`Commit ID ${n.id} already exists`),i.records.commits.set(n.id,n),i.records.branches.set(i.records.currBranch,n.id),v.debug("in pushCommit "+n.id)},"commit"),Or=$(function(r){let e=r.name;const t=r.order;if(e=M.sanitizeText(e,W()),i.records.branches.has(e))throw new Error(`Trying to create an existing branch. (Help: Either use a new name if you want create a new branch or try using "checkout ${e}")`);i.records.branches.set(e,i.records.head!=null?i.records.head.id:null),i.records.branchConfig.set(e,{name:e,order:t}),nr(e),v.debug("in createBranch")},"branch"),_r=$(r=>{let e=r.branch,t=r.id;const o=r.type,s=r.tags,c=W();e=M.sanitizeText(e,c),t&&(t=M.sanitizeText(t,c));const n=i.records.branches.get(i.records.currBranch),a=i.records.branches.get(e),d=n?i.records.commits.get(n):void 0,l=a?i.records.commits.get(a):void 0;if(d&&l&&d.branch===e)throw new Error(`Cannot merge branch '${e}' into itself.`);if(i.records.currBranch===e){const h=new Error('Incorrect usage of "merge". Cannot merge a branch to itself');throw h.hash={text:`merge ${e}`,token:`merge ${e}`,expected:["branch abc"]},h}if(d===void 0||!d){const h=new Error(`Incorrect usage of "merge". Current branch (${i.records.currBranch})has no commits`);throw h.hash={text:`merge ${e}`,token:`merge ${e}`,expected:["commit"]},h}if(!i.records.branches.has(e)){const h=new Error('Incorrect usage of "merge". Branch to be merged ('+e+") does not exist");throw h.hash={text:`merge ${e}`,token:`merge ${e}`,expected:[`branch ${e}`]},h}if(l===void 0||!l){const h=new Error('Incorrect usage of "merge". Branch to be merged ('+e+") has no commits");throw h.hash={text:`merge ${e}`,token:`merge ${e}`,expected:['"commit"']},h}if(d===l){const h=new Error('Incorrect usage of "merge". Both branches have same head');throw h.hash={text:`merge ${e}`,token:`merge ${e}`,expected:["branch abc"]},h}if(t&&i.records.commits.has(t)){const h=new Error('Incorrect usage of "merge". Commit with id:'+t+" already exists, use different custom id");throw h.hash={text:`merge ${e} ${t} ${o} ${s==null?void 0:s.join(" ")}`,token:`merge ${e} ${t} ${o} ${s==null?void 0:s.join(" ")}`,expected:[`merge ${e} ${t}_UNIQUE ${o} ${s==null?void 0:s.join(" ")}`]},h}const g=a||"",f={id:t||`${i.records.seq}-${K()}`,message:`merged branch ${e} into ${i.records.currBranch}`,seq:i.records.seq++,parents:i.records.head==null?[]:[i.records.head.id,g],branch:i.records.currBranch,type:p.MERGE,customType:o,customId:!!t,tags:s!=null?s:[]};i.records.head=f,i.records.commits.set(f.id,f),i.records.branches.set(i.records.currBranch,f.id),v.debug(i.records.branches),v.debug("in mergeBranch")},"merge"),Gr=$(function(r){let e=r.id,t=r.targetId,o=r.tags,s=r.parent;v.debug("Entering cherryPick:",e,t,o);const c=W();if(e=M.sanitizeText(e,c),t=M.sanitizeText(t,c),o=o==null?void 0:o.map(d=>M.sanitizeText(d,c)),s=M.sanitizeText(s,c),!e||!i.records.commits.has(e)){const d=new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');throw d.hash={text:`cherryPick ${e} ${t}`,token:`cherryPick ${e} ${t}`,expected:["cherry-pick abc"]},d}const n=i.records.commits.get(e);if(n===void 0||!n)throw new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');if(s&&!(Array.isArray(n.parents)&&n.parents.includes(s)))throw new Error("Invalid operation: The specified parent commit is not an immediate parent of the cherry-picked commit.");const a=n.branch;if(n.type===p.MERGE&&!s)throw new Error("Incorrect usage of cherry-pick: If the source commit is a merge commit, an immediate parent commit must be specified.");if(!t||!i.records.commits.has(t)){if(a===i.records.currBranch){const f=new Error('Incorrect usage of "cherryPick". Source commit is already on current branch');throw f.hash={text:`cherryPick ${e} ${t}`,token:`cherryPick ${e} ${t}`,expected:["cherry-pick abc"]},f}const d=i.records.branches.get(i.records.currBranch);if(d===void 0||!d){const f=new Error(`Incorrect usage of "cherry-pick". Current branch (${i.records.currBranch})has no commits`);throw f.hash={text:`cherryPick ${e} ${t}`,token:`cherryPick ${e} ${t}`,expected:["cherry-pick abc"]},f}const l=i.records.commits.get(d);if(l===void 0||!l){const f=new Error(`Incorrect usage of "cherry-pick". Current branch (${i.records.currBranch})has no commits`);throw f.hash={text:`cherryPick ${e} ${t}`,token:`cherryPick ${e} ${t}`,expected:["cherry-pick abc"]},f}const g={id:i.records.seq+"-"+K(),message:`cherry-picked ${n==null?void 0:n.message} into ${i.records.currBranch}`,seq:i.records.seq++,parents:i.records.head==null?[]:[i.records.head.id,n.id],branch:i.records.currBranch,type:p.CHERRY_PICK,tags:o?o.filter(Boolean):[`cherry-pick:${n.id}${n.type===p.MERGE?`|parent:${s}`:""}`]};i.records.head=g,i.records.commits.set(g.id,g),i.records.branches.set(i.records.currBranch,g.id),v.debug(i.records.branches),v.debug("in cherryPick")}},"cherryPick"),nr=$(function(r){var e;if(r=M.sanitizeText(r,W()),i.records.branches.has(r)){i.records.currBranch=r;const t=i.records.branches.get(i.records.currBranch);t===void 0||!t?i.records.head=null:i.records.head=(e=i.records.commits.get(t))!=null?e:null}else{const t=new Error(`Trying to checkout branch which is not yet created. (Help try using "branch ${r}")`);throw t.hash={text:`checkout ${r}`,token:`checkout ${r}`,expected:[`branch ${r}`]},t}},"checkout");function X(r,e,t){const o=r.indexOf(e);o===-1?r.push(t):r.splice(o,1,t)}$(X,"upsert");function Z(r){const e=r.reduce((s,c)=>s.seq>c.seq?s:c,r[0]);let t="";r.forEach(function(s){s===e?t+=" *":t+=" |"});const o=[t,e.id,e.seq];for(const s in i.records.branches)i.records.branches.get(s)===e.id&&o.push(s);if(v.debug(o.join(" ")),e.parents&&e.parents.length==2&&e.parents[0]&&e.parents[1]){const s=i.records.commits.get(e.parents[0]);X(r,e,s),e.parents[1]&&r.push(i.records.commits.get(e.parents[1]))}else{if(e.parents.length==0)return;if(e.parents[0]){const s=i.records.commits.get(e.parents[0]);X(r,e,s)}}r=ar(r,s=>s.id),Z(r)}$(Z,"prettyPrintCommitHistory");var Hr=$(function(){v.debug(i.records.commits);const r=sr()[0];Z([r])},"prettyPrint"),Sr=$(function(){i.reset(),kr()},"clear"),Ar=$(function(){return[...i.records.branchConfig.values()].map((e,t)=>e.order!==null&&e.order!==void 0?e:{...e,order:parseFloat(`0.${t}`)}).sort((e,t)=>{var o,s;return((o=e.order)!=null?o:0)-((s=t.order)!=null?s:0)}).map(({name:e})=>({name:e}))},"getBranchesAsObjArray"),Dr=$(function(){return i.records.branches},"getBranches"),Pr=$(function(){return i.records.commits},"getCommits"),sr=$(function(){const r=[...i.records.commits.values()];return r.forEach(function(e){v.debug(e.id)}),r.sort((e,t)=>e.seq-t.seq),r},"getCommitsArray"),Wr=$(function(){return i.records.currBranch},"getCurrentBranch"),qr=$(function(){return i.records.direction},"getDirection"),Nr=$(function(){return i.records.head},"getHead"),or={commitType:p,getConfig:W,setDirection:Lr,setOptions:Mr,getOptions:Rr,commit:Ir,branch:Or,merge:_r,cherryPick:Gr,checkout:nr,prettyPrint:Hr,clear:Sr,getBranchesAsObjArray:Ar,getBranches:Dr,getCommits:Pr,getCommitsArray:sr,getCurrentBranch:Wr,getDirection:qr,getHead:Nr,setAccTitle:mr,getAccTitle:xr,getAccDescription:yr,setAccDescription:ur,setDiagramTitle:gr,getDiagramTitle:fr},Fr=$((r,e)=>{hr(r,e),r.dir&&e.setDirection(r.dir);for(const t of r.statements)zr(t,e)},"populate"),zr=$((r,e)=>{const o={Commit:$(s=>e.commit(Yr(s)),"Commit"),Branch:$(s=>e.branch(jr(s)),"Branch"),Merge:$(s=>e.merge(Ur(s)),"Merge"),Checkout:$(s=>e.checkout(Kr(s)),"Checkout"),CherryPicking:$(s=>e.cherryPick(Vr(s)),"CherryPicking")}[r.$type];o?o(r):v.error(`Unknown statement type: ${r.$type}`)},"parseStatement"),Yr=$(r=>{var t,o;return{id:r.id,msg:(t=r.message)!=null?t:"",type:r.type!==void 0?p[r.type]:p.NORMAL,tags:(o=r.tags)!=null?o:void 0}},"parseCommit"),jr=$(r=>{var t;return{name:r.name,order:(t=r.order)!=null?t:0}},"parseBranch"),Ur=$(r=>{var t,o;return{branch:r.branch,id:(t=r.id)!=null?t:"",type:r.type!==void 0?p[r.type]:void 0,tags:(o=r.tags)!=null?o:void 0}},"parseMerge"),Kr=$(r=>r.branch,"parseCheckout"),Vr=$(r=>{var t;return{id:r.id,targetId:"",tags:((t=r.tags)==null?void 0:t.length)===0?void 0:r.tags,parent:r.parent}},"parseCherryPicking"),Xr={parse:$(async r=>{const e=await Br("gitGraph",r);v.debug(e),Fr(e,or)},"parse")},S=10,A=40,R=4,G=2,D=8,V=new Set(["redux","redux-dark","redux-color","redux-dark-color"]),J=12,rr=new Set(["redux-color","redux-dark-color"]),Jr=new Set(["dark","redux-dark","redux-dark-color","neo-dark"]),P=$((r,e,t=!1)=>t&&r>0?(r-1)%(e-1)+1:r%e,"calcColorIndex"),B=new Map,T=new Map,j=30,F=new Map,U=[],H=0,x="LR",Qr=$(()=>{B.clear(),T.clear(),F.clear(),H=0,U=[],x="LR"},"clear"),cr=$(r=>{const e=document.createElementNS("http://www.w3.org/2000/svg","text");return(typeof r=="string"?r.split(/\\n|\n|<br\s*\/?>/gi):r).forEach(o=>{const s=document.createElementNS("http://www.w3.org/2000/svg","tspan");s.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),s.setAttribute("dy","1em"),s.setAttribute("x","0"),s.setAttribute("class","row"),s.textContent=o.trim(),e.appendChild(s)}),e},"drawText"),ir=$(r=>{let e,t,o;return x==="BT"?(t=$((s,c)=>s<=c,"comparisonFunc"),o=1/0):(t=$((s,c)=>s>=c,"comparisonFunc"),o=0),r.forEach(s=>{var n,a;const c=x==="TB"||x=="BT"?(n=T.get(s))==null?void 0:n.y:(a=T.get(s))==null?void 0:a.x;c!==void 0&&t(c,o)&&(e=s,o=c)}),e},"findClosestParent"),Zr=$(r=>{let e="",t=1/0;return r.forEach(o=>{const s=T.get(o).y;s<=t&&(e=o,t=s)}),e||void 0},"findClosestParentBT"),re=$((r,e,t)=>{let o=t,s=t;const c=[];r.forEach(n=>{const a=e.get(n);if(!a)throw new Error(`Commit not found for key ${n}`);a.parents.length?(o=te(a),s=Math.max(o,s)):c.push(a),ae(a,o)}),o=s,c.forEach(n=>{ne(n,o,t)}),r.forEach(n=>{const a=e.get(n);if(a!=null&&a.parents.length){const d=Zr(a.parents);o=T.get(d).y-A,o<=s&&(s=o);const l=B.get(a.branch).pos,g=o-S;T.set(a.id,{x:l,y:g})}})},"setParallelBTPos"),ee=$(r=>{var o;const e=ir(r.parents.filter(s=>s!==null));if(!e)throw new Error(`Closest parent not found for commit ${r.id}`);const t=(o=T.get(e))==null?void 0:o.y;if(t===void 0)throw new Error(`Closest parent position not found for commit ${r.id}`);return t},"findClosestParentPos"),te=$(r=>ee(r)+A,"calculateCommitPosition"),ae=$((r,e)=>{const t=B.get(r.branch);if(!t)throw new Error(`Branch not found for commit ${r.id}`);const o=t.pos,s=e+S;return T.set(r.id,{x:o,y:s}),{x:o,y:s}},"setCommitPosition"),ne=$((r,e,t)=>{const o=B.get(r.branch);if(!o)throw new Error(`Branch not found for commit ${r.id}`);const s=e+t,c=o.pos;T.set(r.id,{x:c,y:s})},"setRootPosition"),se=$((r,e,t,o,s,c)=>{const{theme:n}=Y(),a=V.has(n!=null?n:""),d=rr.has(n!=null?n:""),l=Jr.has(n!=null?n:"");if(c===p.HIGHLIGHT)r.append("rect").attr("x",t.x-10+(a?3:0)).attr("y",t.y-10+(a?3:0)).attr("width",a?14:20).attr("height",a?14:20).attr("class",`commit ${e.id} commit-highlight${P(s,D,d)} ${o}-outer`),r.append("rect").attr("x",t.x-6+(a?2:0)).attr("y",t.y-6+(a?2:0)).attr("width",a?8:12).attr("height",a?8:12).attr("class",`commit ${e.id} commit${P(s,D,d)} ${o}-inner`);else if(c===p.CHERRY_PICK)r.append("circle").attr("cx",t.x).attr("cy",t.y).attr("r",a?7:10).attr("class",`commit ${e.id} ${o}`),r.append("circle").attr("cx",t.x-3).attr("cy",t.y+2).attr("r",a?2.5:2.75).attr("fill",l?"#000000":"#fff").attr("class",`commit ${e.id} ${o}`),r.append("circle").attr("cx",t.x+3).attr("cy",t.y+2).attr("r",a?2.5:2.75).attr("fill",l?"#000000":"#fff").attr("class",`commit ${e.id} ${o}`),r.append("line").attr("x1",t.x+3).attr("y1",t.y+1).attr("x2",t.x).attr("y2",t.y-5).attr("stroke",l?"#000000":"#fff").attr("class",`commit ${e.id} ${o}`),r.append("line").attr("x1",t.x-3).attr("y1",t.y+1).attr("x2",t.x).attr("y2",t.y-5).attr("stroke",l?"#000000":"#fff").attr("class",`commit ${e.id} ${o}`);else{const g=r.append("circle");if(g.attr("cx",t.x),g.attr("cy",t.y),g.attr("r",a?7:10),g.attr("class",`commit ${e.id} commit${P(s,D,d)}`),c===p.MERGE){const f=r.append("circle");f.attr("cx",t.x),f.attr("cy",t.y),f.attr("r",a?5:6),f.attr("class",`commit ${o} ${e.id} commit${P(s,D,d)}`)}if(c===p.REVERSE){const f=r.append("path"),h=a?4:5;f.attr("d",`M ${t.x-h},${t.y-h}L${t.x+h},${t.y+h}M${t.x-h},${t.y+h}L${t.x+h},${t.y-h}`).attr("class",`commit ${o} ${e.id} commit${P(s,D,d)}`)}}},"drawCommitBullet"),oe=$((r,e,t,o,s)=>{var c;if(e.type!==p.CHERRY_PICK&&(e.customId&&e.type===p.MERGE||e.type!==p.MERGE)&&s.showCommitLabel){const n=r.append("g"),a=n.insert("rect").attr("class","commit-label-bkg"),d=n.append("text").attr("x",o).attr("y",t.y+25).attr("class","commit-label").text(e.id),l=(c=d.node())==null?void 0:c.getBBox();if(l&&(a.attr("x",t.posWithOffset-l.width/2-G).attr("y",t.y+13.5).attr("width",l.width+2*G).attr("height",l.height+2*G),x==="TB"||x==="BT"?(a.attr("x",t.x-(l.width+4*R+5)).attr("y",t.y-12),d.attr("x",t.x-(l.width+4*R)).attr("y",t.y+l.height-12)):d.attr("x",t.posWithOffset-l.width/2),s.rotateCommitLabel))if(x==="TB"||x==="BT")d.attr("transform","rotate(-45, "+t.x+", "+t.y+")"),a.attr("transform","rotate(-45, "+t.x+", "+t.y+")");else{const g=-7.5-(l.width+10)/25*9.5,f=10+l.width/25*8.5;n.attr("transform","translate("+g+", "+f+") rotate(-45, "+o+", "+t.y+")")}}},"drawCommitLabel"),ce=$((r,e,t,o)=>{var s;if(e.tags.length>0){let c=0,n=0,a=0;const d=[];for(const l of e.tags.reverse()){const g=r.insert("polygon"),f=r.append("circle"),h=r.append("text").attr("y",t.y-16-c).attr("class","tag-label").text(l),y=(s=h.node())==null?void 0:s.getBBox();if(!y)throw new Error("Tag bbox not found");n=Math.max(n,y.width),a=Math.max(a,y.height),h.attr("x",t.posWithOffset-y.width/2),d.push({tag:h,hole:f,rect:g,yOffset:c}),c+=20}for(const{tag:l,hole:g,rect:f,yOffset:h}of d){const y=a/2,u=t.y-19.2-h;if(f.attr("class","tag-label-bkg").attr("points",`
2
2
  ${o-n/2-R/2},${u+G}
3
3
  ${o-n/2-R/2},${u-G}
4
4
  ${t.posWithOffset-n/2-R},${u-y-G}
@@ -0,0 +1 @@
1
+ .sm-root{font-size:14px;line-height:1.65;color:#1a1a1a;word-wrap:break-word}.sm-root p{margin:0 0 10px}.sm-root p:last-child{margin-bottom:0}.sm-root h1,.sm-root h2,.sm-root h3,.sm-root h4{margin:16px 0 8px;font-weight:700;line-height:1.3}.sm-root h1{font-size:18px}.sm-root h2{font-size:16px}.sm-root h3{font-size:15px}.sm-root ul,.sm-root ol{padding-left:22px;margin:6px 0 10px}.sm-root li{margin-bottom:3px}.sm-root strong{font-weight:700}.sm-root em{font-style:italic}.sm-root :not(pre)>code{background:#f3f4f6;padding:1px 6px;border-radius:4px;font-family:ui-monospace,SFMono-Regular,SF Mono,Menlo,monospace;font-size:12.5px;color:#d63b30}.sm-root .code-card{margin:12px 0;border:1px solid #e5e5e5;border-radius:8px;overflow:hidden;background:#fff}.sm-root .code-head{display:flex;align-items:center;justify-content:space-between;padding:6px 12px;background:#f7f7f7;border-bottom:1px solid #e5e5e5}.sm-root .code-lang{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:11px;font-weight:600;letter-spacing:.4px;text-transform:uppercase;color:#ff7461}.sm-root .code-copy{display:inline-flex;align-items:center;gap:5px;background:transparent;border:1px solid transparent;color:#666;font:inherit;font-size:11px;padding:3px 8px;border-radius:4px;cursor:pointer;transition:all .15s}.sm-root .code-copy:hover{background:#fff;color:#1a1a1a;border-color:#d0d0d0}.sm-root .code-copy.is-copied{color:#16a34a;border-color:transparent}.sm-root .code-copy svg{display:block}.sm-root .code-body{background:#fafafa;color:#1a1a1a;padding:12px 14px;margin:0;overflow-x:auto;font-family:ui-monospace,SFMono-Regular,SF Mono,Menlo,monospace;font-size:12.5px;line-height:1.55;white-space:pre}.sm-root .code-body code{background:transparent;color:inherit;padding:0;font:inherit}.sm-root .code-body::-webkit-scrollbar{height:6px}.sm-root .code-body::-webkit-scrollbar-track{background:#f0f0f0}.sm-root .code-body::-webkit-scrollbar-thumb{background:#ccc;border-radius:3px}.sm-root .code-body::-webkit-scrollbar-thumb:hover{background:#ff7461}.sm-root table{border-collapse:collapse;margin:12px 0;font-size:13px;width:100%;background:#fff}.sm-root thead th{text-align:left;font-weight:700;font-size:12px;color:#1a1a1a;padding:10px 14px;background:#fff;border-bottom:2px solid #ff7461}.sm-root tbody td{padding:9px 14px;color:#1a1a1a;background:#fff;border-bottom:1px solid #f0f0f0}.sm-root tbody tr:last-child td{border-bottom:0}.sm-root .mermaid{background:#fff;border:1px solid #e5e5e5;border-radius:8px;padding:12px;margin:12px 0;text-align:center;overflow-x:auto;font-family:ui-monospace,SFMono-Regular,monospace;font-size:12px;color:#888}.sm-root .mermaid svg{max-width:100%;height:auto}.sm-root .mermaid-capture{position:absolute;top:8px;right:8px;width:28px;height:28px;display:inline-flex;align-items:center;justify-content:center;background:#fff;border:1px solid #e5e5e5;border-radius:6px;color:#666;cursor:pointer;padding:0;opacity:0;transition:opacity .15s,color .15s,border-color .15s,background .15s;box-shadow:0 1px 3px #0000000f}.sm-root .mermaid:hover .mermaid-capture{opacity:1}.sm-root .mermaid-capture:hover{color:#ff7461;border-color:#ff7461}.sm-root .mermaid-capture.is-busy{opacity:1;color:#999;cursor:progress}.sm-root .mermaid-capture.is-success{opacity:1;color:#16a34a;border-color:#16a34a}.sm-root .mermaid-capture.is-error{opacity:1;color:#dc2626;border-color:#dc2626}.sm-root blockquote{border-left:3px solid #ff7461;padding:0 0 0 12px;margin:10px 0;color:#555}.sm-root a{color:#ff7461;text-decoration:none}.sm-root a:hover{text-decoration:underline}.sm-root hr{border:0;border-top:1px solid #e5e5e5;margin:16px 0}.sh-root[data-v-f1233fd0]{display:flex;flex-direction:column;gap:4px;margin-bottom:10px}.sh-line[data-v-f1233fd0]{display:inline-flex;align-items:center;gap:8px;font-size:12px;color:#1a1a1a;transition:opacity .4s,color .4s}.sh-fade[data-v-f1233fd0]{opacity:.4;color:#888}.sh-icon[data-v-f1233fd0]{display:inline-flex;align-items:center;justify-content:center;width:18px;height:18px;border-radius:50%;background:#fff5f3;color:#ff7461;flex-shrink:0}.sh-fade .sh-icon[data-v-f1233fd0]{background:#f5f5f5;color:#aaa}.sh-dot[data-v-f1233fd0]{width:6px;height:6px;border-radius:50%;background:#ff7461;display:inline-block}.sh-text[data-v-f1233fd0]{line-height:1.3}.mi-row[data-v-a9af1281]{display:flex;gap:12px;padding:14px 0}.mi-user[data-v-a9af1281]{justify-content:flex-end}.mi-avatar[data-v-a9af1281]{width:32px;height:32px;border-radius:8px;flex-shrink:0;display:flex;align-items:center;justify-content:center;color:#fff;background:linear-gradient(135deg,#ff7461,#ff9686);box-shadow:0 2px 8px #ff746159}.mi-avatar svg[data-v-a9af1281]{width:20px;height:20px;display:block}.mi-body[data-v-a9af1281]{flex:1;min-width:0}.mi-body-user[data-v-a9af1281]{flex:0 1 auto;max-width:75%;display:flex;justify-content:flex-end}.mi-role[data-v-a9af1281]{font-size:11px;font-weight:700;color:#999;text-transform:uppercase;letter-spacing:.5px;margin-bottom:6px}.mi-bubble-user[data-v-a9af1281]{background:#fff;color:#1a1a1a;border:2px solid #ff7461;padding:10px 14px;border-radius:16px 16px 4px;font-size:14px;line-height:1.55;white-space:pre-wrap;word-wrap:break-word}.mi-tool-processing[data-v-a9af1281]{display:inline-flex;align-items:center;gap:6px;font-size:12px;color:#ff7461;padding:4px 0;margin-bottom:8px}.mi-tool-processing span[data-v-a9af1281]{width:5px;height:5px;border-radius:50%;background:#ff7461;animation:mi-bounce-a9af1281 1.4s infinite ease-in-out both}.mi-tool-processing span[data-v-a9af1281]:nth-child(2){animation-delay:.16s}.mi-tool-processing span[data-v-a9af1281]:nth-child(3){animation-delay:.32s}.mi-tool-processing em[data-v-a9af1281]{font-style:normal;color:#999;margin-left:4px}.mi-typing[data-v-a9af1281]{display:inline-flex;gap:4px;padding:4px 0}.mi-typing span[data-v-a9af1281]{width:6px;height:6px;border-radius:50%;background:#ff7461;animation:mi-bounce-a9af1281 1.4s infinite ease-in-out both}.mi-typing span[data-v-a9af1281]:nth-child(2){animation-delay:.16s}.mi-typing span[data-v-a9af1281]:nth-child(3){animation-delay:.32s}@keyframes mi-bounce-a9af1281{0%,80%,to{transform:scale(0)}40%{transform:scale(1)}}.mi-error[data-v-a9af1281]{margin-top:8px;padding:8px 10px;background:#fef2f2;color:#dc2626;border-left:3px solid #dc2626;border-radius:4px;font-size:12px}.ci-root[data-v-ec0be156]{padding:12px 20px 16px;background:#fff}.ci-box[data-v-ec0be156]{position:relative;display:flex;gap:8px;align-items:center;border:1px solid #e5e5e5;border-radius:10px;padding:10px 10px 10px 14px;background:#fafafa;transition:border-color .15s}.ci-box[data-v-ec0be156]:focus-within{border-color:#ff7461;background:#fff}.ci-box textarea[data-v-ec0be156]{flex:1;border:0;background:transparent;resize:none;font:inherit;font-size:14px;color:#1a1a1a;outline:none;line-height:1.5;max-height:200px}.ci-send[data-v-ec0be156]{border:0;background:#ff7461;color:#fff;font-weight:600;font-size:13px;padding:8px 16px;border-radius:8px;cursor:pointer;font-family:inherit}.ci-send[data-v-ec0be156]:hover:not(:disabled){background:#e85d4a}.ci-send[data-v-ec0be156]:disabled{background:#ccc;cursor:not-allowed}.ci-cancel[data-v-ec0be156]{display:inline-flex;align-items:center;gap:6px;border:1px solid #ff7461;background:#fff;color:#ff7461;font-weight:600;font-size:13px;padding:7px 14px;border-radius:8px;cursor:pointer;font-family:inherit;line-height:1}.ci-cancel[data-v-ec0be156]:hover{background:#fff5f3}.ci-cancel[data-v-ec0be156]:active{background:#ffe6e1}.hp-root[data-v-3db415ee]{display:flex;flex-direction:column;background:#fff;border:1px solid #ececec;border-radius:12px;box-shadow:0 1px 2px #00000008,0 6px 16px #0000000d;height:100%;overflow:hidden}.hp-head[data-v-3db415ee]{display:flex;align-items:center;justify-content:space-between;padding:14px 18px;border-bottom:1px solid #f0f0f0;flex-shrink:0}.hp-title[data-v-3db415ee]{font-size:13px;font-weight:700;color:#1a1a1a;letter-spacing:.3px}.hp-clear[data-v-3db415ee]{border:0;background:transparent;color:#999;font:inherit;font-size:11px;cursor:pointer;padding:2px 4px}.hp-clear[data-v-3db415ee]:hover{color:#ff7461}.hp-empty[data-v-3db415ee]{padding:28px 16px;text-align:center;color:#999;font-size:12px}.hp-list[data-v-3db415ee]{list-style:none;padding:8px;margin:0;overflow-y:auto;flex:1}.hp-item[data-v-3db415ee]{position:relative;padding:10px 34px 10px 12px;border-radius:8px;cursor:pointer;margin-bottom:2px;transition:background .15s}.hp-item[data-v-3db415ee]:hover{background:#fafafa}.hp-item-active[data-v-3db415ee]{background:#fff5f3;box-shadow:inset 3px 0 #ff7461}.hp-item-title[data-v-3db415ee]{font-size:13px;color:#1a1a1a;line-height:1.35;font-weight:500;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.hp-item-meta[data-v-3db415ee]{display:flex;align-items:center;gap:5px;margin-top:3px;font-size:11px;color:#999}.hp-del[data-v-3db415ee]{position:absolute;top:6px;right:6px;width:20px;height:20px;border:0;background:transparent;color:#ccc;font-size:16px;line-height:1;cursor:pointer;border-radius:4px;opacity:0;transition:opacity .15s,color .15s}.hp-item:hover .hp-del[data-v-3db415ee]{opacity:1}.hp-del[data-v-3db415ee]:hover{color:#ff7461;background:#fff5f3}@font-face{font-family:Pretendard;font-weight:400;font-style:normal;font-display:swap;src:url(./fonts/Pretendard-Regular.woff2) format("woff2")}@font-face{font-family:Pretendard;font-weight:700;font-style:normal;font-display:swap;src:url(./fonts/Pretendard-Bold.woff2) format("woff2")}:root{font-family:Pretendard,SFProDisplay,AppleSDGothicNeo,SF Pro Text,Spoqa Han Sans Neo,Noto Sans,Helvetica Neue,Helvetica,Arial,sans-serif;color-scheme:light}*{box-sizing:border-box}html,body,#app{height:100%;width:100%;margin:0;padding:0}body{background:#fff;color:#1a1a1a}.cp-root{display:flex;flex-direction:column;height:100%;width:100%;min-height:400px;padding:20px;background:#fff;overflow:hidden}.cp-actions{position:absolute;top:1px;right:14px;z-index:5;display:flex;flex-direction:column;gap:6px}.cp-icon-btn{width:36px;height:36px;display:inline-flex;align-items:center;justify-content:center;border:1px solid #e5e5e5;background:#fff;color:#1a1a1a;border-radius:8px;cursor:pointer;transition:all .15s;box-shadow:0 1px 3px #0000000a;padding:0}.cp-icon-btn:hover{border-color:#ff7461;color:#ff7461}.cp-icon-btn[aria-pressed=true]{background:#fff5f3;border-color:#ff7461;color:#ff7461}.cp-body{flex:1;display:grid;grid-template-columns:1fr auto;min-height:0;overflow:hidden}.cp-chat{display:flex;flex-direction:column;min-width:0;min-height:0;overflow:hidden;position:relative;padding-right:80px}.cp-history{width:400px;min-width:400px}.cp-main{flex:1;min-height:0;overflow-y:auto;padding:0 20px;background:#fff}.cp-empty{height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:40px 20px}.cp-empty-title{font-size:22px;font-weight:700;color:#1a1a1a;margin-bottom:6px}.cp-empty-sub{color:#666;font-size:14px;margin:0 0 24px}.cp-suggestions{display:grid;grid-template-columns:1fr 1fr;gap:8px;max-width:520px;width:100%}.cp-sug{border:1px solid #e5e5e5;background:#fafafa;color:#1a1a1a;padding:10px 14px;border-radius:10px;font-size:13px;text-align:left;cursor:pointer;font-family:inherit;transition:all .15s}.cp-sug:hover:not(:disabled){border-color:#ff7461;background:#ffe6e1}.cp-sug:disabled{opacity:.5;cursor:not-allowed}.cp-list{padding:8px 0;max-width:100%;margin:0 auto}@media (max-width: 900px){.cp-history{width:320px;min-width:320px}}@media (max-width: 640px){.cp-body{grid-template-columns:1fr}.cp-history{position:absolute;right:0;top:0;bottom:0;width:85vw;max-width:400px;z-index:10;box-shadow:-4px 0 12px #00000014}}