All Downloads are FREE. Search and download functionalities are using the official Maven repository.

webapp.dist.plan.js Maven / Gradle / Ivy

There is a newer version: 465
Show newest version
/*! For license information please see plan.js.LICENSE.txt */
(()=>{var t={6774:(t,n,e)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.LivePlan=void 0;var r=function(){function t(t,n){for(var e=0;e"+this.props.name+""+e},i.default.createElement("strong",null,this.props.name+t),i.default.createElement("div",null,(0,c.truncateString)(e,35)))}}]),n}(i.default.Component);n.LivePlan=function(t){function n(t){h(this,n);var e=d(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,t));return e.state={initialized:!1,ended:!1,query:null,graph:(0,c.initializeGraph)(),svg:null,render:new a.render},e}return p(n,t),r(n,[{key:"resetTimer",value:function(){clearTimeout(this.timeoutId),null!==this.state.query&&this.state.ended||(this.timeoutId=setTimeout(this.refreshLoop.bind(this),1e3))}},{key:"refreshLoop",value:function(){var t=this;clearTimeout(this.timeoutId),fetch("/ui/api/query/"+this.props.queryId).then((function(t){return t.json()})).then((function(n){t.setState({query:n,initialized:!0,ended:n.finalQueryInfo}),t.resetTimer()})).catch((function(){t.setState({initialized:!0}),t.resetTimer()}))}},{key:"componentDidMount",value:function(){this.refreshLoop.bind(this)(),new window.ClipboardJS(".copy-button")}},{key:"updateD3Stage",value:function(t,n,e){var r=t.stageId,a="stage-"+t.id+"-root",u=(0,c.getStageStateColor)(t);n.setNode(r,{style:"fill: "+u,labelStyle:"fill: #fff"});var l=o.default.renderToString(i.default.createElement(g,{key:t.id,stage:t}));n.setNode(a,{class:"stage-stats",label:l,labelType:"html"}),n.setParent(a,r),n.setEdge("node-"+t.root,a,{style:"visibility: hidden"}),t.nodes.forEach((function(t){var a="node-"+t.id,u=o.default.renderToString(i.default.createElement(v,t));n.setNode(a,{label:u,style:"fill: #fff",labelType:"html"}),n.setParent(a,r),t.sources.forEach((function(t){n.setEdge("node-"+t,a,{class:"plan-edge",arrowheadClass:"plan-arrowhead"})}));var l=t.descriptor.sourceFragmentIds;if(l){var s=l.replace("[","").replace("]","").split(", ");s.length>0&&(n.setNode(a,{label:"",shape:"circle"}),s.forEach((function(t){var r=e.get(t);if(r){var i=r.stageStats;n.setEdge("stage-"+t+"-root",a,{class:"plan-edge",style:"stroke-width: 4px",arrowheadClass:"plan-arrowhead",label:(0,c.parseAndFormatDataSize)(i.outputDataSize)+" / "+(0,c.formatRows)(i.outputPositions),labelStyle:"color: #fff; font-weight: bold; font-size: 24px;",labelType:"html"})}})))}}))}},{key:"updateD3Graph",value:function(){var t=this;if(this.state.svg){if(this.state.query){var e=this.state.graph,r=g.getStages(this.state.query);r.forEach((function(n){t.updateD3Stage(n,e,r)}));var i=u.select("#plan-canvas g");this.state.render(i,e);var o=this.state.svg;o.selectAll("g.cluster").on("click",n.handleStageClick);var a=parseInt(window.getComputedStyle(document.getElementById("live-plan"),null).getPropertyValue("width").replace(/px/,""))-50,l=parseInt(window.getComputedStyle(document.getElementById("live-plan"),null).getPropertyValue("height").replace(/px/,""))-50,s=e.graph().height+100,f=e.graph().width+100;if(this.state.ended){var h=Math.min(a/f,l/s),d=u.zoom().scaleExtent([h,1]).on("zoom",(function(){i.attr("transform",u.event.transform)}));o.call(d),o.call(d.transform,u.zoomIdentity.translate((a-e.graph().width*h)/2,20).scale(h)),o.attr("height",l),o.attr("width",a)}else o.attr("height",s),o.attr("width",f)}}else this.setState({svg:(0,c.initializeSvg)("#plan-canvas")})}},{key:"componentDidUpdate",value:function(){this.updateD3Graph(),$('[data-toggle="tooltip"]').tooltip()}},{key:"render",value:function(){var t=this.state.query;if(null===t||!1===this.state.initialized){var n=i.default.createElement("div",{className:"loader"},"Loading...");return this.state.initialized&&(n="Query not found"),i.default.createElement("div",{className:"row error-message"},i.default.createElement("div",{className:"col-xs-12"},i.default.createElement("h4",null,n)))}var e=null;t&&!t.outputStage&&(e=i.default.createElement("div",{className:"row error-message"},i.default.createElement("div",{className:"col-xs-12"},i.default.createElement("h4",null,"Live plan graph will appear automatically when query starts running."),i.default.createElement("div",{className:"loader"},"Loading..."))));var r=this.props.isEmbedded?null:i.default.createElement(l.QueryHeader,{query:t});return i.default.createElement("div",null,r,i.default.createElement("div",{className:"row"},i.default.createElement("div",{className:"col-xs-12"},e,i.default.createElement("div",{id:"live-plan",className:"graph-container"},i.default.createElement("div",{className:"pull-right"},this.state.ended?"Scroll to zoom.":"Zoom disabled while query is running."," Click stage to view additional statistics"),i.default.createElement("svg",{id:"plan-canvas"})))))}}],[{key:"handleStageClick",value:function(t){window.open("stage.html?"+t,"_blank")}}]),n}(i.default.Component)},5150:(t,n,e)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.PageTitle=void 0;var r,i=function(){function t(t,n){for(var e=0;e3e4)&&($("#no-connection-modal").modal(),t.setState({modalShown:!0}))}))}},{key:"resetTimer",value:function(){clearTimeout(this.timeoutId),this.timeoutId=setTimeout(this.refreshLoop.bind(this),1e3)}},{key:"componentDidMount",value:function(){this.refreshLoop.bind(this)()}},{key:"renderStatusLight",value:function(){return this.state.noConnection?this.state.lightShown?o.default.createElement("span",{className:"status-light status-light-red",id:"status-indicator"}):o.default.createElement("span",{className:"status-light",id:"status-indicator"}):o.default.createElement("span",{className:"status-light status-light-green",id:"status-indicator"})}},{key:"render",value:function(){var t=this.state.info;return t?o.default.createElement("div",null,o.default.createElement("nav",{className:"navbar"},o.default.createElement("div",{className:"container-fluid"},o.default.createElement("div",{className:"navbar-header"},o.default.createElement("table",null,o.default.createElement("tbody",null,o.default.createElement("tr",null,o.default.createElement("td",null,o.default.createElement("a",{href:"/ui/"},o.default.createElement("img",{src:"assets/logo.png"}))),o.default.createElement("td",null,o.default.createElement("span",{className:"navbar-brand"},this.props.title)))))),o.default.createElement("div",{id:"navbar",className:"navbar-collapse collapse"},o.default.createElement("ul",{className:"nav navbar-nav navbar-right"},o.default.createElement("li",null,o.default.createElement("span",{className:"navbar-cluster-info"},o.default.createElement("span",{className:"uppercase"},"Version"),o.default.createElement("br",null),o.default.createElement("span",{className:"text uppercase",id:"version-number"},t.nodeVersion.version))),o.default.createElement("li",null,o.default.createElement("span",{className:"navbar-cluster-info"},o.default.createElement("span",{className:"uppercase"},"Environment"),o.default.createElement("br",null),o.default.createElement("span",{className:"text uppercase",id:"environment"},t.environment))),o.default.createElement("li",null,o.default.createElement("span",{className:"navbar-cluster-info"},o.default.createElement("span",{className:"uppercase"},"Uptime"),o.default.createElement("br",null),o.default.createElement("span",{"data-toggle":"tooltip","data-placement":"bottom",title:"Connection status"},this.renderStatusLight())," ",o.default.createElement("span",{className:"text",id:"uptime"},t.uptime))),o.default.createElement("li",null,o.default.createElement("span",{className:"navbar-cluster-info"},o.default.createElement("span",{className:"text",id:"logout"},o.default.createElement("a",{className:"btn btn-logout",href:"logout"},"Log Out")))))))),o.default.createElement("div",{id:"no-connection-modal",className:"modal",tabIndex:"-1",role:"dialog"},o.default.createElement("div",{className:"modal-dialog modal-sm",role:"document"},o.default.createElement("div",{className:"modal-content"},o.default.createElement("div",{className:"row error-message"},o.default.createElement("div",{className:"col-xs-12"},o.default.createElement("br",null),o.default.createElement("h4",null,"Unable to connect to server"),o.default.createElement("p",null,this.state.errorText?"Error: "+this.state.errorText:null))))))):null}}]),n}(o.default.Component)},8685:(t,n,e)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.QueryHeader=void 0;var r,i=function(){function t(t,n){for(var e=0;e{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.GLYPHICON_HIGHLIGHT=n.GLYPHICON_DEFAULT=void 0,n.getQueryStateColor=function(t){switch(t.state){case"QUEUED":return u.QUEUED;case"PLANNING":return u.PLANNING;case"STARTING":case"FINISHING":case"RUNNING":return t.queryStats&&t.queryStats.fullyBlocked?u.BLOCKED:u.RUNNING;case"FAILED":switch(t.errorType){case"USER_ERROR":return"USER_CANCELED"===t.errorCode.name?u.CANCELED:u.USER_ERROR;case"EXTERNAL":return u.EXTERNAL_ERROR;case"INSUFFICIENT_RESOURCES":return u.INSUFFICIENT_RESOURCES;default:return u.UNKNOWN_ERROR}case"FINISHED":return u.FINISHED;default:return u.QUEUED}},n.getStageStateColor=function(t){switch(t.state){case"PLANNED":return u.QUEUED;case"SCHEDULING":case"SCHEDULING_SPLITS":case"SCHEDULED":return u.PLANNING;case"RUNNING":return t.stageStats&&t.stageStats.fullyBlocked?u.BLOCKED:u.RUNNING;case"FINISHED":return u.FINISHED;case"CANCELED":case"ABORTED":return u.CANCELED;case"FAILED":return u.UNKNOWN_ERROR;default:return"#b5b5b5"}},n.getHumanReadableState=c,n.getProgressBarPercentage=l,n.getProgressBarTitle=function(t,n){return t.queryStats.progressPercentage&&"RUNNING"===t.state?c(t,n)+" ("+l(t)+"%)":c(t,n)},n.isQueryEnded=function(t){return["FINISHED","FAILED","CANCELED"].indexOf(t.state)>-1},n.addToHistory=function(t,n){return 0===n.length?n.concat([t]):n.concat([t]).slice(Math.max(n.length-s,0))},n.addExponentiallyWeightedToHistory=function(t,n){if(0===n.length)return n.concat([t]);var e=t*f+n[n.length-1]*(1-f);return t<1&&(e=0),n.concat([e]).slice(Math.max(n.length-s,0))},n.initializeGraph=function(){return new r.graphlib.Graph({compound:!0}).setGraph({rankdir:"BT"}).setDefaultEdgeLabel((function(){return{}}))},n.initializeSvg=function(t){var n=i.select(t);return n.append("g"),n},n.getChildren=function(t){switch(t["@type"]){case"output":case"explainAnalyze":case"project":case"filter":case"aggregation":case"sort":case"markDistinct":case"window":case"rowNumber":case"topnRanking":case"limit":case"distinctlimit":case"topn":case"sample":case"tablewriter":case"delete":case"tableDelete":case"tablecommit":case"groupid":case"unnest":case"scalar":return[t.source];case"join":case"spatialjoin":return[t.left,t.right];case"semijoin":return[t.source,t.filteringSource];case"indexjoin":return[t.probeSource,t.indexSource];case"union":case"exchange":return t.sources;case"remoteSource":case"tablescan":case"values":case"indexsource":break;default:console.log("NOTE: Unhandled PlanNode: "+t["@type"])}return[]},n.truncateString=function(t,n){return t&&t.length>n?t.substring(0,n)+"...":t},n.getStageNumber=function(t){return Number.parseInt(t.slice(t.indexOf(".")+1,t.length))},n.getTaskIdSuffix=h,n.getTaskNumber=function(t){return Number.parseInt(h(h(t)))},n.getFirstParameter=function(t){var n=t.substring(1);return-1!==n.indexOf("&")?n.substring(0,n.indexOf("&")):n},n.getHostname=function(t){var n=new URL(t).hostname;return"["===n.charAt(0)&&"]"===n.charAt(n.length-1)&&(n=n.substr(1,n.length-2)),n},n.getPort=function(t){return new URL(t).port},n.getHostAndPort=function(t){var n=new URL(t);return n.hostname+":"+n.port},n.computeRate=function(t,n){return 0===n?0:t/n*1e3},n.precisionRound=d,n.formatDuration=function(t){var n="ms";return t>1e3&&(t/=1e3,n="s"),"s"===n&&t>60&&(t/=60,n="m"),"m"===n&&t>60&&(t/=60,n="h"),"h"===n&&t>24&&(t/=24,n="d"),"d"===n&&t>7&&(t/=7,n="w"),d(t)+n},n.formatRows=function(t){return 1===t?"1 row":p(t)+" rows"},n.formatCount=p,n.formatDataSizeBytes=function(t){return v(t,"")},n.formatDataSize=g,n.parseDataSize=y,n.parseAndFormatDataSize=function(t){var n=y(t);return null==n?"":g(n)},n.parseDuration=function(t){var n=/^\s*(\d+(?:\.\d+)?)\s*([a-zA-Z]+)\s*$/.exec(t);if(null===n)return null;var e=parseFloat(n[1]);switch(n[2]){case"ns":return e/1e6;case"us":return e/1e3;case"ms":return e;case"s":return 1e3*e;case"m":return 1e3*e*60;case"h":return 1e3*e*60*60;case"d":return 1e3*e*60*60*24;default:return null}},n.formatShortTime=m,n.formatShortDateTime=function(t){var n=t.getFullYear(),e=""+(t.getMonth()+1),r=""+t.getDate();return n+"-"+(e[1]?e:"0"+e[0])+"-"+(r[1]?r:"0"+r[0])+" "+m(t)};var r=o(e(4949)),i=o(e(9808));function o(t){if(t&&t.__esModule)return t;var n={};if(null!=t)for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&(n[e]=t[e]);return n.default=t,n}n.GLYPHICON_DEFAULT={color:"#1edcff"},n.GLYPHICON_HIGHLIGHT={color:"#999999"};var a="—",u={QUEUED:"#1b8f72",RUNNING:"#19874e",PLANNING:"#674f98",FINISHED:"#1a4629",BLOCKED:"#61003b",USER_ERROR:"#9a7d66",CANCELED:"#858959",INSUFFICIENT_RESOURCES:"#7f5b72",EXTERNAL_ERROR:"#ca7640",UNKNOWN_ERROR:"#943524"};function c(t,n){if("RUNNING"===t.state){var e="RUNNING";if(t.scheduled&&t.queryStats.totalDrivers>0&&t.queryStats.runningDrivers>=0)return t.queryStats.fullyBlocked&&(e="BLOCKED",t.queryStats.blockedReasons&&t.queryStats.blockedReasons.length>0&&(e+=" ("+t.queryStats.blockedReasons.join(", ")+")")),"reserved"===t.memoryPool&&(e+=" (RESERVED)"),e}if("FAILED"===t.state){var r="";switch(t.errorType){case"USER_ERROR":r="USER ERROR","USER_CANCELED"===t.errorCode.name&&(r="USER CANCELED");break;case"INTERNAL_ERROR":r="INTERNAL ERROR";break;case"INSUFFICIENT_RESOURCES":r="INSUFFICIENT RESOURCES";break;case"EXTERNAL":r="EXTERNAL ERROR"}return n&&t.errorCode&&t.errorCode.name&&(r+=" "+a+" "+t.errorCode.name),r}return t.state}function l(t){var n=t.queryStats.progressPercentage;return n&&"RUNNING"===t.state?Math.round(n):100}var s=300,f=.2;function h(t){return t.slice(t.indexOf(".")+1,t.length)}function d(t){return t<10?t.toFixed(2):t<100?t.toFixed(1):Math.round(t).toString()}function p(t){var n="";return t>1e3&&(t/=1e3,n="K"),t>1e3&&(t/=1e3,n="M"),t>1e3&&(t/=1e3,n="B"),t>1e3&&(t/=1e3,n="T"),t>1e3&&(t/=1e3,n="Q"),d(t)+n}function g(t){return v(t,"B")}function v(t,n){var e=n;return 0===t?"0"+e:(t>=1024&&(t/=1024,e="K"+n),t>=1024&&(t/=1024,e="M"+n),t>=1024&&(t/=1024,e="G"+n),t>=1024&&(t/=1024,e="T"+n),t>=1024&&(t/=1024,e="P"+n),d(t)+e)}function y(t){var n=/^\s*(\d+(?:\.\d+)?)\s*([a-zA-Z]+)\s*$/.exec(t);if(null===n)return null;var e=parseFloat(n[1]);switch(n[2]){case"B":return e;case"kB":return e*Math.pow(2,10);case"MB":return e*Math.pow(2,20);case"GB":return e*Math.pow(2,30);case"TB":return e*Math.pow(2,40);case"PB":return e*Math.pow(2,50);default:return null}}function m(t){return(t.getHours()%12||12)+":"+(t.getMinutes()<10?"0":"")+t.getMinutes()+(t.getHours()>=12?"pm":"am")}},8949:(t,n,e)=>{"use strict";e.d(n,{qh:()=>m,XP:()=>v,UI:()=>a,b1:()=>u,t8:()=>g,VO:()=>y});var r="$";function i(){}function o(t,n){var e=new i;if(t instanceof i)t.each((function(t,n){e.set(n,t)}));else if(Array.isArray(t)){var r,o=-1,a=t.length;if(null==n)for(;++o=r.length)return null!=t&&e.sort(t),null!=n?n(e):e;for(var l,s,f,h=-1,d=e.length,p=r[i++],g=a(),v=u();++hr.length)return t;var o,a=i[e-1];return null!=n&&e>=r.length?o=t.entries():(o=[],t.each((function(t,n){o.push({key:n,values:u(t,e)})}))),null!=a?o.sort((function(t,n){return a(t.key,n.key)})):o}return e={object:function(t){return o(t,0,c,l)},map:function(t){return o(t,0,s,f)},entries:function(t){return u(o(t,0,s,f),0)},key:function(t){return r.push(t),e},sortKeys:function(t){return i[r.length-1]=t,e},sortValues:function(n){return t=n,e},rollup:function(t){return n=t,e}}}function c(){return{}}function l(t,n,e){t[n]=e}function s(){return a()}function f(t,n,e){t.set(n,e)}function h(){}var d=a.prototype;function p(t,n){var e=new h;if(t instanceof h)t.each((function(t){e.add(t)}));else if(t){var r=-1,i=t.length;if(null==n)for(;++r{"use strict";e.d(n,{W:()=>c});var r={value:function(){}};function i(){for(var t,n=0,e=arguments.length,r={};n=0&&(n=t.slice(e+1),t=t.slice(0,e)),t&&!r.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:n}}))),c=-1,l=o.length;if(!(arguments.length<2)){if(null!=n&&"function"!=typeof n)throw new Error("invalid callback: "+n);for(;++c0)for(var e,r,i=new Array(e),o=0;o{"use strict";e.d(n,{Sf:()=>d,Jb:()=>p,ue:()=>f,Bj:()=>h,yv:()=>l,vP:()=>m,n5:()=>_,tJ:()=>v,E0:()=>y});var r={},i={},o=34,a=10,u=13;function c(t){return new Function("d","return {"+t.map((function(t,n){return JSON.stringify(t)+": d["+n+"]"})).join(",")+"}")}function l(t){var n=new RegExp('["'+t+"\n\r]"),e=t.charCodeAt(0);function l(t,n){var c,l=[],s=t.length,f=0,h=0,d=s<=0,p=!1;function g(){if(d)return i;if(p)return p=!1,r;var n,c,l=f;if(t.charCodeAt(l)===o){for(;f++=s?d=!0:(c=t.charCodeAt(f++))===a?p=!0:c===u&&(p=!0,t.charCodeAt(f)===a&&++f),t.slice(l+1,n-1).replace(/""/g,'"')}for(;f{"use strict";e.r(n),e.d(n,{active:()=>Ho,arc:()=>rb,area:()=>lb,areaRadial:()=>mb,ascending:()=>i,axisBottom:()=>ct,axisLeft:()=>lt,axisRight:()=>ut,axisTop:()=>at,bisect:()=>l,bisectLeft:()=>c,bisectRight:()=>u,bisector:()=>o,blob:()=>ru,brush:()=>ga,brushSelection:()=>ha,brushX:()=>da,brushY:()=>pa,buffer:()=>ou,chord:()=>Ma,clientPoint:()=>Rn,cluster:()=>pd,color:()=>fe,contourDensity:()=>tu,contours:()=>$a,create:()=>Sn,creator:()=>vt,cross:()=>h,csv:()=>su,csvFormat:()=>nu.Sf,csvFormatRows:()=>nu.Jb,csvParse:()=>nu.ue,csvParseRows:()=>nu.Bj,cubehelix:()=>Ze,curveBasis:()=>Kb,curveBasisClosed:()=>tw,curveBasisOpen:()=>ew,curveBundle:()=>iw,curveCardinal:()=>uw,curveCardinalClosed:()=>lw,curveCardinalOpen:()=>fw,curveCatmullRom:()=>pw,curveCatmullRomClosed:()=>vw,curveCatmullRomOpen:()=>mw,curveLinear:()=>ob,curveLinearClosed:()=>bw,curveMonotoneX:()=>Tw,curveMonotoneY:()=>Cw,curveNatural:()=>Rw,curveStep:()=>Ow,curveStepAfter:()=>Dw,curveStepBefore:()=>Uw,customEvent:()=>mn,descending:()=>d,deviation:()=>v,dispatch:()=>st.W,drag:()=>Xn,dragDisable:()=>Fn,dragEnable:()=>qn,dsv:()=>lu,dsvFormat:()=>nu.yv,easeBack:()=>Do,easeBackIn:()=>Oo,easeBackInOut:()=>Do,easeBackOut:()=>Uo,easeBounce:()=>Po,easeBounceIn:()=>Ao,easeBounceInOut:()=>Ro,easeBounceOut:()=>Po,easeCircle:()=>_o,easeCircleIn:()=>yo,easeCircleInOut:()=>_o,easeCircleOut:()=>mo,easeCubic:()=>io,easeCubicIn:()=>eo,easeCubicInOut:()=>io,easeCubicOut:()=>ro,easeElastic:()=>Fo,easeElasticIn:()=>zo,easeElasticInOut:()=>qo,easeElasticOut:()=>Fo,easeExp:()=>vo,easeExpIn:()=>po,easeExpInOut:()=>vo,easeExpOut:()=>go,easeLinear:()=>Ki,easePoly:()=>uo,easePolyIn:()=>oo,easePolyInOut:()=>uo,easePolyOut:()=>ao,easeQuad:()=>no,easeQuadIn:()=>Ji,easeQuadInOut:()=>no,easeQuadOut:()=>to,easeSin:()=>ho,easeSinIn:()=>so,easeSinInOut:()=>ho,easeSinOut:()=>fo,entries:()=>Fa.qh,event:()=>dn,extent:()=>y,forceCenter:()=>_u,forceCollide:()=>Ru,forceLink:()=>Uu,forceManyBody:()=>ju,forceRadial:()=>Bu,forceSimulation:()=>qu,forceX:()=>Yu,forceY:()=>Hu,format:()=>nc,formatDefaultLocale:()=>oc,formatLocale:()=>ic,formatPrefix:()=>ec,formatSpecifier:()=>Gu,geoAlbers:()=>Th,geoAlbersUsa:()=>Ch,geoArea:()=>nl,geoAzimuthalEqualArea:()=>Ih,geoAzimuthalEqualAreaRaw:()=>Rh,geoAzimuthalEquidistant:()=>Uh,geoAzimuthalEquidistantRaw:()=>Oh,geoBounds:()=>Xl,geoCentroid:()=>os,geoCircle:()=>vs,geoClipAntimeridian:()=>Ss,geoClipCircle:()=>Ts,geoClipExtent:()=>Rs,geoClipRectangle:()=>Ps,geoConicConformal:()=>jh,geoConicConformalRaw:()=>qh,geoConicEqualArea:()=>Sh,geoConicEqualAreaRaw:()=>Nh,geoConicEquidistant:()=>Vh,geoConicEquidistantRaw:()=>Hh,geoContains:()=>Js,geoDistance:()=>Hs,geoEqualEarth:()=>Kh,geoEqualEarthRaw:()=>Zh,geoEquirectangular:()=>Yh,geoEquirectangularRaw:()=>Bh,geoGnomonic:()=>td,geoGnomonicRaw:()=>Jh,geoGraticule:()=>ef,geoGraticule10:()=>rf,geoIdentity:()=>ed,geoInterpolate:()=>of,geoLength:()=>js,geoMercator:()=>Lh,geoMercatorRaw:()=>Dh,geoNaturalEarth1:()=>id,geoNaturalEarth1Raw:()=>rd,geoOrthographic:()=>ad,geoOrthographicRaw:()=>od,geoPath:()=>ch,geoProjection:()=>Mh,geoProjectionMutator:()=>Eh,geoRotation:()=>ds,geoStereographic:()=>cd,geoStereographicRaw:()=>ud,geoStream:()=>Bc,geoTransform:()=>lh,geoTransverseMercator:()=>sd,geoTransverseMercatorRaw:()=>ld,gray:()=>Re,hcl:()=>je,hierarchy:()=>vd,histogram:()=>P,hsl:()=>_e,html:()=>yu,image:()=>hu,interpolate:()=>yr,interpolateArray:()=>sr,interpolateBasis:()=>tr,interpolateBasisClosed:()=>nr,interpolateBlues:()=>d_,interpolateBrBG:()=>km,interpolateBuGn:()=>Ym,interpolateBuPu:()=>Vm,interpolateCool:()=>N_,interpolateCubehelix:()=>Vr,interpolateCubehelixDefault:()=>E_,interpolateCubehelixLong:()=>Wr,interpolateDate:()=>fr,interpolateDiscrete:()=>mr,interpolateGnBu:()=>Xm,interpolateGreens:()=>g_,interpolateGreys:()=>y_,interpolateHcl:()=>Br,interpolateHclLong:()=>Yr,interpolateHsl:()=>zr,interpolateHslLong:()=>Fr,interpolateHue:()=>_r,interpolateInferno:()=>D_,interpolateLab:()=>qr,interpolateMagma:()=>U_,interpolateNumber:()=>hr,interpolateObject:()=>dr,interpolateOrRd:()=>Gm,interpolateOranges:()=>M_,interpolatePRGn:()=>Sm,interpolatePiYG:()=>Cm,interpolatePlasma:()=>L_,interpolatePuBu:()=>Jm,interpolatePuBuGn:()=>Zm,interpolatePuOr:()=>Pm,interpolatePuRd:()=>n_,interpolatePurples:()=>__,interpolateRainbow:()=>T_,interpolateRdBu:()=>Im,interpolateRdGy:()=>Um,interpolateRdPu:()=>r_,interpolateRdYlBu:()=>Lm,interpolateRdYlGn:()=>Fm,interpolateReds:()=>w_,interpolateRgb:()=>ar,interpolateRgbBasis:()=>cr,interpolateRgbBasisClosed:()=>lr,interpolateRound:()=>br,interpolateSinebow:()=>R_,interpolateSpectral:()=>jm,interpolateString:()=>vr,interpolateTransformCss:()=>Cr,interpolateTransformSvg:()=>Ar,interpolateViridis:()=>O_,interpolateWarm:()=>k_,interpolateYlGn:()=>u_,interpolateYlGnBu:()=>o_,interpolateYlOrBr:()=>l_,interpolateYlOrRd:()=>f_,interpolateZoom:()=>Dr,interrupt:()=>Ci,interval:()=>gi,isoFormat:()=>Qy,isoParse:()=>Ky,json:()=>pu,keys:()=>Fa.XP,lab:()=>Ie,lch:()=>qe,line:()=>cb,lineRadial:()=>yb,linkHorizontal:()=>Sb,linkRadial:()=>Cb,linkVertical:()=>Tb,local:()=>Cn,map:()=>Fa.UI,matcher:()=>Et,max:()=>U,mean:()=>D,median:()=>L,merge:()=>z,min:()=>F,mouse:()=>In,namespace:()=>dt,namespaces:()=>ht,nest:()=>Fa.b1,now:()=>ai,pack:()=>qd,packEnclose:()=>xd,packSiblings:()=>Ud,pairs:()=>s,partition:()=>Wd,path:()=>Ra,permute:()=>q,pie:()=>hb,piecewise:()=>Xr,pointRadial:()=>_b,polygonArea:()=>pp,polygonCentroid:()=>gp,polygonContains:()=>bp,polygonHull:()=>_p,polygonLength:()=>wp,precisionFixed:()=>ac,precisionPrefix:()=>uc,precisionRound:()=>cc,quadtree:()=>Nu,quantile:()=>R,quantize:()=>$r,radialArea:()=>mb,radialLine:()=>yb,randomBates:()=>Sp,randomExponential:()=>Tp,randomIrwinHall:()=>Np,randomLogNormal:()=>kp,randomNormal:()=>Ep,randomUniform:()=>Mp,range:()=>M,rgb:()=>ge,ribbon:()=>za,scaleBand:()=>Op,scaleDiverging:()=>hm,scaleIdentity:()=>Xp,scaleImplicit:()=>Rp,scaleLinear:()=>Wp,scaleLog:()=>ng,scaleOrdinal:()=>Ip,scalePoint:()=>Dp,scalePow:()=>rg,scaleQuantile:()=>og,scaleQuantize:()=>ag,scaleSequential:()=>fm,scaleSqrt:()=>ig,scaleThreshold:()=>ug,scaleTime:()=>lm,scaleUtc:()=>sm,scan:()=>j,schemeAccent:()=>gm,schemeBlues:()=>h_,schemeBrBG:()=>Em,schemeBuGn:()=>Bm,schemeBuPu:()=>Hm,schemeCategory10:()=>pm,schemeDark2:()=>vm,schemeGnBu:()=>Wm,schemeGreens:()=>p_,schemeGreys:()=>v_,schemeOrRd:()=>$m,schemeOranges:()=>x_,schemePRGn:()=>Nm,schemePaired:()=>ym,schemePastel1:()=>mm,schemePastel2:()=>_m,schemePiYG:()=>Tm,schemePuBu:()=>Km,schemePuBuGn:()=>Qm,schemePuOr:()=>Am,schemePuRd:()=>t_,schemePurples:()=>m_,schemeRdBu:()=>Rm,schemeRdGy:()=>Om,schemeRdPu:()=>e_,schemeRdYlBu:()=>Dm,schemeRdYlGn:()=>zm,schemeReds:()=>b_,schemeSet1:()=>bm,schemeSet2:()=>wm,schemeSet3:()=>xm,schemeSpectral:()=>qm,schemeYlGn:()=>a_,schemeYlGnBu:()=>i_,schemeYlOrBr:()=>c_,schemeYlOrRd:()=>s_,select:()=>Nn,selectAll:()=>On,selection:()=>kn,selector:()=>mt,selectorAll:()=>bt,set:()=>Fa.t8,shuffle:()=>B,stack:()=>qw,stackOffsetDiverging:()=>Bw,stackOffsetExpand:()=>jw,stackOffsetNone:()=>Lw,stackOffsetSilhouette:()=>Yw,stackOffsetWiggle:()=>Hw,stackOrderAscending:()=>Vw,stackOrderDescending:()=>Xw,stackOrderInsideOut:()=>$w,stackOrderNone:()=>zw,stackOrderReverse:()=>Gw,stratify:()=>Kd,style:()=>jt,sum:()=>Y,svg:()=>mu,symbol:()=>$b,symbolCircle:()=>Ab,symbolCross:()=>Pb,symbolDiamond:()=>Ob,symbolSquare:()=>Fb,symbolStar:()=>zb,symbolTriangle:()=>jb,symbolWye:()=>Wb,symbols:()=>Xb,text:()=>uu,thresholdFreedmanDiaconis:()=>I,thresholdScott:()=>O,thresholdSturges:()=>A,tickIncrement:()=>T,tickStep:()=>C,ticks:()=>S,timeDay:()=>Cg,timeDays:()=>Ag,timeFormat:()=>Iv,timeFormatDefaultLocale:()=>Xy,timeFormatLocale:()=>Pv,timeFriday:()=>Lg,timeFridays:()=>Hg,timeHour:()=>Ng,timeHours:()=>Sg,timeInterval:()=>sg,timeMillisecond:()=>hg,timeMilliseconds:()=>dg,timeMinute:()=>Mg,timeMinutes:()=>Eg,timeMonday:()=>Ig,timeMondays:()=>qg,timeMonth:()=>Xg,timeMonths:()=>$g,timeParse:()=>Ov,timeSaturday:()=>zg,timeSaturdays:()=>Vg,timeSecond:()=>bg,timeSeconds:()=>wg,timeSunday:()=>Rg,timeSundays:()=>Fg,timeThursday:()=>Dg,timeThursdays:()=>Yg,timeTuesday:()=>Og,timeTuesdays:()=>jg,timeWednesday:()=>Ug,timeWednesdays:()=>Bg,timeWeek:()=>Rg,timeWeeks:()=>Fg,timeYear:()=>Qg,timeYears:()=>Zg,timeout:()=>pi,timer:()=>li,timerFlush:()=>si,touch:()=>Un,touches:()=>Dn,transition:()=>Gi,transpose:()=>H,tree:()=>op,treemap:()=>sp,treemapBinary:()=>fp,treemapDice:()=>Vd,treemapResquarify:()=>dp,treemapSlice:()=>ap,treemapSliceDice:()=>hp,treemapSquarify:()=>lp,tsv:()=>fu,tsvFormat:()=>nu.vP,tsvFormatRows:()=>nu.n5,tsvParse:()=>nu.tJ,tsvParseRows:()=>nu.E0,utcDay:()=>ov,utcDays:()=>av,utcFormat:()=>Uv,utcFriday:()=>dv,utcFridays:()=>bv,utcHour:()=>ev,utcHours:()=>rv,utcMillisecond:()=>hg,utcMilliseconds:()=>dg,utcMinute:()=>Jg,utcMinutes:()=>tv,utcMonday:()=>lv,utcMondays:()=>vv,utcMonth:()=>Mv,utcMonths:()=>Ev,utcParse:()=>Dv,utcSaturday:()=>pv,utcSaturdays:()=>wv,utcSecond:()=>bg,utcSeconds:()=>wg,utcSunday:()=>cv,utcSundays:()=>gv,utcThursday:()=>hv,utcThursdays:()=>_v,utcTuesday:()=>sv,utcTuesdays:()=>yv,utcWednesday:()=>fv,utcWednesdays:()=>mv,utcWeek:()=>cv,utcWeeks:()=>gv,utcYear:()=>Nv,utcYears:()=>Sv,values:()=>Fa.VO,variance:()=>g,version:()=>r,voronoi:()=>Ux,window:()=>Lt,xml:()=>vu,zip:()=>W,zoom:()=>Gx,zoomIdentity:()=>Fx,zoomTransform:()=>qx});var r="5.7.0";function i(t,n){return tn?1:t>=n?0:NaN}function o(t){var n;return 1===t.length&&(n=t,t=function(t,e){return i(n(t),e)}),{left:function(n,e,r,i){for(null==r&&(r=0),null==i&&(i=n.length);r>>1;t(n[o],e)<0?r=o+1:i=o}return r},right:function(n,e,r,i){for(null==r&&(r=0),null==i&&(i=n.length);r>>1;t(n[o],e)>0?i=o:r=o+1}return r}}}var a=o(i),u=a.right,c=a.left;const l=u;function s(t,n){null==n&&(n=f);for(var e=0,r=t.length-1,i=t[0],o=new Array(r<0?0:r);et?1:n>=t?0:NaN}function p(t){return null===t?NaN:+t}function g(t,n){var e,r,i=t.length,o=0,a=-1,u=0,c=0;if(null==n)for(;++a1)return c/(o-1)}function v(t,n){var e=g(t,n);return e?Math.sqrt(e):e}function y(t,n){var e,r,i,o=t.length,a=-1;if(null==n){for(;++a=e)for(r=i=e;++ae&&(r=e),i=e)for(r=i=e;++ae&&(r=e),i0)return[t];if((r=n0)for(t=Math.ceil(t/a),n=Math.floor(n/a),o=new Array(i=Math.ceil(n-t+1));++u=0?(o>=E?10:o>=k?5:o>=N?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(o>=E?10:o>=k?5:o>=N?2:1)}function C(t,n,e){var r=Math.abs(n-t)/Math.max(0,e),i=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),o=r/i;return o>=E?i*=10:o>=k?i*=5:o>=N&&(i*=2),nf;)h.pop(),--d;var p,g=new Array(d+1);for(i=0;i<=d;++i)(p=g[i]=[]).x0=i>0?h[i-1]:s,p.x1=i=1)return+e(t[r-1],r-1,t);var r,i=(r-1)*n,o=Math.floor(i),a=+e(t[o],o,t);return a+(+e(t[o+1],o+1,t)-a)*(i-o)}}function I(t,n,e){return t=b.call(t,p).sort(i),Math.ceil((e-n)/(2*(R(t,.75)-R(t,.25))*Math.pow(t.length,-1/3)))}function O(t,n,e){return Math.ceil((e-n)/(3.5*v(t)*Math.pow(t.length,-1/3)))}function U(t,n){var e,r,i=t.length,o=-1;if(null==n){for(;++o=e)for(r=e;++or&&(r=e)}else for(;++o=e)for(r=e;++or&&(r=e);return r}function D(t,n){var e,r=t.length,i=r,o=-1,a=0;if(null==n)for(;++o=0;)for(n=(r=t[i]).length;--n>=0;)e[--a]=r[n];return e}function F(t,n){var e,r,i=t.length,o=-1;if(null==n){for(;++o=e)for(r=e;++oe&&(r=e)}else for(;++o=e)for(r=e;++oe&&(r=e);return r}function q(t,n){for(var e=n.length,r=new Array(e);e--;)r[e]=t[n[e]];return r}function j(t,n){if(e=t.length){var e,r,o=0,a=0,u=t[a];for(null==n&&(n=i);++o=0&&"xmlns"!==(n=t.slice(0,e))&&(t=t.slice(e+1)),ht.hasOwnProperty(n)?{space:ht[n],local:t}:t}function pt(t){return function(){var n=this.ownerDocument,e=this.namespaceURI;return e===ft&&n.documentElement.namespaceURI===ft?n.createElement(t):n.createElementNS(e,t)}}function gt(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function vt(t){var n=dt(t);return(n.local?gt:pt)(n)}function yt(){}function mt(t){return null==t?yt:function(){return this.querySelector(t)}}function _t(){return[]}function bt(t){return null==t?_t:function(){return this.querySelectorAll(t)}}var wt=function(t){return function(){return this.matches(t)}};if("undefined"!=typeof document){var xt=document.documentElement;if(!xt.matches){var Mt=xt.webkitMatchesSelector||xt.msMatchesSelector||xt.mozMatchesSelector||xt.oMatchesSelector;wt=function(t){return function(){return Mt.call(this,t)}}}}const Et=wt;function kt(t){return new Array(t.length)}function Nt(t,n){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=n}Nt.prototype={constructor:Nt,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,n){return this._parent.insertBefore(t,n)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};var St="$";function Tt(t,n,e,r,i,o){for(var a,u=0,c=n.length,l=o.length;un?1:t>=n?0:NaN}function Pt(t){return function(){this.removeAttribute(t)}}function Rt(t){return function(){this.removeAttributeNS(t.space,t.local)}}function It(t,n){return function(){this.setAttribute(t,n)}}function Ot(t,n){return function(){this.setAttributeNS(t.space,t.local,n)}}function Ut(t,n){return function(){var e=n.apply(this,arguments);null==e?this.removeAttribute(t):this.setAttribute(t,e)}}function Dt(t,n){return function(){var e=n.apply(this,arguments);null==e?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,e)}}function Lt(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function zt(t){return function(){this.style.removeProperty(t)}}function Ft(t,n,e){return function(){this.style.setProperty(t,n,e)}}function qt(t,n,e){return function(){var r=n.apply(this,arguments);null==r?this.style.removeProperty(t):this.style.setProperty(t,r,e)}}function jt(t,n){return t.style.getPropertyValue(n)||Lt(t).getComputedStyle(t,null).getPropertyValue(n)}function Bt(t){return function(){delete this[t]}}function Yt(t,n){return function(){this[t]=n}}function Ht(t,n){return function(){var e=n.apply(this,arguments);null==e?delete this[t]:this[t]=e}}function Vt(t){return t.trim().split(/^|\s+/)}function Wt(t){return t.classList||new Xt(t)}function Xt(t){this._node=t,this._names=Vt(t.getAttribute("class")||"")}function $t(t,n){for(var e=Wt(t),r=-1,i=n.length;++r=0&&(this._names.splice(n,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var hn={},dn=null;function pn(t,n,e){return t=gn(t,n,e),function(n){var e=n.relatedTarget;e&&(e===this||8&e.compareDocumentPosition(this))||t.call(this,n)}}function gn(t,n,e){return function(r){var i=dn;dn=r;try{t.call(this,this.__data__,n,e)}finally{dn=i}}}function vn(t){return function(){var n=this.__on;if(n){for(var e,r=0,i=-1,o=n.length;r=w&&(w=b+1);!(_=y[w])&&++w=0;)(r=i[o])&&(a&&a!==r.nextSibling&&a.parentNode.insertBefore(r,a),a=r);return this},sort:function(t){function n(n,e){return n&&e?t(n.__data__,e.__data__):!n-!e}t||(t=At);for(var e=this._groups,r=e.length,i=new Array(r),o=0;o1?this.each((null==n?zt:"function"==typeof n?qt:Ft)(t,n,null==e?"":e)):jt(this.node(),t)},property:function(t,n){return arguments.length>1?this.each((null==n?Bt:"function"==typeof n?Ht:Yt)(t,n)):this.node()[t]},classed:function(t,n){var e=Vt(t+"");if(arguments.length<2){for(var r=Wt(this.node()),i=-1,o=e.length;++i=0&&(n=t.slice(e+1),t=t.slice(0,e)),{type:t,name:n}}))}(t+""),a=o.length;if(!(arguments.length<2)){for(u=n?yn:vn,null==e&&(e=!1),r=0;rf}c.mouse("drag")}function g(){Nn(dn.view).on("mousemove.drag mouseup.drag",null),qn(dn.view,e),zn(),c.mouse("end")}function v(){if(i.apply(this,arguments)){var t,n,e=dn.changedTouches,r=o.apply(this,arguments),a=e.length;for(t=0;t>8&15|n>>4&240,n>>4&15|240&n,(15&n)<<4|15&n,1):(n=re.exec(t))?he(parseInt(n[1],16)):(n=ie.exec(t))?new ve(n[1],n[2],n[3],1):(n=oe.exec(t))?new ve(255*n[1]/100,255*n[2]/100,255*n[3]/100,1):(n=ae.exec(t))?de(n[1],n[2],n[3],n[4]):(n=ue.exec(t))?de(255*n[1]/100,255*n[2]/100,255*n[3]/100,n[4]):(n=ce.exec(t))?me(n[1],n[2]/100,n[3]/100,1):(n=le.exec(t))?me(n[1],n[2]/100,n[3]/100,n[4]):se.hasOwnProperty(t)?he(se[t]):"transparent"===t?new ve(NaN,NaN,NaN,0):null}function he(t){return new ve(t>>16&255,t>>8&255,255&t,1)}function de(t,n,e,r){return r<=0&&(t=n=e=NaN),new ve(t,n,e,r)}function pe(t){return t instanceof Qn||(t=fe(t)),t?new ve((t=t.rgb()).r,t.g,t.b,t.opacity):new ve}function ge(t,n,e,r){return 1===arguments.length?pe(t):new ve(t,n,e,null==r?1:r)}function ve(t,n,e,r){this.r=+t,this.g=+n,this.b=+e,this.opacity=+r}function ye(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function me(t,n,e,r){return r<=0?t=n=e=NaN:e<=0||e>=1?t=n=NaN:n<=0&&(t=NaN),new be(t,n,e,r)}function _e(t,n,e,r){return 1===arguments.length?function(t){if(t instanceof be)return new be(t.h,t.s,t.l,t.opacity);if(t instanceof Qn||(t=fe(t)),!t)return new be;if(t instanceof be)return t;var n=(t=t.rgb()).r/255,e=t.g/255,r=t.b/255,i=Math.min(n,e,r),o=Math.max(n,e,r),a=NaN,u=o-i,c=(o+i)/2;return u?(a=n===o?(e-r)/u+6*(e0&&c<1?0:a,new be(a,u,c,t.opacity)}(t):new be(t,n,e,null==r?1:r)}function be(t,n,e,r){this.h=+t,this.s=+n,this.l=+e,this.opacity=+r}function we(t,n,e){return 255*(t<60?n+(e-n)*t/60:t<180?e:t<240?n+(e-n)*(240-t)/60:n)}$n(Qn,fe,{displayable:function(){return this.rgb().displayable()},hex:function(){return this.rgb().hex()},toString:function(){return this.rgb()+""}}),$n(ve,ge,Gn(Qn,{brighter:function(t){return t=null==t?Kn:Math.pow(Kn,t),new ve(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?Zn:Math.pow(Zn,t),new ve(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},hex:function(){return"#"+ye(this.r)+ye(this.g)+ye(this.b)},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+")")}})),$n(be,_e,Gn(Qn,{brighter:function(t){return t=null==t?Kn:Math.pow(Kn,t),new be(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?Zn:Math.pow(Zn,t),new be(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),n=isNaN(t)||isNaN(this.s)?0:this.s,e=this.l,r=e+(e<.5?e:1-e)*n,i=2*e-r;return new ve(we(t>=240?t-240:t+120,i,r),we(t,i,r),we(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 xe=Math.PI/180,Me=180/Math.PI,Ee=.96422,ke=1,Ne=.82521,Se=4/29,Te=6/29,Ce=3*Te*Te,Ae=Te*Te*Te;function Pe(t){if(t instanceof Oe)return new Oe(t.l,t.a,t.b,t.opacity);if(t instanceof Be){if(isNaN(t.h))return new Oe(t.l,0,0,t.opacity);var n=t.h*xe;return new Oe(t.l,Math.cos(n)*t.c,Math.sin(n)*t.c,t.opacity)}t instanceof ve||(t=pe(t));var e,r,i=ze(t.r),o=ze(t.g),a=ze(t.b),u=Ue((.2225045*i+.7168786*o+.0606169*a)/ke);return i===o&&o===a?e=r=u:(e=Ue((.4360747*i+.3850649*o+.1430804*a)/Ee),r=Ue((.0139322*i+.0971045*o+.7141733*a)/Ne)),new Oe(116*u-16,500*(e-u),200*(u-r),t.opacity)}function Re(t,n){return new Oe(t,0,0,null==n?1:n)}function Ie(t,n,e,r){return 1===arguments.length?Pe(t):new Oe(t,n,e,null==r?1:r)}function Oe(t,n,e,r){this.l=+t,this.a=+n,this.b=+e,this.opacity=+r}function Ue(t){return t>Ae?Math.pow(t,1/3):t/Ce+Se}function De(t){return t>Te?t*t*t:Ce*(t-Se)}function Le(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function ze(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function Fe(t){if(t instanceof Be)return new Be(t.h,t.c,t.l,t.opacity);if(t instanceof Oe||(t=Pe(t)),0===t.a&&0===t.b)return new Be(NaN,0,t.l,t.opacity);var n=Math.atan2(t.b,t.a)*Me;return new Be(n<0?n+360:n,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}function qe(t,n,e,r){return 1===arguments.length?Fe(t):new Be(e,n,t,null==r?1:r)}function je(t,n,e,r){return 1===arguments.length?Fe(t):new Be(t,n,e,null==r?1:r)}function Be(t,n,e,r){this.h=+t,this.c=+n,this.l=+e,this.opacity=+r}$n(Oe,Ie,Gn(Qn,{brighter:function(t){return new Oe(this.l+18*(null==t?1:t),this.a,this.b,this.opacity)},darker:function(t){return new Oe(this.l-18*(null==t?1:t),this.a,this.b,this.opacity)},rgb:function(){var t=(this.l+16)/116,n=isNaN(this.a)?t:t+this.a/500,e=isNaN(this.b)?t:t-this.b/200;return new ve(Le(3.1338561*(n=Ee*De(n))-1.6168667*(t=ke*De(t))-.4906146*(e=Ne*De(e))),Le(-.9787684*n+1.9161415*t+.033454*e),Le(.0719453*n-.2289914*t+1.4052427*e),this.opacity)}})),$n(Be,je,Gn(Qn,{brighter:function(t){return new Be(this.h,this.c,this.l+18*(null==t?1:t),this.opacity)},darker:function(t){return new Be(this.h,this.c,this.l-18*(null==t?1:t),this.opacity)},rgb:function(){return Pe(this).rgb()}}));var Ye=-.14861,He=1.78277,Ve=-.29227,We=-.90649,Xe=1.97294,$e=Xe*We,Ge=Xe*He,Qe=He*Ve-We*Ye;function Ze(t,n,e,r){return 1===arguments.length?function(t){if(t instanceof Ke)return new Ke(t.h,t.s,t.l,t.opacity);t instanceof ve||(t=pe(t));var n=t.r/255,e=t.g/255,r=t.b/255,i=(Qe*r+$e*n-Ge*e)/(Qe+$e-Ge),o=r-i,a=(Xe*(e-i)-Ve*o)/We,u=Math.sqrt(a*a+o*o)/(Xe*i*(1-i)),c=u?Math.atan2(a,o)*Me-120:NaN;return new Ke(c<0?c+360:c,u,i,t.opacity)}(t):new Ke(t,n,e,null==r?1:r)}function Ke(t,n,e,r){this.h=+t,this.s=+n,this.l=+e,this.opacity=+r}function Je(t,n,e,r,i){var o=t*t,a=o*t;return((1-3*t+3*o-a)*n+(4-6*o+3*a)*e+(1+3*t+3*o-3*a)*r+a*i)/6}function tr(t){var n=t.length-1;return function(e){var r=e<=0?e=0:e>=1?(e=1,n-1):Math.floor(e*n),i=t[r],o=t[r+1],a=r>0?t[r-1]:2*i-o,u=r180||e<-180?e-360*Math.round(e/360):e):er(isNaN(t)?n:t)}function or(t,n){var e=n-t;return e?rr(t,e):er(isNaN(t)?n:t)}$n(Ke,Ze,Gn(Qn,{brighter:function(t){return t=null==t?Kn:Math.pow(Kn,t),new Ke(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?Zn:Math.pow(Zn,t),new Ke(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=isNaN(this.h)?0:(this.h+120)*xe,n=+this.l,e=isNaN(this.s)?0:this.s*n*(1-n),r=Math.cos(t),i=Math.sin(t);return new ve(255*(n+e*(Ye*r+He*i)),255*(n+e*(Ve*r+We*i)),255*(n+e*(Xe*r)),this.opacity)}}));const ar=function t(n){var e=function(t){return 1==(t=+t)?or:function(n,e){return e-n?function(t,n,e){return t=Math.pow(t,e),n=Math.pow(n,e)-t,e=1/e,function(r){return Math.pow(t+r*n,e)}}(n,e,t):er(isNaN(n)?e:n)}}(n);function r(t,n){var r=e((t=ge(t)).r,(n=ge(n)).r),i=e(t.g,n.g),o=e(t.b,n.b),a=or(t.opacity,n.opacity);return function(n){return t.r=r(n),t.g=i(n),t.b=o(n),t.opacity=a(n),t+""}}return r.gamma=t,r}(1);function ur(t){return function(n){var e,r,i=n.length,o=new Array(i),a=new Array(i),u=new Array(i);for(e=0;eo&&(i=n.slice(o,i),u[a]?u[a]+=i:u[++a]=i),(e=e[0])===(r=r[0])?u[a]?u[a]+=r:u[++a]=r:(u[++a]=null,c.push({i:a,x:hr(e,r)})),o=gr.lastIndex;return o180?n+=360:n-t>180&&(t+=360),o.push({i:e.push(i(e)+"rotate(",null,r)-2,x:hr(t,n)})):n&&e.push(i(e)+"rotate("+n+r)}(o.rotate,a.rotate,u,c),function(t,n,e,o){t!==n?o.push({i:e.push(i(e)+"skewX(",null,r)-2,x:hr(t,n)}):n&&e.push(i(e)+"skewX("+n+r)}(o.skewX,a.skewX,u,c),function(t,n,e,r,o,a){if(t!==e||n!==r){var u=o.push(i(o)+"scale(",null,",",null,")");a.push({i:u-4,x:hr(t,e)},{i:u-2,x:hr(n,r)})}else 1===e&&1===r||o.push(i(o)+"scale("+e+","+r+")")}(o.scaleX,o.scaleY,a.scaleX,a.scaleY,u,c),o=a=null,function(t){for(var n,e=-1,r=c.length;++e=0&&n._call.call(null,t),n=n._next;--Zr}function fi(){ei=(ni=ii.now())+ri,Zr=Kr=0;try{si()}finally{Zr=0,function(){for(var t,n,e=Gr,r=1/0;e;)e._call?(r>e._time&&(r=e._time),t=e,e=e._next):(n=e._next,e._next=null,e=t?t._next=n:Gr=n);Qr=t,di(r)}(),ei=0}}function hi(){var t=ii.now(),n=t-ni;n>ti&&(ri-=n,ni=t)}function di(t){Zr||(Kr&&(Kr=clearTimeout(Kr)),t-ei>24?(t<1/0&&(Kr=setTimeout(fi,t-ii.now()-ri)),Jr&&(Jr=clearInterval(Jr))):(Jr||(ni=ii.now(),Jr=setInterval(hi,ti)),Zr=1,oi(fi)))}function pi(t,n,e){var r=new ci;return n=null==n?0:+n,r.restart((function(e){r.stop(),t(e+n)}),n,e),r}function gi(t,n,e){var r=new ci,i=n;return null==n?(r.restart(t,n,e),r):(n=+n,e=null==e?ai():+e,r.restart((function o(a){a+=i,r.restart(o,i+=n,e),t(a)}),n,e),r)}ci.prototype=li.prototype={constructor:ci,restart:function(t,n,e){if("function"!=typeof t)throw new TypeError("callback is not a function");e=(null==e?ai():+e)+(null==n?0:+n),this._next||Qr===this||(Qr?Qr._next=this:Gr=this,Qr=this),this._call=t,this._time=e,di()},stop:function(){this._call&&(this._call=null,this._time=1/0,di())}};var vi=(0,st.W)("start","end","interrupt"),yi=[],mi=0,_i=1,bi=2,wi=3,xi=4,Mi=5,Ei=6;function ki(t,n,e,r,i,o){var a=t.__transition;if(a){if(e in a)return}else t.__transition={};!function(t,n,e){var r,i=t.__transition;function o(c){var l,s,f,h;if(e.state!==_i)return u();for(l in i)if((h=i[l]).name===e.name){if(h.state===wi)return pi(o);h.state===xi?(h.state=Ei,h.timer.stop(),h.on.call("interrupt",t,t.__data__,h.index,h.group),delete i[l]):+lmi)throw new Error("too late; already scheduled");return e}function Si(t,n){var e=Ti(t,n);if(e.state>bi)throw new Error("too late; already started");return e}function Ti(t,n){var e=t.__transition;if(!e||!(e=e[n]))throw new Error("transition not found");return e}function Ci(t,n){var e,r,i,o=t.__transition,a=!0;if(o){for(i in n=null==n?null:n+"",o)(e=o[i]).name===n?(r=e.state>bi&&e.state=0&&(t=t.slice(0,n)),!t||"start"===t}))}(n)?Ni:Si;return function(){var a=o(this,t),u=a.on;u!==r&&(i=(r=u).copy()).on(n,e),a.on=i}}(e,t,n))},attr:function(t,n){var e=dt(t),r="transform"===e?Ar:Ii;return this.attrTween(t,"function"==typeof n?(e.local?Fi:zi)(e,r,Ri(this,"attr."+t,n)):null==n?(e.local?Ui:Oi)(e):(e.local?Li:Di)(e,r,n+""))},attrTween:function(t,n){var e="attr."+t;if(arguments.length<2)return(e=this.tween(e))&&e._value;if(null==n)return this.tween(e,null);if("function"!=typeof n)throw new Error;var r=dt(t);return this.tween(e,(r.local?qi:ji)(r,n))},style:function(t,n,e){var r="transform"==(t+="")?Cr:Ii;return null==n?this.styleTween(t,function(t,n){var e,r,i;return function(){var o=jt(this,t),a=(this.style.removeProperty(t),jt(this,t));return o===a?null:o===e&&a===r?i:i=n(e=o,r=a)}}(t,r)).on("end.style."+t,function(t){return function(){this.style.removeProperty(t)}}(t)):this.styleTween(t,"function"==typeof n?function(t,n,e){var r,i,o;return function(){var a=jt(this,t),u=e(this);return null==u&&(this.style.removeProperty(t),u=jt(this,t)),a===u?null:a===r&&u===i?o:o=n(r=a,i=u)}}(t,r,Ri(this,"style."+t,n)):function(t,n,e){var r,i;return function(){var o=jt(this,t);return o===e?null:o===r?i:i=n(r=o,e)}}(t,r,n+""),e)},styleTween:function(t,n,e){var r="style."+(t+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(null==n)return this.tween(r,null);if("function"!=typeof n)throw new Error;return this.tween(r,function(t,n,e){function r(){var r=this,i=n.apply(r,arguments);return i&&function(n){r.style.setProperty(t,i(n),e)}}return r._value=n,r}(t,n,null==e?"":e))},text:function(t){return this.tween("text","function"==typeof t?function(t){return function(){var n=t(this);this.textContent=null==n?"":n}}(Ri(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 n=this.parentNode;for(var e in this.__transition)if(+e!==t)return;n&&n.removeChild(this)}}(this._id))},tween:function(t,n){var e=this._id;if(t+="",arguments.length<2){for(var r,i=Ti(this.node(),e).tween,o=0,a=i.length;o_i&&e.name===n)return new $i([[t]],Yo,n,+r);return null}function Vo(t){return function(){return t}}function Wo(t,n,e){this.target=t,this.type=n,this.selection=e}function Xo(){dn.stopImmediatePropagation()}function $o(){dn.preventDefault(),dn.stopImmediatePropagation()}var Go={name:"drag"},Qo={name:"space"},Zo={name:"handle"},Ko={name:"center"},Jo={name:"x",handles:["e","w"].map(ua),input:function(t,n){return t&&[[t[0],n[0][1]],[t[1],n[1][1]]]},output:function(t){return t&&[t[0][0],t[1][0]]}},ta={name:"y",handles:["n","s"].map(ua),input:function(t,n){return t&&[[n[0][0],t[0]],[n[1][0],t[1]]]},output:function(t){return t&&[t[0][1],t[1][1]]}},na={name:"xy",handles:["n","e","s","w","nw","ne","se","sw"].map(ua),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"},ra={e:"w",w:"e",nw:"ne",ne:"nw",se:"sw",sw:"se"},ia={n:"s",s:"n",nw:"sw",ne:"se",se:"ne",sw:"nw"},oa={overlay:1,selection:1,n:null,e:1,s:null,w:-1,nw:-1,ne:1,se:1,sw:-1},aa={overlay:1,selection:1,n:-1,e:null,s:1,w:null,nw:-1,ne:-1,se:1,sw:1};function ua(t){return{type:t}}function ca(){return!dn.button}function la(){var t=this.ownerSVGElement||this;return[[0,0],[t.width.baseVal.value,t.height.baseVal.value]]}function sa(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 ha(t){var n=t.__brush;return n?n.dim.output(n.selection):null}function da(){return va(Jo)}function pa(){return va(ta)}function ga(){return va(na)}function va(t){var n,e=la,r=ca,i=(0,st.W)(a,"start","brush","end"),o=6;function a(n){var e=n.property("__brush",f).selectAll(".overlay").data([ua("overlay")]);e.enter().append("rect").attr("class","overlay").attr("pointer-events","all").attr("cursor",ea.overlay).merge(e).each((function(){var t=sa(this).extent;Nn(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])})),n.selectAll(".selection").data([ua("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=n.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]})),n.each(u).attr("fill","none").attr("pointer-events","all").style("-webkit-tap-highlight-color","rgba(0,0,0,0)").on("mousedown.brush touchstart.brush",s)}function u(){var t=Nn(this),n=sa(this).selection;n?(t.selectAll(".selection").style("display",null).attr("x",n[0][0]).attr("y",n[0][1]).attr("width",n[1][0]-n[0][0]).attr("height",n[1][1]-n[0][1]),t.selectAll(".handle").style("display",null).attr("x",(function(t){return"e"===t.type[t.type.length-1]?n[1][0]-o/2:n[0][0]-o/2})).attr("y",(function(t){return"s"===t.type[0]?n[1][1]-o/2:n[0][1]-o/2})).attr("width",(function(t){return"n"===t.type||"s"===t.type?n[1][0]-n[0][0]+o:o})).attr("height",(function(t){return"e"===t.type||"w"===t.type?n[1][1]-n[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,n){return t.__brush.emitter||new l(t,n)}function l(t,n){this.that=t,this.args=n,this.state=t.__brush,this.active=0}function s(){if(dn.touches){if(dn.changedTouches.length0&&(e=i-d),x<0?f=h-p:x>0&&(o=a-p),b=Qo,U.attr("cursor",ea.selection),z());break;default:return}$o()}),!0).on("keyup.brush",(function(){switch(dn.keyCode){case 16:A&&(v=y=A=!1,z());break;case 18:b===Ko&&(w<0?l=s:w>0&&(e=i),x<0?f=h:x>0&&(o=a),b=Zo,z());break;case 32:b===Qo&&(dn.altKey?(w&&(l=s-d*w,e=i+d*w),x&&(f=h-p*x,o=a+p*x),b=Ko):(w<0?l=s:w>0&&(e=i),x<0?f=h:x>0&&(o=a),b=Zo),U.attr("cursor",ea[_]),z());break;default:return}$o()}),!0).on("mousemove.brush",L,!0).on("mouseup.brush",F,!0);Fn(dn.view)}Xo(),Ci(m),u.call(m),I.start()}function L(){var t=In(m);!A||v||y||(Math.abs(t[0]-R[0])>Math.abs(t[1]-R[1])?y=!0:v=!0),R=t,g=!0,$o(),z()}function z(){var t;switch(d=R[0]-P[0],p=R[1]-P[1],b){case Qo:case Go:w&&(d=Math.max(N-e,Math.min(T-l,d)),i=e+d,s=l+d),x&&(p=Math.max(S-o,Math.min(C-f,p)),a=o+p,h=f+p);break;case Zo:w<0?(d=Math.max(N-e,Math.min(T-e,d)),i=e+d,s=l):w>0&&(d=Math.max(N-l,Math.min(T-l,d)),i=e,s=l+d),x<0?(p=Math.max(S-o,Math.min(C-o,p)),a=o+p,h=f):x>0&&(p=Math.max(S-f,Math.min(C-f,p)),a=o,h=f+p);break;case Ko:w&&(i=Math.max(N,Math.min(T,e-d*w)),s=Math.max(N,Math.min(T,l+d*w))),x&&(a=Math.max(S,Math.min(C,o-p*x)),h=Math.max(S,Math.min(C,f+p*x)))}sTa)if(Math.abs(s*u-c*l)>Ta&&i){var h=e-o,d=r-a,p=u*u+c*c,g=h*h+d*d,v=Math.sqrt(p),y=Math.sqrt(f),m=i*Math.tan((Na-Math.acos((p+f-g)/(2*v*y)))/2),_=m/y,b=m/v;Math.abs(_-1)>Ta&&(this._+="L"+(t+_*l)+","+(n+_*s)),this._+="A"+i+","+i+",0,0,"+ +(s*h>l*d)+","+(this._x1=t+b*u)+","+(this._y1=n+b*c)}else this._+="L"+(this._x1=t)+","+(this._y1=n)},arc:function(t,n,e,r,i,o){t=+t,n=+n;var a=(e=+e)*Math.cos(r),u=e*Math.sin(r),c=t+a,l=n+u,s=1^o,f=o?r-i:i-r;if(e<0)throw new Error("negative radius: "+e);null===this._x1?this._+="M"+c+","+l:(Math.abs(this._x1-c)>Ta||Math.abs(this._y1-l)>Ta)&&(this._+="L"+c+","+l),e&&(f<0&&(f=f%Sa+Sa),f>Ca?this._+="A"+e+","+e+",0,1,"+s+","+(t-a)+","+(n-u)+"A"+e+","+e+",0,1,"+s+","+(this._x1=c)+","+(this._y1=l):f>Ta&&(this._+="A"+e+","+e+",0,"+ +(f>=Na)+","+s+","+(this._x1=t+e*Math.cos(i))+","+(this._y1=n+e*Math.sin(i))))},rect:function(t,n,e,r){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+n)+"h"+ +e+"v"+ +r+"h"+-e+"Z"},toString:function(){return this._}};const Ra=Pa;function Ia(t){return t.source}function Oa(t){return t.target}function Ua(t){return t.radius}function Da(t){return t.startAngle}function La(t){return t.endAngle}function za(){var t=Ia,n=Oa,e=Ua,r=Da,i=La,o=null;function a(){var a,u=Ea.call(arguments),c=t.apply(this,u),l=n.apply(this,u),s=+e.apply(this,(u[0]=c,u)),f=r.apply(this,u)-ba,h=i.apply(this,u)-ba,d=s*ya(f),p=s*ma(f),g=+e.apply(this,(u[0]=l,u)),v=r.apply(this,u)-ba,y=i.apply(this,u)-ba;if(o||(o=a=Ra()),o.moveTo(d,p),o.arc(0,0,s,f,h),f===v&&h===y||(o.quadraticCurveTo(0,0,g*ya(v),g*ma(v)),o.arc(0,0,g,v,y)),o.quadraticCurveTo(0,0,d,p),o.closePath(),a)return o=null,a+""||null}return a.radius=function(t){return arguments.length?(e="function"==typeof t?t:ka(+t),a):e},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(n){return arguments.length?(t=n,a):t},a.target=function(t){return arguments.length?(n=t,a):n},a.context=function(t){return arguments.length?(o=null==t?null:t,a):o},a}var Fa=e(8949),qa=Array.prototype.slice;function ja(t,n){return t-n}function Ba(t){return function(){return t}}function Ya(t,n){for(var e,r=-1,i=n.length;++rr!=d>r&&e<(h-l)*(r-s)/(d-s)+l&&(i=-i)}return i}function Va(t,n,e){var r,i,o,a;return function(t,n,e){return(n[0]-t[0])*(e[1]-t[1])==(e[0]-t[0])*(n[1]-t[1])}(t,n,e)&&(i=t[r=+(t[0]===n[0])],o=e[r],a=n[r],i<=o&&o<=a||a<=o&&o<=i)}function Wa(){}var Xa=[[],[[[1,1.5],[.5,1]]],[[[1.5,1],[1,1.5]]],[[[1.5,1],[.5,1]]],[[[1,.5],[1.5,1]]],[[[1,1.5],[.5,1]],[[1,.5],[1.5,1]]],[[[1,.5],[1,1.5]]],[[[1,.5],[.5,1]]],[[[.5,1],[1,.5]]],[[[1,1.5],[1,.5]]],[[[.5,1],[1,.5]],[[1.5,1],[1,1.5]]],[[[1.5,1],[1,.5]]],[[[.5,1],[1.5,1]]],[[[1,1.5],[1.5,1]]],[[[.5,1],[1,1.5]]],[]];function $a(){var t=1,n=1,e=A,r=u;function i(t){var n=e(t);if(Array.isArray(n))n=n.slice().sort(ja);else{var r=y(t),i=r[0],a=r[1];n=C(i,a,n),n=M(Math.floor(i/n)*n,Math.floor(a/n)*n,n)}return n.map((function(n){return o(t,n)}))}function o(e,i){var o=[],u=[];return function(e,r,i){var o,u,c,l,s,f,h=new Array,d=new Array;for(o=u=-1,l=e[0]>=r,Xa[l<<1].forEach(p);++o=r,Xa[c|l<<1].forEach(p);for(Xa[l<<0].forEach(p);++u=r,s=e[u*t]>=r,Xa[l<<1|s<<2].forEach(p);++o=r,f=s,s=e[u*t+o+1]>=r,Xa[c|l<<1|s<<2|f<<3].forEach(p);Xa[l|s<<3].forEach(p)}for(o=-1,s=e[u*t]>=r,Xa[s<<2].forEach(p);++o=r,Xa[s<<2|f<<3].forEach(p);function p(t){var n,e,r=[t[0][0]+o,t[0][1]+u],c=[t[1][0]+o,t[1][1]+u],l=a(r),s=a(c);(n=d[l])?(e=h[s])?(delete d[n.end],delete h[e.start],n===e?(n.ring.push(c),i(n.ring)):h[n.start]=d[e.end]={start:n.start,end:e.end,ring:n.ring.concat(e.ring)}):(delete d[n.end],n.ring.push(c),d[n.end=s]=n):(n=h[s])?(e=d[l])?(delete h[n.start],delete d[e.end],n===e?(n.ring.push(c),i(n.ring)):h[e.start]=d[n.end]={start:e.start,end:n.end,ring:e.ring.concat(n.ring)}):(delete h[n.start],n.ring.unshift(r),h[n.start=l]=n):h[l]=d[s]={start:l,end:s,ring:[r,c]}}Xa[s<<3].forEach(p)}(e,i,(function(t){r(t,e,i),function(t){for(var n=0,e=t.length,r=t[e-1][1]*t[0][0]-t[e-1][0]*t[0][1];++n0?o.push([t]):u.push(t)})),u.forEach((function(t){for(var n,e=0,r=o.length;e0&&a0&&u0&&o>0))throw new Error("invalid size");return t=r,n=o,i},i.thresholds=function(t){return arguments.length?(e="function"==typeof t?t:Array.isArray(t)?Ba(qa.call(t)):Ba(t),i):e},i.smooth=function(t){return arguments.length?(r=t?u:Wa,i):r===u},i}function Ga(t,n,e){for(var r=t.width,i=t.height,o=1+(e<<1),a=0;a=e&&(u>=o&&(c-=t.data[u-o+a*r]),n.data[u-e+a*r]=c/Math.min(u+1,r-1+o-u,o))}function Qa(t,n,e){for(var r=t.width,i=t.height,o=1+(e<<1),a=0;a=e&&(u>=o&&(c-=t.data[a+(u-o)*r]),n.data[a+(u-e)*r]=c/Math.min(u+1,i-1+o-u,o))}function Za(t){return t[0]}function Ka(t){return t[1]}function Ja(){return 1}function tu(){var t=Za,n=Ka,e=Ja,r=960,i=500,o=20,a=2,u=3*o,c=r+2*u>>a,l=i+2*u>>a,s=Ba(20);function f(r){var i=new Float32Array(c*l),f=new Float32Array(c*l);r.forEach((function(r,o,s){var f=+t(r,o,s)+u>>a,h=+n(r,o,s)+u>>a,d=+e(r,o,s);f>=0&&f=0&&h>a),Qa({width:c,height:l,data:f},{width:c,height:l,data:i},o>>a),Ga({width:c,height:l,data:i},{width:c,height:l,data:f},o>>a),Qa({width:c,height:l,data:f},{width:c,height:l,data:i},o>>a),Ga({width:c,height:l,data:i},{width:c,height:l,data:f},o>>a),Qa({width:c,height:l,data:f},{width:c,height:l,data:i},o>>a);var d=s(i);if(!Array.isArray(d)){var p=U(i);d=C(0,p,d),(d=M(0,Math.floor(p/d)*d,d)).shift()}return $a().thresholds(d).size([c,l])(i).map(h)}function h(t){return t.value*=Math.pow(2,-2*a),t.coordinates.forEach(d),t}function d(t){t.forEach(p)}function p(t){t.forEach(g)}function g(t){t[0]=t[0]*Math.pow(2,a)-u,t[1]=t[1]*Math.pow(2,a)-u}function v(){return c=r+2*(u=3*o)>>a,l=i+2*u>>a,f}return f.x=function(n){return arguments.length?(t="function"==typeof n?n:Ba(+n),f):t},f.y=function(t){return arguments.length?(n="function"==typeof t?t:Ba(+t),f):n},f.weight=function(t){return arguments.length?(e="function"==typeof t?t:Ba(+t),f):e},f.size=function(t){if(!arguments.length)return[r,i];var n=Math.ceil(t[0]),e=Math.ceil(t[1]);if(!(n>=0||n>=0))throw new Error("invalid size");return r=n,i=e,v()},f.cellSize=function(t){if(!arguments.length)return 1<=1))throw new Error("invalid cell size");return a=Math.floor(Math.log(t)/Math.LN2),v()},f.thresholds=function(t){return arguments.length?(s="function"==typeof t?t:Array.isArray(t)?Ba(qa.call(t)):Ba(t),f):s},f.bandwidth=function(t){if(!arguments.length)return Math.sqrt(o*(o+1));if(!((t=+t)>=0))throw new Error("invalid bandwidth");return o=Math.round((Math.sqrt(4*t*t+1)-1)/2),v()},f}var nu=e(2279);function eu(t){if(!t.ok)throw new Error(t.status+" "+t.statusText);return t.blob()}function ru(t,n){return fetch(t,n).then(eu)}function iu(t){if(!t.ok)throw new Error(t.status+" "+t.statusText);return t.arrayBuffer()}function ou(t,n){return fetch(t,n).then(iu)}function au(t){if(!t.ok)throw new Error(t.status+" "+t.statusText);return t.text()}function uu(t,n){return fetch(t,n).then(au)}function cu(t){return function(n,e,r){return 2===arguments.length&&"function"==typeof e&&(r=e,e=void 0),uu(n,e).then((function(n){return t(n,r)}))}}function lu(t,n,e,r){3===arguments.length&&"function"==typeof e&&(r=e,e=void 0);var i=(0,nu.yv)(t);return uu(n,e).then((function(t){return i.parse(t,r)}))}var su=cu(nu.ue),fu=cu(nu.tJ);function hu(t,n){return new Promise((function(e,r){var i=new Image;for(var o in n)i[o]=n[o];i.onerror=r,i.onload=function(){e(i)},i.src=t}))}function du(t){if(!t.ok)throw new Error(t.status+" "+t.statusText);return t.json()}function pu(t,n){return fetch(t,n).then(du)}function gu(t){return function(n,e){return uu(n,e).then((function(n){return(new DOMParser).parseFromString(n,t)}))}}const vu=gu("application/xml");var yu=gu("text/html"),mu=gu("image/svg+xml");function _u(t,n){var e;function r(){var r,i,o=e.length,a=0,u=0;for(r=0;r=(o=(g+y)/2))?g=o:y=o,(s=e>=(a=(v+m)/2))?v=a:m=a,i=d,!(d=d[f=s<<1|l]))return i[f]=p,t;if(u=+t._x.call(null,d.data),c=+t._y.call(null,d.data),n===u&&e===c)return p.next=d,i?i[f]=p:t._root=p,t;do{i=i?i[f]=new Array(4):t._root=new Array(4),(l=n>=(o=(g+y)/2))?g=o:y=o,(s=e>=(a=(v+m)/2))?v=a:m=a}while((f=s<<1|l)==(h=(c>=a)<<1|u>=o));return i[h]=d,i[f]=p,t}function Mu(t,n,e,r,i){this.node=t,this.x0=n,this.y0=e,this.x1=r,this.y1=i}function Eu(t){return t[0]}function ku(t){return t[1]}function Nu(t,n,e){var r=new Su(null==n?Eu:n,null==e?ku:e,NaN,NaN,NaN,NaN);return null==t?r:r.addAll(t)}function Su(t,n,e,r,i,o){this._x=t,this._y=n,this._x0=e,this._y0=r,this._x1=i,this._y1=o,this._root=void 0}function Tu(t){for(var n={data:t.data},e=n;t=t.next;)e=e.next={data:t.data};return n}var Cu=Nu.prototype=Su.prototype;function Au(t){return t.x+t.vx}function Pu(t){return t.y+t.vy}function Ru(t){var n,e,r=1,i=1;function o(){for(var t,o,u,c,l,s,f,h=n.length,d=0;dc+d||il+d||ou.index){var p=c-a.x-a.vx,g=l-a.y-a.vy,v=p*p+g*g;vt.r&&(t.r=t[n].r)}function u(){if(n){var r,i,o=n.length;for(e=new Array(o),r=0;rs&&(s=r),if&&(f=i));for(st||t>i||r>n||n>o))return this;var a,u,c=i-e,l=this._root;switch(u=(n<(r+o)/2)<<1|t<(e+i)/2){case 0:do{(a=new Array(4))[u]=l,l=a}while(o=r+(c*=2),t>(i=e+c)||n>o);break;case 1:do{(a=new Array(4))[u]=l,l=a}while(o=r+(c*=2),(e=i-c)>t||n>o);break;case 2:do{(a=new Array(4))[u]=l,l=a}while(r=o-(c*=2),t>(i=e+c)||r>n);break;case 3:do{(a=new Array(4))[u]=l,l=a}while(r=o-(c*=2),(e=i-c)>t||r>n)}this._root&&this._root.length&&(this._root=l)}return this._x0=e,this._y0=r,this._x1=i,this._y1=o,this},Cu.data=function(){var t=[];return this.visit((function(n){if(!n.length)do{t.push(n.data)}while(n=n.next)})),t},Cu.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]]},Cu.find=function(t,n,e){var r,i,o,a,u,c,l,s=this._x0,f=this._y0,h=this._x1,d=this._y1,p=[],g=this._root;for(g&&p.push(new Mu(g,s,f,h,d)),null==e?e=1/0:(s=t-e,f=n-e,h=t+e,d=n+e,e*=e);c=p.pop();)if(!(!(g=c.node)||(i=c.x0)>h||(o=c.y0)>d||(a=c.x1)=y)<<1|t>=v)&&(c=p[p.length-1],p[p.length-1]=p[p.length-1-l],p[p.length-1-l]=c)}else{var m=t-+this._x.call(null,g.data),_=n-+this._y.call(null,g.data),b=m*m+_*_;if(b=(u=(p+v)/2))?p=u:v=u,(s=a>=(c=(g+y)/2))?g=c:y=c,n=d,!(d=d[f=s<<1|l]))return this;if(!d.length)break;(n[f+1&3]||n[f+2&3]||n[f+3&3])&&(e=n,h=f)}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):n?(i?n[f]=i:delete n[f],(d=n[0]||n[1]||n[2]||n[3])&&d===(n[3]||n[2]||n[1]||n[0])&&!d.length&&(e?e[h]=d:this._root=d),this):(this._root=i,this)},Cu.removeAll=function(t){for(var n=0,e=t.length;n1?(null==e?u.remove(t):u.set(t,d(e)),n):u.get(t)},find:function(n,e,r){var i,o,a,u,c,l=0,s=t.length;for(null==r?r=1/0:r*=r,l=0;l1?(l.on(t,e),n):l.on(t)}}}function ju(){var t,n,e,r,i=bu(-30),o=1,a=1/0,u=.81;function c(r){var i,o=t.length,a=Nu(t,Du,Lu).visitAfter(s);for(e=r,i=0;i=a)){(t.data!==n||t.next)&&(0===s&&(d+=(s=wu())*s),0===f&&(d+=(f=wu())*f),d1?r[0]+r.slice(2):r,+t.slice(e+1)]}function Wu(t){return(t=Vu(Math.abs(t)))?t[1]:NaN}var Xu,$u=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Gu(t){return new Qu(t)}function Qu(t){if(!(n=$u.exec(t)))throw new Error("invalid format: "+t);var n;this.fill=n[1]||" ",this.align=n[2]||">",this.sign=n[3]||"-",this.symbol=n[4]||"",this.zero=!!n[5],this.width=n[6]&&+n[6],this.comma=!!n[7],this.precision=n[8]&&+n[8].slice(1),this.trim=!!n[9],this.type=n[10]||""}function Zu(t,n){var e=Vu(t,n);if(!e)return t+"";var r=e[0],i=e[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")}Gu.prototype=Qu.prototype,Qu.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.trim?"~":"")+this.type};const Ku={"%":function(t,n){return(100*t).toFixed(n)},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,n){return t.toExponential(n)},f:function(t,n){return t.toFixed(n)},g:function(t,n){return t.toPrecision(n)},o:function(t){return Math.round(t).toString(8)},p:function(t,n){return Zu(100*t,n)},r:Zu,s:function(t,n){var e=Vu(t,n);if(!e)return t+"";var r=e[0],i=e[1],o=i-(Xu=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")+Vu(t,Math.max(0,n+o-1))[0]},X:function(t){return Math.round(t).toString(16).toUpperCase()},x:function(t){return Math.round(t).toString(16)}};function Ju(t){return t}var tc,nc,ec,rc=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function ic(t){var n,e,r=t.grouping&&t.thousands?(n=t.grouping,e=t.thousands,function(t,r){for(var i=t.length,o=[],a=0,u=n[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=n[a=(a+1)%n.length];return o.reverse().join(e)}):Ju,i=t.currency,o=t.decimal,a=t.numerals?function(t){return function(n){return n.replace(/[0-9]/g,(function(n){return t[+n]}))}}(t.numerals):Ju,u=t.percent||"%";function c(t){var n=(t=Gu(t)).fill,e=t.align,c=t.sign,l=t.symbol,s=t.zero,f=t.width,h=t.comma,d=t.precision,p=t.trim,g=t.type;"n"===g?(h=!0,g="g"):Ku[g]||(null==d&&(d=12),p=!0,g="g"),(s||"0"===n&&"="===e)&&(s=!0,n="0",e="=");var v="$"===l?i[0]:"#"===l&&/[boxX]/.test(g)?"0"+g.toLowerCase():"",y="$"===l?i[1]:/[%p]/.test(g)?u:"",m=Ku[g],_=/[defgprs%]/.test(g);function b(t){var i,u,l,b=v,w=y;if("c"===g)w=m(t)+w,t="";else{var x=(t=+t)<0;if(t=m(Math.abs(t),d),p&&(t=function(t){t:for(var n,e=t.length,r=1,i=-1;r0){if(!+t[r])break t;i=0}}return i>0?t.slice(0,i)+t.slice(n+1):t}(t)),x&&0==+t&&(x=!1),b=(x?"("===c?c:"-":"-"===c||"("===c?"":c)+b,w=("s"===g?rc[8+Xu/3]:"")+w+(x&&"("===c?")":""),_)for(i=-1,u=t.length;++i(l=t.charCodeAt(i))||l>57){w=(46===l?o+t.slice(i+1):t.slice(i))+w,t=t.slice(0,i);break}}h&&!s&&(t=r(t,1/0));var M=b.length+t.length+w.length,E=M>1)+b+t+w+E.slice(M);break;default:t=E+b+t+w}return a(t)}return d=null==d?6:/[gprs]/.test(g)?Math.max(1,Math.min(21,d)):Math.max(0,Math.min(20,d)),b.toString=function(){return t+""},b}return{format:c,formatPrefix:function(t,n){var e=c(((t=Gu(t)).type="f",t)),r=3*Math.max(-8,Math.min(8,Math.floor(Wu(n)/3))),i=Math.pow(10,-r),o=rc[8+r/3];return function(t){return e(i*t)+o}}}}function oc(t){return tc=ic(t),nc=tc.format,ec=tc.formatPrefix,tc}function ac(t){return Math.max(0,-Wu(Math.abs(t)))}function uc(t,n){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(Wu(n)/3)))-Wu(Math.abs(t)))}function cc(t,n){return t=Math.abs(t),n=Math.abs(n)-t,Math.max(0,Wu(n)-Wu(t))+1}function lc(){return new sc}function sc(){this.reset()}oc({decimal:".",thousands:",",grouping:[3],currency:["$",""]}),sc.prototype={constructor:sc,reset:function(){this.s=this.t=0},add:function(t){hc(fc,t,this.t),hc(this,fc.s,this.s),this.s?this.t+=fc.t:this.s=fc.t},valueOf:function(){return this.s}};var fc=new sc;function hc(t,n,e){var r=t.s=n+e,i=r-n,o=r-i;t.t=n-o+(e-i)}var dc=1e-6,pc=1e-12,gc=Math.PI,vc=gc/2,yc=gc/4,mc=2*gc,_c=180/gc,bc=gc/180,wc=Math.abs,xc=Math.atan,Mc=Math.atan2,Ec=Math.cos,kc=Math.ceil,Nc=Math.exp,Sc=(Math.floor,Math.log),Tc=Math.pow,Cc=Math.sin,Ac=Math.sign||function(t){return t>0?1:t<0?-1:0},Pc=Math.sqrt,Rc=Math.tan;function Ic(t){return t>1?0:t<-1?gc:Math.acos(t)}function Oc(t){return t>1?vc:t<-1?-vc:Math.asin(t)}function Uc(t){return(t=Cc(t/2))*t}function Dc(){}function Lc(t,n){t&&Fc.hasOwnProperty(t.type)&&Fc[t.type](t,n)}var zc={Feature:function(t,n){Lc(t.geometry,n)},FeatureCollection:function(t,n){for(var e=t.features,r=-1,i=e.length;++r=0?1:-1,i=r*e,o=Ec(n=(n*=bc)/2+yc),a=Cc(n),u=Xc*a,c=Wc*o+u*Ec(i),l=u*r*Cc(i);$c.add(Mc(l,c)),Vc=t,Wc=o,Xc=a}function nl(t){return Gc.reset(),Bc(t,Qc),2*Gc}function el(t){return[Mc(t[1],t[0]),Oc(t[2])]}function rl(t){var n=t[0],e=t[1],r=Ec(e);return[r*Ec(n),r*Cc(n),Cc(e)]}function il(t,n){return t[0]*n[0]+t[1]*n[1]+t[2]*n[2]}function ol(t,n){return[t[1]*n[2]-t[2]*n[1],t[2]*n[0]-t[0]*n[2],t[0]*n[1]-t[1]*n[0]]}function al(t,n){t[0]+=n[0],t[1]+=n[1],t[2]+=n[2]}function ul(t,n){return[t[0]*n,t[1]*n,t[2]*n]}function cl(t){var n=Pc(t[0]*t[0]+t[1]*t[1]+t[2]*t[2]);t[0]/=n,t[1]/=n,t[2]/=n}var ll,sl,fl,hl,dl,pl,gl,vl,yl,ml,_l,bl,wl,xl,Ml,El,kl,Nl,Sl,Tl,Cl,Al,Pl,Rl,Il,Ol,Ul=lc(),Dl={point:Ll,lineStart:Fl,lineEnd:ql,polygonStart:function(){Dl.point=jl,Dl.lineStart=Bl,Dl.lineEnd=Yl,Ul.reset(),Qc.polygonStart()},polygonEnd:function(){Qc.polygonEnd(),Dl.point=Ll,Dl.lineStart=Fl,Dl.lineEnd=ql,$c<0?(ll=-(fl=180),sl=-(hl=90)):Ul>dc?hl=90:Ul<-dc&&(sl=-90),ml[0]=ll,ml[1]=fl}};function Ll(t,n){yl.push(ml=[ll=t,fl=t]),nhl&&(hl=n)}function zl(t,n){var e=rl([t*bc,n*bc]);if(vl){var r=ol(vl,e),i=ol([r[1],-r[0],0],r);cl(i),i=el(i);var o,a=t-dl,u=a>0?1:-1,c=i[0]*_c*u,l=wc(a)>180;l^(u*dlhl&&(hl=o):l^(u*dl<(c=(c+360)%360-180)&&chl&&(hl=n)),l?tHl(ll,fl)&&(fl=t):Hl(t,fl)>Hl(ll,fl)&&(ll=t):fl>=ll?(tfl&&(fl=t)):t>dl?Hl(ll,t)>Hl(ll,fl)&&(fl=t):Hl(t,fl)>Hl(ll,fl)&&(ll=t)}else yl.push(ml=[ll=t,fl=t]);nhl&&(hl=n),vl=e,dl=t}function Fl(){Dl.point=zl}function ql(){ml[0]=ll,ml[1]=fl,Dl.point=Ll,vl=null}function jl(t,n){if(vl){var e=t-dl;Ul.add(wc(e)>180?e+(e>0?360:-360):e)}else pl=t,gl=n;Qc.point(t,n),zl(t,n)}function Bl(){Qc.lineStart()}function Yl(){jl(pl,gl),Qc.lineEnd(),wc(Ul)>dc&&(ll=-(fl=180)),ml[0]=ll,ml[1]=fl,vl=null}function Hl(t,n){return(n-=t)<0?n+360:n}function Vl(t,n){return t[0]-n[0]}function Wl(t,n){return t[0]<=t[1]?t[0]<=n&&n<=t[1]:nHl(r[0],r[1])&&(r[1]=i[1]),Hl(i[0],r[1])>Hl(r[0],r[1])&&(r[0]=i[0])):o.push(r=i);for(a=-1/0,n=0,r=o[e=o.length-1];n<=e;r=i,++n)i=o[n],(u=Hl(r[1],i[0]))>a&&(a=u,ll=i[0],fl=r[1])}return yl=ml=null,ll===1/0||sl===1/0?[[NaN,NaN],[NaN,NaN]]:[[ll,sl],[fl,hl]]}var $l={sphere:Dc,point:Gl,lineStart:Zl,lineEnd:ts,polygonStart:function(){$l.lineStart=ns,$l.lineEnd=es},polygonEnd:function(){$l.lineStart=Zl,$l.lineEnd=ts}};function Gl(t,n){t*=bc;var e=Ec(n*=bc);Ql(e*Ec(t),e*Cc(t),Cc(n))}function Ql(t,n,e){++_l,wl+=(t-wl)/_l,xl+=(n-xl)/_l,Ml+=(e-Ml)/_l}function Zl(){$l.point=Kl}function Kl(t,n){t*=bc;var e=Ec(n*=bc);Rl=e*Ec(t),Il=e*Cc(t),Ol=Cc(n),$l.point=Jl,Ql(Rl,Il,Ol)}function Jl(t,n){t*=bc;var e=Ec(n*=bc),r=e*Ec(t),i=e*Cc(t),o=Cc(n),a=Mc(Pc((a=Il*o-Ol*i)*a+(a=Ol*r-Rl*o)*a+(a=Rl*i-Il*r)*a),Rl*r+Il*i+Ol*o);bl+=a,El+=a*(Rl+(Rl=r)),kl+=a*(Il+(Il=i)),Nl+=a*(Ol+(Ol=o)),Ql(Rl,Il,Ol)}function ts(){$l.point=Gl}function ns(){$l.point=rs}function es(){is(Al,Pl),$l.point=Gl}function rs(t,n){Al=t,Pl=n,t*=bc,n*=bc,$l.point=is;var e=Ec(n);Rl=e*Ec(t),Il=e*Cc(t),Ol=Cc(n),Ql(Rl,Il,Ol)}function is(t,n){t*=bc;var e=Ec(n*=bc),r=e*Ec(t),i=e*Cc(t),o=Cc(n),a=Il*o-Ol*i,u=Ol*r-Rl*o,c=Rl*i-Il*r,l=Pc(a*a+u*u+c*c),s=Oc(l),f=l&&-s/l;Sl+=f*a,Tl+=f*u,Cl+=f*c,bl+=s,El+=s*(Rl+(Rl=r)),kl+=s*(Il+(Il=i)),Nl+=s*(Ol+(Ol=o)),Ql(Rl,Il,Ol)}function os(t){_l=bl=wl=xl=Ml=El=kl=Nl=Sl=Tl=Cl=0,Bc(t,$l);var n=Sl,e=Tl,r=Cl,i=n*n+e*e+r*r;return igc?t-mc:t<-gc?t+mc:t,n]}function ls(t,n,e){return(t%=mc)?n||e?us(fs(t),hs(n,e)):fs(t):n||e?hs(n,e):cs}function ss(t){return function(n,e){return[(n+=t)>gc?n-mc:n<-gc?n+mc:n,e]}}function fs(t){var n=ss(t);return n.invert=ss(-t),n}function hs(t,n){var e=Ec(t),r=Cc(t),i=Ec(n),o=Cc(n);function a(t,n){var a=Ec(n),u=Ec(t)*a,c=Cc(t)*a,l=Cc(n),s=l*e+u*r;return[Mc(c*i-s*o,u*e-l*r),Oc(s*i+c*o)]}return a.invert=function(t,n){var a=Ec(n),u=Ec(t)*a,c=Cc(t)*a,l=Cc(n),s=l*i-c*o;return[Mc(c*i+l*o,u*e+s*r),Oc(s*e-u*r)]},a}function ds(t){function n(n){return(n=t(n[0]*bc,n[1]*bc))[0]*=_c,n[1]*=_c,n}return t=ls(t[0]*bc,t[1]*bc,t.length>2?t[2]*bc:0),n.invert=function(n){return(n=t.invert(n[0]*bc,n[1]*bc))[0]*=_c,n[1]*=_c,n},n}function ps(t,n,e,r,i,o){if(e){var a=Ec(n),u=Cc(n),c=r*e;null==i?(i=n+r*mc,o=n-c/2):(i=gs(a,i),o=gs(a,o),(r>0?io)&&(i+=r*mc));for(var l,s=i;r>0?s>o:s1&&n.push(n.pop().concat(n.shift()))},result:function(){var e=n;return n=[],t=null,e}}}function ms(t,n){return wc(t[0]-n[0])=0;--o)i.point((s=l[o])[0],s[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 ws(t){if(n=t.length){for(var n,e,r=0,i=t[0];++r=0?1:-1,k=E*M,N=k>gc,S=g*w;if(xs.add(Mc(S*E*Cc(k),v*x+S*Ec(k))),a+=N?M+E*mc:M,N^d>=e^_>=e){var T=ol(rl(h),rl(m));cl(T);var C=ol(o,T);cl(C);var A=(N^M>=0?-1:1)*Oc(C[2]);(r>A||r===A&&(T[0]||T[1]))&&(u+=N^M>=0?1:-1)}}return(a<-dc||a0){for(f||(i.polygonStart(),f=!0),i.lineStart(),t=0;t1&&2&c&&h.push(h.pop().concat(h.shift())),a.push(h.filter(ks))}return h}}function ks(t){return t.length>1}function Ns(t,n){return((t=t.x)[0]<0?t[1]-vc-dc:vc-t[1])-((n=n.x)[0]<0?n[1]-vc-dc:vc-n[1])}const Ss=Es((function(){return!0}),(function(t){var n,e=NaN,r=NaN,i=NaN;return{lineStart:function(){t.lineStart(),n=1},point:function(o,a){var u=o>0?gc:-gc,c=wc(o-e);wc(c-gc)0?vc:-vc),t.point(i,r),t.lineEnd(),t.lineStart(),t.point(u,r),t.point(o,r),n=0):i!==u&&c>=gc&&(wc(e-i)dc?xc((Cc(n)*(o=Ec(r))*Cc(e)-Cc(r)*(i=Ec(n))*Cc(t))/(i*o*a)):(n+r)/2}(e,r,o,a),t.point(i,r),t.lineEnd(),t.lineStart(),t.point(u,r),n=0),t.point(e=o,r=a),i=u},lineEnd:function(){t.lineEnd(),e=r=NaN},clean:function(){return 2-n}}}),(function(t,n,e,r){var i;if(null==t)i=e*vc,r.point(-gc,i),r.point(0,i),r.point(gc,i),r.point(gc,0),r.point(gc,-i),r.point(0,-i),r.point(-gc,-i),r.point(-gc,0),r.point(-gc,i);else if(wc(t[0]-n[0])>dc){var o=t[0]0,i=wc(n)>dc;function o(t,e){return Ec(t)*Ec(e)>n}function a(t,e,r){var i=[1,0,0],o=ol(rl(t),rl(e)),a=il(o,o),u=o[0],c=a-u*u;if(!c)return!r&&t;var l=n*a/c,s=-n*u/c,f=ol(i,o),h=ul(i,l);al(h,ul(o,s));var d=f,p=il(h,d),g=il(d,d),v=p*p-g*(il(h,h)-1);if(!(v<0)){var y=Pc(v),m=ul(d,(-p-y)/g);if(al(m,h),m=el(m),!r)return m;var _,b=t[0],w=e[0],x=t[1],M=e[1];w0^m[1]<(wc(m[0]-b)gc^(b<=m[0]&&m[0]<=w)){var N=ul(d,(-p+y)/g);return al(N,h),[m,el(N)]}}}function u(n,e){var i=r?t:gc-t,o=0;return n<-i?o|=1:n>i&&(o|=2),e<-i?o|=4:e>i&&(o|=8),o}return Es(o,(function(t){var n,e,c,l,s;return{lineStart:function(){l=c=!1,s=1},point:function(f,h){var d,p=[f,h],g=o(f,h),v=r?g?0:u(f,h):g?u(f+(f<0?gc:-gc),h):0;if(!n&&(l=c=g)&&t.lineStart(),g!==c&&(!(d=a(n,p))||ms(n,d)||ms(p,d))&&(p[0]+=dc,p[1]+=dc,g=o(p[0],p[1])),g!==c)s=0,g?(t.lineStart(),d=a(p,n),t.point(d[0],d[1])):(d=a(n,p),t.point(d[0],d[1]),t.lineEnd()),n=d;else if(i&&n&&r^g){var y;v&e||!(y=a(p,n,!0))||(s=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])))}!g||n&&ms(n,p)||t.point(p[0],p[1]),n=p,c=g,e=v},lineEnd:function(){c&&t.lineEnd(),n=null},clean:function(){return s|(l&&c)<<1}}}),(function(n,r,i,o){ps(o,t,e,i,n,r)}),r?[0,-t]:[-gc,t-gc])}var Cs=1e9,As=-Cs;function Ps(t,n,e,r){function i(i,o){return t<=i&&i<=e&&n<=o&&o<=r}function o(i,o,u,l){var s=0,f=0;if(null==i||(s=a(i,u))!==(f=a(o,u))||c(i,o)<0^u>0)do{l.point(0===s||3===s?t:e,s>1?r:n)}while((s=(s+u+4)%4)!==f);else l.point(o[0],o[1])}function a(r,i){return wc(r[0]-t)0?0:3:wc(r[0]-e)0?2:1:wc(r[1]-n)0?1:0:i>0?3:2}function u(t,n){return c(t.x,n.x)}function c(t,n){var e=a(t,1),r=a(n,1);return e!==r?e-r:0===e?n[1]-t[1]:1===e?t[0]-n[0]:2===e?t[1]-n[1]:n[0]-t[0]}return function(a){var c,l,s,f,h,d,p,g,v,y,m,_=a,b=ys(),w={point:x,lineStart:function(){w.point=M,l&&l.push(s=[]),y=!0,v=!1,p=g=NaN},lineEnd:function(){c&&(M(f,h),d&&v&&b.rejoin(),c.push(b.result())),w.point=x,v&&_.lineEnd()},polygonStart:function(){_=b,c=[],l=[],m=!0},polygonEnd:function(){var n=function(){for(var n=0,e=0,i=l.length;er&&(h-o)*(r-a)>(d-a)*(t-o)&&++n:d<=r&&(h-o)*(r-a)<(d-a)*(t-o)&&--n;return n}(),e=m&&n,i=(c=z(c)).length;(e||i)&&(a.polygonStart(),e&&(a.lineStart(),o(null,null,1,a),a.lineEnd()),i&&bs(c,u,n,o,a),a.polygonEnd()),_=a,c=l=s=null}};function x(t,n){i(t,n)&&_.point(t,n)}function M(o,a){var u=i(o,a);if(l&&s.push([o,a]),y)f=o,h=a,d=u,y=!1,u&&(_.lineStart(),_.point(o,a));else if(u&&v)_.point(o,a);else{var c=[p=Math.max(As,Math.min(Cs,p)),g=Math.max(As,Math.min(Cs,g))],b=[o=Math.max(As,Math.min(Cs,o)),a=Math.max(As,Math.min(Cs,a))];!function(t,n,e,r,i,o){var a,u=t[0],c=t[1],l=0,s=1,f=n[0]-u,h=n[1]-c;if(a=e-u,f||!(a>0)){if(a/=f,f<0){if(a0){if(a>s)return;a>l&&(l=a)}if(a=i-u,f||!(a<0)){if(a/=f,f<0){if(a>s)return;a>l&&(l=a)}else if(f>0){if(a0)){if(a/=h,h<0){if(a0){if(a>s)return;a>l&&(l=a)}if(a=o-c,h||!(a<0)){if(a/=h,h<0){if(a>s)return;a>l&&(l=a)}else if(h>0){if(a0&&(t[0]=u+l*f,t[1]=c+l*h),s<1&&(n[0]=u+s*f,n[1]=c+s*h),!0}}}}}(c,b,t,n,e,r)?u&&(_.lineStart(),_.point(o,a),m=!1):(v||(_.lineStart(),_.point(c[0],c[1])),_.point(b[0],b[1]),u||_.lineEnd(),m=!1)}p=o,g=a,v=u}return w}}function Rs(){var t,n,e,r=0,i=0,o=960,a=500;return e={stream:function(e){return t&&n===e?t:t=Ps(r,i,o,a)(n=e)},extent:function(u){return arguments.length?(r=+u[0][0],i=+u[0][1],o=+u[1][0],a=+u[1][1],t=n=null,e):[[r,i],[o,a]]}}}var Is,Os,Us,Ds=lc(),Ls={sphere:Dc,point:Dc,lineStart:function(){Ls.point=Fs,Ls.lineEnd=zs},lineEnd:Dc,polygonStart:Dc,polygonEnd:Dc};function zs(){Ls.point=Ls.lineEnd=Dc}function Fs(t,n){Is=t*=bc,Os=Cc(n*=bc),Us=Ec(n),Ls.point=qs}function qs(t,n){t*=bc;var e=Cc(n*=bc),r=Ec(n),i=wc(t-Is),o=Ec(i),a=r*Cc(i),u=Us*e-Os*r*o,c=Os*e+Us*r*o;Ds.add(Mc(Pc(a*a+u*u),c)),Is=t,Os=e,Us=r}function js(t){return Ds.reset(),Bc(t,Ls),+Ds}var Bs=[null,null],Ys={type:"LineString",coordinates:Bs};function Hs(t,n){return Bs[0]=t,Bs[1]=n,js(Ys)}var Vs={Feature:function(t,n){return Xs(t.geometry,n)},FeatureCollection:function(t,n){for(var e=t.features,r=-1,i=e.length;++rdc})).map(c)).concat(M(kc(o/d)*d,i,d).filter((function(t){return wc(t%g)>dc})).map(l))}return y.lines=function(){return m().map((function(t){return{type:"LineString",coordinates:t}}))},y.outline=function(){return{type:"Polygon",coordinates:[s(r).concat(f(a).slice(1),s(e).reverse().slice(1),f(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],e=+t[1][0],u=+t[0][1],a=+t[1][1],r>e&&(t=r,r=e,e=t),u>a&&(t=u,u=a,a=t),y.precision(v)):[[r,u],[e,a]]},y.extentMinor=function(e){return arguments.length?(n=+e[0][0],t=+e[1][0],o=+e[0][1],i=+e[1][1],n>t&&(e=n,n=t,t=e),o>i&&(e=o,o=i,i=e),y.precision(v)):[[n,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],g=+t[1],y):[p,g]},y.stepMinor=function(t){return arguments.length?(h=+t[0],d=+t[1],y):[h,d]},y.precision=function(h){return arguments.length?(v=+h,c=tf(o,i,90),l=nf(n,t,v),s=tf(u,a,90),f=nf(r,e,v),y):v},y.extentMajor([[-180,-90+dc],[180,90-dc]]).extentMinor([[-180,-80-dc],[180,80+dc]])}function rf(){return ef()()}function of(t,n){var e=t[0]*bc,r=t[1]*bc,i=n[0]*bc,o=n[1]*bc,a=Ec(r),u=Cc(r),c=Ec(o),l=Cc(o),s=a*Ec(e),f=a*Cc(e),h=c*Ec(i),d=c*Cc(i),p=2*Oc(Pc(Uc(o-r)+a*c*Uc(i-e))),g=Cc(p),v=p?function(t){var n=Cc(t*=p)/g,e=Cc(p-t)/g,r=e*s+n*h,i=e*f+n*d,o=e*u+n*l;return[Mc(i,r)*_c,Mc(o,Pc(r*r+i*i))*_c]}:function(){return[e*_c,r*_c]};return v.distance=p,v}function af(t){return t}var uf,cf,lf,sf,ff=lc(),hf=lc(),df={point:Dc,lineStart:Dc,lineEnd:Dc,polygonStart:function(){df.lineStart=pf,df.lineEnd=yf},polygonEnd:function(){df.lineStart=df.lineEnd=df.point=Dc,ff.add(wc(hf)),hf.reset()},result:function(){var t=ff/2;return ff.reset(),t}};function pf(){df.point=gf}function gf(t,n){df.point=vf,uf=lf=t,cf=sf=n}function vf(t,n){hf.add(sf*t-lf*n),lf=t,sf=n}function yf(){vf(uf,cf)}const mf=df;var _f=1/0,bf=_f,wf=-_f,xf=wf,Mf={point:function(t,n){t<_f&&(_f=t),t>wf&&(wf=t),nxf&&(xf=n)},lineStart:Dc,lineEnd:Dc,polygonStart:Dc,polygonEnd:Dc,result:function(){var t=[[_f,bf],[wf,xf]];return wf=xf=-(bf=_f=1/0),t}};const Ef=Mf;var kf,Nf,Sf,Tf,Cf=0,Af=0,Pf=0,Rf=0,If=0,Of=0,Uf=0,Df=0,Lf=0,zf={point:Ff,lineStart:qf,lineEnd:Yf,polygonStart:function(){zf.lineStart=Hf,zf.lineEnd=Vf},polygonEnd:function(){zf.point=Ff,zf.lineStart=qf,zf.lineEnd=Yf},result:function(){var t=Lf?[Uf/Lf,Df/Lf]:Of?[Rf/Of,If/Of]:Pf?[Cf/Pf,Af/Pf]:[NaN,NaN];return Cf=Af=Pf=Rf=If=Of=Uf=Df=Lf=0,t}};function Ff(t,n){Cf+=t,Af+=n,++Pf}function qf(){zf.point=jf}function jf(t,n){zf.point=Bf,Ff(Sf=t,Tf=n)}function Bf(t,n){var e=t-Sf,r=n-Tf,i=Pc(e*e+r*r);Rf+=i*(Sf+t)/2,If+=i*(Tf+n)/2,Of+=i,Ff(Sf=t,Tf=n)}function Yf(){zf.point=Ff}function Hf(){zf.point=Wf}function Vf(){Xf(kf,Nf)}function Wf(t,n){zf.point=Xf,Ff(kf=Sf=t,Nf=Tf=n)}function Xf(t,n){var e=t-Sf,r=n-Tf,i=Pc(e*e+r*r);Rf+=i*(Sf+t)/2,If+=i*(Tf+n)/2,Of+=i,Uf+=(i=Tf*t-Sf*n)*(Sf+t),Df+=i*(Tf+n),Lf+=3*i,Ff(Sf=t,Tf=n)}const $f=zf;function Gf(t){this._context=t}Gf.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,n){switch(this._point){case 0:this._context.moveTo(t,n),this._point=1;break;case 1:this._context.lineTo(t,n);break;default:this._context.moveTo(t+this._radius,n),this._context.arc(t,n,this._radius,0,mc)}},result:Dc};var Qf,Zf,Kf,Jf,th,nh=lc(),eh={point:Dc,lineStart:function(){eh.point=rh},lineEnd:function(){Qf&&ih(Zf,Kf),eh.point=Dc},polygonStart:function(){Qf=!0},polygonEnd:function(){Qf=null},result:function(){var t=+nh;return nh.reset(),t}};function rh(t,n){eh.point=ih,Zf=Jf=t,Kf=th=n}function ih(t,n){Jf-=t,th-=n,nh.add(Pc(Jf*Jf+th*th)),Jf=t,th=n}const oh=eh;function ah(){this._string=[]}function uh(t){return"m0,"+t+"a"+t+","+t+" 0 1,1 0,"+-2*t+"a"+t+","+t+" 0 1,1 0,"+2*t+"z"}function ch(t,n){var e,r,i=4.5;function o(t){return t&&("function"==typeof i&&r.pointRadius(+i.apply(this,arguments)),Bc(t,e(r))),r.result()}return o.area=function(t){return Bc(t,e(mf)),mf.result()},o.measure=function(t){return Bc(t,e(oh)),oh.result()},o.bounds=function(t){return Bc(t,e(Ef)),Ef.result()},o.centroid=function(t){return Bc(t,e($f)),$f.result()},o.projection=function(n){return arguments.length?(e=null==n?(t=null,af):(t=n).stream,o):t},o.context=function(t){return arguments.length?(r=null==t?(n=null,new ah):new Gf(n=t),"function"!=typeof i&&r.pointRadius(i),o):n},o.pointRadius=function(t){return arguments.length?(i="function"==typeof t?t:(r.pointRadius(+t),+t),o):i},o.projection(t).context(n)}function lh(t){return{stream:sh(t)}}function sh(t){return function(n){var e=new fh;for(var r in t)e[r]=t[r];return e.stream=n,e}}function fh(){}function hh(t,n,e){var r=t.clipExtent&&t.clipExtent();return t.scale(150).translate([0,0]),null!=r&&t.clipExtent(null),Bc(e,t.stream(Ef)),n(Ef.result()),null!=r&&t.clipExtent(r),t}function dh(t,n,e){return hh(t,(function(e){var r=n[1][0]-n[0][0],i=n[1][1]-n[0][1],o=Math.min(r/(e[1][0]-e[0][0]),i/(e[1][1]-e[0][1])),a=+n[0][0]+(r-o*(e[1][0]+e[0][0]))/2,u=+n[0][1]+(i-o*(e[1][1]+e[0][1]))/2;t.scale(150*o).translate([a,u])}),e)}function ph(t,n,e){return dh(t,[[0,0],n],e)}function gh(t,n,e){return hh(t,(function(e){var r=+n,i=r/(e[1][0]-e[0][0]),o=(r-i*(e[1][0]+e[0][0]))/2,a=-i*e[0][1];t.scale(150*i).translate([o,a])}),e)}function vh(t,n,e){return hh(t,(function(e){var r=+n,i=r/(e[1][1]-e[0][1]),o=-i*e[0][0],a=(r-i*(e[1][1]+e[0][1]))/2;t.scale(150*i).translate([o,a])}),e)}ah.prototype={_radius:4.5,_circle:uh(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,n){switch(this._point){case 0:this._string.push("M",t,",",n),this._point=1;break;case 1:this._string.push("L",t,",",n);break;default:null==this._circle&&(this._circle=uh(this._radius)),this._string.push("M",t,",",n,this._circle)}},result:function(){if(this._string.length){var t=this._string.join("");return this._string=[],t}return null}},fh.prototype={constructor:fh,point:function(t,n){this.stream.point(t,n)},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 yh=16,mh=Ec(30*bc);function _h(t,n){return+n?function(t,n){function e(r,i,o,a,u,c,l,s,f,h,d,p,g,v){var y=l-r,m=s-i,_=y*y+m*m;if(_>4*n&&g--){var b=a+h,w=u+d,x=c+p,M=Pc(b*b+w*w+x*x),E=Oc(x/=M),k=wc(wc(x)-1)n||wc((y*C+m*A)/_-.5)>.3||a*h+u*d+c*p2?t[2]%360*bc:0,S()):[v*_c,y*_c,m*_c]},k.angle=function(t){return arguments.length?(_=t%360*bc,S()):_*_c},k.precision=function(t){return arguments.length?(a=_h(u,E=t*t),T()):Pc(E)},k.fitExtent=function(t,n){return dh(k,t,n)},k.fitSize=function(t,n){return ph(k,t,n)},k.fitWidth=function(t,n){return gh(k,t,n)},k.fitHeight=function(t,n){return vh(k,t,n)},function(){return n=t.apply(this,arguments),k.invert=n.invert&&N,S()}}function kh(t){var n=0,e=gc/3,r=Eh(t),i=r(n,e);return i.parallels=function(t){return arguments.length?r(n=t[0]*bc,e=t[1]*bc):[n*_c,e*_c]},i}function Nh(t,n){var e=Cc(t),r=(e+Cc(n))/2;if(wc(r)=.12&&i<.234&&r>=-.425&&r<-.214?u:i>=.166&&i<.234&&r>=-.214&&r<-.115?c:a).invert(t)},s.stream=function(e){return t&&n===e?t:(r=[a.stream(n=e),u.stream(e),c.stream(e)],i=r.length,t={point:function(t,n){for(var e=-1;++e0?n<-vc+dc&&(n=-vc+dc):n>vc-dc&&(n=vc-dc);var e=i/Tc(Fh(n),r);return[e*Cc(r*t),i-e*Ec(r*t)]}return o.invert=function(t,n){var e=i-n,o=Ac(r)*Pc(t*t+e*e);return[Mc(t,wc(e))/r*Ac(e),2*xc(Tc(i/o,1/r))-vc]},o}function jh(){return kh(qh).scale(109.5).parallels([30,30])}function Bh(t,n){return[t,n]}function Yh(){return Mh(Bh).scale(152.63)}function Hh(t,n){var e=Ec(t),r=t===n?Cc(t):(e-Ec(n))/(n-t),i=e/r+t;if(wc(r)2?t[2]+90:90]):[(t=e())[0],t[1],t[2]-90]},e([0,0,90]).scale(159.155)}function fd(t,n){return t.parent===n.parent?1:2}function hd(t,n){return t+n.x}function dd(t,n){return Math.max(t,n.y)}function pd(){var t=fd,n=1,e=1,r=!1;function i(i){var o,a=0;i.eachAfter((function(n){var e=n.children;e?(n.x=function(t){return t.reduce(hd,0)/t.length}(e),n.y=function(t){return 1+t.reduce(dd,0)}(e)):(n.x=o?a+=t(n,o):0,n.y=0,o=n)}));var u=function(t){for(var n;n=t.children;)t=n[0];return t}(i),c=function(t){for(var n;n=t.children;)t=n[n.length-1];return t}(i),l=u.x-t(u,c)/2,s=c.x+t(c,u)/2;return i.eachAfter(r?function(t){t.x=(t.x-i.x)*n,t.y=(i.y-t.y)*e}:function(t){t.x=(t.x-l)/(s-l)*n,t.y=(1-(i.y?t.y/i.y:1))*e})}return i.separation=function(n){return arguments.length?(t=n,i):t},i.size=function(t){return arguments.length?(r=!1,n=+t[0],e=+t[1],i):r?null:[n,e]},i.nodeSize=function(t){return arguments.length?(r=!0,n=+t[0],e=+t[1],i):r?[n,e]:null},i}function gd(t){var n=0,e=t.children,r=e&&e.length;if(r)for(;--r>=0;)n+=e[r].value;else n=1;t.value=n}function vd(t,n){var e,r,i,o,a,u=new bd(t),c=+t.value&&(u.value=t.value),l=[u];for(null==n&&(n=yd);e=l.pop();)if(c&&(e.value=+e.data.value),(i=n(e.data))&&(a=i.length))for(e.children=new Array(a),o=a-1;o>=0;--o)l.push(r=e.children[o]=new bd(i[o])),r.parent=e,r.depth=e.depth+1;return u.eachBefore(_d)}function yd(t){return t.children}function md(t){t.data=t.data.data}function _d(t){var n=0;do{t.height=n}while((t=t.parent)&&t.height<++n)}function bd(t){this.data=t,this.depth=this.height=0,this.parent=null}Zh.invert=function(t,n){for(var e,r=n,i=r*r,o=i*i*i,a=0;a<12&&(o=(i=(r-=e=(r*(Wh+Xh*i+o*($h+Gh*i))-n)/(Wh+3*Xh*i+o*(7*$h+9*Gh*i)))*r)*i*i,!(wc(e)dc&&--i>0);return[t/(.8707+(o=r*r)*(o*(o*o*o*(.003971-.001529*o)-.013791)-.131979)),r]},od.invert=Ph(Oc),ud.invert=Ph((function(t){return 2*xc(t)})),ld.invert=function(t,n){return[-n,2*xc(Nc(t))-vc]},bd.prototype=vd.prototype={constructor:bd,count:function(){return this.eachAfter(gd)},each:function(t){var n,e,r,i,o=this,a=[o];do{for(n=a.reverse(),a=[];o=n.pop();)if(t(o),e=o.children)for(r=0,i=e.length;r=0;--e)i.push(n[e]);return this},sum:function(t){return this.eachAfter((function(n){for(var e=+t(n.data)||0,r=n.children,i=r&&r.length;--i>=0;)e+=r[i].value;n.value=e}))},sort:function(t){return this.eachBefore((function(n){n.children&&n.children.sort(t)}))},path:function(t){for(var n=this,e=function(t,n){if(t===n)return t;var e=t.ancestors(),r=n.ancestors(),i=null;for(t=e.pop(),n=r.pop();t===n;)i=t,t=e.pop(),n=r.pop();return i}(n,t),r=[n];n!==e;)n=n.parent,r.push(n);for(var i=r.length;t!==e;)r.splice(i,0,t),t=t.parent;return r},ancestors:function(){for(var t=this,n=[t];t=t.parent;)n.push(t);return n},descendants:function(){var t=[];return this.each((function(n){t.push(n)})),t},leaves:function(){var t=[];return this.eachBefore((function(n){n.children||t.push(n)})),t},links:function(){var t=this,n=[];return t.each((function(e){e!==t&&n.push({source:e.parent,target:e})})),n},copy:function(){return vd(this).eachBefore(md)}};var wd=Array.prototype.slice;function xd(t){for(var n,e,r=0,i=(t=function(t){for(var n,e,r=t.length;r;)e=Math.random()*r--|0,n=t[r],t[r]=t[e],t[e]=n;return t}(wd.call(t))).length,o=[];r0&&e*e>r*r+i*i}function Nd(t,n){for(var e=0;e(a*=a)?(r=(l+a-i)/(2*l),o=Math.sqrt(Math.max(0,a/l-r*r)),e.x=t.x-r*u-o*c,e.y=t.y-r*c+o*u):(r=(l+i-a)/(2*l),o=Math.sqrt(Math.max(0,i/l-r*r)),e.x=n.x+r*u-o*c,e.y=n.y+r*c+o*u)):(e.x=n.x+e.r,e.y=n.y)}function Pd(t,n){var e=t.r+n.r-1e-6,r=n.x-t.x,i=n.y-t.y;return e>0&&e*e>r*r+i*i}function Rd(t){var n=t._,e=t.next._,r=n.r+e.r,i=(n.x*e.r+e.x*n.r)/r,o=(n.y*e.r+e.y*n.r)/r;return i*i+o*o}function Id(t){this._=t,this.next=null,this.previous=null}function Od(t){if(!(i=t.length))return 0;var n,e,r,i,o,a,u,c,l,s,f;if((n=t[0]).x=0,n.y=0,!(i>1))return n.r;if(e=t[1],n.x=-e.r,e.x=n.r,e.y=0,!(i>2))return n.r+e.r;Ad(e,n,r=t[2]),n=new Id(n),e=new Id(e),r=new Id(r),n.next=r.previous=e,e.next=n.previous=r,r.next=e.previous=n;t:for(u=3;u0)throw new Error("cycle");return o}return e.id=function(n){return arguments.length?(t=Dd(n),e):t},e.parentId=function(t){return arguments.length?(n=Dd(t),e):n},e}function Jd(t,n){return t.parent===n.parent?1:2}function tp(t){var n=t.children;return n?n[0]:t.t}function np(t){var n=t.children;return n?n[n.length-1]:t.t}function ep(t,n,e){var r=e/(n.i-t.i);n.c-=r,n.s+=e,t.c+=r,n.z+=e,n.m+=e}function rp(t,n,e){return t.a.parent===n.parent?t.a:e}function ip(t,n){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=n}function op(){var t=Jd,n=1,e=1,r=null;function i(i){var c=function(t){for(var n,e,r,i,o,a=new ip(t,0),u=[a];n=u.pop();)if(r=n._.children)for(n.children=new Array(o=r.length),i=o-1;i>=0;--i)u.push(e=n.children[i]=new ip(r[i],i)),e.parent=n;return(a.parent=new ip(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,s=i,f=i;i.eachBefore((function(t){t.xs.x&&(s=t),t.depth>f.depth&&(f=t)}));var h=l===s?1:t(l,s)/2,d=h-l.x,p=n/(s.x+h+d),g=e/(f.depth||1);i.eachBefore((function(t){t.x=(t.x+d)*p,t.y=t.depth*g}))}return i}function o(n){var e=n.children,r=n.parent.children,i=n.i?r[n.i-1]:null;if(e){!function(t){for(var n,e=0,r=0,i=t.children,o=i.length;--o>=0;)(n=i[o]).z+=e,n.m+=e,e+=n.s+(r+=n.c)}(n);var o=(e[0].z+e[e.length-1].z)/2;i?(n.z=i.z+t(n._,i._),n.m=n.z-o):n.z=o}else i&&(n.z=i.z+t(n._,i._));n.parent.A=function(n,e,r){if(e){for(var i,o=n,a=n,u=e,c=o.parent.children[0],l=o.m,s=a.m,f=u.m,h=c.m;u=np(u),o=tp(o),u&&o;)c=tp(c),(a=np(a)).a=n,(i=u.z+f-o.z-l+t(u._,o._))>0&&(ep(rp(u,n,r),n,i),l+=i,s+=i),f+=u.m,l+=o.m,h+=c.m,s+=a.m;u&&!np(a)&&(a.t=u,a.m+=f-s),o&&!tp(c)&&(c.t=o,c.m+=l-h,r=n)}return r}(n,i,n.parent.A||r[0])}function a(t){t._.x=t.z+t.parent.m,t.m+=t.parent.m}function u(t){t.x*=n,t.y=t.depth*e}return i.separation=function(n){return arguments.length?(t=n,i):t},i.size=function(t){return arguments.length?(r=!1,n=+t[0],e=+t[1],i):r?null:[n,e]},i.nodeSize=function(t){return arguments.length?(r=!0,n=+t[0],e=+t[1],i):r?[n,e]:null},i}function ap(t,n,e,r,i){for(var o,a=t.children,u=-1,c=a.length,l=t.value&&(i-e)/t.value;++uh&&(h=u),v=s*s*g,(d=Math.max(h/v,v/f))>p){s-=u;break}p=d}y.push(a={value:s,dice:c1?n:1)},e}(up);function sp(){var t=lp,n=!1,e=1,r=1,i=[0],o=Ld,a=Ld,u=Ld,c=Ld,l=Ld;function s(t){return t.x0=t.y0=0,t.x1=e,t.y1=r,t.eachBefore(f),i=[0],n&&t.eachBefore(Hd),t}function f(n){var e=i[n.depth],r=n.x0+e,s=n.y0+e,f=n.x1-e,h=n.y1-e;f=e-1){var s=u[n];return s.x0=i,s.y0=o,s.x1=a,void(s.y1=c)}for(var f=l[n],h=r/2+f,d=n+1,p=e-1;d>>1;l[g]c-o){var m=(i*y+a*v)/r;t(n,d,v,i,o,m,c),t(d,e,y,m,o,a,c)}else{var _=(o*y+c*v)/r;t(n,d,v,i,o,a,_),t(d,e,y,i,_,a,c)}}(0,c,t.value,n,e,r,i)}function hp(t,n,e,r,i){(1&t.depth?ap:Vd)(t,n,e,r,i)}const dp=function t(n){function e(t,e,r,i,o){if((a=t._squarify)&&a.ratio===n)for(var a,u,c,l,s,f=-1,h=a.length,d=t.value;++f1?n:1)},e}(up);function pp(t){for(var n,e=-1,r=t.length,i=t[r-1],o=0;++e1&&vp(t[e[r-2]],t[e[r-1]],t[i])<=0;)--r;e[r++]=i}return e.slice(0,r)}function _p(t){if((e=t.length)<3)return null;var n,e,r=new Array(e),i=new Array(e);for(n=0;n=0;--n)l.push(t[r[o[n]][2]]);for(n=+u;nu!=l>u&&a<(c-e)*(u-r)/(l-r)+e&&(s=!s),c=e,l=r;return s}function wp(t){for(var n,e,r=-1,i=t.length,o=t[i-1],a=o[0],u=o[1],c=0;++r1);return t+e*o*Math.sqrt(-2*Math.log(i)/i)}}return e.source=t,e}(xp),kp=function t(n){function e(){var t=Ep.source(n).apply(this,arguments);return function(){return Math.exp(t())}}return e.source=t,e}(xp),Np=function t(n){function e(t){return function(){for(var e=0,r=0;r2?Bp:jp,r=i=null,s}function s(n){return(r||(r=e(o,a,c?function(t){return function(n,e){var r=t(n=+n,e=+e);return function(t){return t<=n?0:t>=e?1:r(t)}}}(t):t,u)))(+n)}return s.invert=function(t){return(i||(i=e(a,o,qp,c?function(t){return function(n,e){var r=t(n=+n,e=+e);return function(t){return t<=0?n:t>=1?e:r(t)}}}(n):n)))(+t)},s.domain=function(t){return arguments.length?(o=Ap.call(t,zp),l()):o.slice()},s.range=function(t){return arguments.length?(a=Pp.call(t),l()):a.slice()},s.rangeRound=function(t){return a=Pp.call(t),u=br,l()},s.clamp=function(t){return arguments.length?(c=!!t,l()):c},s.interpolate=function(t){return arguments.length?(u=t,l()):u},l()}function Vp(t){var n=t.domain;return t.ticks=function(t){var e=n();return S(e[0],e[e.length-1],null==t?10:t)},t.tickFormat=function(t,e){return function(t,n,e){var r,i=t[0],o=t[t.length-1],a=C(i,o,null==n?10:n);switch((e=Gu(null==e?",f":e)).type){case"s":var u=Math.max(Math.abs(i),Math.abs(o));return null!=e.precision||isNaN(r=uc(a,u))||(e.precision=r),ec(e,u);case"":case"e":case"g":case"p":case"r":null!=e.precision||isNaN(r=cc(a,Math.max(Math.abs(i),Math.abs(o))))||(e.precision=r-("e"===e.type));break;case"f":case"%":null!=e.precision||isNaN(r=ac(a))||(e.precision=r-2*("%"===e.type))}return nc(e)}(n(),t,e)},t.nice=function(e){null==e&&(e=10);var r,i=n(),o=0,a=i.length-1,u=i[o],c=i[a];return c0?r=T(u=Math.floor(u/r)*r,c=Math.ceil(c/r)*r,e):r<0&&(r=T(u=Math.ceil(u*r)/r,c=Math.floor(c*r)/r,e)),r>0?(i[o]=Math.floor(u/r)*r,i[a]=Math.ceil(c/r)*r,n(i)):r<0&&(i[o]=Math.ceil(u*r)/r,i[a]=Math.floor(c*r)/r,n(i)),t},t}function Wp(){var t=Hp(qp,hr);return t.copy=function(){return Yp(t,Wp())},Vp(t)}function Xp(){var t=[0,1];function n(t){return+t}return n.invert=n,n.domain=n.range=function(e){return arguments.length?(t=Ap.call(e,zp),n):t.slice()},n.copy=function(){return Xp().domain(t)},Vp(n)}function $p(t,n){var e,r=0,i=(t=t.slice()).length-1,o=t[r],a=t[i];return a0){for(;hc)break;g.push(f)}}else for(;h=1;--s)if(!((f=l*s)c)break;g.push(f)}}else g=S(h,d,Math.min(d-h,p)).map(i);return o?g.reverse():g},t.tickFormat=function(n,o){if(null==o&&(o=10===e?".0e":","),"function"!=typeof o&&(o=nc(o)),n===1/0)return o;null==n&&(n=10);var a=Math.max(1,e*n/t.ticks().length);return function(t){var n=t/i(Math.round(r(t)));return n*e0?e[i-1]:t[0],i=e?[r[e-1],n]:[r[a-1],r[a]]},o.copy=function(){return ag().domain([t,n]).range(i)},Vp(o)}function ug(){var t=[.5],n=[0,1],e=1;function r(r){if(r<=r)return n[l(t,r,0,e)]}return r.domain=function(i){return arguments.length?(t=Pp.call(i),e=Math.min(t.length,n.length-1),r):t.slice()},r.range=function(i){return arguments.length?(n=Pp.call(i),e=Math.min(t.length,n.length-1),r):n.slice()},r.invertExtent=function(e){var r=n.indexOf(e);return[t[r-1],t[r]]},r.copy=function(){return ug().domain(t).range(n)},r}var cg=new Date,lg=new Date;function sg(t,n,e,r){function i(n){return t(n=new Date(+n)),n}return i.floor=i,i.ceil=function(e){return t(e=new Date(e-1)),n(e,1),t(e),e},i.round=function(t){var n=i(t),e=i.ceil(t);return t-n0))return u;do{u.push(a=new Date(+e)),n(e,o),t(e)}while(a=n)for(;t(n),!e(n);)n.setTime(n-1)}),(function(t,r){if(t>=t)if(r<0)for(;++r<=0;)for(;n(t,-1),!e(t););else for(;--r>=0;)for(;n(t,1),!e(t););}))},e&&(i.count=function(n,r){return cg.setTime(+n),lg.setTime(+r),t(cg),t(lg),Math.floor(e(cg,lg))},i.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?i.filter(r?function(n){return r(n)%t==0}:function(n){return i.count(0,n)%t==0}):i:null}),i}var fg=sg((function(){}),(function(t,n){t.setTime(+t+n)}),(function(t,n){return n-t}));fg.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?sg((function(n){n.setTime(Math.floor(n/t)*t)}),(function(n,e){n.setTime(+n+e*t)}),(function(n,e){return(e-n)/t})):fg:null};const hg=fg;var dg=fg.range,pg=1e3,gg=6e4,vg=36e5,yg=864e5,mg=6048e5,_g=sg((function(t){t.setTime(Math.floor(t/pg)*pg)}),(function(t,n){t.setTime(+t+n*pg)}),(function(t,n){return(n-t)/pg}),(function(t){return t.getUTCSeconds()}));const bg=_g;var wg=_g.range,xg=sg((function(t){t.setTime(Math.floor(t/gg)*gg)}),(function(t,n){t.setTime(+t+n*gg)}),(function(t,n){return(n-t)/gg}),(function(t){return t.getMinutes()}));const Mg=xg;var Eg=xg.range,kg=sg((function(t){var n=t.getTimezoneOffset()*gg%vg;n<0&&(n+=vg),t.setTime(Math.floor((+t-n)/vg)*vg+n)}),(function(t,n){t.setTime(+t+n*vg)}),(function(t,n){return(n-t)/vg}),(function(t){return t.getHours()}));const Ng=kg;var Sg=kg.range,Tg=sg((function(t){t.setHours(0,0,0,0)}),(function(t,n){t.setDate(t.getDate()+n)}),(function(t,n){return(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*gg)/yg}),(function(t){return t.getDate()-1}));const Cg=Tg;var Ag=Tg.range;function Pg(t){return sg((function(n){n.setDate(n.getDate()-(n.getDay()+7-t)%7),n.setHours(0,0,0,0)}),(function(t,n){t.setDate(t.getDate()+7*n)}),(function(t,n){return(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*gg)/mg}))}var Rg=Pg(0),Ig=Pg(1),Og=Pg(2),Ug=Pg(3),Dg=Pg(4),Lg=Pg(5),zg=Pg(6),Fg=Rg.range,qg=Ig.range,jg=Og.range,Bg=Ug.range,Yg=Dg.range,Hg=Lg.range,Vg=zg.range,Wg=sg((function(t){t.setDate(1),t.setHours(0,0,0,0)}),(function(t,n){t.setMonth(t.getMonth()+n)}),(function(t,n){return n.getMonth()-t.getMonth()+12*(n.getFullYear()-t.getFullYear())}),(function(t){return t.getMonth()}));const Xg=Wg;var $g=Wg.range,Gg=sg((function(t){t.setMonth(0,1),t.setHours(0,0,0,0)}),(function(t,n){t.setFullYear(t.getFullYear()+n)}),(function(t,n){return n.getFullYear()-t.getFullYear()}),(function(t){return t.getFullYear()}));Gg.every=function(t){return isFinite(t=Math.floor(t))&&t>0?sg((function(n){n.setFullYear(Math.floor(n.getFullYear()/t)*t),n.setMonth(0,1),n.setHours(0,0,0,0)}),(function(n,e){n.setFullYear(n.getFullYear()+e*t)})):null};const Qg=Gg;var Zg=Gg.range,Kg=sg((function(t){t.setUTCSeconds(0,0)}),(function(t,n){t.setTime(+t+n*gg)}),(function(t,n){return(n-t)/gg}),(function(t){return t.getUTCMinutes()}));const Jg=Kg;var tv=Kg.range,nv=sg((function(t){t.setUTCMinutes(0,0,0)}),(function(t,n){t.setTime(+t+n*vg)}),(function(t,n){return(n-t)/vg}),(function(t){return t.getUTCHours()}));const ev=nv;var rv=nv.range,iv=sg((function(t){t.setUTCHours(0,0,0,0)}),(function(t,n){t.setUTCDate(t.getUTCDate()+n)}),(function(t,n){return(n-t)/yg}),(function(t){return t.getUTCDate()-1}));const ov=iv;var av=iv.range;function uv(t){return sg((function(n){n.setUTCDate(n.getUTCDate()-(n.getUTCDay()+7-t)%7),n.setUTCHours(0,0,0,0)}),(function(t,n){t.setUTCDate(t.getUTCDate()+7*n)}),(function(t,n){return(n-t)/mg}))}var cv=uv(0),lv=uv(1),sv=uv(2),fv=uv(3),hv=uv(4),dv=uv(5),pv=uv(6),gv=cv.range,vv=lv.range,yv=sv.range,mv=fv.range,_v=hv.range,bv=dv.range,wv=pv.range,xv=sg((function(t){t.setUTCDate(1),t.setUTCHours(0,0,0,0)}),(function(t,n){t.setUTCMonth(t.getUTCMonth()+n)}),(function(t,n){return n.getUTCMonth()-t.getUTCMonth()+12*(n.getUTCFullYear()-t.getUTCFullYear())}),(function(t){return t.getUTCMonth()}));const Mv=xv;var Ev=xv.range,kv=sg((function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),(function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n)}),(function(t,n){return n.getUTCFullYear()-t.getUTCFullYear()}),(function(t){return t.getUTCFullYear()}));kv.every=function(t){return isFinite(t=Math.floor(t))&&t>0?sg((function(n){n.setUTCFullYear(Math.floor(n.getUTCFullYear()/t)*t),n.setUTCMonth(0,1),n.setUTCHours(0,0,0,0)}),(function(n,e){n.setUTCFullYear(n.getUTCFullYear()+e*t)})):null};const Nv=kv;var Sv=kv.range;function Tv(t){if(0<=t.y&&t.y<100){var n=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return n.setFullYear(t.y),n}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function Cv(t){if(0<=t.y&&t.y<100){var n=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return n.setUTCFullYear(t.y),n}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function Av(t){return{y:t,m:0,d:1,H:0,M:0,S:0,L:0}}function Pv(t){var n=t.dateTime,e=t.date,r=t.time,i=t.periods,o=t.days,a=t.shortDays,u=t.months,c=t.shortMonths,l=Yv(i),s=Hv(i),f=Yv(o),h=Hv(o),d=Yv(a),p=Hv(a),g=Yv(u),v=Hv(u),y=Yv(c),m=Hv(c),_={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:sy,e:sy,f:gy,H:fy,I:hy,j:dy,L:py,m:vy,M:yy,p:function(t){return i[+(t.getHours()>=12)]},Q:Vy,s:Wy,S:my,u:_y,U:by,V:wy,w:xy,W:My,x:null,X:null,y:Ey,Y:ky,Z:Ny,"%":Hy},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:Sy,e:Sy,f:Ry,H:Ty,I:Cy,j:Ay,L:Py,m:Iy,M:Oy,p:function(t){return i[+(t.getUTCHours()>=12)]},Q:Vy,s:Wy,S:Uy,u:Dy,U:Ly,V:zy,w:Fy,W:qy,x:null,X:null,y:jy,Y:By,Z:Yy,"%":Hy},w={a:function(t,n,e){var r=d.exec(n.slice(e));return r?(t.w=p[r[0].toLowerCase()],e+r[0].length):-1},A:function(t,n,e){var r=f.exec(n.slice(e));return r?(t.w=h[r[0].toLowerCase()],e+r[0].length):-1},b:function(t,n,e){var r=y.exec(n.slice(e));return r?(t.m=m[r[0].toLowerCase()],e+r[0].length):-1},B:function(t,n,e){var r=g.exec(n.slice(e));return r?(t.m=v[r[0].toLowerCase()],e+r[0].length):-1},c:function(t,e,r){return E(t,n,e,r)},d:ty,e:ty,f:ay,H:ey,I:ey,j:ny,L:oy,m:Jv,M:ry,p:function(t,n,e){var r=l.exec(n.slice(e));return r?(t.p=s[r[0].toLowerCase()],e+r[0].length):-1},Q:cy,s:ly,S:iy,u:Wv,U:Xv,V:$v,w:Vv,W:Gv,x:function(t,n,r){return E(t,e,n,r)},X:function(t,n,e){return E(t,r,n,e)},y:Zv,Y:Qv,Z:Kv,"%":uy};function x(t,n){return function(e){var r,i,o,a=[],u=-1,c=0,l=t.length;for(e instanceof Date||(e=new Date(+e));++u53)return null;"w"in o||(o.w=1),"Z"in o?(i=(r=Cv(Av(o.y))).getUTCDay(),r=i>4||0===i?lv.ceil(r):lv(r),r=ov.offset(r,7*(o.V-1)),o.y=r.getUTCFullYear(),o.m=r.getUTCMonth(),o.d=r.getUTCDate()+(o.w+6)%7):(i=(r=n(Av(o.y))).getDay(),r=i>4||0===i?Ig.ceil(r):Ig(r),r=Cg.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?Cv(Av(o.y)).getUTCDay():n(Av(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,Cv(o)):n(o)}}function E(t,n,e,r){for(var i,o,a=0,u=n.length,c=e.length;a=c)return-1;if(37===(i=n.charCodeAt(a++))){if(i=n.charAt(a++),!(o=w[i in Lv?n.charAt(a++):i])||(r=o(t,e,r))<0)return-1}else if(i!=e.charCodeAt(r++))return-1}return r}return _.x=x(e,_),_.X=x(r,_),_.c=x(n,_),b.x=x(e,b),b.X=x(r,b),b.c=x(n,b),{format:function(t){var n=x(t+="",_);return n.toString=function(){return t},n},parse:function(t){var n=M(t+="",Tv);return n.toString=function(){return t},n},utcFormat:function(t){var n=x(t+="",b);return n.toString=function(){return t},n},utcParse:function(t){var n=M(t,Cv);return n.toString=function(){return t},n}}}var Rv,Iv,Ov,Uv,Dv,Lv={"-":"",_:" ",0:"0"},zv=/^\s*\d+/,Fv=/^%/,qv=/[\\^$*+?|[\]().{}]/g;function jv(t,n,e){var r=t<0?"-":"",i=(r?-t:t)+"",o=i.length;return r+(o68?1900:2e3),e+r[0].length):-1}function Kv(t,n,e){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(n.slice(e,e+6));return r?(t.Z=r[1]?0:-(r[2]+(r[3]||"00")),e+r[0].length):-1}function Jv(t,n,e){var r=zv.exec(n.slice(e,e+2));return r?(t.m=r[0]-1,e+r[0].length):-1}function ty(t,n,e){var r=zv.exec(n.slice(e,e+2));return r?(t.d=+r[0],e+r[0].length):-1}function ny(t,n,e){var r=zv.exec(n.slice(e,e+3));return r?(t.m=0,t.d=+r[0],e+r[0].length):-1}function ey(t,n,e){var r=zv.exec(n.slice(e,e+2));return r?(t.H=+r[0],e+r[0].length):-1}function ry(t,n,e){var r=zv.exec(n.slice(e,e+2));return r?(t.M=+r[0],e+r[0].length):-1}function iy(t,n,e){var r=zv.exec(n.slice(e,e+2));return r?(t.S=+r[0],e+r[0].length):-1}function oy(t,n,e){var r=zv.exec(n.slice(e,e+3));return r?(t.L=+r[0],e+r[0].length):-1}function ay(t,n,e){var r=zv.exec(n.slice(e,e+6));return r?(t.L=Math.floor(r[0]/1e3),e+r[0].length):-1}function uy(t,n,e){var r=Fv.exec(n.slice(e,e+1));return r?e+r[0].length:-1}function cy(t,n,e){var r=zv.exec(n.slice(e));return r?(t.Q=+r[0],e+r[0].length):-1}function ly(t,n,e){var r=zv.exec(n.slice(e));return r?(t.Q=1e3*+r[0],e+r[0].length):-1}function sy(t,n){return jv(t.getDate(),n,2)}function fy(t,n){return jv(t.getHours(),n,2)}function hy(t,n){return jv(t.getHours()%12||12,n,2)}function dy(t,n){return jv(1+Cg.count(Qg(t),t),n,3)}function py(t,n){return jv(t.getMilliseconds(),n,3)}function gy(t,n){return py(t,n)+"000"}function vy(t,n){return jv(t.getMonth()+1,n,2)}function yy(t,n){return jv(t.getMinutes(),n,2)}function my(t,n){return jv(t.getSeconds(),n,2)}function _y(t){var n=t.getDay();return 0===n?7:n}function by(t,n){return jv(Rg.count(Qg(t),t),n,2)}function wy(t,n){var e=t.getDay();return t=e>=4||0===e?Dg(t):Dg.ceil(t),jv(Dg.count(Qg(t),t)+(4===Qg(t).getDay()),n,2)}function xy(t){return t.getDay()}function My(t,n){return jv(Ig.count(Qg(t),t),n,2)}function Ey(t,n){return jv(t.getFullYear()%100,n,2)}function ky(t,n){return jv(t.getFullYear()%1e4,n,4)}function Ny(t){var n=t.getTimezoneOffset();return(n>0?"-":(n*=-1,"+"))+jv(n/60|0,"0",2)+jv(n%60,"0",2)}function Sy(t,n){return jv(t.getUTCDate(),n,2)}function Ty(t,n){return jv(t.getUTCHours(),n,2)}function Cy(t,n){return jv(t.getUTCHours()%12||12,n,2)}function Ay(t,n){return jv(1+ov.count(Nv(t),t),n,3)}function Py(t,n){return jv(t.getUTCMilliseconds(),n,3)}function Ry(t,n){return Py(t,n)+"000"}function Iy(t,n){return jv(t.getUTCMonth()+1,n,2)}function Oy(t,n){return jv(t.getUTCMinutes(),n,2)}function Uy(t,n){return jv(t.getUTCSeconds(),n,2)}function Dy(t){var n=t.getUTCDay();return 0===n?7:n}function Ly(t,n){return jv(cv.count(Nv(t),t),n,2)}function zy(t,n){var e=t.getUTCDay();return t=e>=4||0===e?hv(t):hv.ceil(t),jv(hv.count(Nv(t),t)+(4===Nv(t).getUTCDay()),n,2)}function Fy(t){return t.getUTCDay()}function qy(t,n){return jv(lv.count(Nv(t),t),n,2)}function jy(t,n){return jv(t.getUTCFullYear()%100,n,2)}function By(t,n){return jv(t.getUTCFullYear()%1e4,n,4)}function Yy(){return"+0000"}function Hy(){return"%"}function Vy(t){return+t}function Wy(t){return Math.floor(+t/1e3)}function Xy(t){return Rv=Pv(t),Iv=Rv.format,Ov=Rv.parse,Uv=Rv.utcFormat,Dv=Rv.utcParse,Rv}Xy({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 $y="%Y-%m-%dT%H:%M:%S.%LZ",Gy=Date.prototype.toISOString?function(t){return t.toISOString()}:Uv($y);const Qy=Gy;var Zy=+new Date("2000-01-01T00:00:00.000Z")?function(t){var n=new Date(t);return isNaN(n)?null:n}:Dv($y);const Ky=Zy;var Jy=1e3,tm=60*Jy,nm=60*tm,em=24*nm,rm=7*em,im=30*em,om=365*em;function am(t){return new Date(t)}function um(t){return t instanceof Date?+t:+new Date(+t)}function cm(t,n,e,r,i,a,u,c,l){var s=Hp(qp,hr),f=s.invert,h=s.domain,d=l(".%L"),p=l(":%S"),g=l("%I:%M"),v=l("%I %p"),y=l("%a %d"),m=l("%b %d"),_=l("%B"),b=l("%Y"),w=[[u,1,Jy],[u,5,5*Jy],[u,15,15*Jy],[u,30,30*Jy],[a,1,tm],[a,5,5*tm],[a,15,15*tm],[a,30,30*tm],[i,1,nm],[i,3,3*nm],[i,6,6*nm],[i,12,12*nm],[r,1,em],[r,2,2*em],[e,1,rm],[n,1,im],[n,3,3*im],[t,1,om]];function x(o){return(u(o)1)&&(t-=Math.floor(t));var n=Math.abs(t-.5);return S_.h=360*t-100,S_.s=1.5-1.5*n,S_.l=.8-.9*n,S_+""}var C_=ge(),A_=Math.PI/3,P_=2*Math.PI/3;function R_(t){var n;return t=(.5-t)*Math.PI,C_.r=255*(n=Math.sin(t))*n,C_.g=255*(n=Math.sin(t+A_))*n,C_.b=255*(n=Math.sin(t+P_))*n,C_+""}function I_(t){var n=t.length;return function(e){return t[Math.max(0,Math.min(n-1,Math.floor(e*n)))]}}const O_=I_(dm("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725"));var U_=I_(dm("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf")),D_=I_(dm("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4")),L_=I_(dm("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"));function z_(t){return function(){return t}}var F_=Math.abs,q_=Math.atan2,j_=Math.cos,B_=Math.max,Y_=Math.min,H_=Math.sin,V_=Math.sqrt,W_=1e-12,X_=Math.PI,$_=X_/2,G_=2*X_;function Q_(t){return t>=1?$_:t<=-1?-$_:Math.asin(t)}function Z_(t){return t.innerRadius}function K_(t){return t.outerRadius}function J_(t){return t.startAngle}function tb(t){return t.endAngle}function nb(t){return t&&t.padAngle}function eb(t,n,e,r,i,o,a){var u=t-e,c=n-r,l=(a?o:-o)/V_(u*u+c*c),s=l*c,f=-l*u,h=t+s,d=n+f,p=e+s,g=r+f,v=(h+p)/2,y=(d+g)/2,m=p-h,_=g-d,b=m*m+_*_,w=i-o,x=h*g-p*d,M=(_<0?-1:1)*V_(B_(0,w*w*b-x*x)),E=(x*_-m*M)/b,k=(-x*m-_*M)/b,N=(x*_+m*M)/b,S=(-x*m+_*M)/b,T=E-v,C=k-y,A=N-v,P=S-y;return T*T+C*C>A*A+P*P&&(E=N,k=S),{cx:E,cy:k,x01:-s,y01:-f,x11:E*(i/w-1),y11:k*(i/w-1)}}function rb(){var t=Z_,n=K_,e=z_(0),r=null,i=J_,o=tb,a=nb,u=null;function c(){var c,l,s,f=+t.apply(this,arguments),h=+n.apply(this,arguments),d=i.apply(this,arguments)-$_,p=o.apply(this,arguments)-$_,g=F_(p-d),v=p>d;if(u||(u=c=Ra()),hW_)if(g>G_-W_)u.moveTo(h*j_(d),h*H_(d)),u.arc(0,0,h,d,p,!v),f>W_&&(u.moveTo(f*j_(p),f*H_(p)),u.arc(0,0,f,p,d,v));else{var y,m,_=d,b=p,w=d,x=p,M=g,E=g,k=a.apply(this,arguments)/2,N=k>W_&&(r?+r.apply(this,arguments):V_(f*f+h*h)),S=Y_(F_(h-f)/2,+e.apply(this,arguments)),T=S,C=S;if(N>W_){var A=Q_(N/f*H_(k)),P=Q_(N/h*H_(k));(M-=2*A)>W_?(w+=A*=v?1:-1,x-=A):(M=0,w=x=(d+p)/2),(E-=2*P)>W_?(_+=P*=v?1:-1,b-=P):(E=0,_=b=(d+p)/2)}var R=h*j_(_),I=h*H_(_),O=f*j_(x),U=f*H_(x);if(S>W_){var D=h*j_(b),L=h*H_(b),z=f*j_(w),F=f*H_(w);if(gW_?function(t,n,e,r,i,o,a,u){var c=e-t,l=r-n,s=a-i,f=u-o,h=(s*(n-o)-f*(t-i))/(f*c-s*l);return[t+h*c,n+h*l]}(R,I,z,F,D,L,O,U):[O,U],j=R-q[0],B=I-q[1],Y=D-q[0],H=L-q[1],V=1/H_(((s=(j*Y+B*H)/(V_(j*j+B*B)*V_(Y*Y+H*H)))>1?0:s<-1?X_:Math.acos(s))/2),W=V_(q[0]*q[0]+q[1]*q[1]);T=Y_(S,(f-W)/(V-1)),C=Y_(S,(h-W)/(V+1))}}E>W_?C>W_?(y=eb(z,F,R,I,h,C,v),m=eb(D,L,O,U,h,C,v),u.moveTo(y.cx+y.x01,y.cy+y.y01),CW_&&M>W_?T>W_?(y=eb(O,U,D,L,f,-T,v),m=eb(R,I,z,F,f,-T,v),u.lineTo(y.cx+y.x01,y.cy+y.y01),T=s;--f)u.point(v[f],y[f]);u.lineEnd(),u.areaEnd()}g&&(v[l]=+t(h,l,c),y[l]=+e(h,l,c),u.point(n?+n(h,l,c):v[l],r?+r(h,l,c):y[l]))}if(d)return u=null,d+""||null}function l(){return cb().defined(i).curve(a).context(o)}return c.x=function(e){return arguments.length?(t="function"==typeof e?e:z_(+e),n=null,c):t},c.x0=function(n){return arguments.length?(t="function"==typeof n?n:z_(+n),c):t},c.x1=function(t){return arguments.length?(n=null==t?null:"function"==typeof t?t:z_(+t),c):n},c.y=function(t){return arguments.length?(e="function"==typeof t?t:z_(+t),r=null,c):e},c.y0=function(t){return arguments.length?(e="function"==typeof t?t:z_(+t),c):e},c.y1=function(t){return arguments.length?(r=null==t?null:"function"==typeof t?t:z_(+t),c):r},c.lineX0=c.lineY0=function(){return l().x(t).y(e)},c.lineY1=function(){return l().x(t).y(r)},c.lineX1=function(){return l().x(n).y(e)},c.defined=function(t){return arguments.length?(i="function"==typeof t?t:z_(!!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 sb(t,n){return nt?1:n>=t?0:NaN}function fb(t){return t}function hb(){var t=fb,n=sb,e=null,r=z_(0),i=z_(G_),o=z_(0);function a(a){var u,c,l,s,f,h=a.length,d=0,p=new Array(h),g=new Array(h),v=+r.apply(this,arguments),y=Math.min(G_,Math.max(-G_,i.apply(this,arguments)-v)),m=Math.min(Math.abs(y)/h,o.apply(this,arguments)),_=m*(y<0?-1:1);for(u=0;u0&&(d+=f);for(null!=n?p.sort((function(t,e){return n(g[t],g[e])})):null!=e&&p.sort((function(t,n){return e(a[t],a[n])})),u=0,l=d?(y-h*_)/d:0;u0?f*l:0)+_,g[c]={data:a[c],index:u,value:f,startAngle:v,endAngle:s,padAngle:m};return g}return a.value=function(n){return arguments.length?(t="function"==typeof n?n:z_(+n),a):t},a.sortValues=function(t){return arguments.length?(n=t,e=null,a):n},a.sort=function(t){return arguments.length?(e=t,n=null,a):e},a.startAngle=function(t){return arguments.length?(r="function"==typeof t?t:z_(+t),a):r},a.endAngle=function(t){return arguments.length?(i="function"==typeof t?t:z_(+t),a):i},a.padAngle=function(t){return arguments.length?(o="function"==typeof t?t:z_(+t),a):o},a}ib.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,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;default:this._context.lineTo(t,n)}}};var db=gb(ob);function pb(t){this._curve=t}function gb(t){function n(n){return new pb(t(n))}return n._curve=t,n}function vb(t){var n=t.curve;return t.angle=t.x,delete t.x,t.radius=t.y,delete t.y,t.curve=function(t){return arguments.length?n(gb(t)):n()._curve},t}function yb(){return vb(cb().curve(db))}function mb(){var t=lb().curve(db),n=t.curve,e=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 vb(e())},delete t.lineX0,t.lineEndAngle=function(){return vb(r())},delete t.lineX1,t.lineInnerRadius=function(){return vb(i())},delete t.lineY0,t.lineOuterRadius=function(){return vb(o())},delete t.lineY1,t.curve=function(t){return arguments.length?n(gb(t)):n()._curve},t}function _b(t,n){return[(n=+n)*Math.cos(t-=Math.PI/2),n*Math.sin(t)]}pb.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(t,n){this._curve.point(n*Math.sin(t),n*-Math.cos(t))}};var bb=Array.prototype.slice;function wb(t){return t.source}function xb(t){return t.target}function Mb(t){var n=wb,e=xb,r=ab,i=ub,o=null;function a(){var a,u=bb.call(arguments),c=n.apply(this,u),l=e.apply(this,u);if(o||(o=a=Ra()),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?(n=t,a):n},a.target=function(t){return arguments.length?(e=t,a):e},a.x=function(t){return arguments.length?(r="function"==typeof t?t:z_(+t),a):r},a.y=function(t){return arguments.length?(i="function"==typeof t?t:z_(+t),a):i},a.context=function(t){return arguments.length?(o=null==t?null:t,a):o},a}function Eb(t,n,e,r,i){t.moveTo(n,e),t.bezierCurveTo(n=(n+r)/2,e,n,i,r,i)}function kb(t,n,e,r,i){t.moveTo(n,e),t.bezierCurveTo(n,e=(e+i)/2,r,e,r,i)}function Nb(t,n,e,r,i){var o=_b(n,e),a=_b(n,e=(e+i)/2),u=_b(r,e),c=_b(r,i);t.moveTo(o[0],o[1]),t.bezierCurveTo(a[0],a[1],u[0],u[1],c[0],c[1])}function Sb(){return Mb(Eb)}function Tb(){return Mb(kb)}function Cb(){var t=Mb(Nb);return t.angle=t.x,delete t.x,t.radius=t.y,delete t.y,t}const Ab={draw:function(t,n){var e=Math.sqrt(n/X_);t.moveTo(e,0),t.arc(0,0,e,0,G_)}},Pb={draw:function(t,n){var e=Math.sqrt(n/5)/2;t.moveTo(-3*e,-e),t.lineTo(-e,-e),t.lineTo(-e,-3*e),t.lineTo(e,-3*e),t.lineTo(e,-e),t.lineTo(3*e,-e),t.lineTo(3*e,e),t.lineTo(e,e),t.lineTo(e,3*e),t.lineTo(-e,3*e),t.lineTo(-e,e),t.lineTo(-3*e,e),t.closePath()}};var Rb=Math.sqrt(1/3),Ib=2*Rb;const Ob={draw:function(t,n){var e=Math.sqrt(n/Ib),r=e*Rb;t.moveTo(0,-e),t.lineTo(r,0),t.lineTo(0,e),t.lineTo(-r,0),t.closePath()}};var Ub=Math.sin(X_/10)/Math.sin(7*X_/10),Db=Math.sin(G_/10)*Ub,Lb=-Math.cos(G_/10)*Ub;const zb={draw:function(t,n){var e=Math.sqrt(.8908130915292852*n),r=Db*e,i=Lb*e;t.moveTo(0,-e),t.lineTo(r,i);for(var o=1;o<5;++o){var a=G_*o/5,u=Math.cos(a),c=Math.sin(a);t.lineTo(c*e,-u*e),t.lineTo(u*r-c*i,c*r+u*i)}t.closePath()}},Fb={draw:function(t,n){var e=Math.sqrt(n),r=-e/2;t.rect(r,r,e,e)}};var qb=Math.sqrt(3);const jb={draw:function(t,n){var e=-Math.sqrt(n/(3*qb));t.moveTo(0,2*e),t.lineTo(-qb*e,-e),t.lineTo(qb*e,-e),t.closePath()}};var Bb=-.5,Yb=Math.sqrt(3)/2,Hb=1/Math.sqrt(12),Vb=3*(Hb/2+1);const Wb={draw:function(t,n){var e=Math.sqrt(n/Vb),r=e/2,i=e*Hb,o=r,a=e*Hb+e,u=-o,c=a;t.moveTo(r,i),t.lineTo(o,a),t.lineTo(u,c),t.lineTo(Bb*r-Yb*i,Yb*r+Bb*i),t.lineTo(Bb*o-Yb*a,Yb*o+Bb*a),t.lineTo(Bb*u-Yb*c,Yb*u+Bb*c),t.lineTo(Bb*r+Yb*i,Bb*i-Yb*r),t.lineTo(Bb*o+Yb*a,Bb*a-Yb*o),t.lineTo(Bb*u+Yb*c,Bb*c-Yb*u),t.closePath()}};var Xb=[Ab,Pb,Ob,Fb,zb,jb,Wb];function $b(){var t=z_(Ab),n=z_(64),e=null;function r(){var r;if(e||(e=r=Ra()),t.apply(this,arguments).draw(e,+n.apply(this,arguments)),r)return e=null,r+""||null}return r.type=function(n){return arguments.length?(t="function"==typeof n?n:z_(n),r):t},r.size=function(t){return arguments.length?(n="function"==typeof t?t:z_(+t),r):n},r.context=function(t){return arguments.length?(e=null==t?null:t,r):e},r}function Gb(){}function Qb(t,n,e){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+n)/6,(t._y0+4*t._y1+e)/6)}function Zb(t){this._context=t}function Kb(t){return new Zb(t)}function Jb(t){this._context=t}function tw(t){return new Jb(t)}function nw(t){this._context=t}function ew(t){return new nw(t)}function rw(t,n){this._basis=new Zb(t),this._beta=n}Zb.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:Qb(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,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);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:Qb(this,t,n)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=n}},Jb.prototype={areaStart:Gb,areaEnd:Gb,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,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._x2=t,this._y2=n;break;case 1:this._point=2,this._x3=t,this._y3=n;break;case 2:this._point=3,this._x4=t,this._y4=n,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+n)/6);break;default:Qb(this,t,n)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=n}},nw.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,n){switch(t=+t,n=+n,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var e=(this._x0+4*this._x1+t)/6,r=(this._y0+4*this._y1+n)/6;this._line?this._context.lineTo(e,r):this._context.moveTo(e,r);break;case 3:this._point=4;default:Qb(this,t,n)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=n}},rw.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var t=this._x,n=this._y,e=t.length-1;if(e>0)for(var r,i=t[0],o=n[0],a=t[e]-i,u=n[e]-o,c=-1;++c<=e;)r=c/e,this._basis.point(this._beta*t[c]+(1-this._beta)*(i+r*a),this._beta*n[c]+(1-this._beta)*(o+r*u));this._x=this._y=null,this._basis.lineEnd()},point:function(t,n){this._x.push(+t),this._y.push(+n)}};const iw=function t(n){function e(t){return 1===n?new Zb(t):new rw(t,n)}return e.beta=function(n){return t(+n)},e}(.85);function ow(t,n,e){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-n),t._y2+t._k*(t._y1-e),t._x2,t._y2)}function aw(t,n){this._context=t,this._k=(1-n)/6}aw.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:ow(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2,this._x1=t,this._y1=n;break;case 2:this._point=3;default:ow(this,t,n)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}};const uw=function t(n){function e(t){return new aw(t,n)}return e.tension=function(n){return t(+n)},e}(0);function cw(t,n){this._context=t,this._k=(1-n)/6}cw.prototype={areaStart:Gb,areaEnd:Gb,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,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._x3=t,this._y3=n;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=n);break;case 2:this._point=3,this._x5=t,this._y5=n;break;default:ow(this,t,n)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}};const lw=function t(n){function e(t){return new cw(t,n)}return e.tension=function(n){return t(+n)},e}(0);function sw(t,n){this._context=t,this._k=(1-n)/6}sw.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,n){switch(t=+t,n=+n,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:ow(this,t,n)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}};const fw=function t(n){function e(t){return new sw(t,n)}return e.tension=function(n){return t(+n)},e}(0);function hw(t,n,e){var r=t._x1,i=t._y1,o=t._x2,a=t._y2;if(t._l01_a>W_){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>W_){var l=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,s=3*t._l23_a*(t._l23_a+t._l12_a);o=(o*l+t._x1*t._l23_2a-n*t._l12_2a)/s,a=(a*l+t._y1*t._l23_2a-e*t._l12_2a)/s}t._context.bezierCurveTo(r,i,o,a,t._x2,t._y2)}function dw(t,n){this._context=t,this._alpha=n}dw.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,n){if(t=+t,n=+n,this._point){var e=this._x2-t,r=this._y2-n;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(e*e+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;break;case 2:this._point=3;default:hw(this,t,n)}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=n}};const pw=function t(n){function e(t){return n?new dw(t,n):new aw(t,0)}return e.alpha=function(n){return t(+n)},e}(.5);function gw(t,n){this._context=t,this._alpha=n}gw.prototype={areaStart:Gb,areaEnd:Gb,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,n){if(t=+t,n=+n,this._point){var e=this._x2-t,r=this._y2-n;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(e*e+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=t,this._y3=n;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=n);break;case 2:this._point=3,this._x5=t,this._y5=n;break;default:hw(this,t,n)}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=n}};const vw=function t(n){function e(t){return n?new gw(t,n):new cw(t,0)}return e.alpha=function(n){return t(+n)},e}(.5);function yw(t,n){this._context=t,this._alpha=n}yw.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,n){if(t=+t,n=+n,this._point){var e=this._x2-t,r=this._y2-n;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(e*e+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:hw(this,t,n)}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=n}};const mw=function t(n){function e(t){return n?new yw(t,n):new sw(t,0)}return e.alpha=function(n){return t(+n)},e}(.5);function _w(t){this._context=t}function bw(t){return new _w(t)}function ww(t){return t<0?-1:1}function xw(t,n,e){var r=t._x1-t._x0,i=n-t._x1,o=(t._y1-t._y0)/(r||i<0&&-0),a=(e-t._y1)/(i||r<0&&-0),u=(o*i+a*r)/(r+i);return(ww(o)+ww(a))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs(u))||0}function Mw(t,n){var e=t._x1-t._x0;return e?(3*(t._y1-t._y0)/e-n)/2:n}function Ew(t,n,e){var r=t._x0,i=t._y0,o=t._x1,a=t._y1,u=(o-r)/3;t._context.bezierCurveTo(r+u,i+u*n,o-u,a-u*e,o,a)}function kw(t){this._context=t}function Nw(t){this._context=new Sw(t)}function Sw(t){this._context=t}function Tw(t){return new kw(t)}function Cw(t){return new Nw(t)}function Aw(t){this._context=t}function Pw(t){var n,e,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],n=1;n=0;--n)i[n]=(a[n]-i[n+1])/o[n];for(o[r-1]=(t[r]+i[r-1])/2,n=0;n1)for(var e,r,i,o=1,a=t[n[0]],u=a.length;o=0;)e[n]=n;return e}function Fw(t,n){return t[n]}function qw(){var t=z_([]),n=zw,e=Lw,r=Fw;function i(i){var o,a,u=t.apply(this,arguments),c=i.length,l=u.length,s=new Array(l);for(o=0;o0){for(var e,r,i,o=0,a=t[0].length;o1)for(var e,r,i,o,a,u,c=0,l=t[n[0]].length;c=0?(r[0]=o,r[1]=o+=i):i<0?(r[1]=a,r[0]=a+=i):r[0]=o}function Yw(t,n){if((e=t.length)>0){for(var e,r=0,i=t[n[0]],o=i.length;r0&&(r=(e=t[n[0]]).length)>0){for(var e,r,i,o=0,a=1;a=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,n),this._context.lineTo(t,n);else{var e=this._x*(1-this._t)+t*this._t;this._context.lineTo(e,this._y),this._context.lineTo(e,n)}}this._x=t,this._y=n}},Jw.prototype={constructor:Jw,insert:function(t,n){var e,r,i;if(t){if(n.P=t,n.N=t.N,t.N&&(t.N.P=n),t.N=n,t.R){for(t=t.R;t.L;)t=t.L;t.L=n}else t.R=n;e=t}else this._?(t=rx(this._),n.P=null,n.N=t,t.P=t.L=n,e=t):(n.P=n.N=null,this._=n,e=null);for(n.L=n.R=null,n.U=e,n.C=!0,t=n;e&&e.C;)e===(r=e.U).L?(i=r.R)&&i.C?(e.C=i.C=!1,r.C=!0,t=r):(t===e.R&&(nx(this,e),e=(t=e).U),e.C=!1,r.C=!0,ex(this,r)):(i=r.L)&&i.C?(e.C=i.C=!1,r.C=!0,t=r):(t===e.L&&(ex(this,e),e=(t=e).U),e.C=!1,r.C=!0,nx(this,r)),e=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 n,e,r,i=t.U,o=t.L,a=t.R;if(e=o?a?rx(a):o:a,i?i.L===t?i.L=e:i.R=e:this._=e,o&&a?(r=e.C,e.C=t.C,e.L=o,o.U=e,e!==a?(i=e.U,e.U=t.U,t=e.R,i.L=t,e.R=a,a.U=e):(e.U=i,i=e,t=e.R)):(r=t.C,t=e),t&&(t.U=i),!r)if(t&&t.C)t.C=!1;else{do{if(t===this._)break;if(t===i.L){if((n=i.R).C&&(n.C=!1,i.C=!0,nx(this,i),n=i.R),n.L&&n.L.C||n.R&&n.R.C){n.R&&n.R.C||(n.L.C=!1,n.C=!0,ex(this,n),n=i.R),n.C=i.C,i.C=n.R.C=!1,nx(this,i),t=this._;break}}else if((n=i.L).C&&(n.C=!1,i.C=!0,ex(this,i),n=i.L),n.L&&n.L.C||n.R&&n.R.C){n.L&&n.L.C||(n.R.C=!1,n.C=!0,nx(this,n),n=i.L),n.C=i.C,i.C=n.L.C=!1,ex(this,i),t=this._;break}n.C=!0,t=i,i=i.U}while(!t.C);t&&(t.C=!1)}}};const ix=Jw;function ox(t,n,e,r){var i=[null,null],o=Cx.push(i)-1;return i.left=t,i.right=n,e&&ux(i,t,n,e),r&&ux(i,n,t,r),Sx[t.index].halfedges.push(o),Sx[n.index].halfedges.push(o),i}function ax(t,n,e){var r=[n,e];return r.left=t,r}function ux(t,n,e,r){t[0]||t[1]?t.left===e?t[1]=r:t[0]=r:(t[0]=r,t.left=n,t.right=e)}function cx(t,n,e,r,i){var o,a=t[0],u=t[1],c=a[0],l=a[1],s=0,f=1,h=u[0]-c,d=u[1]-l;if(o=n-c,h||!(o>0)){if(o/=h,h<0){if(o0){if(o>f)return;o>s&&(s=o)}if(o=r-c,h||!(o<0)){if(o/=h,h<0){if(o>f)return;o>s&&(s=o)}else if(h>0){if(o0)){if(o/=d,d<0){if(o0){if(o>f)return;o>s&&(s=o)}if(o=i-l,d||!(o<0)){if(o/=d,d<0){if(o>f)return;o>s&&(s=o)}else if(d>0){if(o0||f<1)||(s>0&&(t[0]=[c+s*h,l+s*d]),f<1&&(t[1]=[c+f*h,l+f*d]),!0)}}}}}function lx(t,n,e,r,i){var o=t[1];if(o)return!0;var a,u,c=t[0],l=t.left,s=t.right,f=l[0],h=l[1],d=s[0],p=s[1],g=(f+d)/2,v=(h+p)/2;if(p===h){if(g=r)return;if(f>d){if(c){if(c[1]>=i)return}else c=[g,e];o=[g,i]}else{if(c){if(c[1]1)if(f>d){if(c){if(c[1]>=i)return}else c=[(e-u)/a,e];o=[(i-u)/a,i]}else{if(c){if(c[1]=r)return}else c=[n,a*n+u];o=[r,a*r+u]}else{if(c){if(c[0]=-Px)){var d=c*c+l*l,p=s*s+f*f,g=(f*d-l*p)/h,v=(c*p-s*d)/h,y=px.pop()||new gx;y.arc=t,y.site=i,y.x=g+a,y.y=(y.cy=v+u)+Math.sqrt(g*g+v*v),t.circle=y;for(var m=null,_=Tx._;_;)if(y.y<_.y||y.y===_.y&&y.x<=_.x){if(!_.L){m=_.P;break}_=_.L}else{if(!_.R){m=_;break}_=_.R}Tx.insert(m,y),m||(dx=y)}}}}function yx(t){var n=t.circle;n&&(n.P||(dx=n.N),Tx.remove(n),px.push(n),tx(n),t.circle=null)}var mx=[];function _x(){tx(this),this.edge=this.site=this.circle=null}function bx(t){var n=mx.pop()||new _x;return n.site=t,n}function wx(t){yx(t),Nx.remove(t),mx.push(t),tx(t)}function xx(t){var n=t.circle,e=n.x,r=n.cy,i=[e,r],o=t.P,a=t.N,u=[t];wx(t);for(var c=o;c.circle&&Math.abs(e-c.circle.x)Ax)u=u.L;else{if(!((i=o-kx(u,a))>Ax)){r>-Ax?(n=u.P,e=u):i>-Ax?(n=u,e=u.N):n=e=u;break}if(!u.R){n=u;break}u=u.R}!function(t){Sx[t.index]={site:t,halfedges:[]}}(t);var c=bx(t);if(Nx.insert(n,c),n||e){if(n===e)return yx(n),e=bx(n.site),Nx.insert(c,e),c.edge=e.edge=ox(n.site,c.site),vx(n),void vx(e);if(e){yx(n),yx(e);var l=n.site,s=l[0],f=l[1],h=t[0]-s,d=t[1]-f,p=e.site,g=p[0]-s,v=p[1]-f,y=2*(h*v-d*g),m=h*h+d*d,_=g*g+v*v,b=[(v*m-d*_)/y+s,(h*_-g*m)/y+f];ux(e.edge,l,p,b),c.edge=ox(l,t,null,b),e.edge=ox(t,p,null,b),vx(n),vx(e)}else c.edge=ox(n.site,c.site)}}function Ex(t,n){var e=t.site,r=e[0],i=e[1],o=i-n;if(!o)return r;var a=t.P;if(!a)return-1/0;var u=(e=a.site)[0],c=e[1],l=c-n;if(!l)return u;var s=u-r,f=1/o-1/l,h=s/l;return f?(-h+Math.sqrt(h*h-2*f*(s*s/(-2*l)-c+l/2+i-o/2)))/f+r:(r+u)/2}function kx(t,n){var e=t.N;if(e)return Ex(e,n);var r=t.site;return r[1]===n?r[0]:1/0}var Nx,Sx,Tx,Cx,Ax=1e-6,Px=1e-12;function Rx(t,n,e){return(t[0]-e[0])*(n[1]-t[1])-(t[0]-n[0])*(e[1]-t[1])}function Ix(t,n){return n[1]-t[1]||n[0]-t[0]}function Ox(t,n){var e,r,i,o=t.sort(Ix).pop();for(Cx=[],Sx=new Array(t.length),Nx=new ix,Tx=new ix;;)if(i=dx,o&&(!i||o[1]Ax||Math.abs(i[0][1]-i[1][1])>Ax)||delete Cx[o]}(a,u,c,l),function(t,n,e,r){var i,o,a,u,c,l,s,f,h,d,p,g,v=Sx.length,y=!0;for(i=0;iAx||Math.abs(g-h)>Ax)&&(c.splice(u,0,Cx.push(ax(a,d,Math.abs(p-t)Ax?[t,Math.abs(f-t)Ax?[Math.abs(h-r)Ax?[e,Math.abs(f-e)Ax?[Math.abs(h-n)=u)return null;var c=t-i.site[0],l=n-i.site[1],s=c*c+l*l;do{i=o.cells[r=a],a=null,i.halfedges.forEach((function(e){var r=o.edges[e],u=r.left;if(u!==i.site&&u||(u=r.right)){var c=t-u[0],l=n-u[1],f=c*c+l*l;fr?(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 Gx(){var t,n,e=Yx,r=Hx,i=$x,o=Wx,a=Xx,u=[0,1/0],c=[[-1/0,-1/0],[1/0,1/0]],l=250,s=Dr,f=[],h=(0,st.W)("start","zoom","end"),d=500,p=150,g=0;function v(t){t.property("__zoom",Vx).on("wheel.zoom",M).on("mousedown.zoom",E).on("dblclick.zoom",k).filter(a).on("touchstart.zoom",N).on("touchmove.zoom",S).on("touchend.zoom touchcancel.zoom",T).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function y(t,n){return(n=Math.max(u[0],Math.min(u[1],n)))===t.k?t:new zx(n,t.x,t.y)}function m(t,n,e){var r=n[0]-e[0]*t.k,i=n[1]-e[1]*t.k;return r===t.x&&i===t.y?t:new zx(t.k,r,i)}function _(t){return[(+t[0][0]+ +t[1][0])/2,(+t[0][1]+ +t[1][1])/2]}function b(t,n,e){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=e||_(a),c=Math.max(a[1][0]-a[0][0],a[1][1]-a[0][1]),l=t.__zoom,f="function"==typeof n?n.apply(t,i):n,h=s(l.invert(u).concat(c/l.k),f.invert(u).concat(c/f.k));return function(t){if(1===t)t=f;else{var n=h(t),e=c/n[2];t=new zx(e,u[0]-n[0]*e,u[1]-n[1]*e)}o.zoom(null,t)}}))}function w(t,n){for(var e,r=0,i=f.length;rg}t.zoom("mouse",i(m(t.that.__zoom,t.mouse[0]=In(t.that),t.mouse[1]),t.extent,c))}),!0).on("mouseup.zoom",(function(){r.on("mousemove.zoom mouseup.zoom",null),qn(dn.view,t.moved),Bx(),t.end()}),!0),o=In(this),a=dn.clientX,u=dn.clientY;Fn(dn.view),jx(),t.mouse=[o,this.__zoom.invert(o)],Ci(this),t.start()}}function k(){if(e.apply(this,arguments)){var t=this.__zoom,n=In(this),o=t.invert(n),a=t.k*(dn.shiftKey?.5:2),u=i(m(y(t,a),n,o),r.apply(this,arguments),c);Bx(),l>0?Nn(this).transition().duration(l).call(b,u,n):Nn(this).call(v.transform,u)}}function N(){if(e.apply(this,arguments)){var n,r,i,o,a=w(this,arguments),u=dn.changedTouches,c=u.length;for(jx(),r=0;r{t.exports={graphlib:e(6614),dagre:e(1463),intersect:e(8114),render:e(5787),util:e(8355),version:e(5689)}},9144:(t,n,e)=>{var r=e(8355);function i(t,n,e,i){var o=t.append("marker").attr("id",n).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,e[i+"Style"]),e[i+"Class"]&&o.attr("class",e[i+"Class"])}t.exports={default:i,normal:i,vee:function(t,n,e,i){var o=t.append("marker").attr("id",n).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,e[i+"Style"]),e[i+"Class"]&&o.attr("class",e[i+"Class"])},undirected:function(t,n,e,i){var o=t.append("marker").attr("id",n).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,e[i+"Style"]),e[i+"Class"]&&o.attr("class",e[i+"Class"])}}},5632:(t,n,e)=>{var r=e(8355),i=e(4322),o=e(1322);t.exports=function(t,n){var e=n.nodes().filter((function(t){return r.isSubgraph(n,t)})),a=t.selectAll("g.cluster").data(e,(function(t){return t}));return a.selectAll("*").remove(),a.enter().append("g").attr("class","cluster").attr("id",(function(t){return n.node(t).id})).style("opacity",0),a=t.selectAll("g.cluster"),r.applyTransition(a,n).style("opacity",1),a.each((function(t){var e=n.node(t),r=i.select(this);i.select(this).append("rect");var a=r.append("g").attr("class","label");o(a,e,e.clusterLabelPos)})),a.selectAll("rect").each((function(t){var e=n.node(t),o=i.select(this);r.applyStyle(o,e.style)})),r.applyTransition(a.exit(),n).style("opacity",0).remove(),a}},6315:(t,n,e)=>{"use strict";var r=e(1034),i=e(1322),o=e(8355),a=e(4322);t.exports=function(t,n){var e=t.selectAll("g.edgeLabel").data(n.edges(),(function(t){return o.edgeToId(t)})).classed("update",!0);return e.selectAll("*").remove(),e.enter().append("g").classed("edgeLabel",!0).style("opacity",0),(e=t.selectAll("g.edgeLabel")).each((function(t){var e=n.edge(t),o=i(a.select(this),n.edge(t),0,0).classed("label",!0),u=o.node().getBBox();e.labelId&&o.attr("id",e.labelId),r.has(e,"width")||(e.width=u.width),r.has(e,"height")||(e.height=u.height)})),o.applyTransition(e.exit(),n).style("opacity",0).remove(),e}},940:(t,n,e)=>{"use strict";var r=e(1034),i=e(3042),o=e(8355),a=e(4322);function u(t,n){var e=a.line().x((function(t){return t.x})).y((function(t){return t.y}));return e.curve(t.curve),e(n)}t.exports=function(t,n,e){var c=t.selectAll("g.edgePath").data(n.edges(),(function(t){return o.edgeToId(t)})).classed("update",!0);return function(t,n){var e=t.enter().append("g").attr("class","edgePath").style("opacity",0);e.append("path").attr("class","path").attr("d",(function(t){var e=n.edge(t),i=n.node(t.v).elem;return u(e,r.range(e.points.length).map((function(){return n=(t=i).getBBox(),{x:(e=t.ownerSVGElement.getScreenCTM().inverse().multiply(t.getScreenCTM()).translate(n.width/2,n.height/2)).e,y:e.f};var t,n,e})))})),e.append("defs")}(c,n),function(t,n){var e=t.exit();o.applyTransition(e,n).style("opacity",0).remove(),o.applyTransition(e.select("path.path"),n).attr("d",(function(t){var e=n.node(t.v);return e?u({},r.range(this.getTotalLength()).map((function(){return e}))):a.select(this).attr("d")}))}(c,n),c=t.selectAll("g.edgePath"),o.applyTransition(c,n).style("opacity",1),c.each((function(t){var e=a.select(this),r=n.edge(t);r.elem=this,r.id&&e.attr("id",r.id),o.applyClass(e,r.class,(e.classed("update")?"update ":"")+"edgePath")})),c.selectAll("path.path").each((function(t){var e=n.edge(t);e.arrowheadId=r.uniqueId("arrowhead");var c=a.select(this).attr("marker-end",(function(){return"url("+(t=location.href,n=e.arrowheadId,t.split("#")[0]+"#"+n+")");var t,n})).style("fill","none");o.applyTransition(c,n).attr("d",(function(t){return function(t,n){var e=t.edge(n),r=t.node(n.v),o=t.node(n.w),a=e.points.slice(1,e.points.length-1);return a.unshift(i(r,a[0])),a.push(i(o,a[a.length-1])),u(e,a)}(n,t)})),o.applyStyle(c,e.style)})),c.selectAll("defs *").remove(),c.selectAll("defs").each((function(t){var r=n.edge(t);(0,e[r.arrowhead])(a.select(this),r.arrowheadId,r,"arrowhead")})),c}},607:(t,n,e)=>{"use strict";var r=e(1034),i=e(1322),o=e(8355),a=e(4322);t.exports=function(t,n,e){var u=n.nodes().filter((function(t){return!o.isSubgraph(n,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=n.node(t),c=a.select(this);o.applyClass(c,u.class,(c.classed("update")?"update ":"")+"node");var l=c.append("g").attr("class","label"),s=i(l,u),f=e[u.shape],h=r.pick(s.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=f(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(),n).style("opacity",0).remove(),c}},4322:(t,n,e)=>{var r;if(!r)try{r=e(1524)}catch(t){}r||(r=window.d3),t.exports=r},1463:(t,n,e)=>{var r;try{r=e(681)}catch(t){}r||(r=window.dagre),t.exports=r},6614:(t,n,e)=>{var r;try{r=e(8282)}catch(t){}r||(r=window.graphlib),t.exports=r},8114:(t,n,e)=>{t.exports={node:e(3042),circle:e(6587),ellipse:e(3260),polygon:e(5337),rect:e(8049)}},6587:(t,n,e)=>{var r=e(3260);t.exports=function(t,n,e){return r(t,n,n,e)}},3260:t=>{t.exports=function(t,n,e,r){var i=t.x,o=t.y,a=i-r.x,u=o-r.y,c=Math.sqrt(n*n*u*u+e*e*a*a),l=Math.abs(n*e*a/c);r.x{function n(t,n){return t*n>0}t.exports=function(t,e,r,i){var o,a,u,c,l,s,f,h,d,p,g,v,y;if(!(o=e.y-t.y,u=t.x-e.x,l=e.x*t.y-t.x*e.y,d=o*r.x+u*r.y+l,p=o*i.x+u*i.y+l,0!==d&&0!==p&&n(d,p)||(a=i.y-r.y,c=r.x-i.x,s=i.x*r.y-r.x*i.y,f=a*t.x+c*t.y+s,h=a*e.x+c*e.y+s,0!==f&&0!==h&&n(f,h)||0==(g=o*c-a*u))))return v=Math.abs(g/2),{x:(y=u*s-c*l)<0?(y-v)/g:(y+v)/g,y:(y=a*l-o*s)<0?(y-v)/g:(y+v)/g}}},3042:t=>{t.exports=function(t,n){return t.intersect(n)}},5337:(t,n,e)=>{var r=e(6808);t.exports=function(t,n,e){var i=t.x,o=t.y,a=[],u=Number.POSITIVE_INFINITY,c=Number.POSITIVE_INFINITY;n.forEach((function(t){u=Math.min(u,t.x),c=Math.min(c,t.y)}));for(var l=i-t.width/2-u,s=o-t.height/2-c,f=0;f1&&a.sort((function(t,n){var r=t.x-e.x,i=t.y-e.y,o=Math.sqrt(r*r+i*i),a=n.x-e.x,u=n.y-e.y,c=Math.sqrt(a*a+u*u);return o{t.exports=function(t,n){var e,r,i=t.x,o=t.y,a=n.x-i,u=n.y-o,c=t.width/2,l=t.height/2;return Math.abs(u)*c>Math.abs(a)*l?(u<0&&(l=-l),e=0===u?0:l*a/u,r=l):(a<0&&(c=-c),e=c,r=0===a?0:c*u/a),{x:i+e,y:o+r}}},8284:(t,n,e)=>{var r=e(8355);t.exports=function(t,n){var e=t.append("foreignObject").attr("width","100000"),i=e.append("xhtml:div");i.attr("xmlns","http://www.w3.org/1999/xhtml");var o=n.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,n.labelStyle),i.style("display","inline-block"),i.style("white-space","nowrap");var a=i.node().getBoundingClientRect();return e.attr("width",a.width).attr("height",a.height),e}},1322:(t,n,e)=>{var r=e(7318),i=e(8284),o=e(8287);t.exports=function(t,n,e){var a=n.label,u=t.append("g");"svg"===n.labelType?o(u,n):"string"!=typeof a||"html"===n.labelType?i(u,n):r(u,n);var c,l=u.node().getBBox();switch(e){case"top":c=-n.height/2;break;case"bottom":c=n.height/2-l.height;break;default:c=-l.height/2}return u.attr("transform","translate("+-l.width/2+","+c+")"),u}},8287:(t,n,e)=>{var r=e(8355);t.exports=function(t,n){var e=t;return e.node().appendChild(n.label),r.applyStyle(e,n.labelStyle),e}},7318:(t,n,e)=>{var r=e(8355);t.exports=function(t,n){for(var e=t.append("text"),i=function(t){for(var n,e="",r=!1,i=0;i{var r;try{r=e(6486)}catch(t){}r||(r=window._),t.exports=r},6381:(t,n,e)=>{"use strict";var r=e(8355),i=e(4322);t.exports=function(t,n){var e=t.filter((function(){return!i.select(this).classed("update")}));function o(t){var e=n.node(t);return"translate("+e.x+","+e.y+")"}e.attr("transform",o),r.applyTransition(t,n).style("opacity",1).attr("transform",o),r.applyTransition(e.selectAll("rect"),n).attr("width",(function(t){return n.node(t).width})).attr("height",(function(t){return n.node(t).height})).attr("x",(function(t){return-n.node(t).width/2})).attr("y",(function(t){return-n.node(t).height/2}))}},4577:(t,n,e)=>{"use strict";var r=e(8355),i=e(4322),o=e(1034);t.exports=function(t,n){function e(t){var e=n.edge(t);return o.has(e,"x")?"translate("+e.x+","+e.y+")":""}t.filter((function(){return!i.select(this).classed("update")})).attr("transform",e),r.applyTransition(t,n).style("opacity",1).attr("transform",e)}},4849:(t,n,e)=>{"use strict";var r=e(8355),i=e(4322);t.exports=function(t,n){function e(t){var e=n.node(t);return"translate("+e.x+","+e.y+")"}t.filter((function(){return!i.select(this).classed("update")})).attr("transform",e),r.applyTransition(t,n).style("opacity",1).attr("transform",e)}},5787:(t,n,e)=>{var r=e(1034),i=e(4322),o=e(1463).layout;t.exports=function(){var t=e(607),n=e(5632),i=e(6315),l=e(940),s=e(4849),f=e(4577),h=e(6381),d=e(4418),p=e(9144),g=function(e,g){!function(t){t.nodes().forEach((function(n){var e=t.node(n);r.has(e,"label")||t.children(n).length||(e.label=n),r.has(e,"paddingX")&&r.defaults(e,{paddingLeft:e.paddingX,paddingRight:e.paddingX}),r.has(e,"paddingY")&&r.defaults(e,{paddingTop:e.paddingY,paddingBottom:e.paddingY}),r.has(e,"padding")&&r.defaults(e,{paddingLeft:e.padding,paddingRight:e.padding,paddingTop:e.padding,paddingBottom:e.padding}),r.defaults(e,a),r.each(["paddingLeft","paddingRight","paddingTop","paddingBottom"],(function(t){e[t]=Number(e[t])})),r.has(e,"width")&&(e._prevWidth=e.width),r.has(e,"height")&&(e._prevHeight=e.height)})),t.edges().forEach((function(n){var e=t.edge(n);r.has(e,"label")||(e.label=""),r.defaults(e,u)}))}(g),e.selectAll("*").remove();var v=c(e,"output"),y=c(v,"clusters"),m=c(v,"edgePaths"),_=i(c(v,"edgeLabels"),g),b=t(c(v,"nodes"),g,d);o(g),s(b,g),f(_,g),l(m,g,p);var w=n(y,g);h(w,g),function(t){r.each(t.nodes(),(function(n){var e=t.node(n);r.has(e,"_prevWidth")?e.width=e._prevWidth:delete e.width,r.has(e,"_prevHeight")?e.height=e._prevHeight:delete e.height,delete e._prevWidth,delete e._prevHeight}))}(g)};return g.createNodes=function(n){return arguments.length?(t=n,g):t},g.createClusters=function(t){return arguments.length?(n=t,g):n},g.createEdgeLabels=function(t){return arguments.length?(i=t,g):i},g.createEdgePaths=function(t){return arguments.length?(l=t,g):l},g.shapes=function(t){return arguments.length?(d=t,g):d},g.arrows=function(t){return arguments.length?(p=t,g):p},g};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,n){var e=t.select("g."+n);return e.empty()&&(e=t.append("g").attr("class",n)),e}},4418:(t,n,e)=>{"use strict";var r=e(8049),i=e(3260),o=e(6587),a=e(5337);t.exports={rect:function(t,n,e){var i=t.insert("rect",":first-child").attr("rx",e.rx).attr("ry",e.ry).attr("x",-n.width/2).attr("y",-n.height/2).attr("width",n.width).attr("height",n.height);return e.intersect=function(t){return r(e,t)},i},ellipse:function(t,n,e){var r=n.width/2,o=n.height/2,a=t.insert("ellipse",":first-child").attr("x",-n.width/2).attr("y",-n.height/2).attr("rx",r).attr("ry",o);return e.intersect=function(t){return i(e,r,o,t)},a},circle:function(t,n,e){var r=Math.max(n.width,n.height)/2,i=t.insert("circle",":first-child").attr("x",-n.width/2).attr("y",-n.height/2).attr("r",r);return e.intersect=function(t){return o(e,r,t)},i},diamond:function(t,n,e){var r=n.width*Math.SQRT2/2,i=n.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 e.intersect=function(t){return a(e,o,t)},u}}},8355:(t,n,e)=>{var r=e(1034);t.exports={isSubgraph:function(t,n){return!!t.children(n).length},edgeToId:function(t){return o(t.v)+":"+o(t.w)+":"+o(t.name)},applyStyle:function(t,n){n&&t.attr("style",n)},applyClass:function(t,n,e){n&&t.attr("class",n).attr("class",e+" "+t.attr("class"))},applyTransition:function(t,n){var e=n.graph();if(r.isPlainObject(e)){var i=e.transition;if(r.isFunction(i))return i(t)}return t}};var i=/:/g;function o(t){return t?String(t).replace(i,"\\:"):""}},5689:t=>{t.exports="0.6.1"},1524:(t,n,e)=>{"use strict";e.r(n),e.d(n,{active:()=>VD,arc:()=>iS,area:()=>sS,areaRadial:()=>_S,ascending:()=>i,axisBottom:()=>ct,axisLeft:()=>lt,axisRight:()=>ut,axisTop:()=>at,bisect:()=>l,bisectLeft:()=>c,bisectRight:()=>u,bisector:()=>o,brush:()=>qi,brushSelection:()=>Li,brushX:()=>zi,brushY:()=>Fi,chord:()=>Zi,clientPoint:()=>SN,cluster:()=>Yg,color:()=>Xo,create:()=>xN,creator:()=>hk,cross:()=>h,csv:()=>R_,csvFormat:()=>Sc,csvFormatRows:()=>Tc,csvParse:()=>kc,csvParseRows:()=>Nc,cubehelix:()=>Ca,curveBasis:()=>JS,curveBasisClosed:()=>nT,curveBasisOpen:()=>rT,curveBundle:()=>oT,curveCardinal:()=>cT,curveCardinalClosed:()=>sT,curveCardinalOpen:()=>hT,curveCatmullRom:()=>gT,curveCatmullRomClosed:()=>yT,curveCatmullRomOpen:()=>_T,curveLinear:()=>aS,curveLinearClosed:()=>wT,curveMonotoneX:()=>CT,curveMonotoneY:()=>AT,curveNatural:()=>IT,curveStep:()=>UT,curveStepAfter:()=>LT,curveStepBefore:()=>DT,customEvent:()=>dN,descending:()=>d,deviation:()=>v,dispatch:()=>Da,drag:()=>vc,dragDisable:()=>cc,dragEnable:()=>lc,dsvFormat:()=>Mc,easeBack:()=>yl,easeBackIn:()=>gl,easeBackInOut:()=>yl,easeBackOut:()=>vl,easeBounce:()=>hl,easeBounceIn:()=>fl,easeBounceInOut:()=>dl,easeBounceOut:()=>hl,easeCircle:()=>tl,easeCircleIn:()=>Kc,easeCircleInOut:()=>tl,easeCircleOut:()=>Jc,easeCubic:()=>qc,easeCubicIn:()=>zc,easeCubicInOut:()=>qc,easeCubicOut:()=>Fc,easeElastic:()=>bl,easeElasticIn:()=>_l,easeElasticInOut:()=>wl,easeElasticOut:()=>bl,easeExp:()=>Zc,easeExpIn:()=>Gc,easeExpInOut:()=>Zc,easeExpOut:()=>Qc,easeLinear:()=>Oc,easePoly:()=>Yc,easePolyIn:()=>jc,easePolyInOut:()=>Yc,easePolyOut:()=>Bc,easeQuad:()=>Lc,easeQuadIn:()=>Uc,easeQuadInOut:()=>Lc,easeQuadOut:()=>Dc,easeSin:()=>$c,easeSinIn:()=>Wc,easeSinInOut:()=>$c,easeSinOut:()=>Xc,entries:()=>Co,event:()=>cN,extent:()=>y,forceCenter:()=>xl,forceCollide:()=>Ul,forceLink:()=>Hl,forceManyBody:()=>ws,forceRadial:()=>xs,forceSimulation:()=>bs,forceX:()=>Ms,forceY:()=>Es,format:()=>Os,formatDefaultLocale:()=>zs,formatLocale:()=>Ls,formatPrefix:()=>Us,formatSpecifier:()=>As,geoAlbers:()=>sg,geoAlbersUsa:()=>fg,geoArea:()=>Uf,geoAzimuthalEqualArea:()=>gg,geoAzimuthalEqualAreaRaw:()=>pg,geoAzimuthalEquidistant:()=>yg,geoAzimuthalEquidistantRaw:()=>vg,geoBounds:()=>Sh,geoCentroid:()=>Fh,geoCircle:()=>Qh,geoClipAntimeridian:()=>hd,geoClipCircle:()=>dd,geoClipExtent:()=>yd,geoClipRectangle:()=>vd,geoConicConformal:()=>Mg,geoConicConformalRaw:()=>xg,geoConicEqualArea:()=>lg,geoConicEqualAreaRaw:()=>cg,geoConicEquidistant:()=>Sg,geoConicEquidistantRaw:()=>Ng,geoContains:()=>zd,geoDistance:()=>Cd,geoEquirectangular:()=>kg,geoEquirectangularRaw:()=>Eg,geoGnomonic:()=>Cg,geoGnomonicRaw:()=>Tg,geoGraticule:()=>jd,geoGraticule10:()=>Bd,geoIdentity:()=>Pg,geoInterpolate:()=>Yd,geoLength:()=>Nd,geoMercator:()=>_g,geoMercatorRaw:()=>mg,geoNaturalEarth1:()=>Ig,geoNaturalEarth1Raw:()=>Rg,geoOrthographic:()=>Ug,geoOrthographicRaw:()=>Og,geoPath:()=>Wp,geoProjection:()=>og,geoProjectionMutator:()=>ag,geoRotation:()=>Xh,geoStereographic:()=>Lg,geoStereographicRaw:()=>Dg,geoStream:()=>xf,geoTransform:()=>Xp,geoTransverseMercator:()=>Fg,geoTransverseMercatorRaw:()=>zg,hcl:()=>_a,hierarchy:()=>Vg,histogram:()=>P,hsl:()=>ta,html:()=>N_,interpolate:()=>lm,interpolateArray:()=>em,interpolateBasis:()=>Wy,interpolateBasisClosed:()=>Xy,interpolateCool:()=>KE,interpolateCubehelix:()=>Um,interpolateCubehelixDefault:()=>QE,interpolateCubehelixLong:()=>Dm,interpolateDate:()=>rm,interpolateHcl:()=>Rm,interpolateHclLong:()=>Im,interpolateHsl:()=>Tm,interpolateHslLong:()=>Cm,interpolateInferno:()=>ik,interpolateLab:()=>Am,interpolateMagma:()=>rk,interpolateNumber:()=>im,interpolateObject:()=>om,interpolatePlasma:()=>ok,interpolateRainbow:()=>tk,interpolateRgb:()=>Ky,interpolateRgbBasis:()=>tm,interpolateRgbBasisClosed:()=>nm,interpolateRound:()=>sm,interpolateString:()=>cm,interpolateTransformCss:()=>_m,interpolateTransformSvg:()=>bm,interpolateViridis:()=>ek,interpolateWarm:()=>ZE,interpolateZoom:()=>Nm,interrupt:()=>WO,interval:()=>WR,isoFormat:()=>ER,isoParse:()=>kR,json:()=>S_,keys:()=>So,lab:()=>da,line:()=>lS,lineRadial:()=>mS,linkHorizontal:()=>TS,linkRadial:()=>AS,linkVertical:()=>CS,local:()=>EN,map:()=>yo,matcher:()=>bk,max:()=>U,mean:()=>D,median:()=>L,merge:()=>z,min:()=>F,mouse:()=>TN,namespace:()=>lk,namespaces:()=>ck,nest:()=>mo,now:()=>LR,pack:()=>gv,packEnclose:()=>Zg,packSiblings:()=>sv,pairs:()=>s,partition:()=>wv,path:()=>Hm,permute:()=>q,pie:()=>dS,pointRadial:()=>bS,polygonArea:()=>Vm,polygonCentroid:()=>Wm,polygonContains:()=>Zm,polygonHull:()=>Qm,polygonLength:()=>Km,precisionFixed:()=>Fs,precisionPrefix:()=>qs,precisionRound:()=>js,quadtree:()=>r_,quantile:()=>R,quantize:()=>Lm,queue:()=>p_,radialArea:()=>_S,radialLine:()=>mS,randomBates:()=>b_,randomExponential:()=>w_,randomIrwinHall:()=>__,randomLogNormal:()=>m_,randomNormal:()=>y_,randomUniform:()=>v_,range:()=>M,request:()=>E_,rgb:()=>Zo,ribbon:()=>ho,scaleBand:()=>ob,scaleIdentity:()=>ax,scaleImplicit:()=>rb,scaleLinear:()=>ox,scaleLog:()=>px,scaleOrdinal:()=>ib,scalePoint:()=>ub,scalePow:()=>vx,scaleQuantile:()=>mx,scaleQuantize:()=>_x,scaleSequential:()=>ak,scaleSqrt:()=>yx,scaleThreshold:()=>bx,scaleTime:()=>YE,scaleUtc:()=>HE,scan:()=>j,schemeCategory10:()=>WE,schemeCategory20:()=>GE,schemeCategory20b:()=>XE,schemeCategory20c:()=>$E,select:()=>wN,selectAll:()=>CN,selection:()=>bN,selector:()=>pk,selectorAll:()=>vk,set:()=>No,shuffle:()=>B,stack:()=>jT,stackOffsetDiverging:()=>YT,stackOffsetExpand:()=>BT,stackOffsetNone:()=>zT,stackOffsetSilhouette:()=>HT,stackOffsetWiggle:()=>VT,stackOrderAscending:()=>WT,stackOrderDescending:()=>$T,stackOrderInsideOut:()=>GT,stackOrderNone:()=>FT,stackOrderReverse:()=>QT,stratify:()=>Sv,style:()=>Lk,sum:()=>Y,symbol:()=>GS,symbolCircle:()=>PS,symbolCross:()=>RS,symbolDiamond:()=>US,symbolSquare:()=>qS,symbolStar:()=>FS,symbolTriangle:()=>BS,symbolWye:()=>XS,symbols:()=>$S,text:()=>T_,thresholdFreedmanDiaconis:()=>I,thresholdScott:()=>O,thresholdSturges:()=>A,tickIncrement:()=>T,tickStep:()=>C,ticks:()=>S,timeDay:()=>mC,timeDays:()=>_C,timeFormat:()=>cP,timeFormatDefaultLocale:()=>xR,timeFormatLocale:()=>aP,timeFriday:()=>NC,timeFridays:()=>IC,timeHour:()=>gC,timeHours:()=>vC,timeInterval:()=>JT,timeMillisecond:()=>nC,timeMilliseconds:()=>eC,timeMinute:()=>hC,timeMinutes:()=>dC,timeMonday:()=>xC,timeMondays:()=>CC,timeMonth:()=>DC,timeMonths:()=>LC,timeParse:()=>lP,timeSaturday:()=>SC,timeSaturdays:()=>OC,timeSecond:()=>lC,timeSeconds:()=>sC,timeSunday:()=>wC,timeSundays:()=>TC,timeThursday:()=>kC,timeThursdays:()=>RC,timeTuesday:()=>MC,timeTuesdays:()=>AC,timeWednesday:()=>EC,timeWednesdays:()=>PC,timeWeek:()=>wC,timeWeeks:()=>TC,timeYear:()=>FC,timeYears:()=>qC,timeout:()=>VR,timer:()=>qR,timerFlush:()=>jR,touch:()=>AN,touches:()=>PN,transition:()=>LD,transpose:()=>H,tree:()=>Ov,treemap:()=>Fv,treemapBinary:()=>qv,treemapDice:()=>bv,treemapResquarify:()=>Bv,treemapSlice:()=>Uv,treemapSliceDice:()=>jv,treemapSquarify:()=>zv,tsv:()=>I_,tsvFormat:()=>Rc,tsvFormatRows:()=>Ic,tsvParse:()=>Ac,tsvParseRows:()=>Pc,utcDay:()=>$C,utcDays:()=>GC,utcFormat:()=>sP,utcFriday:()=>eA,utcFridays:()=>lA,utcHour:()=>VC,utcHours:()=>WC,utcMillisecond:()=>nC,utcMilliseconds:()=>eC,utcMinute:()=>BC,utcMinutes:()=>YC,utcMonday:()=>KC,utcMondays:()=>oA,utcMonth:()=>hA,utcMonths:()=>dA,utcParse:()=>fP,utcSaturday:()=>rA,utcSaturdays:()=>sA,utcSecond:()=>lC,utcSeconds:()=>sC,utcSunday:()=>ZC,utcSundays:()=>iA,utcThursday:()=>nA,utcThursdays:()=>cA,utcTuesday:()=>JC,utcTuesdays:()=>aA,utcWednesday:()=>tA,utcWednesdays:()=>uA,utcWeek:()=>ZC,utcWeeks:()=>iA,utcYear:()=>gA,utcYears:()=>vA,values:()=>To,variance:()=>g,version:()=>r,voronoi:()=>PL,window:()=>Ik,xml:()=>C_,zip:()=>W,zoom:()=>Jj,zoomIdentity:()=>Yj,zoomTransform:()=>Hj});var r="4.13.0";function i(t,n){return tn?1:t>=n?0:NaN}function o(t){var n;return 1===t.length&&(n=t,t=function(t,e){return i(n(t),e)}),{left:function(n,e,r,i){for(null==r&&(r=0),null==i&&(i=n.length);r>>1;t(n[o],e)<0?r=o+1:i=o}return r},right:function(n,e,r,i){for(null==r&&(r=0),null==i&&(i=n.length);r>>1;t(n[o],e)>0?i=o:r=o+1}return r}}}var a=o(i),u=a.right,c=a.left;const l=u;function s(t,n){null==n&&(n=f);for(var e=0,r=t.length-1,i=t[0],o=new Array(r<0?0:r);et?1:n>=t?0:NaN}function p(t){return null===t?NaN:+t}function g(t,n){var e,r,i=t.length,o=0,a=-1,u=0,c=0;if(null==n)for(;++a1)return c/(o-1)}function v(t,n){var e=g(t,n);return e?Math.sqrt(e):e}function y(t,n){var e,r,i,o=t.length,a=-1;if(null==n){for(;++a=e)for(r=i=e;++ae&&(r=e),i=e)for(r=i=e;++ae&&(r=e),i0)return[t];if((r=n0)for(t=Math.ceil(t/a),n=Math.floor(n/a),o=new Array(i=Math.ceil(n-t+1));++u=0?(o>=E?10:o>=k?5:o>=N?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(o>=E?10:o>=k?5:o>=N?2:1)}function C(t,n,e){var r=Math.abs(n-t)/Math.max(0,e),i=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),o=r/i;return o>=E?i*=10:o>=k?i*=5:o>=N&&(i*=2),nf;)h.pop(),--d;var p,g=new Array(d+1);for(i=0;i<=d;++i)(p=g[i]=[]).x0=i>0?h[i-1]:s,p.x1=i=1)return+e(t[r-1],r-1,t);var r,i=(r-1)*n,o=Math.floor(i),a=+e(t[o],o,t);return a+(+e(t[o+1],o+1,t)-a)*(i-o)}}function I(t,n,e){return t=b.call(t,p).sort(i),Math.ceil((e-n)/(2*(R(t,.75)-R(t,.25))*Math.pow(t.length,-1/3)))}function O(t,n,e){return Math.ceil((e-n)/(3.5*v(t)*Math.pow(t.length,-1/3)))}function U(t,n){var e,r,i=t.length,o=-1;if(null==n){for(;++o=e)for(r=e;++or&&(r=e)}else for(;++o=e)for(r=e;++or&&(r=e);return r}function D(t,n){var e,r=t.length,i=r,o=-1,a=0;if(null==n)for(;++o=0;)for(n=(r=t[i]).length;--n>=0;)e[--a]=r[n];return e}function F(t,n){var e,r,i=t.length,o=-1;if(null==n){for(;++o=e)for(r=e;++oe&&(r=e)}else for(;++o=e)for(r=e;++oe&&(r=e);return r}function q(t,n){for(var e=n.length,r=new Array(e);e--;)r[e]=t[n[e]];return r}function j(t,n){if(e=t.length){var e,r,o=0,a=0,u=t[a];for(null==n&&(n=i);++o=0&&(n=t.slice(e+1),t=t.slice(0,e)),t&&!r.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:n}}))),a=-1,u=o.length;if(!(arguments.length<2)){if(null!=n&&"function"!=typeof n)throw new Error("invalid callback: "+n);for(;++a0)for(var e,r,i=new Array(e),o=0;o=0&&"xmlns"!==(n=t.slice(0,e))&&(t=t.slice(e+1)),yt.hasOwnProperty(n)?{space:yt[n],local:t}:t}function _t(t){return function(){var n=this.ownerDocument,e=this.namespaceURI;return e===vt&&n.documentElement.namespaceURI===vt?n.createElement(t):n.createElementNS(e,t)}}function bt(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function wt(t){var n=mt(t);return(n.local?bt:_t)(n)}function xt(){}function Mt(t){return null==t?xt:function(){return this.querySelector(t)}}function Et(){return[]}function kt(t){return null==t?Et:function(){return this.querySelectorAll(t)}}var Nt=function(t){return function(){return this.matches(t)}};if("undefined"!=typeof document){var St=document.documentElement;if(!St.matches){var Tt=St.webkitMatchesSelector||St.msMatchesSelector||St.mozMatchesSelector||St.oMatchesSelector;Nt=function(t){return function(){return Tt.call(this,t)}}}}const Ct=Nt;function At(t){return new Array(t.length)}function Pt(t,n){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=n}Pt.prototype={constructor:Pt,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,n){return this._parent.insertBefore(t,n)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};var Rt="$";function It(t,n,e,r,i,o){for(var a,u=0,c=n.length,l=o.length;un?1:t>=n?0:NaN}function Dt(t){return function(){this.removeAttribute(t)}}function Lt(t){return function(){this.removeAttributeNS(t.space,t.local)}}function zt(t,n){return function(){this.setAttribute(t,n)}}function Ft(t,n){return function(){this.setAttributeNS(t.space,t.local,n)}}function qt(t,n){return function(){var e=n.apply(this,arguments);null==e?this.removeAttribute(t):this.setAttribute(t,e)}}function jt(t,n){return function(){var e=n.apply(this,arguments);null==e?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,e)}}function Bt(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function Yt(t){return function(){this.style.removeProperty(t)}}function Ht(t,n,e){return function(){this.style.setProperty(t,n,e)}}function Vt(t,n,e){return function(){var r=n.apply(this,arguments);null==r?this.style.removeProperty(t):this.style.setProperty(t,r,e)}}function Wt(t,n){return t.style.getPropertyValue(n)||Bt(t).getComputedStyle(t,null).getPropertyValue(n)}function Xt(t){return function(){delete this[t]}}function $t(t,n){return function(){this[t]=n}}function Gt(t,n){return function(){var e=n.apply(this,arguments);null==e?delete this[t]:this[t]=e}}function Qt(t){return t.trim().split(/^|\s+/)}function Zt(t){return t.classList||new Kt(t)}function Kt(t){this._node=t,this._names=Qt(t.getAttribute("class")||"")}function Jt(t,n){for(var e=Zt(t),r=-1,i=n.length;++r=0&&(this._names.splice(n,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var yn={},mn=null;function _n(t,n,e){return t=bn(t,n,e),function(n){var e=n.relatedTarget;e&&(e===this||8&e.compareDocumentPosition(this))||t.call(this,n)}}function bn(t,n,e){return function(r){var i=mn;mn=r;try{t.call(this,this.__data__,n,e)}finally{mn=i}}}function wn(t){return function(){var n=this.__on;if(n){for(var e,r=0,i=-1,o=n.length;r=w&&(w=b+1);!(_=y[w])&&++w=0;)(r=i[o])&&(a&&a!==r.nextSibling&&a.parentNode.insertBefore(r,a),a=r);return this},sort:function(t){function n(n,e){return n&&e?t(n.__data__,e.__data__):!n-!e}t||(t=Ut);for(var e=this._groups,r=e.length,i=new Array(r),o=0;o1?this.each((null==n?Yt:"function"==typeof n?Vt:Ht)(t,n,null==e?"":e)):Wt(this.node(),t)},property:function(t,n){return arguments.length>1?this.each((null==n?Xt:"function"==typeof n?Gt:$t)(t,n)):this.node()[t]},classed:function(t,n){var e=Qt(t+"");if(arguments.length<2){for(var r=Zt(this.node()),i=-1,o=e.length;++i=0&&(n=t.slice(e+1),t=t.slice(0,e)),{type:t,name:n}}))}(t+""),a=o.length;if(!(arguments.length<2)){for(u=n?xn:wn,null==e&&(e=!1),r=0;r>8&15|n>>4&240,n>>4&15|240&n,(15&n)<<4|15&n,1):(n=Hn.exec(t))?Jn(parseInt(n[1],16)):(n=Vn.exec(t))?new re(n[1],n[2],n[3],1):(n=Wn.exec(t))?new re(255*n[1]/100,255*n[2]/100,255*n[3]/100,1):(n=Xn.exec(t))?te(n[1],n[2],n[3],n[4]):(n=$n.exec(t))?te(255*n[1]/100,255*n[2]/100,255*n[3]/100,n[4]):(n=Gn.exec(t))?oe(n[1],n[2]/100,n[3]/100,1):(n=Qn.exec(t))?oe(n[1],n[2]/100,n[3]/100,n[4]):Zn.hasOwnProperty(t)?Jn(Zn[t]):"transparent"===t?new re(NaN,NaN,NaN,0):null}function Jn(t){return new re(t>>16&255,t>>8&255,255&t,1)}function te(t,n,e,r){return r<=0&&(t=n=e=NaN),new re(t,n,e,r)}function ne(t){return t instanceof Ln||(t=Kn(t)),t?new re((t=t.rgb()).r,t.g,t.b,t.opacity):new re}function ee(t,n,e,r){return 1===arguments.length?ne(t):new re(t,n,e,null==r?1:r)}function re(t,n,e,r){this.r=+t,this.g=+n,this.b=+e,this.opacity=+r}function ie(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function oe(t,n,e,r){return r<=0?t=n=e=NaN:e<=0||e>=1?t=n=NaN:n<=0&&(t=NaN),new ue(t,n,e,r)}function ae(t,n,e,r){return 1===arguments.length?function(t){if(t instanceof ue)return new ue(t.h,t.s,t.l,t.opacity);if(t instanceof Ln||(t=Kn(t)),!t)return new ue;if(t instanceof ue)return t;var n=(t=t.rgb()).r/255,e=t.g/255,r=t.b/255,i=Math.min(n,e,r),o=Math.max(n,e,r),a=NaN,u=o-i,c=(o+i)/2;return u?(a=n===o?(e-r)/u+6*(e0&&c<1?0:a,new ue(a,u,c,t.opacity)}(t):new ue(t,n,e,null==r?1:r)}function ue(t,n,e,r){this.h=+t,this.s=+n,this.l=+e,this.opacity=+r}function ce(t,n,e){return 255*(t<60?n+(e-n)*t/60:t<180?e:t<240?n+(e-n)*(240-t)/60:n)}Un(Ln,Kn,{displayable:function(){return this.rgb().displayable()},hex:function(){return this.rgb().hex()},toString:function(){return this.rgb()+""}}),Un(re,ee,Dn(Ln,{brighter:function(t){return t=null==t?Fn:Math.pow(Fn,t),new re(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?zn:Math.pow(zn,t),new re(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},hex:function(){return"#"+ie(this.r)+ie(this.g)+ie(this.b)},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+")")}})),Un(ue,ae,Dn(Ln,{brighter:function(t){return t=null==t?Fn:Math.pow(Fn,t),new ue(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?zn:Math.pow(zn,t),new ue(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),n=isNaN(t)||isNaN(this.s)?0:this.s,e=this.l,r=e+(e<.5?e:1-e)*n,i=2*e-r;return new re(ce(t>=240?t-240:t+120,i,r),ce(t,i,r),ce(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 le=Math.PI/180,se=180/Math.PI,fe=.96422,he=1,de=.82521,pe=4/29,ge=6/29,ve=3*ge*ge,ye=ge*ge*ge;function me(t){if(t instanceof _e)return new _e(t.l,t.a,t.b,t.opacity);if(t instanceof ke){if(isNaN(t.h))return new _e(t.l,0,0,t.opacity);var n=t.h*le;return new _e(t.l,Math.cos(n)*t.c,Math.sin(n)*t.c,t.opacity)}t instanceof re||(t=ne(t));var e,r,i=Me(t.r),o=Me(t.g),a=Me(t.b),u=be((.2225045*i+.7168786*o+.0606169*a)/he);return i===o&&o===a?e=r=u:(e=be((.4360747*i+.3850649*o+.1430804*a)/fe),r=be((.0139322*i+.0971045*o+.7141733*a)/de)),new _e(116*u-16,500*(e-u),200*(u-r),t.opacity)}function _e(t,n,e,r){this.l=+t,this.a=+n,this.b=+e,this.opacity=+r}function be(t){return t>ye?Math.pow(t,1/3):t/ve+pe}function we(t){return t>ge?t*t*t:ve*(t-pe)}function xe(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function Me(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function Ee(t,n,e,r){return 1===arguments.length?function(t){if(t instanceof ke)return new ke(t.h,t.c,t.l,t.opacity);if(t instanceof _e||(t=me(t)),0===t.a&&0===t.b)return new ke(NaN,0,t.l,t.opacity);var n=Math.atan2(t.b,t.a)*se;return new ke(n<0?n+360:n,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}(t):new ke(t,n,e,null==r?1:r)}function ke(t,n,e,r){this.h=+t,this.c=+n,this.l=+e,this.opacity=+r}Un(_e,(function(t,n,e,r){return 1===arguments.length?me(t):new _e(t,n,e,null==r?1:r)}),Dn(Ln,{brighter:function(t){return new _e(this.l+18*(null==t?1:t),this.a,this.b,this.opacity)},darker:function(t){return new _e(this.l-18*(null==t?1:t),this.a,this.b,this.opacity)},rgb:function(){var t=(this.l+16)/116,n=isNaN(this.a)?t:t+this.a/500,e=isNaN(this.b)?t:t-this.b/200;return new re(xe(3.1338561*(n=fe*we(n))-1.6168667*(t=he*we(t))-.4906146*(e=de*we(e))),xe(-.9787684*n+1.9161415*t+.033454*e),xe(.0719453*n-.2289914*t+1.4052427*e),this.opacity)}})),Un(ke,Ee,Dn(Ln,{brighter:function(t){return new ke(this.h,this.c,this.l+18*(null==t?1:t),this.opacity)},darker:function(t){return new ke(this.h,this.c,this.l-18*(null==t?1:t),this.opacity)},rgb:function(){return me(this).rgb()}}));var Ne=-.14861,Se=1.78277,Te=-.29227,Ce=-.90649,Ae=1.97294,Pe=Ae*Ce,Re=Ae*Se,Ie=Se*Te-Ce*Ne;function Oe(t,n,e,r){return 1===arguments.length?function(t){if(t instanceof Ue)return new Ue(t.h,t.s,t.l,t.opacity);t instanceof re||(t=ne(t));var n=t.r/255,e=t.g/255,r=t.b/255,i=(Ie*r+Pe*n-Re*e)/(Ie+Pe-Re),o=r-i,a=(Ae*(e-i)-Te*o)/Ce,u=Math.sqrt(a*a+o*o)/(Ae*i*(1-i)),c=u?Math.atan2(a,o)*se-120:NaN;return new Ue(c<0?c+360:c,u,i,t.opacity)}(t):new Ue(t,n,e,null==r?1:r)}function Ue(t,n,e,r){this.h=+t,this.s=+n,this.l=+e,this.opacity=+r}function De(t,n,e,r,i){var o=t*t,a=o*t;return((1-3*t+3*o-a)*n+(4-6*o+3*a)*e+(1+3*t+3*o-3*a)*r+a*i)/6}function Le(t){return function(){return t}}function ze(t,n){return function(e){return t+e*n}}function Fe(t,n){var e=n-t;return e?ze(t,e>180||e<-180?e-360*Math.round(e/360):e):Le(isNaN(t)?n:t)}function qe(t,n){var e=n-t;return e?ze(t,e):Le(isNaN(t)?n:t)}Un(Ue,Oe,Dn(Ln,{brighter:function(t){return t=null==t?Fn:Math.pow(Fn,t),new Ue(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?zn:Math.pow(zn,t),new Ue(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=isNaN(this.h)?0:(this.h+120)*le,n=+this.l,e=isNaN(this.s)?0:this.s*n*(1-n),r=Math.cos(t),i=Math.sin(t);return new re(255*(n+e*(Ne*r+Se*i)),255*(n+e*(Te*r+Ce*i)),255*(n+e*(Ae*r)),this.opacity)}}));const je=function t(n){var e=function(t){return 1==(t=+t)?qe:function(n,e){return e-n?function(t,n,e){return t=Math.pow(t,e),n=Math.pow(n,e)-t,e=1/e,function(r){return Math.pow(t+r*n,e)}}(n,e,t):Le(isNaN(n)?e:n)}}(n);function r(t,n){var r=e((t=ee(t)).r,(n=ee(n)).r),i=e(t.g,n.g),o=e(t.b,n.b),a=qe(t.opacity,n.opacity);return function(n){return t.r=r(n),t.g=i(n),t.b=o(n),t.opacity=a(n),t+""}}return r.gamma=t,r}(1);function Be(t){return function(n){var e,r,i=n.length,o=new Array(i),a=new Array(i),u=new Array(i);for(e=0;e=1?(e=1,n-1):Math.floor(e*n),i=t[r],o=t[r+1],a=r>0?t[r-1]:2*i-o,u=ro&&(i=n.slice(o,i),u[a]?u[a]+=i:u[++a]=i),(e=e[0])===(r=r[0])?u[a]?u[a]+=r:u[++a]=r:(u[++a]=null,c.push({i:a,x:Ve(e,r)})),o=$e.lastIndex;return o180?n+=360:n-t>180&&(t+=360),o.push({i:e.push(i(e)+"rotate(",null,r)-2,x:Ve(t,n)})):n&&e.push(i(e)+"rotate("+n+r)}(o.rotate,a.rotate,u,c),function(t,n,e,o){t!==n?o.push({i:e.push(i(e)+"skewX(",null,r)-2,x:Ve(t,n)}):n&&e.push(i(e)+"skewX("+n+r)}(o.skewX,a.skewX,u,c),function(t,n,e,r,o,a){if(t!==e||n!==r){var u=o.push(i(o)+"scale(",null,",",null,")");a.push({i:u-4,x:Ve(t,e)},{i:u-2,x:Ve(n,r)})}else 1===e&&1===r||o.push(i(o)+"scale("+e+","+r+")")}(o.scaleX,o.scaleY,a.scaleX,a.scaleY,u,c),o=a=null,function(t){for(var n,e=-1,r=c.length;++e=0&&n._call.call(null,t),n=n._next;--hr}()}finally{hr=0,function(){for(var t,n,e=sr,r=1/0;e;)e._call?(r>e._time&&(r=e._time),t=e,e=e._next):(n=e._next,e._next=null,e=t?t._next=n:sr=n);fr=t,Sr(r)}(),yr=0}}function Nr(){var t=_r.now(),n=t-vr;n>gr&&(mr-=n,vr=t)}function Sr(t){hr||(dr&&(dr=clearTimeout(dr)),t-yr>24?(t<1/0&&(dr=setTimeout(kr,t-_r.now()-mr)),pr&&(pr=clearInterval(pr))):(pr||(vr=_r.now(),pr=setInterval(Nr,gr)),hr=1,br(kr)))}function Tr(t,n,e){var r=new Mr;return n=null==n?0:+n,r.restart((function(e){r.stop(),t(e+n)}),n,e),r}Mr.prototype=Er.prototype={constructor:Mr,restart:function(t,n,e){if("function"!=typeof t)throw new TypeError("callback is not a function");e=(null==e?wr():+e)+(null==n?0:+n),this._next||fr===this||(fr?fr._next=this:sr=this,fr=this),this._call=t,this._time=e,Sr()},stop:function(){this._call&&(this._call=null,this._time=1/0,Sr())}};var Cr=gt("start","end","interrupt"),Ar=[],Pr=0,Rr=1,Ir=2,Or=3,Ur=4,Dr=5,Lr=6;function zr(t,n,e,r,i,o){var a=t.__transition;if(a){if(e in a)return}else t.__transition={};!function(t,n,e){var r,i=t.__transition;function o(c){var l,s,f,h;if(e.state!==Rr)return u();for(l in i)if((h=i[l]).name===e.name){if(h.state===Or)return Tr(o);h.state===Ur?(h.state=Lr,h.timer.stop(),h.on.call("interrupt",t,t.__data__,h.index,h.group),delete i[l]):+lPr)throw new Error("too late; already scheduled");return e}function qr(t,n){var e=jr(t,n);if(e.state>Ir)throw new Error("too late; already started");return e}function jr(t,n){var e=t.__transition;if(!e||!(e=e[n]))throw new Error("transition not found");return e}function Br(t,n){var e,r,i,o=t.__transition,a=!0;if(o){for(i in n=null==n?null:n+"",o)(e=o[i]).name===n?(r=e.state>Ir&&e.state=0&&(t=t.slice(0,n)),!t||"start"===t}))}(n)?Fr:qr;return function(){var a=o(this,t),u=a.on;u!==r&&(i=(r=u).copy()).on(n,e),a.on=i}}(e,t,n))},attr:function(t,n){var e=mt(t),r="transform"===e?ar:Wr;return this.attrTween(t,"function"==typeof n?(e.local?Kr:Zr)(e,r,Vr(this,"attr."+t,n)):null==n?(e.local?$r:Xr)(e):(e.local?Qr:Gr)(e,r,n+""))},attrTween:function(t,n){var e="attr."+t;if(arguments.length<2)return(e=this.tween(e))&&e._value;if(null==n)return this.tween(e,null);if("function"!=typeof n)throw new Error;var r=mt(t);return this.tween(e,(r.local?Jr:ti)(r,n))},style:function(t,n,e){var r="transform"==(t+="")?or:Wr;return null==n?this.styleTween(t,function(t,n){var e,r,i;return function(){var o=Wt(this,t),a=(this.style.removeProperty(t),Wt(this,t));return o===a?null:o===e&&a===r?i:i=n(e=o,r=a)}}(t,r)).on("end.style."+t,function(t){return function(){this.style.removeProperty(t)}}(t)):this.styleTween(t,"function"==typeof n?function(t,n,e){var r,i,o;return function(){var a=Wt(this,t),u=e(this);return null==u&&(this.style.removeProperty(t),u=Wt(this,t)),a===u?null:a===r&&u===i?o:o=n(r=a,i=u)}}(t,r,Vr(this,"style."+t,n)):function(t,n,e){var r,i;return function(){var o=Wt(this,t);return o===e?null:o===r?i:i=n(r=o,e)}}(t,r,n+""),e)},styleTween:function(t,n,e){var r="style."+(t+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(null==n)return this.tween(r,null);if("function"!=typeof n)throw new Error;return this.tween(r,function(t,n,e){function r(){var r=this,i=n.apply(r,arguments);return i&&function(n){r.style.setProperty(t,i(n),e)}}return r._value=n,r}(t,n,null==e?"":e))},text:function(t){return this.tween("text","function"==typeof t?function(t){return function(){var n=t(this);this.textContent=null==n?"":n}}(Vr(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 n=this.parentNode;for(var e in this.__transition)if(+e!==t)return;n&&n.removeChild(this)}}(this._id))},tween:function(t,n){var e=this._id;if(t+="",arguments.length<2){for(var r,i=jr(this.node(),e).tween,o=0,a=i.length;o0&&(e=i-d),x<0?f=h-p:x>0&&(o=a-p),b=wi,U.attr("cursor",Si.selection),z());break;default:return}yi()}),!0).on("keyup.brush",(function(){switch(mn.keyCode){case 16:A&&(v=y=A=!1,z());break;case 18:b===Mi&&(w<0?l=s:w>0&&(e=i),x<0?f=h:x>0&&(o=a),b=xi,z());break;case 32:b===wi&&(mn.altKey?(w&&(l=s-d*w,e=i+d*w),x&&(f=h-p*x,o=a+p*x),b=Mi):(w<0?l=s:w>0&&(e=i),x<0?f=h:x>0&&(o=a),b=xi),U.attr("cursor",Si[_]),z());break;default:return}yi()}),!0).on("mousemove.brush",L,!0).on("mouseup.brush",F,!0);!function(t){var n=t.document.documentElement,e=An(t).on("dragstart.drag",On,!0);"onselectstart"in n?e.on("selectstart.drag",On,!0):(n.__noselect=n.style.MozUserSelect,n.style.MozUserSelect="none")}(mn.view)}vi(),Br(m),u.call(m),I.start()}function L(){var t=In(m);!A||v||y||(Math.abs(t[0]-R[0])>Math.abs(t[1]-R[1])?y=!0:v=!0),R=t,g=!0,yi(),z()}function z(){var t;switch(d=R[0]-P[0],p=R[1]-P[1],b){case wi:case bi:w&&(d=Math.max(N-e,Math.min(T-l,d)),i=e+d,s=l+d),x&&(p=Math.max(S-o,Math.min(C-f,p)),a=o+p,h=f+p);break;case xi:w<0?(d=Math.max(N-e,Math.min(T-e,d)),i=e+d,s=l):w>0&&(d=Math.max(N-l,Math.min(T-l,d)),i=e,s=l+d),x<0?(p=Math.max(S-o,Math.min(C-o,p)),a=o+p,h=f):x>0&&(p=Math.max(S-f,Math.min(C-f,p)),a=o,h=f+p);break;case Mi:w&&(i=Math.max(N,Math.min(T,e-d*w)),s=Math.max(N,Math.min(T,l+d*w))),x&&(a=Math.max(S,Math.min(C,o-p*x)),h=Math.max(S,Math.min(C,f+p*x)))}sn?1:t>=n?0:NaN}1===(mi=Bi).length&&(_i=mi,mi=function(t,n){return Bi(_i(t),n)});var Yi=Array.prototype;function Hi(t,n,e){t=+t,n=+n,e=(i=arguments.length)<2?(n=t,t=0,1):i<3?1:+e;for(var r=-1,i=0|Math.max(0,Math.ceil((n-t)/e)),o=new Array(i);++reo)if(Math.abs(s*u-c*l)>eo&&i){var h=e-o,d=r-a,p=u*u+c*c,g=h*h+d*d,v=Math.sqrt(p),y=Math.sqrt(f),m=i*Math.tan((to-Math.acos((p+f-g)/(2*v*y)))/2),_=m/y,b=m/v;Math.abs(_-1)>eo&&(this._+="L"+(t+_*l)+","+(n+_*s)),this._+="A"+i+","+i+",0,0,"+ +(s*h>l*d)+","+(this._x1=t+b*u)+","+(this._y1=n+b*c)}else this._+="L"+(this._x1=t)+","+(this._y1=n)},arc:function(t,n,e,r,i,o){t=+t,n=+n;var a=(e=+e)*Math.cos(r),u=e*Math.sin(r),c=t+a,l=n+u,s=1^o,f=o?r-i:i-r;if(e<0)throw new Error("negative radius: "+e);null===this._x1?this._+="M"+c+","+l:(Math.abs(this._x1-c)>eo||Math.abs(this._y1-l)>eo)&&(this._+="L"+c+","+l),e&&(f<0&&(f=f%no+no),f>ro?this._+="A"+e+","+e+",0,1,"+s+","+(t-a)+","+(n-u)+"A"+e+","+e+",0,1,"+s+","+(this._x1=c)+","+(this._y1=l):f>eo&&(this._+="A"+e+","+e+",0,"+ +(f>=to)+","+s+","+(this._x1=t+e*Math.cos(i))+","+(this._y1=n+e*Math.sin(i))))},rect:function(t,n,e,r){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+n)+"h"+ +e+"v"+ +r+"h"+-e+"Z"},toString:function(){return this._}};const ao=oo;function uo(t){return t.source}function co(t){return t.target}function lo(t){return t.radius}function so(t){return t.startAngle}function fo(t){return t.endAngle}function ho(){var t=uo,n=co,e=lo,r=so,i=fo,o=null;function a(){var a,u=Ki.call(arguments),c=t.apply(this,u),l=n.apply(this,u),s=+e.apply(this,(u[0]=c,u)),f=r.apply(this,u)-$i,h=i.apply(this,u)-$i,d=s*Vi(f),p=s*Wi(f),g=+e.apply(this,(u[0]=l,u)),v=r.apply(this,u)-$i,y=i.apply(this,u)-$i;if(o||(o=a=ao()),o.moveTo(d,p),o.arc(0,0,s,f,h),f===v&&h===y||(o.quadraticCurveTo(0,0,g*Vi(v),g*Wi(v)),o.arc(0,0,g,v,y)),o.quadraticCurveTo(0,0,d,p),o.closePath(),a)return o=null,a+""||null}return a.radius=function(t){return arguments.length?(e="function"==typeof t?t:Ji(+t),a):e},a.startAngle=function(t){return arguments.length?(r="function"==typeof t?t:Ji(+t),a):r},a.endAngle=function(t){return arguments.length?(i="function"==typeof t?t:Ji(+t),a):i},a.source=function(n){return arguments.length?(t=n,a):t},a.target=function(t){return arguments.length?(n=t,a):n},a.context=function(t){return arguments.length?(o=null==t?null:t,a):o},a}var po="$";function go(){}function vo(t,n){var e=new go;if(t instanceof go)t.each((function(t,n){e.set(n,t)}));else if(Array.isArray(t)){var r,i=-1,o=t.length;if(null==n)for(;++i=r.length)return null!=t&&e.sort(t),null!=n?n(e):e;for(var c,l,s,f=-1,h=e.length,d=r[i++],p=yo(),g=a();++fr.length)return t;var o,u=i[e-1];return null!=n&&e>=r.length?o=t.entries():(o=[],t.each((function(t,n){o.push({key:n,values:a(t,e)})}))),null!=u?o.sort((function(t,n){return u(t.key,n.key)})):o}return e={object:function(t){return o(t,0,_o,bo)},map:function(t){return o(t,0,wo,xo)},entries:function(t){return a(o(t,0,wo,xo),0)},key:function(t){return r.push(t),e},sortKeys:function(t){return i[r.length-1]=t,e},sortValues:function(n){return t=n,e},rollup:function(t){return n=t,e}}}function _o(){return{}}function bo(t,n,e){t[n]=e}function wo(){return yo()}function xo(t,n,e){t.set(n,e)}function Mo(){}var Eo=yo.prototype;function ko(t,n){var e=new Mo;if(t instanceof Mo)t.each((function(t){e.add(t)}));else if(t){var r=-1,i=t.length;if(null==n)for(;++r>8&15|n>>4&240,n>>4&15|240&n,(15&n)<<4|15&n,1):(n=Fo.exec(t))?$o(parseInt(n[1],16)):(n=qo.exec(t))?new Ko(n[1],n[2],n[3],1):(n=jo.exec(t))?new Ko(255*n[1]/100,255*n[2]/100,255*n[3]/100,1):(n=Bo.exec(t))?Go(n[1],n[2],n[3],n[4]):(n=Yo.exec(t))?Go(255*n[1]/100,255*n[2]/100,255*n[3]/100,n[4]):(n=Ho.exec(t))?Jo(n[1],n[2]/100,n[3]/100,1):(n=Vo.exec(t))?Jo(n[1],n[2]/100,n[3]/100,n[4]):Wo.hasOwnProperty(t)?$o(Wo[t]):"transparent"===t?new Ko(NaN,NaN,NaN,0):null}function $o(t){return new Ko(t>>16&255,t>>8&255,255&t,1)}function Go(t,n,e,r){return r<=0&&(t=n=e=NaN),new Ko(t,n,e,r)}function Qo(t){return t instanceof Ro||(t=Xo(t)),t?new Ko((t=t.rgb()).r,t.g,t.b,t.opacity):new Ko}function Zo(t,n,e,r){return 1===arguments.length?Qo(t):new Ko(t,n,e,null==r?1:r)}function Ko(t,n,e,r){this.r=+t,this.g=+n,this.b=+e,this.opacity=+r}function Jo(t,n,e,r){return r<=0?t=n=e=NaN:e<=0||e>=1?t=n=NaN:n<=0&&(t=NaN),new na(t,n,e,r)}function ta(t,n,e,r){return 1===arguments.length?function(t){if(t instanceof na)return new na(t.h,t.s,t.l,t.opacity);if(t instanceof Ro||(t=Xo(t)),!t)return new na;if(t instanceof na)return t;var n=(t=t.rgb()).r/255,e=t.g/255,r=t.b/255,i=Math.min(n,e,r),o=Math.max(n,e,r),a=NaN,u=o-i,c=(o+i)/2;return u?(a=n===o?(e-r)/u+6*(e0&&c<1?0:a,new na(a,u,c,t.opacity)}(t):new na(t,n,e,null==r?1:r)}function na(t,n,e,r){this.h=+t,this.s=+n,this.l=+e,this.opacity=+r}function ea(t,n,e){return 255*(t<60?n+(e-n)*t/60:t<180?e:t<240?n+(e-n)*(240-t)/60:n)}Ao(Ro,Xo,{displayable:function(){return this.rgb().displayable()},toString:function(){return this.rgb()+""}}),Ao(Ko,Zo,Po(Ro,{brighter:function(t){return t=null==t?Oo:Math.pow(Oo,t),new Ko(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?Io:Math.pow(Io,t),new Ko(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+")")}})),Ao(na,ta,Po(Ro,{brighter:function(t){return t=null==t?Oo:Math.pow(Oo,t),new na(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?Io:Math.pow(Io,t),new na(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),n=isNaN(t)||isNaN(this.s)?0:this.s,e=this.l,r=e+(e<.5?e:1-e)*n,i=2*e-r;return new Ko(ea(t>=240?t-240:t+120,i,r),ea(t,i,r),ea(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 ra=Math.PI/180,ia=180/Math.PI,oa=.95047,aa=1,ua=1.08883,ca=4/29,la=6/29,sa=3*la*la,fa=la*la*la;function ha(t){if(t instanceof pa)return new pa(t.l,t.a,t.b,t.opacity);if(t instanceof ba){var n=t.h*ra;return new pa(t.l,Math.cos(n)*t.c,Math.sin(n)*t.c,t.opacity)}t instanceof Ko||(t=Qo(t));var e=ma(t.r),r=ma(t.g),i=ma(t.b),o=ga((.4124564*e+.3575761*r+.1804375*i)/oa),a=ga((.2126729*e+.7151522*r+.072175*i)/aa);return new pa(116*a-16,500*(o-a),200*(a-ga((.0193339*e+.119192*r+.9503041*i)/ua)),t.opacity)}function da(t,n,e,r){return 1===arguments.length?ha(t):new pa(t,n,e,null==r?1:r)}function pa(t,n,e,r){this.l=+t,this.a=+n,this.b=+e,this.opacity=+r}function ga(t){return t>fa?Math.pow(t,1/3):t/sa+ca}function va(t){return t>la?t*t*t:sa*(t-ca)}function ya(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function ma(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function _a(t,n,e,r){return 1===arguments.length?function(t){if(t instanceof ba)return new ba(t.h,t.c,t.l,t.opacity);t instanceof pa||(t=ha(t));var n=Math.atan2(t.b,t.a)*ia;return new ba(n<0?n+360:n,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}(t):new ba(t,n,e,null==r?1:r)}function ba(t,n,e,r){this.h=+t,this.c=+n,this.l=+e,this.opacity=+r}Ao(pa,da,Po(Ro,{brighter:function(t){return new pa(this.l+18*(null==t?1:t),this.a,this.b,this.opacity)},darker:function(t){return new pa(this.l-18*(null==t?1:t),this.a,this.b,this.opacity)},rgb:function(){var t=(this.l+16)/116,n=isNaN(this.a)?t:t+this.a/500,e=isNaN(this.b)?t:t-this.b/200;return t=aa*va(t),new Ko(ya(3.2404542*(n=oa*va(n))-1.5371385*t-.4985314*(e=ua*va(e))),ya(-.969266*n+1.8760108*t+.041556*e),ya(.0556434*n-.2040259*t+1.0572252*e),this.opacity)}})),Ao(ba,_a,Po(Ro,{brighter:function(t){return new ba(this.h,this.c,this.l+18*(null==t?1:t),this.opacity)},darker:function(t){return new ba(this.h,this.c,this.l-18*(null==t?1:t),this.opacity)},rgb:function(){return ha(this).rgb()}}));var wa=-.14861,xa=1.78277,Ma=-.29227,Ea=-.90649,ka=1.97294,Na=ka*Ea,Sa=ka*xa,Ta=xa*Ma-Ea*wa;function Ca(t,n,e,r){return 1===arguments.length?function(t){if(t instanceof Aa)return new Aa(t.h,t.s,t.l,t.opacity);t instanceof Ko||(t=Qo(t));var n=t.r/255,e=t.g/255,r=t.b/255,i=(Ta*r+Na*n-Sa*e)/(Ta+Na-Sa),o=r-i,a=(ka*(e-i)-Ma*o)/Ea,u=Math.sqrt(a*a+o*o)/(ka*i*(1-i)),c=u?Math.atan2(a,o)*ia-120:NaN;return new Aa(c<0?c+360:c,u,i,t.opacity)}(t):new Aa(t,n,e,null==r?1:r)}function Aa(t,n,e,r){this.h=+t,this.s=+n,this.l=+e,this.opacity=+r}Ao(Aa,Ca,Po(Ro,{brighter:function(t){return t=null==t?Oo:Math.pow(Oo,t),new Aa(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?Io:Math.pow(Io,t),new Aa(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=isNaN(this.h)?0:(this.h+120)*ra,n=+this.l,e=isNaN(this.s)?0:this.s*n*(1-n),r=Math.cos(t),i=Math.sin(t);return new Ko(255*(n+e*(wa*r+xa*i)),255*(n+e*(Ma*r+Ea*i)),255*(n+e*(ka*r)),this.opacity)}}));var Pa={value:function(){}};function Ra(){for(var t,n=0,e=arguments.length,r={};n=0&&(n=t.slice(e+1),t=t.slice(0,e)),t&&!r.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:n}}))),a=-1,u=o.length;if(!(arguments.length<2)){if(null!=n&&"function"!=typeof n)throw new Error("invalid callback: "+n);for(;++a0)for(var e,r,i=new Array(e),o=0;o=0&&(n=t.slice(e+1),t=t.slice(0,e)),t&&!r.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:n}}))),a=-1,u=o.length;if(!(arguments.length<2)){if(null!=n&&"function"!=typeof n)throw new Error("invalid callback: "+n);for(;++a0)for(var e,r,i=new Array(e),o=0;o=0&&"xmlns"!==(n=t.slice(0,e))&&(t=t.slice(e+1)),Ha.hasOwnProperty(n)?{space:Ha[n],local:t}:t}function Wa(t){return function(){var n=this.ownerDocument,e=this.namespaceURI;return e===Ya&&n.documentElement.namespaceURI===Ya?n.createElement(t):n.createElementNS(e,t)}}function Xa(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function $a(t){var n=Va(t);return(n.local?Xa:Wa)(n)}function Ga(){}function Qa(t){return null==t?Ga:function(){return this.querySelector(t)}}function Za(){return[]}var Ka=function(t){return function(){return this.matches(t)}};if("undefined"!=typeof document){var Ja=document.documentElement;if(!Ja.matches){var tu=Ja.webkitMatchesSelector||Ja.msMatchesSelector||Ja.mozMatchesSelector||Ja.oMatchesSelector;Ka=function(t){return function(){return tu.call(this,t)}}}}const nu=Ka;function eu(t){return new Array(t.length)}function ru(t,n){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=n}ru.prototype={constructor:ru,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,n){return this._parent.insertBefore(t,n)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};var iu="$";function ou(t,n,e,r,i,o){for(var a,u=0,c=n.length,l=o.length;un?1:t>=n?0:NaN}function cu(t){return function(){this.removeAttribute(t)}}function lu(t){return function(){this.removeAttributeNS(t.space,t.local)}}function su(t,n){return function(){this.setAttribute(t,n)}}function fu(t,n){return function(){this.setAttributeNS(t.space,t.local,n)}}function hu(t,n){return function(){var e=n.apply(this,arguments);null==e?this.removeAttribute(t):this.setAttribute(t,e)}}function du(t,n){return function(){var e=n.apply(this,arguments);null==e?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,e)}}function pu(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function gu(t){return function(){this.style.removeProperty(t)}}function vu(t,n,e){return function(){this.style.setProperty(t,n,e)}}function yu(t,n,e){return function(){var r=n.apply(this,arguments);null==r?this.style.removeProperty(t):this.style.setProperty(t,r,e)}}function mu(t){return function(){delete this[t]}}function _u(t,n){return function(){this[t]=n}}function bu(t,n){return function(){var e=n.apply(this,arguments);null==e?delete this[t]:this[t]=e}}function wu(t){return t.trim().split(/^|\s+/)}function xu(t){return t.classList||new Mu(t)}function Mu(t){this._node=t,this._names=wu(t.getAttribute("class")||"")}function Eu(t,n){for(var e=xu(t),r=-1,i=n.length;++r=0&&(this._names.splice(n,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var ju={},Bu=null;function Yu(t,n,e){return t=Hu(t,n,e),function(n){var e=n.relatedTarget;e&&(e===this||8&e.compareDocumentPosition(this))||t.call(this,n)}}function Hu(t,n,e){return function(r){var i=Bu;Bu=r;try{t.call(this,this.__data__,n,e)}finally{Bu=i}}}function Vu(t){return function(){var n=this.__on;if(n){for(var e,r=0,i=-1,o=n.length;r=w&&(w=b+1);!(_=y[w])&&++w=0;)(r=i[o])&&(a&&a!==r.nextSibling&&a.parentNode.insertBefore(r,a),a=r);return this},sort:function(t){function n(n,e){return n&&e?t(n.__data__,e.__data__):!n-!e}t||(t=uu);for(var e=this._groups,r=e.length,i=new Array(r),o=0;o1?this.each((null==n?gu:"function"==typeof n?yu:vu)(t,n,null==e?"":e)):function(t,n){return t.style.getPropertyValue(n)||pu(t).getComputedStyle(t,null).getPropertyValue(n)}(this.node(),t)},property:function(t,n){return arguments.length>1?this.each((null==n?mu:"function"==typeof n?bu:_u)(t,n)):this.node()[t]},classed:function(t,n){var e=wu(t+"");if(arguments.length<2){for(var r=xu(this.node()),i=-1,o=e.length;++i=0&&(n=t.slice(e+1),t=t.slice(0,e)),{type:t,name:n}}))}(t+""),a=o.length;if(!(arguments.length<2)){for(u=n?Wu:Vu,null==e&&(e=!1),r=0;rf}c.mouse("drag")}function g(){Ju(Bu.view).on("mousemove.drag mouseup.drag",null),lc(Bu.view,e),uc(),c.mouse("end")}function v(){if(i.apply(this,arguments)){var t,n,e=Bu.changedTouches,r=o.apply(this,arguments),a=e.length;for(t=0;t=o?c=!0:(r=t.charCodeAt(a++))===bc?l=!0:r===wc&&(l=!0,t.charCodeAt(a)===bc&&++a),t.slice(i+1,n-1).replace(/""/g,'"')}for(;a=(o=(g+y)/2))?g=o:y=o,(s=e>=(a=(v+m)/2))?v=a:m=a,i=d,!(d=d[f=s<<1|l]))return i[f]=p,t;if(u=+t._x.call(null,d.data),c=+t._y.call(null,d.data),n===u&&e===c)return p.next=d,i?i[f]=p:t._root=p,t;do{i=i?i[f]=new Array(4):t._root=new Array(4),(l=n>=(o=(g+y)/2))?g=o:y=o,(s=e>=(a=(v+m)/2))?v=a:m=a}while((f=s<<1|l)==(h=(c>=a)<<1|u>=o));return i[h]=d,i[f]=p,t}function Nl(t,n,e,r,i){this.node=t,this.x0=n,this.y0=e,this.x1=r,this.y1=i}function Sl(t){return t[0]}function Tl(t){return t[1]}function Cl(t,n,e){var r=new Al(null==n?Sl:n,null==e?Tl:e,NaN,NaN,NaN,NaN);return null==t?r:r.addAll(t)}function Al(t,n,e,r,i,o){this._x=t,this._y=n,this._x0=e,this._y0=r,this._x1=i,this._y1=o,this._root=void 0}function Pl(t){for(var n={data:t.data},e=n;t=t.next;)e=e.next={data:t.data};return n}var Rl=Cl.prototype=Al.prototype;function Il(t){return t.x+t.vx}function Ol(t){return t.y+t.vy}function Ul(t){var n,e,r=1,i=1;function o(){for(var t,o,u,c,l,s,f,h=n.length,d=0;dc+d||il+d||ou.index){var p=c-a.x-a.vx,g=l-a.y-a.vy,v=p*p+g*g;vt.r&&(t.r=t[n].r)}function u(){if(n){var r,i,o=n.length;for(e=new Array(o),r=0;rs&&(s=r),if&&(f=i));for(st||t>i||r>n||n>o))return this;var a,u,c=i-e,l=this._root;switch(u=(n<(r+o)/2)<<1|t<(e+i)/2){case 0:do{(a=new Array(4))[u]=l,l=a}while(o=r+(c*=2),t>(i=e+c)||n>o);break;case 1:do{(a=new Array(4))[u]=l,l=a}while(o=r+(c*=2),(e=i-c)>t||n>o);break;case 2:do{(a=new Array(4))[u]=l,l=a}while(r=o-(c*=2),t>(i=e+c)||r>n);break;case 3:do{(a=new Array(4))[u]=l,l=a}while(r=o-(c*=2),(e=i-c)>t||r>n)}this._root&&this._root.length&&(this._root=l)}return this._x0=e,this._y0=r,this._x1=i,this._y1=o,this},Rl.data=function(){var t=[];return this.visit((function(n){if(!n.length)do{t.push(n.data)}while(n=n.next)})),t},Rl.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]]},Rl.find=function(t,n,e){var r,i,o,a,u,c,l,s=this._x0,f=this._y0,h=this._x1,d=this._y1,p=[],g=this._root;for(g&&p.push(new Nl(g,s,f,h,d)),null==e?e=1/0:(s=t-e,f=n-e,h=t+e,d=n+e,e*=e);c=p.pop();)if(!(!(g=c.node)||(i=c.x0)>h||(o=c.y0)>d||(a=c.x1)=y)<<1|t>=v)&&(c=p[p.length-1],p[p.length-1]=p[p.length-1-l],p[p.length-1-l]=c)}else{var m=t-+this._x.call(null,g.data),_=n-+this._y.call(null,g.data),b=m*m+_*_;if(b=(u=(p+v)/2))?p=u:v=u,(s=a>=(c=(g+y)/2))?g=c:y=c,n=d,!(d=d[f=s<<1|l]))return this;if(!d.length)break;(n[f+1&3]||n[f+2&3]||n[f+3&3])&&(e=n,h=f)}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):n?(i?n[f]=i:delete n[f],(d=n[0]||n[1]||n[2]||n[3])&&d===(n[3]||n[2]||n[1]||n[0])&&!d.length&&(e?e[h]=d:this._root=d),this):(this._root=i,this)},Rl.removeAll=function(t){for(var n=0,e=t.length;n=0&&(n=t.slice(e+1),t=t.slice(0,e)),t&&!r.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:n}}))),a=-1,u=o.length;if(!(arguments.length<2)){if(null!=n&&"function"!=typeof n)throw new Error("invalid callback: "+n);for(;++a0)for(var e,r,i=new Array(e),o=0;o=0&&n._call.call(null,t),n=n._next;--Jl}()}finally{Jl=0,function(){for(var t,n,e=Zl,r=1/0;e;)e._call?(r>e._time&&(r=e._time),t=e,e=e._next):(n=e._next,e._next=null,e=t?t._next=n:Zl=n);Kl=t,ps(r)}(),is=0}}function ds(){var t=as.now(),n=t-rs;n>es&&(os-=n,rs=t)}function ps(t){Jl||(ts&&(ts=clearTimeout(ts)),t-is>24?(t<1/0&&(ts=setTimeout(hs,t-as.now()-os)),ns&&(ns=clearInterval(ns))):(ns||(rs=as.now(),ns=setInterval(ds,es)),Jl=1,us(hs)))}function gs(t){return t.x}function vs(t){return t.y}ss.prototype=fs.prototype={constructor:ss,restart:function(t,n,e){if("function"!=typeof t)throw new TypeError("callback is not a function");e=(null==e?cs():+e)+(null==n?0:+n),this._next||Kl===this||(Kl?Kl._next=this:Zl=this,Kl=this),this._call=t,this._time=e,ps()},stop:function(){this._call&&(this._call=null,this._time=1/0,ps())}};var ys,ms=10,_s=Math.PI*(3-Math.sqrt(5));function bs(t){var n,e=1,r=.001,i=1-Math.pow(r,1/300),o=0,a=.6,u=Fl(),c=fs(s),l=Ql("tick","end");function s(){f(),l.call("tick",n),e1?(null==e?u.remove(t):u.set(t,d(e)),n):u.get(t)},find:function(n,e,r){var i,o,a,u,c,l=0,s=t.length;for(null==r?r=1/0:r*=r,l=0;l1?(l.on(t,e),n):l.on(t)}}}function ws(){var t,n,e,r,i=Ml(-30),o=1,a=1/0,u=.81;function c(r){var i,o=t.length,a=Cl(t,gs,vs).visitAfter(s);for(e=r,i=0;i=a)){(t.data!==n||t.next)&&(0===s&&(d+=(s=El())*s),0===f&&(d+=(f=El())*f),d1?r[0]+r.slice(2):r,+t.slice(e+1)]}function Ns(t){return(t=ks(Math.abs(t)))?t[1]:NaN}function Ss(t,n){var e=ks(t,n);if(!e)return t+"";var r=e[0],i=e[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 Ts={"":function(t,n){t:for(var e,r=(t=t.toPrecision(n)).length,i=1,o=-1;i0&&(o=0)}return o>0?t.slice(0,o)+t.slice(e+1):t},"%":function(t,n){return(100*t).toFixed(n)},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,n){return t.toExponential(n)},f:function(t,n){return t.toFixed(n)},g:function(t,n){return t.toPrecision(n)},o:function(t){return Math.round(t).toString(8)},p:function(t,n){return Ss(100*t,n)},r:Ss,s:function(t,n){var e=ks(t,n);if(!e)return t+"";var r=e[0],i=e[1],o=i-(ys=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")+ks(t,Math.max(0,n+o-1))[0]},X:function(t){return Math.round(t).toString(16).toUpperCase()},x:function(t){return Math.round(t).toString(16)}};var Cs=/^(?:(.)?([<>=^]))?([+\-\( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?([a-z%])?$/i;function As(t){return new Ps(t)}function Ps(t){if(!(n=Cs.exec(t)))throw new Error("invalid format: "+t);var n,e=n[1]||" ",r=n[2]||">",i=n[3]||"-",o=n[4]||"",a=!!n[5],u=n[6]&&+n[6],c=!!n[7],l=n[8]&&+n[8].slice(1),s=n[9]||"";"n"===s?(c=!0,s="g"):Ts[s]||(s=""),(a||"0"===e&&"="===r)&&(a=!0,e="0",r="="),this.fill=e,this.align=r,this.sign=i,this.symbol=o,this.zero=a,this.width=u,this.comma=c,this.precision=l,this.type=s}function Rs(t){return t}As.prototype=Ps.prototype,Ps.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 Is,Os,Us,Ds=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function Ls(t){var n,e,r=t.grouping&&t.thousands?(n=t.grouping,e=t.thousands,function(t,r){for(var i=t.length,o=[],a=0,u=n[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=n[a=(a+1)%n.length];return o.reverse().join(e)}):Rs,i=t.currency,o=t.decimal,a=t.numerals?function(t){return function(n){return n.replace(/[0-9]/g,(function(n){return t[+n]}))}}(t.numerals):Rs,u=t.percent||"%";function c(t){var n=(t=As(t)).fill,e=t.align,c=t.sign,l=t.symbol,s=t.zero,f=t.width,h=t.comma,d=t.precision,p=t.type,g="$"===l?i[0]:"#"===l&&/[boxX]/.test(p)?"0"+p.toLowerCase():"",v="$"===l?i[1]:/[%p]/.test(p)?u:"",y=Ts[p],m=!p||/[defgprs%]/.test(p);function _(t){var i,u,l,_=g,b=v;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),_=(w?"("===c?c:"-":"-"===c||"("===c?"":c)+_,b=("s"===p?Ds[8+ys/3]:"")+b+(w&&"("===c?")":""),m)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&&!s&&(t=r(t,1/0));var x=_.length+t.length+b.length,M=x>1)+_+t+b+M.slice(x);break;default:t=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)),_.toString=function(){return t+""},_}return{format:c,formatPrefix:function(t,n){var e=c(((t=As(t)).type="f",t)),r=3*Math.max(-8,Math.min(8,Math.floor(Ns(n)/3))),i=Math.pow(10,-r),o=Ds[8+r/3];return function(t){return e(i*t)+o}}}}function zs(t){return Is=Ls(t),Os=Is.format,Us=Is.formatPrefix,Is}function Fs(t){return Math.max(0,-Ns(Math.abs(t)))}function qs(t,n){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(Ns(n)/3)))-Ns(Math.abs(t)))}function js(t,n){return t=Math.abs(t),n=Math.abs(n)-t,Math.max(0,Ns(n)-Ns(t))+1}function Bs(){return new Ys}function Ys(){this.reset()}zs({decimal:".",thousands:",",grouping:[3],currency:["$",""]}),Ys.prototype={constructor:Ys,reset:function(){this.s=this.t=0},add:function(t){Vs(Hs,t,this.t),Vs(this,Hs.s,this.s),this.s?this.t+=Hs.t:this.s=Hs.t},valueOf:function(){return this.s}};var Hs=new Ys;function Vs(t,n,e){var r=t.s=n+e,i=r-n,o=r-i;t.t=n-o+(e-i)}var Ws=1e-6,Xs=1e-12,$s=Math.PI,Gs=$s/2,Qs=$s/4,Zs=2*$s,Ks=180/$s,Js=$s/180,tf=Math.abs,nf=Math.atan,ef=Math.atan2,rf=Math.cos,of=Math.ceil,af=Math.exp,uf=(Math.floor,Math.log),cf=Math.pow,lf=Math.sin,sf=Math.sign||function(t){return t>0?1:t<0?-1:0},ff=Math.sqrt,hf=Math.tan;function df(t){return t>1?0:t<-1?$s:Math.acos(t)}function pf(t){return t>1?Gs:t<-1?-Gs:Math.asin(t)}function gf(t){return(t=lf(t/2))*t}function vf(){}function yf(t,n){t&&_f.hasOwnProperty(t.type)&&_f[t.type](t,n)}var mf={Feature:function(t,n){yf(t.geometry,n)},FeatureCollection:function(t,n){for(var e=t.features,r=-1,i=e.length;++r=0?1:-1,i=r*e,o=rf(n=(n*=Js)/2+Qs),a=lf(n),u=Sf*a,c=Nf*o+u*rf(i),l=u*r*lf(i);Tf.add(ef(l,c)),kf=t,Nf=o,Sf=a}function Uf(t){return Cf.reset(),xf(t,Af),2*Cf}function Df(t){return[ef(t[1],t[0]),pf(t[2])]}function Lf(t){var n=t[0],e=t[1],r=rf(e);return[r*rf(n),r*lf(n),lf(e)]}function zf(t,n){return t[0]*n[0]+t[1]*n[1]+t[2]*n[2]}function Ff(t,n){return[t[1]*n[2]-t[2]*n[1],t[2]*n[0]-t[0]*n[2],t[0]*n[1]-t[1]*n[0]]}function qf(t,n){t[0]+=n[0],t[1]+=n[1],t[2]+=n[2]}function jf(t,n){return[t[0]*n,t[1]*n,t[2]*n]}function Bf(t){var n=ff(t[0]*t[0]+t[1]*t[1]+t[2]*t[2]);t[0]/=n,t[1]/=n,t[2]/=n}var Yf,Hf,Vf,Wf,Xf,$f,Gf,Qf,Zf,Kf,Jf,th,nh,eh,rh,ih,oh,ah,uh,ch,lh,sh,fh,hh,dh,ph,gh=Bs(),vh={point:yh,lineStart:_h,lineEnd:bh,polygonStart:function(){vh.point=wh,vh.lineStart=xh,vh.lineEnd=Mh,gh.reset(),Af.polygonStart()},polygonEnd:function(){Af.polygonEnd(),vh.point=yh,vh.lineStart=_h,vh.lineEnd=bh,Tf<0?(Yf=-(Vf=180),Hf=-(Wf=90)):gh>Ws?Wf=90:gh<-Ws&&(Hf=-90),Kf[0]=Yf,Kf[1]=Vf}};function yh(t,n){Zf.push(Kf=[Yf=t,Vf=t]),nWf&&(Wf=n)}function mh(t,n){var e=Lf([t*Js,n*Js]);if(Qf){var r=Ff(Qf,e),i=Ff([r[1],-r[0],0],r);Bf(i),i=Df(i);var o,a=t-Xf,u=a>0?1:-1,c=i[0]*Ks*u,l=tf(a)>180;l^(u*XfWf&&(Wf=o):l^(u*Xf<(c=(c+360)%360-180)&&cWf&&(Wf=n)),l?tEh(Yf,Vf)&&(Vf=t):Eh(t,Vf)>Eh(Yf,Vf)&&(Yf=t):Vf>=Yf?(tVf&&(Vf=t)):t>Xf?Eh(Yf,t)>Eh(Yf,Vf)&&(Vf=t):Eh(t,Vf)>Eh(Yf,Vf)&&(Yf=t)}else Zf.push(Kf=[Yf=t,Vf=t]);nWf&&(Wf=n),Qf=e,Xf=t}function _h(){vh.point=mh}function bh(){Kf[0]=Yf,Kf[1]=Vf,vh.point=yh,Qf=null}function wh(t,n){if(Qf){var e=t-Xf;gh.add(tf(e)>180?e+(e>0?360:-360):e)}else $f=t,Gf=n;Af.point(t,n),mh(t,n)}function xh(){Af.lineStart()}function Mh(){wh($f,Gf),Af.lineEnd(),tf(gh)>Ws&&(Yf=-(Vf=180)),Kf[0]=Yf,Kf[1]=Vf,Qf=null}function Eh(t,n){return(n-=t)<0?n+360:n}function kh(t,n){return t[0]-n[0]}function Nh(t,n){return t[0]<=t[1]?t[0]<=n&&n<=t[1]:nEh(r[0],r[1])&&(r[1]=i[1]),Eh(i[0],r[1])>Eh(r[0],r[1])&&(r[0]=i[0])):o.push(r=i);for(a=-1/0,n=0,r=o[e=o.length-1];n<=e;r=i,++n)i=o[n],(u=Eh(r[1],i[0]))>a&&(a=u,Yf=i[0],Vf=r[1])}return Zf=Kf=null,Yf===1/0||Hf===1/0?[[NaN,NaN],[NaN,NaN]]:[[Yf,Hf],[Vf,Wf]]}var Th={sphere:vf,point:Ch,lineStart:Ph,lineEnd:Oh,polygonStart:function(){Th.lineStart=Uh,Th.lineEnd=Dh},polygonEnd:function(){Th.lineStart=Ph,Th.lineEnd=Oh}};function Ch(t,n){t*=Js;var e=rf(n*=Js);Ah(e*rf(t),e*lf(t),lf(n))}function Ah(t,n,e){++Jf,nh+=(t-nh)/Jf,eh+=(n-eh)/Jf,rh+=(e-rh)/Jf}function Ph(){Th.point=Rh}function Rh(t,n){t*=Js;var e=rf(n*=Js);hh=e*rf(t),dh=e*lf(t),ph=lf(n),Th.point=Ih,Ah(hh,dh,ph)}function Ih(t,n){t*=Js;var e=rf(n*=Js),r=e*rf(t),i=e*lf(t),o=lf(n),a=ef(ff((a=dh*o-ph*i)*a+(a=ph*r-hh*o)*a+(a=hh*i-dh*r)*a),hh*r+dh*i+ph*o);th+=a,ih+=a*(hh+(hh=r)),oh+=a*(dh+(dh=i)),ah+=a*(ph+(ph=o)),Ah(hh,dh,ph)}function Oh(){Th.point=Ch}function Uh(){Th.point=Lh}function Dh(){zh(sh,fh),Th.point=Ch}function Lh(t,n){sh=t,fh=n,t*=Js,n*=Js,Th.point=zh;var e=rf(n);hh=e*rf(t),dh=e*lf(t),ph=lf(n),Ah(hh,dh,ph)}function zh(t,n){t*=Js;var e=rf(n*=Js),r=e*rf(t),i=e*lf(t),o=lf(n),a=dh*o-ph*i,u=ph*r-hh*o,c=hh*i-dh*r,l=ff(a*a+u*u+c*c),s=pf(l),f=l&&-s/l;uh+=f*a,ch+=f*u,lh+=f*c,th+=s,ih+=s*(hh+(hh=r)),oh+=s*(dh+(dh=i)),ah+=s*(ph+(ph=o)),Ah(hh,dh,ph)}function Fh(t){Jf=th=nh=eh=rh=ih=oh=ah=uh=ch=lh=0,xf(t,Th);var n=uh,e=ch,r=lh,i=n*n+e*e+r*r;return i$s?t-Zs:t<-$s?t+Zs:t,n]}function Yh(t,n,e){return(t%=Zs)?n||e?jh(Vh(t),Wh(n,e)):Vh(t):n||e?Wh(n,e):Bh}function Hh(t){return function(n,e){return[(n+=t)>$s?n-Zs:n<-$s?n+Zs:n,e]}}function Vh(t){var n=Hh(t);return n.invert=Hh(-t),n}function Wh(t,n){var e=rf(t),r=lf(t),i=rf(n),o=lf(n);function a(t,n){var a=rf(n),u=rf(t)*a,c=lf(t)*a,l=lf(n),s=l*e+u*r;return[ef(c*i-s*o,u*e-l*r),pf(s*i+c*o)]}return a.invert=function(t,n){var a=rf(n),u=rf(t)*a,c=lf(t)*a,l=lf(n),s=l*i-c*o;return[ef(c*i+l*o,u*e+s*r),pf(s*e-u*r)]},a}function Xh(t){function n(n){return(n=t(n[0]*Js,n[1]*Js))[0]*=Ks,n[1]*=Ks,n}return t=Yh(t[0]*Js,t[1]*Js,t.length>2?t[2]*Js:0),n.invert=function(n){return(n=t.invert(n[0]*Js,n[1]*Js))[0]*=Ks,n[1]*=Ks,n},n}function $h(t,n,e,r,i,o){if(e){var a=rf(n),u=lf(n),c=r*e;null==i?(i=n+r*Zs,o=n-c/2):(i=Gh(a,i),o=Gh(a,o),(r>0?io)&&(i+=r*Zs));for(var l,s=i;r>0?s>o:s1&&n.push(n.pop().concat(n.shift()))},result:function(){var e=n;return n=[],t=null,e}}}function Kh(t,n){return tf(t[0]-n[0])=0;--o)i.point((s=l[o])[0],s[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 nd(t){if(n=t.length){for(var n,e,r=0,i=t[0];++r=0?1:-1,E=M*x,k=E>$s,N=p*b;if(ed.add(ef(N*M*lf(E),g*w+N*rf(E))),o+=k?x+M*Zs:x,k^h>=e^m>=e){var S=Ff(Lf(f),Lf(y));Bf(S);var T=Ff(i,S);Bf(T);var C=(k^x>=0?-1:1)*pf(T[2]);(r>C||r===C&&(S[0]||S[1]))&&(a+=k^x>=0?1:-1)}}return(o<-Ws||on?1:t>=n?0:NaN}var od=function(t){return 1===t.length&&(t=function(t){return function(n,e){return id(t(n),e)}}(t)),{left:function(n,e,r,i){for(null==r&&(r=0),null==i&&(i=n.length);r>>1;t(n[o],e)<0?r=o+1:i=o}return r},right:function(n,e,r,i){for(null==r&&(r=0),null==i&&(i=n.length);r>>1;t(n[o],e)>0?i=o:r=o+1}return r}}}(id);od.right,od.left;var ad=Array.prototype;function ud(t){for(var n,e,r,i=t.length,o=-1,a=0;++o=0;)for(n=(r=t[i]).length;--n>=0;)e[--a]=r[n];return e}function cd(t,n,e){t=+t,n=+n,e=(i=arguments.length)<2?(n=t,t=0,1):i<3?1:+e;for(var r=-1,i=0|Math.max(0,Math.ceil((n-t)/e)),o=new Array(i);++r0){for(f||(i.polygonStart(),f=!0),i.lineStart(),t=0;t1&&2&c&&h.push(h.pop().concat(h.shift())),a.push(h.filter(sd))}return h}}function sd(t){return t.length>1}function fd(t,n){return((t=t.x)[0]<0?t[1]-Gs-Ws:Gs-t[1])-((n=n.x)[0]<0?n[1]-Gs-Ws:Gs-n[1])}ad.slice,ad.map,Math.sqrt(50),Math.sqrt(10),Math.sqrt(2);const hd=ld((function(){return!0}),(function(t){var n,e=NaN,r=NaN,i=NaN;return{lineStart:function(){t.lineStart(),n=1},point:function(o,a){var u=o>0?$s:-$s,c=tf(o-e);tf(c-$s)0?Gs:-Gs),t.point(i,r),t.lineEnd(),t.lineStart(),t.point(u,r),t.point(o,r),n=0):i!==u&&c>=$s&&(tf(e-i)Ws?nf((lf(n)*(o=rf(r))*lf(e)-lf(r)*(i=rf(n))*lf(t))/(i*o*a)):(n+r)/2}(e,r,o,a),t.point(i,r),t.lineEnd(),t.lineStart(),t.point(u,r),n=0),t.point(e=o,r=a),i=u},lineEnd:function(){t.lineEnd(),e=r=NaN},clean:function(){return 2-n}}}),(function(t,n,e,r){var i;if(null==t)i=e*Gs,r.point(-$s,i),r.point(0,i),r.point($s,i),r.point($s,0),r.point($s,-i),r.point(0,-i),r.point(-$s,-i),r.point(-$s,0),r.point(-$s,i);else if(tf(t[0]-n[0])>Ws){var o=t[0]0,i=tf(n)>Ws;function o(t,e){return rf(t)*rf(e)>n}function a(t,e,r){var i=[1,0,0],o=Ff(Lf(t),Lf(e)),a=zf(o,o),u=o[0],c=a-u*u;if(!c)return!r&&t;var l=n*a/c,s=-n*u/c,f=Ff(i,o),h=jf(i,l);qf(h,jf(o,s));var d=f,p=zf(h,d),g=zf(d,d),v=p*p-g*(zf(h,h)-1);if(!(v<0)){var y=ff(v),m=jf(d,(-p-y)/g);if(qf(m,h),m=Df(m),!r)return m;var _,b=t[0],w=e[0],x=t[1],M=e[1];w0^m[1]<(tf(m[0]-b)$s^(b<=m[0]&&m[0]<=w)){var N=jf(d,(-p+y)/g);return qf(N,h),[m,Df(N)]}}}function u(n,e){var i=r?t:$s-t,o=0;return n<-i?o|=1:n>i&&(o|=2),e<-i?o|=4:e>i&&(o|=8),o}return ld(o,(function(t){var n,e,c,l,s;return{lineStart:function(){l=c=!1,s=1},point:function(f,h){var d,p=[f,h],g=o(f,h),v=r?g?0:u(f,h):g?u(f+(f<0?$s:-$s),h):0;if(!n&&(l=c=g)&&t.lineStart(),g!==c&&(!(d=a(n,p))||Kh(n,d)||Kh(p,d))&&(p[0]+=Ws,p[1]+=Ws,g=o(p[0],p[1])),g!==c)s=0,g?(t.lineStart(),d=a(p,n),t.point(d[0],d[1])):(d=a(n,p),t.point(d[0],d[1]),t.lineEnd()),n=d;else if(i&&n&&r^g){var y;v&e||!(y=a(p,n,!0))||(s=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])))}!g||n&&Kh(n,p)||t.point(p[0],p[1]),n=p,c=g,e=v},lineEnd:function(){c&&t.lineEnd(),n=null},clean:function(){return s|(l&&c)<<1}}}),(function(n,r,i,o){$h(o,t,e,i,n,r)}),r?[0,-t]:[-$s,t-$s])}var pd=1e9,gd=-pd;function vd(t,n,e,r){function i(i,o){return t<=i&&i<=e&&n<=o&&o<=r}function o(i,o,u,l){var s=0,f=0;if(null==i||(s=a(i,u))!==(f=a(o,u))||c(i,o)<0^u>0)do{l.point(0===s||3===s?t:e,s>1?r:n)}while((s=(s+u+4)%4)!==f);else l.point(o[0],o[1])}function a(r,i){return tf(r[0]-t)0?0:3:tf(r[0]-e)0?2:1:tf(r[1]-n)0?1:0:i>0?3:2}function u(t,n){return c(t.x,n.x)}function c(t,n){var e=a(t,1),r=a(n,1);return e!==r?e-r:0===e?n[1]-t[1]:1===e?t[0]-n[0]:2===e?t[1]-n[1]:n[0]-t[0]}return function(a){var c,l,s,f,h,d,p,g,v,y,m,_=a,b=Zh(),w={point:x,lineStart:function(){w.point=M,l&&l.push(s=[]),y=!0,v=!1,p=g=NaN},lineEnd:function(){c&&(M(f,h),d&&v&&b.rejoin(),c.push(b.result())),w.point=x,v&&_.lineEnd()},polygonStart:function(){_=b,c=[],l=[],m=!0},polygonEnd:function(){var n=function(){for(var n=0,e=0,i=l.length;er&&(h-o)*(r-a)>(d-a)*(t-o)&&++n:d<=r&&(h-o)*(r-a)<(d-a)*(t-o)&&--n;return n}(),e=m&&n,i=(c=ud(c)).length;(e||i)&&(a.polygonStart(),e&&(a.lineStart(),o(null,null,1,a),a.lineEnd()),i&&td(c,u,n,o,a),a.polygonEnd()),_=a,c=l=s=null}};function x(t,n){i(t,n)&&_.point(t,n)}function M(o,a){var u=i(o,a);if(l&&s.push([o,a]),y)f=o,h=a,d=u,y=!1,u&&(_.lineStart(),_.point(o,a));else if(u&&v)_.point(o,a);else{var c=[p=Math.max(gd,Math.min(pd,p)),g=Math.max(gd,Math.min(pd,g))],b=[o=Math.max(gd,Math.min(pd,o)),a=Math.max(gd,Math.min(pd,a))];!function(t,n,e,r,i,o){var a,u=t[0],c=t[1],l=0,s=1,f=n[0]-u,h=n[1]-c;if(a=e-u,f||!(a>0)){if(a/=f,f<0){if(a0){if(a>s)return;a>l&&(l=a)}if(a=i-u,f||!(a<0)){if(a/=f,f<0){if(a>s)return;a>l&&(l=a)}else if(f>0){if(a0)){if(a/=h,h<0){if(a0){if(a>s)return;a>l&&(l=a)}if(a=o-c,h||!(a<0)){if(a/=h,h<0){if(a>s)return;a>l&&(l=a)}else if(h>0){if(a0&&(t[0]=u+l*f,t[1]=c+l*h),s<1&&(n[0]=u+s*f,n[1]=c+s*h),!0}}}}}(c,b,t,n,e,r)?u&&(_.lineStart(),_.point(o,a),m=!1):(v||(_.lineStart(),_.point(c[0],c[1])),_.point(b[0],b[1]),u||_.lineEnd(),m=!1)}p=o,g=a,v=u}return w}}function yd(){var t,n,e,r=0,i=0,o=960,a=500;return e={stream:function(e){return t&&n===e?t:t=vd(r,i,o,a)(n=e)},extent:function(u){return arguments.length?(r=+u[0][0],i=+u[0][1],o=+u[1][0],a=+u[1][1],t=n=null,e):[[r,i],[o,a]]}}}var md,_d,bd,wd=Bs(),xd={sphere:vf,point:vf,lineStart:function(){xd.point=Ed,xd.lineEnd=Md},lineEnd:vf,polygonStart:vf,polygonEnd:vf};function Md(){xd.point=xd.lineEnd=vf}function Ed(t,n){md=t*=Js,_d=lf(n*=Js),bd=rf(n),xd.point=kd}function kd(t,n){t*=Js;var e=lf(n*=Js),r=rf(n),i=tf(t-md),o=rf(i),a=r*lf(i),u=bd*e-_d*r*o,c=_d*e+bd*r*o;wd.add(ef(ff(a*a+u*u),c)),md=t,_d=e,bd=r}function Nd(t){return wd.reset(),xf(t,xd),+wd}var Sd=[null,null],Td={type:"LineString",coordinates:Sd};function Cd(t,n){return Sd[0]=t,Sd[1]=n,Nd(Td)}var Ad={Feature:function(t,n){return Rd(t.geometry,n)},FeatureCollection:function(t,n){for(var e=t.features,r=-1,i=e.length;++rWs})).map(c)).concat(cd(of(o/d)*d,i,d).filter((function(t){return tf(t%g)>Ws})).map(l))}return y.lines=function(){return m().map((function(t){return{type:"LineString",coordinates:t}}))},y.outline=function(){return{type:"Polygon",coordinates:[s(r).concat(f(a).slice(1),s(e).reverse().slice(1),f(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],e=+t[1][0],u=+t[0][1],a=+t[1][1],r>e&&(t=r,r=e,e=t),u>a&&(t=u,u=a,a=t),y.precision(v)):[[r,u],[e,a]]},y.extentMinor=function(e){return arguments.length?(n=+e[0][0],t=+e[1][0],o=+e[0][1],i=+e[1][1],n>t&&(e=n,n=t,t=e),o>i&&(e=o,o=i,i=e),y.precision(v)):[[n,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],g=+t[1],y):[p,g]},y.stepMinor=function(t){return arguments.length?(h=+t[0],d=+t[1],y):[h,d]},y.precision=function(h){return arguments.length?(v=+h,c=Fd(o,i,90),l=qd(n,t,v),s=Fd(u,a,90),f=qd(r,e,v),y):v},y.extentMajor([[-180,-90+Ws],[180,90-Ws]]).extentMinor([[-180,-80-Ws],[180,80+Ws]])}function Bd(){return jd()()}function Yd(t,n){var e=t[0]*Js,r=t[1]*Js,i=n[0]*Js,o=n[1]*Js,a=rf(r),u=lf(r),c=rf(o),l=lf(o),s=a*rf(e),f=a*lf(e),h=c*rf(i),d=c*lf(i),p=2*pf(ff(gf(o-r)+a*c*gf(i-e))),g=lf(p),v=p?function(t){var n=lf(t*=p)/g,e=lf(p-t)/g,r=e*s+n*h,i=e*f+n*d,o=e*u+n*l;return[ef(i,r)*Ks,ef(o,ff(r*r+i*i))*Ks]}:function(){return[e*Ks,r*Ks]};return v.distance=p,v}function Hd(t){return t}var Vd,Wd,Xd,$d,Gd=Bs(),Qd=Bs(),Zd={point:vf,lineStart:vf,lineEnd:vf,polygonStart:function(){Zd.lineStart=Kd,Zd.lineEnd=np},polygonEnd:function(){Zd.lineStart=Zd.lineEnd=Zd.point=vf,Gd.add(tf(Qd)),Qd.reset()},result:function(){var t=Gd/2;return Gd.reset(),t}};function Kd(){Zd.point=Jd}function Jd(t,n){Zd.point=tp,Vd=Xd=t,Wd=$d=n}function tp(t,n){Qd.add($d*t-Xd*n),Xd=t,$d=n}function np(){tp(Vd,Wd)}const ep=Zd;var rp=1/0,ip=rp,op=-rp,ap=op,up={point:function(t,n){top&&(op=t),nap&&(ap=n)},lineStart:vf,lineEnd:vf,polygonStart:vf,polygonEnd:vf,result:function(){var t=[[rp,ip],[op,ap]];return op=ap=-(ip=rp=1/0),t}};const cp=up;var lp,sp,fp,hp,dp=0,pp=0,gp=0,vp=0,yp=0,mp=0,_p=0,bp=0,wp=0,xp={point:Mp,lineStart:Ep,lineEnd:Sp,polygonStart:function(){xp.lineStart=Tp,xp.lineEnd=Cp},polygonEnd:function(){xp.point=Mp,xp.lineStart=Ep,xp.lineEnd=Sp},result:function(){var t=wp?[_p/wp,bp/wp]:mp?[vp/mp,yp/mp]:gp?[dp/gp,pp/gp]:[NaN,NaN];return dp=pp=gp=vp=yp=mp=_p=bp=wp=0,t}};function Mp(t,n){dp+=t,pp+=n,++gp}function Ep(){xp.point=kp}function kp(t,n){xp.point=Np,Mp(fp=t,hp=n)}function Np(t,n){var e=t-fp,r=n-hp,i=ff(e*e+r*r);vp+=i*(fp+t)/2,yp+=i*(hp+n)/2,mp+=i,Mp(fp=t,hp=n)}function Sp(){xp.point=Mp}function Tp(){xp.point=Ap}function Cp(){Pp(lp,sp)}function Ap(t,n){xp.point=Pp,Mp(lp=fp=t,sp=hp=n)}function Pp(t,n){var e=t-fp,r=n-hp,i=ff(e*e+r*r);vp+=i*(fp+t)/2,yp+=i*(hp+n)/2,mp+=i,_p+=(i=hp*t-fp*n)*(fp+t),bp+=i*(hp+n),wp+=3*i,Mp(fp=t,hp=n)}const Rp=xp;function Ip(t){this._context=t}Ip.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,n){switch(this._point){case 0:this._context.moveTo(t,n),this._point=1;break;case 1:this._context.lineTo(t,n);break;default:this._context.moveTo(t+this._radius,n),this._context.arc(t,n,this._radius,0,Zs)}},result:vf};var Op,Up,Dp,Lp,zp,Fp=Bs(),qp={point:vf,lineStart:function(){qp.point=jp},lineEnd:function(){Op&&Bp(Up,Dp),qp.point=vf},polygonStart:function(){Op=!0},polygonEnd:function(){Op=null},result:function(){var t=+Fp;return Fp.reset(),t}};function jp(t,n){qp.point=Bp,Up=Lp=t,Dp=zp=n}function Bp(t,n){Lp-=t,zp-=n,Fp.add(ff(Lp*Lp+zp*zp)),Lp=t,zp=n}const Yp=qp;function Hp(){this._string=[]}function Vp(t){return"m0,"+t+"a"+t+","+t+" 0 1,1 0,"+-2*t+"a"+t+","+t+" 0 1,1 0,"+2*t+"z"}function Wp(t,n){var e,r,i=4.5;function o(t){return t&&("function"==typeof i&&r.pointRadius(+i.apply(this,arguments)),xf(t,e(r))),r.result()}return o.area=function(t){return xf(t,e(ep)),ep.result()},o.measure=function(t){return xf(t,e(Yp)),Yp.result()},o.bounds=function(t){return xf(t,e(cp)),cp.result()},o.centroid=function(t){return xf(t,e(Rp)),Rp.result()},o.projection=function(n){return arguments.length?(e=null==n?(t=null,Hd):(t=n).stream,o):t},o.context=function(t){return arguments.length?(r=null==t?(n=null,new Hp):new Ip(n=t),"function"!=typeof i&&r.pointRadius(i),o):n},o.pointRadius=function(t){return arguments.length?(i="function"==typeof t?t:(r.pointRadius(+t),+t),o):i},o.projection(t).context(n)}function Xp(t){return{stream:$p(t)}}function $p(t){return function(n){var e=new Gp;for(var r in t)e[r]=t[r];return e.stream=n,e}}function Gp(){}function Qp(t,n,e){var r=t.clipExtent&&t.clipExtent();return t.scale(150).translate([0,0]),null!=r&&t.clipExtent(null),xf(e,t.stream(cp)),n(cp.result()),null!=r&&t.clipExtent(r),t}function Zp(t,n,e){return Qp(t,(function(e){var r=n[1][0]-n[0][0],i=n[1][1]-n[0][1],o=Math.min(r/(e[1][0]-e[0][0]),i/(e[1][1]-e[0][1])),a=+n[0][0]+(r-o*(e[1][0]+e[0][0]))/2,u=+n[0][1]+(i-o*(e[1][1]+e[0][1]))/2;t.scale(150*o).translate([a,u])}),e)}function Kp(t,n,e){return Zp(t,[[0,0],n],e)}function Jp(t,n,e){return Qp(t,(function(e){var r=+n,i=r/(e[1][0]-e[0][0]),o=(r-i*(e[1][0]+e[0][0]))/2,a=-i*e[0][1];t.scale(150*i).translate([o,a])}),e)}function tg(t,n,e){return Qp(t,(function(e){var r=+n,i=r/(e[1][1]-e[0][1]),o=-i*e[0][0],a=(r-i*(e[1][1]+e[0][1]))/2;t.scale(150*i).translate([o,a])}),e)}Hp.prototype={_radius:4.5,_circle:Vp(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,n){switch(this._point){case 0:this._string.push("M",t,",",n),this._point=1;break;case 1:this._string.push("L",t,",",n);break;default:null==this._circle&&(this._circle=Vp(this._radius)),this._string.push("M",t,",",n,this._circle)}},result:function(){if(this._string.length){var t=this._string.join("");return this._string=[],t}return null}},Gp.prototype={constructor:Gp,point:function(t,n){this.stream.point(t,n)},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 ng=16,eg=rf(30*Js);function rg(t,n){return+n?function(t,n){function e(r,i,o,a,u,c,l,s,f,h,d,p,g,v){var y=l-r,m=s-i,_=y*y+m*m;if(_>4*n&&g--){var b=a+h,w=u+d,x=c+p,M=ff(b*b+w*w+x*x),E=pf(x/=M),k=tf(tf(x)-1)n||tf((y*C+m*A)/_-.5)>.3||a*h+u*d+c*p2?t[2]%360*Js:0,T()):[v*Ks,y*Ks,m*Ks]},k.precision=function(t){return arguments.length?(E=rg(S,M=t*t),C()):ff(M)},k.fitExtent=function(t,n){return Zp(k,t,n)},k.fitSize=function(t,n){return Kp(k,t,n)},k.fitWidth=function(t,n){return Jp(k,t,n)},k.fitHeight=function(t,n){return tg(k,t,n)},function(){return n=t.apply(this,arguments),k.invert=n.invert&&N,T()}}function ug(t){var n=0,e=$s/3,r=ag(t),i=r(n,e);return i.parallels=function(t){return arguments.length?r(n=t[0]*Js,e=t[1]*Js):[n*Ks,e*Ks]},i}function cg(t,n){var e=lf(t),r=(e+lf(n))/2;if(tf(r)=.12&&i<.234&&r>=-.425&&r<-.214?u:i>=.166&&i<.234&&r>=-.214&&r<-.115?c:a).invert(t)},s.stream=function(e){return t&&n===e?t:(r=[a.stream(n=e),u.stream(e),c.stream(e)],i=r.length,t={point:function(t,n){for(var e=-1;++e0?n<-Gs+Ws&&(n=-Gs+Ws):n>Gs-Ws&&(n=Gs-Ws);var e=i/cf(wg(n),r);return[e*lf(r*t),i-e*rf(r*t)]}return o.invert=function(t,n){var e=i-n,o=sf(r)*ff(t*t+e*e);return[ef(t,tf(e))/r*sf(e),2*nf(cf(i/o,1/r))-Gs]},o}function Mg(){return ug(xg).scale(109.5).parallels([30,30])}function Eg(t,n){return[t,n]}function kg(){return og(Eg).scale(152.63)}function Ng(t,n){var e=rf(t),r=t===n?lf(t):(e-rf(n))/(n-t),i=e/r+t;if(tf(r)2?t[2]+90:90]):[(t=e())[0],t[1],t[2]-90]},e([0,0,90]).scale(159.155)}function qg(t,n){return t.parent===n.parent?1:2}function jg(t,n){return t+n.x}function Bg(t,n){return Math.max(t,n.y)}function Yg(){var t=qg,n=1,e=1,r=!1;function i(i){var o,a=0;i.eachAfter((function(n){var e=n.children;e?(n.x=function(t){return t.reduce(jg,0)/t.length}(e),n.y=function(t){return 1+t.reduce(Bg,0)}(e)):(n.x=o?a+=t(n,o):0,n.y=0,o=n)}));var u=function(t){for(var n;n=t.children;)t=n[0];return t}(i),c=function(t){for(var n;n=t.children;)t=n[n.length-1];return t}(i),l=u.x-t(u,c)/2,s=c.x+t(c,u)/2;return i.eachAfter(r?function(t){t.x=(t.x-i.x)*n,t.y=(i.y-t.y)*e}:function(t){t.x=(t.x-l)/(s-l)*n,t.y=(1-(i.y?t.y/i.y:1))*e})}return i.separation=function(n){return arguments.length?(t=n,i):t},i.size=function(t){return arguments.length?(r=!1,n=+t[0],e=+t[1],i):r?null:[n,e]},i.nodeSize=function(t){return arguments.length?(r=!0,n=+t[0],e=+t[1],i):r?[n,e]:null},i}function Hg(t){var n=0,e=t.children,r=e&&e.length;if(r)for(;--r>=0;)n+=e[r].value;else n=1;t.value=n}function Vg(t,n){var e,r,i,o,a,u=new Gg(t),c=+t.value&&(u.value=t.value),l=[u];for(null==n&&(n=Wg);e=l.pop();)if(c&&(e.value=+e.data.value),(i=n(e.data))&&(a=i.length))for(e.children=new Array(a),o=a-1;o>=0;--o)l.push(r=e.children[o]=new Gg(i[o])),r.parent=e,r.depth=e.depth+1;return u.eachBefore($g)}function Wg(t){return t.children}function Xg(t){t.data=t.data.data}function $g(t){var n=0;do{t.height=n}while((t=t.parent)&&t.height<++n)}function Gg(t){this.data=t,this.depth=this.height=0,this.parent=null}vg.invert=dg((function(t){return t})),mg.invert=function(t,n){return[t,2*nf(af(n))-Gs]},Eg.invert=Eg,Tg.invert=dg(nf),Rg.invert=function(t,n){var e,r=n,i=25;do{var o=r*r,a=o*o;r-=e=(r*(1.007226+o*(.015085+a*(.028874*o-.044475-.005916*a)))-n)/(1.007226+o*(.045255+a*(.259866*o-.311325-.005916*11*a)))}while(tf(e)>Ws&&--i>0);return[t/(.8707+(o=r*r)*(o*(o*o*o*(.003971-.001529*o)-.013791)-.131979)),r]},Og.invert=dg(pf),Dg.invert=dg((function(t){return 2*nf(t)})),zg.invert=function(t,n){return[-n,2*nf(af(t))-Gs]},Gg.prototype=Vg.prototype={constructor:Gg,count:function(){return this.eachAfter(Hg)},each:function(t){var n,e,r,i,o=this,a=[o];do{for(n=a.reverse(),a=[];o=n.pop();)if(t(o),e=o.children)for(r=0,i=e.length;r=0;--e)i.push(n[e]);return this},sum:function(t){return this.eachAfter((function(n){for(var e=+t(n.data)||0,r=n.children,i=r&&r.length;--i>=0;)e+=r[i].value;n.value=e}))},sort:function(t){return this.eachBefore((function(n){n.children&&n.children.sort(t)}))},path:function(t){for(var n=this,e=function(t,n){if(t===n)return t;var e=t.ancestors(),r=n.ancestors(),i=null;for(t=e.pop(),n=r.pop();t===n;)i=t,t=e.pop(),n=r.pop();return i}(n,t),r=[n];n!==e;)n=n.parent,r.push(n);for(var i=r.length;t!==e;)r.splice(i,0,t),t=t.parent;return r},ancestors:function(){for(var t=this,n=[t];t=t.parent;)n.push(t);return n},descendants:function(){var t=[];return this.each((function(n){t.push(n)})),t},leaves:function(){var t=[];return this.eachBefore((function(n){n.children||t.push(n)})),t},links:function(){var t=this,n=[];return t.each((function(e){e!==t&&n.push({source:e.parent,target:e})})),n},copy:function(){return Vg(this).eachBefore(Xg)}};var Qg=Array.prototype.slice;function Zg(t){for(var n,e,r=0,i=(t=function(t){for(var n,e,r=t.length;r;)e=Math.random()*r--|0,n=t[r],t[r]=t[e],t[e]=n;return t}(Qg.call(t))).length,o=[];r0&&e*e>r*r+i*i}function nv(t,n){for(var e=0;ee*e+r*r}function uv(t){var n=t._,e=t.next._,r=n.r+e.r,i=(n.x*e.r+e.x*n.r)/r,o=(n.y*e.r+e.y*n.r)/r;return i*i+o*o}function cv(t){this._=t,this.next=null,this.previous=null}function lv(t){if(!(i=t.length))return 0;var n,e,r,i,o,a,u,c,l,s,f;if((n=t[0]).x=0,n.y=0,!(i>1))return n.r;if(e=t[1],n.x=-e.r,e.x=n.r,e.y=0,!(i>2))return n.r+e.r;ov(e,n,r=t[2]),n=new cv(n),e=new cv(e),r=new cv(r),n.next=r.previous=e,e.next=n.previous=r,r.next=e.previous=n;t:for(u=3;u0)throw new Error("cycle");return o}return e.id=function(n){return arguments.length?(t=fv(n),e):t},e.parentId=function(t){return arguments.length?(n=fv(t),e):n},e}function Tv(t,n){return t.parent===n.parent?1:2}function Cv(t){var n=t.children;return n?n[0]:t.t}function Av(t){var n=t.children;return n?n[n.length-1]:t.t}function Pv(t,n,e){var r=e/(n.i-t.i);n.c-=r,n.s+=e,t.c+=r,n.z+=e,n.m+=e}function Rv(t,n,e){return t.a.parent===n.parent?t.a:e}function Iv(t,n){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=n}function Ov(){var t=Tv,n=1,e=1,r=null;function i(i){var c=function(t){for(var n,e,r,i,o,a=new Iv(t,0),u=[a];n=u.pop();)if(r=n._.children)for(n.children=new Array(o=r.length),i=o-1;i>=0;--i)u.push(e=n.children[i]=new Iv(r[i],i)),e.parent=n;return(a.parent=new Iv(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,s=i,f=i;i.eachBefore((function(t){t.xs.x&&(s=t),t.depth>f.depth&&(f=t)}));var h=l===s?1:t(l,s)/2,d=h-l.x,p=n/(s.x+h+d),g=e/(f.depth||1);i.eachBefore((function(t){t.x=(t.x+d)*p,t.y=t.depth*g}))}return i}function o(n){var e=n.children,r=n.parent.children,i=n.i?r[n.i-1]:null;if(e){!function(t){for(var n,e=0,r=0,i=t.children,o=i.length;--o>=0;)(n=i[o]).z+=e,n.m+=e,e+=n.s+(r+=n.c)}(n);var o=(e[0].z+e[e.length-1].z)/2;i?(n.z=i.z+t(n._,i._),n.m=n.z-o):n.z=o}else i&&(n.z=i.z+t(n._,i._));n.parent.A=function(n,e,r){if(e){for(var i,o=n,a=n,u=e,c=o.parent.children[0],l=o.m,s=a.m,f=u.m,h=c.m;u=Av(u),o=Cv(o),u&&o;)c=Cv(c),(a=Av(a)).a=n,(i=u.z+f-o.z-l+t(u._,o._))>0&&(Pv(Rv(u,n,r),n,i),l+=i,s+=i),f+=u.m,l+=o.m,h+=c.m,s+=a.m;u&&!Av(a)&&(a.t=u,a.m+=f-s),o&&!Cv(c)&&(c.t=o,c.m+=l-h,r=n)}return r}(n,i,n.parent.A||r[0])}function a(t){t._.x=t.z+t.parent.m,t.m+=t.parent.m}function u(t){t.x*=n,t.y=t.depth*e}return i.separation=function(n){return arguments.length?(t=n,i):t},i.size=function(t){return arguments.length?(r=!1,n=+t[0],e=+t[1],i):r?null:[n,e]},i.nodeSize=function(t){return arguments.length?(r=!0,n=+t[0],e=+t[1],i):r?[n,e]:null},i}function Uv(t,n,e,r,i){for(var o,a=t.children,u=-1,c=a.length,l=t.value&&(i-e)/t.value;++uh&&(h=u),v=s*s*g,(d=Math.max(h/v,v/f))>p){s-=u;break}p=d}y.push(a={value:s,dice:c1?n:1)},e}(Dv);function Fv(){var t=zv,n=!1,e=1,r=1,i=[0],o=hv,a=hv,u=hv,c=hv,l=hv;function s(t){return t.x0=t.y0=0,t.x1=e,t.y1=r,t.eachBefore(f),i=[0],n&&t.eachBefore(_v),t}function f(n){var e=i[n.depth],r=n.x0+e,s=n.y0+e,f=n.x1-e,h=n.y1-e;f=e-1){var s=u[n];return s.x0=i,s.y0=o,s.x1=a,void(s.y1=c)}for(var f=l[n],h=r/2+f,d=n+1,p=e-1;d>>1;l[g]c-o){var m=(i*y+a*v)/r;t(n,d,v,i,o,m,c),t(d,e,y,m,o,a,c)}else{var _=(o*y+c*v)/r;t(n,d,v,i,o,a,_),t(d,e,y,i,_,a,c)}}(0,c,t.value,n,e,r,i)}function jv(t,n,e,r,i){(1&t.depth?Uv:bv)(t,n,e,r,i)}const Bv=function t(n){function e(t,e,r,i,o){if((a=t._squarify)&&a.ratio===n)for(var a,u,c,l,s,f=-1,h=a.length,d=t.value;++f1?n:1)},e}(Dv);function Yv(t,n,e){t.prototype=n.prototype=e,e.constructor=t}function Hv(t,n){var e=Object.create(t.prototype);for(var r in n)e[r]=n[r];return e}function Vv(){}var Wv=.7,Xv=1.4285714285714286,$v="\\s*([+-]?\\d+)\\s*",Gv="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",Qv="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Zv=/^#([0-9a-f]{3})$/,Kv=/^#([0-9a-f]{6})$/,Jv=new RegExp("^rgb\\("+[$v,$v,$v]+"\\)$"),ty=new RegExp("^rgb\\("+[Qv,Qv,Qv]+"\\)$"),ny=new RegExp("^rgba\\("+[$v,$v,$v,Gv]+"\\)$"),ey=new RegExp("^rgba\\("+[Qv,Qv,Qv,Gv]+"\\)$"),ry=new RegExp("^hsl\\("+[Gv,Qv,Qv]+"\\)$"),iy=new RegExp("^hsla\\("+[Gv,Qv,Qv,Gv]+"\\)$"),oy={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function ay(t){var n;return t=(t+"").trim().toLowerCase(),(n=Zv.exec(t))?new fy((n=parseInt(n[1],16))>>8&15|n>>4&240,n>>4&15|240&n,(15&n)<<4|15&n,1):(n=Kv.exec(t))?uy(parseInt(n[1],16)):(n=Jv.exec(t))?new fy(n[1],n[2],n[3],1):(n=ty.exec(t))?new fy(255*n[1]/100,255*n[2]/100,255*n[3]/100,1):(n=ny.exec(t))?cy(n[1],n[2],n[3],n[4]):(n=ey.exec(t))?cy(255*n[1]/100,255*n[2]/100,255*n[3]/100,n[4]):(n=ry.exec(t))?dy(n[1],n[2]/100,n[3]/100,1):(n=iy.exec(t))?dy(n[1],n[2]/100,n[3]/100,n[4]):oy.hasOwnProperty(t)?uy(oy[t]):"transparent"===t?new fy(NaN,NaN,NaN,0):null}function uy(t){return new fy(t>>16&255,t>>8&255,255&t,1)}function cy(t,n,e,r){return r<=0&&(t=n=e=NaN),new fy(t,n,e,r)}function ly(t){return t instanceof Vv||(t=ay(t)),t?new fy((t=t.rgb()).r,t.g,t.b,t.opacity):new fy}function sy(t,n,e,r){return 1===arguments.length?ly(t):new fy(t,n,e,null==r?1:r)}function fy(t,n,e,r){this.r=+t,this.g=+n,this.b=+e,this.opacity=+r}function hy(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function dy(t,n,e,r){return r<=0?t=n=e=NaN:e<=0||e>=1?t=n=NaN:n<=0&&(t=NaN),new gy(t,n,e,r)}function py(t,n,e,r){return 1===arguments.length?function(t){if(t instanceof gy)return new gy(t.h,t.s,t.l,t.opacity);if(t instanceof Vv||(t=ay(t)),!t)return new gy;if(t instanceof gy)return t;var n=(t=t.rgb()).r/255,e=t.g/255,r=t.b/255,i=Math.min(n,e,r),o=Math.max(n,e,r),a=NaN,u=o-i,c=(o+i)/2;return u?(a=n===o?(e-r)/u+6*(e0&&c<1?0:a,new gy(a,u,c,t.opacity)}(t):new gy(t,n,e,null==r?1:r)}function gy(t,n,e,r){this.h=+t,this.s=+n,this.l=+e,this.opacity=+r}function vy(t,n,e){return 255*(t<60?n+(e-n)*t/60:t<180?e:t<240?n+(e-n)*(240-t)/60:n)}Yv(Vv,ay,{displayable:function(){return this.rgb().displayable()},hex:function(){return this.rgb().hex()},toString:function(){return this.rgb()+""}}),Yv(fy,sy,Hv(Vv,{brighter:function(t){return t=null==t?Xv:Math.pow(Xv,t),new fy(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?Wv:Math.pow(Wv,t),new fy(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},hex:function(){return"#"+hy(this.r)+hy(this.g)+hy(this.b)},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+")")}})),Yv(gy,py,Hv(Vv,{brighter:function(t){return t=null==t?Xv:Math.pow(Xv,t),new gy(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?Wv:Math.pow(Wv,t),new gy(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),n=isNaN(t)||isNaN(this.s)?0:this.s,e=this.l,r=e+(e<.5?e:1-e)*n,i=2*e-r;return new fy(vy(t>=240?t-240:t+120,i,r),vy(t,i,r),vy(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 yy=Math.PI/180,my=180/Math.PI,_y=.96422,by=1,wy=.82521,xy=4/29,My=6/29,Ey=3*My*My,ky=My*My*My;function Ny(t){if(t instanceof Ty)return new Ty(t.l,t.a,t.b,t.opacity);if(t instanceof Oy){if(isNaN(t.h))return new Ty(t.l,0,0,t.opacity);var n=t.h*yy;return new Ty(t.l,Math.cos(n)*t.c,Math.sin(n)*t.c,t.opacity)}t instanceof fy||(t=ly(t));var e,r,i=Ry(t.r),o=Ry(t.g),a=Ry(t.b),u=Cy((.2225045*i+.7168786*o+.0606169*a)/by);return i===o&&o===a?e=r=u:(e=Cy((.4360747*i+.3850649*o+.1430804*a)/_y),r=Cy((.0139322*i+.0971045*o+.7141733*a)/wy)),new Ty(116*u-16,500*(e-u),200*(u-r),t.opacity)}function Sy(t,n,e,r){return 1===arguments.length?Ny(t):new Ty(t,n,e,null==r?1:r)}function Ty(t,n,e,r){this.l=+t,this.a=+n,this.b=+e,this.opacity=+r}function Cy(t){return t>ky?Math.pow(t,1/3):t/Ey+xy}function Ay(t){return t>My?t*t*t:Ey*(t-xy)}function Py(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function Ry(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function Iy(t,n,e,r){return 1===arguments.length?function(t){if(t instanceof Oy)return new Oy(t.h,t.c,t.l,t.opacity);if(t instanceof Ty||(t=Ny(t)),0===t.a&&0===t.b)return new Oy(NaN,0,t.l,t.opacity);var n=Math.atan2(t.b,t.a)*my;return new Oy(n<0?n+360:n,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}(t):new Oy(t,n,e,null==r?1:r)}function Oy(t,n,e,r){this.h=+t,this.c=+n,this.l=+e,this.opacity=+r}Yv(Ty,Sy,Hv(Vv,{brighter:function(t){return new Ty(this.l+18*(null==t?1:t),this.a,this.b,this.opacity)},darker:function(t){return new Ty(this.l-18*(null==t?1:t),this.a,this.b,this.opacity)},rgb:function(){var t=(this.l+16)/116,n=isNaN(this.a)?t:t+this.a/500,e=isNaN(this.b)?t:t-this.b/200;return new fy(Py(3.1338561*(n=_y*Ay(n))-1.6168667*(t=by*Ay(t))-.4906146*(e=wy*Ay(e))),Py(-.9787684*n+1.9161415*t+.033454*e),Py(.0719453*n-.2289914*t+1.4052427*e),this.opacity)}})),Yv(Oy,Iy,Hv(Vv,{brighter:function(t){return new Oy(this.h,this.c,this.l+18*(null==t?1:t),this.opacity)},darker:function(t){return new Oy(this.h,this.c,this.l-18*(null==t?1:t),this.opacity)},rgb:function(){return Ny(this).rgb()}}));var Uy=-.14861,Dy=1.78277,Ly=-.29227,zy=-.90649,Fy=1.97294,qy=Fy*zy,jy=Fy*Dy,By=Dy*Ly-zy*Uy;function Yy(t,n,e,r){return 1===arguments.length?function(t){if(t instanceof Hy)return new Hy(t.h,t.s,t.l,t.opacity);t instanceof fy||(t=ly(t));var n=t.r/255,e=t.g/255,r=t.b/255,i=(By*r+qy*n-jy*e)/(By+qy-jy),o=r-i,a=(Fy*(e-i)-Ly*o)/zy,u=Math.sqrt(a*a+o*o)/(Fy*i*(1-i)),c=u?Math.atan2(a,o)*my-120:NaN;return new Hy(c<0?c+360:c,u,i,t.opacity)}(t):new Hy(t,n,e,null==r?1:r)}function Hy(t,n,e,r){this.h=+t,this.s=+n,this.l=+e,this.opacity=+r}function Vy(t,n,e,r,i){var o=t*t,a=o*t;return((1-3*t+3*o-a)*n+(4-6*o+3*a)*e+(1+3*t+3*o-3*a)*r+a*i)/6}function Wy(t){var n=t.length-1;return function(e){var r=e<=0?e=0:e>=1?(e=1,n-1):Math.floor(e*n),i=t[r],o=t[r+1],a=r>0?t[r-1]:2*i-o,u=r180||e<-180?e-360*Math.round(e/360):e):$y(isNaN(t)?n:t)}function Zy(t,n){var e=n-t;return e?Gy(t,e):$y(isNaN(t)?n:t)}Yv(Hy,Yy,Hv(Vv,{brighter:function(t){return t=null==t?Xv:Math.pow(Xv,t),new Hy(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?Wv:Math.pow(Wv,t),new Hy(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=isNaN(this.h)?0:(this.h+120)*yy,n=+this.l,e=isNaN(this.s)?0:this.s*n*(1-n),r=Math.cos(t),i=Math.sin(t);return new fy(255*(n+e*(Uy*r+Dy*i)),255*(n+e*(Ly*r+zy*i)),255*(n+e*(Fy*r)),this.opacity)}}));const Ky=function t(n){var e=function(t){return 1==(t=+t)?Zy:function(n,e){return e-n?function(t,n,e){return t=Math.pow(t,e),n=Math.pow(n,e)-t,e=1/e,function(r){return Math.pow(t+r*n,e)}}(n,e,t):$y(isNaN(n)?e:n)}}(n);function r(t,n){var r=e((t=sy(t)).r,(n=sy(n)).r),i=e(t.g,n.g),o=e(t.b,n.b),a=Zy(t.opacity,n.opacity);return function(n){return t.r=r(n),t.g=i(n),t.b=o(n),t.opacity=a(n),t+""}}return r.gamma=t,r}(1);function Jy(t){return function(n){var e,r,i=n.length,o=new Array(i),a=new Array(i),u=new Array(i);for(e=0;eo&&(i=n.slice(o,i),u[a]?u[a]+=i:u[++a]=i),(e=e[0])===(r=r[0])?u[a]?u[a]+=r:u[++a]=r:(u[++a]=null,c.push({i:a,x:im(e,r)})),o=um.lastIndex;return o180?n+=360:n-t>180&&(t+=360),o.push({i:e.push(i(e)+"rotate(",null,r)-2,x:im(t,n)})):n&&e.push(i(e)+"rotate("+n+r)}(o.rotate,a.rotate,u,c),function(t,n,e,o){t!==n?o.push({i:e.push(i(e)+"skewX(",null,r)-2,x:im(t,n)}):n&&e.push(i(e)+"skewX("+n+r)}(o.skewX,a.skewX,u,c),function(t,n,e,r,o,a){if(t!==e||n!==r){var u=o.push(i(o)+"scale(",null,",",null,")");a.push({i:u-4,x:im(t,e)},{i:u-2,x:im(n,r)})}else 1===e&&1===r||o.push(i(o)+"scale("+e+","+r+")")}(o.scaleX,o.scaleY,a.scaleX,a.scaleY,u,c),o=a=null,function(t){for(var n,e=-1,r=c.length;++eqm)if(Math.abs(s*u-c*l)>qm&&i){var h=e-o,d=r-a,p=u*u+c*c,g=h*h+d*d,v=Math.sqrt(p),y=Math.sqrt(f),m=i*Math.tan((zm-Math.acos((p+f-g)/(2*v*y)))/2),_=m/y,b=m/v;Math.abs(_-1)>qm&&(this._+="L"+(t+_*l)+","+(n+_*s)),this._+="A"+i+","+i+",0,0,"+ +(s*h>l*d)+","+(this._x1=t+b*u)+","+(this._y1=n+b*c)}else this._+="L"+(this._x1=t)+","+(this._y1=n)},arc:function(t,n,e,r,i,o){t=+t,n=+n;var a=(e=+e)*Math.cos(r),u=e*Math.sin(r),c=t+a,l=n+u,s=1^o,f=o?r-i:i-r;if(e<0)throw new Error("negative radius: "+e);null===this._x1?this._+="M"+c+","+l:(Math.abs(this._x1-c)>qm||Math.abs(this._y1-l)>qm)&&(this._+="L"+c+","+l),e&&(f<0&&(f=f%Fm+Fm),f>jm?this._+="A"+e+","+e+",0,1,"+s+","+(t-a)+","+(n-u)+"A"+e+","+e+",0,1,"+s+","+(this._x1=c)+","+(this._y1=l):f>qm&&(this._+="A"+e+","+e+",0,"+ +(f>=zm)+","+s+","+(this._x1=t+e*Math.cos(i))+","+(this._y1=n+e*Math.sin(i))))},rect:function(t,n,e,r){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+n)+"h"+ +e+"v"+ +r+"h"+-e+"Z"},toString:function(){return this._}};const Hm=Ym;function Vm(t){for(var n,e=-1,r=t.length,i=t[r-1],o=0;++e1&&Xm(t[e[r-2]],t[e[r-1]],t[i])<=0;)--r;e[r++]=i}return e.slice(0,r)}function Qm(t){if((e=t.length)<3)return null;var n,e,r=new Array(e),i=new Array(e);for(n=0;n=0;--n)l.push(t[r[o[n]][2]]);for(n=+u;nu!=l>u&&a<(c-e)*(u-r)/(l-r)+e&&(s=!s),c=e,l=r;return s}function Km(t){for(var n,e,r=-1,i=t.length,o=t[i-1],a=o[0],u=o[1],c=0;++r=(o=(g+y)/2))?g=o:y=o,(s=e>=(a=(v+m)/2))?v=a:m=a,i=d,!(d=d[f=s<<1|l]))return i[f]=p,t;if(u=+t._x.call(null,d.data),c=+t._y.call(null,d.data),n===u&&e===c)return p.next=d,i?i[f]=p:t._root=p,t;do{i=i?i[f]=new Array(4):t._root=new Array(4),(l=n>=(o=(g+y)/2))?g=o:y=o,(s=e>=(a=(v+m)/2))?v=a:m=a}while((f=s<<1|l)==(h=(c>=a)<<1|u>=o));return i[h]=d,i[f]=p,t}function t_(t,n,e,r,i){this.node=t,this.x0=n,this.y0=e,this.x1=r,this.y1=i}function n_(t){return t[0]}function e_(t){return t[1]}function r_(t,n,e){var r=new i_(null==n?n_:n,null==e?e_:e,NaN,NaN,NaN,NaN);return null==t?r:r.addAll(t)}function i_(t,n,e,r,i,o){this._x=t,this._y=n,this._x0=e,this._y0=r,this._x1=i,this._y1=o,this._root=void 0}function o_(t){for(var n={data:t.data},e=n;t=t.next;)e=e.next={data:t.data};return n}var a_=r_.prototype=i_.prototype;a_.copy=function(){var t,n,e=new i_(this._x,this._y,this._x0,this._y0,this._x1,this._y1),r=this._root;if(!r)return e;if(!r.length)return e._root=o_(r),e;for(t=[{source:r,target:e._root=new Array(4)}];r=t.pop();)for(var i=0;i<4;++i)(n=r.source[i])&&(n.length?t.push({source:n,target:r.target[i]=new Array(4)}):r.target[i]=o_(n));return e},a_.add=function(t){var n=+this._x.call(null,t),e=+this._y.call(null,t);return Jm(this.cover(n,e),n,e,t)},a_.addAll=function(t){var n,e,r,i,o=t.length,a=new Array(o),u=new Array(o),c=1/0,l=1/0,s=-1/0,f=-1/0;for(e=0;es&&(s=r),if&&(f=i));for(st||t>i||r>n||n>o))return this;var a,u,c=i-e,l=this._root;switch(u=(n<(r+o)/2)<<1|t<(e+i)/2){case 0:do{(a=new Array(4))[u]=l,l=a}while(o=r+(c*=2),t>(i=e+c)||n>o);break;case 1:do{(a=new Array(4))[u]=l,l=a}while(o=r+(c*=2),(e=i-c)>t||n>o);break;case 2:do{(a=new Array(4))[u]=l,l=a}while(r=o-(c*=2),t>(i=e+c)||r>n);break;case 3:do{(a=new Array(4))[u]=l,l=a}while(r=o-(c*=2),(e=i-c)>t||r>n)}this._root&&this._root.length&&(this._root=l)}return this._x0=e,this._y0=r,this._x1=i,this._y1=o,this},a_.data=function(){var t=[];return this.visit((function(n){if(!n.length)do{t.push(n.data)}while(n=n.next)})),t},a_.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]]},a_.find=function(t,n,e){var r,i,o,a,u,c,l,s=this._x0,f=this._y0,h=this._x1,d=this._y1,p=[],g=this._root;for(g&&p.push(new t_(g,s,f,h,d)),null==e?e=1/0:(s=t-e,f=n-e,h=t+e,d=n+e,e*=e);c=p.pop();)if(!(!(g=c.node)||(i=c.x0)>h||(o=c.y0)>d||(a=c.x1)=y)<<1|t>=v)&&(c=p[p.length-1],p[p.length-1]=p[p.length-1-l],p[p.length-1-l]=c)}else{var m=t-+this._x.call(null,g.data),_=n-+this._y.call(null,g.data),b=m*m+_*_;if(b=(u=(p+v)/2))?p=u:v=u,(s=a>=(c=(g+y)/2))?g=c:y=c,n=d,!(d=d[f=s<<1|l]))return this;if(!d.length)break;(n[f+1&3]||n[f+2&3]||n[f+3&3])&&(e=n,h=f)}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):n?(i?n[f]=i:delete n[f],(d=n[0]||n[1]||n[2]||n[3])&&d===(n[3]||n[2]||n[1]||n[0])&&!d.length&&(e?e[h]=d:this._root=d),this):(this._root=i,this)},a_.removeAll=function(t){for(var n=0,e=t.length;n=0;)if((e=t._tasks[r])&&(t._tasks[r]=null,e.abort))try{e.abort()}catch(n){}t._active=NaN,d_(t)}function d_(t){if(!t._active&&t._call){var n=t._data;t._data=void 0,t._call(t._error,n)}}function p_(t){if(null==t)t=1/0;else if(!((t=+t)>=1))throw new Error("invalid concurrency");return new l_(t)}function g_(){return Math.random()}l_.prototype=p_.prototype={constructor:l_,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 n=u_.call(arguments,1);return n.push(t),++this._waiting,this._tasks.push(n),s_(this),this},abort:function(){return null==this._error&&h_(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(n,e){t.apply(null,[n].concat(e))},d_(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,d_(this),this}};const v_=function t(n){function e(t,e){return t=null==t?0:+t,e=null==e?1:+e,1===arguments.length?(e=t,t=0):e-=t,function(){return n()*e+t}}return e.source=t,e}(g_),y_=function t(n){function e(t,e){var r,i;return t=null==t?0:+t,e=null==e?1:+e,function(){var o;if(null!=r)o=r,r=null;else do{r=2*n()-1,o=2*n()-1,i=r*r+o*o}while(!i||i>1);return t+e*o*Math.sqrt(-2*Math.log(i)/i)}}return e.source=t,e}(g_),m_=function t(n){function e(){var t=y_.source(n).apply(this,arguments);return function(){return Math.exp(t())}}return e.source=t,e}(g_),__=function t(n){function e(t){return function(){for(var e=0,r=0;r=200&&r<300||304===r){if(i)try{n=i.call(e,c)}catch(t){return void a.call("error",e,t)}else n=c;a.call("load",e,n)}else a.call("error",e,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",e,t)},e={header:function(t,n){return t=(t+"").toLowerCase(),arguments.length<2?u.get(t):(null==n?u.remove(t):u.set(t,n+""),e)},mimeType:function(t){return arguments.length?(r=null==t?null:t+"",e):r},responseType:function(t){return arguments.length?(o=t,e):o},timeout:function(t){return arguments.length?(f=+t,e):f},user:function(t){return arguments.length<1?l:(l=null==t?null:t+"",e)},password:function(t){return arguments.length<1?s:(s=null==t?null:t+"",e)},response:function(t){return i=t,e},get:function(t,n){return e.send("GET",t,n)},post:function(t,n){return e.send("POST",t,n)},send:function(n,i,h){return c.open(n,t,!0,l,s),null==r||u.has("accept")||u.set("accept",r+",*/*"),c.setRequestHeader&&u.each((function(t,n){c.setRequestHeader(n,t)})),null!=r&&c.overrideMimeType&&c.overrideMimeType(r),null!=o&&(c.responseType=o),f>0&&(c.timeout=f),null==h&&"function"==typeof i&&(h=i,i=null),null!=h&&1===h.length&&(h=function(t){return function(n,e){t(null==n?e:null)}}(h)),null!=h&&e.on("error",h).on("load",(function(t){h(null,t)})),a.call("beforesend",e,c),c.send(null==i?null:i),e},abort:function(){return c.abort(),e},on:function(){var t=a.on.apply(a,arguments);return t===a?e:t}},null!=n){if("function"!=typeof n)throw new Error("invalid callback: "+n);return e.get(n)}return e}function k_(t,n){return function(e,r){var i=E_(e).mimeType(t).response(n);if(null!=r){if("function"!=typeof r)throw new Error("invalid callback: "+r);return i.get(r)}return i}}const N_=k_("text/html",(function(t){return document.createRange().createContextualFragment(t.responseText)})),S_=k_("application/json",(function(t){return JSON.parse(t.responseText)})),T_=k_("text/plain",(function(t){return t.responseText})),C_=k_("application/xml",(function(t){var n=t.responseXML;if(!n)throw new Error("parse error");return n}));var A_=e(2279);function P_(t,n){return function(e,r,i){arguments.length<3&&(i=r,r=null);var o=E_(e).mimeType(t);return o.row=function(t){return arguments.length?o.response(function(t,n){return function(e){return t(e.responseText,n)}}(n,r=t)):r},o.row(r),i?o.get(i):o}}const R_=P_("text/csv",A_.ue),I_=P_("text/tab-separated-values",A_.tJ);function O_(t,n){return tn?1:t>=n?0:NaN}function U_(t){return 1===t.length&&(t=function(t){return function(n,e){return O_(t(n),e)}}(t)),{left:function(n,e,r,i){for(null==r&&(r=0),null==i&&(i=n.length);r>>1;t(n[o],e)<0?r=o+1:i=o}return r},right:function(n,e,r,i){for(null==r&&(r=0),null==i&&(i=n.length);r>>1;t(n[o],e)>0?i=o:r=o+1}return r}}}var D_=U_(O_),L_=D_.right;D_.left;const z_=L_;var F_=Array.prototype,q_=(F_.slice,F_.map,Math.sqrt(50)),j_=Math.sqrt(10),B_=Math.sqrt(2);function Y_(t,n,e){var r,i,o,a,u=-1;if(e=+e,(t=+t)==(n=+n)&&e>0)return[t];if((r=n0)for(t=Math.ceil(t/a),n=Math.floor(n/a),o=new Array(i=Math.ceil(n-t+1));++u=0?(o>=q_?10:o>=j_?5:o>=B_?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(o>=q_?10:o>=j_?5:o>=B_?2:1)}function V_(t,n,e){var r=Math.abs(n-t)/Math.max(0,e),i=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),o=r/i;return o>=q_?i*=10:o>=j_?i*=5:o>=B_&&(i*=2),n=1)return+e(t[r-1],r-1,t);var r,i=(r-1)*n,o=Math.floor(i),a=+e(t[o],o,t);return a+(+e(t[o+1],o+1,t)-a)*(i-o)}}var $_="$";function G_(){}function Q_(t,n){var e=new G_;if(t instanceof G_)t.each((function(t,n){e.set(n,t)}));else if(Array.isArray(t)){var r,i=-1,o=t.length;if(null==n)for(;++i>8&15|n>>4&240,n>>4&15|240&n,(15&n)<<4|15&n,1):(n=yb.exec(t))?Nb(parseInt(n[1],16)):(n=mb.exec(t))?new Ab(n[1],n[2],n[3],1):(n=_b.exec(t))?new Ab(255*n[1]/100,255*n[2]/100,255*n[3]/100,1):(n=bb.exec(t))?Sb(n[1],n[2],n[3],n[4]):(n=wb.exec(t))?Sb(255*n[1]/100,255*n[2]/100,255*n[3]/100,n[4]):(n=xb.exec(t))?Rb(n[1],n[2]/100,n[3]/100,1):(n=Mb.exec(t))?Rb(n[1],n[2]/100,n[3]/100,n[4]):Eb.hasOwnProperty(t)?Nb(Eb[t]):"transparent"===t?new Ab(NaN,NaN,NaN,0):null}function Nb(t){return new Ab(t>>16&255,t>>8&255,255&t,1)}function Sb(t,n,e,r){return r<=0&&(t=n=e=NaN),new Ab(t,n,e,r)}function Tb(t){return t instanceof sb||(t=kb(t)),t?new Ab((t=t.rgb()).r,t.g,t.b,t.opacity):new Ab}function Cb(t,n,e,r){return 1===arguments.length?Tb(t):new Ab(t,n,e,null==r?1:r)}function Ab(t,n,e,r){this.r=+t,this.g=+n,this.b=+e,this.opacity=+r}function Pb(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function Rb(t,n,e,r){return r<=0?t=n=e=NaN:e<=0||e>=1?t=n=NaN:n<=0&&(t=NaN),new Ob(t,n,e,r)}function Ib(t,n,e,r){return 1===arguments.length?function(t){if(t instanceof Ob)return new Ob(t.h,t.s,t.l,t.opacity);if(t instanceof sb||(t=kb(t)),!t)return new Ob;if(t instanceof Ob)return t;var n=(t=t.rgb()).r/255,e=t.g/255,r=t.b/255,i=Math.min(n,e,r),o=Math.max(n,e,r),a=NaN,u=o-i,c=(o+i)/2;return u?(a=n===o?(e-r)/u+6*(e0&&c<1?0:a,new Ob(a,u,c,t.opacity)}(t):new Ob(t,n,e,null==r?1:r)}function Ob(t,n,e,r){this.h=+t,this.s=+n,this.l=+e,this.opacity=+r}function Ub(t,n,e){return 255*(t<60?n+(e-n)*t/60:t<180?e:t<240?n+(e-n)*(240-t)/60:n)}cb(sb,kb,{displayable:function(){return this.rgb().displayable()},hex:function(){return this.rgb().hex()},toString:function(){return this.rgb()+""}}),cb(Ab,Cb,lb(sb,{brighter:function(t){return t=null==t?hb:Math.pow(hb,t),new Ab(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?fb:Math.pow(fb,t),new Ab(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},hex:function(){return"#"+Pb(this.r)+Pb(this.g)+Pb(this.b)},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+")")}})),cb(Ob,Ib,lb(sb,{brighter:function(t){return t=null==t?hb:Math.pow(hb,t),new Ob(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?fb:Math.pow(fb,t),new Ob(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),n=isNaN(t)||isNaN(this.s)?0:this.s,e=this.l,r=e+(e<.5?e:1-e)*n,i=2*e-r;return new Ab(Ub(t>=240?t-240:t+120,i,r),Ub(t,i,r),Ub(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 Db=Math.PI/180,Lb=180/Math.PI,zb=.96422,Fb=1,qb=.82521,jb=4/29,Bb=6/29,Yb=3*Bb*Bb,Hb=Bb*Bb*Bb;function Vb(t){if(t instanceof Wb)return new Wb(t.l,t.a,t.b,t.opacity);if(t instanceof Kb){if(isNaN(t.h))return new Wb(t.l,0,0,t.opacity);var n=t.h*Db;return new Wb(t.l,Math.cos(n)*t.c,Math.sin(n)*t.c,t.opacity)}t instanceof Ab||(t=Tb(t));var e,r,i=Qb(t.r),o=Qb(t.g),a=Qb(t.b),u=Xb((.2225045*i+.7168786*o+.0606169*a)/Fb);return i===o&&o===a?e=r=u:(e=Xb((.4360747*i+.3850649*o+.1430804*a)/zb),r=Xb((.0139322*i+.0971045*o+.7141733*a)/qb)),new Wb(116*u-16,500*(e-u),200*(u-r),t.opacity)}function Wb(t,n,e,r){this.l=+t,this.a=+n,this.b=+e,this.opacity=+r}function Xb(t){return t>Hb?Math.pow(t,1/3):t/Yb+jb}function $b(t){return t>Bb?t*t*t:Yb*(t-jb)}function Gb(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function Qb(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function Zb(t,n,e,r){return 1===arguments.length?function(t){if(t instanceof Kb)return new Kb(t.h,t.c,t.l,t.opacity);if(t instanceof Wb||(t=Vb(t)),0===t.a&&0===t.b)return new Kb(NaN,0,t.l,t.opacity);var n=Math.atan2(t.b,t.a)*Lb;return new Kb(n<0?n+360:n,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}(t):new Kb(t,n,e,null==r?1:r)}function Kb(t,n,e,r){this.h=+t,this.c=+n,this.l=+e,this.opacity=+r}cb(Wb,(function(t,n,e,r){return 1===arguments.length?Vb(t):new Wb(t,n,e,null==r?1:r)}),lb(sb,{brighter:function(t){return new Wb(this.l+18*(null==t?1:t),this.a,this.b,this.opacity)},darker:function(t){return new Wb(this.l-18*(null==t?1:t),this.a,this.b,this.opacity)},rgb:function(){var t=(this.l+16)/116,n=isNaN(this.a)?t:t+this.a/500,e=isNaN(this.b)?t:t-this.b/200;return new Ab(Gb(3.1338561*(n=zb*$b(n))-1.6168667*(t=Fb*$b(t))-.4906146*(e=qb*$b(e))),Gb(-.9787684*n+1.9161415*t+.033454*e),Gb(.0719453*n-.2289914*t+1.4052427*e),this.opacity)}})),cb(Kb,Zb,lb(sb,{brighter:function(t){return new Kb(this.h,this.c,this.l+18*(null==t?1:t),this.opacity)},darker:function(t){return new Kb(this.h,this.c,this.l-18*(null==t?1:t),this.opacity)},rgb:function(){return Vb(this).rgb()}}));var Jb=-.14861,tw=1.78277,nw=-.29227,ew=-.90649,rw=1.97294,iw=rw*ew,ow=rw*tw,aw=tw*nw-ew*Jb;function uw(t,n,e,r){return 1===arguments.length?function(t){if(t instanceof cw)return new cw(t.h,t.s,t.l,t.opacity);t instanceof Ab||(t=Tb(t));var n=t.r/255,e=t.g/255,r=t.b/255,i=(aw*r+iw*n-ow*e)/(aw+iw-ow),o=r-i,a=(rw*(e-i)-nw*o)/ew,u=Math.sqrt(a*a+o*o)/(rw*i*(1-i)),c=u?Math.atan2(a,o)*Lb-120:NaN;return new cw(c<0?c+360:c,u,i,t.opacity)}(t):new cw(t,n,e,null==r?1:r)}function cw(t,n,e,r){this.h=+t,this.s=+n,this.l=+e,this.opacity=+r}function lw(t,n,e,r,i){var o=t*t,a=o*t;return((1-3*t+3*o-a)*n+(4-6*o+3*a)*e+(1+3*t+3*o-3*a)*r+a*i)/6}function sw(t){return function(){return t}}function fw(t,n){return function(e){return t+e*n}}function hw(t,n){var e=n-t;return e?fw(t,e>180||e<-180?e-360*Math.round(e/360):e):sw(isNaN(t)?n:t)}function dw(t,n){var e=n-t;return e?fw(t,e):sw(isNaN(t)?n:t)}cb(cw,uw,lb(sb,{brighter:function(t){return t=null==t?hb:Math.pow(hb,t),new cw(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?fb:Math.pow(fb,t),new cw(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=isNaN(this.h)?0:(this.h+120)*Db,n=+this.l,e=isNaN(this.s)?0:this.s*n*(1-n),r=Math.cos(t),i=Math.sin(t);return new Ab(255*(n+e*(Jb*r+tw*i)),255*(n+e*(nw*r+ew*i)),255*(n+e*(rw*r)),this.opacity)}}));const pw=function t(n){var e=function(t){return 1==(t=+t)?dw:function(n,e){return e-n?function(t,n,e){return t=Math.pow(t,e),n=Math.pow(n,e)-t,e=1/e,function(r){return Math.pow(t+r*n,e)}}(n,e,t):sw(isNaN(n)?e:n)}}(n);function r(t,n){var r=e((t=Cb(t)).r,(n=Cb(n)).r),i=e(t.g,n.g),o=e(t.b,n.b),a=dw(t.opacity,n.opacity);return function(n){return t.r=r(n),t.g=i(n),t.b=o(n),t.opacity=a(n),t+""}}return r.gamma=t,r}(1);function gw(t){return function(n){var e,r,i=n.length,o=new Array(i),a=new Array(i),u=new Array(i);for(e=0;e=1?(e=1,n-1):Math.floor(e*n),i=t[r],o=t[r+1],a=r>0?t[r-1]:2*i-o,u=ro&&(i=n.slice(o,i),u[a]?u[a]+=i:u[++a]=i),(e=e[0])===(r=r[0])?u[a]?u[a]+=r:u[++a]=r:(u[++a]=null,c.push({i:a,x:mw(e,r)})),o=ww.lastIndex;return o180?n+=360:n-t>180&&(t+=360),o.push({i:e.push(i(e)+"rotate(",null,r)-2,x:mw(t,n)})):n&&e.push(i(e)+"rotate("+n+r)}(o.rotate,a.rotate,u,c),function(t,n,e,o){t!==n?o.push({i:e.push(i(e)+"skewX(",null,r)-2,x:mw(t,n)}):n&&e.push(i(e)+"skewX("+n+r)}(o.skewX,a.skewX,u,c),function(t,n,e,r,o,a){if(t!==e||n!==r){var u=o.push(i(o)+"scale(",null,",",null,")");a.push({i:u-4,x:mw(t,e)},{i:u-2,x:mw(n,r)})}else 1===e&&1===r||o.push(i(o)+"scale("+e+","+r+")")}(o.scaleX,o.scaleY,a.scaleX,a.scaleY,u,c),o=a=null,function(t){for(var n,e=-1,r=c.length;++e2?Bw:jw,r=i=null,s}function s(n){return(r||(r=e(o,a,c?function(t){return function(n,e){var r=t(n=+n,e=+e);return function(t){return t<=n?0:t>=e?1:r(t)}}}(t):t,u)))(+n)}return s.invert=function(t){return(i||(i=e(a,o,qw,c?function(t){return function(n,e){var r=t(n=+n,e=+e);return function(t){return t<=0?n:t>=1?e:r(t)}}}(n):n)))(+t)},s.domain=function(t){return arguments.length?(o=nb.call(t,zw),l()):o.slice()},s.range=function(t){return arguments.length?(a=eb.call(t),l()):a.slice()},s.rangeRound=function(t){return a=eb.call(t),u=Ew,l()},s.clamp=function(t){return arguments.length?(c=!!t,l()):c},s.interpolate=function(t){return arguments.length?(u=t,l()):u},l()}function Vw(t,n){if((e=(t=n?t.toExponential(n-1):t.toExponential()).indexOf("e"))<0)return null;var e,r=t.slice(0,e);return[r.length>1?r[0]+r.slice(2):r,+t.slice(e+1)]}function Ww(t){return(t=Vw(Math.abs(t)))?t[1]:NaN}var Xw,$w=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Gw(t){return new Qw(t)}function Qw(t){if(!(n=$w.exec(t)))throw new Error("invalid format: "+t);var n;this.fill=n[1]||" ",this.align=n[2]||">",this.sign=n[3]||"-",this.symbol=n[4]||"",this.zero=!!n[5],this.width=n[6]&&+n[6],this.comma=!!n[7],this.precision=n[8]&&+n[8].slice(1),this.trim=!!n[9],this.type=n[10]||""}function Zw(t,n){var e=Vw(t,n);if(!e)return t+"";var r=e[0],i=e[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")}Gw.prototype=Qw.prototype,Qw.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.trim?"~":"")+this.type};const Kw={"%":function(t,n){return(100*t).toFixed(n)},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,n){return t.toExponential(n)},f:function(t,n){return t.toFixed(n)},g:function(t,n){return t.toPrecision(n)},o:function(t){return Math.round(t).toString(8)},p:function(t,n){return Zw(100*t,n)},r:Zw,s:function(t,n){var e=Vw(t,n);if(!e)return t+"";var r=e[0],i=e[1],o=i-(Xw=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")+Vw(t,Math.max(0,n+o-1))[0]},X:function(t){return Math.round(t).toString(16).toUpperCase()},x:function(t){return Math.round(t).toString(16)}};function Jw(t){return t}var tx,nx,ex,rx=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function ix(t){var n=t.domain;return t.ticks=function(t){var e=n();return Y_(e[0],e[e.length-1],null==t?10:t)},t.tickFormat=function(t,e){return function(t,n,e){var r,i=t[0],o=t[t.length-1],a=V_(i,o,null==n?10:n);switch((e=Gw(null==e?",f":e)).type){case"s":var u=Math.max(Math.abs(i),Math.abs(o));return null!=e.precision||isNaN(r=function(t,n){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(Ww(n)/3)))-Ww(Math.abs(t)))}(a,u))||(e.precision=r),ex(e,u);case"":case"e":case"g":case"p":case"r":null!=e.precision||isNaN(r=function(t,n){return t=Math.abs(t),n=Math.abs(n)-t,Math.max(0,Ww(n)-Ww(t))+1}(a,Math.max(Math.abs(i),Math.abs(o))))||(e.precision=r-("e"===e.type));break;case"f":case"%":null!=e.precision||isNaN(r=function(t){return Math.max(0,-Ww(Math.abs(t)))}(a))||(e.precision=r-2*("%"===e.type))}return nx(e)}(n(),t,e)},t.nice=function(e){null==e&&(e=10);var r,i=n(),o=0,a=i.length-1,u=i[o],c=i[a];return c0?r=H_(u=Math.floor(u/r)*r,c=Math.ceil(c/r)*r,e):r<0&&(r=H_(u=Math.ceil(u*r)/r,c=Math.floor(c*r)/r,e)),r>0?(i[o]=Math.floor(u/r)*r,i[a]=Math.ceil(c/r)*r,n(i)):r<0&&(i[o]=Math.ceil(u*r)/r,i[a]=Math.floor(c*r)/r,n(i)),t},t}function ox(){var t=Hw(qw,mw);return t.copy=function(){return Yw(t,ox())},ix(t)}function ax(){var t=[0,1];function n(t){return+t}return n.invert=n,n.domain=n.range=function(e){return arguments.length?(t=nb.call(e,zw),n):t.slice()},n.copy=function(){return ax().domain(t)},ix(n)}function ux(t,n){var e,r=0,i=(t=t.slice()).length-1,o=t[r],a=t[i];return a0){for(;hc)break;g.push(f)}}else for(;h=1;--s)if(!((f=l*s)c)break;g.push(f)}}else g=Y_(h,d,Math.min(d-h,p)).map(i);return o?g.reverse():g},t.tickFormat=function(n,o){if(null==o&&(o=10===e?".0e":","),"function"!=typeof o&&(o=nx(o)),n===1/0)return o;null==n&&(n=10);var a=Math.max(1,e*n/t.ticks().length);return function(t){var n=t/i(Math.round(r(t)));return n*e0?e[i-1]:t[0],i=e?[r[e-1],n]:[r[a-1],r[a]]},o.copy=function(){return _x().domain([t,n]).range(i)},ix(o)}function bx(){var t=[.5],n=[0,1],e=1;function r(r){if(r<=r)return n[z_(t,r,0,e)]}return r.domain=function(i){return arguments.length?(t=eb.call(i),e=Math.min(t.length,n.length-1),r):t.slice()},r.range=function(i){return arguments.length?(n=eb.call(i),e=Math.min(t.length,n.length-1),r):n.slice()},r.invertExtent=function(e){var r=n.indexOf(e);return[t[r-1],t[r]]},r.copy=function(){return bx().domain(t).range(n)},r}tx=function(t){var n,e,r=t.grouping&&t.thousands?(n=t.grouping,e=t.thousands,function(t,r){for(var i=t.length,o=[],a=0,u=n[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=n[a=(a+1)%n.length];return o.reverse().join(e)}):Jw,i=t.currency,o=t.decimal,a=t.numerals?function(t){return function(n){return n.replace(/[0-9]/g,(function(n){return t[+n]}))}}(t.numerals):Jw,u=t.percent||"%";function c(t){var n=(t=Gw(t)).fill,e=t.align,c=t.sign,l=t.symbol,s=t.zero,f=t.width,h=t.comma,d=t.precision,p=t.trim,g=t.type;"n"===g?(h=!0,g="g"):Kw[g]||(null==d&&(d=12),p=!0,g="g"),(s||"0"===n&&"="===e)&&(s=!0,n="0",e="=");var v="$"===l?i[0]:"#"===l&&/[boxX]/.test(g)?"0"+g.toLowerCase():"",y="$"===l?i[1]:/[%p]/.test(g)?u:"",m=Kw[g],_=/[defgprs%]/.test(g);function b(t){var i,u,l,b=v,w=y;if("c"===g)w=m(t)+w,t="";else{var x=(t=+t)<0;if(t=m(Math.abs(t),d),p&&(t=function(t){t:for(var n,e=t.length,r=1,i=-1;r0){if(!+t[r])break t;i=0}}return i>0?t.slice(0,i)+t.slice(n+1):t}(t)),x&&0==+t&&(x=!1),b=(x?"("===c?c:"-":"-"===c||"("===c?"":c)+b,w=("s"===g?rx[8+Xw/3]:"")+w+(x&&"("===c?")":""),_)for(i=-1,u=t.length;++i(l=t.charCodeAt(i))||l>57){w=(46===l?o+t.slice(i+1):t.slice(i))+w,t=t.slice(0,i);break}}h&&!s&&(t=r(t,1/0));var M=b.length+t.length+w.length,E=M>1)+b+t+w+E.slice(M);break;default:t=E+b+t+w}return a(t)}return d=null==d?6:/[gprs]/.test(g)?Math.max(1,Math.min(21,d)):Math.max(0,Math.min(20,d)),b.toString=function(){return t+""},b}return{format:c,formatPrefix:function(t,n){var e=c(((t=Gw(t)).type="f",t)),r=3*Math.max(-8,Math.min(8,Math.floor(Ww(n)/3))),i=Math.pow(10,-r),o=rx[8+r/3];return function(t){return e(i*t)+o}}}}({decimal:".",thousands:",",grouping:[3],currency:["$",""]}),nx=tx.format,ex=tx.formatPrefix;var wx=new Date,xx=new Date;function Mx(t,n,e,r){function i(n){return t(n=new Date(+n)),n}return i.floor=i,i.ceil=function(e){return t(e=new Date(e-1)),n(e,1),t(e),e},i.round=function(t){var n=i(t),e=i.ceil(t);return t-n0))return u;do{u.push(a=new Date(+e)),n(e,o),t(e)}while(a=n)for(;t(n),!e(n);)n.setTime(n-1)}),(function(t,r){if(t>=t)if(r<0)for(;++r<=0;)for(;n(t,-1),!e(t););else for(;--r>=0;)for(;n(t,1),!e(t););}))},e&&(i.count=function(n,r){return wx.setTime(+n),xx.setTime(+r),t(wx),t(xx),Math.floor(e(wx,xx))},i.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?i.filter(r?function(n){return r(n)%t==0}:function(n){return i.count(0,n)%t==0}):i:null}),i}var Ex=Mx((function(){}),(function(t,n){t.setTime(+t+n)}),(function(t,n){return n-t}));Ex.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?Mx((function(n){n.setTime(Math.floor(n/t)*t)}),(function(n,e){n.setTime(+n+e*t)}),(function(n,e){return(e-n)/t})):Ex:null};const kx=Ex;Ex.range;var Nx=1e3,Sx=6e4,Tx=36e5,Cx=864e5,Ax=6048e5,Px=Mx((function(t){t.setTime(Math.floor(t/Nx)*Nx)}),(function(t,n){t.setTime(+t+n*Nx)}),(function(t,n){return(n-t)/Nx}),(function(t){return t.getUTCSeconds()}));const Rx=Px;Px.range;var Ix=Mx((function(t){t.setTime(Math.floor(t/Sx)*Sx)}),(function(t,n){t.setTime(+t+n*Sx)}),(function(t,n){return(n-t)/Sx}),(function(t){return t.getMinutes()}));const Ox=Ix;Ix.range;var Ux=Mx((function(t){var n=t.getTimezoneOffset()*Sx%Tx;n<0&&(n+=Tx),t.setTime(Math.floor((+t-n)/Tx)*Tx+n)}),(function(t,n){t.setTime(+t+n*Tx)}),(function(t,n){return(n-t)/Tx}),(function(t){return t.getHours()}));const Dx=Ux;Ux.range;var Lx=Mx((function(t){t.setHours(0,0,0,0)}),(function(t,n){t.setDate(t.getDate()+n)}),(function(t,n){return(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*Sx)/Cx}),(function(t){return t.getDate()-1}));const zx=Lx;function Fx(t){return Mx((function(n){n.setDate(n.getDate()-(n.getDay()+7-t)%7),n.setHours(0,0,0,0)}),(function(t,n){t.setDate(t.getDate()+7*n)}),(function(t,n){return(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*Sx)/Ax}))}Lx.range;var qx=Fx(0),jx=Fx(1),Bx=Fx(2),Yx=Fx(3),Hx=Fx(4),Vx=Fx(5),Wx=Fx(6),Xx=(qx.range,jx.range,Bx.range,Yx.range,Hx.range,Vx.range,Wx.range,Mx((function(t){t.setDate(1),t.setHours(0,0,0,0)}),(function(t,n){t.setMonth(t.getMonth()+n)}),(function(t,n){return n.getMonth()-t.getMonth()+12*(n.getFullYear()-t.getFullYear())}),(function(t){return t.getMonth()})));const $x=Xx;Xx.range;var Gx=Mx((function(t){t.setMonth(0,1),t.setHours(0,0,0,0)}),(function(t,n){t.setFullYear(t.getFullYear()+n)}),(function(t,n){return n.getFullYear()-t.getFullYear()}),(function(t){return t.getFullYear()}));Gx.every=function(t){return isFinite(t=Math.floor(t))&&t>0?Mx((function(n){n.setFullYear(Math.floor(n.getFullYear()/t)*t),n.setMonth(0,1),n.setHours(0,0,0,0)}),(function(n,e){n.setFullYear(n.getFullYear()+e*t)})):null};const Qx=Gx;Gx.range;var Zx=Mx((function(t){t.setUTCSeconds(0,0)}),(function(t,n){t.setTime(+t+n*Sx)}),(function(t,n){return(n-t)/Sx}),(function(t){return t.getUTCMinutes()}));const Kx=Zx;Zx.range;var Jx=Mx((function(t){t.setUTCMinutes(0,0,0)}),(function(t,n){t.setTime(+t+n*Tx)}),(function(t,n){return(n-t)/Tx}),(function(t){return t.getUTCHours()}));const tM=Jx;Jx.range;var nM=Mx((function(t){t.setUTCHours(0,0,0,0)}),(function(t,n){t.setUTCDate(t.getUTCDate()+n)}),(function(t,n){return(n-t)/Cx}),(function(t){return t.getUTCDate()-1}));const eM=nM;function rM(t){return Mx((function(n){n.setUTCDate(n.getUTCDate()-(n.getUTCDay()+7-t)%7),n.setUTCHours(0,0,0,0)}),(function(t,n){t.setUTCDate(t.getUTCDate()+7*n)}),(function(t,n){return(n-t)/Ax}))}nM.range;var iM=rM(0),oM=rM(1),aM=rM(2),uM=rM(3),cM=rM(4),lM=rM(5),sM=rM(6),fM=(iM.range,oM.range,aM.range,uM.range,cM.range,lM.range,sM.range,Mx((function(t){t.setUTCDate(1),t.setUTCHours(0,0,0,0)}),(function(t,n){t.setUTCMonth(t.getUTCMonth()+n)}),(function(t,n){return n.getUTCMonth()-t.getUTCMonth()+12*(n.getUTCFullYear()-t.getUTCFullYear())}),(function(t){return t.getUTCMonth()})));const hM=fM;fM.range;var dM=Mx((function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),(function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n)}),(function(t,n){return n.getUTCFullYear()-t.getUTCFullYear()}),(function(t){return t.getUTCFullYear()}));dM.every=function(t){return isFinite(t=Math.floor(t))&&t>0?Mx((function(n){n.setUTCFullYear(Math.floor(n.getUTCFullYear()/t)*t),n.setUTCMonth(0,1),n.setUTCHours(0,0,0,0)}),(function(n,e){n.setUTCFullYear(n.getUTCFullYear()+e*t)})):null};const pM=dM;function gM(t){if(0<=t.y&&t.y<100){var n=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return n.setFullYear(t.y),n}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function vM(t){if(0<=t.y&&t.y<100){var n=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return n.setUTCFullYear(t.y),n}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function yM(t){return{y:t,m:0,d:1,H:0,M:0,S:0,L:0}}dM.range;var mM,_M,bM,wM,xM={"-":"",_:" ",0:"0"},MM=/^\s*\d+/,EM=/^%/,kM=/[\\^$*+?|[\]().{}]/g;function NM(t,n,e){var r=t<0?"-":"",i=(r?-t:t)+"",o=i.length;return r+(o68?1900:2e3),e+r[0].length):-1}function LM(t,n,e){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(n.slice(e,e+6));return r?(t.Z=r[1]?0:-(r[2]+(r[3]||"00")),e+r[0].length):-1}function zM(t,n,e){var r=MM.exec(n.slice(e,e+2));return r?(t.m=r[0]-1,e+r[0].length):-1}function FM(t,n,e){var r=MM.exec(n.slice(e,e+2));return r?(t.d=+r[0],e+r[0].length):-1}function qM(t,n,e){var r=MM.exec(n.slice(e,e+3));return r?(t.m=0,t.d=+r[0],e+r[0].length):-1}function jM(t,n,e){var r=MM.exec(n.slice(e,e+2));return r?(t.H=+r[0],e+r[0].length):-1}function BM(t,n,e){var r=MM.exec(n.slice(e,e+2));return r?(t.M=+r[0],e+r[0].length):-1}function YM(t,n,e){var r=MM.exec(n.slice(e,e+2));return r?(t.S=+r[0],e+r[0].length):-1}function HM(t,n,e){var r=MM.exec(n.slice(e,e+3));return r?(t.L=+r[0],e+r[0].length):-1}function VM(t,n,e){var r=MM.exec(n.slice(e,e+6));return r?(t.L=Math.floor(r[0]/1e3),e+r[0].length):-1}function WM(t,n,e){var r=EM.exec(n.slice(e,e+1));return r?e+r[0].length:-1}function XM(t,n,e){var r=MM.exec(n.slice(e));return r?(t.Q=+r[0],e+r[0].length):-1}function $M(t,n,e){var r=MM.exec(n.slice(e));return r?(t.Q=1e3*+r[0],e+r[0].length):-1}function GM(t,n){return NM(t.getDate(),n,2)}function QM(t,n){return NM(t.getHours(),n,2)}function ZM(t,n){return NM(t.getHours()%12||12,n,2)}function KM(t,n){return NM(1+zx.count(Qx(t),t),n,3)}function JM(t,n){return NM(t.getMilliseconds(),n,3)}function tE(t,n){return JM(t,n)+"000"}function nE(t,n){return NM(t.getMonth()+1,n,2)}function eE(t,n){return NM(t.getMinutes(),n,2)}function rE(t,n){return NM(t.getSeconds(),n,2)}function iE(t){var n=t.getDay();return 0===n?7:n}function oE(t,n){return NM(qx.count(Qx(t),t),n,2)}function aE(t,n){var e=t.getDay();return t=e>=4||0===e?Hx(t):Hx.ceil(t),NM(Hx.count(Qx(t),t)+(4===Qx(t).getDay()),n,2)}function uE(t){return t.getDay()}function cE(t,n){return NM(jx.count(Qx(t),t),n,2)}function lE(t,n){return NM(t.getFullYear()%100,n,2)}function sE(t,n){return NM(t.getFullYear()%1e4,n,4)}function fE(t){var n=t.getTimezoneOffset();return(n>0?"-":(n*=-1,"+"))+NM(n/60|0,"0",2)+NM(n%60,"0",2)}function hE(t,n){return NM(t.getUTCDate(),n,2)}function dE(t,n){return NM(t.getUTCHours(),n,2)}function pE(t,n){return NM(t.getUTCHours()%12||12,n,2)}function gE(t,n){return NM(1+eM.count(pM(t),t),n,3)}function vE(t,n){return NM(t.getUTCMilliseconds(),n,3)}function yE(t,n){return vE(t,n)+"000"}function mE(t,n){return NM(t.getUTCMonth()+1,n,2)}function _E(t,n){return NM(t.getUTCMinutes(),n,2)}function bE(t,n){return NM(t.getUTCSeconds(),n,2)}function wE(t){var n=t.getUTCDay();return 0===n?7:n}function xE(t,n){return NM(iM.count(pM(t),t),n,2)}function ME(t,n){var e=t.getUTCDay();return t=e>=4||0===e?cM(t):cM.ceil(t),NM(cM.count(pM(t),t)+(4===pM(t).getUTCDay()),n,2)}function EE(t){return t.getUTCDay()}function kE(t,n){return NM(oM.count(pM(t),t),n,2)}function NE(t,n){return NM(t.getUTCFullYear()%100,n,2)}function SE(t,n){return NM(t.getUTCFullYear()%1e4,n,4)}function TE(){return"+0000"}function CE(){return"%"}function AE(t){return+t}function PE(t){return Math.floor(+t/1e3)}mM=function(t){var n=t.dateTime,e=t.date,r=t.time,i=t.periods,o=t.days,a=t.shortDays,u=t.months,c=t.shortMonths,l=TM(i),s=CM(i),f=TM(o),h=CM(o),d=TM(a),p=CM(a),g=TM(u),v=CM(u),y=TM(c),m=CM(c),_={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:GM,e:GM,f:tE,H:QM,I:ZM,j:KM,L:JM,m:nE,M:eE,p:function(t){return i[+(t.getHours()>=12)]},Q:AE,s:PE,S:rE,u:iE,U:oE,V:aE,w:uE,W:cE,x:null,X:null,y:lE,Y:sE,Z:fE,"%":CE},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:hE,e:hE,f:yE,H:dE,I:pE,j:gE,L:vE,m:mE,M:_E,p:function(t){return i[+(t.getUTCHours()>=12)]},Q:AE,s:PE,S:bE,u:wE,U:xE,V:ME,w:EE,W:kE,x:null,X:null,y:NE,Y:SE,Z:TE,"%":CE},w={a:function(t,n,e){var r=d.exec(n.slice(e));return r?(t.w=p[r[0].toLowerCase()],e+r[0].length):-1},A:function(t,n,e){var r=f.exec(n.slice(e));return r?(t.w=h[r[0].toLowerCase()],e+r[0].length):-1},b:function(t,n,e){var r=y.exec(n.slice(e));return r?(t.m=m[r[0].toLowerCase()],e+r[0].length):-1},B:function(t,n,e){var r=g.exec(n.slice(e));return r?(t.m=v[r[0].toLowerCase()],e+r[0].length):-1},c:function(t,e,r){return E(t,n,e,r)},d:FM,e:FM,f:VM,H:jM,I:jM,j:qM,L:HM,m:zM,M:BM,p:function(t,n,e){var r=l.exec(n.slice(e));return r?(t.p=s[r[0].toLowerCase()],e+r[0].length):-1},Q:XM,s:$M,S:YM,u:PM,U:RM,V:IM,w:AM,W:OM,x:function(t,n,r){return E(t,e,n,r)},X:function(t,n,e){return E(t,r,n,e)},y:DM,Y:UM,Z:LM,"%":WM};function x(t,n){return function(e){var r,i,o,a=[],u=-1,c=0,l=t.length;for(e instanceof Date||(e=new Date(+e));++u53)return null;"w"in o||(o.w=1),"Z"in o?(i=(r=vM(yM(o.y))).getUTCDay(),r=i>4||0===i?oM.ceil(r):oM(r),r=eM.offset(r,7*(o.V-1)),o.y=r.getUTCFullYear(),o.m=r.getUTCMonth(),o.d=r.getUTCDate()+(o.w+6)%7):(i=(r=n(yM(o.y))).getDay(),r=i>4||0===i?jx.ceil(r):jx(r),r=zx.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?vM(yM(o.y)).getUTCDay():n(yM(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,vM(o)):n(o)}}function E(t,n,e,r){for(var i,o,a=0,u=n.length,c=e.length;a=c)return-1;if(37===(i=n.charCodeAt(a++))){if(i=n.charAt(a++),!(o=w[i in xM?n.charAt(a++):i])||(r=o(t,e,r))<0)return-1}else if(i!=e.charCodeAt(r++))return-1}return r}return _.x=x(e,_),_.X=x(r,_),_.c=x(n,_),b.x=x(e,b),b.X=x(r,b),b.c=x(n,b),{format:function(t){var n=x(t+="",_);return n.toString=function(){return t},n},parse:function(t){var n=M(t+="",gM);return n.toString=function(){return t},n},utcFormat:function(t){var n=x(t+="",b);return n.toString=function(){return t},n},utcParse:function(t){var n=M(t,vM);return n.toString=function(){return t},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"]}),_M=mM.format,mM.parse,bM=mM.utcFormat,wM=mM.utcParse;var RE="%Y-%m-%dT%H:%M:%S.%LZ";Date.prototype.toISOString||bM(RE),+new Date("2000-01-01T00:00:00.000Z")||wM(RE);var IE=1e3,OE=60*IE,UE=60*OE,DE=24*UE,LE=7*DE,zE=30*DE,FE=365*DE;function qE(t){return new Date(t)}function jE(t){return t instanceof Date?+t:+new Date(+t)}function BE(t,n,e,r,i,o,a,u,c){var l=Hw(qw,mw),s=l.invert,f=l.domain,h=c(".%L"),d=c(":%S"),p=c("%I:%M"),g=c("%I %p"),v=c("%a %d"),y=c("%b %d"),m=c("%B"),_=c("%Y"),b=[[a,1,IE],[a,5,5*IE],[a,15,15*IE],[a,30,30*IE],[o,1,OE],[o,5,5*OE],[o,15,15*OE],[o,30,30*OE],[i,1,UE],[i,3,3*UE],[i,6,6*UE],[i,12,12*UE],[r,1,DE],[r,2,2*DE],[e,1,LE],[n,1,zE],[n,3,3*zE],[t,1,FE]];function w(u){return(a(u)1)&&(t-=Math.floor(t));var n=Math.abs(t-.5);return JE.h=360*t-100,JE.s=1.5-1.5*n,JE.l=.8-.9*n,JE+""}function nk(t){var n=t.length;return function(e){return t[Math.max(0,Math.min(n-1,Math.floor(e*n)))]}}const ek=nk(VE("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725"));var rk=nk(VE("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf")),ik=nk(VE("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4")),ok=nk(VE("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"));function ak(t){var n=0,e=1,r=!1;function i(i){var o=(i-n)/(e-n);return t(r?Math.max(0,Math.min(1,o)):o)}return i.domain=function(t){return arguments.length?(n=+t[0],e=+t[1],i):[n,e]},i.clamp=function(t){return arguments.length?(r=!!t,i):r},i.interpolator=function(n){return arguments.length?(t=n,i):t},i.copy=function(){return ak(t).domain([n,e]).clamp(r)},ix(i)}var uk="http://www.w3.org/1999/xhtml";const ck={svg:"http://www.w3.org/2000/svg",xhtml:uk,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function lk(t){var n=t+="",e=n.indexOf(":");return e>=0&&"xmlns"!==(n=t.slice(0,e))&&(t=t.slice(e+1)),ck.hasOwnProperty(n)?{space:ck[n],local:t}:t}function sk(t){return function(){var n=this.ownerDocument,e=this.namespaceURI;return e===uk&&n.documentElement.namespaceURI===uk?n.createElement(t):n.createElementNS(e,t)}}function fk(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function hk(t){var n=lk(t);return(n.local?fk:sk)(n)}function dk(){}function pk(t){return null==t?dk:function(){return this.querySelector(t)}}function gk(){return[]}function vk(t){return null==t?gk:function(){return this.querySelectorAll(t)}}var yk=function(t){return function(){return this.matches(t)}};if("undefined"!=typeof document){var mk=document.documentElement;if(!mk.matches){var _k=mk.webkitMatchesSelector||mk.msMatchesSelector||mk.mozMatchesSelector||mk.oMatchesSelector;yk=function(t){return function(){return _k.call(this,t)}}}}const bk=yk;function wk(t){return new Array(t.length)}function xk(t,n){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=n}xk.prototype={constructor:xk,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,n){return this._parent.insertBefore(t,n)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};var Mk="$";function Ek(t,n,e,r,i,o){for(var a,u=0,c=n.length,l=o.length;un?1:t>=n?0:NaN}function Sk(t){return function(){this.removeAttribute(t)}}function Tk(t){return function(){this.removeAttributeNS(t.space,t.local)}}function Ck(t,n){return function(){this.setAttribute(t,n)}}function Ak(t,n){return function(){this.setAttributeNS(t.space,t.local,n)}}function Pk(t,n){return function(){var e=n.apply(this,arguments);null==e?this.removeAttribute(t):this.setAttribute(t,e)}}function Rk(t,n){return function(){var e=n.apply(this,arguments);null==e?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,e)}}function Ik(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function Ok(t){return function(){this.style.removeProperty(t)}}function Uk(t,n,e){return function(){this.style.setProperty(t,n,e)}}function Dk(t,n,e){return function(){var r=n.apply(this,arguments);null==r?this.style.removeProperty(t):this.style.setProperty(t,r,e)}}function Lk(t,n){return t.style.getPropertyValue(n)||Ik(t).getComputedStyle(t,null).getPropertyValue(n)}function zk(t){return function(){delete this[t]}}function Fk(t,n){return function(){this[t]=n}}function qk(t,n){return function(){var e=n.apply(this,arguments);null==e?delete this[t]:this[t]=e}}function jk(t){return t.trim().split(/^|\s+/)}function Bk(t){return t.classList||new Yk(t)}function Yk(t){this._node=t,this._names=jk(t.getAttribute("class")||"")}function Hk(t,n){for(var e=Bk(t),r=-1,i=n.length;++r=0&&(this._names.splice(n,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var uN={},cN=null;function lN(t,n,e){return t=sN(t,n,e),function(n){var e=n.relatedTarget;e&&(e===this||8&e.compareDocumentPosition(this))||t.call(this,n)}}function sN(t,n,e){return function(r){var i=cN;cN=r;try{t.call(this,this.__data__,n,e)}finally{cN=i}}}function fN(t){return function(){var n=this.__on;if(n){for(var e,r=0,i=-1,o=n.length;r=w&&(w=b+1);!(_=y[w])&&++w=0;)(r=i[o])&&(a&&a!==r.nextSibling&&a.parentNode.insertBefore(r,a),a=r);return this},sort:function(t){function n(n,e){return n&&e?t(n.__data__,e.__data__):!n-!e}t||(t=Nk);for(var e=this._groups,r=e.length,i=new Array(r),o=0;o1?this.each((null==n?Ok:"function"==typeof n?Dk:Uk)(t,n,null==e?"":e)):Lk(this.node(),t)},property:function(t,n){return arguments.length>1?this.each((null==n?zk:"function"==typeof n?qk:Fk)(t,n)):this.node()[t]},classed:function(t,n){var e=jk(t+"");if(arguments.length<2){for(var r=Bk(this.node()),i=-1,o=e.length;++i=0&&(n=t.slice(e+1),t=t.slice(0,e)),{type:t,name:n}}))}(t+""),a=o.length;if(!(arguments.length<2)){for(u=n?hN:fN,null==e&&(e=!1),r=0;rON)if(Math.abs(s*u-c*l)>ON&&i){var h=e-o,d=r-a,p=u*u+c*c,g=h*h+d*d,v=Math.sqrt(p),y=Math.sqrt(f),m=i*Math.tan((RN-Math.acos((p+f-g)/(2*v*y)))/2),_=m/y,b=m/v;Math.abs(_-1)>ON&&(this._+="L"+(t+_*l)+","+(n+_*s)),this._+="A"+i+","+i+",0,0,"+ +(s*h>l*d)+","+(this._x1=t+b*u)+","+(this._y1=n+b*c)}else this._+="L"+(this._x1=t)+","+(this._y1=n)},arc:function(t,n,e,r,i,o){t=+t,n=+n;var a=(e=+e)*Math.cos(r),u=e*Math.sin(r),c=t+a,l=n+u,s=1^o,f=o?r-i:i-r;if(e<0)throw new Error("negative radius: "+e);null===this._x1?this._+="M"+c+","+l:(Math.abs(this._x1-c)>ON||Math.abs(this._y1-l)>ON)&&(this._+="L"+c+","+l),e&&(f<0&&(f=f%IN+IN),f>UN?this._+="A"+e+","+e+",0,1,"+s+","+(t-a)+","+(n-u)+"A"+e+","+e+",0,1,"+s+","+(this._x1=c)+","+(this._y1=l):f>ON&&(this._+="A"+e+","+e+",0,"+ +(f>=RN)+","+s+","+(this._x1=t+e*Math.cos(i))+","+(this._y1=n+e*Math.sin(i))))},rect:function(t,n,e,r){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+n)+"h"+ +e+"v"+ +r+"h"+-e+"Z"},toString:function(){return this._}};const zN=LN;function FN(t){return function(){return t}}var qN=Math.abs,jN=Math.atan2,BN=Math.cos,YN=Math.max,HN=Math.min,VN=Math.sin,WN=Math.sqrt,XN=1e-12,$N=Math.PI,GN=$N/2,QN=2*$N;function ZN(t){return t>=1?GN:t<=-1?-GN:Math.asin(t)}function KN(t){return t.innerRadius}function JN(t){return t.outerRadius}function tS(t){return t.startAngle}function nS(t){return t.endAngle}function eS(t){return t&&t.padAngle}function rS(t,n,e,r,i,o,a){var u=t-e,c=n-r,l=(a?o:-o)/WN(u*u+c*c),s=l*c,f=-l*u,h=t+s,d=n+f,p=e+s,g=r+f,v=(h+p)/2,y=(d+g)/2,m=p-h,_=g-d,b=m*m+_*_,w=i-o,x=h*g-p*d,M=(_<0?-1:1)*WN(YN(0,w*w*b-x*x)),E=(x*_-m*M)/b,k=(-x*m-_*M)/b,N=(x*_+m*M)/b,S=(-x*m+_*M)/b,T=E-v,C=k-y,A=N-v,P=S-y;return T*T+C*C>A*A+P*P&&(E=N,k=S),{cx:E,cy:k,x01:-s,y01:-f,x11:E*(i/w-1),y11:k*(i/w-1)}}function iS(){var t=KN,n=JN,e=FN(0),r=null,i=tS,o=nS,a=eS,u=null;function c(){var c,l,s,f=+t.apply(this,arguments),h=+n.apply(this,arguments),d=i.apply(this,arguments)-GN,p=o.apply(this,arguments)-GN,g=qN(p-d),v=p>d;if(u||(u=c=zN()),hXN)if(g>QN-XN)u.moveTo(h*BN(d),h*VN(d)),u.arc(0,0,h,d,p,!v),f>XN&&(u.moveTo(f*BN(p),f*VN(p)),u.arc(0,0,f,p,d,v));else{var y,m,_=d,b=p,w=d,x=p,M=g,E=g,k=a.apply(this,arguments)/2,N=k>XN&&(r?+r.apply(this,arguments):WN(f*f+h*h)),S=HN(qN(h-f)/2,+e.apply(this,arguments)),T=S,C=S;if(N>XN){var A=ZN(N/f*VN(k)),P=ZN(N/h*VN(k));(M-=2*A)>XN?(w+=A*=v?1:-1,x-=A):(M=0,w=x=(d+p)/2),(E-=2*P)>XN?(_+=P*=v?1:-1,b-=P):(E=0,_=b=(d+p)/2)}var R=h*BN(_),I=h*VN(_),O=f*BN(x),U=f*VN(x);if(S>XN){var D=h*BN(b),L=h*VN(b),z=f*BN(w),F=f*VN(w);if(g<$N){var q=M>XN?function(t,n,e,r,i,o,a,u){var c=e-t,l=r-n,s=a-i,f=u-o,h=(s*(n-o)-f*(t-i))/(f*c-s*l);return[t+h*c,n+h*l]}(R,I,z,F,D,L,O,U):[O,U],j=R-q[0],B=I-q[1],Y=D-q[0],H=L-q[1],V=1/VN(((s=(j*Y+B*H)/(WN(j*j+B*B)*WN(Y*Y+H*H)))>1?0:s<-1?$N:Math.acos(s))/2),W=WN(q[0]*q[0]+q[1]*q[1]);T=HN(S,(f-W)/(V-1)),C=HN(S,(h-W)/(V+1))}}E>XN?C>XN?(y=rS(z,F,R,I,h,C,v),m=rS(D,L,O,U,h,C,v),u.moveTo(y.cx+y.x01,y.cy+y.y01),CXN&&M>XN?T>XN?(y=rS(O,U,D,L,f,-T,v),m=rS(R,I,z,F,f,-T,v),u.lineTo(y.cx+y.x01,y.cy+y.y01),T=s;--f)u.point(v[f],y[f]);u.lineEnd(),u.areaEnd()}g&&(v[l]=+t(h,l,c),y[l]=+e(h,l,c),u.point(n?+n(h,l,c):v[l],r?+r(h,l,c):y[l]))}if(d)return u=null,d+""||null}function l(){return lS().defined(i).curve(a).context(o)}return c.x=function(e){return arguments.length?(t="function"==typeof e?e:FN(+e),n=null,c):t},c.x0=function(n){return arguments.length?(t="function"==typeof n?n:FN(+n),c):t},c.x1=function(t){return arguments.length?(n=null==t?null:"function"==typeof t?t:FN(+t),c):n},c.y=function(t){return arguments.length?(e="function"==typeof t?t:FN(+t),r=null,c):e},c.y0=function(t){return arguments.length?(e="function"==typeof t?t:FN(+t),c):e},c.y1=function(t){return arguments.length?(r=null==t?null:"function"==typeof t?t:FN(+t),c):r},c.lineX0=c.lineY0=function(){return l().x(t).y(e)},c.lineY1=function(){return l().x(t).y(r)},c.lineX1=function(){return l().x(n).y(e)},c.defined=function(t){return arguments.length?(i="function"==typeof t?t:FN(!!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 fS(t,n){return nt?1:n>=t?0:NaN}function hS(t){return t}function dS(){var t=hS,n=fS,e=null,r=FN(0),i=FN(QN),o=FN(0);function a(a){var u,c,l,s,f,h=a.length,d=0,p=new Array(h),g=new Array(h),v=+r.apply(this,arguments),y=Math.min(QN,Math.max(-QN,i.apply(this,arguments)-v)),m=Math.min(Math.abs(y)/h,o.apply(this,arguments)),_=m*(y<0?-1:1);for(u=0;u0&&(d+=f);for(null!=n?p.sort((function(t,e){return n(g[t],g[e])})):null!=e&&p.sort((function(t,n){return e(a[t],a[n])})),u=0,l=d?(y-h*_)/d:0;u0?f*l:0)+_,g[c]={data:a[c],index:u,value:f,startAngle:v,endAngle:s,padAngle:m};return g}return a.value=function(n){return arguments.length?(t="function"==typeof n?n:FN(+n),a):t},a.sortValues=function(t){return arguments.length?(n=t,e=null,a):n},a.sort=function(t){return arguments.length?(e=t,n=null,a):e},a.startAngle=function(t){return arguments.length?(r="function"==typeof t?t:FN(+t),a):r},a.endAngle=function(t){return arguments.length?(i="function"==typeof t?t:FN(+t),a):i},a.padAngle=function(t){return arguments.length?(o="function"==typeof t?t:FN(+t),a):o},a}oS.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,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;default:this._context.lineTo(t,n)}}};var pS=vS(aS);function gS(t){this._curve=t}function vS(t){function n(n){return new gS(t(n))}return n._curve=t,n}function yS(t){var n=t.curve;return t.angle=t.x,delete t.x,t.radius=t.y,delete t.y,t.curve=function(t){return arguments.length?n(vS(t)):n()._curve},t}function mS(){return yS(lS().curve(pS))}function _S(){var t=sS().curve(pS),n=t.curve,e=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 yS(e())},delete t.lineX0,t.lineEndAngle=function(){return yS(r())},delete t.lineX1,t.lineInnerRadius=function(){return yS(i())},delete t.lineY0,t.lineOuterRadius=function(){return yS(o())},delete t.lineY1,t.curve=function(t){return arguments.length?n(vS(t)):n()._curve},t}function bS(t,n){return[(n=+n)*Math.cos(t-=Math.PI/2),n*Math.sin(t)]}gS.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(t,n){this._curve.point(n*Math.sin(t),n*-Math.cos(t))}};var wS=Array.prototype.slice;function xS(t){return t.source}function MS(t){return t.target}function ES(t){var n=xS,e=MS,r=uS,i=cS,o=null;function a(){var a,u=wS.call(arguments),c=n.apply(this,u),l=e.apply(this,u);if(o||(o=a=zN()),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?(n=t,a):n},a.target=function(t){return arguments.length?(e=t,a):e},a.x=function(t){return arguments.length?(r="function"==typeof t?t:FN(+t),a):r},a.y=function(t){return arguments.length?(i="function"==typeof t?t:FN(+t),a):i},a.context=function(t){return arguments.length?(o=null==t?null:t,a):o},a}function kS(t,n,e,r,i){t.moveTo(n,e),t.bezierCurveTo(n=(n+r)/2,e,n,i,r,i)}function NS(t,n,e,r,i){t.moveTo(n,e),t.bezierCurveTo(n,e=(e+i)/2,r,e,r,i)}function SS(t,n,e,r,i){var o=bS(n,e),a=bS(n,e=(e+i)/2),u=bS(r,e),c=bS(r,i);t.moveTo(o[0],o[1]),t.bezierCurveTo(a[0],a[1],u[0],u[1],c[0],c[1])}function TS(){return ES(kS)}function CS(){return ES(NS)}function AS(){var t=ES(SS);return t.angle=t.x,delete t.x,t.radius=t.y,delete t.y,t}const PS={draw:function(t,n){var e=Math.sqrt(n/$N);t.moveTo(e,0),t.arc(0,0,e,0,QN)}},RS={draw:function(t,n){var e=Math.sqrt(n/5)/2;t.moveTo(-3*e,-e),t.lineTo(-e,-e),t.lineTo(-e,-3*e),t.lineTo(e,-3*e),t.lineTo(e,-e),t.lineTo(3*e,-e),t.lineTo(3*e,e),t.lineTo(e,e),t.lineTo(e,3*e),t.lineTo(-e,3*e),t.lineTo(-e,e),t.lineTo(-3*e,e),t.closePath()}};var IS=Math.sqrt(1/3),OS=2*IS;const US={draw:function(t,n){var e=Math.sqrt(n/OS),r=e*IS;t.moveTo(0,-e),t.lineTo(r,0),t.lineTo(0,e),t.lineTo(-r,0),t.closePath()}};var DS=Math.sin($N/10)/Math.sin(7*$N/10),LS=Math.sin(QN/10)*DS,zS=-Math.cos(QN/10)*DS;const FS={draw:function(t,n){var e=Math.sqrt(.8908130915292852*n),r=LS*e,i=zS*e;t.moveTo(0,-e),t.lineTo(r,i);for(var o=1;o<5;++o){var a=QN*o/5,u=Math.cos(a),c=Math.sin(a);t.lineTo(c*e,-u*e),t.lineTo(u*r-c*i,c*r+u*i)}t.closePath()}},qS={draw:function(t,n){var e=Math.sqrt(n),r=-e/2;t.rect(r,r,e,e)}};var jS=Math.sqrt(3);const BS={draw:function(t,n){var e=-Math.sqrt(n/(3*jS));t.moveTo(0,2*e),t.lineTo(-jS*e,-e),t.lineTo(jS*e,-e),t.closePath()}};var YS=-.5,HS=Math.sqrt(3)/2,VS=1/Math.sqrt(12),WS=3*(VS/2+1);const XS={draw:function(t,n){var e=Math.sqrt(n/WS),r=e/2,i=e*VS,o=r,a=e*VS+e,u=-o,c=a;t.moveTo(r,i),t.lineTo(o,a),t.lineTo(u,c),t.lineTo(YS*r-HS*i,HS*r+YS*i),t.lineTo(YS*o-HS*a,HS*o+YS*a),t.lineTo(YS*u-HS*c,HS*u+YS*c),t.lineTo(YS*r+HS*i,YS*i-HS*r),t.lineTo(YS*o+HS*a,YS*a-HS*o),t.lineTo(YS*u+HS*c,YS*c-HS*u),t.closePath()}};var $S=[PS,RS,US,qS,FS,BS,XS];function GS(){var t=FN(PS),n=FN(64),e=null;function r(){var r;if(e||(e=r=zN()),t.apply(this,arguments).draw(e,+n.apply(this,arguments)),r)return e=null,r+""||null}return r.type=function(n){return arguments.length?(t="function"==typeof n?n:FN(n),r):t},r.size=function(t){return arguments.length?(n="function"==typeof t?t:FN(+t),r):n},r.context=function(t){return arguments.length?(e=null==t?null:t,r):e},r}function QS(){}function ZS(t,n,e){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+n)/6,(t._y0+4*t._y1+e)/6)}function KS(t){this._context=t}function JS(t){return new KS(t)}function tT(t){this._context=t}function nT(t){return new tT(t)}function eT(t){this._context=t}function rT(t){return new eT(t)}function iT(t,n){this._basis=new KS(t),this._beta=n}KS.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:ZS(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,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);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:ZS(this,t,n)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=n}},tT.prototype={areaStart:QS,areaEnd:QS,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,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._x2=t,this._y2=n;break;case 1:this._point=2,this._x3=t,this._y3=n;break;case 2:this._point=3,this._x4=t,this._y4=n,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+n)/6);break;default:ZS(this,t,n)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=n}},eT.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,n){switch(t=+t,n=+n,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var e=(this._x0+4*this._x1+t)/6,r=(this._y0+4*this._y1+n)/6;this._line?this._context.lineTo(e,r):this._context.moveTo(e,r);break;case 3:this._point=4;default:ZS(this,t,n)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=n}},iT.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var t=this._x,n=this._y,e=t.length-1;if(e>0)for(var r,i=t[0],o=n[0],a=t[e]-i,u=n[e]-o,c=-1;++c<=e;)r=c/e,this._basis.point(this._beta*t[c]+(1-this._beta)*(i+r*a),this._beta*n[c]+(1-this._beta)*(o+r*u));this._x=this._y=null,this._basis.lineEnd()},point:function(t,n){this._x.push(+t),this._y.push(+n)}};const oT=function t(n){function e(t){return 1===n?new KS(t):new iT(t,n)}return e.beta=function(n){return t(+n)},e}(.85);function aT(t,n,e){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-n),t._y2+t._k*(t._y1-e),t._x2,t._y2)}function uT(t,n){this._context=t,this._k=(1-n)/6}uT.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:aT(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2,this._x1=t,this._y1=n;break;case 2:this._point=3;default:aT(this,t,n)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}};const cT=function t(n){function e(t){return new uT(t,n)}return e.tension=function(n){return t(+n)},e}(0);function lT(t,n){this._context=t,this._k=(1-n)/6}lT.prototype={areaStart:QS,areaEnd:QS,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,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._x3=t,this._y3=n;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=n);break;case 2:this._point=3,this._x5=t,this._y5=n;break;default:aT(this,t,n)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}};const sT=function t(n){function e(t){return new lT(t,n)}return e.tension=function(n){return t(+n)},e}(0);function fT(t,n){this._context=t,this._k=(1-n)/6}fT.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,n){switch(t=+t,n=+n,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:aT(this,t,n)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}};const hT=function t(n){function e(t){return new fT(t,n)}return e.tension=function(n){return t(+n)},e}(0);function dT(t,n,e){var r=t._x1,i=t._y1,o=t._x2,a=t._y2;if(t._l01_a>XN){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>XN){var l=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,s=3*t._l23_a*(t._l23_a+t._l12_a);o=(o*l+t._x1*t._l23_2a-n*t._l12_2a)/s,a=(a*l+t._y1*t._l23_2a-e*t._l12_2a)/s}t._context.bezierCurveTo(r,i,o,a,t._x2,t._y2)}function pT(t,n){this._context=t,this._alpha=n}pT.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,n){if(t=+t,n=+n,this._point){var e=this._x2-t,r=this._y2-n;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(e*e+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;break;case 2:this._point=3;default:dT(this,t,n)}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=n}};const gT=function t(n){function e(t){return n?new pT(t,n):new uT(t,0)}return e.alpha=function(n){return t(+n)},e}(.5);function vT(t,n){this._context=t,this._alpha=n}vT.prototype={areaStart:QS,areaEnd:QS,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,n){if(t=+t,n=+n,this._point){var e=this._x2-t,r=this._y2-n;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(e*e+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=t,this._y3=n;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=n);break;case 2:this._point=3,this._x5=t,this._y5=n;break;default:dT(this,t,n)}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=n}};const yT=function t(n){function e(t){return n?new vT(t,n):new lT(t,0)}return e.alpha=function(n){return t(+n)},e}(.5);function mT(t,n){this._context=t,this._alpha=n}mT.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,n){if(t=+t,n=+n,this._point){var e=this._x2-t,r=this._y2-n;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(e*e+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:dT(this,t,n)}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=n}};const _T=function t(n){function e(t){return n?new mT(t,n):new fT(t,0)}return e.alpha=function(n){return t(+n)},e}(.5);function bT(t){this._context=t}function wT(t){return new bT(t)}function xT(t){return t<0?-1:1}function MT(t,n,e){var r=t._x1-t._x0,i=n-t._x1,o=(t._y1-t._y0)/(r||i<0&&-0),a=(e-t._y1)/(i||r<0&&-0),u=(o*i+a*r)/(r+i);return(xT(o)+xT(a))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs(u))||0}function ET(t,n){var e=t._x1-t._x0;return e?(3*(t._y1-t._y0)/e-n)/2:n}function kT(t,n,e){var r=t._x0,i=t._y0,o=t._x1,a=t._y1,u=(o-r)/3;t._context.bezierCurveTo(r+u,i+u*n,o-u,a-u*e,o,a)}function NT(t){this._context=t}function ST(t){this._context=new TT(t)}function TT(t){this._context=t}function CT(t){return new NT(t)}function AT(t){return new ST(t)}function PT(t){this._context=t}function RT(t){var n,e,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],n=1;n=0;--n)i[n]=(a[n]-i[n+1])/o[n];for(o[r-1]=(t[r]+i[r-1])/2,n=0;n1)for(var e,r,i,o=1,a=t[n[0]],u=a.length;o=0;)e[n]=n;return e}function qT(t,n){return t[n]}function jT(){var t=FN([]),n=FT,e=zT,r=qT;function i(i){var o,a,u=t.apply(this,arguments),c=i.length,l=u.length,s=new Array(l);for(o=0;o0){for(var e,r,i,o=0,a=t[0].length;o1)for(var e,r,i,o,a,u,c=0,l=t[n[0]].length;c=0?(r[0]=o,r[1]=o+=i):i<0?(r[1]=a,r[0]=a+=i):r[0]=o}function HT(t,n){if((e=t.length)>0){for(var e,r=0,i=t[n[0]],o=i.length;r0&&(r=(e=t[n[0]]).length)>0){for(var e,r,i,o=0,a=1;a=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,n),this._context.lineTo(t,n);else{var e=this._x*(1-this._t)+t*this._t;this._context.lineTo(e,this._y),this._context.lineTo(e,n)}}this._x=t,this._y=n}};var ZT=new Date,KT=new Date;function JT(t,n,e,r){function i(n){return t(n=new Date(+n)),n}return i.floor=i,i.ceil=function(e){return t(e=new Date(e-1)),n(e,1),t(e),e},i.round=function(t){var n=i(t),e=i.ceil(t);return t-n0))return u;do{u.push(a=new Date(+e)),n(e,o),t(e)}while(a=n)for(;t(n),!e(n);)n.setTime(n-1)}),(function(t,r){if(t>=t)if(r<0)for(;++r<=0;)for(;n(t,-1),!e(t););else for(;--r>=0;)for(;n(t,1),!e(t););}))},e&&(i.count=function(n,r){return ZT.setTime(+n),KT.setTime(+r),t(ZT),t(KT),Math.floor(e(ZT,KT))},i.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?i.filter(r?function(n){return r(n)%t==0}:function(n){return i.count(0,n)%t==0}):i:null}),i}var tC=JT((function(){}),(function(t,n){t.setTime(+t+n)}),(function(t,n){return n-t}));tC.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?JT((function(n){n.setTime(Math.floor(n/t)*t)}),(function(n,e){n.setTime(+n+e*t)}),(function(n,e){return(e-n)/t})):tC:null};const nC=tC;var eC=tC.range,rC=1e3,iC=6e4,oC=36e5,aC=864e5,uC=6048e5,cC=JT((function(t){t.setTime(Math.floor(t/rC)*rC)}),(function(t,n){t.setTime(+t+n*rC)}),(function(t,n){return(n-t)/rC}),(function(t){return t.getUTCSeconds()}));const lC=cC;var sC=cC.range,fC=JT((function(t){t.setTime(Math.floor(t/iC)*iC)}),(function(t,n){t.setTime(+t+n*iC)}),(function(t,n){return(n-t)/iC}),(function(t){return t.getMinutes()}));const hC=fC;var dC=fC.range,pC=JT((function(t){var n=t.getTimezoneOffset()*iC%oC;n<0&&(n+=oC),t.setTime(Math.floor((+t-n)/oC)*oC+n)}),(function(t,n){t.setTime(+t+n*oC)}),(function(t,n){return(n-t)/oC}),(function(t){return t.getHours()}));const gC=pC;var vC=pC.range,yC=JT((function(t){t.setHours(0,0,0,0)}),(function(t,n){t.setDate(t.getDate()+n)}),(function(t,n){return(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*iC)/aC}),(function(t){return t.getDate()-1}));const mC=yC;var _C=yC.range;function bC(t){return JT((function(n){n.setDate(n.getDate()-(n.getDay()+7-t)%7),n.setHours(0,0,0,0)}),(function(t,n){t.setDate(t.getDate()+7*n)}),(function(t,n){return(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*iC)/uC}))}var wC=bC(0),xC=bC(1),MC=bC(2),EC=bC(3),kC=bC(4),NC=bC(5),SC=bC(6),TC=wC.range,CC=xC.range,AC=MC.range,PC=EC.range,RC=kC.range,IC=NC.range,OC=SC.range,UC=JT((function(t){t.setDate(1),t.setHours(0,0,0,0)}),(function(t,n){t.setMonth(t.getMonth()+n)}),(function(t,n){return n.getMonth()-t.getMonth()+12*(n.getFullYear()-t.getFullYear())}),(function(t){return t.getMonth()}));const DC=UC;var LC=UC.range,zC=JT((function(t){t.setMonth(0,1),t.setHours(0,0,0,0)}),(function(t,n){t.setFullYear(t.getFullYear()+n)}),(function(t,n){return n.getFullYear()-t.getFullYear()}),(function(t){return t.getFullYear()}));zC.every=function(t){return isFinite(t=Math.floor(t))&&t>0?JT((function(n){n.setFullYear(Math.floor(n.getFullYear()/t)*t),n.setMonth(0,1),n.setHours(0,0,0,0)}),(function(n,e){n.setFullYear(n.getFullYear()+e*t)})):null};const FC=zC;var qC=zC.range,jC=JT((function(t){t.setUTCSeconds(0,0)}),(function(t,n){t.setTime(+t+n*iC)}),(function(t,n){return(n-t)/iC}),(function(t){return t.getUTCMinutes()}));const BC=jC;var YC=jC.range,HC=JT((function(t){t.setUTCMinutes(0,0,0)}),(function(t,n){t.setTime(+t+n*oC)}),(function(t,n){return(n-t)/oC}),(function(t){return t.getUTCHours()}));const VC=HC;var WC=HC.range,XC=JT((function(t){t.setUTCHours(0,0,0,0)}),(function(t,n){t.setUTCDate(t.getUTCDate()+n)}),(function(t,n){return(n-t)/aC}),(function(t){return t.getUTCDate()-1}));const $C=XC;var GC=XC.range;function QC(t){return JT((function(n){n.setUTCDate(n.getUTCDate()-(n.getUTCDay()+7-t)%7),n.setUTCHours(0,0,0,0)}),(function(t,n){t.setUTCDate(t.getUTCDate()+7*n)}),(function(t,n){return(n-t)/uC}))}var ZC=QC(0),KC=QC(1),JC=QC(2),tA=QC(3),nA=QC(4),eA=QC(5),rA=QC(6),iA=ZC.range,oA=KC.range,aA=JC.range,uA=tA.range,cA=nA.range,lA=eA.range,sA=rA.range,fA=JT((function(t){t.setUTCDate(1),t.setUTCHours(0,0,0,0)}),(function(t,n){t.setUTCMonth(t.getUTCMonth()+n)}),(function(t,n){return n.getUTCMonth()-t.getUTCMonth()+12*(n.getUTCFullYear()-t.getUTCFullYear())}),(function(t){return t.getUTCMonth()}));const hA=fA;var dA=fA.range,pA=JT((function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),(function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n)}),(function(t,n){return n.getUTCFullYear()-t.getUTCFullYear()}),(function(t){return t.getUTCFullYear()}));pA.every=function(t){return isFinite(t=Math.floor(t))&&t>0?JT((function(n){n.setUTCFullYear(Math.floor(n.getUTCFullYear()/t)*t),n.setUTCMonth(0,1),n.setUTCHours(0,0,0,0)}),(function(n,e){n.setUTCFullYear(n.getUTCFullYear()+e*t)})):null};const gA=pA;var vA=pA.range,yA=new Date,mA=new Date;function _A(t,n,e,r){function i(n){return t(n=new Date(+n)),n}return i.floor=i,i.ceil=function(e){return t(e=new Date(e-1)),n(e,1),t(e),e},i.round=function(t){var n=i(t),e=i.ceil(t);return t-n0))return u;do{u.push(a=new Date(+e)),n(e,o),t(e)}while(a=n)for(;t(n),!e(n);)n.setTime(n-1)}),(function(t,r){if(t>=t)if(r<0)for(;++r<=0;)for(;n(t,-1),!e(t););else for(;--r>=0;)for(;n(t,1),!e(t););}))},e&&(i.count=function(n,r){return yA.setTime(+n),mA.setTime(+r),t(yA),t(mA),Math.floor(e(yA,mA))},i.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?i.filter(r?function(n){return r(n)%t==0}:function(n){return i.count(0,n)%t==0}):i:null}),i}var bA=_A((function(){}),(function(t,n){t.setTime(+t+n)}),(function(t,n){return n-t}));bA.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?_A((function(n){n.setTime(Math.floor(n/t)*t)}),(function(n,e){n.setTime(+n+e*t)}),(function(n,e){return(e-n)/t})):bA:null},bA.range;var wA=1e3,xA=6e4,MA=36e5,EA=864e5,kA=6048e5,NA=_A((function(t){t.setTime(Math.floor(t/wA)*wA)}),(function(t,n){t.setTime(+t+n*wA)}),(function(t,n){return(n-t)/wA}),(function(t){return t.getUTCSeconds()}));NA.range;var SA=_A((function(t){t.setTime(Math.floor(t/xA)*xA)}),(function(t,n){t.setTime(+t+n*xA)}),(function(t,n){return(n-t)/xA}),(function(t){return t.getMinutes()}));SA.range;var TA=_A((function(t){var n=t.getTimezoneOffset()*xA%MA;n<0&&(n+=MA),t.setTime(Math.floor((+t-n)/MA)*MA+n)}),(function(t,n){t.setTime(+t+n*MA)}),(function(t,n){return(n-t)/MA}),(function(t){return t.getHours()}));TA.range;var CA=_A((function(t){t.setHours(0,0,0,0)}),(function(t,n){t.setDate(t.getDate()+n)}),(function(t,n){return(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*xA)/EA}),(function(t){return t.getDate()-1}));const AA=CA;function PA(t){return _A((function(n){n.setDate(n.getDate()-(n.getDay()+7-t)%7),n.setHours(0,0,0,0)}),(function(t,n){t.setDate(t.getDate()+7*n)}),(function(t,n){return(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*xA)/kA}))}CA.range;var RA=PA(0),IA=PA(1),OA=PA(2),UA=PA(3),DA=PA(4),LA=PA(5),zA=PA(6),FA=(RA.range,IA.range,OA.range,UA.range,DA.range,LA.range,zA.range,_A((function(t){t.setDate(1),t.setHours(0,0,0,0)}),(function(t,n){t.setMonth(t.getMonth()+n)}),(function(t,n){return n.getMonth()-t.getMonth()+12*(n.getFullYear()-t.getFullYear())}),(function(t){return t.getMonth()})));FA.range;var qA=_A((function(t){t.setMonth(0,1),t.setHours(0,0,0,0)}),(function(t,n){t.setFullYear(t.getFullYear()+n)}),(function(t,n){return n.getFullYear()-t.getFullYear()}),(function(t){return t.getFullYear()}));qA.every=function(t){return isFinite(t=Math.floor(t))&&t>0?_A((function(n){n.setFullYear(Math.floor(n.getFullYear()/t)*t),n.setMonth(0,1),n.setHours(0,0,0,0)}),(function(n,e){n.setFullYear(n.getFullYear()+e*t)})):null};const jA=qA;qA.range;var BA=_A((function(t){t.setUTCSeconds(0,0)}),(function(t,n){t.setTime(+t+n*xA)}),(function(t,n){return(n-t)/xA}),(function(t){return t.getUTCMinutes()}));BA.range;var YA=_A((function(t){t.setUTCMinutes(0,0,0)}),(function(t,n){t.setTime(+t+n*MA)}),(function(t,n){return(n-t)/MA}),(function(t){return t.getUTCHours()}));YA.range;var HA=_A((function(t){t.setUTCHours(0,0,0,0)}),(function(t,n){t.setUTCDate(t.getUTCDate()+n)}),(function(t,n){return(n-t)/EA}),(function(t){return t.getUTCDate()-1}));const VA=HA;function WA(t){return _A((function(n){n.setUTCDate(n.getUTCDate()-(n.getUTCDay()+7-t)%7),n.setUTCHours(0,0,0,0)}),(function(t,n){t.setUTCDate(t.getUTCDate()+7*n)}),(function(t,n){return(n-t)/kA}))}HA.range;var XA=WA(0),$A=WA(1),GA=WA(2),QA=WA(3),ZA=WA(4),KA=WA(5),JA=WA(6),tP=(XA.range,$A.range,GA.range,QA.range,ZA.range,KA.range,JA.range,_A((function(t){t.setUTCDate(1),t.setUTCHours(0,0,0,0)}),(function(t,n){t.setUTCMonth(t.getUTCMonth()+n)}),(function(t,n){return n.getUTCMonth()-t.getUTCMonth()+12*(n.getUTCFullYear()-t.getUTCFullYear())}),(function(t){return t.getUTCMonth()})));tP.range;var nP=_A((function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),(function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n)}),(function(t,n){return n.getUTCFullYear()-t.getUTCFullYear()}),(function(t){return t.getUTCFullYear()}));nP.every=function(t){return isFinite(t=Math.floor(t))&&t>0?_A((function(n){n.setUTCFullYear(Math.floor(n.getUTCFullYear()/t)*t),n.setUTCMonth(0,1),n.setUTCHours(0,0,0,0)}),(function(n,e){n.setUTCFullYear(n.getUTCFullYear()+e*t)})):null};const eP=nP;function rP(t){if(0<=t.y&&t.y<100){var n=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return n.setFullYear(t.y),n}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function iP(t){if(0<=t.y&&t.y<100){var n=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return n.setUTCFullYear(t.y),n}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function oP(t){return{y:t,m:0,d:1,H:0,M:0,S:0,L:0}}function aP(t){var n=t.dateTime,e=t.date,r=t.time,i=t.periods,o=t.days,a=t.shortDays,u=t.months,c=t.shortMonths,l=mP(i),s=_P(i),f=mP(o),h=_P(o),d=mP(a),p=_P(a),g=mP(u),v=_P(u),y=mP(c),m=_P(c),_={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:FP,e:FP,f:HP,H:qP,I:jP,j:BP,L:YP,m:VP,M:WP,p:function(t){return i[+(t.getHours()>=12)]},Q:bR,s:wR,S:XP,u:$P,U:GP,V:QP,w:ZP,W:KP,x:null,X:null,y:JP,Y:tR,Z:nR,"%":_R},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:eR,e:eR,f:uR,H:rR,I:iR,j:oR,L:aR,m:cR,M:lR,p:function(t){return i[+(t.getUTCHours()>=12)]},Q:bR,s:wR,S:sR,u:fR,U:hR,V:dR,w:pR,W:gR,x:null,X:null,y:vR,Y:yR,Z:mR,"%":_R},w={a:function(t,n,e){var r=d.exec(n.slice(e));return r?(t.w=p[r[0].toLowerCase()],e+r[0].length):-1},A:function(t,n,e){var r=f.exec(n.slice(e));return r?(t.w=h[r[0].toLowerCase()],e+r[0].length):-1},b:function(t,n,e){var r=y.exec(n.slice(e));return r?(t.m=m[r[0].toLowerCase()],e+r[0].length):-1},B:function(t,n,e){var r=g.exec(n.slice(e));return r?(t.m=v[r[0].toLowerCase()],e+r[0].length):-1},c:function(t,e,r){return E(t,n,e,r)},d:CP,e:CP,f:UP,H:PP,I:PP,j:AP,L:OP,m:TP,M:RP,p:function(t,n,e){var r=l.exec(n.slice(e));return r?(t.p=s[r[0].toLowerCase()],e+r[0].length):-1},Q:LP,s:zP,S:IP,u:wP,U:xP,V:MP,w:bP,W:EP,x:function(t,n,r){return E(t,e,n,r)},X:function(t,n,e){return E(t,r,n,e)},y:NP,Y:kP,Z:SP,"%":DP};function x(t,n){return function(e){var r,i,o,a=[],u=-1,c=0,l=t.length;for(e instanceof Date||(e=new Date(+e));++u53)return null;"w"in o||(o.w=1),"Z"in o?(i=(r=iP(oP(o.y))).getUTCDay(),r=i>4||0===i?$A.ceil(r):$A(r),r=VA.offset(r,7*(o.V-1)),o.y=r.getUTCFullYear(),o.m=r.getUTCMonth(),o.d=r.getUTCDate()+(o.w+6)%7):(i=(r=n(oP(o.y))).getDay(),r=i>4||0===i?IA.ceil(r):IA(r),r=AA.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?iP(oP(o.y)).getUTCDay():n(oP(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,iP(o)):n(o)}}function E(t,n,e,r){for(var i,o,a=0,u=n.length,c=e.length;a=c)return-1;if(37===(i=n.charCodeAt(a++))){if(i=n.charAt(a++),!(o=w[i in hP?n.charAt(a++):i])||(r=o(t,e,r))<0)return-1}else if(i!=e.charCodeAt(r++))return-1}return r}return _.x=x(e,_),_.X=x(r,_),_.c=x(n,_),b.x=x(e,b),b.X=x(r,b),b.c=x(n,b),{format:function(t){var n=x(t+="",_);return n.toString=function(){return t},n},parse:function(t){var n=M(t+="",rP);return n.toString=function(){return t},n},utcFormat:function(t){var n=x(t+="",b);return n.toString=function(){return t},n},utcParse:function(t){var n=M(t,iP);return n.toString=function(){return t},n}}}nP.range;var uP,cP,lP,sP,fP,hP={"-":"",_:" ",0:"0"},dP=/^\s*\d+/,pP=/^%/,gP=/[\\^$*+?|[\]().{}]/g;function vP(t,n,e){var r=t<0?"-":"",i=(r?-t:t)+"",o=i.length;return r+(o68?1900:2e3),e+r[0].length):-1}function SP(t,n,e){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(n.slice(e,e+6));return r?(t.Z=r[1]?0:-(r[2]+(r[3]||"00")),e+r[0].length):-1}function TP(t,n,e){var r=dP.exec(n.slice(e,e+2));return r?(t.m=r[0]-1,e+r[0].length):-1}function CP(t,n,e){var r=dP.exec(n.slice(e,e+2));return r?(t.d=+r[0],e+r[0].length):-1}function AP(t,n,e){var r=dP.exec(n.slice(e,e+3));return r?(t.m=0,t.d=+r[0],e+r[0].length):-1}function PP(t,n,e){var r=dP.exec(n.slice(e,e+2));return r?(t.H=+r[0],e+r[0].length):-1}function RP(t,n,e){var r=dP.exec(n.slice(e,e+2));return r?(t.M=+r[0],e+r[0].length):-1}function IP(t,n,e){var r=dP.exec(n.slice(e,e+2));return r?(t.S=+r[0],e+r[0].length):-1}function OP(t,n,e){var r=dP.exec(n.slice(e,e+3));return r?(t.L=+r[0],e+r[0].length):-1}function UP(t,n,e){var r=dP.exec(n.slice(e,e+6));return r?(t.L=Math.floor(r[0]/1e3),e+r[0].length):-1}function DP(t,n,e){var r=pP.exec(n.slice(e,e+1));return r?e+r[0].length:-1}function LP(t,n,e){var r=dP.exec(n.slice(e));return r?(t.Q=+r[0],e+r[0].length):-1}function zP(t,n,e){var r=dP.exec(n.slice(e));return r?(t.Q=1e3*+r[0],e+r[0].length):-1}function FP(t,n){return vP(t.getDate(),n,2)}function qP(t,n){return vP(t.getHours(),n,2)}function jP(t,n){return vP(t.getHours()%12||12,n,2)}function BP(t,n){return vP(1+AA.count(jA(t),t),n,3)}function YP(t,n){return vP(t.getMilliseconds(),n,3)}function HP(t,n){return YP(t,n)+"000"}function VP(t,n){return vP(t.getMonth()+1,n,2)}function WP(t,n){return vP(t.getMinutes(),n,2)}function XP(t,n){return vP(t.getSeconds(),n,2)}function $P(t){var n=t.getDay();return 0===n?7:n}function GP(t,n){return vP(RA.count(jA(t),t),n,2)}function QP(t,n){var e=t.getDay();return t=e>=4||0===e?DA(t):DA.ceil(t),vP(DA.count(jA(t),t)+(4===jA(t).getDay()),n,2)}function ZP(t){return t.getDay()}function KP(t,n){return vP(IA.count(jA(t),t),n,2)}function JP(t,n){return vP(t.getFullYear()%100,n,2)}function tR(t,n){return vP(t.getFullYear()%1e4,n,4)}function nR(t){var n=t.getTimezoneOffset();return(n>0?"-":(n*=-1,"+"))+vP(n/60|0,"0",2)+vP(n%60,"0",2)}function eR(t,n){return vP(t.getUTCDate(),n,2)}function rR(t,n){return vP(t.getUTCHours(),n,2)}function iR(t,n){return vP(t.getUTCHours()%12||12,n,2)}function oR(t,n){return vP(1+VA.count(eP(t),t),n,3)}function aR(t,n){return vP(t.getUTCMilliseconds(),n,3)}function uR(t,n){return aR(t,n)+"000"}function cR(t,n){return vP(t.getUTCMonth()+1,n,2)}function lR(t,n){return vP(t.getUTCMinutes(),n,2)}function sR(t,n){return vP(t.getUTCSeconds(),n,2)}function fR(t){var n=t.getUTCDay();return 0===n?7:n}function hR(t,n){return vP(XA.count(eP(t),t),n,2)}function dR(t,n){var e=t.getUTCDay();return t=e>=4||0===e?ZA(t):ZA.ceil(t),vP(ZA.count(eP(t),t)+(4===eP(t).getUTCDay()),n,2)}function pR(t){return t.getUTCDay()}function gR(t,n){return vP($A.count(eP(t),t),n,2)}function vR(t,n){return vP(t.getUTCFullYear()%100,n,2)}function yR(t,n){return vP(t.getUTCFullYear()%1e4,n,4)}function mR(){return"+0000"}function _R(){return"%"}function bR(t){return+t}function wR(t){return Math.floor(+t/1e3)}function xR(t){return uP=aP(t),cP=uP.format,lP=uP.parse,sP=uP.utcFormat,fP=uP.utcParse,uP}xR({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 MR="%Y-%m-%dT%H:%M:%S.%LZ";const ER=Date.prototype.toISOString?function(t){return t.toISOString()}:sP(MR),kR=+new Date("2000-01-01T00:00:00.000Z")?function(t){var n=new Date(t);return isNaN(n)?null:n}:fP(MR);var NR,SR,TR=0,CR=0,AR=0,PR=1e3,RR=0,IR=0,OR=0,UR="object"==typeof performance&&performance.now?performance:Date,DR="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function LR(){return IR||(DR(zR),IR=UR.now()+OR)}function zR(){IR=0}function FR(){this._call=this._time=this._next=null}function qR(t,n,e){var r=new FR;return r.restart(t,n,e),r}function jR(){LR(),++TR;for(var t,n=NR;n;)(t=IR-n._time)>=0&&n._call.call(null,t),n=n._next;--TR}function BR(){IR=(RR=UR.now())+OR,TR=CR=0;try{jR()}finally{TR=0,function(){for(var t,n,e=NR,r=1/0;e;)e._call?(r>e._time&&(r=e._time),t=e,e=e._next):(n=e._next,e._next=null,e=t?t._next=n:NR=n);SR=t,HR(r)}(),IR=0}}function YR(){var t=UR.now(),n=t-RR;n>PR&&(OR-=n,RR=t)}function HR(t){TR||(CR&&(CR=clearTimeout(CR)),t-IR>24?(t<1/0&&(CR=setTimeout(BR,t-UR.now()-OR)),AR&&(AR=clearInterval(AR))):(AR||(RR=UR.now(),AR=setInterval(YR,PR)),TR=1,DR(BR)))}function VR(t,n,e){var r=new FR;return n=null==n?0:+n,r.restart((function(e){r.stop(),t(e+n)}),n,e),r}function WR(t,n,e){var r=new FR,i=n;return null==n?(r.restart(t,n,e),r):(n=+n,e=null==e?LR():+e,r.restart((function o(a){a+=i,r.restart(o,i+=n,e),t(a)}),n,e),r)}FR.prototype=qR.prototype={constructor:FR,restart:function(t,n,e){if("function"!=typeof t)throw new TypeError("callback is not a function");e=(null==e?LR():+e)+(null==n?0:+n),this._next||SR===this||(SR?SR._next=this:NR=this,SR=this),this._call=t,this._time=e,HR()},stop:function(){this._call&&(this._call=null,this._time=1/0,HR())}};var XR="http://www.w3.org/1999/xhtml";const $R={svg:"http://www.w3.org/2000/svg",xhtml:XR,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function GR(t){var n=t+="",e=n.indexOf(":");return e>=0&&"xmlns"!==(n=t.slice(0,e))&&(t=t.slice(e+1)),$R.hasOwnProperty(n)?{space:$R[n],local:t}:t}function QR(t){return function(){var n=this.ownerDocument,e=this.namespaceURI;return e===XR&&n.documentElement.namespaceURI===XR?n.createElement(t):n.createElementNS(e,t)}}function ZR(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function KR(t){var n=GR(t);return(n.local?ZR:QR)(n)}function JR(){}function tI(t){return null==t?JR:function(){return this.querySelector(t)}}function nI(){return[]}function eI(t){return null==t?nI:function(){return this.querySelectorAll(t)}}var rI=function(t){return function(){return this.matches(t)}};if("undefined"!=typeof document){var iI=document.documentElement;if(!iI.matches){var oI=iI.webkitMatchesSelector||iI.msMatchesSelector||iI.mozMatchesSelector||iI.oMatchesSelector;rI=function(t){return function(){return oI.call(this,t)}}}}const aI=rI;function uI(t){return new Array(t.length)}function cI(t,n){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=n}cI.prototype={constructor:cI,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,n){return this._parent.insertBefore(t,n)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};var lI="$";function sI(t,n,e,r,i,o){for(var a,u=0,c=n.length,l=o.length;un?1:t>=n?0:NaN}function dI(t){return function(){this.removeAttribute(t)}}function pI(t){return function(){this.removeAttributeNS(t.space,t.local)}}function gI(t,n){return function(){this.setAttribute(t,n)}}function vI(t,n){return function(){this.setAttributeNS(t.space,t.local,n)}}function yI(t,n){return function(){var e=n.apply(this,arguments);null==e?this.removeAttribute(t):this.setAttribute(t,e)}}function mI(t,n){return function(){var e=n.apply(this,arguments);null==e?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,e)}}function _I(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function bI(t){return function(){this.style.removeProperty(t)}}function wI(t,n,e){return function(){this.style.setProperty(t,n,e)}}function xI(t,n,e){return function(){var r=n.apply(this,arguments);null==r?this.style.removeProperty(t):this.style.setProperty(t,r,e)}}function MI(t,n){return t.style.getPropertyValue(n)||_I(t).getComputedStyle(t,null).getPropertyValue(n)}function EI(t){return function(){delete this[t]}}function kI(t,n){return function(){this[t]=n}}function NI(t,n){return function(){var e=n.apply(this,arguments);null==e?delete this[t]:this[t]=e}}function SI(t){return t.trim().split(/^|\s+/)}function TI(t){return t.classList||new CI(t)}function CI(t){this._node=t,this._names=SI(t.getAttribute("class")||"")}function AI(t,n){for(var e=TI(t),r=-1,i=n.length;++r=0&&(this._names.splice(n,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var XI={},$I=null;function GI(t,n,e){return t=QI(t,n,e),function(n){var e=n.relatedTarget;e&&(e===this||8&e.compareDocumentPosition(this))||t.call(this,n)}}function QI(t,n,e){return function(r){var i=$I;$I=r;try{t.call(this,this.__data__,n,e)}finally{$I=i}}}function ZI(t){return function(){var n=this.__on;if(n){for(var e,r=0,i=-1,o=n.length;r=w&&(w=b+1);!(_=y[w])&&++w=0;)(r=i[o])&&(a&&a!==r.nextSibling&&a.parentNode.insertBefore(r,a),a=r);return this},sort:function(t){function n(n,e){return n&&e?t(n.__data__,e.__data__):!n-!e}t||(t=hI);for(var e=this._groups,r=e.length,i=new Array(r),o=0;o1?this.each((null==n?bI:"function"==typeof n?xI:wI)(t,n,null==e?"":e)):MI(this.node(),t)},property:function(t,n){return arguments.length>1?this.each((null==n?EI:"function"==typeof n?NI:kI)(t,n)):this.node()[t]},classed:function(t,n){var e=SI(t+"");if(arguments.length<2){for(var r=TI(this.node()),i=-1,o=e.length;++i=0&&(n=t.slice(e+1),t=t.slice(0,e)),{type:t,name:n}}))}(t+""),a=o.length;if(!(arguments.length<2)){for(u=n?KI:ZI,null==e&&(e=!1),r=0;r=0&&(n=t.slice(e+1),t=t.slice(0,e)),t&&!r.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:n}}))),a=-1,u=o.length;if(!(arguments.length<2)){if(null!=n&&"function"!=typeof n)throw new Error("invalid callback: "+n);for(;++a0)for(var e,r,i=new Array(e),o=0;o=0&&n._call.call(null,t),n=n._next;--vO}()}finally{vO=0,function(){for(var t,n,e=pO,r=1/0;e;)e._call?(r>e._time&&(r=e._time),t=e,e=e._next):(n=e._next,e._next=null,e=t?t._next=n:pO=n);gO=t,PO(r)}(),wO=0}}function AO(){var t=MO.now(),n=t-bO;n>_O&&(xO-=n,bO=t)}function PO(t){vO||(yO&&(yO=clearTimeout(yO)),t-wO>24?(t<1/0&&(yO=setTimeout(CO,t-MO.now()-xO)),mO&&(mO=clearInterval(mO))):(mO||(bO=MO.now(),mO=setInterval(AO,_O)),vO=1,EO(CO)))}function RO(t,n,e){var r=new SO;return n=null==n?0:+n,r.restart((function(e){r.stop(),t(e+n)}),n,e),r}SO.prototype=TO.prototype={constructor:SO,restart:function(t,n,e){if("function"!=typeof t)throw new TypeError("callback is not a function");e=(null==e?kO():+e)+(null==n?0:+n),this._next||gO===this||(gO?gO._next=this:pO=this,gO=this),this._call=t,this._time=e,PO()},stop:function(){this._call&&(this._call=null,this._time=1/0,PO())}};var IO=dO("start","end","interrupt"),OO=[],UO=0,DO=1,LO=2,zO=3,FO=4,qO=5,jO=6;function BO(t,n,e,r,i,o){var a=t.__transition;if(a){if(e in a)return}else t.__transition={};!function(t,n,e){var r,i=t.__transition;function o(c){var l,s,f,h;if(e.state!==DO)return u();for(l in i)if((h=i[l]).name===e.name){if(h.state===zO)return RO(o);h.state===FO?(h.state=jO,h.timer.stop(),h.on.call("interrupt",t,t.__data__,h.index,h.group),delete i[l]):+lUO)throw new Error("too late; already scheduled");return e}function HO(t,n){var e=VO(t,n);if(e.state>LO)throw new Error("too late; already started");return e}function VO(t,n){var e=t.__transition;if(!e||!(e=e[n]))throw new Error("transition not found");return e}function WO(t,n){var e,r,i,o=t.__transition,a=!0;if(o){for(i in n=null==n?null:n+"",o)(e=o[i]).name===n?(r=e.state>LO&&e.state>8&15|n>>4&240,n>>4&15|240&n,(15&n)<<4|15&n,1):(n=eU.exec(t))?fU(parseInt(n[1],16)):(n=rU.exec(t))?new gU(n[1],n[2],n[3],1):(n=iU.exec(t))?new gU(255*n[1]/100,255*n[2]/100,255*n[3]/100,1):(n=oU.exec(t))?hU(n[1],n[2],n[3],n[4]):(n=aU.exec(t))?hU(255*n[1]/100,255*n[2]/100,255*n[3]/100,n[4]):(n=uU.exec(t))?yU(n[1],n[2]/100,n[3]/100,1):(n=cU.exec(t))?yU(n[1],n[2]/100,n[3]/100,n[4]):lU.hasOwnProperty(t)?fU(lU[t]):"transparent"===t?new gU(NaN,NaN,NaN,0):null}function fU(t){return new gU(t>>16&255,t>>8&255,255&t,1)}function hU(t,n,e,r){return r<=0&&(t=n=e=NaN),new gU(t,n,e,r)}function dU(t){return t instanceof GO||(t=sU(t)),t?new gU((t=t.rgb()).r,t.g,t.b,t.opacity):new gU}function pU(t,n,e,r){return 1===arguments.length?dU(t):new gU(t,n,e,null==r?1:r)}function gU(t,n,e,r){this.r=+t,this.g=+n,this.b=+e,this.opacity=+r}function vU(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function yU(t,n,e,r){return r<=0?t=n=e=NaN:e<=0||e>=1?t=n=NaN:n<=0&&(t=NaN),new _U(t,n,e,r)}function mU(t,n,e,r){return 1===arguments.length?function(t){if(t instanceof _U)return new _U(t.h,t.s,t.l,t.opacity);if(t instanceof GO||(t=sU(t)),!t)return new _U;if(t instanceof _U)return t;var n=(t=t.rgb()).r/255,e=t.g/255,r=t.b/255,i=Math.min(n,e,r),o=Math.max(n,e,r),a=NaN,u=o-i,c=(o+i)/2;return u?(a=n===o?(e-r)/u+6*(e0&&c<1?0:a,new _U(a,u,c,t.opacity)}(t):new _U(t,n,e,null==r?1:r)}function _U(t,n,e,r){this.h=+t,this.s=+n,this.l=+e,this.opacity=+r}function bU(t,n,e){return 255*(t<60?n+(e-n)*t/60:t<180?e:t<240?n+(e-n)*(240-t)/60:n)}XO(GO,sU,{displayable:function(){return this.rgb().displayable()},hex:function(){return this.rgb().hex()},toString:function(){return this.rgb()+""}}),XO(gU,pU,$O(GO,{brighter:function(t){return t=null==t?ZO:Math.pow(ZO,t),new gU(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?QO:Math.pow(QO,t),new gU(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},hex:function(){return"#"+vU(this.r)+vU(this.g)+vU(this.b)},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+")")}})),XO(_U,mU,$O(GO,{brighter:function(t){return t=null==t?ZO:Math.pow(ZO,t),new _U(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?QO:Math.pow(QO,t),new _U(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),n=isNaN(t)||isNaN(this.s)?0:this.s,e=this.l,r=e+(e<.5?e:1-e)*n,i=2*e-r;return new gU(bU(t>=240?t-240:t+120,i,r),bU(t,i,r),bU(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 wU=Math.PI/180,xU=180/Math.PI,MU=.96422,EU=1,kU=.82521,NU=4/29,SU=6/29,TU=3*SU*SU,CU=SU*SU*SU;function AU(t){if(t instanceof PU)return new PU(t.l,t.a,t.b,t.opacity);if(t instanceof LU){if(isNaN(t.h))return new PU(t.l,0,0,t.opacity);var n=t.h*wU;return new PU(t.l,Math.cos(n)*t.c,Math.sin(n)*t.c,t.opacity)}t instanceof gU||(t=dU(t));var e,r,i=UU(t.r),o=UU(t.g),a=UU(t.b),u=RU((.2225045*i+.7168786*o+.0606169*a)/EU);return i===o&&o===a?e=r=u:(e=RU((.4360747*i+.3850649*o+.1430804*a)/MU),r=RU((.0139322*i+.0971045*o+.7141733*a)/kU)),new PU(116*u-16,500*(e-u),200*(u-r),t.opacity)}function PU(t,n,e,r){this.l=+t,this.a=+n,this.b=+e,this.opacity=+r}function RU(t){return t>CU?Math.pow(t,1/3):t/TU+NU}function IU(t){return t>SU?t*t*t:TU*(t-NU)}function OU(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function UU(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function DU(t,n,e,r){return 1===arguments.length?function(t){if(t instanceof LU)return new LU(t.h,t.c,t.l,t.opacity);if(t instanceof PU||(t=AU(t)),0===t.a&&0===t.b)return new LU(NaN,0,t.l,t.opacity);var n=Math.atan2(t.b,t.a)*xU;return new LU(n<0?n+360:n,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}(t):new LU(t,n,e,null==r?1:r)}function LU(t,n,e,r){this.h=+t,this.c=+n,this.l=+e,this.opacity=+r}XO(PU,(function(t,n,e,r){return 1===arguments.length?AU(t):new PU(t,n,e,null==r?1:r)}),$O(GO,{brighter:function(t){return new PU(this.l+18*(null==t?1:t),this.a,this.b,this.opacity)},darker:function(t){return new PU(this.l-18*(null==t?1:t),this.a,this.b,this.opacity)},rgb:function(){var t=(this.l+16)/116,n=isNaN(this.a)?t:t+this.a/500,e=isNaN(this.b)?t:t-this.b/200;return new gU(OU(3.1338561*(n=MU*IU(n))-1.6168667*(t=EU*IU(t))-.4906146*(e=kU*IU(e))),OU(-.9787684*n+1.9161415*t+.033454*e),OU(.0719453*n-.2289914*t+1.4052427*e),this.opacity)}})),XO(LU,DU,$O(GO,{brighter:function(t){return new LU(this.h,this.c,this.l+18*(null==t?1:t),this.opacity)},darker:function(t){return new LU(this.h,this.c,this.l-18*(null==t?1:t),this.opacity)},rgb:function(){return AU(this).rgb()}}));var zU=-.14861,FU=1.78277,qU=-.29227,jU=-.90649,BU=1.97294,YU=BU*jU,HU=BU*FU,VU=FU*qU-jU*zU;function WU(t,n,e,r){return 1===arguments.length?function(t){if(t instanceof XU)return new XU(t.h,t.s,t.l,t.opacity);t instanceof gU||(t=dU(t));var n=t.r/255,e=t.g/255,r=t.b/255,i=(VU*r+YU*n-HU*e)/(VU+YU-HU),o=r-i,a=(BU*(e-i)-qU*o)/jU,u=Math.sqrt(a*a+o*o)/(BU*i*(1-i)),c=u?Math.atan2(a,o)*xU-120:NaN;return new XU(c<0?c+360:c,u,i,t.opacity)}(t):new XU(t,n,e,null==r?1:r)}function XU(t,n,e,r){this.h=+t,this.s=+n,this.l=+e,this.opacity=+r}function $U(t,n,e,r,i){var o=t*t,a=o*t;return((1-3*t+3*o-a)*n+(4-6*o+3*a)*e+(1+3*t+3*o-3*a)*r+a*i)/6}function GU(t){return function(){return t}}function QU(t,n){return function(e){return t+e*n}}function ZU(t,n){var e=n-t;return e?QU(t,e>180||e<-180?e-360*Math.round(e/360):e):GU(isNaN(t)?n:t)}function KU(t,n){var e=n-t;return e?QU(t,e):GU(isNaN(t)?n:t)}XO(XU,WU,$O(GO,{brighter:function(t){return t=null==t?ZO:Math.pow(ZO,t),new XU(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?QO:Math.pow(QO,t),new XU(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=isNaN(this.h)?0:(this.h+120)*wU,n=+this.l,e=isNaN(this.s)?0:this.s*n*(1-n),r=Math.cos(t),i=Math.sin(t);return new gU(255*(n+e*(zU*r+FU*i)),255*(n+e*(qU*r+jU*i)),255*(n+e*(BU*r)),this.opacity)}}));const JU=function t(n){var e=function(t){return 1==(t=+t)?KU:function(n,e){return e-n?function(t,n,e){return t=Math.pow(t,e),n=Math.pow(n,e)-t,e=1/e,function(r){return Math.pow(t+r*n,e)}}(n,e,t):GU(isNaN(n)?e:n)}}(n);function r(t,n){var r=e((t=pU(t)).r,(n=pU(n)).r),i=e(t.g,n.g),o=e(t.b,n.b),a=KU(t.opacity,n.opacity);return function(n){return t.r=r(n),t.g=i(n),t.b=o(n),t.opacity=a(n),t+""}}return r.gamma=t,r}(1);function tD(t){return function(n){var e,r,i=n.length,o=new Array(i),a=new Array(i),u=new Array(i);for(e=0;e=1?(e=1,n-1):Math.floor(e*n),i=t[r],o=t[r+1],a=r>0?t[r-1]:2*i-o,u=ro&&(i=n.slice(o,i),u[a]?u[a]+=i:u[++a]=i),(e=e[0])===(r=r[0])?u[a]?u[a]+=r:u[++a]=r:(u[++a]=null,c.push({i:a,x:nD(e,r)})),o=rD.lastIndex;return o180?n+=360:n-t>180&&(t+=360),o.push({i:e.push(i(e)+"rotate(",null,r)-2,x:nD(t,n)})):n&&e.push(i(e)+"rotate("+n+r)}(o.rotate,a.rotate,u,c),function(t,n,e,o){t!==n?o.push({i:e.push(i(e)+"skewX(",null,r)-2,x:nD(t,n)}):n&&e.push(i(e)+"skewX("+n+r)}(o.skewX,a.skewX,u,c),function(t,n,e,r,o,a){if(t!==e||n!==r){var u=o.push(i(o)+"scale(",null,",",null,")");a.push({i:u-4,x:nD(t,e)},{i:u-2,x:nD(n,r)})}else 1===e&&1===r||o.push(i(o)+"scale("+e+","+r+")")}(o.scaleX,o.scaleY,a.scaleX,a.scaleY,u,c),o=a=null,function(t){for(var n,e=-1,r=c.length;++e=0&&(t=t.slice(0,n)),!t||"start"===t}))}(n)?YO:HO;return function(){var a=o(this,t),u=a.on;u!==r&&(i=(r=u).copy()).on(n,e),a.on=i}}(e,t,n))},attr:function(t,n){var e=GR(t),r="transform"===e?pD:wD;return this.attrTween(t,"function"==typeof n?(e.local?SD:ND)(e,r,bD(this,"attr."+t,n)):null==n?(e.local?MD:xD)(e):(e.local?kD:ED)(e,r,n+""))},attrTween:function(t,n){var e="attr."+t;if(arguments.length<2)return(e=this.tween(e))&&e._value;if(null==n)return this.tween(e,null);if("function"!=typeof n)throw new Error;var r=GR(t);return this.tween(e,(r.local?TD:CD)(r,n))},style:function(t,n,e){var r="transform"==(t+="")?dD:wD;return null==n?this.styleTween(t,function(t,n){var e,r,i;return function(){var o=MI(this,t),a=(this.style.removeProperty(t),MI(this,t));return o===a?null:o===e&&a===r?i:i=n(e=o,r=a)}}(t,r)).on("end.style."+t,function(t){return function(){this.style.removeProperty(t)}}(t)):this.styleTween(t,"function"==typeof n?function(t,n,e){var r,i,o;return function(){var a=MI(this,t),u=e(this);return null==u&&(this.style.removeProperty(t),u=MI(this,t)),a===u?null:a===r&&u===i?o:o=n(r=a,i=u)}}(t,r,bD(this,"style."+t,n)):function(t,n,e){var r,i;return function(){var o=MI(this,t);return o===e?null:o===r?i:i=n(r=o,e)}}(t,r,n+""),e)},styleTween:function(t,n,e){var r="style."+(t+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(null==n)return this.tween(r,null);if("function"!=typeof n)throw new Error;return this.tween(r,function(t,n,e){function r(){var r=this,i=n.apply(r,arguments);return i&&function(n){r.style.setProperty(t,i(n),e)}}return r._value=n,r}(t,n,null==e?"":e))},text:function(t){return this.tween("text","function"==typeof t?function(t){return function(){var n=t(this);this.textContent=null==n?"":n}}(bD(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 n=this.parentNode;for(var e in this.__transition)if(+e!==t)return;n&&n.removeChild(this)}}(this._id))},tween:function(t,n){var e=this._id;if(t+="",arguments.length<2){for(var r,i=VO(this.node(),e).tween,o=0,a=i.length;oDO&&e.name===n)return new DD([[t]],HD,n,+r);return null}function WD(t){return function(){return t}}function XD(t){return t[0]}function $D(t){return t[1]}function GD(){this._=null}function QD(t){t.U=t.C=t.L=t.R=t.P=t.N=null}function ZD(t,n){var e=n,r=n.R,i=e.U;i?i.L===e?i.L=r:i.R=r:t._=r,r.U=i,e.U=r,e.R=r.L,e.R&&(e.R.U=e),r.L=e}function KD(t,n){var e=n,r=n.L,i=e.U;i?i.L===e?i.L=r:i.R=r:t._=r,r.U=i,e.U=r,e.L=r.R,e.L&&(e.L.U=e),r.R=e}function JD(t){for(;t.L;)t=t.L;return t}GD.prototype={constructor:GD,insert:function(t,n){var e,r,i;if(t){if(n.P=t,n.N=t.N,t.N&&(t.N.P=n),t.N=n,t.R){for(t=t.R;t.L;)t=t.L;t.L=n}else t.R=n;e=t}else this._?(t=JD(this._),n.P=null,n.N=t,t.P=t.L=n,e=t):(n.P=n.N=null,this._=n,e=null);for(n.L=n.R=null,n.U=e,n.C=!0,t=n;e&&e.C;)e===(r=e.U).L?(i=r.R)&&i.C?(e.C=i.C=!1,r.C=!0,t=r):(t===e.R&&(ZD(this,e),e=(t=e).U),e.C=!1,r.C=!0,KD(this,r)):(i=r.L)&&i.C?(e.C=i.C=!1,r.C=!0,t=r):(t===e.L&&(KD(this,e),e=(t=e).U),e.C=!1,r.C=!0,ZD(this,r)),e=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 n,e,r,i=t.U,o=t.L,a=t.R;if(e=o?a?JD(a):o:a,i?i.L===t?i.L=e:i.R=e:this._=e,o&&a?(r=e.C,e.C=t.C,e.L=o,o.U=e,e!==a?(i=e.U,e.U=t.U,t=e.R,i.L=t,e.R=a,a.U=e):(e.U=i,i=e,t=e.R)):(r=t.C,t=e),t&&(t.U=i),!r)if(t&&t.C)t.C=!1;else{do{if(t===this._)break;if(t===i.L){if((n=i.R).C&&(n.C=!1,i.C=!0,ZD(this,i),n=i.R),n.L&&n.L.C||n.R&&n.R.C){n.R&&n.R.C||(n.L.C=!1,n.C=!0,KD(this,n),n=i.R),n.C=i.C,i.C=n.R.C=!1,ZD(this,i),t=this._;break}}else if((n=i.L).C&&(n.C=!1,i.C=!0,KD(this,i),n=i.L),n.L&&n.L.C||n.R&&n.R.C){n.L&&n.L.C||(n.R.C=!1,n.C=!0,ZD(this,n),n=i.L),n.C=i.C,i.C=n.L.C=!1,KD(this,i),t=this._;break}n.C=!0,t=i,i=i.U}while(!t.C);t&&(t.C=!1)}}};const tL=GD;function nL(t,n,e,r){var i=[null,null],o=kL.push(i)-1;return i.left=t,i.right=n,e&&rL(i,t,n,e),r&&rL(i,n,t,r),ML[t.index].halfedges.push(o),ML[n.index].halfedges.push(o),i}function eL(t,n,e){var r=[n,e];return r.left=t,r}function rL(t,n,e,r){t[0]||t[1]?t.left===e?t[1]=r:t[0]=r:(t[0]=r,t.left=n,t.right=e)}function iL(t,n,e,r,i){var o,a=t[0],u=t[1],c=a[0],l=a[1],s=0,f=1,h=u[0]-c,d=u[1]-l;if(o=n-c,h||!(o>0)){if(o/=h,h<0){if(o0){if(o>f)return;o>s&&(s=o)}if(o=r-c,h||!(o<0)){if(o/=h,h<0){if(o>f)return;o>s&&(s=o)}else if(h>0){if(o0)){if(o/=d,d<0){if(o0){if(o>f)return;o>s&&(s=o)}if(o=i-l,d||!(o<0)){if(o/=d,d<0){if(o>f)return;o>s&&(s=o)}else if(d>0){if(o0||f<1)||(s>0&&(t[0]=[c+s*h,l+s*d]),f<1&&(t[1]=[c+f*h,l+f*d]),!0)}}}}}function oL(t,n,e,r,i){var o=t[1];if(o)return!0;var a,u,c=t[0],l=t.left,s=t.right,f=l[0],h=l[1],d=s[0],p=s[1],g=(f+d)/2,v=(h+p)/2;if(p===h){if(g=r)return;if(f>d){if(c){if(c[1]>=i)return}else c=[g,e];o=[g,i]}else{if(c){if(c[1]1)if(f>d){if(c){if(c[1]>=i)return}else c=[(e-u)/a,e];o=[(i-u)/a,i]}else{if(c){if(c[1]=r)return}else c=[n,a*n+u];o=[r,a*r+u]}else{if(c){if(c[0]=-SL)){var d=c*c+l*l,p=s*s+f*f,g=(f*d-l*p)/h,v=(c*p-s*d)/h,y=sL.pop()||new fL;y.arc=t,y.site=i,y.x=g+a,y.y=(y.cy=v+u)+Math.sqrt(g*g+v*v),t.circle=y;for(var m=null,_=EL._;_;)if(y.y<_.y||y.y===_.y&&y.x<=_.x){if(!_.L){m=_.P;break}_=_.L}else{if(!_.R){m=_;break}_=_.R}EL.insert(m,y),m||(lL=y)}}}}function dL(t){var n=t.circle;n&&(n.P||(lL=n.N),EL.remove(n),sL.push(n),QD(n),t.circle=null)}var pL=[];function gL(){QD(this),this.edge=this.site=this.circle=null}function vL(t){var n=pL.pop()||new gL;return n.site=t,n}function yL(t){dL(t),xL.remove(t),pL.push(t),QD(t)}function mL(t){var n=t.circle,e=n.x,r=n.cy,i=[e,r],o=t.P,a=t.N,u=[t];yL(t);for(var c=o;c.circle&&Math.abs(e-c.circle.x)NL)u=u.L;else{if(!((i=o-wL(u,a))>NL)){r>-NL?(n=u.P,e=u):i>-NL?(n=u,e=u.N):n=e=u;break}if(!u.R){n=u;break}u=u.R}!function(t){ML[t.index]={site:t,halfedges:[]}}(t);var c=vL(t);if(xL.insert(n,c),n||e){if(n===e)return dL(n),e=vL(n.site),xL.insert(c,e),c.edge=e.edge=nL(n.site,c.site),hL(n),void hL(e);if(e){dL(n),dL(e);var l=n.site,s=l[0],f=l[1],h=t[0]-s,d=t[1]-f,p=e.site,g=p[0]-s,v=p[1]-f,y=2*(h*v-d*g),m=h*h+d*d,_=g*g+v*v,b=[(v*m-d*_)/y+s,(h*_-g*m)/y+f];rL(e.edge,l,p,b),c.edge=nL(l,t,null,b),e.edge=nL(t,p,null,b),hL(n),hL(e)}else c.edge=nL(n.site,c.site)}}function bL(t,n){var e=t.site,r=e[0],i=e[1],o=i-n;if(!o)return r;var a=t.P;if(!a)return-1/0;var u=(e=a.site)[0],c=e[1],l=c-n;if(!l)return u;var s=u-r,f=1/o-1/l,h=s/l;return f?(-h+Math.sqrt(h*h-2*f*(s*s/(-2*l)-c+l/2+i-o/2)))/f+r:(r+u)/2}function wL(t,n){var e=t.N;if(e)return bL(e,n);var r=t.site;return r[1]===n?r[0]:1/0}var xL,ML,EL,kL,NL=1e-6,SL=1e-12;function TL(t,n,e){return(t[0]-e[0])*(n[1]-t[1])-(t[0]-n[0])*(e[1]-t[1])}function CL(t,n){return n[1]-t[1]||n[0]-t[0]}function AL(t,n){var e,r,i,o=t.sort(CL).pop();for(kL=[],ML=new Array(t.length),xL=new tL,EL=new tL;;)if(i=lL,o&&(!i||o[1]NL||Math.abs(i[0][1]-i[1][1])>NL)||delete kL[o]}(a,u,c,l),function(t,n,e,r){var i,o,a,u,c,l,s,f,h,d,p,g,v=ML.length,y=!0;for(i=0;iNL||Math.abs(g-h)>NL)&&(c.splice(u,0,kL.push(eL(a,d,Math.abs(p-t)NL?[t,Math.abs(f-t)NL?[Math.abs(h-r)NL?[e,Math.abs(f-e)NL?[Math.abs(h-n)=u)return null;var c=t-i.site[0],l=n-i.site[1],s=c*c+l*l;do{i=o.cells[r=a],a=null,i.halfedges.forEach((function(e){var r=o.edges[e],u=r.left;if(u!==i.site&&u||(u=r.right)){var c=t-u[0],l=n-u[1],f=c*c+l*l;f=0&&(n=t.slice(e+1),t=t.slice(0,e)),t&&!r.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:n}}))),a=-1,u=o.length;if(!(arguments.length<2)){if(null!=n&&"function"!=typeof n)throw new Error("invalid callback: "+n);for(;++a0)for(var e,r,i=new Array(e),o=0;o=0&&"xmlns"!==(n=t.slice(0,e))&&(t=t.slice(e+1)),FL.hasOwnProperty(n)?{space:FL[n],local:t}:t}function jL(t){return function(){var n=this.ownerDocument,e=this.namespaceURI;return e===zL&&n.documentElement.namespaceURI===zL?n.createElement(t):n.createElementNS(e,t)}}function BL(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function YL(t){var n=qL(t);return(n.local?BL:jL)(n)}function HL(){}function VL(t){return null==t?HL:function(){return this.querySelector(t)}}function WL(){return[]}function XL(t){return null==t?WL:function(){return this.querySelectorAll(t)}}var $L=function(t){return function(){return this.matches(t)}};if("undefined"!=typeof document){var GL=document.documentElement;if(!GL.matches){var QL=GL.webkitMatchesSelector||GL.msMatchesSelector||GL.mozMatchesSelector||GL.oMatchesSelector;$L=function(t){return function(){return QL.call(this,t)}}}}const ZL=$L;function KL(t){return new Array(t.length)}function JL(t,n){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=n}JL.prototype={constructor:JL,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,n){return this._parent.insertBefore(t,n)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};var tz="$";function nz(t,n,e,r,i,o){for(var a,u=0,c=n.length,l=o.length;un?1:t>=n?0:NaN}function iz(t){return function(){this.removeAttribute(t)}}function oz(t){return function(){this.removeAttributeNS(t.space,t.local)}}function az(t,n){return function(){this.setAttribute(t,n)}}function uz(t,n){return function(){this.setAttributeNS(t.space,t.local,n)}}function cz(t,n){return function(){var e=n.apply(this,arguments);null==e?this.removeAttribute(t):this.setAttribute(t,e)}}function lz(t,n){return function(){var e=n.apply(this,arguments);null==e?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,e)}}function sz(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function fz(t){return function(){this.style.removeProperty(t)}}function hz(t,n,e){return function(){this.style.setProperty(t,n,e)}}function dz(t,n,e){return function(){var r=n.apply(this,arguments);null==r?this.style.removeProperty(t):this.style.setProperty(t,r,e)}}function pz(t,n){return t.style.getPropertyValue(n)||sz(t).getComputedStyle(t,null).getPropertyValue(n)}function gz(t){return function(){delete this[t]}}function vz(t,n){return function(){this[t]=n}}function yz(t,n){return function(){var e=n.apply(this,arguments);null==e?delete this[t]:this[t]=e}}function mz(t){return t.trim().split(/^|\s+/)}function _z(t){return t.classList||new bz(t)}function bz(t){this._node=t,this._names=mz(t.getAttribute("class")||"")}function wz(t,n){for(var e=_z(t),r=-1,i=n.length;++r=0&&(this._names.splice(n,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var zz={},Fz=null;function qz(t,n,e){return t=jz(t,n,e),function(n){var e=n.relatedTarget;e&&(e===this||8&e.compareDocumentPosition(this))||t.call(this,n)}}function jz(t,n,e){return function(r){var i=Fz;Fz=r;try{t.call(this,this.__data__,n,e)}finally{Fz=i}}}function Bz(t){return function(){var n=this.__on;if(n){for(var e,r=0,i=-1,o=n.length;r=w&&(w=b+1);!(_=y[w])&&++w=0;)(r=i[o])&&(a&&a!==r.nextSibling&&a.parentNode.insertBefore(r,a),a=r);return this},sort:function(t){function n(n,e){return n&&e?t(n.__data__,e.__data__):!n-!e}t||(t=rz);for(var e=this._groups,r=e.length,i=new Array(r),o=0;o1?this.each((null==n?fz:"function"==typeof n?dz:hz)(t,n,null==e?"":e)):pz(this.node(),t)},property:function(t,n){return arguments.length>1?this.each((null==n?gz:"function"==typeof n?yz:vz)(t,n)):this.node()[t]},classed:function(t,n){var e=mz(t+"");if(arguments.length<2){for(var r=_z(this.node()),i=-1,o=e.length;++i=0&&(n=t.slice(e+1),t=t.slice(0,e)),{type:t,name:n}}))}(t+""),a=o.length;if(!(arguments.length<2)){for(u=n?Yz:Bz,null==e&&(e=!1),r=0;r>8&15|n>>4&240,n>>4&15|240&n,(15&n)<<4|15&n,1):(n=pF.exec(t))?MF(parseInt(n[1],16)):(n=gF.exec(t))?new SF(n[1],n[2],n[3],1):(n=vF.exec(t))?new SF(255*n[1]/100,255*n[2]/100,255*n[3]/100,1):(n=yF.exec(t))?EF(n[1],n[2],n[3],n[4]):(n=mF.exec(t))?EF(255*n[1]/100,255*n[2]/100,255*n[3]/100,n[4]):(n=_F.exec(t))?CF(n[1],n[2]/100,n[3]/100,1):(n=bF.exec(t))?CF(n[1],n[2]/100,n[3]/100,n[4]):wF.hasOwnProperty(t)?MF(wF[t]):"transparent"===t?new SF(NaN,NaN,NaN,0):null}function MF(t){return new SF(t>>16&255,t>>8&255,255&t,1)}function EF(t,n,e,r){return r<=0&&(t=n=e=NaN),new SF(t,n,e,r)}function kF(t){return t instanceof uF||(t=xF(t)),t?new SF((t=t.rgb()).r,t.g,t.b,t.opacity):new SF}function NF(t,n,e,r){return 1===arguments.length?kF(t):new SF(t,n,e,null==r?1:r)}function SF(t,n,e,r){this.r=+t,this.g=+n,this.b=+e,this.opacity=+r}function TF(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function CF(t,n,e,r){return r<=0?t=n=e=NaN:e<=0||e>=1?t=n=NaN:n<=0&&(t=NaN),new PF(t,n,e,r)}function AF(t,n,e,r){return 1===arguments.length?function(t){if(t instanceof PF)return new PF(t.h,t.s,t.l,t.opacity);if(t instanceof uF||(t=xF(t)),!t)return new PF;if(t instanceof PF)return t;var n=(t=t.rgb()).r/255,e=t.g/255,r=t.b/255,i=Math.min(n,e,r),o=Math.max(n,e,r),a=NaN,u=o-i,c=(o+i)/2;return u?(a=n===o?(e-r)/u+6*(e0&&c<1?0:a,new PF(a,u,c,t.opacity)}(t):new PF(t,n,e,null==r?1:r)}function PF(t,n,e,r){this.h=+t,this.s=+n,this.l=+e,this.opacity=+r}function RF(t,n,e){return 255*(t<60?n+(e-n)*t/60:t<180?e:t<240?n+(e-n)*(240-t)/60:n)}oF(uF,xF,{displayable:function(){return this.rgb().displayable()},hex:function(){return this.rgb().hex()},toString:function(){return this.rgb()+""}}),oF(SF,NF,aF(uF,{brighter:function(t){return t=null==t?lF:Math.pow(lF,t),new SF(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?cF:Math.pow(cF,t),new SF(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},hex:function(){return"#"+TF(this.r)+TF(this.g)+TF(this.b)},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+")")}})),oF(PF,AF,aF(uF,{brighter:function(t){return t=null==t?lF:Math.pow(lF,t),new PF(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?cF:Math.pow(cF,t),new PF(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),n=isNaN(t)||isNaN(this.s)?0:this.s,e=this.l,r=e+(e<.5?e:1-e)*n,i=2*e-r;return new SF(RF(t>=240?t-240:t+120,i,r),RF(t,i,r),RF(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 IF=Math.PI/180,OF=180/Math.PI,UF=.96422,DF=1,LF=.82521,zF=4/29,FF=6/29,qF=3*FF*FF,jF=FF*FF*FF;function BF(t){if(t instanceof YF)return new YF(t.l,t.a,t.b,t.opacity);if(t instanceof GF){if(isNaN(t.h))return new YF(t.l,0,0,t.opacity);var n=t.h*IF;return new YF(t.l,Math.cos(n)*t.c,Math.sin(n)*t.c,t.opacity)}t instanceof SF||(t=kF(t));var e,r,i=XF(t.r),o=XF(t.g),a=XF(t.b),u=HF((.2225045*i+.7168786*o+.0606169*a)/DF);return i===o&&o===a?e=r=u:(e=HF((.4360747*i+.3850649*o+.1430804*a)/UF),r=HF((.0139322*i+.0971045*o+.7141733*a)/LF)),new YF(116*u-16,500*(e-u),200*(u-r),t.opacity)}function YF(t,n,e,r){this.l=+t,this.a=+n,this.b=+e,this.opacity=+r}function HF(t){return t>jF?Math.pow(t,1/3):t/qF+zF}function VF(t){return t>FF?t*t*t:qF*(t-zF)}function WF(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function XF(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function $F(t,n,e,r){return 1===arguments.length?function(t){if(t instanceof GF)return new GF(t.h,t.c,t.l,t.opacity);if(t instanceof YF||(t=BF(t)),0===t.a&&0===t.b)return new GF(NaN,0,t.l,t.opacity);var n=Math.atan2(t.b,t.a)*OF;return new GF(n<0?n+360:n,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}(t):new GF(t,n,e,null==r?1:r)}function GF(t,n,e,r){this.h=+t,this.c=+n,this.l=+e,this.opacity=+r}oF(YF,(function(t,n,e,r){return 1===arguments.length?BF(t):new YF(t,n,e,null==r?1:r)}),aF(uF,{brighter:function(t){return new YF(this.l+18*(null==t?1:t),this.a,this.b,this.opacity)},darker:function(t){return new YF(this.l-18*(null==t?1:t),this.a,this.b,this.opacity)},rgb:function(){var t=(this.l+16)/116,n=isNaN(this.a)?t:t+this.a/500,e=isNaN(this.b)?t:t-this.b/200;return new SF(WF(3.1338561*(n=UF*VF(n))-1.6168667*(t=DF*VF(t))-.4906146*(e=LF*VF(e))),WF(-.9787684*n+1.9161415*t+.033454*e),WF(.0719453*n-.2289914*t+1.4052427*e),this.opacity)}})),oF(GF,$F,aF(uF,{brighter:function(t){return new GF(this.h,this.c,this.l+18*(null==t?1:t),this.opacity)},darker:function(t){return new GF(this.h,this.c,this.l-18*(null==t?1:t),this.opacity)},rgb:function(){return BF(this).rgb()}}));var QF=-.14861,ZF=1.78277,KF=-.29227,JF=-.90649,tq=1.97294,nq=tq*JF,eq=tq*ZF,rq=ZF*KF-JF*QF;function iq(t,n,e,r){return 1===arguments.length?function(t){if(t instanceof oq)return new oq(t.h,t.s,t.l,t.opacity);t instanceof SF||(t=kF(t));var n=t.r/255,e=t.g/255,r=t.b/255,i=(rq*r+nq*n-eq*e)/(rq+nq-eq),o=r-i,a=(tq*(e-i)-KF*o)/JF,u=Math.sqrt(a*a+o*o)/(tq*i*(1-i)),c=u?Math.atan2(a,o)*OF-120:NaN;return new oq(c<0?c+360:c,u,i,t.opacity)}(t):new oq(t,n,e,null==r?1:r)}function oq(t,n,e,r){this.h=+t,this.s=+n,this.l=+e,this.opacity=+r}function aq(t,n,e,r,i){var o=t*t,a=o*t;return((1-3*t+3*o-a)*n+(4-6*o+3*a)*e+(1+3*t+3*o-3*a)*r+a*i)/6}function uq(t){return function(){return t}}function cq(t,n){return function(e){return t+e*n}}function lq(t,n){var e=n-t;return e?cq(t,e>180||e<-180?e-360*Math.round(e/360):e):uq(isNaN(t)?n:t)}function sq(t,n){var e=n-t;return e?cq(t,e):uq(isNaN(t)?n:t)}oF(oq,iq,aF(uF,{brighter:function(t){return t=null==t?lF:Math.pow(lF,t),new oq(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?cF:Math.pow(cF,t),new oq(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=isNaN(this.h)?0:(this.h+120)*IF,n=+this.l,e=isNaN(this.s)?0:this.s*n*(1-n),r=Math.cos(t),i=Math.sin(t);return new SF(255*(n+e*(QF*r+ZF*i)),255*(n+e*(KF*r+JF*i)),255*(n+e*(tq*r)),this.opacity)}}));const fq=function t(n){var e=function(t){return 1==(t=+t)?sq:function(n,e){return e-n?function(t,n,e){return t=Math.pow(t,e),n=Math.pow(n,e)-t,e=1/e,function(r){return Math.pow(t+r*n,e)}}(n,e,t):uq(isNaN(n)?e:n)}}(n);function r(t,n){var r=e((t=NF(t)).r,(n=NF(n)).r),i=e(t.g,n.g),o=e(t.b,n.b),a=sq(t.opacity,n.opacity);return function(n){return t.r=r(n),t.g=i(n),t.b=o(n),t.opacity=a(n),t+""}}return r.gamma=t,r}(1);function hq(t){return function(n){var e,r,i=n.length,o=new Array(i),a=new Array(i),u=new Array(i);for(e=0;e=1?(e=1,n-1):Math.floor(e*n),i=t[r],o=t[r+1],a=r>0?t[r-1]:2*i-o,u=ro&&(i=n.slice(o,i),u[a]?u[a]+=i:u[++a]=i),(e=e[0])===(r=r[0])?u[a]?u[a]+=r:u[++a]=r:(u[++a]=null,c.push({i:a,x:dq(e,r)})),o=gq.lastIndex;return o180?n+=360:n-t>180&&(t+=360),o.push({i:e.push(i(e)+"rotate(",null,r)-2,x:dq(t,n)})):n&&e.push(i(e)+"rotate("+n+r)}(o.rotate,a.rotate,u,c),function(t,n,e,o){t!==n?o.push({i:e.push(i(e)+"skewX(",null,r)-2,x:dq(t,n)}):n&&e.push(i(e)+"skewX("+n+r)}(o.skewX,a.skewX,u,c),function(t,n,e,r,o,a){if(t!==e||n!==r){var u=o.push(i(o)+"scale(",null,",",null,")");a.push({i:u-4,x:dq(t,e)},{i:u-2,x:dq(n,r)})}else 1===e&&1===r||o.push(i(o)+"scale("+e+","+r+")")}(o.scaleX,o.scaleY,a.scaleX,a.scaleY,u,c),o=a=null,function(t){for(var n,e=-1,r=c.length;++e=0&&n._call.call(null,t),n=n._next;--zq}()}finally{zq=0,function(){for(var t,n,e=Dq,r=1/0;e;)e._call?(r>e._time&&(r=e._time),t=e,e=e._next):(n=e._next,e._next=null,e=t?t._next=n:Dq=n);Lq=t,Jq(r)}(),Yq=0}}function Kq(){var t=Vq.now(),n=t-Bq;n>jq&&(Hq-=n,Bq=t)}function Jq(t){zq||(Fq&&(Fq=clearTimeout(Fq)),t-Yq>24?(t<1/0&&(Fq=setTimeout(Zq,t-Vq.now()-Hq)),qq&&(qq=clearInterval(qq))):(qq||(Bq=Vq.now(),qq=setInterval(Kq,jq)),zq=1,Wq(Zq)))}function tj(t,n,e){var r=new Gq;return n=null==n?0:+n,r.restart((function(e){r.stop(),t(e+n)}),n,e),r}Gq.prototype=Qq.prototype={constructor:Gq,restart:function(t,n,e){if("function"!=typeof t)throw new TypeError("callback is not a function");e=(null==e?Xq():+e)+(null==n?0:+n),this._next||Lq===this||(Lq?Lq._next=this:Dq=this,Lq=this),this._call=t,this._time=e,Jq()},stop:function(){this._call&&(this._call=null,this._time=1/0,Jq())}};var nj=LL("start","end","interrupt"),ej=[],rj=0,ij=1,oj=2,aj=3,uj=4,cj=5,lj=6;function sj(t,n,e,r,i,o){var a=t.__transition;if(a){if(e in a)return}else t.__transition={};!function(t,n,e){var r,i=t.__transition;function o(c){var l,s,f,h;if(e.state!==ij)return u();for(l in i)if((h=i[l]).name===e.name){if(h.state===aj)return tj(o);h.state===uj?(h.state=lj,h.timer.stop(),h.on.call("interrupt",t,t.__data__,h.index,h.group),delete i[l]):+lrj)throw new Error("too late; already scheduled");return e}function hj(t,n){var e=dj(t,n);if(e.state>oj)throw new Error("too late; already started");return e}function dj(t,n){var e=t.__transition;if(!e||!(e=e[n]))throw new Error("transition not found");return e}function pj(t,n){var e,r,i,o=t.__transition,a=!0;if(o){for(i in n=null==n?null:n+"",o)(e=o[i]).name===n?(r=e.state>oj&&e.state=0&&(t=t.slice(0,n)),!t||"start"===t}))}(n)?fj:hj;return function(){var a=o(this,t),u=a.on;u!==r&&(i=(r=u).copy()).on(n,e),a.on=i}}(e,t,n))},attr:function(t,n){var e=qL(t),r="transform"===e?Nq:mj;return this.attrTween(t,"function"==typeof n?(e.local?Ej:Mj)(e,r,yj(this,"attr."+t,n)):null==n?(e.local?bj:_j)(e):(e.local?xj:wj)(e,r,n+""))},attrTween:function(t,n){var e="attr."+t;if(arguments.length<2)return(e=this.tween(e))&&e._value;if(null==n)return this.tween(e,null);if("function"!=typeof n)throw new Error;var r=qL(t);return this.tween(e,(r.local?kj:Nj)(r,n))},style:function(t,n,e){var r="transform"==(t+="")?kq:mj;return null==n?this.styleTween(t,function(t,n){var e,r,i;return function(){var o=pz(this,t),a=(this.style.removeProperty(t),pz(this,t));return o===a?null:o===e&&a===r?i:i=n(e=o,r=a)}}(t,r)).on("end.style."+t,function(t){return function(){this.style.removeProperty(t)}}(t)):this.styleTween(t,"function"==typeof n?function(t,n,e){var r,i,o;return function(){var a=pz(this,t),u=e(this);return null==u&&(this.style.removeProperty(t),u=pz(this,t)),a===u?null:a===r&&u===i?o:o=n(r=a,i=u)}}(t,r,yj(this,"style."+t,n)):function(t,n,e){var r,i;return function(){var o=pz(this,t);return o===e?null:o===r?i:i=n(r=o,e)}}(t,r,n+""),e)},styleTween:function(t,n,e){var r="style."+(t+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(null==n)return this.tween(r,null);if("function"!=typeof n)throw new Error;return this.tween(r,function(t,n,e){function r(){var r=this,i=n.apply(r,arguments);return i&&function(n){r.style.setProperty(t,i(n),e)}}return r._value=n,r}(t,n,null==e?"":e))},text:function(t){return this.tween("text","function"==typeof t?function(t){return function(){var n=t(this);this.textContent=null==n?"":n}}(yj(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 n=this.parentNode;for(var e in this.__transition)if(+e!==t)return;n&&n.removeChild(this)}}(this._id))},tween:function(t,n){var e=this._id;if(t+="",arguments.length<2){for(var r,i=dj(this.node(),e).tween,o=0,a=i.length;or?(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 Jj(){var t,n,e=Xj,r=$j,i=Kj,o=Qj,a=Zj,u=[0,1/0],c=[[-1/0,-1/0],[1/0,1/0]],l=250,s=Rq,f=[],h=LL("start","zoom","end"),d=500,p=150,g=0;function v(t){t.property("__zoom",Gj).on("wheel.zoom",M).on("mousedown.zoom",E).on("dblclick.zoom",k).filter(a).on("touchstart.zoom",N).on("touchmove.zoom",S).on("touchend.zoom touchcancel.zoom",T).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function y(t,n){return(n=Math.max(u[0],Math.min(u[1],n)))===t.k?t:new Bj(n,t.x,t.y)}function m(t,n,e){var r=n[0]-e[0]*t.k,i=n[1]-e[1]*t.k;return r===t.x&&i===t.y?t:new Bj(t.k,r,i)}function _(t){return[(+t[0][0]+ +t[1][0])/2,(+t[0][1]+ +t[1][1])/2]}function b(t,n,e){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=e||_(a),c=Math.max(a[1][0]-a[0][0],a[1][1]-a[0][1]),l=t.__zoom,f="function"==typeof n?n.apply(t,i):n,h=s(l.invert(u).concat(c/l.k),f.invert(u).concat(c/f.k));return function(t){if(1===t)t=f;else{var n=h(t),e=c/n[2];t=new Bj(e,u[0]-n[0]*e,u[1]-n[1]*e)}o.zoom(null,t)}}))}function w(t,n){for(var e,r=0,i=f.length;rg}t.zoom("mouse",i(m(t.that.__zoom,t.mouse[0]=eF(t.that),t.mouse[1]),t.extent,c))}),!0).on("mouseup.zoom",(function(){r.on("mousemove.zoom mouseup.zoom",null),function(t,n){var e=t.document.documentElement,r=Zz(t).on("dragstart.drag",null);n&&(r.on("click.drag",iF,!0),setTimeout((function(){r.on("click.drag",null)}),0)),"onselectstart"in e?r.on("selectstart.drag",null):(e.style.MozUserSelect=e.__noselect,delete e.__noselect)}(Fz.view,t.moved),Wj(),t.end()}),!0),o=eF(this),a=Fz.clientX,u=Fz.clientY;!function(t){var n=t.document.documentElement,e=Zz(t).on("dragstart.drag",iF,!0);"onselectstart"in n?e.on("selectstart.drag",iF,!0):(n.__noselect=n.style.MozUserSelect,n.style.MozUserSelect="none")}(Fz.view),Vj(),t.mouse=[o,this.__zoom.invert(o)],pj(this),t.start()}}function k(){if(e.apply(this,arguments)){var t=this.__zoom,n=eF(this),o=t.invert(n),a=t.k*(Fz.shiftKey?.5:2),u=i(m(y(t,a),n,o),r.apply(this,arguments),c);Wj(),l>0?Zz(this).transition().duration(l).call(b,u,n):Zz(this).call(v.transform,u)}}function N(){if(e.apply(this,arguments)){var n,r,i,o,a=w(this,arguments),u=Fz.changedTouches,c=u.length;for(Vj(),r=0;r{t.exports={graphlib:e(574),layout:e(8123),debug:e(7570),util:{time:e(1138).time,notime:e(1138).notime},version:e(8177)}},2188:(t,n,e)=>{"use strict";var r=e(8436),i=e(4079);t.exports={run:function(t){var n="greedy"===t.graph().acyclicer?i(t,function(t){return function(n){return t.edge(n).weight}}(t)):function(t){var n=[],e={},i={};return r.forEach(t.nodes(),(function o(a){r.has(i,a)||(i[a]=!0,e[a]=!0,r.forEach(t.outEdges(a),(function(t){r.has(e,t.w)?n.push(t):o(t.w)})),delete e[a])})),n}(t);r.forEach(n,(function(n){var e=t.edge(n);t.removeEdge(n),e.forwardName=n.name,e.reversed=!0,t.setEdge(n.w,n.v,e,r.uniqueId("rev"))}))},undo:function(t){r.forEach(t.edges(),(function(n){var e=t.edge(n);if(e.reversed){t.removeEdge(n);var r=e.forwardName;delete e.reversed,delete e.forwardName,t.setEdge(n.w,n.v,e,r)}}))}}},1133:(t,n,e)=>{var r=e(8436),i=e(1138);function o(t,n,e,r,o,a){var u={width:0,height:0,rank:a,borderType:n},c=o[n][a-1],l=i.addDummyNode(t,"border",u,e);o[n][a]=l,t.setParent(l,r),c&&t.setEdge(c,l,{weight:1})}t.exports=function(t){r.forEach(t.children(),(function n(e){var i=t.children(e),a=t.node(e);if(i.length&&r.forEach(i,n),r.has(a,"minRank")){a.borderLeft=[],a.borderRight=[];for(var u=a.minRank,c=a.maxRank+1;u{"use strict";var r=e(8436);function i(t){r.forEach(t.nodes(),(function(n){o(t.node(n))})),r.forEach(t.edges(),(function(n){o(t.edge(n))}))}function o(t){var n=t.width;t.width=t.height,t.height=n}function a(t){t.y=-t.y}function u(t){var n=t.x;t.x=t.y,t.y=n}t.exports={adjust:function(t){var n=t.graph().rankdir.toLowerCase();"lr"!==n&&"rl"!==n||i(t)},undo:function(t){var n=t.graph().rankdir.toLowerCase();"bt"!==n&&"rl"!==n||function(t){r.forEach(t.nodes(),(function(n){a(t.node(n))})),r.forEach(t.edges(),(function(n){var e=t.edge(n);r.forEach(e.points,a),r.has(e,"y")&&a(e)}))}(t),"lr"!==n&&"rl"!==n||(function(t){r.forEach(t.nodes(),(function(n){u(t.node(n))})),r.forEach(t.edges(),(function(n){var e=t.edge(n);r.forEach(e.points,u),r.has(e,"x")&&u(e)}))}(t),i(t))}}},7822:t=>{function n(){var t={};t._next=t._prev=t,this._sentinel=t}function e(t){t._prev._next=t._next,t._next._prev=t._prev,delete t._next,delete t._prev}function r(t,n){if("_next"!==t&&"_prev"!==t)return n}t.exports=n,n.prototype.dequeue=function(){var t=this._sentinel,n=t._prev;if(n!==t)return e(n),n},n.prototype.enqueue=function(t){var n=this._sentinel;t._prev&&t._next&&e(t),t._next=n._next,n._next._prev=t,n._next=t,t._prev=n},n.prototype.toString=function(){for(var t=[],n=this._sentinel,e=n._prev;e!==n;)t.push(JSON.stringify(e,r)),e=e._prev;return"["+t.join(", ")+"]"}},7570:(t,n,e)=>{var r=e(8436),i=e(1138),o=e(574).Graph;t.exports={debugOrdering:function(t){var n=i.buildLayerMatrix(t),e=new o({compound:!0,multigraph:!0}).setGraph({});return r.forEach(t.nodes(),(function(n){e.setNode(n,{label:n}),e.setParent(n,"layer"+t.node(n).rank)})),r.forEach(t.edges(),(function(t){e.setEdge(t.v,t.w,{},t.name)})),r.forEach(n,(function(t,n){var i="layer"+n;e.setNode(i,{rank:"same"}),r.reduce(t,(function(t,n){return e.setEdge(t,n,{style:"invis"}),n}))})),e}}},574:(t,n,e)=>{var r;try{r=e(8282)}catch(t){}r||(r=window.graphlib),t.exports=r},4079:(t,n,e)=>{var r=e(8436),i=e(574).Graph,o=e(7822);t.exports=function(t,n){if(t.nodeCount()<=1)return[];var e=function(t,n){var e=new i,a=0,u=0;r.forEach(t.nodes(),(function(t){e.setNode(t,{v:t,in:0,out:0})})),r.forEach(t.edges(),(function(t){var r=e.edge(t.v,t.w)||0,i=n(t),o=r+i;e.setEdge(t.v,t.w,o),u=Math.max(u,e.node(t.v).out+=i),a=Math.max(a,e.node(t.w).in+=i)}));var l=r.range(u+a+3).map((function(){return new o})),s=a+1;return r.forEach(e.nodes(),(function(t){c(l,s,e.node(t))})),{graph:e,buckets:l,zeroIdx:s}}(t,n||a),l=function(t,n,e){for(var r,i=[],o=n[n.length-1],a=n[0];t.nodeCount();){for(;r=a.dequeue();)u(t,n,e,r);for(;r=o.dequeue();)u(t,n,e,r);if(t.nodeCount())for(var c=n.length-2;c>0;--c)if(r=n[c].dequeue()){i=i.concat(u(t,n,e,r,!0));break}}return i}(e.graph,e.buckets,e.zeroIdx);return r.flatten(r.map(l,(function(n){return t.outEdges(n.v,n.w)})),!0)};var a=r.constant(1);function u(t,n,e,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(n,e,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(n,e,a)})),t.removeNode(i.v),a}function c(t,n,e){e.out?e.in?t[e.out-e.in+n].enqueue(e):t[t.length-1].enqueue(e):t[0].enqueue(e)}},8123:(t,n,e)=>{"use strict";var r=e(8436),i=e(2188),o=e(5995),a=e(8093),u=e(1138).normalizeRanks,c=e(4219),l=e(1138).removeEmptyRanks,s=e(2981),f=e(1133),h=e(3258),d=e(3408),p=e(7873),g=e(1138),v=e(574).Graph;t.exports=function(t,n){var e=n&&n.debugTiming?g.time:g.notime;e("layout",(function(){var n=e("  buildLayoutGraph",(function(){return function(t){var n=new v({multigraph:!0,compound:!0}),e=N(t.graph());return n.setGraph(r.merge({},m,k(e,y),r.pick(e,_))),r.forEach(t.nodes(),(function(e){var i=N(t.node(e));n.setNode(e,r.defaults(k(i,b),w)),n.setParent(e,t.parent(e))})),r.forEach(t.edges(),(function(e){var i=N(t.edge(e));n.setEdge(e,r.merge({},M,k(i,x),r.pick(i,E)))})),n}(t)}));e("  runLayout",(function(){!function(t,n){n("    makeSpaceForEdgeLabels",(function(){!function(t){var n=t.graph();n.ranksep/=2,r.forEach(t.edges(),(function(e){var r=t.edge(e);r.minlen*=2,"c"!==r.labelpos.toLowerCase()&&("TB"===n.rankdir||"BT"===n.rankdir?r.width+=r.labeloffset:r.height+=r.labeloffset)}))}(t)})),n("    removeSelfEdges",(function(){!function(t){r.forEach(t.edges(),(function(n){if(n.v===n.w){var e=t.node(n.v);e.selfEdges||(e.selfEdges=[]),e.selfEdges.push({e:n,label:t.edge(n)}),t.removeEdge(n)}}))}(t)})),n("    acyclic",(function(){i.run(t)})),n("    nestingGraph.run",(function(){s.run(t)})),n("    rank",(function(){a(g.asNonCompoundGraph(t))})),n("    injectEdgeLabelProxies",(function(){!function(t){r.forEach(t.edges(),(function(n){var e=t.edge(n);if(e.width&&e.height){var r=t.node(n.v),i={rank:(t.node(n.w).rank-r.rank)/2+r.rank,e:n};g.addDummyNode(t,"edge-proxy",i,"_ep")}}))}(t)})),n("    removeEmptyRanks",(function(){l(t)})),n("    nestingGraph.cleanup",(function(){s.cleanup(t)})),n("    normalizeRanks",(function(){u(t)})),n("    assignRankMinMax",(function(){!function(t){var n=0;r.forEach(t.nodes(),(function(e){var i=t.node(e);i.borderTop&&(i.minRank=t.node(i.borderTop).rank,i.maxRank=t.node(i.borderBottom).rank,n=r.max(n,i.maxRank))})),t.graph().maxRank=n}(t)})),n("    removeEdgeLabelProxies",(function(){!function(t){r.forEach(t.nodes(),(function(n){var e=t.node(n);"edge-proxy"===e.dummy&&(t.edge(e.e).labelRank=e.rank,t.removeNode(n))}))}(t)})),n("    normalize.run",(function(){o.run(t)})),n("    parentDummyChains",(function(){c(t)})),n("    addBorderSegments",(function(){f(t)})),n("    order",(function(){d(t)})),n("    insertSelfEdges",(function(){!function(t){var n=g.buildLayerMatrix(t);r.forEach(n,(function(n){var e=0;r.forEach(n,(function(n,i){var o=t.node(n);o.order=i+e,r.forEach(o.selfEdges,(function(n){g.addDummyNode(t,"selfedge",{width:n.label.width,height:n.label.height,rank:o.rank,order:i+ ++e,e:n.e,label:n.label},"_se")})),delete o.selfEdges}))}))}(t)})),n("    adjustCoordinateSystem",(function(){h.adjust(t)})),n("    position",(function(){p(t)})),n("    positionSelfEdges",(function(){!function(t){r.forEach(t.nodes(),(function(n){var e=t.node(n);if("selfedge"===e.dummy){var r=t.node(e.e.v),i=r.x+r.width/2,o=r.y,a=e.x-i,u=r.height/2;t.setEdge(e.e,e.label),t.removeNode(n),e.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}],e.label.x=e.x,e.label.y=e.y}}))}(t)})),n("    removeBorderNodes",(function(){!function(t){r.forEach(t.nodes(),(function(n){if(t.children(n).length){var e=t.node(n),i=t.node(e.borderTop),o=t.node(e.borderBottom),a=t.node(r.last(e.borderLeft)),u=t.node(r.last(e.borderRight));e.width=Math.abs(u.x-a.x),e.height=Math.abs(o.y-i.y),e.x=a.x+e.width/2,e.y=i.y+e.height/2}})),r.forEach(t.nodes(),(function(n){"border"===t.node(n).dummy&&t.removeNode(n)}))}(t)})),n("    normalize.undo",(function(){o.undo(t)})),n("    fixupEdgeLabelCoords",(function(){!function(t){r.forEach(t.edges(),(function(n){var e=t.edge(n);if(r.has(e,"x"))switch("l"!==e.labelpos&&"r"!==e.labelpos||(e.width-=e.labeloffset),e.labelpos){case"l":e.x-=e.width/2+e.labeloffset;break;case"r":e.x+=e.width/2+e.labeloffset}}))}(t)})),n("    undoCoordinateSystem",(function(){h.undo(t)})),n("    translateGraph",(function(){!function(t){var n=Number.POSITIVE_INFINITY,e=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;n=Math.min(n,r-u/2),e=Math.max(e,r+u/2),i=Math.min(i,a-c/2),o=Math.max(o,a+c/2)}r.forEach(t.nodes(),(function(n){l(t.node(n))})),r.forEach(t.edges(),(function(n){var e=t.edge(n);r.has(e,"x")&&l(e)})),n-=u,i-=c,r.forEach(t.nodes(),(function(e){var r=t.node(e);r.x-=n,r.y-=i})),r.forEach(t.edges(),(function(e){var o=t.edge(e);r.forEach(o.points,(function(t){t.x-=n,t.y-=i})),r.has(o,"x")&&(o.x-=n),r.has(o,"y")&&(o.y-=i)})),a.width=e-n+u,a.height=o-i+c}(t)})),n("    assignNodeIntersects",(function(){!function(t){r.forEach(t.edges(),(function(n){var e,r,i=t.edge(n),o=t.node(n.v),a=t.node(n.w);i.points?(e=i.points[0],r=i.points[i.points.length-1]):(i.points=[],e=a,r=o),i.points.unshift(g.intersectRect(o,e)),i.points.push(g.intersectRect(a,r))}))}(t)})),n("    reversePoints",(function(){!function(t){r.forEach(t.edges(),(function(n){var e=t.edge(n);e.reversed&&e.points.reverse()}))}(t)})),n("    acyclic.undo",(function(){i.undo(t)}))}(n,e)})),e("  updateInputGraph",(function(){!function(t,n){r.forEach(t.nodes(),(function(e){var r=t.node(e),i=n.node(e);r&&(r.x=i.x,r.y=i.y,n.children(e).length&&(r.width=i.width,r.height=i.height))})),r.forEach(t.edges(),(function(e){var i=t.edge(e),o=n.edge(e);i.points=o.points,r.has(o,"x")&&(i.x=o.x,i.y=o.y)})),t.graph().width=n.graph().width,t.graph().height=n.graph().height}(t,n)}))}))};var y=["nodesep","edgesep","ranksep","marginx","marginy"],m={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},_=["acyclicer","ranker","rankdir","align"],b=["width","height"],w={width:0,height:0},x=["minlen","weight","width","height","labeloffset"],M={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},E=["labelpos"];function k(t,n){return r.mapValues(r.pick(t,n),Number)}function N(t){var n={};return r.forEach(t,(function(t,e){n[e.toLowerCase()]=t})),n}},8436:(t,n,e)=>{var r;try{r=e(6486)}catch(t){}r||(r=window._),t.exports=r},2981:(t,n,e)=>{var r=e(8436),i=e(1138);function o(t,n,e,a,u,c,l){var s=t.children(l);if(s.length){var f=i.addBorderNode(t,"_bt"),h=i.addBorderNode(t,"_bb"),d=t.node(l);t.setParent(f,l),d.borderTop=f,t.setParent(h,l),d.borderBottom=h,r.forEach(s,(function(r){o(t,n,e,a,u,c,r);var i=t.node(r),s=i.borderTop?i.borderTop:r,d=i.borderBottom?i.borderBottom:r,p=i.borderTop?a:2*a,g=s!==d?1:u-c[l]+1;t.setEdge(f,s,{weight:p,minlen:g,nestingEdge:!0}),t.setEdge(d,h,{weight:p,minlen:g,nestingEdge:!0})})),t.parent(l)||t.setEdge(n,f,{weight:0,minlen:u+c[l]})}else l!==n&&t.setEdge(n,l,{weight:0,minlen:e})}t.exports={run:function(t){var n=i.addDummyNode(t,"root",{},"_root"),e=function(t){var n={};function e(i,o){var a=t.children(i);a&&a.length&&r.forEach(a,(function(t){e(t,o+1)})),n[i]=o}return r.forEach(t.children(),(function(t){e(t,1)})),n}(t),a=r.max(r.values(e))-1,u=2*a+1;t.graph().nestingRoot=n,r.forEach(t.edges(),(function(n){t.edge(n).minlen*=u}));var c=function(t){return r.reduce(t.edges(),(function(n,e){return n+t.edge(e).weight}),0)}(t)+1;r.forEach(t.children(),(function(r){o(t,n,u,c,a,e,r)})),t.graph().nodeRankFactor=u},cleanup:function(t){var n=t.graph();t.removeNode(n.nestingRoot),delete n.nestingRoot,r.forEach(t.edges(),(function(n){t.edge(n).nestingEdge&&t.removeEdge(n)}))}}},5995:(t,n,e)=>{"use strict";var r=e(8436),i=e(1138);t.exports={run:function(t){t.graph().dummyChains=[],r.forEach(t.edges(),(function(n){!function(t,n){var e,r,o,a=n.v,u=t.node(a).rank,c=n.w,l=t.node(c).rank,s=n.name,f=t.edge(n),h=f.labelRank;if(l!==u+1){for(t.removeEdge(n),o=0,++u;u{var r=e(8436);t.exports=function(t,n,e){var i,o={};r.forEach(e,(function(e){for(var r,a,u=t.parent(e);u;){if((r=t.parent(u))?(a=o[r],o[r]=u):(a=i,i=u),a&&a!==u)return void n.setEdge(a,u);u=r}}))}},5439:(t,n,e)=>{var r=e(8436);t.exports=function(t,n){return r.map(n,(function(n){var e=t.inEdges(n);if(e.length){var i=r.reduce(e,(function(n,e){var r=t.edge(e),i=t.node(e.v);return{sum:n.sum+r.weight*i.order,weight:n.weight+r.weight}}),{sum:0,weight:0});return{v:n,barycenter:i.sum/i.weight,weight:i.weight}}return{v:n}}))}},3128:(t,n,e)=>{var r=e(8436),i=e(574).Graph;t.exports=function(t,n,e){var o=function(t){for(var n;t.hasNode(n=r.uniqueId("_root")););return n}(t),a=new i({compound:!0}).setGraph({root:o}).setDefaultNodeLabel((function(n){return t.node(n)}));return r.forEach(t.nodes(),(function(i){var u=t.node(i),c=t.parent(i);(u.rank===n||u.minRank<=n&&n<=u.maxRank)&&(a.setNode(i),a.setParent(i,c||o),r.forEach(t[e](i),(function(n){var e=n.v===i?n.w:n.v,o=a.edge(e,i),u=r.isUndefined(o)?0:o.weight;a.setEdge(e,i,{weight:t.edge(n).weight+u})})),r.has(u,"minRank")&&a.setNode(i,{borderLeft:u.borderLeft[n],borderRight:u.borderRight[n]}))})),a}},6630:(t,n,e)=>{"use strict";var r=e(8436);function i(t,n,e){for(var i=r.zipObject(e,r.map(e,(function(t,n){return n}))),o=r.flatten(r.map(n,(function(n){return r.chain(t.outEdges(n)).map((function(n){return{pos:i[n.w],weight:t.edge(n).weight}})).sortBy("pos").value()})),!0),a=1;a0;)n%2&&(e+=c[n+1]),c[n=n-1>>1]+=t.weight;l+=t.weight*e}))),l}t.exports=function(t,n){for(var e=0,r=1;r{"use strict";var r=e(8436),i=e(2588),o=e(6630),a=e(1026),u=e(3128),c=e(5093),l=e(574).Graph,s=e(1138);function f(t,n,e){return r.map(n,(function(n){return u(t,n,e)}))}function h(t,n){var e=new l;r.forEach(t,(function(t){var i=t.graph().root,o=a(t,i,e,n);r.forEach(o.vs,(function(n,e){t.node(n).order=e})),c(t,e,o.vs)}))}function d(t,n){r.forEach(n,(function(n){r.forEach(n,(function(n,e){t.node(n).order=e}))}))}t.exports=function(t){var n=s.maxRank(t),e=f(t,r.range(1,n+1),"inEdges"),a=f(t,r.range(n-1,-1,-1),"outEdges"),u=i(t);d(t,u);for(var c,l=Number.POSITIVE_INFINITY,p=0,g=0;g<4;++p,++g){h(p%2?e:a,p%4>=2),u=s.buildLayerMatrix(t);var v=o(t,u);v{"use strict";var r=e(8436);t.exports=function(t){var n={},e=r.filter(t.nodes(),(function(n){return!t.children(n).length})),i=r.max(r.map(e,(function(n){return t.node(n).rank}))),o=r.map(r.range(i+1),(function(){return[]})),a=r.sortBy(e,(function(n){return t.node(n).rank}));return r.forEach(a,(function e(i){if(!r.has(n,i)){n[i]=!0;var a=t.node(i);o[a.rank].push(i),r.forEach(t.successors(i),e)}})),o}},3678:(t,n,e)=>{"use strict";var r=e(8436);t.exports=function(t,n){var e={};return r.forEach(t,(function(t,n){var i=e[t.v]={indegree:0,in:[],out:[],vs:[t.v],i:n};r.isUndefined(t.barycenter)||(i.barycenter=t.barycenter,i.weight=t.weight)})),r.forEach(n.edges(),(function(t){var n=e[t.v],i=e[t.w];r.isUndefined(n)||r.isUndefined(i)||(i.indegree++,n.out.push(e[t.w]))})),function(t){var n=[];function e(t){return function(n){var e,i,o,a;n.merged||(r.isUndefined(n.barycenter)||r.isUndefined(t.barycenter)||n.barycenter>=t.barycenter)&&(i=n,o=0,a=0,(e=t).weight&&(o+=e.barycenter*e.weight,a+=e.weight),i.weight&&(o+=i.barycenter*i.weight,a+=i.weight),e.vs=i.vs.concat(e.vs),e.barycenter=o/a,e.weight=a,e.i=Math.min(i.i,e.i),i.merged=!0)}}function i(n){return function(e){e.in.push(n),0==--e.indegree&&t.push(e)}}for(;t.length;){var o=t.pop();n.push(o),r.forEach(o.in.reverse(),e(o)),r.forEach(o.out,i(o))}return r.chain(n).filter((function(t){return!t.merged})).map((function(t){return r.pick(t,["vs","i","barycenter","weight"])})).value()}(r.filter(e,(function(t){return!t.indegree})))}},1026:(t,n,e)=>{var r=e(8436),i=e(5439),o=e(3678),a=e(7304);t.exports=function t(n,e,u,c){var l=n.children(e),s=n.node(e),f=s?s.borderLeft:void 0,h=s?s.borderRight:void 0,d={};f&&(l=r.filter(l,(function(t){return t!==f&&t!==h})));var p=i(n,l);r.forEach(p,(function(e){if(n.children(e.v).length){var i=t(n,e.v,u,c);d[e.v]=i,r.has(i,"barycenter")&&(o=e,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 g=o(p,u);!function(t,n){r.forEach(t,(function(t){t.vs=r.flatten(t.vs.map((function(t){return n[t]?n[t].vs:t})),!0)}))}(g,d);var v=a(g,c);if(f&&(v.vs=r.flatten([f,v.vs,h],!0),n.predecessors(f).length)){var y=n.node(n.predecessors(f)[0]),m=n.node(n.predecessors(h)[0]);r.has(v,"barycenter")||(v.barycenter=0,v.weight=0),v.barycenter=(v.barycenter*v.weight+y.order+m.order)/(v.weight+2),v.weight+=2}return v}},7304:(t,n,e)=>{var r=e(8436),i=e(1138);function o(t,n,e){for(var i;n.length&&(i=r.last(n)).i<=e;)n.pop(),t.push(i.vs),e++;return e}t.exports=function(t,n){var e,a=i.partition(t,(function(t){return r.has(t,"barycenter")})),u=a.lhs,c=r.sortBy(a.rhs,(function(t){return-t.i})),l=[],s=0,f=0,h=0;u.sort((e=!!n,function(t,n){return t.barycentern.barycenter?1:e?n.i-t.i:t.i-n.i})),h=o(l,c,h),r.forEach(u,(function(t){h+=t.vs.length,l.push(t.vs),s+=t.barycenter*t.weight,f+=t.weight,h=o(l,c,h)}));var d={vs:r.flatten(l,!0)};return f&&(d.barycenter=s/f,d.weight=f),d}},4219:(t,n,e)=>{var r=e(8436);t.exports=function(t){var n=function(t){var n={},e=0;return r.forEach(t.children(),(function i(o){var a=e;r.forEach(t.children(o),i),n[o]={low:a,lim:e++}})),n}(t);r.forEach(t.graph().dummyChains,(function(e){for(var r=t.node(e),i=r.edgeObj,o=function(t,n,e,r){var i,o,a=[],u=[],c=Math.min(n[e].low,n[r].low),l=Math.max(n[e].lim,n[r].lim);i=e;do{i=t.parent(i),a.push(i)}while(i&&(n[i].low>c||l>n[i].lim));for(o=i,i=r;(i=t.parent(i))!==o;)u.push(i);return{path:a.concat(u.reverse()),lca:o}}(t,n,i.v,i.w),a=o.path,u=o.lca,c=0,l=a[c],s=!0;e!==i.w;){if(r=t.node(e),s){for(;(l=a[c])!==u&&t.node(l).maxRank{"use strict";var r=e(8436),i=e(574).Graph,o=e(1138);function a(t,n){var e={};return r.reduce(n,(function(n,i){var o=0,a=0,u=n.length,l=r.last(i);return r.forEach(i,(function(n,s){var f=function(t,n){if(t.node(n).dummy)return r.find(t.predecessors(n),(function(n){return t.node(n).dummy}))}(t,n),h=f?t.node(f).order:u;(f||n===l)&&(r.forEach(i.slice(a,s+1),(function(n){r.forEach(t.predecessors(n),(function(r){var i=t.node(r),a=i.order;!(au)&&c(e,n,l)}))}))}return r.reduce(n,(function(n,e){var o,a=-1,u=0;return r.forEach(e,(function(r,c){if("border"===t.node(r).dummy){var l=t.predecessors(r);l.length&&(o=t.node(l[0]).order,i(e,u,c,a,o),u=c,a=o)}i(e,u,e.length,o,n.length)})),e})),e}function c(t,n,e){if(n>e){var r=n;n=e,e=r}var i=t[n];i||(t[n]=i={}),i[e]=!0}function l(t,n,e){if(n>e){var i=n;n=e,e=i}return r.has(t[n],e)}function s(t,n,e,i){var o={},a={},u={};return r.forEach(n,(function(t){r.forEach(t,(function(t,n){o[t]=t,a[t]=t,u[t]=n}))})),r.forEach(n,(function(t){var n=-1;r.forEach(t,(function(t){var c=i(t);if(c.length){c=r.sortBy(c,(function(t){return u[t]}));for(var s=(c.length-1)/2,f=Math.floor(s),h=Math.ceil(s);f<=h;++f){var d=c[f];a[t]===t&&n{"use strict";var r=e(8436),i=e(1138),o=e(3573).positionX;t.exports=function(t){(function(t){var n=i.buildLayerMatrix(t),e=t.graph().ranksep,o=0;r.forEach(n,(function(n){var i=r.max(r.map(n,(function(n){return t.node(n).height})));r.forEach(n,(function(n){t.node(n).y=o+i/2})),o+=i+e}))})(t=i.asNonCompoundGraph(t)),r.forEach(o(t),(function(n,e){t.node(e).x=n}))}},300:(t,n,e)=>{"use strict";var r=e(8436),i=e(574).Graph,o=e(6681).slack;function a(t,n){return r.forEach(t.nodes(),(function e(i){r.forEach(n.nodeEdges(i),(function(r){var a=r.v,u=i===a?r.w:a;t.hasNode(u)||o(n,r)||(t.setNode(u,{}),t.setEdge(i,u,{}),e(u))}))})),t.nodeCount()}function u(t,n){return r.minBy(n.edges(),(function(e){if(t.hasNode(e.v)!==t.hasNode(e.w))return o(n,e)}))}function c(t,n,e){r.forEach(t.nodes(),(function(t){n.node(t).rank+=e}))}t.exports=function(t){var n,e,r=new i({directed:!1}),l=t.nodes()[0],s=t.nodeCount();for(r.setNode(l,{});a(r,t){"use strict";var r=e(6681).longestPath,i=e(300),o=e(2472);t.exports=function(t){switch(t.graph().ranker){case"network-simplex":default:!function(t){o(t)}(t);break;case"tight-tree":!function(t){r(t),i(t)}(t);break;case"longest-path":a(t)}};var a=r},2472:(t,n,e)=>{"use strict";var r=e(8436),i=e(300),o=e(6681).slack,a=e(6681).longestPath,u=e(574).alg.preorder,c=e(574).alg.postorder,l=e(1138).simplify;function s(t){t=l(t),a(t);var n,e=i(t);for(d(e),f(e,t);n=g(e);)y(e,t,n,v(e,t,n))}function f(t,n){var e=c(t,t.nodes());e=e.slice(0,e.length-1),r.forEach(e,(function(e){!function(t,n,e){var r=t.node(e).parent;t.edge(e,r).cutvalue=h(t,n,e)}(t,n,e)}))}function h(t,n,e){var i=t.node(e).parent,o=!0,a=n.edge(e,i),u=0;return a||(o=!1,a=n.edge(i,e)),u=a.weight,r.forEach(n.nodeEdges(e),(function(r){var a,c,l=r.v===e,s=l?r.w:r.v;if(s!==i){var f=l===o,h=n.edge(r).weight;if(u+=f?h:-h,a=e,c=s,t.hasEdge(a,c)){var d=t.edge(e,s).cutvalue;u+=f?-d:d}}})),u}function d(t,n){arguments.length<2&&(n=t.nodes()[0]),p(t,{},1,n)}function p(t,n,e,i,o){var a=e,u=t.node(i);return n[i]=!0,r.forEach(t.neighbors(i),(function(o){r.has(n,o)||(e=p(t,n,e,o,i))})),u.low=a,u.lim=e++,o?u.parent=o:delete u.parent,e}function g(t){return r.find(t.edges(),(function(n){return t.edge(n).cutvalue<0}))}function v(t,n,e){var i=e.v,a=e.w;n.hasEdge(i,a)||(i=e.w,a=e.v);var u=t.node(i),c=t.node(a),l=u,s=!1;u.lim>c.lim&&(l=c,s=!0);var f=r.filter(n.edges(),(function(n){return s===m(0,t.node(n.v),l)&&s!==m(0,t.node(n.w),l)}));return r.minBy(f,(function(t){return o(n,t)}))}function y(t,n,e,i){var o=e.v,a=e.w;t.removeEdge(o,a),t.setEdge(i.v,i.w,{}),d(t),f(t,n),function(t,n){var e=r.find(t.nodes(),(function(t){return!n.node(t).parent})),i=u(t,e);i=i.slice(1),r.forEach(i,(function(e){var r=t.node(e).parent,i=n.edge(e,r),o=!1;i||(i=n.edge(r,e),o=!0),n.node(e).rank=n.node(r).rank+(o?i.minlen:-i.minlen)}))}(t,n)}function m(t,n,e){return e.low<=n.lim&&n.lim<=e.lim}t.exports=s,s.initLowLimValues=d,s.initCutValues=f,s.calcCutValue=h,s.leaveEdge=g,s.enterEdge=v,s.exchangeEdges=y},6681:(t,n,e)=>{"use strict";var r=e(8436);t.exports={longestPath:function(t){var n={};r.forEach(t.sources(),(function e(i){var o=t.node(i);if(r.has(n,i))return o.rank;n[i]=!0;var a=r.minBy(r.map(t.outEdges(i),(function(n){return e(n.w)-t.edge(n).minlen})));return a!==Number.POSITIVE_INFINITY&&null!=a||(a=0),o.rank=a}))},slack:function(t,n){return t.node(n.w).rank-t.node(n.v).rank-t.edge(n).minlen}}},1138:(t,n,e)=>{"use strict";var r=e(8436),i=e(574).Graph;function o(t,n,e,i){var o;do{o=r.uniqueId(i)}while(t.hasNode(o));return e.dummy=n,t.setNode(o,e),o}function a(t){return r.max(r.map(t.nodes(),(function(n){var e=t.node(n).rank;if(!r.isUndefined(e))return e})))}t.exports={addDummyNode:o,simplify:function(t){var n=(new i).setGraph(t.graph());return r.forEach(t.nodes(),(function(e){n.setNode(e,t.node(e))})),r.forEach(t.edges(),(function(e){var r=n.edge(e.v,e.w)||{weight:0,minlen:1},i=t.edge(e);n.setEdge(e.v,e.w,{weight:r.weight+i.weight,minlen:Math.max(r.minlen,i.minlen)})})),n},asNonCompoundGraph:function(t){var n=new i({multigraph:t.isMultigraph()}).setGraph(t.graph());return r.forEach(t.nodes(),(function(e){t.children(e).length||n.setNode(e,t.node(e))})),r.forEach(t.edges(),(function(e){n.setEdge(e,t.edge(e))})),n},successorWeights:function(t){var n=r.map(t.nodes(),(function(n){var e={};return r.forEach(t.outEdges(n),(function(n){e[n.w]=(e[n.w]||0)+t.edge(n).weight})),e}));return r.zipObject(t.nodes(),n)},predecessorWeights:function(t){var n=r.map(t.nodes(),(function(n){var e={};return r.forEach(t.inEdges(n),(function(n){e[n.v]=(e[n.v]||0)+t.edge(n).weight})),e}));return r.zipObject(t.nodes(),n)},intersectRect:function(t,n){var e,r,i=t.x,o=t.y,a=n.x-i,u=n.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");return Math.abs(u)*c>Math.abs(a)*l?(u<0&&(l=-l),e=l*a/u,r=l):(a<0&&(c=-c),e=c,r=c*u/a),{x:i+e,y:o+r}},buildLayerMatrix:function(t){var n=r.map(r.range(a(t)+1),(function(){return[]}));return r.forEach(t.nodes(),(function(e){var i=t.node(e),o=i.rank;r.isUndefined(o)||(n[o][i.order]=e)})),n},normalizeRanks:function(t){var n=r.minBy(r.map(t.nodes(),(function(n){return t.node(n).rank})));r.forEach(t.nodes(),(function(e){var i=t.node(e);r.has(i,"rank")&&(i.rank-=n)}))},removeEmptyRanks:function(t){var n=r.minBy(r.map(t.nodes(),(function(n){return t.node(n).rank}))),e=[];r.forEach(t.nodes(),(function(r){var i=t.node(r).rank-n;e[i]||(e[i]=[]),e[i].push(r)}));var i=0,o=t.graph().nodeRankFactor;r.forEach(e,(function(n,e){r.isUndefined(n)&&e%o!=0?--i:i&&r.forEach(n,(function(n){t.node(n).rank+=i}))}))},addBorderNode:function(t,n,e,r){var i={width:0,height:0};return arguments.length>=4&&(i.rank=e,i.order=r),o(t,"border",i,n)},maxRank:a,partition:function(t,n){var e={lhs:[],rhs:[]};return r.forEach(t,(function(t){n(t)?e.lhs.push(t):e.rhs.push(t)})),e},time:function(t,n){var e=r.now();try{return n()}finally{console.log(t+" time: "+(r.now()-e)+"ms")}},notime:function(t,n){return n()}}},8177:t=>{t.exports="0.8.2"},6508:t=>{"use strict";var n=!("undefined"==typeof window||!window.document||!window.document.createElement),e={canUseDOM:n,canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:n&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:n&&!!window.screen,isInWorker:!n};t.exports=e},7476:(t,n,e)=>{"use strict";var r=e(2334);t.exports=function t(n,e){return!(!n||!e)&&(n===e||!r(n)&&(r(e)?t(n,e.parentNode):"contains"in n?n.contains(e):!!n.compareDocumentPosition&&!!(16&n.compareDocumentPosition(e))))}},139:t=>{"use strict";function n(t){return function(){return t}}var e=function(){};e.thatReturns=n,e.thatReturnsFalse=n(!1),e.thatReturnsTrue=n(!0),e.thatReturnsNull=n(null),e.thatReturnsThis=function(){return this},e.thatReturnsArgument=function(t){return t},t.exports=e},3677:t=>{"use strict";t.exports={}},1003:t=>{"use strict";t.exports=function(t){if(void 0===(t=t||("undefined"!=typeof document?document:void 0)))return null;try{return t.activeElement||t.body}catch(n){return t.body}}},9349:t=>{"use strict";var n=/([A-Z])/g;t.exports=function(t){return t.replace(n,"-$1").toLowerCase()}},7100:(t,n,e)=>{"use strict";var r=e(9349),i=/^ms-/;t.exports=function(t){return r(t).replace(i,"-ms-")}},3759:t=>{"use strict";t.exports=function(t,n,e,r,i,o,a,u){if(!t){var c;if(void 0===n)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=[e,r,i,o,a,u],s=0;(c=new Error(n.replace(/%s/g,(function(){return l[s++]})))).name="Invariant Violation"}throw c.framesToPop=1,c}}},901:t=>{"use strict";t.exports=function(t){var n=(t?t.ownerDocument||t:document).defaultView||window;return!(!t||!("function"==typeof n.Node?t instanceof n.Node:"object"==typeof t&&"number"==typeof t.nodeType&&"string"==typeof t.nodeName))}},2334:(t,n,e)=>{"use strict";var r=e(901);t.exports=function(t){return r(t)&&3==t.nodeType}},1767:t=>{"use strict";t.exports=function(t){var n={};return function(e){return n.hasOwnProperty(e)||(n[e]=t.call(this,e)),n[e]}}},9303:t=>{"use strict";var n=Object.prototype.hasOwnProperty;function e(t,n){return t===n?0!==t||0!==n||1/t==1/n:t!=t&&n!=n}t.exports=function(t,r){if(e(t,r))return!0;if("object"!=typeof t||null===t||"object"!=typeof r||null===r)return!1;var i=Object.keys(t),o=Object.keys(r);if(i.length!==o.length)return!1;for(var a=0;a{var r=e(2354);t.exports={Graph:r.Graph,json:e(8974),alg:e(2440),version:r.version}},2842:(t,n,e)=>{var r=e(9126);t.exports=function(t){var n,e={},i=[];function o(i){r.has(e,i)||(e[i]=!0,n.push(i),r.each(t.successors(i),o),r.each(t.predecessors(i),o))}return r.each(t.nodes(),(function(t){n=[],o(t),n.length&&i.push(n)})),i}},3984:(t,n,e)=>{var r=e(9126);function i(t,n,e,o,a,u){r.has(o,n)||(o[n]=!0,e||u.push(n),r.each(a(n),(function(n){i(t,n,e,o,a,u)})),e&&u.push(n))}t.exports=function(t,n,e){r.isArray(n)||(n=[n]);var o=(t.isDirected()?t.successors:t.neighbors).bind(t),a=[],u={};return r.each(n,(function(n){if(!t.hasNode(n))throw new Error("Graph does not have node: "+n);i(t,n,"post"===e,u,o,a)})),a}},4847:(t,n,e)=>{var r=e(3763),i=e(9126);t.exports=function(t,n,e){return i.transform(t.nodes(),(function(i,o){i[o]=r(t,o,n,e)}),{})}},3763:(t,n,e)=>{var r=e(9126),i=e(5639);t.exports=function(t,n,e,r){return function(t,n,e,r){var o,a,u={},c=new i,l=function(t){var n=t.v!==o?t.v:t.w,r=u[n],i=e(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(n),e||o,r||function(n){return t.outEdges(n)})};var o=r.constant(1)},9096:(t,n,e)=>{var r=e(9126),i=e(5023);t.exports=function(t){return r.filter(i(t),(function(n){return n.length>1||1===n.length&&t.hasEdge(n[0],n[0])}))}},8924:(t,n,e)=>{var r=e(9126);t.exports=function(t,n,e){return function(t,n,e){var r={},i=t.nodes();return i.forEach((function(t){r[t]={},r[t][t]={distance:0},i.forEach((function(n){t!==n&&(r[t][n]={distance:Number.POSITIVE_INFINITY})})),e(t).forEach((function(e){var i=e.v===t?e.w:e.v,o=n(e);r[t][i]={distance:o,predecessor:t}}))})),i.forEach((function(t){var n=r[t];i.forEach((function(e){var o=r[e];i.forEach((function(e){var r=o[t],i=n[e],a=o[e],u=r.distance+i.distance;u{t.exports={components:e(2842),dijkstra:e(3763),dijkstraAll:e(4847),findCycles:e(9096),floydWarshall:e(8924),isAcyclic:e(2707),postorder:e(8828),preorder:e(2648),prim:e(514),tarjan:e(5023),topsort:e(2166)}},2707:(t,n,e)=>{var r=e(2166);t.exports=function(t){try{r(t)}catch(t){if(t instanceof r.CycleException)return!1;throw t}return!0}},8828:(t,n,e)=>{var r=e(3984);t.exports=function(t,n){return r(t,n,"post")}},2648:(t,n,e)=>{var r=e(3984);t.exports=function(t,n){return r(t,n,"pre")}},514:(t,n,e)=>{var r=e(9126),i=e(771),o=e(5639);t.exports=function(t,n){var e,a=new i,u={},c=new o;function l(t){var r=t.v===e?t.w:t.v,i=c.priority(r);if(void 0!==i){var o=n(t);o0;){if(e=c.removeMin(),r.has(u,e))a.setEdge(e,u[e]);else{if(s)throw new Error("Input graph is not connected: "+t);s=!0}t.nodeEdges(e).forEach(l)}return a}},5023:(t,n,e)=>{var r=e(9126);t.exports=function(t){var n=0,e=[],i={},o=[];function a(u){var c=i[u]={onStack:!0,lowlink:n,index:n++};if(e.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,s=[];do{l=e.pop(),i[l].onStack=!1,s.push(l)}while(u!==l);o.push(s)}}return t.nodes().forEach((function(t){r.has(i,t)||a(t)})),o}},2166:(t,n,e)=>{var r=e(9126);function i(t){var n={},e={},i=[];if(r.each(t.sinks(),(function a(u){if(r.has(e,u))throw new o;r.has(n,u)||(e[u]=!0,n[u]=!0,r.each(t.predecessors(u),a),delete e[u],i.push(u))})),r.size(n)!==t.nodeCount())throw new o;return i}function o(){}t.exports=i,i.CycleException=o},5639:(t,n,e)=>{var r=e(9126);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 n=this._keyIndices[t];if(void 0!==n)return this._arr[n].priority},i.prototype.min=function(){if(0===this.size())throw new Error("Queue underflow");return this._arr[0].key},i.prototype.add=function(t,n){var e=this._keyIndices;if(t=String(t),!r.has(e,t)){var i=this._arr,o=i.length;return e[t]=o,i.push({key:t,priority:n}),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,n){var e=this._keyIndices[t];if(n>this._arr[e].priority)throw new Error("New priority is greater than current priority. Key: "+t+" Old: "+this._arr[e].priority+" New: "+n);this._arr[e].priority=n,this._decrease(e)},i.prototype._heapify=function(t){var n=this._arr,e=2*t,r=e+1,i=t;e>1].priority{"use strict";var r=e(9126);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,n){t[n]?t[n]++:t[n]=1}function l(t,n){--t[n]||delete t[n]}function s(t,n,e,o){var u=""+n,c=""+e;if(!t&&u>c){var l=u;u=c,c=l}return u+a+c+a+(r.isUndefined(o)?i:o)}function f(t,n){return s(t,n.v,n.w,n.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(n){return r.isEmpty(t._in[n])}))},u.prototype.sinks=function(){var t=this;return r.filter(this.nodes(),(function(n){return r.isEmpty(t._out[n])}))},u.prototype.setNodes=function(t,n){var e=arguments,i=this;return r.each(t,(function(t){e.length>1?i.setNode(t,n):i.setNode(t)})),this},u.prototype.setNode=function(t,n){return r.has(this._nodes,t)?(arguments.length>1&&(this._nodes[t]=n),this):(this._nodes[t]=arguments.length>1?n: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 n=this;if(r.has(this._nodes,t)){var e=function(t){n.removeEdge(n._edgeObjs[t])};delete this._nodes[t],this._isCompound&&(this._removeFromParentsChildList(t),delete this._parent[t],r.each(this.children(t),(function(t){n.setParent(t)})),delete this._children[t]),r.each(r.keys(this._in[t]),e),delete this._in[t],delete this._preds[t],r.each(r.keys(this._out[t]),e),delete this._out[t],delete this._sucs[t],--this._nodeCount}return this},u.prototype.setParent=function(t,n){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(r.isUndefined(n))n=o;else{for(var e=n+="";!r.isUndefined(e);e=this.parent(e))if(e===t)throw new Error("Setting "+n+" as parent of "+t+" would create a cycle");this.setNode(n)}return this.setNode(t),this._removeFromParentsChildList(t),this._parent[t]=n,this._children[n][t]=!0,this},u.prototype._removeFromParentsChildList=function(t){delete this._children[this._parent[t]][t]},u.prototype.parent=function(t){if(this._isCompound){var n=this._parent[t];if(n!==o)return n}},u.prototype.children=function(t){if(r.isUndefined(t)&&(t=o),this._isCompound){var n=this._children[t];if(n)return r.keys(n)}else{if(t===o)return this.nodes();if(this.hasNode(t))return[]}},u.prototype.predecessors=function(t){var n=this._preds[t];if(n)return r.keys(n)},u.prototype.successors=function(t){var n=this._sucs[t];if(n)return r.keys(n)},u.prototype.neighbors=function(t){var n=this.predecessors(t);if(n)return r.union(n,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 n=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});n.setGraph(this.graph());var e=this;r.each(this._nodes,(function(e,r){t(r)&&n.setNode(r,e)})),r.each(this._edgeObjs,(function(t){n.hasNode(t.v)&&n.hasNode(t.w)&&n.setEdge(t,e.edge(t))}));var i={};function o(t){var r=e.parent(t);return void 0===r||n.hasNode(r)?(i[t]=r,r):r in i?i[r]:o(r)}return this._isCompound&&r.each(n.nodes(),(function(t){n.setParent(t,o(t))})),n},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,n){var e=this,i=arguments;return r.reduce(t,(function(t,r){return i.length>1?e.setEdge(t,r,n):e.setEdge(t,r),r})),this},u.prototype.setEdge=function(){var t,n,e,i,o=!1,a=arguments[0];"object"==typeof a&&null!==a&&"v"in a?(t=a.v,n=a.w,e=a.name,2===arguments.length&&(i=arguments[1],o=!0)):(t=a,n=arguments[1],e=arguments[3],arguments.length>2&&(i=arguments[2],o=!0)),t=""+t,n=""+n,r.isUndefined(e)||(e=""+e);var u=s(this._isDirected,t,n,e);if(r.has(this._edgeLabels,u))return o&&(this._edgeLabels[u]=i),this;if(!r.isUndefined(e)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(t),this.setNode(n),this._edgeLabels[u]=o?i:this._defaultEdgeLabelFn(t,n,e);var l=function(t,n,e,r){var i=""+n,o=""+e;if(!t&&i>o){var a=i;i=o,o=a}var u={v:i,w:o};return r&&(u.name=r),u}(this._isDirected,t,n,e);return t=l.v,n=l.w,Object.freeze(l),this._edgeObjs[u]=l,c(this._preds[n],t),c(this._sucs[t],n),this._in[n][u]=l,this._out[t][u]=l,this._edgeCount++,this},u.prototype.edge=function(t,n,e){var r=1===arguments.length?f(this._isDirected,arguments[0]):s(this._isDirected,t,n,e);return this._edgeLabels[r]},u.prototype.hasEdge=function(t,n,e){var i=1===arguments.length?f(this._isDirected,arguments[0]):s(this._isDirected,t,n,e);return r.has(this._edgeLabels,i)},u.prototype.removeEdge=function(t,n,e){var r=1===arguments.length?f(this._isDirected,arguments[0]):s(this._isDirected,t,n,e),i=this._edgeObjs[r];return i&&(t=i.v,n=i.w,delete this._edgeLabels[r],delete this._edgeObjs[r],l(this._preds[n],t),l(this._sucs[t],n),delete this._in[n][r],delete this._out[t][r],this._edgeCount--),this},u.prototype.inEdges=function(t,n){var e=this._in[t];if(e){var i=r.values(e);return n?r.filter(i,(function(t){return t.v===n})):i}},u.prototype.outEdges=function(t,n){var e=this._out[t];if(e){var i=r.values(e);return n?r.filter(i,(function(t){return t.w===n})):i}},u.prototype.nodeEdges=function(t,n){var e=this.inEdges(t,n);if(e)return e.concat(this.outEdges(t,n))}},2354:(t,n,e)=>{t.exports={Graph:e(771),version:e(9631)}},8974:(t,n,e)=>{var r=e(9126),i=e(771);function o(t){return r.map(t.nodes(),(function(n){var e=t.node(n),i=t.parent(n),o={v:n};return r.isUndefined(e)||(o.value=e),r.isUndefined(i)||(o.parent=i),o}))}function a(t){return r.map(t.edges(),(function(n){var e=t.edge(n),i={v:n.v,w:n.w};return r.isUndefined(n.name)||(i.name=n.name),r.isUndefined(e)||(i.value=e),i}))}t.exports={write:function(t){var n={options:{directed:t.isDirected(),multigraph:t.isMultigraph(),compound:t.isCompound()},nodes:o(t),edges:a(t)};return r.isUndefined(t.graph())||(n.value=r.clone(t.graph())),n},read:function(t){var n=new i(t.options).setGraph(t.value);return r.each(t.nodes,(function(t){n.setNode(t.v,t.value),t.parent&&n.setParent(t.v,t.parent)})),r.each(t.edges,(function(t){n.setEdge({v:t.v,w:t.w,name:t.name},t.value)})),n}}},9126:(t,n,e)=>{var r;try{r=e(6486)}catch(t){}r||(r=window._),t.exports=r},9631:t=>{t.exports="2.1.5"},6486:function(t,n,e){var r;t=e.nmd(t),function(){var i,o=200,a="Expected a function",u="__lodash_hash_undefined__",c="__lodash_placeholder__",l=1,s=2,f=4,h=1,d=2,p=1,g=2,v=4,y=8,m=16,_=32,b=64,w=128,x=256,M=512,E=800,k=16,N=1/0,S=9007199254740991,T=17976931348623157e292,C=NaN,A=4294967295,P=A-1,R=A>>>1,I=[["ary",w],["bind",p],["bindKey",g],["curry",y],["curryRight",m],["flip",M],["partial",_],["partialRight",b],["rearg",x]],O="[object Arguments]",U="[object Array]",D="[object AsyncFunction]",L="[object Boolean]",z="[object Date]",F="[object DOMException]",q="[object Error]",j="[object Function]",B="[object GeneratorFunction]",Y="[object Map]",H="[object Number]",V="[object Null]",W="[object Object]",X="[object Promise]",$="[object Proxy]",G="[object RegExp]",Q="[object Set]",Z="[object String]",K="[object Symbol]",J="[object Undefined]",tt="[object WeakMap]",nt="[object ArrayBuffer]",et="[object DataView]",rt="[object Float32Array]",it="[object Float64Array]",ot="[object Int8Array]",at="[object Int16Array]",ut="[object Int32Array]",ct="[object Uint8Array]",lt="[object Uint8ClampedArray]",st="[object Uint16Array]",ft="[object Uint32Array]",ht=/\b__p \+= '';/g,dt=/\b(__p \+=) '' \+/g,pt=/(__e\(.*?\)|\b__t\)) \+\n'';/g,gt=/&(?:amp|lt|gt|quot|#39);/g,vt=/[&<>"']/g,yt=RegExp(gt.source),mt=RegExp(vt.source),_t=/<%-([\s\S]+?)%>/g,bt=/<%([\s\S]+?)%>/g,wt=/<%=([\s\S]+?)%>/g,xt=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Mt=/^\w*$/,Et=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,kt=/[\\^$.*+?()[\]{}|]/g,Nt=RegExp(kt.source),St=/^\s+|\s+$/g,Tt=/^\s+/,Ct=/\s+$/,At=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Pt=/\{\n\/\* \[wrapped with (.+)\] \*/,Rt=/,? & /,It=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Ot=/\\(\\)?/g,Ut=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Dt=/\w*$/,Lt=/^[-+]0x[0-9a-f]+$/i,zt=/^0b[01]+$/i,Ft=/^\[object .+?Constructor\]$/,qt=/^0o[0-7]+$/i,jt=/^(?:0|[1-9]\d*)$/,Bt=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Yt=/($^)/,Ht=/['\n\r\u2028\u2029\\]/g,Vt="\\ud800-\\udfff",Wt="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Xt="\\u2700-\\u27bf",$t="a-z\\xdf-\\xf6\\xf8-\\xff",Gt="A-Z\\xc0-\\xd6\\xd8-\\xde",Qt="\\ufe0e\\ufe0f",Zt="\\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",Kt="["+Vt+"]",Jt="["+Zt+"]",tn="["+Wt+"]",nn="\\d+",en="["+Xt+"]",rn="["+$t+"]",on="[^"+Vt+Zt+nn+Xt+$t+Gt+"]",an="\\ud83c[\\udffb-\\udfff]",un="[^"+Vt+"]",cn="(?:\\ud83c[\\udde6-\\uddff]){2}",ln="[\\ud800-\\udbff][\\udc00-\\udfff]",sn="["+Gt+"]",fn="\\u200d",hn="(?:"+rn+"|"+on+")",dn="(?:"+sn+"|"+on+")",pn="(?:['’](?:d|ll|m|re|s|t|ve))?",gn="(?:['’](?:D|LL|M|RE|S|T|VE))?",vn="(?:"+tn+"|"+an+")?",yn="["+Qt+"]?",mn=yn+vn+"(?:"+fn+"(?:"+[un,cn,ln].join("|")+")"+yn+vn+")*",_n="(?:"+[en,cn,ln].join("|")+")"+mn,bn="(?:"+[un+tn+"?",tn,cn,ln,Kt].join("|")+")",wn=RegExp("['’]","g"),xn=RegExp(tn,"g"),Mn=RegExp(an+"(?="+an+")|"+bn+mn,"g"),En=RegExp([sn+"?"+rn+"+"+pn+"(?="+[Jt,sn,"$"].join("|")+")",dn+"+"+gn+"(?="+[Jt,sn+hn,"$"].join("|")+")",sn+"?"+hn+"+"+pn,sn+"+"+gn,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",nn,_n].join("|"),"g"),kn=RegExp("["+fn+Vt+Wt+Qt+"]"),Nn=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Sn=["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"],Tn=-1,Cn={};Cn[rt]=Cn[it]=Cn[ot]=Cn[at]=Cn[ut]=Cn[ct]=Cn[lt]=Cn[st]=Cn[ft]=!0,Cn[O]=Cn[U]=Cn[nt]=Cn[L]=Cn[et]=Cn[z]=Cn[q]=Cn[j]=Cn[Y]=Cn[H]=Cn[W]=Cn[G]=Cn[Q]=Cn[Z]=Cn[tt]=!1;var An={};An[O]=An[U]=An[nt]=An[et]=An[L]=An[z]=An[rt]=An[it]=An[ot]=An[at]=An[ut]=An[Y]=An[H]=An[W]=An[G]=An[Q]=An[Z]=An[K]=An[ct]=An[lt]=An[st]=An[ft]=!0,An[q]=An[j]=An[tt]=!1;var Pn={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Rn=parseFloat,In=parseInt,On="object"==typeof e.g&&e.g&&e.g.Object===Object&&e.g,Un="object"==typeof self&&self&&self.Object===Object&&self,Dn=On||Un||Function("return this")(),Ln=n&&!n.nodeType&&n,zn=Ln&&t&&!t.nodeType&&t,Fn=zn&&zn.exports===Ln,qn=Fn&&On.process,jn=function(){try{return zn&&zn.require&&zn.require("util").types||qn&&qn.binding&&qn.binding("util")}catch(t){}}(),Bn=jn&&jn.isArrayBuffer,Yn=jn&&jn.isDate,Hn=jn&&jn.isMap,Vn=jn&&jn.isRegExp,Wn=jn&&jn.isSet,Xn=jn&&jn.isTypedArray;function $n(t,n,e){switch(e.length){case 0:return t.call(n);case 1:return t.call(n,e[0]);case 2:return t.call(n,e[0],e[1]);case 3:return t.call(n,e[0],e[1],e[2])}return t.apply(n,e)}function Gn(t,n,e,r){for(var i=-1,o=null==t?0:t.length;++i-1}function ne(t,n,e){for(var r=-1,i=null==t?0:t.length;++r-1;);return e}function Me(t,n){for(var e=t.length;e--&&se(n,t[e],0)>-1;);return e}var Ee=ge({À:"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"}),ke=ge({"&":"&","<":"<",">":">",'"':""","'":"'"});function Ne(t){return"\\"+Pn[t]}function Se(t){return kn.test(t)}function Te(t){var n=-1,e=Array(t.size);return t.forEach((function(t,r){e[++n]=[r,t]})),e}function Ce(t,n){return function(e){return t(n(e))}}function Ae(t,n){for(var e=-1,r=t.length,i=0,o=[];++e",""":'"',"'":"'"}),De=function t(n){var e,r=(n=null==n?Dn:De.defaults(Dn.Object(),n,De.pick(Dn,Sn))).Array,Vt=n.Date,Wt=n.Error,Xt=n.Function,$t=n.Math,Gt=n.Object,Qt=n.RegExp,Zt=n.String,Kt=n.TypeError,Jt=r.prototype,tn=Xt.prototype,nn=Gt.prototype,en=n["__core-js_shared__"],rn=tn.toString,on=nn.hasOwnProperty,an=0,un=(e=/[^.]+$/.exec(en&&en.keys&&en.keys.IE_PROTO||""))?"Symbol(src)_1."+e:"",cn=nn.toString,ln=rn.call(Gt),sn=Dn._,fn=Qt("^"+rn.call(on).replace(kt,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),hn=Fn?n.Buffer:i,dn=n.Symbol,pn=n.Uint8Array,gn=hn?hn.allocUnsafe:i,vn=Ce(Gt.getPrototypeOf,Gt),yn=Gt.create,mn=nn.propertyIsEnumerable,_n=Jt.splice,bn=dn?dn.isConcatSpreadable:i,Mn=dn?dn.iterator:i,kn=dn?dn.toStringTag:i,Pn=function(){try{var t=Ro(Gt,"defineProperty");return t({},"",{}),t}catch(t){}}(),On=n.clearTimeout!==Dn.clearTimeout&&n.clearTimeout,Un=Vt&&Vt.now!==Dn.Date.now&&Vt.now,Ln=n.setTimeout!==Dn.setTimeout&&n.setTimeout,zn=$t.ceil,qn=$t.floor,jn=Gt.getOwnPropertySymbols,ue=hn?hn.isBuffer:i,ge=n.isFinite,Le=Jt.join,ze=Ce(Gt.keys,Gt),Fe=$t.max,qe=$t.min,je=Vt.now,Be=n.parseInt,Ye=$t.random,He=Jt.reverse,Ve=Ro(n,"DataView"),We=Ro(n,"Map"),Xe=Ro(n,"Promise"),$e=Ro(n,"Set"),Ge=Ro(n,"WeakMap"),Qe=Ro(Gt,"create"),Ze=Ge&&new Ge,Ke={},Je=aa(Ve),tr=aa(We),nr=aa(Xe),er=aa($e),rr=aa(Ge),ir=dn?dn.prototype:i,or=ir?ir.valueOf:i,ar=ir?ir.toString:i;function ur(t){if(Mu(t)&&!hu(t)&&!(t instanceof fr)){if(t instanceof sr)return t;if(on.call(t,"__wrapped__"))return ua(t)}return new sr(t)}var cr=function(){function t(){}return function(n){if(!xu(n))return{};if(yn)return yn(n);t.prototype=n;var e=new t;return t.prototype=i,e}}();function lr(){}function sr(t,n){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!n,this.__index__=0,this.__values__=i}function fr(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=A,this.__views__=[]}function hr(t){var n=-1,e=null==t?0:t.length;for(this.clear();++n=n?t:n)),t}function Cr(t,n,e,r,o,a){var u,c=n&l,h=n&s,d=n&f;if(e&&(u=o?e(t,r,o,a):e(t)),u!==i)return u;if(!xu(t))return t;var p=hu(t);if(p){if(u=function(t){var n=t.length,e=new t.constructor(n);return n&&"string"==typeof t[0]&&on.call(t,"index")&&(e.index=t.index,e.input=t.input),e}(t),!c)return Gi(t,u)}else{var g=Uo(t),v=g==j||g==B;if(vu(t))return Yi(t,c);if(g==W||g==O||v&&!o){if(u=h||v?{}:Lo(t),!c)return h?function(t,n){return Qi(t,Oo(t),n)}(t,function(t,n){return t&&Qi(n,tc(n),t)}(u,t)):function(t,n){return Qi(t,Io(t),n)}(t,kr(u,t))}else{if(!An[g])return o?t:{};u=function(t,n,e){var r,i=t.constructor;switch(n){case nt:return Hi(t);case L:case z:return new i(+t);case et:return function(t,n){var e=n?Hi(t.buffer):t.buffer;return new t.constructor(e,t.byteOffset,t.byteLength)}(t,e);case rt:case it:case ot:case at:case ut:case ct:case lt:case st:case ft:return Vi(t,e);case Y:return new i;case H:case Z:return new i(t);case G:return function(t){var n=new t.constructor(t.source,Dt.exec(t));return n.lastIndex=t.lastIndex,n}(t);case Q:return new i;case K:return r=t,or?Gt(or.call(r)):{}}}(t,g,c)}}a||(a=new vr);var y=a.get(t);if(y)return y;a.set(t,u),Tu(t)?t.forEach((function(r){u.add(Cr(r,n,e,r,t,a))})):Eu(t)&&t.forEach((function(r,i){u.set(i,Cr(r,n,e,i,t,a))}));var m=p?i:(d?h?ko:Eo:h?tc:Ju)(t);return Qn(m||t,(function(r,i){m&&(r=t[i=r]),xr(u,i,Cr(r,n,e,i,t,a))})),u}function Ar(t,n,e){var r=e.length;if(null==t)return!r;for(t=Gt(t);r--;){var o=e[r],a=n[o],u=t[o];if(u===i&&!(o in t)||!a(u))return!1}return!0}function Pr(t,n,e){if("function"!=typeof t)throw new Kt(a);return Zo((function(){t.apply(i,e)}),n)}function Rr(t,n,e,r){var i=-1,a=te,u=!0,c=t.length,l=[],s=n.length;if(!c)return l;e&&(n=ee(n,_e(e))),r?(a=ne,u=!1):n.length>=o&&(a=we,u=!1,n=new gr(n));t:for(;++i-1},dr.prototype.set=function(t,n){var e=this.__data__,r=Mr(e,t);return r<0?(++this.size,e.push([t,n])):e[r][1]=n,this},pr.prototype.clear=function(){this.size=0,this.__data__={hash:new hr,map:new(We||dr),string:new hr}},pr.prototype.delete=function(t){var n=Ao(this,t).delete(t);return this.size-=n?1:0,n},pr.prototype.get=function(t){return Ao(this,t).get(t)},pr.prototype.has=function(t){return Ao(this,t).has(t)},pr.prototype.set=function(t,n){var e=Ao(this,t),r=e.size;return e.set(t,n),this.size+=e.size==r?0:1,this},gr.prototype.add=gr.prototype.push=function(t){return this.__data__.set(t,u),this},gr.prototype.has=function(t){return this.__data__.has(t)},vr.prototype.clear=function(){this.__data__=new dr,this.size=0},vr.prototype.delete=function(t){var n=this.__data__,e=n.delete(t);return this.size=n.size,e},vr.prototype.get=function(t){return this.__data__.get(t)},vr.prototype.has=function(t){return this.__data__.has(t)},vr.prototype.set=function(t,n){var e=this.__data__;if(e instanceof dr){var r=e.__data__;if(!We||r.length0&&e(u)?n>1?zr(u,n-1,e,r,i):re(i,u):r||(i[i.length]=u)}return i}var Fr=to(),qr=to(!0);function jr(t,n){return t&&Fr(t,n,Ju)}function Br(t,n){return t&&qr(t,n,Ju)}function Yr(t,n){return Jn(n,(function(n){return _u(t[n])}))}function Hr(t,n){for(var e=0,r=(n=Fi(n,t)).length;null!=t&&en}function $r(t,n){return null!=t&&on.call(t,n)}function Gr(t,n){return null!=t&&n in Gt(t)}function Qr(t,n,e){for(var o=e?ne:te,a=t[0].length,u=t.length,c=u,l=r(u),s=1/0,f=[];c--;){var h=t[c];c&&n&&(h=ee(h,_e(n))),s=qe(h.length,s),l[c]=!e&&(n||a>=120&&h.length>=120)?new gr(c&&h):i}h=t[0];var d=-1,p=l[0];t:for(;++d=u?c:c*("desc"==e[r]?-1:1)}return t.index-n.index}(t,n,e)}));r--;)t[r]=t[r].value;return t}(i)}function fi(t,n,e){for(var r=-1,i=n.length,o={};++r-1;)u!==t&&_n.call(u,c,1),_n.call(t,c,1);return t}function di(t,n){for(var e=t?n.length:0,r=e-1;e--;){var i=n[e];if(e==r||i!==o){var o=i;Fo(i)?_n.call(t,i,1):Pi(t,i)}}return t}function pi(t,n){return t+qn(Ye()*(n-t+1))}function gi(t,n){var e="";if(!t||n<1||n>S)return e;do{n%2&&(e+=t),(n=qn(n/2))&&(t+=t)}while(n);return e}function vi(t,n){return Ko(Xo(t,n,kc),t+"")}function yi(t){return mr(cc(t))}function mi(t,n){var e=cc(t);return na(e,Tr(n,0,e.length))}function _i(t,n,e,r){if(!xu(t))return t;for(var o=-1,a=(n=Fi(n,t)).length,u=a-1,c=t;null!=c&&++oo?0:o+n),(e=e>o?o:e)<0&&(e+=o),o=n>e?0:e-n>>>0,n>>>=0;for(var a=r(o);++i>>1,a=t[o];null!==a&&!Au(a)&&(e?a<=n:a=o){var s=n?null:vo(t);if(s)return Pe(s);u=!1,i=we,l=new gr}else l=n?[]:c;t:for(;++r=r?t:Mi(t,n,e)}var Bi=On||function(t){return Dn.clearTimeout(t)};function Yi(t,n){if(n)return t.slice();var e=t.length,r=gn?gn(e):new t.constructor(e);return t.copy(r),r}function Hi(t){var n=new t.constructor(t.byteLength);return new pn(n).set(new pn(t)),n}function Vi(t,n){var e=n?Hi(t.buffer):t.buffer;return new t.constructor(e,t.byteOffset,t.length)}function Wi(t,n){if(t!==n){var e=t!==i,r=null===t,o=t==t,a=Au(t),u=n!==i,c=null===n,l=n==n,s=Au(n);if(!c&&!s&&!a&&t>n||a&&u&&l&&!c&&!s||r&&u&&l||!e&&l||!o)return 1;if(!r&&!a&&!s&&t1?e[o-1]:i,u=o>2?e[2]:i;for(a=t.length>3&&"function"==typeof a?(o--,a):i,u&&qo(e[0],e[1],u)&&(a=o<3?i:a,o=1),n=Gt(n);++r-1?o[a?n[u]:u]:i}}function oo(t){return Mo((function(n){var e=n.length,r=e,o=sr.prototype.thru;for(t&&n.reverse();r--;){var u=n[r];if("function"!=typeof u)throw new Kt(a);if(o&&!c&&"wrapper"==So(u))var c=new sr([],!0)}for(r=c?r:e;++r1&&y.reverse(),h&&sc))return!1;var s=a.get(t);if(s&&a.get(n))return s==n;var f=-1,p=!0,g=e&d?new gr:i;for(a.set(t,n),a.set(n,t);++f-1&&t%1==0&&t1?"& ":"")+n[r],n=n.join(e>2?", ":" "),t.replace(At,"{\n/* [wrapped with "+n+"] */\n")}(r,function(t,n){return Qn(I,(function(e){var r="_."+e[0];n&e[1]&&!te(t,r)&&t.push(r)})),t.sort()}(function(t){var n=t.match(Pt);return n?n[1].split(Rt):[]}(r),e)))}function ta(t){var n=0,e=0;return function(){var r=je(),o=k-(r-e);if(e=r,o>0){if(++n>=E)return arguments[0]}else n=0;return t.apply(i,arguments)}}function na(t,n){var e=-1,r=t.length,o=r-1;for(n=n===i?r:n;++e1?t[n-1]:i;return e="function"==typeof e?(t.pop(),e):i,Sa(t,e)}));function Oa(t){var n=ur(t);return n.__chain__=!0,n}function Ua(t,n){return n(t)}var Da=Mo((function(t){var n=t.length,e=n?t[0]:0,r=this.__wrapped__,o=function(n){return Sr(n,t)};return!(n>1||this.__actions__.length)&&r instanceof fr&&Fo(e)?((r=r.slice(e,+e+(n?1:0))).__actions__.push({func:Ua,args:[o],thisArg:i}),new sr(r,this.__chain__).thru((function(t){return n&&!t.length&&t.push(i),t}))):this.thru(o)})),La=Zi((function(t,n,e){on.call(t,e)?++t[e]:Nr(t,e,1)})),za=io(fa),Fa=io(ha);function qa(t,n){return(hu(t)?Qn:Ir)(t,Co(n,3))}function ja(t,n){return(hu(t)?Zn:Or)(t,Co(n,3))}var Ba=Zi((function(t,n,e){on.call(t,e)?t[e].push(n):Nr(t,e,[n])})),Ya=vi((function(t,n,e){var i=-1,o="function"==typeof n,a=pu(t)?r(t.length):[];return Ir(t,(function(t){a[++i]=o?$n(n,t,e):Zr(t,n,e)})),a})),Ha=Zi((function(t,n,e){Nr(t,e,n)}));function Va(t,n){return(hu(t)?ee:oi)(t,Co(n,3))}var Wa=Zi((function(t,n,e){t[e?0:1].push(n)}),(function(){return[[],[]]})),Xa=vi((function(t,n){if(null==t)return[];var e=n.length;return e>1&&qo(t,n[0],n[1])?n=[]:e>2&&qo(n[0],n[1],n[2])&&(n=[n[0]]),si(t,zr(n,1),[])})),$a=Un||function(){return Dn.Date.now()};function Ga(t,n,e){return n=e?i:n,n=t&&null==n?t.length:n,mo(t,w,i,i,i,i,n)}function Qa(t,n){var e;if("function"!=typeof n)throw new Kt(a);return t=Du(t),function(){return--t>0&&(e=n.apply(this,arguments)),t<=1&&(n=i),e}}var Za=vi((function(t,n,e){var r=p;if(e.length){var i=Ae(e,To(Za));r|=_}return mo(t,r,n,e,i)})),Ka=vi((function(t,n,e){var r=p|g;if(e.length){var i=Ae(e,To(Ka));r|=_}return mo(n,r,t,e,i)}));function Ja(t,n,e){var r,o,u,c,l,s,f=0,h=!1,d=!1,p=!0;if("function"!=typeof t)throw new Kt(a);function g(n){var e=r,a=o;return r=o=i,f=n,c=t.apply(a,e)}function v(t){var e=t-s;return s===i||e>=n||e<0||d&&t-f>=u}function y(){var t=$a();if(v(t))return m(t);l=Zo(y,function(t){var e=n-(t-s);return d?qe(e,u-(t-f)):e}(t))}function m(t){return l=i,p&&r?g(t):(r=o=i,c)}function _(){var t=$a(),e=v(t);if(r=arguments,o=this,s=t,e){if(l===i)return function(t){return f=t,l=Zo(y,n),h?g(t):c}(s);if(d)return Bi(l),l=Zo(y,n),g(s)}return l===i&&(l=Zo(y,n)),c}return n=zu(n)||0,xu(e)&&(h=!!e.leading,u=(d="maxWait"in e)?Fe(zu(e.maxWait)||0,n):u,p="trailing"in e?!!e.trailing:p),_.cancel=function(){l!==i&&Bi(l),f=0,r=s=o=l=i},_.flush=function(){return l===i?c:m($a())},_}var tu=vi((function(t,n){return Pr(t,1,n)})),nu=vi((function(t,n,e){return Pr(t,zu(n)||0,e)}));function eu(t,n){if("function"!=typeof t||null!=n&&"function"!=typeof n)throw new Kt(a);var e=function(){var r=arguments,i=n?n.apply(this,r):r[0],o=e.cache;if(o.has(i))return o.get(i);var a=t.apply(this,r);return e.cache=o.set(i,a)||o,a};return e.cache=new(eu.Cache||pr),e}function ru(t){if("function"!=typeof t)throw new Kt(a);return function(){var n=arguments;switch(n.length){case 0:return!t.call(this);case 1:return!t.call(this,n[0]);case 2:return!t.call(this,n[0],n[1]);case 3:return!t.call(this,n[0],n[1],n[2])}return!t.apply(this,n)}}eu.Cache=pr;var iu=qi((function(t,n){var e=(n=1==n.length&&hu(n[0])?ee(n[0],_e(Co())):ee(zr(n,1),_e(Co()))).length;return vi((function(r){for(var i=-1,o=qe(r.length,e);++i=n})),fu=Kr(function(){return arguments}())?Kr:function(t){return Mu(t)&&on.call(t,"callee")&&!mn.call(t,"callee")},hu=r.isArray,du=Bn?_e(Bn):function(t){return Mu(t)&&Wr(t)==nt};function pu(t){return null!=t&&wu(t.length)&&!_u(t)}function gu(t){return Mu(t)&&pu(t)}var vu=ue||zc,yu=Yn?_e(Yn):function(t){return Mu(t)&&Wr(t)==z};function mu(t){if(!Mu(t))return!1;var n=Wr(t);return n==q||n==F||"string"==typeof t.message&&"string"==typeof t.name&&!Nu(t)}function _u(t){if(!xu(t))return!1;var n=Wr(t);return n==j||n==B||n==D||n==$}function bu(t){return"number"==typeof t&&t==Du(t)}function wu(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=S}function xu(t){var n=typeof t;return null!=t&&("object"==n||"function"==n)}function Mu(t){return null!=t&&"object"==typeof t}var Eu=Hn?_e(Hn):function(t){return Mu(t)&&Uo(t)==Y};function ku(t){return"number"==typeof t||Mu(t)&&Wr(t)==H}function Nu(t){if(!Mu(t)||Wr(t)!=W)return!1;var n=vn(t);if(null===n)return!0;var e=on.call(n,"constructor")&&n.constructor;return"function"==typeof e&&e instanceof e&&rn.call(e)==ln}var Su=Vn?_e(Vn):function(t){return Mu(t)&&Wr(t)==G},Tu=Wn?_e(Wn):function(t){return Mu(t)&&Uo(t)==Q};function Cu(t){return"string"==typeof t||!hu(t)&&Mu(t)&&Wr(t)==Z}function Au(t){return"symbol"==typeof t||Mu(t)&&Wr(t)==K}var Pu=Xn?_e(Xn):function(t){return Mu(t)&&wu(t.length)&&!!Cn[Wr(t)]},Ru=ho(ii),Iu=ho((function(t,n){return t<=n}));function Ou(t){if(!t)return[];if(pu(t))return Cu(t)?Oe(t):Gi(t);if(Mn&&t[Mn])return function(t){for(var n,e=[];!(n=t.next()).done;)e.push(n.value);return e}(t[Mn]());var n=Uo(t);return(n==Y?Te:n==Q?Pe:cc)(t)}function Uu(t){return t?(t=zu(t))===N||t===-N?(t<0?-1:1)*T:t==t?t:0:0===t?t:0}function Du(t){var n=Uu(t),e=n%1;return n==n?e?n-e:n:0}function Lu(t){return t?Tr(Du(t),0,A):0}function zu(t){if("number"==typeof t)return t;if(Au(t))return C;if(xu(t)){var n="function"==typeof t.valueOf?t.valueOf():t;t=xu(n)?n+"":n}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(St,"");var e=zt.test(t);return e||qt.test(t)?In(t.slice(2),e?2:8):Lt.test(t)?C:+t}function Fu(t){return Qi(t,tc(t))}function qu(t){return null==t?"":Ci(t)}var ju=Ki((function(t,n){if(Ho(n)||pu(n))Qi(n,Ju(n),t);else for(var e in n)on.call(n,e)&&xr(t,e,n[e])})),Bu=Ki((function(t,n){Qi(n,tc(n),t)})),Yu=Ki((function(t,n,e,r){Qi(n,tc(n),t,r)})),Hu=Ki((function(t,n,e,r){Qi(n,Ju(n),t,r)})),Vu=Mo(Sr),Wu=vi((function(t,n){t=Gt(t);var e=-1,r=n.length,o=r>2?n[2]:i;for(o&&qo(n[0],n[1],o)&&(r=1);++e1),n})),Qi(t,ko(t),e),r&&(e=Cr(e,l|s|f,wo));for(var i=n.length;i--;)Pi(e,n[i]);return e})),ic=Mo((function(t,n){return null==t?{}:function(t,n){return fi(t,n,(function(n,e){return Gu(t,e)}))}(t,n)}));function oc(t,n){if(null==t)return{};var e=ee(ko(t),(function(t){return[t]}));return n=Co(n),fi(t,e,(function(t,e){return n(t,e[0])}))}var ac=yo(Ju),uc=yo(tc);function cc(t){return null==t?[]:be(t,Ju(t))}var lc=eo((function(t,n,e){return n=n.toLowerCase(),t+(e?sc(n):n)}));function sc(t){return mc(qu(t).toLowerCase())}function fc(t){return(t=qu(t))&&t.replace(Bt,Ee).replace(xn,"")}var hc=eo((function(t,n,e){return t+(e?"-":"")+n.toLowerCase()})),dc=eo((function(t,n,e){return t+(e?" ":"")+n.toLowerCase()})),pc=no("toLowerCase"),gc=eo((function(t,n,e){return t+(e?"_":"")+n.toLowerCase()})),vc=eo((function(t,n,e){return t+(e?" ":"")+mc(n)})),yc=eo((function(t,n,e){return t+(e?" ":"")+n.toUpperCase()})),mc=no("toUpperCase");function _c(t,n,e){return t=qu(t),(n=e?i:n)===i?function(t){return Nn.test(t)}(t)?function(t){return t.match(En)||[]}(t):function(t){return t.match(It)||[]}(t):t.match(n)||[]}var bc=vi((function(t,n){try{return $n(t,i,n)}catch(t){return mu(t)?t:new Wt(t)}})),wc=Mo((function(t,n){return Qn(n,(function(n){n=oa(n),Nr(t,n,Za(t[n],t))})),t}));function xc(t){return function(){return t}}var Mc=oo(),Ec=oo(!0);function kc(t){return t}function Nc(t){return ei("function"==typeof t?t:Cr(t,l))}var Sc=vi((function(t,n){return function(e){return Zr(e,t,n)}})),Tc=vi((function(t,n){return function(e){return Zr(t,e,n)}}));function Cc(t,n,e){var r=Ju(n),i=Yr(n,r);null!=e||xu(n)&&(i.length||!r.length)||(e=n,n=t,t=this,i=Yr(n,Ju(n)));var o=!(xu(e)&&"chain"in e&&!e.chain),a=_u(t);return Qn(i,(function(e){var r=n[e];t[e]=r,a&&(t.prototype[e]=function(){var n=this.__chain__;if(o||n){var e=t(this.__wrapped__);return(e.__actions__=Gi(this.__actions__)).push({func:r,args:arguments,thisArg:t}),e.__chain__=n,e}return r.apply(t,re([this.value()],arguments))})})),t}function Ac(){}var Pc=lo(ee),Rc=lo(Kn),Ic=lo(ae);function Oc(t){return jo(t)?pe(oa(t)):function(t){return function(n){return Hr(n,t)}}(t)}var Uc=fo(),Dc=fo(!0);function Lc(){return[]}function zc(){return!1}var Fc,qc=co((function(t,n){return t+n}),0),jc=go("ceil"),Bc=co((function(t,n){return t/n}),1),Yc=go("floor"),Hc=co((function(t,n){return t*n}),1),Vc=go("round"),Wc=co((function(t,n){return t-n}),0);return ur.after=function(t,n){if("function"!=typeof n)throw new Kt(a);return t=Du(t),function(){if(--t<1)return n.apply(this,arguments)}},ur.ary=Ga,ur.assign=ju,ur.assignIn=Bu,ur.assignInWith=Yu,ur.assignWith=Hu,ur.at=Vu,ur.before=Qa,ur.bind=Za,ur.bindAll=wc,ur.bindKey=Ka,ur.castArray=function(){if(!arguments.length)return[];var t=arguments[0];return hu(t)?t:[t]},ur.chain=Oa,ur.chunk=function(t,n,e){n=(e?qo(t,n,e):n===i)?1:Fe(Du(n),0);var o=null==t?0:t.length;if(!o||n<1)return[];for(var a=0,u=0,c=r(zn(o/n));ao?0:o+e),(r=r===i||r>o?o:Du(r))<0&&(r+=o),r=e>r?0:Lu(r);e>>0)?(t=qu(t))&&("string"==typeof n||null!=n&&!Su(n))&&!(n=Ci(n))&&Se(t)?ji(Oe(t),0,e):t.split(n,e):[]},ur.spread=function(t,n){if("function"!=typeof t)throw new Kt(a);return n=null==n?0:Fe(Du(n),0),vi((function(e){var r=e[n],i=ji(e,0,n);return r&&re(i,r),$n(t,this,i)}))},ur.tail=function(t){var n=null==t?0:t.length;return n?Mi(t,1,n):[]},ur.take=function(t,n,e){return t&&t.length?Mi(t,0,(n=e||n===i?1:Du(n))<0?0:n):[]},ur.takeRight=function(t,n,e){var r=null==t?0:t.length;return r?Mi(t,(n=r-(n=e||n===i?1:Du(n)))<0?0:n,r):[]},ur.takeRightWhile=function(t,n){return t&&t.length?Ii(t,Co(n,3),!1,!0):[]},ur.takeWhile=function(t,n){return t&&t.length?Ii(t,Co(n,3)):[]},ur.tap=function(t,n){return n(t),t},ur.throttle=function(t,n,e){var r=!0,i=!0;if("function"!=typeof t)throw new Kt(a);return xu(e)&&(r="leading"in e?!!e.leading:r,i="trailing"in e?!!e.trailing:i),Ja(t,n,{leading:r,maxWait:n,trailing:i})},ur.thru=Ua,ur.toArray=Ou,ur.toPairs=ac,ur.toPairsIn=uc,ur.toPath=function(t){return hu(t)?ee(t,oa):Au(t)?[t]:Gi(ia(qu(t)))},ur.toPlainObject=Fu,ur.transform=function(t,n,e){var r=hu(t),i=r||vu(t)||Pu(t);if(n=Co(n,4),null==e){var o=t&&t.constructor;e=i?r?new o:[]:xu(t)&&_u(o)?cr(vn(t)):{}}return(i?Qn:jr)(t,(function(t,r,i){return n(e,t,r,i)})),e},ur.unary=function(t){return Ga(t,1)},ur.union=Ma,ur.unionBy=Ea,ur.unionWith=ka,ur.uniq=function(t){return t&&t.length?Ai(t):[]},ur.uniqBy=function(t,n){return t&&t.length?Ai(t,Co(n,2)):[]},ur.uniqWith=function(t,n){return n="function"==typeof n?n:i,t&&t.length?Ai(t,i,n):[]},ur.unset=function(t,n){return null==t||Pi(t,n)},ur.unzip=Na,ur.unzipWith=Sa,ur.update=function(t,n,e){return null==t?t:Ri(t,n,zi(e))},ur.updateWith=function(t,n,e,r){return r="function"==typeof r?r:i,null==t?t:Ri(t,n,zi(e),r)},ur.values=cc,ur.valuesIn=function(t){return null==t?[]:be(t,tc(t))},ur.without=Ta,ur.words=_c,ur.wrap=function(t,n){return ou(zi(n),t)},ur.xor=Ca,ur.xorBy=Aa,ur.xorWith=Pa,ur.zip=Ra,ur.zipObject=function(t,n){return Di(t||[],n||[],xr)},ur.zipObjectDeep=function(t,n){return Di(t||[],n||[],_i)},ur.zipWith=Ia,ur.entries=ac,ur.entriesIn=uc,ur.extend=Bu,ur.extendWith=Yu,Cc(ur,ur),ur.add=qc,ur.attempt=bc,ur.camelCase=lc,ur.capitalize=sc,ur.ceil=jc,ur.clamp=function(t,n,e){return e===i&&(e=n,n=i),e!==i&&(e=(e=zu(e))==e?e:0),n!==i&&(n=(n=zu(n))==n?n:0),Tr(zu(t),n,e)},ur.clone=function(t){return Cr(t,f)},ur.cloneDeep=function(t){return Cr(t,l|f)},ur.cloneDeepWith=function(t,n){return Cr(t,l|f,n="function"==typeof n?n:i)},ur.cloneWith=function(t,n){return Cr(t,f,n="function"==typeof n?n:i)},ur.conformsTo=function(t,n){return null==n||Ar(t,n,Ju(n))},ur.deburr=fc,ur.defaultTo=function(t,n){return null==t||t!=t?n:t},ur.divide=Bc,ur.endsWith=function(t,n,e){t=qu(t),n=Ci(n);var r=t.length,o=e=e===i?r:Tr(Du(e),0,r);return(e-=n.length)>=0&&t.slice(e,o)==n},ur.eq=cu,ur.escape=function(t){return(t=qu(t))&&mt.test(t)?t.replace(vt,ke):t},ur.escapeRegExp=function(t){return(t=qu(t))&&Nt.test(t)?t.replace(kt,"\\$&"):t},ur.every=function(t,n,e){var r=hu(t)?Kn:Ur;return e&&qo(t,n,e)&&(n=i),r(t,Co(n,3))},ur.find=za,ur.findIndex=fa,ur.findKey=function(t,n){return ce(t,Co(n,3),jr)},ur.findLast=Fa,ur.findLastIndex=ha,ur.findLastKey=function(t,n){return ce(t,Co(n,3),Br)},ur.floor=Yc,ur.forEach=qa,ur.forEachRight=ja,ur.forIn=function(t,n){return null==t?t:Fr(t,Co(n,3),tc)},ur.forInRight=function(t,n){return null==t?t:qr(t,Co(n,3),tc)},ur.forOwn=function(t,n){return t&&jr(t,Co(n,3))},ur.forOwnRight=function(t,n){return t&&Br(t,Co(n,3))},ur.get=$u,ur.gt=lu,ur.gte=su,ur.has=function(t,n){return null!=t&&Do(t,n,$r)},ur.hasIn=Gu,ur.head=pa,ur.identity=kc,ur.includes=function(t,n,e,r){t=pu(t)?t:cc(t),e=e&&!r?Du(e):0;var i=t.length;return e<0&&(e=Fe(i+e,0)),Cu(t)?e<=i&&t.indexOf(n,e)>-1:!!i&&se(t,n,e)>-1},ur.indexOf=function(t,n,e){var r=null==t?0:t.length;if(!r)return-1;var i=null==e?0:Du(e);return i<0&&(i=Fe(r+i,0)),se(t,n,i)},ur.inRange=function(t,n,e){return n=Uu(n),e===i?(e=n,n=0):e=Uu(e),function(t,n,e){return t>=qe(n,e)&&t=-S&&t<=S},ur.isSet=Tu,ur.isString=Cu,ur.isSymbol=Au,ur.isTypedArray=Pu,ur.isUndefined=function(t){return t===i},ur.isWeakMap=function(t){return Mu(t)&&Uo(t)==tt},ur.isWeakSet=function(t){return Mu(t)&&"[object WeakSet]"==Wr(t)},ur.join=function(t,n){return null==t?"":Le.call(t,n)},ur.kebabCase=hc,ur.last=ma,ur.lastIndexOf=function(t,n,e){var r=null==t?0:t.length;if(!r)return-1;var o=r;return e!==i&&(o=(o=Du(e))<0?Fe(r+o,0):qe(o,r-1)),n==n?function(t,n,e){for(var r=e+1;r--;)if(t[r]===n)return r;return r}(t,n,o):le(t,he,o,!0)},ur.lowerCase=dc,ur.lowerFirst=pc,ur.lt=Ru,ur.lte=Iu,ur.max=function(t){return t&&t.length?Dr(t,kc,Xr):i},ur.maxBy=function(t,n){return t&&t.length?Dr(t,Co(n,2),Xr):i},ur.mean=function(t){return de(t,kc)},ur.meanBy=function(t,n){return de(t,Co(n,2))},ur.min=function(t){return t&&t.length?Dr(t,kc,ii):i},ur.minBy=function(t,n){return t&&t.length?Dr(t,Co(n,2),ii):i},ur.stubArray=Lc,ur.stubFalse=zc,ur.stubObject=function(){return{}},ur.stubString=function(){return""},ur.stubTrue=function(){return!0},ur.multiply=Hc,ur.nth=function(t,n){return t&&t.length?li(t,Du(n)):i},ur.noConflict=function(){return Dn._===this&&(Dn._=sn),this},ur.noop=Ac,ur.now=$a,ur.pad=function(t,n,e){t=qu(t);var r=(n=Du(n))?Ie(t):0;if(!n||r>=n)return t;var i=(n-r)/2;return so(qn(i),e)+t+so(zn(i),e)},ur.padEnd=function(t,n,e){t=qu(t);var r=(n=Du(n))?Ie(t):0;return n&&rn){var r=t;t=n,n=r}if(e||t%1||n%1){var o=Ye();return qe(t+o*(n-t+Rn("1e-"+((o+"").length-1))),n)}return pi(t,n)},ur.reduce=function(t,n,e){var r=hu(t)?ie:ve,i=arguments.length<3;return r(t,Co(n,4),e,i,Ir)},ur.reduceRight=function(t,n,e){var r=hu(t)?oe:ve,i=arguments.length<3;return r(t,Co(n,4),e,i,Or)},ur.repeat=function(t,n,e){return n=(e?qo(t,n,e):n===i)?1:Du(n),gi(qu(t),n)},ur.replace=function(){var t=arguments,n=qu(t[0]);return t.length<3?n:n.replace(t[1],t[2])},ur.result=function(t,n,e){var r=-1,o=(n=Fi(n,t)).length;for(o||(o=1,t=i);++rS)return[];var e=A,r=qe(t,A);n=Co(n),t-=A;for(var i=me(r,n);++e=a)return t;var c=e-Ie(r);if(c<1)return r;var l=u?ji(u,0,c).join(""):t.slice(0,c);if(o===i)return l+r;if(u&&(c+=l.length-c),Su(o)){if(t.slice(c).search(o)){var s,f=l;for(o.global||(o=Qt(o.source,qu(Dt.exec(o))+"g")),o.lastIndex=0;s=o.exec(f);)var h=s.index;l=l.slice(0,h===i?c:h)}}else if(t.indexOf(Ci(o),c)!=c){var d=l.lastIndexOf(o);d>-1&&(l=l.slice(0,d))}return l+r},ur.unescape=function(t){return(t=qu(t))&&yt.test(t)?t.replace(gt,Ue):t},ur.uniqueId=function(t){var n=++an;return qu(t)+n},ur.upperCase=yc,ur.upperFirst=mc,ur.each=qa,ur.eachRight=ja,ur.first=pa,Cc(ur,(Fc={},jr(ur,(function(t,n){on.call(ur.prototype,n)||(Fc[n]=t)})),Fc),{chain:!1}),ur.VERSION="4.17.14",Qn(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(t){ur[t].placeholder=ur})),Qn(["drop","take"],(function(t,n){fr.prototype[t]=function(e){e=e===i?1:Fe(Du(e),0);var r=this.__filtered__&&!n?new fr(this):this.clone();return r.__filtered__?r.__takeCount__=qe(e,r.__takeCount__):r.__views__.push({size:qe(e,A),type:t+(r.__dir__<0?"Right":"")}),r},fr.prototype[t+"Right"]=function(n){return this.reverse()[t](n).reverse()}})),Qn(["filter","map","takeWhile"],(function(t,n){var e=n+1,r=1==e||3==e;fr.prototype[t]=function(t){var n=this.clone();return n.__iteratees__.push({iteratee:Co(t,3),type:e}),n.__filtered__=n.__filtered__||r,n}})),Qn(["head","last"],(function(t,n){var e="take"+(n?"Right":"");fr.prototype[t]=function(){return this[e](1).value()[0]}})),Qn(["initial","tail"],(function(t,n){var e="drop"+(n?"":"Right");fr.prototype[t]=function(){return this.__filtered__?new fr(this):this[e](1)}})),fr.prototype.compact=function(){return this.filter(kc)},fr.prototype.find=function(t){return this.filter(t).head()},fr.prototype.findLast=function(t){return this.reverse().find(t)},fr.prototype.invokeMap=vi((function(t,n){return"function"==typeof t?new fr(this):this.map((function(e){return Zr(e,t,n)}))})),fr.prototype.reject=function(t){return this.filter(ru(Co(t)))},fr.prototype.slice=function(t,n){t=Du(t);var e=this;return e.__filtered__&&(t>0||n<0)?new fr(e):(t<0?e=e.takeRight(-t):t&&(e=e.drop(t)),n!==i&&(e=(n=Du(n))<0?e.dropRight(-n):e.take(n-t)),e)},fr.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},fr.prototype.toArray=function(){return this.take(A)},jr(fr.prototype,(function(t,n){var e=/^(?:filter|find|map|reject)|While$/.test(n),r=/^(?:head|last)$/.test(n),o=ur[r?"take"+("last"==n?"Right":""):n],a=r||/^find/.test(n);o&&(ur.prototype[n]=function(){var n=this.__wrapped__,u=r?[1]:arguments,c=n instanceof fr,l=u[0],s=c||hu(n),f=function(t){var n=o.apply(ur,re([t],u));return r&&h?n[0]:n};s&&e&&"function"==typeof l&&1!=l.length&&(c=s=!1);var h=this.__chain__,d=!!this.__actions__.length,p=a&&!h,g=c&&!d;if(!a&&s){n=g?n:new fr(this);var v=t.apply(n,u);return v.__actions__.push({func:Ua,args:[f],thisArg:i}),new sr(v,h)}return p&&g?t.apply(this,u):(v=this.thru(f),p?r?v.value()[0]:v.value():v)})})),Qn(["pop","push","shift","sort","splice","unshift"],(function(t){var n=Jt[t],e=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",r=/^(?:pop|shift)$/.test(t);ur.prototype[t]=function(){var t=arguments;if(r&&!this.__chain__){var i=this.value();return n.apply(hu(i)?i:[],t)}return this[e]((function(e){return n.apply(hu(e)?e:[],t)}))}})),jr(fr.prototype,(function(t,n){var e=ur[n];if(e){var r=e.name+"";on.call(Ke,r)||(Ke[r]=[]),Ke[r].push({name:n,func:e})}})),Ke[ao(i,g).name]=[{name:"wrapper",func:i}],fr.prototype.clone=function(){var t=new fr(this.__wrapped__);return t.__actions__=Gi(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=Gi(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=Gi(this.__views__),t},fr.prototype.reverse=function(){if(this.__filtered__){var t=new fr(this);t.__dir__=-1,t.__filtered__=!0}else(t=this.clone()).__dir__*=-1;return t},fr.prototype.value=function(){var t=this.__wrapped__.value(),n=this.__dir__,e=hu(t),r=n<0,i=e?t.length:0,o=function(t,n,e){for(var r=-1,i=e.length;++r=this.__values__.length;return{done:t,value:t?i:this.__values__[this.__index__++]}},ur.prototype.plant=function(t){for(var n,e=this;e instanceof lr;){var r=ua(e);r.__index__=0,r.__values__=i,n?o.__wrapped__=r:n=r;var o=r;e=e.__wrapped__}return o.__wrapped__=t,n},ur.prototype.reverse=function(){var t=this.__wrapped__;if(t instanceof fr){var n=t;return this.__actions__.length&&(n=new fr(this)),(n=n.reverse()).__actions__.push({func:Ua,args:[xa],thisArg:i}),new sr(n,this.__chain__)}return this.thru(xa)},ur.prototype.toJSON=ur.prototype.valueOf=ur.prototype.value=function(){return Oi(this.__wrapped__,this.__actions__)},ur.prototype.first=ur.prototype.head,Mn&&(ur.prototype[Mn]=function(){return this}),ur}();Dn._=De,(r=function(){return De}.call(n,e,n,t))===i||(t.exports=r)}.call(this)},7418:t=>{"use strict";var n=Object.getOwnPropertySymbols,e=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 n={},e=0;e<10;e++)n["_"+String.fromCharCode(e)]=e;if("0123456789"!==Object.getOwnPropertyNames(n).map((function(t){return n[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=e(3759),i=e(7418),o=e(7294),a=e(139),u=e(3677),c=e(7100),l=e(1767);function s(t){for(var n=arguments.length-1,e="https://reactjs.org/docs/error-decoder.html?invariant="+t,i=0;in}return!1}function k(t,n,e,r,i){this.acceptsBooleans=2===n||3===n||4===n,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=e,this.propertyName=t,this.type=n}var N={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(t){N[t]=new k(t,0,!1,t,null)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(t){var n=t[0];N[n]=new k(n,1,!1,t[1],null)})),["contentEditable","draggable","spellCheck","value"].forEach((function(t){N[t]=new k(t,2,!1,t.toLowerCase(),null)})),["autoReverse","externalResourcesRequired","preserveAlpha"].forEach((function(t){N[t]=new k(t,2,!1,t,null)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(t){N[t]=new k(t,3,!1,t.toLowerCase(),null)})),["checked","multiple","muted","selected"].forEach((function(t){N[t]=new k(t,3,!0,t.toLowerCase(),null)})),["capture","download"].forEach((function(t){N[t]=new k(t,4,!1,t.toLowerCase(),null)})),["cols","rows","size","span"].forEach((function(t){N[t]=new k(t,6,!1,t.toLowerCase(),null)})),["rowSpan","start"].forEach((function(t){N[t]=new k(t,5,!1,t.toLowerCase(),null)}));var S=/[\-:]([a-z])/g;function T(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 n=t.replace(S,T);N[n]=new k(n,1,!1,t,null)})),"xlink:actuate xlink:arcrole xlink:href xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(t){var n=t.replace(S,T);N[n]=new k(n,1,!1,t,"http://www.w3.org/1999/xlink")})),["xml:base","xml:lang","xml:space"].forEach((function(t){var n=t.replace(S,T);N[n]=new k(n,1,!1,t,"http://www.w3.org/XML/1998/namespace")})),N.tabIndex=new k("tabIndex",1,!1,"tabindex",null);var C=/["'&<>]/;function A(t){if("boolean"==typeof t||"number"==typeof t)return""+t;t=""+t;var n=C.exec(t);if(n){var e,r="",i=0;for(e=n.index;e=e.children.length){var r=e.footer;n+=r,""!==r&&(this.previousWasTextNode=!1),this.stack.pop(),"select"===e.type?this.currentSelectValue=null:null!=e.type&&null!=e.type.type&&e.type.type.$$typeof===v&&this.popProvider(e.type)}else r=e.children[e.childIndex++],n+=this.render(r,e.context,e.domNamespace)}return n},t.prototype.render=function(t,n,e){if("string"==typeof t||"number"==typeof t)return""==(e=""+t)?"":this.makeStaticMarkup?A(e):this.previousWasTextNode?"\x3c!-- --\x3e"+A(e):(this.previousWasTextNode=!0,A(e));if(t=(n=function(t,n){function e(e,r){var o=function(t,n){if(t=t.contextTypes){var e,r={};for(e in t)r[e]=n[e];n=r}else n=u;return n}(r,n),a=[],c=!1,l={isMounted:function(){return!1},enqueueForceUpdate:function(){if(null===a)return null},enqueueReplaceState:function(t,n){c=!0,a=[n]},enqueueSetState:function(t,n){if(null===a)return null;a.push(n)}},f=void 0;if(r.prototype&&r.prototype.isReactComponent){if(f=new r(e.props,o,l),"function"==typeof r.getDerivedStateFromProps){var h=r.getDerivedStateFromProps.call(null,e.props,f.state);null!=h&&(f.state=i({},f.state,h))}}else if(null==(f=r(e.props,o,l))||null==f.render)return void V(t=f,r);if(f.props=e.props,f.context=o,f.updater=l,void 0===(l=f.state)&&(f.state=l=null),"function"==typeof f.UNSAFE_componentWillMount||"function"==typeof f.componentWillMount)if("function"==typeof f.componentWillMount&&"function"!=typeof r.getDerivedStateFromProps&&f.componentWillMount(),"function"==typeof f.UNSAFE_componentWillMount&&"function"!=typeof r.getDerivedStateFromProps&&f.UNSAFE_componentWillMount(),a.length){l=a;var d=c;if(a=null,c=!1,d&&1===l.length)f.state=l[0];else{h=d?l[0]:f.state;var p=!0;for(d=d?1:0;d=c.length||s("93"),c=c[0]),u=""+c),null==u&&(u="")}a=i({},a,{value:void 0,children:""+u})}else if("select"===r)this.currentSelectValue=null!=a.value?a.value:a.defaultValue,a=i({},a,{value:void 0});else if("option"===r){c=this.currentSelectValue;var l=function(t){var n="";return o.Children.forEach(t,(function(t){null==t||"string"!=typeof t&&"number"!=typeof t||(n+=t)})),n}(a.children);if(null!=c){var f=null!=a.value?a.value+"":l;if(u=!1,Array.isArray(c)){for(var h=0;h":(m+=">",u="");t:{if(null!=(c=a.dangerouslySetInnerHTML)){if(null!=c.__html){c=c.__html;break t}}else if("string"==typeof(c=a.children)||"number"==typeof c){c=A(c);break t}c=null}return null!=c?(a=[],F[r]&&"\n"===c.charAt(0)&&(m+="\n"),m+=c):a=L(a.children),t=t.type,e=null==e||"http://www.w3.org/1999/xhtml"===e?R(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e,this.stack.push({domNamespace:e,type:r,children:a,childIndex:0,context:n,footer:u}),this.previousWasTextNode=!1,m},t}(),X={renderToString:function(t){return new W(t,!1).read(1/0)},renderToStaticMarkup:function(t){return new W(t,!0).read(1/0)},renderToNodeStream:function(){s("207")},renderToStaticNodeStream:function(){s("208")},version:"16.4.1"},$={default:X},G=$&&X||$;t.exports=G.default?G.default:G},4448:(t,n,e)=>{"use strict";var r=e(3759),i=e(7294),o=e(6508),a=e(7418),u=e(139),c=e(1003),l=e(9303),s=e(7476),f=e(3677);function h(t){for(var n=arguments.length-1,e="https://reactjs.org/docs/error-decoder.html?invariant="+t,i=0;ithis.eventPool.length&&this.eventPool.push(t)}function kt(t){t.eventPool=[],t.getPooled=Mt,t.release=Et}a(xt.prototype,{preventDefault:function(){this.defaultPrevented=!0;var t=this.nativeEvent;t&&(t.preventDefault?t.preventDefault():"unknown"!=typeof t.returnValue&&(t.returnValue=!1),this.isDefaultPrevented=u.thatReturnsTrue)},stopPropagation:function(){var t=this.nativeEvent;t&&(t.stopPropagation?t.stopPropagation():"unknown"!=typeof t.cancelBubble&&(t.cancelBubble=!0),this.isPropagationStopped=u.thatReturnsTrue)},persist:function(){this.isPersistent=u.thatReturnsTrue},isPersistent:u.thatReturnsFalse,destructor:function(){var t,n=this.constructor.Interface;for(t in n)this[t]=null;for(n=0;n=At),It=String.fromCharCode(32),Ot={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(" ")}},Ut=!1;function Dt(t,n){switch(t){case"keyup":return-1!==Tt.indexOf(n.keyCode);case"keydown":return 229!==n.keyCode;case"keypress":case"mousedown":case"blur":return!0;default:return!1}}function Lt(t){return"object"==typeof(t=t.detail)&&"data"in t?t.data:null}var zt=!1,Ft={eventTypes:Ot,extractEvents:function(t,n,e,r){var i=void 0,o=void 0;if(Ct)t:{switch(t){case"compositionstart":i=Ot.compositionStart;break t;case"compositionend":i=Ot.compositionEnd;break t;case"compositionupdate":i=Ot.compositionUpdate;break t}i=void 0}else zt?Dt(t,e)&&(i=Ot.compositionEnd):"keydown"===t&&229===e.keyCode&&(i=Ot.compositionStart);return i?(Rt&&(zt||i!==Ot.compositionStart?i===Ot.compositionEnd&&zt&&(o=mt()):(yt._root=r,yt._startText=_t(),zt=!0)),i=Nt.getPooled(i,n,e,r),(o||null!==(o=Lt(e)))&&(i.data=o),et(i),o=i):o=null,(t=Pt?function(t,n){switch(t){case"compositionend":return Lt(n);case"keypress":return 32!==n.which?null:(Ut=!0,It);case"textInput":return(t=n.data)===It&&Ut?null:t;default:return null}}(t,e):function(t,n){if(zt)return"compositionend"===t||!Ct&&Dt(t,n)?(t=mt(),yt._root=null,yt._startText=null,yt._fallbackText=null,zt=!1,t):null;switch(t){case"paste":default:return null;case"keypress":if(!(n.ctrlKey||n.altKey||n.metaKey)||n.ctrlKey&&n.altKey){if(n.char&&1




© 2015 - 2024 Weber Informatics LLC | Privacy Policy