=0?1:-1,B=q*P,U=B>Lt,$=E*w;if(l.add(Li($*q*ze(B),S*F+$*Ze(B))),o+=U?P+q*Pi:P,U^h>=n^O>=n){var k=U_($d(m),$d(y));k1(k);var x=U_(a,k);k1(x);var H=(U^P>=0?-1:1)*ki(x[2]);(r>H||r===H&&(k[0]||k[1]))&&(s+=U^P>=0?1:-1)}}return(o<-nt||o0){for(l||(i.polygonStart(),l=!0),i.lineStart(),w=0;w1&&O&2&&N.push(N.pop().concat(N.shift())),d.push(N.filter(Zze))}}return p}}function Zze(t){return t.length>1}function Jze(t,e){return((t=t.x)[0]<0?t[1]-nr-nt:nr-t[1])-((e=e.x)[0]<0?e[1]-nr-nt:nr-e[1])}const gP=kre(function(){return!0},eqe,nqe,[-Lt,-nr]);function eqe(t){var e=NaN,n=NaN,r=NaN,i;return{lineStart:function(){t.lineStart(),i=1},point:function(a,o){var s=a>0?Lt:-Lt,l=Kt(a-e);Kt(l-Lt)0?nr:-nr),t.point(r,n),t.lineEnd(),t.lineStart(),t.point(s,n),t.point(a,n),i=0):r!==s&&l>=Lt&&(Kt(e-r)nt?_m((ze(e)*(a=Ze(r))*ze(n)-ze(r)*(i=Ze(e))*ze(t))/(i*a*o)):(e+r)/2}function nqe(t,e,n,r){var i;if(t==null)i=n*nr,r.point(-Lt,i),r.point(0,i),r.point(Lt,i),r.point(Lt,0),r.point(Lt,-i),r.point(0,-i),r.point(-Lt,-i),r.point(-Lt,0),r.point(-Lt,i);else if(Kt(t[0]-e[0])>nt){var a=t[0]0,i=Kt(e)>nt;function a(d,f,p,m){xre(m,t,n,p,d,f)}function o(d,f){return Ze(d)*Ze(f)>e}function s(d){var f,p,m,h,g;return{lineStart:function(){h=m=!1,g=1},point:function(E,S){var T=[E,S],y,O=o(E,S),N=r?O?0:c(E,S):O?c(E+(E<0?Lt:-Lt),S):0;if(!f&&(h=m=O)&&d.lineStart(),O!==m&&(y=l(f,T),(!y||jy(f,y)||jy(T,y))&&(T[2]=1)),O!==m)g=0,O?(d.lineStart(),y=l(T,f),d.point(y[0],y[1])):(y=l(f,T),d.point(y[0],y[1],2),d.lineEnd()),f=y;else if(i&&f&&r^O){var w;!(N&p)&&(w=l(T,f,!0))&&(g=0,r?(d.lineStart(),d.point(w[0][0],w[0][1]),d.point(w[1][0],w[1][1]),d.lineEnd()):(d.point(w[1][0],w[1][1]),d.lineEnd(),d.lineStart(),d.point(w[0][0],w[0][1],3)))}O&&(!f||!jy(f,T))&&d.point(T[0],T[1]),f=T,m=O,p=N},lineEnd:function(){m&&d.lineEnd(),f=null},clean:function(){return g|(h&&m)<<1}}}function l(d,f,p){var m=$d(d),h=$d(f),g=[1,0,0],E=U_(m,h),S=qS(E,E),T=E[0],y=S-T*T;if(!y)return!p&&d;var O=e*S/y,N=-e*T/y,w=U_(g,E),F=WS(g,O),P=WS(E,N);kA(F,P);var q=w,B=qS(F,q),U=qS(q,q),$=B*B-U*(qS(F,F)-1);if(!($<0)){var k=Br($),x=WS(q,(-B-k)/U);if(kA(x,F),x=L1(x),!p)return x;var H=d[0],M=f[0],K=d[1],X=f[1],z;M0^x[1]<(Kt(x[0]-H)Lt^(H<=x[0]&&x[0]<=M)){var ce=WS(q,(-B+k)/U);return kA(ce,F),[x,L1(ce)]}}}function c(d,f){var p=r?t:Lt-t,m=0;return d<-p?m|=1:d>p&&(m|=2),f<-p?m|=4:f>p&&(m|=8),m}return kre(o,s,a,r?[0,-t]:[-Lt,t-Lt])}function rqe(t,e,n,r,i,a){var o=t[0],s=t[1],l=e[0],c=e[1],d=0,f=1,p=l-o,m=c-s,h;if(h=n-o,!(!p&&h>0)){if(h/=p,p<0){if(h0){if(h>f)return;h>d&&(d=h)}if(h=i-o,!(!p&&h<0)){if(h/=p,p<0){if(h>f)return;h>d&&(d=h)}else if(p>0){if(h0)){if(h/=m,m<0){if(h0){if(h>f)return;h>d&&(d=h)}if(h=a-s,!(!m&&h<0)){if(h/=m,m<0){if(h>f)return;h>d&&(d=h)}else if(m>0){if(h0&&(t[0]=o+d*p,t[1]=s+d*m),f<1&&(e[0]=o+f*p,e[1]=s+f*m),!0}}}}}var Ng=1e9,jS=-Ng;function z0(t,e,n,r){function i(c,d){return t<=c&&c<=n&&e<=d&&d<=r}function a(c,d,f,p){var m=0,h=0;if(c==null||(m=o(c,f))!==(h=o(d,f))||l(c,d)<0^f>0)do p.point(m===0||m===3?t:n,m>1?r:e);while((m=(m+f+4)%4)!==h);else p.point(d[0],d[1])}function o(c,d){return Kt(c[0]-t)0?0:3:Kt(c[0]-n)0?2:1:Kt(c[1]-e)0?1:0:d>0?3:2}function s(c,d){return l(c.x,d.x)}function l(c,d){var f=o(c,1),p=o(d,1);return f!==p?f-p:f===0?d[1]-c[1]:f===1?c[0]-d[0]:f===2?c[1]-d[1]:d[0]-c[0]}return function(c){var d=c,f=Mre(),p,m,h,g,E,S,T,y,O,N,w,F={point:P,lineStart:$,lineEnd:k,polygonStart:B,polygonEnd:U};function P(H,M){i(H,M)&&d.point(H,M)}function q(){for(var H=0,M=0,K=m.length;Mr&&(de-oe)*(r-ce)>(he-ce)*(t-oe)&&++H:he<=r&&(de-oe)*(r-ce)<(he-ce)*(t-oe)&&--H;return H}function B(){d=f,p=[],m=[],w=!0}function U(){var H=q(),M=w&&H,K=(p=l3(p)).length;(M||K)&&(c.polygonStart(),M&&(c.lineStart(),a(null,null,1,c),c.lineEnd()),K&&Pre(p,s,H,a,c),c.polygonEnd()),d=c,p=m=h=null}function $(){F.point=x,m&&m.push(h=[]),N=!0,O=!1,T=y=NaN}function k(){p&&(x(g,E),S&&O&&f.rejoin(),p.push(f.result())),F.point=P,O&&d.lineEnd()}function x(H,M){var K=i(H,M);if(m&&h.push([H,M]),N)g=H,E=M,S=K,N=!1,K&&(d.lineStart(),d.point(H,M));else if(K&&O)d.point(H,M);else{var X=[T=Math.max(jS,Math.min(Ng,T)),y=Math.max(jS,Math.min(Ng,y))],z=[H=Math.max(jS,Math.min(Ng,H)),M=Math.max(jS,Math.min(Ng,M))];rqe(X,z,t,e,n,r)?(O||(d.lineStart(),d.point(X[0],X[1])),d.point(z[0],z[1]),K||d.lineEnd(),w=!1):K&&(d.lineStart(),d.point(H,M),w=!1)}T=H,y=M,O=K}return F}}function iqe(){var t=0,e=0,n=960,r=500,i,a,o;return o={stream:function(s){return i&&a===s?i:i=z0(t,e,n,r)(a=s)},extent:function(s){return arguments.length?(t=+s[0][0],e=+s[0][1],n=+s[1][0],r=+s[1][1],i=a=null,o):[[t,e],[n,r]]}}}var vP,bP,Qy,Xy,G_={sphere:qn,point:qn,lineStart:aqe,lineEnd:qn,polygonStart:qn,polygonEnd:qn};function aqe(){G_.point=sqe,G_.lineEnd=oqe}function oqe(){G_.point=G_.lineEnd=qn}function sqe(t,e){t*=rt,e*=rt,bP=t,Qy=ze(e),Xy=Ze(e),G_.point=lqe}function lqe(t,e){t*=rt,e*=rt;var n=ze(e),r=Ze(e),i=Kt(t-bP),a=Ze(i),o=ze(i),s=r*o,l=Xy*n-Qy*r*a,c=Qy*n+Xy*r*a;vP.add(Li(Br(s*s+l*l),c)),bP=t,Qy=n,Xy=r}function Fre(t){return vP=new Er,Ro(t,G_),+vP}var EP=[null,null],cqe={type:"LineString",coordinates:EP};function V1(t,e){return EP[0]=t,EP[1]=e,Fre(cqe)}var eH={Feature:function(t,e){return z1(t.geometry,e)},FeatureCollection:function(t,e){for(var n=t.features,r=-1,i=n.length;++r0&&(i=V1(t[a],t[a-1]),i>0&&n<=i&&r<=i&&(n+r-i)*(1-Math.pow((n-r)/i,2))nt}).map(p)).concat(Ts(zS(a/c)*c,i,c).filter(function(y){return Kt(y%f)>nt}).map(m))}return S.lines=function(){return T().map(function(y){return{type:"LineString",coordinates:y}})},S.outline=function(){return{type:"Polygon",coordinates:[h(r).concat(g(o).slice(1),h(n).reverse().slice(1),g(s).reverse().slice(1))]}},S.extent=function(y){return arguments.length?S.extentMajor(y).extentMinor(y):S.extentMinor()},S.extentMajor=function(y){return arguments.length?(r=+y[0][0],n=+y[1][0],s=+y[0][1],o=+y[1][1],r>n&&(y=r,r=n,n=y),s>o&&(y=s,s=o,o=y),S.precision(E)):[[r,s],[n,o]]},S.extentMinor=function(y){return arguments.length?(e=+y[0][0],t=+y[1][0],a=+y[0][1],i=+y[1][1],e>t&&(y=e,e=t,t=y),a>i&&(y=a,a=i,i=y),S.precision(E)):[[e,a],[t,i]]},S.step=function(y){return arguments.length?S.stepMajor(y).stepMinor(y):S.stepMinor()},S.stepMajor=function(y){return arguments.length?(d=+y[0],f=+y[1],S):[d,f]},S.stepMinor=function(y){return arguments.length?(l=+y[0],c=+y[1],S):[l,c]},S.precision=function(y){return arguments.length?(E=+y,p=aH(a,i,90),m=oH(e,t,E),h=aH(s,o,90),g=oH(r,n,E),S):E},S.extentMajor([[-180,-90+nt],[180,90-nt]]).extentMinor([[-180,-80-nt],[180,80+nt]])}function fqe(){return Ure()()}function pqe(t,e){var n=t[0]*rt,r=t[1]*rt,i=e[0]*rt,a=e[1]*rt,o=Ze(r),s=ze(r),l=Ze(a),c=ze(a),d=o*Ze(n),f=o*ze(n),p=l*Ze(i),m=l*ze(i),h=2*ki(Br(UG(a-r)+o*l*UG(i-n))),g=ze(h),E=h?function(S){var T=ze(S*=h)/g,y=ze(h-S)/g,O=y*d+T*p,N=y*f+T*m,w=y*s+T*c;return[Li(N,O)*En,Li(w,Br(O*O+N*N))*En]}:function(){return[n*En,r*En]};return E.distance=h,E}const Gv=t=>t;var FA=new Er,SP=new Er,Gre,Hre,yP,TP,bc={point:qn,lineStart:qn,lineEnd:qn,polygonStart:function(){bc.lineStart=_qe,bc.lineEnd=hqe},polygonEnd:function(){bc.lineStart=bc.lineEnd=bc.point=qn,FA.add(Kt(SP)),SP=new Er},result:function(){var t=FA/2;return FA=new Er,t}};function _qe(){bc.point=mqe}function mqe(t,e){bc.point=Yre,Gre=yP=t,Hre=TP=e}function Yre(t,e){SP.add(TP*t-yP*e),yP=t,TP=e}function hqe(){Yre(Gre,Hre)}const sH=bc;var H_=1/0,q1=H_,Hv=-H_,W1=Hv,gqe={point:vqe,lineStart:qn,lineEnd:qn,polygonStart:qn,polygonEnd:qn,result:function(){var t=[[H_,q1],[Hv,W1]];return Hv=W1=-(q1=H_=1/0),t}};function vqe(t,e){tHv&&(Hv=t),eW1&&(W1=e)}const K1=gqe;var OP=0,CP=0,Ag=0,j1=0,Q1=0,l_=0,RP=0,NP=0,wg=0,Vre,zre,bs,Es,No={point:Fd,lineStart:lH,lineEnd:cH,polygonStart:function(){No.lineStart=Sqe,No.lineEnd=yqe},polygonEnd:function(){No.point=Fd,No.lineStart=lH,No.lineEnd=cH},result:function(){var t=wg?[RP/wg,NP/wg]:l_?[j1/l_,Q1/l_]:Ag?[OP/Ag,CP/Ag]:[NaN,NaN];return OP=CP=Ag=j1=Q1=l_=RP=NP=wg=0,t}};function Fd(t,e){OP+=t,CP+=e,++Ag}function lH(){No.point=bqe}function bqe(t,e){No.point=Eqe,Fd(bs=t,Es=e)}function Eqe(t,e){var n=t-bs,r=e-Es,i=Br(n*n+r*r);j1+=i*(bs+t)/2,Q1+=i*(Es+e)/2,l_+=i,Fd(bs=t,Es=e)}function cH(){No.point=Fd}function Sqe(){No.point=Tqe}function yqe(){qre(Vre,zre)}function Tqe(t,e){No.point=qre,Fd(Vre=bs=t,zre=Es=e)}function qre(t,e){var n=t-bs,r=e-Es,i=Br(n*n+r*r);j1+=i*(bs+t)/2,Q1+=i*(Es+e)/2,l_+=i,i=Es*t-bs*e,RP+=i*(bs+t),NP+=i*(Es+e),wg+=i*3,Fd(bs=t,Es=e)}const uH=No;function Wre(t){this._context=t}Wre.prototype={_radius:4.5,pointRadius:function(t){return this._radius=t,this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){this._line===0&&this._context.closePath(),this._point=NaN},point:function(t,e){switch(this._point){case 0:{this._context.moveTo(t,e),this._point=1;break}case 1:{this._context.lineTo(t,e);break}default:{this._context.moveTo(t+this._radius,e),this._context.arc(t,e,this._radius,0,Pi);break}}},result:qn};var AP=new Er,BA,Kre,jre,Ig,Dg,X1={point:qn,lineStart:function(){X1.point=Oqe},lineEnd:function(){BA&&Qre(Kre,jre),X1.point=qn},polygonStart:function(){BA=!0},polygonEnd:function(){BA=null},result:function(){var t=+AP;return AP=new Er,t}};function Oqe(t,e){X1.point=Qre,Kre=Ig=t,jre=Dg=e}function Qre(t,e){Ig-=t,Dg-=e,AP.add(Br(Ig*Ig+Dg*Dg)),Ig=t,Dg=e}const dH=X1;function Xre(){this._string=[]}Xre.prototype={_radius:4.5,_circle:fH(4.5),pointRadius:function(t){return(t=+t)!==this._radius&&(this._radius=t,this._circle=null),this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){this._line===0&&this._string.push("Z"),this._point=NaN},point:function(t,e){switch(this._point){case 0:{this._string.push("M",t,",",e),this._point=1;break}case 1:{this._string.push("L",t,",",e);break}default:{this._circle==null&&(this._circle=fH(this._radius)),this._string.push("M",t,",",e,this._circle);break}}},result:function(){if(this._string.length){var t=this._string.join("");return this._string=[],t}else return null}};function fH(t){return"m0,"+t+"a"+t+","+t+" 0 1,1 0,"+-2*t+"a"+t+","+t+" 0 1,1 0,"+2*t+"z"}function k3(t,e){var n=4.5,r,i;function a(o){return o&&(typeof n=="function"&&i.pointRadius(+n.apply(this,arguments)),Ro(o,r(i))),i.result()}return a.area=function(o){return Ro(o,r(sH)),sH.result()},a.measure=function(o){return Ro(o,r(dH)),dH.result()},a.bounds=function(o){return Ro(o,r(K1)),K1.result()},a.centroid=function(o){return Ro(o,r(uH)),uH.result()},a.projection=function(o){return arguments.length?(r=o==null?(t=null,Gv):(t=o).stream,a):t},a.context=function(o){return arguments.length?(i=o==null?(e=null,new Xre):new Wre(e=o),typeof n!="function"&&i.pointRadius(n),a):e},a.pointRadius=function(o){return arguments.length?(n=typeof o=="function"?o:(i.pointRadius(+o),+o),a):n},a.projection(t).context(e)}function Cqe(t){return{stream:Ab(t)}}function Ab(t){return function(e){var n=new wP;for(var r in t)n[r]=t[r];return n.stream=e,n}}function wP(){}wP.prototype={constructor:wP,point:function(t,e){this.stream.point(t,e)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}};function $3(t,e,n){var r=t.clipExtent&&t.clipExtent();return t.scale(150).translate([0,0]),r!=null&&t.clipExtent(null),Ro(n,t.stream(K1)),e(K1.result()),r!=null&&t.clipExtent(r),t}function q0(t,e,n){return $3(t,function(r){var i=e[1][0]-e[0][0],a=e[1][1]-e[0][1],o=Math.min(i/(r[1][0]-r[0][0]),a/(r[1][1]-r[0][1])),s=+e[0][0]+(i-o*(r[1][0]+r[0][0]))/2,l=+e[0][1]+(a-o*(r[1][1]+r[0][1]))/2;t.scale(150*o).translate([s,l])},n)}function F3(t,e,n){return q0(t,[[0,0],e],n)}function B3(t,e,n){return $3(t,function(r){var i=+e,a=i/(r[1][0]-r[0][0]),o=(i-a*(r[1][0]+r[0][0]))/2,s=-a*r[0][1];t.scale(150*a).translate([o,s])},n)}function U3(t,e,n){return $3(t,function(r){var i=+e,a=i/(r[1][1]-r[0][1]),o=-a*r[0][0],s=(i-a*(r[1][1]+r[0][1]))/2;t.scale(150*a).translate([o,s])},n)}var pH=16,Rqe=Ze(30*rt);function _H(t,e){return+e?Aqe(t,e):Nqe(t)}function Nqe(t){return Ab({point:function(e,n){e=t(e,n),this.stream.point(e[0],e[1])}})}function Aqe(t,e){function n(r,i,a,o,s,l,c,d,f,p,m,h,g,E){var S=c-r,T=d-i,y=S*S+T*T;if(y>4*e&&g--){var O=o+p,N=s+m,w=l+h,F=Br(O*O+N*N+w*w),P=ki(w/=F),q=Kt(Kt(w)-1)e||Kt((S*k+T*x)/y-.5)>.3||o*p+s*m+l*h2?H[2]%360*rt:0,k()):[s*En,l*En,c*En]},U.angle=function(H){return arguments.length?(f=H%360*rt,k()):f*En},U.reflectX=function(H){return arguments.length?(p=H?-1:1,k()):p<0},U.reflectY=function(H){return arguments.length?(m=H?-1:1,k()):m<0},U.precision=function(H){return arguments.length?(w=_H(F,N=H*H),x()):Br(N)},U.fitExtent=function(H,M){return q0(U,H,M)},U.fitSize=function(H,M){return F3(U,H,M)},U.fitWidth=function(H,M){return B3(U,H,M)},U.fitHeight=function(H,M){return U3(U,H,M)};function k(){var H=mH(n,0,0,p,m,f).apply(null,e(a,o)),M=mH(n,r-H[0],i-H[1],p,m,f);return d=L3(s,l,c),F=mP(e,M),P=mP(d,F),w=_H(F,N),x()}function x(){return q=B=null,U}return function(){return e=t.apply(this,arguments),U.invert=e.invert&&$,k()}}function H3(t){var e=0,n=Lt/3,r=G3(t),i=r(e,n);return i.parallels=function(a){return arguments.length?r(e=a[0]*rt,n=a[1]*rt):[e*En,n*En]},i}function xqe(t){var e=Ze(t);function n(r,i){return[r*e,ze(i)/e]}return n.invert=function(r,i){return[r/e,ki(i*e)]},n}function Zre(t,e){var n=ze(t),r=(n+ze(e))/2;if(Kt(r)=.12&&E<.234&&g>=-.425&&g<-.214?i:E>=.166&&E<.234&&g>=-.214&&g<-.115?o:n).invert(p)},d.stream=function(p){return t&&e===p?t:t=Mqe([n.stream(e=p),i.stream(p),o.stream(p)])},d.precision=function(p){return arguments.length?(n.precision(p),i.precision(p),o.precision(p),f()):n.precision()},d.scale=function(p){return arguments.length?(n.scale(p),i.scale(p*.35),o.scale(p),d.translate(n.translate())):n.scale()},d.translate=function(p){if(!arguments.length)return n.translate();var m=n.scale(),h=+p[0],g=+p[1];return r=n.translate(p).clipExtent([[h-.455*m,g-.238*m],[h+.455*m,g+.238*m]]).stream(c),a=i.translate([h-.307*m,g+.201*m]).clipExtent([[h-.425*m+nt,g+.12*m+nt],[h-.214*m-nt,g+.234*m-nt]]).stream(c),s=o.translate([h-.205*m,g+.212*m]).clipExtent([[h-.214*m+nt,g+.166*m+nt],[h-.115*m-nt,g+.234*m-nt]]).stream(c),f()},d.fitExtent=function(p,m){return q0(d,p,m)},d.fitSize=function(p,m){return F3(d,p,m)},d.fitWidth=function(p,m){return B3(d,p,m)},d.fitHeight=function(p,m){return U3(d,p,m)};function f(){return t=e=null,d}return d.scale(1070)}function eie(t){return function(e,n){var r=Ze(e),i=Ze(n),a=t(r*i);return a===1/0?[2,0]:[a*i*ze(e),a*ze(n)]}}function wb(t){return function(e,n){var r=Br(e*e+n*n),i=t(r),a=ze(i),o=Ze(i);return[Li(e*a,r*o),ki(r&&n*a/r)]}}var Y3=eie(function(t){return Br(2/(1+t))});Y3.invert=wb(function(t){return 2*ki(t/2)});function Lqe(){return qo(Y3).scale(124.75).clipAngle(180-.001)}var V3=eie(function(t){return(t=Ere(t))&&t/ze(t)});V3.invert=wb(function(t){return t});function kqe(){return qo(V3).scale(79.4188).clipAngle(180-.001)}function Ib(t,e){return[t,D1(M3((nr+e)/2))]}Ib.invert=function(t,e){return[t,2*_m(bre(e))-nr]};function $qe(){return tie(Ib).scale(961/Pi)}function tie(t){var e=qo(t),n=e.center,r=e.scale,i=e.translate,a=e.clipExtent,o=null,s,l,c;e.scale=function(f){return arguments.length?(r(f),d()):r()},e.translate=function(f){return arguments.length?(i(f),d()):i()},e.center=function(f){return arguments.length?(n(f),d()):n()},e.clipExtent=function(f){return arguments.length?(f==null?o=s=l=c=null:(o=+f[0][0],s=+f[0][1],l=+f[1][0],c=+f[1][1]),d()):o==null?null:[[o,s],[l,c]]};function d(){var f=Lt*r(),p=e(Dre(e.rotate()).invert([0,0]));return a(o==null?[[p[0]-f,p[1]-f],[p[0]+f,p[1]+f]]:t===Ib?[[Math.max(p[0]-f,o),s],[Math.min(p[0]+f,l),c]]:[[o,Math.max(p[1]-f,s)],[l,Math.min(p[1]+f,c)]])}return d()}function QS(t){return M3((nr+t)/2)}function nie(t,e){var n=Ze(t),r=t===e?ze(t):D1(n/Ze(e))/D1(QS(e)/QS(t)),i=n*LA(QS(t),r)/r;if(!r)return Ib;function a(o,s){i>0?s<-nr+nt&&(s=-nr+nt):s>nr-nt&&(s=nr-nt);var l=i/LA(QS(s),r);return[l*ze(r*o),i-l*Ze(r*o)]}return a.invert=function(o,s){var l=i-s,c=ao(r)*Br(o*o+l*l),d=Li(o,Kt(l))*ao(l);return l*r<0&&(d-=Lt*ao(o)*ao(l)),[d/r,2*_m(LA(i/c,1/r))-nr]},a}function Fqe(){return H3(nie).scale(109.5).parallels([30,30])}function Yv(t,e){return[t,e]}Yv.invert=Yv;function Bqe(){return qo(Yv).scale(152.63)}function rie(t,e){var n=Ze(t),r=t===e?ze(t):(n-Ze(e))/(e-t),i=n/r+t;if(Kt(r)nt&&--r>0);return[t/(.8707+(a=n*n)*(-.131979+a*(-.013791+a*a*a*(.003971-.001529*a)))),n]};function zqe(){return qo(W3).scale(175.295)}function K3(t,e){return[Ze(e)*ze(t),ze(e)]}K3.invert=wb(ki);function qqe(){return qo(K3).scale(249.5).clipAngle(90+nt)}function j3(t,e){var n=Ze(e),r=1+Ze(t)*n;return[n*ze(t)/r,ze(e)/r]}j3.invert=wb(function(t){return 2*_m(t)});function Wqe(){return qo(j3).scale(250).clipAngle(142)}function Q3(t,e){return[D1(M3((nr+e)/2)),-t]}Q3.invert=function(t,e){return[-e,2*_m(bre(t))-nr]};function Kqe(){var t=tie(Q3),e=t.center,n=t.rotate;return t.center=function(r){return arguments.length?e([-r[1],r[0]]):(r=e(),[r[1],-r[0]])},t.rotate=function(r){return arguments.length?n([r[0],r[1],r.length>2?r[2]+90:90]):(r=n(),[r[0],r[1],r[2]-90])},n([0,0,90]).scale(159.155)}function jqe(t,e){return t.parent===e.parent?1:2}function Qqe(t){return t.reduce(Xqe,0)/t.length}function Xqe(t,e){return t+e.x}function Zqe(t){return 1+t.reduce(Jqe,0)}function Jqe(t,e){return Math.max(t,e.y)}function eWe(t){for(var e;e=t.children;)t=e[0];return t}function tWe(t){for(var e;e=t.children;)t=e[e.length-1];return t}function nWe(){var t=jqe,e=1,n=1,r=!1;function i(a){var o,s=0;a.eachAfter(function(p){var m=p.children;m?(p.x=Qqe(m),p.y=Zqe(m)):(p.x=o?s+=t(p,o):0,p.y=0,o=p)});var l=eWe(a),c=tWe(a),d=l.x-t(l,c)/2,f=c.x+t(c,l)/2;return a.eachAfter(r?function(p){p.x=(p.x-a.x)*e,p.y=(a.y-p.y)*n}:function(p){p.x=(p.x-d)/(f-d)*e,p.y=(1-(a.y?p.y/a.y:1))*n})}return i.separation=function(a){return arguments.length?(t=a,i):t},i.size=function(a){return arguments.length?(r=!1,e=+a[0],n=+a[1],i):r?null:[e,n]},i.nodeSize=function(a){return arguments.length?(r=!0,e=+a[0],n=+a[1],i):r?[e,n]:null},i}function rWe(t){var e=0,n=t.children,r=n&&n.length;if(!r)e=1;else for(;--r>=0;)e+=n[r].value;t.value=e}function iWe(){return this.eachAfter(rWe)}function aWe(t,e){let n=-1;for(const r of this)t.call(e,r,++n,this);return this}function oWe(t,e){for(var n=this,r=[n],i,a,o=-1;n=r.pop();)if(t.call(e,n,++o,this),i=n.children)for(a=i.length-1;a>=0;--a)r.push(i[a]);return this}function sWe(t,e){for(var n=this,r=[n],i=[],a,o,s,l=-1;n=r.pop();)if(i.push(n),a=n.children)for(o=0,s=a.length;o=0;)n+=r[i].value;e.value=n})}function uWe(t){return this.eachBefore(function(e){e.children&&e.children.sort(t)})}function dWe(t){for(var e=this,n=fWe(e,t),r=[e];e!==n;)e=e.parent,r.push(e);for(var i=r.length;t!==n;)r.splice(i,0,t),t=t.parent;return r}function fWe(t,e){if(t===e)return t;var n=t.ancestors(),r=e.ancestors(),i=null;for(t=n.pop(),e=r.pop();t===e;)i=t,t=n.pop(),e=r.pop();return i}function pWe(){for(var t=this,e=[t];t=t.parent;)e.push(t);return e}function _We(){return Array.from(this)}function mWe(){var t=[];return this.eachBefore(function(e){e.children||t.push(e)}),t}function hWe(){var t=this,e=[];return t.each(function(n){n!==t&&e.push({source:n.parent,target:n})}),e}function*gWe(){var t=this,e,n=[t],r,i,a;do for(e=n.reverse(),n=[];t=e.pop();)if(yield t,r=t.children)for(i=0,a=r.length;i=0;--s)i.push(a=o[s]=new Bd(o[s])),a.parent=r,a.depth=r.depth+1;return n.eachBefore(iie)}function vWe(){return X3(this).eachBefore(SWe)}function bWe(t){return t.children}function EWe(t){return Array.isArray(t)?t[1]:null}function SWe(t){t.data.value!==void 0&&(t.value=t.data.value),t.data=t.data.data}function iie(t){var e=0;do t.height=e;while((t=t.parent)&&t.height<++e)}function Bd(t){this.data=t,this.depth=this.height=0,this.parent=null}Bd.prototype=X3.prototype={constructor:Bd,count:iWe,each:aWe,eachAfter:sWe,eachBefore:oWe,find:lWe,sum:cWe,sort:uWe,path:dWe,ancestors:pWe,descendants:_We,leaves:mWe,links:hWe,copy:vWe,[Symbol.iterator]:gWe};function yWe(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}function TWe(t){for(var e=t.length,n,r;e;)r=Math.random()*e--|0,n=t[e],t[e]=t[r],t[r]=n;return t}function aie(t){for(var e=0,n=(t=TWe(Array.from(t))).length,r=[],i,a;e0&&n*n>r*r+i*i}function UA(t,e){for(var n=0;nl?(i=(c+l-a)/(2*c),s=Math.sqrt(Math.max(0,l/c-i*i)),n.x=t.x-i*r-s*o,n.y=t.y-i*o+s*r):(i=(c+a-l)/(2*c),s=Math.sqrt(Math.max(0,a/c-i*i)),n.x=e.x+i*r-s*o,n.y=e.y+i*o+s*r)):(n.x=e.x+n.r,n.y=e.y)}function gH(t,e){var n=t.r+e.r-1e-6,r=e.x-t.x,i=e.y-t.y;return n>0&&n*n>r*r+i*i}function vH(t){var e=t._,n=t.next._,r=e.r+n.r,i=(e.x*n.r+n.x*e.r)/r,a=(e.y*n.r+n.y*e.r)/r;return i*i+a*a}function ZS(t){this._=t,this.next=null,this.previous=null}function lie(t){if(!(i=(t=yWe(t)).length))return 0;var e,n,r,i,a,o,s,l,c,d,f;if(e=t[0],e.x=0,e.y=0,!(i>1))return e.r;if(n=t[1],e.x=-n.r,n.x=e.r,n.y=0,!(i>2))return e.r+n.r;hH(n,e,r=t[2]),e=new ZS(e),n=new ZS(n),r=new ZS(r),e.next=r.previous=n,n.next=e.previous=r,r.next=n.previous=e;e:for(s=3;s0)throw new Error("cycle");return l}return n.id=function(r){return arguments.length?(t=eO(r),n):t},n.parentId=function(r){return arguments.length?(e=eO(r),n):e},n}function kWe(t,e){return t.parent===e.parent?1:2}function HA(t){var e=t.children;return e?e[0]:t.t}function YA(t){var e=t.children;return e?e[e.length-1]:t.t}function $We(t,e,n){var r=n/(e.i-t.i);e.c-=r,e.s+=n,t.c+=r,e.z+=n,e.m+=n}function FWe(t){for(var e=0,n=0,r=t.children,i=r.length,a;--i>=0;)a=r[i],a.z+=e,a.m+=e,e+=a.s+(n+=a.c)}function BWe(t,e,n){return t.a.parent===e.parent?t.a:n}function Zy(t,e){this._=t,this.parent=null,this.children=null,this.A=null,this.a=this,this.z=0,this.m=0,this.c=0,this.s=0,this.t=null,this.i=e}Zy.prototype=Object.create(Bd.prototype);function UWe(t){for(var e=new Zy(t,0),n,r=[e],i,a,o,s;n=r.pop();)if(a=n._.children)for(n.children=new Array(s=a.length),o=s-1;o>=0;--o)r.push(i=n.children[o]=new Zy(a[o],o)),i.parent=n;return(e.parent=new Zy(null,0)).children=[e],e}function GWe(){var t=kWe,e=1,n=1,r=null;function i(c){var d=UWe(c);if(d.eachAfter(a),d.parent.m=-d.z,d.eachBefore(o),r)c.eachBefore(l);else{var f=c,p=c,m=c;c.eachBefore(function(T){T.xp.x&&(p=T),T.depth>m.depth&&(m=T)});var h=f===p?1:t(f,p)/2,g=h-f.x,E=e/(p.x+h+g),S=n/(m.depth||1);c.eachBefore(function(T){T.x=(T.x+g)*E,T.y=T.depth*S})}return c}function a(c){var d=c.children,f=c.parent.children,p=c.i?f[c.i-1]:null;if(d){FWe(c);var m=(d[0].z+d[d.length-1].z)/2;p?(c.z=p.z+t(c._,p._),c.m=c.z-m):c.z=m}else p&&(c.z=p.z+t(c._,p._));c.parent.A=s(c,p,c.parent.A||f[0])}function o(c){c._.x=c.z+c.parent.m,c.m+=c.parent.m}function s(c,d,f){if(d){for(var p=c,m=c,h=d,g=p.parent.children[0],E=p.m,S=m.m,T=h.m,y=g.m,O;h=YA(h),p=HA(p),h&&p;)g=HA(g),m=YA(m),m.a=c,O=h.z+T-p.z-E+t(h._,p._),O>0&&($We(BWe(h,c,f),c,O),E+=O,S+=O),T+=h.m,E+=p.m,y+=g.m,S+=m.m;h&&!YA(m)&&(m.t=h,m.m+=T-S),p&&!HA(g)&&(g.t=p,g.m+=E-y,f=c)}return f}function l(c){c.x*=e,c.y=c.depth*n}return i.separation=function(c){return arguments.length?(t=c,i):t},i.size=function(c){return arguments.length?(r=!1,e=+c[0],n=+c[1],i):r?null:[e,n]},i.nodeSize=function(c){return arguments.length?(r=!0,e=+c[0],n=+c[1],i):r?[e,n]:null},i}function W0(t,e,n,r,i){for(var a=t.children,o,s=-1,l=a.length,c=t.value&&(i-n)/t.value;++sT&&(T=c),w=E*E*N,y=Math.max(T/w,w/S),y>O){E-=c;break}O=y}o.push(l={value:E,dice:m1?r:1)},n}(uie);function HWe(){var t=fie,e=!1,n=1,r=1,i=[0],a=td,o=td,s=td,l=td,c=td;function d(p){return p.x0=p.y0=0,p.x1=n,p.y1=r,p.eachBefore(f),i=[0],e&&p.eachBefore(cie),p}function f(p){var m=i[p.depth],h=p.x0+m,g=p.y0+m,E=p.x1-m,S=p.y1-m;E=p-1){var T=a[f];T.x0=h,T.y0=g,T.x1=E,T.y1=S;return}for(var y=c[f],O=m/2+y,N=f+1,w=p-1;N>>1;c[F]S-g){var B=m?(h*q+E*P)/m:E;d(f,N,P,h,g,B,S),d(N,p,q,B,g,E,S)}else{var U=m?(g*q+S*P)/m:S;d(f,N,P,h,g,E,U),d(N,p,q,h,U,E,S)}}}function VWe(t,e,n,r,i){(t.depth&1?W0:Db)(t,e,n,r,i)}const zWe=function t(e){function n(r,i,a,o,s){if((l=r._squarify)&&l.ratio===e)for(var l,c,d,f,p=-1,m,h=l.length,g=r.value;++p1?r:1)},n}(uie);function qWe(t){for(var e=-1,n=t.length,r,i=t[n-1],a=0;++e1&&KWe(t[n[r-2]],t[n[r-1]],t[i])<=0;)--r;n[r++]=i}return n.slice(0,r)}function QWe(t){if((n=t.length)<3)return null;var e,n,r=new Array(n),i=new Array(n);for(e=0;e=0;--e)c.push(t[r[a[e]][2]]);for(e=+s;ea!=s>a&&i<(o-l)*(a-c)/(s-c)+l&&(d=!d),o=l,s=c;return d}function ZWe(t){for(var e=-1,n=t.length,r=t[n-1],i,a,o=r[0],s=r[1],l=0;++e1);return r+i*s*Math.sqrt(-2*Math.log(o)/o)}}return n.source=t,n}(Qr),tKe=function t(e){var n=Z3.source(e);function r(){var i=n.apply(this,arguments);return function(){return Math.exp(i())}}return r.source=t,r}(Qr),pie=function t(e){function n(r){return(r=+r)<=0?()=>0:function(){for(var i=0,a=r;a>1;--a)i+=e();return i+a*e()}}return n.source=t,n}(Qr),nKe=function t(e){var n=pie.source(e);function r(i){if((i=+i)==0)return e;var a=n(i);return function(){return a()/i}}return r.source=t,r}(Qr),rKe=function t(e){function n(r){return function(){return-Math.log1p(-e())/r}}return n.source=t,n}(Qr),iKe=function t(e){function n(r){if((r=+r)<0)throw new RangeError("invalid alpha");return r=1/-r,function(){return Math.pow(1-e(),r)}}return n.source=t,n}(Qr),aKe=function t(e){function n(r){if((r=+r)<0||r>1)throw new RangeError("invalid p");return function(){return Math.floor(e()+r)}}return n.source=t,n}(Qr),_ie=function t(e){function n(r){if((r=+r)<0||r>1)throw new RangeError("invalid p");return r===0?()=>1/0:r===1?()=>1:(r=Math.log1p(-r),function(){return 1+Math.floor(Math.log1p(-e())/r)})}return n.source=t,n}(Qr),J3=function t(e){var n=Z3.source(e)();function r(i,a){if((i=+i)<0)throw new RangeError("invalid k");if(i===0)return()=>0;if(a=a==null?1:+a,i===1)return()=>-Math.log1p(-e())*a;var o=(i<1?i+1:i)-1/3,s=1/(3*Math.sqrt(o)),l=i<1?()=>Math.pow(e(),1/i):()=>1;return function(){do{do var c=n(),d=1+s*c;while(d<=0);d*=d*d;var f=1-e()}while(f>=1-.0331*c*c*c*c&&Math.log(f)>=.5*c*c+o*(1-d+Math.log(d)));return o*d*l()*a}}return r.source=t,r}(Qr),mie=function t(e){var n=J3.source(e);function r(i,a){var o=n(i),s=n(a);return function(){var l=o();return l===0?0:l/(l+s())}}return r.source=t,r}(Qr),hie=function t(e){var n=_ie.source(e),r=mie.source(e);function i(a,o){return a=+a,(o=+o)>=1?()=>a:o<=0?()=>0:function(){for(var s=0,l=a,c=o;l*c>16&&l*(1-c)>16;){var d=Math.floor((l+1)*c),f=r(d,l-d+1)();f<=c?(s+=d,l-=d,c=(c-f)/(1-f)):(l=d-1,c/=f)}for(var p=c<.5,m=p?c:1-c,h=n(m),g=h(),E=0;g<=l;++E)g+=h();return s+(p?E:l-E)}}return i.source=t,i}(Qr),oKe=function t(e){function n(r,i,a){var o;return(r=+r)==0?o=s=>-Math.log(s):(r=1/r,o=s=>Math.pow(s,r)),i=i==null?0:+i,a=a==null?1:+a,function(){return i+a*o(-Math.log1p(-e()))}}return n.source=t,n}(Qr),sKe=function t(e){function n(r,i){return r=r==null?0:+r,i=i==null?1:+i,function(){return r+i*Math.tan(Math.PI*e())}}return n.source=t,n}(Qr),lKe=function t(e){function n(r,i){return r=r==null?0:+r,i=i==null?1:+i,function(){var a=e();return r+i*Math.log(a/(1-a))}}return n.source=t,n}(Qr),cKe=function t(e){var n=J3.source(e),r=hie.source(e);function i(a){return function(){for(var o=0,s=a;s>16;){var l=Math.floor(.875*s),c=n(l)();if(c>s)return o+r(l-1,s/c)();o+=l,s-=c}for(var d=-Math.log1p(-e()),f=0;d<=s;++f)d-=Math.log1p(-e());return o+f}}return i.source=t,i}(Qr),uKe=1664525,dKe=1013904223,TH=1/4294967296;function fKe(t=Math.random()){let e=(0<=t&&t<1?t/TH:Math.abs(t))|0;return()=>(e=uKe*e+dKe|0,TH*(e>>>0))}function fo(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t);break}return this}function Gl(t,e){switch(arguments.length){case 0:break;case 1:{typeof t=="function"?this.interpolator(t):this.range(t);break}default:{this.domain(t),typeof e=="function"?this.interpolator(e):this.range(e);break}}return this}const tO=Symbol("implicit");function mm(){var t=new wv,e=[],n=[],r=tO;function i(a){let o=t.get(a);if(o===void 0){if(r!==tO)return r;t.set(a,o=e.push(a)-1)}return n[o%n.length]}return i.domain=function(a){if(!arguments.length)return e.slice();e=[],t=new wv;for(const o of a)t.has(o)||t.set(o,e.push(o)-1);return i},i.range=function(a){return arguments.length?(n=Array.from(a),i):n.slice()},i.unknown=function(a){return arguments.length?(r=a,i):r},i.copy=function(){return mm(e,n).unknown(r)},fo.apply(i,arguments),i}function xb(){var t=mm().unknown(void 0),e=t.domain,n=t.range,r=0,i=1,a,o,s=!1,l=0,c=0,d=.5;delete t.unknown;function f(){var p=e().length,m=ie&&(n=t,t=e,e=n),function(r){return Math.max(t,Math.min(e,r))}}function mKe(t,e,n){var r=t[0],i=t[1],a=e[0],o=e[1];return i2?hKe:mKe,l=c=null,f}function f(p){return p==null||isNaN(p=+p)?a:(l||(l=s(t.map(r),e,n)))(r(o(p)))}return f.invert=function(p){return o(i((c||(c=s(e,t.map(r),to)))(p)))},f.domain=function(p){return arguments.length?(t=Array.from(p,nO),d()):t.slice()},f.range=function(p){return arguments.length?(e=Array.from(p),d()):e.slice()},f.rangeRound=function(p){return e=Array.from(p),n=Ob,d()},f.clamp=function(p){return arguments.length?(o=p?!0:Ri,d()):o!==Ri},f.interpolate=function(p){return arguments.length?(n=p,d()):n},f.unknown=function(p){return arguments.length?(a=p,f):a},function(p,m){return r=p,i=m,d()}}function e$(){return K0()(Ri,Ri)}function t$(t,e,n,r){var i=b1(t,e,n),a;switch(r=B_(r??",f"),r.type){case"s":{var o=Math.max(Math.abs(t),Math.abs(e));return r.precision==null&&!isNaN(a=gre(i,o))&&(r.precision=a),x3(r,o)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(a=vre(i,Math.max(Math.abs(t),Math.abs(e))))&&(r.precision=a-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(a=hre(i))&&(r.precision=a-(r.type==="%")*2);break}}return rf(r)}function fu(t){var e=t.domain;return t.ticks=function(n){var r=e();return Iv(r[0],r[r.length-1],n??10)},t.tickFormat=function(n,r){var i=e();return t$(i[0],i[i.length-1],n??10,r)},t.nice=function(n){n==null&&(n=10);var r=e(),i=0,a=r.length-1,o=r[i],s=r[a],l,c,d=10;for(s0;){if(c=Sb(o,s,n),c===l)return r[i]=o,r[a]=s,e(r);if(c>0)o=Math.floor(o/c)*c,s=Math.ceil(s/c)*c;else if(c<0)o=Math.ceil(o*c)/c,s=Math.floor(s*c)/c;else break;l=c}return t},t}function Ll(){var t=e$();return t.copy=function(){return Mb(t,Ll())},fo.apply(t,arguments),fu(t)}function n$(t){var e;function n(r){return r==null||isNaN(r=+r)?e:r}return n.invert=n,n.domain=n.range=function(r){return arguments.length?(t=Array.from(r,nO),n):t.slice()},n.unknown=function(r){return arguments.length?(e=r,n):e},n.copy=function(){return n$(t).unknown(e)},t=arguments.length?Array.from(t,nO):[0,1],fu(n)}function bie(t,e){t=t.slice();var n=0,r=t.length-1,i=t[n],a=t[r],o;return aMath.pow(t,e)}function SKe(t){return t===Math.E?Math.log:t===10&&Math.log10||t===2&&Math.log2||(t=Math.log(t),e=>Math.log(e)/t)}function NH(t){return(e,n)=>-t(-e,n)}function r$(t){const e=t(CH,RH),n=e.domain;let r=10,i,a;function o(){return i=SKe(r),a=EKe(r),n()[0]<0?(i=NH(i),a=NH(a),t(gKe,vKe)):t(CH,RH),e}return e.base=function(s){return arguments.length?(r=+s,o()):r},e.domain=function(s){return arguments.length?(n(s),o()):n()},e.ticks=s=>{const l=n();let c=l[0],d=l[l.length-1];const f=d0){for(;p<=m;++p)for(h=1;hd)break;S.push(g)}}else for(;p<=m;++p)for(h=r-1;h>=1;--h)if(g=p>0?h/a(-p):h*a(p),!(gd)break;S.push(g)}S.length*2{if(s==null&&(s=10),l==null&&(l=r===10?".0e":","),typeof l!="function"&&(!(r%1)&&(l=B_(l)).precision==null&&(l.trim=!0),l=rf(l)),s===1/0)return l;const c=Math.max(1,r*s/e.ticks().length);return d=>{let f=d/a(Math.round(i(d)));return f*rn(bie(n(),{floor:s=>a(Math.floor(i(s))),ceil:s=>a(Math.ceil(i(s)))})),e}function j0(){const t=r$(K0()).domain([1,10]);return t.copy=()=>Mb(t,j0()).base(t.base()),fo.apply(t,arguments),t}function AH(t){return function(e){return Math.sign(e)*Math.log1p(Math.abs(e/t))}}function wH(t){return function(e){return Math.sign(e)*Math.expm1(Math.abs(e))*t}}function i$(t){var e=1,n=t(AH(e),wH(e));return n.constant=function(r){return arguments.length?t(AH(e=+r),wH(e)):e},fu(n)}function a$(){var t=i$(K0());return t.copy=function(){return Mb(t,a$()).constant(t.constant())},fo.apply(t,arguments)}function IH(t){return function(e){return e<0?-Math.pow(-e,t):Math.pow(e,t)}}function yKe(t){return t<0?-Math.sqrt(-t):Math.sqrt(t)}function TKe(t){return t<0?-t*t:t*t}function o$(t){var e=t(Ri,Ri),n=1;function r(){return n===1?t(Ri,Ri):n===.5?t(yKe,TKe):t(IH(n),IH(1/n))}return e.exponent=function(i){return arguments.length?(n=+i,r()):n},fu(e)}function Q0(){var t=o$(K0());return t.copy=function(){return Mb(t,Q0()).exponent(t.exponent())},fo.apply(t,arguments),t}function Eie(){return Q0.apply(null,arguments).exponent(.5)}function DH(t){return Math.sign(t)*t*t}function OKe(t){return Math.sign(t)*Math.sqrt(Math.abs(t))}function s$(){var t=e$(),e=[0,1],n=!1,r;function i(a){var o=OKe(t(a));return isNaN(o)?r:n?Math.round(o):o}return i.invert=function(a){return t.invert(DH(a))},i.domain=function(a){return arguments.length?(t.domain(a),i):t.domain()},i.range=function(a){return arguments.length?(t.range((e=Array.from(a,nO)).map(DH)),i):e.slice()},i.rangeRound=function(a){return i.range(a).round(!0)},i.round=function(a){return arguments.length?(n=!!a,i):n},i.clamp=function(a){return arguments.length?(t.clamp(a),i):t.clamp()},i.unknown=function(a){return arguments.length?(r=a,i):r},i.copy=function(){return s$(t.domain(),e).round(n).clamp(t.clamp()).unknown(r)},fo.apply(i,arguments),fu(i)}function l$(){var t=[],e=[],n=[],r;function i(){var o=0,s=Math.max(1,e.length);for(n=new Array(s-1);++o0?n[s-1]:t[0],s=n?[r[n-1],e]:[r[c-1],r[c]]},o.unknown=function(l){return arguments.length&&(a=l),o},o.thresholds=function(){return r.slice()},o.copy=function(){return c$().domain([t,e]).range(i).unknown(a)},fo.apply(fu(o),arguments)}function u$(){var t=[.5],e=[0,1],n,r=1;function i(a){return a!=null&&a<=a?e[Zd(t,a,0,r)]:n}return i.domain=function(a){return arguments.length?(t=Array.from(a),r=Math.min(t.length,e.length-1),i):t.slice()},i.range=function(a){return arguments.length?(e=Array.from(a),r=Math.min(t.length,e.length-1),i):e.slice()},i.invertExtent=function(a){var o=e.indexOf(a);return[t[o-1],t[o]]},i.unknown=function(a){return arguments.length?(n=a,i):n},i.copy=function(){return u$().domain(t).range(e).unknown(n)},fo.apply(i,arguments)}var VA=new Date,zA=new Date;function Or(t,e,n,r){function i(a){return t(a=arguments.length===0?new Date:new Date(+a)),a}return i.floor=function(a){return t(a=new Date(+a)),a},i.ceil=function(a){return t(a=new Date(a-1)),e(a,1),t(a),a},i.round=function(a){var o=i(a),s=i.ceil(a);return a-o0))return l;do l.push(c=new Date(+a)),e(a,s),t(a);while(c=o)for(;t(o),!a(o);)o.setTime(o-1)},function(o,s){if(o>=o)if(s<0)for(;++s<=0;)for(;e(o,-1),!a(o););else for(;--s>=0;)for(;e(o,1),!a(o););})},n&&(i.count=function(a,o){return VA.setTime(+a),zA.setTime(+o),t(VA),t(zA),Math.floor(n(VA,zA))},i.every=function(a){return a=Math.floor(a),!isFinite(a)||!(a>0)?null:a>1?i.filter(r?function(o){return r(o)%a===0}:function(o){return i.count(0,o)%a===0}):i}),i}var rO=Or(function(){},function(t,e){t.setTime(+t+e)},function(t,e){return e-t});rO.every=function(t){return t=Math.floor(t),!isFinite(t)||!(t>0)?null:t>1?Or(function(e){e.setTime(Math.floor(e/t)*t)},function(e,n){e.setTime(+e+n*t)},function(e,n){return(n-e)/t}):rO};const DP=rO;var xH=rO.range;const El=1e3,oo=El*60,Sl=oo*60,Ud=Sl*24,d$=Ud*7,MH=Ud*30,qA=Ud*365;var Sie=Or(function(t){t.setTime(t-t.getMilliseconds())},function(t,e){t.setTime(+t+e*El)},function(t,e){return(e-t)/El},function(t){return t.getUTCSeconds()});const Rc=Sie;var PH=Sie.range,yie=Or(function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*El)},function(t,e){t.setTime(+t+e*oo)},function(t,e){return(e-t)/oo},function(t){return t.getMinutes()});const f$=yie;var CKe=yie.range,Tie=Or(function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*El-t.getMinutes()*oo)},function(t,e){t.setTime(+t+e*Sl)},function(t,e){return(e-t)/Sl},function(t){return t.getHours()});const p$=Tie;var RKe=Tie.range,Oie=Or(t=>t.setHours(0,0,0,0),(t,e)=>t.setDate(t.getDate()+e),(t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*oo)/Ud,t=>t.getDate()-1);const Pb=Oie;var NKe=Oie.range;function af(t){return Or(function(e){e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)},function(e,n){e.setDate(e.getDate()+n*7)},function(e,n){return(n-e-(n.getTimezoneOffset()-e.getTimezoneOffset())*oo)/d$})}var Y_=af(0),Vv=af(1),Cie=af(2),Rie=af(3),Gd=af(4),Nie=af(5),Aie=af(6),LH=Y_.range,AKe=Vv.range,wKe=Cie.range,IKe=Rie.range,DKe=Gd.range,xKe=Nie.range,MKe=Aie.range,wie=Or(function(t){t.setDate(1),t.setHours(0,0,0,0)},function(t,e){t.setMonth(t.getMonth()+e)},function(t,e){return e.getMonth()-t.getMonth()+(e.getFullYear()-t.getFullYear())*12},function(t){return t.getMonth()});const _$=wie;var PKe=wie.range,m$=Or(function(t){t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,e){t.setFullYear(t.getFullYear()+e)},function(t,e){return e.getFullYear()-t.getFullYear()},function(t){return t.getFullYear()});m$.every=function(t){return!isFinite(t=Math.floor(t))||!(t>0)?null:Or(function(e){e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)},function(e,n){e.setFullYear(e.getFullYear()+n*t)})};const Zc=m$;var LKe=m$.range,Iie=Or(function(t){t.setUTCSeconds(0,0)},function(t,e){t.setTime(+t+e*oo)},function(t,e){return(e-t)/oo},function(t){return t.getUTCMinutes()});const h$=Iie;var kKe=Iie.range,Die=Or(function(t){t.setUTCMinutes(0,0,0)},function(t,e){t.setTime(+t+e*Sl)},function(t,e){return(e-t)/Sl},function(t){return t.getUTCHours()});const g$=Die;var $Ke=Die.range,xie=Or(function(t){t.setUTCHours(0,0,0,0)},function(t,e){t.setUTCDate(t.getUTCDate()+e)},function(t,e){return(e-t)/Ud},function(t){return t.getUTCDate()-1});const Lb=xie;var FKe=xie.range;function of(t){return Or(function(e){e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)},function(e,n){e.setUTCDate(e.getUTCDate()+n*7)},function(e,n){return(n-e)/d$})}var V_=of(0),zv=of(1),Mie=of(2),Pie=of(3),Hd=of(4),Lie=of(5),kie=of(6),kH=V_.range,BKe=zv.range,UKe=Mie.range,GKe=Pie.range,HKe=Hd.range,YKe=Lie.range,VKe=kie.range,$ie=Or(function(t){t.setUTCDate(1),t.setUTCHours(0,0,0,0)},function(t,e){t.setUTCMonth(t.getUTCMonth()+e)},function(t,e){return e.getUTCMonth()-t.getUTCMonth()+(e.getUTCFullYear()-t.getUTCFullYear())*12},function(t){return t.getUTCMonth()});const v$=$ie;var zKe=$ie.range,b$=Or(function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,e){t.setUTCFullYear(t.getUTCFullYear()+e)},function(t,e){return e.getUTCFullYear()-t.getUTCFullYear()},function(t){return t.getUTCFullYear()});b$.every=function(t){return!isFinite(t=Math.floor(t))||!(t>0)?null:Or(function(e){e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},function(e,n){e.setUTCFullYear(e.getUTCFullYear()+n*t)})};const Jc=b$;var qKe=b$.range;function Fie(t,e,n,r,i,a){const o=[[Rc,1,El],[Rc,5,5*El],[Rc,15,15*El],[Rc,30,30*El],[a,1,oo],[a,5,5*oo],[a,15,15*oo],[a,30,30*oo],[i,1,Sl],[i,3,3*Sl],[i,6,6*Sl],[i,12,12*Sl],[r,1,Ud],[r,2,2*Ud],[n,1,d$],[e,1,MH],[e,3,3*MH],[t,1,qA]];function s(c,d,f){const p=dE).right(o,p);if(m===o.length)return t.every(b1(c/qA,d/qA,f));if(m===0)return DP.every(Math.max(b1(c,d,f),1));const[h,g]=o[p/o[m-1][2]53)return null;"w"in Ee||(Ee.w=1),"Z"in Ee?($e=KA(rg(Ee.y,0,1)),Xt=$e.getUTCDay(),$e=Xt>4||Xt===0?zv.ceil($e):zv($e),$e=Lb.offset($e,(Ee.V-1)*7),Ee.y=$e.getUTCFullYear(),Ee.m=$e.getUTCMonth(),Ee.d=$e.getUTCDate()+(Ee.w+6)%7):($e=WA(rg(Ee.y,0,1)),Xt=$e.getDay(),$e=Xt>4||Xt===0?Vv.ceil($e):Vv($e),$e=Pb.offset($e,(Ee.V-1)*7),Ee.y=$e.getFullYear(),Ee.m=$e.getMonth(),Ee.d=$e.getDate()+(Ee.w+6)%7)}else("W"in Ee||"U"in Ee)&&("w"in Ee||(Ee.w="u"in Ee?Ee.u%7:"W"in Ee?1:0),Xt="Z"in Ee?KA(rg(Ee.y,0,1)).getUTCDay():WA(rg(Ee.y,0,1)).getDay(),Ee.m=0,Ee.d="W"in Ee?(Ee.w+6)%7+Ee.W*7-(Xt+5)%7:Ee.w+Ee.U*7-(Xt+6)%7);return"Z"in Ee?(Ee.H+=Ee.Z/100|0,Ee.M+=Ee.Z%100,KA(Ee)):WA(Ee)}}function P(me,we,Fe,Ee){for(var Et=0,$e=we.length,Xt=Fe.length,hn,Ce;Et<$e;){if(Ee>=Xt)return-1;if(hn=we.charCodeAt(Et++),hn===37){if(hn=we.charAt(Et++),Ce=N[hn in $H?we.charAt(Et++):hn],!Ce||(Ee=Ce(me,Fe,Ee))<0)return-1}else if(hn!=Fe.charCodeAt(Ee++))return-1}return Ee}function q(me,we,Fe){var Ee=c.exec(we.slice(Fe));return Ee?(me.p=d.get(Ee[0].toLowerCase()),Fe+Ee[0].length):-1}function B(me,we,Fe){var Ee=m.exec(we.slice(Fe));return Ee?(me.w=h.get(Ee[0].toLowerCase()),Fe+Ee[0].length):-1}function U(me,we,Fe){var Ee=f.exec(we.slice(Fe));return Ee?(me.w=p.get(Ee[0].toLowerCase()),Fe+Ee[0].length):-1}function $(me,we,Fe){var Ee=S.exec(we.slice(Fe));return Ee?(me.m=T.get(Ee[0].toLowerCase()),Fe+Ee[0].length):-1}function k(me,we,Fe){var Ee=g.exec(we.slice(Fe));return Ee?(me.m=E.get(Ee[0].toLowerCase()),Fe+Ee[0].length):-1}function x(me,we,Fe){return P(me,e,we,Fe)}function H(me,we,Fe){return P(me,n,we,Fe)}function M(me,we,Fe){return P(me,r,we,Fe)}function K(me){return o[me.getDay()]}function X(me){return a[me.getDay()]}function z(me){return l[me.getMonth()]}function j(me){return s[me.getMonth()]}function ie(me){return i[+(me.getHours()>=12)]}function oe(me){return 1+~~(me.getMonth()/3)}function ce(me){return o[me.getUTCDay()]}function de(me){return a[me.getUTCDay()]}function he(me){return l[me.getUTCMonth()]}function ge(me){return s[me.getUTCMonth()]}function _e(me){return i[+(me.getUTCHours()>=12)]}function xe(me){return 1+~~(me.getUTCMonth()/3)}return{format:function(me){var we=w(me+="",y);return we.toString=function(){return me},we},parse:function(me){var we=F(me+="",!1);return we.toString=function(){return me},we},utcFormat:function(me){var we=w(me+="",O);return we.toString=function(){return me},we},utcParse:function(me){var we=F(me+="",!0);return we.toString=function(){return me},we}}}var $H={"-":"",_:" ",0:"0"},Hr=/^\s*\d+/,WKe=/^%/,KKe=/[\\^$*+?|[\]().{}]/g;function an(t,e,n){var r=t<0?"-":"",i=(r?-t:t)+"",a=i.length;return r+(a[e.toLowerCase(),n]))}function QKe(t,e,n){var r=Hr.exec(e.slice(n,n+1));return r?(t.w=+r[0],n+r[0].length):-1}function XKe(t,e,n){var r=Hr.exec(e.slice(n,n+1));return r?(t.u=+r[0],n+r[0].length):-1}function ZKe(t,e,n){var r=Hr.exec(e.slice(n,n+2));return r?(t.U=+r[0],n+r[0].length):-1}function JKe(t,e,n){var r=Hr.exec(e.slice(n,n+2));return r?(t.V=+r[0],n+r[0].length):-1}function eje(t,e,n){var r=Hr.exec(e.slice(n,n+2));return r?(t.W=+r[0],n+r[0].length):-1}function FH(t,e,n){var r=Hr.exec(e.slice(n,n+4));return r?(t.y=+r[0],n+r[0].length):-1}function BH(t,e,n){var r=Hr.exec(e.slice(n,n+2));return r?(t.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function tje(t,e,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(n,n+6));return r?(t.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function nje(t,e,n){var r=Hr.exec(e.slice(n,n+1));return r?(t.q=r[0]*3-3,n+r[0].length):-1}function rje(t,e,n){var r=Hr.exec(e.slice(n,n+2));return r?(t.m=r[0]-1,n+r[0].length):-1}function UH(t,e,n){var r=Hr.exec(e.slice(n,n+2));return r?(t.d=+r[0],n+r[0].length):-1}function ije(t,e,n){var r=Hr.exec(e.slice(n,n+3));return r?(t.m=0,t.d=+r[0],n+r[0].length):-1}function GH(t,e,n){var r=Hr.exec(e.slice(n,n+2));return r?(t.H=+r[0],n+r[0].length):-1}function aje(t,e,n){var r=Hr.exec(e.slice(n,n+2));return r?(t.M=+r[0],n+r[0].length):-1}function oje(t,e,n){var r=Hr.exec(e.slice(n,n+2));return r?(t.S=+r[0],n+r[0].length):-1}function sje(t,e,n){var r=Hr.exec(e.slice(n,n+3));return r?(t.L=+r[0],n+r[0].length):-1}function lje(t,e,n){var r=Hr.exec(e.slice(n,n+6));return r?(t.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function cje(t,e,n){var r=WKe.exec(e.slice(n,n+1));return r?n+r[0].length:-1}function uje(t,e,n){var r=Hr.exec(e.slice(n));return r?(t.Q=+r[0],n+r[0].length):-1}function dje(t,e,n){var r=Hr.exec(e.slice(n));return r?(t.s=+r[0],n+r[0].length):-1}function HH(t,e){return an(t.getDate(),e,2)}function fje(t,e){return an(t.getHours(),e,2)}function pje(t,e){return an(t.getHours()%12||12,e,2)}function _je(t,e){return an(1+Pb.count(Zc(t),t),e,3)}function Vie(t,e){return an(t.getMilliseconds(),e,3)}function mje(t,e){return Vie(t,e)+"000"}function hje(t,e){return an(t.getMonth()+1,e,2)}function gje(t,e){return an(t.getMinutes(),e,2)}function vje(t,e){return an(t.getSeconds(),e,2)}function bje(t){var e=t.getDay();return e===0?7:e}function Eje(t,e){return an(Y_.count(Zc(t)-1,t),e,2)}function zie(t){var e=t.getDay();return e>=4||e===0?Gd(t):Gd.ceil(t)}function Sje(t,e){return t=zie(t),an(Gd.count(Zc(t),t)+(Zc(t).getDay()===4),e,2)}function yje(t){return t.getDay()}function Tje(t,e){return an(Vv.count(Zc(t)-1,t),e,2)}function Oje(t,e){return an(t.getFullYear()%100,e,2)}function Cje(t,e){return t=zie(t),an(t.getFullYear()%100,e,2)}function Rje(t,e){return an(t.getFullYear()%1e4,e,4)}function Nje(t,e){var n=t.getDay();return t=n>=4||n===0?Gd(t):Gd.ceil(t),an(t.getFullYear()%1e4,e,4)}function Aje(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+an(e/60|0,"0",2)+an(e%60,"0",2)}function YH(t,e){return an(t.getUTCDate(),e,2)}function wje(t,e){return an(t.getUTCHours(),e,2)}function Ije(t,e){return an(t.getUTCHours()%12||12,e,2)}function Dje(t,e){return an(1+Lb.count(Jc(t),t),e,3)}function qie(t,e){return an(t.getUTCMilliseconds(),e,3)}function xje(t,e){return qie(t,e)+"000"}function Mje(t,e){return an(t.getUTCMonth()+1,e,2)}function Pje(t,e){return an(t.getUTCMinutes(),e,2)}function Lje(t,e){return an(t.getUTCSeconds(),e,2)}function kje(t){var e=t.getUTCDay();return e===0?7:e}function $je(t,e){return an(V_.count(Jc(t)-1,t),e,2)}function Wie(t){var e=t.getUTCDay();return e>=4||e===0?Hd(t):Hd.ceil(t)}function Fje(t,e){return t=Wie(t),an(Hd.count(Jc(t),t)+(Jc(t).getUTCDay()===4),e,2)}function Bje(t){return t.getUTCDay()}function Uje(t,e){return an(zv.count(Jc(t)-1,t),e,2)}function Gje(t,e){return an(t.getUTCFullYear()%100,e,2)}function Hje(t,e){return t=Wie(t),an(t.getUTCFullYear()%100,e,2)}function Yje(t,e){return an(t.getUTCFullYear()%1e4,e,4)}function Vje(t,e){var n=t.getUTCDay();return t=n>=4||n===0?Hd(t):Hd.ceil(t),an(t.getUTCFullYear()%1e4,e,4)}function zje(){return"+0000"}function VH(){return"%"}function zH(t){return+t}function qH(t){return Math.floor(+t/1e3)}var $p,E$,S$,X0,y$;Kie({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 Kie(t){return $p=Yie(t),E$=$p.format,S$=$p.parse,X0=$p.utcFormat,y$=$p.utcParse,$p}var jie="%Y-%m-%dT%H:%M:%S.%LZ";function qje(t){return t.toISOString()}var Wje=Date.prototype.toISOString?qje:X0(jie);const Kje=Wje;function jje(t){var e=new Date(t);return isNaN(e)?null:e}var Qje=+new Date("2000-01-01T00:00:00.000Z")?jje:y$(jie);const Xje=Qje;function Zje(t){return new Date(t)}function Jje(t){return t instanceof Date?+t:+new Date(+t)}function T$(t,e,n,r,i,a,o,s,l,c){var d=e$(),f=d.invert,p=d.domain,m=c(".%L"),h=c(":%S"),g=c("%I:%M"),E=c("%I %p"),S=c("%a %d"),T=c("%b %d"),y=c("%B"),O=c("%Y");function N(w){return(l(w)e(i/(t.length-1)))},n.quantiles=function(r){return Array.from({length:r+1},(i,a)=>Dv(t,a/r))},n.copy=function(){return A$(e).domain(t)},Gl.apply(n,arguments)}function eC(){var t=0,e=.5,n=1,r=1,i,a,o,s,l,c=Ri,d,f=!1,p;function m(g){return isNaN(g=+g)?p:(g=.5+((g=+d(g))-a)*(r*gMne(t[t.length-1]);var Jie=new Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e","8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(Dt);const uQe=On(Jie);var eae=new Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837","40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map(Dt);const dQe=On(eae);var tae=new Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419","8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map(Dt);const fQe=On(tae);var nae=new Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map(Dt);const pQe=On(nae);var rae=new Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(Dt);const _Qe=On(rae);var iae=new Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040","ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map(Dt);const mQe=On(iae);var aae=new Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4","d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map(Dt);const hQe=On(aae);var oae=new Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850","d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(Dt);const gQe=On(oae);var sae=new Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd","9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(Dt);const vQe=On(sae);var lae=new Array(3).concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map(Dt);const bQe=On(lae);var cae=new Array(3).concat("e0ecf49ebcda8856a7","edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map(Dt);const EQe=On(cae);var uae=new Array(3).concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map(Dt);const SQe=On(uae);var dae=new Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map(Dt);const yQe=On(dae);var fae=new Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map(Dt);const TQe=On(fae);var pae=new Array(3).concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map(Dt);const OQe=On(pae);var _ae=new Array(3).concat("e7e1efc994c7dd1c77","f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map(Dt);const CQe=On(_ae);var mae=new Array(3).concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map(Dt);const RQe=On(mae);var hae=new Array(3).concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map(Dt);const NQe=On(hae);var gae=new Array(3).concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837","ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map(Dt);const AQe=On(gae);var vae=new Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map(Dt);const wQe=On(vae);var bae=new Array(3).concat("ffeda0feb24cf03b20","ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map(Dt);const IQe=On(bae);var Eae=new Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(Dt);const DQe=On(Eae);var Sae=new Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(Dt);const xQe=On(Sae);var yae=new Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525","f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(Dt);const MQe=On(yae);var Tae=new Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(Dt);const PQe=On(Tae);var Oae=new Array(3).concat("fee0d2fc9272de2d26","fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(Dt);const LQe=On(Oae);var Cae=new Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(Dt);const kQe=On(Cae);function $Qe(t){return t=Math.max(0,Math.min(1,t)),"rgb("+Math.max(0,Math.min(255,Math.round(-4.54-t*(35.34-t*(2381.73-t*(6402.7-t*(7024.72-t*2710.57)))))))+", "+Math.max(0,Math.min(255,Math.round(32.49+t*(170.73+t*(52.82-t*(131.46-t*(176.58-t*67.37)))))))+", "+Math.max(0,Math.min(255,Math.round(81.24+t*(442.36-t*(2482.43-t*(6167.24-t*(6614.94-t*2475.67)))))))+")"}const FQe=$0(ko(300,.5,0),ko(-240,.5,1));var BQe=$0(ko(-100,.75,.35),ko(80,1.5,.8)),UQe=$0(ko(260,.75,.35),ko(80,1.5,.8)),JS=ko();function GQe(t){(t<0||t>1)&&(t-=Math.floor(t));var e=Math.abs(t-.5);return JS.h=360*t-100,JS.s=1.5-1.5*e,JS.l=.8-.9*e,JS+""}var ey=L_(),HQe=Math.PI/3,YQe=Math.PI*2/3;function VQe(t){var e;return t=(.5-t)*Math.PI,ey.r=255*(e=Math.sin(t))*e,ey.g=255*(e=Math.sin(t+HQe))*e,ey.b=255*(e=Math.sin(t+YQe))*e,ey+""}function zQe(t){return t=Math.max(0,Math.min(1,t)),"rgb("+Math.max(0,Math.min(255,Math.round(34.61+t*(1172.33-t*(10793.56-t*(33300.12-t*(38394.49-t*14825.05)))))))+", "+Math.max(0,Math.min(255,Math.round(23.31+t*(557.33+t*(1225.33-t*(3574.96-t*(1073.77+t*707.56)))))))+", "+Math.max(0,Math.min(255,Math.round(27.2+t*(3211.1-t*(15327.97-t*(27814-t*(22569.18-t*6838.66)))))))+")"}function nC(t){var e=t.length;return function(n){return t[Math.max(0,Math.min(e-1,Math.floor(n*e)))]}}const qQe=nC(Dt("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725"));var WQe=nC(Dt("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf")),KQe=nC(Dt("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4")),jQe=nC(Dt("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"));function Ct(t){return function(){return t}}var KH=Math.abs,ri=Math.atan2,Wu=Math.cos,QQe=Math.max,jA=Math.min,ds=Math.sin,c_=Math.sqrt,ii=1e-12,eu=Math.PI,iO=eu/2,kc=2*eu;function XQe(t){return t>1?0:t<-1?eu:Math.acos(t)}function jH(t){return t>=1?iO:t<=-1?-iO:Math.asin(t)}function ZQe(t){return t.innerRadius}function JQe(t){return t.outerRadius}function eXe(t){return t.startAngle}function tXe(t){return t.endAngle}function nXe(t){return t&&t.padAngle}function rXe(t,e,n,r,i,a,o,s){var l=n-t,c=r-e,d=o-i,f=s-a,p=f*l-d*c;if(!(p*px*x+H*H&&(P=B,q=U),{cx:P,cy:q,x01:-d,y01:-f,x11:P*(i/N-1),y11:q*(i/N-1)}}function iXe(){var t=ZQe,e=JQe,n=Ct(0),r=null,i=eXe,a=tXe,o=nXe,s=null;function l(){var c,d,f=+t.apply(this,arguments),p=+e.apply(this,arguments),m=i.apply(this,arguments)-iO,h=a.apply(this,arguments)-iO,g=KH(h-m),E=h>m;if(s||(s=c=du()),pii))s.moveTo(0,0);else if(g>kc-ii)s.moveTo(p*Wu(m),p*ds(m)),s.arc(0,0,p,m,h,!E),f>ii&&(s.moveTo(f*Wu(h),f*ds(h)),s.arc(0,0,f,h,m,E));else{var S=m,T=h,y=m,O=h,N=g,w=g,F=o.apply(this,arguments)/2,P=F>ii&&(r?+r.apply(this,arguments):c_(f*f+p*p)),q=jA(KH(p-f)/2,+n.apply(this,arguments)),B=q,U=q,$,k;if(P>ii){var x=jH(P/f*ds(F)),H=jH(P/p*ds(F));(N-=x*2)>ii?(x*=E?1:-1,y+=x,O-=x):(N=0,y=O=(m+h)/2),(w-=H*2)>ii?(H*=E?1:-1,S+=H,T-=H):(w=0,S=T=(m+h)/2)}var M=p*Wu(S),K=p*ds(S),X=f*Wu(O),z=f*ds(O);if(q>ii){var j=p*Wu(T),ie=p*ds(T),oe=f*Wu(y),ce=f*ds(y),de;if(gii?U>ii?($=ty(oe,ce,M,K,p,U,E),k=ty(j,ie,X,z,p,U,E),s.moveTo($.cx+$.x01,$.cy+$.y01),Uii)||!(N>ii)?s.lineTo(X,z):B>ii?($=ty(X,z,j,ie,f,-B,E),k=ty(M,K,oe,ce,f,-B,E),s.lineTo($.cx+$.x01,$.cy+$.y01),B=p;--m)s.point(T[m],y[m]);s.lineEnd(),s.areaEnd()}E&&(T[f]=+t(g,f,d),y[f]=+e(g,f,d),s.point(r?+r(g,f,d):T[f],n?+n(g,f,d):y[f]))}if(S)return s=null,S+""||null}function c(){return aC().defined(i).curve(o).context(a)}return l.x=function(d){return arguments.length?(t=typeof d=="function"?d:Ct(+d),r=null,l):t},l.x0=function(d){return arguments.length?(t=typeof d=="function"?d:Ct(+d),l):t},l.x1=function(d){return arguments.length?(r=d==null?null:typeof d=="function"?d:Ct(+d),l):r},l.y=function(d){return arguments.length?(e=typeof d=="function"?d:Ct(+d),n=null,l):e},l.y0=function(d){return arguments.length?(e=typeof d=="function"?d:Ct(+d),l):e},l.y1=function(d){return arguments.length?(n=d==null?null:typeof d=="function"?d:Ct(+d),l):n},l.lineX0=l.lineY0=function(){return c().x(t).y(e)},l.lineY1=function(){return c().x(t).y(n)},l.lineX1=function(){return c().x(r).y(e)},l.defined=function(d){return arguments.length?(i=typeof d=="function"?d:Ct(!!d),l):i},l.curve=function(d){return arguments.length?(o=d,a!=null&&(s=o(a)),l):o},l.context=function(d){return arguments.length?(d==null?a=s=null:s=o(a=d),l):a},l}function oXe(t,e){return et?1:e>=t?0:NaN}function sXe(t){return t}function lXe(){var t=sXe,e=oXe,n=null,r=Ct(0),i=Ct(kc),a=Ct(0);function o(s){var l,c=(s=rC(s)).length,d,f,p=0,m=new Array(c),h=new Array(c),g=+r.apply(this,arguments),E=Math.min(kc,Math.max(-kc,i.apply(this,arguments)-g)),S,T=Math.min(Math.abs(E)/c,a.apply(this,arguments)),y=T*(E<0?-1:1),O;for(l=0;l0&&(p+=O);for(e!=null?m.sort(function(N,w){return e(h[N],h[w])}):n!=null&&m.sort(function(N,w){return n(s[N],s[w])}),l=0,f=p?(E-c*y)/p:0;l0?O*f:0)+y,h[d]={data:s[d],index:l,value:O,startAngle:g,endAngle:S,padAngle:T};return h}return o.value=function(s){return arguments.length?(t=typeof s=="function"?s:Ct(+s),o):t},o.sortValues=function(s){return arguments.length?(e=s,n=null,o):e},o.sort=function(s){return arguments.length?(n=s,e=null,o):n},o.startAngle=function(s){return arguments.length?(r=typeof s=="function"?s:Ct(+s),o):r},o.endAngle=function(s){return arguments.length?(i=typeof s=="function"?s:Ct(+s),o):i},o.padAngle=function(s){return arguments.length?(a=typeof s=="function"?s:Ct(+s),o):a},o}var Aae=P$(iC);function wae(t){this._curve=t}wae.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(t,e){this._curve.point(e*Math.sin(t),e*-Math.cos(t))}};function P$(t){function e(n){return new wae(t(n))}return e._curve=t,e}function Mg(t){var e=t.curve;return t.angle=t.x,delete t.x,t.radius=t.y,delete t.y,t.curve=function(n){return arguments.length?e(P$(n)):e()._curve},t}function QH(){return Mg(aC().curve(Aae))}function XH(){var t=Nae().curve(Aae),e=t.curve,n=t.lineX0,r=t.lineX1,i=t.lineY0,a=t.lineY1;return t.angle=t.x,delete t.x,t.startAngle=t.x0,delete t.x0,t.endAngle=t.x1,delete t.x1,t.radius=t.y,delete t.y,t.innerRadius=t.y0,delete t.y0,t.outerRadius=t.y1,delete t.y1,t.lineStartAngle=function(){return Mg(n())},delete t.lineX0,t.lineEndAngle=function(){return Mg(r())},delete t.lineX1,t.lineInnerRadius=function(){return Mg(i())},delete t.lineY0,t.lineOuterRadius=function(){return Mg(a())},delete t.lineY1,t.curve=function(o){return arguments.length?e(P$(o)):e()._curve},t}function Pg(t,e){return[(e=+e)*Math.cos(t-=Math.PI/2),e*Math.sin(t)]}function cXe(t){return t.source}function uXe(t){return t.target}function L$(t){var e=cXe,n=uXe,r=x$,i=M$,a=null;function o(){var s,l=aXe.call(arguments),c=e.apply(this,l),d=n.apply(this,l);if(a||(a=s=du()),t(a,+r.apply(this,(l[0]=c,l)),+i.apply(this,l),+r.apply(this,(l[0]=d,l)),+i.apply(this,l)),s)return a=null,s+""||null}return o.source=function(s){return arguments.length?(e=s,o):e},o.target=function(s){return arguments.length?(n=s,o):n},o.x=function(s){return arguments.length?(r=typeof s=="function"?s:Ct(+s),o):r},o.y=function(s){return arguments.length?(i=typeof s=="function"?s:Ct(+s),o):i},o.context=function(s){return arguments.length?(a=s??null,o):a},o}function dXe(t,e,n,r,i){t.moveTo(e,n),t.bezierCurveTo(e=(e+r)/2,n,e,i,r,i)}function fXe(t,e,n,r,i){t.moveTo(e,n),t.bezierCurveTo(e,n=(n+i)/2,r,n,r,i)}function pXe(t,e,n,r,i){var a=Pg(e,n),o=Pg(e,n=(n+i)/2),s=Pg(r,n),l=Pg(r,i);t.moveTo(a[0],a[1]),t.bezierCurveTo(o[0],o[1],s[0],s[1],l[0],l[1])}function _Xe(){return L$(dXe)}function mXe(){return L$(fXe)}function hXe(){var t=L$(pXe);return t.angle=t.x,delete t.x,t.radius=t.y,delete t.y,t}const k$={draw:function(t,e){var n=Math.sqrt(e/eu);t.moveTo(n,0),t.arc(0,0,n,0,kc)}},Iae={draw:function(t,e){var n=Math.sqrt(e/5)/2;t.moveTo(-3*n,-n),t.lineTo(-n,-n),t.lineTo(-n,-3*n),t.lineTo(n,-3*n),t.lineTo(n,-n),t.lineTo(3*n,-n),t.lineTo(3*n,n),t.lineTo(n,n),t.lineTo(n,3*n),t.lineTo(-n,3*n),t.lineTo(-n,n),t.lineTo(-3*n,n),t.closePath()}};var Dae=Math.sqrt(1/3),gXe=Dae*2;const xae={draw:function(t,e){var n=Math.sqrt(e/gXe),r=n*Dae;t.moveTo(0,-n),t.lineTo(r,0),t.lineTo(0,n),t.lineTo(-r,0),t.closePath()}};var vXe=.8908130915292852,Mae=Math.sin(eu/10)/Math.sin(7*eu/10),bXe=Math.sin(kc/10)*Mae,EXe=-Math.cos(kc/10)*Mae;const Pae={draw:function(t,e){var n=Math.sqrt(e*vXe),r=bXe*n,i=EXe*n;t.moveTo(0,-n),t.lineTo(r,i);for(var a=1;a<5;++a){var o=kc*a/5,s=Math.cos(o),l=Math.sin(o);t.lineTo(l*n,-s*n),t.lineTo(s*r-l*i,l*r+s*i)}t.closePath()}},Lae={draw:function(t,e){var n=Math.sqrt(e),r=-n/2;t.rect(r,r,n,n)}};var QA=Math.sqrt(3);const kae={draw:function(t,e){var n=-Math.sqrt(e/(QA*3));t.moveTo(0,n*2),t.lineTo(-QA*n,-n),t.lineTo(QA*n,-n),t.closePath()}};var Ka=-.5,ja=Math.sqrt(3)/2,xP=1/Math.sqrt(12),SXe=(xP/2+1)*3;const $ae={draw:function(t,e){var n=Math.sqrt(e/SXe),r=n/2,i=n*xP,a=r,o=n*xP+n,s=-a,l=o;t.moveTo(r,i),t.lineTo(a,o),t.lineTo(s,l),t.lineTo(Ka*r-ja*i,ja*r+Ka*i),t.lineTo(Ka*a-ja*o,ja*a+Ka*o),t.lineTo(Ka*s-ja*l,ja*s+Ka*l),t.lineTo(Ka*r+ja*i,Ka*i-ja*r),t.lineTo(Ka*a+ja*o,Ka*o-ja*a),t.lineTo(Ka*s+ja*l,Ka*l-ja*s),t.closePath()}};var yXe=[k$,Iae,xae,Lae,Pae,kae,$ae];function TXe(t,e){var n=null;t=typeof t=="function"?t:Ct(t||k$),e=typeof e=="function"?e:Ct(e===void 0?64:+e);function r(){var i;if(n||(n=i=du()),t.apply(this,arguments).draw(n,+e.apply(this,arguments)),i)return n=null,i+""||null}return r.type=function(i){return arguments.length?(t=typeof i=="function"?i:Ct(i),r):t},r.size=function(i){return arguments.length?(e=typeof i=="function"?i:Ct(+i),r):e},r.context=function(i){return arguments.length?(n=i??null,r):n},r}function tu(){}function aO(t,e,n){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+e)/6,(t._y0+4*t._y1+n)/6)}function oC(t){this._context=t}oC.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:aO(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:aO(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function OXe(t){return new oC(t)}function Fae(t){this._context=t}Fae.prototype={areaStart:tu,areaEnd:tu,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x2=t,this._y2=e;break;case 1:this._point=2,this._x3=t,this._y3=e;break;case 2:this._point=3,this._x4=t,this._y4=e,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+e)/6);break;default:aO(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function CXe(t){return new Fae(t)}function Bae(t){this._context=t}Bae.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+t)/6,r=(this._y0+4*this._y1+e)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:aO(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function RXe(t){return new Bae(t)}class Uae{constructor(e,n){this._context=e,this._x=n}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(e,n){switch(e=+e,n=+n,this._point){case 0:{this._point=1,this._line?this._context.lineTo(e,n):this._context.moveTo(e,n);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+e)/2,this._y0,this._x0,n,e,n):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+n)/2,e,this._y0,e,n);break}}this._x0=e,this._y0=n}}function NXe(t){return new Uae(t,!0)}function AXe(t){return new Uae(t,!1)}function Gae(t,e){this._basis=new oC(t),this._beta=e}Gae.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var t=this._x,e=this._y,n=t.length-1;if(n>0)for(var r=t[0],i=e[0],a=t[n]-r,o=e[n]-i,s=-1,l;++s<=n;)l=s/n,this._basis.point(this._beta*t[s]+(1-this._beta)*(r+l*a),this._beta*e[s]+(1-this._beta)*(i+l*o));this._x=this._y=null,this._basis.lineEnd()},point:function(t,e){this._x.push(+t),this._y.push(+e)}};const wXe=function t(e){function n(r){return e===1?new oC(r):new Gae(r,e)}return n.beta=function(r){return t(+r)},n}(.85);function oO(t,e,n){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-e),t._y2+t._k*(t._y1-n),t._x2,t._y2)}function $$(t,e){this._context=t,this._k=(1-e)/6}$$.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:oO(this,this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2,this._x1=t,this._y1=e;break;case 2:this._point=3;default:oO(this,t,e);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const IXe=function t(e){function n(r){return new $$(r,e)}return n.tension=function(r){return t(+r)},n}(0);function F$(t,e){this._context=t,this._k=(1-e)/6}F$.prototype={areaStart:tu,areaEnd:tu,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:oO(this,t,e);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const DXe=function t(e){function n(r){return new F$(r,e)}return n.tension=function(r){return t(+r)},n}(0);function B$(t,e){this._context=t,this._k=(1-e)/6}B$.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:oO(this,t,e);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const xXe=function t(e){function n(r){return new B$(r,e)}return n.tension=function(r){return t(+r)},n}(0);function U$(t,e,n){var r=t._x1,i=t._y1,a=t._x2,o=t._y2;if(t._l01_a>ii){var s=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,l=3*t._l01_a*(t._l01_a+t._l12_a);r=(r*s-t._x0*t._l12_2a+t._x2*t._l01_2a)/l,i=(i*s-t._y0*t._l12_2a+t._y2*t._l01_2a)/l}if(t._l23_a>ii){var c=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,d=3*t._l23_a*(t._l23_a+t._l12_a);a=(a*c+t._x1*t._l23_2a-e*t._l12_2a)/d,o=(o*c+t._y1*t._l23_2a-n*t._l12_2a)/d}t._context.bezierCurveTo(r,i,a,o,t._x2,t._y2)}function Hae(t,e){this._context=t,this._alpha=e}Hae.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3;default:U$(this,t,e);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const MXe=function t(e){function n(r){return e?new Hae(r,e):new $$(r,0)}return n.alpha=function(r){return t(+r)},n}(.5);function Yae(t,e){this._context=t,this._alpha=e}Yae.prototype={areaStart:tu,areaEnd:tu,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:U$(this,t,e);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const PXe=function t(e){function n(r){return e?new Yae(r,e):new F$(r,0)}return n.alpha=function(r){return t(+r)},n}(.5);function Vae(t,e){this._context=t,this._alpha=e}Vae.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:U$(this,t,e);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const LXe=function t(e){function n(r){return e?new Vae(r,e):new B$(r,0)}return n.alpha=function(r){return t(+r)},n}(.5);function zae(t){this._context=t}zae.prototype={areaStart:tu,areaEnd:tu,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(t,e){t=+t,e=+e,this._point?this._context.lineTo(t,e):(this._point=1,this._context.moveTo(t,e))}};function kXe(t){return new zae(t)}function ZH(t){return t<0?-1:1}function JH(t,e,n){var r=t._x1-t._x0,i=e-t._x1,a=(t._y1-t._y0)/(r||i<0&&-0),o=(n-t._y1)/(i||r<0&&-0),s=(a*i+o*r)/(r+i);return(ZH(a)+ZH(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(s))||0}function eY(t,e){var n=t._x1-t._x0;return n?(3*(t._y1-t._y0)/n-e)/2:e}function XA(t,e,n){var r=t._x0,i=t._y0,a=t._x1,o=t._y1,s=(a-r)/3;t._context.bezierCurveTo(r+s,i+s*e,a-s,o-s*n,a,o)}function sO(t){this._context=t}sO.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:XA(this,this._t0,eY(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){var n=NaN;if(t=+t,e=+e,!(t===this._x1&&e===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,XA(this,eY(this,n=JH(this,t,e)),n);break;default:XA(this,this._t0,n=JH(this,t,e));break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=n}}};function qae(t){this._context=new Wae(t)}(qae.prototype=Object.create(sO.prototype)).point=function(t,e){sO.prototype.point.call(this,e,t)};function Wae(t){this._context=t}Wae.prototype={moveTo:function(t,e){this._context.moveTo(e,t)},closePath:function(){this._context.closePath()},lineTo:function(t,e){this._context.lineTo(e,t)},bezierCurveTo:function(t,e,n,r,i,a){this._context.bezierCurveTo(e,t,r,n,a,i)}};function $Xe(t){return new sO(t)}function FXe(t){return new qae(t)}function Kae(t){this._context=t}Kae.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var t=this._x,e=this._y,n=t.length;if(n)if(this._line?this._context.lineTo(t[0],e[0]):this._context.moveTo(t[0],e[0]),n===2)this._context.lineTo(t[1],e[1]);else for(var r=tY(t),i=tY(e),a=0,o=1;o=0;--e)i[e]=(o[e]-i[e+1])/a[e];for(a[n-1]=(t[n]+i[n-1])/2,e=0;e=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,e),this._context.lineTo(t,e);else{var n=this._x*(1-this._t)+t*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,e)}break}}this._x=t,this._y=e}};function UXe(t){return new sC(t,.5)}function GXe(t){return new sC(t,0)}function HXe(t){return new sC(t,1)}function z_(t,e){if((o=t.length)>1)for(var n=1,r,i,a=t[e[0]],o,s=a.length;n=0;)n[e]=e;return n}function YXe(t,e){return t[e]}function VXe(t){const e=[];return e.key=t,e}function zXe(){var t=Ct([]),e=q_,n=z_,r=YXe;function i(a){var o=Array.from(t.apply(this,arguments),VXe),s,l=o.length,c=-1,d;for(const f of a)for(s=0,++c;s0){for(var n,r,i=0,a=t[0].length,o;i0)for(var n,r=0,i,a,o,s,l,c=t[e[0]].length;r0?(i[0]=o,i[1]=o+=a):a<0?(i[1]=s,i[0]=s+=a):(i[0]=0,i[1]=a)}function KXe(t,e){if((i=t.length)>0){for(var n=0,r=t[e[0]],i,a=r.length;n0)||!((a=(i=t[e[0]]).length)>0))){for(var n=0,r=1,i,a,o;ra&&(a=i,n=e);return n}function Qae(t){var e=t.map(Xae);return q_(t).sort(function(n,r){return e[n]-e[r]})}function Xae(t){for(var e=0,n=-1,r=t.length,i;++n()=>t;function eZe(t,{sourceEvent:e,target:n,transform:r,dispatch:i}){Object.defineProperties(this,{type:{value:t,enumerable:!0,configurable:!0},sourceEvent:{value:e,enumerable:!0,configurable:!0},target:{value:n,enumerable:!0,configurable:!0},transform:{value:r,enumerable:!0,configurable:!0},_:{value:i}})}function Cs(t,e,n){this.k=t,this.x=e,this.y=n}Cs.prototype={constructor:Cs,scale:function(t){return t===1?this:new Cs(this.k*t,this.x,this.y)},translate:function(t,e){return t===0&e===0?this:new Cs(this.k,this.x+this.k*t,this.y+this.k*e)},apply:function(t){return[t[0]*this.k+this.x,t[1]*this.k+this.y]},applyX:function(t){return t*this.k+this.x},applyY:function(t){return t*this.k+this.y},invert:function(t){return[(t[0]-this.x)/this.k,(t[1]-this.y)/this.k]},invertX:function(t){return(t-this.x)/this.k},invertY:function(t){return(t-this.y)/this.k},rescaleX:function(t){return t.copy().domain(t.range().map(this.invertX,this).map(t.invert,t))},rescaleY:function(t){return t.copy().domain(t.range().map(this.invertY,this).map(t.invert,t))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var nu=new Cs(1,0,0);Zae.prototype=Cs.prototype;function Zae(t){for(;!t.__zoom;)if(!(t=t.parentNode))return nu;return t.__zoom}function ZA(t){t.stopImmediatePropagation()}function og(t){t.preventDefault(),t.stopImmediatePropagation()}function tZe(t){return(!t.ctrlKey||t.type==="wheel")&&!t.button}function nZe(){var t=this;return t instanceof SVGElement?(t=t.ownerSVGElement||t,t.hasAttribute("viewBox")?(t=t.viewBox.baseVal,[[t.x,t.y],[t.x+t.width,t.y+t.height]]):[[0,0],[t.width.baseVal.value,t.height.baseVal.value]]):[[0,0],[t.clientWidth,t.clientHeight]]}function nY(){return this.__zoom||nu}function rZe(t){return-t.deltaY*(t.deltaMode===1?.05:t.deltaMode?1:.002)*(t.ctrlKey?10:1)}function iZe(){return navigator.maxTouchPoints||"ontouchstart"in this}function aZe(t,e,n){var r=t.invertX(e[0][0])-n[0][0],i=t.invertX(e[1][0])-n[1][0],a=t.invertY(e[0][1])-n[0][1],o=t.invertY(e[1][1])-n[1][1];return t.translate(i>r?(r+i)/2:Math.min(0,r)||Math.max(0,i),o>a?(a+o)/2:Math.min(0,a)||Math.max(0,o))}function G$(){var t=tZe,e=nZe,n=aZe,r=rZe,i=iZe,a=[0,1/0],o=[[-1/0,-1/0],[1/0,1/0]],s=250,l=Hne,c=Jd("start","zoom","end"),d,f,p,m=500,h=150,g=0,E=10;function S(x){x.property("__zoom",nY).on("wheel.zoom",P,{passive:!1}).on("mousedown.zoom",q).on("dblclick.zoom",B).filter(i).on("touchstart.zoom",U).on("touchmove.zoom",$).on("touchend.zoom touchcancel.zoom",k).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}S.transform=function(x,H,M,K){var X=x.selection?x.selection():x;X.property("__zoom",nY),x!==X?N(x,H,M,K):X.interrupt().each(function(){w(this,arguments).event(K).start().zoom(null,typeof H=="function"?H.apply(this,arguments):H).end()})},S.scaleBy=function(x,H,M,K){S.scaleTo(x,function(){var X=this.__zoom.k,z=typeof H=="function"?H.apply(this,arguments):H;return X*z},M,K)},S.scaleTo=function(x,H,M,K){S.transform(x,function(){var X=e.apply(this,arguments),z=this.__zoom,j=M==null?O(X):typeof M=="function"?M.apply(this,arguments):M,ie=z.invert(j),oe=typeof H=="function"?H.apply(this,arguments):H;return n(y(T(z,oe),j,ie),X,o)},M,K)},S.translateBy=function(x,H,M,K){S.transform(x,function(){return n(this.__zoom.translate(typeof H=="function"?H.apply(this,arguments):H,typeof M=="function"?M.apply(this,arguments):M),e.apply(this,arguments),o)},null,K)},S.translateTo=function(x,H,M,K,X){S.transform(x,function(){var z=e.apply(this,arguments),j=this.__zoom,ie=K==null?O(z):typeof K=="function"?K.apply(this,arguments):K;return n(nu.translate(ie[0],ie[1]).scale(j.k).translate(typeof H=="function"?-H.apply(this,arguments):-H,typeof M=="function"?-M.apply(this,arguments):-M),z,o)},K,X)};function T(x,H){return H=Math.max(a[0],Math.min(a[1],H)),H===x.k?x:new Cs(H,x.x,x.y)}function y(x,H,M){var K=H[0]-M[0]*x.k,X=H[1]-M[1]*x.k;return K===x.x&&X===x.y?x:new Cs(x.k,K,X)}function O(x){return[(+x[0][0]+ +x[1][0])/2,(+x[0][1]+ +x[1][1])/2]}function N(x,H,M,K){x.on("start.zoom",function(){w(this,arguments).event(K).start()}).on("interrupt.zoom end.zoom",function(){w(this,arguments).event(K).end()}).tween("zoom",function(){var X=this,z=arguments,j=w(X,z).event(K),ie=e.apply(X,z),oe=M==null?O(ie):typeof M=="function"?M.apply(X,z):M,ce=Math.max(ie[1][0]-ie[0][0],ie[1][1]-ie[0][1]),de=X.__zoom,he=typeof H=="function"?H.apply(X,z):H,ge=l(de.invert(oe).concat(ce/de.k),he.invert(oe).concat(ce/he.k));return function(_e){if(_e===1)_e=he;else{var xe=ge(_e),me=ce/xe[2];_e=new Cs(me,oe[0]-xe[0]*me,oe[1]-xe[1]*me)}j.zoom(null,_e)}})}function w(x,H,M){return!M&&x.__zooming||new F(x,H)}function F(x,H){this.that=x,this.args=H,this.active=0,this.sourceEvent=null,this.extent=e.apply(x,H),this.taps=0}F.prototype={event:function(x){return x&&(this.sourceEvent=x),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(x,H){return this.mouse&&x!=="mouse"&&(this.mouse[1]=H.invert(this.mouse[0])),this.touch0&&x!=="touch"&&(this.touch0[1]=H.invert(this.touch0[0])),this.touch1&&x!=="touch"&&(this.touch1[1]=H.invert(this.touch1[0])),this.that.__zoom=H,this.emit("zoom"),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(x){var H=Fn(this.that).datum();c.call(x,this.that,new eZe(x,{sourceEvent:this.sourceEvent,target:S,type:x,transform:this.that.__zoom,dispatch:c}),H)}};function P(x,...H){if(!t.apply(this,arguments))return;var M=w(this,H).event(x),K=this.__zoom,X=Math.max(a[0],Math.min(a[1],K.k*Math.pow(2,r.apply(this,arguments)))),z=Ei(x);if(M.wheel)(M.mouse[0][0]!==z[0]||M.mouse[0][1]!==z[1])&&(M.mouse[1]=K.invert(M.mouse[0]=z)),clearTimeout(M.wheel);else{if(K.k===X)return;M.mouse=[z,K.invert(z)],md(this),M.start()}og(x),M.wheel=setTimeout(j,h),M.zoom("mouse",n(y(T(K,X),M.mouse[0],M.mouse[1]),M.extent,o));function j(){M.wheel=null,M.end()}}function q(x,...H){if(p||!t.apply(this,arguments))return;var M=x.currentTarget,K=w(this,H,!0).event(x),X=Fn(x.view).on("mousemove.zoom",oe,!0).on("mouseup.zoom",ce,!0),z=Ei(x,M),j=x.clientX,ie=x.clientY;x0(x.view),ZA(x),K.mouse=[z,this.__zoom.invert(z)],md(this),K.start();function oe(de){if(og(de),!K.moved){var he=de.clientX-j,ge=de.clientY-ie;K.moved=he*he+ge*ge>g}K.event(de).zoom("mouse",n(y(K.that.__zoom,K.mouse[0]=Ei(de,M),K.mouse[1]),K.extent,o))}function ce(de){X.on("mousemove.zoom mouseup.zoom",null),M0(de.view,K.moved),og(de),K.event(de).end()}}function B(x,...H){if(t.apply(this,arguments)){var M=this.__zoom,K=Ei(x.changedTouches?x.changedTouches[0]:x,this),X=M.invert(K),z=M.k*(x.shiftKey?.5:2),j=n(y(T(M,z),K,X),e.apply(this,H),o);og(x),s>0?Fn(this).transition().duration(s).call(N,j,K,x):Fn(this).call(S.transform,j,K,x)}}function U(x,...H){if(t.apply(this,arguments)){var M=x.touches,K=M.length,X=w(this,H,x.changedTouches.length===K).event(x),z,j,ie,oe;for(ZA(x),j=0;j[]},horizontal:{type:Boolean},markerPath:{type:[String,Function],default:"M512 256C512 397.4 397.4 512 256 512C114.6 512 0 397.4 0 256C0 114.6 114.6 0 256 0C397.4 0 512 114.6 512 256z"},categoryObjectsPath:{type:String,default:"id"},highlight:{type:[String,Number],default:null},value:{type:[String,Number],default:null}},computed:{markerBoundingClientRect(){var r;const t=Fn("body").append("svg").attr("width",2046).attr("height",2046),n=(r=t.append("path").attr("d",this.markerPathFunction()).node())==null?void 0:r.getBoundingClientRect();return t.remove(),n},markerViewbox(){const{width:t,height:e}=this.markerBoundingClientRect??{width:0,height:0};return`0 0 ${t} ${e}`},classList(){return{"ordinal-legend--horizontal":this.horizontal,"ordinal-legend--has-highlight":this.highlight!==null,"ordinal-legend--has-value":this.value!==null}},dataWithIds(){return this.data.map(t=>{const e=Le.uniqueId();return{[this.categoryObjectsPath]:e,...t}})}},methods:{itemClassList(t){const e=t[this.categoryObjectsPath];return{[`ordinal-legend__item--identifier-${Le.kebabCase(t.label)}`]:!0,"ordinal-legend__item--highlighted":e===this.highlight,"ordinal-legend__item--selected":e===this.value}},markerPathFunction(t){return Le.isFunction(this.markerPath)&&t?this.markerPath(t):this.markerPath},update(t){this.$emit("update",Le.get(t,this.categoryObjectsPath,null))},updateHighlight(t={}){this.$emit("update:highlight",Le.get(t,this.categoryObjectsPath,null))}}};var lZe=function(){var e=this,n=e._self._c;return e._self._setupProxy,n("ul",{staticClass:"ordinal-legend list-unstyled",class:e.classList},e._l(e.data,function(r){return n("li",{key:r[e.categoryObjectsPath],staticClass:"ordinal-legend__item",class:e.itemClassList(r)},[n("a",{on:{click:function(i){return e.update(r)},mouseover:function(i){return e.updateHighlight(r)},mouseleave:function(i){return e.updateHighlight()}}},[n("span",{staticClass:"ordinal-legend__item__marker mr-1"},[e._t("marker",function(){return[n("svg",{attrs:{viewBox:e.markerViewbox}},[n("path",{staticClass:"ordinal-legend__item__marker__path",attrs:{d:e.markerPathFunction(r),fill:r.color}})])]},{marker:{path:r.path,color:r.color}})],2),n("span",{staticClass:"ordinal-legend__item__label"},[e._t("label",function(){return[e._v(" "+e._s(r.label)+" ")]},null,r)],2)])])}),0)},cZe=[],uZe=mt(sZe,lZe,cZe,!1,null,"418e6298",null,null);const Jae=uZe.exports;var eoe={};(function(t){Object.defineProperty(t,"__esModule",{value:!0});var e="fas",n="grip-lines-vertical",r=192,i=512,a=[],o="f7a5",s="M64 64c0-17.7-14.3-32-32-32S0 46.3 0 64V448c0 17.7 14.3 32 32 32s32-14.3 32-32V64zm128 0c0-17.7-14.3-32-32-32s-32 14.3-32 32V448c0 17.7 14.3 32 32 32s32-14.3 32-32V64z";t.definition={prefix:e,iconName:n,icon:[r,i,a,o,s]},t.faGripLinesVertical=t.definition,t.prefix=e,t.iconName=n,t.width=r,t.height=i,t.ligatures=a,t.unicode=o,t.svgPathData=s,t.aliases=a})(eoe);const dZe={name:"RangePicker",components:{Fa:jr},directives:{draggable:{inserted(t,e,n){var d;let r,i;const a=((d=e.modifiers)==null?void 0:d.relative)??!1;function o({name:f,data:p=null}){const m=Le.get(n,"data.on")??Le.get(n,"componentOptions.listeners");Le.has(m,f)&&Le.invoke(m,`${f}.fns`,p)}function s(f){const p=f instanceof MouseEvent?f.clientX:f.touches[0].clientX,m=a?t.offsetWidth:0,h=n.context.rangeWidth()-m,g=Le.clamp(r+p-i,0,h);return o({name:"dragged",data:g}),!1}function l(f){o({name:"ended"}),f instanceof MouseEvent?(document.removeEventListener("mousemove",s),document.removeEventListener("mouseup",l)):(document.removeEventListener("touchmove",s),document.removeEventListener("touchend",l))}function c(f){return o({name:"started"}),r=t.offsetLeft,f instanceof MouseEvent?(i=f.clientX,document.addEventListener("mousemove",s),document.addEventListener("mouseup",l)):(i=f.touches[0].clientX,document.addEventListener("touchmove",s),document.addEventListener("touchend",l)),!1}t.addEventListener("mousedown",c),t.addEventListener("touchstart",c)}}},model:{prop:"value",event:"update"},props:{value:{type:Array,required:!0},hover:{type:Boolean},startOffset:{type:[Number,String],default:0},endOffset:{type:[Number,String],default:0},precision:{type:Number,default:4},snap:{type:Number,default:1e-4},minDistance:{type:Number,default:.01},variant:{type:String,default:"primary"},rounded:{type:Boolean,default:!1}},data(){return{start:this.value[0]??0,end:this.value[1]??1,moving:!1,resizing:!1}},computed:{disabled(){return this.value.length<2},overlayStyle(){return{left:`${this.start*100}%`,right:`${(1-this.end)*100}%`}},boundsStyle(){return{left:this.startOffsetWithUnit,right:this.endOffsetWithUnit}},startOffsetWithUnit(){return this.valueWithUnit(this.startOffset)},endOffsetWithUnit(){return this.valueWithUnit(this.endOffset)},startBoundStyle(){return{left:`${this.start*100}% `}},endBoundStyle(){return{left:`${this.end*100}%`}},classList(){return{[`range-picker--${this.variant}`]:!!this.variant,"range-picker--hover":this.hover,"range-picker--disabled":this.disabled,"range-picker--rounded":this.rounded,"range-picker--resizing":this.resizing,"range-picker--moving":this.moving}}},watch:{value([t=null,e=null]=[]){this.start=t,this.end=e}},beforeMount(){Fr.add(eoe.faGripLinesVertical)},methods:{toggleMoving(t){this.moving=t??!this.moving},toggleResizing(t){this.resizing=t??!this.resizing},snapValue(t){return Le.round(t/this.snap)*this.snap},rangeWidth(){var t,e;return((e=(t=this.$el)==null?void 0:t.querySelector(".range-picker__bounds"))==null?void 0:e.getBoundingClientRect().width)??0},dragStartBound(t){const e=this.snapValue(t/this.rangeWidth());ethis.start+this.minDistance&&(this.end=Le.round(e,this.precision),this.$emit("update",[this.start,this.end]))},dragBounds(t){const e=this.snapValue(this.end-this.start),n=this.snapValue(t/this.rangeWidth());this.start=Le.round(n,this.precision),this.end=Le.round(n+e,this.precision),this.$emit("update",[this.start,this.end])},valueWithUnit(t){return typeof t=="number"?`${t}px`:`${t}`}}};var fZe=function(){var e=this,n=e._self._c;return e._self._setupProxy,n("div",{staticClass:"range-picker",class:e.classList},[n("div",{staticClass:"range-picker__wrapper"},[e._t("default")],2),n("div",{directives:[{name:"show",rawName:"v-show",value:!e.disabled,expression:"!disabled"}],staticClass:"range-picker__bounds",style:e.boundsStyle},[n("div",{directives:[{name:"draggable",rawName:"v-draggable.relative",modifiers:{relative:!0}}],staticClass:"range-picker__bounds__overlay",style:e.overlayStyle,on:{dragged:e.dragBounds,started:function(r){return e.toggleMoving(!0)},ended:function(r){return e.toggleMoving(!1)}}}),n("button",{directives:[{name:"draggable",rawName:"v-draggable"}],staticClass:"range-picker__bounds__start btn",style:e.startBoundStyle,on:{dragged:e.dragStartBound,started:function(r){return e.toggleResizing(!0)},ended:function(r){return e.toggleResizing(!1)}}},[n("fa",{attrs:{icon:"fa-grip-lines-vertical","fixed-width":""}})],1),n("button",{directives:[{name:"draggable",rawName:"v-draggable"}],staticClass:"range-picker__bounds__end btn",style:e.endBoundStyle,on:{dragged:e.dragEndBound,started:function(r){return e.toggleResizing(!0)},ended:function(r){return e.toggleResizing(!1)}}},[n("fa",{attrs:{icon:"fa-grip-lines-vertical","fixed-width":""}})],1)])])},pZe=[],_Ze=mt(dZe,fZe,pZe,!1,null,"abac76db",null,null);const mZe=_Ze.exports;let hZe=0;const gZe={name:"ResponsiveIframe",props:{url:{type:String,required:!0},options:{type:Object,default:()=>({})}},data(){return{iframeId:`icij-iframe-${++hZe}`,pymParent:null}},async mounted(){await Ote("https://pym.nprapps.org/pym.v1.min.js"),this.pymParent=new window.pym.Parent(this.iframeId,this.url,this.options)}};var vZe=function(){var e=this,n=e._self._c;return e._self._setupProxy,n("div",{attrs:{id:e.iframeId}})},bZe=[],EZe=mt(gZe,vZe,bZe,!1,null,null,null,null);const SZe=EZe.exports,yZe={name:"ScaleLegend",filters:{formatNumber:rf(",")},props:{width:{type:Number,default:150},height:{type:Number,default:16},cursorValue:{type:Number,default:null},max:{type:Number,default:100},min:{type:Number,default:0},colorScale:{type:[Function,String],default:"scaleLinear",validator(t){return Le.isFunction(t)||t in WH}},colorScaleEnd:{type:String,default(){return window.getComputedStyle(document.body).getPropertyValue("--primary")||"#000"}},colorScaleStart:{type:String,default:"#fff"}},data(){return{cursorWrapperOffset:0,mounted:!1}},computed:{classList(){return{"scale-legend--has-cursor":this.hasCursor}},cursorLeft(){const t=this.cursorLeftScale(this.cursorValue);return isNaN(t)?"0%":`${t}%`},colorScaleBaseCanvas(){return pne("canvas").attr("width",this.width).attr("height",this.height).node()},colorScaleContext(){var t;return((t=this.colorScaleBaseCanvas)==null?void 0:t.getContext("2d"))??null},colorScaleBase64(){var t;return this.mounted?((t=this.colorScaleBaseCanvas)==null?void 0:t.toDataURL())??null:null},colorScaleWidthRange(){return Ts(1,this.width+1)},hasCursor(){return this.cursorValue!=null},colorScaleFunction(){if(Le.isString(this.colorScale)){const t=WH[this.colorScale];return t().domain([this.min,this.max]).range([this.colorScaleStart,this.colorScaleEnd])}return this.colorScale},cursorLeftScale(){return Ll().domain([this.min,this.max]).range([0,100]).interpolate(Ob)},widthScaleColor(){return t=>{const e=this.widthScale(t);return this.colorScaleFunction(e)}},widthScale(){return Ll().domain([0,this.width]).range([this.min,this.max])}},watch:{async cursorValue(){await this.$nextTick(),this.setCursorWrapperOffset()}},async mounted(){await this.$nextTick(),this.setCursorWrapperOffset(),this.setColorScaleCanvas(),this.mounted=!0},methods:{setCursorWrapperOffset(){const t=this.$el.querySelector(".scale-legend__cursor");if(t){const{x:e,width:n}=t.getBoundingClientRect(),{x:r,width:i}=this.$el.getBoundingClientRect(),a=r-e-6,o=r+i-(e+n)+6;this.cursorWrapperOffset=Math.max(0,a)||Math.min(0,o)}else this.cursorWrapperOffset=0},setColorScaleCanvas(){if(this.colorScaleContext)for(const t of this.colorScaleWidthRange)this.colorScaleContext.fillStyle=this.widthScaleColor(t),this.colorScaleContext.fillRect(t,0,1,this.height)}}};var TZe=function(){var e=this,n=e._self._c;return e._self._setupProxy,n("div",{staticClass:"scale-legend",class:e.classList},[n("div",{staticClass:"scale-legend__bound scale-legend__bound--min"},[e._t("legend-cursor-min",function(){return[e._v(" "+e._s(e._f("formatNumber")(e.min))+" ")]},null,{min:e.min})],2),n("img",{staticClass:"scale-legend__scale",attrs:{height:e.height,src:e.colorScaleBase64,width:e.width}}),n("div",{staticClass:"scale-legend__bound scale-legend__bound--max"},[e._t("legend-cursor-max",function(){return[e._v(" "+e._s(e._f("formatNumber")(e.max))+" ")]},null,{max:e.max})],2),e.hasCursor?n("div",{staticClass:"scale-legend__cursor",style:{left:e.cursorLeft}},[n("div",{staticClass:"scale-legend__cursor__wrapper",style:{transform:`translateX(${e.cursorWrapperOffset}px)`}},[e._t("cursor",function(){return[e._v(" "+e._s(e._f("formatNumber")(e.cursorValue))+" ")]},null,{value:e.cursorValue})],2)]):e._e()])},OZe=[],CZe=mt(yZe,TZe,OZe,!1,null,"8653c96e",null,null);const toe=CZe.exports;var RZe=cm;function NZe(t,e){var n=[];return RZe(t,function(r,i,a){e(r,i,a)&&n.push(r)}),n}var AZe=NZe,wZe=pte,IZe=AZe,DZe=lu,xZe=Gr;function MZe(t,e){var n=xZe(t)?wZe:IZe;return n(t,DZe(e))}var MP=MZe,PZe=Zk;function LZe(t,e){return PZe(t,e)}var kZe=LZe,$Ze={prefix:"far",iconName:"square-check",icon:[448,512,[9745,9989,61510,"check-square"],"f14a","M211.8 339.8C200.9 350.7 183.1 350.7 172.2 339.8L108.2 275.8C97.27 264.9 97.27 247.1 108.2 236.2C119.1 225.3 136.9 225.3 147.8 236.2L192 280.4L300.2 172.2C311.1 161.3 328.9 161.3 339.8 172.2C350.7 183.1 350.7 200.9 339.8 211.8L211.8 339.8zM0 96C0 60.65 28.65 32 64 32H384C419.3 32 448 60.65 448 96V416C448 451.3 419.3 480 384 480H64C28.65 480 0 451.3 0 416V96zM48 96V416C48 424.8 55.16 432 64 432H384C392.8 432 400 424.8 400 416V96C400 87.16 392.8 80 384 80H64C55.16 80 48 87.16 48 96z"]},FZe=$Ze,BZe={prefix:"far",iconName:"eye-slash",icon:[640,512,[],"f070","M150.7 92.77C195 58.27 251.8 32 320 32C400.8 32 465.5 68.84 512.6 112.6C559.4 156 590.7 207.1 605.5 243.7C608.8 251.6 608.8 260.4 605.5 268.3C592.1 300.6 565.2 346.1 525.6 386.7L630.8 469.1C641.2 477.3 643.1 492.4 634.9 502.8C626.7 513.2 611.6 515.1 601.2 506.9L9.196 42.89C-1.236 34.71-3.065 19.63 5.112 9.196C13.29-1.236 28.37-3.065 38.81 5.112L150.7 92.77zM189.8 123.5L235.8 159.5C258.3 139.9 287.8 128 320 128C390.7 128 448 185.3 448 256C448 277.2 442.9 297.1 433.8 314.7L487.6 356.9C521.1 322.8 545.9 283.1 558.6 256C544.1 225.1 518.4 183.5 479.9 147.7C438.8 109.6 385.2 79.1 320 79.1C269.5 79.1 225.1 97.73 189.8 123.5L189.8 123.5zM394.9 284.2C398.2 275.4 400 265.9 400 255.1C400 211.8 364.2 175.1 320 175.1C319.3 175.1 318.7 176 317.1 176C319.3 181.1 320 186.5 320 191.1C320 202.2 317.6 211.8 313.4 220.3L394.9 284.2zM404.3 414.5L446.2 447.5C409.9 467.1 367.8 480 320 480C239.2 480 174.5 443.2 127.4 399.4C80.62 355.1 49.34 304 34.46 268.3C31.18 260.4 31.18 251.6 34.46 243.7C44 220.8 60.29 191.2 83.09 161.5L120.8 191.2C102.1 214.5 89.76 237.6 81.45 255.1C95.02 286 121.6 328.5 160.1 364.3C201.2 402.4 254.8 432 320 432C350.7 432 378.8 425.4 404.3 414.5H404.3zM192 255.1C192 253.1 192.1 250.3 192.3 247.5L248.4 291.7C258.9 312.8 278.5 328.6 302 333.1L358.2 378.2C346.1 381.1 333.3 384 319.1 384C249.3 384 191.1 326.7 191.1 255.1H192z"]},UZe={prefix:"far",iconName:"square",icon:[448,512,[9632,9723,9724,61590],"f0c8","M384 32C419.3 32 448 60.65 448 96V416C448 451.3 419.3 480 384 480H64C28.65 480 0 451.3 0 416V96C0 60.65 28.65 32 64 32H384zM384 80H64C55.16 80 48 87.16 48 96V416C48 424.8 55.16 432 64 432H384C392.8 432 400 424.8 400 416V96C400 87.16 392.8 80 384 80z"]},GZe={prefix:"far",iconName:"eye",icon:[576,512,[128065],"f06e","M160 256C160 185.3 217.3 128 288 128C358.7 128 416 185.3 416 256C416 326.7 358.7 384 288 384C217.3 384 160 326.7 160 256zM288 336C332.2 336 368 300.2 368 256C368 211.8 332.2 176 288 176C287.3 176 286.7 176 285.1 176C287.3 181.1 288 186.5 288 192C288 227.3 259.3 256 224 256C218.5 256 213.1 255.3 208 253.1C208 254.7 208 255.3 208 255.1C208 300.2 243.8 336 288 336L288 336zM95.42 112.6C142.5 68.84 207.2 32 288 32C368.8 32 433.5 68.84 480.6 112.6C527.4 156 558.7 207.1 573.5 243.7C576.8 251.6 576.8 260.4 573.5 268.3C558.7 304 527.4 355.1 480.6 399.4C433.5 443.2 368.8 480 288 480C207.2 480 142.5 443.2 95.42 399.4C48.62 355.1 17.34 304 2.461 268.3C-.8205 260.4-.8205 251.6 2.461 243.7C17.34 207.1 48.62 156 95.42 112.6V112.6zM288 80C222.8 80 169.2 109.6 128.1 147.7C89.6 183.5 63.02 225.1 49.44 256C63.02 286 89.6 328.5 128.1 364.3C169.2 402.4 222.8 432 288 432C353.2 432 406.8 402.4 447.9 364.3C486.4 328.5 512.1 286 526.6 256C512.1 225.1 486.4 183.5 447.9 147.7C406.8 109.6 353.2 80 288 80V80z"]};function HZe(){var t=window.navigator.userAgent,e=t.indexOf("MSIE ");if(e>0)return parseInt(t.substring(e+5,t.indexOf(".",e)),10);var n=t.indexOf("Trident/");if(n>0){var r=t.indexOf("rv:");return parseInt(t.substring(r+3,t.indexOf(".",r)),10)}var i=t.indexOf("Edge/");return i>0?parseInt(t.substring(i+5,t.indexOf(".",i)),10):-1}var Jy=void 0;function PP(){PP.init||(PP.init=!0,Jy=HZe()!==-1)}var LP={render:function(){var e=this,n=e.$createElement,r=e._self._c||n;return r("div",{staticClass:"resize-observer",attrs:{tabindex:"-1"}})},staticRenderFns:[],_scopeId:"data-v-b329ee4c",name:"resize-observer",methods:{compareAndNotify:function(){(this._w!==this.$el.offsetWidth||this._h!==this.$el.offsetHeight)&&(this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.$emit("notify"))},addResizeHandlers:function(){this._resizeObject.contentDocument.defaultView.addEventListener("resize",this.compareAndNotify),this.compareAndNotify()},removeResizeHandlers:function(){this._resizeObject&&this._resizeObject.onload&&(!Jy&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),delete this._resizeObject.onload)}},mounted:function(){var e=this;PP(),this.$nextTick(function(){e._w=e.$el.offsetWidth,e._h=e.$el.offsetHeight});var n=document.createElement("object");this._resizeObject=n,n.setAttribute("aria-hidden","true"),n.setAttribute("tabindex",-1),n.onload=this.addResizeHandlers,n.type="text/html",Jy&&this.$el.appendChild(n),n.data="about:blank",Jy||this.$el.appendChild(n)},beforeDestroy:function(){this.removeResizeHandlers()}};function YZe(t){t.component("resize-observer",LP),t.component("ResizeObserver",LP)}var VZe={version:"0.4.5",install:YZe},lO=null;typeof window<"u"?lO=window.Vue:typeof global<"u"&&(lO=global.Vue);lO&&lO.use(VZe);function eT(t){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?eT=function(e){return typeof e}:eT=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},eT(t)}function zZe(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function rY(t,e){for(var n=0;n2&&arguments[2]!==void 0?arguments[2]:{},r,i,a,o=function(l){for(var c=arguments.length,d=new Array(c>1?c-1:0),f=1;f1){var c=s.find(function(f){return f.isIntersecting});c&&(l=c)}if(i.callback){var d=l.isIntersecting&&l.intersectionRatio>=i.threshold;if(d===i.oldResult)return;i.oldResult=d,i.callback(d,l)}},this.options.intersection),r.context.$nextTick(function(){i.observer&&i.observer.observe(i.el)})}}},{key:"destroyObserver",value:function(){this.observer&&(this.observer.disconnect(),this.observer=null),this.callback&&this.callback._clear&&(this.callback._clear(),this.callback=null)}},{key:"threshold",get:function(){return this.options.intersection&&this.options.intersection.threshold||0}}]),t}();function roe(t,e,n){var r=e.value;if(r)if(typeof IntersectionObserver>"u")console.warn("[vue-observe-visibility] IntersectionObserver API is not available in your browser. Please install this polyfill: https://github.com/w3c/IntersectionObserver/tree/master/polyfill");else{var i=new ZZe(t,r,n);t._vue_visibilityState=i}}function JZe(t,e,n){var r=e.value,i=e.oldValue;if(!noe(r,i)){var a=t._vue_visibilityState;if(!r){ioe(t);return}a?a.createObserver(r,n):roe(t,{value:r},n)}}function ioe(t){var e=t._vue_visibilityState;e&&(e.destroyObserver(),delete t._vue_visibilityState)}var aoe={bind:roe,update:JZe,unbind:ioe};function eJe(t){t.directive("observe-visibility",aoe)}var tJe={version:"0.4.6",install:eJe},cO=null;typeof window<"u"?cO=window.Vue:typeof global<"u"&&(cO=global.Vue);cO&&cO.use(tJe);var kP={},nJe={get exports(){return kP},set exports(t){kP=t}};(function(t){(function(e,n){t.exports?t.exports=n():e.Scrollparent=n()})(oi,function(){var e=/(auto|scroll)/,n=function(s,l){return s.parentNode===null?l:n(s.parentNode,l.concat([s]))},r=function(s,l){return getComputedStyle(s,null).getPropertyValue(l)},i=function(s){return r(s,"overflow")+r(s,"overflow-y")+r(s,"overflow-x")},a=function(s){return e.test(i(s))},o=function(s){if(s instanceof HTMLElement||s instanceof SVGElement){for(var l=n(s.parentNode,[]),c=0;c["vertical","horizontal"].includes(t)},listTag:{type:String,default:"div"},itemTag:{type:String,default:"div"}};function loe(){return this.items.length&&typeof this.items[0]!="object"}let $P=!1;if(typeof window<"u"){$P=!1;try{var rJe=Object.defineProperty({},"passive",{get(){$P=!0}});window.addEventListener("test",null,rJe)}catch{}}let iJe=0;var aJe={name:"RecycleScroller",components:{ResizeObserver:LP},directives:{ObserveVisibility:aoe},props:{...soe,itemSize:{type:Number,default:null},gridItems:{type:Number,default:void 0},itemSecondarySize:{type:Number,default:void 0},minItemSize:{type:[Number,String],default:null},sizeField:{type:String,default:"size"},typeField:{type:String,default:"type"},buffer:{type:Number,default:200},pageMode:{type:Boolean,default:!1},prerender:{type:Number,default:0},emitUpdate:{type:Boolean,default:!1},skipHover:{type:Boolean,default:!1},listTag:{type:String,default:"div"},itemTag:{type:String,default:"div"},listClass:{type:[String,Object,Array],default:""},itemClass:{type:[String,Object,Array],default:""}},data(){return{pool:[],totalSize:0,ready:!1,hoverKey:null}},computed:{sizes(){if(this.itemSize===null){const t={"-1":{accumulator:0}},e=this.items,n=this.sizeField,r=this.minItemSize;let i=1e4,a=0,o;for(let s=0,l=e.length;s{this.$_prerender=!1,this.updateVisibleItems(!0),this.ready=!0})},activated(){const t=this.$_lastUpdateScrollPosition;typeof t=="number"&&this.$nextTick(()=>{this.scrollToPosition(t)})},beforeDestroy(){this.removeListeners()},methods:{addView(t,e,n,r,i){const a={item:n,position:0},o={id:iJe++,index:e,used:!0,key:r,type:i};return Object.defineProperty(a,"nr",{configurable:!1,value:o}),t.push(a),a},unuseView(t,e=!1){const n=this.$_unusedViews,r=t.nr.type;let i=n.get(r);i||(i=[],n.set(r,i)),i.push(t),e||(t.nr.used=!1,t.position=-9999,this.$_views.delete(t.nr.key))},handleResize(){this.$emit("resize"),this.ready&&this.updateVisibleItems(!1)},handleScroll(t){this.$_scrollDirty||(this.$_scrollDirty=!0,requestAnimationFrame(()=>{this.$_scrollDirty=!1;const{continuous:e}=this.updateVisibleItems(!1,!0);e||(clearTimeout(this.$_refreshTimout),this.$_refreshTimout=setTimeout(this.handleScroll,100))}))},handleVisibilityChange(t,e){this.ready&&(t||e.boundingClientRect.width!==0||e.boundingClientRect.height!==0?(this.$emit("visible"),requestAnimationFrame(()=>{this.updateVisibleItems(!1)})):this.$emit("hidden"))},updateVisibleItems(t,e=!1){const n=this.itemSize,r=this.gridItems||1,i=this.itemSecondarySize||n,a=this.$_computedMinItemSize,o=this.typeField,s=this.simpleArray?null:this.keyField,l=this.items,c=l.length,d=this.sizes,f=this.$_views,p=this.$_unusedViews,m=this.pool;let h,g,E,S,T;if(!c)h=g=S=T=E=0;else if(this.$_prerender)h=S=0,g=T=Math.min(this.prerender,l.length),E=null;else{const B=this.getScroll();if(e){let k=B.start-this.$_lastUpdateScrollPosition;if(k<0&&(k=-k),n===null&&kB.start&&(H=M),M=~~((x+H)/2);while(M!==K);for(M<0&&(M=0),h=M,E=d[c-1].accumulator,g=M;gc&&(g=c)),S=h;Sc&&(g=c),S<0&&(S=0),T>c&&(T=c),E=Math.ceil(c/r)*n}}g-h>ooe.itemsLimit&&this.itemsLimitError(),this.totalSize=E;let y;const O=h<=this.$_endIndex&&g>=this.$_startIndex;if(this.$_continuous!==O){if(O){f.clear(),p.clear();for(let B=0,U=m.length;B=g)&&this.unuseView(y));const N=O?null:new Map;let w,F,P,q;for(let B=h;B=P.length)&&(y=this.addView(m,B,w,U,F),this.unuseView(y,!0),P=p.get(F)),y=P[q],y.item=w,y.nr.used=!0,y.nr.index=B,y.nr.key=U,y.nr.type=F,N.set(F,q+1),q++),f.set(U,y)),n===null?(y.position=d[B-1].accumulator,y.offset=0):(y.position=Math.floor(B/r)*n,y.offset=B%r*i)}return this.$_startIndex=h,this.$_endIndex=g,this.emitUpdate&&this.$emit("update",h,g,S,T),clearTimeout(this.$_sortTimer),this.$_sortTimer=setTimeout(this.sortViews,300),{continuous:O}},getListenerTarget(){let t=aY(this.$el);return window.document&&(t===window.document.documentElement||t===window.document.body)&&(t=window),t},getScroll(){const{$el:t,direction:e}=this,n=e==="vertical";let r;if(this.pageMode){const i=t.getBoundingClientRect(),a=n?i.height:i.width;let o=-(n?i.top:i.left),s=n?window.innerHeight:window.innerWidth;o<0&&(s+=o,o=0),o+s>a&&(s=a-o),r={start:o,end:o+s}}else n?r={start:t.scrollTop,end:t.scrollTop+t.clientHeight}:r={start:t.scrollLeft,end:t.scrollLeft+t.clientWidth};return r},applyPageMode(){this.pageMode?this.addListeners():this.removeListeners()},addListeners(){this.listenerTarget=this.getListenerTarget(),this.listenerTarget.addEventListener("scroll",this.handleScroll,$P?{passive:!0}:!1),this.listenerTarget.addEventListener("resize",this.handleResize)},removeListeners(){this.listenerTarget&&(this.listenerTarget.removeEventListener("scroll",this.handleScroll),this.listenerTarget.removeEventListener("resize",this.handleResize),this.listenerTarget=null)},scrollToItem(t){let e;this.itemSize===null?e=t>0?this.sizes[t-1].accumulator:0:e=Math.floor(t/this.gridItems)*this.itemSize,this.scrollToPosition(e)},scrollToPosition(t){const e=this.direction==="vertical"?{scroll:"scrollTop",start:"top"}:{scroll:"scrollLeft",start:"left"};let n,r,i;if(this.pageMode){const a=aY(this.$el),o=a.tagName==="HTML"?0:a[e.scroll],s=a.getBoundingClientRect(),c=this.$el.getBoundingClientRect()[e.start]-s[e.start];n=a,r=e.scroll,i=t+o+c}else n=this.$el,r=e.scroll,i=t;n[r]=i},itemsLimitError(){throw setTimeout(()=>{console.log("It seems the scroller element isn't scrolling, so it tries to render all the items at once.","Scroller:",this.$el),console.log("Make sure the scroller has a fixed height (or width) and 'overflow-y' (or 'overflow-x') set to 'auto' so it can scroll correctly and only render the items visible in the scroll viewport.")}),new Error("Rendered items limit reached")},sortViews(){this.pool.sort((t,e)=>t.nr.index-e.nr.index)}}};function H$(t,e,n,r,i,a,o,s,l,c){typeof o!="boolean"&&(l=s,s=o,o=!1);const d=typeof n=="function"?n.options:n;t&&t.render&&(d.render=t.render,d.staticRenderFns=t.staticRenderFns,d._compiled=!0,i&&(d.functional=!0)),r&&(d._scopeId=r);let f;if(a?(f=function(p){p=p||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,!p&&typeof __VUE_SSR_CONTEXT__<"u"&&(p=__VUE_SSR_CONTEXT__),e&&e.call(this,l(p)),p&&p._registeredComponents&&p._registeredComponents.add(a)},d._ssrRegister=f):e&&(f=o?function(p){e.call(this,c(p,this.$root.$options.shadowRoot))}:function(p){e.call(this,s(p))}),f)if(d.functional){const p=d.render;d.render=function(h,g){return f.call(g),p(h,g)}}else{const p=d.beforeCreate;d.beforeCreate=p?[].concat(p,f):[f]}return n}const oJe=aJe;var coe=function(){var t,e,n=this,r=n.$createElement,i=n._self._c||r;return i("div",{directives:[{name:"observe-visibility",rawName:"v-observe-visibility",value:n.handleVisibilityChange,expression:"handleVisibilityChange"}],staticClass:"vue-recycle-scroller",class:(t={ready:n.ready,"page-mode":n.pageMode},t["direction-"+n.direction]=!0,t),on:{"&scroll":function(a){return n.handleScroll.apply(null,arguments)}}},[n.$slots.before?i("div",{ref:"before",staticClass:"vue-recycle-scroller__slot"},[n._t("before")],2):n._e(),n._v(" "),i(n.listTag,{ref:"wrapper",tag:"component",staticClass:"vue-recycle-scroller__item-wrapper",class:n.listClass,style:(e={},e[n.direction==="vertical"?"minHeight":"minWidth"]=n.totalSize+"px",e)},[n._l(n.pool,function(a){return i(n.itemTag,n._g({key:a.nr.id,tag:"component",staticClass:"vue-recycle-scroller__item-view",class:[n.itemClass,{hover:!n.skipHover&&n.hoverKey===a.nr.key}],style:n.ready?{transform:"translate"+(n.direction==="vertical"?"Y":"X")+"("+a.position+"px) translate"+(n.direction==="vertical"?"X":"Y")+"("+a.offset+"px)",width:n.gridItems?(n.direction==="vertical"&&n.itemSecondarySize||n.itemSize)+"px":void 0,height:n.gridItems?(n.direction==="horizontal"&&n.itemSecondarySize||n.itemSize)+"px":void 0}:null},n.skipHover?{}:{mouseenter:function(){n.hoverKey=a.nr.key},mouseleave:function(){n.hoverKey=null}}),[n._t("default",null,{item:a.item,index:a.nr.index,active:a.nr.used})],2)}),n._v(" "),n._t("empty")],2),n._v(" "),n.$slots.after?i("div",{ref:"after",staticClass:"vue-recycle-scroller__slot"},[n._t("after")],2):n._e(),n._v(" "),i("ResizeObserver",{on:{notify:n.handleResize}})],1)},sJe=[];coe._withStripped=!0;const lJe=void 0,cJe=void 0,uJe=void 0,dJe=!1,uO=H$({render:coe,staticRenderFns:sJe},lJe,oJe,cJe,dJe,uJe,!1,void 0,void 0,void 0);var fJe={name:"DynamicScroller",components:{RecycleScroller:uO},provide(){return typeof ResizeObserver<"u"&&(this.$_resizeObserver=new ResizeObserver(t=>{requestAnimationFrame(()=>{if(Array.isArray(t)){for(const e of t)if(e.target){const n=new CustomEvent("resize",{detail:{contentRect:e.contentRect}});e.target.dispatchEvent(n)}}})})),{vscrollData:this.vscrollData,vscrollParent:this,vscrollResizeObserver:this.$_resizeObserver}},inheritAttrs:!1,props:{...soe,minItemSize:{type:[Number,String],required:!0}},data(){return{vscrollData:{active:!0,sizes:{},validSizes:{},keyField:this.keyField,simpleArray:!1}}},computed:{simpleArray:loe,itemsWithSize(){const t=[],{items:e,keyField:n,simpleArray:r}=this,i=this.vscrollData.sizes,a=e.length;for(let o=0;o"u"&&!this.$_undefinedMap[l]&&(c=0),t.push({item:s,id:l,size:c})}return t},listeners(){const t={};for(const e in this.$listeners)e!=="resize"&&e!=="visible"&&(t[e]=this.$listeners[e]);return t}},watch:{items(){this.forceUpdate(!1)},simpleArray:{handler(t){this.vscrollData.simpleArray=t},immediate:!0},direction(t){this.forceUpdate(!0)},itemsWithSize(t,e){const n=this.$el.scrollTop;let r=0,i=0;const a=Math.min(t.length,e.length);for(let s=0;s=n);s++)r+=e[s].size||this.minItemSize,i+=t[s].size||this.minItemSize;const o=i-r;o!==0&&(this.$el.scrollTop+=o)}},beforeCreate(){this.$_updates=[],this.$_undefinedSizes=0,this.$_undefinedMap={}},activated(){this.vscrollData.active=!0},deactivated(){this.vscrollData.active=!1},methods:{onScrollerResize(){this.$refs.scroller&&this.forceUpdate(),this.$emit("resize")},onScrollerVisible(){this.$emit("vscroll:update",{force:!1}),this.$emit("visible")},forceUpdate(t=!0){(t||this.simpleArray)&&(this.vscrollData.validSizes={}),this.$emit("vscroll:update",{force:!0})},scrollToItem(t){const e=this.$refs.scroller;e&&e.scrollToItem(t)},getItemSize(t,e=void 0){const n=this.simpleArray?e??this.items.indexOf(t):t[this.keyField];return this.vscrollData.sizes[n]||0},scrollToBottom(){if(this.$_scrollingToBottom)return;this.$_scrollingToBottom=!0;const t=this.$el;this.$nextTick(()=>{t.scrollTop=t.scrollHeight+5e3;const e=()=>{t.scrollTop=t.scrollHeight+5e3,requestAnimationFrame(()=>{t.scrollTop=t.scrollHeight+5e3,this.$_undefinedSizes===0?this.$_scrollingToBottom=!1:requestAnimationFrame(e)})};requestAnimationFrame(e)})}}};const pJe=fJe;var uoe=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("RecycleScroller",t._g(t._b({ref:"scroller",attrs:{items:t.itemsWithSize,"min-item-size":t.minItemSize,direction:t.direction,"key-field":"id","list-tag":t.listTag,"item-tag":t.itemTag},on:{resize:t.onScrollerResize,visible:t.onScrollerVisible},scopedSlots:t._u([{key:"default",fn:function(r){var i=r.item,a=r.index,o=r.active;return[t._t("default",null,null,{item:i.item,index:a,active:o,itemWithSize:i})]}}],null,!0)},"RecycleScroller",t.$attrs,!1),t.listeners),[t._v(" "),n("template",{slot:"before"},[t._t("before")],2),t._v(" "),n("template",{slot:"after"},[t._t("after")],2),t._v(" "),n("template",{slot:"empty"},[t._t("empty")],2)],2)},_Je=[];uoe._withStripped=!0;const mJe=void 0,hJe=void 0,gJe=void 0,vJe=!1,oY=H$({render:uoe,staticRenderFns:_Je},mJe,pJe,hJe,vJe,gJe,!1,void 0,void 0,void 0);var bJe={name:"DynamicScrollerItem",inject:["vscrollData","vscrollParent","vscrollResizeObserver"],props:{item:{required:!0},watchData:{type:Boolean,default:!1},active:{type:Boolean,required:!0},index:{type:Number,default:void 0},sizeDependencies:{type:[Array,Object],default:null},emitResize:{type:Boolean,default:!1},tag:{type:String,default:"div"}},computed:{id(){if(this.vscrollData.simpleArray)return this.index;if(this.item.hasOwnProperty(this.vscrollData.keyField))return this.item[this.vscrollData.keyField];throw new Error(`keyField '${this.vscrollData.keyField}' not found in your item. You should set a valid keyField prop on your Scroller`)},size(){return this.vscrollData.validSizes[this.id]&&this.vscrollData.sizes[this.id]||0},finalActive(){return this.active&&this.vscrollData.active}},watch:{watchData:"updateWatchData",id(){this.size||this.onDataUpdate()},finalActive(t){this.size||(t?this.vscrollParent.$_undefinedMap[this.id]||(this.vscrollParent.$_undefinedSizes++,this.vscrollParent.$_undefinedMap[this.id]=!0):this.vscrollParent.$_undefinedMap[this.id]&&(this.vscrollParent.$_undefinedSizes--,this.vscrollParent.$_undefinedMap[this.id]=!1)),this.vscrollResizeObserver?t?this.observeSize():this.unobserveSize():t&&this.$_pendingVScrollUpdate===this.id&&this.updateSize()}},created(){if(!this.$isServer&&(this.$_forceNextVScrollUpdate=null,this.updateWatchData(),!this.vscrollResizeObserver)){for(const t in this.sizeDependencies)this.$watch(()=>this.sizeDependencies[t],this.onDataUpdate);this.vscrollParent.$on("vscroll:update",this.onVscrollUpdate),this.vscrollParent.$on("vscroll:update-size",this.onVscrollUpdateSize)}},mounted(){this.vscrollData.active&&(this.updateSize(),this.observeSize())},beforeDestroy(){this.vscrollParent.$off("vscroll:update",this.onVscrollUpdate),this.vscrollParent.$off("vscroll:update-size",this.onVscrollUpdateSize),this.unobserveSize()},methods:{updateSize(){this.finalActive?this.$_pendingSizeUpdate!==this.id&&(this.$_pendingSizeUpdate=this.id,this.$_forceNextVScrollUpdate=null,this.$_pendingVScrollUpdate=null,this.computeSize(this.id)):this.$_forceNextVScrollUpdate=this.id},updateWatchData(){this.watchData&&!this.vscrollResizeObserver?this.$_watchData=this.$watch("item",()=>{this.onDataUpdate()},{deep:!0}):this.$_watchData&&(this.$_watchData(),this.$_watchData=null)},onVscrollUpdate({force:t}){!this.finalActive&&t&&(this.$_pendingVScrollUpdate=this.id),(this.$_forceNextVScrollUpdate===this.id||t||!this.size)&&this.updateSize()},onDataUpdate(){this.updateSize()},computeSize(t){this.$nextTick(()=>{if(this.id===t){const e=this.$el.offsetWidth,n=this.$el.offsetHeight;this.applySize(e,n)}this.$_pendingSizeUpdate=null})},applySize(t,e){const n=~~(this.vscrollParent.direction==="vertical"?e:t);n&&this.size!==n&&(this.vscrollParent.$_undefinedMap[this.id]&&(this.vscrollParent.$_undefinedSizes--,this.vscrollParent.$_undefinedMap[this.id]=void 0),this.$set(this.vscrollData.sizes,this.id,n),this.$set(this.vscrollData.validSizes,this.id,!0),this.emitResize&&this.$emit("resize",this.id))},observeSize(){!this.vscrollResizeObserver||!this.$el.parentNode||(this.vscrollResizeObserver.observe(this.$el.parentNode),this.$el.parentNode.addEventListener("resize",this.onResize))},unobserveSize(){this.vscrollResizeObserver&&(this.vscrollResizeObserver.unobserve(this.$el.parentNode),this.$el.parentNode.removeEventListener("resize",this.onResize))},onResize(t){const{width:e,height:n}=t.detail.contentRect;this.applySize(e,n)}},render(t){return t(this.tag,this.$slots.default)}};const EJe=bJe,SJe=void 0,yJe=void 0,TJe=void 0,OJe=void 0,sY=H$({},SJe,EJe,yJe,OJe,TJe,!1,void 0,void 0,void 0);function CJe(t,e){t.component(`${e}recycle-scroller`,uO),t.component(`${e}RecycleScroller`,uO),t.component(`${e}dynamic-scroller`,oY),t.component(`${e}DynamicScroller`,oY),t.component(`${e}dynamic-scroller-item`,sY),t.component(`${e}DynamicScrollerItem`,sY)}const RJe={version:"1.1.2",install(t,e){const n=Object.assign({},{installComponents:!0,componentsPrefix:""},e);for(const r in n)typeof n[r]<"u"&&(ooe[r]=n[r]);n.installComponents&&CJe(t,n.componentsPrefix)}};let dO=null;typeof window<"u"?dO=window.Vue:typeof global<"u"&&(dO=global.Vue);dO&&dO.use(RJe);const NJe=27,AJe=38,wJe=40,IJe={name:"SelectableDropdown",components:{Fa:jr,RecycleScroller:uO},props:{items:{type:Array,default(){return[]}},value:{type:[String,Object,Array,Number],default:null},hide:{type:Boolean},propagate:{type:Boolean},multiple:{type:Boolean},serializer:{type:Function,default:La},listClass:{type:String,default:"dropdown-menu"},itemClass:{type:String,default:"dropdown-item"},deactivateKeys:{type:Boolean},eq:{type:Function,default:p0},itemSize:{type:Number,default:32},scrollerHeight:{type:String,default:"inherit"}},data(){return{activeItems:[]}},computed:{cssProps(){return{"--scroller-height":this.scrollerHeight}},keyField(){return typeof this.items_[0]=="string"?null:"recycle_scroller_id"},items_(){return typeof this.items[0]=="string"?this.items:this.items.map(t=>({...t,recycle_scroller_id:`id-${xk()}`}))},firstActiveItemIndex(){return this.activeItems.length?this.items_.indexOf(this.activeItems[0]):-1},lastActiveItemIndex(){return this.activeItems.length?this.items_.indexOf(this.activeItems.slice(-1)):-1},keysMap(){return{[AJe]:this.activatePreviousItem,[wJe]:this.activateNextItem,[NJe]:this.deactivateItems}}},watch:{hide(){this.toggleKeys()},activeItems(){this.$emit("input",this.multiple?this.activeItems:this.activeItems[0])},value(t){const e=DM(t);kZe(this.activeItems,e)||this.activateItemOrItems(e)}},mounted(){this.activateItemOrItems(),this.toggleKeys()},destroyed(){this.unbindKeys()},methods:{indexIcon(t){return this.itemActivated(t)?FZe:UZe},itemActivated(t){return Mte(this.activeItems,e=>this.eq(t,e))>-1},clickToSelectItem(t){this.$emit("click",t),this.multiple?this.addItem(t):this.selectItem(t)},clickToAddItem(t){this.$emit("click",t),this.addItem(t)},clickToSelectRangeToItem(t){this.$emit("click",t),this.selectRangeToItem(t)},emitEventOnItem(t,e){this.$emit(t,e)},selectItem(t){this.itemActivated(t)&&this.activeItems.length===1?this.activeItems=MP(this.activeItems,e=>!this.eq(t,e)):this.activeItems=[t]},addItem(t){this.itemActivated(t)?this.activeItems=MP(this.activeItems,e=>!this.eq(t,e)):this.activeItems.push(t)},selectRangeToItem(t){if(!this.activeItems.length||!this.multiple)this.selectItem(t);else{const e=this.items_.indexOf(t);e>this.firstActiveItemIndex?this.activeItems=this.items_.slice(this.firstActiveItemIndex,e+1):this.activeItems=this.items_.slice(e,this.firstActiveItemIndex+1)}},activateItemOrItems(t=this.value){const e=DM(t);this.activeItems=[...e]},activatePreviousItem(){this.activeItems=[this.items_[Math.max(this.firstActiveItemIndex-1,-1)]]},activateNextItem(){this.activeItems=[this.items_[Math.min(this.firstActiveItemIndex+1,this.items_.length-1)]]},deactivateItems(){this.activeItems=[],this.$emit("deactivate")},keyDown(t){const e=t.keyCode||t.which;this.deactivateKeys||this.hide||!this.isKnownKey(e)||(!this.propagate&&t.stopPropagation&&(t.stopPropagation(),t.preventDefault()),this.keysMap[e].call(this))},isKnownKey(t){return Object.keys(this.keysMap).map(Number).indexOf(t)>-1},unbindKeys(){window.removeEventListener("keydown",this.keyDown)},bindKeys(){window.addEventListener("keydown",this.keyDown)},toggleKeys(){this.hide?this.unbindKeys():this.bindKeys()}}};var DJe=function(){var e=this,n=e._self._c;return e.hide?e._e():n("div",{staticClass:"selectable-dropdown show",class:{"selectable-dropdown--multiple":e.multiple,[e.listClass]:!0}},[n("recycle-scroller",{staticClass:"scroller",style:e.cssProps,attrs:{items:e.items_,"key-field":e.keyField,"item-size":e.itemSize},scopedSlots:e._u([{key:"default",fn:function({item:r,active:i}){return[n("span",{staticClass:"selectable-dropdown__item px-3 d-flex",class:{"recycle_scroller-item--active":i,active:e.itemActivated(r),[e.itemClass]:!0},on:{click:[function(a){return a.ctrlKey||a.shiftKey||a.altKey||a.metaKey?null:e.clickToSelectItem(r)},function(a){return a.ctrlKey?e.clickToAddItem(r):null},function(a){return a.shiftKey?e.clickToSelectRangeToItem(r):null}]}},[e._t("item",function(){return[e.multiple?n("div",{staticClass:"selectable-dropdown__item__check"},[n("fa",{staticClass:"mr-2",attrs:{icon:e.indexIcon(r)}})],1):e._e(),n("div",{staticClass:"flex-grow-1 text-truncate selectable-dropdown__item__label"},[e._t("item-label",function(){return[e._v(" "+e._s(e.serializer(r))+" ")]},{item:r})],2)]},{item:r})],2)]}}],null,!0)})],1)},xJe=[],MJe=mt(IJe,DJe,xJe,!1,null,null,null,null);const PJe=MJe.exports;const LJe={name:"SecretInput",components:{Fa:jr,HapticCopy:bb},model:{prop:"visible",event:"input"},props:{visible:{type:Boolean},value:{type:[String,Number],default:""},size:{type:String,default:"md"},hapticCopyVariant:{type:String,default:"primary"},noToggler:{type:Boolean},noHapticCopy:{type:Boolean}},data(){return{isVisible:this.visible}},computed:{inputType(){return this.isVisible?"text":"password"},togglerIcon(){return this.isVisible?["far","eye-slash"]:["far","eye"]},hapticCopyClassList(){return`btn-${this.hapticCopyVariant}`}},watch:{visible(t){this.isVisible=t}},beforeMount(){Fr.add(GZe,BZe)},methods:{toggle(){this.isVisible=!this.isVisible,this.$emit("input",this.isVisible)},selectInput(){this.isVisible&&this.$el.querySelector(".secret-input__input").select()}}};var kJe=function(){var e=this,n=e._self._c;return n("b-input-group",{staticClass:"secret-input",attrs:{size:e.size}},[e.noToggler?e._e():n("b-input-group-prepend",[n("b-button",{staticClass:"secret-input__toggler",attrs:{variant:"link"},on:{click:e.toggle}},[n("fa",{attrs:{"fixed-width":"",icon:e.togglerIcon}})],1)],1),n("b-form-input",{staticClass:"text-monospace secret-input__input",attrs:{readonly:"",type:e.inputType,value:e.value},on:{click:e.selectInput}}),e.noHapticCopy?e._e():n("b-input-group-append",[n("haptic-copy",{staticClass:"secret-input__copy",class:e.hapticCopyClassList,attrs:{"hide-label":"",text:e.value},on:{success:e.selectInput,error:e.selectInput}})],1)],1)},$Je=[],FJe=mt(LJe,kJe,$Je,!1,null,"11331786",null,null);const BJe=FJe.exports,Fp={PRE:"pre",ACTIVE:"active",POST:"post"},UJe={name:"SlideUpDown",props:{active:{type:Boolean,default:!1},duration:{type:Number,default:200},tag:{type:String,default:"div"}},data(){return{state:Fp.POST,mounted:!1,scrollHeight:0}},computed:{stylePreTransition(){return{overflow:"hidden","transition-property":"height","transition-duration":`${this.duration}ms`,height:this.mounted?`${this.containerScrollHeight}px`:0}},styleActiveTransition(){return{overflow:"hidden","transition-property":"height","transition-duration":`${this.duration}ms`,height:this.mounted?`${this.activeHeight}px`:"auto"}},stylePostTransition(){return this.active?{}:this.styleActiveTransition},style(){switch(this.state){case Fp.PRE:return this.stylePreTransition;case Fp.ACTIVE:return this.styleActiveTransition;default:return this.stylePostTransition}},activeHeight(){return this.active?this.containerScrollHeight:0},containerScrollHeight(){var t;return((t=this.$container)==null?void 0:t.scrollHeight)??0},$container(){return this.$refs.container}},watch:{active(){return this.triggerSlide()}},async mounted(){var t;await this.deferredNextTick(),this.mounted=!0,await this.cleanLayout(null),(t=this.$container)==null||t.addEventListener("transitionend",e=>this.cleanLayout(e))},methods:{async triggerSlide(){this.state=Fp.PRE,this.scrollHeight=this.containerScrollHeight,await this.deferredNextTick(),this.state=Fp.ACTIVE},cleanLayout(t){if(!t||t.target===this.$container)return this.state=Fp.POST,this.deferredNextTick()},async deferredNextTick(){await new Promise(t=>setTimeout(t,0)),await this.$nextTick()}}};var GJe=function(){var e=this,n=e._self._c;return e._self._setupProxy,n(e.tag,{ref:"container",tag:"component",style:e.style},[e._t("default")],2)},HJe=[],YJe=mt(UJe,GJe,HJe,!1,null,null,null,null);const doe=YJe.exports,VJe={name:"TexturedDeck",props:{value:{type:String,default:OM.Brick},size:{type:String,default:"cover"},tag:{type:[String,Object],default:"div"},black:{type:Boolean},backgroundBaseUrl:{type:String,default:()=>$n.get("textured-deck.background-base-url",window.location.origin)}},computed:{names(){return Object.values(OM)},textureIndex(){return typeof this.value!="number"?Le.clamp(this.names.indexOf(this.value),0,this.names.length-1):this.value},textureName(){return this.names[this.textureIndex]},filename(){return this.black?`texture-${this.textureName}-black.jpg`:`texture-${this.textureName}.jpg`},backgroundUrl(){return`${this.backgroundBaseUrl}/assets/img/${this.filename}`},backgroundSize(){return this.size},backgroundImage(){return`url("${this.backgroundUrl}")`},inheritedProps(){return{...this.$attrs,...this.$props,tag:void 0}}}};var zJe=function(){var e=this,n=e._self._c;return e._self._setupProxy,n(e.tag,e._b({tag:"component",staticClass:"textured-deck",style:{backgroundSize:e.backgroundSize,backgroundImage:e.backgroundImage}},"component",e.inheritedProps,!1),[e._t("default")],2)},qJe=[],WJe=mt(VJe,zJe,qJe,!1,null,"56bd1adb",null,null);const foe=WJe.exports;var KJe={prefix:"fas",iconName:"angle-right",icon:[320,512,[8250],"f105","M278.6 233.4c12.5 12.5 12.5 32.8 0 45.3l-160 160c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L210.7 256 73.4 118.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l160 160z"]},Tut={prefix:"fas",iconName:"arrow-right",icon:[448,512,[8594],"f061","M438.6 278.6c12.5-12.5 12.5-32.8 0-45.3l-160-160c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L338.8 224 32 224c-17.7 0-32 14.3-32 32s14.3 32 32 32l306.7 0L233.4 393.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0l160-160z"]},Out={prefix:"fas",iconName:"arrow-left",icon:[448,512,[8592],"f060","M9.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l160 160c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L109.2 288 416 288c17.7 0 32-14.3 32-32s-14.3-32-32-32l-306.7 0L214.6 118.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-160 160z"]},jJe={prefix:"fas",iconName:"angle-left",icon:[320,512,[8249],"f104","M41.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l160 160c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L109.3 256 246.6 118.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-160 160z"]};const QJe={i18n:sa,name:"TinyPagination",components:{BButton:Di,BFormInput:VT,Fa:jr},model:{prop:"value",event:"input"},props:{totalRows:{type:Number,default:0},perPage:{type:Number,default:20},value:{type:[Number,String],default:1},size:{type:String,default:Lc.md,validator:t=>Object.values(Lc).includes(t)},pages:{type:[Number,String],default:null},noNav:{type:Boolean},previousPageIcon:{type:[String,Array,Object],default:"angle-left"},nextPageIcon:{type:[String,Array,Object],default:"angle-right"},navVariant:{type:String,default:"link"},block:{type:Boolean},compact:{type:Boolean}},data(){return{currentPageInput:+this.value}},computed:{numberOfPages(){return this.pages===null?Math.ceil(this.totalRows/this.perPage):Number(this.pages)},paginationClassList(){return{[`tiny-pagination--${this.size}`]:!0,["tiny-pagination--no-nav"]:this.noNav,["tiny-pagination--block"]:this.block,["tiny-pagination--compact"]:this.compact}},hasPrevious(){return+this.value>1},hasNext(){return+this.valuee}var fet=det,pet=uet,_et=fet,met=La;function het(t){return t&&t.length?pet(t,met,_et):void 0}var get=het;const lY=get;var vet=cm;function bet(t,e){var n;return vet(t,function(r,i,a){return n=e(r,i,a),!n}),!!n}var Eet=bet,yet=cte,Tet=lu,Oet=Eet,Cet=Gr,Ret=Jk;function Net(t,e,n){var r=Cet(t)?yet:Oet;return n&&Ret(t,e,n)&&(e=void 0),r(t,Tet(e))}var poe=Net;function Aet(t){try{new URL(t)}catch{return!1}return!0}const sf={props:{data:{type:[Array,String,Object],default:()=>[],validator(t){return Qd(t)||ew(t)&&Aet(t)}},dataUrlType:{type:String,default:"json",validator(t){return["json","csv","tsv"].indexOf(t)>-1}},chartHeightRatio:{type:Number},socialMode:{type:Boolean},socialModeRatio:{type:Number,default:5/4}},resizeObserver:null,async mounted(){var t;await document.fonts.ready,this.$options.resizeObserver=new Mk(this.resized),await this.loadData(),await this.$nextTick(),(t=this.$options.resizeObserver)==null||t.observe(this.$el),this.mounted=!0},beforeDestroy(){var t;(t=this.$options.resizeObserver)==null||t.unobserve(this.$el),this.$options.resizeObserver=null},data(){return{narrowWidth:!1,mounted:!1,loadedData:null}},watch:{data(){return this.loadData()}},filters:{d3Formatter(t,e){return d0(e)?e(t):ew(e)?rf(e)(t):t}},methods:{resized(){this.setNarrowWidth(),this.$emit("resized")},async loadData(){ew(this.data)?this.loadedData=await this.dataLoader(this.data):this.loadedData=this.data,this.$emit("loaded",this.loadedData)},elementsMaxBBox({selector:t="text",defaultWidth:e=null,defaultHeight:n=null}={}){const r=this.mounted?this.$el.querySelectorAll(t):[];if(!r.length)return{width:e,height:n};const i=lY([...r].map(o=>o.getBBox?o.getBBox().width:e)),a=lY([...r].map(o=>o.getBBox?o.getBBox().height:n));return{width:i,height:a}},setNarrowWidth(){this.narrowWidth=jn(this,"$el.offsetWidth",540)<540},xAxisYearFormat(t){return this.narrowWidth?"’"+String(t).slice(2,4):t},highlighted(t){return t.highlight}},computed:{dataLoader(){return oZe[this.dataUrlType]},baseHeightRatio(){return this.chartHeightRatio||(this.socialMode?this.socialModeRatio:9/16)},dataHasHighlights(){return poe(this.data,this.highlighted)}}};const wet={name:"BarChart",mixins:[sf],props:{barHeight:{type:Number,default:30},barGap:{type:Number,default:15},barColor:{type:String,default:null},barHighlightColor:{type:String,default:null},fixedLabelWidth:{type:Number,default:null},fixedValueWidth:{type:Number,default:null},labelGap:{type:Number,default:10},valueGap:{type:Number,default:5},sortBy:{type:[Array,String],default:null},xAxisTickFormat:{type:[Function,String],default:La}},data(){return{width:0}},computed:{sortedData(){return this.loadedData?this.sortBy?Eb(this.sortedData,this.sortBy):this.loadedData:[]},labelWidth(){if(this.fixedLabelWidth)return this.fixedLabelWidth;const t=".bar-chart__labels__item",e=100;return this.elementsMaxBBox({selector:t,defaultWidth:e}).width},valueWidth(){if(this.fixedValueWidth)return this.fixedValueWidth;const t=".bar-chart__bars__item__value",e=0;return this.elementsMaxBBox({selector:t,defaultWidth:e}).width+this.valueGap},margin(){return{left:this.labelWidth+this.labelGap,right:0,top:0,bottom:0}},padded(){const t=this.width-this.margin.left-this.margin.right,e=this.height-this.margin.top-this.margin.bottom;return{width:t,height:e}},scale(){return{x:Ll().domain([0,jc(this.sortedData,e=>e.value)]).range([0,this.padded.width-this.valueWidth])}},bars(){return this.sortedData.map((t,e)=>({width:Math.abs(this.scale.x(t.value)),height:Math.abs(this.barHeight),value:t.value,highlight:t.highlight,x:0,y:(this.barHeight+this.barGap)*e}))},labels(){return this.sortedData.map((t,e)=>({label:t.label,x:this.labelWidth,y:4+this.barHeight/2+(this.barHeight+this.barGap)*e}))},height(){return(this.barHeight+this.barGap)*this.sortedData.length}},watch:{width(){this.initialize()}},mounted(){window.addEventListener("resize",this.onResize),this.onResize()},beforeDestroy(){window.removeEventListener("resize",this.onResize)},methods:{onResize(){this.width=this.$el.offsetWidth},initialize(){A0().scale(this.scale.x)}}};var Iet=function(){var e=this,n=e._self._c;return n("div",{staticClass:"bar-chart",class:{"bar-chart--has-highlights":e.dataHasHighlights,"bar-chart--social-mode":e.socialMode},style:{"--bar-color":e.barColor,"--bar-highlight-color":e.barHighlightColor}},[n("svg",{attrs:{width:e.width,height:e.height}},[n("g",{staticClass:"bar-chart__labels",style:{transform:`translate(0, ${e.margin.top}px)`}},e._l(e.labels,function(r,i){return n("text",{key:i,staticClass:"bar-chart__labels__item",attrs:{x:r.x,y:r.y,"text-anchor":"end"}},[e._v(" "+e._s(r.label)+" ")])}),0),n("g",{staticClass:"bar-chart__bars",style:{transform:`translate(${e.margin.left}px, ${e.margin.top}px)`}},e._l(e.bars,function(r,i){return n("g",{key:i,staticClass:"bar-chart__bars__item",class:{"bar-chart__bars__item--highlight":r.highlight}},[n("rect",{attrs:{width:r.width,height:r.height,x:r.x,y:r.y}}),n("text",{staticClass:"bar-chart__bars__item__value",attrs:{x:r.width+e.valueGap,y:r.y+r.height/2,"text-anchor":"start","dominant-baseline":"middle"}},[e._v(" "+e._s(e._f("d3Formatter")(r.value,e.xAxisTickFormat))+" ")])])}),0)])])},Det=[],xet=mt(wet,Iet,Det,!1,null,null,null,null);const Met=xet.exports,Pet={name:"ColumnChart",mixins:[sf],props:{columnColor:{type:String,default:null},columnHighlightColor:{type:String,default:null},fixedHeight:{type:Number,default:null},fixedLabelWidth:{type:Number,default:null},seriesName:{type:String,default:"value"},xAxisTickCollapse:{type:Boolean,default:!1},xAxisTickFormat:{type:[Function,String],default:Le.identity},xAxisTicks:{type:Array,default:null},yAxisTickFormat:{type:[Function,String],default:Le.identity},yAxisTicks:{type:[Number,Object],default:5},sortBy:{type:[Array,String],default:null},timeseriesKey:{type:String,default:"date"},maxValue:{type:Number,default:null},noTooltips:{type:Boolean},noXAxis:{type:Boolean},noYAxis:{type:Boolean},barPadding:{type:Number,default:.35},barMargin:{type:Number,default:0},highlights:{type:Array,default:()=>[]},stripped:{type:Boolean},hover:{type:Boolean}},data(){return{width:0,height:0,shownTooltip:-1}},computed:{sortedData(){return this.loadedData?this.sortBy?Le.sortBy(this.sortedData,this.sortBy):this.loadedData:[]},labelWidth(){if(this.fixedLabelWidth)return this.fixedLabelWidth;const t=".column-chart__axis--y .tick text",e=100;return this.elementsMaxBBox({selector:t,defaultWidth:e}).width},labelHeight(){if(this.noYAxis)return 0;const t=".column-chart__axis--y .tick text",e=10;return this.elementsMaxBBox({selector:t,defaultHeight:e}).height},bucketHeight(){if(this.noXAxis)return 0;const t=".column-chart__axis--x .tick text",e=10;return this.elementsMaxBBox({selector:t,defaultHeight:e}).height},bucketWidth(){const t=".column-chart__axis--x .tick text";return this.elementsMaxBBox({selector:t,defaultWidth:100}).width},margin(){return{left:this.noYAxis?0:this.labelWidth+10,right:0,top:this.labelHeight/2,bottom:this.noXAxis?0:this.bucketHeight+10}},padded(){const t=this.width-this.margin.left-this.margin.right,e=this.height-this.margin.top-this.margin.bottom;return{width:t,height:e}},scaleX(){return xb().domain(this.sortedData.map(Le.iteratee(this.timeseriesKey))).range([0,this.padded.width]).padding(this.barPadding)},scaleY(){const t=this.maxValue??jc(this.sortedData,Le.iteratee(this.seriesName));return Ll().domain([0,t]).range([this.padded.height,0])},bars(){return this.sortedData.map(t=>({datum:t,width:Math.max(1,Math.abs(this.scaleX.bandwidth())-this.barMargin),height:Math.abs(this.padded.height-this.scaleY(t[this.seriesName])),x:(this.scaleX(t[this.timeseriesKey])??0)+this.barMargin/2,y:this.scaleY(t[this.seriesName])??0}))},xAxisHiddenTicks(){return this.xAxisTickCollapse?Ts(1,this.sortedData.length).find(e=>{const n=this.bucketWidth*1.5;return this.width/(n/e)>=this.sortedData.length})??this.sortedData.length:0},xAxisTickValues(){return(this.xAxisTicks??this.sortedData.map(Le.iteratee(this.timeseriesKey))).map((e,n)=>(n+1)%this.xAxisHiddenTicks?null:e)},xAxis(){return A0(this.scaleX).tickFormat(t=>{var e;return(e=this.$options.filters)==null?void 0:e.d3Formatter(t,this.xAxisTickFormat)}).tickValues(this.xAxisTickValues)},yAxis(){return w0(this.scaleY).tickFormat(t=>{var e;return(e=this.$options.filters)==null?void 0:e.d3Formatter(t,this.yAxisTickFormat)}).ticks(this.yAxisTicks)}},watch:{width(){this.setup()},fixedHeight(){this.setSizes()},socialMode(){this.setup()},loadedData(){this.setup()},mounted(){this.setup()}},mounted(){this.$on("resized",this.setSizes),this.setSizes()},methods:{setup(){this.update()},setSizes(){var t;this.width=((t=this.$el)==null?void 0:t.offsetWidth)??0,this.height=this.fixedHeight!==null?this.fixedHeight:this.width*this.baseHeightRatio,this.update()},select({datum:t}){this.$emit("select",t)},update(){this.$el&&(Fn(this.$el).select(".column-chart__axis--x").call(this.xAxis).select(".domain").remove(),Fn(this.$el).select(".column-chart__axis--y").call(this.yAxis).selectAll(".tick line").attr("x2",this.padded.width))},barTooltipStyle(t){const e=`${t.y+this.margin.top}px`,n=`${t.x+t.width/2+this.margin.left}px`;return{top:e,left:n}},highlighted(t){return t.highlight||this.highlights.includes(t[this.timeseriesKey])}}};var Let=function(){var e=this,n=e._self._c;return e._self._setupProxy,n("div",{staticClass:"column-chart",class:{"column-chart--has-highlights":e.dataHasHighlights,"column-chart--hover":e.hover,"column-chart--stripped":e.stripped,"column-chart--social-mode":e.socialMode},style:{"--column-color":e.columnColor,"--column-highlight-color":e.columnHighlightColor}},[n("svg",{attrs:{width:e.width,height:e.height}},[n("g",{style:{transform:`translate(${e.margin.left}px, ${e.margin.top}px)`}},[e.noXAxis?e._e():n("g",{staticClass:"column-chart__axis column-chart__axis--x",style:{transform:`translate(0, ${e.padded.height}px)`}}),e.noYAxis?e._e():n("g",{staticClass:"column-chart__axis column-chart__axis--y"})]),n("g",{staticClass:"column-chart__columns",style:{transform:`translate(${e.margin.left}px, ${e.margin.top}px)`}},e._l(e.bars,function(r,i){return n("g",{key:i,staticClass:"column-chart__columns__item",class:{"column-chart__columns__item--highlight":e.highlighted(r.datum)},style:{transform:`translate(${r.x}px, 0px)`},on:{click:function(a){return e.select(r)},mouseover:function(a){e.shownTooltip=i},mouseleave:function(a){e.shownTooltip=-1}}},[n("rect",{staticClass:"column-chart__columns__item__placeholder",attrs:{width:r.width,height:e.padded.height}}),n("rect",{staticClass:"column-chart__columns__item__bar",attrs:{width:r.width,height:r.height,y:r.y}})])}),0)]),e.noTooltips?e._e():n("div",{staticClass:"column-chart__tooltips"},e._l(e.bars,function(r,i){return n("div",{key:i},[n("div",{staticClass:"column-chart__tooltips__item",style:e.barTooltipStyle(r)},[n("transition",{attrs:{name:"fade"}},[e.shownTooltip===i?n("div",{staticClass:"column-chart__tooltips__item__wrapper"},[e._t("tooltip",function(){return[n("h6",{staticClass:"column-chart__tooltips__item__wrapper__heading mb-0"},[e._v(" "+e._s(e._f("d3Formatter")(r.datum[e.timeseriesKey],e.xAxisTickFormat))+" ")]),n("div",{staticClass:"column-chart__tooltips__item__wrapper__value"},[e._v(" "+e._s(e._f("d3Formatter")(r.datum[e.seriesName],e.yAxisTickFormat))+" ")])]},null,r)],2):e._e()])],1)])}),0)])},ket=[],$et=mt(Pet,Let,ket,!1,null,null,null,null);const Fet=$et.exports;const Bet=(t=La,...e)=>d0(t)?t(...e):t,Uet={name:"LineChart",mixins:[sf],props:{lineColor:{type:String,default:null},fixedLabelWidth:{type:Number,default:null},fixedHeight:{type:Number,default:null},seriesName:{type:String,default:"value"},xAxisTicks:{type:[Object,Number,Function],default:null},yAxisTickFormat:{type:[Function,String],default:La},yAxisTicks:{type:[Object,Number,Function],default:5},timeseriesKey:{type:String,default:"date"}},data(){return{width:0,height:0,line:null}},computed:{labelWidth(){if(this.fixedLabelWidth)return this.fixedLabelWidth;const t=".line-chart__axis--y .tick text",e=100;return this.elementsMaxBBox({selector:t,defaultWidth:e}).width},labelHeight(){const t=".line-chart__axis--y .tick";return this.elementsMaxBBox({selector:t,defaultHeight:10}).height},bucketHeight(){const t=".line-chart__axis--x .tick";return this.elementsMaxBBox({selector:t,defaultHeight:10}).height},bucketWidth(){const t=".line-chart__axis--x .tick text";return this.elementsMaxBBox({selector:t,defaultWidth:0}).width},scale(){return{x:O$().range([0,this.padded.width]),y:Ll().range([this.padded.height,0])}},margin(){const t=this.labelWidth+10,e=this.bucketWidth/2,n=this.labelHeight,r=this.bucketHeight+10;return{left:t,right:e,top:n,bottom:r}},padded(){const t=this.width-this.margin.left-this.margin.right,e=this.height-this.margin.top-this.margin.bottom;return{width:t,height:e}},formattedData(){return this.loadedData?this.loadedData.map(t=>(t[this.timeseriesKey]=this.parseTime(t[this.timeseriesKey]),t[this.seriesName]=+t[this.seriesName],t)):[]}},watch:{socialMode(){this.setSizes()},width(){this.update()},height(){this.update()},fixedHeight(){this.update()},loadedData(){this.update()},labelHeight(){this.update()}},mounted(){window.addEventListener("resize",this.setSizes),this.setSizes()},beforeDestroy(){window.removeEventListener("resize",this.setSizes)},methods:{createLine:aC().x(t=>t.x).y(t=>t.y),parseTime:S$("%Y"),setSizes(){this.width=this.$el.offsetWidth,this.height=this.fixedHeight!==null?this.fixedHeight:this.$el.offsetWidth*this.baseHeightRatio},update(){this.scale.x.domain(jg(this.formattedData,e=>e[this.timeseriesKey])),this.scale.y.domain([0,jc(this.formattedData,e=>e[this.seriesName])]);const t=this.formattedData.map(e=>({x:this.scale.x(e[this.timeseriesKey]),y:this.scale.y(e[this.seriesName])}));this.line=this.createLine(t),Fn(this.$el).select(".line-chart__axis--x").call(A0(this.scale.x).ticks(this.xAxisTicks).tickFormat(e=>Bet(this.xAxisYearFormat,e.getFullYear()))),Fn(this.$el).select(".line-chart__axis--y").call(w0(this.scale.y).tickFormat(e=>this.$options.filters.d3Formatter(e,this.yAxisTickFormat)).ticks(this.yAxisTicks)).selectAll(".tick line").attr("x2",this.padded.width)}}};var Get=function(){var e=this,n=e._self._c;return n("div",{staticClass:"line-chart",class:{"line-chart--social-mode":e.socialMode},style:{"--line-color":e.lineColor}},[n("svg",{attrs:{width:e.width,height:e.height}},[n("g",{staticClass:"line-chart__axis line-chart__axis--x",style:{transform:`translate(${e.margin.left}px, ${e.margin.top+e.padded.height}px)`}},[e._v(" > ")]),n("g",{staticClass:"line-chart__axis line-chart__axis--y",style:{transform:`translate(${e.margin.left}px, ${e.margin.top}px)`}},[e._v(" > ")]),n("g",{style:{transform:`translate(${e.margin.left}px, ${e.margin.top}px)`}},[n("path",{staticClass:"line-chart__line",attrs:{d:e.line}})])])])},Het=[],Yet=mt(Uet,Get,Het,!1,null,null,null,null);const Vet=Yet.exports;function zet(t){return function(e){return t==null?void 0:t[e]}}var qet=zet,Wet=qet,Ket={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},jet=Wet(Ket),Qet=jet,Xet=Qet,Zet=mb,Jet=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,ett="\\u0300-\\u036f",ttt="\\ufe20-\\ufe2f",ntt="\\u20d0-\\u20ff",rtt=ett+ttt+ntt,itt="["+rtt+"]",att=RegExp(itt,"g");function ott(t){return t=Zet(t),t&&t.replace(Jet,Xet).replace(att,"")}var stt=ott,ltt=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function ctt(t){return t.match(ltt)||[]}var utt=ctt,dtt=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function ftt(t){return dtt.test(t)}var ptt=ftt,_oe="\\ud800-\\udfff",_tt="\\u0300-\\u036f",mtt="\\ufe20-\\ufe2f",htt="\\u20d0-\\u20ff",gtt=_tt+mtt+htt,moe="\\u2700-\\u27bf",hoe="a-z\\xdf-\\xf6\\xf8-\\xff",vtt="\\xac\\xb1\\xd7\\xf7",btt="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Ett="\\u2000-\\u206f",Stt=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",goe="A-Z\\xc0-\\xd6\\xd8-\\xde",ytt="\\ufe0e\\ufe0f",voe=vtt+btt+Ett+Stt,boe="['’]",cY="["+voe+"]",Ttt="["+gtt+"]",Eoe="\\d+",Ott="["+moe+"]",Soe="["+hoe+"]",yoe="[^"+_oe+voe+Eoe+moe+hoe+goe+"]",Ctt="\\ud83c[\\udffb-\\udfff]",Rtt="(?:"+Ttt+"|"+Ctt+")",Ntt="[^"+_oe+"]",Toe="(?:\\ud83c[\\udde6-\\uddff]){2}",Ooe="[\\ud800-\\udbff][\\udc00-\\udfff]",Kp="["+goe+"]",Att="\\u200d",uY="(?:"+Soe+"|"+yoe+")",wtt="(?:"+Kp+"|"+yoe+")",dY="(?:"+boe+"(?:d|ll|m|re|s|t|ve))?",fY="(?:"+boe+"(?:D|LL|M|RE|S|T|VE))?",Coe=Rtt+"?",Roe="["+ytt+"]?",Itt="(?:"+Att+"(?:"+[Ntt,Toe,Ooe].join("|")+")"+Roe+Coe+")*",Dtt="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",xtt="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Mtt=Roe+Coe+Itt,Ptt="(?:"+[Ott,Toe,Ooe].join("|")+")"+Mtt,Ltt=RegExp([Kp+"?"+Soe+"+"+dY+"(?="+[cY,Kp,"$"].join("|")+")",wtt+"+"+fY+"(?="+[cY,Kp+uY,"$"].join("|")+")",Kp+"?"+uY+"+"+dY,Kp+"+"+fY,xtt,Dtt,Eoe,Ptt].join("|"),"g");function ktt(t){return t.match(Ltt)||[]}var $tt=ktt,Ftt=utt,Btt=ptt,Utt=mb,Gtt=$tt;function Htt(t,e,n){return t=Utt(t),e=n?void 0:e,e===void 0?Btt(t)?Gtt(t):Ftt(t):t.match(e)||[]}var Ytt=Htt,Vtt=Cte,ztt=stt,qtt=Ytt,Wtt="['’]",Ktt=RegExp(Wtt,"g");function jtt(t){return function(e){return Vtt(qtt(ztt(e).replace(Ktt,"")),t,"")}}var Noe=jtt,Qtt=Noe,Xtt=Qtt(function(t,e,n){return t+(n?"-":"")+e.toLowerCase()}),Ztt=Xtt;function Jtt(t){return t!==t}var ent=Jtt;function tnt(t,e,n){for(var r=n-1,i=t.length;++r-1}var unt=cnt;function dnt(t,e,n){for(var r=-1,i=t==null?0:t.length;++r=bnt&&(a=vnt,o=!1,e=new pnt(e));e:for(;++i[]},groups:{type:Array,default:()=>[]},barColors:{type:Array,default:()=>[]},fixedHeight:{type:Number,default:null},xAxisTickFormat:{type:[Function,String],default:La},labelField:{type:String,default:"label"},labelAbove:{type:Boolean,default:!1},relative:{type:Boolean,default:!1},sortBy:{type:[Array,String],default:null},hideEmptyValues:{type:Boolean},hideLegend:{type:Boolean},highlights:{type:Array,default:()=>[]},highlightDelay:{type:Number,default:400},restoreHighlightDelay:{type:Number,default:50},rowHighlights:{type:Array,default:()=>[]},minBarHeight:{type:Number,default:16},maxBarHeight:{type:Number,default:60}},data(){return{highlightedKeys:this.highlights,highlightTimeout:null}},computed:{hasConstraintHeight(){return this.fixedHeight!==null||this.socialMode},sortedData(){return this.loadedData?this.sortBy?Eb(this.loadedData,this.sortBy):this.loadedData:[]},discoveredKeys(){return this.keys.length?this.keys:this.loadedData?Aoe(Ms(this.loadedData[0]),this.labelField):[]},colorScale(){return mm().domain(this.discoveredKeys).range(this.barColors)},maxValue(){return jc(this.loadedData||[],(t,e)=>this.totalRowValue(e))},hasHighlights(){return!!this.highlightedKeys.length},hasRowHighlights(){return!!this.rowHighlights.length},height(){return this.fixedHeight!==null?`${this.fixedHeight}px`:this.socialMode&&this.mounted?`${this.$el.offsetWidth*this.baseHeightRatio}px`:"auto"}},watch:{relative(){this.$nextTick(this.$forceUpdate)},height(){this.$nextTick(this.$forceUpdate)},sortBy(){this.$nextTick(this.$forceUpdate)},highlights(){this.highlightedKeys=this.highlights}},methods:{normalizeKey(t){return Ztt(t)},totalRowValue(t){return c3(this.discoveredKeys,e=>this.sortedData[t][e])},groupName(t){const e=this.discoveredKeys.indexOf(t);return this.groups[e]||t},highlight(t){this.highlightedKeys=[t]},restoreHighlights(){clearTimeout(this.highlightTimeout);const t=this.restoreHighlightDelay;this.highlightTimeout=setTimeout(()=>this.highlightedKeys=this.highlights,t)},delayHighlight(t){clearTimeout(this.highlightTimeout);const n=!this.hasHighlights?this.highlightDelay:0;this.highlightTimeout=setTimeout(()=>this.highlight(t),n)},isHighlighted(t){return this.highlightedKeys.indexOf(t)>-1},isRowHighlighted(t){const e=jn(this.sortedData,[t,this.labelField],null);return this.rowHighlights.includes(e)&&!this.highlightedKeys.length},barStyle(t,e){const n=this.sortedData[t][e],r=this.relative?this.totalRowValue(t):this.maxValue,i=`${100*(n/r)}%`,a=this.colorScale(e);return{width:i,backgroundColor:a}},barHeightBounds(t){return Math.min(Math.max(t,this.minBarHeight),this.maxBarHeight)},stackBarAndValue(t){if(!this.mounted)return[];const e=this.discoveredKeys.map(n=>{const{bar:r,row:i,value:a}=this.queryBarAndValue(t,n),o=r.getBoundingClientRect().left+r.offsetWidth,s=r.offsetWidth,l=i.getBoundingClientRect().left+i.offsetWidth,c=a.offsetWidth;return{key:n,barEdge:o,barWidth:s,rowEdge:l,valueWidth:c}});return e.map((n,r)=>{if(n.overflow=n.valueWidth>=n.barWidth,r>0){const i=e[r-1],a=n.valueWidth+i.valueWidth;n.overflow=n.overflow||i.overflow&&n.barWidthn.rowEdge&&n.overflow,n})},queryBarAndValue(t,e){if(!this.mounted)return{};const n="stacked-bar-chart__groups__item__bars__item",r=".stacked-bar-chart__groups__item",i=this.$el.querySelectorAll(r)[t],a=this.normalizeKey(e),o=`.${n}--${a}`,s=i.querySelector(o),l=`.${n}__value`,c=s.querySelector(l);return{bar:s,row:i,value:c}},hasValueOverflow(t,e){const n=this.stackBarAndValue(t);return jn(Av(n,{key:e}),"overflow")},hasValuePushed(t,e){const n=this.stackBarAndValue(t);return jn(Av(n,{key:e}),"pushed")},hasValueHidden(t,e){const n=this.discoveredKeys.indexOf(e),r=this.discoveredKeys[n+1];return r?this.hasValueOverflow(t,e)&&this.hasValueOverflow(t,r):!1},isHidden(t,e){return this.hideEmptyValues&&!this.sortedData[t][e]}}};var Dnt=function(){var e=this,n=e._self._c;return n("div",{staticClass:"stacked-bar-chart d-flex flex-column",class:{"stacked-bar-chart--has-highlights":e.dataHasHighlights,"stacked-bar-chart--social-mode":e.socialMode,"stacked-bar-chart--label-above":e.labelAbove,"stacked-bar-chart--has-highlights":e.hasHighlights||e.hasRowHighlights,"stacked-bar-chart--has-constraint-height":e.hasConstraintHeight,"stacked-bar-chart--has-label-above":e.labelAbove},style:{height:e.height}},[n("div",{staticClass:"d-flex align-items-center"},[e._t("header-left",function(){return[e.hideLegend?e._e():n("ul",{staticClass:"stacked-bar-chart__legend list-inline mx-0 mt-0 mb-2"},e._l(e.discoveredKeys,function(r){return n("li",{key:r,staticClass:"stacked-bar-chart__legend__item list-inline-item d-inline-flex",class:{"stacked-bar-chart__legend__item--highlighted":e.isHighlighted(r)},on:{mouseover:function(i){return e.delayHighlight(r)},mouseleave:function(i){return e.restoreHighlights()}}},[n("span",{staticClass:"stacked-bar-chart__legend__item__box",style:{"background-color":e.colorScale(r)}}),e._v(" "+e._s(e.groupName(r))+" ")])}),0)]}),e._t("header-right")],2),n("div",{staticClass:"stacked-bar-chart__groups"},e._l(e.sortedData,function(r,i){return n("div",{key:i,staticClass:"stacked-bar-chart__groups__item border-bottom flex-fill d-flex align-items-center",class:{"flex-column":e.labelAbove}},[n("div",{staticClass:"stacked-bar-chart__groups__item__label mr-1 small",class:{"w-100":e.labelAbove}},[e._v(" "+e._s(r[e.labelField])+" ")]),n("div",{staticClass:"stacked-bar-chart__groups__item__bars my-1 d-flex flex-grow-1 align-items-center"},e._l(e.discoveredKeys,function(a,o){return n("div",{key:o,staticClass:"stacked-bar-chart__groups__item__bars__item",class:{[`stacked-bar-chart__groups__item__bars__item--${e.normalizeKey(a)}`]:!0,[`stacked-bar-chart__groups__item__bars__item--${o}n`]:!0,"stacked-bar-chart__groups__item__bars__item--highlighted":e.isHighlighted(a)||e.isRowHighlighted(i),"stacked-bar-chart__groups__item__bars__item--hidden":e.isHidden(i,a),"stacked-bar-chart__groups__item__bars__item--value-overflow":e.hasValueOverflow(i,a),"stacked-bar-chart__groups__item__bars__item--value-pushed":e.hasValuePushed(i,a),"stacked-bar-chart__groups__item__bars__item--value-hidden":e.hasValueHidden(i,a)},style:e.barStyle(i,a),on:{mouseover:function(s){return e.delayHighlight(a)},mouseleave:function(s){return e.restoreHighlights()}}},[n("div",{staticClass:"stacked-bar-chart__groups__item__bars__item__value p-1"},[e._v(" "+e._s(e._f("d3Formatter")(r[a],e.xAxisTickFormat))+" ")])])}),0)])}),0)])},xnt=[],Mnt=mt(Int,Dnt,xnt,!1,null,null,null,null);const Pnt=Mnt.exports;const Lnt={name:"StackedColumnChart",directives:{"b-tooltip":ZJ},mixins:[sf],props:{keys:{type:Array,default:()=>[]},groups:{type:Array,default:()=>[]},barColors:{type:Array,default:()=>[]},barMaxWidth:{type:String,default:"100%"},hideEmptyValues:{type:Boolean},hideLegend:{type:Boolean},fixedHeight:{type:Number,default:null},xAxisTickFormat:{type:[Function,String],default:La},yAxisTickFormat:{type:[Function,String],default:La},yAxisTickPadding:{type:Number,default:10},labelField:{type:String,default:"date"},sortBy:{type:[Array,String],default:null},relative:{type:Boolean,default:!1},highlights:{type:Array,default:()=>[]},highlightDelay:{type:Number,default:400},columnHighlights:{type:Array,default:()=>[]},restoreHighlightDelay:{type:Number,default:50},noDirectLabeling:{type:Boolean},maxValue:{type:Number,default:null},tooltipDisplay:{type:Function,default:({formattedKey:t,formattedValue:e})=>`${t}
${e}
`},noTooltips:{type:Boolean}},data(){return{width:0,height:0,leftAxisHeight:0,highlightedKeys:this.highlights,highlightTimeout:null}},resizeObserver:null,computed:{sortedData(){return this.loadedData?this.sortBy?Eb(this.loadedData,this.sortBy):this.loadedData:[]},discoveredKeys(){return this.keys.length?this.keys:Aoe(Ms(this.sortedData[0]||{}),this.labelField)},colorScale(){return mm().domain(this.discoveredKeys).range(this.barColors)},maxRowValue(){return this.maxValue||jc(this.loadedData||[],(t,e)=>this.totalRowValue(e))},hasHighlights(){return!!this.highlightedKeys.length},hasColumnHighlights(){return!!this.columnHighlights.length},leftScale(){return Ll().domain([0,this.maxRowValue]).range([this.leftAxisHeight,0])},leftAxis:{cache:!1,get(){return w0(this.leftScale).tickFormat(t=>this.$options.filters.d3Formatter(t,this.yAxisTickFormat)).tickSize(this.width-this.leftAxisLabelsWidth).tickPadding(this.yAxisTickPadding)}},leftAxisLabelsWidth:{cache:!1,get(){const t=".stacked-column-chart__left-axis__canvas .tick text";return this.elementsMaxBBox({selector:t,defaultWidth:0}).width+this.yAxisTickPadding}},leftAxisCanvas(){return Fn(this.$el).select(".stacked-column-chart__left-axis__canvas")},paddedStyle(){return{marginLeft:this.noDirectLabeling?`${this.leftAxisLabelsWidth+this.yAxisTickPadding}px`:0}},barTooltipDelay(){return this.hasHighlights?0:this.highlightDelay}},watch:{socialMode(){this.setup()},loadedData(){this.setup()},leftAxisLabelsWidth(){this.setup()},leftAxisHeight(){this.setup()},fixedHeight(){this.setup()},highlights(){this.highlightedKeys=this.highlights}},async mounted(){var t;this.$options.resizeObserver=new Mk(this.setup),await this.$nextTick(),(t=this.$options.resizeObserver)==null||t.observe(this.$el)},beforeDestroy(){var t;(t=this.$options.resizeObserver)==null||t.unobserve(this.$el),this.$options.resizeObserver=null},methods:{setSizes(){this.width=this.$el.offsetWidth,this.height=this.fixedHeight!==null?this.fixedHeight:this.width*this.baseHeightRatio},async setup(){this.setSizes(),await this.$nextTick(),this.leftAxisHeight=this.$el.querySelector(".stacked-column-chart__groups__item__bars").offsetHeight,this.leftAxisCanvas.call(this.leftAxis)},groupName(t){const e=this.discoveredKeys.indexOf(t);return this.groups[e]||t},highlight(t){this.highlightedKeys=[t]},restoreHighlights(){clearTimeout(this.highlightTimeout);const t=this.restoreHighlightDelay;this.highlightTimeout=setTimeout(()=>this.highlightedKeys=this.highlights,t)},delayHighlight(t){clearTimeout(this.highlightTimeout);const n=!this.hasHighlights?this.highlightDelay:0;this.highlightTimeout=setTimeout(()=>this.highlight(t),n)},isHighlighted(t){return this.highlightedKeys.indexOf(t)>-1},isColumnHighlighted(t){const e=jn(this.sortedData,[t,this.labelField],null);return this.columnHighlights.includes(e)&&!this.highlightedKeys.length},totalRowValue(t){return c3(this.discoveredKeys,e=>this.sortedData[t][e])},barStyle(t,e){const n=this.sortedData[t][e],r=this.relative?this.totalRowValue(t):this.maxRowValue,i=`${100*(n/r)}%`,a=this.colorScale(e);return{maxWidth:this.barMaxWidth,height:i,backgroundColor:a}},barTitle(t,e){const n=this.sortedData[t][e],r=this.$options.filters.d3Formatter(n,this.yAxisTickFormat),i=this.groupName(e);return this.tooltipDisplay({value:n,formattedValue:r,key:e,formattedKey:i})},stackBarAndValue(t){if(!this.mounted)return[];const e=this.discoveredKeys.map(n=>{const{bar:r,row:i,value:a}=this.queryBarAndValue(t,n),o=r.getBoundingClientRect().top+r.offsetHeight,s=r.offsetHeight,l=i.getBoundingClientRect().top+i.offsetHeight,c=a.offsetHeight;return{key:n,barEdge:o,barHeight:s,rowEdge:l,valueHeight:c}});return e.map((n,r)=>{if(n.overflow=n.valueHeight>=n.barHeight,r>0){const i=e[r-1],a=n.valueHeight+i.valueHeight;n.overflow=n.overflow||i.overflow&&n.barHeightn.rowEdge&&n.overflow,n})},queryBarAndValue(t,e){if(!this.mounted)return{};const n=".stacked-column-chart__groups__item",r=this.$el.querySelectorAll(n)[t],i=`.stacked-column-chart__groups__item__bars__item--${e}`,a=r.querySelector(i),o=".stacked-column-chart__groups__item__bars__item__value",s=a.querySelector(o);return{bar:a,row:r,value:s}},isHidden(t,e){return this.hideEmptyValues&&!this.sortedData[t][e]},hasValueOverflow(t,e){var r;const n=this.stackBarAndValue(t);return(r=Av(n,{key:e}))==null?void 0:r.overflow},hasValuePushed(t,e){var r;const n=this.stackBarAndValue(t);return(r=Av(n,{key:e}))==null?void 0:r.pushed},hasValueHidden(t,e){const n=this.discoveredKeys.indexOf(e),r=this.discoveredKeys[n+1];return r?this.hasValueOverflow(t,e)&&this.hasValueOverflow(t,r):!1}}};var knt=function(){var e=this,n=e._self._c;return n("div",{staticClass:"stacked-column-chart d-flex flex-column",class:{"stacked-column-chart--social-mode":e.socialMode,"stacked-column-chart--has-highlights":e.hasHighlights||e.hasColumnHighlights,"stacked-column-chart--no-direct-labeling":e.noDirectLabeling},style:{height:`${e.height}px`}},[e.hideLegend?e._e():n("ul",{staticClass:"stacked-column-chart__legend list-inline"},e._l(e.discoveredKeys,function(r){return n("li",{key:r,staticClass:"stacked-column-chart__legend__item list-inline-item d-inline-flex",class:{"stacked-column-chart__legend__item--highlighted":e.isHighlighted(r)},on:{mouseover:function(i){return e.delayHighlight(r)},mouseleave:function(i){return e.restoreHighlights()}}},[n("span",{staticClass:"stacked-column-chart__legend__item__box",style:{"background-color":e.colorScale(r)}}),e._v(" "+e._s(e.groupName(r))+" ")])}),0),n("div",{staticClass:"d-flex flex-grow-1 position-relative overflow-hidden"},[n("svg",{directives:[{name:"show",rawName:"v-show",value:e.noDirectLabeling,expression:"noDirectLabeling"}],staticClass:"stacked-column-chart__left-axis",attrs:{width:e.width+"px",height:e.height+"px"}},[n("g",{staticClass:"stacked-column-chart__left-axis__canvas",attrs:{transform:`translate(${e.width}, 0)`}})]),n("div",{staticClass:"stacked-column-chart__groups d-flex flex-grow-1",style:e.paddedStyle},e._l(e.sortedData,function(r,i){return n("div",{key:i,staticClass:"stacked-column-chart__groups__item flex-grow-1 d-flex flex-column text-center"},[n("div",{staticClass:"stacked-column-chart__groups__item__bars flex-grow-1 d-flex flex-column-reverse px-1 justify-content-start align-items-center"},e._l(e.discoveredKeys,function(a,o){return n("div",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.html",value:{delay:e.barTooltipDelay,disabled:e.noTooltips,title:e.barTitle(i,a)},expression:"{ delay: barTooltipDelay, disabled: noTooltips, title: barTitle(i, key) }",modifiers:{html:!0}}],key:o,staticClass:"stacked-column-chart__groups__item__bars__item",class:{[`stacked-column-chart__groups__item__bars__item--${a}`]:!0,[`stacked-column-chart__groups__item__bars__item--${o}n`]:!0,"stacked-column-chart__groups__item__bars__item--hidden":e.isHidden(i,a),"stacked-column-chart__groups__item__bars__item--highlighted":e.isHighlighted(a)||e.isColumnHighlighted(i),"stacked-column-chart__groups__item__bars__item--value-overflow":e.hasValueOverflow(i,a),"stacked-column-chart__groups__item__bars__item--value-pushed":e.hasValuePushed(i,a),"stacked-column-chart__groups__item__bars__item--value-hidden":e.hasValueHidden(i,a)},style:e.barStyle(i,a),on:{mouseover:function(s){return e.delayHighlight(a)},mouseleave:function(s){return e.restoreHighlights()}}},[n("div",{directives:[{name:"show",rawName:"v-show",value:!e.noDirectLabeling,expression:"!noDirectLabeling"}],staticClass:"stacked-column-chart__groups__item__bars__item__value"},[e._v(" "+e._s(e._f("d3Formatter")(r[a],e.yAxisTickFormat))+" ")])])}),0),n("div",{staticClass:"stacked-column-chart__groups__item__label small py-2"},[e._v(" "+e._s(e._f("d3Formatter")(r[e.labelField],e.xAxisTickFormat))+" ")])])}),0)])])},$nt=[],Fnt=mt(Lnt,knt,$nt,!1,null,null,null,null);const Bnt=Fnt.exports,pY=Object.freeze(Object.defineProperty({__proto__:null,BarChart:Met,ColumnChart:Fet,LineChart:Vet,StackedBarChart:Pnt,StackedColumnChart:Bnt},Symbol.toStringTag,{value:"Module"}));var Lg=Math.abs,FP=Math.floor,Unt=Math.max,nd=Math.min,woe=Math.sign||function(t){return t>0?1:t<0?-1:0},Gnt=1e-12,Y$=Math.PI,Hnt=180/Y$,Ynt=Y$/180,Sa=[[.9986,-.062],[1,0],[.9986,.062],[.9954,.124],[.99,.186],[.9822,.248],[.973,.31],[.96,.372],[.9427,.434],[.9216,.4958],[.8962,.5571],[.8679,.6176],[.835,.6769],[.7986,.7346],[.7597,.7903],[.7186,.8435],[.6732,.8936],[.6213,.9394],[.5722,.9761],[.5322,1]];Sa.forEach(function(t){t[1]*=1.593415793900743});function Ioe(t,e){var n=nd(18,Lg(e)*36/Y$),r=FP(n),i=n-r,a=(f=Sa[r])[0],o=f[1],s=(f=Sa[++r])[0],l=f[1],c=(f=Sa[nd(19,++r)])[0],d=f[1],f;return[t*(s+i*(c-a)/2+i*i*(c-2*s+a)/2),woe(e)*(l+i*(d-o)/2+i*i*(d-2*l+o)/2)]}Ioe.invert=function(t,e){var n=e*90,r=nd(18,Lg(n/5)),i=Unt(0,FP(r));do{var a=Sa[i][1],o=Sa[i+1][1],s=Sa[nd(19,i+2)][1],l=s-a,c=s-2*o+a,d=2*(Lg(e)-o)/l,f=c/l,p=d*(1-f*d*(1-2*f*d));if(p>=0||i===1){n=(e>=0?5:-5)*(p+r);var m=50,h;do r=nd(18,Lg(n)/5),i=FP(r),p=r-i,a=Sa[i][1],o=Sa[i+1][1],s=Sa[nd(19,i+2)][1],n-=(h=woe(e)*(o+p*(s-a)/2+p*p*(s-2*o+a)/2)-e)*Hnt;while(Lg(h)>Gnt&&--m>0);break}}while(--i>=0);var g=Sa[i][0],E=Sa[i+1][0],S=Sa[nd(19,i+2)][0];return[t/(E+p*(S-g)/2+p*p*(S-2*E+g)/2),n*Ynt]};function Doe(){return qo(Ioe).scale(152.63)}function Vnt(t){return t}function znt(t){if(t==null)return Vnt;var e,n,r=t.scale[0],i=t.scale[1],a=t.translate[0],o=t.translate[1];return function(s,l){l||(e=n=0);var c=2,d=s.length,f=new Array(d);for(f[0]=(e+=s[0])*r+a,f[1]=(n+=s[1])*i+o;c$n.get("map.topojson.world-countries-sans-antarctica")},transitionDuration:{type:Number,default:750},zoomable:{type:Boolean},zoomMin:{type:Number,default:1},zoomMax:{type:Number,default:8}},data(){return{mapRect:{width:0,height:0},featureCursor:null,featureZoom:null}},topojson:null,computed:{featureColorScaleEnd(){return this.mounted&&window.getComputedStyle(this.map.node()).getPropertyValue("--primary")||"#852308"},featureColorScaleStart(){return this.mounted&&this.socialMode!==null&&window.getComputedStyle(this.map.node()).getPropertyValue("color")||"#fff"},featureColor(){return t=>{const e=Le.get(t,this.topojsonObjectsPath);if(e in this.loadedData)return this.featureColorScaleFunction(this.loadedData[e])}},featureColorScaleFunction(){return this.featureColorScale!==null?this.featureColorScale:this.defaultFeatureColorScale},defaultFeatureColorScale(){return j0().domain([Math.max(1,this.minValue),this.maxValue]).range([this.featureColorScaleStart,this.featureColorScaleEnd])},featurePath(){return k3().projection(this.mapProjection)},hasCursor(){return!!this.featureCursor},hasZoom(){return!!this.featureZoom},topojson(){return this.$options.topojson},geojson(){const t=Le.get(this.topojson,["objects",this.topojsonObjects],null);return xoe(this.topojson,t)},mapClass(){return{"choropleth-map--has-cursor":this.hasCursor,"choropleth-map--has-zoom":this.hasZoom,"choropleth-map--hatch-empty":this.hatchEmpty}},mapProjection(){const{height:t,width:e}=this.mapRect;return Doe().fitSize([e,t],this.geojson)},mapZoom(){return G$().scaleExtent([this.zoomMin,this.zoomMax]).translateExtent([[0,0],[this.mapRect.width,this.mapRect.height]]).on("zoom",this.mapZoomed)},mapHeight(){return this.mapRect.height},mapWidth(){return this.mapRect.width},map(){return this.mounted?Fn(this.$el).select("svg"):null},maxValue(){return this.max!==null?this.max:Le.max(Le.values(this.loadedData))||0},minValue(){return this.min!==null?this.min:Le.min(Le.values(this.loadedData))||0},cursorValue(){return Le.get(this,["data",this.featureCursor],null)}},watch:{socialMode(){this.draw()},data(){this.update()},featureZoom(){this.setFeaturesClasses()},featureCursor(){this.setFeaturesClasses()}},async created(){await new Promise(t=>this.$on("loaded",t)),await this.loadTopojson(),this.draw(),this.$on("resized",this.debouncedDraw)},methods:{debouncedDraw:Le.debounce(function(){this.draw()},10),prepare(){return this.$set(this,"mapRect",this.map.node().getBoundingClientRect()),this.map.selectAll("g").remove(),this.map},prepareZoom(){this.zoomable&&this.map.call(this.mapZoom)},draw(){this.prepare().append("g").attr("class","choropleth-map__main__features").selectAll(".choropleth-map__main__features__item").data(this.geojson.features).enter().append("path").attr("class",this.featureClass).attr("d",this.featurePath).on("mouseover",this.featureMouseOver).on("mouseleave",this.featureMouseLeave).on("click",this.mapClicked).style("color",this.featureColor),this.prepareZoom()},update(){this.map.selectAll(".choropleth-map__main__features__item").data(this.geojson.features).attr("class",this.featureClass).style("color",this.featureColor)},featureClass(t){return Le.keys(Le.pickBy(this.featureClassObject(t),e=>e)).join(" ")},featureClassObject(t){const e="choropleth-map__main__features__item",n=Le.get(t,this.topojsonObjectsPath);return{[e]:!0,[`${e}--identifier-${Le.kebabCase(n)}`]:!0,[`${e}--empty`]:!(n in this.loadedData),[`${e}--zoomed`]:this.featureZoom===n,[`${e}--cursored`]:this.featureCursor===n}},featureMouseLeave(){this.featureCursor=null},featureMouseOver(t,e){const n=Le.get(e,this.topojsonObjectsPath);this.featureCursor=n in this.loadedData?n:null},async loadTopojson(){return this.$options.topojsonPromise||(this.$options.topojsonPromise=w3(this.topojsonUrl),this.$options.topojson=await this.$options.topojsonPromise),this.$options.topojsonPromise},mapZoomed({transform:t}){this.map.style("--map-scale",t.k).selectAll(".choropleth-map__main__features__item").attr("transform",t)},async mapClicked(t,e){if(this.$emit("click",e),!!this.clickable){if(this.featureZoom===Le.get(e,this.topojsonObjectsPath))return this.resetZoom(t,e);await this.setFeatureZoom(e,Ei(t,this.map.node())),this.$emit("zoomed",e)}},resetZoom(){this.map.style("--map-scale",1).transition().duration(this.transitionDuration).call(this.mapZoom.transform,nu),this.featureZoom=null,this.$emit("reset")},setFeaturesClasses(){this.map.selectAll(".choropleth-map__main__features__item").attr("class",this.featureClass)},setFeatureZoom(t,e=[0,0]){this.featureZoom=Le.get(t,this.topojsonObjectsPath);const{height:n,width:r}=this.mapRect,[[i,a],[o,s]]=this.featurePath.bounds(t),l=Math.min(8,.9/Math.max((o-i)/r,(s-a)/n)),c=nu.translate(r/2,n/2).scale(l).translate(-(i+o)/2,-(a+s)/2);return this.map.style("--map-scale",l).transition().duration(this.transitionDuration).call(this.mapZoom.transform,c,e).end()}}};var jnt=function(){var e=this,n=e._self._c;return n("div",{staticClass:"choropleth-map",class:e.mapClass},[n("svg",{staticClass:"choropleth-map__main"},[n("pattern",{attrs:{id:"diagonalHatch",width:"1",height:"1",patternTransform:"rotate(45 0 0)",patternUnits:"userSpaceOnUse"}},[n("rect",{attrs:{width:"1",height:"1",fill:e.featureColorScaleEnd}}),n("line",{style:{stroke:e.featureColorScaleStart,strokeWidth:1},attrs:{x1:"0",y1:"0",x2:"0",y2:"1"}})])]),e.hideLegend?e._e():n("scale-legend",{staticClass:"choropleth-map__legend",attrs:{"color-scale-end":e.featureColorScaleEnd,"color-scale-start":e.featureColorScaleStart,"color-scale":e.featureColorScaleFunction,"cursor-value":e.cursorValue,max:e.maxValue,min:e.minValue},scopedSlots:e._u([{key:"cursor",fn:function({value:r}){return[e._t("legend-cursor",null,null,{value:r,identifier:e.featureCursor})]}}],null,!0)})],1)},Qnt=[],Xnt=mt(Knt,jnt,Qnt,!1,null,"fd6901e3",null,null);const Znt=Xnt.exports;const Jnt={name:"SymbolMap",components:{OrdinalLegend:Jae},mixins:[sf],props:{categoryObjectsPath:{type:[String,Array],default:"category"},clickable:{type:Boolean},hideLegend:{type:Boolean},hideTooltip:{type:Boolean},horizontalLegend:{type:Boolean},featureColor:{type:[String,Function],default:"currentColor"},fitToMarkers:{type:Boolean},labelObjectsPath:{type:[String,Array],default:"label"},mapPadding:{type:Number,default:15},markerObjectsPath:{type:[String,Array],default:"id"},markerPath:{type:[String,Function],default:"M512 256C512 397.4 397.4 512 256 512C114.6 512 0 397.4 0 256C0 114.6 114.6 0 256 0C397.4 0 512 114.6 512 256z"},markerColor:{type:String,default:null},markerWidth:{type:[Number,Function],default:10},noMarkersScale:{type:Boolean},tooltipCustomClass:{type:String,default:null},tooltipPlacement:{type:String,default:"top"},tooltipFallbackPlacement:{type:[Array,String],default:"flip"},topojsonObjects:{type:String,default:"countries1"},topojsonObjectsPath:{type:[String,Array],default:"id"},topojsonUrl:{type:String,default:()=>$n.get("map.topojson.world-countries-sans-antarctica")},transitionDuration:{type:Number,default:750},zoomable:{type:Boolean},zoomMin:{type:Number,default:1},zoomMax:{type:Number,default:8}},data(){return{mapRect:{width:0,height:0},markerCursor:null,categoryHighlight:null}},topojson:null,computed:{featurePath(){return k3().projection(this.mapProjection)},hasCursor(){return!!this.markerCursor},hasHighlight(){return!!this.categoryHighlight},topojson(){return this.$options.topojson},geojson(){return this.fitToMarkers?this.markersGeojson:this.featuresGeojson},featuresGeojson(){const t=Le.get(this.topojson,["objects",this.topojsonObjects],null);return xoe(this.topojson,t)},markersGeojson(){return{type:"Feature",geometry:{type:"Polygon",coordinates:[this.coordinates]}}},coordinates(){return(this.loadedData||[]).map(({longitude:t,latitude:e})=>[t,e])},mapId(){return Le.uniqueId("symbol-map-")},mapClass(){return{"symbol-map--has-cursor":this.hasCursor,"symbol-map--has-highlight":this.hasHighlight,"symbol-map--has-markers-scale":!this.noMarkersScale}},mapProjection(){const{height:t,width:e}=this.mapRect,n=this.mapPadding;return Doe().fitExtent([[n,n],[e-n,t-n]],this.geojson)},mapZoom(){return G$().scaleExtent([this.zoomMin,this.zoomMax]).translateExtent([[0,0],[this.mapRect.width,this.mapRect.height]]).on("zoom",this.mapZoomed)},mapHeight(){return this.mapRect.height},mapWidth(){return this.mapRect.width},map(){return this.mounted?Fn(this.$el).select(".symbol-map__main"):null},markerCursorValue(){return Le.find(this.loadedDataWithIds,t=>Le.get(t,this.markerObjectsPath)===this.markerCursor)},loadedDataWithIds(){return this.loadedData.map(t=>({...Le.set({},this.markerObjectsPath,Le.uniqueId()),...t}))},categories(){const t=(this.loadedData||[]).map(e=>Le.get(e,this.categoryObjectsPath));return Le.uniq(t).map(String)},legendData(){const t=Le.groupBy(this.loadedData||[],e=>Le.get(e,this.categoryObjectsPath));return Object.entries(t).map(e=>{const[n,[{color:r}]]=e,i=r||this.categoryColor(n);return{label:n,color:i}})},hasTooltip(){return!this.hideTooltip&&this.loadedData&&this.markerCursor},tooltipTarget(){return this.hasTooltip?this.markerId(this.markerCursorValue):null}},watch:{data(){this.draw()},socialMode(){this.draw()},markerCursor(){this.setMarkersClasses()},categoryHighlight(){this.setMarkersClasses()}},async created(){await new Promise(t=>this.$on("loaded",t)),await this.loadTopojson(),this.draw(),this.$on("resized",this.debouncedDraw)},methods:{debouncedDraw:Le.debounce(function(){this.draw()},10),prepare(){return this.$set(this,"mapRect",this.map.node().getBoundingClientRect()),this.map.selectAll("g").remove(),this.map},prepareZoom(){this.zoomable&&this.map.call(this.mapZoom)},categoryColor(t){if(this.mounted){const e=this.categories.indexOf(t);return window.getComputedStyle(this.$el).getPropertyValue(`--category-color-${e}n`)||"#000"}return null},draw(){const t=this.prepare();t.append("g").attr("class","symbol-map__main__features").selectAll(".symbol-map__main__features__item").data(this.featuresGeojson.features).enter().append("path").attr("class",this.featureClass).attr("d",this.featurePath).on("click",this.featureClicked).style("color",this.featureColor),t.append("g").attr("class","symbol-map__main__markers").selectAll(".symbol-map__main__markers__item").data(this.loadedDataWithIds).enter().append("g").attr("id",this.markerId).attr("class",this.markerClass).attr("transform",this.markerTransform).append("path").on("mouseover",this.markerMouseOver).on("mouseleave",this.markerMouseLeave).attr("d",this.markerPathFunction).attr("fill",this.markerColorFunction),this.prepareZoom()},featureClass(t){return Le.keys(Le.pickBy(this.featureClassObject(t),e=>e)).join(" ")},featureClassObject(t){const e="symbol-map__main__features__item",n=Le.get(t,this.topojsonObjectsPath,null);return{[e]:!0,[`${e}--identifier-${Le.kebabCase(n)}`]:n!==null}},async loadTopojson(){return this.$options.topojsonPromise||(this.$options.topojsonPromise=w3(this.topojsonUrl),this.$options.topojson=await this.$options.topojsonPromise),this.$options.topojsonPromise},mapZoomed({transform:t}){this.markerCursor=null,this.map.style("--map-scale",t.k).selectAll(".symbol-map__main__features, .symbol-map__main__markers").attr("transform",t)},markerBoundingClientRect(t){const e=this.map.append("path").attr("d",this.markerPathFunction(t)),n=e.node().getBoundingClientRect();return e.remove(),n},markerMouseLeave(){this.markerCursor=null},markerMouseOver(t,e){this.markerCursor=Le.get(e,this.markerObjectsPath)},markerClass(t){return Le.keys(Le.pickBy(this.markerClassObject(t),e=>e)).join(" ")},markerId(t){const e=Le.get(t,this.markerObjectsPath);return`${this.mapId}-marker-${e}`},markerClassObject(t){const e=String(Le.get(t,this.categoryObjectsPath)),n=this.categories.indexOf(e),r=Le.get(t,this.markerObjectsPath),i="symbol-map__main__markers__item";return{[i]:!0,[`${i}--category-${Le.kebabCase(e)}`]:e!==null,[`${i}--category-${n}n`]:e!==null,[`${i}--cursored`]:this.markerCursor===r,[`${i}--identifier-${Le.kebabCase(r)}`]:r!==null,[`${i}--highlighted`]:this.categoryHighlight===e}},markerPathFunction(t){return Le.isFunction(this.markerPath)?this.markerPath(t):this.markerPath},markerColorFunction({color:t,...e}){return t||(Le.isFunction(this.markerColor)?this.markerColor(e):this.markerColor)},markerWidthFunction(t){return Le.isFunction(this.markerWidth)?this.markerWidth(t):this.markerWidth},markerLabel(t){return Le.get(t,this.labelObjectsPath)},markerTransform(t){const{latitude:e,longitude:n}=t,{height:r,width:i}=this.markerBoundingClientRect(t),[a,o]=this.mapProjection([n,e]),s=this.markerWidthFunction(t)/Math.max(1,i),l=a-i/2*s,c=o-r/2*s;return`translate(${l}, ${c}) scale(${s})`},async featureClicked(t,e){this.$emit("click",e),this.clickable&&(await this.setFeatureZoom(e,Ei(t,this.map.node())),this.$emit("zoomed",e))},resetZoom(){this.map.style("--map-scale",1).transition().duration(this.transitionDuration).call(this.mapZoom.transform,nu),this.$emit("reset")},setMarkersClasses(){this.map.selectAll(".symbol-map__main__markers__item").attr("class",this.markerClass)},setFeatureZoom(t,e=[0,0]){const{height:n,width:r}=this.mapRect,[[i,a],[o,s]]=this.featurePath.bounds(t),l=Math.min(8,.9/Math.max((o-i)/r,(s-a)/n)),c=-(i+o)/2,d=-(a+s)/2,f=nu.translate(r/2,n/2).scale(l).translate(c,d);return this.map.style("--map-scale",l).transition().duration(this.transitionDuration).call(this.mapZoom.transform,f,e).end()}}};var ert=function(){var e=this,n=e._self._c;return n("div",{staticClass:"symbol-map",class:e.mapClass},[e._t("legend",function(){return[!e.hideLegend&&e.legendData?n("ordinal-legend",{attrs:{data:e.legendData,highlight:e.categoryHighlight,horizontal:e.horizontalLegend,"marker-path":e.markerPath,"category-objects-path":"label"},on:{"update:highlight":function(r){e.categoryHighlight=r}},scopedSlots:e._u([{key:"marker",fn:function(r){return[e._t("legend-marker",null,null,r)]}},{key:"label",fn:function(r){return[e._t("legend-label",null,null,r)]}}],null,!0)}):e._e()]},null,{legendData:e.legendData}),n("svg",{staticClass:"symbol-map__main"}),e.tooltipTarget?n("b-tooltip",{ref:"marker-tooltip",attrs:{"custom-class":e.tooltipCustomClass,"fallback-placement":e.tooltipFallbackPlacement,placement:e.tooltipPlacement,target:e.tooltipTarget}},[e._t("tooltip",function(){return[e._v(" "+e._s(e.markerLabel(e.markerCursorValue))+" ")]},null,{markerCursor:e.markerCursor,...e.markerCursorValue})],2):e._e()],2)},trt=[],nrt=mt(Jnt,ert,trt,!1,null,"ac2bb09a",null,null);const rrt=nrt.exports,mY=Object.freeze(Object.defineProperty({__proto__:null,ChoroplethMap:Znt,SymbolMap:rrt},Symbol.toStringTag,{value:"Module"}));class lC{static get i18n(){return sa}static get config(){return $n}static get components(){return JA}static setLocaleMessage(e,n){return this.i18n.setLocaleMessage(e,n)}static mergeLocaleMessage(e,n){return this.i18n.mergeLocaleMessage(e,n)}static setLocale(e){return this.i18n.locale=e}static getLocale(){return this.i18n.locale}static install(e){e.prototype.$config=lC.config,Object.keys(JA).forEach(n=>e.component(n,JA[n])),Object.keys(pY).forEach(n=>e.component(n,pY[n])),Object.keys(mY).forEach(n=>e.component(n,mY[n]))}}/*!
* vuex v3.6.2
* (c) 2021 Evan You
* @license MIT
- */function irt(t){var e=Number(t.version.split(".")[0]);if(e>=2)t.mixin({beforeCreate:r});else{var n=t.prototype._init;t.prototype._init=function(i){i===void 0&&(i={}),i.init=i.init?[r].concat(i.init):r,n.call(this,i)}}function r(){var i=this.$options;i.store?this.$store=typeof i.store=="function"?i.store():i.store:i.parent&&i.parent.$store&&(this.$store=i.parent.$store)}}var art=typeof window<"u"?window:typeof global<"u"?global:{},Bp=art.__VUE_DEVTOOLS_GLOBAL_HOOK__;function ort(t){Bp&&(t._devtoolHook=Bp,Bp.emit("vuex:init",t),Bp.on("vuex:travel-to-state",function(e){t.replaceState(e)}),t.subscribe(function(e,n){Bp.emit("vuex:mutation",e,n)},{prepend:!0}),t.subscribeAction(function(e,n){Bp.emit("vuex:action",e,n)},{prepend:!0}))}function srt(t,e){return t.filter(e)[0]}function BP(t,e){if(e===void 0&&(e=[]),t===null||typeof t!="object")return t;var n=srt(e,function(i){return i.original===t});if(n)return n.copy;var r=Array.isArray(t)?[]:{};return e.push({original:t,copy:r}),Object.keys(t).forEach(function(i){r[i]=BP(t[i],e)}),r}function hm(t,e){Object.keys(t).forEach(function(n){return e(t[n],n)})}function Moe(t){return t!==null&&typeof t=="object"}function lrt(t){return t&&typeof t.then=="function"}function crt(t,e){return function(){return t(e)}}var Wo=function(e,n){this.runtime=n,this._children=Object.create(null),this._rawModule=e;var r=e.state;this.state=(typeof r=="function"?r():r)||{}},Poe={namespaced:{configurable:!0}};Poe.namespaced.get=function(){return!!this._rawModule.namespaced};Wo.prototype.addChild=function(e,n){this._children[e]=n};Wo.prototype.removeChild=function(e){delete this._children[e]};Wo.prototype.getChild=function(e){return this._children[e]};Wo.prototype.hasChild=function(e){return e in this._children};Wo.prototype.update=function(e){this._rawModule.namespaced=e.namespaced,e.actions&&(this._rawModule.actions=e.actions),e.mutations&&(this._rawModule.mutations=e.mutations),e.getters&&(this._rawModule.getters=e.getters)};Wo.prototype.forEachChild=function(e){hm(this._children,e)};Wo.prototype.forEachGetter=function(e){this._rawModule.getters&&hm(this._rawModule.getters,e)};Wo.prototype.forEachAction=function(e){this._rawModule.actions&&hm(this._rawModule.actions,e)};Wo.prototype.forEachMutation=function(e){this._rawModule.mutations&&hm(this._rawModule.mutations,e)};Object.defineProperties(Wo.prototype,Poe);var lf=function(e){this.register([],e,!1)};lf.prototype.get=function(e){return e.reduce(function(n,r){return n.getChild(r)},this.root)};lf.prototype.getNamespace=function(e){var n=this.root;return e.reduce(function(r,i){return n=n.getChild(i),r+(n.namespaced?i+"/":"")},"")};lf.prototype.update=function(e){Loe([],this.root,e)};lf.prototype.register=function(e,n,r){var i=this;r===void 0&&(r=!0);var a=new Wo(n,r);if(e.length===0)this.root=a;else{var o=this.get(e.slice(0,-1));o.addChild(e[e.length-1],a)}n.modules&&hm(n.modules,function(s,l){i.register(e.concat(l),s,r)})};lf.prototype.unregister=function(e){var n=this.get(e.slice(0,-1)),r=e[e.length-1],i=n.getChild(r);i&&i.runtime&&n.removeChild(r)};lf.prototype.isRegistered=function(e){var n=this.get(e.slice(0,-1)),r=e[e.length-1];return n?n.hasChild(r):!1};function Loe(t,e,n){if(e.update(n),n.modules)for(var r in n.modules){if(!e.getChild(r))return;Loe(t.concat(r),e.getChild(r),n.modules[r])}}var Zi,Fa=function(e){var n=this;e===void 0&&(e={}),!Zi&&typeof window<"u"&&window.Vue&&Foe(window.Vue);var r=e.plugins;r===void 0&&(r=[]);var i=e.strict;i===void 0&&(i=!1),this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new lf(e),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._watcherVM=new Zi,this._makeLocalGettersCache=Object.create(null);var a=this,o=this,s=o.dispatch,l=o.commit;this.dispatch=function(p,m){return s.call(a,p,m)},this.commit=function(p,m,h){return l.call(a,p,m,h)},this.strict=i;var c=this._modules.root.state;cC(this,c,[],this._modules.root),z$(this,c),r.forEach(function(f){return f(n)});var d=e.devtools!==void 0?e.devtools:Zi.config.devtools;d&&ort(this)},V$={state:{configurable:!0}};V$.state.get=function(){return this._vm._data.$$state};V$.state.set=function(t){};Fa.prototype.commit=function(e,n,r){var i=this,a=fO(e,n,r),o=a.type,s=a.payload,l={type:o,payload:s},c=this._mutations[o];c&&(this._withCommit(function(){c.forEach(function(f){f(s)})}),this._subscribers.slice().forEach(function(d){return d(l,i.state)}))};Fa.prototype.dispatch=function(e,n){var r=this,i=fO(e,n),a=i.type,o=i.payload,s={type:a,payload:o},l=this._actions[a];if(l){try{this._actionSubscribers.slice().filter(function(d){return d.before}).forEach(function(d){return d.before(s,r.state)})}catch{}var c=l.length>1?Promise.all(l.map(function(d){return d(o)})):l[0](o);return new Promise(function(d,f){c.then(function(p){try{r._actionSubscribers.filter(function(m){return m.after}).forEach(function(m){return m.after(s,r.state)})}catch{}d(p)},function(p){try{r._actionSubscribers.filter(function(m){return m.error}).forEach(function(m){return m.error(s,r.state,p)})}catch{}f(p)})})}};Fa.prototype.subscribe=function(e,n){return koe(e,this._subscribers,n)};Fa.prototype.subscribeAction=function(e,n){var r=typeof e=="function"?{before:e}:e;return koe(r,this._actionSubscribers,n)};Fa.prototype.watch=function(e,n,r){var i=this;return this._watcherVM.$watch(function(){return e(i.state,i.getters)},n,r)};Fa.prototype.replaceState=function(e){var n=this;this._withCommit(function(){n._vm._data.$$state=e})};Fa.prototype.registerModule=function(e,n,r){r===void 0&&(r={}),typeof e=="string"&&(e=[e]),this._modules.register(e,n),cC(this,this.state,e,this._modules.get(e),r.preserveState),z$(this,this.state)};Fa.prototype.unregisterModule=function(e){var n=this;typeof e=="string"&&(e=[e]),this._modules.unregister(e),this._withCommit(function(){var r=q$(n.state,e.slice(0,-1));Zi.delete(r,e[e.length-1])}),$oe(this)};Fa.prototype.hasModule=function(e){return typeof e=="string"&&(e=[e]),this._modules.isRegistered(e)};Fa.prototype.hotUpdate=function(e){this._modules.update(e),$oe(this,!0)};Fa.prototype._withCommit=function(e){var n=this._committing;this._committing=!0,e(),this._committing=n};Object.defineProperties(Fa.prototype,V$);function koe(t,e,n){return e.indexOf(t)<0&&(n&&n.prepend?e.unshift(t):e.push(t)),function(){var r=e.indexOf(t);r>-1&&e.splice(r,1)}}function $oe(t,e){t._actions=Object.create(null),t._mutations=Object.create(null),t._wrappedGetters=Object.create(null),t._modulesNamespaceMap=Object.create(null);var n=t.state;cC(t,n,[],t._modules.root,!0),z$(t,n,e)}function z$(t,e,n){var r=t._vm;t.getters={},t._makeLocalGettersCache=Object.create(null);var i=t._wrappedGetters,a={};hm(i,function(s,l){a[l]=crt(s,t),Object.defineProperty(t.getters,l,{get:function(){return t._vm[l]},enumerable:!0})});var o=Zi.config.silent;Zi.config.silent=!0,t._vm=new Zi({data:{$$state:e},computed:a}),Zi.config.silent=o,t.strict&&mrt(t),r&&(n&&t._withCommit(function(){r._data.$$state=null}),Zi.nextTick(function(){return r.$destroy()}))}function cC(t,e,n,r,i){var a=!n.length,o=t._modules.getNamespace(n);if(r.namespaced&&(t._modulesNamespaceMap[o],t._modulesNamespaceMap[o]=r),!a&&!i){var s=q$(e,n.slice(0,-1)),l=n[n.length-1];t._withCommit(function(){Zi.set(s,l,r.state)})}var c=r.context=urt(t,o,n);r.forEachMutation(function(d,f){var p=o+f;frt(t,p,d,c)}),r.forEachAction(function(d,f){var p=d.root?f:o+f,m=d.handler||d;prt(t,p,m,c)}),r.forEachGetter(function(d,f){var p=o+f;_rt(t,p,d,c)}),r.forEachChild(function(d,f){cC(t,e,n.concat(f),d,i)})}function urt(t,e,n){var r=e==="",i={dispatch:r?t.dispatch:function(a,o,s){var l=fO(a,o,s),c=l.payload,d=l.options,f=l.type;return(!d||!d.root)&&(f=e+f),t.dispatch(f,c)},commit:r?t.commit:function(a,o,s){var l=fO(a,o,s),c=l.payload,d=l.options,f=l.type;(!d||!d.root)&&(f=e+f),t.commit(f,c,d)}};return Object.defineProperties(i,{getters:{get:r?function(){return t.getters}:function(){return drt(t,e)}},state:{get:function(){return q$(t.state,n)}}}),i}function drt(t,e){if(!t._makeLocalGettersCache[e]){var n={},r=e.length;Object.keys(t.getters).forEach(function(i){if(i.slice(0,r)===e){var a=i.slice(r);Object.defineProperty(n,a,{get:function(){return t.getters[i]},enumerable:!0})}}),t._makeLocalGettersCache[e]=n}return t._makeLocalGettersCache[e]}function frt(t,e,n,r){var i=t._mutations[e]||(t._mutations[e]=[]);i.push(function(o){n.call(t,r.state,o)})}function prt(t,e,n,r){var i=t._actions[e]||(t._actions[e]=[]);i.push(function(o){var s=n.call(t,{dispatch:r.dispatch,commit:r.commit,getters:r.getters,state:r.state,rootGetters:t.getters,rootState:t.state},o);return lrt(s)||(s=Promise.resolve(s)),t._devtoolHook?s.catch(function(l){throw t._devtoolHook.emit("vuex:error",l),l}):s})}function _rt(t,e,n,r){t._wrappedGetters[e]||(t._wrappedGetters[e]=function(a){return n(r.state,r.getters,a.state,a.getters)})}function mrt(t){t._vm.$watch(function(){return this._data.$$state},function(){},{deep:!0,sync:!0})}function q$(t,e){return e.reduce(function(n,r){return n[r]},t)}function fO(t,e,n){return Moe(t)&&t.type&&(n=e,e=t,t=t.type),{type:t,payload:e,options:n}}function Foe(t){Zi&&t===Zi||(Zi=t,irt(Zi))}var W$=dC(function(t,e){var n={};return uC(e).forEach(function(r){var i=r.key,a=r.val;n[i]=function(){var s=this.$store.state,l=this.$store.getters;if(t){var c=fC(this.$store,"mapState",t);if(!c)return;s=c.context.state,l=c.context.getters}return typeof a=="function"?a.call(this,s,l):s[a]},n[i].vuex=!0}),n}),Boe=dC(function(t,e){var n={};return uC(e).forEach(function(r){var i=r.key,a=r.val;n[i]=function(){for(var s=[],l=arguments.length;l--;)s[l]=arguments[l];var c=this.$store.commit;if(t){var d=fC(this.$store,"mapMutations",t);if(!d)return;c=d.context.commit}return typeof a=="function"?a.apply(this,[c].concat(s)):c.apply(this.$store,[a].concat(s))}}),n}),Uoe=dC(function(t,e){var n={};return uC(e).forEach(function(r){var i=r.key,a=r.val;a=t+a,n[i]=function(){if(!(t&&!fC(this.$store,"mapGetters",t)))return this.$store.getters[a]},n[i].vuex=!0}),n}),Goe=dC(function(t,e){var n={};return uC(e).forEach(function(r){var i=r.key,a=r.val;n[i]=function(){for(var s=[],l=arguments.length;l--;)s[l]=arguments[l];var c=this.$store.dispatch;if(t){var d=fC(this.$store,"mapActions",t);if(!d)return;c=d.context.dispatch}return typeof a=="function"?a.apply(this,[c].concat(s)):c.apply(this.$store,[a].concat(s))}}),n}),hrt=function(t){return{mapState:W$.bind(null,t),mapGetters:Uoe.bind(null,t),mapMutations:Boe.bind(null,t),mapActions:Goe.bind(null,t)}};function uC(t){return grt(t)?Array.isArray(t)?t.map(function(e){return{key:e,val:e}}):Object.keys(t).map(function(e){return{key:e,val:t[e]}}):[]}function grt(t){return Array.isArray(t)||Moe(t)}function dC(t){return function(e,n){return typeof e!="string"?(n=e,e=""):e.charAt(e.length-1)!=="/"&&(e+="/"),t(e,n)}}function fC(t,e,n){var r=t._modulesNamespaceMap[n];return r}function vrt(t){t===void 0&&(t={});var e=t.collapsed;e===void 0&&(e=!0);var n=t.filter;n===void 0&&(n=function(d,f,p){return!0});var r=t.transformer;r===void 0&&(r=function(d){return d});var i=t.mutationTransformer;i===void 0&&(i=function(d){return d});var a=t.actionFilter;a===void 0&&(a=function(d,f){return!0});var o=t.actionTransformer;o===void 0&&(o=function(d){return d});var s=t.logMutations;s===void 0&&(s=!0);var l=t.logActions;l===void 0&&(l=!0);var c=t.logger;return c===void 0&&(c=console),function(d){var f=BP(d.state);typeof c>"u"||(s&&d.subscribe(function(p,m){var h=BP(m);if(n(p,f,h)){var g=vY(),E=i(p),S="mutation "+p.type+g;hY(c,S,e),c.log("%c prev state","color: #9E9E9E; font-weight: bold",r(f)),c.log("%c mutation","color: #03A9F4; font-weight: bold",E),c.log("%c next state","color: #4CAF50; font-weight: bold",r(h)),gY(c)}f=h}),l&&d.subscribeAction(function(p,m){if(a(p,m)){var h=vY(),g=o(p),E="action "+p.type+h;hY(c,E,e),c.log("%c action","color: #03A9F4; font-weight: bold",g),gY(c)}}))}}function hY(t,e,n){var r=n?t.groupCollapsed:t.group;try{r.call(t,e)}catch{t.log(e)}}function gY(t){try{t.groupEnd()}catch{t.log("—— log end ——")}}function vY(){var t=new Date;return" @ "+ry(t.getHours(),2)+":"+ry(t.getMinutes(),2)+":"+ry(t.getSeconds(),2)+"."+ry(t.getMilliseconds(),3)}function brt(t,e){return new Array(e+1).join(t)}function ry(t,e){return brt("0",e-t.toString().length)+t}var Ert={Store:Fa,install:Foe,version:"3.6.2",mapState:W$,mapMutations:Boe,mapGetters:Uoe,mapActions:Goe,createNamespacedHelpers:hrt,createLogger:vrt};const Hoe=Ert;J.use(Hoe);const Srt=new Hoe.Store({state:{collapseMenu:!0},mutations:{toggleMenu(t){t.collapseMenu=!t.collapseMenu},collapseMenu(t){t.collapseMenu=!0},showMenu(t){t.collapseMenu=!1}}});function yrt(t,e,n){var r=-1,i=t.length;e<0&&(e=-e>i?0:i+e),n=n>i?i:n,n<0&&(n+=i),i=e>n?0:n-e>>>0,e>>>=0;for(var a=Array(i);++r=r?t:Ort(t,e,n)}var Rrt=Crt,Nrt="\\ud800-\\udfff",Art="\\u0300-\\u036f",wrt="\\ufe20-\\ufe2f",Irt="\\u20d0-\\u20ff",Drt=Art+wrt+Irt,xrt="\\ufe0e\\ufe0f",Mrt="\\u200d",Prt=RegExp("["+Mrt+Nrt+Drt+xrt+"]");function Lrt(t){return Prt.test(t)}var Yoe=Lrt;function krt(t){return t.split("")}var $rt=krt,Voe="\\ud800-\\udfff",Frt="\\u0300-\\u036f",Brt="\\ufe20-\\ufe2f",Urt="\\u20d0-\\u20ff",Grt=Frt+Brt+Urt,Hrt="\\ufe0e\\ufe0f",Yrt="["+Voe+"]",UP="["+Grt+"]",GP="\\ud83c[\\udffb-\\udfff]",Vrt="(?:"+UP+"|"+GP+")",zoe="[^"+Voe+"]",qoe="(?:\\ud83c[\\udde6-\\uddff]){2}",Woe="[\\ud800-\\udbff][\\udc00-\\udfff]",zrt="\\u200d",Koe=Vrt+"?",joe="["+Hrt+"]?",qrt="(?:"+zrt+"(?:"+[zoe,qoe,Woe].join("|")+")"+joe+Koe+")*",Wrt=joe+Koe+qrt,Krt="(?:"+[zoe+UP+"?",UP,qoe,Woe,Yrt].join("|")+")",jrt=RegExp(GP+"(?="+GP+")|"+Krt+Wrt,"g");function Qrt(t){return t.match(jrt)||[]}var Xrt=Qrt,Zrt=$rt,Jrt=Yoe,eit=Xrt;function tit(t){return Jrt(t)?eit(t):Zrt(t)}var nit=tit,rit=Rrt,iit=Yoe,ait=nit,oit=mb;function sit(t){return function(e){e=oit(e);var n=iit(e)?ait(e):void 0,r=n?n[0]:e.charAt(0),i=n?rit(n,1).join(""):e.slice(1);return r[t]()+i}}var lit=sit,cit=lit,uit=cit("toUpperCase"),dit=uit,fit=Noe,pit=dit,_it=fit(function(t,e,n){return t+(n?" ":"")+pit(e)}),Qoe=_it;const mit={name:"DocsMenu",computed:{title(){return jn(this,"$route.meta.title","")},section(){return jn(this,"$route.meta.section")},breadcrumb(){return jn(this,"$route.meta.breadcrumb",[this.section]).map(Qoe)},description(){return jn(this,"$route.meta.description","")},showHeader(){return this.title!==""},showBreadcrumb(){return this.breadcrumb.length>0}}};var hit=function(){var e=this,n=e._self._c;return e.showHeader?n("div",{staticClass:"docs-header"},[n("div",{staticClass:"docs-header__container"},[e.showBreadcrumb?n("div",{staticClass:"docs-header__container__breadcrumb"},e._l(e.breadcrumb,function(r,i){return n("a",{key:i,staticClass:"docs-header__container__breadcrumb"},[e._v(" "+e._s(r)+" ")])}),0):e._e(),n("h1",{staticClass:"docs-header__container__title"},[e._v(" "+e._s(e.title)+" ")]),n("p",{staticClass:"lead m-0"},[e._v(" "+e._s(e.description)+" ")])])]):e._e()},git=[],vit=mt(mit,hit,git,!1,null,"25837ed6",null,null);const bit=vit.exports;var K$={};(function(t){Object.defineProperty(t,"__esModule",{value:!0});var e="fas",n="puzzle-piece",r=512,i=512,a=[129513],o="f12e",s="M192 104.8c0-9.2-5.8-17.3-13.2-22.8C167.2 73.3 160 61.3 160 48c0-26.5 28.7-48 64-48s64 21.5 64 48c0 13.3-7.2 25.3-18.8 34c-7.4 5.5-13.2 13.6-13.2 22.8c0 12.8 10.4 23.2 23.2 23.2H336c26.5 0 48 21.5 48 48v56.8c0 12.8 10.4 23.2 23.2 23.2c9.2 0 17.3-5.8 22.8-13.2c8.7-11.6 20.7-18.8 34-18.8c26.5 0 48 28.7 48 64s-21.5 64-48 64c-13.3 0-25.3-7.2-34-18.8c-5.5-7.4-13.6-13.2-22.8-13.2c-12.8 0-23.2 10.4-23.2 23.2V464c0 26.5-21.5 48-48 48H279.2c-12.8 0-23.2-10.4-23.2-23.2c0-9.2 5.8-17.3 13.2-22.8c11.6-8.7 18.8-20.7 18.8-34c0-26.5-28.7-48-64-48s-64 21.5-64 48c0 13.3 7.2 25.3 18.8 34c7.4 5.5 13.2 13.6 13.2 22.8c0 12.8-10.4 23.2-23.2 23.2H48c-26.5 0-48-21.5-48-48V343.2C0 330.4 10.4 320 23.2 320c9.2 0 17.3 5.8 22.8 13.2C54.7 344.8 66.7 352 80 352c26.5 0 48-28.7 48-64s-21.5-64-48-64c-13.3 0-25.3 7.2-34 18.8C40.5 250.2 32.4 256 23.2 256C10.4 256 0 245.6 0 232.8V176c0-26.5 21.5-48 48-48H168.8c12.8 0 23.2-10.4 23.2-23.2z";t.definition={prefix:e,iconName:n,icon:[r,i,a,o,s]},t.faPuzzlePiece=t.definition,t.prefix=e,t.iconName=n,t.width=r,t.height=i,t.ligatures=a,t.unicode=o,t.svgPathData=s,t.aliases=a})(K$);var j$={};(function(t){Object.defineProperty(t,"__esModule",{value:!0});var e="fab",n="github",r=496,i=512,a=[],o="f09b",s="M165.9 397.4c0 2-2.3 3.6-5.2 3.6-3.3.3-5.6-1.3-5.6-3.6 0-2 2.3-3.6 5.2-3.6 3-.3 5.6 1.3 5.6 3.6zm-31.1-4.5c-.7 2 1.3 4.3 4.3 4.9 2.6 1 5.6 0 6.2-2s-1.3-4.3-4.3-5.2c-2.6-.7-5.5.3-6.2 2.3zm44.2-1.7c-2.9.7-4.9 2.6-4.6 4.9.3 2 2.9 3.3 5.9 2.6 2.9-.7 4.9-2.6 4.6-4.6-.3-1.9-3-3.2-5.9-2.9zM244.8 8C106.1 8 0 113.3 0 252c0 110.9 69.8 205.8 169.5 239.2 12.8 2.3 17.3-5.6 17.3-12.1 0-6.2-.3-40.4-.3-61.4 0 0-70 15-84.7-29.8 0 0-11.4-29.1-27.8-36.6 0 0-22.9-15.7 1.6-15.4 0 0 24.9 2 38.6 25.8 21.9 38.6 58.6 27.5 72.9 20.9 2.3-16 8.8-27.1 16-33.7-55.9-6.2-112.3-14.3-112.3-110.5 0-27.5 7.6-41.3 23.6-58.9-2.6-6.5-11.1-33.3 2.6-67.9 20.9-6.5 69 27 69 27 20-5.6 41.5-8.5 62.8-8.5s42.8 2.9 62.8 8.5c0 0 48.1-33.6 69-27 13.7 34.7 5.2 61.4 2.6 67.9 16 17.7 25.8 31.5 25.8 58.9 0 96.5-58.9 104.2-114.8 110.5 9.2 7.9 17 22.9 17 46.4 0 33.7-.3 75.4-.3 83.6 0 6.5 4.6 14.4 17.3 12.1C428.2 457.8 496 362.9 496 252 496 113.3 383.5 8 244.8 8zM97.2 352.9c-1.3 1-1 3.3.7 5.2 1.6 1.6 3.9 2.3 5.2 1 1.3-1 1-3.3-.7-5.2-1.6-1.6-3.9-2.3-5.2-1zm-10.8-8.1c-.7 1.3.3 2.9 2.3 3.9 1.6 1 3.6.7 4.3-.7.7-1.3-.3-2.9-2.3-3.9-2-.6-3.6-.3-4.3.7zm32.4 35.6c-1.6 1.3-1 4.3 1.3 6.2 2.3 2.3 5.2 2.6 6.5 1 1.3-1.3.7-4.3-1.3-6.2-2.2-2.3-5.2-2.6-6.5-1zm-11.4-14.7c-1.6 1-1.6 3.6 0 5.9 1.6 2.3 4.3 3.3 5.6 2.3 1.6-1.3 1.6-3.9 0-6.2-1.4-2.3-4-3.3-5.6-2z";t.definition={prefix:e,iconName:n,icon:[r,i,a,o,s]},t.faGithub=t.definition,t.prefix=e,t.iconName=n,t.width=r,t.height=i,t.ligatures=a,t.unicode=o,t.svgPathData=s,t.aliases=a})(j$);const Eit="modulepreload",Sit=function(t){return"/murmur/"+t},bY={},Ie=function(e,n,r){if(!n||n.length===0)return e();const i=document.getElementsByTagName("link");return Promise.all(n.map(a=>{if(a=Sit(a),a in bY)return;bY[a]=!0;const o=a.endsWith(".css"),s=o?'[rel="stylesheet"]':"";if(!!r)for(let d=i.length-1;d>=0;d--){const f=i[d];if(f.href===a&&(!o||f.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${a}"]${s}`))return;const c=document.createElement("link");if(c.rel=o?"stylesheet":Eit,o||(c.as="script",c.crossOrigin=""),c.href=a,document.head.appendChild(c),o)return new Promise((d,f)=>{c.addEventListener("load",d),c.addEventListener("error",()=>f(new Error(`Unable to preload CSS for ${a}`)))})})).then(()=>e())},yit=[{name:"installation-guide",path:"/getting-started/installation-guide",meta:{section:"getting-started",sectionId:0,order:10,title:"Installation Guide",description:"Murmur is ICIJ's Design System for Bootstrap 4 and Vue.js"}},{name:"custom-bootstrap",path:"/getting-started/custom-bootstrap",meta:{section:"getting-started",sectionId:0,order:20,title:"Customize Boostrap",description:"Use pre-configured variables to build Boostrap."}},{name:"about-icij",path:"/getting-started/about-icij",meta:{section:"getting-started",sectionId:0,order:30,title:"About ICIJ"}},{name:"internationalization",path:"/getting-started/internationalization",meta:{section:"getting-started",sectionId:0,order:30,title:"Internationalization",description:"Translate your components"}},{name:"colors",path:"/visual/colors",meta:{section:"visual",sectionId:1,order:1}},{name:"iconography",path:"/visual/iconography",meta:{section:"visual",sectionId:1,order:1}},{name:"states",path:"/visual/states",meta:{section:"visual",sectionId:1,order:1}},{name:"typography",path:"/visual/typography",meta:{section:"visual",sectionId:1,order:1}},{name:"themes",path:"/visual/themes",meta:{section:"visual",sectionId:1,order:1,badge:"TODO"}},{name:"breakpoints",path:"/structure/breakpoints",meta:{section:"structure",sectionId:2,order:1,badge:"TODO"}},{name:"grid",path:"/structure/grid",meta:{section:"structure",sectionId:2,order:1,badge:"TODO"}},{name:"accordion",path:"/components/accordion",meta:{section:"components",sectionId:3,order:1,title:"Accordion",description:"Display a step by step accordion"}},{name:"active-text-truncate",path:"/components/active-text-truncate",meta:{section:"components",sectionId:3,order:1,title:"Active Text Truncate",description:"Truncate text with an active display of the extended value"}},{name:"advanced-link-form",path:"/components/advanced-link-form",meta:{section:"components",sectionId:3,order:1,title:"Advanced Link Form",description:"A form with tabs to offer several copy formats to users."}},{name:"brand",path:"/components/brand",meta:{section:"components",sectionId:3,order:1,title:"Brand",description:"A component to create variations of ICIJ logo."}},{name:"brand-expansion",path:"/components/brand-expansion",meta:{section:"components",sectionId:3,order:1,title:"Brand Expansion",description:"A component to create variations of ICIJ logo with text"}},{name:"confirm-button",path:"/components/confirm-button",meta:{section:"components",sectionId:3,order:1,title:"Confirm Button"}},{name:"content-placeholder",path:"/components/content-placeholder",meta:{section:"components",sectionId:3,order:1,title:"Content Placeholder"}},{name:"custom-pagination",path:"/components/custom-pagination",meta:{section:"components",sectionId:3,order:1,title:"Custom Pagination",description:"A custom pagination component with the option to jump ahead to a specific page using a form input."}},{name:"digits-input",path:"/components/digits-input",meta:{section:"components",sectionId:3,order:1,title:"Digits Input",description:"An multiple-digits input to"}},{name:"donate-form",path:"/components/donate-form",meta:{section:"components",sectionId:3,order:1,title:"Donate Form",description:"A form to encourage donations.",tags:"depracted"}},{name:"embed-form",path:"/components/embed-form",meta:{section:"components",sectionId:3,order:1,title:"Embed Form"}},{name:"embeddable-footer",path:"/components/embeddable-footer",meta:{section:"components",sectionId:3,order:1}},{name:"follow-us-popover",path:"/components/follow-us-popover",meta:{section:"components",sectionId:3,order:1}},{name:"generic-footer",path:"/components/generic-footer",meta:{section:"components",sectionId:3,order:1,title:"Generic Footer"}},{name:"haptic-copy",path:"/components/haptic-copy",meta:{section:"components",sectionId:3,order:1,title:"Haptic Copy"}},{name:"generic-header",path:"/components/generic-header",meta:{section:"components",sectionId:3,order:1,title:"Generic Header"}},{name:"imddb-header",path:"/components/imddb-header",meta:{section:"components",sectionId:3,order:1,title:"IMDDB Header"}},{name:"ordinal-legend",path:"/components/ordinal-legend",meta:{section:"components",sectionId:3,order:1,badge:"unstable"}},{name:"range-picker",path:"/components/range-picker",meta:{section:"components",sectionId:3,order:1,title:"Range Picker",description:"A component to wrap an HTML element with a range picker overlay."}},{name:"responsive-iframe",path:"/components/responsive-iframe",meta:{section:"components",sectionId:3,order:1,title:"Responsive Iframe"}},{name:"scale-legend",path:"/components/scale-legend",meta:{section:"components",sectionId:3,order:1,badge:"unstable"}},{name:"secret-input",path:"/components/secret-input",meta:{section:"components",sectionId:3,order:1,title:"Secret Input",description:"A input form for secret value that must not be seen."}},{name:"selectable-dropdown",path:"/components/selectable-dropdown",meta:{section:"components",sectionId:3,order:1,title:"Selectable Dropdown"}},{name:"sharing-options",path:"/components/sharing-options",meta:{section:"components",sectionId:3,order:1,title:"Sharing Options"}},{name:"sharing-options-link",path:"/components/sharing-options-link",meta:{section:"components",sectionId:3,order:1,title:"Sharing Options Link"}},{name:"sign-up-form",path:"/components/sign-up-form",meta:{section:"components",sectionId:3,order:1}},{name:"slide-up-down",path:"/components/slide-up-down",meta:{section:"components",sectionId:3,order:1}},{name:"textured-deck",path:"/components/textured-deck",meta:{section:"components",sectionId:3,order:1,badge:"unstable"}},{name:"tiny-pagination",path:"/components/tiny-pagination",meta:{section:"components",sectionId:3,order:1,title:"Tiny Pagination",description:"A tiny pagination component with the option to jump ahead to a specific page using a form input."}},{name:"bars",path:"/datavisualisation/bars",meta:{section:"datavisualisation",sectionId:4,order:1,badge:"unstable"}},{name:"columns",path:"/datavisualisation/columns",meta:{section:"datavisualisation",sectionId:4,order:1}},{name:"lines",path:"/datavisualisation/lines",meta:{section:"datavisualisation",sectionId:4,order:1}},{name:"stacked-bar",path:"/datavisualisation/stacked-bar",meta:{section:"datavisualisation",sectionId:4,order:1}},{name:"stacked-column",path:"/datavisualisation/stacked-column",meta:{section:"datavisualisation",sectionId:4,order:1}},{name:"choropleth-map",path:"/maps/choropleth-map",meta:{section:"maps",sectionId:5,order:1,badge:"unstable"}},{name:"symbol-map",path:"/maps/symbol-map",meta:{section:"maps",sectionId:5,order:1,badge:"unstable"}},{name:"config",path:"/utilities/config",meta:{section:"utilities",sectionId:6,order:0,title:"Configure Murmur"}},{name:"assets",path:"/utilities/assets",meta:{section:"utilities",sectionId:6,order:1}},{name:"iframes",path:"/utilities/iframes",meta:{section:"utilities",sectionId:6,order:1,badge:"TODO"}}],Tit=Object.assign({"./pages/components/accordion/doc.md":()=>Ie(()=>import("./doc-73527f57.js"),["assets/doc-73527f57.js","assets/doc-6d4b06ec.css"]),"./pages/components/active-text-truncate/doc.md":()=>Ie(()=>import("./doc-19718b77.js"),["assets/doc-19718b77.js","assets/doc-6d4b06ec.css"]),"./pages/components/advanced-link-form/doc.md":()=>Ie(()=>import("./doc-af0355ed.js"),[]),"./pages/components/brand-expansion/doc.md":()=>Ie(()=>import("./doc-55ebf5c0.js"),[]),"./pages/components/brand/doc.md":()=>Ie(()=>import("./doc-8f1ff411.js"),[]),"./pages/components/confirm-button/doc.md":()=>Ie(()=>import("./doc-651b6d05.js"),[]),"./pages/components/content-placeholder/doc.md":()=>Ie(()=>import("./doc-dbd9565a.js"),[]),"./pages/components/custom-pagination/doc.md":()=>Ie(()=>import("./doc-585fe816.js"),[]),"./pages/components/digits-input/doc.md":()=>Ie(()=>import("./doc-e703e43e.js"),[]),"./pages/components/donate-form/doc.md":()=>Ie(()=>import("./doc-fb532b29.js"),[]),"./pages/components/embed-form/doc.md":()=>Ie(()=>import("./doc-f6998372.js"),[]),"./pages/components/embeddable-footer/doc.md":()=>Ie(()=>import("./doc-89a4f882.js"),[]),"./pages/components/follow-us-popover/doc.md":()=>Ie(()=>import("./doc-28cf8f67.js"),[]),"./pages/components/generic-footer/doc.md":()=>Ie(()=>import("./doc-bb764e7d.js"),["assets/doc-bb764e7d.js","assets/doc-2ff01a5b.css"]),"./pages/components/generic-header/doc.md":()=>Ie(()=>import("./doc-da1c4e77.js"),["assets/doc-da1c4e77.js","assets/doc-1002588c.css"]),"./pages/components/haptic-copy/doc.md":()=>Ie(()=>import("./doc-6100bd67.js"),[]),"./pages/components/imddb-header/doc.md":()=>Ie(()=>import("./doc-3477b181.js"),["assets/doc-3477b181.js","assets/doc-ffe26a4c.css"]),"./pages/components/ordinal-legend/doc.md":()=>Ie(()=>import("./doc-eab7564c.js"),[]),"./pages/components/range-picker/doc.md":()=>Ie(()=>import("./doc-eb5312b8.js"),[]),"./pages/components/responsive-iframe/doc.md":()=>Ie(()=>import("./doc-301208df.js"),[]),"./pages/components/scale-legend/doc.md":()=>Ie(()=>import("./doc-e813557a.js"),[]),"./pages/components/secret-input/doc.md":()=>Ie(()=>import("./doc-0b47bc96.js"),[]),"./pages/components/selectable-dropdown/doc.md":()=>Ie(()=>import("./doc-8102efe1.js"),[]),"./pages/components/sharing-options-link/doc.md":()=>Ie(()=>import("./doc-eb129e31.js"),[]),"./pages/components/sharing-options/doc.md":()=>Ie(()=>import("./doc-002101c3.js"),[]),"./pages/components/sign-up-form/doc.md":()=>Ie(()=>import("./doc-04712073.js"),[]),"./pages/components/slide-up-down/doc.md":()=>Ie(()=>import("./doc-d27bf130.js"),[]),"./pages/components/textured-deck/doc.md":()=>Ie(()=>import("./doc-d813e036.js"),[]),"./pages/components/tiny-pagination/doc.md":()=>Ie(()=>import("./doc-d251c8a2.js"),[]),"./pages/datavisualisation/bars/doc.md":()=>Ie(()=>import("./doc-5b8ee2fc.js"),[]),"./pages/datavisualisation/columns/doc.md":()=>Ie(()=>import("./doc-160fd5bf.js"),[]),"./pages/datavisualisation/lines/doc.md":()=>Ie(()=>import("./doc-7776b73e.js"),[]),"./pages/datavisualisation/stacked-bar/doc.md":()=>Ie(()=>import("./doc-476e5ba8.js"),[]),"./pages/datavisualisation/stacked-column/doc.md":()=>Ie(()=>import("./doc-b92c707d.js"),[]),"./pages/getting-started/about-icij/doc.md":()=>Ie(()=>import("./doc-156b1e20.js"),[]),"./pages/getting-started/custom-bootstrap/doc.md":()=>Ie(()=>import("./doc-9d3f4b82.js"),[]),"./pages/getting-started/installation-guide/doc.md":()=>Ie(()=>import("./doc-418aa573.js"),[]),"./pages/getting-started/internationalization/doc.md":()=>Ie(()=>import("./doc-f85710d3.js"),[]),"./pages/maps/choropleth-map/doc.md":()=>Ie(()=>import("./doc-1a98ab45.js"),[]),"./pages/maps/symbol-map/doc.md":()=>Ie(()=>import("./doc-13446cc7.js"),["assets/doc-13446cc7.js","assets/doc-b51da2e7.css"]),"./pages/structure/breakpoints/doc.md":()=>Ie(()=>import("./doc-725bf8dc.js"),[]),"./pages/structure/grid/doc.md":()=>Ie(()=>import("./doc-4ca301c6.js"),[]),"./pages/utilities/assets/doc.md":()=>Ie(()=>import("./doc-c2947fc9.js"),[]),"./pages/utilities/config/doc.md":()=>Ie(()=>import("./doc-a4686e10.js"),[]),"./pages/utilities/iframes/doc.md":()=>Ie(()=>import("./doc-4f5df316.js"),[]),"./pages/visual/colors/doc.md":()=>Ie(()=>import("./doc-8c11d6b9.js"),["assets/doc-8c11d6b9.js","assets/variables-84628c43.js"]),"./pages/visual/iconography/doc.md":()=>Ie(()=>import("./doc-ce6819f0.js"),[]),"./pages/visual/states/doc.md":()=>Ie(()=>import("./doc-4085872b.js"),[]),"./pages/visual/themes/doc.md":()=>Ie(()=>import("./doc-2606feff.js"),[]),"./pages/visual/typography/doc.md":()=>Ie(()=>import("./doc-9ef94005.js"),["assets/doc-9ef94005.js","assets/variables-84628c43.js"])});function Oit(t,e){return Tit[`./pages/${t}/${e}/doc.md`]}function Up(t={}){return MP(Xoe,t)}const Xoe=[{path:"/",redirect:"/getting-started/installation-guide"},...yit.map(t=>{const e=Oit(t.meta.section,t.name);return{...t,component:e}})],Cit=Xoe;var Q$={};(function(t){Object.defineProperty(t,"__esModule",{value:!0});var e="fas",n="angle-down",r=448,i=512,a=[8964],o="f107",s="M201.4 374.6c12.5 12.5 32.8 12.5 45.3 0l160-160c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L224 306.7 86.6 169.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l160 160z";t.definition={prefix:e,iconName:n,icon:[r,i,a,o,s]},t.faAngleDown=t.definition,t.prefix=e,t.iconName=n,t.width=r,t.height=i,t.ligatures=a,t.unicode=o,t.svgPathData=s,t.aliases=a})(Q$);var X$={};(function(t){Object.defineProperty(t,"__esModule",{value:!0});var e="fas",n="angle-up",r=448,i=512,a=[8963],o="f106",s="M201.4 137.4c12.5-12.5 32.8-12.5 45.3 0l160 160c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L224 205.3 86.6 342.6c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3l160-160z";t.definition={prefix:e,iconName:n,icon:[r,i,a,o,s]},t.faAngleUp=t.definition,t.prefix=e,t.iconName=n,t.width=r,t.height=i,t.ligatures=a,t.unicode=o,t.svgPathData=s,t.aliases=a})(X$);var Z$={};(function(t){Object.defineProperty(t,"__esModule",{value:!0});var e="fas",n="book",r=448,i=512,a=[128212],o="f02d",s="M96 0C43 0 0 43 0 96V416c0 53 43 96 96 96H384h32c17.7 0 32-14.3 32-32s-14.3-32-32-32V384c17.7 0 32-14.3 32-32V32c0-17.7-14.3-32-32-32H384 96zm0 384H352v64H96c-17.7 0-32-14.3-32-32s14.3-32 32-32zm32-240c0-8.8 7.2-16 16-16H336c8.8 0 16 7.2 16 16s-7.2 16-16 16H144c-8.8 0-16-7.2-16-16zm16 48H336c8.8 0 16 7.2 16 16s-7.2 16-16 16H144c-8.8 0-16-7.2-16-16s7.2-16 16-16z";t.definition={prefix:e,iconName:n,icon:[r,i,a,o,s]},t.faBook=t.definition,t.prefix=e,t.iconName=n,t.width=r,t.height=i,t.ligatures=a,t.unicode=o,t.svgPathData=s,t.aliases=a})(Z$);Fr.add(Q$.faAngleDown);Fr.add(X$.faAngleUp);Fr.add(Z$.faBook);const Rit={name:"DocsMenuSection",components:{Fa:jr},props:{name:{type:String,default:""},routes:{type:Array,default:()=>[]},icon:{type:Object,default:()=>Z$.faBook}},data(){return{showMenu:this.hasActiveRoute}},computed:{active(){return this.showMenu},hasActiveRoute(){return poe(this.routes,t=>t.path===this.$route.path)},headingIcon(){return this.showMenu?X$.faAngleUp:Q$.faAngleDown}},watch:{$route(){this.showMenu=this.hasActiveRoute}},methods:{routeTitle(t){return t.meta.title||Qoe(t.name)},routeHasBadge(t){return t.meta&&t.meta.badge}}};var Nit=function(){var e=this,n=e._self._c;return n("div",{staticClass:"docs-menu__section pb-2",class:{"docs-menu__section--show-menu":e.showMenu}},[n("h4",{staticClass:"docs-menu__section__heading",on:{click:function(r){e.showMenu=!e.showMenu}}},[n("fa",{staticClass:"float-right",attrs:{icon:e.headingIcon}}),e._v(" "+e._s(e.name)+" ")],1),n("b-collapse",{staticClass:"list-unstyled mb-0 pb-4",attrs:{visible:e.active,tag:"ul"}},e._l(e.routes,function(r){return n("li",{key:r.name,staticClass:"docs-menu__section__item d-flex justify-content-between align-items-center mb-2"},[n("router-link",{staticClass:"docs-menu__link",attrs:{to:r.path}},[n("fa",{staticClass:"docs-menu__link__icon mr-1",attrs:{icon:r.icon||e.icon}}),e._v(" "+e._s(e.routeTitle(r))+" ")],1),e.routeHasBadge(r)?n("span",{staticClass:"badge badge-secondary docs-menu__badge"},[e._v(" "+e._s(r.meta.badge)+" ")]):e._e()],1)}),0)],1)},Ait=[],wit=mt(Rit,Nit,Ait,!1,null,null,null,null);const Iit=wit.exports,Dit="@icij/murmur",xit="3.9.4",Mit="Murmur is ICIJ's Design System for Bootstrap 4 and Vue.js",Pit="promera@icij.org",Lit="module",kit={serve:"vite dev",build:"yarn build:lib && yarn build:docs","build:lib":"vite build","build:docs":"vite build --config vite.docs.config.js","test:unit":"vitest --run",lint:"eslint --ext .js,.vue --ignore-path .gitignore --fix lib","lint:fix":"yarn run lint --fix",deploy:"node deploy.js",postpublish:"yarn deploy",prepublishOnly:"yarn build:lib",predeploy:"yarn build:docs","test:unit:watch":"vitest"},$it="./dist/lib/murmur.umd.cjs",Fit="./dist/lib/murmur.js",Bit=["lib/**/*","dist/lib/**/*"],Uit={".":{import:"./dist/lib/murmur.js",require:"./dist/lib/murmur.umd.cjs"},"./lib/":"./lib/","./dist/":"./dist/"},Git={"@fortawesome/fontawesome":"^1.1.4","@fortawesome/fontawesome-svg-core":"^6.4.2","@fortawesome/free-brands-svg-icons":"^6.1.2","@fortawesome/free-regular-svg-icons":"^6.1.2","@fortawesome/free-solid-svg-icons":"^6.1.2","@fortawesome/vue-fontawesome":"^2.0.8",bootstrap:"^4.6.2",clipboard:"^2.0.11",d3:"7.6.1","d3-geo-projection":"^4.0.0",jsonp:"^0.2.1",lodash:"4.17.21","mutationobserver-shim":"^0.3.7","querystring-es3":"^0.2.1","resize-observer-polyfill":"^1.5.1",topojson:"^3.0.2","vue-class-component":"^7.2.3","vue-headroom":"^0.10.1","vue-property-decorator":"^9.1.2","vue-virtual-scroller":"^1.0.10"},Hit={"@icij/eslint-config":"^1.1.0","@kazupon/vue-i18n-loader":"^0.5.0","@types/d3":"^7.4.1","@types/jsonp":"^0.2.1","@types/lodash":"^4.14.186","@types/markdown-it-highlightjs":"^3.3.2","@types/pym.js":"^1.3.0","@typescript-eslint/eslint-plugin":"^5.4.0","@typescript-eslint/parser":"^5.4.0","@vitejs/plugin-vue":"^4.0.0","@vitejs/plugin-vue2":"^2.2.0","@vue/eslint-config-typescript":"^9.1.0","@vue/test-utils":"^1.2.2","bootstrap-vue":"2.22.0",chalk:"^4.1.2","chroma-js":"^2.1.1",csstype:"^3.1.2",eslint:"8","eslint-import-resolver-typescript":"^3.6.1","eslint-plugin-import":"^2.28.1","eslint-plugin-vitest":"^0.3.1","eslint-plugin-vitest-globals":"^1.4.0","eslint-plugin-vue":"8","fast-glob":"^3.2.12","front-matter":"^4.0.2","get-sass-vars":"^3.4.0","gh-pages":"^4.0.0","highlight.js":"^11.2.0",jsdom:"^21.1.0","json-loader":"^0.5.7","loader-utils":"^2.0.0","markdown-it-container":"^3.0.0","markdown-it-highlightjs":"^3.3.1",ora:"^6.1.2",sass:"^1.54.0","sass-loader":"^10.1.0",typescript:"~4.5.5","url-join":"^4.0.1",vite:"^4.0.4","vite-plugin-md":"^0.21.5",vitest:"^0.28.3",vue:"^2.7.14","vue-cli-plugin-i18n":"^2.1.4","vue-docgen-api":"^4.41.2","vue-i18n":"^8.25.1","vue-router":"^3.5.3","vue-template-compiler":"2.7.14",vuex:"^3.6.2"},Yit={"bootstrap-vue":"^2.22.0",vue:"^2.7.14","vue-i18n":"^8.25.1"},Vit={root:!0,env:{"vitest-globals/env":!0,node:!0,es2021:!0},extends:["plugin:vitest/recommended","plugin:vitest-globals/recommended","@icij/eslint-config","@vue/typescript"],rules:{"vue/multi-word-component-names":"off","import/no-named-default":"off"},parserOptions:{parser:"@typescript-eslint/parser"}},zit=["> 1%","last 2 versions","not ie <= 8"],qit={lib:"lib",doc:"docs"},Wit={node:">=16",npm:">=8"},Kit="https://icij.github.io/murmur/",jit="MIT",Qit={type:"git",url:"https://github.com/icij/murmur"},Xit=["*.css","*.scss","*.vue","./docs"],Zit="dist/lib/murmur.css",HP={name:Dit,version:xit,private:!1,description:Mit,author:Pit,type:Lit,scripts:kit,main:$it,module:Fit,files:Bit,exports:Uit,dependencies:Git,devDependencies:Hit,peerDependencies:Yit,eslintConfig:Vit,browserslist:zit,directories:qit,engines:Wit,homepage:Kit,license:jit,repository:Qit,sideEffects:Xit,style:Zit},Jit="/murmur/assets/murmur-white-1a0bd1e2.png";Fr.add(K$.faPuzzlePiece,j$.faGithub);const eat={name:"DocsMenu",components:{DocsMenuSection:Iit,Fa:jr,BrandExpansion:O0,TexturedDeck:foe},props:{sections:{type:Array,default(){return[{name:"Getting started",routes:Up({meta:{section:"getting-started"}})},{name:"Visual guidelines",routes:Up({meta:{section:"visual"}})},{name:"Components",routes:Up({meta:{section:"components"}}),icon:K$.faPuzzlePiece},{name:"Data Visualisations",routes:Up({meta:{section:"datavisualisation"}})},{name:"Maps",routes:Up({meta:{section:"maps"}})},{name:"utilities",routes:Up({meta:{section:"utilities"}})}]}}},data(){return{version:HP.version,repository:HP.repository}}};var tat=function(){var e=this,n=e._self._c;return n("div",{staticClass:"docs-menu d-flex flex-column justify-content-between"},[n("div",[n("div",{staticClass:"docs-menu__brand d-none d-md-flex"},[n("textured-deck",{staticClass:"docs-menu__brand__logo",attrs:{to:"/",tag:"router-link",value:"rock"}},[n("img",{attrs:{src:Jit,alt:"",height:"110px"}})]),n("div",{staticClass:"docs-menu__brand__version"},[n("a",{staticClass:"small d-block text-white",attrs:{href:"https://www.npmjs.com/package/@icij/murmur",target:"_blank"}},[n("strong",[e._v("Murmur")]),e._v(" "+e._s(e.version)+" ")])])],1),e._l(e.sections,function(r){return n("docs-menu-section",e._b({key:r.name},"docs-menu-section",r,!1))})],2),n("div",{staticClass:"docs-menu__footer d-flex align-items-center justify-content-between"},[n("a",{staticClass:"d-flex align-items-center",attrs:{href:"https://icij.org",target:"_blank"}},[n("brand-expansion",{staticClass:"docs-menu__footer__logo mr-2",attrs:{dark:"",mode:"medium",size:"26"}}),n("span",{staticClass:"sr-only"},[e._v("A project by ICIJ")])],1),n("a",{attrs:{href:e.repository.url,target:"_blank"}},[n("fa",{attrs:{icon:["fab","github"],size:"2x"}})],1)])])},nat=[],rat=mt(eat,tat,nat,!1,null,null,null,null);const iat=rat.exports;const aat={props:{route:{type:Object,default:null}},data(){return{faGithub:j$.faGithub}},computed:{path(){return jn(this.route||this.$route,"meta.resourcePath")}}};var oat=function(){var e=this,n=e._self._c;return e.path?n("div",{staticClass:"edit-link mb-4 pt-4"},[n("fa",{attrs:{icon:e.faGithub}}),e._v(" Want to help? "),n("repository-link",{attrs:{path:e.path}},[e._v(" Edit this page on GitHub! ")])],1):e._e()},sat=[],lat=mt(aat,oat,sat,!1,null,null,null,null);const cat=lat.exports,uat="/murmur/assets/murmur-white-8d51a253.svg";const dat={name:"App",components:{DocsHeader:bit,DocsMenu:iat,EditLink:cat},watch:{"$route.name":function(){this.$store.commit("collapseMenu")},collapseMenu:function(){document.body.classList.toggle("modal-open",!this.collapseMenu)}},beforeCreate(){Fr.add(o3.faBars)},computed:{...W$(["collapseMenu"])},methods:{toggleMenu(){this.$store.commit("toggleMenu")}}};var fat=function(){var e=this,n=e._self._c;return n("div",{staticClass:"app",attrs:{id:"app"}},[n("div",{staticClass:"app__navbar d-block d-lg-none bg-dark p-3 clearfix"},[n("router-link",{attrs:{to:"/"}},[n("img",{staticClass:"border border-primary d-inline-block",attrs:{src:uat,alt:"ICIJ",height:"30px"}})]),n("button",{staticClass:"btn btn-link text-white float-right",on:{click:e.toggleMenu}},[n("fa",{attrs:{icon:"bars"}})],1)],1),n("transition",{attrs:{name:"fade"}},[e.collapseMenu?e._e():n("div",{staticClass:"app__overlay",on:{click:e.toggleMenu}})]),n("div",{staticClass:"row no-gutters flex-nowrap"},[n("div",{staticClass:"col app__menu",class:{"app__menu--collapse":e.collapseMenu}},[n("docs-menu")],1),n("div",{staticClass:"col"},[n("div",{staticClass:"app__main"},[n("docs-header"),n("router-view",{staticClass:"app__main__view py-4"}),n("edit-link")],1)])])],1)},pat=[],_at=mt(dat,fat,pat,!1,null,"09c3f8b8",null,null);const mat=_at.exports;const hat={components:{BTabs:Tk,BTab:Ok,BTable:YJ},props:{api:{type:[Object,String],default:()=>{}},path:{type:String,default:null}},methods:{toItems(t={}){return Eb(e3(Ms(t),(e,n)=>(e.push({name:n,...t[n]}),e),[]),"name")},hasItems(t={}){return!!Ms(t).length},codeFormatter(t="—"){return`