webapp.dist.embedded_plan.js Maven / Gradle / Ivy
(()=>{var t={1918:(t,e,n)=>{"use strict";n.d(e,{Tj:()=>a});var r="$";function i(){}function o(t,e){var n=new i;if(t instanceof i)t.each((function(t,e){n.set(e,t)}));else if(Array.isArray(t)){var r,o=-1,a=t.length;if(null==e)for(;++o{"use strict";n.d(e,{J:()=>c});var r={value:function(){}};function i(){for(var t,e=0,n=arguments.length,r={};e=0&&(e=t.slice(n+1),t=t.slice(0,n)),t&&!r.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:e}}))),c=-1,l=o.length;if(!(arguments.length<2)){if(null!=e&&"function"!=typeof e)throw new Error("invalid callback: "+e);for(;++c0)for(var n,r,i=new Array(n),o=0;o{"use strict";n.d(e,{sw:()=>c,Nu:()=>f});var r={},i={};function o(t){return new Function("d","return {"+t.map((function(t,e){return JSON.stringify(t)+": d["+e+"]"})).join(",")+"}")}function a(t){var e=new RegExp('["'+t+"\n\r]"),n=t.charCodeAt(0);function a(t,e){var o,a=[],u=t.length,c=0,l=0,f=u<=0,s=!1;function h(){if(f)return i;if(s)return s=!1,r;var e,o,a=c;if(34===t.charCodeAt(a)){for(;c++=u?f=!0:10===(o=t.charCodeAt(c++))?s=!0:13===o&&(s=!0,10===t.charCodeAt(c)&&++c),t.slice(a+1,e-1).replace(/""/g,'"')}for(;c{t.exports={graphlib:n(5653),dagre:n(8193),intersect:n(8070),render:n(2330),util:n(7998),version:n(5872)}},2744:(t,e,n)=>{var r=n(7998);function i(t,e,n,i){var o=t.append("marker").attr("id",e).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","strokeWidth").attr("markerWidth",8).attr("markerHeight",6).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").style("stroke-width",1).style("stroke-dasharray","1,0");r.applyStyle(o,n[i+"Style"]),n[i+"Class"]&&o.attr("class",n[i+"Class"])}t.exports={default:i,normal:i,vee:function(t,e,n,i){var o=t.append("marker").attr("id",e).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","strokeWidth").attr("markerWidth",8).attr("markerHeight",6).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 L 4 5 z").style("stroke-width",1).style("stroke-dasharray","1,0");r.applyStyle(o,n[i+"Style"]),n[i+"Class"]&&o.attr("class",n[i+"Class"])},undirected:function(t,e,n,i){var o=t.append("marker").attr("id",e).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","strokeWidth").attr("markerWidth",8).attr("markerHeight",6).attr("orient","auto").append("path").attr("d","M 0 5 L 10 5").style("stroke-width",1).style("stroke-dasharray","1,0");r.applyStyle(o,n[i+"Style"]),n[i+"Class"]&&o.attr("class",n[i+"Class"])}}},7076:(t,e,n)=>{var r=n(7998),i=n(4747),o=n(3965);t.exports=function(t,e){var n=e.nodes().filter((function(t){return r.isSubgraph(e,t)})),a=t.selectAll("g.cluster").data(n,(function(t){return t}));return a.selectAll("*").remove(),a.enter().append("g").attr("class","cluster").attr("id",(function(t){return e.node(t).id})).style("opacity",0),a=t.selectAll("g.cluster"),r.applyTransition(a,e).style("opacity",1),a.each((function(t){var n=e.node(t),r=i.select(this);i.select(this).append("rect");var a=r.append("g").attr("class","label");o(a,n,n.clusterLabelPos)})),a.selectAll("rect").each((function(t){var n=e.node(t),o=i.select(this);r.applyStyle(o,n.style)})),r.applyTransition(a.exit(),e).style("opacity",0).remove(),a}},3784:(t,e,n)=>{"use strict";var r=n(3451),i=n(3965),o=n(7998),a=n(4747);t.exports=function(t,e){var n=t.selectAll("g.edgeLabel").data(e.edges(),(function(t){return o.edgeToId(t)})).classed("update",!0);return n.selectAll("*").remove(),n.enter().append("g").classed("edgeLabel",!0).style("opacity",0),(n=t.selectAll("g.edgeLabel")).each((function(t){var n=e.edge(t),o=i(a.select(this),e.edge(t),0,0).classed("label",!0),u=o.node().getBBox();n.labelId&&o.attr("id",n.labelId),r.has(n,"width")||(n.width=u.width),r.has(n,"height")||(n.height=u.height)})),o.applyTransition(n.exit(),e).style("opacity",0).remove(),n}},7863:(t,e,n)=>{"use strict";var r=n(3451),i=n(5408),o=n(7998),a=n(4747);function u(t,e){var n=a.line().x((function(t){return t.x})).y((function(t){return t.y}));return n.curve(t.curve),n(e)}t.exports=function(t,e,n){var c=t.selectAll("g.edgePath").data(e.edges(),(function(t){return o.edgeToId(t)})).classed("update",!0);return function(t,e){var n=t.enter().append("g").attr("class","edgePath").style("opacity",0);n.append("path").attr("class","path").attr("d",(function(t){var n=e.edge(t),i=e.node(t.v).elem;return u(n,r.range(n.points.length).map((function(){return e=(t=i).getBBox(),{x:(n=t.ownerSVGElement.getScreenCTM().inverse().multiply(t.getScreenCTM()).translate(e.width/2,e.height/2)).e,y:n.f};var t,e,n})))})),n.append("defs")}(c,e),function(t,e){var n=t.exit();o.applyTransition(n,e).style("opacity",0).remove(),o.applyTransition(n.select("path.path"),e).attr("d",(function(t){var n=e.node(t.v);return n?u({},r.range(this.getTotalLength()).map((function(){return n}))):a.select(this).attr("d")}))}(c,e),c=t.selectAll("g.edgePath"),o.applyTransition(c,e).style("opacity",1),c.each((function(t){var n=a.select(this),r=e.edge(t);r.elem=this,r.id&&n.attr("id",r.id),o.applyClass(n,r.class,(n.classed("update")?"update ":"")+"edgePath")})),c.selectAll("path.path").each((function(t){var n=e.edge(t);n.arrowheadId=r.uniqueId("arrowhead");var c=a.select(this).attr("marker-end",(function(){return"url("+(t=location.href,e=n.arrowheadId,t.split("#")[0]+"#"+e+")");var t,e})).style("fill","none");o.applyTransition(c,e).attr("d",(function(t){return function(t,e){var n=t.edge(e),r=t.node(e.v),o=t.node(e.w),a=n.points.slice(1,n.points.length-1);return a.unshift(i(r,a[0])),a.push(i(o,a[a.length-1])),u(n,a)}(e,t)})),o.applyStyle(c,n.style)})),c.selectAll("defs *").remove(),c.selectAll("defs").each((function(t){var r=e.edge(t);(0,n[r.arrowhead])(a.select(this),r.arrowheadId,r,"arrowhead")})),c}},2490:(t,e,n)=>{"use strict";var r=n(3451),i=n(3965),o=n(7998),a=n(4747);t.exports=function(t,e,n){var u=e.nodes().filter((function(t){return!o.isSubgraph(e,t)})),c=t.selectAll("g.node").data(u,(function(t){return t})).classed("update",!0);return c.selectAll("*").remove(),c.enter().append("g").attr("class","node").style("opacity",0),(c=t.selectAll("g.node")).each((function(t){var u=e.node(t),c=a.select(this);o.applyClass(c,u.class,(c.classed("update")?"update ":"")+"node");var l=c.append("g").attr("class","label"),f=i(l,u),s=n[u.shape],h=r.pick(f.node().getBBox(),"width","height");u.elem=this,u.id&&c.attr("id",u.id),u.labelId&&l.attr("id",u.labelId),r.has(u,"width")&&(h.width=u.width),r.has(u,"height")&&(h.height=u.height),h.width+=u.paddingLeft+u.paddingRight,h.height+=u.paddingTop+u.paddingBottom,l.attr("transform","translate("+(u.paddingLeft-u.paddingRight)/2+","+(u.paddingTop-u.paddingBottom)/2+")");var d=s(a.select(this),h,u);o.applyStyle(d,u.style);var p=d.node().getBBox();u.width=p.width,u.height=p.height})),o.applyTransition(c.exit(),e).style("opacity",0).remove(),c}},4747:(t,e,n)=>{var r;if(!r)try{r=n(2549)}catch(t){}r||(r=window.d3),t.exports=r},8193:(t,e,n)=>{var r;try{r=n(6246)}catch(t){}r||(r=window.dagre),t.exports=r},5653:(t,e,n)=>{var r;try{r=n(8362)}catch(t){}r||(r=window.graphlib),t.exports=r},8070:(t,e,n)=>{t.exports={node:n(5408),circle:n(7672),ellipse:n(1772),polygon:n(7536),rect:n(8782)}},7672:(t,e,n)=>{var r=n(1772);t.exports=function(t,e,n){return r(t,e,e,n)}},1772:t=>{t.exports=function(t,e,n,r){var i=t.x,o=t.y,a=i-r.x,u=o-r.y,c=Math.sqrt(e*e*u*u+n*n*a*a),l=Math.abs(e*n*a/c);r.x{function e(t,e){return t*e>0}t.exports=function(t,n,r,i){var o,a,u,c,l,f,s,h,d,p,v,g,y;if(o=n.y-t.y,u=t.x-n.x,l=n.x*t.y-t.x*n.y,d=o*r.x+u*r.y+l,p=o*i.x+u*i.y+l,0!==d&&0!==p&&e(d,p))return;if(a=i.y-r.y,c=r.x-i.x,f=i.x*r.y-r.x*i.y,s=a*t.x+c*t.y+f,h=a*n.x+c*n.y+f,0!==s&&0!==h&&e(s,h))return;if(0===(v=o*c-a*u))return;return g=Math.abs(v/2),{x:(y=u*f-c*l)<0?(y-g)/v:(y+g)/v,y:(y=a*l-o*f)<0?(y-g)/v:(y+g)/v}}},5408:t=>{t.exports=function(t,e){return t.intersect(e)}},7536:(t,e,n)=>{var r=n(7170);t.exports=function(t,e,n){var i=t.x,o=t.y,a=[],u=Number.POSITIVE_INFINITY,c=Number.POSITIVE_INFINITY;e.forEach((function(t){u=Math.min(u,t.x),c=Math.min(c,t.y)}));for(var l=i-t.width/2-u,f=o-t.height/2-c,s=0;s1&&a.sort((function(t,e){var r=t.x-n.x,i=t.y-n.y,o=Math.sqrt(r*r+i*i),a=e.x-n.x,u=e.y-n.y,c=Math.sqrt(a*a+u*u);return o{t.exports=function(t,e){var n,r,i=t.x,o=t.y,a=e.x-i,u=e.y-o,c=t.width/2,l=t.height/2;Math.abs(u)*c>Math.abs(a)*l?(u<0&&(l=-l),n=0===u?0:l*a/u,r=l):(a<0&&(c=-c),n=c,r=0===a?0:c*u/a);return{x:i+n,y:o+r}}},517:(t,e,n)=>{var r=n(7998);t.exports=function(t,e){var n=t.append("foreignObject").attr("width","100000"),i=n.append("xhtml:div");i.attr("xmlns","http://www.w3.org/1999/xhtml");var o=e.label;switch(typeof o){case"function":i.insert(o);break;case"object":i.insert((function(){return o}));break;default:i.html(o)}r.applyStyle(i,e.labelStyle),i.style("display","inline-block"),i.style("white-space","nowrap");var a=i.node().getBoundingClientRect();return n.attr("width",a.width).attr("height",a.height),n}},3965:(t,e,n)=>{var r=n(399),i=n(517),o=n(2734);t.exports=function(t,e,n){var a=e.label,u=t.append("g");"svg"===e.labelType?o(u,e):"string"!=typeof a||"html"===e.labelType?i(u,e):r(u,e);var c,l=u.node().getBBox();switch(n){case"top":c=-e.height/2;break;case"bottom":c=e.height/2-l.height;break;default:c=-l.height/2}return u.attr("transform","translate("+-l.width/2+","+c+")"),u}},2734:(t,e,n)=>{var r=n(7998);t.exports=function(t,e){var n=t;return n.node().appendChild(e.label),r.applyStyle(n,e.labelStyle),n}},399:(t,e,n)=>{var r=n(7998);t.exports=function(t,e){for(var n=t.append("text"),i=function(t){for(var e,n="",r=!1,i=0;i{var r;try{r=n(2543)}catch(t){}r||(r=window._),t.exports=r},5593:(t,e,n)=>{"use strict";var r=n(7998),i=n(4747);t.exports=function(t,e){var n=t.filter((function(){return!i.select(this).classed("update")}));function o(t){var n=e.node(t);return"translate("+n.x+","+n.y+")"}n.attr("transform",o),r.applyTransition(t,e).style("opacity",1).attr("transform",o),r.applyTransition(n.selectAll("rect"),e).attr("width",(function(t){return e.node(t).width})).attr("height",(function(t){return e.node(t).height})).attr("x",(function(t){return-e.node(t).width/2})).attr("y",(function(t){return-e.node(t).height/2}))}},9283:(t,e,n)=>{"use strict";var r=n(7998),i=n(4747),o=n(3451);t.exports=function(t,e){function n(t){var n=e.edge(t);return o.has(n,"x")?"translate("+n.x+","+n.y+")":""}t.filter((function(){return!i.select(this).classed("update")})).attr("transform",n),r.applyTransition(t,e).style("opacity",1).attr("transform",n)}},3321:(t,e,n)=>{"use strict";var r=n(7998),i=n(4747);t.exports=function(t,e){function n(t){var n=e.node(t);return"translate("+n.x+","+n.y+")"}t.filter((function(){return!i.select(this).classed("update")})).attr("transform",n),r.applyTransition(t,e).style("opacity",1).attr("transform",n)}},2330:(t,e,n)=>{var r=n(3451),i=n(4747),o=n(8193).layout;t.exports=function(){var t=n(2490),e=n(7076),i=n(3784),l=n(7863),f=n(3321),s=n(9283),h=n(5593),d=n(3096),p=n(2744),v=function(n,v){!function(t){t.nodes().forEach((function(e){var n=t.node(e);r.has(n,"label")||t.children(e).length||(n.label=e),r.has(n,"paddingX")&&r.defaults(n,{paddingLeft:n.paddingX,paddingRight:n.paddingX}),r.has(n,"paddingY")&&r.defaults(n,{paddingTop:n.paddingY,paddingBottom:n.paddingY}),r.has(n,"padding")&&r.defaults(n,{paddingLeft:n.padding,paddingRight:n.padding,paddingTop:n.padding,paddingBottom:n.padding}),r.defaults(n,a),r.each(["paddingLeft","paddingRight","paddingTop","paddingBottom"],(function(t){n[t]=Number(n[t])})),r.has(n,"width")&&(n._prevWidth=n.width),r.has(n,"height")&&(n._prevHeight=n.height)})),t.edges().forEach((function(e){var n=t.edge(e);r.has(n,"label")||(n.label=""),r.defaults(n,u)}))}(v),n.selectAll("*").remove();var g=c(n,"output"),y=c(g,"clusters"),_=c(g,"edgePaths"),m=i(c(g,"edgeLabels"),v),b=t(c(g,"nodes"),v,d);o(v),f(b,v),s(m,v),l(_,v,p);var w=e(y,v);h(w,v),function(t){r.each(t.nodes(),(function(e){var n=t.node(e);r.has(n,"_prevWidth")?n.width=n._prevWidth:delete n.width,r.has(n,"_prevHeight")?n.height=n._prevHeight:delete n.height,delete n._prevWidth,delete n._prevHeight}))}(v)};return v.createNodes=function(e){return arguments.length?(t=e,v):t},v.createClusters=function(t){return arguments.length?(e=t,v):e},v.createEdgeLabels=function(t){return arguments.length?(i=t,v):i},v.createEdgePaths=function(t){return arguments.length?(l=t,v):l},v.shapes=function(t){return arguments.length?(d=t,v):d},v.arrows=function(t){return arguments.length?(p=t,v):p},v};var a={paddingLeft:10,paddingRight:10,paddingTop:10,paddingBottom:10,rx:0,ry:0,shape:"rect"},u={arrowhead:"normal",curve:i.curveLinear};function c(t,e){var n=t.select("g."+e);return n.empty()&&(n=t.append("g").attr("class",e)),n}},3096:(t,e,n)=>{"use strict";var r=n(8782),i=n(1772),o=n(7672),a=n(7536);t.exports={rect:function(t,e,n){var i=t.insert("rect",":first-child").attr("rx",n.rx).attr("ry",n.ry).attr("x",-e.width/2).attr("y",-e.height/2).attr("width",e.width).attr("height",e.height);return n.intersect=function(t){return r(n,t)},i},ellipse:function(t,e,n){var r=e.width/2,o=e.height/2,a=t.insert("ellipse",":first-child").attr("x",-e.width/2).attr("y",-e.height/2).attr("rx",r).attr("ry",o);return n.intersect=function(t){return i(n,r,o,t)},a},circle:function(t,e,n){var r=Math.max(e.width,e.height)/2,i=t.insert("circle",":first-child").attr("x",-e.width/2).attr("y",-e.height/2).attr("r",r);return n.intersect=function(t){return o(n,r,t)},i},diamond:function(t,e,n){var r=e.width*Math.SQRT2/2,i=e.height*Math.SQRT2/2,o=[{x:0,y:-i},{x:-r,y:0},{x:0,y:i},{x:r,y:0}],u=t.insert("polygon",":first-child").attr("points",o.map((function(t){return t.x+","+t.y})).join(" "));return n.intersect=function(t){return a(n,o,t)},u}}},7998:(t,e,n)=>{var r=n(3451);t.exports={isSubgraph:function(t,e){return!!t.children(e).length},edgeToId:function(t){return o(t.v)+":"+o(t.w)+":"+o(t.name)},applyStyle:function(t,e){e&&t.attr("style",e)},applyClass:function(t,e,n){e&&t.attr("class",e).attr("class",n+" "+t.attr("class"))},applyTransition:function(t,e){var n=e.graph();if(r.isPlainObject(n)){var i=n.transition;if(r.isFunction(i))return i(t)}return t}};var i=/:/g;function o(t){return t?String(t).replace(i,"\\:"):""}},5872:t=>{t.exports="0.6.1"},2549:(t,e,n)=>{"use strict";n.r(e),n.d(e,{active:()=>Vo,arc:()=>em,area:()=>um,areaRadial:()=>gm,ascending:()=>i,axisBottom:()=>ct,axisLeft:()=>lt,axisRight:()=>ut,axisTop:()=>at,bisect:()=>l,bisectLeft:()=>c,bisectRight:()=>u,bisector:()=>o,brush:()=>pa,brushSelection:()=>sa,brushX:()=>ha,brushY:()=>da,chord:()=>xa,clientPoint:()=>Oe,cluster:()=>rd,color:()=>gn,create:()=>Pe,creator:()=>wt,cross:()=>h,csv:()=>Op,csvFormat:()=>fu,csvFormatRows:()=>su,csvParse:()=>cu,csvParseRows:()=>lu,cubehelix:()=>Zn,curveBasis:()=>Gm,curveBasisClosed:()=>Zm,curveBasisOpen:()=>tb,curveBundle:()=>nb,curveCardinal:()=>ob,curveCardinalClosed:()=>ub,curveCardinalOpen:()=>lb,curveCatmullRom:()=>hb,curveCatmullRomClosed:()=>pb,curveCatmullRomOpen:()=>gb,curveLinear:()=>rm,curveLinearClosed:()=>_b,curveMonotoneX:()=>Tb,curveMonotoneY:()=>Sb,curveNatural:()=>Ab,curveStep:()=>zb,curveStepAfter:()=>Rb,curveStepBefore:()=>Ib,customEvent:()=>xe,descending:()=>d,deviation:()=>g,dispatch:()=>vt,drag:()=>Ke,dragDisable:()=>Ve,dragEnable:()=>He,dsvFormat:()=>au,easeBack:()=>Lo,easeBackIn:()=>Io,easeBackInOut:()=>Lo,easeBackOut:()=>Ro,easeBounce:()=>Ao,easeBounceIn:()=>No,easeBounceInOut:()=>Po,easeBounceOut:()=>Ao,easeCircle:()=>_o,easeCircleIn:()=>go,easeCircleInOut:()=>_o,easeCircleOut:()=>yo,easeCubic:()=>ro,easeCubicIn:()=>eo,easeCubicInOut:()=>ro,easeCubicOut:()=>no,easeElastic:()=>Uo,easeElasticIn:()=>Do,easeElasticInOut:()=>Fo,easeElasticOut:()=>Uo,easeExp:()=>vo,easeExpIn:()=>ho,easeExpInOut:()=>vo,easeExpOut:()=>po,easeLinear:()=>Ki,easePoly:()=>ao,easePolyIn:()=>io,easePolyInOut:()=>ao,easePolyOut:()=>oo,easeQuad:()=>to,easeQuadIn:()=>Zi,easeQuadInOut:()=>to,easeQuadOut:()=>Ji,easeSin:()=>so,easeSinIn:()=>lo,easeSinInOut:()=>so,easeSinOut:()=>fo,entries:()=>Ja,event:()=>ye,extent:()=>y,forceCenter:()=>yu,forceCollide:()=>Au,forceLink:()=>Iu,forceManyBody:()=>ju,forceRadial:()=>qu,forceSimulation:()=>Fu,forceX:()=>Bu,forceY:()=>Vu,format:()=>Ju,formatDefaultLocale:()=>rc,formatLocale:()=>nc,formatPrefix:()=>tc,formatSpecifier:()=>Qu,geoAlbers:()=>kh,geoAlbersUsa:()=>Mh,geoArea:()=>Jc,geoAzimuthalEqualArea:()=>Nh,geoAzimuthalEqualAreaRaw:()=>Ch,geoAzimuthalEquidistant:()=>Ph,geoAzimuthalEquidistantRaw:()=>Ah,geoBounds:()=>Wl,geoCentroid:()=>rf,geoCircle:()=>vf,geoClipAntimeridian:()=>Tf,geoClipCircle:()=>Sf,geoClipExtent:()=>Pf,geoClipRectangle:()=>Af,geoConicConformal:()=>Dh,geoConicConformalRaw:()=>Oh,geoConicEqualArea:()=>Eh,geoConicEqualAreaRaw:()=>xh,geoConicEquidistant:()=>qh,geoConicEquidistantRaw:()=>jh,geoContains:()=>Zf,geoDistance:()=>Vf,geoEquirectangular:()=>Fh,geoEquirectangularRaw:()=>Uh,geoGnomonic:()=>Vh,geoGnomonicRaw:()=>Bh,geoGraticule:()=>es,geoGraticule10:()=>ns,geoIdentity:()=>Wh,geoInterpolate:()=>rs,geoLength:()=>jf,geoMercator:()=>Ih,geoMercatorRaw:()=>zh,geoNaturalEarth1:()=>$h,geoNaturalEarth1Raw:()=>Yh,geoOrthographic:()=>Qh,geoOrthographicRaw:()=>Xh,geoPath:()=>ah,geoProjection:()=>mh,geoProjectionMutator:()=>bh,geoRotation:()=>hf,geoStereographic:()=>Kh,geoStereographicRaw:()=>Gh,geoStream:()=>jc,geoTransform:()=>uh,geoTransverseMercator:()=>Jh,geoTransverseMercatorRaw:()=>Zh,hcl:()=>Bn,hierarchy:()=>od,histogram:()=>P,hsl:()=>En,html:()=>Ap,interpolate:()=>mr,interpolateArray:()=>hr,interpolateBasis:()=>er,interpolateBasisClosed:()=>nr,interpolateCool:()=>S_,interpolateCubehelix:()=>Wr,interpolateCubehelixDefault:()=>M_,interpolateCubehelixLong:()=>Yr,interpolateDate:()=>dr,interpolateHcl:()=>Br,interpolateHclLong:()=>Vr,interpolateHsl:()=>Ur,interpolateHslLong:()=>Fr,interpolateInferno:()=>I_,interpolateLab:()=>jr,interpolateMagma:()=>z_,interpolateNumber:()=>pr,interpolateObject:()=>vr,interpolatePlasma:()=>R_,interpolateRainbow:()=>N_,interpolateRgb:()=>cr,interpolateRgbBasis:()=>fr,interpolateRgbBasisClosed:()=>sr,interpolateRound:()=>br,interpolateString:()=>_r,interpolateTransformCss:()=>Nr,interpolateTransformSvg:()=>Ar,interpolateViridis:()=>P_,interpolateWarm:()=>T_,interpolateZoom:()=>Or,interrupt:()=>Ci,interval:()=>pi,isoFormat:()=>o_,isoParse:()=>u_,json:()=>Pp,keys:()=>Ka,lab:()=>On,line:()=>am,lineRadial:()=>vm,linkHorizontal:()=>Mm,linkRadial:()=>Sm,linkVertical:()=>Tm,local:()=>Ie,map:()=>qa,matcher:()=>Nt,max:()=>L,mean:()=>O,median:()=>D,merge:()=>U,min:()=>F,mouse:()=>De,namespace:()=>_t,namespaces:()=>yt,nest:()=>Ba,now:()=>oi,pack:()=>Nd,packEnclose:()=>sd,packSiblings:()=>kd,pairs:()=>f,partition:()=>Ld,path:()=>Pa,permute:()=>j,pie:()=>fm,pointRadial:()=>ym,polygonArea:()=>rp,polygonCentroid:()=>ip,polygonContains:()=>lp,polygonHull:()=>cp,polygonLength:()=>fp,precisionFixed:()=>ic,precisionPrefix:()=>oc,precisionRound:()=>ac,quadtree:()=>ku,quantile:()=>z,quantize:()=>$r,queue:()=>_p,radialArea:()=>gm,radialLine:()=>vm,randomBates:()=>kp,randomExponential:()=>Mp,randomIrwinHall:()=>Ep,randomLogNormal:()=>xp,randomNormal:()=>wp,randomUniform:()=>bp,range:()=>E,request:()=>Cp,rgb:()=>bn,ribbon:()=>Da,scaleBand:()=>Vp,scaleIdentity:()=>nv,scaleImplicit:()=>qp,scaleLinear:()=>ev,scaleLog:()=>fv,scaleOrdinal:()=>Bp,scalePoint:()=>Wp,scalePow:()=>hv,scaleQuantile:()=>pv,scaleQuantize:()=>vv,scaleSequential:()=>L_,scaleSqrt:()=>dv,scaleThreshold:()=>gv,scaleTime:()=>__,scaleUtc:()=>m_,scan:()=>q,schemeCategory10:()=>w_,schemeCategory20:()=>k_,schemeCategory20b:()=>x_,schemeCategory20c:()=>E_,select:()=>Ae,selectAll:()=>Ue,selection:()=>Ne,selector:()=>Et,selectorAll:()=>Mt,set:()=>Ga,shuffle:()=>B,stack:()=>Ub,stackOffsetDiverging:()=>jb,stackOffsetExpand:()=>Fb,stackOffsetNone:()=>Lb,stackOffsetSilhouette:()=>qb,stackOffsetWiggle:()=>Bb,stackOrderAscending:()=>Vb,stackOrderDescending:()=>Wb,stackOrderInsideOut:()=>Yb,stackOrderNone:()=>Ob,stackOrderReverse:()=>$b,stratify:()=>qd,style:()=>Yt,sum:()=>V,symbol:()=>Ym,symbolCircle:()=>Cm,symbolCross:()=>Nm,symbolDiamond:()=>zm,symbolSquare:()=>Dm,symbolStar:()=>Om,symbolTriangle:()=>Fm,symbolWye:()=>Hm,symbols:()=>Wm,text:()=>zp,thresholdFreedmanDiaconis:()=>I,thresholdScott:()=>R,thresholdSturges:()=>A,tickIncrement:()=>C,tickStep:()=>N,ticks:()=>S,timeDay:()=>Uv,timeDays:()=>Fv,timeFormat:()=>Bg,timeFormatDefaultLocale:()=>n_,timeFormatLocale:()=>jg,timeFriday:()=>Yv,timeFridays:()=>Jv,timeHour:()=>Lv,timeHours:()=>Ov,timeInterval:()=>mv,timeMillisecond:()=>wv,timeMilliseconds:()=>xv,timeMinute:()=>zv,timeMinutes:()=>Iv,timeMonday:()=>Bv,timeMondays:()=>Qv,timeMonth:()=>ng,timeMonths:()=>rg,timeParse:()=>Vg,timeSaturday:()=>$v,timeSaturdays:()=>tg,timeSecond:()=>Nv,timeSeconds:()=>Av,timeSunday:()=>qv,timeSundays:()=>Xv,timeThursday:()=>Wv,timeThursdays:()=>Zv,timeTuesday:()=>Vv,timeTuesdays:()=>Gv,timeWednesday:()=>Hv,timeWednesdays:()=>Kv,timeWeek:()=>qv,timeWeeks:()=>Xv,timeYear:()=>og,timeYears:()=>ag,timeout:()=>di,timer:()=>ci,timerFlush:()=>li,touch:()=>Fe,touches:()=>je,transition:()=>Xi,transpose:()=>H,tree:()=>Xd,treemap:()=>Jd,treemapBinary:()=>tp,treemapDice:()=>Rd,treemapResquarify:()=>np,treemapSlice:()=>Qd,treemapSliceDice:()=>ep,treemapSquarify:()=>Zd,tsv:()=>Dp,tsvFormat:()=>vu,tsvFormatRows:()=>gu,tsvParse:()=>du,tsvParseRows:()=>pu,utcDay:()=>pg,utcDays:()=>vg,utcFormat:()=>Hg,utcFriday:()=>xg,utcFridays:()=>Ng,utcHour:()=>sg,utcHours:()=>hg,utcMillisecond:()=>wv,utcMilliseconds:()=>xv,utcMinute:()=>cg,utcMinutes:()=>lg,utcMonday:()=>_g,utcMondays:()=>Mg,utcMonth:()=>zg,utcMonths:()=>Ig,utcParse:()=>Wg,utcSaturday:()=>Eg,utcSaturdays:()=>Ag,utcSecond:()=>Nv,utcSeconds:()=>Av,utcSunday:()=>yg,utcSundays:()=>kg,utcThursday:()=>wg,utcThursdays:()=>Cg,utcTuesday:()=>mg,utcTuesdays:()=>Tg,utcWednesday:()=>bg,utcWednesdays:()=>Sg,utcWeek:()=>yg,utcWeeks:()=>kg,utcYear:()=>Lg,utcYears:()=>Og,values:()=>Za,variance:()=>v,version:()=>r,voronoi:()=>Iw,window:()=>Bt,xml:()=>Ip,zip:()=>Y,zoom:()=>$w,zoomIdentity:()=>Dw,zoomTransform:()=>Uw});var r="4.13.0";function i(t,e){return te?1:t>=e?0:NaN}function o(t){var e;return 1===t.length&&(e=t,t=function(t,n){return i(e(t),n)}),{left:function(e,n,r,i){for(null==r&&(r=0),null==i&&(i=e.length);r>>1;t(e[o],n)<0?r=o+1:i=o}return r},right:function(e,n,r,i){for(null==r&&(r=0),null==i&&(i=e.length);r>>1;t(e[o],n)>0?i=o:r=o+1}return r}}}var a=o(i),u=a.right,c=a.left;const l=u;function f(t,e){null==e&&(e=s);for(var n=0,r=t.length-1,i=t[0],o=new Array(r<0?0:r);nt?1:e>=t?0:NaN}function p(t){return null===t?NaN:+t}function v(t,e){var n,r,i=t.length,o=0,a=-1,u=0,c=0;if(null==e)for(;++a1)return c/(o-1)}function g(t,e){var n=v(t,e);return n?Math.sqrt(n):n}function y(t,e){var n,r,i,o=t.length,a=-1;if(null==e){for(;++a=n)for(r=i=n;++an&&(r=n),i=n)for(r=i=n;++an&&(r=n),i0)return[t];if((r=e0)for(t=Math.ceil(t/a),e=Math.floor(e/a),o=new Array(i=Math.ceil(e-t+1));++u=0?(o>=k?10:o>=M?5:o>=T?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(o>=k?10:o>=M?5:o>=T?2:1)}function N(t,e,n){var r=Math.abs(e-t)/Math.max(0,n),i=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),o=r/i;return o>=k?i*=10:o>=M?i*=5:o>=T&&(i*=2),es;)h.pop(),--d;var p,v=new Array(d+1);for(i=0;i<=d;++i)(p=v[i]=[]).x0=i>0?h[i-1]:f,p.x1=i=1)return+n(t[r-1],r-1,t);var r,i=(r-1)*e,o=Math.floor(i),a=+n(t[o],o,t);return a+(+n(t[o+1],o+1,t)-a)*(i-o)}}function I(t,e,n){return t=b.call(t,p).sort(i),Math.ceil((n-e)/(2*(z(t,.75)-z(t,.25))*Math.pow(t.length,-1/3)))}function R(t,e,n){return Math.ceil((n-e)/(3.5*g(t)*Math.pow(t.length,-1/3)))}function L(t,e){var n,r,i=t.length,o=-1;if(null==e){for(;++o=n)for(r=n;++or&&(r=n)}else for(;++o=n)for(r=n;++or&&(r=n);return r}function O(t,e){var n,r=t.length,i=r,o=-1,a=0;if(null==e)for(;++o=0;)for(e=(r=t[i]).length;--e>=0;)n[--a]=r[e];return n}function F(t,e){var n,r,i=t.length,o=-1;if(null==e){for(;++o=n)for(r=n;++on&&(r=n)}else for(;++o=n)for(r=n;++on&&(r=n);return r}function j(t,e){for(var n=e.length,r=new Array(n);n--;)r[n]=t[e[n]];return r}function q(t,e){if(n=t.length){var n,r,o=0,a=0,u=t[a];for(null==e&&(e=i);++o=0&&(e=t.slice(n+1),t=t.slice(0,n)),t&&!r.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:e}}))),a=-1,u=o.length;if(!(arguments.length<2)){if(null!=e&&"function"!=typeof e)throw new Error("invalid callback: "+e);for(;++a0)for(var n,r,i=new Array(n),o=0;o=0&&"xmlns"!==(e=t.slice(0,n))&&(t=t.slice(n+1)),yt.hasOwnProperty(e)?{space:yt[e],local:t}:t}function mt(t){return function(){var e=this.ownerDocument,n=this.namespaceURI;return n===gt&&e.documentElement.namespaceURI===gt?e.createElement(t):e.createElementNS(n,t)}}function bt(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function wt(t){var e=_t(t);return(e.local?bt:mt)(e)}function xt(){}function Et(t){return null==t?xt:function(){return this.querySelector(t)}}function kt(){return[]}function Mt(t){return null==t?kt:function(){return this.querySelectorAll(t)}}var Tt=function(t){return function(){return this.matches(t)}};if("undefined"!=typeof document){var St=document.documentElement;if(!St.matches){var Ct=St.webkitMatchesSelector||St.msMatchesSelector||St.mozMatchesSelector||St.oMatchesSelector;Tt=function(t){return function(){return Ct.call(this,t)}}}}const Nt=Tt;function At(t){return new Array(t.length)}function Pt(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}Pt.prototype={constructor:Pt,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};var zt="$";function It(t,e,n,r,i,o){for(var a,u=0,c=e.length,l=o.length;ue?1:t>=e?0:NaN}function Ot(t){return function(){this.removeAttribute(t)}}function Dt(t){return function(){this.removeAttributeNS(t.space,t.local)}}function Ut(t,e){return function(){this.setAttribute(t,e)}}function Ft(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function jt(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttribute(t):this.setAttribute(t,n)}}function qt(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,n)}}function Bt(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function Vt(t){return function(){this.style.removeProperty(t)}}function Ht(t,e,n){return function(){this.style.setProperty(t,e,n)}}function Wt(t,e,n){return function(){var r=e.apply(this,arguments);null==r?this.style.removeProperty(t):this.style.setProperty(t,r,n)}}function Yt(t,e){return t.style.getPropertyValue(e)||Bt(t).getComputedStyle(t,null).getPropertyValue(e)}function $t(t){return function(){delete this[t]}}function Xt(t,e){return function(){this[t]=e}}function Qt(t,e){return function(){var n=e.apply(this,arguments);null==n?delete this[t]:this[t]=n}}function Gt(t){return t.trim().split(/^|\s+/)}function Kt(t){return t.classList||new Zt(t)}function Zt(t){this._node=t,this._names=Gt(t.getAttribute("class")||"")}function Jt(t,e){for(var n=Kt(t),r=-1,i=e.length;++r=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var ge={},ye=null;"undefined"!=typeof document&&("onmouseenter"in document.documentElement||(ge={mouseenter:"mouseover",mouseleave:"mouseout"}));function _e(t,e,n){return t=me(t,e,n),function(e){var n=e.relatedTarget;n&&(n===this||8&n.compareDocumentPosition(this))||t.call(this,e)}}function me(t,e,n){return function(r){var i=ye;ye=r;try{t.call(this,this.__data__,e,n)}finally{ye=i}}}function be(t){return function(){var e=this.__on;if(e){for(var n,r=0,i=-1,o=e.length;r=b&&(b=m+1);!(_=g[b])&&++b=0;)(r=i[o])&&(a&&a!==r.nextSibling&&a.parentNode.insertBefore(r,a),a=r);return this},sort:function(t){function e(e,n){return e&&n?t(e.__data__,n.__data__):!e-!n}t||(t=Lt);for(var n=this._groups,r=n.length,i=new Array(r),o=0;o1?this.each((null==e?Vt:"function"==typeof e?Wt:Ht)(t,e,null==n?"":n)):Yt(this.node(),t)},property:function(t,e){return arguments.length>1?this.each((null==e?$t:"function"==typeof e?Qt:Xt)(t,e)):this.node()[t]},classed:function(t,e){var n=Gt(t+"");if(arguments.length<2){for(var r=Kt(this.node()),i=-1,o=n.length;++i=0&&(e=t.slice(n+1),t=t.slice(0,n)),{type:t,name:e}}))}(t+""),a=o.length;if(!(arguments.length<2)){for(u=e?we:be,null==n&&(n=!1),r=0;rs}c.mouse("drag")}function v(){Ae(ye.view).on("mousemove.drag mouseup.drag",null),He(ye.view,n),Be(),c.mouse("end")}function g(){if(i.apply(this,arguments)){var t,e,n=ye.changedTouches,r=o.apply(this,arguments),a=n.length;for(t=0;t>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):(e=cn.exec(t))?yn(parseInt(e[1],16)):(e=ln.exec(t))?new wn(e[1],e[2],e[3],1):(e=fn.exec(t))?new wn(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=sn.exec(t))?_n(e[1],e[2],e[3],e[4]):(e=hn.exec(t))?_n(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=dn.exec(t))?xn(e[1],e[2]/100,e[3]/100,1):(e=pn.exec(t))?xn(e[1],e[2]/100,e[3]/100,e[4]):vn.hasOwnProperty(t)?yn(vn[t]):"transparent"===t?new wn(NaN,NaN,NaN,0):null}function yn(t){return new wn(t>>16&255,t>>8&255,255&t,1)}function _n(t,e,n,r){return r<=0&&(t=e=n=NaN),new wn(t,e,n,r)}function mn(t){return t instanceof tn||(t=gn(t)),t?new wn((t=t.rgb()).r,t.g,t.b,t.opacity):new wn}function bn(t,e,n,r){return 1===arguments.length?mn(t):new wn(t,e,n,null==r?1:r)}function wn(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function xn(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new kn(t,e,n,r)}function En(t,e,n,r){return 1===arguments.length?function(t){if(t instanceof kn)return new kn(t.h,t.s,t.l,t.opacity);if(t instanceof tn||(t=gn(t)),!t)return new kn;if(t instanceof kn)return t;var e=(t=t.rgb()).r/255,n=t.g/255,r=t.b/255,i=Math.min(e,n,r),o=Math.max(e,n,r),a=NaN,u=o-i,c=(o+i)/2;return u?(a=e===o?(n-r)/u+6*(n0&&c<1?0:a,new kn(a,u,c,t.opacity)}(t):new kn(t,e,n,null==r?1:r)}function kn(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function Mn(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}Ze(tn,gn,{displayable:function(){return this.rgb().displayable()},toString:function(){return this.rgb()+""}}),Ze(wn,bn,Je(tn,{brighter:function(t){return t=null==t?nn:Math.pow(nn,t),new wn(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?en:Math.pow(en,t),new wn(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return 0<=this.r&&this.r<=255&&0<=this.g&&this.g<=255&&0<=this.b&&this.b<=255&&0<=this.opacity&&this.opacity<=1},toString:function(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===t?")":", "+t+")")}})),Ze(kn,En,Je(tn,{brighter:function(t){return t=null==t?nn:Math.pow(nn,t),new kn(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?en:Math.pow(en,t),new kn(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,i=2*n-r;return new wn(Mn(t>=240?t-240:t+120,i,r),Mn(t,i,r),Mn(t<120?t+240:t-120,i,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1}}));var Tn=Math.PI/180,Sn=180/Math.PI,Cn=.95047,Nn=1,An=1.08883,Pn=4/29,zn=6/29,In=3*zn*zn,Rn=zn*zn*zn;function Ln(t){if(t instanceof Dn)return new Dn(t.l,t.a,t.b,t.opacity);if(t instanceof Vn){var e=t.h*Tn;return new Dn(t.l,Math.cos(e)*t.c,Math.sin(e)*t.c,t.opacity)}t instanceof wn||(t=mn(t));var n=qn(t.r),r=qn(t.g),i=qn(t.b),o=Un((.4124564*n+.3575761*r+.1804375*i)/Cn),a=Un((.2126729*n+.7151522*r+.072175*i)/Nn);return new Dn(116*a-16,500*(o-a),200*(a-Un((.0193339*n+.119192*r+.9503041*i)/An)),t.opacity)}function On(t,e,n,r){return 1===arguments.length?Ln(t):new Dn(t,e,n,null==r?1:r)}function Dn(t,e,n,r){this.l=+t,this.a=+e,this.b=+n,this.opacity=+r}function Un(t){return t>Rn?Math.pow(t,1/3):t/In+Pn}function Fn(t){return t>zn?t*t*t:In*(t-Pn)}function jn(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function qn(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function Bn(t,e,n,r){return 1===arguments.length?function(t){if(t instanceof Vn)return new Vn(t.h,t.c,t.l,t.opacity);t instanceof Dn||(t=Ln(t));var e=Math.atan2(t.b,t.a)*Sn;return new Vn(e<0?e+360:e,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}(t):new Vn(t,e,n,null==r?1:r)}function Vn(t,e,n,r){this.h=+t,this.c=+e,this.l=+n,this.opacity=+r}Ze(Dn,On,Je(tn,{brighter:function(t){return new Dn(this.l+18*(null==t?1:t),this.a,this.b,this.opacity)},darker:function(t){return new Dn(this.l-18*(null==t?1:t),this.a,this.b,this.opacity)},rgb:function(){var t=(this.l+16)/116,e=isNaN(this.a)?t:t+this.a/500,n=isNaN(this.b)?t:t-this.b/200;return t=Nn*Fn(t),new wn(jn(3.2404542*(e=Cn*Fn(e))-1.5371385*t-.4985314*(n=An*Fn(n))),jn(-.969266*e+1.8760108*t+.041556*n),jn(.0556434*e-.2040259*t+1.0572252*n),this.opacity)}})),Ze(Vn,Bn,Je(tn,{brighter:function(t){return new Vn(this.h,this.c,this.l+18*(null==t?1:t),this.opacity)},darker:function(t){return new Vn(this.h,this.c,this.l-18*(null==t?1:t),this.opacity)},rgb:function(){return Ln(this).rgb()}}));var Hn=-.14861,Wn=1.78277,Yn=-.29227,$n=-.90649,Xn=1.97294,Qn=Xn*$n,Gn=Xn*Wn,Kn=Wn*Yn-$n*Hn;function Zn(t,e,n,r){return 1===arguments.length?function(t){if(t instanceof Jn)return new Jn(t.h,t.s,t.l,t.opacity);t instanceof wn||(t=mn(t));var e=t.r/255,n=t.g/255,r=t.b/255,i=(Kn*r+Qn*e-Gn*n)/(Kn+Qn-Gn),o=r-i,a=(Xn*(n-i)-Yn*o)/$n,u=Math.sqrt(a*a+o*o)/(Xn*i*(1-i)),c=u?Math.atan2(a,o)*Sn-120:NaN;return new Jn(c<0?c+360:c,u,i,t.opacity)}(t):new Jn(t,e,n,null==r?1:r)}function Jn(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function tr(t,e,n,r,i){var o=t*t,a=o*t;return((1-3*t+3*o-a)*e+(4-6*o+3*a)*n+(1+3*t+3*o-3*a)*r+a*i)/6}function er(t){var e=t.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,e-1):Math.floor(n*e),i=t[r],o=t[r+1],a=r>0?t[r-1]:2*i-o,u=r180||n<-180?n-360*Math.round(n/360):n):rr(isNaN(t)?e:t)}function ar(t){return 1==(t=+t)?ur:function(e,n){return n-e?function(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(r){return Math.pow(t+r*e,n)}}(e,n,t):rr(isNaN(e)?n:e)}}function ur(t,e){var n=e-t;return n?ir(t,n):rr(isNaN(t)?e:t)}Ze(Jn,Zn,Je(tn,{brighter:function(t){return t=null==t?nn:Math.pow(nn,t),new Jn(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?en:Math.pow(en,t),new Jn(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=isNaN(this.h)?0:(this.h+120)*Tn,e=+this.l,n=isNaN(this.s)?0:this.s*e*(1-e),r=Math.cos(t),i=Math.sin(t);return new wn(255*(e+n*(Hn*r+Wn*i)),255*(e+n*(Yn*r+$n*i)),255*(e+n*(Xn*r)),this.opacity)}}));const cr=function t(e){var n=ar(e);function r(t,e){var r=n((t=bn(t)).r,(e=bn(e)).r),i=n(t.g,e.g),o=n(t.b,e.b),a=ur(t.opacity,e.opacity);return function(e){return t.r=r(e),t.g=i(e),t.b=o(e),t.opacity=a(e),t+""}}return r.gamma=t,r}(1);function lr(t){return function(e){var n,r,i=e.length,o=new Array(i),a=new Array(i),u=new Array(i);for(n=0;no&&(i=e.slice(o,i),u[a]?u[a]+=i:u[++a]=i),(n=n[0])===(r=r[0])?u[a]?u[a]+=r:u[++a]=r:(u[++a]=null,c.push({i:a,x:pr(n,r)})),o=yr.lastIndex;return o180?e+=360:e-t>180&&(t+=360),o.push({i:n.push(i(n)+"rotate(",null,r)-2,x:pr(t,e)})):e&&n.push(i(n)+"rotate("+e+r)}(o.rotate,a.rotate,u,c),function(t,e,n,o){t!==e?o.push({i:n.push(i(n)+"skewX(",null,r)-2,x:pr(t,e)}):e&&n.push(i(n)+"skewX("+e+r)}(o.skewX,a.skewX,u,c),function(t,e,n,r,o,a){if(t!==n||e!==r){var u=o.push(i(o)+"scale(",null,",",null,")");a.push({i:u-4,x:pr(t,n)},{i:u-2,x:pr(e,r)})}else 1===n&&1===r||o.push(i(o)+"scale("+n+","+r+")")}(o.scaleX,o.scaleY,a.scaleX,a.scaleY,u,c),o=a=null,function(t){for(var e,n=-1,r=c.length;++n=0&&e._call.call(null,t),e=e._next;--Gr}function fi(){ei=(ti=ri.now())+ni,Gr=Kr=0;try{li()}finally{Gr=0,function(){var t,e,n=Xr,r=1/0;for(;n;)n._call?(r>n._time&&(r=n._time),t=n,n=n._next):(e=n._next,n._next=null,n=t?t._next=e:Xr=e);Qr=t,hi(r)}(),ei=0}}function si(){var t=ri.now(),e=t-ti;e>Jr&&(ni-=e,ti=t)}function hi(t){Gr||(Kr&&(Kr=clearTimeout(Kr)),t-ei>24?(t<1/0&&(Kr=setTimeout(fi,t-ri.now()-ni)),Zr&&(Zr=clearInterval(Zr))):(Zr||(ti=ri.now(),Zr=setInterval(si,Jr)),Gr=1,ii(fi)))}function di(t,e,n){var r=new ui;return e=null==e?0:+e,r.restart((function(n){r.stop(),t(n+e)}),e,n),r}function pi(t,e,n){var r=new ui,i=e;return null==e?(r.restart(t,e,n),r):(e=+e,n=null==n?oi():+n,r.restart((function o(a){a+=i,r.restart(o,i+=e,n),t(a)}),e,n),r)}ui.prototype=ci.prototype={constructor:ui,restart:function(t,e,n){if("function"!=typeof t)throw new TypeError("callback is not a function");n=(null==n?oi():+n)+(null==e?0:+e),this._next||Qr===this||(Qr?Qr._next=this:Xr=this,Qr=this),this._call=t,this._time=n,hi()},stop:function(){this._call&&(this._call=null,this._time=1/0,hi())}};var vi=vt("start","end","interrupt"),gi=[],yi=0,_i=1,mi=2,bi=3,wi=4,xi=5,Ei=6;function ki(t,e,n,r,i,o){var a=t.__transition;if(a){if(n in a)return}else t.__transition={};!function(t,e,n){var r,i=t.__transition;function o(t){n.state=_i,n.timer.restart(a,n.delay,n.time),n.delay<=t&&a(t-n.delay)}function a(o){var l,f,s,h;if(n.state!==_i)return c();for(l in i)if((h=i[l]).name===n.name){if(h.state===bi)return di(a);h.state===wi?(h.state=Ei,h.timer.stop(),h.on.call("interrupt",t,t.__data__,h.index,h.group),delete i[l]):+lyi)throw new Error("too late; already scheduled");return n}function Ti(t,e){var n=Si(t,e);if(n.state>mi)throw new Error("too late; already started");return n}function Si(t,e){var n=t.__transition;if(!n||!(n=n[e]))throw new Error("transition not found");return n}function Ci(t,e){var n,r,i,o=t.__transition,a=!0;if(o){for(i in e=null==e?null:e+"",o)(n=o[i]).name===e?(r=n.state>mi&&n.state=0&&(t=t.slice(0,e)),!t||"start"===t}))}(e)?Mi:Ti;return function(){var a=o(this,t),u=a.on;u!==r&&(i=(r=u).copy()).on(e,n),a.on=i}}(n,t,e))},attr:function(t,e){var n=_t(t),r="transform"===n?Ar:zi;return this.attrTween(t,"function"==typeof e?(n.local?Ui:Di)(n,r,Pi(this,"attr."+t,e)):null==e?(n.local?Ri:Ii)(n):(n.local?Oi:Li)(n,r,e+""))},attrTween:function(t,e){var n="attr."+t;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(null==e)return this.tween(n,null);if("function"!=typeof e)throw new Error;var r=_t(t);return this.tween(n,(r.local?Fi:ji)(r,e))},style:function(t,e,n){var r="transform"==(t+="")?Nr:zi;return null==e?this.styleTween(t,function(t,e){var n,r,i;return function(){var o=Yt(this,t),a=(this.style.removeProperty(t),Yt(this,t));return o===a?null:o===n&&a===r?i:i=e(n=o,r=a)}}(t,r)).on("end.style."+t,function(t){return function(){this.style.removeProperty(t)}}(t)):this.styleTween(t,"function"==typeof e?function(t,e,n){var r,i,o;return function(){var a=Yt(this,t),u=n(this);return null==u&&(this.style.removeProperty(t),u=Yt(this,t)),a===u?null:a===r&&u===i?o:o=e(r=a,i=u)}}(t,r,Pi(this,"style."+t,e)):function(t,e,n){var r,i;return function(){var o=Yt(this,t);return o===n?null:o===r?i:i=e(r=o,n)}}(t,r,e+""),n)},styleTween:function(t,e,n){var r="style."+(t+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(null==e)return this.tween(r,null);if("function"!=typeof e)throw new Error;return this.tween(r,function(t,e,n){function r(){var r=this,i=e.apply(r,arguments);return i&&function(e){r.style.setProperty(t,i(e),n)}}return r._value=e,r}(t,e,null==n?"":n))},text:function(t){return this.tween("text","function"==typeof t?function(t){return function(){var e=t(this);this.textContent=null==e?"":e}}(Pi(this,"text",t)):function(t){return function(){this.textContent=t}}(null==t?"":t+""))},remove:function(){return this.on("end.remove",function(t){return function(){var e=this.parentNode;for(var n in this.__transition)if(+n!==t)return;e&&e.removeChild(this)}}(this._id))},tween:function(t,e){var n=this._id;if(t+="",arguments.length<2){for(var r,i=Si(this.node(),n).tween,o=0,a=i.length;o_i&&n.name===e)return new $i([[t]],Bo,e,+r);return null}function Ho(t){return function(){return t}}function Wo(t,e,n){this.target=t,this.type=e,this.selection=n}function Yo(){ye.stopImmediatePropagation()}function $o(){ye.preventDefault(),ye.stopImmediatePropagation()}var Xo={name:"drag"},Qo={name:"space"},Go={name:"handle"},Ko={name:"center"},Zo={name:"x",handles:["e","w"].map(aa),input:function(t,e){return t&&[[t[0],e[0][1]],[t[1],e[1][1]]]},output:function(t){return t&&[t[0][0],t[1][0]]}},Jo={name:"y",handles:["n","s"].map(aa),input:function(t,e){return t&&[[e[0][0],t[0]],[e[1][0],t[1]]]},output:function(t){return t&&[t[0][1],t[1][1]]}},ta={name:"xy",handles:["n","e","s","w","nw","ne","se","sw"].map(aa),input:function(t){return t},output:function(t){return t}},ea={overlay:"crosshair",selection:"move",n:"ns-resize",e:"ew-resize",s:"ns-resize",w:"ew-resize",nw:"nwse-resize",ne:"nesw-resize",se:"nwse-resize",sw:"nesw-resize"},na={e:"w",w:"e",nw:"ne",ne:"nw",se:"sw",sw:"se"},ra={n:"s",s:"n",nw:"sw",ne:"se",se:"ne",sw:"nw"},ia={overlay:1,selection:1,n:null,e:1,s:null,w:-1,nw:-1,ne:1,se:1,sw:-1},oa={overlay:1,selection:1,n:-1,e:null,s:1,w:null,nw:-1,ne:-1,se:1,sw:1};function aa(t){return{type:t}}function ua(){return!ye.button}function ca(){var t=this.ownerSVGElement||this;return[[0,0],[t.width.baseVal.value,t.height.baseVal.value]]}function la(t){for(;!t.__brush;)if(!(t=t.parentNode))return;return t.__brush}function fa(t){return t[0][0]===t[1][0]||t[0][1]===t[1][1]}function sa(t){var e=t.__brush;return e?e.dim.output(e.selection):null}function ha(){return va(Zo)}function da(){return va(Jo)}function pa(){return va(ta)}function va(t){var e,n=ca,r=ua,i=vt(a,"start","brush","end"),o=6;function a(e){var n=e.property("__brush",s).selectAll(".overlay").data([aa("overlay")]);n.enter().append("rect").attr("class","overlay").attr("pointer-events","all").attr("cursor",ea.overlay).merge(n).each((function(){var t=la(this).extent;Ae(this).attr("x",t[0][0]).attr("y",t[0][1]).attr("width",t[1][0]-t[0][0]).attr("height",t[1][1]-t[0][1])})),e.selectAll(".selection").data([aa("selection")]).enter().append("rect").attr("class","selection").attr("cursor",ea.selection).attr("fill","#777").attr("fill-opacity",.3).attr("stroke","#fff").attr("shape-rendering","crispEdges");var r=e.selectAll(".handle").data(t.handles,(function(t){return t.type}));r.exit().remove(),r.enter().append("rect").attr("class",(function(t){return"handle handle--"+t.type})).attr("cursor",(function(t){return ea[t.type]})),e.each(u).attr("fill","none").attr("pointer-events","all").style("-webkit-tap-highlight-color","rgba(0,0,0,0)").on("mousedown.brush touchstart.brush",f)}function u(){var t=Ae(this),e=la(this).selection;e?(t.selectAll(".selection").style("display",null).attr("x",e[0][0]).attr("y",e[0][1]).attr("width",e[1][0]-e[0][0]).attr("height",e[1][1]-e[0][1]),t.selectAll(".handle").style("display",null).attr("x",(function(t){return"e"===t.type[t.type.length-1]?e[1][0]-o/2:e[0][0]-o/2})).attr("y",(function(t){return"s"===t.type[0]?e[1][1]-o/2:e[0][1]-o/2})).attr("width",(function(t){return"n"===t.type||"s"===t.type?e[1][0]-e[0][0]+o:o})).attr("height",(function(t){return"e"===t.type||"w"===t.type?e[1][1]-e[0][1]+o:o}))):t.selectAll(".selection,.handle").style("display","none").attr("x",null).attr("y",null).attr("width",null).attr("height",null)}function c(t,e){return t.__brush.emitter||new l(t,e)}function l(t,e){this.that=t,this.args=e,this.state=t.__brush,this.active=0}function f(){if(ye.touches){if(ye.changedTouches.length0&&(n=i-d),x<0?s=h-p:x>0&&(o=a-p),b=Qo,L.attr("cursor",ea.selection),U());break;default:return}$o()}),!0).on("keyup.brush",(function(){switch(ye.keyCode){case 16:A&&(g=y=A=!1,U());break;case 18:b===Ko&&(w<0?l=f:w>0&&(n=i),x<0?s=h:x>0&&(o=a),b=Go,U());break;case 32:b===Qo&&(ye.altKey?(w&&(l=f-d*w,n=i+d*w),x&&(s=h-p*x,o=a+p*x),b=Ko):(w<0?l=f:w>0&&(n=i),x<0?s=h:x>0&&(o=a),b=Go),L.attr("cursor",ea[m]),U());break;default:return}$o()}),!0).on("mousemove.brush",D,!0).on("mouseup.brush",F,!0);Ve(ye.view)}Yo(),Ci(_),u.call(_),I.start()}function D(){var t=De(_);!A||g||y||(Math.abs(t[0]-z[0])>Math.abs(t[1]-z[1])?y=!0:g=!0),z=t,v=!0,$o(),U()}function U(){var t;switch(d=z[0]-P[0],p=z[1]-P[1],b){case Qo:case Xo:w&&(d=Math.max(T-n,Math.min(C-l,d)),i=n+d,f=l+d),x&&(p=Math.max(S-o,Math.min(N-s,p)),a=o+p,h=s+p);break;case Go:w<0?(d=Math.max(T-n,Math.min(C-n,d)),i=n+d,f=l):w>0&&(d=Math.max(T-l,Math.min(C-l,d)),i=n,f=l+d),x<0?(p=Math.max(S-o,Math.min(N-o,p)),a=o+p,h=s):x>0&&(p=Math.max(S-s,Math.min(N-s,p)),a=o,h=s+p);break;case Ko:w&&(i=Math.max(T,Math.min(C,n-d*w)),f=Math.max(T,Math.min(C,l+d*w))),x&&(a=Math.max(S,Math.min(N,o-p*x)),h=Math.max(S,Math.min(N,s+p*x)))}fSa)if(Math.abs(f*u-c*l)>Sa&&i){var h=n-o,d=r-a,p=u*u+c*c,v=h*h+d*d,g=Math.sqrt(p),y=Math.sqrt(s),_=i*Math.tan((Ma-Math.acos((p+s-v)/(2*g*y)))/2),m=_/y,b=_/g;Math.abs(m-1)>Sa&&(this._+="L"+(t+m*l)+","+(e+m*f)),this._+="A"+i+","+i+",0,0,"+ +(f*h>l*d)+","+(this._x1=t+b*u)+","+(this._y1=e+b*c)}else this._+="L"+(this._x1=t)+","+(this._y1=e);else;},arc:function(t,e,n,r,i,o){t=+t,e=+e;var a=(n=+n)*Math.cos(r),u=n*Math.sin(r),c=t+a,l=e+u,f=1^o,s=o?r-i:i-r;if(n<0)throw new Error("negative radius: "+n);null===this._x1?this._+="M"+c+","+l:(Math.abs(this._x1-c)>Sa||Math.abs(this._y1-l)>Sa)&&(this._+="L"+c+","+l),n&&(s<0&&(s=s%Ta+Ta),s>Ca?this._+="A"+n+","+n+",0,1,"+f+","+(t-a)+","+(e-u)+"A"+n+","+n+",0,1,"+f+","+(this._x1=c)+","+(this._y1=l):s>Sa&&(this._+="A"+n+","+n+",0,"+ +(s>=Ma)+","+f+","+(this._x1=t+n*Math.cos(i))+","+(this._y1=e+n*Math.sin(i))))},rect:function(t,e,n,r){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)+"h"+ +n+"v"+ +r+"h"+-n+"Z"},toString:function(){return this._}};const Pa=Aa;function za(t){return t.source}function Ia(t){return t.target}function Ra(t){return t.radius}function La(t){return t.startAngle}function Oa(t){return t.endAngle}function Da(){var t=za,e=Ia,n=Ra,r=La,i=Oa,o=null;function a(){var a,u=Ea.call(arguments),c=t.apply(this,u),l=e.apply(this,u),f=+n.apply(this,(u[0]=c,u)),s=r.apply(this,u)-ma,h=i.apply(this,u)-ma,d=f*ga(s),p=f*ya(s),v=+n.apply(this,(u[0]=l,u)),g=r.apply(this,u)-ma,y=i.apply(this,u)-ma;if(o||(o=a=Pa()),o.moveTo(d,p),o.arc(0,0,f,s,h),s===g&&h===y||(o.quadraticCurveTo(0,0,v*ga(g),v*ya(g)),o.arc(0,0,v,g,y)),o.quadraticCurveTo(0,0,d,p),o.closePath(),a)return o=null,a+""||null}return a.radius=function(t){return arguments.length?(n="function"==typeof t?t:ka(+t),a):n},a.startAngle=function(t){return arguments.length?(r="function"==typeof t?t:ka(+t),a):r},a.endAngle=function(t){return arguments.length?(i="function"==typeof t?t:ka(+t),a):i},a.source=function(e){return arguments.length?(t=e,a):t},a.target=function(t){return arguments.length?(e=t,a):e},a.context=function(t){return arguments.length?(o=null==t?null:t,a):o},a}var Ua="$";function Fa(){}function ja(t,e){var n=new Fa;if(t instanceof Fa)t.each((function(t,e){n.set(e,t)}));else if(Array.isArray(t)){var r,i=-1,o=t.length;if(null==e)for(;++i=r.length)return null!=t&&n.sort(t),null!=e?e(n):n;for(var c,l,f,s=-1,h=n.length,d=r[i++],p=qa(),v=a();++sr.length)return t;var o,u=i[n-1];return null!=e&&n>=r.length?o=t.entries():(o=[],t.each((function(t,e){o.push({key:e,values:a(t,n)})}))),null!=u?o.sort((function(t,e){return u(t.key,e.key)})):o}return n={object:function(t){return o(t,0,Va,Ha)},map:function(t){return o(t,0,Wa,Ya)},entries:function(t){return a(o(t,0,Wa,Ya),0)},key:function(t){return r.push(t),n},sortKeys:function(t){return i[r.length-1]=t,n},sortValues:function(e){return t=e,n},rollup:function(t){return e=t,n}}}function Va(){return{}}function Ha(t,e,n){t[e]=n}function Wa(){return qa()}function Ya(t,e,n){t.set(e,n)}function $a(){}var Xa=qa.prototype;function Qa(t,e){var n=new $a;if(t instanceof $a)t.each((function(t){n.add(t)}));else if(t){var r=-1,i=t.length;if(null==e)for(;++r=o?c=!0:(r=t.charCodeAt(a++))===ru?l=!0:r===iu&&(l=!0,t.charCodeAt(a)===ru&&++a),t.slice(i+1,e-1).replace(/""/g,'"')}for(;a=(o=(v+y)/2))?v=o:y=o,(f=n>=(a=(g+_)/2))?g=a:_=a,i=d,!(d=d[s=f<<1|l]))return i[s]=p,t;if(u=+t._x.call(null,d.data),c=+t._y.call(null,d.data),e===u&&n===c)return p.next=d,i?i[s]=p:t._root=p,t;do{i=i?i[s]=new Array(4):t._root=new Array(4),(l=e>=(o=(v+y)/2))?v=o:y=o,(f=n>=(a=(g+_)/2))?g=a:_=a}while((s=f<<1|l)==(h=(c>=a)<<1|u>=o));return i[h]=d,i[s]=p,t}function wu(t,e,n,r,i){this.node=t,this.x0=e,this.y0=n,this.x1=r,this.y1=i}function xu(t){return t[0]}function Eu(t){return t[1]}function ku(t,e,n){var r=new Mu(null==e?xu:e,null==n?Eu:n,NaN,NaN,NaN,NaN);return null==t?r:r.addAll(t)}function Mu(t,e,n,r,i,o){this._x=t,this._y=e,this._x0=n,this._y0=r,this._x1=i,this._y1=o,this._root=void 0}function Tu(t){for(var e={data:t.data},n=e;t=t.next;)n=n.next={data:t.data};return e}var Su=ku.prototype=Mu.prototype;function Cu(t){return t.x+t.vx}function Nu(t){return t.y+t.vy}function Au(t){var e,n,r=1,i=1;function o(){for(var t,o,u,c,l,f,s,h=e.length,d=0;dc+d||il+d||ou.index){var p=c-a.x-a.vx,v=l-a.y-a.vy,g=p*p+v*v;gt.r&&(t.r=t[e].r)}function u(){if(e){var r,i,o=e.length;for(n=new Array(o),r=0;rf&&(f=r),is&&(s=i));for(ft||t>i||r>e||e>o))return this;var a,u,c=i-n,l=this._root;switch(u=(e<(r+o)/2)<<1|t<(n+i)/2){case 0:do{(a=new Array(4))[u]=l,l=a}while(o=r+(c*=2),t>(i=n+c)||e>o);break;case 1:do{(a=new Array(4))[u]=l,l=a}while(o=r+(c*=2),(n=i-c)>t||e>o);break;case 2:do{(a=new Array(4))[u]=l,l=a}while(r=o-(c*=2),t>(i=n+c)||r>e);break;case 3:do{(a=new Array(4))[u]=l,l=a}while(r=o-(c*=2),(n=i-c)>t||r>e)}this._root&&this._root.length&&(this._root=l)}return this._x0=n,this._y0=r,this._x1=i,this._y1=o,this},Su.data=function(){var t=[];return this.visit((function(e){if(!e.length)do{t.push(e.data)}while(e=e.next)})),t},Su.extent=function(t){return arguments.length?this.cover(+t[0][0],+t[0][1]).cover(+t[1][0],+t[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]},Su.find=function(t,e,n){var r,i,o,a,u,c,l,f=this._x0,s=this._y0,h=this._x1,d=this._y1,p=[],v=this._root;for(v&&p.push(new wu(v,f,s,h,d)),null==n?n=1/0:(f=t-n,s=e-n,h=t+n,d=e+n,n*=n);c=p.pop();)if(!(!(v=c.node)||(i=c.x0)>h||(o=c.y0)>d||(a=c.x1)=y)<<1|t>=g)&&(c=p[p.length-1],p[p.length-1]=p[p.length-1-l],p[p.length-1-l]=c)}else{var _=t-+this._x.call(null,v.data),m=e-+this._y.call(null,v.data),b=_*_+m*m;if(b=(u=(p+g)/2))?p=u:g=u,(f=a>=(c=(v+y)/2))?v=c:y=c,e=d,!(d=d[s=f<<1|l]))return this;if(!d.length)break;(e[s+1&3]||e[s+2&3]||e[s+3&3])&&(n=e,h=s)}for(;d.data!==t;)if(r=d,!(d=d.next))return this;return(i=d.next)&&delete d.next,r?(i?r.next=i:delete r.next,this):e?(i?e[s]=i:delete e[s],(d=e[0]||e[1]||e[2]||e[3])&&d===(e[3]||e[2]||e[1]||e[0])&&!d.length&&(n?n[h]=d:this._root=d),this):(this._root=i,this)},Su.removeAll=function(t){for(var e=0,n=t.length;e1?(null==n?u.remove(t):u.set(t,d(n)),e):u.get(t)},find:function(e,n,r){var i,o,a,u,c,l=0,f=t.length;for(null==r?r=1/0:r*=r,l=0;l1?(l.on(t,n),e):l.on(t)}}}function ju(){var t,e,n,r,i=_u(-30),o=1,a=1/0,u=.81;function c(r){var i,o=t.length,a=ku(t,Ru,Lu).visitAfter(f);for(n=r,i=0;i=a)){(t.data!==e||t.next)&&(0===f&&(d+=(f=mu())*f),0===s&&(d+=(s=mu())*s),d1?r[0]+r.slice(2):r,+t.slice(n+1)]}function Wu(t){return(t=Hu(Math.abs(t)))?t[1]:NaN}function Yu(t,e){var n=Hu(t,e);if(!n)return t+"";var r=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")}const $u={"":function(t,e){t:for(var n,r=(t=t.toPrecision(e)).length,i=1,o=-1;i0&&(o=0)}return o>0?t.slice(0,o)+t.slice(n+1):t},"%":function(t,e){return(100*t).toFixed(e)},b:function(t){return Math.round(t).toString(2)},c:function(t){return t+""},d:function(t){return Math.round(t).toString(10)},e:function(t,e){return t.toExponential(e)},f:function(t,e){return t.toFixed(e)},g:function(t,e){return t.toPrecision(e)},o:function(t){return Math.round(t).toString(8)},p:function(t,e){return Yu(100*t,e)},r:Yu,s:function(t,e){var n=Hu(t,e);if(!n)return t+"";var r=n[0],i=n[1],o=i-(Ou=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,a=r.length;return o===a?r:o>a?r+new Array(o-a+1).join("0"):o>0?r.slice(0,o)+"."+r.slice(o):"0."+new Array(1-o).join("0")+Hu(t,Math.max(0,e+o-1))[0]},X:function(t){return Math.round(t).toString(16).toUpperCase()},x:function(t){return Math.round(t).toString(16)}};var Xu=/^(?:(.)?([<>=^]))?([+\-\( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?([a-z%])?$/i;function Qu(t){return new Gu(t)}function Gu(t){if(!(e=Xu.exec(t)))throw new Error("invalid format: "+t);var e,n=e[1]||" ",r=e[2]||">",i=e[3]||"-",o=e[4]||"",a=!!e[5],u=e[6]&&+e[6],c=!!e[7],l=e[8]&&+e[8].slice(1),f=e[9]||"";"n"===f?(c=!0,f="g"):$u[f]||(f=""),(a||"0"===n&&"="===r)&&(a=!0,n="0",r="="),this.fill=n,this.align=r,this.sign=i,this.symbol=o,this.zero=a,this.width=u,this.comma=c,this.precision=l,this.type=f}function Ku(t){return t}Qu.prototype=Gu.prototype,Gu.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(null==this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(null==this.precision?"":"."+Math.max(0,0|this.precision))+this.type};var Zu,Ju,tc,ec=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function nc(t){var e,n,r=t.grouping&&t.thousands?(e=t.grouping,n=t.thousands,function(t,r){for(var i=t.length,o=[],a=0,u=e[0],c=0;i>0&&u>0&&(c+u+1>r&&(u=Math.max(1,r-c)),o.push(t.substring(i-=u,i+u)),!((c+=u+1)>r));)u=e[a=(a+1)%e.length];return o.reverse().join(n)}):Ku,i=t.currency,o=t.decimal,a=t.numerals?function(t){return function(e){return e.replace(/[0-9]/g,(function(e){return t[+e]}))}}(t.numerals):Ku,u=t.percent||"%";function c(t){var e=(t=Qu(t)).fill,n=t.align,c=t.sign,l=t.symbol,f=t.zero,s=t.width,h=t.comma,d=t.precision,p=t.type,v="$"===l?i[0]:"#"===l&&/[boxX]/.test(p)?"0"+p.toLowerCase():"",g="$"===l?i[1]:/[%p]/.test(p)?u:"",y=$u[p],_=!p||/[defgprs%]/.test(p);function m(t){var i,u,l,m=v,b=g;if("c"===p)b=y(t)+b,t="";else{var w=(t=+t)<0;if(t=y(Math.abs(t),d),w&&0==+t&&(w=!1),m=(w?"("===c?c:"-":"-"===c||"("===c?"":c)+m,b=("s"===p?ec[8+Ou/3]:"")+b+(w&&"("===c?")":""),_)for(i=-1,u=t.length;++i(l=t.charCodeAt(i))||l>57){b=(46===l?o+t.slice(i+1):t.slice(i))+b,t=t.slice(0,i);break}}h&&!f&&(t=r(t,1/0));var x=m.length+t.length+b.length,E=x>1)+m+t+b+E.slice(x);break;default:t=E+m+t+b}return a(t)}return d=null==d?p?6:12:/[gprs]/.test(p)?Math.max(1,Math.min(21,d)):Math.max(0,Math.min(20,d)),m.toString=function(){return t+""},m}return{format:c,formatPrefix:function(t,e){var n=c(((t=Qu(t)).type="f",t)),r=3*Math.max(-8,Math.min(8,Math.floor(Wu(e)/3))),i=Math.pow(10,-r),o=ec[8+r/3];return function(t){return n(i*t)+o}}}}function rc(t){return Zu=nc(t),Ju=Zu.format,tc=Zu.formatPrefix,Zu}function ic(t){return Math.max(0,-Wu(Math.abs(t)))}function oc(t,e){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(Wu(e)/3)))-Wu(Math.abs(t)))}function ac(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,Wu(e)-Wu(t))+1}function uc(){return new cc}function cc(){this.reset()}rc({decimal:".",thousands:",",grouping:[3],currency:["$",""]}),cc.prototype={constructor:cc,reset:function(){this.s=this.t=0},add:function(t){fc(lc,t,this.t),fc(this,lc.s,this.s),this.s?this.t+=lc.t:this.s=lc.t},valueOf:function(){return this.s}};var lc=new cc;function fc(t,e,n){var r=t.s=e+n,i=r-e,o=r-i;t.t=e-o+(n-i)}var sc=1e-6,hc=1e-12,dc=Math.PI,pc=dc/2,vc=dc/4,gc=2*dc,yc=180/dc,_c=dc/180,mc=Math.abs,bc=Math.atan,wc=Math.atan2,xc=Math.cos,Ec=Math.ceil,kc=Math.exp,Mc=(Math.floor,Math.log),Tc=Math.pow,Sc=Math.sin,Cc=Math.sign||function(t){return t>0?1:t<0?-1:0},Nc=Math.sqrt,Ac=Math.tan;function Pc(t){return t>1?0:t<-1?dc:Math.acos(t)}function zc(t){return t>1?pc:t<-1?-pc:Math.asin(t)}function Ic(t){return(t=Sc(t/2))*t}function Rc(){}function Lc(t,e){t&&Dc.hasOwnProperty(t.type)&&Dc[t.type](t,e)}var Oc={Feature:function(t,e){Lc(t.geometry,e)},FeatureCollection:function(t,e){for(var n=t.features,r=-1,i=n.length;++r=0?1:-1,i=r*n,o=xc(e=(e*=_c)/2+vc),a=Sc(e),u=Wc*a,c=Hc*o+u*xc(i),l=u*r*Sc(i);Yc.add(wc(l,c)),Vc=t,Hc=o,Wc=a}function Jc(t){return $c.reset(),jc(t,Xc),2*$c}function tl(t){return[wc(t[1],t[0]),zc(t[2])]}function el(t){var e=t[0],n=t[1],r=xc(n);return[r*xc(e),r*Sc(e),Sc(n)]}function nl(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function rl(t,e){return[t[1]*e[2]-t[2]*e[1],t[2]*e[0]-t[0]*e[2],t[0]*e[1]-t[1]*e[0]]}function il(t,e){t[0]+=e[0],t[1]+=e[1],t[2]+=e[2]}function ol(t,e){return[t[0]*e,t[1]*e,t[2]*e]}function al(t){var e=Nc(t[0]*t[0]+t[1]*t[1]+t[2]*t[2]);t[0]/=e,t[1]/=e,t[2]/=e}var ul,cl,ll,fl,sl,hl,dl,pl,vl,gl,yl,_l,ml,bl,wl,xl,El,kl,Ml,Tl,Sl,Cl,Nl,Al,Pl,zl,Il=uc(),Rl={point:Ll,lineStart:Dl,lineEnd:Ul,polygonStart:function(){Rl.point=Fl,Rl.lineStart=jl,Rl.lineEnd=ql,Il.reset(),Xc.polygonStart()},polygonEnd:function(){Xc.polygonEnd(),Rl.point=Ll,Rl.lineStart=Dl,Rl.lineEnd=Ul,Yc<0?(ul=-(ll=180),cl=-(fl=90)):Il>sc?fl=90:Il<-sc&&(cl=-90),gl[0]=ul,gl[1]=ll}};function Ll(t,e){vl.push(gl=[ul=t,ll=t]),efl&&(fl=e)}function Ol(t,e){var n=el([t*_c,e*_c]);if(pl){var r=rl(pl,n),i=rl([r[1],-r[0],0],r);al(i),i=tl(i);var o,a=t-sl,u=a>0?1:-1,c=i[0]*yc*u,l=mc(a)>180;l^(u*slfl&&(fl=o):l^(u*sl<(c=(c+360)%360-180)&&cfl&&(fl=e)),l?tBl(ul,ll)&&(ll=t):Bl(t,ll)>Bl(ul,ll)&&(ul=t):ll>=ul?(tll&&(ll=t)):t>sl?Bl(ul,t)>Bl(ul,ll)&&(ll=t):Bl(t,ll)>Bl(ul,ll)&&(ul=t)}else vl.push(gl=[ul=t,ll=t]);efl&&(fl=e),pl=n,sl=t}function Dl(){Rl.point=Ol}function Ul(){gl[0]=ul,gl[1]=ll,Rl.point=Ll,pl=null}function Fl(t,e){if(pl){var n=t-sl;Il.add(mc(n)>180?n+(n>0?360:-360):n)}else hl=t,dl=e;Xc.point(t,e),Ol(t,e)}function jl(){Xc.lineStart()}function ql(){Fl(hl,dl),Xc.lineEnd(),mc(Il)>sc&&(ul=-(ll=180)),gl[0]=ul,gl[1]=ll,pl=null}function Bl(t,e){return(e-=t)<0?e+360:e}function Vl(t,e){return t[0]-e[0]}function Hl(t,e){return t[0]<=t[1]?t[0]<=e&&e<=t[1]:eBl(r[0],r[1])&&(r[1]=i[1]),Bl(i[0],r[1])>Bl(r[0],r[1])&&(r[0]=i[0])):o.push(r=i);for(a=-1/0,e=0,r=o[n=o.length-1];e<=n;r=i,++e)i=o[e],(u=Bl(r[1],i[0]))>a&&(a=u,ul=i[0],ll=r[1])}return vl=gl=null,ul===1/0||cl===1/0?[[NaN,NaN],[NaN,NaN]]:[[ul,cl],[ll,fl]]}var Yl={sphere:Rc,point:$l,lineStart:Ql,lineEnd:Zl,polygonStart:function(){Yl.lineStart=Jl,Yl.lineEnd=tf},polygonEnd:function(){Yl.lineStart=Ql,Yl.lineEnd=Zl}};function $l(t,e){t*=_c;var n=xc(e*=_c);Xl(n*xc(t),n*Sc(t),Sc(e))}function Xl(t,e,n){++yl,ml+=(t-ml)/yl,bl+=(e-bl)/yl,wl+=(n-wl)/yl}function Ql(){Yl.point=Gl}function Gl(t,e){t*=_c;var n=xc(e*=_c);Al=n*xc(t),Pl=n*Sc(t),zl=Sc(e),Yl.point=Kl,Xl(Al,Pl,zl)}function Kl(t,e){t*=_c;var n=xc(e*=_c),r=n*xc(t),i=n*Sc(t),o=Sc(e),a=wc(Nc((a=Pl*o-zl*i)*a+(a=zl*r-Al*o)*a+(a=Al*i-Pl*r)*a),Al*r+Pl*i+zl*o);_l+=a,xl+=a*(Al+(Al=r)),El+=a*(Pl+(Pl=i)),kl+=a*(zl+(zl=o)),Xl(Al,Pl,zl)}function Zl(){Yl.point=$l}function Jl(){Yl.point=ef}function tf(){nf(Cl,Nl),Yl.point=$l}function ef(t,e){Cl=t,Nl=e,t*=_c,e*=_c,Yl.point=nf;var n=xc(e);Al=n*xc(t),Pl=n*Sc(t),zl=Sc(e),Xl(Al,Pl,zl)}function nf(t,e){t*=_c;var n=xc(e*=_c),r=n*xc(t),i=n*Sc(t),o=Sc(e),a=Pl*o-zl*i,u=zl*r-Al*o,c=Al*i-Pl*r,l=Nc(a*a+u*u+c*c),f=zc(l),s=l&&-f/l;Ml+=s*a,Tl+=s*u,Sl+=s*c,_l+=f,xl+=f*(Al+(Al=r)),El+=f*(Pl+(Pl=i)),kl+=f*(zl+(zl=o)),Xl(Al,Pl,zl)}function rf(t){yl=_l=ml=bl=wl=xl=El=kl=Ml=Tl=Sl=0,jc(t,Yl);var e=Ml,n=Tl,r=Sl,i=e*e+n*n+r*r;return idc?t-gc:t<-dc?t+gc:t,e]}function cf(t,e,n){return(t%=gc)?e||n?af(ff(t),sf(e,n)):ff(t):e||n?sf(e,n):uf}function lf(t){return function(e,n){return[(e+=t)>dc?e-gc:e<-dc?e+gc:e,n]}}function ff(t){var e=lf(t);return e.invert=lf(-t),e}function sf(t,e){var n=xc(t),r=Sc(t),i=xc(e),o=Sc(e);function a(t,e){var a=xc(e),u=xc(t)*a,c=Sc(t)*a,l=Sc(e),f=l*n+u*r;return[wc(c*i-f*o,u*n-l*r),zc(f*i+c*o)]}return a.invert=function(t,e){var a=xc(e),u=xc(t)*a,c=Sc(t)*a,l=Sc(e),f=l*i-c*o;return[wc(c*i+l*o,u*n+f*r),zc(f*n-u*r)]},a}function hf(t){function e(e){return(e=t(e[0]*_c,e[1]*_c))[0]*=yc,e[1]*=yc,e}return t=cf(t[0]*_c,t[1]*_c,t.length>2?t[2]*_c:0),e.invert=function(e){return(e=t.invert(e[0]*_c,e[1]*_c))[0]*=yc,e[1]*=yc,e},e}function df(t,e,n,r,i,o){if(n){var a=xc(e),u=Sc(e),c=r*n;null==i?(i=e+r*gc,o=e-c/2):(i=pf(a,i),o=pf(a,o),(r>0?io)&&(i+=r*gc));for(var l,f=i;r>0?f>o:f1&&e.push(e.pop().concat(e.shift()))},result:function(){var n=e;return e=[],t=null,n}}}function yf(t,e){return mc(t[0]-e[0])=0;--o)i.point((f=l[o])[0],f[1]);else r(h.x,h.p.x,-1,i);h=h.p}l=(h=h.o).z,d=!d}while(!h.v);i.lineEnd()}}}function bf(t){if(e=t.length){for(var e,n,r=0,i=t[0];++r=0?1:-1,k=E*x,M=k>dc,T=p*b;if(wf.add(wc(T*E*Sc(k),v*w+T*xc(k))),o+=M?x+E*gc:x,M^h>=n^_>=n){var S=rl(el(s),el(y));al(S);var C=rl(i,S);al(C);var N=(M^x>=0?-1:1)*zc(C[2]);(r>N||r===N&&(S[0]||S[1]))&&(a+=M^x>=0?1:-1)}}return(o<-sc||o0){for(s||(i.polygonStart(),s=!0),i.lineStart(),t=0;t1&&2&c&&h.push(h.pop().concat(h.shift())),a.push(h.filter(kf))}return h}}function kf(t){return t.length>1}function Mf(t,e){return((t=t.x)[0]<0?t[1]-pc-sc:pc-t[1])-((e=e.x)[0]<0?e[1]-pc-sc:pc-e[1])}const Tf=Ef((function(){return!0}),(function(t){var e,n=NaN,r=NaN,i=NaN;return{lineStart:function(){t.lineStart(),e=1},point:function(o,a){var u=o>0?dc:-dc,c=mc(o-n);mc(c-dc)0?pc:-pc),t.point(i,r),t.lineEnd(),t.lineStart(),t.point(u,r),t.point(o,r),e=0):i!==u&&c>=dc&&(mc(n-i)sc?bc((Sc(e)*(o=xc(r))*Sc(n)-Sc(r)*(i=xc(e))*Sc(t))/(i*o*a)):(e+r)/2}(n,r,o,a),t.point(i,r),t.lineEnd(),t.lineStart(),t.point(u,r),e=0),t.point(n=o,r=a),i=u},lineEnd:function(){t.lineEnd(),n=r=NaN},clean:function(){return 2-e}}}),(function(t,e,n,r){var i;if(null==t)i=n*pc,r.point(-dc,i),r.point(0,i),r.point(dc,i),r.point(dc,0),r.point(dc,-i),r.point(0,-i),r.point(-dc,-i),r.point(-dc,0),r.point(-dc,i);else if(mc(t[0]-e[0])>sc){var o=t[0]0,i=mc(e)>sc;function o(t,n){return xc(t)*xc(n)>e}function a(t,n,r){var i=[1,0,0],o=rl(el(t),el(n)),a=nl(o,o),u=o[0],c=a-u*u;if(!c)return!r&&t;var l=e*a/c,f=-e*u/c,s=rl(i,o),h=ol(i,l);il(h,ol(o,f));var d=s,p=nl(h,d),v=nl(d,d),g=p*p-v*(nl(h,h)-1);if(!(g<0)){var y=Nc(g),_=ol(d,(-p-y)/v);if(il(_,h),_=tl(_),!r)return _;var m,b=t[0],w=n[0],x=t[1],E=n[1];w0^_[1]<(mc(_[0]-b)dc^(b<=_[0]&&_[0]<=w)){var T=ol(d,(-p+y)/v);return il(T,h),[_,tl(T)]}}}function u(e,n){var i=r?t:dc-t,o=0;return e<-i?o|=1:e>i&&(o|=2),n<-i?o|=4:n>i&&(o|=8),o}return Ef(o,(function(t){var e,n,c,l,f;return{lineStart:function(){l=c=!1,f=1},point:function(s,h){var d,p=[s,h],v=o(s,h),g=r?v?0:u(s,h):v?u(s+(s<0?dc:-dc),h):0;if(!e&&(l=c=v)&&t.lineStart(),v!==c&&(!(d=a(e,p))||yf(e,d)||yf(p,d))&&(p[0]+=sc,p[1]+=sc,v=o(p[0],p[1])),v!==c)f=0,v?(t.lineStart(),d=a(p,e),t.point(d[0],d[1])):(d=a(e,p),t.point(d[0],d[1]),t.lineEnd()),e=d;else if(i&&e&&r^v){var y;g&n||!(y=a(p,e,!0))||(f=0,r?(t.lineStart(),t.point(y[0][0],y[0][1]),t.point(y[1][0],y[1][1]),t.lineEnd()):(t.point(y[1][0],y[1][1]),t.lineEnd(),t.lineStart(),t.point(y[0][0],y[0][1])))}!v||e&&yf(e,p)||t.point(p[0],p[1]),e=p,c=v,n=g},lineEnd:function(){c&&t.lineEnd(),e=null},clean:function(){return f|(l&&c)<<1}}}),(function(e,r,i,o){df(o,t,n,i,e,r)}),r?[0,-t]:[-dc,t-dc])}var Cf=1e9,Nf=-Cf;function Af(t,e,n,r){function i(i,o){return t<=i&&i<=n&&e<=o&&o<=r}function o(i,o,u,l){var f=0,s=0;if(null==i||(f=a(i,u))!==(s=a(o,u))||c(i,o)<0^u>0)do{l.point(0===f||3===f?t:n,f>1?r:e)}while((f=(f+u+4)%4)!==s);else l.point(o[0],o[1])}function a(r,i){return mc(r[0]-t)0?0:3:mc(r[0]-n)0?2:1:mc(r[1]-e)0?1:0:i>0?3:2}function u(t,e){return c(t.x,e.x)}function c(t,e){var n=a(t,1),r=a(e,1);return n!==r?n-r:0===n?e[1]-t[1]:1===n?t[0]-e[0]:2===n?t[1]-e[1]:e[0]-t[0]}return function(a){var c,l,f,s,h,d,p,v,g,y,_,m=a,b=gf(),w={point:x,lineStart:function(){w.point=E,l&&l.push(f=[]);y=!0,g=!1,p=v=NaN},lineEnd:function(){c&&(E(s,h),d&&g&&b.rejoin(),c.push(b.result()));w.point=x,g&&m.lineEnd()},polygonStart:function(){m=b,c=[],l=[],_=!0},polygonEnd:function(){var e=function(){for(var e=0,n=0,i=l.length;nr&&(h-o)*(r-a)>(d-a)*(t-o)&&++e:d<=r&&(h-o)*(r-a)<(d-a)*(t-o)&&--e;return e}(),n=_&&e,i=(c=U(c)).length;(n||i)&&(a.polygonStart(),n&&(a.lineStart(),o(null,null,1,a),a.lineEnd()),i&&mf(c,u,e,o,a),a.polygonEnd());m=a,c=l=f=null}};function x(t,e){i(t,e)&&m.point(t,e)}function E(o,a){var u=i(o,a);if(l&&f.push([o,a]),y)s=o,h=a,d=u,y=!1,u&&(m.lineStart(),m.point(o,a));else if(u&&g)m.point(o,a);else{var c=[p=Math.max(Nf,Math.min(Cf,p)),v=Math.max(Nf,Math.min(Cf,v))],b=[o=Math.max(Nf,Math.min(Cf,o)),a=Math.max(Nf,Math.min(Cf,a))];!function(t,e,n,r,i,o){var a,u=t[0],c=t[1],l=0,f=1,s=e[0]-u,h=e[1]-c;if(a=n-u,s||!(a>0)){if(a/=s,s<0){if(a0){if(a>f)return;a>l&&(l=a)}if(a=i-u,s||!(a<0)){if(a/=s,s<0){if(a>f)return;a>l&&(l=a)}else if(s>0){if(a0)){if(a/=h,h<0){if(a0){if(a>f)return;a>l&&(l=a)}if(a=o-c,h||!(a<0)){if(a/=h,h<0){if(a>f)return;a>l&&(l=a)}else if(h>0){if(a0&&(t[0]=u+l*s,t[1]=c+l*h),f<1&&(e[0]=u+f*s,e[1]=c+f*h),!0}}}}}(c,b,t,e,n,r)?u&&(m.lineStart(),m.point(o,a),_=!1):(g||(m.lineStart(),m.point(c[0],c[1])),m.point(b[0],b[1]),u||m.lineEnd(),_=!1)}p=o,v=a,g=u}return w}}function Pf(){var t,e,n,r=0,i=0,o=960,a=500;return n={stream:function(n){return t&&e===n?t:t=Af(r,i,o,a)(e=n)},extent:function(u){return arguments.length?(r=+u[0][0],i=+u[0][1],o=+u[1][0],a=+u[1][1],t=e=null,n):[[r,i],[o,a]]}}}var zf,If,Rf,Lf=uc(),Of={sphere:Rc,point:Rc,lineStart:function(){Of.point=Uf,Of.lineEnd=Df},lineEnd:Rc,polygonStart:Rc,polygonEnd:Rc};function Df(){Of.point=Of.lineEnd=Rc}function Uf(t,e){zf=t*=_c,If=Sc(e*=_c),Rf=xc(e),Of.point=Ff}function Ff(t,e){t*=_c;var n=Sc(e*=_c),r=xc(e),i=mc(t-zf),o=xc(i),a=r*Sc(i),u=Rf*n-If*r*o,c=If*n+Rf*r*o;Lf.add(wc(Nc(a*a+u*u),c)),zf=t,If=n,Rf=r}function jf(t){return Lf.reset(),jc(t,Of),+Lf}var qf=[null,null],Bf={type:"LineString",coordinates:qf};function Vf(t,e){return qf[0]=t,qf[1]=e,jf(Bf)}var Hf={Feature:function(t,e){return Yf(t.geometry,e)},FeatureCollection:function(t,e){for(var n=t.features,r=-1,i=n.length;++rsc})).map(c)).concat(E(Ec(o/d)*d,i,d).filter((function(t){return mc(t%v)>sc})).map(l))}return y.lines=function(){return _().map((function(t){return{type:"LineString",coordinates:t}}))},y.outline=function(){return{type:"Polygon",coordinates:[f(r).concat(s(a).slice(1),f(n).reverse().slice(1),s(u).reverse().slice(1))]}},y.extent=function(t){return arguments.length?y.extentMajor(t).extentMinor(t):y.extentMinor()},y.extentMajor=function(t){return arguments.length?(r=+t[0][0],n=+t[1][0],u=+t[0][1],a=+t[1][1],r>n&&(t=r,r=n,n=t),u>a&&(t=u,u=a,a=t),y.precision(g)):[[r,u],[n,a]]},y.extentMinor=function(n){return arguments.length?(e=+n[0][0],t=+n[1][0],o=+n[0][1],i=+n[1][1],e>t&&(n=e,e=t,t=n),o>i&&(n=o,o=i,i=n),y.precision(g)):[[e,o],[t,i]]},y.step=function(t){return arguments.length?y.stepMajor(t).stepMinor(t):y.stepMinor()},y.stepMajor=function(t){return arguments.length?(p=+t[0],v=+t[1],y):[p,v]},y.stepMinor=function(t){return arguments.length?(h=+t[0],d=+t[1],y):[h,d]},y.precision=function(h){return arguments.length?(g=+h,c=Jf(o,i,90),l=ts(e,t,g),f=Jf(u,a,90),s=ts(r,n,g),y):g},y.extentMajor([[-180,-90+sc],[180,90-sc]]).extentMinor([[-180,-80-sc],[180,80+sc]])}function ns(){return es()()}function rs(t,e){var n=t[0]*_c,r=t[1]*_c,i=e[0]*_c,o=e[1]*_c,a=xc(r),u=Sc(r),c=xc(o),l=Sc(o),f=a*xc(n),s=a*Sc(n),h=c*xc(i),d=c*Sc(i),p=2*zc(Nc(Ic(o-r)+a*c*Ic(i-n))),v=Sc(p),g=p?function(t){var e=Sc(t*=p)/v,n=Sc(p-t)/v,r=n*f+e*h,i=n*s+e*d,o=n*u+e*l;return[wc(i,r)*yc,wc(o,Nc(r*r+i*i))*yc]}:function(){return[n*yc,r*yc]};return g.distance=p,g}function is(t){return t}var os,as,us,cs,ls=uc(),fs=uc(),ss={point:Rc,lineStart:Rc,lineEnd:Rc,polygonStart:function(){ss.lineStart=hs,ss.lineEnd=vs},polygonEnd:function(){ss.lineStart=ss.lineEnd=ss.point=Rc,ls.add(mc(fs)),fs.reset()},result:function(){var t=ls/2;return ls.reset(),t}};function hs(){ss.point=ds}function ds(t,e){ss.point=ps,os=us=t,as=cs=e}function ps(t,e){fs.add(cs*t-us*e),us=t,cs=e}function vs(){ps(os,as)}const gs=ss;var ys=1/0,_s=ys,ms=-ys,bs=ms,ws={point:function(t,e){tms&&(ms=t);e<_s&&(_s=e);e>bs&&(bs=e)},lineStart:Rc,lineEnd:Rc,polygonStart:Rc,polygonEnd:Rc,result:function(){var t=[[ys,_s],[ms,bs]];return ms=bs=-(_s=ys=1/0),t}};const xs=ws;var Es,ks,Ms,Ts,Ss=0,Cs=0,Ns=0,As=0,Ps=0,zs=0,Is=0,Rs=0,Ls=0,Os={point:Ds,lineStart:Us,lineEnd:qs,polygonStart:function(){Os.lineStart=Bs,Os.lineEnd=Vs},polygonEnd:function(){Os.point=Ds,Os.lineStart=Us,Os.lineEnd=qs},result:function(){var t=Ls?[Is/Ls,Rs/Ls]:zs?[As/zs,Ps/zs]:Ns?[Ss/Ns,Cs/Ns]:[NaN,NaN];return Ss=Cs=Ns=As=Ps=zs=Is=Rs=Ls=0,t}};function Ds(t,e){Ss+=t,Cs+=e,++Ns}function Us(){Os.point=Fs}function Fs(t,e){Os.point=js,Ds(Ms=t,Ts=e)}function js(t,e){var n=t-Ms,r=e-Ts,i=Nc(n*n+r*r);As+=i*(Ms+t)/2,Ps+=i*(Ts+e)/2,zs+=i,Ds(Ms=t,Ts=e)}function qs(){Os.point=Ds}function Bs(){Os.point=Hs}function Vs(){Ws(Es,ks)}function Hs(t,e){Os.point=Ws,Ds(Es=Ms=t,ks=Ts=e)}function Ws(t,e){var n=t-Ms,r=e-Ts,i=Nc(n*n+r*r);As+=i*(Ms+t)/2,Ps+=i*(Ts+e)/2,zs+=i,Is+=(i=Ts*t-Ms*e)*(Ms+t),Rs+=i*(Ts+e),Ls+=3*i,Ds(Ms=t,Ts=e)}const Ys=Os;function $s(t){this._context=t}$s.prototype={_radius:4.5,pointRadius:function(t){return this._radius=t,this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._context.closePath(),this._point=NaN},point:function(t,e){switch(this._point){case 0:this._context.moveTo(t,e),this._point=1;break;case 1:this._context.lineTo(t,e);break;default:this._context.moveTo(t+this._radius,e),this._context.arc(t,e,this._radius,0,gc)}},result:Rc};var Xs,Qs,Gs,Ks,Zs,Js=uc(),th={point:Rc,lineStart:function(){th.point=eh},lineEnd:function(){Xs&&nh(Qs,Gs),th.point=Rc},polygonStart:function(){Xs=!0},polygonEnd:function(){Xs=null},result:function(){var t=+Js;return Js.reset(),t}};function eh(t,e){th.point=nh,Qs=Ks=t,Gs=Zs=e}function nh(t,e){Ks-=t,Zs-=e,Js.add(Nc(Ks*Ks+Zs*Zs)),Ks=t,Zs=e}const rh=th;function ih(){this._string=[]}function oh(t){return"m0,"+t+"a"+t+","+t+" 0 1,1 0,"+-2*t+"a"+t+","+t+" 0 1,1 0,"+2*t+"z"}function ah(t,e){var n,r,i=4.5;function o(t){return t&&("function"==typeof i&&r.pointRadius(+i.apply(this,arguments)),jc(t,n(r))),r.result()}return o.area=function(t){return jc(t,n(gs)),gs.result()},o.measure=function(t){return jc(t,n(rh)),rh.result()},o.bounds=function(t){return jc(t,n(xs)),xs.result()},o.centroid=function(t){return jc(t,n(Ys)),Ys.result()},o.projection=function(e){return arguments.length?(n=null==e?(t=null,is):(t=e).stream,o):t},o.context=function(t){return arguments.length?(r=null==t?(e=null,new ih):new $s(e=t),"function"!=typeof i&&r.pointRadius(i),o):e},o.pointRadius=function(t){return arguments.length?(i="function"==typeof t?t:(r.pointRadius(+t),+t),o):i},o.projection(t).context(e)}function uh(t){return{stream:ch(t)}}function ch(t){return function(e){var n=new lh;for(var r in t)n[r]=t[r];return n.stream=e,n}}function lh(){}function fh(t,e,n){var r=t.clipExtent&&t.clipExtent();return t.scale(150).translate([0,0]),null!=r&&t.clipExtent(null),jc(n,t.stream(xs)),e(xs.result()),null!=r&&t.clipExtent(r),t}function sh(t,e,n){return fh(t,(function(n){var r=e[1][0]-e[0][0],i=e[1][1]-e[0][1],o=Math.min(r/(n[1][0]-n[0][0]),i/(n[1][1]-n[0][1])),a=+e[0][0]+(r-o*(n[1][0]+n[0][0]))/2,u=+e[0][1]+(i-o*(n[1][1]+n[0][1]))/2;t.scale(150*o).translate([a,u])}),n)}function hh(t,e,n){return sh(t,[[0,0],e],n)}function dh(t,e,n){return fh(t,(function(n){var r=+e,i=r/(n[1][0]-n[0][0]),o=(r-i*(n[1][0]+n[0][0]))/2,a=-i*n[0][1];t.scale(150*i).translate([o,a])}),n)}function ph(t,e,n){return fh(t,(function(n){var r=+e,i=r/(n[1][1]-n[0][1]),o=-i*n[0][0],a=(r-i*(n[1][1]+n[0][1]))/2;t.scale(150*i).translate([o,a])}),n)}ih.prototype={_radius:4.5,_circle:oh(4.5),pointRadius:function(t){return(t=+t)!==this._radius&&(this._radius=t,this._circle=null),this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._string.push("Z"),this._point=NaN},point:function(t,e){switch(this._point){case 0:this._string.push("M",t,",",e),this._point=1;break;case 1:this._string.push("L",t,",",e);break;default:null==this._circle&&(this._circle=oh(this._radius)),this._string.push("M",t,",",e,this._circle)}},result:function(){if(this._string.length){var t=this._string.join("");return this._string=[],t}return null}},lh.prototype={constructor:lh,point:function(t,e){this.stream.point(t,e)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}};var vh=16,gh=xc(30*_c);function yh(t,e){return+e?function(t,e){function n(r,i,o,a,u,c,l,f,s,h,d,p,v,g){var y=l-r,_=f-i,m=y*y+_*_;if(m>4*e&&v--){var b=a+h,w=u+d,x=c+p,E=Nc(b*b+w*w+x*x),k=zc(x/=E),M=mc(mc(x)-1)e||mc((y*N+_*A)/m-.5)>.3||a*h+u*d+c*p2?t[2]%360*_c:0,C()):[g*yc,y*yc,_*yc]},M.precision=function(t){return arguments.length?(k=yh(S,E=t*t),N()):Nc(E)},M.fitExtent=function(t,e){return sh(M,t,e)},M.fitSize=function(t,e){return hh(M,t,e)},M.fitWidth=function(t,e){return dh(M,t,e)},M.fitHeight=function(t,e){return ph(M,t,e)},function(){return e=t.apply(this,arguments),M.invert=e.invert&&T,C()}}function wh(t){var e=0,n=dc/3,r=bh(t),i=r(e,n);return i.parallels=function(t){return arguments.length?r(e=t[0]*_c,n=t[1]*_c):[e*yc,n*yc]},i}function xh(t,e){var n=Sc(t),r=(n+Sc(e))/2;if(mc(r)=.12&&i<.234&&r>=-.425&&r<-.214?u:i>=.166&&i<.234&&r>=-.214&&r<-.115?c:a).invert(t)},f.stream=function(n){return t&&e===n?t:(r=[a.stream(e=n),u.stream(n),c.stream(n)],i=r.length,t={point:function(t,e){for(var n=-1;++n0?e<-pc+sc&&(e=-pc+sc):e>pc-sc&&(e=pc-sc);var n=i/Tc(Lh(e),r);return[n*Sc(r*t),i-n*xc(r*t)]}return o.invert=function(t,e){var n=i-e,o=Cc(r)*Nc(t*t+n*n);return[wc(t,mc(n))/r*Cc(n),2*bc(Tc(i/o,1/r))-pc]},o}function Dh(){return wh(Oh).scale(109.5).parallels([30,30])}function Uh(t,e){return[t,e]}function Fh(){return mh(Uh).scale(152.63)}function jh(t,e){var n=xc(t),r=t===e?Sc(t):(n-xc(e))/(e-t),i=n/r+t;if(mc(r)2?t[2]+90:90]):[(t=n())[0],t[1],t[2]-90]},n([0,0,90]).scale(159.155)}function td(t,e){return t.parent===e.parent?1:2}function ed(t,e){return t+e.x}function nd(t,e){return Math.max(t,e.y)}function rd(){var t=td,e=1,n=1,r=!1;function i(i){var o,a=0;i.eachAfter((function(e){var n=e.children;n?(e.x=function(t){return t.reduce(ed,0)/t.length}(n),e.y=function(t){return 1+t.reduce(nd,0)}(n)):(e.x=o?a+=t(e,o):0,e.y=0,o=e)}));var u=function(t){for(var e;e=t.children;)t=e[0];return t}(i),c=function(t){for(var e;e=t.children;)t=e[e.length-1];return t}(i),l=u.x-t(u,c)/2,f=c.x+t(c,u)/2;return i.eachAfter(r?function(t){t.x=(t.x-i.x)*e,t.y=(i.y-t.y)*n}:function(t){t.x=(t.x-l)/(f-l)*e,t.y=(1-(i.y?t.y/i.y:1))*n})}return i.separation=function(e){return arguments.length?(t=e,i):t},i.size=function(t){return arguments.length?(r=!1,e=+t[0],n=+t[1],i):r?null:[e,n]},i.nodeSize=function(t){return arguments.length?(r=!0,e=+t[0],n=+t[1],i):r?[e,n]:null},i}function id(t){var e=0,n=t.children,r=n&&n.length;if(r)for(;--r>=0;)e+=n[r].value;else e=1;t.value=e}function od(t,e){var n,r,i,o,a,u=new ld(t),c=+t.value&&(u.value=t.value),l=[u];for(null==e&&(e=ad);n=l.pop();)if(c&&(n.value=+n.data.value),(i=e(n.data))&&(a=i.length))for(n.children=new Array(a),o=a-1;o>=0;--o)l.push(r=n.children[o]=new ld(i[o])),r.parent=n,r.depth=n.depth+1;return u.eachBefore(cd)}function ad(t){return t.children}function ud(t){t.data=t.data.data}function cd(t){var e=0;do{t.height=e}while((t=t.parent)&&t.height<++e)}function ld(t){this.data=t,this.depth=this.height=0,this.parent=null}Ah.invert=Sh((function(t){return t})),zh.invert=function(t,e){return[t,2*bc(kc(e))-pc]},Uh.invert=Uh,Bh.invert=Sh(bc),Yh.invert=function(t,e){var n,r=e,i=25;do{var o=r*r,a=o*o;r-=n=(r*(1.007226+o*(.015085+a*(.028874*o-.044475-.005916*a)))-e)/(1.007226+o*(.045255+a*(.259866*o-.311325-.005916*11*a)))}while(mc(n)>sc&&--i>0);return[t/(.8707+(o=r*r)*(o*(o*o*o*(.003971-.001529*o)-.013791)-.131979)),r]},Xh.invert=Sh(zc),Gh.invert=Sh((function(t){return 2*bc(t)})),Zh.invert=function(t,e){return[-e,2*bc(kc(t))-pc]},ld.prototype=od.prototype={constructor:ld,count:function(){return this.eachAfter(id)},each:function(t){var e,n,r,i,o=this,a=[o];do{for(e=a.reverse(),a=[];o=e.pop();)if(t(o),n=o.children)for(r=0,i=n.length;r=0;--n)i.push(e[n]);return this},sum:function(t){return this.eachAfter((function(e){for(var n=+t(e.data)||0,r=e.children,i=r&&r.length;--i>=0;)n+=r[i].value;e.value=n}))},sort:function(t){return this.eachBefore((function(e){e.children&&e.children.sort(t)}))},path:function(t){for(var e=this,n=function(t,e){if(t===e)return t;var n=t.ancestors(),r=e.ancestors(),i=null;t=n.pop(),e=r.pop();for(;t===e;)i=t,t=n.pop(),e=r.pop();return i}(e,t),r=[e];e!==n;)e=e.parent,r.push(e);for(var i=r.length;t!==n;)r.splice(i,0,t),t=t.parent;return r},ancestors:function(){for(var t=this,e=[t];t=t.parent;)e.push(t);return e},descendants:function(){var t=[];return this.each((function(e){t.push(e)})),t},leaves:function(){var t=[];return this.eachBefore((function(e){e.children||t.push(e)})),t},links:function(){var t=this,e=[];return t.each((function(n){n!==t&&e.push({source:n.parent,target:n})})),e},copy:function(){return od(this).eachBefore(ud)}};var fd=Array.prototype.slice;function sd(t){for(var e,n,r=0,i=(t=function(t){for(var e,n,r=t.length;r;)n=Math.random()*r--|0,e=t[r],t[r]=t[n],t[n]=e;return t}(fd.call(t))).length,o=[];r0&&n*n>r*r+i*i}function vd(t,e){for(var n=0;nn*n+r*r}function wd(t){var e=t._,n=t.next._,r=e.r+n.r,i=(e.x*n.r+n.x*e.r)/r,o=(e.y*n.r+n.y*e.r)/r;return i*i+o*o}function xd(t){this._=t,this.next=null,this.previous=null}function Ed(t){if(!(i=t.length))return 0;var e,n,r,i,o,a,u,c,l,f,s;if((e=t[0]).x=0,e.y=0,!(i>1))return e.r;if(n=t[1],e.x=-n.r,n.x=e.r,n.y=0,!(i>2))return e.r+n.r;md(n,e,r=t[2]),e=new xd(e),n=new xd(n),r=new xd(r),e.next=r.previous=n,n.next=e.previous=r,r.next=n.previous=e;t:for(u=3;u0)throw new Error("cycle");return o}return n.id=function(e){return arguments.length?(t=Md(e),n):t},n.parentId=function(t){return arguments.length?(e=Md(t),n):e},n}function Bd(t,e){return t.parent===e.parent?1:2}function Vd(t){var e=t.children;return e?e[0]:t.t}function Hd(t){var e=t.children;return e?e[e.length-1]:t.t}function Wd(t,e,n){var r=n/(e.i-t.i);e.c-=r,e.s+=n,t.c+=r,e.z+=n,e.m+=n}function Yd(t,e,n){return t.a.parent===e.parent?t.a:n}function $d(t,e){this._=t,this.parent=null,this.children=null,this.A=null,this.a=this,this.z=0,this.m=0,this.c=0,this.s=0,this.t=null,this.i=e}function Xd(){var t=Bd,e=1,n=1,r=null;function i(i){var c=function(t){for(var e,n,r,i,o,a=new $d(t,0),u=[a];e=u.pop();)if(r=e._.children)for(e.children=new Array(o=r.length),i=o-1;i>=0;--i)u.push(n=e.children[i]=new $d(r[i],i)),n.parent=e;return(a.parent=new $d(null,0)).children=[a],a}(i);if(c.eachAfter(o),c.parent.m=-c.z,c.eachBefore(a),r)i.eachBefore(u);else{var l=i,f=i,s=i;i.eachBefore((function(t){t.xf.x&&(f=t),t.depth>s.depth&&(s=t)}));var h=l===f?1:t(l,f)/2,d=h-l.x,p=e/(f.x+h+d),v=n/(s.depth||1);i.eachBefore((function(t){t.x=(t.x+d)*p,t.y=t.depth*v}))}return i}function o(e){var n=e.children,r=e.parent.children,i=e.i?r[e.i-1]:null;if(n){!function(t){for(var e,n=0,r=0,i=t.children,o=i.length;--o>=0;)(e=i[o]).z+=n,e.m+=n,n+=e.s+(r+=e.c)}(e);var o=(n[0].z+n[n.length-1].z)/2;i?(e.z=i.z+t(e._,i._),e.m=e.z-o):e.z=o}else i&&(e.z=i.z+t(e._,i._));e.parent.A=function(e,n,r){if(n){for(var i,o=e,a=e,u=n,c=o.parent.children[0],l=o.m,f=a.m,s=u.m,h=c.m;u=Hd(u),o=Vd(o),u&&o;)c=Vd(c),(a=Hd(a)).a=e,(i=u.z+s-o.z-l+t(u._,o._))>0&&(Wd(Yd(u,e,r),e,i),l+=i,f+=i),s+=u.m,l+=o.m,h+=c.m,f+=a.m;u&&!Hd(a)&&(a.t=u,a.m+=s-f),o&&!Vd(c)&&(c.t=o,c.m+=l-h,r=e)}return r}(e,i,e.parent.A||r[0])}function a(t){t._.x=t.z+t.parent.m,t.m+=t.parent.m}function u(t){t.x*=e,t.y=t.depth*n}return i.separation=function(e){return arguments.length?(t=e,i):t},i.size=function(t){return arguments.length?(r=!1,e=+t[0],n=+t[1],i):r?null:[e,n]},i.nodeSize=function(t){return arguments.length?(r=!0,e=+t[0],n=+t[1],i):r?[e,n]:null},i}function Qd(t,e,n,r,i){for(var o,a=t.children,u=-1,c=a.length,l=t.value&&(i-n)/t.value;++uh&&(h=u),g=f*f*v,(d=Math.max(h/g,g/s))>p){f-=u;break}p=d}y.push(a={value:f,dice:c1?e:1)},n}(Gd);function Jd(){var t=Zd,e=!1,n=1,r=1,i=[0],o=Td,a=Td,u=Td,c=Td,l=Td;function f(t){return t.x0=t.y0=0,t.x1=n,t.y1=r,t.eachBefore(s),i=[0],e&&t.eachBefore(Id),t}function s(e){var n=i[e.depth],r=e.x0+n,f=e.y0+n,s=e.x1-n,h=e.y1-n;s=n-1){var f=u[e];return f.x0=i,f.y0=o,f.x1=a,void(f.y1=c)}var s=l[e],h=r/2+s,d=e+1,p=n-1;for(;d>>1;l[v]c-o){var _=(i*y+a*g)/r;t(e,d,g,i,o,_,c),t(d,n,y,_,o,a,c)}else{var m=(o*y+c*g)/r;t(e,d,g,i,o,a,m),t(d,n,y,i,m,a,c)}}(0,c,t.value,e,n,r,i)}function ep(t,e,n,r,i){(1&t.depth?Qd:Rd)(t,e,n,r,i)}const np=function t(e){function n(t,n,r,i,o){if((a=t._squarify)&&a.ratio===e)for(var a,u,c,l,f,s=-1,h=a.length,d=t.value;++s1?e:1)},n}(Gd);function rp(t){for(var e,n=-1,r=t.length,i=t[r-1],o=0;++n1&&op(t[n[r-2]],t[n[r-1]],t[i])<=0;)--r;n[r++]=i}return n.slice(0,r)}function cp(t){if((n=t.length)<3)return null;var e,n,r=new Array(n),i=new Array(n);for(e=0;e=0;--e)l.push(t[r[o[e]][2]]);for(e=+u;eu!=l>u&&a<(c-n)*(u-r)/(l-r)+n&&(f=!f),c=n,l=r;return f}function fp(t){for(var e,n,r=-1,i=t.length,o=t[i-1],a=o[0],u=o[1],c=0;++r=0;)if((n=t._tasks[r])&&(t._tasks[r]=null,n.abort))try{n.abort()}catch(e){}t._active=NaN,yp(t)}function yp(t){if(!t._active&&t._call){var e=t._data;t._data=void 0,t._call(t._error,e)}}function _p(t){if(null==t)t=1/0;else if(!((t=+t)>=1))throw new Error("invalid concurrency");return new dp(t)}function mp(){return Math.random()}dp.prototype=_p.prototype={constructor:dp,defer:function(t){if("function"!=typeof t)throw new Error("invalid callback");if(this._call)throw new Error("defer after await");if(null!=this._error)return this;var e=sp.call(arguments,1);return e.push(t),++this._waiting,this._tasks.push(e),pp(this),this},abort:function(){return null==this._error&&gp(this,new Error("abort")),this},await:function(t){if("function"!=typeof t)throw new Error("invalid callback");if(this._call)throw new Error("multiple await");return this._call=function(e,n){t.apply(null,[e].concat(n))},yp(this),this},awaitAll:function(t){if("function"!=typeof t)throw new Error("invalid callback");if(this._call)throw new Error("multiple await");return this._call=t,yp(this),this}};const bp=function t(e){function n(t,n){return t=null==t?0:+t,n=null==n?1:+n,1===arguments.length?(n=t,t=0):n-=t,function(){return e()*n+t}}return n.source=t,n}(mp),wp=function t(e){function n(t,n){var r,i;return t=null==t?0:+t,n=null==n?1:+n,function(){var o;if(null!=r)o=r,r=null;else do{r=2*e()-1,o=2*e()-1,i=r*r+o*o}while(!i||i>1);return t+n*o*Math.sqrt(-2*Math.log(i)/i)}}return n.source=t,n}(mp),xp=function t(e){function n(){var t=wp.source(e).apply(this,arguments);return function(){return Math.exp(t())}}return n.source=t,n}(mp),Ep=function t(e){function n(t){return function(){for(var n=0,r=0;r=200&&r<300||304===r){if(i)try{e=i.call(n,c)}catch(t){return void a.call("error",n,t)}else e=c;a.call("load",n,e)}else a.call("error",n,t)}if("undefined"!=typeof XDomainRequest&&!("withCredentials"in c)&&/^(http(s)?:)?\/\//.test(t)&&(c=new XDomainRequest),"onload"in c?c.onload=c.onerror=c.ontimeout=h:c.onreadystatechange=function(t){c.readyState>3&&h(t)},c.onprogress=function(t){a.call("progress",n,t)},n={header:function(t,e){return t=(t+"").toLowerCase(),arguments.length<2?u.get(t):(null==e?u.remove(t):u.set(t,e+""),n)},mimeType:function(t){return arguments.length?(r=null==t?null:t+"",n):r},responseType:function(t){return arguments.length?(o=t,n):o},timeout:function(t){return arguments.length?(s=+t,n):s},user:function(t){return arguments.length<1?l:(l=null==t?null:t+"",n)},password:function(t){return arguments.length<1?f:(f=null==t?null:t+"",n)},response:function(t){return i=t,n},get:function(t,e){return n.send("GET",t,e)},post:function(t,e){return n.send("POST",t,e)},send:function(e,i,h){return c.open(e,t,!0,l,f),null==r||u.has("accept")||u.set("accept",r+",*/*"),c.setRequestHeader&&u.each((function(t,e){c.setRequestHeader(e,t)})),null!=r&&c.overrideMimeType&&c.overrideMimeType(r),null!=o&&(c.responseType=o),s>0&&(c.timeout=s),null==h&&"function"==typeof i&&(h=i,i=null),null!=h&&1===h.length&&(h=function(t){return function(e,n){t(null==e?n:null)}}(h)),null!=h&&n.on("error",h).on("load",(function(t){h(null,t)})),a.call("beforesend",n,c),c.send(null==i?null:i),n},abort:function(){return c.abort(),n},on:function(){var t=a.on.apply(a,arguments);return t===a?n:t}},null!=e){if("function"!=typeof e)throw new Error("invalid callback: "+e);return n.get(e)}return n}function Np(t,e){return function(n,r){var i=Cp(n).mimeType(t).response(e);if(null!=r){if("function"!=typeof r)throw new Error("invalid callback: "+r);return i.get(r)}return i}}const Ap=Np("text/html",(function(t){return document.createRange().createContextualFragment(t.responseText)})),Pp=Np("application/json",(function(t){return JSON.parse(t.responseText)})),zp=Np("text/plain",(function(t){return t.responseText})),Ip=Np("application/xml",(function(t){var e=t.responseXML;if(!e)throw new Error("parse error");return e}));var Rp=n(72);function Lp(t,e){return function(n,r,i){arguments.length<3&&(i=r,r=null);var o=Cp(n).mimeType(t);return o.row=function(t){return arguments.length?o.response(function(t,e){return function(n){return t(n.responseText,e)}}(e,r=t)):r},o.row(r),i?o.get(i):o}}const Op=Lp("text/csv",Rp.sw),Dp=Lp("text/tab-separated-values",Rp.Nu);var Up=Array.prototype,Fp=Up.map,jp=Up.slice,qp={name:"implicit"};function Bp(t){var e=qa(),n=[],r=qp;function i(i){var o=i+"",a=e.get(o);if(!a){if(r!==qp)return r;e.set(o,a=n.push(i))}return t[(a-1)%t.length]}return t=null==t?[]:jp.call(t),i.domain=function(t){if(!arguments.length)return n.slice();n=[],e=qa();for(var r,o,a=-1,u=t.length;++a2?Kp:Gp,r=i=null,f}function f(e){return(r||(r=n(o,a,c?function(t){return function(e,n){var r=t(e=+e,n=+n);return function(t){return t<=e?0:t>=n?1:r(t)}}}(t):t,u)))(+e)}return f.invert=function(t){return(i||(i=n(a,o,Qp,c?function(t){return function(e,n){var r=t(e=+e,n=+n);return function(t){return t<=0?e:t>=1?n:r(t)}}}(e):e)))(+t)},f.domain=function(t){return arguments.length?(o=Fp.call(t,$p),l()):o.slice()},f.range=function(t){return arguments.length?(a=jp.call(t),l()):a.slice()},f.rangeRound=function(t){return a=jp.call(t),u=br,l()},f.clamp=function(t){return arguments.length?(c=!!t,l()):c},f.interpolate=function(t){return arguments.length?(u=t,l()):u},l()}function tv(t){var e=t.domain;return t.ticks=function(t){var n=e();return S(n[0],n[n.length-1],null==t?10:t)},t.tickFormat=function(t,n){return function(t,e,n){var r,i=t[0],o=t[t.length-1],a=N(i,o,null==e?10:e);switch((n=Qu(null==n?",f":n)).type){case"s":var u=Math.max(Math.abs(i),Math.abs(o));return null!=n.precision||isNaN(r=oc(a,u))||(n.precision=r),tc(n,u);case"":case"e":case"g":case"p":case"r":null!=n.precision||isNaN(r=ac(a,Math.max(Math.abs(i),Math.abs(o))))||(n.precision=r-("e"===n.type));break;case"f":case"%":null!=n.precision||isNaN(r=ic(a))||(n.precision=r-2*("%"===n.type))}return Ju(n)}(e(),t,n)},t.nice=function(n){null==n&&(n=10);var r,i=e(),o=0,a=i.length-1,u=i[o],c=i[a];return c0?r=C(u=Math.floor(u/r)*r,c=Math.ceil(c/r)*r,n):r<0&&(r=C(u=Math.ceil(u*r)/r,c=Math.floor(c*r)/r,n)),r>0?(i[o]=Math.floor(u/r)*r,i[a]=Math.ceil(c/r)*r,e(i)):r<0&&(i[o]=Math.ceil(u*r)/r,i[a]=Math.floor(c*r)/r,e(i)),t},t}function ev(){var t=Jp(Qp,pr);return t.copy=function(){return Zp(t,ev())},tv(t)}function nv(){var t=[0,1];function e(t){return+t}return e.invert=e,e.domain=e.range=function(n){return arguments.length?(t=Fp.call(n,$p),e):t.slice()},e.copy=function(){return nv().domain(t)},tv(e)}function rv(t,e){var n,r=0,i=(t=t.slice()).length-1,o=t[r],a=t[i];return a0){for(;hc)break;v.push(s)}}else for(;h=1;--f)if(!((s=l*f)c)break;v.push(s)}}else v=S(h,d,Math.min(d-h,p)).map(i);return o?v.reverse():v},t.tickFormat=function(e,o){if(null==o&&(o=10===n?".0e":","),"function"!=typeof o&&(o=Ju(o)),e===1/0)return o;null==e&&(e=10);var a=Math.max(1,n*e/t.ticks().length);return function(t){var e=t/i(Math.round(r(t)));return e*n0?n[i-1]:t[0],i=n?[r[n-1],e]:[r[a-1],r[a]]},o.copy=function(){return vv().domain([t,e]).range(i)},tv(o)}function gv(){var t=[.5],e=[0,1],n=1;function r(r){if(r<=r)return e[l(t,r,0,n)]}return r.domain=function(i){return arguments.length?(t=jp.call(i),n=Math.min(t.length,e.length-1),r):t.slice()},r.range=function(i){return arguments.length?(e=jp.call(i),n=Math.min(t.length,e.length-1),r):e.slice()},r.invertExtent=function(n){var r=e.indexOf(n);return[t[r-1],t[r]]},r.copy=function(){return gv().domain(t).range(e)},r}var yv=new Date,_v=new Date;function mv(t,e,n,r){function i(e){return t(e=new Date(+e)),e}return i.floor=i,i.ceil=function(n){return t(n=new Date(n-1)),e(n,1),t(n),n},i.round=function(t){var e=i(t),n=i.ceil(t);return t-e0))return u;do{u.push(a=new Date(+n)),e(n,o),t(n)}while(a=e)for(;t(e),!n(e);)e.setTime(e-1)}),(function(t,r){if(t>=t)if(r<0)for(;++r<=0;)for(;e(t,-1),!n(t););else for(;--r>=0;)for(;e(t,1),!n(t););}))},n&&(i.count=function(e,r){return yv.setTime(+e),_v.setTime(+r),t(yv),t(_v),Math.floor(n(yv,_v))},i.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?i.filter(r?function(e){return r(e)%t==0}:function(e){return i.count(0,e)%t==0}):i:null}),i}var bv=mv((function(){}),(function(t,e){t.setTime(+t+e)}),(function(t,e){return e-t}));bv.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?mv((function(e){e.setTime(Math.floor(e/t)*t)}),(function(e,n){e.setTime(+e+n*t)}),(function(e,n){return(n-e)/t})):bv:null};const wv=bv;var xv=bv.range,Ev=1e3,kv=6e4,Mv=36e5,Tv=864e5,Sv=6048e5,Cv=mv((function(t){t.setTime(Math.floor(t/Ev)*Ev)}),(function(t,e){t.setTime(+t+e*Ev)}),(function(t,e){return(e-t)/Ev}),(function(t){return t.getUTCSeconds()}));const Nv=Cv;var Av=Cv.range,Pv=mv((function(t){t.setTime(Math.floor(t/kv)*kv)}),(function(t,e){t.setTime(+t+e*kv)}),(function(t,e){return(e-t)/kv}),(function(t){return t.getMinutes()}));const zv=Pv;var Iv=Pv.range,Rv=mv((function(t){var e=t.getTimezoneOffset()*kv%Mv;e<0&&(e+=Mv),t.setTime(Math.floor((+t-e)/Mv)*Mv+e)}),(function(t,e){t.setTime(+t+e*Mv)}),(function(t,e){return(e-t)/Mv}),(function(t){return t.getHours()}));const Lv=Rv;var Ov=Rv.range,Dv=mv((function(t){t.setHours(0,0,0,0)}),(function(t,e){t.setDate(t.getDate()+e)}),(function(t,e){return(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*kv)/Tv}),(function(t){return t.getDate()-1}));const Uv=Dv;var Fv=Dv.range;function jv(t){return mv((function(e){e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)}),(function(t,e){t.setDate(t.getDate()+7*e)}),(function(t,e){return(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*kv)/Sv}))}var qv=jv(0),Bv=jv(1),Vv=jv(2),Hv=jv(3),Wv=jv(4),Yv=jv(5),$v=jv(6),Xv=qv.range,Qv=Bv.range,Gv=Vv.range,Kv=Hv.range,Zv=Wv.range,Jv=Yv.range,tg=$v.range,eg=mv((function(t){t.setDate(1),t.setHours(0,0,0,0)}),(function(t,e){t.setMonth(t.getMonth()+e)}),(function(t,e){return e.getMonth()-t.getMonth()+12*(e.getFullYear()-t.getFullYear())}),(function(t){return t.getMonth()}));const ng=eg;var rg=eg.range,ig=mv((function(t){t.setMonth(0,1),t.setHours(0,0,0,0)}),(function(t,e){t.setFullYear(t.getFullYear()+e)}),(function(t,e){return e.getFullYear()-t.getFullYear()}),(function(t){return t.getFullYear()}));ig.every=function(t){return isFinite(t=Math.floor(t))&&t>0?mv((function(e){e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)}),(function(e,n){e.setFullYear(e.getFullYear()+n*t)})):null};const og=ig;var ag=ig.range,ug=mv((function(t){t.setUTCSeconds(0,0)}),(function(t,e){t.setTime(+t+e*kv)}),(function(t,e){return(e-t)/kv}),(function(t){return t.getUTCMinutes()}));const cg=ug;var lg=ug.range,fg=mv((function(t){t.setUTCMinutes(0,0,0)}),(function(t,e){t.setTime(+t+e*Mv)}),(function(t,e){return(e-t)/Mv}),(function(t){return t.getUTCHours()}));const sg=fg;var hg=fg.range,dg=mv((function(t){t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCDate(t.getUTCDate()+e)}),(function(t,e){return(e-t)/Tv}),(function(t){return t.getUTCDate()-1}));const pg=dg;var vg=dg.range;function gg(t){return mv((function(e){e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCDate(t.getUTCDate()+7*e)}),(function(t,e){return(e-t)/Sv}))}var yg=gg(0),_g=gg(1),mg=gg(2),bg=gg(3),wg=gg(4),xg=gg(5),Eg=gg(6),kg=yg.range,Mg=_g.range,Tg=mg.range,Sg=bg.range,Cg=wg.range,Ng=xg.range,Ag=Eg.range,Pg=mv((function(t){t.setUTCDate(1),t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCMonth(t.getUTCMonth()+e)}),(function(t,e){return e.getUTCMonth()-t.getUTCMonth()+12*(e.getUTCFullYear()-t.getUTCFullYear())}),(function(t){return t.getUTCMonth()}));const zg=Pg;var Ig=Pg.range,Rg=mv((function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCFullYear(t.getUTCFullYear()+e)}),(function(t,e){return e.getUTCFullYear()-t.getUTCFullYear()}),(function(t){return t.getUTCFullYear()}));Rg.every=function(t){return isFinite(t=Math.floor(t))&&t>0?mv((function(e){e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),(function(e,n){e.setUTCFullYear(e.getUTCFullYear()+n*t)})):null};const Lg=Rg;var Og=Rg.range;function Dg(t){if(0<=t.y&&t.y<100){var e=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return e.setFullYear(t.y),e}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function Ug(t){if(0<=t.y&&t.y<100){var e=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return e.setUTCFullYear(t.y),e}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function Fg(t){return{y:t,m:0,d:1,H:0,M:0,S:0,L:0}}function jg(t){var e=t.dateTime,n=t.date,r=t.time,i=t.periods,o=t.days,a=t.shortDays,u=t.months,c=t.shortMonths,l=Zg(i),f=Jg(i),s=Zg(o),h=Jg(o),d=Zg(a),p=Jg(a),v=Zg(u),g=Jg(u),y=Zg(c),_=Jg(c),m={a:function(t){return a[t.getDay()]},A:function(t){return o[t.getDay()]},b:function(t){return c[t.getMonth()]},B:function(t){return u[t.getMonth()]},c:null,d:my,e:my,f:ky,H:by,I:wy,j:xy,L:Ey,m:My,M:Ty,p:function(t){return i[+(t.getHours()>=12)]},Q:t_,s:e_,S:Sy,u:Cy,U:Ny,V:Ay,w:Py,W:zy,x:null,X:null,y:Iy,Y:Ry,Z:Ly,"%":Jy},b={a:function(t){return a[t.getUTCDay()]},A:function(t){return o[t.getUTCDay()]},b:function(t){return c[t.getUTCMonth()]},B:function(t){return u[t.getUTCMonth()]},c:null,d:Oy,e:Oy,f:qy,H:Dy,I:Uy,j:Fy,L:jy,m:By,M:Vy,p:function(t){return i[+(t.getUTCHours()>=12)]},Q:t_,s:e_,S:Hy,u:Wy,U:Yy,V:$y,w:Xy,W:Qy,x:null,X:null,y:Gy,Y:Ky,Z:Zy,"%":Jy},w={a:function(t,e,n){var r=d.exec(e.slice(n));return r?(t.w=p[r[0].toLowerCase()],n+r[0].length):-1},A:function(t,e,n){var r=s.exec(e.slice(n));return r?(t.w=h[r[0].toLowerCase()],n+r[0].length):-1},b:function(t,e,n){var r=y.exec(e.slice(n));return r?(t.m=_[r[0].toLowerCase()],n+r[0].length):-1},B:function(t,e,n){var r=v.exec(e.slice(n));return r?(t.m=g[r[0].toLowerCase()],n+r[0].length):-1},c:function(t,n,r){return k(t,e,n,r)},d:ly,e:ly,f:vy,H:sy,I:sy,j:fy,L:py,m:cy,M:hy,p:function(t,e,n){var r=l.exec(e.slice(n));return r?(t.p=f[r[0].toLowerCase()],n+r[0].length):-1},Q:yy,s:_y,S:dy,u:ey,U:ny,V:ry,w:ty,W:iy,x:function(t,e,r){return k(t,n,e,r)},X:function(t,e,n){return k(t,r,e,n)},y:ay,Y:oy,Z:uy,"%":gy};function x(t,e){return function(n){var r,i,o,a=[],u=-1,c=0,l=t.length;for(n instanceof Date||(n=new Date(+n));++u53)return null;"w"in o||(o.w=1),"Z"in o?(i=(r=Ug(Fg(o.y))).getUTCDay(),r=i>4||0===i?_g.ceil(r):_g(r),r=pg.offset(r,7*(o.V-1)),o.y=r.getUTCFullYear(),o.m=r.getUTCMonth(),o.d=r.getUTCDate()+(o.w+6)%7):(i=(r=e(Fg(o.y))).getDay(),r=i>4||0===i?Bv.ceil(r):Bv(r),r=Uv.offset(r,7*(o.V-1)),o.y=r.getFullYear(),o.m=r.getMonth(),o.d=r.getDate()+(o.w+6)%7)}else("W"in o||"U"in o)&&("w"in o||(o.w="u"in o?o.u%7:"W"in o?1:0),i="Z"in o?Ug(Fg(o.y)).getUTCDay():e(Fg(o.y)).getDay(),o.m=0,o.d="W"in o?(o.w+6)%7+7*o.W-(i+5)%7:o.w+7*o.U-(i+6)%7);return"Z"in o?(o.H+=o.Z/100|0,o.M+=o.Z%100,Ug(o)):e(o)}}function k(t,e,n,r){for(var i,o,a=0,u=e.length,c=n.length;a=c)return-1;if(37===(i=e.charCodeAt(a++))){if(i=e.charAt(a++),!(o=w[i in Yg?e.charAt(a++):i])||(r=o(t,n,r))<0)return-1}else if(i!=n.charCodeAt(r++))return-1}return r}return m.x=x(n,m),m.X=x(r,m),m.c=x(e,m),b.x=x(n,b),b.X=x(r,b),b.c=x(e,b),{format:function(t){var e=x(t+="",m);return e.toString=function(){return t},e},parse:function(t){var e=E(t+="",Dg);return e.toString=function(){return t},e},utcFormat:function(t){var e=x(t+="",b);return e.toString=function(){return t},e},utcParse:function(t){var e=E(t,Ug);return e.toString=function(){return t},e}}}var qg,Bg,Vg,Hg,Wg,Yg={"-":"",_:" ",0:"0"},$g=/^\s*\d+/,Xg=/^%/,Qg=/[\\^$*+?|[\]().{}]/g;function Gg(t,e,n){var r=t<0?"-":"",i=(r?-t:t)+"",o=i.length;return r+(o68?1900:2e3),n+r[0].length):-1}function uy(t,e,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(n,n+6));return r?(t.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function cy(t,e,n){var r=$g.exec(e.slice(n,n+2));return r?(t.m=r[0]-1,n+r[0].length):-1}function ly(t,e,n){var r=$g.exec(e.slice(n,n+2));return r?(t.d=+r[0],n+r[0].length):-1}function fy(t,e,n){var r=$g.exec(e.slice(n,n+3));return r?(t.m=0,t.d=+r[0],n+r[0].length):-1}function sy(t,e,n){var r=$g.exec(e.slice(n,n+2));return r?(t.H=+r[0],n+r[0].length):-1}function hy(t,e,n){var r=$g.exec(e.slice(n,n+2));return r?(t.M=+r[0],n+r[0].length):-1}function dy(t,e,n){var r=$g.exec(e.slice(n,n+2));return r?(t.S=+r[0],n+r[0].length):-1}function py(t,e,n){var r=$g.exec(e.slice(n,n+3));return r?(t.L=+r[0],n+r[0].length):-1}function vy(t,e,n){var r=$g.exec(e.slice(n,n+6));return r?(t.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function gy(t,e,n){var r=Xg.exec(e.slice(n,n+1));return r?n+r[0].length:-1}function yy(t,e,n){var r=$g.exec(e.slice(n));return r?(t.Q=+r[0],n+r[0].length):-1}function _y(t,e,n){var r=$g.exec(e.slice(n));return r?(t.Q=1e3*+r[0],n+r[0].length):-1}function my(t,e){return Gg(t.getDate(),e,2)}function by(t,e){return Gg(t.getHours(),e,2)}function wy(t,e){return Gg(t.getHours()%12||12,e,2)}function xy(t,e){return Gg(1+Uv.count(og(t),t),e,3)}function Ey(t,e){return Gg(t.getMilliseconds(),e,3)}function ky(t,e){return Ey(t,e)+"000"}function My(t,e){return Gg(t.getMonth()+1,e,2)}function Ty(t,e){return Gg(t.getMinutes(),e,2)}function Sy(t,e){return Gg(t.getSeconds(),e,2)}function Cy(t){var e=t.getDay();return 0===e?7:e}function Ny(t,e){return Gg(qv.count(og(t),t),e,2)}function Ay(t,e){var n=t.getDay();return t=n>=4||0===n?Wv(t):Wv.ceil(t),Gg(Wv.count(og(t),t)+(4===og(t).getDay()),e,2)}function Py(t){return t.getDay()}function zy(t,e){return Gg(Bv.count(og(t),t),e,2)}function Iy(t,e){return Gg(t.getFullYear()%100,e,2)}function Ry(t,e){return Gg(t.getFullYear()%1e4,e,4)}function Ly(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+Gg(e/60|0,"0",2)+Gg(e%60,"0",2)}function Oy(t,e){return Gg(t.getUTCDate(),e,2)}function Dy(t,e){return Gg(t.getUTCHours(),e,2)}function Uy(t,e){return Gg(t.getUTCHours()%12||12,e,2)}function Fy(t,e){return Gg(1+pg.count(Lg(t),t),e,3)}function jy(t,e){return Gg(t.getUTCMilliseconds(),e,3)}function qy(t,e){return jy(t,e)+"000"}function By(t,e){return Gg(t.getUTCMonth()+1,e,2)}function Vy(t,e){return Gg(t.getUTCMinutes(),e,2)}function Hy(t,e){return Gg(t.getUTCSeconds(),e,2)}function Wy(t){var e=t.getUTCDay();return 0===e?7:e}function Yy(t,e){return Gg(yg.count(Lg(t),t),e,2)}function $y(t,e){var n=t.getUTCDay();return t=n>=4||0===n?wg(t):wg.ceil(t),Gg(wg.count(Lg(t),t)+(4===Lg(t).getUTCDay()),e,2)}function Xy(t){return t.getUTCDay()}function Qy(t,e){return Gg(_g.count(Lg(t),t),e,2)}function Gy(t,e){return Gg(t.getUTCFullYear()%100,e,2)}function Ky(t,e){return Gg(t.getUTCFullYear()%1e4,e,4)}function Zy(){return"+0000"}function Jy(){return"%"}function t_(t){return+t}function e_(t){return Math.floor(+t/1e3)}function n_(t){return qg=jg(t),Bg=qg.format,Vg=qg.parse,Hg=qg.utcFormat,Wg=qg.utcParse,qg}n_({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"]});var r_="%Y-%m-%dT%H:%M:%S.%LZ";var i_=Date.prototype.toISOString?function(t){return t.toISOString()}:Hg(r_);const o_=i_;var a_=+new Date("2000-01-01T00:00:00.000Z")?function(t){var e=new Date(t);return isNaN(e)?null:e}:Wg(r_);const u_=a_;var c_=1e3,l_=60*c_,f_=60*l_,s_=24*f_,h_=7*s_,d_=30*s_,p_=365*s_;function v_(t){return new Date(t)}function g_(t){return t instanceof Date?+t:+new Date(+t)}function y_(t,e,n,r,i,a,u,c,l){var f=Jp(Qp,pr),s=f.invert,h=f.domain,d=l(".%L"),p=l(":%S"),v=l("%I:%M"),g=l("%I %p"),y=l("%a %d"),_=l("%b %d"),m=l("%B"),b=l("%Y"),w=[[u,1,c_],[u,5,5*c_],[u,15,15*c_],[u,30,30*c_],[a,1,l_],[a,5,5*l_],[a,15,15*l_],[a,30,30*l_],[i,1,f_],[i,3,3*f_],[i,6,6*f_],[i,12,12*f_],[r,1,s_],[r,2,2*s_],[n,1,h_],[e,1,d_],[e,3,3*d_],[t,1,p_]];function x(o){return(u(o)1)&&(t-=Math.floor(t));var e=Math.abs(t-.5);return C_.h=360*t-100,C_.s=1.5-1.5*e,C_.l=.8-.9*e,C_+""}function A_(t){var e=t.length;return function(n){return t[Math.max(0,Math.min(e-1,Math.floor(n*e)))]}}const P_=A_(b_("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725"));var z_=A_(b_("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf")),I_=A_(b_("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4")),R_=A_(b_("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"));function L_(t){var e=0,n=1,r=!1;function i(i){var o=(i-e)/(n-e);return t(r?Math.max(0,Math.min(1,o)):o)}return i.domain=function(t){return arguments.length?(e=+t[0],n=+t[1],i):[e,n]},i.clamp=function(t){return arguments.length?(r=!!t,i):r},i.interpolator=function(e){return arguments.length?(t=e,i):t},i.copy=function(){return L_(t).domain([e,n]).clamp(r)},tv(i)}function O_(t){return function(){return t}}var D_=Math.abs,U_=Math.atan2,F_=Math.cos,j_=Math.max,q_=Math.min,B_=Math.sin,V_=Math.sqrt,H_=1e-12,W_=Math.PI,Y_=W_/2,$_=2*W_;function X_(t){return t>=1?Y_:t<=-1?-Y_:Math.asin(t)}function Q_(t){return t.innerRadius}function G_(t){return t.outerRadius}function K_(t){return t.startAngle}function Z_(t){return t.endAngle}function J_(t){return t&&t.padAngle}function tm(t,e,n,r,i,o,a){var u=t-n,c=e-r,l=(a?o:-o)/V_(u*u+c*c),f=l*c,s=-l*u,h=t+f,d=e+s,p=n+f,v=r+s,g=(h+p)/2,y=(d+v)/2,_=p-h,m=v-d,b=_*_+m*m,w=i-o,x=h*v-p*d,E=(m<0?-1:1)*V_(j_(0,w*w*b-x*x)),k=(x*m-_*E)/b,M=(-x*_-m*E)/b,T=(x*m+_*E)/b,S=(-x*_+m*E)/b,C=k-g,N=M-y,A=T-g,P=S-y;return C*C+N*N>A*A+P*P&&(k=T,M=S),{cx:k,cy:M,x01:-f,y01:-s,x11:k*(i/w-1),y11:M*(i/w-1)}}function em(){var t=Q_,e=G_,n=O_(0),r=null,i=K_,o=Z_,a=J_,u=null;function c(){var c,l,f=+t.apply(this,arguments),s=+e.apply(this,arguments),h=i.apply(this,arguments)-Y_,d=o.apply(this,arguments)-Y_,p=D_(d-h),v=d>h;if(u||(u=c=Pa()),sH_)if(p>$_-H_)u.moveTo(s*F_(h),s*B_(h)),u.arc(0,0,s,h,d,!v),f>H_&&(u.moveTo(f*F_(d),f*B_(d)),u.arc(0,0,f,d,h,v));else{var g,y,_=h,m=d,b=h,w=d,x=p,E=p,k=a.apply(this,arguments)/2,M=k>H_&&(r?+r.apply(this,arguments):V_(f*f+s*s)),T=q_(D_(s-f)/2,+n.apply(this,arguments)),S=T,C=T;if(M>H_){var N=X_(M/f*B_(k)),A=X_(M/s*B_(k));(x-=2*N)>H_?(b+=N*=v?1:-1,w-=N):(x=0,b=w=(h+d)/2),(E-=2*A)>H_?(_+=A*=v?1:-1,m-=A):(E=0,_=m=(h+d)/2)}var P=s*F_(_),z=s*B_(_),I=f*F_(w),R=f*B_(w);if(T>H_){var L=s*F_(m),O=s*B_(m),D=f*F_(b),U=f*B_(b);if(pH_?function(t,e,n,r,i,o,a,u){var c=n-t,l=r-e,f=a-i,s=u-o,h=(f*(e-o)-s*(t-i))/(s*c-f*l);return[t+h*c,e+h*l]}(P,z,D,U,L,O,I,R):[I,R],j=P-F[0],q=z-F[1],B=L-F[0],V=O-F[1],H=1/B_(function(t){return t>1?0:t<-1?W_:Math.acos(t)}((j*B+q*V)/(V_(j*j+q*q)*V_(B*B+V*V)))/2),W=V_(F[0]*F[0]+F[1]*F[1]);S=q_(T,(f-W)/(H-1)),C=q_(T,(s-W)/(H+1))}}E>H_?C>H_?(g=tm(D,U,P,z,s,C,v),y=tm(L,O,I,R,s,C,v),u.moveTo(g.cx+g.x01,g.cy+g.y01),CH_&&x>H_?S>H_?(g=tm(I,R,L,O,f,-S,v),y=tm(P,z,D,U,f,-S,v),u.lineTo(g.cx+g.x01,g.cy+g.y01),S=f;--s)u.point(g[s],y[s]);u.lineEnd(),u.areaEnd()}v&&(g[l]=+t(h,l,c),y[l]=+n(h,l,c),u.point(e?+e(h,l,c):g[l],r?+r(h,l,c):y[l]))}if(d)return u=null,d+""||null}function l(){return am().defined(i).curve(a).context(o)}return c.x=function(n){return arguments.length?(t="function"==typeof n?n:O_(+n),e=null,c):t},c.x0=function(e){return arguments.length?(t="function"==typeof e?e:O_(+e),c):t},c.x1=function(t){return arguments.length?(e=null==t?null:"function"==typeof t?t:O_(+t),c):e},c.y=function(t){return arguments.length?(n="function"==typeof t?t:O_(+t),r=null,c):n},c.y0=function(t){return arguments.length?(n="function"==typeof t?t:O_(+t),c):n},c.y1=function(t){return arguments.length?(r=null==t?null:"function"==typeof t?t:O_(+t),c):r},c.lineX0=c.lineY0=function(){return l().x(t).y(n)},c.lineY1=function(){return l().x(t).y(r)},c.lineX1=function(){return l().x(e).y(n)},c.defined=function(t){return arguments.length?(i="function"==typeof t?t:O_(!!t),c):i},c.curve=function(t){return arguments.length?(a=t,null!=o&&(u=a(o)),c):a},c.context=function(t){return arguments.length?(null==t?o=u=null:u=a(o=t),c):o},c}function cm(t,e){return et?1:e>=t?0:NaN}function lm(t){return t}function fm(){var t=lm,e=cm,n=null,r=O_(0),i=O_($_),o=O_(0);function a(a){var u,c,l,f,s,h=a.length,d=0,p=new Array(h),v=new Array(h),g=+r.apply(this,arguments),y=Math.min($_,Math.max(-$_,i.apply(this,arguments)-g)),_=Math.min(Math.abs(y)/h,o.apply(this,arguments)),m=_*(y<0?-1:1);for(u=0;u0&&(d+=s);for(null!=e?p.sort((function(t,n){return e(v[t],v[n])})):null!=n&&p.sort((function(t,e){return n(a[t],a[e])})),u=0,l=d?(y-h*m)/d:0;u0?s*l:0)+m,v[c]={data:a[c],index:u,value:s,startAngle:g,endAngle:f,padAngle:_};return v}return a.value=function(e){return arguments.length?(t="function"==typeof e?e:O_(+e),a):t},a.sortValues=function(t){return arguments.length?(e=t,n=null,a):e},a.sort=function(t){return arguments.length?(n=t,e=null,a):n},a.startAngle=function(t){return arguments.length?(r="function"==typeof t?t:O_(+t),a):r},a.endAngle=function(t){return arguments.length?(i="function"==typeof t?t:O_(+t),a):i},a.padAngle=function(t){return arguments.length?(o="function"==typeof t?t:O_(+t),a):o},a}nm.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._context.lineTo(t,e)}}};var sm=dm(rm);function hm(t){this._curve=t}function dm(t){function e(e){return new hm(t(e))}return e._curve=t,e}function pm(t){var e=t.curve;return t.angle=t.x,delete t.x,t.radius=t.y,delete t.y,t.curve=function(t){return arguments.length?e(dm(t)):e()._curve},t}function vm(){return pm(am().curve(sm))}function gm(){var t=um().curve(sm),e=t.curve,n=t.lineX0,r=t.lineX1,i=t.lineY0,o=t.lineY1;return t.angle=t.x,delete t.x,t.startAngle=t.x0,delete t.x0,t.endAngle=t.x1,delete t.x1,t.radius=t.y,delete t.y,t.innerRadius=t.y0,delete t.y0,t.outerRadius=t.y1,delete t.y1,t.lineStartAngle=function(){return pm(n())},delete t.lineX0,t.lineEndAngle=function(){return pm(r())},delete t.lineX1,t.lineInnerRadius=function(){return pm(i())},delete t.lineY0,t.lineOuterRadius=function(){return pm(o())},delete t.lineY1,t.curve=function(t){return arguments.length?e(dm(t)):e()._curve},t}function ym(t,e){return[(e=+e)*Math.cos(t-=Math.PI/2),e*Math.sin(t)]}hm.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(t,e){this._curve.point(e*Math.sin(t),e*-Math.cos(t))}};var _m=Array.prototype.slice;function mm(t){return t.source}function bm(t){return t.target}function wm(t){var e=mm,n=bm,r=im,i=om,o=null;function a(){var a,u=_m.call(arguments),c=e.apply(this,u),l=n.apply(this,u);if(o||(o=a=Pa()),t(o,+r.apply(this,(u[0]=c,u)),+i.apply(this,u),+r.apply(this,(u[0]=l,u)),+i.apply(this,u)),a)return o=null,a+""||null}return a.source=function(t){return arguments.length?(e=t,a):e},a.target=function(t){return arguments.length?(n=t,a):n},a.x=function(t){return arguments.length?(r="function"==typeof t?t:O_(+t),a):r},a.y=function(t){return arguments.length?(i="function"==typeof t?t:O_(+t),a):i},a.context=function(t){return arguments.length?(o=null==t?null:t,a):o},a}function xm(t,e,n,r,i){t.moveTo(e,n),t.bezierCurveTo(e=(e+r)/2,n,e,i,r,i)}function Em(t,e,n,r,i){t.moveTo(e,n),t.bezierCurveTo(e,n=(n+i)/2,r,n,r,i)}function km(t,e,n,r,i){var o=ym(e,n),a=ym(e,n=(n+i)/2),u=ym(r,n),c=ym(r,i);t.moveTo(o[0],o[1]),t.bezierCurveTo(a[0],a[1],u[0],u[1],c[0],c[1])}function Mm(){return wm(xm)}function Tm(){return wm(Em)}function Sm(){var t=wm(km);return t.angle=t.x,delete t.x,t.radius=t.y,delete t.y,t}const Cm={draw:function(t,e){var n=Math.sqrt(e/W_);t.moveTo(n,0),t.arc(0,0,n,0,$_)}},Nm={draw:function(t,e){var n=Math.sqrt(e/5)/2;t.moveTo(-3*n,-n),t.lineTo(-n,-n),t.lineTo(-n,-3*n),t.lineTo(n,-3*n),t.lineTo(n,-n),t.lineTo(3*n,-n),t.lineTo(3*n,n),t.lineTo(n,n),t.lineTo(n,3*n),t.lineTo(-n,3*n),t.lineTo(-n,n),t.lineTo(-3*n,n),t.closePath()}};var Am=Math.sqrt(1/3),Pm=2*Am;const zm={draw:function(t,e){var n=Math.sqrt(e/Pm),r=n*Am;t.moveTo(0,-n),t.lineTo(r,0),t.lineTo(0,n),t.lineTo(-r,0),t.closePath()}};var Im=Math.sin(W_/10)/Math.sin(7*W_/10),Rm=Math.sin($_/10)*Im,Lm=-Math.cos($_/10)*Im;const Om={draw:function(t,e){var n=Math.sqrt(.8908130915292852*e),r=Rm*n,i=Lm*n;t.moveTo(0,-n),t.lineTo(r,i);for(var o=1;o<5;++o){var a=$_*o/5,u=Math.cos(a),c=Math.sin(a);t.lineTo(c*n,-u*n),t.lineTo(u*r-c*i,c*r+u*i)}t.closePath()}},Dm={draw:function(t,e){var n=Math.sqrt(e),r=-n/2;t.rect(r,r,n,n)}};var Um=Math.sqrt(3);const Fm={draw:function(t,e){var n=-Math.sqrt(e/(3*Um));t.moveTo(0,2*n),t.lineTo(-Um*n,-n),t.lineTo(Um*n,-n),t.closePath()}};var jm=-.5,qm=Math.sqrt(3)/2,Bm=1/Math.sqrt(12),Vm=3*(Bm/2+1);const Hm={draw:function(t,e){var n=Math.sqrt(e/Vm),r=n/2,i=n*Bm,o=r,a=n*Bm+n,u=-o,c=a;t.moveTo(r,i),t.lineTo(o,a),t.lineTo(u,c),t.lineTo(jm*r-qm*i,qm*r+jm*i),t.lineTo(jm*o-qm*a,qm*o+jm*a),t.lineTo(jm*u-qm*c,qm*u+jm*c),t.lineTo(jm*r+qm*i,jm*i-qm*r),t.lineTo(jm*o+qm*a,jm*a-qm*o),t.lineTo(jm*u+qm*c,jm*c-qm*u),t.closePath()}};var Wm=[Cm,Nm,zm,Dm,Om,Fm,Hm];function Ym(){var t=O_(Cm),e=O_(64),n=null;function r(){var r;if(n||(n=r=Pa()),t.apply(this,arguments).draw(n,+e.apply(this,arguments)),r)return n=null,r+""||null}return r.type=function(e){return arguments.length?(t="function"==typeof e?e:O_(e),r):t},r.size=function(t){return arguments.length?(e="function"==typeof t?t:O_(+t),r):e},r.context=function(t){return arguments.length?(n=null==t?null:t,r):n},r}function $m(){}function Xm(t,e,n){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+e)/6,(t._y0+4*t._y1+n)/6)}function Qm(t){this._context=t}function Gm(t){return new Qm(t)}function Km(t){this._context=t}function Zm(t){return new Km(t)}function Jm(t){this._context=t}function tb(t){return new Jm(t)}function eb(t,e){this._basis=new Qm(t),this._beta=e}Qm.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:Xm(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:Xm(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},Km.prototype={areaStart:$m,areaEnd:$m,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x2=t,this._y2=e;break;case 1:this._point=2,this._x3=t,this._y3=e;break;case 2:this._point=3,this._x4=t,this._y4=e,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+e)/6);break;default:Xm(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},Jm.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+t)/6,r=(this._y0+4*this._y1+e)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:Xm(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},eb.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var t=this._x,e=this._y,n=t.length-1;if(n>0)for(var r,i=t[0],o=e[0],a=t[n]-i,u=e[n]-o,c=-1;++c<=n;)r=c/n,this._basis.point(this._beta*t[c]+(1-this._beta)*(i+r*a),this._beta*e[c]+(1-this._beta)*(o+r*u));this._x=this._y=null,this._basis.lineEnd()},point:function(t,e){this._x.push(+t),this._y.push(+e)}};const nb=function t(e){function n(t){return 1===e?new Qm(t):new eb(t,e)}return n.beta=function(e){return t(+e)},n}(.85);function rb(t,e,n){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-e),t._y2+t._k*(t._y1-n),t._x2,t._y2)}function ib(t,e){this._context=t,this._k=(1-e)/6}ib.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:rb(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2,this._x1=t,this._y1=e;break;case 2:this._point=3;default:rb(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const ob=function t(e){function n(t){return new ib(t,e)}return n.tension=function(e){return t(+e)},n}(0);function ab(t,e){this._context=t,this._k=(1-e)/6}ab.prototype={areaStart:$m,areaEnd:$m,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:rb(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const ub=function t(e){function n(t){return new ab(t,e)}return n.tension=function(e){return t(+e)},n}(0);function cb(t,e){this._context=t,this._k=(1-e)/6}cb.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:rb(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const lb=function t(e){function n(t){return new cb(t,e)}return n.tension=function(e){return t(+e)},n}(0);function fb(t,e,n){var r=t._x1,i=t._y1,o=t._x2,a=t._y2;if(t._l01_a>H_){var u=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,c=3*t._l01_a*(t._l01_a+t._l12_a);r=(r*u-t._x0*t._l12_2a+t._x2*t._l01_2a)/c,i=(i*u-t._y0*t._l12_2a+t._y2*t._l01_2a)/c}if(t._l23_a>H_){var l=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,f=3*t._l23_a*(t._l23_a+t._l12_a);o=(o*l+t._x1*t._l23_2a-e*t._l12_2a)/f,a=(a*l+t._y1*t._l23_2a-n*t._l12_2a)/f}t._context.bezierCurveTo(r,i,o,a,t._x2,t._y2)}function sb(t,e){this._context=t,this._alpha=e}sb.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3;default:fb(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const hb=function t(e){function n(t){return e?new sb(t,e):new ib(t,0)}return n.alpha=function(e){return t(+e)},n}(.5);function db(t,e){this._context=t,this._alpha=e}db.prototype={areaStart:$m,areaEnd:$m,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:fb(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const pb=function t(e){function n(t){return e?new db(t,e):new ab(t,0)}return n.alpha=function(e){return t(+e)},n}(.5);function vb(t,e){this._context=t,this._alpha=e}vb.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:fb(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const gb=function t(e){function n(t){return e?new vb(t,e):new cb(t,0)}return n.alpha=function(e){return t(+e)},n}(.5);function yb(t){this._context=t}function _b(t){return new yb(t)}function mb(t){return t<0?-1:1}function bb(t,e,n){var r=t._x1-t._x0,i=e-t._x1,o=(t._y1-t._y0)/(r||i<0&&-0),a=(n-t._y1)/(i||r<0&&-0),u=(o*i+a*r)/(r+i);return(mb(o)+mb(a))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs(u))||0}function wb(t,e){var n=t._x1-t._x0;return n?(3*(t._y1-t._y0)/n-e)/2:e}function xb(t,e,n){var r=t._x0,i=t._y0,o=t._x1,a=t._y1,u=(o-r)/3;t._context.bezierCurveTo(r+u,i+u*e,o-u,a-u*n,o,a)}function Eb(t){this._context=t}function kb(t){this._context=new Mb(t)}function Mb(t){this._context=t}function Tb(t){return new Eb(t)}function Sb(t){return new kb(t)}function Cb(t){this._context=t}function Nb(t){var e,n,r=t.length-1,i=new Array(r),o=new Array(r),a=new Array(r);for(i[0]=0,o[0]=2,a[0]=t[0]+2*t[1],e=1;e=0;--e)i[e]=(a[e]-i[e+1])/o[e];for(o[r-1]=(t[r]+i[r-1])/2,e=0;e1)for(var n,r,i,o=1,a=t[e[0]],u=a.length;o=0;)n[e]=e;return n}function Db(t,e){return t[e]}function Ub(){var t=O_([]),e=Ob,n=Lb,r=Db;function i(i){var o,a,u=t.apply(this,arguments),c=i.length,l=u.length,f=new Array(l);for(o=0;o0){for(var n,r,i,o=0,a=t[0].length;o1)for(var n,r,i,o,a,u,c=0,l=t[e[0]].length;c=0?(r[0]=o,r[1]=o+=i):i<0?(r[1]=a,r[0]=a+=i):r[0]=o}function qb(t,e){if((n=t.length)>0){for(var n,r=0,i=t[e[0]],o=i.length;r0&&(r=(n=t[e[0]]).length)>0){for(var n,r,i,o=0,a=1;a=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,e),this._context.lineTo(t,e);else{var n=this._x*(1-this._t)+t*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,e)}}this._x=t,this._y=e}},Kb.prototype={constructor:Kb,insert:function(t,e){var n,r,i;if(t){if(e.P=t,e.N=t.N,t.N&&(t.N.P=e),t.N=e,t.R){for(t=t.R;t.L;)t=t.L;t.L=e}else t.R=e;n=t}else this._?(t=ew(this._),e.P=null,e.N=t,t.P=t.L=e,n=t):(e.P=e.N=null,this._=e,n=null);for(e.L=e.R=null,e.U=n,e.C=!0,t=e;n&&n.C;)n===(r=n.U).L?(i=r.R)&&i.C?(n.C=i.C=!1,r.C=!0,t=r):(t===n.R&&(Jb(this,n),n=(t=n).U),n.C=!1,r.C=!0,tw(this,r)):(i=r.L)&&i.C?(n.C=i.C=!1,r.C=!0,t=r):(t===n.L&&(tw(this,n),n=(t=n).U),n.C=!1,r.C=!0,Jb(this,r)),n=t.U;this._.C=!1},remove:function(t){t.N&&(t.N.P=t.P),t.P&&(t.P.N=t.N),t.N=t.P=null;var e,n,r,i=t.U,o=t.L,a=t.R;if(n=o?a?ew(a):o:a,i?i.L===t?i.L=n:i.R=n:this._=n,o&&a?(r=n.C,n.C=t.C,n.L=o,o.U=n,n!==a?(i=n.U,n.U=t.U,t=n.R,i.L=t,n.R=a,a.U=n):(n.U=i,i=n,t=n.R)):(r=t.C,t=n),t&&(t.U=i),!r)if(t&&t.C)t.C=!1;else{do{if(t===this._)break;if(t===i.L){if((e=i.R).C&&(e.C=!1,i.C=!0,Jb(this,i),e=i.R),e.L&&e.L.C||e.R&&e.R.C){e.R&&e.R.C||(e.L.C=!1,e.C=!0,tw(this,e),e=i.R),e.C=i.C,i.C=e.R.C=!1,Jb(this,i),t=this._;break}}else if((e=i.L).C&&(e.C=!1,i.C=!0,tw(this,i),e=i.L),e.L&&e.L.C||e.R&&e.R.C){e.L&&e.L.C||(e.R.C=!1,e.C=!0,Jb(this,e),e=i.L),e.C=i.C,i.C=e.L.C=!1,tw(this,i),t=this._;break}e.C=!0,t=i,i=i.U}while(!t.C);t&&(t.C=!1)}}};const nw=Kb;function rw(t,e,n,r){var i=[null,null],o=Sw.push(i)-1;return i.left=t,i.right=e,n&&ow(i,t,e,n),r&&ow(i,e,t,r),Mw[t.index].halfedges.push(o),Mw[e.index].halfedges.push(o),i}function iw(t,e,n){var r=[e,n];return r.left=t,r}function ow(t,e,n,r){t[0]||t[1]?t.left===n?t[1]=r:t[0]=r:(t[0]=r,t.left=e,t.right=n)}function aw(t,e,n,r,i){var o,a=t[0],u=t[1],c=a[0],l=a[1],f=0,s=1,h=u[0]-c,d=u[1]-l;if(o=e-c,h||!(o>0)){if(o/=h,h<0){if(o0){if(o>s)return;o>f&&(f=o)}if(o=r-c,h||!(o<0)){if(o/=h,h<0){if(o>s)return;o>f&&(f=o)}else if(h>0){if(o0)){if(o/=d,d<0){if(o0){if(o>s)return;o>f&&(f=o)}if(o=i-l,d||!(o<0)){if(o/=d,d<0){if(o>s)return;o>f&&(f=o)}else if(d>0){if(o0||s<1)||(f>0&&(t[0]=[c+f*h,l+f*d]),s<1&&(t[1]=[c+s*h,l+s*d]),!0)}}}}}function uw(t,e,n,r,i){var o=t[1];if(o)return!0;var a,u,c=t[0],l=t.left,f=t.right,s=l[0],h=l[1],d=f[0],p=f[1],v=(s+d)/2,g=(h+p)/2;if(p===h){if(v=r)return;if(s>d){if(c){if(c[1]>=i)return}else c=[v,n];o=[v,i]}else{if(c){if(c[1]1)if(s>d){if(c){if(c[1]>=i)return}else c=[(n-u)/a,n];o=[(i-u)/a,i]}else{if(c){if(c[1]=r)return}else c=[e,a*e+u];o=[r,a*r+u]}else{if(c){if(c[0]=-Nw)){var d=c*c+l*l,p=f*f+s*s,v=(s*d-l*p)/h,g=(c*p-f*d)/h,y=hw.pop()||new dw;y.arc=t,y.site=i,y.x=v+a,y.y=(y.cy=g+u)+Math.sqrt(v*v+g*g),t.circle=y;for(var _=null,m=Tw._;m;)if(y.yCw)u=u.L;else{if(!((i=o-Ew(u,a))>Cw)){r>-Cw?(e=u.P,n=u):i>-Cw?(e=u,n=u.N):e=n=u;break}if(!u.R){e=u;break}u=u.R}!function(t){Mw[t.index]={site:t,halfedges:[]}}(t);var c=_w(t);if(kw.insert(e,c),e||n){if(e===n)return vw(e),n=_w(e.site),kw.insert(c,n),c.edge=n.edge=rw(e.site,c.site),pw(e),void pw(n);if(n){vw(e),vw(n);var l=e.site,f=l[0],s=l[1],h=t[0]-f,d=t[1]-s,p=n.site,v=p[0]-f,g=p[1]-s,y=2*(h*g-d*v),_=h*h+d*d,m=v*v+g*g,b=[(g*_-d*m)/y+f,(h*m-v*_)/y+s];ow(n.edge,l,p,b),c.edge=rw(l,t,null,b),n.edge=rw(t,p,null,b),pw(e),pw(n)}else c.edge=rw(e.site,c.site)}}function xw(t,e){var n=t.site,r=n[0],i=n[1],o=i-e;if(!o)return r;var a=t.P;if(!a)return-1/0;var u=(n=a.site)[0],c=n[1],l=c-e;if(!l)return u;var f=u-r,s=1/o-1/l,h=f/l;return s?(-h+Math.sqrt(h*h-2*s*(f*f/(-2*l)-c+l/2+i-o/2)))/s+r:(r+u)/2}function Ew(t,e){var n=t.N;if(n)return xw(n,e);var r=t.site;return r[1]===e?r[0]:1/0}var kw,Mw,Tw,Sw,Cw=1e-6,Nw=1e-12;function Aw(t,e,n){return(t[0]-n[0])*(e[1]-t[1])-(t[0]-e[0])*(n[1]-t[1])}function Pw(t,e){return e[1]-t[1]||e[0]-t[0]}function zw(t,e){var n,r,i,o=t.sort(Pw).pop();for(Sw=[],Mw=new Array(t.length),kw=new nw,Tw=new nw;;)if(i=sw,o&&(!i||o[1]Cw||Math.abs(i[0][1]-i[1][1])>Cw)||delete Sw[o]}(a,u,c,l),function(t,e,n,r){var i,o,a,u,c,l,f,s,h,d,p,v,g=Mw.length,y=!0;for(i=0;iCw||Math.abs(v-h)>Cw)&&(c.splice(u,0,Sw.push(iw(a,d,Math.abs(p-t)Cw?[t,Math.abs(s-t)Cw?[Math.abs(h-r)Cw?[n,Math.abs(s-n)Cw?[Math.abs(h-e)=u)return null;var c=t-i.site[0],l=e-i.site[1],f=c*c+l*l;do{i=o.cells[r=a],a=null,i.halfedges.forEach((function(n){var r=o.edges[n],u=r.left;if(u!==i.site&&u||(u=r.right)){var c=t-u[0],l=e-u[1],s=c*c+l*l;sr?(r+i)/2:Math.min(0,r)||Math.max(0,i),a>o?(o+a)/2:Math.min(0,o)||Math.max(0,a))}function $w(){var t,e,n=qw,r=Bw,i=Yw,o=Hw,a=Ww,u=[0,1/0],c=[[-1/0,-1/0],[1/0,1/0]],l=250,f=Or,s=[],h=vt("start","zoom","end"),d=500,p=150,v=0;function g(t){t.property("__zoom",Vw).on("wheel.zoom",E).on("mousedown.zoom",k).on("dblclick.zoom",M).filter(a).on("touchstart.zoom",T).on("touchmove.zoom",S).on("touchend.zoom touchcancel.zoom",C).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function y(t,e){return(e=Math.max(u[0],Math.min(u[1],e)))===t.k?t:new Ow(e,t.x,t.y)}function _(t,e,n){var r=e[0]-n[0]*t.k,i=e[1]-n[1]*t.k;return r===t.x&&i===t.y?t:new Ow(t.k,r,i)}function m(t){return[(+t[0][0]+ +t[1][0])/2,(+t[0][1]+ +t[1][1])/2]}function b(t,e,n){t.on("start.zoom",(function(){w(this,arguments).start()})).on("interrupt.zoom end.zoom",(function(){w(this,arguments).end()})).tween("zoom",(function(){var t=this,i=arguments,o=w(t,i),a=r.apply(t,i),u=n||m(a),c=Math.max(a[1][0]-a[0][0],a[1][1]-a[0][1]),l=t.__zoom,s="function"==typeof e?e.apply(t,i):e,h=f(l.invert(u).concat(c/l.k),s.invert(u).concat(c/s.k));return function(t){if(1===t)t=s;else{var e=h(t),n=c/e[2];t=new Ow(n,u[0]-e[0]*n,u[1]-e[1]*n)}o.zoom(null,t)}}))}function w(t,e){for(var n,r=0,i=s.length;rv}t.zoom("mouse",i(_(t.that.__zoom,t.mouse[0]=De(t.that),t.mouse[1]),t.extent,c))}),!0).on("mouseup.zoom",(function(){r.on("mousemove.zoom mouseup.zoom",null),He(ye.view,t.moved),jw(),t.end()}),!0),o=De(this),a=ye.clientX,u=ye.clientY;Ve(ye.view),Fw(),t.mouse=[o,this.__zoom.invert(o)],Ci(this),t.start()}}function M(){if(n.apply(this,arguments)){var t=this.__zoom,e=De(this),o=t.invert(e),a=t.k*(ye.shiftKey?.5:2),u=i(_(y(t,a),e,o),r.apply(this,arguments),c);jw(),l>0?Ae(this).transition().duration(l).call(b,u,e):Ae(this).call(g.transform,u)}}function T(){if(n.apply(this,arguments)){var e,r,i,o,a=w(this,arguments),u=ye.changedTouches,c=u.length;for(Fw(),r=0;r{t.exports={graphlib:n(8191),layout:n(8202),debug:n(8909),util:{time:n(3988).time,notime:n(3988).notime},version:n(7038)}},6822:(t,e,n)=>{"use strict";var r=n(6857),i=n(2031);t.exports={run:function(t){var e="greedy"===t.graph().acyclicer?i(t,function(t){return function(e){return t.edge(e).weight}}(t)):function(t){var e=[],n={},i={};function o(a){r.has(i,a)||(i[a]=!0,n[a]=!0,r.forEach(t.outEdges(a),(function(t){r.has(n,t.w)?e.push(t):o(t.w)})),delete n[a])}return r.forEach(t.nodes(),o),e}(t);r.forEach(e,(function(e){var n=t.edge(e);t.removeEdge(e),n.forwardName=e.name,n.reversed=!0,t.setEdge(e.w,e.v,n,r.uniqueId("rev"))}))},undo:function(t){r.forEach(t.edges(),(function(e){var n=t.edge(e);if(n.reversed){t.removeEdge(e);var r=n.forwardName;delete n.reversed,delete n.forwardName,t.setEdge(e.w,e.v,n,r)}}))}}},135:(t,e,n)=>{var r=n(6857),i=n(3988);function o(t,e,n,r,o,a){var u={width:0,height:0,rank:a,borderType:e},c=o[e][a-1],l=i.addDummyNode(t,"border",u,n);o[e][a]=l,t.setParent(l,r),c&&t.setEdge(c,l,{weight:1})}t.exports=function(t){r.forEach(t.children(),(function e(n){var i=t.children(n),a=t.node(n);if(i.length&&r.forEach(i,e),r.has(a,"minRank")){a.borderLeft=[],a.borderRight=[];for(var u=a.minRank,c=a.maxRank+1;u{"use strict";var r=n(6857);function i(t){r.forEach(t.nodes(),(function(e){o(t.node(e))})),r.forEach(t.edges(),(function(e){o(t.edge(e))}))}function o(t){var e=t.width;t.width=t.height,t.height=e}function a(t){t.y=-t.y}function u(t){var e=t.x;t.x=t.y,t.y=e}t.exports={adjust:function(t){var e=t.graph().rankdir.toLowerCase();"lr"!==e&&"rl"!==e||i(t)},undo:function(t){var e=t.graph().rankdir.toLowerCase();"bt"!==e&&"rl"!==e||function(t){r.forEach(t.nodes(),(function(e){a(t.node(e))})),r.forEach(t.edges(),(function(e){var n=t.edge(e);r.forEach(n.points,a),r.has(n,"y")&&a(n)}))}(t);"lr"!==e&&"rl"!==e||(!function(t){r.forEach(t.nodes(),(function(e){u(t.node(e))})),r.forEach(t.edges(),(function(e){var n=t.edge(e);r.forEach(n.points,u),r.has(n,"x")&&u(n)}))}(t),i(t))}}},9859:t=>{function e(){var t={};t._next=t._prev=t,this._sentinel=t}function n(t){t._prev._next=t._next,t._next._prev=t._prev,delete t._next,delete t._prev}function r(t,e){if("_next"!==t&&"_prev"!==t)return e}t.exports=e,e.prototype.dequeue=function(){var t=this._sentinel,e=t._prev;if(e!==t)return n(e),e},e.prototype.enqueue=function(t){var e=this._sentinel;t._prev&&t._next&&n(t),t._next=e._next,e._next._prev=t,e._next=t,t._prev=e},e.prototype.toString=function(){for(var t=[],e=this._sentinel,n=e._prev;n!==e;)t.push(JSON.stringify(n,r)),n=n._prev;return"["+t.join(", ")+"]"}},8909:(t,e,n)=>{var r=n(6857),i=n(3988),o=n(8191).Graph;t.exports={debugOrdering:function(t){var e=i.buildLayerMatrix(t),n=new o({compound:!0,multigraph:!0}).setGraph({});return r.forEach(t.nodes(),(function(e){n.setNode(e,{label:e}),n.setParent(e,"layer"+t.node(e).rank)})),r.forEach(t.edges(),(function(t){n.setEdge(t.v,t.w,{},t.name)})),r.forEach(e,(function(t,e){var i="layer"+e;n.setNode(i,{rank:"same"}),r.reduce(t,(function(t,e){return n.setEdge(t,e,{style:"invis"}),e}))})),n}}},8191:(t,e,n)=>{var r;try{r=n(8362)}catch(t){}r||(r=window.graphlib),t.exports=r},2031:(t,e,n)=>{var r=n(6857),i=n(8191).Graph,o=n(9859);t.exports=function(t,e){if(t.nodeCount()<=1)return[];var n=function(t,e){var n=new i,a=0,u=0;r.forEach(t.nodes(),(function(t){n.setNode(t,{v:t,in:0,out:0})})),r.forEach(t.edges(),(function(t){var r=n.edge(t.v,t.w)||0,i=e(t),o=r+i;n.setEdge(t.v,t.w,o),u=Math.max(u,n.node(t.v).out+=i),a=Math.max(a,n.node(t.w).in+=i)}));var l=r.range(u+a+3).map((function(){return new o})),f=a+1;return r.forEach(n.nodes(),(function(t){c(l,f,n.node(t))})),{graph:n,buckets:l,zeroIdx:f}}(t,e||a),l=function(t,e,n){var r,i=[],o=e[e.length-1],a=e[0];for(;t.nodeCount();){for(;r=a.dequeue();)u(t,e,n,r);for(;r=o.dequeue();)u(t,e,n,r);if(t.nodeCount())for(var c=e.length-2;c>0;--c)if(r=e[c].dequeue()){i=i.concat(u(t,e,n,r,!0));break}}return i}(n.graph,n.buckets,n.zeroIdx);return r.flatten(r.map(l,(function(e){return t.outEdges(e.v,e.w)})),!0)};var a=r.constant(1);function u(t,e,n,i,o){var a=o?[]:void 0;return r.forEach(t.inEdges(i.v),(function(r){var i=t.edge(r),u=t.node(r.v);o&&a.push({v:r.v,w:r.w}),u.out-=i,c(e,n,u)})),r.forEach(t.outEdges(i.v),(function(r){var i=t.edge(r),o=r.w,a=t.node(o);a.in-=i,c(e,n,a)})),t.removeNode(i.v),a}function c(t,e,n){n.out?n.in?t[n.out-n.in+e].enqueue(n):t[t.length-1].enqueue(n):t[0].enqueue(n)}},8202:(t,e,n)=>{"use strict";var r=n(6857),i=n(6822),o=n(8209),a=n(9361),u=n(3988).normalizeRanks,c=n(2948),l=n(3988).removeEmptyRanks,f=n(6353),s=n(135),h=n(4850),d=n(1453),p=n(3776),v=n(3988),g=n(8191).Graph;t.exports=function(t,e){var n=e&&e.debugTiming?v.time:v.notime;n("layout",(function(){var e=n(" buildLayoutGraph",(function(){return function(t){var e=new g({multigraph:!0,compound:!0}),n=T(t.graph());return e.setGraph(r.merge({},_,M(n,y),r.pick(n,m))),r.forEach(t.nodes(),(function(n){var i=T(t.node(n));e.setNode(n,r.defaults(M(i,b),w)),e.setParent(n,t.parent(n))})),r.forEach(t.edges(),(function(n){var i=T(t.edge(n));e.setEdge(n,r.merge({},E,M(i,x),r.pick(i,k)))})),e}(t)}));n(" runLayout",(function(){!function(t,e){e(" makeSpaceForEdgeLabels",(function(){!function(t){var e=t.graph();e.ranksep/=2,r.forEach(t.edges(),(function(n){var r=t.edge(n);r.minlen*=2,"c"!==r.labelpos.toLowerCase()&&("TB"===e.rankdir||"BT"===e.rankdir?r.width+=r.labeloffset:r.height+=r.labeloffset)}))}(t)})),e(" removeSelfEdges",(function(){!function(t){r.forEach(t.edges(),(function(e){if(e.v===e.w){var n=t.node(e.v);n.selfEdges||(n.selfEdges=[]),n.selfEdges.push({e,label:t.edge(e)}),t.removeEdge(e)}}))}(t)})),e(" acyclic",(function(){i.run(t)})),e(" nestingGraph.run",(function(){f.run(t)})),e(" rank",(function(){a(v.asNonCompoundGraph(t))})),e(" injectEdgeLabelProxies",(function(){!function(t){r.forEach(t.edges(),(function(e){var n=t.edge(e);if(n.width&&n.height){var r=t.node(e.v),i={rank:(t.node(e.w).rank-r.rank)/2+r.rank,e};v.addDummyNode(t,"edge-proxy",i,"_ep")}}))}(t)})),e(" removeEmptyRanks",(function(){l(t)})),e(" nestingGraph.cleanup",(function(){f.cleanup(t)})),e(" normalizeRanks",(function(){u(t)})),e(" assignRankMinMax",(function(){!function(t){var e=0;r.forEach(t.nodes(),(function(n){var i=t.node(n);i.borderTop&&(i.minRank=t.node(i.borderTop).rank,i.maxRank=t.node(i.borderBottom).rank,e=r.max(e,i.maxRank))})),t.graph().maxRank=e}(t)})),e(" removeEdgeLabelProxies",(function(){!function(t){r.forEach(t.nodes(),(function(e){var n=t.node(e);"edge-proxy"===n.dummy&&(t.edge(n.e).labelRank=n.rank,t.removeNode(e))}))}(t)})),e(" normalize.run",(function(){o.run(t)})),e(" parentDummyChains",(function(){c(t)})),e(" addBorderSegments",(function(){s(t)})),e(" order",(function(){d(t)})),e(" insertSelfEdges",(function(){!function(t){var e=v.buildLayerMatrix(t);r.forEach(e,(function(e){var n=0;r.forEach(e,(function(e,i){var o=t.node(e);o.order=i+n,r.forEach(o.selfEdges,(function(e){v.addDummyNode(t,"selfedge",{width:e.label.width,height:e.label.height,rank:o.rank,order:i+ ++n,e:e.e,label:e.label},"_se")})),delete o.selfEdges}))}))}(t)})),e(" adjustCoordinateSystem",(function(){h.adjust(t)})),e(" position",(function(){p(t)})),e(" positionSelfEdges",(function(){!function(t){r.forEach(t.nodes(),(function(e){var n=t.node(e);if("selfedge"===n.dummy){var r=t.node(n.e.v),i=r.x+r.width/2,o=r.y,a=n.x-i,u=r.height/2;t.setEdge(n.e,n.label),t.removeNode(e),n.label.points=[{x:i+2*a/3,y:o-u},{x:i+5*a/6,y:o-u},{x:i+a,y:o},{x:i+5*a/6,y:o+u},{x:i+2*a/3,y:o+u}],n.label.x=n.x,n.label.y=n.y}}))}(t)})),e(" removeBorderNodes",(function(){!function(t){r.forEach(t.nodes(),(function(e){if(t.children(e).length){var n=t.node(e),i=t.node(n.borderTop),o=t.node(n.borderBottom),a=t.node(r.last(n.borderLeft)),u=t.node(r.last(n.borderRight));n.width=Math.abs(u.x-a.x),n.height=Math.abs(o.y-i.y),n.x=a.x+n.width/2,n.y=i.y+n.height/2}})),r.forEach(t.nodes(),(function(e){"border"===t.node(e).dummy&&t.removeNode(e)}))}(t)})),e(" normalize.undo",(function(){o.undo(t)})),e(" fixupEdgeLabelCoords",(function(){!function(t){r.forEach(t.edges(),(function(e){var n=t.edge(e);if(r.has(n,"x"))switch("l"!==n.labelpos&&"r"!==n.labelpos||(n.width-=n.labeloffset),n.labelpos){case"l":n.x-=n.width/2+n.labeloffset;break;case"r":n.x+=n.width/2+n.labeloffset}}))}(t)})),e(" undoCoordinateSystem",(function(){h.undo(t)})),e(" translateGraph",(function(){!function(t){var e=Number.POSITIVE_INFINITY,n=0,i=Number.POSITIVE_INFINITY,o=0,a=t.graph(),u=a.marginx||0,c=a.marginy||0;function l(t){var r=t.x,a=t.y,u=t.width,c=t.height;e=Math.min(e,r-u/2),n=Math.max(n,r+u/2),i=Math.min(i,a-c/2),o=Math.max(o,a+c/2)}r.forEach(t.nodes(),(function(e){l(t.node(e))})),r.forEach(t.edges(),(function(e){var n=t.edge(e);r.has(n,"x")&&l(n)})),e-=u,i-=c,r.forEach(t.nodes(),(function(n){var r=t.node(n);r.x-=e,r.y-=i})),r.forEach(t.edges(),(function(n){var o=t.edge(n);r.forEach(o.points,(function(t){t.x-=e,t.y-=i})),r.has(o,"x")&&(o.x-=e),r.has(o,"y")&&(o.y-=i)})),a.width=n-e+u,a.height=o-i+c}(t)})),e(" assignNodeIntersects",(function(){!function(t){r.forEach(t.edges(),(function(e){var n,r,i=t.edge(e),o=t.node(e.v),a=t.node(e.w);i.points?(n=i.points[0],r=i.points[i.points.length-1]):(i.points=[],n=a,r=o),i.points.unshift(v.intersectRect(o,n)),i.points.push(v.intersectRect(a,r))}))}(t)})),e(" reversePoints",(function(){!function(t){r.forEach(t.edges(),(function(e){var n=t.edge(e);n.reversed&&n.points.reverse()}))}(t)})),e(" acyclic.undo",(function(){i.undo(t)}))}(e,n)})),n(" updateInputGraph",(function(){!function(t,e){r.forEach(t.nodes(),(function(n){var r=t.node(n),i=e.node(n);r&&(r.x=i.x,r.y=i.y,e.children(n).length&&(r.width=i.width,r.height=i.height))})),r.forEach(t.edges(),(function(n){var i=t.edge(n),o=e.edge(n);i.points=o.points,r.has(o,"x")&&(i.x=o.x,i.y=o.y)})),t.graph().width=e.graph().width,t.graph().height=e.graph().height}(t,e)}))}))};var y=["nodesep","edgesep","ranksep","marginx","marginy"],_={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},m=["acyclicer","ranker","rankdir","align"],b=["width","height"],w={width:0,height:0},x=["minlen","weight","width","height","labeloffset"],E={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},k=["labelpos"];function M(t,e){return r.mapValues(r.pick(t,e),Number)}function T(t){var e={};return r.forEach(t,(function(t,n){e[n.toLowerCase()]=t})),e}},6857:(t,e,n)=>{var r;try{r=n(2543)}catch(t){}r||(r=window._),t.exports=r},6353:(t,e,n)=>{var r=n(6857),i=n(3988);function o(t,e,n,a,u,c,l){var f=t.children(l);if(f.length){var s=i.addBorderNode(t,"_bt"),h=i.addBorderNode(t,"_bb"),d=t.node(l);t.setParent(s,l),d.borderTop=s,t.setParent(h,l),d.borderBottom=h,r.forEach(f,(function(r){o(t,e,n,a,u,c,r);var i=t.node(r),f=i.borderTop?i.borderTop:r,d=i.borderBottom?i.borderBottom:r,p=i.borderTop?a:2*a,v=f!==d?1:u-c[l]+1;t.setEdge(s,f,{weight:p,minlen:v,nestingEdge:!0}),t.setEdge(d,h,{weight:p,minlen:v,nestingEdge:!0})})),t.parent(l)||t.setEdge(e,s,{weight:0,minlen:u+c[l]})}else l!==e&&t.setEdge(e,l,{weight:0,minlen:n})}t.exports={run:function(t){var e=i.addDummyNode(t,"root",{},"_root"),n=function(t){var e={};function n(i,o){var a=t.children(i);a&&a.length&&r.forEach(a,(function(t){n(t,o+1)})),e[i]=o}return r.forEach(t.children(),(function(t){n(t,1)})),e}(t),a=r.max(r.values(n))-1,u=2*a+1;t.graph().nestingRoot=e,r.forEach(t.edges(),(function(e){t.edge(e).minlen*=u}));var c=function(t){return r.reduce(t.edges(),(function(e,n){return e+t.edge(n).weight}),0)}(t)+1;r.forEach(t.children(),(function(r){o(t,e,u,c,a,n,r)})),t.graph().nodeRankFactor=u},cleanup:function(t){var e=t.graph();t.removeNode(e.nestingRoot),delete e.nestingRoot,r.forEach(t.edges(),(function(e){t.edge(e).nestingEdge&&t.removeEdge(e)}))}}},8209:(t,e,n)=>{"use strict";var r=n(6857),i=n(3988);t.exports={run:function(t){t.graph().dummyChains=[],r.forEach(t.edges(),(function(e){!function(t,e){var n,r,o,a=e.v,u=t.node(a).rank,c=e.w,l=t.node(c).rank,f=e.name,s=t.edge(e),h=s.labelRank;if(l===u+1)return;for(t.removeEdge(e),o=0,++u;u{var r=n(6857);t.exports=function(t,e,n){var i,o={};r.forEach(n,(function(n){for(var r,a,u=t.parent(n);u;){if((r=t.parent(u))?(a=o[r],o[r]=u):(a=i,i=u),a&&a!==u)return void e.setEdge(a,u);u=r}}))}},3860:(t,e,n)=>{var r=n(6857);t.exports=function(t,e){return r.map(e,(function(e){var n=t.inEdges(e);if(n.length){var i=r.reduce(n,(function(e,n){var r=t.edge(n),i=t.node(n.v);return{sum:e.sum+r.weight*i.order,weight:e.weight+r.weight}}),{sum:0,weight:0});return{v:e,barycenter:i.sum/i.weight,weight:i.weight}}return{v:e}}))}},7860:(t,e,n)=>{var r=n(6857),i=n(8191).Graph;t.exports=function(t,e,n){var o=function(t){var e;for(;t.hasNode(e=r.uniqueId("_root")););return e}(t),a=new i({compound:!0}).setGraph({root:o}).setDefaultNodeLabel((function(e){return t.node(e)}));return r.forEach(t.nodes(),(function(i){var u=t.node(i),c=t.parent(i);(u.rank===e||u.minRank<=e&&e<=u.maxRank)&&(a.setNode(i),a.setParent(i,c||o),r.forEach(t[n](i),(function(e){var n=e.v===i?e.w:e.v,o=a.edge(n,i),u=r.isUndefined(o)?0:o.weight;a.setEdge(n,i,{weight:t.edge(e).weight+u})})),r.has(u,"minRank")&&a.setNode(i,{borderLeft:u.borderLeft[e],borderRight:u.borderRight[e]}))})),a}},6639:(t,e,n)=>{"use strict";var r=n(6857);function i(t,e,n){for(var i=r.zipObject(n,r.map(n,(function(t,e){return e}))),o=r.flatten(r.map(e,(function(e){return r.chain(t.outEdges(e)).map((function(e){return{pos:i[e.w],weight:t.edge(e).weight}})).sortBy("pos").value()})),!0),a=1;a0;)e%2&&(n+=c[e+1]),c[e=e-1>>1]+=t.weight;l+=t.weight*n}))),l}t.exports=function(t,e){for(var n=0,r=1;r{"use strict";var r=n(6857),i=n(8918),o=n(6639),a=n(4520),u=n(7860),c=n(4384),l=n(8191).Graph,f=n(3988);function s(t,e,n){return r.map(e,(function(e){return u(t,e,n)}))}function h(t,e){var n=new l;r.forEach(t,(function(t){var i=t.graph().root,o=a(t,i,n,e);r.forEach(o.vs,(function(e,n){t.node(e).order=n})),c(t,n,o.vs)}))}function d(t,e){r.forEach(e,(function(e){r.forEach(e,(function(e,n){t.node(e).order=n}))}))}t.exports=function(t){var e=f.maxRank(t),n=s(t,r.range(1,e+1),"inEdges"),a=s(t,r.range(e-1,-1,-1),"outEdges"),u=i(t);d(t,u);for(var c,l=Number.POSITIVE_INFINITY,p=0,v=0;v<4;++p,++v){h(p%2?n:a,p%4>=2),u=f.buildLayerMatrix(t);var g=o(t,u);g{"use strict";var r=n(6857);t.exports=function(t){var e={},n=r.filter(t.nodes(),(function(e){return!t.children(e).length})),i=r.max(r.map(n,(function(e){return t.node(e).rank}))),o=r.map(r.range(i+1),(function(){return[]}));var a=r.sortBy(n,(function(e){return t.node(e).rank}));return r.forEach(a,(function n(i){if(r.has(e,i))return;e[i]=!0;var a=t.node(i);o[a.rank].push(i),r.forEach(t.successors(i),n)})),o}},4959:(t,e,n)=>{"use strict";var r=n(6857);t.exports=function(t,e){var n={};return r.forEach(t,(function(t,e){var i=n[t.v]={indegree:0,in:[],out:[],vs:[t.v],i:e};r.isUndefined(t.barycenter)||(i.barycenter=t.barycenter,i.weight=t.weight)})),r.forEach(e.edges(),(function(t){var e=n[t.v],i=n[t.w];r.isUndefined(e)||r.isUndefined(i)||(i.indegree++,e.out.push(n[t.w]))})),function(t){var e=[];function n(t){return function(e){e.merged||(r.isUndefined(e.barycenter)||r.isUndefined(t.barycenter)||e.barycenter>=t.barycenter)&&function(t,e){var n=0,r=0;t.weight&&(n+=t.barycenter*t.weight,r+=t.weight);e.weight&&(n+=e.barycenter*e.weight,r+=e.weight);t.vs=e.vs.concat(t.vs),t.barycenter=n/r,t.weight=r,t.i=Math.min(e.i,t.i),e.merged=!0}(t,e)}}function i(e){return function(n){n.in.push(e),0==--n.indegree&&t.push(n)}}for(;t.length;){var o=t.pop();e.push(o),r.forEach(o.in.reverse(),n(o)),r.forEach(o.out,i(o))}return r.chain(e).filter((function(t){return!t.merged})).map((function(t){return r.pick(t,["vs","i","barycenter","weight"])})).value()}(r.filter(n,(function(t){return!t.indegree})))}},4520:(t,e,n)=>{var r=n(6857),i=n(3860),o=n(4959),a=n(5169);t.exports=function t(e,n,u,c){var l=e.children(n),f=e.node(n),s=f?f.borderLeft:void 0,h=f?f.borderRight:void 0,d={};s&&(l=r.filter(l,(function(t){return t!==s&&t!==h})));var p=i(e,l);r.forEach(p,(function(n){if(e.children(n.v).length){var i=t(e,n.v,u,c);d[n.v]=i,r.has(i,"barycenter")&&(o=n,a=i,r.isUndefined(o.barycenter)?(o.barycenter=a.barycenter,o.weight=a.weight):(o.barycenter=(o.barycenter*o.weight+a.barycenter*a.weight)/(o.weight+a.weight),o.weight+=a.weight))}var o,a}));var v=o(p,u);!function(t,e){r.forEach(t,(function(t){t.vs=r.flatten(t.vs.map((function(t){return e[t]?e[t].vs:t})),!0)}))}(v,d);var g=a(v,c);if(s&&(g.vs=r.flatten([s,g.vs,h],!0),e.predecessors(s).length)){var y=e.node(e.predecessors(s)[0]),_=e.node(e.predecessors(h)[0]);r.has(g,"barycenter")||(g.barycenter=0,g.weight=0),g.barycenter=(g.barycenter*g.weight+y.order+_.order)/(g.weight+2),g.weight+=2}return g}},5169:(t,e,n)=>{var r=n(6857),i=n(3988);function o(t,e,n){for(var i;e.length&&(i=r.last(e)).i<=n;)e.pop(),t.push(i.vs),n++;return n}t.exports=function(t,e){var n=i.partition(t,(function(t){return r.has(t,"barycenter")})),a=n.lhs,u=r.sortBy(n.rhs,(function(t){return-t.i})),c=[],l=0,f=0,s=0;a.sort((h=!!e,function(t,e){return t.barycentere.barycenter?1:h?e.i-t.i:t.i-e.i})),s=o(c,u,s),r.forEach(a,(function(t){s+=t.vs.length,c.push(t.vs),l+=t.barycenter*t.weight,f+=t.weight,s=o(c,u,s)}));var h;var d={vs:r.flatten(c,!0)};f&&(d.barycenter=l/f,d.weight=f);return d}},2948:(t,e,n)=>{var r=n(6857);t.exports=function(t){var e=function(t){var e={},n=0;function i(o){var a=n;r.forEach(t.children(o),i),e[o]={low:a,lim:n++}}return r.forEach(t.children(),i),e}(t);r.forEach(t.graph().dummyChains,(function(n){for(var r=t.node(n),i=r.edgeObj,o=function(t,e,n,r){var i,o,a=[],u=[],c=Math.min(e[n].low,e[r].low),l=Math.max(e[n].lim,e[r].lim);i=n;do{i=t.parent(i),a.push(i)}while(i&&(e[i].low>c||l>e[i].lim));o=i,i=r;for(;(i=t.parent(i))!==o;)u.push(i);return{path:a.concat(u.reverse()),lca:o}}(t,e,i.v,i.w),a=o.path,u=o.lca,c=0,l=a[c],f=!0;n!==i.w;){if(r=t.node(n),f){for(;(l=a[c])!==u&&t.node(l).maxRank{"use strict";var r=n(6857),i=n(8191).Graph,o=n(3988);function a(t,e){var n={};return r.reduce(e,(function(e,i){var o=0,a=0,u=e.length,l=r.last(i);return r.forEach(i,(function(e,f){var s=function(t,e){if(t.node(e).dummy)return r.find(t.predecessors(e),(function(e){return t.node(e).dummy}))}(t,e),h=s?t.node(s).order:u;(s||e===l)&&(r.forEach(i.slice(a,f+1),(function(e){r.forEach(t.predecessors(e),(function(r){var i=t.node(r),a=i.order;!(au)&&c(n,e,l)}))}))}return r.reduce(e,(function(e,n){var o,a=-1,u=0;return r.forEach(n,(function(r,c){if("border"===t.node(r).dummy){var l=t.predecessors(r);l.length&&(o=t.node(l[0]).order,i(n,u,c,a,o),u=c,a=o)}i(n,u,n.length,o,e.length)})),n})),n}function c(t,e,n){if(e>n){var r=e;e=n,n=r}var i=t[e];i||(t[e]=i={}),i[n]=!0}function l(t,e,n){if(e>n){var i=e;e=n,n=i}return r.has(t[e],n)}function f(t,e,n,i){var o={},a={},u={};return r.forEach(e,(function(t){r.forEach(t,(function(t,e){o[t]=t,a[t]=t,u[t]=e}))})),r.forEach(e,(function(t){var e=-1;r.forEach(t,(function(t){var c=i(t);if(c.length){c=r.sortBy(c,(function(t){return u[t]}));for(var f=(c.length-1)/2,s=Math.floor(f),h=Math.ceil(f);s<=h;++s){var d=c[s];a[t]===t&&e{"use strict";var r=n(6857),i=n(3988),o=n(9741).positionX;t.exports=function(t){(function(t){var e=i.buildLayerMatrix(t),n=t.graph().ranksep,o=0;r.forEach(e,(function(e){var i=r.max(r.map(e,(function(e){return t.node(e).height})));r.forEach(e,(function(e){t.node(e).y=o+i/2})),o+=i+n}))})(t=i.asNonCompoundGraph(t)),r.forEach(o(t),(function(e,n){t.node(n).x=e}))}},8481:(t,e,n)=>{"use strict";var r=n(6857),i=n(8191).Graph,o=n(8073).slack;function a(t,e){return r.forEach(t.nodes(),(function n(i){r.forEach(e.nodeEdges(i),(function(r){var a=r.v,u=i===a?r.w:a;t.hasNode(u)||o(e,r)||(t.setNode(u,{}),t.setEdge(i,u,{}),n(u))}))})),t.nodeCount()}function u(t,e){return r.minBy(e.edges(),(function(n){if(t.hasNode(n.v)!==t.hasNode(n.w))return o(e,n)}))}function c(t,e,n){r.forEach(t.nodes(),(function(t){e.node(t).rank+=n}))}t.exports=function(t){var e,n,r=new i({directed:!1}),l=t.nodes()[0],f=t.nodeCount();r.setNode(l,{});for(;a(r,t){"use strict";var r=n(8073).longestPath,i=n(8481),o=n(6860);t.exports=function(t){switch(t.graph().ranker){case"network-simplex":default:u(t);break;case"tight-tree":!function(t){r(t),i(t)}(t);break;case"longest-path":a(t)}};var a=r;function u(t){o(t)}},6860:(t,e,n)=>{"use strict";var r=n(6857),i=n(8481),o=n(8073).slack,a=n(8073).longestPath,u=n(8191).alg.preorder,c=n(8191).alg.postorder,l=n(3988).simplify;function f(t){t=l(t),a(t);var e,n=i(t);for(d(n),s(n,t);e=v(n);)y(n,t,e,g(n,t,e))}function s(t,e){var n=c(t,t.nodes());n=n.slice(0,n.length-1),r.forEach(n,(function(n){!function(t,e,n){var r=t.node(n),i=r.parent;t.edge(n,i).cutvalue=h(t,e,n)}(t,e,n)}))}function h(t,e,n){var i=t.node(n).parent,o=!0,a=e.edge(n,i),u=0;return a||(o=!1,a=e.edge(i,n)),u=a.weight,r.forEach(e.nodeEdges(n),(function(r){var a,c,l=r.v===n,f=l?r.w:r.v;if(f!==i){var s=l===o,h=e.edge(r).weight;if(u+=s?h:-h,a=n,c=f,t.hasEdge(a,c)){var d=t.edge(n,f).cutvalue;u+=s?-d:d}}})),u}function d(t,e){arguments.length<2&&(e=t.nodes()[0]),p(t,{},1,e)}function p(t,e,n,i,o){var a=n,u=t.node(i);return e[i]=!0,r.forEach(t.neighbors(i),(function(o){r.has(e,o)||(n=p(t,e,n,o,i))})),u.low=a,u.lim=n++,o?u.parent=o:delete u.parent,n}function v(t){return r.find(t.edges(),(function(e){return t.edge(e).cutvalue<0}))}function g(t,e,n){var i=n.v,a=n.w;e.hasEdge(i,a)||(i=n.w,a=n.v);var u=t.node(i),c=t.node(a),l=u,f=!1;u.lim>c.lim&&(l=c,f=!0);var s=r.filter(e.edges(),(function(e){return f===_(t,t.node(e.v),l)&&f!==_(t,t.node(e.w),l)}));return r.minBy(s,(function(t){return o(e,t)}))}function y(t,e,n,i){var o=n.v,a=n.w;t.removeEdge(o,a),t.setEdge(i.v,i.w,{}),d(t),s(t,e),function(t,e){var n=r.find(t.nodes(),(function(t){return!e.node(t).parent})),i=u(t,n);i=i.slice(1),r.forEach(i,(function(n){var r=t.node(n).parent,i=e.edge(n,r),o=!1;i||(i=e.edge(r,n),o=!0),e.node(n).rank=e.node(r).rank+(o?i.minlen:-i.minlen)}))}(t,e)}function _(t,e,n){return n.low<=e.lim&&e.lim<=n.lim}t.exports=f,f.initLowLimValues=d,f.initCutValues=s,f.calcCutValue=h,f.leaveEdge=v,f.enterEdge=g,f.exchangeEdges=y},8073:(t,e,n)=>{"use strict";var r=n(6857);t.exports={longestPath:function(t){var e={};r.forEach(t.sources(),(function n(i){var o=t.node(i);if(r.has(e,i))return o.rank;e[i]=!0;var a=r.minBy(r.map(t.outEdges(i),(function(e){return n(e.w)-t.edge(e).minlen})));return a!==Number.POSITIVE_INFINITY&&null!=a||(a=0),o.rank=a}))},slack:function(t,e){return t.node(e.w).rank-t.node(e.v).rank-t.edge(e).minlen}}},3988:(t,e,n)=>{"use strict";var r=n(6857),i=n(8191).Graph;function o(t,e,n,i){var o;do{o=r.uniqueId(i)}while(t.hasNode(o));return n.dummy=e,t.setNode(o,n),o}function a(t){return r.max(r.map(t.nodes(),(function(e){var n=t.node(e).rank;if(!r.isUndefined(n))return n})))}t.exports={addDummyNode:o,simplify:function(t){var e=(new i).setGraph(t.graph());return r.forEach(t.nodes(),(function(n){e.setNode(n,t.node(n))})),r.forEach(t.edges(),(function(n){var r=e.edge(n.v,n.w)||{weight:0,minlen:1},i=t.edge(n);e.setEdge(n.v,n.w,{weight:r.weight+i.weight,minlen:Math.max(r.minlen,i.minlen)})})),e},asNonCompoundGraph:function(t){var e=new i({multigraph:t.isMultigraph()}).setGraph(t.graph());return r.forEach(t.nodes(),(function(n){t.children(n).length||e.setNode(n,t.node(n))})),r.forEach(t.edges(),(function(n){e.setEdge(n,t.edge(n))})),e},successorWeights:function(t){var e=r.map(t.nodes(),(function(e){var n={};return r.forEach(t.outEdges(e),(function(e){n[e.w]=(n[e.w]||0)+t.edge(e).weight})),n}));return r.zipObject(t.nodes(),e)},predecessorWeights:function(t){var e=r.map(t.nodes(),(function(e){var n={};return r.forEach(t.inEdges(e),(function(e){n[e.v]=(n[e.v]||0)+t.edge(e).weight})),n}));return r.zipObject(t.nodes(),e)},intersectRect:function(t,e){var n,r,i=t.x,o=t.y,a=e.x-i,u=e.y-o,c=t.width/2,l=t.height/2;if(!a&&!u)throw new Error("Not possible to find intersection inside of the rectangle");Math.abs(u)*c>Math.abs(a)*l?(u<0&&(l=-l),n=l*a/u,r=l):(a<0&&(c=-c),n=c,r=c*u/a);return{x:i+n,y:o+r}},buildLayerMatrix:function(t){var e=r.map(r.range(a(t)+1),(function(){return[]}));return r.forEach(t.nodes(),(function(n){var i=t.node(n),o=i.rank;r.isUndefined(o)||(e[o][i.order]=n)})),e},normalizeRanks:function(t){var e=r.minBy(r.map(t.nodes(),(function(e){return t.node(e).rank})));r.forEach(t.nodes(),(function(n){var i=t.node(n);r.has(i,"rank")&&(i.rank-=e)}))},removeEmptyRanks:function(t){var e=r.minBy(r.map(t.nodes(),(function(e){return t.node(e).rank}))),n=[];r.forEach(t.nodes(),(function(r){var i=t.node(r).rank-e;n[i]||(n[i]=[]),n[i].push(r)}));var i=0,o=t.graph().nodeRankFactor;r.forEach(n,(function(e,n){r.isUndefined(e)&&n%o!=0?--i:i&&r.forEach(e,(function(e){t.node(e).rank+=i}))}))},addBorderNode:function(t,e,n,r){var i={width:0,height:0};arguments.length>=4&&(i.rank=n,i.order=r);return o(t,"border",i,e)},maxRank:a,partition:function(t,e){var n={lhs:[],rhs:[]};return r.forEach(t,(function(t){e(t)?n.lhs.push(t):n.rhs.push(t)})),n},time:function(t,e){var n=r.now();try{return e()}finally{console.log(t+" time: "+(r.now()-n)+"ms")}},notime:function(t,e){return e()}}},7038:t=>{t.exports="0.8.2"},8362:(t,e,n)=>{var r=n(1166);t.exports={Graph:r.Graph,json:n(7494),alg:n(1667),version:r.version}},3619:(t,e,n)=>{var r=n(117);t.exports=function(t){var e,n={},i=[];function o(i){r.has(n,i)||(n[i]=!0,e.push(i),r.each(t.successors(i),o),r.each(t.predecessors(i),o))}return r.each(t.nodes(),(function(t){e=[],o(t),e.length&&i.push(e)})),i}},9276:(t,e,n)=>{var r=n(117);function i(t,e,n,o,a,u){r.has(o,e)||(o[e]=!0,n||u.push(e),r.each(a(e),(function(e){i(t,e,n,o,a,u)})),n&&u.push(e))}t.exports=function(t,e,n){r.isArray(e)||(e=[e]);var o=(t.isDirected()?t.successors:t.neighbors).bind(t),a=[],u={};return r.each(e,(function(e){if(!t.hasNode(e))throw new Error("Graph does not have node: "+e);i(t,e,"post"===n,u,o,a)})),a}},4919:(t,e,n)=>{var r=n(8905),i=n(117);t.exports=function(t,e,n){return i.transform(t.nodes(),(function(i,o){i[o]=r(t,o,e,n)}),{})}},8905:(t,e,n)=>{var r=n(117),i=n(1737);t.exports=function(t,e,n,r){return function(t,e,n,r){var o,a,u={},c=new i,l=function(t){var e=t.v!==o?t.v:t.w,r=u[e],i=n(t),l=a.distance+i;if(i<0)throw new Error("dijkstra does not allow negative edge weights. Bad edge: "+t+" Weight: "+i);l0&&(o=c.removeMin(),(a=u[o]).distance!==Number.POSITIVE_INFINITY);)r(o).forEach(l);return u}(t,String(e),n||o,r||function(e){return t.outEdges(e)})};var o=r.constant(1)},6678:(t,e,n)=>{var r=n(117),i=n(6291);t.exports=function(t){return r.filter(i(t),(function(e){return e.length>1||1===e.length&&t.hasEdge(e[0],e[0])}))}},3590:(t,e,n)=>{var r=n(117);t.exports=function(t,e,n){return function(t,e,n){var r={},i=t.nodes();return i.forEach((function(t){r[t]={},r[t][t]={distance:0},i.forEach((function(e){t!==e&&(r[t][e]={distance:Number.POSITIVE_INFINITY})})),n(t).forEach((function(n){var i=n.v===t?n.w:n.v,o=e(n);r[t][i]={distance:o,predecessor:t}}))})),i.forEach((function(t){var e=r[t];i.forEach((function(n){var o=r[n];i.forEach((function(n){var r=o[t],i=e[n],a=o[n],u=r.distance+i.distance;u{t.exports={components:n(3619),dijkstra:n(8905),dijkstraAll:n(4919),findCycles:n(6678),floydWarshall:n(3590),isAcyclic:n(498),postorder:n(1045),preorder:n(6016),prim:n(4423),tarjan:n(6291),topsort:n(9888)}},498:(t,e,n)=>{var r=n(9888);t.exports=function(t){try{r(t)}catch(t){if(t instanceof r.CycleException)return!1;throw t}return!0}},1045:(t,e,n)=>{var r=n(9276);t.exports=function(t,e){return r(t,e,"post")}},6016:(t,e,n)=>{var r=n(9276);t.exports=function(t,e){return r(t,e,"pre")}},4423:(t,e,n)=>{var r=n(117),i=n(6454),o=n(1737);t.exports=function(t,e){var n,a=new i,u={},c=new o;function l(t){var r=t.v===n?t.w:t.v,i=c.priority(r);if(void 0!==i){var o=e(t);o0;){if(n=c.removeMin(),r.has(u,n))a.setEdge(n,u[n]);else{if(f)throw new Error("Input graph is not connected: "+t);f=!0}t.nodeEdges(n).forEach(l)}return a}},6291:(t,e,n)=>{var r=n(117);t.exports=function(t){var e=0,n=[],i={},o=[];function a(u){var c=i[u]={onStack:!0,lowlink:e,index:e++};if(n.push(u),t.successors(u).forEach((function(t){r.has(i,t)?i[t].onStack&&(c.lowlink=Math.min(c.lowlink,i[t].index)):(a(t),c.lowlink=Math.min(c.lowlink,i[t].lowlink))})),c.lowlink===c.index){var l,f=[];do{l=n.pop(),i[l].onStack=!1,f.push(l)}while(u!==l);o.push(f)}}return t.nodes().forEach((function(t){r.has(i,t)||a(t)})),o}},9888:(t,e,n)=>{var r=n(117);function i(t){var e={},n={},i=[];if(r.each(t.sinks(),(function a(u){if(r.has(n,u))throw new o;r.has(e,u)||(n[u]=!0,e[u]=!0,r.each(t.predecessors(u),a),delete n[u],i.push(u))})),r.size(e)!==t.nodeCount())throw new o;return i}function o(){}t.exports=i,i.CycleException=o},1737:(t,e,n)=>{var r=n(117);function i(){this._arr=[],this._keyIndices={}}t.exports=i,i.prototype.size=function(){return this._arr.length},i.prototype.keys=function(){return this._arr.map((function(t){return t.key}))},i.prototype.has=function(t){return r.has(this._keyIndices,t)},i.prototype.priority=function(t){var e=this._keyIndices[t];if(void 0!==e)return this._arr[e].priority},i.prototype.min=function(){if(0===this.size())throw new Error("Queue underflow");return this._arr[0].key},i.prototype.add=function(t,e){var n=this._keyIndices;if(t=String(t),!r.has(n,t)){var i=this._arr,o=i.length;return n[t]=o,i.push({key:t,priority:e}),this._decrease(o),!0}return!1},i.prototype.removeMin=function(){this._swap(0,this._arr.length-1);var t=this._arr.pop();return delete this._keyIndices[t.key],this._heapify(0),t.key},i.prototype.decrease=function(t,e){var n=this._keyIndices[t];if(e>this._arr[n].priority)throw new Error("New priority is greater than current priority. Key: "+t+" Old: "+this._arr[n].priority+" New: "+e);this._arr[n].priority=e,this._decrease(n)},i.prototype._heapify=function(t){var e=this._arr,n=2*t,r=n+1,i=t;n>1].priority{"use strict";var r=n(117);t.exports=u;var i="\0",o="\0",a="";function u(t){this._isDirected=!r.has(t,"directed")||t.directed,this._isMultigraph=!!r.has(t,"multigraph")&&t.multigraph,this._isCompound=!!r.has(t,"compound")&&t.compound,this._label=void 0,this._defaultNodeLabelFn=r.constant(void 0),this._defaultEdgeLabelFn=r.constant(void 0),this._nodes={},this._isCompound&&(this._parent={},this._children={},this._children[o]={}),this._in={},this._preds={},this._out={},this._sucs={},this._edgeObjs={},this._edgeLabels={}}function c(t,e){t[e]?t[e]++:t[e]=1}function l(t,e){--t[e]||delete t[e]}function f(t,e,n,o){var u=""+e,c=""+n;if(!t&&u>c){var l=u;u=c,c=l}return u+a+c+a+(r.isUndefined(o)?i:o)}function s(t,e){return f(t,e.v,e.w,e.name)}u.prototype._nodeCount=0,u.prototype._edgeCount=0,u.prototype.isDirected=function(){return this._isDirected},u.prototype.isMultigraph=function(){return this._isMultigraph},u.prototype.isCompound=function(){return this._isCompound},u.prototype.setGraph=function(t){return this._label=t,this},u.prototype.graph=function(){return this._label},u.prototype.setDefaultNodeLabel=function(t){return r.isFunction(t)||(t=r.constant(t)),this._defaultNodeLabelFn=t,this},u.prototype.nodeCount=function(){return this._nodeCount},u.prototype.nodes=function(){return r.keys(this._nodes)},u.prototype.sources=function(){var t=this;return r.filter(this.nodes(),(function(e){return r.isEmpty(t._in[e])}))},u.prototype.sinks=function(){var t=this;return r.filter(this.nodes(),(function(e){return r.isEmpty(t._out[e])}))},u.prototype.setNodes=function(t,e){var n=arguments,i=this;return r.each(t,(function(t){n.length>1?i.setNode(t,e):i.setNode(t)})),this},u.prototype.setNode=function(t,e){return r.has(this._nodes,t)?(arguments.length>1&&(this._nodes[t]=e),this):(this._nodes[t]=arguments.length>1?e:this._defaultNodeLabelFn(t),this._isCompound&&(this._parent[t]=o,this._children[t]={},this._children[o][t]=!0),this._in[t]={},this._preds[t]={},this._out[t]={},this._sucs[t]={},++this._nodeCount,this)},u.prototype.node=function(t){return this._nodes[t]},u.prototype.hasNode=function(t){return r.has(this._nodes,t)},u.prototype.removeNode=function(t){var e=this;if(r.has(this._nodes,t)){var n=function(t){e.removeEdge(e._edgeObjs[t])};delete this._nodes[t],this._isCompound&&(this._removeFromParentsChildList(t),delete this._parent[t],r.each(this.children(t),(function(t){e.setParent(t)})),delete this._children[t]),r.each(r.keys(this._in[t]),n),delete this._in[t],delete this._preds[t],r.each(r.keys(this._out[t]),n),delete this._out[t],delete this._sucs[t],--this._nodeCount}return this},u.prototype.setParent=function(t,e){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(r.isUndefined(e))e=o;else{for(var n=e+="";!r.isUndefined(n);n=this.parent(n))if(n===t)throw new Error("Setting "+e+" as parent of "+t+" would create a cycle");this.setNode(e)}return this.setNode(t),this._removeFromParentsChildList(t),this._parent[t]=e,this._children[e][t]=!0,this},u.prototype._removeFromParentsChildList=function(t){delete this._children[this._parent[t]][t]},u.prototype.parent=function(t){if(this._isCompound){var e=this._parent[t];if(e!==o)return e}},u.prototype.children=function(t){if(r.isUndefined(t)&&(t=o),this._isCompound){var e=this._children[t];if(e)return r.keys(e)}else{if(t===o)return this.nodes();if(this.hasNode(t))return[]}},u.prototype.predecessors=function(t){var e=this._preds[t];if(e)return r.keys(e)},u.prototype.successors=function(t){var e=this._sucs[t];if(e)return r.keys(e)},u.prototype.neighbors=function(t){var e=this.predecessors(t);if(e)return r.union(e,this.successors(t))},u.prototype.isLeaf=function(t){return 0===(this.isDirected()?this.successors(t):this.neighbors(t)).length},u.prototype.filterNodes=function(t){var e=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});e.setGraph(this.graph());var n=this;r.each(this._nodes,(function(n,r){t(r)&&e.setNode(r,n)})),r.each(this._edgeObjs,(function(t){e.hasNode(t.v)&&e.hasNode(t.w)&&e.setEdge(t,n.edge(t))}));var i={};function o(t){var r=n.parent(t);return void 0===r||e.hasNode(r)?(i[t]=r,r):r in i?i[r]:o(r)}return this._isCompound&&r.each(e.nodes(),(function(t){e.setParent(t,o(t))})),e},u.prototype.setDefaultEdgeLabel=function(t){return r.isFunction(t)||(t=r.constant(t)),this._defaultEdgeLabelFn=t,this},u.prototype.edgeCount=function(){return this._edgeCount},u.prototype.edges=function(){return r.values(this._edgeObjs)},u.prototype.setPath=function(t,e){var n=this,i=arguments;return r.reduce(t,(function(t,r){return i.length>1?n.setEdge(t,r,e):n.setEdge(t,r),r})),this},u.prototype.setEdge=function(){var t,e,n,i,o=!1,a=arguments[0];"object"==typeof a&&null!==a&&"v"in a?(t=a.v,e=a.w,n=a.name,2===arguments.length&&(i=arguments[1],o=!0)):(t=a,e=arguments[1],n=arguments[3],arguments.length>2&&(i=arguments[2],o=!0)),t=""+t,e=""+e,r.isUndefined(n)||(n=""+n);var u=f(this._isDirected,t,e,n);if(r.has(this._edgeLabels,u))return o&&(this._edgeLabels[u]=i),this;if(!r.isUndefined(n)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(t),this.setNode(e),this._edgeLabels[u]=o?i:this._defaultEdgeLabelFn(t,e,n);var l=function(t,e,n,r){var i=""+e,o=""+n;if(!t&&i>o){var a=i;i=o,o=a}var u={v:i,w:o};r&&(u.name=r);return u}(this._isDirected,t,e,n);return t=l.v,e=l.w,Object.freeze(l),this._edgeObjs[u]=l,c(this._preds[e],t),c(this._sucs[t],e),this._in[e][u]=l,this._out[t][u]=l,this._edgeCount++,this},u.prototype.edge=function(t,e,n){var r=1===arguments.length?s(this._isDirected,arguments[0]):f(this._isDirected,t,e,n);return this._edgeLabels[r]},u.prototype.hasEdge=function(t,e,n){var i=1===arguments.length?s(this._isDirected,arguments[0]):f(this._isDirected,t,e,n);return r.has(this._edgeLabels,i)},u.prototype.removeEdge=function(t,e,n){var r=1===arguments.length?s(this._isDirected,arguments[0]):f(this._isDirected,t,e,n),i=this._edgeObjs[r];return i&&(t=i.v,e=i.w,delete this._edgeLabels[r],delete this._edgeObjs[r],l(this._preds[e],t),l(this._sucs[t],e),delete this._in[e][r],delete this._out[t][r],this._edgeCount--),this},u.prototype.inEdges=function(t,e){var n=this._in[t];if(n){var i=r.values(n);return e?r.filter(i,(function(t){return t.v===e})):i}},u.prototype.outEdges=function(t,e){var n=this._out[t];if(n){var i=r.values(n);return e?r.filter(i,(function(t){return t.w===e})):i}},u.prototype.nodeEdges=function(t,e){var n=this.inEdges(t,e);if(n)return n.concat(this.outEdges(t,e))}},1166:(t,e,n)=>{t.exports={Graph:n(6454),version:n(4458)}},7494:(t,e,n)=>{var r=n(117),i=n(6454);function o(t){return r.map(t.nodes(),(function(e){var n=t.node(e),i=t.parent(e),o={v:e};return r.isUndefined(n)||(o.value=n),r.isUndefined(i)||(o.parent=i),o}))}function a(t){return r.map(t.edges(),(function(e){var n=t.edge(e),i={v:e.v,w:e.w};return r.isUndefined(e.name)||(i.name=e.name),r.isUndefined(n)||(i.value=n),i}))}t.exports={write:function(t){var e={options:{directed:t.isDirected(),multigraph:t.isMultigraph(),compound:t.isCompound()},nodes:o(t),edges:a(t)};r.isUndefined(t.graph())||(e.value=r.clone(t.graph()));return e},read:function(t){var e=new i(t.options).setGraph(t.value);return r.each(t.nodes,(function(t){e.setNode(t.v,t.value),t.parent&&e.setParent(t.v,t.parent)})),r.each(t.edges,(function(t){e.setEdge({v:t.v,w:t.w,name:t.name},t.value)})),e}}},117:(t,e,n)=>{var r;try{r=n(2543)}catch(t){}r||(r=window._),t.exports=r},4458:t=>{t.exports="2.1.5"},2543:function(t,e,n){var r;t=n.nmd(t),function(){var i,o="Expected a function",a="__lodash_hash_undefined__",u="__lodash_placeholder__",c=16,l=32,f=64,s=128,h=256,d=1/0,p=9007199254740991,v=NaN,g=4294967295,y=[["ary",s],["bind",1],["bindKey",2],["curry",8],["curryRight",c],["flip",512],["partial",l],["partialRight",f],["rearg",h]],_="[object Arguments]",m="[object Array]",b="[object Boolean]",w="[object Date]",x="[object Error]",E="[object Function]",k="[object GeneratorFunction]",M="[object Map]",T="[object Number]",S="[object Object]",C="[object Promise]",N="[object RegExp]",A="[object Set]",P="[object String]",z="[object Symbol]",I="[object WeakMap]",R="[object ArrayBuffer]",L="[object DataView]",O="[object Float32Array]",D="[object Float64Array]",U="[object Int8Array]",F="[object Int16Array]",j="[object Int32Array]",q="[object Uint8Array]",B="[object Uint8ClampedArray]",V="[object Uint16Array]",H="[object Uint32Array]",W=/\b__p \+= '';/g,Y=/\b(__p \+=) '' \+/g,$=/(__e\(.*?\)|\b__t\)) \+\n'';/g,X=/&(?:amp|lt|gt|quot|#39);/g,Q=/[&<>"']/g,G=RegExp(X.source),K=RegExp(Q.source),Z=/<%-([\s\S]+?)%>/g,J=/<%([\s\S]+?)%>/g,tt=/<%=([\s\S]+?)%>/g,et=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,nt=/^\w*$/,rt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,it=/[\\^$.*+?()[\]{}|]/g,ot=RegExp(it.source),at=/^\s+|\s+$/g,ut=/^\s+/,ct=/\s+$/,lt=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ft=/\{\n\/\* \[wrapped with (.+)\] \*/,st=/,? & /,ht=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,dt=/\\(\\)?/g,pt=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,vt=/\w*$/,gt=/^[-+]0x[0-9a-f]+$/i,yt=/^0b[01]+$/i,_t=/^\[object .+?Constructor\]$/,mt=/^0o[0-7]+$/i,bt=/^(?:0|[1-9]\d*)$/,wt=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,xt=/($^)/,Et=/['\n\r\u2028\u2029\\]/g,kt="\\ud800-\\udfff",Mt="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Tt="\\u2700-\\u27bf",St="a-z\\xdf-\\xf6\\xf8-\\xff",Ct="A-Z\\xc0-\\xd6\\xd8-\\xde",Nt="\\ufe0e\\ufe0f",At="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Pt="['’]",zt="["+kt+"]",It="["+At+"]",Rt="["+Mt+"]",Lt="\\d+",Ot="["+Tt+"]",Dt="["+St+"]",Ut="[^"+kt+At+Lt+Tt+St+Ct+"]",Ft="\\ud83c[\\udffb-\\udfff]",jt="[^"+kt+"]",qt="(?:\\ud83c[\\udde6-\\uddff]){2}",Bt="[\\ud800-\\udbff][\\udc00-\\udfff]",Vt="["+Ct+"]",Ht="\\u200d",Wt="(?:"+Dt+"|"+Ut+")",Yt="(?:"+Vt+"|"+Ut+")",$t="(?:['’](?:d|ll|m|re|s|t|ve))?",Xt="(?:['’](?:D|LL|M|RE|S|T|VE))?",Qt="(?:"+Rt+"|"+Ft+")"+"?",Gt="["+Nt+"]?",Kt=Gt+Qt+("(?:"+Ht+"(?:"+[jt,qt,Bt].join("|")+")"+Gt+Qt+")*"),Zt="(?:"+[Ot,qt,Bt].join("|")+")"+Kt,Jt="(?:"+[jt+Rt+"?",Rt,qt,Bt,zt].join("|")+")",te=RegExp(Pt,"g"),ee=RegExp(Rt,"g"),ne=RegExp(Ft+"(?="+Ft+")|"+Jt+Kt,"g"),re=RegExp([Vt+"?"+Dt+"+"+$t+"(?="+[It,Vt,"$"].join("|")+")",Yt+"+"+Xt+"(?="+[It,Vt+Wt,"$"].join("|")+")",Vt+"?"+Wt+"+"+$t,Vt+"+"+Xt,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Lt,Zt].join("|"),"g"),ie=RegExp("["+Ht+kt+Mt+Nt+"]"),oe=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,ae=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],ue=-1,ce={};ce[O]=ce[D]=ce[U]=ce[F]=ce[j]=ce[q]=ce[B]=ce[V]=ce[H]=!0,ce[_]=ce[m]=ce[R]=ce[b]=ce[L]=ce[w]=ce[x]=ce[E]=ce[M]=ce[T]=ce[S]=ce[N]=ce[A]=ce[P]=ce[I]=!1;var le={};le[_]=le[m]=le[R]=le[L]=le[b]=le[w]=le[O]=le[D]=le[U]=le[F]=le[j]=le[M]=le[T]=le[S]=le[N]=le[A]=le[P]=le[z]=le[q]=le[B]=le[V]=le[H]=!0,le[x]=le[E]=le[I]=!1;var fe={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},se=parseFloat,he=parseInt,de="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,pe="object"==typeof self&&self&&self.Object===Object&&self,ve=de||pe||Function("return this")(),ge=e&&!e.nodeType&&e,ye=ge&&t&&!t.nodeType&&t,_e=ye&&ye.exports===ge,me=_e&&de.process,be=function(){try{var t=ye&&ye.require&&ye.require("util").types;return t||me&&me.binding&&me.binding("util")}catch(t){}}(),we=be&&be.isArrayBuffer,xe=be&&be.isDate,Ee=be&&be.isMap,ke=be&&be.isRegExp,Me=be&&be.isSet,Te=be&&be.isTypedArray;function Se(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}function Ce(t,e,n,r){for(var i=-1,o=null==t?0:t.length;++i-1}function Re(t,e,n){for(var r=-1,i=null==t?0:t.length;++r-1;);return n}function nn(t,e){for(var n=t.length;n--&&Ve(e,t[n],0)>-1;);return n}var rn=Xe({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"}),on=Xe({"&":"&","<":"<",">":">",'"':""","'":"'"});function an(t){return"\\"+fe[t]}function un(t){return ie.test(t)}function cn(t){var e=-1,n=Array(t.size);return t.forEach((function(t,r){n[++e]=[r,t]})),n}function ln(t,e){return function(n){return t(e(n))}}function fn(t,e){for(var n=-1,r=t.length,i=0,o=[];++n",""":'"',"'":"'"});var gn=function t(e){var n,r=(e=null==e?ve:gn.defaults(ve.Object(),e,gn.pick(ve,ae))).Array,kt=e.Date,Mt=e.Error,Tt=e.Function,St=e.Math,Ct=e.Object,Nt=e.RegExp,At=e.String,Pt=e.TypeError,zt=r.prototype,It=Tt.prototype,Rt=Ct.prototype,Lt=e["__core-js_shared__"],Ot=It.toString,Dt=Rt.hasOwnProperty,Ut=0,Ft=(n=/[^.]+$/.exec(Lt&&Lt.keys&&Lt.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",jt=Rt.toString,qt=Ot.call(Ct),Bt=ve._,Vt=Nt("^"+Ot.call(Dt).replace(it,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ht=_e?e.Buffer:i,Wt=e.Symbol,Yt=e.Uint8Array,$t=Ht?Ht.allocUnsafe:i,Xt=ln(Ct.getPrototypeOf,Ct),Qt=Ct.create,Gt=Rt.propertyIsEnumerable,Kt=zt.splice,Zt=Wt?Wt.isConcatSpreadable:i,Jt=Wt?Wt.iterator:i,ne=Wt?Wt.toStringTag:i,ie=function(){try{var t=so(Ct,"defineProperty");return t({},"",{}),t}catch(t){}}(),fe=e.clearTimeout!==ve.clearTimeout&&e.clearTimeout,de=kt&&kt.now!==ve.Date.now&&kt.now,pe=e.setTimeout!==ve.setTimeout&&e.setTimeout,ge=St.ceil,ye=St.floor,me=Ct.getOwnPropertySymbols,be=Ht?Ht.isBuffer:i,je=e.isFinite,Xe=zt.join,yn=ln(Ct.keys,Ct),_n=St.max,mn=St.min,bn=kt.now,wn=e.parseInt,xn=St.random,En=zt.reverse,kn=so(e,"DataView"),Mn=so(e,"Map"),Tn=so(e,"Promise"),Sn=so(e,"Set"),Cn=so(e,"WeakMap"),Nn=so(Ct,"create"),An=Cn&&new Cn,Pn={},zn=Uo(kn),In=Uo(Mn),Rn=Uo(Tn),Ln=Uo(Sn),On=Uo(Cn),Dn=Wt?Wt.prototype:i,Un=Dn?Dn.valueOf:i,Fn=Dn?Dn.toString:i;function jn(t){if(eu(t)&&!Ha(t)&&!(t instanceof Hn)){if(t instanceof Vn)return t;if(Dt.call(t,"__wrapped__"))return Fo(t)}return new Vn(t)}var qn=function(){function t(){}return function(e){if(!tu(e))return{};if(Qt)return Qt(e);t.prototype=e;var n=new t;return t.prototype=i,n}}();function Bn(){}function Vn(t,e){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!e,this.__index__=0,this.__values__=i}function Hn(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=g,this.__views__=[]}function Wn(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e=e?t:e)),t}function cr(t,e,n,r,o,a){var u,c=1&e,l=2&e,f=4&e;if(n&&(u=o?n(t,r,o,a):n(t)),u!==i)return u;if(!tu(t))return t;var s=Ha(t);if(s){if(u=function(t){var e=t.length,n=new t.constructor(e);e&&"string"==typeof t[0]&&Dt.call(t,"index")&&(n.index=t.index,n.input=t.input);return n}(t),!c)return Ni(t,u)}else{var h=vo(t),d=h==E||h==k;if(Xa(t))return Ei(t,c);if(h==S||h==_||d&&!o){if(u=l||d?{}:yo(t),!c)return l?function(t,e){return Ai(t,po(t),e)}(t,function(t,e){return t&&Ai(e,zu(e),t)}(u,t)):function(t,e){return Ai(t,ho(t),e)}(t,ir(u,t))}else{if(!le[h])return o?t:{};u=function(t,e,n){var r=t.constructor;switch(e){case R:return ki(t);case b:case w:return new r(+t);case L:return function(t,e){var n=e?ki(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}(t,n);case O:case D:case U:case F:case j:case q:case B:case V:case H:return Mi(t,n);case M:return new r;case T:case P:return new r(t);case N:return function(t){var e=new t.constructor(t.source,vt.exec(t));return e.lastIndex=t.lastIndex,e}(t);case A:return new r;case z:return i=t,Un?Ct(Un.call(i)):{}}var i}(t,h,c)}}a||(a=new Qn);var p=a.get(t);if(p)return p;a.set(t,u),au(t)?t.forEach((function(r){u.add(cr(r,e,n,r,t,a))})):nu(t)&&t.forEach((function(r,i){u.set(i,cr(r,e,n,i,t,a))}));var v=s?i:(f?l?io:ro:l?zu:Pu)(t);return Ne(v||t,(function(r,i){v&&(r=t[i=r]),er(u,i,cr(r,e,n,i,t,a))})),u}function lr(t,e,n){var r=n.length;if(null==t)return!r;for(t=Ct(t);r--;){var o=n[r],a=e[o],u=t[o];if(u===i&&!(o in t)||!a(u))return!1}return!0}function fr(t,e,n){if("function"!=typeof t)throw new Pt(o);return Po((function(){t.apply(i,n)}),e)}function sr(t,e,n,r){var i=-1,o=Ie,a=!0,u=t.length,c=[],l=e.length;if(!u)return c;n&&(e=Le(e,Ze(n))),r?(o=Re,a=!1):e.length>=200&&(o=tn,a=!1,e=new Xn(e));t:for(;++i-1},Yn.prototype.set=function(t,e){var n=this.__data__,r=nr(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this},$n.prototype.clear=function(){this.size=0,this.__data__={hash:new Wn,map:new(Mn||Yn),string:new Wn}},$n.prototype.delete=function(t){var e=lo(this,t).delete(t);return this.size-=e?1:0,e},$n.prototype.get=function(t){return lo(this,t).get(t)},$n.prototype.has=function(t){return lo(this,t).has(t)},$n.prototype.set=function(t,e){var n=lo(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this},Xn.prototype.add=Xn.prototype.push=function(t){return this.__data__.set(t,a),this},Xn.prototype.has=function(t){return this.__data__.has(t)},Qn.prototype.clear=function(){this.__data__=new Yn,this.size=0},Qn.prototype.delete=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n},Qn.prototype.get=function(t){return this.__data__.get(t)},Qn.prototype.has=function(t){return this.__data__.has(t)},Qn.prototype.set=function(t,e){var n=this.__data__;if(n instanceof Yn){var r=n.__data__;if(!Mn||r.length<199)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new $n(r)}return n.set(t,e),this.size=n.size,this};var hr=Ii(br),dr=Ii(wr,!0);function pr(t,e){var n=!0;return hr(t,(function(t,r,i){return n=!!e(t,r,i)})),n}function vr(t,e,n){for(var r=-1,o=t.length;++r0&&n(u)?e>1?yr(u,e-1,n,r,i):Oe(i,u):r||(i[i.length]=u)}return i}var _r=Ri(),mr=Ri(!0);function br(t,e){return t&&_r(t,e,Pu)}function wr(t,e){return t&&mr(t,e,Pu)}function xr(t,e){return ze(e,(function(e){return Ka(t[e])}))}function Er(t,e){for(var n=0,r=(e=mi(e,t)).length;null!=t&&ne}function Sr(t,e){return null!=t&&Dt.call(t,e)}function Cr(t,e){return null!=t&&e in Ct(t)}function Nr(t,e,n){for(var o=n?Re:Ie,a=t[0].length,u=t.length,c=u,l=r(u),f=1/0,s=[];c--;){var h=t[c];c&&e&&(h=Le(h,Ze(e))),f=mn(h.length,f),l[c]=!n&&(e||a>=120&&h.length>=120)?new Xn(c&&h):i}h=t[0];var d=-1,p=l[0];t:for(;++d=u?c:c*("desc"==n[r]?-1:1)}return t.index-e.index}(t,e,n)}))}function Wr(t,e,n){for(var r=-1,i=e.length,o={};++r-1;)u!==t&&Kt.call(u,c,1),Kt.call(t,c,1);return t}function $r(t,e){for(var n=t?e.length:0,r=n-1;n--;){var i=e[n];if(n==r||i!==o){var o=i;mo(i)?Kt.call(t,i,1):si(t,i)}}return t}function Xr(t,e){return t+ye(xn()*(e-t+1))}function Qr(t,e){var n="";if(!t||e<1||e>p)return n;do{e%2&&(n+=t),(e=ye(e/2))&&(t+=t)}while(e);return n}function Gr(t,e){return zo(So(t,e,rc),t+"")}function Kr(t){return Kn(ju(t))}function Zr(t,e){var n=ju(t);return Lo(n,ur(e,0,n.length))}function Jr(t,e,n,r){if(!tu(t))return t;for(var o=-1,a=(e=mi(e,t)).length,u=a-1,c=t;null!=c&&++oo?0:o+e),(n=n>o?o:n)<0&&(n+=o),o=e>n?0:n-e>>>0,e>>>=0;for(var a=r(o);++i>>1,a=t[o];null!==a&&!cu(a)&&(n?a<=e:a=200){var l=e?null:Qi(t);if(l)return sn(l);a=!1,i=tn,c=new Xn}else c=e?[]:u;t:for(;++r=r?t:ri(t,e,n)}var xi=fe||function(t){return ve.clearTimeout(t)};function Ei(t,e){if(e)return t.slice();var n=t.length,r=$t?$t(n):new t.constructor(n);return t.copy(r),r}function ki(t){var e=new t.constructor(t.byteLength);return new Yt(e).set(new Yt(t)),e}function Mi(t,e){var n=e?ki(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}function Ti(t,e){if(t!==e){var n=t!==i,r=null===t,o=t==t,a=cu(t),u=e!==i,c=null===e,l=e==e,f=cu(e);if(!c&&!f&&!a&&t>e||a&&u&&l&&!c&&!f||r&&u&&l||!n&&l||!o)return 1;if(!r&&!a&&!f&&t1?n[o-1]:i,u=o>2?n[2]:i;for(a=t.length>3&&"function"==typeof a?(o--,a):i,u&&bo(n[0],n[1],u)&&(a=o<3?i:a,o=1),e=Ct(e);++r-1?o[a?e[u]:u]:i}}function Fi(t){return no((function(e){var n=e.length,r=n,a=Vn.prototype.thru;for(t&&e.reverse();r--;){var u=e[r];if("function"!=typeof u)throw new Pt(o);if(a&&!c&&"wrapper"==ao(u))var c=new Vn([],!0)}for(r=c?r:n;++r1&&b.reverse(),d&&fc))return!1;var f=a.get(t);if(f&&a.get(e))return f==e;var s=-1,h=!0,d=2&n?new Xn:i;for(a.set(t,e),a.set(e,t);++s-1&&t%1==0&&t1?"& ":"")+e[r],e=e.join(n>2?", ":" "),t.replace(lt,"{\n/* [wrapped with "+e+"] */\n")}(r,function(t,e){return Ne(y,(function(n){var r="_."+n[0];e&n[1]&&!Ie(t,r)&&t.push(r)})),t.sort()}(function(t){var e=t.match(ft);return e?e[1].split(st):[]}(r),n)))}function Ro(t){var e=0,n=0;return function(){var r=bn(),o=16-(r-n);if(n=r,o>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(i,arguments)}}function Lo(t,e){var n=-1,r=t.length,o=r-1;for(e=e===i?r:e;++n1?t[e-1]:i;return n="function"==typeof n?(t.pop(),n):i,oa(t,n)}));function ha(t){var e=jn(t);return e.__chain__=!0,e}function da(t,e){return e(t)}var pa=no((function(t){var e=t.length,n=e?t[0]:0,r=this.__wrapped__,o=function(e){return ar(e,t)};return!(e>1||this.__actions__.length)&&r instanceof Hn&&mo(n)?((r=r.slice(n,+n+(e?1:0))).__actions__.push({func:da,args:[o],thisArg:i}),new Vn(r,this.__chain__).thru((function(t){return e&&!t.length&&t.push(i),t}))):this.thru(o)}));var va=Pi((function(t,e,n){Dt.call(t,n)?++t[n]:or(t,n,1)}));var ga=Ui(Vo),ya=Ui(Ho);function _a(t,e){return(Ha(t)?Ne:hr)(t,co(e,3))}function ma(t,e){return(Ha(t)?Ae:dr)(t,co(e,3))}var ba=Pi((function(t,e,n){Dt.call(t,n)?t[n].push(e):or(t,n,[e])}));var wa=Gr((function(t,e,n){var i=-1,o="function"==typeof e,a=Ya(t)?r(t.length):[];return hr(t,(function(t){a[++i]=o?Se(e,t,n):Ar(t,e,n)})),a})),xa=Pi((function(t,e,n){or(t,n,e)}));function Ea(t,e){return(Ha(t)?Le:Fr)(t,co(e,3))}var ka=Pi((function(t,e,n){t[n?0:1].push(e)}),(function(){return[[],[]]}));var Ma=Gr((function(t,e){if(null==t)return[];var n=e.length;return n>1&&bo(t,e[0],e[1])?e=[]:n>2&&bo(e[0],e[1],e[2])&&(e=[e[0]]),Hr(t,yr(e,1),[])})),Ta=de||function(){return ve.Date.now()};function Sa(t,e,n){return e=n?i:e,e=t&&null==e?t.length:e,Ki(t,s,i,i,i,i,e)}function Ca(t,e){var n;if("function"!=typeof e)throw new Pt(o);return t=pu(t),function(){return--t>0&&(n=e.apply(this,arguments)),t<=1&&(e=i),n}}var Na=Gr((function(t,e,n){var r=1;if(n.length){var i=fn(n,uo(Na));r|=l}return Ki(t,r,e,n,i)})),Aa=Gr((function(t,e,n){var r=3;if(n.length){var i=fn(n,uo(Aa));r|=l}return Ki(e,r,t,n,i)}));function Pa(t,e,n){var r,a,u,c,l,f,s=0,h=!1,d=!1,p=!0;if("function"!=typeof t)throw new Pt(o);function v(e){var n=r,o=a;return r=a=i,s=e,c=t.apply(o,n)}function g(t){var n=t-f;return f===i||n>=e||n<0||d&&t-s>=u}function y(){var t=Ta();if(g(t))return _(t);l=Po(y,function(t){var n=e-(t-f);return d?mn(n,u-(t-s)):n}(t))}function _(t){return l=i,p&&r?v(t):(r=a=i,c)}function m(){var t=Ta(),n=g(t);if(r=arguments,a=this,f=t,n){if(l===i)return function(t){return s=t,l=Po(y,e),h?v(t):c}(f);if(d)return xi(l),l=Po(y,e),v(f)}return l===i&&(l=Po(y,e)),c}return e=gu(e)||0,tu(n)&&(h=!!n.leading,u=(d="maxWait"in n)?_n(gu(n.maxWait)||0,e):u,p="trailing"in n?!!n.trailing:p),m.cancel=function(){l!==i&&xi(l),s=0,r=f=a=l=i},m.flush=function(){return l===i?c:_(Ta())},m}var za=Gr((function(t,e){return fr(t,1,e)})),Ia=Gr((function(t,e,n){return fr(t,gu(e)||0,n)}));function Ra(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new Pt(o);var n=function(){var r=arguments,i=e?e.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=t.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(Ra.Cache||$n),n}function La(t){if("function"!=typeof t)throw new Pt(o);return function(){var e=arguments;switch(e.length){case 0:return!t.call(this);case 1:return!t.call(this,e[0]);case 2:return!t.call(this,e[0],e[1]);case 3:return!t.call(this,e[0],e[1],e[2])}return!t.apply(this,e)}}Ra.Cache=$n;var Oa=bi((function(t,e){var n=(e=1==e.length&&Ha(e[0])?Le(e[0],Ze(co())):Le(yr(e,1),Ze(co()))).length;return Gr((function(r){for(var i=-1,o=mn(r.length,n);++i=e})),Va=Pr(function(){return arguments}())?Pr:function(t){return eu(t)&&Dt.call(t,"callee")&&!Gt.call(t,"callee")},Ha=r.isArray,Wa=we?Ze(we):function(t){return eu(t)&&Mr(t)==R};function Ya(t){return null!=t&&Ja(t.length)&&!Ka(t)}function $a(t){return eu(t)&&Ya(t)}var Xa=be||gc,Qa=xe?Ze(xe):function(t){return eu(t)&&Mr(t)==w};function Ga(t){if(!eu(t))return!1;var e=Mr(t);return e==x||"[object DOMException]"==e||"string"==typeof t.message&&"string"==typeof t.name&&!iu(t)}function Ka(t){if(!tu(t))return!1;var e=Mr(t);return e==E||e==k||"[object AsyncFunction]"==e||"[object Proxy]"==e}function Za(t){return"number"==typeof t&&t==pu(t)}function Ja(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=p}function tu(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function eu(t){return null!=t&&"object"==typeof t}var nu=Ee?Ze(Ee):function(t){return eu(t)&&vo(t)==M};function ru(t){return"number"==typeof t||eu(t)&&Mr(t)==T}function iu(t){if(!eu(t)||Mr(t)!=S)return!1;var e=Xt(t);if(null===e)return!0;var n=Dt.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&Ot.call(n)==qt}var ou=ke?Ze(ke):function(t){return eu(t)&&Mr(t)==N};var au=Me?Ze(Me):function(t){return eu(t)&&vo(t)==A};function uu(t){return"string"==typeof t||!Ha(t)&&eu(t)&&Mr(t)==P}function cu(t){return"symbol"==typeof t||eu(t)&&Mr(t)==z}var lu=Te?Ze(Te):function(t){return eu(t)&&Ja(t.length)&&!!ce[Mr(t)]};var fu=Yi(Ur),su=Yi((function(t,e){return t<=e}));function hu(t){if(!t)return[];if(Ya(t))return uu(t)?pn(t):Ni(t);if(Jt&&t[Jt])return function(t){for(var e,n=[];!(e=t.next()).done;)n.push(e.value);return n}(t[Jt]());var e=vo(t);return(e==M?cn:e==A?sn:ju)(t)}function du(t){return t?(t=gu(t))===d||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}function pu(t){var e=du(t),n=e%1;return e==e?n?e-n:e:0}function vu(t){return t?ur(pu(t),0,g):0}function gu(t){if("number"==typeof t)return t;if(cu(t))return v;if(tu(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=tu(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(at,"");var n=yt.test(t);return n||mt.test(t)?he(t.slice(2),n?2:8):gt.test(t)?v:+t}function yu(t){return Ai(t,zu(t))}function _u(t){return null==t?"":li(t)}var mu=zi((function(t,e){if(ko(e)||Ya(e))Ai(e,Pu(e),t);else for(var n in e)Dt.call(e,n)&&er(t,n,e[n])})),bu=zi((function(t,e){Ai(e,zu(e),t)})),wu=zi((function(t,e,n,r){Ai(e,zu(e),t,r)})),xu=zi((function(t,e,n,r){Ai(e,Pu(e),t,r)})),Eu=no(ar);var ku=Gr((function(t,e){t=Ct(t);var n=-1,r=e.length,o=r>2?e[2]:i;for(o&&bo(e[0],e[1],o)&&(r=1);++n1),e})),Ai(t,io(t),n),r&&(n=cr(n,7,to));for(var i=e.length;i--;)si(n,e[i]);return n}));var Ou=no((function(t,e){return null==t?{}:function(t,e){return Wr(t,e,(function(e,n){return Su(t,n)}))}(t,e)}));function Du(t,e){if(null==t)return{};var n=Le(io(t),(function(t){return[t]}));return e=co(e),Wr(t,n,(function(t,n){return e(t,n[0])}))}var Uu=Gi(Pu),Fu=Gi(zu);function ju(t){return null==t?[]:Je(t,Pu(t))}var qu=Oi((function(t,e,n){return e=e.toLowerCase(),t+(n?Bu(e):e)}));function Bu(t){return Gu(_u(t).toLowerCase())}function Vu(t){return(t=_u(t))&&t.replace(wt,rn).replace(ee,"")}var Hu=Oi((function(t,e,n){return t+(n?"-":"")+e.toLowerCase()})),Wu=Oi((function(t,e,n){return t+(n?" ":"")+e.toLowerCase()})),Yu=Li("toLowerCase");var $u=Oi((function(t,e,n){return t+(n?"_":"")+e.toLowerCase()}));var Xu=Oi((function(t,e,n){return t+(n?" ":"")+Gu(e)}));var Qu=Oi((function(t,e,n){return t+(n?" ":"")+e.toUpperCase()})),Gu=Li("toUpperCase");function Ku(t,e,n){return t=_u(t),(e=n?i:e)===i?function(t){return oe.test(t)}(t)?function(t){return t.match(re)||[]}(t):function(t){return t.match(ht)||[]}(t):t.match(e)||[]}var Zu=Gr((function(t,e){try{return Se(t,i,e)}catch(t){return Ga(t)?t:new Mt(t)}})),Ju=no((function(t,e){return Ne(e,(function(e){e=Do(e),or(t,e,Na(t[e],t))})),t}));function tc(t){return function(){return t}}var ec=Fi(),nc=Fi(!0);function rc(t){return t}function ic(t){return Lr("function"==typeof t?t:cr(t,1))}var oc=Gr((function(t,e){return function(n){return Ar(n,t,e)}})),ac=Gr((function(t,e){return function(n){return Ar(t,n,e)}}));function uc(t,e,n){var r=Pu(e),i=xr(e,r);null!=n||tu(e)&&(i.length||!r.length)||(n=e,e=t,t=this,i=xr(e,Pu(e)));var o=!(tu(n)&&"chain"in n&&!n.chain),a=Ka(t);return Ne(i,(function(n){var r=e[n];t[n]=r,a&&(t.prototype[n]=function(){var e=this.__chain__;if(o||e){var n=t(this.__wrapped__);return(n.__actions__=Ni(this.__actions__)).push({func:r,args:arguments,thisArg:t}),n.__chain__=e,n}return r.apply(t,Oe([this.value()],arguments))})})),t}function cc(){}var lc=Vi(Le),fc=Vi(Pe),sc=Vi(Fe);function hc(t){return wo(t)?$e(Do(t)):function(t){return function(e){return Er(e,t)}}(t)}var dc=Wi(),pc=Wi(!0);function vc(){return[]}function gc(){return!1}var yc=Bi((function(t,e){return t+e}),0),_c=Xi("ceil"),mc=Bi((function(t,e){return t/e}),1),bc=Xi("floor");var wc,xc=Bi((function(t,e){return t*e}),1),Ec=Xi("round"),kc=Bi((function(t,e){return t-e}),0);return jn.after=function(t,e){if("function"!=typeof e)throw new Pt(o);return t=pu(t),function(){if(--t<1)return e.apply(this,arguments)}},jn.ary=Sa,jn.assign=mu,jn.assignIn=bu,jn.assignInWith=wu,jn.assignWith=xu,jn.at=Eu,jn.before=Ca,jn.bind=Na,jn.bindAll=Ju,jn.bindKey=Aa,jn.castArray=function(){if(!arguments.length)return[];var t=arguments[0];return Ha(t)?t:[t]},jn.chain=ha,jn.chunk=function(t,e,n){e=(n?bo(t,e,n):e===i)?1:_n(pu(e),0);var o=null==t?0:t.length;if(!o||e<1)return[];for(var a=0,u=0,c=r(ge(o/e));ao?0:o+n),(r=r===i||r>o?o:pu(r))<0&&(r+=o),r=n>r?0:vu(r);n>>0)?(t=_u(t))&&("string"==typeof e||null!=e&&!ou(e))&&!(e=li(e))&&un(t)?wi(pn(t),0,n):t.split(e,n):[]},jn.spread=function(t,e){if("function"!=typeof t)throw new Pt(o);return e=null==e?0:_n(pu(e),0),Gr((function(n){var r=n[e],i=wi(n,0,e);return r&&Oe(i,r),Se(t,this,i)}))},jn.tail=function(t){var e=null==t?0:t.length;return e?ri(t,1,e):[]},jn.take=function(t,e,n){return t&&t.length?ri(t,0,(e=n||e===i?1:pu(e))<0?0:e):[]},jn.takeRight=function(t,e,n){var r=null==t?0:t.length;return r?ri(t,(e=r-(e=n||e===i?1:pu(e)))<0?0:e,r):[]},jn.takeRightWhile=function(t,e){return t&&t.length?di(t,co(e,3),!1,!0):[]},jn.takeWhile=function(t,e){return t&&t.length?di(t,co(e,3)):[]},jn.tap=function(t,e){return e(t),t},jn.throttle=function(t,e,n){var r=!0,i=!0;if("function"!=typeof t)throw new Pt(o);return tu(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),Pa(t,e,{leading:r,maxWait:e,trailing:i})},jn.thru=da,jn.toArray=hu,jn.toPairs=Uu,jn.toPairsIn=Fu,jn.toPath=function(t){return Ha(t)?Le(t,Do):cu(t)?[t]:Ni(Oo(_u(t)))},jn.toPlainObject=yu,jn.transform=function(t,e,n){var r=Ha(t),i=r||Xa(t)||lu(t);if(e=co(e,4),null==n){var o=t&&t.constructor;n=i?r?new o:[]:tu(t)&&Ka(o)?qn(Xt(t)):{}}return(i?Ne:br)(t,(function(t,r,i){return e(n,t,r,i)})),n},jn.unary=function(t){return Sa(t,1)},jn.union=ea,jn.unionBy=na,jn.unionWith=ra,jn.uniq=function(t){return t&&t.length?fi(t):[]},jn.uniqBy=function(t,e){return t&&t.length?fi(t,co(e,2)):[]},jn.uniqWith=function(t,e){return e="function"==typeof e?e:i,t&&t.length?fi(t,i,e):[]},jn.unset=function(t,e){return null==t||si(t,e)},jn.unzip=ia,jn.unzipWith=oa,jn.update=function(t,e,n){return null==t?t:hi(t,e,_i(n))},jn.updateWith=function(t,e,n,r){return r="function"==typeof r?r:i,null==t?t:hi(t,e,_i(n),r)},jn.values=ju,jn.valuesIn=function(t){return null==t?[]:Je(t,zu(t))},jn.without=aa,jn.words=Ku,jn.wrap=function(t,e){return Da(_i(e),t)},jn.xor=ua,jn.xorBy=ca,jn.xorWith=la,jn.zip=fa,jn.zipObject=function(t,e){return gi(t||[],e||[],er)},jn.zipObjectDeep=function(t,e){return gi(t||[],e||[],Jr)},jn.zipWith=sa,jn.entries=Uu,jn.entriesIn=Fu,jn.extend=bu,jn.extendWith=wu,uc(jn,jn),jn.add=yc,jn.attempt=Zu,jn.camelCase=qu,jn.capitalize=Bu,jn.ceil=_c,jn.clamp=function(t,e,n){return n===i&&(n=e,e=i),n!==i&&(n=(n=gu(n))==n?n:0),e!==i&&(e=(e=gu(e))==e?e:0),ur(gu(t),e,n)},jn.clone=function(t){return cr(t,4)},jn.cloneDeep=function(t){return cr(t,5)},jn.cloneDeepWith=function(t,e){return cr(t,5,e="function"==typeof e?e:i)},jn.cloneWith=function(t,e){return cr(t,4,e="function"==typeof e?e:i)},jn.conformsTo=function(t,e){return null==e||lr(t,e,Pu(e))},jn.deburr=Vu,jn.defaultTo=function(t,e){return null==t||t!=t?e:t},jn.divide=mc,jn.endsWith=function(t,e,n){t=_u(t),e=li(e);var r=t.length,o=n=n===i?r:ur(pu(n),0,r);return(n-=e.length)>=0&&t.slice(n,o)==e},jn.eq=ja,jn.escape=function(t){return(t=_u(t))&&K.test(t)?t.replace(Q,on):t},jn.escapeRegExp=function(t){return(t=_u(t))&&ot.test(t)?t.replace(it,"\\$&"):t},jn.every=function(t,e,n){var r=Ha(t)?Pe:pr;return n&&bo(t,e,n)&&(e=i),r(t,co(e,3))},jn.find=ga,jn.findIndex=Vo,jn.findKey=function(t,e){return qe(t,co(e,3),br)},jn.findLast=ya,jn.findLastIndex=Ho,jn.findLastKey=function(t,e){return qe(t,co(e,3),wr)},jn.floor=bc,jn.forEach=_a,jn.forEachRight=ma,jn.forIn=function(t,e){return null==t?t:_r(t,co(e,3),zu)},jn.forInRight=function(t,e){return null==t?t:mr(t,co(e,3),zu)},jn.forOwn=function(t,e){return t&&br(t,co(e,3))},jn.forOwnRight=function(t,e){return t&&wr(t,co(e,3))},jn.get=Tu,jn.gt=qa,jn.gte=Ba,jn.has=function(t,e){return null!=t&&go(t,e,Sr)},jn.hasIn=Su,jn.head=Yo,jn.identity=rc,jn.includes=function(t,e,n,r){t=Ya(t)?t:ju(t),n=n&&!r?pu(n):0;var i=t.length;return n<0&&(n=_n(i+n,0)),uu(t)?n<=i&&t.indexOf(e,n)>-1:!!i&&Ve(t,e,n)>-1},jn.indexOf=function(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var i=null==n?0:pu(n);return i<0&&(i=_n(r+i,0)),Ve(t,e,i)},jn.inRange=function(t,e,n){return e=du(e),n===i?(n=e,e=0):n=du(n),function(t,e,n){return t>=mn(e,n)&&t<_n(e,n)}(t=gu(t),e,n)},jn.invoke=Au,jn.isArguments=Va,jn.isArray=Ha,jn.isArrayBuffer=Wa,jn.isArrayLike=Ya,jn.isArrayLikeObject=$a,jn.isBoolean=function(t){return!0===t||!1===t||eu(t)&&Mr(t)==b},jn.isBuffer=Xa,jn.isDate=Qa,jn.isElement=function(t){return eu(t)&&1===t.nodeType&&!iu(t)},jn.isEmpty=function(t){if(null==t)return!0;if(Ya(t)&&(Ha(t)||"string"==typeof t||"function"==typeof t.splice||Xa(t)||lu(t)||Va(t)))return!t.length;var e=vo(t);if(e==M||e==A)return!t.size;if(ko(t))return!Or(t).length;for(var n in t)if(Dt.call(t,n))return!1;return!0},jn.isEqual=function(t,e){return zr(t,e)},jn.isEqualWith=function(t,e,n){var r=(n="function"==typeof n?n:i)?n(t,e):i;return r===i?zr(t,e,i,n):!!r},jn.isError=Ga,jn.isFinite=function(t){return"number"==typeof t&&je(t)},jn.isFunction=Ka,jn.isInteger=Za,jn.isLength=Ja,jn.isMap=nu,jn.isMatch=function(t,e){return t===e||Ir(t,e,fo(e))},jn.isMatchWith=function(t,e,n){return n="function"==typeof n?n:i,Ir(t,e,fo(e),n)},jn.isNaN=function(t){return ru(t)&&t!=+t},jn.isNative=function(t){if(Eo(t))throw new Mt("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Rr(t)},jn.isNil=function(t){return null==t},jn.isNull=function(t){return null===t},jn.isNumber=ru,jn.isObject=tu,jn.isObjectLike=eu,jn.isPlainObject=iu,jn.isRegExp=ou,jn.isSafeInteger=function(t){return Za(t)&&t>=-9007199254740991&&t<=p},jn.isSet=au,jn.isString=uu,jn.isSymbol=cu,jn.isTypedArray=lu,jn.isUndefined=function(t){return t===i},jn.isWeakMap=function(t){return eu(t)&&vo(t)==I},jn.isWeakSet=function(t){return eu(t)&&"[object WeakSet]"==Mr(t)},jn.join=function(t,e){return null==t?"":Xe.call(t,e)},jn.kebabCase=Hu,jn.last=Go,jn.lastIndexOf=function(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var o=r;return n!==i&&(o=(o=pu(n))<0?_n(r+o,0):mn(o,r-1)),e==e?function(t,e,n){for(var r=n+1;r--;)if(t[r]===e)return r;return r}(t,e,o):Be(t,We,o,!0)},jn.lowerCase=Wu,jn.lowerFirst=Yu,jn.lt=fu,jn.lte=su,jn.max=function(t){return t&&t.length?vr(t,rc,Tr):i},jn.maxBy=function(t,e){return t&&t.length?vr(t,co(e,2),Tr):i},jn.mean=function(t){return Ye(t,rc)},jn.meanBy=function(t,e){return Ye(t,co(e,2))},jn.min=function(t){return t&&t.length?vr(t,rc,Ur):i},jn.minBy=function(t,e){return t&&t.length?vr(t,co(e,2),Ur):i},jn.stubArray=vc,jn.stubFalse=gc,jn.stubObject=function(){return{}},jn.stubString=function(){return""},jn.stubTrue=function(){return!0},jn.multiply=xc,jn.nth=function(t,e){return t&&t.length?Vr(t,pu(e)):i},jn.noConflict=function(){return ve._===this&&(ve._=Bt),this},jn.noop=cc,jn.now=Ta,jn.pad=function(t,e,n){t=_u(t);var r=(e=pu(e))?dn(t):0;if(!e||r>=e)return t;var i=(e-r)/2;return Hi(ye(i),n)+t+Hi(ge(i),n)},jn.padEnd=function(t,e,n){t=_u(t);var r=(e=pu(e))?dn(t):0;return e&&re){var r=t;t=e,e=r}if(n||t%1||e%1){var o=xn();return mn(t+o*(e-t+se("1e-"+((o+"").length-1))),e)}return Xr(t,e)},jn.reduce=function(t,e,n){var r=Ha(t)?De:Qe,i=arguments.length<3;return r(t,co(e,4),n,i,hr)},jn.reduceRight=function(t,e,n){var r=Ha(t)?Ue:Qe,i=arguments.length<3;return r(t,co(e,4),n,i,dr)},jn.repeat=function(t,e,n){return e=(n?bo(t,e,n):e===i)?1:pu(e),Qr(_u(t),e)},jn.replace=function(){var t=arguments,e=_u(t[0]);return t.length<3?e:e.replace(t[1],t[2])},jn.result=function(t,e,n){var r=-1,o=(e=mi(e,t)).length;for(o||(o=1,t=i);++rp)return[];var n=g,r=mn(t,g);e=co(e),t-=g;for(var i=Ke(r,e);++n=a)return t;var c=n-dn(r);if(c<1)return r;var l=u?wi(u,0,c).join(""):t.slice(0,c);if(o===i)return l+r;if(u&&(c+=l.length-c),ou(o)){if(t.slice(c).search(o)){var f,s=l;for(o.global||(o=Nt(o.source,_u(vt.exec(o))+"g")),o.lastIndex=0;f=o.exec(s);)var h=f.index;l=l.slice(0,h===i?c:h)}}else if(t.indexOf(li(o),c)!=c){var d=l.lastIndexOf(o);d>-1&&(l=l.slice(0,d))}return l+r},jn.unescape=function(t){return(t=_u(t))&&G.test(t)?t.replace(X,vn):t},jn.uniqueId=function(t){var e=++Ut;return _u(t)+e},jn.upperCase=Qu,jn.upperFirst=Gu,jn.each=_a,jn.eachRight=ma,jn.first=Yo,uc(jn,(wc={},br(jn,(function(t,e){Dt.call(jn.prototype,e)||(wc[e]=t)})),wc),{chain:!1}),jn.VERSION="4.17.14",Ne(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(t){jn[t].placeholder=jn})),Ne(["drop","take"],(function(t,e){Hn.prototype[t]=function(n){n=n===i?1:_n(pu(n),0);var r=this.__filtered__&&!e?new Hn(this):this.clone();return r.__filtered__?r.__takeCount__=mn(n,r.__takeCount__):r.__views__.push({size:mn(n,g),type:t+(r.__dir__<0?"Right":"")}),r},Hn.prototype[t+"Right"]=function(e){return this.reverse()[t](e).reverse()}})),Ne(["filter","map","takeWhile"],(function(t,e){var n=e+1,r=1==n||3==n;Hn.prototype[t]=function(t){var e=this.clone();return e.__iteratees__.push({iteratee:co(t,3),type:n}),e.__filtered__=e.__filtered__||r,e}})),Ne(["head","last"],(function(t,e){var n="take"+(e?"Right":"");Hn.prototype[t]=function(){return this[n](1).value()[0]}})),Ne(["initial","tail"],(function(t,e){var n="drop"+(e?"":"Right");Hn.prototype[t]=function(){return this.__filtered__?new Hn(this):this[n](1)}})),Hn.prototype.compact=function(){return this.filter(rc)},Hn.prototype.find=function(t){return this.filter(t).head()},Hn.prototype.findLast=function(t){return this.reverse().find(t)},Hn.prototype.invokeMap=Gr((function(t,e){return"function"==typeof t?new Hn(this):this.map((function(n){return Ar(n,t,e)}))})),Hn.prototype.reject=function(t){return this.filter(La(co(t)))},Hn.prototype.slice=function(t,e){t=pu(t);var n=this;return n.__filtered__&&(t>0||e<0)?new Hn(n):(t<0?n=n.takeRight(-t):t&&(n=n.drop(t)),e!==i&&(n=(e=pu(e))<0?n.dropRight(-e):n.take(e-t)),n)},Hn.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},Hn.prototype.toArray=function(){return this.take(g)},br(Hn.prototype,(function(t,e){var n=/^(?:filter|find|map|reject)|While$/.test(e),r=/^(?:head|last)$/.test(e),o=jn[r?"take"+("last"==e?"Right":""):e],a=r||/^find/.test(e);o&&(jn.prototype[e]=function(){var e=this.__wrapped__,u=r?[1]:arguments,c=e instanceof Hn,l=u[0],f=c||Ha(e),s=function(t){var e=o.apply(jn,Oe([t],u));return r&&h?e[0]:e};f&&n&&"function"==typeof l&&1!=l.length&&(c=f=!1);var h=this.__chain__,d=!!this.__actions__.length,p=a&&!h,v=c&&!d;if(!a&&f){e=v?e:new Hn(this);var g=t.apply(e,u);return g.__actions__.push({func:da,args:[s],thisArg:i}),new Vn(g,h)}return p&&v?t.apply(this,u):(g=this.thru(s),p?r?g.value()[0]:g.value():g)})})),Ne(["pop","push","shift","sort","splice","unshift"],(function(t){var e=zt[t],n=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",r=/^(?:pop|shift)$/.test(t);jn.prototype[t]=function(){var t=arguments;if(r&&!this.__chain__){var i=this.value();return e.apply(Ha(i)?i:[],t)}return this[n]((function(n){return e.apply(Ha(n)?n:[],t)}))}})),br(Hn.prototype,(function(t,e){var n=jn[e];if(n){var r=n.name+"";Dt.call(Pn,r)||(Pn[r]=[]),Pn[r].push({name:e,func:n})}})),Pn[ji(i,2).name]=[{name:"wrapper",func:i}],Hn.prototype.clone=function(){var t=new Hn(this.__wrapped__);return t.__actions__=Ni(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=Ni(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=Ni(this.__views__),t},Hn.prototype.reverse=function(){if(this.__filtered__){var t=new Hn(this);t.__dir__=-1,t.__filtered__=!0}else(t=this.clone()).__dir__*=-1;return t},Hn.prototype.value=function(){var t=this.__wrapped__.value(),e=this.__dir__,n=Ha(t),r=e<0,i=n?t.length:0,o=function(t,e,n){var r=-1,i=n.length;for(;++r=this.__values__.length;return{done:t,value:t?i:this.__values__[this.__index__++]}},jn.prototype.plant=function(t){for(var e,n=this;n instanceof Bn;){var r=Fo(n);r.__index__=0,r.__values__=i,e?o.__wrapped__=r:e=r;var o=r;n=n.__wrapped__}return o.__wrapped__=t,e},jn.prototype.reverse=function(){var t=this.__wrapped__;if(t instanceof Hn){var e=t;return this.__actions__.length&&(e=new Hn(this)),(e=e.reverse()).__actions__.push({func:da,args:[ta],thisArg:i}),new Vn(e,this.__chain__)}return this.thru(ta)},jn.prototype.toJSON=jn.prototype.valueOf=jn.prototype.value=function(){return pi(this.__wrapped__,this.__actions__)},jn.prototype.first=jn.prototype.head,Jt&&(jn.prototype[Jt]=function(){return this}),jn}();ve._=gn,(r=function(){return gn}.call(e,n,e,t))===i||(t.exports=r)}.call(this)},5228:t=>{"use strict";var e=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;t.exports=function(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},n=0;n<10;n++)e["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(e).map((function(t){return e[t]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(t){r[t]=t})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(t){return!1}}()?Object.assign:function(t,i){for(var o,a,u=function(t){if(null==t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}(t),c=1;c{"use strict";var r=n(5228),i=n(6540);function o(t){for(var e="https://reactjs.org/docs/error-decoder.html?invariant="+t,n=1;nS;S++)T[S]=S+1;T[15]=0;var C=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,N=Object.prototype.hasOwnProperty,A={},P={};function z(t){return!!N.call(P,t)||!N.call(A,t)&&(C.test(t)?P[t]=!0:(A[t]=!0,!1))}function I(t,e,n,r,i,o){this.acceptsBooleans=2===e||3===e||4===e,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=t,this.type=e,this.sanitizeURL=o}var R={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(t){R[t]=new I(t,0,!1,t,null,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(t){var e=t[0];R[e]=new I(e,1,!1,t[1],null,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(t){R[t]=new I(t,2,!1,t.toLowerCase(),null,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(t){R[t]=new I(t,2,!1,t,null,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(t){R[t]=new I(t,3,!1,t.toLowerCase(),null,!1)})),["checked","multiple","muted","selected"].forEach((function(t){R[t]=new I(t,3,!0,t,null,!1)})),["capture","download"].forEach((function(t){R[t]=new I(t,4,!1,t,null,!1)})),["cols","rows","size","span"].forEach((function(t){R[t]=new I(t,6,!1,t,null,!1)})),["rowSpan","start"].forEach((function(t){R[t]=new I(t,5,!1,t.toLowerCase(),null,!1)}));var L=/[\-:]([a-z])/g;function O(t){return t[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(t){var e=t.replace(L,O);R[e]=new I(e,1,!1,t,null,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(t){var e=t.replace(L,O);R[e]=new I(e,1,!1,t,"http://www.w3.org/1999/xlink",!1)})),["xml:base","xml:lang","xml:space"].forEach((function(t){var e=t.replace(L,O);R[e]=new I(e,1,!1,t,"http://www.w3.org/XML/1998/namespace",!1)})),["tabIndex","crossOrigin"].forEach((function(t){R[t]=new I(t,1,!1,t.toLowerCase(),null,!1)})),R.xlinkHref=new I("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0),["src","href","action","formAction"].forEach((function(t){R[t]=new I(t,1,!1,t.toLowerCase(),null,!0)}));var D=/["'&<>]/;function U(t){if("boolean"==typeof t||"number"==typeof t)return""+t;t=""+t;var e=D.exec(t);if(e){var n,r="",i=0;for(n=e.index;ne}return!1}(t,e,r,!1)?"":null!==r?(t=r.attributeName,3===(n=r.type)||4===n&&!0===e?t+'=""':(r.sanitizeURL&&(e=""+e),t+'="'+U(e)+'"')):z(t)?t+'="'+U(e)+'"':""}var j="function"==typeof Object.is?Object.is:function(t,e){return t===e&&(0!==t||1/t==1/e)||t!=t&&e!=e},q=null,B=null,V=null,H=!1,W=!1,Y=null,$=0;function X(){if(null===q)throw Error(o(321));return q}function Q(){if(0<$)throw Error(o(312));return{memoizedState:null,queue:null,next:null}}function G(){return null===V?null===B?(H=!1,B=V=Q()):(H=!0,V=B):null===V.next?(H=!1,V=V.next=Q()):(H=!0,V=V.next),V}function K(t,e,n,r){for(;W;)W=!1,$+=1,V=null,n=t(e,r);return B=q=null,$=0,V=Y=null,n}function Z(t,e){return"function"==typeof e?e(t):e}function J(t,e,n){if(q=X(),V=G(),H){var r=V.queue;if(e=r.dispatch,null!==Y&&void 0!==(n=Y.get(r))){Y.delete(r),r=V.memoizedState;do{r=t(r,n.action),n=n.next}while(null!==n);return V.memoizedState=r,[r,e]}return[V.memoizedState,e]}return t=t===Z?"function"==typeof e?e():e:void 0!==n?n(e):e,V.memoizedState=t,t=(t=V.queue={last:null,dispatch:null}).dispatch=tt.bind(null,q,t),[V.memoizedState,t]}function tt(t,e,n){if(!(25>$))throw Error(o(301));if(t===q)if(W=!0,t={action:n,next:null},null===Y&&(Y=new Map),void 0===(n=Y.get(e)))Y.set(e,t);else{for(e=n;null!==e.next;)e=e.next;e.next=t}}function et(){}var nt=0,rt={readContext:function(t){var e=nt;return M(t,e),t[e]},useContext:function(t){X();var e=nt;return M(t,e),t[e]},useMemo:function(t,e){if(q=X(),e=void 0===e?null:e,null!==(V=G())){var n=V.memoizedState;if(null!==n&&null!==e){t:{var r=n[1];if(null===r)r=!1;else{for(var i=0;i=a))throw Error(o(304));var u=new Uint16Array(a);for(u.set(r),(T=u)[0]=n+1,r=n;r=u.children.length){var c=u.footer;if(""!==c&&(this.previousWasTextNode=!1),this.stack.pop(),"select"===u.type)this.currentSelectValue=null;else if(null!=u.type&&null!=u.type.type&&u.type.type.$$typeof===s)this.popProvider(u.type);else if(u.type===v){this.suspenseDepth--;var l=r.pop();if(i){i=!1;var f=u.fallbackFrame;if(!f)throw Error(o(303));this.stack.push(f),r[this.suspenseDepth]+="\x3c!--$!--\x3e";continue}r[this.suspenseDepth]+=l}r[this.suspenseDepth]+=c}else{var h=u.children[u.childIndex++],d="";try{d+=this.render(h,u.context,u.domNamespace)}catch(t){if(null!=t&&"function"==typeof t.then)throw Error(o(294));throw t}r.length<=this.suspenseDepth&&r.push(""),r[this.suspenseDepth]+=d}}return r[0]}finally{dt.current=n,nt=e}},e.render=function(t,e,n){if("string"==typeof t||"number"==typeof t)return""===(n=""+t)?"":this.makeStaticMarkup?U(n):this.previousWasTextNode?"\x3c!-- --\x3e"+U(n):(this.previousWasTextNode=!0,U(n));if(t=(e=wt(t,e,this.threadID)).child,e=e.context,null===t||!1===t)return"";if(!i.isValidElement(t)){if(null!=t&&null!=t.$$typeof){if((n=t.$$typeof)===u)throw Error(o(257));throw Error(o(258,n.toString()))}return t=ht(t),this.stack.push({type:null,domNamespace:n,children:t,childIndex:0,context:e,footer:""}),""}var a=t.type;if("string"==typeof a)return this.renderDOM(t,e,n);switch(a){case l:case d:case f:case g:case c:return t=ht(t.props.children),this.stack.push({type:null,domNamespace:n,children:t,childIndex:0,context:e,footer:""}),"";case v:throw Error(o(294))}if("object"==typeof a&&null!==a)switch(a.$$typeof){case p:q={};var m=a.render(t.props,t.ref);return m=K(a.render,t.props,m,t.ref),m=ht(m),this.stack.push({type:null,domNamespace:n,children:m,childIndex:0,context:e,footer:""}),"";case y:return t=[i.createElement(a.type,r({ref:t.ref},t.props))],this.stack.push({type:null,domNamespace:n,children:t,childIndex:0,context:e,footer:""}),"";case s:return n={type:t,domNamespace:n,children:a=ht(t.props.children),childIndex:0,context:e,footer:""},this.pushProvider(t),this.stack.push(n),"";case h:a=t.type,m=t.props;var x=this.threadID;return M(a,x),a=ht(m.children(a[x])),this.stack.push({type:t,domNamespace:n,children:a,childIndex:0,context:e,footer:""}),"";case b:throw Error(o(338));case _:switch(function(t){if(-1===t._status){t._status=0;var e=t._ctor;e=e(),t._result=e,e.then((function(e){0===t._status&&(e=e.default,t._status=1,t._result=e)}),(function(e){0===t._status&&(t._status=2,t._result=e)}))}}(a=t.type),a._status){case 1:return t=[i.createElement(a._result,r({ref:t.ref},t.props))],this.stack.push({type:null,domNamespace:n,children:t,childIndex:0,context:e,footer:""}),"";case 2:throw a._result;default:throw Error(o(295))}case w:throw Error(o(343))}throw Error(o(130,null==a?a:typeof a,""))},e.renderDOM=function(t,e,n){var a=t.type.toLowerCase();if(n===it&&ot(a),!gt.hasOwnProperty(a)){if(!vt.test(a))throw Error(o(65,a));gt[a]=!0}var u=t.props;if("input"===a)u=r({type:void 0},u,{defaultChecked:void 0,defaultValue:void 0,value:null!=u.value?u.value:u.defaultValue,checked:null!=u.checked?u.checked:u.defaultChecked});else if("textarea"===a){var c=u.value;if(null==c){c=u.defaultValue;var l=u.children;if(null!=l){if(null!=c)throw Error(o(92));if(Array.isArray(l)){if(!(1>=l.length))throw Error(o(93));l=l[0]}c=""+l}null==c&&(c="")}u=r({},u,{value:void 0,children:""+c})}else if("select"===a)this.currentSelectValue=null!=u.value?u.value:u.defaultValue,u=r({},u,{value:void 0});else if("option"===a){l=this.currentSelectValue;var f=function(t){if(null==t)return t;var e="";return i.Children.forEach(t,(function(t){null!=t&&(e+=t)})),e}(u.children);if(null!=l){var s=null!=u.value?u.value+"":f;if(c=!1,Array.isArray(l)){for(var h=0;h":(b+=">",c=""+t.type+">");t:{if(null!=(l=u.dangerouslySetInnerHTML)){if(null!=l.__html){l=l.__html;break t}}else if("string"==typeof(l=u.children)||"number"==typeof l){l=U(l);break t}l=null}return null!=l?(u=[],pt.hasOwnProperty(a)&&"\n"===l.charAt(0)&&(b+="\n"),b+=l):u=ht(u.children),t=t.type,n=null==n||"http://www.w3.org/1999/xhtml"===n?ot(t):"http://www.w3.org/2000/svg"===n&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":n,this.stack.push({domNamespace:n,type:a,children:u,childIndex:0,context:e,footer:c}),this.previousWasTextNode=!1,b},t}(),Et={renderToString:function(t){t=new xt(t,!1);try{return t.read(1/0)}finally{t.destroy()}},renderToStaticMarkup:function(t){t=new xt(t,!0);try{return t.read(1/0)}finally{t.destroy()}},renderToNodeStream:function(){throw Error(o(207))},renderToStaticNodeStream:function(){throw Error(o(208))},version:"16.14.0"};t.exports=Et.default||Et},2551:(t,e,n)=>{"use strict";var r=n(6540),i=n(5228),o=n(9982);function a(t){for(var e="https://reactjs.org/docs/error-decoder.html?invariant="+t,n=1;ne}return!1}(e,n,i,r)&&(n=null),r||null===i?function(t){return!!V.call(W,t)||!V.call(H,t)&&(B.test(t)?W[t]=!0:(H[t]=!0,!1))}(e)&&(null===n?t.removeAttribute(e):t.setAttribute(e,""+n)):i.mustUseProperty?t[i.propertyName]=null===n?3!==i.type&&"":n:(e=i.attributeName,r=i.attributeNamespace,null===n?t.removeAttribute(e):(n=3===(i=i.type)||4===i&&!0===n?"":""+n,r?t.setAttributeNS(r,e,n):t.setAttribute(e,n))))}G.hasOwnProperty("ReactCurrentDispatcher")||(G.ReactCurrentDispatcher={current:null}),G.hasOwnProperty("ReactCurrentBatchConfig")||(G.ReactCurrentBatchConfig={suspense:null});var Z=/^(.*)[\\\/]/,J="function"==typeof Symbol&&Symbol.for,tt=J?Symbol.for("react.element"):60103,et=J?Symbol.for("react.portal"):60106,nt=J?Symbol.for("react.fragment"):60107,rt=J?Symbol.for("react.strict_mode"):60108,it=J?Symbol.for("react.profiler"):60114,ot=J?Symbol.for("react.provider"):60109,at=J?Symbol.for("react.context"):60110,ut=J?Symbol.for("react.concurrent_mode"):60111,ct=J?Symbol.for("react.forward_ref"):60112,lt=J?Symbol.for("react.suspense"):60113,ft=J?Symbol.for("react.suspense_list"):60120,st=J?Symbol.for("react.memo"):60115,ht=J?Symbol.for("react.lazy"):60116,dt=J?Symbol.for("react.block"):60121,pt="function"==typeof Symbol&&Symbol.iterator;function vt(t){return null===t||"object"!=typeof t?null:"function"==typeof(t=pt&&t[pt]||t["@@iterator"])?t:null}function gt(t){if(null==t)return null;if("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t;switch(t){case nt:return"Fragment";case et:return"Portal";case it:return"Profiler";case rt:return"StrictMode";case lt:return"Suspense";case ft:return"SuspenseList"}if("object"==typeof t)switch(t.$$typeof){case at:return"Context.Consumer";case ot:return"Context.Provider";case ct:var e=t.render;return e=e.displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case st:return gt(t.type);case dt:return gt(t.render);case ht:if(t=1===t._status?t._result:null)return gt(t)}return null}function yt(t){var e="";do{t:switch(t.tag){case 3:case 4:case 6:case 7:case 10:case 9:var n="";break t;default:var r=t._debugOwner,i=t._debugSource,o=gt(t.type);n=null,r&&(n=gt(r.type)),r=o,o="",i?o=" (at "+i.fileName.replace(Z,"")+":"+i.lineNumber+")":n&&(o=" (created by "+n+")"),n="\n in "+(r||"Unknown")+o}e+=n,t=t.return}while(t);return e}function _t(t){switch(typeof t){case"boolean":case"number":case"object":case"string":case"undefined":return t;default:return""}}function mt(t){var e=t.type;return(t=t.nodeName)&&"input"===t.toLowerCase()&&("checkbox"===e||"radio"===e)}function bt(t){t._valueTracker||(t._valueTracker=function(t){var e=mt(t)?"checked":"value",n=Object.getOwnPropertyDescriptor(t.constructor.prototype,e),r=""+t[e];if(!t.hasOwnProperty(e)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var i=n.get,o=n.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return i.call(this)},set:function(t){r=""+t,o.call(this,t)}}),Object.defineProperty(t,e,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(t){r=""+t},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}(t))}function wt(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var n=e.getValue(),r="";return t&&(r=mt(t)?t.checked?"true":"false":t.value),(t=r)!==n&&(e.setValue(t),!0)}function xt(t,e){var n=e.checked;return i({},e,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:t._wrapperState.initialChecked})}function Et(t,e){var n=null==e.defaultValue?"":e.defaultValue,r=null!=e.checked?e.checked:e.defaultChecked;n=_t(null!=e.value?e.value:n),t._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===e.type||"radio"===e.type?null!=e.checked:null!=e.value}}function kt(t,e){null!=(e=e.checked)&&K(t,"checked",e,!1)}function Mt(t,e){kt(t,e);var n=_t(e.value),r=e.type;if(null!=n)"number"===r?(0===n&&""===t.value||t.value!=n)&&(t.value=""+n):t.value!==""+n&&(t.value=""+n);else if("submit"===r||"reset"===r)return void t.removeAttribute("value");e.hasOwnProperty("value")?St(t,e.type,n):e.hasOwnProperty("defaultValue")&&St(t,e.type,_t(e.defaultValue)),null==e.checked&&null!=e.defaultChecked&&(t.defaultChecked=!!e.defaultChecked)}function Tt(t,e,n){if(e.hasOwnProperty("value")||e.hasOwnProperty("defaultValue")){var r=e.type;if(!("submit"!==r&&"reset"!==r||void 0!==e.value&&null!==e.value))return;e=""+t._wrapperState.initialValue,n||e===t.value||(t.value=e),t.defaultValue=e}""!==(n=t.name)&&(t.name=""),t.defaultChecked=!!t._wrapperState.initialChecked,""!==n&&(t.name=n)}function St(t,e,n){"number"===e&&t.ownerDocument.activeElement===t||(null==n?t.defaultValue=""+t._wrapperState.initialValue:t.defaultValue!==""+n&&(t.defaultValue=""+n))}function Ct(t,e){return t=i({children:void 0},e),(e=function(t){var e="";return r.Children.forEach(t,(function(t){null!=t&&(e+=t)})),e}(e.children))&&(t.children=e),t}function Nt(t,e,n,r){if(t=t.options,e){e={};for(var i=0;i=n.length))throw Error(a(93));n=n[0]}e=n}null==e&&(e=""),n=e}t._wrapperState={initialValue:_t(n)}}function zt(t,e){var n=_t(e.value),r=_t(e.defaultValue);null!=n&&((n=""+n)!==t.value&&(t.value=n),null==e.defaultValue&&t.defaultValue!==n&&(t.defaultValue=n)),null!=r&&(t.defaultValue=""+r)}function It(t){var e=t.textContent;e===t._wrapperState.initialValue&&""!==e&&null!==e&&(t.value=e)}var Rt="http://www.w3.org/1999/xhtml",Lt="http://www.w3.org/2000/svg";function Ot(t){switch(t){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Dt(t,e){return null==t||"http://www.w3.org/1999/xhtml"===t?Ot(e):"http://www.w3.org/2000/svg"===t&&"foreignObject"===e?"http://www.w3.org/1999/xhtml":t}var Ut,Ft,jt=(Ft=function(t,e){if(t.namespaceURI!==Lt||"innerHTML"in t)t.innerHTML=e;else{for((Ut=Ut||document.createElement("div")).innerHTML="",e=Ut.firstChild;t.firstChild;)t.removeChild(t.firstChild);for(;e.firstChild;)t.appendChild(e.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(t,e,n,r){MSApp.execUnsafeLocalFunction((function(){return Ft(t,e)}))}:Ft);function qt(t,e){if(e){var n=t.firstChild;if(n&&n===t.lastChild&&3===n.nodeType)return void(n.nodeValue=e)}t.textContent=e}function Bt(t,e){var n={};return n[t.toLowerCase()]=e.toLowerCase(),n["Webkit"+t]="webkit"+e,n["Moz"+t]="moz"+e,n}var Vt={animationend:Bt("Animation","AnimationEnd"),animationiteration:Bt("Animation","AnimationIteration"),animationstart:Bt("Animation","AnimationStart"),transitionend:Bt("Transition","TransitionEnd")},Ht={},Wt={};function Yt(t){if(Ht[t])return Ht[t];if(!Vt[t])return t;var e,n=Vt[t];for(e in n)if(n.hasOwnProperty(e)&&e in Wt)return Ht[t]=n[e];return t}S&&(Wt=document.createElement("div").style,"AnimationEvent"in window||(delete Vt.animationend.animation,delete Vt.animationiteration.animation,delete Vt.animationstart.animation),"TransitionEvent"in window||delete Vt.transitionend.transition);var $t=Yt("animationend"),Xt=Yt("animationiteration"),Qt=Yt("animationstart"),Gt=Yt("transitionend"),Kt="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Zt=new("function"==typeof WeakMap?WeakMap:Map);function Jt(t){var e=Zt.get(t);return void 0===e&&(e=new Map,Zt.set(t,e)),e}function te(t){var e=t,n=t;if(t.alternate)for(;e.return;)e=e.return;else{t=e;do{!!(1026&(e=t).effectTag)&&(n=e.return),t=e.return}while(t)}return 3===e.tag?n:null}function ee(t){if(13===t.tag){var e=t.memoizedState;if(null===e&&(null!==(t=t.alternate)&&(e=t.memoizedState)),null!==e)return e.dehydrated}return null}function ne(t){if(te(t)!==t)throw Error(a(188))}function re(t){if(t=function(t){var e=t.alternate;if(!e){if(null===(e=te(t)))throw Error(a(188));return e!==t?null:t}for(var n=t,r=e;;){var i=n.return;if(null===i)break;var o=i.alternate;if(null===o){if(null!==(r=i.return)){n=r;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===n)return ne(i),t;if(o===r)return ne(i),e;o=o.sibling}throw Error(a(188))}if(n.return!==r.return)n=i,r=o;else{for(var u=!1,c=i.child;c;){if(c===n){u=!0,n=i,r=o;break}if(c===r){u=!0,r=i,n=o;break}c=c.sibling}if(!u){for(c=o.child;c;){if(c===n){u=!0,n=o,r=i;break}if(c===r){u=!0,r=o,n=i;break}c=c.sibling}if(!u)throw Error(a(189))}}if(n.alternate!==r)throw Error(a(190))}if(3!==n.tag)throw Error(a(188));return n.stateNode.current===n?t:e}(t),!t)return null;for(var e=t;;){if(5===e.tag||6===e.tag)return e;if(e.child)e.child.return=e,e=e.child;else{if(e===t)break;for(;!e.sibling;){if(!e.return||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}}return null}function ie(t,e){if(null==e)throw Error(a(30));return null==t?e:Array.isArray(t)?Array.isArray(e)?(t.push.apply(t,e),t):(t.push(e),t):Array.isArray(e)?[t].concat(e):[t,e]}function oe(t,e,n){Array.isArray(t)?t.forEach(e,n):t&&e.call(n,t)}var ae=null;function ue(t){if(t){var e=t._dispatchListeners,n=t._dispatchInstances;if(Array.isArray(e))for(var r=0;rse.length&&se.push(t)}function de(t,e,n,r){if(se.length){var i=se.pop();return i.topLevelType=t,i.eventSystemFlags=r,i.nativeEvent=e,i.targetInst=n,i}return{topLevelType:t,eventSystemFlags:r,nativeEvent:e,targetInst:n,ancestors:[]}}function pe(t){var e=t.targetInst,n=e;do{if(!n){t.ancestors.push(n);break}var r=n;if(3===r.tag)r=r.stateNode.containerInfo;else{for(;r.return;)r=r.return;r=3!==r.tag?null:r.stateNode.containerInfo}if(!r)break;5!==(e=n.tag)&&6!==e||t.ancestors.push(n),n=In(r)}while(n);for(n=0;n=e)return{node:r,offset:e-t};t=n}t:{for(;r;){if(r.nextSibling){r=r.nextSibling;break t}r=r.parentNode}r=void 0}r=hn(r)}}function pn(t,e){return!(!t||!e)&&(t===e||(!t||3!==t.nodeType)&&(e&&3===e.nodeType?pn(t,e.parentNode):"contains"in t?t.contains(e):!!t.compareDocumentPosition&&!!(16&t.compareDocumentPosition(e))))}function vn(){for(var t=window,e=sn();e instanceof t.HTMLIFrameElement;){try{var n="string"==typeof e.contentWindow.location.href}catch(t){n=!1}if(!n)break;e=sn((t=e.contentWindow).document)}return e}function gn(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&("input"===e&&("text"===t.type||"search"===t.type||"tel"===t.type||"url"===t.type||"password"===t.type)||"textarea"===e||"true"===t.contentEditable)}var yn="$",_n="/$",mn="$?",bn="$!",wn=null,xn=null;function En(t,e){switch(t){case"button":case"input":case"select":case"textarea":return!!e.autoFocus}return!1}function kn(t,e){return"textarea"===t||"option"===t||"noscript"===t||"string"==typeof e.children||"number"==typeof e.children||"object"==typeof e.dangerouslySetInnerHTML&&null!==e.dangerouslySetInnerHTML&&null!=e.dangerouslySetInnerHTML.__html}var Mn="function"==typeof setTimeout?setTimeout:void 0,Tn="function"==typeof clearTimeout?clearTimeout:void 0;function Sn(t){for(;null!=t;t=t.nextSibling){var e=t.nodeType;if(1===e||3===e)break}return t}function Cn(t){t=t.previousSibling;for(var e=0;t;){if(8===t.nodeType){var n=t.data;if(n===yn||n===bn||n===mn){if(0===e)return t;e--}else n===_n&&e++}t=t.previousSibling}return null}var Nn=Math.random().toString(36).slice(2),An="__reactInternalInstance$"+Nn,Pn="__reactEventHandlers$"+Nn,zn="__reactContainere$"+Nn;function In(t){var e=t[An];if(e)return e;for(var n=t.parentNode;n;){if(e=n[zn]||n[An]){if(n=e.alternate,null!==e.child||null!==n&&null!==n.child)for(t=Cn(t);null!==t;){if(n=t[An])return n;t=Cn(t)}return e}n=(t=n).parentNode}return null}function Rn(t){return!(t=t[An]||t[zn])||5!==t.tag&&6!==t.tag&&13!==t.tag&&3!==t.tag?null:t}function Ln(t){if(5===t.tag||6===t.tag)return t.stateNode;throw Error(a(33))}function On(t){return t[Pn]||null}function Dn(t){do{t=t.return}while(t&&5!==t.tag);return t||null}function Un(t,e){var n=t.stateNode;if(!n)return null;var r=p(n);if(!r)return null;n=r[e];t:switch(e){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(t=t.type)||"input"===t||"select"===t||"textarea"===t)),t=!r;break t;default:t=!1}if(t)return null;if(n&&"function"!=typeof n)throw Error(a(231,e,typeof n));return n}function Fn(t,e,n){(e=Un(t,n.dispatchConfig.phasedRegistrationNames[e]))&&(n._dispatchListeners=ie(n._dispatchListeners,e),n._dispatchInstances=ie(n._dispatchInstances,t))}function jn(t){if(t&&t.dispatchConfig.phasedRegistrationNames){for(var e=t._targetInst,n=[];e;)n.push(e),e=Dn(e);for(e=n.length;0this.eventPool.length&&this.eventPool.push(t)}function Jn(t){t.eventPool=[],t.getPooled=Kn,t.release=Zn}i(Gn.prototype,{preventDefault:function(){this.defaultPrevented=!0;var t=this.nativeEvent;t&&(t.preventDefault?t.preventDefault():"unknown"!=typeof t.returnValue&&(t.returnValue=!1),this.isDefaultPrevented=Xn)},stopPropagation:function(){var t=this.nativeEvent;t&&(t.stopPropagation?t.stopPropagation():"unknown"!=typeof t.cancelBubble&&(t.cancelBubble=!0),this.isPropagationStopped=Xn)},persist:function(){this.isPersistent=Xn},isPersistent:Qn,destructor:function(){var t,e=this.constructor.Interface;for(t in e)this[t]=null;this.nativeEvent=this._targetInst=this.dispatchConfig=null,this.isPropagationStopped=this.isDefaultPrevented=Qn,this._dispatchInstances=this._dispatchListeners=null}}),Gn.Interface={type:null,target:null,currentTarget:function(){return null},eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null},Gn.extend=function(t){function e(){}function n(){return r.apply(this,arguments)}var r=this;e.prototype=r.prototype;var o=new e;return i(o,n.prototype),n.prototype=o,n.prototype.constructor=n,n.Interface=i({},r.Interface,t),n.extend=r.extend,Jn(n),n},Jn(Gn);var tr=Gn.extend({data:null}),er=Gn.extend({data:null}),nr=[9,13,27,32],rr=S&&"CompositionEvent"in window,ir=null;S&&"documentMode"in document&&(ir=document.documentMode);var or=S&&"TextEvent"in window&&!ir,ar=S&&(!rr||ir&&8=ir),ur=String.fromCharCode(32),cr={beforeInput:{phasedRegistrationNames:{bubbled:"onBeforeInput",captured:"onBeforeInputCapture"},dependencies:["compositionend","keypress","textInput","paste"]},compositionEnd:{phasedRegistrationNames:{bubbled:"onCompositionEnd",captured:"onCompositionEndCapture"},dependencies:"blur compositionend keydown keypress keyup mousedown".split(" ")},compositionStart:{phasedRegistrationNames:{bubbled:"onCompositionStart",captured:"onCompositionStartCapture"},dependencies:"blur compositionstart keydown keypress keyup mousedown".split(" ")},compositionUpdate:{phasedRegistrationNames:{bubbled:"onCompositionUpdate",captured:"onCompositionUpdateCapture"},dependencies:"blur compositionupdate keydown keypress keyup mousedown".split(" ")}},lr=!1;function fr(t,e){switch(t){case"keyup":return-1!==nr.indexOf(e.keyCode);case"keydown":return 229!==e.keyCode;case"keypress":case"mousedown":case"blur":return!0;default:return!1}}function sr(t){return"object"==typeof(t=t.detail)&&"data"in t?t.data:null}var hr=!1;var dr={eventTypes:cr,extractEvents:function(t,e,n,r){var i;if(rr)t:{switch(t){case"compositionstart":var o=cr.compositionStart;break t;case"compositionend":o=cr.compositionEnd;break t;case"compositionupdate":o=cr.compositionUpdate;break t}o=void 0}else hr?fr(t,n)&&(o=cr.compositionEnd):"keydown"===t&&229===n.keyCode&&(o=cr.compositionStart);return o?(ar&&"ko"!==n.locale&&(hr||o!==cr.compositionStart?o===cr.compositionEnd&&hr&&(i=$n()):(Wn="value"in(Hn=r)?Hn.value:Hn.textContent,hr=!0)),o=tr.getPooled(o,e,n,r),i?o.data=i:null!==(i=sr(n))&&(o.data=i),Vn(o),i=o):i=null,(t=or?function(t,e){switch(t){case"compositionend":return sr(e);case"keypress":return 32!==e.which?null:(lr=!0,ur);case"textInput":return(t=e.data)===ur&&lr?null:t;default:return null}}(t,n):function(t,e){if(hr)return"compositionend"===t||!rr&&fr(t,e)?(t=$n(),Yn=Wn=Hn=null,hr=!1,t):null;switch(t){case"paste":default:return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1=document.documentMode,$r={select:{phasedRegistrationNames:{bubbled:"onSelect",captured:"onSelectCapture"},dependencies:"blur contextmenu dragend focus keydown keyup mousedown mouseup selectionchange".split(" ")}},Xr=null,Qr=null,Gr=null,Kr=!1;function Zr(t,e){var n=e.window===e?e.document:9===e.nodeType?e:e.ownerDocument;return Kr||null==Xr||Xr!==sn(n)?null:("selectionStart"in(n=Xr)&&gn(n)?n={start:n.selectionStart,end:n.selectionEnd}:n={anchorNode:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset},Gr&&Wr(Gr,n)?null:(Gr=n,(t=Gn.getPooled($r.select,Qr,t,e)).type="select",t.target=Xr,Vn(t),t))}var Jr={eventTypes:$r,extractEvents:function(t,e,n,r,i,o){if(!(o=!(i=o||(r.window===r?r.document:9===r.nodeType?r:r.ownerDocument)))){t:{i=Jt(i),o=M.onSelect;for(var a=0;adi||(t.current=hi[di],hi[di]=null,di--)}function vi(t,e){di++,hi[di]=t.current,t.current=e}var gi={},yi={current:gi},_i={current:!1},mi=gi;function bi(t,e){var n=t.type.contextTypes;if(!n)return gi;var r=t.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===e)return r.__reactInternalMemoizedMaskedChildContext;var i,o={};for(i in n)o[i]=e[i];return r&&((t=t.stateNode).__reactInternalMemoizedUnmaskedChildContext=e,t.__reactInternalMemoizedMaskedChildContext=o),o}function wi(t){return null!=(t=t.childContextTypes)}function xi(){pi(_i),pi(yi)}function Ei(t,e,n){if(yi.current!==gi)throw Error(a(168));vi(yi,e),vi(_i,n)}function ki(t,e,n){var r=t.stateNode;if(t=e.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var o in r=r.getChildContext())if(!(o in t))throw Error(a(108,gt(e)||"Unknown",o));return i({},n,{},r)}function Mi(t){return t=(t=t.stateNode)&&t.__reactInternalMemoizedMergedChildContext||gi,mi=yi.current,vi(yi,t),vi(_i,_i.current),!0}function Ti(t,e,n){var r=t.stateNode;if(!r)throw Error(a(169));n?(t=ki(t,e,mi),r.__reactInternalMemoizedMergedChildContext=t,pi(_i),pi(yi),vi(yi,t)):pi(_i),vi(_i,n)}var Si=o.unstable_runWithPriority,Ci=o.unstable_scheduleCallback,Ni=o.unstable_cancelCallback,Ai=o.unstable_requestPaint,Pi=o.unstable_now,zi=o.unstable_getCurrentPriorityLevel,Ii=o.unstable_ImmediatePriority,Ri=o.unstable_UserBlockingPriority,Li=o.unstable_NormalPriority,Oi=o.unstable_LowPriority,Di=o.unstable_IdlePriority,Ui={},Fi=o.unstable_shouldYield,ji=void 0!==Ai?Ai:function(){},qi=null,Bi=null,Vi=!1,Hi=Pi(),Wi=1e4>Hi?Pi:function(){return Pi()-Hi};function Yi(){switch(zi()){case Ii:return 99;case Ri:return 98;case Li:return 97;case Oi:return 96;case Di:return 95;default:throw Error(a(332))}}function $i(t){switch(t){case 99:return Ii;case 98:return Ri;case 97:return Li;case 96:return Oi;case 95:return Di;default:throw Error(a(332))}}function Xi(t,e){return t=$i(t),Si(t,e)}function Qi(t,e,n){return t=$i(t),Ci(t,e,n)}function Gi(t){return null===qi?(qi=[t],Bi=Ci(Ii,Zi)):qi.push(t),Ui}function Ki(){if(null!==Bi){var t=Bi;Bi=null,Ni(t)}Zi()}function Zi(){if(!Vi&&null!==qi){Vi=!0;var t=0;try{var e=qi;Xi(99,(function(){for(;t=e&&(Oa=!0),t.firstContext=null)}function lo(t,e){if(io!==t&&!1!==e&&0!==e)if("number"==typeof e&&1073741823!==e||(io=t,e=1073741823),e={context:t,observedBits:e,next:null},null===ro){if(null===no)throw Error(a(308));ro=e,no.dependencies={expirationTime:0,firstContext:e,responders:null}}else ro=ro.next=e;return t._currentValue}var fo=!1;function so(t){t.updateQueue={baseState:t.memoizedState,baseQueue:null,shared:{pending:null},effects:null}}function ho(t,e){t=t.updateQueue,e.updateQueue===t&&(e.updateQueue={baseState:t.baseState,baseQueue:t.baseQueue,shared:t.shared,effects:t.effects})}function po(t,e){return(t={expirationTime:t,suspenseConfig:e,tag:0,payload:null,callback:null,next:null}).next=t}function vo(t,e){if(null!==(t=t.updateQueue)){var n=(t=t.shared).pending;null===n?e.next=e:(e.next=n.next,n.next=e),t.pending=e}}function go(t,e){var n=t.alternate;null!==n&&ho(n,t),null===(n=(t=t.updateQueue).baseQueue)?(t.baseQueue=e.next=e,e.next=e):(e.next=n.next,n.next=e)}function yo(t,e,n,r){var o=t.updateQueue;fo=!1;var a=o.baseQueue,u=o.shared.pending;if(null!==u){if(null!==a){var c=a.next;a.next=u.next,u.next=c}a=u,o.shared.pending=null,null!==(c=t.alternate)&&(null!==(c=c.updateQueue)&&(c.baseQueue=u))}if(null!==a){c=a.next;var l=o.baseState,f=0,s=null,h=null,d=null;if(null!==c)for(var p=c;;){if((u=p.expirationTime)f&&(f=u)}else{null!==d&&(d=d.next={expirationTime:1073741823,suspenseConfig:p.suspenseConfig,tag:p.tag,payload:p.payload,callback:p.callback,next:null}),xc(u,p.suspenseConfig);t:{var g=t,y=p;switch(u=e,v=n,y.tag){case 1:if("function"==typeof(g=y.payload)){l=g.call(v,l,u);break t}l=g;break t;case 3:g.effectTag=-4097&g.effectTag|64;case 0:if(null==(u="function"==typeof(g=y.payload)?g.call(v,l,u):g))break t;l=i({},l,u);break t;case 2:fo=!0}}null!==p.callback&&(t.effectTag|=32,null===(u=o.effects)?o.effects=[p]:u.push(p))}if(null===(p=p.next)||p===c){if(null===(u=o.shared.pending))break;p=a.next=u.next,u.next=c,o.baseQueue=a=u,o.shared.pending=null}}null===d?s=l:d.next=h,o.baseState=s,o.baseQueue=d,Ec(f),t.expirationTime=f,t.memoizedState=l}}function _o(t,e,n){if(t=e.effects,e.effects=null,null!==t)for(e=0;ev?(g=s,s=null):g=s.sibling;var y=d(i,s,u[v],c);if(null===y){null===s&&(s=g);break}t&&s&&null===y.alternate&&e(i,s),a=o(y,a,v),null===f?l=y:f.sibling=y,f=y,s=g}if(v===u.length)return n(i,s),l;if(null===s){for(;vg?(y=v,v=null):y=v.sibling;var m=d(i,v,_.value,l);if(null===m){null===v&&(v=y);break}t&&v&&null===m.alternate&&e(i,v),u=o(m,u,g),null===s?f=m:s.sibling=m,s=m,v=y}if(_.done)return n(i,v),f;if(null===v){for(;!_.done;g++,_=c.next())null!==(_=h(i,_.value,l))&&(u=o(_,u,g),null===s?f=_:s.sibling=_,s=_);return f}for(v=r(i,v);!_.done;g++,_=c.next())null!==(_=p(v,i,g,_.value,l))&&(t&&null!==_.alternate&&v.delete(null===_.key?g:_.key),u=o(_,u,g),null===s?f=_:s.sibling=_,s=_);return t&&v.forEach((function(t){return e(i,t)})),f}return function(t,r,o,c){var l="object"==typeof o&&null!==o&&o.type===nt&&null===o.key;l&&(o=o.props.children);var f="object"==typeof o&&null!==o;if(f)switch(o.$$typeof){case tt:t:{for(f=o.key,l=r;null!==l;){if(l.key===f){if(7===l.tag){if(o.type===nt){n(t,l.sibling),(r=i(l,o.props.children)).return=t,t=r;break t}}else if(l.elementType===o.type){n(t,l.sibling),(r=i(l,o.props)).ref=Co(t,l,o),r.return=t,t=r;break t}n(t,l);break}e(t,l),l=l.sibling}o.type===nt?((r=Wc(o.props.children,t.mode,c,o.key)).return=t,t=r):((c=Hc(o.type,o.key,o.props,null,t.mode,c)).ref=Co(t,r,o),c.return=t,t=c)}return u(t);case et:t:{for(l=o.key;null!==r;){if(r.key===l){if(4===r.tag&&r.stateNode.containerInfo===o.containerInfo&&r.stateNode.implementation===o.implementation){n(t,r.sibling),(r=i(r,o.children||[])).return=t,t=r;break t}n(t,r);break}e(t,r),r=r.sibling}(r=$c(o,t.mode,c)).return=t,t=r}return u(t)}if("string"==typeof o||"number"==typeof o)return o=""+o,null!==r&&6===r.tag?(n(t,r.sibling),(r=i(r,o)).return=t,t=r):(n(t,r),(r=Yc(o,t.mode,c)).return=t,t=r),u(t);if(So(o))return v(t,r,o,c);if(vt(o))return g(t,r,o,c);if(f&&No(t,o),void 0===o&&!l)switch(t.tag){case 1:case 0:throw t=t.type,Error(a(152,t.displayName||t.name||"Component"))}return n(t,r)}}var Po=Ao(!0),zo=Ao(!1),Io={},Ro={current:Io},Lo={current:Io},Oo={current:Io};function Do(t){if(t===Io)throw Error(a(174));return t}function Uo(t,e){switch(vi(Oo,e),vi(Lo,t),vi(Ro,Io),t=e.nodeType){case 9:case 11:e=(e=e.documentElement)?e.namespaceURI:Dt(null,"");break;default:e=Dt(e=(t=8===t?e.parentNode:e).namespaceURI||null,t=t.tagName)}pi(Ro),vi(Ro,e)}function Fo(){pi(Ro),pi(Lo),pi(Oo)}function jo(t){Do(Oo.current);var e=Do(Ro.current),n=Dt(e,t.type);e!==n&&(vi(Lo,t),vi(Ro,n))}function qo(t){Lo.current===t&&(pi(Ro),pi(Lo))}var Bo={current:0};function Vo(t){for(var e=t;null!==e;){if(13===e.tag){var n=e.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||n.data===mn||n.data===bn))return e}else if(19===e.tag&&void 0!==e.memoizedProps.revealOrder){if(64&e.effectTag)return e}else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break;for(;null===e.sibling;){if(null===e.return||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}function Ho(t,e){return{responder:t,props:e}}var Wo=G.ReactCurrentDispatcher,Yo=G.ReactCurrentBatchConfig,$o=0,Xo=null,Qo=null,Go=null,Ko=!1;function Zo(){throw Error(a(321))}function Jo(t,e){if(null===e)return!1;for(var n=0;no))throw Error(a(301));o+=1,Go=Qo=null,e.updateQueue=null,Wo.current=Ma,t=n(r,i)}while(e.expirationTime===$o)}if(Wo.current=xa,e=null!==Qo&&null!==Qo.next,$o=0,Go=Qo=Xo=null,Ko=!1,e)throw Error(a(300));return t}function ea(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===Go?Xo.memoizedState=Go=t:Go=Go.next=t,Go}function na(){if(null===Qo){var t=Xo.alternate;t=null!==t?t.memoizedState:null}else t=Qo.next;var e=null===Go?Xo.memoizedState:Go.next;if(null!==e)Go=e,Qo=t;else{if(null===t)throw Error(a(310));t={memoizedState:(Qo=t).memoizedState,baseState:Qo.baseState,baseQueue:Qo.baseQueue,queue:Qo.queue,next:null},null===Go?Xo.memoizedState=Go=t:Go=Go.next=t}return Go}function ra(t,e){return"function"==typeof e?e(t):e}function ia(t){var e=na(),n=e.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=t;var r=Qo,i=r.baseQueue,o=n.pending;if(null!==o){if(null!==i){var u=i.next;i.next=o.next,o.next=u}r.baseQueue=i=o,n.pending=null}if(null!==i){i=i.next,r=r.baseState;var c=u=o=null,l=i;do{var f=l.expirationTime;if(f<$o){var s={expirationTime:l.expirationTime,suspenseConfig:l.suspenseConfig,action:l.action,eagerReducer:l.eagerReducer,eagerState:l.eagerState,next:null};null===c?(u=c=s,o=r):c=c.next=s,f>Xo.expirationTime&&(Xo.expirationTime=f,Ec(f))}else null!==c&&(c=c.next={expirationTime:1073741823,suspenseConfig:l.suspenseConfig,action:l.action,eagerReducer:l.eagerReducer,eagerState:l.eagerState,next:null}),xc(f,l.suspenseConfig),r=l.eagerReducer===t?l.eagerState:t(r,l.action);l=l.next}while(null!==l&&l!==i);null===c?o=r:c.next=u,Vr(r,e.memoizedState)||(Oa=!0),e.memoizedState=r,e.baseState=o,e.baseQueue=c,n.lastRenderedState=r}return[e.memoizedState,n.dispatch]}function oa(t){var e=na(),n=e.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=t;var r=n.dispatch,i=n.pending,o=e.memoizedState;if(null!==i){n.pending=null;var u=i=i.next;do{o=t(o,u.action),u=u.next}while(u!==i);Vr(o,e.memoizedState)||(Oa=!0),e.memoizedState=o,null===e.baseQueue&&(e.baseState=o),n.lastRenderedState=o}return[o,r]}function aa(t){var e=ea();return"function"==typeof t&&(t=t()),e.memoizedState=e.baseState=t,t=(t=e.queue={pending:null,dispatch:null,lastRenderedReducer:ra,lastRenderedState:t}).dispatch=wa.bind(null,Xo,t),[e.memoizedState,t]}function ua(t,e,n,r){return t={tag:t,create:e,destroy:n,deps:r,next:null},null===(e=Xo.updateQueue)?(e={lastEffect:null},Xo.updateQueue=e,e.lastEffect=t.next=t):null===(n=e.lastEffect)?e.lastEffect=t.next=t:(r=n.next,n.next=t,t.next=r,e.lastEffect=t),t}function ca(){return na().memoizedState}function la(t,e,n,r){var i=ea();Xo.effectTag|=t,i.memoizedState=ua(1|e,n,void 0,void 0===r?null:r)}function fa(t,e,n,r){var i=na();r=void 0===r?null:r;var o=void 0;if(null!==Qo){var a=Qo.memoizedState;if(o=a.destroy,null!==r&&Jo(r,a.deps))return void ua(e,n,o,r)}Xo.effectTag|=t,i.memoizedState=ua(1|e,n,o,r)}function sa(t,e){return la(516,4,t,e)}function ha(t,e){return fa(516,4,t,e)}function da(t,e){return fa(4,2,t,e)}function pa(t,e){return"function"==typeof e?(t=t(),e(t),function(){e(null)}):null!=e?(t=t(),e.current=t,function(){e.current=null}):void 0}function va(t,e,n){return n=null!=n?n.concat([t]):null,fa(4,2,pa.bind(null,e,t),n)}function ga(){}function ya(t,e){return ea().memoizedState=[t,void 0===e?null:e],t}function _a(t,e){var n=na();e=void 0===e?null:e;var r=n.memoizedState;return null!==r&&null!==e&&Jo(e,r[1])?r[0]:(n.memoizedState=[t,e],t)}function ma(t,e){var n=na();e=void 0===e?null:e;var r=n.memoizedState;return null!==r&&null!==e&&Jo(e,r[1])?r[0]:(t=t(),n.memoizedState=[t,e],t)}function ba(t,e,n){var r=Yi();Xi(98>r?98:r,(function(){t(!0)})),Xi(97<\/script>",t=t.removeChild(t.firstChild)):"string"==typeof r.is?t=c.createElement(o,{is:r.is}):(t=c.createElement(o),"select"===o&&(c=t,r.multiple?c.multiple=!0:r.size&&(c.size=r.size))):t=c.createElementNS(t,o),t[An]=e,t[Pn]=r,Ya(t,e,!1,!1),e.stateNode=t,c=un(o,r),o){case"iframe":case"object":case"embed":Xe("load",t),l=r;break;case"video":case"audio":for(l=0;lr.tailExpiration&&1e)&&oc.set(t,e))}}function hc(t,e){t.expirationTime=(t=n>(t=t.nextKnownPendingLevel)?n:t)&&e!==t?0:t}function pc(t){if(0!==t.lastExpiredTime)t.callbackExpirationTime=1073741823,t.callbackPriority=99,t.callbackNode=Gi(gc.bind(null,t));else{var e=dc(t),n=t.callbackNode;if(0===e)null!==n&&(t.callbackNode=null,t.callbackExpirationTime=0,t.callbackPriority=90);else{var r=lc();if(1073741823===e?r=99:1===e||2===e?r=95:r=0>=(r=10*(1073741821-e)-10*(1073741821-r))?99:250>=r?98:5250>=r?97:95,null!==n){var i=t.callbackPriority;if(t.callbackExpirationTime===e&&i>=r)return;n!==Ui&&Ni(n)}t.callbackExpirationTime=e,t.callbackPriority=r,e=1073741823===e?Gi(gc.bind(null,t)):Qi(r,vc.bind(null,t),{timeout:10*(1073741821-e)-Wi()}),t.callbackNode=e}}}function vc(t,e){if(cc=0,e)return Zc(t,e=lc()),pc(t),null;var n=dc(t);if(0!==n){if(e=t.callbackNode,(Fu&(Pu|zu))!==Nu)throw Error(a(327));if(zc(),t===ju&&n===Bu||mc(t,n),null!==qu){var r=Fu;Fu|=Pu;for(var i=wc();;)try{Mc();break}catch(e){bc(t,e)}if(oo(),Fu=r,Su.current=i,Vu===Ru)throw e=Hu,mc(t,n),Gc(t,n),pc(t),e;if(null===qu)switch(i=t.finishedWork=t.current.alternate,t.finishedExpirationTime=n,r=Vu,ju=null,r){case Iu:case Ru:throw Error(a(345));case Lu:Zc(t,2=n){t.lastPingedTime=n,mc(t,n);break}}if(0!==(o=dc(t))&&o!==n)break;if(0!==r&&r!==n){t.lastPingedTime=r;break}t.timeoutHandle=Mn(Nc.bind(null,t),i);break}Nc(t);break;case Du:if(Gc(t,n),n===(r=t.lastSuspendedTime)&&(t.nextKnownPendingLevel=Cc(i)),Qu&&(0===(i=t.lastPingedTime)||i>=n)){t.lastPingedTime=n,mc(t,n);break}if(0!==(i=dc(t))&&i!==n)break;if(0!==r&&r!==n){t.lastPingedTime=r;break}if(1073741823!==Yu?r=10*(1073741821-Yu)-Wi():1073741823===Wu?r=0:(r=10*(1073741821-Wu)-5e3,0>(r=(i=Wi())-r)&&(r=0),(n=10*(1073741821-n)-i)<(r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Tu(r/1960))-r)&&(r=n)),10=(r=0|u.busyMinDurationMs)?r=0:(i=0|u.busyDelayMs,r=(o=Wi()-(10*(1073741821-o)-(0|u.timeoutMs||5e3)))<=i?0:i+r-o),10 component higher in the tree to provide a loading indicator or placeholder to display."+yt(a))}Vu!==Uu&&(Vu=Lu),u=ou(u,a),s=o;do{switch(s.tag){case 3:c=u,s.effectTag|=4096,s.expirationTime=e,go(s,Eu(s,c,e));break t;case 1:c=u;var b=s.type,w=s.stateNode;if(!(64&s.effectTag||"function"!=typeof b.getDerivedStateFromError&&(null===w||"function"!=typeof w.componentDidCatch||null!==ec&&ec.has(w)))){s.effectTag|=4096,s.expirationTime=e,go(s,ku(s,c,e));break t}}s=s.return}while(null!==s)}qu=Sc(qu)}catch(t){e=t;continue}break}}function wc(){var t=Su.current;return Su.current=xa,null===t?xa:t}function xc(t,e){tXu&&(Xu=t)}function kc(){for(;null!==qu;)qu=Tc(qu)}function Mc(){for(;null!==qu&&!Fi();)qu=Tc(qu)}function Tc(t){var e=Mu(t.alternate,t,Bu);return t.memoizedProps=t.pendingProps,null===e&&(e=Sc(t)),Cu.current=null,e}function Sc(t){qu=t;do{var e=qu.alternate;if(t=qu.return,2048&qu.effectTag){if(null!==(e=iu(qu)))return e.effectTag&=2047,e;null!==t&&(t.firstEffect=t.lastEffect=null,t.effectTag|=2048)}else{if(e=ru(e,qu,Bu),1===Bu||1!==qu.childExpirationTime){for(var n=0,r=qu.child;null!==r;){var i=r.expirationTime,o=r.childExpirationTime;i>n&&(n=i),o>n&&(n=o),r=r.sibling}qu.childExpirationTime=n}if(null!==e)return e;null!==t&&!(2048&t.effectTag)&&(null===t.firstEffect&&(t.firstEffect=qu.firstEffect),null!==qu.lastEffect&&(null!==t.lastEffect&&(t.lastEffect.nextEffect=qu.firstEffect),t.lastEffect=qu.lastEffect),1(t=t.childExpirationTime)?e:t}function Nc(t){var e=Yi();return Xi(99,Ac.bind(null,t,e)),null}function Ac(t,e){do{zc()}while(null!==rc);if((Fu&(Pu|zu))!==Nu)throw Error(a(327));var n=t.finishedWork,r=t.finishedExpirationTime;if(null===n)return null;if(t.finishedWork=null,t.finishedExpirationTime=0,n===t.current)throw Error(a(177));t.callbackNode=null,t.callbackExpirationTime=0,t.callbackPriority=90,t.nextKnownPendingLevel=0;var i=Cc(n);if(t.firstPendingTime=i,r<=t.lastSuspendedTime?t.firstSuspendedTime=t.lastSuspendedTime=t.nextKnownPendingLevel=0:r<=t.firstSuspendedTime&&(t.firstSuspendedTime=r-1),r<=t.lastPingedTime&&(t.lastPingedTime=0),r<=t.lastExpiredTime&&(t.lastExpiredTime=0),t===ju&&(qu=ju=null,Bu=0),1c&&(f=c,c=u,u=f),f=dn(b,u),s=dn(b,c),f&&s&&(1!==x.rangeCount||x.anchorNode!==f.node||x.anchorOffset!==f.offset||x.focusNode!==s.node||x.focusOffset!==s.offset)&&((w=w.createRange()).setStart(f.node,f.offset),x.removeAllRanges(),u>c?(x.addRange(w),x.extend(s.node,s.offset)):(w.setEnd(s.node,s.offset),x.addRange(w))))),w=[];for(x=b;x=x.parentNode;)1===x.nodeType&&w.push({element:x,left:x.scrollLeft,top:x.scrollTop});for("function"==typeof b.focus&&b.focus(),b=0;b=n?Ka(t,e,n):(vi(Bo,1&Bo.current),null!==(e=eu(t,e,n))?e.sibling:null);vi(Bo,1&Bo.current);break;case 19:if(r=e.childExpirationTime>=n,64&t.effectTag){if(r)return tu(t,e,n);e.effectTag|=64}if(null!==(i=e.memoizedState)&&(i.rendering=null,i.tail=null),vi(Bo,Bo.current),!r)return null}return eu(t,e,n)}Oa=!1}}else Oa=!1;switch(e.expirationTime=0,e.tag){case 2:if(r=e.type,null!==t&&(t.alternate=null,e.alternate=null,e.effectTag|=2),t=e.pendingProps,i=bi(e,yi.current),co(e,n),i=ta(null,e,r,t,i,n),e.effectTag|=1,"object"==typeof i&&null!==i&&"function"==typeof i.render&&void 0===i.$$typeof){if(e.tag=1,e.memoizedState=null,e.updateQueue=null,wi(r)){var o=!0;Mi(e)}else o=!1;e.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,so(e);var u=r.getDerivedStateFromProps;"function"==typeof u&&wo(e,r,u,t),i.updater=xo,e.stateNode=i,i._reactInternalFiber=e,To(e,r,t,n),e=Ha(null,e,r,!0,o,n)}else e.tag=0,Da(null,e,i,n),e=e.child;return e;case 16:t:{if(i=e.elementType,null!==t&&(t.alternate=null,e.alternate=null,e.effectTag|=2),t=e.pendingProps,function(t){if(-1===t._status){t._status=0;var e=t._ctor;e=e(),t._result=e,e.then((function(e){0===t._status&&(e=e.default,t._status=1,t._result=e)}),(function(e){0===t._status&&(t._status=2,t._result=e)}))}}(i),1!==i._status)throw i._result;switch(i=i._result,e.type=i,o=e.tag=function(t){if("function"==typeof t)return Bc(t)?1:0;if(null!=t){if((t=t.$$typeof)===ct)return 11;if(t===st)return 14}return 2}(i),t=to(i,t),o){case 0:e=Ba(null,e,i,t,n);break t;case 1:e=Va(null,e,i,t,n);break t;case 11:e=Ua(null,e,i,t,n);break t;case 14:e=Fa(null,e,i,to(i.type,t),r,n);break t}throw Error(a(306,i,""))}return e;case 0:return r=e.type,i=e.pendingProps,Ba(t,e,r,i=e.elementType===r?i:to(r,i),n);case 1:return r=e.type,i=e.pendingProps,Va(t,e,r,i=e.elementType===r?i:to(r,i),n);case 3:if(Wa(e),r=e.updateQueue,null===t||null===r)throw Error(a(282));if(r=e.pendingProps,i=null!==(i=e.memoizedState)?i.element:null,ho(t,e),yo(e,r,null,n),(r=e.memoizedState.element)===i)Ra(),e=eu(t,e,n);else{if((i=e.stateNode.hydrate)&&(Sa=Sn(e.stateNode.containerInfo.firstChild),Ta=e,i=Ca=!0),i)for(n=zo(e,null,r,n),e.child=n;n;)n.effectTag=-3&n.effectTag|1024,n=n.sibling;else Da(t,e,r,n),Ra();e=e.child}return e;case 5:return jo(e),null===t&&Pa(e),r=e.type,i=e.pendingProps,o=null!==t?t.memoizedProps:null,u=i.children,kn(r,i)?u=null:null!==o&&kn(r,o)&&(e.effectTag|=16),qa(t,e),4&e.mode&&1!==n&&i.hidden?(e.expirationTime=e.childExpirationTime=1,e=null):(Da(t,e,u,n),e=e.child),e;case 6:return null===t&&Pa(e),null;case 13:return Ka(t,e,n);case 4:return Uo(e,e.stateNode.containerInfo),r=e.pendingProps,null===t?e.child=Po(e,null,r,n):Da(t,e,r,n),e.child;case 11:return r=e.type,i=e.pendingProps,Ua(t,e,r,i=e.elementType===r?i:to(r,i),n);case 7:return Da(t,e,e.pendingProps,n),e.child;case 8:case 12:return Da(t,e,e.pendingProps.children,n),e.child;case 10:t:{r=e.type._context,i=e.pendingProps,u=e.memoizedProps,o=i.value;var c=e.type._context;if(vi(eo,c._currentValue),c._currentValue=o,null!==u)if(c=u.value,0===(o=Vr(c,o)?0:0|("function"==typeof r._calculateChangedBits?r._calculateChangedBits(c,o):1073741823))){if(u.children===i.children&&!_i.current){e=eu(t,e,n);break t}}else for(null!==(c=e.child)&&(c.return=e);null!==c;){var l=c.dependencies;if(null!==l){u=c.child;for(var f=l.firstContext;null!==f;){if(f.context===r&&f.observedBits&o){1===c.tag&&((f=po(n,null)).tag=2,vo(c,f)),c.expirationTime=e&&t<=e}function Gc(t,e){var n=t.firstSuspendedTime,r=t.lastSuspendedTime;ne||0===n)&&(t.lastSuspendedTime=e),e<=t.lastPingedTime&&(t.lastPingedTime=0),e<=t.lastExpiredTime&&(t.lastExpiredTime=0)}function Kc(t,e){e>t.firstPendingTime&&(t.firstPendingTime=e);var n=t.firstSuspendedTime;0!==n&&(e>=n?t.firstSuspendedTime=t.lastSuspendedTime=t.nextKnownPendingLevel=0:e>=t.lastSuspendedTime&&(t.lastSuspendedTime=e+1),e>t.nextKnownPendingLevel&&(t.nextKnownPendingLevel=e))}function Zc(t,e){var n=t.lastExpiredTime;(0===n||n>e)&&(t.lastExpiredTime=e)}function Jc(t,e,n,r){var i=e.current,o=lc(),u=mo.suspense;o=fc(o,i,u);t:if(n){e:{if(te(n=n._reactInternalFiber)!==n||1!==n.tag)throw Error(a(170));var c=n;do{switch(c.tag){case 3:c=c.stateNode.context;break e;case 1:if(wi(c.type)){c=c.stateNode.__reactInternalMemoizedMergedChildContext;break e}}c=c.return}while(null!==c);throw Error(a(171))}if(1===n.tag){var l=n.type;if(wi(l)){n=ki(n,l,c);break t}}n=c}else n=gi;return null===e.context?e.context=n:e.pendingContext=n,(e=po(o,u)).payload={element:t},null!==(r=void 0===r?null:r)&&(e.callback=r),vo(i,e),sc(i,o),o}function tl(t){return(t=t.current).child?(t.child.tag,t.child.stateNode):null}function el(t,e){null!==(t=t.memoizedState)&&null!==t.dehydrated&&t.retryTime{"use strict";!function t(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(t){console.error(t)}}(),t.exports=n(2551)},5848:(t,e,n)=>{"use strict";t.exports=n(2911)},5287:(t,e,n)=>{"use strict";var r=n(5228),i="function"==typeof Symbol&&Symbol.for,o=i?Symbol.for("react.element"):60103,a=i?Symbol.for("react.portal"):60106,u=i?Symbol.for("react.fragment"):60107,c=i?Symbol.for("react.strict_mode"):60108,l=i?Symbol.for("react.profiler"):60114,f=i?Symbol.for("react.provider"):60109,s=i?Symbol.for("react.context"):60110,h=i?Symbol.for("react.forward_ref"):60112,d=i?Symbol.for("react.suspense"):60113,p=i?Symbol.for("react.memo"):60115,v=i?Symbol.for("react.lazy"):60116,g="function"==typeof Symbol&&Symbol.iterator;function y(t){for(var e="https://reactjs.org/docs/error-decoder.html?invariant="+t,n=1;nA.length&&A.push(t)}function I(t,e,n,r){var i=typeof t;"undefined"!==i&&"boolean"!==i||(t=null);var u=!1;if(null===t)u=!0;else switch(i){case"string":case"number":u=!0;break;case"object":switch(t.$$typeof){case o:case a:u=!0}}if(u)return n(r,t,""===e?"."+L(t,0):e),1;if(u=0,e=""===e?".":e+":",Array.isArray(t))for(var c=0;c{"use strict";t.exports=n(5287)},7463:(t,e)=>{"use strict";var n,r,i,o,a;if("undefined"==typeof window||"function"!=typeof MessageChannel){var u=null,c=null,l=function(){if(null!==u)try{var t=e.unstable_now();u(!0,t),u=null}catch(t){throw setTimeout(l,0),t}},f=Date.now();e.unstable_now=function(){return Date.now()-f},n=function(t){null!==u?setTimeout(n,0,t):(u=t,setTimeout(l,0))},r=function(t,e){c=setTimeout(t,e)},i=function(){clearTimeout(c)},o=function(){return!1},a=e.unstable_forceFrameRate=function(){}}else{var s=window.performance,h=window.Date,d=window.setTimeout,p=window.clearTimeout;if("undefined"!=typeof console){var v=window.cancelAnimationFrame;"function"!=typeof window.requestAnimationFrame&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"),"function"!=typeof v&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills")}if("object"==typeof s&&"function"==typeof s.now)e.unstable_now=function(){return s.now()};else{var g=h.now();e.unstable_now=function(){return h.now()-g}}var y=!1,_=null,m=-1,b=5,w=0;o=function(){return e.unstable_now()>=w},a=function(){},e.unstable_forceFrameRate=function(t){0>t||125>>1,i=t[r];if(!(void 0!==i&&0