@bkm016/basalt 0.1.5 → 0.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +9 -7
- package/{chunk-gw05p4g3.js → chunk-053vb71h.js} +1 -1
- package/{chunk-3c330qna.js → chunk-063vbmtp.js} +2 -2
- package/{chunk-bgkegf0k.js → chunk-0javrjcm.js} +4 -4
- package/{chunk-pjr91g6k.js → chunk-10p3mb40.js} +1 -1
- package/{chunk-mkp28k1x.js → chunk-39vwrg8n.js} +2 -2
- package/{chunk-8xb636vr.js → chunk-6kdgk70p.js} +2 -2
- package/{chunk-9z7sdh5e.js → chunk-6ptv4g5e.js} +1 -1
- package/{chunk-zzwjt7fp.js → chunk-75434aay.js} +1 -1
- package/{chunk-ar3dbfp9.js → chunk-7hr6zw2m.js} +1 -1
- package/{chunk-h1rypb99.js → chunk-8gw5bvh3.js} +4 -4
- package/{chunk-a4b75ekk.js → chunk-8saewt61.js} +2 -2
- package/{chunk-sqaam5ak.js → chunk-8wj32837.js} +1 -1
- package/{chunk-539ekagy.js → chunk-8wv5t0w6.js} +5 -5
- package/{chunk-aw65h276.js → chunk-8x21n7y9.js} +1 -1
- package/{chunk-0n99m9m4.js → chunk-a0c989ky.js} +1 -1
- package/{chunk-srjgvdvs.js → chunk-a5apjjcn.js} +6 -6
- package/chunk-a81p46j7.js +2 -0
- package/chunk-agsfy9w7.js +2 -0
- package/{chunk-2qcpq99g.js → chunk-arcqjt91.js} +1 -1
- package/{chunk-rxj6tct8.js → chunk-bdy4jksd.js} +1 -1
- package/{chunk-zrkh5dw7.js → chunk-benrzwea.js} +1 -1
- package/chunk-bpw6q7g0.js +3 -0
- package/{chunk-36cqq0ga.js → chunk-c7rcw9fb.js} +5 -5
- package/{chunk-x89em726.js → chunk-ca982n62.js} +1 -1
- package/chunk-d20p02ny.js +2 -0
- package/{chunk-5v4g21rw.js → chunk-d6p2hgxh.js} +1 -1
- package/{chunk-t7sc0wwc.js → chunk-dnx91jrd.js} +2 -2
- package/{chunk-mat08ab1.js → chunk-dpz4hwqb.js} +2 -2
- package/{chunk-zn0g0859.js → chunk-ebpyvs1d.js} +2 -2
- package/{chunk-00gwse5r.js → chunk-ecf896fz.js} +1 -1
- package/{chunk-0stvywr8.js → chunk-ejsneb6f.js} +1 -1
- package/{chunk-7as47pcw.js → chunk-ey15ye2h.js} +1 -1
- package/{chunk-v4k3qmdm.js → chunk-f156y565.js} +1 -1
- package/{chunk-7tgqhveh.js → chunk-f544p9rh.js} +1 -1
- package/chunk-fmq3zwzk.js +2 -0
- package/{chunk-ebzkckyw.js → chunk-fx7f4m3c.js} +1 -1
- package/{chunk-3k7ejpkc.js → chunk-g0t9c3gv.js} +1 -1
- package/{chunk-7w0mefgk.js → chunk-gv7wqkey.js} +2 -2
- package/{chunk-2nkfxhef.js → chunk-hksqjts3.js} +252 -236
- package/{chunk-1xa7d5mh.js → chunk-j7yvh0ae.js} +1 -1
- package/{chunk-0j0qggej.js → chunk-n85qs7cs.js} +1 -1
- package/{chunk-7qq99360.js → chunk-n981vx1t.js} +4 -4
- package/{chunk-0fwdxd45.js → chunk-peja51xv.js} +1 -1
- package/{chunk-6dsq0fns.js → chunk-pg5nkf1y.js} +1 -1
- package/{chunk-jyrwk08p.js → chunk-prgm07j4.js} +1 -1
- package/{chunk-jvwg4rn1.js → chunk-q9dd6fhj.js} +4 -4
- package/{chunk-nxkmd29x.js → chunk-r8vvcp6c.js} +1 -1
- package/{chunk-stj493dn.js → chunk-r9aatvwm.js} +2 -2
- package/chunk-rfb85nj7.js +2 -0
- package/{chunk-980drajf.js → chunk-rfdt992v.js} +12 -12
- package/{chunk-e63c1186.js → chunk-s6dejhfj.js} +1 -1
- package/{chunk-wfyrfvfn.js → chunk-s7skpgm2.js} +1 -1
- package/{chunk-dddsrff6.js → chunk-tgfbtehh.js} +123 -121
- package/{chunk-r0jc8e7t.js → chunk-w67dvqtb.js} +2 -2
- package/{chunk-b9fqretv.js → chunk-whj87h4r.js} +2 -2
- package/{chunk-vt1anydc.js → chunk-y8dkfpmj.js} +3 -3
- package/{chunk-nx3jnbv8.js → chunk-z02sj1je.js} +2 -2
- package/{chunk-hq5ke1yp.js → chunk-zxkq9m8e.js} +1 -1
- package/compiled.js +3 -3
- package/package.json +1 -1
- package/ui-test-worker.js +27 -27
- package/web/{chunk-56krfj3b.js → chunk-03dmzvaq.js} +1 -1
- package/web/{chunk-affear07.js → chunk-0fgaepwm.js} +1 -1
- package/web/{chunk-vhzys0rr.js → chunk-0gg00f86.js} +1 -1
- package/web/chunk-0pecj6d7.js +1 -0
- package/web/chunk-0wt1dgny.js +1 -0
- package/web/{chunk-gxqaa4sv.js → chunk-12xxh71x.js} +5 -5
- package/web/chunk-1ves7sq5.js +1 -0
- package/web/chunk-1yj79b48.js +1 -0
- package/web/{chunk-x7sb3bwf.js → chunk-296hgy6k.js} +22 -22
- package/web/{chunk-jcdw85mv.js → chunk-2bmq1whf.js} +1 -1
- package/web/{chunk-1s2hp6h1.js → chunk-2wqxhqr9.js} +1 -1
- package/web/{chunk-y7jq61nv.js → chunk-30b33r2w.js} +2 -2
- package/web/{chunk-g8kkc6vz.js → chunk-30zfw7zg.js} +1 -1
- package/web/chunk-39ng8zwx.css +1 -0
- package/web/{chunk-0qr891eq.js → chunk-3de552rg.js} +1 -1
- package/web/{chunk-3hkgdw6f.js → chunk-3nbzj48p.js} +3 -3
- package/web/{chunk-12z7d0hp.js → chunk-3zebd9fq.js} +1 -1
- package/web/chunk-4r1n98zx.js +2 -0
- package/web/chunk-59678wmg.js +1 -0
- package/web/{chunk-pyg1mr80.js → chunk-5v44qv67.js} +20 -20
- package/web/chunk-5wdk97mk.js +4 -0
- package/web/{chunk-fnnrrzqa.js → chunk-64rafq66.js} +1 -1
- package/web/{chunk-qrdh9j62.js → chunk-6kkw9ptc.js} +1 -1
- package/web/{chunk-01hcjafh.js → chunk-718mr5gc.js} +1 -1
- package/web/chunk-7hs57qdr.js +1 -0
- package/web/{chunk-aqt7kc3s.js → chunk-7kp237t3.js} +1 -1
- package/web/chunk-86p42kym.js +1 -0
- package/web/chunk-8n79cqyd.js +1 -0
- package/web/{chunk-paywgcf7.js → chunk-96v2avmw.js} +2 -2
- package/web/{chunk-4a4j030b.js → chunk-9an6wcnr.js} +1 -1
- package/web/{chunk-dzg1pv80.js → chunk-9c1yt2ex.js} +3 -3
- package/web/{chunk-d60dpf69.js → chunk-a7gtb4kg.js} +1 -1
- package/web/chunk-b985y17w.js +2 -0
- package/web/{chunk-j34q5jn6.js → chunk-bz2v64xe.js} +1 -1
- package/web/{chunk-g9sqbafw.js → chunk-cb2rxtq9.js} +1 -1
- package/web/{chunk-g5jxwkdh.js → chunk-ck8rr0sr.js} +1 -1
- package/web/{chunk-zc1mk10n.js → chunk-cktmyc13.js} +2 -2
- package/web/{chunk-tcp77cp2.js → chunk-cm92fyr3.js} +1 -1
- package/web/chunk-cwtn2kdm.js +1 -0
- package/web/{chunk-ka7c5rhx.js → chunk-czq1yz51.js} +6 -6
- package/web/{chunk-qq5gh5zr.js → chunk-d4z2rgpx.js} +1 -1
- package/web/{chunk-0k9aec1s.js → chunk-d6tbw8br.js} +3 -3
- package/web/chunk-dpkyygej.js +1 -0
- package/web/{chunk-m8knte9z.js → chunk-dwajwrpk.js} +1 -1
- package/web/{chunk-7e47b1sn.js → chunk-et5ess72.js} +1 -1
- package/web/chunk-ez8b6neq.js +1 -0
- package/web/{chunk-9xgspn75.js → chunk-f5txt81n.js} +2 -2
- package/web/chunk-fd1kqwe3.js +1 -0
- package/web/chunk-fmthkpff.js +1 -0
- package/web/{chunk-h2ag4kvz.js → chunk-fp48zz2e.js} +1 -1
- package/web/{chunk-1pasbxwh.js → chunk-fx0n2g22.js} +1 -1
- package/web/{chunk-bnb9xhgw.js → chunk-fxs4nb93.js} +6 -6
- package/web/{chunk-sd22cnjy.js → chunk-g6k9z8zt.js} +1 -1
- package/web/{chunk-5shygfgb.js → chunk-g81h1e6n.js} +2 -2
- package/web/{chunk-zz397b0v.js → chunk-gsh80797.js} +1 -1
- package/web/chunk-hs5x78fb.js +1 -0
- package/web/{chunk-abhad4zj.js → chunk-ht1dzftc.js} +4 -4
- package/web/{chunk-zqht0jzx.js → chunk-hy4m34qp.js} +1 -1
- package/web/chunk-hyd5hzpa.js +1 -0
- package/web/chunk-hyt1nkaw.js +1 -0
- package/web/chunk-j6a4z530.js +1139 -0
- package/web/{chunk-h6gh63xj.js → chunk-jve1zc80.js} +1 -1
- package/web/{chunk-vttgyb5v.js → chunk-kegv14sg.js} +1 -1
- package/web/chunk-kw9emsqw.js +1 -0
- package/web/{chunk-kza0t0gj.js → chunk-kyawkpv2.js} +1 -1
- package/web/{chunk-xsrvw7dt.js → chunk-m2prjwk3.js} +1 -1
- package/web/{chunk-s24qs1bn.js → chunk-m9bzz9m0.js} +6 -6
- package/web/{chunk-c53xmf48.js → chunk-mqsyzzgt.js} +1 -1
- package/web/{chunk-26bwh1sb.js → chunk-n1jpg57t.js} +6 -6
- package/web/{chunk-yvgs6bm3.js → chunk-nyn9tghz.js} +1 -1
- package/web/{chunk-ybw6vgf6.js → chunk-nywdeb4m.js} +1 -1
- package/web/{chunk-1cfh0e2e.js → chunk-prvh9syp.js} +7 -7
- package/web/chunk-pxkhm40r.js +2 -0
- package/web/{chunk-d6ddkh6e.js → chunk-q9ekgjh6.js} +1 -1
- package/web/chunk-r3mj50zs.js +1 -0
- package/web/{chunk-2nht58dc.js → chunk-rf9dt6bg.js} +1 -1
- package/web/{chunk-4m3zdd41.js → chunk-s2920f21.js} +1 -1
- package/web/{chunk-crzseqbx.js → chunk-sc0ghp25.js} +1 -1
- package/web/{chunk-7a3c137d.js → chunk-sy7e4dmq.js} +1 -1
- package/web/{chunk-65nwc4cf.js → chunk-t74r2n8h.js} +1 -1
- package/web/{chunk-gcv91974.js → chunk-t851gdjh.js} +1 -1
- package/web/{chunk-mpfgr049.js → chunk-t9mvsgt9.js} +1 -1
- package/web/{chunk-mnzramhc.js → chunk-twdy2f67.js} +1 -1
- package/web/{chunk-advfpyb9.js → chunk-v4yqrx5y.js} +4 -4
- package/web/{chunk-z4aj066q.js → chunk-vf4vkcf9.js} +1 -1
- package/web/{chunk-6enn8p66.js → chunk-vtxw9rmr.js} +1 -1
- package/web/{chunk-k67v6dyg.js → chunk-vw1pbv1x.js} +2 -2
- package/web/chunk-x19v2sxv.js +1 -0
- package/web/{chunk-892nf39p.js → chunk-x5s7zr5f.js} +7 -7
- package/web/{chunk-f9k3xrwb.js → chunk-xc2sq3t5.js} +1 -1
- package/web/chunk-xvcfp1zh.js +2 -0
- package/web/chunk-y21zy3eh.js +1 -0
- package/web/{chunk-14bad871.js → chunk-ya3ghn3n.js} +1 -1
- package/web/chunk-yd74yxzt.js +8 -0
- package/web/{chunk-0p1nmj5n.js → chunk-z1geewdf.js} +1 -1
- package/web/chunk-z4ha8181.js +1 -0
- package/web/chunk-z8rarqe6.js +1 -0
- package/web/{chunk-xk1t58c4.js → chunk-zp3qrrkb.js} +4 -4
- package/web/{chunk-7znyd1mj.js → chunk-zsxw5fj7.js} +1 -1
- package/web/index.html +1 -1
- package/worker.js +1 -1
- package/chunk-2nb3d92s.js +0 -2
- package/chunk-2pa1z37c.js +0 -2
- package/chunk-4g5f43ea.js +0 -3
- package/chunk-eegztdzb.js +0 -2
- package/chunk-wd3z74av.js +0 -2
- package/chunk-yna8bwqc.js +0 -2
- package/web/chunk-0ytga215.js +0 -1
- package/web/chunk-1amzv4ha.js +0 -1
- package/web/chunk-2y0rc1fe.js +0 -1
- package/web/chunk-4w298aqs.js +0 -1
- package/web/chunk-6stt9d18.js +0 -1
- package/web/chunk-7pypx5h8.js +0 -2
- package/web/chunk-9dy7z3ej.js +0 -2
- package/web/chunk-9mq2cdtq.js +0 -1
- package/web/chunk-b5hah4mf.js +0 -1
- package/web/chunk-b8tfetd8.js +0 -1
- package/web/chunk-ckgpy4r4.js +0 -1
- package/web/chunk-dbnrfxt1.js +0 -8
- package/web/chunk-ddxf8e84.js +0 -1
- package/web/chunk-e8h45nyr.js +0 -1
- package/web/chunk-ej9vb61c.js +0 -1
- package/web/chunk-fjag6yg8.js +0 -2
- package/web/chunk-gxsb5tx3.js +0 -1
- package/web/chunk-jg6fmz2d.js +0 -1
- package/web/chunk-mz1dabxh.js +0 -1
- package/web/chunk-p53n0hwr.js +0 -1
- package/web/chunk-pfcnr9tw.js +0 -1
- package/web/chunk-q7xkscc5.js +0 -1
- package/web/chunk-qmbgb79a.js +0 -1139
- package/web/chunk-sfq6cw45.js +0 -2
- package/web/chunk-svqj4az8.js +0 -1
- package/web/chunk-t7jwyvvr.js +0 -1
- package/web/chunk-tf18d2dk.css +0 -1
- package/web/chunk-v0g4cqc1.js +0 -4
- package/web/chunk-vqfz99ff.js +0 -1
- package/web/chunk-zazs8p6c.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{e,Y,br,u,d,D,b,B,C,S,E,T,A,R,L,p,V,U,m}from"./chunk-pyg1mr80.js";var fe=(t,s)=>br(t,"a",-s),wt=fe;function It(t,s){let i=de(t),n=i.filter((c)=>he(c,t)),r=0,o=0,a=[];if(n.length>1){let c=Kt(n);for(let h=0;h<n.length;++h){let l=n[h];l.angle=Math.atan2(l.x-c.x,l.y-c.y)}n.sort((h,l)=>l.angle-h.angle);let g=n[n.length-1];for(let h=0;h<n.length;++h){let l=n[h];o+=(g.x+l.x)*(l.y-g.y);let I={x:(l.x+g.x)/2,y:(l.y+g.y)/2},y=null;for(let _=0;_<l.parentIndex.length;++_)if(g.parentIndex.includes(l.parentIndex[_])){let M=t[l.parentIndex[_]],j=Math.atan2(l.x-M.x,l.y-M.y),G=Math.atan2(g.x-M.x,g.y-M.y),P=G-j;if(P<0)P+=2*Math.PI;let F=G-P/2,v=at(I,{x:M.x+M.radius*Math.sin(F),y:M.y+M.radius*Math.cos(F)});if(v>M.radius*2)v=M.radius*2;if(y==null||y.width>v)y={circle:M,width:v,p1:l,p2:g,large:v>M.radius,sweep:!0}}if(y!=null)a.push(y),r+=Tt(y.circle.radius,y.width),g=l}}else{let c=t[0];for(let h=1;h<t.length;++h)if(t[h].radius<c.radius)c=t[h];let g=!1;for(let h=0;h<t.length;++h)if(at(t[h],c)>Math.abs(c.radius-t[h].radius)){g=!0;break}if(g)r=o=0;else r=c.radius*c.radius*Math.PI,a.push({circle:c,p1:{x:c.x,y:c.y+c.radius},p2:{x:c.x-0.0000000001,y:c.y+c.radius},width:c.radius*2,large:!0,sweep:!0})}if(o/=2,s)s.area=r+o,s.arcArea=r,s.polygonArea=o,s.arcs=a,s.innerPoints=n,s.intersectionPoints=i;return r+o}function he(t,s){return s.every((i)=>at(t,i)<i.radius+0.0000000001)}function de(t){let s=[];for(let i=0;i<t.length;++i)for(let n=i+1;n<t.length;++n){let r=Wt(t[i],t[n]);for(let o of r)o.parentIndex=[i,n],s.push(o)}return s}function Tt(t,s){return t*t*Math.acos(1-s/t)-(t-s)*Math.sqrt(s*(2*t-s))}function at(t,s){return Math.sqrt((t.x-s.x)*(t.x-s.x)+(t.y-s.y)*(t.y-s.y))}function Nt(t,s,i){if(i>=t+s)return 0;if(i<=Math.abs(t-s))return Math.PI*Math.min(t,s)*Math.min(t,s);let n=t-(i*i-s*s+t*t)/(2*i),r=s-(i*i-t*t+s*s)/(2*i);return Tt(t,n)+Tt(s,r)}function Wt(t,s){let i=at(t,s),n=t.radius,r=s.radius;if(i>=n+r||i<=Math.abs(n-r))return[];let o=(n*n-r*r+i*i)/(2*i),a=Math.sqrt(n*n-o*o),c=t.x+o*(s.x-t.x)/i,g=t.y+o*(s.y-t.y)/i,h=-(s.y-t.y)*(a/i),l=-(s.x-t.x)*(a/i);return[{x:c+h,y:g-l},{x:c-h,y:g+l}]}function Kt(t){let s={x:0,y:0};for(let i of t)s.x+=i.x,s.y+=i.y;return s.x/=t.length,s.y/=t.length,s}function ge(t,s,i,n){n=n||{};let r=n.maxIterations||100,o=n.tolerance||0.0000000001,a=t(s),c=t(i),g=i-s;if(a*c>0)throw"Initial bisect points must have opposite signs";if(a===0)return s;if(c===0)return i;for(let h=0;h<r;++h){g/=2;let l=s+g,I=t(l);if(I*a>=0)s=l;if(Math.abs(g)<o||I===0)return l}return s+g}function zt(t){let s=Array(t);for(let i=0;i<t;++i)s[i]=0;return s}function Ut(t,s){return zt(t).map(()=>zt(s))}function mt(t,s){let i=0;for(let n=0;n<t.length;++n)i+=t[n]*s[n];return i}function At(t){return Math.sqrt(mt(t,t))}function Ct(t,s,i){for(let n=0;n<s.length;++n)t[n]=s[n]*i}function xt(t,s,i,n,r){for(let o=0;o<t.length;++o)t[o]=s*i[o]+n*r[o]}function Ht(t,s,i){i=i||{};let n=i.maxIterations||s.length*200,r=i.nonZeroDelta||1.05,o=i.zeroDelta||0.001,a=i.minErrorDelta||0.000001,c=i.minErrorDelta||0.00001,g=i.rho!==void 0?i.rho:1,h=i.chi!==void 0?i.chi:2,l=i.psi!==void 0?i.psi:-0.5,I=i.sigma!==void 0?i.sigma:0.5,y,_=s.length,M=Array(_+1);M[0]=s,M[0].fx=t(s),M[0].id=0;for(let z=0;z<_;++z){let f=s.slice();f[z]=f[z]?f[z]*r:o,M[z+1]=f,M[z+1].fx=t(f),M[z+1].id=z+1}function j(z){for(let f=0;f<z.length;f++)M[_][f]=z[f];M[_].fx=z.fx}let G=(z,f)=>z.fx-f.fx,P=s.slice(),F=s.slice(),v=s.slice(),w=s.slice();for(let z=0;z<n;++z){if(M.sort(G),i.history){let k=M.map((x)=>{let H=x.slice();return H.fx=x.fx,H.id=x.id,H});k.sort((x,H)=>x.id-H.id),i.history.push({x:M[0].slice(),fx:M[0].fx,simplex:k})}y=0;for(let k=0;k<_;++k)y=Math.max(y,Math.abs(M[0][k]-M[1][k]));if(Math.abs(M[0].fx-M[_].fx)<a&&y<c)break;for(let k=0;k<_;++k){P[k]=0;for(let x=0;x<_;++x)P[k]+=M[x][k];P[k]/=_}let f=M[_];if(xt(F,1+g,P,-g,f),F.fx=t(F),F.fx<M[0].fx)if(xt(w,1+h,P,-h,f),w.fx=t(w),w.fx<F.fx)j(w);else j(F);else if(F.fx>=M[_-1].fx){let k=!1;if(F.fx>f.fx)if(xt(v,1+l,P,-l,f),v.fx=t(v),v.fx<f.fx)j(v);else k=!0;else if(xt(v,1-l*g,P,l*g,f),v.fx=t(v),v.fx<F.fx)j(v);else k=!0;if(k){if(I>=1)break;for(let x=1;x<M.length;++x)xt(M[x],1-I,M[0],I,M[x]),M[x].fx=t(M[x])}}else j(F)}return M.sort(G),{fx:M[0].fx,x:M[0]}}function xe(t,s,i,n,r,o,a){let c=i.fx,g=mt(i.fxprime,s),h=c,l=c,I=g,y=0;r=r||1,o=o||0.000001,a=a||0.1;function _(M,j,G){for(let P=0;P<16;++P)if(r=(M+j)/2,xt(n.x,1,i.x,r,s),h=n.fx=t(n.x,n.fxprime),I=mt(n.fxprime,s),h>c+o*r*g||h>=G)j=r;else{if(Math.abs(I)<=-a*g)return r;if(I*(j-M)>=0)j=M;M=r,G=h}return 0}for(let M=0;M<10;++M){if(xt(n.x,1,i.x,r,s),h=n.fx=t(n.x,n.fxprime),I=mt(n.fxprime,s),h>c+o*r*g||M&&h>=l)return _(y,r,l);if(Math.abs(I)<=-a*g)return r;if(I>=0)return _(r,y,h);l=h,y=r,r*=2}return r}function ye(t,s,i){let n={x:s.slice(),fx:0,fxprime:s.slice()},r={x:s.slice(),fx:0,fxprime:s.slice()},o=s.slice(),a,c,g=1,h;i=i||{},h=i.maxIterations||s.length*20,n.fx=t(n.x,n.fxprime),a=n.fxprime.slice(),Ct(a,n.fxprime,-1);for(let l=0;l<h;++l){if(g=xe(t,a,n,r,g),i.history)i.history.push({x:n.x.slice(),fx:n.fx,fxprime:n.fxprime.slice(),alpha:g});if(!g)Ct(a,n.fxprime,-1);else{xt(o,1,r.fxprime,-1,n.fxprime);let I=mt(n.fxprime,n.fxprime),y=Math.max(0,mt(o,r.fxprime)/I);xt(a,y,a,-1,r.fxprime),c=n,n=r,r=c}if(At(n.fxprime)<=0.00001)break}if(i.history)i.history.push({x:n.x.slice(),fx:n.fx,fxprime:n.fxprime.slice(),alpha:g});return n}function Yt(t,s={}){s.maxIterations=s.maxIterations||500;let i=s.initialLayout||ve,n=s.lossFunction||bt,r=pe(t,s),o=i(r,s),a=Object.keys(o),c=[];for(let l of a)c.push(o[l].x),c.push(o[l].y);let h=Ht((l)=>{let I={};for(let y=0;y<a.length;++y){let _=a[y];I[_]={x:l[2*y],y:l[2*y+1],radius:o[_].radius}}return n(I,r)},c,s).x;for(let l=0;l<a.length;++l){let I=a[l];o[I].x=h[2*l],o[I].y=h[2*l+1]}return o}var Xt=0.0000000001;function Dt(t,s,i){if(Math.min(t,s)*Math.min(t,s)*Math.PI<=i+Xt)return Math.abs(t-s);return ge((n)=>Nt(t,s,n)-i,0,t+s)}function pe(t,s={}){let i=s.distinct,n=t.map((c)=>Object.assign({},c));function r(c){return c.join(";")}if(i){let c=new Map;for(let g of n)for(let h=0;h<g.sets.length;h++){let l=String(g.sets[h]);c.set(l,g.size+(c.get(l)||0));for(let I=h+1;I<g.sets.length;I++){let y=String(g.sets[I]),_=`${l};${y}`,M=`${y};${l}`;c.set(_,g.size+(c.get(_)||0)),c.set(M,g.size+(c.get(M)||0))}}for(let g of n)if(g.sets.length<3)g.size=c.get(r(g.sets))}let o=[],a=new Set;for(let c of n)if(c.sets.length===1)o.push(c.sets[0]);else if(c.sets.length===2){let g=c.sets[0],h=c.sets[1];a.add(r(c.sets)),a.add(r([h,g]))}o.sort((c,g)=>c===g?0:c<g?-1:1);for(let c=0;c<o.length;++c){let g=o[c];for(let h=c+1;h<o.length;++h){let l=o[h];if(!a.has(r([g,l])))n.push({sets:[g,l],size:0})}}return n}function me(t,s,i){let n=Ut(s.length,s.length),r=Ut(s.length,s.length);return t.filter((o)=>o.sets.length===2).forEach((o)=>{let a=i[o.sets[0]],c=i[o.sets[1]],g=Math.sqrt(s[a].size/Math.PI),h=Math.sqrt(s[c].size/Math.PI),l=Dt(g,h,o.size);n[a][c]=n[c][a]=l;let I=0;if(o.size+0.0000000001>=Math.min(s[a].size,s[c].size))I=1;else if(o.size<=0.0000000001)I=-1;r[a][c]=r[c][a]=I}),{distances:n,constraints:r}}function be(t,s,i,n){for(let o=0;o<s.length;++o)s[o]=0;let r=0;for(let o=0;o<i.length;++o){let a=t[2*o],c=t[2*o+1];for(let g=o+1;g<i.length;++g){let h=t[2*g],l=t[2*g+1],I=i[o][g],y=n[o][g],_=(h-a)*(h-a)+(l-c)*(l-c),M=Math.sqrt(_),j=_-I*I;if(y>0&&M<=I||y<0&&M>=I)continue;r+=2*j*j,s[2*o]+=4*j*(a-h),s[2*o+1]+=4*j*(c-l),s[2*g]+=4*j*(h-a),s[2*g+1]+=4*j*(l-c)}}return r}function ve(t,s={}){let i=Ie(t,s),n=s.lossFunction||bt;if(t.length>=8){let r=ke(t,s),o=n(r,t),a=n(i,t);if(o+0.00000001<a)i=r}return i}function ke(t,s={}){let i=s.restarts||10,n=[],r={};for(let y of t)if(y.sets.length===1)r[y.sets[0]]=n.length,n.push(y);let{distances:o,constraints:a}=me(t,n,r),c=At(o.map(At))/o.length;o=o.map((y)=>y.map((_)=>_/c));let g=(y,_)=>be(y,_,o,a),h=null;for(let y=0;y<i;++y){let _=zt(o.length*2).map(Math.random),M=ye(g,_,s);if(!h||M.fx<h.fx)h=M}let l=h.x,I={};for(let y=0;y<n.length;++y){let _=n[y];I[_.sets[0]]={x:l[2*y]*c,y:l[2*y+1]*c,radius:Math.sqrt(_.size/Math.PI)}}if(s.history)for(let y of s.history)Ct(y.x,c);return I}function Ie(t,s){let i=s&&s.lossFunction?s.lossFunction:bt,n={},r={};for(let I of t)if(I.sets.length===1){let y=I.sets[0];n[y]={x:10000000000,y:10000000000,rowid:n.length,size:I.size,radius:Math.sqrt(I.size/Math.PI)},r[y]=[]}t=t.filter((I)=>I.sets.length===2);for(let I of t){let y=I.weight!=null?I.weight:1,_=I.sets[0],M=I.sets[1];if(I.size+Xt>=Math.min(n[_].size,n[M].size))y=0;r[_].push({set:M,size:I.size,weight:y}),r[M].push({set:_,size:I.size,weight:y})}let o=[];Object.keys(r).forEach((I)=>{let y=0;for(let _=0;_<r[I].length;++_)y+=r[I][_].size*r[I][_].weight;o.push({set:I,size:y})});function a(I,y){return y.size-I.size}o.sort(a);let c={};function g(I){return I.set in c}function h(I,y){n[y].x=I.x,n[y].y=I.y,c[y]=!0}h({x:0,y:0},o[0].set);for(let I=1;I<o.length;++I){let y=o[I].set,_=r[y].filter(g),M=n[y];if(_.sort(a),_.length===0)throw"ERROR: missing pairwise overlap information";let j=[];for(var l=0;l<_.length;++l){let F=n[_[l].set],v=Dt(M.radius,F.radius,_[l].size);j.push({x:F.x+v,y:F.y}),j.push({x:F.x-v,y:F.y}),j.push({y:F.y+v,x:F.x}),j.push({y:F.y-v,x:F.x});for(let w=l+1;w<_.length;++w){let z=n[_[w].set],f=Dt(M.radius,z.radius,_[w].size),k=Wt({x:F.x,y:F.y,radius:v},{x:z.x,y:z.y,radius:f});j.push(...k)}}let G=100000000000000000000000000000000000000000000000000,P=j[0];for(let F of j){n[y].x=F.x,n[y].y=F.y;let v=i(n,t);if(v<G)G=v,P=F}h(P,y)}return n}function bt(t,s){let i=0;for(let n of s){if(n.sets.length===1)continue;let r;if(n.sets.length===2){let a=t[n.sets[0]],c=t[n.sets[1]];r=Nt(a.radius,c.radius,at(a,c))}else r=It(n.sets.map((a)=>t[a]));let o=n.weight!=null?n.weight:1;i+=o*(r-n.size)*(r-n.size)}return i}function Zt(t,s){let i=0;for(let n of s){if(n.sets.length===1)continue;let r;if(n.sets.length===2){let c=t[n.sets[0]],g=t[n.sets[1]];r=Nt(c.radius,g.radius,at(c,g))}else r=It(n.sets.map((c)=>t[c]));let o=n.weight!=null?n.weight:1,a=Math.log((r+1)/(n.size+1));i+=o*a*a}return i}function Me(t,s,i){if(i==null)t.sort((r,o)=>o.radius-r.radius);else t.sort(i);if(t.length>0){let r=t[0].x,o=t[0].y;for(let a of t)a.x-=r,a.y-=o}if(t.length===2){if(at(t[0],t[1])<Math.abs(t[1].radius-t[0].radius))t[1].x=t[0].x+t[0].radius-t[1].radius-0.0000000001,t[1].y=t[0].y}if(t.length>1){let r=Math.atan2(t[1].x,t[1].y)-s,o=Math.cos(r),a=Math.sin(r);for(let c of t){let{x:g,y:h}=c;c.x=o*g-a*h,c.y=a*g+o*h}}if(t.length>2){let r=Math.atan2(t[2].x,t[2].y)-s;while(r<0)r+=2*Math.PI;while(r>2*Math.PI)r-=2*Math.PI;if(r>Math.PI){let o=t[1].y/(0.0000000001+t[1].x);for(let a of t){var n=(a.x+o*a.y)/(1+o*o);a.x=2*n-a.x,a.y=2*n*o-a.y}}}}function Se(t){t.forEach((r)=>{r.parent=r});function s(r){if(r.parent!==r)r.parent=s(r.parent);return r.parent}function i(r,o){let a=s(r),c=s(o);a.parent=c}for(let r=0;r<t.length;++r)for(let o=r+1;o<t.length;++o){let a=t[r].radius+t[o].radius;if(at(t[r],t[o])+0.0000000001<a)i(t[o],t[r])}let n=new Map;for(let r=0;r<t.length;++r){let o=s(t[r]).parent.setid;if(!n.has(o))n.set(o,[]);n.get(o).push(t[r])}return t.forEach((r)=>{delete r.parent}),Array.from(n.values())}function Rt(t){let s=(i)=>{let n=t.reduce((o,a)=>Math.max(o,a[i]+a.radius),Number.NEGATIVE_INFINITY),r=t.reduce((o,a)=>Math.min(o,a[i]-a.radius),Number.POSITIVE_INFINITY);return{max:n,min:r}};return{xRange:s("x"),yRange:s("y")}}function Jt(t,s,i){if(s==null)s=Math.PI/2;let n=te(t).map((h)=>Object.assign({},h)),r=Se(n);for(let h of r){Me(h,s,i);let l=Rt(h);h.size=(l.xRange.max-l.xRange.min)*(l.yRange.max-l.yRange.min),h.bounds=l}r.sort((h,l)=>l.size-h.size),n=r[0];let o=n.bounds,a=(o.xRange.max-o.xRange.min)/50;function c(h,l,I){if(!h)return;let y=h.bounds,_,M;if(l)_=o.xRange.max-y.xRange.min+a;else{_=o.xRange.max-y.xRange.max;let j=(y.xRange.max-y.xRange.min)/2-(o.xRange.max-o.xRange.min)/2;if(j<0)_+=j}if(I)M=o.yRange.max-y.yRange.min+a;else{M=o.yRange.max-y.yRange.max;let j=(y.yRange.max-y.yRange.min)/2-(o.yRange.max-o.yRange.min)/2;if(j<0)M+=j}for(let j of h)j.x+=_,j.y+=M,n.push(j)}let g=1;while(g<r.length)c(r[g],!0,!1),c(r[g+1],!1,!0),c(r[g+2],!0,!0),g+=3,o=Rt(n);return $t(n)}function Qt(t,s,i,n,r){let o=te(t);s-=2*n,i-=2*n;let{xRange:a,yRange:c}=Rt(o);if(a.max===a.min||c.max===c.min)return console.log("not scaling solution: zero size detected"),t;let g,h;if(r){let _=Math.sqrt(r/Math.PI)*2;g=s/_,h=i/_}else g=s/(a.max-a.min),h=i/(c.max-c.min);let l=Math.min(h,g),I=(s-(a.max-a.min)*l)/2,y=(i-(c.max-c.min)*l)/2;return $t(o.map((_)=>({radius:l*_.radius,x:n+I+(_.x-a.min)*l,y:n+y+(_.y-c.min)*l,setid:_.setid})))}function $t(t){let s={};for(let i of t)s[i.setid]=i;return s}function te(t){return Object.keys(t).map((i)=>Object.assign(t[i],{setid:i}))}function ee(t={}){let s=!1,i=600,n=350,r=15,o=1000,a=Math.PI/2,c=!0,g=null,h=!0,l=!0,I=null,y=null,_=!1,M=null,j=t&&t.symmetricalTextCentre?t.symmetricalTextCentre:!1,G={},P=t&&t.colourScheme?t.colourScheme:t&&t.colorScheme?t.colorScheme:["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"],F=0,v=function(k){if(k in G)return G[k];var x=G[k]=P[F];if(F+=1,F>=P.length)F=0;return x},w=Yt,z=bt;function f(k){let x=k.datum(),H=new Set;x.forEach((N)=>{if(N.size==0&&N.sets.length==1)H.add(N.sets[0])}),x=x.filter((N)=>!N.sets.some((Q)=>H.has(Q)));let O={},X={};if(x.length>0){let N=w(x,{lossFunction:z,distinct:_});if(c)N=Jt(N,a,y);O=Qt(N,i,n,r,g),X=se(O,x,j)}let lt={};x.forEach((N)=>{if(N.label)lt[N.sets]=N.label});function st(N){if(N.sets in lt)return lt[N.sets];if(N.sets.length==1)return""+N.sets[0]}k.selectAll("svg").data([O]).enter().append("svg");let J=k.select("svg");if(s)J.attr("viewBox",`0 0 ${i} ${n}`);else J.attr("width",i).attr("height",n);let K={},Z=!1;J.selectAll(".venn-area path").each(function(N){let Q=this.getAttribute("d");if(N.sets.length==1&&Q&&!_)Z=!0,K[N.sets[0]]=Ee(Q)});function q(N){return(Q)=>{let pt=N.sets.map((gt)=>{let dt=K[gt],ot=O[gt];if(!dt)dt={x:i/2,y:n/2,radius:1};if(!ot)ot={x:i/2,y:n/2,radius:1};return{x:dt.x*(1-Q)+ot.x*Q,y:dt.y*(1-Q)+ot.y*Q,radius:dt.radius*(1-Q)+ot.radius*Q}});return Gt(pt,M)}}let tt=J.selectAll(".venn-area").data(x,(N)=>N.sets),it=tt.enter().append("g").attr("class",(N)=>`venn-area venn-${N.sets.length==1?"circle":"intersection"}${N.colour||N.color?" venn-coloured":""}`).attr("data-venn-sets",(N)=>N.sets.join("_")),et=it.append("path"),ct=it.append("text").attr("class","label").text((N)=>st(N)).attr("text-anchor","middle").attr("dy",".35em").attr("x",i/2).attr("y",n/2);if(l)et.style("fill-opacity","0").filter((N)=>N.sets.length==1).style("fill",(N)=>N.colour?N.colour:N.color?N.color:v(N.sets)).style("fill-opacity",".25"),ct.style("fill",(N)=>{if(N.colour||N.color)return"#FFF";if(t.textFill)return t.textFill;return N.sets.length==1?v(N.sets):"#444"});function rt(N){if(typeof N.transition==="function")return N.transition("venn").duration(o);return N}let nt=k;if(Z&&typeof nt.transition==="function")nt=rt(k),nt.selectAll("path").attrTween("d",q);else nt.selectAll("path").attr("d",(N)=>Gt(N.sets.map((Q)=>O[Q])),M);let W=nt.selectAll("text").filter((N)=>(N.sets in X)).text((N)=>st(N)).attr("x",(N)=>Math.floor(X[N.sets].x)).attr("y",(N)=>Math.floor(X[N.sets].y));if(h)if(Z)if("on"in W)W.on("end",_t(O,st));else W.each("end",_t(O,st));else W.each(_t(O,st));let ht=rt(tt.exit()).remove();if(typeof tt.transition==="function")ht.selectAll("path").attrTween("d",q);let ft=ht.selectAll("text").attr("x",i/2).attr("y",n/2);if(I!==null)ct.style("font-size","0px"),W.style("font-size",I),ft.style("font-size","0px");return{circles:O,textCentres:X,nodes:tt,enter:it,update:nt,exit:ht}}return f.wrap=function(k){if(!arguments.length)return h;return h=k,f},f.useViewBox=function(){return s=!0,f},f.width=function(k){if(!arguments.length)return i;return i=k,f},f.height=function(k){if(!arguments.length)return n;return n=k,f},f.padding=function(k){if(!arguments.length)return r;return r=k,f},f.distinct=function(k){if(!arguments.length)return _;return _=k,f},f.colours=function(k){if(!arguments.length)return v;return v=k,f},f.colors=function(k){if(!arguments.length)return v;return v=k,f},f.fontSize=function(k){if(!arguments.length)return I;return I=k,f},f.round=function(k){if(!arguments.length)return M;return M=k,f},f.duration=function(k){if(!arguments.length)return o;return o=k,f},f.layoutFunction=function(k){if(!arguments.length)return w;return w=k,f},f.normalize=function(k){if(!arguments.length)return c;return c=k,f},f.scaleToFit=function(k){if(!arguments.length)return g;return g=k,f},f.styled=function(k){if(!arguments.length)return l;return l=k,f},f.orientation=function(k){if(!arguments.length)return a;return a=k,f},f.orientationOrder=function(k){if(!arguments.length)return y;return y=k,f},f.lossFunction=function(k){if(!arguments.length)return z;return z=k==="default"?bt:k==="logRatio"?Zt:k,f},f}function _t(t,s){return function(i){let n=this,r=t[i.sets[0]].radius||50,o=s(i)||"",a=o.split(/\s+/).reverse(),c=3,g=(o.length+a.length)/3,h=a.pop(),l=[h],I=0,y=1.1;n.textContent=null;let _=[];function M(v){let w=n.ownerDocument.createElementNS(n.namespaceURI,"tspan");return w.textContent=v,_.push(w),n.append(w),w}let j=M(h);while(!0){if(h=a.pop(),!h)break;l.push(h);let v=l.join(" ");if(j.textContent=v,v.length>g&&j.getComputedTextLength()>r)l.pop(),j.textContent=l.join(" "),l=[h],j=M(h),I++}let G=0.35-I*y/2,P=n.getAttribute("x"),F=n.getAttribute("y");_.forEach((v,w)=>{v.setAttribute("x",P),v.setAttribute("y",F),v.setAttribute("dy",`${G+w*y}em`)})}}function Et(t,s,i){let n=s[0].radius-at(s[0],t);for(let r=1;r<s.length;++r){let o=s[r].radius-at(s[r],t);if(o<=n)n=o}for(let r=0;r<i.length;++r){let o=at(i[r],t)-i[r].radius;if(o<=n)n=o}return n}function ne(t,s,i){let n=[];for(let l of t)n.push({x:l.x,y:l.y}),n.push({x:l.x+l.radius/2,y:l.y}),n.push({x:l.x-l.radius/2,y:l.y}),n.push({x:l.x,y:l.y+l.radius/2}),n.push({x:l.x,y:l.y-l.radius/2});let r=n[0],o=Et(n[0],t,s);for(let l=1;l<n.length;++l){let I=Et(n[l],t,s);if(I>=o)r=n[l],o=I}let a=Ht((l)=>-1*Et({x:l[0],y:l[1]},t,s),[r.x,r.y],{maxIterations:500,minErrorDelta:0.0000000001}).x,c={x:i?0:a[0],y:a[1]},g=!0;for(let l of t)if(at(c,l)>l.radius){g=!1;break}for(let l of s)if(at(c,l)<l.radius){g=!1;break}if(g)return c;if(t.length==1)return{x:t[0].x,y:t[0].y};let h={};if(It(t,h),h.arcs.length===0)return{x:0,y:-1000,disjoint:!0};if(h.arcs.length==1)return{x:h.arcs[0].circle.x,y:h.arcs[0].circle.y};if(s.length)return ne(t,[]);return Kt(h.arcs.map((l)=>l.p1))}function we(t){let s={},i=Object.keys(t);for(let n of i)s[n]=[];for(let n=0;n<i.length;n++){let r=i[n],o=t[r];for(let a=n+1;a<i.length;++a){let c=i[a],g=t[c],h=at(o,g);if(h+g.radius<=o.radius+0.0000000001)s[c].push(r);else if(h+o.radius<=g.radius+0.0000000001)s[r].push(c)}}return s}function se(t,s,i){let n={},r=we(t);for(let o=0;o<s.length;++o){let a=s[o].sets,c={},g={};for(let y=0;y<a.length;++y){c[a[y]]=!0;let _=r[a[y]];for(let M=0;M<_.length;++M)g[_[M]]=!0}let h=[],l=[];for(let y in t)if(y in c)h.push(t[y]);else if(!(y in g))l.push(t[y]);let I=ne(h,l,i);if(n[a]=I,I.disjoint&&s[o].size>0)console.log("WARNING: area "+a+" not represented on screen")}return n}function _e(t,s,i){let n=[];return n.push(`
|
|
1
|
+
import{e,Y,br,u,d,D,b,B,C,S,E,T,A,R,L,p,V,U,m}from"./chunk-5v44qv67.js";var fe=(t,s)=>br(t,"a",-s),wt=fe;function It(t,s){let i=de(t),n=i.filter((c)=>he(c,t)),r=0,o=0,a=[];if(n.length>1){let c=Kt(n);for(let h=0;h<n.length;++h){let l=n[h];l.angle=Math.atan2(l.x-c.x,l.y-c.y)}n.sort((h,l)=>l.angle-h.angle);let g=n[n.length-1];for(let h=0;h<n.length;++h){let l=n[h];o+=(g.x+l.x)*(l.y-g.y);let I={x:(l.x+g.x)/2,y:(l.y+g.y)/2},y=null;for(let _=0;_<l.parentIndex.length;++_)if(g.parentIndex.includes(l.parentIndex[_])){let M=t[l.parentIndex[_]],j=Math.atan2(l.x-M.x,l.y-M.y),G=Math.atan2(g.x-M.x,g.y-M.y),P=G-j;if(P<0)P+=2*Math.PI;let F=G-P/2,v=at(I,{x:M.x+M.radius*Math.sin(F),y:M.y+M.radius*Math.cos(F)});if(v>M.radius*2)v=M.radius*2;if(y==null||y.width>v)y={circle:M,width:v,p1:l,p2:g,large:v>M.radius,sweep:!0}}if(y!=null)a.push(y),r+=Tt(y.circle.radius,y.width),g=l}}else{let c=t[0];for(let h=1;h<t.length;++h)if(t[h].radius<c.radius)c=t[h];let g=!1;for(let h=0;h<t.length;++h)if(at(t[h],c)>Math.abs(c.radius-t[h].radius)){g=!0;break}if(g)r=o=0;else r=c.radius*c.radius*Math.PI,a.push({circle:c,p1:{x:c.x,y:c.y+c.radius},p2:{x:c.x-0.0000000001,y:c.y+c.radius},width:c.radius*2,large:!0,sweep:!0})}if(o/=2,s)s.area=r+o,s.arcArea=r,s.polygonArea=o,s.arcs=a,s.innerPoints=n,s.intersectionPoints=i;return r+o}function he(t,s){return s.every((i)=>at(t,i)<i.radius+0.0000000001)}function de(t){let s=[];for(let i=0;i<t.length;++i)for(let n=i+1;n<t.length;++n){let r=Wt(t[i],t[n]);for(let o of r)o.parentIndex=[i,n],s.push(o)}return s}function Tt(t,s){return t*t*Math.acos(1-s/t)-(t-s)*Math.sqrt(s*(2*t-s))}function at(t,s){return Math.sqrt((t.x-s.x)*(t.x-s.x)+(t.y-s.y)*(t.y-s.y))}function Nt(t,s,i){if(i>=t+s)return 0;if(i<=Math.abs(t-s))return Math.PI*Math.min(t,s)*Math.min(t,s);let n=t-(i*i-s*s+t*t)/(2*i),r=s-(i*i-t*t+s*s)/(2*i);return Tt(t,n)+Tt(s,r)}function Wt(t,s){let i=at(t,s),n=t.radius,r=s.radius;if(i>=n+r||i<=Math.abs(n-r))return[];let o=(n*n-r*r+i*i)/(2*i),a=Math.sqrt(n*n-o*o),c=t.x+o*(s.x-t.x)/i,g=t.y+o*(s.y-t.y)/i,h=-(s.y-t.y)*(a/i),l=-(s.x-t.x)*(a/i);return[{x:c+h,y:g-l},{x:c-h,y:g+l}]}function Kt(t){let s={x:0,y:0};for(let i of t)s.x+=i.x,s.y+=i.y;return s.x/=t.length,s.y/=t.length,s}function ge(t,s,i,n){n=n||{};let r=n.maxIterations||100,o=n.tolerance||0.0000000001,a=t(s),c=t(i),g=i-s;if(a*c>0)throw"Initial bisect points must have opposite signs";if(a===0)return s;if(c===0)return i;for(let h=0;h<r;++h){g/=2;let l=s+g,I=t(l);if(I*a>=0)s=l;if(Math.abs(g)<o||I===0)return l}return s+g}function zt(t){let s=Array(t);for(let i=0;i<t;++i)s[i]=0;return s}function Ut(t,s){return zt(t).map(()=>zt(s))}function mt(t,s){let i=0;for(let n=0;n<t.length;++n)i+=t[n]*s[n];return i}function At(t){return Math.sqrt(mt(t,t))}function Ct(t,s,i){for(let n=0;n<s.length;++n)t[n]=s[n]*i}function xt(t,s,i,n,r){for(let o=0;o<t.length;++o)t[o]=s*i[o]+n*r[o]}function Ht(t,s,i){i=i||{};let n=i.maxIterations||s.length*200,r=i.nonZeroDelta||1.05,o=i.zeroDelta||0.001,a=i.minErrorDelta||0.000001,c=i.minErrorDelta||0.00001,g=i.rho!==void 0?i.rho:1,h=i.chi!==void 0?i.chi:2,l=i.psi!==void 0?i.psi:-0.5,I=i.sigma!==void 0?i.sigma:0.5,y,_=s.length,M=Array(_+1);M[0]=s,M[0].fx=t(s),M[0].id=0;for(let z=0;z<_;++z){let f=s.slice();f[z]=f[z]?f[z]*r:o,M[z+1]=f,M[z+1].fx=t(f),M[z+1].id=z+1}function j(z){for(let f=0;f<z.length;f++)M[_][f]=z[f];M[_].fx=z.fx}let G=(z,f)=>z.fx-f.fx,P=s.slice(),F=s.slice(),v=s.slice(),w=s.slice();for(let z=0;z<n;++z){if(M.sort(G),i.history){let k=M.map((x)=>{let H=x.slice();return H.fx=x.fx,H.id=x.id,H});k.sort((x,H)=>x.id-H.id),i.history.push({x:M[0].slice(),fx:M[0].fx,simplex:k})}y=0;for(let k=0;k<_;++k)y=Math.max(y,Math.abs(M[0][k]-M[1][k]));if(Math.abs(M[0].fx-M[_].fx)<a&&y<c)break;for(let k=0;k<_;++k){P[k]=0;for(let x=0;x<_;++x)P[k]+=M[x][k];P[k]/=_}let f=M[_];if(xt(F,1+g,P,-g,f),F.fx=t(F),F.fx<M[0].fx)if(xt(w,1+h,P,-h,f),w.fx=t(w),w.fx<F.fx)j(w);else j(F);else if(F.fx>=M[_-1].fx){let k=!1;if(F.fx>f.fx)if(xt(v,1+l,P,-l,f),v.fx=t(v),v.fx<f.fx)j(v);else k=!0;else if(xt(v,1-l*g,P,l*g,f),v.fx=t(v),v.fx<F.fx)j(v);else k=!0;if(k){if(I>=1)break;for(let x=1;x<M.length;++x)xt(M[x],1-I,M[0],I,M[x]),M[x].fx=t(M[x])}}else j(F)}return M.sort(G),{fx:M[0].fx,x:M[0]}}function xe(t,s,i,n,r,o,a){let c=i.fx,g=mt(i.fxprime,s),h=c,l=c,I=g,y=0;r=r||1,o=o||0.000001,a=a||0.1;function _(M,j,G){for(let P=0;P<16;++P)if(r=(M+j)/2,xt(n.x,1,i.x,r,s),h=n.fx=t(n.x,n.fxprime),I=mt(n.fxprime,s),h>c+o*r*g||h>=G)j=r;else{if(Math.abs(I)<=-a*g)return r;if(I*(j-M)>=0)j=M;M=r,G=h}return 0}for(let M=0;M<10;++M){if(xt(n.x,1,i.x,r,s),h=n.fx=t(n.x,n.fxprime),I=mt(n.fxprime,s),h>c+o*r*g||M&&h>=l)return _(y,r,l);if(Math.abs(I)<=-a*g)return r;if(I>=0)return _(r,y,h);l=h,y=r,r*=2}return r}function ye(t,s,i){let n={x:s.slice(),fx:0,fxprime:s.slice()},r={x:s.slice(),fx:0,fxprime:s.slice()},o=s.slice(),a,c,g=1,h;i=i||{},h=i.maxIterations||s.length*20,n.fx=t(n.x,n.fxprime),a=n.fxprime.slice(),Ct(a,n.fxprime,-1);for(let l=0;l<h;++l){if(g=xe(t,a,n,r,g),i.history)i.history.push({x:n.x.slice(),fx:n.fx,fxprime:n.fxprime.slice(),alpha:g});if(!g)Ct(a,n.fxprime,-1);else{xt(o,1,r.fxprime,-1,n.fxprime);let I=mt(n.fxprime,n.fxprime),y=Math.max(0,mt(o,r.fxprime)/I);xt(a,y,a,-1,r.fxprime),c=n,n=r,r=c}if(At(n.fxprime)<=0.00001)break}if(i.history)i.history.push({x:n.x.slice(),fx:n.fx,fxprime:n.fxprime.slice(),alpha:g});return n}function Yt(t,s={}){s.maxIterations=s.maxIterations||500;let i=s.initialLayout||ve,n=s.lossFunction||bt,r=pe(t,s),o=i(r,s),a=Object.keys(o),c=[];for(let l of a)c.push(o[l].x),c.push(o[l].y);let h=Ht((l)=>{let I={};for(let y=0;y<a.length;++y){let _=a[y];I[_]={x:l[2*y],y:l[2*y+1],radius:o[_].radius}}return n(I,r)},c,s).x;for(let l=0;l<a.length;++l){let I=a[l];o[I].x=h[2*l],o[I].y=h[2*l+1]}return o}var Xt=0.0000000001;function Dt(t,s,i){if(Math.min(t,s)*Math.min(t,s)*Math.PI<=i+Xt)return Math.abs(t-s);return ge((n)=>Nt(t,s,n)-i,0,t+s)}function pe(t,s={}){let i=s.distinct,n=t.map((c)=>Object.assign({},c));function r(c){return c.join(";")}if(i){let c=new Map;for(let g of n)for(let h=0;h<g.sets.length;h++){let l=String(g.sets[h]);c.set(l,g.size+(c.get(l)||0));for(let I=h+1;I<g.sets.length;I++){let y=String(g.sets[I]),_=`${l};${y}`,M=`${y};${l}`;c.set(_,g.size+(c.get(_)||0)),c.set(M,g.size+(c.get(M)||0))}}for(let g of n)if(g.sets.length<3)g.size=c.get(r(g.sets))}let o=[],a=new Set;for(let c of n)if(c.sets.length===1)o.push(c.sets[0]);else if(c.sets.length===2){let g=c.sets[0],h=c.sets[1];a.add(r(c.sets)),a.add(r([h,g]))}o.sort((c,g)=>c===g?0:c<g?-1:1);for(let c=0;c<o.length;++c){let g=o[c];for(let h=c+1;h<o.length;++h){let l=o[h];if(!a.has(r([g,l])))n.push({sets:[g,l],size:0})}}return n}function me(t,s,i){let n=Ut(s.length,s.length),r=Ut(s.length,s.length);return t.filter((o)=>o.sets.length===2).forEach((o)=>{let a=i[o.sets[0]],c=i[o.sets[1]],g=Math.sqrt(s[a].size/Math.PI),h=Math.sqrt(s[c].size/Math.PI),l=Dt(g,h,o.size);n[a][c]=n[c][a]=l;let I=0;if(o.size+0.0000000001>=Math.min(s[a].size,s[c].size))I=1;else if(o.size<=0.0000000001)I=-1;r[a][c]=r[c][a]=I}),{distances:n,constraints:r}}function be(t,s,i,n){for(let o=0;o<s.length;++o)s[o]=0;let r=0;for(let o=0;o<i.length;++o){let a=t[2*o],c=t[2*o+1];for(let g=o+1;g<i.length;++g){let h=t[2*g],l=t[2*g+1],I=i[o][g],y=n[o][g],_=(h-a)*(h-a)+(l-c)*(l-c),M=Math.sqrt(_),j=_-I*I;if(y>0&&M<=I||y<0&&M>=I)continue;r+=2*j*j,s[2*o]+=4*j*(a-h),s[2*o+1]+=4*j*(c-l),s[2*g]+=4*j*(h-a),s[2*g+1]+=4*j*(l-c)}}return r}function ve(t,s={}){let i=Ie(t,s),n=s.lossFunction||bt;if(t.length>=8){let r=ke(t,s),o=n(r,t),a=n(i,t);if(o+0.00000001<a)i=r}return i}function ke(t,s={}){let i=s.restarts||10,n=[],r={};for(let y of t)if(y.sets.length===1)r[y.sets[0]]=n.length,n.push(y);let{distances:o,constraints:a}=me(t,n,r),c=At(o.map(At))/o.length;o=o.map((y)=>y.map((_)=>_/c));let g=(y,_)=>be(y,_,o,a),h=null;for(let y=0;y<i;++y){let _=zt(o.length*2).map(Math.random),M=ye(g,_,s);if(!h||M.fx<h.fx)h=M}let l=h.x,I={};for(let y=0;y<n.length;++y){let _=n[y];I[_.sets[0]]={x:l[2*y]*c,y:l[2*y+1]*c,radius:Math.sqrt(_.size/Math.PI)}}if(s.history)for(let y of s.history)Ct(y.x,c);return I}function Ie(t,s){let i=s&&s.lossFunction?s.lossFunction:bt,n={},r={};for(let I of t)if(I.sets.length===1){let y=I.sets[0];n[y]={x:10000000000,y:10000000000,rowid:n.length,size:I.size,radius:Math.sqrt(I.size/Math.PI)},r[y]=[]}t=t.filter((I)=>I.sets.length===2);for(let I of t){let y=I.weight!=null?I.weight:1,_=I.sets[0],M=I.sets[1];if(I.size+Xt>=Math.min(n[_].size,n[M].size))y=0;r[_].push({set:M,size:I.size,weight:y}),r[M].push({set:_,size:I.size,weight:y})}let o=[];Object.keys(r).forEach((I)=>{let y=0;for(let _=0;_<r[I].length;++_)y+=r[I][_].size*r[I][_].weight;o.push({set:I,size:y})});function a(I,y){return y.size-I.size}o.sort(a);let c={};function g(I){return I.set in c}function h(I,y){n[y].x=I.x,n[y].y=I.y,c[y]=!0}h({x:0,y:0},o[0].set);for(let I=1;I<o.length;++I){let y=o[I].set,_=r[y].filter(g),M=n[y];if(_.sort(a),_.length===0)throw"ERROR: missing pairwise overlap information";let j=[];for(var l=0;l<_.length;++l){let F=n[_[l].set],v=Dt(M.radius,F.radius,_[l].size);j.push({x:F.x+v,y:F.y}),j.push({x:F.x-v,y:F.y}),j.push({y:F.y+v,x:F.x}),j.push({y:F.y-v,x:F.x});for(let w=l+1;w<_.length;++w){let z=n[_[w].set],f=Dt(M.radius,z.radius,_[w].size),k=Wt({x:F.x,y:F.y,radius:v},{x:z.x,y:z.y,radius:f});j.push(...k)}}let G=100000000000000000000000000000000000000000000000000,P=j[0];for(let F of j){n[y].x=F.x,n[y].y=F.y;let v=i(n,t);if(v<G)G=v,P=F}h(P,y)}return n}function bt(t,s){let i=0;for(let n of s){if(n.sets.length===1)continue;let r;if(n.sets.length===2){let a=t[n.sets[0]],c=t[n.sets[1]];r=Nt(a.radius,c.radius,at(a,c))}else r=It(n.sets.map((a)=>t[a]));let o=n.weight!=null?n.weight:1;i+=o*(r-n.size)*(r-n.size)}return i}function Zt(t,s){let i=0;for(let n of s){if(n.sets.length===1)continue;let r;if(n.sets.length===2){let c=t[n.sets[0]],g=t[n.sets[1]];r=Nt(c.radius,g.radius,at(c,g))}else r=It(n.sets.map((c)=>t[c]));let o=n.weight!=null?n.weight:1,a=Math.log((r+1)/(n.size+1));i+=o*a*a}return i}function Me(t,s,i){if(i==null)t.sort((r,o)=>o.radius-r.radius);else t.sort(i);if(t.length>0){let r=t[0].x,o=t[0].y;for(let a of t)a.x-=r,a.y-=o}if(t.length===2){if(at(t[0],t[1])<Math.abs(t[1].radius-t[0].radius))t[1].x=t[0].x+t[0].radius-t[1].radius-0.0000000001,t[1].y=t[0].y}if(t.length>1){let r=Math.atan2(t[1].x,t[1].y)-s,o=Math.cos(r),a=Math.sin(r);for(let c of t){let{x:g,y:h}=c;c.x=o*g-a*h,c.y=a*g+o*h}}if(t.length>2){let r=Math.atan2(t[2].x,t[2].y)-s;while(r<0)r+=2*Math.PI;while(r>2*Math.PI)r-=2*Math.PI;if(r>Math.PI){let o=t[1].y/(0.0000000001+t[1].x);for(let a of t){var n=(a.x+o*a.y)/(1+o*o);a.x=2*n-a.x,a.y=2*n*o-a.y}}}}function Se(t){t.forEach((r)=>{r.parent=r});function s(r){if(r.parent!==r)r.parent=s(r.parent);return r.parent}function i(r,o){let a=s(r),c=s(o);a.parent=c}for(let r=0;r<t.length;++r)for(let o=r+1;o<t.length;++o){let a=t[r].radius+t[o].radius;if(at(t[r],t[o])+0.0000000001<a)i(t[o],t[r])}let n=new Map;for(let r=0;r<t.length;++r){let o=s(t[r]).parent.setid;if(!n.has(o))n.set(o,[]);n.get(o).push(t[r])}return t.forEach((r)=>{delete r.parent}),Array.from(n.values())}function Rt(t){let s=(i)=>{let n=t.reduce((o,a)=>Math.max(o,a[i]+a.radius),Number.NEGATIVE_INFINITY),r=t.reduce((o,a)=>Math.min(o,a[i]-a.radius),Number.POSITIVE_INFINITY);return{max:n,min:r}};return{xRange:s("x"),yRange:s("y")}}function Jt(t,s,i){if(s==null)s=Math.PI/2;let n=te(t).map((h)=>Object.assign({},h)),r=Se(n);for(let h of r){Me(h,s,i);let l=Rt(h);h.size=(l.xRange.max-l.xRange.min)*(l.yRange.max-l.yRange.min),h.bounds=l}r.sort((h,l)=>l.size-h.size),n=r[0];let o=n.bounds,a=(o.xRange.max-o.xRange.min)/50;function c(h,l,I){if(!h)return;let y=h.bounds,_,M;if(l)_=o.xRange.max-y.xRange.min+a;else{_=o.xRange.max-y.xRange.max;let j=(y.xRange.max-y.xRange.min)/2-(o.xRange.max-o.xRange.min)/2;if(j<0)_+=j}if(I)M=o.yRange.max-y.yRange.min+a;else{M=o.yRange.max-y.yRange.max;let j=(y.yRange.max-y.yRange.min)/2-(o.yRange.max-o.yRange.min)/2;if(j<0)M+=j}for(let j of h)j.x+=_,j.y+=M,n.push(j)}let g=1;while(g<r.length)c(r[g],!0,!1),c(r[g+1],!1,!0),c(r[g+2],!0,!0),g+=3,o=Rt(n);return $t(n)}function Qt(t,s,i,n,r){let o=te(t);s-=2*n,i-=2*n;let{xRange:a,yRange:c}=Rt(o);if(a.max===a.min||c.max===c.min)return console.log("not scaling solution: zero size detected"),t;let g,h;if(r){let _=Math.sqrt(r/Math.PI)*2;g=s/_,h=i/_}else g=s/(a.max-a.min),h=i/(c.max-c.min);let l=Math.min(h,g),I=(s-(a.max-a.min)*l)/2,y=(i-(c.max-c.min)*l)/2;return $t(o.map((_)=>({radius:l*_.radius,x:n+I+(_.x-a.min)*l,y:n+y+(_.y-c.min)*l,setid:_.setid})))}function $t(t){let s={};for(let i of t)s[i.setid]=i;return s}function te(t){return Object.keys(t).map((i)=>Object.assign(t[i],{setid:i}))}function ee(t={}){let s=!1,i=600,n=350,r=15,o=1000,a=Math.PI/2,c=!0,g=null,h=!0,l=!0,I=null,y=null,_=!1,M=null,j=t&&t.symmetricalTextCentre?t.symmetricalTextCentre:!1,G={},P=t&&t.colourScheme?t.colourScheme:t&&t.colorScheme?t.colorScheme:["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"],F=0,v=function(k){if(k in G)return G[k];var x=G[k]=P[F];if(F+=1,F>=P.length)F=0;return x},w=Yt,z=bt;function f(k){let x=k.datum(),H=new Set;x.forEach((N)=>{if(N.size==0&&N.sets.length==1)H.add(N.sets[0])}),x=x.filter((N)=>!N.sets.some((Q)=>H.has(Q)));let O={},X={};if(x.length>0){let N=w(x,{lossFunction:z,distinct:_});if(c)N=Jt(N,a,y);O=Qt(N,i,n,r,g),X=se(O,x,j)}let lt={};x.forEach((N)=>{if(N.label)lt[N.sets]=N.label});function st(N){if(N.sets in lt)return lt[N.sets];if(N.sets.length==1)return""+N.sets[0]}k.selectAll("svg").data([O]).enter().append("svg");let J=k.select("svg");if(s)J.attr("viewBox",`0 0 ${i} ${n}`);else J.attr("width",i).attr("height",n);let K={},Z=!1;J.selectAll(".venn-area path").each(function(N){let Q=this.getAttribute("d");if(N.sets.length==1&&Q&&!_)Z=!0,K[N.sets[0]]=Ee(Q)});function q(N){return(Q)=>{let pt=N.sets.map((gt)=>{let dt=K[gt],ot=O[gt];if(!dt)dt={x:i/2,y:n/2,radius:1};if(!ot)ot={x:i/2,y:n/2,radius:1};return{x:dt.x*(1-Q)+ot.x*Q,y:dt.y*(1-Q)+ot.y*Q,radius:dt.radius*(1-Q)+ot.radius*Q}});return Gt(pt,M)}}let tt=J.selectAll(".venn-area").data(x,(N)=>N.sets),it=tt.enter().append("g").attr("class",(N)=>`venn-area venn-${N.sets.length==1?"circle":"intersection"}${N.colour||N.color?" venn-coloured":""}`).attr("data-venn-sets",(N)=>N.sets.join("_")),et=it.append("path"),ct=it.append("text").attr("class","label").text((N)=>st(N)).attr("text-anchor","middle").attr("dy",".35em").attr("x",i/2).attr("y",n/2);if(l)et.style("fill-opacity","0").filter((N)=>N.sets.length==1).style("fill",(N)=>N.colour?N.colour:N.color?N.color:v(N.sets)).style("fill-opacity",".25"),ct.style("fill",(N)=>{if(N.colour||N.color)return"#FFF";if(t.textFill)return t.textFill;return N.sets.length==1?v(N.sets):"#444"});function rt(N){if(typeof N.transition==="function")return N.transition("venn").duration(o);return N}let nt=k;if(Z&&typeof nt.transition==="function")nt=rt(k),nt.selectAll("path").attrTween("d",q);else nt.selectAll("path").attr("d",(N)=>Gt(N.sets.map((Q)=>O[Q])),M);let W=nt.selectAll("text").filter((N)=>(N.sets in X)).text((N)=>st(N)).attr("x",(N)=>Math.floor(X[N.sets].x)).attr("y",(N)=>Math.floor(X[N.sets].y));if(h)if(Z)if("on"in W)W.on("end",_t(O,st));else W.each("end",_t(O,st));else W.each(_t(O,st));let ht=rt(tt.exit()).remove();if(typeof tt.transition==="function")ht.selectAll("path").attrTween("d",q);let ft=ht.selectAll("text").attr("x",i/2).attr("y",n/2);if(I!==null)ct.style("font-size","0px"),W.style("font-size",I),ft.style("font-size","0px");return{circles:O,textCentres:X,nodes:tt,enter:it,update:nt,exit:ht}}return f.wrap=function(k){if(!arguments.length)return h;return h=k,f},f.useViewBox=function(){return s=!0,f},f.width=function(k){if(!arguments.length)return i;return i=k,f},f.height=function(k){if(!arguments.length)return n;return n=k,f},f.padding=function(k){if(!arguments.length)return r;return r=k,f},f.distinct=function(k){if(!arguments.length)return _;return _=k,f},f.colours=function(k){if(!arguments.length)return v;return v=k,f},f.colors=function(k){if(!arguments.length)return v;return v=k,f},f.fontSize=function(k){if(!arguments.length)return I;return I=k,f},f.round=function(k){if(!arguments.length)return M;return M=k,f},f.duration=function(k){if(!arguments.length)return o;return o=k,f},f.layoutFunction=function(k){if(!arguments.length)return w;return w=k,f},f.normalize=function(k){if(!arguments.length)return c;return c=k,f},f.scaleToFit=function(k){if(!arguments.length)return g;return g=k,f},f.styled=function(k){if(!arguments.length)return l;return l=k,f},f.orientation=function(k){if(!arguments.length)return a;return a=k,f},f.orientationOrder=function(k){if(!arguments.length)return y;return y=k,f},f.lossFunction=function(k){if(!arguments.length)return z;return z=k==="default"?bt:k==="logRatio"?Zt:k,f},f}function _t(t,s){return function(i){let n=this,r=t[i.sets[0]].radius||50,o=s(i)||"",a=o.split(/\s+/).reverse(),c=3,g=(o.length+a.length)/3,h=a.pop(),l=[h],I=0,y=1.1;n.textContent=null;let _=[];function M(v){let w=n.ownerDocument.createElementNS(n.namespaceURI,"tspan");return w.textContent=v,_.push(w),n.append(w),w}let j=M(h);while(!0){if(h=a.pop(),!h)break;l.push(h);let v=l.join(" ");if(j.textContent=v,v.length>g&&j.getComputedTextLength()>r)l.pop(),j.textContent=l.join(" "),l=[h],j=M(h),I++}let G=0.35-I*y/2,P=n.getAttribute("x"),F=n.getAttribute("y");_.forEach((v,w)=>{v.setAttribute("x",P),v.setAttribute("y",F),v.setAttribute("dy",`${G+w*y}em`)})}}function Et(t,s,i){let n=s[0].radius-at(s[0],t);for(let r=1;r<s.length;++r){let o=s[r].radius-at(s[r],t);if(o<=n)n=o}for(let r=0;r<i.length;++r){let o=at(i[r],t)-i[r].radius;if(o<=n)n=o}return n}function ne(t,s,i){let n=[];for(let l of t)n.push({x:l.x,y:l.y}),n.push({x:l.x+l.radius/2,y:l.y}),n.push({x:l.x-l.radius/2,y:l.y}),n.push({x:l.x,y:l.y+l.radius/2}),n.push({x:l.x,y:l.y-l.radius/2});let r=n[0],o=Et(n[0],t,s);for(let l=1;l<n.length;++l){let I=Et(n[l],t,s);if(I>=o)r=n[l],o=I}let a=Ht((l)=>-1*Et({x:l[0],y:l[1]},t,s),[r.x,r.y],{maxIterations:500,minErrorDelta:0.0000000001}).x,c={x:i?0:a[0],y:a[1]},g=!0;for(let l of t)if(at(c,l)>l.radius){g=!1;break}for(let l of s)if(at(c,l)<l.radius){g=!1;break}if(g)return c;if(t.length==1)return{x:t[0].x,y:t[0].y};let h={};if(It(t,h),h.arcs.length===0)return{x:0,y:-1000,disjoint:!0};if(h.arcs.length==1)return{x:h.arcs[0].circle.x,y:h.arcs[0].circle.y};if(s.length)return ne(t,[]);return Kt(h.arcs.map((l)=>l.p1))}function we(t){let s={},i=Object.keys(t);for(let n of i)s[n]=[];for(let n=0;n<i.length;n++){let r=i[n],o=t[r];for(let a=n+1;a<i.length;++a){let c=i[a],g=t[c],h=at(o,g);if(h+g.radius<=o.radius+0.0000000001)s[c].push(r);else if(h+o.radius<=g.radius+0.0000000001)s[r].push(c)}}return s}function se(t,s,i){let n={},r=we(t);for(let o=0;o<s.length;++o){let a=s[o].sets,c={},g={};for(let y=0;y<a.length;++y){c[a[y]]=!0;let _=r[a[y]];for(let M=0;M<_.length;++M)g[_[M]]=!0}let h=[],l=[];for(let y in t)if(y in c)h.push(t[y]);else if(!(y in g))l.push(t[y]);let I=ne(h,l,i);if(n[a]=I,I.disjoint&&s[o].size>0)console.log("WARNING: area "+a+" not represented on screen")}return n}function _e(t,s,i){let n=[];return n.push(`
|
|
2
2
|
M`,t,s),n.push(`
|
|
3
3
|
m`,-i,0),n.push(`
|
|
4
4
|
a`,i,i,0,1,0,i*2,0),n.push(`
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{G}from"./chunk-
|
|
1
|
+
import{G}from"./chunk-ya3ghn3n.js";import{e,a,D,b,O,C,S,E,T,A,R,L,l,kr,p,Nn,Xr,U}from"./chunk-5v44qv67.js";import{Br,X}from"./chunk-cktmyc13.js";var _="position frame",V="frame positioned",F="position relation",j="relation positioned",pe=e(function(t){a.debug("options str",t)},"setOptions"),ve=e(function(){return{}},"getOptions"),be=e(function(){Y(),C()},"clear");function Y(){M={}}e(Y,"reset");var we=D.eventmodeling,ye=e(()=>U({...we,...b().eventmodeling}),"getConfig"),M={};function z(){let t=Pe,{ast:i}=M,n=I();if(!i)throw Error("No data for EventModel");return i.frames.forEach((r,o)=>{let s=te(r,i.dataEntities,n);t=P(t,{$kind:_,index:o,frame:r,textProps:s});let c=void 0;if(se(r))a.debug("source frame",r.sourceFrames),c=i.frames.filter((m)=>r.sourceFrames.some((u)=>u.$refText===m.name)),c.forEach((m)=>{t=P(t,{$kind:F,index:o,frame:r,sourceFrame:m})});else t=P(t,{$kind:F,index:o,frame:r})}),t={...t,sortedSwimlanesArray:W(t.swimlanes)},t}e(z,"getState");function K(t){M.ast=void 0;let i=new Set;for(let n of t.frames){if(i.has(n.name)){let r=n.$cstNode?.range.start.line,o=r===void 0?"":` on line ${r+1}`;throw Error(`Duplicate event modeling frame ID "${n.name}"${o}`)}i.add(n.name)}M.ast=t}e(K,"setAst");var d={swimlaneMinHeight:70,swimlanePadding:15,swimlaneGap:10,boxPadding:10,boxOverlap:90,boxDefaultY:0,boxMinWidth:80,boxMaxWidth:450,boxMinHeight:80,boxMaxHeight:750,contentStartX:250,textMaxWidth:430,boxTextFontWeight:"bold",boxTextPadding:10,swimlaneTextFontWeight:"bold",labelUiAutomation:"UI/Automation",labelUiAutomationPrefix:"UI/A: ",labelCommandReadModel:"Command/Read Model",labelCommandReadModelPrefix:"C/RM: ",labelEvents:"Events",labelEventsPrefix:"Stream: "};function I(){return d}e(I,"getDiagramProps");var Pe={boxes:[],swimlanes:{},relations:[],maxR:0,sortedSwimlanesArray:[]};function q(t){let i=t.split(".");if(i.length===2)return i[0];return}e(q,"extractNamespace");function J(t){let i=t.split(".");if(i.length===2)return i[1];return t}e(J,"extractName");function Q(t,i){if(!i||i.length===0)return;return Object.values(t).find((n)=>n.namespace===i)}e(Q,"findSwimlaneByNamespace");function y(t,i,n){return Math.max(i,...Object.keys(t).filter((r)=>{let o=Number.parseInt(r);return o>i&&o<n}).map((r)=>Number.parseInt(r)))+1}e(y,"findNextAvailableIndex");function Z(t,i){let n=q(t.entityIdentifier),r=Q(i,n);switch(t.modelEntityType){case"ui":case"pcr":case"processor":if(r)return{index:r.index,label:r.namespace||d.labelUiAutomation};else if(n)return{index:y(i,0,100),label:d.labelUiAutomationPrefix+n};return{index:0,label:d.labelUiAutomation};case"rmo":case"readmodel":case"cmd":case"command":if(r)return{index:r.index,label:r.namespace||d.labelCommandReadModel};else if(n)return{index:y(i,100,200),label:d.labelCommandReadModelPrefix+n};return{index:100,label:d.labelCommandReadModel};case"evt":case"event":default:if(r)return{index:r.index,label:r.namespace||d.labelEvents};else if(n)return{index:y(i,200,300),label:d.labelEventsPrefix+n};return{index:200,label:d.labelEvents}}}e(Z,"calculateSwimlaneProps");function ee(t){let{themeVariables:i}=b();switch(t.modelEntityType){case"ui":return{fill:i.emUiFill??"white",stroke:i.emUiStroke??"#dbdada"};case"pcr":case"processor":return{fill:i.emProcessorFill??"#edb3f6",stroke:i.emProcessorStroke??"#b88cbf"};case"rmo":case"readmodel":return{fill:i.emReadModelFill??"#d3f1a2",stroke:i.emReadModelStroke??"#a3b732"};case"cmd":case"command":return{fill:i.emCommandFill??"#bcd6fe",stroke:i.emCommandStroke??"#679ac3"};case"evt":case"event":return{fill:i.emEventFill??"#ffb778",stroke:i.emEventStroke??"#c19a0f"};default:return{fill:"red",stroke:"black"}}}e(ee,"calculateEntityVisualProps");function te(t,i,n){let r=b(),o=O(J(t.entityIdentifier)??"",r),s,c={fontSize:16,fontWeight:700,fontFamily:'"trebuchet ms", verdana, arial, sans-serif',joinWith:"<br/>"},u=`<b>${Nn(o,n.textMaxWidth,c)}</b>`;if(t.dataInlineValue)s=t.dataInlineValue,s=s.substring(s.indexOf("{")+1),s=s.substring(0,s.lastIndexOf("}")-1),s=O(s,r),s=Nn(s,n.textMaxWidth,c),s=s.replaceAll(" "," ");if(t.dataReference){let w=i.find((k)=>k.name===t.dataReference?.$refText);if(w)s=w.dataBlockValue,s=s.substring(s.indexOf(`{
|
|
2
2
|
`)+2),s=s.substring(0,s.lastIndexOf("}")-1),s=O(s,r),s=Nn(s,n.textMaxWidth,c),s=s.replaceAll(" "," "),s+="<br/>"}let x=s!==void 0;if(x)u+=`<br/><br/><code style="text-align: left; display: block;max-width:${n.textMaxWidth}px">${s}</code>`;let g={fontSize:c.fontSize,fontWeight:c.fontWeight,fontFamily:c.fontFamily},f=Xr(u,g),v=x?f.width/3:f.width,h={content:u,width:v,height:f.height};return a.debug(`[${t.name}] ${t.entityIdentifier} text`,h),h}e(te,"calculateTextProps");function ne(t,i){let n=i,r=ee(n.frame),o={width:n.textProps.width+2*d.boxTextPadding,height:n.textProps.height+2*d.boxTextPadding};return[{$kind:V,frame:n.frame,index:n.index,visual:r,dimension:o,textProps:n.textProps}]}e(ne,"decidePositionFrame");function ie(t,i,n){if(i===void 0)return d.contentStartX;if(i.index===t.index&&t.r)return t.r+d.boxPadding;if(n===void 0)return d.contentStartX;return n.r-d.boxOverlap+d.boxPadding}e(ie,"calculateX");function re(t,i){let n=[...t.map((r)=>r.r),i];return Math.max(...n)}e(re,"calculateMaxRight");function W(t){return Object.values(t).sort((i,n)=>i.index-n.index)}e(W,"sortedSwimlanesArray");function ae(t,i){let n=i,r=Z(n.frame,t.swimlanes),o;if(r.index in t.swimlanes)o=t.swimlanes[r.index];else o={index:r.index,label:r.label,r:0,y:r.index*d.swimlaneMinHeight+d.swimlaneGap,height:d.swimlaneMinHeight,maxHeight:d.swimlaneMinHeight};let s=t.boxes.length>0?t.boxes[t.boxes.length-1]:void 0,c=t.previousSwimlaneNumber!==void 0?t.swimlanes[t.previousSwimlaneNumber]:void 0,m={width:Math.max(d.boxMinWidth,Math.min(d.boxMaxWidth,n.dimension.width))+2*d.boxPadding,height:Math.max(d.boxMinHeight,Math.min(d.boxMaxHeight,n.dimension.height))+2*d.boxPadding},u=ie(o,c,s),x=u+m.width+d.boxPadding,g=re(Object.values(t.swimlanes),x);o.r=u+m.width,o.maxHeight=Math.max(o.maxHeight,m.height),o.height=Math.max(d.swimlaneMinHeight,o.maxHeight)+2*d.swimlanePadding;let f={x:u,y:d.swimlanePadding+o.y,r:x,dimension:m,leftSibling:!1,swimlane:o,visual:n.visual,text:n.textProps.content,frame:n.frame,index:n.index},v={...t,boxes:[...t.boxes,f],swimlanes:{...t.swimlanes,[`${o.index}`]:o},previousSwimlaneNumber:r.index,previousFrame:n.frame,maxR:g},h=W(v.swimlanes);if(h.length>0)h[0].y=0;for(let w=1;w<h.length;w++){let k=h[w],H=h[w-1];k.y=H.y+H.height+d.swimlaneGap}return v}e(ae,"evolveFramePositioned");function oe(t,i){if(t===0&&i.sourceFrames.length===0)return!0;return!1}e(oe,"isFirstFrame");function se(t){return t.sourceFrames!==void 0&&t.sourceFrames!==null&&t.sourceFrames.length>0}e(se,"hasSourceFrame");function B(t,i){if(i===void 0||i===null)return;return t.find((n)=>n.frame.name===i.name)}e(B,"findBoxByFrame");function de(t,i,n){if(n<0)return;for(let r=n;r>=0;r--){let o=t[r];if(o.swimlane.index!==i)return o}return}e(de,"findBoxByLineIndex");function le(t,i){let n=i;if(oe(n.index,n.frame))return[];let r=B(t.boxes,n.frame);if(r===void 0)throw Error(`Target box not found for frame ${n.frame.name}`);let o;if(n.sourceFrame)o=B(t.boxes,n.sourceFrame);else{if(Br(n.frame))return[];o=de(t.boxes,r.swimlane.index,n.index-1)}if(o===void 0)return[];return[{$kind:j,frame:n.frame,index:n.index,sourceBox:o,targetBox:r}]}e(le,"decidePositionRelation");function ce(t,i){let n=i,r={visual:{fill:"none",stroke:"#000"},source:{x:n.sourceBox.x,y:n.sourceBox.y},target:{x:n.targetBox.x,y:n.targetBox.y},sourceBox:n.sourceBox,targetBox:n.targetBox};return{...t,relations:[...t.relations,r]}}e(ce,"evolveRelationPositioned");var Se={[_]:ne,[F]:le},Me={[V]:ae,[j]:ce};function me(t,i){let n=Se[i.$kind];if(n===void 0||n===null)return[];let r=n(t,i);return a.debug("decided events",r),r}e(me,"decide");function ue(t,i){let n=i.reduce((r,o)=>{let s=Me[o.$kind];if(s===void 0||s===null)return r;return s(r,o)},t);return a.debug("evolve events",{state:t,newState:n,events:i}),n}e(ue,"evolve");function P(t,i){let n=me(t,i);return ue(t,n)}e(P,"dispatch");var N={getConfig:ye,preserveCommentsWhenParsing:!0,setOptions:pe,getOptions:ve,clear:be,setAccTitle:S,getAccTitle:E,getAccDescription:A,setAccDescription:T,setDiagramTitle:R,getDiagramTitle:L,setAst:K,getDiagramProps:I,getState:z},ke={parse:e(async(t)=>{let i=await X("eventmodeling",t);a.debug(i),N.setAst(i),G(i,N)},"parse")},Fe=l(),Be=Fe?.eventmodeling;function xe(t,i){return(n)=>{let r=n.swimlane.y+i.swimlanePadding,o=t.append("g").attr("class","em-box");o.append("rect").attr("x",n.x).attr("y",r).attr("rx","3").attr("width",n.dimension.width).attr("height",n.dimension.height).attr("stroke",n.visual.stroke).attr("fill",n.visual.fill),o.append("foreignObject").attr("x",n.x+i.boxPadding).attr("y",r+10).attr("width",n.dimension.width-2*i.boxPadding).attr("height",n.dimension.height-2*i.boxPadding).append("xhtml:div").style("display","table").style("height","100%").style("width","100%").append("span").style("display","table-cell").style("text-align","center").style("vertical-align","middle").html(n.text)}}e(xe,"renderD3Box");function fe(t,i){return t>i}e(fe,"dirUpwards");function ge(t,i,n,r){return(o)=>{let s=o.sourceBox.swimlane.y+i.swimlanePadding,c=o.targetBox.swimlane.y+i.swimlanePadding,m=fe(s,c),u=o.sourceBox.x+o.sourceBox.dimension.width*2/3,x=o.targetBox.x+o.targetBox.dimension.width/3,g,f;if(a.debug(`rendering relation up=${m} for `,{sourceBox:o.sourceBox,targetBox:o.targetBox}),m)g=s,f=c+o.targetBox.dimension.height;else g=s+o.sourceBox.dimension.height,f=c;let v=r.emRelationStroke??o.visual.stroke;t.append("path").attr("class","em-relation").attr("fill",o.visual.fill).attr("stroke",v).attr("stroke-width","1").attr("marker-end",`url(#${n})`).attr("d",`M${u} ${g} L${x} ${f}`)}}e(ge,"renderD3Relation");function he(t,i,n,r){return(o)=>{let s=t.append("g").attr("class","em-swimlane"),c=r.emSwimlaneBackgroundOdd??"rgb(250,250,250)",m=r.emSwimlaneBackgroundStroke??"rgb(240,240,240)";s.append("rect").attr("x",0).attr("y",o.y).attr("rx","3").attr("width",i+n.swimlanePadding).attr("height",o.height).attr("fill",c).attr("stroke",m),s.append("text").attr("font-weight",n.swimlaneTextFontWeight).attr("x",30).attr("y",o.y+30).text(o.label)}}e(he,"renderD3Swimlane");var Ee=e(function(t,i,n,r){if(a.debug("in eventmodeling renderer",t+`
|
|
3
3
|
`,"id:",i,n),!Be)throw Error("EventModeling config not found");let o=r.db,{themeVariables:s,eventmodeling:c}=l(),m=p(`[id="${i}"]`),u=o.getDiagramProps(),x=o.getState(),g=`em-arrowhead-${i}`,f=s.emArrowhead??"#000000";x.sortedSwimlanesArray.forEach(he(m,x.maxR,u,s)),x.boxes.forEach(xe(m,u)),x.relations.forEach(ge(m,u,g,s)),m.append("defs").append("marker").attr("id",g).attr("markerWidth","10").attr("markerHeight","7").attr("refX","10").attr("refY","3.5").attr("orient","auto").append("polygon").attr("points","0 0, 10 3.5, 0 7").attr("fill",f),kr(void 0,m,c?.padding??30,c?.useMaxWidth)},"draw"),Ae={draw:Ee},$e=e((t)=>"","getStyles"),Re=$e,Ue={parser:ke,db:N,renderer:Ae,styles:Re};export{Ue as diagram};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{e,Ca,a,v,B,C,S,E,T,A,R,L,l,p,Ln,Cr,Rn,Oi,qe,co,cn,Hn,M}from"./chunk-pyg1mr80.js";import"./chunk-5nda24gv.js";import{Bn,hn}from"./chunk-da7m1kva.js";import{rr,Or,ra,$r,wt}from"./chunk-h6gh63xj.js";import{Ot}from"./chunk-h0c42zy3.js";import{Se,Te}from"./chunk-qmbgb79a.js";var vn=Te(function(nr,ir){(function(t,r){typeof nr=="object"&&typeof ir<"u"?ir.exports=r():typeof define=="function"&&define.amd?define(r):(t=typeof globalThis<"u"?globalThis:t||self).dayjs_plugin_isoWeek=r()})(nr,function(){var t="day";return function(r,n,i){var s=function(D){return D.add(4-D.isoWeekday(),t)},o=n.prototype;o.isoWeekYear=function(){return s(this).year()},o.isoWeek=function(D){if(!this.$utils().u(D))return this.add(7*(D-this.isoWeek()),t);var _,z,W,G,O=s(this),V=(_=this.isoWeekYear(),z=this.$u,W=(z?i.utc:i)().year(_).startOf("year"),G=4-W.isoWeekday(),W.isoWeekday()>4&&(G+=7),W.add(G,t));return O.diff(V,"week")+1},o.isoWeekday=function(D){return this.$utils().u(D)?this.day()||7:this.day(this.day()%7?D:D-7)};var u=o.startOf;o.startOf=function(D,_){var z=this.$utils(),W=!!z.u(_)||_;return z.p(D)==="isoweek"?W?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):u.bind(this)(D,_)}}})});var xn=Te(function(ar,sr){(function(t,r){typeof ar=="object"&&typeof sr<"u"?sr.exports=r():typeof define=="function"&&define.amd?define(r):(t=typeof globalThis<"u"?globalThis:t||self).dayjs_plugin_customParseFormat=r()})(ar,function(){var t={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},r=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,n=/\d/,i=/\d\d/,s=/\d\d?/,o=/\d*[^-_:/,()\s\d]+/,u={},D=function(U){return(U=+U)+(U>68?1900:2000)},_=function(U){return function(Z){this[U]=+Z}},z=[/[+-]\d\d:?(\d\d)?|Z/,function(U){(this.zone||(this.zone={})).offset=function(Z){if(!Z)return 0;if(Z==="Z")return 0;var H=Z.match(/([+-]|\d\d)/g),tt=60*H[1]+(+H[2]||0);return tt===0?0:H[0]==="+"?-tt:tt}(U)}],W=function(U){var Z=u[U];return Z&&(Z.indexOf?Z:Z.s.concat(Z.f))},G=function(U,Z){var H,tt=u.meridiem;if(tt){for(var ft=1;ft<=24;ft+=1)if(U.indexOf(tt(ft,0,Z))>-1){H=ft>12;break}}else H=U===(Z?"pm":"PM");return H},O={A:[o,function(U){this.afternoon=G(U,!1)}],a:[o,function(U){this.afternoon=G(U,!0)}],Q:[n,function(U){this.month=3*(U-1)+1}],S:[n,function(U){this.milliseconds=100*+U}],SS:[i,function(U){this.milliseconds=10*+U}],SSS:[/\d{3}/,function(U){this.milliseconds=+U}],s:[s,_("seconds")],ss:[s,_("seconds")],m:[s,_("minutes")],mm:[s,_("minutes")],H:[s,_("hours")],h:[s,_("hours")],HH:[s,_("hours")],hh:[s,_("hours")],D:[s,_("day")],DD:[i,_("day")],Do:[o,function(U){var Z=u.ordinal,H=U.match(/\d+/);if(this.day=H[0],Z)for(var tt=1;tt<=31;tt+=1)Z(tt).replace(/\[|\]/g,"")===U&&(this.day=tt)}],w:[s,_("week")],ww:[i,_("week")],M:[s,_("month")],MM:[i,_("month")],MMM:[o,function(U){var Z=W("months"),H=(W("monthsShort")||Z.map(function(tt){return tt.slice(0,3)})).indexOf(U)+1;if(H<1)throw Error();this.month=H%12||H}],MMMM:[o,function(U){var Z=W("months").indexOf(U)+1;if(Z<1)throw Error();this.month=Z%12||Z}],Y:[/[+-]?\d+/,_("year")],YY:[i,function(U){this.year=D(U)}],YYYY:[/\d{4}/,_("year")],Z:z,ZZ:z};function V(U){var Z,H;Z=U,H=u&&u.formats;for(var tt=(U=Z.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(rt,nt,b){var I=b&&b.toUpperCase();return nt||H[b]||t[b]||H[I].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(F,P,d){return P||d.slice(1)})})).match(r),ft=tt.length,at=0;at<ft;at+=1){var j=tt[at],Y=O[j],f=Y&&Y[0],N=Y&&Y[1];tt[at]=N?{regex:f,parser:N}:j.replace(/^\[|\]$/g,"")}return function(rt){for(var nt={},b=0,I=0;b<ft;b+=1){var F=tt[b];if(typeof F=="string")I+=F.length;else{var{regex:P,parser:d}=F,w=rt.slice(I),x=P.exec(w)[0];d.call(nt,x),rt=rt.replace(x,"")}}return function(k){var Q=k.afternoon;if(Q!==void 0){var c=k.hours;Q?c<12&&(k.hours+=12):c===12&&(k.hours=0),delete k.afternoon}}(nt),nt}}return function(U,Z,H){H.p.customParseFormat=!0,U&&U.parseTwoDigitYear&&(D=U.parseTwoDigitYear);var tt=Z.prototype,ft=tt.parse;tt.parse=function(at){var{date:j,utc:Y,args:f}=at;this.$u=Y;var N=f[1];if(typeof N=="string"){var rt=f[2]===!0,nt=f[3]===!0,b=rt||nt,I=f[2];nt&&(I=f[2]),u=this.$locale(),!rt&&I&&(u=H.Ls[I]),this.$d=function(w,x,k,Q){try{if(["x","X"].indexOf(x)>-1)return new Date((x==="X"?1000:1)*w);var c=V(x)(w),{year:J,month:h,day:mt,hours:m,minutes:q,seconds:K,milliseconds:ut,zone:lt,week:it}=c,g=new Date,X=mt||(J||h?1:g.getDate()),et=J||g.getFullYear(),y=0;J&&!h||(y=h>0?h-1:g.getMonth());var ht,st=m||0,ot=q||0,yt=K||0,gt=ut||0;return lt?new Date(Date.UTC(et,y,X,st,ot,yt,gt+60*lt.offset*1000)):k?new Date(Date.UTC(et,y,X,st,ot,yt,gt)):(ht=new Date(et,y,X,st,ot,yt,gt),it&&(ht=Q(ht).week(it).toDate()),ht)}catch(Tt){return new Date("")}}(j,N,Y,H),this.init(),I&&I!==!0&&(this.$L=this.locale(I).$L),b&&j!=this.format(N)&&(this.$d=new Date("")),u={}}else if(N instanceof Array)for(var F=N.length,P=1;P<=F;P+=1){f[1]=N[P-1];var d=H.apply(this,f);if(d.isValid()){this.$d=d.$d,this.$L=d.$L,this.init();break}P===F&&(this.$d=new Date(""))}else ft.call(this,at)}}})});var bn=Te(function(or,cr){(function(t,r){typeof or=="object"&&typeof cr<"u"?cr.exports=r():typeof define=="function"&&define.amd?define(r):(t=typeof globalThis<"u"?globalThis:t||self).dayjs_plugin_advancedFormat=r()})(or,function(){return function(t,r){var n=r.prototype,i=n.format;n.format=function(s){var o=this,u=this.$locale();if(!this.isValid())return i.bind(this)(s);var D=this.$utils(),_=(s||"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(z){switch(z){case"Q":return Math.ceil((o.$M+1)/3);case"Do":return u.ordinal(o.$D);case"gggg":return o.weekYear();case"GGGG":return o.isoWeekYear();case"wo":return u.ordinal(o.week(),"W");case"w":case"ww":return D.s(o.week(),z==="w"?1:2,"0");case"W":case"WW":return D.s(o.isoWeek(),z==="W"?1:2,"0");case"k":case"kk":return D.s(String(o.$H===0?24:o.$H),z==="k"?1:2,"0");case"X":return Math.floor(o.$d.getTime()/1000);case"x":return o.$d.getTime();case"z":return"["+o.offsetName()+"]";case"zzz":return"["+o.offsetName("long")+"]";default:return z}});return i.bind(this)(_)}}})});var wn=Te(function(ur,lr){(function(t,r){typeof ur=="object"&&typeof lr<"u"?lr.exports=r():typeof define=="function"&&define.amd?define(r):(t=typeof globalThis<"u"?globalThis:t||self).dayjs_plugin_duration=r()})(ur,function(){var t,r,n=1000,i=60000,s=3600000,o=86400000,u=31536000000,D=2628000000,_=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,z=/\[([^\]]+)]|YYYY|YY|Y|M{1,2}|D{1,2}|H{1,2}|m{1,2}|s{1,2}|SSS/g,W={years:u,months:D,days:o,hours:s,minutes:i,seconds:n,milliseconds:1,weeks:604800000},G=function(j){return j instanceof ft},O=function(j,Y,f){return new ft(j,f,Y.$l)},V=function(j){return r.p(j)+"s"},U=function(j){return j<0},Z=function(j){return U(j)?Math.ceil(j):Math.floor(j)},H=function(j){return Math.abs(j)},tt=function(j,Y){return j?U(j)?{negative:!0,format:""+H(j)+Y}:{negative:!1,format:""+j+Y}:{negative:!1,format:""}},ft=function(){function j(f,N,rt){var nt=this;if(this.$d={},this.$l=rt,f===void 0&&(this.$ms=0,this.parseFromMilliseconds()),N)return O(f*W[V(N)],this);if(typeof f=="number")return this.$ms=f,this.parseFromMilliseconds(),this;if(typeof f=="object")return Object.keys(f).forEach(function(F){nt.$d[V(F)]=f[F]}),this.calMilliseconds(),this;if(typeof f=="string"){var b=f.match(_);if(b){var I=b.slice(2).map(function(F){return F!=null?Number(F):0});return this.$d.years=I[0],this.$d.months=I[1],this.$d.weeks=I[2],this.$d.days=I[3],this.$d.hours=I[4],this.$d.minutes=I[5],this.$d.seconds=I[6],this.calMilliseconds(),this}}return this}var Y=j.prototype;return Y.calMilliseconds=function(){var f=this;this.$ms=Object.keys(this.$d).reduce(function(N,rt){return N+(f.$d[rt]||0)*W[rt]},0)},Y.parseFromMilliseconds=function(){var f=this.$ms;this.$d.years=Z(f/u),f%=u,this.$d.months=Z(f/D),f%=D,this.$d.days=Z(f/o),f%=o,this.$d.hours=Z(f/s),f%=s,this.$d.minutes=Z(f/i),f%=i,this.$d.seconds=Z(f/n),f%=n,this.$d.milliseconds=f},Y.toISOString=function(){var f=tt(this.$d.years,"Y"),N=tt(this.$d.months,"M"),rt=+this.$d.days||0;this.$d.weeks&&(rt+=7*this.$d.weeks);var nt=tt(rt,"D"),b=tt(this.$d.hours,"H"),I=tt(this.$d.minutes,"M"),F=this.$d.seconds||0;this.$d.milliseconds&&(F+=this.$d.milliseconds/1000,F=Math.round(1000*F)/1000);var P=tt(F,"S"),d=f.negative||N.negative||nt.negative||b.negative||I.negative||P.negative,w=b.format||I.format||P.format?"T":"",x=(d?"-":"")+"P"+f.format+N.format+nt.format+w+b.format+I.format+P.format;return x==="P"||x==="-P"?"P0D":x},Y.toJSON=function(){return this.toISOString()},Y.format=function(f){var N=f||"YYYY-MM-DDTHH:mm:ss",rt={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 N.replace(z,function(nt,b){return b||String(rt[nt])})},Y.as=function(f){return this.$ms/W[V(f)]},Y.get=function(f){var N=this.$ms,rt=V(f);return rt==="milliseconds"?N%=1000:N=rt==="weeks"?Z(N/W[rt]):this.$d[rt],N||0},Y.add=function(f,N,rt){var nt;return nt=N?f*W[V(N)]:G(f)?f.$ms:O(f,this).$ms,O(this.$ms+nt*(rt?-1:1),this)},Y.subtract=function(f,N){return this.add(f,N,!0)},Y.locale=function(f){var N=this.clone();return N.$l=f,N},Y.clone=function(){return O(this.$ms,this)},Y.humanize=function(f){return t().add(this.$ms,"ms").locale(this.$l).fromNow(!f)},Y.valueOf=function(){return this.asMilliseconds()},Y.milliseconds=function(){return this.get("milliseconds")},Y.asMilliseconds=function(){return this.as("milliseconds")},Y.seconds=function(){return this.get("seconds")},Y.asSeconds=function(){return this.as("seconds")},Y.minutes=function(){return this.get("minutes")},Y.asMinutes=function(){return this.as("minutes")},Y.hours=function(){return this.get("hours")},Y.asHours=function(){return this.as("hours")},Y.days=function(){return this.get("days")},Y.asDays=function(){return this.as("days")},Y.weeks=function(){return this.get("weeks")},Y.asWeeks=function(){return this.as("weeks")},Y.months=function(){return this.get("months")},Y.asMonths=function(){return this.as("months")},Y.years=function(){return this.get("years")},Y.asYears=function(){return this.as("years")},j}(),at=function(j,Y,f){return j.add(Y.years()*f,"y").add(Y.months()*f,"M").add(Y.days()*f,"d").add(Y.hours()*f,"h").add(Y.minutes()*f,"m").add(Y.seconds()*f,"s").add(Y.milliseconds()*f,"ms")};return function(j,Y,f){t=f,r=f().$utils(),f.duration=function(nt,b){var I=f.locale();return O(nt,{$l:I},b)},f.isDuration=G;var N=Y.prototype.add,rt=Y.prototype.subtract;Y.prototype.add=function(nt,b){return G(nt)?at(this,nt,1):N.bind(this)(nt,b)},Y.prototype.subtract=function(nt,b){return G(nt)?at(this,nt,-1):rt.bind(this)(nt,b)}}})});function Ee(t){return t}var ye=1,Ae=2,Oe=3,he=4,_r=0.000001;function Zn(t){return"translate("+t+",0)"}function jn(t){return"translate(0,"+t+")"}function Xn(t){return(r)=>+t(r)}function Gn(t,r){if(r=Math.max(0,t.bandwidth()-r*2)/2,t.round())r=Math.round(r);return(n)=>+t(n)+r}function qn(){return!this.__axis}function Yr(t,r){var n=[],i=null,s=null,o=6,u=6,D=3,_=typeof window<"u"&&window.devicePixelRatio>1?0:0.5,z=t===ye||t===he?-1:1,W=t===he||t===Ae?"x":"y",G=t===ye||t===Oe?Zn:jn;function O(V){var U=i==null?r.ticks?r.ticks.apply(r,n):r.domain():i,Z=s==null?r.tickFormat?r.tickFormat.apply(r,n):Ee:s,H=Math.max(o,0)+D,tt=r.range(),ft=+tt[0]+_,at=+tt[tt.length-1]+_,j=(r.bandwidth?Gn:Xn)(r.copy(),_),Y=V.selection?V.selection():V,f=Y.selectAll(".domain").data([null]),N=Y.selectAll(".tick").data(U,r).order(),rt=N.exit(),nt=N.enter().append("g").attr("class","tick"),b=N.select("line"),I=N.select("text");if(f=f.merge(f.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),N=N.merge(nt),b=b.merge(nt.append("line").attr("stroke","currentColor").attr(W+"2",z*o)),I=I.merge(nt.append("text").attr("fill","currentColor").attr(W,z*H).attr("dy",t===ye?"0em":t===Oe?"0.71em":"0.32em")),V!==Y)f=f.transition(V),N=N.transition(V),b=b.transition(V),I=I.transition(V),rt=rt.transition(V).attr("opacity",_r).attr("transform",function(F){return isFinite(F=j(F))?G(F+_):this.getAttribute("transform")}),nt.attr("opacity",_r).attr("transform",function(F){var P=this.parentNode.__axis;return G((P&&isFinite(P=P(F))?P:j(F))+_)});rt.remove(),f.attr("d",t===he||t===Ae?u?"M"+z*u+","+ft+"H"+_+"V"+at+"H"+z*u:"M"+_+","+ft+"V"+at:u?"M"+ft+","+z*u+"V"+_+"H"+at+"V"+z*u:"M"+ft+","+_+"H"+at),N.attr("opacity",1).attr("transform",function(F){return G(j(F)+_)}),b.attr(W+"2",z*o),I.attr(W,z*H).text(Z),Y.filter(qn).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",t===Ae?"start":t===he?"end":"middle"),Y.each(function(){this.__axis=j})}return O.scale=function(V){return arguments.length?(r=V,O):r},O.ticks=function(){return n=Array.from(arguments),O},O.tickArguments=function(V){return arguments.length?(n=V==null?[]:Array.from(V),O):n.slice()},O.tickValues=function(V){return arguments.length?(i=V==null?null:Array.from(V),O):i&&i.slice()},O.tickFormat=function(V){return arguments.length?(s=V,O):s},O.tickSize=function(V){return arguments.length?(o=u=+V,O):o},O.tickSizeInner=function(V){return arguments.length?(o=+V,O):o},O.tickSizeOuter=function(V){return arguments.length?(u=+V,O):u},O.tickPadding=function(V){return arguments.length?(D=+V,O):D},O.offset=function(V){return arguments.length?(_=+V,O):_},O}function $e(t){return Yr(ye,t)}function He(t){return Yr(Oe,t)}var Fr=Math.PI/180,Ir=180/Math.PI;var ge=18,Ur=0.96422,Lr=1,Wr=0.82521,Er=0.13793103448275862,Qt=0.20689655172413793,Ar=3*Qt*Qt,Qn=Qt*Qt*Qt;function Hr(t){if(t instanceof Ft)return new Ft(t.l,t.a,t.b,t.opacity);if(t instanceof At)return Pr(t);if(!(t instanceof qe))t=Oi(t);var r=ze(t.r),n=ze(t.g),i=ze(t.b),s=Ne((0.2225045*r+0.7168786*n+0.0606169*i)/Lr),o,u;if(r===n&&n===i)o=u=s;else o=Ne((0.4360747*r+0.3850649*n+0.1430804*i)/Ur),u=Ne((0.0139322*r+0.0971045*n+0.7141733*i)/Wr);return new Ft(116*s-16,500*(o-s),200*(s-u),t.opacity)}function Nr(t,r,n,i){return arguments.length===1?Hr(t):new Ft(t,r,n,i==null?1:i)}function Ft(t,r,n,i){this.l=+t,this.a=+r,this.b=+n,this.opacity=+i}Ln(Ft,Nr,Cr(Rn,{brighter(t){return new Ft(this.l+ge*(t==null?1:t),this.a,this.b,this.opacity)},darker(t){return new Ft(this.l-ge*(t==null?1:t),this.a,this.b,this.opacity)},rgb(){var t=(this.l+16)/116,r=isNaN(this.a)?t:t+this.a/500,n=isNaN(this.b)?t:t-this.b/200;return r=Ur*Pe(r),t=Lr*Pe(t),n=Wr*Pe(n),new qe(Ve(3.1338561*r-1.6168667*t-0.4906146*n),Ve(-0.9787684*r+1.9161415*t+0.033454*n),Ve(0.0719453*r-0.2289914*t+1.4052427*n),this.opacity)}}));function Ne(t){return t>Qn?Math.pow(t,0.3333333333333333):t/Ar+Er}function Pe(t){return t>Qt?t*t*t:Ar*(t-Er)}function Ve(t){return 255*(t<=0.0031308?12.92*t:1.055*Math.pow(t,0.4166666666666667)-0.055)}function ze(t){return(t/=255)<=0.04045?t/12.92:Math.pow((t+0.055)/1.055,2.4)}function Jn(t){if(t instanceof At)return new At(t.h,t.c,t.l,t.opacity);if(!(t instanceof Ft))t=Hr(t);if(t.a===0&&t.b===0)return new At(NaN,0<t.l&&t.l<100?0:NaN,t.l,t.opacity);var r=Math.atan2(t.b,t.a)*Ir;return new At(r<0?r+360:r,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}function ke(t,r,n,i){return arguments.length===1?Jn(t):new At(t,r,n,i==null?1:i)}function At(t,r,n,i){this.h=+t,this.c=+r,this.l=+n,this.opacity=+i}function Pr(t){if(isNaN(t.h))return new Ft(t.l,0,0,t.opacity);var r=t.h*Fr;return new Ft(t.l,Math.cos(r)*t.c,Math.sin(r)*t.c,t.opacity)}Ln(At,ke,Cr(Rn,{brighter(t){return new At(this.h,this.c,this.l+ge*(t==null?1:t),this.opacity)},darker(t){return new At(this.h,this.c,this.l-ge*(t==null?1:t),this.opacity)},rgb(){return Pr(this).rgb()}}));function Vr(t){return function(r,n){var i=t((r=ke(r)).h,(n=ke(n)).h),s=cn(r.c,n.c),o=cn(r.l,n.l),u=cn(r.opacity,n.opacity);return function(D){return r.h=i(D),r.c=s(D),r.l=o(D),r.opacity=u(D),r+""}}}var zr=Vr(co),Ls=Vr(cn);function Re(t,r){t=t.slice();var n=0,i=t.length-1,s=t[n],o=t[i],u;if(o<s)u=n,n=i,i=u,u=s,s=o,o=u;return t[n]=r.floor(s),t[i]=r.ceil(o),t}var Be=new Date,Ze=new Date;function dt(t,r,n,i){function s(o){return t(o=arguments.length===0?new Date:new Date(+o)),o}if(s.floor=(o)=>(t(o=new Date(+o)),o),s.ceil=(o)=>(t(o=new Date(o-1)),r(o,1),t(o),o),s.round=(o)=>{let u=s(o),D=s.ceil(o);return o-u<D-o?u:D},s.offset=(o,u)=>(r(o=new Date(+o),u==null?1:Math.floor(u)),o),s.range=(o,u,D)=>{let _=[];if(o=s.ceil(o),D=D==null?1:Math.floor(D),!(o<u)||!(D>0))return _;let z;do _.push(z=new Date(+o)),r(o,D),t(o);while(z<o&&o<u);return _},s.filter=(o)=>dt((u)=>{if(u>=u)while(t(u),!o(u))u.setTime(u-1)},(u,D)=>{if(u>=u)if(D<0)while(++D<=0)while(r(u,-1),!o(u));else while(--D>=0)while(r(u,1),!o(u));}),n)s.count=(o,u)=>(Be.setTime(+o),Ze.setTime(+u),t(Be),t(Ze),Math.floor(n(Be,Ze))),s.every=(o)=>(o=Math.floor(o),!isFinite(o)||!(o>0)?null:!(o>1)?s:s.filter(i?(u)=>i(u)%o===0:(u)=>s.count(0,u)%o===0));return s}var It=dt(()=>{},(t,r)=>{t.setTime(+t+r)},(t,r)=>r-t);It.every=(t)=>{if(t=Math.floor(t),!isFinite(t)||!(t>0))return null;if(!(t>1))return It;return dt((r)=>{r.setTime(Math.floor(r/t)*t)},(r,n)=>{r.setTime(+r+n*t)},(r,n)=>(n-r)/t)};var Rr=It.range;var Ct=1000,vt=60000,Ut=3600000,Vt=86400000,se=604800000,je=2592000000,pe=31536000000;var xt=dt((t)=>{t.setTime(t-t.getMilliseconds())},(t,r)=>{t.setTime(+t+r*Ct)},(t,r)=>(r-t)/Ct,(t)=>t.getUTCSeconds()),Br=xt.range;var $t=dt((t)=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*Ct)},(t,r)=>{t.setTime(+t+r*vt)},(t,r)=>(r-t)/vt,(t)=>t.getMinutes()),Kn=$t.range,ve=dt((t)=>{t.setUTCSeconds(0,0)},(t,r)=>{t.setTime(+t+r*vt)},(t,r)=>(r-t)/vt,(t)=>t.getUTCMinutes()),ti=ve.range;var Ht=dt((t)=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*Ct-t.getMinutes()*vt)},(t,r)=>{t.setTime(+t+r*Ut)},(t,r)=>(r-t)/Ut,(t)=>t.getHours()),ei=Ht.range,xe=dt((t)=>{t.setUTCMinutes(0,0,0)},(t,r)=>{t.setTime(+t+r*Ut)},(t,r)=>(r-t)/Ut,(t)=>t.getUTCHours()),ri=xe.range;var St=dt((t)=>t.setHours(0,0,0,0),(t,r)=>t.setDate(t.getDate()+r),(t,r)=>(r-t-(r.getTimezoneOffset()-t.getTimezoneOffset())*vt)/Vt,(t)=>t.getDate()-1),ni=St.range,oe=dt((t)=>{t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCDate(t.getUTCDate()+r)},(t,r)=>(r-t)/Vt,(t)=>t.getUTCDate()-1),ii=oe.range,be=dt((t)=>{t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCDate(t.getUTCDate()+r)},(t,r)=>(r-t)/Vt,(t)=>Math.floor(t/Vt)),ai=be.range;function Bt(t){return dt((r)=>{r.setDate(r.getDate()-(r.getDay()+7-t)%7),r.setHours(0,0,0,0)},(r,n)=>{r.setDate(r.getDate()+n*7)},(r,n)=>(n-r-(n.getTimezoneOffset()-r.getTimezoneOffset())*vt)/se)}var _t=Bt(0),zt=Bt(1),we=Bt(2),Me=Bt(3),Lt=Bt(4),De=Bt(5),Ce=Bt(6),Zr=_t.range,si=zt.range,oi=we.range,ci=Me.range,ui=Lt.range,li=De.range,fi=Ce.range;function Zt(t){return dt((r)=>{r.setUTCDate(r.getUTCDate()-(r.getUTCDay()+7-t)%7),r.setUTCHours(0,0,0,0)},(r,n)=>{r.setUTCDate(r.getUTCDate()+n*7)},(r,n)=>(n-r)/se)}var jt=Zt(0),Jt=Zt(1),jr=Zt(2),Xr=Zt(3),Rt=Zt(4),Gr=Zt(5),qr=Zt(6),Qr=jt.range,di=Jt.range,mi=jr.range,hi=Xr.range,yi=Rt.range,gi=Gr.range,ki=qr.range;var Nt=dt((t)=>{t.setDate(1),t.setHours(0,0,0,0)},(t,r)=>{t.setMonth(t.getMonth()+r)},(t,r)=>r.getMonth()-t.getMonth()+(r.getFullYear()-t.getFullYear())*12,(t)=>t.getMonth()),pi=Nt.range,_e=dt((t)=>{t.setUTCDate(1),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCMonth(t.getUTCMonth()+r)},(t,r)=>r.getUTCMonth()-t.getUTCMonth()+(r.getUTCFullYear()-t.getUTCFullYear())*12,(t)=>t.getUTCMonth()),Ti=_e.range;var bt=dt((t)=>{t.setMonth(0,1),t.setHours(0,0,0,0)},(t,r)=>{t.setFullYear(t.getFullYear()+r)},(t,r)=>r.getFullYear()-t.getFullYear(),(t)=>t.getFullYear());bt.every=(t)=>!isFinite(t=Math.floor(t))||!(t>0)?null:dt((r)=>{r.setFullYear(Math.floor(r.getFullYear()/t)*t),r.setMonth(0,1),r.setHours(0,0,0,0)},(r,n)=>{r.setFullYear(r.getFullYear()+n*t)});var vi=bt.range,Yt=dt((t)=>{t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCFullYear(t.getUTCFullYear()+r)},(t,r)=>r.getUTCFullYear()-t.getUTCFullYear(),(t)=>t.getUTCFullYear());Yt.every=(t)=>!isFinite(t=Math.floor(t))||!(t>0)?null:dt((r)=>{r.setUTCFullYear(Math.floor(r.getUTCFullYear()/t)*t),r.setUTCMonth(0,1),r.setUTCHours(0,0,0,0)},(r,n)=>{r.setUTCFullYear(r.getUTCFullYear()+n*t)});var xi=Yt.range;function Jr(t,r,n,i,s,o){let u=[[xt,1,Ct],[xt,5,5*Ct],[xt,15,15*Ct],[xt,30,30*Ct],[o,1,vt],[o,5,5*vt],[o,15,15*vt],[o,30,30*vt],[s,1,Ut],[s,3,3*Ut],[s,6,6*Ut],[s,12,12*Ut],[i,1,Vt],[i,2,2*Vt],[n,1,se],[r,1,je],[r,3,3*je],[t,1,pe]];function D(z,W,G){let O=W<z;if(O)[z,W]=[W,z];let V=G&&typeof G.range==="function"?G:_(z,W,G),U=V?V.range(z,+W+1):[];return O?U.reverse():U}function _(z,W,G){let O=Math.abs(W-z)/G,V=rr(([,,H])=>H).right(u,O);if(V===u.length)return t.every(Or(z/pe,W/pe,G));if(V===0)return It.every(Math.max(Or(z,W,G),1));let[U,Z]=u[O/u[V-1][2]<u[V][2]/O?V-1:V];return U.every(Z)}return[D,_]}var[bi,wi]=Jr(Yt,_e,jt,be,xe,ve),[Xe,Ge]=Jr(bt,Nt,_t,St,Ht,$t);function Qe(t){if(0<=t.y&&t.y<100){var r=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return r.setFullYear(t.y),r}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function Je(t){if(0<=t.y&&t.y<100){var r=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return r.setUTCFullYear(t.y),r}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function ce(t,r,n){return{y:t,m:r,d:n,H:0,M:0,S:0,L:0}}function Ke(t){var{dateTime:r,date:n,time:i,periods:s,days:o,shortDays:u,months:D,shortMonths:_}=t,z=ue(s),W=le(s),G=ue(o),O=le(o),V=ue(u),U=le(u),Z=ue(D),H=le(D),tt=ue(_),ft=le(_),at={a:k,A:Q,b:c,B:J,c:null,d:an,e:an,f:ji,g:ia,G:sa,H:Ri,I:Bi,j:Zi,L:fn,m:Xi,M:Gi,p:h,q:mt,Q:un,s:ln,S:qi,u:Qi,U:Ji,V:Ki,w:ta,W:ea,x:null,X:null,y:na,Y:aa,Z:oa,"%":on},j={a:m,A:q,b:K,B:ut,c:null,d:sn,e:sn,f:fa,g:xa,G:wa,H:ca,I:ua,j:la,L:mn,m:da,M:ma,p:lt,q:it,Q:un,s:ln,S:ha,u:ya,U:ga,V:ka,w:pa,W:Ta,x:null,X:null,y:va,Y:ba,Z:Ma,"%":on},Y={a:b,A:I,b:F,B:P,c:d,d:rn,e:rn,f:Ni,g:en,G:tn,H:nn,I:nn,j:Ei,L:Hi,m:Wi,M:Ai,p:nt,q:Li,Q:Vi,s:zi,S:$i,u:_i,U:Yi,V:Fi,w:Si,W:Ii,x:w,X:x,y:en,Y:tn,Z:Ui,"%":Pi};at.x=f(n,at),at.X=f(i,at),at.c=f(r,at),j.x=f(n,j),j.X=f(i,j),j.c=f(r,j);function f(g,X){return function(et){var y=[],ht=-1,st=0,ot=g.length,yt,gt,Tt;if(!(et instanceof Date))et=new Date(+et);while(++ht<ot)if(g.charCodeAt(ht)===37){if(y.push(g.slice(st,ht)),(gt=Kr[yt=g.charAt(++ht)])!=null)yt=g.charAt(++ht);else gt=yt==="e"?" ":"0";if(Tt=X[yt])yt=Tt(et,gt);y.push(yt),st=ht+1}return y.push(g.slice(st,ht)),y.join("")}}function N(g,X){return function(et){var y=ce(1900,void 0,1),ht=rt(y,g,et+="",0),st,ot;if(ht!=et.length)return null;if("Q"in y)return new Date(y.Q);if("s"in y)return new Date(y.s*1000+("L"in y?y.L:0));if(X&&!("Z"in y))y.Z=0;if("p"in y)y.H=y.H%12+y.p*12;if(y.m===void 0)y.m="q"in y?y.q:0;if("V"in y){if(y.V<1||y.V>53)return null;if(!("w"in y))y.w=1;if("Z"in y)st=Je(ce(y.y,0,1)),ot=st.getUTCDay(),st=ot>4||ot===0?Jt.ceil(st):Jt(st),st=oe.offset(st,(y.V-1)*7),y.y=st.getUTCFullYear(),y.m=st.getUTCMonth(),y.d=st.getUTCDate()+(y.w+6)%7;else st=Qe(ce(y.y,0,1)),ot=st.getDay(),st=ot>4||ot===0?zt.ceil(st):zt(st),st=St.offset(st,(y.V-1)*7),y.y=st.getFullYear(),y.m=st.getMonth(),y.d=st.getDate()+(y.w+6)%7}else if("W"in y||"U"in y){if(!("w"in y))y.w="u"in y?y.u%7:("W"in y)?1:0;ot="Z"in y?Je(ce(y.y,0,1)).getUTCDay():Qe(ce(y.y,0,1)).getDay(),y.m=0,y.d="W"in y?(y.w+6)%7+y.W*7-(ot+5)%7:y.w+y.U*7-(ot+6)%7}if("Z"in y)return y.H+=y.Z/100|0,y.M+=y.Z%100,Je(y);return Qe(y)}}function rt(g,X,et,y){var ht=0,st=X.length,ot=et.length,yt,gt;while(ht<st){if(y>=ot)return-1;if(yt=X.charCodeAt(ht++),yt===37){if(yt=X.charAt(ht++),gt=Y[yt in Kr?X.charAt(ht++):yt],!gt||(y=gt(g,et,y))<0)return-1}else if(yt!=et.charCodeAt(y++))return-1}return y}function nt(g,X,et){var y=z.exec(X.slice(et));return y?(g.p=W.get(y[0].toLowerCase()),et+y[0].length):-1}function b(g,X,et){var y=V.exec(X.slice(et));return y?(g.w=U.get(y[0].toLowerCase()),et+y[0].length):-1}function I(g,X,et){var y=G.exec(X.slice(et));return y?(g.w=O.get(y[0].toLowerCase()),et+y[0].length):-1}function F(g,X,et){var y=tt.exec(X.slice(et));return y?(g.m=ft.get(y[0].toLowerCase()),et+y[0].length):-1}function P(g,X,et){var y=Z.exec(X.slice(et));return y?(g.m=H.get(y[0].toLowerCase()),et+y[0].length):-1}function d(g,X,et){return rt(g,r,X,et)}function w(g,X,et){return rt(g,n,X,et)}function x(g,X,et){return rt(g,i,X,et)}function k(g){return u[g.getDay()]}function Q(g){return o[g.getDay()]}function c(g){return _[g.getMonth()]}function J(g){return D[g.getMonth()]}function h(g){return s[+(g.getHours()>=12)]}function mt(g){return 1+~~(g.getMonth()/3)}function m(g){return u[g.getUTCDay()]}function q(g){return o[g.getUTCDay()]}function K(g){return _[g.getUTCMonth()]}function ut(g){return D[g.getUTCMonth()]}function lt(g){return s[+(g.getUTCHours()>=12)]}function it(g){return 1+~~(g.getUTCMonth()/3)}return{format:function(g){var X=f(g+="",at);return X.toString=function(){return g},X},parse:function(g){var X=N(g+="",!1);return X.toString=function(){return g},X},utcFormat:function(g){var X=f(g+="",j);return X.toString=function(){return g},X},utcParse:function(g){var X=N(g+="",!0);return X.toString=function(){return g},X}}}var Kr={"-":"",_:" ","0":"0"},pt=/^\s*\d+/,Mi=/^%/,Di=/[\\^$*+?|[\]().{}]/g;function ct(t,r,n){var i=t<0?"-":"",s=(i?-t:t)+"",o=s.length;return i+(o<n?Array(n-o+1).join(r)+s:s)}function Ci(t){return t.replace(Di,"\\$&")}function ue(t){return new RegExp("^(?:"+t.map(Ci).join("|")+")","i")}function le(t){return new Map(t.map((r,n)=>[r.toLowerCase(),n]))}function Si(t,r,n){var i=pt.exec(r.slice(n,n+1));return i?(t.w=+i[0],n+i[0].length):-1}function _i(t,r,n){var i=pt.exec(r.slice(n,n+1));return i?(t.u=+i[0],n+i[0].length):-1}function Yi(t,r,n){var i=pt.exec(r.slice(n,n+2));return i?(t.U=+i[0],n+i[0].length):-1}function Fi(t,r,n){var i=pt.exec(r.slice(n,n+2));return i?(t.V=+i[0],n+i[0].length):-1}function Ii(t,r,n){var i=pt.exec(r.slice(n,n+2));return i?(t.W=+i[0],n+i[0].length):-1}function tn(t,r,n){var i=pt.exec(r.slice(n,n+4));return i?(t.y=+i[0],n+i[0].length):-1}function en(t,r,n){var i=pt.exec(r.slice(n,n+2));return i?(t.y=+i[0]+(+i[0]>68?1900:2000),n+i[0].length):-1}function Ui(t,r,n){var i=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(r.slice(n,n+6));return i?(t.Z=i[1]?0:-(i[2]+(i[3]||"00")),n+i[0].length):-1}function Li(t,r,n){var i=pt.exec(r.slice(n,n+1));return i?(t.q=i[0]*3-3,n+i[0].length):-1}function Wi(t,r,n){var i=pt.exec(r.slice(n,n+2));return i?(t.m=i[0]-1,n+i[0].length):-1}function rn(t,r,n){var i=pt.exec(r.slice(n,n+2));return i?(t.d=+i[0],n+i[0].length):-1}function Ei(t,r,n){var i=pt.exec(r.slice(n,n+3));return i?(t.m=0,t.d=+i[0],n+i[0].length):-1}function nn(t,r,n){var i=pt.exec(r.slice(n,n+2));return i?(t.H=+i[0],n+i[0].length):-1}function Ai(t,r,n){var i=pt.exec(r.slice(n,n+2));return i?(t.M=+i[0],n+i[0].length):-1}function $i(t,r,n){var i=pt.exec(r.slice(n,n+2));return i?(t.S=+i[0],n+i[0].length):-1}function Hi(t,r,n){var i=pt.exec(r.slice(n,n+3));return i?(t.L=+i[0],n+i[0].length):-1}function Ni(t,r,n){var i=pt.exec(r.slice(n,n+6));return i?(t.L=Math.floor(i[0]/1000),n+i[0].length):-1}function Pi(t,r,n){var i=Mi.exec(r.slice(n,n+1));return i?n+i[0].length:-1}function Vi(t,r,n){var i=pt.exec(r.slice(n));return i?(t.Q=+i[0],n+i[0].length):-1}function zi(t,r,n){var i=pt.exec(r.slice(n));return i?(t.s=+i[0],n+i[0].length):-1}function an(t,r){return ct(t.getDate(),r,2)}function Ri(t,r){return ct(t.getHours(),r,2)}function Bi(t,r){return ct(t.getHours()%12||12,r,2)}function Zi(t,r){return ct(1+St.count(bt(t),t),r,3)}function fn(t,r){return ct(t.getMilliseconds(),r,3)}function ji(t,r){return fn(t,r)+"000"}function Xi(t,r){return ct(t.getMonth()+1,r,2)}function Gi(t,r){return ct(t.getMinutes(),r,2)}function qi(t,r){return ct(t.getSeconds(),r,2)}function Qi(t){var r=t.getDay();return r===0?7:r}function Ji(t,r){return ct(_t.count(bt(t)-1,t),r,2)}function dn(t){var r=t.getDay();return r>=4||r===0?Lt(t):Lt.ceil(t)}function Ki(t,r){return t=dn(t),ct(Lt.count(bt(t),t)+(bt(t).getDay()===4),r,2)}function ta(t){return t.getDay()}function ea(t,r){return ct(zt.count(bt(t)-1,t),r,2)}function na(t,r){return ct(t.getFullYear()%100,r,2)}function ia(t,r){return t=dn(t),ct(t.getFullYear()%100,r,2)}function aa(t,r){return ct(t.getFullYear()%1e4,r,4)}function sa(t,r){var n=t.getDay();return t=n>=4||n===0?Lt(t):Lt.ceil(t),ct(t.getFullYear()%1e4,r,4)}function oa(t){var r=t.getTimezoneOffset();return(r>0?"-":(r*=-1,"+"))+ct(r/60|0,"0",2)+ct(r%60,"0",2)}function sn(t,r){return ct(t.getUTCDate(),r,2)}function ca(t,r){return ct(t.getUTCHours(),r,2)}function ua(t,r){return ct(t.getUTCHours()%12||12,r,2)}function la(t,r){return ct(1+oe.count(Yt(t),t),r,3)}function mn(t,r){return ct(t.getUTCMilliseconds(),r,3)}function fa(t,r){return mn(t,r)+"000"}function da(t,r){return ct(t.getUTCMonth()+1,r,2)}function ma(t,r){return ct(t.getUTCMinutes(),r,2)}function ha(t,r){return ct(t.getUTCSeconds(),r,2)}function ya(t){var r=t.getUTCDay();return r===0?7:r}function ga(t,r){return ct(jt.count(Yt(t)-1,t),r,2)}function yn(t){var r=t.getUTCDay();return r>=4||r===0?Rt(t):Rt.ceil(t)}function ka(t,r){return t=yn(t),ct(Rt.count(Yt(t),t)+(Yt(t).getUTCDay()===4),r,2)}function pa(t){return t.getUTCDay()}function Ta(t,r){return ct(Jt.count(Yt(t)-1,t),r,2)}function va(t,r){return ct(t.getUTCFullYear()%100,r,2)}function xa(t,r){return t=yn(t),ct(t.getUTCFullYear()%100,r,2)}function ba(t,r){return ct(t.getUTCFullYear()%1e4,r,4)}function wa(t,r){var n=t.getUTCDay();return t=n>=4||n===0?Rt(t):Rt.ceil(t),ct(t.getUTCFullYear()%1e4,r,4)}function Ma(){return"+0000"}function on(){return"%"}function un(t){return+t}function ln(t){return Math.floor(+t/1000)}var Kt,Xt,gn,kn,pn;tr({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 tr(t){return Kt=Ke(t),Xt=Kt.format,gn=Kt.parse,kn=Kt.utcFormat,pn=Kt.utcParse,Kt}function Da(t){return new Date(t)}function Sa(t){return t instanceof Date?+t:+new Date(+t)}function Tn(t,r,n,i,s,o,u,D,_,z){var W=$r(),{invert:G,domain:O}=W,V=z(".%L"),U=z(":%S"),Z=z("%I:%M"),H=z("%I %p"),tt=z("%a %d"),ft=z("%b %d"),at=z("%B"),j=z("%Y");function Y(f){return(_(f)<f?V:D(f)<f?U:u(f)<f?Z:o(f)<f?H:i(f)<f?s(f)<f?tt:ft:n(f)<f?at:j)(f)}return W.invert=function(f){return new Date(G(f))},W.domain=function(f){return arguments.length?O(Array.from(f,Sa)):O().map(Da)},W.ticks=function(f){var N=O();return t(N[0],N[N.length-1],f==null?10:f)},W.tickFormat=function(f,N){return N==null?Y:z(N)},W.nice=function(f){var N=O();if(!f||typeof f.range!=="function")f=r(N[0],N[N.length-1],f==null?10:f);return f?O(Re(N,f)):W},W.copy=function(){return ra(W,Tn(t,r,n,i,s,o,u,D,_,z))},W}function er(){return Ot.apply(Tn(Xe,Ge,bt,Nt,_t,St,Ht,$t,xt,Xt).domain([new Date(2000,0,1),new Date(2000,0,2)]),arguments)}var Sn=Se(Hn(),1),Mt=Se(Ca(),1),_n=Se(vn(),1),Yn=Se(xn(),1),Fn=Se(bn(),1),ee=Se(Ca(),1),zn=Se(wn(),1);var dr=function(){var t=e(function(P,d,w,x){for(w=w||{},x=P.length;x--;w[P[x]]=d);return w},"o"),r=[6,8,10,12,13,14,15,16,17,18,20,21,22,23,24,25,26,27,28,29,30,31,33,35,36,38,40],n=[1,26],i=[1,27],s=[1,28],o=[1,29],u=[1,30],D=[1,31],_=[1,32],z=[1,33],W=[1,34],G=[1,9],O=[1,10],V=[1,11],U=[1,12],Z=[1,13],H=[1,14],tt=[1,15],ft=[1,16],at=[1,19],j=[1,20],Y=[1,21],f=[1,22],N=[1,23],rt=[1,25],nt=[1,35],b={trace:e(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:e(function(d,w,x,k,Q,c,J){var h=c.length-1;switch(Q){case 1:return c[h-1];case 2:this.$=[];break;case 3:c[h-1].push(c[h]),this.$=c[h-1];break;case 4:case 5:this.$=c[h];break;case 6:case 7:this.$=[];break;case 8:k.setWeekday("monday");break;case 9:k.setWeekday("tuesday");break;case 10:k.setWeekday("wednesday");break;case 11:k.setWeekday("thursday");break;case 12:k.setWeekday("friday");break;case 13:k.setWeekday("saturday");break;case 14:k.setWeekday("sunday");break;case 15:k.setWeekend("friday");break;case 16:k.setWeekend("saturday");break;case 17:k.setDateFormat(c[h].substr(11)),this.$=c[h].substr(11);break;case 18:k.enableInclusiveEndDates(),this.$=c[h].substr(18);break;case 19:k.TopAxis(),this.$=c[h].substr(8);break;case 20:k.setAxisFormat(c[h].substr(11)),this.$=c[h].substr(11);break;case 21:k.setTickInterval(c[h].substr(13)),this.$=c[h].substr(13);break;case 22:k.setExcludes(c[h].substr(9)),this.$=c[h].substr(9);break;case 23:k.setIncludes(c[h].substr(9)),this.$=c[h].substr(9);break;case 24:k.setTodayMarker(c[h].substr(12)),this.$=c[h].substr(12);break;case 27:k.setDiagramTitle(c[h].substr(6)),this.$=c[h].substr(6);break;case 28:this.$=c[h].trim(),k.setAccTitle(this.$);break;case 29:case 30:this.$=c[h].trim(),k.setAccDescription(this.$);break;case 31:k.addSection(c[h].substr(8)),this.$=c[h].substr(8);break;case 33:k.addTask(c[h-1],c[h]),this.$="task";break;case 34:this.$=c[h-1],k.setClickEvent(c[h-1],c[h],null);break;case 35:this.$=c[h-2],k.setClickEvent(c[h-2],c[h-1],c[h]);break;case 36:this.$=c[h-2],k.setClickEvent(c[h-2],c[h-1],null),k.setLink(c[h-2],c[h]);break;case 37:this.$=c[h-3],k.setClickEvent(c[h-3],c[h-2],c[h-1]),k.setLink(c[h-3],c[h]);break;case 38:this.$=c[h-2],k.setClickEvent(c[h-2],c[h],null),k.setLink(c[h-2],c[h-1]);break;case 39:this.$=c[h-3],k.setClickEvent(c[h-3],c[h-1],c[h]),k.setLink(c[h-3],c[h-2]);break;case 40:this.$=c[h-1],k.setLink(c[h-1],c[h]);break;case 41:case 47:this.$=c[h-1]+" "+c[h];break;case 42:case 43:case 45:this.$=c[h-2]+" "+c[h-1]+" "+c[h];break;case 44:case 46:this.$=c[h-3]+" "+c[h-2]+" "+c[h-1]+" "+c[h];break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},t(r,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:17,12:n,13:i,14:s,15:o,16:u,17:D,18:_,19:18,20:z,21:W,22:G,23:O,24:V,25:U,26:Z,27:H,28:tt,29:ft,30:at,31:j,33:Y,35:f,36:N,37:24,38:rt,40:nt},t(r,[2,7],{1:[2,1]}),t(r,[2,3]),{9:36,11:17,12:n,13:i,14:s,15:o,16:u,17:D,18:_,19:18,20:z,21:W,22:G,23:O,24:V,25:U,26:Z,27:H,28:tt,29:ft,30:at,31:j,33:Y,35:f,36:N,37:24,38:rt,40:nt},t(r,[2,5]),t(r,[2,6]),t(r,[2,17]),t(r,[2,18]),t(r,[2,19]),t(r,[2,20]),t(r,[2,21]),t(r,[2,22]),t(r,[2,23]),t(r,[2,24]),t(r,[2,25]),t(r,[2,26]),t(r,[2,27]),{32:[1,37]},{34:[1,38]},t(r,[2,30]),t(r,[2,31]),t(r,[2,32]),{39:[1,39]},t(r,[2,8]),t(r,[2,9]),t(r,[2,10]),t(r,[2,11]),t(r,[2,12]),t(r,[2,13]),t(r,[2,14]),t(r,[2,15]),t(r,[2,16]),{41:[1,40],43:[1,41]},t(r,[2,4]),t(r,[2,28]),t(r,[2,29]),t(r,[2,33]),t(r,[2,34],{42:[1,42],43:[1,43]}),t(r,[2,40],{41:[1,44]}),t(r,[2,35],{43:[1,45]}),t(r,[2,36]),t(r,[2,38],{42:[1,46]}),t(r,[2,37]),t(r,[2,39])],defaultActions:{},parseError:e(function(d,w){if(w.recoverable)this.trace(d);else{var x=Error(d);throw x.hash=w,x}},"parseError"),parse:e(function(d){var w=this,x=[0],k=[],Q=[null],c=[],J=this.table,h="",mt=0,m=0,q=0,K=2,ut=1,lt=c.slice.call(arguments,1),it=Object.create(this.lexer),g={yy:{}};for(var X in this.yy)if(Object.prototype.hasOwnProperty.call(this.yy,X))g.yy[X]=this.yy[X];if(it.setInput(d,g.yy),g.yy.lexer=it,g.yy.parser=this,typeof it.yylloc>"u")it.yylloc={};var et=it.yylloc;c.push(et);var y=it.options&&it.options.ranges;if(typeof g.yy.parseError==="function")this.parseError=g.yy.parseError;else this.parseError=Object.getPrototypeOf(this).parseError;function ht(Dt){x.length=x.length-2*Dt,Q.length=Q.length-Dt,c.length=c.length-Dt}e(ht,"popStack");function st(){var Dt=k.pop()||it.lex()||ut;if(typeof Dt!=="number"){if(Dt instanceof Array)k=Dt,Dt=k.pop();Dt=w.symbols_[Dt]||Dt}return Dt}e(st,"lex");var ot,yt,gt,Tt,ps,Le,qt={},de,Et,Sr,me;while(!0){if(gt=x[x.length-1],this.defaultActions[gt])Tt=this.defaultActions[gt];else{if(ot===null||typeof ot>"u")ot=st();Tt=J[gt]&&J[gt][ot]}if(typeof Tt>"u"||!Tt.length||!Tt[0]){var We="";me=[];for(de in J[gt])if(this.terminals_[de]&&de>K)me.push("'"+this.terminals_[de]+"'");if(it.showPosition)We="Parse error on line "+(mt+1)+`:
|
|
1
|
+
import{e,Ca,a,v,B,C,S,E,T,A,R,L,l,p,Ln,Cr,Rn,Oi,qe,co,cn,Hn,M}from"./chunk-5v44qv67.js";import"./chunk-5nda24gv.js";import{Bn,hn}from"./chunk-da7m1kva.js";import{rr,Or,ra,$r,wt}from"./chunk-jve1zc80.js";import{Ot}from"./chunk-h0c42zy3.js";import{Se,Te}from"./chunk-j6a4z530.js";var vn=Te(function(nr,ir){(function(t,r){typeof nr=="object"&&typeof ir<"u"?ir.exports=r():typeof define=="function"&&define.amd?define(r):(t=typeof globalThis<"u"?globalThis:t||self).dayjs_plugin_isoWeek=r()})(nr,function(){var t="day";return function(r,n,i){var s=function(D){return D.add(4-D.isoWeekday(),t)},o=n.prototype;o.isoWeekYear=function(){return s(this).year()},o.isoWeek=function(D){if(!this.$utils().u(D))return this.add(7*(D-this.isoWeek()),t);var _,z,W,G,O=s(this),V=(_=this.isoWeekYear(),z=this.$u,W=(z?i.utc:i)().year(_).startOf("year"),G=4-W.isoWeekday(),W.isoWeekday()>4&&(G+=7),W.add(G,t));return O.diff(V,"week")+1},o.isoWeekday=function(D){return this.$utils().u(D)?this.day()||7:this.day(this.day()%7?D:D-7)};var u=o.startOf;o.startOf=function(D,_){var z=this.$utils(),W=!!z.u(_)||_;return z.p(D)==="isoweek"?W?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):u.bind(this)(D,_)}}})});var xn=Te(function(ar,sr){(function(t,r){typeof ar=="object"&&typeof sr<"u"?sr.exports=r():typeof define=="function"&&define.amd?define(r):(t=typeof globalThis<"u"?globalThis:t||self).dayjs_plugin_customParseFormat=r()})(ar,function(){var t={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},r=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,n=/\d/,i=/\d\d/,s=/\d\d?/,o=/\d*[^-_:/,()\s\d]+/,u={},D=function(U){return(U=+U)+(U>68?1900:2000)},_=function(U){return function(Z){this[U]=+Z}},z=[/[+-]\d\d:?(\d\d)?|Z/,function(U){(this.zone||(this.zone={})).offset=function(Z){if(!Z)return 0;if(Z==="Z")return 0;var H=Z.match(/([+-]|\d\d)/g),tt=60*H[1]+(+H[2]||0);return tt===0?0:H[0]==="+"?-tt:tt}(U)}],W=function(U){var Z=u[U];return Z&&(Z.indexOf?Z:Z.s.concat(Z.f))},G=function(U,Z){var H,tt=u.meridiem;if(tt){for(var ft=1;ft<=24;ft+=1)if(U.indexOf(tt(ft,0,Z))>-1){H=ft>12;break}}else H=U===(Z?"pm":"PM");return H},O={A:[o,function(U){this.afternoon=G(U,!1)}],a:[o,function(U){this.afternoon=G(U,!0)}],Q:[n,function(U){this.month=3*(U-1)+1}],S:[n,function(U){this.milliseconds=100*+U}],SS:[i,function(U){this.milliseconds=10*+U}],SSS:[/\d{3}/,function(U){this.milliseconds=+U}],s:[s,_("seconds")],ss:[s,_("seconds")],m:[s,_("minutes")],mm:[s,_("minutes")],H:[s,_("hours")],h:[s,_("hours")],HH:[s,_("hours")],hh:[s,_("hours")],D:[s,_("day")],DD:[i,_("day")],Do:[o,function(U){var Z=u.ordinal,H=U.match(/\d+/);if(this.day=H[0],Z)for(var tt=1;tt<=31;tt+=1)Z(tt).replace(/\[|\]/g,"")===U&&(this.day=tt)}],w:[s,_("week")],ww:[i,_("week")],M:[s,_("month")],MM:[i,_("month")],MMM:[o,function(U){var Z=W("months"),H=(W("monthsShort")||Z.map(function(tt){return tt.slice(0,3)})).indexOf(U)+1;if(H<1)throw Error();this.month=H%12||H}],MMMM:[o,function(U){var Z=W("months").indexOf(U)+1;if(Z<1)throw Error();this.month=Z%12||Z}],Y:[/[+-]?\d+/,_("year")],YY:[i,function(U){this.year=D(U)}],YYYY:[/\d{4}/,_("year")],Z:z,ZZ:z};function V(U){var Z,H;Z=U,H=u&&u.formats;for(var tt=(U=Z.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(rt,nt,b){var I=b&&b.toUpperCase();return nt||H[b]||t[b]||H[I].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(F,P,d){return P||d.slice(1)})})).match(r),ft=tt.length,at=0;at<ft;at+=1){var j=tt[at],Y=O[j],f=Y&&Y[0],N=Y&&Y[1];tt[at]=N?{regex:f,parser:N}:j.replace(/^\[|\]$/g,"")}return function(rt){for(var nt={},b=0,I=0;b<ft;b+=1){var F=tt[b];if(typeof F=="string")I+=F.length;else{var{regex:P,parser:d}=F,w=rt.slice(I),x=P.exec(w)[0];d.call(nt,x),rt=rt.replace(x,"")}}return function(k){var Q=k.afternoon;if(Q!==void 0){var c=k.hours;Q?c<12&&(k.hours+=12):c===12&&(k.hours=0),delete k.afternoon}}(nt),nt}}return function(U,Z,H){H.p.customParseFormat=!0,U&&U.parseTwoDigitYear&&(D=U.parseTwoDigitYear);var tt=Z.prototype,ft=tt.parse;tt.parse=function(at){var{date:j,utc:Y,args:f}=at;this.$u=Y;var N=f[1];if(typeof N=="string"){var rt=f[2]===!0,nt=f[3]===!0,b=rt||nt,I=f[2];nt&&(I=f[2]),u=this.$locale(),!rt&&I&&(u=H.Ls[I]),this.$d=function(w,x,k,Q){try{if(["x","X"].indexOf(x)>-1)return new Date((x==="X"?1000:1)*w);var c=V(x)(w),{year:J,month:h,day:mt,hours:m,minutes:q,seconds:K,milliseconds:ut,zone:lt,week:it}=c,g=new Date,X=mt||(J||h?1:g.getDate()),et=J||g.getFullYear(),y=0;J&&!h||(y=h>0?h-1:g.getMonth());var ht,st=m||0,ot=q||0,yt=K||0,gt=ut||0;return lt?new Date(Date.UTC(et,y,X,st,ot,yt,gt+60*lt.offset*1000)):k?new Date(Date.UTC(et,y,X,st,ot,yt,gt)):(ht=new Date(et,y,X,st,ot,yt,gt),it&&(ht=Q(ht).week(it).toDate()),ht)}catch(Tt){return new Date("")}}(j,N,Y,H),this.init(),I&&I!==!0&&(this.$L=this.locale(I).$L),b&&j!=this.format(N)&&(this.$d=new Date("")),u={}}else if(N instanceof Array)for(var F=N.length,P=1;P<=F;P+=1){f[1]=N[P-1];var d=H.apply(this,f);if(d.isValid()){this.$d=d.$d,this.$L=d.$L,this.init();break}P===F&&(this.$d=new Date(""))}else ft.call(this,at)}}})});var bn=Te(function(or,cr){(function(t,r){typeof or=="object"&&typeof cr<"u"?cr.exports=r():typeof define=="function"&&define.amd?define(r):(t=typeof globalThis<"u"?globalThis:t||self).dayjs_plugin_advancedFormat=r()})(or,function(){return function(t,r){var n=r.prototype,i=n.format;n.format=function(s){var o=this,u=this.$locale();if(!this.isValid())return i.bind(this)(s);var D=this.$utils(),_=(s||"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(z){switch(z){case"Q":return Math.ceil((o.$M+1)/3);case"Do":return u.ordinal(o.$D);case"gggg":return o.weekYear();case"GGGG":return o.isoWeekYear();case"wo":return u.ordinal(o.week(),"W");case"w":case"ww":return D.s(o.week(),z==="w"?1:2,"0");case"W":case"WW":return D.s(o.isoWeek(),z==="W"?1:2,"0");case"k":case"kk":return D.s(String(o.$H===0?24:o.$H),z==="k"?1:2,"0");case"X":return Math.floor(o.$d.getTime()/1000);case"x":return o.$d.getTime();case"z":return"["+o.offsetName()+"]";case"zzz":return"["+o.offsetName("long")+"]";default:return z}});return i.bind(this)(_)}}})});var wn=Te(function(ur,lr){(function(t,r){typeof ur=="object"&&typeof lr<"u"?lr.exports=r():typeof define=="function"&&define.amd?define(r):(t=typeof globalThis<"u"?globalThis:t||self).dayjs_plugin_duration=r()})(ur,function(){var t,r,n=1000,i=60000,s=3600000,o=86400000,u=31536000000,D=2628000000,_=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,z=/\[([^\]]+)]|YYYY|YY|Y|M{1,2}|D{1,2}|H{1,2}|m{1,2}|s{1,2}|SSS/g,W={years:u,months:D,days:o,hours:s,minutes:i,seconds:n,milliseconds:1,weeks:604800000},G=function(j){return j instanceof ft},O=function(j,Y,f){return new ft(j,f,Y.$l)},V=function(j){return r.p(j)+"s"},U=function(j){return j<0},Z=function(j){return U(j)?Math.ceil(j):Math.floor(j)},H=function(j){return Math.abs(j)},tt=function(j,Y){return j?U(j)?{negative:!0,format:""+H(j)+Y}:{negative:!1,format:""+j+Y}:{negative:!1,format:""}},ft=function(){function j(f,N,rt){var nt=this;if(this.$d={},this.$l=rt,f===void 0&&(this.$ms=0,this.parseFromMilliseconds()),N)return O(f*W[V(N)],this);if(typeof f=="number")return this.$ms=f,this.parseFromMilliseconds(),this;if(typeof f=="object")return Object.keys(f).forEach(function(F){nt.$d[V(F)]=f[F]}),this.calMilliseconds(),this;if(typeof f=="string"){var b=f.match(_);if(b){var I=b.slice(2).map(function(F){return F!=null?Number(F):0});return this.$d.years=I[0],this.$d.months=I[1],this.$d.weeks=I[2],this.$d.days=I[3],this.$d.hours=I[4],this.$d.minutes=I[5],this.$d.seconds=I[6],this.calMilliseconds(),this}}return this}var Y=j.prototype;return Y.calMilliseconds=function(){var f=this;this.$ms=Object.keys(this.$d).reduce(function(N,rt){return N+(f.$d[rt]||0)*W[rt]},0)},Y.parseFromMilliseconds=function(){var f=this.$ms;this.$d.years=Z(f/u),f%=u,this.$d.months=Z(f/D),f%=D,this.$d.days=Z(f/o),f%=o,this.$d.hours=Z(f/s),f%=s,this.$d.minutes=Z(f/i),f%=i,this.$d.seconds=Z(f/n),f%=n,this.$d.milliseconds=f},Y.toISOString=function(){var f=tt(this.$d.years,"Y"),N=tt(this.$d.months,"M"),rt=+this.$d.days||0;this.$d.weeks&&(rt+=7*this.$d.weeks);var nt=tt(rt,"D"),b=tt(this.$d.hours,"H"),I=tt(this.$d.minutes,"M"),F=this.$d.seconds||0;this.$d.milliseconds&&(F+=this.$d.milliseconds/1000,F=Math.round(1000*F)/1000);var P=tt(F,"S"),d=f.negative||N.negative||nt.negative||b.negative||I.negative||P.negative,w=b.format||I.format||P.format?"T":"",x=(d?"-":"")+"P"+f.format+N.format+nt.format+w+b.format+I.format+P.format;return x==="P"||x==="-P"?"P0D":x},Y.toJSON=function(){return this.toISOString()},Y.format=function(f){var N=f||"YYYY-MM-DDTHH:mm:ss",rt={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 N.replace(z,function(nt,b){return b||String(rt[nt])})},Y.as=function(f){return this.$ms/W[V(f)]},Y.get=function(f){var N=this.$ms,rt=V(f);return rt==="milliseconds"?N%=1000:N=rt==="weeks"?Z(N/W[rt]):this.$d[rt],N||0},Y.add=function(f,N,rt){var nt;return nt=N?f*W[V(N)]:G(f)?f.$ms:O(f,this).$ms,O(this.$ms+nt*(rt?-1:1),this)},Y.subtract=function(f,N){return this.add(f,N,!0)},Y.locale=function(f){var N=this.clone();return N.$l=f,N},Y.clone=function(){return O(this.$ms,this)},Y.humanize=function(f){return t().add(this.$ms,"ms").locale(this.$l).fromNow(!f)},Y.valueOf=function(){return this.asMilliseconds()},Y.milliseconds=function(){return this.get("milliseconds")},Y.asMilliseconds=function(){return this.as("milliseconds")},Y.seconds=function(){return this.get("seconds")},Y.asSeconds=function(){return this.as("seconds")},Y.minutes=function(){return this.get("minutes")},Y.asMinutes=function(){return this.as("minutes")},Y.hours=function(){return this.get("hours")},Y.asHours=function(){return this.as("hours")},Y.days=function(){return this.get("days")},Y.asDays=function(){return this.as("days")},Y.weeks=function(){return this.get("weeks")},Y.asWeeks=function(){return this.as("weeks")},Y.months=function(){return this.get("months")},Y.asMonths=function(){return this.as("months")},Y.years=function(){return this.get("years")},Y.asYears=function(){return this.as("years")},j}(),at=function(j,Y,f){return j.add(Y.years()*f,"y").add(Y.months()*f,"M").add(Y.days()*f,"d").add(Y.hours()*f,"h").add(Y.minutes()*f,"m").add(Y.seconds()*f,"s").add(Y.milliseconds()*f,"ms")};return function(j,Y,f){t=f,r=f().$utils(),f.duration=function(nt,b){var I=f.locale();return O(nt,{$l:I},b)},f.isDuration=G;var N=Y.prototype.add,rt=Y.prototype.subtract;Y.prototype.add=function(nt,b){return G(nt)?at(this,nt,1):N.bind(this)(nt,b)},Y.prototype.subtract=function(nt,b){return G(nt)?at(this,nt,-1):rt.bind(this)(nt,b)}}})});function Ee(t){return t}var ye=1,Ae=2,Oe=3,he=4,_r=0.000001;function Zn(t){return"translate("+t+",0)"}function jn(t){return"translate(0,"+t+")"}function Xn(t){return(r)=>+t(r)}function Gn(t,r){if(r=Math.max(0,t.bandwidth()-r*2)/2,t.round())r=Math.round(r);return(n)=>+t(n)+r}function qn(){return!this.__axis}function Yr(t,r){var n=[],i=null,s=null,o=6,u=6,D=3,_=typeof window<"u"&&window.devicePixelRatio>1?0:0.5,z=t===ye||t===he?-1:1,W=t===he||t===Ae?"x":"y",G=t===ye||t===Oe?Zn:jn;function O(V){var U=i==null?r.ticks?r.ticks.apply(r,n):r.domain():i,Z=s==null?r.tickFormat?r.tickFormat.apply(r,n):Ee:s,H=Math.max(o,0)+D,tt=r.range(),ft=+tt[0]+_,at=+tt[tt.length-1]+_,j=(r.bandwidth?Gn:Xn)(r.copy(),_),Y=V.selection?V.selection():V,f=Y.selectAll(".domain").data([null]),N=Y.selectAll(".tick").data(U,r).order(),rt=N.exit(),nt=N.enter().append("g").attr("class","tick"),b=N.select("line"),I=N.select("text");if(f=f.merge(f.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),N=N.merge(nt),b=b.merge(nt.append("line").attr("stroke","currentColor").attr(W+"2",z*o)),I=I.merge(nt.append("text").attr("fill","currentColor").attr(W,z*H).attr("dy",t===ye?"0em":t===Oe?"0.71em":"0.32em")),V!==Y)f=f.transition(V),N=N.transition(V),b=b.transition(V),I=I.transition(V),rt=rt.transition(V).attr("opacity",_r).attr("transform",function(F){return isFinite(F=j(F))?G(F+_):this.getAttribute("transform")}),nt.attr("opacity",_r).attr("transform",function(F){var P=this.parentNode.__axis;return G((P&&isFinite(P=P(F))?P:j(F))+_)});rt.remove(),f.attr("d",t===he||t===Ae?u?"M"+z*u+","+ft+"H"+_+"V"+at+"H"+z*u:"M"+_+","+ft+"V"+at:u?"M"+ft+","+z*u+"V"+_+"H"+at+"V"+z*u:"M"+ft+","+_+"H"+at),N.attr("opacity",1).attr("transform",function(F){return G(j(F)+_)}),b.attr(W+"2",z*o),I.attr(W,z*H).text(Z),Y.filter(qn).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",t===Ae?"start":t===he?"end":"middle"),Y.each(function(){this.__axis=j})}return O.scale=function(V){return arguments.length?(r=V,O):r},O.ticks=function(){return n=Array.from(arguments),O},O.tickArguments=function(V){return arguments.length?(n=V==null?[]:Array.from(V),O):n.slice()},O.tickValues=function(V){return arguments.length?(i=V==null?null:Array.from(V),O):i&&i.slice()},O.tickFormat=function(V){return arguments.length?(s=V,O):s},O.tickSize=function(V){return arguments.length?(o=u=+V,O):o},O.tickSizeInner=function(V){return arguments.length?(o=+V,O):o},O.tickSizeOuter=function(V){return arguments.length?(u=+V,O):u},O.tickPadding=function(V){return arguments.length?(D=+V,O):D},O.offset=function(V){return arguments.length?(_=+V,O):_},O}function $e(t){return Yr(ye,t)}function He(t){return Yr(Oe,t)}var Fr=Math.PI/180,Ir=180/Math.PI;var ge=18,Ur=0.96422,Lr=1,Wr=0.82521,Er=0.13793103448275862,Qt=0.20689655172413793,Ar=3*Qt*Qt,Qn=Qt*Qt*Qt;function Hr(t){if(t instanceof Ft)return new Ft(t.l,t.a,t.b,t.opacity);if(t instanceof At)return Pr(t);if(!(t instanceof qe))t=Oi(t);var r=ze(t.r),n=ze(t.g),i=ze(t.b),s=Ne((0.2225045*r+0.7168786*n+0.0606169*i)/Lr),o,u;if(r===n&&n===i)o=u=s;else o=Ne((0.4360747*r+0.3850649*n+0.1430804*i)/Ur),u=Ne((0.0139322*r+0.0971045*n+0.7141733*i)/Wr);return new Ft(116*s-16,500*(o-s),200*(s-u),t.opacity)}function Nr(t,r,n,i){return arguments.length===1?Hr(t):new Ft(t,r,n,i==null?1:i)}function Ft(t,r,n,i){this.l=+t,this.a=+r,this.b=+n,this.opacity=+i}Ln(Ft,Nr,Cr(Rn,{brighter(t){return new Ft(this.l+ge*(t==null?1:t),this.a,this.b,this.opacity)},darker(t){return new Ft(this.l-ge*(t==null?1:t),this.a,this.b,this.opacity)},rgb(){var t=(this.l+16)/116,r=isNaN(this.a)?t:t+this.a/500,n=isNaN(this.b)?t:t-this.b/200;return r=Ur*Pe(r),t=Lr*Pe(t),n=Wr*Pe(n),new qe(Ve(3.1338561*r-1.6168667*t-0.4906146*n),Ve(-0.9787684*r+1.9161415*t+0.033454*n),Ve(0.0719453*r-0.2289914*t+1.4052427*n),this.opacity)}}));function Ne(t){return t>Qn?Math.pow(t,0.3333333333333333):t/Ar+Er}function Pe(t){return t>Qt?t*t*t:Ar*(t-Er)}function Ve(t){return 255*(t<=0.0031308?12.92*t:1.055*Math.pow(t,0.4166666666666667)-0.055)}function ze(t){return(t/=255)<=0.04045?t/12.92:Math.pow((t+0.055)/1.055,2.4)}function Jn(t){if(t instanceof At)return new At(t.h,t.c,t.l,t.opacity);if(!(t instanceof Ft))t=Hr(t);if(t.a===0&&t.b===0)return new At(NaN,0<t.l&&t.l<100?0:NaN,t.l,t.opacity);var r=Math.atan2(t.b,t.a)*Ir;return new At(r<0?r+360:r,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}function ke(t,r,n,i){return arguments.length===1?Jn(t):new At(t,r,n,i==null?1:i)}function At(t,r,n,i){this.h=+t,this.c=+r,this.l=+n,this.opacity=+i}function Pr(t){if(isNaN(t.h))return new Ft(t.l,0,0,t.opacity);var r=t.h*Fr;return new Ft(t.l,Math.cos(r)*t.c,Math.sin(r)*t.c,t.opacity)}Ln(At,ke,Cr(Rn,{brighter(t){return new At(this.h,this.c,this.l+ge*(t==null?1:t),this.opacity)},darker(t){return new At(this.h,this.c,this.l-ge*(t==null?1:t),this.opacity)},rgb(){return Pr(this).rgb()}}));function Vr(t){return function(r,n){var i=t((r=ke(r)).h,(n=ke(n)).h),s=cn(r.c,n.c),o=cn(r.l,n.l),u=cn(r.opacity,n.opacity);return function(D){return r.h=i(D),r.c=s(D),r.l=o(D),r.opacity=u(D),r+""}}}var zr=Vr(co),Ls=Vr(cn);function Re(t,r){t=t.slice();var n=0,i=t.length-1,s=t[n],o=t[i],u;if(o<s)u=n,n=i,i=u,u=s,s=o,o=u;return t[n]=r.floor(s),t[i]=r.ceil(o),t}var Be=new Date,Ze=new Date;function dt(t,r,n,i){function s(o){return t(o=arguments.length===0?new Date:new Date(+o)),o}if(s.floor=(o)=>(t(o=new Date(+o)),o),s.ceil=(o)=>(t(o=new Date(o-1)),r(o,1),t(o),o),s.round=(o)=>{let u=s(o),D=s.ceil(o);return o-u<D-o?u:D},s.offset=(o,u)=>(r(o=new Date(+o),u==null?1:Math.floor(u)),o),s.range=(o,u,D)=>{let _=[];if(o=s.ceil(o),D=D==null?1:Math.floor(D),!(o<u)||!(D>0))return _;let z;do _.push(z=new Date(+o)),r(o,D),t(o);while(z<o&&o<u);return _},s.filter=(o)=>dt((u)=>{if(u>=u)while(t(u),!o(u))u.setTime(u-1)},(u,D)=>{if(u>=u)if(D<0)while(++D<=0)while(r(u,-1),!o(u));else while(--D>=0)while(r(u,1),!o(u));}),n)s.count=(o,u)=>(Be.setTime(+o),Ze.setTime(+u),t(Be),t(Ze),Math.floor(n(Be,Ze))),s.every=(o)=>(o=Math.floor(o),!isFinite(o)||!(o>0)?null:!(o>1)?s:s.filter(i?(u)=>i(u)%o===0:(u)=>s.count(0,u)%o===0));return s}var It=dt(()=>{},(t,r)=>{t.setTime(+t+r)},(t,r)=>r-t);It.every=(t)=>{if(t=Math.floor(t),!isFinite(t)||!(t>0))return null;if(!(t>1))return It;return dt((r)=>{r.setTime(Math.floor(r/t)*t)},(r,n)=>{r.setTime(+r+n*t)},(r,n)=>(n-r)/t)};var Rr=It.range;var Ct=1000,vt=60000,Ut=3600000,Vt=86400000,se=604800000,je=2592000000,pe=31536000000;var xt=dt((t)=>{t.setTime(t-t.getMilliseconds())},(t,r)=>{t.setTime(+t+r*Ct)},(t,r)=>(r-t)/Ct,(t)=>t.getUTCSeconds()),Br=xt.range;var $t=dt((t)=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*Ct)},(t,r)=>{t.setTime(+t+r*vt)},(t,r)=>(r-t)/vt,(t)=>t.getMinutes()),Kn=$t.range,ve=dt((t)=>{t.setUTCSeconds(0,0)},(t,r)=>{t.setTime(+t+r*vt)},(t,r)=>(r-t)/vt,(t)=>t.getUTCMinutes()),ti=ve.range;var Ht=dt((t)=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*Ct-t.getMinutes()*vt)},(t,r)=>{t.setTime(+t+r*Ut)},(t,r)=>(r-t)/Ut,(t)=>t.getHours()),ei=Ht.range,xe=dt((t)=>{t.setUTCMinutes(0,0,0)},(t,r)=>{t.setTime(+t+r*Ut)},(t,r)=>(r-t)/Ut,(t)=>t.getUTCHours()),ri=xe.range;var St=dt((t)=>t.setHours(0,0,0,0),(t,r)=>t.setDate(t.getDate()+r),(t,r)=>(r-t-(r.getTimezoneOffset()-t.getTimezoneOffset())*vt)/Vt,(t)=>t.getDate()-1),ni=St.range,oe=dt((t)=>{t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCDate(t.getUTCDate()+r)},(t,r)=>(r-t)/Vt,(t)=>t.getUTCDate()-1),ii=oe.range,be=dt((t)=>{t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCDate(t.getUTCDate()+r)},(t,r)=>(r-t)/Vt,(t)=>Math.floor(t/Vt)),ai=be.range;function Bt(t){return dt((r)=>{r.setDate(r.getDate()-(r.getDay()+7-t)%7),r.setHours(0,0,0,0)},(r,n)=>{r.setDate(r.getDate()+n*7)},(r,n)=>(n-r-(n.getTimezoneOffset()-r.getTimezoneOffset())*vt)/se)}var _t=Bt(0),zt=Bt(1),we=Bt(2),Me=Bt(3),Lt=Bt(4),De=Bt(5),Ce=Bt(6),Zr=_t.range,si=zt.range,oi=we.range,ci=Me.range,ui=Lt.range,li=De.range,fi=Ce.range;function Zt(t){return dt((r)=>{r.setUTCDate(r.getUTCDate()-(r.getUTCDay()+7-t)%7),r.setUTCHours(0,0,0,0)},(r,n)=>{r.setUTCDate(r.getUTCDate()+n*7)},(r,n)=>(n-r)/se)}var jt=Zt(0),Jt=Zt(1),jr=Zt(2),Xr=Zt(3),Rt=Zt(4),Gr=Zt(5),qr=Zt(6),Qr=jt.range,di=Jt.range,mi=jr.range,hi=Xr.range,yi=Rt.range,gi=Gr.range,ki=qr.range;var Nt=dt((t)=>{t.setDate(1),t.setHours(0,0,0,0)},(t,r)=>{t.setMonth(t.getMonth()+r)},(t,r)=>r.getMonth()-t.getMonth()+(r.getFullYear()-t.getFullYear())*12,(t)=>t.getMonth()),pi=Nt.range,_e=dt((t)=>{t.setUTCDate(1),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCMonth(t.getUTCMonth()+r)},(t,r)=>r.getUTCMonth()-t.getUTCMonth()+(r.getUTCFullYear()-t.getUTCFullYear())*12,(t)=>t.getUTCMonth()),Ti=_e.range;var bt=dt((t)=>{t.setMonth(0,1),t.setHours(0,0,0,0)},(t,r)=>{t.setFullYear(t.getFullYear()+r)},(t,r)=>r.getFullYear()-t.getFullYear(),(t)=>t.getFullYear());bt.every=(t)=>!isFinite(t=Math.floor(t))||!(t>0)?null:dt((r)=>{r.setFullYear(Math.floor(r.getFullYear()/t)*t),r.setMonth(0,1),r.setHours(0,0,0,0)},(r,n)=>{r.setFullYear(r.getFullYear()+n*t)});var vi=bt.range,Yt=dt((t)=>{t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCFullYear(t.getUTCFullYear()+r)},(t,r)=>r.getUTCFullYear()-t.getUTCFullYear(),(t)=>t.getUTCFullYear());Yt.every=(t)=>!isFinite(t=Math.floor(t))||!(t>0)?null:dt((r)=>{r.setUTCFullYear(Math.floor(r.getUTCFullYear()/t)*t),r.setUTCMonth(0,1),r.setUTCHours(0,0,0,0)},(r,n)=>{r.setUTCFullYear(r.getUTCFullYear()+n*t)});var xi=Yt.range;function Jr(t,r,n,i,s,o){let u=[[xt,1,Ct],[xt,5,5*Ct],[xt,15,15*Ct],[xt,30,30*Ct],[o,1,vt],[o,5,5*vt],[o,15,15*vt],[o,30,30*vt],[s,1,Ut],[s,3,3*Ut],[s,6,6*Ut],[s,12,12*Ut],[i,1,Vt],[i,2,2*Vt],[n,1,se],[r,1,je],[r,3,3*je],[t,1,pe]];function D(z,W,G){let O=W<z;if(O)[z,W]=[W,z];let V=G&&typeof G.range==="function"?G:_(z,W,G),U=V?V.range(z,+W+1):[];return O?U.reverse():U}function _(z,W,G){let O=Math.abs(W-z)/G,V=rr(([,,H])=>H).right(u,O);if(V===u.length)return t.every(Or(z/pe,W/pe,G));if(V===0)return It.every(Math.max(Or(z,W,G),1));let[U,Z]=u[O/u[V-1][2]<u[V][2]/O?V-1:V];return U.every(Z)}return[D,_]}var[bi,wi]=Jr(Yt,_e,jt,be,xe,ve),[Xe,Ge]=Jr(bt,Nt,_t,St,Ht,$t);function Qe(t){if(0<=t.y&&t.y<100){var r=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return r.setFullYear(t.y),r}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function Je(t){if(0<=t.y&&t.y<100){var r=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return r.setUTCFullYear(t.y),r}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function ce(t,r,n){return{y:t,m:r,d:n,H:0,M:0,S:0,L:0}}function Ke(t){var{dateTime:r,date:n,time:i,periods:s,days:o,shortDays:u,months:D,shortMonths:_}=t,z=ue(s),W=le(s),G=ue(o),O=le(o),V=ue(u),U=le(u),Z=ue(D),H=le(D),tt=ue(_),ft=le(_),at={a:k,A:Q,b:c,B:J,c:null,d:an,e:an,f:ji,g:ia,G:sa,H:Ri,I:Bi,j:Zi,L:fn,m:Xi,M:Gi,p:h,q:mt,Q:un,s:ln,S:qi,u:Qi,U:Ji,V:Ki,w:ta,W:ea,x:null,X:null,y:na,Y:aa,Z:oa,"%":on},j={a:m,A:q,b:K,B:ut,c:null,d:sn,e:sn,f:fa,g:xa,G:wa,H:ca,I:ua,j:la,L:mn,m:da,M:ma,p:lt,q:it,Q:un,s:ln,S:ha,u:ya,U:ga,V:ka,w:pa,W:Ta,x:null,X:null,y:va,Y:ba,Z:Ma,"%":on},Y={a:b,A:I,b:F,B:P,c:d,d:rn,e:rn,f:Ni,g:en,G:tn,H:nn,I:nn,j:Ei,L:Hi,m:Wi,M:Ai,p:nt,q:Li,Q:Vi,s:zi,S:$i,u:_i,U:Yi,V:Fi,w:Si,W:Ii,x:w,X:x,y:en,Y:tn,Z:Ui,"%":Pi};at.x=f(n,at),at.X=f(i,at),at.c=f(r,at),j.x=f(n,j),j.X=f(i,j),j.c=f(r,j);function f(g,X){return function(et){var y=[],ht=-1,st=0,ot=g.length,yt,gt,Tt;if(!(et instanceof Date))et=new Date(+et);while(++ht<ot)if(g.charCodeAt(ht)===37){if(y.push(g.slice(st,ht)),(gt=Kr[yt=g.charAt(++ht)])!=null)yt=g.charAt(++ht);else gt=yt==="e"?" ":"0";if(Tt=X[yt])yt=Tt(et,gt);y.push(yt),st=ht+1}return y.push(g.slice(st,ht)),y.join("")}}function N(g,X){return function(et){var y=ce(1900,void 0,1),ht=rt(y,g,et+="",0),st,ot;if(ht!=et.length)return null;if("Q"in y)return new Date(y.Q);if("s"in y)return new Date(y.s*1000+("L"in y?y.L:0));if(X&&!("Z"in y))y.Z=0;if("p"in y)y.H=y.H%12+y.p*12;if(y.m===void 0)y.m="q"in y?y.q:0;if("V"in y){if(y.V<1||y.V>53)return null;if(!("w"in y))y.w=1;if("Z"in y)st=Je(ce(y.y,0,1)),ot=st.getUTCDay(),st=ot>4||ot===0?Jt.ceil(st):Jt(st),st=oe.offset(st,(y.V-1)*7),y.y=st.getUTCFullYear(),y.m=st.getUTCMonth(),y.d=st.getUTCDate()+(y.w+6)%7;else st=Qe(ce(y.y,0,1)),ot=st.getDay(),st=ot>4||ot===0?zt.ceil(st):zt(st),st=St.offset(st,(y.V-1)*7),y.y=st.getFullYear(),y.m=st.getMonth(),y.d=st.getDate()+(y.w+6)%7}else if("W"in y||"U"in y){if(!("w"in y))y.w="u"in y?y.u%7:("W"in y)?1:0;ot="Z"in y?Je(ce(y.y,0,1)).getUTCDay():Qe(ce(y.y,0,1)).getDay(),y.m=0,y.d="W"in y?(y.w+6)%7+y.W*7-(ot+5)%7:y.w+y.U*7-(ot+6)%7}if("Z"in y)return y.H+=y.Z/100|0,y.M+=y.Z%100,Je(y);return Qe(y)}}function rt(g,X,et,y){var ht=0,st=X.length,ot=et.length,yt,gt;while(ht<st){if(y>=ot)return-1;if(yt=X.charCodeAt(ht++),yt===37){if(yt=X.charAt(ht++),gt=Y[yt in Kr?X.charAt(ht++):yt],!gt||(y=gt(g,et,y))<0)return-1}else if(yt!=et.charCodeAt(y++))return-1}return y}function nt(g,X,et){var y=z.exec(X.slice(et));return y?(g.p=W.get(y[0].toLowerCase()),et+y[0].length):-1}function b(g,X,et){var y=V.exec(X.slice(et));return y?(g.w=U.get(y[0].toLowerCase()),et+y[0].length):-1}function I(g,X,et){var y=G.exec(X.slice(et));return y?(g.w=O.get(y[0].toLowerCase()),et+y[0].length):-1}function F(g,X,et){var y=tt.exec(X.slice(et));return y?(g.m=ft.get(y[0].toLowerCase()),et+y[0].length):-1}function P(g,X,et){var y=Z.exec(X.slice(et));return y?(g.m=H.get(y[0].toLowerCase()),et+y[0].length):-1}function d(g,X,et){return rt(g,r,X,et)}function w(g,X,et){return rt(g,n,X,et)}function x(g,X,et){return rt(g,i,X,et)}function k(g){return u[g.getDay()]}function Q(g){return o[g.getDay()]}function c(g){return _[g.getMonth()]}function J(g){return D[g.getMonth()]}function h(g){return s[+(g.getHours()>=12)]}function mt(g){return 1+~~(g.getMonth()/3)}function m(g){return u[g.getUTCDay()]}function q(g){return o[g.getUTCDay()]}function K(g){return _[g.getUTCMonth()]}function ut(g){return D[g.getUTCMonth()]}function lt(g){return s[+(g.getUTCHours()>=12)]}function it(g){return 1+~~(g.getUTCMonth()/3)}return{format:function(g){var X=f(g+="",at);return X.toString=function(){return g},X},parse:function(g){var X=N(g+="",!1);return X.toString=function(){return g},X},utcFormat:function(g){var X=f(g+="",j);return X.toString=function(){return g},X},utcParse:function(g){var X=N(g+="",!0);return X.toString=function(){return g},X}}}var Kr={"-":"",_:" ","0":"0"},pt=/^\s*\d+/,Mi=/^%/,Di=/[\\^$*+?|[\]().{}]/g;function ct(t,r,n){var i=t<0?"-":"",s=(i?-t:t)+"",o=s.length;return i+(o<n?Array(n-o+1).join(r)+s:s)}function Ci(t){return t.replace(Di,"\\$&")}function ue(t){return new RegExp("^(?:"+t.map(Ci).join("|")+")","i")}function le(t){return new Map(t.map((r,n)=>[r.toLowerCase(),n]))}function Si(t,r,n){var i=pt.exec(r.slice(n,n+1));return i?(t.w=+i[0],n+i[0].length):-1}function _i(t,r,n){var i=pt.exec(r.slice(n,n+1));return i?(t.u=+i[0],n+i[0].length):-1}function Yi(t,r,n){var i=pt.exec(r.slice(n,n+2));return i?(t.U=+i[0],n+i[0].length):-1}function Fi(t,r,n){var i=pt.exec(r.slice(n,n+2));return i?(t.V=+i[0],n+i[0].length):-1}function Ii(t,r,n){var i=pt.exec(r.slice(n,n+2));return i?(t.W=+i[0],n+i[0].length):-1}function tn(t,r,n){var i=pt.exec(r.slice(n,n+4));return i?(t.y=+i[0],n+i[0].length):-1}function en(t,r,n){var i=pt.exec(r.slice(n,n+2));return i?(t.y=+i[0]+(+i[0]>68?1900:2000),n+i[0].length):-1}function Ui(t,r,n){var i=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(r.slice(n,n+6));return i?(t.Z=i[1]?0:-(i[2]+(i[3]||"00")),n+i[0].length):-1}function Li(t,r,n){var i=pt.exec(r.slice(n,n+1));return i?(t.q=i[0]*3-3,n+i[0].length):-1}function Wi(t,r,n){var i=pt.exec(r.slice(n,n+2));return i?(t.m=i[0]-1,n+i[0].length):-1}function rn(t,r,n){var i=pt.exec(r.slice(n,n+2));return i?(t.d=+i[0],n+i[0].length):-1}function Ei(t,r,n){var i=pt.exec(r.slice(n,n+3));return i?(t.m=0,t.d=+i[0],n+i[0].length):-1}function nn(t,r,n){var i=pt.exec(r.slice(n,n+2));return i?(t.H=+i[0],n+i[0].length):-1}function Ai(t,r,n){var i=pt.exec(r.slice(n,n+2));return i?(t.M=+i[0],n+i[0].length):-1}function $i(t,r,n){var i=pt.exec(r.slice(n,n+2));return i?(t.S=+i[0],n+i[0].length):-1}function Hi(t,r,n){var i=pt.exec(r.slice(n,n+3));return i?(t.L=+i[0],n+i[0].length):-1}function Ni(t,r,n){var i=pt.exec(r.slice(n,n+6));return i?(t.L=Math.floor(i[0]/1000),n+i[0].length):-1}function Pi(t,r,n){var i=Mi.exec(r.slice(n,n+1));return i?n+i[0].length:-1}function Vi(t,r,n){var i=pt.exec(r.slice(n));return i?(t.Q=+i[0],n+i[0].length):-1}function zi(t,r,n){var i=pt.exec(r.slice(n));return i?(t.s=+i[0],n+i[0].length):-1}function an(t,r){return ct(t.getDate(),r,2)}function Ri(t,r){return ct(t.getHours(),r,2)}function Bi(t,r){return ct(t.getHours()%12||12,r,2)}function Zi(t,r){return ct(1+St.count(bt(t),t),r,3)}function fn(t,r){return ct(t.getMilliseconds(),r,3)}function ji(t,r){return fn(t,r)+"000"}function Xi(t,r){return ct(t.getMonth()+1,r,2)}function Gi(t,r){return ct(t.getMinutes(),r,2)}function qi(t,r){return ct(t.getSeconds(),r,2)}function Qi(t){var r=t.getDay();return r===0?7:r}function Ji(t,r){return ct(_t.count(bt(t)-1,t),r,2)}function dn(t){var r=t.getDay();return r>=4||r===0?Lt(t):Lt.ceil(t)}function Ki(t,r){return t=dn(t),ct(Lt.count(bt(t),t)+(bt(t).getDay()===4),r,2)}function ta(t){return t.getDay()}function ea(t,r){return ct(zt.count(bt(t)-1,t),r,2)}function na(t,r){return ct(t.getFullYear()%100,r,2)}function ia(t,r){return t=dn(t),ct(t.getFullYear()%100,r,2)}function aa(t,r){return ct(t.getFullYear()%1e4,r,4)}function sa(t,r){var n=t.getDay();return t=n>=4||n===0?Lt(t):Lt.ceil(t),ct(t.getFullYear()%1e4,r,4)}function oa(t){var r=t.getTimezoneOffset();return(r>0?"-":(r*=-1,"+"))+ct(r/60|0,"0",2)+ct(r%60,"0",2)}function sn(t,r){return ct(t.getUTCDate(),r,2)}function ca(t,r){return ct(t.getUTCHours(),r,2)}function ua(t,r){return ct(t.getUTCHours()%12||12,r,2)}function la(t,r){return ct(1+oe.count(Yt(t),t),r,3)}function mn(t,r){return ct(t.getUTCMilliseconds(),r,3)}function fa(t,r){return mn(t,r)+"000"}function da(t,r){return ct(t.getUTCMonth()+1,r,2)}function ma(t,r){return ct(t.getUTCMinutes(),r,2)}function ha(t,r){return ct(t.getUTCSeconds(),r,2)}function ya(t){var r=t.getUTCDay();return r===0?7:r}function ga(t,r){return ct(jt.count(Yt(t)-1,t),r,2)}function yn(t){var r=t.getUTCDay();return r>=4||r===0?Rt(t):Rt.ceil(t)}function ka(t,r){return t=yn(t),ct(Rt.count(Yt(t),t)+(Yt(t).getUTCDay()===4),r,2)}function pa(t){return t.getUTCDay()}function Ta(t,r){return ct(Jt.count(Yt(t)-1,t),r,2)}function va(t,r){return ct(t.getUTCFullYear()%100,r,2)}function xa(t,r){return t=yn(t),ct(t.getUTCFullYear()%100,r,2)}function ba(t,r){return ct(t.getUTCFullYear()%1e4,r,4)}function wa(t,r){var n=t.getUTCDay();return t=n>=4||n===0?Rt(t):Rt.ceil(t),ct(t.getUTCFullYear()%1e4,r,4)}function Ma(){return"+0000"}function on(){return"%"}function un(t){return+t}function ln(t){return Math.floor(+t/1000)}var Kt,Xt,gn,kn,pn;tr({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 tr(t){return Kt=Ke(t),Xt=Kt.format,gn=Kt.parse,kn=Kt.utcFormat,pn=Kt.utcParse,Kt}function Da(t){return new Date(t)}function Sa(t){return t instanceof Date?+t:+new Date(+t)}function Tn(t,r,n,i,s,o,u,D,_,z){var W=$r(),{invert:G,domain:O}=W,V=z(".%L"),U=z(":%S"),Z=z("%I:%M"),H=z("%I %p"),tt=z("%a %d"),ft=z("%b %d"),at=z("%B"),j=z("%Y");function Y(f){return(_(f)<f?V:D(f)<f?U:u(f)<f?Z:o(f)<f?H:i(f)<f?s(f)<f?tt:ft:n(f)<f?at:j)(f)}return W.invert=function(f){return new Date(G(f))},W.domain=function(f){return arguments.length?O(Array.from(f,Sa)):O().map(Da)},W.ticks=function(f){var N=O();return t(N[0],N[N.length-1],f==null?10:f)},W.tickFormat=function(f,N){return N==null?Y:z(N)},W.nice=function(f){var N=O();if(!f||typeof f.range!=="function")f=r(N[0],N[N.length-1],f==null?10:f);return f?O(Re(N,f)):W},W.copy=function(){return ra(W,Tn(t,r,n,i,s,o,u,D,_,z))},W}function er(){return Ot.apply(Tn(Xe,Ge,bt,Nt,_t,St,Ht,$t,xt,Xt).domain([new Date(2000,0,1),new Date(2000,0,2)]),arguments)}var Sn=Se(Hn(),1),Mt=Se(Ca(),1),_n=Se(vn(),1),Yn=Se(xn(),1),Fn=Se(bn(),1),ee=Se(Ca(),1),zn=Se(wn(),1);var dr=function(){var t=e(function(P,d,w,x){for(w=w||{},x=P.length;x--;w[P[x]]=d);return w},"o"),r=[6,8,10,12,13,14,15,16,17,18,20,21,22,23,24,25,26,27,28,29,30,31,33,35,36,38,40],n=[1,26],i=[1,27],s=[1,28],o=[1,29],u=[1,30],D=[1,31],_=[1,32],z=[1,33],W=[1,34],G=[1,9],O=[1,10],V=[1,11],U=[1,12],Z=[1,13],H=[1,14],tt=[1,15],ft=[1,16],at=[1,19],j=[1,20],Y=[1,21],f=[1,22],N=[1,23],rt=[1,25],nt=[1,35],b={trace:e(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:e(function(d,w,x,k,Q,c,J){var h=c.length-1;switch(Q){case 1:return c[h-1];case 2:this.$=[];break;case 3:c[h-1].push(c[h]),this.$=c[h-1];break;case 4:case 5:this.$=c[h];break;case 6:case 7:this.$=[];break;case 8:k.setWeekday("monday");break;case 9:k.setWeekday("tuesday");break;case 10:k.setWeekday("wednesday");break;case 11:k.setWeekday("thursday");break;case 12:k.setWeekday("friday");break;case 13:k.setWeekday("saturday");break;case 14:k.setWeekday("sunday");break;case 15:k.setWeekend("friday");break;case 16:k.setWeekend("saturday");break;case 17:k.setDateFormat(c[h].substr(11)),this.$=c[h].substr(11);break;case 18:k.enableInclusiveEndDates(),this.$=c[h].substr(18);break;case 19:k.TopAxis(),this.$=c[h].substr(8);break;case 20:k.setAxisFormat(c[h].substr(11)),this.$=c[h].substr(11);break;case 21:k.setTickInterval(c[h].substr(13)),this.$=c[h].substr(13);break;case 22:k.setExcludes(c[h].substr(9)),this.$=c[h].substr(9);break;case 23:k.setIncludes(c[h].substr(9)),this.$=c[h].substr(9);break;case 24:k.setTodayMarker(c[h].substr(12)),this.$=c[h].substr(12);break;case 27:k.setDiagramTitle(c[h].substr(6)),this.$=c[h].substr(6);break;case 28:this.$=c[h].trim(),k.setAccTitle(this.$);break;case 29:case 30:this.$=c[h].trim(),k.setAccDescription(this.$);break;case 31:k.addSection(c[h].substr(8)),this.$=c[h].substr(8);break;case 33:k.addTask(c[h-1],c[h]),this.$="task";break;case 34:this.$=c[h-1],k.setClickEvent(c[h-1],c[h],null);break;case 35:this.$=c[h-2],k.setClickEvent(c[h-2],c[h-1],c[h]);break;case 36:this.$=c[h-2],k.setClickEvent(c[h-2],c[h-1],null),k.setLink(c[h-2],c[h]);break;case 37:this.$=c[h-3],k.setClickEvent(c[h-3],c[h-2],c[h-1]),k.setLink(c[h-3],c[h]);break;case 38:this.$=c[h-2],k.setClickEvent(c[h-2],c[h],null),k.setLink(c[h-2],c[h-1]);break;case 39:this.$=c[h-3],k.setClickEvent(c[h-3],c[h-1],c[h]),k.setLink(c[h-3],c[h-2]);break;case 40:this.$=c[h-1],k.setLink(c[h-1],c[h]);break;case 41:case 47:this.$=c[h-1]+" "+c[h];break;case 42:case 43:case 45:this.$=c[h-2]+" "+c[h-1]+" "+c[h];break;case 44:case 46:this.$=c[h-3]+" "+c[h-2]+" "+c[h-1]+" "+c[h];break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},t(r,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:17,12:n,13:i,14:s,15:o,16:u,17:D,18:_,19:18,20:z,21:W,22:G,23:O,24:V,25:U,26:Z,27:H,28:tt,29:ft,30:at,31:j,33:Y,35:f,36:N,37:24,38:rt,40:nt},t(r,[2,7],{1:[2,1]}),t(r,[2,3]),{9:36,11:17,12:n,13:i,14:s,15:o,16:u,17:D,18:_,19:18,20:z,21:W,22:G,23:O,24:V,25:U,26:Z,27:H,28:tt,29:ft,30:at,31:j,33:Y,35:f,36:N,37:24,38:rt,40:nt},t(r,[2,5]),t(r,[2,6]),t(r,[2,17]),t(r,[2,18]),t(r,[2,19]),t(r,[2,20]),t(r,[2,21]),t(r,[2,22]),t(r,[2,23]),t(r,[2,24]),t(r,[2,25]),t(r,[2,26]),t(r,[2,27]),{32:[1,37]},{34:[1,38]},t(r,[2,30]),t(r,[2,31]),t(r,[2,32]),{39:[1,39]},t(r,[2,8]),t(r,[2,9]),t(r,[2,10]),t(r,[2,11]),t(r,[2,12]),t(r,[2,13]),t(r,[2,14]),t(r,[2,15]),t(r,[2,16]),{41:[1,40],43:[1,41]},t(r,[2,4]),t(r,[2,28]),t(r,[2,29]),t(r,[2,33]),t(r,[2,34],{42:[1,42],43:[1,43]}),t(r,[2,40],{41:[1,44]}),t(r,[2,35],{43:[1,45]}),t(r,[2,36]),t(r,[2,38],{42:[1,46]}),t(r,[2,37]),t(r,[2,39])],defaultActions:{},parseError:e(function(d,w){if(w.recoverable)this.trace(d);else{var x=Error(d);throw x.hash=w,x}},"parseError"),parse:e(function(d){var w=this,x=[0],k=[],Q=[null],c=[],J=this.table,h="",mt=0,m=0,q=0,K=2,ut=1,lt=c.slice.call(arguments,1),it=Object.create(this.lexer),g={yy:{}};for(var X in this.yy)if(Object.prototype.hasOwnProperty.call(this.yy,X))g.yy[X]=this.yy[X];if(it.setInput(d,g.yy),g.yy.lexer=it,g.yy.parser=this,typeof it.yylloc>"u")it.yylloc={};var et=it.yylloc;c.push(et);var y=it.options&&it.options.ranges;if(typeof g.yy.parseError==="function")this.parseError=g.yy.parseError;else this.parseError=Object.getPrototypeOf(this).parseError;function ht(Dt){x.length=x.length-2*Dt,Q.length=Q.length-Dt,c.length=c.length-Dt}e(ht,"popStack");function st(){var Dt=k.pop()||it.lex()||ut;if(typeof Dt!=="number"){if(Dt instanceof Array)k=Dt,Dt=k.pop();Dt=w.symbols_[Dt]||Dt}return Dt}e(st,"lex");var ot,yt,gt,Tt,ps,Le,qt={},de,Et,Sr,me;while(!0){if(gt=x[x.length-1],this.defaultActions[gt])Tt=this.defaultActions[gt];else{if(ot===null||typeof ot>"u")ot=st();Tt=J[gt]&&J[gt][ot]}if(typeof Tt>"u"||!Tt.length||!Tt[0]){var We="";me=[];for(de in J[gt])if(this.terminals_[de]&&de>K)me.push("'"+this.terminals_[de]+"'");if(it.showPosition)We="Parse error on line "+(mt+1)+`:
|
|
2
2
|
`+it.showPosition()+`
|
|
3
3
|
Expecting `+me.join(", ")+", got '"+(this.terminals_[ot]||ot)+"'";else We="Parse error on line "+(mt+1)+": Unexpected "+(ot==ut?"end of input":"'"+(this.terminals_[ot]||ot)+"'");this.parseError(We,{text:it.match,token:this.terminals_[ot]||ot,line:it.yylineno,loc:et,expected:me})}if(Tt[0]instanceof Array&&Tt.length>1)throw Error("Parse Error: multiple actions possible at state: "+gt+", token: "+ot);switch(Tt[0]){case 1:if(x.push(ot),Q.push(it.yytext),c.push(it.yylloc),x.push(Tt[1]),ot=null,!yt){if(m=it.yyleng,h=it.yytext,mt=it.yylineno,et=it.yylloc,q>0)q--}else ot=yt,yt=null;break;case 2:if(Et=this.productions_[Tt[1]][1],qt.$=Q[Q.length-Et],qt._$={first_line:c[c.length-(Et||1)].first_line,last_line:c[c.length-1].last_line,first_column:c[c.length-(Et||1)].first_column,last_column:c[c.length-1].last_column},y)qt._$.range=[c[c.length-(Et||1)].range[0],c[c.length-1].range[1]];if(Le=this.performAction.apply(qt,[h,m,mt,g.yy,Tt[1],Q,c].concat(lt)),typeof Le<"u")return Le;if(Et)x=x.slice(0,-1*Et*2),Q=Q.slice(0,-1*Et),c=c.slice(0,-1*Et);x.push(this.productions_[Tt[1]][0]),Q.push(qt.$),c.push(qt._$),Sr=J[x[x.length-2]][x[x.length-1]],x.push(Sr);break;case 3:return!0}}return!0},"parse")},I=function(){var P={EOF:1,parseError:e(function(w,x){if(this.yy.parser)this.yy.parser.parseError(w,x);else throw Error(w)},"parseError"),setInput:e(function(d,w){if(this.yy=w||this.yy||{},this._input=d,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges)this.yylloc.range=[0,0];return this.offset=0,this},"setInput"),input:e(function(){var d=this._input[0];this.yytext+=d,this.yyleng++,this.offset++,this.match+=d,this.matched+=d;var w=d.match(/(?:\r\n?|\n).*/g);if(w)this.yylineno++,this.yylloc.last_line++;else this.yylloc.last_column++;if(this.options.ranges)this.yylloc.range[1]++;return this._input=this._input.slice(1),d},"input"),unput:e(function(d){var w=d.length,x=d.split(/(?:\r\n?|\n)/g);this._input=d+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-w),this.offset-=w;var k=this.match.split(/(?:\r\n?|\n)/g);if(this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),x.length-1)this.yylineno-=x.length-1;var Q=this.yylloc.range;if(this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:x?(x.length===k.length?this.yylloc.first_column:0)+k[k.length-x.length].length-x[0].length:this.yylloc.first_column-w},this.options.ranges)this.yylloc.range=[Q[0],Q[0]+this.yyleng-w];return this.yyleng=this.yytext.length,this},"unput"),more:e(function(){return this._more=!0,this},"more"),reject:e(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:e(function(d){this.unput(this.match.slice(d))},"less"),pastInput:e(function(){var d=this.matched.substr(0,this.matched.length-this.match.length);return(d.length>20?"...":"")+d.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:e(function(){var d=this.match;if(d.length<20)d+=this._input.substr(0,20-d.length);return(d.substr(0,20)+(d.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:e(function(){var d=this.pastInput(),w=Array(d.length+1).join("-");return d+this.upcomingInput()+`
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{sr}from"./chunk-cktmyc13.js";export{sr as createRailroadPegServices};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{ki}from"./chunk-cktmyc13.js";export{ki as createPacketServices};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import{e,a,Y,u,d,D,b,so,O,l,ye
|
|
1
|
+
import{e,a,Y,u,d,D,b,so,O,l,ge,ye}from"./chunk-5v44qv67.js";import{he}from"./chunk-f5txt81n.js";import{le}from"./chunk-718mr5gc.js";var _e=new Uint8Array(16);function ee(){return crypto.getRandomValues(_e)}var x=[];for(let t=0;t<256;++t)x.push((t+256).toString(16).slice(1));function ue(t,i=0){return(x[t[i+0]]+x[t[i+1]]+x[t[i+2]]+x[t[i+3]]+"-"+x[t[i+4]]+x[t[i+5]]+"-"+x[t[i+6]]+x[t[i+7]]+"-"+x[t[i+8]]+x[t[i+9]]+"-"+x[t[i+10]]+x[t[i+11]]+x[t[i+12]]+x[t[i+13]]+x[t[i+14]]+x[t[i+15]]).toLowerCase()}function Se(t,i,p){if(!i&&!t&&crypto.randomUUID)return crypto.randomUUID();return xe(t,i,p)}function xe(t,i,p){t=t||{};let h=t.random??t.rng?.()??ee();if(h.length<16)throw Error("Random bytes length must be >= 16");if(h[6]=h[6]&15|64,h[8]=h[8]&63|128,i){if(p=p||0,p<0||p+16>i.length)throw RangeError(`UUID byte range ${p}:${p+15} is out of buffer bounds`);for(let n=0;n<16;++n)i[p+n]=h[n];return i}return ue(h)}var te=Se;var ne=function(){var t=e(function(w,o,r,c){for(r=r||{},c=w.length;c--;r[w[c]]=o);return r},"o"),i=[1,4],p=[1,13],h=[1,12],n=[1,15],f=[1,16],k=[1,20],_=[1,19],N=[6,7,8],U=[1,26],M=[1,24],P=[1,25],m=[6,7,11],V=[1,6,13,15,16,19,22],ie=[1,33],re=[1,34],F=[1,6,7,11,13,15,16,19,22],z={trace:e(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mindMap:4,spaceLines:5,SPACELINE:6,NL:7,MINDMAP:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,node:14,ICON:15,CLASS:16,nodeWithId:17,nodeWithoutId:18,NODE_DSTART:19,NODE_DESCR:20,NODE_DEND:21,NODE_ID:22,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"MINDMAP",11:"EOF",13:"SPACELIST",15:"ICON",16:"CLASS",19:"NODE_DSTART",20:"NODE_DESCR",21:"NODE_DEND",22:"NODE_ID"},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,2],[12,2],[12,2],[12,1],[12,1],[12,1],[12,1],[12,1],[14,1],[14,1],[18,3],[17,1],[17,4]],performAction:e(function(o,r,c,g,E,s,G){var y=s.length-1;switch(E){case 6:case 7:return g;case 8:g.getLogger().trace("Stop NL ");break;case 9:g.getLogger().trace("Stop EOF ");break;case 11:g.getLogger().trace("Stop NL2 ");break;case 12:g.getLogger().trace("Stop EOF2 ");break;case 15:g.getLogger().info("Node: ",s[y].id),g.addNode(s[y-1].length,s[y].id,s[y].descr,s[y].type);break;case 16:g.getLogger().trace("Icon: ",s[y]),g.decorateNode({icon:s[y]});break;case 17:case 21:g.decorateNode({class:s[y]});break;case 18:g.getLogger().trace("SPACELIST");break;case 19:g.getLogger().trace("Node: ",s[y].id),g.addNode(0,s[y].id,s[y].descr,s[y].type);break;case 20:g.decorateNode({icon:s[y]});break;case 25:g.getLogger().trace("node found ..",s[y-2]),this.$={id:s[y-1],descr:s[y-1],type:g.getType(s[y-2],s[y])};break;case 26:this.$={id:s[y],descr:s[y],type:g.nodeType.DEFAULT};break;case 27:g.getLogger().trace("node found ..",s[y-3]),this.$={id:s[y-3],descr:s[y-1],type:g.getType(s[y-2],s[y])};break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:i},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:i},{6:p,7:[1,10],9:9,12:11,13:h,14:14,15:n,16:f,17:17,18:18,19:k,22:_},t(N,[2,3]),{1:[2,2]},t(N,[2,4]),t(N,[2,5]),{1:[2,6],6:p,12:21,13:h,14:14,15:n,16:f,17:17,18:18,19:k,22:_},{6:p,9:22,12:11,13:h,14:14,15:n,16:f,17:17,18:18,19:k,22:_},{6:U,7:M,10:23,11:P},t(m,[2,22],{17:17,18:18,14:27,15:[1,28],16:[1,29],19:k,22:_}),t(m,[2,18]),t(m,[2,19]),t(m,[2,20]),t(m,[2,21]),t(m,[2,23]),t(m,[2,24]),t(m,[2,26],{19:[1,30]}),{20:[1,31]},{6:U,7:M,10:32,11:P},{1:[2,7],6:p,12:21,13:h,14:14,15:n,16:f,17:17,18:18,19:k,22:_},t(V,[2,14],{7:ie,11:re}),t(F,[2,8]),t(F,[2,9]),t(F,[2,10]),t(m,[2,15]),t(m,[2,16]),t(m,[2,17]),{20:[1,35]},{21:[1,36]},t(V,[2,13],{7:ie,11:re}),t(F,[2,11]),t(F,[2,12]),{21:[1,37]},t(m,[2,25]),t(m,[2,27])],defaultActions:{2:[2,1],6:[2,2]},parseError:e(function(o,r){if(r.recoverable)this.trace(o);else{var c=Error(o);throw c.hash=r,c}},"parseError"),parse:e(function(o){var r=this,c=[0],g=[],E=[null],s=[],G=this.table,y="",H=0,se=0,oe=0,me=2,ae=1,ke=s.slice.call(arguments,1),S=Object.create(this.lexer),R={yy:{}};for(var q in this.yy)if(Object.prototype.hasOwnProperty.call(this.yy,q))R.yy[q]=this.yy[q];if(S.setInput(o,R.yy),R.yy.lexer=S,R.yy.parser=this,typeof S.yylloc>"u")S.yylloc={};var J=S.yylloc;s.push(J);var be=S.options&&S.options.ranges;if(typeof R.yy.parseError==="function")this.parseError=R.yy.parseError;else this.parseError=Object.getPrototypeOf(this).parseError;function Ee(T){c.length=c.length-2*T,E.length=E.length-T,s.length=s.length-T}e(Ee,"popStack");function ce(){var T=g.pop()||S.lex()||ae;if(typeof T!=="number"){if(T instanceof Array)g=T,T=g.pop();T=r.symbols_[T]||T}return T}e(ce,"lex");var L,K,A,v,we,Q,B={},W,I,de,X;while(!0){if(A=c[c.length-1],this.defaultActions[A])v=this.defaultActions[A];else{if(L===null||typeof L>"u")L=ce();v=G[A]&&G[A][L]}if(typeof v>"u"||!v.length||!v[0]){var Z="";X=[];for(W in G[A])if(this.terminals_[W]&&W>me)X.push("'"+this.terminals_[W]+"'");if(S.showPosition)Z="Parse error on line "+(H+1)+`:
|
|
2
2
|
`+S.showPosition()+`
|
|
3
|
-
Expecting `+X.join(", ")+", got '"+(this.terminals_[L]||L)+"'";else Z="Parse error on line "+(H+1)+": Unexpected "+(L==ae?"end of input":"'"+(this.terminals_[L]||L)+"'");this.parseError(Z,{text:S.match,token:this.terminals_[L]||L,line:S.yylineno,loc:J,expected:X})}if(v[0]instanceof Array&&v.length>1)throw Error("Parse Error: multiple actions possible at state: "+A+", token: "+L);switch(v[0]){case 1:if(c.push(L),E.push(S.yytext),s.push(S.yylloc),c.push(v[1]),L=null,!K){if(se=S.yyleng,y=S.yytext,H=S.yylineno,J=S.yylloc,oe>0)oe--}else L=K,K=null;break;case 2:if(I=this.productions_[v[1]][1],B.$=E[E.length-I],B._$={first_line:s[s.length-(I||1)].first_line,last_line:s[s.length-1].last_line,first_column:s[s.length-(I||1)].first_column,last_column:s[s.length-1].last_column},
|
|
3
|
+
Expecting `+X.join(", ")+", got '"+(this.terminals_[L]||L)+"'";else Z="Parse error on line "+(H+1)+": Unexpected "+(L==ae?"end of input":"'"+(this.terminals_[L]||L)+"'");this.parseError(Z,{text:S.match,token:this.terminals_[L]||L,line:S.yylineno,loc:J,expected:X})}if(v[0]instanceof Array&&v.length>1)throw Error("Parse Error: multiple actions possible at state: "+A+", token: "+L);switch(v[0]){case 1:if(c.push(L),E.push(S.yytext),s.push(S.yylloc),c.push(v[1]),L=null,!K){if(se=S.yyleng,y=S.yytext,H=S.yylineno,J=S.yylloc,oe>0)oe--}else L=K,K=null;break;case 2:if(I=this.productions_[v[1]][1],B.$=E[E.length-I],B._$={first_line:s[s.length-(I||1)].first_line,last_line:s[s.length-1].last_line,first_column:s[s.length-(I||1)].first_column,last_column:s[s.length-1].last_column},be)B._$.range=[s[s.length-(I||1)].range[0],s[s.length-1].range[1]];if(Q=this.performAction.apply(B,[y,se,H,R.yy,v[1],E,s].concat(ke)),typeof Q<"u")return Q;if(I)c=c.slice(0,-1*I*2),E=E.slice(0,-1*I),s=s.slice(0,-1*I);c.push(this.productions_[v[1]][0]),E.push(B.$),s.push(B._$),de=G[c[c.length-2]][c[c.length-1]],c.push(de);break;case 3:return!0}}return!0},"parse")},fe=function(){var w={EOF:1,parseError:e(function(r,c){if(this.yy.parser)this.yy.parser.parseError(r,c);else throw Error(r)},"parseError"),setInput:e(function(o,r){if(this.yy=r||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];return this.offset=0,this},"setInput"),input:e(function(){var o=this._input[0];this.yytext+=o,this.yyleng++,this.offset++,this.match+=o,this.matched+=o;var r=o.match(/(?:\r\n?|\n).*/g);if(r)this.yylineno++,this.yylloc.last_line++;else this.yylloc.last_column++;if(this.options.ranges)this.yylloc.range[1]++;return this._input=this._input.slice(1),o},"input"),unput:e(function(o){var r=o.length,c=o.split(/(?:\r\n?|\n)/g);this._input=o+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-r),this.offset-=r;var g=this.match.split(/(?:\r\n?|\n)/g);if(this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),c.length-1)this.yylineno-=c.length-1;var E=this.yylloc.range;if(this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:c?(c.length===g.length?this.yylloc.first_column:0)+g[g.length-c.length].length-c[0].length:this.yylloc.first_column-r},this.options.ranges)this.yylloc.range=[E[0],E[0]+this.yyleng-r];return this.yyleng=this.yytext.length,this},"unput"),more:e(function(){return this._more=!0,this},"more"),reject:e(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:e(function(o){this.unput(this.match.slice(o))},"less"),pastInput:e(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:e(function(){var o=this.match;if(o.length<20)o+=this._input.substr(0,20-o.length);return(o.substr(0,20)+(o.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:e(function(){var o=this.pastInput(),r=Array(o.length+1).join("-");return o+this.upcomingInput()+`
|
|
5
5
|
`+r+"^"},"showPosition"),test_match:e(function(o,r){var c,g,E;if(this.options.backtrack_lexer){if(E={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges)E.yylloc.range=this.yylloc.range.slice(0)}if(g=o[0].match(/(?:\r\n?|\n).*/g),g)this.yylineno+=g.length;if(this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:g?g[g.length-1].length-g[g.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+o[0].length},this.yytext+=o[0],this.match+=o[0],this.matches=o,this.yyleng=this.yytext.length,this.options.ranges)this.yylloc.range=[this.offset,this.offset+=this.yyleng];if(this._more=!1,this._backtrack=!1,this._input=this._input.slice(o[0].length),this.matched+=o[0],c=this.performAction.call(this,this.yy,this,r,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input)this.done=!1;if(c)return c;else if(this._backtrack){for(var s in E)this[s]=E[s];return!1}return!1},"test_match"),next:e(function(){if(this.done)return this.EOF;if(!this._input)this.done=!0;var o,r,c,g;if(!this._more)this.yytext="",this.match="";var E=this._currentRules();for(var s=0;s<E.length;s++)if(c=this._input.match(this.rules[E[s]]),c&&(!r||c[0].length>r[0].length)){if(r=c,g=s,this.options.backtrack_lexer)if(o=this.test_match(c,E[s]),o!==!1)return o;else if(this._backtrack){r=!1;continue}else return!1;else if(!this.options.flex)break}if(r){if(o=this.test_match(r,E[g]),o!==!1)return o;return!1}if(this._input==="")return this.EOF;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
|
6
|
-
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:e(function(){var r=this.next();if(r)return r;else return this.lex()},"lex"),begin:e(function(r){this.conditionStack.push(r)},"begin"),popState:e(function(){var r=this.conditionStack.length-1;if(r>0)return this.conditionStack.pop();else return this.conditionStack[0]},"popState"),_currentRules:e(function(){if(this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1])return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules;else return this.conditions.INITIAL.rules},"_currentRules"),topState:e(function(r){if(r=this.conditionStack.length-1-Math.abs(r||0),r>=0)return this.conditionStack[r];else return"INITIAL"},"topState"),pushState:e(function(r){this.begin(r)},"pushState"),stateStackSize:e(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:e(function(r,c,g,E){var s=E;switch(g){case 0:return r.getLogger().trace("Found comment",c.yytext),6;break;case 1:return 8;case 2:this.begin("CLASS");break;case 3:return this.popState(),16;break;case 4:this.popState();break;case 5:r.getLogger().trace("Begin icon"),this.begin("ICON");break;case 6:return r.getLogger().trace("SPACELINE"),6;break;case 7:return 7;case 8:return 15;case 9:r.getLogger().trace("end icon"),this.popState();break;case 10:return r.getLogger().trace("Exploding node"),this.begin("NODE"),19;break;case 11:return r.getLogger().trace("Cloud"),this.begin("NODE"),19;break;case 12:return r.getLogger().trace("Explosion Bang"),this.begin("NODE"),19;break;case 13:return r.getLogger().trace("Cloud Bang"),this.begin("NODE"),19;break;case 14:return this.begin("NODE"),19;break;case 15:return this.begin("NODE"),19;break;case 16:return this.begin("NODE"),19;break;case 17:return this.begin("NODE"),19;break;case 18:return 13;case 19:return 22;case 20:return 11;case 21:this.begin("NSTR2");break;case 22:return"NODE_DESCR";case 23:this.popState();break;case 24:r.getLogger().trace("Starting NSTR"),this.begin("NSTR");break;case 25:return r.getLogger().trace("description:",c.yytext),"NODE_DESCR";break;case 26:this.popState();break;case 27:return this.popState(),r.getLogger().trace("node end ))"),"NODE_DEND";break;case 28:return this.popState(),r.getLogger().trace("node end )"),"NODE_DEND";break;case 29:return this.popState(),r.getLogger().trace("node end ...",c.yytext),"NODE_DEND";break;case 30:return this.popState(),r.getLogger().trace("node end (("),"NODE_DEND";break;case 31:return this.popState(),r.getLogger().trace("node end (-"),"NODE_DEND";break;case 32:return this.popState(),r.getLogger().trace("node end (-"),"NODE_DEND";break;case 33:return this.popState(),r.getLogger().trace("node end (("),"NODE_DEND";break;case 34:return this.popState(),r.getLogger().trace("node end (("),"NODE_DEND";break;case 35:return r.getLogger().trace("Long description:",c.yytext),20;break;case 36:return r.getLogger().trace("Long description:",c.yytext),20;break}},"anonymous"),rules:[/^(?:\s*%%.*)/i,/^(?:mindmap\b)/i,/^(?::::)/i,/^(?:.+)/i,/^(?:\n)/i,/^(?:::icon\()/i,/^(?:[\s]+[\n])/i,/^(?:[\n]+)/i,/^(?:[^\)]+)/i,/^(?:\))/i,/^(?:-\))/i,/^(?:\(-)/i,/^(?:\)\))/i,/^(?:\))/i,/^(?:\(\()/i,/^(?:\{\{)/i,/^(?:\()/i,/^(?:\[)/i,/^(?:[\s]+)/i,/^(?:[^\(\[\n\)\{\}]+)/i,/^(?:$)/i,/^(?:["][`])/i,/^(?:[^`"]+)/i,/^(?:[`]["])/i,/^(?:["])/i,/^(?:[^"]+)/i,/^(?:["])/i,/^(?:[\)]\))/i,/^(?:[\)])/i,/^(?:[\]])/i,/^(?:\}\})/i,/^(?:\(-)/i,/^(?:-\))/i,/^(?:\(\()/i,/^(?:\()/i,/^(?:[^\)\]\(\}]+)/i,/^(?:.+(?!\(\())/i],conditions:{CLASS:{rules:[3,4],inclusive:!1},ICON:{rules:[8,9],inclusive:!1},NSTR2:{rules:[22,23],inclusive:!1},NSTR:{rules:[25,26],inclusive:!1},NODE:{rules:[21,24,27,28,29,30,31,32,33,34,35,36],inclusive:!1},INITIAL:{rules:[0,1,2,5,6,7,10,11,12,13,14,15,16,17,18,19,20],inclusive:!0}}};return w}();z.lexer=
|
|
7
|
-
`+t);let n=h.db,f=n.getData(),k=
|
|
6
|
+
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:e(function(){var r=this.next();if(r)return r;else return this.lex()},"lex"),begin:e(function(r){this.conditionStack.push(r)},"begin"),popState:e(function(){var r=this.conditionStack.length-1;if(r>0)return this.conditionStack.pop();else return this.conditionStack[0]},"popState"),_currentRules:e(function(){if(this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1])return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules;else return this.conditions.INITIAL.rules},"_currentRules"),topState:e(function(r){if(r=this.conditionStack.length-1-Math.abs(r||0),r>=0)return this.conditionStack[r];else return"INITIAL"},"topState"),pushState:e(function(r){this.begin(r)},"pushState"),stateStackSize:e(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:e(function(r,c,g,E){var s=E;switch(g){case 0:return r.getLogger().trace("Found comment",c.yytext),6;break;case 1:return 8;case 2:this.begin("CLASS");break;case 3:return this.popState(),16;break;case 4:this.popState();break;case 5:r.getLogger().trace("Begin icon"),this.begin("ICON");break;case 6:return r.getLogger().trace("SPACELINE"),6;break;case 7:return 7;case 8:return 15;case 9:r.getLogger().trace("end icon"),this.popState();break;case 10:return r.getLogger().trace("Exploding node"),this.begin("NODE"),19;break;case 11:return r.getLogger().trace("Cloud"),this.begin("NODE"),19;break;case 12:return r.getLogger().trace("Explosion Bang"),this.begin("NODE"),19;break;case 13:return r.getLogger().trace("Cloud Bang"),this.begin("NODE"),19;break;case 14:return this.begin("NODE"),19;break;case 15:return this.begin("NODE"),19;break;case 16:return this.begin("NODE"),19;break;case 17:return this.begin("NODE"),19;break;case 18:return 13;case 19:return 22;case 20:return 11;case 21:this.begin("NSTR2");break;case 22:return"NODE_DESCR";case 23:this.popState();break;case 24:r.getLogger().trace("Starting NSTR"),this.begin("NSTR");break;case 25:return r.getLogger().trace("description:",c.yytext),"NODE_DESCR";break;case 26:this.popState();break;case 27:return this.popState(),r.getLogger().trace("node end ))"),"NODE_DEND";break;case 28:return this.popState(),r.getLogger().trace("node end )"),"NODE_DEND";break;case 29:return this.popState(),r.getLogger().trace("node end ...",c.yytext),"NODE_DEND";break;case 30:return this.popState(),r.getLogger().trace("node end (("),"NODE_DEND";break;case 31:return this.popState(),r.getLogger().trace("node end (-"),"NODE_DEND";break;case 32:return this.popState(),r.getLogger().trace("node end (-"),"NODE_DEND";break;case 33:return this.popState(),r.getLogger().trace("node end (("),"NODE_DEND";break;case 34:return this.popState(),r.getLogger().trace("node end (("),"NODE_DEND";break;case 35:return r.getLogger().trace("Long description:",c.yytext),20;break;case 36:return r.getLogger().trace("Long description:",c.yytext),20;break}},"anonymous"),rules:[/^(?:\s*%%.*)/i,/^(?:mindmap\b)/i,/^(?::::)/i,/^(?:.+)/i,/^(?:\n)/i,/^(?:::icon\()/i,/^(?:[\s]+[\n])/i,/^(?:[\n]+)/i,/^(?:[^\)]+)/i,/^(?:\))/i,/^(?:-\))/i,/^(?:\(-)/i,/^(?:\)\))/i,/^(?:\))/i,/^(?:\(\()/i,/^(?:\{\{)/i,/^(?:\()/i,/^(?:\[)/i,/^(?:[\s]+)/i,/^(?:[^\(\[\n\)\{\}]+)/i,/^(?:$)/i,/^(?:["][`])/i,/^(?:[^`"]+)/i,/^(?:[`]["])/i,/^(?:["])/i,/^(?:[^"]+)/i,/^(?:["])/i,/^(?:[\)]\))/i,/^(?:[\)])/i,/^(?:[\]])/i,/^(?:\}\})/i,/^(?:\(-)/i,/^(?:-\))/i,/^(?:\(\()/i,/^(?:\()/i,/^(?:[^\)\]\(\}]+)/i,/^(?:.+(?!\(\())/i],conditions:{CLASS:{rules:[3,4],inclusive:!1},ICON:{rules:[8,9],inclusive:!1},NSTR2:{rules:[22,23],inclusive:!1},NSTR:{rules:[25,26],inclusive:!1},NODE:{rules:[21,24,27,28,29,30,31,32,33,34,35,36],inclusive:!1},INITIAL:{rules:[0,1,2,5,6,7,10,11,12,13,14,15,16,17,18,19,20],inclusive:!0}}};return w}();z.lexer=fe;function j(){this.yy={}}return e(j,"Parser"),j.prototype=z,z.Parser=j,new j}();ne.parser=ne;var Ne=ne,pe=12,C={DEFAULT:0,NO_BORDER:0,ROUNDED_RECT:1,RECT:2,CIRCLE:3,CLOUD:4,BANG:5,HEXAGON:6},Le=class{constructor(){this.nodes=[],this.count=0,this.elements={},this.getLogger=this.getLogger.bind(this),this.nodeType=C,this.clear(),this.getType=this.getType.bind(this),this.getElementById=this.getElementById.bind(this),this.getParent=this.getParent.bind(this),this.getMindmap=this.getMindmap.bind(this),this.addNode=this.addNode.bind(this),this.decorateNode=this.decorateNode.bind(this)}static{e(this,"MindmapDB")}clear(){this.nodes=[],this.count=0,this.elements={},this.baseLevel=void 0}getParent(t){for(let i=this.nodes.length-1;i>=0;i--)if(this.nodes[i].level<t)return this.nodes[i];return null}getMindmap(){return this.nodes.length>0?this.nodes[0]:null}addNode(t,i,p,h){a.info("addNode",t,i,p,h);let n=!1;if(this.nodes.length===0)this.baseLevel=t,t=0,n=!0;else if(this.baseLevel!==void 0)t=t-this.baseLevel,n=!1;let f=l(),k=f.mindmap?.padding??D.mindmap.padding;switch(h){case this.nodeType.ROUNDED_RECT:case this.nodeType.RECT:case this.nodeType.HEXAGON:k*=2;break}let _={id:this.count++,nodeId:O(i,f),level:t,descr:O(p,f),type:h,children:[],width:f.mindmap?.maxNodeWidth??D.mindmap.maxNodeWidth,padding:k,isRoot:n},N=this.getParent(t);if(N)N.children.push(_),this.nodes.push(_);else if(n)this.nodes.push(_);else throw Error(`There can be only one root. No parent could be found for ("${_.descr}")`)}getType(t,i){switch(a.debug("In get type",t,i),t){case"[":return this.nodeType.RECT;case"(":return i===")"?this.nodeType.ROUNDED_RECT:this.nodeType.CLOUD;case"((":return this.nodeType.CIRCLE;case")":return this.nodeType.CLOUD;case"))":return this.nodeType.BANG;case"{{":return this.nodeType.HEXAGON;default:return this.nodeType.DEFAULT}}setElementForId(t,i){this.elements[t]=i}getElementById(t){return this.elements[t]}decorateNode(t){if(!t)return;let i=l(),p=this.nodes[this.nodes.length-1];if(t.icon)p.icon=O(t.icon,i);if(t.class)p.class=O(t.class,i)}type2Str(t){switch(t){case this.nodeType.DEFAULT:return"no-border";case this.nodeType.RECT:return"rect";case this.nodeType.ROUNDED_RECT:return"rounded-rect";case this.nodeType.CIRCLE:return"circle";case this.nodeType.CLOUD:return"cloud";case this.nodeType.BANG:return"bang";case this.nodeType.HEXAGON:return"hexgon";default:return"no-border"}}assignSections(t,i,p=0,h=!1){if(t.level===0)t.section=void 0;else t.section=h?(p-1)%(pe-1):i;if(t.children)for(let[n,f]of t.children.entries()){let k=t.level===0?n%(pe-1):i;this.assignSections(f,k,p+1,h)}}flattenNodes(t,i){let p=l(),h=["mindmap-node"];if(t.isRoot===!0)h.push("section-root","section--1");else if(t.section!==void 0)h.push(`section-${t.section}`);if(t.class)h.push(t.class);let n=h.join(" "),f=e((_)=>{let U=(p.theme?.toLowerCase()??"").includes("redux");switch(_){case C.CIRCLE:return"mindmapCircle";case C.RECT:return"rect";case C.ROUNDED_RECT:return"rounded";case C.CLOUD:return"cloud";case C.BANG:return"bang";case C.HEXAGON:return"hexagon";case C.DEFAULT:return U?"rounded":"defaultMindmapNode";case C.NO_BORDER:default:return"rect"}},"getShapeFromType"),k={id:t.id.toString(),domId:"node_"+t.id.toString(),label:t.descr,labelType:"markdown",isGroup:!1,shape:f(t.type),width:t.width,height:t.height??0,padding:t.padding,cssClasses:n,cssStyles:[],centerLabel:!0,look:p.look,icon:t.icon,x:t.x,y:t.y,level:t.level,nodeId:t.nodeId,type:t.type,section:t.section};if(i.push(k),t.children)for(let _ of t.children)this.flattenNodes(_,i)}generateEdges(t,i){if(!t.children)return;let p=l();for(let h of t.children){let n="edge";if(h.section!==void 0)n+=` section-edge-${h.section}`;let f=t.level+1;n+=` edge-depth-${f}`;let k={id:`edge_${t.id}_${h.id}`,start:t.id.toString(),end:h.id.toString(),type:"normal",curve:"basis",thickness:"normal",look:p.look,classes:n,depth:t.level,section:h.section};i.push(k),this.generateEdges(h,i)}}getData(){let t=this.getMindmap(),i=l(),h=so().layout!==void 0,n=i;if(!h)n.layout="cose-bilkent";if(!t)return{nodes:[],edges:[],config:n};a.debug("getData: mindmapRoot",t,i),this.assignSections(t,void 0,0,i.mindmap?.colorBy==="depth");let f=[],k=[];this.flattenNodes(t,f),this.generateEdges(t,k),a.debug(`getData: processed ${f.length} nodes and ${k.length} edges`);let _=new Map;for(let N of f)_.set(N.id,{shape:N.shape,width:N.width,height:N.height,padding:N.padding});return{nodes:f,edges:k,config:n,rootNode:t,markers:["point"],direction:"TB",nodeSpacing:50,rankSpacing:50,shapes:Object.fromEntries(_),type:"mindmap",diagramId:"mindmap-"+te()}}getLogger(){return a}},De=e(async(t,i,p,h)=>{a.debug(`Rendering mindmap diagram
|
|
7
|
+
`+t);let n=h.db,f=n.getData(),k=he(i,f.config.securityLevel);if(f.type=h.type,f.layoutAlgorithm=ye(f.config.layout,{fallback:"cose-bilkent"}),f.diagramId=i,!n.getMindmap())return;f.nodes.forEach((m)=>{if(m.shape==="rounded")m.radius=15,m.taper=15,m.stroke="none",m.width=0,m.padding=15;else if(m.shape==="circle")m.padding=10;else if(m.shape==="rect")m.width=0,m.padding=10;else if(m.shape==="hexagon")m.width=0,m.height=0}),await ge(f,k);let{themeVariables:N}=b(),{useGradient:U,gradientStart:M,gradientStop:P}=N;if(U&&M&&P){let m=k.attr("id"),V=k.append("defs").append("linearGradient").attr("id",`${m}-gradient`).attr("gradientUnits","objectBoundingBox").attr("x1","0%").attr("y1","0%").attr("x2","100%").attr("y2","0%");V.append("stop").attr("offset","0%").attr("stop-color",M).attr("stop-opacity",1),V.append("stop").attr("offset","100%").attr("stop-color",P).attr("stop-opacity",1)}le(k,f.config.mindmap?.padding??D.mindmap.padding,"mindmapDiagram",f.config.mindmap?.useMaxWidth??D.mindmap.useMaxWidth)},"draw"),ve={draw:De},Te=e((t)=>{let{theme:i,look:p}=t,h="";for(let n=0;n<t.THEME_COLOR_LIMIT;n++)if(t["lineColor"+n]=t["lineColor"+n]||t["cScaleInv"+n],Y(t["lineColor"+n]))t["lineColor"+n]=u(t["lineColor"+n],20);else t["lineColor"+n]=d(t["lineColor"+n],20);for(let n=0;n<t.THEME_COLOR_LIMIT;n++){let f=""+(p==="neo"?Math.max(10-(n-1)*2,2):17-3*n),k=i==="redux"||i==="redux-dark"?t.nodeBorder:t["cScaleLabel"+(i==="neutral"?1:n)];h+=`
|
|
8
8
|
.section-${n-1} rect, .section-${n-1} path, .section-${n-1} circle, .section-${n-1} polygon, .section-${n-1} path {
|
|
9
9
|
fill: ${t["cScale"+n]};
|
|
10
10
|
}
|
|
@@ -95,4 +95,4 @@ Expecting `+X.join(", ")+", got '"+(this.terminals_[L]||L)+"'";else Z="Parse err
|
|
|
95
95
|
color: ${h};
|
|
96
96
|
}
|
|
97
97
|
${t.useGradient&&p&&t.mainBkg?Oe(t.THEME_COLOR_LIMIT,p,t.mainBkg):""}
|
|
98
|
-
`},"getStyles"),Ce=Ie,It={get db(){return new
|
|
98
|
+
`},"getStyles"),Ce=Ie,It={get db(){return new Le},renderer:ve,parser:Ne,styles:Ce};export{It as diagram};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{ar}from"./chunk-cktmyc13.js";export{ar as createRailroadServices};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{or}from"./chunk-cktmyc13.js";export{or as createRailroadAbnfServices};
|