orbitchat 3.10.8 → 3.10.9

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 (69) hide show
  1. package/dist/assets/ChartRenderer-Cbyse7LH.js +105 -0
  2. package/dist/assets/{MermaidRenderer-BNgxU_bM.js → MermaidRenderer-yw6DgH3b.js} +61 -61
  3. package/dist/assets/MusicRenderer-BSZsjBll.js +18 -0
  4. package/dist/assets/SVGRenderer-DfMpobkd.js +6 -0
  5. package/dist/assets/architectureDiagram-3BPJPVTR-e2_vf6sQ.js +36 -0
  6. package/dist/assets/{blockDiagram-GPEHLZMM-C_xOdSW3.js → blockDiagram-GPEHLZMM-SCn-DUpY.js} +2 -2
  7. package/dist/assets/{c4Diagram-AAUBKEIU-CfvQYM_q.js → c4Diagram-AAUBKEIU-CD0XXb4K.js} +2 -2
  8. package/dist/assets/channel-zV0lWbMa.js +1 -0
  9. package/dist/assets/{chunk-2J33WTMH-DeY8TrNw.js → chunk-2J33WTMH-D1ecF70l.js} +1 -1
  10. package/dist/assets/{chunk-4BX2VUAB-DIj3bLrU.js → chunk-4BX2VUAB-BdC2_BbM.js} +1 -1
  11. package/dist/assets/{chunk-55IACEB6-I4-oEJEd.js → chunk-55IACEB6-EK7W6T2M.js} +1 -1
  12. package/dist/assets/{chunk-727SXJPM-DCx2l0Oh.js → chunk-727SXJPM-CcXyDAeg.js} +1 -1
  13. package/dist/assets/{chunk-AQP2D5EJ-D4KlRvHF.js → chunk-AQP2D5EJ-DW6XiznW.js} +1 -1
  14. package/dist/assets/{chunk-FMBD7UC4-CqHLqk3L.js → chunk-FMBD7UC4-CPehXR20.js} +1 -1
  15. package/dist/assets/{chunk-ND2GUHAM-CHJjdC0m.js → chunk-ND2GUHAM-CSSdlZau.js} +1 -1
  16. package/dist/assets/{chunk-QZHKN3VN-slcsUOxD.js → chunk-QZHKN3VN-DqF1rB9S.js} +1 -1
  17. package/dist/assets/classDiagram-4FO5ZUOK-CcqSZVcR.js +1 -0
  18. package/dist/assets/classDiagram-v2-Q7XG4LA2-CcqSZVcR.js +1 -0
  19. package/dist/assets/cose-bilkent-S5V4N54A-eZksLHnB.js +1 -0
  20. package/dist/assets/dagre-BM42HDAG-28cMnF2H.js +4 -0
  21. package/dist/assets/diagram-2AECGRRQ-BO7iijXf.js +43 -0
  22. package/dist/assets/diagram-5GNKFQAL-DomATWxv.js +10 -0
  23. package/dist/assets/{diagram-KO2AKTUF-7mueA6fZ.js → diagram-KO2AKTUF-PtoEeRz1.js} +2 -2
  24. package/dist/assets/diagram-LMA3HP47-CASxB1FB.js +24 -0
  25. package/dist/assets/diagram-OG6HWLK6-CyXBWSCx.js +24 -0
  26. package/dist/assets/{erDiagram-TEJ5UH35-hortthG_.js → erDiagram-TEJ5UH35-BsN2y1Xk.js} +2 -2
  27. package/dist/assets/{flowDiagram-I6XJVG4X-DgvKpDc5.js → flowDiagram-I6XJVG4X-Cq2OCvg1.js} +2 -2
  28. package/dist/assets/{ganttDiagram-6RSMTGT7-DR5xWqhT.js → ganttDiagram-6RSMTGT7-jqEV7dNL.js} +2 -2
  29. package/dist/assets/gitGraphDiagram-PVQCEYII-CZV87DUI.js +106 -0
  30. package/dist/assets/graphExportUtils-DrqBjeAI.js +1 -0
  31. package/dist/assets/index-ADlI5-NQ.css +1 -0
  32. package/dist/assets/{index-DnyY0OCY.js → index-DJM2KXCF.js} +3 -3
  33. package/dist/assets/infoDiagram-5YYISTIA-BTT1LXE4.js +2 -0
  34. package/dist/assets/{ishikawaDiagram-YF4QCWOH-8YrFferA.js → ishikawaDiagram-YF4QCWOH-D9KfSIa7.js} +2 -2
  35. package/dist/assets/{journeyDiagram-JHISSGLW-Bix7jj_6.js → journeyDiagram-JHISSGLW-tDXNol4d.js} +2 -2
  36. package/dist/assets/{kanban-definition-UN3LZRKU-CJP7JJpX.js → kanban-definition-UN3LZRKU-DBwlSBF_.js} +2 -2
  37. package/dist/assets/{mindmap-definition-RKZ34NQL-Dk78wf-k.js → mindmap-definition-RKZ34NQL-DnqCIXkX.js} +2 -2
  38. package/dist/assets/{pieDiagram-4H26LBE5-DkAjb9PV.js → pieDiagram-4H26LBE5-C4OTftBM.js} +2 -2
  39. package/dist/assets/{quadrantDiagram-W4KKPZXB-DhA3Ltj3.js → quadrantDiagram-W4KKPZXB-CAZOzJOz.js} +2 -2
  40. package/dist/assets/{requirementDiagram-4Y6WPE33-BwRKT1Ti.js → requirementDiagram-4Y6WPE33-Ji0UfPIj.js} +2 -2
  41. package/dist/assets/sankeyDiagram-5OEKKPKP-Bw7GXHmh.js +40 -0
  42. package/dist/assets/{sequenceDiagram-3UESZ5HK-IjZb9M7w.js → sequenceDiagram-3UESZ5HK-m5wt325o.js} +11 -11
  43. package/dist/assets/stateDiagram-AJRCARHV-BkfQ-aKY.js +1 -0
  44. package/dist/assets/stateDiagram-v2-BHNVJYJU-CrYKygqF.js +1 -0
  45. package/dist/assets/{timeline-definition-PNZ67QCA-ZZ8vXqsw.js → timeline-definition-PNZ67QCA-f8uHcy4Y.js} +2 -2
  46. package/dist/assets/{vennDiagram-CIIHVFJN-Dqi0_zje.js → vennDiagram-CIIHVFJN-CuKQ09R1.js} +2 -2
  47. package/dist/assets/{wardleyDiagram-YWT4CUSO-D7_vAxp3.js → wardleyDiagram-YWT4CUSO-iQQlbl48.js} +2 -2
  48. package/dist/assets/{xychartDiagram-2RQKCTM6-BgFNWh3u.js → xychartDiagram-2RQKCTM6-B4vp4-Xh.js} +2 -2
  49. package/dist/index.html +2 -2
  50. package/package.json +1 -1
  51. package/dist/assets/ChartRenderer-DmEe5ux0.js +0 -105
  52. package/dist/assets/MusicRenderer-fgx5dq-k.js +0 -18
  53. package/dist/assets/SVGRenderer-CZNFFAA_.js +0 -6
  54. package/dist/assets/architectureDiagram-3BPJPVTR-Bfi6eFLn.js +0 -36
  55. package/dist/assets/channel-zLwrxaPB.js +0 -1
  56. package/dist/assets/classDiagram-4FO5ZUOK-CDbYhIhU.js +0 -1
  57. package/dist/assets/classDiagram-v2-Q7XG4LA2-CDbYhIhU.js +0 -1
  58. package/dist/assets/cose-bilkent-S5V4N54A-HnZrIUzr.js +0 -1
  59. package/dist/assets/dagre-BM42HDAG-Cl88doFf.js +0 -4
  60. package/dist/assets/diagram-2AECGRRQ-2lPidS0l.js +0 -43
  61. package/dist/assets/diagram-5GNKFQAL-_tROgYB3.js +0 -10
  62. package/dist/assets/diagram-LMA3HP47-BxKOasa5.js +0 -24
  63. package/dist/assets/diagram-OG6HWLK6-Bwf3i6eI.js +0 -24
  64. package/dist/assets/gitGraphDiagram-PVQCEYII-RJLy0nV8.js +0 -106
  65. package/dist/assets/index-DqIwGcah.css +0 -1
  66. package/dist/assets/infoDiagram-5YYISTIA-CdzF2MjL.js +0 -2
  67. package/dist/assets/sankeyDiagram-5OEKKPKP-Cq7Z3xZr.js +0 -40
  68. package/dist/assets/stateDiagram-AJRCARHV-CbH0JxsR.js +0 -1
  69. package/dist/assets/stateDiagram-v2-BHNVJYJU-CzKw24Ws.js +0 -1
@@ -1,4 +1,4 @@
1
- import{g as ze,s as Re,q as He,p as Be,a as qe,b as Xe,_ as c,c as ft,d as bt,e as Ge,ar as G,l as ot,k as je,j as Ue,y as Ze,u as Qe}from"./MermaidRenderer-BNgxU_bM.js";import{g as At}from"./vendor-markdown-BRX1CUPf.js";import{t as Ke,m as Je,a as tr,b as ae,c as oe,d as er,e as rr,f as ir,g as nr,h as sr,i as ar,j as or,k as ce,l as le,n as ue,s as de,o as fe}from"./time-DJ0lCX4i.js";import{l as cr}from"./linear-BGneeY6s.js";import{R as Te,S as lr,T as be,U as we,V as _e,W as Ot,X as ur}from"./isPrototype-DezZrpQP.js";import"./vendor-syntax-DG6Vo7Ci.js";import"./purify.es-D6gMnemd.js";import"./init-Dmth1JHB.js";import"./defaultLocale-DX6XiGOO.js";function dr(t){return t}var _t=1,Wt=2,Ht=3,wt=4,he=1e-6;function fr(t){return"translate("+t+",0)"}function hr(t){return"translate(0,"+t+")"}function mr(t){return e=>+t(e)}function kr(t,e){return e=Math.max(0,t.bandwidth()-e*2)/2,t.round()&&(e=Math.round(e)),n=>+t(n)+e}function yr(){return!this.__axis}function De(t,e){var n=[],i=null,a=null,f=6,d=6,T=3,M=typeof window<"u"&&window.devicePixelRatio>1?0:.5,$=t===_t||t===wt?-1:1,b=t===wt||t===Wt?"x":"y",L=t===_t||t===Ht?fr:hr;function C(D){var z=i??(e.ticks?e.ticks.apply(e,n):e.domain()),I=a??(e.tickFormat?e.tickFormat.apply(e,n):dr),S=Math.max(f,0)+T,E=e.range(),W=+E[0]+M,A=+E[E.length-1]+M,R=(e.bandwidth?kr:mr)(e.copy(),M),H=D.selection?D.selection():D,Y=H.selectAll(".domain").data([null]),p=H.selectAll(".tick").data(z,e).order(),h=p.exit(),u=p.enter().append("g").attr("class","tick"),x=p.select("line"),v=p.select("text");Y=Y.merge(Y.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),p=p.merge(u),x=x.merge(u.append("line").attr("stroke","currentColor").attr(b+"2",$*f)),v=v.merge(u.append("text").attr("fill","currentColor").attr(b,$*S).attr("dy",t===_t?"0em":t===Ht?"0.71em":"0.32em")),D!==H&&(Y=Y.transition(D),p=p.transition(D),x=x.transition(D),v=v.transition(D),h=h.transition(D).attr("opacity",he).attr("transform",function(k){return isFinite(k=R(k))?L(k+M):this.getAttribute("transform")}),u.attr("opacity",he).attr("transform",function(k){var m=this.parentNode.__axis;return L((m&&isFinite(m=m(k))?m:R(k))+M)})),h.remove(),Y.attr("d",t===wt||t===Wt?d?"M"+$*d+","+W+"H"+M+"V"+A+"H"+$*d:"M"+M+","+W+"V"+A:d?"M"+W+","+$*d+"V"+M+"H"+A+"V"+$*d:"M"+W+","+M+"H"+A),p.attr("opacity",1).attr("transform",function(k){return L(R(k)+M)}),x.attr(b+"2",$*f),v.attr(b,$*S).text(I),H.filter(yr).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",t===Wt?"start":t===wt?"end":"middle"),H.each(function(){this.__axis=R})}return C.scale=function(D){return arguments.length?(e=D,C):e},C.ticks=function(){return n=Array.from(arguments),C},C.tickArguments=function(D){return arguments.length?(n=D==null?[]:Array.from(D),C):n.slice()},C.tickValues=function(D){return arguments.length?(i=D==null?null:Array.from(D),C):i&&i.slice()},C.tickFormat=function(D){return arguments.length?(a=D,C):a},C.tickSize=function(D){return arguments.length?(f=d=+D,C):f},C.tickSizeInner=function(D){return arguments.length?(f=+D,C):f},C.tickSizeOuter=function(D){return arguments.length?(d=+D,C):d},C.tickPadding=function(D){return arguments.length?(T=+D,C):T},C.offset=function(D){return arguments.length?(M=+D,C):M},C}function gr(t){return De(_t,t)}function pr(t){return De(Ht,t)}const vr=Math.PI/180,xr=180/Math.PI,Yt=18,Se=.96422,Ce=1,Me=.82521,Ee=4/29,ht=6/29,Ie=3*ht*ht,Tr=ht*ht*ht;function Ye(t){if(t instanceof et)return new et(t.l,t.a,t.b,t.opacity);if(t instanceof it)return $e(t);t instanceof Te||(t=lr(t));var e=zt(t.r),n=zt(t.g),i=zt(t.b),a=Pt((.2225045*e+.7168786*n+.0606169*i)/Ce),f,d;return e===n&&n===i?f=d=a:(f=Pt((.4360747*e+.3850649*n+.1430804*i)/Se),d=Pt((.0139322*e+.0971045*n+.7141733*i)/Me)),new et(116*a-16,500*(f-a),200*(a-d),t.opacity)}function br(t,e,n,i){return arguments.length===1?Ye(t):new et(t,e,n,i??1)}function et(t,e,n,i){this.l=+t,this.a=+e,this.b=+n,this.opacity=+i}be(et,br,we(_e,{brighter(t){return new et(this.l+Yt*(t??1),this.a,this.b,this.opacity)},darker(t){return new et(this.l-Yt*(t??1),this.a,this.b,this.opacity)},rgb(){var t=(this.l+16)/116,e=isNaN(this.a)?t:t+this.a/500,n=isNaN(this.b)?t:t-this.b/200;return e=Se*Nt(e),t=Ce*Nt(t),n=Me*Nt(n),new Te(Vt(3.1338561*e-1.6168667*t-.4906146*n),Vt(-.9787684*e+1.9161415*t+.033454*n),Vt(.0719453*e-.2289914*t+1.4052427*n),this.opacity)}}));function Pt(t){return t>Tr?Math.pow(t,1/3):t/Ie+Ee}function Nt(t){return t>ht?t*t*t:Ie*(t-Ee)}function Vt(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function zt(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function wr(t){if(t instanceof it)return new it(t.h,t.c,t.l,t.opacity);if(t instanceof et||(t=Ye(t)),t.a===0&&t.b===0)return new it(NaN,0<t.l&&t.l<100?0:NaN,t.l,t.opacity);var e=Math.atan2(t.b,t.a)*xr;return new it(e<0?e+360:e,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}function Bt(t,e,n,i){return arguments.length===1?wr(t):new it(t,e,n,i??1)}function it(t,e,n,i){this.h=+t,this.c=+e,this.l=+n,this.opacity=+i}function $e(t){if(isNaN(t.h))return new et(t.l,0,0,t.opacity);var e=t.h*vr;return new et(t.l,Math.cos(e)*t.c,Math.sin(e)*t.c,t.opacity)}be(it,Bt,we(_e,{brighter(t){return new it(this.h,this.c,this.l+Yt*(t??1),this.opacity)},darker(t){return new it(this.h,this.c,this.l-Yt*(t??1),this.opacity)},rgb(){return $e(this).rgb()}}));function _r(t){return function(e,n){var i=t((e=Bt(e)).h,(n=Bt(n)).h),a=Ot(e.c,n.c),f=Ot(e.l,n.l),d=Ot(e.opacity,n.opacity);return function(T){return e.h=i(T),e.c=a(T),e.l=f(T),e.opacity=d(T),e+""}}}const Dr=_r(ur);var Dt={exports:{}},Sr=Dt.exports,me;function Cr(){return me||(me=1,(function(t,e){(function(n,i){t.exports=i()})(Sr,(function(){var n="day";return function(i,a,f){var d=function($){return $.add(4-$.isoWeekday(),n)},T=a.prototype;T.isoWeekYear=function(){return d(this).year()},T.isoWeek=function($){if(!this.$utils().u($))return this.add(7*($-this.isoWeek()),n);var b,L,C,D,z=d(this),I=(b=this.isoWeekYear(),L=this.$u,C=(L?f.utc:f)().year(b).startOf("year"),D=4-C.isoWeekday(),C.isoWeekday()>4&&(D+=7),C.add(D,n));return z.diff(I,"week")+1},T.isoWeekday=function($){return this.$utils().u($)?this.day()||7:this.day(this.day()%7?$:$-7)};var M=T.startOf;T.startOf=function($,b){var L=this.$utils(),C=!!L.u(b)||b;return L.p($)==="isoweek"?C?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):M.bind(this)($,b)}}}))})(Dt)),Dt.exports}var Mr=Cr();const Er=At(Mr);var St={exports:{}},Ir=St.exports,ke;function Yr(){return ke||(ke=1,(function(t,e){(function(n,i){t.exports=i()})(Ir,(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"},i=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,a=/\d/,f=/\d\d/,d=/\d\d?/,T=/\d*[^-_:/,()\s\d]+/,M={},$=function(S){return(S=+S)+(S>68?1900:2e3)},b=function(S){return function(E){this[S]=+E}},L=[/[+-]\d\d:?(\d\d)?|Z/,function(S){(this.zone||(this.zone={})).offset=(function(E){if(!E||E==="Z")return 0;var W=E.match(/([+-]|\d\d)/g),A=60*W[1]+(+W[2]||0);return A===0?0:W[0]==="+"?-A:A})(S)}],C=function(S){var E=M[S];return E&&(E.indexOf?E:E.s.concat(E.f))},D=function(S,E){var W,A=M.meridiem;if(A){for(var R=1;R<=24;R+=1)if(S.indexOf(A(R,0,E))>-1){W=R>12;break}}else W=S===(E?"pm":"PM");return W},z={A:[T,function(S){this.afternoon=D(S,!1)}],a:[T,function(S){this.afternoon=D(S,!0)}],Q:[a,function(S){this.month=3*(S-1)+1}],S:[a,function(S){this.milliseconds=100*+S}],SS:[f,function(S){this.milliseconds=10*+S}],SSS:[/\d{3}/,function(S){this.milliseconds=+S}],s:[d,b("seconds")],ss:[d,b("seconds")],m:[d,b("minutes")],mm:[d,b("minutes")],H:[d,b("hours")],h:[d,b("hours")],HH:[d,b("hours")],hh:[d,b("hours")],D:[d,b("day")],DD:[f,b("day")],Do:[T,function(S){var E=M.ordinal,W=S.match(/\d+/);if(this.day=W[0],E)for(var A=1;A<=31;A+=1)E(A).replace(/\[|\]/g,"")===S&&(this.day=A)}],w:[d,b("week")],ww:[f,b("week")],M:[d,b("month")],MM:[f,b("month")],MMM:[T,function(S){var E=C("months"),W=(C("monthsShort")||E.map((function(A){return A.slice(0,3)}))).indexOf(S)+1;if(W<1)throw new Error;this.month=W%12||W}],MMMM:[T,function(S){var E=C("months").indexOf(S)+1;if(E<1)throw new Error;this.month=E%12||E}],Y:[/[+-]?\d+/,b("year")],YY:[f,function(S){this.year=$(S)}],YYYY:[/\d{4}/,b("year")],Z:L,ZZ:L};function I(S){var E,W;E=S,W=M&&M.formats;for(var A=(S=E.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(x,v,k){var m=k&&k.toUpperCase();return v||W[k]||n[k]||W[m].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(o,l,y){return l||y.slice(1)}))}))).match(i),R=A.length,H=0;H<R;H+=1){var Y=A[H],p=z[Y],h=p&&p[0],u=p&&p[1];A[H]=u?{regex:h,parser:u}:Y.replace(/^\[|\]$/g,"")}return function(x){for(var v={},k=0,m=0;k<R;k+=1){var o=A[k];if(typeof o=="string")m+=o.length;else{var l=o.regex,y=o.parser,g=x.slice(m),w=l.exec(g)[0];y.call(v,w),x=x.replace(w,"")}}return(function(s){var V=s.afternoon;if(V!==void 0){var r=s.hours;V?r<12&&(s.hours+=12):r===12&&(s.hours=0),delete s.afternoon}})(v),v}}return function(S,E,W){W.p.customParseFormat=!0,S&&S.parseTwoDigitYear&&($=S.parseTwoDigitYear);var A=E.prototype,R=A.parse;A.parse=function(H){var Y=H.date,p=H.utc,h=H.args;this.$u=p;var u=h[1];if(typeof u=="string"){var x=h[2]===!0,v=h[3]===!0,k=x||v,m=h[2];v&&(m=h[2]),M=this.$locale(),!x&&m&&(M=W.Ls[m]),this.$d=(function(g,w,s,V){try{if(["x","X"].indexOf(w)>-1)return new Date((w==="X"?1e3:1)*g);var r=I(w)(g),_=r.year,N=r.month,P=r.day,O=r.hours,X=r.minutes,F=r.seconds,Q=r.milliseconds,nt=r.zone,lt=r.week,yt=new Date,gt=P||(_||N?1:yt.getDate()),ut=_||yt.getFullYear(),B=0;_&&!N||(B=N>0?N-1:yt.getMonth());var Z,j=O||0,at=X||0,K=F||0,st=Q||0;return nt?new Date(Date.UTC(ut,B,gt,j,at,K,st+60*nt.offset*1e3)):s?new Date(Date.UTC(ut,B,gt,j,at,K,st)):(Z=new Date(ut,B,gt,j,at,K,st),lt&&(Z=V(Z).week(lt).toDate()),Z)}catch{return new Date("")}})(Y,u,p,W),this.init(),m&&m!==!0&&(this.$L=this.locale(m).$L),k&&Y!=this.format(u)&&(this.$d=new Date("")),M={}}else if(u instanceof Array)for(var o=u.length,l=1;l<=o;l+=1){h[1]=u[l-1];var y=W.apply(this,h);if(y.isValid()){this.$d=y.$d,this.$L=y.$L,this.init();break}l===o&&(this.$d=new Date(""))}else R.call(this,H)}}}))})(St)),St.exports}var $r=Yr();const Fr=At($r);var Ct={exports:{}},Ar=Ct.exports,ye;function Lr(){return ye||(ye=1,(function(t,e){(function(n,i){t.exports=i()})(Ar,(function(){return function(n,i){var a=i.prototype,f=a.format;a.format=function(d){var T=this,M=this.$locale();if(!this.isValid())return f.bind(this)(d);var $=this.$utils(),b=(d||"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((T.$M+1)/3);case"Do":return M.ordinal(T.$D);case"gggg":return T.weekYear();case"GGGG":return T.isoWeekYear();case"wo":return M.ordinal(T.week(),"W");case"w":case"ww":return $.s(T.week(),L==="w"?1:2,"0");case"W":case"WW":return $.s(T.isoWeek(),L==="W"?1:2,"0");case"k":case"kk":return $.s(String(T.$H===0?24:T.$H),L==="k"?1:2,"0");case"X":return Math.floor(T.$d.getTime()/1e3);case"x":return T.$d.getTime();case"z":return"["+T.offsetName()+"]";case"zzz":return"["+T.offsetName("long")+"]";default:return L}}));return f.bind(this)(b)}}}))})(Ct)),Ct.exports}var Or=Lr();const Wr=At(Or);var Mt={exports:{}},Pr=Mt.exports,ge;function Nr(){return ge||(ge=1,(function(t,e){(function(n,i){t.exports=i()})(Pr,(function(){var n,i,a=1e3,f=6e4,d=36e5,T=864e5,M=31536e6,$=2628e6,b=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,L=/\[([^\]]+)]|YYYY|YY|Y|M{1,2}|D{1,2}|H{1,2}|m{1,2}|s{1,2}|SSS/g,C={years:M,months:$,days:T,hours:d,minutes:f,seconds:a,milliseconds:1,weeks:6048e5},D=function(Y){return Y instanceof R},z=function(Y,p,h){return new R(Y,h,p.$l)},I=function(Y){return i.p(Y)+"s"},S=function(Y){return Y<0},E=function(Y){return S(Y)?Math.ceil(Y):Math.floor(Y)},W=function(Y){return Math.abs(Y)},A=function(Y,p){return Y?S(Y)?{negative:!0,format:""+W(Y)+p}:{negative:!1,format:""+Y+p}:{negative:!1,format:""}},R=(function(){function Y(h,u,x){var v=this;if(this.$d={},this.$l=x,h===void 0&&(this.$ms=0,this.parseFromMilliseconds()),u)return z(h*C[I(u)],this);if(typeof h=="number")return this.$ms=h,this.parseFromMilliseconds(),this;if(typeof h=="object")return Object.keys(h).forEach((function(o){v.$d[I(o)]=h[o]})),this.calMilliseconds(),this;if(typeof h=="string"){var k=h.match(b);if(k){var m=k.slice(2).map((function(o){return o!=null?Number(o):0}));return this.$d.years=m[0],this.$d.months=m[1],this.$d.weeks=m[2],this.$d.days=m[3],this.$d.hours=m[4],this.$d.minutes=m[5],this.$d.seconds=m[6],this.calMilliseconds(),this}}return this}var p=Y.prototype;return p.calMilliseconds=function(){var h=this;this.$ms=Object.keys(this.$d).reduce((function(u,x){return u+(h.$d[x]||0)*C[x]}),0)},p.parseFromMilliseconds=function(){var h=this.$ms;this.$d.years=E(h/M),h%=M,this.$d.months=E(h/$),h%=$,this.$d.days=E(h/T),h%=T,this.$d.hours=E(h/d),h%=d,this.$d.minutes=E(h/f),h%=f,this.$d.seconds=E(h/a),h%=a,this.$d.milliseconds=h},p.toISOString=function(){var h=A(this.$d.years,"Y"),u=A(this.$d.months,"M"),x=+this.$d.days||0;this.$d.weeks&&(x+=7*this.$d.weeks);var v=A(x,"D"),k=A(this.$d.hours,"H"),m=A(this.$d.minutes,"M"),o=this.$d.seconds||0;this.$d.milliseconds&&(o+=this.$d.milliseconds/1e3,o=Math.round(1e3*o)/1e3);var l=A(o,"S"),y=h.negative||u.negative||v.negative||k.negative||m.negative||l.negative,g=k.format||m.format||l.format?"T":"",w=(y?"-":"")+"P"+h.format+u.format+v.format+g+k.format+m.format+l.format;return w==="P"||w==="-P"?"P0D":w},p.toJSON=function(){return this.toISOString()},p.format=function(h){var u=h||"YYYY-MM-DDTHH:mm:ss",x={Y:this.$d.years,YY:i.s(this.$d.years,2,"0"),YYYY:i.s(this.$d.years,4,"0"),M:this.$d.months,MM:i.s(this.$d.months,2,"0"),D:this.$d.days,DD:i.s(this.$d.days,2,"0"),H:this.$d.hours,HH:i.s(this.$d.hours,2,"0"),m:this.$d.minutes,mm:i.s(this.$d.minutes,2,"0"),s:this.$d.seconds,ss:i.s(this.$d.seconds,2,"0"),SSS:i.s(this.$d.milliseconds,3,"0")};return u.replace(L,(function(v,k){return k||String(x[v])}))},p.as=function(h){return this.$ms/C[I(h)]},p.get=function(h){var u=this.$ms,x=I(h);return x==="milliseconds"?u%=1e3:u=x==="weeks"?E(u/C[x]):this.$d[x],u||0},p.add=function(h,u,x){var v;return v=u?h*C[I(u)]:D(h)?h.$ms:z(h,this).$ms,z(this.$ms+v*(x?-1:1),this)},p.subtract=function(h,u){return this.add(h,u,!0)},p.locale=function(h){var u=this.clone();return u.$l=h,u},p.clone=function(){return z(this.$ms,this)},p.humanize=function(h){return n().add(this.$ms,"ms").locale(this.$l).fromNow(!h)},p.valueOf=function(){return this.asMilliseconds()},p.milliseconds=function(){return this.get("milliseconds")},p.asMilliseconds=function(){return this.as("milliseconds")},p.seconds=function(){return this.get("seconds")},p.asSeconds=function(){return this.as("seconds")},p.minutes=function(){return this.get("minutes")},p.asMinutes=function(){return this.as("minutes")},p.hours=function(){return this.get("hours")},p.asHours=function(){return this.as("hours")},p.days=function(){return this.get("days")},p.asDays=function(){return this.as("days")},p.weeks=function(){return this.get("weeks")},p.asWeeks=function(){return this.as("weeks")},p.months=function(){return this.get("months")},p.asMonths=function(){return this.as("months")},p.years=function(){return this.get("years")},p.asYears=function(){return this.as("years")},Y})(),H=function(Y,p,h){return Y.add(p.years()*h,"y").add(p.months()*h,"M").add(p.days()*h,"d").add(p.hours()*h,"h").add(p.minutes()*h,"m").add(p.seconds()*h,"s").add(p.milliseconds()*h,"ms")};return function(Y,p,h){n=h,i=h().$utils(),h.duration=function(v,k){var m=h.locale();return z(v,{$l:m},k)},h.isDuration=D;var u=p.prototype.add,x=p.prototype.subtract;p.prototype.add=function(v,k){return D(v)?H(this,v,1):u.bind(this)(v,k)},p.prototype.subtract=function(v,k){return D(v)?H(this,v,-1):x.bind(this)(v,k)}}}))})(Mt)),Mt.exports}var Vr=Nr();const zr=At(Vr);var qt=(function(){var t=c(function(m,o,l,y){for(l=l||{},y=m.length;y--;l[m[y]]=o);return l},"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],i=[1,27],a=[1,28],f=[1,29],d=[1,30],T=[1,31],M=[1,32],$=[1,33],b=[1,34],L=[1,9],C=[1,10],D=[1,11],z=[1,12],I=[1,13],S=[1,14],E=[1,15],W=[1,16],A=[1,19],R=[1,20],H=[1,21],Y=[1,22],p=[1,23],h=[1,25],u=[1,35],x={trace:c(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:c(function(o,l,y,g,w,s,V){var r=s.length-1;switch(w){case 1:return s[r-1];case 2:this.$=[];break;case 3:s[r-1].push(s[r]),this.$=s[r-1];break;case 4:case 5:this.$=s[r];break;case 6:case 7:this.$=[];break;case 8:g.setWeekday("monday");break;case 9:g.setWeekday("tuesday");break;case 10:g.setWeekday("wednesday");break;case 11:g.setWeekday("thursday");break;case 12:g.setWeekday("friday");break;case 13:g.setWeekday("saturday");break;case 14:g.setWeekday("sunday");break;case 15:g.setWeekend("friday");break;case 16:g.setWeekend("saturday");break;case 17:g.setDateFormat(s[r].substr(11)),this.$=s[r].substr(11);break;case 18:g.enableInclusiveEndDates(),this.$=s[r].substr(18);break;case 19:g.TopAxis(),this.$=s[r].substr(8);break;case 20:g.setAxisFormat(s[r].substr(11)),this.$=s[r].substr(11);break;case 21:g.setTickInterval(s[r].substr(13)),this.$=s[r].substr(13);break;case 22:g.setExcludes(s[r].substr(9)),this.$=s[r].substr(9);break;case 23:g.setIncludes(s[r].substr(9)),this.$=s[r].substr(9);break;case 24:g.setTodayMarker(s[r].substr(12)),this.$=s[r].substr(12);break;case 27:g.setDiagramTitle(s[r].substr(6)),this.$=s[r].substr(6);break;case 28:this.$=s[r].trim(),g.setAccTitle(this.$);break;case 29:case 30:this.$=s[r].trim(),g.setAccDescription(this.$);break;case 31:g.addSection(s[r].substr(8)),this.$=s[r].substr(8);break;case 33:g.addTask(s[r-1],s[r]),this.$="task";break;case 34:this.$=s[r-1],g.setClickEvent(s[r-1],s[r],null);break;case 35:this.$=s[r-2],g.setClickEvent(s[r-2],s[r-1],s[r]);break;case 36:this.$=s[r-2],g.setClickEvent(s[r-2],s[r-1],null),g.setLink(s[r-2],s[r]);break;case 37:this.$=s[r-3],g.setClickEvent(s[r-3],s[r-2],s[r-1]),g.setLink(s[r-3],s[r]);break;case 38:this.$=s[r-2],g.setClickEvent(s[r-2],s[r],null),g.setLink(s[r-2],s[r-1]);break;case 39:this.$=s[r-3],g.setClickEvent(s[r-3],s[r-1],s[r]),g.setLink(s[r-3],s[r-2]);break;case 40:this.$=s[r-1],g.setLink(s[r-1],s[r]);break;case 41:case 47:this.$=s[r-1]+" "+s[r];break;case 42:case 43:case 45:this.$=s[r-2]+" "+s[r-1]+" "+s[r];break;case 44:case 46:this.$=s[r-3]+" "+s[r-2]+" "+s[r-1]+" "+s[r];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:i,14:a,15:f,16:d,17:T,18:M,19:18,20:$,21:b,22:L,23:C,24:D,25:z,26:I,27:S,28:E,29:W,30:A,31:R,33:H,35:Y,36:p,37:24,38:h,40:u},t(e,[2,7],{1:[2,1]}),t(e,[2,3]),{9:36,11:17,12:n,13:i,14:a,15:f,16:d,17:T,18:M,19:18,20:$,21:b,22:L,23:C,24:D,25:z,26:I,27:S,28:E,29:W,30:A,31:R,33:H,35:Y,36:p,37:24,38:h,40:u},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:c(function(o,l){if(l.recoverable)this.trace(o);else{var y=new Error(o);throw y.hash=l,y}},"parseError"),parse:c(function(o){var l=this,y=[0],g=[],w=[null],s=[],V=this.table,r="",_=0,N=0,P=2,O=1,X=s.slice.call(arguments,1),F=Object.create(this.lexer),Q={yy:{}};for(var nt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,nt)&&(Q.yy[nt]=this.yy[nt]);F.setInput(o,Q.yy),Q.yy.lexer=F,Q.yy.parser=this,typeof F.yylloc>"u"&&(F.yylloc={});var lt=F.yylloc;s.push(lt);var yt=F.options&&F.options.ranges;typeof Q.yy.parseError=="function"?this.parseError=Q.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function gt(U){y.length=y.length-2*U,w.length=w.length-U,s.length=s.length-U}c(gt,"popStack");function ut(){var U;return U=g.pop()||F.lex()||O,typeof U!="number"&&(U instanceof Array&&(g=U,U=g.pop()),U=l.symbols_[U]||U),U}c(ut,"lex");for(var B,Z,j,at,K={},st,J,se,Tt;;){if(Z=y[y.length-1],this.defaultActions[Z]?j=this.defaultActions[Z]:((B===null||typeof B>"u")&&(B=ut()),j=V[Z]&&V[Z][B]),typeof j>"u"||!j.length||!j[0]){var Lt="";Tt=[];for(st in V[Z])this.terminals_[st]&&st>P&&Tt.push("'"+this.terminals_[st]+"'");F.showPosition?Lt="Parse error on line "+(_+1)+`:
1
+ import{g as ze,s as Re,q as He,p as Be,a as qe,b as Xe,_ as c,c as ft,d as bt,e as Ge,ar as G,l as ot,k as je,j as Ue,y as Ze,u as Qe}from"./MermaidRenderer-yw6DgH3b.js";import{g as At}from"./vendor-markdown-BRX1CUPf.js";import{t as Ke,m as Je,a as tr,b as ae,c as oe,d as er,e as rr,f as ir,g as nr,h as sr,i as ar,j as or,k as ce,l as le,n as ue,s as de,o as fe}from"./time-DJ0lCX4i.js";import{l as cr}from"./linear-BGneeY6s.js";import{R as Te,S as lr,T as be,U as we,V as _e,W as Ot,X as ur}from"./isPrototype-DezZrpQP.js";import"./vendor-syntax-DG6Vo7Ci.js";import"./purify.es-D6gMnemd.js";import"./graphExportUtils-DrqBjeAI.js";import"./init-Dmth1JHB.js";import"./defaultLocale-DX6XiGOO.js";function dr(t){return t}var _t=1,Wt=2,Ht=3,wt=4,he=1e-6;function fr(t){return"translate("+t+",0)"}function hr(t){return"translate(0,"+t+")"}function mr(t){return e=>+t(e)}function kr(t,e){return e=Math.max(0,t.bandwidth()-e*2)/2,t.round()&&(e=Math.round(e)),n=>+t(n)+e}function yr(){return!this.__axis}function De(t,e){var n=[],i=null,a=null,f=6,d=6,T=3,M=typeof window<"u"&&window.devicePixelRatio>1?0:.5,$=t===_t||t===wt?-1:1,b=t===wt||t===Wt?"x":"y",L=t===_t||t===Ht?fr:hr;function C(D){var z=i??(e.ticks?e.ticks.apply(e,n):e.domain()),I=a??(e.tickFormat?e.tickFormat.apply(e,n):dr),S=Math.max(f,0)+T,E=e.range(),W=+E[0]+M,A=+E[E.length-1]+M,R=(e.bandwidth?kr:mr)(e.copy(),M),H=D.selection?D.selection():D,Y=H.selectAll(".domain").data([null]),p=H.selectAll(".tick").data(z,e).order(),h=p.exit(),u=p.enter().append("g").attr("class","tick"),x=p.select("line"),v=p.select("text");Y=Y.merge(Y.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),p=p.merge(u),x=x.merge(u.append("line").attr("stroke","currentColor").attr(b+"2",$*f)),v=v.merge(u.append("text").attr("fill","currentColor").attr(b,$*S).attr("dy",t===_t?"0em":t===Ht?"0.71em":"0.32em")),D!==H&&(Y=Y.transition(D),p=p.transition(D),x=x.transition(D),v=v.transition(D),h=h.transition(D).attr("opacity",he).attr("transform",function(k){return isFinite(k=R(k))?L(k+M):this.getAttribute("transform")}),u.attr("opacity",he).attr("transform",function(k){var m=this.parentNode.__axis;return L((m&&isFinite(m=m(k))?m:R(k))+M)})),h.remove(),Y.attr("d",t===wt||t===Wt?d?"M"+$*d+","+W+"H"+M+"V"+A+"H"+$*d:"M"+M+","+W+"V"+A:d?"M"+W+","+$*d+"V"+M+"H"+A+"V"+$*d:"M"+W+","+M+"H"+A),p.attr("opacity",1).attr("transform",function(k){return L(R(k)+M)}),x.attr(b+"2",$*f),v.attr(b,$*S).text(I),H.filter(yr).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",t===Wt?"start":t===wt?"end":"middle"),H.each(function(){this.__axis=R})}return C.scale=function(D){return arguments.length?(e=D,C):e},C.ticks=function(){return n=Array.from(arguments),C},C.tickArguments=function(D){return arguments.length?(n=D==null?[]:Array.from(D),C):n.slice()},C.tickValues=function(D){return arguments.length?(i=D==null?null:Array.from(D),C):i&&i.slice()},C.tickFormat=function(D){return arguments.length?(a=D,C):a},C.tickSize=function(D){return arguments.length?(f=d=+D,C):f},C.tickSizeInner=function(D){return arguments.length?(f=+D,C):f},C.tickSizeOuter=function(D){return arguments.length?(d=+D,C):d},C.tickPadding=function(D){return arguments.length?(T=+D,C):T},C.offset=function(D){return arguments.length?(M=+D,C):M},C}function gr(t){return De(_t,t)}function pr(t){return De(Ht,t)}const vr=Math.PI/180,xr=180/Math.PI,Yt=18,Se=.96422,Ce=1,Me=.82521,Ee=4/29,ht=6/29,Ie=3*ht*ht,Tr=ht*ht*ht;function Ye(t){if(t instanceof et)return new et(t.l,t.a,t.b,t.opacity);if(t instanceof it)return $e(t);t instanceof Te||(t=lr(t));var e=zt(t.r),n=zt(t.g),i=zt(t.b),a=Pt((.2225045*e+.7168786*n+.0606169*i)/Ce),f,d;return e===n&&n===i?f=d=a:(f=Pt((.4360747*e+.3850649*n+.1430804*i)/Se),d=Pt((.0139322*e+.0971045*n+.7141733*i)/Me)),new et(116*a-16,500*(f-a),200*(a-d),t.opacity)}function br(t,e,n,i){return arguments.length===1?Ye(t):new et(t,e,n,i??1)}function et(t,e,n,i){this.l=+t,this.a=+e,this.b=+n,this.opacity=+i}be(et,br,we(_e,{brighter(t){return new et(this.l+Yt*(t??1),this.a,this.b,this.opacity)},darker(t){return new et(this.l-Yt*(t??1),this.a,this.b,this.opacity)},rgb(){var t=(this.l+16)/116,e=isNaN(this.a)?t:t+this.a/500,n=isNaN(this.b)?t:t-this.b/200;return e=Se*Nt(e),t=Ce*Nt(t),n=Me*Nt(n),new Te(Vt(3.1338561*e-1.6168667*t-.4906146*n),Vt(-.9787684*e+1.9161415*t+.033454*n),Vt(.0719453*e-.2289914*t+1.4052427*n),this.opacity)}}));function Pt(t){return t>Tr?Math.pow(t,1/3):t/Ie+Ee}function Nt(t){return t>ht?t*t*t:Ie*(t-Ee)}function Vt(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function zt(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function wr(t){if(t instanceof it)return new it(t.h,t.c,t.l,t.opacity);if(t instanceof et||(t=Ye(t)),t.a===0&&t.b===0)return new it(NaN,0<t.l&&t.l<100?0:NaN,t.l,t.opacity);var e=Math.atan2(t.b,t.a)*xr;return new it(e<0?e+360:e,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}function Bt(t,e,n,i){return arguments.length===1?wr(t):new it(t,e,n,i??1)}function it(t,e,n,i){this.h=+t,this.c=+e,this.l=+n,this.opacity=+i}function $e(t){if(isNaN(t.h))return new et(t.l,0,0,t.opacity);var e=t.h*vr;return new et(t.l,Math.cos(e)*t.c,Math.sin(e)*t.c,t.opacity)}be(it,Bt,we(_e,{brighter(t){return new it(this.h,this.c,this.l+Yt*(t??1),this.opacity)},darker(t){return new it(this.h,this.c,this.l-Yt*(t??1),this.opacity)},rgb(){return $e(this).rgb()}}));function _r(t){return function(e,n){var i=t((e=Bt(e)).h,(n=Bt(n)).h),a=Ot(e.c,n.c),f=Ot(e.l,n.l),d=Ot(e.opacity,n.opacity);return function(T){return e.h=i(T),e.c=a(T),e.l=f(T),e.opacity=d(T),e+""}}}const Dr=_r(ur);var Dt={exports:{}},Sr=Dt.exports,me;function Cr(){return me||(me=1,(function(t,e){(function(n,i){t.exports=i()})(Sr,(function(){var n="day";return function(i,a,f){var d=function($){return $.add(4-$.isoWeekday(),n)},T=a.prototype;T.isoWeekYear=function(){return d(this).year()},T.isoWeek=function($){if(!this.$utils().u($))return this.add(7*($-this.isoWeek()),n);var b,L,C,D,z=d(this),I=(b=this.isoWeekYear(),L=this.$u,C=(L?f.utc:f)().year(b).startOf("year"),D=4-C.isoWeekday(),C.isoWeekday()>4&&(D+=7),C.add(D,n));return z.diff(I,"week")+1},T.isoWeekday=function($){return this.$utils().u($)?this.day()||7:this.day(this.day()%7?$:$-7)};var M=T.startOf;T.startOf=function($,b){var L=this.$utils(),C=!!L.u(b)||b;return L.p($)==="isoweek"?C?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):M.bind(this)($,b)}}}))})(Dt)),Dt.exports}var Mr=Cr();const Er=At(Mr);var St={exports:{}},Ir=St.exports,ke;function Yr(){return ke||(ke=1,(function(t,e){(function(n,i){t.exports=i()})(Ir,(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"},i=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,a=/\d/,f=/\d\d/,d=/\d\d?/,T=/\d*[^-_:/,()\s\d]+/,M={},$=function(S){return(S=+S)+(S>68?1900:2e3)},b=function(S){return function(E){this[S]=+E}},L=[/[+-]\d\d:?(\d\d)?|Z/,function(S){(this.zone||(this.zone={})).offset=(function(E){if(!E||E==="Z")return 0;var W=E.match(/([+-]|\d\d)/g),A=60*W[1]+(+W[2]||0);return A===0?0:W[0]==="+"?-A:A})(S)}],C=function(S){var E=M[S];return E&&(E.indexOf?E:E.s.concat(E.f))},D=function(S,E){var W,A=M.meridiem;if(A){for(var R=1;R<=24;R+=1)if(S.indexOf(A(R,0,E))>-1){W=R>12;break}}else W=S===(E?"pm":"PM");return W},z={A:[T,function(S){this.afternoon=D(S,!1)}],a:[T,function(S){this.afternoon=D(S,!0)}],Q:[a,function(S){this.month=3*(S-1)+1}],S:[a,function(S){this.milliseconds=100*+S}],SS:[f,function(S){this.milliseconds=10*+S}],SSS:[/\d{3}/,function(S){this.milliseconds=+S}],s:[d,b("seconds")],ss:[d,b("seconds")],m:[d,b("minutes")],mm:[d,b("minutes")],H:[d,b("hours")],h:[d,b("hours")],HH:[d,b("hours")],hh:[d,b("hours")],D:[d,b("day")],DD:[f,b("day")],Do:[T,function(S){var E=M.ordinal,W=S.match(/\d+/);if(this.day=W[0],E)for(var A=1;A<=31;A+=1)E(A).replace(/\[|\]/g,"")===S&&(this.day=A)}],w:[d,b("week")],ww:[f,b("week")],M:[d,b("month")],MM:[f,b("month")],MMM:[T,function(S){var E=C("months"),W=(C("monthsShort")||E.map((function(A){return A.slice(0,3)}))).indexOf(S)+1;if(W<1)throw new Error;this.month=W%12||W}],MMMM:[T,function(S){var E=C("months").indexOf(S)+1;if(E<1)throw new Error;this.month=E%12||E}],Y:[/[+-]?\d+/,b("year")],YY:[f,function(S){this.year=$(S)}],YYYY:[/\d{4}/,b("year")],Z:L,ZZ:L};function I(S){var E,W;E=S,W=M&&M.formats;for(var A=(S=E.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(x,v,k){var m=k&&k.toUpperCase();return v||W[k]||n[k]||W[m].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(o,l,y){return l||y.slice(1)}))}))).match(i),R=A.length,H=0;H<R;H+=1){var Y=A[H],p=z[Y],h=p&&p[0],u=p&&p[1];A[H]=u?{regex:h,parser:u}:Y.replace(/^\[|\]$/g,"")}return function(x){for(var v={},k=0,m=0;k<R;k+=1){var o=A[k];if(typeof o=="string")m+=o.length;else{var l=o.regex,y=o.parser,g=x.slice(m),w=l.exec(g)[0];y.call(v,w),x=x.replace(w,"")}}return(function(s){var V=s.afternoon;if(V!==void 0){var r=s.hours;V?r<12&&(s.hours+=12):r===12&&(s.hours=0),delete s.afternoon}})(v),v}}return function(S,E,W){W.p.customParseFormat=!0,S&&S.parseTwoDigitYear&&($=S.parseTwoDigitYear);var A=E.prototype,R=A.parse;A.parse=function(H){var Y=H.date,p=H.utc,h=H.args;this.$u=p;var u=h[1];if(typeof u=="string"){var x=h[2]===!0,v=h[3]===!0,k=x||v,m=h[2];v&&(m=h[2]),M=this.$locale(),!x&&m&&(M=W.Ls[m]),this.$d=(function(g,w,s,V){try{if(["x","X"].indexOf(w)>-1)return new Date((w==="X"?1e3:1)*g);var r=I(w)(g),_=r.year,N=r.month,P=r.day,O=r.hours,X=r.minutes,F=r.seconds,Q=r.milliseconds,nt=r.zone,lt=r.week,yt=new Date,gt=P||(_||N?1:yt.getDate()),ut=_||yt.getFullYear(),B=0;_&&!N||(B=N>0?N-1:yt.getMonth());var Z,j=O||0,at=X||0,K=F||0,st=Q||0;return nt?new Date(Date.UTC(ut,B,gt,j,at,K,st+60*nt.offset*1e3)):s?new Date(Date.UTC(ut,B,gt,j,at,K,st)):(Z=new Date(ut,B,gt,j,at,K,st),lt&&(Z=V(Z).week(lt).toDate()),Z)}catch{return new Date("")}})(Y,u,p,W),this.init(),m&&m!==!0&&(this.$L=this.locale(m).$L),k&&Y!=this.format(u)&&(this.$d=new Date("")),M={}}else if(u instanceof Array)for(var o=u.length,l=1;l<=o;l+=1){h[1]=u[l-1];var y=W.apply(this,h);if(y.isValid()){this.$d=y.$d,this.$L=y.$L,this.init();break}l===o&&(this.$d=new Date(""))}else R.call(this,H)}}}))})(St)),St.exports}var $r=Yr();const Fr=At($r);var Ct={exports:{}},Ar=Ct.exports,ye;function Lr(){return ye||(ye=1,(function(t,e){(function(n,i){t.exports=i()})(Ar,(function(){return function(n,i){var a=i.prototype,f=a.format;a.format=function(d){var T=this,M=this.$locale();if(!this.isValid())return f.bind(this)(d);var $=this.$utils(),b=(d||"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((T.$M+1)/3);case"Do":return M.ordinal(T.$D);case"gggg":return T.weekYear();case"GGGG":return T.isoWeekYear();case"wo":return M.ordinal(T.week(),"W");case"w":case"ww":return $.s(T.week(),L==="w"?1:2,"0");case"W":case"WW":return $.s(T.isoWeek(),L==="W"?1:2,"0");case"k":case"kk":return $.s(String(T.$H===0?24:T.$H),L==="k"?1:2,"0");case"X":return Math.floor(T.$d.getTime()/1e3);case"x":return T.$d.getTime();case"z":return"["+T.offsetName()+"]";case"zzz":return"["+T.offsetName("long")+"]";default:return L}}));return f.bind(this)(b)}}}))})(Ct)),Ct.exports}var Or=Lr();const Wr=At(Or);var Mt={exports:{}},Pr=Mt.exports,ge;function Nr(){return ge||(ge=1,(function(t,e){(function(n,i){t.exports=i()})(Pr,(function(){var n,i,a=1e3,f=6e4,d=36e5,T=864e5,M=31536e6,$=2628e6,b=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,L=/\[([^\]]+)]|YYYY|YY|Y|M{1,2}|D{1,2}|H{1,2}|m{1,2}|s{1,2}|SSS/g,C={years:M,months:$,days:T,hours:d,minutes:f,seconds:a,milliseconds:1,weeks:6048e5},D=function(Y){return Y instanceof R},z=function(Y,p,h){return new R(Y,h,p.$l)},I=function(Y){return i.p(Y)+"s"},S=function(Y){return Y<0},E=function(Y){return S(Y)?Math.ceil(Y):Math.floor(Y)},W=function(Y){return Math.abs(Y)},A=function(Y,p){return Y?S(Y)?{negative:!0,format:""+W(Y)+p}:{negative:!1,format:""+Y+p}:{negative:!1,format:""}},R=(function(){function Y(h,u,x){var v=this;if(this.$d={},this.$l=x,h===void 0&&(this.$ms=0,this.parseFromMilliseconds()),u)return z(h*C[I(u)],this);if(typeof h=="number")return this.$ms=h,this.parseFromMilliseconds(),this;if(typeof h=="object")return Object.keys(h).forEach((function(o){v.$d[I(o)]=h[o]})),this.calMilliseconds(),this;if(typeof h=="string"){var k=h.match(b);if(k){var m=k.slice(2).map((function(o){return o!=null?Number(o):0}));return this.$d.years=m[0],this.$d.months=m[1],this.$d.weeks=m[2],this.$d.days=m[3],this.$d.hours=m[4],this.$d.minutes=m[5],this.$d.seconds=m[6],this.calMilliseconds(),this}}return this}var p=Y.prototype;return p.calMilliseconds=function(){var h=this;this.$ms=Object.keys(this.$d).reduce((function(u,x){return u+(h.$d[x]||0)*C[x]}),0)},p.parseFromMilliseconds=function(){var h=this.$ms;this.$d.years=E(h/M),h%=M,this.$d.months=E(h/$),h%=$,this.$d.days=E(h/T),h%=T,this.$d.hours=E(h/d),h%=d,this.$d.minutes=E(h/f),h%=f,this.$d.seconds=E(h/a),h%=a,this.$d.milliseconds=h},p.toISOString=function(){var h=A(this.$d.years,"Y"),u=A(this.$d.months,"M"),x=+this.$d.days||0;this.$d.weeks&&(x+=7*this.$d.weeks);var v=A(x,"D"),k=A(this.$d.hours,"H"),m=A(this.$d.minutes,"M"),o=this.$d.seconds||0;this.$d.milliseconds&&(o+=this.$d.milliseconds/1e3,o=Math.round(1e3*o)/1e3);var l=A(o,"S"),y=h.negative||u.negative||v.negative||k.negative||m.negative||l.negative,g=k.format||m.format||l.format?"T":"",w=(y?"-":"")+"P"+h.format+u.format+v.format+g+k.format+m.format+l.format;return w==="P"||w==="-P"?"P0D":w},p.toJSON=function(){return this.toISOString()},p.format=function(h){var u=h||"YYYY-MM-DDTHH:mm:ss",x={Y:this.$d.years,YY:i.s(this.$d.years,2,"0"),YYYY:i.s(this.$d.years,4,"0"),M:this.$d.months,MM:i.s(this.$d.months,2,"0"),D:this.$d.days,DD:i.s(this.$d.days,2,"0"),H:this.$d.hours,HH:i.s(this.$d.hours,2,"0"),m:this.$d.minutes,mm:i.s(this.$d.minutes,2,"0"),s:this.$d.seconds,ss:i.s(this.$d.seconds,2,"0"),SSS:i.s(this.$d.milliseconds,3,"0")};return u.replace(L,(function(v,k){return k||String(x[v])}))},p.as=function(h){return this.$ms/C[I(h)]},p.get=function(h){var u=this.$ms,x=I(h);return x==="milliseconds"?u%=1e3:u=x==="weeks"?E(u/C[x]):this.$d[x],u||0},p.add=function(h,u,x){var v;return v=u?h*C[I(u)]:D(h)?h.$ms:z(h,this).$ms,z(this.$ms+v*(x?-1:1),this)},p.subtract=function(h,u){return this.add(h,u,!0)},p.locale=function(h){var u=this.clone();return u.$l=h,u},p.clone=function(){return z(this.$ms,this)},p.humanize=function(h){return n().add(this.$ms,"ms").locale(this.$l).fromNow(!h)},p.valueOf=function(){return this.asMilliseconds()},p.milliseconds=function(){return this.get("milliseconds")},p.asMilliseconds=function(){return this.as("milliseconds")},p.seconds=function(){return this.get("seconds")},p.asSeconds=function(){return this.as("seconds")},p.minutes=function(){return this.get("minutes")},p.asMinutes=function(){return this.as("minutes")},p.hours=function(){return this.get("hours")},p.asHours=function(){return this.as("hours")},p.days=function(){return this.get("days")},p.asDays=function(){return this.as("days")},p.weeks=function(){return this.get("weeks")},p.asWeeks=function(){return this.as("weeks")},p.months=function(){return this.get("months")},p.asMonths=function(){return this.as("months")},p.years=function(){return this.get("years")},p.asYears=function(){return this.as("years")},Y})(),H=function(Y,p,h){return Y.add(p.years()*h,"y").add(p.months()*h,"M").add(p.days()*h,"d").add(p.hours()*h,"h").add(p.minutes()*h,"m").add(p.seconds()*h,"s").add(p.milliseconds()*h,"ms")};return function(Y,p,h){n=h,i=h().$utils(),h.duration=function(v,k){var m=h.locale();return z(v,{$l:m},k)},h.isDuration=D;var u=p.prototype.add,x=p.prototype.subtract;p.prototype.add=function(v,k){return D(v)?H(this,v,1):u.bind(this)(v,k)},p.prototype.subtract=function(v,k){return D(v)?H(this,v,-1):x.bind(this)(v,k)}}}))})(Mt)),Mt.exports}var Vr=Nr();const zr=At(Vr);var qt=(function(){var t=c(function(m,o,l,y){for(l=l||{},y=m.length;y--;l[m[y]]=o);return l},"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],i=[1,27],a=[1,28],f=[1,29],d=[1,30],T=[1,31],M=[1,32],$=[1,33],b=[1,34],L=[1,9],C=[1,10],D=[1,11],z=[1,12],I=[1,13],S=[1,14],E=[1,15],W=[1,16],A=[1,19],R=[1,20],H=[1,21],Y=[1,22],p=[1,23],h=[1,25],u=[1,35],x={trace:c(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:c(function(o,l,y,g,w,s,V){var r=s.length-1;switch(w){case 1:return s[r-1];case 2:this.$=[];break;case 3:s[r-1].push(s[r]),this.$=s[r-1];break;case 4:case 5:this.$=s[r];break;case 6:case 7:this.$=[];break;case 8:g.setWeekday("monday");break;case 9:g.setWeekday("tuesday");break;case 10:g.setWeekday("wednesday");break;case 11:g.setWeekday("thursday");break;case 12:g.setWeekday("friday");break;case 13:g.setWeekday("saturday");break;case 14:g.setWeekday("sunday");break;case 15:g.setWeekend("friday");break;case 16:g.setWeekend("saturday");break;case 17:g.setDateFormat(s[r].substr(11)),this.$=s[r].substr(11);break;case 18:g.enableInclusiveEndDates(),this.$=s[r].substr(18);break;case 19:g.TopAxis(),this.$=s[r].substr(8);break;case 20:g.setAxisFormat(s[r].substr(11)),this.$=s[r].substr(11);break;case 21:g.setTickInterval(s[r].substr(13)),this.$=s[r].substr(13);break;case 22:g.setExcludes(s[r].substr(9)),this.$=s[r].substr(9);break;case 23:g.setIncludes(s[r].substr(9)),this.$=s[r].substr(9);break;case 24:g.setTodayMarker(s[r].substr(12)),this.$=s[r].substr(12);break;case 27:g.setDiagramTitle(s[r].substr(6)),this.$=s[r].substr(6);break;case 28:this.$=s[r].trim(),g.setAccTitle(this.$);break;case 29:case 30:this.$=s[r].trim(),g.setAccDescription(this.$);break;case 31:g.addSection(s[r].substr(8)),this.$=s[r].substr(8);break;case 33:g.addTask(s[r-1],s[r]),this.$="task";break;case 34:this.$=s[r-1],g.setClickEvent(s[r-1],s[r],null);break;case 35:this.$=s[r-2],g.setClickEvent(s[r-2],s[r-1],s[r]);break;case 36:this.$=s[r-2],g.setClickEvent(s[r-2],s[r-1],null),g.setLink(s[r-2],s[r]);break;case 37:this.$=s[r-3],g.setClickEvent(s[r-3],s[r-2],s[r-1]),g.setLink(s[r-3],s[r]);break;case 38:this.$=s[r-2],g.setClickEvent(s[r-2],s[r],null),g.setLink(s[r-2],s[r-1]);break;case 39:this.$=s[r-3],g.setClickEvent(s[r-3],s[r-1],s[r]),g.setLink(s[r-3],s[r-2]);break;case 40:this.$=s[r-1],g.setLink(s[r-1],s[r]);break;case 41:case 47:this.$=s[r-1]+" "+s[r];break;case 42:case 43:case 45:this.$=s[r-2]+" "+s[r-1]+" "+s[r];break;case 44:case 46:this.$=s[r-3]+" "+s[r-2]+" "+s[r-1]+" "+s[r];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:i,14:a,15:f,16:d,17:T,18:M,19:18,20:$,21:b,22:L,23:C,24:D,25:z,26:I,27:S,28:E,29:W,30:A,31:R,33:H,35:Y,36:p,37:24,38:h,40:u},t(e,[2,7],{1:[2,1]}),t(e,[2,3]),{9:36,11:17,12:n,13:i,14:a,15:f,16:d,17:T,18:M,19:18,20:$,21:b,22:L,23:C,24:D,25:z,26:I,27:S,28:E,29:W,30:A,31:R,33:H,35:Y,36:p,37:24,38:h,40:u},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:c(function(o,l){if(l.recoverable)this.trace(o);else{var y=new Error(o);throw y.hash=l,y}},"parseError"),parse:c(function(o){var l=this,y=[0],g=[],w=[null],s=[],V=this.table,r="",_=0,N=0,P=2,O=1,X=s.slice.call(arguments,1),F=Object.create(this.lexer),Q={yy:{}};for(var nt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,nt)&&(Q.yy[nt]=this.yy[nt]);F.setInput(o,Q.yy),Q.yy.lexer=F,Q.yy.parser=this,typeof F.yylloc>"u"&&(F.yylloc={});var lt=F.yylloc;s.push(lt);var yt=F.options&&F.options.ranges;typeof Q.yy.parseError=="function"?this.parseError=Q.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function gt(U){y.length=y.length-2*U,w.length=w.length-U,s.length=s.length-U}c(gt,"popStack");function ut(){var U;return U=g.pop()||F.lex()||O,typeof U!="number"&&(U instanceof Array&&(g=U,U=g.pop()),U=l.symbols_[U]||U),U}c(ut,"lex");for(var B,Z,j,at,K={},st,J,se,Tt;;){if(Z=y[y.length-1],this.defaultActions[Z]?j=this.defaultActions[Z]:((B===null||typeof B>"u")&&(B=ut()),j=V[Z]&&V[Z][B]),typeof j>"u"||!j.length||!j[0]){var Lt="";Tt=[];for(st in V[Z])this.terminals_[st]&&st>P&&Tt.push("'"+this.terminals_[st]+"'");F.showPosition?Lt="Parse error on line "+(_+1)+`:
2
2
  `+F.showPosition()+`
3
3
  Expecting `+Tt.join(", ")+", got '"+(this.terminals_[B]||B)+"'":Lt="Parse error on line "+(_+1)+": Unexpected "+(B==O?"end of input":"'"+(this.terminals_[B]||B)+"'"),this.parseError(Lt,{text:F.match,token:this.terminals_[B]||B,line:F.yylineno,loc:lt,expected:Tt})}if(j[0]instanceof Array&&j.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Z+", token: "+B);switch(j[0]){case 1:y.push(B),w.push(F.yytext),s.push(F.yylloc),y.push(j[1]),B=null,N=F.yyleng,r=F.yytext,_=F.yylineno,lt=F.yylloc;break;case 2:if(J=this.productions_[j[1]][1],K.$=w[w.length-J],K._$={first_line:s[s.length-(J||1)].first_line,last_line:s[s.length-1].last_line,first_column:s[s.length-(J||1)].first_column,last_column:s[s.length-1].last_column},yt&&(K._$.range=[s[s.length-(J||1)].range[0],s[s.length-1].range[1]]),at=this.performAction.apply(K,[r,N,_,Q.yy,j[1],w,s].concat(X)),typeof at<"u")return at;J&&(y=y.slice(0,-1*J*2),w=w.slice(0,-1*J),s=s.slice(0,-1*J)),y.push(this.productions_[j[1]][0]),w.push(K.$),s.push(K._$),se=V[y[y.length-2]][y[y.length-1]],y.push(se);break;case 3:return!0}}return!0},"parse")},v=(function(){var m={EOF:1,parseError:c(function(l,y){if(this.yy.parser)this.yy.parser.parseError(l,y);else throw new Error(l)},"parseError"),setInput:c(function(o,l){return this.yy=l||this.yy||{},this._input=o,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:c(function(){var o=this._input[0];this.yytext+=o,this.yyleng++,this.offset++,this.match+=o,this.matched+=o;var l=o.match(/(?:\r\n?|\n).*/g);return l?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),o},"input"),unput:c(function(o){var l=o.length,y=o.split(/(?:\r\n?|\n)/g);this._input=o+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-l),this.offset-=l;var g=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),y.length-1&&(this.yylineno-=y.length-1);var w=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:y?(y.length===g.length?this.yylloc.first_column:0)+g[g.length-y.length].length-y[0].length:this.yylloc.first_column-l},this.options.ranges&&(this.yylloc.range=[w[0],w[0]+this.yyleng-l]),this.yyleng=this.yytext.length,this},"unput"),more:c(function(){return this._more=!0,this},"more"),reject:c(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:c(function(o){this.unput(this.match.slice(o))},"less"),pastInput:c(function(){var o=this.matched.substr(0,this.matched.length-this.match.length);return(o.length>20?"...":"")+o.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:c(function(){var o=this.match;return o.length<20&&(o+=this._input.substr(0,20-o.length)),(o.substr(0,20)+(o.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:c(function(){var o=this.pastInput(),l=new Array(o.length+1).join("-");return o+this.upcomingInput()+`
@@ -289,4 +289,4 @@ Expecting `+Tt.join(", ")+", got '"+(this.terminals_[B]||B)+"'":Lt="Parse error
289
289
  fill: ${t.titleColor||t.textColor};
290
290
  font-family: ${t.fontFamily};
291
291
  }
292
- `,"getStyles"),Yi=Ii,zi={parser:Rr,db:Di,renderer:Ei,styles:Yi};export{zi as diagram};
292
+ `,"getStyles"),Yi=Ii,Ri={parser:Rr,db:Di,renderer:Ei,styles:Yi};export{Ri as diagram};
@@ -0,0 +1,106 @@
1
+ import{p as he}from"./chunk-4BX2VUAB-BdC2_BbM.js";import{I as $e}from"./chunk-QZHKN3VN-DqF1rB9S.js";import{q as fe,p as ge,s as ue,g as ye,a as xe,b as me,_ as $,C as Q,l as k,d as pe,c as z,u as be,D as we,y as ke,k as L,E as ve,F as Ee,G as Ce}from"./MermaidRenderer-yw6DgH3b.js";import{p as Be}from"./cynefin-VYW2F7L2-CPNTSJVR.js";import"./vendor-markdown-BRX1CUPf.js";import"./vendor-syntax-DG6Vo7Ci.js";import"./purify.es-D6gMnemd.js";import"./isPrototype-DezZrpQP.js";import"./graphExportUtils-DrqBjeAI.js";var p={NORMAL:0,REVERSE:1,HIGHLIGHT:2,MERGE:3,CHERRY_PICK:4},Te=Ee.gitGraph,D=$(()=>ve({...Te,...Q().gitGraph}),"getConfig"),i=new $e(()=>{const e=D(),r=e.mainBranchName,t=e.mainBranchOrder;return{mainBranchName:r,commits:new Map,head:null,branchConfig:new Map([[r,{name:r,order:t}]]),branches:new Map([[r,null]]),currBranch:r,direction:"LR",seq:0,options:{}}});function K(){return Ce({length:7})}$(K,"getID");function ae(e,r){const t=Object.create(null);return e.reduce((o,s)=>{const d=r(s);return t[d]||(t[d]=!0,o.push(s)),o},[])}$(ae,"uniqBy");var Le=$(function(e){i.records.direction=e},"setDirection"),Me=$(function(e){k.debug("options str",e),e=e==null?void 0:e.trim(),e=e||"{}";try{i.records.options=JSON.parse(e)}catch(r){k.error("error while parsing gitGraph options",r.message)}},"setOptions"),Re=$(function(){return i.records.options},"getOptions"),Ie=$(function(e){let r=e.msg,t=e.id;const o=e.type;let s=e.tags;k.info("commit",r,t,o,s),k.debug("Entering commit:",r,t,o,s);const d=D();t=L.sanitizeText(t,d),r=L.sanitizeText(r,d),s=s==null?void 0:s.map(a=>L.sanitizeText(a,d));const n={id:t||i.records.seq+"-"+K(),message:r,seq:i.records.seq++,type:o??p.NORMAL,tags:s??[],parents:i.records.head==null?[]:[i.records.head.id],branch:i.records.currBranch};i.records.head=n,k.info("main branch",d.mainBranchName),i.records.commits.has(n.id)&&k.warn(`Commit ID ${n.id} already exists`),i.records.commits.set(n.id,n),i.records.branches.set(i.records.currBranch,n.id),k.debug("in pushCommit "+n.id)},"commit"),Oe=$(function(e){let r=e.name;const t=e.order;if(r=L.sanitizeText(r,D()),i.records.branches.has(r))throw new Error(`Trying to create an existing branch. (Help: Either use a new name if you want create a new branch or try using "checkout ${r}")`);i.records.branches.set(r,i.records.head!=null?i.records.head.id:null),i.records.branchConfig.set(r,{name:r,order:t}),ne(r),k.debug("in createBranch")},"branch"),_e=$(e=>{let r=e.branch,t=e.id;const o=e.type,s=e.tags,d=D();r=L.sanitizeText(r,d),t&&(t=L.sanitizeText(t,d));const n=i.records.branches.get(i.records.currBranch),a=i.records.branches.get(r),l=n?i.records.commits.get(n):void 0,h=a?i.records.commits.get(a):void 0;if(l&&h&&l.branch===r)throw new Error(`Cannot merge branch '${r}' into itself.`);if(i.records.currBranch===r){const c=new Error('Incorrect usage of "merge". Cannot merge a branch to itself');throw c.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["branch abc"]},c}if(l===void 0||!l){const c=new Error(`Incorrect usage of "merge". Current branch (${i.records.currBranch})has no commits`);throw c.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["commit"]},c}if(!i.records.branches.has(r)){const c=new Error('Incorrect usage of "merge". Branch to be merged ('+r+") does not exist");throw c.hash={text:`merge ${r}`,token:`merge ${r}`,expected:[`branch ${r}`]},c}if(h===void 0||!h){const c=new Error('Incorrect usage of "merge". Branch to be merged ('+r+") has no commits");throw c.hash={text:`merge ${r}`,token:`merge ${r}`,expected:['"commit"']},c}if(l===h){const c=new Error('Incorrect usage of "merge". Both branches have same head');throw c.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["branch abc"]},c}if(t&&i.records.commits.has(t)){const c=new Error('Incorrect usage of "merge". Commit with id:'+t+" already exists, use different custom id");throw c.hash={text:`merge ${r} ${t} ${o} ${s==null?void 0:s.join(" ")}`,token:`merge ${r} ${t} ${o} ${s==null?void 0:s.join(" ")}`,expected:[`merge ${r} ${t}_UNIQUE ${o} ${s==null?void 0:s.join(" ")}`]},c}const g=a||"",f={id:t||`${i.records.seq}-${K()}`,message:`merged branch ${r} 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??[]};i.records.head=f,i.records.commits.set(f.id,f),i.records.branches.set(i.records.currBranch,f.id),k.debug(i.records.branches),k.debug("in mergeBranch")},"merge"),Ge=$(function(e){let r=e.id,t=e.targetId,o=e.tags,s=e.parent;k.debug("Entering cherryPick:",r,t,o);const d=D();if(r=L.sanitizeText(r,d),t=L.sanitizeText(t,d),o=o==null?void 0:o.map(l=>L.sanitizeText(l,d)),s=L.sanitizeText(s,d),!r||!i.records.commits.has(r)){const l=new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');throw l.hash={text:`cherryPick ${r} ${t}`,token:`cherryPick ${r} ${t}`,expected:["cherry-pick abc"]},l}const n=i.records.commits.get(r);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 ${r} ${t}`,token:`cherryPick ${r} ${t}`,expected:["cherry-pick abc"]},f}const l=i.records.branches.get(i.records.currBranch);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 ${r} ${t}`,token:`cherryPick ${r} ${t}`,expected:["cherry-pick abc"]},f}const h=i.records.commits.get(l);if(h===void 0||!h){const f=new Error(`Incorrect usage of "cherry-pick". Current branch (${i.records.currBranch})has no commits`);throw f.hash={text:`cherryPick ${r} ${t}`,token:`cherryPick ${r} ${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),k.debug(i.records.branches),k.debug("in cherryPick")}},"cherryPick"),ne=$(function(e){if(e=L.sanitizeText(e,D()),i.records.branches.has(e)){i.records.currBranch=e;const r=i.records.branches.get(i.records.currBranch);r===void 0||!r?i.records.head=null:i.records.head=i.records.commits.get(r)??null}else{const r=new Error(`Trying to checkout branch which is not yet created. (Help try using "branch ${e}")`);throw r.hash={text:`checkout ${e}`,token:`checkout ${e}`,expected:[`branch ${e}`]},r}},"checkout");function X(e,r,t){const o=e.indexOf(r);o===-1?e.push(t):e.splice(o,1,t)}$(X,"upsert");function Z(e){const r=e.reduce((s,d)=>s.seq>d.seq?s:d,e[0]);let t="";e.forEach(function(s){s===r?t+=" *":t+=" |"});const o=[t,r.id,r.seq];for(const s in i.records.branches)i.records.branches.get(s)===r.id&&o.push(s);if(k.debug(o.join(" ")),r.parents&&r.parents.length==2&&r.parents[0]&&r.parents[1]){const s=i.records.commits.get(r.parents[0]);X(e,r,s),r.parents[1]&&e.push(i.records.commits.get(r.parents[1]))}else{if(r.parents.length==0)return;if(r.parents[0]){const s=i.records.commits.get(r.parents[0]);X(e,r,s)}}e=ae(e,s=>s.id),Z(e)}$(Z,"prettyPrintCommitHistory");var He=$(function(){k.debug(i.records.commits);const e=se()[0];Z([e])},"prettyPrint"),Se=$(function(){i.reset(),ke()},"clear"),Ae=$(function(){return[...i.records.branchConfig.values()].map((r,t)=>r.order!==null&&r.order!==void 0?r:{...r,order:parseFloat(`0.${t}`)}).sort((r,t)=>(r.order??0)-(t.order??0)).map(({name:r})=>({name:r}))},"getBranchesAsObjArray"),De=$(function(){return i.records.branches},"getBranches"),qe=$(function(){return i.records.commits},"getCommits"),se=$(function(){const e=[...i.records.commits.values()];return e.forEach(function(r){k.debug(r.id)}),e.sort((r,t)=>r.seq-t.seq),e},"getCommitsArray"),Pe=$(function(){return i.records.currBranch},"getCurrentBranch"),We=$(function(){return i.records.direction},"getDirection"),Ne=$(function(){return i.records.head},"getHead"),oe={commitType:p,getConfig:D,setDirection:Le,setOptions:Me,getOptions:Re,commit:Ie,branch:Oe,merge:_e,cherryPick:Ge,checkout:ne,prettyPrint:He,clear:Se,getBranchesAsObjArray:Ae,getBranches:De,getCommits:qe,getCommitsArray:se,getCurrentBranch:Pe,getDirection:We,getHead:Ne,setAccTitle:me,getAccTitle:xe,getAccDescription:ye,setAccDescription:ue,setDiagramTitle:ge,getDiagramTitle:fe},Fe=$((e,r)=>{he(e,r),e.dir&&r.setDirection(e.dir);for(const t of e.statements)ze(t,r)},"populate"),ze=$((e,r)=>{const o={Commit:$(s=>r.commit(Ye(s)),"Commit"),Branch:$(s=>r.branch(je(s)),"Branch"),Merge:$(s=>r.merge(Ue(s)),"Merge"),Checkout:$(s=>r.checkout(Ke(s)),"Checkout"),CherryPicking:$(s=>r.cherryPick(Ve(s)),"CherryPicking")}[e.$type];o?o(e):k.error(`Unknown statement type: ${e.$type}`)},"parseStatement"),Ye=$(e=>({id:e.id,msg:e.message??"",type:e.type!==void 0?p[e.type]:p.NORMAL,tags:e.tags??void 0}),"parseCommit"),je=$(e=>({name:e.name,order:e.order??0}),"parseBranch"),Ue=$(e=>({branch:e.branch,id:e.id??"",type:e.type!==void 0?p[e.type]:void 0,tags:e.tags??void 0}),"parseMerge"),Ke=$(e=>e.branch,"parseCheckout"),Ve=$(e=>{var t;return{id:e.id,targetId:"",tags:((t=e.tags)==null?void 0:t.length)===0?void 0:e.tags,parent:e.parent}},"parseCherryPicking"),Xe={parse:$(async e=>{const r=await Be("gitGraph",e);k.debug(r),Fe(r,oe)},"parse")},G=10,H=40,M=4,I=2,S=8,V=new Set(["redux","redux-dark","redux-color","redux-dark-color"]),J=12,ee=new Set(["redux-color","redux-dark-color"]),Je=new Set(["dark","redux-dark","redux-dark-color","neo-dark"]),A=$((e,r,t=!1)=>t&&e>0?(e-1)%(r-1)+1:e%r,"calcColorIndex"),B=new Map,T=new Map,j=30,N=new Map,U=[],O=0,y="LR",Qe=$(()=>{B.clear(),T.clear(),N.clear(),O=0,U=[],y="LR"},"clear"),ce=$(e=>{const r=document.createElementNS("http://www.w3.org/2000/svg","text");return(typeof e=="string"?e.split(/\\n|\n|<br\s*\/?>/gi):e).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(),r.appendChild(s)}),r},"drawText"),ie=$(e=>{let r,t,o;return y==="BT"?(t=$((s,d)=>s<=d,"comparisonFunc"),o=1/0):(t=$((s,d)=>s>=d,"comparisonFunc"),o=0),e.forEach(s=>{var n,a;const d=y==="TB"||y=="BT"?(n=T.get(s))==null?void 0:n.y:(a=T.get(s))==null?void 0:a.x;d!==void 0&&t(d,o)&&(r=s,o=d)}),r},"findClosestParent"),Ze=$(e=>{let r="",t=1/0;return e.forEach(o=>{const s=T.get(o).y;s<=t&&(r=o,t=s)}),r||void 0},"findClosestParentBT"),er=$((e,r,t)=>{let o=t,s=t;const d=[];e.forEach(n=>{const a=r.get(n);if(!a)throw new Error(`Commit not found for key ${n}`);a.parents.length?(o=tr(a),s=Math.max(o,s)):d.push(a),ar(a,o)}),o=s,d.forEach(n=>{nr(n,o,t)}),e.forEach(n=>{const a=r.get(n);if(a!=null&&a.parents.length){const l=Ze(a.parents);o=T.get(l).y-H,o<=s&&(s=o);const h=B.get(a.branch).pos,g=o-G;T.set(a.id,{x:h,y:g})}})},"setParallelBTPos"),rr=$(e=>{var o;const r=ie(e.parents.filter(s=>s!==null));if(!r)throw new Error(`Closest parent not found for commit ${e.id}`);const t=(o=T.get(r))==null?void 0:o.y;if(t===void 0)throw new Error(`Closest parent position not found for commit ${e.id}`);return t},"findClosestParentPos"),tr=$(e=>rr(e)+H,"calculateCommitPosition"),ar=$((e,r)=>{const t=B.get(e.branch);if(!t)throw new Error(`Branch not found for commit ${e.id}`);const o=t.pos,s=r+G;return T.set(e.id,{x:o,y:s}),{x:o,y:s}},"setCommitPosition"),nr=$((e,r,t)=>{const o=B.get(e.branch);if(!o)throw new Error(`Branch not found for commit ${e.id}`);const s=r+t,d=o.pos;T.set(e.id,{x:d,y:s})},"setRootPosition"),sr=$((e,r,t,o,s,d)=>{const{theme:n}=z(),a=V.has(n??""),l=ee.has(n??""),h=Je.has(n??"");if(d===p.HIGHLIGHT)e.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 ${r.id} commit-highlight${A(s,S,l)} ${o}-outer`),e.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 ${r.id} commit${A(s,S,l)} ${o}-inner`);else if(d===p.CHERRY_PICK)e.append("circle").attr("cx",t.x).attr("cy",t.y).attr("r",a?7:10).attr("class",`commit ${r.id} ${o}`),e.append("circle").attr("cx",t.x-3).attr("cy",t.y+2).attr("r",a?2.5:2.75).attr("fill",h?"#000000":"#fff").attr("class",`commit ${r.id} ${o}`),e.append("circle").attr("cx",t.x+3).attr("cy",t.y+2).attr("r",a?2.5:2.75).attr("fill",h?"#000000":"#fff").attr("class",`commit ${r.id} ${o}`),e.append("line").attr("x1",t.x+3).attr("y1",t.y+1).attr("x2",t.x).attr("y2",t.y-5).attr("stroke",h?"#000000":"#fff").attr("class",`commit ${r.id} ${o}`),e.append("line").attr("x1",t.x-3).attr("y1",t.y+1).attr("x2",t.x).attr("y2",t.y-5).attr("stroke",h?"#000000":"#fff").attr("class",`commit ${r.id} ${o}`);else{const g=e.append("circle");if(g.attr("cx",t.x),g.attr("cy",t.y),g.attr("r",a?7:10),g.attr("class",`commit ${r.id} commit${A(s,S,l)}`),d===p.MERGE){const f=e.append("circle");f.attr("cx",t.x),f.attr("cy",t.y),f.attr("r",a?5:6),f.attr("class",`commit ${o} ${r.id} commit${A(s,S,l)}`)}if(d===p.REVERSE){const f=e.append("path"),c=a?4:5;f.attr("d",`M ${t.x-c},${t.y-c}L${t.x+c},${t.y+c}M${t.x-c},${t.y+c}L${t.x+c},${t.y-c}`).attr("class",`commit ${o} ${r.id} commit${A(s,S,l)}`)}}},"drawCommitBullet"),or=$((e,r,t,o,s)=>{var d;if(r.type!==p.CHERRY_PICK&&(r.customId&&r.type===p.MERGE||r.type!==p.MERGE)&&s.showCommitLabel){const n=e.append("g"),a=n.insert("rect").attr("class","commit-label-bkg"),l=n.append("text").attr("x",o).attr("y",t.y+25).attr("class","commit-label").text(r.id),h=(d=l.node())==null?void 0:d.getBBox();if(h&&(a.attr("x",t.posWithOffset-h.width/2-I).attr("y",t.y+13.5).attr("width",h.width+2*I).attr("height",h.height+2*I),y==="TB"||y==="BT"?(a.attr("x",t.x-(h.width+4*M+5)).attr("y",t.y-12),l.attr("x",t.x-(h.width+4*M)).attr("y",t.y+h.height-12)):l.attr("x",t.posWithOffset-h.width/2),s.rotateCommitLabel))if(y==="TB"||y==="BT")l.attr("transform","rotate(-45, "+t.x+", "+t.y+")"),a.attr("transform","rotate(-45, "+t.x+", "+t.y+")");else{const g=-7.5-(h.width+10)/25*9.5,f=10+h.width/25*8.5;n.attr("transform","translate("+g+", "+f+") rotate(-45, "+o+", "+t.y+")")}}},"drawCommitLabel"),cr=$((e,r,t,o)=>{var s;if(r.tags.length>0){let d=0,n=0,a=0;const l=[];for(const h of r.tags.reverse()){const g=e.insert("polygon"),f=e.append("circle"),c=e.append("text").attr("y",t.y-16-d).attr("class","tag-label").text(h),x=(s=c.node())==null?void 0:s.getBBox();if(!x)throw new Error("Tag bbox not found");n=Math.max(n,x.width),a=Math.max(a,x.height),c.attr("x",t.posWithOffset-x.width/2),l.push({tag:c,hole:f,rect:g,yOffset:d}),d+=20}for(const{tag:h,hole:g,rect:f,yOffset:c}of l){const x=a/2,u=t.y-19.2-c;if(f.attr("class","tag-label-bkg").attr("points",`
2
+ ${o-n/2-M/2},${u+I}
3
+ ${o-n/2-M/2},${u-I}
4
+ ${t.posWithOffset-n/2-M},${u-x-I}
5
+ ${t.posWithOffset+n/2+M},${u-x-I}
6
+ ${t.posWithOffset+n/2+M},${u+x+I}
7
+ ${t.posWithOffset-n/2-M},${u+x+I}`),g.attr("cy",u).attr("cx",o-n/2+M/2).attr("r",1.5).attr("class","tag-hole"),y==="TB"||y==="BT"){const m=o+c;f.attr("class","tag-label-bkg").attr("points",`
8
+ ${t.x},${m+2}
9
+ ${t.x},${m-2}
10
+ ${t.x+G},${m-x-2}
11
+ ${t.x+G+n+4},${m-x-2}
12
+ ${t.x+G+n+4},${m+x+2}
13
+ ${t.x+G},${m+x+2}`).attr("transform","translate(12,12) rotate(45, "+t.x+","+o+")"),g.attr("cx",t.x+M/2).attr("cy",m).attr("transform","translate(12,12) rotate(45, "+t.x+","+o+")"),h.attr("x",t.x+5).attr("y",m+3).attr("transform","translate(14,14) rotate(45, "+t.x+","+o+")")}}}},"drawCommitTags"),ir=$(e=>{switch(e.customType??e.type){case p.NORMAL:return"commit-normal";case p.REVERSE:return"commit-reverse";case p.HIGHLIGHT:return"commit-highlight";case p.MERGE:return"commit-merge";case p.CHERRY_PICK:return"commit-cherry-pick";default:return"commit-normal"}},"getCommitClassType"),dr=$((e,r,t,o)=>{const s={x:0,y:0};if(e.parents.length>0){const d=ie(e.parents);if(d){const n=o.get(d)??s;return r==="TB"?n.y+H:r==="BT"?(o.get(e.id)??s).y-H:n.x+H}}else return r==="TB"?j:r==="BT"?(o.get(e.id)??s).y-H:0;return 0},"calculatePosition"),lr=$((e,r,t)=>{var l,h;const o=y==="BT"&&t?r:r+G,s=(l=B.get(e.branch))==null?void 0:l.pos,d=y==="TB"||y==="BT"?(h=B.get(e.branch))==null?void 0:h.pos:o;if(d===void 0||s===void 0)throw new Error(`Position were undefined for commit ${e.id}`);const n=V.has(z().theme??""),a=y==="TB"||y==="BT"?o:s+(n?J/2+1:-2);return{x:d,y:a,posWithOffset:o}},"getCommitPosition"),te=$((e,r,t,o)=>{const s=e.append("g").attr("class","commit-bullets"),d=e.append("g").attr("class","commit-labels");let n=y==="TB"||y==="BT"?j:0;const a=[...r.keys()],l=o.parallelCommits??!1,h=$((f,c)=>{var m,E;const x=(m=r.get(f))==null?void 0:m.seq,u=(E=r.get(c))==null?void 0:E.seq;return x!==void 0&&u!==void 0?x-u:0},"sortKeys");let g=a.sort(h);y==="BT"&&(l&&er(g,r,n),g=g.reverse()),g.forEach(f=>{var u;const c=r.get(f);if(!c)throw new Error(`Commit not found for key ${f}`);l&&(n=dr(c,y,n,T));const x=lr(c,n,l);if(t){const m=ir(c),E=c.customType??c.type,b=((u=B.get(c.branch))==null?void 0:u.index)??0;sr(s,c,x,m,b,E),or(d,c,x,n,o),cr(d,c,x,n)}y==="TB"||y==="BT"?T.set(c.id,{x:x.x,y:x.posWithOffset}):T.set(c.id,{x:x.posWithOffset,y:x.y}),n=y==="BT"&&l?n+H:n+H+G,n>O&&(O=n)})},"drawCommits"),hr=$((e,r,t,o,s)=>{const n=(y==="TB"||y==="BT"?t.x<o.x:t.y<o.y)?r.branch:e.branch,a=$(h=>h.branch===n,"isOnBranchToGetCurve"),l=$(h=>h.seq>e.seq&&h.seq<r.seq,"isBetweenCommits");return[...s.values()].some(h=>l(h)&&a(h))},"shouldRerouteArrow"),F=$((e,r,t=0)=>{const o=e+Math.abs(e-r)/2;if(t>5)return o;if(U.every(n=>Math.abs(n-o)>=10))return U.push(o),o;const d=Math.abs(e-r);return F(e,r-d/5,t+1)},"findLane"),$r=$((e,r,t,o)=>{var m,E,b,q,_;const{theme:s}=z(),d=ee.has(s??""),n=T.get(r.id),a=T.get(t.id);if(n===void 0||a===void 0)throw new Error(`Commit positions not found for commits ${r.id} and ${t.id}`);const l=hr(r,t,n,a,o);let h="",g="",f=0,c=0,x=(m=B.get(t.branch))==null?void 0:m.index;t.type===p.MERGE&&r.id!==t.parents[0]&&(x=(E=B.get(r.branch))==null?void 0:E.index);let u;if(l){h="A 10 10, 0, 0, 0,",g="A 10 10, 0, 0, 1,",f=10,c=10;const v=n.y<a.y?F(n.y,a.y):F(a.y,n.y),w=n.x<a.x?F(n.x,a.x):F(a.x,n.x);y==="TB"?n.x<a.x?u=`M ${n.x} ${n.y} L ${w-f} ${n.y} ${g} ${w} ${n.y+c} L ${w} ${a.y-f} ${h} ${w+c} ${a.y} L ${a.x} ${a.y}`:(x=(b=B.get(r.branch))==null?void 0:b.index,u=`M ${n.x} ${n.y} L ${w+f} ${n.y} ${h} ${w} ${n.y+c} L ${w} ${a.y-f} ${g} ${w-c} ${a.y} L ${a.x} ${a.y}`):y==="BT"?n.x<a.x?u=`M ${n.x} ${n.y} L ${w-f} ${n.y} ${h} ${w} ${n.y-c} L ${w} ${a.y+f} ${g} ${w+c} ${a.y} L ${a.x} ${a.y}`:(x=(q=B.get(r.branch))==null?void 0:q.index,u=`M ${n.x} ${n.y} L ${w+f} ${n.y} ${g} ${w} ${n.y-c} L ${w} ${a.y+f} ${h} ${w-c} ${a.y} L ${a.x} ${a.y}`):n.y<a.y?u=`M ${n.x} ${n.y} L ${n.x} ${v-f} ${h} ${n.x+c} ${v} L ${a.x-f} ${v} ${g} ${a.x} ${v+c} L ${a.x} ${a.y}`:(x=(_=B.get(r.branch))==null?void 0:_.index,u=`M ${n.x} ${n.y} L ${n.x} ${v+f} ${g} ${n.x+c} ${v} L ${a.x-f} ${v} ${h} ${a.x} ${v-c} L ${a.x} ${a.y}`)}else h="A 20 20, 0, 0, 0,",g="A 20 20, 0, 0, 1,",f=20,c=20,y==="TB"?(n.x<a.x&&(t.type===p.MERGE&&r.id!==t.parents[0]?u=`M ${n.x} ${n.y} L ${n.x} ${a.y-f} ${h} ${n.x+c} ${a.y} L ${a.x} ${a.y}`:u=`M ${n.x} ${n.y} L ${a.x-f} ${n.y} ${g} ${a.x} ${n.y+c} L ${a.x} ${a.y}`),n.x>a.x&&(h="A 20 20, 0, 0, 0,",g="A 20 20, 0, 0, 1,",f=20,c=20,t.type===p.MERGE&&r.id!==t.parents[0]?u=`M ${n.x} ${n.y} L ${n.x} ${a.y-f} ${g} ${n.x-c} ${a.y} L ${a.x} ${a.y}`:u=`M ${n.x} ${n.y} L ${a.x+f} ${n.y} ${h} ${a.x} ${n.y+c} L ${a.x} ${a.y}`),n.x===a.x&&(u=`M ${n.x} ${n.y} L ${a.x} ${a.y}`)):y==="BT"?(n.x<a.x&&(t.type===p.MERGE&&r.id!==t.parents[0]?u=`M ${n.x} ${n.y} L ${n.x} ${a.y+f} ${g} ${n.x+c} ${a.y} L ${a.x} ${a.y}`:u=`M ${n.x} ${n.y} L ${a.x-f} ${n.y} ${h} ${a.x} ${n.y-c} L ${a.x} ${a.y}`),n.x>a.x&&(h="A 20 20, 0, 0, 0,",g="A 20 20, 0, 0, 1,",f=20,c=20,t.type===p.MERGE&&r.id!==t.parents[0]?u=`M ${n.x} ${n.y} L ${n.x} ${a.y+f} ${h} ${n.x-c} ${a.y} L ${a.x} ${a.y}`:u=`M ${n.x} ${n.y} L ${a.x+f} ${n.y} ${g} ${a.x} ${n.y-c} L ${a.x} ${a.y}`),n.x===a.x&&(u=`M ${n.x} ${n.y} L ${a.x} ${a.y}`)):(n.y<a.y&&(t.type===p.MERGE&&r.id!==t.parents[0]?u=`M ${n.x} ${n.y} L ${a.x-f} ${n.y} ${g} ${a.x} ${n.y+c} L ${a.x} ${a.y}`:u=`M ${n.x} ${n.y} L ${n.x} ${a.y-f} ${h} ${n.x+c} ${a.y} L ${a.x} ${a.y}`),n.y>a.y&&(t.type===p.MERGE&&r.id!==t.parents[0]?u=`M ${n.x} ${n.y} L ${a.x-f} ${n.y} ${h} ${a.x} ${n.y-c} L ${a.x} ${a.y}`:u=`M ${n.x} ${n.y} L ${n.x} ${a.y+f} ${g} ${n.x+c} ${a.y} L ${a.x} ${a.y}`),n.y===a.y&&(u=`M ${n.x} ${n.y} L ${a.x} ${a.y}`));if(u===void 0)throw new Error("Line definition not found");e.append("path").attr("d",u).attr("class","arrow arrow"+A(x,S,d))},"drawArrow"),fr=$((e,r)=>{const t=e.append("g").attr("class","commit-arrows");[...r.keys()].forEach(o=>{const s=r.get(o);s.parents&&s.parents.length>0&&s.parents.forEach(d=>{$r(t,r.get(d),s,r)})})},"drawArrows"),gr=$((e,r,t,o)=>{const{look:s,theme:d,themeVariables:n}=z(),{dropShadow:a,THEME_COLOR_LIMIT:l}=n,h=V.has(d??""),g=ee.has(d??""),f=e.append("g");r.forEach((c,x)=>{var re;const u=A(x,h?l:S,g),m=(re=B.get(c.name))==null?void 0:re.pos;if(m===void 0)throw new Error(`Position not found for branch ${c.name}`);const E=y==="TB"||y==="BT"?m:h?m+J/2+1:m-2,b=f.append("line");b.attr("x1",0),b.attr("y1",E),b.attr("x2",O),b.attr("y2",E),b.attr("class","branch branch"+u),y==="TB"?(b.attr("y1",j),b.attr("x1",m),b.attr("y2",O),b.attr("x2",m)):y==="BT"&&(b.attr("y1",O),b.attr("x1",m),b.attr("y2",j),b.attr("x2",m)),U.push(E);const q=c.name,_=ce(q),v=f.insert("rect"),R=f.insert("g").attr("class","branchLabel").insert("g").attr("class","label branch-label"+u);R.node().appendChild(_);const C=_.getBBox(),W=h?0:4,Y=h?16:0,P=h?J:0;s==="neo"&&v.attr("data-look","neo"),v.attr("class","branchLabelBkg label"+u).attr("style",s==="neo"?`filter:${h?`url(#${o}-drop-shadow)`:a}`:"").attr("rx",W).attr("ry",W).attr("x",-C.width-4-(t.rotateCommitLabel===!0?30:0)).attr("y",-C.height/2+10).attr("width",C.width+18+Y).attr("height",C.height+4+P),R.attr("transform","translate("+(-C.width-14-(t.rotateCommitLabel===!0?30:0)+Y/2)+", "+(E-C.height/2-2)+")"),y==="TB"?(v.attr("x",m-C.width/2-10).attr("y",0),R.attr("transform","translate("+(m-C.width/2-5)+", 0)"),h&&(v.attr("transform",`translate(${-Y/2-3}, ${-P-10})`),R.attr("transform","translate("+(m-C.width/2-5)+", "+(-P*2+7)+")"))):y==="BT"?(v.attr("x",m-C.width/2-10).attr("y",O),R.attr("transform","translate("+(m-C.width/2-5)+", "+O+")"),h&&(v.attr("transform",`translate(${-Y/2-3}, ${P+10})`),R.attr("transform","translate("+(m-C.width/2-5)+", "+(O+P*2+4)+")"))):v.attr("transform","translate(-19, "+(E-12-P/2)+")")})},"drawBranches"),ur=$(function(e,r,t,o,s){return B.set(e,{pos:r,index:t}),r+=50+(s?40:0)+(y==="TB"||y==="BT"?o.width/2:0),r},"setBranchPosition"),yr=$(function(e,r,t,o){Qe(),k.debug("in gitgraph renderer",e+`
14
+ `,"id:",r,t);const s=o.db;if(!s.getConfig){k.error("getConfig method is not available on db");return}const d=s.getConfig(),n=d.rotateCommitLabel??!1;N=s.getCommits();const a=s.getBranchesAsObjArray();y=s.getDirection();const l=pe(`[id="${r}"]`),{look:h,theme:g,themeVariables:f}=z(),{useGradient:c,gradientStart:x,gradientStop:u,filterColor:m}=f;if(c){const b=l.append("defs").append("linearGradient").attr("id",r+"-gradient").attr("gradientUnits","objectBoundingBox").attr("x1","0%").attr("y1","0%").attr("x2","100%").attr("y2","0%");b.append("stop").attr("offset","0%").attr("stop-color",x).attr("stop-opacity",1),b.append("stop").attr("offset","100%").attr("stop-color",u).attr("stop-opacity",1)}h==="neo"&&V.has(g??"")&&l.append("defs").append("filter").attr("id",r+"-drop-shadow").attr("height","130%").attr("width","130%").append("feDropShadow").attr("dx","4").attr("dy","4").attr("stdDeviation",0).attr("flood-opacity","0.06").attr("flood-color",m);let E=0;a.forEach((b,q)=>{var W;const _=ce(b.name),v=l.append("g"),w=v.insert("g").attr("class","branchLabel"),R=w.insert("g").attr("class","label branch-label");(W=R.node())==null||W.appendChild(_);const C=_.getBBox();E=ur(b.name,E,q,C,n),R.remove(),w.remove(),v.remove()}),te(l,N,!1,d),d.showBranches&&gr(l,a,d,r),fr(l,N),te(l,N,!0,d),be.insertTitle(l,"gitTitleText",d.titleTopMargin??0,s.getDiagramTitle()),we(void 0,l,d.diagramPadding,d.useMaxWidth)},"draw"),xr={draw:yr},de=8,le=new Set(["redux","redux-dark","redux-color","redux-dark-color"]),mr=new Set(["redux-color","redux-dark-color"]),pr=new Set(["neo","neo-dark"]),br=new Set(["dark","redux-dark","redux-dark-color","neo-dark"]),wr=new Set(["redux","redux-dark","redux-color","redux-dark-color","neo","neo-dark"]),kr=$(e=>{const{svgId:r}=e;let t="";if(e.useGradient&&r)for(let o=0;o<e.THEME_COLOR_LIMIT;o++)t+=`
15
+ .label${o} { fill: ${e.mainBkg}; stroke: url(${r}-gradient); stroke-width: ${e.strokeWidth};}
16
+ `;return t},"genGitGraphGradient"),vr=$(e=>{const r=Q(),{theme:t,themeVariables:o}=r,{borderColorArray:s}=o,d=le.has(t);if(pr.has(t)){let n="";for(let a=0;a<e.THEME_COLOR_LIMIT;a++)if(a===0)n+=`
17
+ .branch-label${a} { fill: ${e.nodeBorder};}
18
+ .commit${a} { stroke: ${e.nodeBorder}; }
19
+ .commit-highlight${a} { stroke: ${e.nodeBorder}; fill: ${e.nodeBorder}; }
20
+ .arrow${a} { stroke: ${e.nodeBorder}; }
21
+ .commit-bullets { fill: ${e.nodeBorder}; }
22
+ .commit-cherry-pick${a} { stroke: ${e.nodeBorder}; }
23
+ ${kr(e)}`;else{const l=a%de;n+=`
24
+ .branch-label${a} { fill: ${e["gitBranchLabel"+l]}; }
25
+ .commit${a} { stroke: ${e["git"+l]}; fill: ${e["git"+l]}; }
26
+ .commit-highlight${a} { stroke: ${e["gitInv"+l]}; fill: ${e["gitInv"+l]}; }
27
+ .arrow${a} { stroke: ${e["git"+l]}; }
28
+ `}return n}else if(mr.has(t)){let n="";for(let a=0;a<e.THEME_COLOR_LIMIT;a++)if(a===0)n+=`
29
+ .branch-label${a} { fill: ${e.nodeBorder}; ${d?`font-weight:${e.noteFontWeight}`:""} }
30
+ .commit${a} { stroke: ${e.nodeBorder}; }
31
+ .commit-highlight${a} { stroke: ${e.nodeBorder}; fill: ${e.mainBkg}; }
32
+ .label${a} { fill: ${e.mainBkg}; stroke: ${e.nodeBorder}; stroke-width: ${e.strokeWidth}; ${d?`font-weight:${e.noteFontWeight}`:""} }
33
+ .arrow${a} { stroke: ${e.nodeBorder}; }
34
+ .commit-bullets { fill: ${e.nodeBorder}; }
35
+ `;else{const l=a%s.length;n+=`
36
+ .branch-label${a} { fill: ${e.nodeBorder}; ${d?`font-weight:${e.noteFontWeight}`:""} }
37
+ .commit${a} { stroke: ${s[l]}; fill: ${s[l]}; }
38
+ .commit-highlight${a} { stroke: ${s[l]}; fill: ${s[l]}; }
39
+ .label${a} { fill: ${br.has(t)?e.mainBkg:s[l]}; stroke: ${s[l]}; stroke-width: ${e.strokeWidth}; }
40
+ .arrow${a} { stroke: ${s[l]}; }
41
+ `}return n}else{let n="";for(let a=0;a<e.THEME_COLOR_LIMIT;a++)n+=`
42
+ .branch-label${a} { fill: ${e.nodeBorder}; ${d?`font-weight:${e.noteFontWeight}`:""} }
43
+ .commit${a} { stroke: ${e.nodeBorder}; }
44
+ .commit-highlight${a} { stroke: ${e.nodeBorder}; fill: ${e.nodeBorder}; }
45
+ .label${a} { fill: ${e.mainBkg}; stroke: ${e.nodeBorder}; stroke-width: ${e.strokeWidth}; ${d?`font-weight:${e.noteFontWeight}`:""}}
46
+ .arrow${a} { stroke: ${e.nodeBorder}; }
47
+ .commit-bullets { fill: ${e.nodeBorder}; }
48
+ .commit-cherry-pick${a} { stroke: ${e.nodeBorder}; }
49
+ `;return n}},"genColor"),Er=$(e=>`${Array.from({length:e.THEME_COLOR_LIMIT},(r,t)=>t).map(r=>{const t=r%de;return`
50
+ .branch-label${r} { fill: ${e["gitBranchLabel"+t]}; }
51
+ .commit${r} { stroke: ${e["git"+t]}; fill: ${e["git"+t]}; }
52
+ .commit-highlight${r} { stroke: ${e["gitInv"+t]}; fill: ${e["gitInv"+t]}; }
53
+ .label${r} { fill: ${e["git"+t]}; }
54
+ .arrow${r} { stroke: ${e["git"+t]}; }
55
+ `}).join(`
56
+ `)}`,"normalTheme"),Cr=$(e=>{const r=Q(),{theme:t}=r,o=wr.has(t);return`
57
+ .commit-id,
58
+ .commit-msg,
59
+ .branch-label {
60
+ fill: lightgrey;
61
+ color: lightgrey;
62
+ font-family: 'trebuchet ms', verdana, arial, sans-serif;
63
+ font-family: var(--mermaid-font-family);
64
+ }
65
+
66
+ ${o?vr(e):Er(e)}
67
+
68
+ .branch {
69
+ stroke-width: ${e.strokeWidth};
70
+ stroke: ${e.commitLineColor??e.lineColor};
71
+ stroke-dasharray: ${o?"4 2":"2"};
72
+ }
73
+ .commit-label { font-size: ${e.commitLabelFontSize}; fill: ${o?e.nodeBorder:e.commitLabelColor}; ${o?`font-weight:${e.noteFontWeight};`:""}}
74
+ .commit-label-bkg { font-size: ${e.commitLabelFontSize}; fill: ${o?"transparent":e.commitLabelBackground}; opacity: ${o?"":.5}; }
75
+ .tag-label { font-size: ${e.tagLabelFontSize}; fill: ${e.tagLabelColor};}
76
+ .tag-label-bkg { fill: ${o?e.mainBkg:e.tagLabelBackground}; stroke: ${o?e.nodeBorder:e.tagLabelBorder}; ${o?`filter:${e.dropShadow}`:""} }
77
+ .tag-hole { fill: ${e.textColor}; }
78
+
79
+ .commit-merge {
80
+ stroke: ${o?e.mainBkg:e.primaryColor};
81
+ fill: ${o?e.mainBkg:e.primaryColor};
82
+ }
83
+ .commit-reverse {
84
+ stroke: ${o?e.mainBkg:e.primaryColor};
85
+ fill: ${o?e.mainBkg:e.primaryColor};
86
+ stroke-width: ${o?e.strokeWidth:3};
87
+ }
88
+ .commit-highlight-outer {
89
+ }
90
+ .commit-highlight-inner {
91
+ stroke: ${o?e.mainBkg:e.primaryColor};
92
+ fill: ${o?e.mainBkg:e.primaryColor};
93
+ }
94
+
95
+ .arrow {
96
+ /* Intentional: neo themes keep the bold 8px arrow (like classic themes); only redux-geometry themes use the thinner options.strokeWidth. */
97
+ stroke-width: ${le.has(t)?e.strokeWidth:8};
98
+ stroke-linecap: round;
99
+ fill: none
100
+ }
101
+ .gitTitleText {
102
+ text-anchor: middle;
103
+ font-size: 18px;
104
+ fill: ${e.textColor};
105
+ }
106
+ `},"getStyles"),Br=Cr,Sr={parser:Xe,db:oe,renderer:xr,styles:Br};export{Sr as diagram};
@@ -0,0 +1 @@
1
+ const y=async(e,o)=>{try{await navigator.clipboard.writeText(e)}catch{const t=document.createElement("textarea");t.value=e,t.style.cssText="position:fixed;opacity:0",document.body.appendChild(t),t.select();try{document.execCommand("copy")}catch{}document.body.removeChild(t)}o(!0),setTimeout(()=>o(!1),2e3)},f=(e,o)=>{const t=document.createElement("a");t.href=e,t.download=o,t.click(),setTimeout(()=>URL.revokeObjectURL(t.href),1e3)},R=(e,o,t)=>new Promise(u=>{const n=t?null:e.getBoundingClientRect(),r=(t==null?void 0:t.w)??Math.max((n==null?void 0:n.width)??0,400),s=(t==null?void 0:t.h)??Math.max((n==null?void 0:n.height)??0,200),h=e.cloneNode(!0);h.setAttribute("width",String(r)),h.setAttribute("height",String(s));const w=new XMLSerializer().serializeToString(h),d=()=>{const a=new Blob([w],{type:"image/svg+xml;charset=utf-8"}),c=URL.createObjectURL(a);f(c,o.replace(/\.png$/i,".svg")),u()};let i;try{i="data:image/svg+xml;base64,"+btoa(unescape(encodeURIComponent(w)))}catch{d();return}const l=new Image;l.onload=()=>{const a=window.devicePixelRatio||2,c=document.createElement("canvas");c.width=r*a,c.height=s*a;const g=c.getContext("2d");g.scale(a,a),g.fillStyle="#ffffff",g.fillRect(0,0,r,s),g.drawImage(l,0,0,r,s);try{c.toBlob(m=>{if(!m){d();return}const v=URL.createObjectURL(m);f(v,o),u()},"image/png")}catch{d()}},l.onerror=()=>d(),l.src=i});export{y as c,R as e};