(de)
| 2 | ]`),mt=de.charCodeAt(0);function bt(Gr,Xr,xa){arguments.length<3&&(xa=Xr,Xr=null);var da=Pa(Gr,Fe,Xr==null?Mt:ar(Xr),xa);return da.row=function(Ja){return arguments.length?da.response((Xr=Ja)==null?Mt:ar(Ja)):Xr},da}function Mt(Gr){return bt.parse(Gr.responseText)}function ar(Gr){return function(Xr){return bt.parse(Xr.responseText,Gr)}}bt.parse=function(Gr,Xr){var xa;return bt.parseRows(Gr,function(da,Ja){if(xa)return xa(da,Ja-1);var ti=function(Sa){for(var Fa={},Xa=da.length,fi=0;fi<Xa;++fi)Fa[da[fi]]=Sa[fi];return Fa};xa=Xr?function(Sa,Fa){return Xr(ti(Sa),Fa)}:ti})},bt.parseRows=function(Gr,Xr){var xa={},da={},Ja=[],ti=Gr.length,Sa=0,Fa=0,Xa,fi;function ni(){if(Sa>=ti)return da;if(fi)return fi=!1,xa;var sn=Sa;if(Gr.charCodeAt(sn)===34){for(var rn=sn;rn++<ti;)if(Gr.charCodeAt(rn)===34){if(Gr.charCodeAt(rn+1)!==34)break;++rn}Sa=rn+2;var vn=Gr.charCodeAt(rn+1);return vn===13?(fi=!0,Gr.charCodeAt(rn+2)===10&&++Sa):vn===10&&(fi=!0),Gr.slice(sn+1,rn).replace(/""/g,'"')}for(;Sa<ti;){var vn=Gr.charCodeAt(Sa++),Pn=1;if(vn===10)fi=!0;else if(vn===13)fi=!0,Gr.charCodeAt(Sa)===10&&(++Sa,++Pn);else if(vn!==mt)continue;return Gr.slice(sn,Sa-Pn)}return Gr.slice(sn)}for(;(Xa=ni())!==da;){for(var La=[];Xa!==xa&&Xa!==da;)La.push(Xa),Xa=ni();Xr&&(La=Xr(La,Fa++))==null||Ja.push(La)}return Ja},bt.format=function(Gr){if(Array.isArray(Gr[0]))return bt.formatRows(Gr);var Xr=new z,xa=[];return Gr.forEach(function(da){for(var Ja in da)Xr.has(Ja)||xa.push(Xr.add(Ja))}),[xa.map(_r).join(de)].concat(Gr.map(function(da){return xa.map(function(Ja){return _r(da[Ja])}).join(de)})).join(` |
| 3 | `)},bt.formatRows=function(Gr){return Gr.map(Ot).join(` |
| 4 | `)};function Ot(Gr){return Gr.map(_r).join(de)}function _r(Gr){return et.test(Gr)?'"'+Gr.replace(/\"/g,'""')+'"':Gr}return bt},v.csv=v.dsv(",","text/csv"),v.tsv=v.dsv(" ","text/tab-separated-values");var Ta,Ai,ki,Ki,_n=this[O(this,"requestAnimationFrame")]||function(de){setTimeout(de,17)};v.timer=function(){Rn.apply(this,arguments)};function Rn(de,Fe,et){var mt=arguments.length;mt<2&&(Fe=0),mt<3&&(et=Date.now());var bt=et+Fe,Mt={c:de,t:bt,n:null};return Ai?Ai.n=Mt:Ta=Mt,Ai=Mt,ki||(Ki=clearTimeout(Ki),ki=1,_n(En)),Mt}function En(){var de=On(),Fe=no()-de;Fe>24?(isFinite(Fe)&&(clearTimeout(Ki),Ki=setTimeout(En,Fe)),ki=0):(ki=1,_n(En))}v.timer.flush=function(){On(),no()};function On(){for(var de=Date.now(),Fe=Ta;Fe;)de>=Fe.t&&Fe.c(de-Fe.t)&&(Fe.c=null),Fe=Fe.n;return de}function no(){for(var de,Fe=Ta,et=1/0;Fe;)Fe.c?(Fe.t<et&&(et=Fe.t),Fe=(de=Fe).n):Fe=de?de.n=Fe.n:Ta=Fe.n;return Ai=de,et}v.round=function(de,Fe){return Fe?Math.round(de*(Fe=Math.pow(10,Fe)))/Fe:Math.round(de)},v.geom={};function cn(de){return de[0]}function lo(de){return de[1]}v.geom.hull=function(de){var Fe=cn,et=lo;if(arguments.length)return mt(de);function mt(bt){if(bt.length<3)return[];var Mt=Or(Fe),ar=Or(et),Ot,_r=bt.length,Gr=[],Xr=[];for(Ot=0;Ot<_r;Ot++)Gr.push([+Mt.call(this,bt[Ot],Ot),+ar.call(this,bt[Ot],Ot),Ot]);for(Gr.sort(hs),Ot=0;Ot<_r;Ot++)Xr.push([Gr[Ot][0],-Gr[Ot][1]]);var xa=Wo(Gr),da=Wo(Xr),Ja=da[0]===xa[0],ti=da[da.length-1]===xa[xa.length-1],Sa=[];for(Ot=xa.length-1;Ot>=0;--Ot)Sa.push(bt[Gr[xa[Ot]][2]]);for(Ot=+Ja;Ot<da.length-ti;++Ot)Sa.push(bt[Gr[da[Ot]][2]]);return Sa}return mt.x=function(bt){return arguments.length?(Fe=bt,mt):Fe},mt.y=function(bt){return arguments.length?(et=bt,mt):et},mt};function Wo(de){for(var Fe=de.length,et=[0,1],mt=2,bt=2;bt<Fe;bt++){for(;mt>1&&_t(de[et[mt-2]],de[et[mt-1]],de[bt])<=0;)--mt;et[mt++]=bt}return et.slice(0,mt)}function hs(de,Fe){return de[0]-Fe[0]||de[1]-Fe[1]}v.geom.polygon=function(de){return V(de,Oo),de};var Oo=v.geom.polygon.prototype=[];Oo.area=function(){for(var de=-1,Fe=this.length,et,mt=this[Fe-1],bt=0;++de<Fe;)et=mt,mt=this[de],bt+=et[1]*mt[0]-et[0]*mt[1];return bt*.5},Oo.centroid=function(de){var Fe=-1,et=this.length,mt=0,bt=0,Mt,ar=this[et-1],Ot;for(arguments.length||(de=-1/(6*this.area()));++Fe<et;)Mt=ar,ar=this[Fe],Ot=Mt[0]*ar[1]-ar[0]*Mt[1],mt+=(Mt[0]+ar[0])*Ot,bt+=(Mt[1]+ar[1])*Ot;return[mt*de,bt*de]},Oo.clip=function(de){for(var Fe,et=as(de),mt=-1,bt=this.length-as(this),Mt,ar,Ot=this[bt-1],_r,Gr,Xr;++mt<bt;){for(Fe=de.slice(),de.length=0,_r=this[mt],Gr=Fe[(ar=Fe.length-et)-1],Mt=-1;++Mt<ar;)Xr=Fe[Mt],Wn(Xr,Ot,_r)?(Wn(Gr,Ot,_r)||de.push(No(Gr,Xr,Ot,_r)),de.push(Xr)):Wn(Gr,Ot,_r)&&de.push(No(Gr,Xr,Ot,_r)),Gr=Xr;et&&de.push(de[0]),Ot=_r}return de};function Wn(de,Fe,et){return(et[0]-Fe[0])*(de[1]-Fe[1])<(et[1]-Fe[1])*(de[0]-Fe[0])}function No(de,Fe,et,mt){var bt=de[0],Mt=et[0],ar=Fe[0]-bt,Ot=mt[0]-Mt,_r=de[1],Gr=et[1],Xr=Fe[1]-_r,xa=mt[1]-Gr,da=(Ot*(_r-Gr)-xa*(bt-Mt))/(xa*ar-Ot*Xr);return[bt+da*ar,_r+da*Xr]}function as(de){var Fe=de[0],et=de[de.length-1];return!(Fe[0]-et[0]||Fe[1]-et[1])}var Ns,ss,uo,jn=[],Xn,ls,Cs=[];function Ks(){As(this),this.edge=this.site=this.circle=null}function Xo(de){var Fe=jn.pop()||new Ks;return Fe.site=de,Fe}function Gi(de){ko(de),uo.remove(de),jn.push(de),As(de)}function Ln(de){var Fe=de.circle,et=Fe.x,mt=Fe.cy,bt={x:et,y:mt},Mt=de.P,ar=de.N,Ot=[de];Gi(de);for(var _r=Mt;_r.circle&&l(et-_r.circle.x)<Ke&&l(mt-_r.circle.cy)<Ke;)Mt=_r.P,Ot.unshift(_r),Gi(_r),_r=Mt;Ot.unshift(_r),ko(_r);for(var Gr=ar;Gr.circle&&l(et-Gr.circle.x)<Ke&&l(mt-Gr.circle.cy)<Ke;)ar=Gr.N,Ot.push(Gr),Gi(Gr),Gr=ar;Ot.push(Gr),ko(Gr);var Xr=Ot.length,xa;for(xa=1;xa<Xr;++xa)Gr=Ot[xa],_r=Ot[xa-1],Ts(Gr.edge,_r.site,Gr.site,bt);_r=Ot[0],Gr=Ot[Xr-1],Gr.edge=Vs(_r.site,Gr.site,null,bt),xn(_r),xn(Gr)}function Us(de){for(var Fe=de.x,et=de.y,mt,bt,Mt,ar,Ot=uo._;Ot;)if(Mt=_s(Ot,et)-Fe,Mt>Ke)Ot=Ot.L;else if(ar=Fe-Gn(Ot,et),ar>Ke){if(!Ot.R){mt=Ot;break}Ot=Ot.R}else{Mt>-Ke?(mt=Ot.P,bt=Ot):ar>-Ke?(mt=Ot,bt=Ot.N):mt=bt=Ot;break}var _r=Xo(de);if(uo.insert(mt,_r),!(!mt&&!bt)){if(mt===bt){ko(mt),bt=Xo(mt.site),uo.insert(_r,bt),_r.edge=bt.edge=Vs(mt.site,_r.site),xn(mt),xn(bt);return}if(!bt){_r.edge=Vs(mt.site,_r.site);return}ko(mt),ko(bt);var Gr=mt.site,Xr=Gr.x,xa=Gr.y,da=de.x-Xr,Ja=de.y-xa,ti=bt.site,Sa=ti.x-Xr,Fa=ti.y-xa,Xa=2*(da*Fa-Ja*Sa),fi=da*da+Ja*Ja,ni=Sa*Sa+Fa*Fa,La={x:(Fa*fi-Ja*ni)/Xa+Xr,y:(da*ni-Sa*fi)/Xa+xa};Ts(bt.edge,Gr,ti,La),_r.edge=Vs(Gr,de,null,La),bt.edge=Vs(de,ti,null,La),xn(mt),xn(bt)}}function _s(de,Fe){var et=de.site,mt=et.x,bt=et.y,Mt=bt-Fe;if(!Mt)return mt;var ar=de.P;if(!ar)return-1/0;et=ar.site;var Ot=et.x,_r=et.y,Gr=_r-Fe;if(!Gr)return Ot;var Xr=Ot-mt,xa=1/Mt-1/Gr,da=Xr/Gr;return xa?(-da+Math.sqrt(da*da-2*xa*(Xr*Xr/(-2*Gr)-_r+Gr/2+bt-Mt/2)))/xa+mt:(mt+Ot)/2}function Gn(de,Fe){var et=de.N;if(et)return _s(et,Fe);var mt=de.site;return mt.y===Fe?mt.x:1/0}function zs(de){this.site=de,this.edges=[]}zs.prototype.prepare=function(){for(var de=this.edges,Fe=de.length,et;Fe--;)et=de[Fe].edge,(!et.b||!et.a)&&de.splice(Fe,1);return de.sort(Ws),de.length};function vs(de){for(var Fe=de[0][0],et=de[1][0],mt=de[0][1],bt=de[1][1],Mt,ar,Ot,_r,Gr=ss,Xr=Gr.length,xa,da,Ja,ti,Sa,Fa;Xr--;)if(xa=Gr[Xr],!(!xa||!xa.prepare()))for(Ja=xa.edges,ti=Ja.length,da=0;da<ti;)Fa=Ja[da].end(),Ot=Fa.x,_r=Fa.y,Sa=Ja[++da%ti].start(),Mt=Sa.x,ar=Sa.y,(l(Ot-Mt)>Ke||l(_r-ar)>Ke)&&(Ja.splice(da,0,new js(vl(xa.site,Fa,l(Ot-Fe)<Ke&&bt-_r>Ke?{x:Fe,y:l(Mt-Fe)<Ke?ar:bt}:l(_r-bt)<Ke&&et-Ot>Ke?{x:l(ar-bt)<Ke?Mt:et,y:bt}:l(Ot-et)<Ke&&_r-mt>Ke?{x:et,y:l(Mt-et)<Ke?ar:mt}:l(_r-mt)<Ke&&Ot-Fe>Ke?{x:l(ar-mt)<Ke?Mt:Fe,y:mt}:null),xa.site,null)),++ti)}function Ws(de,Fe){return Fe.angle-de.angle}function il(){As(this),this.x=this.y=this.arc=this.site=this.cy=null}function xn(de){var Fe=de.P,et=de.N;if(!(!Fe||!et)){var mt=Fe.site,bt=de.site,Mt=et.site;if(mt!==Mt){var ar=bt.x,Ot=bt.y,_r=mt.x-ar,Gr=mt.y-Ot,Xr=Mt.x-ar,Fa=Mt.y-Ot,xa=2*(_r*Fa-Gr*Xr);if(!(xa>=-Te)){var da=_r*_r+Gr*Gr,Ja=Xr*Xr+Fa*Fa,ti=(Fa*da-Gr*Ja)/xa,Sa=(_r*Ja-Xr*da)/xa,Fa=Sa+Ot,Xa=Cs.pop()||new il;Xa.arc=de,Xa.site=bt,Xa.x=ti+ar,Xa.y=Fa+Math.sqrt(ti*ti+Sa*Sa),Xa.cy=Fa,de.circle=Xa;for(var fi=null,ni=ls._;ni;)if(Xa.y<ni.y||Xa.y===ni.y&&Xa.x<=ni.x)if(ni.L)ni=ni.L;else{fi=ni.P;break}else if(ni.R)ni=ni.R;else{fi=ni;break}ls.insert(fi,Xa),fi||(Xn=Xa)}}}}function ko(de){var Fe=de.circle;Fe&&(Fe.P||(Xn=Fe.N),ls.remove(Fe),Cs.push(Fe),As(Fe),de.circle=null)}function bo(de,Fe,et,mt){return function(bt){var Mt=bt.a,ar=bt.b,Ot=Mt.x,_r=Mt.y,Gr=ar.x,Xr=ar.y,xa=0,da=1,Ja=Gr-Ot,ti=Xr-_r,Sa;if(Sa=de-Ot,!(!Ja&&Sa>0)){if(Sa/=Ja,Ja<0){if(Sa<xa)return;Sa<da&&(da=Sa)}else if(Ja>0){if(Sa>da)return;Sa>xa&&(xa=Sa)}if(Sa=et-Ot,!(!Ja&&Sa<0)){if(Sa/=Ja,Ja<0){if(Sa>da)return;Sa>xa&&(xa=Sa)}else if(Ja>0){if(Sa<xa)return;Sa<da&&(da=Sa)}if(Sa=Fe-_r,!(!ti&&Sa>0)){if(Sa/=ti,ti<0){if(Sa<xa)return;Sa<da&&(da=Sa)}else if(ti>0){if(Sa>da)return;Sa>xa&&(xa=Sa)}if(Sa=mt-_r,!(!ti&&Sa<0)){if(Sa/=ti,ti<0){if(Sa>da)return;Sa>xa&&(xa=Sa)}else if(ti>0){if(Sa<xa)return;Sa<da&&(da=Sa)}return xa>0&&(bt.a={x:Ot+xa*Ja,y:_r+xa*ti}),da<1&&(bt.b={x:Ot+da*Ja,y:_r+da*ti}),bt}}}}}}function Is(de){for(var Fe=Ns,et=bo(de[0][0],de[0][1],de[1][0],de[1][1]),mt=Fe.length,bt;mt--;)bt=Fe[mt],(!pu(bt,de)||!et(bt)||l(bt.a.x-bt.b.x)<Ke&&l(bt.a.y-bt.b.y)<Ke)&&(bt.a=bt.b=null,Fe.splice(mt,1))}function pu(de,Fe){var et=de.b;if(et)return!0;var mt=de.a,bt=Fe[0][0],Mt=Fe[1][0],ar=Fe[0][1],Ot=Fe[1][1],_r=de.l,Gr=de.r,Xr=_r.x,xa=_r.y,da=Gr.x,Ja=Gr.y,ti=(Xr+da)/2,Sa=(xa+Ja)/2,Fa,Xa;if(Ja===xa){if(ti<bt||ti>=Mt)return;if(Xr>da){if(!mt)mt={x:ti,y:ar};else if(mt.y>=Ot)return;et={x:ti,y:Ot}}else{if(!mt)mt={x:ti,y:Ot};else if(mt.y<ar)return;et={x:ti,y:ar}}}else if(Fa=(Xr-da)/(Ja-xa),Xa=Sa-Fa*ti,Fa<-1||Fa>1)if(Xr>da){if(!mt)mt={x:(ar-Xa)/Fa,y:ar};else if(mt.y>=Ot)return;et={x:(Ot-Xa)/Fa,y:Ot}}else{if(!mt)mt={x:(Ot-Xa)/Fa,y:Ot};else if(mt.y<ar)return;et={x:(ar-Xa)/Fa,y:ar}}else if(xa<Ja){if(!mt)mt={x:bt,y:Fa*bt+Xa};else if(mt.x>=Mt)return;et={x:Mt,y:Fa*Mt+Xa}}else{if(!mt)mt={x:Mt,y:Fa*Mt+Xa};else if(mt.x<bt)return;et={x:bt,y:Fa*bt+Xa}}return de.a=mt,de.b=et,!0}function co(de,Fe){this.l=de,this.r=Fe,this.a=this.b=null}function Vs(de,Fe,et,mt){var bt=new co(de,Fe);return Ns.push(bt),et&&Ts(bt,de,Fe,et),mt&&Ts(bt,Fe,de,mt),ss[de.i].edges.push(new js(bt,de,Fe)),ss[Fe.i].edges.push(new js(bt,Fe,de)),bt}function vl(de,Fe,et){var mt=new co(de,null);return mt.a=Fe,mt.b=et,Ns.push(mt),mt}function Ts(de,Fe,et,mt){!de.a&&!de.b?(de.a=mt,de.l=Fe,de.r=et):de.l===et?de.b=mt:de.a=mt}function js(de,Fe,et){var mt=de.a,bt=de.b;this.edge=de,this.site=Fe,this.angle=et?Math.atan2(et.y-Fe.y,et.x-Fe.x):de.l===Fe?Math.atan2(bt.x-mt.x,mt.y-bt.y):Math.atan2(mt.x-bt.x,bt.y-mt.y)}js.prototype={start:function(){return this.edge.l===this.site?this.edge.a:this.edge.b},end:function(){return this.edge.l===this.site?this.edge.b:this.edge.a}};function us(){this._=null}function As(de){de.U=de.C=de.L=de.R=de.P=de.N=null}us.prototype={insert:function(de,Fe){var et,mt,bt;if(de){if(Fe.P=de,Fe.N=de.N,de.N&&(de.N.P=Fe),de.N=Fe,de.R){for(de=de.R;de.L;)de=de.L;de.L=Fe}else de.R=Fe;et=de}else this._?(de=Tc(this._),Fe.P=null,Fe.N=de,de.P=de.L=Fe,et=de):(Fe.P=Fe.N=null,this._=Fe,et=null);for(Fe.L=Fe.R=null,Fe.U=et,Fe.C=!0,de=Fe;et&&et.C;)mt=et.U,et===mt.L?(bt=mt.R,bt&&bt.C?(et.C=bt.C=!1,mt.C=!0,de=mt):(de===et.R&&(Nl(this,et),de=et,et=de.U),et.C=!1,mt.C=!0,su(this,mt))):(bt=mt.L,bt&&bt.C?(et.C=bt.C=!1,mt.C=!0,de=mt):(de===et.L&&(su(this,et),de=et,et=de.U),et.C=!1,mt.C=!0,Nl(this,mt))),et=de.U;this._.C=!1},remove:function(de){de.N&&(de.N.P=de.P),de.P&&(de.P.N=de.N),de.N=de.P=null;var Fe=de.U,et,mt=de.L,bt=de.R,Mt,ar;if(mt?bt?Mt=Tc(bt):Mt=mt:Mt=bt,Fe?Fe.L===de?Fe.L=Mt:Fe.R=Mt:this._=Mt,mt&&bt?(ar=Mt.C,Mt.C=de.C,Mt.L=mt,mt.U=Mt,Mt!==bt?(Fe=Mt.U,Mt.U=de.U,de=Mt.R,Fe.L=de,Mt.R=bt,bt.U=Mt):(Mt.U=Fe,Fe=Mt,de=Mt.R)):(ar=de.C,de=Mt),de&&(de.U=Fe),!ar){if(de&&de.C){de.C=!1;return}do{if(de===this._)break;if(de===Fe.L){if(et=Fe.R,et.C&&(et.C=!1,Fe.C=!0,Nl(this,Fe),et=Fe.R),et.L&&et.L.C||et.R&&et.R.C){(!et.R||!et.R.C)&&(et.L.C=!1,et.C=!0,su(this,et),et=Fe.R),et.C=Fe.C,Fe.C=et.R.C=!1,Nl(this,Fe),de=this._;break}}else if(et=Fe.L,et.C&&(et.C=!1,Fe.C=!0,su(this,Fe),et=Fe.L),et.L&&et.L.C||et.R&&et.R.C){(!et.L||!et.L.C)&&(et.R.C=!1,et.C=!0,Nl(this,et),et=Fe.L),et.C=Fe.C,Fe.C=et.L.C=!1,su(this,Fe),de=this._;break}et.C=!0,de=Fe,Fe=Fe.U}while(!de.C);de&&(de.C=!1)}}};function Nl(de,Fe){var et=Fe,mt=Fe.R,bt=et.U;bt?bt.L===et?bt.L=mt:bt.R=mt:de._=mt,mt.U=bt,et.U=mt,et.R=mt.L,et.R&&(et.R.U=et),mt.L=et}function su(de,Fe){var et=Fe,mt=Fe.L,bt=et.U;bt?bt.L===et?bt.L=mt:bt.R=mt:de._=mt,mt.U=bt,et.U=mt,et.L=mt.R,et.L&&(et.L.U=et),mt.R=et}function Tc(de){for(;de.L;)de=de.L;return de}function du(de,Fe){var et=de.sort(Sf).pop(),mt,bt,Mt;for(Ns=[],ss=new Array(de.length),uo=new us,ls=new us;;)if(Mt=Xn,et&&(!Mt||et.y<Mt.y||et.y===Mt.y&&et.x<Mt.x))(et.x!==mt||et.y!==bt)&&(ss[et.i]=new zs(et),Us(et),mt=et.x,bt=et.y),et=de.pop();else if(Mt)Ln(Mt.arc);else break;Fe&&(Is(Fe),vs(Fe));var ar={cells:ss,edges:Ns};return uo=ls=Ns=ss=null,ar}function Sf(de,Fe){return Fe.y-de.y||Fe.x-de.x}v.geom.voronoi=function(de){var Fe=cn,et=lo,mt=Fe,bt=et,Mt=Uc;if(de)return ar(de);function ar(_r){var Gr=new Array(_r.length),Xr=Mt[0][0],xa=Mt[0][1],da=Mt[1][0],Ja=Mt[1][1];return du(Ot(_r),Mt).cells.forEach(function(ti,Sa){var Fa=ti.edges,Xa=ti.site,fi=Gr[Sa]=Fa.length?Fa.map(function(ni){var La=ni.start();return[La.x,La.y]}):Xa.x>=Xr&&Xa.x<=da&&Xa.y>=xa&&Xa.y<=Ja?[[Xr,Ja],[da,Ja],[da,xa],[Xr,xa]]:[];fi.point=_r[Sa]}),Gr}function Ot(_r){return _r.map(function(Gr,Xr){return{x:Math.round(mt(Gr,Xr)/Ke)*Ke,y:Math.round(bt(Gr,Xr)/Ke)*Ke,i:Xr}})}return ar.links=function(_r){return du(Ot(_r)).edges.filter(function(Gr){return Gr.l&&Gr.r}).map(function(Gr){return{source:_r[Gr.l.i],target:_r[Gr.r.i]}})},ar.triangles=function(_r){var Gr=[];return du(Ot(_r)).cells.forEach(function(Xr,xa){for(var da=Xr.site,Ja=Xr.edges.sort(Ws),ti=-1,Sa=Ja.length,Fa,Xa,fi=Ja[Sa-1].edge,ni=fi.l===da?fi.r:fi.l;++ti<Sa;)Fa=fi,Xa=ni,fi=Ja[ti].edge,ni=fi.l===da?fi.r:fi.l,xa<Xa.i&&xa<ni.i&&Fs(da,Xa,ni)<0&&Gr.push([_r[xa],_r[Xa.i],_r[ni.i]])}),Gr},ar.x=function(_r){return arguments.length?(mt=Or(Fe=_r),ar):Fe},ar.y=function(_r){return arguments.length?(bt=Or(et=_r),ar):et},ar.clipExtent=function(_r){return arguments.length?(Mt=_r??Uc,ar):Mt===Uc?null:Mt},ar.size=function(_r){return arguments.length?ar.clipExtent(_r&&[[0,0],_r]):Mt===Uc?null:Mt&&Mt[1]},ar};var Uc=[[-1e6,-1e6],[1e6,1e6]];function Fs(de,Fe,et){return(de.x-et.x)*(Fe.y-de.y)-(de.x-Fe.x)*(et.y-de.y)}v.geom.delaunay=function(de){return v.geom.voronoi().triangles(de)},v.geom.quadtree=function(de,Fe,et,mt,bt){var Mt=cn,ar=lo,Ot;if(Ot=arguments.length)return Mt=dc,ar=Hc,Ot===3&&(bt=et,mt=Fe,et=Fe=0),_r(de);function _r(Gr){var Xr,xa=Or(Mt),da=Or(ar),Ja,ti,Sa,Fa,Xa,fi,ni,La;if(Fe!=null)Xa=Fe,fi=et,ni=mt,La=bt;else if(ni=La=-(Xa=fi=1/0),Ja=[],ti=[],Fa=Gr.length,Ot)for(Sa=0;Sa<Fa;++Sa)Xr=Gr[Sa],Xr.x<Xa&&(Xa=Xr.x),Xr.y<fi&&(fi=Xr.y),Xr.x>ni&&(ni=Xr.x),Xr.y>La&&(La=Xr.y),Ja.push(Xr.x),ti.push(Xr.y);else for(Sa=0;Sa<Fa;++Sa){var sn=+xa(Xr=Gr[Sa],Sa),rn=+da(Xr,Sa);sn<Xa&&(Xa=sn),rn<fi&&(fi=rn),sn>ni&&(ni=sn),rn>La&&(La=rn),Ja.push(sn),ti.push(rn)}var vn=ni-Xa,Pn=La-fi;vn>Pn?La=fi+vn:ni=Xa+Pn;function Jn(io,Ho,cl,al,xl,gn,vo,cs){if(!(isNaN(cl)||isNaN(al)))if(io.leaf){var ms=io.x,Al=io.y;if(ms!=null)if(l(ms-cl)+l(Al-al)<.01)ro(io,Ho,cl,al,xl,gn,vo,cs);else{var Hl=io.point;io.x=io.y=io.point=null,ro(io,Hl,ms,Al,xl,gn,vo,cs),ro(io,Ho,cl,al,xl,gn,vo,cs)}else io.x=cl,io.y=al,io.point=Ho}else ro(io,Ho,cl,al,xl,gn,vo,cs)}function ro(io,Ho,cl,al,xl,gn,vo,cs){var ms=(xl+vo)*.5,Al=(gn+cs)*.5,Hl=cl>=ms,Su=al>=Al,Rl=Su<<1|Hl;io.leaf=!1,io=io.nodes[Rl]||(io.nodes[Rl]=lu()),Hl?xl=ms:vo=ms,Su?gn=Al:cs=Al,Jn(io,Ho,cl,al,xl,gn,vo,cs)}var Yo=lu();if(Yo.add=function(io){Jn(Yo,io,+xa(io,++Sa),+da(io,Sa),Xa,fi,ni,La)},Yo.visit=function(io){Pl(io,Yo,Xa,fi,ni,La)},Yo.find=function(io){return ic(Yo,io[0],io[1],Xa,fi,ni,La)},Sa=-1,Fe==null){for(;++Sa<Fa;)Jn(Yo,Gr[Sa],Ja[Sa],ti[Sa],Xa,fi,ni,La);--Sa}else Gr.forEach(Yo.add);return Ja=ti=Gr=Xr=null,Yo}return _r.x=function(Gr){return arguments.length?(Mt=Gr,_r):Mt},_r.y=function(Gr){return arguments.length?(ar=Gr,_r):ar},_r.extent=function(Gr){return arguments.length?(Gr==null?Fe=et=mt=bt=null:(Fe=+Gr[0][0],et=+Gr[0][1],mt=+Gr[1][0],bt=+Gr[1][1]),_r):Fe==null?null:[[Fe,et],[mt,bt]]},_r.size=function(Gr){return arguments.length?(Gr==null?Fe=et=mt=bt=null:(Fe=et=0,mt=+Gr[0],bt=+Gr[1]),_r):Fe==null?null:[mt-Fe,bt-et]},_r};function dc(de){return de.x}function Hc(de){return de.y}function lu(){return{leaf:!0,nodes:[],point:null,x:null,y:null}}function Pl(de,Fe,et,mt,bt,Mt){if(!de(Fe,et,mt,bt,Mt)){var ar=(et+bt)*.5,Ot=(mt+Mt)*.5,_r=Fe.nodes;_r[0]&&Pl(de,_r[0],et,mt,ar,Ot),_r[1]&&Pl(de,_r[1],ar,mt,bt,Ot),_r[2]&&Pl(de,_r[2],et,Ot,ar,Mt),_r[3]&&Pl(de,_r[3],ar,Ot,bt,Mt)}}function ic(de,Fe,et,mt,bt,Mt,ar){var Ot=1/0,_r;return function Gr(Xr,xa,da,Ja,ti){if(!(xa>Mt||da>ar||Ja<mt||ti<bt)){if(Sa=Xr.point){var Sa,Fa=Fe-Xr.x,Xa=et-Xr.y,fi=Fa*Fa+Xa*Xa;if(fi<Ot){var ni=Math.sqrt(Ot=fi);mt=Fe-ni,bt=et-ni,Mt=Fe+ni,ar=et+ni,_r=Sa}}for(var La=Xr.nodes,sn=(xa+Ja)*.5,rn=(da+ti)*.5,vn=Fe>=sn,Pn=et>=rn,Jn=Pn<<1|vn,ro=Jn+4;Jn<ro;++Jn)if(Xr=La[Jn&3])switch(Jn&3){case 0:Gr(Xr,xa,da,sn,rn);break;case 1:Gr(Xr,sn,da,Ja,rn);break;case 2:Gr(Xr,xa,rn,sn,ti);break;case 3:Gr(Xr,sn,rn,Ja,ti);break}}}(de,mt,bt,Mt,ar),_r}v.interpolateRgb=Ou;function Ou(de,Fe){de=v.rgb(de),Fe=v.rgb(Fe);var et=de.r,mt=de.g,bt=de.b,Mt=Fe.r-et,ar=Fe.g-mt,Ot=Fe.b-bt;return function(_r){return"#"+xr(Math.round(et+Mt*_r))+xr(Math.round(mt+ar*_r))+xr(Math.round(bt+Ot*_r))}}v.interpolateObject=nl;function nl(de,Fe){var et={},mt={},bt;for(bt in de)bt in Fe?et[bt]=Ul(de[bt],Fe[bt]):mt[bt]=de[bt];for(bt in Fe)bt in de||(mt[bt]=Fe[bt]);return function(Mt){for(bt in et)mt[bt]=et[bt](Mt);return mt}}v.interpolateNumber=ml;function ml(de,Fe){return de=+de,Fe=+Fe,function(et){return de*(1-et)+Fe*et}}v.interpolateString=xs;function xs(de,Fe){var et=Xs.lastIndex=nc.lastIndex=0,mt,bt,Mt,ar=-1,Ot=[],_r=[];for(de=de+"",Fe=Fe+"";(mt=Xs.exec(de))&&(bt=nc.exec(Fe));)(Mt=bt.index)>et&&(Mt=Fe.slice(et,Mt),Ot[ar]?Ot[ar]+=Mt:Ot[++ar]=Mt),(mt=mt[0])===(bt=bt[0])?Ot[ar]?Ot[ar]+=bt:Ot[++ar]=bt:(Ot[++ar]=null,_r.push({i:ar,x:ml(mt,bt)})),et=nc.lastIndex;return et<Fe.length&&(Mt=Fe.slice(et),Ot[ar]?Ot[ar]+=Mt:Ot[++ar]=Mt),Ot.length<2?_r[0]?(Fe=_r[0].x,function(Gr){return Fe(Gr)+""}):function(){return Fe}:(Fe=_r.length,function(Gr){for(var Xr=0,xa;Xr<Fe;++Xr)Ot[(xa=_r[Xr]).i]=xa.x(Gr);return Ot.join("")})}var Xs=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,nc=new RegExp(Xs.source,"g");v.interpolate=Ul;function Ul(de,Fe){for(var et=v.interpolators.length,mt;--et>=0&&!(mt=v.interpolators[et](de,Fe)););return mt}v.interpolators=[function(de,Fe){var et=typeof Fe;return(et==="string"?vr.has(Fe.toLowerCase())||/^(#|rgb\(|hsl\()/i.test(Fe)?Ou:xs:Fe instanceof wi?Ou:Array.isArray(Fe)?qu:et==="object"&&isNaN(Fe)?nl:ml)(de,Fe)}],v.interpolateArray=qu;function qu(de,Fe){var et=[],mt=[],bt=de.length,Mt=Fe.length,ar=Math.min(de.length,Fe.length),Ot;for(Ot=0;Ot<ar;++Ot)et.push(Ul(de[Ot],Fe[Ot]));for(;Ot<bt;++Ot)mt[Ot]=de[Ot];for(;Ot<Mt;++Ot)mt[Ot]=Fe[Ot];return function(_r){for(Ot=0;Ot<ar;++Ot)mt[Ot]=et[Ot](_r);return mt}}var fl=function(){return F},xh=v.map({linear:fl,poly:Mf,quad:function(){return Wc},cubic:function(){return Vu},sin:function(){return Ac},exp:function(){return nf},circle:function(){return $l},elastic:Jf,back:Of,bounce:function(){return of}}),ns=v.map({in:F,out:Es,"in-out":to,"out-in":function(de){return to(Es(de))}});v.ease=function(de){var Fe=de.indexOf("-"),et=Fe>=0?de.slice(0,Fe):de,mt=Fe>=0?de.slice(Fe+1):"in";return et=xh.get(et)||fl,mt=ns.get(mt)||F,bh(mt(et.apply(null,x.call(arguments,1))))};function bh(de){return function(Fe){return Fe<=0?0:Fe>=1?1:de(Fe)}}function Es(de){return function(Fe){return 1-de(1-Fe)}}function to(de){return function(Fe){return .5*(Fe<.5?de(2*Fe):2-de(2-2*Fe))}}function Wc(de){return de*de}function Vu(de){return de*de*de}function jl(de){if(de<=0)return 0;if(de>=1)return 1;var Fe=de*de,et=Fe*de;return 4*(de<.5?et:3*(de-Fe)+et-.75)}function Mf(de){return function(Fe){return Math.pow(Fe,de)}}function Ac(de){return 1-Math.cos(de*Ee)}function nf(de){return Math.pow(2,10*(de-1))}function $l(de){return 1-Math.sqrt(1-de*de)}function Jf(de,Fe){var et;return arguments.length<2&&(Fe=.45),arguments.length?et=Fe/Ve*Math.asin(1/de):(de=1,et=Fe/4),function(mt){return 1+de*Math.pow(2,-10*mt)*Math.sin((mt-et)*Ve/Fe)}}function Of(de){return de||(de=1.70158),function(Fe){return Fe*Fe*((de+1)*Fe-de)}}function of(de){return de<1/2.75?7.5625*de*de:de<2/2.75?7.5625*(de-=1.5/2.75)*de+.75:de<2.5/2.75?7.5625*(de-=2.25/2.75)*de+.9375:7.5625*(de-=2.625/2.75)*de+.984375}v.interpolateHcl=jc;function jc(de,Fe){de=v.hcl(de),Fe=v.hcl(Fe);var et=de.h,mt=de.c,bt=de.l,Mt=Fe.h-et,ar=Fe.c-mt,Ot=Fe.l-bt;return isNaN(ar)&&(ar=0,mt=isNaN(mt)?Fe.c:mt),isNaN(Mt)?(Mt=0,et=isNaN(et)?Fe.h:et):Mt>180?Mt-=360:Mt<-180&&(Mt+=360),function(_r){return ta(et+Mt*_r,mt+ar*_r,bt+Ot*_r)+""}}v.interpolateHsl=Bf;function Bf(de,Fe){de=v.hsl(de),Fe=v.hsl(Fe);var et=de.h,mt=de.s,bt=de.l,Mt=Fe.h-et,ar=Fe.s-mt,Ot=Fe.l-bt;return isNaN(ar)&&(ar=0,mt=isNaN(mt)?Fe.s:mt),isNaN(Mt)?(Mt=0,et=isNaN(et)?Fe.h:et):Mt>180?Mt-=360:Mt<-180&&(Mt+=360),function(_r){return Yt(et+Mt*_r,mt+ar*_r,bt+Ot*_r)+""}}v.interpolateLab=Nf;function Nf(de,Fe){de=v.lab(de),Fe=v.lab(Fe);var et=de.l,mt=de.a,bt=de.b,Mt=Fe.l-et,ar=Fe.a-mt,Ot=Fe.b-bt;return function(_r){return pi(et+Mt*_r,mt+ar*_r,bt+Ot*_r)+""}}v.interpolateRound=Gu;function Gu(de,Fe){return Fe-=de,function(et){return Math.round(de+Fe*et)}}v.transform=function(de){var Fe=E.createElementNS(v.ns.prefix.svg,"g");return(v.transform=function(et){if(et!=null){Fe.setAttribute("transform",et);var mt=Fe.transform.baseVal.consolidate()}return new Ef(mt?mt.matrix:qc)})(de)};function Ef(de){var Fe=[de.a,de.b],et=[de.c,de.d],mt=Xc(Fe),bt=oc(Fe,et),Mt=Xc(Ql(et,Fe,-bt))||0;Fe[0]*et[1]<et[0]*Fe[1]&&(Fe[0]*=-1,Fe[1]*=-1,mt*=-1,bt*=-1),this.rotate=(mt?Math.atan2(Fe[1],Fe[0]):Math.atan2(-et[0],et[1]))*ft,this.translate=[de.e,de.f],this.scale=[mt,Mt],this.skew=Mt?Math.atan2(bt,Mt)*ft:0}Ef.prototype.toString=function(){return"translate("+this.translate+")rotate("+this.rotate+")skewX("+this.skew+")scale("+this.scale+")"};function oc(de,Fe){return de[0]*Fe[0]+de[1]*Fe[1]}function Xc(de){var Fe=Math.sqrt(oc(de,de));return Fe&&(de[0]/=Fe,de[1]/=Fe),Fe}function Ql(de,Fe,et){return de[0]+=et*Fe[0],de[1]+=et*Fe[1],de}var qc={a:1,b:0,c:0,d:1,e:0,f:0};v.interpolateTransform=Zc;function Sc(de){return de.length?de.pop()+",":""}function Zs(de,Fe,et,mt){if(de[0]!==Fe[0]||de[1]!==Fe[1]){var bt=et.push("translate(",null,",",null,")");mt.push({i:bt-4,x:ml(de[0],Fe[0])},{i:bt-2,x:ml(de[1],Fe[1])})}else(Fe[0]||Fe[1])&&et.push("translate("+Fe+")")}function kf(de,Fe,et,mt){de!==Fe?(de-Fe>180?Fe+=360:Fe-de>180&&(de+=360),mt.push({i:et.push(Sc(et)+"rotate(",null,")")-2,x:ml(de,Fe)})):Fe&&et.push(Sc(et)+"rotate("+Fe+")")}function fh(de,Fe,et,mt){de!==Fe?mt.push({i:et.push(Sc(et)+"skewX(",null,")")-2,x:ml(de,Fe)}):Fe&&et.push(Sc(et)+"skewX("+Fe+")")}function Uf(de,Fe,et,mt){if(de[0]!==Fe[0]||de[1]!==Fe[1]){var bt=et.push(Sc(et)+"scale(",null,",",null,")");mt.push({i:bt-4,x:ml(de[0],Fe[0])},{i:bt-2,x:ml(de[1],Fe[1])})}else(Fe[0]!==1||Fe[1]!==1)&&et.push(Sc(et)+"scale("+Fe+")")}function Zc(de,Fe){var et=[],mt=[];return de=v.transform(de),Fe=v.transform(Fe),Zs(de.translate,Fe.translate,et,mt),kf(de.rotate,Fe.rotate,et,mt),fh(de.skew,Fe.skew,et,mt),Uf(de.scale,Fe.scale,et,mt),de=Fe=null,function(bt){for(var Mt=-1,ar=mt.length,Ot;++Mt<ar;)et[(Ot=mt[Mt]).i]=Ot.x(bt);return et.join("")}}function $f(de,Fe){return Fe=(Fe-=de=+de)||1/Fe,function(et){return(et-de)/Fe}}function Cu(de,Fe){return Fe=(Fe-=de=+de)||1/Fe,function(et){return Math.max(0,Math.min(1,(et-de)/Fe))}}v.layout={},v.layout.bundle=function(){return function(de){for(var Fe=[],et=-1,mt=de.length;++et<mt;)Fe.push(jf(de[et]));return Fe}};function jf(de){for(var Fe=de.source,et=de.target,mt=Lu(Fe,et),bt=[Fe];Fe!==mt;)Fe=Fe.parent,bt.push(Fe);for(var Mt=bt.length;et!==mt;)bt.splice(Mt,0,et),et=et.parent;return bt}function yl(de){for(var Fe=[],et=de.parent;et!=null;)Fe.push(de),de=et,et=et.parent;return Fe.push(de),Fe}function Lu(de,Fe){if(de===Fe)return de;for(var et=yl(de),mt=yl(Fe),bt=et.pop(),Mt=mt.pop(),ar=null;bt===Mt;)ar=bt,bt=et.pop(),Mt=mt.pop();return ar}v.layout.chord=function(){var de={},Fe,et,mt,bt,Mt=0,ar,Ot,_r;function Gr(){var xa={},da=[],Ja=v.range(bt),ti=[],Sa,Fa,Xa,fi,ni;for(Fe=[],et=[],Sa=0,fi=-1;++fi<bt;){for(Fa=0,ni=-1;++ni<bt;)Fa+=mt[fi][ni];da.push(Fa),ti.push(v.range(bt)),Sa+=Fa}for(ar&&Ja.sort(function(Yo,io){return ar(da[Yo],da[io])}),Ot&&ti.forEach(function(Yo,io){Yo.sort(function(Ho,cl){return Ot(mt[io][Ho],mt[io][cl])})}),Sa=(Ve-Mt*bt)/Sa,Fa=0,fi=-1;++fi<bt;){for(Xa=Fa,ni=-1;++ni<bt;){var La=Ja[fi],sn=ti[La][ni],rn=mt[La][sn],vn=Fa,Pn=Fa+=rn*Sa;xa[La+"-"+sn]={index:La,subindex:sn,startAngle:vn,endAngle:Pn,value:rn}}et[La]={index:La,startAngle:Xa,endAngle:Fa,value:da[La]},Fa+=Mt}for(fi=-1;++fi<bt;)for(ni=fi-1;++ni<bt;){var Jn=xa[fi+"-"+ni],ro=xa[ni+"-"+fi];(Jn.value||ro.value)&&Fe.push(Jn.value<ro.value?{source:ro,target:Jn}:{source:Jn,target:ro})}_r&&Xr()}function Xr(){Fe.sort(function(xa,da){return _r((xa.source.value+xa.target.value)/2,(da.source.value+da.target.value)/2)})}return de.matrix=function(xa){return arguments.length?(bt=(mt=xa)&&mt.length,Fe=et=null,de):mt},de.padding=function(xa){return arguments.length?(Mt=xa,Fe=et=null,de):Mt},de.sortGroups=function(xa){return arguments.length?(ar=xa,Fe=et=null,de):ar},de.sortSubgroups=function(xa){return arguments.length?(Ot=xa,Fe=null,de):Ot},de.sortChords=function(xa){return arguments.length?(_r=xa,Fe&&Xr(),de):_r},de.chords=function(){return Fe||Gr(),Fe},de.groups=function(){return et||Gr(),et},de},v.layout.force=function(){var de={},Fe=v.dispatch("start","tick","end"),et,mt=[1,1],bt,Mt,ar=.9,Ot=El,_r=qf,Gr=-30,Xr=Qf,xa=.1,da=.64,Ja=[],ti=[],Sa,Fa,Xa;function fi(La){return function(sn,rn,vn,Pn){if(sn.point!==La){var Jn=sn.cx-La.x,ro=sn.cy-La.y,Yo=Pn-rn,io=Jn*Jn+ro*ro;if(Yo*Yo/da<io){if(io<Xr){var Ho=sn.charge/io;La.px-=Jn*Ho,La.py-=ro*Ho}return!0}if(sn.point&&io&&io<Xr){var Ho=sn.pointCharge/io;La.px-=Jn*Ho,La.py-=ro*Ho}}return!sn.charge}}de.tick=function(){if((Mt*=.99)<.005)return et=null,Fe.end({type:"end",alpha:Mt=0}),!0;var La=Ja.length,sn=ti.length,rn,vn,Pn,Jn,ro,Yo,io,Ho,cl;for(vn=0;vn<sn;++vn)Pn=ti[vn],Jn=Pn.source,ro=Pn.target,Ho=ro.x-Jn.x,cl=ro.y-Jn.y,(Yo=Ho*Ho+cl*cl)&&(Yo=Mt*Fa[vn]*((Yo=Math.sqrt(Yo))-Sa[vn])/Yo,Ho*=Yo,cl*=Yo,ro.x-=Ho*(io=Jn.weight+ro.weight?Jn.weight/(Jn.weight+ro.weight):.5),ro.y-=cl*io,Jn.x+=Ho*(io=1-io),Jn.y+=cl*io);if((io=Mt*xa)&&(Ho=mt[0]/2,cl=mt[1]/2,vn=-1,io))for(;++vn<La;)Pn=Ja[vn],Pn.x+=(Ho-Pn.x)*io,Pn.y+=(cl-Pn.y)*io;if(Gr)for(Tu(rn=v.geom.quadtree(Ja),Mt,Xa),vn=-1;++vn<La;)(Pn=Ja[vn]).fixed||rn.visit(fi(Pn));for(vn=-1;++vn<La;)Pn=Ja[vn],Pn.fixed?(Pn.x=Pn.px,Pn.y=Pn.py):(Pn.x-=(Pn.px-(Pn.px=Pn.x))*ar,Pn.y-=(Pn.py-(Pn.py=Pn.y))*ar);Fe.tick({type:"tick",alpha:Mt})},de.nodes=function(La){return arguments.length?(Ja=La,de):Ja},de.links=function(La){return arguments.length?(ti=La,de):ti},de.size=function(La){return arguments.length?(mt=La,de):mt},de.linkDistance=function(La){return arguments.length?(Ot=typeof La=="function"?La:+La,de):Ot},de.distance=de.linkDistance,de.linkStrength=function(La){return arguments.length?(_r=typeof La=="function"?La:+La,de):_r},de.friction=function(La){return arguments.length?(ar=+La,de):ar},de.charge=function(La){return arguments.length?(Gr=typeof La=="function"?La:+La,de):Gr},de.chargeDistance=function(La){return arguments.length?(Xr=La*La,de):Math.sqrt(Xr)},de.gravity=function(La){return arguments.length?(xa=+La,de):xa},de.theta=function(La){return arguments.length?(da=La*La,de):Math.sqrt(da)},de.alpha=function(La){return arguments.length?(La=+La,Mt?La>0?Mt=La:(et.c=null,et.t=NaN,et=null,Fe.end({type:"end",alpha:Mt=0})):La>0&&(Fe.start({type:"start",alpha:Mt=La}),et=Rn(de.tick)),de):Mt},de.start=function(){var La,sn=Ja.length,rn=ti.length,vn=mt[0],Pn=mt[1],Jn,ro;for(La=0;La<sn;++La)(ro=Ja[La]).index=La,ro.weight=0;for(La=0;La<rn;++La)ro=ti[La],typeof ro.source=="number"&&(ro.source=Ja[ro.source]),typeof ro.target=="number"&&(ro.target=Ja[ro.target]),++ro.source.weight,++ro.target.weight;for(La=0;La<sn;++La)ro=Ja[La],isNaN(ro.x)&&(ro.x=Yo("x",vn)),isNaN(ro.y)&&(ro.y=Yo("y",Pn)),isNaN(ro.px)&&(ro.px=ro.x),isNaN(ro.py)&&(ro.py=ro.y);if(Sa=[],typeof Ot=="function")for(La=0;La<rn;++La)Sa[La]=+Ot.call(this,ti[La],La);else for(La=0;La<rn;++La)Sa[La]=Ot;if(Fa=[],typeof _r=="function")for(La=0;La<rn;++La)Fa[La]=+_r.call(this,ti[La],La);else for(La=0;La<rn;++La)Fa[La]=_r;if(Xa=[],typeof Gr=="function")for(La=0;La<sn;++La)Xa[La]=+Gr.call(this,Ja[La],La);else for(La=0;La<sn;++La)Xa[La]=Gr;function Yo(io,Ho){if(!Jn){for(Jn=new Array(sn),xl=0;xl<sn;++xl)Jn[xl]=[];for(xl=0;xl<rn;++xl){var cl=ti[xl];Jn[cl.source.index].push(cl.target),Jn[cl.target.index].push(cl.source)}}for(var al=Jn[La],xl=-1,gn=al.length,vo;++xl<gn;)if(!isNaN(vo=al[xl][io]))return vo;return Math.random()*Ho}return de.resume()},de.resume=function(){return de.alpha(.1)},de.stop=function(){return de.alpha(0)},de.drag=function(){if(bt||(bt=v.behavior.drag().origin(F).on("dragstart.force",Mc).on("drag.force",ni).on("dragend.force",ol)),!arguments.length)return bt;this.on("mouseover.force",vc).on("mouseout.force",yu).call(bt)};function ni(La){La.px=v.event.x,La.py=v.event.y,de.resume()}return v.rebind(de,Fe,"on")};function Mc(de){de.fixed|=2}function ol(de){de.fixed&=-7}function vc(de){de.fixed|=4,de.px=de.x,de.py=de.y}function yu(de){de.fixed&=-5}function Tu(de,Fe,et){var mt=0,bt=0;if(de.charge=0,!de.leaf)for(var Mt=de.nodes,ar=Mt.length,Ot=-1,_r;++Ot<ar;)_r=Mt[Ot],_r!=null&&(Tu(_r,Fe,et),de.charge+=_r.charge,mt+=_r.charge*_r.cx,bt+=_r.charge*_r.cy);if(de.point){de.leaf||(de.point.x+=Math.random()-.5,de.point.y+=Math.random()-.5);var Gr=Fe*et[de.point.index];de.charge+=de.pointCharge=Gr,mt+=Gr*de.point.x,bt+=Gr*de.point.y}de.cx=mt/de.charge,de.cy=bt/de.charge}var El=20,qf=1,Qf=1/0;v.layout.hierarchy=function(){var de=vf,Fe=Lh,et=sf;function mt(bt){var Mt=[bt],ar=[],Ot;for(bt.depth=0;(Ot=Mt.pop())!=null;)if(ar.push(Ot),(Gr=Fe.call(mt,Ot,Ot.depth))&&(_r=Gr.length)){for(var _r,Gr,Xr;--_r>=0;)Mt.push(Xr=Gr[_r]),Xr.parent=Ot,Xr.depth=Ot.depth+1;et&&(Ot.value=0),Ot.children=Gr}else et&&(Ot.value=+et.call(mt,Ot,Ot.depth)||0),delete Ot.children;return mc(bt,function(xa){var da,Ja;de&&(da=xa.children)&&da.sort(de),et&&(Ja=xa.parent)&&(Ja.value+=xa.value)}),ar}return mt.sort=function(bt){return arguments.length?(de=bt,mt):de},mt.children=function(bt){return arguments.length?(Fe=bt,mt):Fe},mt.value=function(bt){return arguments.length?(et=bt,mt):et},mt.revalue=function(bt){return et&&(Ec(bt,function(Mt){Mt.children&&(Mt.value=0)}),mc(bt,function(Mt){var ar;Mt.children||(Mt.value=+et.call(mt,Mt,Mt.depth)||0),(ar=Mt.parent)&&(ar.value+=Mt.value)})),bt},mt};function Bu(de,Fe){return v.rebind(de,Fe,"sort","children","value"),de.nodes=de,de.links=Nu,de}function Ec(de,Fe){for(var et=[de];(de=et.pop())!=null;)if(Fe(de),(bt=de.children)&&(mt=bt.length))for(var mt,bt;--mt>=0;)et.push(bt[mt])}function mc(de,Fe){for(var et=[de],mt=[];(de=et.pop())!=null;)if(mt.push(de),(ar=de.children)&&(Mt=ar.length))for(var bt=-1,Mt,ar;++bt<Mt;)et.push(ar[bt]);for(;(de=mt.pop())!=null;)Fe(de)}function Lh(de){return de.children}function sf(de){return de.value}function vf(de,Fe){return Fe.value-de.value}function Nu(de){return v.merge(de.map(function(Fe){return(Fe.children||[]).map(function(et){return{source:Fe,target:et}})}))}v.layout.partition=function(){var de=v.layout.hierarchy(),Fe=[1,1];function et(Mt,ar,Ot,_r){var Gr=Mt.children;if(Mt.x=ar,Mt.y=Mt.depth*_r,Mt.dx=Ot,Mt.dy=_r,Gr&&(xa=Gr.length)){var Xr=-1,xa,da,Ja;for(Ot=Mt.value?Ot/Mt.value:0;++Xr<xa;)et(da=Gr[Xr],ar,Ja=da.value*Ot,_r),ar+=Ja}}function mt(Mt){var ar=Mt.children,Ot=0;if(ar&&(Gr=ar.length))for(var _r=-1,Gr;++_r<Gr;)Ot=Math.max(Ot,mt(ar[_r]));return 1+Ot}function bt(Mt,ar){var Ot=de.call(this,Mt,ar);return et(Ot[0],0,Fe[0],Fe[1]/mt(Ot[0])),Ot}return bt.size=function(Mt){return arguments.length?(Fe=Mt,bt):Fe},Bu(bt,de)},v.layout.pie=function(){var de=Number,Fe=lf,et=0,mt=Ve,bt=0;function Mt(ar){var Ot=ar.length,_r=ar.map(function(fi,ni){return+de.call(Mt,fi,ni)}),Gr=+(typeof et=="function"?et.apply(this,arguments):et),Xr=(typeof mt=="function"?mt.apply(this,arguments):mt)-Gr,xa=Math.min(Math.abs(Xr)/Ot,+(typeof bt=="function"?bt.apply(this,arguments):bt)),da=xa*(Xr<0?-1:1),Ja=v.sum(_r),ti=Ja?(Xr-Ot*da)/Ja:0,Sa=v.range(Ot),Fa=[],Xa;return Fe!=null&&Sa.sort(Fe===lf?function(fi,ni){return _r[ni]-_r[fi]}:function(fi,ni){return Fe(ar[fi],ar[ni])}),Sa.forEach(function(fi){Fa[fi]={data:ar[fi],value:Xa=_r[fi],startAngle:Gr,endAngle:Gr+=Xa*ti+da,padAngle:xa}}),Fa}return Mt.value=function(ar){return arguments.length?(de=ar,Mt):de},Mt.sort=function(ar){return arguments.length?(Fe=ar,Mt):Fe},Mt.startAngle=function(ar){return arguments.length?(et=ar,Mt):et},Mt.endAngle=function(ar){return arguments.length?(mt=ar,Mt):mt},Mt.padAngle=function(ar){return arguments.length?(bt=ar,Mt):bt},Mt};var lf={};v.layout.stack=function(){var de=F,Fe=_u,et=Pu,mt=hh,bt=au,Mt=Yc;function ar(Ot,_r){if(!(ti=Ot.length))return Ot;var Gr=Ot.map(function(fi,ni){return de.call(ar,fi,ni)}),Xr=Gr.map(function(fi){return fi.map(function(ni,La){return[bt.call(ar,ni,La),Mt.call(ar,ni,La)]})}),xa=Fe.call(ar,Xr,_r);Gr=v.permute(Gr,xa),Xr=v.permute(Xr,xa);var da=et.call(ar,Xr,_r),Ja=Gr[0].length,ti,Sa,Fa,Xa;for(Fa=0;Fa<Ja;++Fa)for(mt.call(ar,Gr[0][Fa],Xa=da[Fa],Xr[0][Fa][1]),Sa=1;Sa<ti;++Sa)mt.call(ar,Gr[Sa][Fa],Xa+=Xr[Sa-1][Fa][1],Xr[Sa][Fa][1]);return Ot}return ar.values=function(Ot){return arguments.length?(de=Ot,ar):de},ar.order=function(Ot){return arguments.length?(Fe=typeof Ot=="function"?Ot:mf.get(Ot)||_u,ar):Fe},ar.offset=function(Ot){return arguments.length?(et=typeof Ot=="function"?Ot:sl.get(Ot)||Pu,ar):et},ar.x=function(Ot){return arguments.length?(bt=Ot,ar):bt},ar.y=function(Ot){return arguments.length?(Mt=Ot,ar):Mt},ar.out=function(Ot){return arguments.length?(mt=Ot,ar):mt},ar};function au(de){return de.x}function Yc(de){return de.y}function hh(de,Fe,et){de.y0=Fe,de.y=et}var mf=v.map({"inside-out":function(de){var Fe=de.length,et,mt,bt=de.map(Cf),Mt=de.map(hl),ar=v.range(Fe).sort(function(xa,da){return bt[xa]-bt[da]}),Ot=0,_r=0,Gr=[],Xr=[];for(et=0;et<Fe;++et)mt=ar[et],Ot<_r?(Ot+=Mt[mt],Gr.push(mt)):(_r+=Mt[mt],Xr.push(mt));return Xr.reverse().concat(Gr)},reverse:function(de){return v.range(de.length).reverse()},default:_u}),sl=v.map({silhouette:function(de){var Fe=de.length,et=de[0].length,mt=[],bt=0,Mt,ar,Ot,_r=[];for(ar=0;ar<et;++ar){for(Mt=0,Ot=0;Mt<Fe;Mt++)Ot+=de[Mt][ar][1];Ot>bt&&(bt=Ot),mt.push(Ot)}for(ar=0;ar<et;++ar)_r[ar]=(bt-mt[ar])/2;return _r},wiggle:function(de){var Fe=de.length,et=de[0],mt=et.length,bt,Mt,ar,Ot,_r,Gr,Xr,xa,da,Ja=[];for(Ja[0]=xa=da=0,Mt=1;Mt<mt;++Mt){for(bt=0,Ot=0;bt<Fe;++bt)Ot+=de[bt][Mt][1];for(bt=0,_r=0,Xr=et[Mt][0]-et[Mt-1][0];bt<Fe;++bt){for(ar=0,Gr=(de[bt][Mt][1]-de[bt][Mt-1][1])/(2*Xr);ar<bt;++ar)Gr+=(de[ar][Mt][1]-de[ar][Mt-1][1])/Xr;_r+=Gr*de[bt][Mt][1]}Ja[Mt]=xa-=Ot?_r/Ot*Xr:0,xa<da&&(da=xa)}for(Mt=0;Mt<mt;++Mt)Ja[Mt]-=da;return Ja},expand:function(de){var Fe=de.length,et=de[0].length,mt=1/Fe,bt,Mt,ar,Ot=[];for(Mt=0;Mt<et;++Mt){for(bt=0,ar=0;bt<Fe;bt++)ar+=de[bt][Mt][1];if(ar)for(bt=0;bt<Fe;bt++)de[bt][Mt][1]/=ar;else for(bt=0;bt<Fe;bt++)de[bt][Mt][1]=mt}for(Mt=0;Mt<et;++Mt)Ot[Mt]=0;return Ot},zero:Pu});function _u(de){return v.range(de.length)}function Pu(de){for(var Fe=-1,et=de[0].length,mt=[];++Fe<et;)mt[Fe]=0;return mt}function Cf(de){for(var Fe=1,et=0,mt=de[0][1],bt,Mt=de.length;Fe<Mt;++Fe)(bt=de[Fe][1])>mt&&(et=Fe,mt=bt);return et}function hl(de){return de.reduce(uf,0)}function uf(de,Fe){return de+Fe[1]}v.layout.histogram=function(){var de=!0,Fe=Number,et=gf,mt=kc;function bt(Mt,da){for(var Ot=[],_r=Mt.map(Fe,this),Gr=et.call(this,_r,da),Xr=mt.call(this,Gr,_r,da),xa,da=-1,Ja=_r.length,ti=Xr.length-1,Sa=de?1:1/Ja,Fa;++da<ti;)xa=Ot[da]=[],xa.dx=Xr[da+1]-(xa.x=Xr[da]),xa.y=0;if(ti>0)for(da=-1;++da<Ja;)Fa=_r[da],Fa>=Gr[0]&&Fa<=Gr[1]&&(xa=Ot[v.bisect(Xr,Fa,1,ti)-1],xa.y+=Sa,xa.push(Mt[da]));return Ot}return bt.value=function(Mt){return arguments.length?(Fe=Mt,bt):Fe},bt.range=function(Mt){return arguments.length?(et=Or(Mt),bt):et},bt.bins=function(Mt){return arguments.length?(mt=typeof Mt=="number"?function(ar){return Hu(ar,Mt)}:Or(Mt),bt):mt},bt.frequency=function(Mt){return arguments.length?(de=!!Mt,bt):de},bt};function kc(de,Fe){return Hu(de,Math.ceil(Math.log(Fe.length)/Math.LN2+1))}function Hu(de,Fe){for(var et=-1,mt=+de[0],bt=(de[1]-mt)/Fe,Mt=[];++et<=Fe;)Mt[et]=bt*et+mt;return Mt}function gf(de){return[v.min(de),v.max(de)]}v.layout.pack=function(){var de=v.layout.hierarchy().sort(Wu),Fe=0,et=[1,1],mt;function bt(Mt,ar){var Ot=de.call(this,Mt,ar),_r=Ot[0],Gr=et[0],Xr=et[1],xa=mt==null?Math.sqrt:typeof mt=="function"?mt:function(){return mt};if(_r.x=_r.y=0,mc(_r,function(Ja){Ja.r=+xa(Ja.value)}),mc(_r,Vf),Fe){var da=Fe*(mt?1:Math.max(2*_r.r/Gr,2*_r.r/Xr))/2;mc(_r,function(Ja){Ja.r+=da}),mc(_r,Vf),mc(_r,function(Ja){Ja.r-=da})}return gc(_r,Gr/2,Xr/2,mt?1:1/Math.max(2*_r.r/Gr,2*_r.r/Xr)),Ot}return bt.size=function(Mt){return arguments.length?(et=Mt,bt):et},bt.radius=function(Mt){return arguments.length?(mt=Mt==null||typeof Mt=="function"?Mt:+Mt,bt):mt},bt.padding=function(Mt){return arguments.length?(Fe=+Mt,bt):Fe},Bu(bt,de)};function Wu(de,Fe){return de.value-Fe.value}function Kc(de,Fe){var et=de._pack_next;de._pack_next=Fe,Fe._pack_prev=de,Fe._pack_next=et,et._pack_prev=Fe}function Lf(de,Fe){de._pack_next=Fe,Fe._pack_prev=de}function iu(de,Fe){var et=Fe.x-de.x,mt=Fe.y-de.y,bt=de.r+Fe.r;return .999*bt*bt>et*et+mt*mt}function Vf(de){if(!(Fe=de.children)||!(da=Fe.length))return;var Fe,et=1/0,mt=-1/0,bt=1/0,Mt=-1/0,ar,Ot,_r,Gr,Xr,xa,da;function Ja(La){et=Math.min(La.x-La.r,et),mt=Math.max(La.x+La.r,mt),bt=Math.min(La.y-La.r,bt),Mt=Math.max(La.y+La.r,Mt)}if(Fe.forEach(Xu),ar=Fe[0],ar.x=-ar.r,ar.y=0,Ja(ar),da>1&&(Ot=Fe[1],Ot.x=Ot.r,Ot.y=0,Ja(Ot),da>2))for(_r=Fe[2],ql(ar,Ot,_r),Ja(_r),Kc(ar,_r),ar._pack_prev=_r,Kc(_r,Ot),Ot=ar._pack_next,Gr=3;Gr<da;Gr++){ql(ar,Ot,_r=Fe[Gr]);var ti=0,Sa=1,Fa=1;for(Xr=Ot._pack_next;Xr!==Ot;Xr=Xr._pack_next,Sa++)if(iu(Xr,_r)){ti=1;break}if(ti==1)for(xa=ar._pack_prev;xa!==Xr._pack_prev&&!iu(xa,_r);xa=xa._pack_prev,Fa++);ti?(Sa<Fa||Sa==Fa&&Ot.r<ar.r?Lf(ar,Ot=Xr):Lf(ar=xa,Ot),Gr--):(Kc(ar,_r),Ot=_r,Ja(_r))}var Xa=(et+mt)/2,fi=(bt+Mt)/2,ni=0;for(Gr=0;Gr<da;Gr++)_r=Fe[Gr],_r.x-=Xa,_r.y-=fi,ni=Math.max(ni,_r.r+Math.sqrt(_r.x*_r.x+_r.y*_r.y));de.r=ni,Fe.forEach(Cc)}function Xu(de){de._pack_next=de._pack_prev=de}function Cc(de){delete de._pack_next,delete de._pack_prev}function gc(de,Fe,et,mt){var bt=de.children;if(de.x=Fe+=mt*de.x,de.y=et+=mt*de.y,de.r*=mt,bt)for(var Mt=-1,ar=bt.length;++Mt<ar;)gc(bt[Mt],Fe,et,mt)}function ql(de,Fe,et){var mt=de.r+et.r,bt=Fe.x-de.x,Mt=Fe.y-de.y;if(mt&&(bt||Mt)){var ar=Fe.r+et.r,Ot=bt*bt+Mt*Mt;ar*=ar,mt*=mt;var _r=.5+(mt-ar)/(2*Ot),Gr=Math.sqrt(Math.max(0,2*ar*(mt+Ot)-(mt-=Ot)*mt-ar*ar))/(2*Ot);et.x=de.x+_r*bt+Gr*Mt,et.y=de.y+_r*Mt-Gr*bt}else et.x=de.x+mt,et.y=de.y}v.layout.tree=function(){var de=v.layout.hierarchy().sort(null).value(null),Fe=xu,et=[1,1],mt=null;function bt(Xr,xa){var da=de.call(this,Xr,xa),Ja=da[0],ti=Mt(Ja);if(mc(ti,ar),ti.parent.m=-ti.z,Ec(ti,Ot),mt)Ec(Ja,Gr);else{var Sa=Ja,Fa=Ja,Xa=Ja;Ec(Ja,function(sn){sn.x<Sa.x&&(Sa=sn),sn.x>Fa.x&&(Fa=sn),sn.depth>Xa.depth&&(Xa=sn)});var fi=Fe(Sa,Fa)/2-Sa.x,ni=et[0]/(Fa.x+Fe(Fa,Sa)/2+fi),La=et[1]/(Xa.depth||1);Ec(Ja,function(sn){sn.x=(sn.x+fi)*ni,sn.y=sn.depth*La})}return da}function Mt(Xr){for(var xa={A:null,children:[Xr]},da=[xa],Ja;(Ja=da.pop())!=null;)for(var ti=Ja.children,Sa,Fa=0,Xa=ti.length;Fa<Xa;++Fa)da.push((ti[Fa]=Sa={_:ti[Fa],parent:Ja,children:(Sa=ti[Fa].children)&&Sa.slice()||[],A:null,a:null,z:0,m:0,c:0,s:0,t:null,i:Fa}).a=Sa);return xa.children[0]}function ar(Xr){var xa=Xr.children,da=Xr.parent.children,Ja=Xr.i?da[Xr.i-1]:null;if(xa.length){Pc(Xr);var ti=(xa[0].z+xa[xa.length-1].z)/2;Ja?(Xr.z=Ja.z+Fe(Xr._,Ja._),Xr.m=Xr.z-ti):Xr.z=ti}else Ja&&(Xr.z=Ja.z+Fe(Xr._,Ja._));Xr.parent.A=_r(Xr,Ja,Xr.parent.A||da[0])}function Ot(Xr){Xr._.x=Xr.z+Xr.parent.m,Xr.m+=Xr.parent.m}function _r(Xr,xa,da){if(xa){for(var Ja=Xr,ti=Xr,Sa=xa,Fa=Ja.parent.children[0],Xa=Ja.m,fi=ti.m,ni=Sa.m,La=Fa.m,sn;Sa=Jc(Sa),Ja=Lc(Ja),Sa&&Ja;)Fa=Lc(Fa),ti=Jc(ti),ti.a=Xr,sn=Sa.z+ni-Ja.z-Xa+Fe(Sa._,Ja._),sn>0&&(sc(Qt(Sa,Xr,da),Xr,sn),Xa+=sn,fi+=sn),ni+=Sa.m,Xa+=Ja.m,La+=Fa.m,fi+=ti.m;Sa&&!Jc(ti)&&(ti.t=Sa,ti.m+=ni-fi),Ja&&!Lc(Fa)&&(Fa.t=Ja,Fa.m+=Xa-La,da=Xr)}return da}function Gr(Xr){Xr.x*=et[0],Xr.y=Xr.depth*et[1]}return bt.separation=function(Xr){return arguments.length?(Fe=Xr,bt):Fe},bt.size=function(Xr){return arguments.length?(mt=(et=Xr)==null?Gr:null,bt):mt?null:et},bt.nodeSize=function(Xr){return arguments.length?(mt=(et=Xr)==null?null:Gr,bt):mt?et:null},Bu(bt,de)};function xu(de,Fe){return de.parent==Fe.parent?1:2}function Lc(de){var Fe=de.children;return Fe.length?Fe[0]:de.t}function Jc(de){var Fe=de.children,et;return(et=Fe.length)?Fe[et-1]:de.t}function sc(de,Fe,et){var mt=et/(Fe.i-de.i);Fe.c-=mt,Fe.s+=et,de.c+=mt,Fe.z+=et,Fe.m+=et}function Pc(de){for(var Fe=0,et=0,mt=de.children,bt=mt.length,Mt;--bt>=0;)Mt=mt[bt],Mt.z+=Fe,Mt.m+=Fe,Fe+=Mt.s+(et+=Mt.c)}function Qt(de,Fe,et){return de.a.parent===Fe.parent?de.a:et}v.layout.cluster=function(){var de=v.layout.hierarchy().sort(null).value(null),Fe=xu,et=[1,1],mt=!1;function bt(Mt,ar){var Ot=de.call(this,Mt,ar),_r=Ot[0],Gr,Xr=0;mc(_r,function(Sa){var Fa=Sa.children;Fa&&Fa.length?(Sa.x=aa(Fa),Sa.y=br(Fa)):(Sa.x=Gr?Xr+=Fe(Sa,Gr):0,Sa.y=0,Gr=Sa)});var xa=$r(_r),da=ka(_r),Ja=xa.x-Fe(xa,da)/2,ti=da.x+Fe(da,xa)/2;return mc(_r,mt?function(Sa){Sa.x=(Sa.x-_r.x)*et[0],Sa.y=(_r.y-Sa.y)*et[1]}:function(Sa){Sa.x=(Sa.x-Ja)/(ti-Ja)*et[0],Sa.y=(1-(_r.y?Sa.y/_r.y:1))*et[1]}),Ot}return bt.separation=function(Mt){return arguments.length?(Fe=Mt,bt):Fe},bt.size=function(Mt){return arguments.length?(mt=(et=Mt)==null,bt):mt?null:et},bt.nodeSize=function(Mt){return arguments.length?(mt=(et=Mt)!=null,bt):mt?et:null},Bu(bt,de)};function br(de){return 1+v.max(de,function(Fe){return Fe.y})}function aa(de){return de.reduce(function(Fe,et){return Fe+et.x},0)/de.length}function $r(de){var Fe=de.children;return Fe&&Fe.length?$r(Fe[0]):de}function ka(de){var Fe=de.children,et;return Fe&&(et=Fe.length)?ka(Fe[et-1]):de}v.layout.treemap=function(){var de=v.layout.hierarchy(),Fe=Math.round,et=[1,1],mt=null,bt=li,Mt=!1,ar,Ot="squarify",_r=.5*(1+Math.sqrt(5));function Gr(Sa,Fa){for(var Xa=-1,fi=Sa.length,ni,La;++Xa<fi;)La=(ni=Sa[Xa]).value*(Fa<0?0:Fa),ni.area=isNaN(La)||La<=0?0:La}function Xr(Sa){var Fa=Sa.children;if(Fa&&Fa.length){var Xa=bt(Sa),fi=[],ni=Fa.slice(),La,sn=1/0,rn,vn=Ot==="slice"?Xa.dx:Ot==="dice"?Xa.dy:Ot==="slice-dice"?Sa.depth&1?Xa.dy:Xa.dx:Math.min(Xa.dx,Xa.dy),Pn;for(Gr(ni,Xa.dx*Xa.dy/Sa.value),fi.area=0;(Pn=ni.length)>0;)fi.push(La=ni[Pn-1]),fi.area+=La.area,Ot!=="squarify"||(rn=da(fi,vn))<=sn?(ni.pop(),sn=rn):(fi.area-=fi.pop().area,Ja(fi,vn,Xa,!1),vn=Math.min(Xa.dx,Xa.dy),fi.length=fi.area=0,sn=1/0);fi.length&&(Ja(fi,vn,Xa,!0),fi.length=fi.area=0),Fa.forEach(Xr)}}function xa(Sa){var Fa=Sa.children;if(Fa&&Fa.length){var Xa=bt(Sa),fi=Fa.slice(),ni,La=[];for(Gr(fi,Xa.dx*Xa.dy/Sa.value),La.area=0;ni=fi.pop();)La.push(ni),La.area+=ni.area,ni.z!=null&&(Ja(La,ni.z?Xa.dx:Xa.dy,Xa,!fi.length),La.length=La.area=0);Fa.forEach(xa)}}function da(Sa,Fa){for(var Xa=Sa.area,fi,ni=0,La=1/0,sn=-1,rn=Sa.length;++sn<rn;)(fi=Sa[sn].area)&&(fi<La&&(La=fi),fi>ni&&(ni=fi));return Xa*=Xa,Fa*=Fa,Xa?Math.max(Fa*ni*_r/Xa,Xa/(Fa*La*_r)):1/0}function Ja(Sa,Fa,Xa,fi){var ni=-1,La=Sa.length,sn=Xa.x,rn=Xa.y,vn=Fa?Fe(Sa.area/Fa):0,Pn;if(Fa==Xa.dx){for((fi||vn>Xa.dy)&&(vn=Xa.dy);++ni<La;)Pn=Sa[ni],Pn.x=sn,Pn.y=rn,Pn.dy=vn,sn+=Pn.dx=Math.min(Xa.x+Xa.dx-sn,vn?Fe(Pn.area/vn):0);Pn.z=!0,Pn.dx+=Xa.x+Xa.dx-sn,Xa.y+=vn,Xa.dy-=vn}else{for((fi||vn>Xa.dx)&&(vn=Xa.dx);++ni<La;)Pn=Sa[ni],Pn.x=sn,Pn.y=rn,Pn.dx=vn,rn+=Pn.dy=Math.min(Xa.y+Xa.dy-rn,vn?Fe(Pn.area/vn):0);Pn.z=!1,Pn.dy+=Xa.y+Xa.dy-rn,Xa.x+=vn,Xa.dx-=vn}}function ti(Sa){var Fa=ar||de(Sa),Xa=Fa[0];return Xa.x=Xa.y=0,Xa.value?(Xa.dx=et[0],Xa.dy=et[1]):Xa.dx=Xa.dy=0,ar&&de.revalue(Xa),Gr([Xa],Xa.dx*Xa.dy/Xa.value),(ar?xa:Xr)(Xa),Mt&&(ar=Fa),Fa}return ti.size=function(Sa){return arguments.length?(et=Sa,ti):et},ti.padding=function(Sa){if(!arguments.length)return mt;function Fa(ni){var La=Sa.call(ti,ni,ni.depth);return La==null?li(ni):Ci(ni,typeof La=="number"?[La,La,La,La]:La)}function Xa(ni){return Ci(ni,Sa)}var fi;return bt=(mt=Sa)==null?li:(fi=typeof Sa)=="function"?Fa:(fi==="number"&&(Sa=[Sa,Sa,Sa,Sa]),Xa),ti},ti.round=function(Sa){return arguments.length?(Fe=Sa?Math.round:Number,ti):Fe!=Number},ti.sticky=function(Sa){return arguments.length?(Mt=Sa,ar=null,ti):Mt},ti.ratio=function(Sa){return arguments.length?(_r=Sa,ti):_r},ti.mode=function(Sa){return arguments.length?(Ot=Sa+"",ti):Ot},Bu(ti,de)};function li(de){return{x:de.x,y:de.y,dx:de.dx,dy:de.dy}}function Ci(de,Fe){var et=de.x+Fe[3],mt=de.y+Fe[0],bt=de.dx-Fe[1]-Fe[3],Mt=de.dy-Fe[0]-Fe[2];return bt<0&&(et+=bt/2,bt=0),Mt<0&&(mt+=Mt/2,Mt=0),{x:et,y:mt,dx:bt,dy:Mt}}v.random={normal:function(de,Fe){var et=arguments.length;return et<2&&(Fe=1),et<1&&(de=0),function(){var mt,bt,Mt;do mt=Math.random()*2-1,bt=Math.random()*2-1,Mt=mt*mt+bt*bt;while(!Mt||Mt>1);return de+Fe*mt*Math.sqrt(-2*Math.log(Mt)/Mt)}},logNormal:function(){var de=v.random.normal.apply(v,arguments);return function(){return Math.exp(de())}},bates:function(de){var Fe=v.random.irwinHall(de);return function(){return Fe()/de}},irwinHall:function(de){return function(){for(var Fe=0,et=0;et<de;et++)Fe+=Math.random();return Fe}}},v.scale={};function Hi(de){var Fe=de[0],et=de[de.length-1];return Fe<et?[Fe,et]:[et,Fe]}function Qi(de){return de.rangeExtent?de.rangeExtent():Hi(de.range())}function dn(de,Fe,et,mt){var bt=et(de[0],de[1]),Mt=mt(Fe[0],Fe[1]);return function(ar){return Mt(bt(ar))}}function Pi(de,Fe){var et=0,mt=de.length-1,bt=de[et],Mt=de[mt],ar;return Mt<bt&&(ar=et,et=mt,mt=ar,ar=bt,bt=Mt,Mt=ar),de[et]=Fe.floor(bt),de[mt]=Fe.ceil(Mt),de}function Di(de){return de?{floor:function(Fe){return Math.floor(Fe/de)*de},ceil:function(Fe){return Math.ceil(Fe/de)*de}}:Ni}var Ni={floor:F,ceil:F};function mi(de,Fe,et,mt){var bt=[],Mt=[],ar=0,Ot=Math.min(de.length,Fe.length)-1;for(de[Ot]<de[0]&&(de=de.slice().reverse(),Fe=Fe.slice().reverse());++ar<=Ot;)bt.push(et(de[ar-1],de[ar])),Mt.push(mt(Fe[ar-1],Fe[ar]));return function(_r){var Gr=v.bisect(de,_r,1,Ot)-1;return Mt[Gr](bt[Gr](_r))}}v.scale.linear=function(){return Mn([0,1],[0,1],Ul,!1)};function Mn(de,Fe,et,mt){var bt,Mt;function ar(){var _r=Math.min(de.length,Fe.length)>2?mi:dn,Gr=mt?Cu:$f;return bt=_r(de,Fe,Gr,et),Mt=_r(Fe,de,Gr,Ul),Ot}function Ot(_r){return bt(_r)}return Ot.invert=function(_r){return Mt(_r)},Ot.domain=function(_r){return arguments.length?(de=_r.map(Number),ar()):de},Ot.range=function(_r){return arguments.length?(Fe=_r,ar()):Fe},Ot.rangeRound=function(_r){return Ot.range(_r).interpolate(Gu)},Ot.clamp=function(_r){return arguments.length?(mt=_r,ar()):mt},Ot.interpolate=function(_r){return arguments.length?(et=_r,ar()):et},Ot.ticks=function(_r){return fo(de,_r)},Ot.tickFormat=function(_r,Gr){return d3_scale_linearTickFormat(de,_r,Gr)},Ot.nice=function(_r){return ao(de,_r),ar()},Ot.copy=function(){return Mn(de,Fe,et,mt)},ar()}function Qn(de,Fe){return v.rebind(de,Fe,"range","rangeRound","interpolate","clamp")}function ao(de,Fe){return Pi(de,Di(eo(de,Fe)[2])),Pi(de,Di(eo(de,Fe)[2])),de}function eo(de,Fe){Fe==null&&(Fe=10);var et=Hi(de),mt=et[1]-et[0],bt=Math.pow(10,Math.floor(Math.log(mt/Fe)/Math.LN10)),Mt=Fe/mt*bt;return Mt<=.15?bt*=10:Mt<=.35?bt*=5:Mt<=.75&&(bt*=2),et[0]=Math.ceil(et[0]/bt)*bt,et[1]=Math.floor(et[1]/bt)*bt+bt*.5,et[2]=bt,et}function fo(de,Fe){return v.range.apply(v,eo(de,Fe))}var An={s:1,g:1,p:1,r:1,e:1};function un(de){return-Math.floor(Math.log(de)/Math.LN10+.01)}function yo(de,Fe){var et=un(Fe[2]);return de in An?Math.abs(et-un(Math.max(l(Fe[0]),l(Fe[1]))))+ +(de!=="e"):et-(de==="%")*2}v.scale.log=function(){return Ko(v.scale.linear().domain([0,1]),10,!0,[1,10])};function Ko(de,Fe,et,mt){function bt(Ot){return(et?Math.log(Ot<0?0:Ot):-Math.log(Ot>0?0:-Ot))/Math.log(Fe)}function Mt(Ot){return et?Math.pow(Fe,Ot):-Math.pow(Fe,-Ot)}function ar(Ot){return de(bt(Ot))}return ar.invert=function(Ot){return Mt(de.invert(Ot))},ar.domain=function(Ot){return arguments.length?(et=Ot[0]>=0,de.domain((mt=Ot.map(Number)).map(bt)),ar):mt},ar.base=function(Ot){return arguments.length?(Fe=+Ot,de.domain(mt.map(bt)),ar):Fe},ar.nice=function(){var Ot=Pi(mt.map(bt),et?Math:Ss);return de.domain(Ot),mt=Ot.map(Mt),ar},ar.ticks=function(){var Ot=Hi(mt),_r=[],Gr=Ot[0],Xr=Ot[1],xa=Math.floor(bt(Gr)),da=Math.ceil(bt(Xr)),Ja=Fe%1?2:Fe;if(isFinite(da-xa)){if(et){for(;xa<da;xa++)for(var ti=1;ti<Ja;ti++)_r.push(Mt(xa)*ti);_r.push(Mt(xa))}else for(_r.push(Mt(xa));xa++<da;)for(var ti=Ja-1;ti>0;ti--)_r.push(Mt(xa)*ti);for(xa=0;_r[xa]<Gr;xa++);for(da=_r.length;_r[da-1]>Xr;da--);_r=_r.slice(xa,da)}return _r},ar.copy=function(){return Ko(de.copy(),Fe,et,mt)},Qn(ar,de)}var Ss={floor:function(de){return-Math.ceil(-de)},ceil:function(de){return-Math.floor(-de)}};v.scale.pow=function(){return rl(v.scale.linear(),1,[0,1])};function rl(de,Fe,et){var mt=Os(Fe),bt=Os(1/Fe);function Mt(ar){return de(mt(ar))}return Mt.invert=function(ar){return bt(de.invert(ar))},Mt.domain=function(ar){return arguments.length?(de.domain((et=ar.map(Number)).map(mt)),Mt):et},Mt.ticks=function(ar){return fo(et,ar)},Mt.tickFormat=function(ar,Ot){return d3_scale_linearTickFormat(et,ar,Ot)},Mt.nice=function(ar){return Mt.domain(ao(et,ar))},Mt.exponent=function(ar){return arguments.length?(mt=Os(Fe=ar),bt=Os(1/Fe),de.domain(et.map(mt)),Mt):Fe},Mt.copy=function(){return rl(de.copy(),Fe,et)},Qn(Mt,de)}function Os(de){return function(Fe){return Fe<0?-Math.pow(-Fe,de):Math.pow(Fe,de)}}v.scale.sqrt=function(){return v.scale.pow().exponent(.5)},v.scale.ordinal=function(){return el([],{t:"range",a:[[]]})};function el(de,Fe){var et,mt,bt;function Mt(Ot){return mt[((et.get(Ot)||(Fe.t==="range"?et.set(Ot,de.push(Ot)):NaN))-1)%mt.length]}function ar(Ot,_r){return v.range(de.length).map(function(Gr){return Ot+_r*Gr})}return Mt.domain=function(Ot){if(!arguments.length)return de;de=[],et=new A;for(var _r=-1,Gr=Ot.length,Xr;++_r<Gr;)et.has(Xr=Ot[_r])||et.set(Xr,de.push(Xr));return Mt[Fe.t].apply(Mt,Fe.a)},Mt.range=function(Ot){return arguments.length?(mt=Ot,bt=0,Fe={t:"range",a:arguments},Mt):mt},Mt.rangePoints=function(Ot,_r){arguments.length<2&&(_r=0);var Gr=Ot[0],Xr=Ot[1],xa=de.length<2?(Gr=(Gr+Xr)/2,0):(Xr-Gr)/(de.length-1+_r);return mt=ar(Gr+xa*_r/2,xa),bt=0,Fe={t:"rangePoints",a:arguments},Mt},Mt.rangeRoundPoints=function(Ot,_r){arguments.length<2&&(_r=0);var Gr=Ot[0],Xr=Ot[1],xa=de.length<2?(Gr=Xr=Math.round((Gr+Xr)/2),0):(Xr-Gr)/(de.length-1+_r)|0;return mt=ar(Gr+Math.round(xa*_r/2+(Xr-Gr-(de.length-1+_r)*xa)/2),xa),bt=0,Fe={t:"rangeRoundPoints",a:arguments},Mt},Mt.rangeBands=function(Ot,_r,Gr){arguments.length<2&&(_r=0),arguments.length<3&&(Gr=_r);var Xr=Ot[1]<Ot[0],xa=Ot[Xr-0],da=Ot[1-Xr],Ja=(da-xa)/(de.length-_r+2*Gr);return mt=ar(xa+Ja*Gr,Ja),Xr&&mt.reverse(),bt=Ja*(1-_r),Fe={t:"rangeBands",a:arguments},Mt},Mt.rangeRoundBands=function(Ot,_r,Gr){arguments.length<2&&(_r=0),arguments.length<3&&(Gr=_r);var Xr=Ot[1]<Ot[0],xa=Ot[Xr-0],da=Ot[1-Xr],Ja=Math.floor((da-xa)/(de.length-_r+2*Gr));return mt=ar(xa+Math.round((da-xa-(de.length-_r)*Ja)/2),Ja),Xr&&mt.reverse(),bt=Math.round(Ja*(1-_r)),Fe={t:"rangeRoundBands",a:arguments},Mt},Mt.rangeBand=function(){return bt},Mt.rangeExtent=function(){return Hi(Fe.a[0])},Mt.copy=function(){return el(de,Fe)},Mt.domain(de)}v.scale.category10=function(){return v.scale.ordinal().range(bs)},v.scale.category20=function(){return v.scale.ordinal().range(Fl)},v.scale.category20b=function(){return v.scale.ordinal().range(_l)},v.scale.category20c=function(){return v.scale.ordinal().range(ll)};var bs=[2062260,16744206,2924588,14034728,9725885,9197131,14907330,8355711,12369186,1556175].map(Br),Fl=[2062260,11454440,16744206,16759672,2924588,10018698,14034728,16750742,9725885,12955861,9197131,12885140,14907330,16234194,8355711,13092807,12369186,14408589,1556175,10410725].map(Br),_l=[3750777,5395619,7040719,10264286,6519097,9216594,11915115,13556636,9202993,12426809,15186514,15190932,8666169,11356490,14049643,15177372,8077683,10834324,13528509,14589654].map(Br),ll=[3244733,7057110,10406625,13032431,15095053,16616764,16625259,16634018,3253076,7652470,10607003,13101504,7695281,10394312,12369372,14342891,6513507,9868950,12434877,14277081].map(Br);v.scale.quantile=function(){return Un([],[])};function Un(de,Fe){var et;function mt(){var Mt=0,ar=Fe.length;for(et=[];++Mt<ar;)et[Mt-1]=v.quantile(de,Mt/ar);return bt}function bt(Mt){if(!isNaN(Mt=+Mt))return Fe[v.bisect(et,Mt)]}return bt.domain=function(Mt){return arguments.length?(de=Mt.map(h).filter(c).sort(s),mt()):de},bt.range=function(Mt){return arguments.length?(Fe=Mt,mt()):Fe},bt.quantiles=function(){return et},bt.invertExtent=function(Mt){return Mt=Fe.indexOf(Mt),Mt<0?[NaN,NaN]:[Mt>0?et[Mt-1]:de[0],Mt<et.length?et[Mt]:de[de.length-1]]},bt.copy=function(){return Un(de,Fe)},mt()}v.scale.quantize=function(){return Lo(0,1,[0,1])};function Lo(de,Fe,et){var mt,bt;function Mt(Ot){return et[Math.max(0,Math.min(bt,Math.floor(mt*(Ot-de))))]}function ar(){return mt=et.length/(Fe-de),bt=et.length-1,Mt}return Mt.domain=function(Ot){return arguments.length?(de=+Ot[0],Fe=+Ot[Ot.length-1],ar()):[de,Fe]},Mt.range=function(Ot){return arguments.length?(et=Ot,ar()):et},Mt.invertExtent=function(Ot){return Ot=et.indexOf(Ot),Ot=Ot<0?NaN:Ot/mt+de,[Ot,Ot+1/mt]},Mt.copy=function(){return Lo(de,Fe,et)},ar()}v.scale.threshold=function(){return Js([.5],[0,1])};function Js(de,Fe){function et(mt){if(mt<=mt)return Fe[v.bisect(de,mt)]}return et.domain=function(mt){return arguments.length?(de=mt,et):de},et.range=function(mt){return arguments.length?(Fe=mt,et):Fe},et.invertExtent=function(mt){return mt=Fe.indexOf(mt),[de[mt-1],de[mt]]},et.copy=function(){return Js(de,Fe)},et}v.scale.identity=function(){return Rs([0,1])};function Rs(de){function Fe(et){return+et}return Fe.invert=Fe,Fe.domain=Fe.range=function(et){return arguments.length?(de=et.map(Fe),Fe):de},Fe.ticks=function(et){return fo(de,et)},Fe.tickFormat=function(et,mt){return d3_scale_linearTickFormat(de,et,mt)},Fe.copy=function(){return Rs(de)},Fe}v.svg={};function uu(){return 0}v.svg.arc=function(){var de=Zu,Fe=Ic,et=uu,mt=Iu,bt=bu,Mt=Rc,ar=Au;function Ot(){var Gr=Math.max(0,+de.apply(this,arguments)),Xr=Math.max(0,+Fe.apply(this,arguments)),xa=bt.apply(this,arguments)-Ee,da=Mt.apply(this,arguments)-Ee,Ja=Math.abs(da-xa),ti=xa>da?0:1;if(Xr<Gr&&(Sa=Xr,Xr=Gr,Gr=Sa),Ja>=Ce)return _r(Xr,ti)+(Gr?_r(Gr,1-ti):"")+"Z";var Sa,Fa,Xa,fi,ni=0,La=0,sn,rn,vn,Pn,Jn,ro,Yo,io,Ho=[];if((fi=(+ar.apply(this,arguments)||0)/2)&&(Xa=mt===Iu?Math.sqrt(Gr*Gr+Xr*Xr):+mt.apply(this,arguments),ti||(La*=-1),Xr&&(La=ir(Xa/Xr*Math.sin(fi))),Gr&&(ni=ir(Xa/Gr*Math.sin(fi)))),Xr){sn=Xr*Math.cos(xa+La),rn=Xr*Math.sin(xa+La),vn=Xr*Math.cos(da-La),Pn=Xr*Math.sin(da-La);var cl=Math.abs(da-xa-2*La)<=Ie?0:1;if(La&&yc(sn,rn,vn,Pn)===ti^cl){var al=(xa+da)/2;sn=Xr*Math.cos(al),rn=Xr*Math.sin(al),vn=Pn=null}}else sn=rn=0;if(Gr){Jn=Gr*Math.cos(da-ni),ro=Gr*Math.sin(da-ni),Yo=Gr*Math.cos(xa+ni),io=Gr*Math.sin(xa+ni);var xl=Math.abs(xa-da+2*ni)<=Ie?0:1;if(ni&&yc(Jn,ro,Yo,io)===1-ti^xl){var gn=(xa+da)/2;Jn=Gr*Math.cos(gn),ro=Gr*Math.sin(gn),Yo=io=null}}else Jn=ro=0;if(Ja>Ke&&(Sa=Math.min(Math.abs(Xr-Gr)/2,+et.apply(this,arguments)))>.001){Fa=Gr<Xr^ti?0:1;var vo=Sa,cs=Sa;if(Ja<Ie){var ms=Yo==null?[Jn,ro]:vn==null?[sn,rn]:No([sn,rn],[Yo,io],[vn,Pn],[Jn,ro]),Al=sn-ms[0],Hl=rn-ms[1],Su=vn-ms[0],Rl=Pn-ms[1],_c=1/Math.sin(Math.acos((Al*Su+Hl*Rl)/(Math.sqrt(Al*Al+Hl*Hl)*Math.sqrt(Su*Su+Rl*Rl)))/2),it=Math.sqrt(ms[0]*ms[0]+ms[1]*ms[1]);cs=Math.min(Sa,(Gr-it)/(_c-1)),vo=Math.min(Sa,(Xr-it)/(_c+1))}if(vn!=null){var Zt=ho(Yo==null?[Jn,ro]:[Yo,io],[sn,rn],Xr,vo,ti),fr=ho([vn,Pn],[Jn,ro],Xr,vo,ti);Sa===vo?Ho.push("M",Zt[0],"A",vo,",",vo," 0 0,",Fa," ",Zt[1],"A",Xr,",",Xr," 0 ",1-ti^yc(Zt[1][0],Zt[1][1],fr[1][0],fr[1][1]),",",ti," ",fr[1],"A",vo,",",vo," 0 0,",Fa," ",fr[0]):Ho.push("M",Zt[0],"A",vo,",",vo," 0 1,",Fa," ",fr[0])}else Ho.push("M",sn,",",rn);if(Yo!=null){var oa=ho([sn,rn],[Yo,io],Gr,-cs,ti),wa=ho([Jn,ro],vn==null?[sn,rn]:[vn,Pn],Gr,-cs,ti);Sa===cs?Ho.push("L",wa[0],"A",cs,",",cs," 0 0,",Fa," ",wa[1],"A",Gr,",",Gr," 0 ",ti^yc(wa[1][0],wa[1][1],oa[1][0],oa[1][1]),",",1-ti," ",oa[1],"A",cs,",",cs," 0 0,",Fa," ",oa[0]):Ho.push("L",wa[0],"A",cs,",",cs," 0 0,",Fa," ",oa[0])}else Ho.push("L",Jn,",",ro)}else Ho.push("M",sn,",",rn),vn!=null&&Ho.push("A",Xr,",",Xr," 0 ",cl,",",ti," ",vn,",",Pn),Ho.push("L",Jn,",",ro),Yo!=null&&Ho.push("A",Gr,",",Gr," 0 ",xl,",",1-ti," ",Yo,",",io);return Ho.push("Z"),Ho.join("")}function _r(Gr,Xr){return"M0,"+Gr+"A"+Gr+","+Gr+" 0 1,"+Xr+" 0,"+-Gr+"A"+Gr+","+Gr+" 0 1,"+Xr+" 0,"+Gr}return Ot.innerRadius=function(Gr){return arguments.length?(de=Or(Gr),Ot):de},Ot.outerRadius=function(Gr){return arguments.length?(Fe=Or(Gr),Ot):Fe},Ot.cornerRadius=function(Gr){return arguments.length?(et=Or(Gr),Ot):et},Ot.padRadius=function(Gr){return arguments.length?(mt=Gr==Iu?Iu:Or(Gr),Ot):mt},Ot.startAngle=function(Gr){return arguments.length?(bt=Or(Gr),Ot):bt},Ot.endAngle=function(Gr){return arguments.length?(Mt=Or(Gr),Ot):Mt},Ot.padAngle=function(Gr){return arguments.length?(ar=Or(Gr),Ot):ar},Ot.centroid=function(){var Gr=(+de.apply(this,arguments)+ +Fe.apply(this,arguments))/2,Xr=(+bt.apply(this,arguments)+ +Mt.apply(this,arguments))/2-Ee;return[Math.cos(Xr)*Gr,Math.sin(Xr)*Gr]},Ot};var Iu="auto";function Zu(de){return de.innerRadius}function Ic(de){return de.outerRadius}function bu(de){return de.startAngle}function Rc(de){return de.endAngle}function Au(de){return de&&de.padAngle}function yc(de,Fe,et,mt){return(de-et)*Fe-(Fe-mt)*de>0?0:1}function ho(de,Fe,et,mt,bt){var Mt=de[0]-Fe[0],ar=de[1]-Fe[1],Ot=(bt?mt:-mt)/Math.sqrt(Mt*Mt+ar*ar),_r=Ot*ar,Gr=-Ot*Mt,Xr=de[0]+_r,xa=de[1]+Gr,da=Fe[0]+_r,Ja=Fe[1]+Gr,ti=(Xr+da)/2,Sa=(xa+Ja)/2,Fa=da-Xr,Xa=Ja-xa,fi=Fa*Fa+Xa*Xa,ni=et-mt,La=Xr*Ja-da*xa,sn=(Xa<0?-1:1)*Math.sqrt(Math.max(0,ni*ni*fi-La*La)),rn=(La*Xa-Fa*sn)/fi,vn=(-La*Fa-Xa*sn)/fi,Pn=(La*Xa+Fa*sn)/fi,Jn=(-La*Fa+Xa*sn)/fi,ro=rn-ti,Yo=vn-Sa,io=Pn-ti,Ho=Jn-Sa;return ro*ro+Yo*Yo>io*io+Ho*Ho&&(rn=Pn,vn=Jn),[[rn-_r,vn-Gr],[rn*et/ni,vn*et/ni]]}function Ro(){return!0}function Dc(de){var Fe=cn,et=lo,mt=Ro,bt=Yu,Mt=bt.key,ar=.7;function Ot(_r){var Gr=[],Xr=[],xa=-1,da=_r.length,Ja,ti=Or(Fe),Sa=Or(et);function Fa(){Gr.push("M",bt(de(Xr),ar))}for(;++xa<da;)mt.call(this,Ja=_r[xa],xa)?Xr.push([+ti.call(this,Ja,xa),+Sa.call(this,Ja,xa)]):Xr.length&&(Fa(),Xr=[]);return Xr.length&&Fa(),Gr.length?Gr.join(""):null}return Ot.x=function(_r){return arguments.length?(Fe=_r,Ot):Fe},Ot.y=function(_r){return arguments.length?(et=_r,Ot):et},Ot.defined=function(_r){return arguments.length?(mt=_r,Ot):mt},Ot.interpolate=function(_r){return arguments.length?(typeof _r=="function"?Mt=bt=_r:Mt=(bt=lc.get(_r)||Yu).key,Ot):Mt},Ot.tension=function(_r){return arguments.length?(ar=_r,Ot):ar},Ot}v.svg.line=function(){return Dc(F)};var lc=v.map({linear:Yu,"linear-closed":Ue,step:I,"step-before":ie,"step-after":we,basis:$t,"basis-open":Tr,"basis-closed":Ar,bundle:Kr,cardinal:dt,"cardinal-open":Se,"cardinal-closed":Be,monotone:cr});lc.forEach(function(de,Fe){Fe.key=de,Fe.closed=/-closed$/.test(de)});function Yu(de){return de.length>1?de.join("L"):de+"Z"}function Ue(de){return de.join("L")+"Z"}function I(de){for(var Fe=0,et=de.length,mt=de[0],bt=[mt[0],",",mt[1]];++Fe<et;)bt.push("H",(mt[0]+(mt=de[Fe])[0])/2,"V",mt[1]);return et>1&&bt.push("H",mt[0]),bt.join("")}function ie(de){for(var Fe=0,et=de.length,mt=de[0],bt=[mt[0],",",mt[1]];++Fe<et;)bt.push("V",(mt=de[Fe])[1],"H",mt[0]);return bt.join("")}function we(de){for(var Fe=0,et=de.length,mt=de[0],bt=[mt[0],",",mt[1]];++Fe<et;)bt.push("H",(mt=de[Fe])[0],"V",mt[1]);return bt.join("")}function Se(de,Fe){return de.length<4?Yu(de):de[1]+St(de.slice(1,-1),Nt(de,Fe))}function Be(de,Fe){return de.length<3?Ue(de):de[0]+St((de.push(de[0]),de),Nt([de[de.length-2]].concat(de,[de[1]]),Fe))}function dt(de,Fe){return de.length<3?Yu(de):de[0]+St(de,Nt(de,Fe))}function St(de,Fe){if(Fe.length<1||de.length!=Fe.length&&de.length!=Fe.length+2)return Yu(de);var et=de.length!=Fe.length,mt="",bt=de[0],Mt=de[1],ar=Fe[0],Ot=ar,_r=1;if(et&&(mt+="Q"+(Mt[0]-ar[0]*2/3)+","+(Mt[1]-ar[1]*2/3)+","+Mt[0]+","+Mt[1],bt=de[1],_r=2),Fe.length>1){Ot=Fe[1],Mt=de[_r],_r++,mt+="C"+(bt[0]+ar[0])+","+(bt[1]+ar[1])+","+(Mt[0]-Ot[0])+","+(Mt[1]-Ot[1])+","+Mt[0]+","+Mt[1];for(var Gr=2;Gr<Fe.length;Gr++,_r++)Mt=de[_r],Ot=Fe[Gr],mt+="S"+(Mt[0]-Ot[0])+","+(Mt[1]-Ot[1])+","+Mt[0]+","+Mt[1]}if(et){var Xr=de[_r];mt+="Q"+(Mt[0]+Ot[0]*2/3)+","+(Mt[1]+Ot[1]*2/3)+","+Xr[0]+","+Xr[1]}return mt}function Nt(de,Fe){for(var et=[],mt=(1-Fe)/2,bt,Mt=de[0],ar=de[1],Ot=1,_r=de.length;++Ot<_r;)bt=Mt,Mt=ar,ar=de[Ot],et.push([mt*(ar[0]-bt[0]),mt*(ar[1]-bt[1])]);return et}function $t(de){if(de.length<3)return Yu(de);var Fe=1,et=de.length,mt=de[0],bt=mt[0],Mt=mt[1],ar=[bt,bt,bt,(mt=de[1])[0]],Ot=[Mt,Mt,Mt,mt[1]],_r=[bt,",",Mt,"L",na(lt,ar),",",na(lt,Ot)];for(de.push(de[et-1]);++Fe<=et;)mt=de[Fe],ar.shift(),ar.push(mt[0]),Ot.shift(),Ot.push(mt[1]),vt(_r,ar,Ot);return de.pop(),_r.push("L",mt),_r.join("")}function Tr(de){if(de.length<4)return Yu(de);for(var Fe=[],et=-1,mt=de.length,bt,Mt=[0],ar=[0];++et<3;)bt=de[et],Mt.push(bt[0]),ar.push(bt[1]);for(Fe.push(na(lt,Mt)+","+na(lt,ar)),--et;++et<mt;)bt=de[et],Mt.shift(),Mt.push(bt[0]),ar.shift(),ar.push(bt[1]),vt(Fe,Mt,ar);return Fe.join("")}function Ar(de){for(var Fe,et=-1,mt=de.length,bt=mt+4,Mt,ar=[],Ot=[];++et<4;)Mt=de[et%mt],ar.push(Mt[0]),Ot.push(Mt[1]);for(Fe=[na(lt,ar),",",na(lt,Ot)],--et;++et<bt;)Mt=de[et%mt],ar.shift(),ar.push(Mt[0]),Ot.shift(),Ot.push(Mt[1]),vt(Fe,ar,Ot);return Fe.join("")}function Kr(de,Fe){var et=de.length-1;if(et)for(var mt=de[0][0],bt=de[0][1],Mt=de[et][0]-mt,ar=de[et][1]-bt,Ot=-1,_r,Gr;++Ot<=et;)_r=de[Ot],Gr=Ot/et,_r[0]=Fe*_r[0]+(1-Fe)*(mt+Gr*Mt),_r[1]=Fe*_r[1]+(1-Fe)*(bt+Gr*ar);return $t(de)}function na(de,Fe){return de[0]*Fe[0]+de[1]*Fe[1]+de[2]*Fe[2]+de[3]*Fe[3]}var He=[0,2/3,1/3,0],Je=[0,1/3,2/3,0],lt=[0,1/6,2/3,1/6];function vt(de,Fe,et){de.push("C",na(He,Fe),",",na(He,et),",",na(Je,Fe),",",na(Je,et),",",na(lt,Fe),",",na(lt,et))}function Lt(de,Fe){return(Fe[1]-de[1])/(Fe[0]-de[0])}function At(de){for(var Fe=0,et=de.length-1,mt=[],bt=de[0],Mt=de[1],ar=mt[0]=Lt(bt,Mt);++Fe<et;)mt[Fe]=(ar+(ar=Lt(bt=Mt,Mt=de[Fe+1])))/2;return mt[Fe]=ar,mt}function zt(de){for(var Fe=[],et,mt,bt,Mt,ar=At(de),Ot=-1,_r=de.length-1;++Ot<_r;)et=Lt(de[Ot],de[Ot+1]),l(et)<Ke?ar[Ot]=ar[Ot+1]=0:(mt=ar[Ot]/et,bt=ar[Ot+1]/et,Mt=mt*mt+bt*bt,Mt>9&&(Mt=et*3/Math.sqrt(Mt),ar[Ot]=Mt*mt,ar[Ot+1]=Mt*bt));for(Ot=-1;++Ot<=_r;)Mt=(de[Math.min(_r,Ot+1)][0]-de[Math.max(0,Ot-1)][0])/(6*(1+ar[Ot]*ar[Ot])),Fe.push([Mt||0,ar[Ot]*Mt||0]);return Fe}function cr(de){return de.length<3?Yu(de):de[0]+St(de,zt(de))}v.svg.line.radial=function(){var de=Dc(yr);return de.radius=de.x,delete de.x,de.angle=de.y,delete de.y,de};function yr(de){for(var Fe,et=-1,mt=de.length,bt,Mt;++et<mt;)Fe=de[et],bt=Fe[0],Mt=Fe[1]-Ee,Fe[0]=bt*Math.cos(Mt),Fe[1]=bt*Math.sin(Mt);return de}function Er(de){var Fe=cn,et=cn,mt=0,bt=lo,Mt=Ro,ar=Yu,Ot=ar.key,_r=ar,Gr="L",Xr=.7;function xa(da){var Ja=[],ti=[],Sa=[],Fa=-1,Xa=da.length,fi,ni=Or(Fe),La=Or(mt),sn=Fe===et?function(){return vn}:Or(et),rn=mt===bt?function(){return Pn}:Or(bt),vn,Pn;function Jn(){Ja.push("M",ar(de(Sa),Xr),Gr,_r(de(ti.reverse()),Xr),"Z")}for(;++Fa<Xa;)Mt.call(this,fi=da[Fa],Fa)?(ti.push([vn=+ni.call(this,fi,Fa),Pn=+La.call(this,fi,Fa)]),Sa.push([+sn.call(this,fi,Fa),+rn.call(this,fi,Fa)])):ti.length&&(Jn(),ti=[],Sa=[]);return ti.length&&Jn(),Ja.length?Ja.join(""):null}return xa.x=function(da){return arguments.length?(Fe=et=da,xa):et},xa.x0=function(da){return arguments.length?(Fe=da,xa):Fe},xa.x1=function(da){return arguments.length?(et=da,xa):et},xa.y=function(da){return arguments.length?(mt=bt=da,xa):bt},xa.y0=function(da){return arguments.length?(mt=da,xa):mt},xa.y1=function(da){return arguments.length?(bt=da,xa):bt},xa.defined=function(da){return arguments.length?(Mt=da,xa):Mt},xa.interpolate=function(da){return arguments.length?(typeof da=="function"?Ot=ar=da:Ot=(ar=lc.get(da)||Yu).key,_r=ar.reverse||ar,Gr=ar.closed?"M":"L",xa):Ot},xa.tension=function(da){return arguments.length?(Xr=da,xa):Xr},xa}ie.reverse=we,we.reverse=ie,v.svg.area=function(){return Er(F)},v.svg.area.radial=function(){var de=Er(yr);return de.radius=de.x,delete de.x,de.innerRadius=de.x0,delete de.x0,de.outerRadius=de.x1,delete de.x1,de.angle=de.y,delete de.y,de.startAngle=de.y0,delete de.y0,de.endAngle=de.y1,delete de.y1,de};function jr(de){return de.source}function Qr(de){return de.target}v.svg.chord=function(){var de=jr,Fe=Qr,et=pa,mt=bu,bt=Rc;function Mt(Xr,xa){var da=ar(this,de,Xr,xa),Ja=ar(this,Fe,Xr,xa);return"M"+da.p0+_r(da.r,da.p1,da.a1-da.a0)+(Ot(da,Ja)?Gr(da.r,da.p1,da.r,da.p0):Gr(da.r,da.p1,Ja.r,Ja.p0)+_r(Ja.r,Ja.p1,Ja.a1-Ja.a0)+Gr(Ja.r,Ja.p1,da.r,da.p0))+"Z"}function ar(Xr,xa,da,Ja){var ti=xa.call(Xr,da,Ja),Sa=et.call(Xr,ti,Ja),Fa=mt.call(Xr,ti,Ja)-Ee,Xa=bt.call(Xr,ti,Ja)-Ee;return{r:Sa,a0:Fa,a1:Xa,p0:[Sa*Math.cos(Fa),Sa*Math.sin(Fa)],p1:[Sa*Math.cos(Xa),Sa*Math.sin(Xa)]}}function Ot(Xr,xa){return Xr.a0==xa.a0&&Xr.a1==xa.a1}function _r(Xr,xa,da){return"A"+Xr+","+Xr+" 0 "+ +(da>Ie)+",1 "+xa}function Gr(Xr,xa,da,Ja){return"Q 0,0 "+Ja}return Mt.radius=function(Xr){return arguments.length?(et=Or(Xr),Mt):et},Mt.source=function(Xr){return arguments.length?(de=Or(Xr),Mt):de},Mt.target=function(Xr){return arguments.length?(Fe=Or(Xr),Mt):Fe},Mt.startAngle=function(Xr){return arguments.length?(mt=Or(Xr),Mt):mt},Mt.endAngle=function(Xr){return arguments.length?(bt=Or(Xr),Mt):bt},Mt};function pa(de){return de.radius}v.svg.diagonal=function(){var de=jr,Fe=Qr,et=Aa;function mt(bt,Mt){var ar=de.call(this,bt,Mt),Ot=Fe.call(this,bt,Mt),_r=(ar.y+Ot.y)/2,Gr=[ar,{x:ar.x,y:_r},{x:Ot.x,y:_r},Ot];return Gr=Gr.map(et),"M"+Gr[0]+"C"+Gr[1]+" "+Gr[2]+" "+Gr[3]}return mt.source=function(bt){return arguments.length?(de=Or(bt),mt):de},mt.target=function(bt){return arguments.length?(Fe=Or(bt),mt):Fe},mt.projection=function(bt){return arguments.length?(et=bt,mt):et},mt};function Aa(de){return[de.x,de.y]}v.svg.diagonal.radial=function(){var de=v.svg.diagonal(),Fe=Aa,et=de.projection;return de.projection=function(mt){return arguments.length?et(za(Fe=mt)):Fe},de};function za(de){return function(){var Fe=de.apply(this,arguments),et=Fe[0],mt=Fe[1]-Ee;return[et*Math.cos(mt),et*Math.sin(mt)]}}v.svg.symbol=function(){var de=Vi,Fe=ci;function et(mt,bt){return(nn.get(de.call(this,mt,bt))||ji)(Fe.call(this,mt,bt))}return et.type=function(mt){return arguments.length?(de=Or(mt),et):de},et.size=function(mt){return arguments.length?(Fe=Or(mt),et):Fe},et};function ci(){return 64}function Vi(){return"circle"}function ji(de){var Fe=Math.sqrt(de/Ie);return"M0,"+Fe+"A"+Fe+","+Fe+" 0 1,1 0,"+-Fe+"A"+Fe+","+Fe+" 0 1,1 0,"+Fe+"Z"}var nn=v.map({circle:ji,cross:function(de){var Fe=Math.sqrt(de/5)/2;return"M"+-3*Fe+","+-Fe+"H"+-Fe+"V"+-3*Fe+"H"+Fe+"V"+-Fe+"H"+3*Fe+"V"+Fe+"H"+Fe+"V"+3*Fe+"H"+-Fe+"V"+Fe+"H"+-3*Fe+"Z"},diamond:function(de){var Fe=Math.sqrt(de/(2*Kn)),et=Fe*Kn;return"M0,"+-Fe+"L"+et+",0 0,"+Fe+" "+-et+",0Z"},square:function(de){var Fe=Math.sqrt(de)/2;return"M"+-Fe+","+-Fe+"L"+Fe+","+-Fe+" "+Fe+","+Fe+" "+-Fe+","+Fe+"Z"},"triangle-down":function(de){var Fe=Math.sqrt(de/Sn),et=Fe*Sn/2;return"M0,"+et+"L"+Fe+","+-et+" "+-Fe+","+-et+"Z"},"triangle-up":function(de){var Fe=Math.sqrt(de/Sn),et=Fe*Sn/2;return"M0,"+-et+"L"+Fe+","+et+" "+-Fe+","+et+"Z"}});v.svg.symbolTypes=nn.keys();var Sn=Math.sqrt(3),Kn=Math.tan(30*Pe);ae.transition=function(de){for(var Fe=ps||++Zo,et=$o(de),mt=[],bt,Mt,ar=ul||{time:Date.now(),ease:jl,delay:0,duration:250},Ot=-1,_r=this.length;++Ot<_r;){mt.push(bt=[]);for(var Gr=this[Ot],Xr=-1,xa=Gr.length;++Xr<xa;)(Mt=Gr[Xr])&&Il(Mt,Xr,et,Fe,ar),bt.push(Mt)}return is(mt,et,Fe)},ae.interrupt=function(de){return this.each(de==null?Bn:wo($o(de)))};var Bn=wo($o());function wo(de){return function(){var Fe,et,mt;(Fe=this[de])&&(mt=Fe[et=Fe.active])&&(mt.timer.c=null,mt.timer.t=NaN,--Fe.count?delete Fe[et]:delete this[de],Fe.active+=.5,mt.event&&mt.event.interrupt.call(this,this.__data__,mt.index))}}function is(de,Fe,et){return V(de,Ao),de.namespace=Fe,de.id=et,de}var Ao=[],Zo=0,ps,ul;Ao.call=ae.call,Ao.empty=ae.empty,Ao.node=ae.node,Ao.size=ae.size,v.transition=function(de,Fe){return de&&de.transition?ps?de.transition(Fe):de:v.selection().transition(de)},v.transition.prototype=Ao,Ao.select=function(de){var Fe=this.id,et=this.namespace,mt=[],bt,Mt,ar;de=j(de);for(var Ot=-1,_r=this.length;++Ot<_r;){mt.push(bt=[]);for(var Gr=this[Ot],Xr=-1,xa=Gr.length;++Xr<xa;)(ar=Gr[Xr])&&(Mt=de.call(ar,ar.__data__,Xr,Ot))?("__data__"in ar&&(Mt.__data__=ar.__data__),Il(Mt,Xr,et,Fe,ar[et][Fe]),bt.push(Mt)):bt.push(null)}return is(mt,et,Fe)},Ao.selectAll=function(de){var Fe=this.id,et=this.namespace,mt=[],bt,Mt,ar,Ot,_r;de=Q(de);for(var Gr=-1,Xr=this.length;++Gr<Xr;)for(var xa=this[Gr],da=-1,Ja=xa.length;++da<Ja;)if(ar=xa[da]){_r=ar[et][Fe],Mt=de.call(ar,ar.__data__,da,Gr),mt.push(bt=[]);for(var ti=-1,Sa=Mt.length;++ti<Sa;)(Ot=Mt[ti])&&Il(Ot,ti,et,Fe,_r),bt.push(Ot)}return is(mt,et,Fe)},Ao.filter=function(de){var Fe=[],et,mt,bt;typeof de!="function"&&(de=he(de));for(var Mt=0,ar=this.length;Mt<ar;Mt++){Fe.push(et=[]);for(var mt=this[Mt],Ot=0,_r=mt.length;Ot<_r;Ot++)(bt=mt[Ot])&&de.call(bt,bt.__data__,Ot,Mt)&&et.push(bt)}return is(Fe,this.namespace,this.id)},Ao.tween=function(de,Fe){var et=this.id,mt=this.namespace;return arguments.length<2?this.node()[mt][et].tween.get(de):tt(this,Fe==null?function(bt){bt[mt][et].tween.remove(de)}:function(bt){bt[mt][et].tween.set(de,Fe)})};function tl(de,Fe,et,mt){var bt=de.id,Mt=de.namespace;return tt(de,typeof et=="function"?function(ar,Ot,_r){ar[Mt][bt].tween.set(Fe,mt(et.call(ar,ar.__data__,Ot,_r)))}:(et=mt(et),function(ar){ar[Mt][bt].tween.set(Fe,et)}))}Ao.attr=function(de,Fe){if(arguments.length<2){for(Fe in de)this.attr(Fe,de[Fe]);return this}var et=de=="transform"?Zc:Ul,mt=v.ns.qualify(de);function bt(){this.removeAttribute(mt)}function Mt(){this.removeAttributeNS(mt.space,mt.local)}function ar(_r){return _r==null?bt:(_r+="",function(){var Gr=this.getAttribute(mt),Xr;return Gr!==_r&&(Xr=et(Gr,_r),function(xa){this.setAttribute(mt,Xr(xa))})})}function Ot(_r){return _r==null?Mt:(_r+="",function(){var Gr=this.getAttributeNS(mt.space,mt.local),Xr;return Gr!==_r&&(Xr=et(Gr,_r),function(xa){this.setAttributeNS(mt.space,mt.local,Xr(xa))})})}return tl(this,"attr."+de,Fe,mt.local?Ot:ar)},Ao.attrTween=function(de,Fe){var et=v.ns.qualify(de);function mt(Mt,ar){var Ot=Fe.call(this,Mt,ar,this.getAttribute(et));return Ot&&function(_r){this.setAttribute(et,Ot(_r))}}function bt(Mt,ar){var Ot=Fe.call(this,Mt,ar,this.getAttributeNS(et.space,et.local));return Ot&&function(_r){this.setAttributeNS(et.space,et.local,Ot(_r))}}return this.tween("attr."+de,et.local?bt:mt)},Ao.style=function(de,Fe,et){var mt=arguments.length;if(mt<3){if(typeof de!="string"){mt<2&&(Fe="");for(et in de)this.style(et,de[et],Fe);return this}et=""}function bt(){this.style.removeProperty(de)}function Mt(ar){return ar==null?bt:(ar+="",function(){var Ot=t(this).getComputedStyle(this,null).getPropertyValue(de),_r;return Ot!==ar&&(_r=Ul(Ot,ar),function(Gr){this.style.setProperty(de,_r(Gr),et)})})}return tl(this,"style."+de,Fe,Mt)},Ao.styleTween=function(de,Fe,et){arguments.length<3&&(et="");function mt(bt,Mt){var ar=Fe.call(this,bt,Mt,t(this).getComputedStyle(this,null).getPropertyValue(de));return ar&&function(Ot){this.style.setProperty(de,ar(Ot),et)}}return this.tween("style."+de,mt)},Ao.text=function(de){return tl(this,"text",de,Jo)};function Jo(de){return de==null&&(de=""),function(){this.textContent=de}}Ao.remove=function(){var de=this.namespace;return this.each("end.transition",function(){var Fe;this[de].count<2&&(Fe=this.parentNode)&&Fe.removeChild(this)})},Ao.ease=function(de){var Fe=this.id,et=this.namespace;return arguments.length<1?this.node()[et][Fe].ease:(typeof de!="function"&&(de=v.ease.apply(v,arguments)),tt(this,function(mt){mt[et][Fe].ease=de}))},Ao.delay=function(de){var Fe=this.id,et=this.namespace;return arguments.length<1?this.node()[et][Fe].delay:tt(this,typeof de=="function"?function(mt,bt,Mt){mt[et][Fe].delay=+de.call(mt,mt.__data__,bt,Mt)}:(de=+de,function(mt){mt[et][Fe].delay=de}))},Ao.duration=function(de){var Fe=this.id,et=this.namespace;return arguments.length<1?this.node()[et][Fe].duration:tt(this,typeof de=="function"?function(mt,bt,Mt){mt[et][Fe].duration=Math.max(1,de.call(mt,mt.__data__,bt,Mt))}:(de=Math.max(1,de),function(mt){mt[et][Fe].duration=de}))},Ao.each=function(de,Fe){var et=this.id,mt=this.namespace;if(arguments.length<2){var bt=ul,Mt=ps;try{ps=et,tt(this,function(ar,Ot,_r){ul=ar[mt][et],de.call(ar,ar.__data__,Ot,_r)})}finally{ul=bt,ps=Mt}}else tt(this,function(ar){var Ot=ar[mt][et];(Ot.event||(Ot.event=v.dispatch("start","end","interrupt"))).on(de,Fe)});return this},Ao.transition=function(){for(var de=this.id,Fe=++Zo,et=this.namespace,mt=[],bt,Mt,ar,Ot,_r=0,Gr=this.length;_r<Gr;_r++){mt.push(bt=[]);for(var Mt=this[_r],Xr=0,xa=Mt.length;Xr<xa;Xr++)(ar=Mt[Xr])&&(Ot=ar[et][de],Il(ar,Xr,et,Fe,{time:Ot.time,ease:Ot.ease,delay:Ot.delay+Ot.duration,duration:Ot.duration})),bt.push(ar)}return is(mt,et,Fe)};function $o(de){return de==null?"__transition__":"__transition_"+de+"__"}function Il(de,Fe,et,mt,bt){var Mt=de[et]||(de[et]={active:0,count:0}),ar=Mt[mt],Ot,_r,Gr,Xr,xa;function da(Sa){var Fa=ar.delay;if(_r.t=Fa+Ot,Fa<=Sa)return Ja(Sa-Fa);_r.c=Ja}function Ja(Sa){var Fa=Mt.active,Xa=Mt[Fa];Xa&&(Xa.timer.c=null,Xa.timer.t=NaN,--Mt.count,delete Mt[Fa],Xa.event&&Xa.event.interrupt.call(de,de.__data__,Xa.index));for(var fi in Mt)if(+fi<mt){var ni=Mt[fi];ni.timer.c=null,ni.timer.t=NaN,--Mt.count,delete Mt[fi]}_r.c=ti,Rn(function(){return _r.c&&ti(Sa||1)&&(_r.c=null,_r.t=NaN),1},0,Ot),Mt.active=mt,ar.event&&ar.event.start.call(de,de.__data__,Fe),xa=[],ar.tween.forEach(function(La,sn){(sn=sn.call(de,de.__data__,Fe))&&xa.push(sn)}),Xr=ar.ease,Gr=ar.duration}function ti(Sa){for(var Fa=Sa/Gr,Xa=Xr(Fa),fi=xa.length;fi>0;)xa[--fi].call(de,Xa);if(Fa>=1)return ar.event&&ar.event.end.call(de,de.__data__,Fe),--Mt.count?delete Mt[mt]:delete de[et],1}ar||(Ot=bt.time,_r=Rn(da,0,Ot),ar=Mt[mt]={tween:new A,time:Ot,timer:_r,delay:bt.delay,duration:bt.duration,ease:bt.ease,index:Fe},bt=null,++Mt.count)}v.svg.axis=function(){var de=v.scale.linear(),Fe=eu,et=6,mt=6,bt=3,Mt=[10],ar=null,Ot;function _r(Gr){Gr.each(function(){var Xr=v.select(this),xa=this.__chart__||de,da=this.__chart__=de.copy(),Ja=ar??(da.ticks?da.ticks.apply(da,Mt):da.domain()),ti=Ot??(da.tickFormat?da.tickFormat.apply(da,Mt):F),Sa=Xr.selectAll(".tick").data(Ja,da),Fa=Sa.enter().insert("g",".domain").attr("class","tick").style("opacity",Ke),Xa=v.transition(Sa.exit()).style("opacity",Ke).remove(),fi=v.transition(Sa.order()).style("opacity",1),ni=Math.max(et,0)+bt,La,sn=Qi(da),rn=Xr.selectAll(".domain").data([0]),vn=(rn.enter().append("path").attr("class","domain"),v.transition(rn));Fa.append("line"),Fa.append("text");var Pn=Fa.select("line"),Jn=fi.select("line"),ro=Sa.select("text").text(ti),Yo=Fa.select("text"),io=fi.select("text"),Ho=Fe==="top"||Fe==="left"?-1:1,cl,al,xl,gn;if(Fe==="bottom"||Fe==="top"?(La=vu,cl="x",xl="y",al="x2",gn="y2",ro.attr("dy",Ho<0?"0em":".71em").style("text-anchor","middle"),vn.attr("d","M"+sn[0]+","+Ho*mt+"V0H"+sn[1]+"V"+Ho*mt)):(La=Tl,cl="y",xl="x",al="y2",gn="x2",ro.attr("dy",".32em").style("text-anchor",Ho<0?"end":"start"),vn.attr("d","M"+Ho*mt+","+sn[0]+"H0V"+sn[1]+"H"+Ho*mt)),Pn.attr(gn,Ho*et),Yo.attr(xl,Ho*ni),Jn.attr(al,0).attr(gn,Ho*et),io.attr(cl,0).attr(xl,Ho*ni),da.rangeBand){var vo=da,cs=vo.rangeBand()/2;xa=da=function(ms){return vo(ms)+cs}}else xa.rangeBand?xa=da:Xa.call(La,da,xa);Fa.call(La,xa,da),fi.call(La,da,da)})}return _r.scale=function(Gr){return arguments.length?(de=Gr,_r):de},_r.orient=function(Gr){return arguments.length?(Fe=Gr in Ru?Gr+"":eu,_r):Fe},_r.ticks=function(){return arguments.length?(Mt=S(arguments),_r):Mt},_r.tickValues=function(Gr){return arguments.length?(ar=Gr,_r):ar},_r.tickFormat=function(Gr){return arguments.length?(Ot=Gr,_r):Ot},_r.tickSize=function(Gr){var Xr=arguments.length;return Xr?(et=+Gr,mt=+arguments[Xr-1],_r):et},_r.innerTickSize=function(Gr){return arguments.length?(et=+Gr,_r):et},_r.outerTickSize=function(Gr){return arguments.length?(mt=+Gr,_r):mt},_r.tickPadding=function(Gr){return arguments.length?(bt=+Gr,_r):bt},_r.tickSubdivide=function(){return arguments.length&&_r},_r};var eu="bottom",Ru={top:1,right:1,bottom:1,left:1};function vu(de,Fe,et){de.attr("transform",function(mt){var bt=Fe(mt);return"translate("+(isFinite(bt)?bt:et(mt))+",0)"})}function Tl(de,Fe,et){de.attr("transform",function(mt){var bt=Fe(mt);return"translate(0,"+(isFinite(bt)?bt:et(mt))+")"})}v.svg.brush=function(){var de=le(Xr,"brushstart","brush","brushend"),Fe=null,et=null,mt=[0,0],bt=[0,0],Mt,ar,Ot=!0,_r=!0,Gr=uc[0];function Xr(Sa){Sa.each(function(){var Fa=v.select(this).style("pointer-events","all").style("-webkit-tap-highlight-color","rgba(0,0,0,0)").on("mousedown.brush",ti).on("touchstart.brush",ti),Xa=Fa.selectAll(".background").data([0]);Xa.enter().append("rect").attr("class","background").style("visibility","hidden").style("cursor","crosshair"),Fa.selectAll(".extent").data([0]).enter().append("rect").attr("class","extent").style("cursor","move");var fi=Fa.selectAll(".resize").data(Gr,F);fi.exit().remove(),fi.enter().append("g").attr("class",function(rn){return"resize "+rn}).style("cursor",function(rn){return cu[rn]}).append("rect").attr("x",function(rn){return/[ew]$/.test(rn)?-3:null}).attr("y",function(rn){return/^[ns]/.test(rn)?-3:null}).attr("width",6).attr("height",6).style("visibility","hidden"),fi.style("display",Xr.empty()?"none":null);var ni=v.transition(Fa),La=v.transition(Xa),sn;Fe&&(sn=Qi(Fe),La.attr("x",sn[0]).attr("width",sn[1]-sn[0]),da(ni)),et&&(sn=Qi(et),La.attr("y",sn[0]).attr("height",sn[1]-sn[0]),Ja(ni)),xa(ni)})}Xr.event=function(Sa){Sa.each(function(){var Fa=de.of(this,arguments),Xa={x:mt,y:bt,i:Mt,j:ar},fi=this.__chart__||Xa;this.__chart__=Xa,ps?v.select(this).transition().each("start.brush",function(){Mt=fi.i,ar=fi.j,mt=fi.x,bt=fi.y,Fa({type:"brushstart"})}).tween("brush:brush",function(){var ni=qu(mt,Xa.x),La=qu(bt,Xa.y);return Mt=ar=null,function(sn){mt=Xa.x=ni(sn),bt=Xa.y=La(sn),Fa({type:"brush",mode:"resize"})}}).each("end.brush",function(){Mt=Xa.i,ar=Xa.j,Fa({type:"brush",mode:"resize"}),Fa({type:"brushend"})}):(Fa({type:"brushstart"}),Fa({type:"brush",mode:"resize"}),Fa({type:"brushend"}))})};function xa(Sa){Sa.selectAll(".resize").attr("transform",function(Fa){return"translate("+mt[+/e$/.test(Fa)]+","+bt[+/^s/.test(Fa)]+")"})}function da(Sa){Sa.select(".extent").attr("x",mt[0]),Sa.selectAll(".extent,.n>rect,.s>rect").attr("width",mt[1]-mt[0])}function Ja(Sa){Sa.select(".extent").attr("y",bt[0]),Sa.selectAll(".extent,.e>rect,.w>rect").attr("height",bt[1]-bt[0])}function ti(){var Sa=this,Fa=v.select(v.event.target),Xa=de.of(Sa,arguments),fi=v.select(Sa),ni=Fa.datum(),La=!/^(n|s)$/.test(ni)&&Fe,sn=!/^(e|w)$/.test(ni)&&et,rn=Fa.classed("extent"),vn=Sr(Sa),Pn,Jn=v.mouse(Sa),ro,Yo=v.select(t(Sa)).on("keydown.brush",cl).on("keyup.brush",al);if(v.event.changedTouches?Yo.on("touchmove.brush",xl).on("touchend.brush",vo):Yo.on("mousemove.brush",xl).on("mouseup.brush",vo),fi.interrupt().selectAll("*").interrupt(),rn)Jn[0]=mt[0]-Jn[0],Jn[1]=bt[0]-Jn[1];else if(ni){var io=+/w$/.test(ni),Ho=+/^n/.test(ni);ro=[mt[1-io]-Jn[0],bt[1-Ho]-Jn[1]],Jn[0]=mt[io],Jn[1]=bt[Ho]}else v.event.altKey&&(Pn=Jn.slice());fi.style("pointer-events","none").selectAll(".resize").style("display",null),v.select("body").style("cursor",Fa.style("cursor")),Xa({type:"brushstart"}),xl();function cl(){v.event.keyCode==32&&(rn||(Pn=null,Jn[0]-=mt[1],Jn[1]-=bt[1],rn=2),$())}function al(){v.event.keyCode==32&&rn==2&&(Jn[0]+=mt[1],Jn[1]+=bt[1],rn=0,$())}function xl(){var cs=v.mouse(Sa),ms=!1;ro&&(cs[0]+=ro[0],cs[1]+=ro[1]),rn||(v.event.altKey?(Pn||(Pn=[(mt[0]+mt[1])/2,(bt[0]+bt[1])/2]),Jn[0]=mt[+(cs[0]<Pn[0])],Jn[1]=bt[+(cs[1]<Pn[1])]):Pn=null),La&&gn(cs,Fe,0)&&(da(fi),ms=!0),sn&&gn(cs,et,1)&&(Ja(fi),ms=!0),ms&&(xa(fi),Xa({type:"brush",mode:rn?"move":"resize"}))}function gn(cs,ms,Al){var Hl=Qi(ms),Su=Hl[0],Rl=Hl[1],_c=Jn[Al],it=Al?bt:mt,Zt=it[1]-it[0],fr,oa;if(rn&&(Su-=_c,Rl-=Zt+_c),fr=(Al?_r:Ot)?Math.max(Su,Math.min(Rl,cs[Al])):cs[Al],rn?oa=(fr+=_c)+Zt:(Pn&&(_c=Math.max(Su,Math.min(Rl,2*Pn[Al]-fr))),_c<fr?(oa=fr,fr=_c):oa=_c),it[0]!=fr||it[1]!=oa)return Al?ar=null:Mt=null,it[0]=fr,it[1]=oa,!0}function vo(){xl(),fi.style("pointer-events","all").selectAll(".resize").style("display",Xr.empty()?"none":null),v.select("body").style("cursor",null),Yo.on("mousemove.brush",null).on("mouseup.brush",null).on("touchmove.brush",null).on("touchend.brush",null).on("keydown.brush",null).on("keyup.brush",null),vn(),Xa({type:"brushend"})}}return Xr.x=function(Sa){return arguments.length?(Fe=Sa,Gr=uc[!Fe<<1|!et],Xr):Fe},Xr.y=function(Sa){return arguments.length?(et=Sa,Gr=uc[!Fe<<1|!et],Xr):et},Xr.clamp=function(Sa){return arguments.length?(Fe&&et?(Ot=!!Sa[0],_r=!!Sa[1]):Fe?Ot=!!Sa:et&&(_r=!!Sa),Xr):Fe&&et?[Ot,_r]:Fe?Ot:et?_r:null},Xr.extent=function(Sa){var Fa,Xa,fi,ni,La;return arguments.length?(Fe&&(Fa=Sa[0],Xa=Sa[1],et&&(Fa=Fa[0],Xa=Xa[0]),Mt=[Fa,Xa],Fe.invert&&(Fa=Fe(Fa),Xa=Fe(Xa)),Xa<Fa&&(La=Fa,Fa=Xa,Xa=La),(Fa!=mt[0]||Xa!=mt[1])&&(mt=[Fa,Xa])),et&&(fi=Sa[0],ni=Sa[1],Fe&&(fi=fi[1],ni=ni[1]),ar=[fi,ni],et.invert&&(fi=et(fi),ni=et(ni)),ni<fi&&(La=fi,fi=ni,ni=La),(fi!=bt[0]||ni!=bt[1])&&(bt=[fi,ni])),Xr):(Fe&&(Mt?(Fa=Mt[0],Xa=Mt[1]):(Fa=mt[0],Xa=mt[1],Fe.invert&&(Fa=Fe.invert(Fa),Xa=Fe.invert(Xa)),Xa<Fa&&(La=Fa,Fa=Xa,Xa=La))),et&&(ar?(fi=ar[0],ni=ar[1]):(fi=bt[0],ni=bt[1],et.invert&&(fi=et.invert(fi),ni=et.invert(ni)),ni<fi&&(La=fi,fi=ni,ni=La))),Fe&&et?[[Fa,fi],[Xa,ni]]:Fe?[Fa,Xa]:et&&[fi,ni])},Xr.clear=function(){return Xr.empty()||(mt=[0,0],bt=[0,0],Mt=ar=null),Xr},Xr.empty=function(){return!!Fe&&mt[0]==mt[1]||!!et&&bt[0]==bt[1]},v.rebind(Xr,de,"on")};var cu={n:"ns-resize",e:"ew-resize",s:"ns-resize",w:"ew-resize",nw:"nwse-resize",ne:"nesw-resize",se:"nwse-resize",sw:"nesw-resize"},uc=[["n","e","s","w","nw","ne","se","sw"],["e","w"],["n","s"],[]];v.text=ba(function(de){return de.responseText}),v.json=function(de,Fe){return Pa(de,"application/json",Vl,Fe)};function Vl(de){return JSON.parse(de.responseText)}v.html=function(de,Fe){return Pa(de,"text/html",Gl,Fe)};function Gl(de){var Fe=E.createRange();return Fe.selectNode(E.body),Fe.createContextualFragment(de.responseText)}v.xml=ba(function(de){return de.responseXML}),typeof G=="object"&&G.exports?G.exports=v:this.d3=v}).apply(self)}}),dd=Xe({"node_modules/d3-time/dist/d3-time.js"(Z,G){(function(v,x){typeof Z=="object"&&typeof G<"u"?x(Z):(v=v||self,x(v.d3=v.d3||{}))})(Z,function(v){"use strict";var x=new Date,S=new Date;function E(he,Oe,tt,ot){function Qe(Pt){return he(Pt=arguments.length===0?new Date:new Date(+Pt)),Pt}return Qe.floor=function(Pt){return he(Pt=new Date(+Pt)),Pt},Qe.ceil=function(Pt){return he(Pt=new Date(Pt-1)),Oe(Pt,1),he(Pt),Pt},Qe.round=function(Pt){var It=Qe(Pt),qt=Qe.ceil(Pt);return Pt-It<qt-Pt?It:qt},Qe.offset=function(Pt,It){return Oe(Pt=new Date(+Pt),It==null?1:Math.floor(It)),Pt},Qe.range=function(Pt,It,qt){var Wt=[],kr;if(Pt=Qe.ceil(Pt),qt=qt==null?1:Math.floor(qt),!(Pt<It)||!(qt>0))return Wt;do Wt.push(kr=new Date(+Pt)),Oe(Pt,qt),he(Pt);while(kr<Pt&&Pt<It);return Wt},Qe.filter=function(Pt){return E(function(It){if(It>=It)for(;he(It),!Pt(It);)It.setTime(It-1)},function(It,qt){if(It>=It)if(qt<0)for(;++qt<=0;)for(;Oe(It,-1),!Pt(It););else for(;--qt>=0;)for(;Oe(It,1),!Pt(It););})},tt&&(Qe.count=function(Pt,It){return x.setTime(+Pt),S.setTime(+It),he(x),he(S),Math.floor(tt(x,S))},Qe.every=function(Pt){return Pt=Math.floor(Pt),!isFinite(Pt)||!(Pt>0)?null:Pt>1?Qe.filter(ot?function(It){return ot(It)%Pt===0}:function(It){return Qe.count(0,It)%Pt===0}):Qe}),Qe}var e=E(function(){},function(he,Oe){he.setTime(+he+Oe)},function(he,Oe){return Oe-he});e.every=function(he){return he=Math.floor(he),!isFinite(he)||!(he>0)?null:he>1?E(function(Oe){Oe.setTime(Math.floor(Oe/he)*he)},function(Oe,tt){Oe.setTime(+Oe+tt*he)},function(Oe,tt){return(tt-Oe)/he}):e};var t=e.range,r=1e3,o=6e4,a=36e5,n=864e5,i=6048e5,s=E(function(he){he.setTime(he-he.getMilliseconds())},function(he,Oe){he.setTime(+he+Oe*r)},function(he,Oe){return(Oe-he)/r},function(he){return he.getUTCSeconds()}),h=s.range,c=E(function(he){he.setTime(he-he.getMilliseconds()-he.getSeconds()*r)},function(he,Oe){he.setTime(+he+Oe*o)},function(he,Oe){return(Oe-he)/o},function(he){return he.getMinutes()}),m=c.range,p=E(function(he){he.setTime(he-he.getMilliseconds()-he.getSeconds()*r-he.getMinutes()*o)},function(he,Oe){he.setTime(+he+Oe*a)},function(he,Oe){return(Oe-he)/a},function(he){return he.getHours()}),T=p.range,l=E(function(he){he.setHours(0,0,0,0)},function(he,Oe){he.setDate(he.getDate()+Oe)},function(he,Oe){return(Oe-he-(Oe.getTimezoneOffset()-he.getTimezoneOffset())*o)/n},function(he){return he.getDate()-1}),_=l.range;function w(he){return E(function(Oe){Oe.setDate(Oe.getDate()-(Oe.getDay()+7-he)%7),Oe.setHours(0,0,0,0)},function(Oe,tt){Oe.setDate(Oe.getDate()+tt*7)},function(Oe,tt){return(tt-Oe-(tt.getTimezoneOffset()-Oe.getTimezoneOffset())*o)/i})}var A=w(0),M=w(1),g=w(2),b=w(3),d=w(4),u=w(5),y=w(6),f=A.range,R=M.range,L=g.range,z=b.range,F=d.range,N=u.range,O=y.range,P=E(function(he){he.setDate(1),he.setHours(0,0,0,0)},function(he,Oe){he.setMonth(he.getMonth()+Oe)},function(he,Oe){return Oe.getMonth()-he.getMonth()+(Oe.getFullYear()-he.getFullYear())*12},function(he){return he.getMonth()}),U=P.range,B=E(function(he){he.setMonth(0,1),he.setHours(0,0,0,0)},function(he,Oe){he.setFullYear(he.getFullYear()+Oe)},function(he,Oe){return Oe.getFullYear()-he.getFullYear()},function(he){return he.getFullYear()});B.every=function(he){return!isFinite(he=Math.floor(he))||!(he>0)?null:E(function(Oe){Oe.setFullYear(Math.floor(Oe.getFullYear()/he)*he),Oe.setMonth(0,1),Oe.setHours(0,0,0,0)},function(Oe,tt){Oe.setFullYear(Oe.getFullYear()+tt*he)})};var X=B.range,$=E(function(he){he.setUTCSeconds(0,0)},function(he,Oe){he.setTime(+he+Oe*o)},function(he,Oe){return(Oe-he)/o},function(he){return he.getUTCMinutes()}),se=$.range,le=E(function(he){he.setUTCMinutes(0,0,0)},function(he,Oe){he.setTime(+he+Oe*a)},function(he,Oe){return(Oe-he)/a},function(he){return he.getUTCHours()}),fe=le.range,V=E(function(he){he.setUTCHours(0,0,0,0)},function(he,Oe){he.setUTCDate(he.getUTCDate()+Oe)},function(he,Oe){return(Oe-he)/n},function(he){return he.getUTCDate()-1}),Y=V.range;function ee(he){return E(function(Oe){Oe.setUTCDate(Oe.getUTCDate()-(Oe.getUTCDay()+7-he)%7),Oe.setUTCHours(0,0,0,0)},function(Oe,tt){Oe.setUTCDate(Oe.getUTCDate()+tt*7)},function(Oe,tt){return(tt-Oe)/i})}var q=ee(0),oe=ee(1),ae=ee(2),j=ee(3),Q=ee(4),re=ee(5),ce=ee(6),be=q.range,Ae=oe.range,De=ae.range,ze=j.range,Ze=Q.range,at=re.range,nt=ce.range,rt=E(function(he){he.setUTCDate(1),he.setUTCHours(0,0,0,0)},function(he,Oe){he.setUTCMonth(he.getUTCMonth()+Oe)},function(he,Oe){return Oe.getUTCMonth()-he.getUTCMonth()+(Oe.getUTCFullYear()-he.getUTCFullYear())*12},function(he){return he.getUTCMonth()}),st=rt.range,Me=E(function(he){he.setUTCMonth(0,1),he.setUTCHours(0,0,0,0)},function(he,Oe){he.setUTCFullYear(he.getUTCFullYear()+Oe)},function(he,Oe){return Oe.getUTCFullYear()-he.getUTCFullYear()},function(he){return he.getUTCFullYear()});Me.every=function(he){return!isFinite(he=Math.floor(he))||!(he>0)?null:E(function(Oe){Oe.setUTCFullYear(Math.floor(Oe.getUTCFullYear()/he)*he),Oe.setUTCMonth(0,1),Oe.setUTCHours(0,0,0,0)},function(Oe,tt){Oe.setUTCFullYear(Oe.getUTCFullYear()+tt*he)})};var ye=Me.range;v.timeDay=l,v.timeDays=_,v.timeFriday=u,v.timeFridays=N,v.timeHour=p,v.timeHours=T,v.timeInterval=E,v.timeMillisecond=e,v.timeMilliseconds=t,v.timeMinute=c,v.timeMinutes=m,v.timeMonday=M,v.timeMondays=R,v.timeMonth=P,v.timeMonths=U,v.timeSaturday=y,v.timeSaturdays=O,v.timeSecond=s,v.timeSeconds=h,v.timeSunday=A,v.timeSundays=f,v.timeThursday=d,v.timeThursdays=F,v.timeTuesday=g,v.timeTuesdays=L,v.timeWednesday=b,v.timeWednesdays=z,v.timeWeek=A,v.timeWeeks=f,v.timeYear=B,v.timeYears=X,v.utcDay=V,v.utcDays=Y,v.utcFriday=re,v.utcFridays=at,v.utcHour=le,v.utcHours=fe,v.utcMillisecond=e,v.utcMilliseconds=t,v.utcMinute=$,v.utcMinutes=se,v.utcMonday=oe,v.utcMondays=Ae,v.utcMonth=rt,v.utcMonths=st,v.utcSaturday=ce,v.utcSaturdays=nt,v.utcSecond=s,v.utcSeconds=h,v.utcSunday=q,v.utcSundays=be,v.utcThursday=Q,v.utcThursdays=Ze,v.utcTuesday=ae,v.utcTuesdays=De,v.utcWednesday=j,v.utcWednesdays=ze,v.utcWeek=q,v.utcWeeks=be,v.utcYear=Me,v.utcYears=ye,Object.defineProperty(v,"__esModule",{value:!0})})}}),Xv=Xe({"node_modules/d3-time-format/dist/d3-time-format.js"(Z,G){(function(v,x){typeof Z=="object"&&typeof G<"u"?x(Z,dd()):(v=v||self,x(v.d3=v.d3||{},v.d3))})(Z,function(v,x){"use strict";function S(Ne){if(0<=Ne.y&&Ne.y<100){var Ke=new Date(-1,Ne.m,Ne.d,Ne.H,Ne.M,Ne.S,Ne.L);return Ke.setFullYear(Ne.y),Ke}return new Date(Ne.y,Ne.m,Ne.d,Ne.H,Ne.M,Ne.S,Ne.L)}function E(Ne){if(0<=Ne.y&&Ne.y<100){var Ke=new Date(Date.UTC(-1,Ne.m,Ne.d,Ne.H,Ne.M,Ne.S,Ne.L));return Ke.setUTCFullYear(Ne.y),Ke}return new Date(Date.UTC(Ne.y,Ne.m,Ne.d,Ne.H,Ne.M,Ne.S,Ne.L))}function e(Ne,Ke,Te){return{y:Ne,m:Ke,d:Te,H:0,M:0,S:0,L:0}}function t(Ne){var Ke=Ne.dateTime,Te=Ne.date,Ie=Ne.time,Ve=Ne.periods,Ce=Ne.days,Ee=Ne.shortDays,Pe=Ne.months,ft=Ne.shortMonths,ct=h(Ve),_t=c(Ve),Ct=h(Ce),ir=c(Ce),rr=h(Ee),er=c(Ee),Lr=h(Pe),fa=c(Pe),Da=h(ft),Ia=c(ft),qa={a:$a,A:Za,b:ri,B:pi,c:null,d:P,e:P,f:se,H:U,I:B,j:X,L:$,m:le,M:fe,p:Ra,q:tn,Q:It,s:qt,S:V,u:Y,U:ee,V:q,w:oe,W:ae,x:null,X:null,y:j,Y:Q,Z:re,"%":Pt},Wa={a:on,A:hn,b:Tt,B:ut,c:null,d:ce,e:ce,f:Ze,H:be,I:Ae,j:De,L:ze,m:at,M:nt,p:Br,q:Cr,Q:It,s:qt,S:rt,u:st,U:Me,V:ye,w:he,W:Oe,x:null,X:null,y:tt,Y:ot,Z:Qe,"%":Pt},Ca={a:Yt,A:Jt,b:Fr,B:ta,c:ra,d,e:d,f:z,H:y,I:y,j:u,L,m:b,M:f,p:Ft,q:g,Q:N,s:O,S:R,u:p,U:T,V:l,w:m,W:_,x:ca,X:Ba,y:A,Y:w,Z:M,"%":F};qa.x=hi(Te,qa),qa.X=hi(Ie,qa),qa.c=hi(Ke,qa),Wa.x=hi(Te,Wa),Wa.X=hi(Ie,Wa),Wa.c=hi(Ke,Wa);function hi(xr,Ir){return function(Ur){var Hr=[],xt=-1,Xt=0,vr=xr.length,Or,ba,Pa;for(Ur instanceof Date||(Ur=new Date(+Ur));++xt<vr;)xr.charCodeAt(xt)===37&&(Hr.push(xr.slice(Xt,xt)),(ba=r[Or=xr.charAt(++xt)])!=null?Or=xr.charAt(++xt):ba=Or==="e"?" ":"0",(Pa=Ir[Or])&&(Or=Pa(Ur,ba)),Hr.push(Or),Xt=xt+1);return Hr.push(xr.slice(Xt,xt)),Hr.join("")}}function wi(xr,Ir){return function(Ur){var Hr=e(1900,void 0,1),xt=Kt(Hr,xr,Ur+="",0),Xt,vr;if(xt!=Ur.length)return null;if("Q"in Hr)return new Date(Hr.Q);if("s"in Hr)return new Date(Hr.s*1e3+("L"in Hr?Hr.L:0));if(Ir&&!("Z"in Hr)&&(Hr.Z=0),"p"in Hr&&(Hr.H=Hr.H%12+Hr.p*12),Hr.m===void 0&&(Hr.m="q"in Hr?Hr.q:0),"V"in Hr){if(Hr.V<1||Hr.V>53)return null;"w"in Hr||(Hr.w=1),"Z"in Hr?(Xt=E(e(Hr.y,0,1)),vr=Xt.getUTCDay(),Xt=vr>4||vr===0?x.utcMonday.ceil(Xt):x.utcMonday(Xt),Xt=x.utcDay.offset(Xt,(Hr.V-1)*7),Hr.y=Xt.getUTCFullYear(),Hr.m=Xt.getUTCMonth(),Hr.d=Xt.getUTCDate()+(Hr.w+6)%7):(Xt=S(e(Hr.y,0,1)),vr=Xt.getDay(),Xt=vr>4||vr===0?x.timeMonday.ceil(Xt):x.timeMonday(Xt),Xt=x.timeDay.offset(Xt,(Hr.V-1)*7),Hr.y=Xt.getFullYear(),Hr.m=Xt.getMonth(),Hr.d=Xt.getDate()+(Hr.w+6)%7)}else("W"in Hr||"U"in Hr)&&("w"in Hr||(Hr.w="u"in Hr?Hr.u%7:"W"in Hr?1:0),vr="Z"in Hr?E(e(Hr.y,0,1)).getUTCDay():S(e(Hr.y,0,1)).getDay(),Hr.m=0,Hr.d="W"in Hr?(Hr.w+6)%7+Hr.W*7-(vr+5)%7:Hr.w+Hr.U*7-(vr+6)%7);return"Z"in Hr?(Hr.H+=Hr.Z/100|0,Hr.M+=Hr.Z%100,E(Hr)):S(Hr)}}function Kt(xr,Ir,Ur,Hr){for(var xt=0,Xt=Ir.length,vr=Ur.length,Or,ba;xt<Xt;){if(Hr>=vr)return-1;if(Or=Ir.charCodeAt(xt++),Or===37){if(Or=Ir.charAt(xt++),ba=Ca[Or in r?Ir.charAt(xt++):Or],!ba||(Hr=ba(xr,Ur,Hr))<0)return-1}else if(Or!=Ur.charCodeAt(Hr++))return-1}return Hr}function Ft(xr,Ir,Ur){var Hr=ct.exec(Ir.slice(Ur));return Hr?(xr.p=_t[Hr[0].toLowerCase()],Ur+Hr[0].length):-1}function Yt(xr,Ir,Ur){var Hr=rr.exec(Ir.slice(Ur));return Hr?(xr.w=er[Hr[0].toLowerCase()],Ur+Hr[0].length):-1}function Jt(xr,Ir,Ur){var Hr=Ct.exec(Ir.slice(Ur));return Hr?(xr.w=ir[Hr[0].toLowerCase()],Ur+Hr[0].length):-1}function Fr(xr,Ir,Ur){var Hr=Da.exec(Ir.slice(Ur));return Hr?(xr.m=Ia[Hr[0].toLowerCase()],Ur+Hr[0].length):-1}function ta(xr,Ir,Ur){var Hr=Lr.exec(Ir.slice(Ur));return Hr?(xr.m=fa[Hr[0].toLowerCase()],Ur+Hr[0].length):-1}function ra(xr,Ir,Ur){return Kt(xr,Ke,Ir,Ur)}function ca(xr,Ir,Ur){return Kt(xr,Te,Ir,Ur)}function Ba(xr,Ir,Ur){return Kt(xr,Ie,Ir,Ur)}function $a(xr){return Ee[xr.getDay()]}function Za(xr){return Ce[xr.getDay()]}function ri(xr){return ft[xr.getMonth()]}function pi(xr){return Pe[xr.getMonth()]}function Ra(xr){return Ve[+(xr.getHours()>=12)]}function tn(xr){return 1+~~(xr.getMonth()/3)}function on(xr){return Ee[xr.getUTCDay()]}function hn(xr){return Ce[xr.getUTCDay()]}function Tt(xr){return ft[xr.getUTCMonth()]}function ut(xr){return Pe[xr.getUTCMonth()]}function Br(xr){return Ve[+(xr.getUTCHours()>=12)]}function Cr(xr){return 1+~~(xr.getUTCMonth()/3)}return{format:function(xr){var Ir=hi(xr+="",qa);return Ir.toString=function(){return xr},Ir},parse:function(xr){var Ir=wi(xr+="",!1);return Ir.toString=function(){return xr},Ir},utcFormat:function(xr){var Ir=hi(xr+="",Wa);return Ir.toString=function(){return xr},Ir},utcParse:function(xr){var Ir=wi(xr+="",!0);return Ir.toString=function(){return xr},Ir}}}var r={"-":"",_:" ",0:"0"},o=/^\s*\d+/,a=/^%/,n=/[\\^$*+?|[\]().{}]/g;function i(Ne,Ke,Te){var Ie=Ne<0?"-":"",Ve=(Ie?-Ne:Ne)+"",Ce=Ve.length;return Ie+(Ce<Te?new Array(Te-Ce+1).join(Ke)+Ve:Ve)}function s(Ne){return Ne.replace(n,"\\$&")}function h(Ne){return new RegExp("^(?:"+Ne.map(s).join("|")+")","i")}function c(Ne){for(var Ke={},Te=-1,Ie=Ne.length;++Te<Ie;)Ke[Ne[Te].toLowerCase()]=Te;return Ke}function m(Ne,Ke,Te){var Ie=o.exec(Ke.slice(Te,Te+1));return Ie?(Ne.w=+Ie[0],Te+Ie[0].length):-1}function p(Ne,Ke,Te){var Ie=o.exec(Ke.slice(Te,Te+1));return Ie?(Ne.u=+Ie[0],Te+Ie[0].length):-1}function T(Ne,Ke,Te){var Ie=o.exec(Ke.slice(Te,Te+2));return Ie?(Ne.U=+Ie[0],Te+Ie[0].length):-1}function l(Ne,Ke,Te){var Ie=o.exec(Ke.slice(Te,Te+2));return Ie?(Ne.V=+Ie[0],Te+Ie[0].length):-1}function _(Ne,Ke,Te){var Ie=o.exec(Ke.slice(Te,Te+2));return Ie?(Ne.W=+Ie[0],Te+Ie[0].length):-1}function w(Ne,Ke,Te){var Ie=o.exec(Ke.slice(Te,Te+4));return Ie?(Ne.y=+Ie[0],Te+Ie[0].length):-1}function A(Ne,Ke,Te){var Ie=o.exec(Ke.slice(Te,Te+2));return Ie?(Ne.y=+Ie[0]+(+Ie[0]>68?1900:2e3),Te+Ie[0].length):-1}function M(Ne,Ke,Te){var Ie=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(Ke.slice(Te,Te+6));return Ie?(Ne.Z=Ie[1]?0:-(Ie[2]+(Ie[3]||"00")),Te+Ie[0].length):-1}function g(Ne,Ke,Te){var Ie=o.exec(Ke.slice(Te,Te+1));return Ie?(Ne.q=Ie[0]*3-3,Te+Ie[0].length):-1}function b(Ne,Ke,Te){var Ie=o.exec(Ke.slice(Te,Te+2));return Ie?(Ne.m=Ie[0]-1,Te+Ie[0].length):-1}function d(Ne,Ke,Te){var Ie=o.exec(Ke.slice(Te,Te+2));return Ie?(Ne.d=+Ie[0],Te+Ie[0].length):-1}function u(Ne,Ke,Te){var Ie=o.exec(Ke.slice(Te,Te+3));return Ie?(Ne.m=0,Ne.d=+Ie[0],Te+Ie[0].length):-1}function y(Ne,Ke,Te){var Ie=o.exec(Ke.slice(Te,Te+2));return Ie?(Ne.H=+Ie[0],Te+Ie[0].length):-1}function f(Ne,Ke,Te){var Ie=o.exec(Ke.slice(Te,Te+2));return Ie?(Ne.M=+Ie[0],Te+Ie[0].length):-1}function R(Ne,Ke,Te){var Ie=o.exec(Ke.slice(Te,Te+2));return Ie?(Ne.S=+Ie[0],Te+Ie[0].length):-1}function L(Ne,Ke,Te){var Ie=o.exec(Ke.slice(Te,Te+3));return Ie?(Ne.L=+Ie[0],Te+Ie[0].length):-1}function z(Ne,Ke,Te){var Ie=o.exec(Ke.slice(Te,Te+6));return Ie?(Ne.L=Math.floor(Ie[0]/1e3),Te+Ie[0].length):-1}function F(Ne,Ke,Te){var Ie=a.exec(Ke.slice(Te,Te+1));return Ie?Te+Ie[0].length:-1}function N(Ne,Ke,Te){var Ie=o.exec(Ke.slice(Te));return Ie?(Ne.Q=+Ie[0],Te+Ie[0].length):-1}function O(Ne,Ke,Te){var Ie=o.exec(Ke.slice(Te));return Ie?(Ne.s=+Ie[0],Te+Ie[0].length):-1}function P(Ne,Ke){return i(Ne.getDate(),Ke,2)}function U(Ne,Ke){return i(Ne.getHours(),Ke,2)}function B(Ne,Ke){return i(Ne.getHours()%12||12,Ke,2)}function X(Ne,Ke){return i(1+x.timeDay.count(x.timeYear(Ne),Ne),Ke,3)}function $(Ne,Ke){return i(Ne.getMilliseconds(),Ke,3)}function se(Ne,Ke){return $(Ne,Ke)+"000"}function le(Ne,Ke){return i(Ne.getMonth()+1,Ke,2)}function fe(Ne,Ke){return i(Ne.getMinutes(),Ke,2)}function V(Ne,Ke){return i(Ne.getSeconds(),Ke,2)}function Y(Ne){var Ke=Ne.getDay();return Ke===0?7:Ke}function ee(Ne,Ke){return i(x.timeSunday.count(x.timeYear(Ne)-1,Ne),Ke,2)}function q(Ne,Ke){var Te=Ne.getDay();return Ne=Te>=4||Te===0?x.timeThursday(Ne):x.timeThursday.ceil(Ne),i(x.timeThursday.count(x.timeYear(Ne),Ne)+(x.timeYear(Ne).getDay()===4),Ke,2)}function oe(Ne){return Ne.getDay()}function ae(Ne,Ke){return i(x.timeMonday.count(x.timeYear(Ne)-1,Ne),Ke,2)}function j(Ne,Ke){return i(Ne.getFullYear()%100,Ke,2)}function Q(Ne,Ke){return i(Ne.getFullYear()%1e4,Ke,4)}function re(Ne){var Ke=Ne.getTimezoneOffset();return(Ke>0?"-":(Ke*=-1,"+"))+i(Ke/60|0,"0",2)+i(Ke%60,"0",2)}function ce(Ne,Ke){return i(Ne.getUTCDate(),Ke,2)}function be(Ne,Ke){return i(Ne.getUTCHours(),Ke,2)}function Ae(Ne,Ke){return i(Ne.getUTCHours()%12||12,Ke,2)}function De(Ne,Ke){return i(1+x.utcDay.count(x.utcYear(Ne),Ne),Ke,3)}function ze(Ne,Ke){return i(Ne.getUTCMilliseconds(),Ke,3)}function Ze(Ne,Ke){return ze(Ne,Ke)+"000"}function at(Ne,Ke){return i(Ne.getUTCMonth()+1,Ke,2)}function nt(Ne,Ke){return i(Ne.getUTCMinutes(),Ke,2)}function rt(Ne,Ke){return i(Ne.getUTCSeconds(),Ke,2)}function st(Ne){var Ke=Ne.getUTCDay();return Ke===0?7:Ke}function Me(Ne,Ke){return i(x.utcSunday.count(x.utcYear(Ne)-1,Ne),Ke,2)}function ye(Ne,Ke){var Te=Ne.getUTCDay();return Ne=Te>=4||Te===0?x.utcThursday(Ne):x.utcThursday.ceil(Ne),i(x.utcThursday.count(x.utcYear(Ne),Ne)+(x.utcYear(Ne).getUTCDay()===4),Ke,2)}function he(Ne){return Ne.getUTCDay()}function Oe(Ne,Ke){return i(x.utcMonday.count(x.utcYear(Ne)-1,Ne),Ke,2)}function tt(Ne,Ke){return i(Ne.getUTCFullYear()%100,Ke,2)}function ot(Ne,Ke){return i(Ne.getUTCFullYear()%1e4,Ke,4)}function Qe(){return"+0000"}function Pt(){return"%"}function It(Ne){return+Ne}function qt(Ne){return Math.floor(+Ne/1e3)}var Wt;kr({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 kr(Ne){return Wt=t(Ne),v.timeFormat=Wt.format,v.timeParse=Wt.parse,v.utcFormat=Wt.utcFormat,v.utcParse=Wt.utcParse,Wt}var mr="%Y-%m-%dT%H:%M:%S.%LZ";function qr(Ne){return Ne.toISOString()}var Sr=Date.prototype.toISOString?qr:v.utcFormat(mr);function Rr(Ne){var Ke=new Date(Ne);return isNaN(Ke)?null:Ke}var wt=+new Date("2000-01-01T00:00:00.000Z")?Rr:v.utcParse(mr);v.isoFormat=Sr,v.isoParse=wt,v.timeFormatDefaultLocale=kr,v.timeFormatLocale=t,Object.defineProperty(v,"__esModule",{value:!0})})}}),YA=Xe({"node_modules/d3-format/dist/d3-format.js"(Z,G){(function(v,x){typeof Z=="object"&&typeof G<"u"?x(Z):(v=typeof globalThis<"u"?globalThis:v||self,x(v.d3=v.d3||{}))})(Z,function(v){"use strict";function x(b){return Math.abs(b=Math.round(b))>=1e21?b.toLocaleString("en").replace(/,/g,""):b.toString(10)}function S(b,d){if((u=(b=d?b.toExponential(d-1):b.toExponential()).indexOf("e"))<0)return null;var u,y=b.slice(0,u);return[y.length>1?y[0]+y.slice(2):y,+b.slice(u+1)]}function E(b){return b=S(Math.abs(b)),b?b[1]:NaN}function e(b,d){return function(u,y){for(var f=u.length,R=[],L=0,z=b[0],F=0;f>0&&z>0&&(F+z+1>y&&(z=Math.max(1,y-F)),R.push(u.substring(f-=z,f+z)),!((F+=z+1)>y));)z=b[L=(L+1)%b.length];return R.reverse().join(d)}}function t(b){return function(d){return d.replace(/[0-9]/g,function(u){return b[+u]})}}var r=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function o(b){if(!(d=r.exec(b)))throw new Error("invalid format: "+b);var d;return new a({fill:d[1],align:d[2],sign:d[3],symbol:d[4],zero:d[5],width:d[6],comma:d[7],precision:d[8]&&d[8].slice(1),trim:d[9],type:d[10]})}o.prototype=a.prototype;function a(b){this.fill=b.fill===void 0?" ":b.fill+"",this.align=b.align===void 0?">":b.align+"",this.sign=b.sign===void 0?"-":b.sign+"",this.symbol=b.symbol===void 0?"":b.symbol+"",this.zero=!!b.zero,this.width=b.width===void 0?void 0:+b.width,this.comma=!!b.comma,this.precision=b.precision===void 0?void 0:+b.precision,this.trim=!!b.trim,this.type=b.type===void 0?"":b.type+""}a.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function n(b){e:for(var d=b.length,u=1,y=-1,f;u<d;++u)switch(b[u]){case".":y=f=u;break;case"0":y===0&&(y=u),f=u;break;default:if(!+b[u])break e;y>0&&(y=0);break}return y>0?b.slice(0,y)+b.slice(f+1):b}var i;function s(b,d){var u=S(b,d);if(!u)return b+"";var y=u[0],f=u[1],R=f-(i=Math.max(-8,Math.min(8,Math.floor(f/3)))*3)+1,L=y.length;return R===L?y:R>L?y+new Array(R-L+1).join("0"):R>0?y.slice(0,R)+"."+y.slice(R):"0."+new Array(1-R).join("0")+S(b,Math.max(0,d+R-1))[0]}function h(b,d){var u=S(b,d);if(!u)return b+"";var y=u[0],f=u[1];return f<0?"0."+new Array(-f).join("0")+y:y.length>f+1?y.slice(0,f+1)+"."+y.slice(f+1):y+new Array(f-y.length+2).join("0")}var c={"%":function(b,d){return(b*100).toFixed(d)},b:function(b){return Math.round(b).toString(2)},c:function(b){return b+""},d:x,e:function(b,d){return b.toExponential(d)},f:function(b,d){return b.toFixed(d)},g:function(b,d){return b.toPrecision(d)},o:function(b){return Math.round(b).toString(8)},p:function(b,d){return h(b*100,d)},r:h,s,X:function(b){return Math.round(b).toString(16).toUpperCase()},x:function(b){return Math.round(b).toString(16)}};function m(b){return b}var p=Array.prototype.map,T=["y","z","a","f","p","n","\xB5","m","","k","M","G","T","P","E","Z","Y"];function l(b){var d=b.grouping===void 0||b.thousands===void 0?m:e(p.call(b.grouping,Number),b.thousands+""),u=b.currency===void 0?"":b.currency[0]+"",y=b.currency===void 0?"":b.currency[1]+"",f=b.decimal===void 0?".":b.decimal+"",R=b.numerals===void 0?m:t(p.call(b.numerals,String)),L=b.percent===void 0?"%":b.percent+"",z=b.minus===void 0?"-":b.minus+"",F=b.nan===void 0?"NaN":b.nan+"";function N(P){P=o(P);var U=P.fill,B=P.align,X=P.sign,$=P.symbol,se=P.zero,le=P.width,fe=P.comma,V=P.precision,Y=P.trim,ee=P.type;ee==="n"?(fe=!0,ee="g"):c[ee]||(V===void 0&&(V=12),Y=!0,ee="g"),(se||U==="0"&&B==="=")&&(se=!0,U="0",B="=");var q=$==="$"?u:$==="#"&&/[boxX]/.test(ee)?"0"+ee.toLowerCase():"",oe=$==="$"?y:/[%p]/.test(ee)?L:"",ae=c[ee],j=/[defgprs%]/.test(ee);V=V===void 0?6:/[gprs]/.test(ee)?Math.max(1,Math.min(21,V)):Math.max(0,Math.min(20,V));function Q(re){var ce=q,be=oe,Ae,De,ze;if(ee==="c")be=ae(re)+be,re="";else{re=+re;var Ze=re<0||1/re<0;if(re=isNaN(re)?F:ae(Math.abs(re),V),Y&&(re=n(re)),Ze&&+re==0&&X!=="+"&&(Ze=!1),ce=(Ze?X==="("?X:z:X==="-"||X==="("?"":X)+ce,be=(ee==="s"?T[8+i/3]:"")+be+(Ze&&X==="("?")":""),j){for(Ae=-1,De=re.length;++Ae<De;)if(ze=re.charCodeAt(Ae),48>ze||ze>57){be=(ze===46?f+re.slice(Ae+1):re.slice(Ae))+be,re=re.slice(0,Ae);break}}}fe&&!se&&(re=d(re,1/0));var at=ce.length+re.length+be.length,nt=at<le?new Array(le-at+1).join(U):"";switch(fe&&se&&(re=d(nt+re,nt.length?le-be.length:1/0),nt=""),B){case"<":re=ce+re+be+nt;break;case"=":re=ce+nt+re+be;break;case"^":re=nt.slice(0,at=nt.length>>1)+ce+re+be+nt.slice(at);break;default:re=nt+ce+re+be;break}return R(re)}return Q.toString=function(){return P+""},Q}function O(P,U){var B=N((P=o(P),P.type="f",P)),X=Math.max(-8,Math.min(8,Math.floor(E(U)/3)))*3,$=Math.pow(10,-X),se=T[8+X/3];return function(le){return B($*le)+se}}return{format:N,formatPrefix:O}}var _;w({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});function w(b){return _=l(b),v.format=_.format,v.formatPrefix=_.formatPrefix,_}function A(b){return Math.max(0,-E(Math.abs(b)))}function M(b,d){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(E(d)/3)))*3-E(Math.abs(b)))}function g(b,d){return b=Math.abs(b),d=Math.abs(d)-b,Math.max(0,E(d)-E(b))+1}v.FormatSpecifier=a,v.formatDefaultLocale=w,v.formatLocale=l,v.formatSpecifier=o,v.precisionFixed=A,v.precisionPrefix=M,v.precisionRound=g,Object.defineProperty(v,"__esModule",{value:!0})})}}),l7=Xe({"node_modules/is-string-blank/index.js"(Z,G){"use strict";G.exports=function(v){for(var x=v.length,S,E=0;E<x;E++)if(S=v.charCodeAt(E),(S<9||S>13)&&S!==32&&S!==133&&S!==160&&S!==5760&&S!==6158&&(S<8192||S>8205)&&S!==8232&&S!==8233&&S!==8239&&S!==8287&&S!==8288&&S!==12288&&S!==65279)return!1;return!0}}}),rs=Xe({"node_modules/fast-isnumeric/index.js"(Z,G){"use strict";var v=l7();G.exports=function(x){var S=typeof x;if(S==="string"){var E=x;if(x=+x,x===0&&v(E))return!1}else if(S!=="number")return!1;return x-x<1}}}),Hs=Xe({"src/constants/numerical.js"(Z,G){"use strict";G.exports={BADNUM:void 0,FP_SAFE:Number.MAX_VALUE*1e-4,ONEMAXYEAR:316224e5,ONEAVGYEAR:315576e5,ONEMINYEAR:31536e6,ONEMAXQUARTER:79488e5,ONEAVGQUARTER:78894e5,ONEMINQUARTER:76896e5,ONEMAXMONTH:26784e5,ONEAVGMONTH:26298e5,ONEMINMONTH:24192e5,ONEWEEK:6048e5,ONEDAY:864e5,ONEHOUR:36e5,ONEMIN:6e4,ONESEC:1e3,ONEMILLI:1,ONEMICROSEC:.001,EPOCHJD:24405875e-1,ALMOST_EQUAL:1-1e-6,LOG_CLIP:10,MINUS_SIGN:"\u2212"}}}),KA=Xe({"node_modules/base64-arraybuffer/dist/base64-arraybuffer.umd.js"(Z,G){(function(v,x){typeof Z=="object"&&typeof G<"u"?x(Z):(v=typeof globalThis<"u"?globalThis:v||self,x(v["base64-arraybuffer"]={}))})(Z,function(v){"use strict";for(var x="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",S=typeof Uint8Array>"u"?[]:new Uint8Array(256),E=0;E<x.length;E++)S[x.charCodeAt(E)]=E;var e=function(r){var o=new Uint8Array(r),a,n=o.length,i="";for(a=0;a<n;a+=3)i+=x[o[a]>>2],i+=x[(o[a]&3)<<4|o[a+1]>>4],i+=x[(o[a+1]&15)<<2|o[a+2]>>6],i+=x[o[a+2]&63];return n%3===2?i=i.substring(0,i.length-1)+"=":n%3===1&&(i=i.substring(0,i.length-2)+"=="),i},t=function(r){var o=r.length*.75,a=r.length,n,i=0,s,h,c,m;r[r.length-1]==="="&&(o--,r[r.length-2]==="="&&o--);var p=new ArrayBuffer(o),T=new Uint8Array(p);for(n=0;n<a;n+=4)s=S[r.charCodeAt(n)],h=S[r.charCodeAt(n+1)],c=S[r.charCodeAt(n+2)],m=S[r.charCodeAt(n+3)],T[i++]=s<<2|h>>4,T[i++]=(h&15)<<4|c>>2,T[i++]=(c&3)<<6|m&63;return p};v.decode=t,v.encode=e,Object.defineProperty(v,"__esModule",{value:!0})})}}),Zv=Xe({"src/lib/is_plain_object.js"(Z,G){"use strict";G.exports=function(x){return window&&window.process&&window.process.versions?Object.prototype.toString.call(x)==="[object Object]":Object.prototype.toString.call(x)==="[object Object]"&&Object.getPrototypeOf(x).hasOwnProperty("hasOwnProperty")}}}),bp=Xe({"src/lib/array.js"(Z){"use strict";var G=KA().decode,v=Zv(),x=Array.isArray,S=ArrayBuffer,E=DataView;function e(s){return S.isView(s)&&!(s instanceof E)}Z.isTypedArray=e;function t(s){return x(s)||e(s)}Z.isArrayOrTypedArray=t;function r(s){return!t(s[0])}Z.isArray1D=r,Z.ensureArray=function(s,h){return x(s)||(s=[]),s.length=h,s};var o={u1c:typeof Uint8ClampedArray>"u"?void 0:Uint8ClampedArray,i1:typeof Int8Array>"u"?void 0:Int8Array,u1:typeof Uint8Array>"u"?void 0:Uint8Array,i2:typeof Int16Array>"u"?void 0:Int16Array,u2:typeof Uint16Array>"u"?void 0:Uint16Array,i4:typeof Int32Array>"u"?void 0:Int32Array,u4:typeof Uint32Array>"u"?void 0:Uint32Array,f4:typeof Float32Array>"u"?void 0:Float32Array,f8:typeof Float64Array>"u"?void 0:Float64Array};o.uint8c=o.u1c,o.uint8=o.u1,o.int8=o.i1,o.uint16=o.u2,o.int16=o.i2,o.uint32=o.u4,o.int32=o.i4,o.float32=o.f4,o.float64=o.f8;function a(s){return s.constructor===ArrayBuffer}Z.isArrayBuffer=a,Z.decodeTypedArraySpec=function(s){var h=[],c=n(s),m=c.dtype,p=o[m];if(!p)throw new Error('Error in dtype: "'+m+'"');var T=p.BYTES_PER_ELEMENT,l=c.bdata;a(l)||(l=G(l));var _=c.shape===void 0?[l.byteLength/T]:(""+c.shape).split(",");_.reverse();var w=_.length,A,M,g=+_[0],b=T*g,d=0;if(w===1)h=new p(l);else if(w===2)for(A=+_[1],M=0;M<A;M++)h[M]=new p(l,d,g),d+=b;else if(w===3){A=+_[1];for(var u=+_[2],y=0;y<u;y++)for(h[y]=[],M=0;M<A;M++)h[y][M]=new p(l,d,g),d+=b}else throw new Error("ndim: "+w+'is not supported with the shape:"'+c.shape+'"');return h.bdata=c.bdata,h.dtype=c.dtype,h.shape=_.reverse().join(","),s._inputArray=h,h},Z.isTypedArraySpec=function(s){return v(s)&&s.hasOwnProperty("dtype")&&typeof s.dtype=="string"&&s.hasOwnProperty("bdata")&&(typeof s.bdata=="string"||a(s.bdata))&&(s.shape===void 0||s.hasOwnProperty("shape")&&(typeof s.shape=="string"||typeof s.shape=="number"))};function n(s){return{bdata:s.bdata,dtype:s.dtype,shape:s.shape}}Z.concat=function(){var s=[],h=!0,c=0,m,p,T,l,_,w,A,M;for(T=0;T<arguments.length;T++)l=arguments[T],w=l.length,w&&(p?s.push(l):(p=l,_=w),x(l)?m=!1:(h=!1,c?m!==l.constructor&&(m=!1):m=l.constructor),c+=w);if(!c)return[];if(!s.length)return p;if(h)return p.concat.apply(p,s);if(m){for(A=new m(c),A.set(p),T=0;T<s.length;T++)l=s[T],A.set(l,_),_+=l.length;return A}for(A=new Array(c),M=0;M<p.length;M++)A[M]=p[M];for(T=0;T<s.length;T++){for(l=s[T],M=0;M<l.length;M++)A[_+M]=l[M];_+=M}return A},Z.maxRowLength=function(s){return i(s,Math.max,0)},Z.minRowLength=function(s){return i(s,Math.min,1/0)};function i(s,h,c){if(t(s))if(t(s[0])){for(var m=c,p=0;p<s.length;p++)m=h(m,s[p].length);return m}else return s.length;return 0}}}),b_=Xe({"src/lib/nested_property.js"(Z,G){"use strict";var v=rs(),x=bp().isArrayOrTypedArray;G.exports=function(s,h){if(v(h))h=String(h);else if(typeof h!="string"||h.slice(-4)==="[-1]")throw"bad property string";var c=h.split("."),m,p,T,l;for(l=0;l<c.length;l++)if(String(c[l]).slice(0,2)==="__")throw"bad property string";for(l=0;l<c.length;){if(m=String(c[l]).match(/^([^\[\]]*)((\[\-?[0-9]*\])+)$/),m){if(m[1])c[l]=m[1];else if(l===0)c.splice(0,1);else throw"bad property string";for(p=m[2].slice(1,-1).split("]["),T=0;T<p.length;T++)l++,c.splice(l,0,Number(p[T]))}l++}return typeof s!="object"?n(s,h,c):{set:t(s,c,h),get:S(s,c),astr:h,parts:c,obj:s}};function S(i,s){return function(h){var c=i,m,p,T,l,_;for(l=0;l<s.length-1;l++){if(m=s[l],m===-1){for(p=!0,T=[],_=0;_<c.length;_++)T[_]=S(c[_],s.slice(l+1))(h),T[_]!==T[0]&&(p=!1);return p?T[0]:T}if(typeof m=="number"&&!x(c)||(c=c[m],typeof c!="object"||c===null))return}if(!(typeof c!="object"||c===null)&&(T=c[s[l]],!(!h&&T===null)))return T}}var E=/(^|\.)args\[/;function e(i,s){return i===void 0||i===null&&!s.match(E)}function t(i,s,h){return function(c){var m=i,p="",T=[[i,p]],l=e(c,h),_,w;for(w=0;w<s.length-1;w++){if(_=s[w],typeof _=="number"&&!x(m))throw"array index but container is not an array";if(_===-1){if(l=!o(m,s.slice(w+1),c,h),l)break;return}if(!a(m,_,s[w+1],l))break;if(m=m[_],typeof m!="object"||m===null)throw"container is not an object";p=r(p,_),T.push([m,p])}if(l){if(w===s.length-1&&(delete m[s[w]],Array.isArray(m)&&+s[w]===m.length-1))for(;m.length&&m[m.length-1]===void 0;)m.pop()}else m[s[w]]=c}}function r(i,s){var h=s;return v(s)?h="["+s+"]":i&&(h="."+s),i+h}function o(i,s,h,c){var m=x(h),p=!0,T=h,l=c.replace("-1",0),_=m?!1:e(h,l),w=s[0],A;for(A=0;A<i.length;A++)l=c.replace("-1",A),m&&(T=h[A%h.length],_=e(T,l)),_&&(p=!1),a(i,A,w,_)&&t(i[A],s,c.replace("-1",A))(T);return p}function a(i,s,h,c){if(i[s]===void 0){if(c)return!1;typeof h=="number"?i[s]=[]:i[s]={}}return!0}function n(i,s,h){return{set:function(){throw"bad container"},get:function(){},astr:s,parts:h,obj:i}}}}),u7=Xe({"src/lib/keyed_container.js"(Z,G){"use strict";var v=b_(),x=/^\w*$/,S=0,E=1,e=2,t=3,r=4;G.exports=function(a,n,i,s){i=i||"name",s=s||"value";var h,c,m,p={};n&&n.length?(m=v(a,n),c=m.get()):c=a,n=n||"";var T={};if(c)for(h=0;h<c.length;h++)T[c[h][i]]=h;var l=x.test(s),_={set:function(w,A){var M=A===null?r:S;if(!c){if(!m||M===r)return;c=[],m.set(c)}var g=T[w];if(g===void 0){if(M===r)return;M=M|t,g=c.length,T[w]=g}else A!==(l?c[g][s]:v(c[g],s).get())&&(M=M|e);var b=c[g]=c[g]||{};return b[i]=w,l?b[s]=A:v(b,s).set(A),A!==null&&(M=M&~r),p[g]=p[g]|M,_},get:function(w){if(c){var A=T[w];if(A!==void 0)return l?c[A][s]:v(c[A],s).get()}},rename:function(w,A){var M=T[w];return M===void 0||(p[M]=p[M]|E,T[A]=M,delete T[w],c[M][i]=A),_},remove:function(w){var A=T[w];if(A===void 0)return _;var M=c[A];if(Object.keys(M).length>2)return p[A]=p[A]|e,_.set(w,null);if(l){for(h=A;h<c.length;h++)p[h]=p[h]|t;for(h=A;h<c.length;h++)T[c[h][i]]--;c.splice(A,1),delete T[w]}else v(M,s).set(null),p[A]=p[A]|e|r;return _},constructUpdate:function(){for(var w,A,M={},g=Object.keys(p),b=0;b<g.length;b++)A=g[b],w=n+"["+A+"]",c[A]?(p[A]&E&&(M[w+"."+i]=c[A][i]),p[A]&e&&(l?M[w+"."+s]=p[A]&r?null:c[A][s]:M[w+"."+s]=p[A]&r?null:v(c[A],s).get())):M[w]=null;return M}};return _}}}),c7=Xe({"src/lib/relative_attr.js"(Z,G){"use strict";var v=/^(.*)(\.[^\.\[\]]+|\[\d\])$/,x=/^[^\.\[\]]+$/;G.exports=function(S,E){for(;E;){var e=S.match(v);if(e)S=e[1];else if(S.match(x))S="";else throw new Error("bad relativeAttr call:"+[S,E]);if(E.charAt(0)==="^")E=E.slice(1);else break}return S&&E.charAt(0)!=="["?S+"."+E:S+E}}}),h2=Xe({"src/lib/to_log_range.js"(Z,G){"use strict";var v=rs();G.exports=function(S,E){if(S>0)return Math.log(S)/Math.LN10;var e=Math.log(Math.min(E[0],E[1]))/Math.LN10;return v(e)||(e=Math.log(Math.max(E[0],E[1]))/Math.LN10-6),e}}}),f7=Xe({"src/lib/relink_private.js"(Z,G){"use strict";var v=bp().isArrayOrTypedArray,x=Zv();G.exports=function S(E,e){for(var t in e){var r=e[t],o=E[t];if(o!==r)if(t.charAt(0)==="_"||typeof r=="function"){if(t in E)continue;E[t]=r}else if(v(r)&&v(o)&&x(r[0])){if(t==="customdata"||t==="ids")continue;for(var a=Math.min(r.length,o.length),n=0;n<a;n++)o[n]!==r[n]&&x(r[n])&&x(o[n])&&S(o[n],r[n])}else x(r)&&x(o)&&(S(o,r),Object.keys(o).length||delete E[t])}}}}),Yy=Xe({"src/lib/mod.js"(Z,G){"use strict";function v(S,E){var e=S%E;return e<0?e+E:e}function x(S,E){return Math.abs(S)>E/2?S-Math.round(S/E)*E:S}G.exports={mod:v,modHalf:x}}}),Ch=Xe({"node_modules/tinycolor2/tinycolor.js"(Z,G){(function(v){var x=/^\s+/,S=/\s+$/,E=0,e=v.round,t=v.min,r=v.max,o=v.random;function a(j,Q){if(j=j||"",Q=Q||{},j instanceof a)return j;if(!(this instanceof a))return new a(j,Q);var re=n(j);this._originalInput=j,this._r=re.r,this._g=re.g,this._b=re.b,this._a=re.a,this._roundA=e(100*this._a)/100,this._format=Q.format||re.format,this._gradientType=Q.gradientType,this._r<1&&(this._r=e(this._r)),this._g<1&&(this._g=e(this._g)),this._b<1&&(this._b=e(this._b)),this._ok=re.ok,this._tc_id=E++}a.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var j=this.toRgb();return(j.r*299+j.g*587+j.b*114)/1e3},getLuminance:function(){var j=this.toRgb(),Q,re,ce,be,Ae,De;return Q=j.r/255,re=j.g/255,ce=j.b/255,Q<=.03928?be=Q/12.92:be=v.pow((Q+.055)/1.055,2.4),re<=.03928?Ae=re/12.92:Ae=v.pow((re+.055)/1.055,2.4),ce<=.03928?De=ce/12.92:De=v.pow((ce+.055)/1.055,2.4),.2126*be+.7152*Ae+.0722*De},setAlpha:function(j){return this._a=P(j),this._roundA=e(100*this._a)/100,this},toHsv:function(){var j=c(this._r,this._g,this._b);return{h:j.h*360,s:j.s,v:j.v,a:this._a}},toHsvString:function(){var j=c(this._r,this._g,this._b),Q=e(j.h*360),re=e(j.s*100),ce=e(j.v*100);return this._a==1?"hsv("+Q+", "+re+"%, "+ce+"%)":"hsva("+Q+", "+re+"%, "+ce+"%, "+this._roundA+")"},toHsl:function(){var j=s(this._r,this._g,this._b);return{h:j.h*360,s:j.s,l:j.l,a:this._a}},toHslString:function(){var j=s(this._r,this._g,this._b),Q=e(j.h*360),re=e(j.s*100),ce=e(j.l*100);return this._a==1?"hsl("+Q+", "+re+"%, "+ce+"%)":"hsla("+Q+", "+re+"%, "+ce+"%, "+this._roundA+")"},toHex:function(j){return p(this._r,this._g,this._b,j)},toHexString:function(j){return"#"+this.toHex(j)},toHex8:function(j){return T(this._r,this._g,this._b,this._a,j)},toHex8String:function(j){return"#"+this.toHex8(j)},toRgb:function(){return{r:e(this._r),g:e(this._g),b:e(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+e(this._r)+", "+e(this._g)+", "+e(this._b)+")":"rgba("+e(this._r)+", "+e(this._g)+", "+e(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:e(U(this._r,255)*100)+"%",g:e(U(this._g,255)*100)+"%",b:e(U(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+e(U(this._r,255)*100)+"%, "+e(U(this._g,255)*100)+"%, "+e(U(this._b,255)*100)+"%)":"rgba("+e(U(this._r,255)*100)+"%, "+e(U(this._g,255)*100)+"%, "+e(U(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:N[p(this._r,this._g,this._b,!0)]||!1},toFilter:function(j){var Q="#"+l(this._r,this._g,this._b,this._a),re=Q,ce=this._gradientType?"GradientType = 1, ":"";if(j){var be=a(j);re="#"+l(be._r,be._g,be._b,be._a)}return"progid:DXImageTransform.Microsoft.gradient("+ce+"startColorstr="+Q+",endColorstr="+re+")"},toString:function(j){var Q=!!j;j=j||this._format;var re=!1,ce=this._a<1&&this._a>=0,be=!Q&&ce&&(j==="hex"||j==="hex6"||j==="hex3"||j==="hex4"||j==="hex8"||j==="name");return be?j==="name"&&this._a===0?this.toName():this.toRgbString():(j==="rgb"&&(re=this.toRgbString()),j==="prgb"&&(re=this.toPercentageRgbString()),(j==="hex"||j==="hex6")&&(re=this.toHexString()),j==="hex3"&&(re=this.toHexString(!0)),j==="hex4"&&(re=this.toHex8String(!0)),j==="hex8"&&(re=this.toHex8String()),j==="name"&&(re=this.toName()),j==="hsl"&&(re=this.toHslString()),j==="hsv"&&(re=this.toHsvString()),re||this.toHexString())},clone:function(){return a(this.toString())},_applyModification:function(j,Q){var re=j.apply(null,[this].concat([].slice.call(Q)));return this._r=re._r,this._g=re._g,this._b=re._b,this.setAlpha(re._a),this},lighten:function(){return this._applyModification(M,arguments)},brighten:function(){return this._applyModification(g,arguments)},darken:function(){return this._applyModification(b,arguments)},desaturate:function(){return this._applyModification(_,arguments)},saturate:function(){return this._applyModification(w,arguments)},greyscale:function(){return this._applyModification(A,arguments)},spin:function(){return this._applyModification(d,arguments)},_applyCombination:function(j,Q){return j.apply(null,[this].concat([].slice.call(Q)))},analogous:function(){return this._applyCombination(L,arguments)},complement:function(){return this._applyCombination(u,arguments)},monochromatic:function(){return this._applyCombination(z,arguments)},splitcomplement:function(){return this._applyCombination(R,arguments)},triad:function(){return this._applyCombination(y,arguments)},tetrad:function(){return this._applyCombination(f,arguments)}},a.fromRatio=function(j,Q){if(typeof j=="object"){var re={};for(var ce in j)j.hasOwnProperty(ce)&&(ce==="a"?re[ce]=j[ce]:re[ce]=fe(j[ce]));j=re}return a(j,Q)};function n(j){var Q={r:0,g:0,b:0},re=1,ce=null,be=null,Ae=null,De=!1,ze=!1;return typeof j=="string"&&(j=oe(j)),typeof j=="object"&&(q(j.r)&&q(j.g)&&q(j.b)?(Q=i(j.r,j.g,j.b),De=!0,ze=String(j.r).substr(-1)==="%"?"prgb":"rgb"):q(j.h)&&q(j.s)&&q(j.v)?(ce=fe(j.s),be=fe(j.v),Q=m(j.h,ce,be),De=!0,ze="hsv"):q(j.h)&&q(j.s)&&q(j.l)&&(ce=fe(j.s),Ae=fe(j.l),Q=h(j.h,ce,Ae),De=!0,ze="hsl"),j.hasOwnProperty("a")&&(re=j.a)),re=P(re),{ok:De,format:j.format||ze,r:t(255,r(Q.r,0)),g:t(255,r(Q.g,0)),b:t(255,r(Q.b,0)),a:re}}function i(j,Q,re){return{r:U(j,255)*255,g:U(Q,255)*255,b:U(re,255)*255}}function s(j,Q,re){j=U(j,255),Q=U(Q,255),re=U(re,255);var ce=r(j,Q,re),be=t(j,Q,re),Ae,De,ze=(ce+be)/2;if(ce==be)Ae=De=0;else{var Ze=ce-be;switch(De=ze>.5?Ze/(2-ce-be):Ze/(ce+be),ce){case j:Ae=(Q-re)/Ze+(Q<re?6:0);break;case Q:Ae=(re-j)/Ze+2;break;case re:Ae=(j-Q)/Ze+4;break}Ae/=6}return{h:Ae,s:De,l:ze}}function h(j,Q,re){var ce,be,Ae;j=U(j,360),Q=U(Q,100),re=U(re,100);function De(at,nt,rt){return rt<0&&(rt+=1),rt>1&&(rt-=1),rt<1/6?at+(nt-at)*6*rt:rt<1/2?nt:rt<2/3?at+(nt-at)*(2/3-rt)*6:at}if(Q===0)ce=be=Ae=re;else{var ze=re<.5?re*(1+Q):re+Q-re*Q,Ze=2*re-ze;ce=De(Ze,ze,j+1/3),be=De(Ze,ze,j),Ae=De(Ze,ze,j-1/3)}return{r:ce*255,g:be*255,b:Ae*255}}function c(j,Q,re){j=U(j,255),Q=U(Q,255),re=U(re,255);var ce=r(j,Q,re),be=t(j,Q,re),Ae,De,ze=ce,Ze=ce-be;if(De=ce===0?0:Ze/ce,ce==be)Ae=0;else{switch(ce){case j:Ae=(Q-re)/Ze+(Q<re?6:0);break;case Q:Ae=(re-j)/Ze+2;break;case re:Ae=(j-Q)/Ze+4;break}Ae/=6}return{h:Ae,s:De,v:ze}}function m(j,Q,re){j=U(j,360)*6,Q=U(Q,100),re=U(re,100);var ce=v.floor(j),be=j-ce,Ae=re*(1-Q),De=re*(1-be*Q),ze=re*(1-(1-be)*Q),Ze=ce%6,at=[re,De,Ae,Ae,ze,re][Ze],nt=[ze,re,re,De,Ae,Ae][Ze],rt=[Ae,Ae,ze,re,re,De][Ze];return{r:at*255,g:nt*255,b:rt*255}}function p(j,Q,re,ce){var be=[le(e(j).toString(16)),le(e(Q).toString(16)),le(e(re).toString(16))];return ce&&be[0].charAt(0)==be[0].charAt(1)&&be[1].charAt(0)==be[1].charAt(1)&&be[2].charAt(0)==be[2].charAt(1)?be[0].charAt(0)+be[1].charAt(0)+be[2].charAt(0):be.join("")}function T(j,Q,re,ce,be){var Ae=[le(e(j).toString(16)),le(e(Q).toString(16)),le(e(re).toString(16)),le(V(ce))];return be&&Ae[0].charAt(0)==Ae[0].charAt(1)&&Ae[1].charAt(0)==Ae[1].charAt(1)&&Ae[2].charAt(0)==Ae[2].charAt(1)&&Ae[3].charAt(0)==Ae[3].charAt(1)?Ae[0].charAt(0)+Ae[1].charAt(0)+Ae[2].charAt(0)+Ae[3].charAt(0):Ae.join("")}function l(j,Q,re,ce){var be=[le(V(ce)),le(e(j).toString(16)),le(e(Q).toString(16)),le(e(re).toString(16))];return be.join("")}a.equals=function(j,Q){return!j||!Q?!1:a(j).toRgbString()==a(Q).toRgbString()},a.random=function(){return a.fromRatio({r:o(),g:o(),b:o()})};function _(j,Q){Q=Q===0?0:Q||10;var re=a(j).toHsl();return re.s-=Q/100,re.s=B(re.s),a(re)}function w(j,Q){Q=Q===0?0:Q||10;var re=a(j).toHsl();return re.s+=Q/100,re.s=B(re.s),a(re)}function A(j){return a(j).desaturate(100)}function M(j,Q){Q=Q===0?0:Q||10;var re=a(j).toHsl();return re.l+=Q/100,re.l=B(re.l),a(re)}function g(j,Q){Q=Q===0?0:Q||10;var re=a(j).toRgb();return re.r=r(0,t(255,re.r-e(255*-(Q/100)))),re.g=r(0,t(255,re.g-e(255*-(Q/100)))),re.b=r(0,t(255,re.b-e(255*-(Q/100)))),a(re)}function b(j,Q){Q=Q===0?0:Q||10;var re=a(j).toHsl();return re.l-=Q/100,re.l=B(re.l),a(re)}function d(j,Q){var re=a(j).toHsl(),ce=(re.h+Q)%360;return re.h=ce<0?360+ce:ce,a(re)}function u(j){var Q=a(j).toHsl();return Q.h=(Q.h+180)%360,a(Q)}function y(j){var Q=a(j).toHsl(),re=Q.h;return[a(j),a({h:(re+120)%360,s:Q.s,l:Q.l}),a({h:(re+240)%360,s:Q.s,l:Q.l})]}function f(j){var Q=a(j).toHsl(),re=Q.h;return[a(j),a({h:(re+90)%360,s:Q.s,l:Q.l}),a({h:(re+180)%360,s:Q.s,l:Q.l}),a({h:(re+270)%360,s:Q.s,l:Q.l})]}function R(j){var Q=a(j).toHsl(),re=Q.h;return[a(j),a({h:(re+72)%360,s:Q.s,l:Q.l}),a({h:(re+216)%360,s:Q.s,l:Q.l})]}function L(j,Q,re){Q=Q||6,re=re||30;var ce=a(j).toHsl(),be=360/re,Ae=[a(j)];for(ce.h=(ce.h-(be*Q>>1)+720)%360;--Q;)ce.h=(ce.h+be)%360,Ae.push(a(ce));return Ae}function z(j,Q){Q=Q||6;for(var re=a(j).toHsv(),ce=re.h,be=re.s,Ae=re.v,De=[],ze=1/Q;Q--;)De.push(a({h:ce,s:be,v:Ae})),Ae=(Ae+ze)%1;return De}a.mix=function(j,Q,re){re=re===0?0:re||50;var ce=a(j).toRgb(),be=a(Q).toRgb(),Ae=re/100,De={r:(be.r-ce.r)*Ae+ce.r,g:(be.g-ce.g)*Ae+ce.g,b:(be.b-ce.b)*Ae+ce.b,a:(be.a-ce.a)*Ae+ce.a};return a(De)},a.readability=function(j,Q){var re=a(j),ce=a(Q);return(v.max(re.getLuminance(),ce.getLuminance())+.05)/(v.min(re.getLuminance(),ce.getLuminance())+.05)},a.isReadable=function(j,Q,re){var ce=a.readability(j,Q),be,Ae;switch(Ae=!1,be=ae(re),be.level+be.size){case"AAsmall":case"AAAlarge":Ae=ce>=4.5;break;case"AAlarge":Ae=ce>=3;break;case"AAAsmall":Ae=ce>=7;break}return Ae},a.mostReadable=function(j,Q,re){var ce=null,be=0,Ae,De,ze,Ze;re=re||{},De=re.includeFallbackColors,ze=re.level,Ze=re.size;for(var at=0;at<Q.length;at++)Ae=a.readability(j,Q[at]),Ae>be&&(be=Ae,ce=a(Q[at]));return a.isReadable(j,ce,{level:ze,size:Ze})||!De?ce:(re.includeFallbackColors=!1,a.mostReadable(j,["#fff","#000"],re))};var F=a.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},N=a.hexNames=O(F);function O(j){var Q={};for(var re in j)j.hasOwnProperty(re)&&(Q[j[re]]=re);return Q}function P(j){return j=parseFloat(j),(isNaN(j)||j<0||j>1)&&(j=1),j}function U(j,Q){$(j)&&(j="100%");var re=se(j);return j=t(Q,r(0,parseFloat(j))),re&&(j=parseInt(j*Q,10)/100),v.abs(j-Q)<1e-6?1:j%Q/parseFloat(Q)}function B(j){return t(1,r(0,j))}function X(j){return parseInt(j,16)}function $(j){return typeof j=="string"&&j.indexOf(".")!=-1&&parseFloat(j)===1}function se(j){return typeof j=="string"&&j.indexOf("%")!=-1}function le(j){return j.length==1?"0"+j:""+j}function fe(j){return j<=1&&(j=j*100+"%"),j}function V(j){return v.round(parseFloat(j)*255).toString(16)}function Y(j){return X(j)/255}var ee=function(){var j="[-\\+]?\\d+%?",Q="[-\\+]?\\d*\\.\\d+%?",re="(?:"+Q+")|(?:"+j+")",ce="[\\s|\\(]+("+re+")[,|\\s]+("+re+")[,|\\s]+("+re+")\\s*\\)?",be="[\\s|\\(]+("+re+")[,|\\s]+("+re+")[,|\\s]+("+re+")[,|\\s]+("+re+")\\s*\\)?";return{CSS_UNIT:new RegExp(re),rgb:new RegExp("rgb"+ce),rgba:new RegExp("rgba"+be),hsl:new RegExp("hsl"+ce),hsla:new RegExp("hsla"+be),hsv:new RegExp("hsv"+ce),hsva:new RegExp("hsva"+be),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function q(j){return!!ee.CSS_UNIT.exec(j)}function oe(j){j=j.replace(x,"").replace(S,"").toLowerCase();var Q=!1;if(F[j])j=F[j],Q=!0;else if(j=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var re;return(re=ee.rgb.exec(j))?{r:re[1],g:re[2],b:re[3]}:(re=ee.rgba.exec(j))?{r:re[1],g:re[2],b:re[3],a:re[4]}:(re=ee.hsl.exec(j))?{h:re[1],s:re[2],l:re[3]}:(re=ee.hsla.exec(j))?{h:re[1],s:re[2],l:re[3],a:re[4]}:(re=ee.hsv.exec(j))?{h:re[1],s:re[2],v:re[3]}:(re=ee.hsva.exec(j))?{h:re[1],s:re[2],v:re[3],a:re[4]}:(re=ee.hex8.exec(j))?{r:X(re[1]),g:X(re[2]),b:X(re[3]),a:Y(re[4]),format:Q?"name":"hex8"}:(re=ee.hex6.exec(j))?{r:X(re[1]),g:X(re[2]),b:X(re[3]),format:Q?"name":"hex"}:(re=ee.hex4.exec(j))?{r:X(re[1]+""+re[1]),g:X(re[2]+""+re[2]),b:X(re[3]+""+re[3]),a:Y(re[4]+""+re[4]),format:Q?"name":"hex8"}:(re=ee.hex3.exec(j))?{r:X(re[1]+""+re[1]),g:X(re[2]+""+re[2]),b:X(re[3]+""+re[3]),format:Q?"name":"hex"}:!1}function ae(j){var Q,re;return j=j||{level:"AA",size:"small"},Q=(j.level||"AA").toUpperCase(),re=(j.size||"small").toLowerCase(),Q!=="AA"&&Q!=="AAA"&&(Q="AA"),re!=="small"&&re!=="large"&&(re="small"),{level:Q,size:re}}typeof G<"u"&&G.exports?G.exports=a:window.tinycolor=a})(Math)}}),Qo=Xe({"src/lib/extend.js"(Z){"use strict";var G=Zv(),v=Array.isArray;function x(E,e){var t,r;for(t=0;t<E.length;t++){if(r=E[t],r!==null&&typeof r=="object")return!1;r!==void 0&&(e[t]=r)}return!0}Z.extendFlat=function(){return S(arguments,!1,!1,!1)},Z.extendDeep=function(){return S(arguments,!0,!1,!1)},Z.extendDeepAll=function(){return S(arguments,!0,!0,!1)},Z.extendDeepNoArrays=function(){return S(arguments,!0,!1,!0)};function S(E,e,t,r){var o=E[0],a=E.length,n,i,s,h,c,m,p;if(a===2&&v(o)&&v(E[1])&&o.length===0){if(p=x(E[1],o),p)return o;o.splice(0,o.length)}for(var T=1;T<a;T++){n=E[T];for(i in n)s=o[i],h=n[i],r&&v(h)?o[i]=h:e&&h&&(G(h)||(c=v(h)))?(c?(c=!1,m=s&&v(s)?s:[]):m=s&&G(s)?s:{},o[i]=S([m,h],e,t,r)):(typeof h<"u"||t)&&(o[i]=h)}return o}}}),tc=Xe({"src/plots/font_attributes.js"(Z,G){"use strict";G.exports=function(v){var x=v.variantValues,S=v.editType,E=v.colorEditType;E===void 0&&(E=S);var e={editType:S,valType:"integer",min:1,max:1e3,extras:["normal","bold"],dflt:"normal"};v.noNumericWeightValues&&(e.valType="enumerated",e.values=e.extras,e.extras=void 0,e.min=void 0,e.max=void 0);var t={family:{valType:"string",noBlank:!0,strict:!0,editType:S},size:{valType:"number",min:1,editType:S},color:{valType:"color",editType:E},weight:e,style:{editType:S,valType:"enumerated",values:["normal","italic"],dflt:"normal"},variant:v.noFontVariant?void 0:{editType:S,valType:"enumerated",values:x||["normal","small-caps","all-small-caps","all-petite-caps","petite-caps","unicase"],dflt:"normal"},textcase:v.noFontTextcase?void 0:{editType:S,valType:"enumerated",values:["normal","word caps","upper","lower"],dflt:"normal"},lineposition:v.noFontLineposition?void 0:{editType:S,valType:"flaglist",flags:["under","over","through"],extras:["none"],dflt:"none"},shadow:v.noFontShadow?void 0:{editType:S,valType:"string",dflt:v.autoShadowDflt?"auto":"none"},editType:S};return v.autoSize&&(t.size.dflt="auto"),v.autoColor&&(t.color.dflt="auto"),v.arrayOk&&(t.family.arrayOk=!0,t.weight.arrayOk=!0,t.style.arrayOk=!0,v.noFontVariant||(t.variant.arrayOk=!0),v.noFontTextcase||(t.textcase.arrayOk=!0),v.noFontLineposition||(t.lineposition.arrayOk=!0),v.noFontShadow||(t.shadow.arrayOk=!0),t.size.arrayOk=!0,t.color.arrayOk=!0),t}}}),w_=Xe({"src/components/fx/constants.js"(Z,G){"use strict";G.exports={YANGLE:60,HOVERARROWSIZE:6,HOVERTEXTPAD:3,HOVERFONTSIZE:13,HOVERFONT:"Arial, sans-serif",HOVERMINTIME:50,HOVERID:"-hover"}}}),Zm=Xe({"src/components/fx/layout_attributes.js"(Z,G){"use strict";var v=w_(),x=tc(),S=x({editType:"none"});S.family.dflt=v.HOVERFONT,S.size.dflt=v.HOVERFONTSIZE,G.exports={clickmode:{valType:"flaglist",flags:["event","select"],dflt:"event",editType:"plot",extras:["none"]},dragmode:{valType:"enumerated",values:["zoom","pan","select","lasso","drawclosedpath","drawopenpath","drawline","drawrect","drawcircle","orbit","turntable",!1],dflt:"zoom",editType:"modebar"},hovermode:{valType:"enumerated",values:["x","y","closest",!1,"x unified","y unified"],dflt:"closest",editType:"modebar"},hoversubplots:{valType:"enumerated",values:["single","overlaying","axis"],dflt:"overlaying",editType:"none"},hoverdistance:{valType:"integer",min:-1,dflt:20,editType:"none"},spikedistance:{valType:"integer",min:-1,dflt:-1,editType:"none"},hoverlabel:{bgcolor:{valType:"color",editType:"none"},bordercolor:{valType:"color",editType:"none"},font:S,grouptitlefont:x({editType:"none"}),align:{valType:"enumerated",values:["left","right","auto"],dflt:"auto",editType:"none"},namelength:{valType:"integer",min:-1,dflt:15,editType:"none"},showarrow:{valType:"boolean",dflt:!0,editType:"none"},editType:"none"},selectdirection:{valType:"enumerated",values:["h","v","d","any"],dflt:"any",editType:"none"}}}}),Ky=Xe({"src/components/fx/attributes.js"(Z,G){"use strict";var v=tc(),x=Zm().hoverlabel,S=Qo().extendFlat;G.exports={hoverlabel:{bgcolor:S({},x.bgcolor,{arrayOk:!0}),bordercolor:S({},x.bordercolor,{arrayOk:!0}),font:v({arrayOk:!0,editType:"none"}),align:S({},x.align,{arrayOk:!0}),namelength:S({},x.namelength,{arrayOk:!0}),showarrow:S({},x.showarrow),editType:"none"}}}}),ru=Xe({"src/plots/attributes.js"(Z,G){"use strict";var v=tc(),x=Ky();G.exports={type:{valType:"enumerated",values:[],dflt:"scatter",editType:"calc+clearAxisTypes",_noTemplating:!0},visible:{valType:"enumerated",values:[!0,!1,"legendonly"],dflt:!0,editType:"calc"},showlegend:{valType:"boolean",dflt:!0,editType:"style"},legend:{valType:"subplotid",dflt:"legend",editType:"style"},legendgroup:{valType:"string",dflt:"",editType:"style"},legendgrouptitle:{text:{valType:"string",dflt:"",editType:"style"},font:v({editType:"style"}),editType:"style"},legendrank:{valType:"number",dflt:1e3,editType:"style"},legendwidth:{valType:"number",min:0,editType:"style"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"style"},name:{valType:"string",editType:"style"},uid:{valType:"string",editType:"plot",anim:!0},ids:{valType:"data_array",editType:"calc",anim:!0},customdata:{valType:"data_array",editType:"calc"},meta:{valType:"any",arrayOk:!0,editType:"plot"},selectedpoints:{valType:"any",editType:"calc"},hoverinfo:{valType:"flaglist",flags:["x","y","z","text","name"],extras:["all","none","skip"],arrayOk:!0,dflt:"all",editType:"none"},hoverlabel:x.hoverlabel,stream:{token:{valType:"string",noBlank:!0,strict:!0,editType:"calc"},maxpoints:{valType:"number",min:0,max:1e4,dflt:500,editType:"calc"},editType:"calc"},uirevision:{valType:"any",editType:"none"}}}}),W0=Xe({"src/components/colorscale/scales.js"(Z,G){"use strict";var v=Ch(),x={Greys:[[0,"rgb(0,0,0)"],[1,"rgb(255,255,255)"]],YlGnBu:[[0,"rgb(8,29,88)"],[.125,"rgb(37,52,148)"],[.25,"rgb(34,94,168)"],[.375,"rgb(29,145,192)"],[.5,"rgb(65,182,196)"],[.625,"rgb(127,205,187)"],[.75,"rgb(199,233,180)"],[.875,"rgb(237,248,217)"],[1,"rgb(255,255,217)"]],Greens:[[0,"rgb(0,68,27)"],[.125,"rgb(0,109,44)"],[.25,"rgb(35,139,69)"],[.375,"rgb(65,171,93)"],[.5,"rgb(116,196,118)"],[.625,"rgb(161,217,155)"],[.75,"rgb(199,233,192)"],[.875,"rgb(229,245,224)"],[1,"rgb(247,252,245)"]],YlOrRd:[[0,"rgb(128,0,38)"],[.125,"rgb(189,0,38)"],[.25,"rgb(227,26,28)"],[.375,"rgb(252,78,42)"],[.5,"rgb(253,141,60)"],[.625,"rgb(254,178,76)"],[.75,"rgb(254,217,118)"],[.875,"rgb(255,237,160)"],[1,"rgb(255,255,204)"]],Bluered:[[0,"rgb(0,0,255)"],[1,"rgb(255,0,0)"]],RdBu:[[0,"rgb(5,10,172)"],[.35,"rgb(106,137,247)"],[.5,"rgb(190,190,190)"],[.6,"rgb(220,170,132)"],[.7,"rgb(230,145,90)"],[1,"rgb(178,10,28)"]],Reds:[[0,"rgb(220,220,220)"],[.2,"rgb(245,195,157)"],[.4,"rgb(245,160,105)"],[1,"rgb(178,10,28)"]],Blues:[[0,"rgb(5,10,172)"],[.35,"rgb(40,60,190)"],[.5,"rgb(70,100,245)"],[.6,"rgb(90,120,245)"],[.7,"rgb(106,137,247)"],[1,"rgb(220,220,220)"]],Picnic:[[0,"rgb(0,0,255)"],[.1,"rgb(51,153,255)"],[.2,"rgb(102,204,255)"],[.3,"rgb(153,204,255)"],[.4,"rgb(204,204,255)"],[.5,"rgb(255,255,255)"],[.6,"rgb(255,204,255)"],[.7,"rgb(255,153,255)"],[.8,"rgb(255,102,204)"],[.9,"rgb(255,102,102)"],[1,"rgb(255,0,0)"]],Rainbow:[[0,"rgb(150,0,90)"],[.125,"rgb(0,0,200)"],[.25,"rgb(0,25,255)"],[.375,"rgb(0,152,255)"],[.5,"rgb(44,255,150)"],[.625,"rgb(151,255,0)"],[.75,"rgb(255,234,0)"],[.875,"rgb(255,111,0)"],[1,"rgb(255,0,0)"]],Portland:[[0,"rgb(12,51,131)"],[.25,"rgb(10,136,186)"],[.5,"rgb(242,211,56)"],[.75,"rgb(242,143,56)"],[1,"rgb(217,30,30)"]],Jet:[[0,"rgb(0,0,131)"],[.125,"rgb(0,60,170)"],[.375,"rgb(5,255,255)"],[.625,"rgb(255,255,0)"],[.875,"rgb(250,0,0)"],[1,"rgb(128,0,0)"]],Hot:[[0,"rgb(0,0,0)"],[.3,"rgb(230,0,0)"],[.6,"rgb(255,210,0)"],[1,"rgb(255,255,255)"]],Blackbody:[[0,"rgb(0,0,0)"],[.2,"rgb(230,0,0)"],[.4,"rgb(230,210,0)"],[.7,"rgb(255,255,255)"],[1,"rgb(160,200,255)"]],Earth:[[0,"rgb(0,0,130)"],[.1,"rgb(0,180,180)"],[.2,"rgb(40,210,40)"],[.4,"rgb(230,230,50)"],[.6,"rgb(120,70,20)"],[1,"rgb(255,255,255)"]],Electric:[[0,"rgb(0,0,0)"],[.15,"rgb(30,0,100)"],[.4,"rgb(120,0,100)"],[.6,"rgb(160,90,0)"],[.8,"rgb(230,200,0)"],[1,"rgb(255,250,220)"]],Viridis:[[0,"#440154"],[.06274509803921569,"#48186a"],[.12549019607843137,"#472d7b"],[.18823529411764706,"#424086"],[.25098039215686274,"#3b528b"],[.3137254901960784,"#33638d"],[.3764705882352941,"#2c728e"],[.4392156862745098,"#26828e"],[.5019607843137255,"#21918c"],[.5647058823529412,"#1fa088"],[.6274509803921569,"#28ae80"],[.6901960784313725,"#3fbc73"],[.7529411764705882,"#5ec962"],[.8156862745098039,"#84d44b"],[.8784313725490196,"#addc30"],[.9411764705882353,"#d8e219"],[1,"#fde725"]],Cividis:[[0,"rgb(0,32,76)"],[.058824,"rgb(0,42,102)"],[.117647,"rgb(0,52,110)"],[.176471,"rgb(39,63,108)"],[.235294,"rgb(60,74,107)"],[.294118,"rgb(76,85,107)"],[.352941,"rgb(91,95,109)"],[.411765,"rgb(104,106,112)"],[.470588,"rgb(117,117,117)"],[.529412,"rgb(131,129,120)"],[.588235,"rgb(146,140,120)"],[.647059,"rgb(161,152,118)"],[.705882,"rgb(176,165,114)"],[.764706,"rgb(192,177,109)"],[.823529,"rgb(209,191,102)"],[.882353,"rgb(225,204,92)"],[.941176,"rgb(243,219,79)"],[1,"rgb(255,233,69)"]]},S=x.RdBu;function E(r,o){if(o||(o=S),!r)return o;function a(){try{r=x[r]||JSON.parse(r)}catch{r=o}}return typeof r=="string"&&(a(),typeof r=="string"&&a()),e(r)?r:o}function e(r){var o=0;if(!Array.isArray(r)||r.length<2||!r[0]||!r[r.length-1]||+r[0][0]!=0||+r[r.length-1][0]!=1)return!1;for(var a=0;a<r.length;a++){var n=r[a];if(n.length!==2||+n[0]<o||!v(n[1]).isValid())return!1;o=+n[0]}return!0}function t(r){return x[r]!==void 0?!0:e(r)}G.exports={scales:x,defaultScale:S,get:E,isValid:t}}}),sh=Xe({"src/components/color/attributes.js"(Z){"use strict";Z.defaults=["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"],Z.defaultLine="#444",Z.lightLine="#eee",Z.background="#fff",Z.borderLine="#BEC8D9",Z.lightFraction=100*10/11}}),$n=Xe({"src/components/color/index.js"(Z,G){"use strict";var v=Ch(),x=rs(),S=bp().isTypedArray,E=G.exports={},e=sh();E.defaults=e.defaults;var t=E.defaultLine=e.defaultLine;E.lightLine=e.lightLine;var r=E.background=e.background;E.tinyRGB=function(a){var n=a.toRgb();return"rgb("+Math.round(n.r)+", "+Math.round(n.g)+", "+Math.round(n.b)+")"},E.rgb=function(a){return E.tinyRGB(v(a))},E.opacity=function(a){return a?v(a).getAlpha():0},E.addOpacity=function(a,n){var i=v(a).toRgb();return"rgba("+Math.round(i.r)+", "+Math.round(i.g)+", "+Math.round(i.b)+", "+n+")"},E.combine=function(a,n){var i=v(a).toRgb();if(i.a===1)return v(a).toRgbString();var s=v(n||r).toRgb(),h=s.a===1?s:{r:255*(1-s.a)+s.r*s.a,g:255*(1-s.a)+s.g*s.a,b:255*(1-s.a)+s.b*s.a},c={r:h.r*(1-i.a)+i.r*i.a,g:h.g*(1-i.a)+i.g*i.a,b:h.b*(1-i.a)+i.b*i.a};return v(c).toRgbString()},E.interpolate=function(a,n,i){var s=v(a).toRgb(),h=v(n).toRgb(),c={r:i*s.r+(1-i)*h.r,g:i*s.g+(1-i)*h.g,b:i*s.b+(1-i)*h.b};return v(c).toRgbString()},E.contrast=function(a,n,i){var s=v(a);s.getAlpha()!==1&&(s=v(E.combine(a,r)));var h=s.isDark()?n?s.lighten(n):r:i?s.darken(i):t;return h.toString()},E.stroke=function(a,n){var i=v(n);a.style({stroke:E.tinyRGB(i),"stroke-opacity":i.getAlpha()})},E.fill=function(a,n){var i=v(n);a.style({fill:E.tinyRGB(i),"fill-opacity":i.getAlpha()})},E.clean=function(a){if(!(!a||typeof a!="object")){var n=Object.keys(a),i,s,h,c;for(i=0;i<n.length;i++)if(h=n[i],c=a[h],h.slice(-5)==="color")if(Array.isArray(c))for(s=0;s<c.length;s++)c[s]=o(c[s]);else a[h]=o(c);else if(h.slice(-10)==="colorscale"&&Array.isArray(c))for(s=0;s<c.length;s++)Array.isArray(c[s])&&(c[s][1]=o(c[s][1]));else if(Array.isArray(c)){var m=c[0];if(!Array.isArray(m)&&m&&typeof m=="object")for(s=0;s<c.length;s++)E.clean(c[s])}else c&&typeof c=="object"&&!S(c)&&E.clean(c)}};function o(a){if(x(a)||typeof a!="string")return a;var n=a.trim();if(n.slice(0,3)!=="rgb")return a;var i=n.match(/^rgba?\s*\(([^()]*)\)$/);if(!i)return a;var s=i[1].trim().split(/\s*[\s,]\s*/),h=n.charAt(3)==="a"&&s.length===4;if(!h&&s.length!==3)return a;for(var c=0;c<s.length;c++){if(!s[c].length||(s[c]=Number(s[c]),!(s[c]>=0)))return a;if(c===3)s[c]>1&&(s[c]=1);else if(s[c]>=1)return a}var m=Math.round(s[0]*255)+", "+Math.round(s[1]*255)+", "+Math.round(s[2]*255);return h?"rgba("+m+", "+s[3]+")":"rgb("+m+")"}}}),Ym=Xe({"src/constants/interactions.js"(Z,G){"use strict";G.exports={SHOW_PLACEHOLDER:100,HIDE_PLACEHOLDER:1e3,DESELECTDIM:.2}}}),Jy=Xe({"src/lib/regex.js"(Z){"use strict";Z.counter=function(G,v,x,S){var E=(v||"")+(x?"":"$"),e=S===!1?"":"^";return G==="xy"?new RegExp(e+"x([2-9]|[1-9][0-9]+)?y([2-9]|[1-9][0-9]+)?"+E):new RegExp(e+G+"([2-9]|[1-9][0-9]+)?"+E)}}}),h7=Xe({"src/lib/coerce.js"(Z){"use strict";var G=rs(),v=Ch(),x=Qo().extendFlat,S=ru(),E=W0(),e=$n(),t=Ym().DESELECTDIM,r=b_(),o=Jy().counter,a=Yy().modHalf,n=bp().isArrayOrTypedArray,i=bp().isTypedArraySpec,s=bp().decodeTypedArraySpec;Z.valObjectMeta={data_array:{coerceFunction:function(c,m,p){m.set(n(c)?c:i(c)?s(c):p)}},enumerated:{coerceFunction:function(c,m,p,T){T.coerceNumber&&(c=+c),T.values.indexOf(c)===-1?m.set(p):m.set(c)},validateFunction:function(c,m){m.coerceNumber&&(c=+c);for(var p=m.values,T=0;T<p.length;T++){var l=String(p[T]);if(l.charAt(0)==="/"&&l.charAt(l.length-1)==="/"){var _=new RegExp(l.slice(1,-1));if(_.test(c))return!0}else if(c===p[T])return!0}return!1}},boolean:{coerceFunction:function(c,m,p,T){let l=_=>_===!0||_===!1;l(c)||T.arrayOk&&Array.isArray(c)&&c.length>0&&c.every(l)?m.set(c):m.set(p)}},number:{coerceFunction:function(c,m,p,T){i(c)&&(c=s(c)),!G(c)||T.min!==void 0&&c<T.min||T.max!==void 0&&c>T.max?m.set(p):m.set(+c)}},integer:{coerceFunction:function(c,m,p,T){if((T.extras||[]).indexOf(c)!==-1){m.set(c);return}i(c)&&(c=s(c)),c%1||!G(c)||T.min!==void 0&&c<T.min||T.max!==void 0&&c>T.max?m.set(p):m.set(+c)}},string:{coerceFunction:function(c,m,p,T){if(typeof c!="string"){var l=typeof c=="number";T.strict===!0||!l?m.set(p):m.set(String(c))}else T.noBlank&&!c?m.set(p):m.set(c)}},color:{coerceFunction:function(c,m,p){i(c)&&(c=s(c)),v(c).isValid()?m.set(c):m.set(p)}},colorlist:{coerceFunction:function(c,m,p){function T(l){return v(l).isValid()}!Array.isArray(c)||!c.length?m.set(p):c.every(T)?m.set(c):m.set(p)}},colorscale:{coerceFunction:function(c,m,p){m.set(E.get(c,p))}},angle:{coerceFunction:function(c,m,p){i(c)&&(c=s(c)),c==="auto"?m.set("auto"):G(c)?m.set(a(+c,360)):m.set(p)}},subplotid:{coerceFunction:function(c,m,p,T){var l=T.regex||o(p);let _=w=>typeof w=="string"&&l.test(w);_(c)||T.arrayOk&&n(c)&&c.length>0&&c.every(_)?m.set(c):m.set(p)},validateFunction:function(c,m){var p=m.dflt;return c===p?!0:typeof c!="string"?!1:!!o(p).test(c)}},flaglist:{coerceFunction:function(c,m,p,T){if((T.extras||[]).indexOf(c)!==-1){m.set(c);return}if(typeof c!="string"){m.set(p);return}for(var l=c.split("+"),_=0;_<l.length;){var w=l[_];T.flags.indexOf(w)===-1||l.indexOf(w)<_?l.splice(_,1):_++}l.length?m.set(l.join("+")):m.set(p)}},any:{coerceFunction:function(c,m,p){c===void 0?m.set(p):m.set(i(c)?s(c):c)}},info_array:{coerceFunction:function(c,m,p,T){function l(F,N,O){var P,U={set:function(B){P=B}};return O===void 0&&(O=N.dflt),Z.valObjectMeta[N.valType].coerceFunction(F,U,O,N),P}if(i(c)&&(c=s(c)),!n(c)){m.set(p);return}var _=T.dimensions===2||T.dimensions==="1-2"&&Array.isArray(c)&&n(c[0]),w=T.items,A=[],M=Array.isArray(w),g=M&&_&&n(w[0]),b=_&&M&&!g,d=M&&!b?w.length:c.length,u,y,f,R,L,z;if(p=Array.isArray(p)?p:[],_)for(u=0;u<d;u++)for(A[u]=[],f=n(c[u])?c[u]:[],b?L=w.length:M?L=w[u].length:L=f.length,y=0;y<L;y++)b?R=w[y]:M?R=w[u][y]:R=w,z=l(f[y],R,(p[u]||[])[y]),z!==void 0&&(A[u][y]=z);else for(u=0;u<d;u++)z=l(c[u],M?w[u]:w,p[u]),z!==void 0&&(A[u]=z);m.set(A)},validateFunction:function(c,m){if(!n(c))return!1;var p=m.items,T=Array.isArray(p),l=m.dimensions===2;if(!m.freeLength&&c.length!==p.length)return!1;for(var _=0;_<c.length;_++)if(l){if(!n(c[_])||!m.freeLength&&c[_].length!==p[_].length)return!1;for(var w=0;w<c[_].length;w++)if(!h(c[_][w],T?p[_][w]:p))return!1}else if(!h(c[_],T?p[_]:p))return!1;return!0}}},Z.coerce=function(c,m,p,T,l){var _=r(p,T).get(),w=r(c,T),A=r(m,T),M=w.get(),g=m._template;if(M===void 0&&g&&(M=r(g,T).get(),g=0),l===void 0&&(l=_.dflt),_.arrayOk){if(n(M))return A.set(M),M;if(i(M))return M=s(M),A.set(M),M}var b=Z.valObjectMeta[_.valType].coerceFunction;b(M,A,l,_);var d=A.get();return g&&d===l&&!h(M,_)&&(M=r(g,T).get(),b(M,A,l,_),d=A.get()),d},Z.coerce2=function(c,m,p,T,l){var _=r(c,T),w=Z.coerce(c,m,p,T,l),A=_.get();return A!=null?w:!1},Z.coerceFont=function(c,m,p,T){T||(T={}),p=x({},p),p=x(p,T.overrideDflt||{});var l={family:c(m+".family",p.family),size:c(m+".size",p.size),color:c(m+".color",p.color),weight:c(m+".weight",p.weight),style:c(m+".style",p.style)};if(T.noFontVariant||(l.variant=c(m+".variant",p.variant)),T.noFontLineposition||(l.lineposition=c(m+".lineposition",p.lineposition)),T.noFontTextcase||(l.textcase=c(m+".textcase",p.textcase)),!T.noFontShadow){var _=p.shadow;_==="none"&&T.autoShadowDflt&&(_="auto"),l.shadow=c(m+".shadow",_)}return l},Z.coercePattern=function(c,m,p,T){var l=c(m+".shape"),_;if(l||(_=c(m+".path")),l||_){l&&c(m+".solidity"),c(m+".size");var w=c(m+".fillmode"),A=w==="overlay";if(!T){var M=c(m+".bgcolor",A?p:void 0);c(m+".fgcolor",A?e.contrast(M):p)}c(m+".fgopacity",A?.5:1)}},Z.coerceHoverinfo=function(c,m,p){var T=m._module.attributes,l=T.hoverinfo?T:S,_=l.hoverinfo,w;if(p._dataLength===1){var A=_.dflt==="all"?_.flags.slice():_.dflt.split("+");A.splice(A.indexOf("name"),1),w=A.join("+")}return Z.coerce(c,m,l,"hoverinfo",w)},Z.coerceSelectionMarkerOpacity=function(c,m){if(c.marker){var p=c.marker.opacity;if(p!==void 0){var T,l;!n(p)&&!c.selected&&!c.unselected&&(T=p,l=t*p),m("selected.marker.opacity",T),m("unselected.marker.opacity",l)}}};function h(c,m){var p=Z.valObjectMeta[m.valType];if(m.arrayOk&&n(c))return!0;if(p.validateFunction)return p.validateFunction(c,m);var T={},l=T,_={set:function(w){l=w}};return p.coerceFunction(c,_,T,m),l!==T}Z.validate=h}}),X0=Xe({"src/plot_api/plot_config.js"(Z,G){"use strict";var v={staticPlot:{valType:"boolean",dflt:!1},typesetMath:{valType:"boolean",dflt:!0},plotlyServerURL:{valType:"string",dflt:""},editable:{valType:"boolean",dflt:!1},edits:{annotationPosition:{valType:"boolean",dflt:!1},annotationTail:{valType:"boolean",dflt:!1},annotationText:{valType:"boolean",dflt:!1},axisTitleText:{valType:"boolean",dflt:!1},colorbarPosition:{valType:"boolean",dflt:!1},colorbarTitleText:{valType:"boolean",dflt:!1},legendPosition:{valType:"boolean",dflt:!1},legendText:{valType:"boolean",dflt:!1},shapePosition:{valType:"boolean",dflt:!1},titleText:{valType:"boolean",dflt:!1}},editSelection:{valType:"boolean",dflt:!0},autosizable:{valType:"boolean",dflt:!1},responsive:{valType:"boolean",dflt:!1},fillFrame:{valType:"boolean",dflt:!1},frameMargins:{valType:"number",dflt:0,min:0,max:.5},scrollZoom:{valType:"flaglist",flags:["cartesian","gl3d","geo","mapbox","map"],extras:[!0,!1],dflt:"gl3d+geo+map"},doubleClick:{valType:"enumerated",values:[!1,"reset","autosize","reset+autosize"],dflt:"reset+autosize"},doubleClickDelay:{valType:"number",dflt:300,min:0},showAxisDragHandles:{valType:"boolean",dflt:!0},showAxisRangeEntryBoxes:{valType:"boolean",dflt:!0},showTips:{valType:"boolean",dflt:!0},showLink:{valType:"boolean",dflt:!1},linkText:{valType:"string",dflt:"Edit chart",noBlank:!0},sendData:{valType:"boolean",dflt:!0},showSources:{valType:"any",dflt:!1},displayModeBar:{valType:"enumerated",values:["hover",!0,!1],dflt:"hover"},showSendToCloud:{valType:"boolean",dflt:!1},showEditInChartStudio:{valType:"boolean",dflt:!1},modeBarButtonsToRemove:{valType:"any",dflt:[]},modeBarButtonsToAdd:{valType:"any",dflt:[]},modeBarButtons:{valType:"any",dflt:!1},toImageButtonOptions:{valType:"any",dflt:{}},displaylogo:{valType:"boolean",dflt:!0},watermark:{valType:"boolean",dflt:!1},plotGlPixelRatio:{valType:"number",dflt:2,min:1,max:4},setBackground:{valType:"any",dflt:"transparent"},topojsonURL:{valType:"string",noBlank:!0,dflt:"https://cdn.plot.ly/un/"},mapboxAccessToken:{valType:"string",dflt:null},logging:{valType:"integer",min:0,max:2,dflt:1},notifyOnLogging:{valType:"integer",min:0,max:2,dflt:0},queueLength:{valType:"integer",min:0,dflt:0},locale:{valType:"string",dflt:"en-US"},locales:{valType:"any",dflt:{}}},x={};function S(E,e){for(var t in E){var r=E[t];r.valType?e[t]=r.dflt:(e[t]||(e[t]={}),S(r,e[t]))}}S(v,x),G.exports={configAttributes:v,dfltConfig:x}}}),JA=Xe({"src/lib/notifier.js"(Z,G){"use strict";var v=Hn(),x=rs(),S=[];G.exports=function(E,e){if(S.indexOf(E)!==-1)return;S.push(E);var t=1e3;x(e)?t=e:e==="long"&&(t=3e3);var r=v.select("body").selectAll(".plotly-notifier").data([0]);r.enter().append("div").classed("plotly-notifier",!0);var o=r.selectAll(".notifier-note").data(S);function a(n){n.duration(700).style("opacity",0).each("end",function(i){var s=S.indexOf(i);s!==-1&&S.splice(s,1),v.select(this).remove()})}o.enter().append("div").classed("notifier-note",!0).style("opacity",0).each(function(n){var i=v.select(this);i.append("button").classed("notifier-close",!0).html("×").on("click",function(){i.transition().call(a)});for(var s=i.append("p"),h=n.split(/<br\s*\/?>/g),c=0;c<h.length;c++)c&&s.append("br"),s.append("span").text(h[c]);e==="stick"?i.transition().duration(350).style("opacity",1):i.transition().duration(700).style("opacity",1).transition().delay(t).call(a)})}}}),Km=Xe({"src/lib/loggers.js"(Z,G){"use strict";var v=X0().dfltConfig,x=JA(),S=G.exports={};S.log=function(){var E;if(v.logging>1){var e=["LOG:"];for(E=0;E<arguments.length;E++)e.push(arguments[E]);console.trace.apply(console,e)}if(v.notifyOnLogging>1){var t=[];for(E=0;E<arguments.length;E++)t.push(arguments[E]);x(t.join("<br>"),"long")}},S.warn=function(){var E;if(v.logging>0){var e=["WARN:"];for(E=0;E<arguments.length;E++)e.push(arguments[E]);console.trace.apply(console,e)}if(v.notifyOnLogging>0){var t=[];for(E=0;E<arguments.length;E++)t.push(arguments[E]);x(t.join("<br>"),"stick")}},S.error=function(){var E;if(v.logging>0){var e=["ERROR:"];for(E=0;E<arguments.length;E++)e.push(arguments[E]);console.error.apply(console,e)}if(v.notifyOnLogging>0){var t=[];for(E=0;E<arguments.length;E++)t.push(arguments[E]);x(t.join("<br>"),"stick")}}}}),p2=Xe({"src/lib/noop.js"(Z,G){"use strict";G.exports=function(){}}}),$A=Xe({"src/lib/push_unique.js"(Z,G){"use strict";G.exports=function(x,S){if(S instanceof RegExp){for(var E=S.toString(),e=0;e<x.length;e++)if(x[e]instanceof RegExp&&x[e].toString()===E)return x;x.push(S)}else(S||S===0)&&x.indexOf(S)===-1&&x.push(S);return x}}}),p7=Xe({"node_modules/gl-mat4/create.js"(Z,G){G.exports=v;function v(){var x=new Float32Array(16);return x[0]=1,x[1]=0,x[2]=0,x[3]=0,x[4]=0,x[5]=1,x[6]=0,x[7]=0,x[8]=0,x[9]=0,x[10]=1,x[11]=0,x[12]=0,x[13]=0,x[14]=0,x[15]=1,x}}}),d7=Xe({"node_modules/gl-mat4/clone.js"(Z,G){G.exports=v;function v(x){var S=new Float32Array(16);return S[0]=x[0],S[1]=x[1],S[2]=x[2],S[3]=x[3],S[4]=x[4],S[5]=x[5],S[6]=x[6],S[7]=x[7],S[8]=x[8],S[9]=x[9],S[10]=x[10],S[11]=x[11],S[12]=x[12],S[13]=x[13],S[14]=x[14],S[15]=x[15],S}}}),v7=Xe({"node_modules/gl-mat4/copy.js"(Z,G){G.exports=v;function v(x,S){return x[0]=S[0],x[1]=S[1],x[2]=S[2],x[3]=S[3],x[4]=S[4],x[5]=S[5],x[6]=S[6],x[7]=S[7],x[8]=S[8],x[9]=S[9],x[10]=S[10],x[11]=S[11],x[12]=S[12],x[13]=S[13],x[14]=S[14],x[15]=S[15],x}}}),QA=Xe({"node_modules/gl-mat4/identity.js"(Z,G){G.exports=v;function v(x){return x[0]=1,x[1]=0,x[2]=0,x[3]=0,x[4]=0,x[5]=1,x[6]=0,x[7]=0,x[8]=0,x[9]=0,x[10]=1,x[11]=0,x[12]=0,x[13]=0,x[14]=0,x[15]=1,x}}}),m7=Xe({"node_modules/gl-mat4/transpose.js"(Z,G){G.exports=v;function v(x,S){if(x===S){var E=S[1],e=S[2],t=S[3],r=S[6],o=S[7],a=S[11];x[1]=S[4],x[2]=S[8],x[3]=S[12],x[4]=E,x[6]=S[9],x[7]=S[13],x[8]=e,x[9]=r,x[11]=S[14],x[12]=t,x[13]=o,x[14]=a}else x[0]=S[0],x[1]=S[4],x[2]=S[8],x[3]=S[12],x[4]=S[1],x[5]=S[5],x[6]=S[9],x[7]=S[13],x[8]=S[2],x[9]=S[6],x[10]=S[10],x[11]=S[14],x[12]=S[3],x[13]=S[7],x[14]=S[11],x[15]=S[15];return x}}}),g7=Xe({"node_modules/gl-mat4/invert.js"(Z,G){G.exports=v;function v(x,S){var E=S[0],e=S[1],t=S[2],r=S[3],o=S[4],a=S[5],n=S[6],i=S[7],s=S[8],h=S[9],c=S[10],m=S[11],p=S[12],T=S[13],l=S[14],_=S[15],w=E*a-e*o,A=E*n-t*o,M=E*i-r*o,g=e*n-t*a,b=e*i-r*a,d=t*i-r*n,u=s*T-h*p,y=s*l-c*p,f=s*_-m*p,R=h*l-c*T,L=h*_-m*T,z=c*_-m*l,F=w*z-A*L+M*R+g*f-b*y+d*u;return F?(F=1/F,x[0]=(a*z-n*L+i*R)*F,x[1]=(t*L-e*z-r*R)*F,x[2]=(T*d-l*b+_*g)*F,x[3]=(c*b-h*d-m*g)*F,x[4]=(n*f-o*z-i*y)*F,x[5]=(E*z-t*f+r*y)*F,x[6]=(l*M-p*d-_*A)*F,x[7]=(s*d-c*M+m*A)*F,x[8]=(o*L-a*f+i*u)*F,x[9]=(e*f-E*L-r*u)*F,x[10]=(p*b-T*M+_*w)*F,x[11]=(h*M-s*b-m*w)*F,x[12]=(a*y-o*R-n*u)*F,x[13]=(E*R-e*y+t*u)*F,x[14]=(T*A-p*g-l*w)*F,x[15]=(s*g-h*A+c*w)*F,x):null}}}),y7=Xe({"node_modules/gl-mat4/adjoint.js"(Z,G){G.exports=v;function v(x,S){var E=S[0],e=S[1],t=S[2],r=S[3],o=S[4],a=S[5],n=S[6],i=S[7],s=S[8],h=S[9],c=S[10],m=S[11],p=S[12],T=S[13],l=S[14],_=S[15];return x[0]=a*(c*_-m*l)-h*(n*_-i*l)+T*(n*m-i*c),x[1]=-(e*(c*_-m*l)-h*(t*_-r*l)+T*(t*m-r*c)),x[2]=e*(n*_-i*l)-a*(t*_-r*l)+T*(t*i-r*n),x[3]=-(e*(n*m-i*c)-a*(t*m-r*c)+h*(t*i-r*n)),x[4]=-(o*(c*_-m*l)-s*(n*_-i*l)+p*(n*m-i*c)),x[5]=E*(c*_-m*l)-s*(t*_-r*l)+p*(t*m-r*c),x[6]=-(E*(n*_-i*l)-o*(t*_-r*l)+p*(t*i-r*n)),x[7]=E*(n*m-i*c)-o*(t*m-r*c)+s*(t*i-r*n),x[8]=o*(h*_-m*T)-s*(a*_-i*T)+p*(a*m-i*h),x[9]=-(E*(h*_-m*T)-s*(e*_-r*T)+p*(e*m-r*h)),x[10]=E*(a*_-i*T)-o*(e*_-r*T)+p*(e*i-r*a),x[11]=-(E*(a*m-i*h)-o*(e*m-r*h)+s*(e*i-r*a)),x[12]=-(o*(h*l-c*T)-s*(a*l-n*T)+p*(a*c-n*h)),x[13]=E*(h*l-c*T)-s*(e*l-t*T)+p*(e*c-t*h),x[14]=-(E*(a*l-n*T)-o*(e*l-t*T)+p*(e*n-t*a)),x[15]=E*(a*c-n*h)-o*(e*c-t*h)+s*(e*n-t*a),x}}}),_7=Xe({"node_modules/gl-mat4/determinant.js"(Z,G){G.exports=v;function v(x){var S=x[0],E=x[1],e=x[2],t=x[3],r=x[4],o=x[5],a=x[6],n=x[7],i=x[8],s=x[9],h=x[10],c=x[11],m=x[12],p=x[13],T=x[14],l=x[15],_=S*o-E*r,w=S*a-e*r,A=S*n-t*r,M=E*a-e*o,g=E*n-t*o,b=e*n-t*a,d=i*p-s*m,u=i*T-h*m,y=i*l-c*m,f=s*T-h*p,R=s*l-c*p,L=h*l-c*T;return _*L-w*R+A*f+M*y-g*u+b*d}}}),x7=Xe({"node_modules/gl-mat4/multiply.js"(Z,G){G.exports=v;function v(x,S,E){var e=S[0],t=S[1],r=S[2],o=S[3],a=S[4],n=S[5],i=S[6],s=S[7],h=S[8],c=S[9],m=S[10],p=S[11],T=S[12],l=S[13],_=S[14],w=S[15],A=E[0],M=E[1],g=E[2],b=E[3];return x[0]=A*e+M*a+g*h+b*T,x[1]=A*t+M*n+g*c+b*l,x[2]=A*r+M*i+g*m+b*_,x[3]=A*o+M*s+g*p+b*w,A=E[4],M=E[5],g=E[6],b=E[7],x[4]=A*e+M*a+g*h+b*T,x[5]=A*t+M*n+g*c+b*l,x[6]=A*r+M*i+g*m+b*_,x[7]=A*o+M*s+g*p+b*w,A=E[8],M=E[9],g=E[10],b=E[11],x[8]=A*e+M*a+g*h+b*T,x[9]=A*t+M*n+g*c+b*l,x[10]=A*r+M*i+g*m+b*_,x[11]=A*o+M*s+g*p+b*w,A=E[12],M=E[13],g=E[14],b=E[15],x[12]=A*e+M*a+g*h+b*T,x[13]=A*t+M*n+g*c+b*l,x[14]=A*r+M*i+g*m+b*_,x[15]=A*o+M*s+g*p+b*w,x}}}),b7=Xe({"node_modules/gl-mat4/translate.js"(Z,G){G.exports=v;function v(x,S,E){var e=E[0],t=E[1],r=E[2],o,a,n,i,s,h,c,m,p,T,l,_;return S===x?(x[12]=S[0]*e+S[4]*t+S[8]*r+S[12],x[13]=S[1]*e+S[5]*t+S[9]*r+S[13],x[14]=S[2]*e+S[6]*t+S[10]*r+S[14],x[15]=S[3]*e+S[7]*t+S[11]*r+S[15]):(o=S[0],a=S[1],n=S[2],i=S[3],s=S[4],h=S[5],c=S[6],m=S[7],p=S[8],T=S[9],l=S[10],_=S[11],x[0]=o,x[1]=a,x[2]=n,x[3]=i,x[4]=s,x[5]=h,x[6]=c,x[7]=m,x[8]=p,x[9]=T,x[10]=l,x[11]=_,x[12]=o*e+s*t+p*r+S[12],x[13]=a*e+h*t+T*r+S[13],x[14]=n*e+c*t+l*r+S[14],x[15]=i*e+m*t+_*r+S[15]),x}}}),w7=Xe({"node_modules/gl-mat4/scale.js"(Z,G){G.exports=v;function v(x,S,E){var e=E[0],t=E[1],r=E[2];return x[0]=S[0]*e,x[1]=S[1]*e,x[2]=S[2]*e,x[3]=S[3]*e,x[4]=S[4]*t,x[5]=S[5]*t,x[6]=S[6]*t,x[7]=S[7]*t,x[8]=S[8]*r,x[9]=S[9]*r,x[10]=S[10]*r,x[11]=S[11]*r,x[12]=S[12],x[13]=S[13],x[14]=S[14],x[15]=S[15],x}}}),T7=Xe({"node_modules/gl-mat4/rotate.js"(Z,G){G.exports=v;function v(x,S,E,e){var t=e[0],r=e[1],o=e[2],a=Math.sqrt(t*t+r*r+o*o),n,i,s,h,c,m,p,T,l,_,w,A,M,g,b,d,u,y,f,R,L,z,F,N;return Math.abs(a)<1e-6?null:(a=1/a,t*=a,r*=a,o*=a,n=Math.sin(E),i=Math.cos(E),s=1-i,h=S[0],c=S[1],m=S[2],p=S[3],T=S[4],l=S[5],_=S[6],w=S[7],A=S[8],M=S[9],g=S[10],b=S[11],d=t*t*s+i,u=r*t*s+o*n,y=o*t*s-r*n,f=t*r*s-o*n,R=r*r*s+i,L=o*r*s+t*n,z=t*o*s+r*n,F=r*o*s-t*n,N=o*o*s+i,x[0]=h*d+T*u+A*y,x[1]=c*d+l*u+M*y,x[2]=m*d+_*u+g*y,x[3]=p*d+w*u+b*y,x[4]=h*f+T*R+A*L,x[5]=c*f+l*R+M*L,x[6]=m*f+_*R+g*L,x[7]=p*f+w*R+b*L,x[8]=h*z+T*F+A*N,x[9]=c*z+l*F+M*N,x[10]=m*z+_*F+g*N,x[11]=p*z+w*F+b*N,S!==x&&(x[12]=S[12],x[13]=S[13],x[14]=S[14],x[15]=S[15]),x)}}}),A7=Xe({"node_modules/gl-mat4/rotateX.js"(Z,G){G.exports=v;function v(x,S,E){var e=Math.sin(E),t=Math.cos(E),r=S[4],o=S[5],a=S[6],n=S[7],i=S[8],s=S[9],h=S[10],c=S[11];return S!==x&&(x[0]=S[0],x[1]=S[1],x[2]=S[2],x[3]=S[3],x[12]=S[12],x[13]=S[13],x[14]=S[14],x[15]=S[15]),x[4]=r*t+i*e,x[5]=o*t+s*e,x[6]=a*t+h*e,x[7]=n*t+c*e,x[8]=i*t-r*e,x[9]=s*t-o*e,x[10]=h*t-a*e,x[11]=c*t-n*e,x}}}),S7=Xe({"node_modules/gl-mat4/rotateY.js"(Z,G){G.exports=v;function v(x,S,E){var e=Math.sin(E),t=Math.cos(E),r=S[0],o=S[1],a=S[2],n=S[3],i=S[8],s=S[9],h=S[10],c=S[11];return S!==x&&(x[4]=S[4],x[5]=S[5],x[6]=S[6],x[7]=S[7],x[12]=S[12],x[13]=S[13],x[14]=S[14],x[15]=S[15]),x[0]=r*t-i*e,x[1]=o*t-s*e,x[2]=a*t-h*e,x[3]=n*t-c*e,x[8]=r*e+i*t,x[9]=o*e+s*t,x[10]=a*e+h*t,x[11]=n*e+c*t,x}}}),M7=Xe({"node_modules/gl-mat4/rotateZ.js"(Z,G){G.exports=v;function v(x,S,E){var e=Math.sin(E),t=Math.cos(E),r=S[0],o=S[1],a=S[2],n=S[3],i=S[4],s=S[5],h=S[6],c=S[7];return S!==x&&(x[8]=S[8],x[9]=S[9],x[10]=S[10],x[11]=S[11],x[12]=S[12],x[13]=S[13],x[14]=S[14],x[15]=S[15]),x[0]=r*t+i*e,x[1]=o*t+s*e,x[2]=a*t+h*e,x[3]=n*t+c*e,x[4]=i*t-r*e,x[5]=s*t-o*e,x[6]=h*t-a*e,x[7]=c*t-n*e,x}}}),E7=Xe({"node_modules/gl-mat4/fromRotation.js"(Z,G){G.exports=v;function v(x,S,E){var e,t,r,o=E[0],a=E[1],n=E[2],i=Math.sqrt(o*o+a*a+n*n);return Math.abs(i)<1e-6?null:(i=1/i,o*=i,a*=i,n*=i,e=Math.sin(S),t=Math.cos(S),r=1-t,x[0]=o*o*r+t,x[1]=a*o*r+n*e,x[2]=n*o*r-a*e,x[3]=0,x[4]=o*a*r-n*e,x[5]=a*a*r+t,x[6]=n*a*r+o*e,x[7]=0,x[8]=o*n*r+a*e,x[9]=a*n*r-o*e,x[10]=n*n*r+t,x[11]=0,x[12]=0,x[13]=0,x[14]=0,x[15]=1,x)}}}),k7=Xe({"node_modules/gl-mat4/fromRotationTranslation.js"(Z,G){G.exports=v;function v(x,S,E){var e=S[0],t=S[1],r=S[2],o=S[3],a=e+e,n=t+t,i=r+r,s=e*a,h=e*n,c=e*i,m=t*n,p=t*i,T=r*i,l=o*a,_=o*n,w=o*i;return x[0]=1-(m+T),x[1]=h+w,x[2]=c-_,x[3]=0,x[4]=h-w,x[5]=1-(s+T),x[6]=p+l,x[7]=0,x[8]=c+_,x[9]=p-l,x[10]=1-(s+m),x[11]=0,x[12]=E[0],x[13]=E[1],x[14]=E[2],x[15]=1,x}}}),C7=Xe({"node_modules/gl-mat4/fromScaling.js"(Z,G){G.exports=v;function v(x,S){return x[0]=S[0],x[1]=0,x[2]=0,x[3]=0,x[4]=0,x[5]=S[1],x[6]=0,x[7]=0,x[8]=0,x[9]=0,x[10]=S[2],x[11]=0,x[12]=0,x[13]=0,x[14]=0,x[15]=1,x}}}),L7=Xe({"node_modules/gl-mat4/fromTranslation.js"(Z,G){G.exports=v;function v(x,S){return x[0]=1,x[1]=0,x[2]=0,x[3]=0,x[4]=0,x[5]=1,x[6]=0,x[7]=0,x[8]=0,x[9]=0,x[10]=1,x[11]=0,x[12]=S[0],x[13]=S[1],x[14]=S[2],x[15]=1,x}}}),P7=Xe({"node_modules/gl-mat4/fromXRotation.js"(Z,G){G.exports=v;function v(x,S){var E=Math.sin(S),e=Math.cos(S);return x[0]=1,x[1]=0,x[2]=0,x[3]=0,x[4]=0,x[5]=e,x[6]=E,x[7]=0,x[8]=0,x[9]=-E,x[10]=e,x[11]=0,x[12]=0,x[13]=0,x[14]=0,x[15]=1,x}}}),I7=Xe({"node_modules/gl-mat4/fromYRotation.js"(Z,G){G.exports=v;function v(x,S){var E=Math.sin(S),e=Math.cos(S);return x[0]=e,x[1]=0,x[2]=-E,x[3]=0,x[4]=0,x[5]=1,x[6]=0,x[7]=0,x[8]=E,x[9]=0,x[10]=e,x[11]=0,x[12]=0,x[13]=0,x[14]=0,x[15]=1,x}}}),R7=Xe({"node_modules/gl-mat4/fromZRotation.js"(Z,G){G.exports=v;function v(x,S){var E=Math.sin(S),e=Math.cos(S);return x[0]=e,x[1]=E,x[2]=0,x[3]=0,x[4]=-E,x[5]=e,x[6]=0,x[7]=0,x[8]=0,x[9]=0,x[10]=1,x[11]=0,x[12]=0,x[13]=0,x[14]=0,x[15]=1,x}}}),D7=Xe({"node_modules/gl-mat4/fromQuat.js"(Z,G){G.exports=v;function v(x,S){var E=S[0],e=S[1],t=S[2],r=S[3],o=E+E,a=e+e,n=t+t,i=E*o,s=e*o,h=e*a,c=t*o,m=t*a,p=t*n,T=r*o,l=r*a,_=r*n;return x[0]=1-h-p,x[1]=s+_,x[2]=c-l,x[3]=0,x[4]=s-_,x[5]=1-i-p,x[6]=m+T,x[7]=0,x[8]=c+l,x[9]=m-T,x[10]=1-i-h,x[11]=0,x[12]=0,x[13]=0,x[14]=0,x[15]=1,x}}}),z7=Xe({"node_modules/gl-mat4/frustum.js"(Z,G){G.exports=v;function v(x,S,E,e,t,r,o){var a=1/(E-S),n=1/(t-e),i=1/(r-o);return x[0]=r*2*a,x[1]=0,x[2]=0,x[3]=0,x[4]=0,x[5]=r*2*n,x[6]=0,x[7]=0,x[8]=(E+S)*a,x[9]=(t+e)*n,x[10]=(o+r)*i,x[11]=-1,x[12]=0,x[13]=0,x[14]=o*r*2*i,x[15]=0,x}}}),F7=Xe({"node_modules/gl-mat4/perspective.js"(Z,G){G.exports=v;function v(x,S,E,e,t){var r=1/Math.tan(S/2),o=1/(e-t);return x[0]=r/E,x[1]=0,x[2]=0,x[3]=0,x[4]=0,x[5]=r,x[6]=0,x[7]=0,x[8]=0,x[9]=0,x[10]=(t+e)*o,x[11]=-1,x[12]=0,x[13]=0,x[14]=2*t*e*o,x[15]=0,x}}}),O7=Xe({"node_modules/gl-mat4/perspectiveFromFieldOfView.js"(Z,G){G.exports=v;function v(x,S,E,e){var t=Math.tan(S.upDegrees*Math.PI/180),r=Math.tan(S.downDegrees*Math.PI/180),o=Math.tan(S.leftDegrees*Math.PI/180),a=Math.tan(S.rightDegrees*Math.PI/180),n=2/(o+a),i=2/(t+r);return x[0]=n,x[1]=0,x[2]=0,x[3]=0,x[4]=0,x[5]=i,x[6]=0,x[7]=0,x[8]=-((o-a)*n*.5),x[9]=(t-r)*i*.5,x[10]=e/(E-e),x[11]=-1,x[12]=0,x[13]=0,x[14]=e*E/(E-e),x[15]=0,x}}}),B7=Xe({"node_modules/gl-mat4/ortho.js"(Z,G){G.exports=v;function v(x,S,E,e,t,r,o){var a=1/(S-E),n=1/(e-t),i=1/(r-o);return x[0]=-2*a,x[1]=0,x[2]=0,x[3]=0,x[4]=0,x[5]=-2*n,x[6]=0,x[7]=0,x[8]=0,x[9]=0,x[10]=2*i,x[11]=0,x[12]=(S+E)*a,x[13]=(t+e)*n,x[14]=(o+r)*i,x[15]=1,x}}}),N7=Xe({"node_modules/gl-mat4/lookAt.js"(Z,G){var v=QA();G.exports=x;function x(S,E,e,t){var r,o,a,n,i,s,h,c,m,p,T=E[0],l=E[1],_=E[2],w=t[0],A=t[1],M=t[2],g=e[0],b=e[1],d=e[2];return Math.abs(T-g)<1e-6&&Math.abs(l-b)<1e-6&&Math.abs(_-d)<1e-6?v(S):(h=T-g,c=l-b,m=_-d,p=1/Math.sqrt(h*h+c*c+m*m),h*=p,c*=p,m*=p,r=A*m-M*c,o=M*h-w*m,a=w*c-A*h,p=Math.sqrt(r*r+o*o+a*a),p?(p=1/p,r*=p,o*=p,a*=p):(r=0,o=0,a=0),n=c*a-m*o,i=m*r-h*a,s=h*o-c*r,p=Math.sqrt(n*n+i*i+s*s),p?(p=1/p,n*=p,i*=p,s*=p):(n=0,i=0,s=0),S[0]=r,S[1]=n,S[2]=h,S[3]=0,S[4]=o,S[5]=i,S[6]=c,S[7]=0,S[8]=a,S[9]=s,S[10]=m,S[11]=0,S[12]=-(r*T+o*l+a*_),S[13]=-(n*T+i*l+s*_),S[14]=-(h*T+c*l+m*_),S[15]=1,S)}}}),U7=Xe({"node_modules/gl-mat4/str.js"(Z,G){G.exports=v;function v(x){return"mat4("+x[0]+", "+x[1]+", "+x[2]+", "+x[3]+", "+x[4]+", "+x[5]+", "+x[6]+", "+x[7]+", "+x[8]+", "+x[9]+", "+x[10]+", "+x[11]+", "+x[12]+", "+x[13]+", "+x[14]+", "+x[15]+")"}}}),e5=Xe({"node_modules/gl-mat4/index.js"(Z,G){G.exports={create:p7(),clone:d7(),copy:v7(),identity:QA(),transpose:m7(),invert:g7(),adjoint:y7(),determinant:_7(),multiply:x7(),translate:b7(),scale:w7(),rotate:T7(),rotateX:A7(),rotateY:S7(),rotateZ:M7(),fromRotation:E7(),fromRotationTranslation:k7(),fromScaling:C7(),fromTranslation:L7(),fromXRotation:P7(),fromYRotation:I7(),fromZRotation:R7(),fromQuat:D7(),frustum:z7(),perspective:F7(),perspectiveFromFieldOfView:O7(),ortho:B7(),lookAt:N7(),str:U7()}}}),d2=Xe({"src/lib/matrix.js"(Z){"use strict";var G=e5();Z.init2dArray=function(v,x){for(var S=new Array(v),E=0;E<v;E++)S[E]=new Array(x);return S},Z.transposeRagged=function(v){var x=0,S=v.length,E,e;for(E=0;E<S;E++)x=Math.max(x,v[E].length);var t=new Array(x);for(E=0;E<x;E++)for(t[E]=new Array(S),e=0;e<S;e++)t[E][e]=v[e][E];return t},Z.dot=function(v,x){if(!(v.length&&x.length)||v.length!==x.length)return null;var S=v.length,E,e;if(v[0].length)for(E=new Array(S),e=0;e<S;e++)E[e]=Z.dot(v[e],x);else if(x[0].length){var t=Z.transposeRagged(x);for(E=new Array(t.length),e=0;e<t.length;e++)E[e]=Z.dot(v,t[e])}else for(E=0,e=0;e<S;e++)E+=v[e]*x[e];return E},Z.translationMatrix=function(v,x){return[[1,0,v],[0,1,x],[0,0,1]]},Z.rotationMatrix=function(v){var x=v*Math.PI/180;return[[Math.cos(x),-Math.sin(x),0],[Math.sin(x),Math.cos(x),0],[0,0,1]]},Z.rotationXYMatrix=function(v,x,S){return Z.dot(Z.dot(Z.translationMatrix(x,S),Z.rotationMatrix(v)),Z.translationMatrix(-x,-S))},Z.apply3DTransform=function(v){return function(){var x=arguments,S=arguments.length===1?x[0]:[x[0],x[1],x[2]||0];return Z.dot(v,[S[0],S[1],S[2],1]).slice(0,3)}},Z.apply2DTransform=function(v){return function(){var x=arguments;x.length===3&&(x=x[0]);var S=arguments.length===1?x[0]:[x[0],x[1]];return Z.dot(v,[S[0],S[1],1]).slice(0,2)}},Z.apply2DTransform2=function(v){var x=Z.apply2DTransform(v);return function(S){return x(S.slice(0,2)).concat(x(S.slice(2,4)))}},Z.convertCssMatrix=function(v){if(v){var x=v.length;if(x===16)return v;if(x===6)return[v[0],v[1],0,0,v[2],v[3],0,0,0,0,1,0,v[4],v[5],0,1]}return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]},Z.inverseTransformMatrix=function(v){var x=[];return G.invert(x,v),[[x[0],x[1],x[2],x[3]],[x[4],x[5],x[6],x[7]],[x[8],x[9],x[10],x[11]],[x[12],x[13],x[14],x[15]]]}}}),T_=Xe({"src/lib/dom.js"(Z,G){"use strict";var v=Hn(),x=Km(),S=d2(),E=e5();function e(T){var l;if(typeof T=="string"){if(l=document.getElementById(T),l===null)throw new Error("No DOM element with id '"+T+"' exists on the page.");return l}else if(T==null)throw new Error("DOM element provided is null or undefined");return T}function t(T){var l=v.select(T);return l.node()instanceof HTMLElement&&l.size()&&l.classed("js-plotly-plot")}function r(T){var l=T&&T.parentNode;l&&l.removeChild(T)}function o(T,l){a("global",T,l)}function a(T,l,_){var w="plotly.js-style-"+T,A=document.getElementById(w);if(!(A&&A.matches(".no-inline-styles"))){A||(A=document.createElement("style"),A.setAttribute("id",w),A.appendChild(document.createTextNode("")),document.head.appendChild(A));var M=A.sheet;M?M.insertRule?M.insertRule(l+"{"+_+"}",0):M.addRule?M.addRule(l,_,0):x.warn("addStyleRule failed"):x.warn("Cannot addRelatedStyleRule, probably due to strict CSP...")}}function n(T){var l="plotly.js-style-"+T,_=document.getElementById(l);_&&r(_)}function i(T,l,_,w,A,M){var g=w.split(":"),b=A.split(":"),d="data-btn-style-event-added";M||(M=document),M.querySelectorAll(T).forEach(function(u){u.getAttribute(d)||(u.addEventListener("mouseenter",function(){var y=this.querySelector(_);y&&(y.style[g[0]]=g[1])}),u.addEventListener("mouseleave",function(){var y=this.querySelector(_);y&&(l&&this.matches(l)?y.style[g[0]]=g[1]:y.style[b[0]]=b[1])}),u.setAttribute(d,!0))})}function s(T){var l=c(T),_=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];return l.forEach(function(w){var A=h(w);if(A){var M=S.convertCssMatrix(A);_=E.multiply(_,_,M)}}),_}function h(T){var l=window.getComputedStyle(T,null),_=l.getPropertyValue("-webkit-transform")||l.getPropertyValue("-moz-transform")||l.getPropertyValue("-ms-transform")||l.getPropertyValue("-o-transform")||l.getPropertyValue("transform");return _==="none"?null:_.replace("matrix","").replace("3d","").slice(1,-1).split(",").map(function(w){return+w})}function c(T){for(var l=[];m(T);)l.push(T),T=T.parentNode,typeof ShadowRoot=="function"&&T instanceof ShadowRoot&&(T=T.host);return l}function m(T){return T&&(T instanceof Element||T instanceof HTMLElement)}function p(T,l){return T&&l&&T.top===l.top&&T.left===l.left&&T.right===l.right&&T.bottom===l.bottom}G.exports={getGraphDiv:e,isPlotDiv:t,removeElement:r,addStyleRule:o,addRelatedStyleRule:a,deleteRelatedStyleRule:n,setStyleOnHover:i,getFullTransformMatrix:s,getElementTransformMatrix:h,getElementAndAncestors:c,equalDomRects:p}}}),A_=Xe({"src/plots/animation_attributes.js"(Z,G){"use strict";G.exports={mode:{valType:"enumerated",dflt:"afterall",values:["immediate","next","afterall"]},direction:{valType:"enumerated",values:["forward","reverse"],dflt:"forward"},fromcurrent:{valType:"boolean",dflt:!1},frame:{duration:{valType:"number",min:0,dflt:500},redraw:{valType:"boolean",dflt:!0}},transition:{duration:{valType:"number",min:0,dflt:500,editType:"none"},easing:{valType:"enumerated",dflt:"cubic-in-out",values:["linear","quad","cubic","sin","exp","circle","elastic","back","bounce","linear-in","quad-in","cubic-in","sin-in","exp-in","circle-in","elastic-in","back-in","bounce-in","linear-out","quad-out","cubic-out","sin-out","exp-out","circle-out","elastic-out","back-out","bounce-out","linear-in-out","quad-in-out","cubic-in-out","sin-in-out","exp-in-out","circle-in-out","elastic-in-out","back-in-out","bounce-in-out"],editType:"none"},ordering:{valType:"enumerated",values:["layout first","traces first"],dflt:"layout first",editType:"none"}}}}}),pc=Xe({"src/plot_api/edit_types.js"(Z,G){"use strict";var v=Qo().extendFlat,x=Zv(),S={valType:"flaglist",extras:["none"],flags:["calc","clearAxisTypes","plot","style","markerSize","colorbars"]},E={valType:"flaglist",extras:["none"],flags:["calc","plot","legend","ticks","axrange","layoutstyle","modebar","camera","arraydraw","colorbars"]},e=S.flags.slice().concat(["fullReplot"]),t=E.flags.slice().concat("layoutReplot");G.exports={traces:S,layout:E,traceFlags:function(){return r(e)},layoutFlags:function(){return r(t)},update:function(n,i){var s=i.editType;if(s&&s!=="none")for(var h=s.split("+"),c=0;c<h.length;c++)n[h[c]]=!0},overrideAll:o};function r(n){for(var i={},s=0;s<n.length;s++)i[n[s]]=!1;return i}function o(n,i,s){var h=v({},n);for(var c in h){var m=h[c];x(m)&&(h[c]=a(m,i,s,c))}return s==="from-root"&&(h.editType=i),h}function a(n,i,s,h){if(n.valType){var c=v({},n);if(c.editType=i,Array.isArray(n.items)){c.items=new Array(n.items.length);for(var m=0;m<n.items.length;m++)c.items[m]=a(n.items[m],i,"from-root")}return c}else return o(n,i,h.charAt(0)==="_"?"nested":"from-root")}}}),Gh=Xe({"src/components/drawing/attributes.js"(Z){"use strict";Z.dash={valType:"string",values:["solid","dot","dash","longdash","dashdot","longdashdot"],dflt:"solid",editType:"style"},Z.pattern={shape:{valType:"enumerated",values:["","/","\\","x","-","|","+","."],dflt:"",arrayOk:!0,editType:"style"},path:{valType:"string",arrayOk:!0,editType:"style"},fillmode:{valType:"enumerated",values:["replace","overlay"],dflt:"replace",editType:"style"},bgcolor:{valType:"color",arrayOk:!0,editType:"style"},fgcolor:{valType:"color",arrayOk:!0,editType:"style"},fgopacity:{valType:"number",editType:"style",min:0,max:1},size:{valType:"number",min:0,dflt:8,arrayOk:!0,editType:"style"},solidity:{valType:"number",min:0,max:1,dflt:.3,arrayOk:!0,editType:"style"},editType:"style"}}}),t5=Xe({"src/constants/docs.js"(Z,G){"use strict";G.exports={FORMAT_LINK:"https://github.com/d3/d3-format/tree/v1.4.5#d3-format",DATE_FORMAT_LINK:"https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format"}}}),Jl=Xe({"src/plots/template_attributes.js"(Z){"use strict";var{DATE_FORMAT_LINK:G,FORMAT_LINK:v}=t5(),x=["Variables that can't be found will be replaced with the specifier.",'For example, a template of "data: %{x}, %{y}" will result in a value of "data: 1, %{y}" if x is 1 and y is missing.',"Variables with an undefined value will be replaced with the fallback value."].join(" ");function S({supportOther:E}={}){return["Variables are inserted using %{variable},",'for example "y: %{y}"'+(E?" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown.":"."),`Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}".`,v,"for details on the formatting syntax.",`Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}".`,G,"for details on the date formatting syntax.",x].join(" ")}Z.templateFormatStringDescription=S,Z.hovertemplateAttrs=({editType:E="none",arrayOk:e}={},t={})=>To({valType:"string",dflt:"",editType:E},e!==!1?{arrayOk:!0}:{}),Z.texttemplateAttrs=({editType:E="calc",arrayOk:e}={},t={})=>To({valType:"string",dflt:"",editType:E},e!==!1?{arrayOk:!0}:{}),Z.shapeTexttemplateAttrs=({editType:E="arraydraw",newshape:e}={},t={})=>({valType:"string",dflt:"",editType:E}),Z.templatefallbackAttrs=({editType:E="none"}={})=>({valType:"any",dflt:"-",editType:E})}}),v2=Xe({"src/components/shapes/label_texttemplate.js"(Z,G){"use strict";function v(A,M){return M?M.d2l(A):A}function x(A,M){return M?M.l2d(A):A}function S(A){return A.x0}function E(A){return A.x1}function e(A){return A.y0}function t(A){return A.y1}function r(A){return A.x0shift||0}function o(A){return A.x1shift||0}function a(A){return A.y0shift||0}function n(A){return A.y1shift||0}function i(A,M){return v(A.x1,M)+o(A)-v(A.x0,M)-r(A)}function s(A,M,g){return v(A.y1,g)+n(A)-v(A.y0,g)-a(A)}function h(A,M){return Math.abs(i(A,M))}function c(A,M,g){return Math.abs(s(A,M,g))}function m(A,M,g){return A.type!=="line"?void 0:Math.sqrt(Math.pow(i(A,M),2)+Math.pow(s(A,M,g),2))}function p(A,M){return x((v(A.x1,M)+o(A)+v(A.x0,M)+r(A))/2,M)}function T(A,M,g){return x((v(A.y1,g)+n(A)+v(A.y0,g)+a(A))/2,g)}function l(A,M,g){return A.type!=="line"?void 0:s(A,M,g)/i(A,M)}var _=["x0","x1","y0","y1","dy","height","ycenter"],w=["x0","x1","y0","y1","dx","width","xcenter"];G.exports={x0:S,x1:E,y0:e,y1:t,slope:l,dx:i,dy:s,width:h,height:c,length:m,xcenter:p,ycenter:T,simpleXVariables:_,simpleYVariables:w}}}),j7=Xe({"src/components/shapes/draw_newshape/attributes.js"(Z,G){"use strict";var v=pc().overrideAll,x=ru(),S=tc(),E=Gh().dash,e=Qo().extendFlat,{shapeTexttemplateAttrs:t,templatefallbackAttrs:r}=Jl(),o=v2();G.exports=v({newshape:{visible:e({},x.visible,{}),showlegend:{valType:"boolean",dflt:!1},legend:e({},x.legend,{}),legendgroup:e({},x.legendgroup,{}),legendgrouptitle:{text:e({},x.legendgrouptitle.text,{}),font:S({})},legendrank:e({},x.legendrank,{}),legendwidth:e({},x.legendwidth,{}),line:{color:{valType:"color"},width:{valType:"number",min:0,dflt:4},dash:e({},E,{dflt:"solid"})},fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)"},fillrule:{valType:"enumerated",values:["evenodd","nonzero"],dflt:"evenodd"},opacity:{valType:"number",min:0,max:1,dflt:1},layer:{valType:"enumerated",values:["below","above","between"],dflt:"above"},drawdirection:{valType:"enumerated",values:["ortho","horizontal","vertical","diagonal"],dflt:"diagonal"},name:e({},x.name,{}),label:{text:{valType:"string",dflt:""},texttemplate:t({newshape:!0},{keys:Object.keys(o)}),texttemplatefallback:r({editType:"arraydraw"}),font:S({}),textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right","start","middle","end"]},textangle:{valType:"angle",dflt:"auto"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto"},yanchor:{valType:"enumerated",values:["top","middle","bottom"]},padding:{valType:"number",dflt:3,min:0}}},activeshape:{fillcolor:{valType:"color",dflt:"rgb(255,0,255)",description:"Sets the color filling the active shape' interior."},opacity:{valType:"number",min:0,max:1,dflt:.5}}},"none","from-root")}}),q7=Xe({"src/components/selections/draw_newselection/attributes.js"(Z,G){"use strict";var v=Gh().dash,x=Qo().extendFlat;G.exports={newselection:{mode:{valType:"enumerated",values:["immediate","gradual"],dflt:"immediate",editType:"none"},line:{color:{valType:"color",editType:"none"},width:{valType:"number",min:1,dflt:1,editType:"none"},dash:x({},v,{dflt:"dot",editType:"none"}),editType:"none"},editType:"none"},activeselection:{fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"none"},opacity:{valType:"number",min:0,max:1,dflt:.5,editType:"none"},editType:"none"}}}}),m2=Xe({"src/plots/pad_attributes.js"(Z,G){"use strict";G.exports=function(v){var x=v.editType;return{t:{valType:"number",dflt:0,editType:x},r:{valType:"number",dflt:0,editType:x},b:{valType:"number",dflt:0,editType:x},l:{valType:"number",dflt:0,editType:x},editType:x}}}}),$y=Xe({"src/plots/layout_attributes.js"(Z,G){"use strict";var v=tc(),x=A_(),S=sh(),E=j7(),e=q7(),t=m2(),r=Qo().extendFlat,o=v({editType:"calc"});o.family.dflt='"Open Sans", verdana, arial, sans-serif',o.size.dflt=12,o.color.dflt=S.defaultLine,G.exports={font:o,title:{text:{valType:"string",editType:"layoutstyle"},font:v({editType:"layoutstyle"}),subtitle:{text:{valType:"string",editType:"layoutstyle"},font:v({editType:"layoutstyle"}),editType:"layoutstyle"},xref:{valType:"enumerated",dflt:"container",values:["container","paper"],editType:"layoutstyle"},yref:{valType:"enumerated",dflt:"container",values:["container","paper"],editType:"layoutstyle"},x:{valType:"number",min:0,max:1,dflt:.5,editType:"layoutstyle"},y:{valType:"number",min:0,max:1,dflt:"auto",editType:"layoutstyle"},xanchor:{valType:"enumerated",dflt:"auto",values:["auto","left","center","right"],editType:"layoutstyle"},yanchor:{valType:"enumerated",dflt:"auto",values:["auto","top","middle","bottom"],editType:"layoutstyle"},pad:r(t({editType:"layoutstyle"}),{}),automargin:{valType:"boolean",dflt:!1,editType:"plot"},editType:"layoutstyle"},uniformtext:{mode:{valType:"enumerated",values:[!1,"hide","show"],dflt:!1,editType:"plot"},minsize:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"plot"},autosize:{valType:"boolean",dflt:!1,editType:"none"},width:{valType:"number",min:10,dflt:700,editType:"plot"},height:{valType:"number",min:10,dflt:450,editType:"plot"},minreducedwidth:{valType:"number",min:2,dflt:64,editType:"plot"},minreducedheight:{valType:"number",min:2,dflt:64,editType:"plot"},margin:{l:{valType:"number",min:0,dflt:80,editType:"plot"},r:{valType:"number",min:0,dflt:80,editType:"plot"},t:{valType:"number",min:0,dflt:100,editType:"plot"},b:{valType:"number",min:0,dflt:80,editType:"plot"},pad:{valType:"number",min:0,dflt:0,editType:"plot"},autoexpand:{valType:"boolean",dflt:!0,editType:"plot"},editType:"plot"},computed:{valType:"any",editType:"none"},paper_bgcolor:{valType:"color",dflt:S.background,editType:"plot"},plot_bgcolor:{valType:"color",dflt:S.background,editType:"layoutstyle"},autotypenumbers:{valType:"enumerated",values:["convert types","strict"],dflt:"convert types",editType:"calc"},separators:{valType:"string",editType:"plot"},hidesources:{valType:"boolean",dflt:!1,editType:"plot"},showlegend:{valType:"boolean",editType:"legend"},colorway:{valType:"colorlist",dflt:S.defaults,editType:"calc"},datarevision:{valType:"any",editType:"calc"},uirevision:{valType:"any",editType:"none"},editrevision:{valType:"any",editType:"none"},selectionrevision:{valType:"any",editType:"none"},template:{valType:"any",editType:"calc"},newshape:E.newshape,activeshape:E.activeshape,newselection:e.newselection,activeselection:e.activeselection,meta:{valType:"any",arrayOk:!0,editType:"plot"},transition:r({},x.transition,{editType:"none"})}}}),V7=Xe({"node_modules/maplibre-gl/dist/maplibre-gl.css"(){(function(){if(!document.getElementById("a75c73da1cd7a97e8992659f6aed556255838daadea9ca0c9fc3af7f1ddf63c0")){var Z=document.createElement("style");Z.id="a75c73da1cd7a97e8992659f6aed556255838daadea9ca0c9fc3af7f1ddf63c0",Z.textContent=`.maplibregl-map{font:12px/20px Helvetica Neue,Arial,Helvetica,sans-serif;overflow:hidden;position:relative;-webkit-tap-highlight-color:rgb(0 0 0/0)}.maplibregl-canvas{left:0;position:absolute;top:0}.maplibregl-map:fullscreen{height:100%;width:100%}.maplibregl-ctrl-group button.maplibregl-ctrl-compass{touch-action:none}.maplibregl-canvas-container.maplibregl-interactive,.maplibregl-ctrl-group button.maplibregl-ctrl-compass{cursor:grab;-webkit-user-select:none;-moz-user-select:none;user-select:none}.maplibregl-canvas-container.maplibregl-interactive.maplibregl-track-pointer{cursor:pointer}.maplibregl-canvas-container.maplibregl-interactive:active,.maplibregl-ctrl-group button.maplibregl-ctrl-compass:active{cursor:grabbing}.maplibregl-canvas-container.maplibregl-touch-zoom-rotate,.maplibregl-canvas-container.maplibregl-touch-zoom-rotate .maplibregl-canvas{touch-action:pan-x pan-y}.maplibregl-canvas-container.maplibregl-touch-drag-pan,.maplibregl-canvas-container.maplibregl-touch-drag-pan .maplibregl-canvas{touch-action:pinch-zoom}.maplibregl-canvas-container.maplibregl-touch-zoom-rotate.maplibregl-touch-drag-pan,.maplibregl-canvas-container.maplibregl-touch-zoom-rotate.maplibregl-touch-drag-pan .maplibregl-canvas{touch-action:none}.maplibregl-canvas-container.maplibregl-touch-drag-pan.maplibregl-cooperative-gestures,.maplibregl-canvas-container.maplibregl-touch-drag-pan.maplibregl-cooperative-gestures .maplibregl-canvas{touch-action:pan-x pan-y}.maplibregl-ctrl-bottom-left,.maplibregl-ctrl-bottom-right,.maplibregl-ctrl-top-left,.maplibregl-ctrl-top-right{pointer-events:none;position:absolute;z-index:2}.maplibregl-ctrl-top-left{left:0;top:0}.maplibregl-ctrl-top-right{right:0;top:0}.maplibregl-ctrl-bottom-left{bottom:0;left:0}.maplibregl-ctrl-bottom-right{bottom:0;right:0}.maplibregl-ctrl{clear:both;pointer-events:auto;transform:translate(0)}.maplibregl-ctrl-top-left .maplibregl-ctrl{float:left;margin:10px 0 0 10px}.maplibregl-ctrl-top-right .maplibregl-ctrl{float:right;margin:10px 10px 0 0}.maplibregl-ctrl-bottom-left .maplibregl-ctrl{float:left;margin:0 0 10px 10px}.maplibregl-ctrl-bottom-right .maplibregl-ctrl{float:right;margin:0 10px 10px 0}.maplibregl-ctrl-group{background:#fff;border-radius:4px}.maplibregl-ctrl-group:not(:empty){box-shadow:0 0 0 2px rgba(0,0,0,.1)}@media (forced-colors:active){.maplibregl-ctrl-group:not(:empty){box-shadow:0 0 0 2px ButtonText}}.maplibregl-ctrl-group button{background-color:transparent;border:0;box-sizing:border-box;cursor:pointer;display:block;height:29px;outline:none;padding:0;width:29px}.maplibregl-ctrl-group button+button{border-top:1px solid #ddd}.maplibregl-ctrl button .maplibregl-ctrl-icon{background-position:50%;background-repeat:no-repeat;display:block;height:100%;width:100%}@media (forced-colors:active){.maplibregl-ctrl-icon{background-color:transparent}.maplibregl-ctrl-group button+button{border-top:1px solid ButtonText}}.maplibregl-ctrl button::-moz-focus-inner{border:0;padding:0}.maplibregl-ctrl-attrib-button:focus,.maplibregl-ctrl-group button:focus{box-shadow:0 0 2px 2px #0096ff}.maplibregl-ctrl button:disabled{cursor:not-allowed}.maplibregl-ctrl button:disabled .maplibregl-ctrl-icon{opacity:.25}.maplibregl-ctrl button:not(:disabled):hover{background-color:rgb(0 0 0/5%)}.maplibregl-ctrl-group button:focus:focus-visible{box-shadow:0 0 2px 2px #0096ff}.maplibregl-ctrl-group button:focus:not(:focus-visible){box-shadow:none}.maplibregl-ctrl-group button:focus:first-child{border-radius:4px 4px 0 0}.maplibregl-ctrl-group button:focus:last-child{border-radius:0 0 4px 4px}.maplibregl-ctrl-group button:focus:only-child{border-radius:inherit}.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5'/%3E%3C/svg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5'/%3E%3C/svg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1z'/%3E%3C/svg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1z'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1z'/%3E%3C/svg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='m10.5 14 4-8 4 8z'/%3E%3Cpath fill='%23ccc' d='m10.5 16 4 8 4-8z'/%3E%3C/svg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='m10.5 14 4-8 4 8z'/%3E%3Cpath fill='%23ccc' d='m10.5 16 4 8 4-8z'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='m10.5 14 4-8 4 8z'/%3E%3Cpath fill='%23ccc' d='m10.5 16 4 8 4-8z'/%3E%3C/svg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-terrain .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' fill='%23333' viewBox='0 0 22 22'%3E%3Cpath d='m1.754 13.406 4.453-4.851 3.09 3.09 3.281 3.277.969-.969-3.309-3.312 3.844-4.121 6.148 6.886h1.082v-.855l-7.207-8.07-4.84 5.187L6.169 6.57l-5.48 5.965v.871ZM.688 16.844h20.625v1.375H.688Zm0 0'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-terrain-enabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' fill='%2333b5e5' viewBox='0 0 22 22'%3E%3Cpath d='m1.754 13.406 4.453-4.851 3.09 3.09 3.281 3.277.969-.969-3.309-3.312 3.844-4.121 6.148 6.886h1.082v-.855l-7.207-8.07-4.84 5.187L6.169 6.57l-5.48 5.965v.871ZM.688 16.844h20.625v1.375H.688Zm0 0'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23aaa' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath fill='red' d='m14 5 1 1-9 9-1-1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e58978' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e54e33' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-waiting .maplibregl-ctrl-icon{animation:maplibregl-spin 2s linear infinite}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23999' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath fill='red' d='m14 5 1 1-9 9-1-1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e58978' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e54e33' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23666' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath fill='red' d='m14 5 1 1-9 9-1-1z'/%3E%3C/svg%3E")}}@keyframes maplibregl-spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}a.maplibregl-ctrl-logo{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='23' fill='none'%3E%3Cpath fill='%23000' fill-opacity='.4' fill-rule='evenodd' d='M17.408 16.796h-1.827l2.501-12.095h.198l3.324 6.533.988 2.19.988-2.19 3.258-6.533h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.929 5.644h-.098l-2.914-5.644-.757-1.71-.345 1.71zm1.958-3.42-.726 3.663a1.255 1.255 0 0 1-1.232 1.011h-1.827a1.255 1.255 0 0 1-1.229-1.509l2.501-12.095a1.255 1.255 0 0 1 1.23-1.001h.197a1.25 1.25 0 0 1 1.12.685l3.19 6.273 3.125-6.263a1.25 1.25 0 0 1 1.123-.695h.181a1.255 1.255 0 0 1 1.227.991l1.443 6.71a5 5 0 0 1 .314-.787l.009-.016a4.6 4.6 0 0 1 1.777-1.887c.782-.46 1.668-.667 2.611-.667a4.6 4.6 0 0 1 1.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255 1.255 0 0 1 1.212.925 1.255 1.255 0 0 1 1.212-.925h1.711c.284 0 .545.094.755.252.613-.3 1.312-.45 2.075-.45 1.356 0 2.557.445 3.482 1.4q.47.48.763 1.064V4.701a1.255 1.255 0 0 1 1.255-1.255h1.86A1.255 1.255 0 0 1 54.44 4.7v9.194h2.217c.19 0 .37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42 2.42 0 0 1-.682-1.71c0-.665.267-1.253.735-1.7a2.45 2.45 0 0 1 1.722-.674 2.43 2.43 0 0 1 1.705.675q.318.302.504.683V4.7a1.255 1.255 0 0 1 1.255-1.255h1.744A1.255 1.255 0 0 1 65.812 4.7v3.335a4.8 4.8 0 0 1 1.526-.246c.938 0 1.817.214 2.59.69a4.47 4.47 0 0 1 1.67 1.743v-.98a1.255 1.255 0 0 1 1.256-1.256h1.777c.233 0 .451.064.639.174a3.4 3.4 0 0 1 1.567-.372c.346 0 .861.02 1.285.232a1.25 1.25 0 0 1 .689 1.004 4.7 4.7 0 0 1 .853-.588c.795-.44 1.675-.647 2.61-.647 1.385 0 2.65.39 3.525 1.396.836.938 1.168 2.173 1.168 3.528q-.001.515-.056 1.051a1.255 1.255 0 0 1-.947 1.09l.408.952a1.255 1.255 0 0 1-.477 1.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06 0-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8 5.8 0 0 1-.548-2.512q0-.429.053-.843a1.3 1.3 0 0 1-.333-.086l-.166-.004c-.223 0-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255 1.255 0 0 1-1.256 1.256h-1.777a1.255 1.255 0 0 1-1.256-1.256V15.69l-.032.057a4.8 4.8 0 0 1-1.86 1.833 5.04 5.04 0 0 1-2.484.634 4.5 4.5 0 0 1-1.935-.424 1.25 1.25 0 0 1-.764.258h-1.71a1.255 1.255 0 0 1-1.256-1.255V7.687a2.4 2.4 0 0 1-.428.625c.253.23.412.561.412.93v7.553a1.255 1.255 0 0 1-1.256 1.255h-1.843a1.25 1.25 0 0 1-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255 1.255 0 0 1-1.256-1.255v-1.251l-.061.117a4.7 4.7 0 0 1-1.782 1.884 4.77 4.77 0 0 1-2.485.67 5.6 5.6 0 0 1-1.485-.188l.009 2.764a1.255 1.255 0 0 1-1.255 1.259h-1.729a1.255 1.255 0 0 1-1.255-1.255v-3.537a1.255 1.255 0 0 1-1.167.793h-1.679a1.25 1.25 0 0 1-.77-.263 4.5 4.5 0 0 1-1.945.429c-.885 0-1.724-.21-2.495-.632l-.017-.01a5 5 0 0 1-1.081-.836 1.255 1.255 0 0 1-1.254 1.312h-1.81a1.255 1.255 0 0 1-1.228-.99l-.782-3.625-2.044 3.939a1.25 1.25 0 0 1-1.115.676h-.098a1.25 1.25 0 0 1-1.116-.68l-2.061-3.994zM35.92 16.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033 1.332h1.678V9.242h-1.694l-.033 1.267q-.133-.329-.526-.658l-.032-.028a3.2 3.2 0 0 0-.668-.428l-.27-.12a3.3 3.3 0 0 0-1.235-.23q-1.136-.001-1.974.493a3.36 3.36 0 0 0-1.3 1.382q-.445.89-.444 2.074 0 1.2.51 2.107a3.8 3.8 0 0 0 1.382 1.381 3.9 3.9 0 0 0 1.893.477q.795 0 1.455-.33zm-2.789-5.38q-.576.675-.575 1.762 0 1.102.559 1.794.576.675 1.645.675a2.25 2.25 0 0 0 .934-.19 2.2 2.2 0 0 0 .468-.29l.178-.161a2.2 2.2 0 0 0 .397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2 2.2 0 0 0-.633-.709l-.13-.086-.047-.028a2.1 2.1 0 0 0-1.073-.285q-1.052 0-1.629.692zm2.316 2.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96 0 0 0-.353-.389.85.85 0 0 0-.464-.127c-.4 0-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945 0 .506.122.801.27.99.097.11.266.224.68.224.303 0 .504-.09.687-.269zm7.545 1.705a2.6 2.6 0 0 0 .331.423q.319.33.755.548l.173.074q.65.255 1.49.255 1.02 0 1.844-.493a3.45 3.45 0 0 0 1.316-1.4q.493-.904.493-2.089 0-1.909-.988-2.913-.988-1.02-2.584-1.02-.898 0-1.575.347a3 3 0 0 0-.415.262l-.199.166a3.4 3.4 0 0 0-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296 1.119.297 1.07 0 1.645-.675.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.435 0-.835.16a2 2 0 0 0-.284.136 2 2 0 0 0-.363.254 2.2 2.2 0 0 0-.46.569l-.082.162a2.6 2.6 0 0 0-.213 1.072v.115q0 .707.296 1.267l.135.211zm.964-.818a1.1 1.1 0 0 0 .367.385.94.94 0 0 0 .476.118c.423 0 .59-.117.687-.23.159-.194.28-.478.28-.95 0-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1 1 0 0 0-.503.135l-.012.007a.86.86 0 0 0-.335.343c-.073.133-.132.324-.132.614v.115a1.4 1.4 0 0 0 .14.66zm15.7-6.222q.347-.346.346-.856a1.05 1.05 0 0 0-.345-.79 1.18 1.18 0 0 0-.84-.329q-.51 0-.855.33a1.05 1.05 0 0 0-.346.79q0 .51.346.855.345.346.856.346.51 0 .839-.346zm4.337 9.314.033-1.332q.191.403.59.747l.098.081a4 4 0 0 0 .316.224l.223.122a3.2 3.2 0 0 0 1.44.322 3.8 3.8 0 0 0 1.875-.477 3.5 3.5 0 0 0 1.382-1.366q.527-.89.526-2.09 0-1.184-.444-2.073a3.24 3.24 0 0 0-1.283-1.399q-.823-.51-1.942-.51a3.5 3.5 0 0 0-1.527.344l-.086.043-.165.09a3 3 0 0 0-.33.214q-.432.315-.656.707a2 2 0 0 0-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5 2.5 0 0 0 .566.7q.117.098.245.18l.144.08a2.1 2.1 0 0 0 .975.232q1.07 0 1.645-.675.576-.69.576-1.778 0-1.102-.576-1.777-.56-.691-1.645-.692a2.2 2.2 0 0 0-1.015.235q-.22.113-.415.282l-.15.142a2.1 2.1 0 0 0-.42.594q-.223.479-.223 1.1v.115q0 .705.293 1.26zm2.616-.293c.157-.191.28-.479.28-.967 0-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87 0 0 0-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0 .285.057.499.144.669a1.1 1.1 0 0 0 .367.405c.137.082.28.123.455.123.423 0 .59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493 0 .642.099l.247-1.794q-.196-.099-.717-.099a2.3 2.3 0 0 0-.545.063 2 2 0 0 0-.411.148 2.2 2.2 0 0 0-.4.249 2.5 2.5 0 0 0-.485.499 2.7 2.7 0 0 0-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5 1.5 0 0 1 .466-.636 2.5 2.5 0 0 1 .399-.253 2 2 0 0 1 .224-.099zm9.784 2.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46 3.46 0 0 0-1.4 1.382q-.493.906-.493 2.106 0 1.07.428 1.975.428.89 1.332 1.432.906.526 2.255.526.973 0 1.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954 0-1.497-.444a1.6 1.6 0 0 1-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1 1 0 0 0-.156-.176q-.46-.428-1.316-.428-.986 0-1.494.604-.379.45-.494 1.234zm-27.053 2.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z'/%3E%3Cpath fill='%23fff' d='m19.63 11.151-.757-1.71-.345 1.71-1.12 5.644h-1.827L18.083 4.7h.197l3.325 6.533.988 2.19.988-2.19L26.839 4.7h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.93 5.644h-.098l-2.913-5.644zm14.836 5.81q-1.02 0-1.893-.478a3.8 3.8 0 0 1-1.381-1.382q-.51-.906-.51-2.106 0-1.185.444-2.074a3.36 3.36 0 0 1 1.3-1.382q.839-.494 1.974-.494a3.3 3.3 0 0 1 1.234.231 3.3 3.3 0 0 1 .97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02 1.053a3.17 3.17 0 0 1-1.662.444zm.296-1.482q.938 0 1.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2 2.2 0 0 0-.807-.872 2.1 2.1 0 0 0-1.119-.313q-1.053 0-1.629.692-.575.675-.575 1.76 0 1.103.559 1.795.577.675 1.645.675zm6.521-6.237h1.711v1.4q.906-1.597 2.83-1.597 1.596 0 2.584 1.02.988 1.005.988 2.914 0 1.185-.493 2.09a3.46 3.46 0 0 1-1.316 1.399 3.5 3.5 0 0 1-1.844.493q-.954 0-1.662-.329a2.67 2.67 0 0 1-1.086-.97l.017 5.134h-1.728zm4.048 6.22q1.07 0 1.645-.674.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.592 0-1.12.296-.51.28-.822.823-.296.527-.296 1.234v.115q0 .708.296 1.267.313.543.823.855.51.296 1.119.297z'/%3E%3Cpath fill='%23e1e3e9' d='M51.325 4.7h1.86v10.45h3.473v1.646h-5.333zm7.12 4.542h1.843v7.553h-1.843zm.905-1.415a1.16 1.16 0 0 1-.856-.346 1.17 1.17 0 0 1-.346-.856 1.05 1.05 0 0 1 .346-.79q.346-.329.856-.329.494 0 .839.33a1.05 1.05 0 0 1 .345.79 1.16 1.16 0 0 1-.345.855q-.33.346-.84.346zm7.875 9.133a3.17 3.17 0 0 1-1.662-.444q-.723-.46-1.004-1.053l-.033 1.332h-1.71V4.701h1.743v4.657l-.082 1.283q.279-.658 1.086-1.119a3.5 3.5 0 0 1 1.778-.477q1.119 0 1.942.51a3.24 3.24 0 0 1 1.283 1.4q.445.888.444 2.072 0 1.201-.526 2.09a3.5 3.5 0 0 1-1.382 1.366 3.8 3.8 0 0 1-1.876.477zm-.296-1.481q1.069 0 1.645-.675.577-.69.577-1.778 0-1.102-.577-1.776-.56-.691-1.645-.692a2.12 2.12 0 0 0-1.58.659q-.642.641-.642 1.694v.115q0 .71.296 1.267a2.4 2.4 0 0 0 .807.872 2.1 2.1 0 0 0 1.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14 2.14 0 0 1 1.349-.46q.527 0 .724.098l-.247 1.794q-.149-.099-.642-.099-.774 0-1.416.494-.626.493-.626 1.58v3.883h-1.777V9.242zm9.534 7.718q-1.35 0-2.255-.526-.904-.543-1.332-1.432a4.6 4.6 0 0 1-.428-1.975q0-1.2.493-2.106a3.46 3.46 0 0 1 1.4-1.382q.889-.495 2.007-.494 1.744 0 2.584.97.855.956.856 2.7 0 .444-.05.92h-5.43q.18 1.005.708 1.45.542.443 1.497.443.79 0 1.3-.131a4 4 0 0 0 .938-.362l.542 1.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728 0-1.991 1.86z'/%3E%3Cpath d='M5.074 15.948a.484.657 0 0 0-.486.659v1.84a.484.657 0 0 0 .486.659h4.101a.484.657 0 0 0 .486-.659v-1.84a.484.657 0 0 0-.486-.659zm3.56 1.16H5.617v.838h3.017z' style='fill:%23fff;fill-rule:evenodd;stroke-width:1.03600001'/%3E%3Cg style='stroke-width:1.12603545'%3E%3Cpath d='M-9.408-1.416c-3.833-.025-7.056 2.912-7.08 6.615-.02 3.08 1.653 4.832 3.107 6.268.903.892 1.721 1.74 2.32 2.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87 1.87 0 0 0-.362 1.121l-.011 1.877c-.003.402.104.787.347 1.125.244.338.688.653 1.23.656l4.142.028c.542.003.99-.306 1.238-.641a1.87 1.87 0 0 0 .363-1.121l.012-1.875a1.87 1.87 0 0 0-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145 1.425-1.983 2.348-2.87 1.473-1.414 3.18-3.149 3.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006 1.1v.002c3.274.02 5.92 2.532 5.9 5.6-.017 2.706-1.39 4.026-2.863 5.44-1.034.994-2.118 2.033-2.814 3.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34 0 0 1-.226.084.34.34 0 0 1-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067 2.7-5.545 5.975-5.523m-.02 2.826c-1.62-.01-2.944 1.315-2.955 2.96-.01 1.646 1.295 2.988 2.916 2.999h.002c1.621.01 2.943-1.316 2.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005 1.1c1.017.006 1.829.83 1.822 1.89s-.83 1.874-1.848 1.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874 1.848-1.868m-2.155 11.857 4.14.025c.271.002.49.305.487.676l-.013 1.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668' style='color:%23000;font-style:normal;font-variant:normal;font-weight:400;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:%23000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:evenodd;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000;solid-opacity:1;vector-effect:none;fill:%23000;fill-opacity:.4;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-9.415-.316C-12.69-.338-15.37 2.14-15.39 5.207c-.017 2.716 1.326 4.041 2.78 5.477 1.013 1 2.081 2.055 2.78 3.67l.092.076a.34.34 0 0 0 .225.086.34.34 0 0 0 .227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6 1.78-2.64 2.814-3.634 1.473-1.414 2.847-2.733 2.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057 8.784c1.621.011 2.944-1.315 2.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945 1.315-2.955 2.96s1.295 2.989 2.916 3' style='clip-rule:evenodd;fill:%23e1e3e9;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-11.594 15.465c-.27-.002-.492.297-.494.668l-.012 1.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z' style='clip-rule:evenodd;fill:%23fff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3C/g%3E%3C/svg%3E");background-repeat:no-repeat;cursor:pointer;display:block;height:23px;margin:0 0 -4px -4px;overflow:hidden;width:88px}a.maplibregl-ctrl-logo.maplibregl-compact{width:14px}@media (forced-colors:active){a.maplibregl-ctrl-logo{background-color:transparent;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='23' fill='none'%3E%3Cpath fill='%23000' fill-opacity='.4' fill-rule='evenodd' d='M17.408 16.796h-1.827l2.501-12.095h.198l3.324 6.533.988 2.19.988-2.19 3.258-6.533h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.929 5.644h-.098l-2.914-5.644-.757-1.71-.345 1.71zm1.958-3.42-.726 3.663a1.255 1.255 0 0 1-1.232 1.011h-1.827a1.255 1.255 0 0 1-1.229-1.509l2.501-12.095a1.255 1.255 0 0 1 1.23-1.001h.197a1.25 1.25 0 0 1 1.12.685l3.19 6.273 3.125-6.263a1.25 1.25 0 0 1 1.123-.695h.181a1.255 1.255 0 0 1 1.227.991l1.443 6.71a5 5 0 0 1 .314-.787l.009-.016a4.6 4.6 0 0 1 1.777-1.887c.782-.46 1.668-.667 2.611-.667a4.6 4.6 0 0 1 1.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255 1.255 0 0 1 1.212.925 1.255 1.255 0 0 1 1.212-.925h1.711c.284 0 .545.094.755.252.613-.3 1.312-.45 2.075-.45 1.356 0 2.557.445 3.482 1.4q.47.48.763 1.064V4.701a1.255 1.255 0 0 1 1.255-1.255h1.86A1.255 1.255 0 0 1 54.44 4.7v9.194h2.217c.19 0 .37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42 2.42 0 0 1-.682-1.71c0-.665.267-1.253.735-1.7a2.45 2.45 0 0 1 1.722-.674 2.43 2.43 0 0 1 1.705.675q.318.302.504.683V4.7a1.255 1.255 0 0 1 1.255-1.255h1.744A1.255 1.255 0 0 1 65.812 4.7v3.335a4.8 4.8 0 0 1 1.526-.246c.938 0 1.817.214 2.59.69a4.47 4.47 0 0 1 1.67 1.743v-.98a1.255 1.255 0 0 1 1.256-1.256h1.777c.233 0 .451.064.639.174a3.4 3.4 0 0 1 1.567-.372c.346 0 .861.02 1.285.232a1.25 1.25 0 0 1 .689 1.004 4.7 4.7 0 0 1 .853-.588c.795-.44 1.675-.647 2.61-.647 1.385 0 2.65.39 3.525 1.396.836.938 1.168 2.173 1.168 3.528q-.001.515-.056 1.051a1.255 1.255 0 0 1-.947 1.09l.408.952a1.255 1.255 0 0 1-.477 1.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06 0-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8 5.8 0 0 1-.548-2.512q0-.429.053-.843a1.3 1.3 0 0 1-.333-.086l-.166-.004c-.223 0-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255 1.255 0 0 1-1.256 1.256h-1.777a1.255 1.255 0 0 1-1.256-1.256V15.69l-.032.057a4.8 4.8 0 0 1-1.86 1.833 5.04 5.04 0 0 1-2.484.634 4.5 4.5 0 0 1-1.935-.424 1.25 1.25 0 0 1-.764.258h-1.71a1.255 1.255 0 0 1-1.256-1.255V7.687a2.4 2.4 0 0 1-.428.625c.253.23.412.561.412.93v7.553a1.255 1.255 0 0 1-1.256 1.255h-1.843a1.25 1.25 0 0 1-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255 1.255 0 0 1-1.256-1.255v-1.251l-.061.117a4.7 4.7 0 0 1-1.782 1.884 4.77 4.77 0 0 1-2.485.67 5.6 5.6 0 0 1-1.485-.188l.009 2.764a1.255 1.255 0 0 1-1.255 1.259h-1.729a1.255 1.255 0 0 1-1.255-1.255v-3.537a1.255 1.255 0 0 1-1.167.793h-1.679a1.25 1.25 0 0 1-.77-.263 4.5 4.5 0 0 1-1.945.429c-.885 0-1.724-.21-2.495-.632l-.017-.01a5 5 0 0 1-1.081-.836 1.255 1.255 0 0 1-1.254 1.312h-1.81a1.255 1.255 0 0 1-1.228-.99l-.782-3.625-2.044 3.939a1.25 1.25 0 0 1-1.115.676h-.098a1.25 1.25 0 0 1-1.116-.68l-2.061-3.994zM35.92 16.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033 1.332h1.678V9.242h-1.694l-.033 1.267q-.133-.329-.526-.658l-.032-.028a3.2 3.2 0 0 0-.668-.428l-.27-.12a3.3 3.3 0 0 0-1.235-.23q-1.136-.001-1.974.493a3.36 3.36 0 0 0-1.3 1.382q-.445.89-.444 2.074 0 1.2.51 2.107a3.8 3.8 0 0 0 1.382 1.381 3.9 3.9 0 0 0 1.893.477q.795 0 1.455-.33zm-2.789-5.38q-.576.675-.575 1.762 0 1.102.559 1.794.576.675 1.645.675a2.25 2.25 0 0 0 .934-.19 2.2 2.2 0 0 0 .468-.29l.178-.161a2.2 2.2 0 0 0 .397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2 2.2 0 0 0-.633-.709l-.13-.086-.047-.028a2.1 2.1 0 0 0-1.073-.285q-1.052 0-1.629.692zm2.316 2.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96 0 0 0-.353-.389.85.85 0 0 0-.464-.127c-.4 0-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945 0 .506.122.801.27.99.097.11.266.224.68.224.303 0 .504-.09.687-.269zm7.545 1.705a2.6 2.6 0 0 0 .331.423q.319.33.755.548l.173.074q.65.255 1.49.255 1.02 0 1.844-.493a3.45 3.45 0 0 0 1.316-1.4q.493-.904.493-2.089 0-1.909-.988-2.913-.988-1.02-2.584-1.02-.898 0-1.575.347a3 3 0 0 0-.415.262l-.199.166a3.4 3.4 0 0 0-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296 1.119.297 1.07 0 1.645-.675.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.435 0-.835.16a2 2 0 0 0-.284.136 2 2 0 0 0-.363.254 2.2 2.2 0 0 0-.46.569l-.082.162a2.6 2.6 0 0 0-.213 1.072v.115q0 .707.296 1.267l.135.211zm.964-.818a1.1 1.1 0 0 0 .367.385.94.94 0 0 0 .476.118c.423 0 .59-.117.687-.23.159-.194.28-.478.28-.95 0-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1 1 0 0 0-.503.135l-.012.007a.86.86 0 0 0-.335.343c-.073.133-.132.324-.132.614v.115a1.4 1.4 0 0 0 .14.66zm15.7-6.222q.347-.346.346-.856a1.05 1.05 0 0 0-.345-.79 1.18 1.18 0 0 0-.84-.329q-.51 0-.855.33a1.05 1.05 0 0 0-.346.79q0 .51.346.855.345.346.856.346.51 0 .839-.346zm4.337 9.314.033-1.332q.191.403.59.747l.098.081a4 4 0 0 0 .316.224l.223.122a3.2 3.2 0 0 0 1.44.322 3.8 3.8 0 0 0 1.875-.477 3.5 3.5 0 0 0 1.382-1.366q.527-.89.526-2.09 0-1.184-.444-2.073a3.24 3.24 0 0 0-1.283-1.399q-.823-.51-1.942-.51a3.5 3.5 0 0 0-1.527.344l-.086.043-.165.09a3 3 0 0 0-.33.214q-.432.315-.656.707a2 2 0 0 0-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5 2.5 0 0 0 .566.7q.117.098.245.18l.144.08a2.1 2.1 0 0 0 .975.232q1.07 0 1.645-.675.576-.69.576-1.778 0-1.102-.576-1.777-.56-.691-1.645-.692a2.2 2.2 0 0 0-1.015.235q-.22.113-.415.282l-.15.142a2.1 2.1 0 0 0-.42.594q-.223.479-.223 1.1v.115q0 .705.293 1.26zm2.616-.293c.157-.191.28-.479.28-.967 0-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87 0 0 0-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0 .285.057.499.144.669a1.1 1.1 0 0 0 .367.405c.137.082.28.123.455.123.423 0 .59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493 0 .642.099l.247-1.794q-.196-.099-.717-.099a2.3 2.3 0 0 0-.545.063 2 2 0 0 0-.411.148 2.2 2.2 0 0 0-.4.249 2.5 2.5 0 0 0-.485.499 2.7 2.7 0 0 0-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5 1.5 0 0 1 .466-.636 2.5 2.5 0 0 1 .399-.253 2 2 0 0 1 .224-.099zm9.784 2.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46 3.46 0 0 0-1.4 1.382q-.493.906-.493 2.106 0 1.07.428 1.975.428.89 1.332 1.432.906.526 2.255.526.973 0 1.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954 0-1.497-.444a1.6 1.6 0 0 1-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1 1 0 0 0-.156-.176q-.46-.428-1.316-.428-.986 0-1.494.604-.379.45-.494 1.234zm-27.053 2.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z'/%3E%3Cpath fill='%23fff' d='m19.63 11.151-.757-1.71-.345 1.71-1.12 5.644h-1.827L18.083 4.7h.197l3.325 6.533.988 2.19.988-2.19L26.839 4.7h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.93 5.644h-.098l-2.913-5.644zm14.836 5.81q-1.02 0-1.893-.478a3.8 3.8 0 0 1-1.381-1.382q-.51-.906-.51-2.106 0-1.185.444-2.074a3.36 3.36 0 0 1 1.3-1.382q.839-.494 1.974-.494a3.3 3.3 0 0 1 1.234.231 3.3 3.3 0 0 1 .97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02 1.053a3.17 3.17 0 0 1-1.662.444zm.296-1.482q.938 0 1.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2 2.2 0 0 0-.807-.872 2.1 2.1 0 0 0-1.119-.313q-1.053 0-1.629.692-.575.675-.575 1.76 0 1.103.559 1.795.577.675 1.645.675zm6.521-6.237h1.711v1.4q.906-1.597 2.83-1.597 1.596 0 2.584 1.02.988 1.005.988 2.914 0 1.185-.493 2.09a3.46 3.46 0 0 1-1.316 1.399 3.5 3.5 0 0 1-1.844.493q-.954 0-1.662-.329a2.67 2.67 0 0 1-1.086-.97l.017 5.134h-1.728zm4.048 6.22q1.07 0 1.645-.674.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.592 0-1.12.296-.51.28-.822.823-.296.527-.296 1.234v.115q0 .708.296 1.267.313.543.823.855.51.296 1.119.297z'/%3E%3Cpath fill='%23e1e3e9' d='M51.325 4.7h1.86v10.45h3.473v1.646h-5.333zm7.12 4.542h1.843v7.553h-1.843zm.905-1.415a1.16 1.16 0 0 1-.856-.346 1.17 1.17 0 0 1-.346-.856 1.05 1.05 0 0 1 .346-.79q.346-.329.856-.329.494 0 .839.33a1.05 1.05 0 0 1 .345.79 1.16 1.16 0 0 1-.345.855q-.33.346-.84.346zm7.875 9.133a3.17 3.17 0 0 1-1.662-.444q-.723-.46-1.004-1.053l-.033 1.332h-1.71V4.701h1.743v4.657l-.082 1.283q.279-.658 1.086-1.119a3.5 3.5 0 0 1 1.778-.477q1.119 0 1.942.51a3.24 3.24 0 0 1 1.283 1.4q.445.888.444 2.072 0 1.201-.526 2.09a3.5 3.5 0 0 1-1.382 1.366 3.8 3.8 0 0 1-1.876.477zm-.296-1.481q1.069 0 1.645-.675.577-.69.577-1.778 0-1.102-.577-1.776-.56-.691-1.645-.692a2.12 2.12 0 0 0-1.58.659q-.642.641-.642 1.694v.115q0 .71.296 1.267a2.4 2.4 0 0 0 .807.872 2.1 2.1 0 0 0 1.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14 2.14 0 0 1 1.349-.46q.527 0 .724.098l-.247 1.794q-.149-.099-.642-.099-.774 0-1.416.494-.626.493-.626 1.58v3.883h-1.777V9.242zm9.534 7.718q-1.35 0-2.255-.526-.904-.543-1.332-1.432a4.6 4.6 0 0 1-.428-1.975q0-1.2.493-2.106a3.46 3.46 0 0 1 1.4-1.382q.889-.495 2.007-.494 1.744 0 2.584.97.855.956.856 2.7 0 .444-.05.92h-5.43q.18 1.005.708 1.45.542.443 1.497.443.79 0 1.3-.131a4 4 0 0 0 .938-.362l.542 1.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728 0-1.991 1.86z'/%3E%3Cpath d='M5.074 15.948a.484.657 0 0 0-.486.659v1.84a.484.657 0 0 0 .486.659h4.101a.484.657 0 0 0 .486-.659v-1.84a.484.657 0 0 0-.486-.659zm3.56 1.16H5.617v.838h3.017z' style='fill:%23fff;fill-rule:evenodd;stroke-width:1.03600001'/%3E%3Cg style='stroke-width:1.12603545'%3E%3Cpath d='M-9.408-1.416c-3.833-.025-7.056 2.912-7.08 6.615-.02 3.08 1.653 4.832 3.107 6.268.903.892 1.721 1.74 2.32 2.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87 1.87 0 0 0-.362 1.121l-.011 1.877c-.003.402.104.787.347 1.125.244.338.688.653 1.23.656l4.142.028c.542.003.99-.306 1.238-.641a1.87 1.87 0 0 0 .363-1.121l.012-1.875a1.87 1.87 0 0 0-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145 1.425-1.983 2.348-2.87 1.473-1.414 3.18-3.149 3.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006 1.1v.002c3.274.02 5.92 2.532 5.9 5.6-.017 2.706-1.39 4.026-2.863 5.44-1.034.994-2.118 2.033-2.814 3.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34 0 0 1-.226.084.34.34 0 0 1-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067 2.7-5.545 5.975-5.523m-.02 2.826c-1.62-.01-2.944 1.315-2.955 2.96-.01 1.646 1.295 2.988 2.916 2.999h.002c1.621.01 2.943-1.316 2.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005 1.1c1.017.006 1.829.83 1.822 1.89s-.83 1.874-1.848 1.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874 1.848-1.868m-2.155 11.857 4.14.025c.271.002.49.305.487.676l-.013 1.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668' style='color:%23000;font-style:normal;font-variant:normal;font-weight:400;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:%23000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:evenodd;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000;solid-opacity:1;vector-effect:none;fill:%23000;fill-opacity:.4;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-9.415-.316C-12.69-.338-15.37 2.14-15.39 5.207c-.017 2.716 1.326 4.041 2.78 5.477 1.013 1 2.081 2.055 2.78 3.67l.092.076a.34.34 0 0 0 .225.086.34.34 0 0 0 .227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6 1.78-2.64 2.814-3.634 1.473-1.414 2.847-2.733 2.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057 8.784c1.621.011 2.944-1.315 2.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945 1.315-2.955 2.96s1.295 2.989 2.916 3' style='clip-rule:evenodd;fill:%23e1e3e9;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-11.594 15.465c-.27-.002-.492.297-.494.668l-.012 1.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z' style='clip-rule:evenodd;fill:%23fff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3C/g%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){a.maplibregl-ctrl-logo{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='23' fill='none'%3E%3Cpath fill='%23000' fill-opacity='.4' fill-rule='evenodd' d='M17.408 16.796h-1.827l2.501-12.095h.198l3.324 6.533.988 2.19.988-2.19 3.258-6.533h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.929 5.644h-.098l-2.914-5.644-.757-1.71-.345 1.71zm1.958-3.42-.726 3.663a1.255 1.255 0 0 1-1.232 1.011h-1.827a1.255 1.255 0 0 1-1.229-1.509l2.501-12.095a1.255 1.255 0 0 1 1.23-1.001h.197a1.25 1.25 0 0 1 1.12.685l3.19 6.273 3.125-6.263a1.25 1.25 0 0 1 1.123-.695h.181a1.255 1.255 0 0 1 1.227.991l1.443 6.71a5 5 0 0 1 .314-.787l.009-.016a4.6 4.6 0 0 1 1.777-1.887c.782-.46 1.668-.667 2.611-.667a4.6 4.6 0 0 1 1.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255 1.255 0 0 1 1.212.925 1.255 1.255 0 0 1 1.212-.925h1.711c.284 0 .545.094.755.252.613-.3 1.312-.45 2.075-.45 1.356 0 2.557.445 3.482 1.4q.47.48.763 1.064V4.701a1.255 1.255 0 0 1 1.255-1.255h1.86A1.255 1.255 0 0 1 54.44 4.7v9.194h2.217c.19 0 .37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42 2.42 0 0 1-.682-1.71c0-.665.267-1.253.735-1.7a2.45 2.45 0 0 1 1.722-.674 2.43 2.43 0 0 1 1.705.675q.318.302.504.683V4.7a1.255 1.255 0 0 1 1.255-1.255h1.744A1.255 1.255 0 0 1 65.812 4.7v3.335a4.8 4.8 0 0 1 1.526-.246c.938 0 1.817.214 2.59.69a4.47 4.47 0 0 1 1.67 1.743v-.98a1.255 1.255 0 0 1 1.256-1.256h1.777c.233 0 .451.064.639.174a3.4 3.4 0 0 1 1.567-.372c.346 0 .861.02 1.285.232a1.25 1.25 0 0 1 .689 1.004 4.7 4.7 0 0 1 .853-.588c.795-.44 1.675-.647 2.61-.647 1.385 0 2.65.39 3.525 1.396.836.938 1.168 2.173 1.168 3.528q-.001.515-.056 1.051a1.255 1.255 0 0 1-.947 1.09l.408.952a1.255 1.255 0 0 1-.477 1.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06 0-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8 5.8 0 0 1-.548-2.512q0-.429.053-.843a1.3 1.3 0 0 1-.333-.086l-.166-.004c-.223 0-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255 1.255 0 0 1-1.256 1.256h-1.777a1.255 1.255 0 0 1-1.256-1.256V15.69l-.032.057a4.8 4.8 0 0 1-1.86 1.833 5.04 5.04 0 0 1-2.484.634 4.5 4.5 0 0 1-1.935-.424 1.25 1.25 0 0 1-.764.258h-1.71a1.255 1.255 0 0 1-1.256-1.255V7.687a2.4 2.4 0 0 1-.428.625c.253.23.412.561.412.93v7.553a1.255 1.255 0 0 1-1.256 1.255h-1.843a1.25 1.25 0 0 1-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255 1.255 0 0 1-1.256-1.255v-1.251l-.061.117a4.7 4.7 0 0 1-1.782 1.884 4.77 4.77 0 0 1-2.485.67 5.6 5.6 0 0 1-1.485-.188l.009 2.764a1.255 1.255 0 0 1-1.255 1.259h-1.729a1.255 1.255 0 0 1-1.255-1.255v-3.537a1.255 1.255 0 0 1-1.167.793h-1.679a1.25 1.25 0 0 1-.77-.263 4.5 4.5 0 0 1-1.945.429c-.885 0-1.724-.21-2.495-.632l-.017-.01a5 5 0 0 1-1.081-.836 1.255 1.255 0 0 1-1.254 1.312h-1.81a1.255 1.255 0 0 1-1.228-.99l-.782-3.625-2.044 3.939a1.25 1.25 0 0 1-1.115.676h-.098a1.25 1.25 0 0 1-1.116-.68l-2.061-3.994zM35.92 16.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033 1.332h1.678V9.242h-1.694l-.033 1.267q-.133-.329-.526-.658l-.032-.028a3.2 3.2 0 0 0-.668-.428l-.27-.12a3.3 3.3 0 0 0-1.235-.23q-1.136-.001-1.974.493a3.36 3.36 0 0 0-1.3 1.382q-.445.89-.444 2.074 0 1.2.51 2.107a3.8 3.8 0 0 0 1.382 1.381 3.9 3.9 0 0 0 1.893.477q.795 0 1.455-.33zm-2.789-5.38q-.576.675-.575 1.762 0 1.102.559 1.794.576.675 1.645.675a2.25 2.25 0 0 0 .934-.19 2.2 2.2 0 0 0 .468-.29l.178-.161a2.2 2.2 0 0 0 .397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2 2.2 0 0 0-.633-.709l-.13-.086-.047-.028a2.1 2.1 0 0 0-1.073-.285q-1.052 0-1.629.692zm2.316 2.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96 0 0 0-.353-.389.85.85 0 0 0-.464-.127c-.4 0-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945 0 .506.122.801.27.99.097.11.266.224.68.224.303 0 .504-.09.687-.269zm7.545 1.705a2.6 2.6 0 0 0 .331.423q.319.33.755.548l.173.074q.65.255 1.49.255 1.02 0 1.844-.493a3.45 3.45 0 0 0 1.316-1.4q.493-.904.493-2.089 0-1.909-.988-2.913-.988-1.02-2.584-1.02-.898 0-1.575.347a3 3 0 0 0-.415.262l-.199.166a3.4 3.4 0 0 0-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296 1.119.297 1.07 0 1.645-.675.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.435 0-.835.16a2 2 0 0 0-.284.136 2 2 0 0 0-.363.254 2.2 2.2 0 0 0-.46.569l-.082.162a2.6 2.6 0 0 0-.213 1.072v.115q0 .707.296 1.267l.135.211zm.964-.818a1.1 1.1 0 0 0 .367.385.94.94 0 0 0 .476.118c.423 0 .59-.117.687-.23.159-.194.28-.478.28-.95 0-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1 1 0 0 0-.503.135l-.012.007a.86.86 0 0 0-.335.343c-.073.133-.132.324-.132.614v.115a1.4 1.4 0 0 0 .14.66zm15.7-6.222q.347-.346.346-.856a1.05 1.05 0 0 0-.345-.79 1.18 1.18 0 0 0-.84-.329q-.51 0-.855.33a1.05 1.05 0 0 0-.346.79q0 .51.346.855.345.346.856.346.51 0 .839-.346zm4.337 9.314.033-1.332q.191.403.59.747l.098.081a4 4 0 0 0 .316.224l.223.122a3.2 3.2 0 0 0 1.44.322 3.8 3.8 0 0 0 1.875-.477 3.5 3.5 0 0 0 1.382-1.366q.527-.89.526-2.09 0-1.184-.444-2.073a3.24 3.24 0 0 0-1.283-1.399q-.823-.51-1.942-.51a3.5 3.5 0 0 0-1.527.344l-.086.043-.165.09a3 3 0 0 0-.33.214q-.432.315-.656.707a2 2 0 0 0-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5 2.5 0 0 0 .566.7q.117.098.245.18l.144.08a2.1 2.1 0 0 0 .975.232q1.07 0 1.645-.675.576-.69.576-1.778 0-1.102-.576-1.777-.56-.691-1.645-.692a2.2 2.2 0 0 0-1.015.235q-.22.113-.415.282l-.15.142a2.1 2.1 0 0 0-.42.594q-.223.479-.223 1.1v.115q0 .705.293 1.26zm2.616-.293c.157-.191.28-.479.28-.967 0-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87 0 0 0-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0 .285.057.499.144.669a1.1 1.1 0 0 0 .367.405c.137.082.28.123.455.123.423 0 .59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493 0 .642.099l.247-1.794q-.196-.099-.717-.099a2.3 2.3 0 0 0-.545.063 2 2 0 0 0-.411.148 2.2 2.2 0 0 0-.4.249 2.5 2.5 0 0 0-.485.499 2.7 2.7 0 0 0-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5 1.5 0 0 1 .466-.636 2.5 2.5 0 0 1 .399-.253 2 2 0 0 1 .224-.099zm9.784 2.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46 3.46 0 0 0-1.4 1.382q-.493.906-.493 2.106 0 1.07.428 1.975.428.89 1.332 1.432.906.526 2.255.526.973 0 1.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954 0-1.497-.444a1.6 1.6 0 0 1-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1 1 0 0 0-.156-.176q-.46-.428-1.316-.428-.986 0-1.494.604-.379.45-.494 1.234zm-27.053 2.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z'/%3E%3Cpath fill='%23fff' d='m19.63 11.151-.757-1.71-.345 1.71-1.12 5.644h-1.827L18.083 4.7h.197l3.325 6.533.988 2.19.988-2.19L26.839 4.7h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.93 5.644h-.098l-2.913-5.644zm14.836 5.81q-1.02 0-1.893-.478a3.8 3.8 0 0 1-1.381-1.382q-.51-.906-.51-2.106 0-1.185.444-2.074a3.36 3.36 0 0 1 1.3-1.382q.839-.494 1.974-.494a3.3 3.3 0 0 1 1.234.231 3.3 3.3 0 0 1 .97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02 1.053a3.17 3.17 0 0 1-1.662.444zm.296-1.482q.938 0 1.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2 2.2 0 0 0-.807-.872 2.1 2.1 0 0 0-1.119-.313q-1.053 0-1.629.692-.575.675-.575 1.76 0 1.103.559 1.795.577.675 1.645.675zm6.521-6.237h1.711v1.4q.906-1.597 2.83-1.597 1.596 0 2.584 1.02.988 1.005.988 2.914 0 1.185-.493 2.09a3.46 3.46 0 0 1-1.316 1.399 3.5 3.5 0 0 1-1.844.493q-.954 0-1.662-.329a2.67 2.67 0 0 1-1.086-.97l.017 5.134h-1.728zm4.048 6.22q1.07 0 1.645-.674.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.592 0-1.12.296-.51.28-.822.823-.296.527-.296 1.234v.115q0 .708.296 1.267.313.543.823.855.51.296 1.119.297z'/%3E%3Cpath fill='%23e1e3e9' d='M51.325 4.7h1.86v10.45h3.473v1.646h-5.333zm7.12 4.542h1.843v7.553h-1.843zm.905-1.415a1.16 1.16 0 0 1-.856-.346 1.17 1.17 0 0 1-.346-.856 1.05 1.05 0 0 1 .346-.79q.346-.329.856-.329.494 0 .839.33a1.05 1.05 0 0 1 .345.79 1.16 1.16 0 0 1-.345.855q-.33.346-.84.346zm7.875 9.133a3.17 3.17 0 0 1-1.662-.444q-.723-.46-1.004-1.053l-.033 1.332h-1.71V4.701h1.743v4.657l-.082 1.283q.279-.658 1.086-1.119a3.5 3.5 0 0 1 1.778-.477q1.119 0 1.942.51a3.24 3.24 0 0 1 1.283 1.4q.445.888.444 2.072 0 1.201-.526 2.09a3.5 3.5 0 0 1-1.382 1.366 3.8 3.8 0 0 1-1.876.477zm-.296-1.481q1.069 0 1.645-.675.577-.69.577-1.778 0-1.102-.577-1.776-.56-.691-1.645-.692a2.12 2.12 0 0 0-1.58.659q-.642.641-.642 1.694v.115q0 .71.296 1.267a2.4 2.4 0 0 0 .807.872 2.1 2.1 0 0 0 1.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14 2.14 0 0 1 1.349-.46q.527 0 .724.098l-.247 1.794q-.149-.099-.642-.099-.774 0-1.416.494-.626.493-.626 1.58v3.883h-1.777V9.242zm9.534 7.718q-1.35 0-2.255-.526-.904-.543-1.332-1.432a4.6 4.6 0 0 1-.428-1.975q0-1.2.493-2.106a3.46 3.46 0 0 1 1.4-1.382q.889-.495 2.007-.494 1.744 0 2.584.97.855.956.856 2.7 0 .444-.05.92h-5.43q.18 1.005.708 1.45.542.443 1.497.443.79 0 1.3-.131a4 4 0 0 0 .938-.362l.542 1.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728 0-1.991 1.86z'/%3E%3Cpath d='M5.074 15.948a.484.657 0 0 0-.486.659v1.84a.484.657 0 0 0 .486.659h4.101a.484.657 0 0 0 .486-.659v-1.84a.484.657 0 0 0-.486-.659zm3.56 1.16H5.617v.838h3.017z' style='fill:%23fff;fill-rule:evenodd;stroke-width:1.03600001'/%3E%3Cg style='stroke-width:1.12603545'%3E%3Cpath d='M-9.408-1.416c-3.833-.025-7.056 2.912-7.08 6.615-.02 3.08 1.653 4.832 3.107 6.268.903.892 1.721 1.74 2.32 2.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87 1.87 0 0 0-.362 1.121l-.011 1.877c-.003.402.104.787.347 1.125.244.338.688.653 1.23.656l4.142.028c.542.003.99-.306 1.238-.641a1.87 1.87 0 0 0 .363-1.121l.012-1.875a1.87 1.87 0 0 0-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145 1.425-1.983 2.348-2.87 1.473-1.414 3.18-3.149 3.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006 1.1v.002c3.274.02 5.92 2.532 5.9 5.6-.017 2.706-1.39 4.026-2.863 5.44-1.034.994-2.118 2.033-2.814 3.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34 0 0 1-.226.084.34.34 0 0 1-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067 2.7-5.545 5.975-5.523m-.02 2.826c-1.62-.01-2.944 1.315-2.955 2.96-.01 1.646 1.295 2.988 2.916 2.999h.002c1.621.01 2.943-1.316 2.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005 1.1c1.017.006 1.829.83 1.822 1.89s-.83 1.874-1.848 1.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874 1.848-1.868m-2.155 11.857 4.14.025c.271.002.49.305.487.676l-.013 1.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668' style='color:%23000;font-style:normal;font-variant:normal;font-weight:400;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:%23000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:evenodd;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000;solid-opacity:1;vector-effect:none;fill:%23000;fill-opacity:.4;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-9.415-.316C-12.69-.338-15.37 2.14-15.39 5.207c-.017 2.716 1.326 4.041 2.78 5.477 1.013 1 2.081 2.055 2.78 3.67l.092.076a.34.34 0 0 0 .225.086.34.34 0 0 0 .227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6 1.78-2.64 2.814-3.634 1.473-1.414 2.847-2.733 2.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057 8.784c1.621.011 2.944-1.315 2.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945 1.315-2.955 2.96s1.295 2.989 2.916 3' style='clip-rule:evenodd;fill:%23e1e3e9;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-11.594 15.465c-.27-.002-.492.297-.494.668l-.012 1.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z' style='clip-rule:evenodd;fill:%23fff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3C/g%3E%3C/svg%3E")}}.maplibregl-ctrl.maplibregl-ctrl-attrib{background-color:hsla(0,0%,100%,.5);margin:0;padding:0 5px}@media screen{.maplibregl-ctrl-attrib.maplibregl-compact{background-color:#fff;border-radius:12px;box-sizing:content-box;color:#000;margin:10px;min-height:20px;padding:2px 24px 2px 0;position:relative}.maplibregl-ctrl-attrib.maplibregl-compact-show{padding:2px 28px 2px 8px;visibility:visible}.maplibregl-ctrl-bottom-left>.maplibregl-ctrl-attrib.maplibregl-compact-show,.maplibregl-ctrl-top-left>.maplibregl-ctrl-attrib.maplibregl-compact-show{border-radius:12px;padding:2px 8px 2px 28px}.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-inner{display:none}.maplibregl-ctrl-attrib-button{background-color:hsla(0,0%,100%,.5);background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill-rule='evenodd' viewBox='0 0 20 20'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E");border:0;border-radius:12px;box-sizing:border-box;cursor:pointer;display:none;height:24px;outline:none;position:absolute;right:0;top:0;width:24px}.maplibregl-ctrl-attrib summary.maplibregl-ctrl-attrib-button{-webkit-appearance:none;-moz-appearance:none;appearance:none;list-style:none}.maplibregl-ctrl-attrib summary.maplibregl-ctrl-attrib-button::-webkit-details-marker{display:none}.maplibregl-ctrl-bottom-left .maplibregl-ctrl-attrib-button,.maplibregl-ctrl-top-left .maplibregl-ctrl-attrib-button{left:0}.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-button,.maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-inner{display:block}.maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-button{background-color:rgb(0 0 0/5%)}.maplibregl-ctrl-bottom-right>.maplibregl-ctrl-attrib.maplibregl-compact:after{bottom:0;right:0}.maplibregl-ctrl-top-right>.maplibregl-ctrl-attrib.maplibregl-compact:after{right:0;top:0}.maplibregl-ctrl-top-left>.maplibregl-ctrl-attrib.maplibregl-compact:after{left:0;top:0}.maplibregl-ctrl-bottom-left>.maplibregl-ctrl-attrib.maplibregl-compact:after{bottom:0;left:0}}@media screen and (forced-colors:active){.maplibregl-ctrl-attrib.maplibregl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='%23fff' fill-rule='evenodd' viewBox='0 0 20 20'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E")}}@media screen and (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl-attrib.maplibregl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill-rule='evenodd' viewBox='0 0 20 20'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E")}}.maplibregl-ctrl-attrib a{color:rgba(0,0,0,.75);text-decoration:none}.maplibregl-ctrl-attrib a:hover{color:inherit;text-decoration:underline}.maplibregl-attrib-empty{display:none}.maplibregl-ctrl-scale{background-color:hsla(0,0%,100%,.75);border:2px solid #333;border-top:#333;box-sizing:border-box;color:#333;font-size:10px;padding:0 5px}.maplibregl-popup{display:flex;left:0;pointer-events:none;position:absolute;top:0;will-change:transform}.maplibregl-popup-anchor-top,.maplibregl-popup-anchor-top-left,.maplibregl-popup-anchor-top-right{flex-direction:column}.maplibregl-popup-anchor-bottom,.maplibregl-popup-anchor-bottom-left,.maplibregl-popup-anchor-bottom-right{flex-direction:column-reverse}.maplibregl-popup-anchor-left{flex-direction:row}.maplibregl-popup-anchor-right{flex-direction:row-reverse}.maplibregl-popup-tip{border:10px solid transparent;height:0;width:0;z-index:1}.maplibregl-popup-anchor-top .maplibregl-popup-tip{align-self:center;border-bottom-color:#fff;border-top:none}.maplibregl-popup-anchor-top-left .maplibregl-popup-tip{align-self:flex-start;border-bottom-color:#fff;border-left:none;border-top:none}.maplibregl-popup-anchor-top-right .maplibregl-popup-tip{align-self:flex-end;border-bottom-color:#fff;border-right:none;border-top:none}.maplibregl-popup-anchor-bottom .maplibregl-popup-tip{align-self:center;border-bottom:none;border-top-color:#fff}.maplibregl-popup-anchor-bottom-left .maplibregl-popup-tip{align-self:flex-start;border-bottom:none;border-left:none;border-top-color:#fff}.maplibregl-popup-anchor-bottom-right .maplibregl-popup-tip{align-self:flex-end;border-bottom:none;border-right:none;border-top-color:#fff}.maplibregl-popup-anchor-left .maplibregl-popup-tip{align-self:center;border-left:none;border-right-color:#fff}.maplibregl-popup-anchor-right .maplibregl-popup-tip{align-self:center;border-left-color:#fff;border-right:none}.maplibregl-popup-close-button{background-color:transparent;border:0;border-radius:0 3px 0 0;cursor:pointer;position:absolute;right:0;top:0}.maplibregl-popup-close-button:hover{background-color:rgb(0 0 0/5%)}.maplibregl-popup-content{background:#fff;border-radius:3px;box-shadow:0 1px 2px rgba(0,0,0,.1);padding:15px 10px;pointer-events:auto;position:relative}.maplibregl-popup-anchor-top-left .maplibregl-popup-content{border-top-left-radius:0}.maplibregl-popup-anchor-top-right .maplibregl-popup-content{border-top-right-radius:0}.maplibregl-popup-anchor-bottom-left .maplibregl-popup-content{border-bottom-left-radius:0}.maplibregl-popup-anchor-bottom-right .maplibregl-popup-content{border-bottom-right-radius:0}.maplibregl-popup-track-pointer{display:none}.maplibregl-popup-track-pointer *{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.maplibregl-map:hover .maplibregl-popup-track-pointer{display:flex}.maplibregl-map:active .maplibregl-popup-track-pointer{display:none}.maplibregl-marker{left:0;position:absolute;top:0;transition:opacity .2s;will-change:transform}.maplibregl-user-location-dot,.maplibregl-user-location-dot:before{background-color:#1da1f2;border-radius:50%;height:15px;width:15px}.maplibregl-user-location-dot:before{animation:maplibregl-user-location-dot-pulse 2s infinite;content:"";position:absolute}.maplibregl-user-location-dot:after{border:2px solid #fff;border-radius:50%;box-shadow:0 0 3px rgba(0,0,0,.35);box-sizing:border-box;content:"";height:19px;left:-2px;position:absolute;top:-2px;width:19px}@keyframes maplibregl-user-location-dot-pulse{0%{opacity:1;transform:scale(1)}70%{opacity:0;transform:scale(3)}to{opacity:0;transform:scale(1)}}.maplibregl-user-location-dot-stale{background-color:#aaa}.maplibregl-user-location-dot-stale:after{display:none}.maplibregl-user-location-accuracy-circle{background-color:#1da1f233;border-radius:100%;height:1px;width:1px}.maplibregl-crosshair,.maplibregl-crosshair .maplibregl-interactive,.maplibregl-crosshair .maplibregl-interactive:active{cursor:crosshair}.maplibregl-boxzoom{background:#fff;border:2px dotted #202020;height:0;left:0;opacity:.5;position:absolute;top:0;width:0}.maplibregl-cooperative-gesture-screen{align-items:center;background:rgba(0,0,0,.4);color:#fff;display:flex;font-size:1.4em;inset:0;justify-content:center;line-height:1.2;opacity:0;padding:1rem;pointer-events:none;position:absolute;transition:opacity 1s ease 1s;z-index:99999}.maplibregl-cooperative-gesture-screen.maplibregl-show{opacity:1;transition:opacity .05s}.maplibregl-cooperative-gesture-screen .maplibregl-mobile-message{display:none}@media (hover:none),(width <= 480px){.maplibregl-cooperative-gesture-screen .maplibregl-desktop-message{display:none}.maplibregl-cooperative-gesture-screen .maplibregl-mobile-message{display:block}}.maplibregl-pseudo-fullscreen{height:100%!important;left:0!important;position:fixed!important;top:0!important;width:100%!important;z-index:99999}`,document.head.appendChild(Z)}})()}}),so=Xe({"src/registry.js"(Z){"use strict";var G=Km(),v=p2(),x=$A(),S=Zv(),E=T_().addStyleRule,e=Qo(),t=ru(),r=$y(),o=e.extendFlat,a=e.extendDeepAll;Z.modules={},Z.allCategories={},Z.allTypes=[],Z.subplotsRegistry={},Z.componentsRegistry={},Z.layoutArrayContainers=[],Z.layoutArrayRegexes=[],Z.traceLayoutAttributes={},Z.localeRegistry={},Z.apiMethodRegistry={},Z.collectableSubplotTypes=null,Z.register=function(w){if(Z.collectableSubplotTypes=null,w)w&&!Array.isArray(w)&&(w=[w]);else throw new Error("No argument passed to Plotly.register.");for(var A=0;A<w.length;A++){var M=w[A];if(!M)throw new Error("Invalid module was attempted to be registered!");switch(M.moduleType){case"trace":n(M);break;case"transform":h(M);break;case"component":s(M);break;case"locale":c(M);break;case"apiMethod":var g=M.name;Z.apiMethodRegistry[g]=M.fn;break;default:throw new Error("Invalid module was attempted to be registered!")}}},Z.getModule=function(_){var w=Z.modules[l(_)];return w?w._module:!1},Z.traceIs=function(_,w){if(_=l(_),_==="various")return!1;var A=Z.modules[_];return A||(_&&G.log("Unrecognized trace type "+_+"."),A=Z.modules[t.type.dflt]),!!A.categories[w]},Z.getComponentMethod=function(_,w){var A=Z.componentsRegistry[_];return A&&A[w]||v},Z.call=function(){var _=arguments[0],w=[].slice.call(arguments,1);return Z.apiMethodRegistry[_].apply(null,w)};function n(_){var w=_.name,A=_.categories,M=_.meta;if(Z.modules[w]){G.log("Type "+w+" already registered");return}Z.subplotsRegistry[_.basePlotModule.name]||i(_.basePlotModule);for(var g={},b=0;b<A.length;b++)g[A[b]]=!0,Z.allCategories[A[b]]=!0;Z.modules[w]={_module:_,categories:g},M&&Object.keys(M).length&&(Z.modules[w].meta=M),Z.allTypes.push(w);for(var d in Z.componentsRegistry)p(d,w);_.layoutAttributes&&o(Z.traceLayoutAttributes,_.layoutAttributes);var u=_.basePlotModule,y=u.name;if(y==="mapbox"){var f=u.constants.styleRules;for(var R in f)E(".js-plotly-plot .plotly .mapboxgl-"+R,f[R])}y==="map"&&V7(),(y==="geo"||y==="mapbox"||y==="map")&&window.PlotlyGeoAssets===void 0&&(window.PlotlyGeoAssets={topojson:{}})}function i(_){var w=_.name;if(Z.subplotsRegistry[w]){G.log("Plot type "+w+" already registered.");return}m(_),Z.subplotsRegistry[w]=_;for(var A in Z.componentsRegistry)T(A,_.name)}function s(_){if(typeof _.name!="string")throw new Error("Component module *name* must be a string.");var w=_.name;Z.componentsRegistry[w]=_,_.layoutAttributes&&(_.layoutAttributes._isLinkedToArray&&x(Z.layoutArrayContainers,w),m(_));for(var A in Z.modules)p(w,A);for(var M in Z.subplotsRegistry)T(w,M);_.schema&&_.schema.layout&&a(r,_.schema.layout)}function h(_){if(typeof _.name!="string")throw new Error("Transform module *name* must be a string.");var w="Transform module "+_.name,A=typeof _.transform=="function",M=typeof _.calcTransform=="function";if(!A&&!M)throw new Error(w+" is missing a *transform* or *calcTransform* method.");A&&M&&G.log([w+" has both a *transform* and *calcTransform* methods.","Please note that all *transform* methods are executed","before all *calcTransform* methods."].join(" ")),S(_.attributes)||G.log(w+" registered without an *attributes* object."),typeof _.supplyDefaults!="function"&&G.log(w+" registered without a *supplyDefaults* method.")}function c(_){var w=_.name,A=w.split("-")[0],M=_.dictionary,g=_.format,b=M&&Object.keys(M).length,d=g&&Object.keys(g).length,u=Z.localeRegistry,y=u[w];if(y||(u[w]=y={}),A!==w){var f=u[A];f||(u[A]=f={}),b&&f.dictionary===y.dictionary&&(f.dictionary=M),d&&f.format===y.format&&(f.format=g)}b&&(y.dictionary=M),d&&(y.format=g)}function m(_){if(_.layoutAttributes){var w=_.layoutAttributes._arrayAttrRegexps;if(w)for(var A=0;A<w.length;A++)x(Z.layoutArrayRegexes,w[A])}}function p(_,w){var A=Z.componentsRegistry[_].schema;if(!(!A||!A.traces)){var M=A.traces[w];M&&a(Z.modules[w]._module.attributes,M)}}function T(_,w){var A=Z.componentsRegistry[_].schema;if(!(!A||!A.subplots)){var M=Z.subplotsRegistry[w],g=M.layoutAttributes,b=M.attr==="subplot"?M.name:M.attr;Array.isArray(b)&&(b=b[0]);var d=A.subplots[b];g&&d&&a(g,d)}}function l(_){return typeof _=="object"&&(_=_.type),_}}}),G7=Xe({"src/lib/dates.js"(Z){"use strict";var G=Xv().timeFormat,v=rs(),x=Km(),S=Yy().mod,E=Hs(),e=E.BADNUM,t=E.ONEDAY,r=E.ONEHOUR,o=E.ONEMIN,a=E.ONESEC,n=E.EPOCHJD,i=so(),s=Xv().utcFormat,h=/^\s*(-?\d\d\d\d|\d\d)(-(\d?\d)(-(\d?\d)([ Tt]([01]?\d|2[0-3])(:([0-5]\d)(:([0-5]\d(\.\d+)?))?(Z|z|[+\-]\d\d(:?\d\d)?)?)?)?)?)?\s*$/m,c=/^\s*(-?\d\d\d\d|\d\d)(-(\d?\di?)(-(\d?\d)([ Tt]([01]?\d|2[0-3])(:([0-5]\d)(:([0-5]\d(\.\d+)?))?(Z|z|[+\-]\d\d(:?\d\d)?)?)?)?)?)?\s*$/m,m=new Date().getFullYear()-70;function p(F){return F&&i.componentsRegistry.calendars&&typeof F=="string"&&F!=="gregorian"}Z.dateTick0=function(F,N){var O=T(F,!!N);if(N<2)return O;var P=Z.dateTime2ms(O,F);return P+=t*(N-1),Z.ms2DateTime(P,0,F)};function T(F,N){return p(F)?N?i.getComponentMethod("calendars","CANONICAL_SUNDAY")[F]:i.getComponentMethod("calendars","CANONICAL_TICK")[F]:N?"2000-01-02":"2000-01-01"}Z.dfltRange=function(F){return p(F)?i.getComponentMethod("calendars","DFLTRANGE")[F]:["2000-01-01","2001-01-01"]},Z.isJSDate=function(F){return typeof F=="object"&&F!==null&&typeof F.getTime=="function"};var l,_;Z.dateTime2ms=function(F,N){if(Z.isJSDate(F)){var O=F.getTimezoneOffset()*o,P=(F.getUTCMinutes()-F.getMinutes())*o+(F.getUTCSeconds()-F.getSeconds())*a+(F.getUTCMilliseconds()-F.getMilliseconds());if(P){var U=3*o;O=O-U/2+S(P-O+U/2,U)}return F=Number(F)-O,F>=l&&F<=_?F:e}if(typeof F!="string"&&typeof F!="number")return e;F=String(F);var B=p(N),X=F.charAt(0);B&&(X==="G"||X==="g")&&(F=F.slice(1),N="");var $=B&&N.slice(0,7)==="chinese",se=F.match($?c:h);if(!se)return e;var le=se[1],fe=se[3]||"1",V=Number(se[5]||1),Y=Number(se[7]||0),ee=Number(se[9]||0),q=Number(se[11]||0);if(B){if(le.length===2)return e;le=Number(le);var oe;try{var ae=i.getComponentMethod("calendars","getCal")(N);if($){var j=fe.charAt(fe.length-1)==="i";fe=parseInt(fe,10),oe=ae.newDate(le,ae.toMonthIndex(le,fe,j),V)}else oe=ae.newDate(le,Number(fe),V)}catch{return e}return oe?(oe.toJD()-n)*t+Y*r+ee*o+q*a:e}le.length===2?le=(Number(le)+2e3-m)%100+m:le=Number(le),fe-=1;var Q=new Date(Date.UTC(2e3,fe,V,Y,ee));return Q.setUTCFullYear(le),Q.getUTCMonth()!==fe||Q.getUTCDate()!==V?e:Q.getTime()+q*a},l=Z.MIN_MS=Z.dateTime2ms("-9999"),_=Z.MAX_MS=Z.dateTime2ms("9999-12-31 23:59:59.9999"),Z.isDateTime=function(F,N){return Z.dateTime2ms(F,N)!==e};function w(F,N){return String(F+Math.pow(10,N)).slice(1)}var A=90*t,M=3*r,g=5*o;Z.ms2DateTime=function(F,N,O){if(typeof F!="number"||!(F>=l&&F<=_))return e;N||(N=0);var P=Math.floor(S(F+.05,1)*10),U=Math.round(F-P/10),B,X,$,se,le,fe;if(p(O)){var V=Math.floor(U/t)+n,Y=Math.floor(S(F,t));try{B=i.getComponentMethod("calendars","getCal")(O).fromJD(V).formatDate("yyyy-mm-dd")}catch{B=s("G%Y-%m-%d")(new Date(U))}if(B.charAt(0)==="-")for(;B.length<11;)B="-0"+B.slice(1);else for(;B.length<10;)B="0"+B;X=N<A?Math.floor(Y/r):0,$=N<A?Math.floor(Y%r/o):0,se=N<M?Math.floor(Y%o/a):0,le=N<g?Y%a*10+P:0}else fe=new Date(U),B=s("%Y-%m-%d")(fe),X=N<A?fe.getUTCHours():0,$=N<A?fe.getUTCMinutes():0,se=N<M?fe.getUTCSeconds():0,le=N<g?fe.getUTCMilliseconds()*10+P:0;return b(B,X,$,se,le)},Z.ms2DateTimeLocal=function(F){if(!(F>=l+t&&F<=_-t))return e;var N=Math.floor(S(F+.05,1)*10),O=new Date(Math.round(F-N/10)),P=G("%Y-%m-%d")(O),U=O.getHours(),B=O.getMinutes(),X=O.getSeconds(),$=O.getUTCMilliseconds()*10+N;return b(P,U,B,X,$)};function b(F,N,O,P,U){if((N||O||P||U)&&(F+=" "+w(N,2)+":"+w(O,2),(P||U)&&(F+=":"+w(P,2),U))){for(var B=4;U%10===0;)B-=1,U/=10;F+="."+w(U,B)}return F}Z.cleanDate=function(F,N,O){if(F===e)return N;if(Z.isJSDate(F)||typeof F=="number"&&isFinite(F)){if(p(O))return x.error("JS Dates and milliseconds are incompatible with world calendars",F),N;if(F=Z.ms2DateTimeLocal(+F),!F&&N!==void 0)return N}else if(!Z.isDateTime(F,O))return x.error("unrecognized date",F),N;return F};var d=/%\d?f/g,u=/%h/g,y={1:"1",2:"1",3:"2",4:"2"};function f(F,N,O,P){F=F.replace(d,function(B){var X=Math.min(+B.charAt(1)||6,6),$=(N/1e3%1+2).toFixed(X).slice(2).replace(/0+$/,"")||"0";return $});var U=new Date(Math.floor(N+.05));if(F=F.replace(u,function(){return y[O("%q")(U)]}),p(P))try{F=i.getComponentMethod("calendars","worldCalFmt")(F,N,P)}catch{return"Invalid"}return O(F)(U)}var R=[59,59.9,59.99,59.999,59.9999];function L(F,N){var O=S(F+.05,t),P=w(Math.floor(O/r),2)+":"+w(S(Math.floor(O/o),60),2);if(N!=="M"){v(N)||(N=0);var U=Math.min(S(F/a,60),R[N]),B=(100+U).toFixed(N).slice(1);N>0&&(B=B.replace(/0+$/,"").replace(/[\.]$/,"")),P+=":"+B}return P}Z.formatDate=function(F,N,O,P,U,B){if(U=p(U)&&U,!N)if(O==="y")N=B.year;else if(O==="m")N=B.month;else if(O==="d")N=B.dayMonth+` |
| 5 | `+B.year;else return L(F,O)+` |
| 6 | `+f(B.dayMonthYear,F,P,U);return f(N,F,P,U)};var z=3*t;Z.incrementMonth=function(F,N,O){O=p(O)&&O;var P=S(F,t);if(F=Math.round(F-P),O)try{var U=Math.round(F/t)+n,B=i.getComponentMethod("calendars","getCal")(O),X=B.fromJD(U);return N%12?B.add(X,N,"m"):B.add(X,N/12,"y"),(X.toJD()-n)*t+P}catch{x.error("invalid ms "+F+" in calendar "+O)}var $=new Date(F+z);return $.setUTCMonth($.getUTCMonth()+N)+P-z},Z.findExactDates=function(F,N){for(var O=0,P=0,U=0,B=0,X,$,se=p(N)&&i.getComponentMethod("calendars","getCal")(N),le=0;le<F.length;le++){if($=F[le],!v($)){B++;continue}if(!($%t))if(se)try{X=se.fromJD($/t+n),X.day()===1?X.month()===1?O++:P++:U++}catch{}else X=new Date($),X.getUTCDate()===1?X.getUTCMonth()===0?O++:P++:U++}P+=O,U+=P;var fe=F.length-B;return{exactYears:O/fe,exactMonths:P/fe,exactDays:U/fe}}}}),S_=Xe({"src/lib/identity.js"(Z,G){"use strict";G.exports=function(x){return x}}}),g2=Xe({"src/lib/search.js"(Z){"use strict";var G=rs(),v=Km(),x=S_(),S=Hs().BADNUM,E=1e-9;Z.findBin=function(a,n,i){if(G(n.start))return i?Math.ceil((a-n.start)/n.size-E)-1:Math.floor((a-n.start)/n.size+E);var s=0,h=n.length,c=0,m=h>1?(n[h-1]-n[0])/(h-1):1,p,T;for(m>=0?T=i?e:t:T=i?o:r,a+=m*E*(i?-1:1)*(m>=0?1:-1);s<h&&c++<100;)p=Math.floor((s+h)/2),T(n[p],a)?s=p+1:h=p;return c>90&&v.log("Long binary search..."),s-1};function e(a,n){return a<n}function t(a,n){return a<=n}function r(a,n){return a>n}function o(a,n){return a>=n}Z.sorterAsc=function(a,n){return a-n},Z.sorterDes=function(a,n){return n-a},Z.distinctVals=function(a){var n=a.slice();n.sort(Z.sorterAsc);var i;for(i=n.length-1;i>-1&&n[i]===S;i--);for(var s=n[i]-n[0]||1,h=s/(i||1)/1e4,c=[],m,p=0;p<=i;p++){var T=n[p],l=T-m;m===void 0?(c.push(T),m=T):l>h&&(s=Math.min(s,l),c.push(T),m=T)}return{vals:c,minDiff:s}},Z.roundUp=function(a,n,i){for(var s=0,h=n.length-1,c,m=0,p=i?0:1,T=i?1:0,l=i?Math.ceil:Math.floor;s<h&&m++<100;)c=l((s+h)/2),n[c]<=a?s=c+p:h=c-T;return n[s]},Z.sort=function(a,n){for(var i=0,s=0,h=1;h<a.length;h++){var c=n(a[h],a[h-1]);if(c<0?i=1:c>0&&(s=1),i&&s)return a.sort(n)}return s?a:a.reverse()},Z.findIndexOfMin=function(a,n){n=n||x;for(var i=1/0,s,h=0;h<a.length;h++){var c=n(a[h]);c<i&&(i=c,s=h)}return s}}}),Jm=Xe({"src/lib/sort_object_keys.js"(Z,G){"use strict";G.exports=function(x){return Object.keys(x).sort()}}}),H7=Xe({"src/lib/stats.js"(Z){"use strict";var G=rs(),v=bp().isArrayOrTypedArray;Z.aggNums=function(x,S,E,e){var t,r;if((!e||e>E.length)&&(e=E.length),G(S)||(S=!1),v(E[0])){for(r=new Array(e),t=0;t<e;t++)r[t]=Z.aggNums(x,S,E[t]);E=r}for(t=0;t<e;t++)G(S)?G(E[t])&&(S=x(+S,+E[t])):S=E[t];return S},Z.len=function(x){return Z.aggNums(function(S){return S+1},0,x)},Z.mean=function(x,S){return S||(S=Z.len(x)),Z.aggNums(function(E,e){return E+e},0,x)/S},Z.geometricMean=function(x,S){return S||(S=Z.len(x)),Math.pow(Z.aggNums(function(E,e){return E*e},1,x),1/S)},Z.midRange=function(x){if(!(x===void 0||x.length===0))return(Z.aggNums(Math.max,null,x)+Z.aggNums(Math.min,null,x))/2},Z.variance=function(x,S,E){return S||(S=Z.len(x)),G(E)||(E=Z.mean(x,S)),Z.aggNums(function(e,t){return e+Math.pow(t-E,2)},0,x)/S},Z.stdev=function(x,S,E){return Math.sqrt(Z.variance(x,S,E))},Z.median=function(x){var S=x.slice().sort();return Z.interp(S,.5)},Z.interp=function(x,S){if(!G(S))throw"n should be a finite number";if(S=S*x.length-.5,S<0)return x[0];if(S>x.length-1)return x[x.length-1];var E=S%1;return E*x[Math.ceil(S)]+(1-E)*x[Math.floor(S)]}}}),W7=Xe({"src/lib/angles.js"(Z,G){"use strict";var v=Yy(),x=v.mod,S=v.modHalf,E=Math.PI,e=2*E;function t(T){return T/180*E}function r(T){return T/E*180}function o(T){return Math.abs(T[1]-T[0])>e-1e-14}function a(T,l){return S(l-T,e)}function n(T,l){return Math.abs(a(T,l))}function i(T,l){if(o(l))return!0;var _,w;l[0]<l[1]?(_=l[0],w=l[1]):(_=l[1],w=l[0]),_=x(_,e),w=x(w,e),_>w&&(w+=e);var A=x(T,e),M=A+e;return A>=_&&A<=w||M>=_&&M<=w}function s(T,l,_,w){if(!i(l,w))return!1;var A,M;return _[0]<_[1]?(A=_[0],M=_[1]):(A=_[1],M=_[0]),T>=A&&T<=M}function h(T,l,_,w,A,M,g){A=A||0,M=M||0;var b=o([_,w]),d,u,y,f,R;b?(d=0,u=E,y=e):_<w?(d=_,y=w):(d=w,y=_),T<l?(f=T,R=l):(f=l,R=T);function L(O,P){return[O*Math.cos(P)+A,M-O*Math.sin(P)]}var z=Math.abs(y-d)<=E?0:1;function F(O,P,U){return"A"+[O,O]+" "+[0,z,U]+" "+L(O,P)}var N;return b?f===null?N="M"+L(R,d)+F(R,u,0)+F(R,y,0)+"Z":N="M"+L(f,d)+F(f,u,0)+F(f,y,0)+"ZM"+L(R,d)+F(R,u,1)+F(R,y,1)+"Z":f===null?(N="M"+L(R,d)+F(R,y,0),g&&(N+="L0,0Z")):N="M"+L(f,d)+"L"+L(R,d)+F(R,y,0)+"L"+L(f,y)+F(f,d,1)+"Z",N}function c(T,l,_,w,A){return h(null,T,l,_,w,A,0)}function m(T,l,_,w,A){return h(null,T,l,_,w,A,1)}function p(T,l,_,w,A,M){return h(T,l,_,w,A,M,1)}G.exports={deg2rad:t,rad2deg:r,angleDelta:a,angleDist:n,isFullCircle:o,isAngleInsideSector:i,isPtInsideSector:s,pathArc:c,pathSector:m,pathAnnulus:p}}}),X7=Xe({"src/lib/anchor_utils.js"(Z){"use strict";Z.isLeftAnchor=function(v){return v.xanchor==="left"||v.xanchor==="auto"&&v.x<=1/3},Z.isCenterAnchor=function(v){return v.xanchor==="center"||v.xanchor==="auto"&&v.x>1/3&&v.x<2/3},Z.isRightAnchor=function(v){return v.xanchor==="right"||v.xanchor==="auto"&&v.x>=2/3},Z.isTopAnchor=function(v){return v.yanchor==="top"||v.yanchor==="auto"&&v.y>=2/3},Z.isMiddleAnchor=function(v){return v.yanchor==="middle"||v.yanchor==="auto"&&v.y>1/3&&v.y<2/3},Z.isBottomAnchor=function(v){return v.yanchor==="bottom"||v.yanchor==="auto"&&v.y<=1/3}}}),Z7=Xe({"src/lib/geometry2d.js"(Z){"use strict";var G=Yy().mod;Z.segmentsIntersect=v;function v(t,r,o,a,n,i,s,h){var c=o-t,m=n-t,p=s-n,T=a-r,l=i-r,_=h-i,w=c*_-p*T;if(w===0)return null;var A=(m*_-p*l)/w,M=(m*T-c*l)/w;return M<0||M>1||A<0||A>1?null:{x:t+c*A,y:r+T*A}}Z.segmentDistance=function(r,o,a,n,i,s,h,c){if(v(r,o,a,n,i,s,h,c))return 0;var m=a-r,p=n-o,T=h-i,l=c-s,_=m*m+p*p,w=T*T+l*l,A=Math.min(x(m,p,_,i-r,s-o),x(m,p,_,h-r,c-o),x(T,l,w,r-i,o-s),x(T,l,w,a-i,n-s));return Math.sqrt(A)};function x(t,r,o,a,n){var i=a*t+n*r;if(i<0)return a*a+n*n;if(i>o){var s=a-t,h=n-r;return s*s+h*h}else{var c=a*r-n*t;return c*c/o}}var S,E,e;Z.getTextLocation=function(r,o,a,n){if((r!==E||n!==e)&&(S={},E=r,e=n),S[a])return S[a];var i=r.getPointAtLength(G(a-n/2,o)),s=r.getPointAtLength(G(a+n/2,o)),h=Math.atan((s.y-i.y)/(s.x-i.x)),c=r.getPointAtLength(G(a,o)),m=(c.x*4+i.x+s.x)/6,p=(c.y*4+i.y+s.y)/6,T={x:m,y:p,theta:h};return S[a]=T,T},Z.clearLocationCache=function(){E=null},Z.getVisibleSegment=function(r,o,a){var n=o.left,i=o.right,s=o.top,h=o.bottom,c=0,m=r.getTotalLength(),p=m,T,l;function _(A){var M=r.getPointAtLength(A);A===0?T=M:A===m&&(l=M);var g=M.x<n?n-M.x:M.x>i?M.x-i:0,b=M.y<s?s-M.y:M.y>h?M.y-h:0;return Math.sqrt(g*g+b*b)}for(var w=_(c);w;){if(c+=w+a,c>p)return;w=_(c)}for(w=_(p);w;){if(p-=w+a,c>p)return;w=_(p)}return{min:c,max:p,len:p-c,total:m,isClosed:c===0&&p===m&&Math.abs(T.x-l.x)<.1&&Math.abs(T.y-l.y)<.1}},Z.findPointOnPath=function(r,o,a,n){n=n||{};for(var i=n.pathLength||r.getTotalLength(),s=n.tolerance||.001,h=n.iterationLimit||30,c=r.getPointAtLength(0)[a]>r.getPointAtLength(i)[a]?-1:1,m=0,p=0,T=i,l,_,w;m<h;){if(l=(p+T)/2,_=r.getPointAtLength(l),w=_[a]-o,Math.abs(w)<s)return _;c*w>0?T=l:p=l,m++}return _}}}),y2=Xe({"src/lib/throttle.js"(Z){"use strict";var G={};Z.throttle=function(S,E,e){var t=G[S],r=Date.now();if(!t){for(var o in G)G[o].ts<r-6e4&&delete G[o];t=G[S]={ts:0,timer:null}}v(t);function a(){e(),t.ts=Date.now(),t.onDone&&(t.onDone(),t.onDone=null)}if(r>t.ts+E){a();return}t.timer=setTimeout(function(){a(),t.timer=null},E)},Z.done=function(x){var S=G[x];return!S||!S.timer?Promise.resolve():new Promise(function(E){var e=S.onDone;S.onDone=function(){e&&e(),E(),S.onDone=null}})},Z.clear=function(x){if(x)v(G[x]),delete G[x];else for(var S in G)Z.clear(S)};function v(x){x&&x.timer!==null&&(clearTimeout(x.timer),x.timer=null)}}}),Y7=Xe({"src/lib/clear_responsive.js"(Z,G){"use strict";G.exports=function(x){x._responsiveChartHandler&&(window.removeEventListener("resize",x._responsiveChartHandler),delete x._responsiveChartHandler)}}}),K7=Xe({"node_modules/is-mobile/index.js"(Z,G){"use strict";G.exports=E,G.exports.isMobile=E,G.exports.default=E;var v=/(android|bb\d+|meego).+mobile|armv7l|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series[46]0|samsungbrowser.*mobile|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i,x=/CrOS/,S=/android|ipad|playbook|silk/i;function E(e){e||(e={});let t=e.ua;if(!t&&typeof navigator<"u"&&(t=navigator.userAgent),t&&t.headers&&typeof t.headers["user-agent"]=="string"&&(t=t.headers["user-agent"]),typeof t!="string")return!1;let r=v.test(t)&&!x.test(t)||!!e.tablet&&S.test(t);return!r&&e.tablet&&e.featureDetect&&navigator&&navigator.maxTouchPoints>1&&t.indexOf("Macintosh")!==-1&&t.indexOf("Safari")!==-1&&(r=!0),r}}}),J7=Xe({"src/lib/preserve_drawing_buffer.js"(Z,G){"use strict";var v=rs(),x=K7();G.exports=function(e){var t;if(e&&e.hasOwnProperty("userAgent")?t=e.userAgent:t=S(),typeof t!="string")return!0;var r=x({ua:{headers:{"user-agent":t}},tablet:!0,featureDetect:!1});if(!r)for(var o=t.split(" "),a=1;a<o.length;a++){var n=o[a];if(n.indexOf("Safari")!==-1)for(var i=a-1;i>-1;i--){var s=o[i];if(s.slice(0,8)==="Version/"){var h=s.slice(8).split(".")[0];if(v(h)&&(h=+h),h>=13)return!0}}}return r};function S(){var E;return typeof navigator<"u"&&(E=navigator.userAgent),E&&E.headers&&typeof E.headers["user-agent"]=="string"&&(E=E.headers["user-agent"]),E}}}),$7=Xe({"src/lib/make_trace_groups.js"(Z,G){"use strict";var v=Hn();G.exports=function(S,E,e){var t=S.selectAll("g."+e.replace(/\s/g,".")).data(E,function(o){return o[0].trace.uid});t.exit().remove(),t.enter().append("g").attr("class",e),t.order();var r=S.classed("rangeplot")?"nodeRangePlot3":"node3";return t.each(function(o){o[0][r]=v.select(this)}),t}}}),Q7=Xe({"src/lib/localize.js"(Z,G){"use strict";var v=so();G.exports=function(S,E){for(var e=S._context.locale,t=0;t<2;t++){for(var r=S._context.locales,o=0;o<2;o++){var a=(r[e]||{}).dictionary;if(a){var n=a[E];if(n)return n}r=v.localeRegistry}var i=e.split("-")[0];if(i===e)break;e=i}return E}}}),r5=Xe({"src/lib/filter_unique.js"(Z,G){"use strict";G.exports=function(x){for(var S={},E=[],e=0,t=0;t<x.length;t++){var r=x[t];S[r]!==1&&(S[r]=1,E[e++]=r)}return E}}}),ez=Xe({"src/lib/filter_visible.js"(Z,G){"use strict";G.exports=function(e){for(var t=S(e)?x:v,r=[],o=0;o<e.length;o++){var a=e[o];t(a)&&r.push(a)}return r};function v(E){return E.visible===!0}function x(E){var e=E[0].trace;return e.visible===!0&&e._length!==0}function S(E){return Array.isArray(E)&&Array.isArray(E[0])&&E[0][0]&&E[0][0].trace}}}),tz=Xe({"src/lib/increment.js"(Z,G){"use strict";G.exports=function(x,S){if(!S)return x;var E=1/Math.abs(S),e=E>1?(E*x+E*S)/E:x+S,t=String(e).length;if(t>16){var r=String(S).length,o=String(x).length;if(t>=o+r){var a=parseFloat(e).toPrecision(12);a.indexOf("e+")===-1&&(e=+a)}}return e}}}),rz=Xe({"src/lib/clean_number.js"(Z,G){"use strict";var v=rs(),x=Hs().BADNUM,S=/^['"%,$#\s']+|[, ]|['"%,$#\s']+$/g;G.exports=function(e){return typeof e=="string"&&(e=e.replace(S,"")),v(e)?Number(e):x}}}),sa=Xe({"src/lib/index.js"(Z,G){"use strict";var v=Hn(),x=Xv().utcFormat,S=YA().format,E=rs(),e=Hs(),t=e.FP_SAFE,r=-t,o=e.BADNUM,a=G.exports={};a.adjustFormat=function(j){return!j||/^\d[.]\df/.test(j)||/[.]\d%/.test(j)?j:j==="0.f"?"~f":/^\d%/.test(j)?"~%":/^\ds/.test(j)?"~s":!/^[~,.0$]/.test(j)&&/[&fps]/.test(j)?"~"+j:j};var n={};a.warnBadFormat=function(ae){var j=String(ae);n[j]||(n[j]=1,a.warn('encountered bad format: "'+j+'"'))},a.noFormat=function(ae){return String(ae)},a.numberFormat=function(ae){var j;try{j=S(a.adjustFormat(ae))}catch{return a.warnBadFormat(ae),a.noFormat}return j},a.nestedProperty=b_(),a.keyedContainer=u7(),a.relativeAttr=c7(),a.isPlainObject=Zv(),a.toLogRange=h2(),a.relinkPrivateKeys=f7();var i=bp();a.isArrayBuffer=i.isArrayBuffer,a.isTypedArray=i.isTypedArray,a.isArrayOrTypedArray=i.isArrayOrTypedArray,a.isArray1D=i.isArray1D,a.ensureArray=i.ensureArray,a.concat=i.concat,a.maxRowLength=i.maxRowLength,a.minRowLength=i.minRowLength;var s=Yy();a.mod=s.mod,a.modHalf=s.modHalf;var h=h7();a.valObjectMeta=h.valObjectMeta,a.coerce=h.coerce,a.coerce2=h.coerce2,a.coerceFont=h.coerceFont,a.coercePattern=h.coercePattern,a.coerceHoverinfo=h.coerceHoverinfo,a.coerceSelectionMarkerOpacity=h.coerceSelectionMarkerOpacity,a.validate=h.validate;var c=G7();a.dateTime2ms=c.dateTime2ms,a.isDateTime=c.isDateTime,a.ms2DateTime=c.ms2DateTime,a.ms2DateTimeLocal=c.ms2DateTimeLocal,a.cleanDate=c.cleanDate,a.isJSDate=c.isJSDate,a.formatDate=c.formatDate,a.incrementMonth=c.incrementMonth,a.dateTick0=c.dateTick0,a.dfltRange=c.dfltRange,a.findExactDates=c.findExactDates,a.MIN_MS=c.MIN_MS,a.MAX_MS=c.MAX_MS;var m=g2();a.findBin=m.findBin,a.sorterAsc=m.sorterAsc,a.sorterDes=m.sorterDes,a.distinctVals=m.distinctVals,a.roundUp=m.roundUp,a.sort=m.sort,a.findIndexOfMin=m.findIndexOfMin,a.sortObjectKeys=Jm();var p=H7();a.aggNums=p.aggNums,a.len=p.len,a.mean=p.mean,a.geometricMean=p.geometricMean,a.median=p.median,a.midRange=p.midRange,a.variance=p.variance,a.stdev=p.stdev,a.interp=p.interp;var T=d2();a.init2dArray=T.init2dArray,a.transposeRagged=T.transposeRagged,a.dot=T.dot,a.translationMatrix=T.translationMatrix,a.rotationMatrix=T.rotationMatrix,a.rotationXYMatrix=T.rotationXYMatrix,a.apply3DTransform=T.apply3DTransform,a.apply2DTransform=T.apply2DTransform,a.apply2DTransform2=T.apply2DTransform2,a.convertCssMatrix=T.convertCssMatrix,a.inverseTransformMatrix=T.inverseTransformMatrix;var l=W7();a.deg2rad=l.deg2rad,a.rad2deg=l.rad2deg,a.angleDelta=l.angleDelta,a.angleDist=l.angleDist,a.isFullCircle=l.isFullCircle,a.isAngleInsideSector=l.isAngleInsideSector,a.isPtInsideSector=l.isPtInsideSector,a.pathArc=l.pathArc,a.pathSector=l.pathSector,a.pathAnnulus=l.pathAnnulus;var _=X7();a.isLeftAnchor=_.isLeftAnchor,a.isCenterAnchor=_.isCenterAnchor,a.isRightAnchor=_.isRightAnchor,a.isTopAnchor=_.isTopAnchor,a.isMiddleAnchor=_.isMiddleAnchor,a.isBottomAnchor=_.isBottomAnchor;var w=Z7();a.segmentsIntersect=w.segmentsIntersect,a.segmentDistance=w.segmentDistance,a.getTextLocation=w.getTextLocation,a.clearLocationCache=w.clearLocationCache,a.getVisibleSegment=w.getVisibleSegment,a.findPointOnPath=w.findPointOnPath;var A=Qo();a.extendFlat=A.extendFlat,a.extendDeep=A.extendDeep,a.extendDeepAll=A.extendDeepAll,a.extendDeepNoArrays=A.extendDeepNoArrays;var M=Km();a.log=M.log,a.warn=M.warn,a.error=M.error;var g=Jy();a.counterRegex=g.counter;var b=y2();a.throttle=b.throttle,a.throttleDone=b.done,a.clearThrottle=b.clear;var d=T_();a.getGraphDiv=d.getGraphDiv,a.isPlotDiv=d.isPlotDiv,a.removeElement=d.removeElement,a.addStyleRule=d.addStyleRule,a.addRelatedStyleRule=d.addRelatedStyleRule,a.deleteRelatedStyleRule=d.deleteRelatedStyleRule,a.setStyleOnHover=d.setStyleOnHover,a.getFullTransformMatrix=d.getFullTransformMatrix,a.getElementTransformMatrix=d.getElementTransformMatrix,a.getElementAndAncestors=d.getElementAndAncestors,a.equalDomRects=d.equalDomRects,a.clearResponsive=Y7(),a.preserveDrawingBuffer=J7(),a.makeTraceGroups=$7(),a._=Q7(),a.notifier=JA(),a.filterUnique=r5(),a.filterVisible=ez(),a.pushUnique=$A(),a.increment=tz(),a.cleanNumber=rz(),a.ensureNumber=function(j){return E(j)?(j=Number(j),j>t||j<r?o:j):o},a.isIndex=function(ae,j){return j!==void 0&&ae>=j?!1:E(ae)&&ae>=0&&ae%1===0},a.noop=p2(),a.identity=S_(),a.repeat=function(ae,j){for(var Q=new Array(j),re=0;re<j;re++)Q[re]=ae;return Q},a.swapAttrs=function(ae,j,Q,re){Q||(Q="x"),re||(re="y");for(var ce=0;ce<j.length;ce++){var be=j[ce],Ae=a.nestedProperty(ae,be.replace("?",Q)),De=a.nestedProperty(ae,be.replace("?",re)),ze=Ae.get();Ae.set(De.get()),De.set(ze)}},a.raiseToTop=function(j){j.parentNode.appendChild(j)},a.cancelTransition=function(ae){return ae.transition().duration(0)},a.constrain=function(ae,j,Q){return j>Q?Math.max(Q,Math.min(j,ae)):Math.max(j,Math.min(Q,ae))},a.bBoxIntersect=function(ae,j,Q){return Q=Q||0,ae.left<=j.right+Q&&j.left<=ae.right+Q&&ae.top<=j.bottom+Q&&j.top<=ae.bottom+Q},a.simpleMap=function(ae,j,Q,re,ce){for(var be=ae.length,Ae=new Array(be),De=0;De<be;De++)Ae[De]=j(ae[De],Q,re,ce);return Ae},a.randstr=function ae(j,Q,re,ce){if(re||(re=16),Q===void 0&&(Q=24),Q<=0)return"0";var be=Math.log(Math.pow(2,Q))/Math.log(re),Ae="",De,ze,Ze;for(De=2;be===1/0;De*=2)be=Math.log(Math.pow(2,Q/De))/Math.log(re)*De;var at=be-Math.floor(be);for(De=0;De<Math.floor(be);De++)Ze=Math.floor(Math.random()*re).toString(re),Ae=Ze+Ae;at&&(ze=Math.pow(re,at),Ze=Math.floor(Math.random()*ze).toString(re),Ae=Ze+Ae);var nt=parseInt(Ae,re);return j&&j[Ae]||nt!==1/0&&nt>=Math.pow(2,Q)?ce>10?(a.warn("randstr failed uniqueness"),Ae):ae(j,Q,re,(ce||0)+1):Ae},a.OptionControl=function(ae,j){ae||(ae={}),j||(j="opt");var Q={};return Q.optionList=[],Q._newoption=function(re){re[j]=ae,Q[re.name]=re,Q.optionList.push(re)},Q["_"+j]=ae,Q},a.smooth=function(ae,j){if(j=Math.round(j)||0,j<2)return ae;var Q=ae.length,re=2*Q,ce=2*j-1,be=new Array(ce),Ae=new Array(Q),De,ze,Ze,at;for(De=0;De<ce;De++)be[De]=(1-Math.cos(Math.PI*(De+1)/j))/(2*j);for(De=0;De<Q;De++){for(at=0,ze=0;ze<ce;ze++)Ze=De+ze+1-j,Ze<-Q?Ze-=re*Math.round(Ze/re):Ze>=re&&(Ze-=re*Math.floor(Ze/re)),Ze<0?Ze=-1-Ze:Ze>=Q&&(Ze=re-1-Ze),at+=ae[Ze]*be[ze];Ae[De]=at}return Ae},a.syncOrAsync=function(ae,j,Q){var re,ce;function be(){return a.syncOrAsync(ae,j,Q)}for(;ae.length;)if(ce=ae.splice(0,1)[0],re=ce(j),re&&re.then)return re.then(be);return Q&&Q(j)},a.stripTrailingSlash=function(ae){return ae.slice(-1)==="/"?ae.slice(0,-1):ae},a.noneOrAll=function(ae,j,Q){if(ae){var re=!1,ce=!0,be,Ae;for(be=0;be<Q.length;be++)Ae=ae[Q[be]],Ae!=null?re=!0:ce=!1;if(re&&!ce)for(be=0;be<Q.length;be++)ae[Q[be]]=j[Q[be]]}},a.mergeArray=function(ae,j,Q,re){var ce=typeof re=="function";if(a.isArrayOrTypedArray(ae))for(var be=Math.min(ae.length,j.length),Ae=0;Ae<be;Ae++){var De=ae[Ae];j[Ae][Q]=ce?re(De):De}},a.mergeArrayCastPositive=function(ae,j,Q){return a.mergeArray(ae,j,Q,function(re){var ce=+re;return isFinite(ce)&&ce>0?ce:0})},a.fillArray=function(ae,j,Q,re){if(re=re||a.identity,a.isArrayOrTypedArray(ae))for(var ce=0;ce<j.length;ce++)j[ce][Q]=re(ae[ce])},a.castOption=function(ae,j,Q,re){re=re||a.identity;var ce=a.nestedProperty(ae,Q).get();return a.isArrayOrTypedArray(ce)?Array.isArray(j)&&a.isArrayOrTypedArray(ce[j[0]])?re(ce[j[0]][j[1]]):re(ce[j]):ce},a.extractOption=function(ae,j,Q,re){if(Q in ae)return ae[Q];var ce=a.nestedProperty(j,re).get();if(!Array.isArray(ce))return ce};function u(ae){var j={};for(var Q in ae)for(var re=ae[Q],ce=0;ce<re.length;ce++)j[re[ce]]=+Q;return j}a.tagSelected=function(ae,j,Q){var re=j.selectedpoints,ce=j._indexToPoints,be;ce&&(be=u(ce));function Ae(nt){return nt!==void 0&&nt<ae.length}for(var De=0;De<re.length;De++){var ze=re[De];if(a.isIndex(ze)||a.isArrayOrTypedArray(ze)&&a.isIndex(ze[0])&&a.isIndex(ze[1])){var Ze=be?be[ze]:ze,at=Q?Q[Ze]:Ze;Ae(at)&&(ae[at].selected=1)}}},a.selIndices2selPoints=function(ae){var j=ae.selectedpoints,Q=ae._indexToPoints;if(Q){for(var re=u(Q),ce=[],be=0;be<j.length;be++){var Ae=j[be];if(a.isIndex(Ae)){var De=re[Ae];a.isIndex(De)&&ce.push(De)}}return ce}else return j},a.getTargetArray=function(ae,j){var Q=j.target;if(typeof Q=="string"&&Q){var re=a.nestedProperty(ae,Q).get();return a.isArrayOrTypedArray(re)?re:!1}else if(a.isArrayOrTypedArray(Q))return Q;return!1};function y(ae,j,Q){var re={};typeof j!="object"&&(j={});var ce=Q==="pieLike"?-1:3,be=Object.keys(ae),Ae,De,ze;for(Ae=0;Ae<be.length;Ae++)De=be[Ae],ze=ae[De],!(De.charAt(0)==="_"||typeof ze=="function")&&(De==="module"?re[De]=ze:Array.isArray(ze)?De==="colorscale"||ce===-1?re[De]=ze.slice():re[De]=ze.slice(0,ce):a.isTypedArray(ze)?ce===-1?re[De]=ze.subarray():re[De]=ze.subarray(0,ce):ze&&typeof ze=="object"?re[De]=y(ae[De],j[De],Q):re[De]=ze);for(be=Object.keys(j),Ae=0;Ae<be.length;Ae++)De=be[Ae],ze=j[De],(typeof ze!="object"||!(De in re)||typeof re[De]!="object")&&(re[De]=ze);return re}a.minExtend=y,a.titleCase=function(ae){return ae.charAt(0).toUpperCase()+ae.slice(1)},a.containsAny=function(ae,j){for(var Q=0;Q<j.length;Q++)if(ae.indexOf(j[Q])!==-1)return!0;return!1};var f=/Version\/[\d\.]+.*Safari/;a.isSafari=function(){return f.test(window.navigator.userAgent)};var R=/iPad|iPhone|iPod/;a.isIOS=function(){return R.test(window.navigator.userAgent)};var L=/Macintosh.+AppleWebKit.+Gecko\)$/;a.isMacWKWebView=()=>L.test(window.navigator.userAgent);var z=/Firefox\/(\d+)\.\d+/;a.getFirefoxVersion=function(){var ae=z.exec(window.navigator.userAgent);if(ae&&ae.length===2){var j=parseInt(ae[1]);if(!isNaN(j))return j}return null},a.isD3Selection=function(ae){return ae instanceof v.selection},a.ensureSingle=function(ae,j,Q,re){var ce=ae.select(j+(Q?"."+Q:""));if(ce.size())return ce;var be=ae.append(j);return Q&&be.classed(Q,!0),re&&be.call(re),be},a.ensureSingleById=function(ae,j,Q,re){var ce=ae.select(j+"#"+Q);if(ce.size())return ce;var be=ae.append(j).attr("id",Q);return re&&be.call(re),be},a.objectFromPath=function(ae,j){for(var Q=ae.split("."),re,ce=re={},be=0;be<Q.length;be++){var Ae=Q[be],De=null,ze=Q[be].match(/(.*)\[([0-9]+)\]/);ze?(Ae=ze[1],De=ze[2],re=re[Ae]=[],be===Q.length-1?re[De]=j:re[De]={},re=re[De]):(be===Q.length-1?re[Ae]=j:re[Ae]={},re=re[Ae])}return ce};var F=/^([^\[\.]+)\.(.+)?/,N=/^([^\.]+)\[([0-9]+)\](\.)?(.+)?/;function O(ae){return ae.slice(0,2)==="__"}a.expandObjectPaths=function(ae){var j,Q,re,ce,be,Ae,De;if(typeof ae=="object"&&!Array.isArray(ae)){for(Q in ae)if(ae.hasOwnProperty(Q))if(j=Q.match(F)){if(ce=ae[Q],re=j[1],O(re))continue;delete ae[Q],ae[re]=a.extendDeepNoArrays(ae[re]||{},a.objectFromPath(Q,a.expandObjectPaths(ce))[re])}else if(j=Q.match(N)){if(ce=ae[Q],re=j[1],O(re))continue;if(be=parseInt(j[2]),delete ae[Q],ae[re]=ae[re]||[],j[3]===".")De=j[4],Ae=ae[re][be]=ae[re][be]||{},a.extendDeepNoArrays(Ae,a.objectFromPath(De,a.expandObjectPaths(ce)));else{if(O(re))continue;ae[re][be]=a.expandObjectPaths(ce)}}else{if(O(Q))continue;ae[Q]=a.expandObjectPaths(ae[Q])}}return ae},a.numSeparate=function(ae,j,Q){if(Q||(Q=!1),typeof j!="string"||j.length===0)throw new Error("Separator string required for formatting!");typeof ae=="number"&&(ae=String(ae));var re=/(\d+)(\d{3})/,ce=j.charAt(0),be=j.charAt(1),Ae=ae.split("."),De=Ae[0],ze=Ae.length>1?ce+Ae[1]:"";if(be&&(Ae.length>1||De.length>4||Q))for(;re.test(De);)De=De.replace(re,"$1"+be+"$2");return De+ze},a.TEMPLATE_STRING_REGEX=/%{([^\s%{}:]*)([:|\|][^}]*)?}/g;var P=/^\w*$/;a.templateString=function(ae,j){var Q={};return ae.replace(a.TEMPLATE_STRING_REGEX,function(re,ce){var be;return P.test(ce)?be=j[ce]:(Q[ce]=Q[ce]||a.nestedProperty(j,ce).get,be=Q[ce](!0)),be!==void 0?be:""})};var U={max:10,count:0,name:"hovertemplate"};a.hovertemplateString=ae=>fe(ds(To({},ae),{opts:U}));var B={max:10,count:0,name:"texttemplate"};a.texttemplateString=ae=>fe(ds(To({},ae),{opts:B}));var X=/^(\S+)([\*\/])(-?\d+(\.\d+)?)$/;function $(ae){var j=ae.match(X);return j?{key:j[1],op:j[2],number:Number(j[3])}:{key:ae,op:null,number:null}}var se={max:10,count:0,name:"texttemplate",parseMultDiv:!0};a.texttemplateStringForShapes=ae=>fe(ds(To({},ae),{opts:se}));var le=/^[:|\|]/;function fe({data:ae=[],locale:j,fallback:Q,labels:re={},opts:ce,template:be}){return be.replace(a.TEMPLATE_STRING_REGEX,(Ae,De,ze)=>{let Ze=["xother","yother"].includes(De),at=["_xother","_yother"].includes(De),nt=["_xother_","_yother_"].includes(De),rt=["xother_","yother_"].includes(De),st=Ze||at||rt||nt;(at||nt)&&(De=De.substring(1)),(rt||nt)&&(De=De.substring(0,De.length-1));let Me=null,ye=null;if(ce.parseMultDiv){var he=$(De);De=he.key,Me=he.op,ye=he.number}let Oe;if(st){if(re[De]===void 0)return"";Oe=re[De]}else for(let Pt of ae)if(Pt){if(Pt.hasOwnProperty(De)){Oe=Pt[De];break}if(P.test(De)||(Oe=a.nestedProperty(Pt,De).get(!0)),Oe!==void 0)break}if(Oe===void 0){let{count:Pt,max:It,name:qt}=ce,Wt=Q===!1?Ae:Q;return Pt<It&&a.warn([`Variable '${De}' in ${qt} could not be found!`,"Please verify that the template is correct.",`Using value: '${Wt}'.`].join(" ")),Pt===It&&a.warn(`Too many '${qt}' warnings - additional warnings will be suppressed.`),ce.count++,Wt}if(Me==="*"&&(Oe*=ye),Me==="/"&&(Oe/=ye),ze){var tt;if(ze[0]===":"&&(tt=j?j.numberFormat:a.numberFormat,Oe!==""&&(Oe=tt(ze.replace(le,""))(Oe))),ze[0]==="|"){tt=j?j.timeFormat:x;var ot=a.dateTime2ms(Oe);Oe=a.formatDate(ot,ze.replace(le,""),!1,tt)}}else{var Qe=De+"Label";re.hasOwnProperty(Qe)&&(Oe=re[Qe])}return st&&(Oe="("+Oe+")",(at||nt)&&(Oe=" "+Oe),(rt||nt)&&(Oe=Oe+" ")),Oe})}var V=48,Y=57;a.subplotSort=function(ae,j){for(var Q=Math.min(ae.length,j.length)+1,re=0,ce=0,be=0;be<Q;be++){var Ae=ae.charCodeAt(be)||0,De=j.charCodeAt(be)||0,ze=Ae>=V&&Ae<=Y,Ze=De>=V&&De<=Y;if(ze&&(re=10*re+Ae-V),Ze&&(ce=10*ce+De-V),!ze||!Ze){if(re!==ce)return re-ce;if(Ae!==De)return Ae-De}}return ce-re};var ee=2e9;a.seedPseudoRandom=function(){ee=2e9},a.pseudoRandom=function(){var ae=ee;return ee=(69069*ee+1)%4294967296,Math.abs(ee-ae)<429496729?a.pseudoRandom():ee/4294967296},a.fillText=function(ae,j,Q){var re=Array.isArray(Q)?function(Ae){Q.push(Ae)}:function(Ae){Q.text=Ae},ce=a.extractOption(ae,j,"htx","hovertext");if(a.isValidTextValue(ce))return re(ce);var be=a.extractOption(ae,j,"tx","text");if(a.isValidTextValue(be))return re(be)},a.isValidTextValue=function(ae){return ae||ae===0},a.formatPercent=function(ae,j){j=j||0;for(var Q=(Math.round(100*ae*Math.pow(10,j))*Math.pow(.1,j)).toFixed(j)+"%",re=0;re<j;re++)Q.indexOf(".")!==-1&&(Q=Q.replace("0%","%"),Q=Q.replace(".%","%"));return Q},a.isHidden=function(ae){var j=window.getComputedStyle(ae).display;return!j||j==="none"},a.strTranslate=function(ae,j){return ae||j?"translate("+ae+","+j+")":""},a.strRotate=function(ae){return ae?"rotate("+ae+")":""},a.strScale=function(ae){return ae!==1?"scale("+ae+")":""},a.getTextTransform=function(ae){var j=ae.noCenter,Q=ae.textX,re=ae.textY,ce=ae.targetX,be=ae.targetY,Ae=ae.anchorX||0,De=ae.anchorY||0,ze=ae.rotate,Ze=ae.scale;return Ze?Ze>1&&(Ze=1):Ze=0,a.strTranslate(ce-Ze*(Q+Ae),be-Ze*(re+De))+a.strScale(Ze)+(ze?"rotate("+ze+(j?"":" "+Q+" "+re)+")":"")},a.setTransormAndDisplay=function(ae,j){ae.attr("transform",a.getTextTransform(j)),ae.style("display",j.scale?null:"none")},a.ensureUniformFontSize=function(ae,j){var Q=a.extendFlat({},j);return Q.size=Math.max(j.size,ae._fullLayout.uniformtext.minsize||0),Q},a.join2=function(ae,j,Q){var re=ae.length;return re>1?ae.slice(0,-1).join(j)+Q+ae[re-1]:ae.join(j)},a.bigFont=function(ae){return Math.round(1.2*ae)};var q=a.getFirefoxVersion(),oe=q!==null&&q<86;a.getPositionFromD3Event=function(){return oe?[v.event.layerX,v.event.layerY]:[v.event.offsetX,v.event.offsetY]}}}),az=Xe({"build/plotcss.js"(){"use strict";var Z=sa(),G={"X,X div":'direction:ltr;font-family:"Open Sans",verdana,arial,sans-serif;margin:0;padding:0;border:0;',"X input,X button":'font-family:"Open Sans",verdana,arial,sans-serif;',"X input:focus,X button:focus":"outline:none;","X a":"text-decoration:none;","X a:hover":"text-decoration:none;","X .crisp":"shape-rendering:crispEdges;","X .user-select-none":"-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none;","X svg a":"fill:#447adb;","X svg a:hover":"fill:#3c6dc5;","X .main-svg":"position:absolute;top:0;left:0;pointer-events:none;","X .main-svg .draglayer":"pointer-events:all;","X .cursor-default":"cursor:default;","X .cursor-pointer":"cursor:pointer;","X .cursor-crosshair":"cursor:crosshair;","X .cursor-move":"cursor:move;","X .cursor-col-resize":"cursor:col-resize;","X .cursor-row-resize":"cursor:row-resize;","X .cursor-ns-resize":"cursor:ns-resize;","X .cursor-ew-resize":"cursor:ew-resize;","X .cursor-sw-resize":"cursor:sw-resize;","X .cursor-s-resize":"cursor:s-resize;","X .cursor-se-resize":"cursor:se-resize;","X .cursor-w-resize":"cursor:w-resize;","X .cursor-e-resize":"cursor:e-resize;","X .cursor-nw-resize":"cursor:nw-resize;","X .cursor-n-resize":"cursor:n-resize;","X .cursor-ne-resize":"cursor:ne-resize;","X .cursor-grab":"cursor:-webkit-grab;cursor:grab;","X .modebar":"position:absolute;top:2px;right:2px;","X .ease-bg":"-webkit-transition:background-color .3s ease 0s;-moz-transition:background-color .3s ease 0s;-ms-transition:background-color .3s ease 0s;-o-transition:background-color .3s ease 0s;transition:background-color .3s ease 0s;","X .modebar--hover>:not(.watermark)":"opacity:0;-webkit-transition:opacity .3s ease 0s;-moz-transition:opacity .3s ease 0s;-ms-transition:opacity .3s ease 0s;-o-transition:opacity .3s ease 0s;transition:opacity .3s ease 0s;","X:hover .modebar--hover .modebar-group":"opacity:1;","X:focus-within .modebar--hover .modebar-group":"opacity:1;","X .modebar-group":"float:left;display:inline-block;box-sizing:border-box;padding-left:8px;position:relative;vertical-align:middle;white-space:nowrap;","X .modebar-group a":"display:grid;place-content:center;","X .modebar-btn":"position:relative;font-size:16px;padding:3px 4px;height:22px;cursor:pointer;line-height:normal;box-sizing:border-box;border:none;background:rgba(0,0,0,0);","X .modebar-btn svg":"position:relative;","X .modebar-btn:focus-visible":"outline:1px solid #000;outline-offset:1px;border-radius:3px;","X .modebar.vertical":"display:flex;flex-direction:column;flex-wrap:wrap;align-content:flex-end;max-height:100%;","X .modebar.vertical svg":"top:-1px;","X .modebar.vertical .modebar-group":"display:block;float:none;padding-left:0px;padding-bottom:8px;","X .modebar.vertical .modebar-group .modebar-btn":"display:block;text-align:center;","X [data-title]:before,X [data-title]:after":"position:absolute;-webkit-transform:translate3d(0, 0, 0);-moz-transform:translate3d(0, 0, 0);-ms-transform:translate3d(0, 0, 0);-o-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);display:none;opacity:0;z-index:1001;pointer-events:none;top:110%;right:50%;","X [data-title]:hover:before,X [data-title]:hover:after":"display:block;opacity:1;","X [data-title]:before":'content:"";position:absolute;background:rgba(0,0,0,0);border:6px solid rgba(0,0,0,0);z-index:1002;margin-top:-12px;border-bottom-color:#69738a;margin-right:-6px;',"X [data-title]:after":"content:attr(data-title);background:#69738a;color:#fff;padding:8px 10px;font-size:12px;line-height:12px;white-space:nowrap;margin-right:-18px;border-radius:2px;","X .vertical [data-title]:before,X .vertical [data-title]:after":"top:0%;right:200%;","X .vertical [data-title]:before":"border:6px solid rgba(0,0,0,0);border-left-color:#69738a;margin-top:8px;margin-right:-30px;",Y:'font-family:"Open Sans",verdana,arial,sans-serif;position:fixed;top:50px;right:20px;z-index:10000;font-size:10pt;max-width:180px;',"Y p":"margin:0;","Y .notifier-note":"min-width:180px;max-width:250px;border:1px solid #fff;z-index:3000;margin:0;background-color:#8c97af;background-color:rgba(140,151,175,.9);color:#fff;padding:10px;overflow-wrap:break-word;word-wrap:break-word;-ms-hyphens:auto;-webkit-hyphens:auto;hyphens:auto;","Y .notifier-close":"color:#fff;opacity:.8;float:right;padding:0 5px;background:none;border:none;font-size:20px;font-weight:bold;line-height:20px;","Y .notifier-close:hover":"color:#444;text-decoration:none;cursor:pointer;"};for(x in G)v=x.replace(/^,/," ,").replace(/X/g,".js-plotly-plot .plotly").replace(/Y/g,".plotly-notifier"),Z.addStyleRule(v,G[x]);var v,x}}),a5=Xe({"node_modules/is-browser/client.js"(Z,G){G.exports=!0}}),i5=Xe({"node_modules/has-hover/index.js"(Z,G){"use strict";var v=a5(),x;typeof window.matchMedia=="function"?x=!window.matchMedia("(hover: none)").matches:x=v,G.exports=x}}),Z0=Xe({"node_modules/events/events.js"(Z,G){"use strict";var v=typeof Reflect=="object"?Reflect:null,x=v&&typeof v.apply=="function"?v.apply:function(M,g,b){return Function.prototype.apply.call(M,g,b)},S;v&&typeof v.ownKeys=="function"?S=v.ownKeys:Object.getOwnPropertySymbols?S=function(M){return Object.getOwnPropertyNames(M).concat(Object.getOwnPropertySymbols(M))}:S=function(M){return Object.getOwnPropertyNames(M)};function E(A){console&&console.warn&&console.warn(A)}var e=Number.isNaN||function(M){return M!==M};function t(){t.init.call(this)}G.exports=t,G.exports.once=l,t.EventEmitter=t,t.prototype._events=void 0,t.prototype._eventsCount=0,t.prototype._maxListeners=void 0;var r=10;function o(A){if(typeof A!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof A)}Object.defineProperty(t,"defaultMaxListeners",{enumerable:!0,get:function(){return r},set:function(A){if(typeof A!="number"||A<0||e(A))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+A+".");r=A}}),t.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},t.prototype.setMaxListeners=function(M){if(typeof M!="number"||M<0||e(M))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+M+".");return this._maxListeners=M,this};function a(A){return A._maxListeners===void 0?t.defaultMaxListeners:A._maxListeners}t.prototype.getMaxListeners=function(){return a(this)},t.prototype.emit=function(M){for(var g=[],b=1;b<arguments.length;b++)g.push(arguments[b]);var d=M==="error",u=this._events;if(u!==void 0)d=d&&u.error===void 0;else if(!d)return!1;if(d){var y;if(g.length>0&&(y=g[0]),y instanceof Error)throw y;var f=new Error("Unhandled error."+(y?" ("+y.message+")":""));throw f.context=y,f}var R=u[M];if(R===void 0)return!1;if(typeof R=="function")x(R,this,g);else for(var L=R.length,z=m(R,L),b=0;b<L;++b)x(z[b],this,g);return!0};function n(A,M,g,b){var d,u,y;if(o(g),u=A._events,u===void 0?(u=A._events=Object.create(null),A._eventsCount=0):(u.newListener!==void 0&&(A.emit("newListener",M,g.listener?g.listener:g),u=A._events),y=u[M]),y===void 0)y=u[M]=g,++A._eventsCount;else if(typeof y=="function"?y=u[M]=b?[g,y]:[y,g]:b?y.unshift(g):y.push(g),d=a(A),d>0&&y.length>d&&!y.warned){y.warned=!0;var f=new Error("Possible EventEmitter memory leak detected. "+y.length+" "+String(M)+" listeners added. Use emitter.setMaxListeners() to increase limit");f.name="MaxListenersExceededWarning",f.emitter=A,f.type=M,f.count=y.length,E(f)}return A}t.prototype.addListener=function(M,g){return n(this,M,g,!1)},t.prototype.on=t.prototype.addListener,t.prototype.prependListener=function(M,g){return n(this,M,g,!0)};function i(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function s(A,M,g){var b={fired:!1,wrapFn:void 0,target:A,type:M,listener:g},d=i.bind(b);return d.listener=g,b.wrapFn=d,d}t.prototype.once=function(M,g){return o(g),this.on(M,s(this,M,g)),this},t.prototype.prependOnceListener=function(M,g){return o(g),this.prependListener(M,s(this,M,g)),this},t.prototype.removeListener=function(M,g){var b,d,u,y,f;if(o(g),d=this._events,d===void 0)return this;if(b=d[M],b===void 0)return this;if(b===g||b.listener===g)--this._eventsCount===0?this._events=Object.create(null):(delete d[M],d.removeListener&&this.emit("removeListener",M,b.listener||g));else if(typeof b!="function"){for(u=-1,y=b.length-1;y>=0;y--)if(b[y]===g||b[y].listener===g){f=b[y].listener,u=y;break}if(u<0)return this;u===0?b.shift():p(b,u),b.length===1&&(d[M]=b[0]),d.removeListener!==void 0&&this.emit("removeListener",M,f||g)}return this},t.prototype.off=t.prototype.removeListener,t.prototype.removeAllListeners=function(M){var g,b,d;if(b=this._events,b===void 0)return this;if(b.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):b[M]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete b[M]),this;if(arguments.length===0){var u=Object.keys(b),y;for(d=0;d<u.length;++d)y=u[d],y!=="removeListener"&&this.removeAllListeners(y);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(g=b[M],typeof g=="function")this.removeListener(M,g);else if(g!==void 0)for(d=g.length-1;d>=0;d--)this.removeListener(M,g[d]);return this};function h(A,M,g){var b=A._events;if(b===void 0)return[];var d=b[M];return d===void 0?[]:typeof d=="function"?g?[d.listener||d]:[d]:g?T(d):m(d,d.length)}t.prototype.listeners=function(M){return h(this,M,!0)},t.prototype.rawListeners=function(M){return h(this,M,!1)},t.listenerCount=function(A,M){return typeof A.listenerCount=="function"?A.listenerCount(M):c.call(A,M)},t.prototype.listenerCount=c;function c(A){var M=this._events;if(M!==void 0){var g=M[A];if(typeof g=="function")return 1;if(g!==void 0)return g.length}return 0}t.prototype.eventNames=function(){return this._eventsCount>0?S(this._events):[]};function m(A,M){for(var g=new Array(M),b=0;b<M;++b)g[b]=A[b];return g}function p(A,M){for(;M+1<A.length;M++)A[M]=A[M+1];A.pop()}function T(A){for(var M=new Array(A.length),g=0;g<M.length;++g)M[g]=A[g].listener||A[g];return M}function l(A,M){return new Promise(function(g,b){function d(y){A.removeListener(M,u),b(y)}function u(){typeof A.removeListener=="function"&&A.removeListener("error",d),g([].slice.call(arguments))}w(A,M,u,{once:!0}),M!=="error"&&_(A,d,{once:!0})})}function _(A,M,g){typeof A.on=="function"&&w(A,"error",M,g)}function w(A,M,g,b){if(typeof A.on=="function")b.once?A.once(M,g):A.on(M,g);else if(typeof A.addEventListener=="function")A.addEventListener(M,function d(u){b.once&&A.removeEventListener(M,d),g(u)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof A)}}}),Qy=Xe({"src/lib/events.js"(Z,G){"use strict";var v=Z0().EventEmitter,x={init:function(S){if(S._ev instanceof v)return S;var E=new v,e=new v;return S._ev=E,S._internalEv=e,S.on=E.on.bind(E),S.once=E.once.bind(E),S.removeListener=E.removeListener.bind(E),S.removeAllListeners=E.removeAllListeners.bind(E),S._internalOn=e.on.bind(e),S._internalOnce=e.once.bind(e),S._removeInternalListener=e.removeListener.bind(e),S._removeAllInternalListeners=e.removeAllListeners.bind(e),S.emit=function(t,r){E.emit(t,r),e.emit(t,r)},typeof S.addEventListener=="function"&&S.addEventListener("wheel",()=>{},{passive:!0}),S},triggerHandler:function(S,E,e){var t,r=S._ev;if(!r)return;var o=r._events[E];if(!o)return;function a(i){if(i.listener){if(r.removeListener(E,i.listener),!i.fired)return i.fired=!0,i.listener.apply(r,[e])}else return i.apply(r,[e])}o=Array.isArray(o)?o:[o];var n;for(n=0;n<o.length-1;n++)a(o[n]);return t=a(o[n]),t},purge:function(S){return delete S._ev,delete S.on,delete S.once,delete S.removeListener,delete S.removeAllListeners,delete S.emit,delete S._ev,delete S._internalEv,delete S._internalOn,delete S._internalOnce,delete S._removeInternalListener,delete S._removeAllInternalListeners,S}};G.exports=x}}),iz=Xe({"src/lib/queue.js"(Z,G){"use strict";var v=sa(),x=X0().dfltConfig;function S(e,t){for(var r=[],o,a=0;a<t.length;a++)o=t[a],o===e?r[a]=o:typeof o=="object"?r[a]=Array.isArray(o)?v.extendDeep([],o):v.extendDeepAll({},o):r[a]=o;return r}var E={};E.add=function(e,t,r,o,a){var n,i;if(e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},i=e.undoQueue.index,e.autoplay){e.undoQueue.inSequence||(e.autoplay=!1);return}!e.undoQueue.sequence||e.undoQueue.beginSequence?(n={undo:{calls:[],args:[]},redo:{calls:[],args:[]}},e.undoQueue.queue.splice(i,e.undoQueue.queue.length-i,n),e.undoQueue.index+=1):n=e.undoQueue.queue[i-1],e.undoQueue.beginSequence=!1,n&&(n.undo.calls.unshift(t),n.undo.args.unshift(r),n.redo.calls.push(o),n.redo.args.push(a)),e.undoQueue.queue.length>x.queueLength&&(e.undoQueue.queue.shift(),e.undoQueue.index--)},E.startSequence=function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!0,e.undoQueue.beginSequence=!0},E.stopSequence=function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!1,e.undoQueue.beginSequence=!1},E.undo=function(t){var r,o;if(!(t.undoQueue===void 0||isNaN(t.undoQueue.index)||t.undoQueue.index<=0)){for(t.undoQueue.index--,r=t.undoQueue.queue[t.undoQueue.index],t.undoQueue.inSequence=!0,o=0;o<r.undo.calls.length;o++)E.plotDo(t,r.undo.calls[o],r.undo.args[o]);t.undoQueue.inSequence=!1,t.autoplay=!1}},E.redo=function(t){var r,o;if(!(t.undoQueue===void 0||isNaN(t.undoQueue.index)||t.undoQueue.index>=t.undoQueue.queue.length)){for(r=t.undoQueue.queue[t.undoQueue.index],t.undoQueue.inSequence=!0,o=0;o<r.redo.calls.length;o++)E.plotDo(t,r.redo.calls[o],r.redo.args[o]);t.undoQueue.inSequence=!1,t.autoplay=!1,t.undoQueue.index++}},E.plotDo=function(e,t,r){e.autoplay=!0,r=S(e,r),t.apply(null,r)},G.exports=E}}),n5=Xe({"src/plots/frame_attributes.js"(Z,G){"use strict";G.exports={_isLinkedToArray:"frames_entry",group:{valType:"string"},name:{valType:"string"},traces:{valType:"any"},baseframe:{valType:"string"},data:{valType:"any"},layout:{valType:"any"}}}}),e1=Xe({"src/plot_api/plot_schema.js"(Z){"use strict";var G=so(),v=sa(),x=ru(),S=$y(),E=n5(),e=A_(),t=X0().configAttributes,r=pc(),o=v.extendDeepAll,a=v.isPlainObject,n=v.isArrayOrTypedArray,i=v.nestedProperty,s=v.valObjectMeta,h="_isSubplotObj",c="_isLinkedToArray",m="_arrayAttrRegexps",p="_deprecated",T=[h,c,m,p];Z.IS_SUBPLOT_OBJ=h,Z.IS_LINKED_TO_ARRAY=c,Z.DEPRECATED=p,Z.UNDERSCORE_ATTRS=T,Z.get=function(){var L={};return G.allTypes.forEach(function(z){L[z]=A(z)}),{defs:{valObjects:s,metaKeys:T.concat(["description","role","editType","impliedEdits"]),editType:{traces:r.traces,layout:r.layout},impliedEdits:{}},traces:L,layout:M(),frames:g(),animation:b(e),config:b(t)}},Z.crawl=function(L,z,F,N){var O=F||0;N=N||"",Object.keys(L).forEach(function(P){var U=L[P];if(T.indexOf(P)===-1){var B=(N?N+".":"")+P;z(U,P,L,O,B),!Z.isValObject(U)&&a(U)&&P!=="impliedEdits"&&Z.crawl(U,z,O+1,B)}})},Z.isValObject=function(L){return L&&L.valType!==void 0},Z.findArrayAttributes=function(L){var z=[],F=[],N=[],O,P;function U(X,$,se,le){F=F.slice(0,le).concat([$]),N=N.slice(0,le).concat([X&&X._isLinkedToArray]);var fe=X&&(X.valType==="data_array"||X.arrayOk===!0)&&!(F[le-1]==="colorbar"&&($==="ticktext"||$==="tickvals"));fe&&B(O,0,"")}function B(X,$,se){var le=X[F[$]],fe=se+F[$];if($===F.length-1)n(le)&&z.push(P+fe);else if(N[$]){if(Array.isArray(le))for(var V=0;V<le.length;V++)a(le[V])&&B(le[V],$+1,fe+"["+V+"].")}else a(le)&&B(le,$+1,fe+".")}return O=L,P="",Z.crawl(x,U),L._module&&L._module.attributes&&Z.crawl(L._module.attributes,U),z},Z.getTraceValObject=function(L,z){var F=z[0],N=1,O,P,U=L._module;if(U||(U=(G.modules[L.type||x.type.dflt]||{})._module),!U)return!1;if(O=U.attributes,P=O&&O[F],!P){var B=U.basePlotModule;B&&B.attributes&&(P=B.attributes[F])}return P||(P=x[F]),_(P,z,N)},Z.getLayoutValObject=function(L,z){var F=l(L,z[0]);return _(F,z,1)};function l(L,z){var F,N,O,P,U=L._basePlotModules;if(U){var B;for(F=0;F<U.length;F++){if(O=U[F],O.attrRegex&&O.attrRegex.test(z)){if(O.layoutAttrOverrides)return O.layoutAttrOverrides;!B&&O.layoutAttributes&&(B=O.layoutAttributes)}var X=O.baseLayoutAttrOverrides;if(X&&z in X)return X[z]}if(B)return B}var $=L._modules;if($){for(F=0;F<$.length;F++)if(P=$[F].layoutAttributes,P&&z in P)return P[z]}for(N in G.componentsRegistry){if(O=G.componentsRegistry[N],O.name==="colorscale"&&z.indexOf("coloraxis")===0)return O.layoutAttributes[z];if(!O.schema&&z===O.name)return O.layoutAttributes}return z in S?S[z]:!1}function _(L,z,F){if(!L)return!1;if(L._isLinkedToArray){if(w(z[F]))F++;else if(F<z.length)return!1}for(;F<z.length;F++){var N=L[z[F]];if(a(N))L=N;else break;if(F===z.length-1)break;if(L._isLinkedToArray){if(F++,!w(z[F]))return!1}else if(L.valType==="info_array"){F++;var O=z[F];if(!w(O))return!1;var P=L.items;if(Array.isArray(P)){if(O>=P.length)return!1;if(L.dimensions===2){if(F++,z.length===F)return L;var U=z[F];if(!w(U))return!1;L=P[O][U]}else L=P[O]}else L=P}}return L}function w(L){return L===Math.round(L)&&L>=0}function A(L){var z,F;z=G.modules[L]._module,F=z.basePlotModule;var N={};N.type=null;var O=o({},x),P=o({},z.attributes);Z.crawl(P,function(X,$,se,le,fe){i(O,fe).set(void 0),X===void 0&&i(P,fe).set(void 0)}),o(N,O),G.traceIs(L,"noOpacity")&&delete N.opacity,G.traceIs(L,"showLegend")||(delete N.showlegend,delete N.legendgroup),G.traceIs(L,"noHover")&&(delete N.hoverinfo,delete N.hoverlabel),z.selectPoints||delete N.selectedpoints,o(N,P),F.attributes&&o(N,F.attributes),N.type=L;var U={meta:z.meta||{},categories:z.categories||{},animatable:!!z.animatable,type:L,attributes:b(N)};if(z.layoutAttributes){var B={};o(B,z.layoutAttributes),U.layoutAttributes=b(B)}return z.animatable||Z.crawl(U,function(X){Z.isValObject(X)&&"anim"in X&&delete X.anim}),U}function M(){var L={},z,F;o(L,S);for(z in G.subplotsRegistry)if(F=G.subplotsRegistry[z],!!F.layoutAttributes)if(Array.isArray(F.attr))for(var N=0;N<F.attr.length;N++)f(L,F,F.attr[N]);else{var O=F.attr==="subplot"?F.name:F.attr;f(L,F,O)}for(z in G.componentsRegistry){F=G.componentsRegistry[z];var P=F.schema;if(P&&(P.subplots||P.layout)){var U=P.subplots;if(U&&U.xaxis&&!U.yaxis)for(var B in U.xaxis)delete L.yaxis[B];delete L.xaxis.shift,delete L.xaxis.autoshift}else F.name==="colorscale"?o(L,F.layoutAttributes):F.layoutAttributes&&R(L,F.layoutAttributes,F.name)}return{layoutAttributes:b(L)}}function g(){var L={frames:o({},E)};return b(L),L.frames}function b(L){return d(L),u(L),y(L),L}function d(L){function z(N){return{valType:"string",editType:"none"}}function F(N,O,P){Z.isValObject(N)?(N.arrayOk===!0||N.valType==="data_array")&&(P[O+"src"]=z(O)):a(N)&&(N.role="object")}Z.crawl(L,F)}function u(L){function z(F,N,O){if(F){var P=F[c];P&&(delete F[c],O[N]={items:{}},O[N].items[P]=F,O[N].role="object")}}Z.crawl(L,z)}function y(L){function z(F){for(var N in F)if(a(F[N]))z(F[N]);else if(Array.isArray(F[N]))for(var O=0;O<F[N].length;O++)z(F[N][O]);else F[N]instanceof RegExp&&(F[N]=F[N].toString())}z(L)}function f(L,z,F){var N=i(L,F),O=o({},z.layoutAttributes);O[h]=!0,N.set(O)}function R(L,z,F){var N=i(L,F);N.set(o(N.get()||{},z))}}}),zl=Xe({"src/plot_api/plot_template.js"(Z){"use strict";var G=sa(),v=ru(),x="templateitemname",S={name:{valType:"string",editType:"none"}};S[x]={valType:"string",editType:"calc"},Z.templatedArray=function(t,r){return r._isLinkedToArray=t,r.name=S.name,r[x]=S[x],r},Z.traceTemplater=function(t){var r={},o,a;for(o in t)a=t[o],Array.isArray(a)&&a.length&&(r[o]=0);function n(i){o=G.coerce(i,{},v,"type");var s={type:o,_template:null};if(o in r){a=t[o];var h=r[o]%a.length;r[o]++,s._template=a[h]}return s}return{newTrace:n}},Z.newContainer=function(t,r,o){var a=t._template,n=a&&(a[r]||o&&a[o]);G.isPlainObject(n)||(n=null);var i=t[r]={_template:n};return i},Z.arrayTemplater=function(t,r,o){var a=t._template,n=a&&a[e(r)],i=a&&a[r];(!Array.isArray(i)||!i.length)&&(i=[]);var s={};function h(m){var p={name:m.name,_input:m},T=p[x]=m[x];if(!E(T))return p._template=n,p;for(var l=0;l<i.length;l++){var _=i[l];if(_.name===T)return s[T]=1,p._template=_,p}return p[o]=m[o]||!1,p._template=!1,p}function c(){for(var m=[],p=0;p<i.length;p++){var T=i[p],l=T.name;if(E(l)&&!s[l]){var _={_template:T,name:l,_input:{_templateitemname:l}};_[x]=T[x],m.push(_),s[l]=1}}return m}return{newItem:h,defaultItems:c}};function E(t){return t&&typeof t=="string"}function e(t){var r=t.length-1;return t.charAt(r)!=="s"&&G.warn("bad argument to arrayDefaultKey: "+t),t.slice(0,-1)+"defaults"}Z.arrayDefaultKey=e,Z.arrayEditor=function(t,r,o){var a=(G.nestedProperty(t,r).get()||[]).length,n=o._index,i=n>=a&&(o._input||{})._templateitemname;i&&(n=a);var s=r+"["+n+"]",h;function c(){h={},i&&(h[s]={},h[s][x]=i)}c();function m(_,w){h[_]=w}function p(_,w){i?G.nestedProperty(h[s],_).set(w):h[s+"."+_]=w}function T(){var _=h;return c(),_}function l(_,w){_&&p(_,w);var A=T();for(var M in A)G.nestedProperty(t,M).set(A[M])}return{modifyBase:m,modifyItem:p,getUpdateObj:T,applyUpdate:l}}}}),lh=Xe({"src/plots/cartesian/constants.js"(Z,G){"use strict";var v=Jy().counter;G.exports={idRegex:{x:v("x","( domain)?"),y:v("y","( domain)?")},attrRegex:v("[xy]axis"),xAxisMatch:v("xaxis"),yAxisMatch:v("yaxis"),AX_ID_PATTERN:/^[xyz][0-9]*( domain)?$/,AX_NAME_PATTERN:/^[xyz]axis[0-9]*$/,SUBPLOT_PATTERN:/^x([0-9]*)y([0-9]*)$/,HOUR_PATTERN:"hour",WEEKDAY_PATTERN:"day of week",MINDRAG:8,MINZOOM:20,DRAGGERSIZE:20,REDRAWDELAY:50,DFLTRANGEX:[-1,6],DFLTRANGEY:[-1,4],traceLayerClasses:["imagelayer","heatmaplayer","contourcarpetlayer","contourlayer","funnellayer","waterfalllayer","barlayer","carpetlayer","violinlayer","boxlayer","ohlclayer","scattercarpetlayer","scatterlayer"],clipOnAxisFalseQuery:[".scatterlayer",".barlayer",".funnellayer",".waterfalllayer"],layerValue2layerClass:{"above traces":"above","below traces":"below"},zindexSeparator:"z"}}}),ef=Xe({"src/plots/cartesian/axis_ids.js"(Z){"use strict";var G=so(),v=lh();Z.id2name=function(E){if(!(typeof E!="string"||!E.match(v.AX_ID_PATTERN))){var e=E.split(" ")[0].slice(1);return e==="1"&&(e=""),E.charAt(0)+"axis"+e}},Z.name2id=function(E){if(E.match(v.AX_NAME_PATTERN)){var e=E.slice(5);return e==="1"&&(e=""),E.charAt(0)+e}},Z.cleanId=function(E,e,t){var r=/( domain)$/.test(E);if(!(typeof E!="string"||!E.match(v.AX_ID_PATTERN))&&!(e&&E.charAt(0)!==e)&&!(r&&!t)){var o=E.split(" ")[0].slice(1).replace(/^0+/,"");return o==="1"&&(o=""),E.charAt(0)+o+(r&&t?" domain":"")}},Z.list=function(S,E,e){var t=S._fullLayout;if(!t)return[];var r=Z.listIds(S,E),o=new Array(r.length),a;for(a=0;a<r.length;a++){var n=r[a];o[a]=t[n.charAt(0)+"axis"+n.slice(1)]}if(!e){var i=t._subplots.gl3d||[];for(a=0;a<i.length;a++){var s=t[i[a]];E?o.push(s[E+"axis"]):o.push(s.xaxis,s.yaxis,s.zaxis)}}return o},Z.listIds=function(S,E){var e=S._fullLayout;if(!e)return[];var t=e._subplots;return E?t[E+"axis"]:t.xaxis.concat(t.yaxis)},Z.getFromId=function(S,E,e){var t=S._fullLayout;return E=E===void 0||typeof E!="string"?E:E.replace(" domain",""),e==="x"?E=E.replace(/y[0-9]*/,""):e==="y"&&(E=E.replace(/x[0-9]*/,"")),t[Z.id2name(E)]},Z.getFromTrace=function(S,E,e){var t=S._fullLayout,r=null;if(G.traceIs(E,"gl3d")){var o=E.scene;o.slice(0,5)==="scene"&&(r=t[o][e+"axis"])}else r=Z.getFromId(S,E[e+"axis"]||e);return r},Z.idSort=function(S,E){var e=S.charAt(0),t=E.charAt(0);return e!==t?e>t?1:-1:+(S.slice(1)||1)-+(E.slice(1)||1)},Z.ref2id=function(S){return/^[xyz]/.test(S)?S.split(" ")[0]:!1};function x(S,E){if(E&&E.length){for(var e=0;e<E.length;e++)if(E[e][S])return!0}return!1}Z.isLinked=function(S,E){return x(E,S._axisMatchGroups)||x(E,S._axisConstraintGroups)}}}),$m=Xe({"src/components/shapes/handle_outline.js"(Z,G){"use strict";function v(S){var E=S._fullLayout._zoomlayer;E&&E.selectAll(".outline-controllers").remove()}function x(S){var E=S._fullLayout._zoomlayer;E&&E.selectAll(".select-outline").remove(),S._fullLayout._outlining=!1}G.exports={clearOutlineControllers:v,clearOutline:x}}}),_2=Xe({"src/traces/scatter/layout_attributes.js"(Z,G){"use strict";G.exports={scattermode:{valType:"enumerated",values:["group","overlay"],dflt:"overlay",editType:"calc"},scattergap:{valType:"number",min:0,max:1,editType:"calc"}}}}),Hh=Xe({"src/plots/get_data.js"(Z){"use strict";var G=so(),v=lh().SUBPLOT_PATTERN;Z.getSubplotCalcData=function(x,S,E){var e=G.subplotsRegistry[S];if(!e)return[];for(var t=e.attr,r=[],o=0;o<x.length;o++){var a=x[o],n=a[0].trace;n[t]===E&&r.push(a)}return r},Z.getModuleCalcData=function(x,S,E){var e=[],t=[],r;if(typeof S=="string"?r=G.getModule(S).plot:typeof S=="function"?r=S:r=S.plot,!r)return[e,x];for(var o=E,a=0;a<x.length;a++){var n=x[a],i=n[0].trace,s=i.zorder!==void 0;i.visible!==!0||i._length===0||(i._module&&i._module.plot===r&&(!s||i.zorder===o)?e.push(n):t.push(n))}return[e,t]},Z.getSubplotData=function(S,E,e){if(!G.subplotsRegistry[E])return[];for(var t=G.subplotsRegistry[E].attr,r=[],o,a,n,i=0;i<S.length;i++)o=S[i],o[t]===e&&r.push(o);return r}}}),nz=Xe({"src/plots/command.js"(Z){"use strict";var G=so(),v=sa();Z.manageCommandObserver=function(r,o,a,n){var i={},s=!0;o&&o._commandObserver&&(i=o._commandObserver),i.cache||(i.cache={}),i.lookupTable={};var h=Z.hasSimpleAPICommandBindings(r,a,i.lookupTable);if(o&&o._commandObserver){if(h)return i;if(o._commandObserver.remove)return o._commandObserver.remove(),o._commandObserver=null,i}if(h){x(r,h,i.cache),i.check=function(){if(s){var T=x(r,h,i.cache);return T.changed&&n&&i.lookupTable[T.value]!==void 0&&(i.disable(),Promise.resolve(n({value:T.value,type:h.type,prop:h.prop,traces:h.traces,index:i.lookupTable[T.value]})).then(i.enable,i.enable)),T.changed}};for(var c=["plotly_relayout","plotly_redraw","plotly_restyle","plotly_update","plotly_animatingframe","plotly_afterplot"],m=0;m<c.length;m++)r._internalOn(c[m],i.check);i.remove=function(){for(var p=0;p<c.length;p++)r._removeInternalListener(c[p],i.check)}}else v.log("Unable to automatically bind plot updates to API command"),i.lookupTable={},i.remove=function(){};return i.disable=function(){s=!1},i.enable=function(){s=!0},o&&(o._commandObserver=i),i},Z.hasSimpleAPICommandBindings=function(r,o,a){var n,i=o.length,s;for(n=0;n<i;n++){var h,c=o[n],m=c.method,p=c.args;if(Array.isArray(p)||(p=[]),!m)return!1;var T=Z.computeAPICommandBindings(r,m,p);if(T.length!==1)return!1;if(!s)s=T[0],Array.isArray(s.traces)&&s.traces.sort();else{if(h=T[0],h.type!==s.type||h.prop!==s.prop)return!1;if(Array.isArray(s.traces))if(Array.isArray(h.traces)){h.traces.sort();for(var l=0;l<s.traces.length;l++)if(s.traces[l]!==h.traces[l])return!1}else return!1;else if(h.prop!==s.prop)return!1}h=T[0];var _=h.value;if(Array.isArray(_))if(_.length===1)_=_[0];else return!1;a&&(a[_]=n)}return s};function x(r,o,a){var n,i,s,h=!1;if(o.type==="data")n=r._fullData[o.traces!==null?o.traces[0]:0];else if(o.type==="layout")n=r._fullLayout;else return!1;return i=v.nestedProperty(n,o.prop).get(),s=a[o.type]=a[o.type]||{},s.hasOwnProperty(o.prop)&&s[o.prop]!==i&&(h=!0),s[o.prop]=i,{changed:h,value:i}}Z.executeAPICommand=function(r,o,a){if(o==="skip")return Promise.resolve();var n=G.apiMethodRegistry[o],i=[r];Array.isArray(a)||(a=[]);for(var s=0;s<a.length;s++)i.push(a[s]);return n.apply(null,i).catch(function(h){return v.warn("API call to Plotly."+o+" rejected.",h),Promise.reject(h)})},Z.computeAPICommandBindings=function(r,o,a){var n;switch(Array.isArray(a)||(a=[]),o){case"restyle":n=e(r,a);break;case"relayout":n=E(r,a);break;case"update":n=e(r,[a[0],a[2]]).concat(E(r,[a[1]]));break;case"animate":n=S(r,a);break;default:n=[]}return n};function S(r,o){return Array.isArray(o[0])&&o[0].length===1&&["string","number"].indexOf(typeof o[0][0])!==-1?[{type:"layout",prop:"_currentFrame",value:o[0][0].toString()}]:[]}function E(r,o){var a=[],n=o[0],i={};if(typeof n=="string")i[n]=o[1];else if(v.isPlainObject(n))i=n;else return a;return t(i,function(s,h,c){a.push({type:"layout",prop:s,value:c})},"",0),a}function e(r,o){var a,n,i,s,h=[];if(n=o[0],i=o[1],a=o[2],s={},typeof n=="string")s[n]=i;else if(v.isPlainObject(n))s=n,a===void 0&&(a=i);else return h;return a===void 0&&(a=null),t(s,function(c,m,p){var T,l;if(Array.isArray(p)){l=p.slice();var _=Math.min(l.length,r.data.length);a&&(_=Math.min(_,a.length)),T=[];for(var w=0;w<_;w++)T[w]=a?a[w]:w}else l=p,T=a?a.slice():null;if(T===null)Array.isArray(l)&&(l=l[0]);else if(Array.isArray(T)){if(!Array.isArray(l)){var A=l;l=[];for(var M=0;M<T.length;M++)l[M]=A}l.length=Math.min(T.length,l.length)}h.push({type:"data",prop:c,traces:T,value:l})},"",0),h}function t(r,o,a,n){Object.keys(r).forEach(function(i){var s=r[i];if(i[0]!=="_"){var h=a+(n>0?".":"")+i;v.isPlainObject(s)?t(s,o,h,n+1):o(h,i,s)}})}}}),bc=Xe({"src/plots/plots.js"(Z,G){"use strict";var v=Hn(),x=Xv().timeFormatLocale,S=YA().formatLocale,E=rs(),e=KA(),t=so(),r=e1(),o=zl(),a=sa(),n=$n(),i=Hs().BADNUM,s=ef(),h=$m().clearOutline,c=_2(),m=A_(),p=n5(),T=Hh().getModuleCalcData,l=a.relinkPrivateKeys,_=a._,w=G.exports={};a.extendFlat(w,t),w.attributes=ru(),w.attributes.type.values=w.allTypes,w.fontAttrs=tc(),w.layoutAttributes=$y();var A=nz();w.executeAPICommand=A.executeAPICommand,w.computeAPICommandBindings=A.computeAPICommandBindings,w.manageCommandObserver=A.manageCommandObserver,w.hasSimpleAPICommandBindings=A.hasSimpleAPICommandBindings,w.redrawText=function(V){return V=a.getGraphDiv(V),new Promise(function(Y){setTimeout(function(){V._fullLayout&&(t.getComponentMethod("annotations","draw")(V),t.getComponentMethod("legend","draw")(V),t.getComponentMethod("colorbar","draw")(V),Y(w.previousPromises(V)))},300)})},w.resize=function(V){V=a.getGraphDiv(V);var Y,ee=new Promise(function(q,oe){(!V||a.isHidden(V))&&oe(new Error("Resize must be passed a displayed plot div element.")),V._redrawTimer&&clearTimeout(V._redrawTimer),V._resolveResize&&(Y=V._resolveResize),V._resolveResize=q,V._redrawTimer=setTimeout(function(){if(!V.layout||V.layout.width&&V.layout.height||a.isHidden(V)){q(V);return}delete V.layout.width,delete V.layout.height;var ae=V.changed;V.autoplay=!0,t.call("relayout",V,{autosize:!0}).then(function(){V.changed=ae,V._resolveResize===q&&(delete V._resolveResize,q(V))})},100)});return Y&&Y(ee),ee},w.previousPromises=function(V){if((V._promises||[]).length)return Promise.all(V._promises).then(function(){V._promises=[]})},w.addLinks=function(V){if(!(!V._context.showLink&&!V._context.showSources)){var Y=V._fullLayout,ee=a.ensureSingle(Y._paper,"text","js-plot-link-container",function(re){re.style({"font-family":'"Open Sans", Arial, sans-serif',"font-size":"12px",fill:n.defaultLine,"pointer-events":"all"}).each(function(){var ce=v.select(this);ce.append("tspan").classed("js-link-to-tool",!0),ce.append("tspan").classed("js-link-spacer",!0),ce.append("tspan").classed("js-sourcelinks",!0)})}),q=ee.node(),oe={y:Y._paper.attr("height")-9};document.body.contains(q)&&q.getComputedTextLength()>=Y.width-20?(oe["text-anchor"]="start",oe.x=5):(oe["text-anchor"]="end",oe.x=Y._paper.attr("width")-7),ee.attr(oe);var ae=ee.select(".js-link-to-tool"),j=ee.select(".js-link-spacer"),Q=ee.select(".js-sourcelinks");V._context.showSources&&V._context.showSources(V),V._context.showLink&&M(V,ae),j.text(ae.text()&&Q.text()?" - ":"")}};function M(V,Y){Y.text("");var ee=Y.append("a").attr({"xlink:xlink:href":"#",class:"link--impt link--embedview","font-weight":"bold"}).text(V._context.linkText+" \xBB");if(V._context.sendData)ee.on("click",function(){w.sendDataToCloud(V)});else{var q=window.location.pathname.split("/"),oe=window.location.search;ee.attr({"xlink:xlink:show":"new","xlink:xlink:href":"/"+q[2].split(".")[0]+"/"+q[1]+oe})}}w.sendDataToCloud=function(V){var Y=(window.PLOTLYENV||{}).BASE_URL||V._context.plotlyServerURL;if(Y){V.emit("plotly_beforeexport");var ee=v.select(V).append("div").attr("id","hiddenform").style("display","none"),q=ee.append("form").attr({action:Y+"/external",method:"post",target:"_blank"}),oe=q.append("input").attr({type:"text",name:"data"});return oe.node().value=w.graphJson(V,!1,"keepdata"),q.node().submit(),ee.remove(),V.emit("plotly_afterexport"),!1}};var g=["days","shortDays","months","shortMonths","periods","dateTime","date","time","decimal","thousands","grouping","currency"],b=["year","month","dayMonth","dayMonthYear"];w.supplyDefaults=function(V,Y){var ee=Y&&Y.skipUpdateCalc,q=V._fullLayout||{};if(q._skipDefaults){delete q._skipDefaults;return}var oe=V._fullLayout={},ae=V.layout||{},j=V._fullData||[],Q=V._fullData=[],re=V.data||[],ce=V.calcdata||[],be=V._context||{},Ae;V._transitionData||w.createTransitionData(V),oe._dfltTitle={plot:_(V,"Click to enter Plot title"),subtitle:_(V,"Click to enter Plot subtitle"),x:_(V,"Click to enter X axis title"),y:_(V,"Click to enter Y axis title"),colorbar:_(V,"Click to enter Colorscale title"),annotation:_(V,"new text")},oe._traceWord=_(V,"trace");var De=y(V,g);if(oe._mapboxAccessToken=be.mapboxAccessToken,q._initialAutoSizeIsDone){var ze=q.width,Ze=q.height;w.supplyLayoutGlobalDefaults(ae,oe,De),ae.width||(oe.width=ze),ae.height||(oe.height=Ze),w.sanitizeMargins(oe)}else{w.supplyLayoutGlobalDefaults(ae,oe,De);var at=!ae.width||!ae.height,nt=oe.autosize,rt=be.autosizable,st=at&&(nt||rt);st?w.plotAutoSize(V,ae,oe):at&&w.sanitizeMargins(oe),!nt&&at&&(ae.width=oe.width,ae.height=oe.height)}oe._d3locale=f(De,oe.separators),oe._extraFormat=y(V,b),oe._initialAutoSizeIsDone=!0,oe._dataLength=re.length,oe._modules=[],oe._visibleModules=[],oe._basePlotModules=[];var Me=oe._subplots=u(),ye=oe._splomAxes={x:{},y:{}},he=oe._splomSubplots={};oe._splomGridDflt={},oe._scatterStackOpts={},oe._firstScatter={},oe._alignmentOpts={},oe._colorAxes={},oe._requestRangeslider={},oe._traceUids=d(j,re),w.supplyDataDefaults(re,Q,ae,oe);var Oe=Object.keys(ye.x),tt=Object.keys(ye.y);if(Oe.length>1&&tt.length>1){for(t.getComponentMethod("grid","sizeDefaults")(ae,oe),Ae=0;Ae<Oe.length;Ae++)a.pushUnique(Me.xaxis,Oe[Ae]);for(Ae=0;Ae<tt.length;Ae++)a.pushUnique(Me.yaxis,tt[Ae]);for(var ot in he)a.pushUnique(Me.cartesian,ot)}if(oe._has=w._hasPlotType.bind(oe),j.length===Q.length)for(Ae=0;Ae<Q.length;Ae++)l(Q[Ae],j[Ae]);w.supplyLayoutModuleDefaults(ae,oe,Q,V._transitionData);var Qe=oe._visibleModules,Pt=[];for(Ae=0;Ae<Qe.length;Ae++){var It=Qe[Ae].crossTraceDefaults;It&&a.pushUnique(Pt,It)}for(Ae=0;Ae<Pt.length;Ae++)Pt[Ae](Q,oe);oe._hasOnlyLargeSploms=oe._basePlotModules.length===1&&oe._basePlotModules[0].name==="splom"&&Oe.length>15&&tt.length>15&&oe.shapes.length===0&&oe.images.length===0,w.linkSubplots(Q,oe,j,q),w.cleanPlot(Q,oe,j,q);var qt=!!(q._has&&q._has("cartesian")),Wt=!!(oe._has&&oe._has("cartesian")),kr=qt,mr=Wt;kr&&!mr?q._bgLayer.remove():mr&&!kr&&(oe._shouldCreateBgLayer=!0),q._zoomlayer&&!V._dragging&&h({_fullLayout:q}),R(Q,oe),l(oe,q),t.getComponentMethod("colorscale","crossTraceDefaults")(Q,oe),oe._preGUI||(oe._preGUI={}),oe._tracePreGUI||(oe._tracePreGUI={});var qr=oe._tracePreGUI,Sr={},Rr;for(Rr in qr)Sr[Rr]="old";for(Ae=0;Ae<Q.length;Ae++)Rr=Q[Ae]._fullInput.uid,Sr[Rr]||(qr[Rr]={}),Sr[Rr]="new";for(Rr in Sr)Sr[Rr]==="old"&&delete qr[Rr];F(oe),t.getComponentMethod("rangeslider","makeData")(oe),!ee&&ce.length===Q.length&&w.supplyDefaultsUpdateCalc(ce,Q)},w.supplyDefaultsUpdateCalc=function(V,Y){for(var ee=0;ee<Y.length;ee++){var q=Y[ee],oe=(V[ee]||[])[0];if(oe&&oe.trace){var ae=oe.trace;if(ae._hasCalcTransform){var j=ae._arrayAttrs,Q,re,ce;for(Q=0;Q<j.length;Q++)re=j[Q],ce=a.nestedProperty(ae,re).get().slice(),a.nestedProperty(q,re).set(ce)}oe.trace=q}}};function d(V,Y){var ee=Y.length,q=[],oe,ae;for(oe=0;oe<V.length;oe++){var j=V[oe]._fullInput;j!==ae&&q.push(j),ae=j}var Q=q.length,re=new Array(ee),ce={};function be(ze,Ze){re[Ze]=ze,ce[ze]=1}function Ae(ze,Ze){if(ze&&typeof ze=="string"&&!ce[ze])return be(ze,Ze),!0}for(oe=0;oe<ee;oe++){var De=Y[oe].uid;typeof De=="number"&&(De=String(De)),!Ae(De,oe)&&(oe<Q&&Ae(q[oe].uid,oe)||be(a.randstr(ce),oe))}return re}function u(){var V=t.collectableSubplotTypes,Y={},ee,q;if(!V){V=[];var oe=t.subplotsRegistry;for(var ae in oe){var j=oe[ae],Q=j.attr;if(Q&&(V.push(ae),Array.isArray(Q)))for(q=0;q<Q.length;q++)a.pushUnique(V,Q[q])}}for(ee=0;ee<V.length;ee++)Y[V[ee]]=[];return Y}function y(V,Y){var ee=V._context.locale;ee||(ee="en-US");var q=!1,oe={};function ae(Ae){for(var De=!0,ze=0;ze<Y.length;ze++){var Ze=Y[ze];oe[Ze]||(Ae[Ze]?oe[Ze]=Ae[Ze]:De=!1)}De&&(q=!0)}for(var j=0;j<2;j++){for(var Q=V._context.locales,re=0;re<2;re++){var ce=(Q[ee]||{}).format;if(ce&&(ae(ce),q))break;Q=t.localeRegistry}var be=ee.split("-")[0];if(q||be===ee)break;ee=be}return q||ae(t.localeRegistry.en.format),oe}function f(V,Y){return V.decimal=Y.charAt(0),V.thousands=Y.charAt(1),{numberFormat:function(ee){try{ee=S(V).format(a.adjustFormat(ee))}catch{return a.warnBadFormat(ee),a.noFormat}return ee},timeFormat:x(V).utcFormat}}function R(V,Y){var ee,q=[];Y.meta&&(ee=Y._meta={meta:Y.meta,layout:{meta:Y.meta}});for(var oe=0;oe<V.length;oe++){var ae=V[oe];ae.meta?q[ae.index]=ae._meta={meta:ae.meta}:Y.meta&&(ae._meta={meta:Y.meta}),Y.meta&&(ae._meta.layout={meta:Y.meta})}q.length&&(ee||(ee=Y._meta={}),ee.data=q)}w.createTransitionData=function(V){V._transitionData||(V._transitionData={}),V._transitionData._frames||(V._transitionData._frames=[]),V._transitionData._frameHash||(V._transitionData._frameHash={}),V._transitionData._counter||(V._transitionData._counter=0),V._transitionData._interruptCallbacks||(V._transitionData._interruptCallbacks=[])},w._hasPlotType=function(V){var Y,ee=this._basePlotModules||[];for(Y=0;Y<ee.length;Y++)if(ee[Y].name===V)return!0;var q=this._modules||[];for(Y=0;Y<q.length;Y++){var oe=q[Y].name;if(oe===V)return!0;var ae=t.modules[oe];if(ae&&ae.categories[V])return!0}return!1},w.cleanPlot=function(V,Y,ee,q){var oe,ae,j=q._basePlotModules||[];for(oe=0;oe<j.length;oe++){var Q=j[oe];Q.clean&&Q.clean(V,Y,ee,q)}var re=q._has&&q._has("gl"),ce=Y._has&&Y._has("gl");re&&!ce&&q._glcontainer!==void 0&&(q._glcontainer.selectAll(".gl-canvas").remove(),q._glcontainer.selectAll(".no-webgl").remove(),q._glcanvas=null);var be=!!q._infolayer;e:for(oe=0;oe<ee.length;oe++){var Ae=ee[oe],De=Ae.uid;for(ae=0;ae<V.length;ae++){var ze=V[ae];if(De===ze.uid)continue e}be&&q._infolayer.select(".cb"+De).remove()}},w.linkSubplots=function(V,Y,ee,q){var oe,ae,j=q._plots||{},Q=Y._plots={},re=Y._subplots,ce={_fullData:V,_fullLayout:Y},be=re.cartesian||[];for(oe=0;oe<be.length;oe++){var Ae=be[oe],De=j[Ae],ze=s.getFromId(ce,Ae,"x"),Ze=s.getFromId(ce,Ae,"y"),at;for(De?at=Q[Ae]=De:(at=Q[Ae]={},at.id=Ae),ze._counterAxes.push(Ze._id),Ze._counterAxes.push(ze._id),ze._subplotsWith.push(Ae),Ze._subplotsWith.push(Ae),at.xaxis=ze,at.yaxis=Ze,at._hasClipOnAxisFalse=!1,ae=0;ae<V.length;ae++){var nt=V[ae];if(nt.xaxis===at.xaxis._id&&nt.yaxis===at.yaxis._id&&nt.cliponaxis===!1){at._hasClipOnAxisFalse=!0;break}}}var rt=s.list(ce,null,!0),st;for(oe=0;oe<rt.length;oe++){st=rt[oe];var Me=null;st.overlaying&&(Me=s.getFromId(ce,st.overlaying),Me&&Me.overlaying&&(st.overlaying=!1,Me=null)),st._mainAxis=Me||st,Me&&(st.domain=Me.domain.slice()),st._anchorAxis=st.anchor==="free"?null:s.getFromId(ce,st.anchor)}for(oe=0;oe<rt.length;oe++)if(st=rt[oe],st._counterAxes.sort(s.idSort),st._subplotsWith.sort(a.subplotSort),st._mainSubplot=L(st,Y),st._counterAxes.length&&(st.spikemode&&st.spikemode.indexOf("across")!==-1||st.automargin&&st.mirror&&st.anchor!=="free"||t.getComponentMethod("rangeslider","isVisible")(st))){var ye=1,he=0;for(ae=0;ae<st._counterAxes.length;ae++){var Oe=s.getFromId(ce,st._counterAxes[ae]);ye=Math.min(ye,Oe.domain[0]),he=Math.max(he,Oe.domain[1])}ye<he&&(st._counterDomainMin=ye,st._counterDomainMax=he)}};function L(V,Y){var ee={_fullLayout:Y},q=V._id.charAt(0)==="x",oe=V._mainAxis._anchorAxis,ae="",j="",Q="";if(oe&&(Q=oe._mainAxis._id,ae=q?V._id+Q:Q+V._id),!ae||!Y._plots[ae]){ae="";for(var re=V._counterAxes,ce=0;ce<re.length;ce++){var be=re[ce],Ae=q?V._id+be:be+V._id;j||(j=Ae);var De=s.getFromId(ee,be);if(Q&&De.overlaying===Q){ae=Ae;break}}}return ae||j}w.clearExpandedTraceDefaultColors=function(V){var Y,ee,q;function oe(j,Q,re,ce){ee[ce]=Q,ee.length=ce+1,j.valType==="color"&&j.dflt===void 0&&Y.push(ee.join("."))}for(ee=[],Y=V._module._colorAttrs,Y||(V._module._colorAttrs=Y=[],r.crawl(V._module.attributes,oe)),q=0;q<Y.length;q++){var ae=a.nestedProperty(V,"_input."+Y[q]);ae.get()||a.nestedProperty(V,Y[q]).set(null)}},w.supplyDataDefaults=function(V,Y,ee,q){var oe=q._modules,ae=q._visibleModules,j=q._basePlotModules,Q=0,re=0,ce,be,Ae;q._transformModules=[];function De(st){Y.push(st);var Me=st._module;Me&&(a.pushUnique(oe,Me),st.visible===!0&&a.pushUnique(ae,Me),a.pushUnique(j,st._module.basePlotModule),Q++,st._input.visible!==!1&&re++)}var ze={},Ze=[],at=(ee.template||{}).data||{},nt=o.traceTemplater(at);for(ce=0;ce<V.length;ce++)Ae=V[ce],be=nt.newTrace(Ae),be.uid=q._traceUids[ce],w.supplyTraceDefaults(Ae,be,re,q,ce),be.index=ce,be._input=Ae,be._fullInput=be,De(be),t.traceIs(be,"carpetAxis")&&(ze[be.carpet]=be),t.traceIs(be,"carpetDependent")&&Ze.push(ce);for(ce=0;ce<Ze.length;ce++)if(be=Y[Ze[ce]],!!be.visible){var rt=ze[be.carpet];if(be._carpet=rt,!rt||!rt.visible){be.visible=!1;continue}be.xaxis=rt.xaxis,be.yaxis=rt.yaxis}},w.supplyAnimationDefaults=function(V){V=V||{};var Y,ee={};function q(oe,ae){return a.coerce(V||{},ee,m,oe,ae)}if(q("mode"),q("direction"),q("fromcurrent"),Array.isArray(V.frame))for(ee.frame=[],Y=0;Y<V.frame.length;Y++)ee.frame[Y]=w.supplyAnimationFrameDefaults(V.frame[Y]||{});else ee.frame=w.supplyAnimationFrameDefaults(V.frame||{});if(Array.isArray(V.transition))for(ee.transition=[],Y=0;Y<V.transition.length;Y++)ee.transition[Y]=w.supplyAnimationTransitionDefaults(V.transition[Y]||{});else ee.transition=w.supplyAnimationTransitionDefaults(V.transition||{});return ee},w.supplyAnimationFrameDefaults=function(V){var Y={};function ee(q,oe){return a.coerce(V||{},Y,m.frame,q,oe)}return ee("duration"),ee("redraw"),Y},w.supplyAnimationTransitionDefaults=function(V){var Y={};function ee(q,oe){return a.coerce(V||{},Y,m.transition,q,oe)}return ee("duration"),ee("easing"),Y},w.supplyFrameDefaults=function(V){var Y={};function ee(q,oe){return a.coerce(V,Y,p,q,oe)}return ee("group"),ee("name"),ee("traces"),ee("baseframe"),ee("data"),ee("layout"),Y},w.supplyTraceDefaults=function(V,Y,ee,q,oe){var ae=q.colorway||n.defaults,j=ae[ee%ae.length],Q;function re(Me,ye){return a.coerce(V,Y,w.attributes,Me,ye)}var ce=re("visible");re("type"),re("name",q._traceWord+" "+oe),re("uirevision",q.uirevision);var be=w.getModule(Y);if(Y._module=be,be){var Ae=be.basePlotModule,De=Ae.attr,ze=Ae.attributes;if(De&&ze){var Ze=q._subplots,at="";if(Array.isArray(De))for(Q=0;Q<De.length;Q++){var nt=De[Q],rt=a.coerce(V,Y,ze,nt);Ze[nt]&&a.pushUnique(Ze[nt],rt),at+=rt}else at=a.coerce(V,Y,ze,De);Ze[Ae.name]&&a.pushUnique(Ze[Ae.name],at)}}if(ce&&(re("customdata"),re("ids"),re("meta"),t.traceIs(Y,"showLegend")?(a.coerce(V,Y,be.attributes.showlegend?be.attributes:w.attributes,"showlegend"),a.coerce(V,Y,be.attributes.legend?be.attributes:w.attributes,"legend"),re("legendwidth"),re("legendgroup"),re("legendgrouptitle.text"),re("legendrank"),Y._dfltShowLegend=!0):Y._dfltShowLegend=!1,be&&be.supplyDefaults(V,Y,j,q),t.traceIs(Y,"noOpacity")||re("opacity"),t.traceIs(Y,"notLegendIsolatable")&&(Y.visible=!!Y.visible),t.traceIs(Y,"noHover")||(Y.hovertemplate||a.coerceHoverinfo(V,Y,q),Y.type!=="parcats"&&t.getComponentMethod("fx","supplyDefaults")(V,Y,j,q)),be&&be.selectPoints)){var st=re("selectedpoints");a.isTypedArray(st)&&(Y.selectedpoints=Array.from(st))}return Y},w.supplyLayoutGlobalDefaults=function(V,Y,ee){function q(Ae,De){return a.coerce(V,Y,w.layoutAttributes,Ae,De)}var oe=V.template;a.isPlainObject(oe)&&(Y.template=oe,Y._template=oe.layout,Y._dataTemplate=oe.data),q("autotypenumbers");var ae=a.coerceFont(q,"font"),j=ae.size;a.coerceFont(q,"title.font",ae,{overrideDflt:{size:Math.round(j*1.4)}}),q("title.text",Y._dfltTitle.plot),q("title.xref");var Q=q("title.yref");q("title.pad.t"),q("title.pad.r"),q("title.pad.b"),q("title.pad.l");var re=q("title.automargin");q("title.x"),q("title.xanchor"),q("title.y"),q("title.yanchor"),q("title.subtitle.text",Y._dfltTitle.subtitle),a.coerceFont(q,"title.subtitle.font",ae,{overrideDflt:{size:Math.round(Y.title.font.size*.7)}}),re&&(Q==="paper"&&(Y.title.y!==0&&(Y.title.y=1),Y.title.yanchor==="auto"&&(Y.title.yanchor=Y.title.y===0?"top":"bottom")),Q==="container"&&(Y.title.y==="auto"&&(Y.title.y=1),Y.title.yanchor==="auto"&&(Y.title.yanchor=Y.title.y<.5?"bottom":"top")));var ce=q("uniformtext.mode");ce&&q("uniformtext.minsize"),q("autosize",!(V.width&&V.height)),q("width"),q("height"),q("minreducedwidth"),q("minreducedheight"),q("margin.l"),q("margin.r"),q("margin.t"),q("margin.b"),q("margin.pad"),q("margin.autoexpand"),V.width&&V.height&&w.sanitizeMargins(Y),t.getComponentMethod("grid","sizeDefaults")(V,Y),q("paper_bgcolor"),q("separators",ee.decimal+ee.thousands),q("hidesources"),q("colorway"),q("datarevision");var be=q("uirevision");q("editrevision",be),q("selectionrevision",be),t.getComponentMethod("modebar","supplyLayoutDefaults")(V,Y),t.getComponentMethod("shapes","supplyDrawNewShapeDefaults")(V,Y,q),t.getComponentMethod("selections","supplyDrawNewSelectionDefaults")(V,Y,q),q("meta"),a.isPlainObject(V.transition)&&(q("transition.duration"),q("transition.easing"),q("transition.ordering")),t.getComponentMethod("calendars","handleDefaults")(V,Y,"calendar"),t.getComponentMethod("fx","supplyLayoutGlobalDefaults")(V,Y,q),a.coerce(V,Y,c,"scattermode")};function z(V){return typeof V=="string"&&V.slice(-2)==="px"&&parseFloat(V)}w.plotAutoSize=function(Y,ee,q){var oe=Y._context||{},ae=oe.frameMargins,j,Q,re=a.isPlotDiv(Y);if(re&&Y.emit("plotly_autosize"),oe.fillFrame)j=window.innerWidth,Q=window.innerHeight,document.body.style.overflow="hidden";else{var ce=re?window.getComputedStyle(Y):{};if(j=z(ce.width)||z(ce.maxWidth)||q.width,Q=z(ce.height)||z(ce.maxHeight)||q.height,E(ae)&&ae>0){var be=1-2*ae;j=Math.round(be*j),Q=Math.round(be*Q)}}var Ae=w.layoutAttributes.width.min,De=w.layoutAttributes.height.min;j<Ae&&(j=Ae),Q<De&&(Q=De);var ze=!ee.width&&Math.abs(q.width-j)>1,Ze=!ee.height&&Math.abs(q.height-Q)>1;(Ze||ze)&&(ze&&(q.width=j),Ze&&(q.height=Q)),Y._initialAutoSize||(Y._initialAutoSize={width:j,height:Q}),w.sanitizeMargins(q)},w.supplyLayoutModuleDefaults=function(V,Y,ee,q){var oe=t.componentsRegistry,ae=Y._basePlotModules,j,Q,re,ce=t.subplotsRegistry.cartesian;for(j in oe)re=oe[j],re.includeBasePlot&&re.includeBasePlot(V,Y);ae.length||ae.push(ce),Y._has("cartesian")&&(t.getComponentMethod("grid","contentDefaults")(V,Y),ce.finalizeSubplots(V,Y));for(var be in Y._subplots)Y._subplots[be].sort(a.subplotSort);for(Q=0;Q<ae.length;Q++)re=ae[Q],re.supplyLayoutDefaults&&re.supplyLayoutDefaults(V,Y,ee);var Ae=Y._modules;for(Q=0;Q<Ae.length;Q++)re=Ae[Q],re.supplyLayoutDefaults&&re.supplyLayoutDefaults(V,Y,ee);var De=Y._transformModules;for(Q=0;Q<De.length;Q++)re=De[Q],re.supplyLayoutDefaults&&re.supplyLayoutDefaults(V,Y,ee,q);for(j in oe)re=oe[j],re.supplyLayoutDefaults&&re.supplyLayoutDefaults(V,Y,ee)},w.purge=function(V){var Y=V._fullLayout||{};Y._glcontainer!==void 0&&(Y._glcontainer.selectAll(".gl-canvas").remove(),Y._glcontainer.remove(),Y._glcanvas=null),Y._modeBar&&Y._modeBar.destroy(),V._transitionData&&(V._transitionData._interruptCallbacks&&(V._transitionData._interruptCallbacks.length=0),V._transitionData._animationRaf&&window.cancelAnimationFrame(V._transitionData._animationRaf)),a.clearThrottle(),a.clearResponsive(V),delete V.data,delete V.layout,delete V._fullData,delete V._fullLayout,delete V.calcdata,delete V.empty,delete V.fid,delete V.undoqueue,delete V.undonum,delete V.autoplay,delete V.changed,delete V._promises,delete V._redrawTimer,delete V._hmlumcount,delete V._hmpixcount,delete V._transitionData,delete V._transitioning,delete V._initialAutoSize,delete V._transitioningWithDuration,delete V._dragging,delete V._dragged,delete V._dragdata,delete V._hoverdata,delete V._snapshotInProgress,delete V._editing,delete V._mouseDownTime,delete V._legendMouseDownTime,V.removeAllListeners&&V.removeAllListeners()},w.style=function(V){var Y=V._fullLayout._visibleModules,ee=[],q;for(q=0;q<Y.length;q++){var oe=Y[q];oe.style&&a.pushUnique(ee,oe.style)}for(q=0;q<ee.length;q++)ee[q](V)},w.sanitizeMargins=function(V){if(!(!V||!V.margin)){var Y=V.width,ee=V.height,q=V.margin,oe=Y-(q.l+q.r),ae=ee-(q.t+q.b),j;oe<0&&(j=(Y-1)/(q.l+q.r),q.l=Math.floor(j*q.l),q.r=Math.floor(j*q.r)),ae<0&&(j=(ee-1)/(q.t+q.b),q.t=Math.floor(j*q.t),q.b=Math.floor(j*q.b))}},w.clearAutoMarginIds=function(V){V._fullLayout._pushmarginIds={}},w.allowAutoMargin=function(V,Y){V._fullLayout._pushmarginIds[Y]=1};function F(V){var Y=V.margin;if(!V._size){var ee=V._size={l:Math.round(Y.l),r:Math.round(Y.r),t:Math.round(Y.t),b:Math.round(Y.b),p:Math.round(Y.pad)};ee.w=Math.round(V.width)-ee.l-ee.r,ee.h=Math.round(V.height)-ee.t-ee.b}V._pushmargin||(V._pushmargin={}),V._pushmarginIds||(V._pushmarginIds={}),V._reservedMargin||(V._reservedMargin={})}var N=2,O=2;w.autoMargin=function(V,Y,ee){var q=V._fullLayout,oe=q.width,ae=q.height,j=q.margin,Q=q.minreducedwidth,re=q.minreducedheight,ce=a.constrain(oe-j.l-j.r,N,Q),be=a.constrain(ae-j.t-j.b,O,re),Ae=Math.max(0,oe-ce),De=Math.max(0,ae-be),ze=q._pushmargin,Ze=q._pushmarginIds;if(j.autoexpand!==!1){if(!ee)delete ze[Y],delete Ze[Y];else{var at=ee.pad;if(at===void 0&&(at=Math.min(12,j.l,j.r,j.t,j.b)),Ae){var nt=(ee.l+ee.r)/Ae;nt>1&&(ee.l/=nt,ee.r/=nt)}if(De){var rt=(ee.t+ee.b)/De;rt>1&&(ee.t/=rt,ee.b/=rt)}var st=ee.xl!==void 0?ee.xl:ee.x,Me=ee.xr!==void 0?ee.xr:ee.x,ye=ee.yt!==void 0?ee.yt:ee.y,he=ee.yb!==void 0?ee.yb:ee.y;ze[Y]={l:{val:st,size:ee.l+at},r:{val:Me,size:ee.r+at},b:{val:he,size:ee.b+at},t:{val:ye,size:ee.t+at}},Ze[Y]=1}if(!q._replotting)return w.doAutoMargin(V)}};function P(V){if("_redrawFromAutoMarginCount"in V._fullLayout)return!1;var Y=s.list(V,"",!0);for(var ee in Y)if(Y[ee].autoshift||Y[ee].shift)return!0;return!1}w.doAutoMargin=function(V){var Y=V._fullLayout,ee=Y.width,q=Y.height;Y._size||(Y._size={}),F(Y);var oe=Y._size,ae=Y.margin,j={t:0,b:0,l:0,r:0},Q=a.extendFlat({},oe),re=ae.l,ce=ae.r,be=ae.t,Ae=ae.b,De=Y._pushmargin,ze=Y._pushmarginIds,Ze=Y.minreducedwidth,at=Y.minreducedheight;if(ae.autoexpand!==!1){for(var nt in De)ze[nt]||delete De[nt];var rt=V._fullLayout._reservedMargin;for(var st in rt)for(var Me in rt[st]){var ye=rt[st][Me];j[Me]=Math.max(j[Me],ye)}De.base={l:{val:0,size:re},r:{val:1,size:ce},t:{val:1,size:be},b:{val:0,size:Ae}};for(var he in j){var Oe=0;for(var tt in De)tt!=="base"&&E(De[tt][he].size)&&(Oe=De[tt][he].size>Oe?De[tt][he].size:Oe);var ot=Math.max(0,ae[he]-Oe);j[he]=Math.max(0,j[he]-ot)}for(var Qe in De){var Pt=De[Qe].l||{},It=De[Qe].b||{},qt=Pt.val,Wt=Pt.size,kr=It.val,mr=It.size,qr=ee-j.r-j.l,Sr=q-j.t-j.b;for(var Rr in De){if(E(Wt)&&De[Rr].r){var wt=De[Rr].r.val,Ne=De[Rr].r.size;if(wt>qt){var Ke=(Wt*wt+(Ne-qr)*qt)/(wt-qt),Te=(Ne*(1-qt)+(Wt-qr)*(1-wt))/(wt-qt);Ke+Te>re+ce&&(re=Ke,ce=Te)}}if(E(mr)&&De[Rr].t){var Ie=De[Rr].t.val,Ve=De[Rr].t.size;if(Ie>kr){var Ce=(mr*Ie+(Ve-Sr)*kr)/(Ie-kr),Ee=(Ve*(1-kr)+(mr-Sr)*(1-Ie))/(Ie-kr);Ce+Ee>Ae+be&&(Ae=Ce,be=Ee)}}}}}var Pe=a.constrain(ee-ae.l-ae.r,N,Ze),ft=a.constrain(q-ae.t-ae.b,O,at),ct=Math.max(0,ee-Pe),_t=Math.max(0,q-ft);if(ct){var Ct=(re+ce)/ct;Ct>1&&(re/=Ct,ce/=Ct)}if(_t){var ir=(Ae+be)/_t;ir>1&&(Ae/=ir,be/=ir)}if(oe.l=Math.round(re)+j.l,oe.r=Math.round(ce)+j.r,oe.t=Math.round(be)+j.t,oe.b=Math.round(Ae)+j.b,oe.p=Math.round(ae.pad),oe.w=Math.round(ee)-oe.l-oe.r,oe.h=Math.round(q)-oe.t-oe.b,!Y._replotting&&(w.didMarginChange(Q,oe)||P(V))){"_redrawFromAutoMarginCount"in Y?Y._redrawFromAutoMarginCount++:Y._redrawFromAutoMarginCount=1;var rr=3*(1+Object.keys(ze).length);if(Y._redrawFromAutoMarginCount<rr)return t.call("_doPlot",V);Y._size=Q,a.warn("Too many auto-margin redraws.")}U(V)};function U(V){var Y=s.list(V,"",!0);["_adjustTickLabelsOverflow","_hideCounterAxisInsideTickLabels"].forEach(function(ee){for(var q=0;q<Y.length;q++){var oe=Y[q][ee];oe&&oe()}})}var B=["l","r","t","b","p","w","h"];w.didMarginChange=function(V,Y){for(var ee=0;ee<B.length;ee++){var q=B[ee],oe=V[q],ae=Y[q];if(!E(oe)||Math.abs(ae-oe)>1)return!0}return!1},w.graphJson=function(V,Y,ee,q,oe,ae){(oe&&Y&&!V._fullData||oe&&!Y&&!V._fullLayout)&&w.supplyDefaults(V);var j=oe?V._fullData:V.data,Q=oe?V._fullLayout:V.layout,re=(V._transitionData||{})._frames;function ce(De,ze){if(typeof De=="function")return ze?"_function_":null;if(a.isPlainObject(De)){var Ze={},at;return Object.keys(De).sort().forEach(function(Me){if(["_","["].indexOf(Me.charAt(0))===-1){if(typeof De[Me]=="function"){ze&&(Ze[Me]="_function");return}if(ee==="keepdata"){if(Me.slice(-3)==="src")return}else if(ee==="keepstream"){if(at=De[Me+"src"],typeof at=="string"&&at.indexOf(":")>0&&!a.isPlainObject(De.stream))return}else if(ee!=="keepall"&&(at=De[Me+"src"],typeof at=="string"&&at.indexOf(":")>0))return;Ze[Me]=ce(De[Me],ze)}}),Ze}var nt=Array.isArray(De),rt=a.isTypedArray(De);if((nt||rt)&&De.dtype&&De.shape){var st=De.bdata;return ce({dtype:De.dtype,shape:De.shape,bdata:a.isArrayBuffer(st)?e.encode(st):st},ze)}return nt?De.map(function(Me){return ce(Me,ze)}):rt?a.simpleMap(De,a.identity):a.isJSDate(De)?a.ms2DateTimeLocal(+De):De}var be={data:(j||[]).map(function(De){var ze=ce(De);return Y&&delete ze.fit,ze})};if(!Y&&(be.layout=ce(Q),oe)){var Ae=Q._size;be.layout.computed={margin:{b:Ae.b,l:Ae.l,r:Ae.r,t:Ae.t}}}return re&&(be.frames=ce(re)),ae&&(be.config=ce(V._context,!0)),q==="object"?be:JSON.stringify(be)},w.modifyFrames=function(V,Y){var ee,q,oe,ae=V._transitionData._frames,j=V._transitionData._frameHash;for(ee=0;ee<Y.length;ee++)switch(q=Y[ee],q.type){case"replace":oe=q.value;var Q=(ae[q.index]||{}).name,re=oe.name;ae[q.index]=j[re]=oe,re!==Q&&(delete j[Q],j[re]=oe);break;case"insert":oe=q.value,j[oe.name]=oe,ae.splice(q.index,0,oe);break;case"delete":oe=ae[q.index],delete j[oe.name],ae.splice(q.index,1);break}return Promise.resolve()},w.computeFrame=function(V,Y){var ee=V._transitionData._frameHash,q,oe,ae,j;if(!Y)throw new Error("computeFrame must be given a string frame name");var Q=ee[Y.toString()];if(!Q)return!1;for(var re=[Q],ce=[Q.name];Q.baseframe&&(Q=ee[Q.baseframe.toString()])&&ce.indexOf(Q.name)===-1;)re.push(Q),ce.push(Q.name);for(var be={};Q=re.pop();)if(Q.layout&&(be.layout=w.extendLayout(be.layout,Q.layout)),Q.data){if(be.data||(be.data=[]),oe=Q.traces,!oe)for(oe=[],q=0;q<Q.data.length;q++)oe[q]=q;for(be.traces||(be.traces=[]),q=0;q<Q.data.length;q++)ae=oe[q],ae!=null&&(j=be.traces.indexOf(ae),j===-1&&(j=be.data.length,be.traces[j]=ae),be.data[j]=w.extendTrace(be.data[j],Q.data[q]))}return be},w.recomputeFrameHash=function(V){for(var Y=V._transitionData._frameHash={},ee=V._transitionData._frames,q=0;q<ee.length;q++){var oe=ee[q];oe&&oe.name&&(Y[oe.name]=oe)}},w.extendObjectWithContainers=function(V,Y,ee){var q,oe,ae,j,Q,re,ce,be,Ae=a.extendDeepNoArrays({},Y||{}),De=a.expandObjectPaths(Ae),ze={};if(ee&&ee.length)for(ae=0;ae<ee.length;ae++)q=a.nestedProperty(De,ee[ae]),oe=q.get(),oe===void 0?a.nestedProperty(ze,ee[ae]).set(null):(q.set(null),a.nestedProperty(ze,ee[ae]).set(oe));if(V=a.extendDeepNoArrays(V||{},De),ee&&ee.length){for(ae=0;ae<ee.length;ae++)if(Q=a.nestedProperty(ze,ee[ae]),ce=Q.get(),!!ce){for(re=a.nestedProperty(V,ee[ae]),be=re.get(),Array.isArray(be)||(be=[],re.set(be)),j=0;j<ce.length;j++){var Ze=ce[j];Ze===null?be[j]=null:be[j]=w.extendObjectWithContainers(be[j],Ze)}re.set(be)}}return V},w.dataArrayContainers=["transforms","dimensions"],w.layoutArrayContainers=t.layoutArrayContainers,w.extendTrace=function(V,Y){return w.extendObjectWithContainers(V,Y,w.dataArrayContainers)},w.extendLayout=function(V,Y){return w.extendObjectWithContainers(V,Y,w.layoutArrayContainers)},w.transition=function(V,Y,ee,q,oe,ae){var j={redraw:oe.redraw},Q={},re=[];return j.prepareFn=function(){for(var ce=Array.isArray(Y)?Y.length:0,be=q.slice(0,ce),Ae=0;Ae<be.length;Ae++){var De=be[Ae],ze=V._fullData[De],Ze=ze._module;if(Ze){if(Ze.animatable){var at=Ze.basePlotModule.name;Q[at]||(Q[at]=[]),Q[at].push(De)}V.data[be[Ae]]=w.extendTrace(V.data[be[Ae]],Y[Ae])}}var nt=a.expandObjectPaths(a.extendDeepNoArrays({},ee)),rt=/^[xy]axis[0-9]*$/;for(var st in nt)rt.test(st)&&delete nt[st].range;w.extendLayout(V.layout,nt),delete V.calcdata,w.supplyDefaults(V),w.doCalcdata(V);var Me=a.expandObjectPaths(ee);if(Me){var ye=V._fullLayout._plots;for(var he in ye){var Oe=ye[he],tt=Oe.xaxis,ot=Oe.yaxis,Qe=tt.range.slice(),Pt=ot.range.slice(),It=null,qt=null,Wt=null,kr=null;Array.isArray(Me[tt._name+".range"])?It=Me[tt._name+".range"].slice():Array.isArray((Me[tt._name]||{}).range)&&(It=Me[tt._name].range.slice()),Array.isArray(Me[ot._name+".range"])?qt=Me[ot._name+".range"].slice():Array.isArray((Me[ot._name]||{}).range)&&(qt=Me[ot._name].range.slice()),Qe&&It&&(tt.r2l(Qe[0])!==tt.r2l(It[0])||tt.r2l(Qe[1])!==tt.r2l(It[1]))&&(Wt={xr0:Qe,xr1:It}),Pt&&qt&&(ot.r2l(Pt[0])!==ot.r2l(qt[0])||ot.r2l(Pt[1])!==ot.r2l(qt[1]))&&(kr={yr0:Pt,yr1:qt}),(Wt||kr)&&re.push(a.extendFlat({plotinfo:Oe},Wt,kr))}}return Promise.resolve()},j.runFn=function(ce){var be,Ae=V._fullLayout._basePlotModules,De=re.length,ze;if(ee)for(ze=0;ze<Ae.length;ze++)Ae[ze].transitionAxes&&Ae[ze].transitionAxes(V,re,ae,ce);De?(be=a.extendFlat({},ae),be.duration=0,delete Q.cartesian):be=ae;for(var Ze in Q){var at=Q[Ze],nt=V._fullData[at[0]]._module;nt.basePlotModule.plot(V,at,be,ce)}},X(V,ae,j)},w.transitionFromReact=function(V,Y,ee,q){var oe=V._fullLayout,ae=oe.transition,j={},Q=[];return j.prepareFn=function(){var re=oe._plots;j.redraw=!1,Y.anim==="some"&&(j.redraw=!0),ee.anim==="some"&&(j.redraw=!0);for(var ce in re){var be=re[ce],Ae=be.xaxis,De=be.yaxis,ze=q[Ae._name].range.slice(),Ze=q[De._name].range.slice(),at=Ae.range.slice(),nt=De.range.slice();Ae.setScale(),De.setScale();var rt=null,st=null;(Ae.r2l(ze[0])!==Ae.r2l(at[0])||Ae.r2l(ze[1])!==Ae.r2l(at[1]))&&(rt={xr0:ze,xr1:at}),(De.r2l(Ze[0])!==De.r2l(nt[0])||De.r2l(Ze[1])!==De.r2l(nt[1]))&&(st={yr0:Ze,yr1:nt}),(rt||st)&&Q.push(a.extendFlat({plotinfo:be},rt,st))}return Promise.resolve()},j.runFn=function(re){for(var ce=V._fullData,be=V._fullLayout,Ae=be._basePlotModules,De,ze,Ze,at=[],nt=0;nt<ce.length;nt++)at.push(nt);function rt(){if(V._fullLayout)for(var Me=0;Me<Ae.length;Me++)Ae[Me].transitionAxes&&Ae[Me].transitionAxes(V,Q,De,re)}function st(){if(V._fullLayout)for(var Me=0;Me<Ae.length;Me++)Ae[Me].plot(V,Ze,ze,re)}Q.length&&Y.anim?ae.ordering==="traces first"?(De=a.extendFlat({},ae,{duration:0}),Ze=at,ze=ae,setTimeout(rt,ae.duration),st()):(De=ae,Ze=null,ze=a.extendFlat({},ae,{duration:0}),setTimeout(st,De.duration),rt()):Q.length?(De=ae,rt()):Y.anim&&(Ze=at,ze=ae,st())},X(V,ae,j)};function X(V,Y,ee){var q=!1;function oe(Ae){var De=Promise.resolve();if(!Ae)return De;for(;Ae.length;)De=De.then(Ae.shift());return De}function ae(Ae){if(Ae)for(;Ae.length;)Ae.shift()}function j(){return V.emit("plotly_transitioning",[]),new Promise(function(Ae){V._transitioning=!0,Y.duration>0&&(V._transitioningWithDuration=!0),V._transitionData._interruptCallbacks.push(function(){q=!0}),ee.redraw&&V._transitionData._interruptCallbacks.push(function(){return t.call("redraw",V)}),V._transitionData._interruptCallbacks.push(function(){V.emit("plotly_transitioninterrupted",[])});var De=0,ze=0;function Ze(){return De++,function(){ze++,!q&&ze===De&&Q(Ae)}}ee.runFn(Ze),setTimeout(Ze())})}function Q(Ae){if(V._transitionData)return ae(V._transitionData._interruptCallbacks),Promise.resolve().then(function(){if(ee.redraw)return t.call("redraw",V)}).then(function(){V._transitioning=!1,V._transitioningWithDuration=!1,V.emit("plotly_transitioned",[])}).then(Ae)}function re(){if(V._transitionData)return V._transitioning=!1,oe(V._transitionData._interruptCallbacks)}var ce=[w.previousPromises,re,ee.prepareFn,w.rehover,w.reselect,j],be=a.syncOrAsync(ce,V);return(!be||!be.then)&&(be=Promise.resolve()),be.then(function(){return V})}w.doCalcdata=function(V,Y){var ee=s.list(V),q=V._fullData,oe=V._fullLayout,ae,j,Q,re,ce=new Array(q.length),be=(V.calcdata||[]).slice();for(V.calcdata=ce,oe._numBoxes=0,oe._numViolins=0,oe._violinScaleGroupStats={},V._hmpixcount=0,V._hmlumcount=0,oe._piecolormap={},oe._sunburstcolormap={},oe._treemapcolormap={},oe._iciclecolormap={},oe._funnelareacolormap={},Q=0;Q<q.length;Q++)if(Array.isArray(Y)&&Y.indexOf(Q)===-1){ce[Q]=be[Q];continue}for(Q=0;Q<q.length;Q++)ae=q[Q],ae._arrayAttrs=r.findArrayAttributes(ae),ae._extremes={};var Ae=oe._subplots.polar||[];for(Q=0;Q<Ae.length;Q++)ee.push(oe[Ae[Q]].radialaxis,oe[Ae[Q]].angularaxis);for(var De in oe._colorAxes){var ze=oe[De];ze.cauto!==!1&&(delete ze.cmin,delete ze.cmax)}var Ze=!1;function at(st){if(ae=q[st],j=ae._module,ae.visible===!0&&ae.transforms){if(j&&j.calc){var Me=j.calc(V,ae);Me[0]&&Me[0].t&&Me[0].t._scene&&delete Me[0].t._scene.dirty}for(re=0;re<ae.transforms.length;re++){var ye=ae.transforms[re];j=transformsRegistry[ye.type],j&&j.calcTransform&&(ae._hasCalcTransform=!0,Ze=!0,j.calcTransform(V,ae,ye))}}}function nt(st,Me){if(ae=q[st],j=ae._module,!!j.isContainer===Me){var ye=[];if(ae.visible===!0&&ae._length!==0){delete ae._indexToPoints;var he=ae.transforms||[];for(re=he.length-1;re>=0;re--)if(he[re].enabled){ae._indexToPoints=he[re]._indexToPoints;break}j&&j.calc&&(ye=j.calc(V,ae))}(!Array.isArray(ye)||!ye[0])&&(ye=[{x:i,y:i}]),ye[0].t||(ye[0].t={}),ye[0].trace=ae,ce[st]=ye}}for(le(ee,q,oe),Q=0;Q<q.length;Q++)nt(Q,!0);for(Q=0;Q<q.length;Q++)at(Q);for(Ze&&le(ee,q,oe),Q=0;Q<q.length;Q++)nt(Q,!0);for(Q=0;Q<q.length;Q++)nt(Q,!1);fe(V);var rt=se(ee,V);if(rt.length){for(oe._numBoxes=0,oe._numViolins=0,Q=0;Q<rt.length;Q++)nt(rt[Q],!0);for(Q=0;Q<rt.length;Q++)nt(rt[Q],!1);fe(V)}t.getComponentMethod("fx","calc")(V),t.getComponentMethod("errorbars","calc")(V)};var $=/(total|sum|min|max|mean|geometric mean|median) (ascending|descending)/;function se(V,Y){var ee=[],q,oe,ae,j,Q;function re(Rr,wt,Ne){var Ke=wt._id.charAt(0);if(Rr==="histogram2dcontour"){var Te=wt._counterAxes[0],Ie=s.getFromId(Y,Te),Ve=Ke==="x"||Te==="x"&&Ie.type==="category",Ce=Ke==="y"||Te==="y"&&Ie.type==="category";return function(Ee,Pe){return Ee===0||Pe===0||Ve&&Ee===Ne[Pe].length-1||Ce&&Pe===Ne.length-1?-1:(Ke==="y"?Pe:Ee)-1}}else return function(Ee,Pe){return Ke==="y"?Pe:Ee}}var ce={min:function(Rr){return a.aggNums(Math.min,null,Rr)},max:function(Rr){return a.aggNums(Math.max,null,Rr)},sum:function(Rr){return a.aggNums(function(wt,Ne){return wt+Ne},null,Rr)},total:function(Rr){return a.aggNums(function(wt,Ne){return wt+Ne},null,Rr)},mean:function(Rr){return a.mean(Rr)},"geometric mean":function(Rr){return a.geometricMean(Rr)},median:function(Rr){return a.median(Rr)}};function be(Rr,wt){return Rr[1]-wt[1]}function Ae(Rr,wt){return wt[1]-Rr[1]}for(q=0;q<V.length;q++){var De=V[q];if(De.type==="category"){var ze=De.categoryorder.match($);if(ze){var Ze=ze[1],at=ze[2],nt=De._id.charAt(0),rt=nt==="x",st=[];for(oe=0;oe<De._categories.length;oe++)st.push([De._categories[oe],[]]);for(oe=0;oe<De._traceIndices.length;oe++){var Me=De._traceIndices[oe],ye=Y._fullData[Me];if(ye.visible===!0){var he=ye.type;t.traceIs(ye,"histogram")&&(delete ye._xautoBinFinished,delete ye._yautoBinFinished);var Oe=he==="splom",tt=he==="scattergl",ot=Y.calcdata[Me];for(ae=0;ae<ot.length;ae++){var Qe=ot[ae],Pt,It;if(Oe){var qt=ye._axesDim[De._id];if(!rt){var Wt=ye._diag[qt][0];Wt&&(De=Y._fullLayout[s.id2name(Wt)])}var kr=Qe.trace.dimensions[qt].values;for(j=0;j<kr.length;j++)for(Pt=De._categoriesMap[kr[j]],Q=0;Q<Qe.trace.dimensions.length;Q++)if(Q!==qt){var mr=Qe.trace.dimensions[Q];st[Pt][1].push(mr.values[j])}}else if(tt){for(j=0;j<Qe.t.x.length;j++)rt?(Pt=Qe.t.x[j],It=Qe.t.y[j]):(Pt=Qe.t.y[j],It=Qe.t.x[j]),st[Pt][1].push(It);Qe.t&&Qe.t._scene&&delete Qe.t._scene.dirty}else if(Qe.hasOwnProperty("z")){It=Qe.z;var qr=re(ye.type,De,It);for(j=0;j<It.length;j++)for(Q=0;Q<It[j].length;Q++)Pt=qr(Q,j),Pt+1&&st[Pt][1].push(It[j][Q])}else for(Pt=Qe.p,Pt===void 0&&(Pt=Qe[nt]),It=Qe.s,It===void 0&&(It=Qe.v),It===void 0&&(It=rt?Qe.y:Qe.x),Array.isArray(It)||(It===void 0?It=[]:It=[It]),j=0;j<It.length;j++)st[Pt][1].push(It[j])}}}De._categoriesValue=st;var Sr=[];for(oe=0;oe<st.length;oe++)Sr.push([st[oe][0],ce[Ze](st[oe][1])]);Sr.sort(at==="descending"?Ae:be),De._categoriesAggregatedValue=Sr,De._initialCategories=Sr.map(function(Rr){return Rr[0]}),ee=ee.concat(De.sortByInitialCategories())}}}return ee}function le(V,Y,ee){var q={};function oe(re){re.clearCalc(),re.type==="multicategory"&&re.setupMultiCategory(Y),q[re._id]=1}a.simpleMap(V,oe);for(var ae=ee._axisMatchGroups||[],j=0;j<ae.length;j++)for(var Q in ae[j])q[Q]||oe(ee[s.id2name(Q)])}function fe(V){var Y=V._fullLayout,ee=Y._visibleModules,q={},oe,ae,j;for(ae=0;ae<ee.length;ae++){var Q=ee[ae],re=Q.crossTraceCalc;if(re){var ce=Q.basePlotModule.name;q[ce]?a.pushUnique(q[ce],re):q[ce]=[re]}}for(j in q){var be=q[j],Ae=Y._subplots[j];if(Array.isArray(Ae))for(oe=0;oe<Ae.length;oe++){var De=Ae[oe],ze=j==="cartesian"?Y._plots[De]:Y[De];for(ae=0;ae<be.length;ae++)be[ae](V,ze,De)}else for(ae=0;ae<be.length;ae++)be[ae](V)}}w.rehover=function(V){V._fullLayout._rehover&&V._fullLayout._rehover()},w.redrag=function(V){V._fullLayout._redrag&&V._fullLayout._redrag()},w.reselect=function(V){var Y=V._fullLayout,ee=(V.layout||{}).selections,q=Y._previousSelections;Y._previousSelections=ee;var oe=Y._reselect||JSON.stringify(ee)!==JSON.stringify(q);t.getComponentMethod("selections","reselect")(V,oe)},w.generalUpdatePerTraceModule=function(V,Y,ee,q){var oe=Y.traceHash,ae={},j;for(j=0;j<ee.length;j++){var Q=ee[j],re=Q[0].trace;re.visible&&(ae[re.type]=ae[re.type]||[],ae[re.type].push(Q))}for(var ce in oe)if(!ae[ce]){var be=oe[ce][0],Ae=be[0].trace;Ae.visible=!1,ae[ce]=[be]}for(var De in ae){var ze=ae[De],Ze=ze[0][0].trace._module;Ze.plot(V,Y,a.filterVisible(ze),q)}Y.traceHash=ae},w.plotBasePlot=function(V,Y,ee,q,oe){var ae=t.getModule(V),j=T(Y.calcdata,ae)[0];ae.plot(Y,j,q,oe)},w.cleanBasePlot=function(V,Y,ee,q,oe){var ae=oe._has&&oe._has(V),j=ee._has&&ee._has(V);ae&&!j&&oe["_"+V+"layer"].selectAll("g.trace").remove()}}}),vd=Xe({"src/constants/xmlns_namespaces.js"(Z){"use strict";Z.xmlns="http://www.w3.org/2000/xmlns/",Z.svg="http://www.w3.org/2000/svg",Z.xlink="http://www.w3.org/1999/xlink",Z.svgAttrs={xmlns:Z.svg,"xmlns:xlink":Z.xlink}}}),uh=Xe({"src/constants/alignment.js"(Z,G){"use strict";G.exports={FROM_BL:{left:0,center:.5,right:1,bottom:0,middle:.5,top:1},FROM_TL:{left:0,center:.5,right:1,bottom:1,middle:.5,top:0},FROM_BR:{left:1,center:.5,right:0,bottom:0,middle:.5,top:1},LINE_SPACING:1.3,CAP_SHIFT:.7,MID_SHIFT:.35,OPPOSITE_SIDE:{left:"right",right:"left",top:"bottom",bottom:"top"}}}}),ou=Xe({"src/lib/svg_text_utils.js"(Z){"use strict";var G=Hn(),v=sa(),x=v.strTranslate,S=vd(),E=uh().LINE_SPACING,e=/([^$]*)([$]+[^$]*[$]+)([^$]*)/;Z.convertToTspans=function(O,P,U){var B=O.text(),X=!O.attr("data-notex")&&P&&P._context.typesetMath&&typeof MathJax<"u"&&B.match(e),$=G.select(O.node().parentNode);if($.empty())return;var se=O.attr("class")?O.attr("class").split(" ")[0]:"text";se+="-math",$.selectAll("svg."+se).remove(),$.selectAll("g."+se+"-group").remove(),O.style("display",null).attr({"data-unformatted":B,"data-math":"N"});function le(){$.empty()||(se=O.attr("class")+"-math",$.select("svg."+se).remove()),O.text("").style("white-space","pre");var fe=L(O.node(),B);fe&&O.style("pointer-events","all"),Z.positionText(O),U&&U.call(O)}return X?(P&&P._promises||[]).push(new Promise(function(fe){O.style("display","none");var V=parseInt(O.node().style.fontSize,10),Y={fontSize:V};n(X[2],Y,function(ee,q,oe){$.selectAll("svg."+se).remove(),$.selectAll("g."+se+"-group").remove();var ae=ee&&ee.select("svg");if(!ae||!ae.node()){le(),fe();return}var j=$.append("g").classed(se+"-group",!0).attr({"pointer-events":"none","data-unformatted":B,"data-math":"Y"});j.node().appendChild(ae.node()),q&&q.node()&&ae.node().insertBefore(q.node().cloneNode(!0),ae.node().firstChild);var Q=oe.width,re=oe.height;ae.attr({class:se,height:re,preserveAspectRatio:"xMinYMin meet"}).style({overflow:"visible","pointer-events":"none"});var ce=O.node().style.fill||"black",be=ae.select("g");be.attr({fill:ce,stroke:ce});var Ae=be.node().getBoundingClientRect(),De=Ae.width,ze=Ae.height;(De>Q||ze>re)&&(ae.style("overflow","hidden"),Ae=ae.node().getBoundingClientRect(),De=Ae.width,ze=Ae.height);var Ze=+O.attr("x"),at=+O.attr("y"),nt=V||O.node().getBoundingClientRect().height,rt=-nt/4;if(se[0]==="y")j.attr({transform:"rotate("+[-90,Ze,at]+")"+x(-De/2,rt-ze/2)});else if(se[0]==="l")at=rt-ze/2;else if(se[0]==="a"&&se.indexOf("atitle")!==0)Ze=0,at=rt;else{var st=O.attr("text-anchor");Ze=Ze-De*(st==="middle"?.5:st==="end"?1:0),at=at+rt-ze/2}ae.attr({x:Ze,y:at}),U&&U.call(O,j),fe(j)})})):le(),O};var t=/(<|<|<)/g,r=/(>|>|>)/g;function o(O){return O.replace(t,"\\lt ").replace(r,"\\gt ")}var a=[["$","$"],["\\(","\\)"]];function n(O,P,U){var B=parseInt((MathJax.version||"").split(".")[0]);if(B!==2&&B!==3){v.warn("No MathJax version:",MathJax.version);return}var X,$,se,le,fe=function(){return $=v.extendDeepAll({},MathJax.Hub.config),se=MathJax.Hub.processSectionDelay,MathJax.Hub.processSectionDelay!==void 0&&(MathJax.Hub.processSectionDelay=0),MathJax.Hub.Config({messageStyle:"none",tex2jax:{inlineMath:a},displayAlign:"left"})},V=function(){$=v.extendDeepAll({},MathJax.config),MathJax.config.tex||(MathJax.config.tex={}),MathJax.config.tex.inlineMath=a},Y=function(){if(X=MathJax.Hub.config.menuSettings.renderer,X!=="SVG")return MathJax.Hub.setRenderer("SVG")},ee=function(){X=MathJax.config.startup.output,X!=="svg"&&(MathJax.config.startup.output="svg")},q=function(){var ce="math-output-"+v.randstr({},64);le=G.select("body").append("div").attr({id:ce}).style({visibility:"hidden",position:"absolute","font-size":P.fontSize+"px"}).text(o(O));var be=le.node();return B===2?MathJax.Hub.Typeset(be):MathJax.typeset([be])},oe=function(){var ce=le.select(B===2?".MathJax_SVG":".MathJax"),be=!ce.empty()&&le.select("svg").node();if(!be)v.log("There was an error in the tex syntax.",O),U();else{var Ae=be.getBoundingClientRect(),De;B===2?De=G.select("body").select("#MathJax_SVG_glyphs"):De=ce.select("defs"),U(ce,De,Ae)}le.remove()},ae=function(){if(X!=="SVG")return MathJax.Hub.setRenderer(X)},j=function(){X!=="svg"&&(MathJax.config.startup.output=X)},Q=function(){return se!==void 0&&(MathJax.Hub.processSectionDelay=se),MathJax.Hub.Config($)},re=function(){MathJax.config=$};B===2?MathJax.Hub.Queue(fe,Y,q,oe,ae,Q):B===3&&(V(),ee(),MathJax.startup.defaultReady(),MathJax.startup.promise.then(function(){q(),oe(),j(),re()}))}var i={sup:"font-size:70%",sub:"font-size:70%",s:"text-decoration:line-through",u:"text-decoration:underline",b:"font-weight:bold",i:"font-style:italic",a:"cursor:pointer",span:"",em:"font-style:italic;font-weight:bold"},s={sub:"0.3em",sup:"-0.6em"},h={sub:"-0.21em",sup:"0.42em"},c="\u200B",m=["http:","https:","mailto:","",void 0,":"],p=Z.NEWLINES=/(\r\n?|\n)/g,T=/(<[^<>]*>)/,l=/<(\/?)([^ >]*)(\s+(.*))?>/i,_=/<br(\s+.*)?>/i;Z.BR_TAG_ALL=/<br(\s+.*)?>/gi;var w=/(^|[\s"'])style\s*=\s*("([^"]*);?"|'([^']*);?')/i,A=/(^|[\s"'])href\s*=\s*("([^"]*)"|'([^']*)')/i,M=/(^|[\s"'])target\s*=\s*("([^"\s]*)"|'([^'\s]*)')/i,g=/(^|[\s"'])popup\s*=\s*("([\w=,]*)"|'([\w=,]*)')/i;function b(O,P){if(!O)return null;var U=O.match(P),B=U&&(U[3]||U[4]);return B&&f(B)}var d=/(^|;)\s*color:/;Z.plainText=function(O,P){P=P||{};for(var U=P.len!==void 0&&P.len!==-1?P.len:1/0,B=P.allowedTags!==void 0?P.allowedTags:["br"],X="...",$=X.length,se=O.split(T),le=[],fe="",V=0,Y=0;Y<se.length;Y++){var ee=se[Y],q=ee.match(l),oe=q&&q[2].toLowerCase();if(oe)B.indexOf(oe)!==-1&&(le.push(ee),fe=oe);else{var ae=ee.length;if(V+ae<U)le.push(ee),V+=ae;else if(V<U){var j=U-V;fe&&(fe!=="br"||j<=$||ae<=$)&&le.pop(),U>$?le.push(ee.slice(0,Math.max(0,j-$))+X):le.push(ee.slice(0,j));break}fe=""}}return le.join("")};var u={mu:"\u03BC",amp:"&",lt:"<",gt:">",nbsp:"\xA0",times:"\xD7",plusmn:"\xB1",deg:"\xB0"},y=/&(#\d+|#x[\da-fA-F]+|[a-z]+);/g;function f(O){return O.replace(y,function(P,U){var B;return U.charAt(0)==="#"?B=R(U.charAt(1)==="x"?parseInt(U.slice(2),16):parseInt(U.slice(1),10)):B=u[U],B||P})}Z.convertEntities=f;function R(O){if(!(O>1114111)){var P=String.fromCodePoint;if(P)return P(O);var U=String.fromCharCode;return O<=65535?U(O):U((O>>10)+55232,O%1024+56320)}}function L(O,P){P=P.replace(p," ");var U=!1,B=[],X,$=-1;function se(){$++;var ze=document.createElementNS(S.svg,"tspan");G.select(ze).attr({class:"line",dy:$*E+"em"}),O.appendChild(ze),X=ze;var Ze=B;if(B=[{node:ze}],Ze.length>1)for(var at=1;at<Ze.length;at++)le(Ze[at])}function le(ze){var Ze=ze.type,at={},nt;if(Ze==="a"){nt="a";var rt=ze.target,st=ze.href,Me=ze.popup;st&&(at={"xlink:xlink:show":rt==="_blank"||rt.charAt(0)!=="_"?"new":"replace",target:rt,"xlink:xlink:href":st},Me&&(at.onclick='window.open(this.href.baseVal,this.target.baseVal,"'+Me+'");return false;'))}else nt="tspan";ze.style&&(at.style=ze.style);var ye=document.createElementNS(S.svg,nt);if(Ze==="sup"||Ze==="sub"){fe(X,c),X.appendChild(ye);var he=document.createElementNS(S.svg,"tspan");fe(he,c),G.select(he).attr("dy",h[Ze]),at.dy=s[Ze],X.appendChild(ye),X.appendChild(he)}else X.appendChild(ye);G.select(ye).attr(at),X=ze.node=ye,B.push(ze)}function fe(ze,Ze){ze.appendChild(document.createTextNode(Ze))}function V(ze){if(B.length===1){v.log("Ignoring unexpected end tag </"+ze+">.",P);return}var Ze=B.pop();ze!==Ze.type&&v.log("Start tag <"+Ze.type+"> doesnt match end tag <"+ze+">. Pretending it did match.",P),X=B[B.length-1].node}var Y=_.test(P);Y?se():(X=O,B=[{node:O}]);for(var ee=P.split(T),q=0;q<ee.length;q++){var oe=ee[q],ae=oe.match(l),j=ae&&ae[2].toLowerCase(),Q=i[j];if(j==="br")se();else if(Q===void 0)fe(X,f(oe));else if(ae[1])V(j);else{var re=ae[4],ce={type:j},be=b(re,w);if(be?(be=be.replace(d,"$1 fill:"),Q&&(be+=";"+Q)):Q&&(be=Q),be&&(ce.style=be),j==="a"){U=!0;var Ae=b(re,A);if(Ae){var De=z(Ae);De&&(ce.href=De,ce.target=b(re,M)||"_blank",ce.popup=b(re,g))}}le(ce)}}return U}function z(O){var P=encodeURI(decodeURI(O)),U=document.createElement("a"),B=document.createElement("a");U.href=O,B.href=P;var X=U.protocol,$=B.protocol;return m.indexOf(X)!==-1&&m.indexOf($)!==-1?P:""}Z.sanitizeHTML=function(P){P=P.replace(p," ");for(var U=document.createElement("p"),B=U,X=[],$=P.split(T),se=0;se<$.length;se++){var le=$[se],fe=le.match(l),V=fe&&fe[2].toLowerCase();if(V in i)if(fe[1])X.length&&(B=X.pop());else{var Y=fe[4],ee=b(Y,w),q=ee?{style:ee}:{};if(V==="a"){var oe=b(Y,A);if(oe){var ae=z(oe);if(ae){q.href=ae;var j=b(Y,M);j&&(q.target=j)}}}var Q=document.createElement(V);B.appendChild(Q),G.select(Q).attr(q),B=Q,X.push(Q)}else B.appendChild(document.createTextNode(f(le)))}var re="innerHTML";return U[re]},Z.lineCount=function(P){return P.selectAll("tspan.line").size()||1},Z.positionText=function(P,U,B){return P.each(function(){var X=G.select(this);function $(fe,V){return V===void 0?(V=X.attr(fe),V===null&&(X.attr(fe,0),V=0)):X.attr(fe,V),V}var se=$("x",U),le=$("y",B);this.nodeName==="text"&&X.selectAll("tspan.line").attr({x:se,y:le})})};function F(O,P,U){var B=U.horizontalAlign,X=U.verticalAlign||"top",$=O.node().getBoundingClientRect(),se=P.node().getBoundingClientRect(),le,fe,V;return X==="bottom"?fe=function(){return $.bottom-le.height}:X==="middle"?fe=function(){return $.top+($.height-le.height)/2}:fe=function(){return $.top},B==="right"?V=function(){return $.right-le.width}:B==="center"?V=function(){return $.left+($.width-le.width)/2}:V=function(){return $.left},function(){le=this.node().getBoundingClientRect();var Y=V()-se.left,ee=fe()-se.top,q=U.gd||{};if(U.gd){q._fullLayout._calcInverseTransform(q);var oe=v.apply3DTransform(q._fullLayout._invTransform)(Y,ee);Y=oe[0],ee=oe[1]}return this.style({top:ee+"px",left:Y+"px","z-index":1e3}),this}}var N="1px ";Z.makeTextShadow=function(O){var P=N,U=N,B=N;return P+U+B+O+", -"+P+"-"+U+B+O+", "+P+"-"+U+B+O+", -"+P+U+B+O},Z.makeEditable=function(O,P){var U=P.gd,B=P.delegate,X=G.dispatch("edit","input","cancel"),$=B||O;if(O.style({"pointer-events":B?"none":"all"}),O.size()!==1)throw new Error("boo");function se(){fe(),O.style({opacity:0});var V=$.attr("class"),Y;V?Y="."+V.split(" ")[0]+"-math-group":Y="[class*=-math-group]",Y&&G.select(O.node().parentNode).select(Y).style({opacity:0})}function le(V){var Y=V.node(),ee=document.createRange();ee.selectNodeContents(Y);var q=window.getSelection();q.removeAllRanges(),q.addRange(ee),Y.focus()}function fe(){var V=G.select(U),Y=V.select(".svg-container"),ee=Y.append("div"),q=O.node().style,oe=parseFloat(q.fontSize||12),ae=P.text;ae===void 0&&(ae=O.attr("data-unformatted")),ee.classed("plugin-editable editable",!0).style({position:"absolute","font-family":q.fontFamily||"Arial","font-size":oe,color:P.fill||q.fill||"black",opacity:1,"background-color":P.background||"transparent",outline:"#ffffff33 1px solid",margin:[-oe/8+1,0,0,-1].join("px ")+"px",padding:"0","box-sizing":"border-box"}).attr({contenteditable:!0}).text(ae).call(F(O,Y,P)).on("blur",function(){U._editing=!1,O.text(this.textContent).style({opacity:1});var j=G.select(this).attr("class"),Q;j?Q="."+j.split(" ")[0]+"-math-group":Q="[class*=-math-group]",Q&&G.select(O.node().parentNode).select(Q).style({opacity:0});var re=this.textContent;G.select(this).transition().duration(0).remove(),G.select(document).on("mouseup",null),X.edit.call(O,re)}).on("focus",function(){var j=this;U._editing=!0,G.select(document).on("mouseup",function(){if(G.event.target===j)return!1;document.activeElement===ee.node()&&ee.node().blur()})}).on("keyup",function(){G.event.which===27?(U._editing=!1,O.style({opacity:1}),G.select(this).style({opacity:0}).on("blur",function(){return!1}).transition().remove(),X.cancel.call(O,this.textContent)):(X.input.call(O,this.textContent),G.select(this).call(F(O,Y,P)))}).on("keydown",function(){G.event.which===13&&this.blur()}).call(le)}return P.immediate?se():$.on("click",se),G.rebind(O,X,"on")}}}),wp=Xe({"src/components/colorscale/helpers.js"(Z,G){"use strict";var v=Hn(),x=Ch(),S=rs(),E=sa(),e=$n(),t=W0().isValid;function r(p,T,l){var _=T?E.nestedProperty(p,T).get()||{}:p,w=_[l||"color"];w&&w._inputArray&&(w=w._inputArray);var A=!1;if(E.isArrayOrTypedArray(w)){for(var M=0;M<w.length;M++)if(S(w[M])){A=!0;break}}return E.isPlainObject(_)&&(A||_.showscale===!0||S(_.cmin)&&S(_.cmax)||t(_.colorscale)||E.isPlainObject(_.colorbar))}var o=["showscale","autocolorscale","colorscale","reversescale","colorbar"],a=["min","max","mid","auto"];function n(p){var T=p._colorAx,l=T||p,_={},w,A,M;for(A=0;A<o.length;A++)M=o[A],_[M]=l[M];if(T)for(w="c",A=0;A<a.length;A++)M=a[A],_[M]=l["c"+M];else{var g;for(A=0;A<a.length;A++){if(M=a[A],g="c"+M,g in l){_[M]=l[g];continue}g="z"+M,g in l&&(_[M]=l[g])}w=g.charAt(0)}return _._sync=function(b,d){var u=a.indexOf(b)!==-1?w+b:b;l[u]=l["_"+u]=d},_}function i(p){for(var T=n(p),l=T.min,_=T.max,w=T.reversescale?s(T.colorscale):T.colorscale,A=w.length,M=new Array(A),g=new Array(A),b=0;b<A;b++){var d=w[b];M[b]=l+d[0]*(_-l),g[b]=d[1]}return{domain:M,range:g}}function s(p){for(var T=p.length,l=new Array(T),_=T-1,w=0;_>=0;_--,w++){var A=p[_];l[w]=[1-A[0],A[1]]}return l}function h(p,T){T=T||{};for(var l=p.domain,_=p.range,w=_.length,A=new Array(w),M=0;M<w;M++){var g=x(_[M]).toRgb();A[M]=[g.r,g.g,g.b,g.a]}var b=v.scale.linear().domain(l).range(A).clamp(!0),d=T.noNumericCheck,u=T.returnArray,y;return d&&u?y=b:d?y=function(f){return m(b(f))}:u?y=function(f){return S(f)?b(f):x(f).isValid()?f:e.defaultLine}:y=function(f){return S(f)?m(b(f)):x(f).isValid()?f:e.defaultLine},y.domain=b.domain,y.range=function(){return _},y}function c(p,T){return h(i(p),T)}function m(p){var T={r:p[0],g:p[1],b:p[2],a:p[3]};return x(T).toRgbString()}G.exports={hasColorscale:r,extractOpts:n,extractScale:i,flipScale:s,makeColorScaleFunc:h,makeColorScaleFuncFromTrace:c}}}),tf=Xe({"src/plots/cartesian/axis_format_attributes.js"(Z,G){"use strict";var v=t5(),x=v.FORMAT_LINK,S=v.DATE_FORMAT_LINK;function E(r,o){return{valType:"string",dflt:"",editType:"none",description:(o?e:t)("hover text",r)+["By default the values are formatted using "+(o?"generic number format":"`"+r+"axis.hoverformat`")+"."].join(" ")}}function e(r,o){return["Sets the "+r+" formatting rule"+(o?"for `"+o+"` ":""),"using d3 formatting mini-languages","which are very similar to those in Python. For numbers, see: "+x+"."].join(" ")}function t(r,o){return e(r,o)+[" And for dates see: "+S+".","We add two items to d3's date formatter:","*%h* for half of the year as a decimal number as well as","*%{n}f* for fractional seconds","with n digits. For example, *2016-10-13 09:15:23.456* with tickformat","*%H~%M~%S.%2f* would display *09~15~23.46*"].join(" ")}G.exports={axisHoverFormat:E,descriptionOnlyNumbers:e,descriptionWithDates:t}}}),Wh=Xe({"src/plots/cartesian/layout_attributes.js"(Z,G){"use strict";var v=tc(),x=sh(),S=Gh().dash,E=Qo().extendFlat,e=zl().templatedArray,t=Jl().templateFormatStringDescription,r=tf().descriptionWithDates,o=Hs().ONEDAY,a=lh(),n=a.HOUR_PATTERN,i=a.WEEKDAY_PATTERN,s={valType:"enumerated",values:["auto","linear","array"],editType:"ticks",impliedEdits:{tick0:void 0,dtick:void 0}},h=E({},s,{values:s.values.slice().concat(["sync"])});function c(u){return{valType:"integer",min:0,dflt:u?5:0,editType:"ticks"}}var m={valType:"any",editType:"ticks",impliedEdits:{tickmode:"linear"}},p={valType:"any",editType:"ticks",impliedEdits:{tickmode:"linear"}},T={valType:"data_array",editType:"ticks"},l={valType:"enumerated",values:["outside","inside",""],editType:"ticks"};function _(u){var y={valType:"number",min:0,editType:"ticks"};return u||(y.dflt=5),y}function w(u){var y={valType:"number",min:0,editType:"ticks"};return u||(y.dflt=1),y}var A={valType:"color",dflt:x.defaultLine,editType:"ticks"},M={valType:"color",dflt:x.lightLine,editType:"ticks"};function g(u){var y={valType:"number",min:0,editType:"ticks"};return u||(y.dflt=1),y}var b=E({},S,{editType:"ticks"}),d={valType:"boolean",editType:"ticks"};G.exports={visible:{valType:"boolean",editType:"plot"},color:{valType:"color",dflt:x.defaultLine,editType:"ticks"},title:{text:{valType:"string",editType:"ticks"},font:v({editType:"ticks"}),standoff:{valType:"number",min:0,editType:"ticks"},editType:"ticks"},type:{valType:"enumerated",values:["-","linear","log","date","category","multicategory"],dflt:"-",editType:"calc",_noTemplating:!0},autotypenumbers:{valType:"enumerated",values:["convert types","strict"],dflt:"convert types",editType:"calc"},autorange:{valType:"enumerated",values:[!0,!1,"reversed","min reversed","max reversed","min","max"],dflt:!0,editType:"axrange",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},autorangeoptions:{minallowed:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},maxallowed:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},clipmin:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},clipmax:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},include:{valType:"any",arrayOk:!0,editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},editType:"plot"},rangemode:{valType:"enumerated",values:["normal","tozero","nonnegative"],dflt:"normal",editType:"plot"},range:{valType:"info_array",items:[{valType:"any",editType:"axrange",impliedEdits:{"^autorange":!1},anim:!0},{valType:"any",editType:"axrange",impliedEdits:{"^autorange":!1},anim:!0}],editType:"axrange",impliedEdits:{autorange:!1},anim:!0},minallowed:{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}},maxallowed:{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}},fixedrange:{valType:"boolean",dflt:!1,editType:"calc"},modebardisable:{valType:"flaglist",flags:["autoscale","zoominout"],extras:["none"],dflt:"none",editType:"modebar"},insiderange:{valType:"info_array",items:[{valType:"any",editType:"plot"},{valType:"any",editType:"plot"}],editType:"plot"},scaleanchor:{valType:"enumerated",values:[a.idRegex.x.toString(),a.idRegex.y.toString(),!1],editType:"plot"},scaleratio:{valType:"number",min:0,dflt:1,editType:"plot"},constrain:{valType:"enumerated",values:["range","domain"],editType:"plot"},constraintoward:{valType:"enumerated",values:["left","center","right","top","middle","bottom"],editType:"plot"},matches:{valType:"enumerated",values:[a.idRegex.x.toString(),a.idRegex.y.toString()],editType:"calc"},rangebreaks:e("rangebreak",{enabled:{valType:"boolean",dflt:!0,editType:"calc"},bounds:{valType:"info_array",items:[{valType:"any",editType:"calc"},{valType:"any",editType:"calc"}],editType:"calc"},pattern:{valType:"enumerated",values:[i,n,""],editType:"calc"},values:{valType:"info_array",freeLength:!0,editType:"calc",items:{valType:"any",editType:"calc"}},dvalue:{valType:"number",editType:"calc",min:0,dflt:o},editType:"calc"}),tickmode:h,nticks:c(),tick0:m,dtick:p,ticklabelstep:{valType:"integer",min:1,dflt:1,editType:"ticks"},tickvals:T,ticktext:{valType:"data_array",editType:"ticks"},ticks:l,tickson:{valType:"enumerated",values:["labels","boundaries"],dflt:"labels",editType:"ticks"},ticklabelmode:{valType:"enumerated",values:["instant","period"],dflt:"instant",editType:"ticks"},ticklabelposition:{valType:"enumerated",values:["outside","inside","outside top","inside top","outside left","inside left","outside right","inside right","outside bottom","inside bottom"],dflt:"outside",editType:"calc"},ticklabeloverflow:{valType:"enumerated",values:["allow","hide past div","hide past domain"],editType:"calc"},ticklabelshift:{valType:"integer",dflt:0,editType:"ticks"},ticklabelstandoff:{valType:"integer",dflt:0,editType:"ticks"},ticklabelindex:{valType:"integer",arrayOk:!0,editType:"calc"},mirror:{valType:"enumerated",values:[!0,"ticks",!1,"all","allticks"],dflt:!1,editType:"ticks+layoutstyle"},ticklen:_(),tickwidth:w(),tickcolor:A,showticklabels:{valType:"boolean",dflt:!0,editType:"ticks"},labelalias:{valType:"any",dflt:!1,editType:"ticks"},automargin:{valType:"flaglist",flags:["height","width","left","right","top","bottom"],extras:[!0,!1],dflt:!1,editType:"ticks"},showspikes:{valType:"boolean",dflt:!1,editType:"modebar"},spikecolor:{valType:"color",dflt:null,editType:"none"},spikethickness:{valType:"number",dflt:3,editType:"none"},spikedash:E({},S,{dflt:"dash",editType:"none"}),spikemode:{valType:"flaglist",flags:["toaxis","across","marker"],dflt:"toaxis",editType:"none"},spikesnap:{valType:"enumerated",values:["data","cursor","hovered data"],dflt:"hovered data",editType:"none"},tickfont:v({editType:"ticks"}),tickangle:{valType:"angle",dflt:"auto",editType:"ticks"},autotickangles:{valType:"info_array",freeLength:!0,items:{valType:"angle"},dflt:[0,30,90],editType:"ticks"},tickprefix:{valType:"string",dflt:"",editType:"ticks"},showtickprefix:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks"},ticksuffix:{valType:"string",dflt:"",editType:"ticks"},showticksuffix:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks"},showexponent:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks"},exponentformat:{valType:"enumerated",values:["none","e","E","power","SI","B","SI extended"],dflt:"B",editType:"ticks"},minexponent:{valType:"number",dflt:3,min:0,editType:"ticks"},separatethousands:{valType:"boolean",dflt:!1,editType:"ticks"},tickformat:{valType:"string",dflt:"",editType:"ticks",description:r("tick label")},tickformatstops:e("tickformatstop",{enabled:{valType:"boolean",dflt:!0,editType:"ticks"},dtickrange:{valType:"info_array",items:[{valType:"any",editType:"ticks"},{valType:"any",editType:"ticks"}],editType:"ticks"},value:{valType:"string",dflt:"",editType:"ticks"},editType:"ticks"}),hoverformat:{valType:"string",dflt:"",editType:"none",description:r("hover text")},unifiedhovertitle:{text:{valType:"string",dflt:"",editType:"none"},editType:"none"},showline:{valType:"boolean",dflt:!1,editType:"ticks+layoutstyle"},linecolor:{valType:"color",dflt:x.defaultLine,editType:"layoutstyle"},linewidth:{valType:"number",min:0,dflt:1,editType:"ticks+layoutstyle"},showgrid:d,gridcolor:M,gridwidth:g(),griddash:b,zeroline:{valType:"boolean",editType:"ticks"},zerolinecolor:{valType:"color",dflt:x.defaultLine,editType:"ticks"},zerolinelayer:{valType:"enumerated",values:["above traces","below traces"],dflt:"below traces",editType:"plot"},zerolinewidth:{valType:"number",dflt:1,editType:"ticks"},showdividers:{valType:"boolean",dflt:!0,editType:"ticks"},dividercolor:{valType:"color",dflt:x.defaultLine,editType:"ticks"},dividerwidth:{valType:"number",dflt:1,editType:"ticks"},anchor:{valType:"enumerated",values:["free",a.idRegex.x.toString(),a.idRegex.y.toString()],editType:"plot"},side:{valType:"enumerated",values:["top","bottom","left","right"],editType:"plot"},overlaying:{valType:"enumerated",values:["free",a.idRegex.x.toString(),a.idRegex.y.toString()],editType:"plot"},minor:{tickmode:s,nticks:c("minor"),tick0:m,dtick:p,tickvals:T,ticks:l,ticklen:_("minor"),tickwidth:w("minor"),tickcolor:A,gridcolor:M,gridwidth:g("minor"),griddash:b,showgrid:d,editType:"ticks"},minorloglabels:{valType:"enumerated",values:["small digits","complete","none"],dflt:"small digits",editType:"calc"},layer:{valType:"enumerated",values:["above traces","below traces"],dflt:"above traces",editType:"plot"},domain:{valType:"info_array",items:[{valType:"number",min:0,max:1,editType:"plot"},{valType:"number",min:0,max:1,editType:"plot"}],dflt:[0,1],editType:"plot"},position:{valType:"number",min:0,max:1,dflt:0,editType:"plot"},autoshift:{valType:"boolean",dflt:!1,editType:"plot"},shift:{valType:"number",editType:"plot"},categoryorder:{valType:"enumerated",values:["trace","category ascending","category descending","array","total ascending","total descending","min ascending","min descending","max ascending","max descending","sum ascending","sum descending","mean ascending","mean descending","geometric mean ascending","geometric mean descending","median ascending","median descending"],dflt:"trace",editType:"calc"},categoryarray:{valType:"data_array",editType:"calc"},uirevision:{valType:"any",editType:"none"},editType:"calc"}}}),x2=Xe({"src/components/colorbar/attributes.js"(Z,G){"use strict";var v=Wh(),x=tc(),S=Qo().extendFlat,E=pc().overrideAll;G.exports=E({orientation:{valType:"enumerated",values:["h","v"],dflt:"v"},thicknessmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"pixels"},thickness:{valType:"number",min:0,dflt:30},lenmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"fraction"},len:{valType:"number",min:0,dflt:1},x:{valType:"number"},xref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},xanchor:{valType:"enumerated",values:["left","center","right"]},xpad:{valType:"number",min:0,dflt:10},y:{valType:"number"},yref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},yanchor:{valType:"enumerated",values:["top","middle","bottom"]},ypad:{valType:"number",min:0,dflt:10},outlinecolor:v.linecolor,outlinewidth:v.linewidth,bordercolor:v.linecolor,borderwidth:{valType:"number",min:0,dflt:0},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)"},tickmode:v.minor.tickmode,nticks:v.nticks,tick0:v.tick0,dtick:v.dtick,tickvals:v.tickvals,ticktext:v.ticktext,ticks:S({},v.ticks,{dflt:""}),ticklabeloverflow:S({},v.ticklabeloverflow,{}),ticklabelposition:{valType:"enumerated",values:["outside","inside","outside top","inside top","outside left","inside left","outside right","inside right","outside bottom","inside bottom"],dflt:"outside"},ticklen:v.ticklen,tickwidth:v.tickwidth,tickcolor:v.tickcolor,ticklabelstep:v.ticklabelstep,showticklabels:v.showticklabels,labelalias:v.labelalias,tickfont:x({}),tickangle:v.tickangle,tickformat:v.tickformat,tickformatstops:v.tickformatstops,tickprefix:v.tickprefix,showtickprefix:v.showtickprefix,ticksuffix:v.ticksuffix,showticksuffix:v.showticksuffix,separatethousands:v.separatethousands,exponentformat:v.exponentformat,minexponent:v.minexponent,showexponent:v.showexponent,title:{text:{valType:"string"},font:x({}),side:{valType:"enumerated",values:["right","top","bottom"]}}},"colorbars","from-root")}}),ku=Xe({"src/components/colorscale/attributes.js"(Z,G){"use strict";var v=x2(),x=Jy().counter,S=Jm(),E=W0().scales,e=S(E);function t(r){return"`"+r+"`"}G.exports=function(o,a){o=o||"",a=a||{};var n=a.cLetter||"c",i="onlyIfNumerical"in a?a.onlyIfNumerical:!!o,s="noScale"in a?a.noScale:o==="marker.line",h="showScaleDflt"in a?a.showScaleDflt:n==="z",c=typeof a.colorscaleDflt=="string"?E[a.colorscaleDflt]:null,m=a.editTypeOverride||"",p=o?o+".":"",T,l;"colorAttr"in a?(T=a.colorAttr,l=a.colorAttr):(T={z:"z",c:"color"}[n],l="in "+t(p+T));var _=i?" Has an effect only if "+l+" is set to a numerical array.":"",w=n+"auto",A=n+"min",M=n+"max",g=n+"mid",b=t(p+w),d=t(p+A),u=t(p+M),y=d+" and "+u,f={};f[A]=f[M]=void 0;var R={};R[w]=!1;var L={};return T==="color"&&(L.color={valType:"color",arrayOk:!0,editType:m||"style"},a.anim&&(L.color.anim=!0)),L[w]={valType:"boolean",dflt:!0,editType:"calc",impliedEdits:f},L[A]={valType:"number",dflt:null,editType:m||"plot",impliedEdits:R},L[M]={valType:"number",dflt:null,editType:m||"plot",impliedEdits:R},L[g]={valType:"number",dflt:null,editType:"calc",impliedEdits:f},L.colorscale={valType:"colorscale",editType:"calc",dflt:c,impliedEdits:{autocolorscale:!1}},L.autocolorscale={valType:"boolean",dflt:a.autoColorDflt!==!1,editType:"calc",impliedEdits:{colorscale:void 0}},L.reversescale={valType:"boolean",dflt:!1,editType:"plot"},s||(L.showscale={valType:"boolean",dflt:h,editType:"calc"},L.colorbar=v),a.noColorAxis||(L.coloraxis={valType:"subplotid",regex:x("coloraxis"),dflt:null,editType:"calc"}),L}}}),o5=Xe({"src/components/colorscale/layout_attributes.js"(Z,G){"use strict";var v=Qo().extendFlat,x=ku(),S=W0().scales;G.exports={editType:"calc",colorscale:{editType:"calc",sequential:{valType:"colorscale",dflt:S.Reds,editType:"calc"},sequentialminus:{valType:"colorscale",dflt:S.Blues,editType:"calc"},diverging:{valType:"colorscale",dflt:S.RdBu,editType:"calc"}},coloraxis:v({_isSubplotObj:!0,editType:"calc"},x("",{colorAttr:"corresponding trace color array(s)",noColorAxis:!0,showScaleDflt:!0}))}}}),s5=Xe({"src/components/colorbar/has_colorbar.js"(Z,G){"use strict";var v=sa();G.exports=function(S){return v.isPlainObject(S.colorbar)}}}),l5=Xe({"src/plots/cartesian/clean_ticks.js"(Z){"use strict";var G=rs(),v=sa(),x=Hs(),S=x.ONEDAY,E=x.ONEWEEK;Z.dtick=function(e,t){var r=t==="log",o=t==="date",a=t==="category",n=o?S:1;if(!e)return n;if(G(e))return e=Number(e),e<=0?n:a?Math.max(1,Math.round(e)):o?Math.max(.1,e):e;if(typeof e!="string"||!(o||r))return n;var i=e.charAt(0),s=e.slice(1);return s=G(s)?Number(s):0,s<=0||!(o&&i==="M"&&s===Math.round(s)||r&&i==="L"||r&&i==="D"&&(s===1||s===2))?n:e},Z.tick0=function(e,t,r,o){if(t==="date")return v.cleanDate(e,v.dateTick0(r,o%E===0?1:0));if(!(o==="D1"||o==="D2"))return G(e)?Number(e):0}}}),Y0=Xe({"src/plots/cartesian/tick_value_defaults.js"(Z,G){"use strict";var v=l5(),x=sa().isArrayOrTypedArray,S=bp().isTypedArraySpec,E=bp().decodeTypedArraySpec;G.exports=function(t,r,o,a,n){n||(n={});var i=n.isMinor,s=i?t.minor||{}:t,h=i?r.minor:r,c=i?"minor.":"";function m(g){var b=s[g];return S(b)&&(b=E(b)),b!==void 0?b:(h._template||{})[g]}var p=m("tick0"),T=m("dtick"),l=m("tickvals"),_=x(l)?"array":T?"linear":"auto",w=o(c+"tickmode",_);if(w==="auto"||w==="sync")o(c+"nticks");else if(w==="linear"){var A=h.dtick=v.dtick(T,a);h.tick0=v.tick0(p,a,r.calendar,A)}else if(a!=="multicategory"){var M=o(c+"tickvals");M===void 0?h.tickmode="auto":i||o("ticktext")}}}}),t1=Xe({"src/plots/cartesian/tick_mark_defaults.js"(Z,G){"use strict";var v=sa(),x=Wh();G.exports=function(E,e,t,r){var o=r.isMinor,a=o?E.minor||{}:E,n=o?e.minor:e,i=o?x.minor:x,s=o?"minor.":"",h=v.coerce2(a,n,i,"ticklen",o?(e.ticklen||5)*.6:void 0),c=v.coerce2(a,n,i,"tickwidth",o?e.tickwidth||1:void 0),m=v.coerce2(a,n,i,"tickcolor",(o?e.tickcolor:void 0)||n.color),p=t(s+"ticks",!o&&r.outerTicks||h||c||m?"outside":"");p||(delete n.ticklen,delete n.tickwidth,delete n.tickcolor)}}}),u5=Xe({"src/plots/cartesian/show_dflt.js"(Z,G){"use strict";G.exports=function(x){var S=["showexponent","showtickprefix","showticksuffix"],E=S.filter(function(t){return x[t]!==void 0}),e=function(t){return x[t]===x[E[0]]};if(E.every(e)||E.length===1)return x[E[0]]}}}),hp=Xe({"src/plots/array_container_defaults.js"(Z,G){"use strict";var v=sa(),x=zl();G.exports=function(E,e,t){var r=t.name,o=t.inclusionAttr||"visible",a=e[r],n=v.isArrayOrTypedArray(E[r])?E[r]:[],i=e[r]=[],s=x.arrayTemplater(e,r,o),h,c;for(h=0;h<n.length;h++){var m=n[h];v.isPlainObject(m)?c=s.newItem(m):(c=s.newItem({}),c[o]=!1),c._index=h,c[o]!==!1&&t.handleItemDefaults(m,c,e,t),i.push(c)}var p=s.defaultItems();for(h=0;h<p.length;h++)c=p[h],c._index=i.length,t.handleItemDefaults({},c,e,t,{}),i.push(c);if(v.isArrayOrTypedArray(a)){var T=Math.min(a.length,i.length);for(h=0;h<T;h++)v.relinkPrivateKeys(i[h],a[h])}return i}}}),Qm=Xe({"src/plots/cartesian/tick_label_defaults.js"(Z,G){"use strict";var v=sa(),x=$n().contrast,S=Wh(),E=u5(),e=hp();G.exports=function(o,a,n,i,s){s||(s={});var h=n("labelalias");v.isPlainObject(h)||delete a.labelalias;var c=E(o),m=n("showticklabels");if(m){s.noTicklabelshift||n("ticklabelshift"),s.noTicklabelstandoff||n("ticklabelstandoff");var p=s.font||{},T=a.color,l=a.ticklabelposition||"",_=l.indexOf("inside")!==-1?x(s.bgColor):T&&T!==S.color.dflt?T:p.color;if(v.coerceFont(n,"tickfont",p,{overrideDflt:{color:_}}),!s.noTicklabelstep&&i!=="multicategory"&&i!=="log"&&n("ticklabelstep"),!s.noAng){var w=n("tickangle");!s.noAutotickangles&&w==="auto"&&n("autotickangles")}if(i!=="category"){var A=n("tickformat");e(o,a,{name:"tickformatstops",inclusionAttr:"enabled",handleItemDefaults:t}),a.tickformatstops.length||delete a.tickformatstops,!s.noExp&&!A&&i!=="date"&&(n("showexponent",c),n("exponentformat"),n("minexponent"),n("separatethousands"))}!s.noMinorloglabels&&i==="log"&&n("minorloglabels")}};function t(r,o){function a(i,s){return v.coerce(r,o,S.tickformatstops,i,s)}var n=a("enabled");n&&(a("dtickrange"),a("value"))}}}),e0=Xe({"src/plots/cartesian/prefix_suffix_defaults.js"(Z,G){"use strict";var v=u5();G.exports=function(S,E,e,t,r){r||(r={});var o=r.tickSuffixDflt,a=v(S),n=e("tickprefix");n&&e("showtickprefix",a);var i=e("ticksuffix",o);i&&e("showticksuffix",a)}}}),c5=Xe({"src/components/colorbar/defaults.js"(Z,G){"use strict";var v=sa(),x=zl(),S=Y0(),E=t1(),e=Qm(),t=e0(),r=x2();G.exports=function(a,n,i){var s=x.newContainer(n,"colorbar"),h=a.colorbar||{};function c(P,U){return v.coerce(h,s,r,P,U)}var m=i.margin||{t:0,b:0,l:0,r:0},p=i.width-m.l-m.r,T=i.height-m.t-m.b,l=c("orientation"),_=l==="v",w=c("thicknessmode");c("thickness",w==="fraction"?30/(_?p:T):30);var A=c("lenmode");c("len",A==="fraction"?1:_?T:p);var M=c("yref"),g=c("xref"),b=M==="paper",d=g==="paper",u,y,f,R="left";_?(f="middle",R=d?"left":"right",u=d?1.02:1,y=.5):(f=b?"bottom":"top",R="center",u=.5,y=b?1.02:1),v.coerce(h,s,{x:{valType:"number",min:d?-2:0,max:d?3:1,dflt:u}},"x"),v.coerce(h,s,{y:{valType:"number",min:b?-2:0,max:b?3:1,dflt:y}},"y"),c("xanchor",R),c("xpad"),c("yanchor",f),c("ypad"),v.noneOrAll(h,s,["x","y"]),c("outlinecolor"),c("outlinewidth"),c("bordercolor"),c("borderwidth"),c("bgcolor");var L=v.coerce(h,s,{ticklabelposition:{valType:"enumerated",dflt:"outside",values:_?["outside","inside","outside top","inside top","outside bottom","inside bottom"]:["outside","inside","outside left","inside left","outside right","inside right"]}},"ticklabelposition");c("ticklabeloverflow",L.indexOf("inside")!==-1?"hide past domain":"hide past div"),S(h,s,c,"linear");var z=i.font,F={noAutotickangles:!0,noTicklabelshift:!0,noTicklabelstandoff:!0,outerTicks:!1,font:z};L.indexOf("inside")!==-1&&(F.bgColor="black"),t(h,s,c,"linear",F),e(h,s,c,"linear",F),E(h,s,c,"linear",F),c("title.text",i._dfltTitle.colorbar);var N=s.showticklabels?s.tickfont:z,O=v.extendFlat({},z,{family:N.family,size:v.bigFont(N.size)});v.coerceFont(c,"title.font",O),c("title.side",_?"top":"right")}}}),_h=Xe({"src/components/colorscale/defaults.js"(Z,G){"use strict";var v=rs(),x=sa(),S=s5(),E=c5(),e=W0().isValid,t=so().traceIs;function r(o,a){var n=a.slice(0,a.length-1);return a?x.nestedProperty(o,n).get()||{}:o}G.exports=function o(a,n,i,s,h){var c=h.prefix,m=h.cLetter,p="_module"in n,T=r(a,c),l=r(n,c),_=r(n._template||{},c)||{},w=function(){return delete a.coloraxis,delete n.coloraxis,o(a,n,i,s,h)};if(p){var A=i._colorAxes||{},M=s(c+"coloraxis");if(M){var g=t(n,"contour")&&x.nestedProperty(n,"contours.coloring").get()||"heatmap",b=A[M];b?(b[2].push(w),b[0]!==g&&(b[0]=!1,x.warn(["Ignoring coloraxis:",M,"setting","as it is linked to incompatible colorscales."].join(" ")))):A[M]=[g,n,[w]];return}}var d=T[m+"min"],u=T[m+"max"],y=v(d)&&v(u)&&d<u,f=s(c+m+"auto",!y);f?s(c+m+"mid"):(s(c+m+"min"),s(c+m+"max"));var R=T.colorscale,L=_.colorscale,z;if(R!==void 0&&(z=!e(R)),L!==void 0&&(z=!e(L)),s(c+"autocolorscale",z),s(c+"colorscale"),s(c+"reversescale"),c!=="marker.line."){var F;c&&p&&(F=S(T));var N=s(c+"showscale",F);N&&(c&&_&&(l._template=_),E(T,l,i))}}}}),oz=Xe({"src/components/colorscale/layout_defaults.js"(Z,G){"use strict";var v=sa(),x=zl(),S=o5(),E=_h();G.exports=function(t,r){function o(p,T){return v.coerce(t,r,S,p,T)}o("colorscale.sequential"),o("colorscale.sequentialminus"),o("colorscale.diverging");var a=r._colorAxes,n,i;function s(p,T){return v.coerce(n,i,S.coloraxis,p,T)}for(var h in a){var c=a[h];if(c[0])n=t[h]||{},i=x.newContainer(r,h,"coloraxis"),i._name=h,E(n,i,r,s,{prefix:"",cLetter:"c"});else{for(var m=0;m<c[2].length;m++)c[2][m]();delete r._colorAxes[h]}}}}}),sz=Xe({"src/components/colorscale/cross_trace_defaults.js"(Z,G){"use strict";var v=sa(),x=wp().hasColorscale,S=wp().extractOpts;G.exports=function(e,t){function r(c,m){var p=c["_"+m];p!==void 0&&(c[m]=p)}function o(c,m){var p=m.container?v.nestedProperty(c,m.container).get():c;if(p)if(p.coloraxis)p._colorAx=t[p.coloraxis];else{var T=S(p),l=T.auto;(l||T.min===void 0)&&r(p,m.min),(l||T.max===void 0)&&r(p,m.max),T.autocolorscale&&r(p,"colorscale")}}for(var a=0;a<e.length;a++){var n=e[a],i=n._module.colorbar;if(i)if(Array.isArray(i))for(var s=0;s<i.length;s++)o(n,i[s]);else o(n,i);x(n,"marker.line")&&o(n,{container:"marker.line",min:"cmin",max:"cmax"})}for(var h in t._colorAxes)o(t[h],{min:"cmin",max:"cmax"})}}}),Tp=Xe({"src/components/colorscale/calc.js"(Z,G){"use strict";var v=rs(),x=sa(),S=wp().extractOpts;G.exports=function(e,t,r){var o=e._fullLayout,a=r.vals,n=r.containerStr,i=n?x.nestedProperty(t,n).get():t,s=S(i),h=s.auto!==!1,c=s.min,m=s.max,p=s.mid,T=function(){return x.aggNums(Math.min,null,a)},l=function(){return x.aggNums(Math.max,null,a)};if(c===void 0?c=T():h&&(i._colorAx&&v(c)?c=Math.min(c,T()):c=T()),m===void 0?m=l():h&&(i._colorAx&&v(m)?m=Math.max(m,l()):m=l()),h&&p!==void 0&&(m-p>p-c?c=p-(m-p):m-p<p-c&&(m=p+(p-c))),c===m&&(c-=.5,m+=.5),s._sync("min",c),s._sync("max",m),s.autocolorscale){var _;c*m<0?_=o.colorscale.diverging:c>=0?_=o.colorscale.sequential:_=o.colorscale.sequentialminus,s._sync("colorscale",_)}}}}),rc=Xe({"src/components/colorscale/index.js"(Z,G){"use strict";var v=W0(),x=wp();G.exports={moduleType:"component",name:"colorscale",attributes:ku(),layoutAttributes:o5(),supplyLayoutDefaults:oz(),handleDefaults:_h(),crossTraceDefaults:sz(),calc:Tp(),scales:v.scales,defaultScale:v.defaultScale,getScale:v.get,isValidScale:v.isValid,hasColorscale:x.hasColorscale,extractOpts:x.extractOpts,extractScale:x.extractScale,flipScale:x.flipScale,makeColorScaleFunc:x.makeColorScaleFunc,makeColorScaleFuncFromTrace:x.makeColorScaleFuncFromTrace}}}),Fu=Xe({"src/traces/scatter/subtypes.js"(Z,G){"use strict";var v=sa(),x=bp().isTypedArraySpec;G.exports={hasLines:function(S){return S.visible&&S.mode&&S.mode.indexOf("lines")!==-1},hasMarkers:function(S){return S.visible&&(S.mode&&S.mode.indexOf("markers")!==-1||S.type==="splom")},hasText:function(S){return S.visible&&S.mode&&S.mode.indexOf("text")!==-1},isBubble:function(S){var E=S.marker;return v.isPlainObject(E)&&(v.isArrayOrTypedArray(E.size)||x(E.size))}}}}),r1=Xe({"src/traces/scatter/make_bubble_size_func.js"(Z,G){"use strict";var v=rs();G.exports=function(S,E){E||(E=2);var e=S.marker,t=e.sizeref||1,r=e.sizemin||0,o=e.sizemode==="area"?function(a){return Math.sqrt(a/t)}:function(a){return a/t};return function(a){var n=o(a/E);return v(n)&&n>0?Math.max(n,r):0}}}}),$p=Xe({"src/components/fx/helpers.js"(Z){"use strict";var G=sa();Z.getSubplot=function(t){return t.subplot||t.xaxis+t.yaxis||t.geo},Z.isTraceInSubplots=function(t,r){if(t.type==="splom"){for(var o=t.xaxes||[],a=t.yaxes||[],n=0;n<o.length;n++)for(var i=0;i<a.length;i++)if(r.indexOf(o[n]+a[i])!==-1)return!0;return!1}return r.indexOf(Z.getSubplot(t))!==-1},Z.flat=function(t,r){for(var o=new Array(t.length),a=0;a<t.length;a++)o[a]=r;return o},Z.p2c=function(t,r){for(var o=new Array(t.length),a=0;a<t.length;a++)o[a]=t[a].p2c(r);return o},Z.getDistanceFunction=function(t,r,o,a){return t==="closest"?a||Z.quadrature(r,o):t.charAt(0)==="x"?r:o},Z.getClosest=function(t,r,o){if(o.index!==!1)o.index>=0&&o.index<t.length?o.distance=0:o.index=!1;else for(var a=1/0,n=t.length,i=0;i<n;i++)a=r(t[i]),a<=o.distance&&(o.index=i,o.distance=a);return o},Z.inbox=function(t,r,o){return t*r<0||t===0?o:1/0},Z.quadrature=function(t,r){return function(o){var a=t(o),n=r(o);return Math.sqrt(a*a+n*n)}},Z.makeEventData=function(t,r,o){var a="index"in t?t.index:t.pointNumber,n={data:r._input,fullData:r,curveNumber:r.index,pointNumber:a};if(r._indexToPoints){var i=r._indexToPoints[a];i.length===1?n.pointIndex=i[0]:n.pointIndices=i}else n.pointIndex=a;return r._module.eventData?n=r._module.eventData(n,t,r,o,a):("xVal"in t?n.x=t.xVal:"x"in t&&(n.x=t.x),"yVal"in t?n.y=t.yVal:"y"in t&&(n.y=t.y),t.xa&&(n.xaxis=t.xa),t.ya&&(n.yaxis=t.ya),t.zLabelVal!==void 0&&(n.z=t.zLabelVal)),Z.appendArrayPointValue(n,r,a),n},Z.appendArrayPointValue=function(t,r,o){var a=r._arrayAttrs;if(a)for(var n=0;n<a.length;n++){var i=a[n],s=x(i);if(t[s]===void 0){var h=G.nestedProperty(r,i).get(),c=S(h,o);c!==void 0&&(t[s]=c)}}},Z.appendArrayMultiPointValues=function(t,r,o){var a=r._arrayAttrs;if(a)for(var n=0;n<a.length;n++){var i=a[n],s=x(i);if(t[s]===void 0){for(var h=G.nestedProperty(r,i).get(),c=new Array(o.length),m=0;m<o.length;m++)c[m]=S(h,o[m]);t[s]=c}}};var v={ids:"id",locations:"location",labels:"label",values:"value","marker.colors":"color",parents:"parent"};function x(t){return v[t]||t}function S(t,r){if(Array.isArray(r)){if(G.isArrayOrTypedArray(t)&&G.isArrayOrTypedArray(t[r[0]]))return t[r[0]][r[1]]}else return t[r]}var E={x:!0,y:!0},e={"x unified":!0,"y unified":!0};Z.isUnifiedHover=function(t){return typeof t!="string"?!1:!!e[t]},Z.isXYhover=function(t){return typeof t!="string"?!1:!!E[t]}}}),M_=Xe({"node_modules/parse-svg-path/index.js"(Z,G){G.exports=S;var v={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},x=/([astvzqmhlc])([^astvzqmhlc]*)/ig;function S(t){var r=[];return t.replace(x,function(o,a,n){var i=a.toLowerCase();for(n=e(n),i=="m"&&n.length>2&&(r.push([a].concat(n.splice(0,2))),i="l",a=a=="m"?"l":"L");;){if(n.length==v[i])return n.unshift(a),r.push(n);if(n.length<v[i])throw new Error("malformed path data");r.push([a].concat(n.splice(0,v[i])))}}),r}var E=/-?[0-9]*\.?[0-9]+(?:e[-+]?\d+)?/ig;function e(t){var r=t.match(E);return r?r.map(Number):[]}}}),lz=Xe({"src/components/drawing/symbol_defs.js"(Z,G){"use strict";var v=M_(),x=function(m,p){return p?Math.round(m*(p=Math.pow(10,p)))/p:Math.round(m)},S="M0,0Z",E=Math.sqrt(2),e=Math.sqrt(3),t=Math.PI,r=Math.cos,o=Math.sin;G.exports={circle:{n:0,f:function(m,p,T){if(a(p))return S;var l=x(m,2),_="M"+l+",0A"+l+","+l+" 0 1,1 0,-"+l+"A"+l+","+l+" 0 0,1 "+l+",0Z";return T?c(p,T,_):_}},square:{n:1,f:function(m,p,T){if(a(p))return S;var l=x(m,2);return c(p,T,"M"+l+","+l+"H-"+l+"V-"+l+"H"+l+"Z")}},diamond:{n:2,f:function(m,p,T){if(a(p))return S;var l=x(m*1.3,2);return c(p,T,"M"+l+",0L0,"+l+"L-"+l+",0L0,-"+l+"Z")}},cross:{n:3,f:function(m,p,T){if(a(p))return S;var l=x(m*.4,2),_=x(m*1.2,2);return c(p,T,"M"+_+","+l+"H"+l+"V"+_+"H-"+l+"V"+l+"H-"+_+"V-"+l+"H-"+l+"V-"+_+"H"+l+"V-"+l+"H"+_+"Z")}},x:{n:4,f:function(m,p,T){if(a(p))return S;var l=x(m*.8/E,2),_="l"+l+","+l,w="l"+l+",-"+l,A="l-"+l+",-"+l,M="l-"+l+","+l;return c(p,T,"M0,"+l+_+w+A+w+A+M+A+M+_+M+_+"Z")}},"triangle-up":{n:5,f:function(m,p,T){if(a(p))return S;var l=x(m*2/e,2),_=x(m/2,2),w=x(m,2);return c(p,T,"M-"+l+","+_+"H"+l+"L0,-"+w+"Z")}},"triangle-down":{n:6,f:function(m,p,T){if(a(p))return S;var l=x(m*2/e,2),_=x(m/2,2),w=x(m,2);return c(p,T,"M-"+l+",-"+_+"H"+l+"L0,"+w+"Z")}},"triangle-left":{n:7,f:function(m,p,T){if(a(p))return S;var l=x(m*2/e,2),_=x(m/2,2),w=x(m,2);return c(p,T,"M"+_+",-"+l+"V"+l+"L-"+w+",0Z")}},"triangle-right":{n:8,f:function(m,p,T){if(a(p))return S;var l=x(m*2/e,2),_=x(m/2,2),w=x(m,2);return c(p,T,"M-"+_+",-"+l+"V"+l+"L"+w+",0Z")}},"triangle-ne":{n:9,f:function(m,p,T){if(a(p))return S;var l=x(m*.6,2),_=x(m*1.2,2);return c(p,T,"M-"+_+",-"+l+"H"+l+"V"+_+"Z")}},"triangle-se":{n:10,f:function(m,p,T){if(a(p))return S;var l=x(m*.6,2),_=x(m*1.2,2);return c(p,T,"M"+l+",-"+_+"V"+l+"H-"+_+"Z")}},"triangle-sw":{n:11,f:function(m,p,T){if(a(p))return S;var l=x(m*.6,2),_=x(m*1.2,2);return c(p,T,"M"+_+","+l+"H-"+l+"V-"+_+"Z")}},"triangle-nw":{n:12,f:function(m,p,T){if(a(p))return S;var l=x(m*.6,2),_=x(m*1.2,2);return c(p,T,"M-"+l+","+_+"V-"+l+"H"+_+"Z")}},pentagon:{n:13,f:function(m,p,T){if(a(p))return S;var l=x(m*.951,2),_=x(m*.588,2),w=x(-m,2),A=x(m*-.309,2),M=x(m*.809,2);return c(p,T,"M"+l+","+A+"L"+_+","+M+"H-"+_+"L-"+l+","+A+"L0,"+w+"Z")}},hexagon:{n:14,f:function(m,p,T){if(a(p))return S;var l=x(m,2),_=x(m/2,2),w=x(m*e/2,2);return c(p,T,"M"+w+",-"+_+"V"+_+"L0,"+l+"L-"+w+","+_+"V-"+_+"L0,-"+l+"Z")}},hexagon2:{n:15,f:function(m,p,T){if(a(p))return S;var l=x(m,2),_=x(m/2,2),w=x(m*e/2,2);return c(p,T,"M-"+_+","+w+"H"+_+"L"+l+",0L"+_+",-"+w+"H-"+_+"L-"+l+",0Z")}},octagon:{n:16,f:function(m,p,T){if(a(p))return S;var l=x(m*.924,2),_=x(m*.383,2);return c(p,T,"M-"+_+",-"+l+"H"+_+"L"+l+",-"+_+"V"+_+"L"+_+","+l+"H-"+_+"L-"+l+","+_+"V-"+_+"Z")}},star:{n:17,f:function(m,p,T){if(a(p))return S;var l=m*1.4,_=x(l*.225,2),w=x(l*.951,2),A=x(l*.363,2),M=x(l*.588,2),g=x(-l,2),b=x(l*-.309,2),d=x(l*.118,2),u=x(l*.809,2),y=x(l*.382,2);return c(p,T,"M"+_+","+b+"H"+w+"L"+A+","+d+"L"+M+","+u+"L0,"+y+"L-"+M+","+u+"L-"+A+","+d+"L-"+w+","+b+"H-"+_+"L0,"+g+"Z")}},hexagram:{n:18,f:function(m,p,T){if(a(p))return S;var l=x(m*.66,2),_=x(m*.38,2),w=x(m*.76,2);return c(p,T,"M-"+w+",0l-"+_+",-"+l+"h"+w+"l"+_+",-"+l+"l"+_+","+l+"h"+w+"l-"+_+","+l+"l"+_+","+l+"h-"+w+"l-"+_+","+l+"l-"+_+",-"+l+"h-"+w+"Z")}},"star-triangle-up":{n:19,f:function(m,p,T){if(a(p))return S;var l=x(m*e*.8,2),_=x(m*.8,2),w=x(m*1.6,2),A=x(m*4,2),M="A "+A+","+A+" 0 0 1 ";return c(p,T,"M-"+l+","+_+M+l+","+_+M+"0,-"+w+M+"-"+l+","+_+"Z")}},"star-triangle-down":{n:20,f:function(m,p,T){if(a(p))return S;var l=x(m*e*.8,2),_=x(m*.8,2),w=x(m*1.6,2),A=x(m*4,2),M="A "+A+","+A+" 0 0 1 ";return c(p,T,"M"+l+",-"+_+M+"-"+l+",-"+_+M+"0,"+w+M+l+",-"+_+"Z")}},"star-square":{n:21,f:function(m,p,T){if(a(p))return S;var l=x(m*1.1,2),_=x(m*2,2),w="A "+_+","+_+" 0 0 1 ";return c(p,T,"M-"+l+",-"+l+w+"-"+l+","+l+w+l+","+l+w+l+",-"+l+w+"-"+l+",-"+l+"Z")}},"star-diamond":{n:22,f:function(m,p,T){if(a(p))return S;var l=x(m*1.4,2),_=x(m*1.9,2),w="A "+_+","+_+" 0 0 1 ";return c(p,T,"M-"+l+",0"+w+"0,"+l+w+l+",0"+w+"0,-"+l+w+"-"+l+",0Z")}},"diamond-tall":{n:23,f:function(m,p,T){if(a(p))return S;var l=x(m*.7,2),_=x(m*1.4,2);return c(p,T,"M0,"+_+"L"+l+",0L0,-"+_+"L-"+l+",0Z")}},"diamond-wide":{n:24,f:function(m,p,T){if(a(p))return S;var l=x(m*1.4,2),_=x(m*.7,2);return c(p,T,"M0,"+_+"L"+l+",0L0,-"+_+"L-"+l+",0Z")}},hourglass:{n:25,f:function(m,p,T){if(a(p))return S;var l=x(m,2);return c(p,T,"M"+l+","+l+"H-"+l+"L"+l+",-"+l+"H-"+l+"Z")},noDot:!0},bowtie:{n:26,f:function(m,p,T){if(a(p))return S;var l=x(m,2);return c(p,T,"M"+l+","+l+"V-"+l+"L-"+l+","+l+"V-"+l+"Z")},noDot:!0},"circle-cross":{n:27,f:function(m,p,T){if(a(p))return S;var l=x(m,2);return c(p,T,"M0,"+l+"V-"+l+"M"+l+",0H-"+l+"M"+l+",0A"+l+","+l+" 0 1,1 0,-"+l+"A"+l+","+l+" 0 0,1 "+l+",0Z")},needLine:!0,noDot:!0},"circle-x":{n:28,f:function(m,p,T){if(a(p))return S;var l=x(m,2),_=x(m/E,2);return c(p,T,"M"+_+","+_+"L-"+_+",-"+_+"M"+_+",-"+_+"L-"+_+","+_+"M"+l+",0A"+l+","+l+" 0 1,1 0,-"+l+"A"+l+","+l+" 0 0,1 "+l+",0Z")},needLine:!0,noDot:!0},"square-cross":{n:29,f:function(m,p,T){if(a(p))return S;var l=x(m,2);return c(p,T,"M0,"+l+"V-"+l+"M"+l+",0H-"+l+"M"+l+","+l+"H-"+l+"V-"+l+"H"+l+"Z")},needLine:!0,noDot:!0},"square-x":{n:30,f:function(m,p,T){if(a(p))return S;var l=x(m,2);return c(p,T,"M"+l+","+l+"L-"+l+",-"+l+"M"+l+",-"+l+"L-"+l+","+l+"M"+l+","+l+"H-"+l+"V-"+l+"H"+l+"Z")},needLine:!0,noDot:!0},"diamond-cross":{n:31,f:function(m,p,T){if(a(p))return S;var l=x(m*1.3,2);return c(p,T,"M"+l+",0L0,"+l+"L-"+l+",0L0,-"+l+"ZM0,-"+l+"V"+l+"M-"+l+",0H"+l)},needLine:!0,noDot:!0},"diamond-x":{n:32,f:function(m,p,T){if(a(p))return S;var l=x(m*1.3,2),_=x(m*.65,2);return c(p,T,"M"+l+",0L0,"+l+"L-"+l+",0L0,-"+l+"ZM-"+_+",-"+_+"L"+_+","+_+"M-"+_+","+_+"L"+_+",-"+_)},needLine:!0,noDot:!0},"cross-thin":{n:33,f:function(m,p,T){if(a(p))return S;var l=x(m*1.4,2);return c(p,T,"M0,"+l+"V-"+l+"M"+l+",0H-"+l)},needLine:!0,noDot:!0,noFill:!0},"x-thin":{n:34,f:function(m,p,T){if(a(p))return S;var l=x(m,2);return c(p,T,"M"+l+","+l+"L-"+l+",-"+l+"M"+l+",-"+l+"L-"+l+","+l)},needLine:!0,noDot:!0,noFill:!0},asterisk:{n:35,f:function(m,p,T){if(a(p))return S;var l=x(m*1.2,2),_=x(m*.85,2);return c(p,T,"M0,"+l+"V-"+l+"M"+l+",0H-"+l+"M"+_+","+_+"L-"+_+",-"+_+"M"+_+",-"+_+"L-"+_+","+_)},needLine:!0,noDot:!0,noFill:!0},hash:{n:36,f:function(m,p,T){if(a(p))return S;var l=x(m/2,2),_=x(m,2);return c(p,T,"M"+l+","+_+"V-"+_+"M"+(l-_)+",-"+_+"V"+_+"M"+_+","+l+"H-"+_+"M-"+_+","+(l-_)+"H"+_)},needLine:!0,noFill:!0},"y-up":{n:37,f:function(m,p,T){if(a(p))return S;var l=x(m*1.2,2),_=x(m*1.6,2),w=x(m*.8,2);return c(p,T,"M-"+l+","+w+"L0,0M"+l+","+w+"L0,0M0,-"+_+"L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-down":{n:38,f:function(m,p,T){if(a(p))return S;var l=x(m*1.2,2),_=x(m*1.6,2),w=x(m*.8,2);return c(p,T,"M-"+l+",-"+w+"L0,0M"+l+",-"+w+"L0,0M0,"+_+"L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-left":{n:39,f:function(m,p,T){if(a(p))return S;var l=x(m*1.2,2),_=x(m*1.6,2),w=x(m*.8,2);return c(p,T,"M"+w+","+l+"L0,0M"+w+",-"+l+"L0,0M-"+_+",0L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-right":{n:40,f:function(m,p,T){if(a(p))return S;var l=x(m*1.2,2),_=x(m*1.6,2),w=x(m*.8,2);return c(p,T,"M-"+w+","+l+"L0,0M-"+w+",-"+l+"L0,0M"+_+",0L0,0")},needLine:!0,noDot:!0,noFill:!0},"line-ew":{n:41,f:function(m,p,T){if(a(p))return S;var l=x(m*1.4,2);return c(p,T,"M"+l+",0H-"+l)},needLine:!0,noDot:!0,noFill:!0},"line-ns":{n:42,f:function(m,p,T){if(a(p))return S;var l=x(m*1.4,2);return c(p,T,"M0,"+l+"V-"+l)},needLine:!0,noDot:!0,noFill:!0},"line-ne":{n:43,f:function(m,p,T){if(a(p))return S;var l=x(m,2);return c(p,T,"M"+l+",-"+l+"L-"+l+","+l)},needLine:!0,noDot:!0,noFill:!0},"line-nw":{n:44,f:function(m,p,T){if(a(p))return S;var l=x(m,2);return c(p,T,"M"+l+","+l+"L-"+l+",-"+l)},needLine:!0,noDot:!0,noFill:!0},"arrow-up":{n:45,f:function(m,p,T){if(a(p))return S;var l=x(m,2),_=x(m*2,2);return c(p,T,"M0,0L-"+l+","+_+"H"+l+"Z")},backoff:1,noDot:!0},"arrow-down":{n:46,f:function(m,p,T){if(a(p))return S;var l=x(m,2),_=x(m*2,2);return c(p,T,"M0,0L-"+l+",-"+_+"H"+l+"Z")},noDot:!0},"arrow-left":{n:47,f:function(m,p,T){if(a(p))return S;var l=x(m*2,2),_=x(m,2);return c(p,T,"M0,0L"+l+",-"+_+"V"+_+"Z")},noDot:!0},"arrow-right":{n:48,f:function(m,p,T){if(a(p))return S;var l=x(m*2,2),_=x(m,2);return c(p,T,"M0,0L-"+l+",-"+_+"V"+_+"Z")},noDot:!0},"arrow-bar-up":{n:49,f:function(m,p,T){if(a(p))return S;var l=x(m,2),_=x(m*2,2);return c(p,T,"M-"+l+",0H"+l+"M0,0L-"+l+","+_+"H"+l+"Z")},backoff:1,needLine:!0,noDot:!0},"arrow-bar-down":{n:50,f:function(m,p,T){if(a(p))return S;var l=x(m,2),_=x(m*2,2);return c(p,T,"M-"+l+",0H"+l+"M0,0L-"+l+",-"+_+"H"+l+"Z")},needLine:!0,noDot:!0},"arrow-bar-left":{n:51,f:function(m,p,T){if(a(p))return S;var l=x(m*2,2),_=x(m,2);return c(p,T,"M0,-"+_+"V"+_+"M0,0L"+l+",-"+_+"V"+_+"Z")},needLine:!0,noDot:!0},"arrow-bar-right":{n:52,f:function(m,p,T){if(a(p))return S;var l=x(m*2,2),_=x(m,2);return c(p,T,"M0,-"+_+"V"+_+"M0,0L-"+l+",-"+_+"V"+_+"Z")},needLine:!0,noDot:!0},arrow:{n:53,f:function(m,p,T){if(a(p))return S;var l=t/2.5,_=2*m*r(l),w=2*m*o(l);return c(p,T,"M0,0L"+-_+","+w+"L"+_+","+w+"Z")},backoff:.9,noDot:!0},"arrow-wide":{n:54,f:function(m,p,T){if(a(p))return S;var l=t/4,_=2*m*r(l),w=2*m*o(l);return c(p,T,"M0,0L"+-_+","+w+"A "+2*m+","+2*m+" 0 0 1 "+_+","+w+"Z")},backoff:.4,noDot:!0}};function a(m){return m===null}var n,i,s,h;function c(m,p,T){if((!m||m%360===0)&&!p)return T;if(s===m&&h===p&&n===T)return i;s=m,h=p,n=T;function l(z,F){var N=r(z),O=o(z),P=F[0],U=F[1]+(p||0);return[P*N-U*O,P*O+U*N]}for(var _=m/180*t,w=0,A=0,M=v(T),g="",b=0;b<M.length;b++){var d=M[b],u=d[0],y=w,f=A;if(u==="M"||u==="L")w=+d[1],A=+d[2];else if(u==="m"||u==="l")w+=+d[1],A+=+d[2];else if(u==="H")w=+d[1];else if(u==="h")w+=+d[1];else if(u==="V")A=+d[1];else if(u==="v")A+=+d[1];else if(u==="A"){w=+d[1],A=+d[2];var R=l(_,[+d[6],+d[7]]);d[6]=R[0],d[7]=R[1],d[3]=+d[3]+m}(u==="H"||u==="V")&&(u="L"),(u==="h"||u==="v")&&(u="l"),(u==="m"||u==="l")&&(w-=y,A-=f);var L=l(_,[w,A]);(u==="H"||u==="V")&&(u="L"),(u==="M"||u==="L"||u==="m"||u==="l")&&(d[1]=L[0],d[2]=L[1]),d[0]=u,g+=d[0]+d.slice(1).join(",")}return i=g,g}}}),es=Xe({"src/components/drawing/index.js"(Z,G){"use strict";var v=Hn(),x=sa(),S=x.numberFormat,E=rs(),e=Ch(),t=so(),r=$n(),o=rc(),a=x.strTranslate,n=ou(),i=vd(),s=uh(),h=s.LINE_SPACING,c=Ym().DESELECTDIM,m=Fu(),p=r1(),T=$p().appendArrayPointValue,l=G.exports={};l.font=function(Me,ye){var he=ye.variant,Oe=ye.style,tt=ye.weight,ot=ye.color,Qe=ye.size,Pt=ye.family,It=ye.shadow,qt=ye.lineposition,Wt=ye.textcase;Pt&&Me.style("font-family",Pt),Qe+1&&Me.style("font-size",Qe+"px"),ot&&Me.call(r.fill,ot),tt&&Me.style("font-weight",tt),Oe&&Me.style("font-style",Oe),he&&Me.style("font-variant",he),Wt&&Me.style("text-transform",_(A(Wt))),It&&Me.style("text-shadow",It==="auto"?n.makeTextShadow(r.contrast(ot)):_(It)),qt&&Me.style("text-decoration-line",_(M(qt)))};function _(Me){return Me==="none"?void 0:Me}var w={normal:"none",lower:"lowercase",upper:"uppercase","word caps":"capitalize"};function A(Me){return w[Me]}function M(Me){return Me.replace("under","underline").replace("over","overline").replace("through","line-through").split("+").join(" ")}l.setPosition=function(Me,ye,he){Me.attr("x",ye).attr("y",he)},l.setSize=function(Me,ye,he){Me.attr("width",ye).attr("height",he)},l.setRect=function(Me,ye,he,Oe,tt){Me.call(l.setPosition,ye,he).call(l.setSize,Oe,tt)},l.translatePoint=function(Me,ye,he,Oe){var tt=he.c2p(Me.x),ot=Oe.c2p(Me.y);if(E(tt)&&E(ot)&&ye.node())ye.node().nodeName==="text"?ye.attr("x",tt).attr("y",ot):ye.attr("transform",a(tt,ot));else return!1;return!0},l.translatePoints=function(Me,ye,he){Me.each(function(Oe){var tt=v.select(this);l.translatePoint(Oe,tt,ye,he)})},l.hideOutsideRangePoint=function(Me,ye,he,Oe,tt,ot){ye.attr("display",he.isPtWithinRange(Me,tt)&&Oe.isPtWithinRange(Me,ot)?null:"none")},l.hideOutsideRangePoints=function(Me,ye){if(ye._hasClipOnAxisFalse){var he=ye.xaxis,Oe=ye.yaxis;Me.each(function(tt){var ot=tt[0].trace,Qe=ot.xcalendar,Pt=ot.ycalendar,It=t.traceIs(ot,"bar-like")?".bartext":".point,.textpoint";Me.selectAll(It).each(function(qt){l.hideOutsideRangePoint(qt,v.select(this),he,Oe,Qe,Pt)})})}},l.crispRound=function(Me,ye,he){return!ye||!E(ye)?he||0:Me._context.staticPlot?ye:ye<1?1:Math.round(ye)},l.singleLineStyle=function(Me,ye,he,Oe,tt){ye.style("fill","none");var ot=(((Me||[])[0]||{}).trace||{}).line||{},Qe=he||ot.width||0,Pt=tt||ot.dash||"";r.stroke(ye,Oe||ot.color),l.dashLine(ye,Pt,Qe)},l.lineGroupStyle=function(Me,ye,he,Oe){Me.style("fill","none").each(function(tt){var ot=(((tt||[])[0]||{}).trace||{}).line||{},Qe=ye||ot.width||0,Pt=Oe||ot.dash||"";v.select(this).call(r.stroke,he||ot.color).call(l.dashLine,Pt,Qe)})},l.dashLine=function(Me,ye,he){he=+he||0,ye=l.dashStyle(ye,he),Me.style({"stroke-dasharray":ye,"stroke-width":he+"px"})},l.dashStyle=function(Me,ye){ye=+ye||1;var he=Math.max(ye,3);return Me==="solid"?Me="":Me==="dot"?Me=he+"px,"+he+"px":Me==="dash"?Me=3*he+"px,"+3*he+"px":Me==="longdash"?Me=5*he+"px,"+5*he+"px":Me==="dashdot"?Me=3*he+"px,"+he+"px,"+he+"px,"+he+"px":Me==="longdashdot"&&(Me=5*he+"px,"+2*he+"px,"+he+"px,"+2*he+"px"),Me};function g(Me,ye,he,Oe){var tt=ye.fillpattern,ot=ye.fillgradient,Qe=l.getPatternAttr,Pt=tt&&(Qe(tt.shape,0,"")||Qe(tt.path,0,""));if(Pt){var It=Qe(tt.bgcolor,0,null),qt=Qe(tt.fgcolor,0,null),Wt=tt.fgopacity,kr=Qe(tt.size,0,8),mr=Qe(tt.solidity,0,.3),qr=ye.uid;l.pattern(Me,"point",he,qr,Pt,kr,mr,void 0,tt.fillmode,It,qt,Wt)}else if(ot&&ot.type!=="none"){var Sr=ot.type,Rr="scatterfill-"+ye.uid;if(Oe&&(Rr="legendfill-"+ye.uid),!Oe&&(ot.start!==void 0||ot.stop!==void 0)){var wt,Ne;Sr==="horizontal"?(wt={x:ot.start,y:0},Ne={x:ot.stop,y:0}):Sr==="vertical"&&(wt={x:0,y:ot.start},Ne={x:0,y:ot.stop}),wt.x=ye._xA.c2p(wt.x===void 0?ye._extremes.x.min[0].val:wt.x,!0),wt.y=ye._yA.c2p(wt.y===void 0?ye._extremes.y.min[0].val:wt.y,!0),Ne.x=ye._xA.c2p(Ne.x===void 0?ye._extremes.x.max[0].val:Ne.x,!0),Ne.y=ye._yA.c2p(Ne.y===void 0?ye._extremes.y.max[0].val:Ne.y,!0),Me.call(L,he,Rr,"linear",ot.colorscale,"fill",wt,Ne,!0,!1)}else Sr==="horizontal"&&(Sr=Sr+"reversed"),Me.call(l.gradient,he,Rr,Sr,ot.colorscale,"fill")}else ye.fillcolor&&Me.call(r.fill,ye.fillcolor)}l.singleFillStyle=function(Me,ye){var he=v.select(Me.node()),Oe=he.data(),tt=((Oe[0]||[])[0]||{}).trace||{};g(Me,tt,ye,!1)},l.fillGroupStyle=function(Me,ye,he){Me.style("stroke-width",0).each(function(Oe){var tt=v.select(this);Oe[0].trace&&g(tt,Oe[0].trace,ye,he)})};var b=lz();l.symbolNames=[],l.symbolFuncs=[],l.symbolBackOffs=[],l.symbolNeedLines={},l.symbolNoDot={},l.symbolNoFill={},l.symbolList=[],Object.keys(b).forEach(function(Me){var ye=b[Me],he=ye.n;l.symbolList.push(he,String(he),Me,he+100,String(he+100),Me+"-open"),l.symbolNames[he]=Me,l.symbolFuncs[he]=ye.f,l.symbolBackOffs[he]=ye.backoff||0,ye.needLine&&(l.symbolNeedLines[he]=!0),ye.noDot?l.symbolNoDot[he]=!0:l.symbolList.push(he+200,String(he+200),Me+"-dot",he+300,String(he+300),Me+"-open-dot"),ye.noFill&&(l.symbolNoFill[he]=!0)});var d=l.symbolNames.length,u="M0,0.5L0.5,0L0,-0.5L-0.5,0Z";l.symbolNumber=function(Me){if(E(Me))Me=+Me;else if(typeof Me=="string"){var ye=0;Me.indexOf("-open")>0&&(ye=100,Me=Me.replace("-open","")),Me.indexOf("-dot")>0&&(ye+=200,Me=Me.replace("-dot","")),Me=l.symbolNames.indexOf(Me),Me>=0&&(Me+=ye)}return Me%100>=d||Me>=400?0:Math.floor(Math.max(Me,0))};function y(Me,ye,he,Oe){var tt=Me%100;return l.symbolFuncs[tt](ye,he,Oe)+(Me>=200?u:"")}var f=S("~f"),R={radial:{type:"radial"},radialreversed:{type:"radial",reversed:!0},horizontal:{type:"linear",start:{x:1,y:0},stop:{x:0,y:0}},horizontalreversed:{type:"linear",start:{x:1,y:0},stop:{x:0,y:0},reversed:!0},vertical:{type:"linear",start:{x:0,y:1},stop:{x:0,y:0}},verticalreversed:{type:"linear",start:{x:0,y:1},stop:{x:0,y:0},reversed:!0}};l.gradient=function(Me,ye,he,Oe,tt,ot){var Qe=R[Oe];return L(Me,ye,he,Qe.type,tt,ot,Qe.start,Qe.stop,!1,Qe.reversed)};function L(Me,ye,he,Oe,tt,ot,Qe,Pt,It,qt){var Wt=tt.length,kr;Oe==="linear"?kr={node:"linearGradient",attrs:{x1:Qe.x,y1:Qe.y,x2:Pt.x,y2:Pt.y,gradientUnits:It?"userSpaceOnUse":"objectBoundingBox"},reversed:qt}:Oe==="radial"&&(kr={node:"radialGradient",reversed:qt});for(var mr=new Array(Wt),qr=0;qr<Wt;qr++)kr.reversed?mr[Wt-1-qr]=[f((1-tt[qr][0])*100),tt[qr][1]]:mr[qr]=[f(tt[qr][0]*100),tt[qr][1]];var Sr=ye._fullLayout,Rr="g"+Sr._uid+"-"+he,wt=Sr._defs.select(".gradients").selectAll("#"+Rr).data([Oe+mr.join(";")],x.identity);wt.exit().remove(),wt.enter().append(kr.node).each(function(){var Ne=v.select(this);kr.attrs&&Ne.attr(kr.attrs),Ne.attr("id",Rr);var Ke=Ne.selectAll("stop").data(mr);Ke.exit().remove(),Ke.enter().append("stop"),Ke.each(function(Te){var Ie=e(Te[1]);v.select(this).attr({offset:Te[0]+"%","stop-color":r.tinyRGB(Ie),"stop-opacity":Ie.getAlpha()})})}),Me.style(ot,oe(Rr,ye)).style(ot+"-opacity",null),Me.classed("gradient_filled",!0)}l.pattern=function(Me,ye,he,Oe,tt,ot,Qe,Pt,It,qt,Wt,kr){var mr=ye==="legend";Pt&&(It==="overlay"?(qt=Pt,Wt=r.contrast(qt)):(qt=void 0,Wt=Pt));var qr=he._fullLayout,Sr="p"+qr._uid+"-"+Oe,Rr,wt,Ne=function(ir,rr,er,Lr,fa){return Lr+(fa-Lr)*(ir-rr)/(er-rr)},Ke,Te,Ie,Ve,Ce={},Ee=e(Wt),Pe=r.tinyRGB(Ee),ft=Ee.getAlpha(),ct=kr*ft;switch(tt){case"/":Rr=ot*Math.sqrt(2),wt=ot*Math.sqrt(2),Ke="M-"+Rr/4+","+wt/4+"l"+Rr/2+",-"+wt/2+"M0,"+wt+"L"+Rr+",0M"+Rr/4*3+","+wt/4*5+"l"+Rr/2+",-"+wt/2,Te=Qe*ot,Ve="path",Ce={d:Ke,opacity:ct,stroke:Pe,"stroke-width":Te+"px"};break;case"\\":Rr=ot*Math.sqrt(2),wt=ot*Math.sqrt(2),Ke="M"+Rr/4*3+",-"+wt/4+"l"+Rr/2+","+wt/2+"M0,0L"+Rr+","+wt+"M-"+Rr/4+","+wt/4*3+"l"+Rr/2+","+wt/2,Te=Qe*ot,Ve="path",Ce={d:Ke,opacity:ct,stroke:Pe,"stroke-width":Te+"px"};break;case"x":Rr=ot*Math.sqrt(2),wt=ot*Math.sqrt(2),Ke="M-"+Rr/4+","+wt/4+"l"+Rr/2+",-"+wt/2+"M0,"+wt+"L"+Rr+",0M"+Rr/4*3+","+wt/4*5+"l"+Rr/2+",-"+wt/2+"M"+Rr/4*3+",-"+wt/4+"l"+Rr/2+","+wt/2+"M0,0L"+Rr+","+wt+"M-"+Rr/4+","+wt/4*3+"l"+Rr/2+","+wt/2,Te=ot-ot*Math.sqrt(1-Qe),Ve="path",Ce={d:Ke,opacity:ct,stroke:Pe,"stroke-width":Te+"px"};break;case"|":Rr=ot,wt=ot,Ve="path",Ke="M"+Rr/2+",0L"+Rr/2+","+wt,Te=Qe*ot,Ve="path",Ce={d:Ke,opacity:ct,stroke:Pe,"stroke-width":Te+"px"};break;case"-":Rr=ot,wt=ot,Ve="path",Ke="M0,"+wt/2+"L"+Rr+","+wt/2,Te=Qe*ot,Ve="path",Ce={d:Ke,opacity:ct,stroke:Pe,"stroke-width":Te+"px"};break;case"+":Rr=ot,wt=ot,Ve="path",Ke="M"+Rr/2+",0L"+Rr/2+","+wt+"M0,"+wt/2+"L"+Rr+","+wt/2,Te=ot-ot*Math.sqrt(1-Qe),Ve="path",Ce={d:Ke,opacity:ct,stroke:Pe,"stroke-width":Te+"px"};break;case".":Rr=ot,wt=ot,Qe<Math.PI/4?Ie=Math.sqrt(Qe*ot*ot/Math.PI):Ie=Ne(Qe,Math.PI/4,1,ot/2,ot/Math.sqrt(2)),Ve="circle",Ce={cx:Rr/2,cy:wt/2,r:Ie,opacity:ct,fill:Pe};break;default:Rr=ot,wt=ot,Ve="path",Ce={d:tt,opacity:ct,fill:Pe};break}var _t=[tt||"noSh",qt||"noBg",Wt||"noFg",ot,Qe].join(";"),Ct=qr._defs.select(".patterns").selectAll("#"+Sr).data([_t],x.identity);Ct.exit().remove(),Ct.enter().append("pattern").each(function(){var ir=v.select(this);if(ir.attr({id:Sr,width:Rr+"px",height:wt+"px",patternUnits:"userSpaceOnUse",patternTransform:mr?"scale(0.8)":""}),qt){var rr=e(qt),er=r.tinyRGB(rr),Lr=rr.getAlpha(),fa=ir.selectAll("rect").data([0]);fa.exit().remove(),fa.enter().append("rect").attr({width:Rr+"px",height:wt+"px",fill:er,"fill-opacity":Lr})}var Da=ir.selectAll(Ve).data([0]);Da.exit().remove(),Da.enter().append(Ve).attr(Ce)}),Me.style("fill",oe(Sr,he)).style("fill-opacity",null),Me.classed("pattern_filled",!0)},l.initGradients=function(Me){var ye=Me._fullLayout,he=x.ensureSingle(ye._defs,"g","gradients");he.selectAll("linearGradient,radialGradient").remove(),v.select(Me).selectAll(".gradient_filled").classed("gradient_filled",!1)},l.initPatterns=function(Me){var ye=Me._fullLayout,he=x.ensureSingle(ye._defs,"g","patterns");he.selectAll("pattern").remove(),v.select(Me).selectAll(".pattern_filled").classed("pattern_filled",!1)},l.getPatternAttr=function(Me,ye,he){return Me&&x.isArrayOrTypedArray(Me)?ye<Me.length?Me[ye]:he:Me},l.pointStyle=function(Me,ye,he,Oe){if(Me.size()){var tt=l.makePointStyleFns(ye);Me.each(function(ot){l.singlePointStyle(ot,v.select(this),ye,tt,he,Oe)})}},l.singlePointStyle=function(Me,ye,he,Oe,tt,ot){var Qe=he.marker,Pt=Qe.line;if(ot&&ot.i>=0&&Me.i===void 0&&(Me.i=ot.i),ye.style("opacity",Oe.selectedOpacityFn?Oe.selectedOpacityFn(Me):Me.mo===void 0?Qe.opacity:Me.mo),Oe.ms2mrc){var It;Me.ms==="various"||Qe.size==="various"?It=3:It=Oe.ms2mrc(Me.ms),Me.mrc=It,Oe.selectedSizeFn&&(It=Me.mrc=Oe.selectedSizeFn(Me));var qt=l.symbolNumber(Me.mx||Qe.symbol)||0;Me.om=qt%200>=100;var Wt=st(Me,he),kr=Q(Me,he);ye.attr("d",y(qt,It,Wt,kr))}var mr=!1,qr,Sr,Rr;if(Me.so)Rr=Pt.outlierwidth,Sr=Pt.outliercolor,qr=Qe.outliercolor;else{var wt=(Pt||{}).width;Rr=(Me.mlw+1||wt+1||(Me.trace?(Me.trace.marker.line||{}).width:0)+1)-1||0,"mlc"in Me?Sr=Me.mlcc=Oe.lineScale(Me.mlc):x.isArrayOrTypedArray(Pt.color)?Sr=r.defaultLine:Sr=Pt.color,x.isArrayOrTypedArray(Qe.color)&&(qr=r.defaultLine,mr=!0),"mc"in Me?qr=Me.mcc=Oe.markerScale(Me.mc):qr=Qe.color||Qe.colors||"rgba(0,0,0,0)",Oe.selectedColorFn&&(qr=Oe.selectedColorFn(Me))}let Ne=Me.mld||(Pt||{}).dash;if(Ne&&l.dashLine(ye,Ne,Rr),Me.om)ye.call(r.stroke,qr).style({"stroke-width":(Rr||1)+"px",fill:"none"});else{ye.style("stroke-width",(Me.isBlank?0:Rr)+"px");var Ke=Qe.gradient,Te=Me.mgt;Te?mr=!0:Te=Ke&&Ke.type,x.isArrayOrTypedArray(Te)&&(Te=Te[0],R[Te]||(Te=0));var Ie=Qe.pattern,Ve=l.getPatternAttr,Ce=Ie&&(Ve(Ie.shape,Me.i,"")||Ve(Ie.path,Me.i,""));if(Te&&Te!=="none"){var Ee=Me.mgc;Ee?mr=!0:Ee=Ke.color;var Pe=he.uid;mr&&(Pe+="-"+Me.i),l.gradient(ye,tt,Pe,Te,[[0,Ee],[1,qr]],"fill")}else if(Ce){var ft=!1,ct=Ie.fgcolor;!ct&&ot&&ot.color&&(ct=ot.color,ft=!0);var _t=Ve(ct,Me.i,ot&&ot.color||null),Ct=Ve(Ie.bgcolor,Me.i,null),ir=Ie.fgopacity,rr=Ve(Ie.size,Me.i,8),er=Ve(Ie.solidity,Me.i,.3);ft=ft||Me.mcc||x.isArrayOrTypedArray(Ie.shape)||x.isArrayOrTypedArray(Ie.path)||x.isArrayOrTypedArray(Ie.bgcolor)||x.isArrayOrTypedArray(Ie.fgcolor)||x.isArrayOrTypedArray(Ie.size)||x.isArrayOrTypedArray(Ie.solidity);var Lr=he.uid;ft&&(Lr+="-"+Me.i),l.pattern(ye,"point",tt,Lr,Ce,rr,er,Me.mcc,Ie.fillmode,Ct,_t,ir)}else x.isArrayOrTypedArray(qr)?r.fill(ye,qr[Me.i]):r.fill(ye,qr);Rr&&r.stroke(ye,Sr)}},l.makePointStyleFns=function(Me){var ye={},he=Me.marker;return ye.markerScale=l.tryColorscale(he,""),ye.lineScale=l.tryColorscale(he,"line"),t.traceIs(Me,"symbols")&&(ye.ms2mrc=m.isBubble(Me)?p(Me):function(){return(he.size||6)/2}),Me.selectedpoints&&x.extendFlat(ye,l.makeSelectedPointStyleFns(Me)),ye},l.makeSelectedPointStyleFns=function(Me){var ye={},he=Me.selected||{},Oe=Me.unselected||{},tt=Me.marker||{},ot=he.marker||{},Qe=Oe.marker||{},Pt=tt.opacity,It=ot.opacity,qt=Qe.opacity,Wt=It!==void 0,kr=qt!==void 0;(x.isArrayOrTypedArray(Pt)||Wt||kr)&&(ye.selectedOpacityFn=function(Ie){var Ve=Ie.mo===void 0?tt.opacity:Ie.mo;return Ie.selected?Wt?It:Ve:kr?qt:c*Ve});var mr=tt.color,qr=ot.color,Sr=Qe.color;(qr||Sr)&&(ye.selectedColorFn=function(Ie){var Ve=Ie.mcc||mr;return Ie.selected?qr||Ve:Sr||Ve});var Rr=tt.size,wt=ot.size,Ne=Qe.size,Ke=wt!==void 0,Te=Ne!==void 0;return t.traceIs(Me,"symbols")&&(Ke||Te)&&(ye.selectedSizeFn=function(Ie){var Ve=Ie.mrc||Rr/2;return Ie.selected?Ke?wt/2:Ve:Te?Ne/2:Ve}),ye},l.makeSelectedTextStyleFns=function(Me){var ye={},he=Me.selected||{},Oe=Me.unselected||{},tt=Me.textfont||{},ot=he.textfont||{},Qe=Oe.textfont||{},Pt=tt.color,It=ot.color,qt=Qe.color;return ye.selectedTextColorFn=function(Wt){var kr=Wt.tc||Pt;return Wt.selected?It||kr:qt||(It?kr:r.addOpacity(kr,c))},ye},l.selectedPointStyle=function(Me,ye){if(!(!Me.size()||!ye.selectedpoints)){var he=l.makeSelectedPointStyleFns(ye),Oe=ye.marker||{},tt=[];he.selectedOpacityFn&&tt.push(function(ot,Qe){ot.style("opacity",he.selectedOpacityFn(Qe))}),he.selectedColorFn&&tt.push(function(ot,Qe){r.fill(ot,he.selectedColorFn(Qe))}),he.selectedSizeFn&&tt.push(function(ot,Qe){var Pt=Qe.mx||Oe.symbol||0,It=he.selectedSizeFn(Qe);ot.attr("d",y(l.symbolNumber(Pt),It,st(Qe,ye),Q(Qe,ye))),Qe.mrc2=It}),tt.length&&Me.each(function(ot){for(var Qe=v.select(this),Pt=0;Pt<tt.length;Pt++)tt[Pt](Qe,ot)})}},l.tryColorscale=function(Me,ye){var he=ye?x.nestedProperty(Me,ye).get():Me;if(he){var Oe=he.color;if((he.colorscale||he._colorAx)&&x.isArrayOrTypedArray(Oe))return o.makeColorScaleFuncFromTrace(he)}return x.identity};var z={start:1,end:-1,middle:0,bottom:1,top:-1};function F(Me,ye,he,Oe,tt){var ot=v.select(Me.node().parentNode),Qe=ye.indexOf("top")!==-1?"top":ye.indexOf("bottom")!==-1?"bottom":"middle",Pt=ye.indexOf("left")!==-1?"end":ye.indexOf("right")!==-1?"start":"middle",It=Oe?Oe/.8+1:0,qt=(n.lineCount(Me)-1)*h+1,Wt=z[Pt]*It,kr=he*.75+z[Qe]*It+(z[Qe]-1)*qt*he/2;Me.attr("text-anchor",Pt),tt||ot.attr("transform",a(Wt,kr))}function N(Me,ye){var he=Me.ts||ye.textfont.size;return E(he)&&he>0?he:0}l.textPointStyle=function(Me,ye,he){if(Me.size()){var Oe;if(ye.selectedpoints){var tt=l.makeSelectedTextStyleFns(ye);Oe=tt.selectedTextColorFn}var ot=ye.texttemplate,Qe=he._fullLayout;Me.each(function(Pt){var It=v.select(this),qt=ot?x.extractOption(Pt,ye,"txt","texttemplate"):x.extractOption(Pt,ye,"tx","text");if(!qt&&qt!==0){It.remove();return}if(ot){var Wt=ye._module.formatLabels,kr=Wt?Wt(Pt,ye,Qe):{},mr={};T(mr,ye,Pt.i),qt=x.texttemplateString({data:[mr,Pt,ye._meta],fallback:ye.texttemplatefallback,labels:kr,locale:Qe._d3locale,template:qt})}var qr=Pt.tp||ye.textposition,Sr=N(Pt,ye),Rr=Oe?Oe(Pt):Pt.tc||ye.textfont.color;It.call(l.font,{family:Pt.tf||ye.textfont.family,weight:Pt.tw||ye.textfont.weight,style:Pt.ty||ye.textfont.style,variant:Pt.tv||ye.textfont.variant,textcase:Pt.tC||ye.textfont.textcase,lineposition:Pt.tE||ye.textfont.lineposition,shadow:Pt.tS||ye.textfont.shadow,size:Sr,color:Rr}).text(qt).call(n.convertToTspans,he).call(F,qr,Sr,Pt.mrc)})}},l.selectedTextStyle=function(Me,ye){if(!(!Me.size()||!ye.selectedpoints)){var he=l.makeSelectedTextStyleFns(ye);Me.each(function(Oe){var tt=v.select(this),ot=he.selectedTextColorFn(Oe),Qe=Oe.tp||ye.textposition,Pt=N(Oe,ye);r.fill(tt,ot);var It=t.traceIs(ye,"bar-like");F(tt,Qe,Pt,Oe.mrc2||Oe.mrc,It)})}};var O=.5;l.smoothopen=function(Me,ye){if(Me.length<3)return"M"+Me.join("L");var he="M"+Me[0],Oe=[],tt;for(tt=1;tt<Me.length-1;tt++)Oe.push(se(Me[tt-1],Me[tt],Me[tt+1],ye));for(he+="Q"+Oe[0][0]+" "+Me[1],tt=2;tt<Me.length-1;tt++)he+="C"+Oe[tt-2][1]+" "+Oe[tt-1][0]+" "+Me[tt];return he+="Q"+Oe[Me.length-3][1]+" "+Me[Me.length-1],he},l.smoothclosed=function(Me,ye){if(Me.length<3)return"M"+Me.join("L")+"Z";var he="M"+Me[0],Oe=Me.length-1,tt=[se(Me[Oe],Me[0],Me[1],ye)],ot;for(ot=1;ot<Oe;ot++)tt.push(se(Me[ot-1],Me[ot],Me[ot+1],ye));for(tt.push(se(Me[Oe-1],Me[Oe],Me[0],ye)),ot=1;ot<=Oe;ot++)he+="C"+tt[ot-1][1]+" "+tt[ot][0]+" "+Me[ot];return he+="C"+tt[Oe][1]+" "+tt[0][0]+" "+Me[0]+"Z",he};var P,U;function B(Me,ye,he){return he&&(Me=V(Me)),ye?$(Me[1]):X(Me[0])}function X(Me){var ye=v.round(Me,2);return P=ye,ye}function $(Me){var ye=v.round(Me,2);return U=ye,ye}function se(Me,ye,he,Oe){var tt=Me[0]-ye[0],ot=Me[1]-ye[1],Qe=he[0]-ye[0],Pt=he[1]-ye[1],It=Math.pow(tt*tt+ot*ot,O/2),qt=Math.pow(Qe*Qe+Pt*Pt,O/2),Wt=(qt*qt*tt-It*It*Qe)*Oe,kr=(qt*qt*ot-It*It*Pt)*Oe,mr=3*qt*(It+qt),qr=3*It*(It+qt);return[[X(ye[0]+(mr&&Wt/mr)),$(ye[1]+(mr&&kr/mr))],[X(ye[0]-(qr&&Wt/qr)),$(ye[1]-(qr&&kr/qr))]]}var le={hv:function(Me,ye,he){return"H"+X(ye[0])+"V"+B(ye,1,he)},vh:function(Me,ye,he){return"V"+$(ye[1])+"H"+B(ye,0,he)},hvh:function(Me,ye,he){return"H"+X((Me[0]+ye[0])/2)+"V"+$(ye[1])+"H"+B(ye,0,he)},vhv:function(Me,ye,he){return"V"+$((Me[1]+ye[1])/2)+"H"+X(ye[0])+"V"+B(ye,1,he)}},fe=function(Me,ye,he){return"L"+B(ye,0,he)+","+B(ye,1,he)};l.steps=function(Me){var ye=le[Me]||fe;return function(he){for(var Oe="M"+X(he[0][0])+","+$(he[0][1]),tt=he.length,ot=1;ot<tt;ot++)Oe+=ye(he[ot-1],he[ot],ot===tt-1);return Oe}};function V(Me,ye){var he=Me.backoff,Oe=Me.trace,tt=Me.d,ot=Me.i;if(he&&Oe&&Oe.marker&&Oe.marker.angle%360===0&&Oe.line&&Oe.line.shape!=="spline"){var Qe=x.isArrayOrTypedArray(he),Pt=Me,It=ye?ye[0]:P||0,qt=ye?ye[1]:U||0,Wt=Pt[0],kr=Pt[1],mr=Wt-It,qr=kr-qt,Sr=Math.atan2(qr,mr),Rr=Qe?he[ot]:he;if(Rr==="auto"){var wt=Pt.i;Oe.type==="scatter"&&wt--;var Ne=Pt.marker,Ke=Ne.symbol;x.isArrayOrTypedArray(Ke)&&(Ke=Ke[wt]);var Te=Ne.size;x.isArrayOrTypedArray(Te)&&(Te=Te[wt]),Rr=Ne?l.symbolBackOffs[l.symbolNumber(Ke)]*Te:0,Rr+=l.getMarkerStandoff(tt[wt],Oe)||0}var Ie=Wt-Rr*Math.cos(Sr),Ve=kr-Rr*Math.sin(Sr);(Ie<=Wt&&Ie>=It||Ie>=Wt&&Ie<=It)&&(Ve<=kr&&Ve>=qt||Ve>=kr&&Ve<=qt)&&(Me=[Ie,Ve])}return Me}l.applyBackoff=V,l.makeTester=function(){var Me=x.ensureSingleById(v.select("body"),"svg","js-plotly-tester",function(he){he.attr(i.svgAttrs).style({position:"absolute",left:"-10000px",top:"-10000px",width:"9000px",height:"9000px","z-index":"1"})}),ye=x.ensureSingle(Me,"path","js-reference-point",function(he){he.attr("d","M0,0H1V1H0Z").style({"stroke-width":0,fill:"black"})});l.tester=Me,l.testref=ye},l.savedBBoxes={};var Y=0,ee=1e4;l.bBox=function(Me,ye,he){he||(he=q(Me));var Oe;if(he){if(Oe=l.savedBBoxes[he],Oe)return x.extendFlat({},Oe)}else if(Me.childNodes.length===1){var tt=Me.childNodes[0];if(he=q(tt),he){var ot=+tt.getAttribute("x")||0,Qe=+tt.getAttribute("y")||0,Pt=tt.getAttribute("transform");if(!Pt){var It=l.bBox(tt,!1,he);return ot&&(It.left+=ot,It.right+=ot),Qe&&(It.top+=Qe,It.bottom+=Qe),It}if(he+="~"+ot+"~"+Qe+"~"+Pt,Oe=l.savedBBoxes[he],Oe)return x.extendFlat({},Oe)}}var qt,Wt;ye?qt=Me:(Wt=l.tester.node(),qt=Me.cloneNode(!0),Wt.appendChild(qt)),v.select(qt).attr("transform",null).call(n.positionText,0,0);var kr=qt.getBoundingClientRect(),mr=l.testref.node().getBoundingClientRect();ye||Wt.removeChild(qt);var qr={height:kr.height,width:kr.width,left:kr.left-mr.left,top:kr.top-mr.top,right:kr.right-mr.left,bottom:kr.bottom-mr.top};return Y>=ee&&(l.savedBBoxes={},Y=0),he&&(l.savedBBoxes[he]=qr),Y++,x.extendFlat({},qr)};function q(Me){var ye=Me.getAttribute("data-unformatted");if(ye!==null)return ye+Me.getAttribute("data-math")+Me.getAttribute("text-anchor")+Me.getAttribute("style")}l.setClipUrl=function(Me,ye,he){Me.attr("clip-path",oe(ye,he))};function oe(Me,ye){if(!Me)return null;var he=ye._context,Oe=he._exportedPlot?"":he._baseUrl||"";return Oe?"url('"+Oe+"#"+Me+"')":"url(#"+Me+")"}l.getTranslate=function(Me){var ye=/.*\btranslate\((-?\d*\.?\d*)[^-\d]*(-?\d*\.?\d*)[^\d].*/,he=Me.attr?"attr":"getAttribute",Oe=Me[he]("transform")||"",tt=Oe.replace(ye,function(ot,Qe,Pt){return[Qe,Pt].join(" ")}).split(" ");return{x:+tt[0]||0,y:+tt[1]||0}},l.setTranslate=function(Me,ye,he){var Oe=/(\btranslate\(.*?\);?)/,tt=Me.attr?"attr":"getAttribute",ot=Me.attr?"attr":"setAttribute",Qe=Me[tt]("transform")||"";return ye=ye||0,he=he||0,Qe=Qe.replace(Oe,"").trim(),Qe+=a(ye,he),Qe=Qe.trim(),Me[ot]("transform",Qe),Qe},l.getScale=function(Me){var ye=/.*\bscale\((\d*\.?\d*)[^\d]*(\d*\.?\d*)[^\d].*/,he=Me.attr?"attr":"getAttribute",Oe=Me[he]("transform")||"",tt=Oe.replace(ye,function(ot,Qe,Pt){return[Qe,Pt].join(" ")}).split(" ");return{x:+tt[0]||1,y:+tt[1]||1}},l.setScale=function(Me,ye,he){var Oe=/(\bscale\(.*?\);?)/,tt=Me.attr?"attr":"getAttribute",ot=Me.attr?"attr":"setAttribute",Qe=Me[tt]("transform")||"";return ye=ye||1,he=he||1,Qe=Qe.replace(Oe,"").trim(),Qe+="scale("+ye+","+he+")",Qe=Qe.trim(),Me[ot]("transform",Qe),Qe};var ae=/\s*sc.*/;l.setPointGroupScale=function(Me,ye,he){if(ye=ye||1,he=he||1,!!Me){var Oe=ye===1&&he===1?"":"scale("+ye+","+he+")";Me.each(function(){var tt=(this.getAttribute("transform")||"").replace(ae,"");tt+=Oe,tt=tt.trim(),this.setAttribute("transform",tt)})}};var j=/translate\([^)]*\)\s*$/;l.setTextPointsScale=function(Me,ye,he){Me&&Me.each(function(){var Oe,tt=v.select(this),ot=tt.select("text");if(ot.node()){var Qe=parseFloat(ot.attr("x")||0),Pt=parseFloat(ot.attr("y")||0),It=(tt.attr("transform")||"").match(j);ye===1&&he===1?Oe=[]:Oe=[a(Qe,Pt),"scale("+ye+","+he+")",a(-Qe,-Pt)],It&&Oe.push(It),tt.attr("transform",Oe.join(""))}})};function Q(Me,ye){var he;return Me&&(he=Me.mf),he===void 0&&(he=ye.marker&&ye.marker.standoff||0),!ye._geo&&!ye._xA?-he:he}l.getMarkerStandoff=Q;var re=Math.atan2,ce=Math.cos,be=Math.sin;function Ae(Me,ye){var he=ye[0],Oe=ye[1];return[he*ce(Me)-Oe*be(Me),he*be(Me)+Oe*ce(Me)]}var De,ze,Ze,at,nt,rt;function st(Me,ye){var he=Me.ma;he===void 0&&(he=ye.marker.angle,(!he||x.isArrayOrTypedArray(he))&&(he=0));var Oe,tt,ot=ye.marker.angleref;if(ot==="previous"||ot==="north"){if(ye._geo){var Qe=ye._geo.project(Me.lonlat);Oe=Qe[0],tt=Qe[1]}else{var Pt=ye._xA,It=ye._yA;if(Pt&&It)Oe=Pt.c2p(Me.x),tt=It.c2p(Me.y);else return 90}if(ye._geo){var qt=Me.lonlat[0],Wt=Me.lonlat[1],kr=ye._geo.project([qt,Wt+1e-5]),mr=ye._geo.project([qt+1e-5,Wt]),qr=re(mr[1]-tt,mr[0]-Oe),Sr=re(kr[1]-tt,kr[0]-Oe),Rr;if(ot==="north")Rr=he/180*Math.PI;else if(ot==="previous"){var wt=qt/180*Math.PI,Ne=Wt/180*Math.PI,Ke=De/180*Math.PI,Te=ze/180*Math.PI,Ie=Ke-wt,Ve=ce(Te)*be(Ie),Ce=be(Te)*ce(Ne)-ce(Te)*be(Ne)*ce(Ie);Rr=-re(Ve,Ce)-Math.PI,De=qt,ze=Wt}var Ee=Ae(qr,[ce(Rr),0]),Pe=Ae(Sr,[be(Rr),0]);he=re(Ee[1]+Pe[1],Ee[0]+Pe[0])/Math.PI*180,ot==="previous"&&!(rt===ye.uid&&Me.i===nt+1)&&(he=null)}if(ot==="previous"&&!ye._geo)if(rt===ye.uid&&Me.i===nt+1&&E(Oe)&&E(tt)){var ft=Oe-Ze,ct=tt-at,_t=ye.line&&ye.line.shape||"",Ct=_t.slice(_t.length-1);Ct==="h"&&(ct=0),Ct==="v"&&(ft=0),he+=re(ct,ft)/Math.PI*180+90}else he=null}return Ze=Oe,at=tt,nt=Me.i,rt=ye.uid,he}l.getMarkerAngle=st}}),K0=Xe({"src/components/titles/index.js"(Z,G){"use strict";var v=Hn(),x=rs(),S=bc(),E=so(),e=sa(),t=e.strTranslate,r=es(),o=$n(),a=ou(),n=Ym(),i=uh().OPPOSITE_SIDE,s=/ [XY][0-9]* /,h=1.6,c=1.6;function m(p,T,l){var _=p._fullLayout,w=l.propContainer,A=l.propName,M=l.placeholder,g=l.traceIndex,b=l.avoid||{},d=l.attributes,u=l.transform,y=l.containerGroup,f=1,R=w.title,L=(R&&R.text?R.text:"").trim(),z=!1,F=R&&R.font?R.font:{},N=F.family,O=F.size,P=F.color,U=F.weight,B=F.style,X=F.variant,$=F.textcase,se=F.lineposition,le=F.shadow,fe=l.subtitlePropName,V=!!fe,Y=l.subtitlePlaceholder,ee=(w.title||{}).subtitle||{text:"",font:{}},q=(ee.text||"").trim(),oe=!1,ae=1,j=ee.font,Q=j.family,re=j.size,ce=j.color,be=j.weight,Ae=j.style,De=j.variant,ze=j.textcase,Ze=j.lineposition,at=j.shadow,nt;A==="title.text"?nt="titleText":A.indexOf("axis")!==-1?nt="axisTitleText":A.indexOf("colorbar")!==-1&&(nt="colorbarTitleText");var rt=p._context.edits[nt];function st(mr,qr){return mr===void 0||qr===void 0?!1:mr.replace(s," % ")===qr.replace(s," % ")}L===""?f=0:st(L,M)&&(rt||(L=""),f=.2,z=!0),V&&(q===""?ae=0:st(q,Y)&&(rt||(q=""),ae=.2,oe=!0)),l._meta?L=e.templateString(L,l._meta):_._meta&&(L=e.templateString(L,_._meta));var Me=L||q||rt,ye;y||(y=e.ensureSingle(_._infolayer,"g","g-"+T),ye=_._hColorbarMoveTitle);var he=y.selectAll("text."+T).data(Me?[0]:[]);he.enter().append("text"),he.text(L).attr("class",T),he.exit().remove();var Oe=null,tt=T+"-subtitle",ot=q||rt;if(V&&(Oe=y.selectAll("text."+tt).data(ot?[0]:[]),Oe.enter().append("text"),Oe.text(q).attr("class",tt),Oe.exit().remove()),!Me)return y;function Qe(mr,qr){e.syncOrAsync([Pt,It],{title:mr,subtitle:qr})}function Pt(mr){var qr=mr.title,Sr=mr.subtitle,Rr;!u&&ye&&(u={}),u?(Rr="",u.rotate&&(Rr+="rotate("+[u.rotate,d.x,d.y]+")"),(u.offset||ye)&&(Rr+=t(0,(u.offset||0)-(ye||0)))):Rr=null,qr.attr("transform",Rr);function wt(Ce){if(Ce){var Ee=v.select(Ce.node().parentNode).select("."+tt);if(!Ee.empty()){var Pe=Ce.node().getBBox();if(Pe.height){var ft=Pe.y+Pe.height+h*re;Ee.attr("y",ft)}}}}if(qr.style("opacity",f*o.opacity(P)).call(r.font,{color:o.rgb(P),size:v.round(O,2),family:N,weight:U,style:B,variant:X,textcase:$,shadow:le,lineposition:se}).attr(d).call(a.convertToTspans,p,wt),Sr&&!Sr.empty()){var Ne=y.select("."+T+"-math-group"),Ke=qr.node().getBBox(),Te=Ne.node()?Ne.node().getBBox():void 0,Ie=Te?Te.y+Te.height+h*re:Ke.y+Ke.height+c*re,Ve=e.extendFlat({},d,{y:Ie});Sr.attr("transform",Rr),Sr.style("opacity",ae*o.opacity(ce)).call(r.font,{color:o.rgb(ce),size:v.round(re,2),family:Q,weight:be,style:Ae,variant:De,textcase:ze,shadow:at,lineposition:Ze}).attr(Ve).call(a.convertToTspans,p)}return S.previousPromises(p)}function It(mr){var qr=mr.title,Sr=v.select(qr.node().parentNode);if(b&&b.selection&&b.side&&L){Sr.attr("transform",null);var Rr=i[b.side],wt=b.side==="left"||b.side==="top"?-1:1,Ne=x(b.pad)?b.pad:2,Ke=r.bBox(Sr.node()),Te={t:0,b:0,l:0,r:0},Ie=p._fullLayout._reservedMargin;for(var Ve in Ie)for(var Ce in Ie[Ve]){var Ee=Ie[Ve][Ce];Te[Ce]=Math.max(Te[Ce],Ee)}var Pe={left:Te.l,top:Te.t,right:_.width-Te.r,bottom:_.height-Te.b},ft=b.maxShift||wt*(Pe[b.side]-Ke[b.side]),ct=0;if(ft<0)ct=ft;else{var _t=b.offsetLeft||0,Ct=b.offsetTop||0;Ke.left-=_t,Ke.right-=_t,Ke.top-=Ct,Ke.bottom-=Ct,b.selection.each(function(){var rr=r.bBox(this);e.bBoxIntersect(Ke,rr,Ne)&&(ct=Math.max(ct,wt*(rr[b.side]-Ke[Rr])+Ne))}),ct=Math.min(ft,ct),w._titleScoot=Math.abs(ct)}if(ct>0||ft<0){var ir={left:[-ct,0],right:[ct,0],top:[0,-ct],bottom:[0,ct]}[b.side];Sr.attr("transform",t(ir[0],ir[1]))}}}he.call(Qe,Oe);function qt(mr,qr){mr.text(qr).on("mouseover.opacity",function(){v.select(this).transition().duration(n.SHOW_PLACEHOLDER).style("opacity",1)}).on("mouseout.opacity",function(){v.select(this).transition().duration(n.HIDE_PLACEHOLDER).style("opacity",0)})}if(rt&&(L?he.on(".opacity",null):(qt(he,M),z=!0),he.call(a.makeEditable,{gd:p}).on("edit",function(mr){g!==void 0?E.call("_guiRestyle",p,A,mr,g):E.call("_guiRelayout",p,A,mr)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(Qe)}).on("input",function(mr){this.text(mr||" ").call(a.positionText,d.x,d.y)}),V)){if(V&&!L){var Wt=he.node().getBBox(),kr=Wt.y+Wt.height+c*re;Oe.attr("y",kr)}q?Oe.on(".opacity",null):(qt(Oe,Y),oe=!0),Oe.call(a.makeEditable,{gd:p}).on("edit",function(mr){E.call("_guiRelayout",p,"title.subtitle.text",mr)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(Qe)}).on("input",function(mr){this.text(mr||" ").call(a.positionText,Oe.attr("x"),Oe.attr("y"))})}return he.classed("js-placeholder",z),Oe&&!Oe.empty()&&Oe.classed("js-placeholder",oe),y}G.exports={draw:m,SUBTITLE_PADDING_EM:c,SUBTITLE_PADDING_MATHJAX_EM:h}}}),wv=Xe({"src/plots/cartesian/set_convert.js"(Z,G){"use strict";var v=Hn(),x=Xv().utcFormat,S=sa(),E=S.numberFormat,e=rs(),t=S.cleanNumber,r=S.ms2DateTime,o=S.dateTime2ms,a=S.ensureNumber,n=S.isArrayOrTypedArray,i=Hs(),s=i.FP_SAFE,h=i.BADNUM,c=i.LOG_CLIP,m=i.ONEWEEK,p=i.ONEDAY,T=i.ONEHOUR,l=i.ONEMIN,_=i.ONESEC,w=ef(),A=lh(),M=A.HOUR_PATTERN,g=A.WEEKDAY_PATTERN;function b(u){return Math.pow(10,u)}function d(u){return u!=null}G.exports=function(y,f){f=f||{};var R=y._id||"x",L=R.charAt(0);function z(q,oe){if(q>0)return Math.log(q)/Math.LN10;if(q<=0&&oe&&y.range&&y.range.length===2){var ae=y.range[0],j=y.range[1];return .5*(ae+j-2*c*Math.abs(ae-j))}else return h}function F(q,oe,ae,j){if((j||{}).msUTC&&e(q))return+q;var Q=o(q,ae||y.calendar);if(Q===h)if(e(q)){q=+q;var re=Math.floor(S.mod(q+.05,1)*10),ce=Math.round(q-re/10);Q=o(new Date(ce))+re/10}else return h;return Q}function N(q,oe,ae){return r(q,oe,ae||y.calendar)}function O(q){return y._categories[Math.round(q)]}function P(q){if(d(q)){if(y._categoriesMap===void 0&&(y._categoriesMap={}),y._categoriesMap[q]!==void 0)return y._categoriesMap[q];y._categories.push(typeof q=="number"?String(q):q);var oe=y._categories.length-1;return y._categoriesMap[q]=oe,oe}return h}function U(q,oe){for(var ae=new Array(oe),j=0;j<oe;j++){var Q=(q[0]||[])[j],re=(q[1]||[])[j];ae[j]=B([Q,re])}return ae}function B(q){if(y._categoriesMap)return y._categoriesMap[q]}function X(q){var oe=B(q);if(oe!==void 0)return oe;if(e(q))return+q}function $(q){return e(q)?+q:B(q)}function se(q,oe,ae){return v.round(ae+oe*q,2)}function le(q,oe,ae){return(q-ae)/oe}var fe=function(oe){return e(oe)?se(oe,y._m,y._b):h},V=function(q){return le(q,y._m,y._b)};if(y.rangebreaks){var Y=L==="y";fe=function(q){if(!e(q))return h;var oe=y._rangebreaks.length;if(!oe)return se(q,y._m,y._b);var ae=Y;y.range[0]>y.range[1]&&(ae=!ae);for(var j=ae?-1:1,Q=j*q,re=0,ce=0;ce<oe;ce++){var be=j*y._rangebreaks[ce].min,Ae=j*y._rangebreaks[ce].max;if(Q<be)break;if(Q>Ae)re=ce+1;else{re=Q<(be+Ae)/2?ce:ce+1;break}}var De=y._B[re]||0;return isFinite(De)?se(q,y._m2,De):0},V=function(q){var oe=y._rangebreaks.length;if(!oe)return le(q,y._m,y._b);for(var ae=0,j=0;j<oe&&!(q<y._rangebreaks[j].pmin);j++)q>y._rangebreaks[j].pmax&&(ae=j+1);return le(q,y._m2,y._B[ae])}}y.c2l=y.type==="log"?z:a,y.l2c=y.type==="log"?b:a,y.l2p=fe,y.p2l=V,y.c2p=y.type==="log"?function(q,oe){return fe(z(q,oe))}:fe,y.p2c=y.type==="log"?function(q){return b(V(q))}:V,["linear","-"].indexOf(y.type)!==-1?(y.d2r=y.r2d=y.d2c=y.r2c=y.d2l=y.r2l=t,y.c2d=y.c2r=y.l2d=y.l2r=a,y.d2p=y.r2p=function(q){return y.l2p(t(q))},y.p2d=y.p2r=V,y.cleanPos=a):y.type==="log"?(y.d2r=y.d2l=function(q,oe){return z(t(q),oe)},y.r2d=y.r2c=function(q){return b(t(q))},y.d2c=y.r2l=t,y.c2d=y.l2r=a,y.c2r=z,y.l2d=b,y.d2p=function(q,oe){return y.l2p(y.d2r(q,oe))},y.p2d=function(q){return b(V(q))},y.r2p=function(q){return y.l2p(t(q))},y.p2r=V,y.cleanPos=a):y.type==="date"?(y.d2r=y.r2d=S.identity,y.d2c=y.r2c=y.d2l=y.r2l=F,y.c2d=y.c2r=y.l2d=y.l2r=N,y.d2p=y.r2p=function(q,oe,ae){return y.l2p(F(q,0,ae))},y.p2d=y.p2r=function(q,oe,ae){return N(V(q),oe,ae)},y.cleanPos=function(q){return S.cleanDate(q,h,y.calendar)}):y.type==="category"?(y.d2c=y.d2l=P,y.r2d=y.c2d=y.l2d=O,y.d2r=y.d2l_noadd=X,y.r2c=function(q){var oe=$(q);return oe!==void 0?oe:y.fraction2r(.5)},y.l2r=y.c2r=a,y.r2l=$,y.d2p=function(q){return y.l2p(y.r2c(q))},y.p2d=function(q){return O(V(q))},y.r2p=y.d2p,y.p2r=V,y.cleanPos=function(q){return typeof q=="string"&&q!==""?q:a(q)}):y.type==="multicategory"&&(y.r2d=y.c2d=y.l2d=O,y.d2r=y.d2l_noadd=X,y.r2c=function(q){var oe=X(q);return oe!==void 0?oe:y.fraction2r(.5)},y.r2c_just_indices=B,y.l2r=y.c2r=a,y.r2l=X,y.d2p=function(q){return y.l2p(y.r2c(q))},y.p2d=function(q){return O(V(q))},y.r2p=y.d2p,y.p2r=V,y.cleanPos=function(q){return Array.isArray(q)||typeof q=="string"&&q!==""?q:a(q)},y.setupMultiCategory=function(q){var oe=y._traceIndices,ae,j,Q=y._matchGroup;if(Q&&y._categories.length===0){for(var re in Q)if(re!==R){var ce=f[w.id2name(re)];oe=oe.concat(ce._traceIndices)}}var be=[[0,{}],[0,{}]],Ae=[];for(ae=0;ae<oe.length;ae++){var De=q[oe[ae]];if(L in De){var ze=De[L],Ze=De._length||S.minRowLength(ze);if(n(ze[0])&&n(ze[1]))for(j=0;j<Ze;j++){var at=ze[0][j],nt=ze[1][j];d(at)&&d(nt)&&(Ae.push([at,nt]),at in be[0][1]||(be[0][1][at]=be[0][0]++),nt in be[1][1]||(be[1][1][nt]=be[1][0]++))}}}for(Ae.sort(function(rt,st){var Me=be[0][1],ye=Me[rt[0]]-Me[st[0]];if(ye)return ye;var he=be[1][1];return he[rt[1]]-he[st[1]]}),ae=0;ae<Ae.length;ae++)P(Ae[ae])}),y.fraction2r=function(q){var oe=y.r2l(y.range[0]),ae=y.r2l(y.range[1]);return y.l2r(oe+q*(ae-oe))},y.r2fraction=function(q){var oe=y.r2l(y.range[0]),ae=y.r2l(y.range[1]);return(y.r2l(q)-oe)/(ae-oe)},y.limitRange=function(q){var oe=y.minallowed,ae=y.maxallowed;if(!(oe===void 0&&ae===void 0)){q||(q="range");var j=S.nestedProperty(y,q).get(),Q=S.simpleMap(j,y.r2l),re=Q[1]<Q[0];re&&Q.reverse();var ce=S.simpleMap([oe,ae],y.r2l);if(oe!==void 0&&Q[0]<ce[0]&&(j[re?1:0]=oe),ae!==void 0&&Q[1]>ce[1]&&(j[re?0:1]=ae),j[0]===j[1]){var be=y.l2r(oe),Ae=y.l2r(ae);if(oe!==void 0){var De=be+1;ae!==void 0&&(De=Math.min(De,Ae)),j[re?1:0]=De}if(ae!==void 0){var ze=Ae+1;oe!==void 0&&(ze=Math.max(ze,be)),j[re?0:1]=ze}}}},y.cleanRange=function(q,oe){y._cleanRange(q,oe),y.limitRange(q)},y._cleanRange=function(q,oe){oe||(oe={}),q||(q="range");var ae=S.nestedProperty(y,q).get(),j,Q;if(y.type==="date"?Q=S.dfltRange(y.calendar):L==="y"?Q=A.DFLTRANGEY:y._name==="realaxis"?Q=[0,1]:Q=oe.dfltRange||A.DFLTRANGEX,Q=Q.slice(),(y.rangemode==="tozero"||y.rangemode==="nonnegative")&&(Q[0]=0),!ae||ae.length!==2){S.nestedProperty(y,q).set(Q);return}var re=ae[0]===null,ce=ae[1]===null;for(y.type==="date"&&!y.autorange&&(ae[0]=S.cleanDate(ae[0],h,y.calendar),ae[1]=S.cleanDate(ae[1],h,y.calendar)),j=0;j<2;j++)if(y.type==="date"){if(!S.isDateTime(ae[j],y.calendar)){y[q]=Q;break}if(y.r2l(ae[0])===y.r2l(ae[1])){var be=S.constrain(y.r2l(ae[0]),S.MIN_MS+1e3,S.MAX_MS-1e3);ae[0]=y.l2r(be-1e3),ae[1]=y.l2r(be+1e3);break}}else{if(!e(ae[j]))if(!(re||ce)&&e(ae[1-j]))ae[j]=ae[1-j]*(j?10:.1);else{y[q]=Q;break}if(ae[j]<-s?ae[j]=-s:ae[j]>s&&(ae[j]=s),ae[0]===ae[1]){var Ae=Math.max(1,Math.abs(ae[0]*1e-6));ae[0]-=Ae,ae[1]+=Ae}}},y.setScale=function(q){var oe=f._size;if(y.overlaying){var ae=w.getFromId({_fullLayout:f},y.overlaying);y.domain=ae.domain}var j=q&&y._r?"_r":"range",Q=y.calendar;y.cleanRange(j);var re=y.r2l(y[j][0],Q),ce=y.r2l(y[j][1],Q),be=L==="y";if(be?(y._offset=oe.t+(1-y.domain[1])*oe.h,y._length=oe.h*(y.domain[1]-y.domain[0]),y._m=y._length/(re-ce),y._b=-y._m*ce):(y._offset=oe.l+y.domain[0]*oe.w,y._length=oe.w*(y.domain[1]-y.domain[0]),y._m=y._length/(ce-re),y._b=-y._m*re),y._rangebreaks=[],y._lBreaks=0,y._m2=0,y._B=[],y.rangebreaks){var Ae,De;if(y._rangebreaks=y.locateBreaks(Math.min(re,ce),Math.max(re,ce)),y._rangebreaks.length){for(Ae=0;Ae<y._rangebreaks.length;Ae++)De=y._rangebreaks[Ae],y._lBreaks+=Math.abs(De.max-De.min);var ze=be;re>ce&&(ze=!ze),ze&&y._rangebreaks.reverse();var Ze=ze?-1:1;for(y._m2=Ze*y._length/(Math.abs(ce-re)-y._lBreaks),y._B.push(-y._m2*(be?ce:re)),Ae=0;Ae<y._rangebreaks.length;Ae++)De=y._rangebreaks[Ae],y._B.push(y._B[y._B.length-1]-Ze*y._m2*(De.max-De.min));for(Ae=0;Ae<y._rangebreaks.length;Ae++)De=y._rangebreaks[Ae],De.pmin=fe(De.min),De.pmax=fe(De.max)}}if(!isFinite(y._m)||!isFinite(y._b)||y._length<0)throw f._replotting=!1,new Error("Something went wrong with axis scaling")},y.maskBreaks=function(q){var oe=y.rangebreaks||[],ae,j,Q,re,ce;oe._cachedPatterns||(oe._cachedPatterns=oe.map(function(Me){return Me.enabled&&Me.bounds?S.simpleMap(Me.bounds,Me.pattern?t:y.d2c):null})),oe._cachedValues||(oe._cachedValues=oe.map(function(Me){return Me.enabled&&Me.values?S.simpleMap(Me.values,y.d2c).sort(S.sorterAsc):null}));for(var be=0;be<oe.length;be++){var Ae=oe[be];if(Ae.enabled){if(Ae.bounds){var De=Ae.pattern;switch(ae=oe._cachedPatterns[be],j=ae[0],Q=ae[1],De){case g:ce=new Date(q),re=ce.getUTCDay(),j>Q&&(Q+=7,re<j&&(re+=7));break;case M:ce=new Date(q);var ze=ce.getUTCHours(),Ze=ce.getUTCMinutes(),at=ce.getUTCSeconds(),nt=ce.getUTCMilliseconds();re=ze+(Ze/60+at/3600+nt/36e5),j>Q&&(Q+=24,re<j&&(re+=24));break;case"":re=q;break}if(re>=j&&re<Q)return h}else for(var rt=oe._cachedValues[be],st=0;st<rt.length;st++)if(j=rt[st],Q=j+Ae.dvalue,q>=j&&q<Q)return h}}return q},y.locateBreaks=function(q,oe){var ae,j,Q,re,ce=[];if(!y.rangebreaks)return ce;var be=y.rangebreaks.slice().sort(function(he,Oe){return he.pattern===g&&Oe.pattern===M?-1:Oe.pattern===g&&he.pattern===M?1:0}),Ae=function(he,Oe){if(he=S.constrain(he,q,oe),Oe=S.constrain(Oe,q,oe),he!==Oe){for(var tt=!0,ot=0;ot<ce.length;ot++){var Qe=ce[ot];he<Qe.max&&Oe>=Qe.min&&(he<Qe.min&&(Qe.min=he),Oe>Qe.max&&(Qe.max=Oe),tt=!1)}tt&&ce.push({min:he,max:Oe})}};for(ae=0;ae<be.length;ae++){var De=be[ae];if(De.enabled)if(De.bounds){var ze=q,Ze=oe;De.pattern&&(ze=Math.floor(ze)),j=S.simpleMap(De.bounds,De.pattern?t:y.r2l),Q=j[0],re=j[1];var at=new Date(ze),nt,rt;switch(De.pattern){case g:rt=m,nt=((re<Q?7:0)+(re-Q))*p,ze+=Q*p-(at.getUTCDay()*p+at.getUTCHours()*T+at.getUTCMinutes()*l+at.getUTCSeconds()*_+at.getUTCMilliseconds());break;case M:rt=p,nt=((re<Q?24:0)+(re-Q))*T,ze+=Q*T-(at.getUTCHours()*T+at.getUTCMinutes()*l+at.getUTCSeconds()*_+at.getUTCMilliseconds());break;default:ze=Math.min(j[0],j[1]),Ze=Math.max(j[0],j[1]),rt=Ze-ze,nt=rt}for(var st=ze;st<Ze;st+=rt)Ae(st,st+nt)}else for(var Me=S.simpleMap(De.values,y.d2c),ye=0;ye<Me.length;ye++)Q=Me[ye],re=Q+De.dvalue,Ae(Q,re)}return ce.sort(function(he,Oe){return he.min-Oe.min}),ce},y.makeCalcdata=function(q,oe,ae){var j,Q,re,ce,be=y.type,Ae=be==="date"&&q[oe+"calendar"];if(oe in q){if(j=q[oe],ce=q._length||S.minRowLength(j),S.isTypedArray(j)&&(be==="linear"||be==="log")){if(ce===j.length)return j;if(j.subarray)return j.subarray(0,ce)}if(be==="multicategory")return U(j,ce);for(Q=new Array(ce),re=0;re<ce;re++)Q[re]=y.d2c(j[re],0,Ae,ae)}else{var De=oe+"0"in q?y.d2c(q[oe+"0"],0,Ae):0,ze=q["d"+oe]?Number(q["d"+oe]):1;for(j=q[{x:"y",y:"x"}[oe]],ce=q._length||j.length,Q=new Array(ce),re=0;re<ce;re++)Q[re]=De+re*ze}if(y.rangebreaks)for(re=0;re<ce;re++)Q[re]=y.maskBreaks(Q[re]);return Q},y.isValidRange=function(q,oe){return Array.isArray(q)&&q.length===2&&(oe&&q[0]===null||e(y.r2l(q[0])))&&(oe&&q[1]===null||e(y.r2l(q[1])))},y.getAutorangeDflt=function(q,oe){var ae=!y.isValidRange(q,"nullOk");return ae&&oe&&oe.reverseDflt?ae="reversed":q&&(q[0]===null&&q[1]===null?ae=!0:q[0]===null&&q[1]!==null?ae="min":q[0]!==null&&q[1]===null&&(ae="max")),ae},y.isReversed=function(){var q=y.autorange;return q==="reversed"||q==="min reversed"||q==="max reversed"},y.isPtWithinRange=function(q,oe){var ae=y.c2l(q[L],null,oe),j=y.r2l(y.range[0]),Q=y.r2l(y.range[1]);return j<Q?j<=ae&&ae<=Q:Q<=ae&&ae<=j},y._emptyCategories=function(){y._categories=[],y._categoriesMap={}},y.clearCalc=function(){var q=y._matchGroup;if(q){var oe=null,ae=null;for(var j in q){var Q=f[w.id2name(j)];if(Q._categories){oe=Q._categories,ae=Q._categoriesMap;break}}oe&&ae?(y._categories=oe,y._categoriesMap=ae):y._emptyCategories()}else y._emptyCategories();if(y._initialCategories)for(var re=0;re<y._initialCategories.length;re++)P(y._initialCategories[re])},y.sortByInitialCategories=function(){var q=[];if(y._emptyCategories(),y._initialCategories)for(var oe=0;oe<y._initialCategories.length;oe++)P(y._initialCategories[oe]);q=q.concat(y._traceIndices);var ae=y._matchGroup;for(var j in ae)if(R!==j){var Q=f[w.id2name(j)];Q._categories=y._categories,Q._categoriesMap=y._categoriesMap,q=q.concat(Q._traceIndices)}return q};var ee=f._d3locale;y.type==="date"&&(y._dateFormat=ee?ee.timeFormat:x,y._extraFormat=f._extraFormat),y._separators=f.separators,y._numFormat=ee?ee.numberFormat:E,delete y._minDtick,delete y._forceTick0}}}),a1=Xe({"src/plots/cartesian/axis_autotype.js"(Z,G){"use strict";var v=rs(),x=sa(),S=Hs().BADNUM,E=x.isArrayOrTypedArray,e=x.isDateTime,t=x.cleanNumber,r=Math.round;G.exports=function(m,p,T){var l=m,_=T.noMultiCategory;if(E(l)&&!l.length)return"-";if(!_&&h(l))return"multicategory";if(_&&Array.isArray(l[0])){for(var w=[],A=0;A<l.length;A++)if(E(l[A]))for(var M=0;M<l[A].length;M++)w.push(l[A][M]);l=w}if(n(l,p))return"date";var g=T.autotypenumbers!=="strict";return s(l,g)?"category":a(l,g)?"linear":"-"};function o(c,m){return m?v(c):typeof c=="number"}function a(c,m){for(var p=c.length,T=0;T<p;T++)if(o(c[T],m))return!0;return!1}function n(c,m){for(var p=c.length,T=i(p),l=0,_=0,w={},A=0;A<p;A+=T){var M=r(A),g=c[M],b=String(g);w[b]||(w[b]=1,e(g,m)&&l++,v(g)&&_++)}return l>_*2}function i(c){return Math.max(1,(c-1)/1e3)}function s(c,m){for(var p=c.length,T=i(p),l=0,_=0,w={},A=0;A<p;A+=T){var M=r(A),g=c[M],b=String(g);if(!w[b]){w[b]=1;var d=typeof g;d==="boolean"?_++:(m?t(g)!==S:d==="number")?l++:d==="string"&&_++}}return _>l*2}function h(c){return E(c[0])&&E(c[1])}}}),Yd=Xe({"src/plots/cartesian/autorange.js"(Z,G){"use strict";var v=Hn(),x=rs(),S=sa(),E=Hs().FP_SAFE,e=so(),t=es(),r=ef(),o=r.getFromId,a=r.isLinked;G.exports={applyAutorangeOptions:y,getAutoRange:n,makePadFn:s,doAutoRange:p,findExtremes:T,concatExtremes:m};function n(f,R){var L,z,F=[],N=f._fullLayout,O=s(N,R,0),P=s(N,R,1),U=m(f,R),B=U.min,X=U.max;if(B.length===0||X.length===0)return S.simpleMap(R.range,R.r2l);var $=B[0].val,se=X[0].val;for(L=1;L<B.length&&$===se;L++)$=Math.min($,B[L].val);for(L=1;L<X.length&&$===se;L++)se=Math.max(se,X[L].val);var le=R.autorange,fe=le==="reversed"||le==="min reversed"||le==="max reversed";if(!fe&&R.range){var V=S.simpleMap(R.range,R.r2l);fe=V[1]<V[0]}R.autorange==="reversed"&&(R.autorange=!0);var Y=R.rangemode,ee=Y==="tozero",q=Y==="nonnegative",oe=R._length,ae=oe/10,j=0,Q,re,ce,be,Ae,De;for(L=0;L<B.length;L++)for(Q=B[L],z=0;z<X.length;z++)re=X[z],De=re.val-Q.val-i(R,Q.val,re.val),De>0&&(Ae=oe-O(Q)-P(re),Ae>ae?De/Ae>j&&(ce=Q,be=re,j=De/Ae):De/oe>j&&(ce={val:Q.val,nopad:1},be={val:re.val,nopad:1},j=De/oe));function ze(st,Me){return Math.max(st,P(Me))}if($===se){var Ze=$-1,at=$+1;if(ee)if($===0)F=[0,1];else{var nt=($>0?X:B).reduce(ze,0),rt=$/(1-Math.min(.5,nt/oe));F=$>0?[0,rt]:[rt,0]}else q?F=[Math.max(0,Ze),Math.max(1,at)]:F=[Ze,at]}else ee?(ce.val>=0&&(ce={val:0,nopad:1}),be.val<=0&&(be={val:0,nopad:1})):q&&(ce.val-j*O(ce)<0&&(ce={val:0,nopad:1}),be.val<=0&&(be={val:1,nopad:1})),j=(be.val-ce.val-i(R,Q.val,re.val))/(oe-O(ce)-P(be)),F=[ce.val-j*O(ce),be.val+j*P(be)];return F=y(F,R),R.limitRange&&R.limitRange(),fe&&F.reverse(),S.simpleMap(F,R.l2r||Number)}function i(f,R,L){var z=0;if(f.rangebreaks)for(var F=f.locateBreaks(R,L),N=0;N<F.length;N++){var O=F[N];z+=O.max-O.min}return z}function s(f,R,L){var z=.05*R._length,F=R._anchorAxis||{};if((R.ticklabelposition||"").indexOf("inside")!==-1||(F.ticklabelposition||"").indexOf("inside")!==-1){var N=R.isReversed();if(!N){var O=S.simpleMap(R.range,R.r2l);N=O[1]<O[0]}N&&(L=!L)}var P=0;return a(f,R._id)||(P=c(f,R,L)),z=Math.max(P,z),R.constrain==="domain"&&R._inputDomain&&(z*=(R._inputDomain[1]-R._inputDomain[0])/(R.domain[1]-R.domain[0])),function(B){return B.nopad?0:B.pad+(B.extrapad?z:P)}}var h=3;function c(f,R,L){var z=0,F=R._id.charAt(0)==="x";for(var N in f._plots){var O=f._plots[N];if(!(R._id!==O.xaxis._id&&R._id!==O.yaxis._id)){var P=(F?O.yaxis:O.xaxis)||{};if((P.ticklabelposition||"").indexOf("inside")!==-1&&(!L&&(P.side==="left"||P.side==="bottom")||L&&(P.side==="top"||P.side==="right"))){if(P._vals){var U=S.deg2rad(P._tickAngles[P._id+"tick"]||0),B=Math.abs(Math.cos(U)),X=Math.abs(Math.sin(U));if(!P._vals[0].bb){var $=P._id+"tick",se=P._selections[$];se.each(function(q){var oe=v.select(this),ae=oe.select(".text-math-group");ae.empty()&&(q.bb=t.bBox(oe.node()))})}for(var le=0;le<P._vals.length;le++){var fe=P._vals[le],V=fe.bb;if(V){var Y=2*h+V.width,ee=2*h+V.height;z=Math.max(z,F?Math.max(Y*B,ee*X):Math.max(ee*B,Y*X))}}}P.ticks==="inside"&&P.ticklabelposition==="inside"&&(z+=P.ticklen||0)}}}return z}function m(f,R,L){var z=R._id,F=f._fullData,N=f._fullLayout,O=[],P=[],U,B,X;function $(Y,ee){for(U=0;U<ee.length;U++){var q=Y[ee[U]],oe=(q._extremes||{})[z];if(q.visible===!0&&oe){for(B=0;B<oe.min.length;B++)X=oe.min[B],l(O,X.val,X.pad,{extrapad:X.extrapad});for(B=0;B<oe.max.length;B++)X=oe.max[B],_(P,X.val,X.pad,{extrapad:X.extrapad})}}}if($(F,R._traceIndices),$(N.annotations||[],R._annIndices||[]),$(N.shapes||[],R._shapeIndices||[]),R._matchGroup&&!L){for(var se in R._matchGroup)if(se!==R._id){var le=o(f,se),fe=m(f,le,!0),V=R._length/le._length;for(B=0;B<fe.min.length;B++)X=fe.min[B],l(O,X.val,X.pad*V,{extrapad:X.extrapad});for(B=0;B<fe.max.length;B++)X=fe.max[B],_(P,X.val,X.pad*V,{extrapad:X.extrapad})}}return{min:O,max:P}}function p(f,R,L){if(R.setScale(),R.autorange){R.range=L?L.slice():n(f,R),R._r=R.range.slice(),R._rl=S.simpleMap(R._r,R.r2l);var z=R._input,F={};F[R._attr+".range"]=R.range,F[R._attr+".autorange"]=R.autorange,e.call("_storeDirectGUIEdit",f.layout,f._fullLayout._preGUI,F),z.range=R.range.slice(),z.autorange=R.autorange}var N=R._anchorAxis;if(N&&N.rangeslider){var O=N.rangeslider[R._name];O&&O.rangemode==="auto"&&(O.range=n(f,R)),N._input.rangeslider[R._name]=S.extendFlat({},O)}}function T(f,R,L){L||(L={}),f._m||f.setScale();var z=[],F=[],N=R.length,O=L.padded||!1,P=L.tozero&&(f.type==="linear"||f.type==="-"),U=f.type==="log",B=!1,X=L.vpadLinearized||!1,$,se,le,fe,V,Y,ee,q,oe;function ae(ze){if(Array.isArray(ze))return B=!0,function(at){return Math.max(Number(ze[at]||0),0)};var Ze=Math.max(Number(ze||0),0);return function(){return Ze}}var j=ae((f._m>0?L.ppadplus:L.ppadminus)||L.ppad||0),Q=ae((f._m>0?L.ppadminus:L.ppadplus)||L.ppad||0),re=ae(L.vpadplus||L.vpad),ce=ae(L.vpadminus||L.vpad);if(!B){if(q=1/0,oe=-1/0,U)for($=0;$<N;$++)se=R[$],se<q&&se>0&&(q=se),se>oe&&se<E&&(oe=se);else for($=0;$<N;$++)se=R[$],se<q&&se>-E&&(q=se),se>oe&&se<E&&(oe=se);R=[q,oe],N=2}var be={tozero:P,extrapad:O};function Ae(ze){le=R[ze],x(le)&&(Y=j(ze),ee=Q(ze),X?(fe=f.c2l(le)-ce(ze),V=f.c2l(le)+re(ze)):(q=le-ce(ze),oe=le+re(ze),U&&q<oe/10&&(q=oe/10),fe=f.c2l(q),V=f.c2l(oe)),P&&(fe=Math.min(0,fe),V=Math.max(0,V)),A(fe)&&l(z,fe,ee,be),A(V)&&_(F,V,Y,be))}var De=Math.min(6,N);for($=0;$<De;$++)Ae($);for($=N-1;$>=De;$--)Ae($);return{min:z,max:F,opts:L}}function l(f,R,L,z){w(f,R,L,z,M)}function _(f,R,L,z){w(f,R,L,z,g)}function w(f,R,L,z,F){for(var N=z.tozero,O=z.extrapad,P=!0,U=0;U<f.length&&P;U++){var B=f[U];if(F(B.val,R)&&B.pad>=L&&(B.extrapad||!O)){P=!1;break}else F(R,B.val)&&B.pad<=L&&(O||!B.extrapad)&&(f.splice(U,1),U--)}if(P){var X=N&&R===0;f.push({val:R,pad:X?0:L,extrapad:X?!1:O})}}function A(f){return x(f)&&Math.abs(f)<E}function M(f,R){return f<=R}function g(f,R){return f>=R}function b(f,R){var L=R.autorangeoptions;return L&&L.minallowed!==void 0&&u(R,L.minallowed,L.maxallowed)?L.minallowed:L&&L.clipmin!==void 0&&u(R,L.clipmin,L.clipmax)?Math.max(f,R.d2l(L.clipmin)):f}function d(f,R){var L=R.autorangeoptions;return L&&L.maxallowed!==void 0&&u(R,L.minallowed,L.maxallowed)?L.maxallowed:L&&L.clipmax!==void 0&&u(R,L.clipmin,L.clipmax)?Math.min(f,R.d2l(L.clipmax)):f}function u(f,R,L){return R!==void 0&&L!==void 0?(R=f.d2l(R),L=f.d2l(L),R<L):!0}function y(f,R){if(!R||!R.autorangeoptions)return f;var L=f[0],z=f[1],F=R.autorangeoptions.include;if(F!==void 0){var N=R.d2l(L),O=R.d2l(z);S.isArrayOrTypedArray(F)||(F=[F]);for(var P=0;P<F.length;P++){var U=R.d2l(F[P]);N>=U&&(N=U,L=U),O<=U&&(O=U,z=U)}}return L=b(L,R),z=d(z,R),[L,z]}}}),Go=Xe({"src/plots/cartesian/axes.js"(Z,G){"use strict";var v=Hn(),x=rs(),S=bc(),E=so(),e=sa(),t=e.strTranslate,r=ou(),o=K0(),a=$n(),n=es(),i=Wh(),s=l5(),h=lh(),c=Hs(),m=c.ONEMAXYEAR,p=c.ONEAVGYEAR,T=c.ONEMINYEAR,l=c.ONEMAXQUARTER,_=c.ONEAVGQUARTER,w=c.ONEMINQUARTER,A=c.ONEMAXMONTH,M=c.ONEAVGMONTH,g=c.ONEMINMONTH,b=c.ONEWEEK,d=c.ONEDAY,u=d/2,y=c.ONEHOUR,f=c.ONEMIN,R=c.ONESEC,L=c.ONEMILLI,z=c.ONEMICROSEC,F=c.MINUS_SIGN,N=c.BADNUM,O={K:"zeroline"},P={K:"gridline",L:"path"},U={K:"minor-gridline",L:"path"},B={K:"tick",L:"path"},X={K:"tick",L:"text"},$={width:["x","r","l","xl","xr"],height:["y","t","b","yt","yb"],right:["r","xr"],left:["l","xl"],top:["t","yt"],bottom:["b","yb"]},se=uh(),le=se.MID_SHIFT,fe=se.CAP_SHIFT,V=se.LINE_SPACING,Y=se.OPPOSITE_SIDE,ee=3,q=G.exports={};q.setConvert=wv();var oe=a1(),ae=ef(),j=ae.idSort,Q=ae.isLinked;q.id2name=ae.id2name,q.name2id=ae.name2id,q.cleanId=ae.cleanId,q.list=ae.list,q.listIds=ae.listIds,q.getFromId=ae.getFromId,q.getFromTrace=ae.getFromTrace;var re=Yd();q.getAutoRange=re.getAutoRange,q.findExtremes=re.findExtremes;var ce=1e-4;function be(Tt){var ut=(Tt[1]-Tt[0])*ce;return[Tt[0]-ut,Tt[1]+ut]}q.coerceRef=function(Tt,ut,Br,Cr,xr,Ir){var Ur=Cr.charAt(Cr.length-1),Hr=Br._fullLayout._subplots[Ur+"axis"],xt=Cr+"ref",Xt={};return xr||(xr=Hr[0]||(typeof Ir=="string"?Ir:Ir[0])),Ir||(Ir=xr),Hr=Hr.concat(Hr.map(function(vr){return vr+" domain"})),Xt[xt]={valType:"enumerated",values:Hr.concat(Ir?typeof Ir=="string"?[Ir]:Ir:[]),dflt:xr},e.coerce(Tt,ut,Xt,xt)},q.coerceRefArray=function(Tt,ut,Br,Cr,xr,Ir,Ur){let Hr=Cr.charAt(Cr.length-1);var xt=Br._fullLayout._subplots[Hr+"axis"];let Xt=Cr+"ref";var vr=Tt[Xt];xr||(xr=xt[0]||(typeof Ir=="string"?Ir:Ir[0])),xt=xt.concat(xt.map(ba=>ba+" domain")),xt=xt.concat(Ir||[]),vr.length>Ur?(e.warn("Array attribute "+Xt+" has more entries than expected, truncating to "+Ur),vr=vr.slice(0,Ur)):vr.length<Ur&&(e.warn("Array attribute "+Xt+" has fewer entries than expected, extending with default value"),vr=vr.concat(Array(Ur-vr.length).fill(xr)));for(var Or=0;Or<vr.length;Or++)vr[Or]=ae.cleanId(vr[Or],Hr,!0)||vr[Or],xt.includes(vr[Or])||(vr[Or]=xr);return ut[Xt]=vr,vr},q.getRefType=function(Tt){return Tt===void 0?Tt:Array.isArray(Tt)?"array":Tt==="paper"?"paper":Tt==="pixel"?"pixel":/( domain)$/.test(Tt)?"domain":"range"},q.coercePosition=function(Tt,ut,Br,Cr,xr,Ir){var Ur,Hr,xt=q.getRefType(Cr);if(xt!=="range")Ur=e.ensureNumber,Hr=Br(xr,Ir);else{var Xt=q.getFromId(ut,Cr);Ir=Xt.fraction2r(Ir),Hr=Br(xr,Ir),Ur=Xt.cleanPos}Tt[xr]=Ur(Hr)},q.cleanPosition=function(Tt,ut,Br){var Cr=Br==="paper"||Br==="pixel"?e.ensureNumber:q.getFromId(ut,Br).cleanPos;return Cr(Tt)},q.redrawComponents=function(Tt,ut){ut=ut||q.listIds(Tt);var Br=Tt._fullLayout;function Cr(xr,Ir,Ur,Hr){for(var xt=E.getComponentMethod(xr,Ir),Xt={},vr=0;vr<ut.length;vr++)for(var Or=Br[q.id2name(ut[vr])],ba=Or[Ur],Pa=0;Pa<ba.length;Pa++){var ya=ba[Pa];if(!Xt[ya]&&(xt(Tt,ya),Xt[ya]=1,Hr))return}}Cr("annotations","drawOne","_annIndices"),Cr("shapes","drawOne","_shapeIndices"),Cr("images","draw","_imgIndices",!0),Cr("selections","drawOne","_selectionIndices")};var Ae=q.getDataConversions=function(Tt,ut,Br,Cr){var xr,Ir=Br==="x"||Br==="y"||Br==="z"?Br:Cr;if(e.isArrayOrTypedArray(Ir)){if(xr={type:oe(Cr,void 0,{autotypenumbers:Tt._fullLayout.autotypenumbers}),_categories:[]},q.setConvert(xr),xr.type==="category")for(var Ur=0;Ur<Cr.length;Ur++)xr.d2c(Cr[Ur])}else xr=q.getFromTrace(Tt,ut,Ir);return xr?{d2c:xr.d2c,c2d:xr.c2d}:Ir==="ids"?{d2c:ze,c2d:ze}:{d2c:De,c2d:De}};function De(Tt){return+Tt}function ze(Tt){return String(Tt)}q.getDataToCoordFunc=function(Tt,ut,Br,Cr){return Ae(Tt,ut,Br,Cr).d2c},q.counterLetter=function(Tt){var ut=Tt.charAt(0);if(ut==="x")return"y";if(ut==="y")return"x"},q.minDtick=function(Tt,ut,Br,Cr){["log","category","multicategory"].indexOf(Tt.type)!==-1||!Cr?Tt._minDtick=0:Tt._minDtick===void 0?(Tt._minDtick=ut,Tt._forceTick0=Br):Tt._minDtick&&((Tt._minDtick/ut+1e-6)%1<2e-6&&((Br-Tt._forceTick0)/ut%1+1.000001)%1<2e-6?(Tt._minDtick=ut,Tt._forceTick0=Br):((ut/Tt._minDtick+1e-6)%1>2e-6||((Br-Tt._forceTick0)/Tt._minDtick%1+1.000001)%1>2e-6)&&(Tt._minDtick=0))},q.saveRangeInitial=function(Tt,ut){for(var Br=q.list(Tt,"",!0),Cr=!1,xr=0;xr<Br.length;xr++){var Ir=Br[xr],Ur=Ir._rangeInitial0===void 0&&Ir._rangeInitial1===void 0,Hr=Ur||Ir.range[0]!==Ir._rangeInitial0||Ir.range[1]!==Ir._rangeInitial1,xt=Ir.autorange;(Ur&&xt!==!0||ut&&Hr)&&(Ir._rangeInitial0=xt==="min"||xt==="max reversed"?void 0:Ir.range[0],Ir._rangeInitial1=xt==="max"||xt==="min reversed"?void 0:Ir.range[1],Ir._autorangeInitial=xt,Cr=!0)}return Cr},q.saveShowSpikeInitial=function(Tt,ut){for(var Br=q.list(Tt,"",!0),Cr=!1,xr="on",Ir=0;Ir<Br.length;Ir++){var Ur=Br[Ir],Hr=Ur._showSpikeInitial===void 0,xt=Hr||Ur.showspikes!==Ur._showspikes;(Hr||ut&&xt)&&(Ur._showSpikeInitial=Ur.showspikes,Cr=!0),xr==="on"&&!Ur.showspikes&&(xr="off")}return Tt._fullLayout._cartesianSpikesEnabled=xr,Cr},q.autoBin=function(Tt,ut,Br,Cr,xr,Ir){var Ur=e.aggNums(Math.min,null,Tt),Hr=e.aggNums(Math.max,null,Tt);if(ut.type==="category"||ut.type==="multicategory")return{start:Ur-.5,end:Hr+.5,size:Math.max(1,Math.round(Ir)||1),_dataSpan:Hr-Ur};xr||(xr=ut.calendar);var xt;if(ut.type==="log"?xt={type:"linear",range:[Ur,Hr]}:xt={type:ut.type,range:e.simpleMap([Ur,Hr],ut.c2r,0,xr),calendar:xr},q.setConvert(xt),Ir=Ir&&s.dtick(Ir,xt.type),Ir)xt.dtick=Ir,xt.tick0=s.tick0(void 0,xt.type,xr);else{var Xt;if(Br)Xt=(Hr-Ur)/Br;else{var vr=e.distinctVals(Tt),Or=Math.pow(10,Math.floor(Math.log(vr.minDiff)/Math.LN10)),ba=Or*e.roundUp(vr.minDiff/Or,[.9,1.9,4.9,9.9],!0);Xt=Math.max(ba,2*e.stdev(Tt)/Math.pow(Tt.length,Cr?.25:.4)),x(Xt)||(Xt=1)}q.autoTicks(xt,Xt)}var Pa=xt.dtick,ya=q.tickIncrement(q.tickFirst(xt),Pa,"reverse",xr),la,Ta;if(typeof Pa=="number")ya=Ze(ya,Tt,xt,Ur,Hr),Ta=1+Math.floor((Hr-ya)/Pa),la=ya+Ta*Pa;else for(xt.dtick.charAt(0)==="M"&&(ya=at(ya,Tt,Pa,Ur,xr)),la=ya,Ta=0;la<=Hr;)la=q.tickIncrement(la,Pa,!1,xr),Ta++;return{start:ut.c2r(ya,0,xr),end:ut.c2r(la,0,xr),size:Pa,_dataSpan:Hr-Ur}};function Ze(Tt,ut,Br,Cr,xr){var Ir=0,Ur=0,Hr=0,xt=0;function Xt(Pa){return(1+(Pa-Tt)*100/Br.dtick)%100<2}for(var vr=0;vr<ut.length;vr++)ut[vr]%1===0?Hr++:x(ut[vr])||xt++,Xt(ut[vr])&&Ir++,Xt(ut[vr]+Br.dtick/2)&&Ur++;var Or=ut.length-xt;if(Hr===Or&&Br.type!=="date")Br.dtick<1?Tt=Cr-.5*Br.dtick:(Tt-=.5,Tt+Br.dtick<Cr&&(Tt+=Br.dtick));else if(Ur<Or*.1&&(Ir>Or*.3||Xt(Cr)||Xt(xr))){var ba=Br.dtick/2;Tt+=Tt+ba<Cr?ba:-ba}return Tt}function at(Tt,ut,Br,Cr,xr){var Ir=e.findExactDates(ut,xr),Ur=.8;if(Ir.exactDays>Ur){var Hr=Number(Br.slice(1));Ir.exactYears>Ur&&Hr%12===0?Tt=q.tickIncrement(Tt,"M6","reverse")+d*1.5:Ir.exactMonths>Ur?Tt=q.tickIncrement(Tt,"M1","reverse")+d*15.5:Tt-=u;var xt=q.tickIncrement(Tt,Br);if(xt<=Cr)return xt}return Tt}q.prepMinorTicks=function(Tt,ut,Br){if(!ut.minor.dtick){delete Tt.dtick;var Cr=ut.dtick&&x(ut._tmin),xr;if(Cr){var Ir=q.tickIncrement(ut._tmin,ut.dtick,!0);xr=[ut._tmin,Ir*.99+ut._tmin*.01]}else{var Ur=e.simpleMap(ut.range,ut.r2l);xr=[Ur[0],.8*Ur[0]+.2*Ur[1]]}if(Tt.range=e.simpleMap(xr,ut.l2r),Tt._isMinor=!0,q.prepTicks(Tt,Br),Cr){var Hr=x(ut.dtick),xt=x(Tt.dtick),Xt=Hr?ut.dtick:+ut.dtick.substring(1),vr=xt?Tt.dtick:+Tt.dtick.substring(1);Hr&&xt?nt(Xt,vr)?Xt===2*b&&vr===2*d&&(Tt.dtick=b):Xt===2*b&&vr===3*d?Tt.dtick=b:Xt===b&&!(ut._input.minor||{}).nticks?Tt.dtick=d:rt(Xt/vr,2.5)?Tt.dtick=Xt/2:Tt.dtick=Xt:String(ut.dtick).charAt(0)==="M"?xt?Tt.dtick="M1":nt(Xt,vr)?Xt>=12&&vr===2&&(Tt.dtick="M3"):Tt.dtick=ut.dtick:String(Tt.dtick).charAt(0)==="L"?String(ut.dtick).charAt(0)==="L"?nt(Xt,vr)||(Tt.dtick=rt(Xt/vr,2.5)?ut.dtick/2:ut.dtick):Tt.dtick="D1":Tt.dtick==="D2"&&+ut.dtick>1&&(Tt.dtick=1)}Tt.range=ut.range}ut.minor._tick0Init===void 0&&(Tt.tick0=ut.tick0)};function nt(Tt,ut){return Math.abs((Tt/ut+.5)%1-.5)<.001}function rt(Tt,ut){return Math.abs(Tt/ut-1)<.001}q.prepTicks=function(Tt,ut){var Br=e.simpleMap(Tt.range,Tt.r2l,void 0,void 0,ut);if(Tt.tickmode==="auto"||!Tt.dtick){var Cr=Tt.nticks,xr;Cr||(Tt.type==="category"||Tt.type==="multicategory"?(xr=Tt.tickfont?e.bigFont(Tt.tickfont.size||12):15,Cr=Tt._length/xr):(xr=Tt._id.charAt(0)==="y"?40:80,Cr=e.constrain(Tt._length/xr,4,9)+1),Tt._name==="radialaxis"&&(Cr*=2)),Tt.minor&&Tt.minor.tickmode!=="array"||Tt.tickmode==="array"&&(Cr*=100),Tt._roughDTick=Math.abs(Br[1]-Br[0])/Cr,q.autoTicks(Tt,Tt._roughDTick),Tt._minDtick>0&&Tt.dtick<Tt._minDtick*2&&(Tt.dtick=Tt._minDtick,Tt.tick0=Tt.l2r(Tt._forceTick0))}Tt.ticklabelmode==="period"&&Me(Tt),Tt.tick0||(Tt.tick0=Tt.type==="date"?"2000-01-01":0),Tt.type==="date"&&Tt.dtick<.1&&(Tt.dtick=.1),qr(Tt)};function st(Tt){return+Tt.substring(1)}function Me(Tt){var ut;function Br(){return!(x(Tt.dtick)||Tt.dtick.charAt(0)!=="M")}var Cr=Br(),xr=q.getTickFormat(Tt);if(xr){var Ir=Tt._dtickInit!==Tt.dtick;/%[fLQsSMX]/.test(xr)||(/%[HI]/.test(xr)?(ut=y,Ir&&!Cr&&Tt.dtick<y&&(Tt.dtick=y)):/%p/.test(xr)?(ut=u,Ir&&!Cr&&Tt.dtick<u&&(Tt.dtick=u)):/%[Aadejuwx]/.test(xr)?(ut=d,Ir&&!Cr&&Tt.dtick<d&&(Tt.dtick=d)):/%[UVW]/.test(xr)?(ut=b,Ir&&!Cr&&Tt.dtick<b&&(Tt.dtick=b)):/%[Bbm]/.test(xr)?(ut=M,Ir&&(Cr?st(Tt.dtick)<1:Tt.dtick<g)&&(Tt.dtick="M1")):/%[q]/.test(xr)?(ut=_,Ir&&(Cr?st(Tt.dtick)<3:Tt.dtick<w)&&(Tt.dtick="M3")):/%[Yy]/.test(xr)&&(ut=p,Ir&&(Cr?st(Tt.dtick)<12:Tt.dtick<T)&&(Tt.dtick="M12")))}Cr=Br(),Cr&&Tt.tick0===Tt._dowTick0&&(Tt.tick0=Tt._rawTick0),Tt._definedDelta=ut}function ye(Tt,ut,Br){for(var Cr=0;Cr<Tt.length;Cr++){var xr=Tt[Cr].value,Ir=Cr,Ur=Cr+1;Cr<Tt.length-1?(Ir=Cr,Ur=Cr+1):Cr>0?(Ir=Cr-1,Ur=Cr):(Ir=Cr,Ur=Cr);var Hr=Tt[Ir].value,xt=Tt[Ur].value,Xt=Math.abs(xt-Hr),vr=Br||Xt,Or=0;vr>=T?Xt>=T&&Xt<=m?Or=Xt:Or=p:Br===_&&vr>=w?Xt>=w&&Xt<=l?Or=Xt:Or=_:vr>=g?Xt>=g&&Xt<=A?Or=Xt:Or=M:Br===b&&vr>=b?Or=b:vr>=d?Or=d:Br===u&&vr>=u?Or=u:Br===y&&vr>=y&&(Or=y);var ba;Or>=Xt&&(Or=Xt,ba=!0);var Pa=xr+Or;if(ut.rangebreaks&&Or>0){for(var ya=84,la=0,Ta=0;Ta<ya;Ta++){var Ai=(Ta+.5)/ya;ut.maskBreaks(xr*(1-Ai)+Ai*Pa)!==N&&la++}Or*=la/ya,Or||(Tt[Cr].drop=!0),ba&&Xt>b&&(Or=Xt)}(Or>0||Cr===0)&&(Tt[Cr].periodX=xr+Or/2)}}q.calcTicks=function(ut,Br){for(var Cr=ut.type,xr=ut.calendar,Ir=ut.ticklabelstep,Ur=ut.ticklabelmode==="period",Hr=ut.range[0]>ut.range[1],xt=!ut.ticklabelindex||e.isArrayOrTypedArray(ut.ticklabelindex)?ut.ticklabelindex:[ut.ticklabelindex],Xt=e.simpleMap(ut.range,ut.r2l,void 0,void 0,Br),vr=Xt[1]<Xt[0],Or=Math.min(Xt[0],Xt[1]),ba=Math.max(Xt[0],Xt[1]),Pa=Math.max(1e3,ut._length||0),ya=[],la=[],Ta=[],Ai=[],ki=[],Ki=ut.minor&&(ut.minor.ticks||ut.minor.showgrid),_n=1;_n>=(Ki?0:1);_n--){var Rn=!_n;_n?(ut._dtickInit=ut.dtick,ut._tick0Init=ut.tick0):(ut.minor._dtickInit=ut.minor.dtick,ut.minor._tick0Init=ut.minor.tick0);var En=_n?ut:e.extendFlat({},ut,ut.minor);if(Rn?q.prepMinorTicks(En,ut,Br):q.prepTicks(En,Br),En.tickmode==="array"){_n?(Ta=[],ya=tt(ut,!Rn)):(Ai=[],la=tt(ut,!Rn));continue}if(En.tickmode==="sync"){Ta=[],ya=Oe(ut);continue}var On=be(Xt),no=On[0],cn=On[1],lo=x(En.dtick),Wo=Cr==="log"&&!(lo||En.dtick.charAt(0)==="L"),hs=q.tickFirst(En,Br);if(_n){if(ut._tmin=hs,hs<no!==vr)break;(Cr==="category"||Cr==="multicategory")&&(cn=vr?Math.max(-.5,cn):Math.min(ut._categories.length-.5,cn))}var Oo=null,Wn=hs,No;if(_n){var as;lo?as=ut.dtick:Cr==="date"?typeof ut.dtick=="string"&&ut.dtick.charAt(0)==="M"&&(as=M*ut.dtick.substring(1)):as=ut._roughDTick,No=Math.round((ut.r2l(Wn)-ut.r2l(ut.tick0))/as)-1}var Ns=En.dtick;for(En.rangebreaks&&En._tick0Init!==En.tick0&&(Wn=ri(Wn,ut),vr||(Wn=q.tickIncrement(Wn,Ns,!vr,xr))),_n&&Ur&&(Wn=q.tickIncrement(Wn,Ns,!vr,xr),No--);vr?Wn>=cn:Wn<=cn;Wn=q.tickIncrement(Wn,Ns,vr,xr)){if(_n&&No++,En.rangebreaks&&!vr){if(Wn<no)continue;if(En.maskBreaks(Wn)===N&&ri(Wn,En)>=ba)break}if(Ta.length>Pa||Wn===Oo)break;Oo=Wn;var ss={value:Wn};_n?(Wo&&Wn!==(Wn|0)&&(ss.simpleLabel=!0),Ir>1&&No%Ir&&(ss.skipLabel=!0),Ta.push(ss)):(ss.minor=!0,Ai.push(ss))}}if(!Ai||Ai.length<2)xt=!1;else{var uo=(Ai[1].value-Ai[0].value)*(Hr?-1:1);hn(uo,ut.tickformat)||(xt=!1)}if(!xt)ki=Ta;else{var jn=Ta.concat(Ai);Ur&&Ta.length&&(jn=jn.slice(1)),jn=jn.sort(function(Vs,vl){return Vs.value-vl.value}).filter(function(Vs,vl,Ts){return vl===0||Vs.value!==Ts[vl-1].value});var Xn=jn.map(function(Vs,vl){return Vs.minor===void 0&&!Vs.skipLabel?vl:null}).filter(function(Vs){return Vs!==null});Xn.forEach(function(Vs){xt.map(function(vl){var Ts=Vs+vl;Ts>=0&&Ts<jn.length&&e.pushUnique(ki,jn[Ts])})})}if(Ki){var ls=ut.minor.ticks==="inside"&&ut.ticks==="outside"||ut.minor.ticks==="outside"&&ut.ticks==="inside";if(!ls){for(var Cs=Ta.map(function(Vs){return Vs.value}),Ks=[],Xo=0;Xo<Ai.length;Xo++){var Gi=Ai[Xo],Ln=Gi.value;if(Cs.indexOf(Ln)===-1){for(var Us=!1,_s=0;!Us&&_s<Ta.length;_s++)1e7+Ta[_s].value===1e7+Ln&&(Us=!0);Us||Ks.push(Gi)}}Ai=Ks}}Ur&&ye(ki,ut,ut._definedDelta);var Gn;if(ut.rangebreaks){var zs=ut._id.charAt(0)==="y",vs=1;ut.tickmode==="auto"&&(vs=ut.tickfont?ut.tickfont.size:12);var Ws=NaN;for(Gn=Ta.length-1;Gn>-1;Gn--){if(Ta[Gn].drop){Ta.splice(Gn,1);continue}Ta[Gn].value=ri(Ta[Gn].value,ut);var il=ut.c2p(Ta[Gn].value);(zs?Ws>il-vs:Ws<il+vs)?Ta.splice(vr?Gn+1:Gn,1):Ws=il}}Za(ut)&&Math.abs(Xt[1]-Xt[0])===360&&Ta.pop(),ut._tmax=(Ta[Ta.length-1]||{}).value,ut._prevDateHead="",ut._inCalcTicks=!0;var xn,ko=function(Vs){Vs.text="",ut._prevDateHead=xn};Ta=Ta.concat(Ai);function bo(Vs,vl){var Ts=q.tickText(Vs,vl.value,!1,vl.simpleLabel),js=vl.periodX;return js!==void 0&&(Ts.periodX=js,(js>ba||js<Or)&&(js>ba&&(Ts.periodX=ba),js<Or&&(Ts.periodX=Or),ko(Ts))),Ts}var Is;for(Gn=0;Gn<Ta.length;Gn++){var pu=Ta[Gn].minor,co=Ta[Gn].value;pu?(xt&&ki.indexOf(Ta[Gn])!==-1?Is=bo(ut,Ta[Gn]):Is={x:co},Is.minor=!0,la.push(Is)):(xn=ut._prevDateHead,Is=bo(ut,Ta[Gn]),(Ta[Gn].skipLabel||xt&&ki.indexOf(Ta[Gn])===-1)&&ko(Is),ya.push(Is))}return ya=ya.concat(la),ut._inCalcTicks=!1,Ur&&ya.length&&(ya[0].noTick=!0),ya};function he(Tt,ut){return Tt.rangebreaks&&(ut=ut.filter(function(Br){return Tt.maskBreaks(Br.x)!==N})),ut}function Oe(Tt){var ut=Tt._mainAxis,Br=[];if(ut._vals){for(var Cr=0;Cr<ut._vals.length;Cr++)if(!ut._vals[Cr].noTick){var xr=ut.l2p(ut._vals[Cr].x),Ir=Tt.p2l(xr),Ur=q.tickText(Tt,Ir);ut._vals[Cr].minor&&(Ur.minor=!0,Ur.text=""),Br.push(Ur)}}return Br=he(Tt,Br),Br}function tt(Tt,ut){var Br=e.simpleMap(Tt.range,Tt.r2l),Cr=be(Br),xr=Math.min(Cr[0],Cr[1]),Ir=Math.max(Cr[0],Cr[1]),Ur=Tt.type==="category"?Tt.d2l_noadd:Tt.d2l;Tt.type==="log"&&String(Tt.dtick).charAt(0)!=="L"&&(Tt.dtick="L"+Math.pow(10,Math.floor(Math.min(Tt.range[0],Tt.range[1]))-1));for(var Hr=[],xt=0;xt<=1;xt++)if(!(ut!==void 0&&(ut&&xt||ut===!1&&!xt))&&!(xt&&!Tt.minor)){var Xt=xt?Tt.minor.tickvals:Tt.tickvals,vr=xt?[]:Tt.ticktext;if(Xt){e.isArrayOrTypedArray(vr)||(vr=[]);for(var Or=0;Or<Xt.length;Or++){var ba=Ur(Xt[Or]);if(ba>xr&&ba<Ir){var Pa=q.tickText(Tt,ba,!1,String(vr[Or]));xt&&(Pa.minor=!0,Pa.text=""),Hr.push(Pa)}}}}return Hr=he(Tt,Hr),Hr}var ot=[2,5,10],Qe=[1,2,3,6,12],Pt=[1,2,5,10,15,30],It=[1,2,3,7,14],qt=[-.046,0,.301,.477,.602,.699,.778,.845,.903,.954,1],Wt=[-.301,0,.301,.699,1],kr=[15,30,45,90,180];function mr(Tt,ut,Br){return ut*e.roundUp(Tt/ut,Br)}q.autoTicks=function(Tt,ut,Br){var Cr;function xr(Or){return Math.pow(Or,Math.floor(Math.log(ut)/Math.LN10))}if(Tt.type==="date"){Tt.tick0=e.dateTick0(Tt.calendar,0);var Ir=2*ut;if(Ir>p)ut/=p,Cr=xr(10),Tt.dtick="M"+12*mr(ut,Cr,ot);else if(Ir>M)ut/=M,Tt.dtick="M"+mr(ut,1,Qe);else if(Ir>d){if(Tt.dtick=mr(ut,d,Tt._hasDayOfWeekBreaks?[1,2,7,14]:It),!Br){var Ur=q.getTickFormat(Tt),Hr=Tt.ticklabelmode==="period";Hr&&(Tt._rawTick0=Tt.tick0),/%[uVW]/.test(Ur)?Tt.tick0=e.dateTick0(Tt.calendar,2):Tt.tick0=e.dateTick0(Tt.calendar,1),Hr&&(Tt._dowTick0=Tt.tick0)}}else Ir>y?Tt.dtick=mr(ut,y,Qe):Ir>f?Tt.dtick=mr(ut,f,Pt):Ir>R?Tt.dtick=mr(ut,R,Pt):(Cr=xr(10),Tt.dtick=mr(ut,Cr,ot))}else if(Tt.type==="log"){Tt.tick0=0;var xt=e.simpleMap(Tt.range,Tt.r2l);if(Tt._isMinor&&(ut*=1.5),ut>.7)Tt.dtick=Math.ceil(ut);else if(Math.abs(xt[1]-xt[0])<1){var Xt=1.5*Math.abs((xt[1]-xt[0])/ut);ut=Math.abs(Math.pow(10,xt[1])-Math.pow(10,xt[0]))/Xt,Cr=xr(10),Tt.dtick="L"+mr(ut,Cr,ot)}else Tt.dtick=ut>.3?"D2":"D1"}else Tt.type==="category"||Tt.type==="multicategory"?(Tt.tick0=0,Tt.dtick=Math.ceil(Math.max(ut,1))):Za(Tt)?(Tt.tick0=0,Cr=1,Tt.dtick=mr(ut,Cr,kr)):(Tt.tick0=0,Cr=xr(10),Tt.dtick=mr(ut,Cr,ot));if(Tt.dtick===0&&(Tt.dtick=1),!x(Tt.dtick)&&typeof Tt.dtick!="string"){var vr=Tt.dtick;throw Tt.dtick=1,"ax.dtick error: "+String(vr)}};function qr(Tt){var ut=Tt.dtick;if(Tt._tickexponent=0,!x(ut)&&typeof ut!="string"&&(ut=1),(Tt.type==="category"||Tt.type==="multicategory")&&(Tt._tickround=null),Tt.type==="date"){var Br=Tt.r2l(Tt.tick0),Cr=Tt.l2r(Br).replace(/(^-|i)/g,""),xr=Cr.length;if(String(ut).charAt(0)==="M")xr>10||Cr.slice(5)!=="01-01"?Tt._tickround="d":Tt._tickround=+ut.slice(1)%12===0?"y":"m";else if(ut>=d&&xr<=10||ut>=d*15)Tt._tickround="d";else if(ut>=f&&xr<=16||ut>=y)Tt._tickround="M";else if(ut>=R&&xr<=19||ut>=f)Tt._tickround="S";else{var Ir=Tt.l2r(Br+ut).replace(/^-/,"").length;Tt._tickround=Math.max(xr,Ir)-20,Tt._tickround<0&&(Tt._tickround=4)}}else if(x(ut)||ut.charAt(0)==="L"){var Ur=Tt.range.map(Tt.r2d||Number);x(ut)||(ut=Number(ut.slice(1))),Tt._tickround=2-Math.floor(Math.log(ut)/Math.LN10+.01);var Hr=Math.max(Math.abs(Ur[0]),Math.abs(Ur[1])),xt=Math.floor(Math.log(Hr)/Math.LN10+.01),Xt=Tt.minexponent===void 0?3:Tt.minexponent;Math.abs(xt)>Xt&&(Pe(Tt.exponentformat)&&Tt.exponentformat!=="SI extended"&&!ft(xt)||Pe(Tt.exponentformat)&&Tt.exponentformat==="SI extended"&&!ct(xt)?Tt._tickexponent=3*Math.round((xt-1)/3):Tt._tickexponent=xt)}else Tt._tickround=null}q.tickIncrement=function(Tt,ut,Br,Cr){var xr=Br?-1:1;if(x(ut))return e.increment(Tt,xr*ut);var Ir=ut.charAt(0),Ur=xr*Number(ut.slice(1));if(Ir==="M")return e.incrementMonth(Tt,Ur,Cr);if(Ir==="L")return Math.log(Math.pow(10,Tt)+Ur)/Math.LN10;if(Ir==="D"){var Hr=ut==="D2"?Wt:qt,xt=Tt+xr*.01,Xt=e.roundUp(e.mod(xt,1),Hr,Br);return Math.floor(xt)+Math.log(v.round(Math.pow(10,Xt),1))/Math.LN10}throw"unrecognized dtick "+String(ut)},q.tickFirst=function(Tt,ut){var Br=Tt.r2l||Number,Cr=e.simpleMap(Tt.range,Br,void 0,void 0,ut),xr=Cr[1]<Cr[0],Ir=xr?Math.floor:Math.ceil,Ur=be(Cr)[0],Hr=Tt.dtick,xt=Br(Tt.tick0);if(x(Hr)){var Xt=Ir((Ur-xt)/Hr)*Hr+xt;return(Tt.type==="category"||Tt.type==="multicategory")&&(Xt=e.constrain(Xt,0,Tt._categories.length-1)),Xt}var vr=Hr.charAt(0),Or=Number(Hr.slice(1));if(vr==="M"){for(var ba=0,Pa=xt,ya,la,Ta;ba<10;){if(ya=q.tickIncrement(Pa,Hr,xr,Tt.calendar),(ya-Ur)*(Pa-Ur)<=0)return xr?Math.min(Pa,ya):Math.max(Pa,ya);la=(Ur-(Pa+ya)/2)/(ya-Pa),Ta=vr+(Math.abs(Math.round(la))||1)*Or,Pa=q.tickIncrement(Pa,Ta,la<0?!xr:xr,Tt.calendar),ba++}return e.error("tickFirst did not converge",Tt),Pa}else{if(vr==="L")return Math.log(Ir((Math.pow(10,Ur)-xt)/Or)*Or+xt)/Math.LN10;if(vr==="D"){var Ai=Hr==="D2"?Wt:qt,ki=e.roundUp(e.mod(Ur,1),Ai,xr);return Math.floor(Ur)+Math.log(v.round(Math.pow(10,ki),1))/Math.LN10}else throw"unrecognized dtick "+String(Hr)}},q.tickText=function(Tt,ut,Br,Cr){var xr=Sr(Tt,ut),Ir=Tt.tickmode==="array",Ur=Br||Ir,Hr=Tt.type,xt=Hr==="category"?Tt.d2l_noadd:Tt.d2l,Xt,vr=function(Ta){var Ai=Tt.l2p(Ta);return Ai>=0&&Ai<=Tt._length?Ta:null};if(Ir&&e.isArrayOrTypedArray(Tt.ticktext)){var Or=e.simpleMap(Tt.range,Tt.r2l),ba=(Math.abs(Or[1]-Or[0])-(Tt._lBreaks||0))/1e4;for(Xt=0;Xt<Tt.ticktext.length&&!(Math.abs(ut-xt(Tt.tickvals[Xt]))<ba);Xt++);if(Xt<Tt.ticktext.length)return xr.text=String(Tt.ticktext[Xt]),xr.xbnd=[vr(xr.x-.5),vr(xr.x+Tt.dtick-.5)],xr}function Pa(Ta){if(Ta===void 0)return!0;if(Br)return Ta==="none";var Ai={first:Tt._tmin,last:Tt._tmax}[Ta];return Ta!=="all"&&ut!==Ai}var ya=Br?"never":Tt.exponentformat!=="none"&&Pa(Tt.showexponent)?"hide":"";if(Hr==="date"?Rr(Tt,xr,Br,Ur):Hr==="log"?wt(Tt,xr,Br,Ur,ya):Hr==="category"?Ne(Tt,xr):Hr==="multicategory"?Ke(Tt,xr,Br):Za(Tt)?Ie(Tt,xr,Br,Ur,ya):Te(Tt,xr,Br,Ur,ya),Cr||(Tt.tickprefix&&!Pa(Tt.showtickprefix)&&(xr.text=Tt.tickprefix+xr.text),Tt.ticksuffix&&!Pa(Tt.showticksuffix)&&(xr.text+=Tt.ticksuffix)),Tt.labelalias&&Tt.labelalias.hasOwnProperty(xr.text)){var la=Tt.labelalias[xr.text];typeof la=="string"&&(xr.text=la)}return(Tt.tickson==="boundaries"||Tt.showdividers)&&(xr.xbnd=[vr(xr.x-.5),vr(xr.x+Tt.dtick-.5)]),xr},q.hoverLabelText=function(Tt,ut,Br){Br&&(Tt=e.extendFlat({},Tt,{hoverformat:Br}));var Cr=e.isArrayOrTypedArray(ut)?ut[0]:ut,xr=e.isArrayOrTypedArray(ut)?ut[1]:void 0;if(xr!==void 0&&xr!==Cr)return q.hoverLabelText(Tt,Cr,Br)+" - "+q.hoverLabelText(Tt,xr,Br);var Ir=Tt.type==="log"&&Cr<=0,Ur=q.tickText(Tt,Tt.c2l(Ir?-Cr:Cr),"hover").text;return Ir?Cr===0?"0":F+Ur:Ur};function Sr(Tt,ut,Br){var Cr=Tt.tickfont||{};return{x:ut,dx:0,dy:0,text:Br||"",fontSize:Cr.size,font:Cr.family,fontWeight:Cr.weight,fontStyle:Cr.style,fontVariant:Cr.variant,fontTextcase:Cr.textcase,fontLineposition:Cr.lineposition,fontShadow:Cr.shadow,fontColor:Cr.color}}function Rr(Tt,ut,Br,Cr){var xr=Tt._tickround,Ir=Br&&Tt.hoverformat||q.getTickFormat(Tt);Cr=!Ir&&Cr,Cr&&(x(xr)?xr=4:xr={y:"m",m:"d",d:"M",M:"S",S:4}[xr]);var Ur=e.formatDate(ut.x,Ir,xr,Tt._dateFormat,Tt.calendar,Tt._extraFormat),Hr,xt=Ur.indexOf(` |
| 7 | `);if(xt!==-1&&(Hr=Ur.slice(xt+1),Ur=Ur.slice(0,xt)),Cr&&(Hr!==void 0&&(Ur==="00:00:00"||Ur==="00:00")?(Ur=Hr,Hr=""):Ur.length===8&&(Ur=Ur.replace(/:00$/,""))),Hr)if(Br)xr==="d"?Ur+=", "+Hr:Ur=Hr+(Ur?", "+Ur:"");else if(!Tt._inCalcTicks||Tt._prevDateHead!==Hr)Tt._prevDateHead=Hr,Ur+="<br>"+Hr;else{var Xt=pi(Tt),vr=Tt._trueSide||Tt.side;(!Xt&&vr==="top"||Xt&&vr==="bottom")&&(Ur+="<br> ")}ut.text=Ur}function wt(Tt,ut,Br,Cr,xr){var Ir=Tt.dtick,Ur=ut.x,Hr=Tt.tickformat,xt=typeof Ir=="string"&&Ir.charAt(0);if(xr==="never"&&(xr=""),Cr&&xt!=="L"&&(Ir="L3",xt="L"),Hr||xt==="L")ut.text=Ct(Math.pow(10,Ur),Tt,xr,Cr);else if(x(Ir)||xt==="D"&&(Tt.minorloglabels==="complete"||e.mod(Ur+.01,1)<.1)){var Xt;Tt.minorloglabels==="complete"&&!(e.mod(Ur+.01,1)<.1)&&(Xt=!0,ut.fontSize*=.75);var vr=Math.pow(10,Ur).toExponential(0),Or=vr.split("e"),ba=+Or[1],Pa=Math.abs(ba),ya=Tt.exponentformat;ya==="power"||Pe(ya)&&ya!=="SI extended"&&ft(ba)||Pe(ya)&&ya==="SI extended"&&ct(ba)?(ut.text=Or[0],Pa>0&&(ut.text+="x10"),ut.text==="1x10"&&(ut.text="10"),ba!==0&&ba!==1&&(ut.text+="<sup>"+(ba>0?"":F)+Pa+"</sup>"),ut.fontSize*=1.25):(ya==="e"||ya==="E")&&Pa>2?ut.text=Or[0]+ya+(ba>0?"+":F)+Pa:(ut.text=Ct(Math.pow(10,Ur),Tt,"","fakehover"),Ir==="D1"&&Tt._id.charAt(0)==="y"&&(ut.dy-=ut.fontSize/6))}else if(xt==="D")ut.text=Tt.minorloglabels==="none"?"":String(Math.round(Math.pow(10,e.mod(Ur,1)))),ut.fontSize*=.75;else throw"unrecognized dtick "+String(Ir);if(Tt.dtick==="D1"){var la=String(ut.text).charAt(0);(la==="0"||la==="1")&&(Tt._id.charAt(0)==="y"?ut.dx-=ut.fontSize/4:(ut.dy+=ut.fontSize/2,ut.dx+=(Tt.range[1]>Tt.range[0]?1:-1)*ut.fontSize*(Ur<0?.5:.25)))}}function Ne(Tt,ut){var Br=Tt._categories[Math.round(ut.x)];Br===void 0&&(Br=""),ut.text=String(Br)}function Ke(Tt,ut,Br){var Cr=Math.round(ut.x),xr=Tt._categories[Cr]||[],Ir=xr[1]===void 0?"":String(xr[1]),Ur=xr[0]===void 0?"":String(xr[0]);Br?ut.text=Ur+" - "+Ir:(ut.text=Ir,ut.text2=Ur)}function Te(Tt,ut,Br,Cr,xr){xr==="never"?xr="":Tt.showexponent==="all"&&Math.abs(ut.x/Tt.dtick)<1e-6&&(xr="hide"),ut.text=Ct(ut.x,Tt,xr,Cr)}function Ie(Tt,ut,Br,Cr,xr){if(Tt.thetaunit==="radians"&&!Br){var Ir=ut.x/180;if(Ir===0)ut.text="0";else{var Ur=Ve(Ir);if(Ur[1]>=100)ut.text=Ct(e.deg2rad(ut.x),Tt,xr,Cr);else{var Hr=ut.x<0;Ur[1]===1?Ur[0]===1?ut.text="\u03C0":ut.text=Ur[0]+"\u03C0":ut.text=["<sup>",Ur[0],"</sup>","\u2044","<sub>",Ur[1],"</sub>","\u03C0"].join(""),Hr&&(ut.text=F+ut.text)}}}else ut.text=Ct(ut.x,Tt,xr,Cr)}function Ve(Tt){function ut(Hr,xt){return Math.abs(Hr-xt)<=1e-6}function Br(Hr,xt){return ut(xt,0)?Hr:Br(xt,Hr%xt)}function Cr(Hr){for(var xt=1;!ut(Math.round(Hr*xt)/xt,Hr);)xt*=10;return xt}var xr=Cr(Tt),Ir=Tt*xr,Ur=Math.abs(Br(Ir,xr));return[Math.round(Ir/Ur),Math.round(xr/Ur)]}var Ce=["f","p","n","\u03BC","m","","k","M","G","T"],Ee=["q","r","y","z","a",...Ce,"P","E","Z","Y","R","Q"],Pe=Tt=>["SI","SI extended","B"].includes(Tt);function ft(Tt){return Tt>14||Tt<-15}function ct(Tt){return Tt>32||Tt<-30}function _t(Tt,ut){return Pe(ut)?!!(ut==="SI extended"&&ct(Tt)||ut!=="SI extended"&&ft(Tt)):!1}function Ct(Tt,ut,Br,Cr){var xr=Tt<0,Ir=ut._tickround,Ur=Br||ut.exponentformat||"B",Hr=ut._tickexponent,xt=q.getTickFormat(ut),Xt=ut.separatethousands;if(Cr){var vr={exponentformat:Ur,minexponent:ut.minexponent,dtick:ut.showexponent==="none"?ut.dtick:x(Tt)&&Math.abs(Tt)||1,range:ut.showexponent==="none"?ut.range.map(ut.r2d):[0,Tt||1]};qr(vr),Ir=(Number(vr._tickround)||0)+4,Hr=vr._tickexponent,ut.hoverformat&&(xt=ut.hoverformat)}if(xt)return ut._numFormat(xt)(Tt).replace(/-/g,F);var Or=Math.pow(10,-Ir)/2;if(Ur==="none"&&(Hr=0),Tt=Math.abs(Tt),Tt<Or)Tt="0",xr=!1;else{if(Tt+=Or,Hr&&(Tt*=Math.pow(10,-Hr),Ir+=Hr),Ir===0)Tt=String(Math.floor(Tt));else if(Ir<0){Tt=String(Math.round(Tt)),Tt=Tt.slice(0,Math.max(0,Tt.length+Ir));for(var ba=Ir;ba<0;ba++)Tt+="0"}else{Tt=String(Tt);var Pa=Tt.indexOf(".")+1;Pa&&(Tt=Tt.slice(0,Pa+Ir).replace(/\.?0+$/,""))}Tt=e.numSeparate(Tt,ut._separators,Xt)}if(Hr&&Ur!=="hide"){_t(Hr,Ur)&&(Ur="power");var ya;Hr<0?ya=F+-Hr:Ur!=="power"?ya="+"+Hr:ya=String(Hr),Ur==="e"||Ur==="E"?Tt+=Ur+ya:Ur==="power"?Tt+="\xD710<sup>"+ya+"</sup>":Ur==="B"&&Hr===9?Tt+="B":Pe(Ur)&&(Tt+=Ur==="SI extended"?Ee[Hr/3+10]:Ce[Hr/3+5])}return xr?F+Tt:Tt}q.getTickFormat=function(Tt){var ut;function Br(xt){return typeof xt!="string"?xt:Number(xt.replace("M",""))*M}function Cr(xt,Xt){var vr=["L","D"];if(typeof xt==typeof Xt){if(typeof xt=="number")return xt-Xt;var Or=vr.indexOf(xt.charAt(0)),ba=vr.indexOf(Xt.charAt(0));return Or===ba?Number(xt.replace(/(L|D)/g,""))-Number(Xt.replace(/(L|D)/g,"")):Or-ba}else return typeof xt=="number"?1:-1}function xr(xt,Xt,vr){var Or=vr||function(ya){return ya},ba=Xt[0],Pa=Xt[1];return(!ba&&typeof ba!="number"||Or(ba)<=Or(xt))&&(!Pa&&typeof Pa!="number"||Or(Pa)>=Or(xt))}function Ir(xt,Xt){var vr=Xt[0]===null,Or=Xt[1]===null,ba=Cr(xt,Xt[0])>=0,Pa=Cr(xt,Xt[1])<=0;return(vr||ba)&&(Or||Pa)}var Ur,Hr;if(Tt.tickformatstops&&Tt.tickformatstops.length>0)switch(Tt.type){case"date":case"linear":{for(ut=0;ut<Tt.tickformatstops.length;ut++)if(Hr=Tt.tickformatstops[ut],Hr.enabled&&xr(Tt.dtick,Hr.dtickrange,Br)){Ur=Hr;break}break}case"log":{for(ut=0;ut<Tt.tickformatstops.length;ut++)if(Hr=Tt.tickformatstops[ut],Hr.enabled&&Ir(Tt.dtick,Hr.dtickrange)){Ur=Hr;break}break}default:}return Ur?Ur.value:Tt.tickformat},q.getSubplots=function(Tt,ut){var Br=Tt._fullLayout._subplots,Cr=Br.cartesian.concat(Br.gl2d||[]),xr=ut?q.findSubplotsWithAxis(Cr,ut):Cr;return xr.sort(function(Ir,Ur){var Hr=Ir.slice(1).split("y"),xt=Ur.slice(1).split("y");return Hr[0]===xt[0]?+Hr[1]-+xt[1]:+Hr[0]-+xt[0]}),xr},q.findSubplotsWithAxis=function(Tt,ut){for(var Br=new RegExp(ut._id.charAt(0)==="x"?"^"+ut._id+"y":ut._id+"$"),Cr=[],xr=0;xr<Tt.length;xr++){var Ir=Tt[xr];Br.test(Ir)&&Cr.push(Ir)}return Cr},q.makeClipPaths=function(Tt){var ut=Tt._fullLayout;if(!ut._hasOnlyLargeSploms){var Br={_offset:0,_length:ut.width,_id:""},Cr={_offset:0,_length:ut.height,_id:""},xr=q.list(Tt,"x",!0),Ir=q.list(Tt,"y",!0),Ur=[],Hr,xt;for(Hr=0;Hr<xr.length;Hr++)for(Ur.push({x:xr[Hr],y:Cr}),xt=0;xt<Ir.length;xt++)Hr===0&&Ur.push({x:Br,y:Ir[xt]}),Ur.push({x:xr[Hr],y:Ir[xt]});var Xt=ut._clips.selectAll(".axesclip").data(Ur,function(vr){return vr.x._id+vr.y._id});Xt.enter().append("clipPath").classed("axesclip",!0).attr("id",function(vr){return"clip"+ut._uid+vr.x._id+vr.y._id}).append("rect"),Xt.exit().remove(),Xt.each(function(vr){v.select(this).select("rect").attr({x:vr.x._offset||0,y:vr.y._offset||0,width:vr.x._length||1,height:vr.y._length||1})})}},q.draw=function(Tt,ut,Br){var Cr=Tt._fullLayout;ut==="redraw"&&Cr._paper.selectAll("g.subplot").each(function(xt){var Xt=xt[0],vr=Cr._plots[Xt];if(vr){var Or=vr.xaxis,ba=vr.yaxis;vr.xaxislayer.selectAll("."+Or._id+"tick").remove(),vr.yaxislayer.selectAll("."+ba._id+"tick").remove(),vr.xaxislayer.selectAll("."+Or._id+"tick2").remove(),vr.yaxislayer.selectAll("."+ba._id+"tick2").remove(),vr.xaxislayer.selectAll("."+Or._id+"divider").remove(),vr.yaxislayer.selectAll("."+ba._id+"divider").remove(),vr.minorGridlayer&&vr.minorGridlayer.selectAll("path").remove(),vr.gridlayer&&vr.gridlayer.selectAll("path").remove(),vr.zerolinelayer&&vr.zerolinelayer.selectAll("path").remove(),vr.zerolinelayerAbove&&vr.zerolinelayerAbove.selectAll("path").remove(),Cr._infolayer.select(".g-"+Or._id+"title").remove(),Cr._infolayer.select(".g-"+ba._id+"title").remove()}});var xr=!ut||ut==="redraw"?q.listIds(Tt):ut,Ir=q.list(Tt),Ur=Ir.filter(function(xt){return xt.autoshift}).map(function(xt){return xt.overlaying});xr.map(function(xt){var Xt=q.getFromId(Tt,xt);if(Xt.tickmode==="sync"&&Xt.overlaying){var vr=xr.findIndex(function(Or){return Or===Xt.overlaying});vr>=0&&xr.unshift(xr.splice(vr,1).shift())}});var Hr={false:{left:0,right:0}};return e.syncOrAsync(xr.map(function(xt){return function(){if(xt){var Xt=q.getFromId(Tt,xt);Br||(Br={}),Br.axShifts=Hr,Br.overlayingShiftedAx=Ur;var vr=q.drawOne(Tt,Xt,Br);return Xt._shiftPusher&&tn(Xt,Xt._fullDepth||0,Hr,!0),Xt._r=Xt.range.slice(),Xt._rl=e.simpleMap(Xt._r,Xt.r2l),vr}}}))},q.drawOne=function(Tt,ut,Br){Br=Br||{};var Cr=Br.axShifts||{},xr=Br.overlayingShiftedAx||[],Ir,Ur,Hr;ut.setScale();var xt=Tt._fullLayout,Xt=ut._id,vr=Xt.charAt(0),Or=q.counterLetter(Xt),ba=xt._plots[ut._mainSubplot],Pa=ut.zerolinelayer==="above traces";if(!ba)return;if(ut._shiftPusher=ut.autoshift||xr.indexOf(ut._id)!==-1||xr.indexOf(ut.overlaying)!==-1,ut._shiftPusher&ut.anchor==="free"){var ya=ut.linewidth/2||0;ut.ticks==="inside"&&(ya+=ut.ticklen),tn(ut,ya,Cr,!0),tn(ut,ut.shift||0,Cr,!1)}(Br.skipTitle!==!0||ut._shift===void 0)&&(ut._shift=on(ut,Cr));var la=ba[vr+"axislayer"],Ta=ut._mainLinePosition,Ai=Ta+=ut._shift,ki=ut._mainMirrorPosition,Ki=ut._vals=q.calcTicks(ut),_n=[ut.mirror,Ai,ki].join("_");for(Ir=0;Ir<Ki.length;Ir++)Ki[Ir].axInfo=_n;ut._selections={},ut._tickAngles&&(ut._prevTickAngles=ut._tickAngles),ut._tickAngles={},ut._depth=null;var Rn={};function En(co){var Vs=Xt+(co||"tick");return Rn[Vs]||(Rn[Vs]=fa(ut,Vs,Ai)),Rn[Vs]}if(ut.visible){var On=q.makeTransTickFn(ut),no=q.makeTransTickLabelFn(ut),cn,lo,Wo=ut.ticks==="inside",hs=ut.ticks==="outside";if(ut.tickson==="boundaries"){var Oo=rr(ut,Ki);lo=q.clipEnds(ut,Oo),cn=Wo?lo:Oo}else lo=q.clipEnds(ut,Ki),cn=Wo&&ut.ticklabelmode!=="period"?lo:Ki;var Wn=ut._gridVals=lo,No=Lr(ut,Ki);if(!xt._hasOnlyLargeSploms){var as=ut._subplotsWith,Ns={};for(Ir=0;Ir<as.length;Ir++){Ur=as[Ir],Hr=xt._plots[Ur];var ss=Hr[Or+"axis"],uo=ss._mainAxis._id;if(!Ns[uo]){Ns[uo]=1;var jn=vr==="x"?"M0,"+ss._offset+"v"+ss._length:"M"+ss._offset+",0h"+ss._length;q.drawGrid(Tt,ut,{vals:Wn,counterAxis:ss,layer:Hr.gridlayer.select("."+Xt),minorLayer:Hr.minorGridlayer.select("."+Xt),path:jn,transFn:On}),q.drawZeroLine(Tt,ut,{counterAxis:ss,layer:Pa?Hr.zerolinelayerAbove:Hr.zerolinelayer,path:jn,transFn:On})}}}var Xn,ls=q.getTickSigns(ut),Cs=q.getTickSigns(ut,"minor");if(ut.ticks||ut.minor&&ut.minor.ticks){var Ks=q.makeTickPath(ut,Ai,ls[2]),Xo=q.makeTickPath(ut,Ai,Cs[2],{minor:!0}),Gi,Ln,Us,_s;if(ut._anchorAxis&&ut.mirror&&ut.mirror!==!0?(Gi=q.makeTickPath(ut,ki,ls[3]),Ln=q.makeTickPath(ut,ki,Cs[3],{minor:!0}),Us=Ks+Gi,_s=Xo+Ln):(Gi="",Ln="",Us=Ks,_s=Xo),ut.showdividers&&hs&&ut.tickson==="boundaries"){var Gn={};for(Ir=0;Ir<No.length;Ir++)Gn[No[Ir].x]=1;Xn=function(co){return Gn[co.x]?Gi:Us}}else Xn=function(co){return co.minor?_s:Us}}if(q.drawTicks(Tt,ut,{vals:cn,layer:la,path:Xn,transFn:On}),ut.mirror==="allticks"){var zs=Object.keys(ut._linepositions||{});for(Ir=0;Ir<zs.length;Ir++){Ur=zs[Ir],Hr=xt._plots[Ur];var vs=ut._linepositions[Ur]||[],Ws=vs[0],il=vs[1],xn=vs[2],ko=q.makeTickPath(ut,Ws,xn?ls[0]:Cs[0],{minor:xn})+q.makeTickPath(ut,il,xn?ls[1]:Cs[1],{minor:xn});q.drawTicks(Tt,ut,{vals:cn,layer:Hr[vr+"axislayer"],path:ko,transFn:On})}}var bo=[];if(bo.push(function(){return q.drawLabels(Tt,ut,{vals:Ki,layer:la,plotinfo:Hr,transFn:no,labelFns:q.makeLabelFns(ut,Ai)})}),ut.type==="multicategory"){var Is={x:2,y:10}[vr];bo.push(function(){var co={x:"height",y:"width"}[vr],Vs=En()[co]+Is+(ut._tickAngles[Xt+"tick"]?ut.tickfont.size*V:0);return q.drawLabels(Tt,ut,{vals:er(ut,Ki),layer:la,cls:Xt+"tick2",repositionOnUpdate:!0,secondary:!0,transFn:On,labelFns:q.makeLabelFns(ut,Ai+Vs*ls[4])})}),bo.push(function(){return ut._depth=ls[4]*(En("tick2")[ut.side]-Ai),Wa(Tt,ut,{vals:No,layer:la,path:q.makeTickPath(ut,Ai,ls[4],{len:ut._depth}),transFn:On})})}else ut.title.hasOwnProperty("standoff")&&bo.push(function(){ut._depth=ls[4]*(En()[ut.side]-Ai)});var pu=E.getComponentMethod("rangeslider","isVisible")(ut);return!Br.skipTitle&&!(pu&&ut.side==="bottom")&&bo.push(function(){return hi(Tt,ut)}),bo.push(function(){var co=ut.side.charAt(0),Vs=Y[ut.side].charAt(0),vl=q.getPxPosition(Tt,ut),Ts=hs?ut.ticklen:0,js,us,As,Nl;(ut.automargin||pu||ut._shiftPusher)&&(ut.type==="multicategory"?js=En("tick2"):(js=En(),vr==="x"&&co==="b"&&(ut._depth=Math.max(js.width>0?js.bottom-vl:0,Ts))));var su=0,Tc=0;if(ut._shiftPusher&&(su=Math.max(Ts,js.height>0?co==="l"?vl-js.left:js.right-vl:0),ut.title.text!==xt._dfltTitle[vr]&&(Tc=(ut._titleStandoff||0)+(ut._titleScoot||0),co==="l"&&(Tc+=Ca(ut))),ut._fullDepth=Math.max(su,Tc)),ut.automargin){us={x:0,y:0,r:0,l:0,t:0,b:0};var du=[0,1],Sf=typeof ut._shift=="number"?ut._shift:0;if(vr==="x"){if(co==="b"?us[co]=ut._depth:(us[co]=ut._depth=Math.max(js.width>0?vl-js.top:0,Ts),du.reverse()),js.width>0){var Uc=js.right-(ut._offset+ut._length);Uc>0&&(us.xr=1,us.r=Uc);var Fs=ut._offset-js.left;Fs>0&&(us.xl=0,us.l=Fs)}}else if(co==="l"?(ut._depth=Math.max(js.height>0?vl-js.left:0,Ts),us[co]=ut._depth-Sf):(ut._depth=Math.max(js.height>0?js.right-vl:0,Ts),us[co]=ut._depth+Sf,du.reverse()),js.height>0){var dc=js.bottom-(ut._offset+ut._length);dc>0&&(us.yb=0,us.b=dc);var Hc=ut._offset-js.top;Hc>0&&(us.yt=1,us.t=Hc)}us[Or]=ut.anchor==="free"?ut.position:ut._anchorAxis.domain[du[0]],ut.title.text!==xt._dfltTitle[vr]&&(us[co]+=Ca(ut)+(ut.title.standoff||0)),ut.mirror&&ut.anchor!=="free"&&(As={x:0,y:0,r:0,l:0,t:0,b:0},As[Vs]=ut.linewidth,ut.mirror&&ut.mirror!==!0&&(As[Vs]+=Ts),ut.mirror===!0||ut.mirror==="ticks"?As[Or]=ut._anchorAxis.domain[du[1]]:(ut.mirror==="all"||ut.mirror==="allticks")&&(As[Or]=[ut._counterDomainMin,ut._counterDomainMax][du[1]]))}pu&&(Nl=E.getComponentMethod("rangeslider","autoMarginOpts")(Tt,ut)),typeof ut.automargin=="string"&&(ir(us,ut.automargin),ir(As,ut.automargin)),S.autoMargin(Tt,Jt(ut),us),S.autoMargin(Tt,Fr(ut),As),S.autoMargin(Tt,ta(ut),Nl)}),e.syncOrAsync(bo)}};function ir(Tt,ut){if(Tt){var Br=Object.keys($).reduce(function(Cr,xr){return ut.indexOf(xr)!==-1&&$[xr].forEach(function(Ir){Cr[Ir]=1}),Cr},{});Object.keys(Tt).forEach(function(Cr){Br[Cr]||(Cr.length===1?Tt[Cr]=0:delete Tt[Cr])})}}function rr(Tt,ut){var Br=[],Cr,xr=function(Ir,Ur){var Hr=Ir.xbnd[Ur];Hr!==null&&Br.push(e.extendFlat({},Ir,{x:Hr}))};if(ut.length){for(Cr=0;Cr<ut.length;Cr++)xr(ut[Cr],0);xr(ut[Cr-1],1)}return Br}function er(Tt,ut){for(var Br=[],Cr={},xr=0;xr<ut.length;xr++){var Ir=ut[xr];Cr[Ir.text2]?Cr[Ir.text2].push(Ir.x):Cr[Ir.text2]=[Ir.x]}for(var Ur in Cr)Br.push(Sr(Tt,e.interp(Cr[Ur],.5),Ur));return Br}function Lr(Tt,ut){var Br=[],Cr,xr,Ir=ut.length&&ut[ut.length-1].x<ut[0].x,Ur=function(xt,Xt){var vr=xt.xbnd[Xt];vr!==null&&Br.push(e.extendFlat({},xt,{x:vr}))};if(Tt.showdividers&&ut.length){for(Cr=0;Cr<ut.length;Cr++){var Hr=ut[Cr];Hr.text2!==xr&&Ur(Hr,Ir?1:0),xr=Hr.text2}Ur(ut[Cr-1],Ir?0:1)}return Br}function fa(Tt,ut,Br){var Cr,xr,Ir,Ur;if(Tt._selections[ut].size())Cr=1/0,xr=-1/0,Ir=1/0,Ur=-1/0,Tt._selections[ut].each(function(){var xt=Yt(this);if(xt.node().style.display!=="none"){var Xt=n.bBox(xt.node().parentNode);Cr=Math.min(Cr,Xt.top),xr=Math.max(xr,Xt.bottom),Ir=Math.min(Ir,Xt.left),Ur=Math.max(Ur,Xt.right)}});else{var Hr=q.makeLabelFns(Tt,Br);Cr=xr=Hr.yFn({dx:0,dy:0,fontSize:0}),Ir=Ur=Hr.xFn({dx:0,dy:0,fontSize:0})}return{top:Cr,bottom:xr,left:Ir,right:Ur,height:xr-Cr,width:Ur-Ir}}q.getTickSigns=function(Tt,ut){var Br=Tt._id.charAt(0),Cr={x:"top",y:"right"}[Br],xr=Tt.side===Cr?1:-1,Ir=[-1,1,xr,-xr],Ur=ut?(Tt.minor||{}).ticks:Tt.ticks;return Ur!=="inside"==(Br==="x")&&(Ir=Ir.map(function(Hr){return-Hr})),Tt.side&&Ir.push({l:-1,t:-1,r:1,b:1}[Tt.side.charAt(0)]),Ir},q.makeTransTickFn=function(Tt){return Tt._id.charAt(0)==="x"?function(ut){return t(Tt._offset+Tt.l2p(ut.x),0)}:function(ut){return t(0,Tt._offset+Tt.l2p(ut.x))}},q.makeTransTickLabelFn=function(Tt){var ut=Ia(Tt),Br=Tt.ticklabelshift||0,Cr=Tt.ticklabelstandoff||0,xr=ut[0],Ir=ut[1],Ur=Tt.range[0]>Tt.range[1],Hr=Tt.ticklabelposition&&Tt.ticklabelposition.indexOf("inside")!==-1,xt=!Hr;if(Br){var Xt=Ur?-1:1;Br=Br*Xt}if(Cr){var vr=Tt.side,Or=Hr&&(vr==="top"||vr==="left")||xt&&(vr==="bottom"||vr==="right")?1:-1;Cr=Cr*Or}return Tt._id.charAt(0)==="x"?function(ba){return t(xr+Tt._offset+Tt.l2p(Da(ba))+Br,Ir+Cr)}:function(ba){return t(Ir+Cr,xr+Tt._offset+Tt.l2p(Da(ba))+Br)}};function Da(Tt){return Tt.periodX!==void 0?Tt.periodX:Tt.x}function Ia(Tt){var ut=Tt.ticklabelposition||"",Br=Tt.tickson||"",Cr=function(ya){return ut.indexOf(ya)!==-1},xr=Cr("top"),Ir=Cr("left"),Ur=Cr("right"),Hr=Cr("bottom"),xt=Cr("inside"),Xt=Br!=="boundaries"&&(Hr||Ir||xr||Ur);if(!Xt&&!xt)return[0,0];var vr=Tt.side,Or=Xt?(Tt.tickwidth||0)/2:0,ba=ee,Pa=Tt.tickfont?Tt.tickfont.size:12;return(Hr||xr)&&(Or+=Pa*fe,ba+=(Tt.linewidth||0)/2),(Ir||Ur)&&(Or+=(Tt.linewidth||0)/2,ba+=ee),xt&&vr==="top"&&(ba-=Pa*(1-fe)),(Ir||xr)&&(Or=-Or),(vr==="bottom"||vr==="right")&&(ba=-ba),[Xt?Or:0,xt?ba:0]}q.makeTickPath=function(Tt,ut,Br,Cr){Cr||(Cr={});var xr=Cr.minor;if(xr&&!Tt.minor)return"";var Ir=Cr.len!==void 0?Cr.len:xr?Tt.minor.ticklen:Tt.ticklen,Ur=Tt._id.charAt(0),Hr=(Tt.linewidth||1)/2;return Ur==="x"?"M0,"+(ut+Hr*Br)+"v"+Ir*Br:"M"+(ut+Hr*Br)+",0h"+Ir*Br},q.makeLabelFns=function(Tt,ut,Br){var Cr=Tt.ticklabelposition||"",xr=Tt.tickson||"",Ir=function(Oo){return Cr.indexOf(Oo)!==-1},Ur=Ir("top"),Hr=Ir("left"),xt=Ir("right"),Xt=Ir("bottom"),vr=xr!=="boundaries"&&(Xt||Hr||Ur||xt),Or=Ir("inside"),ba=Cr==="inside"&&Tt.ticks==="inside"||!Or&&Tt.ticks==="outside"&&xr!=="boundaries",Pa=0,ya=0,la=ba?Tt.ticklen:0;if(Or?la*=-1:vr&&(la=0),ba&&(Pa+=la,Br)){var Ta=e.deg2rad(Br);Pa=la*Math.cos(Ta)+1,ya=la*Math.sin(Ta)}Tt.showticklabels&&(ba||Tt.showline)&&(Pa+=.2*Tt.tickfont.size),Pa+=(Tt.linewidth||1)/2*(Or?-1:1);var Ai={labelStandoff:Pa,labelShift:ya},ki,Ki,_n,Rn,En=0,On=Tt.side,no=Tt._id.charAt(0),cn=Tt.tickangle,lo;if(no==="x")lo=!Or&&On==="bottom"||Or&&On==="top",Rn=lo?1:-1,Or&&(Rn*=-1),ki=ya*Rn,Ki=ut+Pa*Rn,_n=lo?1:-.2,Math.abs(cn)===90&&(Or?_n+=le:cn===-90&&On==="bottom"?_n=fe:cn===90&&On==="top"?_n=le:_n=.5,En=le/2*(cn/90)),Ai.xFn=function(Oo){return Oo.dx+ki+En*Oo.fontSize},Ai.yFn=function(Oo){return Oo.dy+Ki+Oo.fontSize*_n},Ai.anchorFn=function(Oo,Wn){if(vr){if(Hr)return"end";if(xt)return"start"}return!x(Wn)||Wn===0||Wn===180?"middle":Wn*Rn<0!==Or?"end":"start"},Ai.heightFn=function(Oo,Wn,No){return Wn<-60||Wn>60?-.5*No:Tt.side==="top"!==Or?-No:0};else if(no==="y"){if(lo=!Or&&On==="left"||Or&&On==="right",Rn=lo?1:-1,Or&&(Rn*=-1),ki=Pa,Ki=ya*Rn,_n=0,!Or&&Math.abs(cn)===90&&(cn===-90&&On==="left"||cn===90&&On==="right"?_n=fe:_n=.5),Or){var Wo=x(cn)?+cn:0;if(Wo!==0){var hs=e.deg2rad(Wo);En=Math.abs(Math.sin(hs))*fe*Rn,_n=0}}Ai.xFn=function(Oo){return Oo.dx+ut-(ki+Oo.fontSize*_n)*Rn+En*Oo.fontSize},Ai.yFn=function(Oo){return Oo.dy+Ki+Oo.fontSize*le},Ai.anchorFn=function(Oo,Wn){return x(Wn)&&Math.abs(Wn)===90?"middle":lo?"end":"start"},Ai.heightFn=function(Oo,Wn,No){return Tt.side==="right"&&(Wn*=-1),Wn<-30?-No:Wn<30?-.5*No:0}}return Ai};function qa(Tt){return[Tt.text,Tt.x,Tt.axInfo,Tt.font,Tt.fontSize,Tt.fontColor].join("_")}q.drawTicks=function(Tt,ut,Br){Br=Br||{};var Cr=ut._id+"tick",xr=[].concat(ut.minor&&ut.minor.ticks?Br.vals.filter(function(Ur){return Ur.minor&&!Ur.noTick}):[]).concat(ut.ticks?Br.vals.filter(function(Ur){return!Ur.minor&&!Ur.noTick}):[]),Ir=Br.layer.selectAll("path."+Cr).data(xr,qa);Ir.exit().remove(),Ir.enter().append("path").classed(Cr,1).classed("ticks",1).classed("crisp",Br.crisp!==!1).each(function(Ur){return a.stroke(v.select(this),Ur.minor?ut.minor.tickcolor:ut.tickcolor)}).style("stroke-width",function(Ur){return n.crispRound(Tt,Ur.minor?ut.minor.tickwidth:ut.tickwidth,1)+"px"}).attr("d",Br.path).style("display",null),Ra(ut,[B]),Ir.attr("transform",Br.transFn)},q.drawGrid=function(Tt,ut,Br){if(Br=Br||{},ut.tickmode!=="sync"){var Cr=ut._id+"grid",xr=ut.minor&&ut.minor.showgrid,Ir=xr?Br.vals.filter(function(Ai){return Ai.minor}):[],Ur=ut.showgrid?Br.vals.filter(function(Ai){return!Ai.minor}):[],Hr=Br.counterAxis;if(Hr&&q.shouldShowZeroLine(Tt,ut,Hr))for(var xt=ut.tickmode==="array",Xt=0;Xt<Ur.length;Xt++){var vr=Ur[Xt].x;if(xt?!vr:Math.abs(vr)<ut.dtick/100)if(Ur=Ur.slice(0,Xt).concat(Ur.slice(Xt+1)),xt)Xt--;else break}ut._gw=n.crispRound(Tt,ut.gridwidth,1);for(var Or=xr?n.crispRound(Tt,ut.minor.gridwidth,1):0,ba=Br.layer,Pa=Br.minorLayer,ya=1;ya>=0;ya--){var la=ya?ba:Pa;if(la){var Ta=la.selectAll("path."+Cr).data(ya?Ur:Ir,qa);Ta.exit().remove(),Ta.enter().append("path").classed(Cr,1).classed("crisp",Br.crisp!==!1),Ta.attr("transform",Br.transFn).attr("d",Br.path).each(function(Ai){return a.stroke(v.select(this),Ai.minor?ut.minor.gridcolor:ut.gridcolor||"#ddd")}).style("stroke-dasharray",function(Ai){return n.dashStyle(Ai.minor?ut.minor.griddash:ut.griddash,Ai.minor?ut.minor.gridwidth:ut.gridwidth)}).style("stroke-width",function(Ai){return(Ai.minor?Or:ut._gw)+"px"}).style("display",null),typeof Br.path=="function"&&Ta.attr("d",Br.path)}}Ra(ut,[P,U])}},q.drawZeroLine=function(Tt,ut,Br){Br=Br||Br;var Cr=ut._id+"zl",xr=q.shouldShowZeroLine(Tt,ut,Br.counterAxis),Ir=Br.layer.selectAll("path."+Cr).data(xr?[{x:0,id:ut._id}]:[]);Ir.exit().remove(),Ir.enter().append("path").classed(Cr,1).classed("zl",1).classed("crisp",Br.crisp!==!1).each(function(){Br.layer.selectAll("path").sort(function(Ur,Hr){return j(Ur.id,Hr.id)})}),Ir.attr("transform",Br.transFn).attr("d",Br.path).call(a.stroke,ut.zerolinecolor||a.defaultLine).style("stroke-width",n.crispRound(Tt,ut.zerolinewidth,ut._gw||1)+"px").style("display",null),Ra(ut,[O])},q.drawLabels=function(Tt,ut,Br){Br=Br||{};var Cr=Tt._fullLayout,xr=ut._id,Ir=ut.zerolinelayer==="above traces",Ur=Br.cls||xr+"tick",Hr=Br.vals.filter(function(uo){return uo.text}),xt=Br.labelFns,Xt=Br.secondary?0:ut.tickangle,vr=(ut._prevTickAngles||{})[Ur],Or=Br.layer.selectAll("g."+Ur).data(ut.showticklabels?Hr:[],qa),ba=[];Or.enter().append("g").classed(Ur,1).append("text").attr("text-anchor","middle").each(function(uo){var jn=v.select(this),Xn=Tt._promises.length;jn.call(r.positionText,xt.xFn(uo),xt.yFn(uo)).call(n.font,{family:uo.font,size:uo.fontSize,color:uo.fontColor,weight:uo.fontWeight,style:uo.fontStyle,variant:uo.fontVariant,textcase:uo.fontTextcase,lineposition:uo.fontLineposition,shadow:uo.fontShadow}).text(uo.text).call(r.convertToTspans,Tt),Tt._promises[Xn]?ba.push(Tt._promises.pop().then(function(){Pa(jn,Xt)})):Pa(jn,Xt)}),Ra(ut,[X]),Or.exit().remove(),Br.repositionOnUpdate&&Or.each(function(uo){v.select(this).select("text").call(r.positionText,xt.xFn(uo),xt.yFn(uo))});function Pa(uo,jn){uo.each(function(Xn){var ls=v.select(this),Cs=ls.select(".text-math-group"),Ks=xt.anchorFn(Xn,jn),Xo=Br.transFn.call(ls.node(),Xn)+(x(jn)&&+jn!=0?" rotate("+jn+","+xt.xFn(Xn)+","+(xt.yFn(Xn)-Xn.fontSize/2)+")":""),Gi=r.lineCount(ls),Ln=V*Xn.fontSize,Us=xt.heightFn(Xn,x(jn)?+jn:0,(Gi-1)*Ln);if(Us&&(Xo+=t(0,Us)),Cs.empty()){var _s=ls.select("text");_s.attr({transform:Xo,"text-anchor":Ks}),_s.style("display",null),ut._adjustTickLabelsOverflow&&ut._adjustTickLabelsOverflow()}else{var Gn=n.bBox(Cs.node()).width,zs=Gn*{end:-.5,start:.5}[Ks];Cs.attr("transform",Xo+t(zs,0))}})}ut._adjustTickLabelsOverflow=function(){var uo=ut.ticklabeloverflow;if(!(!uo||uo==="allow")){var jn=uo.indexOf("hide")!==-1,Xn=ut._id.charAt(0)==="x",ls=0,Cs=Xn?Tt._fullLayout.width:Tt._fullLayout.height;if(uo.indexOf("domain")!==-1){var Ks=e.simpleMap(ut.range,ut.r2l);ls=ut.l2p(Ks[0])+ut._offset,Cs=ut.l2p(Ks[1])+ut._offset}var Xo=Math.min(ls,Cs),Gi=Math.max(ls,Cs),Ln=ut.side,Us=1/0,_s=-1/0;Or.each(function(Ws){var il=v.select(this),xn=il.select(".text-math-group");if(xn.empty()){var ko=n.bBox(il.node()),bo=0;Xn?(ko.right>Gi||ko.left<Xo)&&(bo=1):(ko.bottom>Gi||ko.top+(ut.tickangle?0:Ws.fontSize/4)<Xo)&&(bo=1);var Is=il.select("text");bo?jn&&Is.style("display","none"):Is.node().style.display!=="none"&&(Is.style("display",null),Ln==="bottom"||Ln==="right"?Us=Math.min(Us,Xn?ko.top:ko.left):Us=-1/0,Ln==="top"||Ln==="left"?_s=Math.max(_s,Xn?ko.bottom:ko.right):_s=1/0)}});for(var Gn in Cr._plots){var zs=Cr._plots[Gn];if(!(ut._id!==zs.xaxis._id&&ut._id!==zs.yaxis._id)){var vs=Xn?zs.yaxis:zs.xaxis;vs&&(vs["_visibleLabelMin_"+ut._id]=Us,vs["_visibleLabelMax_"+ut._id]=_s)}}}},ut._hideCounterAxisInsideTickLabels=function(uo){var jn=ut._id.charAt(0)==="x",Xn=[];for(var ls in Cr._plots){var Cs=Cr._plots[ls];ut._id!==Cs.xaxis._id&&ut._id!==Cs.yaxis._id||Xn.push(jn?Cs.yaxis:Cs.xaxis)}Xn.forEach(function(Ks,Xo){Ks&&pi(Ks)&&(uo||[O,U,P,B,X]).forEach(function(Gi){var Ln=Gi.K==="tick"&&Gi.L==="text"&&ut.ticklabelmode==="period",Us=Cr._plots[ut._mainSubplot],_s;if(Gi.K===O.K){var Gn=Ir?Us.zerolinelayerAbove:Us.zerolinelayer;_s=Gn.selectAll("."+ut._id+"zl")}else Gi.K===U.K?_s=Us.minorGridlayer.selectAll("."+ut._id):Gi.K===P.K?_s=Us.gridlayer.selectAll("."+ut._id):_s=Us[ut._id.charAt(0)+"axislayer"];_s.each(function(){var zs=v.select(this);Gi.L&&(zs=zs.selectAll(Gi.L)),zs.each(function(vs){var Ws=ut.l2p(Ln?Da(vs):vs.x)+ut._offset,il=v.select(this);Ws<ut["_visibleLabelMax_"+Ks._id]&&Ws>ut["_visibleLabelMin_"+Ks._id]?il.style("display","none"):Gi.K==="tick"&&!Xo&&il.node().style.display!=="none"&&il.style("display",null)})})})})},Pa(Or,vr+1?vr:Xt);function ya(){return ba.length&&Promise.all(ba)}var la=null;function Ta(){if(Pa(Or,Xt),Hr.length&&ut.autotickangles&&(ut.type!=="log"||String(ut.dtick).charAt(0)!=="D")){la=ut.autotickangles[0];var uo=0,jn=[],Xn,ls=1;Or.each(function(us){uo=Math.max(uo,us.fontSize);var As=ut.l2p(us.x),Nl=Yt(this),su=n.bBox(Nl.node());ls=Math.max(ls,r.lineCount(Nl)),jn.push({top:0,bottom:10,height:10,left:As-su.width/2,right:As+su.width/2+2,width:su.width+2})});var Cs=(ut.tickson==="boundaries"||ut.showdividers)&&!Br.secondary,Ks=Hr.length,Xo=Math.abs((Hr[Ks-1].x-Hr[0].x)*ut._m)/(Ks-1),Gi=Cs?Xo/2:Xo,Ln=Cs?ut.ticklen:uo*1.25*ls,Us=Math.sqrt(Math.pow(Gi,2)+Math.pow(Ln,2)),_s=Gi/Us,Gn=ut.autotickangles.map(function(us){return us*Math.PI/180}),zs=Gn.find(function(us){return Math.abs(Math.cos(us))<=_s});zs===void 0&&(zs=Gn.reduce(function(us,As){return Math.abs(Math.cos(us))<Math.abs(Math.cos(As))?us:As},Gn[0]));var vs=zs*(180/Math.PI);if(Cs){var Ws=2;for(ut.ticks&&(Ws+=ut.tickwidth/2),Xn=0;Xn<jn.length;Xn++){var il=Hr[Xn].xbnd,xn=jn[Xn];if(il[0]!==null&&xn.left-ut.l2p(il[0])<Ws||il[1]!==null&&ut.l2p(il[1])-xn.right<Ws){la=vs;break}}}else{var ko=ut.ticklabelposition||"",bo=ut.tickson||"",Is=function(us){return ko.indexOf(us)!==-1},pu=Is("top"),co=Is("left"),Vs=Is("right"),vl=Is("bottom"),Ts=bo!=="boundaries"&&(vl||co||pu||Vs),js=Ts?(ut.tickwidth||0)+2*ee:0;for(Xn=0;Xn<jn.length-1;Xn++)if(e.bBoxIntersect(jn[Xn],jn[Xn+1],js)){la=vs;break}}la&&Pa(Or,la)}}ut._selections&&(ut._selections[Ur]=Or);var Ai=[ya];ut.automargin&&Cr._redrawFromAutoMarginCount&&vr===90?(la=vr,Ai.push(function(){Pa(Or,vr)})):Ai.push(Ta),ut._tickAngles&&Ai.push(function(){ut._tickAngles[Ur]=la===null?x(Xt)?Xt:0:la});var ki=function(){var uo=0,jn=0;return Or.each(function(Xn,ls){var Cs=Yt(this),Ks=Cs.select(".text-math-group");if(Ks.empty()){var Xo;ut._vals[ls]&&(Xo=ut._vals[ls].bb||n.bBox(Cs.node()),ut._vals[ls].bb=Xo),uo=Math.max(uo,Xo.width),jn=Math.max(jn,Xo.height)}}),{labelsMaxW:uo,labelsMaxH:jn}},Ki=ut._anchorAxis;if(Ki&&(Ki.autorange||Ki.insiderange)&&pi(ut)&&!Q(Cr,ut._id)&&(Cr._insideTickLabelsUpdaterange||(Cr._insideTickLabelsUpdaterange={}),Ki.autorange&&(Cr._insideTickLabelsUpdaterange[Ki._name+".autorange"]=Ki.autorange,Ai.push(ki)),Ki.insiderange)){var _n=ki(),Rn=ut._id.charAt(0)==="y"?_n.labelsMaxW:_n.labelsMaxH;Rn+=2*ee,ut.ticklabelposition==="inside"&&(Rn+=ut.ticklen||0);var En=ut.side==="right"||ut.side==="top"?1:-1,On=En===1?1:0,no=En===1?0:1,cn=[];cn[no]=Ki.range[no];var lo=Ki.range,Wo=Ki.r2p(lo[On]),hs=Ki.r2p(lo[no]),Oo=Cr._insideTickLabelsUpdaterange[Ki._name+".range"];if(Oo){var Wn=Ki.r2p(Oo[On]),No=Ki.r2p(Oo[no]),as=En*(ut._id.charAt(0)==="y"?1:-1);as*Wo<as*Wn&&(Wo=Wn,cn[On]=lo[On]=Oo[On]),as*hs>as*No&&(hs=No,cn[no]=lo[no]=Oo[no])}var Ns=Math.abs(hs-Wo);Ns-Rn>0?(Ns-=Rn,Rn*=1+Rn/Ns):Rn=0,ut._id.charAt(0)!=="y"&&(Rn=-Rn),cn[On]=Ki.p2r(Ki.r2p(lo[On])+En*Rn),Ki.autorange==="min"||Ki.autorange==="max reversed"?(cn[0]=null,Ki._rangeInitial0=void 0,Ki._rangeInitial1=void 0):(Ki.autorange==="max"||Ki.autorange==="min reversed")&&(cn[1]=null,Ki._rangeInitial0=void 0,Ki._rangeInitial1=void 0),Cr._insideTickLabelsUpdaterange[Ki._name+".range"]=cn}var ss=e.syncOrAsync(Ai);return ss&&ss.then&&Tt._promises.push(ss),ss};function Wa(Tt,ut,Br){var Cr=ut._id+"divider",xr=Br.vals,Ir=Br.layer.selectAll("path."+Cr).data(xr,qa);Ir.exit().remove(),Ir.enter().insert("path",":first-child").classed(Cr,1).classed("crisp",1).call(a.stroke,ut.dividercolor).style("stroke-width",n.crispRound(Tt,ut.dividerwidth,1)+"px"),Ir.attr("transform",Br.transFn).attr("d",Br.path)}q.getPxPosition=function(Tt,ut){var Br=Tt._fullLayout._size,Cr=ut._id.charAt(0),xr=ut.side,Ir;if(ut.anchor!=="free"?Ir=ut._anchorAxis:Cr==="x"?Ir={_offset:Br.t+(1-(ut.position||0))*Br.h,_length:0}:Cr==="y"&&(Ir={_offset:Br.l+(ut.position||0)*Br.w+ut._shift,_length:0}),xr==="top"||xr==="left")return Ir._offset;if(xr==="bottom"||xr==="right")return Ir._offset+Ir._length};function Ca(Tt){var ut=Tt.title.font.size,Br=(Tt.title.text.match(r.BR_TAG_ALL)||[]).length;return Tt.title.hasOwnProperty("standoff")?ut*(fe+Br*V):Br?ut*(Br+1)*V:ut}function hi(Tt,ut){var Br=Tt._fullLayout,Cr=ut._id,xr=Cr.charAt(0),Ir=ut.title.font.size,Ur,Hr=(ut.title.text.match(r.BR_TAG_ALL)||[]).length;if(ut.title.hasOwnProperty("standoff"))ut.side==="bottom"||ut.side==="right"?Ur=ut._depth+ut.title.standoff+Ir*fe:(ut.side==="top"||ut.side==="left")&&(Ur=ut._depth+ut.title.standoff+Ir*(le+Hr*V));else{var xt=pi(ut);if(ut.type==="multicategory")Ur=ut._depth;else{var Xt=1.5*Ir;xt&&(Xt=.5*Ir,ut.ticks==="outside"&&(Xt+=ut.ticklen)),Ur=10+Xt+(ut.linewidth?ut.linewidth-1:0)}xt||(xr==="x"?Ur+=ut.side==="top"?Ir*(ut.showticklabels?1:0):Ir*(ut.showticklabels?1.5:.5):Ur+=ut.side==="right"?Ir*(ut.showticklabels?1:.5):Ir*(ut.showticklabels?.5:0))}var vr=q.getPxPosition(Tt,ut),Or,ba,Pa;xr==="x"?(ba=ut._offset+ut._length/2,Pa=ut.side==="top"?vr-Ur:vr+Ur):(Pa=ut._offset+ut._length/2,ba=ut.side==="right"?vr+Ur:vr-Ur,Or={rotate:"-90",offset:0});var ya;if(ut.type!=="multicategory"){var la=ut._selections[ut._id+"tick"];if(ya={selection:la,side:ut.side},la&&la.node()&&la.node().parentNode){var Ta=n.getTranslate(la.node().parentNode);ya.offsetLeft=Ta.x,ya.offsetTop=Ta.y}ut.title.hasOwnProperty("standoff")&&(ya.pad=0)}return ut._titleStandoff=Ur,o.draw(Tt,Cr+"title",{propContainer:ut,propName:ut._name+".title.text",placeholder:Br._dfltTitle[xr],avoid:ya,transform:Or,attributes:{x:ba,y:Pa,"text-anchor":"middle"}})}q.shouldShowZeroLine=function(Tt,ut,Br){var Cr=e.simpleMap(ut.range,ut.r2l);return Cr[0]*Cr[1]<=0&&ut.zeroline&&(ut.type==="linear"||ut.type==="-")&&!(ut.rangebreaks&&ut.maskBreaks(0)===N)&&(wi(ut,0)||!Kt(Tt,ut,Br,Cr)||Ft(Tt,ut))},q.clipEnds=function(Tt,ut){return ut.filter(function(Br){return wi(Tt,Br.x)})};function wi(Tt,ut){var Br=Tt.l2p(ut);return Br>1&&Br<Tt._length-1}function Kt(Tt,ut,Br,Cr){var xr=Br._mainAxis;if(!xr)return;var Ir=Tt._fullLayout,Ur=ut._id.charAt(0),Hr=q.counterLetter(ut._id),xt=ut._offset+(Math.abs(Cr[0])<Math.abs(Cr[1])==(Ur==="x")?0:ut._length);function Xt(ya){if(!ya.showline||!ya.linewidth)return!1;var la=Math.max((ya.linewidth+ut.zerolinewidth)/2,1);function Ta(Ki){return typeof Ki=="number"&&Math.abs(Ki-xt)<la}if(Ta(ya._mainLinePosition)||Ta(ya._mainMirrorPosition))return!0;var Ai=ya._linepositions||{};for(var ki in Ai)if(Ta(Ai[ki][0])||Ta(Ai[ki][1]))return!0}var vr=Ir._plots[Br._mainSubplot];if(!(vr.mainplotinfo||vr).overlays.length)return Xt(Br,xt);for(var Or=q.list(Tt,Hr),ba=0;ba<Or.length;ba++){var Pa=Or[ba];if(Pa._mainAxis===xr&&Xt(Pa,xt))return!0}}function Ft(Tt,ut){for(var Br=Tt._fullData,Cr=ut._mainSubplot,xr=ut._id.charAt(0),Ir=0;Ir<Br.length;Ir++){var Ur=Br[Ir];if(Ur.visible===!0&&Ur.xaxis+Ur.yaxis===Cr&&(E.traceIs(Ur,"bar-like")&&Ur.orientation==={x:"h",y:"v"}[xr]||Ur.fill&&Ur.fill.charAt(Ur.fill.length-1)===xr))return!0}return!1}function Yt(Tt){var ut=v.select(Tt),Br=ut.select(".text-math-group");return Br.empty()?ut.select("text"):Br}q.allowAutoMargin=function(Tt){for(var ut=q.list(Tt,"",!0),Br=0;Br<ut.length;Br++){var Cr=ut[Br];Cr.automargin&&(S.allowAutoMargin(Tt,Jt(Cr)),Cr.mirror&&S.allowAutoMargin(Tt,Fr(Cr))),E.getComponentMethod("rangeslider","isVisible")(Cr)&&S.allowAutoMargin(Tt,ta(Cr))}};function Jt(Tt){return Tt._id+".automargin"}function Fr(Tt){return Jt(Tt)+".mirror"}function ta(Tt){return Tt._id+".rangeslider"}q.swap=function(Tt,ut){for(var Br=ra(Tt,ut),Cr=0;Cr<Br.length;Cr++)Ba(Tt,Br[Cr].x,Br[Cr].y)};function ra(Tt,ut){var Br=[],Cr,xr;for(Cr=0;Cr<ut.length;Cr++){var Ir=[],Ur=Tt._fullData[ut[Cr]].xaxis,Hr=Tt._fullData[ut[Cr]].yaxis;if(!(!Ur||!Hr)){for(xr=0;xr<Br.length;xr++)(Br[xr].x.indexOf(Ur)!==-1||Br[xr].y.indexOf(Hr)!==-1)&&Ir.push(xr);if(!Ir.length){Br.push({x:[Ur],y:[Hr]});continue}var xt=Br[Ir[0]],Xt;if(Ir.length>1)for(xr=1;xr<Ir.length;xr++)Xt=Br[Ir[xr]],ca(xt.x,Xt.x),ca(xt.y,Xt.y);ca(xt.x,[Ur]),ca(xt.y,[Hr])}}return Br}function ca(Tt,ut){for(var Br=0;Br<ut.length;Br++)Tt.indexOf(ut[Br])===-1&&Tt.push(ut[Br])}function Ba(Tt,ut,Br){var Cr=[],xr=[],Ir=Tt.layout,Ur,Hr;for(Ur=0;Ur<ut.length;Ur++)Cr.push(q.getFromId(Tt,ut[Ur]));for(Ur=0;Ur<Br.length;Ur++)xr.push(q.getFromId(Tt,Br[Ur]));var xt=Object.keys(i),Xt=["anchor","domain","overlaying","position","side","tickangle","editType"],vr=["linear","log"];for(Ur=0;Ur<xt.length;Ur++){var Or=xt[Ur],ba=Cr[0][Or],Pa=xr[0][Or],ya=!0,la=!1,Ta=!1;if(!(Or.charAt(0)==="_"||typeof ba=="function"||Xt.indexOf(Or)!==-1)){for(Hr=1;Hr<Cr.length&&ya;Hr++){var Ai=Cr[Hr][Or];Or==="type"&&vr.indexOf(ba)!==-1&&vr.indexOf(Ai)!==-1&&ba!==Ai?la=!0:Ai!==ba&&(ya=!1)}for(Hr=1;Hr<xr.length&&ya;Hr++){var ki=xr[Hr][Or];Or==="type"&&vr.indexOf(Pa)!==-1&&vr.indexOf(ki)!==-1&&Pa!==ki?Ta=!0:xr[Hr][Or]!==Pa&&(ya=!1)}ya&&(la&&(Ir[Cr[0]._name].type="linear"),Ta&&(Ir[xr[0]._name].type="linear"),$a(Ir,Or,Cr,xr,Tt._fullLayout._dfltTitle))}}for(Ur=0;Ur<Tt._fullLayout.annotations.length;Ur++){var Ki=Tt._fullLayout.annotations[Ur];ut.indexOf(Ki.xref)!==-1&&Br.indexOf(Ki.yref)!==-1&&e.swapAttrs(Ir.annotations[Ur],["?"])}}function $a(Tt,ut,Br,Cr,xr){var Ir=e.nestedProperty,Ur=Ir(Tt[Br[0]._name],ut).get(),Hr=Ir(Tt[Cr[0]._name],ut).get(),xt;for(ut==="title"&&(Ur&&Ur.text===xr.x&&(Ur.text=xr.y),Hr&&Hr.text===xr.y&&(Hr.text=xr.x)),xt=0;xt<Br.length;xt++)Ir(Tt,Br[xt]._name+"."+ut).set(Hr);for(xt=0;xt<Cr.length;xt++)Ir(Tt,Cr[xt]._name+"."+ut).set(Ur)}function Za(Tt){return Tt._id==="angularaxis"}function ri(Tt,ut){for(var Br=ut._rangebreaks.length,Cr=0;Cr<Br;Cr++){var xr=ut._rangebreaks[Cr];if(Tt>=xr.min&&Tt<xr.max)return xr.max}return Tt}function pi(Tt){return(Tt.ticklabelposition||"").indexOf("inside")!==-1}function Ra(Tt,ut){pi(Tt._anchorAxis||{})&&Tt._hideCounterAxisInsideTickLabels&&Tt._hideCounterAxisInsideTickLabels(ut)}function tn(Tt,ut,Br,Cr){var xr=Tt.anchor!=="free"&&(Tt.overlaying===void 0||Tt.overlaying===!1)?Tt._id:Tt.overlaying,Ir;Cr?Ir=Tt.side==="right"?ut:-ut:Ir=ut,xr in Br||(Br[xr]={}),Tt.side in Br[xr]||(Br[xr][Tt.side]=0),Br[xr][Tt.side]+=Ir}function on(Tt,ut){return Tt.autoshift?ut[Tt.overlaying][Tt.side]:Tt.shift||0}function hn(Tt,ut){return/%f/.test(ut)?Tt>=z:/%L/.test(ut)?Tt>=L:/%[SX]/.test(ut)?Tt>=R:/%M/.test(ut)?Tt>=f:/%[HI]/.test(ut)?Tt>=y:/%p/.test(ut)?Tt>=u:/%[Aadejuwx]/.test(ut)?Tt>=d:/%[UVW]/.test(ut)?Tt>=b:/%[Bbm]/.test(ut)?Tt>=g:/%[q]/.test(ut)?Tt>=w:/%[Yy]/.test(ut)?Tt>=T:!0}}}),f5=Xe({"src/plots/cartesian/autorange_options_defaults.js"(Z,G){"use strict";G.exports=function(x,S,E){var e,t;if(E){var r=S==="reversed"||S==="min reversed"||S==="max reversed";e=E[r?1:0],t=E[r?0:1]}var o=x("autorangeoptions.minallowed",t===null?e:void 0),a=x("autorangeoptions.maxallowed",e===null?t:void 0);o===void 0&&x("autorangeoptions.clipmin"),a===void 0&&x("autorangeoptions.clipmax"),x("autorangeoptions.include")}}}),h5=Xe({"src/plots/cartesian/range_defaults.js"(Z,G){"use strict";var v=f5();G.exports=function(S,E,e,t){var r=E._template||{},o=E.type||r.type||"-";e("minallowed"),e("maxallowed");var a=e("range");if(!a){var n;!t.noInsiderange&&o!=="log"&&(n=e("insiderange"),n&&(n[0]===null||n[1]===null)&&(E.insiderange=!1,n=void 0),n&&(a=e("range",n)))}var i=E.getAutorangeDflt(a,t),s=e("autorange",i),h;a&&(a[0]===null&&a[1]===null||(a[0]===null||a[1]===null)&&(s==="reversed"||s===!0)||a[0]!==null&&(s==="min"||s==="max reversed")||a[1]!==null&&(s==="max"||s==="min reversed"))&&(a=void 0,delete E.range,E.autorange=!0,h=!0),h||(i=E.getAutorangeDflt(a,t),s=e("autorange",i)),s&&(v(e,s,a),(o==="linear"||o==="-")&&e("rangemode")),E.cleanRange()}}}),uz=Xe({"node_modules/mouse-event-offset/index.js"(Z,G){var v={left:0,top:0};G.exports=x;function x(E,e,t){e=e||E.currentTarget||E.srcElement,Array.isArray(t)||(t=[0,0]);var r=E.clientX||0,o=E.clientY||0,a=S(e);return t[0]=r-a.left,t[1]=o-a.top,t}function S(E){return E===window||E===document||E===document.body?v:E.getBoundingClientRect()}}}),b2=Xe({"node_modules/has-passive-events/index.js"(Z,G){"use strict";var v=a5();function x(){var S=!1;try{var E=Object.defineProperty({},"passive",{get:function(){S=!0}});window.addEventListener("test",null,E),window.removeEventListener("test",null,E)}catch{S=!1}return S}G.exports=v&&x()}}),cz=Xe({"src/components/dragelement/align.js"(Z,G){"use strict";G.exports=function(x,S,E,e,t){var r=(x-E)/(e-E),o=r+S/(e-E),a=(r+o)/2;return t==="left"||t==="bottom"?r:t==="center"||t==="middle"?a:t==="right"||t==="top"?o:r<2/3-a?r:o>4/3-a?o:a}}}),fz=Xe({"src/components/dragelement/cursor.js"(Z,G){"use strict";var v=sa(),x=[["sw-resize","s-resize","se-resize"],["w-resize","move","e-resize"],["nw-resize","n-resize","ne-resize"]];G.exports=function(E,e,t,r){return t==="left"?E=0:t==="center"?E=1:t==="right"?E=2:E=v.constrain(Math.floor(E*3),0,2),r==="bottom"?e=0:r==="middle"?e=1:r==="top"?e=2:e=v.constrain(Math.floor(e*3),0,2),x[e][E]}}}),hz=Xe({"src/components/dragelement/unhover.js"(Z,G){"use strict";var v=Qy(),x=y2(),S=T_().getGraphDiv,E=w_(),e=G.exports={};e.wrapped=function(t,r,o){t=S(t),t._fullLayout&&x.clear(t._fullLayout._uid+E.HOVERID),e.raw(t,r,o)},e.raw=function(r,o){var a=r._fullLayout,n=r._hoverdata;o||(o={}),!(o.target&&!r._dragged&&v.triggerHandler(r,"plotly_beforehover",o)===!1)&&(a._hoverlayer.selectAll("g").remove(),a._hoverlayer.selectAll("line").remove(),a._hoverlayer.selectAll("circle").remove(),r._hoverdata=void 0,o.target&&n&&r.emit("plotly_unhover",{event:o,points:n}))}}}),Ap=Xe({"src/components/dragelement/index.js"(Z,G){"use strict";var v=uz(),x=i5(),S=b2(),E=sa().removeElement,e=lh(),t=G.exports={};t.align=cz(),t.getCursor=fz();var r=hz();t.unhover=r.wrapped,t.unhoverRaw=r.raw,t.init=function(i){var s=i.gd,h=1,c=s._context.doubleClickDelay,m=i.element,p,T,l,_,w,A,M,g;s._mouseDownTime||(s._mouseDownTime=0),m.style.pointerEvents="all",m.onmousedown=u,S?(m._ontouchstart&&m.removeEventListener("touchstart",m._ontouchstart),m._ontouchstart=u,m.addEventListener("touchstart",u,{passive:!1})):m.ontouchstart=u;function b(R,L,z){return Math.abs(R)<z&&(R=0),Math.abs(L)<z&&(L=0),[R,L]}var d=i.clampFn||b;function u(R){s._dragged=!1,s._dragging=!0;var L=a(R);p=L[0],T=L[1],M=R.target,A=R,g=R.buttons===2||R.ctrlKey,typeof R.clientX>"u"&&typeof R.clientY>"u"&&(R.clientX=p,R.clientY=T),l=new Date().getTime(),l-s._mouseDownTime<c?h+=1:(h=1,s._mouseDownTime=l),i.prepFn&&i.prepFn(R,p,T),x&&!g?(w=o(),w.style.cursor=window.getComputedStyle(m).cursor):x||(w=document,_=window.getComputedStyle(document.documentElement).cursor,document.documentElement.style.cursor=window.getComputedStyle(m).cursor),document.addEventListener("mouseup",f),document.addEventListener("touchend",f),i.dragmode!==!1&&(R.preventDefault(),document.addEventListener("mousemove",y),document.addEventListener("touchmove",y,{passive:!1}))}function y(R){R.preventDefault();var L=a(R),z=i.minDrag||e.MINDRAG,F=d(L[0]-p,L[1]-T,z),N=F[0],O=F[1];(N||O)&&(s._dragged=!0,t.unhover(s,R)),s._dragged&&i.moveFn&&!g&&(s._dragdata={element:m,dx:N,dy:O},i.moveFn(N,O))}function f(R){if(delete s._dragdata,i.dragmode!==!1&&(R.preventDefault(),document.removeEventListener("mousemove",y),document.removeEventListener("touchmove",y)),document.removeEventListener("mouseup",f),document.removeEventListener("touchend",f),x?E(w):_&&(w.documentElement.style.cursor=_,_=null),!s._dragging){s._dragged=!1;return}if(s._dragging=!1,new Date().getTime()-s._mouseDownTime>c&&(h=Math.max(h-1,1)),s._dragged)i.doneFn&&i.doneFn();else{var L;A.target===M?L=A:(L={target:M,srcElement:M,toElement:M},Object.keys(A).concat(Object.keys(A.__proto__)).forEach(z=>{var F=A[z];!L[z]&&typeof F!="function"&&(L[z]=F)})),i.clickFn&&i.clickFn(h,L),g||M.dispatchEvent(new MouseEvent("click",R))}s._dragging=!1,s._dragged=!1}};function o(){var n=document.createElement("div");n.className="dragcover";var i=n.style;return i.position="fixed",i.left=0,i.right=0,i.top=0,i.bottom=0,i.zIndex=999999999,i.background="none",document.body.appendChild(n),n}t.coverSlip=o;function a(n){return v(n.changedTouches?n.changedTouches[0]:n,document.body)}}}),Kd=Xe({"src/lib/setcursor.js"(Z,G){"use strict";G.exports=function(x,S){(x.attr("class")||"").split(" ").forEach(function(E){E.indexOf("cursor-")===0&&x.classed(E,!1)}),S&&x.classed("cursor-"+S,!0)}}}),pz=Xe({"src/lib/override_cursor.js"(Z,G){"use strict";var v=Kd(),x="data-savedcursor",S="!!";G.exports=function(e,t){var r=e.attr(x);if(t){if(!r){for(var o=(e.attr("class")||"").split(" "),a=0;a<o.length;a++){var n=o[a];n.indexOf("cursor-")===0&&e.attr(x,n.slice(7)).classed(n,!1)}e.attr(x)||e.attr(x,S)}v(e,t)}else r&&(e.attr(x,null),r===S?v(e):v(e,r))}}}),p5=Xe({"src/components/legend/attributes.js"(Z,G){"use strict";var v=tc(),x=sh();G.exports={_isSubplotObj:!0,visible:{valType:"boolean",dflt:!0,editType:"legend"},bgcolor:{valType:"color",editType:"legend"},bordercolor:{valType:"color",dflt:x.defaultLine,editType:"legend"},maxheight:{valType:"number",min:0,editType:"legend"},borderwidth:{valType:"number",min:0,dflt:0,editType:"legend"},font:v({editType:"legend"}),grouptitlefont:v({editType:"legend"}),orientation:{valType:"enumerated",values:["v","h"],dflt:"v",editType:"legend"},traceorder:{valType:"flaglist",flags:["reversed","grouped"],extras:["normal"],editType:"legend"},tracegroupgap:{valType:"number",min:0,dflt:10,editType:"legend"},entrywidth:{valType:"number",min:0,editType:"legend"},entrywidthmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"pixels",editType:"legend"},indentation:{valType:"number",min:-15,dflt:0,editType:"legend"},itemsizing:{valType:"enumerated",values:["trace","constant"],dflt:"trace",editType:"legend"},itemwidth:{valType:"number",min:30,dflt:30,editType:"legend"},itemclick:{valType:"enumerated",values:["toggle","toggleothers",!1],dflt:"toggle",editType:"legend"},itemdoubleclick:{valType:"enumerated",values:["toggle","toggleothers",!1],dflt:"toggleothers",editType:"legend"},groupclick:{valType:"enumerated",values:["toggleitem","togglegroup"],dflt:"togglegroup",editType:"legend"},titleclick:{valType:"enumerated",values:["toggle","toggleothers",!1],editType:"legend"},titledoubleclick:{valType:"enumerated",values:["toggle","toggleothers",!1],editType:"legend"},x:{valType:"number",editType:"legend"},xref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left",editType:"legend"},y:{valType:"number",editType:"legend"},yref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],editType:"legend"},uirevision:{valType:"any",editType:"none"},valign:{valType:"enumerated",values:["top","middle","bottom"],dflt:"middle",editType:"legend"},title:{text:{valType:"string",dflt:"",editType:"legend"},font:v({editType:"legend"}),side:{valType:"enumerated",values:["top","left","top left","top center","top right"],editType:"legend"},editType:"legend"},editType:"legend"}}}),E_=Xe({"src/components/legend/helpers.js"(Z){"use strict";Z.isGrouped=function(v){return(v.traceorder||"").indexOf("grouped")!==-1},Z.isVertical=function(v){return v.orientation!=="h"},Z.isReversed=function(v){return(v.traceorder||"").indexOf("reversed")!==-1},Z.getId=function(v){return v._id||"legend"}}}),d5=Xe({"src/components/legend/defaults.js"(Z,G){"use strict";var v=so(),x=sa(),S=zl(),E=ru(),e=p5(),t=$y(),r=E_();function o(a,n,i,s,h){var c=n[a]||{},m=S.newContainer(i,a);function p(Y,ee){return x.coerce(c,m,e,Y,ee)}var T=x.coerceFont(p,"font",i.font);p("bgcolor",i.paper_bgcolor),p("bordercolor");var l=p("visible");if(!l)return;var _,w=function(Y,ee){var q=_._input,oe=_;return x.coerce(q,oe,E,Y,ee)},A=i.font||{},M=x.coerceFont(p,"grouptitlefont",A,{overrideDflt:{size:Math.round(A.size*1.1)}}),g=0,b=!1,d="normal",u=(i.shapes||[]).filter(function(Y){return Y.showlegend});function y(Y){return v.traceIs(Y,"pie-like")&&Y._length!=null&&(Array.isArray(Y.legend)||Array.isArray(Y.showlegend))}s.filter(y).forEach(function(Y){Y.visible&&g++;for(var ee=0;ee<Y._length;ee++){var q=(Array.isArray(Y.legend)?Y.legend[ee]:Y.legend)||"legend";q===a&&((Array.isArray(Y.showlegend)?Y.showlegend[ee]:Y.showlegend)||Y._dfltShowLegend)&&(b=!0,g++)}if(a==="legend"&&Y._length>Y.legend.length)for(var oe=Y.legend.length;oe<Y._length;oe++)b=!0,g++});for(var f=s.concat(u).filter(function(Y){return!y(_)&&a===(Y.legend||"legend")}),R=0;R<f.length;R++)if(_=f[R],!!_.visible){var L=_._isShape;(_.showlegend||_._dfltShowLegend&&!(_._module&&_._module.attributes&&_._module.attributes.showlegend&&_._module.attributes.showlegend.dflt===!1))&&(g++,_.showlegend&&(b=!0,(!L&&v.traceIs(_,"pie-like")||_._input.showlegend===!0)&&g++),x.coerceFont(w,"legendgrouptitle.font",M)),(!L&&v.traceIs(_,"bar")&&i.barmode==="stack"||["tonextx","tonexty"].indexOf(_.fill)!==-1)&&(d=r.isGrouped({traceorder:d})?"grouped+reversed":"reversed"),_.legendgroup!==void 0&&_.legendgroup!==""&&(d=r.isReversed({traceorder:d})?"reversed+grouped":"grouped")}var z=x.coerce(n,i,t,"showlegend",i.showlegend||b&&g>(a==="legend"?1:0));if(z===!1&&(i[a]=void 0),!(z===!1&&!c.uirevision)&&(p("uirevision",i.uirevision),z!==!1)){p("borderwidth");var F=p("orientation"),N=p("yref"),O=p("xref"),P=F==="h",U=N==="paper",B=O==="paper",X,$,se,le="left";P?(X=0,v.getComponentMethod("rangeslider","isVisible")(n.xaxis)?U?($=1.1,se="bottom"):($=1,se="top"):U?($=-.1,se="top"):($=0,se="bottom")):($=1,se="auto",B?X=1.02:(X=1,le="right")),x.coerce(c,m,{x:{valType:"number",editType:"legend",min:B?-2:0,max:B?3:1,dflt:X}},"x"),x.coerce(c,m,{y:{valType:"number",editType:"legend",min:U?-2:0,max:U?3:1,dflt:$}},"y"),p("traceorder",d),r.isGrouped(i[a])&&p("tracegroupgap"),p("entrywidth"),p("entrywidthmode"),p("indentation"),p("itemsizing"),p("itemwidth"),p("itemclick"),p("itemdoubleclick"),p("groupclick"),p("xanchor",le),p("yanchor",se),p("maxheight"),p("valign"),x.noneOrAll(c,m,["x","y"]);var fe=p("title.text");if(fe){p("title.side",P?"left":"top");var V=x.extendFlat({},T,{size:x.bigFont(T.size)});x.coerceFont(p,"title.font",V);let Y=h>1;p("titleclick",Y?"toggle":!1),p("titledoubleclick",Y?"toggleothers":!1)}}}G.exports=function(n,i,s){var h,c=s.slice(),m=i.shapes;if(m)for(h=0;h<m.length;h++){var p=m[h];if(p.showlegend){var T={_input:p._input,visible:p.visible,showlegend:p.showlegend,legend:p.legend};c.push(T)}}var l=["legend"];for(h=0;h<c.length;h++)Array.isArray(c[h].legend)?l=l.concat(c[h].legend):x.pushUnique(l,c[h].legend);for(i._legends=[],h=0;h<l.length;h++){var _=l[h];o(_,n,i,c,l.length),i[_]&&(i[_]._id=_),i._legends.push(_)}}}}),v5=Xe({"src/components/legend/handle_click.js"(Z){"use strict";var G=so(),v=sa(),x=v.pushUnique,S=E_(),E=!0;Z.handleItemClick=function(t,r,o,a){var n=r._fullLayout;if(r._dragged||r._editing)return;var i=t.data()[0][0];if(i.groupTitle&&i.noClick)return;var s=o.groupclick;a==="toggle"&&o.itemdoubleclick==="toggleothers"&&E&&r.data&&r._context.showTips&&(v.notifier(v._(r,"Double-click on legend to isolate one trace"),"long"),E=!1);var h=s==="togglegroup",c=n.hiddenlabels?n.hiddenlabels.slice():[],m=r._fullData,p=(n.shapes||[]).filter(function(rt){return rt.showlegend}),T=m.concat(p),l=i.trace;l._isShape&&(l=l._fullInput);var _=l.legendgroup,w,A,M,g,b,d,u={},y=[],f=[],R=[];function L(rt,st){var Me=y.indexOf(rt),ye=u.visible;return ye||(ye=u.visible=[]),y.indexOf(rt)===-1&&(y.push(rt),Me=y.length-1),ye[Me]=st,Me}var z=(n.shapes||[]).map(function(rt){return rt._input}),F=!1;function N(rt,st){z[rt].visible=st,F=!0}function O(rt,st){if(!(i.groupTitle&&!h)){var Me=rt._fullInput||rt,ye=Me._isShape,he=Me.index;he===void 0&&(he=Me._index);var Oe=Me.visible===!1?!1:st;ye?N(he,Oe):L(he,Oe)}}var P=l.legend,U=l._fullInput,B=U&&U._isShape;if(!B&&G.traceIs(l,"pie-like")){var X=i.label,$=c.indexOf(X);if(a==="toggle")$===-1?c.push(X):c.splice($,1);else if(a==="toggleothers"){var se=$!==-1,le=[];for(w=0;w<r.calcdata.length;w++){var fe=r.calcdata[w];for(A=0;A<fe.length;A++){var V=fe[A],Y=V.label;P===fe[0].trace.legend&&X!==Y&&(c.indexOf(Y)===-1&&(se=!0),x(c,Y),le.push(Y))}}if(!se)for(var ee=0;ee<le.length;ee++){var q=c.indexOf(le[ee]);q!==-1&&c.splice(q,1)}}G.call("_guiRelayout",r,"hiddenlabels",c)}else{var oe=_&&_.length,ae=[],j;if(oe)for(w=0;w<T.length;w++)j=T[w],j.visible&&j.legendgroup===_&&ae.push(w);if(a==="toggle"){var Q;switch(l.visible){case!0:Q="legendonly";break;case!1:Q=!1;break;case"legendonly":Q=!0;break}if(oe)if(h)for(w=0;w<T.length;w++){var re=T[w];re.visible!==!1&&re.legendgroup===_&&O(re,Q)}else O(l,Q);else O(l,Q)}else if(a==="toggleothers"){var ce,be,Ae,De,ze,Ze=!0;for(w=0;w<T.length;w++)if(ze=T[w],ce=ze===l,Ae=ze.showlegend!==!0,!(ce||Ae)&&(be=oe&&ze.legendgroup===_,!be&&ze.legend===P&&ze.visible===!0&&!G.traceIs(ze,"notLegendIsolatable"))){Ze=!1;break}for(w=0;w<T.length;w++)if(ze=T[w],!(ze.visible===!1||ze.legend!==P)&&!G.traceIs(ze,"notLegendIsolatable"))switch(l.visible){case"legendonly":O(ze,!0);break;case!0:De=Ze?!0:"legendonly",ce=ze===l,Ae=ze.showlegend!==!0&&!ze.legendgroup,be=ce||oe&&ze.legendgroup===_,O(ze,be||Ae?!0:De);break}}for(w=0;w<f.length;w++)if(M=f[w],!!M){var at=M.constructUpdate(),nt=Object.keys(at);for(A=0;A<nt.length;A++)g=nt[A],d=u[g]=u[g]||[],d[R[w]]=at[g]}for(b=Object.keys(u),w=0;w<b.length;w++)for(g=b[w],A=0;A<y.length;A++)u[g].hasOwnProperty(A)||(u[g][A]=void 0);F?G.call("_guiUpdate",r,u,{shapes:z},y):G.call("_guiRestyle",r,u,y)}},Z.handleTitleClick=function(t,r,o){let a=t._fullLayout,n=t._fullData,i=S.getId(r),s=(a.shapes||[]).filter(function(M){return M.showlegend}),h=n.concat(s);function c(M){return(M.legend||"legend")===i}var m,p;if(o==="toggle")m=!h.some(function(g){return c(g)&&g.visible===!0}),p=!1;else{let M=h.some(function(g){return!c(g)&&g.visible===!0&&g.showlegend!==!1});m=!0,p=!M}let T={visible:[]},l=[],_=(a.shapes||[]).map(function(M){return M._input});for(var w=!1,A=0;A<h.length;A++){let M=h[A],g=c(M);if(!g){let u=M.showlegend!==!0&&!M.legendgroup;if(o==="toggle"||u)continue}let d=(g?m:p)?!0:"legendonly";M.visible!==!1&&M.visible!==d&&(M._isShape?(_[M._index].visible=d,w=!0):(l.push(M.index),T.visible.push(d)))}w?G.call("_guiUpdate",t,T,{shapes:_},l):l.length&&G.call("_guiRestyle",t,T,l)}}}),m5=Xe({"src/components/legend/constants.js"(Z,G){"use strict";G.exports={scrollBarWidth:6,scrollBarMinHeight:20,scrollBarColor:"#808BA4",scrollBarMargin:4,scrollBarEnterAttrs:{rx:20,ry:3,width:0,height:0},titlePad:2,itemGap:5}}}),dz=Xe({"src/components/legend/get_legend_data.js"(Z,G){"use strict";var v=so(),x=E_();G.exports=function(E,e,t){var r=e._inHover,o=x.isGrouped(e),a=x.isReversed(e),n={},i=[],s=!1,h={},c=0,m=0,p,T;function l(X,$,se){if(e.visible!==!1&&!(t&&X!==e._id))if($===""||!x.isGrouped(e)){var le="~~i"+c;i.push(le),n[le]=[se],c++}else i.indexOf($)===-1?(i.push($),s=!0,n[$]=[se]):n[$].push(se)}for(p=0;p<E.length;p++){var _=E[p],w=_[0],A=w.trace,M=A.legend,g=A.legendgroup;if(!(!r&&(!A.visible||!A.showlegend)))if(v.traceIs(A,"pie-like")){var b=Array.isArray(A.legend),d=Array.isArray(A.showlegend);for(h[g]||(h[g]={}),T=0;T<_.length;T++)if(!(d&&A.showlegend[_[T].i]===!1)){b&&(M=A.legend[_[T].i]||"legend");var u=_[T].label;h[g][u]||(l(M,g,{label:u,color:_[T].color,i:_[T].i,trace:A,pts:_[T].pts}),h[g][u]=!0,m=Math.max(m,(u||"").length))}}else l(M,g,w),m=Math.max(m,(A.name||"").length)}if(!i.length)return[];var y=!s||!o,f=[];for(p=0;p<i.length;p++){var R=n[i[p]];y?f.push(R[0]):f.push(R)}for(y&&(f=[f]),p=0;p<f.length;p++){var L=1/0;for(T=0;T<f[p].length;T++){var z=f[p][T].trace.legendrank;L>z&&(L=z)}f[p][0]._groupMinRank=L,f[p][0]._preGroupSort=p}var F=function(X,$){return X[0]._groupMinRank-$[0]._groupMinRank||X[0]._preGroupSort-$[0]._preGroupSort},N=function(X,$){return X.trace.legendrank-$.trace.legendrank||X._preSort-$._preSort};for(f.forEach(function(X,$){X[0]._preGroupSort=$}),f.sort(F),p=0;p<f.length;p++){f[p].forEach(function(X,$){X._preSort=$}),f[p].sort(N);var O=f[p][0].trace,P=null;for(T=0;T<f[p].length;T++){var U=f[p][T].trace.legendgrouptitle;if(U&&U.text){P=U,r&&(U.font=e._groupTitleFont);break}}if(a&&f[p].reverse(),P){var B=!1;for(T=0;T<f[p].length;T++)if(v.traceIs(f[p][T].trace,"pie-like")){B=!0;break}f[p].unshift({i:-1,groupTitle:P,noClick:B,trace:{showlegend:O.showlegend,legendgroup:O.legendgroup,legend:O.legend,visible:e.groupclick==="toggleitem"?!0:O.visible}})}for(T=0;T<f[p].length;T++)f[p][T]=[f[p][T]]}return e._lgroupsLength=f.length,e._maxNameLength=m,f}}}),t0=Xe({"src/traces/pie/helpers.js"(Z){"use strict";var G=sa();function v(x){return x.indexOf("e")!==-1?x.replace(/[.]?0+e/,"e"):x.indexOf(".")!==-1?x.replace(/[.]?0+$/,""):x}Z.formatPiePercent=function(S,E){var e=v((S*100).toPrecision(3));return G.numSeparate(e,E)+"%"},Z.formatPieValue=function(S,E){var e=v(S.toPrecision(10));return G.numSeparate(e,E)},Z.getFirstFilled=function(S,E){if(G.isArrayOrTypedArray(S))for(var e=0;e<E.length;e++){var t=S[E[e]];if(t||t===0||t==="")return t}},Z.castOption=function(S,E){if(G.isArrayOrTypedArray(S))return Z.getFirstFilled(S,E);if(S)return S},Z.getRotationAngle=function(x){return(x==="auto"?0:x)*Math.PI/180}}}),vz=Xe({"src/traces/pie/fill_one.js"(Z,G){"use strict";var v=es(),x=$n();G.exports=function(E,e,t,r){var o=t.marker.pattern;o&&o.shape?v.pointStyle(E,t,r,e):x.fill(E,e.color)}}}),i1=Xe({"src/traces/pie/style_one.js"(Z,G){"use strict";var v=$n(),x=t0().castOption,S=vz();G.exports=function(e,t,r,o){var a=r.marker.line,n=x(a.color,t.pts)||v.defaultLine,i=x(a.width,t.pts)||0;e.call(S,t,r,o).style("stroke-width",i).call(v.stroke,n)}}}),g5=Xe({"src/components/legend/style.js"(Z,G){"use strict";var v=Hn(),x=so(),S=sa(),E=S.strTranslate,e=es(),t=$n(),r=wp().extractOpts,o=Fu(),a=i1(),n=t0().castOption,i=m5(),s=12,h=5,c=2,m=10,p=5;G.exports=function(A,M,g){var b=M._fullLayout;g||(g=b.legend);var d=g.itemsizing==="constant",u=g.itemwidth,y=(u+i.itemGap*2)/2,f=E(y,0),R=function(V,Y,ee,q){var oe;if(V+1)oe=V;else if(Y&&Y.width>0)oe=Y.width;else return 0;return d?q:Math.min(oe,ee)};A.each(function(V){var Y=v.select(this),ee=S.ensureSingle(Y,"g","layers");ee.style("opacity",V[0].trace.opacity);var q=g.indentation,oe=g.valign,ae=V[0].lineHeight,j=V[0].height;if(oe==="middle"&&q===0||!ae||!j)ee.attr("transform",null);else{var Q={top:1,bottom:-1}[oe],re=Q*(.5*(ae-j+3))||0,ce=g.indentation;ee.attr("transform",E(ce,re))}var be=ee.selectAll("g.legendfill").data([V]);be.enter().append("g").classed("legendfill",!0);var Ae=ee.selectAll("g.legendlines").data([V]);Ae.enter().append("g").classed("legendlines",!0);var De=ee.selectAll("g.legendsymbols").data([V]);De.enter().append("g").classed("legendsymbols",!0),De.selectAll("g.legendpoints").data([V]).enter().append("g").classed("legendpoints",!0)}).each(fe).each(F).each(O).each(N).each(U).each(se).each($).each(L).each(z).each(B).each(X);function L(V){var Y=l(V),ee=Y.showFill,q=Y.showLine,oe=Y.showGradientLine,ae=Y.showGradientFill,j=Y.anyFill,Q=Y.anyLine,re=V[0],ce=re.trace,be,Ae,De=r(ce),ze=De.colorscale,Ze=De.reversescale,at=function(Oe){if(Oe.size())if(ee)e.fillGroupStyle(Oe,M,!0);else{var tt="legendfill-"+ce.uid;e.gradient(Oe,M,tt,T(Ze),ze,"fill")}},nt=function(Oe){if(Oe.size()){var tt="legendline-"+ce.uid;e.lineGroupStyle(Oe),e.gradient(Oe,M,tt,T(Ze),ze,"stroke")}},rt=o.hasMarkers(ce)||!j?"M5,0":Q?"M5,-2":"M5,-3",st=v.select(this),Me=st.select(".legendfill").selectAll("path").data(ee||ae?[V]:[]);if(Me.enter().append("path").classed("js-fill",!0),Me.exit().remove(),Me.attr("d",rt+"h"+u+"v6h-"+u+"z").call(at),q||oe){var ye=R(void 0,ce.line,m,h);Ae=S.minExtend(ce,{line:{width:ye}}),be=[S.minExtend(re,{trace:Ae})]}var he=st.select(".legendlines").selectAll("path").data(q||oe?[be]:[]);he.enter().append("path").classed("js-line",!0),he.exit().remove(),he.attr("d",rt+(oe?"l"+u+",0.0001":"h"+u)).call(q?e.lineGroupStyle:nt)}function z(V){var Y=l(V),ee=Y.anyFill,q=Y.anyLine,oe=Y.showLine,ae=Y.showMarker,j=V[0],Q=j.trace,re=!ae&&!q&&!ee&&o.hasText(Q),ce,be;function Ae(Me,ye,he,Oe){var tt=S.nestedProperty(Q,Me).get(),ot=S.isArrayOrTypedArray(tt)&&ye?ye(tt):tt;if(d&&ot&&Oe!==void 0&&(ot=Oe),he){if(ot<he[0])return he[0];if(ot>he[1])return he[1]}return ot}function De(Me){return j._distinct&&j.index&&Me[j.index]?Me[j.index]:Me[0]}if(ae||re||oe){var ze={},Ze={};if(ae){ze.mc=Ae("marker.color",De),ze.mx=Ae("marker.symbol",De),ze.mo=Ae("marker.opacity",S.mean,[.2,1]),ze.mlc=Ae("marker.line.color",De),ze.mlw=Ae("marker.line.width",S.mean,[0,5],c),ze.mld=Q._isShape?"solid":Ae("marker.line.dash",De),Ze.marker={sizeref:1,sizemin:1,sizemode:"diameter"};var at=Ae("marker.size",S.mean,[2,16],s);ze.ms=at,Ze.marker.size=at}oe&&(Ze.line={width:Ae("line.width",De,[0,10],h)}),re&&(ze.tx="Aa",ze.tp=Ae("textposition",De),ze.ts=10,ze.tc=Ae("textfont.color",De),ze.tf=Ae("textfont.family",De),ze.tw=Ae("textfont.weight",De),ze.ty=Ae("textfont.style",De),ze.tv=Ae("textfont.variant",De),ze.tC=Ae("textfont.textcase",De),ze.tE=Ae("textfont.lineposition",De),ze.tS=Ae("textfont.shadow",De)),ce=[S.minExtend(j,ze)],be=S.minExtend(Q,Ze),be.selectedpoints=null,be.texttemplate=null}var nt=v.select(this).select("g.legendpoints"),rt=nt.selectAll("path.scatterpts").data(ae?ce:[]);rt.enter().insert("path",":first-child").classed("scatterpts",!0).attr("transform",f),rt.exit().remove(),rt.call(e.pointStyle,be,M),ae&&(ce[0].mrc=3);var st=nt.selectAll("g.pointtext").data(re?ce:[]);st.enter().append("g").classed("pointtext",!0).append("text").attr("transform",f),st.exit().remove(),st.selectAll("text").call(e.textPointStyle,be,M)}function F(V){var Y=V[0].trace,ee=Y.type==="waterfall";if(V[0]._distinct&&ee){var q=V[0].trace[V[0].dir].marker;return V[0].mc=q.color,V[0].mlw=q.line.width,V[0].mlc=q.line.color,P(V,this,"waterfall")}var oe=[];Y.visible&&ee&&(oe=V[0].hasTotals?[["increasing","M-6,-6V6H0Z"],["totals","M6,6H0L-6,-6H-0Z"],["decreasing","M6,6V-6H0Z"]]:[["increasing","M-6,-6V6H6Z"],["decreasing","M6,6V-6H-6Z"]]);var ae=v.select(this).select("g.legendpoints").selectAll("path.legendwaterfall").data(oe);ae.enter().append("path").classed("legendwaterfall",!0).attr("transform",f).style("stroke-miterlimit",1),ae.exit().remove(),ae.each(function(j){var Q=v.select(this),re=Y[j[0]].marker,ce=R(void 0,re.line,p,c);Q.attr("d",j[1]).style("stroke-width",ce+"px").call(t.fill,re.color),ce&&Q.call(t.stroke,re.line.color)})}function N(V){P(V,this)}function O(V){P(V,this,"funnel")}function P(V,Y,ee){var q=V[0].trace,oe=q.marker||{},ae=oe.line||{},j=oe.cornerradius?"M6,3a3,3,0,0,1-3,3H-3a3,3,0,0,1-3-3V-3a3,3,0,0,1,3-3H3a3,3,0,0,1,3,3Z":"M6,6H-6V-6H6Z",Q=ee?q.visible&&q.type===ee:x.traceIs(q,"bar"),re=v.select(Y).select("g.legendpoints").selectAll("path.legend"+ee).data(Q?[V]:[]);re.enter().append("path").classed("legend"+ee,!0).attr("d",j).attr("transform",f),re.exit().remove(),re.each(function(ce){var be=v.select(this),Ae=ce[0],De=R(Ae.mlw,oe.line,p,c);be.style("stroke-width",De+"px");var ze=Ae.mcc;if(!g._inHover&&"mc"in Ae){var Ze=r(oe),at=Ze.mid;at===void 0&&(at=(Ze.max+Ze.min)/2),ze=e.tryColorscale(oe,"")(at)}var nt=ze||Ae.mc||oe.color,rt=oe.pattern,st=e.getPatternAttr,Me=rt&&(st(rt.shape,0,"")||st(rt.path,0,""));if(Me){var ye=st(rt.bgcolor,0,null),he=st(rt.fgcolor,0,null),Oe=rt.fgopacity,tt=_(rt.size,8,10),ot=_(rt.solidity,.5,1),Qe="legend-"+q.uid;be.call(e.pattern,"legend",M,Qe,Me,tt,ot,ze,rt.fillmode,ye,he,Oe)}else be.call(t.fill,nt);De&&t.stroke(be,Ae.mlc||ae.color)})}function U(V){var Y=V[0].trace,ee=v.select(this).select("g.legendpoints").selectAll("path.legendbox").data(Y.visible&&x.traceIs(Y,"box-violin")?[V]:[]);ee.enter().append("path").classed("legendbox",!0).attr("d","M6,6H-6V-6H6Z").attr("transform",f),ee.exit().remove(),ee.each(function(){var q=v.select(this);if((Y.boxpoints==="all"||Y.points==="all")&&t.opacity(Y.fillcolor)===0&&t.opacity((Y.line||{}).color)===0){var oe=S.minExtend(Y,{marker:{size:d?s:S.constrain(Y.marker.size,2,16),sizeref:1,sizemin:1,sizemode:"diameter"}});ee.call(e.pointStyle,oe,M)}else{var ae=R(void 0,Y.line,p,c);q.style("stroke-width",ae+"px").call(t.fill,Y.fillcolor),ae&&t.stroke(q,Y.line.color)}})}function B(V){var Y=V[0].trace,ee=v.select(this).select("g.legendpoints").selectAll("path.legendcandle").data(Y.visible&&Y.type==="candlestick"?[V,V]:[]);ee.enter().append("path").classed("legendcandle",!0).attr("d",function(q,oe){return oe?"M-15,0H-8M-8,6V-6H8Z":"M15,0H8M8,-6V6H-8Z"}).attr("transform",f).style("stroke-miterlimit",1),ee.exit().remove(),ee.each(function(q,oe){var ae=v.select(this),j=Y[oe?"increasing":"decreasing"],Q=R(void 0,j.line,p,c);ae.style("stroke-width",Q+"px").call(t.fill,j.fillcolor),Q&&t.stroke(ae,j.line.color)})}function X(V){var Y=V[0].trace,ee=v.select(this).select("g.legendpoints").selectAll("path.legendohlc").data(Y.visible&&Y.type==="ohlc"?[V,V]:[]);ee.enter().append("path").classed("legendohlc",!0).attr("d",function(q,oe){return oe?"M-15,0H0M-8,-6V0":"M15,0H0M8,6V0"}).attr("transform",f).style("stroke-miterlimit",1),ee.exit().remove(),ee.each(function(q,oe){var ae=v.select(this),j=Y[oe?"increasing":"decreasing"],Q=R(void 0,j.line,p,c);ae.style("fill","none").call(e.dashLine,j.line.dash,Q),Q&&t.stroke(ae,j.line.color)})}function $(V){le(V,this,"pie")}function se(V){le(V,this,"funnelarea")}function le(V,Y,ee){var q=V[0],oe=q.trace,ae=ee?oe.visible&&oe.type===ee:x.traceIs(oe,ee),j=v.select(Y).select("g.legendpoints").selectAll("path.legend"+ee).data(ae?[V]:[]);if(j.enter().append("path").classed("legend"+ee,!0).attr("d","M6,6H-6V-6H6Z").attr("transform",f),j.exit().remove(),j.size()){var Q=oe.marker||{},re=R(n(Q.line.width,q.pts),Q.line,p,c),ce="pieLike",be=S.minExtend(oe,{marker:{line:{width:re}}},ce),Ae=S.minExtend(q,{trace:be},ce);a(j,Ae,be,M)}}function fe(V){var Y=V[0].trace,ee,q=[];if(Y.visible)switch(Y.type){case"histogram2d":case"heatmap":q=[["M-15,-2V4H15V-2Z"]],ee=!0;break;case"choropleth":case"choroplethmapbox":case"choroplethmap":q=[["M-6,-6V6H6V-6Z"]],ee=!0;break;case"densitymapbox":case"densitymap":q=[["M-6,0 a6,6 0 1,0 12,0 a 6,6 0 1,0 -12,0"]],ee="radial";break;case"cone":q=[["M-6,2 A2,2 0 0,0 -6,6 V6L6,4Z"],["M-6,-6 A2,2 0 0,0 -6,-2 L6,-4Z"],["M-6,-2 A2,2 0 0,0 -6,2 L6,0Z"]],ee=!1;break;case"streamtube":q=[["M-6,2 A2,2 0 0,0 -6,6 H6 A2,2 0 0,1 6,2 Z"],["M-6,-6 A2,2 0 0,0 -6,-2 H6 A2,2 0 0,1 6,-6 Z"],["M-6,-2 A2,2 0 0,0 -6,2 H6 A2,2 0 0,1 6,-2 Z"]],ee=!1;break;case"surface":q=[["M-6,-6 A2,3 0 0,0 -6,0 H6 A2,3 0 0,1 6,-6 Z"],["M-6,1 A2,3 0 0,1 -6,6 H6 A2,3 0 0,0 6,0 Z"]],ee=!0;break;case"mesh3d":q=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],ee=!1;break;case"volume":q=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],ee=!0;break;case"isosurface":q=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6 A12,24 0 0,0 6,-6 L0,6Z"]],ee=!1;break}var oe=v.select(this).select("g.legendpoints").selectAll("path.legend3dandfriends").data(q);oe.enter().append("path").classed("legend3dandfriends",!0).attr("transform",f).style("stroke-miterlimit",1),oe.exit().remove(),oe.each(function(ae,j){var Q=v.select(this),re=r(Y),ce=re.colorscale,be=re.reversescale,Ae=function(at){if(at.size()){var nt="legendfill-"+Y.uid;e.gradient(at,M,nt,T(be,ee==="radial"),ce,"fill")}},De;if(ce){if(!ee){var Ze=ce.length;De=j===0?ce[be?Ze-1:0][1]:j===1?ce[be?0:Ze-1][1]:ce[Math.floor((Ze-1)/2)][1]}}else{var ze=Y.vertexcolor||Y.facecolor||Y.color;De=S.isArrayOrTypedArray(ze)?ze[j]||ze[0]:ze}Q.attr("d",ae[0]),De?Q.call(t.fill,De):Q.call(Ae)})}};function T(w,A){var M=A?"radial":"horizontal";return M+(w?"":"reversed")}function l(w){var A=w[0].trace,M=A.contours,g=o.hasLines(A),b=o.hasMarkers(A),d=A.visible&&A.fill&&A.fill!=="none",u=!1,y=!1;if(M){var f=M.coloring;f==="lines"?u=!0:g=f==="none"||f==="heatmap"||M.showlines,M.type==="constraint"?d=M._operation!=="=":(f==="fill"||f==="heatmap")&&(y=!0)}return{showMarker:b,showLine:g,showFill:d,showGradientLine:u,showGradientFill:y,anyLine:g||u,anyFill:d||y}}function _(w,A,M){return w&&S.isArrayOrTypedArray(w)?A:w>M?M:w}}}),y5=Xe({"src/components/legend/draw.js"(Z,G){"use strict";var v=Hn(),x=sa(),S=bc(),E=so(),e=Qy(),t=Ap(),r=es(),o=$n(),a=ou(),n=v5().handleItemClick,i=v5().handleTitleClick,s=m5(),h=uh(),c=h.LINE_SPACING,m=h.FROM_TL,p=h.FROM_BR,T=dz(),l=g5(),_=E_(),w=1,A=/^legend[0-9]*$/;G.exports=function(X,$){if($)g(X,$);else{var se=X._fullLayout,le=se._legends,fe=se._infolayer.selectAll('[class^="legend"]');fe.each(function(){var q=v.select(this),oe=q.attr("class"),ae=oe.split(" ")[0];ae.match(A)&&le.indexOf(ae)===-1&&q.remove()});for(var V=0;V<le.length;V++){var Y=le[V],ee=X._fullLayout[Y];g(X,ee)}}};function M(B,X,$){if(!(X.title.side!=="top center"&&X.title.side!=="top right")){var se=X.title.font,le=se.size*c,fe=0,V=B.node(),Y=r.bBox(V).width;X.title.side==="top center"?fe=.5*(X._width-2*$-2*s.titlePad-Y):X.title.side==="top right"&&(fe=X._width-2*$-2*s.titlePad-Y),a.positionText(B,$+s.titlePad+fe,$+le)}}function g(B,X){var $=X||{},se=B._fullLayout,le=_.getId($),fe,V,Y=$._inHover;if(Y?(V=$.layer,fe="hover"):(V=se._infolayer,fe=le),!!V){fe+=se._uid,B._legendMouseDownTime||(B._legendMouseDownTime=0);var ee;if(Y){if(!$.entries)return;ee=T($.entries,$)}else{for(var q=(B.calcdata||[]).slice(),oe=se.shapes,ae=0;ae<oe.length;ae++){var j=oe[ae];if(j.showlegend){var Q={_isShape:!0,_fullInput:j,index:j._index,name:j.name||j.label.text||"shape "+j._index,legend:j.legend,legendgroup:j.legendgroup,legendgrouptitle:j.legendgrouptitle,legendrank:j.legendrank,legendwidth:j.legendwidth,showlegend:j.showlegend,visible:j.visible,opacity:j.opacity,mode:j.type==="line"?"lines":"markers",line:j.line,marker:{line:j.line,color:j.fillcolor,size:12,symbol:j.type==="rect"?"square":j.type==="circle"?"circle":"hexagon2"}};q.push([{trace:Q}])}}ee=se.showlegend&&T(q,$,se._legends.length>1)}var re=se.hiddenlabels||[];if(!Y&&(!se.showlegend||!ee.length))return V.selectAll("."+le).remove(),se._topdefs.select("#"+fe).remove(),S.autoMargin(B,le);var ce=x.ensureSingle(V,"g",le,function(st){Y||st.attr("pointer-events","all")}),be=x.ensureSingleById(se._topdefs,"clipPath",fe,function(st){st.append("rect")}),Ae=x.ensureSingle(ce,"rect","bg",function(st){st.attr("shape-rendering","crispEdges")});Ae.call(o.stroke,$.bordercolor).call(o.fill,$.bgcolor).style("stroke-width",$.borderwidth+"px");var De=x.ensureSingle(ce,"g","scrollbox"),ze=$.title;$._titleWidth=0,$._titleHeight=0;var Ze;ze.text?(Ze=x.ensureSingle(De,"text",le+"titletext"),Ze.attr("text-anchor","start").call(r.font,ze.font).text(ze.text),L(Ze,De,B,$,w),!Y&&($.titleclick||$.titledoubleclick)&&R(De,B,$,le)):(De.selectAll("."+le+"titletext").remove(),De.selectAll("."+le+"titletoggle").remove());var at=x.ensureSingle(ce,"rect","scrollbar",function(st){st.attr(s.scrollBarEnterAttrs).call(o.fill,s.scrollBarColor)}),nt=De.selectAll("g.groups").data(ee);nt.enter().append("g").attr("class","groups"),nt.exit().remove();var rt=nt.selectAll("g.traces").data(x.identity);rt.enter().append("g").attr("class","traces"),rt.exit().remove(),rt.style("opacity",function(st){let Me=st[0],ye=Me.trace;if(Me.groupTitle){let he=ye.legendgroup,Oe=(se.shapes||[]).filter(function(ot){return ot.showlegend});return B._fullData.concat(Oe).some(function(ot){return ot.legendgroup===he&&(ot.legend||"legend")===le&&ot.visible===!0})?1:.5}return E.traceIs(ye,"pie-like")?re.indexOf(st[0].label)!==-1?.5:1:ye.visible==="legendonly"?.5:1}).each(function(){v.select(this).call(u,B,$)}).call(l,B,$).each(function(st){Y||st[0].groupTitle&&$.groupclick==="toggleitem"||v.select(this).call(f,B,le)}),x.syncOrAsync([S.previousPromises,function(){return N(B,nt,rt,$,De)},function(){var st=se._size,Me=$.borderwidth,ye=$.xref==="paper",he=$.yref==="paper";if(ze.text){let ct=(se.shapes||[]).filter(function(Ct){return Ct.showlegend}),_t=B._fullData.concat(ct).some(function(Ct){let ir=Ct.legend||"legend";var rr=Array.isArray(ir)?ir.includes(le):ir===le;return rr&&Ct.visible===!0});Ze.style("opacity",_t?1:.5)}if(!Y){var Oe,tt;ye?Oe=st.l+st.w*$.x-m[P($)]*$._width:Oe=se.width*$.x-m[P($)]*$._width,he?tt=st.t+st.h*(1-$.y)-m[U($)]*$._effHeight:tt=se.height*(1-$.y)-m[U($)]*$._effHeight;var ot=O(B,le,Oe,tt);if(ot)return;if(se.margin.autoexpand){var Qe=Oe,Pt=tt;Oe=ye?x.constrain(Oe,0,se.width-$._width):Qe,tt=he?x.constrain(tt,0,se.height-$._effHeight):Pt,Oe!==Qe&&x.log("Constrain "+le+".x to make legend fit inside graph"),tt!==Pt&&x.log("Constrain "+le+".y to make legend fit inside graph")}r.setTranslate(ce,Oe,tt)}if(at.on(".drag",null),ce.on("wheel",null),Y||$._height<=$._maxHeight||B._context.staticPlot){var It=$._effHeight;Y&&(It=$._height),Ae.attr({width:$._width-Me,height:It-Me,x:Me/2,y:Me/2}),r.setTranslate(De,0,0),be.select("rect").attr({width:$._width-2*Me,height:It-2*Me,x:Me,y:Me}),r.setClipUrl(De,fe,B),r.setRect(at,0,0,0,0),delete $._scrollY}else{var qt=Math.max(s.scrollBarMinHeight,$._effHeight*$._effHeight/$._height),Wt=$._effHeight-qt-2*s.scrollBarMargin,kr=$._height-$._effHeight,mr=Wt/kr,qr=Math.min($._scrollY||0,kr);Ae.attr({width:$._width-2*Me+s.scrollBarWidth+s.scrollBarMargin,height:$._effHeight-Me,x:Me/2,y:Me/2}),be.select("rect").attr({width:$._width-2*Me+s.scrollBarWidth+s.scrollBarMargin,height:$._effHeight-2*Me,x:Me,y:Me+qr}),r.setClipUrl(De,fe,B),Ve(qr,qt,mr),ce.on("wheel",function(){qr=x.constrain($._scrollY+v.event.deltaY/kr*Wt,0,kr),Ve(qr,qt,mr),qr!==0&&qr!==kr&&v.event.preventDefault()});var Sr,Rr,wt,Ne=function(ct,_t,Ct){var ir=(Ct-_t)/mr+ct;return x.constrain(ir,0,kr)},Ke=function(ct,_t,Ct){var ir=(_t-Ct)/mr+ct;return x.constrain(ir,0,kr)},Te=v.behavior.drag().on("dragstart",function(){var ct=v.event.sourceEvent;ct.type==="touchstart"?Sr=ct.changedTouches[0].clientY:Sr=ct.clientY,wt=qr}).on("drag",function(){var ct=v.event.sourceEvent;ct.buttons===2||ct.ctrlKey||(ct.type==="touchmove"?Rr=ct.changedTouches[0].clientY:Rr=ct.clientY,qr=Ne(wt,Sr,Rr),Ve(qr,qt,mr))});at.call(Te);var Ie=v.behavior.drag().on("dragstart",function(){var ct=v.event.sourceEvent;ct.type==="touchstart"&&(Sr=ct.changedTouches[0].clientY,wt=qr)}).on("drag",function(){var ct=v.event.sourceEvent;ct.type==="touchmove"&&(Rr=ct.changedTouches[0].clientY,qr=Ke(wt,Sr,Rr),Ve(qr,qt,mr))});De.call(Ie)}function Ve(ct,_t,Ct){$._scrollY=B._fullLayout[le]._scrollY=ct,r.setTranslate(De,0,-ct),r.setRect(at,$._width,s.scrollBarMargin+ct*Ct,s.scrollBarWidth,_t),be.select("rect").attr("y",Me+ct)}if(B._context.edits.legendPosition){var Ce,Ee,Pe,ft;ce.classed("cursor-move",!0),t.init({element:ce.node(),gd:B,prepFn:function(ct){if(ct.target!==at.node()){var _t=r.getTranslate(ce);Pe=_t.x,ft=_t.y}},moveFn:function(ct,_t){if(Pe!==void 0&&ft!==void 0){var Ct=Pe+ct,ir=ft+_t;r.setTranslate(ce,Ct,ir),Ce=t.align(Ct,$._width,st.l,st.l+st.w,$.xanchor),Ee=t.align(ir+$._height,-$._height,st.t+st.h,st.t,$.yanchor)}},doneFn:function(){if(Ce!==void 0&&Ee!==void 0){var ct={};ct[le+".x"]=Ce,ct[le+".y"]=Ee,E.call("_guiRelayout",B,ct)}},clickFn:function(ct,_t){var Ct=V.selectAll("g.traces").filter(function(){var ir=this.getBoundingClientRect();return _t.clientX>=ir.left&&_t.clientX<=ir.right&&_t.clientY>=ir.top&&_t.clientY<=ir.bottom});Ct.size()>0&&d(B,$,Ct,ct,_t)}})}}],B)}}function b(B,X,$){var se=B[0],le=se.width,fe=X.entrywidthmode,V=se.trace.legendwidth||X.entrywidth;return fe==="fraction"?X._maxWidth*V:$+(V||le)}function d(B,X,$,se,le){var fe=B._fullLayout,V=$.data()[0][0].trace,Y=X.itemclick,ee=X.itemdoubleclick,q={event:le,node:$.node(),curveNumber:V.index,expandedIndex:V.index,data:B.data,layout:B.layout,frames:B._transitionData._frames,config:B._context,fullData:B._fullData,fullLayout:fe};V._group&&(q.group=V._group),E.traceIs(V,"pie-like")&&(q.label=$.datum()[0].label);var oe=e.triggerHandler(B,"plotly_legendclick",q);if(se===1){if(oe===!1)return;X._clickTimeout=setTimeout(function(){B._fullLayout&&Y&&n($,B,X,Y)},B._context.doubleClickDelay)}else if(se===2){X._clickTimeout&&clearTimeout(X._clickTimeout),B._legendMouseDownTime=0;var ae=e.triggerHandler(B,"plotly_legenddoubleclick",q);ae!==!1&&oe!==!1&&ee&&n($,B,X,ee)}}function u(B,X,$){var se=_.getId($),le=B.data()[0][0],fe=le.trace,V=E.traceIs(fe,"pie-like"),Y=!$._inHover&&X._context.edits.legendText&&!V,ee=$._maxNameLength,q,oe;le.groupTitle?(q=le.groupTitle.text,oe=le.groupTitle.font):(oe=$.font,$.entries?q=le.text:(q=V?le.label:fe.name,fe._meta&&(q=x.templateString(q,fe._meta))));var ae=x.ensureSingle(B,"text",se+"text");ae.attr("text-anchor","start").call(r.font,oe).text(Y?y(q,ee):q);var j=$.indentation+$.itemwidth+s.itemGap*2;a.positionText(ae,j,0),Y?ae.call(a.makeEditable,{gd:X,text:q}).call(L,B,X,$).on("edit",function(Q){this.text(y(Q,ee)).call(L,B,X,$);var re=le.trace._fullInput||{},ce={};return ce.name=Q,re._isShape?E.call("_guiRelayout",X,"shapes["+fe.index+"].name",ce.name):E.call("_guiRestyle",X,ce,fe.index)}):L(ae,B,X,$)}function y(B,X){var $=Math.max(4,X);if(B&&B.trim().length>=$/2)return B;B=B||"";for(var se=$-B.length;se>0;se--)B+=" ";return B}function f(B,X,$){var se=X._context.doubleClickDelay,le,fe=1,V=x.ensureSingle(B,"rect",$+"toggle",function(Y){X._context.staticPlot||Y.style("cursor","pointer").attr("pointer-events","all"),Y.call(o.fill,"rgba(0,0,0,0)")});X._context.staticPlot||(V.on("mousedown",function(){le=new Date().getTime(),le-X._legendMouseDownTime<se?fe+=1:(fe=1,X._legendMouseDownTime=le)}),V.on("mouseup",function(){if(!(X._dragged||X._editing)){var Y=X._fullLayout[$];new Date().getTime()-X._legendMouseDownTime>se&&(fe=Math.max(fe-1,1)),d(X,Y,B,fe,v.event)}}))}function R(B,X,$,se){if(X._fullData.some(function(q){let oe=q.legend||"legend";return(Array.isArray(oe)?oe.includes(se):oe===se)&&E.traceIs(q,"pie-like")}))return;let fe=X._context.doubleClickDelay;var V,Y=1;let ee=x.ensureSingle(B,"rect",se+"titletoggle",function(q){X._context.staticPlot||q.style("cursor","pointer").attr("pointer-events","all"),q.call(o.fill,"rgba(0,0,0,0)")});X._context.staticPlot||(ee.on("mousedown",function(){V=new Date().getTime(),V-X._legendMouseDownTime<fe?Y+=1:(Y=1,X._legendMouseDownTime=V)}),ee.on("mouseup",function(){if(X._dragged||X._editing)return;new Date().getTime()-X._legendMouseDownTime>fe&&(Y=Math.max(Y-1,1));let q={event:v.event,legendId:se,data:X.data,layout:X.layout,fullData:X._fullData,fullLayout:X._fullLayout};if(Y===1&&$.titleclick){if(e.triggerHandler(X,"plotly_legendtitleclick",q)===!1)return;$._titleClickTimeout=setTimeout(function(){X._fullLayout&&i(X,$,$.titleclick)},fe)}else Y===2&&($._titleClickTimeout&&clearTimeout($._titleClickTimeout),X._legendMouseDownTime=0,e.triggerHandler(X,"plotly_legendtitledoubleclick",q)!==!1&&$.titledoubleclick&&i(X,$,$.titledoubleclick))}))}function L(B,X,$,se,le){se._inHover&&B.attr("data-notex",!0),a.convertToTspans(B,$,function(){z(X,$,se,le)})}function z(B,X,$,se){var le=B.data()[0][0],fe=le&&le.trace.showlegend;if(Array.isArray(fe)&&(fe=fe[le.i]!==!1),!$._inHover&&le&&!fe){B.remove();return}var V=B.select("g[class*=math-group]"),Y=V.node(),ee=_.getId($);$||($=X._fullLayout[ee]);var q=$.borderwidth,oe;se===w?oe=$.title.font:le.groupTitle?oe=le.groupTitle.font:oe=$.font;var ae=oe.size*c,j,Q;if(Y){var re=r.bBox(Y);j=re.height,Q=re.width,se===w?r.setTranslate(V,q,q+j*.75):r.setTranslate(V,0,j*.25)}else{var ce="."+ee+(se===w?"title":"")+"text",be=B.select(ce),Ae=a.lineCount(be),De=be.node();if(j=ae*Ae,Q=De?r.bBox(De).width:0,se===w)$.title.side==="left"&&(Q+=s.itemGap*2),a.positionText(be,q+s.titlePad,q+ae);else{var ze=s.itemGap*2+$.indentation+$.itemwidth;le.groupTitle&&(ze=s.itemGap,Q-=$.indentation+$.itemwidth),a.positionText(be,ze,-ae*((Ae-1)/2-.3))}}se===w?($._titleWidth=Q,$._titleHeight=j):(le.lineHeight=ae,le.height=Math.max(j,16)+3,le.width=Q)}function F(B){var X=0,$=0,se=B.title.side;return se&&(se.indexOf("left")!==-1&&(X=B._titleWidth),se.indexOf("top")!==-1&&($=B._titleHeight)),[X,$]}function N(B,X,$,se,le){var fe=B._fullLayout,V=_.getId(se);se||(se=fe[V]);var Y=fe._size,ee=_.isVertical(se),q=_.isGrouped(se),oe=se.entrywidthmode==="fraction",ae=se.borderwidth,j=2*ae,Q=s.itemGap,re=se.indentation+se.itemwidth+Q*2,ce=2*(ae+Q),be=U(se),Ae=se.y<0||se.y===0&&be==="top",De=se.y>1||se.y===1&&be==="bottom",ze=se.tracegroupgap,Ze={};let{orientation:at,yref:nt}=se,{maxheight:rt}=se,st=Ae||De||at!=="v"||nt!=="paper";rt||(rt=st?.5:1);let Me=st?fe.height:Y.h;se._maxHeight=Math.max(rt>1?rt:rt*Me,30);var ye=0;se._width=0,se._height=0;var he=F(se);if(ee)$.each(function(ct){var _t=ct[0].height;r.setTranslate(this,ae+he[0],ae+he[1]+se._height+_t/2+Q),se._height+=_t,se._width=Math.max(se._width,ct[0].width)}),ye=re+se._width,se._width+=Q+re+j,se._height+=ce,q&&(X.each(function(ct,_t){r.setTranslate(this,0,_t*se.tracegroupgap)}),se._height+=(se._lgroupsLength-1)*se.tracegroupgap);else{var Oe=P(se),tt=se.x<0||se.x===0&&Oe==="right",ot=se.x>1||se.x===1&&Oe==="left",Qe=De||Ae,Pt=fe.width/2;se._maxWidth=Math.max(tt?Qe&&Oe==="left"?Y.l+Y.w:Pt:ot?Qe&&Oe==="right"?Y.r+Y.w:Pt:Y.w,2*re);var It=0,qt=0;$.each(function(ct){var _t=b(ct,se,re);It=Math.max(It,_t),qt+=_t}),ye=null;var Wt=0;if(q){var kr=0,mr=0,qr=0;X.each(function(){var ct=0,_t=0;v.select(this).selectAll("g.traces").each(function(ir){var rr=b(ir,se,re),er=ir[0].height;r.setTranslate(this,he[0],he[1]+ae+Q+er/2+_t),_t+=er,ct=Math.max(ct,rr),Ze[ir[0].trace.legendgroup]=ct});var Ct=ct+Q;mr>0&&Ct+ae+mr>se._maxWidth?(Wt=Math.max(Wt,mr),mr=0,qr+=kr+ze,kr=_t):kr=Math.max(kr,_t),r.setTranslate(this,mr,qr),mr+=Ct}),se._width=Math.max(Wt,mr)+ae,se._height=qr+kr+ce}else{var Sr=$.size(),Rr=qt+j+(Sr-1)*Q<se._maxWidth,wt=0,Ne=0,Ke=0,Te=0;$.each(function(ct){var _t=ct[0].height,Ct=b(ct,se,re,q),ir=Rr?Ct:It;oe||(ir+=Q),ir+ae+Ne-Q>=se._maxWidth&&(Wt=Math.max(Wt,Te),Ne=0,Ke+=wt,se._height+=wt,wt=0),r.setTranslate(this,he[0]+ae+Ne,he[1]+ae+Ke+_t/2+Q),Te=Ne+Ct+Q,Ne+=ir,wt=Math.max(wt,_t)}),Rr?(se._width=Ne+j,se._height=wt+ce):(se._width=Math.max(Wt,Te)+j,se._height+=wt+ce)}}se._width=Math.ceil(Math.max(se._width+he[0],se._titleWidth+2*(ae+s.titlePad))),se._height=Math.ceil(Math.max(se._height+he[1],se._titleHeight+2*(ae+s.itemGap))),se._effHeight=Math.min(se._height,se._maxHeight);var Ie=B._context.edits,Ve=Ie.legendText||Ie.legendPosition;$.each(function(ct){var _t=v.select(this).select("."+V+"toggle"),Ct=ct[0].height,ir=ct[0].trace.legendgroup,rr=b(ct,se,re);q&&ir!==""&&(rr=Ze[ir]);var er=Ve?re:ye||rr;!ee&&!oe&&(er+=Q/2),r.setRect(_t,0,-Ct/2,er,Ct)});var Ce=le.select("."+V+"titletext");Ce.node()&&M(Ce,se,ae);var Ee=le.select("."+V+"titletoggle");if(Ee.size()&&Ce.node()){var Pe=Ce.attr("x")||0,ft=s.titlePad;r.setRect(Ee,Pe-ft,ae,se._titleWidth+2*ft,se._titleHeight+2*ft)}}function O(B,X,$,se){var le=B._fullLayout,fe=le[X],V=P(fe),Y=U(fe),ee=fe.xref==="paper",q=fe.yref==="paper";B._fullLayout._reservedMargin[X]={};var oe=fe.y<.5?"b":"t",ae=fe.x<.5?"l":"r",j={r:le.width-$,l:$+fe._width,b:le.height-se,t:se+fe._effHeight};if(ee&&q)return S.autoMargin(B,X,{x:fe.x,y:fe.y,l:fe._width*m[V],r:fe._width*p[V],b:fe._effHeight*p[Y],t:fe._effHeight*m[Y]});ee?B._fullLayout._reservedMargin[X][oe]=j[oe]:q||fe.orientation==="v"?B._fullLayout._reservedMargin[X][ae]=j[ae]:B._fullLayout._reservedMargin[X][oe]=j[oe]}function P(B){return x.isRightAnchor(B)?"right":x.isCenterAnchor(B)?"center":"left"}function U(B){return x.isBottomAnchor(B)?"bottom":x.isMiddleAnchor(B)?"middle":"top"}}}),_5=Xe({"src/components/fx/hover.js"(Z){"use strict";var G=Hn(),v=rs(),x=Ch(),S=sa(),E=S.pushUnique,e=S.strTranslate,t=S.strRotate,r=Qy(),o=ou(),a=pz(),n=es(),i=$n(),s=Ap(),h=Go(),c=lh().zindexSeparator,m=so(),p=$p(),T=w_(),l=d5(),_=y5(),w=T.YANGLE,A=Math.PI*w/180,M=1/Math.sin(A),g=Math.cos(A),b=Math.sin(A),d=T.HOVERARROWSIZE,u=T.HOVERTEXTPAD,y={box:!0,ohlc:!0,violin:!0,candlestick:!0},f={scatter:!0,scattergl:!0,splom:!0};function R(j,Q){return j.distance-Q.distance}Z.hover=function(Q,re,ce,be){Q=S.getGraphDiv(Q);var Ae=re.target;S.throttle(Q._fullLayout._uid+T.HOVERID,T.HOVERMINTIME,function(){L(Q,re,ce,be,Ae)})},Z.loneHover=function(Q,re){var ce=!0;Array.isArray(Q)||(ce=!1,Q=[Q]);var be=re.gd,Ae=q(be),De=oe(be),ze=Q.map(function(Oe){var tt=Oe._x0||Oe.x0||Oe.x||0,ot=Oe._x1||Oe.x1||Oe.x||0,Qe=Oe._y0||Oe.y0||Oe.y||0,Pt=Oe._y1||Oe.y1||Oe.y||0,It=Oe.eventData;if(It){var qt=Math.min(tt,ot),Wt=Math.max(tt,ot),kr=Math.min(Qe,Pt),mr=Math.max(Qe,Pt),qr=Oe.trace;if(m.traceIs(qr,"gl3d")){var Sr=be._fullLayout[qr.scene]._scene.container,Rr=Sr.offsetLeft,wt=Sr.offsetTop;qt+=Rr,Wt+=Rr,kr+=wt,mr+=wt}It.bbox={x0:qt+De,x1:Wt+De,y0:kr+Ae,y1:mr+Ae},re.inOut_bbox&&re.inOut_bbox.push(It.bbox)}else It=!1;return{color:Oe.color||i.defaultLine,x0:Oe.x0||Oe.x||0,x1:Oe.x1||Oe.x||0,y0:Oe.y0||Oe.y||0,y1:Oe.y1||Oe.y||0,xLabel:Oe.xLabel,yLabel:Oe.yLabel,zLabel:Oe.zLabel,text:Oe.text,name:Oe.name,idealAlign:Oe.idealAlign,borderColor:Oe.borderColor,fontFamily:Oe.fontFamily,fontSize:Oe.fontSize,fontColor:Oe.fontColor,fontWeight:Oe.fontWeight,fontStyle:Oe.fontStyle,fontVariant:Oe.fontVariant,nameLength:Oe.nameLength,textAlign:Oe.textAlign,trace:Oe.trace||{index:0,hoverinfo:""},xa:{_offset:0},ya:{_offset:0},index:0,hovertemplate:Oe.hovertemplate||!1,hovertemplateLabels:Oe.hovertemplateLabels||!1,eventData:It}}),Ze=!1,at=N(ze,{gd:be,hovermode:"closest",rotateLabels:Ze,bgColor:re.bgColor||i.background,container:G.select(re.container),outerContainer:re.outerContainer||re.container}),nt=at.hoverLabels,rt=5,st=0,Me=0;nt.sort(function(Oe,tt){return Oe.y0-tt.y0}).each(function(Oe,tt){var ot=Oe.y0-Oe.by/2;ot-rt<st?Oe.offset=st-ot+rt:Oe.offset=0,st=ot+Oe.by+Oe.offset,tt===re.anchorIndex&&(Me=Oe.offset)}).each(function(Oe){Oe.offset-=Me});var ye=be._fullLayout._invScaleX,he=be._fullLayout._invScaleY;return X(nt,Ze,ye,he),ce?nt:nt.node()};function L(j,Q,re,ce,be){re||(re="xy"),typeof re=="string"&&(re=re.split(c)[0]);var Ae=Array.isArray(re)?re:[re],De,ze=j._fullLayout,Ze=ze.hoversubplots,at=ze._plots||[],nt=at[re],rt=ze._has("cartesian"),st=Q.hovermode||ze.hovermode,Me=(st||"").charAt(0)==="x",ye=(st||"").charAt(0)==="y",he,Oe;if(rt&&(Me||ye)&&Ze==="axis"){for(var tt=Ae.length,ot=0;ot<tt;ot++)if(De=Ae[ot],at[De]){he=h.getFromId(j,De,"x"),Oe=h.getFromId(j,De,"y");var Qe=(Me?he:Oe)._subplotsWith;if(Qe&&Qe.length)for(var Pt=0;Pt<Qe.length;Pt++)E(Ae,Qe[Pt])}}if(nt&&Ze!=="single"){var It=nt.overlays.map(function(cn){return cn.id});Ae=Ae.concat(It)}for(var qt=Ae.length,Wt=new Array(qt),kr=new Array(qt),mr=!1,qr=0;qr<qt;qr++)if(De=Ae[qr],at[De])mr=!0,Wt[qr]=at[De].xaxis,kr[qr]=at[De].yaxis;else if(ze[De]&&ze[De]._subplot){var Sr=ze[De]._subplot;Wt[qr]=Sr.xaxis,kr[qr]=Sr.yaxis}else{S.warn("Unrecognized subplot: "+De);return}if(st&&!mr&&(st="closest"),["x","y","closest","x unified","y unified"].indexOf(st)===-1||!j.calcdata||j.querySelector(".zoombox")||j._dragging)return s.unhoverRaw(j,Q);var Rr=ze.hoverdistance;Rr===-1&&(Rr=1/0);var wt=ze.spikedistance;wt===-1&&(wt=1/0);var Ne=[],Ke=[],Te,Ie,Ve,Ce,Ee,Pe,ft,ct,_t,Ct,ir,rr,er,Lr={hLinePoint:null,vLinePoint:null},fa=!1;if(Array.isArray(Q))for(st="array",Ve=0;Ve<Q.length;Ve++)Ee=j.calcdata[Q[Ve].curveNumber||0],Ee&&(Pe=Ee[0].trace,Ee[0].trace.hoverinfo!=="skip"&&(Ke.push(Ee),Pe.orientation==="h"&&(fa=!0)));else{var Da=j.calcdata.slice();for(Da.sort(function(cn,lo){var Wo=cn[0].trace.zorder||0,hs=lo[0].trace.zorder||0;return Wo-hs}),Ce=0;Ce<Da.length;Ce++)Ee=Da[Ce],Pe=Ee[0].trace,Pe.hoverinfo!=="skip"&&p.isTraceInSubplots(Pe,Ae)&&(Ke.push(Ee),Pe.orientation==="h"&&(fa=!0));var Ia=!be,qa,Wa;if(Ia)"xpx"in Q?qa=Q.xpx:qa=Wt[0]._length/2,"ypx"in Q?Wa=Q.ypx:Wa=kr[0]._length/2;else{if(r.triggerHandler(j,"plotly_beforehover",Q)===!1)return;var Ca=be.getBoundingClientRect();qa=Q.clientX-Ca.left,Wa=Q.clientY-Ca.top,ze._calcInverseTransform(j);var hi=S.apply3DTransform(ze._invTransform)(qa,Wa);if(qa=hi[0],Wa=hi[1],qa<0||qa>Wt[0]._length||Wa<0||Wa>kr[0]._length)return s.unhoverRaw(j,Q)}if(Q.pointerX=qa+Wt[0]._offset,Q.pointerY=Wa+kr[0]._offset,"xval"in Q?Te=p.flat(Ae,Q.xval):Te=p.p2c(Wt,qa),"yval"in Q?Ie=p.flat(Ae,Q.yval):Ie=p.p2c(kr,Wa),!v(Te[0])||!v(Ie[0]))return S.warn("Fx.hover failed",Q,j),s.unhoverRaw(j,Q)}var wi=1/0;function Kt(cn,lo){for(Ce=0;Ce<Ke.length;Ce++)if(Ee=Ke[Ce],!(!Ee||!Ee[0]||!Ee[0].trace)&&(Pe=Ee[0].trace,!(Pe.visible!==!0||Pe._length===0)&&["carpet","contourcarpet"].indexOf(Pe._module.name)===-1)){if(_t=st,p.isUnifiedHover(_t)&&(_t=_t.charAt(0)),Pe.type==="splom"?(ct=0,ft=Ae[ct]):(ft=p.getSubplot(Pe),ct=Ae.indexOf(ft)),rr={cd:Ee,trace:Pe,xa:Wt[ct],ya:kr[ct],maxHoverDistance:Rr,maxSpikeDistance:wt,index:!1,distance:Math.min(wi,Rr),spikeDistance:1/0,xSpike:void 0,ySpike:void 0,color:i.defaultLine,name:Pe.name,x0:void 0,x1:void 0,y0:void 0,y1:void 0,xLabelVal:void 0,yLabelVal:void 0,zLabelVal:void 0,text:void 0},ze[ft]&&(rr.subplot=ze[ft]._subplot),ze._splomScenes&&ze._splomScenes[Pe.uid]&&(rr.scene=ze._splomScenes[Pe.uid]),_t==="array"){var Wo=Q[Ce];"pointNumber"in Wo?(rr.index=Wo.pointNumber,_t="closest"):(_t="","xval"in Wo&&(Ct=Wo.xval,_t="x"),"yval"in Wo&&(ir=Wo.yval,_t=_t?"closest":"y"))}else cn!==void 0&&lo!==void 0?(Ct=cn,ir=lo):(Ct=Te[ct],ir=Ie[ct]);if(er=Ne.length,Rr!==0)if(Pe._module&&Pe._module.hoverPoints){var hs=Pe._module.hoverPoints(rr,Ct,ir,_t,{finiteRange:!0,hoverLayer:ze._hoverlayer,hoversubplots:Ze,gd:j});if(hs)for(var Oo,Wn=0;Wn<hs.length;Wn++)Oo=hs[Wn],v(Oo.x0)&&v(Oo.y0)&&Ne.push($(Oo,st))}else S.log("Unrecognized trace type in hover:",Pe);if(st==="closest"&&Ne.length>er&&(Ne.splice(0,er),wi=Ne[0].distance),rt&&wt!==0&&Ne.length===0){rr.distance=wt,rr.index=!1;var No=Pe._module.hoverPoints(rr,Ct,ir,"closest",{hoverLayer:ze._hoverlayer});if(No&&(No=No.filter(function(Xn){return Xn.spikeDistance<=wt})),No&&No.length){var as,Ns=No.filter(function(Xn){return Xn.xa.showspikes&&Xn.xa.spikesnap!=="hovered data"});if(Ns.length){var ss=Ns[0];v(ss.x0)&&v(ss.y0)&&(as=Yt(ss),(!Lr.vLinePoint||Lr.vLinePoint.spikeDistance>as.spikeDistance)&&(Lr.vLinePoint=as))}var uo=No.filter(function(Xn){return Xn.ya.showspikes&&Xn.ya.spikesnap!=="hovered data"});if(uo.length){var jn=uo[0];v(jn.x0)&&v(jn.y0)&&(as=Yt(jn),(!Lr.hLinePoint||Lr.hLinePoint.spikeDistance>as.spikeDistance)&&(Lr.hLinePoint=as))}}}}}Kt();function Ft(cn,lo,Wo){for(var hs=null,Oo=1/0,Wn,No=0;No<cn.length;No++)he&&he._id!==cn[No].xa._id||Oe&&Oe._id!==cn[No].ya._id||(Wn=cn[No].spikeDistance,Wo&&No===0&&(Wn=-1/0),Wn<=Oo&&Wn<=lo&&(hs=cn[No],Oo=Wn));return hs}function Yt(cn){return cn?{xa:cn.xa,ya:cn.ya,x:cn.xSpike!==void 0?cn.xSpike:(cn.x0+cn.x1)/2,y:cn.ySpike!==void 0?cn.ySpike:(cn.y0+cn.y1)/2,distance:cn.distance,spikeDistance:cn.spikeDistance,curveNumber:cn.trace.index,color:cn.color,pointNumber:cn.index}:null}var Jt={fullLayout:ze,container:ze._hoverlayer,event:Q},Fr=j._spikepoints,ta={vLinePoint:Lr.vLinePoint,hLinePoint:Lr.hLinePoint};j._spikepoints=ta;var ra=function(){var cn=Ne.filter(function(Wo){return he&&he._id===Wo.xa._id&&Oe&&Oe._id===Wo.ya._id}),lo=Ne.filter(function(Wo){return!(he&&he._id===Wo.xa._id&&Oe&&Oe._id===Wo.ya._id)});cn.sort(R),lo.sort(R),Ne=cn.concat(lo),Ne=Y(Ne,st)};ra();var ca=st.charAt(0),Ba=(ca==="x"||ca==="y")&&Ne[0]&&f[Ne[0].trace.type];if(rt&&wt!==0&&Ne.length!==0){var $a=Ne.filter(function(cn){return cn.ya.showspikes}),Za=Ft($a,wt,Ba);Lr.hLinePoint=Yt(Za);var ri=Ne.filter(function(cn){return cn.xa.showspikes}),pi=Ft(ri,wt,Ba);Lr.vLinePoint=Yt(pi)}if(Ne.length===0){var Ra=s.unhoverRaw(j,Q);return rt&&(Lr.hLinePoint!==null||Lr.vLinePoint!==null)&&fe(Fr)&&se(j,Lr,Jt),Ra}if(rt&&fe(Fr)&&se(j,Lr,Jt),p.isXYhover(_t)&&Ne[0].length!==0&&Ne[0].trace.type!=="splom"){var tn=Ne[0];y[tn.trace.type]?Ne=Ne.filter(cn=>cn.trace.index===tn.trace.index):Ne=[tn];var on=Ne.length,hn=ee("x",tn,ze),Tt=ee("y",tn,ze);Kt(hn,Tt);var ut=[],Br={},Cr=0,xr=function(cn){var lo=y[cn.trace.type]?z(cn):cn.trace.index;if(!Br[lo])Cr++,Br[lo]=Cr,ut.push(cn);else{var Wo=Br[lo]-1,hs=ut[Wo];Wo>0&&Math.abs(cn.distance)<Math.abs(hs.distance)&&(ut[Wo]=cn)}},Ir;for(Ir=0;Ir<on;Ir++)xr(Ne[Ir]);for(Ir=Ne.length-1;Ir>on-1;Ir--)xr(Ne[Ir]);Ne=ut,ra()}var Ur=j._hoverdata,Hr=[],xt=q(j),Xt=oe(j);for(let cn of Ne){var vr=p.makeEventData(cn,cn.trace,cn.cd);if(cn.hovertemplate!==!1){var Or=!1;cn.cd[cn.index]&&cn.cd[cn.index].ht&&(Or=cn.cd[cn.index].ht),cn.hovertemplate=Or||cn.trace.hovertemplate||!1}if(cn.xa&&cn.ya){var ba=cn.x0+cn.xa._offset,Pa=cn.x1+cn.xa._offset,ya=cn.y0+cn.ya._offset,la=cn.y1+cn.ya._offset,Ta=Math.min(ba,Pa),Ai=Math.max(ba,Pa),ki=Math.min(ya,la),Ki=Math.max(ya,la);vr.bbox={x0:Ta+Xt,x1:Ai+Xt,y0:ki+xt,y1:Ki+xt}}cn.eventData=[vr],Hr.push(vr)}j._hoverdata=Hr;var _n=st==="y"&&(Ke.length>1||Ne.length>1)||st==="closest"&&fa&&Ne.length>1,Rn=i.combine(ze.plot_bgcolor||i.background,ze.paper_bgcolor),En=N(Ne,{gd:j,hovermode:st,rotateLabels:_n,bgColor:Rn,container:ze._hoverlayer,outerContainer:ze._paper.node(),commonLabelOpts:ze.hoverlabel,hoverdistance:ze.hoverdistance}),On=En.hoverLabels;if(p.isUnifiedHover(st)||(P(On,_n,ze,En.commonLabelBoundingBox),X(On,_n,ze._invScaleX,ze._invScaleY)),be&&be.tagName){var no=m.getComponentMethod("annotations","hasClickToShow")(j,Hr);a(G.select(be),no?"pointer":"")}!be||ce||!le(j,Q,Ur)||(Ur&&j.emit("plotly_unhover",{event:Q,points:Ur}),j.emit("plotly_hover",{event:Q,points:j._hoverdata,xaxes:Wt,yaxes:kr,xvals:Te,yvals:Ie}))}function z(j){return[j.trace.index,j.index,j.x0,j.y0,j.name,j.attr,j.xa?j.xa._id:"",j.ya?j.ya._id:""].join(",")}var F=/<extra>([\s\S]*)<\/extra>/;function N(j,Q){var re=Q.gd,ce=re._fullLayout,be=Q.hovermode,Ae=Q.rotateLabels,De=Q.bgColor,ze=Q.container,Ze=Q.outerContainer,at=Q.commonLabelOpts||{};if(j.length===0)return[[]];var nt=Q.fontFamily||T.HOVERFONT,rt=Q.fontSize||T.HOVERFONTSIZE,st=Q.fontWeight||ce.font.weight,Me=Q.fontStyle||ce.font.style,ye=Q.fontVariant||ce.font.variant,he=Q.fontTextcase||ce.font.textcase,Oe=Q.fontLineposition||ce.font.lineposition,tt=Q.fontShadow||ce.font.shadow,ot=j[0],Qe=ot.xa,Pt=ot.ya,It=be.charAt(0),qt=It+"Label",Wt=ot[qt];if(Wt===void 0&&Qe.type==="multicategory")for(var kr=0;kr<j.length&&(Wt=j[kr][qt],Wt===void 0);kr++);var mr=ae(re,Ze),qr=mr.top,Sr=mr.width,Rr=mr.height,wt=Wt!==void 0&&ot.distance<=Q.hoverdistance&&(be==="x"||be==="y");if(wt){var Ne=!0,Ke,Te;for(Ke=0;Ke<j.length;Ke++)if(Ne&&j[Ke].zLabel===void 0&&(Ne=!1),Te=j[Ke].hoverinfo||j[Ke].trace.hoverinfo,Te){var Ie=Array.isArray(Te)?Te:Te.split("+");if(Ie.indexOf("all")===-1&&Ie.indexOf(be)===-1){wt=!1;break}}Ne&&(wt=!1)}var Ve=ze.selectAll("g.axistext").data(wt?[0]:[]);Ve.enter().append("g").classed("axistext",!0),Ve.exit().remove();var Ce={minX:0,maxX:0,minY:0,maxY:0};if(Ve.each(function(){var Ra=G.select(this),tn=S.ensureSingle(Ra,"path","",function(Ki){Ki.style({"stroke-width":"1px"})}),on=S.ensureSingle(Ra,"text","",function(Ki){Ki.attr("data-notex",1)}),hn=at.bgcolor||i.defaultLine,Tt=at.bordercolor||i.contrast(hn),ut=i.contrast(hn),Br=at.font,Cr={weight:Br.weight||st,style:Br.style||Me,variant:Br.variant||ye,textcase:Br.textcase||he,lineposition:Br.lineposition||Oe,shadow:Br.shadow||tt,family:Br.family||nt,size:Br.size||rt,color:Br.color||ut};tn.style({fill:hn,stroke:Tt}),on.text(Wt).call(n.font,Cr).call(o.positionText,0,0).call(o.convertToTspans,re),Ra.attr("transform","");var xr=ae(re,on.node()),Ir,Ur;if(be==="x"){var Hr=Qe.side==="top"?"-":"";on.attr("text-anchor","middle").call(o.positionText,0,Qe.side==="top"?qr-xr.bottom-d-u:qr-xr.top+d+u),Ir=Qe._offset+(ot.x0+ot.x1)/2,Ur=Pt._offset+(Qe.side==="top"?0:Pt._length);var xt=xr.width/2+u,Xt=Ir;Ir<xt?Xt=xt:Ir>ce.width-xt&&(Xt=ce.width-xt),tn.attr("d","M"+(Ir-Xt)+",0L"+(Ir-Xt+d)+","+Hr+d+"H"+xt+"v"+Hr+(u*2+xr.height)+"H"+-xt+"V"+Hr+d+"H"+(Ir-Xt-d)+"Z"),Ir=Xt,Ce.minX=Ir-xt,Ce.maxX=Ir+xt,Qe.side==="top"?(Ce.minY=Ur-(u*2+xr.height),Ce.maxY=Ur-u):(Ce.minY=Ur+u,Ce.maxY=Ur+(u*2+xr.height))}else{var vr,Or,ba;Pt.side==="right"?(vr="start",Or=1,ba="",Ir=Qe._offset+Qe._length):(vr="end",Or=-1,ba="-",Ir=Qe._offset),Ur=Pt._offset+(ot.y0+ot.y1)/2,on.attr("text-anchor",vr),tn.attr("d","M0,0L"+ba+d+","+d+"V"+(u+xr.height/2)+"h"+ba+(u*2+xr.width)+"V-"+(u+xr.height/2)+"H"+ba+d+"V-"+d+"Z"),Ce.minY=Ur-(u+xr.height/2),Ce.maxY=Ur+(u+xr.height/2),Pt.side==="right"?(Ce.minX=Ir+d,Ce.maxX=Ir+d+(u*2+xr.width)):(Ce.minX=Ir-d-(u*2+xr.width),Ce.maxX=Ir-d);var Pa=xr.height/2,ya=qr-xr.top-Pa,la="clip"+ce._uid+"commonlabel"+Pt._id,Ta;if(Ir<xr.width+2*u+d){Ta="M-"+(d+u)+"-"+Pa+"h-"+(xr.width-u)+"V"+Pa+"h"+(xr.width-u)+"Z";var Ai=xr.width-Ir+u;o.positionText(on,Ai,ya),vr==="end"&&on.selectAll("tspan").each(function(){var Ki=G.select(this),_n=n.tester.append("text").text(Ki.text()).call(n.font,Cr),Rn=ae(re,_n.node());Math.round(Rn.width)<Math.round(xr.width)&&Ki.attr("x",Ai-Rn.width),_n.remove()})}else o.positionText(on,Or*(u+d),ya),Ta=null;var ki=ce._topclips.selectAll("#"+la).data(Ta?[0]:[]);ki.enter().append("clipPath").attr("id",la).append("path"),ki.exit().remove(),ki.select("path").attr("d",Ta),n.setClipUrl(on,Ta?la:null,re)}Ra.attr("transform",e(Ir,Ur))}),p.isUnifiedHover(be)){ze.selectAll("g.hovertext").remove();let Ra=j.filter(tn=>tn.hoverinfo!=="none");if(Ra.length===0)return[];var Ee=ce.hoverlabel,Pe=Ee.font,ft=Ra[0],ct=((be==="x unified"?ft.xa:ft.ya).unifiedhovertitle||{}).text,_t=ct?S.hovertemplateString({data:be==="x unified"?[{xa:ft.xa,x:ft.xVal}]:[{ya:ft.ya,y:ft.yVal}],fallback:ft.trace.hovertemplatefallback,locale:ce._d3locale,template:ct}):Wt,Ct={showlegend:!0,legend:{title:{text:_t,font:Pe},font:Pe,bgcolor:Ee.bgcolor,bordercolor:Ee.bordercolor,borderwidth:1,tracegroupgap:7,traceorder:ce.legend?ce.legend.traceorder:void 0,orientation:"v"}},ir={font:Pe};l(Ct,ir,re._fullData);var rr=ir.legend;rr.entries=[];for(var er=0;er<Ra.length;er++){var Lr=Ra[er];if(Lr.hoverinfo!=="none"){var fa=O(Lr,!0,be,ce,Wt),Da=fa[0],Ia=fa[1];Lr.name=Ia,Ia!==""?Lr.text=Ia+" : "+Da:Lr.text=Da;var qa=Lr.cd[Lr.index];qa&&(qa.mc&&(Lr.mc=qa.mc),qa.mcc&&(Lr.mc=qa.mcc),qa.mlc&&(Lr.mlc=qa.mlc),qa.mlcc&&(Lr.mlc=qa.mlcc),qa.mlw&&(Lr.mlw=qa.mlw),qa.mrc&&(Lr.mrc=qa.mrc),qa.dir&&(Lr.dir=qa.dir)),Lr._distinct=!0,rr.entries.push([Lr])}}rr.entries.sort(function(tn,on){return tn[0].trace.index-on[0].trace.index}),rr.layer=ze,rr._inHover=!0,rr._groupTitleFont=Ee.grouptitlefont,_(re,rr);var Wa=ze.select("g.legend"),Ca=ae(re,Wa.node()),hi=Ca.width+2*u,wi=Ca.height+2*u,Kt=Ra[0],Ft=(Kt.x0+Kt.x1)/2,Yt=(Kt.y0+Kt.y1)/2,Jt=!(m.traceIs(Kt.trace,"bar-like")||m.traceIs(Kt.trace,"box-violin")),Fr,ta;It==="y"?Jt?(ta=Yt-u,Fr=Yt+u):(ta=Math.min.apply(null,Ra.map(function(tn){return Math.min(tn.y0,tn.y1)})),Fr=Math.max.apply(null,Ra.map(function(tn){return Math.max(tn.y0,tn.y1)}))):ta=Fr=S.mean(Ra.map(function(tn){return(tn.y0+tn.y1)/2}))-wi/2;var ra,ca;It==="x"?Jt?(ra=Ft+u,ca=Ft-u):(ra=Math.max.apply(null,Ra.map(function(tn){return Math.max(tn.x0,tn.x1)})),ca=Math.min.apply(null,Ra.map(function(tn){return Math.min(tn.x0,tn.x1)}))):ra=ca=S.mean(Ra.map(function(tn){return(tn.x0+tn.x1)/2}))-hi/2;var Ba=Qe._offset,$a=Pt._offset;Fr+=$a,ra+=Ba,ca+=Ba-hi,ta+=$a-wi;var Za,ri;return ra+hi<Sr&&ra>=0?Za=ra:ca+hi<Sr&&ca>=0?Za=ca:Ba+hi<Sr?Za=Ba:ra-Ft<Ft-ca+hi?Za=Sr-hi:Za=0,Za+=u,Fr+wi<Rr&&Fr>=0?ri=Fr:ta+wi<Rr&&ta>=0?ri=ta:$a+wi<Rr?ri=$a:Fr-Yt<Yt-ta+wi?ri=Rr-wi:ri=0,ri+=u,Wa.attr("transform",e(Za-1,ri-1)),Wa}var pi=ze.selectAll("g.hovertext").data(j,function(Ra){return z(Ra)});return pi.enter().append("g").classed("hovertext",!0).each(function(){var Ra=G.select(this);Ra.append("rect").call(i.fill,i.addOpacity(De,.8)),Ra.append("text").classed("name",!0),Ra.append("path").style("stroke-width","1px"),Ra.append("text").classed("nums",!0).call(n.font,{weight:st,style:Me,variant:ye,textcase:he,lineposition:Oe,shadow:tt,family:nt,size:rt})}),pi.exit().remove(),pi.each(function(Ra){var tn=G.select(this).attr("transform",""),on=Ra.color;Array.isArray(on)&&(on=on[Ra.eventData[0].pointNumber]);var hn=Ra.bgcolor||on,Tt=i.combine(i.opacity(hn)?hn:i.defaultLine,De),ut=i.combine(i.opacity(on)?on:i.defaultLine,De),Br=Ra.borderColor||i.contrast(Tt),Cr=O(Ra,wt,be,ce,Wt,tn),xr=Cr[0],Ir=Cr[1],Ur=tn.select("text.nums").call(n.font,{family:Ra.fontFamily||nt,size:Ra.fontSize||rt,color:Ra.fontColor||Br,weight:Ra.fontWeight||st,style:Ra.fontStyle||Me,variant:Ra.fontVariant||ye,textcase:Ra.fontTextcase||he,lineposition:Ra.fontLineposition||Oe,shadow:Ra.fontShadow||tt}).text(xr).attr("data-notex",1).call(o.positionText,0,0).call(o.convertToTspans,re),Hr=tn.select("text.name"),xt=0,Xt=0;if(Ir&&Ir!==xr){Hr.call(n.font,{family:Ra.fontFamily||nt,size:Ra.fontSize||rt,color:ut,weight:Ra.fontWeight||st,style:Ra.fontStyle||Me,variant:Ra.fontVariant||ye,textcase:Ra.fontTextcase||he,lineposition:Ra.fontLineposition||Oe,shadow:Ra.fontShadow||tt}).text(Ir).attr("data-notex",1).call(o.positionText,0,0).call(o.convertToTspans,re);var vr=ae(re,Hr.node());xt=vr.width+2*u,Xt=vr.height+2*u}else Hr.remove(),tn.select("rect").remove();tn.select("path").style({fill:Tt,stroke:Br});var Or=Ra.xa._offset+(Ra.x0+Ra.x1)/2,ba=Ra.ya._offset+(Ra.y0+Ra.y1)/2,Pa=Math.abs(Ra.x1-Ra.x0),ya=Math.abs(Ra.y1-Ra.y0),la=ae(re,Ur.node()),Ta=la.width/ce._invScaleX,Ai=la.height/ce._invScaleY;Ra.ty0=(qr-la.top)/ce._invScaleY,Ra.bx=Ta+2*u,Ra.by=Math.max(Ai+2*u,Xt),Ra.anchor="start",Ra.txwidth=Ta,Ra.tx2width=xt,Ra.offset=0;var ki=(Ta+d+u+xt)*ce._invScaleX,Ki,_n;if(Ae)Ra.pos=Or,Ki=ba+ya/2+ki<=Rr,_n=ba-ya/2-ki>=0,(Ra.idealAlign==="top"||!Ki)&&_n?(ba-=ya/2,Ra.anchor="end"):Ki?(ba+=ya/2,Ra.anchor="start"):Ra.anchor="middle",Ra.crossPos=ba;else{if(Ra.pos=ba,Ki=Or+Pa/2+ki<=Sr,_n=Or-Pa/2-ki>=0,(Ra.idealAlign==="left"||!Ki)&&_n)Or-=Pa/2,Ra.anchor="end";else if(Ki)Or+=Pa/2,Ra.anchor="start";else{Ra.anchor="middle";var Rn=ki/2,En=Or+Rn-Sr,On=Or-Rn;En>0&&(Or-=En),On<0&&(Or+=-On)}Ra.crossPos=Or}Ur.attr("text-anchor",Ra.anchor),xt&&Hr.attr("text-anchor",Ra.anchor),tn.attr("transform",e(Or,ba)+(Ae?t(w):""))}),{hoverLabels:pi,commonLabelBoundingBox:Ce}}function O(j,Q,re,ce,be,Ae){var De,ze,Ze="",at="";j.nameOverride!==void 0&&(j.name=j.nameOverride),j.name&&(j.trace._meta&&(j.name=S.templateString(j.name,j.trace._meta)),Ze=V(j.name,j.nameLength));var nt=re.charAt(0),rt=nt==="x"?"y":"x";j.zLabel!==void 0?(j.xLabel!==void 0&&(at+="x: "+j.xLabel+"<br>"),j.yLabel!==void 0&&(at+="y: "+j.yLabel+"<br>"),j.trace.type!=="choropleth"&&j.trace.type!=="choroplethmapbox"&&j.trace.type!=="choroplethmap"&&(at+=(at?"z: ":"")+j.zLabel)):Q&&j[nt+"Label"]===be?at=j[rt+"Label"]||"":j.xLabel===void 0?j.yLabel!==void 0&&j.trace.type!=="scattercarpet"&&(at=j.yLabel):j.yLabel===void 0?at=j.xLabel:at="("+j.xLabel+", "+j.yLabel+")",(j.text||j.text===0)&&!Array.isArray(j.text)&&(at+=(at?"<br>":"")+j.text),j.extraText!==void 0&&(at+=(at?"<br>":"")+j.extraText),Ae&&at===""&&!j.hovertemplate&&(Ze===""&&Ae.remove(),at=Ze),(ze=(De=j.trace)==null?void 0:De.hoverlabel)!=null&&ze.split&&(j.hovertemplate="");let{hovertemplate:st=!1}=j;if(st){let Me=j.hovertemplateLabels||j;j[nt+"Label"]!==be&&(Me[nt+"other"]=Me[nt+"Val"],Me[nt+"otherLabel"]=Me[nt+"Label"]),at=S.hovertemplateString({data:[j.eventData[0]||{},j.trace._meta],fallback:j.trace.hovertemplatefallback,labels:Me,locale:ce._d3locale,template:st}),at=at.replace(F,(ye,he)=>(Ze=V(he,j.nameLength),""))}return[at,Ze]}function P(j,Q,re,ce){var be=Q?"xa":"ya",Ae=Q?"ya":"xa",De=0,ze=1,Ze=j.size(),at=new Array(Ze),nt=0,rt=ce.minX,st=ce.maxX,Me=ce.minY,ye=ce.maxY,he=function(Te){return Te*re._invScaleX},Oe=function(Te){return Te*re._invScaleY};j.each(function(Te){var Ie=Te[be],Ve=Te[Ae],Ce=Ie._id.charAt(0)==="x",Ee=Ie.range;nt===0&&Ee&&Ee[0]>Ee[1]!==Ce&&(ze=-1);var Pe=0,ft=Ce?re.width:re.height;if(re.hovermode==="x"||re.hovermode==="y"){var ct=U(Te,Q),_t=Te.anchor,Ct=_t==="end"?-1:1,ir,rr;if(_t==="middle")ir=Te.crossPos+(Ce?Oe(ct.y-Te.by/2):he(Te.bx/2+Te.tx2width/2)),rr=ir+(Ce?Oe(Te.by):he(Te.bx));else if(Ce)ir=Te.crossPos+Oe(d+ct.y)-Oe(Te.by/2-d),rr=ir+Oe(Te.by);else{var er=he(Ct*d+ct.x),Lr=er+he(Ct*Te.bx);ir=Te.crossPos+Math.min(er,Lr),rr=Te.crossPos+Math.max(er,Lr)}Ce?Me!==void 0&&ye!==void 0&&Math.min(rr,ye)-Math.max(ir,Me)>1&&(Ve.side==="left"?(Pe=Ve._mainLinePosition,ft=re.width):ft=Ve._mainLinePosition):rt!==void 0&&st!==void 0&&Math.min(rr,st)-Math.max(ir,rt)>1&&(Ve.side==="top"?(Pe=Ve._mainLinePosition,ft=re.height):ft=Ve._mainLinePosition)}at[nt++]=[{datum:Te,traceIndex:Te.trace.index,dp:0,pos:Te.pos,posref:Te.posref,size:Te.by*(Ce?M:1)/2,pmin:Pe,pmax:ft}]}),at.sort(function(Te,Ie){return Te[0].posref-Ie[0].posref||ze*(Ie[0].traceIndex-Te[0].traceIndex)});var tt,ot,Qe,Pt,It,qt,Wt;function kr(Te){var Ie=Te[0],Ve=Te[Te.length-1];if(ot=Ie.pmin-Ie.pos-Ie.dp+Ie.size,Qe=Ve.pos+Ve.dp+Ve.size-Ie.pmax,ot>.01){for(It=Te.length-1;It>=0;It--)Te[It].dp+=ot;tt=!1}if(!(Qe<.01)){if(ot<-.01){for(It=Te.length-1;It>=0;It--)Te[It].dp-=Qe;tt=!1}if(tt){var Ce=0;for(Pt=0;Pt<Te.length;Pt++)qt=Te[Pt],qt.pos+qt.dp+qt.size>Ie.pmax&&Ce++;for(Pt=Te.length-1;Pt>=0&&!(Ce<=0);Pt--)qt=Te[Pt],qt.pos>Ie.pmax-1&&(qt.del=!0,Ce--);for(Pt=0;Pt<Te.length&&!(Ce<=0);Pt++)if(qt=Te[Pt],qt.pos<Ie.pmin+1)for(qt.del=!0,Ce--,Qe=qt.size*2,It=Te.length-1;It>=0;It--)Te[It].dp-=Qe;for(Pt=Te.length-1;Pt>=0&&!(Ce<=0);Pt--)qt=Te[Pt],qt.pos+qt.dp+qt.size>Ie.pmax&&(qt.del=!0,Ce--)}}}for(;!tt&&De<=Ze;){for(De++,tt=!0,Pt=0;Pt<at.length-1;){var mr=at[Pt],qr=at[Pt+1],Sr=mr[mr.length-1],Rr=qr[0];if(ot=Sr.pos+Sr.dp+Sr.size-Rr.pos-Rr.dp+Rr.size,ot>.01){for(It=qr.length-1;It>=0;It--)qr[It].dp+=ot;for(mr.push.apply(mr,qr),at.splice(Pt+1,1),Wt=0,It=mr.length-1;It>=0;It--)Wt+=mr[It].dp;for(Qe=Wt/mr.length,It=mr.length-1;It>=0;It--)mr[It].dp-=Qe;tt=!1}else Pt++}at.forEach(kr)}for(Pt=at.length-1;Pt>=0;Pt--){var wt=at[Pt];for(It=wt.length-1;It>=0;It--){var Ne=wt[It],Ke=Ne.datum;Ke.offset=Ne.dp,Ke.del=Ne.del}}}function U(j,Q){var re=0,ce=j.offset;return Q&&(ce*=-b,re=j.offset*g),{x:re,y:ce}}function B(j){var Q={start:1,end:-1,middle:0}[j.anchor],re=Q*(d+u),ce=re+Q*(j.txwidth+u),be=j.anchor==="middle";return be&&(re-=j.tx2width/2,ce+=j.txwidth/2+u),{alignShift:Q,textShiftX:re,text2ShiftX:ce}}function X(j,Q,re,ce){var be=function(De){return De*re},Ae=function(De){return De*ce};j.each(function(De){var ze=G.select(this);if(De.del)return ze.remove();var Ze=ze.select("text.nums"),at=De.anchor,nt=at==="end"?-1:1,rt=B(De),st=U(De,Q),Me=st.x,ye=st.y,he=at==="middle",Oe="hoverlabel"in De.trace?De.trace.hoverlabel.showarrow:!0,tt;he?tt="M-"+be(De.bx/2+De.tx2width/2)+","+Ae(ye-De.by/2)+"h"+be(De.bx)+"v"+Ae(De.by)+"h-"+be(De.bx)+"Z":Oe?tt="M0,0L"+be(nt*d+Me)+","+Ae(d+ye)+"v"+Ae(De.by/2-d)+"h"+be(nt*De.bx)+"v-"+Ae(De.by)+"H"+be(nt*d+Me)+"V"+Ae(ye-d)+"Z":tt="M"+be(nt*d+Me)+","+Ae(ye-De.by/2)+"h"+be(nt*De.bx)+"v"+Ae(De.by)+"h"+be(-nt*De.bx)+"Z",ze.select("path").attr("d",tt);var ot=Me+rt.textShiftX,Qe=ye+De.ty0-De.by/2+u,Pt=De.textAlign||"auto";Pt!=="auto"&&(Pt==="left"&&at!=="start"?(Ze.attr("text-anchor","start"),ot=he?-De.bx/2-De.tx2width/2+u:-De.bx-u):Pt==="right"&&at!=="end"&&(Ze.attr("text-anchor","end"),ot=he?De.bx/2-De.tx2width/2-u:De.bx+u)),Ze.call(o.positionText,be(ot),Ae(Qe)),De.tx2width&&(ze.select("text.name").call(o.positionText,be(rt.text2ShiftX+rt.alignShift*u+Me),Ae(ye+De.ty0-De.by/2+u)),ze.select("rect").call(n.setRect,be(rt.text2ShiftX+(rt.alignShift-1)*De.tx2width/2+Me),Ae(ye-De.by/2-1),be(De.tx2width),Ae(De.by+2)))})}function $(j,Q){var re=j.index,ce=j.trace||{},be=j.cd[0],Ae=j.cd[re]||{};function De(st){return st||v(st)&&st===0}var ze=Array.isArray(re)?function(st,Me){var ye=S.castOption(be,re,st);return De(ye)?ye:S.extractOption({},ce,"",Me)}:function(st,Me){return S.extractOption(Ae,ce,st,Me)};function Ze(st,Me,ye){var he=ze(Me,ye);De(he)&&(j[st]=he)}if(Ze("hoverinfo","hi","hoverinfo"),Ze("bgcolor","hbg","hoverlabel.bgcolor"),Ze("borderColor","hbc","hoverlabel.bordercolor"),Ze("fontFamily","htf","hoverlabel.font.family"),Ze("fontSize","hts","hoverlabel.font.size"),Ze("fontColor","htc","hoverlabel.font.color"),Ze("fontWeight","htw","hoverlabel.font.weight"),Ze("fontStyle","hty","hoverlabel.font.style"),Ze("fontVariant","htv","hoverlabel.font.variant"),Ze("nameLength","hnl","hoverlabel.namelength"),Ze("textAlign","hta","hoverlabel.align"),j.posref=Q==="y"||Q==="closest"&&ce.orientation==="h"?j.xa._offset+(j.x0+j.x1)/2:j.ya._offset+(j.y0+j.y1)/2,j.x0=S.constrain(j.x0,0,j.xa._length),j.x1=S.constrain(j.x1,0,j.xa._length),j.y0=S.constrain(j.y0,0,j.ya._length),j.y1=S.constrain(j.y1,0,j.ya._length),j.xLabelVal!==void 0&&(j.xLabel="xLabel"in j?j.xLabel:h.hoverLabelText(j.xa,j.xLabelVal,ce.xhoverformat),j.xVal=j.xa.c2d(j.xLabelVal)),j.yLabelVal!==void 0&&(j.yLabel="yLabel"in j?j.yLabel:h.hoverLabelText(j.ya,j.yLabelVal,ce.yhoverformat),j.yVal=j.ya.c2d(j.yLabelVal)),j.zLabelVal!==void 0&&j.zLabel===void 0&&(j.zLabel=String(j.zLabelVal)),!isNaN(j.xerr)&&!(j.xa.type==="log"&&j.xerr<=0)){var at=h.tickText(j.xa,j.xa.c2l(j.xerr),"hover").text;j.xerrneg!==void 0?j.xLabel+=" +"+at+" / -"+h.tickText(j.xa,j.xa.c2l(j.xerrneg),"hover").text:j.xLabel+=" \xB1 "+at,Q==="x"&&(j.distance+=1)}if(!isNaN(j.yerr)&&!(j.ya.type==="log"&&j.yerr<=0)){var nt=h.tickText(j.ya,j.ya.c2l(j.yerr),"hover").text;j.yerrneg!==void 0?j.yLabel+=" +"+nt+" / -"+h.tickText(j.ya,j.ya.c2l(j.yerrneg),"hover").text:j.yLabel+=" \xB1 "+nt,Q==="y"&&(j.distance+=1)}var rt=j.hoverinfo||j.trace.hoverinfo;return rt&&rt!=="all"&&(rt=Array.isArray(rt)?rt:rt.split("+"),rt.indexOf("x")===-1&&(j.xLabel=void 0),rt.indexOf("y")===-1&&(j.yLabel=void 0),rt.indexOf("z")===-1&&(j.zLabel=void 0),rt.indexOf("text")===-1&&(j.text=void 0),rt.indexOf("name")===-1&&(j.name=void 0)),j}function se(j,Q,re){var ce=re.container,be=re.fullLayout,Ae=be._size,De=re.event,ze=!!Q.hLinePoint,Ze=!!Q.vLinePoint,at,nt;if(ce.selectAll(".spikeline").remove(),!!(Ze||ze)){var rt=i.combine(be.plot_bgcolor,be.paper_bgcolor);if(ze){var st=Q.hLinePoint,Me,ye;at=st&&st.xa,nt=st&&st.ya;var he=nt.spikesnap;he==="cursor"?(Me=De.pointerX,ye=De.pointerY):(Me=at._offset+st.x,ye=nt._offset+st.y);var Oe=x.readability(st.color,rt)<1.5?i.contrast(rt):st.color,tt=nt.spikemode,ot=nt.spikethickness,Qe=nt.spikecolor||Oe,Pt=h.getPxPosition(j,nt),It,qt;if(tt.indexOf("toaxis")!==-1||tt.indexOf("across")!==-1){if(tt.indexOf("toaxis")!==-1&&(It=Pt,qt=Me),tt.indexOf("across")!==-1){var Wt=nt._counterDomainMin,kr=nt._counterDomainMax;nt.anchor==="free"&&(Wt=Math.min(Wt,nt.position),kr=Math.max(kr,nt.position)),It=Ae.l+Wt*Ae.w,qt=Ae.l+kr*Ae.w}ce.insert("line",":first-child").attr({x1:It,x2:qt,y1:ye,y2:ye,"stroke-width":ot,stroke:Qe,"stroke-dasharray":n.dashStyle(nt.spikedash,ot)}).classed("spikeline",!0).classed("crisp",!0),ce.insert("line",":first-child").attr({x1:It,x2:qt,y1:ye,y2:ye,"stroke-width":ot+2,stroke:rt}).classed("spikeline",!0).classed("crisp",!0)}tt.indexOf("marker")!==-1&&ce.insert("circle",":first-child").attr({cx:Pt+(nt.side!=="right"?ot:-ot),cy:ye,r:ot,fill:Qe}).classed("spikeline",!0)}if(Ze){var mr=Q.vLinePoint,qr,Sr;at=mr&&mr.xa,nt=mr&&mr.ya;var Rr=at.spikesnap;Rr==="cursor"?(qr=De.pointerX,Sr=De.pointerY):(qr=at._offset+mr.x,Sr=nt._offset+mr.y);var wt=x.readability(mr.color,rt)<1.5?i.contrast(rt):mr.color,Ne=at.spikemode,Ke=at.spikethickness,Te=at.spikecolor||wt,Ie=h.getPxPosition(j,at),Ve,Ce;if(Ne.indexOf("toaxis")!==-1||Ne.indexOf("across")!==-1){if(Ne.indexOf("toaxis")!==-1&&(Ve=Ie,Ce=Sr),Ne.indexOf("across")!==-1){var Ee=at._counterDomainMin,Pe=at._counterDomainMax;at.anchor==="free"&&(Ee=Math.min(Ee,at.position),Pe=Math.max(Pe,at.position)),Ve=Ae.t+(1-Pe)*Ae.h,Ce=Ae.t+(1-Ee)*Ae.h}ce.insert("line",":first-child").attr({x1:qr,x2:qr,y1:Ve,y2:Ce,"stroke-width":Ke,stroke:Te,"stroke-dasharray":n.dashStyle(at.spikedash,Ke)}).classed("spikeline",!0).classed("crisp",!0),ce.insert("line",":first-child").attr({x1:qr,x2:qr,y1:Ve,y2:Ce,"stroke-width":Ke+2,stroke:rt}).classed("spikeline",!0).classed("crisp",!0)}Ne.indexOf("marker")!==-1&&ce.insert("circle",":first-child").attr({cx:qr,cy:Ie-(at.side!=="top"?Ke:-Ke),r:Ke,fill:Te}).classed("spikeline",!0)}}}function le(j,Q,re){if(!re||re.length!==j._hoverdata.length)return!0;for(var ce=re.length-1;ce>=0;ce--){var be=re[ce],Ae=j._hoverdata[ce];if(be.curveNumber!==Ae.curveNumber||String(be.pointNumber)!==String(Ae.pointNumber)||String(be.pointNumbers)!==String(Ae.pointNumbers)||be.binNumber!==Ae.binNumber)return!0}return!1}function fe(j,Q){return!Q||Q.vLinePoint!==j._spikepoints.vLinePoint||Q.hLinePoint!==j._spikepoints.hLinePoint}function V(j,Q){return o.plainText(j||"",{len:Q,allowedTags:["br","sub","sup","b","i","em","s","u"]})}function Y(j,Q){for(var re=Q.charAt(0),ce=[],be=[],Ae=[],De=0;De<j.length;De++){var ze=j[De];m.traceIs(ze.trace,"bar-like")||m.traceIs(ze.trace,"box-violin")?Ae.push(ze):ze.trace[re+"period"]?be.push(ze):ce.push(ze)}return ce.concat(be).concat(Ae)}function ee(j,Q,re){var ce=Q[j+"a"],be=Q[j+"Val"],Ae=Q.cd[0];if(ce.type==="category"||ce.type==="multicategory")be=ce._categoriesMap[be];else if(ce.type==="date"){var De=Q.trace[j+"periodalignment"];if(De){var ze=Q.cd[Q.index],Ze=ze[j+"Start"];Ze===void 0&&(Ze=ze[j]);var at=ze[j+"End"];at===void 0&&(at=ze[j]);var nt=at-Ze;De==="end"?be+=nt:De==="middle"&&(be+=nt/2)}be=ce.d2c(be)}return Ae&&Ae.t&&Ae.t.posLetter===ce._id&&(re.boxmode==="group"||re.violinmode==="group")&&(be+=Ae.t.dPos),be}var q=j=>j.offsetTop+j.clientTop,oe=j=>j.offsetLeft+j.clientLeft;function ae(j,Q){var re=j._fullLayout,ce=Q.getBoundingClientRect(),be=ce.left,Ae=ce.top,De=be+ce.width,ze=Ae+ce.height,Ze=S.apply3DTransform(re._invTransform)(be,Ae),at=S.apply3DTransform(re._invTransform)(De,ze),nt=Ze[0],rt=Ze[1],st=at[0],Me=at[1];return{x:nt,y:rt,width:st-nt,height:Me-rt,top:Math.min(rt,Me),left:Math.min(nt,st),right:Math.max(nt,st),bottom:Math.max(rt,Me)}}}}),k_=Xe({"src/components/fx/hoverlabel_defaults.js"(Z,G){"use strict";var v=sa(),x=$n(),S=$p().isUnifiedHover;G.exports=function(e,t,r,o){o=o||{};var a=t.legend;function n(i){o.font[i]||(o.font[i]=a?t.legend.font[i]:t.font[i])}t&&S(t.hovermode)&&(o.font||(o.font={}),n("size"),n("family"),n("color"),n("weight"),n("style"),n("variant"),a?(o.bgcolor||(o.bgcolor=x.combine(t.legend.bgcolor,t.paper_bgcolor)),o.bordercolor||(o.bordercolor=t.legend.bordercolor)):o.bgcolor||(o.bgcolor=t.paper_bgcolor)),r("hoverlabel.bgcolor",o.bgcolor),r("hoverlabel.bordercolor",o.bordercolor),r("hoverlabel.namelength",o.namelength),r("hoverlabel.showarrow",o.showarrow),v.coerceFont(r,"hoverlabel.font",o.font),r("hoverlabel.align",o.align)}}}),mz=Xe({"src/components/fx/layout_global_defaults.js"(Z,G){"use strict";var v=sa(),x=k_(),S=Zm();G.exports=function(e,t){function r(o,a){return v.coerce(e,t,S,o,a)}x(e,t,r)}}}),gz=Xe({"src/components/fx/defaults.js"(Z,G){"use strict";var v=sa(),x=Ky(),S=k_();G.exports=function(e,t,r,o){function a(i,s){return v.coerce(e,t,x,i,s)}var n=v.extendFlat({},o.hoverlabel);t.hovertemplate&&(n.namelength=-1),S(e,t,a,n)}}}),x5=Xe({"src/components/fx/hovermode_defaults.js"(Z,G){"use strict";var v=sa(),x=Zm();G.exports=function(E,e){function t(r,o){return e[r]!==void 0?e[r]:v.coerce(E,e,x,r,o)}return t("clickmode"),t("hoversubplots"),t("hovermode")}}}),yz=Xe({"src/components/fx/layout_defaults.js"(Z,G){"use strict";var v=sa(),x=Zm(),S=x5(),E=k_();G.exports=function(t,r){function o(m,p){return v.coerce(t,r,x,m,p)}var a=S(t,r);a&&(o("hoverdistance"),o("spikedistance"));var n=o("dragmode");n==="select"&&o("selectdirection");var i=r._has("mapbox"),s=r._has("map"),h=r._has("geo"),c=r._basePlotModules.length;r.dragmode==="zoom"&&((i||s||h)&&c===1||(i||s)&&h&&c===2)&&(r.dragmode="pan"),E(t,r,o),v.coerceFont(o,"hoverlabel.grouptitlefont",r.hoverlabel.font)}}}),_z=Xe({"src/components/fx/calc.js"(Z,G){"use strict";var v=sa(),x=so();G.exports=function(e){var t=e.calcdata,r=e._fullLayout;function o(h){return function(c){return v.coerceHoverinfo({hoverinfo:c},{_module:h._module},r)}}for(var a=0;a<t.length;a++){var n=t[a],i=n[0].trace;if(!x.traceIs(i,"pie-like")){var s=x.traceIs(i,"2dMap")?S:v.fillArray;s(i.hoverinfo,n,"hi",o(i)),i.hovertemplate&&s(i.hovertemplate,n,"ht"),i.hoverlabel&&(s(i.hoverlabel.bgcolor,n,"hbg"),s(i.hoverlabel.bordercolor,n,"hbc"),s(i.hoverlabel.font.size,n,"hts"),s(i.hoverlabel.font.color,n,"htc"),s(i.hoverlabel.font.family,n,"htf"),s(i.hoverlabel.font.weight,n,"htw"),s(i.hoverlabel.font.style,n,"hty"),s(i.hoverlabel.font.variant,n,"htv"),s(i.hoverlabel.namelength,n,"hnl"),s(i.hoverlabel.align,n,"hta"),s(i.hoverlabel.showarrow,n,"htsa"))}}};function S(E,e,t,r){r=r||v.identity,Array.isArray(E)&&(e[0][t]=r(E))}}}),xz=Xe({"src/components/fx/click.js"(Z,G){"use strict";var v=so(),x=_5().hover;G.exports=function(E,e,t){var r=v.getComponentMethod("annotations","onClick")(E,E._hoverdata);t!==void 0&&x(E,e,t,!0);function o(){E.emit("plotly_click",{points:E._hoverdata,event:e})}E._hoverdata&&e&&e.target&&(r&&r.then?r.then(o):o(),e.stopImmediatePropagation&&e.stopImmediatePropagation())}}}),rf=Xe({"src/components/fx/index.js"(Z,G){"use strict";var v=Hn(),x=sa(),S=Ap(),E=$p(),e=Zm(),t=_5();G.exports={moduleType:"component",name:"fx",constants:w_(),schema:{layout:e},attributes:Ky(),layoutAttributes:e,supplyLayoutGlobalDefaults:mz(),supplyDefaults:gz(),supplyLayoutDefaults:yz(),calc:_z(),getDistanceFunction:E.getDistanceFunction,getClosest:E.getClosest,inbox:E.inbox,quadrature:E.quadrature,appendArrayPointValue:E.appendArrayPointValue,castHoverOption:o,castHoverinfo:a,hover:t.hover,unhover:S.unhover,loneHover:t.loneHover,loneUnhover:r,click:xz()};function r(n){var i=x.isD3Selection(n)?n:v.select(n);i.selectAll("g.hovertext").remove(),i.selectAll(".spikeline").remove()}function o(n,i,s){return x.castOption(n,i,"hoverlabel."+s)}function a(n,i,s){function h(c){return x.coerceHoverinfo({hoverinfo:c},{_module:n._module},i)}return x.castOption(n,s,"hoverinfo",h)}}}),Jd=Xe({"src/components/dragelement/helpers.js"(Z){"use strict";Z.selectMode=function(G){return G==="lasso"||G==="select"},Z.drawMode=function(G){return G==="drawclosedpath"||G==="drawopenpath"||G==="drawline"||G==="drawrect"||G==="drawcircle"},Z.openMode=function(G){return G==="drawline"||G==="drawopenpath"},Z.rectMode=function(G){return G==="select"||G==="drawline"||G==="drawrect"||G==="drawcircle"},Z.freeMode=function(G){return G==="lasso"||G==="drawclosedpath"||G==="drawopenpath"},Z.selectingOrDrawing=function(G){return Z.freeMode(G)||Z.rectMode(G)}}}),C_=Xe({"src/lib/clear_gl_canvases.js"(Z,G){"use strict";G.exports=function(x){var S=x._fullLayout;S._glcanvas&&S._glcanvas.size()&&S._glcanvas.each(function(E){E.regl&&E.regl.clear({color:!0,depth:!0})})}}}),w2=Xe({"src/fonts/ploticon.js"(Z,G){"use strict";G.exports={undo:{width:857.1,height:1e3,path:"m857 350q0-87-34-166t-91-137-137-92-166-34q-96 0-183 41t-147 114q-4 6-4 13t5 11l76 77q6 5 14 5 9-1 13-7 41-53 100-82t126-29q58 0 110 23t92 61 61 91 22 111-22 111-61 91-92 61-110 23q-55 0-105-20t-90-57l77-77q17-16 8-38-10-23-33-23h-250q-15 0-25 11t-11 25v250q0 24 22 33 22 10 39-8l72-72q60 57 137 88t159 31q87 0 166-34t137-92 91-137 34-166z",transform:"matrix(1 0 0 -1 0 850)"},home:{width:928.6,height:1e3,path:"m786 296v-267q0-15-11-26t-25-10h-214v214h-143v-214h-214q-15 0-25 10t-11 26v267q0 1 0 2t0 2l321 264 321-264q1-1 1-4z m124 39l-34-41q-5-5-12-6h-2q-7 0-12 3l-386 322-386-322q-7-4-13-4-7 2-12 7l-35 41q-4 5-3 13t6 12l401 334q18 15 42 15t43-15l136-114v109q0 8 5 13t13 5h107q8 0 13-5t5-13v-227l122-102q5-5 6-12t-4-13z",transform:"matrix(1 0 0 -1 0 850)"},"camera-retro":{width:1e3,height:1e3,path:"m518 386q0 8-5 13t-13 5q-37 0-63-27t-26-63q0-8 5-13t13-5 12 5 5 13q0 23 16 38t38 16q8 0 13 5t5 13z m125-73q0-59-42-101t-101-42-101 42-42 101 42 101 101 42 101-42 42-101z m-572-320h858v71h-858v-71z m643 320q0 89-62 152t-152 62-151-62-63-152 63-151 151-63 152 63 62 151z m-571 358h214v72h-214v-72z m-72-107h858v143h-462l-36-71h-360v-72z m929 143v-714q0-30-21-51t-50-21h-858q-29 0-50 21t-21 51v714q0 30 21 51t50 21h858q29 0 50-21t21-51z",transform:"matrix(1 0 0 -1 0 850)"},zoombox:{width:1e3,height:1e3,path:"m1000-25l-250 251c40 63 63 138 63 218 0 224-182 406-407 406-224 0-406-182-406-406s183-406 407-406c80 0 155 22 218 62l250-250 125 125z m-812 250l0 438 437 0 0-438-437 0z m62 375l313 0 0-312-313 0 0 312z",transform:"matrix(1 0 0 -1 0 850)"},pan:{width:1e3,height:1e3,path:"m1000 350l-187 188 0-125-250 0 0 250 125 0-188 187-187-187 125 0 0-250-250 0 0 125-188-188 186-187 0 125 252 0 0-250-125 0 187-188 188 188-125 0 0 250 250 0 0-126 187 188z",transform:"matrix(1 0 0 -1 0 850)"},zoom_plus:{width:875,height:1e3,path:"m1 787l0-875 875 0 0 875-875 0z m687-500l-187 0 0-187-125 0 0 187-188 0 0 125 188 0 0 187 125 0 0-187 187 0 0-125z",transform:"matrix(1 0 0 -1 0 850)"},zoom_minus:{width:875,height:1e3,path:"m0 788l0-876 875 0 0 876-875 0z m688-500l-500 0 0 125 500 0 0-125z",transform:"matrix(1 0 0 -1 0 850)"},autoscale:{width:1e3,height:1e3,path:"m250 850l-187 0-63 0 0-62 0-188 63 0 0 188 187 0 0 62z m688 0l-188 0 0-62 188 0 0-188 62 0 0 188 0 62-62 0z m-875-938l0 188-63 0 0-188 0-62 63 0 187 0 0 62-187 0z m875 188l0-188-188 0 0-62 188 0 62 0 0 62 0 188-62 0z m-125 188l-1 0-93-94-156 156 156 156 92-93 2 0 0 250-250 0 0-2 93-92-156-156-156 156 94 92 0 2-250 0 0-250 0 0 93 93 157-156-157-156-93 94 0 0 0-250 250 0 0 0-94 93 156 157 156-157-93-93 0 0 250 0 0 250z",transform:"matrix(1 0 0 -1 0 850)"},tooltip_basic:{width:1500,height:1e3,path:"m375 725l0 0-375-375 375-374 0-1 1125 0 0 750-1125 0z",transform:"matrix(1 0 0 -1 0 850)"},tooltip_compare:{width:1125,height:1e3,path:"m187 786l0 2-187-188 188-187 0 0 937 0 0 373-938 0z m0-499l0 1-187-188 188-188 0 0 937 0 0 376-938-1z",transform:"matrix(1 0 0 -1 0 850)"},plotlylogo:{width:1542,height:1e3,path:"m0-10h182v-140h-182v140z m228 146h183v-286h-183v286z m225 714h182v-1000h-182v1000z m225-285h182v-715h-182v715z m225 142h183v-857h-183v857z m231-428h182v-429h-182v429z m225-291h183v-138h-183v138z",transform:"matrix(1 0 0 -1 0 850)"},"z-axis":{width:1e3,height:1e3,path:"m833 5l-17 108v41l-130-65 130-66c0 0 0 38 0 39 0-1 36-14 39-25 4-15-6-22-16-30-15-12-39-16-56-20-90-22-187-23-279-23-261 0-341 34-353 59 3 60 228 110 228 110-140-8-351-35-351-116 0-120 293-142 474-142 155 0 477 22 477 142 0 50-74 79-163 96z m-374 94c-58-5-99-21-99-40 0-24 65-43 144-43 79 0 143 19 143 43 0 19-42 34-98 40v216h87l-132 135-133-135h88v-216z m167 515h-136v1c16 16 31 34 46 52l84 109v54h-230v-71h124v-1c-16-17-28-32-44-51l-89-114v-51h245v72z",transform:"matrix(1 0 0 -1 0 850)"},"3d_rotate":{width:1e3,height:1e3,path:"m922 660c-5 4-9 7-14 11-359 263-580-31-580-31l-102 28 58-400c0 1 1 1 2 2 118 108 351 249 351 249s-62 27-100 42c88 83 222 183 347 122 16-8 30-17 44-27-2 1-4 2-6 4z m36-329c0 0 64 229-88 296-62 27-124 14-175-11 157-78 225-208 249-266 8-19 11-31 11-31 2 5 6 15 11 32-5-13-8-20-8-20z m-775-239c70-31 117-50 198-32-121 80-199 346-199 346l-96-15-58-12c0 0 55-226 155-287z m603 133l-317-139c0 0 4-4 19-14 7-5 24-15 24-15s-177-147-389 4c235-287 536-112 536-112l31-22 100 299-4-1z m-298-153c6-4 14-9 24-15 0 0-17 10-24 15z",transform:"matrix(1 0 0 -1 0 850)"},camera:{width:1e3,height:1e3,path:"m500 450c-83 0-150-67-150-150 0-83 67-150 150-150 83 0 150 67 150 150 0 83-67 150-150 150z m400 150h-120c-16 0-34 13-39 29l-31 93c-6 15-23 28-40 28h-340c-16 0-34-13-39-28l-31-94c-6-15-23-28-40-28h-120c-55 0-100-45-100-100v-450c0-55 45-100 100-100h800c55 0 100 45 100 100v450c0 55-45 100-100 100z m-400-550c-138 0-250 112-250 250 0 138 112 250 250 250 138 0 250-112 250-250 0-138-112-250-250-250z m365 380c-19 0-35 16-35 35 0 19 16 35 35 35 19 0 35-16 35-35 0-19-16-35-35-35z",transform:"matrix(1 0 0 -1 0 850)"},movie:{width:1e3,height:1e3,path:"m938 413l-188-125c0 37-17 71-44 94 64 38 107 107 107 187 0 121-98 219-219 219-121 0-219-98-219-219 0-61 25-117 66-156h-115c30 33 49 76 49 125 0 103-84 187-187 187s-188-84-188-187c0-57 26-107 65-141-38-22-65-62-65-109v-250c0-70 56-126 125-126h500c69 0 125 56 125 126l188-126c34 0 62 28 62 63v375c0 35-28 63-62 63z m-750 0c-69 0-125 56-125 125s56 125 125 125 125-56 125-125-56-125-125-125z m406-1c-87 0-157 70-157 157 0 86 70 156 157 156s156-70 156-156-70-157-156-157z",transform:"matrix(1 0 0 -1 0 850)"},question:{width:857.1,height:1e3,path:"m500 82v107q0 8-5 13t-13 5h-107q-8 0-13-5t-5-13v-107q0-8 5-13t13-5h107q8 0 13 5t5 13z m143 375q0 49-31 91t-77 65-95 23q-136 0-207-119-9-14 4-24l74-55q4-4 10-4 9 0 14 7 30 38 48 51 19 14 48 14 27 0 48-15t21-33q0-21-11-34t-38-25q-35-16-65-48t-29-70v-20q0-8 5-13t13-5h107q8 0 13 5t5 13q0 10 12 27t30 28q18 10 28 16t25 19 25 27 16 34 7 45z m214-107q0-117-57-215t-156-156-215-58-216 58-155 156-58 215 58 215 155 156 216 58 215-58 156-156 57-215z",transform:"matrix(1 0 0 -1 0 850)"},disk:{width:857.1,height:1e3,path:"m214-7h429v214h-429v-214z m500 0h72v500q0 8-6 21t-11 20l-157 156q-5 6-19 12t-22 5v-232q0-22-15-38t-38-16h-322q-22 0-37 16t-16 38v232h-72v-714h72v232q0 22 16 38t37 16h465q22 0 38-16t15-38v-232z m-214 518v178q0 8-5 13t-13 5h-107q-7 0-13-5t-5-13v-178q0-8 5-13t13-5h107q7 0 13 5t5 13z m357-18v-518q0-22-15-38t-38-16h-750q-23 0-38 16t-16 38v750q0 22 16 38t38 16h517q23 0 50-12t42-26l156-157q16-15 27-42t11-49z",transform:"matrix(1 0 0 -1 0 850)"},drawopenpath:{width:70,height:70,path:"M33.21,85.65a7.31,7.31,0,0,1-2.59-.48c-8.16-3.11-9.27-19.8-9.88-41.3-.1-3.58-.19-6.68-.35-9-.15-2.1-.67-3.48-1.43-3.79-2.13-.88-7.91,2.32-12,5.86L3,32.38c1.87-1.64,11.55-9.66,18.27-6.9,2.13.87,4.75,3.14,5.17,9,.17,2.43.26,5.59.36,9.25a224.17,224.17,0,0,0,1.5,23.4c1.54,10.76,4,12.22,4.48,12.4.84.32,2.79-.46,5.76-3.59L43,80.07C41.53,81.57,37.68,85.64,33.21,85.65ZM74.81,69a11.34,11.34,0,0,0,6.09-6.72L87.26,44.5,74.72,32,56.9,38.35c-2.37.86-5.57,3.42-6.61,6L38.65,72.14l8.42,8.43ZM55,46.27a7.91,7.91,0,0,1,3.64-3.17l14.8-5.3,8,8L76.11,60.6l-.06.19a6.37,6.37,0,0,1-3,3.43L48.25,74.59,44.62,71Zm16.57,7.82A6.9,6.9,0,1,0,64.64,61,6.91,6.91,0,0,0,71.54,54.09Zm-4.05,0a2.85,2.85,0,1,1-2.85-2.85A2.86,2.86,0,0,1,67.49,54.09Zm-4.13,5.22L60.5,56.45,44.26,72.7l2.86,2.86ZM97.83,35.67,84.14,22l-8.57,8.57L89.26,44.24Zm-13.69-8,8,8-2.85,2.85-8-8Z",transform:"matrix(1 0 0 1 -15 -15)"},drawclosedpath:{width:90,height:90,path:"M88.41,21.12a26.56,26.56,0,0,0-36.18,0l-2.07,2-2.07-2a26.57,26.57,0,0,0-36.18,0,23.74,23.74,0,0,0,0,34.8L48,90.12a3.22,3.22,0,0,0,4.42,0l36-34.21a23.73,23.73,0,0,0,0-34.79ZM84,51.24,50.16,83.35,16.35,51.25a17.28,17.28,0,0,1,0-25.47,20,20,0,0,1,27.3,0l4.29,4.07a3.23,3.23,0,0,0,4.44,0l4.29-4.07a20,20,0,0,1,27.3,0,17.27,17.27,0,0,1,0,25.46ZM66.76,47.68h-33v6.91h33ZM53.35,35H46.44V68h6.91Z",transform:"matrix(1 0 0 1 -5 -5)"},lasso:{width:1031,height:1e3,path:"m1018 538c-36 207-290 336-568 286-277-48-473-256-436-463 10-57 36-108 76-151-13-66 11-137 68-183 34-28 75-41 114-42l-55-70 0 0c-2-1-3-2-4-3-10-14-8-34 5-45 14-11 34-8 45 4 1 1 2 3 2 5l0 0 113 140c16 11 31 24 45 40 4 3 6 7 8 11 48-3 100 0 151 9 278 48 473 255 436 462z m-624-379c-80 14-149 48-197 96 42 42 109 47 156 9 33-26 47-66 41-105z m-187-74c-19 16-33 37-39 60 50-32 109-55 174-68-42-25-95-24-135 8z m360 75c-34-7-69-9-102-8 8 62-16 128-68 170-73 59-175 54-244-5-9 20-16 40-20 61-28 159 121 317 333 354s407-60 434-217c28-159-121-318-333-355z",transform:"matrix(1 0 0 -1 0 850)"},selectbox:{width:1e3,height:1e3,path:"m0 850l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m285 0l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m-857-286l0-143 143 0 0 143-143 0z m857 0l0-143 143 0 0 143-143 0z m-857-285l0-143 143 0 0 143-143 0z m857 0l0-143 143 0 0 143-143 0z m-857-286l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m285 0l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z",transform:"matrix(1 0 0 -1 0 850)"},drawline:{width:70,height:70,path:"M60.64,62.3a11.29,11.29,0,0,0,6.09-6.72l6.35-17.72L60.54,25.31l-17.82,6.4c-2.36.86-5.57,3.41-6.6,6L24.48,65.5l8.42,8.42ZM40.79,39.63a7.89,7.89,0,0,1,3.65-3.17l14.79-5.31,8,8L61.94,54l-.06.19a6.44,6.44,0,0,1-3,3.43L34.07,68l-3.62-3.63Zm16.57,7.81a6.9,6.9,0,1,0-6.89,6.9A6.9,6.9,0,0,0,57.36,47.44Zm-4,0a2.86,2.86,0,1,1-2.85-2.85A2.86,2.86,0,0,1,53.32,47.44Zm-4.13,5.22L46.33,49.8,30.08,66.05l2.86,2.86ZM83.65,29,70,15.34,61.4,23.9,75.09,37.59ZM70,21.06l8,8-2.84,2.85-8-8ZM87,80.49H10.67V87H87Z",transform:"matrix(1 0 0 1 -15 -15)"},drawrect:{width:80,height:80,path:"M78,22V79H21V22H78m9-9H12V88H87V13ZM68,46.22H31V54H68ZM53,32H45.22V69H53Z",transform:"matrix(1 0 0 1 -10 -10)"},drawcircle:{width:80,height:80,path:"M50,84.72C26.84,84.72,8,69.28,8,50.3S26.84,15.87,50,15.87,92,31.31,92,50.3,73.16,84.72,50,84.72Zm0-60.59c-18.6,0-33.74,11.74-33.74,26.17S31.4,76.46,50,76.46,83.74,64.72,83.74,50.3,68.6,24.13,50,24.13Zm17.15,22h-34v7.11h34Zm-13.8-13H46.24v34h7.11Z",transform:"matrix(1 0 0 1 -10 -10)"},eraseshape:{width:80,height:80,path:"M82.77,78H31.85L6,49.57,31.85,21.14H82.77a8.72,8.72,0,0,1,8.65,8.77V69.24A8.72,8.72,0,0,1,82.77,78ZM35.46,69.84H82.77a.57.57,0,0,0,.49-.6V29.91a.57.57,0,0,0-.49-.61H35.46L17,49.57Zm32.68-34.7-24,24,5,5,24-24Zm-19,.53-5,5,24,24,5-5Z",transform:"matrix(1 0 0 1 -10 -10)"},spikeline:{width:1e3,height:1e3,path:"M512 409c0-57-46-104-103-104-57 0-104 47-104 104 0 57 47 103 104 103 57 0 103-46 103-103z m-327-39l92 0 0 92-92 0z m-185 0l92 0 0 92-92 0z m370-186l92 0 0 93-92 0z m0-184l92 0 0 92-92 0z",transform:"matrix(1.5 0 0 -1.5 0 850)"},pencil:{width:1792,height:1792,path:"M491 1536l91-91-235-235-91 91v107h128v128h107zm523-928q0-22-22-22-10 0-17 7l-542 542q-7 7-7 17 0 22 22 22 10 0 17-7l542-542q7-7 7-17zm-54-192l416 416-832 832h-416v-416zm683 96q0 53-37 90l-166 166-416-416 166-165q36-38 90-38 53 0 91 38l235 234q37 39 37 91z",transform:"matrix(1 0 0 1 0 1)"},newplotlylogo:{name:"newplotlylogo",svg:["<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 132 132'>"," <title>plotly-logomark</title>"," <g id='symbol'>"," <rect fill='#000' x='0' y='0' width='132' height='132' rx='18' ry='18'/>"," <circle fill='#9EF' cx='102' cy='30' r='6'/>"," <circle fill='#BAC' cx='78' cy='30' r='6'/>"," <circle fill='#BAC' cx='78' cy='54' r='6'/>"," <circle fill='#D69' cx='54' cy='30' r='6'/>"," <circle fill='#F26' cx='30' cy='30' r='6'/>"," <circle fill='#F26' cx='30' cy='54' r='6'/>"," <path fill='#FFF' d='M30,72a6,6,0,0,0-6,6v24a6,6,0,0,0,12,0V78A6,6,0,0,0,30,72Z'/>"," <path fill='#FFF' d='M78,72a6,6,0,0,0-6,6v24a6,6,0,0,0,12,0V78A6,6,0,0,0,78,72Z'/>"," <path fill='#FFF' d='M54,48a6,6,0,0,0-6,6v48a6,6,0,0,0,12,0V54A6,6,0,0,0,54,48Z'/>"," <path fill='#FFF' d='M102,48a6,6,0,0,0-6,6v48a6,6,0,0,0,12,0V54A6,6,0,0,0,102,48Z'/>"," </g>","</svg>"].join("")}}}}),T2=Xe({"src/components/shapes/draw_newshape/constants.js"(Z,G){"use strict";var v=32;G.exports={CIRCLE_SIDES:v,i000:0,i090:v/4,i180:v/2,i270:v/4*3,cos45:Math.cos(Math.PI/4),sin45:Math.sin(Math.PI/4),SQRT2:Math.sqrt(2)}}}),A2=Xe({"src/components/selections/helpers.js"(Z,G){"use strict";var v=sa().strTranslate;function x(t,r){switch(t.type){case"log":return t.p2d(r);case"date":return t.p2r(r,0,t.calendar);default:return t.p2r(r)}}function S(t,r){switch(t.type){case"log":return t.d2p(r);case"date":return t.r2p(r,0,t.calendar);default:return t.r2p(r)}}function E(t){var r=t._id.charAt(0)==="y"?1:0;return function(o){return x(t,o[r])}}function e(t){return v(t.xaxis._offset,t.yaxis._offset)}G.exports={p2r:x,r2p:S,axValue:E,getTransform:e}}}),r0=Xe({"src/components/shapes/draw_newshape/helpers.js"(Z){"use strict";var G=M_(),v=T2(),x=v.CIRCLE_SIDES,S=v.SQRT2,E=A2(),e=E.p2r,t=E.r2p,r=[0,3,4,5,6,1,2],o=[0,3,4,1,2];Z.writePaths=function(i){var s=i.length;if(!s)return"M0,0Z";for(var h="",c=0;c<s;c++)for(var m=i[c].length,p=0;p<m;p++){var T=i[c][p][0];if(T==="Z")h+="Z";else for(var l=i[c][p].length,_=0;_<l;_++){var w=_;T==="Q"||T==="S"?w=o[_]:T==="C"&&(w=r[_]),h+=i[c][p][w],_>0&&_<l-1&&(h+=",")}}return h},Z.readPaths=function(i,s,h,c){var m=G(i),p=[],T=-1,l=function(){T++,p[T]=[]},_,w=0,A=0,M,g,b=function(){M=w,g=A};b();for(var d=0;d<m.length;d++){var u=[],y,f,R,L,z=m[d][0],F=z;switch(z){case"M":l(),w=+m[d][1],A=+m[d][2],u.push([F,w,A]),b();break;case"Q":case"S":y=+m[d][1],R=+m[d][2],w=+m[d][3],A=+m[d][4],u.push([F,w,A,y,R]);break;case"C":y=+m[d][1],R=+m[d][2],f=+m[d][3],L=+m[d][4],w=+m[d][5],A=+m[d][6],u.push([F,w,A,y,R,f,L]);break;case"T":case"L":w=+m[d][1],A=+m[d][2],u.push([F,w,A]);break;case"H":F="L",w=+m[d][1],u.push([F,w,A]);break;case"V":F="L",A=+m[d][1],u.push([F,w,A]);break;case"A":F="L";var N=+m[d][1],O=+m[d][2];+m[d][4]||(N=-N,O=-O);var P=w-N,U=A;for(_=1;_<=x/2;_++){var B=2*Math.PI*_/x;u.push([F,P+N*Math.cos(B),U+O*Math.sin(B)])}break;case"Z":(w!==M||A!==g)&&(w=M,A=g,u.push([F,w,A]));break}for(var X=(h||{}).domain,$=s._fullLayout._size,se=h&&h.xsizemode==="pixel",le=h&&h.ysizemode==="pixel",fe=c===!1,V=0;V<u.length;V++){for(_=0;_+2<7;_+=2){var Y=u[V][_+1],ee=u[V][_+2];Y===void 0||ee===void 0||(w=Y,A=ee,h&&(h.xaxis&&h.xaxis.p2r?(fe&&(Y-=h.xaxis._offset),se?Y=t(h.xaxis,h.xanchor)+Y:Y=e(h.xaxis,Y)):(fe&&(Y-=$.l),X?Y=X.x[0]+Y/$.w:Y=Y/$.w),h.yaxis&&h.yaxis.p2r?(fe&&(ee-=h.yaxis._offset),le?ee=t(h.yaxis,h.yanchor)-ee:ee=e(h.yaxis,ee)):(fe&&(ee-=$.t),X?ee=X.y[1]-ee/$.h:ee=1-ee/$.h)),u[V][_+1]=Y,u[V][_+2]=ee)}p[T].push(u[V].slice())}}return p};function a(i,s){return Math.abs(i-s)<=1e-6}function n(i,s){var h=s[1]-i[1],c=s[2]-i[2];return Math.sqrt(h*h+c*c)}Z.pointsOnRectangle=function(i){var s=i.length;if(s!==5)return!1;for(var h=1;h<3;h++){var c=i[0][h]-i[1][h],m=i[3][h]-i[2][h];if(!a(c,m))return!1;var p=i[0][h]-i[3][h],T=i[1][h]-i[2][h];if(!a(p,T))return!1}return!a(i[0][1],i[1][1])&&!a(i[0][1],i[3][1])?!1:!!(n(i[0],i[1])*n(i[0],i[3]))},Z.pointsOnEllipse=function(i){var s=i.length;if(s!==x+1)return!1;s=x;for(var h=0;h<s;h++){var c=(s*2-h)%s,m=(s/2+c)%s,p=(s/2+h)%s;if(!a(n(i[h],i[p]),n(i[c],i[m])))return!1}return!0},Z.handleEllipse=function(i,s,h){if(!i)return[s,h];var c=Z.ellipseOver({x0:s[0],y0:s[1],x1:h[0],y1:h[1]}),m=(c.x1+c.x0)/2,p=(c.y1+c.y0)/2,T=(c.x1-c.x0)/2,l=(c.y1-c.y0)/2;T||(T=l=l/S),l||(l=T=T/S);for(var _=[],w=0;w<x;w++){var A=w*2*Math.PI/x;_.push([m+T*Math.cos(A),p+l*Math.sin(A)])}return _},Z.ellipseOver=function(i){var s=i.x0,h=i.y0,c=i.x1,m=i.y1,p=c-s,T=m-h;s-=p,h-=T;var l=(s+c)/2,_=(h+m)/2,w=S;return p*=w,T*=w,{x0:l-p,y0:_-T,x1:l+p,y1:_+T}},Z.fixDatesForPaths=function(i,s,h){var c=s.type==="date",m=h.type==="date";if(!c&&!m)return i;for(var p=0;p<i.length;p++)for(var T=0;T<i[p].length;T++)for(var l=0;l+2<i[p][T].length;l+=2)c&&(i[p][T][l+1]=i[p][T][l+1].replace(" ","_")),m&&(i[p][T][l+2]=i[p][T][l+2].replace(" ","_"));return i}}}),S2=Xe({"src/components/shapes/draw_newshape/newshapes.js"(Z,G){"use strict";var v=ef(),x=Jd(),S=x.drawMode,E=x.openMode,e=T2(),t=e.i000,r=e.i090,o=e.i180,a=e.i270,n=e.cos45,i=e.sin45,s=A2(),h=s.p2r,c=s.r2p,m=$m(),p=m.clearOutline,T=r0(),l=T.readPaths,_=T.writePaths,w=T.ellipseOver,A=T.fixDatesForPaths;function M(b,d){if(b.length){var u=b[0][0];if(u){var y=d.gd,f=d.isActiveShape,R=d.dragmode,L=(y.layout||{}).shapes||[];if(!S(R)&&f!==void 0){var z=y._fullLayout._activeShapeIndex;if(z<L.length)switch(y._fullLayout.shapes[z].type){case"rect":R="drawrect";break;case"circle":R="drawcircle";break;case"line":R="drawline";break;case"path":var F=L[z].path||"";F[F.length-1]==="Z"?R="drawclosedpath":R="drawopenpath";break}}var N=g(b,d,R);p(y);for(var O=d.editHelpers,P=(O||{}).modifyItem,U=[],B=0;B<L.length;B++){var X=y._fullLayout.shapes[B];if(U[B]=X._input,f!==void 0&&B===y._fullLayout._activeShapeIndex){var $=N;switch(X.type){case"line":case"rect":case"circle":var se=v.getFromId(y,X.xref);X.xref.charAt(0)==="x"&&se.type.includes("category")?(P("x0",$.x0-(X.x0shift||0)),P("x1",$.x1-(X.x1shift||0))):(P("x0",$.x0),P("x1",$.x1));var le=v.getFromId(y,X.yref);X.yref.charAt(0)==="y"&&le.type.includes("category")?(P("y0",$.y0-(X.y0shift||0)),P("y1",$.y1-(X.y1shift||0))):(P("y0",$.y0),P("y1",$.y1));break;case"path":P("path",$.path);break}}}return f===void 0?(U.push(N),U):O?O.getUpdateObj():{}}}}function g(b,d,u){var y=b[0][0],f=d.gd,R=y.getAttribute("d"),L=f._fullLayout.newshape,z=d.plotinfo,F=d.isActiveShape,N=z.xaxis,O=z.yaxis,P=!!z.domain||!z.xaxis,U=!!z.domain||!z.yaxis,B=E(u),X=l(R,f,z,F),$={editable:!0,visible:L.visible,name:L.name,showlegend:L.showlegend,legend:L.legend,legendwidth:L.legendwidth,legendgroup:L.legendgroup,legendgrouptitle:{text:L.legendgrouptitle.text,font:L.legendgrouptitle.font},legendrank:L.legendrank,label:L.label,xref:P?"paper":N._id,yref:U?"paper":O._id,layer:L.layer,opacity:L.opacity,line:{color:L.line.color,width:L.line.width,dash:L.line.dash}};B||($.fillcolor=L.fillcolor,$.fillrule=L.fillrule);var se;if(X.length===1&&(se=X[0]),se&&se.length===5&&u==="drawrect")$.type="rect",$.x0=se[0][1],$.y0=se[0][2],$.x1=se[2][1],$.y1=se[2][2];else if(se&&u==="drawline")$.type="line",$.x0=se[0][1],$.y0=se[0][2],$.x1=se[1][1],$.y1=se[1][2];else if(se&&u==="drawcircle"){$.type="circle";var le=se[t][1],fe=se[r][1],V=se[o][1],Y=se[a][1],ee=se[t][2],q=se[r][2],oe=se[o][2],ae=se[a][2],j=z.xaxis&&(z.xaxis.type==="date"||z.xaxis.type==="log"),Q=z.yaxis&&(z.yaxis.type==="date"||z.yaxis.type==="log");j&&(le=c(z.xaxis,le),fe=c(z.xaxis,fe),V=c(z.xaxis,V),Y=c(z.xaxis,Y)),Q&&(ee=c(z.yaxis,ee),q=c(z.yaxis,q),oe=c(z.yaxis,oe),ae=c(z.yaxis,ae));var re=(fe+Y)/2,ce=(ee+oe)/2,be=(Y-fe+V-le)/2,Ae=(ae-q+oe-ee)/2,De=w({x0:re,y0:ce,x1:re+be*n,y1:ce+Ae*i});j&&(De.x0=h(z.xaxis,De.x0),De.x1=h(z.xaxis,De.x1)),Q&&(De.y0=h(z.yaxis,De.y0),De.y1=h(z.yaxis,De.y1)),$.x0=De.x0,$.y0=De.y0,$.x1=De.x1,$.y1=De.y1}else $.type="path",N&&O&&A(X,N,O),$.path=_(X),se=null;return $}G.exports={newShapes:M,createShapeObj:g}}}),b5=Xe({"src/components/selections/draw_newselection/newselections.js"(Z,G){"use strict";var v=Jd(),x=v.selectMode,S=$m(),E=S.clearOutline,e=r0(),t=e.readPaths,r=e.writePaths,o=e.fixDatesForPaths;G.exports=function(n,i){if(n.length){var s=n[0][0];if(s){var h=s.getAttribute("d"),c=i.gd,m=c._fullLayout.newselection,p=i.plotinfo,T=p.xaxis,l=p.yaxis,_=i.isActiveSelection,w=i.dragmode,A=(c.layout||{}).selections||[];if(!x(w)&&_!==void 0){var M=c._fullLayout._activeSelectionIndex;if(M<A.length)switch(c._fullLayout.selections[M].type){case"rect":w="select";break;case"path":w="lasso";break}}var g=t(h,c,p,_),b={xref:T._id,yref:l._id,opacity:m.opacity,line:{color:m.line.color,width:m.line.width,dash:m.line.dash}},d;g.length===1&&(d=g[0]),d&&d.length===5&&w==="select"?(b.type="rect",b.x0=d[0][1],b.y0=d[0][2],b.x1=d[2][1],b.y1=d[2][2]):(b.type="path",T&&l&&o(g,T,l),b.path=r(g),d=null),E(c);for(var u=i.editHelpers,y=(u||{}).modifyItem,f=[],R=0;R<A.length;R++){var L=c._fullLayout.selections[R];if(!L){f[R]=L;continue}if(f[R]=L._input,_!==void 0&&R===c._fullLayout._activeSelectionIndex){var z=b;switch(L.type){case"rect":y("x0",z.x0),y("x1",z.x1),y("y0",z.y0),y("y1",z.y1);break;case"path":y("path",z.path);break}}}return _===void 0?(f.push(b),f):u?u.getUpdateObj():{}}}}}}),L_=Xe({"src/components/shapes/constants.js"(Z,G){"use strict";G.exports={segmentRE:/[MLHVQCTSZ][^MLHVQCTSZ]*/g,paramRE:/[^\s,]+/g,paramIsX:{M:{0:!0,drawn:0},L:{0:!0,drawn:0},H:{0:!0,drawn:0},V:{},Q:{0:!0,2:!0,drawn:2},C:{0:!0,2:!0,4:!0,drawn:4},T:{0:!0,drawn:0},S:{0:!0,2:!0,drawn:2},Z:{}},paramIsY:{M:{1:!0,drawn:1},L:{1:!0,drawn:1},H:{},V:{0:!0,drawn:0},Q:{1:!0,3:!0,drawn:3},C:{1:!0,3:!0,5:!0,drawn:5},T:{1:!0,drawn:1},S:{1:!0,3:!0,drawn:3},Z:{}},numParams:{M:2,L:2,H:1,V:1,Q:4,C:6,T:2,S:4,Z:0}}}}),a0=Xe({"src/components/shapes/helpers.js"(Z){"use strict";var G=L_(),v=sa(),x=Go();Z.rangeToShapePosition=function(e){return e.type==="log"?e.r2d:function(t){return t}},Z.shapePositionToRange=function(e){return e.type==="log"?e.d2r:function(t){return t}},Z.decodeDate=function(e){return function(t){return t.replace&&(t=t.replace("_"," ")),e(t)}},Z.encodeDate=function(e){return function(t){return e(t).replace(" ","_")}},Z.extractPathCoords=function(e,t,r){var o=[],a=e.match(G.segmentRE);return a.forEach(function(n){var i=t[n.charAt(0)].drawn;if(i!==void 0){var s=n.slice(1).match(G.paramRE);if(!(!s||s.length<i)){var h=s[i],c=r?h:v.cleanNumber(h);o.push(c)}}}),o},Z.countDefiningCoords=function(e,t,r){if(e!=="path")return 2;if(!t)return 0;let o=t.match(G.segmentRE);if(!o)return 0;let a=r==="x"?G.paramIsX:G.paramIsY;return o.reduce((n,i)=>{let s=i.charAt(0),h=a[s].drawn!==void 0;return n+(h?1:0)},0)},Z.getDataToPixel=function(e,t,r,o,a){var n=e._fullLayout._size,i;if(t)if(a==="domain")i=function(h){return t._length*(o?1-h:h)+t._offset};else{var s=Z.shapePositionToRange(t);i=function(h){var c=E(t,r);return t._offset+t.r2p(s(h,!0))+c},t.type==="date"&&(i=Z.decodeDate(i))}else o?i=function(h){return n.t+n.h*(1-h)}:i=function(h){return n.l+n.w*h};return i},Z.getPixelToData=function(e,t,r,o){var a=e._fullLayout._size,n;if(t)if(o==="domain")n=function(s){var h=(s-t._offset)/t._length;return r?1-h:h};else{var i=Z.rangeToShapePosition(t);n=function(s){return i(t.p2r(s-t._offset))}}else r?n=function(s){return 1-(s-a.t)/a.h}:n=function(s){return(s-a.l)/a.w};return n},Z.roundPositionForSharpStrokeRendering=function(e,t){var r=Math.round(t%2)===1,o=Math.round(e);return r?o+.5:o},Z.makeShapesOptionsAndPlotinfo=function(e,t){var r=e._fullLayout.shapes[t]||{},o=e._fullLayout._plots[r.xref+r.yref],a=!!o;return a?o._hadPlotinfo=!0:(o={},r.xref&&r.xref!=="paper"&&(o.xaxis=e._fullLayout[r.xref+"axis"]),r.yref&&r.yref!=="paper"&&(o.yaxis=e._fullLayout[r.yref+"axis"])),o.xsizemode=r.xsizemode,o.ysizemode=r.ysizemode,o.xanchor=r.xanchor,o.yanchor=r.yanchor,{options:r,plotinfo:o}},Z.makeSelectionsOptionsAndPlotinfo=function(e,t){var r=e._fullLayout.selections[t]||{},o=e._fullLayout._plots[r.xref+r.yref],a=!!o;return a?o._hadPlotinfo=!0:(o={},r.xref&&(o.xaxis=e._fullLayout[r.xref+"axis"]),r.yref&&(o.yaxis=e._fullLayout[r.yref+"axis"])),{options:r,plotinfo:o}},Z.getPathString=function(e,t){let r=t.type,o=x.getRefType(t.xref),a=x.getRefType(t.yref),n=e._fullLayout._size;var i,s,h,c,m,p,T,l,_,w,A,M;function g(z,F,N,O){var P;if(z)if(F==="domain")O?P=function(U){return z._offset+z._length*(1-U)}:P=function(U){return z._offset+z._length*U};else{let U=Z.shapePositionToRange(z);P=function(B){return z._offset+z.r2p(U(B,!0))},N==="path"&&z.type==="date"&&(P=Z.decodeDate(P))}else O?P=function(U){return n.t+n.h*(1-U)}:P=function(U){return n.l+n.w*U};return P}if(o==="array"?(T=[],i=t.xref.map(function(z){return x.getFromId(e,z)}),T=t.xref.map(function(z,F){return g(i[F],x.getRefType(z),r,!1)})):(i=x.getFromId(e,t.xref),T=g(i,o,r,!1)),a==="array"?(l=[],s=t.yref.map(function(z){return x.getFromId(e,z)}),l=t.yref.map(function(z,F){return g(s[F],x.getRefType(z),r,!0)})):(s=x.getFromId(e,t.yref),l=g(s,a,r,!0)),r==="path")return S(t,T,l);if(o==="array")h=E(i[0],t.x0shift),c=E(i[1],t.x1shift),_=T[0](t.x0)+h,w=T[1](t.x1)+c;else if(h=E(i,t.x0shift),c=E(i,t.x1shift),t.xsizemode==="pixel"){let z=T(t.xanchor);_=z+t.x0+h,w=z+t.x1+c}else _=T(t.x0)+h,w=T(t.x1)+c;if(a==="array")m=E(s[0],t.y0shift),p=E(s[1],t.y1shift),A=l[0](t.y0)+m,M=l[1](t.y1)+p;else if(m=E(s,t.y0shift),p=E(s,t.y1shift),t.ysizemode==="pixel"){let z=l(t.yanchor);A=z-t.y0+m,M=z-t.y1+p}else A=l(t.y0)+m,M=l(t.y1)+p;if(r==="line")return"M"+_+","+A+"L"+w+","+M;if(r==="rect")return"M"+_+","+A+"H"+w+"V"+M+"H"+_+"Z";var b=(_+w)/2,d=(A+M)/2,u=Math.abs(b-_),y=Math.abs(d-A),f="A"+u+","+y,R=b+u+","+d,L=b+","+(d-y);return"M"+R+f+" 0 1,1 "+L+f+" 0 0,1 "+R+"Z"};function S(e,t,r){let o=e.path,a=e.xsizemode,n=e.ysizemode,i=e.xanchor,s=e.yanchor,h=Array.isArray(e.xref),c=Array.isArray(e.yref);var m=0,p=0;return o.replace(G.segmentRE,function(T){var l=0,_=T.charAt(0),w=G.paramIsX[_],A=G.paramIsY[_],M=G.numParams[_];let g=w.drawn!==void 0,b=A.drawn!==void 0,d=h?t[m]:t,u=c?r[p]:r;var y=T.slice(1).replace(G.paramRE,function(f){return w[l]?a==="pixel"?f=d(i)+Number(f):f=d(f):A[l]&&(n==="pixel"?f=u(s)-Number(f):f=u(f)),l++,l>M&&(f="X"),f});return l>M&&(y=y.replace(/[\s,]*X.*/,""),v.log("Ignoring extra params in segment "+T)),g&&m++,b&&p++,_+y})}function E(e,t){t=t||0;var r=0;return t&&e&&(e.type==="category"||e.type==="multicategory")&&(r=(e.r2p(1)-e.r2p(0))*t),r}}}),w5=Xe({"src/components/shapes/display_labels.js"(Z,G){"use strict";var v=sa(),x=Go(),S=ou(),E=es(),e=r0().readPaths,t=a0(),r=t.getPathString,o=v2(),a=uh().FROM_TL;G.exports=function(h,c,m,p){if(p.selectAll(".shape-label").remove(),!!(m.label.text||m.label.texttemplate)){var T;if(m.label.texttemplate){var l={};if(m.type!=="path"){var _=x.getFromId(h,m.xref),w=x.getFromId(h,m.yref);let j=Array.isArray(m.xref),Q=Array.isArray(m.yref);for(var A in o){var M=typeof o[A]=="function",g=!j||o.simpleXVariables.includes(A),b=!Q||o.simpleYVariables.includes(A);if(M&&g&&b){var d=o[A](m,_,w);d!==void 0&&(l[A]=d)}}}T=v.texttemplateStringForShapes({data:[l],fallback:m.label.texttemplatefallback,locale:h._fullLayout._d3locale,template:m.label.texttemplate})}else T=m.label.text;var u={"data-index":c},y=m.label.font,f={"data-notex":1},R=p.append("g").attr(u).classed("shape-label",!0),L=R.append("text").attr(f).classed("shape-label-text",!0).text(T),z,F,N,O;if(m.path){var P=r(h,m),U=e(P,h);z=1/0,N=1/0,F=-1/0,O=-1/0;for(var B=0;B<U.length;B++)for(var X=0;X<U[B].length;X++)for(var $=U[B][X],se=1;se<$.length;se+=2){var le=$[se],fe=$[se+1];z=Math.min(z,le),F=Math.max(F,le),N=Math.min(N,fe),O=Math.max(O,fe)}}else{let j=Array.isArray(m.xref),Q=Array.isArray(m.yref),re=x.getFromId(h,j?m.xref[0]:m.xref),ce=x.getFromId(h,j?m.xref[1]:m.xref),be=x.getFromId(h,Q?m.yref[0]:m.yref),Ae=x.getFromId(h,Q?m.yref[1]:m.yref),De=x.getRefType(j?m.xref[0]:m.xref),ze=x.getRefType(j?m.xref[1]:m.xref),Ze=x.getRefType(Q?m.yref[0]:m.yref),at=x.getRefType(Q?m.yref[1]:m.yref),nt=function(st,Me,ye,he){return t.getDataToPixel(h,ye,Me,!1,he)(st)},rt=function(st,Me,ye,he){return t.getDataToPixel(h,ye,Me,!0,he)(st)};z=nt(m.x0,m.x0shift,re,De),F=nt(m.x1,m.x1shift,ce,ze),N=rt(m.y0,m.y0shift,be,Ze),O=rt(m.y1,m.y1shift,Ae,at)}var V=m.label.textangle;V==="auto"&&(m.type==="line"?V=n(z,N,F,O):V=0),L.call(function(j){return j.call(E.font,y).attr({}),S.convertToTspans(j,h),j});var Y=E.bBox(L.node()),ee=i(z,N,F,O,m,V,Y),q=ee.textx,oe=ee.texty,ae=ee.xanchor;L.attr({"text-anchor":{left:"start",center:"middle",right:"end"}[ae],y:oe,x:q,transform:"rotate("+V+","+q+","+oe+")"}).call(S.positionText,q,oe)}};function n(s,h,c,m){var p,T;return T=Math.abs(c-s),c>=s?p=h-m:p=m-h,-180/Math.PI*Math.atan2(p,T)}function i(s,h,c,m,p,T,l){var _=p.label.textposition,w=p.label.textangle,A=p.label.padding,M=p.type,g=Math.PI/180*T,b=Math.sin(g),d=Math.cos(g),u=p.label.xanchor,y=p.label.yanchor,f,R,L,z;if(M==="line"){_==="start"?(f=s,R=h):_==="end"?(f=c,R=m):(f=(s+c)/2,R=(h+m)/2),u==="auto"&&(_==="start"?w==="auto"?c>s?u="left":c<s?u="right":u="center":c>s?u="right":c<s?u="left":u="center":_==="end"?w==="auto"?c>s?u="right":c<s?u="left":u="center":c>s?u="left":c<s?u="right":u="center":u="center");var F={left:1,center:0,right:-1},N={bottom:-1,middle:0,top:1};if(w==="auto"){var O=N[y];L=-A*b*O,z=A*d*O}else{var P=F[u],U=N[y];L=A*P,z=A*U}f=f+L,R=R+z}else L=A+3,_.indexOf("right")!==-1?(f=Math.max(s,c)-L,u==="auto"&&(u="right")):_.indexOf("left")!==-1?(f=Math.min(s,c)+L,u==="auto"&&(u="left")):(f=(s+c)/2,u==="auto"&&(u="center")),_.indexOf("top")!==-1?R=Math.min(h,m):_.indexOf("bottom")!==-1?R=Math.max(h,m):R=(h+m)/2,z=A,y==="bottom"?R=R-z:y==="top"&&(R=R+z);var B=a[y],X=p.label.font.size,$=l.height,se=($*B-X)*b,le=-($*B-X)*d;return{textx:f+se,texty:R+le,xanchor:u}}}}),M2=Xe({"src/components/shapes/display_outlines.js"(Z,G){"use strict";var v=sa(),x=v.strTranslate,S=Ap(),E=Jd(),e=E.drawMode,t=E.selectMode,r=so(),o=$n(),a=T2(),n=a.i000,i=a.i090,s=a.i180,h=a.i270,c=$m(),m=c.clearOutlineControllers,p=r0(),T=p.pointsOnRectangle,l=p.pointsOnEllipse,_=p.writePaths,w=S2().newShapes,A=S2().createShapeObj,M=b5(),g=w5();G.exports=function y(f,R,L,z){z||(z=0);var F=L.gd;function N(){y(f,R,L,z++),(l(f[0])||L.hasText)&&O({redrawing:!0})}function O(rt){var st={};L.isActiveShape!==void 0&&(L.isActiveShape=!1,st=w(R,L)),L.isActiveSelection!==void 0&&(L.isActiveSelection=!1,st=M(R,L),F._fullLayout._reselect=!0),Object.keys(st).length&&r.call((rt||{}).redrawing?"relayout":"_guiRelayout",F,st)}var P=F._fullLayout,U=P._zoomlayer,B=L.dragmode,X=e(B),$=t(B);(X||$)&&(F._fullLayout._outlining=!0),m(F),R.attr("d",_(f));var se,le,fe,V,Y;if(!z&&(L.isActiveShape||L.isActiveSelection)){Y=b([],f);var ee=U.append("g").attr("class","outline-controllers");be(ee),nt()}if(X&&L.hasText){var q=U.select(".label-temp"),oe=A(R,L,L.dragmode);g(F,"label-temp",oe,q)}function ae(rt){fe=+rt.srcElement.getAttribute("data-i"),V=+rt.srcElement.getAttribute("data-j"),se[fe][V].moveFn=j}function j(rt,st){if(f.length){var Me=Y[fe][V][1],ye=Y[fe][V][2],he=f[fe],Oe=he.length;if(T(he)){var tt=rt,ot=st;if(L.isActiveSelection){var Qe=d(he,V);Qe[1]===he[V][1]?ot=0:tt=0}for(var Pt=0;Pt<Oe;Pt++)if(Pt!==V){var It=he[Pt];It[1]===he[V][1]&&(It[1]=Me+tt),It[2]===he[V][2]&&(It[2]=ye+ot)}if(he[V][1]=Me+tt,he[V][2]=ye+ot,!T(he))for(var qt=0;qt<Oe;qt++)for(var Wt=0;Wt<he[qt].length;Wt++)he[qt][Wt]=Y[fe][qt][Wt]}else he[V][1]=Me+rt,he[V][2]=ye+st;N()}}function Q(){O()}function re(){if(f.length&&f[fe]&&f[fe].length){for(var rt=[],st=0;st<f[fe].length;st++)st!==V&&rt.push(f[fe][st]);rt.length>1&&!(rt.length===2&&rt[1][0]==="Z")&&(V===0&&(rt[0][0]="M"),f[fe]=rt,N(),O())}}function ce(rt,st){if(rt===2){fe=+st.srcElement.getAttribute("data-i"),V=+st.srcElement.getAttribute("data-j");var Me=f[fe];!T(Me)&&!l(Me)&&re()}}function be(rt){se=[];for(var st=0;st<f.length;st++){var Me=f[st],ye=T(Me),he=!ye&&l(Me);se[st]=[];for(var Oe=Me.length,tt=0;tt<Oe;tt++)if(Me[tt][0]!=="Z"&&!(he&&tt!==n&&tt!==i&&tt!==s&&tt!==h)){var ot=ye&&L.isActiveSelection,Qe;ot&&(Qe=d(Me,tt));var Pt=Me[tt][1],It=Me[tt][2],qt=rt.append(ot?"rect":"circle").attr("data-i",st).attr("data-j",tt).style({fill:o.background,stroke:o.defaultLine,"stroke-width":1,"shape-rendering":"crispEdges"});if(ot){var Wt=Qe[1]-Pt,kr=Qe[2]-It,mr=kr?5:Math.max(Math.min(25,Math.abs(Wt)-5),5),qr=Wt?5:Math.max(Math.min(25,Math.abs(kr)-5),5);qt.classed(kr?"cursor-ew-resize":"cursor-ns-resize",!0).attr("width",mr).attr("height",qr).attr("x",Pt-mr/2).attr("y",It-qr/2).attr("transform",x(Wt/2,kr/2))}else qt.classed("cursor-grab",!0).attr("r",5).attr("cx",Pt).attr("cy",It);se[st][tt]={element:qt.node(),gd:F,prepFn:ae,doneFn:Q,clickFn:ce},S.init(se[st][tt])}}}function Ae(rt,st){if(f.length)for(var Me=0;Me<f.length;Me++)for(var ye=0;ye<f[Me].length;ye++)for(var he=0;he+2<f[Me][ye].length;he+=2)f[Me][ye][he+1]=Y[Me][ye][he+1]+rt,f[Me][ye][he+2]=Y[Me][ye][he+2]+st}function De(rt,st){Ae(rt,st),N()}function ze(rt){fe=+rt.srcElement.getAttribute("data-i"),fe||(fe=0),le[fe].moveFn=De}function Ze(){O()}function at(rt){rt===2&&u(F)}function nt(){if(le=[],!!f.length){var rt=0;le[rt]={element:R[0][0],gd:F,prepFn:ze,doneFn:Ze,clickFn:at},S.init(le[rt])}}};function b(y,f){for(var R=0;R<f.length;R++){var L=f[R];y[R]=[];for(var z=0;z<L.length;z++){y[R][z]=[];for(var F=0;F<L[z].length;F++)y[R][z][F]=L[z][F]}}return y}function d(y,f){var R=y[f][1],L=y[f][2],z=y.length,F,N,O;return F=(f+1)%z,N=y[F][1],O=y[F][2],N===R&&O===L&&(F=(f+2)%z,N=y[F][1],O=y[F][2]),[F,N,O]}function u(y){if(t(y._fullLayout.dragmode)){m(y);var f=y._fullLayout._activeSelectionIndex,R=(y.layout||{}).selections||[];if(f<R.length){for(var L=[],z=0;z<R.length;z++)z!==f&&L.push(R[z]);delete y._fullLayout._activeSelectionIndex;var F=y._fullLayout.selections[f];y._fullLayout._deselect={xref:F.xref,yref:F.yref},r.call("_guiRelayout",y,{selections:L})}}}}}),E2=Xe({"src/components/shapes/draw.js"(Z,G){"use strict";var v=Hn(),x=so(),S=sa(),E=Go(),e=r0().readPaths,t=M2(),r=w5(),o=$m().clearOutlineControllers,a=$n(),n=es(),i=zl().arrayEditor,s=Ap(),h=Kd(),c=L_(),m=a0(),p=m.getPathString;G.exports={draw:T,drawOne:w,eraseActiveShape:y,drawLabel:r};function T(f){var R=f._fullLayout;R._shapeUpperLayer.selectAll("path").remove(),R._shapeLowerLayer.selectAll("path").remove(),R._shapeUpperLayer.selectAll("text").remove(),R._shapeLowerLayer.selectAll("text").remove();for(var L in R._plots){var z=R._plots[L].shapelayer;z&&(z.selectAll("path").remove(),z.selectAll("text").remove())}for(var F=0;F<R.shapes.length;F++)R.shapes[F].visible===!0&&w(f,F)}function l(f){return!!f._fullLayout._outlining}function _(f){return!f._context.edits.shapePosition}function w(f,R){f._fullLayout._paperdiv.selectAll('.shapelayer [data-index="'+R+'"]').remove();var L=m.makeShapesOptionsAndPlotinfo(f,R),z=L.options,F=L.plotinfo;if(!z._input||z.visible!==!0)return;let N=Array.isArray(z.xref)||Array.isArray(z.yref);if(z.layer==="above")P(f._fullLayout._shapeUpperLayer);else if(z.xref.includes("paper")||z.yref.includes("paper"))P(f._fullLayout._shapeLowerLayer);else if(z.layer==="between"&&!N)P(F.shapelayerBetween);else if(F._hadPlotinfo){var O=F.mainplotinfo||F;P(O.shapelayer)}else P(f._fullLayout._shapeLowerLayer);function P(U){var B=p(f,z),X={"data-index":R,"fill-rule":z.fillrule,d:B},$=z.opacity,se=z.fillcolor,le=z.line.width?z.line.color:"rgba(0,0,0,0)",fe=z.line.width,V=z.line.dash;!fe&&z.editable===!0&&(fe=5,V="solid");var Y=B[B.length-1]!=="Z",ee=_(f)&&z.editable&&f._fullLayout._activeShapeIndex===R;ee&&(se=Y?"rgba(0,0,0,0)":f._fullLayout.activeshape.fillcolor,$=f._fullLayout.activeshape.opacity);var q=U.append("g").classed("shape-group",!0).attr({"data-index":R}),oe=q.append("path").attr(X).style("opacity",$).call(a.stroke,le).call(a.fill,se).call(n.dashLine,V,fe);A(q,f,z),r(f,R,z,q);var ae;if((ee||f._context.edits.shapePosition)&&(ae=i(f.layout,"shapes",z)),ee){oe.style({cursor:"move"});var j={element:oe.node(),plotinfo:F,gd:f,editHelpers:ae,hasText:z.label.text||z.label.texttemplate,isActiveShape:!0},Q=e(B,f);t(Q,oe,j)}else f._context.edits.shapePosition?g(f,oe,z,R,U,ae):z.editable===!0&&oe.style("pointer-events",Y||a.opacity(se)*$<=.5?"stroke":"all");oe.node().addEventListener("click",function(){return d(f,oe)})}}function A(f,R,L){let z=L.xref,F=L.yref;if(Array.isArray(z)||Array.isArray(F)){let N="clip"+R._fullLayout._uid+"shape"+L._index,O=M(R,z,F);S.ensureSingleById(R._fullLayout._clips,"clipPath",N,function(P){P.append("rect")}).select("rect").attr(O),n.setClipUrl(f,N,R)}else{let N=(z+F).replace(/paper/g,"").replace(/[xyz][0-9]* *domain/g,"");n.setClipUrl(f,N?"clip"+R._fullLayout._uid+N:null,R)}}function M(f,R,L){let z=f._fullLayout._size;function F(P,U){let B=(Array.isArray(P)?P:[P]).map(se=>E.getFromId(f,se)).filter(Boolean);if(!B.length)return U?[z.t,z.t+z.h]:[z.l,z.l+z.w];let X=B.map(function(se){return se._offset}),$=B.map(function(se){return se._offset+se._length});return[Math.min(...X),Math.max(...$)]}let N=F(R,!1),O=F(L,!0);return{x:N[0],y:O[0],width:N[1]-N[0],height:O[1]-O[0]}}function g(f,R,L,z,F,N){var O=10,P=10,U=L.xsizemode==="pixel",B=L.ysizemode==="pixel",X=L.type==="line",$=L.type==="path",se=N.modifyItem,le,fe,V,Y,ee,q,oe,ae,j,Q,re,ce,be,Ae,De,ze=v.select(R.node().parentNode),Ze=E.getFromId(f,L.xref),at=E.getRefType(L.xref),nt=E.getFromId(f,L.yref),rt=E.getRefType(L.yref),st=L.x0shift,Me=L.x1shift,ye=L.y0shift,he=L.y1shift,Oe=function(Ve,Ce){var Ee=m.getDataToPixel(f,Ze,Ce,!1,at);return Ee(Ve)},tt=function(Ve,Ce){var Ee=m.getDataToPixel(f,nt,Ce,!0,rt);return Ee(Ve)},ot=m.getPixelToData(f,Ze,!1,at),Qe=m.getPixelToData(f,nt,!0,rt),Pt=Wt(),It={element:Pt.node(),gd:f,prepFn:qr,doneFn:Sr,clickFn:Rr},qt;s.init(It),Pt.node().onmousemove=mr;function Wt(){return X?kr():R}function kr(){var Ve=10,Ce=Math.max(L.line.width,Ve),Ee=F.append("g").attr("data-index",z).attr("drag-helper",!0);Ee.append("path").attr("d",R.attr("d")).style({cursor:"move","stroke-width":Ce,"stroke-opacity":"0"});var Pe={"fill-opacity":"0"},ft=Math.max(Ce/2,Ve);return Ee.append("circle").attr({"data-line-point":"start-point",cx:U?Oe(L.xanchor)+L.x0:Oe(L.x0,st),cy:B?tt(L.yanchor)-L.y0:tt(L.y0,ye),r:ft}).style(Pe).classed("cursor-grab",!0),Ee.append("circle").attr({"data-line-point":"end-point",cx:U?Oe(L.xanchor)+L.x1:Oe(L.x1,Me),cy:B?tt(L.yanchor)-L.y1:tt(L.y1,he),r:ft}).style(Pe).classed("cursor-grab",!0),Ee}function mr(Ve){if(l(f)){qt=null;return}if(X)Ve.target.tagName==="path"?qt="move":qt=Ve.target.attributes["data-line-point"].value==="start-point"?"resize-over-start-point":"resize-over-end-point";else{var Ce=It.element.getBoundingClientRect(),Ee=Ce.right-Ce.left,Pe=Ce.bottom-Ce.top,ft=Ve.clientX-Ce.left,ct=Ve.clientY-Ce.top,_t=!$&&Ee>O&&Pe>P&&!Ve.shiftKey?s.getCursor(ft/Ee,1-ct/Pe):"move";h(R,_t),qt=_t.split("-")[0]}}function qr(Ve){l(f)||(U&&(ee=Oe(L.xanchor)),B&&(q=tt(L.yanchor)),L.type==="path"?De=L.path:(le=U?L.x0:Oe(L.x0),fe=B?L.y0:tt(L.y0),V=U?L.x1:Oe(L.x1),Y=B?L.y1:tt(L.y1)),le<V?(j=le,be="x0",Q=V,Ae="x1"):(j=V,be="x1",Q=le,Ae="x0"),!B&&fe<Y||B&&fe>Y?(oe=fe,re="y0",ae=Y,ce="y1"):(oe=Y,re="y1",ae=fe,ce="y0"),mr(Ve),Ke(F,L),Ie(R,L,f),It.moveFn=qt==="move"?wt:Ne,It.altKey=Ve.altKey)}function Sr(){l(f)||(h(R),Te(F),A(R,f,L),x.call("_guiRelayout",f,N.getUpdateObj()))}function Rr(){l(f)||Te(F)}function wt(Ve,Ce){if(L.type==="path"){var Ee=function(ct){return ct},Pe=Ee,ft=Ee;U?se("xanchor",L.xanchor=ot(ee+Ve)):(Pe=function(_t){return ot(Oe(_t)+Ve)},Ze&&Ze.type==="date"&&(Pe=m.encodeDate(Pe))),B?se("yanchor",L.yanchor=Qe(q+Ce)):(ft=function(_t){return Qe(tt(_t)+Ce)},nt&&nt.type==="date"&&(ft=m.encodeDate(ft))),se("path",L.path=b(De,Pe,ft))}else U?se("xanchor",L.xanchor=ot(ee+Ve)):(se("x0",L.x0=ot(le+Ve)),se("x1",L.x1=ot(V+Ve))),B?se("yanchor",L.yanchor=Qe(q+Ce)):(se("y0",L.y0=Qe(fe+Ce)),se("y1",L.y1=Qe(Y+Ce)));R.attr("d",p(f,L)),Ke(F,L),r(f,z,L,ze)}function Ne(Ve,Ce){if($){var Ee=function(hi){return hi},Pe=Ee,ft=Ee;U?se("xanchor",L.xanchor=ot(ee+Ve)):(Pe=function(wi){return ot(Oe(wi)+Ve)},Ze&&Ze.type==="date"&&(Pe=m.encodeDate(Pe))),B?se("yanchor",L.yanchor=Qe(q+Ce)):(ft=function(wi){return Qe(tt(wi)+Ce)},nt&&nt.type==="date"&&(ft=m.encodeDate(ft))),se("path",L.path=b(De,Pe,ft))}else if(X){if(qt==="resize-over-start-point"){var ct=le+Ve,_t=B?fe-Ce:fe+Ce;se("x0",L.x0=U?ct:ot(ct)),se("y0",L.y0=B?_t:Qe(_t))}else if(qt==="resize-over-end-point"){var Ct=V+Ve,ir=B?Y-Ce:Y+Ce;se("x1",L.x1=U?Ct:ot(Ct)),se("y1",L.y1=B?ir:Qe(ir))}}else{var rr=function(hi){return qt.indexOf(hi)!==-1},er=rr("n"),Lr=rr("s"),fa=rr("w"),Da=rr("e"),Ia=er?oe+Ce:oe,qa=Lr?ae+Ce:ae,Wa=fa?j+Ve:j,Ca=Da?Q+Ve:Q;B&&(er&&(Ia=oe-Ce),Lr&&(qa=ae-Ce)),(!B&&qa-Ia>P||B&&Ia-qa>P)&&(se(re,L[re]=B?Ia:Qe(Ia)),se(ce,L[ce]=B?qa:Qe(qa))),Ca-Wa>O&&(se(be,L[be]=U?Wa:ot(Wa)),se(Ae,L[Ae]=U?Ca:ot(Ca)))}R.attr("d",p(f,L)),Ke(F,L),r(f,z,L,ze)}function Ke(Ve,Ce){(U||B)&&Ee();function Ee(){var Pe=Ce.type!=="path",ft=Ve.selectAll(".visual-cue").data([0]),ct=1;ft.enter().append("path").attr({fill:"#fff","fill-rule":"evenodd",stroke:"#000","stroke-width":ct}).classed("visual-cue",!0);var _t=Oe(U?Ce.xanchor:S.midRange(Pe?[Ce.x0,Ce.x1]:m.extractPathCoords(Ce.path,c.paramIsX))),Ct=tt(B?Ce.yanchor:S.midRange(Pe?[Ce.y0,Ce.y1]:m.extractPathCoords(Ce.path,c.paramIsY)));if(_t=m.roundPositionForSharpStrokeRendering(_t,ct),Ct=m.roundPositionForSharpStrokeRendering(Ct,ct),U&&B){var ir="M"+(_t-1-ct)+","+(Ct-1-ct)+"h-8v2h8 v8h2v-8 h8v-2h-8 v-8h-2 Z";ft.attr("d",ir)}else if(U){var rr="M"+(_t-1-ct)+","+(Ct-9-ct)+"v18 h2 v-18 Z";ft.attr("d",rr)}else{var er="M"+(_t-9-ct)+","+(Ct-1-ct)+"h18 v2 h-18 Z";ft.attr("d",er)}}}function Te(Ve){Ve.selectAll(".visual-cue").remove()}function Ie(Ve,Ce,Ee){var Pe=Ce.xref,ft=Ce.yref,ct=E.getFromId(Ee,Pe),_t=E.getFromId(Ee,ft),Ct="";Pe!=="paper"&&!ct.autorange&&(Ct+=Pe),ft!=="paper"&&!_t.autorange&&(Ct+=ft),n.setClipUrl(Ve,Ct?"clip"+Ee._fullLayout._uid+Ct:null,Ee)}}function b(f,R,L){return f.replace(c.segmentRE,function(z){var F=0,N=z.charAt(0),O=c.paramIsX[N],P=c.paramIsY[N],U=c.numParams[N],B=z.slice(1).replace(c.paramRE,function(X){return F>=U||(O[F]?X=R(X):P[F]&&(X=L(X)),F++),X});return N+B})}function d(f,R){if(_(f)){var L=R.node(),z=+L.getAttribute("data-index");if(z>=0){if(z===f._fullLayout._activeShapeIndex){u(f);return}f._fullLayout._activeShapeIndex=z,f._fullLayout._deactivateShape=u,T(f)}}}function u(f){if(_(f)){var R=f._fullLayout._activeShapeIndex;R>=0&&(o(f),delete f._fullLayout._activeShapeIndex,T(f))}}function y(f){if(_(f)){o(f);var R=f._fullLayout._activeShapeIndex,L=(f.layout||{}).shapes||[];if(R<L.length){for(var z=[],F=0;F<L.length;F++)F!==R&&z.push(L[F]);return delete f._fullLayout._activeShapeIndex,x.call("_guiRelayout",f,{shapes:z})}}}}}),T5=Xe({"src/components/modebar/buttons.js"(Z,G){"use strict";var v=so(),x=bc(),S=ef(),E=w2(),e=E2().eraseActiveShape,t=sa(),r=t._,o=G.exports={};o.toImage={name:"toImage",title:function(M){var g=M._context.toImageButtonOptions||{},b=g.format||"png";return b==="png"?r(M,"Download plot as a PNG"):r(M,"Download plot")},icon:E.camera,click:function(M){var g=M._context.toImageButtonOptions,b={format:g.format||"png"};t.notifier(r(M,"Taking snapshot - this may take a few seconds"),"long"),["filename","width","height","scale"].forEach(function(d){d in g&&(b[d]=g[d])}),v.call("downloadImage",M,b).then(function(d){t.notifier(r(M,"Snapshot succeeded")+" - "+d,"long")}).catch(function(){t.notifier(r(M,"Sorry, there was a problem downloading your snapshot!"),"long")})}},o.sendDataToCloud={name:"sendDataToCloud",title:function(M){return r(M,"Edit in Chart Studio")},icon:E.disk,click:function(M){x.sendDataToCloud(M)}},o.editInChartStudio={name:"editInChartStudio",title:function(M){return r(M,"Edit in Chart Studio")},icon:E.pencil,click:function(M){x.sendDataToCloud(M)}},o.zoom2d={name:"zoom2d",_cat:"zoom",title:function(M){return r(M,"Zoom")},attr:"dragmode",val:"zoom",icon:E.zoombox,click:a},o.pan2d={name:"pan2d",_cat:"pan",title:function(M){return r(M,"Pan")},attr:"dragmode",val:"pan",icon:E.pan,click:a},o.select2d={name:"select2d",_cat:"select",title:function(M){return r(M,"Box Select")},attr:"dragmode",val:"select",icon:E.selectbox,click:a},o.lasso2d={name:"lasso2d",_cat:"lasso",title:function(M){return r(M,"Lasso Select")},attr:"dragmode",val:"lasso",icon:E.lasso,click:a},o.drawclosedpath={name:"drawclosedpath",title:function(M){return r(M,"Draw closed freeform")},attr:"dragmode",val:"drawclosedpath",icon:E.drawclosedpath,click:a},o.drawopenpath={name:"drawopenpath",title:function(M){return r(M,"Draw open freeform")},attr:"dragmode",val:"drawopenpath",icon:E.drawopenpath,click:a},o.drawline={name:"drawline",title:function(M){return r(M,"Draw line")},attr:"dragmode",val:"drawline",icon:E.drawline,click:a},o.drawrect={name:"drawrect",title:function(M){return r(M,"Draw rectangle")},attr:"dragmode",val:"drawrect",icon:E.drawrect,click:a},o.drawcircle={name:"drawcircle",title:function(M){return r(M,"Draw circle")},attr:"dragmode",val:"drawcircle",icon:E.drawcircle,click:a},o.eraseshape={name:"eraseshape",title:function(M){return r(M,"Erase active shape")},icon:E.eraseshape,click:e},o.zoomIn2d={name:"zoomIn2d",_cat:"zoomin",title:function(M){return r(M,"Zoom in")},attr:"zoom",val:"in",icon:E.zoom_plus,click:a},o.zoomOut2d={name:"zoomOut2d",_cat:"zoomout",title:function(M){return r(M,"Zoom out")},attr:"zoom",val:"out",icon:E.zoom_minus,click:a},o.autoScale2d={name:"autoScale2d",_cat:"autoscale",title:function(M){return r(M,"Autoscale")},attr:"zoom",val:"auto",icon:E.autoscale,click:a},o.resetScale2d={name:"resetScale2d",_cat:"resetscale",title:function(M){return r(M,"Reset axes")},attr:"zoom",val:"reset",icon:E.home,click:a},o.hoverClosestCartesian={name:"hoverClosestCartesian",_cat:"hoverclosest",title:function(M){return r(M,"Show closest data on hover")},attr:"hovermode",val:"closest",icon:E.tooltip_basic,gravity:"ne",click:a},o.hoverCompareCartesian={name:"hoverCompareCartesian",_cat:"hoverCompare",title:function(M){return r(M,"Compare data on hover")},attr:"hovermode",val:function(M){return M._fullLayout._isHoriz?"y":"x"},icon:E.tooltip_compare,gravity:"ne",click:a};function a(M,g){var b=g.currentTarget,d=b.getAttribute("data-attr"),u=b.getAttribute("data-val")||!0,y=M._fullLayout,f={},R=S.list(M,null,!0),L=y._cartesianSpikesEnabled,z,F;if(d==="zoom"){var N=u==="in"?.5:2,O=(1+N)/2,P=(1-N)/2,U,B;for(F=0;F<R.length;F++)if(z=R[F],B=z.modebardisable==="none"||z.modebardisable.indexOf(u==="auto"||u==="reset"?"autoscale":"zoominout")===-1,B&&!z.fixedrange)if(U=z._name,u==="auto")f[U+".autorange"]=!0;else if(u==="reset")z._rangeInitial0===void 0&&z._rangeInitial1===void 0?f[U+".autorange"]=!0:z._rangeInitial0===void 0?(f[U+".autorange"]=z._autorangeInitial,f[U+".range"]=[null,z._rangeInitial1]):z._rangeInitial1===void 0?(f[U+".range"]=[z._rangeInitial0,null],f[U+".autorange"]=z._autorangeInitial):f[U+".range"]=[z._rangeInitial0,z._rangeInitial1],z._showSpikeInitial!==void 0&&(f[U+".showspikes"]=z._showSpikeInitial,L==="on"&&!z._showSpikeInitial&&(L="off"));else{var X=[z.r2l(z.range[0]),z.r2l(z.range[1])],$=[O*X[0]+P*X[1],O*X[1]+P*X[0]];f[U+".range[0]"]=z.l2r($[0]),f[U+".range[1]"]=z.l2r($[1])}}else d==="hovermode"&&(u==="x"||u==="y")&&(u=y._isHoriz?"y":"x",b.setAttribute("data-val",u)),f[d]=u;y._cartesianSpikesEnabled=L,v.call("_guiRelayout",M,f)}o.zoom3d={name:"zoom3d",_cat:"zoom",title:function(M){return r(M,"Zoom")},attr:"scene.dragmode",val:"zoom",icon:E.zoombox,click:n},o.pan3d={name:"pan3d",_cat:"pan",title:function(M){return r(M,"Pan")},attr:"scene.dragmode",val:"pan",icon:E.pan,click:n},o.orbitRotation={name:"orbitRotation",title:function(M){return r(M,"Orbital rotation")},attr:"scene.dragmode",val:"orbit",icon:E["3d_rotate"],click:n},o.tableRotation={name:"tableRotation",title:function(M){return r(M,"Turntable rotation")},attr:"scene.dragmode",val:"turntable",icon:E["z-axis"],click:n};function n(M,g){for(var b=g.currentTarget,d=b.getAttribute("data-attr"),u=b.getAttribute("data-val")||!0,y=M._fullLayout._subplots.gl3d||[],f={},R=d.split("."),L=0;L<y.length;L++)f[y[L]+"."+R[1]]=u;var z=u==="pan"?u:"zoom";f.dragmode=z,v.call("_guiRelayout",M,f)}o.resetCameraDefault3d={name:"resetCameraDefault3d",_cat:"resetCameraDefault",title:function(M){return r(M,"Reset camera to default")},attr:"resetDefault",icon:E.home,click:i},o.resetCameraLastSave3d={name:"resetCameraLastSave3d",_cat:"resetCameraLastSave",title:function(M){return r(M,"Reset camera to last save")},attr:"resetLastSave",icon:E.movie,click:i};function i(M,g){for(var b=g.currentTarget,d=b.getAttribute("data-attr"),u=d==="resetLastSave",y=d==="resetDefault",f=M._fullLayout,R=f._subplots.gl3d||[],L={},z=0;z<R.length;z++){var F=R[z],N=F+".camera",O=F+".aspectratio",P=F+".aspectmode",U=f[F]._scene,B;u?(L[N+".up"]=U.viewInitial.up,L[N+".eye"]=U.viewInitial.eye,L[N+".center"]=U.viewInitial.center,B=!0):y&&(L[N+".up"]=null,L[N+".eye"]=null,L[N+".center"]=null,B=!0),B&&(L[O+".x"]=U.viewInitial.aspectratio.x,L[O+".y"]=U.viewInitial.aspectratio.y,L[O+".z"]=U.viewInitial.aspectratio.z,L[P]=U.viewInitial.aspectmode)}v.call("_guiRelayout",M,L)}o.hoverClosest3d={name:"hoverClosest3d",_cat:"hoverclosest",title:function(M){return r(M,"Toggle show closest data on hover")},attr:"hovermode",val:null,toggle:!0,icon:E.tooltip_basic,gravity:"ne",click:h};function s(M,g){var b=g.currentTarget,d=b._previousVal,u=M._fullLayout,y=u._subplots.gl3d||[],f=["xaxis","yaxis","zaxis"],R={},L={};if(d)L=d,b._previousVal=null;else{for(var z=0;z<y.length;z++){var F=y[z],N=u[F],O=F+".hovermode";R[O]=N.hovermode,L[O]=!1;for(var P=0;P<3;P++){var U=f[P],B=F+"."+U+".showspikes";L[B]=!1,R[B]=N[U].showspikes}}b._previousVal=R}return L}function h(M,g){var b=s(M,g);v.call("_guiRelayout",M,b)}o.zoomInGeo={name:"zoomInGeo",_cat:"zoomin",title:function(M){return r(M,"Zoom in")},attr:"zoom",val:"in",icon:E.zoom_plus,click:c},o.zoomOutGeo={name:"zoomOutGeo",_cat:"zoomout",title:function(M){return r(M,"Zoom out")},attr:"zoom",val:"out",icon:E.zoom_minus,click:c},o.resetGeo={name:"resetGeo",_cat:"reset",title:function(M){return r(M,"Reset")},attr:"reset",val:null,icon:E.autoscale,click:c},o.hoverClosestGeo={name:"hoverClosestGeo",_cat:"hoverclosest",title:function(M){return r(M,"Toggle show closest data on hover")},attr:"hovermode",val:null,toggle:!0,icon:E.tooltip_basic,gravity:"ne",click:p};function c(M,g){for(var b=g.currentTarget,d=b.getAttribute("data-attr"),u=b.getAttribute("data-val")||!0,y=M._fullLayout,f=y._subplots.geo||[],R=0;R<f.length;R++){var L=f[R],z=y[L];if(d==="zoom"){var F=z.projection.scale,N=u==="in"?2*F:.5*F;v.call("_guiRelayout",M,L+".projection.scale",N)}}d==="reset"&&A(M,"geo")}o.hoverClosestPie={name:"hoverClosestPie",_cat:"hoverclosest",title:function(M){return r(M,"Toggle show closest data on hover")},attr:"hovermode",val:"closest",icon:E.tooltip_basic,gravity:"ne",click:p};function m(M){var g=M._fullLayout;return g.hovermode?!1:g._has("cartesian")?g._isHoriz?"y":"x":"closest"}function p(M){var g=m(M);v.call("_guiRelayout",M,"hovermode",g)}o.resetViewSankey={name:"resetSankeyGroup",title:function(M){return r(M,"Reset view")},icon:E.home,click:function(M){for(var g={"node.groups":[],"node.x":[],"node.y":[]},b=0;b<M._fullData.length;b++){var d=M._fullData[b]._viewInitial;g["node.groups"].push(d.node.groups.slice()),g["node.x"].push(d.node.x.slice()),g["node.y"].push(d.node.y.slice())}v.call("restyle",M,g)}},o.toggleHover={name:"toggleHover",title:function(M){return r(M,"Toggle show closest data on hover")},attr:"hovermode",val:null,toggle:!0,icon:E.tooltip_basic,gravity:"ne",click:function(M,g){var b=s(M,g);b.hovermode=m(M),v.call("_guiRelayout",M,b)}},o.resetViews={name:"resetViews",title:function(M){return r(M,"Reset views")},icon:E.home,click:function(M,g){var b=g.currentTarget;b.setAttribute("data-attr","zoom"),b.setAttribute("data-val","reset"),a(M,g),b.setAttribute("data-attr","resetLastSave"),i(M,g),A(M,"geo"),A(M,"mapbox"),A(M,"map")}},o.toggleSpikelines={name:"toggleSpikelines",title:function(M){return r(M,"Toggle Spike Lines")},icon:E.spikeline,attr:"_cartesianSpikesEnabled",val:"on",click:function(M){var g=M._fullLayout,b=g._cartesianSpikesEnabled;g._cartesianSpikesEnabled=b==="on"?"off":"on",v.call("_guiRelayout",M,T(M))}};function T(M){for(var g=M._fullLayout,b=g._cartesianSpikesEnabled==="on",d=S.list(M,null,!0),u={},y=0;y<d.length;y++){var f=d[y];u[f._name+".showspikes"]=b?!0:f._showSpikeInitial}return u}o.resetViewMapbox={name:"resetViewMapbox",_cat:"resetView",title:function(M){return r(M,"Reset view")},attr:"reset",icon:E.home,click:function(M){A(M,"mapbox")}},o.resetViewMap={name:"resetViewMap",_cat:"resetView",title:function(M){return r(M,"Reset view")},attr:"reset",icon:E.home,click:function(M){A(M,"map")}},o.zoomInMapbox={name:"zoomInMapbox",_cat:"zoomin",title:function(M){return r(M,"Zoom in")},attr:"zoom",val:"in",icon:E.zoom_plus,click:l},o.zoomInMap={name:"zoomInMap",_cat:"zoomin",title:function(M){return r(M,"Zoom in")},attr:"zoom",val:"in",icon:E.zoom_plus,click:_},o.zoomOutMapbox={name:"zoomOutMapbox",_cat:"zoomout",title:function(M){return r(M,"Zoom out")},attr:"zoom",val:"out",icon:E.zoom_minus,click:l},o.zoomOutMap={name:"zoomOutMap",_cat:"zoomout",title:function(M){return r(M,"Zoom out")},attr:"zoom",val:"out",icon:E.zoom_minus,click:_};function l(M,g){w(M,g,"mapbox")}function _(M,g){w(M,g,"map")}function w(M,g,b){for(var d=g.currentTarget,u=d.getAttribute("data-val"),y=M._fullLayout,f=y._subplots[b]||[],R=1.05,L={},z=0;z<f.length;z++){var F=f[z],N=y[F].zoom,O=u==="in"?R*N:N/R;L[F+".zoom"]=O}v.call("_guiRelayout",M,L)}function A(M,g){for(var b=M._fullLayout,d=b._subplots[g]||[],u={},y=0;y<d.length;y++)for(var f=d[y],R=b[f]._subplot,L=R.viewInitial,z=Object.keys(L),F=0;F<z.length;F++){var N=z[F];u[f+"."+N]=L[N]}v.call("_guiRelayout",M,u)}}}),A5=Xe({"src/components/modebar/constants.js"(Z,G){"use strict";var v=T5(),x=Object.keys(v),S=["drawline","drawopenpath","drawclosedpath","drawcircle","drawrect","eraseshape"],E=["v1hovermode","hoverclosest","hovercompare","togglehover","togglespikelines"].concat(S),e=[],t=function(r){if(E.indexOf(r._cat||r.name)===-1){var o=r.name,a=(r._cat||r.name).toLowerCase();e.indexOf(o)===-1&&e.push(o),e.indexOf(a)===-1&&e.push(a)}};x.forEach(function(r){t(v[r])}),e.sort(),G.exports={DRAW_MODES:S,backButtons:E,foreButtons:e}}}),S5=Xe({"src/components/modebar/attributes.js"(Z,G){"use strict";var v=A5();G.exports={editType:"modebar",orientation:{valType:"enumerated",values:["v","h"],dflt:"h",editType:"modebar"},bgcolor:{valType:"color",editType:"modebar"},color:{valType:"color",editType:"modebar"},activecolor:{valType:"color",editType:"modebar"},uirevision:{valType:"any",editType:"none"},add:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar"},remove:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar"}}}}),bz=Xe({"src/components/modebar/defaults.js"(Z,G){"use strict";var v=sa(),x=$n(),S=zl(),E=S5();G.exports=function(t,r){var o=t.modebar||{},a=S.newContainer(r,"modebar");function n(s,h){return v.coerce(o,a,E,s,h)}n("orientation"),n("bgcolor",x.addOpacity(r.paper_bgcolor,.5));var i=x.contrast(x.rgb(r.modebar.bgcolor));n("color",x.addOpacity(i,.3)),n("activecolor",x.addOpacity(i,.7)),n("uirevision",r.uirevision),n("add"),n("remove")}}}),wz=Xe({"src/components/modebar/modebar.js"(Z,G){"use strict";var v=Hn(),x=rs(),S=sa(),E=w2(),e=fp().version,t=new DOMParser;function r(i){this.container=i.container,this.element=document.createElement("div"),this.update(i.graphInfo,i.buttons),this.container.appendChild(this.element)}var o=r.prototype;o.update=function(i,s){this.graphInfo=i;var h=this.graphInfo._context,c=this.graphInfo._fullLayout,m="modebar-"+c._uid;this.element.setAttribute("id",m),this.element.setAttribute("role","toolbar"),this._uid=m,this.element.className="modebar modebar--custom",h.displayModeBar==="hover"&&(this.element.className+=" modebar--hover ease-bg"),c.modebar.orientation==="v"&&(this.element.className+=" vertical",s=s.reverse());var p=c.modebar,T="#"+m+" .modebar-group";document.querySelectorAll(T).forEach(function(M){M.style.backgroundColor=p.bgcolor});var l=!this.hasButtons(s),_=this.hasLogo!==h.displaylogo,w=this.locale!==h.locale;if(this.locale=h.locale,(l||_||w)&&(this.removeAllButtons(),this.updateButtons(s),h.watermark||h.displaylogo)){var A=this.getLogo();h.watermark&&(A.className=A.className+" watermark"),c.modebar.orientation==="v"?this.element.insertBefore(A,this.element.childNodes[0]):this.element.appendChild(A),this.hasLogo=!0}this.updateActiveButton(),S.setStyleOnHover("#"+m+" .modebar-btn",".active",".icon path","fill: "+p.activecolor,"fill: "+p.color,this.element)},o.updateButtons=function(i){var s=this;this.buttons=i,this.buttonElements=[],this.buttonsNames=[],this.buttons.forEach(function(h){var c=s.createGroup();h.forEach(function(m){var p=m.name;if(!p)throw new Error("must provide button 'name' in button config");if(s.buttonsNames.indexOf(p)!==-1)throw new Error("button name '"+p+"' is taken");s.buttonsNames.push(p);var T=s.createButton(m);s.buttonElements.push(T),c.appendChild(T)}),s.element.appendChild(c)})},o.createGroup=function(){var i=document.createElement("div");i.className="modebar-group";var s=this.graphInfo._fullLayout.modebar;return i.style.backgroundColor=s.bgcolor,i},o.createButton=function(i){var s=this,h=document.createElement("button");h.setAttribute("type","button"),h.setAttribute("rel","tooltip"),h.className="modebar-btn";var c=i.title;c===void 0?c=i.name:typeof c=="function"&&(c=c(this.graphInfo)),(c||c===0)&&(h.setAttribute("data-title",c),h.setAttribute("aria-label",c)),i.attr!==void 0&&h.setAttribute("data-attr",i.attr);var m=i.val;m!==void 0&&(typeof m=="function"&&(m=m(this.graphInfo)),h.setAttribute("data-val",m));var p=i.click;if(typeof p!="function")throw new Error("must provide button 'click' function in button config");h.addEventListener("click",function(l){i.click(s.graphInfo,l),s.updateActiveButton(l.currentTarget)}),h.setAttribute("data-toggle",i.toggle||!1),i.toggle&&v.select(h).classed("active",!0);var T=i.icon;return typeof T=="function"?h.appendChild(T()):h.appendChild(this.createIcon(T||E.question)),h.setAttribute("data-gravity",i.gravity||"n"),h},o.createIcon=function(i){var s=x(i.height)?Number(i.height):i.ascent-i.descent,h="http://www.w3.org/2000/svg",c;if(i.path){c=document.createElementNS(h,"svg"),c.setAttribute("viewBox",[0,0,i.width,s].join(" ")),c.setAttribute("class","icon");var m=document.createElementNS(h,"path");m.setAttribute("d",i.path),i.transform?m.setAttribute("transform",i.transform):i.ascent!==void 0&&m.setAttribute("transform","matrix(1 0 0 -1 0 "+i.ascent+")"),c.appendChild(m)}if(i.svg){var p=t.parseFromString(i.svg,"application/xml");c=p.childNodes[0]}return c.setAttribute("height","1em"),c.setAttribute("width","1em"),c},o.updateActiveButton=function(i){var s=this.graphInfo._fullLayout,h=i!==void 0?i.getAttribute("data-attr"):null;this.buttonElements.forEach(function(c){var m=c.getAttribute("data-val")||!0,p=c.getAttribute("data-attr"),T=c.getAttribute("data-toggle")==="true",l=v.select(c),_=function(M,g){var b=s.modebar,d=M.querySelector(".icon path");d&&(g||M.matches(":hover")?d.style.fill=b.activecolor:d.style.fill=b.color)};if(T){if(p===h){var w=!l.classed("active");l.classed("active",w),_(c,w)}}else{var A=p===null?p:S.nestedProperty(s,p).get();l.classed("active",A===m),_(c,A===m)}})},o.hasButtons=function(i){var s=this.buttons;if(!s||i.length!==s.length)return!1;for(var h=0;h<i.length;++h){if(i[h].length!==s[h].length)return!1;for(var c=0;c<i[h].length;c++)if(i[h][c].name!==s[h][c].name)return!1}return!0};function a(i){return i+" (v"+e+")"}o.getLogo=function(){var i=this.createGroup(),s=document.createElement("a");return s.href="https://plotly.com/",s.target="_blank",s.setAttribute("data-title",a(S._(this.graphInfo,"Produced with Plotly.js"))),s.className="modebar-btn plotlyjsicon modebar-btn--logo",s.appendChild(this.createIcon(E.newplotlylogo)),i.appendChild(s),i},o.removeAllButtons=function(){for(;this.element.firstChild;)this.element.removeChild(this.element.firstChild);this.hasLogo=!1},o.destroy=function(){S.removeElement(this.container.querySelector(".modebar"))};function n(i,s){var h=i._fullLayout,c=new r({graphInfo:i,container:h._modebardiv.node(),buttons:s});return h._privateplot&&v.select(c.element).append("span").classed("badge-private float--left",!0).text("PRIVATE"),c}G.exports=n}}),Tz=Xe({"src/components/modebar/manage.js"(Z,G){"use strict";var v=ef(),x=Fu(),S=so(),E=$p().isUnifiedHover,e=wz(),t=T5(),r=A5().DRAW_MODES,o=sa().extendDeep;G.exports=function(p){var T=p._fullLayout,l=p._context,_=T._modeBar;if(!l.displayModeBar&&!l.watermark){_&&(_.destroy(),delete T._modeBar);return}if(!Array.isArray(l.modeBarButtonsToRemove))throw new Error(["*modeBarButtonsToRemove* configuration options","must be an array."].join(" "));if(!Array.isArray(l.modeBarButtonsToAdd))throw new Error(["*modeBarButtonsToAdd* configuration options","must be an array."].join(" "));var w=l.modeBarButtons,A;Array.isArray(w)&&w.length?A=c(w):!l.displayModeBar&&l.watermark?A=[]:A=a(p),_?_.update(p,A):T._modeBar=e(p,A)};function a(m){var p=m._fullLayout,T=m._fullData,l=m._context;function _(j,Q){if(typeof Q=="string"){if(Q.toLowerCase()===j.toLowerCase())return!0}else{var re=Q.name,ce=Q._cat||Q.name;if(re===j||ce===j.toLowerCase())return!0}return!1}var w=p.modebar.add;typeof w=="string"&&(w=[w]);var A=p.modebar.remove;typeof A=="string"&&(A=[A]);var M=l.modeBarButtonsToAdd.concat(w.filter(function(j){for(var Q=0;Q<l.modeBarButtonsToRemove.length;Q++)if(_(j,l.modeBarButtonsToRemove[Q]))return!1;return!0})),g=l.modeBarButtonsToRemove.concat(A.filter(function(j){for(var Q=0;Q<l.modeBarButtonsToAdd.length;Q++)if(_(j,l.modeBarButtonsToAdd[Q]))return!1;return!0})),b=p._has("cartesian"),d=p._has("gl3d"),u=p._has("geo"),y=p._has("pie"),f=p._has("funnelarea"),R=p._has("ternary"),L=p._has("mapbox"),z=p._has("map"),F=p._has("polar"),N=p._has("smith"),O=p._has("sankey"),P=n(p),U=E(p.hovermode),B=[];function X(j){if(j.length){for(var Q=[],re=0;re<j.length;re++){for(var ce=j[re],be=t[ce],Ae=be.name.toLowerCase(),De=(be._cat||be.name).toLowerCase(),ze=!1,Ze=0;Ze<g.length;Ze++){var at=g[Ze].toLowerCase();if(at===Ae||at===De){ze=!0;break}}ze||Q.push(t[ce])}B.push(Q)}}var $=["toImage"];l.showEditInChartStudio?$.push("editInChartStudio"):l.showSendToCloud&&$.push("sendDataToCloud"),X($);var se=[],le=[],fe=[],V=[];(b||y||f||R)+u+d+L+z+F+N>1?(le=["toggleHover"],fe=["resetViews"]):u?(se=["zoomInGeo","zoomOutGeo"],le=["hoverClosestGeo"],fe=["resetGeo"]):d?(le=["hoverClosest3d"],fe=["resetCameraDefault3d","resetCameraLastSave3d"]):L?(se=["zoomInMapbox","zoomOutMapbox"],le=["toggleHover"],fe=["resetViewMapbox"]):z?(se=["zoomInMap","zoomOutMap"],le=["toggleHover"],fe=["resetViewMap"]):y?le=["hoverClosestPie"]:O?(le=["hoverClosestCartesian","hoverCompareCartesian"],fe=["resetViewSankey"]):le=["toggleHover"],b&&le.push("toggleSpikelines","hoverClosestCartesian","hoverCompareCartesian"),(s(T)||U)&&(le=[]),b&&!P&&(se=["zoomIn2d","zoomOut2d","autoScale2d"],fe[0]!=="resetViews"&&(fe=["resetScale2d"])),d?V=["zoom3d","pan3d","orbitRotation","tableRotation"]:b&&!P||R?V=["zoom2d","pan2d"]:L||z||u?V=["pan2d"]:F&&(V=["zoom2d"]),i(T)&&V.push("select2d","lasso2d");var Y=[],ee=function(j){Y.indexOf(j)===-1&&le.indexOf(j)!==-1&&Y.push(j)};if(Array.isArray(M)){for(var q=[],oe=0;oe<M.length;oe++){var ae=M[oe];typeof ae=="string"?(ae=ae.toLowerCase(),r.indexOf(ae)!==-1?(p._has("mapbox")||p._has("map")||p._has("cartesian"))&&V.push(ae):ae==="togglespikelines"?ee("toggleSpikelines"):ae==="togglehover"?ee("toggleHover"):ae==="hovercompare"?ee("hoverCompareCartesian"):ae==="hoverclosest"?(ee("hoverClosestCartesian"),ee("hoverClosestGeo"),ee("hoverClosest3d"),ee("hoverClosestPie")):ae==="v1hovermode"&&(ee("hoverClosestCartesian"),ee("hoverCompareCartesian"),ee("hoverClosestGeo"),ee("hoverClosest3d"),ee("hoverClosestPie"))):q.push(ae)}M=q}return X(V),X(se.concat(fe)),X(Y),h(B,M)}function n(m){for(var p=v.list({_fullLayout:m},null,!0),T=0;T<p.length;T++){var l=p[T].modebardisable;if(!p[T].fixedrange&&l!=="autoscale+zoominout"&&l!=="zoominout+autoscale")return!1}return!0}function i(m){for(var p=!1,T=0;T<m.length&&!p;T++){var l=m[T];!l._module||!l._module.selectPoints||(S.traceIs(l,"scatter-like")?(x.hasMarkers(l)||x.hasText(l))&&(p=!0):S.traceIs(l,"box-violin")?(l.boxpoints==="all"||l.points==="all")&&(p=!0):p=!0)}return p}function s(m){for(var p=0;p<m.length;p++)if(!S.traceIs(m[p],"noHover"))return!1;return!0}function h(m,p){if(p.length)if(Array.isArray(p[0]))for(var T=0;T<p.length;T++)m.push(p[T]);else m.push(p);return m}function c(m){for(var p=o([],m),T=0;T<p.length;T++)for(var l=p[T],_=0;_<l.length;_++){var w=l[_];if(typeof w=="string")if(t[w]!==void 0)p[T][_]=t[w];else throw new Error(["*modeBarButtons* configuration options","invalid button name"].join(" "))}return p}}}),M5=Xe({"src/components/modebar/index.js"(Z,G){"use strict";G.exports={moduleType:"component",name:"modebar",layoutAttributes:S5(),supplyLayoutDefaults:bz(),manage:Tz()}}}),E5=Xe({"src/plots/cartesian/scale_zoom.js"(Z,G){"use strict";var v=uh().FROM_BL;G.exports=function(S,E,e){e===void 0&&(e=v[S.constraintoward||"center"]);var t=[S.r2l(S.range[0]),S.r2l(S.range[1])],r=t[0]+(t[1]-t[0])*e;S.range=S._input.range=[S.l2r(r+(t[0]-r)*E),S.l2r(r+(t[1]-r)*E)],S.setScale()}}}),J0=Xe({"src/plots/cartesian/constraints.js"(Z){"use strict";var G=sa(),v=Yd(),x=ef().id2name,S=Wh(),E=E5(),e=wv(),t=Hs().ALMOST_EQUAL,r=uh().FROM_BL;Z.handleDefaults=function(m,p,T){var l=T.axIds,_=T.axHasImage,w=p._axisConstraintGroups=[],A=p._axisMatchGroups=[],M,g,b,d,u,y,f,R;for(M=0;M<l.length;M++)d=x(l[M]),u=m[d],y=p[d],o(u,y,{axIds:l,layoutOut:p,hasImage:_[d]});function L($,se){for(M=0;M<$.length;M++){g=$[M];for(b in g)p[x(b)][se]=g}}for(L(A,"_matchGroup"),M=0;M<w.length;M++){g=w[M];for(b in g)if(y=p[x(b)],y.fixedrange){for(var z in g){var F=x(z);(m[F]||{}).fixedrange===!1&&G.warn("fixedrange was specified as false for axis "+F+" but was overridden because another axis in its constraint group has fixedrange true"),p[F].fixedrange=!0}break}}for(M=0;M<w.length;){g=w[M];for(b in g){y=p[x(b)],y._matchGroup&&Object.keys(y._matchGroup).length===Object.keys(g).length&&(w.splice(M,1),M--);break}M++}L(w,"_constraintGroup");var N=["constrain","range","autorange","rangemode","rangebreaks","categoryorder","categoryarray"],O=!1,P=!1;function U(){R=y[f],f==="rangebreaks"&&(P=y._hasDayOfWeekBreaks)}for(M=0;M<A.length;M++){g=A[M];for(var B=0;B<N.length;B++){f=N[B],R=null;var X;for(b in g)if(d=x(b),u=m[d],y=p[d],f in y){if(!y.matches&&(X=y,f in u)){U();break}R===null&&f in u&&U()}if(f==="range"&&R&&u.range&&u.range.length===2&&u.range[0]!==null&&u.range[1]!==null&&(O=!0),f==="autorange"&&R===null&&O&&(R=!1),R===null&&f in X&&(R=X[f]),R!==null)for(b in g)y=p[x(b)],y[f]=f==="range"?R.slice():R,f==="rangebreaks"&&(y._hasDayOfWeekBreaks=P,e(y,p))}}};function o(m,p,T){var l=T.axIds,_=T.layoutOut,w=T.hasImage,A=_._axisConstraintGroups,M=_._axisMatchGroups,g=p._id,b=g.charAt(0),d=((_._splomAxes||{})[b]||{})[g]||{},u=p._id,y=u.charAt(0)==="x";p._matchGroup=null,p._constraintGroup=null;function f(V,Y){return G.coerce(m,p,S,V,Y)}f("constrain",w?"domain":"range"),G.coerce(m,p,{constraintoward:{valType:"enumerated",values:y?["left","center","right"]:["bottom","middle","top"],dflt:y?"center":"middle"}},"constraintoward");var R=p.type,L,z,F=[];for(L=0;L<l.length;L++)if(z=l[L],z!==u){var N=_[x(z)];N.type===R&&F.push(z)}var O=n(A,u);if(O){var P=[];for(L=0;L<F.length;L++)z=F[L],O[z]||P.push(z);F=P}var U=F.length,B,X;U&&(m.matches||d.matches)&&(B=G.coerce(m,p,{matches:{valType:"enumerated",values:F,dflt:F.indexOf(d.matches)!==-1?d.matches:void 0}},"matches"));var $=w&&!y?p.anchor:void 0;if(U&&!B&&(m.scaleanchor||$)&&(X=G.coerce(m,p,{scaleanchor:{valType:"enumerated",values:F.concat([!1])}},"scaleanchor",$)),B){p._matchGroup=i(M,u,B,1);var se=_[x(B)],le=a(_,p)/a(_,se);y!==(B.charAt(0)==="x")&&(le=(y?"x":"y")+le),i(A,u,B,le)}else m.matches&&l.indexOf(m.matches)!==-1&&G.warn("ignored "+p._name+'.matches: "'+m.matches+'" to avoid an infinite loop');if(X){var fe=f("scaleratio");fe||(fe=p.scaleratio=1),i(A,u,X,fe)}else m.scaleanchor&&l.indexOf(m.scaleanchor)!==-1&&G.warn("ignored "+p._name+'.scaleanchor: "'+m.scaleanchor+'" to avoid either an infinite loop and possibly inconsistent scaleratios, or because this axis declares a *matches* constraint.')}function a(m,p){var T=p.domain;return T||(T=m[x(p.overlaying)].domain),T[1]-T[0]}function n(m,p){for(var T=0;T<m.length;T++)if(m[T][p])return m[T];return null}function i(m,p,T,l){var _,w,A,M,g,b=n(m,p);b===null?(b={},b[p]=1,g=m.length,m.push(b)):g=m.indexOf(b);var d=Object.keys(b);for(_=0;_<m.length;_++)if(A=m[_],_!==g&&A[T]){var u=A[T];for(w=0;w<d.length;w++)M=d[w],A[M]=s(u,s(l,b[M]));m.splice(g,1);return}if(l!==1)for(w=0;w<d.length;w++){var y=d[w];b[y]=s(l,b[y])}b[T]=1}function s(m,p){var T="",l="",_,w;typeof m=="string"&&(T=m.match(/^[xy]*/)[0],_=T.length,m=+m.slice(_)),typeof p=="string"&&(l=p.match(/^[xy]*/)[0],w=l.length,p=+p.slice(w));var A=m*p;return!_&&!w?A:!_||!w||T.charAt(0)===l.charAt(0)?T+l+m*p:_===w?A:(_>w?T.slice(w):l.slice(_))+A}function h(m,p){for(var T=p._size,l=T.h/T.w,_={},w=Object.keys(m),A=0;A<w.length;A++){var M=w[A],g=m[M];if(typeof g=="string"){var b=g.match(/^[xy]*/)[0],d=b.length;g=+g.slice(d);for(var u=b.charAt(0)==="y"?l:1/l,y=0;y<d;y++)g*=u}_[M]=g}return _}Z.enforce=function(p){var T=p._fullLayout,l=T._axisConstraintGroups||[],_,w,A,M,g,b,d,u;for(_=0;_<l.length;_++){A=h(l[_],T);var y=Object.keys(A),f=1/0,R=0,L=1/0,z={},F={},N=!1;for(w=0;w<y.length;w++)M=y[w],F[M]=g=T[x(M)],g._inputDomain?g.domain=g._inputDomain.slice():g._inputDomain=g.domain.slice(),g._inputRange||(g._inputRange=g.range.slice()),g.setScale(),z[M]=b=Math.abs(g._m)/A[M],f=Math.min(f,b),(g.constrain==="domain"||!g._constraintShrinkable)&&(L=Math.min(L,b)),delete g._constraintShrinkable,R=Math.max(R,b),g.constrain==="domain"&&(N=!0);if(!(f>t*R&&!N)){for(w=0;w<y.length;w++)if(M=y[w],b=z[M],g=F[M],d=g.constrain,b!==L||d==="domain")if(u=b/L,d==="range")E(g,u);else{var O=g._inputDomain,P=(g.domain[1]-g.domain[0])/(O[1]-O[0]),U=(g.r2l(g.range[1])-g.r2l(g.range[0]))/(g.r2l(g._inputRange[1])-g.r2l(g._inputRange[0]));if(u/=P,u*U<1){g.domain=g._input.domain=O.slice(),E(g,u);continue}if(U<1&&(g.range=g._input.range=g._inputRange.slice(),u*=U),g.autorange){var B=g.r2l(g.range[0]),X=g.r2l(g.range[1]),$=(B+X)/2,se=$,le=$,fe=Math.abs(X-$),V=$-fe*u*1.0001,Y=$+fe*u*1.0001,ee=v.makePadFn(T,g,0),q=v.makePadFn(T,g,1);c(g,u);var oe=Math.abs(g._m),ae=v.concatExtremes(p,g),j=ae.min,Q=ae.max,re,ce;for(ce=0;ce<j.length;ce++)re=j[ce].val-ee(j[ce])/oe,re>V&&re<se&&(se=re);for(ce=0;ce<Q.length;ce++)re=Q[ce].val+q(Q[ce])/oe,re<Y&&re>le&&(le=re);var be=(le-se)/(2*fe);u/=be,se=g.l2r(se),le=g.l2r(le),g.range=g._input.range=B<X?[se,le]:[le,se]}c(g,u)}}}},Z.getAxisGroup=function(p,T){for(var l=p._axisMatchGroups,_=0;_<l.length;_++){var w=l[_];if(w[T])return"g"+_}return T},Z.clean=function(p,T){if(T._inputDomain){for(var l=!1,_=T._id,w=p._fullLayout._axisConstraintGroups,A=0;A<w.length;A++)if(w[A][_]){l=!0;break}(!l||T.constrain!=="domain")&&(T._input.domain=T.domain=T._inputDomain,delete T._inputDomain)}};function c(m,p){var T=m._inputDomain,l=r[m.constraintoward],_=T[0]+(T[1]-T[0])*l;m.domain=m._input.domain=[_+(T[0]-_)/p,_+(T[1]-_)/p],m.setScale()}}}),P_=Xe({"src/plot_api/subroutines.js"(Z){"use strict";var G=Hn(),v=so(),x=bc(),S=sa(),E=ou(),e=C_(),t=$n(),r=es(),o=K0(),a=M5(),n=Go(),i=uh(),s=J0(),h=s.enforce,c=s.clean,m=Yd().doAutoRange,p="start",T="middle",l="end",_=lh().zindexSeparator;Z.layoutStyles=function(O){return S.syncOrAsync([x.doAutoMargin,A],O)};function w(O,P,U){for(var B=0;B<U.length;B++){var X=U[B][0],$=U[B][1];if(!(X[0]>=O[1]||X[1]<=O[0])&&$[0]<P[1]&&$[1]>P[0])return!0}return!1}function A(O){var P=O._fullLayout,U=P._size,B=U.p,X=n.list(O,"",!0),$,se,le,fe,V,Y;if(P._paperdiv.style({width:O._context.responsive&&P.autosize&&!O._context._hasZeroWidth&&!O.layout.width?"100%":P.width+"px",height:O._context.responsive&&P.autosize&&!O._context._hasZeroHeight&&!O.layout.height?"100%":P.height+"px"}).selectAll(".main-svg").call(r.setSize,P.width,P.height),O._context.setBackground(O,P.paper_bgcolor),Z.drawMainTitle(O),a.manage(O),!P._has("cartesian"))return x.previousPromises(O);function ee(Te,Ie,Ve){var Ce=Te._lw/2;if(Te._id.charAt(0)==="x"){if(Ie){if(Ve==="top")return Ie._offset-B-Ce}else return U.t+U.h*(1-(Te.position||0))+Ce%1;return Ie._offset+Ie._length+B+Ce}if(Ie){if(Ve==="right")return Ie._offset+Ie._length+B+Ce}else return U.l+U.w*(Te.position||0)+Ce%1;return Ie._offset-B-Ce}for($=0;$<X.length;$++){fe=X[$];var q=fe._anchorAxis;fe._linepositions={},fe._lw=r.crispRound(O,fe.linewidth,1),fe._mainLinePosition=ee(fe,q,fe.side),fe._mainMirrorPosition=fe.mirror&&q?ee(fe,q,i.OPPOSITE_SIDE[fe.side]):null}var oe=[],ae=[],j=[],Q=t.opacity(P.paper_bgcolor)===1&&t.opacity(P.plot_bgcolor)===1&&P.paper_bgcolor===P.plot_bgcolor;for(se in P._plots)if(le=P._plots[se],le.mainplot)le.bg&&le.bg.remove(),le.bg=void 0;else{var re=le.xaxis.domain,ce=le.yaxis.domain,be=le.plotgroup;if(w(re,ce,j)&&se.indexOf(_)===-1){var Ae=be.node(),De=le.bg=S.ensureSingle(be,"rect","bg");Ae.insertBefore(De.node(),Ae.childNodes[0]),ae.push(se)}else be.select("rect.bg").remove(),j.push([re,ce]),Q||(oe.push(se),ae.push(se))}var ze=P._bgLayer.selectAll(".bg").data(oe);for(ze.enter().append("rect").classed("bg",!0),ze.exit().remove(),ze.each(function(Te){P._plots[Te].bg=G.select(this)}),$=0;$<ae.length;$++)le=P._plots[ae[$]],V=le.xaxis,Y=le.yaxis,le.bg&&V._offset!==void 0&&Y._offset!==void 0&&le.bg.call(r.setRect,V._offset-B,Y._offset-B,V._length+2*B,Y._length+2*B).call(t.fill,P.plot_bgcolor).style("stroke-width",0);if(!P._hasOnlyLargeSploms)for(se in P._plots){le=P._plots[se],V=le.xaxis,Y=le.yaxis;var Ze=le.clipId="clip"+P._uid+se+"plot",at=S.ensureSingleById(P._clips,"clipPath",Ze,function(Te){Te.classed("plotclip",!0).append("rect")});le.clipRect=at.select("rect").attr({width:V._length,height:Y._length}),r.setTranslate(le.plot,V._offset,Y._offset);var nt,rt;le._hasClipOnAxisFalse?(nt=null,rt=Ze):(nt=Ze,rt=null),r.setClipUrl(le.plot,nt,O),le.layerClipId=rt}var st,Me,ye,he,Oe,tt,ot,Qe,Pt,It,qt,Wt,kr;function mr(Te){return"M"+st+","+Te+"H"+Me}function qr(Te){return"M"+V._offset+","+Te+"h"+V._length}function Sr(Te){return"M"+Te+","+Qe+"V"+ot}function Rr(Te){return Y._shift!==void 0&&(Te+=Y._shift),"M"+Te+","+Y._offset+"v"+Y._length}function wt(Te,Ie,Ve){if(!Te.showline||se!==Te._mainSubplot)return"";if(!Te._anchorAxis)return Ve(Te._mainLinePosition);var Ce=Ie(Te._mainLinePosition);return Te.mirror&&(Ce+=Ie(Te._mainMirrorPosition)),Ce}for(se in P._plots){le=P._plots[se],V=le.xaxis,Y=le.yaxis;var Ne="M0,0";M(V,se)&&(Oe=b(V,"left",Y,X),st=V._offset-(Oe?B+Oe:0),tt=b(V,"right",Y,X),Me=V._offset+V._length+(tt?B+tt:0),ye=ee(V,Y,"bottom"),he=ee(V,Y,"top"),kr=!V._anchorAxis||se!==V._mainSubplot,kr&&(V.mirror==="allticks"||V.mirror==="all")&&(V._linepositions[se]=[ye,he]),Ne=wt(V,mr,qr),kr&&V.showline&&(V.mirror==="all"||V.mirror==="allticks")&&(Ne+=mr(ye)+mr(he)),le.xlines.style("stroke-width",V._lw+"px").call(t.stroke,V.showline?V.linecolor:"rgba(0,0,0,0)")),le.xlines.attr("d",Ne);var Ke="M0,0";M(Y,se)&&(qt=b(Y,"bottom",V,X),ot=Y._offset+Y._length+(qt?B:0),Wt=b(Y,"top",V,X),Qe=Y._offset-(Wt?B:0),Pt=ee(Y,V,"left"),It=ee(Y,V,"right"),kr=!Y._anchorAxis||se!==Y._mainSubplot,kr&&(Y.mirror==="allticks"||Y.mirror==="all")&&(Y._linepositions[se]=[Pt,It]),Ke=wt(Y,Sr,Rr),kr&&Y.showline&&(Y.mirror==="all"||Y.mirror==="allticks")&&(Ke+=Sr(Pt)+Sr(It)),le.ylines.style("stroke-width",Y._lw+"px").call(t.stroke,Y.showline?Y.linecolor:"rgba(0,0,0,0)")),le.ylines.attr("d",Ke)}return n.makeClipPaths(O),x.previousPromises(O)}function M(O,P){return(O.ticks||O.showline)&&(P===O._mainSubplot||O.mirror==="all"||O.mirror==="allticks")}function g(O,P,U){if(!U.showline||!U._lw)return!1;if(U.mirror==="all"||U.mirror==="allticks")return!0;var B=U._anchorAxis;if(!B)return!1;var X=i.FROM_BL[P];return U.side===P?B.domain[X]===O.domain[X]:U.mirror&&B.domain[1-X]===O.domain[1-X]}function b(O,P,U,B){if(g(O,P,U))return U._lw;for(var X=0;X<B.length;X++){var $=B[X];if($._mainAxis===U._mainAxis&&g(O,P,$))return $._lw}return 0}Z.drawMainTitle=function(O){var P=O._fullLayout.title,U=O._fullLayout,B=F(U),X=N(U),$=L(U,X),se=R(U,B);if(o.draw(O,"gtitle",{propContainer:U,propName:"title.text",subtitlePropName:"title.subtitle.text",placeholder:U._dfltTitle.plot,subtitlePlaceholder:U._dfltTitle.subtitle,attributes:{x:se,y:$,"text-anchor":B,dy:X}}),P.text&&P.automargin){var le=G.select(O).selectAll(".gtitle"),fe=r.bBox(G.select(O).selectAll(".g-gtitle").node()).height,V=y(O,P,fe);if(V>0){f(O,$,V,fe),le.attr({x:se,y:$,"text-anchor":B,dy:z(P.yanchor)}).call(E.positionText,se,$);var Y=(P.text.match(E.BR_TAG_ALL)||[]).length;if(Y){var ee=i.LINE_SPACING*Y+i.MID_SHIFT;P.y===0&&(ee=-ee),le.selectAll(".line").each(function(){var Q=+this.getAttribute("dy").slice(0,-2)-ee+"em";this.setAttribute("dy",Q)})}var q=G.select(O).selectAll(".gtitle-subtitle");if(q.node()){var oe=le.node().getBBox(),ae=oe.y+oe.height,j=ae+o.SUBTITLE_PADDING_EM*P.subtitle.font.size;q.attr({x:se,y:j,"text-anchor":B,dy:z(P.yanchor)}).call(E.positionText,se,j)}}}};function d(O,P,U,B,X){var $=P.yref==="paper"?O._fullLayout._size.h:O._fullLayout.height,se=S.isTopAnchor(P)?B:B-X,le=U==="b"?$-se:se;return S.isTopAnchor(P)&&U==="t"||S.isBottomAnchor(P)&&U==="b"?!1:le<X}function u(O,P,U,B,X){var $=0;return U==="middle"&&($+=X/2),O==="t"?(U==="top"&&($+=X),$+=B-P*B):(U==="bottom"&&($+=X),$+=P*B),$}function y(O,P,U){var B=P.y,X=P.yanchor,$=B>.5?"t":"b",se=O._fullLayout.margin[$],le=0;return P.yref==="paper"?le=U+P.pad.t+P.pad.b:P.yref==="container"&&(le=u($,B,X,O._fullLayout.height,U)+P.pad.t+P.pad.b),le>se?le:0}function f(O,P,U,B){var X="title.automargin",$=O._fullLayout.title,se=$.y>.5?"t":"b",le={x:$.x,y:$.y,t:0,b:0},fe={};$.yref==="paper"&&d(O,$,se,P,B)?le[se]=U:$.yref==="container"&&(fe[se]=U,O._fullLayout._reservedMargin[X]=fe),x.allowAutoMargin(O,X),x.autoMargin(O,X,le)}function R(O,P){var U=O.title,B=O._size,X=0;switch(P===p?X=U.pad.l:P===l&&(X=-U.pad.r),U.xref){case"paper":return B.l+B.w*U.x+X;case"container":default:return O.width*U.x+X}}function L(O,P){var U=O.title,B=O._size,X=0;if(P==="0em"||!P?X=-U.pad.b:P===i.CAP_SHIFT+"em"&&(X=U.pad.t),U.y==="auto")return B.t/2;switch(U.yref){case"paper":return B.t+B.h-B.h*U.y+X;case"container":default:return O.height-O.height*U.y+X}}function z(O){return O==="top"?i.CAP_SHIFT+.3+"em":O==="bottom"?"-0.3em":i.MID_SHIFT+"em"}function F(O){var P=O.title,U=T;return S.isRightAnchor(P)?U=l:S.isLeftAnchor(P)&&(U=p),U}function N(O){var P=O.title,U="0em";return S.isTopAnchor(P)?U=i.CAP_SHIFT+"em":S.isMiddleAnchor(P)&&(U=i.MID_SHIFT+"em"),U}Z.doTraceStyle=function(O){var P=O.calcdata,U=[],B;for(B=0;B<P.length;B++){var X=P[B],$=X[0]||{},se=$.trace||{},le=se._module||{},fe=le.arraysToCalcdata;fe&&fe(X,se);var V=le.editStyle;V&&U.push({fn:V,cd0:$})}if(U.length){for(B=0;B<U.length;B++){var Y=U[B];Y.fn(O,Y.cd0)}e(O),Z.redrawReglTraces(O)}return x.style(O),v.getComponentMethod("legend","draw")(O),x.previousPromises(O)},Z.doColorBars=function(O){return v.getComponentMethod("colorbar","draw")(O),x.previousPromises(O)},Z.layoutReplot=function(O){var P=O.layout;return O.layout=void 0,v.call("_doPlot",O,"",P)},Z.doLegend=function(O){return v.getComponentMethod("legend","draw")(O),x.previousPromises(O)},Z.doTicksRelayout=function(O){return n.draw(O,"redraw"),O._fullLayout._hasOnlyLargeSploms&&(v.subplotsRegistry.splom.updateGrid(O),e(O),Z.redrawReglTraces(O)),Z.drawMainTitle(O),x.previousPromises(O)},Z.doModeBar=function(O){var P=O._fullLayout;a.manage(O);for(var U=0;U<P._basePlotModules.length;U++){var B=P._basePlotModules[U].updateFx;B&&B(O)}return x.previousPromises(O)},Z.doCamera=function(O){for(var P=O._fullLayout,U=P._subplots.gl3d,B=0;B<U.length;B++){var X=P[U[B]],$=X._scene;$.setViewport(X)}},Z.drawData=function(O){var P=O._fullLayout;e(O);for(var U=P._basePlotModules,B=0;B<U.length;B++)U[B].plot(O);return Z.redrawReglTraces(O),x.style(O),v.getComponentMethod("selections","draw")(O),v.getComponentMethod("shapes","draw")(O),v.getComponentMethod("annotations","draw")(O),v.getComponentMethod("images","draw")(O),P._replotting=!1,x.previousPromises(O)},Z.redrawReglTraces=function(O){var P=O._fullLayout;if(P._has("regl")){var U=O._fullData,B=[],X=[],$,se;for(P._hasOnlyLargeSploms&&P._splomGrid.draw(),$=0;$<U.length;$++){var le=U[$];le.visible===!0&&le._length!==0&&(le.type==="splom"?P._splomScenes[le.uid].draw():le.type==="scattergl"?S.pushUnique(B,le.xaxis+le.yaxis):le.type==="scatterpolargl"&&S.pushUnique(X,le.subplot))}for($=0;$<B.length;$++)se=P._plots[B[$]],se._scene&&se._scene.draw();for($=0;$<X.length;$++)se=P[X[$]]._subplot,se._scene&&se._scene.draw()}},Z.doAutoRangeAndConstraints=function(O){for(var P=n.list(O,"",!0),U,B={},X=0;X<P.length;X++)if(U=P[X],!B[U._id]){B[U._id]=1,c(O,U),m(O,U);var $=U._matchGroup;if($)for(var se in $){var le=n.getFromId(O,se);m(O,le,U.range),B[se]=1}}h(O)},Z.finalDraw=function(O){v.getComponentMethod("rangeslider","draw")(O),v.getComponentMethod("rangeselector","draw")(O)},Z.drawMarginPushers=function(O){v.getComponentMethod("legend","draw")(O),v.getComponentMethod("rangeselector","draw")(O),v.getComponentMethod("sliders","draw")(O),v.getComponentMethod("updatemenus","draw")(O),v.getComponentMethod("colorbar","draw")(O)}}}),k5=Xe({"src/components/selections/draw.js"(Z,G){"use strict";var v=r0().readPaths,x=M2(),S=$m().clearOutlineControllers,E=$n(),e=es(),t=zl().arrayEditor,r=a0(),o=r.getPathString;G.exports={draw:a,drawOne:i,activateLastSelection:c};function a(p){var T=p._fullLayout;S(p),T._selectionLayer.selectAll("path").remove();for(var l in T._plots){var _=T._plots[l].selectionLayer;_&&_.selectAll("path").remove()}for(var w=0;w<T.selections.length;w++)i(p,w)}function n(p){return p._context.editSelection}function i(p,T){p._fullLayout._paperdiv.selectAll('.selectionlayer [data-index="'+T+'"]').remove();var l=r.makeSelectionsOptionsAndPlotinfo(p,T),_=l.options,w=l.plotinfo;if(!_._input)return;A(p._fullLayout._selectionLayer);function A(M){var g=o(p,_),b={"data-index":T,"fill-rule":"evenodd",d:g},d=_.opacity,u="rgba(0,0,0,0)",y=_.line.color||E.contrast(p._fullLayout.plot_bgcolor),f=_.line.width,R=_.line.dash;f||(f=5,R="solid");var L=n(p)&&p._fullLayout._activeSelectionIndex===T;L&&(u=p._fullLayout.activeselection.fillcolor,d=p._fullLayout.activeselection.opacity);for(var z=[],F=1;F>=0;F--){var N=M.append("path").attr(b).style("opacity",F?.1:d).call(E.stroke,y).call(E.fill,u).call(e.dashLine,F?"solid":R,F?4+f:f);if(s(N,p,_),L){var O=t(p.layout,"selections",_);N.style({cursor:"move"});var P={element:N.node(),plotinfo:w,gd:p,editHelpers:O,isActiveSelection:!0},U=v(g,p);x(U,N,P)}else N.style("pointer-events",F?"all":"none");z[F]=N}var B=z[0],X=z[1];X.node().addEventListener("click",function(){return h(p,B)})}}function s(p,T,l){var _=l.xref+l.yref;e.setClipUrl(p,"clip"+T._fullLayout._uid+_,T)}function h(p,T){if(n(p)){var l=T.node(),_=+l.getAttribute("data-index");if(_>=0){if(_===p._fullLayout._activeSelectionIndex){m(p);return}p._fullLayout._activeSelectionIndex=_,p._fullLayout._deactivateSelection=m,a(p)}}}function c(p){if(n(p)){var T=p._fullLayout.selections.length-1;p._fullLayout._activeSelectionIndex=T,p._fullLayout._deactivateSelection=m,a(p)}}function m(p){if(n(p)){var T=p._fullLayout._activeSelectionIndex;T>=0&&(S(p),delete p._fullLayout._activeSelectionIndex,a(p))}}}}),Az=Xe({"node_modules/polybooljs/lib/build-log.js"(Z,G){function v(){var x,S=0,E=!1;function e(t,r){return x.list.push({type:t,data:r?JSON.parse(JSON.stringify(r)):void 0}),x}return x={list:[],segmentId:function(){return S++},checkIntersection:function(t,r){return e("check",{seg1:t,seg2:r})},segmentChop:function(t,r){return e("div_seg",{seg:t,pt:r}),e("chop",{seg:t,pt:r})},statusRemove:function(t){return e("pop_seg",{seg:t})},segmentUpdate:function(t){return e("seg_update",{seg:t})},segmentNew:function(t,r){return e("new_seg",{seg:t,primary:r})},segmentRemove:function(t){return e("rem_seg",{seg:t})},tempStatus:function(t,r,o){return e("temp_status",{seg:t,above:r,below:o})},rewind:function(t){return e("rewind",{seg:t})},status:function(t,r,o){return e("status",{seg:t,above:r,below:o})},vert:function(t){return t===E?x:(E=t,e("vert",{x:t}))},log:function(t){return typeof t!="string"&&(t=JSON.stringify(t,!1," ")),e("log",{txt:t})},reset:function(){return e("reset")},selected:function(t){return e("selected",{segs:t})},chainStart:function(t){return e("chain_start",{seg:t})},chainRemoveHead:function(t,r){return e("chain_rem_head",{index:t,pt:r})},chainRemoveTail:function(t,r){return e("chain_rem_tail",{index:t,pt:r})},chainNew:function(t,r){return e("chain_new",{pt1:t,pt2:r})},chainMatch:function(t){return e("chain_match",{index:t})},chainClose:function(t){return e("chain_close",{index:t})},chainAddHead:function(t,r){return e("chain_add_head",{index:t,pt:r})},chainAddTail:function(t,r){return e("chain_add_tail",{index:t,pt:r})},chainConnect:function(t,r){return e("chain_con",{index1:t,index2:r})},chainReverse:function(t){return e("chain_rev",{index:t})},chainJoin:function(t,r){return e("chain_join",{index1:t,index2:r})},done:function(){return e("done")}},x}G.exports=v}}),Sz=Xe({"node_modules/polybooljs/lib/epsilon.js"(Z,G){function v(x){typeof x!="number"&&(x=1e-10);var S={epsilon:function(E){return typeof E=="number"&&(x=E),x},pointAboveOrOnLine:function(E,e,t){var r=e[0],o=e[1],a=t[0],n=t[1],i=E[0],s=E[1];return(a-r)*(s-o)-(n-o)*(i-r)>=-x},pointBetween:function(E,e,t){var r=E[1]-e[1],o=t[0]-e[0],a=E[0]-e[0],n=t[1]-e[1],i=a*o+r*n;if(i<x)return!1;var s=o*o+n*n;return!(i-s>-x)},pointsSameX:function(E,e){return Math.abs(E[0]-e[0])<x},pointsSameY:function(E,e){return Math.abs(E[1]-e[1])<x},pointsSame:function(E,e){return S.pointsSameX(E,e)&&S.pointsSameY(E,e)},pointsCompare:function(E,e){return S.pointsSameX(E,e)?S.pointsSameY(E,e)?0:E[1]<e[1]?-1:1:E[0]<e[0]?-1:1},pointsCollinear:function(E,e,t){var r=E[0]-e[0],o=E[1]-e[1],a=e[0]-t[0],n=e[1]-t[1];return Math.abs(r*n-a*o)<x},linesIntersect:function(E,e,t,r){var o=e[0]-E[0],a=e[1]-E[1],n=r[0]-t[0],i=r[1]-t[1],s=o*i-a*n;if(Math.abs(s)<x)return!1;var h=E[0]-t[0],c=E[1]-t[1],m=(n*c-i*h)/s,p=(o*c-a*h)/s,T={alongA:0,alongB:0,pt:[E[0]+m*o,E[1]+m*a]};return m<=-x?T.alongA=-2:m<x?T.alongA=-1:m-1<=-x?T.alongA=0:m-1<x?T.alongA=1:T.alongA=2,p<=-x?T.alongB=-2:p<x?T.alongB=-1:p-1<=-x?T.alongB=0:p-1<x?T.alongB=1:T.alongB=2,T},pointInsideRegion:function(E,e){for(var t=E[0],r=E[1],o=e[e.length-1][0],a=e[e.length-1][1],n=!1,i=0;i<e.length;i++){var s=e[i][0],h=e[i][1];h-r>x!=a-r>x&&(o-s)*(r-h)/(a-h)+s-t>x&&(n=!n),o=s,a=h}return n}};return S}G.exports=v}}),Mz=Xe({"node_modules/polybooljs/lib/linked-list.js"(Z,G){var v={create:function(){var x={root:{root:!0,next:null},exists:function(S){return!(S===null||S===x.root)},isEmpty:function(){return x.root.next===null},getHead:function(){return x.root.next},insertBefore:function(S,E){for(var e=x.root,t=x.root.next;t!==null;){if(E(t)){S.prev=t.prev,S.next=t,t.prev.next=S,t.prev=S;return}e=t,t=t.next}e.next=S,S.prev=e,S.next=null},findTransition:function(S){for(var E=x.root,e=x.root.next;e!==null&&!S(e);)E=e,e=e.next;return{before:E===x.root?null:E,after:e,insert:function(t){return t.prev=E,t.next=e,E.next=t,e!==null&&(e.prev=t),t}}}};return x},node:function(x){return x.prev=null,x.next=null,x.remove=function(){x.prev.next=x.next,x.next&&(x.next.prev=x.prev),x.prev=null,x.next=null},x}};G.exports=v}}),Ez=Xe({"node_modules/polybooljs/lib/intersecter.js"(Z,G){var v=Mz();function x(S,E,e){function t(T,l){return{id:e?e.segmentId():-1,start:T,end:l,myFill:{above:null,below:null},otherFill:null}}function r(T,l,_){return{id:e?e.segmentId():-1,start:T,end:l,myFill:{above:_.myFill.above,below:_.myFill.below},otherFill:null}}var o=v.create();function a(T,l,_,w,A,M){var g=E.pointsCompare(l,A);return g!==0?g:E.pointsSame(_,M)?0:T!==w?T?1:-1:E.pointAboveOrOnLine(_,w?A:M,w?M:A)?1:-1}function n(T,l){o.insertBefore(T,function(_){var w=a(T.isStart,T.pt,l,_.isStart,_.pt,_.other.pt);return w<0})}function i(T,l){var _=v.node({isStart:!0,pt:T.start,seg:T,primary:l,other:null,status:null});return n(_,T.end),_}function s(T,l,_){var w=v.node({isStart:!1,pt:l.end,seg:l,primary:_,other:T,status:null});T.other=w,n(w,T.pt)}function h(T,l){var _=i(T,l);return s(_,T,l),_}function c(T,l){e&&e.segmentChop(T.seg,l),T.other.remove(),T.seg.end=l,T.other.pt=l,n(T.other,T.pt)}function m(T,l){var _=r(l,T.seg.end,T.seg);return c(T,l),h(_,T.primary)}function p(T,l){var _=v.create();function w(O,P){var U=O.seg.start,B=O.seg.end,X=P.seg.start,$=P.seg.end;return E.pointsCollinear(U,X,$)?E.pointsCollinear(B,X,$)||E.pointAboveOrOnLine(B,X,$)?1:-1:E.pointAboveOrOnLine(U,X,$)?1:-1}function A(O){return _.findTransition(function(P){var U=w(O,P.ev);return U>0})}function M(O,P){var U=O.seg,B=P.seg,X=U.start,$=U.end,se=B.start,le=B.end;e&&e.checkIntersection(U,B);var fe=E.linesIntersect(X,$,se,le);if(fe===!1){if(!E.pointsCollinear(X,$,se)||E.pointsSame(X,le)||E.pointsSame($,se))return!1;var V=E.pointsSame(X,se),Y=E.pointsSame($,le);if(V&&Y)return P;var ee=!V&&E.pointBetween(X,se,le),q=!Y&&E.pointBetween($,se,le);if(V)return q?m(P,$):m(O,le),P;ee&&(Y||(q?m(P,$):m(O,le)),m(P,X))}else fe.alongA===0&&(fe.alongB===-1?m(O,se):fe.alongB===0?m(O,fe.pt):fe.alongB===1&&m(O,le)),fe.alongB===0&&(fe.alongA===-1?m(P,X):fe.alongA===0?m(P,fe.pt):fe.alongA===1&&m(P,$));return!1}for(var g=[];!o.isEmpty();){var b=o.getHead();if(e&&e.vert(b.pt[0]),b.isStart){let O=function(){if(y){var P=M(b,y);if(P)return P}return f?M(b,f):!1};var d=O;e&&e.segmentNew(b.seg,b.primary);var u=A(b),y=u.before?u.before.ev:null,f=u.after?u.after.ev:null;e&&e.tempStatus(b.seg,y?y.seg:!1,f?f.seg:!1);var R=O();if(R){if(S){var L;b.seg.myFill.below===null?L=!0:L=b.seg.myFill.above!==b.seg.myFill.below,L&&(R.seg.myFill.above=!R.seg.myFill.above)}else R.seg.otherFill=b.seg.myFill;e&&e.segmentUpdate(R.seg),b.other.remove(),b.remove()}if(o.getHead()!==b){e&&e.rewind(b.seg);continue}if(S){var L;b.seg.myFill.below===null?L=!0:L=b.seg.myFill.above!==b.seg.myFill.below,f?b.seg.myFill.below=f.seg.myFill.above:b.seg.myFill.below=T,L?b.seg.myFill.above=!b.seg.myFill.below:b.seg.myFill.above=b.seg.myFill.below}else if(b.seg.otherFill===null){var z;f?b.primary===f.primary?z=f.seg.otherFill.above:z=f.seg.myFill.above:z=b.primary?l:T,b.seg.otherFill={above:z,below:z}}e&&e.status(b.seg,y?y.seg:!1,f?f.seg:!1),b.other.status=u.insert(v.node({ev:b}))}else{var F=b.status;if(F===null)throw new Error("PolyBool: Zero-length segment detected; your epsilon is probably too small or too large");if(_.exists(F.prev)&&_.exists(F.next)&&M(F.prev.ev,F.next.ev),e&&e.statusRemove(F.ev.seg),F.remove(),!b.primary){var N=b.seg.myFill;b.seg.myFill=b.seg.otherFill,b.seg.otherFill=N}g.push(b.seg)}o.getHead().remove()}return e&&e.done(),g}return S?{addRegion:function(T){for(var l,_=T[T.length-1],w=0;w<T.length;w++){l=_,_=T[w];var A=E.pointsCompare(l,_);A!==0&&h(t(A<0?l:_,A<0?_:l),!0)}},calculate:function(T){return p(T,!1)}}:{calculate:function(T,l,_,w){return T.forEach(function(A){h(r(A.start,A.end,A),!0)}),_.forEach(function(A){h(r(A.start,A.end,A),!1)}),p(l,w)}}}G.exports=x}}),kz=Xe({"node_modules/polybooljs/lib/segment-chainer.js"(Z,G){function v(x,S,E){var e=[],t=[];return x.forEach(function(r){var o=r.start,a=r.end;if(S.pointsSame(o,a)){console.warn("PolyBool: Warning: Zero-length segment detected; your epsilon is probably too small or too large");return}E&&E.chainStart(r);var n={index:0,matches_head:!1,matches_pt1:!1},i={index:0,matches_head:!1,matches_pt1:!1},s=n;function h(F,N,O){return s.index=F,s.matches_head=N,s.matches_pt1=O,s===n?(s=i,!1):(s=null,!0)}for(var c=0;c<e.length;c++){var m=e[c],p=m[0],T=m[1],l=m[m.length-1],_=m[m.length-2];if(S.pointsSame(p,o)){if(h(c,!0,!0))break}else if(S.pointsSame(p,a)){if(h(c,!0,!1))break}else if(S.pointsSame(l,o)){if(h(c,!1,!0))break}else if(S.pointsSame(l,a)&&h(c,!1,!1))break}if(s===n){e.push([o,a]),E&&E.chainNew(o,a);return}if(s===i){E&&E.chainMatch(n.index);var w=n.index,A=n.matches_pt1?a:o,M=n.matches_head,m=e[w],g=M?m[0]:m[m.length-1],b=M?m[1]:m[m.length-2],d=M?m[m.length-1]:m[0],u=M?m[m.length-2]:m[1];if(S.pointsCollinear(b,g,A)&&(M?(E&&E.chainRemoveHead(n.index,A),m.shift()):(E&&E.chainRemoveTail(n.index,A),m.pop()),g=b),S.pointsSame(d,A)){e.splice(w,1),S.pointsCollinear(u,d,g)&&(M?(E&&E.chainRemoveTail(n.index,g),m.pop()):(E&&E.chainRemoveHead(n.index,g),m.shift())),E&&E.chainClose(n.index),t.push(m);return}M?(E&&E.chainAddHead(n.index,A),m.unshift(A)):(E&&E.chainAddTail(n.index,A),m.push(A));return}function y(F){E&&E.chainReverse(F),e[F].reverse()}function f(F,N){var O=e[F],P=e[N],U=O[O.length-1],B=O[O.length-2],X=P[0],$=P[1];S.pointsCollinear(B,U,X)&&(E&&E.chainRemoveTail(F,U),O.pop(),U=B),S.pointsCollinear(U,X,$)&&(E&&E.chainRemoveHead(N,X),P.shift()),E&&E.chainJoin(F,N),e[F]=O.concat(P),e.splice(N,1)}var R=n.index,L=i.index;E&&E.chainConnect(R,L);var z=e[R].length<e[L].length;n.matches_head?i.matches_head?z?(y(R),f(R,L)):(y(L),f(L,R)):f(L,R):i.matches_head?f(R,L):z?(y(R),f(L,R)):(y(L),f(R,L))}),t}G.exports=v}}),Cz=Xe({"node_modules/polybooljs/lib/segment-selector.js"(Z,G){function v(S,E,e){var t=[];return S.forEach(function(r){var o=(r.myFill.above?8:0)+(r.myFill.below?4:0)+(r.otherFill&&r.otherFill.above?2:0)+(r.otherFill&&r.otherFill.below?1:0);E[o]!==0&&t.push({id:e?e.segmentId():-1,start:r.start,end:r.end,myFill:{above:E[o]===1,below:E[o]===2},otherFill:null})}),e&&e.selected(t),t}var x={union:function(S,E){return v(S,[0,2,1,0,2,2,0,0,1,0,1,0,0,0,0,0],E)},intersect:function(S,E){return v(S,[0,0,0,0,0,2,0,2,0,0,1,1,0,2,1,0],E)},difference:function(S,E){return v(S,[0,0,0,0,2,0,2,0,1,1,0,0,0,1,2,0],E)},differenceRev:function(S,E){return v(S,[0,2,1,0,0,0,1,1,0,2,0,2,0,0,0,0],E)},xor:function(S,E){return v(S,[0,2,1,0,2,0,0,1,1,0,0,2,0,1,2,0],E)}};G.exports=x}}),Lz=Xe({"node_modules/polybooljs/lib/geojson.js"(Z,G){var v={toPolygon:function(x,S){function E(r){if(r.length<=0)return x.segments({inverted:!1,regions:[]});function o(i){var s=i.slice(0,i.length-1);return x.segments({inverted:!1,regions:[s]})}for(var a=o(r[0]),n=1;n<r.length;n++)a=x.selectDifference(x.combine(a,o(r[n])));return a}if(S.type==="Polygon")return x.polygon(E(S.coordinates));if(S.type==="MultiPolygon"){for(var e=x.segments({inverted:!1,regions:[]}),t=0;t<S.coordinates.length;t++)e=x.selectUnion(x.combine(e,E(S.coordinates[t])));return x.polygon(e)}throw new Error("PolyBool: Cannot convert GeoJSON object to PolyBool polygon")},fromPolygon:function(x,S,E){E=x.polygon(x.segments(E));function e(m,p){return S.pointInsideRegion([(m[0][0]+m[1][0])*.5,(m[0][1]+m[1][1])*.5],p)}function t(m){return{region:m,children:[]}}var r=t(null);function o(m,p){for(var T=0;T<m.children.length;T++){var l=m.children[T];if(e(p,l.region)){o(l,p);return}}for(var _=t(p),T=0;T<m.children.length;T++){var l=m.children[T];e(l.region,p)&&(_.children.push(l),m.children.splice(T,1),T--)}m.children.push(_)}for(var a=0;a<E.regions.length;a++){var n=E.regions[a];n.length<3||o(r,n)}function i(m,p){for(var T=0,l=m[m.length-1][0],_=m[m.length-1][1],w=[],A=0;A<m.length;A++){var M=m[A][0],g=m[A][1];w.push([M,g]),T+=g*l-M*_,l=M,_=g}var b=T<0;return b!==p&&w.reverse(),w.push([w[0][0],w[0][1]]),w}var s=[];function h(m){var p=[i(m.region,!1)];s.push(p);for(var T=0;T<m.children.length;T++)p.push(c(m.children[T]))}function c(m){for(var p=0;p<m.children.length;p++)h(m.children[p]);return i(m.region,!0)}for(var a=0;a<r.children.length;a++)h(r.children[a]);return s.length<=0?{type:"Polygon",coordinates:[]}:s.length==1?{type:"Polygon",coordinates:s[0]}:{type:"MultiPolygon",coordinates:s}}};G.exports=v}}),Pz=Xe({"node_modules/polybooljs/index.js"(Z,G){var v=Az(),x=Sz(),S=Ez(),E=kz(),e=Cz(),t=Lz(),r=!1,o=x(),a;a={buildLog:function(i){return i===!0?r=v():i===!1&&(r=!1),r===!1?!1:r.list},epsilon:function(i){return o.epsilon(i)},segments:function(i){var s=S(!0,o,r);return i.regions.forEach(s.addRegion),{segments:s.calculate(i.inverted),inverted:i.inverted}},combine:function(i,s){var h=S(!1,o,r);return{combined:h.calculate(i.segments,i.inverted,s.segments,s.inverted),inverted1:i.inverted,inverted2:s.inverted}},selectUnion:function(i){return{segments:e.union(i.combined,r),inverted:i.inverted1||i.inverted2}},selectIntersect:function(i){return{segments:e.intersect(i.combined,r),inverted:i.inverted1&&i.inverted2}},selectDifference:function(i){return{segments:e.difference(i.combined,r),inverted:i.inverted1&&!i.inverted2}},selectDifferenceRev:function(i){return{segments:e.differenceRev(i.combined,r),inverted:!i.inverted1&&i.inverted2}},selectXor:function(i){return{segments:e.xor(i.combined,r),inverted:i.inverted1!==i.inverted2}},polygon:function(i){return{regions:E(i.segments,o,r),inverted:i.inverted}},polygonFromGeoJSON:function(i){return t.toPolygon(a,i)},polygonToGeoJSON:function(i){return t.fromPolygon(a,o,i)},union:function(i,s){return n(i,s,a.selectUnion)},intersect:function(i,s){return n(i,s,a.selectIntersect)},difference:function(i,s){return n(i,s,a.selectDifference)},differenceRev:function(i,s){return n(i,s,a.selectDifferenceRev)},xor:function(i,s){return n(i,s,a.selectXor)}};function n(i,s,h){var c=a.segments(i),m=a.segments(s),p=a.combine(c,m),T=h(p);return a.polygon(T)}typeof window=="object"&&(window.PolyBool=a),G.exports=a}}),Iz=Xe({"node_modules/point-in-polygon/nested.js"(Z,G){G.exports=function(x,S,E,e){var t=x[0],r=x[1],o=!1;E===void 0&&(E=0),e===void 0&&(e=S.length);for(var a=e-E,n=0,i=a-1;n<a;i=n++){var s=S[n+E][0],h=S[n+E][1],c=S[i+E][0],m=S[i+E][1],p=h>r!=m>r&&t<(c-s)*(r-h)/(m-h)+s;p&&(o=!o)}return o}}}),I_=Xe({"src/lib/polygon.js"(Z,G){"use strict";var v=d2().dot,x=Hs().BADNUM,S=G.exports={};S.tester=function(e){var t=e.slice(),r=t[0][0],o=r,a=t[0][1],n=a,i;for((t[t.length-1][0]!==t[0][0]||t[t.length-1][1]!==t[0][1])&&t.push(t[0]),i=1;i<t.length;i++)r=Math.min(r,t[i][0]),o=Math.max(o,t[i][0]),a=Math.min(a,t[i][1]),n=Math.max(n,t[i][1]);var s=!1,h;t.length===5&&(t[0][0]===t[1][0]?t[2][0]===t[3][0]&&t[0][1]===t[3][1]&&t[1][1]===t[2][1]&&(s=!0,h=function(l){return l[0]===t[0][0]}):t[0][1]===t[1][1]&&t[2][1]===t[3][1]&&t[0][0]===t[3][0]&&t[1][0]===t[2][0]&&(s=!0,h=function(l){return l[1]===t[0][1]}));function c(l,_){var w=l[0],A=l[1];return!(w===x||w<r||w>o||A===x||A<a||A>n||_&&h(l))}function m(l,_){var w=l[0],A=l[1];if(w===x||w<r||w>o||A===x||A<a||A>n)return!1;var M=t.length,g=t[0][0],b=t[0][1],d=0,u,y,f,R,L;for(u=1;u<M;u++)if(y=g,f=b,g=t[u][0],b=t[u][1],R=Math.min(y,g),!(w<R||w>Math.max(y,g)||A>Math.max(f,b)))if(A<Math.min(f,b))w!==R&&d++;else{if(g===y?L=A:L=f+(w-y)*(b-f)/(g-y),A===L)return!(u===1&&_);A<=L&&w!==R&&d++}return d%2===1}var p=!0,T=t[0];for(i=1;i<t.length;i++)if(T[0]!==t[i][0]||T[1]!==t[i][1]){p=!1;break}return{xmin:r,xmax:o,ymin:a,ymax:n,pts:t,contains:s?c:m,isRect:s,degenerate:p}},S.isSegmentBent=function(e,t,r,o){var a=e[t],n=[e[r][0]-a[0],e[r][1]-a[1]],i=v(n,n),s=Math.sqrt(i),h=[-n[1]/s,n[0]/s],c,m,p;for(c=t+1;c<r;c++)if(m=[e[c][0]-a[0],e[c][1]-a[1]],p=v(m,n),p<0||p>i||Math.abs(v(m,h))>o)return!0;return!1},S.filter=function(e,t){var r=[e[0]],o=0,a=0;function n(s){e.push(s);var h=r.length,c=o;r.splice(a+1);for(var m=c+1;m<e.length;m++)(m===e.length-1||S.isSegmentBent(e,c,m+1,t))&&(r.push(e[m]),r.length<h-2&&(o=m,a=r.length-1),c=m)}if(e.length>1){var i=e.pop();n(i)}return{addPt:n,raw:e,filtered:r}}}}),Rz=Xe({"src/components/selections/constants.js"(Z,G){"use strict";G.exports={BENDPX:1.5,MINSELECT:12,SELECTDELAY:100,SELECTID:"-select"}}}),Dz=Xe({"src/components/selections/select.js"(Z,G){"use strict";var v=Pz(),x=Iz(),S=so(),E=es().dashStyle,e=$n(),t=rf(),r=$p().makeEventData,o=Jd(),a=o.freeMode,n=o.rectMode,i=o.drawMode,s=o.openMode,h=o.selectMode,c=a0(),m=L_(),p=M2(),T=$m().clearOutline,l=r0(),_=l.handleEllipse,w=l.readPaths,A=S2().newShapes,M=b5(),g=k5().activateLastSelection,b=sa(),d=b.sorterAsc,u=I_(),y=y2(),f=ef().getFromId,R=C_(),L=P_().redrawReglTraces,z=Rz(),F=z.MINSELECT,N=u.filter,O=u.tester,P=A2(),U=P.p2r,B=P.axValue,X=P.getTransform;function $(Ne){return Ne.subplot!==void 0}function se(Ne,Ke,Te,Ie,Ve){var Ce=!$(Ie),Ee=a(Ve),Pe=n(Ve),ft=s(Ve),ct=i(Ve),_t=h(Ve),Ct=Ve==="drawline",ir=Ve==="drawcircle",rr=Ct||ir,er=Ie.gd,Lr=er._fullLayout,fa=_t&&Lr.newselection.mode==="immediate"&&Ce,Da=Lr._zoomlayer,Ia=Ie.element.getBoundingClientRect(),qa=Ie.plotinfo,Wa=X(qa),Ca=Ke-Ia.left,hi=Te-Ia.top;Lr._calcInverseTransform(er);var wi=b.apply3DTransform(Lr._invTransform)(Ca,hi);Ca=wi[0],hi=wi[1];var Kt=Lr._invScaleX,Ft=Lr._invScaleY,Yt=Ca,Jt=hi,Fr="M"+Ca+","+hi,ta=Ie.xaxes[0],ra=Ie.yaxes[0],ca=ta._length,Ba=ra._length,$a=Ne.altKey&&!(i(Ve)&&ft),Za,ri,pi,Ra,tn,on,hn;q(Ne,er,Ie),Ee&&(Za=N([[Ca,hi]],z.BENDPX));var Tt=Da.selectAll("path.select-outline-"+qa.id).data([1]),ut=ct?Lr.newshape:Lr.newselection;ct&&(Ie.hasText=ut.label.text||ut.label.texttemplate);var Br=ct&&!ft?ut.fillcolor:"rgba(0,0,0,0)",Cr=ut.line.color||(Ce?e.contrast(er._fullLayout.plot_bgcolor):"#7f7f7f");Tt.enter().append("path").attr("class","select-outline select-outline-"+qa.id).style({opacity:ct?ut.opacity/2:1,"stroke-dasharray":E(ut.line.dash,ut.line.width),"stroke-width":ut.line.width+"px","shape-rendering":"crispEdges"}).call(e.stroke,Cr).call(e.fill,Br).attr("fill-rule","evenodd").classed("cursor-move",!!ct).attr("transform",Wa).attr("d",Fr+"Z");var xr=Da.append("path").attr("class","zoombox-corners").style({fill:e.background,stroke:e.defaultLine,"stroke-width":1}).attr("transform",Wa).attr("d","M0,0Z");if(ct&&Ie.hasText){var Ir=Da.select(".label-temp");Ir.empty()&&(Ir=Da.append("g").classed("label-temp",!0).classed("select-outline",!0).style({opacity:.8}))}var Ur=Lr._uid+z.SELECTID,Hr=[],xt=re(er,Ie.xaxes,Ie.yaxes,Ie.subplot);fa&&!Ne.shiftKey&&(Ie._clearSubplotSelections=function(){if(Ce){var vr=ta._id,Or=ra._id;ot(er,vr,Or,xt);for(var ba=(er.layout||{}).selections||[],Pa=[],ya=!1,la=0;la<ba.length;la++){var Ta=Lr.selections[la];!Ta||Ta.xref!==vr||Ta.yref!==Or?Pa.push(ba[la]):ya=!0}ya&&(er._fullLayout._noEmitSelectedAtStart=!0,S.call("_guiRelayout",er,{selections:Pa}))}});var Xt=qr(Ie);Ie.moveFn=function(vr,Or){Ie._clearSubplotSelections&&(Ie._clearSubplotSelections(),Ie._clearSubplotSelections=void 0),Yt=Math.max(0,Math.min(ca,Kt*vr+Ca)),Jt=Math.max(0,Math.min(Ba,Ft*Or+hi));var ba=Math.abs(Yt-Ca),Pa=Math.abs(Jt-hi);if(Pe){var ya,la,Ta;if(_t){var Ai=Lr.selectdirection;switch(Ai==="any"?Pa<Math.min(ba*.6,F)?ya="h":ba<Math.min(Pa*.6,F)?ya="v":ya="d":ya=Ai,ya){case"h":la=ir?Ba/2:0,Ta=Ba;break;case"v":la=ir?ca/2:0,Ta=ca;break}}if(ct)switch(Lr.newshape.drawdirection){case"vertical":ya="h",la=ir?Ba/2:0,Ta=Ba;break;case"horizontal":ya="v",la=ir?ca/2:0,Ta=ca;break;case"ortho":ba<Pa?(ya="h",la=hi,Ta=Jt):(ya="v",la=Ca,Ta=Yt);break;default:ya="d"}ya==="h"?(Ra=rr?_(ir,[Yt,la],[Yt,Ta]):[[Ca,la],[Ca,Ta],[Yt,Ta],[Yt,la]],Ra.xmin=rr?Yt:Math.min(Ca,Yt),Ra.xmax=rr?Yt:Math.max(Ca,Yt),Ra.ymin=Math.min(la,Ta),Ra.ymax=Math.max(la,Ta),xr.attr("d","M"+Ra.xmin+","+(hi-F)+"h-4v"+2*F+"h4ZM"+(Ra.xmax-1)+","+(hi-F)+"h4v"+2*F+"h-4Z")):ya==="v"?(Ra=rr?_(ir,[la,Jt],[Ta,Jt]):[[la,hi],[la,Jt],[Ta,Jt],[Ta,hi]],Ra.xmin=Math.min(la,Ta),Ra.xmax=Math.max(la,Ta),Ra.ymin=rr?Jt:Math.min(hi,Jt),Ra.ymax=rr?Jt:Math.max(hi,Jt),xr.attr("d","M"+(Ca-F)+","+Ra.ymin+"v-4h"+2*F+"v4ZM"+(Ca-F)+","+(Ra.ymax-1)+"v4h"+2*F+"v-4Z")):ya==="d"&&(Ra=rr?_(ir,[Ca,hi],[Yt,Jt]):[[Ca,hi],[Ca,Jt],[Yt,Jt],[Yt,hi]],Ra.xmin=Math.min(Ca,Yt),Ra.xmax=Math.max(Ca,Yt),Ra.ymin=Math.min(hi,Jt),Ra.ymax=Math.max(hi,Jt),xr.attr("d","M0,0Z"))}else Ee&&(Za.addPt([Yt,Jt]),Ra=Za.filtered);if(Ie.selectionDefs&&Ie.selectionDefs.length?(pi=rt(Ie.mergedPolygons,Ra,$a),Ra.subtract=$a,ri=ee(Ie.selectionDefs.concat([Ra]))):(pi=[Ra],ri=O(Ra)),p(Me(pi,ft),Tt,Ie),_t){var ki=he(er,!1),Ki=ki.eventData?ki.eventData.points.slice():[];ki=he(er,!1,ri,xt,Ie),ri=ki.selectionTesters,hn=ki.eventData;var _n;Za?_n=Za.filtered:_n=Wt(pi),y.throttle(Ur,z.SELECTDELAY,function(){Hr=ye(ri,xt);for(var Rn=Hr.slice(),En=0;En<Ki.length;En++){for(var On=Ki[En],no=!1,cn=0;cn<Rn.length;cn++)if(Rn[cn].curveNumber===On.curveNumber&&Rn[cn].pointNumber===On.pointNumber){no=!0;break}no||Rn.push(On)}Rn.length&&(hn||(hn={}),hn.points=Rn),Xt(hn,_n),Sr(er,hn)})}},Ie.clickFn=function(vr,Or){if(xr.remove(),er._fullLayout._activeShapeIndex>=0){er._fullLayout._deactivateShape(er);return}if(!ct){var ba=Lr.clickmode;y.done(Ur).then(function(){if(y.clear(Ur),vr===2){for(Tt.remove(),tn=0;tn<xt.length;tn++)on=xt[tn],on._module.selectPoints(on,!1);if(at(er,xt),j(Ie),wt(er),xt.length){var Pa=xt[0].xaxis,ya=xt[0].yaxis;if(Pa&&ya){for(var la=[],Ta=er._fullLayout.selections,Ai=0;Ai<Ta.length;Ai++){var ki=Ta[Ai];ki&&(ki.xref!==Pa._id||ki.yref!==ya._id)&&la.push(ki)}la.length<Ta.length&&(er._fullLayout._noEmitSelectedAtStart=!0,S.call("_guiRelayout",er,{selections:la}))}}}else ba.indexOf("select")>-1&&le(Or,er,Ie.xaxes,Ie.yaxes,Ie.subplot,Ie,Tt),ba==="event"&&Rr(er,void 0);t.click(er,Or,qa.id)}).catch(b.error)}},Ie.doneFn=function(){xr.remove(),y.done(Ur).then(function(){y.clear(Ur),!fa&&Ra&&Ie.selectionDefs&&(Ra.subtract=$a,Ie.selectionDefs.push(Ra),Ie.mergedPolygons.length=0,[].push.apply(Ie.mergedPolygons,pi)),(fa||ct)&&j(Ie,fa),Ie.doneFnCompleted&&Ie.doneFnCompleted(Hr),_t&&Rr(er,hn)}).catch(b.error)}}function le(Ne,Ke,Te,Ie,Ve,Ce,Ee){var Pe=Ke._hoverdata,ft=Ke._fullLayout,ct=ft.clickmode,_t=ct.indexOf("event")>-1,Ct=[],ir,rr,er,Lr,fa,Da,Ia,qa,Wa,Ca;if(be(Pe)){q(Ne,Ke,Ce),ir=re(Ke,Te,Ie,Ve);var hi=Ae(Pe,ir),wi=hi.pointNumbers.length>0;if(wi?ze(ir,hi):Ze(ir)&&(Ia=De(hi))){for(Ee&&Ee.remove(),Ca=0;Ca<ir.length;Ca++)rr=ir[Ca],rr._module.selectPoints(rr,!1);at(Ke,ir),j(Ce),_t&&wt(Ke)}else{qa=Ne.shiftKey&&(Ia!==void 0?Ia:De(hi)),er=fe(hi.pointNumber,hi.searchInfo,qa);var Kt=Ce.selectionDefs.concat([er]);for(Lr=ee(Kt,Lr),Ca=0;Ca<ir.length;Ca++)if(fa=ir[Ca]._module.selectPoints(ir[Ca],Lr),Da=st(fa,ir[Ca]),Ct.length)for(var Ft=0;Ft<Da.length;Ft++)Ct.push(Da[Ft]);else Ct=Da;if(Wa={points:Ct},at(Ke,ir,Wa),er&&Ce&&Ce.selectionDefs.push(er),Ee){var Yt=Ce.mergedPolygons,Jt=s(Ce.dragmode);p(Me(Yt,Jt),Ee,Ce)}_t&&Rr(Ke,Wa)}}}function fe(Ne,Ke,Te){return{pointNumber:Ne,searchInfo:Ke,subtract:!!Te}}function V(Ne){return"pointNumber"in Ne&&"searchInfo"in Ne}function Y(Ne){return{xmin:0,xmax:0,ymin:0,ymax:0,pts:[],contains:function(Ke,Te,Ie,Ve){var Ce=Ne.searchInfo.cd[0].trace.index,Ee=Ve.cd[0].trace.index;return Ee===Ce&&Ie===Ne.pointNumber},isRect:!1,degenerate:!1,subtract:!!Ne.subtract}}function ee(Ne){if(!Ne.length)return;for(var Ke=[],Te=V(Ne[0])?0:Ne[0][0][0],Ie=Te,Ve=V(Ne[0])?0:Ne[0][0][1],Ce=Ve,Ee=0;Ee<Ne.length;Ee++)if(V(Ne[Ee]))Ke.push(Y(Ne[Ee]));else{var Pe=O(Ne[Ee]);Pe.subtract=!!Ne[Ee].subtract,Ke.push(Pe),Te=Math.min(Te,Pe.xmin),Ie=Math.max(Ie,Pe.xmax),Ve=Math.min(Ve,Pe.ymin),Ce=Math.max(Ce,Pe.ymax)}function ft(ct,_t,Ct,ir){for(var rr=!1,er=0;er<Ke.length;er++)Ke[er].contains(ct,_t,Ct,ir)&&(rr=!Ke[er].subtract);return rr}return{xmin:Te,xmax:Ie,ymin:Ve,ymax:Ce,pts:[],contains:ft,isRect:!1,degenerate:!1}}function q(Ne,Ke,Te){var Ie=Ke._fullLayout,Ve=Te.plotinfo,Ce=Te.dragmode,Ee=Ie._lastSelectedSubplot&&Ie._lastSelectedSubplot===Ve.id,Pe=(Ne.shiftKey||Ne.altKey)&&!(i(Ce)&&s(Ce));Ee&&Pe&&Ve.selection&&Ve.selection.selectionDefs&&!Te.selectionDefs?(Te.selectionDefs=Ve.selection.selectionDefs,Te.mergedPolygons=Ve.selection.mergedPolygons):(!Pe||!Ve.selection)&&j(Te),Ee||(T(Ke),Ie._lastSelectedSubplot=Ve.id)}function oe(Ne){return Ne._fullLayout._activeShapeIndex>=0}function ae(Ne){return Ne._fullLayout._activeSelectionIndex>=0}function j(Ne,Ke){var Te=Ne.dragmode,Ie=Ne.plotinfo,Ve=Ne.gd;oe(Ve)&&Ve._fullLayout._deactivateShape(Ve),ae(Ve)&&Ve._fullLayout._deactivateSelection(Ve);var Ce=Ve._fullLayout,Ee=Ce._zoomlayer,Pe=i(Te),ft=h(Te);if(Pe||ft){var ct=Ee.selectAll(".select-outline-"+Ie.id);if(ct&&Ve._fullLayout._outlining){var _t;Pe&&(_t=A(ct,Ne)),_t&&S.call("_guiRelayout",Ve,{shapes:_t});var Ct;ft&&!$(Ne)&&(Ct=M(ct,Ne)),Ct&&(Ve._fullLayout._noEmitSelectedAtStart=!0,S.call("_guiRelayout",Ve,{selections:Ct}).then(function(){Ke&&g(Ve)})),Ve._fullLayout._outlining=!1}}Ie.selection={},Ie.selection.selectionDefs=Ne.selectionDefs=[],Ie.selection.mergedPolygons=Ne.mergedPolygons=[]}function Q(Ne){return Ne._id}function re(Ne,Ke,Te,Ie){if(!Ne.calcdata)return[];var Ve=[],Ce=Ke.map(Q),Ee=Te.map(Q),Pe,ft,ct;for(ct=0;ct<Ne.calcdata.length;ct++)if(Pe=Ne.calcdata[ct],ft=Pe[0].trace,!(ft.visible!==!0||!ft._module||!ft._module.selectPoints))if($({subplot:Ie})&&(ft.subplot===Ie||ft.geo===Ie))Ve.push(ce(ft._module,Pe,Ke[0],Te[0]));else if(ft.type==="splom"){if(ft._xaxes[Ce[0]]&&ft._yaxes[Ee[0]]){var _t=ce(ft._module,Pe,Ke[0],Te[0]);_t.scene=Ne._fullLayout._splomScenes[ft.uid],Ve.push(_t)}}else if(ft.type==="sankey"){var Ct=ce(ft._module,Pe,Ke[0],Te[0]);Ve.push(Ct)}else{if(Ce.indexOf(ft.xaxis)===-1&&(!ft._xA||!ft._xA.overlaying)||Ee.indexOf(ft.yaxis)===-1&&(!ft._yA||!ft._yA.overlaying))continue;Ve.push(ce(ft._module,Pe,f(Ne,ft.xaxis),f(Ne,ft.yaxis)))}return Ve}function ce(Ne,Ke,Te,Ie){return{_module:Ne,cd:Ke,xaxis:Te,yaxis:Ie}}function be(Ne){return Ne&&Array.isArray(Ne)&&Ne[0].hoverOnBox!==!0}function Ae(Ne,Ke){var Te=Ne[0],Ie=-1,Ve=[],Ce,Ee;for(Ee=0;Ee<Ke.length;Ee++)if(Ce=Ke[Ee],Te.fullData.index===Ce.cd[0].trace.index){if(Te.hoverOnBox===!0)break;Te.pointNumber!==void 0?Ie=Te.pointNumber:Te.binNumber!==void 0&&(Ie=Te.binNumber,Ve=Te.pointNumbers);break}return{pointNumber:Ie,pointNumbers:Ve,searchInfo:Ce}}function De(Ne){var Ke=Ne.searchInfo.cd[0].trace,Te=Ne.pointNumber,Ie=Ne.pointNumbers,Ve=Ie.length>0,Ce=Ve?Ie[0]:Te;return Ke.selectedpoints?Ke.selectedpoints.indexOf(Ce)>-1:!1}function ze(Ne,Ke){var Te=[],Ie,Ve,Ce,Ee;for(Ee=0;Ee<Ne.length;Ee++)Ie=Ne[Ee],Ie.cd[0].trace.selectedpoints&&Ie.cd[0].trace.selectedpoints.length>0&&Te.push(Ie);if(Te.length===1&&(Ce=Te[0]===Ke.searchInfo,Ce&&(Ve=Ke.searchInfo.cd[0].trace,Ve.selectedpoints.length===Ke.pointNumbers.length))){for(Ee=0;Ee<Ke.pointNumbers.length;Ee++)if(Ve.selectedpoints.indexOf(Ke.pointNumbers[Ee])<0)return!1;return!0}return!1}function Ze(Ne){var Ke=0,Te,Ie,Ve;for(Ve=0;Ve<Ne.length;Ve++)if(Te=Ne[Ve],Ie=Te.cd[0].trace,Ie.selectedpoints&&(Ie.selectedpoints.length>1||(Ke+=Ie.selectedpoints.length,Ke>1)))return!1;return Ke===1}function at(Ne,Ke,Te){var Ie;for(Ie=0;Ie<Ke.length;Ie++){var Ve=Ke[Ie].cd[0].trace._fullInput,Ce=Ne._fullLayout._tracePreGUI[Ve.uid]||{};Ce.selectedpoints===void 0&&(Ce.selectedpoints=Ve._input.selectedpoints||null)}var Ee;if(Te){var Pe=Te.points||[];for(Ie=0;Ie<Ke.length;Ie++)Ee=Ke[Ie].cd[0].trace,Ee._input.selectedpoints=Ee._fullInput.selectedpoints=[],Ee._fullInput!==Ee&&(Ee.selectedpoints=[]);for(var ft=0;ft<Pe.length;ft++){var ct=Pe[ft],_t=ct.data,Ct=ct.fullData,ir=ct.pointIndex,rr=ct.pointIndices;rr?([].push.apply(_t.selectedpoints,rr),Ee._fullInput!==Ee&&[].push.apply(Ct.selectedpoints,rr)):(_t.selectedpoints.push(ir),Ee._fullInput!==Ee&&Ct.selectedpoints.push(ir))}}else for(Ie=0;Ie<Ke.length;Ie++)Ee=Ke[Ie].cd[0].trace,delete Ee.selectedpoints,delete Ee._input.selectedpoints,Ee._fullInput!==Ee&&delete Ee._fullInput.selectedpoints;nt(Ne,Ke)}function nt(Ne,Ke){for(var Te=!1,Ie=0;Ie<Ke.length;Ie++){var Ve=Ke[Ie],Ce=Ve.cd;S.traceIs(Ce[0].trace,"regl")&&(Te=!0);var Ee=Ve._module,Pe=Ee.styleOnSelect||Ee.style;Pe&&(Pe(Ne,Ce,Ce[0].node3),Ce[0].nodeRangePlot3&&Pe(Ne,Ce,Ce[0].nodeRangePlot3))}Te&&(R(Ne),L(Ne))}function rt(Ne,Ke,Te){for(var Ie=Te?v.difference:v.union,Ve=Ie({regions:Ne},{regions:[Ke]}),Ce=Ve.regions.reverse(),Ee=0;Ee<Ce.length;Ee++){var Pe=Ce[Ee];Pe.subtract=It(Pe,Ce.slice(0,Ee))}return Ce}function st(Ne,Ke){if(Array.isArray(Ne))for(var Te=Ke.cd,Ie=Ke.cd[0].trace,Ve=0;Ve<Ne.length;Ve++)Ne[Ve]=r(Ne[Ve],Ie,Te);return Ne}function Me(Ne,Ke){for(var Te=[],Ie=0;Ie<Ne.length;Ie++){Te[Ie]=[];for(var Ve=0;Ve<Ne[Ie].length;Ve++){Te[Ie][Ve]=[],Te[Ie][Ve][0]=Ve?"L":"M";for(var Ce=0;Ce<Ne[Ie][Ve].length;Ce++)Te[Ie][Ve].push(Ne[Ie][Ve][Ce])}Ke||Te[Ie].push(["Z",Te[Ie][0][1],Te[Ie][0][2]])}return Te}function ye(Ne,Ke){for(var Te=[],Ie,Ve=[],Ce,Ee=0;Ee<Ke.length;Ee++){var Pe=Ke[Ee];Ce=Pe._module.selectPoints(Pe,Ne),Ve.push(Ce),Ie=st(Ce,Pe),Te=Te.concat(Ie)}return Te}function he(Ne,Ke,Te,Ie,Ve){var Ce=!!Ie,Ee,Pe,ft;Ve&&(Ee=Ve.plotinfo,Pe=Ve.xaxes[0]._id,ft=Ve.yaxes[0]._id);var ct=[],_t=[],Ct=Pt(Ne),ir=Ne._fullLayout;if(Ee){var rr=ir._zoomlayer,er=ir.dragmode,Lr=i(er),fa=h(er);if(Lr||fa){var Da=f(Ne,Pe,"x"),Ia=f(Ne,ft,"y");if(Da&&Ia){var qa=rr.selectAll(".select-outline-"+Ee.id);if(qa&&Ne._fullLayout._outlining&&qa.length){for(var Wa=qa[0][0],Ca=Wa.getAttribute("d"),hi=w(Ca,Ne,Ee),wi=[],Kt=0;Kt<hi.length;Kt++){for(var Ft=hi[Kt],Yt=[],Jt=0;Jt<Ft.length;Jt++)Yt.push([qt(Da,Ft[Jt][1]),qt(Ia,Ft[Jt][2])]);Yt.xref=Pe,Yt.yref=ft,Yt.subtract=It(Yt,wi),wi.push(Yt)}Ct=Ct.concat(wi)}}}}var Fr=Pe&&ft?[Pe+ft]:ir._subplots.cartesian;Oe(Ne);for(var ta={},ra=0;ra<Fr.length;ra++){var ca=Fr[ra],Ba=ca.indexOf("y"),$a=ca.slice(0,Ba),Za=ca.slice(Ba),ri=Pe&&ft?Te:void 0;if(ri=Qe(Ct,$a,Za,ri),ri){var pi=Ie;if(!Ce){var Ra=f(Ne,$a,"x"),tn=f(Ne,Za,"y");pi=re(Ne,[Ra],[tn],ca);for(var on=0;on<pi.length;on++){var hn=pi[on],Tt=hn.cd[0],ut=Tt.trace;if(hn._module.name==="scattergl"&&!Tt.t.xpx){var Br=ut.x,Cr=ut.y,xr=ut._length;Tt.t.xpx=[],Tt.t.ypx=[];for(var Ir=0;Ir<xr;Ir++)Tt.t.xpx[Ir]=Ra.c2p(Br[Ir]),Tt.t.ypx[Ir]=tn.c2p(Cr[Ir])}hn._module.name==="splom"&&(ta[ut.uid]||(ta[ut.uid]=!0))}}var Ur=ye(ri,pi);ct=ct.concat(Ur),_t=_t.concat(pi)}}var Hr={points:ct};at(Ne,_t,Hr);var xt=ir.clickmode,Xt=xt.indexOf("event")>-1&&Ke;if(!Ee&&Ke){var vr=Pt(Ne,!0);if(vr.length){var Or=vr[0].xref,ba=vr[0].yref;if(Or&&ba){var Pa=Wt(vr),ya=mr([f(Ne,Or,"x"),f(Ne,ba,"y")]);ya(Hr,Pa)}}Ne._fullLayout._noEmitSelectedAtStart?Ne._fullLayout._noEmitSelectedAtStart=!1:Xt&&Rr(Ne,Hr),ir._reselect=!1}if(!Ee&&ir._deselect){var la=ir._deselect;Pe=la.xref,ft=la.yref,tt(Pe,ft,_t)||ot(Ne,Pe,ft,Ie),Xt&&(Hr.points.length?Rr(Ne,Hr):wt(Ne)),ir._deselect=!1}return{eventData:Hr,selectionTesters:Te}}function Oe(Ne){var Ke=Ne.calcdata;if(Ke)for(var Te=0;Te<Ke.length;Te++){var Ie=Ke[Te][0],Ve=Ie.trace,Ce=Ne._fullLayout._splomScenes;if(Ce){var Ee=Ce[Ve.uid];Ee&&(Ee.selectBatch=[])}}}function tt(Ne,Ke,Te){for(var Ie=0;Ie<Te.length;Ie++){var Ve=Te[Ie];if(Ve.xaxis&&Ve.xaxis._id===Ne&&Ve.yaxis&&Ve.yaxis._id===Ke)return!0}return!1}function ot(Ne,Ke,Te,Ie){Ie=re(Ne,[f(Ne,Ke,"x")],[f(Ne,Te,"y")],Ke+Te);for(var Ve=0;Ve<Ie.length;Ve++){var Ce=Ie[Ve];Ce._module.selectPoints(Ce,!1)}at(Ne,Ie)}function Qe(Ne,Ke,Te,Ie){for(var Ve,Ce=0;Ce<Ne.length;Ce++){var Ee=Ne[Ce];if(!(Ke!==Ee.xref||Te!==Ee.yref))if(Ve){var Pe=!!Ee.subtract;Ve=rt(Ve,Ee,Pe),Ie=ee(Ve)}else Ve=[Ee],Ie=O(Ee)}return Ie}function Pt(Ne,Ke){for(var Te=[],Ie=Ne._fullLayout,Ve=Ie.selections,Ce=Ve.length,Ee=0;Ee<Ce;Ee++)if(!(Ke&&Ee!==Ie._activeSelectionIndex)){var Pe=Ve[Ee];if(Pe){var ft=Pe.xref,ct=Pe.yref,_t=f(Ne,ft,"x"),Ct=f(Ne,ct,"y"),ir,rr,er,Lr,fa;if(Pe.type==="rect"){fa=[];var Da=qt(_t,Pe.x0),Ia=qt(_t,Pe.x1),qa=qt(Ct,Pe.y0),Wa=qt(Ct,Pe.y1);fa=[[Da,qa],[Da,Wa],[Ia,Wa],[Ia,qa]],ir=Math.min(Da,Ia),rr=Math.max(Da,Ia),er=Math.min(qa,Wa),Lr=Math.max(qa,Wa),fa.xmin=ir,fa.xmax=rr,fa.ymin=er,fa.ymax=Lr,fa.xref=ft,fa.yref=ct,fa.subtract=!1,fa.isRect=!0,Te.push(fa)}else if(Pe.type==="path")for(var Ca=Pe.path.split("Z"),hi=[],wi=0;wi<Ca.length;wi++){var Kt=Ca[wi];if(Kt){Kt+="Z";var Ft=c.extractPathCoords(Kt,m.paramIsX,"raw"),Yt=c.extractPathCoords(Kt,m.paramIsY,"raw");ir=1/0,rr=-1/0,er=1/0,Lr=-1/0,fa=[];for(var Jt=0;Jt<Ft.length;Jt++){var Fr=qt(_t,Ft[Jt]),ta=qt(Ct,Yt[Jt]);fa.push([Fr,ta]),ir=Math.min(Fr,ir),rr=Math.max(Fr,rr),er=Math.min(ta,er),Lr=Math.max(ta,Lr)}fa.xmin=ir,fa.xmax=rr,fa.ymin=er,fa.ymax=Lr,fa.xref=ft,fa.yref=ct,fa.subtract=It(fa,hi),hi.push(fa),Te.push(fa)}}}}return Te}function It(Ne,Ke){for(var Te=!1,Ie=0;Ie<Ke.length;Ie++)for(var Ve=Ke[Ie],Ce=0;Ce<Ne.length;Ce++)if(x(Ne[Ce],Ve)){Te=!Te;break}return Te}function qt(Ne,Ke){return Ne.type==="date"&&(Ke=Ke.replace("_"," ")),Ne.type==="log"?Ne.c2p(Ke):Ne.r2p(Ke,null,Ne.calendar)}function Wt(Ne){for(var Ke=Ne.length,Te=[],Ie=0;Ie<Ke;Ie++){var Ve=Ne[Ie];Te=Te.concat(Ve),Te=Te.concat([Ve[0]])}return kr(Te)}function kr(Ne){return Ne.isRect=Ne.length===5&&Ne[0][0]===Ne[4][0]&&Ne[0][1]===Ne[4][1]&&Ne[0][0]===Ne[1][0]&&Ne[2][0]===Ne[3][0]&&Ne[0][1]===Ne[3][1]&&Ne[1][1]===Ne[2][1]||Ne[0][1]===Ne[1][1]&&Ne[2][1]===Ne[3][1]&&Ne[0][0]===Ne[3][0]&&Ne[1][0]===Ne[2][0],Ne.isRect&&(Ne.xmin=Math.min(Ne[0][0],Ne[2][0]),Ne.xmax=Math.max(Ne[0][0],Ne[2][0]),Ne.ymin=Math.min(Ne[0][1],Ne[2][1]),Ne.ymax=Math.max(Ne[0][1],Ne[2][1])),Ne}function mr(Ne){return function(Ke,Te){for(var Ie,Ve,Ce=0;Ce<Ne.length;Ce++){var Ee=Ne[Ce],Pe=Ee._id,ft=Pe.charAt(0);if(Te.isRect){Ie||(Ie={});var ct=Te[ft+"min"],_t=Te[ft+"max"];ct!==void 0&&_t!==void 0&&(Ie[Pe]=[U(Ee,ct),U(Ee,_t)].sort(d))}else Ve||(Ve={}),Ve[Pe]=Te.map(B(Ee))}Ie&&(Ke.range=Ie),Ve&&(Ke.lassoPoints=Ve)}}function qr(Ne){var Ke=Ne.plotinfo;return Ke.fillRangeItems||mr(Ne.xaxes.concat(Ne.yaxes))}function Sr(Ne,Ke){Ne.emit("plotly_selecting",Ke)}function Rr(Ne,Ke){Ke&&(Ke.selections=(Ne.layout||{}).selections||[]),Ne.emit("plotly_selected",Ke)}function wt(Ne){Ne.emit("plotly_deselect",null)}G.exports={reselect:he,prepSelect:se,clearOutline:T,clearSelectionsCache:j,selectOnClick:le}}}),C5=Xe({"src/components/annotations/arrow_paths.js"(Z,G){"use strict";G.exports=[{path:"",backoff:0},{path:"M-2.4,-3V3L0.6,0Z",backoff:.6},{path:"M-3.7,-2.5V2.5L1.3,0Z",backoff:1.3},{path:"M-4.45,-3L-1.65,-0.2V0.2L-4.45,3L1.55,0Z",backoff:1.55},{path:"M-2.2,-2.2L-0.2,-0.2V0.2L-2.2,2.2L-1.4,3L1.6,0L-1.4,-3Z",backoff:1.6},{path:"M-4.4,-2.1L-0.6,-0.2V0.2L-4.4,2.1L-4,3L2,0L-4,-3Z",backoff:2},{path:"M2,0A2,2 0 1,1 0,-2A2,2 0 0,1 2,0Z",backoff:0,noRotate:!0},{path:"M2,2V-2H-2V2Z",backoff:0,noRotate:!0}]}}),R_=Xe({"src/constants/axis_placeable_objects.js"(Z,G){"use strict";G.exports={axisRefDescription:function(v,x,S){return["If set to a",v,"axis id (e.g. *"+v+"* or","*"+v+"2*), the `"+v+"` position refers to a",v,"coordinate. If set to *paper*, the `"+v+"`","position refers to the distance from the",x,"of the plotting","area in normalized coordinates where *0* (*1*) corresponds to the",x,"("+S+"). If set to a",v,"axis ID followed by","*domain* (separated by a space), the position behaves like for","*paper*, but refers to the distance in fractions of the domain","length from the",x,"of the domain of that axis: e.g.,","*"+v+"2 domain* refers to the domain of the second",v," axis and a",v,"position of 0.5 refers to the","point between the",x,"and the",S,"of the domain of the","second",v,"axis."].join(" ")}}}}),$0=Xe({"src/components/annotations/attributes.js"(Z,G){"use strict";var v=C5(),x=tc(),S=lh(),E=zl().templatedArray,e=R_();G.exports=E("annotation",{visible:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},text:{valType:"string",editType:"calc+arraydraw"},textangle:{valType:"angle",dflt:0,editType:"calc+arraydraw"},font:x({editType:"calc+arraydraw",colorEditType:"arraydraw"}),width:{valType:"number",min:1,dflt:null,editType:"calc+arraydraw"},height:{valType:"number",min:1,dflt:null,editType:"calc+arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},align:{valType:"enumerated",values:["left","center","right"],dflt:"center",editType:"arraydraw"},valign:{valType:"enumerated",values:["top","middle","bottom"],dflt:"middle",editType:"arraydraw"},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},bordercolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},borderpad:{valType:"number",min:0,dflt:1,editType:"calc+arraydraw"},borderwidth:{valType:"number",min:0,dflt:1,editType:"calc+arraydraw"},showarrow:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},arrowcolor:{valType:"color",editType:"arraydraw"},arrowhead:{valType:"integer",min:0,max:v.length,dflt:1,editType:"arraydraw"},startarrowhead:{valType:"integer",min:0,max:v.length,dflt:1,editType:"arraydraw"},arrowside:{valType:"flaglist",flags:["end","start"],extras:["none"],dflt:"end",editType:"arraydraw"},arrowsize:{valType:"number",min:.3,dflt:1,editType:"calc+arraydraw"},startarrowsize:{valType:"number",min:.3,dflt:1,editType:"calc+arraydraw"},arrowwidth:{valType:"number",min:.1,editType:"calc+arraydraw"},standoff:{valType:"number",min:0,dflt:0,editType:"calc+arraydraw"},startstandoff:{valType:"number",min:0,dflt:0,editType:"calc+arraydraw"},ax:{valType:"any",editType:"calc+arraydraw"},ay:{valType:"any",editType:"calc+arraydraw"},axref:{valType:"enumerated",dflt:"pixel",values:["pixel",S.idRegex.x.toString()],editType:"calc"},ayref:{valType:"enumerated",dflt:"pixel",values:["pixel",S.idRegex.y.toString()],editType:"calc"},xref:{valType:"enumerated",values:["paper",S.idRegex.x.toString()],editType:"calc"},x:{valType:"any",editType:"calc+arraydraw"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto",editType:"calc+arraydraw"},xshift:{valType:"number",dflt:0,editType:"calc+arraydraw"},yref:{valType:"enumerated",values:["paper",S.idRegex.y.toString()],editType:"calc"},y:{valType:"any",editType:"calc+arraydraw"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"auto",editType:"calc+arraydraw"},yshift:{valType:"number",dflt:0,editType:"calc+arraydraw"},clicktoshow:{valType:"enumerated",values:[!1,"onoff","onout"],dflt:!1,editType:"arraydraw"},xclick:{valType:"any",editType:"arraydraw"},yclick:{valType:"any",editType:"arraydraw"},hovertext:{valType:"string",editType:"arraydraw"},hoverlabel:{bgcolor:{valType:"color",editType:"arraydraw"},bordercolor:{valType:"color",editType:"arraydraw"},font:x({editType:"arraydraw"}),editType:"arraydraw"},captureevents:{valType:"boolean",editType:"arraydraw"},editType:"calc"})}}),Tv=Xe({"src/traces/scatter/constants.js"(Z,G){"use strict";G.exports={PTS_LINESONLY:20,minTolerance:.2,toleranceGrowth:10,maxScreensAway:20,eventDataKeys:[]}}}),$d=Xe({"src/traces/scatter/fillcolor_attribute.js"(Z,G){"use strict";G.exports=function(x){return{valType:"color",editType:"style",anim:!0}}}}),af=Xe({"src/traces/scatter/attributes.js"(Z,G){"use strict";var v=tf().axisHoverFormat,{hovertemplateAttrs:x,texttemplateAttrs:S,templatefallbackAttrs:E}=Jl(),e=ku(),t=tc(),r=Gh().dash,o=Gh().pattern,a=es(),n=Tv(),i=Qo().extendFlat,s=$d();function h(p){return{valType:"any",dflt:0,editType:"calc"}}function c(p){return{valType:"any",editType:"calc"}}function m(p){return{valType:"enumerated",values:["start","middle","end"],dflt:"middle",editType:"calc"}}G.exports={x:{valType:"data_array",editType:"calc+clearAxisTypes",anim:!0},x0:{valType:"any",dflt:0,editType:"calc+clearAxisTypes",anim:!0},dx:{valType:"number",dflt:1,editType:"calc",anim:!0},y:{valType:"data_array",editType:"calc+clearAxisTypes",anim:!0},y0:{valType:"any",dflt:0,editType:"calc+clearAxisTypes",anim:!0},dy:{valType:"number",dflt:1,editType:"calc",anim:!0},xperiod:h("x"),yperiod:h("y"),xperiod0:c("x0"),yperiod0:c("y0"),xperiodalignment:m("x"),yperiodalignment:m("y"),xhoverformat:v("x"),yhoverformat:v("y"),offsetgroup:{valType:"string",dflt:"",editType:"calc"},alignmentgroup:{valType:"string",dflt:"",editType:"calc"},stackgroup:{valType:"string",dflt:"",editType:"calc"},orientation:{valType:"enumerated",values:["v","h"],editType:"calc"},groupnorm:{valType:"enumerated",values:["","fraction","percent"],dflt:"",editType:"calc"},stackgaps:{valType:"enumerated",values:["infer zero","interpolate"],dflt:"infer zero",editType:"calc"},text:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},texttemplate:S(),texttemplatefallback:E({editType:"calc"}),hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"style"},mode:{valType:"flaglist",flags:["lines","markers","text"],extras:["none"],editType:"calc"},hoveron:{valType:"flaglist",flags:["points","fills"],editType:"style"},hovertemplate:x({},{keys:n.eventDataKeys}),hovertemplatefallback:E(),line:{color:{valType:"color",editType:"style",anim:!0},width:{valType:"number",min:0,dflt:2,editType:"style",anim:!0},shape:{valType:"enumerated",values:["linear","spline","hv","vh","hvh","vhv"],dflt:"linear",editType:"plot"},smoothing:{valType:"number",min:0,max:1.3,dflt:1,editType:"plot"},dash:i({},r,{editType:"style"}),backoff:{valType:"number",min:0,dflt:"auto",arrayOk:!0,editType:"plot"},simplify:{valType:"boolean",dflt:!0,editType:"plot"},editType:"plot"},connectgaps:{valType:"boolean",dflt:!1,editType:"calc"},cliponaxis:{valType:"boolean",dflt:!0,editType:"plot"},fill:{valType:"enumerated",values:["none","tozeroy","tozerox","tonexty","tonextx","toself","tonext"],editType:"calc"},fillcolor:s(!0),fillgradient:i({type:{valType:"enumerated",values:["radial","horizontal","vertical","none"],dflt:"none",editType:"calc"},start:{valType:"number",editType:"calc"},stop:{valType:"number",editType:"calc"},colorscale:{valType:"colorscale",editType:"style"},editType:"calc"}),fillpattern:o,marker:i({symbol:{valType:"enumerated",values:a.symbolList,dflt:"circle",arrayOk:!0,editType:"style"},opacity:{valType:"number",min:0,max:1,arrayOk:!0,editType:"style",anim:!0},angle:{valType:"angle",dflt:0,arrayOk:!0,editType:"plot",anim:!1},angleref:{valType:"enumerated",values:["previous","up"],dflt:"up",editType:"plot",anim:!1},standoff:{valType:"number",min:0,dflt:0,arrayOk:!0,editType:"plot",anim:!0},size:{valType:"number",min:0,dflt:6,arrayOk:!0,editType:"calc",anim:!0},maxdisplayed:{valType:"number",min:0,dflt:0,editType:"plot"},sizeref:{valType:"number",dflt:1,editType:"calc"},sizemin:{valType:"number",min:0,dflt:0,editType:"calc"},sizemode:{valType:"enumerated",values:["diameter","area"],dflt:"diameter",editType:"calc"},line:i({width:{valType:"number",min:0,arrayOk:!0,editType:"style",anim:!0},dash:i({},r,{arrayOk:!0}),editType:"calc"},e("marker.line",{anim:!0})),gradient:{type:{valType:"enumerated",values:["radial","horizontal","vertical","none"],arrayOk:!0,dflt:"none",editType:"calc"},color:{valType:"color",arrayOk:!0,editType:"calc"},editType:"calc"},editType:"calc"},e("marker",{anim:!0})),selected:{marker:{opacity:{valType:"number",min:0,max:1,editType:"style"},color:{valType:"color",editType:"style"},size:{valType:"number",min:0,editType:"style"},editType:"style"},textfont:{color:{valType:"color",editType:"style"},editType:"style"},editType:"style"},unselected:{marker:{opacity:{valType:"number",min:0,max:1,editType:"style"},color:{valType:"color",editType:"style"},size:{valType:"number",min:0,editType:"style"},editType:"style"},textfont:{color:{valType:"color",editType:"style"},editType:"style"},editType:"style"},textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right"],dflt:"middle center",arrayOk:!0,editType:"calc"},textfont:t({editType:"calc",colorEditType:"style",arrayOk:!0}),zorder:{valType:"integer",dflt:0,editType:"plot"}}}}),L5=Xe({"src/components/selections/attributes.js"(Z,G){"use strict";var v=$0(),x=af().line,S=Gh().dash,E=Qo().extendFlat,e=pc().overrideAll,t=zl().templatedArray,r=R_();G.exports=e(t("selection",{type:{valType:"enumerated",values:["rect","path"]},xref:E({},v.xref,{}),yref:E({},v.yref,{}),x0:{valType:"any"},x1:{valType:"any"},y0:{valType:"any"},y1:{valType:"any"},path:{valType:"string",editType:"arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:.7,editType:"arraydraw"},line:{color:x.color,width:E({},x.width,{min:1,dflt:1}),dash:E({},S,{dflt:"dot"})}}),"arraydraw","from-root")}}),zz=Xe({"src/components/selections/defaults.js"(Z,G){"use strict";var v=sa(),x=Go(),S=hp(),E=L5(),e=a0();G.exports=function(o,a){S(o,a,{name:"selections",handleItemDefaults:t});for(var n=a.selections,i=0;i<n.length;i++){var s=n[i];s&&s.path===void 0&&(s.x0===void 0||s.x1===void 0||s.y0===void 0||s.y1===void 0)&&(a.selections[i]=null)}};function t(r,o,a){function n(R,L){return v.coerce(r,o,E,R,L)}var i=n("path"),s=i?"path":"rect",h=n("type",s),c=h!=="path";c&&delete o.path,n("opacity"),n("line.color"),n("line.width"),n("line.dash");for(var m=["x","y"],p=0;p<2;p++){var T=m[p],l={_fullLayout:a},_,w,A,M=x.coerceRef(r,o,l,T);if(_=x.getFromId(l,M),_._selectionIndices.push(o._index),A=e.rangeToShapePosition(_),w=e.shapePositionToRange(_),c){var g=T+"0",b=T+"1",d=r[g],u=r[b];r[g]=w(r[g],!0),r[b]=w(r[b],!0),x.coercePosition(o,l,n,M,g),x.coercePosition(o,l,n,M,b);var y=o[g],f=o[b];y!==void 0&&f!==void 0&&(o[g]=A(y),o[b]=A(f),r[g]=d,r[b]=u)}}c&&v.noneOrAll(r,o,["x0","x1","y0","y1"])}}}),Fz=Xe({"src/components/selections/draw_newselection/defaults.js"(Z,G){"use strict";G.exports=function(x,S,E){E("newselection.mode");var e=E("newselection.line.width");e&&(E("newselection.line.color"),E("newselection.line.dash")),E("activeselection.fillcolor"),E("activeselection.opacity")}}}),D_=Xe({"src/plots/cartesian/include_components.js"(Z,G){"use strict";var v=so(),x=sa(),S=ef();G.exports=function(e){return function(r,o){var a=r[e];if(Array.isArray(a))for(var n=v.subplotsRegistry.cartesian,i=n.idRegex,s=o._subplots,h=s.xaxis,c=s.yaxis,m=s.cartesian,p=o._has("cartesian"),T=0;T<a.length;T++){var l=a[T];if(x.isPlainObject(l)){var _=S.cleanId(l.xref,"x",!1),w=S.cleanId(l.yref,"y",!1),A=i.x.test(_),M=i.y.test(w);if(A||M){p||x.pushUnique(o._basePlotModules,n);var g=!1;A&&h.indexOf(_)===-1&&(h.push(_),g=!0),M&&c.indexOf(w)===-1&&(c.push(w),g=!0),g&&A&&M&&m.push(_+w)}}}}}}}),Af=Xe({"src/components/selections/index.js"(Z,G){"use strict";var v=k5(),x=Dz();G.exports={moduleType:"component",name:"selections",layoutAttributes:L5(),supplyLayoutDefaults:zz(),supplyDrawNewSelectionDefaults:Fz(),includeBasePlot:D_()("selections"),draw:v.draw,drawOne:v.drawOne,reselect:x.reselect,prepSelect:x.prepSelect,clearOutline:x.clearOutline,clearSelectionsCache:x.clearSelectionsCache,selectOnClick:x.selectOnClick}}}),P5=Xe({"src/plots/cartesian/dragbox.js"(Z,G){"use strict";var v=Hn(),x=sa(),S=x.numberFormat,E=Ch(),e=b2(),t=so(),r=x.strTranslate,o=ou(),a=$n(),n=es(),i=rf(),s=Go(),h=Kd(),c=Ap(),m=Jd(),p=m.selectingOrDrawing,T=m.freeMode,l=uh().FROM_TL,_=C_(),w=P_().redrawReglTraces,A=bc(),M=ef().getFromId,g=Af().prepSelect,b=Af().clearOutline,d=Af().selectOnClick,u=E5(),y=lh(),f=y.MINDRAG,R=y.MINZOOM,L=!0;function z(ce,be,Ae,De,ze,Ze,at,nt){var rt=ce._fullLayout._zoomlayer,st=at+nt==="nsew",Me=(at+nt).length===1,ye,he,Oe,tt,ot,Qe,Pt,It,qt,Wt,kr,mr,qr,Sr,Rr,wt,Ne,Ke,Te,Ie,Ve,Ce,Ee;Ae+=be.yaxis._shift;function Pe(){if(ye=be.xaxis,he=be.yaxis,qt=ye._length,Wt=he._length,Pt=ye._offset,It=he._offset,Oe={},Oe[ye._id]=ye,tt={},tt[he._id]=he,at&&nt)for(var Tt=be.overlays,ut=0;ut<Tt.length;ut++){var Br=Tt[ut].xaxis;Oe[Br._id]=Br;var Cr=Tt[ut].yaxis;tt[Cr._id]=Cr}ot=re(Oe),Qe=re(tt),qr=O(ot,nt),Sr=O(Qe,at),Rr=!Sr&&!qr,mr=j(ce,ce._fullLayout._axisMatchGroups,Oe,tt),kr=j(ce,ce._fullLayout._axisConstraintGroups,Oe,tt,mr);var xr=kr.isSubplotConstrained||mr.isSubplotConstrained;wt=nt||xr,Ne=at||xr;var Ir=ce._fullLayout;Ke=Ir._has("scattergl"),Te=Ir._has("splom"),Ie=Ir._has("svg")}Pe();var ft=$(Sr+qr,ce._fullLayout.dragmode,st),ct=N(be,at+nt+"drag",ft,Ae,De,ze,Ze);if(Rr&&!st)return ct.onmousedown=null,ct.style.pointerEvents="none",ct;var _t={element:ct,gd:ce,plotinfo:be};_t.prepFn=function(Tt,ut,Br){var Cr=_t.dragmode,xr=ce._fullLayout.dragmode;xr!==Cr&&(_t.dragmode=xr),Pe(),Ce=ce._fullLayout._invScaleX,Ee=ce._fullLayout._invScaleY,Rr||(st?Tt.shiftKey?xr==="pan"?xr="zoom":p(xr)||(xr="pan"):Tt.ctrlKey&&(xr="pan"):xr="pan"),T(xr)?_t.minDrag=1:_t.minDrag=void 0,p(xr)?(_t.xaxes=ot,_t.yaxes=Qe,g(Tt,ut,Br,_t,xr)):(_t.clickFn=ir,p(Cr)&&Ct(),Rr||(xr==="zoom"?(_t.moveFn=Kt,_t.doneFn=Yt,_t.minDrag=1,wi(Tt,ut,Br)):xr==="pan"&&(_t.moveFn=Ba,_t.doneFn=pi))),ce._fullLayout._redrag=function(){var Ir=ce._dragdata;if(Ir&&Ir.element===ct){var Ur=ce._fullLayout.dragmode;p(Ur)||(Pe(),Ra([0,0,qt,Wt]),_t.moveFn(Ir.dx,Ir.dy))}}};function Ct(){_t.plotinfo.selection=!1,b(ce)}function ir(Tt,ut){var Br=_t.gd;if(Br._fullLayout._activeShapeIndex>=0){Br._fullLayout._deactivateShape(Br);return}var Cr=Br._fullLayout.clickmode;if(Y(Br),Tt===2&&!Me&&ri(),st)Cr.indexOf("select")>-1&&d(ut,Br,ot,Qe,be.id,_t),Cr.indexOf("event")>-1&&i.click(Br,ut,be.id);else if(Tt===1&&Me){var xr=at?he:ye,Ir=at==="s"||nt==="w"?0:1,Ur=xr._name+".range["+Ir+"]",Hr=P(xr,Ir),xt="left",Xt="middle";if(xr.fixedrange)return;at?(Xt=at==="n"?"top":"bottom",xr.side==="right"&&(xt="right")):nt==="e"&&(xt="right"),Br._context.showAxisRangeEntryBoxes&&v.select(ct).call(o.makeEditable,{gd:Br,immediate:!0,background:Br._fullLayout.paper_bgcolor,text:String(Hr),fill:xr.tickfont?xr.tickfont.color:"#444",horizontalAlign:xt,verticalAlign:Xt}).on("edit",function(vr){var Or=xr.d2r(vr);Or!==void 0&&t.call("_guiRelayout",Br,Ur,Or)})}}c.init(_t);var rr,er,Lr,fa,Da,Ia,qa,Wa,Ca,hi;function wi(Tt,ut,Br){var Cr=ct.getBoundingClientRect();rr=ut-Cr.left,er=Br-Cr.top,ce._fullLayout._calcInverseTransform(ce);var xr=x.apply3DTransform(ce._fullLayout._invTransform)(rr,er);rr=xr[0],er=xr[1],Lr={l:rr,r:rr,w:0,t:er,b:er,h:0},fa=ce._hmpixcount?ce._hmlumcount/ce._hmpixcount:E(ce._fullLayout.plot_bgcolor).getLuminance(),Da="M0,0H"+qt+"V"+Wt+"H0V0",Ia=!1,qa="xy",hi=!1,Wa=se(rt,fa,Pt,It,Da),Ca=le(rt,Pt,It)}function Kt(Tt,ut){if(ce._transitioningWithDuration)return!1;var Br=Math.max(0,Math.min(qt,Ce*Tt+rr)),Cr=Math.max(0,Math.min(Wt,Ee*ut+er)),xr=Math.abs(Br-rr),Ir=Math.abs(Cr-er);Lr.l=Math.min(rr,Br),Lr.r=Math.max(rr,Br),Lr.t=Math.min(er,Cr),Lr.b=Math.max(er,Cr);function Ur(){qa="",Lr.r=Lr.l,Lr.t=Lr.b,Ca.attr("d","M0,0Z")}if(kr.isSubplotConstrained)xr>R||Ir>R?(qa="xy",xr/qt>Ir/Wt?(Ir=xr*Wt/qt,er>Cr?Lr.t=er-Ir:Lr.b=er+Ir):(xr=Ir*qt/Wt,rr>Br?Lr.l=rr-xr:Lr.r=rr+xr),Ca.attr("d",ae(Lr))):Ur();else if(mr.isSubplotConstrained)if(xr>R||Ir>R){qa="xy";var Hr=Math.min(Lr.l/qt,(Wt-Lr.b)/Wt),xt=Math.max(Lr.r/qt,(Wt-Lr.t)/Wt);Lr.l=Hr*qt,Lr.r=xt*qt,Lr.b=(1-Hr)*Wt,Lr.t=(1-xt)*Wt,Ca.attr("d",ae(Lr))}else Ur();else!Sr||Ir<Math.min(Math.max(xr*.6,f),R)?xr<f||!qr?Ur():(Lr.t=0,Lr.b=Wt,qa="x",Ca.attr("d",q(Lr,er))):!qr||xr<Math.min(Ir*.6,R)?(Lr.l=0,Lr.r=qt,qa="y",Ca.attr("d",oe(Lr,rr))):(qa="xy",Ca.attr("d",ae(Lr)));Lr.w=Lr.r-Lr.l,Lr.h=Lr.b-Lr.t,qa&&(hi=!0),ce._dragged=hi,fe(Wa,Ca,Lr,Da,Ia,fa),Ft(),ce.emit("plotly_relayouting",Ve),Ia=!0}function Ft(){Ve={},(qa==="xy"||qa==="x")&&(U(ot,Lr.l/qt,Lr.r/qt,Ve,kr.xaxes),$a("x",Ve)),(qa==="xy"||qa==="y")&&(U(Qe,(Wt-Lr.b)/Wt,(Wt-Lr.t)/Wt,Ve,kr.yaxes),$a("y",Ve))}function Yt(){Ft(),Y(ce),pi(),ee(ce)}var Jt=[0,0,qt,Wt],Fr=null,ta=y.REDRAWDELAY,ra=be.mainplot?ce._fullLayout._plots[be.mainplot]:be;function ca(Tt){if(!ce._context._scrollZoom.cartesian&&!ce._fullLayout._enablescrollzoom)return;if(Ct(),ce._transitioningWithDuration){Tt.preventDefault(),Tt.stopPropagation();return}Pe(),clearTimeout(Fr);var ut=-Tt.deltaY;if(isFinite(ut)||(ut=Tt.wheelDelta/10),!isFinite(ut)){x.log("Did not find wheel motion attributes: ",Tt);return}var Br=Math.exp(-Math.min(Math.max(ut,-20),20)/200),Cr=ra.draglayer.select(".nsewdrag").node().getBoundingClientRect(),xr=(Tt.clientX-Cr.left)/Cr.width,Ir=(Cr.bottom-Tt.clientY)/Cr.height,Ur;function Hr(xt,Xt,vr){if(xt.fixedrange)return;var Or=x.simpleMap(xt.range,xt.r2l),ba=Or[0]+(Or[1]-Or[0])*Xt;function Pa(ya){return xt.l2r(ba+(ya-ba)*vr)}xt.range=Or.map(Pa)}if(wt){for(nt||(xr=.5),Ur=0;Ur<ot.length;Ur++)Hr(ot[Ur],xr,Br);$a("x"),Jt[2]*=Br,Jt[0]+=Jt[2]*xr*(1/Br-1)}if(Ne){for(at||(Ir=.5),Ur=0;Ur<Qe.length;Ur++)Hr(Qe[Ur],Ir,Br);$a("y"),Jt[3]*=Br,Jt[1]+=Jt[3]*(1-Ir)*(1/Br-1)}Ra(Jt),Za(),ce.emit("plotly_relayouting",Ve),Fr=setTimeout(function(){ce._fullLayout&&(Jt=[0,0,qt,Wt],pi())},ta),Tt.preventDefault()}at.length*nt.length!==1&&Q(ct,ca);function Ba(Tt,ut){if(Tt=Tt*Ce,ut=ut*Ee,ce._transitioningWithDuration)return;if(ce._fullLayout._replotting=!0,qr==="ew"||Sr==="ns"){var Br=qr?-Tt:0,Cr=Sr?-ut:0;if(mr.isSubplotConstrained){if(qr&&Sr){var xr=(Tt/qt-ut/Wt)/2;Tt=xr*qt,ut=-xr*Wt,Br=-Tt,Cr=-ut}Sr?Br=-Cr*qt/Wt:Cr=-Br*Wt/qt}qr&&(B(ot,Tt),$a("x")),Sr&&(B(Qe,ut),$a("y")),Ra([Br,Cr,qt,Wt]),Za(),ce.emit("plotly_relayouting",Ve);return}function Ir(Pa,ya,la){for(var Ta=1-ya,Ai,ki,Ki=0;Ki<Pa.length;Ki++){var _n=Pa[Ki];if(!_n.fixedrange){Ai=_n,ki=_n._rl[Ta]+(_n._rl[ya]-_n._rl[Ta])/X(la/_n._length);var Rn=_n.l2r(ki);Rn!==!1&&Rn!==void 0&&(_n.range[ya]=Rn)}}return Ai._length*(Ai._rl[ya]-ki)/(Ai._rl[ya]-Ai._rl[Ta])}var Ur=qr==="w"==(Sr==="n")?1:-1;if(qr&&Sr&&(kr.isSubplotConstrained||mr.isSubplotConstrained)){var Hr=(Tt/qt+Ur*ut/Wt)/2;Tt=Hr*qt,ut=Ur*Hr*Wt}var xt,Xt;if(qr==="w"?Tt=Ir(ot,0,Tt):qr==="e"?Tt=Ir(ot,1,-Tt):qr||(Tt=0),Sr==="n"?ut=Ir(Qe,1,ut):Sr==="s"?ut=Ir(Qe,0,-ut):Sr||(ut=0),xt=qr==="w"?Tt:0,Xt=Sr==="n"?ut:0,kr.isSubplotConstrained&&!mr.isSubplotConstrained||mr.isSubplotConstrained&&qr&&Sr&&Ur>0){var vr;if(mr.isSubplotConstrained||!qr&&Sr.length===1){for(vr=0;vr<ot.length;vr++)ot[vr].range=ot[vr]._r.slice(),u(ot[vr],1-ut/Wt);Tt=ut*qt/Wt,xt=Tt/2}if(mr.isSubplotConstrained||!Sr&&qr.length===1){for(vr=0;vr<Qe.length;vr++)Qe[vr].range=Qe[vr]._r.slice(),u(Qe[vr],1-Tt/qt);ut=Tt*Wt/qt,Xt=ut/2}}(!mr.isSubplotConstrained||!Sr)&&$a("x"),(!mr.isSubplotConstrained||!qr)&&$a("y");var Or=qt-Tt,ba=Wt-ut;mr.isSubplotConstrained&&!(qr&&Sr)&&(qr?(Xt=xt?0:Tt*Wt/qt,ba=Or*Wt/qt):(xt=Xt?0:ut*qt/Wt,Or=ba*qt/Wt)),Ra([xt,Xt,Or,ba]),Za(),ce.emit("plotly_relayouting",Ve)}function $a(Tt,ut){for(var Br=mr.isSubplotConstrained?{x:Qe,y:ot}[Tt]:mr[Tt+"axes"],Cr=mr.isSubplotConstrained?{x:ot,y:Qe}[Tt]:[],xr=0;xr<Br.length;xr++){var Ir=Br[xr],Ur=Ir._id,Hr=mr.xLinks[Ur]||mr.yLinks[Ur],xt=Cr[0]||Oe[Hr]||tt[Hr];xt&&(ut?(ut[Ir._name+".range[0]"]=ut[xt._name+".range[0]"],ut[Ir._name+".range[1]"]=ut[xt._name+".range[1]"]):Ir.range=xt.range.slice())}}function Za(){var Tt=[],ut;function Br(Ur){for(ut=0;ut<Ur.length;ut++)Ur[ut].fixedrange||Tt.push(Ur[ut]._id)}function Cr(Ur,Hr){for(ut=0;ut<Ur.length;ut++){var xt=Ur[ut],Xt=xt[Hr];!xt.fixedrange&&Xt.tickmode==="sync"&&Tt.push(Xt._id)}}for(wt&&(Br(ot),Br(kr.xaxes),Br(mr.xaxes),Cr(be.overlays,"xaxis")),Ne&&(Br(Qe),Br(kr.yaxes),Br(mr.yaxes),Cr(be.overlays,"yaxis")),Ve={},ut=0;ut<Tt.length;ut++){var xr=Tt[ut],Ir=M(ce,xr);s.drawOne(ce,Ir,{skipTitle:!0}),Ve[Ir._name+".range[0]"]=Ir.range[0],Ve[Ir._name+".range[1]"]=Ir.range[1]}s.redrawComponents(ce,Tt)}function ri(){if(!ce._transitioningWithDuration){var Tt=ce._context.doubleClick,ut=[];qr&&(ut=ut.concat(ot)),Sr&&(ut=ut.concat(Qe)),mr.xaxes&&(ut=ut.concat(mr.xaxes)),mr.yaxes&&(ut=ut.concat(mr.yaxes));var Br={},Cr,xr;if(Tt==="reset+autosize")for(Tt="autosize",xr=0;xr<ut.length;xr++){Cr=ut[xr];var Ir=Cr._rangeInitial0,Ur=Cr._rangeInitial1,Hr=Ir!==void 0||Ur!==void 0;if(Hr&&(Ir!==void 0&&Ir!==Cr.range[0]||Ur!==void 0&&Ur!==Cr.range[1])||!Hr&&Cr.autorange!==!0){Tt="reset";break}}if(Tt==="autosize")for(xr=0;xr<ut.length;xr++)Cr=ut[xr],Cr.fixedrange||(Br[Cr._name+".autorange"]=!0);else if(Tt==="reset"){for((qr||kr.isSubplotConstrained)&&(ut=ut.concat(kr.xaxes)),Sr&&!kr.isSubplotConstrained&&(ut=ut.concat(kr.yaxes)),kr.isSubplotConstrained&&(qr?Sr||(ut=ut.concat(Qe)):ut=ut.concat(ot)),xr=0;xr<ut.length;xr++)if(Cr=ut[xr],!Cr.fixedrange){var xt=Cr._name,Xt=Cr._autorangeInitial;Cr._rangeInitial0===void 0&&Cr._rangeInitial1===void 0?Br[xt+".autorange"]=!0:Cr._rangeInitial0===void 0?(Br[xt+".autorange"]=Xt,Br[xt+".range"]=[null,Cr._rangeInitial1]):Cr._rangeInitial1===void 0?(Br[xt+".range"]=[Cr._rangeInitial0,null],Br[xt+".autorange"]=Xt):Br[xt+".range"]=[Cr._rangeInitial0,Cr._rangeInitial1]}}ce.emit("plotly_doubleclick",null),t.call("_guiRelayout",ce,Br)}}function pi(){Ra([0,0,qt,Wt]),x.syncOrAsync([A.previousPromises,function(){ce._fullLayout._replotting=!1,t.call("_guiRelayout",ce,Ve)}],ce)}function Ra(Tt){var ut=ce._fullLayout,Br=ut._plots,Cr=ut._subplots.cartesian,xr,Ir,Ur,Hr;if(Te&&t.subplotsRegistry.splom.drag(ce),Ke){for(xr=0;xr<Cr.length;xr++)if(Ir=Br[Cr[xr]],Ur=Ir.xaxis,Hr=Ir.yaxis,Ir._scene){Ur.limitRange&&Ur.limitRange(),Hr.limitRange&&Hr.limitRange();var xt=x.simpleMap(Ur.range,Ur.r2l),Xt=x.simpleMap(Hr.range,Hr.r2l);Ir._scene.update({range:[xt[0],Xt[0],xt[1],Xt[1]]})}}if((Te||Ke)&&(_(ce),w(ce)),Ie){var vr=Tt[2]/ye._length,Or=Tt[3]/he._length;for(xr=0;xr<Cr.length;xr++){Ir=Br[Cr[xr]],Ur=Ir.xaxis,Hr=Ir.yaxis;var ba=(wt||mr.isSubplotConstrained)&&!Ur.fixedrange&&Oe[Ur._id],Pa=(Ne||mr.isSubplotConstrained)&&!Hr.fixedrange&&tt[Hr._id],ya,la,Ta,Ai;if(ba?(ya=vr,Ta=nt||mr.isSubplotConstrained?Tt[0]:hn(Ur,ya)):mr.xaHash[Ur._id]?(ya=vr,Ta=Tt[0]*Ur._length/ye._length):mr.yaHash[Ur._id]?(ya=Or,Ta=Sr==="ns"?-Tt[1]*Ur._length/he._length:hn(Ur,ya,{n:"top",s:"bottom"}[Sr])):(ya=tn(Ur,vr,Or),Ta=on(Ur,ya)),ya>1&&(Ur.maxallowed!==void 0&&wt===(Ur.range[0]<Ur.range[1]?"e":"w")||Ur.minallowed!==void 0&&wt===(Ur.range[0]<Ur.range[1]?"w":"e"))&&(ya=1,Ta=0),Pa?(la=Or,Ai=at||mr.isSubplotConstrained?Tt[1]:hn(Hr,la)):mr.yaHash[Hr._id]?(la=Or,Ai=Tt[1]*Hr._length/he._length):mr.xaHash[Hr._id]?(la=vr,Ai=qr==="ew"?-Tt[0]*Hr._length/ye._length:hn(Hr,la,{e:"right",w:"left"}[qr])):(la=tn(Hr,vr,Or),Ai=on(Hr,la)),la>1&&(Hr.maxallowed!==void 0&&Ne===(Hr.range[0]<Hr.range[1]?"n":"s")||Hr.minallowed!==void 0&&Ne===(Hr.range[0]<Hr.range[1]?"s":"n"))&&(la=1,Ai=0),!(!ya&&!la)){ya||(ya=1),la||(la=1);var ki=Ur._offset-Ta/ya,Ki=Hr._offset-Ai/la;Ir.clipRect.call(n.setTranslate,Ta,Ai).call(n.setScale,ya,la),Ir.plot.call(n.setTranslate,ki,Ki).call(n.setScale,1/ya,1/la),(ya!==Ir.xScaleFactor||la!==Ir.yScaleFactor)&&(n.setPointGroupScale(Ir.zoomScalePts,ya,la),n.setTextPointsScale(Ir.zoomScaleTxt,ya,la)),n.hideOutsideRangePoints(Ir.clipOnAxisFalseTraces,Ir),Ir.xScaleFactor=ya,Ir.yScaleFactor=la}}}}function tn(Tt,ut,Br){return Tt.fixedrange?0:wt&&kr.xaHash[Tt._id]?ut:Ne&&(kr.isSubplotConstrained?kr.xaHash:kr.yaHash)[Tt._id]?Br:0}function on(Tt,ut){return ut?(Tt.range=Tt._r.slice(),u(Tt,ut),hn(Tt,ut)):0}function hn(Tt,ut,Br){return Tt._length*(1-ut)*l[Br||Tt.constraintoward||"middle"]}return ct}function F(ce,be,Ae,De){var ze=x.ensureSingle(ce.draglayer,be,Ae,function(Ze){Ze.classed("drag",!0).style({fill:"transparent","stroke-width":0}).attr("data-subplot",ce.id)});return ze.call(h,De),ze.node()}function N(ce,be,Ae,De,ze,Ze,at){var nt=F(ce,"rect",be,Ae);return v.select(nt).call(n.setRect,De,ze,Ze,at),nt}function O(ce,be){for(var Ae=0;Ae<ce.length;Ae++)if(!ce[Ae].fixedrange)return be;return""}function P(ce,be){var Ae=ce.range[be],De=Math.abs(Ae-ce.range[1-be]),ze;return ce.type==="date"?Ae:ce.type==="log"?(ze=Math.ceil(Math.max(0,-Math.log(De)/Math.LN10))+3,S("."+ze+"g")(Math.pow(10,Ae))):(ze=Math.floor(Math.log(Math.abs(Ae))/Math.LN10)-Math.floor(Math.log(De)/Math.LN10)+4,S("."+String(ze)+"g")(Ae))}function U(ce,be,Ae,De,ze){for(var Ze=0;Ze<ce.length;Ze++){var at=ce[Ze];if(!at.fixedrange)if(at.rangebreaks){var nt=at._id.charAt(0)==="y",rt=nt?1-be:be,st=nt?1-Ae:Ae;De[at._name+".range[0]"]=at.l2r(at.p2l(rt*at._length)),De[at._name+".range[1]"]=at.l2r(at.p2l(st*at._length))}else{var Me=at._rl[0],ye=at._rl[1]-Me;De[at._name+".range[0]"]=at.l2r(Me+ye*be),De[at._name+".range[1]"]=at.l2r(Me+ye*Ae)}}if(ze&&ze.length){var he=(be+(1-Ae))/2;U(ze,he,1-he,De,[])}}function B(ce,be){for(var Ae=0;Ae<ce.length;Ae++){var De=ce[Ae];if(!De.fixedrange){if(De.rangebreaks){var ze=0,Ze=De._length,at=De.p2l(ze+be)-De.p2l(ze),nt=De.p2l(Ze+be)-De.p2l(Ze),rt=(at+nt)/2;De.range=[De.l2r(De._rl[0]-rt),De.l2r(De._rl[1]-rt)]}else De.range=[De.l2r(De._rl[0]-be/De._m),De.l2r(De._rl[1]-be/De._m)];De.limitRange&&De.limitRange()}}}function X(ce){return 1-(ce>=0?Math.min(ce,.9):1/(1/Math.max(ce,-.3)+3.222))}function $(ce,be,Ae){return ce?ce==="nsew"?Ae?"":be==="pan"?"move":"crosshair":ce.toLowerCase()+"-resize":"pointer"}function se(ce,be,Ae,De,ze){return ce.append("path").attr("class","zoombox").style({fill:be>.2?"rgba(0,0,0,0)":"rgba(255,255,255,0)","stroke-width":0}).attr("transform",r(Ae,De)).attr("d",ze+"Z")}function le(ce,be,Ae){return ce.append("path").attr("class","zoombox-corners").style({fill:a.background,stroke:a.defaultLine,"stroke-width":1,opacity:0}).attr("transform",r(be,Ae)).attr("d","M0,0Z")}function fe(ce,be,Ae,De,ze,Ze){ce.attr("d",De+"M"+Ae.l+","+Ae.t+"v"+Ae.h+"h"+Ae.w+"v-"+Ae.h+"h-"+Ae.w+"Z"),V(ce,be,ze,Ze)}function V(ce,be,Ae,De){Ae||(ce.transition().style("fill",De>.2?"rgba(0,0,0,0.4)":"rgba(255,255,255,0.3)").duration(200),be.transition().style("opacity",1).duration(200))}function Y(ce){v.select(ce).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}function ee(ce){L&&ce.data&&ce._context.showTips&&(x.notifier(x._(ce,"Double-click to zoom back out"),"long"),L=!1)}function q(ce,be){return"M"+(ce.l-.5)+","+(be-R-.5)+"h-3v"+(2*R+1)+"h3ZM"+(ce.r+.5)+","+(be-R-.5)+"h3v"+(2*R+1)+"h-3Z"}function oe(ce,be){return"M"+(be-R-.5)+","+(ce.t-.5)+"v-3h"+(2*R+1)+"v3ZM"+(be-R-.5)+","+(ce.b+.5)+"v3h"+(2*R+1)+"v-3Z"}function ae(ce){var be=Math.floor(Math.min(ce.b-ce.t,ce.r-ce.l,R)/2);return"M"+(ce.l-3.5)+","+(ce.t-.5+be)+"h3v"+-be+"h"+be+"v-3h-"+(be+3)+"ZM"+(ce.r+3.5)+","+(ce.t-.5+be)+"h-3v"+-be+"h"+-be+"v-3h"+(be+3)+"ZM"+(ce.r+3.5)+","+(ce.b+.5-be)+"h-3v"+be+"h"+-be+"v3h"+(be+3)+"ZM"+(ce.l-3.5)+","+(ce.b+.5-be)+"h3v"+be+"h"+be+"v3h-"+(be+3)+"Z"}function j(ce,be,Ae,De,ze){for(var Ze=!1,at={},nt={},rt,st,Me,ye,he=(ze||{}).xaHash,Oe=(ze||{}).yaHash,tt=0;tt<be.length;tt++){var ot=be[tt];for(rt in Ae)if(ot[rt]){for(Me in ot)!(ze&&(he[Me]||Oe[Me]))&&!(Me.charAt(0)==="x"?Ae:De)[Me]&&(at[Me]=rt);for(st in De)!(ze&&(he[st]||Oe[st]))&&ot[st]&&(Ze=!0)}for(st in De)if(ot[st])for(ye in ot)!(ze&&(he[ye]||Oe[ye]))&&!(ye.charAt(0)==="x"?Ae:De)[ye]&&(nt[ye]=st)}Ze&&(x.extendFlat(at,nt),nt={});var Qe={},Pt=[];for(Me in at){var It=M(ce,Me);Pt.push(It),Qe[It._id]=It}var qt={},Wt=[];for(ye in nt){var kr=M(ce,ye);Wt.push(kr),qt[kr._id]=kr}return{xaHash:Qe,yaHash:qt,xaxes:Pt,yaxes:Wt,xLinks:at,yLinks:nt,isSubplotConstrained:Ze}}function Q(ce,be){if(!e)ce.onwheel!==void 0?ce.onwheel=be:ce.onmousewheel!==void 0?ce.onmousewheel=be:ce.isAddedWheelEvent||(ce.isAddedWheelEvent=!0,ce.addEventListener("wheel",be,{passive:!1}));else{var Ae=ce.onwheel!==void 0?"wheel":"mousewheel";ce._onwheel&&ce.removeEventListener(Ae,ce._onwheel),ce._onwheel=be,ce.addEventListener(Ae,be,{passive:!1})}}function re(ce){var be=[];for(var Ae in ce)be.push(ce[Ae]);return be}G.exports={makeDragBox:z,makeDragger:F,makeRectDragger:N,makeZoombox:se,makeCorners:le,updateZoombox:fe,xyCorners:ae,transitionZoombox:V,removeZoombox:Y,showDoubleClickNotifier:ee,attachWheelEventHandler:Q}}}),I5=Xe({"src/plots/cartesian/graph_interact.js"(Z){"use strict";var G=Hn(),v=rf(),x=Ap(),S=Kd(),E=P5().makeDragBox,e=lh().DRAGGERSIZE;Z.initInteractions=function(r){var o=r._fullLayout;if(r._context.staticPlot){G.select(r).selectAll(".drag").remove();return}if(!(!o._has("cartesian")&&!o._has("splom"))){var a=Object.keys(o._plots||{}).sort(function(i,s){if((o._plots[i].mainplot&&!0)===(o._plots[s].mainplot&&!0)){var h=i.split("y"),c=s.split("y");return h[0]===c[0]?Number(h[1]||1)-Number(c[1]||1):Number(h[0]||1)-Number(c[0]||1)}return o._plots[i].mainplot?1:-1});a.forEach(function(i){var s=o._plots[i],h=s.xaxis,c=s.yaxis;if(!s.mainplot){var m=E(r,s,h._offset,c._offset,h._length,c._length,"ns","ew");m.onmousemove=function(l){r._fullLayout._rehover=function(){r._fullLayout._hoversubplot===i&&r._fullLayout._plots[i]&&v.hover(r,l,i)},v.hover(r,l,i),r._fullLayout._lasthover=m,r._fullLayout._hoversubplot=i},m.onmouseout=function(l){r._dragging||(r._fullLayout._hoversubplot=null,x.unhover(r,l))},r._context.showAxisDragHandles&&(E(r,s,h._offset-e,c._offset-e,e,e,"n","w"),E(r,s,h._offset+h._length,c._offset-e,e,e,"n","e"),E(r,s,h._offset-e,c._offset+c._length,e,e,"s","w"),E(r,s,h._offset+h._length,c._offset+c._length,e,e,"s","e"))}if(r._context.showAxisDragHandles){if(i===h._mainSubplot){var p=h._mainLinePosition;h.side==="top"&&(p-=e),E(r,s,h._offset+h._length*.1,p,h._length*.8,e,"","ew"),E(r,s,h._offset,p,h._length*.1,e,"","w"),E(r,s,h._offset+h._length*.9,p,h._length*.1,e,"","e")}if(i===c._mainSubplot){var T=c._mainLinePosition;c.side!=="right"&&(T-=e),E(r,s,T,c._offset+c._length*.1,e,c._length*.8,"ns",""),E(r,s,T,c._offset+c._length*.9,e,c._length*.1,"s",""),E(r,s,T,c._offset,e,c._length*.1,"n","")}}});var n=o._hoverlayer.node();n.onmousemove=function(i){i.target=r._fullLayout._lasthover,v.hover(r,i,o._hoversubplot)},n.onclick=function(i){i.target=r._fullLayout._lasthover,v.click(r,i)},n.onmousedown=function(i){r._fullLayout._lasthover.onmousedown(i)},Z.updateFx(r)}},Z.updateFx=function(t){var r=t._fullLayout,o=r.dragmode==="pan"?"move":"crosshair";S(r._draggers,o)}}}),Oz=Xe({"src/plot_api/container_array_match.js"(Z,G){"use strict";var v=so();G.exports=function(S){for(var E=v.layoutArrayContainers,e=v.layoutArrayRegexes,t=S.split("[")[0],r,o,a=0;a<e.length;a++)if(o=S.match(e[a]),o&&o.index===0){r=o[0];break}if(r||(r=E[E.indexOf(t)]),!r)return!1;var n=S.slice(r.length);return n?(o=n.match(/^\[(0|[1-9][0-9]*)\](\.(.+))?$/),o?{array:r,index:Number(o[1]),property:o[3]||""}:!1):{array:r,index:"",property:""}}}}),Bz=Xe({"src/plot_api/manage_arrays.js"(Z){"use strict";var G=Zv(),v=p2(),x=Km(),S=g2().sorterAsc,E=so();Z.containerArrayMatch=Oz();var e=Z.isAddVal=function(o){return o==="add"||G(o)},t=Z.isRemoveVal=function(o){return o===null||o==="remove"};Z.applyContainerArrayChanges=function(o,a,n,i,s){var h=a.astr,c=E.getComponentMethod(h,"supplyLayoutDefaults"),m=E.getComponentMethod(h,"draw"),p=E.getComponentMethod(h,"drawOne"),T=i.replot||i.recalc||c===v||m===v,l=o.layout,_=o._fullLayout;if(n[""]){Object.keys(n).length>1&&x.warn("Full array edits are incompatible with other edits",h);var w=n[""][""];if(t(w))a.set(null);else if(Array.isArray(w))a.set(w);else return x.warn("Unrecognized full array edit value",h,w),!0;return T?!1:(c(l,_),m(o),!0)}var A=Object.keys(n).map(Number).sort(S),M=a.get(),g=M||[],b=s(_,h).get(),d=[],u=-1,y=g.length,f,R,L,z,F,N,O,P;for(f=0;f<A.length;f++){if(L=A[f],z=n[L],F=Object.keys(z),N=z[""],O=e(N),L<0||L>g.length-(O?0:1)){x.warn("index out of range",h,L);continue}if(N!==void 0)F.length>1&&x.warn("Insertion & removal are incompatible with edits to the same index.",h,L),t(N)?d.push(L):O?(N==="add"&&(N={}),g.splice(L,0,N),b&&b.splice(L,0,{})):x.warn("Unrecognized full object edit value",h,L,N),u===-1&&(u=L);else for(R=0;R<F.length;R++)P=h+"["+L+"].",s(g[L],F[R],P).set(z[F[R]])}for(f=d.length-1;f>=0;f--)g.splice(d[f],1),b&&b.splice(d[f],1);if(g.length?M||a.set(g):a.set(null),T)return!1;if(c(l,_),p!==v){var U;if(u===-1)U=A;else{for(y=Math.max(g.length,y),U=[],f=0;f<A.length&&(L=A[f],!(L>=u));f++)U.push(L);for(f=u;f<y;f++)U.push(f)}for(f=0;f<U.length;f++)p(o,U[f])}else m(o);return!0}}}),Nz=Xe({"src/plot_api/helpers.js"(Z){"use strict";var G=rs(),v=so(),x=sa(),S=bc(),E=ef(),e=$n(),t=E.cleanId,r=E.getFromTrace,o=v.traceIs,a=["x","y","z"];Z.clearPromiseQueue=function(l){Array.isArray(l._promises)&&l._promises.length>0&&x.log("Clearing previous rejected promises from queue."),l._promises=[]},Z.cleanLayout=function(l){var _,w;l||(l={}),l.xaxis1&&(l.xaxis||(l.xaxis=l.xaxis1),delete l.xaxis1),l.yaxis1&&(l.yaxis||(l.yaxis=l.yaxis1),delete l.yaxis1),l.scene1&&(l.scene||(l.scene=l.scene1),delete l.scene1);var A=(S.subplotsRegistry.cartesian||{}).attrRegex,M=(S.subplotsRegistry.polar||{}).attrRegex,g=(S.subplotsRegistry.ternary||{}).attrRegex,b=(S.subplotsRegistry.gl3d||{}).attrRegex,d=Object.keys(l);for(_=0;_<d.length;_++){var u=d[_];if(A&&A.test(u)){var y=l[u];y.anchor&&y.anchor!=="free"&&(y.anchor=t(y.anchor)),y.overlaying&&(y.overlaying=t(y.overlaying)),y.type||(y.isdate?y.type="date":y.islog?y.type="log":y.isdate===!1&&y.islog===!1&&(y.type="linear")),(y.autorange==="withzero"||y.autorange==="tozero")&&(y.autorange=!0,y.rangemode="tozero"),y.insiderange&&delete y.range,delete y.islog,delete y.isdate,delete y.categories,c(y,"domain")&&delete y.domain}}var f=Array.isArray(l.annotations)?l.annotations.length:0;for(_=0;_<f;_++){var R=l.annotations[_];x.isPlainObject(R)&&(n(R,"xref"),n(R,"yref"))}var L=Array.isArray(l.shapes)?l.shapes.length:0;for(_=0;_<L;_++){var z=l.shapes[_];x.isPlainObject(z)&&(n(z,"xref",!0),n(z,"yref",!0))}var F=Array.isArray(l.images)?l.images.length:0;for(_=0;_<F;_++){var N=l.images[_];x.isPlainObject(N)&&(n(N,"xref"),n(N,"yref"))}var O=l.legend;return O&&(O.x>3?(O.x=1.02,O.xanchor="left"):O.x<-2&&(O.x=-.02,O.xanchor="right"),O.y>3?(O.y=1.02,O.yanchor="bottom"):O.y<-2&&(O.y=-.02,O.yanchor="top")),l.dragmode==="rotate"&&(l.dragmode="orbit"),e.clean(l),l.template&&l.template.layout&&Z.cleanLayout(l.template.layout),l};function n(l,_,w=!1){var A=l[_],M=_.charAt(0);w&&Array.isArray(A)||A&&A!=="paper"&&(l[_]=t(A,M,!0))}Z.cleanData=function(l){for(var _=0;_<l.length;_++){var w=l[_],A;if(w.type==="histogramy"&&"xbins"in w&&!("ybins"in w)&&(w.ybins=w.xbins,delete w.xbins),w.type==="histogramy"&&Z.swapXYData(w),(w.type==="histogramx"||w.type==="histogramy")&&(w.type="histogram"),"scl"in w&&!("colorscale"in w)&&(w.colorscale=w.scl,delete w.scl),"reversescl"in w&&!("reversescale"in w)&&(w.reversescale=w.reversescl,delete w.reversescl),w.xaxis&&(w.xaxis=t(w.xaxis,"x")),w.yaxis&&(w.yaxis=t(w.yaxis,"y")),o(w,"gl3d")&&w.scene&&(w.scene=S.subplotsRegistry.gl3d.cleanId(w.scene)),!o(w,"pie-like")&&!o(w,"bar-like"))if(Array.isArray(w.textposition))for(A=0;A<w.textposition.length;A++)w.textposition[A]=h(w.textposition[A]);else w.textposition&&(w.textposition=h(w.textposition));var M=v.getModule(w);if(M&&M.colorbar){var g=M.colorbar.container,b=g?w[g]:w;b&&b.colorscale&&(b.colorscale==="YIGnBu"&&(b.colorscale="YlGnBu"),b.colorscale==="YIOrRd"&&(b.colorscale="YlOrRd"))}if(w.type==="surface"&&x.isPlainObject(w.contours)){var d=["x","y","z"];for(A=0;A<d.length;A++){var u=w.contours[d[A]];x.isPlainObject(u)&&(u.highlightColor&&(u.highlightcolor=u.highlightColor,delete u.highlightColor),u.highlightWidth&&(u.highlightwidth=u.highlightWidth,delete u.highlightWidth))}}if(w.type==="candlestick"||w.type==="ohlc"){var y=(w.increasing||{}).showlegend!==!1,f=(w.decreasing||{}).showlegend!==!1,R=i(w.increasing),L=i(w.decreasing);if(R!==!1&&L!==!1){var z=s(R,L,y,f);z&&(w.name=z)}else(R||L)&&!w.name&&(w.name=R||L)}c(w,"line")&&delete w.line,"marker"in w&&(c(w.marker,"line")&&delete w.marker.line,c(w,"marker")&&delete w.marker),e.clean(w),w.autobinx&&(delete w.autobinx,delete w.xbins),w.autobiny&&(delete w.autobiny,delete w.ybins)}};function i(l){if(!x.isPlainObject(l))return!1;var _=l.name;return delete l.name,delete l.showlegend,(typeof _=="string"||typeof _=="number")&&String(_)}function s(l,_,w,A){if(w&&!A)return l;if(A&&!w||!l.trim())return _;if(!_.trim())return l;var M=Math.min(l.length,_.length),g;for(g=0;g<M&&l.charAt(g)===_.charAt(g);g++);var b=l.slice(0,g);return b.trim()}function h(l){var _="middle",w="center";return typeof l=="string"&&(l.indexOf("top")!==-1?_="top":l.indexOf("bottom")!==-1&&(_="bottom"),l.indexOf("left")!==-1?w="left":l.indexOf("right")!==-1&&(w="right")),_+" "+w}function c(l,_){return _ in l&&typeof l[_]=="object"&&Object.keys(l[_]).length===0}Z.swapXYData=function(l){var _;if(x.swapAttrs(l,["?","?0","d?","?bins","nbins?","autobin?","?src","error_?"]),Array.isArray(l.z)&&Array.isArray(l.z[0])&&(l.transpose?delete l.transpose:l.transpose=!0),l.error_x&&l.error_y){var w=l.error_y,A="copy_ystyle"in w?w.copy_ystyle:!(w.color||w.thickness||w.width);x.swapAttrs(l,["error_?.copy_ystyle"]),A&&x.swapAttrs(l,["error_?.color","error_?.thickness","error_?.width"])}if(typeof l.hoverinfo=="string"){var M=l.hoverinfo.split("+");for(_=0;_<M.length;_++)M[_]==="x"?M[_]="y":M[_]==="y"&&(M[_]="x");l.hoverinfo=M.join("+")}},Z.coerceTraceIndices=function(l,_){if(G(_))return[_];if(!Array.isArray(_)||!_.length)return l.data.map(function(M,g){return g});if(Array.isArray(_)){for(var w=[],A=0;A<_.length;A++)x.isIndex(_[A],l.data.length)?w.push(_[A]):x.warn("trace index (",_[A],") is not a number or is out of bounds");return w}return _},Z.manageArrayContainers=function(l,_,w){var A=l.obj,M=l.parts,g=M.length,b=M[g-1],d=G(b);if(d&&_===null){var u=M.slice(0,g-1).join("."),y=x.nestedProperty(A,u).get();y.splice(b,1)}else d&&l.get()===void 0&&l.get()===void 0&&(w[l.astr]=null),l.set(_)};var m=/(\.[^\[\]\.]+|\[[^\[\]\.]+\])$/;function p(l){var _=l.search(m);if(_>0)return l.slice(0,_)}Z.hasParent=function(l,_){for(var w=p(_);w;){if(w in l)return!0;w=p(w)}return!1},Z.clearAxisTypes=function(l,_,w){for(var A=0;A<_.length;A++)for(var M=l._fullData[A],g=0;g<3;g++){var b=r(l,M,a[g]);if(b&&b.type!=="log"){var d=b._name,u=b._id.slice(1);if(u.slice(0,5)==="scene"){if(w[u]!==void 0)continue;d=u+"."+d}var y=d+".type";w[d]===void 0&&w[y]===void 0&&x.nestedProperty(l.layout,y).set(null)}}};var T=(l,_)=>{let w=(...A)=>A.every(M=>x.isPlainObject(M))||A.every(M=>Array.isArray(M));if([l,_].every(A=>Array.isArray(A))){if(l.length!==_.length)return!1;for(let A=0;A<l.length;A++){let M=l[A],g=_[A];if(M!==g&&!(w(M,g)?T(M,g):!1))return!1}return!0}else if([l,_].every(A=>x.isPlainObject(A))){if(Object.keys(l).length!==Object.keys(_).length)return!1;for(let A in l){if(A.startsWith("_"))continue;let M=l[A],g=_[A];if(M!==g&&!(w(M,g)?T(M,g):!1))return!1}return!0}return!1};Z.collectionsAreEqual=T}}),k2=Xe({"src/plot_api/plot_api.js"(Z){"use strict";var G=Hn(),v=rs(),x=i5(),S=sa(),E=S.nestedProperty,e=Qy(),t=iz(),r=so(),o=e1(),a=bc(),n=Go(),i=h5(),s=Wh(),h=es(),c=$n(),m=I5().initInteractions,p=vd(),T=Af().clearOutline,l=X0().dfltConfig,_=Bz(),w=Nz(),A=P_(),M=pc(),g=lh().AX_NAME_PATTERN,b=0,d=5;function u(Te,Ie,Ve,Ce){var Ee;if(Te=S.getGraphDiv(Te),e.init(Te),S.isPlainObject(Ie)){var Pe=Ie;Ie=Pe.data,Ve=Pe.layout,Ce=Pe.config,Ee=Pe.frames}var ft=e.triggerHandler(Te,"plotly_beforeplot",[Ie,Ve,Ce]);if(ft===!1)return Promise.reject();!Ie&&!Ve&&!S.isPlotDiv(Te)&&S.warn("Calling _doPlot as if redrawing but this container doesn't yet have a plot.",Te);function ct(){if(Ee)return Z.addFrames(Te,Ee)}z(Te,Ce),Ve||(Ve={}),G.select(Te).classed("js-plotly-plot",!0),h.makeTester(),Array.isArray(Te._promises)||(Te._promises=[]);var _t=(Te.data||[]).length===0&&Array.isArray(Ie);Array.isArray(Ie)&&(w.cleanData(Ie),_t?Te.data=Ie:Te.data.push.apply(Te.data,Ie),Te.empty=!1),(!Te.layout||_t)&&(Te.layout=w.cleanLayout(Ve)),a.supplyDefaults(Te);var Ct=Te._fullLayout,ir=Ct._has("cartesian");Ct._replotting=!0,(_t||Ct._shouldCreateBgLayer)&&(Ke(Te),Ct._shouldCreateBgLayer&&delete Ct._shouldCreateBgLayer),h.initGradients(Te),h.initPatterns(Te),_t&&n.saveShowSpikeInitial(Te);var rr=!Te.calcdata||Te.calcdata.length!==(Te._fullData||[]).length;rr&&a.doCalcdata(Te);for(var er=0;er<Te.calcdata.length;er++)Te.calcdata[er][0].trace=Te._fullData[er];Te._context.responsive?Te._responsiveChartHandler||(Te._responsiveChartHandler=function(){S.isHidden(Te)||a.resize(Te)},window.addEventListener("resize",Te._responsiveChartHandler)):S.clearResponsive(Te);var Lr=S.extendFlat({},Ct._size),fa=0;function Da(){for(var Ft=Ct._basePlotModules,Yt=0;Yt<Ft.length;Yt++)Ft[Yt].drawFramework&&Ft[Yt].drawFramework(Te);!Ct._glcanvas&&Ct._has("gl")&&(Ct._glcanvas=Ct._glcontainer.selectAll(".gl-canvas").data([{key:"contextLayer",context:!0,pick:!1},{key:"focusLayer",context:!1,pick:!1},{key:"pickLayer",context:!1,pick:!0}],function(ra){return ra.key}),Ct._glcanvas.enter().append("canvas").attr("class",function(ra){return"gl-canvas gl-canvas-"+ra.key.replace("Layer","")}).style({position:"absolute",top:0,left:0,overflow:"visible","pointer-events":"none"}));var Jt=Te._context.plotGlPixelRatio;if(Ct._glcanvas){Ct._glcanvas.attr("width",Ct.width*Jt).attr("height",Ct.height*Jt).style("width",Ct.width+"px").style("height",Ct.height+"px");var Fr=Ct._glcanvas.data()[0].regl;if(Fr&&(Math.floor(Ct.width*Jt)!==Fr._gl.drawingBufferWidth||Math.floor(Ct.height*Jt)!==Fr._gl.drawingBufferHeight)){var ta="WebGL context buffer and canvas dimensions do not match due to browser/WebGL bug.";if(fa)S.error(ta);else return S.log(ta+" Clearing graph and plotting again."),a.cleanPlot([],{},Te._fullData,Ct),a.supplyDefaults(Te),Ct=Te._fullLayout,a.doCalcdata(Te),fa++,Da()}}return Ct.modebar.orientation==="h"?Ct._modebardiv.style("height",null).style("width","100%"):Ct._modebardiv.style("width",null).style("height",Ct.height+"px"),a.previousPromises(Te)}function Ia(){if(a.clearAutoMarginIds(Te),A.drawMarginPushers(Te),n.allowAutoMargin(Te),Te._fullLayout.title.text&&Te._fullLayout.title.automargin&&a.allowAutoMargin(Te,"title.automargin"),Ct._has("pie"))for(var Ft=Te._fullData,Yt=0;Yt<Ft.length;Yt++){var Jt=Ft[Yt];Jt.type==="pie"&&Jt.automargin&&a.allowAutoMargin(Te,"pie."+Jt.uid+".automargin")}return a.doAutoMargin(Te),a.previousPromises(Te)}function qa(){if(a.didMarginChange(Lr,Ct._size))return S.syncOrAsync([Ia,A.layoutStyles],Te)}function Wa(){if(!rr){Ca();return}return S.syncOrAsync([r.getComponentMethod("shapes","calcAutorange"),r.getComponentMethod("annotations","calcAutorange"),Ca],Te)}function Ca(){Te._transitioning||(A.doAutoRangeAndConstraints(Te),_t&&n.saveRangeInitial(Te),r.getComponentMethod("rangeslider","calcAutorange")(Te))}function hi(){return n.draw(Te,_t?"":"redraw")}var wi=[a.previousPromises,ct,Da,Ia,qa];ir&&wi.push(Wa),wi.push(A.layoutStyles),ir&&wi.push(hi,function(Yt){var Jt=Yt._fullLayout._insideTickLabelsUpdaterange;if(Jt)return Yt._fullLayout._insideTickLabelsUpdaterange=void 0,be(Yt,Jt).then(function(){n.saveRangeInitial(Yt,!0)})}),wi.push(A.drawData,A.finalDraw,m,a.addLinks,a.rehover,a.redrag,a.reselect,a.doAutoMargin,a.previousPromises);var Kt=S.syncOrAsync(wi,Te);return(!Kt||!Kt.then)&&(Kt=Promise.resolve()),Kt.then(function(){return y(Te),Te})}function y(Te){var Ie=Te._fullLayout;Ie._redrawFromAutoMarginCount?Ie._redrawFromAutoMarginCount--:Te.emit("plotly_afterplot")}function f(Te){return S.extendFlat(l,Te)}function R(Te,Ie){try{Te._fullLayout._paper.style("background",Ie)}catch(Ve){S.error(Ve)}}function L(Te,Ie){var Ve=c.combine(Ie,"white");R(Te,Ve)}function z(Te,Ie){if(!Te._context){Te._context=S.extendDeep({},l);var Ve=G.select("base");Te._context._baseUrl=Ve.size()&&Ve.attr("href")?window.location.href.split("#")[0]:""}var Ce=Te._context,Ee,Pe,ft;if(Ie){for(Pe=Object.keys(Ie),Ee=0;Ee<Pe.length;Ee++)ft=Pe[Ee],!(ft==="editable"||ft==="edits")&&ft in Ce&&(ft==="setBackground"&&Ie[ft]==="opaque"?Ce[ft]=L:Ce[ft]=Ie[ft]);var ct=Ie.editable;if(ct!==void 0)for(Ce.editable=ct,Pe=Object.keys(Ce.edits),Ee=0;Ee<Pe.length;Ee++)Ce.edits[Pe[Ee]]=ct;if(Ie.edits)for(Pe=Object.keys(Ie.edits),Ee=0;Ee<Pe.length;Ee++)ft=Pe[Ee],ft in Ce.edits&&(Ce.edits[ft]=Ie.edits[ft]);Ce._exportedPlot=Ie._exportedPlot}Ce.staticPlot&&(Ce.editable=!1,Ce.edits={},Ce.autosizable=!1,Ce.scrollZoom=!1,Ce.doubleClick=!1,Ce.showTips=!1,Ce.showLink=!1,Ce.displayModeBar=!1),Ce.displayModeBar==="hover"&&!x&&(Ce.displayModeBar=!0),(Ce.setBackground==="transparent"||typeof Ce.setBackground!="function")&&(Ce.setBackground=R),Ce._hasZeroHeight=Ce._hasZeroHeight||Te.clientHeight===0,Ce._hasZeroWidth=Ce._hasZeroWidth||Te.clientWidth===0;var _t=Ce.scrollZoom,Ct=Ce._scrollZoom={};if(_t===!0)Ct.cartesian=1,Ct.gl3d=1,Ct.geo=1,Ct.mapbox=1,Ct.map=1;else if(typeof _t=="string"){var ir=_t.split("+");for(Ee=0;Ee<ir.length;Ee++)Ct[ir[Ee]]=1}else _t!==!1&&(Ct.gl3d=1,Ct.geo=1,Ct.mapbox=1,Ct.map=1)}function F(Te){if(Te=S.getGraphDiv(Te),!S.isPlotDiv(Te))throw new Error("This element is not a Plotly plot: "+Te);return w.cleanData(Te.data),w.cleanLayout(Te.layout),Te.calcdata=void 0,Z._doPlot(Te).then(function(){return Te.emit("plotly_redraw"),Te})}function N(Te,Ie,Ve,Ce){return Te=S.getGraphDiv(Te),a.cleanPlot([],{},Te._fullData||[],Te._fullLayout||{}),a.purge(Te),Z._doPlot(Te,Ie,Ve,Ce)}function O(Te,Ie){var Ve=Ie+1,Ce=[],Ee,Pe;for(Ee=0;Ee<Te.length;Ee++)Pe=Te[Ee],Pe<0?Ce.push(Ve+Pe):Ce.push(Pe);return Ce}function P(Te,Ie,Ve){var Ce,Ee;for(Ce=0;Ce<Ie.length;Ce++){if(Ee=Ie[Ce],Ee!==parseInt(Ee,10))throw new Error("all values in "+Ve+" must be integers");if(Ee>=Te.data.length||Ee<-Te.data.length)throw new Error(Ve+" must be valid indices for gd.data.");if(Ie.indexOf(Ee,Ce+1)>-1||Ee>=0&&Ie.indexOf(-Te.data.length+Ee)>-1||Ee<0&&Ie.indexOf(Te.data.length+Ee)>-1)throw new Error("each index in "+Ve+" must be unique.")}}function U(Te,Ie,Ve){if(!Array.isArray(Te.data))throw new Error("gd.data must be an array.");if(typeof Ie>"u")throw new Error("currentIndices is a required argument.");if(Array.isArray(Ie)||(Ie=[Ie]),P(Te,Ie,"currentIndices"),typeof Ve<"u"&&!Array.isArray(Ve)&&(Ve=[Ve]),typeof Ve<"u"&&P(Te,Ve,"newIndices"),typeof Ve<"u"&&Ie.length!==Ve.length)throw new Error("current and new indices must be of equal length.")}function B(Te,Ie,Ve){var Ce,Ee;if(!Array.isArray(Te.data))throw new Error("gd.data must be an array.");if(typeof Ie>"u")throw new Error("traces must be defined.");for(Array.isArray(Ie)||(Ie=[Ie]),Ce=0;Ce<Ie.length;Ce++)if(Ee=Ie[Ce],typeof Ee!="object"||Array.isArray(Ee)||Ee===null)throw new Error("all values in traces array must be non-array objects");if(typeof Ve<"u"&&!Array.isArray(Ve)&&(Ve=[Ve]),typeof Ve<"u"&&Ve.length!==Ie.length)throw new Error("if indices is specified, traces.length must equal indices.length")}function X(Te,Ie,Ve,Ce){var Ee=S.isPlainObject(Ce);if(!Array.isArray(Te.data))throw new Error("gd.data must be an array");if(!S.isPlainObject(Ie))throw new Error("update must be a key:value object");if(typeof Ve>"u")throw new Error("indices must be an integer or array of integers");P(Te,Ve,"indices");for(var Pe in Ie){if(!Array.isArray(Ie[Pe])||Ie[Pe].length!==Ve.length)throw new Error("attribute "+Pe+" must be an array of length equal to indices array length");if(Ee&&(!(Pe in Ce)||!Array.isArray(Ce[Pe])||Ce[Pe].length!==Ie[Pe].length))throw new Error("when maxPoints is set as a key:value object it must contain a 1:1 correspondence with the keys and number of traces in the update object")}}function $(Te,Ie,Ve,Ce){var Ee=S.isPlainObject(Ce),Pe=[],ft,ct,_t,Ct,ir;Array.isArray(Ve)||(Ve=[Ve]),Ve=O(Ve,Te.data.length-1);for(var rr in Ie)for(var er=0;er<Ve.length;er++){if(ft=Te.data[Ve[er]],_t=E(ft,rr),ct=_t.get(),Ct=Ie[rr][er],!S.isArrayOrTypedArray(Ct))throw new Error("attribute: "+rr+" index: "+er+" must be an array");if(!S.isArrayOrTypedArray(ct))throw new Error("cannot extend missing or non-array attribute: "+rr);if(ct.constructor!==Ct.constructor)throw new Error("cannot extend array with an array of a different type: "+rr);ir=Ee?Ce[rr][er]:Ce,v(ir)||(ir=-1),Pe.push({prop:_t,target:ct,insert:Ct,maxp:Math.floor(ir)})}return Pe}function se(Te,Ie,Ve,Ce,Ee){X(Te,Ie,Ve,Ce);for(var Pe=$(Te,Ie,Ve,Ce),ft={},ct={},_t=0;_t<Pe.length;_t++){var Ct=Pe[_t].prop,ir=Pe[_t].maxp,rr=Ee(Pe[_t].target,Pe[_t].insert,ir);Ct.set(rr[0]),Array.isArray(ft[Ct.astr])||(ft[Ct.astr]=[]),ft[Ct.astr].push(rr[1]),Array.isArray(ct[Ct.astr])||(ct[Ct.astr]=[]),ct[Ct.astr].push(Pe[_t].target.length)}return{update:ft,maxPoints:ct}}function le(Te,Ie){var Ve=new Te.constructor(Te.length+Ie.length);return Ve.set(Te),Ve.set(Ie,Te.length),Ve}function fe(Te,Ie,Ve,Ce){Te=S.getGraphDiv(Te);function Ee(_t,Ct,ir){var rr,er;if(S.isTypedArray(_t))if(ir<0){var Lr=new _t.constructor(0),fa=le(_t,Ct);ir<0?(rr=fa,er=Lr):(rr=Lr,er=fa)}else if(rr=new _t.constructor(ir),er=new _t.constructor(_t.length+Ct.length-ir),ir===Ct.length)rr.set(Ct),er.set(_t);else if(ir<Ct.length){var Da=Ct.length-ir;rr.set(Ct.subarray(Da)),er.set(_t),er.set(Ct.subarray(0,Da),_t.length)}else{var Ia=ir-Ct.length,qa=_t.length-Ia;rr.set(_t.subarray(qa)),rr.set(Ct,Ia),er.set(_t.subarray(0,qa))}else rr=_t.concat(Ct),er=ir>=0&&ir<rr.length?rr.splice(0,rr.length-ir):[];return[rr,er]}var Pe=se(Te,Ie,Ve,Ce,Ee),ft=Z.redraw(Te),ct=[Te,Pe.update,Ve,Pe.maxPoints];return t.add(Te,Z.prependTraces,ct,fe,arguments),ft}function V(Te,Ie,Ve,Ce){Te=S.getGraphDiv(Te);function Ee(_t,Ct,ir){var rr,er;if(S.isTypedArray(_t))if(ir<=0){var Lr=new _t.constructor(0),fa=le(Ct,_t);ir<0?(rr=fa,er=Lr):(rr=Lr,er=fa)}else if(rr=new _t.constructor(ir),er=new _t.constructor(_t.length+Ct.length-ir),ir===Ct.length)rr.set(Ct),er.set(_t);else if(ir<Ct.length){var Da=Ct.length-ir;rr.set(Ct.subarray(0,Da)),er.set(Ct.subarray(Da)),er.set(_t,Da)}else{var Ia=ir-Ct.length;rr.set(Ct),rr.set(_t.subarray(0,Ia),Ct.length),er.set(_t.subarray(Ia))}else rr=Ct.concat(_t),er=ir>=0&&ir<rr.length?rr.splice(ir,rr.length):[];return[rr,er]}var Pe=se(Te,Ie,Ve,Ce,Ee),ft=Z.redraw(Te),ct=[Te,Pe.update,Ve,Pe.maxPoints];return t.add(Te,Z.extendTraces,ct,V,arguments),ft}function Y(Te,Ie,Ve){Te=S.getGraphDiv(Te);var Ce=[],Ee=Z.deleteTraces,Pe=Y,ft=[Te,Ce],ct=[Te,Ie],_t,Ct;for(B(Te,Ie,Ve),Array.isArray(Ie)||(Ie=[Ie]),Ie=Ie.map(function(ir){return S.extendFlat({},ir)}),w.cleanData(Ie),_t=0;_t<Ie.length;_t++)Te.data.push(Ie[_t]);for(_t=0;_t<Ie.length;_t++)Ce.push(-Ie.length+_t);if(typeof Ve>"u")return Ct=Z.redraw(Te),t.add(Te,Ee,ft,Pe,ct),Ct;Array.isArray(Ve)||(Ve=[Ve]);try{U(Te,Ce,Ve)}catch(ir){throw Te.data.splice(Te.data.length-Ie.length,Ie.length),ir}return t.startSequence(Te),t.add(Te,Ee,ft,Pe,ct),Ct=Z.moveTraces(Te,Ce,Ve),t.stopSequence(Te),Ct}function ee(Te,Ie){Te=S.getGraphDiv(Te);var Ve=[],Ce=Z.addTraces,Ee=ee,Pe=[Te,Ve,Ie],ft=[Te,Ie],ct,_t;if(typeof Ie>"u")throw new Error("indices must be an integer or array of integers.");for(Array.isArray(Ie)||(Ie=[Ie]),P(Te,Ie,"indices"),Ie=O(Ie,Te.data.length-1),Ie.sort(S.sorterDes),ct=0;ct<Ie.length;ct+=1)_t=Te.data.splice(Ie[ct],1)[0],Ve.push(_t);var Ct=Z.redraw(Te);return t.add(Te,Ce,Pe,Ee,ft),Ct}function q(Te,Ie,Ve){Te=S.getGraphDiv(Te);var Ce=[],Ee=[],Pe=q,ft=q,ct=[Te,Ve,Ie],_t=[Te,Ie,Ve],Ct;if(U(Te,Ie,Ve),Ie=Array.isArray(Ie)?Ie:[Ie],typeof Ve>"u")for(Ve=[],Ct=0;Ct<Ie.length;Ct++)Ve.push(-Ie.length+Ct);for(Ve=Array.isArray(Ve)?Ve:[Ve],Ie=O(Ie,Te.data.length-1),Ve=O(Ve,Te.data.length-1),Ct=0;Ct<Te.data.length;Ct++)Ie.indexOf(Ct)===-1&&Ce.push(Te.data[Ct]);for(Ct=0;Ct<Ie.length;Ct++)Ee.push({newIndex:Ve[Ct],trace:Te.data[Ie[Ct]]});for(Ee.sort(function(rr,er){return rr.newIndex-er.newIndex}),Ct=0;Ct<Ee.length;Ct+=1)Ce.splice(Ee[Ct].newIndex,0,Ee[Ct].trace);Te.data=Ce;var ir=Z.redraw(Te);return t.add(Te,Pe,ct,ft,_t),ir}function oe(Te,Ie,Ve,Ce){Te=S.getGraphDiv(Te),w.clearPromiseQueue(Te);var Ee={};if(typeof Ie=="string")Ee[Ie]=Ve;else if(S.isPlainObject(Ie))Ee=S.extendFlat({},Ie),Ce===void 0&&(Ce=Ve);else return S.warn("Restyle fail.",Ie,Ve,Ce),Promise.reject();Object.keys(Ee).length&&(Te.changed=!0);var Pe=w.coerceTraceIndices(Te,Ce),ft=ce(Te,Ee,Pe),ct=ft.flags;ct.calc&&(Te.calcdata=void 0),ct.clearAxisTypes&&w.clearAxisTypes(Te,Pe,{});var _t=[];ct.fullReplot?_t.push(Z._doPlot):(_t.push(a.previousPromises),a.supplyDefaults(Te),ct.markerSize&&(a.doCalcdata(Te),De(_t)),ct.style&&_t.push(A.doTraceStyle),ct.colorbars&&_t.push(A.doColorBars),_t.push(y)),_t.push(a.rehover,a.redrag,a.reselect),t.add(Te,oe,[Te,ft.undoit,ft.traces],oe,[Te,ft.redoit,ft.traces]);var Ct=S.syncOrAsync(_t,Te);return(!Ct||!Ct.then)&&(Ct=Promise.resolve()),Ct.then(function(){return Te.emit("plotly_restyle",ft.eventData),Te})}function ae(Te){return Te===void 0?null:Te}function j(Te,Ie){return Ie?function(Ve,Ce,Ee){var Pe=E(Ve,Ce),ft=Pe.set;return Pe.set=function(ct){var _t=(Ee||"")+Ce;Q(_t,Pe.get(),ct,Te),ft(ct)},Pe}:E}function Q(Te,Ie,Ve,Ce){if(Array.isArray(Ie)||Array.isArray(Ve))for(var Ee=Array.isArray(Ie)?Ie:[],Pe=Array.isArray(Ve)?Ve:[],ft=Math.max(Ee.length,Pe.length),ct=0;ct<ft;ct++)Q(Te+"["+ct+"]",Ee[ct],Pe[ct],Ce);else if(S.isPlainObject(Ie)||S.isPlainObject(Ve)){var _t=S.isPlainObject(Ie)?Ie:{},Ct=S.isPlainObject(Ve)?Ve:{},ir=S.extendFlat({},_t,Ct);for(var rr in ir)Q(Te+"."+rr,_t[rr],Ct[rr],Ce)}else Ce[Te]===void 0&&(Ce[Te]=ae(Ie))}function re(Te,Ie,Ve){for(var Ce in Ve){var Ee=E(Te,Ce);Q(Ce,Ee.get(),Ve[Ce],Ie)}}function ce(Te,Ie,Ve){var Ce=Te._fullLayout,Ee=Te._fullData,Pe=Te.data,ft=Ce._guiEditing,ct=j(Ce._preGUI,ft),_t=S.extendDeepAll({},Ie),Ct,ir=M.traceFlags(),rr={},er={},Lr;function fa(){return Ve.map(function(){})}function Da(Xt){var vr=n.id2name(Xt);Lr.indexOf(vr)===-1&&Lr.push(vr)}function Ia(Xt){return"LAYOUT"+Xt+".autorange"}function qa(Xt){return"LAYOUT"+Xt+".range"}function Wa(Xt){for(var vr=Xt;vr<Ee.length;vr++)if(Ee[vr]._input===Pe[Xt])return Ee[vr]}function Ca(Xt,vr,Or){if(Array.isArray(Xt)){Xt.forEach(function(la){Ca(la,vr,Or)});return}if(!(Xt in Ie||w.hasParent(Ie,Xt))){var ba;if(Xt.slice(0,6)==="LAYOUT")ba=ct(Te.layout,Xt.replace("LAYOUT",""));else{var Pa=Ve[Or],ya=Ce._tracePreGUI[Wa(Pa)._fullInput.uid];ba=j(ya,ft)(Pe[Pa],Xt)}Xt in er||(er[Xt]=fa()),er[Xt][Or]===void 0&&(er[Xt][Or]=ae(ba.get())),vr!==void 0&&ba.set(vr)}}function hi(Xt){return function(vr){return Ee[vr][Xt]}}function wi(Xt){return function(vr,Or){return vr===!1?Ee[Ve[Or]][Xt]:null}}for(var Kt in Ie){if(w.hasParent(Ie,Kt))throw new Error("cannot set "+Kt+" and a parent attribute simultaneously");var Ft=Ie[Kt],Yt,Jt,Fr,ta,ra,ca;if((Kt==="autobinx"||Kt==="autobiny")&&(Kt=Kt.charAt(Kt.length-1)+"bins",Array.isArray(Ft)?Ft=Ft.map(wi(Kt)):Ft===!1?Ft=Ve.map(hi(Kt)):Ft=null),rr[Kt]=Ft,Kt.slice(0,6)==="LAYOUT"){Fr=ct(Te.layout,Kt.replace("LAYOUT","")),er[Kt]=[ae(Fr.get())],Fr.set(Array.isArray(Ft)?Ft[0]:Ft),ir.calc=!0;continue}for(er[Kt]=fa(),Ct=0;Ct<Ve.length;Ct++){Yt=Pe[Ve[Ct]],Jt=Wa(Ve[Ct]);var Ba=Ce._tracePreGUI[Jt._fullInput.uid];if(Fr=j(Ba,ft)(Yt,Kt),ta=Fr.get(),ra=Array.isArray(Ft)?Ft[Ct%Ft.length]:Ft,ra!==void 0){var $a=Fr.parts[Fr.parts.length-1],Za=Kt.slice(0,Kt.length-$a.length-1),ri=Za?Za+".":"",pi=Za?E(Jt,Za).get():Jt;if(ca=o.getTraceValObject(Jt,Fr.parts),ca&&ca.impliedEdits&&ra!==null)for(var Ra in ca.impliedEdits)Ca(S.relativeAttr(Kt,Ra),ca.impliedEdits[Ra],Ct);else if(($a==="thicknessmode"||$a==="lenmode")&&ta!==ra&&(ra==="fraction"||ra==="pixels")&&pi){var tn=Ce._size,on=pi.orient,hn=on==="top"||on==="bottom";if($a==="thicknessmode"){var Tt=hn?tn.h:tn.w;Ca(ri+"thickness",pi.thickness*(ra==="fraction"?1/Tt:Tt),Ct)}else{var ut=hn?tn.w:tn.h;Ca(ri+"len",pi.len*(ra==="fraction"?1/ut:ut),Ct)}}else if(Kt==="type"&&(ra==="pie"!=(ta==="pie")||ra==="funnelarea"!=(ta==="funnelarea"))){var Br="x",Cr="y";(ra==="bar"||ta==="bar")&&Yt.orientation==="h"&&(Br="y",Cr="x"),S.swapAttrs(Yt,["?","?src"],"labels",Br),S.swapAttrs(Yt,["d?","?0"],"label",Br),S.swapAttrs(Yt,["?","?src"],"values",Cr),ta==="pie"||ta==="funnelarea"?(E(Yt,"marker.color").set(E(Yt,"marker.colors").get()),Ce._pielayer.selectAll("g.trace").remove()):r.traceIs(Yt,"cartesian")&&E(Yt,"marker.colors").set(E(Yt,"marker.color").get())}er[Kt][Ct]=ae(ta);var xr=["swapxy","swapxyaxes","orientation","orientationaxes"];if(xr.indexOf(Kt)!==-1){if(Kt==="orientation"){Fr.set(ra);var Ir=Yt.x&&!Yt.y?"h":"v";if((Fr.get()||Ir)===Jt.orientation)continue}else Kt==="orientationaxes"&&(Yt.orientation={v:"h",h:"v"}[Jt.orientation]);w.swapXYData(Yt),ir.calc=ir.clearAxisTypes=!0}else a.dataArrayContainers.indexOf(Fr.parts[0])!==-1?(w.manageArrayContainers(Fr,ra,er),ir.calc=!0):(ca?ca.arrayOk&&!r.traceIs(Jt,"regl")&&(S.isArrayOrTypedArray(ra)||S.isArrayOrTypedArray(ta))?ir.calc=!0:M.update(ir,ca):ir.calc=!0,Fr.set(ra))}}if(["swapxyaxes","orientationaxes"].indexOf(Kt)!==-1&&n.swap(Te,Ve),Kt==="orientationaxes"){var Ur=E(Te.layout,"hovermode"),Hr=Ur.get();Hr==="x"?Ur.set("y"):Hr==="y"?Ur.set("x"):Hr==="x unified"?Ur.set("y unified"):Hr==="y unified"&&Ur.set("x unified")}if(["orientation","type"].indexOf(Kt)!==-1){for(Lr=[],Ct=0;Ct<Ve.length;Ct++){var xt=Pe[Ve[Ct]];r.traceIs(xt,"cartesian")&&(Da(xt.xaxis||"x"),Da(xt.yaxis||"y"))}Ca(Lr.map(Ia),!0,0),Ca(Lr.map(qa),[0,1],0)}}return(ir.calc||ir.plot)&&(ir.fullReplot=!0),{flags:ir,undoit:er,redoit:rr,traces:Ve,eventData:S.extendDeepNoArrays([],[_t,Ve])}}function be(Te,Ie,Ve){Te=S.getGraphDiv(Te),w.clearPromiseQueue(Te);var Ce={};if(typeof Ie=="string")Ce[Ie]=Ve;else if(S.isPlainObject(Ie))Ce=S.extendFlat({},Ie);else return S.warn("Relayout fail.",Ie,Ve),Promise.reject();Object.keys(Ce).length&&(Te.changed=!0);var Ee=nt(Te,Ce),Pe=Ee.flags;Pe.calc&&(Te.calcdata=void 0);var ft=[a.previousPromises];Pe.layoutReplot?ft.push(A.layoutReplot):Object.keys(Ce).length&&(Ae(Te,Pe,Ee)||a.supplyDefaults(Te),Pe.legend&&ft.push(A.doLegend),Pe.layoutstyle&&ft.push(A.layoutStyles),Pe.axrange&&De(ft,Ee.rangesAltered),Pe.ticks&&ft.push(A.doTicksRelayout),Pe.modebar&&ft.push(A.doModeBar),Pe.camera&&ft.push(A.doCamera),Pe.colorbars&&ft.push(A.doColorBars),ft.push(y)),ft.push(a.rehover,a.redrag,a.reselect),t.add(Te,be,[Te,Ee.undoit],be,[Te,Ee.redoit]);var ct=S.syncOrAsync(ft,Te);return(!ct||!ct.then)&&(ct=Promise.resolve(Te)),ct.then(function(){return Te.emit("plotly_relayout",Ee.eventData),Te})}function Ae(Te,Ie,Ve){var Ce=Te._fullLayout;if(!Ie.axrange)return!1;for(var Ee in Ie)if(Ee!=="axrange"&&Ie[Ee])return!1;var Pe,ft,ct=function(Lr,fa){return S.coerce(Pe,ft,s,Lr,fa)},_t={};for(var Ct in Ve.rangesAltered){var ir=n.id2name(Ct);if(Pe=Te.layout[ir],ft=Ce[ir],i(Pe,ft,ct,_t),ft._matchGroup){for(var rr in ft._matchGroup)if(rr!==Ct){var er=Ce[n.id2name(rr)];er.autorange=ft.autorange,er.range=ft.range.slice(),er._input.range=ft.range.slice()}}}return!0}function De(Te,Ie){var Ve=Ie?function(Ce){var Ee=[],Pe=!0;for(var ft in Ie){var ct=n.getFromId(Ce,ft);if(Ee.push(ft),(ct.ticklabelposition||"").indexOf("inside")!==-1&&ct._anchorAxis&&Ee.push(ct._anchorAxis._id),ct._matchGroup)for(var _t in ct._matchGroup)Ie[_t]||Ee.push(_t)}return n.draw(Ce,Ee,{skipTitle:Pe})}:function(Ce){return n.draw(Ce,"redraw")};Te.push(T,A.doAutoRangeAndConstraints,Ve,A.drawData,A.finalDraw)}var ze=/^[xyz]axis[0-9]*\.range(\[[0|1]\])?$/,Ze=/^[xyz]axis[0-9]*\.autorange$/,at=/^[xyz]axis[0-9]*\.domain(\[[0|1]\])?$/;function nt(Te,Ie){var Ve=Te.layout,Ce=Te._fullLayout,Ee=Ce._guiEditing,Pe=j(Ce._preGUI,Ee),ft=Object.keys(Ie),ct=n.list(Te),_t=S.extendDeepAll({},Ie),Ct={},ir,rr,er;for(ft=Object.keys(Ie),rr=0;rr<ft.length;rr++)if(ft[rr].indexOf("allaxes")===0){for(er=0;er<ct.length;er++){var Lr=ct[er]._id.slice(1),fa=Lr.indexOf("scene")!==-1?Lr+".":"",Da=ft[rr].replace("allaxes",fa+ct[er]._name);Ie[Da]||(Ie[Da]=Ie[ft[rr]])}delete Ie[ft[rr]]}var Ia=M.layoutFlags(),qa={},Wa={};function Ca(ya,la){if(Array.isArray(ya)){ya.forEach(function(Ai){Ca(Ai,la)});return}if(!(ya in Ie||w.hasParent(Ie,ya))){var Ta=Pe(Ve,ya);ya in Wa||(Wa[ya]=ae(Ta.get())),la!==void 0&&Ta.set(la)}}var hi={},wi;function Kt(ya){var la=n.name2id(ya.split(".")[0]);return hi[la]=1,la}for(var Ft in Ie){if(w.hasParent(Ie,Ft))throw new Error("cannot set "+Ft+" and a parent attribute simultaneously");for(var Yt=Pe(Ve,Ft),Jt=Ie[Ft],Fr=Yt.parts.length,ta=Fr-1;ta>0&&typeof Yt.parts[ta]!="string";)ta--;var ra=Yt.parts[ta],ca=Yt.parts[ta-1]+"."+ra,Ba=Yt.parts.slice(0,ta).join("."),$a=E(Te.layout,Ba).get(),Za=E(Ce,Ba).get(),ri=Yt.get();if(Jt!==void 0){qa[Ft]=Jt,Wa[Ft]=ra==="reverse"?Jt:ae(ri);var pi=o.getLayoutValObject(Ce,Yt.parts);if(pi&&pi.impliedEdits&&Jt!==null)for(var Ra in pi.impliedEdits)Ca(S.relativeAttr(Ft,Ra),pi.impliedEdits[Ra]);if(["width","height"].indexOf(Ft)!==-1)if(Jt){Ca("autosize",null);var tn=Ft==="height"?"width":"height";Ca(tn,Ce[tn])}else Ce[Ft]=Te._initialAutoSize[Ft];else if(Ft==="autosize")Ca("width",Jt?null:Ce.width),Ca("height",Jt?null:Ce.height);else if(ca.match(ze))Kt(ca),E(Ce,Ba+"._inputRange").set(null);else if(ca.match(Ze)){Kt(ca),E(Ce,Ba+"._inputRange").set(null);var on=E(Ce,Ba).get();on._inputDomain&&(on._input.domain=on._inputDomain.slice())}else ca.match(at)&&E(Ce,Ba+"._inputDomain").set(null);if(ra==="type"){wi=$a;var hn=Za.type==="linear"&&Jt==="log",Tt=Za.type==="log"&&Jt==="linear";if(hn||Tt){if(!wi||!wi.range)Ca(Ba+".autorange",!0);else if(Za.autorange)hn&&(wi.range=wi.range[1]>wi.range[0]?[1,2]:[2,1]);else{var ut=wi.range[0],Br=wi.range[1];hn?(ut<=0&&Br<=0&&Ca(Ba+".autorange",!0),ut<=0?ut=Br/1e6:Br<=0&&(Br=ut/1e6),Ca(Ba+".range[0]",Math.log(ut)/Math.LN10),Ca(Ba+".range[1]",Math.log(Br)/Math.LN10)):(Ca(Ba+".range[0]",Math.pow(10,ut)),Ca(Ba+".range[1]",Math.pow(10,Br)))}Array.isArray(Ce._subplots.polar)&&Ce._subplots.polar.length&&Ce[Yt.parts[0]]&&Yt.parts[1]==="radialaxis"&&delete Ce[Yt.parts[0]]._subplot.viewInitial["radialaxis.range"],r.getComponentMethod("annotations","convertCoords")(Te,Za,Jt,Ca),r.getComponentMethod("images","convertCoords")(Te,Za,Jt,Ca)}else Ca(Ba+".autorange",!0),Ca(Ba+".range",null);E(Ce,Ba+"._inputRange").set(null)}else if(ra.match(g)){var Cr=E(Ce,Ft).get(),xr=(Jt||{}).type;(!xr||xr==="-")&&(xr="linear"),r.getComponentMethod("annotations","convertCoords")(Te,Cr,xr,Ca),r.getComponentMethod("images","convertCoords")(Te,Cr,xr,Ca)}var Ir=_.containerArrayMatch(Ft);if(Ir){ir=Ir.array,rr=Ir.index;var Ur=Ir.property,Hr=pi||{editType:"calc"};rr!==""&&Ur===""&&(_.isAddVal(Jt)?Wa[Ft]=null:_.isRemoveVal(Jt)?Wa[Ft]=(E(Ve,ir).get()||[])[rr]:S.warn("unrecognized full object value",Ie)),M.update(Ia,Hr),Ct[ir]||(Ct[ir]={});var xt=Ct[ir][rr];xt||(xt=Ct[ir][rr]={}),xt[Ur]=Jt,delete Ie[Ft]}else ra==="reverse"?($a.range?$a.range.reverse():(Ca(Ba+".autorange",!0),$a.range=[1,0]),Za.autorange?Ia.calc=!0:Ia.plot=!0):(Ft==="dragmode"&&(Jt===!1&&ri!==!1||Jt!==!1&&ri===!1)||Ce._has("scatter-like")&&Ce._has("regl")&&Ft==="dragmode"&&(Jt==="lasso"||Jt==="select")&&!(ri==="lasso"||ri==="select")?Ia.plot=!0:pi?M.update(Ia,pi):Ia.calc=!0,Yt.set(Jt))}}for(ir in Ct){var Xt=_.applyContainerArrayChanges(Te,Pe(Ve,ir),Ct[ir],Ia,Pe);Xt||(Ia.plot=!0)}for(var vr in hi){wi=n.getFromId(Te,vr);var Or=wi&&wi._constraintGroup;if(Or){Ia.calc=!0;for(var ba in Or)hi[ba]||(n.getFromId(Te,ba)._constraintShrinkable=!0)}}(rt(Te)||Ie.height||Ie.width)&&(Ia.plot=!0);var Pa=Ce.shapes;for(rr=0;rr<Pa.length;rr++)if(Pa[rr].showlegend){Ia.calc=!0;break}return(Ia.plot||Ia.calc)&&(Ia.layoutReplot=!0),{flags:Ia,rangesAltered:hi,undoit:Wa,redoit:qa,eventData:_t}}function rt(Te){var Ie=Te._fullLayout,Ve=Ie.width,Ce=Ie.height;return Te.layout.autosize&&a.plotAutoSize(Te,Te.layout,Ie),Ie.width!==Ve||Ie.height!==Ce}function st(Te,Ie,Ve,Ce){Te=S.getGraphDiv(Te),w.clearPromiseQueue(Te),S.isPlainObject(Ie)||(Ie={}),S.isPlainObject(Ve)||(Ve={}),Object.keys(Ie).length&&(Te.changed=!0),Object.keys(Ve).length&&(Te.changed=!0);var Ee=w.coerceTraceIndices(Te,Ce),Pe=ce(Te,S.extendFlat({},Ie),Ee),ft=Pe.flags,ct=nt(Te,S.extendFlat({},Ve)),_t=ct.flags;(ft.calc||_t.calc)&&(Te.calcdata=void 0),ft.clearAxisTypes&&w.clearAxisTypes(Te,Ee,Ve);var Ct=[];_t.layoutReplot?Ct.push(A.layoutReplot):ft.fullReplot?Ct.push(Z._doPlot):(Ct.push(a.previousPromises),Ae(Te,_t,ct)||a.supplyDefaults(Te),ft.style&&Ct.push(A.doTraceStyle),(ft.colorbars||_t.colorbars)&&Ct.push(A.doColorBars),_t.legend&&Ct.push(A.doLegend),_t.layoutstyle&&Ct.push(A.layoutStyles),_t.axrange&&De(Ct,ct.rangesAltered),_t.ticks&&Ct.push(A.doTicksRelayout),_t.modebar&&Ct.push(A.doModeBar),_t.camera&&Ct.push(A.doCamera),Ct.push(y)),Ct.push(a.rehover,a.redrag,a.reselect),t.add(Te,st,[Te,Pe.undoit,ct.undoit,Pe.traces],st,[Te,Pe.redoit,ct.redoit,Pe.traces]);var ir=S.syncOrAsync(Ct,Te);return(!ir||!ir.then)&&(ir=Promise.resolve(Te)),ir.then(function(){return Te.emit("plotly_update",{data:Pe.eventData,layout:ct.eventData}),Te})}function Me(Te){return function(Ve){Ve._fullLayout._guiEditing=!0;var Ce=Te.apply(null,arguments);return Ve._fullLayout._guiEditing=!1,Ce}}var ye=[{pattern:/^hiddenlabels/,attr:"legend.uirevision"},{pattern:/^((x|y)axis\d*)\.((auto)?range|title\.text)/},{pattern:/axis\d*\.showspikes$/,attr:"modebar.uirevision"},{pattern:/(hover|drag)mode$/,attr:"modebar.uirevision"},{pattern:/^(scene\d*)\.camera/},{pattern:/^(geo\d*)\.(projection|center|fitbounds)/},{pattern:/^(ternary\d*\.[abc]axis)\.(min|title\.text)$/},{pattern:/^(polar\d*\.radialaxis)\.((auto)?range|angle|title\.text)/},{pattern:/^(polar\d*\.angularaxis)\.rotation/},{pattern:/^(mapbox\d*)\.(center|zoom|bearing|pitch)/},{pattern:/^(map\d*)\.(center|zoom|bearing|pitch)/},{pattern:/^legend\.(x|y)$/,attr:"editrevision"},{pattern:/^(shapes|annotations)/,attr:"editrevision"},{pattern:/^title\.text$/,attr:"editrevision"}],he=[{pattern:/^selectedpoints$/,attr:"selectionrevision"},{pattern:/(^|value\.)visible$/,attr:"legend.uirevision"},{pattern:/^dimensions\[\d+\]\.constraintrange/},{pattern:/^node\.(x|y|groups)/},{pattern:/^level$/},{pattern:/(^|value\.)name$/},{pattern:/colorbar\.title\.text$/},{pattern:/colorbar\.(x|y)$/,attr:"editrevision"}];function Oe(Te,Ie){for(var Ve=0;Ve<Ie.length;Ve++){var Ce=Ie[Ve],Ee=Te.match(Ce.pattern);if(Ee){var Pe=Ee[1]||"";return{head:Pe,tail:Te.slice(Pe.length+1),attr:Ce.attr}}}}function tt(Te,Ie){var Ve=E(Ie,Te).get();if(Ve!==void 0)return Ve;var Ce=Te.split(".");for(Ce.pop();Ce.length>1;)if(Ce.pop(),Ve=E(Ie,Ce.join(".")+".uirevision").get(),Ve!==void 0)return Ve;return Ie.uirevision}function ot(Te,Ie){for(var Ve=0;Ve<Ie.length;Ve++)if(Ie[Ve]._fullInput.uid===Te)return Ve;return-1}function Qe(Te,Ie,Ve){for(var Ce=0;Ce<Ie.length;Ce++)if(Ie[Ce].uid===Te)return Ce;return!Ie[Ve]||Ie[Ve].uid?-1:Ve}function Pt(Te,Ie){var Ve=S.isPlainObject(Te),Ce=Array.isArray(Te);return Ve||Ce?(Ve&&S.isPlainObject(Ie)||Ce&&Array.isArray(Ie))&&JSON.stringify(Te)===JSON.stringify(Ie):Te===Ie}function It(Te,Ie,Ve,Ce){var Ee=Ce._preGUI,Pe,ft,ct,_t,Ct,ir,rr,er,Lr,fa,Da=[],Ia={},qa={};for(Pe in Ee){if(Ct=Oe(Pe,ye),Ct){if(Lr=Ct.head,fa=Ct.tail,ft=Ct.attr||Lr+".uirevision",ct=E(Ce,ft).get(),_t=ct&&tt(ft,Ie),_t&&_t===ct){if(ir=Ee[Pe],ir===null&&(ir=void 0),rr=E(Ie,Pe),er=rr.get(),Pt(er,ir)){er===void 0&&fa==="autorange"&&Da.push(Lr),rr.set(ae(E(Ce,Pe).get()));continue}else if(fa==="autorange"||fa.slice(0,6)==="range["){var Wa=Ee[Lr+".range[0]"],Ca=Ee[Lr+".range[1]"],hi=Ee[Lr+".autorange"];if(hi||hi===null&&Wa===null&&Ca===null){if(!(Lr in Ia)){var wi=E(Ie,Lr).get();Ia[Lr]=wi&&(wi.autorange||wi.autorange!==!1&&(!wi.range||wi.range.length!==2))}if(Ia[Lr]){rr.set(ae(E(Ce,Pe).get()));continue}}}}}else S.warn("unrecognized GUI edit: "+Pe);delete Ee[Pe],Ct&&Ct.tail.slice(0,6)==="range["&&(qa[Ct.head]=1)}for(var Kt=0;Kt<Da.length;Kt++){var Ft=Da[Kt];if(qa[Ft]){var Yt=E(Ie,Ft).get();Yt&&delete Yt.autorange}}var Jt=Ce._tracePreGUI;for(var Fr in Jt){var ta=Jt[Fr],ra=null,ca;for(Pe in ta){if(!ra){var Ba=ot(Fr,Ve);if(Ba<0){delete Jt[Fr];break}var $a=Ve[Ba];ca=$a._fullInput;var Za=Qe(Fr,Te,ca.index);if(Za<0){delete Jt[Fr];break}ra=Te[Za]}if(Ct=Oe(Pe,he),Ct){if(Ct.attr?(ct=E(Ce,Ct.attr).get(),_t=ct&&tt(Ct.attr,Ie)):(ct=ca.uirevision,_t=ra.uirevision,_t===void 0&&(_t=Ie.uirevision)),_t&&_t===ct&&(ir=ta[Pe],ir===null&&(ir=void 0),rr=E(ra,Pe),er=rr.get(),Pt(er,ir))){rr.set(ae(E(ca,Pe).get()));continue}}else S.warn("unrecognized GUI edit: "+Pe+" in trace uid "+Fr);delete ta[Pe]}}}function qt(Te,Ie,Ve,Ce){var Ee,Pe;function ft(){return Z.addFrames(Te,Ee)}Te=S.getGraphDiv(Te),w.clearPromiseQueue(Te);var ct=Te._fullData,_t=Te._fullLayout;if(!S.isPlotDiv(Te)||!ct||!_t)Pe=Z.newPlot(Te,Ie,Ve,Ce);else{if(S.isPlainObject(Ie)){var Ct=Ie;Ie=Ct.data,Ve=Ct.layout,Ce=Ct.config,Ee=Ct.frames}var ir=!1;if(Ce){let ca=S.extendDeepAll({},Te._context);Te._context=void 0,z(Te,Ce),ir=!w.collectionsAreEqual(ca,Te._context)}if(ir){let ca=Te._ev.eventNames().map(Ba=>[Ba,Te._ev.listeners(Ba)]);Pe=Z.newPlot(Te,Ie,Ve,Ce).then(()=>{for(let[Ba,$a]of ca)$a.forEach(Za=>Te.on(Ba,Za));return Z.react(Te,Ie,Ve,Ce)})}else{Te.data=Ie||[],w.cleanData(Te.data),Te.layout=Ve||{},w.cleanLayout(Te.layout),It(Te.data,Te.layout,ct,_t),a.supplyDefaults(Te,{skipUpdateCalc:!0});var rr=Te._fullData,er=Te._fullLayout,Lr=er.datarevision===void 0,fa=er.transition,Da=kr(Te,_t,er,Lr,fa),Ia=Da.newDataRevision,qa=Wt(Te,ct,rr,Lr,fa,Ia);if(rt(Te)&&(Da.layoutReplot=!0),qa.calc||Da.calc){Te.calcdata=void 0;for(var Wa=Object.getOwnPropertyNames(er),Ca=0;Ca<Wa.length;Ca++){var hi=Wa[Ca],wi=hi.substring(0,5);if(wi==="xaxis"||wi==="yaxis"){var Kt=er[hi]._emptyCategories;Kt&&Kt()}}}else a.supplyDefaultsUpdateCalc(Te.calcdata,rr);var Ft=[];if(Ee&&(Te._transitionData={},a.createTransitionData(Te),Ft.push(ft)),er.transition&&(qa.anim||Da.anim))Da.ticks&&Ft.push(A.doTicksRelayout),a.doCalcdata(Te),A.doAutoRangeAndConstraints(Te),Ft.push(function(){return a.transitionFromReact(Te,qa,Da,_t)});else if(qa.fullReplot||Da.layoutReplot)Te._fullLayout._skipDefaults=!0,Ft.push(Z._doPlot);else{for(var Yt in Da.arrays){var Jt=Da.arrays[Yt];if(Jt.length){var Fr=r.getComponentMethod(Yt,"drawOne");if(Fr!==S.noop)for(var ta=0;ta<Jt.length;ta++)Fr(Te,Jt[ta]);else{var ra=r.getComponentMethod(Yt,"draw");if(ra===S.noop)throw new Error("cannot draw components: "+Yt);ra(Te)}}}Ft.push(a.previousPromises),qa.style&&Ft.push(A.doTraceStyle),(qa.colorbars||Da.colorbars)&&Ft.push(A.doColorBars),Da.legend&&Ft.push(A.doLegend),Da.layoutstyle&&Ft.push(A.layoutStyles),Da.axrange&&De(Ft),Da.ticks&&Ft.push(A.doTicksRelayout),Da.modebar&&Ft.push(A.doModeBar),Da.camera&&Ft.push(A.doCamera),Ft.push(y)}Ft.push(a.rehover,a.redrag,a.reselect),Pe=S.syncOrAsync(Ft,Te),(!Pe||!Pe.then)&&(Pe=Promise.resolve(Te))}}return Pe.then(()=>(ir||Te.emit("plotly_react",{config:Ce,data:Ie,layout:Ve}),Te))}function Wt(Te,Ie,Ve,Ce,Ee,Pe){var ft=Ie.length===Ve.length;if(!Ee&&!ft)return{fullReplot:!0,calc:!0};var ct=M.traceFlags();ct.arrays={},ct.nChanges=0,ct.nChangesAnim=0;var _t,Ct;function ir(Lr){var fa=o.getTraceValObject(Ct,Lr);return!Ct._module.animatable&&fa.anim&&(fa.anim=!1),fa}var rr={getValObject:ir,flags:ct,immutable:Ce,transition:Ee,newDataRevision:Pe,gd:Te},er={};for(_t=0;_t<Ie.length;_t++)if(Ve[_t]){if(Ct=Ve[_t]._fullInput,er[Ct.uid])continue;er[Ct.uid]=1,mr(Ie[_t]._fullInput,Ct,[],rr)}return(ct.calc||ct.plot)&&(ct.fullReplot=!0),Ee&&ct.nChanges&&ct.nChangesAnim&&(ct.anim=ct.nChanges===ct.nChangesAnim&&ft?"all":"some"),ct}function kr(Te,Ie,Ve,Ce,Ee){var Pe=M.layoutFlags();Pe.arrays={},Pe.rangesAltered={},Pe.nChanges=0,Pe.nChangesAnim=0;function ft(er){return o.getLayoutValObject(Ve,er)}for(var ct in Ve)if(!(!ct.startsWith("xaxis")&&!ct.startsWith("yaxis"))&&Ie[ct]){var _t=Ve[ct].domain,Ct=Ie[ct].domain,ir=Ie[ct]._inputDomain;Ie[ct]._inputDomain&&(_t[0]===ir[0]&&_t[1]===ir[1]?Ve[ct].domain=Ie[ct].domain:(_t[0]!==Ct[0]||_t[1]!==Ct[1])&&(Ve[ct]._inputDomain=null))}var rr={getValObject:ft,flags:Pe,immutable:Ce,transition:Ee,gd:Te};return mr(Ie,Ve,[],rr),(Pe.plot||Pe.calc)&&(Pe.layoutReplot=!0),Ee&&Pe.nChanges&&Pe.nChangesAnim&&(Pe.anim=Pe.nChanges===Pe.nChangesAnim?"all":"some"),Pe}function mr(Te,Ie,Ve,Ce){var Ee,Pe,ft,ct=Ce.getValObject,_t=Ce.flags,Ct=Ce.immutable,ir=Ce.inArray,rr=Ce.arrayIndex;function er(){var Ba=Ee.editType;if(ir&&Ba.indexOf("arraydraw")!==-1){S.pushUnique(_t.arrays[ir],rr);return}M.update(_t,Ee),Ba!=="none"&&_t.nChanges++,Ce.transition&&Ee.anim&&_t.nChangesAnim++,(ze.test(ft)||Ze.test(ft))&&(_t.rangesAltered[Ve[0]]=1),Pe==="datarevision"&&(_t.newDataRevision=1)}function Lr(Ba){return Ba.valType==="data_array"||Ba.arrayOk}for(Pe in Te){if(_t.calc&&!Ce.transition)return;var fa=Te[Pe],Da=Ie[Pe],Ia=Ve.concat(Pe);if(ft=Ia.join("."),!(Pe.charAt(0)==="_"||typeof fa=="function"||fa===Da)){if((Pe==="tick0"||Pe==="dtick")&&Ve[0]!=="geo"){var qa=Ie.tickmode;if(qa==="auto"||qa==="array"||!qa)continue}if(!(Pe==="range"&&Ie.autorange)&&!((Pe==="zmin"||Pe==="zmax")&&Ie.type==="contourcarpet")&&(Ee=ct(Ia),!!Ee&&!(Ee._compareAsJSON&&JSON.stringify(fa)===JSON.stringify(Da)))){var Wa=Ee.valType,Ca,hi=Lr(Ee),wi=Array.isArray(fa),Kt=Array.isArray(Da);if(wi&&Kt){var Ft="_input_"+Pe,Yt=Te[Ft],Jt=Ie[Ft];if(Array.isArray(Yt)&&Yt===Jt)continue}if(Da===void 0)hi&&wi?_t.calc=!0:er();else if(Ee._isLinkedToArray){var Fr=[],ta=!1;ir||(_t.arrays[Pe]=Fr);var ra=Math.min(fa.length,Da.length),ca=Math.max(fa.length,Da.length);if(ra!==ca)if(Ee.editType==="arraydraw")ta=!0;else{er();continue}for(Ca=0;Ca<ra;Ca++)mr(fa[Ca],Da[Ca],Ia.concat(Ca),S.extendFlat({inArray:Pe,arrayIndex:Ca},Ce));if(ta)for(Ca=ra;Ca<ca;Ca++)Fr.push(Ca)}else!Wa&&S.isPlainObject(fa)?mr(fa,Da,Ia,Ce):hi?wi&&Kt?(Ct&&(_t.calc=!0),(Ct||Ce.newDataRevision)&&er()):wi!==Kt?_t.calc=!0:er():wi&&Kt?(fa.length!==Da.length||String(fa)!==String(Da))&&er():er()}}}for(Pe in Ie)if(!(Pe in Te||Pe.charAt(0)==="_"||typeof Ie[Pe]=="function"))if(Ee=ct(Ve.concat(Pe)),Lr(Ee)&&Array.isArray(Ie[Pe])){_t.calc=!0;return}else er()}function qr(Te,Ie,Ve){if(Te=S.getGraphDiv(Te),!S.isPlotDiv(Te))throw new Error("This element is not a Plotly plot: "+Te+". It's likely that you've failed to create a plot before animating it. For more details, see https://plotly.com/javascript/animations/");var Ce=Te._transitionData;Ce._frameQueue||(Ce._frameQueue=[]),Ve=a.supplyAnimationDefaults(Ve);var Ee=Ve.transition,Pe=Ve.frame;Ce._frameWaitingCnt===void 0&&(Ce._frameWaitingCnt=0);function ft(Ct){return Array.isArray(Ee)?Ct>=Ee.length?Ee[0]:Ee[Ct]:Ee}function ct(Ct){return Array.isArray(Pe)?Ct>=Pe.length?Pe[0]:Pe[Ct]:Pe}function _t(Ct,ir){var rr=0;return function(){if(Ct&&++rr===ir)return Ct()}}return new Promise(function(Ct,ir){function rr(){if(Ce._frameQueue.length!==0){for(;Ce._frameQueue.length;){var ra=Ce._frameQueue.pop();ra.onInterrupt&&ra.onInterrupt()}Te.emit("plotly_animationinterrupted",[])}}function er(ra){if(ra.length!==0){for(var ca=0;ca<ra.length;ca++){var Ba;ra[ca].type==="byname"?Ba=a.computeFrame(Te,ra[ca].name):Ba=ra[ca].data;var $a=ct(ca),Za=ft(ca);Za.duration=Math.min(Za.duration,$a.duration);var ri={frame:Ba,name:ra[ca].name,frameOpts:$a,transitionOpts:Za};ca===ra.length-1&&(ri.onComplete=_t(Ct,2),ri.onInterrupt=ir),Ce._frameQueue.push(ri)}Ve.mode==="immediate"&&(Ce._lastFrameAt=-1/0),Ce._animationRaf||Da()}}function Lr(){Te.emit("plotly_animated"),window.cancelAnimationFrame(Ce._animationRaf),Ce._animationRaf=null}function fa(){Ce._currentFrame&&Ce._currentFrame.onComplete&&Ce._currentFrame.onComplete();var ra=Ce._currentFrame=Ce._frameQueue.shift();if(ra){var ca=ra.name?ra.name.toString():null;Te._fullLayout._currentFrame=ca,Ce._lastFrameAt=Date.now(),Ce._timeToNext=ra.frameOpts.duration,a.transition(Te,ra.frame.data,ra.frame.layout,w.coerceTraceIndices(Te,ra.frame.traces),ra.frameOpts,ra.transitionOpts).then(function(){ra.onComplete&&ra.onComplete()}),Te.emit("plotly_animatingframe",{name:ca,frame:ra.frame,animation:{frame:ra.frameOpts,transition:ra.transitionOpts}})}else Lr()}function Da(){Te.emit("plotly_animating"),Ce._lastFrameAt=-1/0,Ce._timeToNext=0,Ce._runningTransitions=0,Ce._currentFrame=null;var ra=function(){Ce._animationRaf=window.requestAnimationFrame(ra),Date.now()-Ce._lastFrameAt>Ce._timeToNext&&fa()};ra()}var Ia=0;function qa(ra){return Array.isArray(Ee)?Ia>=Ee.length?ra.transitionOpts=Ee[Ia]:ra.transitionOpts=Ee[0]:ra.transitionOpts=Ee,Ia++,ra}var Wa,Ca,hi=[],wi=Ie==null,Kt=Array.isArray(Ie),Ft=!wi&&!Kt&&S.isPlainObject(Ie);if(Ft)hi.push({type:"object",data:qa(S.extendFlat({},Ie))});else if(wi||["string","number"].indexOf(typeof Ie)!==-1)for(Wa=0;Wa<Ce._frames.length;Wa++)Ca=Ce._frames[Wa],Ca&&(wi||String(Ca.group)===String(Ie))&&hi.push({type:"byname",name:String(Ca.name),data:qa({name:Ca.name})});else if(Kt)for(Wa=0;Wa<Ie.length;Wa++){var Yt=Ie[Wa];["number","string"].indexOf(typeof Yt)!==-1?(Yt=String(Yt),hi.push({type:"byname",name:Yt,data:qa({name:Yt})})):S.isPlainObject(Yt)&&hi.push({type:"object",data:qa(S.extendFlat({},Yt))})}for(Wa=0;Wa<hi.length;Wa++)if(Ca=hi[Wa],Ca.type==="byname"&&!Ce._frameHash[Ca.data.name]){S.warn('animate failure: frame not found: "'+Ca.data.name+'"'),ir();return}["next","immediate"].indexOf(Ve.mode)!==-1&&rr(),Ve.direction==="reverse"&&hi.reverse();var Jt=Te._fullLayout._currentFrame;if(Jt&&Ve.fromcurrent){var Fr=-1;for(Wa=0;Wa<hi.length;Wa++)if(Ca=hi[Wa],Ca.type==="byname"&&Ca.name===Jt){Fr=Wa;break}if(Fr>0&&Fr<hi.length-1){var ta=[];for(Wa=0;Wa<hi.length;Wa++)Ca=hi[Wa],(hi[Wa].type!=="byname"||Wa>Fr)&&ta.push(Ca);hi=ta}}hi.length>0?er(hi):(Te.emit("plotly_animated"),Ct())})}function Sr(Te,Ie,Ve){if(Te=S.getGraphDiv(Te),Ie==null)return Promise.resolve();if(!S.isPlotDiv(Te))throw new Error("This element is not a Plotly plot: "+Te+". It's likely that you've failed to create a plot before adding frames. For more details, see https://plotly.com/javascript/animations/");var Ce,Ee,Pe,ft,ct=Te._transitionData._frames,_t=Te._transitionData._frameHash;if(!Array.isArray(Ie))throw new Error("addFrames failure: frameList must be an Array of frame definitions"+Ie);var Ct=ct.length+Ie.length*2,ir=[],rr={};for(Ce=Ie.length-1;Ce>=0;Ce--)if(S.isPlainObject(Ie[Ce])){var er=Ie[Ce].name,Lr=(_t[er]||rr[er]||{}).name,fa=Ie[Ce].name,Da=_t[Lr]||rr[Lr];Lr&&fa&&typeof fa=="number"&&Da&&b<d&&(b++,S.warn('addFrames: overwriting frame "'+(_t[Lr]||rr[Lr]).name+'" with a frame whose name of type "number" also equates to "'+Lr+'". This is valid but may potentially lead to unexpected behavior since all plotly.js frame names are stored internally as strings.'),b===d&&S.warn("addFrames: This API call has yielded too many of these warnings. For the rest of this call, further warnings about numeric frame names will be suppressed.")),rr[er]={name:er},ir.push({frame:a.supplyFrameDefaults(Ie[Ce]),index:Ve&&Ve[Ce]!==void 0&&Ve[Ce]!==null?Ve[Ce]:Ct+Ce})}ir.sort(function(Ft,Yt){return Ft.index>Yt.index?-1:Ft.index<Yt.index?1:0});var Ia=[],qa=[],Wa=ct.length;for(Ce=ir.length-1;Ce>=0;Ce--){if(Ee=ir[Ce].frame,typeof Ee.name=="number"&&S.warn("Warning: addFrames accepts frames with numeric names, but the numbers areimplicitly cast to strings"),!Ee.name)for(;_t[Ee.name="frame "+Te._transitionData._counter++];);if(_t[Ee.name]){for(Pe=0;Pe<ct.length&&(ct[Pe]||{}).name!==Ee.name;Pe++);Ia.push({type:"replace",index:Pe,value:Ee}),qa.unshift({type:"replace",index:Pe,value:ct[Pe]})}else ft=Math.max(0,Math.min(ir[Ce].index,Wa)),Ia.push({type:"insert",index:ft,value:Ee}),qa.unshift({type:"delete",index:ft}),Wa++}var Ca=a.modifyFrames,hi=a.modifyFrames,wi=[Te,qa],Kt=[Te,Ia];return t&&t.add(Te,Ca,wi,hi,Kt),a.modifyFrames(Te,Ia)}function Rr(Te,Ie){if(Te=S.getGraphDiv(Te),!S.isPlotDiv(Te))throw new Error("This element is not a Plotly plot: "+Te);var Ve,Ce,Ee=Te._transitionData._frames,Pe=[],ft=[];if(!Ie)for(Ie=[],Ve=0;Ve<Ee.length;Ve++)Ie.push(Ve);for(Ie=Ie.slice(),Ie.sort(),Ve=Ie.length-1;Ve>=0;Ve--)Ce=Ie[Ve],Pe.push({type:"delete",index:Ce}),ft.unshift({type:"insert",index:Ce,value:Ee[Ce]});var ct=a.modifyFrames,_t=a.modifyFrames,Ct=[Te,ft],ir=[Te,Pe];return t&&t.add(Te,ct,Ct,_t,ir),a.modifyFrames(Te,Pe)}function wt(Te){Te=S.getGraphDiv(Te);var Ie=Te._fullLayout||{},Ve=Te._fullData||[];return a.cleanPlot([],{},Ve,Ie),a.purge(Te),e.purge(Te),Ie._container&&Ie._container.remove(),delete Te._context,Te}function Ne(Te){var Ie=Te._fullLayout,Ve=Te.getBoundingClientRect();if(!S.equalDomRects(Ve,Ie._lastBBox)){var Ce=Ie._invTransform=S.inverseTransformMatrix(S.getFullTransformMatrix(Te));Ie._invScaleX=Math.sqrt(Ce[0][0]*Ce[0][0]+Ce[0][1]*Ce[0][1]+Ce[0][2]*Ce[0][2]),Ie._invScaleY=Math.sqrt(Ce[1][0]*Ce[1][0]+Ce[1][1]*Ce[1][1]+Ce[1][2]*Ce[1][2]),Ie._lastBBox=Ve}}function Ke(Te){var Ie=G.select(Te),Ve=Te._fullLayout;if(Ve._calcInverseTransform=Ne,Ve._calcInverseTransform(Te),Ve._container=Ie.selectAll(".plot-container").data([0]),Ve._container.enter().insert("div",":first-child").classed("plot-container",!0).classed("plotly",!0).style({width:"100%",height:"100%"}),Ve._paperdiv=Ve._container.selectAll(".svg-container").data([0]),Ve._paperdiv.enter().append("div").classed("user-select-none",!0).classed("svg-container",!0).style("position","relative"),Ve._glcontainer=Ve._paperdiv.selectAll(".gl-container").data([{}]),Ve._glcontainer.enter().append("div").classed("gl-container",!0),Ve._paperdiv.selectAll(".main-svg").remove(),Ve._paperdiv.select(".modebar-container").remove(),Ve._paper=Ve._paperdiv.insert("svg",":first-child").classed("main-svg",!0),Ve._toppaper=Ve._paperdiv.append("svg").classed("main-svg",!0),Ve._modebardiv=Ve._paperdiv.append("div"),delete Ve._modeBar,Ve._hoverpaper=Ve._paperdiv.append("svg").classed("main-svg",!0),!Ve._uid){var Ce={};G.selectAll("defs").each(function(){this.id&&(Ce[this.id.split("-")[1]]=1)}),Ve._uid=S.randstr(Ce)}Ve._paperdiv.selectAll(".main-svg").attr(p.svgAttrs),Ve._defs=Ve._paper.append("defs").attr("id","defs-"+Ve._uid),Ve._clips=Ve._defs.append("g").classed("clips",!0),Ve._topdefs=Ve._toppaper.append("defs").attr("id","topdefs-"+Ve._uid),Ve._topclips=Ve._topdefs.append("g").classed("clips",!0),Ve._bgLayer=Ve._paper.append("g").classed("bglayer",!0),Ve._draggers=Ve._paper.append("g").classed("draglayer",!0);var Ee=Ve._paper.append("g").classed("layer-below",!0);Ve._imageLowerLayer=Ee.append("g").classed("imagelayer",!0),Ve._shapeLowerLayer=Ee.append("g").classed("shapelayer",!0),Ve._cartesianlayer=Ve._paper.append("g").classed("cartesianlayer",!0),Ve._polarlayer=Ve._paper.append("g").classed("polarlayer",!0),Ve._smithlayer=Ve._paper.append("g").classed("smithlayer",!0),Ve._ternarylayer=Ve._paper.append("g").classed("ternarylayer",!0),Ve._geolayer=Ve._paper.append("g").classed("geolayer",!0),Ve._funnelarealayer=Ve._paper.append("g").classed("funnelarealayer",!0),Ve._pielayer=Ve._paper.append("g").classed("pielayer",!0),Ve._iciclelayer=Ve._paper.append("g").classed("iciclelayer",!0),Ve._treemaplayer=Ve._paper.append("g").classed("treemaplayer",!0),Ve._sunburstlayer=Ve._paper.append("g").classed("sunburstlayer",!0),Ve._indicatorlayer=Ve._toppaper.append("g").classed("indicatorlayer",!0),Ve._glimages=Ve._paper.append("g").classed("glimages",!0);var Pe=Ve._toppaper.append("g").classed("layer-above",!0);Ve._imageUpperLayer=Pe.append("g").classed("imagelayer",!0),Ve._shapeUpperLayer=Pe.append("g").classed("shapelayer",!0),Ve._selectionLayer=Ve._toppaper.append("g").classed("selectionlayer",!0),Ve._infolayer=Ve._toppaper.append("g").classed("infolayer",!0),Ve._menulayer=Ve._toppaper.append("g").classed("menulayer",!0),Ve._zoomlayer=Ve._toppaper.append("g").classed("zoomlayer",!0),Ve._hoverlayer=Ve._hoverpaper.append("g").classed("hoverlayer",!0),Ve._modebardiv.classed("modebar-container",!0).style("position","absolute").style("top","0px").style("right","0px"),Te.emit("plotly_framework")}Z.animate=qr,Z.addFrames=Sr,Z.deleteFrames=Rr,Z.addTraces=Y,Z.deleteTraces=ee,Z.extendTraces=fe,Z.moveTraces=q,Z.prependTraces=V,Z.newPlot=N,Z._doPlot=u,Z.purge=wt,Z.react=qt,Z.redraw=F,Z.relayout=be,Z.restyle=oe,Z.setPlotConfig=f,Z.update=st,Z._guiRelayout=Me(be),Z._guiRestyle=Me(oe),Z._guiUpdate=Me(st),Z._storeDirectGUIEdit=re}}),Yv=Xe({"src/snapshot/helpers.js"(Z){"use strict";var G=so();Z.getDelay=function(S){return S._has&&(S._has("gl3d")||S._has("mapbox")||S._has("map"))?500:0},Z.getRedrawFunc=function(S){return function(){G.getComponentMethod("colorbar","draw")(S)}},Z.encodeSVG=function(S){return"data:image/svg+xml,"+encodeURIComponent(S)},Z.encodeJSON=function(S){return"data:application/json,"+encodeURIComponent(S)};var v=window.URL||window.webkitURL;Z.createObjectURL=function(S){return v.createObjectURL(S)},Z.revokeObjectURL=function(S){return v.revokeObjectURL(S)},Z.createBlob=function(S,E){if(E==="svg")return new window.Blob([S],{type:"image/svg+xml;charset=utf-8"});if(E==="full-json")return new window.Blob([S],{type:"application/json;charset=utf-8"});var e=x(window.atob(S));return new window.Blob([e],{type:"image/"+E})},Z.octetStream=function(S){document.location.href="data:application/octet-stream"+S};function x(S){for(var E=S.length,e=new ArrayBuffer(E),t=new Uint8Array(e),r=0;r<E;r++)t[r]=S.charCodeAt(r);return e}Z.IMAGE_URL_PREFIX=/^data:image\/\w+;base64,/}}),C2=Xe({"src/snapshot/tosvg.js"(Z,G){"use strict";var v=Hn(),x=sa(),S=es(),E=$n(),e=vd(),t=/"/g,r="TOBESTRIPPED",o=new RegExp('("'+r+")|("+r+'")',"g");function a(i){var s=v.select("body").append("div").style({display:"none"}).html(""),h=i.replace(/(&[^;]*;)/gi,function(c){return c==="<"?"<":c==="&rt;"?">":c.indexOf("<")!==-1||c.indexOf(">")!==-1?"":s.html(c).text()});return s.remove(),h}function n(i){return i.replace(/&(?!\w+;|\#[0-9]+;| \#x[0-9A-F]+;)/g,"&")}G.exports=function(s,h,c){var m=s._fullLayout,p=m._paper,T=m._toppaper,l=m.width,_=m.height,w;p.insert("rect",":first-child").call(S.setRect,0,0,l,_).call(E.fill,m.paper_bgcolor);var A=m._basePlotModules||[];for(w=0;w<A.length;w++){var M=A[w];M.toSVG&&M.toSVG(s)}if(T){var g=T.node().childNodes,b=Array.prototype.slice.call(g);for(w=0;w<b.length;w++){var d=b[w];d.childNodes.length&&p.node().appendChild(d)}}m._draggers&&m._draggers.remove(),p.node().style.background="",p.selectAll("text").attr({"data-unformatted":null,"data-math":null}).each(function(){var y=v.select(this);if(this.style.visibility==="hidden"||this.style.display==="none"){y.remove();return}else y.style({visibility:null,display:null});var f=this.style.fontFamily;f&&f.indexOf('"')!==-1&&y.style("font-family",f.replace(t,r));var R=this.style.fontWeight;R&&(R==="normal"||R==="400")&&y.style("font-weight",void 0);var L=this.style.fontStyle;L&&L==="normal"&&y.style("font-style",void 0);var z=this.style.fontVariant;z&&z==="normal"&&y.style("font-variant",void 0)}),p.selectAll(".gradient_filled,.pattern_filled").each(function(){var y=v.select(this),f=this.style.fill;f&&f.indexOf("url(")!==-1&&y.style("fill",f.replace(t,r));var R=this.style.stroke;R&&R.indexOf("url(")!==-1&&y.style("stroke",R.replace(t,r))}),(h==="pdf"||h==="eps")&&p.selectAll("#MathJax_SVG_glyphs path").attr("stroke-width",0),h==="svg"&&c&&(p.attr("width",c*l),p.attr("height",c*_),p.attr("viewBox","0 0 "+l+" "+_));var u=new window.XMLSerializer().serializeToString(p.node());return u=a(u),u=n(u),u=u.replace(o,"'"),u}}}),L2=Xe({"src/snapshot/svgtoimg.js"(Z,G){"use strict";var v=sa(),x=Z0().EventEmitter,S=Yv();function E(e){var t=e.emitter||new x,r=new Promise(function(o,a){var n=window.Image,i=e.svg,s=e.format||"png",h=e.canvas,c=e.scale||1,m=e.width||300,p=e.height||150,T=c*m,l=c*p,_=h.getContext("2d",{willReadFrequently:!0}),w=new n,A,M;s==="svg"||v.isSafari()?M=S.encodeSVG(i):(A=S.createBlob(i,"svg"),M=S.createObjectURL(A)),h.width=T,h.height=l,w.onload=function(){var g;switch(A=null,S.revokeObjectURL(M),s!=="svg"&&_.drawImage(w,0,0,T,l),s){case"jpeg":g=h.toDataURL("image/jpeg");break;case"png":g=h.toDataURL("image/png");break;case"webp":g=h.toDataURL("image/webp");break;case"svg":g=M;break;default:var b="Image format is not jpeg, png, svg or webp.";if(a(new Error(b)),!e.promise)return t.emit("error",b)}o(g),e.promise||t.emit("success",g)},w.onerror=function(g){if(A=null,S.revokeObjectURL(M),a(g),!e.promise)return t.emit("error",g)},w.src=M});return e.promise?r:t}G.exports=E}}),R5=Xe({"src/plot_api/to_image.js"(Z,G){"use strict";var v=rs(),x=k2(),S=bc(),E=sa(),e=Yv(),t=C2(),r=L2(),o=fp().version,a={format:{valType:"enumerated",values:["png","jpeg","webp","svg","full-json"],dflt:"png"},width:{valType:"number",min:1},height:{valType:"number",min:1},scale:{valType:"number",min:0,dflt:1},setBackground:{valType:"any",dflt:!1},imageDataOnly:{valType:"boolean",dflt:!1}};function n(i,s){s=s||{};var h,c,m,p;E.isPlainObject(i)?(h=i.data||[],c=i.layout||{},m=i.config||{},p={}):(i=E.getGraphDiv(i),h=E.extendDeep([],i.data),c=E.extendDeep({},i.layout),m=i._context,p=i._fullLayout||{});function T(N){return!(N in s)||E.validate(s[N],a[N])}if(!T("width")&&s.width!==null||!T("height")&&s.height!==null)throw new Error("Height and width should be pixel values.");if(!T("format"))throw new Error("Export format is not "+E.join2(a.format.values,", "," or ")+".");var l={};function _(N,O){return E.coerce(s,l,a,N,O)}var w=_("format"),A=_("width"),M=_("height"),g=_("scale"),b=_("setBackground"),d=_("imageDataOnly"),u=document.createElement("div");u.style.position="absolute",u.style.left="-5000px",document.body.appendChild(u);var y=E.extendFlat({},c);A?y.width=A:s.width===null&&v(p.width)&&(y.width=p.width),M?y.height=M:s.height===null&&v(p.height)&&(y.height=p.height);var f=E.extendFlat({},m,{_exportedPlot:!0,staticPlot:!0,setBackground:b}),R=e.getRedrawFunc(u);function L(){return new Promise(function(N){setTimeout(N,e.getDelay(u._fullLayout))})}function z(){return new Promise(function(N,O){var P=t(u,w,g),U=u._fullLayout.width,B=u._fullLayout.height;function X(){x.purge(u),document.body.removeChild(u)}if(w==="full-json"){var $=S.graphJson(u,!1,"keepdata","object",!0,!0);return $.version=o,$=JSON.stringify($),X(),N(d?$:e.encodeJSON($))}if(X(),w==="svg")return N(d?P:e.encodeSVG(P));var se=document.createElement("canvas");se.id=E.randstr(),r({format:w,width:U,height:B,scale:g,canvas:se,svg:P,promise:!0}).then(N).catch(O)})}function F(N){return d?N.replace(e.IMAGE_URL_PREFIX,""):N}return new Promise(function(N,O){x.newPlot(u,h,y,f).then(R).then(L).then(z).then(function(P){N(F(P))}).catch(function(P){O(P)})})}G.exports=n}}),Uz=Xe({"src/plot_api/validate.js"(Z,G){"use strict";var v=sa(),x=bc(),S=e1(),E=X0().dfltConfig,e=v.isPlainObject,t=Array.isArray,r=v.isArrayOrTypedArray;G.exports=function(_,w){_===void 0&&(_=[]),w===void 0&&(w={});var A=S.get(),M=[],g={_context:v.extendFlat({},E)},b,d;t(_)?(g.data=v.extendDeep([],_),b=_):(g.data=[],b=[],M.push(s("array","data"))),e(w)?(g.layout=v.extendDeep({},w),d=w):(g.layout={},d={},arguments.length>1&&M.push(s("object","layout"))),x.supplyDefaults(g);for(var u=g._fullData,y=b.length,f=0;f<y;f++){var R=b[f],L=["data",f];if(!e(R)){M.push(s("object",L));continue}var z=u[f],F=z.type,N=A.traces[F].attributes;N.type={valType:"enumerated",values:[F]},z.visible===!1&&R.visible!==!1&&M.push(s("invisible",L)),o(R,z,N,M,L)}var O=g._fullLayout,P=a(A,u);return o(d,O,P,M,"layout"),M.length===0?void 0:M};function o(l,_,w,A,M,g){g=g||[];for(var b=Object.keys(l),d=0;d<b.length;d++){var u=b[d],y=g.slice();y.push(u);var f=l[u],R=_[u],L=c(w,u),z=(L||{}).valType,F=z==="info_array",N=z==="colorscale",O=(L||{}).items;if(!h(w,u))A.push(s("schema",M,y));else if(e(f)&&e(R)&&z!=="any")o(f,R,L,A,M,y);else if(F&&t(f)){f.length>R.length&&A.push(s("unused",M,y.concat(R.length)));var P=R.length,U=Array.isArray(O);U&&(P=Math.min(P,O.length));var B,X,$,se,le;if(L.dimensions===2)for(X=0;X<P;X++)if(t(f[X])){f[X].length>R[X].length&&A.push(s("unused",M,y.concat(X,R[X].length)));var fe=R[X].length;for(B=0;B<(U?Math.min(fe,O[X].length):fe);B++)$=U?O[X][B]:O,se=f[X][B],le=R[X][B],v.validate(se,$)?le!==se&&le!==+se&&A.push(s("dynamic",M,y.concat(X,B),se,le)):A.push(s("value",M,y.concat(X,B),se))}else A.push(s("array",M,y.concat(X),f[X]));else for(X=0;X<P;X++)$=U?O[X]:O,se=f[X],le=R[X],v.validate(se,$)?le!==se&&le!==+se&&A.push(s("dynamic",M,y.concat(X),se,le)):A.push(s("value",M,y.concat(X),se))}else if(L.items&&!F&&t(f)){var V=O[Object.keys(O)[0]],Y=[],ee,q;for(ee=0;ee<R.length;ee++){var oe=R[ee]._index||ee;if(q=y.slice(),q.push(oe),e(f[oe])&&e(R[ee])){Y.push(oe);var ae=f[oe],j=R[ee];e(ae)&&ae.visible!==!1&&j.visible===!1?A.push(s("invisible",M,q)):o(ae,j,V,A,M,q)}}for(ee=0;ee<f.length;ee++)q=y.slice(),q.push(ee),e(f[ee])?Y.indexOf(ee)===-1&&A.push(s("unused",M,q)):A.push(s("object",M,q,f[ee]))}else!e(f)&&e(R)?A.push(s("object",M,y,f)):!r(f)&&r(R)&&!F&&!N?A.push(s("array",M,y,f)):u in _?v.validate(f,L)?L.valType==="enumerated"&&(L.coerceNumber&&f!==+R||!r(f)&&f!==R||String(f)!==String(R))&&A.push(s("dynamic",M,y,f,R)):A.push(s("value",M,y,f)):A.push(s("unused",M,y,f))}return A}function a(l,_){for(var w=l.layout.layoutAttributes,A=0;A<_.length;A++){var M=_[A],g=l.traces[M.type],b=g.layoutAttributes;b&&(M.subplot?v.extendFlat(w[g.attributes.subplot.dflt],b):v.extendFlat(w,b))}return w}var n={object:function(l,_){var w;return l==="layout"&&_===""?w="The layout argument":l[0]==="data"&&_===""?w="Trace "+l[1]+" in the data argument":w=i(l)+"key "+_,w+" must be linked to an object container"},array:function(l,_){var w;return l==="data"?w="The data argument":w=i(l)+"key "+_,w+" must be linked to an array container"},schema:function(l,_){return i(l)+"key "+_+" is not part of the schema"},unused:function(l,_,w){var A=e(w)?"container":"key";return i(l)+A+" "+_+" did not get coerced"},dynamic:function(l,_,w,A){return[i(l)+"key",_,"(set to '"+w+"')","got reset to","'"+A+"'","during defaults."].join(" ")},invisible:function(l,_){return(_?i(l)+"item "+_:"Trace "+l[1])+" got defaulted to be not visible"},value:function(l,_,w){return[i(l)+"key "+_,"is set to an invalid value ("+w+")"].join(" ")}};function i(l){return t(l)?"In data trace "+l[1]+", ":"In "+l+", "}function s(l,_,w,A,M){w=w||"";var g,b;t(_)?(g=_[0],b=_[1]):(g=_,b=null);var d=T(w),u=n[l](_,d,A,M);return v.log(u),{code:l,container:g,trace:b,path:w,astr:d,msg:u}}function h(l,_){var w=p(_),A=w.keyMinusId,M=w.id;return A in l&&l[A]._isSubplotObj&&M?!0:_ in l}function c(l,_){if(_ in l)return l[_];var w=p(_);return l[w.keyMinusId]}var m=v.counterRegex("([a-z]+)");function p(l){var _=l.match(m);return{keyMinusId:_&&_[1],id:_&&_[2]}}function T(l){if(!t(l))return String(l);for(var _="",w=0;w<l.length;w++){var A=l[w];typeof A=="number"?_=_.slice(0,-1)+"["+A+"]":_+=A,w<l.length-1&&(_+=".")}return _}}}),jz=Xe({"src/snapshot/filesaver.js"(Z,G){"use strict";var v=sa(),x=Yv();function S(E,e,t){var r=document.createElement("a"),o="download"in r,a=new Promise(function(n,i){var s,h;if(o)return s=x.createBlob(E,t),h=x.createObjectURL(s),r.href=h,r.download=e,document.body.appendChild(r),r.click(),document.body.removeChild(r),x.revokeObjectURL(h),s=null,n(e);if(v.isSafari()){var c=t==="svg"?",":";base64,";return x.octetStream(c+encodeURIComponent(E)),n(e)}i(new Error("download error"))});return a}G.exports=S}}),D5=Xe({"src/snapshot/download.js"(Z,G){"use strict";var v=sa(),x=R5(),S=jz(),E=Yv();function e(t,r){var o;return v.isPlainObject(t)||(o=v.getGraphDiv(t)),r=r||{},r.format=r.format||"png",r.width=r.width||null,r.height=r.height||null,r.imageDataOnly=!0,new Promise(function(a,n){o&&o._snapshotInProgress&&n(new Error("Snapshotting already in progress.")),o&&(o._snapshotInProgress=!0);var i=x(t,r),s=r.filename||t.fn||"newplot";s+="."+r.format.replace("-","."),i.then(function(h){return o&&(o._snapshotInProgress=!1),S(h,s,r.format)}).then(function(h){a(h)}).catch(function(h){o&&(o._snapshotInProgress=!1),n(h)})})}G.exports=e}}),qz=Xe({"src/plot_api/template_api.js"(Z){"use strict";var G=sa(),v=G.isPlainObject,x=e1(),S=bc(),E=ru(),e=zl(),t=X0().dfltConfig;Z.makeTemplate=function(m){m=G.isPlainObject(m)?m:G.getGraphDiv(m),m=G.extendDeep({_context:t},{data:m.data,layout:m.layout}),S.supplyDefaults(m);var p=m.data||[],T=m.layout||{};T._basePlotModules=m._fullLayout._basePlotModules,T._modules=m._fullLayout._modules;var l={data:{},layout:{}};p.forEach(function(f){var R={};a(f,R,i.bind(null,f));var L=G.coerce(f,{},E,"type"),z=l.data[L];z||(z=l.data[L]=[]),z.push(R)}),a(T,l.layout,n.bind(null,T)),delete l.layout.template;var _=T.template;if(v(_)){var w=_.layout,A,M,g,b,d,u;v(w)&&r(w,l.layout);var y=_.data;if(v(y)){for(M in l.data)if(g=y[M],Array.isArray(g)){for(d=l.data[M],u=d.length,b=g.length,A=0;A<u;A++)r(g[A%b],d[A]);for(A=u;A<b;A++)d.push(G.extendDeep({},g[A]))}for(M in y)M in l.data||(l.data[M]=G.extendDeep([],y[M]))}}return l};function r(m,p){m=G.extendDeep({},m);var T=Object.keys(m).sort(),l,_;function w(d,u,y){if(v(u)&&v(d))r(d,u);else if(Array.isArray(u)&&Array.isArray(d)){var f=e.arrayTemplater({_template:m},y);for(_=0;_<u.length;_++){var R=u[_],L=f.newItem(R)._template;L&&r(L,R)}var z=f.defaultItems();for(_=0;_<z.length;_++)u.push(z[_]._template);for(_=0;_<u.length;_++)delete u[_].templateitemname}}for(l=0;l<T.length;l++){var A=T[l],M=m[A];if(A in p?w(M,p[A],A):p[A]=M,o(A)===A)for(var g in p){var b=o(g);g!==b&&b===A&&!(g in m)&&w(M,p[g],A)}}}function o(m){return m.replace(/[0-9]+$/,"")}function a(m,p,T,l,_){var w=_&&T(_);for(var A in m){var M=m[A],g=s(m,A,l),b=s(m,A,_),d=T(b);if(!d){var u=o(A);u!==A&&(b=s(m,u,_),d=T(b))}if(!(w&&w===d)&&!(!d||d._noTemplating||d.valType==="data_array"||d.arrayOk&&Array.isArray(M)))if(!d.valType&&v(M))a(M,p,T,g,b);else if(d._isLinkedToArray&&Array.isArray(M))for(var y=!1,f=0,R={},L=0;L<M.length;L++){var z=M[L];if(v(z)){var F=z.name;if(F)R[F]||(a(z,p,T,s(M,f,g),s(M,f,b)),f++,R[F]=1);else if(!y){var N=e.arrayDefaultKey(A),O=s(m,N,l),P=s(M,f,g);a(z,p,T,P,s(M,f,b));var U=G.nestedProperty(p,P),B=G.nestedProperty(p,O);B.set(U.get()),U.set(null),y=!0}}}else{var X=G.nestedProperty(p,g);X.set(M)}}}function n(m,p){return x.getLayoutValObject(m,G.nestedProperty({},p).parts)}function i(m,p){return x.getTraceValObject(m,G.nestedProperty({},p).parts)}function s(m,p,T){var l;return T?Array.isArray(m)?l=T+"["+p+"]":l=T+"."+p:l=p,l}Z.validateTemplate=function(m,p){var T=G.extendDeep({},{_context:t,data:m.data,layout:m.layout}),l=T.layout||{};v(p)||(p=l.template||{});var _=p.layout,w=p.data,A=[];T.layout=l,T.layout.template=p,S.supplyDefaults(T);var M=T._fullLayout,g=T._fullData,b={};function d(O,P){for(var U in O)if(U.charAt(0)!=="_"&&v(O[U])){var B=o(U),X=[],$;for($=0;$<P.length;$++)X.push(s(O,U,P[$])),B!==U&&X.push(s(O,B,P[$]));for($=0;$<X.length;$++)b[X[$]]=1;d(O[U],X)}}function u(O,P){for(var U in O)if(U.indexOf("defaults")===-1&&v(O[U])){var B=s(O,U,P);b[B]?u(O[U],B):A.push({code:"unused",path:B})}}if(v(_)?(d(M,["layout"]),u(_,"layout")):A.push({code:"layout"}),!v(w))A.push({code:"data"});else{for(var y={},f,R=0;R<g.length;R++){var L=g[R];f=L.type,y[f]=(y[f]||0)+1,L._fullInput._template||A.push({code:"missing",index:L.index,traceType:f})}for(f in w){var z=w[f].length,F=y[f]||0;z>F?A.push({code:"unused",traceType:f,templateCount:z,dataCount:F}):F>z&&A.push({code:"reused",traceType:f,templateCount:z,dataCount:F})}}function N(O,P){for(var U in O)if(U.charAt(0)!=="_"){var B=O[U],X=s(O,U,P);v(B)?(Array.isArray(O)&&B._template===!1&&B.templateitemname&&A.push({code:"missing",path:X,templateitemname:B.templateitemname}),N(B,X)):Array.isArray(B)&&h(B)&&N(B,X)}}if(N({data:g,layout:M},""),A.length)return A.map(c)};function h(m){for(var p=0;p<m.length;p++)if(v(m[p]))return!0}function c(m){var p;switch(m.code){case"data":p="The template has no key data.";break;case"layout":p="The template has no key layout.";break;case"missing":m.path?p="There are no templates for item "+m.path+" with name "+m.templateitemname:p="There are no templates for trace "+m.index+", of type "+m.traceType+".";break;case"unused":m.path?p="The template item at "+m.path+" was not used in constructing the plot.":m.dataCount?p="Some of the templates of type "+m.traceType+" were not used. The template has "+m.templateCount+" traces, the data only has "+m.dataCount+" of this type.":p="The template has "+m.templateCount+" traces of type "+m.traceType+" but there are none in the data.";break;case"reused":p="Some of the templates of type "+m.traceType+" were used more than once. The template has "+m.templateCount+" traces, the data has "+m.dataCount+" of this type.";break}return m.msg=p,m}}}),Vz=Xe({"src/plot_api/index.js"(Z){"use strict";var G=k2();Z._doPlot=G._doPlot,Z.newPlot=G.newPlot,Z.restyle=G.restyle,Z.relayout=G.relayout,Z.redraw=G.redraw,Z.update=G.update,Z._guiRestyle=G._guiRestyle,Z._guiRelayout=G._guiRelayout,Z._guiUpdate=G._guiUpdate,Z._storeDirectGUIEdit=G._storeDirectGUIEdit,Z.react=G.react,Z.extendTraces=G.extendTraces,Z.prependTraces=G.prependTraces,Z.addTraces=G.addTraces,Z.deleteTraces=G.deleteTraces,Z.moveTraces=G.moveTraces,Z.purge=G.purge,Z.addFrames=G.addFrames,Z.deleteFrames=G.deleteFrames,Z.animate=G.animate,Z.setPlotConfig=G.setPlotConfig;var v=T_().getGraphDiv,x=E2().eraseActiveShape;Z.deleteActiveShape=function(E){return x(v(E))},Z.toImage=R5(),Z.validate=Uz(),Z.downloadImage=D5();var S=qz();Z.makeTemplate=S.makeTemplate,Z.validateTemplate=S.validateTemplate}}),n1=Xe({"src/traces/scatter/xy_defaults.js"(Z,G){"use strict";var v=sa(),x=so();G.exports=function(E,e,t,r){var o=r("x"),a=r("y"),n,i=x.getComponentMethod("calendars","handleTraceDefaults");if(i(E,e,["x","y"],t),o){var s=v.minRowLength(o);a?n=Math.min(s,v.minRowLength(a)):(n=s,r("y0"),r("dy"))}else{if(!a)return 0;n=v.minRowLength(a),r("x0"),r("dx")}return e._length=n,n}}}),Qd=Xe({"src/traces/scatter/period_defaults.js"(Z,G){"use strict";var v=sa().dateTick0,x=Hs(),S=x.ONEWEEK;function E(e,t){return e%S===0?v(t,1):v(t,0)}G.exports=function(t,r,o,a,n){if(n||(n={x:!0,y:!0}),n.x){var i=a("xperiod");i&&(a("xperiod0",E(i,r.xcalendar)),a("xperiodalignment"))}if(n.y){var s=a("yperiod");s&&(a("yperiod0",E(s,r.ycalendar)),a("yperiodalignment"))}}}}),Gz=Xe({"src/traces/scatter/stack_defaults.js"(Z,G){"use strict";var v=["orientation","groupnorm","stackgaps"];G.exports=function(S,E,e,t){var r=e._scatterStackOpts,o=t("stackgroup");if(o){var a=E.xaxis+E.yaxis,n=r[a];n||(n=r[a]={});var i=n[o],s=!1;i?i.traces.push(E):(i=n[o]={traceIndices:[],traces:[E]},s=!0);for(var h={orientation:E.x&&!E.y?"h":"v"},c=0;c<v.length;c++){var m=v[c],p=m+"Found";if(!i[p]){var T=S[m]!==void 0,l=m==="orientation";if((T||s)&&(i[m]=t(m,h[m]),l&&(i.fillDflt=i[m]==="h"?"tonextx":"tonexty"),T&&(i[p]=!0,!s&&(delete i.traces[0][m],l))))for(var _=0;_<i.traces.length-1;_++){var w=i.traces[_];w._input.fill!==w.fill&&(w.fill=i.fillDflt)}}}return i}}}}),md=Xe({"src/traces/scatter/marker_defaults.js"(Z,G){"use strict";var v=$n(),x=wp().hasColorscale,S=_h(),E=Fu();G.exports=function(t,r,o,a,n,i={}){var s=E.isBubble(t),h=(t.line||{}).color,c;if(h&&(o=h),n("marker.symbol"),n("marker.opacity",s?.7:1),n("marker.size"),i.noAngle||(n("marker.angle"),i.noAngleRef||n("marker.angleref"),i.noStandOff||n("marker.standoff")),n("marker.color",o),x(t,"marker")&&S(t,r,a,n,{prefix:"marker.",cLetter:"c"}),i.noSelect||(n("selected.marker.color"),n("unselected.marker.color"),n("selected.marker.size"),n("unselected.marker.size")),i.noLine||(h&&!Array.isArray(h)&&r.marker.color!==h?c=h:s?c=v.background:c=v.defaultLine,n("marker.line.color",c),x(t,"marker.line")&&S(t,r,a,n,{prefix:"marker.line.",cLetter:"c"}),n("marker.line.width",s?1:0),i.noLineDash||n("marker.line.dash")),s&&(n("marker.sizeref"),n("marker.sizemin"),n("marker.sizemode")),i.gradient){var m=n("marker.gradient.type");m!=="none"&&n("marker.gradient.color")}}}}),Dd=Xe({"src/traces/scatter/line_defaults.js"(Z,G){"use strict";var v=sa().isArrayOrTypedArray,x=wp().hasColorscale,S=_h();G.exports=function(e,t,r,o,a,n){n||(n={});var i=(e.marker||{}).color;if(i&&i._inputArray&&(i=i._inputArray),a("line.color",r),x(e,"line"))S(e,t,o,a,{prefix:"line.",cLetter:"c"});else{var s=(v(i)?!1:i)||r;a("line.color",s)}a("line.width"),n.noDash||a("line.dash"),n.backoff&&a("line.backoff")}}}),o1=Xe({"src/traces/scatter/line_shape_defaults.js"(Z,G){"use strict";G.exports=function(x,S,E){var e=E("line.shape");e==="spline"&&E("line.smoothing")}}}),zd=Xe({"src/traces/scatter/text_defaults.js"(Z,G){"use strict";var v=sa();G.exports=function(x,S,E,e,t){t=t||{},e("textposition"),v.coerceFont(e,"textfont",t.font||E.font,t),t.noSelect||(e("selected.textfont.color"),e("unselected.textfont.color"))}}}),ev=Xe({"src/traces/scatter/fillcolor_defaults.js"(Z,G){"use strict";var v=$n(),x=sa().isArrayOrTypedArray;function S(E){for(var e=v.interpolate(E[0][1],E[1][1],.5),t=2;t<E.length;t++){var r=v.interpolate(E[t-1][1],E[t][1],.5);e=v.interpolate(e,r,E[t-1][0]/E[t][0])}return e}G.exports=function(e,t,r,o,a){a||(a={});var n=!1;if(t.marker){var i=t.marker.color,s=(t.marker.line||{}).color;i&&!x(i)?n=i:s&&!x(s)&&(n=s)}var h;if(a.moduleHasFillgradient){var c=o("fillgradient.type");if(c!=="none"){o("fillgradient.start"),o("fillgradient.stop");var m=o("fillgradient.colorscale");m&&(h=S(m))}}o("fillcolor",v.addOpacity((t.line||{}).color||n||h||r,.5))}}}),Hz=Xe({"src/traces/scatter/defaults.js"(Z,G){"use strict";var v=sa(),x=so(),S=af(),E=Tv(),e=Fu(),t=n1(),r=Qd(),o=Gz(),a=md(),n=Dd(),i=o1(),s=zd(),h=ev(),c=sa().coercePattern;G.exports=function(p,T,l,_){function w(f,R){return v.coerce(p,T,S,f,R)}var A=t(p,T,_,w);if(A||(T.visible=!1),!!T.visible){r(p,T,_,w),w("xhoverformat"),w("yhoverformat"),w("zorder");var M=o(p,T,_,w);_.scattermode==="group"&&T.orientation===void 0&&w("orientation","v");var g=!M&&A<E.PTS_LINESONLY?"lines+markers":"lines";w("text"),w("hovertext"),w("mode",g),e.hasMarkers(T)&&a(p,T,l,_,w,{gradient:!0}),e.hasLines(T)&&(n(p,T,l,_,w,{backoff:!0}),i(p,T,w),w("connectgaps"),w("line.simplify")),e.hasText(T)&&(w("texttemplate"),w("texttemplatefallback"),s(p,T,_,w));var b=[];(e.hasMarkers(T)||e.hasText(T))&&(w("cliponaxis"),w("marker.maxdisplayed"),b.push("points")),w("fill",M?M.fillDflt:"none"),T.fill!=="none"&&(h(p,T,l,w,{moduleHasFillgradient:!0}),e.hasLines(T)||i(p,T,w),c(w,"fillpattern",T.fillcolor,!1));var d=(T.line||{}).color,u=(T.marker||{}).color;(T.fill==="tonext"||T.fill==="toself")&&b.push("fills"),w("hoveron",b.join("+")||"points"),T.hoveron!=="fills"&&(w("hovertemplate"),w("hovertemplatefallback"));var y=x.getComponentMethod("errorbars","supplyDefaults");y(p,T,d||u||l,{axis:"y"}),y(p,T,d||u||l,{axis:"x",inherit:"y"}),v.coerceSelectionMarkerOpacity(T,w)}}}}),Q0=Xe({"src/traces/scatter/grouping_defaults.js"(Z,G){"use strict";var v=J0().getAxisGroup;G.exports=function(S,E,e,t,r){var o=E.orientation,a=E[{v:"x",h:"y"}[o]+"axis"],n=v(e,a)+o,i=e._alignmentOpts||{},s=t("alignmentgroup"),h=i[n];h||(h=i[n]={});var c=h[s];c?c.traces.push(E):c=h[s]={traces:[E],alignmentIndex:Object.keys(h).length,offsetGroups:{}};var m=t("offsetgroup")||"",p=c.offsetGroups,T=p[m];E._offsetIndex=0,(r!=="group"||m)&&(T||(T=p[m]={offsetIndex:Object.keys(p).length}),E._offsetIndex=T.offsetIndex)}}}),z5=Xe({"src/traces/scatter/cross_trace_defaults.js"(Z,G){"use strict";var v=sa(),x=Q0(),S=af();G.exports=function(e,t){var r,o,a,n=t.scattermode;function i(p){return v.coerce(o._input,o,S,p)}if(t.scattermode==="group")for(a=0;a<e.length;a++)o=e[a],o.type==="scatter"&&(r=o._input,x(r,o,t,i,n));for(a=0;a<e.length;a++){var s=e[a];if(s.type==="scatter"){var h=s.fill;if(!(h==="none"||h==="toself")&&(s.opacity=void 0,h==="tonexty"||h==="tonextx"))for(var c=a-1;c>=0;c--){var m=e[c];if(m.type==="scatter"&&m.xaxis===s.xaxis&&m.yaxis===s.yaxis){m.opacity=void 0;break}}}}}}}),Wz=Xe({"src/traces/scatter/layout_defaults.js"(Z,G){"use strict";var v=sa(),x=_2();G.exports=function(S,E){function e(r,o){return v.coerce(S,E,x,r,o)}var t=E.barmode==="group";E.scattermode==="group"&&e("scattergap",t?E.bargap:.2)}}}),tv=Xe({"src/plots/cartesian/align_period.js"(Z,G){"use strict";var v=rs(),x=sa(),S=x.dateTime2ms,E=x.incrementMonth,e=Hs(),t=e.ONEAVGMONTH;G.exports=function(o,a,n,i){if(a.type!=="date")return{vals:i};var s=o[n+"periodalignment"];if(!s)return{vals:i};var h=o[n+"period"],c;if(v(h)){if(h=+h,h<=0)return{vals:i}}else if(typeof h=="string"&&h.charAt(0)==="M"){var m=+h.substring(1);if(m>0&&Math.round(m)===m)c=m;else return{vals:i}}for(var p=a.calendar,T=s==="start",l=s==="end",_=o[n+"period0"],w=S(_,p)||0,A=[],M=[],g=[],b=i.length,d=0;d<b;d++){var u=i[d],y,f,R;if(c){for(y=Math.round((u-w)/(c*t)),R=E(w,c*y,p);R>u;)R=E(R,-c,p);for(;R<=u;)R=E(R,c,p);f=E(R,-c,p)}else{for(y=Math.round((u-w)/h),R=w+y*h;R>u;)R-=h;for(;R<=u;)R+=h;f=R-h}A[d]=T?f:l?R:(f+R)/2,M[d]=f,g[d]=R}return{vals:A,starts:M,ends:g}}}}),Fd=Xe({"src/traces/scatter/colorscale_calc.js"(Z,G){"use strict";var v=wp().hasColorscale,x=Tp(),S=Fu();G.exports=function(e,t){S.hasLines(t)&&v(t,"line")&&x(e,t,{vals:t.line.color,containerStr:"line",cLetter:"c"}),S.hasMarkers(t)&&(v(t,"marker")&&x(e,t,{vals:t.marker.color,containerStr:"marker",cLetter:"c"}),v(t,"marker.line")&&x(e,t,{vals:t.marker.line.color,containerStr:"marker.line",cLetter:"c"}))}}}),Av=Xe({"src/traces/scatter/arrays_to_calcdata.js"(Z,G){"use strict";var v=sa();G.exports=function(S,E){for(var e=0;e<S.length;e++)S[e].i=e;v.mergeArray(E.text,S,"tx"),v.mergeArray(E.texttemplate,S,"txt"),v.mergeArray(E.hovertext,S,"htx"),v.mergeArray(E.customdata,S,"data"),v.mergeArray(E.textposition,S,"tp"),E.textfont&&(v.mergeArrayCastPositive(E.textfont.size,S,"ts"),v.mergeArray(E.textfont.color,S,"tc"),v.mergeArray(E.textfont.family,S,"tf"),v.mergeArray(E.textfont.weight,S,"tw"),v.mergeArray(E.textfont.style,S,"ty"),v.mergeArray(E.textfont.variant,S,"tv"),v.mergeArray(E.textfont.textcase,S,"tC"),v.mergeArray(E.textfont.lineposition,S,"tE"),v.mergeArray(E.textfont.shadow,S,"tS"));var t=E.marker;if(t){v.mergeArrayCastPositive(t.size,S,"ms"),v.mergeArrayCastPositive(t.opacity,S,"mo"),v.mergeArray(t.symbol,S,"mx"),v.mergeArray(t.angle,S,"ma"),v.mergeArray(t.standoff,S,"mf"),v.mergeArray(t.color,S,"mc");var r=t.line;t.line&&(v.mergeArray(r.color,S,"mlc"),v.mergeArrayCastPositive(r.width,S,"mlw"),v.mergeArray(r.dash,S,"mld"));var o=t.gradient;o&&o.type!=="none"&&(v.mergeArray(o.type,S,"mgt"),v.mergeArray(o.color,S,"mgc"))}}}}),Od=Xe({"src/traces/scatter/calc_selection.js"(Z,G){"use strict";var v=sa();G.exports=function(S,E){v.isArrayOrTypedArray(E.selectedpoints)&&v.tagSelected(S,E)}}}),Bd=Xe({"src/traces/scatter/calc.js"(Z,G){"use strict";var v=rs(),x=sa(),S=Go(),E=tv(),e=Hs().BADNUM,t=Fu(),r=Fd(),o=Av(),a=Od();function n(p,T){var l=p._fullLayout,_=T._xA=S.getFromId(p,T.xaxis||"x","x"),w=T._yA=S.getFromId(p,T.yaxis||"y","y"),A=_.makeCalcdata(T,"x"),M=w.makeCalcdata(T,"y"),g=E(T,_,"x",A),b=E(T,w,"y",M),d=g.vals,u=b.vals,y=T._length,f=new Array(y),R=T.ids,L=m(T,l,_,w),z=!1,F,N,O,P,U,B;h(l,T);var X="x",$="y",se;if(L)x.pushUnique(L.traceIndices,T.index),F=L.orientation==="v",F?($="s",se="x"):(X="s",se="y"),U=L.stackgaps==="interpolate";else{var le=s(T,y);i(p,T,_,w,d,u,le)}var fe=!!T.xperiodalignment,V=!!T.yperiodalignment;for(N=0;N<y;N++){var Y=f[N]={},ee=v(d[N]),q=v(u[N]);ee&&q?(Y[X]=d[N],Y[$]=u[N],fe&&(Y.orig_x=A[N],Y.xEnd=g.ends[N],Y.xStart=g.starts[N]),V&&(Y.orig_y=M[N],Y.yEnd=b.ends[N],Y.yStart=b.starts[N])):L&&(F?ee:q)?(Y[se]=F?d[N]:u[N],Y.gap=!0,U?(Y.s=e,z=!0):Y.s=0):Y[X]=Y[$]=e,R&&(Y.id=String(R[N]))}if(o(f,T),r(p,T),a(f,T),L){for(N=0;N<f.length;)f[N][se]===e?f.splice(N,1):N++;if(x.sort(f,function(Q,re){return Q[se]-re[se]||Q.i-re.i}),z){for(N=0;N<f.length-1&&f[N].gap;)N++;for(B=f[N].s,B||(B=f[N].s=0),O=0;O<N;O++)f[O].s=B;for(P=f.length-1;P>N&&f[P].gap;)P--;for(B=f[P].s,O=f.length-1;O>P;O--)f[O].s=B;for(;N<P;)if(N++,f[N].gap){for(O=N+1;f[O].gap;)O++;for(var oe=f[N-1][se],ae=f[N-1].s,j=(f[O].s-ae)/(f[O][se]-oe);N<O;)f[N].s=ae+(f[N][se]-oe)*j,N++}}}return f}function i(p,T,l,_,w,A,M){var g=T._length,b=p._fullLayout,d=l._id,u=_._id,y=b._firstScatter[c(T)]===T.uid,f=(m(T,b,l,_)||{}).orientation,R=T.fill;l._minDtick=0,_._minDtick=0;var L={padded:!0},z={padded:!0};M&&(L.ppad=z.ppad=M);var F=g<2||w[0]!==w[g-1]||A[0]!==A[g-1];F&&(R==="tozerox"||R==="tonextx"&&(y||f==="h"))?L.tozero=!0:!(T.error_y||{}).visible&&(R==="tonexty"||R==="tozeroy"||!t.hasMarkers(T)&&!t.hasText(T))&&(L.padded=!1,L.ppad=0),F&&(R==="tozeroy"||R==="tonexty"&&(y||f==="v"))?z.tozero=!0:(R==="tonextx"||R==="tozerox")&&(z.padded=!1),d&&(T._extremes[d]=S.findExtremes(l,w,L)),u&&(T._extremes[u]=S.findExtremes(_,A,z))}function s(p,T){if(t.hasMarkers(p)){var l=p.marker,_=1.6*(p.marker.sizeref||1),w;if(p.marker.sizemode==="area"?w=function(d){return Math.max(Math.sqrt((d||0)/_),3)}:w=function(d){return Math.max((d||0)/_,3)},x.isArrayOrTypedArray(l.size)){var A={type:"linear"};S.setConvert(A);for(var M=A.makeCalcdata(p.marker,"size"),g=new Array(T),b=0;b<T;b++)g[b]=w(M[b]);return g}else return w(l.size)}}function h(p,T){var l=c(T),_=p._firstScatter;_[l]||(_[l]=T.uid)}function c(p){var T=p.stackgroup;return p.xaxis+p.yaxis+p.type+(T?"-"+T:"")}function m(p,T,l,_){var w=p.stackgroup;if(w){var A=T._scatterStackOpts[l._id+_._id][w],M=A.orientation==="v"?_:l;if(M.type==="linear"||M.type==="log")return A}}G.exports={calc:n,calcMarkerSize:s,calcAxisExpansion:i,setFirstScatter:h,getStackOpts:m}}}),Xz=Xe({"src/traces/bar/sieve.js"(Z,G){"use strict";G.exports=x;var v=sa().distinctVals;function x(S,E){this.traces=S,this.sepNegVal=E.sepNegVal,this.overlapNoMerge=E.overlapNoMerge;for(var e=1/0,t=E.posAxis._id.charAt(0),r=[],o=0;o<S.length;o++){for(var a=S[o],n=0;n<a.length;n++){var i=a[n],s=i.p;s===void 0&&(s=i[t]),s!==void 0&&r.push(s)}a[0]&&a[0].width1&&(e=Math.min(a[0].width1,e))}this.positions=r;var h=v(r);this.distinctPositions=h.vals,h.vals.length===1&&e!==1/0?this.minDiff=e:this.minDiff=Math.min(h.minDiff,e);var c=(E.posAxis||{}).type;(c==="category"||c==="multicategory")&&(this.minDiff=1),this.binWidth=this.minDiff,this.bins={}}x.prototype.put=function(E,e,t){var r=this.getLabel(E,e,t),o=this.bins[r]||0;return this.bins[r]=o+t,o},x.prototype.get=function(E,e,t){var r=this.getLabel(E,e,t);return this.bins[r]||0},x.prototype.getLabel=function(E,e,t){var r=t<0&&this.sepNegVal?"v":"^",o=this.overlapNoMerge?E:Math.round(E/this.binWidth);return r+o+"g"+e}}}),i0=Xe({"src/traces/bar/constants.js"(Z,G){"use strict";G.exports={TEXTPAD:3,eventDataKeys:["value","label"]}}}),eg=Xe({"src/traces/bar/cross_trace_calc.js"(Z,G){"use strict";var v=rs(),{isArrayOrTypedArray:x}=sa(),{BADNUM:S}=Hs(),E=so(),e=Go(),{getAxisGroup:t}=J0(),r=Xz(),{TEXTPAD:o}=i0(),{LINE_SPACING:a}=uh(),{BR_TAG_ALL:n}=ou();function i(F,N){for(var O=N.xaxis,P=N.yaxis,U=F._fullLayout,B=F._fullData,X=F.calcdata,$=[],se=[],le=0;le<B.length;le++){var fe=B[le];if(fe.visible===!0&&E.traceIs(fe,"bar")&&fe.xaxis===O._id&&fe.yaxis===P._id&&(fe.orientation==="h"?$.push(X[le]):se.push(X[le]),fe._computePh))for(var V=F.calcdata[le],Y=0;Y<V.length;Y++)typeof V[Y].ph0=="function"&&(V[Y].ph0=V[Y].ph0()),typeof V[Y].ph1=="function"&&(V[Y].ph1=V[Y].ph1())}var ee={xCat:O.type==="category"||O.type==="multicategory",yCat:P.type==="category"||P.type==="multicategory",mode:U.barmode,norm:U.barnorm,gap:U.bargap,groupgap:U.bargroupgap};s(F,O,P,se,ee),s(F,P,O,$,ee)}function s(F,N,O,P,U){if(P.length){var B,X,$,se,le;switch(m(O,P),U.mode){case"overlay":p(F,N,O,P,U);break;case"group":for(B=[],X=[],$=0;$<P.length;$++)se=P[$],le=se[0].trace,le.offset===void 0?X.push(se):B.push(se);X.length&&T(F,N,O,X,U),B.length&&p(F,N,O,B,U);break;case"stack":case"relative":for(B=[],X=[],$=0;$<P.length;$++)se=P[$],le=se[0].trace,le.base===void 0?X.push(se):B.push(se);c(X),X.length&&l(F,N,O,X,U),B.length&&p(F,N,O,B,U);break}h(P),L(P,N)}}function h(F){var N,O,P,U,B,X,$;for(N=0;N<F.length;N++)O=F[N],P=O[0].trace,U=O[0].t,U.cornerradiusvalue===void 0&&(B=P.marker?P.marker.cornerradius:void 0,B!==void 0&&(X=v(B)?+B:+B.slice(0,-1),$=v(B)?"px":"%",U.cornerradiusvalue=X,U.cornerradiusform=$))}function c(F){if(!(F.length<2)){var N,O,P,U,B,X,$;for(N=0;N<F.length&&(O=F[N],P=O[0].trace,B=P.marker?P.marker.cornerradius:void 0,B===void 0);N++);if(B!==void 0)for(X=v(B)?+B:+B.slice(0,-1),$=v(B)?"px":"%",N=0;N<F.length;N++)O=F[N],U=O[0].t,U.cornerradiusvalue=X,U.cornerradiusform=$}}function m(F,N){var O,P;for(O=0;O<N.length;O++){var U=N[O],B=U[0].trace,X=B.type==="funnel"?B._base:B.base,$,se=B.orientation==="h"?B.xcalendar:B.ycalendar,le=F.type==="category"||F.type==="multicategory"?function(){return null}:F.d2c;if(x(X)){for(P=0;P<Math.min(X.length,U.length);P++)$=le(X[P],0,se),v($)?(U[P].b=+$,U[P].hasB=1):U[P].b=0;for(;P<U.length;P++)U[P].b=0}else{$=le(X,0,se);var fe=v($);for($=fe?$:0,P=0;P<U.length;P++)U[P].b=$,fe&&(U[P].hasB=1)}}}function p(F,N,O,P,U){for(var B=0;B<P.length;B++){var X=P[B],$=new r([X],{posAxis:N,sepNegVal:!1,overlapNoMerge:!U.norm});_(F,N,$,U),U.norm?(d($),y(O,$,U)):g(O,$)}}function T(F,N,O,P,U){var B=new r(P,{posAxis:N,sepNegVal:!1,overlapNoMerge:!U.norm});_(F,N,B,U),u(B,N),U.norm?(d(B),y(O,B,U)):g(O,B)}function l(F,N,O,P,U){var B=new r(P,{posAxis:N,sepNegVal:U.mode==="relative",overlapNoMerge:!(U.norm||U.mode==="stack"||U.mode==="relative")});_(F,N,B,U),b(O,B,U);for(var X=0;X<P.length;X++)for(var $=P[X],se=$[0].t.offsetindex,le=0;le<$.length;le++){var fe=$[le];if(fe.s!==S){var V=fe.b+fe.s===B.get(fe.p,se,fe.s);V&&(fe._outmost=!0)}}U.norm&&y(O,B,U)}function _(F,N,O,P){var U=F._fullLayout,B=O.positions,X=O.distinctPositions,$=O.minDiff,se=O.traces,le=se.length,fe=B.length!==X.length,V=$*(1-P.gap),Y,ee,q,oe;if(N._id==="angularaxis")Y=V,ee=Y*(1-(P.groupgap||0)),q=-ee/2;else{var ae=t(U,N._id)+se[0][0].trace.orientation;oe=U._alignmentOpts[ae]||{}}for(var j=0;j<le;j++){var Q=se[j],re=Q[0].trace;if(N._id!=="angularaxis"){var ce=oe[re.alignmentgroup]||{},be=Object.keys(ce.offsetGroups||{}).length;be?Y=V/be:Y=fe?V/le:V,ee=Y*(1-(P.groupgap||0)),be?q=((2*re._offsetIndex+1-be)*Y-ee)/2:q=fe?((2*j+1-le)*Y-ee)/2:-ee/2}var Ae=Q[0].t;Ae.barwidth=ee,Ae.offsetindex=re._offsetIndex||0,Ae.poffset=q,Ae.bargroupwidth=V,Ae.bardelta=$}O.binWidth=se[0][0].t.barwidth/100,w(O),A(N,O),N._id==="angularaxis"?M(N,O):M(N,O,fe)}function w(F){var N=F.traces,O,P;for(O=0;O<N.length;O++){var U=N[O],B=U[0],X=B.trace,$=B.t,se=X._offset||X.offset,le=$.poffset,fe;if(x(se)){for(fe=Array.prototype.slice.call(se,0,U.length),P=0;P<fe.length;P++)v(fe[P])||(fe[P]=le);for(P=fe.length;P<U.length;P++)fe.push(le);$.poffset=fe}else se!==void 0&&($.poffset=se);var V=X._width||X.width,Y=$.barwidth;if(x(V)){var ee=Array.prototype.slice.call(V,0,U.length);for(P=0;P<ee.length;P++)v(ee[P])||(ee[P]=Y);for(P=ee.length;P<U.length;P++)ee.push(Y);if($.barwidth=ee,se===void 0){for(fe=[],P=0;P<U.length;P++)fe.push(le+(Y-ee[P])/2);$.poffset=fe}}else V!==void 0&&($.barwidth=V,se===void 0&&($.poffset=le+(Y-V)/2))}}function A(F,N){for(var O=N.traces,P=z(F),U=0;U<O.length;U++)for(var B=O[U],X=B[0].t,$=X.poffset,se=x($),le=X.barwidth,fe=x(le),V=0;V<B.length;V++){var Y=B[V],ee=Y.w=fe?le[V]:le;Y.p===void 0&&(Y.p=Y[P],Y["orig_"+P]=Y[P]);var q=(se?$[V]:$)+ee/2;Y[P]=Y.p+q}}function M(F,N,O){var P=N.traces,U=N.minDiff,B=U/2;e.minDtick(F,N.minDiff,N.distinctPositions[0],O);for(var X=0;X<P.length;X++){var $=P[X],se=$[0],le=se.trace,fe=[],V,Y,ee,q;for(q=0;q<$.length;q++)V=$[q],Y=V.p-B,ee=V.p+B,fe.push(Y,ee);if(le.width||le.offset){var oe=se.t,ae=oe.poffset,j=oe.barwidth,Q=x(ae),re=x(j);for(q=0;q<$.length;q++){V=$[q];var ce=Q?ae[q]:ae,be=re?j[q]:j;Y=V.p+ce,ee=Y+be,fe.push(Y,ee)}}le._extremes[F._id]=e.findExtremes(F,fe,{padded:!1})}}function g(F,N){for(var O=N.traces,P=z(F),U=0;U<O.length;U++){for(var B=O[U],X=B[0].trace,$=X.type==="scatter",se=X.orientation==="v",le=[],fe=!1,V=0;V<B.length;V++){var Y=B[V],ee=$?0:Y.b,q=$?se?Y.y:Y.x:ee+Y.s;Y[P]=q,le.push(q),Y.hasB&&le.push(ee),(!Y.hasB||!Y.b)&&(fe=!0)}let{ppadminus:oe,ppadplus:ae}=f(X,B);X._extremes[F._id]=e.findExtremes(F,le,{tozero:fe,padded:!0,ppadplus:ae,ppadminus:oe})}}function b(F,N,O){var P=z(F),U=N.traces,B,X,$,se,le,fe,V;for(se=0;se<U.length;se++)if(B=U[se],X=B[0].trace,X.type==="funnel")for(V=B[0].t.offsetindex,le=0;le<B.length;le++)fe=B[le],fe.s!==S&&N.put(fe.p,V,-.5*fe.s);for(se=0;se<U.length;se++){B=U[se],X=B[0].trace,$=X.type==="funnel",V=X.type==="barpolar"?0:B[0].t.offsetindex;var Y=[];for(le=0;le<B.length;le++)if(fe=B[le],fe.s!==S){var ee;$?ee=fe.s:ee=fe.s+fe.b;var q=N.put(fe.p,V,ee),oe=q+ee;fe.b=q,fe[P]=oe,O.norm||(Y.push(oe),fe.hasB&&Y.push(q))}if(!O.norm){let{ppadminus:ae,ppadplus:j}=f(X,B);X._extremes[F._id]=e.findExtremes(F,Y,{tozero:!0,padded:!0,ppadplus:j,ppadminus:ae})}}}function d(F){for(var N=F.traces,O=0;O<N.length;O++)for(var P=N[O],U=P[0].t.offsetindex,B=0;B<P.length;B++){var X=P[B];X.s!==S&&F.put(X.p,U,X.b+X.s)}}function u(F,N){for(var O=F.traces,P=0;P<O.length;P++){var U=O[P],B=U[0].trace,X=U[0].t.offsetindex;if(B.base===void 0)for(var $=new r([U],{posAxis:N,sepNegVal:!0,overlapNoMerge:!0}),se=0;se<U.length;se++){var le=U[se];if(le.p!==S){var fe=$.put(le.p,X,le.b+le.s);fe&&(le.b=fe)}}}}function y(F,N,O){var P=N.traces,U=z(F),B=O.norm==="fraction"?1:100,X=B/1e9,$=F.l2c(F.c2l(0)),se=O.mode==="stack"?B:$;function le(Ae){return v(F.c2l(Ae))&&(Ae<$-X||Ae>se+X||!v($))}for(var fe=0;fe<P.length;fe++){for(var V=P[fe],Y=V[0].t.offsetindex,ee=V[0].trace,q=[],oe=!1,ae=!1,j=0;j<V.length;j++){var Q=V[j];if(Q.s!==S){var re=Math.abs(B/N.get(Q.p,Y,Q.s));Q.b*=re,Q.s*=re;var ce=Q.b,be=ce+Q.s;Q[U]=be,q.push(be),ae=ae||le(be),Q.hasB&&(q.push(ce),ae=ae||le(ce)),(!Q.hasB||!Q.b)&&(oe=!0)}}let{ppadminus:Ae,ppadplus:De}=f(ee,V);ee._extremes[F._id]=e.findExtremes(F,q,{tozero:oe,padded:ae,ppadplus:De,ppadminus:Ae})}}function f(F,N){if(F.orientation==="v"&&(F.text||F.texttemplate)&&F.textposition==="outside"&&(F.textangle==="auto"||F.textangle===0)){let P=function(B){return!B||typeof B!="string"?0:(B.match(n)||[]).length+1};var O;F.texttemplate?O=P(F.texttemplate):O=x(F.text)?Math.max(...F.text.map(B=>P(B))):P(F.text);let U=F.outsidetextfont.size*a*O+o;return{ppadplus:N.some(B=>B.s<0)?U:0,ppadminus:N.some(B=>B.s>=0)?U:0}}return{ppadplus:void 0,ppadminus:void 0}}function R(F,N,O,P){for(var U=z(P),B=0;B<F.length;B++)for(var X=F[B],$=0;$<X.length;$++){var se=X[$],le=se[U];se._sMin=N[le],se._sMax=O[le]}}function L(F,N){var O=z(N),P={},U,B,X,$=1/0,se=-1/0;for(U=0;U<F.length;U++)for(X=F[U],B=0;B<X.length;B++){var le=X[B].p;v(le)&&($=Math.min($,le),se=Math.max(se,le))}var fe=1e4/(se-$),V=P.round=function(ze){return String(Math.round(fe*(ze-$)))},Y={},ee={},q=F.some(function(ze){var Ze=ze[0].trace;return"marker"in Ze&&Ze.marker.cornerradius});for(U=0;U<F.length;U++){X=F[U],X[0].t.extents=P;var oe=X[0].t.poffset,ae=x(oe);for(B=0;B<X.length;B++){var j=X[B],Q=j[O]-j.w/2;if(v(Q)){var re=j[O]+j.w/2,ce=V(j.p);P[ce]?P[ce]=[Math.min(Q,P[ce][0]),Math.max(re,P[ce][1])]:P[ce]=[Q,re]}if(j.p0=j.p+(ae?oe[B]:oe),j.p1=j.p0+j.w,j.s0=j.b,j.s1=j.s0+j.s,q){var be=Math.min(j.s0,j.s1)||0,Ae=Math.max(j.s0,j.s1)||0,De=j[O];Y[De]=De in Y?Math.min(Y[De],be):be,ee[De]=De in ee?Math.max(ee[De],Ae):Ae}}}q&&R(F,Y,ee,N)}function z(F){return F._id.charAt(0)}G.exports={crossTraceCalc:i,setGroupPositions:s}}}),Zz=Xe({"src/traces/scatter/cross_trace_calc.js"(Z,G){"use strict";var v=Bd(),x=eg().setGroupPositions;function S(t,r){for(var o=r.xaxis,a=r.yaxis,n=t._fullLayout,i=t._fullData,s=t.calcdata,h=[],c=[],m=0;m<i.length;m++){var p=i[m];p.visible===!0&&p.type==="scatter"&&p.xaxis===o._id&&p.yaxis===a._id&&(p.orientation==="h"?h.push(s[m]):p.orientation==="v"&&c.push(s[m]))}var T={mode:n.scattermode,gap:n.scattergap};x(t,o,a,c,T),x(t,a,o,h,T)}G.exports=function(r,o){r._fullLayout.scattermode==="group"&&S(r,o);var a=o.xaxis,n=o.yaxis,i=a._id+n._id,s=r._fullLayout._scatterStackOpts[i];if(s){var h=r.calcdata,c,m,p,T,l,_,w,A,M,g,b,d,u,y,f;for(var R in s){g=s[R];var L=g.traceIndices;if(L.length){for(b=g.stackgaps==="interpolate",d=g.groupnorm,g.orientation==="v"?(u="x",y="y"):(u="y",y="x"),f=new Array(L.length),c=0;c<f.length;c++)f[c]=!1;_=h[L[0]];var z=new Array(_.length);for(c=0;c<_.length;c++)z[c]=_[c][u];for(c=1;c<L.length;c++){for(l=h[L[c]],m=p=0;m<l.length;m++){for(w=l[m][u];w>z[p]&&p<z.length;p++)E(l,m,z[p],c,f,b,u),m++;if(w!==z[p]){for(T=0;T<c;T++)E(h[L[T]],p,w,T,f,b,u);z.splice(p,0,w)}p++}for(;p<z.length;p++)E(l,m,z[p],c,f,b,u),m++}var F=z.length;for(m=0;m<_.length;m++){for(A=_[m][y]=_[m].s,c=1;c<L.length;c++)l=h[L[c]],l[0].trace._rawLength=l[0].trace._length,l[0].trace._length=F,A+=l[m].s,l[m][y]=A;if(d)for(M=(d==="fraction"?A:A/100)||1,c=0;c<L.length;c++){var N=h[L[c]][m];N[y]/=M,N.sNorm=N.s/M}}for(c=0;c<L.length;c++){l=h[L[c]];var O=l[0].trace,P=v.calcMarkerSize(O,O._rawLength),U=Array.isArray(P);if(P&&f[c]||U){var B=P;for(P=new Array(F),m=0;m<F;m++)P[m]=l[m].gap?0:U?B[l[m].i]:B}var X=new Array(F),$=new Array(F);for(m=0;m<F;m++)X[m]=l[m].x,$[m]=l[m].y;v.calcAxisExpansion(r,O,a,n,X,$,P),l[0].t.orientation=g.orientation}}}}};function E(t,r,o,a,n,i,s){n[a]=!0;var h={i:null,gap:!0,s:0};if(h[s]=o,t.splice(r,0,h),r&&o===t[r-1][s]){var c=t[r-1];h.s=c.s,h.i=c.i,h.gap=c.gap}else i&&(h.s=e(t,r,o,s));r||(t[0].t=t[1].t,t[0].trace=t[1].trace,delete t[1].t,delete t[1].trace)}function e(t,r,o,a){var n=t[r-1],i=t[r+1];return i?n?n.s+(i.s-n.s)*(o-n[a])/(i[a]-n[a]):i.s:n.s}}}),F5=Xe({"src/traces/scatter/line_points.js"(Z,G){"use strict";var v=es(),x=Hs(),S=x.BADNUM,E=x.LOG_CLIP,e=E+.5,t=E-.5,r=sa(),o=r.segmentsIntersect,a=r.constrain,n=Tv();G.exports=function(s,h){var c=h.trace||{},m=h.xaxis,p=h.yaxis,T=m.type==="log",l=p.type==="log",_=m._length,w=p._length,A=h.backoff,M=c.marker,g=h.connectGaps,b=h.baseTolerance,d=h.shape,u=d==="linear",y=c.fill&&c.fill!=="none",f=[],R=n.minTolerance,L=s.length,z=new Array(L),F=0,N,O,P,U,B,X,$,se,le,fe,V,Y,ee,q,oe,ae;function j(ct){var _t=s[ct];if(!_t)return!1;var Ct=h.linearized?m.l2p(_t.x):m.c2p(_t.x),ir=h.linearized?p.l2p(_t.y):p.c2p(_t.y);if(Ct===S){if(T&&(Ct=m.c2p(_t.x,!0)),Ct===S)return!1;l&&ir===S&&(Ct*=Math.abs(m._m*w*(m._m>0?e:t)/(p._m*_*(p._m>0?e:t)))),Ct*=1e3}if(ir===S){if(l&&(ir=p.c2p(_t.y,!0)),ir===S)return!1;ir*=1e3}return[Ct,ir]}function Q(ct,_t,Ct,ir){var rr=Ct-ct,er=ir-_t,Lr=.5-ct,fa=.5-_t,Da=rr*rr+er*er,Ia=rr*Lr+er*fa;if(Ia>0&&Ia<Da){var qa=Lr*er-fa*rr;if(qa*qa<Da)return!0}}var re,ce;function be(ct,_t){var Ct=ct[0]/_,ir=ct[1]/w,rr=Math.max(0,-Ct,Ct-1,-ir,ir-1);return rr&&re!==void 0&&Q(Ct,ir,re,ce)&&(rr=0),rr&&_t&&Q(Ct,ir,_t[0]/_,_t[1]/w)&&(rr=0),(1+n.toleranceGrowth*rr)*b}function Ae(ct,_t){var Ct=ct[0]-_t[0],ir=ct[1]-_t[1];return Math.sqrt(Ct*Ct+ir*ir)}var De=n.maxScreensAway,ze=-_*De,Ze=_*(1+De),at=-w*De,nt=w*(1+De),rt=[[ze,at,Ze,at],[Ze,at,Ze,nt],[Ze,nt,ze,nt],[ze,nt,ze,at]],st,Me,ye,he,Oe,tt;function ot(ct,_t){for(var Ct=[],ir=0,rr=0;rr<4;rr++){var er=rt[rr],Lr=o(ct[0],ct[1],_t[0],_t[1],er[0],er[1],er[2],er[3]);Lr&&(!ir||Math.abs(Lr.x-Ct[0][0])>1||Math.abs(Lr.y-Ct[0][1])>1)&&(Lr=[Lr.x,Lr.y],ir&&Ae(Lr,ct)<Ae(Ct[0],ct)?Ct.unshift(Lr):Ct.push(Lr),ir++)}return Ct}function Qe(ct){if(ct[0]<ze||ct[0]>Ze||ct[1]<at||ct[1]>nt)return[a(ct[0],ze,Ze),a(ct[1],at,nt)]}function Pt(ct,_t){if(ct[0]===_t[0]&&(ct[0]===ze||ct[0]===Ze)||ct[1]===_t[1]&&(ct[1]===at||ct[1]===nt))return!0}function It(ct,_t){var Ct=[],ir=Qe(ct),rr=Qe(_t);return ir&&rr&&Pt(ir,rr)||(ir&&Ct.push(ir),rr&&Ct.push(rr)),Ct}function qt(ct,_t,Ct){return function(ir,rr){var er=Qe(ir),Lr=Qe(rr),fa=[];if(er&&Lr&&Pt(er,Lr))return fa;er&&fa.push(er),Lr&&fa.push(Lr);var Da=2*r.constrain((ir[ct]+rr[ct])/2,_t,Ct)-((er||ir)[ct]+(Lr||rr)[ct]);if(Da){var Ia;er&&Lr?Ia=Da>0==er[ct]>Lr[ct]?er:Lr:Ia=er||Lr,Ia[ct]+=Da}return fa}}var Wt;d==="linear"||d==="spline"?Wt=ot:d==="hv"||d==="vh"?Wt=It:d==="hvh"?Wt=qt(0,ze,Ze):d==="vhv"&&(Wt=qt(1,at,nt));function kr(ct,_t){var Ct=_t[0]-ct[0],ir=(_t[1]-ct[1])/Ct,rr=(ct[1]*_t[0]-_t[1]*ct[0])/Ct;return rr>0?[ir>0?ze:Ze,nt]:[ir>0?Ze:ze,at]}function mr(ct){var _t=ct[0],Ct=ct[1],ir=_t===z[F-1][0],rr=Ct===z[F-1][1];if(!(ir&&rr))if(F>1){var er=_t===z[F-2][0],Lr=Ct===z[F-2][1];ir&&(_t===ze||_t===Ze)&&er?Lr?F--:z[F-1]=ct:rr&&(Ct===at||Ct===nt)&&Lr?er?F--:z[F-1]=ct:z[F++]=ct}else z[F++]=ct}function qr(ct){z[F-1][0]!==ct[0]&&z[F-1][1]!==ct[1]&&mr([ye,he]),mr(ct),Oe=null,ye=he=0}var Sr=r.isArrayOrTypedArray(M);function Rr(ct){if(ct&&A&&(ct.i=N,ct.d=s,ct.trace=c,ct.marker=Sr?M[ct.i]:M,ct.backoff=A),re=ct[0]/_,ce=ct[1]/w,st=ct[0]<ze?ze:ct[0]>Ze?Ze:0,Me=ct[1]<at?at:ct[1]>nt?nt:0,st||Me){if(!F)z[F++]=[st||ct[0],Me||ct[1]];else if(Oe){var _t=Wt(Oe,ct);_t.length>1&&(qr(_t[0]),z[F++]=_t[1])}else tt=Wt(z[F-1],ct)[0],z[F++]=tt;var Ct=z[F-1];st&&Me&&(Ct[0]!==st||Ct[1]!==Me)?(Oe&&(ye!==st&&he!==Me?mr(ye&&he?kr(Oe,ct):[ye||st,he||Me]):ye&&he&&mr([ye,he])),mr([st,Me])):ye-st&&he-Me&&mr([st||ye,Me||he]),Oe=ct,ye=st,he=Me}else Oe&&qr(Wt(Oe,ct)[0]),z[F++]=ct}for(N=0;N<L;N++)if(O=j(N),!!O){for(F=0,Oe=null,Rr(O),N++;N<L;N++){if(U=j(N),!U){if(g)continue;break}if(!u||!h.simplify){Rr(U);continue}var wt=j(N+1);if(fe=Ae(U,O),!(!(y&&(F===0||F===L-1))&&fe<be(U,wt)*R)){for(se=[(U[0]-O[0])/fe,(U[1]-O[1])/fe],B=O,V=fe,Y=q=oe=0,$=!1,P=U,N++;N<s.length;N++){if(X=wt,wt=j(N+1),!X){if(g)continue;break}if(le=[X[0]-O[0],X[1]-O[1]],ae=le[0]*se[1]-le[1]*se[0],q=Math.min(q,ae),oe=Math.max(oe,ae),oe-q>be(X,wt))break;P=X,ee=le[0]*se[0]+le[1]*se[1],ee>V?(V=ee,U=X,$=!1):ee<Y&&(Y=ee,B=X,$=!0)}if($?(Rr(U),P!==B&&Rr(B)):(B!==O&&Rr(B),P!==U&&Rr(U)),Rr(P),N>=s.length||!X)break;Rr(X),O=X}}Oe&&mr([ye||Oe[0],he||Oe[1]]),f.push(z.slice(0,F))}var Ne=d.slice(d.length-1);if(A&&Ne!=="h"&&Ne!=="v"){for(var Ke=!1,Te=-1,Ie=[],Ve=0;Ve<f.length;Ve++)for(var Ce=0;Ce<f[Ve].length-1;Ce++){var Ee=f[Ve][Ce],Pe=f[Ve][Ce+1],ft=v.applyBackoff(Pe,Ee);(ft[0]!==Pe[0]||ft[1]!==Pe[1])&&(Ke=!0),Ie[Te+1]||(Te++,Ie[Te]=[Ee,[ft[0],ft[1]]])}return Ke?Ie:f}return f}}}),O5=Xe({"src/traces/scatter/link_traces.js"(Z,G){"use strict";var v={tonextx:1,tonexty:1,tonext:1};G.exports=function(S,E,e){var t,r,o,a,n,i={},s=!1,h=-1,c=0,m=-1;for(r=0;r<e.length;r++)t=e[r][0].trace,o=t.stackgroup||"",o?o in i?n=i[o]:(n=i[o]=c,c++):t.fill in v&&m>=0?n=m:(n=m=c,c++),n<h&&(s=!0),t._groupIndex=h=n;var p=e.slice();s&&p.sort(function(l,_){var w=l[0].trace,A=_[0].trace;return w._groupIndex-A._groupIndex||w.index-A.index});var T={};for(r=0;r<p.length;r++)t=p[r][0].trace,o=t.stackgroup||"",t.visible===!0?(t._nexttrace=null,t.fill in v&&(a=T[o],t._prevtrace=a||null,a&&(a._nexttrace=t)),t._ownfill=t.fill&&(t.fill.slice(0,6)==="tozero"||t.fill==="toself"||t.fill.slice(0,2)==="to"&&!t._prevtrace),T[o]=t):t._prevtrace=t._nexttrace=t._ownfill=null;return p}}}),s1=Xe({"src/traces/scatter/plot.js"(Z,G){"use strict";var v=Hn(),x=so(),S=sa(),E=S.ensureSingle,e=S.identity,t=es(),r=Fu(),o=F5(),a=O5(),n=I_().tester;G.exports=function(m,p,T,l,_,w){var A,M,g=!_,b=!!_&&_.duration>0,d=a(m,p,T);if(A=l.selectAll("g.trace").data(d,function(y){return y[0].trace.uid}),A.enter().append("g").attr("class",function(y){return"trace scatter trace"+y[0].trace.uid}).style("stroke-miterlimit",2),A.order(),i(m,A,p),b){w&&(M=w());var u=v.transition().duration(_.duration).ease(_.easing).each("end",function(){M&&M()}).each("interrupt",function(){M&&M()});u.each(function(){l.selectAll("g.trace").each(function(y,f){s(m,f,p,y,d,this,_)})})}else A.each(function(y,f){s(m,f,p,y,d,this,_)});g&&A.exit().remove(),l.selectAll("path:not([d])").remove()};function i(c,m,p){m.each(function(T){var l=E(v.select(this),"g","fills");t.setClipUrl(l,p.layerClipId,c);var _=T[0].trace;_._ownFill=null,_._nextFill=null;var w=[];_._ownfill&&w.push("_ownFill"),_._nexttrace&&w.push("_nextFill");var A=l.selectAll("g").data(w,e);A.enter().append("g"),A.exit().remove(),A.order().each(function(M){_[M]=E(v.select(this),"path","js-fill")})})}function s(c,m,p,T,l,_,w){var A=c._context.staticPlot,M;h(c,m,p,T,l);var g=!!w&&w.duration>0;function b(mr){return g?mr.transition():mr}var d=p.xaxis,u=p.yaxis,y=T[0].trace,f=y.line,R=v.select(_),L=E(R,"g","errorbars"),z=E(R,"g","lines"),F=E(R,"g","points"),N=E(R,"g","text");if(x.getComponentMethod("errorbars","plot")(c,L,p,w),y.visible!==!0)return;b(R).style("opacity",y.opacity);var O,P,U=y.fill.charAt(y.fill.length-1);U!=="x"&&U!=="y"&&(U="");var B,X;U==="y"?(B=1,X=u.c2p(0,!0)):U==="x"&&(B=0,X=d.c2p(0,!0)),T[0][p.isRangePlot?"nodeRangePlot3":"node3"]=R;var $="",se=[],le=y._prevtrace,fe=null,V=null;le&&($=le._prevRevpath||"",P=le._nextFill,se=le._ownPolygons,fe=le._fillsegments,V=le._fillElement);var Y,ee,q="",oe="",ae,j,Q,re,ce,be,Ae=[];y._polygons=[];var De=[],ze=[],Ze=S.noop;if(O=y._ownFill,r.hasLines(y)||y.fill!=="none"){P&&P.datum(T),["hv","vh","hvh","vhv"].indexOf(f.shape)!==-1?(ae=t.steps(f.shape),j=t.steps(f.shape.split("").reverse().join(""))):f.shape==="spline"?ae=j=function(mr){var qr=mr[mr.length-1];return mr.length>1&&mr[0][0]===qr[0]&&mr[0][1]===qr[1]?t.smoothclosed(mr.slice(1),f.smoothing):t.smoothopen(mr,f.smoothing)}:ae=j=function(mr){return"M"+mr.join("L")},Q=function(mr){return j(mr.reverse())},ze=o(T,{xaxis:d,yaxis:u,trace:y,connectGaps:y.connectgaps,baseTolerance:Math.max(f.width||1,3)/4,shape:f.shape,backoff:f.backoff,simplify:f.simplify,fill:y.fill}),De=new Array(ze.length);var at=0;for(M=0;M<ze.length;M++){var nt,rt=ze[M];!nt||!U?(nt=rt.slice(),De[at]=nt,at++):nt.push.apply(nt,rt)}y._fillElement=null,y._fillExclusionElement=V,y._fillsegments=De.slice(0,at),De=y._fillsegments,ze.length&&(re=ze[0][0].slice(),ce=ze[ze.length-1],be=ce[ce.length-1].slice()),Ze=function(mr){return function(qr){if(Y=ae(qr),ee=Q(qr),q?U?(q+="L"+Y.slice(1),oe=ee+("L"+oe.slice(1))):(q+="Z"+Y,oe=ee+"Z"+oe):(q=Y,oe=ee),r.hasLines(y)){var Sr=v.select(this);if(Sr.datum(T),mr)b(Sr.style("opacity",0).attr("d",Y).call(t.lineGroupStyle)).style("opacity",1);else{var Rr=b(Sr);Rr.attr("d",Y),t.singleLineStyle(T,Rr)}}}}}var st=z.selectAll(".js-line").data(ze);b(st.exit()).style("opacity",0).remove(),st.each(Ze(!1)),st.enter().append("path").classed("js-line",!0).style("vector-effect",A?"none":"non-scaling-stroke").call(t.lineGroupStyle).each(Ze(!0)),t.setClipUrl(st,p.layerClipId,c);function Me(mr){b(mr).attr("d","M0,0Z")}var ye=function(){var mr=new Array(De.length);for(M=0;M<De.length;M++)mr[M]=n(De[M]);return mr},he=function(mr){var qr,Sr;if(!mr||mr.length===0)for(qr=new Array(De.length),Sr=0;Sr<De.length;Sr++){var Rr=De[Sr][0].slice(),wt=De[Sr][De[Sr].length-1].slice();Rr[B]=wt[B]=X;var Ne=[wt,Rr],Ke=Ne.concat(De[Sr]);qr[Sr]=n(Ke)}else{for(qr=new Array(mr.length-1+De.length),Sr=0;Sr<mr.length-1;Sr++)qr[Sr]=n(mr[Sr]);var Te=mr[mr.length-1].slice();for(Te.reverse(),Sr=0;Sr<De.length;Sr++)qr[mr.length-1+Sr]=n(De[Sr].concat(Te))}return qr};ze.length?(O?(O.datum(T),re&&be&&(U?(re[B]=be[B]=X,b(O).attr("d","M"+be+"L"+re+"L"+q.slice(1)).call(t.singleFillStyle,c),Ae=he(null)):(b(O).attr("d",q+"Z").call(t.singleFillStyle,c),Ae=ye())),y._polygons=Ae,y._fillElement=O):P&&(y.fill.slice(0,6)==="tonext"&&q&&$?(y.fill==="tonext"?(b(P).attr("d",q+"Z"+$+"Z").call(t.singleFillStyle,c),Ae=ye(),y._polygons=Ae.concat(se)):(b(P).attr("d",q+"L"+$.slice(1)+"Z").call(t.singleFillStyle,c),Ae=he(fe),y._polygons=Ae),y._fillElement=P):Me(P)),y._prevRevpath=oe):(O?Me(O):P&&Me(P),y._prevRevpath=null),y._ownPolygons=Ae;function Oe(mr){return mr.filter(function(qr){return!qr.gap&&qr.vis})}function tt(mr){return mr.filter(function(qr){return qr.vis})}function ot(mr){return mr.filter(function(qr){return!qr.gap})}function Qe(mr){return mr.id}function Pt(mr){if(mr.ids)return Qe}function It(){return!1}function qt(mr,qr,Sr){var Rr,wt,Ne,Ke=Sr[0].trace,Te=r.hasMarkers(Ke),Ie=r.hasText(Ke),Ve=Pt(Ke),Ce=It,Ee=It;if(Te||Ie){var Pe=e,ft=Ke.stackgroup,ct=ft&&c._fullLayout._scatterStackOpts[d._id+u._id][ft].stackgaps==="infer zero";Ke.marker.maxdisplayed||Ke._needsCull?Pe=ct?tt:Oe:ft&&!ct&&(Pe=ot),Te&&(Ce=Pe),Ie&&(Ee=Pe)}wt=mr.selectAll("path.point"),Rr=wt.data(Ce,Ve);var _t=Rr.enter().append("path").classed("point",!0);g&&_t.call(t.pointStyle,Ke,c).call(t.translatePoints,d,u).style("opacity",0).transition().style("opacity",1),Rr.order();var Ct;Te&&(Ct=t.makePointStyleFns(Ke)),Rr.each(function(ir){var rr=v.select(this),er=b(rr);Ne=t.translatePoint(ir,er,d,u),Ne?(t.singlePointStyle(ir,er,Ke,Ct,c),p.layerClipId&&t.hideOutsideRangePoint(ir,er,d,u,Ke.xcalendar,Ke.ycalendar),Ke.customdata&&rr.classed("plotly-customdata",ir.data!==null&&ir.data!==void 0)):er.remove()}),g?Rr.exit().transition().style("opacity",0).remove():Rr.exit().remove(),wt=qr.selectAll("g"),Rr=wt.data(Ee,Ve),Rr.enter().append("g").classed("textpoint",!0).append("text"),Rr.order(),Rr.each(function(ir){var rr=v.select(this),er=b(rr.select("text"));Ne=t.translatePoint(ir,er,d,u),Ne?p.layerClipId&&t.hideOutsideRangePoint(ir,rr,d,u,Ke.xcalendar,Ke.ycalendar):rr.remove()}),Rr.selectAll("text").call(t.textPointStyle,Ke,c).each(function(ir){var rr=d.c2p(ir.x),er=u.c2p(ir.y);v.select(this).selectAll("tspan.line").each(function(){b(v.select(this)).attr({x:rr,y:er})})}),Rr.exit().remove()}F.datum(T),N.datum(T),qt(F,N,T);var Wt=y.cliponaxis===!1,kr=Wt?null:p.layerClipId;t.setClipUrl(F,kr,c),t.setClipUrl(N,kr,c)}function h(c,m,p,T,l){var _=p.xaxis,w=p.yaxis,A=v.extent(S.simpleMap(_.range,_.r2c)),M=v.extent(S.simpleMap(w.range,w.r2c)),g=T[0].trace;if(r.hasMarkers(g)){var b=g.marker.maxdisplayed;if(b!==0){var d=T.filter(function(R){return R.x>=A[0]&&R.x<=A[1]&&R.y>=M[0]&&R.y<=M[1]}),u=Math.ceil(d.length/b),y=0;l.forEach(function(R,L){var z=R[0].trace;r.hasMarkers(z)&&z.marker.maxdisplayed>0&&L<m&&y++});var f=Math.round(y*u/3+Math.floor(y/3)*u/7.1);T.forEach(function(R){delete R.vis}),d.forEach(function(R,L){Math.round((L+f)%u)===0&&(R.vis=!0)})}}}}}),pp=Xe({"src/traces/scatter/marker_colorbar.js"(Z,G){"use strict";G.exports={container:"marker",min:"cmin",max:"cmax"}}}),P2=Xe({"src/traces/scatter/format_labels.js"(Z,G){"use strict";var v=Go();G.exports=function(S,E,e){var t={},r={_fullLayout:e},o=v.getFromTrace(r,E,"x"),a=v.getFromTrace(r,E,"y"),n=S.orig_x;n===void 0&&(n=S.x);var i=S.orig_y;return i===void 0&&(i=S.y),t.xLabel=v.tickText(o,o.c2l(n),!0).text,t.yLabel=v.tickText(a,a.c2l(i),!0).text,t}}}),Qp=Xe({"src/traces/scatter/style.js"(Z,G){"use strict";var v=Hn(),x=es(),S=so();function E(o){var a=v.select(o).selectAll("g.trace.scatter");a.style("opacity",function(n){return n[0].trace.opacity}),a.selectAll("g.points").each(function(n){var i=v.select(this),s=n.trace||n[0].trace;e(i,s,o)}),a.selectAll("g.text").each(function(n){var i=v.select(this),s=n.trace||n[0].trace;t(i,s,o)}),a.selectAll("g.trace path.js-line").call(x.lineGroupStyle),a.selectAll("g.trace path.js-fill").call(x.fillGroupStyle,o,!1),S.getComponentMethod("errorbars","style")(a)}function e(o,a,n){x.pointStyle(o.selectAll("path.point"),a,n)}function t(o,a,n){x.textPointStyle(o.selectAll("text"),a,n)}function r(o,a,n){var i=a[0].trace;i.selectedpoints?(x.selectedPointStyle(n.selectAll("path.point"),i),x.selectedTextStyle(n.selectAll("text"),i)):(e(n,i,o),t(n,i,o))}G.exports={style:E,stylePoints:e,styleText:t,styleOnSelect:r}}}),l1=Xe({"src/traces/scatter/get_trace_color.js"(Z,G){"use strict";var v=$n(),x=Fu();G.exports=function(E,e){var t,r;if(E.mode==="lines")return t=E.line.color,t&&v.opacity(t)?t:E.fillcolor;if(E.mode==="none")return E.fill?E.fillcolor:"";var o=e.mcc||(E.marker||{}).color,a=e.mlcc||((E.marker||{}).line||{}).color;return r=o&&v.opacity(o)?o:a&&v.opacity(a)&&(e.mlw||((E.marker||{}).line||{}).width)?a:"",r?v.opacity(r)<.3?v.addOpacity(r,.3):r:(t=(E.line||{}).color,t&&v.opacity(t)&&x.hasLines(E)&&E.line.width?t:E.fillcolor)}}}),u1=Xe({"src/traces/scatter/hover.js"(Z,G){"use strict";var v=sa(),x=rf(),S=so(),E=l1(),e=$n(),t=v.fillText;G.exports=function(o,a,n,i){var s=o.cd,h=s[0].trace,c=o.xa,m=o.ya,p=c.c2p(a),T=m.c2p(n),l=[p,T],_=h.hoveron||"",w=h.mode.indexOf("markers")!==-1?3:.5,A=!!h.xperiodalignment,M=!!h.yperiodalignment;if(_.indexOf("points")!==-1){var g=function(se){if(A){var le=c.c2p(se.xStart),fe=c.c2p(se.xEnd);return p>=Math.min(le,fe)&&p<=Math.max(le,fe)?0:1/0}var V=Math.max(3,se.mrc||0),Y=1-1/V,ee=Math.abs(c.c2p(se.x)-p);return ee<V?Y*ee/V:ee-V+Y},b=function(se){if(M){var le=m.c2p(se.yStart),fe=m.c2p(se.yEnd);return T>=Math.min(le,fe)&&T<=Math.max(le,fe)?0:1/0}var V=Math.max(3,se.mrc||0),Y=1-1/V,ee=Math.abs(m.c2p(se.y)-T);return ee<V?Y*ee/V:ee-V+Y},d=function(se){var le=Math.max(w,se.mrc||0),fe=c.c2p(se.x)-p,V=m.c2p(se.y)-T;return Math.max(Math.sqrt(fe*fe+V*V)-le,1-w/le)},u=x.getDistanceFunction(i,g,b,d);if(x.getClosest(s,u,o),o.index!==!1){var y=s[o.index],f=c.c2p(y.x,!0),R=m.c2p(y.y,!0),L=y.mrc||1;o.index=y.i;var z=s[0].t.orientation,F=z&&(y.sNorm||y.s),N=z==="h"?F:y.orig_x!==void 0?y.orig_x:y.x,O=z==="v"?F:y.orig_y!==void 0?y.orig_y:y.y;return v.extendFlat(o,{color:E(h,y),x0:f-L,x1:f+L,xLabelVal:N,y0:R-L,y1:R+L,yLabelVal:O,spikeDistance:d(y),hovertemplate:h.hovertemplate}),t(y,h,o),S.getComponentMethod("errorbars","hoverInfo")(y,h,o),[o]}}function P(se){if(!se)return!1;var le=se.node();try{var fe=new DOMPoint(l[0],l[1]);return le.isPointInFill(fe)}catch{var V=le.ownerSVGElement.createSVGPoint();return V.x=l[0],V.y=l[1],le.isPointInFill(V)}}function U(se){var le,fe=[],V=1/0,Y=-1/0,ee=1/0,q=-1/0,oe;for(le=0;le<se.length;le++){var ae=se[le];ae.contains(l)&&(fe.push(ae),ee=Math.min(ee,ae.ymin),q=Math.max(q,ae.ymax))}if(fe.length===0)return null;ee=Math.max(ee,0),q=Math.min(q,m._length),oe=(ee+q)/2;var j,Q,re,ce,be,Ae,De;for(le=0;le<fe.length;le++)for(Q=fe[le].pts,j=1;j<Q.length;j++)Ae=Q[j-1][1],De=Q[j][1],Ae>oe!=De>=oe&&(ce=Q[j-1][0],be=Q[j][0],De-Ae&&(re=ce+(be-ce)*(oe-Ae)/(De-Ae),V=Math.min(V,re),Y=Math.max(Y,re)));return V=Math.max(V,0),Y=Math.min(Y,c._length),{x0:V,x1:Y,y0:oe,y1:oe}}if(_.indexOf("fills")!==-1&&h._fillElement){var B=P(h._fillElement)&&!P(h._fillExclusionElement);if(B){var X=U(h._polygons);X===null&&(X={x0:l[0],x1:l[0],y0:l[1],y1:l[1]});var $=e.defaultLine;return e.opacity(h.fillcolor)?$=h.fillcolor:e.opacity((h.line||{}).color)&&($=h.line.color),v.extendFlat(o,{distance:o.maxHoverDistance,x0:X.x0,x1:X.x1,y0:X.y0,y1:X.y1,color:$,hovertemplate:!1}),delete o.index,h.text&&!v.isArrayOrTypedArray(h.text)?o.text=String(h.text):o.text=h.name,[o]}}}}}),c1=Xe({"src/traces/scatter/select.js"(Z,G){"use strict";var v=Fu();G.exports=function(S,E){var e=S.cd,t=S.xaxis,r=S.yaxis,o=[],a=e[0].trace,n,i,s,h,c=!v.hasMarkers(a)&&!v.hasText(a);if(c)return[];if(E===!1)for(n=0;n<e.length;n++)e[n].selected=0;else for(n=0;n<e.length;n++)i=e[n],s=t.c2p(i.x),h=r.c2p(i.y),i.i!==null&&E.contains([s,h],!1,n,S)?(o.push({pointNumber:i.i,x:t.c2d(i.x),y:r.c2d(i.y)}),i.selected=1):i.selected=0;return o}}}),Yz=Xe({"src/plots/cartesian/attributes.js"(Z,G){"use strict";G.exports={xaxis:{valType:"subplotid",dflt:"x",editType:"calc+clearAxisTypes"},yaxis:{valType:"subplotid",dflt:"y",editType:"calc+clearAxisTypes"}}}}),B5=Xe({"src/plots/cartesian/type_defaults.js"(Z,G){"use strict";var v=so().traceIs,x=a1();G.exports=function(o,a,n,i){n("autotypenumbers",i.autotypenumbersDflt);var s=n("type",(i.splomStash||{}).type);s==="-"&&(S(a,i.data),a.type==="-"?a.type="linear":o.type=a.type)};function S(r,o){if(r.type==="-"){var a=r._id,n=a.charAt(0),i;a.indexOf("scene")!==-1&&(a=n);var s=E(o,a,n);if(s){if(s.type==="histogram"&&n==={v:"y",h:"x"}[s.orientation||"v"]){r.type="linear";return}var h=n+"calendar",c=s[h],m={noMultiCategory:!v(s,"cartesian")||v(s,"noMultiCategory")};if(s.type==="box"&&s._hasPreCompStats&&n==={h:"x",v:"y"}[s.orientation||"v"]&&(m.noMultiCategory=!0),m.autotypenumbers=r.autotypenumbers,t(s,n)){var p=e(s),T=[];for(i=0;i<o.length;i++){var l=o[i];!v(l,"box-violin")||(l[n+"axis"]||n)!==a||(l[p]!==void 0?T.push(l[p][0]):l.name!==void 0?T.push(l.name):T.push("text"),l[h]!==c&&(c=void 0))}r.type=x(T,c,m)}else if(s.type==="splom"){var _=s.dimensions,w=_[s._axesDim[a]];w.visible&&(r.type=x(w.values,c,m))}else r.type=x(s[n]||[s[n+"0"]],c,m)}}}function E(r,o,a){for(var n=0;n<r.length;n++){var i=r[n];if(i.type==="splom"&&i._length>0&&(i["_"+a+"axes"]||{})[o])return i;if((i[a+"axis"]||a)===o){if(t(i,a))return i;if((i[a]||[]).length||i[a+"0"])return i}}}function e(r){return{v:"x",h:"y"}[r.orientation||"v"]}function t(r,o){var a=e(r),n=v(r,"box-violin"),i=v(r._fullInput||{},"candlestick");return n&&!i&&o===a&&r[a]===void 0&&r[a+"0"]===void 0}}}),I2=Xe({"src/plots/cartesian/category_order_defaults.js"(Z,G){"use strict";var v=bp().isTypedArraySpec;function x(S,E){var e=E.dataAttr||S._id.charAt(0),t={},r,o,a;if(E.axData)r=E.axData;else for(r=[],o=0;o<E.data.length;o++){var n=E.data[o];n[e+"axis"]===S._id&&r.push(n)}for(o=0;o<r.length;o++){var i=r[o][e];for(a=0;a<i.length;a++){var s=i[a];s!=null&&(t[s]=1)}}return Object.keys(t)}G.exports=function(E,e,t,r){if(e.type==="category"){var o=E.categoryarray,a=Array.isArray(o)&&o.length>0||v(o),n;a&&(n="array");var i=t("categoryorder",n),s;i==="array"&&(s=t("categoryarray")),!a&&i==="array"&&(i=e.categoryorder="trace"),i==="trace"?e._initialCategories=[]:i==="array"?e._initialCategories=s.slice():(s=x(e,r).sort(),i==="category ascending"?e._initialCategories=s:i==="category descending"&&(e._initialCategories=s.reverse()))}}}}),z_=Xe({"src/plots/cartesian/line_grid_defaults.js"(Z,G){"use strict";var v=Ch().mix,x=sh(),S=sa();G.exports=function(e,t,r,o){o=o||{};var a=o.dfltColor;function n(f,R){return S.coerce2(e,t,o.attributes,f,R)}var i=n("linecolor",a),s=n("linewidth"),h=r("showline",o.showLine||!!i||!!s);h||(delete t.linecolor,delete t.linewidth);var c=v(a,o.bgColor,o.blend||x.lightFraction).toRgbString(),m=n("gridcolor",c),p=n("gridwidth"),T=n("griddash"),l=r("showgrid",o.showGrid||!!m||!!p||!!T);if(l||(delete t.gridcolor,delete t.gridwidth,delete t.griddash),o.hasMinor){var _=v(t.gridcolor,o.bgColor,67).toRgbString(),w=n("minor.gridcolor",_),A=n("minor.gridwidth",t.gridwidth||1),M=n("minor.griddash",t.griddash||"solid"),g=r("minor.showgrid",!!w||!!A||!!M);g||(delete t.minor.gridcolor,delete t.minor.gridwidth,delete t.minor.griddash)}if(!o.noZeroLine){var b=n("zerolinelayer"),d=n("zerolinecolor",a),u=n("zerolinewidth"),y=r("zeroline",o.showGrid||!!d||!!u);y||(delete t.zerolinelayer,delete t.zerolinecolor,delete t.zerolinewidth)}}}}),F_=Xe({"src/plots/cartesian/axis_defaults.js"(Z,G){"use strict";var v=rs(),x=so(),S=sa(),E=zl(),e=hp(),t=Wh(),r=Y0(),o=t1(),a=Qm(),n=e0(),i=I2(),s=z_(),h=h5(),c=wv(),m=lh().WEEKDAY_PATTERN,p=lh().HOUR_PATTERN;G.exports=function(A,M,g,b,d){var u=b.letter,y=b.font||{},f=b.splomStash||{},R=g("visible",!b.visibleDflt),L=M._template||{},z=M.type||L.type||"-",F;if(z==="date"){var N=x.getComponentMethod("calendars","handleDefaults");N(A,M,"calendar",b.calendar),b.noTicklabelmode||(F=g("ticklabelmode"))}!b.noTicklabelindex&&(z==="date"||z==="linear")&&g("ticklabelindex");var O="";(!b.noTicklabelposition||z==="multicategory")&&(O=S.coerce(A,M,{ticklabelposition:{valType:"enumerated",dflt:"outside",values:F==="period"?["outside","inside"]:u==="x"?["outside","inside","outside left","inside left","outside right","inside right"]:["outside","inside","outside top","inside top","outside bottom","inside bottom"]}},"ticklabelposition")),b.noTicklabeloverflow||g("ticklabeloverflow",O.indexOf("inside")!==-1?"hide past domain":z==="category"||z==="multicategory"?"allow":"hide past div"),c(M,d),h(A,M,g,b),i(A,M,g,b),b.noHover||(z!=="category"&&g("hoverformat"),b.noUnifiedhovertitle||g("unifiedhovertitle.text"));var P=g("color"),U=P!==t.color.dflt?P:y.color,B=f.label||d._dfltTitle[u];if(n(A,M,g,z,b),!R)return M;g("title.text",B),S.coerceFont(g,"title.font",y,{overrideDflt:{size:S.bigFont(y.size),color:U}}),r(A,M,g,z);var X=b.hasMinor;if(X&&(E.newContainer(M,"minor"),r(A,M,g,z,{isMinor:!0})),a(A,M,g,z,b),o(A,M,g,b),X){var $=b.isMinor;b.isMinor=!0,o(A,M,g,b),b.isMinor=$}s(A,M,g,{dfltColor:P,bgColor:b.bgColor,showGrid:b.showGrid,hasMinor:X,attributes:t}),X&&!M.minor.ticks&&!M.minor.showgrid&&delete M.minor,(M.showline||M.ticks)&&g("mirror");var se=z==="multicategory";if(!b.noTickson&&(z==="category"||se)&&(M.ticks||M.showgrid)&&(se?(g("tickson","boundaries"),delete M.ticklabelposition):g("tickson")),se){var le=g("showdividers");le&&(g("dividercolor"),g("dividerwidth"))}if(z==="date")if(e(A,M,{name:"rangebreaks",inclusionAttr:"enabled",handleItemDefaults:T}),!M.rangebreaks.length)delete M.rangebreaks;else{for(var fe=0;fe<M.rangebreaks.length;fe++)if(M.rangebreaks[fe].pattern===m){M._hasDayOfWeekBreaks=!0;break}if(c(M,d),d._has("scattergl")||d._has("splom"))for(var V=0;V<b.data.length;V++){var Y=b.data[V];(Y.type==="scattergl"||Y.type==="splom")&&(Y.visible=!1,S.warn(Y.type+" traces do not work on axes with rangebreaks. Setting trace "+Y.index+" to `visible: false`."))}}return M};function T(w,A,M){function g(F,N){return S.coerce(w,A,t.rangebreaks,F,N)}var b=g("enabled");if(b){var d=g("bounds");if(d&&d.length>=2){var u="",y,f;if(d.length===2){for(y=0;y<2;y++)if(f=_(d[y]),f){u=m;break}}var R=g("pattern",u);if(R===m)for(y=0;y<2;y++)f=_(d[y]),f&&(A.bounds[y]=d[y]=f-1);if(R)for(y=0;y<2;y++)switch(f=d[y],R){case m:if(!v(f)){A.enabled=!1;return}if(f=+f,f!==Math.floor(f)||f<0||f>=7){A.enabled=!1;return}A.bounds[y]=d[y]=f;break;case p:if(!v(f)){A.enabled=!1;return}if(f=+f,f<0||f>24){A.enabled=!1;return}A.bounds[y]=d[y]=f;break}if(M.autorange===!1){var L=M.range;if(L[0]<L[1]){if(d[0]<L[0]&&d[1]>L[1]){A.enabled=!1;return}}else if(d[0]>L[0]&&d[1]<L[1]){A.enabled=!1;return}}}else{var z=g("values");if(z&&z.length)g("dvalue");else{A.enabled=!1;return}}}}var l={sun:1,mon:2,tue:3,wed:4,thu:5,fri:6,sat:7};function _(w){if(typeof w=="string")return l[w.slice(0,3).toLowerCase()]}}}),R2=Xe({"src/plots/cartesian/position_defaults.js"(Z,G){"use strict";var v=rs(),x=sa();G.exports=function(E,e,t,r){var o=r.counterAxes||[],a=r.overlayableAxes||[],n=r.letter,i=r.grid,s=r.overlayingDomain,h,c,m,p,T,l;i&&(c=i._domains[n][i._axisMap[e._id]],h=i._anchors[e._id],c&&(m=i[n+"side"].split(" ")[0],p=i.domain[n][m==="right"||m==="top"?1:0])),c=c||[0,1],h=h||(v(E.position)?"free":o[0]||"free"),m=m||(n==="x"?"bottom":"left"),p=p||0,T=0,l=!1;var _=x.coerce(E,e,{anchor:{valType:"enumerated",values:["free"].concat(o),dflt:h}},"anchor"),w=x.coerce(E,e,{side:{valType:"enumerated",values:n==="x"?["bottom","top"]:["left","right"],dflt:m}},"side");if(_==="free"){if(n==="y"){var A=t("autoshift");A&&(p=w==="left"?s[0]:s[1],l=e.automargin?e.automargin:!0,T=w==="left"?-3:3),t("shift",T)}t("position",p)}t("automargin",l);var M=!1;if(a.length&&(M=x.coerce(E,e,{overlaying:{valType:"enumerated",values:[!1].concat(a),dflt:!1}},"overlaying")),!M){var g=t("domain",c);g[0]>g[1]-1/4096&&(e.domain=c),x.noneOrAll(E.domain,e.domain,c),e.tickmode==="sync"&&(e.tickmode="auto")}return t("layer"),e}}}),Kz=Xe({"src/plots/cartesian/layout_defaults.js"(Z,G){"use strict";var v=sa(),x=$n(),S=$p().isUnifiedHover,E=x5(),e=zl(),t=$y(),r=Wh(),o=B5(),a=F_(),n=J0(),i=R2(),s=ef(),h=s.id2name,c=s.name2id,m=lh().AX_ID_PATTERN,p=so(),T=p.traceIs,l=p.getComponentMethod;function _(w,A,M){Array.isArray(w[A])?w[A].push(M):w[A]=[M]}G.exports=function(A,M,g){var b=M.autotypenumbers,d={},u={},y={},f={},R={},L={},z={},F={},N={},O={},P,U;for(P=0;P<g.length;P++){var B=g[P];if(T(B,"cartesian")){var X;if(B.xaxis)X=h(B.xaxis),_(d,X,B);else if(B.xaxes)for(U=0;U<B.xaxes.length;U++)_(d,h(B.xaxes[U]),B);var $;if(B.yaxis)$=h(B.yaxis),_(d,$,B);else if(B.yaxes)for(U=0;U<B.yaxes.length;U++)_(d,h(B.yaxes[U]),B);if(B.type==="funnel"?B.orientation==="h"?(X&&(u[X]=!0),$&&(z[$]=!0)):$&&(y[$]=!0):B.type==="image"?($&&(F[$]=!0),X&&(F[X]=!0)):($&&(R[$]=!0,L[$]=!0),(!T(B,"carpet")||B.type==="carpet"&&!B._cheater)&&X&&(f[X]=!0)),B.type==="carpet"&&B._cheater&&X&&(u[X]=!0),T(B,"2dMap")&&(N[X]=!0,N[$]=!0),T(B,"oriented")){var se=B.orientation==="h"?$:X;O[se]=!0}}}var le=M._subplots,fe=le.xaxis,V=le.yaxis,Y=v.simpleMap(fe,h),ee=v.simpleMap(V,h),q=Y.concat(ee),oe=x.background;fe.length&&V.length&&(oe=v.coerce(A,M,t,"plot_bgcolor"));var ae=x.combine(oe,M.paper_bgcolor),j,Q,re,ce,be;function Ae(){var Ce=d[j]||[];be._traceIndices=Ce.map(function(Ee){return Ee.index}),be._annIndices=[],be._shapeIndices=[],be._selectionIndices=[],be._imgIndices=[],be._subplotsWith=[],be._counterAxes=[],be._name=be._attr=j,be._id=Q}function De(Ce,Ee){return v.coerce(ce,be,r,Ce,Ee)}function ze(Ce,Ee){return v.coerce2(ce,be,r,Ce,Ee)}function Ze(Ce){return Ce==="x"?V:fe}function at(Ce,Ee){for(var Pe=Ce==="x"?Y:ee,ft=[],ct=0;ct<Pe.length;ct++){var _t=Pe[ct];_t!==Ee&&!(A[_t]||{}).overlaying&&ft.push(c(_t))}return ft}var nt={x:Ze("x"),y:Ze("y")},rt=nt.x.concat(nt.y),st={},Me=[];function ye(){var Ce=ce.matches;m.test(Ce)&&rt.indexOf(Ce)===-1&&(st[Ce]=ce.type,Me=Object.keys(st))}var he=E(A,M),Oe=S(he);for(P=0;P<q.length;P++){j=q[P],Q=c(j),re=j.charAt(0),v.isPlainObject(A[j])||(A[j]={}),ce=A[j],be=e.newContainer(M,j,re+"axis"),Ae();var tt=re==="x"&&!f[j]&&u[j]||re==="y"&&!R[j]&&y[j],ot=re==="y"&&(!L[j]&&z[j]||F[j]),Qe={hasMinor:!0,letter:re,font:M.font,outerTicks:N[j],showGrid:!O[j],data:d[j]||[],bgColor:ae,calendar:M.calendar,automargin:!0,visibleDflt:tt,reverseDflt:ot,autotypenumbersDflt:b,splomStash:((M._splomAxes||{})[re]||{})[Q],noAutotickangles:re==="y"};De("uirevision",M.uirevision),o(ce,be,De,Qe),a(ce,be,De,Qe,M);var Pt=Oe&&re===he.charAt(0),It=ze("spikecolor",Oe?be.color:void 0),qt=ze("spikethickness",Oe?1.5:void 0),Wt=ze("spikedash",Oe?"dot":void 0),kr=ze("spikemode",Oe?"across":void 0),mr=ze("spikesnap"),qr=De("showspikes",!!Pt||!!It||!!qt||!!Wt||!!kr||!!mr);qr||(delete be.spikecolor,delete be.spikethickness,delete be.spikedash,delete be.spikemode,delete be.spikesnap);var Sr=h(ce.overlaying),Rr=[0,1];if(M[Sr]!==void 0){var wt=h(M[Sr].anchor);M[wt]!==void 0&&(Rr=M[wt].domain)}i(ce,be,De,{letter:re,counterAxes:nt[re],overlayableAxes:at(re,j),grid:M.grid,overlayingDomain:Rr}),De("title.standoff"),ye(),be._input=ce}for(P=0;P<Me.length;){Q=Me[P++],j=h(Q),re=j.charAt(0),v.isPlainObject(A[j])||(A[j]={}),ce=A[j],be=e.newContainer(M,j,re+"axis"),Ae();var Ne={letter:re,font:M.font,outerTicks:N[j],showGrid:!O[j],data:[],bgColor:ae,calendar:M.calendar,automargin:!0,visibleDflt:!1,reverseDflt:!1,autotypenumbersDflt:b,splomStash:((M._splomAxes||{})[re]||{})[Q]};De("uirevision",M.uirevision),be.type=st[Q]||"linear",a(ce,be,De,Ne,M),i(ce,be,De,{letter:re,counterAxes:nt[re],overlayableAxes:at(re,j),grid:M.grid}),De("fixedrange"),De("modebardisable"),ye(),be._input=ce}var Ke=l("rangeslider","handleDefaults"),Te=l("rangeselector","handleDefaults");for(P=0;P<Y.length;P++)j=Y[P],ce=A[j],be=M[j],Ke(A,M,j),be.type==="date"&&Te(ce,be,M,ee,be.calendar),De("fixedrange"),De("modebardisable");for(P=0;P<ee.length;P++){j=ee[P],ce=A[j],be=M[j];var Ie=M[h(be.anchor)],Ve=l("rangeslider","isVisible")(Ie);De("fixedrange",Ve),De("modebardisable")}n.handleDefaults(A,M,{axIds:rt.concat(Me).sort(s.idSort),axHasImage:F})}}}),Jz=Xe({"src/plots/cartesian/transition_axes.js"(Z,G){"use strict";var v=Hn(),x=so(),S=sa(),E=es(),e=Go();G.exports=function(r,o,a,n){var i=r._fullLayout;if(o.length===0){e.redrawComponents(r);return}function s(M){var g=M.xaxis,b=M.yaxis;i._defs.select("#"+M.clipId+"> rect").call(E.setTranslate,0,0).call(E.setScale,1,1),M.plot.call(E.setTranslate,g._offset,b._offset).call(E.setScale,1,1);var d=M.plot.selectAll(".scatterlayer .trace");d.selectAll(".point").call(E.setPointGroupScale,1,1),d.selectAll(".textpoint").call(E.setTextPointsScale,1,1),d.call(E.hideOutsideRangePoints,M)}function h(M,g){var b=M.plotinfo,d=b.xaxis,u=b.yaxis,y=d._length,f=u._length,R=!!M.xr1,L=!!M.yr1,z=[];if(R){var F=S.simpleMap(M.xr0,d.r2l),N=S.simpleMap(M.xr1,d.r2l),O=F[1]-F[0],P=N[1]-N[0];z[0]=(F[0]*(1-g)+g*N[0]-F[0])/(F[1]-F[0])*y,z[2]=y*(1-g+g*P/O),d.range[0]=d.l2r(F[0]*(1-g)+g*N[0]),d.range[1]=d.l2r(F[1]*(1-g)+g*N[1])}else z[0]=0,z[2]=y;if(L){var U=S.simpleMap(M.yr0,u.r2l),B=S.simpleMap(M.yr1,u.r2l),X=U[1]-U[0],$=B[1]-B[0];z[1]=(U[1]*(1-g)+g*B[1]-U[1])/(U[0]-U[1])*f,z[3]=f*(1-g+g*$/X),u.range[0]=d.l2r(U[0]*(1-g)+g*B[0]),u.range[1]=u.l2r(U[1]*(1-g)+g*B[1])}else z[1]=0,z[3]=f;e.drawOne(r,d,{skipTitle:!0}),e.drawOne(r,u,{skipTitle:!0}),e.redrawComponents(r,[d._id,u._id]);var se=R?y/z[2]:1,le=L?f/z[3]:1,fe=R?z[0]:0,V=L?z[1]:0,Y=R?z[0]/z[2]*y:0,ee=L?z[1]/z[3]*f:0,q=d._offset-Y,oe=u._offset-ee;b.clipRect.call(E.setTranslate,fe,V).call(E.setScale,1/se,1/le),b.plot.call(E.setTranslate,q,oe).call(E.setScale,se,le),E.setPointGroupScale(b.zoomScalePts,1/se,1/le),E.setTextPointsScale(b.zoomScaleTxt,1/se,1/le)}var c;n&&(c=n());function m(){for(var M={},g=0;g<o.length;g++){var b=o[g],d=b.plotinfo.xaxis,u=b.plotinfo.yaxis;b.xr1&&(M[d._name+".range"]=b.xr1.slice()),b.yr1&&(M[u._name+".range"]=b.yr1.slice())}return c&&c(),x.call("relayout",r,M).then(function(){for(var y=0;y<o.length;y++)s(o[y].plotinfo)})}function p(){for(var M={},g=0;g<o.length;g++){var b=o[g],d=b.plotinfo.xaxis,u=b.plotinfo.yaxis;b.xr0&&(M[d._name+".range"]=b.xr0.slice()),b.yr0&&(M[u._name+".range"]=b.yr0.slice())}return x.call("relayout",r,M).then(function(){for(var y=0;y<o.length;y++)s(o[y].plotinfo)})}var T,l,_,w=v.ease(a.easing);r._transitionData._interruptCallbacks.push(function(){return window.cancelAnimationFrame(_),_=null,p()});function A(){l=Date.now();for(var M=Math.min(1,(l-T)/a.duration),g=w(M),b=0;b<o.length;b++)h(o[b],g);l-T>a.duration?(m(),_=window.cancelAnimationFrame(A)):_=window.requestAnimationFrame(A)}return T=Date.now(),_=window.requestAnimationFrame(A),Promise.resolve()}}}),Kf=Xe({"src/plots/cartesian/index.js"(Z){"use strict";var G=Hn(),v=so(),x=sa(),S=bc(),E=es(),e=Hh().getModuleCalcData,t=ef(),r=lh(),o=vd(),a=x.ensureSingle;function n(T,l,_){return x.ensureSingle(T,l,_,function(w){w.datum(_)})}var i=r.zindexSeparator;Z.name="cartesian",Z.attr=["xaxis","yaxis"],Z.idRoot=["x","y"],Z.idRegex=r.idRegex,Z.attrRegex=r.attrRegex,Z.attributes=Yz(),Z.layoutAttributes=Wh(),Z.supplyLayoutDefaults=Kz(),Z.transitionAxes=Jz(),Z.finalizeSubplots=function(T,l){var _=l._subplots,w=_.xaxis,A=_.yaxis,M=_.cartesian,g=M,b={},d={},u,y,f;for(u=0;u<g.length;u++){var R=g[u].split("y");b[R[0]]=1,d["y"+R[1]]=1}for(u=0;u<w.length;u++)y=w[u],b[y]||(f=(T[t.id2name(y)]||{}).anchor,r.idRegex.y.test(f)||(f="y"),M.push(y+f),g.push(y+f),d[f]||(d[f]=1,x.pushUnique(A,f)));for(u=0;u<A.length;u++)f=A[u],d[f]||(y=(T[t.id2name(f)]||{}).anchor,r.idRegex.x.test(y)||(y="x"),M.push(y+f),g.push(y+f),b[y]||(b[y]=1,x.pushUnique(w,y)));if(!g.length){y="",f="";for(var L in T)if(r.attrRegex.test(L)){var z=L.charAt(0);z==="x"?(!y||+L.slice(5)<+y.slice(5))&&(y=L):(!f||+L.slice(5)<+f.slice(5))&&(f=L)}y=y?t.name2id(y):"x",f=f?t.name2id(f):"y",w.push(y),A.push(f),M.push(y+f)}},Z.plot=function(T,l,_,w){var A=T._fullLayout,M=A._subplots.cartesian,g=T.calcdata,b;if(!Array.isArray(l))for(l=[],b=0;b<g.length;b++)l.push(b);for(var d=A._zindices,u=0;u<d.length;u++){var y=d[u];for(b=0;b<M.length;b++){var f=M[b],R=A._plots[f];if(u>0){var L=R.id;if(L.indexOf(i)!==-1)continue;L+=i+(u+1),R=x.extendFlat({},R,{id:L,plot:A._cartesianlayer.selectAll(".subplot").select("."+L)})}for(var z=[],F,N=0;N<g.length;N++){var O=g[N],P=O[0].trace;y===(P.zorder||0)&&P.xaxis+P.yaxis===f&&((l.indexOf(P.index)!==-1||P.carpet)&&(F&&F[0].trace.xaxis+F[0].trace.yaxis===f&&["tonextx","tonexty","tonext"].indexOf(P.fill)!==-1&&z.indexOf(F)===-1&&z.push(F),z.push(O)),F=O)}s(T,R,z,_,w)}}};function s(T,l,_,w,A){for(var M=r.traceLayerClasses,g=T._fullLayout,b=g._zindices,d=g._modules,u,y,f,R=[],L=[],z=0;z<b.length;z++)for(var F=b[z],N=0;N<d.length;N++){u=d[N];var O=u.name,P=v.modules[O].categories;if(P.svg){var U=u.layerName||O+"layer",B=U+(z?Number(z)+1:""),X=u.plot;y=e(_,X,F),f=y[0],_=y[1],f.length&&R.push({i:M.indexOf(U),zindex:z,className:B,plotMethod:X,cdModule:f}),P.zoomScale&&L.push("."+B)}}R.sort(function(le,fe){return(le.zindex||0)-(fe.zindex||0)||le.i-fe.i});var $=l.plot.selectAll("g.mlayer").data(R,function(le){return le.className});if($.enter().append("g").attr("class",function(le){return le.className}).classed("mlayer",!0).classed("rangeplot",l.isRangePlot),$.exit().remove(),$.order(),$.each(function(le){var fe=G.select(this),V=le.className;le.plotMethod(T,l,le.cdModule,fe,w,A),r.clipOnAxisFalseQuery.indexOf("."+V)===-1&&E.setClipUrl(fe,l.layerClipId,T)}),g._has("scattergl")&&(u=v.getModule("scattergl"),f=e(_,u)[0],u.plot(T,l,f)),!T._context.staticPlot&&(l._hasClipOnAxisFalse&&(l.clipOnAxisFalseTraces=l.plot.selectAll(r.clipOnAxisFalseQuery.join(",")).selectAll(".trace")),L.length)){var se=l.plot.selectAll(L.join(",")).selectAll(".trace");l.zoomScalePts=se.selectAll("path.point"),l.zoomScaleTxt=se.selectAll(".textpoint")}}Z.clean=function(T,l,_,w){var A=w._plots||{},M=l._plots||{},g=w._subplots||{},b,d,u;if(w._hasOnlyLargeSploms&&!l._hasOnlyLargeSploms)for(u in A)b=A[u],b.plotgroup&&b.plotgroup.remove();var y=w._has&&w._has("gl"),f=l._has&&l._has("gl");if(y&&!f)for(u in A)b=A[u],b._scene&&b._scene.destroy();if(g.xaxis&&g.yaxis){var R=t.listIds({_fullLayout:w});for(d=0;d<R.length;d++){var L=R[d];l[t.id2name(L)]||w._infolayer.selectAll(".g-"+L+"title").remove()}}var z=w._has&&w._has("cartesian"),F=l._has&&l._has("cartesian");if(z&&!F)m(w._cartesianlayer.selectAll(".subplot"),w),w._defs.selectAll(".axesclip").remove(),delete w._axisConstraintGroups,delete w._axisMatchGroups;else if(g.cartesian)for(d=0;d<g.cartesian.length;d++){var N=g.cartesian[d];if(N.indexOf(i)===-1&&!M[N]){var O="."+N+",."+N+"-x,."+N+"-y";w._cartesianlayer.selectAll(O).remove(),p(N,w)}}},Z.drawFramework=function(T){var l=T._fullLayout,_=T.calcdata,w,A={};for(w=0;w<_.length;w++){var M=_[w][0],g=M.trace,b=g.zorder||0;A[b]||(A[b]=[]),A[b].push(M)}var d=Object.keys(A).map(Number).sort(x.sorterAsc);d.length||(d=[0]),l._zindices=d;var u=h(T),y=u.length,f=[];for(w=0;w<y;w++)f[w]=u[w].slice();for(var R=1;R<d.length;R++){var L=[];for(w=0;w<y;w++)L[w]=u[w].slice(),L[w][0]+=i+(R+1);f=f.concat(L)}var z=l._cartesianlayer.selectAll(".subplot").data(f,String);z.enter().append("g").attr("class",function(F){return"subplot "+F[0]}),z.order(),z.exit().call(m,l),z.each(function(F){var N=F[0],O=N.indexOf(i),P=O!==-1,U=P?N.slice(0,O):N,B=l._plots[N];B||(B=x.extendFlat({},l._plots[U]),B&&(B.id=N,l._plots[N]=B,l._subplots.cartesian.push(N))),B&&(B.plotgroup=G.select(this),c(T,B),P||(B.draglayer=a(l._draggers,"g",N)))})},Z.rangePlot=function(T,l,_){c(T,l),s(T,l,_),S.style(T)};function h(T){var l=T._fullLayout,_=l._zindices.length,w=l._subplots.cartesian,A=w.length,M,g,b,d,u,y,f=[],R=[];for(M=0;M<A;M++){b=w[M],d=l._plots[b],u=d.xaxis,y=d.yaxis;var L=u._mainAxis,z=y._mainAxis,F=L._id+z._id,N=l._plots[F];d.overlays=[],F!==b&&N?(d.mainplot=F,d.mainplotinfo=N,R.push(b)):(d.mainplot=void 0,d.mainplotinfo=void 0,f.push(b))}for(M=0;M<R.length;M++)b=R[M],d=l._plots[b],d.mainplotinfo.overlays.push(d);var O=f.concat(R),P=[];for(M=0;M<A;M++){b=O[M],d=l._plots[b],u=d.xaxis,y=d.yaxis;for(var U=[],B=1;B<=_;B++){var X="";for(B>1&&(X+=i+B),U.push(b+X),g=0;g<d.overlays.length;g++)U.push(d.overlays[g].id+X)}U=U.concat([u.layer,y.layer,u.overlaying||"",y.overlaying||""]),P.push(U)}return P}function c(T,l){var _=T._fullLayout,w=l.plotgroup,A=l.id,M=A.indexOf(i),g=M!==-1,b=r.layerValue2layerClass[l.xaxis.layer],d=r.layerValue2layerClass[l.yaxis.layer],u=_._hasOnlyLargeSploms,y=_._zindices.length>1,f=l.mainplotinfo;if(!l.mainplot||y)if(u)l.xlines=a(w,"path","xlines-above"),l.ylines=a(w,"path","ylines-above"),l.xaxislayer=a(w,"g","xaxislayer-above"),l.yaxislayer=a(w,"g","yaxislayer-above");else{if(!g){var R=a(w,"g","layer-subplot");l.shapelayer=a(R,"g","shapelayer"),l.imagelayer=a(R,"g","imagelayer"),f&&y?(l.minorGridlayer=f.minorGridlayer,l.gridlayer=f.gridlayer,l.zerolinelayer=f.zerolinelayer):(l.minorGridlayer=a(w,"g","minor-gridlayer"),l.gridlayer=a(w,"g","gridlayer"),l.zerolinelayer=a(w,"g","zerolinelayer"));var L=a(w,"g","layer-between");l.shapelayerBetween=a(L,"g","shapelayer"),l.imagelayerBetween=a(L,"g","imagelayer"),a(w,"path","xlines-below"),a(w,"path","ylines-below"),l.overlinesBelow=a(w,"g","overlines-below"),a(w,"g","xaxislayer-below"),a(w,"g","yaxislayer-below"),l.overaxesBelow=a(w,"g","overaxes-below")}l.overplot=a(w,"g","overplot"),l.plot=a(l.overplot,"g",A),f&&y?l.zerolinelayerAbove=f.zerolinelayerAbove:l.zerolinelayerAbove=a(w,"g","zerolinelayer-above"),g||(l.xlines=a(w,"path","xlines-above"),l.ylines=a(w,"path","ylines-above"),l.overlinesAbove=a(w,"g","overlines-above"),a(w,"g","xaxislayer-above"),a(w,"g","yaxislayer-above"),l.overaxesAbove=a(w,"g","overaxes-above"),l.xlines=w.select(".xlines-"+b),l.ylines=w.select(".ylines-"+d),l.xaxislayer=w.select(".xaxislayer-"+b),l.yaxislayer=w.select(".yaxislayer-"+d))}else{var z=f.plotgroup,F=A+"-x",N=A+"-y";l.minorGridlayer=f.minorGridlayer,l.gridlayer=f.gridlayer,l.zerolinelayer=f.zerolinelayer,l.zerolinelayerAbove=f.zerolinelayerAbove,a(f.overlinesBelow,"path",F),a(f.overlinesBelow,"path",N),a(f.overaxesBelow,"g",F),a(f.overaxesBelow,"g",N),l.plot=a(f.overplot,"g",A),a(f.overlinesAbove,"path",F),a(f.overlinesAbove,"path",N),a(f.overaxesAbove,"g",F),a(f.overaxesAbove,"g",N),l.xlines=z.select(".overlines-"+b).select("."+F),l.ylines=z.select(".overlines-"+d).select("."+N),l.xaxislayer=z.select(".overaxes-"+b).select("."+F),l.yaxislayer=z.select(".overaxes-"+d).select("."+N)}g||(u||(n(l.minorGridlayer,"g",l.xaxis._id),n(l.minorGridlayer,"g",l.yaxis._id),l.minorGridlayer.selectAll("g").map(function(O){return O[0]}).sort(t.idSort),n(l.gridlayer,"g",l.xaxis._id),n(l.gridlayer,"g",l.yaxis._id),l.gridlayer.selectAll("g").map(function(O){return O[0]}).sort(t.idSort)),l.xlines.style("fill","none").classed("crisp",!0),l.ylines.style("fill","none").classed("crisp",!0))}function m(T,l){if(T){var _={};T.each(function(d){var u=d[0],y=G.select(this);y.remove(),p(u,l),_[u]=!0});for(var w in l._plots)for(var A=l._plots[w],M=A.overlays||[],g=0;g<M.length;g++){var b=M[g];_[b.id]&&b.plot.selectAll(".trace").remove()}}}function p(T,l){l._draggers.selectAll("g."+T).remove(),l._defs.select("#clip"+l._uid+T+"plot").remove()}Z.toSVG=function(T){var l=T._fullLayout._glimages,_=G.select(T).selectAll(".svg-container"),w=_.filter(function(M,g){return g===_.size()-1}).selectAll(".gl-canvas-context, .gl-canvas-focus");function A(){var M=this,g=M.toDataURL("image/png"),b=l.append("svg:image");b.attr({xmlns:o.svg,"xlink:href":g,preserveAspectRatio:"none",x:0,y:0,width:M.style.width,height:M.style.height})}w.each(A)},Z.updateFx=I5().updateFx}}),$z=Xe({"src/traces/scatter/index.js"(Z,G){"use strict";var v=Fu();G.exports={hasLines:v.hasLines,hasMarkers:v.hasMarkers,hasText:v.hasText,isBubble:v.isBubble,attributes:af(),layoutAttributes:_2(),supplyDefaults:Hz(),crossTraceDefaults:z5(),supplyLayoutDefaults:Wz(),calc:Bd().calc,crossTraceCalc:Zz(),arraysToCalcdata:Av(),plot:s1(),colorbar:pp(),formatLabels:P2(),style:Qp().style,styleOnSelect:Qp().styleOnSelect,hoverPoints:u1(),selectPoints:c1(),animatable:!0,moduleType:"trace",name:"scatter",basePlotModule:Kf(),categories:["cartesian","svg","symbols","errorBarsOK","showLegend","scatter-like","zoomScale"],meta:{}}}}),Qz=Xe({"src/components/annotations/draw_arrow_head.js"(Z,G){"use strict";var v=Hn(),x=$n(),S=C5(),E=sa(),e=E.strScale,t=E.strRotate,r=E.strTranslate;G.exports=function(a,n,i){var s=a.node(),h=S[i.arrowhead||0],c=S[i.startarrowhead||0],m=(i.arrowwidth||1)*(i.arrowsize||1),p=(i.arrowwidth||1)*(i.startarrowsize||1),T=n.indexOf("start")>=0,l=n.indexOf("end")>=0,_=h.backoff*m+i.standoff,w=c.backoff*p+i.startstandoff,A,M,g,b;if(s.nodeName==="line"){A={x:+a.attr("x1"),y:+a.attr("y1")},M={x:+a.attr("x2"),y:+a.attr("y2")};var d=A.x-M.x,u=A.y-M.y;if(g=Math.atan2(u,d),b=g+Math.PI,_&&w&&_+w>Math.sqrt(d*d+u*u)){X();return}if(_){if(_*_>d*d+u*u){X();return}var y=_*Math.cos(g),f=_*Math.sin(g);M.x+=y,M.y+=f,a.attr({x2:M.x,y2:M.y})}if(w){if(w*w>d*d+u*u){X();return}var R=w*Math.cos(g),L=w*Math.sin(g);A.x-=R,A.y-=L,a.attr({x1:A.x,y1:A.y})}}else if(s.nodeName==="path"){var z=s.getTotalLength(),F="";if(z<_+w){X();return}var N=s.getPointAtLength(0),O=s.getPointAtLength(.1);g=Math.atan2(N.y-O.y,N.x-O.x),A=s.getPointAtLength(Math.min(w,z)),F="0px,"+w+"px,";var P=s.getPointAtLength(z),U=s.getPointAtLength(z-.1);b=Math.atan2(P.y-U.y,P.x-U.x),M=s.getPointAtLength(Math.max(0,z-_));var B=F?w+_:_;F+=z-B+"px,"+z+"px",a.style("stroke-dasharray",F)}function X(){a.style("stroke-dasharray","0px,100px")}function $(se,le,fe,V){se.path&&(se.noRotate&&(fe=0),v.select(s.parentNode).append("path").attr({class:a.attr("class"),d:se.path,transform:r(le.x,le.y)+t(fe*180/Math.PI)+e(V)}).style({fill:x.rgb(i.arrowcolor),"stroke-width":0}))}T&&$(c,A,g,p),l&&$(h,M,b,m)}}}),D2=Xe({"src/components/annotations/draw.js"(Z,G){"use strict";var v=Hn(),x=so(),S=bc(),E=sa(),e=E.strTranslate,t=Go(),r=$n(),o=es(),a=rf(),n=ou(),i=Kd(),s=Ap(),h=zl().arrayEditor,c=Qz();G.exports={draw:m,drawOne:p,drawRaw:l};function m(_){var w=_._fullLayout;w._infolayer.selectAll(".annotation").remove();for(var A=0;A<w.annotations.length;A++)w.annotations[A].visible&&p(_,A);return S.previousPromises(_)}function p(_,w){var A=_._fullLayout,M=A.annotations[w]||{},g=t.getFromId(_,M.xref),b=t.getFromId(_,M.yref);g&&g.setScale(),b&&b.setScale(),l(_,M,w,!1,g,b)}function T(_,w,A,M,g){var b=g[A],d=g[A+"ref"],u=A.indexOf("y")!==-1,y=t.getRefType(d)==="domain",f=u?M.h:M.w;return _?y?b+(u?-w:w)/_._length:_.p2r(_.r2p(b)+w):b+(u?-w:w)/f}function l(_,w,A,M,g,b){var d=_._fullLayout,u=_._fullLayout._size,y=_._context.edits,f,R;M?(f="annotation-"+M,R=M+".annotations"):(f="annotation",R="annotations");var L=h(_.layout,R,w),z=L.modifyBase,F=L.modifyItem,N=L.getUpdateObj;d._infolayer.selectAll("."+f+'[data-index="'+A+'"]').remove();var O="clip"+d._uid+"_ann"+A;if(!w._input||w.visible===!1){v.selectAll("#"+O).remove();return}var P={x:{},y:{}},U=+w.textangle||0,B=d._infolayer.append("g").classed(f,!0).attr("data-index",String(A)).style("opacity",w.opacity),X=B.append("g").classed("annotation-text-g",!0),$=y[w.showarrow?"annotationTail":"annotationPosition"],se=w.captureevents||y.annotationText||$;function le(Ae){var De={index:A,annotation:w._input,fullAnnotation:w,event:Ae};return M&&(De.subplotId=M),De}var fe=X.append("g").style("pointer-events",se?"all":null).call(i,"pointer").on("click",function(){_._dragging=!1,_.emit("plotly_clickannotation",le(v.event))});w.hovertext&&fe.on("mouseover",function(){var Ae=w.hoverlabel,De=Ae.font,ze=this.getBoundingClientRect(),Ze=_.getBoundingClientRect();a.loneHover({x0:ze.left-Ze.left,x1:ze.right-Ze.left,y:(ze.top+ze.bottom)/2-Ze.top,text:w.hovertext,color:Ae.bgcolor,borderColor:Ae.bordercolor,fontFamily:De.family,fontSize:De.size,fontColor:De.color,fontWeight:De.weight,fontStyle:De.style,fontVariant:De.variant,fontShadow:De.fontShadow,fontLineposition:De.fontLineposition,fontTextcase:De.fontTextcase},{container:d._hoverlayer.node(),outerContainer:d._paper.node(),gd:_})}).on("mouseout",function(){a.loneUnhover(d._hoverlayer.node())});var V=w.borderwidth,Y=w.borderpad,ee=V+Y,q=fe.append("rect").attr("class","bg").style("stroke-width",V+"px").call(r.stroke,w.bordercolor).call(r.fill,w.bgcolor),oe=w.width||w.height,ae=d._topclips.selectAll("#"+O).data(oe?[0]:[]);ae.enter().append("clipPath").classed("annclip",!0).attr("id",O).append("rect"),ae.exit().remove();var j=w.font,Q=d._meta?E.templateString(w.text,d._meta):w.text,re=fe.append("text").classed("annotation-text",!0).text(Q);function ce(Ae){return Ae.call(o.font,j).attr({"text-anchor":{left:"start",right:"end"}[w.align]||"middle"}),n.convertToTspans(Ae,_,be),Ae}function be(){var Ae=re.selectAll("a");if(Ae.size()===1&&Ae.text()===re.text()){var De=fe.insert("a",":first-child").attr({"xlink:xlink:href":Ae.attr("xlink:href"),"xlink:xlink:show":Ae.attr("xlink:show")}).style({cursor:"pointer"});De.node().appendChild(q.node())}var ze=fe.select(".annotation-text-math-group"),Ze=!ze.empty(),at=o.bBox((Ze?ze:re).node()),nt=at.width,rt=at.height,st=w.width||nt,Me=w.height||rt,ye=Math.round(st+2*ee),he=Math.round(Me+2*ee);function Oe(Wa,Ca){return Ca==="auto"&&(Wa<1/3?Ca="left":Wa>2/3?Ca="right":Ca="center"),{center:0,middle:0,left:.5,bottom:-.5,right:-.5,top:.5}[Ca]}for(var tt=!1,ot=["x","y"],Qe=0;Qe<ot.length;Qe++){var Pt=ot[Qe],It=w[Pt+"ref"]||Pt,qt=w["a"+Pt+"ref"],Wt={x:g,y:b}[Pt],kr=(U+(Pt==="x"?0:-90))*Math.PI/180,mr=ye*Math.cos(kr),qr=he*Math.sin(kr),Sr=Math.abs(mr)+Math.abs(qr),Rr=w[Pt+"anchor"],wt=w[Pt+"shift"]*(Pt==="x"?1:-1),Ne=P[Pt],Ke,Te,Ie,Ve,Ce,Ee=t.getRefType(It);if(Wt&&Ee!=="domain"){var Pe=Wt.r2fraction(w[Pt]);(Pe<0||Pe>1)&&(qt===It?(Pe=Wt.r2fraction(w["a"+Pt]),(Pe<0||Pe>1)&&(tt=!0)):tt=!0),Ke=Wt._offset+Wt.r2p(w[Pt]),Ve=.5}else{var ft=Ee==="domain";Pt==="x"?(Ie=w[Pt],Ke=ft?Wt._offset+Wt._length*Ie:Ke=u.l+u.w*Ie):(Ie=1-w[Pt],Ke=ft?Wt._offset+Wt._length*Ie:Ke=u.t+u.h*Ie),Ve=w.showarrow?.5:Ie}if(w.showarrow){Ne.head=Ke;var ct=w["a"+Pt];if(Ce=mr*Oe(.5,w.xanchor)-qr*Oe(.5,w.yanchor),qt===It){var _t=t.getRefType(qt);_t==="domain"?(Pt==="y"&&(ct=1-ct),Ne.tail=Wt._offset+Wt._length*ct):_t==="paper"?Pt==="y"?(ct=1-ct,Ne.tail=u.t+u.h*ct):Ne.tail=u.l+u.w*ct:Ne.tail=Wt._offset+Wt.r2p(ct),Te=Ce}else Ne.tail=Ke+ct,Te=Ce+ct;Ne.text=Ne.tail+Ce;var Ct=d[Pt==="x"?"width":"height"];if(It==="paper"&&(Ne.head=E.constrain(Ne.head,1,Ct-1)),qt==="pixel"){var ir=-Math.max(Ne.tail-3,Ne.text),rr=Math.min(Ne.tail+3,Ne.text)-Ct;ir>0?(Ne.tail+=ir,Ne.text+=ir):rr>0&&(Ne.tail-=rr,Ne.text-=rr)}Ne.tail+=wt,Ne.head+=wt}else Ce=Sr*Oe(Ve,Rr),Te=Ce,Ne.text=Ke+Ce;Ne.text+=wt,Ce+=wt,Te+=wt,w["_"+Pt+"padplus"]=Sr/2+Te,w["_"+Pt+"padminus"]=Sr/2-Te,w["_"+Pt+"size"]=Sr,w["_"+Pt+"shift"]=Ce}if(tt){fe.remove();return}var er=0,Lr=0;if(w.align!=="left"&&(er=(st-nt)*(w.align==="center"?.5:1)),w.valign!=="top"&&(Lr=(Me-rt)*(w.valign==="middle"?.5:1)),Ze)ze.select("svg").attr({x:ee+er-1,y:ee+Lr}).call(o.setClipUrl,oe?O:null,_);else{var fa=ee+Lr-at.top,Da=ee+er-at.left;re.call(n.positionText,Da,fa).call(o.setClipUrl,oe?O:null,_)}ae.select("rect").call(o.setRect,ee,ee,st,Me),q.call(o.setRect,V/2,V/2,ye-V,he-V),fe.call(o.setTranslate,Math.round(P.x.text-ye/2),Math.round(P.y.text-he/2)),X.attr({transform:"rotate("+U+","+P.x.text+","+P.y.text+")"});var Ia=function(Wa,Ca){B.selectAll(".annotation-arrow-g").remove();var hi=P.x.head,wi=P.y.head,Kt=P.x.tail+Wa,Ft=P.y.tail+Ca,Yt=P.x.text+Wa,Jt=P.y.text+Ca,Fr=E.rotationXYMatrix(U,Yt,Jt),ta=E.apply2DTransform(Fr),ra=E.apply2DTransform2(Fr),ca=+q.attr("width"),Ba=+q.attr("height"),$a=Yt-.5*ca,Za=$a+ca,ri=Jt-.5*Ba,pi=ri+Ba,Ra=[[$a,ri,$a,pi],[$a,pi,Za,pi],[Za,pi,Za,ri],[Za,ri,$a,ri]].map(ra);if(!Ra.reduce(function(xt,Xt){return xt^!!E.segmentsIntersect(hi,wi,hi+1e6,wi+1e6,Xt[0],Xt[1],Xt[2],Xt[3])},!1)){Ra.forEach(function(xt){var Xt=E.segmentsIntersect(Kt,Ft,hi,wi,xt[0],xt[1],xt[2],xt[3]);Xt&&(Kt=Xt.x,Ft=Xt.y)});var tn=w.arrowwidth,on=w.arrowcolor,hn=w.arrowside,Tt=B.append("g").style({opacity:r.opacity(on)}).classed("annotation-arrow-g",!0),ut=Tt.append("path").attr("d","M"+Kt+","+Ft+"L"+hi+","+wi).style("stroke-width",tn+"px").call(r.stroke,r.rgb(on));if(c(ut,hn,w),y.annotationPosition&&ut.node().parentNode&&!M){var Br=hi,Cr=wi;if(w.standoff){var xr=Math.sqrt(Math.pow(hi-Kt,2)+Math.pow(wi-Ft,2));Br+=w.standoff*(Kt-hi)/xr,Cr+=w.standoff*(Ft-wi)/xr}var Ir=Tt.append("path").classed("annotation-arrow",!0).classed("anndrag",!0).classed("cursor-move",!0).attr({d:"M3,3H-3V-3H3ZM0,0L"+(Kt-Br)+","+(Ft-Cr),transform:e(Br,Cr)}).style("stroke-width",tn+6+"px").call(r.stroke,"rgba(0,0,0,0)").call(r.fill,"rgba(0,0,0,0)"),Ur,Hr;s.init({element:Ir.node(),gd:_,prepFn:function(){var xt=o.getTranslate(fe);Ur=xt.x,Hr=xt.y,g&&g.autorange&&z(g._name+".autorange",!0),b&&b.autorange&&z(b._name+".autorange",!0)},moveFn:function(xt,Xt){var vr=ta(Ur,Hr),Or=vr[0]+xt,ba=vr[1]+Xt;fe.call(o.setTranslate,Or,ba),F("x",T(g,xt,"x",u,w)),F("y",T(b,Xt,"y",u,w)),w.axref===w.xref&&F("ax",T(g,xt,"ax",u,w)),w.ayref===w.yref&&F("ay",T(b,Xt,"ay",u,w)),Tt.attr("transform",e(xt,Xt)),X.attr({transform:"rotate("+U+","+Or+","+ba+")"})},doneFn:function(){x.call("_guiRelayout",_,N());var xt=document.querySelector(".js-notes-box-panel");xt&&xt.redraw(xt.selectedObj)}})}}};if(w.showarrow&&Ia(0,0),$){var qa;s.init({element:fe.node(),gd:_,prepFn:function(){qa=X.attr("transform")},moveFn:function(Wa,Ca){var hi="pointer";if(w.showarrow)w.axref===w.xref?F("ax",T(g,Wa,"ax",u,w)):F("ax",w.ax+Wa),w.ayref===w.yref?F("ay",T(b,Ca,"ay",u.w,w)):F("ay",w.ay+Ca),Ia(Wa,Ca);else{if(M)return;var wi,Kt;if(g)wi=T(g,Wa,"x",u,w);else{var Ft=w._xsize/u.w,Yt=w.x+(w._xshift-w.xshift)/u.w-Ft/2;wi=s.align(Yt+Wa/u.w,Ft,0,1,w.xanchor)}if(b)Kt=T(b,Ca,"y",u,w);else{var Jt=w._ysize/u.h,Fr=w.y-(w._yshift+w.yshift)/u.h-Jt/2;Kt=s.align(Fr-Ca/u.h,Jt,0,1,w.yanchor)}F("x",wi),F("y",Kt),(!g||!b)&&(hi=s.getCursor(g?.5:wi,b?.5:Kt,w.xanchor,w.yanchor))}X.attr({transform:e(Wa,Ca)+qa}),i(fe,hi)},clickFn:function(Wa,Ca){w.captureevents&&_.emit("plotly_clickannotation",le(Ca))},doneFn:function(){i(fe),x.call("_guiRelayout",_,N());var Wa=document.querySelector(".js-notes-box-panel");Wa&&Wa.redraw(Wa.selectedObj)}})}}y.annotationText?re.call(n.makeEditable,{delegate:fe,gd:_}).call(ce).on("edit",function(Ae){w.text=Ae,this.call(ce),F("text",Ae),g&&g.autorange&&z(g._name+".autorange",!0),b&&b.autorange&&z(b._name+".autorange",!0),x.call("_guiRelayout",_,N())}):re.call(ce)}}}),e9=Xe({"src/components/annotations/click.js"(Z,G){"use strict";var v=sa(),x=so(),S=zl().arrayEditor;G.exports={hasClickToShow:E,onClick:e};function E(o,a){var n=t(o,a);return n.on.length>0||n.explicitOff.length>0}function e(o,a){var n=t(o,a),i=n.on,s=n.off.concat(n.explicitOff),h={},c=o._fullLayout.annotations,m,p;if(i.length||s.length){for(m=0;m<i.length;m++)p=S(o.layout,"annotations",c[i[m]]),p.modifyItem("visible",!0),v.extendFlat(h,p.getUpdateObj());for(m=0;m<s.length;m++)p=S(o.layout,"annotations",c[s[m]]),p.modifyItem("visible",!1),v.extendFlat(h,p.getUpdateObj());return x.call("update",o,{},h)}}function t(o,a){var n=o._fullLayout.annotations,i=[],s=[],h=[],c=(a||[]).length,m,p,T,l,_,w,A,M;for(m=0;m<n.length;m++)if(T=n[m],l=T.clicktoshow,l){for(p=0;p<c;p++)if(_=a[p],w=_.xaxis,A=_.yaxis,w._id===T.xref&&A._id===T.yref&&w.d2r(_.x)===r(T._xclick,w)&&A.d2r(_.y)===r(T._yclick,A)){T.visible?l==="onout"?M=s:M=h:M=i,M.push(m);break}p===c&&T.visible&&l==="onout"&&s.push(m)}return{on:i,off:s,explicitOff:h}}function r(o,a){return a.type==="log"?a.l2r(o):a.d2r(o)}}}),N5=Xe({"src/components/annotations/common_defaults.js"(Z,G){"use strict";var v=sa(),x=$n();G.exports=function(E,e,t,r){r("opacity");var o=r("bgcolor"),a=r("bordercolor"),n=x.opacity(a);r("borderpad");var i=r("borderwidth"),s=r("showarrow");r("text",s?" ":t._dfltTitle.annotation),r("textangle"),v.coerceFont(r,"font",t.font),r("width"),r("align");var h=r("height");if(h&&r("valign"),s){var c=r("arrowside"),m,p;c.indexOf("end")!==-1&&(m=r("arrowhead"),p=r("arrowsize")),c.indexOf("start")!==-1&&(r("startarrowhead",m),r("startarrowsize",p)),r("arrowcolor",n?e.bordercolor:x.defaultLine),r("arrowwidth",(n&&i||1)*2),r("standoff"),r("startstandoff")}var T=r("hovertext"),l=t.hoverlabel||{};if(T){var _=r("hoverlabel.bgcolor",l.bgcolor||(x.opacity(o)?x.rgb(o):x.defaultLine)),w=r("hoverlabel.bordercolor",l.bordercolor||x.contrast(_)),A=v.extendFlat({},l.font);A.color||(A.color=w),v.coerceFont(r,"hoverlabel.font",A)}r("captureevents",!!T)}}}),t9=Xe({"src/components/annotations/defaults.js"(Z,G){"use strict";var v=sa(),x=Go(),S=hp(),E=N5(),e=$0();G.exports=function(o,a){S(o,a,{name:"annotations",handleItemDefaults:t})};function t(r,o,a){function n(u,y){return v.coerce(r,o,e,u,y)}var i=n("visible"),s=n("clicktoshow");if(i||s){E(r,o,a,n);for(var h=o.showarrow,c=["x","y"],m=[-10,-30],p={_fullLayout:a},T=0;T<2;T++){var l=c[T],_=x.coerceRef(r,o,p,l,"","paper");if(_!=="paper"){var w=x.getFromId(p,_);w._annIndices.push(o._index)}if(x.coercePosition(o,p,n,_,l,.5),h){var A="a"+l,M=x.coerceRef(r,o,p,A,"pixel",["pixel","paper"]);M!=="pixel"&&M!==_&&(M=o[A]="pixel");var g=M==="pixel"?m[T]:.4;x.coercePosition(o,p,n,M,A,g)}n(l+"anchor"),n(l+"shift")}if(v.noneOrAll(r,o,["x","y"]),h&&v.noneOrAll(r,o,["ax","ay"]),s){var b=n("xclick"),d=n("yclick");o._xclick=b===void 0?o.x:x.cleanPosition(b,p,o.xref),o._yclick=d===void 0?o.y:x.cleanPosition(d,p,o.yref)}}}}}),r9=Xe({"src/components/annotations/calc_autorange.js"(Z,G){"use strict";var v=sa(),x=Go(),S=D2().draw;G.exports=function(r){var o=r._fullLayout,a=v.filterVisible(o.annotations);if(a.length&&r._fullData.length)return v.syncOrAsync([S,E],r)};function E(t){var r=t._fullLayout;v.filterVisible(r.annotations).forEach(function(o){var a=x.getFromId(t,o.xref),n=x.getFromId(t,o.yref),i=x.getRefType(o.xref),s=x.getRefType(o.yref);o._extremes={},i==="range"&&e(o,a),s==="range"&&e(o,n)})}function e(t,r){var o=r._id,a=o.charAt(0),n=t[a],i=t["a"+a],s=t[a+"ref"],h=t["a"+a+"ref"],c=t["_"+a+"padplus"],m=t["_"+a+"padminus"],p={x:1,y:-1}[a]*t[a+"shift"],T=3*t.arrowsize*t.arrowwidth||0,l=T+p,_=T-p,w=3*t.startarrowsize*t.arrowwidth||0,A=w+p,M=w-p,g;if(h===s){var b=x.findExtremes(r,[r.r2c(n)],{ppadplus:l,ppadminus:_}),d=x.findExtremes(r,[r.r2c(i)],{ppadplus:Math.max(c,A),ppadminus:Math.max(m,M)});g={min:[b.min[0],d.min[0]],max:[b.max[0],d.max[0]]}}else A=i?A+i:A,M=i?M-i:M,g=x.findExtremes(r,[r.r2c(n)],{ppadplus:Math.max(c,l,A),ppadminus:Math.max(m,_,M)});t._extremes[o]=g}}}),a9=Xe({"src/components/annotations/convert_coords.js"(Z,G){"use strict";var v=rs(),x=h2();G.exports=function(E,e,t,r){e=e||{};var o=t==="log"&&e.type==="linear",a=t==="linear"&&e.type==="log";if(!(o||a))return;var n=E._fullLayout.annotations,i=e._id.charAt(0),s,h;function c(p){var T=s[p],l=null;o?l=x(T,e.range):l=Math.pow(10,T),v(l)||(l=null),r(h+p,l)}for(var m=0;m<n.length;m++)s=n[m],h="annotations["+m+"].",s[i+"ref"]===e._id&&c(i),s["a"+i+"ref"]===e._id&&c("a"+i)}}}),i9=Xe({"src/components/annotations/index.js"(Z,G){"use strict";var v=D2(),x=e9();G.exports={moduleType:"component",name:"annotations",layoutAttributes:$0(),supplyLayoutDefaults:t9(),includeBasePlot:D_()("annotations"),calcAutorange:r9(),draw:v.draw,drawOne:v.drawOne,drawRaw:v.drawRaw,hasClickToShow:x.hasClickToShow,onClick:x.onClick,convertCoords:a9()}}}),z2=Xe({"src/components/annotations3d/attributes.js"(Z,G){"use strict";var v=$0(),x=pc().overrideAll,S=zl().templatedArray;G.exports=x(S("annotation",{visible:v.visible,x:{valType:"any"},y:{valType:"any"},z:{valType:"any"},ax:{valType:"number"},ay:{valType:"number"},xanchor:v.xanchor,xshift:v.xshift,yanchor:v.yanchor,yshift:v.yshift,text:v.text,textangle:v.textangle,font:v.font,width:v.width,height:v.height,opacity:v.opacity,align:v.align,valign:v.valign,bgcolor:v.bgcolor,bordercolor:v.bordercolor,borderpad:v.borderpad,borderwidth:v.borderwidth,showarrow:v.showarrow,arrowcolor:v.arrowcolor,arrowhead:v.arrowhead,startarrowhead:v.startarrowhead,arrowside:v.arrowside,arrowsize:v.arrowsize,startarrowsize:v.startarrowsize,arrowwidth:v.arrowwidth,standoff:v.standoff,startstandoff:v.startstandoff,hovertext:v.hovertext,hoverlabel:v.hoverlabel,captureevents:v.captureevents}),"calc","from-root")}}),n9=Xe({"src/components/annotations3d/defaults.js"(Z,G){"use strict";var v=sa(),x=Go(),S=hp(),E=N5(),e=z2();G.exports=function(o,a,n){S(o,a,{name:"annotations",handleItemDefaults:t,fullLayout:n.fullLayout})};function t(r,o,a,n){function i(c,m){return v.coerce(r,o,e,c,m)}function s(c){var m=c+"axis",p={_fullLayout:{}};return p._fullLayout[m]=a[m],x.coercePosition(o,p,i,c,c,.5)}var h=i("visible");h&&(E(r,o,n.fullLayout,i),s("x"),s("y"),s("z"),v.noneOrAll(r,o,["x","y","z"]),o.xref="x",o.yref="y",o.zref="z",i("xanchor"),i("yanchor"),i("xshift"),i("yshift"),o.showarrow&&(o.axref="pixel",o.ayref="pixel",i("ax",-10),i("ay",-30),v.noneOrAll(r,o,["ax","ay"])))}}}),o9=Xe({"src/components/annotations3d/convert.js"(Z,G){"use strict";var v=sa(),x=Go();G.exports=function(e){for(var t=e.fullSceneLayout,r=t.annotations,o=0;o<r.length;o++)S(r[o],e);e.fullLayout._infolayer.selectAll(".annotation-"+e.id).remove()};function S(E,e){var t=e.fullSceneLayout,r=t.domain,o=e.fullLayout._size,a={pdata:null,type:"linear",autorange:!1,range:[-1/0,1/0]};E._xa={},v.extendFlat(E._xa,a),x.setConvert(E._xa),E._xa._offset=o.l+r.x[0]*o.w,E._xa.l2p=function(){return .5*(1+E._pdata[0]/E._pdata[3])*o.w*(r.x[1]-r.x[0])},E._ya={},v.extendFlat(E._ya,a),x.setConvert(E._ya),E._ya._offset=o.t+(1-r.y[1])*o.h,E._ya.l2p=function(){return .5*(1-E._pdata[1]/E._pdata[3])*o.h*(r.y[1]-r.y[0])}}}}),U5=Xe({"src/plots/gl3d/project.js"(Z,G){"use strict";function v(S,E){var e=[0,0,0,0],t,r;for(t=0;t<4;++t)for(r=0;r<4;++r)e[r]+=S[4*t+r]*E[t];return e}function x(S,E){var e=v(S.projection,v(S.view,v(S.model,[E[0],E[1],E[2],1])));return e}G.exports=x}}),s9=Xe({"src/components/annotations3d/draw.js"(Z,G){"use strict";var v=D2().drawRaw,x=U5(),S=["x","y","z"];G.exports=function(e){for(var t=e.fullSceneLayout,r=e.dataScale,o=t.annotations,a=0;a<o.length;a++){for(var n=o[a],i=!1,s=0;s<3;s++){var h=S[s],c=n[h],m=t[h+"axis"],p=m.r2fraction(c);if(p<0||p>1){i=!0;break}}i?e.fullLayout._infolayer.select(".annotation-"+e.id+'[data-index="'+a+'"]').remove():(n._pdata=x(e.glplot.cameraParams,[t.xaxis.r2l(n.x)*r[0],t.yaxis.r2l(n.y)*r[1],t.zaxis.r2l(n.z)*r[2]]),v(e.graphDiv,n,a,e.id,n._xa,n._ya))}}}}),l9=Xe({"src/components/annotations3d/index.js"(Z,G){"use strict";var v=so(),x=sa();G.exports={moduleType:"component",name:"annotations3d",schema:{subplots:{scene:{annotations:z2()}}},layoutAttributes:z2(),handleDefaults:n9(),includeBasePlot:S,convert:o9(),draw:s9()};function S(E,e){var t=v.subplotsRegistry.gl3d;if(t)for(var r=t.attrRegex,o=Object.keys(E),a=0;a<o.length;a++){var n=o[a];r.test(n)&&(E[n].annotations||[]).length&&(x.pushUnique(e._basePlotModules,t),x.pushUnique(e._subplots.gl3d,n))}}}}),j5=Xe({"src/components/shapes/attributes.js"(Z,G){"use strict";var v=lh(),x=tc(),S=af().line,E=Gh().dash,e=Qo().extendFlat,t=zl().templatedArray,r=R_(),o=ru(),a=$0(),{shapeTexttemplateAttrs:n,templatefallbackAttrs:i}=Jl(),s=v2();G.exports=t("shape",{visible:e({},o.visible,{editType:"calc+arraydraw"}),showlegend:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},legend:e({},o.legend,{editType:"calc+arraydraw"}),legendgroup:e({},o.legendgroup,{editType:"calc+arraydraw"}),legendgrouptitle:{text:e({},o.legendgrouptitle.text,{editType:"calc+arraydraw"}),font:x({editType:"calc+arraydraw"}),editType:"calc+arraydraw"},legendrank:e({},o.legendrank,{editType:"calc+arraydraw"}),legendwidth:e({},o.legendwidth,{editType:"calc+arraydraw"}),type:{valType:"enumerated",values:["circle","rect","path","line"],editType:"calc+arraydraw"},layer:{valType:"enumerated",values:["below","above","between"],dflt:"above",editType:"arraydraw"},xref:e({},a.xref,{arrayOk:!0}),xsizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw"},xanchor:{valType:"any",editType:"calc+arraydraw"},x0:{valType:"any",editType:"calc+arraydraw"},x1:{valType:"any",editType:"calc+arraydraw"},x0shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},x1shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},yref:e({},a.yref,{arrayOk:!0}),ysizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw"},yanchor:{valType:"any",editType:"calc+arraydraw"},y0:{valType:"any",editType:"calc+arraydraw"},y1:{valType:"any",editType:"calc+arraydraw"},y0shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},y1shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},path:{valType:"string",editType:"calc+arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},line:{color:e({},S.color,{editType:"arraydraw"}),width:e({},S.width,{editType:"calc+arraydraw"}),dash:e({},E,{editType:"arraydraw"}),editType:"calc+arraydraw"},fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},fillrule:{valType:"enumerated",values:["evenodd","nonzero"],dflt:"evenodd",editType:"arraydraw"},editable:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},label:{text:{valType:"string",dflt:"",editType:"arraydraw"},texttemplate:n({},{keys:Object.keys(s)}),texttemplatefallback:i({editType:"arraydraw"}),font:x({editType:"calc+arraydraw",colorEditType:"arraydraw"}),textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right","start","middle","end"],editType:"arraydraw"},textangle:{valType:"angle",dflt:"auto",editType:"calc+arraydraw"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto",editType:"calc+arraydraw"},yanchor:{valType:"enumerated",values:["top","middle","bottom"],editType:"calc+arraydraw"},padding:{valType:"number",dflt:3,min:0,editType:"arraydraw"},editType:"arraydraw"},editType:"arraydraw"})}}),u9=Xe({"src/components/shapes/defaults.js"(Z,G){"use strict";var v=sa(),x=Go(),S=hp(),E=j5(),e=a0();G.exports=function(a,n){S(a,n,{name:"shapes",handleItemDefaults:r})};function t(o,a){return o?"bottom":a.indexOf("top")!==-1?"top":a.indexOf("bottom")!==-1?"bottom":"middle"}function r(o,a,n){function i(y,f){return v.coerce(o,a,E,y,f)}a._isShape=!0;var s=i("visible");if(!s)return;var h=i("showlegend");h&&(i("legend"),i("legendwidth"),i("legendgroup"),i("legendgrouptitle.text"),v.coerceFont(i,"legendgrouptitle.font"),i("legendrank"));var c=i("path"),m=c?"path":"rect",p=i("type",m),T=p!=="path";T&&delete a.path,i("editable"),i("layer"),i("opacity"),i("fillcolor"),i("fillrule");var l=i("line.width");l&&(i("line.color"),i("line.dash"));var _=i("xsizemode"),w=i("ysizemode");let A=[.25,.75],M=[0,10];["x","y"].forEach(y=>{var f=y+"anchor",R=y==="x"?_:w,L={_fullLayout:n},z,F,N,O;let P=y+"ref",U=o[P];if(Array.isArray(U)&&U.length>0){let B=e.countDefiningCoords(p,c,y);O=x.coerceRefArray(o,a,L,y,void 0,"paper",B),a["_"+y+"refArray"]=!0}else O=x.coerceRef(o,a,L,y,void 0,"paper");if(Array.isArray(O))O.forEach(function(B){x.getRefType(B)==="range"&&(z=x.getFromId(L,B),z&&z._shapeIndices.indexOf(a._index)===-1&&z._shapeIndices.push(a._index))}),T&&[0,1].forEach(function(B){let X=O[B];x.getRefType(X)==="range"?(z=x.getFromId(L,X),F=e.shapePositionToRange(z),N=e.rangeToShapePosition(z),(z.type==="category"||z.type==="multicategory")&&i(y+B+"shift")):F=N=v.identity;let se=y+B,le=o[se];if(o[se]=F(o[se],!0),R==="pixel"?i(se,M[B]):x.coercePosition(a,L,i,X,se,A[B]),a[se]=N(a[se]),o[se]=le,B===0&&R==="pixel"){let fe=o[f];o[f]=F(o[f],!0),x.coercePosition(a,L,i,X,f,.25),a[f]=N(a[f]),o[f]=fe}});else{if(x.getRefType(O)==="range"?(z=x.getFromId(L,O),z._shapeIndices.push(a._index),N=e.rangeToShapePosition(z),F=e.shapePositionToRange(z),T&&(z.type==="category"||z.type==="multicategory")&&(i(y+"0shift"),i(y+"1shift"))):F=N=v.identity,T){let X=y+"0",$=y+"1",se=o[X],le=o[$];o[X]=F(o[X],!0),o[$]=F(o[$],!0),R==="pixel"?(i(X,M[0]),i($,M[1])):(x.coercePosition(a,L,i,O,X,A[0]),x.coercePosition(a,L,i,O,$,A[1])),a[X]=N(a[X]),a[$]=N(a[$]),o[X]=se,o[$]=le}if(R==="pixel"){let X=o[f];o[f]=F(o[f],!0),x.coercePosition(a,L,i,O,f,.25),a[f]=N(a[f]),o[f]=X}}}),T&&v.noneOrAll(o,a,["x0","x1","y0","y1"]);var g=p==="line",b,d;if(T&&(b=i("label.texttemplate"),i("label.texttemplatefallback")),b||(d=i("label.text")),d||b){i("label.textangle");var u=i("label.textposition",g?"middle":"middle center");i("label.xanchor"),i("label.yanchor",t(g,u)),i("label.padding"),v.coerceFont(i,"label.font",n.font)}}}}),c9=Xe({"src/components/shapes/draw_newshape/defaults.js"(Z,G){"use strict";var v=$n(),x=sa();function S(E,e){return E?"bottom":e.indexOf("top")!==-1?"top":e.indexOf("bottom")!==-1?"bottom":"middle"}G.exports=function(e,t,r){r("newshape.visible"),r("newshape.name"),r("newshape.showlegend"),r("newshape.legend"),r("newshape.legendwidth"),r("newshape.legendgroup"),r("newshape.legendgrouptitle.text"),x.coerceFont(r,"newshape.legendgrouptitle.font"),r("newshape.legendrank"),r("newshape.drawdirection"),r("newshape.layer"),r("newshape.fillcolor"),r("newshape.fillrule"),r("newshape.opacity");var o=r("newshape.line.width");if(o){var a=(e||{}).plot_bgcolor||"#FFF";r("newshape.line.color",v.contrast(a)),r("newshape.line.dash")}var n=e.dragmode==="drawline",i=r("newshape.label.text"),s=r("newshape.label.texttemplate");if(r("newshape.label.texttemplatefallback"),i||s){r("newshape.label.textangle");var h=r("newshape.label.textposition",n?"middle":"middle center");r("newshape.label.xanchor"),r("newshape.label.yanchor",S(n,h)),r("newshape.label.padding"),x.coerceFont(r,"newshape.label.font",t.font)}r("activeshape.fillcolor"),r("activeshape.opacity")}}}),f9=Xe({"src/components/shapes/calc_autorange.js"(Z,G){"use strict";var v=sa(),x=Go(),S=L_(),E=a0();G.exports=function(i){var s=i._fullLayout,h=v.filterVisible(s.shapes);if(!(!h.length||!i._fullData.length))for(var c=0;c<h.length;c++){var m=h[c];m._extremes={};var p,T,l=x.getRefType(m.xref),_=x.getRefType(m.yref);if(l==="array"){let w=e(i,m,"x");Object.entries(w).forEach(([A,M])=>{p=x.getFromId(i,A),m._extremes[p._id]=x.findExtremes(p,M,t(m))})}else m.xref!=="paper"&&l!=="domain"&&(p=x.getFromId(i,m.xref),T=a(p,m,S.paramIsX),T&&(m._extremes[p._id]=x.findExtremes(p,T,t(m))));if(_==="array"){let w=e(i,m,"y");Object.entries(w).forEach(([A,M])=>{p=x.getFromId(i,A),m._extremes[p._id]=x.findExtremes(p,M,r(m))})}else m.yref!=="paper"&&_!=="domain"&&(p=x.getFromId(i,m.yref),T=a(p,m,S.paramIsY),T&&(m._extremes[p._id]=x.findExtremes(p,T,r(m))))}};function e(n,i,s){let h=i[s+"ref"],c=s==="x"?S.paramIsX:S.paramIsY;function m(A,M){A==="paper"||x.getRefType(A)==="domain"||(p[A]||(p[A]=[]),p[A].push(M))}let p={};if(i.type==="path"&&i.path){let A=i.path.match(S.segmentRE)||[];for(var T=0,l=0;l<A.length;l++){let M=A[l],g=M.charAt(0),b=c[g].drawn;if(b===void 0)continue;let d=M.slice(1).match(S.paramRE);d&&d.length>b&&(m(h[T],d[b]),T++)}}else m(h[0],i[s+"0"]),m(h[1],i[s+"1"]);let _={};for(let A in p){let M=x.getFromId(n,A);if(M){var w=M.type==="category"||M.type==="multicategory"?M.r2c:M.d2c;M.type==="date"&&(w=E.decodeDate(w)),_[M._id]=p[A].map(w)}}return _}function t(n){return o(n.line.width,n.xsizemode,n.x0,n.x1,n.path,!1)}function r(n){return o(n.line.width,n.ysizemode,n.y0,n.y1,n.path,!0)}function o(n,i,s,h,c,m){var p=n/2,T=m;if(i==="pixel"){var l=c?E.extractPathCoords(c,m?S.paramIsY:S.paramIsX):[s,h],_=v.aggNums(Math.max,null,l),w=v.aggNums(Math.min,null,l),A=w<0?Math.abs(w)+p:p,M=_>0?_+p:p;return{ppad:p,ppadplus:T?A:M,ppadminus:T?M:A}}else return{ppad:p}}function a(n,i,s){var h=n._id.charAt(0)==="x"?"x":"y",c=n.type==="category"||n.type==="multicategory",m,p,T=0,l=0,_=c?n.r2c:n.d2c,w=i[h+"sizemode"]==="scaled";if(w?(m=i[h+"0"],p=i[h+"1"],c&&(T=i[h+"0shift"],l=i[h+"1shift"])):(m=i[h+"anchor"],p=i[h+"anchor"]),m!==void 0)return[_(m)+T,_(p)+l];if(i.path){var A=1/0,M=-1/0,g=i.path.match(S.segmentRE),b,d,u,y,f;for(n.type==="date"&&(_=E.decodeDate(_)),b=0;b<g.length;b++)d=g[b],u=s[d.charAt(0)].drawn,u!==void 0&&(y=g[b].slice(1).match(S.paramRE),!(!y||y.length<u)&&(f=_(y[u]),f<A&&(A=f),f>M&&(M=f)));if(M>=A)return[A,M]}}}}),h9=Xe({"src/components/shapes/index.js"(Z,G){"use strict";var v=E2();G.exports={moduleType:"component",name:"shapes",layoutAttributes:j5(),supplyLayoutDefaults:u9(),supplyDrawNewShapeDefaults:c9(),includeBasePlot:D_()("shapes"),calcAutorange:f9(),draw:v.draw,drawOne:v.drawOne}}}),q5=Xe({"src/components/images/attributes.js"(Z,G){"use strict";var v=lh(),x=zl().templatedArray,S=R_();G.exports=x("image",{visible:{valType:"boolean",dflt:!0,editType:"arraydraw"},source:{valType:"string",editType:"arraydraw"},layer:{valType:"enumerated",values:["below","above"],dflt:"above",editType:"arraydraw"},sizex:{valType:"number",dflt:0,editType:"arraydraw"},sizey:{valType:"number",dflt:0,editType:"arraydraw"},sizing:{valType:"enumerated",values:["fill","contain","stretch"],dflt:"contain",editType:"arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},x:{valType:"any",dflt:0,editType:"arraydraw"},y:{valType:"any",dflt:0,editType:"arraydraw"},xanchor:{valType:"enumerated",values:["left","center","right"],dflt:"left",editType:"arraydraw"},yanchor:{valType:"enumerated",values:["top","middle","bottom"],dflt:"top",editType:"arraydraw"},xref:{valType:"enumerated",values:["paper",v.idRegex.x.toString()],dflt:"paper",editType:"arraydraw"},yref:{valType:"enumerated",values:["paper",v.idRegex.y.toString()],dflt:"paper",editType:"arraydraw"},editType:"arraydraw"})}}),p9=Xe({"src/components/images/defaults.js"(Z,G){"use strict";var v=sa(),x=Go(),S=hp(),E=q5(),e="images";G.exports=function(o,a){var n={name:e,handleItemDefaults:t};S(o,a,n)};function t(r,o,a){function n(_,w){return v.coerce(r,o,E,_,w)}var i=n("source"),s=n("visible",!!i);if(!s)return o;n("layer"),n("xanchor"),n("yanchor"),n("sizex"),n("sizey"),n("sizing"),n("opacity");for(var h={_fullLayout:a},c=["x","y"],m=0;m<2;m++){var p=c[m],T=x.coerceRef(r,o,h,p,"paper",void 0);if(T!=="paper"){var l=x.getFromId(h,T);l._imgIndices.push(o._index)}x.coercePosition(o,h,n,T,p,0)}return o}}}),d9=Xe({"src/components/images/draw.js"(Z,G){"use strict";var v=Hn(),x=es(),S=Go(),E=ef(),e=vd();G.exports=function(r){var o=r._fullLayout,a=[],n={},i=[],s,h;for(h=0;h<o.images.length;h++){var c=o.images[h];if(c.visible)if(c.layer==="below"&&c.xref!=="paper"&&c.yref!=="paper"){s=E.ref2id(c.xref)+E.ref2id(c.yref);var m=o._plots[s];if(!m){i.push(c);continue}m.mainplot&&(s=m.mainplot.id),n[s]||(n[s]=[]),n[s].push(c)}else c.layer==="above"?a.push(c):i.push(c)}var p={x:{left:{sizing:"xMin",offset:0},center:{sizing:"xMid",offset:-1/2},right:{sizing:"xMax",offset:-1}},y:{top:{sizing:"YMin",offset:0},middle:{sizing:"YMid",offset:-1/2},bottom:{sizing:"YMax",offset:-1}}};function T(u){var y=v.select(this);if(this._imgSrc!==u.source)if(y.attr("xmlns",e.svg),!r._context.staticPlot||u.source&&u.source.slice(0,5)==="data:")y.attr("xlink:href",u.source),this._imgSrc=u.source;else{var f=new Promise(function(R){var L=new Image;this.img=L,L.setAttribute("crossOrigin","anonymous"),L.onerror=z,L.onload=function(){var F=document.createElement("canvas");F.width=this.width,F.height=this.height;var N=F.getContext("2d",{willReadFrequently:!0});N.drawImage(this,0,0);var O=F.toDataURL("image/png");y.attr("xlink:href",O),R()},y.on("error",z),L.src=u.source,this._imgSrc=u.source;function z(){y.remove(),R()}}.bind(this));r._promises.push(f)}}function l(u){var y=v.select(this),f=S.getFromId(r,u.xref),R=S.getFromId(r,u.yref),L=S.getRefType(u.xref)==="domain",z=S.getRefType(u.yref)==="domain",F=o._size,N,O;f!==void 0?N=typeof u.xref=="string"&&L?f._length*u.sizex:Math.abs(f.l2p(u.sizex)-f.l2p(0)):N=u.sizex*F.w,R!==void 0?O=typeof u.yref=="string"&&z?R._length*u.sizey:Math.abs(R.l2p(u.sizey)-R.l2p(0)):O=u.sizey*F.h;var P=N*p.x[u.xanchor].offset,U=O*p.y[u.yanchor].offset,B=p.x[u.xanchor].sizing+p.y[u.yanchor].sizing,X,$;switch(f!==void 0?X=typeof u.xref=="string"&&L?f._length*u.x+f._offset:f.r2p(u.x)+f._offset:X=u.x*F.w+F.l,X+=P,R!==void 0?$=typeof u.yref=="string"&&z?R._length*(1-u.y)+R._offset:R.r2p(u.y)+R._offset:$=F.h-u.y*F.h+F.t,$+=U,u.sizing){case"fill":B+=" slice";break;case"stretch":B="none";break}y.attr({x:X,y:$,width:N,height:O,preserveAspectRatio:B,opacity:u.opacity});var se=f&&S.getRefType(u.xref)!=="domain"?f._id:"",le=R&&S.getRefType(u.yref)!=="domain"?R._id:"",fe=se+le;x.setClipUrl(y,fe?"clip"+o._uid+fe:null,r)}function _(u){return[u.xref,u.x,u.sizex,u.yref,u.y,u.sizey].join("_")}function w(u,y){return u._index-y._index}var A=o._imageLowerLayer.selectAll("image").data(i,_),M=o._imageUpperLayer.selectAll("image").data(a,_);A.enter().append("image"),M.enter().append("image"),A.exit().remove(),M.exit().remove(),A.each(function(u){T.bind(this)(u),l.bind(this)(u)}),M.each(function(u){T.bind(this)(u),l.bind(this)(u)}),A.sort(w),M.sort(w);var g=Object.keys(o._plots);for(h=0;h<g.length;h++){s=g[h];var b=o._plots[s];if(b.imagelayer){var d=b.imagelayer.selectAll("image").data(n[s]||[],_);d.enter().append("image"),d.exit().remove(),d.each(function(u){T.bind(this)(u),l.bind(this)(u)}),d.sort(w)}}}}}),v9=Xe({"src/components/images/convert_coords.js"(Z,G){"use strict";var v=rs(),x=h2();G.exports=function(E,e,t,r){e=e||{};var o=t==="log"&&e.type==="linear",a=t==="linear"&&e.type==="log";if(o||a){for(var n=E._fullLayout.images,i=e._id.charAt(0),s,h,c=0;c<n.length;c++)if(s=n[c],h="images["+c+"].",s[i+"ref"]===e._id){var m=s[i],p=s["size"+i],T=null,l=null;if(o){T=x(m,e.range);var _=p/Math.pow(10,T)/2;l=2*Math.log(_+Math.sqrt(1+_*_))/Math.LN10}else T=Math.pow(10,m),l=T*(Math.pow(10,p/2)-Math.pow(10,-p/2));v(T)?v(l)||(l=null):(T=null,l=null),r(h+i,T),r(h+"size"+i,l)}}}}}),m9=Xe({"src/components/images/index.js"(Z,G){"use strict";G.exports={moduleType:"component",name:"images",layoutAttributes:q5(),supplyLayoutDefaults:p9(),includeBasePlot:D_()("images"),draw:d9(),convertCoords:v9()}}}),F2=Xe({"src/components/updatemenus/constants.js"(Z,G){"use strict";G.exports={name:"updatemenus",containerClassName:"updatemenu-container",headerGroupClassName:"updatemenu-header-group",headerClassName:"updatemenu-header",headerArrowClassName:"updatemenu-header-arrow",dropdownButtonGroupClassName:"updatemenu-dropdown-button-group",dropdownButtonClassName:"updatemenu-dropdown-button",buttonClassName:"updatemenu-button",itemRectClassName:"updatemenu-item-rect",itemTextClassName:"updatemenu-item-text",menuIndexAttrName:"updatemenu-active-index",autoMarginIdRoot:"updatemenu-",blankHeaderOpts:{label:" "},minWidth:30,minHeight:30,textPadX:24,arrowPadX:16,rx:2,ry:2,textOffsetX:12,textOffsetY:3,arrowOffsetX:4,gapButtonHeader:5,gapButton:2,activeColor:"#F4FAFF",hoverColor:"#F4FAFF",arrowSymbol:{left:"\u25C4",right:"\u25BA",up:"\u25B2",down:"\u25BC"}}}}),V5=Xe({"src/components/updatemenus/attributes.js"(Z,G){"use strict";var v=tc(),x=sh(),S=Qo().extendFlat,E=pc().overrideAll,e=m2(),t=zl().templatedArray,r=t("button",{visible:{valType:"boolean"},method:{valType:"enumerated",values:["restyle","relayout","animate","update","skip"],dflt:"restyle"},args:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},args2:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},label:{valType:"string",dflt:""},execute:{valType:"boolean",dflt:!0}});G.exports=E(t("updatemenu",{_arrayAttrRegexps:[/^updatemenus\[(0|[1-9][0-9]+)\]\.buttons/],visible:{valType:"boolean"},type:{valType:"enumerated",values:["dropdown","buttons"],dflt:"dropdown"},direction:{valType:"enumerated",values:["left","right","up","down"],dflt:"down"},active:{valType:"integer",min:-1,dflt:0},showactive:{valType:"boolean",dflt:!0},buttons:r,x:{valType:"number",min:-2,max:3,dflt:-.05},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"right"},y:{valType:"number",min:-2,max:3,dflt:1},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"top"},pad:S(e({editType:"arraydraw"}),{}),font:v({}),bgcolor:{valType:"color"},bordercolor:{valType:"color",dflt:x.borderLine},borderwidth:{valType:"number",min:0,dflt:1,editType:"arraydraw"}}),"arraydraw","from-root")}}),g9=Xe({"src/components/updatemenus/defaults.js"(Z,G){"use strict";var v=sa(),x=hp(),S=V5(),E=F2(),e=E.name,t=S.buttons;G.exports=function(n,i){var s={name:e,handleItemDefaults:r};x(n,i,s)};function r(a,n,i){function s(m,p){return v.coerce(a,n,S,m,p)}var h=x(a,n,{name:"buttons",handleItemDefaults:o}),c=s("visible",h.length>0);c&&(s("active"),s("direction"),s("type"),s("showactive"),s("x"),s("y"),v.noneOrAll(a,n,["x","y"]),s("xanchor"),s("yanchor"),s("pad.t"),s("pad.r"),s("pad.b"),s("pad.l"),v.coerceFont(s,"font",i.font),s("bgcolor",i.paper_bgcolor),s("bordercolor"),s("borderwidth"))}function o(a,n){function i(h,c){return v.coerce(a,n,t,h,c)}var s=i("visible",a.method==="skip"||Array.isArray(a.args));s&&(i("method"),i("args"),i("args2"),i("label"),i("execute"))}}}),y9=Xe({"src/components/updatemenus/scrollbox.js"(Z,G){"use strict";G.exports=e;var v=Hn(),x=$n(),S=es(),E=sa();function e(t,r,o){this.gd=t,this.container=r,this.id=o,this.position=null,this.translateX=null,this.translateY=null,this.hbar=null,this.vbar=null,this.bg=this.container.selectAll("rect.scrollbox-bg").data([0]),this.bg.exit().on(".drag",null).on("wheel",null).remove(),this.bg.enter().append("rect").classed("scrollbox-bg",!0).style("pointer-events","all").attr({opacity:0,x:0,y:0,width:0,height:0})}e.barWidth=2,e.barLength=20,e.barRadius=2,e.barPad=1,e.barColor="#808BA4",e.prototype.enable=function(r,o,a){var n=this.gd._fullLayout,i=n.width,s=n.height;this.position=r;var h=this.position.l,c=this.position.w,m=this.position.t,p=this.position.h,T=this.position.direction,l=T==="down",_=T==="left",w=T==="right",A=T==="up",M=c,g=p,b,d,u,y;!l&&!_&&!w&&!A&&(this.position.direction="down",l=!0);var f=l||A;f?(b=h,d=b+M,l?(u=m,y=Math.min(u+g,s),g=y-u):(y=m+g,u=Math.max(y-g,0),g=y-u)):(u=m,y=u+g,_?(d=h+M,b=Math.max(d-M,0),M=d-b):(b=h,d=Math.min(b+M,i),M=d-b)),this._box={l:b,t:u,w:M,h:g};var R=c>M,L=e.barLength+2*e.barPad,z=e.barWidth+2*e.barPad,F=h,N=m+p;N+z>s&&(N=s-z);var O=this.container.selectAll("rect.scrollbar-horizontal").data(R?[0]:[]);O.exit().on(".drag",null).remove(),O.enter().append("rect").classed("scrollbar-horizontal",!0).call(x.fill,e.barColor),R?(this.hbar=O.attr({rx:e.barRadius,ry:e.barRadius,x:F,y:N,width:L,height:z}),this._hbarXMin=F+L/2,this._hbarTranslateMax=M-L):(delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax);var P=p>g,U=e.barWidth+2*e.barPad,B=e.barLength+2*e.barPad,X=h+c,$=m;X+U>i&&(X=i-U);var se=this.container.selectAll("rect.scrollbar-vertical").data(P?[0]:[]);se.exit().on(".drag",null).remove(),se.enter().append("rect").classed("scrollbar-vertical",!0).call(x.fill,e.barColor),P?(this.vbar=se.attr({rx:e.barRadius,ry:e.barRadius,x:X,y:$,width:U,height:B}),this._vbarYMin=$+B/2,this._vbarTranslateMax=g-B):(delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax);var le=this.id,fe=b-.5,V=P?d+U+.5:d+.5,Y=u-.5,ee=R?y+z+.5:y+.5,q=n._topdefs.selectAll("#"+le).data(R||P?[0]:[]);if(q.exit().remove(),q.enter().append("clipPath").attr("id",le).append("rect"),R||P?(this._clipRect=q.select("rect").attr({x:Math.floor(fe),y:Math.floor(Y),width:Math.ceil(V)-Math.floor(fe),height:Math.ceil(ee)-Math.floor(Y)}),this.container.call(S.setClipUrl,le,this.gd),this.bg.attr({x:h,y:m,width:c,height:p})):(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(S.setClipUrl,null),delete this._clipRect),R||P){var oe=v.behavior.drag().on("dragstart",function(){v.event.sourceEvent.preventDefault()}).on("drag",this._onBoxDrag.bind(this));this.container.on("wheel",null).on("wheel",this._onBoxWheel.bind(this)).on(".drag",null).call(oe);var ae=v.behavior.drag().on("dragstart",function(){v.event.sourceEvent.preventDefault(),v.event.sourceEvent.stopPropagation()}).on("drag",this._onBarDrag.bind(this));R&&this.hbar.on(".drag",null).call(ae),P&&this.vbar.on(".drag",null).call(ae)}this.setTranslate(o,a)},e.prototype.disable=function(){(this.hbar||this.vbar)&&(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(S.setClipUrl,null),delete this._clipRect),this.hbar&&(this.hbar.on(".drag",null),this.hbar.remove(),delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax),this.vbar&&(this.vbar.on(".drag",null),this.vbar.remove(),delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax)},e.prototype._onBoxDrag=function(){var r=this.translateX,o=this.translateY;this.hbar&&(r-=v.event.dx),this.vbar&&(o-=v.event.dy),this.setTranslate(r,o)},e.prototype._onBoxWheel=function(){var r=this.translateX,o=this.translateY;this.hbar&&(r+=v.event.deltaY),this.vbar&&(o+=v.event.deltaY),this.setTranslate(r,o)},e.prototype._onBarDrag=function(){var r=this.translateX,o=this.translateY;if(this.hbar){var a=r+this._hbarXMin,n=a+this._hbarTranslateMax,i=E.constrain(v.event.x,a,n),s=(i-a)/(n-a),h=this.position.w-this._box.w;r=s*h}if(this.vbar){var c=o+this._vbarYMin,m=c+this._vbarTranslateMax,p=E.constrain(v.event.y,c,m),T=(p-c)/(m-c),l=this.position.h-this._box.h;o=T*l}this.setTranslate(r,o)},e.prototype.setTranslate=function(r,o){var a=this.position.w-this._box.w,n=this.position.h-this._box.h;if(r=E.constrain(r||0,0,a),o=E.constrain(o||0,0,n),this.translateX=r,this.translateY=o,this.container.call(S.setTranslate,this._box.l-this.position.l-r,this._box.t-this.position.t-o),this._clipRect&&this._clipRect.attr({x:Math.floor(this.position.l+r-.5),y:Math.floor(this.position.t+o-.5)}),this.hbar){var i=r/a;this.hbar.call(S.setTranslate,r+i*this._hbarTranslateMax,o)}if(this.vbar){var s=o/n;this.vbar.call(S.setTranslate,r,o+s*this._vbarTranslateMax)}}}}),_9=Xe({"src/components/updatemenus/draw.js"(Z,G){"use strict";var v=Hn(),x=bc(),S=$n(),E=es(),e=sa(),t=ou(),r=zl().arrayEditor,o=uh().LINE_SPACING,a=F2(),n=y9();G.exports=function(L){var z=L._fullLayout,F=e.filterVisible(z[a.name]);function N(le){x.autoMargin(L,u(le))}var O=z._menulayer.selectAll("g."+a.containerClassName).data(F.length>0?[0]:[]);if(O.enter().append("g").classed(a.containerClassName,!0).style("cursor","pointer"),O.exit().each(function(){v.select(this).selectAll("g."+a.headerGroupClassName).each(N)}).remove(),F.length!==0){var P=O.selectAll("g."+a.headerGroupClassName).data(F,i);P.enter().append("g").classed(a.headerGroupClassName,!0);for(var U=e.ensureSingle(O,"g",a.dropdownButtonGroupClassName,function(le){le.style("pointer-events","all")}),B=0;B<F.length;B++){var X=F[B];d(L,X)}var $="updatemenus"+z._uid,se=new n(L,U,$);P.enter().size()&&(U.node().parentNode.appendChild(U.node()),U.call(f)),P.exit().each(function(le){U.call(f),N(le)}).remove(),P.each(function(le){var fe=v.select(this),V=le.type==="dropdown"?U:null;x.manageCommandObserver(L,le,le.buttons,function(Y){c(L,le,le.buttons[Y.index],fe,V,se,Y.index,!0)}),le.type==="dropdown"?(m(L,fe,U,se,le),h(U,le)&&p(L,fe,U,se,le)):p(L,fe,null,null,le)})}};function i(R){return R._index}function s(R){return+R.attr(a.menuIndexAttrName)==-1}function h(R,L){return+R.attr(a.menuIndexAttrName)===L._index}function c(R,L,z,F,N,O,P,U){L.active=P,r(R.layout,a.name,L).applyUpdate("active",P),L.type==="buttons"?p(R,F,null,null,L):L.type==="dropdown"&&(N.attr(a.menuIndexAttrName,"-1"),m(R,F,N,O,L),U||p(R,F,N,O,L))}function m(R,L,z,F,N){var O=e.ensureSingle(L,"g",a.headerClassName,function(le){le.style("pointer-events","all")}),P=N._dims,U=N.active,B=N.buttons[U]||a.blankHeaderOpts,X={y:N.pad.t,yPad:0,x:N.pad.l,xPad:0,index:0},$={width:P.headerWidth,height:P.headerHeight};O.call(_,N,B,R).call(y,N,X,$);var se=e.ensureSingle(L,"text",a.headerArrowClassName,function(le){le.attr("text-anchor","end").call(E.font,N.font).text(a.arrowSymbol[N.direction])});se.attr({x:P.headerWidth-a.arrowOffsetX+N.pad.l,y:P.headerHeight/2+a.textOffsetY+N.pad.t}),O.on("click",function(){z.call(f,String(h(z,N)?-1:N._index)),p(R,L,z,F,N)}),O.on("mouseover",function(){O.call(g)}),O.on("mouseout",function(){O.call(b,N)}),E.setTranslate(L,P.lx,P.ly)}function p(R,L,z,F,N){z||(z=L,z.attr("pointer-events","all"));var O=!s(z)||N.type==="buttons"?N.buttons:[],P=N.type==="dropdown"?a.dropdownButtonClassName:a.buttonClassName,U=z.selectAll("g."+P).data(e.filterVisible(O)),B=U.enter().append("g").classed(P,!0),X=U.exit();N.type==="dropdown"?(B.attr("opacity","0").transition().attr("opacity","1"),X.transition().attr("opacity","0").remove()):X.remove();var $=0,se=0,le=N._dims,fe=["up","down"].indexOf(N.direction)!==-1;N.type==="dropdown"&&(fe?se=le.headerHeight+a.gapButtonHeader:$=le.headerWidth+a.gapButtonHeader),N.type==="dropdown"&&N.direction==="up"&&(se=-a.gapButtonHeader+a.gapButton-le.openHeight),N.type==="dropdown"&&N.direction==="left"&&($=-a.gapButtonHeader+a.gapButton-le.openWidth);var V={x:le.lx+$+N.pad.l,y:le.ly+se+N.pad.t,yPad:a.gapButton,xPad:a.gapButton,index:0},Y={l:V.x+N.borderwidth,t:V.y+N.borderwidth};U.each(function(ee,q){var oe=v.select(this);oe.call(_,N,ee,R).call(y,N,V),oe.on("click",function(){v.event.defaultPrevented||(ee.execute&&(ee.args2&&N.active===q?(c(R,N,ee,L,z,F,-1),x.executeAPICommand(R,ee.method,ee.args2)):(c(R,N,ee,L,z,F,q),x.executeAPICommand(R,ee.method,ee.args))),R.emit("plotly_buttonclicked",{menu:N,button:ee,active:N.active}))}),oe.on("mouseover",function(){oe.call(g)}),oe.on("mouseout",function(){oe.call(b,N),U.call(M,N)})}),U.call(M,N),fe?(Y.w=Math.max(le.openWidth,le.headerWidth),Y.h=V.y-Y.t):(Y.w=V.x-Y.l,Y.h=Math.max(le.openHeight,le.headerHeight)),Y.direction=N.direction,F&&(U.size()?T(R,L,z,F,N,Y):l(F))}function T(R,L,z,F,N,O){var P=N.direction,U=P==="up"||P==="down",B=N._dims,X=N.active,$,se,le;if(U)for(se=0,le=0;le<X;le++)se+=B.heights[le]+a.gapButton;else for($=0,le=0;le<X;le++)$+=B.widths[le]+a.gapButton;F.enable(O,$,se),F.hbar&&F.hbar.attr("opacity","0").transition().attr("opacity","1"),F.vbar&&F.vbar.attr("opacity","0").transition().attr("opacity","1")}function l(R){var L=!!R.hbar,z=!!R.vbar;L&&R.hbar.transition().attr("opacity","0").each("end",function(){L=!1,z||R.disable()}),z&&R.vbar.transition().attr("opacity","0").each("end",function(){z=!1,L||R.disable()})}function _(R,L,z,F){R.call(w,L).call(A,L,z,F)}function w(R,L){var z=e.ensureSingle(R,"rect",a.itemRectClassName,function(F){F.attr({rx:a.rx,ry:a.ry,"shape-rendering":"crispEdges"})});z.call(S.stroke,L.bordercolor).call(S.fill,L.bgcolor).style("stroke-width",L.borderwidth+"px")}function A(R,L,z,F){var N=e.ensureSingle(R,"text",a.itemTextClassName,function(U){U.attr({"text-anchor":"start","data-notex":1})}),O=z.label,P=F._fullLayout._meta;P&&(O=e.templateString(O,P)),N.call(E.font,L.font).text(O).call(t.convertToTspans,F)}function M(R,L){var z=L.active;R.each(function(F,N){var O=v.select(this);N===z&&L.showactive&&O.select("rect."+a.itemRectClassName).call(S.fill,a.activeColor)})}function g(R){R.select("rect."+a.itemRectClassName).call(S.fill,a.hoverColor)}function b(R,L){R.select("rect."+a.itemRectClassName).call(S.fill,L.bgcolor)}function d(R,L){var z=L._dims={width1:0,height1:0,heights:[],widths:[],totalWidth:0,totalHeight:0,openWidth:0,openHeight:0,lx:0,ly:0},F=E.tester.selectAll("g."+a.dropdownButtonClassName).data(e.filterVisible(L.buttons));F.enter().append("g").classed(a.dropdownButtonClassName,!0);var N=["up","down"].indexOf(L.direction)!==-1;F.each(function($,se){var le=v.select(this);le.call(_,L,$,R);var fe=le.select("."+a.itemTextClassName),V=fe.node()&&E.bBox(fe.node()).width,Y=Math.max(V+a.textPadX,a.minWidth),ee=L.font.size*o,q=t.lineCount(fe),oe=Math.max(ee*q,a.minHeight)+a.textOffsetY;oe=Math.ceil(oe),Y=Math.ceil(Y),z.widths[se]=Y,z.heights[se]=oe,z.height1=Math.max(z.height1,oe),z.width1=Math.max(z.width1,Y),N?(z.totalWidth=Math.max(z.totalWidth,Y),z.openWidth=z.totalWidth,z.totalHeight+=oe+a.gapButton,z.openHeight+=oe+a.gapButton):(z.totalWidth+=Y+a.gapButton,z.openWidth+=Y+a.gapButton,z.totalHeight=Math.max(z.totalHeight,oe),z.openHeight=z.totalHeight)}),N?z.totalHeight-=a.gapButton:z.totalWidth-=a.gapButton,z.headerWidth=z.width1+a.arrowPadX,z.headerHeight=z.height1,L.type==="dropdown"&&(N?(z.width1+=a.arrowPadX,z.totalHeight=z.height1):z.totalWidth=z.width1,z.totalWidth+=a.arrowPadX),F.remove();var O=z.totalWidth+L.pad.l+L.pad.r,P=z.totalHeight+L.pad.t+L.pad.b,U=R._fullLayout._size;z.lx=U.l+U.w*L.x,z.ly=U.t+U.h*(1-L.y);var B="left";e.isRightAnchor(L)&&(z.lx-=O,B="right"),e.isCenterAnchor(L)&&(z.lx-=O/2,B="center");var X="top";e.isBottomAnchor(L)&&(z.ly-=P,X="bottom"),e.isMiddleAnchor(L)&&(z.ly-=P/2,X="middle"),z.totalWidth=Math.ceil(z.totalWidth),z.totalHeight=Math.ceil(z.totalHeight),z.lx=Math.round(z.lx),z.ly=Math.round(z.ly),x.autoMargin(R,u(L),{x:L.x,y:L.y,l:O*({right:1,center:.5}[B]||0),r:O*({left:1,center:.5}[B]||0),b:P*({top:1,middle:.5}[X]||0),t:P*({bottom:1,middle:.5}[X]||0)})}function u(R){return a.autoMarginIdRoot+R._index}function y(R,L,z,F){F=F||{};var N=R.select("."+a.itemRectClassName),O=R.select("."+a.itemTextClassName),P=L.borderwidth,U=z.index,B=L._dims;E.setTranslate(R,P+z.x,P+z.y);var X=["up","down"].indexOf(L.direction)!==-1,$=F.height||(X?B.heights[U]:B.height1);N.attr({x:0,y:0,width:F.width||(X?B.width1:B.widths[U]),height:$});var se=L.font.size*o,le=t.lineCount(O),fe=(le-1)*se/2;t.positionText(O,a.textOffsetX,$/2-fe+a.textOffsetY),X?z.y+=B.heights[U]+z.yPad:z.x+=B.widths[U]+z.xPad,z.index++}function f(R,L){R.attr(a.menuIndexAttrName,L||"-1").selectAll("g."+a.dropdownButtonClassName).remove()}}}),x9=Xe({"src/components/updatemenus/index.js"(Z,G){"use strict";var v=F2();G.exports={moduleType:"component",name:v.name,layoutAttributes:V5(),supplyLayoutDefaults:g9(),draw:_9()}}}),O_=Xe({"src/components/sliders/constants.js"(Z,G){"use strict";G.exports={name:"sliders",containerClassName:"slider-container",groupClassName:"slider-group",inputAreaClass:"slider-input-area",railRectClass:"slider-rail-rect",railTouchRectClass:"slider-rail-touch-rect",gripRectClass:"slider-grip-rect",tickRectClass:"slider-tick-rect",inputProxyClass:"slider-input-proxy",labelsClass:"slider-labels",labelGroupClass:"slider-label-group",labelClass:"slider-label",currentValueClass:"slider-current-value",railHeight:5,menuIndexAttrName:"slider-active-index",autoMarginIdRoot:"slider-",minWidth:30,minHeight:30,textPadX:40,arrowOffsetX:4,railRadius:2,railWidth:5,railBorder:4,railBorderWidth:1,railBorderColor:"#bec8d9",railBgColor:"#f8fafc",railInset:8,stepInset:10,gripRadius:10,gripWidth:20,gripHeight:20,gripBorder:20,gripBorderWidth:1,gripBorderColor:"#bec8d9",gripBgColor:"#f6f8fa",gripBgActiveColor:"#dbdde0",labelPadding:8,labelOffset:0,tickWidth:1,tickColor:"#333",tickOffset:25,tickLength:7,minorTickOffset:25,minorTickColor:"#333",minorTickLength:4,currentValuePadding:8,currentValueInset:0}}}),G5=Xe({"src/components/sliders/attributes.js"(Z,G){"use strict";var v=tc(),x=m2(),S=Qo().extendDeepAll,E=pc().overrideAll,e=A_(),t=zl().templatedArray,r=O_(),o=t("step",{visible:{valType:"boolean",dflt:!0},method:{valType:"enumerated",values:["restyle","relayout","animate","update","skip"],dflt:"restyle"},args:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},label:{valType:"string"},value:{valType:"string"},execute:{valType:"boolean",dflt:!0}});G.exports=E(t("slider",{visible:{valType:"boolean",dflt:!0},active:{valType:"number",min:0,dflt:0},steps:o,lenmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"fraction"},len:{valType:"number",min:0,dflt:1},x:{valType:"number",min:-2,max:3,dflt:0},pad:S(x({editType:"arraydraw"}),{},{t:{dflt:20}}),xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left"},y:{valType:"number",min:-2,max:3,dflt:0},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"top"},transition:{duration:{valType:"number",min:0,dflt:150},easing:{valType:"enumerated",values:e.transition.easing.values,dflt:"cubic-in-out"}},currentvalue:{visible:{valType:"boolean",dflt:!0},xanchor:{valType:"enumerated",values:["left","center","right"],dflt:"left"},offset:{valType:"number",dflt:10},prefix:{valType:"string"},suffix:{valType:"string"},font:v({})},font:v({}),activebgcolor:{valType:"color",dflt:r.gripBgActiveColor},bgcolor:{valType:"color",dflt:r.railBgColor},bordercolor:{valType:"color",dflt:r.railBorderColor},borderwidth:{valType:"number",min:0,dflt:r.railBorderWidth},ticklen:{valType:"number",min:0,dflt:r.tickLength},tickcolor:{valType:"color",dflt:r.tickColor},tickwidth:{valType:"number",min:0,dflt:1},minorticklen:{valType:"number",min:0,dflt:r.minorTickLength}}),"arraydraw","from-root")}}),b9=Xe({"src/components/sliders/defaults.js"(Z,G){"use strict";var v=sa(),x=hp(),S=G5(),E=O_(),e=E.name,t=S.steps;G.exports=function(n,i){x(n,i,{name:e,handleItemDefaults:r})};function r(a,n,i){function s(w,A){return v.coerce(a,n,S,w,A)}for(var h=x(a,n,{name:"steps",handleItemDefaults:o}),c=0,m=0;m<h.length;m++)h[m].visible&&c++;var p;if(c<2?p=n.visible=!1:p=s("visible"),!!p){n._stepCount=c;var T=n._visibleSteps=v.filterVisible(h),l=s("active");(h[l]||{}).visible||(n.active=T[0]._index),s("x"),s("y"),v.noneOrAll(a,n,["x","y"]),s("xanchor"),s("yanchor"),s("len"),s("lenmode"),s("pad.t"),s("pad.r"),s("pad.b"),s("pad.l"),v.coerceFont(s,"font",i.font);var _=s("currentvalue.visible");_&&(s("currentvalue.xanchor"),s("currentvalue.prefix"),s("currentvalue.suffix"),s("currentvalue.offset"),v.coerceFont(s,"currentvalue.font",n.font)),s("transition.duration"),s("transition.easing"),s("bgcolor"),s("activebgcolor"),s("bordercolor"),s("borderwidth"),s("ticklen"),s("tickwidth"),s("tickcolor"),s("minorticklen")}}function o(a,n){function i(c,m){return v.coerce(a,n,t,c,m)}var s;if(a.method!=="skip"&&!Array.isArray(a.args)?s=n.visible=!1:s=i("visible"),s){i("method"),i("args");var h=i("label","step-"+n._index);i("value",h),i("execute")}}}}),w9=Xe({"src/components/sliders/draw.js"(Z,G){"use strict";var v=Hn(),x=bc(),S=$n(),E=es(),e=sa(),t=e.strTranslate,r=ou(),o=zl().arrayEditor,a=O_(),n=uh(),i=n.LINE_SPACING,s=n.FROM_TL,h=n.FROM_BR;G.exports=function(O){var P=O._context.staticPlot,U=O._fullLayout,B=m(U,O),X=U._infolayer.selectAll("g."+a.containerClassName).data(B.length>0?[0]:[]);X.enter().append("g").classed(a.containerClassName,!0).style("cursor",P?null:"ew-resize");function $(V){V._commandObserver&&(V._commandObserver.remove(),delete V._commandObserver),x.autoMargin(O,c(V))}if(X.exit().each(function(){v.select(this).selectAll("g."+a.groupClassName).each($)}).remove(),B.length!==0){var se=X.selectAll("g."+a.groupClassName).data(B,p);se.enter().append("g").classed(a.groupClassName,!0),se.exit().each($).remove();for(var le=0;le<B.length;le++){var fe=B[le];T(O,fe)}se.each(function(V){var Y=v.select(this);y(V),x.manageCommandObserver(O,V,V._visibleSteps,function(ee){var q=Y.data()[0];q.active!==ee.index&&(q._dragging||b(O,Y,q,ee.index,!1,!0))}),l(O,v.select(this),V)})}};function c(N){return a.autoMarginIdRoot+N._index}function m(N,O){for(var P=N[a.name],U=[],B=0;B<P.length;B++){var X=P[B];X.visible&&(X._gd=O,U.push(X))}return U}function p(N){return N._index}function T(N,O){var P=E.tester.selectAll("g."+a.labelGroupClass).data(O._visibleSteps);P.enter().append("g").classed(a.labelGroupClass,!0);var U=0,B=0;P.each(function(oe){var ae=v.select(this),j=A(ae,{step:oe},O),Q=j.node();if(Q){var re=E.bBox(Q);B=Math.max(B,re.height),U=Math.max(U,re.width)}}),P.remove();var X=O._dims={};X.inputAreaWidth=Math.max(a.railWidth,a.gripHeight);var $=N._fullLayout._size;X.lx=$.l+$.w*O.x,X.ly=$.t+$.h*(1-O.y),O.lenmode==="fraction"?X.outerLength=Math.round($.w*O.len):X.outerLength=O.len,X.inputAreaStart=0,X.inputAreaLength=Math.round(X.outerLength-O.pad.l-O.pad.r);var se=X.inputAreaLength-2*a.stepInset,le=se/(O._stepCount-1),fe=U+a.labelPadding;if(X.labelStride=Math.max(1,Math.ceil(fe/le)),X.labelHeight=B,X.currentValueMaxWidth=0,X.currentValueHeight=0,X.currentValueTotalHeight=0,X.currentValueMaxLines=1,O.currentvalue.visible){var V=E.tester.append("g");P.each(function(oe){var ae=_(V,O,oe.label),j=ae.node()&&E.bBox(ae.node())||{width:0,height:0},Q=r.lineCount(ae);X.currentValueMaxWidth=Math.max(X.currentValueMaxWidth,Math.ceil(j.width)),X.currentValueHeight=Math.max(X.currentValueHeight,Math.ceil(j.height)),X.currentValueMaxLines=Math.max(X.currentValueMaxLines,Q)}),X.currentValueTotalHeight=X.currentValueHeight+O.currentvalue.offset,V.remove()}X.height=X.currentValueTotalHeight+a.tickOffset+O.ticklen+a.labelOffset+X.labelHeight+O.pad.t+O.pad.b;var Y="left";e.isRightAnchor(O)&&(X.lx-=X.outerLength,Y="right"),e.isCenterAnchor(O)&&(X.lx-=X.outerLength/2,Y="center");var ee="top";e.isBottomAnchor(O)&&(X.ly-=X.height,ee="bottom"),e.isMiddleAnchor(O)&&(X.ly-=X.height/2,ee="middle"),X.outerLength=Math.ceil(X.outerLength),X.height=Math.ceil(X.height),X.lx=Math.round(X.lx),X.ly=Math.round(X.ly);var q={y:O.y,b:X.height*h[ee],t:X.height*s[ee]};O.lenmode==="fraction"?(q.l=0,q.xl=O.x-O.len*s[Y],q.r=0,q.xr=O.x+O.len*h[Y]):(q.x=O.x,q.l=X.outerLength*s[Y],q.r=X.outerLength*h[Y]),x.autoMargin(N,c(O),q)}function l(N,O,P){(P.steps[P.active]||{}).visible||(P.active=P._visibleSteps[0]._index),O.call(_,P).call(F,P).call(M,P).call(u,P).call(z,N,P).call(w,N,P);var U=P._dims;E.setTranslate(O,U.lx+P.pad.l,U.ly+P.pad.t),O.call(f,P,!1),O.call(_,P)}function _(N,O,P){if(O.currentvalue.visible){var U=O._dims,B,X;switch(O.currentvalue.xanchor){case"right":B=U.inputAreaLength-a.currentValueInset-U.currentValueMaxWidth,X="left";break;case"center":B=U.inputAreaLength*.5,X="middle";break;default:B=a.currentValueInset,X="left"}var $=e.ensureSingle(N,"text",a.labelClass,function(ee){ee.attr({"text-anchor":X,"data-notex":1})}),se=O.currentvalue.prefix?O.currentvalue.prefix:"";if(typeof P=="string")se+=P;else{var le=O.steps[O.active].label,fe=O._gd._fullLayout._meta;fe&&(le=e.templateString(le,fe)),se+=le}O.currentvalue.suffix&&(se+=O.currentvalue.suffix),$.call(E.font,O.currentvalue.font).text(se).call(r.convertToTspans,O._gd);var V=r.lineCount($),Y=(U.currentValueMaxLines+1-V)*O.currentvalue.font.size*i;return r.positionText($,B,Y),$}}function w(N,O,P){var U=e.ensureSingle(N,"rect",a.gripRectClass,function(B){B.call(d,O,N,P).style("pointer-events","all")});U.attr({width:a.gripWidth,height:a.gripHeight,rx:a.gripRadius,ry:a.gripRadius}).call(S.stroke,P.bordercolor).call(S.fill,P.bgcolor).style("stroke-width",P.borderwidth+"px")}function A(N,O,P){var U=e.ensureSingle(N,"text",a.labelClass,function($){$.attr({"text-anchor":"middle","data-notex":1})}),B=O.step.label,X=P._gd._fullLayout._meta;return X&&(B=e.templateString(B,X)),U.call(E.font,P.font).text(B).call(r.convertToTspans,P._gd),U}function M(N,O){var P=e.ensureSingle(N,"g",a.labelsClass),U=O._dims,B=P.selectAll("g."+a.labelGroupClass).data(U.labelSteps);B.enter().append("g").classed(a.labelGroupClass,!0),B.exit().remove(),B.each(function(X){var $=v.select(this);$.call(A,X,O),E.setTranslate($,R(O,X.fraction),a.tickOffset+O.ticklen+O.font.size*i+a.labelOffset+U.currentValueTotalHeight)})}function g(N,O,P,U,B){var X=Math.round(U*(P._stepCount-1)),$=P._visibleSteps[X]._index;$!==P.active&&b(N,O,P,$,!0,B)}function b(N,O,P,U,B,X){var $=P.active;P.active=U,o(N.layout,a.name,P).applyUpdate("active",U);var se=P.steps[P.active];O.call(f,P,X),O.call(_,P),N.emit("plotly_sliderchange",{slider:P,step:P.steps[P.active],interaction:B,previousActive:$}),se&&se.method&&B&&(O._nextMethod?(O._nextMethod.step=se,O._nextMethod.doCallback=B,O._nextMethod.doTransition=X):(O._nextMethod={step:se,doCallback:B,doTransition:X},O._nextMethodRaf=window.requestAnimationFrame(function(){var le=O._nextMethod.step;le.method&&(le.execute&&x.executeAPICommand(N,le.method,le.args),O._nextMethod=null,O._nextMethodRaf=null)})))}function d(N,O,P){if(O._context.staticPlot)return;var U=P.node(),B=v.select(O);function X(){return P.data()[0]}function $(){var se=X();O.emit("plotly_sliderstart",{slider:se});var le=P.select("."+a.gripRectClass);v.event.stopPropagation(),v.event.preventDefault(),le.call(S.fill,se.activebgcolor);var fe=L(se,v.mouse(U)[0]);g(O,P,se,fe,!0),se._dragging=!0;function V(){var ee=X(),q=L(ee,v.mouse(U)[0]);g(O,P,ee,q,!1)}B.on("mousemove",V),B.on("touchmove",V);function Y(){var ee=X();ee._dragging=!1,le.call(S.fill,ee.bgcolor),B.on("mouseup",null),B.on("mousemove",null),B.on("touchend",null),B.on("touchmove",null),O.emit("plotly_sliderend",{slider:ee,step:ee.steps[ee.active]})}B.on("mouseup",Y),B.on("touchend",Y)}N.on("mousedown",$),N.on("touchstart",$)}function u(N,O){var P=N.selectAll("rect."+a.tickRectClass).data(O._visibleSteps),U=O._dims;P.enter().append("rect").classed(a.tickRectClass,!0),P.exit().remove(),P.attr({width:O.tickwidth+"px","shape-rendering":"crispEdges"}),P.each(function(B,X){var $=X%U.labelStride===0,se=v.select(this);se.attr({height:$?O.ticklen:O.minorticklen}).call(S.fill,O.tickcolor),E.setTranslate(se,R(O,X/(O._stepCount-1))-.5*O.tickwidth,($?a.tickOffset:a.minorTickOffset)+U.currentValueTotalHeight)})}function y(N){var O=N._dims;O.labelSteps=[];for(var P=N._stepCount,U=0;U<P;U+=O.labelStride)O.labelSteps.push({fraction:U/(P-1),step:N._visibleSteps[U]})}function f(N,O,P){for(var U=N.select("rect."+a.gripRectClass),B=0,X=0;X<O._stepCount;X++)if(O._visibleSteps[X]._index===O.active){B=X;break}var $=R(O,B/(O._stepCount-1));if(!O._invokingCommand){var se=U;P&&O.transition.duration>0&&(se=se.transition().duration(O.transition.duration).ease(O.transition.easing)),se.attr("transform",t($-a.gripWidth*.5,O._dims.currentValueTotalHeight))}}function R(N,O){var P=N._dims;return P.inputAreaStart+a.stepInset+(P.inputAreaLength-2*a.stepInset)*Math.min(1,Math.max(0,O))}function L(N,O){var P=N._dims;return Math.min(1,Math.max(0,(O-a.stepInset-P.inputAreaStart)/(P.inputAreaLength-2*a.stepInset-2*P.inputAreaStart)))}function z(N,O,P){var U=P._dims,B=e.ensureSingle(N,"rect",a.railTouchRectClass,function(X){X.call(d,O,N,P).style("pointer-events","all")});B.attr({width:U.inputAreaLength,height:Math.max(U.inputAreaWidth,a.tickOffset+P.ticklen+U.labelHeight)}).call(S.fill,P.bgcolor).attr("opacity",0),E.setTranslate(B,0,U.currentValueTotalHeight)}function F(N,O){var P=O._dims,U=P.inputAreaLength-a.railInset*2,B=e.ensureSingle(N,"rect",a.railRectClass);B.attr({width:U,height:a.railWidth,rx:a.railRadius,ry:a.railRadius,"shape-rendering":"crispEdges"}).call(S.stroke,O.bordercolor).call(S.fill,O.bgcolor).style("stroke-width",O.borderwidth+"px"),E.setTranslate(B,a.railInset,(P.inputAreaWidth-a.railWidth)*.5+P.currentValueTotalHeight)}}}),T9=Xe({"src/components/sliders/index.js"(Z,G){"use strict";var v=O_();G.exports={moduleType:"component",name:v.name,layoutAttributes:G5(),supplyLayoutDefaults:b9(),draw:w9()}}}),O2=Xe({"src/components/rangeslider/attributes.js"(Z,G){"use strict";var v=sh();G.exports={bgcolor:{valType:"color",dflt:v.background,editType:"plot"},bordercolor:{valType:"color",dflt:v.defaultLine,editType:"plot"},borderwidth:{valType:"integer",dflt:0,min:0,editType:"plot"},autorange:{valType:"boolean",dflt:!0,editType:"calc",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},range:{valType:"info_array",items:[{valType:"any",editType:"calc",impliedEdits:{"^autorange":!1}},{valType:"any",editType:"calc",impliedEdits:{"^autorange":!1}}],editType:"calc",impliedEdits:{autorange:!1}},thickness:{valType:"number",dflt:.15,min:0,max:1,editType:"plot"},visible:{valType:"boolean",dflt:!0,editType:"calc"},editType:"calc"}}}),H5=Xe({"src/components/rangeslider/oppaxis_attributes.js"(Z,G){"use strict";G.exports={_isSubplotObj:!0,rangemode:{valType:"enumerated",values:["auto","fixed","match"],dflt:"match",editType:"calc"},range:{valType:"info_array",items:[{valType:"any",editType:"plot"},{valType:"any",editType:"plot"}],editType:"plot"},editType:"calc"}}}),B2=Xe({"src/components/rangeslider/constants.js"(Z,G){"use strict";G.exports={name:"rangeslider",containerClassName:"rangeslider-container",bgClassName:"rangeslider-bg",rangePlotClassName:"rangeslider-rangeplot",maskMinClassName:"rangeslider-mask-min",maskMaxClassName:"rangeslider-mask-max",slideBoxClassName:"rangeslider-slidebox",grabberMinClassName:"rangeslider-grabber-min",grabAreaMinClassName:"rangeslider-grabarea-min",handleMinClassName:"rangeslider-handle-min",grabberMaxClassName:"rangeslider-grabber-max",grabAreaMaxClassName:"rangeslider-grabarea-max",handleMaxClassName:"rangeslider-handle-max",maskMinOppAxisClassName:"rangeslider-mask-min-opp-axis",maskMaxOppAxisClassName:"rangeslider-mask-max-opp-axis",maskColor:"rgba(0,0,0,0.4)",maskOppAxisColor:"rgba(0,0,0,0.2)",slideBoxFill:"transparent",slideBoxCursor:"ew-resize",grabAreaFill:"transparent",grabAreaCursor:"col-resize",grabAreaWidth:10,handleWidth:4,handleRadius:1,handleStrokeWidth:1,extraPad:15}}}),A9=Xe({"src/components/rangeslider/helpers.js"(Z){"use strict";var G=ef(),v=ou(),x=B2(),S=uh().LINE_SPACING,E=x.name;function e(t){var r=t&&t[E];return r&&r.visible}Z.isVisible=e,Z.makeData=function(t){for(var r=G.list({_fullLayout:t},"x",!0),o=t.margin,a=[],n=0;n<r.length;n++){var i=r[n];if(e(i)){a.push(i);var s=i[E];s._id=E+i._id,s._height=(t.height-o.b-o.t)*s.thickness,s._offsetShift=Math.floor(s.borderwidth/2)}}t._rangeSliderData=a},Z.autoMarginOpts=function(t,r){var o=t._fullLayout,a=r[E],n=r._id.charAt(0),i=0,s=0;if(r.side==="bottom"&&(i=r._depth,r.title.text!==o._dfltTitle[n])){s=1.5*r.title.font.size+10+a._offsetShift;var h=(r.title.text.match(v.BR_TAG_ALL)||[]).length;s+=h*r.title.font.size*S}return{x:0,y:r._counterDomainMin,l:0,r:0,t:0,b:a._height+i+Math.max(o.margin.b,s),pad:x.extraPad+a._offsetShift*2}}}}),S9=Xe({"src/components/rangeslider/defaults.js"(Z,G){"use strict";var v=sa(),x=zl(),S=ef(),E=O2(),e=H5();G.exports=function(r,o,a){var n=r[a],i=o[a];if(!(n.rangeslider||o._requestRangeslider[i._id]))return;v.isPlainObject(n.rangeslider)||(n.rangeslider={});var s=n.rangeslider,h=x.newContainer(i,"rangeslider");function c(y,f){return v.coerce(s,h,E,y,f)}var m,p;function T(y,f){return v.coerce(m,p,e,y,f)}var l=c("visible");if(l){c("bgcolor",o.plot_bgcolor),c("bordercolor"),c("borderwidth"),c("thickness"),c("autorange",!i.isValidRange(s.range)),c("range");var _=o._subplots;if(_)for(var w=_.cartesian.filter(function(y){return y.slice(0,Math.max(0,y.indexOf("y")))===S.name2id(a)}).map(function(y){return y.slice(y.indexOf("y"),y.length)}),A=v.simpleMap(w,S.id2name),M=0;M<A.length;M++){var g=A[M];m=s[g]||{},p=x.newContainer(h,g,"yaxis");var b=o[g],d;m.range&&b.isValidRange(m.range)&&(d="fixed");var u=T("rangemode",d);u!=="match"&&T("range",b.range.slice())}h._input=s}}}}),M9=Xe({"src/components/rangeslider/calc_autorange.js"(Z,G){"use strict";var v=ef().list,x=Yd().getAutoRange,S=B2();G.exports=function(e){for(var t=v(e,"x",!0),r=0;r<t.length;r++){var o=t[r],a=o[S.name];a&&a.visible&&a.autorange&&(a._input.autorange=!0,a._input.range=a.range=x(e,o))}}}}),E9=Xe({"src/components/rangeslider/draw.js"(Z,G){"use strict";var v=Hn(),x=so(),S=bc(),E=sa(),e=E.strTranslate,t=es(),r=$n(),o=K0(),a=Kf(),n=ef(),i=Ap(),s=Kd(),h=B2();G.exports=function(d){for(var u=d._fullLayout,y=u._rangeSliderData,f=0;f<y.length;f++){var R=y[f][h.name];R._clipId=R._id+"-"+u._uid}function L(F){return F._name}var z=u._infolayer.selectAll("g."+h.containerClassName).data(y,L);z.exit().each(function(F){var N=F[h.name];u._topdefs.select("#"+N._clipId).remove()}).remove(),y.length!==0&&(z.enter().append("g").classed(h.containerClassName,!0).attr("pointer-events","all"),z.each(function(F){var N=v.select(this),O=F[h.name],P=u[n.id2name(F.anchor)],U=O[n.id2name(F.anchor)];if(O.range){var B=E.simpleMap(O.range,F.r2l),X=E.simpleMap(F.range,F.r2l),$;X[0]<X[1]?$=[Math.min(B[0],X[0]),Math.max(B[1],X[1])]:$=[Math.max(B[0],X[0]),Math.min(B[1],X[1])],O.range=O._input.range=E.simpleMap($,F.l2r)}F.cleanRange("rangeslider.range");var se=u._size,le=F.domain;O._width=se.w*(le[1]-le[0]);var fe=Math.round(se.l+se.w*le[0]),V=Math.round(se.t+se.h*(1-F._counterDomainMin)+(F.side==="bottom"?F._depth:0)+O._offsetShift+h.extraPad);N.attr("transform",e(fe,V)),O._rl=E.simpleMap(O.range,F.r2l);var Y=O._rl[0],ee=O._rl[1],q=ee-Y;if(O.p2d=function(ze){return ze/O._width*q+Y},O.d2p=function(ze){return(ze-Y)/q*O._width},F.rangebreaks){var oe=F.locateBreaks(Y,ee);if(oe.length){var ae,j,Q=0;for(ae=0;ae<oe.length;ae++)j=oe[ae],Q+=j.max-j.min;var re=O._width/(ee-Y-Q),ce=[-re*Y];for(ae=0;ae<oe.length;ae++)j=oe[ae],ce.push(ce[ce.length-1]-re*(j.max-j.min));for(O.d2p=function(ze){for(var Ze=ce[0],at=0;at<oe.length;at++){var nt=oe[at];if(ze>=nt.max)Ze=ce[at+1];else if(ze<nt.min)break}return Ze+re*ze},ae=0;ae<oe.length;ae++)j=oe[ae],j.pmin=O.d2p(j.min),j.pmax=O.d2p(j.max);O.p2d=function(ze){for(var Ze=ce[0],at=0;at<oe.length;at++){var nt=oe[at];if(ze>=nt.pmax)Ze=ce[at+1];else if(ze<nt.pmin)break}return(ze-Ze)/re}}}if(U.rangemode!=="match"){var be=P.r2l(U.range[0]),Ae=P.r2l(U.range[1]),De=Ae-be;O.d2pOppAxis=function(ze){return(ze-be)/De*O._height}}N.call(l,d,F,O).call(_,d,F,O).call(w,d,F,O).call(M,d,F,O,U).call(g,d,F,O).call(b,d,F,O),m(N,d,F,O),T(N,d,F,O,P,U),F.side==="bottom"&&o.draw(d,F._id+"title",{propContainer:F,propName:F._name+".title.text",placeholder:u._dfltTitle.x,attributes:{x:F._offset+F._length/2,y:V+O._height+O._offsetShift+10+1.5*F.title.font.size,"text-anchor":"middle"}})}))};function c(d){return typeof d.clientX=="number"?d.clientX:d.touches&&d.touches.length>0?d.touches[0].clientX:0}function m(d,u,y,f){if(u._context.staticPlot)return;var R=d.select("rect."+h.slideBoxClassName).node(),L=d.select("rect."+h.grabAreaMinClassName).node(),z=d.select("rect."+h.grabAreaMaxClassName).node();function F(){var N=v.event,O=N.target,P=c(N),U=P-d.node().getBoundingClientRect().left,B=f.d2p(y._rl[0]),X=f.d2p(y._rl[1]),$=i.coverSlip();this.addEventListener("touchmove",se),this.addEventListener("touchend",le),$.addEventListener("mousemove",se),$.addEventListener("mouseup",le);function se(fe){var V=c(fe),Y=+V-P,ee,q,oe;switch(O){case R:if(oe="ew-resize",B+Y>y._length||X+Y<0)return;ee=B+Y,q=X+Y;break;case L:if(oe="col-resize",B+Y>y._length)return;ee=B+Y,q=X;break;case z:if(oe="col-resize",X+Y<0)return;ee=B,q=X+Y;break;default:oe="ew-resize",ee=U,q=U+Y;break}if(q<ee){var ae=q;q=ee,ee=ae}f._pixelMin=ee,f._pixelMax=q,s(v.select($),oe),p(d,u,y,f)}function le(){$.removeEventListener("mousemove",se),$.removeEventListener("mouseup",le),this.removeEventListener("touchmove",se),this.removeEventListener("touchend",le),E.removeElement($)}}d.on("mousedown",F),d.on("touchstart",F)}function p(d,u,y,f){function R(F){return y.l2r(E.constrain(F,f._rl[0],f._rl[1]))}var L=R(f.p2d(f._pixelMin)),z=R(f.p2d(f._pixelMax));window.requestAnimationFrame(function(){x.call("_guiRelayout",u,y._name+".range",[L,z])})}function T(d,u,y,f,R,L){var z=h.handleWidth/2;function F(fe){return E.constrain(fe,0,f._width)}function N(fe){return E.constrain(fe,0,f._height)}function O(fe){return E.constrain(fe,-z,f._width+z)}var P=F(f.d2p(y._rl[0])),U=F(f.d2p(y._rl[1]));if(d.select("rect."+h.slideBoxClassName).attr("x",P).attr("width",U-P),d.select("rect."+h.maskMinClassName).attr("width",P),d.select("rect."+h.maskMaxClassName).attr("x",U).attr("width",f._width-U),L.rangemode!=="match"){var B=f._height-N(f.d2pOppAxis(R._rl[1])),X=f._height-N(f.d2pOppAxis(R._rl[0]));d.select("rect."+h.maskMinOppAxisClassName).attr("x",P).attr("height",B).attr("width",U-P),d.select("rect."+h.maskMaxOppAxisClassName).attr("x",P).attr("y",X).attr("height",f._height-X).attr("width",U-P),d.select("rect."+h.slideBoxClassName).attr("y",B).attr("height",X-B)}var $=.5,se=Math.round(O(P-z))-$,le=Math.round(O(U-z))+$;d.select("g."+h.grabberMinClassName).attr("transform",e(se,$)),d.select("g."+h.grabberMaxClassName).attr("transform",e(le,$))}function l(d,u,y,f){var R=E.ensureSingle(d,"rect",h.bgClassName,function(N){N.attr({x:0,y:0,"shape-rendering":"crispEdges"})}),L=f.borderwidth%2===0?f.borderwidth:f.borderwidth-1,z=-f._offsetShift,F=t.crispRound(u,f.borderwidth);R.attr({width:f._width+L,height:f._height+L,transform:e(z,z),"stroke-width":F}).call(r.stroke,f.bordercolor).call(r.fill,f.bgcolor)}function _(d,u,y,f){var R=u._fullLayout,L=E.ensureSingleById(R._topdefs,"clipPath",f._clipId,function(z){z.append("rect").attr({x:0,y:0})});L.select("rect").attr({width:f._width,height:f._height})}function w(d,u,y,f){var R=u.calcdata,L=d.selectAll("g."+h.rangePlotClassName).data(y._subplotsWith,E.identity);L.enter().append("g").attr("class",function(F){return h.rangePlotClassName+" "+F}).call(t.setClipUrl,f._clipId,u),L.order(),L.exit().remove();var z;L.each(function(F,N){var O=v.select(this),P=N===0,U=n.getFromId(u,F,"y"),B=U._name,X=f[B],$={data:[],layout:{xaxis:{type:y.type,domain:[0,1],range:f.range.slice(),calendar:y.calendar},width:f._width,height:f._height,margin:{t:0,b:0,l:0,r:0}},_context:u._context};y.rangebreaks&&($.layout.xaxis.rangebreaks=y.rangebreaks),$.layout[B]={type:U.type,domain:[0,1],range:X.rangemode!=="match"?X.range.slice():U.range.slice(),calendar:U.calendar},U.rangebreaks&&($.layout[B].rangebreaks=U.rangebreaks),S.supplyDefaults($);var se=$._fullLayout.xaxis,le=$._fullLayout[B];se.clearCalc(),se.setScale(),le.clearCalc(),le.setScale();var fe={id:F,plotgroup:O,xaxis:se,yaxis:le,isRangePlot:!0};P?z=fe:(fe.mainplot="xy",fe.mainplotinfo=z),a.rangePlot(u,fe,A(R,F))})}function A(d,u){for(var y=[],f=0;f<d.length;f++){var R=d[f],L=R[0].trace;L.xaxis+L.yaxis===u&&y.push(R)}return y}function M(d,u,y,f,R){var L=E.ensureSingle(d,"rect",h.maskMinClassName,function(O){O.attr({x:0,y:0,"shape-rendering":"crispEdges"})});L.attr("height",f._height).call(r.fill,h.maskColor);var z=E.ensureSingle(d,"rect",h.maskMaxClassName,function(O){O.attr({y:0,"shape-rendering":"crispEdges"})});if(z.attr("height",f._height).call(r.fill,h.maskColor),R.rangemode!=="match"){var F=E.ensureSingle(d,"rect",h.maskMinOppAxisClassName,function(O){O.attr({y:0,"shape-rendering":"crispEdges"})});F.attr("width",f._width).call(r.fill,h.maskOppAxisColor);var N=E.ensureSingle(d,"rect",h.maskMaxOppAxisClassName,function(O){O.attr({y:0,"shape-rendering":"crispEdges"})});N.attr("width",f._width).style("border-top",h.maskOppBorder).call(r.fill,h.maskOppAxisColor)}}function g(d,u,y,f){if(!u._context.staticPlot){var R=E.ensureSingle(d,"rect",h.slideBoxClassName,function(L){L.attr({y:0,cursor:h.slideBoxCursor,"shape-rendering":"crispEdges"})});R.attr({height:f._height,fill:h.slideBoxFill})}}function b(d,u,y,f){var R=E.ensureSingle(d,"g",h.grabberMinClassName),L=E.ensureSingle(d,"g",h.grabberMaxClassName),z={x:0,width:h.handleWidth,rx:h.handleRadius,fill:r.background,stroke:r.defaultLine,"stroke-width":h.handleStrokeWidth,"shape-rendering":"crispEdges"},F={y:Math.round(f._height/4),height:Math.round(f._height/2)},N=E.ensureSingle(R,"rect",h.handleMinClassName,function(X){X.attr(z)});N.attr(F);var O=E.ensureSingle(L,"rect",h.handleMaxClassName,function(X){X.attr(z)});O.attr(F);var P={width:h.grabAreaWidth,x:0,y:0,fill:h.grabAreaFill,cursor:u._context.staticPlot?void 0:h.grabAreaCursor},U=E.ensureSingle(R,"rect",h.grabAreaMinClassName,function(X){X.attr(P)});U.attr("height",f._height);var B=E.ensureSingle(L,"rect",h.grabAreaMaxClassName,function(X){X.attr(P)});B.attr("height",f._height)}}}),k9=Xe({"src/components/rangeslider/index.js"(Z,G){"use strict";var v=sa(),x=O2(),S=H5(),E=A9();G.exports={moduleType:"component",name:"rangeslider",schema:{subplots:{xaxis:{rangeslider:v.extendFlat({},x,{yaxis:S})}}},layoutAttributes:O2(),handleDefaults:S9(),calcAutorange:M9(),draw:E9(),isVisible:E.isVisible,makeData:E.makeData,autoMarginOpts:E.autoMarginOpts}}}),N2=Xe({"src/components/rangeselector/attributes.js"(Z,G){"use strict";var v=tc(),x=sh(),S=zl().templatedArray,E=S("button",{visible:{valType:"boolean",dflt:!0,editType:"plot"},step:{valType:"enumerated",values:["month","year","day","hour","minute","second","all"],dflt:"month",editType:"plot"},stepmode:{valType:"enumerated",values:["backward","todate"],dflt:"backward",editType:"plot"},count:{valType:"number",min:0,dflt:1,editType:"plot"},label:{valType:"string",editType:"plot"},editType:"plot"});G.exports={visible:{valType:"boolean",editType:"plot"},buttons:E,x:{valType:"number",min:-2,max:3,editType:"plot"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left",editType:"plot"},y:{valType:"number",min:-2,max:3,editType:"plot"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"bottom",editType:"plot"},font:v({editType:"plot"}),bgcolor:{valType:"color",dflt:x.lightLine,editType:"plot"},activecolor:{valType:"color",editType:"plot"},bordercolor:{valType:"color",dflt:x.defaultLine,editType:"plot"},borderwidth:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"plot"}}}),W5=Xe({"src/components/rangeselector/constants.js"(Z,G){"use strict";G.exports={yPad:.02,minButtonWidth:30,rx:3,ry:3,lightAmount:25,darkAmount:10}}}),C9=Xe({"src/components/rangeselector/defaults.js"(Z,G){"use strict";var v=sa(),x=$n(),S=zl(),E=hp(),e=N2(),t=W5();G.exports=function(n,i,s,h,c){var m=n.rangeselector||{},p=S.newContainer(i,"rangeselector");function T(M,g){return v.coerce(m,p,e,M,g)}var l=E(m,p,{name:"buttons",handleItemDefaults:r,calendar:c}),_=T("visible",l.length>0);if(_){var w=o(i,s,h);T("x",w[0]),T("y",w[1]),v.noneOrAll(n,i,["x","y"]),T("xanchor"),T("yanchor"),v.coerceFont(T,"font",s.font);var A=T("bgcolor");T("activecolor",x.contrast(A,t.lightAmount,t.darkAmount)),T("bordercolor"),T("borderwidth")}};function r(a,n,i,s){var h=s.calendar;function c(T,l){return v.coerce(a,n,e.buttons,T,l)}var m=c("visible");if(m){var p=c("step");p!=="all"&&(h&&h!=="gregorian"&&(p==="month"||p==="year")?n.stepmode="backward":c("stepmode"),c("count")),c("label")}}function o(a,n,i){for(var s=i.filter(function(p){return n[p].anchor===a._id}),h=0,c=0;c<s.length;c++){var m=n[s[c]].domain;m&&(h=Math.max(m[1],h))}return[a.domain[0],h+t.yPad]}}}),L9=Xe({"src/components/rangeselector/get_update_object.js"(Z,G){"use strict";var v=dd(),x=sa().titleCase;G.exports=function(e,t){var r=e._name,o={};if(t.step==="all")o[r+".autorange"]=!0;else{var a=S(e,t);o[r+".range[0]"]=a[0],o[r+".range[1]"]=a[1]}return o};function S(E,e){var t=E.range,r=new Date(E.r2l(t[1])),o=e.step,a=v["utc"+x(o)],n=e.count,i;switch(e.stepmode){case"backward":i=E.l2r(+a.offset(r,-n));break;case"todate":var s=a.offset(r,-n);i=E.l2r(+a.ceil(s));break}var h=t[1];return[i,h]}}}),P9=Xe({"src/components/rangeselector/draw.js"(Z,G){"use strict";var v=Hn(),x=so(),S=bc(),E=$n(),e=es(),t=sa(),r=t.strTranslate,o=ou(),a=ef(),n=uh(),i=n.LINE_SPACING,s=n.FROM_TL,h=n.FROM_BR,c=W5(),m=L9();G.exports=function(d){var u=d._fullLayout,y=u._infolayer.selectAll(".rangeselector").data(p(d),T);y.enter().append("g").classed("rangeselector",!0),y.exit().remove(),y.style({cursor:"pointer","pointer-events":"all"}),y.each(function(f){var R=v.select(this),L=f,z=L.rangeselector,F=R.selectAll("g.button").data(t.filterVisible(z.buttons));F.enter().append("g").classed("button",!0),F.exit().remove(),F.each(function(N){var O=v.select(this),P=m(L,N);N._isActive=l(L,N,P),O.call(_,z,N),O.call(A,z,N,d),O.on("click",function(){d._dragged||x.call("_guiRelayout",d,P)}),O.on("mouseover",function(){N._isHovered=!0,O.call(_,z,N)}),O.on("mouseout",function(){N._isHovered=!1,O.call(_,z,N)})}),g(d,F,z,L._name,R)})};function p(b){for(var d=a.list(b,"x",!0),u=[],y=0;y<d.length;y++){var f=d[y];f.rangeselector&&f.rangeselector.visible&&u.push(f)}return u}function T(b){return b._id}function l(b,d,u){if(d.step==="all")return b.autorange===!0;var y=Object.keys(u);return b.range[0]===u[y[0]]&&b.range[1]===u[y[1]]}function _(b,d,u){var y=t.ensureSingle(b,"rect","selector-rect",function(f){f.attr("shape-rendering","crispEdges")});y.attr({rx:c.rx,ry:c.ry}),y.call(E.stroke,d.bordercolor).call(E.fill,w(d,u)).style("stroke-width",d.borderwidth+"px")}function w(b,d){return d._isActive||d._isHovered?b.activecolor:b.bgcolor}function A(b,d,u,y){function f(L){o.convertToTspans(L,y)}var R=t.ensureSingle(b,"text","selector-text",function(L){L.attr("text-anchor","middle")});R.call(e.font,d.font).text(M(u,y._fullLayout._meta)).call(f)}function M(b,d){return b.label?d?t.templateString(b.label,d):b.label:b.step==="all"?"all":b.count+b.step.charAt(0)}function g(b,d,u,y,f){var R=0,L=0,z=u.borderwidth;d.each(function(){var B=v.select(this),X=B.select(".selector-text"),$=u.font.size*i,se=Math.max($*o.lineCount(X),16)+3;L=Math.max(L,se)}),d.each(function(){var B=v.select(this),X=B.select(".selector-rect"),$=B.select(".selector-text"),se=$.node()&&e.bBox($.node()).width,le=u.font.size*i,fe=o.lineCount($),V=Math.max(se+10,c.minButtonWidth);B.attr("transform",r(z+R,z)),X.attr({x:0,y:0,width:V,height:L}),o.positionText($,V/2,L/2-(fe-1)*le/2+3),R+=V+5});var F=b._fullLayout._size,N=F.l+F.w*u.x,O=F.t+F.h*(1-u.y),P="left";t.isRightAnchor(u)&&(N-=R,P="right"),t.isCenterAnchor(u)&&(N-=R/2,P="center");var U="top";t.isBottomAnchor(u)&&(O-=L,U="bottom"),t.isMiddleAnchor(u)&&(O-=L/2,U="middle"),R=Math.ceil(R),L=Math.ceil(L),N=Math.round(N),O=Math.round(O),S.autoMargin(b,y+"-range-selector",{x:u.x,y:u.y,l:R*s[P],r:R*h[P],b:L*h[U],t:L*s[U]}),f.attr("transform",r(N,O))}}}),I9=Xe({"src/components/rangeselector/index.js"(Z,G){"use strict";G.exports={moduleType:"component",name:"rangeselector",schema:{subplots:{xaxis:{rangeselector:N2()}}},layoutAttributes:N2(),handleDefaults:C9(),draw:P9()}}}),wc=Xe({"src/plots/domain.js"(Z){"use strict";var G=Qo().extendFlat;Z.attributes=function(v,x){v=v||{},x=x||{};var S={valType:"info_array",editType:v.editType,items:[{valType:"number",min:0,max:1,editType:v.editType},{valType:"number",min:0,max:1,editType:v.editType}],dflt:[0,1]},E=v.name?v.name+" ":"",e=v.trace?"trace ":"subplot ",t=x.description?" "+x.description:"",r={x:G({},S,{}),y:G({},S,{}),editType:v.editType};return v.noGridCell||(r.row={valType:"integer",min:0,dflt:0,editType:v.editType},r.column={valType:"integer",min:0,dflt:0,editType:v.editType}),r},Z.defaults=function(v,x,S,E){var e=E&&E.x||[0,1],t=E&&E.y||[0,1],r=x.grid;if(r){var o=S("domain.column");o!==void 0&&(o<r.columns?e=r._domains.x[o]:delete v.domain.column);var a=S("domain.row");a!==void 0&&(a<r.rows?t=r._domains.y[a]:delete v.domain.row)}var n=S("domain.x",e),i=S("domain.y",t);n[0]<n[1]||(v.domain.x=e.slice()),i[0]<i[1]||(v.domain.y=t.slice())}}}),X5=Xe({"src/components/grid/index.js"(Z,G){"use strict";var v=sa(),x=Jy().counter,S=wc().attributes,E=lh().idRegex,e=zl(),t={rows:{valType:"integer",min:1,editType:"plot"},roworder:{valType:"enumerated",values:["top to bottom","bottom to top"],dflt:"top to bottom",editType:"plot"},columns:{valType:"integer",min:1,editType:"plot"},subplots:{valType:"info_array",freeLength:!0,dimensions:2,items:{valType:"enumerated",values:[x("xy").toString(),""],editType:"plot"},editType:"plot"},xaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[E.x.toString(),""],editType:"plot"},editType:"plot"},yaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[E.y.toString(),""],editType:"plot"},editType:"plot"},pattern:{valType:"enumerated",values:["independent","coupled"],dflt:"coupled",editType:"plot"},xgap:{valType:"number",min:0,max:1,editType:"plot"},ygap:{valType:"number",min:0,max:1,editType:"plot"},domain:S({name:"grid",editType:"plot",noGridCell:!0},{}),xside:{valType:"enumerated",values:["bottom","bottom plot","top plot","top"],dflt:"bottom plot",editType:"plot"},yside:{valType:"enumerated",values:["left","left plot","right plot","right"],dflt:"left plot",editType:"plot"},editType:"plot"};function r(s,h,c){var m=h[c+"axes"],p=Object.keys((s._splomAxes||{})[c]||{});if(Array.isArray(m))return m;if(p.length)return p}function o(s,h){var c=s.grid||{},m=r(h,c,"x"),p=r(h,c,"y");if(!s.grid&&!m&&!p)return;var T=Array.isArray(c.subplots)&&Array.isArray(c.subplots[0]),l=Array.isArray(m),_=Array.isArray(p),w=l&&m!==c.xaxes&&_&&p!==c.yaxes,A,M;T?(A=c.subplots.length,M=c.subplots[0].length):(_&&(A=p.length),l&&(M=m.length));var g=e.newContainer(h,"grid");function b(O,P){return v.coerce(c,g,t,O,P)}var d=b("rows",A),u=b("columns",M);if(!(d*u>1)){delete h.grid;return}if(!T&&!l&&!_){var y=b("pattern")==="independent";y&&(T=!0)}g._hasSubplotGrid=T;var f=b("roworder"),R=f==="top to bottom",L=T?.2:.1,z=T?.3:.1,F,N;w&&h._splomGridDflt&&(F=h._splomGridDflt.xside,N=h._splomGridDflt.yside),g._domains={x:a("x",b,L,F,u),y:a("y",b,z,N,d,R)}}function a(s,h,c,m,p,T){var l=h(s+"gap",c),_=h("domain."+s);h(s+"side",m);for(var w=new Array(p),A=_[0],M=(_[1]-A)/(p-l),g=M*(1-l),b=0;b<p;b++){var d=A+M*b;w[T?p-1-b:b]=[d,d+g]}return w}function n(s,h){var c=h.grid;if(!(!c||!c._domains)){var m=s.grid||{},p=h._subplots,T=c._hasSubplotGrid,l=c.rows,_=c.columns,w=c.pattern==="independent",A,M,g,b,d,u,y,f=c._axisMap={};if(T){var R=m.subplots||[];u=c.subplots=new Array(l);var L=1;for(A=0;A<l;A++){var z=u[A]=new Array(_),F=R[A]||[];for(M=0;M<_;M++)if(w?(d=L===1?"xy":"x"+L+"y"+L,L++):d=F[M],z[M]="",p.cartesian.indexOf(d)!==-1){if(y=d.indexOf("y"),g=d.slice(0,y),b=d.slice(y),f[g]!==void 0&&f[g]!==M||f[b]!==void 0&&f[b]!==A)continue;z[M]=d,f[g]=M,f[b]=A}}}else{var N=r(h,m,"x"),O=r(h,m,"y");c.xaxes=i(N,p.xaxis,_,f,"x"),c.yaxes=i(O,p.yaxis,l,f,"y")}var P=c._anchors={},U=c.roworder==="top to bottom";for(var B in f){var X=B.charAt(0),$=c[X+"side"],se,le,fe;if($.length<8)P[B]="free";else if(X==="x"){if($.charAt(0)==="t"===U?(se=0,le=1,fe=l):(se=l-1,le=-1,fe=-1),T){var V=f[B];for(A=se;A!==fe;A+=le)if(d=u[A][V],!!d&&(y=d.indexOf("y"),d.slice(0,y)===B)){P[B]=d.slice(y);break}}else for(A=se;A!==fe;A+=le)if(b=c.yaxes[A],p.cartesian.indexOf(B+b)!==-1){P[B]=b;break}}else if($.charAt(0)==="l"?(se=0,le=1,fe=_):(se=_-1,le=-1,fe=-1),T){var Y=f[B];for(A=se;A!==fe;A+=le)if(d=u[Y][A],!!d&&(y=d.indexOf("y"),d.slice(y)===B)){P[B]=d.slice(0,y);break}}else for(A=se;A!==fe;A+=le)if(g=c.xaxes[A],p.cartesian.indexOf(g+B)!==-1){P[B]=g;break}}}}function i(s,h,c,m,p){var T=new Array(c),l;function _(w,A){h.indexOf(A)!==-1&&m[A]===void 0?(T[w]=A,m[A]=w):T[w]=""}if(Array.isArray(s))for(l=0;l<c;l++)_(l,s[l]);else for(_(0,p),l=1;l<c;l++)_(l,p+(l+1));return T}G.exports={moduleType:"component",name:"grid",schema:{layout:{grid:t}},layoutAttributes:t,sizeDefaults:o,contentDefaults:n}}}),Z5=Xe({"src/components/errorbars/attributes.js"(Z,G){"use strict";G.exports={visible:{valType:"boolean",editType:"calc"},type:{valType:"enumerated",values:["percent","constant","sqrt","data"],editType:"calc"},symmetric:{valType:"boolean",editType:"calc"},array:{valType:"data_array",editType:"calc"},arrayminus:{valType:"data_array",editType:"calc"},value:{valType:"number",min:0,dflt:10,editType:"calc"},valueminus:{valType:"number",min:0,dflt:10,editType:"calc"},traceref:{valType:"integer",min:0,dflt:0,editType:"style"},tracerefminus:{valType:"integer",min:0,dflt:0,editType:"style"},copy_ystyle:{valType:"boolean",editType:"plot"},copy_zstyle:{valType:"boolean",editType:"style"},color:{valType:"color",editType:"style"},thickness:{valType:"number",min:0,dflt:2,editType:"style"},width:{valType:"number",min:0,editType:"plot"},editType:"calc"}}}),R9=Xe({"src/components/errorbars/defaults.js"(Z,G){"use strict";var v=rs(),x=so(),S=sa(),E=zl(),e=Z5();G.exports=function(t,r,o,a){var n="error_"+a.axis,i=E.newContainer(r,n),s=t[n]||{};function h(w,A){return S.coerce(s,i,e,w,A)}var c=s.array!==void 0||s.value!==void 0||s.type==="sqrt",m=h("visible",c);if(m!==!1){var p=h("type","array"in s?"data":"percent"),T=!0;p!=="sqrt"&&(T=h("symmetric",!((p==="data"?"arrayminus":"valueminus")in s))),p==="data"?(h("array"),h("traceref"),T||(h("arrayminus"),h("tracerefminus"))):(p==="percent"||p==="constant")&&(h("value"),T||h("valueminus"));var l="copy_"+a.inherit+"style";if(a.inherit){var _=r["error_"+a.inherit];(_||{}).visible&&h(l,!(s.color||v(s.thickness)||v(s.width)))}(!a.inherit||!i[l])&&(h("color",o),h("thickness"),h("width",x.traceIs(r,"gl3d")?0:4))}}}}),Y5=Xe({"src/components/errorbars/compute_error.js"(Z,G){"use strict";G.exports=function(S){var E=S.type,e=S.symmetric;if(E==="data"){var t=S.array||[];if(e)return function(i,s){var h=+t[s];return[h,h]};var r=S.arrayminus||[];return function(i,s){var h=+t[s],c=+r[s];return!isNaN(h)||!isNaN(c)?[c||0,h||0]:[NaN,NaN]}}else{var o=v(E,S.value),a=v(E,S.valueminus);return e||S.valueminus===void 0?function(i){var s=o(i);return[s,s]}:function(i){return[a(i),o(i)]}}};function v(x,S){if(x==="percent")return function(E){return Math.abs(E*S/100)};if(x==="constant")return function(){return Math.abs(S)};if(x==="sqrt")return function(E){return Math.sqrt(Math.abs(E))}}}}),D9=Xe({"src/components/errorbars/calc.js"(Z,G){"use strict";var v=rs(),x=so(),S=Go(),E=sa(),e=Y5();G.exports=function(o){for(var a=o.calcdata,n=0;n<a.length;n++){var i=a[n],s=i[0].trace;if(s.visible===!0&&x.traceIs(s,"errorBarsOK")){var h=S.getFromId(o,s.xaxis),c=S.getFromId(o,s.yaxis);t(i,s,h,"x"),t(i,s,c,"y")}}};function t(r,o,a,n){var i=o["error_"+n]||{},s=i.visible&&["linear","log"].indexOf(a.type)!==-1,h=[];if(s){for(var c=e(i),m=0;m<r.length;m++){var p=r[m],T=p.i;if(T===void 0)T=m;else if(T===null)continue;var l=p[n];if(v(a.c2l(l))){var _=c(l,T);if(v(_[0])&&v(_[1])){var w=p[n+"s"]=l-_[0],A=p[n+"h"]=l+_[1];h.push(w,A)}}}var M=a._id,g=o._extremes[M],b=S.findExtremes(a,h,E.extendFlat({tozero:g.opts.tozero},{padded:!0}));g.min=g.min.concat(b.min),g.max=g.max.concat(b.max)}}}}),z9=Xe({"src/components/errorbars/plot.js"(Z,G){"use strict";var v=Hn(),x=rs(),S=es(),E=Fu();G.exports=function(r,o,a,n){var i,s=a.xaxis,h=a.yaxis,c=n&&n.duration>0,m=r._context.staticPlot;o.each(function(p){var T=p[0].trace,l=T.error_x||{},_=T.error_y||{},w;T.ids&&(w=function(b){return b.id});var A=E.hasMarkers(T)&&T.marker.maxdisplayed>0;!_.visible&&!l.visible&&(p=[]);var M=v.select(this).selectAll("g.errorbar").data(p,w);if(M.exit().remove(),!!p.length){l.visible||M.selectAll("path.xerror").remove(),_.visible||M.selectAll("path.yerror").remove(),M.style("opacity",1);var g=M.enter().append("g").classed("errorbar",!0);c&&g.style("opacity",0).transition().duration(n.duration).style("opacity",1),S.setClipUrl(M,a.layerClipId,r),M.each(function(b){var d=v.select(this),u=e(b,s,h);if(!(A&&!b.vis)){var y,f=d.select("path.yerror");if(_.visible&&x(u.x)&&x(u.yh)&&x(u.ys)){var R=_.width;y="M"+(u.x-R)+","+u.yh+"h"+2*R+"m-"+R+",0V"+u.ys,u.noYS||(y+="m-"+R+",0h"+2*R),i=!f.size(),i?f=d.append("path").style("vector-effect",m?"none":"non-scaling-stroke").classed("yerror",!0):c&&(f=f.transition().duration(n.duration).ease(n.easing)),f.attr("d",y)}else f.remove();var L=d.select("path.xerror");if(l.visible&&x(u.y)&&x(u.xh)&&x(u.xs)){var z=(l.copy_ystyle?_:l).width;y="M"+u.xh+","+(u.y-z)+"v"+2*z+"m0,-"+z+"H"+u.xs,u.noXS||(y+="m0,-"+z+"v"+2*z),i=!L.size(),i?L=d.append("path").style("vector-effect",m?"none":"non-scaling-stroke").classed("xerror",!0):c&&(L=L.transition().duration(n.duration).ease(n.easing)),L.attr("d",y)}else L.remove()}})}})};function e(t,r,o){var a={x:r.c2p(t.x),y:o.c2p(t.y)};return t.yh!==void 0&&(a.yh=o.c2p(t.yh),a.ys=o.c2p(t.ys),x(a.ys)||(a.noYS=!0,a.ys=o.c2p(t.ys,!0))),t.xh!==void 0&&(a.xh=r.c2p(t.xh),a.xs=r.c2p(t.xs),x(a.xs)||(a.noXS=!0,a.xs=r.c2p(t.xs,!0))),a}}}),F9=Xe({"src/components/errorbars/style.js"(Z,G){"use strict";var v=Hn(),x=$n();G.exports=function(E){E.each(function(e){var t=e[0].trace,r=t.error_y||{},o=t.error_x||{},a=v.select(this);a.selectAll("path.yerror").style("stroke-width",r.thickness+"px").call(x.stroke,r.color),o.copy_ystyle&&(o=r),a.selectAll("path.xerror").style("stroke-width",o.thickness+"px").call(x.stroke,o.color)})}}}),O9=Xe({"src/components/errorbars/index.js"(Z,G){"use strict";var v=sa(),x=pc().overrideAll,S=Z5(),E={error_x:v.extendFlat({},S),error_y:v.extendFlat({},S)};delete E.error_x.copy_zstyle,delete E.error_y.copy_zstyle,delete E.error_y.copy_ystyle;var e={error_x:v.extendFlat({},S),error_y:v.extendFlat({},S),error_z:v.extendFlat({},S)};delete e.error_x.copy_ystyle,delete e.error_y.copy_ystyle,delete e.error_z.copy_ystyle,delete e.error_z.copy_zstyle,G.exports={moduleType:"component",name:"errorbars",schema:{traces:{scatter:E,bar:E,histogram:E,scatter3d:x(e,"calc","nested"),scattergl:x(E,"calc","nested")}},supplyDefaults:R9(),calc:D9(),makeComputeError:Y5(),plot:z9(),style:F9(),hoverInfo:t};function t(r,o,a){(o.error_y||{}).visible&&(a.yerr=r.yh-r.y,o.error_y.symmetric||(a.yerrneg=r.y-r.ys)),(o.error_x||{}).visible&&(a.xerr=r.xh-r.x,o.error_x.symmetric||(a.xerrneg=r.x-r.xs))}}}),B9=Xe({"src/components/colorbar/constants.js"(Z,G){"use strict";G.exports={cn:{colorbar:"colorbar",cbbg:"cbbg",cbfill:"cbfill",cbfills:"cbfills",cbline:"cbline",cblines:"cblines",cbaxis:"cbaxis",cbtitleunshift:"cbtitleunshift",cbtitle:"cbtitle",cboutline:"cboutline",crisp:"crisp",jsPlaceholder:"js-placeholder"}}}}),N9=Xe({"src/components/colorbar/draw.js"(Z,G){"use strict";var v=Hn(),x=Ch(),S=bc(),E=so(),e=Go(),t=Ap(),r=sa(),o=r.strTranslate,a=Qo().extendFlat,n=Kd(),i=es(),s=$n(),h=K0(),c=ou(),m=wp().flipScale,p=F_(),T=R2(),l=Wh(),_=uh(),w=_.LINE_SPACING,A=_.FROM_TL,M=_.FROM_BR,g=B9().cn;function b(L){var z=L._fullLayout,F=z._infolayer.selectAll("g."+g.colorbar).data(d(L),function(N){return N._id});F.enter().append("g").attr("class",function(N){return N._id}).classed(g.colorbar,!0),F.each(function(N){var O=v.select(this);r.ensureSingle(O,"rect",g.cbbg),r.ensureSingle(O,"g",g.cbfills),r.ensureSingle(O,"g",g.cblines),r.ensureSingle(O,"g",g.cbaxis,function(U){U.classed(g.crisp,!0)}),r.ensureSingle(O,"g",g.cbtitleunshift,function(U){U.append("g").classed(g.cbtitle,!0)}),r.ensureSingle(O,"rect",g.cboutline);var P=u(O,N,L);P&&P.then&&(L._promises||[]).push(P),L._context.edits.colorbarPosition&&y(O,N,L)}),F.exit().each(function(N){S.autoMargin(L,N._id)}).remove(),F.order()}function d(L){var z=L._fullLayout,F=L.calcdata,N=[],O,P,U,B;function X(j){return a(j,{_fillcolor:null,_line:{color:null,width:null,dash:null},_levels:{start:null,end:null,size:null},_filllevels:null,_fillgradient:null,_zrange:null})}function $(){typeof B.calc=="function"?B.calc(L,U,O):(O._fillgradient=P.reversescale?m(P.colorscale):P.colorscale,O._zrange=[P[B.min],P[B.max]])}for(var se=0;se<F.length;se++){var le=F[se];if(U=le[0].trace,!!U._module){var fe=U._module.colorbar;if(U.visible===!0&&fe)for(var V=Array.isArray(fe),Y=V?fe:[fe],ee=0;ee<Y.length;ee++){B=Y[ee];var q=B.container;P=q?U[q]:U,P&&P.showscale&&(O=X(P.colorbar),O._id="cb"+U.uid+(V&&q?"-"+q:""),O._traceIndex=U.index,O._propPrefix=(q?q+".":"")+"colorbar.",O._meta=U._meta,$(),N.push(O))}}}for(var oe in z._colorAxes)if(P=z[oe],P.showscale){var ae=z._colorAxes[oe];O=X(P.colorbar),O._id="cb"+oe,O._propPrefix=oe+".colorbar.",O._meta=z._meta,B={min:"cmin",max:"cmax"},ae[0]!=="heatmap"&&(U=ae[1],B.calc=U._module.colorbar.calc),$(),N.push(O)}return N}function u(L,z,F){var N=z.orientation==="v",O=z.len,P=z.lenmode,U=z.thickness,B=z.thicknessmode,X=z.outlinewidth,$=z.borderwidth,se=z.bgcolor,le=z.xanchor,fe=z.yanchor,V=z.xpad,Y=z.ypad,ee=z.x,q=N?z.y:1-z.y,oe=z.yref==="paper",ae=z.xref==="paper",j=F._fullLayout,Q=j._size,re=z._fillcolor,ce=z._line,be=z.title,Ae=be.side,De=z._zrange||v.extent((typeof re=="function"?re:ce.color).domain()),ze=typeof ce.color=="function"?ce.color:function(){return ce.color},Ze=typeof re=="function"?re:function(){return re},at=z._levels,nt=f(F,z,De),rt=nt.fill,st=nt.line,Me=Math.round(U*(B==="fraction"?N?Q.w:Q.h:1)),ye=Me/(N?Q.w:Q.h),he=Math.round(O*(P==="fraction"?N?Q.h:Q.w:1)),Oe=he/(N?Q.h:Q.w),tt=ae?Q.w:F._fullLayout.width,ot=oe?Q.h:F._fullLayout.height,Qe=Math.round(N?ee*tt+V:q*ot+Y),Pt={center:.5,right:1}[le]||0,It={top:1,middle:.5}[fe]||0,qt=N?ee-Pt*ye:q-It*ye,Wt=N?q-It*Oe:ee-Pt*Oe,kr=Math.round(N?ot*(1-Wt):tt*Wt);z._lenFrac=Oe,z._thickFrac=ye,z._uFrac=qt,z._vFrac=Wt;var mr=z._axis=R(F,z,De);mr.position=ye+(N?ee+V/Q.w:q+Y/Q.h);var qr=["top","bottom"].indexOf(Ae)!==-1;if(N&&qr&&(mr.title.side=Ae,mr.titlex=ee+V/Q.w,mr.titley=Wt+(be.side==="top"?Oe-Y/Q.h:Y/Q.h)),!N&&!qr&&(mr.title.side=Ae,mr.titley=q+Y/Q.h,mr.titlex=Wt+V/Q.w),ce.color&&z.tickmode==="auto"){mr.tickmode="linear",mr.tick0=at.start;var Sr=at.size,Rr=r.constrain(he/50,4,15)+1,wt=(De[1]-De[0])/((z.nticks||Rr)*Sr);if(wt>1){var Ne=Math.pow(10,Math.floor(Math.log(wt)/Math.LN10));Sr*=Ne*r.roundUp(wt/Ne,[2,5,10]),(Math.abs(at.start)/at.size+1e-6)%1<2e-6&&(mr.tick0=0)}mr.dtick=Sr}mr.domain=N?[Wt+Y/Q.h,Wt+Oe-Y/Q.h]:[Wt+V/Q.w,Wt+Oe-V/Q.w],mr.setScale(),L.attr("transform",o(Math.round(Q.l),Math.round(Q.t)));var Ke=L.select("."+g.cbtitleunshift).attr("transform",o(-Math.round(Q.l),-Math.round(Q.t))),Te=mr.ticklabelposition,Ie=mr.title.font.size,Ve=L.select("."+g.cbaxis),Ce,Ee=0,Pe=0;function ft(rr,er){var Lr={propContainer:mr,propName:z._propPrefix+"title.text",traceIndex:z._traceIndex,_meta:z._meta,placeholder:j._dfltTitle.colorbar,containerGroup:L.select("."+g.cbtitle)},fa=rr.charAt(0)==="h"?rr.slice(1):"h"+rr;L.selectAll("."+fa+",."+fa+"-math-group").remove(),h.draw(F,rr,a(Lr,er||{}))}function ct(){if(N&&qr||!N&&!qr){var rr,er;Ae==="top"&&(rr=V+Q.l+tt*ee,er=Y+Q.t+ot*(1-Wt-Oe)+3+Ie*.75),Ae==="bottom"&&(rr=V+Q.l+tt*ee,er=Y+Q.t+ot*(1-Wt)-3-Ie*.25),Ae==="right"&&(er=Y+Q.t+ot*q+3+Ie*.75,rr=V+Q.l+tt*Wt),ft(mr._id+"title",{attributes:{x:rr,y:er,"text-anchor":N?"start":"middle"}})}}function _t(){if(N&&!qr||!N&&qr){var rr=mr.position||0,er=mr._offset+mr._length/2,Lr,fa;if(Ae==="right")fa=er,Lr=Q.l+tt*rr+10+Ie*(mr.showticklabels?1:.5);else if(Lr=er,Ae==="bottom"&&(fa=Q.t+ot*rr+10+(Te.indexOf("inside")===-1?mr.tickfont.size:0)+(mr.ticks!=="inside"&&z.ticklen||0)),Ae==="top"){var Da=be.text.split("<br>").length;fa=Q.t+ot*rr+10-Me-w*Ie*Da}ft((N?"h":"v")+mr._id+"title",{avoid:{selection:v.select(F).selectAll("g."+mr._id+"tick"),side:Ae,offsetTop:N?0:Q.t,offsetLeft:N?Q.l:0,maxShift:N?j.width:j.height},attributes:{x:Lr,y:fa,"text-anchor":"middle"},transform:{rotate:N?-90:0,offset:0}})}}function Ct(){if(!N&&!qr||N&&qr){var rr=L.select("."+g.cbtitle),er=rr.select("text"),Lr=[-X/2,X/2],fa=rr.select(".h"+mr._id+"title-math-group").node(),Da=15.6;er.node()&&(Da=parseInt(er.node().style.fontSize,10)*w);var Ia;if(fa?(Ia=i.bBox(fa),Pe=Ia.width,Ee=Ia.height,Ee>Da&&(Lr[1]-=(Ee-Da)/2)):er.node()&&!er.classed(g.jsPlaceholder)&&(Ia=i.bBox(er.node()),Pe=Ia.width,Ee=Ia.height),N){if(Ee){if(Ee+=5,Ae==="top")mr.domain[1]-=Ee/Q.h,Lr[1]*=-1;else{mr.domain[0]+=Ee/Q.h;var qa=c.lineCount(er);Lr[1]+=(1-qa)*Da}rr.attr("transform",o(Lr[0],Lr[1])),mr.setScale()}}else Pe&&(Ae==="right"&&(mr.domain[0]+=(Pe+Ie/2)/Q.w),rr.attr("transform",o(Lr[0],Lr[1])),mr.setScale())}L.selectAll("."+g.cbfills+",."+g.cblines).attr("transform",N?o(0,Math.round(Q.h*(1-mr.domain[1]))):o(Math.round(Q.w*mr.domain[0]),0)),Ve.attr("transform",N?o(0,Math.round(-Q.t)):o(Math.round(-Q.l),0));var Wa=L.select("."+g.cbfills).selectAll("rect."+g.cbfill).attr("style","").data(rt);Wa.enter().append("rect").classed(g.cbfill,!0).attr("style",""),Wa.exit().remove();var Ca=De.map(mr.c2p).map(Math.round).sort(function(Yt,Jt){return Yt-Jt});Wa.each(function(Yt,Jt){var Fr=[Jt===0?De[0]:(rt[Jt]+rt[Jt-1])/2,Jt===rt.length-1?De[1]:(rt[Jt]+rt[Jt+1])/2].map(mr.c2p).map(Math.round);N&&(Fr[1]=r.constrain(Fr[1]+(Fr[1]>Fr[0])?1:-1,Ca[0],Ca[1]));var ta=v.select(this).attr(N?"x":"y",Qe).attr(N?"y":"x",v.min(Fr)).attr(N?"width":"height",Math.max(Me,2)).attr(N?"height":"width",Math.max(v.max(Fr)-v.min(Fr),2));if(z._fillgradient)i.gradient(ta,F,z._id,N?"vertical":"horizontalreversed",z._fillgradient,"fill");else{var ra=Ze(Yt).replace("e-","");ta.attr("fill",x(ra).toHexString())}});var hi=L.select("."+g.cblines).selectAll("path."+g.cbline).data(ce.color&&ce.width?st:[]);hi.enter().append("path").classed(g.cbline,!0),hi.exit().remove(),hi.each(function(Yt){var Jt=Qe,Fr=Math.round(mr.c2p(Yt))+ce.width/2%1;v.select(this).attr("d","M"+(N?Jt+","+Fr:Fr+","+Jt)+(N?"h":"v")+Me).call(i.lineGroupStyle,ce.width,ze(Yt),ce.dash)}),Ve.selectAll("g."+mr._id+"tick,path").remove();var wi=Qe+Me+(X||0)/2-(z.ticks==="outside"?1:0),Kt=e.calcTicks(mr),Ft=e.getTickSigns(mr)[2];return e.drawTicks(F,mr,{vals:mr.ticks==="inside"?e.clipEnds(mr,Kt):Kt,layer:Ve,path:e.makeTickPath(mr,wi,Ft),transFn:e.makeTransTickFn(mr)}),e.drawLabels(F,mr,{vals:Kt,layer:Ve,transFn:e.makeTransTickLabelFn(mr),labelFns:e.makeLabelFns(mr,wi)})}function ir(){var rr,er=Me+X/2;Te.indexOf("inside")===-1&&(rr=i.bBox(Ve.node()),er+=N?rr.width:rr.height),Ce=Ke.select("text");var Lr=0,fa=N&&Ae==="top",Da=!N&&Ae==="right",Ia=0;if(Ce.node()&&!Ce.classed(g.jsPlaceholder)){var qa,Wa=Ke.select(".h"+mr._id+"title-math-group").node();Wa&&(N&&qr||!N&&!qr)?(rr=i.bBox(Wa),Lr=rr.width,qa=rr.height):(rr=i.bBox(Ke.node()),Lr=rr.right-Q.l-(N?Qe:kr),qa=rr.bottom-Q.t-(N?kr:Qe),!N&&Ae==="top"&&(er+=rr.height,Ia=rr.height)),Da&&(Ce.attr("transform",o(Lr/2+Ie/2,0)),Lr*=2),er=Math.max(er,N?Lr:qa)}var Ca=(N?V:Y)*2+er+$+X/2,hi=0;!N&&be.text&&fe==="bottom"&&q<=0&&(hi=Ca/2,Ca+=hi,Ia+=hi),j._hColorbarMoveTitle=hi,j._hColorbarMoveCBTitle=Ia;var wi=$+X,Kt=(N?Qe:kr)-wi/2-(N?V:0),Ft=(N?kr:Qe)-(N?he:Y+Ia-hi);L.select("."+g.cbbg).attr("x",Kt).attr("y",Ft).attr(N?"width":"height",Math.max(Ca-hi,2)).attr(N?"height":"width",Math.max(he+wi,2)).call(s.fill,se).call(s.stroke,z.bordercolor).style("stroke-width",$);var Yt=Da?Math.max(Lr-10,0):0;L.selectAll("."+g.cboutline).attr("x",(N?Qe:kr+V)+Yt).attr("y",(N?kr+Y-he:Qe)+(fa?Ee:0)).attr(N?"width":"height",Math.max(Me,2)).attr(N?"height":"width",Math.max(he-(N?2*Y+Ee:2*V+Yt),2)).call(s.stroke,z.outlinecolor).style({fill:"none","stroke-width":X});var Jt=N?Pt*Ca:0,Fr=N?0:(1-It)*Ca-Ia;if(Jt=ae?Q.l-Jt:-Jt,Fr=oe?Q.t-Fr:-Fr,L.attr("transform",o(Jt,Fr)),!N&&($||x(se).getAlpha()&&!x.equals(j.paper_bgcolor,se))){var ta=Ve.selectAll("text"),ra=ta[0].length,ca=L.select("."+g.cbbg).node(),Ba=i.bBox(ca),$a=i.getTranslate(L),Za=2;ta.each(function(Cr,xr){var Ir=0,Ur=ra-1;if(xr===Ir||xr===Ur){var Hr=i.bBox(this),xt=i.getTranslate(this),Xt;if(xr===Ur){var vr=Hr.right+xt.x,Or=Ba.right+$a.x+kr-$-Za+ee;Xt=Or-vr,Xt>0&&(Xt=0)}else if(xr===Ir){var ba=Hr.left+xt.x,Pa=Ba.left+$a.x+kr+$+Za;Xt=Pa-ba,Xt<0&&(Xt=0)}Xt&&(ra<3?this.setAttribute("transform","translate("+Xt+",0) "+this.getAttribute("transform")):this.setAttribute("visibility","hidden"))}})}var ri={},pi=A[le],Ra=M[le],tn=A[fe],on=M[fe],hn=Ca-Me;N?(P==="pixels"?(ri.y=q,ri.t=he*tn,ri.b=he*on):(ri.t=ri.b=0,ri.yt=q+O*tn,ri.yb=q-O*on),B==="pixels"?(ri.x=ee,ri.l=Ca*pi,ri.r=Ca*Ra):(ri.l=hn*pi,ri.r=hn*Ra,ri.xl=ee-U*pi,ri.xr=ee+U*Ra)):(P==="pixels"?(ri.x=ee,ri.l=he*pi,ri.r=he*Ra):(ri.l=ri.r=0,ri.xl=ee+O*pi,ri.xr=ee-O*Ra),B==="pixels"?(ri.y=1-q,ri.t=Ca*tn,ri.b=Ca*on):(ri.t=hn*tn,ri.b=hn*on,ri.yt=q-U*tn,ri.yb=q+U*on));var Tt=z.y<.5?"b":"t",ut=z.x<.5?"l":"r";F._fullLayout._reservedMargin[z._id]={};var Br={r:j.width-Kt-Jt,l:Kt+ri.r,b:j.height-Ft-Fr,t:Ft+ri.b};ae&&oe?S.autoMargin(F,z._id,ri):ae?F._fullLayout._reservedMargin[z._id][Tt]=Br[Tt]:oe||N?F._fullLayout._reservedMargin[z._id][ut]=Br[ut]:F._fullLayout._reservedMargin[z._id][Tt]=Br[Tt]}return r.syncOrAsync([S.previousPromises,ct,Ct,_t,S.previousPromises,ir],F)}function y(L,z,F){var N=z.orientation==="v",O=F._fullLayout,P=O._size,U,B,X;t.init({element:L.node(),gd:F,prepFn:function(){U=L.attr("transform"),n(L)},moveFn:function($,se){L.attr("transform",U+o($,se)),B=t.align((N?z._uFrac:z._vFrac)+$/P.w,N?z._thickFrac:z._lenFrac,0,1,z.xanchor),X=t.align((N?z._vFrac:1-z._uFrac)-se/P.h,N?z._lenFrac:z._thickFrac,0,1,z.yanchor);var le=t.getCursor(B,X,z.xanchor,z.yanchor);n(L,le)},doneFn:function(){if(n(L),B!==void 0&&X!==void 0){var $={};$[z._propPrefix+"x"]=B,$[z._propPrefix+"y"]=X,z._traceIndex!==void 0?E.call("_guiRestyle",F,$,z._traceIndex):E.call("_guiRelayout",F,$)}}})}function f(L,z,F){var N=z._levels,O=[],P=[],U,B,X=N.end+N.size/100,$=N.size,se=1.001*F[0]-.001*F[1],le=1.001*F[1]-.001*F[0];for(B=0;B<1e5&&(U=N.start+B*$,!($>0?U>=X:U<=X));B++)U>se&&U<le&&O.push(U);if(z._fillgradient)P=[0];else if(typeof z._fillcolor=="function"){var fe=z._filllevels;if(fe)for(X=fe.end+fe.size/100,$=fe.size,B=0;B<1e5&&(U=fe.start+B*$,!($>0?U>=X:U<=X));B++)U>F[0]&&U<F[1]&&P.push(U);else P=O.map(function(V){return V-N.size/2}),P.push(P[P.length-1]+N.size)}else z._fillcolor&&typeof z._fillcolor=="string"&&(P=[0]);return N.size<0&&(O.reverse(),P.reverse()),{line:O,fill:P}}function R(L,z,F){var N=L._fullLayout,O=z.orientation==="v",P={type:"linear",range:F,tickmode:z.tickmode,nticks:z.nticks,tick0:z.tick0,dtick:z.dtick,tickvals:z.tickvals,ticktext:z.ticktext,ticks:z.ticks,ticklen:z.ticklen,tickwidth:z.tickwidth,tickcolor:z.tickcolor,showticklabels:z.showticklabels,labelalias:z.labelalias,ticklabelposition:z.ticklabelposition,ticklabeloverflow:z.ticklabeloverflow,ticklabelstep:z.ticklabelstep,tickfont:z.tickfont,tickangle:z.tickangle,tickformat:z.tickformat,exponentformat:z.exponentformat,minexponent:z.minexponent,separatethousands:z.separatethousands,showexponent:z.showexponent,showtickprefix:z.showtickprefix,tickprefix:z.tickprefix,showticksuffix:z.showticksuffix,ticksuffix:z.ticksuffix,title:z.title,showline:!0,anchor:"free",side:O?"right":"bottom",position:1},U=O?"y":"x",B={type:"linear",_id:U+z._id},X={letter:U,font:N.font,noAutotickangles:U==="y",noHover:!0,noTickson:!0,noTicklabelmode:!0,noInsideRange:!0,calendar:N.calendar};function $(se,le){return r.coerce(P,B,l,se,le)}return p(P,B,$,X,N),T(P,B,$,X),B}G.exports={draw:b}}}),U9=Xe({"src/components/colorbar/index.js"(Z,G){"use strict";G.exports={moduleType:"component",name:"colorbar",attributes:x2(),supplyDefaults:c5(),draw:N9().draw,hasColorbar:s5()}}}),j9=Xe({"src/components/legend/index.js"(Z,G){"use strict";G.exports={moduleType:"component",name:"legend",layoutAttributes:p5(),supplyLayoutDefaults:d5(),draw:y5(),style:g5()}}}),q9=Xe({"src/locale-en.js"(Z,G){"use strict";G.exports={moduleType:"locale",name:"en",dictionary:{"Click to enter Colorscale title":"Click to enter Colourscale title"},format:{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"],periods:["AM","PM"],dateTime:"%a %b %e %X %Y",date:"%d/%m/%Y",time:"%H:%M:%S",decimal:".",thousands:",",grouping:[3],currency:["$",""],year:"%Y",month:"%b %Y",dayMonth:"%b %-d",dayMonthYear:"%b %-d, %Y"}}}}),V9=Xe({"src/locale-en-us.js"(Z,G){"use strict";G.exports={moduleType:"locale",name:"en-US",dictionary:{"Click to enter Colorscale title":"Click to enter Colorscale title"},format:{date:"%m/%d/%Y"}}}}),K5=Xe({"src/snapshot/cloneplot.js"(Z,G){"use strict";var v=so(),x=sa(),S=x.extendFlat,E=x.extendDeep;function e(r){var o;switch(r){case"themes__thumb":o={autosize:!0,width:150,height:150,title:{text:""},showlegend:!1,margin:{l:5,r:5,t:5,b:5,pad:0},annotations:[]};break;case"thumbnail":o={title:{text:""},hidesources:!0,showlegend:!1,borderwidth:0,bordercolor:"",margin:{l:1,r:1,t:1,b:1,pad:0},annotations:[]};break;default:o={}}return o}function t(r){var o=["xaxis","yaxis","zaxis"];return o.indexOf(r.slice(0,5))>-1}G.exports=function(o,a){var n,i=o.data,s=o.layout,h=E([],i),c=E({},s,e(a.tileClass)),m=o._context||{};if(a.width&&(c.width=a.width),a.height&&(c.height=a.height),a.tileClass==="thumbnail"||a.tileClass==="themes__thumb"){c.annotations=[];var p=Object.keys(c);for(n=0;n<p.length;n++)t(p[n])&&(c[p[n]].title={text:""});for(n=0;n<h.length;n++){var T=h[n];T.showscale=!1,T.marker&&(T.marker.showscale=!1),v.traceIs(T,"pie-like")&&(T.textposition="none")}}if(Array.isArray(a.annotations))for(n=0;n<a.annotations.length;n++)c.annotations.push(a.annotations[n]);var l=Object.keys(c).filter(function(g){return g.match(/^scene\d*$/)});if(l.length){var _={};for(a.tileClass==="thumbnail"&&(_={title:{text:""},showaxeslabels:!1,showticklabels:!1,linetickenable:!1}),n=0;n<l.length;n++){var w=c[l[n]];w.xaxis||(w.xaxis={}),w.yaxis||(w.yaxis={}),w.zaxis||(w.zaxis={}),S(w.xaxis,_),S(w.yaxis,_),S(w.zaxis,_),w._scene=null}}var A=document.createElement("div");a.tileClass&&(A.className=a.tileClass);var M={gd:A,td:A,layout:c,data:h,config:{staticPlot:a.staticPlot===void 0?!0:a.staticPlot,plotGlPixelRatio:a.plotGlPixelRatio===void 0?2:a.plotGlPixelRatio,displaylogo:a.displaylogo||!1,showLink:a.showLink||!1,showTips:a.showTips||!1,mapboxAccessToken:m.mapboxAccessToken}};return a.setBackground!=="transparent"&&(M.config.setBackground=a.setBackground||"opaque"),M.gd.defaultLayout=e(a.tileClass),M}}}),G9=Xe({"src/snapshot/toimage.js"(Z,G){"use strict";var v=Z0().EventEmitter,x=so(),S=sa(),E=Yv(),e=K5(),t=C2(),r=L2();function o(a,n){var i=new v,s=e(a,{format:"png"}),h=s.gd;h.style.position="absolute",h.style.left="-5000px",document.body.appendChild(h);function c(){var p=E.getDelay(h._fullLayout);setTimeout(function(){var T=t(h),l=document.createElement("canvas");l.id=S.randstr(),i=r({format:n.format,width:h._fullLayout.width,height:h._fullLayout.height,canvas:l,emitter:i,svg:T}),i.clean=function(){h&&document.body.removeChild(h)}},p)}var m=E.getRedrawFunc(h);return x.call("_doPlot",h,s.data,s.layout,s.config).then(m).then(c).catch(function(p){i.emit("error",p)}),i}G.exports=o}}),H9=Xe({"src/snapshot/index.js"(Z,G){"use strict";var v=Yv(),x={getDelay:v.getDelay,getRedrawFunc:v.getRedrawFunc,clone:K5(),toSVG:C2(),svgToImg:L2(),toImage:G9(),downloadImage:D5()};G.exports=x}}),W9=Xe({"src/core.js"(Z){"use strict";Z.version=fp().version,Ff(),az();var G=so(),v=Z.register=G.register,x=Vz(),S=Object.keys(x);for(e=0;e<S.length;e++)E=S[e],E.charAt(0)!=="_"&&(Z[E]=x[E]),v({moduleType:"apiMethod",name:E,fn:x[E]});var E,e;v($z()),v([i9(),l9(),Af(),h9(),m9(),x9(),T9(),k9(),I9(),X5(),O9(),rc(),U9(),j9(),rf(),M5()]),v([q9(),V9()]),window.PlotlyLocales&&Array.isArray(window.PlotlyLocales)&&(v(window.PlotlyLocales),delete window.PlotlyLocales),Z.Icons=w2();var t=rf(),r=bc();Z.Plots={resize:r.resize,graphJson:r.graphJson,sendDataToCloud:r.sendDataToCloud},Z.Fx={hover:t.hover,unhover:t.unhover,loneHover:t.loneHover,loneUnhover:t.loneUnhover},Z.Snapshot=H9(),Z.PlotSchema=e1()}}),X9=Xe({"lib/core.js"(Z,G){"use strict";G.exports=W9()}}),Sv=Xe({"src/traces/bar/attributes.js"(Z,G){"use strict";var v=af(),x=tf().axisHoverFormat,{hovertemplateAttrs:S,texttemplateAttrs:E,templatefallbackAttrs:e}=Jl(),t=ku(),r=tc(),o=i0(),a=Gh().pattern,n=Qo().extendFlat,i=r({editType:"calc",arrayOk:!0,colorEditType:"style"}),s=v.marker,h=s.line,c=n({},h.width,{dflt:0}),m=n({width:c,editType:"calc"},t("marker.line")),p=n({line:m,editType:"calc"},t("marker"),{opacity:{valType:"number",arrayOk:!0,dflt:1,min:0,max:1,editType:"style"},pattern:a,cornerradius:{valType:"any",editType:"calc"}});G.exports={x:v.x,x0:v.x0,dx:v.dx,y:v.y,y0:v.y0,dy:v.dy,xperiod:v.xperiod,yperiod:v.yperiod,xperiod0:v.xperiod0,yperiod0:v.yperiod0,xperiodalignment:v.xperiodalignment,yperiodalignment:v.yperiodalignment,xhoverformat:x("x"),yhoverformat:x("y"),text:v.text,texttemplate:E({editType:"plot"},{keys:o.eventDataKeys}),texttemplatefallback:e({editType:"plot"}),hovertext:v.hovertext,hovertemplate:S({},{keys:o.eventDataKeys}),hovertemplatefallback:e(),textposition:{valType:"enumerated",values:["inside","outside","auto","none"],dflt:"auto",arrayOk:!0,editType:"calc"},insidetextanchor:{valType:"enumerated",values:["end","middle","start"],dflt:"end",editType:"plot"},textangle:{valType:"angle",dflt:"auto",editType:"plot"},textfont:n({},i,{}),insidetextfont:n({},i,{}),outsidetextfont:n({},i,{}),constraintext:{valType:"enumerated",values:["inside","outside","both","none"],dflt:"both",editType:"calc"},cliponaxis:n({},v.cliponaxis,{}),orientation:{valType:"enumerated",values:["v","h"],editType:"calc+clearAxisTypes"},base:{valType:"any",dflt:null,arrayOk:!0,editType:"calc"},offset:{valType:"number",dflt:null,arrayOk:!0,editType:"calc"},width:{valType:"number",dflt:null,min:0,arrayOk:!0,editType:"calc"},marker:p,offsetgroup:v.offsetgroup,alignmentgroup:v.alignmentgroup,selected:{marker:{opacity:v.selected.marker.opacity,color:v.selected.marker.color,editType:"style"},textfont:v.selected.textfont,editType:"style"},unselected:{marker:{opacity:v.unselected.marker.opacity,color:v.unselected.marker.color,editType:"style"},textfont:v.unselected.textfont,editType:"style"},zorder:v.zorder}}}),U2=Xe({"src/traces/bar/layout_attributes.js"(Z,G){"use strict";G.exports={barmode:{valType:"enumerated",values:["stack","group","overlay","relative"],dflt:"group",editType:"calc"},barnorm:{valType:"enumerated",values:["","fraction","percent"],dflt:"",editType:"calc"},bargap:{valType:"number",min:0,max:1,editType:"calc"},bargroupgap:{valType:"number",min:0,max:1,dflt:0,editType:"calc"},barcornerradius:{valType:"any",editType:"calc"}}}}),j2=Xe({"src/traces/bar/style_defaults.js"(Z,G){"use strict";var v=$n(),x=wp().hasColorscale,S=_h(),E=sa().coercePattern;G.exports=function(t,r,o,a,n){var i=o("marker.color",a),s=x(t,"marker");s&&S(t,r,n,o,{prefix:"marker.",cLetter:"c"}),o("marker.line.color",v.defaultLine),x(t,"marker.line")&&S(t,r,n,o,{prefix:"marker.line.",cLetter:"c"}),o("marker.line.width"),o("marker.opacity"),E(o,"marker.pattern",i,s),o("selected.marker.color"),o("unselected.marker.color")}}}),gd=Xe({"src/traces/bar/defaults.js"(Z,G){"use strict";var v=rs(),x=sa(),S=$n(),E=so(),e=n1(),t=Qd(),r=j2(),o=Q0(),a=Sv(),n=x.coerceFont;function i(m,p,T,l){function _(b,d){return x.coerce(m,p,a,b,d)}var w=e(m,p,l,_);if(!w){p.visible=!1;return}t(m,p,l,_),_("xhoverformat"),_("yhoverformat"),_("zorder"),_("orientation",p.x&&!p.y?"h":"v"),_("base"),_("offset"),_("width"),_("text"),_("hovertext"),_("hovertemplate"),_("hovertemplatefallback");var A=_("textposition");c(m,p,l,_,A,{moduleHasSelected:!0,moduleHasUnselected:!0,moduleHasConstrain:!0,moduleHasCliponaxis:!0,moduleHasTextangle:!0,moduleHasInsideanchor:!0}),r(m,p,_,T,l);var M=(p.marker.line||{}).color,g=E.getComponentMethod("errorbars","supplyDefaults");g(m,p,M||S.defaultLine,{axis:"y"}),g(m,p,M||S.defaultLine,{axis:"x",inherit:"y"}),x.coerceSelectionMarkerOpacity(p,_)}function s(m,p){var T,l;function _(M,g){return x.coerce(l._input,l,a,M,g)}for(var w=0;w<m.length;w++)if(l=m[w],l.type==="bar"){T=l._input;var A=_("marker.cornerradius",p.barcornerradius);l.marker&&(l.marker.cornerradius=h(A)),o(T,l,p,_,p.barmode)}}function h(m){if(v(m)){if(m=+m,m>=0)return m}else if(typeof m=="string"&&(m=m.trim(),m.slice(-1)==="%"&&v(m.slice(0,-1))&&(m=+m.slice(0,-1),m>=0)))return m+"%"}function c(m,p,T,l,_,w){w=w||{};var A=w.moduleHasSelected!==!1,M=w.moduleHasUnselected!==!1,g=w.moduleHasConstrain!==!1,b=w.moduleHasCliponaxis!==!1,d=w.moduleHasTextangle!==!1,u=w.moduleHasInsideanchor!==!1,y=!!w.hasPathbar,f=Array.isArray(_)||_==="auto",R=f||_==="inside",L=f||_==="outside";if(R||L){var z=n(l,"textfont",T.font),F=x.extendFlat({},z),N=m.textfont&&m.textfont.color,O=!N;if(O&&delete F.color,n(l,"insidetextfont",F),y){var P=x.extendFlat({},z);O&&delete P.color,n(l,"pathbar.textfont",P)}L&&n(l,"outsidetextfont",z),A&&l("selected.textfont.color"),M&&l("unselected.textfont.color"),g&&l("constraintext"),b&&l("cliponaxis"),d&&l("textangle"),l("texttemplate"),l("texttemplatefallback")}R&&u&&l("insidetextanchor")}G.exports={supplyDefaults:i,crossTraceDefaults:s,handleText:c,validateCornerradius:h}}}),J5=Xe({"src/traces/bar/layout_defaults.js"(Z,G){"use strict";var v=so(),x=Go(),S=sa(),E=U2(),e=gd().validateCornerradius;G.exports=function(t,r,o){function a(A,M){return S.coerce(t,r,E,A,M)}for(var n=!1,i=!1,s=!1,h={},c=a("barmode"),m=c==="group",p=0;p<o.length;p++){var T=o[p];if(v.traceIs(T,"bar")&&T.visible)n=!0;else continue;var l=T.xaxis+T.yaxis;if(m?(h[l]&&(s=!0),h[l]=!0):(l+=T._input.offsetgroup,h.length>0&&!h[l]&&(s=!0),h[l]=!0),T.visible&&T.type==="histogram"){var _=x.getFromId({_fullLayout:r},T[T.orientation==="v"?"xaxis":"yaxis"]);_.type!=="category"&&(i=!0)}}if(!n){delete r.barmode;return}c!=="overlay"&&a("barnorm"),a("bargap",i&&!s?0:.2),a("bargroupgap");var w=a("barcornerradius");r.barcornerradius=e(w)}}}),B_=Xe({"src/traces/bar/arrays_to_calcdata.js"(Z,G){"use strict";var v=sa();G.exports=function(S,E){for(var e=0;e<S.length;e++)S[e].i=e;v.mergeArray(E.text,S,"tx"),v.mergeArray(E.hovertext,S,"htx");var t=E.marker;if(t){v.mergeArray(t.opacity,S,"mo",!0),v.mergeArray(t.color,S,"mc");var r=t.line;r&&(v.mergeArray(r.color,S,"mlc"),v.mergeArrayCastPositive(r.width,S,"mlw"))}}}}),Z9=Xe({"src/traces/bar/calc.js"(Z,G){"use strict";var v=Go(),x=tv(),S=wp().hasColorscale,E=Tp(),e=B_(),t=Od();G.exports=function(o,a){var n=v.getFromId(o,a.xaxis||"x"),i=v.getFromId(o,a.yaxis||"y"),s,h,c,m,p,T,l={msUTC:!!(a.base||a.base===0)};a.orientation==="h"?(s=n.makeCalcdata(a,"x",l),c=i.makeCalcdata(a,"y"),m=x(a,i,"y",c),p=!!a.yperiodalignment,T="y"):(s=i.makeCalcdata(a,"y",l),c=n.makeCalcdata(a,"x"),m=x(a,n,"x",c),p=!!a.xperiodalignment,T="x"),h=m.vals;for(var _=Math.min(h.length,s.length),w=new Array(_),A=0;A<_;A++)w[A]={p:h[A],s:s[A]},p&&(w[A].orig_p=c[A],w[A][T+"End"]=m.ends[A],w[A][T+"Start"]=m.starts[A]),a.ids&&(w[A].id=String(a.ids[A]));return S(a,"marker")&&E(o,a,{vals:a.marker.color,containerStr:"marker",cLetter:"c"}),S(a,"marker.line")&&E(o,a,{vals:a.marker.line.color,containerStr:"marker.line",cLetter:"c"}),e(w,a),t(w,a),w}}}),Sp=Xe({"src/traces/bar/uniform_text.js"(Z,G){"use strict";var v=Hn(),x=sa();function S(r,o,a){var n=r._fullLayout,i=n["_"+a+"Text_minsize"];if(i){var s=n.uniformtext.mode==="hide",h;switch(a){case"funnelarea":case"pie":case"sunburst":h="g.slice";break;case"treemap":case"icicle":h="g.slice, g.pathbar";break;default:h="g.points > g.point"}o.selectAll(h).each(function(c){var m=c.transform;if(m){m.scale=s&&m.hide?0:i/m.fontSize;var p=v.select(this).select("text");x.setTransormAndDisplay(p,m)}})}}function E(r,o,a){if(a.uniformtext.mode){var n=t(r),i=a.uniformtext.minsize,s=o.scale*o.fontSize;o.hide=s<i,a[n]=a[n]||1/0,o.hide||(a[n]=Math.min(a[n],Math.max(s,i)))}}function e(r,o){var a=t(r);o[a]=void 0}function t(r){return"_"+r+"Text_minsize"}G.exports={recordMinTextSize:E,clearMinTextSize:e,resizeText:S}}}),q2=Xe({"src/traces/bar/helpers.js"(Z){"use strict";var G=rs(),v=Ch(),x=sa().isArrayOrTypedArray;Z.coerceString=function(S,E,e){if(typeof E=="string"){if(E||!S.noBlank)return E}else if((typeof E=="number"||E===!0)&&!S.strict)return String(E);return e!==void 0?e:S.dflt},Z.coerceNumber=function(S,E,e){if(G(E)){E=+E;var t=S.min,r=S.max,o=t!==void 0&&E<t||r!==void 0&&E>r;if(!o)return E}return e!==void 0?e:S.dflt},Z.coerceColor=function(S,E,e){return v(E).isValid()?E:e!==void 0?e:S.dflt},Z.coerceEnumerated=function(S,E,e){return S.coerceNumber&&(E=+E),S.values.indexOf(E)!==-1?E:e!==void 0?e:S.dflt},Z.getValue=function(S,E){var e;return x(S)?E<S.length&&(e=S[E]):e=S,e},Z.getLineWidth=function(S,E){var e=0<E.mlw?E.mlw:x(S.marker.line.width)?0:S.marker.line.width;return e}}}),Nd=Xe({"src/traces/bar/style.js"(Z,G){"use strict";var v=Hn(),x=$n(),S=es(),E=sa(),e=so(),t=Sp().resizeText,r=Sv(),o=r.textfont,a=r.insidetextfont,n=r.outsidetextfont,i=q2();function s(b){var d=v.select(b).selectAll('g[class^="barlayer"]').selectAll("g.trace");t(b,d,"bar");var u=d.size(),y=b._fullLayout;d.style("opacity",function(f){return f[0].trace.opacity}).each(function(f){(y.barmode==="stack"&&u>1||y.bargap===0&&y.bargroupgap===0&&!f[0].trace.marker.line.width)&&v.select(this).attr("shape-rendering","crispEdges")}),d.selectAll("g.points").each(function(f){var R=v.select(this),L=f[0].trace;h(R,L,b)}),e.getComponentMethod("errorbars","style")(d)}function h(b,d,u){S.pointStyle(b.selectAll("path"),d,u),c(b,d,u)}function c(b,d,u){b.selectAll("text").each(function(y){var f=v.select(this),R=E.ensureUniformFontSize(u,l(f,y,d,u));S.font(f,R)})}function m(b,d,u){var y=d[0].trace;y.selectedpoints?p(u,y,b):(h(u,y,b),e.getComponentMethod("errorbars","style")(u))}function p(b,d,u){S.selectedPointStyle(b.selectAll("path"),d),T(b.selectAll("text"),d,u)}function T(b,d,u){b.each(function(y){var f=v.select(this),R;if(y.selected){R=E.ensureUniformFontSize(u,l(f,y,d,u));var L=d.selected.textfont&&d.selected.textfont.color;L&&(R.color=L),S.font(f,R)}else S.selectedTextStyle(f,d)})}function l(b,d,u,y){var f=y._fullLayout.font,R=u.textfont;if(b.classed("bartext-inside")){var L=g(d,u);R=w(u,d.i,f,L)}else b.classed("bartext-outside")&&(R=A(u,d.i,f));return R}function _(b,d,u){return M(o,b.textfont,d,u)}function w(b,d,u,y){var f=_(b,d,u),R=b._input.textfont===void 0||b._input.textfont.color===void 0||Array.isArray(b.textfont.color)&&b.textfont.color[d]===void 0;return R&&(f={color:x.contrast(y),family:f.family,size:f.size,weight:f.weight,style:f.style,variant:f.variant,textcase:f.textcase,lineposition:f.lineposition,shadow:f.shadow}),M(a,b.insidetextfont,d,f)}function A(b,d,u){var y=_(b,d,u);return M(n,b.outsidetextfont,d,y)}function M(b,d,u,y){d=d||{};var f=i.getValue(d.family,u),R=i.getValue(d.size,u),L=i.getValue(d.color,u),z=i.getValue(d.weight,u),F=i.getValue(d.style,u),N=i.getValue(d.variant,u),O=i.getValue(d.textcase,u),P=i.getValue(d.lineposition,u),U=i.getValue(d.shadow,u);return{family:i.coerceString(b.family,f,y.family),size:i.coerceNumber(b.size,R,y.size),color:i.coerceColor(b.color,L,y.color),weight:i.coerceString(b.weight,z,y.weight),style:i.coerceString(b.style,F,y.style),variant:i.coerceString(b.variant,N,y.variant),textcase:i.coerceString(b.variant,O,y.textcase),lineposition:i.coerceString(b.variant,P,y.lineposition),shadow:i.coerceString(b.variant,U,y.shadow)}}function g(b,d){return d.type==="waterfall"?d[b.dir].marker.color:b.mcc||b.mc||d.marker.color}G.exports={style:s,styleTextPoints:c,styleOnSelect:m,getInsideTextFont:w,getOutsideTextFont:A,getBarColor:g,resizeText:t}}}),tg=Xe({"src/traces/bar/plot.js"(Z,G){"use strict";var v=Hn(),x=rs(),S=sa(),E=ou(),e=$n(),t=es(),r=so(),o=Go().tickText,a=Sp(),n=a.recordMinTextSize,i=a.clearMinTextSize,s=Nd(),h=q2(),c=i0(),m=Sv(),p=m.text,T=m.textposition,l=$p().appendArrayPointValue,_=c.TEXTPAD;function w($){return $.id}function A($){if($.ids)return w}function M($){return($>0)-($<0)}function g($,se){return $<se?1:-1}function b($,se,le,fe){var V=[],Y=[],ee=fe?se:le,q=fe?le:se;return V[0]=ee.c2p($.s0,!0),Y[0]=q.c2p($.p0,!0),V[1]=ee.c2p($.s1,!0),Y[1]=q.c2p($.p1,!0),fe?[V,Y]:[Y,V]}function d($,se,le,fe){if(!se.uniformtext.mode&&u(le)){var V;return fe&&(V=fe()),$.transition().duration(le.duration).ease(le.easing).each("end",function(){V&&V()}).each("interrupt",function(){V&&V()})}else return $}function u($){return $&&$.duration>0}function y($,se,le,fe,V,Y){var ee=se.xaxis,q=se.yaxis,oe=$._fullLayout,ae=$._context.staticPlot;V||(V={mode:oe.barmode,norm:oe.barmode,gap:oe.bargap,groupgap:oe.bargroupgap},i("bar",oe));var j=S.makeTraceGroups(fe,le,"trace bars").each(function(Q){var re=v.select(this),ce=Q[0].trace,be=Q[0].t,Ae=ce.type==="waterfall",De=ce.type==="funnel",ze=ce.type==="histogram",Ze=ce.type==="bar",at=Ze||De,nt=0;Ae&&ce.connector.visible&&ce.connector.mode==="between"&&(nt=ce.connector.line.width/2);var rt=ce.orientation==="h",st=u(V),Me=S.ensureSingle(re,"g","points"),ye=A(ce),he=Me.selectAll("g.point").data(S.identity,ye);he.enter().append("g").classed("point",!0),he.exit().remove(),he.each(function(tt,ot){var Qe=v.select(this),Pt=b(tt,ee,q,rt),It=Pt[0][0],qt=Pt[0][1],Wt=Pt[1][0],kr=Pt[1][1],mr=(rt?qt-It:kr-Wt)===0;mr&&at&&h.getLineWidth(ce,tt)&&(mr=!1),mr||(mr=!x(It)||!x(qt)||!x(Wt)||!x(kr)),tt.isBlank=mr,mr&&(rt?qt=It:kr=Wt),nt&&!mr&&(rt?(It-=g(It,qt)*nt,qt+=g(It,qt)*nt):(Wt-=g(Wt,kr)*nt,kr+=g(Wt,kr)*nt));var qr,Sr;if(ce.type==="waterfall"){if(!mr){var Rr=ce[tt.dir].marker;qr=Rr.line.width,Sr=Rr.color}}else qr=h.getLineWidth(ce,tt),Sr=tt.mc||ce.marker.color;function wt(wi){var Kt=v.round(qr/2%1,2);return V.gap===0&&V.groupgap===0?v.round(Math.round(wi)-Kt,2):wi}function Ne(wi,Kt,Ft){return Ft&&wi===Kt?wi:Math.abs(wi-Kt)>=2?wt(wi):wi>Kt?Math.ceil(wi):Math.floor(wi)}var Ke=e.opacity(Sr),Te=Ke<1||qr>.01?wt:Ne;$._context.staticPlot||(It=Te(It,qt,rt),qt=Te(qt,It,rt),Wt=Te(Wt,kr,!rt),kr=Te(kr,Wt,!rt));var Ie=rt?ee.c2p:q.c2p,Ve;tt.s0>0?Ve=tt._sMax:tt.s0<0?Ve=tt._sMin:Ve=tt.s1>0?tt._sMax:tt._sMin;function Ce(wi,Kt){if(!wi)return 0;var Ft=Math.abs(rt?kr-Wt:qt-It),Yt=Math.abs(rt?qt-It:kr-Wt),Jt=Te(Math.abs(Ie(Ve,!0)-Ie(0,!0))),Fr=tt.hasB?Math.min(Ft/2,Yt/2):Math.min(Ft/2,Jt),ta;if(Kt==="%"){var ra=Math.min(50,wi);ta=Ft*(ra/100)}else ta=wi;return Te(Math.max(Math.min(ta,Fr),0))}var Ee=Ze||ze?Ce(be.cornerradiusvalue,be.cornerradiusform):0,Pe,ft,ct="M"+It+","+Wt+"V"+kr+"H"+qt+"V"+Wt+"Z",_t=0;if(Ee&&tt.s){var Ct=M(tt.s0)===0||M(tt.s)===M(tt.s0)?tt.s1:tt.s0;if(_t=Te(tt.hasB?0:Math.abs(Ie(Ve,!0)-Ie(Ct,!0))),_t<Ee){var ir=g(It,qt),rr=g(Wt,kr),er=ir===-rr?1:0;if(rt)if(tt.hasB)Pe="M"+(It+Ee*ir)+","+Wt+"A "+Ee+","+Ee+" 0 0 "+er+" "+It+","+(Wt+Ee*rr)+"V"+(kr-Ee*rr)+"A "+Ee+","+Ee+" 0 0 "+er+" "+(It+Ee*ir)+","+kr+"H"+(qt-Ee*ir)+"A "+Ee+","+Ee+" 0 0 "+er+" "+qt+","+(kr-Ee*rr)+"V"+(Wt+Ee*rr)+"A "+Ee+","+Ee+" 0 0 "+er+" "+(qt-Ee*ir)+","+Wt+"Z";else{ft=Math.abs(qt-It)+_t;var Lr=ft<Ee?Ee-Math.sqrt(ft*(2*Ee-ft)):0,fa=_t>0?Math.sqrt(_t*(2*Ee-_t)):0,Da=ir>0?Math.max:Math.min;Pe="M"+It+","+Wt+"V"+(kr-Lr*rr)+"H"+Da(qt-(Ee-_t)*ir,It)+"A "+Ee+","+Ee+" 0 0 "+er+" "+qt+","+(kr-Ee*rr-fa)+"V"+(Wt+Ee*rr+fa)+"A "+Ee+","+Ee+" 0 0 "+er+" "+Da(qt-(Ee-_t)*ir,It)+","+(Wt+Lr*rr)+"Z"}else if(tt.hasB)Pe="M"+(It+Ee*ir)+","+Wt+"A "+Ee+","+Ee+" 0 0 "+er+" "+It+","+(Wt+Ee*rr)+"V"+(kr-Ee*rr)+"A "+Ee+","+Ee+" 0 0 "+er+" "+(It+Ee*ir)+","+kr+"H"+(qt-Ee*ir)+"A "+Ee+","+Ee+" 0 0 "+er+" "+qt+","+(kr-Ee*rr)+"V"+(Wt+Ee*rr)+"A "+Ee+","+Ee+" 0 0 "+er+" "+(qt-Ee*ir)+","+Wt+"Z";else{ft=Math.abs(kr-Wt)+_t;var Ia=ft<Ee?Ee-Math.sqrt(ft*(2*Ee-ft)):0,qa=_t>0?Math.sqrt(_t*(2*Ee-_t)):0,Wa=rr>0?Math.max:Math.min;Pe="M"+(It+Ia*ir)+","+Wt+"V"+Wa(kr-(Ee-_t)*rr,Wt)+"A "+Ee+","+Ee+" 0 0 "+er+" "+(It+Ee*ir-qa)+","+kr+"H"+(qt-Ee*ir+qa)+"A "+Ee+","+Ee+" 0 0 "+er+" "+(qt-Ia*ir)+","+Wa(kr-(Ee-_t)*rr,Wt)+"V"+Wt+"Z"}}else Pe=ct}else Pe=ct;var Ca=d(S.ensureSingle(Qe,"path"),oe,V,Y);if(Ca.style("vector-effect",ae?"none":"non-scaling-stroke").attr("d",isNaN((qt-It)*(kr-Wt))||mr&&$._context.staticPlot?"M0,0Z":Pe).call(t.setClipUrl,se.layerClipId,$),!oe.uniformtext.mode&&st){var hi=t.makePointStyleFns(ce);t.singlePointStyle(tt,Ca,ce,hi,$)}f($,se,Qe,Q,ot,It,qt,Wt,kr,Ee,_t,V,Y),se.layerClipId&&t.hideOutsideRangePoint(tt,Qe.select("text"),ee,q,ce.xcalendar,ce.ycalendar)});var Oe=ce.cliponaxis===!1;t.setClipUrl(re,Oe?null:se.layerClipId,$)});r.getComponentMethod("errorbars","plot")($,j,se,V)}function f($,se,le,fe,V,Y,ee,q,oe,ae,j,Q,re){var ce=se.xaxis,be=se.yaxis,Ae=$._fullLayout,De;function ze(ft,ct,_t){var Ct=S.ensureSingle(ft,"text").text(ct).attr({class:"bartext bartext-"+De,"text-anchor":"middle","data-notex":1}).call(t.font,_t).call(E.convertToTspans,$);return Ct}var Ze=fe[0].trace,at=Ze.orientation==="h",nt=P(Ae,fe,V,ce,be);De=U(Ze,V);var rt=Q.mode==="stack"||Q.mode==="relative",st=fe[V],Me=!rt||st._outmost,ye=st.hasB,he=ae&&ae-j>_;if(!nt||De==="none"||(st.isBlank||Y===ee||q===oe)&&(De==="auto"||De==="inside")){le.select("text").remove();return}var Oe=Ae.font,tt=s.getBarColor(fe[V],Ze),ot=s.getInsideTextFont(Ze,V,Oe,tt),Qe=s.getOutsideTextFont(Ze,V,Oe),Pt=Ze.insidetextanchor||"end",It=le.datum();at?ce.type==="log"&&It.s0<=0&&(ce.range[0]<ce.range[1]?Y=0:Y=ce._length):be.type==="log"&&It.s0<=0&&(be.range[0]<be.range[1]?q=be._length:q=0);var qt=Math.abs(ee-Y),Wt=Math.abs(oe-q),kr=qt-2*_,mr=Wt-2*_,qr,Sr,Rr,wt,Ne;if(De==="outside"&&!Me&&!st.hasB&&(De="inside"),De==="auto")if(Me){De="inside",Ne=S.ensureUniformFontSize($,ot),qr=ze(le,nt,Ne),Sr=t.bBox(qr.node()),Rr=Sr.width,wt=Sr.height;var Ke=Rr>0&&wt>0,Te;he?ye?Te=R(kr-2*ae,mr,Rr,wt,at)||R(kr,mr-2*ae,Rr,wt,at):at?Te=R(kr-(ae-j),mr,Rr,wt,at)||R(kr,mr-2*(ae-j),Rr,wt,at):Te=R(kr,mr-(ae-j),Rr,wt,at)||R(kr-2*(ae-j),mr,Rr,wt,at):Te=R(kr,mr,Rr,wt,at),Ke&&Te?De="inside":(De="outside",qr.remove(),qr=null)}else De="inside";if(!qr){Ne=S.ensureUniformFontSize($,De==="outside"?Qe:ot),qr=ze(le,nt,Ne);var Ie=qr.attr("transform");if(qr.attr("transform",""),Sr=t.bBox(qr.node()),Rr=Sr.width,wt=Sr.height,qr.attr("transform",Ie),Rr<=0||wt<=0){qr.remove();return}}var Ve=Ze.textangle,Ce,Ee;De==="outside"?(Ee=Ze.constraintext==="both"||Ze.constraintext==="outside",Ce=O(Y,ee,q,oe,Sr,{isHorizontal:at,constrained:Ee,angle:Ve})):(Ee=Ze.constraintext==="both"||Ze.constraintext==="inside",Ce=F(Y,ee,q,oe,Sr,{isHorizontal:at,constrained:Ee,angle:Ve,anchor:Pt,hasB:ye,r:ae,overhead:j})),Ce.fontSize=Ne.size,n(Ze.type==="histogram"?"bar":Ze.type,Ce,Ae),st.transform=Ce;var Pe=d(qr,Ae,Q,re);S.setTransormAndDisplay(Pe,Ce)}function R($,se,le,fe,V){if($<0||se<0)return!1;var Y=le<=$&&fe<=se,ee=le<=se&&fe<=$,q=V?$>=le*(se/fe):se>=fe*($/le);return Y||ee||q}function L($){return $==="auto"?0:$}function z($,se){var le=Math.PI/180*se,fe=Math.abs(Math.sin(le)),V=Math.abs(Math.cos(le));return{x:$.width*V+$.height*fe,y:$.width*fe+$.height*V}}function F($,se,le,fe,V,Y){var ee=!!Y.isHorizontal,q=!!Y.constrained,oe=Y.angle||0,ae=Y.anchor,j=ae==="end",Q=ae==="start",re=Y.leftToRight||0,ce=(re+1)/2,be=1-ce,Ae=Y.hasB,De=Y.r,ze=Y.overhead,Ze=V.width,at=V.height,nt=Math.abs(se-$),rt=Math.abs(fe-le),st=nt>2*_&&rt>2*_?_:0;nt-=2*st,rt-=2*st;var Me=L(oe);oe==="auto"&&!(Ze<=nt&&at<=rt)&&(Ze>nt||at>rt)&&(!(Ze>rt||at>nt)||Ze<at!=nt<rt)&&(Me+=90);var ye=z(V,Me),he,Oe;if(De&&De-ze>_){var tt=N($,se,le,fe,ye,De,ze,ee,Ae);he=tt.scale,Oe=tt.pad}else he=1,q&&(he=Math.min(1,nt/ye.x,rt/ye.y)),Oe=0;var ot=V.left*be+V.right*ce,Qe=(V.top+V.bottom)/2,Pt=($+_)*be+(se-_)*ce,It=(le+fe)/2,qt=0,Wt=0;if(Q||j){var kr=(ee?ye.x:ye.y)/2;De&&(j||Ae)&&(st+=Oe);var mr=ee?g($,se):g(le,fe);ee?Q?(Pt=$+mr*st,qt=-mr*kr):(Pt=se-mr*st,qt=mr*kr):Q?(It=le+mr*st,Wt=-mr*kr):(It=fe-mr*st,Wt=mr*kr)}return{textX:ot,textY:Qe,targetX:Pt,targetY:It,anchorX:qt,anchorY:Wt,scale:he,rotate:Me}}function N($,se,le,fe,V,Y,ee,q,oe){var ae=Math.max(0,Math.abs(se-$)-2*_),j=Math.max(0,Math.abs(fe-le)-2*_),Q=Y-_,re=ee?Q-Math.sqrt(Q*Q-(Q-ee)*(Q-ee)):Q,ce=oe?Q*2:q?Q-ee:2*re,be=oe?Q*2:q?2*re:Q-ee,Ae,De,ze,Ze,at;return V.y/V.x>=j/(ae-ce)?Ze=j/V.y:V.y/V.x<=(j-be)/ae?Ze=ae/V.x:!oe&&q?(Ae=V.x*V.x+V.y*V.y/4,De=-2*V.x*(ae-Q)-V.y*(j/2-Q),ze=(ae-Q)*(ae-Q)+(j/2-Q)*(j/2-Q)-Q*Q,Ze=(-De+Math.sqrt(De*De-4*Ae*ze))/(2*Ae)):oe?(Ae=(V.x*V.x+V.y*V.y)/4,De=-V.x*(ae/2-Q)-V.y*(j/2-Q),ze=(ae/2-Q)*(ae/2-Q)+(j/2-Q)*(j/2-Q)-Q*Q,Ze=(-De+Math.sqrt(De*De-4*Ae*ze))/(2*Ae)):(Ae=V.x*V.x/4+V.y*V.y,De=-V.x*(ae/2-Q)-2*V.y*(j-Q),ze=(ae/2-Q)*(ae/2-Q)+(j-Q)*(j-Q)-Q*Q,Ze=(-De+Math.sqrt(De*De-4*Ae*ze))/(2*Ae)),Ze=Math.min(1,Ze),q?at=Math.max(0,Q-Math.sqrt(Math.max(0,Q*Q-(Q-(j-V.y*Ze)/2)*(Q-(j-V.y*Ze)/2)))-ee):at=Math.max(0,Q-Math.sqrt(Math.max(0,Q*Q-(Q-(ae-V.x*Ze)/2)*(Q-(ae-V.x*Ze)/2)))-ee),{scale:Ze,pad:at}}function O($,se,le,fe,V,Y){var ee=!!Y.isHorizontal,q=!!Y.constrained,oe=Y.angle||0,ae=V.width,j=V.height,Q=Math.abs(se-$),re=Math.abs(fe-le),ce;ee?ce=re>2*_?_:0:ce=Q>2*_?_:0;var be=1;q&&(be=ee?Math.min(1,re/j):Math.min(1,Q/ae));var Ae=L(oe),De=z(V,Ae),ze=(ee?De.x:De.y)/2,Ze=(V.left+V.right)/2,at=(V.top+V.bottom)/2,nt=($+se)/2,rt=(le+fe)/2,st=0,Me=0,ye=ee?g(se,$):g(le,fe);return ee?(nt=se-ye*ce,st=ye*ze):(rt=fe+ye*ce,Me=-ye*ze),{textX:Ze,textY:at,targetX:nt,targetY:rt,anchorX:st,anchorY:Me,scale:be,rotate:Ae}}function P($,se,le,fe,V){var Y=se[0].trace,ee=Y.texttemplate,q;return ee?q=B($,se,le,fe,V):Y.textinfo?q=X(se,le,fe,V):q=h.getValue(Y.text,le),h.coerceString(p,q)}function U($,se){var le=h.getValue($.textposition,se);return h.coerceEnumerated(T,le)}function B($,se,le,fe,V){var Y=se[0].trace,ee=S.castOption(Y,le,"texttemplate");if(!ee)return"";var q=Y.type==="histogram",oe=Y.type==="waterfall",ae=Y.type==="funnel",j=Y.orientation==="h",Q,re,ce,be;j?(Q="y",re=V,ce="x",be=fe):(Q="x",re=fe,ce="y",be=V);function Ae(st){return o(re,re.c2l(st),!0).text}function De(st){return o(be,be.c2l(st),!0).text}var ze=se[le],Ze={};Ze.label=ze.p,Ze.labelLabel=Ze[Q+"Label"]=Ae(ze.p);var at=S.castOption(Y,ze.i,"text");(at===0||at)&&(Ze.text=at),Ze.value=ze.s,Ze.valueLabel=Ze[ce+"Label"]=De(ze.s);var nt={};l(nt,Y,ze.i),(q||nt.x===void 0)&&(nt.x=j?Ze.value:Ze.label),(q||nt.y===void 0)&&(nt.y=j?Ze.label:Ze.value),(q||nt.xLabel===void 0)&&(nt.xLabel=j?Ze.valueLabel:Ze.labelLabel),(q||nt.yLabel===void 0)&&(nt.yLabel=j?Ze.labelLabel:Ze.valueLabel),oe&&(Ze.delta=+ze.rawS||ze.s,Ze.deltaLabel=De(Ze.delta),Ze.final=ze.v,Ze.finalLabel=De(Ze.final),Ze.initial=Ze.final-Ze.delta,Ze.initialLabel=De(Ze.initial)),ae&&(Ze.value=ze.s,Ze.valueLabel=De(Ze.value),Ze.percentInitial=ze.begR,Ze.percentInitialLabel=S.formatPercent(ze.begR),Ze.percentPrevious=ze.difR,Ze.percentPreviousLabel=S.formatPercent(ze.difR),Ze.percentTotal=ze.sumR,Ze.percenTotalLabel=S.formatPercent(ze.sumR));var rt=S.castOption(Y,ze.i,"customdata");return rt&&(Ze.customdata=rt),S.texttemplateString({data:[nt,Ze,Y._meta],fallback:Y.texttemplatefallback,labels:Ze,locale:$._d3locale,template:ee})}function X($,se,le,fe){var V=$[0].trace,Y=V.orientation==="h",ee=V.type==="waterfall",q=V.type==="funnel";function oe(rt){var st=Y?fe:le;return o(st,rt,!0).text}function ae(rt){var st=Y?le:fe;return o(st,+rt,!0).text}var j=V.textinfo,Q=$[se],re=j.split("+"),ce=[],be,Ae=function(rt){return re.indexOf(rt)!==-1};if(Ae("label")&&ce.push(oe($[se].p)),Ae("text")&&(be=S.castOption(V,Q.i,"text"),(be===0||be)&&ce.push(be)),ee){var De=+Q.rawS||Q.s,ze=Q.v,Ze=ze-De;Ae("initial")&&ce.push(ae(Ze)),Ae("delta")&&ce.push(ae(De)),Ae("final")&&ce.push(ae(ze))}if(q){Ae("value")&&ce.push(ae(Q.s));var at=0;Ae("percent initial")&&at++,Ae("percent previous")&&at++,Ae("percent total")&&at++;var nt=at>1;Ae("percent initial")&&(be=S.formatPercent(Q.begR),nt&&(be+=" of initial"),ce.push(be)),Ae("percent previous")&&(be=S.formatPercent(Q.difR),nt&&(be+=" of previous"),ce.push(be)),Ae("percent total")&&(be=S.formatPercent(Q.sumR),nt&&(be+=" of total"),ce.push(be))}return ce.join("<br>")}G.exports={plot:y,toMoveInsideBar:F}}}),f1=Xe({"src/traces/bar/hover.js"(Z,G){"use strict";var v=rf(),x=so(),S=$n(),E=sa().fillText,e=q2().getLineWidth,t=Go().hoverLabelText,r=Hs().BADNUM;function o(i,s,h,c,m){var p=a(i,s,h,c,m);if(p){var T=p.cd,l=T[0].trace,_=T[p.index];return p.color=n(l,_),x.getComponentMethod("errorbars","hoverInfo")(_,l,p),[p]}}function a(i,s,h,c,m){var p=i.cd,T=p[0].trace,l=p[0].t,_=c==="closest",w=T.type==="waterfall",A=i.maxHoverDistance,M=i.maxSpikeDistance,g,b,d,u,y,f,R;T.orientation==="h"?(g=h,b=s,d="y",u="x",y=fe,f=$):(g=s,b=h,d="x",u="y",f=fe,y=$);var L=T[d+"period"],z=_||L;function F(be){return O(be,-1)}function N(be){return O(be,1)}function O(be,Ae){var De=be.w;return be[d]+Ae*De/2}function P(be){return be[d+"End"]-be[d+"Start"]}var U=_?F:L?function(be){return be.p-P(be)/2}:function(be){return Math.min(F(be),be.p-l.bardelta/2)},B=_?N:L?function(be){return be.p+P(be)/2}:function(be){return Math.max(N(be),be.p+l.bardelta/2)};function X(be,Ae,De){return m.finiteRange&&(De=0),v.inbox(be-g,Ae-g,De+Math.min(1,Math.abs(Ae-be)/R)-1)}function $(be){return X(U(be),B(be),A)}function se(be){return X(F(be),N(be),M)}function le(be){var Ae=be[u];if(w){var De=Math.abs(be.rawS)||0;b>0?Ae+=De:b<0&&(Ae-=De)}return Ae}function fe(be){var Ae=b,De=be.b,ze=le(be);return v.inbox(De-Ae,ze-Ae,A+(ze-Ae)/(ze-De)-1)}function V(be){var Ae=b,De=be.b,ze=le(be);return v.inbox(De-Ae,ze-Ae,M+(ze-Ae)/(ze-De)-1)}var Y=i[d+"a"],ee=i[u+"a"];R=Math.abs(Y.r2c(Y.range[1])-Y.r2c(Y.range[0]));function q(be){return(y(be)+f(be))/2}var oe=v.getDistanceFunction(c,y,f,q);if(v.getClosest(p,oe,i),i.index!==!1&&p[i.index].p!==r){z||(U=function(be){return Math.min(F(be),be.p-l.bargroupwidth/2)},B=function(be){return Math.max(N(be),be.p+l.bargroupwidth/2)});var ae=i.index,j=p[ae],Q=T.base?j.b+j.s:j.s;i[u+"0"]=i[u+"1"]=ee.c2p(j[u],!0),i[u+"LabelVal"]=Q;var re=l.extents[l.extents.round(j.p)];i[d+"0"]=Y.c2p(_?U(j):re[0],!0),i[d+"1"]=Y.c2p(_?B(j):re[1],!0);var ce=j.orig_p!==void 0;return i[d+"LabelVal"]=ce?j.orig_p:j.p,i.labelLabel=t(Y,i[d+"LabelVal"],T[d+"hoverformat"]),i.valueLabel=t(ee,i[u+"LabelVal"],T[u+"hoverformat"]),i.baseLabel=t(ee,j.b,T[u+"hoverformat"]),i.spikeDistance=(V(j)+se(j))/2,i[d+"Spike"]=Y.c2p(j.p,!0),E(j,T,i),i.hovertemplate=T.hovertemplate,i}}function n(i,s){var h=s.mcc||i.marker.color,c=s.mlcc||i.marker.line.color,m=e(i,s);if(S.opacity(h))return h;if(S.opacity(c)&&m)return c}G.exports={hoverPoints:o,hoverOnBars:a,getTraceColor:n}}}),Y9=Xe({"src/traces/bar/event_data.js"(Z,G){"use strict";G.exports=function(x,S,E){return x.x="xVal"in S?S.xVal:S.x,x.y="yVal"in S?S.yVal:S.y,S.xa&&(x.xaxis=S.xa),S.ya&&(x.yaxis=S.ya),E.orientation==="h"?(x.label=x.y,x.value=x.x):(x.label=x.x,x.value=x.y),x}}}),h1=Xe({"src/traces/bar/select.js"(Z,G){"use strict";G.exports=function(S,E){var e=S.cd,t=S.xaxis,r=S.yaxis,o=e[0].trace,a=o.type==="funnel",n=o.orientation==="h",i=[],s;if(E===!1)for(s=0;s<e.length;s++)e[s].selected=0;else for(s=0;s<e.length;s++){var h=e[s],c="ct"in h?h.ct:v(h,t,r,n,a);E.contains(c,!1,s,S)?(i.push({pointNumber:s,x:t.c2d(h.x),y:r.c2d(h.y)}),h.selected=1):h.selected=0}return i};function v(x,S,E,e,t){var r=S.c2p(e?x.s0:x.p0,!0),o=S.c2p(e?x.s1:x.p1,!0),a=E.c2p(e?x.p0:x.s0,!0),n=E.c2p(e?x.p1:x.s1,!0);return t?[(r+o)/2,(a+n)/2]:e?[o,(a+n)/2]:[(r+o)/2,n]}}}),K9=Xe({"src/traces/bar/index.js"(Z,G){"use strict";G.exports={attributes:Sv(),layoutAttributes:U2(),supplyDefaults:gd().supplyDefaults,crossTraceDefaults:gd().crossTraceDefaults,supplyLayoutDefaults:J5(),calc:Z9(),crossTraceCalc:eg().crossTraceCalc,colorbar:pp(),arraysToCalcdata:B_(),plot:tg().plot,style:Nd().style,styleOnSelect:Nd().styleOnSelect,hoverPoints:f1().hoverPoints,eventData:Y9(),selectPoints:h1(),moduleType:"trace",name:"bar",basePlotModule:Kf(),categories:["bar-like","cartesian","svg","bar","oriented","errorBarsOK","showLegend","zoomScale"],animatable:!0,meta:{}}}}),J9=Xe({"lib/bar.js"(Z,G){"use strict";G.exports=K9()}}),N_=Xe({"src/traces/box/attributes.js"(Z,G){"use strict";var v=$d(),x=af(),S=Sv(),E=sh(),e=tf().axisHoverFormat,{hovertemplateAttrs:t,templatefallbackAttrs:r}=Jl(),o=Qo().extendFlat,a=x.marker,n=a.line;G.exports={y:{valType:"data_array",editType:"calc+clearAxisTypes"},x:{valType:"data_array",editType:"calc+clearAxisTypes"},x0:{valType:"any",editType:"calc+clearAxisTypes"},y0:{valType:"any",editType:"calc+clearAxisTypes"},dx:{valType:"number",editType:"calc"},dy:{valType:"number",editType:"calc"},xperiod:x.xperiod,yperiod:x.yperiod,xperiod0:x.xperiod0,yperiod0:x.yperiod0,xperiodalignment:x.xperiodalignment,yperiodalignment:x.yperiodalignment,xhoverformat:e("x"),yhoverformat:e("y"),name:{valType:"string",editType:"calc+clearAxisTypes"},q1:{valType:"data_array",editType:"calc+clearAxisTypes"},median:{valType:"data_array",editType:"calc+clearAxisTypes"},q3:{valType:"data_array",editType:"calc+clearAxisTypes"},lowerfence:{valType:"data_array",editType:"calc"},upperfence:{valType:"data_array",editType:"calc"},notched:{valType:"boolean",editType:"calc"},notchwidth:{valType:"number",min:0,max:.5,dflt:.25,editType:"calc"},notchspan:{valType:"data_array",editType:"calc"},boxpoints:{valType:"enumerated",values:["all","outliers","suspectedoutliers",!1],editType:"calc"},jitter:{valType:"number",min:0,max:1,editType:"calc"},pointpos:{valType:"number",min:-2,max:2,editType:"calc"},sdmultiple:{valType:"number",min:0,editType:"calc",dflt:1},sizemode:{valType:"enumerated",values:["quartiles","sd"],editType:"calc",dflt:"quartiles"},boxmean:{valType:"enumerated",values:[!0,"sd",!1],editType:"calc"},mean:{valType:"data_array",editType:"calc"},sd:{valType:"data_array",editType:"calc"},orientation:{valType:"enumerated",values:["v","h"],editType:"calc+clearAxisTypes"},quartilemethod:{valType:"enumerated",values:["linear","exclusive","inclusive"],dflt:"linear",editType:"calc"},width:{valType:"number",min:0,dflt:0,editType:"calc"},marker:{outliercolor:{valType:"color",dflt:"rgba(0, 0, 0, 0)",editType:"style"},symbol:o({},a.symbol,{arrayOk:!1,editType:"plot"}),opacity:o({},a.opacity,{arrayOk:!1,dflt:1,editType:"style"}),angle:o({},a.angle,{arrayOk:!1,editType:"calc"}),size:o({},a.size,{arrayOk:!1,editType:"calc"}),color:o({},a.color,{arrayOk:!1,editType:"style"}),line:{color:o({},n.color,{arrayOk:!1,dflt:E.defaultLine,editType:"style"}),width:o({},n.width,{arrayOk:!1,dflt:0,editType:"style"}),outliercolor:{valType:"color",editType:"style"},outlierwidth:{valType:"number",min:0,dflt:1,editType:"style"},editType:"style"},editType:"plot"},line:{color:{valType:"color",editType:"style"},width:{valType:"number",min:0,dflt:2,editType:"style"},editType:"plot"},fillcolor:v(),whiskerwidth:{valType:"number",min:0,max:1,dflt:.5,editType:"calc"},showwhiskers:{valType:"boolean",editType:"calc"},offsetgroup:S.offsetgroup,alignmentgroup:S.alignmentgroup,selected:{marker:x.selected.marker,editType:"style"},unselected:{marker:x.unselected.marker,editType:"style"},text:o({},x.text,{}),hovertext:o({},x.hovertext,{}),hovertemplate:t({}),hovertemplatefallback:r(),hoveron:{valType:"flaglist",flags:["boxes","points"],dflt:"boxes+points",editType:"style"},zorder:x.zorder}}}),U_=Xe({"src/traces/box/layout_attributes.js"(Z,G){"use strict";G.exports={boxmode:{valType:"enumerated",values:["group","overlay"],dflt:"overlay",editType:"calc"},boxgap:{valType:"number",min:0,max:1,dflt:.3,editType:"calc"},boxgroupgap:{valType:"number",min:0,max:1,dflt:.3,editType:"calc"}}}}),j_=Xe({"src/traces/box/defaults.js"(Z,G){"use strict";var v=sa(),x=so(),S=$n(),E=Qd(),e=Q0(),t=a1(),r=N_();function o(s,h,c,m){function p(u,y){return v.coerce(s,h,r,u,y)}if(a(s,h,p,m),h.visible!==!1){E(s,h,m,p),p("xhoverformat"),p("yhoverformat");var T=h._hasPreCompStats;T&&(p("lowerfence"),p("upperfence")),p("line.color",(s.marker||{}).color||c),p("line.width"),p("fillcolor",S.addOpacity(h.line.color,.5));var l=!1;if(T){var _=p("mean"),w=p("sd");_&&_.length&&(l=!0,w&&w.length&&(l="sd"))}p("whiskerwidth");var A=p("sizemode"),M;A==="quartiles"&&(M=p("boxmean",l)),p("showwhiskers",A==="quartiles"),(A==="sd"||M==="sd")&&p("sdmultiple"),p("width"),p("quartilemethod");var g=!1;if(T){var b=p("notchspan");b&&b.length&&(g=!0)}else v.validate(s.notchwidth,r.notchwidth)&&(g=!0);var d=p("notched",g);d&&p("notchwidth"),n(s,h,p,{prefix:"box"}),p("zorder")}}function a(s,h,c,m){function p(X){var $=0;return X&&X.length&&($+=1,v.isArrayOrTypedArray(X[0])&&X[0].length&&($+=1)),$}function T(X){return v.validate(s[X],r[X])}var l=c("y"),_=c("x"),w;if(h.type==="box"){var A=c("q1"),M=c("median"),g=c("q3");h._hasPreCompStats=A&&A.length&&M&&M.length&&g&&g.length,w=Math.min(v.minRowLength(A),v.minRowLength(M),v.minRowLength(g))}var b=p(l),d=p(_),u=b&&v.minRowLength(l),y=d&&v.minRowLength(_),f=m.calendar,R={autotypenumbers:m.autotypenumbers},L,z;if(h._hasPreCompStats)switch(String(d)+String(b)){case"00":var F=T("x0")||T("dx"),N=T("y0")||T("dy");N&&!F?L="h":L="v",z=w;break;case"10":L="v",z=Math.min(w,y);break;case"20":L="h",z=Math.min(w,_.length);break;case"01":L="h",z=Math.min(w,u);break;case"02":L="v",z=Math.min(w,l.length);break;case"12":L="v",z=Math.min(w,y,l.length);break;case"21":L="h",z=Math.min(w,_.length,u);break;case"11":z=0;break;case"22":var O=!1,P;for(P=0;P<_.length;P++)if(t(_[P],f,R)==="category"){O=!0;break}if(O)L="v",z=Math.min(w,y,l.length);else{for(P=0;P<l.length;P++)if(t(l[P],f,R)==="category"){O=!0;break}O?(L="h",z=Math.min(w,_.length,u)):(L="v",z=Math.min(w,y,l.length))}break}else b>0?(L="v",d>0?z=Math.min(y,u):z=Math.min(u)):d>0?(L="h",z=Math.min(y)):z=0;if(!z){h.visible=!1;return}h._length=z;var U=c("orientation",L);h._hasPreCompStats?U==="v"&&d===0?(c("x0",0),c("dx",1)):U==="h"&&b===0&&(c("y0",0),c("dy",1)):U==="v"&&d===0?c("x0"):U==="h"&&b===0&&c("y0");var B=x.getComponentMethod("calendars","handleTraceDefaults");B(s,h,["x","y"],m)}function n(s,h,c,m){var p=m.prefix,T=v.coerce2(s,h,r,"marker.outliercolor"),l=c("marker.line.outliercolor"),_="outliers";h._hasPreCompStats?_="all":(T||l)&&(_="suspectedoutliers");var w=c(p+"points",_);w?(c("jitter",w==="all"?.3:0),c("pointpos",w==="all"?-1.5:0),c("marker.symbol"),c("marker.opacity"),c("marker.size"),c("marker.angle"),c("marker.color",h.line.color),c("marker.line.color"),c("marker.line.width"),w==="suspectedoutliers"&&(c("marker.line.outliercolor",h.marker.color),c("marker.line.outlierwidth")),c("selected.marker.color"),c("unselected.marker.color"),c("selected.marker.size"),c("unselected.marker.size"),c("text"),c("hovertext")):delete h.marker;var A=c("hoveron");(A==="all"||A.indexOf("points")!==-1)&&(c("hovertemplate"),c("hovertemplatefallback")),v.coerceSelectionMarkerOpacity(h,c)}function i(s,h){var c,m;function p(w){return v.coerce(m._input,m,r,w)}for(var T=0;T<s.length;T++){m=s[T];var l=m.type;if(l==="box"||l==="violin"){c=m._input;var _=h[l+"mode"];_==="group"&&e(c,m,h,p,_)}}}G.exports={supplyDefaults:o,crossTraceDefaults:i,handleSampleDefaults:a,handlePointsDefaults:n}}}),V2=Xe({"src/traces/box/layout_defaults.js"(Z,G){"use strict";var v=so(),x=sa(),S=U_();function E(t,r,o,a,n){for(var i=n+"Layout",s=!1,h=0;h<o.length;h++){var c=o[h];if(v.traceIs(c,i)){s=!0;break}}s&&(a(n+"mode"),a(n+"gap"),a(n+"groupgap"))}function e(t,r,o){function a(n,i){return x.coerce(t,r,S,n,i)}E(t,r,o,a,"box")}G.exports={supplyLayoutDefaults:e,_supply:E}}}),$5=Xe({"src/traces/box/calc.js"(Z,G){"use strict";var v=rs(),x=Go(),S=tv(),E=sa(),e=Hs().BADNUM,t=E._;G.exports=function(A,M){var g=A._fullLayout,b=x.getFromId(A,M.xaxis||"x"),d=x.getFromId(A,M.yaxis||"y"),u=[],y=M.type==="violin"?"_numViolins":"_numBoxes",f,R,L,z,F,N,O;M.orientation==="h"?(L=b,z="x",F=d,N="y",O=!!M.yperiodalignment):(L=d,z="y",F=b,N="x",O=!!M.xperiodalignment);var P=r(M,N,F,g[y]),U=P[0],B=P[1],X=E.distinctVals(U,F),$=X.vals,se=X.minDiff/2,le,fe,V,Y,ee,q,oe=(M.boxpoints||M.points)==="all"?E.identity:function(mr){return mr.v<le.lf||mr.v>le.uf};if(M._hasPreCompStats){var ae=M[z],j=function(mr){return L.d2c((M[mr]||[])[f])},Q=1/0,re=-1/0;for(f=0;f<M._length;f++){var ce=U[f];if(v(ce)){if(le={},le.pos=le[N]=ce,O&&B&&(le.orig_p=B[f]),le.q1=j("q1"),le.med=j("median"),le.q3=j("q3"),fe=[],ae&&E.isArrayOrTypedArray(ae[f]))for(R=0;R<ae[f].length;R++)q=L.d2c(ae[f][R]),q!==e&&(ee={v:q,i:[f,R]},i(ee,M,[f,R]),fe.push(ee));if(le.pts=fe.sort(h),V=le[z]=fe.map(c),Y=V.length,le.med!==e&&le.q1!==e&&le.q3!==e&&le.med>=le.q1&&le.q3>=le.med){var be=j("lowerfence");le.lf=be!==e&&be<=le.q1?be:m(le,V,Y);var Ae=j("upperfence");le.uf=Ae!==e&&Ae>=le.q3?Ae:p(le,V,Y);var De=j("mean");le.mean=De!==e?De:Y?E.mean(V,Y):(le.q1+le.q3)/2;var ze=j("sd");le.sd=De!==e&&ze>=0?ze:Y?E.stdev(V,Y,le.mean):le.q3-le.q1,le.lo=T(le),le.uo=l(le);var Ze=j("notchspan");Ze=Ze!==e&&Ze>0?Ze:_(le,Y),le.ln=le.med-Ze,le.un=le.med+Ze;var at=le.lf,nt=le.uf;M.boxpoints&&V.length&&(at=Math.min(at,V[0]),nt=Math.max(nt,V[Y-1])),M.notched&&(at=Math.min(at,le.ln),nt=Math.max(nt,le.un)),le.min=at,le.max=nt}else{E.warn(["Invalid input - make sure that q1 <= median <= q3","q1 = "+le.q1,"median = "+le.med,"q3 = "+le.q3].join(` |
no test coverage detected