
webapp.dist.index.js Maven / Gradle / Ivy
/*! For license information please see index.js.LICENSE.txt */
(()=>{var t={2259:(t,n,e)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.ClusterHUD=void 0;var r,i=function(){function t(t,n){for(var e=0;e=1e3){var t=Date.now();$("#running-queries-sparkline").sparkline(this.state.runningQueries,$.extend({},u,{chartRangeMin:0})),$("#blocked-queries-sparkline").sparkline(this.state.blockedQueries,$.extend({},u,{chartRangeMin:0})),$("#queued-queries-sparkline").sparkline(this.state.queuedQueries,$.extend({},u,{chartRangeMin:0})),$("#active-workers-sparkline").sparkline(this.state.activeWorkers,$.extend({},u,{chartRangeMin:0})),$("#running-drivers-sparkline").sparkline(this.state.runningDrivers,$.extend({},u,{numberFormatter:a.precisionRound})),$("#reserved-memory-sparkline").sparkline(this.state.reservedMemory,$.extend({},u,{numberFormatter:a.formatDataSizeBytes})),$("#row-input-rate-sparkline").sparkline(this.state.rowInputRate,$.extend({},u,{numberFormatter:a.formatCount})),$("#byte-input-rate-sparkline").sparkline(this.state.byteInputRate,$.extend({},u,{numberFormatter:a.formatDataSizeBytes})),$("#cpu-time-rate-sparkline").sparkline(this.state.perWorkerCpuTimeRate,$.extend({},u,{numberFormatter:a.precisionRound})),this.setState({lastRender:t})}$('[data-toggle="tooltip"]').tooltip()}},{key:"render",value:function(){return o.default.createElement("div",{className:"row"},o.default.createElement("div",{className:"col-xs-12"},o.default.createElement("div",{className:"row"},o.default.createElement("div",{className:"col-xs-4"},o.default.createElement("div",{className:"stat-title"},o.default.createElement("span",{className:"text","data-toggle":"tooltip","data-placement":"right",title:"Total number of queries currently running"},"Running queries"))),o.default.createElement("div",{className:"col-xs-4"},o.default.createElement("div",{className:"stat-title"},o.default.createElement("span",{className:"text","data-toggle":"tooltip","data-placement":"right",title:"Total number of active worker nodes"},"Active workers"))),o.default.createElement("div",{className:"col-xs-4"},o.default.createElement("div",{className:"stat-title"},o.default.createElement("span",{className:"text","data-toggle":"tooltip","data-placement":"right",title:"Moving average of input rows processed per second"},"Rows/sec")))),o.default.createElement("div",{className:"row stat-line-end"},o.default.createElement("div",{className:"col-xs-4"},o.default.createElement("div",{className:"stat stat-large"},o.default.createElement("span",{className:"stat-text"},this.state.runningQueries[this.state.runningQueries.length-1]),o.default.createElement("span",{className:"sparkline",id:"running-queries-sparkline"},o.default.createElement("div",{className:"loader"},"Loading ...")))),o.default.createElement("div",{className:"col-xs-4"},o.default.createElement("div",{className:"stat stat-large"},o.default.createElement("a",{target:"_blank",href:"workers.html"},o.default.createElement("span",{className:"stat-text"},this.state.activeWorkers[this.state.activeWorkers.length-1])),o.default.createElement("span",{className:"sparkline",id:"active-workers-sparkline"},o.default.createElement("div",{className:"loader"},"Loading ...")))),o.default.createElement("div",{className:"col-xs-4"},o.default.createElement("div",{className:"stat stat-large"},o.default.createElement("span",{className:"stat-text"},(0,a.formatCount)(this.state.rowInputRate[this.state.rowInputRate.length-1])),o.default.createElement("span",{className:"sparkline",id:"row-input-rate-sparkline"},o.default.createElement("div",{className:"loader"},"Loading ..."))))),o.default.createElement("div",{className:"row"},o.default.createElement("div",{className:"col-xs-4"},o.default.createElement("div",{className:"stat-title"},o.default.createElement("span",{className:"text","data-toggle":"tooltip","data-placement":"right",title:"Total number of queries currently queued and awaiting execution"},"Queued queries"))),o.default.createElement("div",{className:"col-xs-4"},o.default.createElement("div",{className:"stat-title"},o.default.createElement("span",{className:"text","data-toggle":"tooltip","data-placement":"right",title:"Moving average of total running drivers"},"Runnable drivers"))),o.default.createElement("div",{className:"col-xs-4"},o.default.createElement("div",{className:"stat-title"},o.default.createElement("span",{className:"text","data-toggle":"tooltip","data-placement":"right",title:"Moving average of input bytes processed per second"},"Bytes/sec")))),o.default.createElement("div",{className:"row stat-line-end"},o.default.createElement("div",{className:"col-xs-4"},o.default.createElement("div",{className:"stat stat-large"},o.default.createElement("span",{className:"stat-text"},this.state.queuedQueries[this.state.queuedQueries.length-1]),o.default.createElement("span",{className:"sparkline",id:"queued-queries-sparkline"},o.default.createElement("div",{className:"loader"},"Loading ...")))),o.default.createElement("div",{className:"col-xs-4"},o.default.createElement("div",{className:"stat stat-large"},o.default.createElement("span",{className:"stat-text"},(0,a.formatCount)(this.state.runningDrivers[this.state.runningDrivers.length-1])),o.default.createElement("span",{className:"sparkline",id:"running-drivers-sparkline"},o.default.createElement("div",{className:"loader"},"Loading ...")))),o.default.createElement("div",{className:"col-xs-4"},o.default.createElement("div",{className:"stat stat-large"},o.default.createElement("span",{className:"stat-text"},(0,a.formatDataSizeBytes)(this.state.byteInputRate[this.state.byteInputRate.length-1])),o.default.createElement("span",{className:"sparkline",id:"byte-input-rate-sparkline"},o.default.createElement("div",{className:"loader"},"Loading ..."))))),o.default.createElement("div",{className:"row"},o.default.createElement("div",{className:"col-xs-4"},o.default.createElement("div",{className:"stat-title"},o.default.createElement("span",{className:"text","data-toggle":"tooltip","data-placement":"right",title:"Total number of queries currently blocked and unable to make progress"},"Blocked Queries"))),o.default.createElement("div",{className:"col-xs-4"},o.default.createElement("div",{className:"stat-title"},o.default.createElement("span",{className:"text","data-toggle":"tooltip","data-placement":"right",title:"Total amount of memory reserved by all running queries"},"Reserved Memory (B)"))),o.default.createElement("div",{className:"col-xs-4"},o.default.createElement("div",{className:"stat-title"},o.default.createElement("span",{className:"text","data-toggle":"tooltip","data-placement":"right",title:"Moving average of CPU time utilized per second per worker"},"Worker Parallelism")))),o.default.createElement("div",{className:"row stat-line-end"},o.default.createElement("div",{className:"col-xs-4"},o.default.createElement("div",{className:"stat stat-large"},o.default.createElement("span",{className:"stat-text"},this.state.blockedQueries[this.state.blockedQueries.length-1]),o.default.createElement("span",{className:"sparkline",id:"blocked-queries-sparkline"},o.default.createElement("div",{className:"loader"},"Loading ...")))),o.default.createElement("div",{className:"col-xs-4"},o.default.createElement("div",{className:"stat stat-large"},o.default.createElement("span",{className:"stat-text"},(0,a.formatDataSizeBytes)(this.state.reservedMemory[this.state.reservedMemory.length-1])),o.default.createElement("span",{className:"sparkline",id:"reserved-memory-sparkline"},o.default.createElement("div",{className:"loader"},"Loading ...")))),o.default.createElement("div",{className:"col-xs-4"},o.default.createElement("div",{className:"stat stat-large"},o.default.createElement("span",{className:"stat-text"},(0,a.formatCount)(this.state.perWorkerCpuTimeRate[this.state.perWorkerCpuTimeRate.length-1])),o.default.createElement("span",{className:"sparkline",id:"cpu-time-rate-sparkline"},o.default.createElement("div",{className:"loader"},"Loading ...")))))))}}]),n}(o.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)},1878:(t,n,e)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.QueryList=n.QueryListItem=void 0;var r,i=function(){function t(t,n){for(var e=0;e-1&&(i0){if(o+=u,!(a<5)){o+="\n...";break}o+="\n"}}return o}}]),n}(o.default.Component),f=function(t){function n(){return u(this,n),c(this,(n.__proto__||Object.getPrototypeOf(n)).apply(this,arguments))}return s(n,t),i(n,[{key:"render",value:function(){var t=this.props.queries.map(function(t){return o.default.createElement(l,{key:t.queryId,query:t})}.bind(this));return o.default.createElement("div",null,t)}}]),n}(o.default.Component),h={RUNNING:function(t){return!("QUEUED"===t.state||"FINISHED"===t.state||"FAILED"===t.state)},QUEUED:function(t){return"QUEUED"===t.state},FINISHED:function(t){return"FINISHED"===t.state}},d={CREATED:function(t){return Date.parse(t.queryStats.createTime)},ELAPSED:function(t){return(0,a.parseDuration)(t.queryStats.elapsedTime)},EXECUTION:function(t){return(0,a.parseDuration)(t.queryStats.executionTime)},CPU:function(t){return(0,a.parseDuration)(t.queryStats.totalCpuTime)},CUMULATIVE_MEMORY:function(t){return t.queryStats.cumulativeUserMemory},CURRENT_MEMORY:function(t){return(0,a.parseDataSize)(t.queryStats.userMemoryReservation)}},p={USER_ERROR:function(t){return"FAILED"===t.state&&"USER_ERROR"===t.errorType},INTERNAL_ERROR:function(t){return"FAILED"===t.state&&"INTERNAL_ERROR"===t.errorType},INSUFFICIENT_RESOURCES:function(t){return"FAILED"===t.state&&"INSUFFICIENT_RESOURCES"===t.errorType},EXTERNAL:function(t){return"FAILED"===t.state&&"EXTERNAL"===t.errorType}},g={ASCENDING:function(t){return t},DESCENDING:function(t){return-t}};n.QueryList=function(t){function n(t){u(this,n);var e=c(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,t));return e.state={allQueries:[],displayedQueries:[],reorderInterval:5e3,currentSortType:d.CREATED,currentSortOrder:g.DESCENDING,stateFilters:[h.RUNNING,h.QUEUED],errorTypeFilters:[p.INTERNAL_ERROR,p.INSUFFICIENT_RESOURCES,p.EXTERNAL],searchString:"",maxQueries:100,lastRefresh:Date.now(),lastReorder:Date.now(),initialized:!1},e.refreshLoop=e.refreshLoop.bind(e),e.handleSearchStringChange=e.handleSearchStringChange.bind(e),e.executeSearch=e.executeSearch.bind(e),e.handleSortClick=e.handleSortClick.bind(e),e}return s(n,t),i(n,[{key:"sortQueries",value:function(t,n,e){t.sort((function(t,r){return e(n(t)-n(r))}),this)}},{key:"sortAndLimitQueries",value:function(t,n,e,r){this.sortQueries(t,n,e),t.length>r&&t.splice(r,t.length-r)}},{key:"filterQueries",value:function(t,n,e,r){var i=t.filter((function(t){for(var r=0;r=this.state.reorderInterval?(e=(e=this.filterQueries(e,this.state.stateFilters,this.state.errorTypeFilters,this.state.searchString)).concat(r),this.sortQueries(e,this.state.currentSortType,this.state.currentSortOrder),a=Date.now()):(this.sortQueries(r,this.state.currentSortType,this.state.currentSortOrder),e=e.concat(r)),0!==this.state.maxQueries&&e.length>this.state.maxQueries&&e.splice(this.state.maxQueries,e.length-this.state.maxQueries),this.setState({allQueries:t,displayedQueries:e,lastRefresh:o,lastReorder:a,initialized:!0}),this.resetTimer()}.bind(this)).fail(function(){this.setState({initialized:!0}),this.resetTimer()}.bind(this))}},{key:"componentDidMount",value:function(){this.refreshLoop()}},{key:"handleSearchStringChange",value:function(t){var n=t.target.value;clearTimeout(this.searchTimeoutId),this.setState({searchString:n}),this.searchTimeoutId=setTimeout(this.executeSearch,200)}},{key:"executeSearch",value:function(){clearTimeout(this.searchTimeoutId);var t=this.filterQueries(this.state.allQueries,this.state.stateFilters,this.state.errorTypeFilters,this.state.searchString);this.sortAndLimitQueries(t,this.state.currentSortType,this.state.currentSortOrder,this.state.maxQueries),this.setState({displayedQueries:t})}},{key:"renderMaxQueriesListItem",value:function(t,n){return o.default.createElement("li",null,o.default.createElement("a",{href:"#",className:this.state.maxQueries===t?"selected":"",onClick:this.handleMaxQueriesClick.bind(this,t)},n))}},{key:"handleMaxQueriesClick",value:function(t){var n=this.filterQueries(this.state.allQueries,this.state.stateFilters,this.state.errorTypeFilters,this.state.searchString);this.sortAndLimitQueries(n,this.state.currentSortType,this.state.currentSortOrder,t),this.setState({maxQueries:t,displayedQueries:n})}},{key:"renderReorderListItem",value:function(t,n){return o.default.createElement("li",null,o.default.createElement("a",{href:"#",className:this.state.reorderInterval===t?"selected":"",onClick:this.handleReorderClick.bind(this,t)},n))}},{key:"handleReorderClick",value:function(t){this.state.reorderInterval!==t&&this.setState({reorderInterval:t})}},{key:"renderSortListItem",value:function(t,n){if(this.state.currentSortType===t){var e=this.state.currentSortOrder===g.ASCENDING?o.default.createElement("span",{className:"glyphicon glyphicon-triangle-top"}):o.default.createElement("span",{className:"glyphicon glyphicon-triangle-bottom"});return o.default.createElement("li",null,o.default.createElement("a",{href:"#",className:"selected",onClick:this.handleSortClick.bind(this,t)},n," ",e))}return o.default.createElement("li",null,o.default.createElement("a",{href:"#",onClick:this.handleSortClick.bind(this,t)},n))}},{key:"handleSortClick",value:function(t){var n=t,e=g.DESCENDING;this.state.currentSortType===t&&this.state.currentSortOrder===g.DESCENDING&&(e=g.ASCENDING);var r=this.filterQueries(this.state.allQueries,this.state.stateFilters,this.state.errorTypeFilters,this.state.searchString);this.sortAndLimitQueries(r,n,e,this.state.maxQueries),this.setState({displayedQueries:r,currentSortType:n,currentSortOrder:e})}},{key:"renderFilterButton",value:function(t,n){var e={color:"#57aac7"},r="btn btn-sm btn-info style-check";return this.state.stateFilters.indexOf(t)>-1&&(r+=" active",e={color:"#ffffff"}),o.default.createElement("button",{type:"button",className:r,onClick:this.handleStateFilterClick.bind(this,t)},o.default.createElement("span",{className:"glyphicon glyphicon-ok",style:e})," ",n)}},{key:"handleStateFilterClick",value:function(t){var n=this.state.stateFilters.slice();this.state.stateFilters.indexOf(t)>-1?n.splice(n.indexOf(t),1):n.push(t);var e=this.filterQueries(this.state.allQueries,n,this.state.errorTypeFilters,this.state.searchString);this.sortAndLimitQueries(e,this.state.currentSortType,this.state.currentSortOrder,this.state.maxQueries),this.setState({stateFilters:n,displayedQueries:e})}},{key:"renderErrorTypeListItem",value:function(t,n){var e={color:"#ffffff"};return this.state.errorTypeFilters.indexOf(t)>-1&&(e=a.GLYPHICON_HIGHLIGHT),o.default.createElement("li",null,o.default.createElement("a",{href:"#",onClick:this.handleErrorTypeFilterClick.bind(this,t)},o.default.createElement("span",{className:"glyphicon glyphicon-ok",style:e})," ",n))}},{key:"handleErrorTypeFilterClick",value:function(t){var n=this.state.errorTypeFilters.slice();this.state.errorTypeFilters.indexOf(t)>-1?n.splice(n.indexOf(t),1):n.push(t);var e=this.filterQueries(this.state.allQueries,this.state.stateFilters,n,this.state.searchString);this.sortAndLimitQueries(e,this.state.currentSortType,this.state.currentSortOrder,this.state.maxQueries),this.setState({errorTypeFilters:n,displayedQueries:e})}},{key:"render",value:function(){var t=o.default.createElement(f,{queries:this.state.displayedQueries});if(null===this.state.displayedQueries||0===this.state.displayedQueries.length){var n=o.default.createElement("div",{className:"loader"},"Loading...");this.state.initialized&&(n=null===this.state.allQueries||0===this.state.allQueries.length?"No queries":"No queries matched filters"),t=o.default.createElement("div",{className:"row error-message"},o.default.createElement("div",{className:"col-xs-12"},o.default.createElement("h4",null,n)))}return o.default.createElement("div",null,o.default.createElement("div",{className:"row toolbar-row"},o.default.createElement("div",{className:"col-xs-12 toolbar-col"},o.default.createElement("div",{className:"input-group input-group-sm"},o.default.createElement("input",{type:"text",className:"form-control form-control-small search-bar",placeholder:"User, source, query ID, query state, resource group, error name, or query text",onChange:this.handleSearchStringChange,value:this.state.searchString}),o.default.createElement("span",{className:"input-group-addon filter-addon"},"State:"),o.default.createElement("div",{className:"input-group-btn"},this.renderFilterButton(h.RUNNING,"Running"),this.renderFilterButton(h.QUEUED,"Queued"),this.renderFilterButton(h.FINISHED,"Finished"),o.default.createElement("button",{type:"button",id:"error-type-dropdown",className:"btn btn-default dropdown-toggle","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"},"Failed ",o.default.createElement("span",{className:"caret"})),o.default.createElement("ul",{className:"dropdown-menu error-type-dropdown-menu"},this.renderErrorTypeListItem(p.INTERNAL_ERROR,"Internal Error"),this.renderErrorTypeListItem(p.EXTERNAL,"External Error"),this.renderErrorTypeListItem(p.INSUFFICIENT_RESOURCES,"Resources Error"),this.renderErrorTypeListItem(p.USER_ERROR,"User Error")))," ",o.default.createElement("div",{className:"input-group-btn"},o.default.createElement("button",{type:"button",className:"btn btn-default dropdown-toggle","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"},"Sort ",o.default.createElement("span",{className:"caret"})),o.default.createElement("ul",{className:"dropdown-menu"},this.renderSortListItem(d.CREATED,"Creation Time"),this.renderSortListItem(d.ELAPSED,"Elapsed Time"),this.renderSortListItem(d.CPU,"CPU Time"),this.renderSortListItem(d.EXECUTION,"Execution Time"),this.renderSortListItem(d.CURRENT_MEMORY,"Current Memory"),this.renderSortListItem(d.CUMULATIVE_MEMORY,"Cumulative User Memory")))," ",o.default.createElement("div",{className:"input-group-btn"},o.default.createElement("button",{type:"button",className:"btn btn-default dropdown-toggle","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"},"Reorder Interval ",o.default.createElement("span",{className:"caret"})),o.default.createElement("ul",{className:"dropdown-menu"},this.renderReorderListItem(1e3,"1s"),this.renderReorderListItem(5e3,"5s"),this.renderReorderListItem(1e4,"10s"),this.renderReorderListItem(3e4,"30s"),o.default.createElement("li",{role:"separator",className:"divider"}),this.renderReorderListItem(0,"Off")))," ",o.default.createElement("div",{className:"input-group-btn"},o.default.createElement("button",{type:"button",className:"btn btn-default dropdown-toggle","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"},"Show ",o.default.createElement("span",{className:"caret"})),o.default.createElement("ul",{className:"dropdown-menu"},this.renderMaxQueriesListItem(20,"20 queries"),this.renderMaxQueriesListItem(50,"50 queries"),this.renderMaxQueriesListItem(100,"100 queries"),o.default.createElement("li",{role:"separator",className:"divider"}),this.renderMaxQueriesListItem(0,"All queries")))))),t)}}]),n}(o.default.Component)},6712:(t,n,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=s,n.getProgressBarTitle=function(t,n){return t.queryStats.progressPercentage&&"RUNNING"===t.state?c(t,n)+" ("+s(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-l,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-l,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 s(t){var n=t.queryStats.progressPercentage;return n&&"RUNNING"===t.state?Math.round(n):100}var l=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 s,l,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,s)},map:function(t){return o(t,0,l,f)},entries:function(t){return u(o(t,0,l,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 s(t,n,e){t[n]=e}function l(){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,s=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:()=>s,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 s(t){var n=new RegExp('["'+t+"\n\r]"),e=t.charCodeAt(0);function s(t,n){var c,s=[],l=t.length,f=0,h=0,d=l<=0,p=!1;function g(){if(d)return i;if(p)return p=!1,r;var n,c,s=f;if(t.charCodeAt(s)===o){for(;f++=l?d=!0:(c=t.charCodeAt(f++))===a?p=!0:c===u&&(p=!0,t.charCodeAt(f)===a&&++f),t.slice(s+1,n-1).replace(/""/g,'"')}for(;f{"use strict";e.r(n),e.d(n,{active:()=>Yo,arc:()=>rb,area:()=>sb,areaRadial:()=>mb,ascending:()=>i,axisBottom:()=>ct,axisLeft:()=>st,axisRight:()=>ut,axisTop:()=>at,bisect:()=>s,bisectLeft:()=>c,bisectRight:()=>u,bisector:()=>o,blob:()=>ru,brush:()=>ga,brushSelection:()=>ha,brushX:()=>da,brushY:()=>pa,buffer:()=>ou,chord:()=>Ma,clientPoint:()=>Pn,cluster:()=>pd,color:()=>fe,contourDensity:()=>tu,contours:()=>Ga,create:()=>Tn,creator:()=>vt,cross:()=>h,csv:()=>lu,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:()=>sw,curveCardinalOpen:()=>fw,curveCatmullRom:()=>pw,curveCatmullRomClosed:()=>vw,curveCatmullRomOpen:()=>mw,curveLinear:()=>ob,curveLinearClosed:()=>bw,curveMonotoneX:()=>Sw,curveMonotoneY:()=>Cw,curveNatural:()=>Pw,curveStep:()=>Lw,curveStepAfter:()=>Dw,curveStepBefore:()=>Uw,customEvent:()=>mn,descending:()=>d,deviation:()=>v,dispatch:()=>lt.W,drag:()=>Xn,dragDisable:()=>Fn,dragEnable:()=>qn,dsv:()=>su,dsvFormat:()=>nu.yv,easeBack:()=>Do,easeBackIn:()=>Lo,easeBackInOut:()=>Do,easeBackOut:()=>Uo,easeBounce:()=>Ro,easeBounceIn:()=>Ao,easeBounceInOut:()=>Po,easeBounceOut:()=>Ro,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:()=>lo,easeSinInOut:()=>ho,easeSinOut:()=>fo,entries:()=>Fa.qh,event:()=>dn,extent:()=>y,forceCenter:()=>_u,forceCollide:()=>Pu,forceLink:()=>Uu,forceManyBody:()=>ju,forceRadial:()=>Bu,forceSimulation:()=>qu,forceX:()=>Hu,forceY:()=>Yu,format:()=>nc,formatDefaultLocale:()=>oc,formatLocale:()=>ic,formatPrefix:()=>ec,formatSpecifier:()=>$u,geoAlbers:()=>Sh,geoAlbersUsa:()=>Ch,geoArea:()=>ns,geoAzimuthalEqualArea:()=>Ih,geoAzimuthalEqualAreaRaw:()=>Ph,geoAzimuthalEquidistant:()=>Uh,geoAzimuthalEquidistantRaw:()=>Lh,geoBounds:()=>Xs,geoCentroid:()=>ol,geoCircle:()=>vl,geoClipAntimeridian:()=>Tl,geoClipCircle:()=>Sl,geoClipExtent:()=>Pl,geoClipRectangle:()=>Rl,geoConicConformal:()=>jh,geoConicConformalRaw:()=>qh,geoConicEqualArea:()=>Th,geoConicEqualAreaRaw:()=>kh,geoConicEquidistant:()=>Vh,geoConicEquidistantRaw:()=>Yh,geoContains:()=>Jl,geoDistance:()=>Yl,geoEqualEarth:()=>Kh,geoEqualEarthRaw:()=>Zh,geoEquirectangular:()=>Hh,geoEquirectangularRaw:()=>Bh,geoGnomonic:()=>td,geoGnomonicRaw:()=>Jh,geoGraticule:()=>ef,geoGraticule10:()=>rf,geoIdentity:()=>ed,geoInterpolate:()=>of,geoLength:()=>jl,geoMercator:()=>Oh,geoMercatorRaw:()=>Dh,geoNaturalEarth1:()=>id,geoNaturalEarth1Raw:()=>rd,geoOrthographic:()=>ad,geoOrthographicRaw:()=>od,geoPath:()=>ch,geoProjection:()=>Mh,geoProjectionMutator:()=>Eh,geoRotation:()=>dl,geoStereographic:()=>cd,geoStereographicRaw:()=>ud,geoStream:()=>Bc,geoTransform:()=>sh,geoTransverseMercator:()=>ld,geoTransverseMercatorRaw:()=>sd,gray:()=>Pe,hcl:()=>je,hierarchy:()=>vd,histogram:()=>R,hsl:()=>_e,html:()=>yu,image:()=>hu,interpolate:()=>yr,interpolateArray:()=>lr,interpolateBasis:()=>tr,interpolateBasisClosed:()=>nr,interpolateBlues:()=>d_,interpolateBrBG:()=>Nm,interpolateBuGn:()=>Hm,interpolateBuPu:()=>Vm,interpolateCool:()=>k_,interpolateCubehelix:()=>Vr,interpolateCubehelixDefault:()=>E_,interpolateCubehelixLong:()=>Wr,interpolateDate:()=>fr,interpolateDiscrete:()=>mr,interpolateGnBu:()=>Xm,interpolateGreens:()=>g_,interpolateGreys:()=>y_,interpolateHcl:()=>Br,interpolateHclLong:()=>Hr,interpolateHsl:()=>zr,interpolateHslLong:()=>Fr,interpolateHue:()=>_r,interpolateInferno:()=>D_,interpolateLab:()=>qr,interpolateMagma:()=>U_,interpolateNumber:()=>hr,interpolateObject:()=>dr,interpolateOrRd:()=>$m,interpolateOranges:()=>M_,interpolatePRGn:()=>Tm,interpolatePiYG:()=>Cm,interpolatePlasma:()=>O_,interpolatePuBu:()=>Jm,interpolatePuBuGn:()=>Zm,interpolatePuOr:()=>Rm,interpolatePuRd:()=>n_,interpolatePurples:()=>__,interpolateRainbow:()=>S_,interpolateRdBu:()=>Im,interpolateRdGy:()=>Um,interpolateRdPu:()=>r_,interpolateRdYlBu:()=>Om,interpolateRdYlGn:()=>Fm,interpolateReds:()=>w_,interpolateRgb:()=>ar,interpolateRgbBasis:()=>cr,interpolateRgbBasisClosed:()=>sr,interpolateRound:()=>br,interpolateSinebow:()=>P_,interpolateSpectral:()=>jm,interpolateString:()=>vr,interpolateTransformCss:()=>Cr,interpolateTransformSvg:()=>Ar,interpolateViridis:()=>L_,interpolateWarm:()=>N_,interpolateYlGn:()=>u_,interpolateYlGnBu:()=>o_,interpolateYlOrBr:()=>s_,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:()=>Tb,linkRadial:()=>Cb,linkVertical:()=>Sb,local:()=>Cn,map:()=>Fa.UI,matcher:()=>Et,max:()=>U,mean:()=>D,median:()=>O,merge:()=>z,min:()=>F,mouse:()=>In,namespace:()=>dt,namespaces:()=>ht,nest:()=>Fa.b1,now:()=>ai,pack:()=>qd,packEnclose:()=>xd,packSiblings:()=>Ud,pairs:()=>l,partition:()=>Wd,path:()=>Pa,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:()=>ku,quantile:()=>P,quantize:()=>Gr,radialArea:()=>mb,radialLine:()=>yb,randomBates:()=>Tp,randomExponential:()=>Sp,randomIrwinHall:()=>kp,randomLogNormal:()=>Np,randomNormal:()=>Ep,randomUniform:()=>Mp,range:()=>M,rgb:()=>ge,ribbon:()=>za,scaleBand:()=>Lp,scaleDiverging:()=>hm,scaleIdentity:()=>Xp,scaleImplicit:()=>Pp,scaleLinear:()=>Wp,scaleLog:()=>ng,scaleOrdinal:()=>Ip,scalePoint:()=>Dp,scalePow:()=>rg,scaleQuantile:()=>og,scaleQuantize:()=>ag,scaleSequential:()=>fm,scaleSqrt:()=>ig,scaleThreshold:()=>ug,scaleTime:()=>sm,scaleUtc:()=>lm,scan:()=>j,schemeAccent:()=>gm,schemeBlues:()=>h_,schemeBrBG:()=>Em,schemeBuGn:()=>Bm,schemeBuPu:()=>Ym,schemeCategory10:()=>pm,schemeDark2:()=>vm,schemeGnBu:()=>Wm,schemeGreens:()=>p_,schemeGreys:()=>v_,schemeOrRd:()=>Gm,schemeOranges:()=>x_,schemePRGn:()=>km,schemePaired:()=>ym,schemePastel1:()=>mm,schemePastel2:()=>_m,schemePiYG:()=>Sm,schemePuBu:()=>Km,schemePuBuGn:()=>Qm,schemePuOr:()=>Am,schemePuRd:()=>t_,schemePurples:()=>m_,schemeRdBu:()=>Pm,schemeRdGy:()=>Lm,schemeRdPu:()=>e_,schemeRdYlBu:()=>Dm,schemeRdYlGn:()=>zm,schemeReds:()=>b_,schemeSet1:()=>bm,schemeSet2:()=>wm,schemeSet3:()=>xm,schemeSpectral:()=>qm,schemeYlGn:()=>a_,schemeYlGnBu:()=>i_,schemeYlOrBr:()=>c_,schemeYlOrRd:()=>l_,select:()=>kn,selectAll:()=>Ln,selection:()=>Nn,selector:()=>mt,selectorAll:()=>bt,set:()=>Fa.t8,shuffle:()=>B,stack:()=>qw,stackOffsetDiverging:()=>Bw,stackOffsetExpand:()=>jw,stackOffsetNone:()=>Ow,stackOffsetSilhouette:()=>Hw,stackOffsetWiggle:()=>Yw,stackOrderAscending:()=>Vw,stackOrderDescending:()=>Xw,stackOrderInsideOut:()=>Gw,stackOrderNone:()=>zw,stackOrderReverse:()=>$w,stratify:()=>Kd,style:()=>jt,sum:()=>H,svg:()=>mu,symbol:()=>Gb,symbolCircle:()=>Ab,symbolCross:()=>Rb,symbolDiamond:()=>Lb,symbolSquare:()=>Fb,symbolStar:()=>zb,symbolTriangle:()=>jb,symbolWye:()=>Wb,symbols:()=>Xb,text:()=>uu,thresholdFreedmanDiaconis:()=>I,thresholdScott:()=>L,thresholdSturges:()=>A,tickIncrement:()=>S,tickStep:()=>C,ticks:()=>T,timeDay:()=>Cg,timeDays:()=>Ag,timeFormat:()=>Iv,timeFormatDefaultLocale:()=>Xy,timeFormatLocale:()=>Rv,timeFriday:()=>Og,timeFridays:()=>Yg,timeHour:()=>kg,timeHours:()=>Tg,timeInterval:()=>lg,timeMillisecond:()=>hg,timeMilliseconds:()=>dg,timeMinute:()=>Mg,timeMinutes:()=>Eg,timeMonday:()=>Ig,timeMondays:()=>qg,timeMonth:()=>Xg,timeMonths:()=>Gg,timeParse:()=>Lv,timeSaturday:()=>zg,timeSaturdays:()=>Vg,timeSecond:()=>bg,timeSeconds:()=>wg,timeSunday:()=>Pg,timeSundays:()=>Fg,timeThursday:()=>Dg,timeThursdays:()=>Hg,timeTuesday:()=>Lg,timeTuesdays:()=>jg,timeWednesday:()=>Ug,timeWednesdays:()=>Bg,timeWeek:()=>Pg,timeWeeks:()=>Fg,timeYear:()=>Qg,timeYears:()=>Zg,timeout:()=>pi,timer:()=>si,timerFlush:()=>li,touch:()=>Un,touches:()=>Dn,transition:()=>$i,transpose:()=>Y,tree:()=>op,treemap:()=>lp,treemapBinary:()=>fp,treemapDice:()=>Vd,treemapResquarify:()=>dp,treemapSlice:()=>ap,treemapSliceDice:()=>hp,treemapSquarify:()=>sp,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:()=>sv,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:()=>lv,utcTuesdays:()=>yv,utcWednesday:()=>fv,utcWednesdays:()=>mv,utcWeek:()=>cv,utcWeeks:()=>gv,utcYear:()=>kv,utcYears:()=>Tv,values:()=>Fa.VO,variance:()=>g,version:()=>r,voronoi:()=>Ux,window:()=>Ot,xml:()=>vu,zip:()=>W,zoom:()=>$x,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 s=u;function l(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>=N?5:o>=k?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(o>=E?10:o>=N?5:o>=k?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>=N?i*=5:o>=k&&(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]:l,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*(P(t,.75)-P(t,.25))*Math.pow(t.length,-1/3)))}function L(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 Nt(t){return new Array(t.length)}function kt(t,n){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=n}kt.prototype={constructor:kt,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 Tt="$";function St(t,n,e,r,i,o){for(var a,u=0,c=n.length,s=o.length;un?1:t>=n?0:NaN}function Rt(t){return function(){this.removeAttribute(t)}}function Pt(t){return function(){this.removeAttributeNS(t.space,t.local)}}function It(t,n){return function(){this.setAttribute(t,n)}}function Lt(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 Ot(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)||Ot(t).getComputedStyle(t,null).getPropertyValue(n)}function Bt(t){return function(){delete this[t]}}function Ht(t,n){return function(){this[t]=n}}function Yt(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 Gt(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?Yt:Ht)(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(){kn(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=se.exec(t))?me(n[1],n[2]/100,n[3]/100,n[4]):le.hasOwnProperty(t)?he(le[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)}Gn(Qn,fe,{displayable:function(){return this.rgb().displayable()},hex:function(){return this.rgb().hex()},toString:function(){return this.rgb()+""}}),Gn(ve,ge,$n(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+")")}})),Gn(be,_e,$n(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,Ne=1,ke=.82521,Te=4/29,Se=6/29,Ce=3*Se*Se,Ae=Se*Se*Se;function Re(t){if(t instanceof Le)return new Le(t.l,t.a,t.b,t.opacity);if(t instanceof Be){if(isNaN(t.h))return new Le(t.l,0,0,t.opacity);var n=t.h*xe;return new Le(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)/Ne);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)/ke)),new Le(116*u-16,500*(e-u),200*(u-r),t.opacity)}function Pe(t,n){return new Le(t,0,0,null==n?1:n)}function Ie(t,n,e,r){return 1===arguments.length?Re(t):new Le(t,n,e,null==r?1:r)}function Le(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+Te}function De(t){return t>Se?t*t*t:Ce*(t-Te)}function Oe(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 Le||(t=Re(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}Gn(Le,Ie,$n(Qn,{brighter:function(t){return new Le(this.l+18*(null==t?1:t),this.a,this.b,this.opacity)},darker:function(t){return new Le(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(Oe(3.1338561*(n=Ee*De(n))-1.6168667*(t=Ne*De(t))-.4906146*(e=ke*De(e))),Oe(-.9787684*n+1.9161415*t+.033454*e),Oe(.0719453*n-.2289914*t+1.4052427*e),this.opacity)}})),Gn(Be,je,$n(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 Re(this).rgb()}}));var He=-.14861,Ye=1.78277,Ve=-.29227,We=-.90649,Xe=1.97294,Ge=Xe*We,$e=Xe*Ye,Qe=Ye*Ve-We*He;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+Ge*n-$e*e)/(Qe+Ge-$e),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)}Gn(Ke,Ze,$n(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*(He*r+Ye*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{li()}finally{Zr=0,function(){for(var t,n,e=$r,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:$r=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=si.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:$r=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,lt.W)("start","end","interrupt"),yi=[],mi=0,_i=1,bi=2,wi=3,xi=4,Mi=5,Ei=6;function Ni(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 s,l,f,h;if(e.state!==_i)return u();for(s in i)if((h=i[s]).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[s]):+smi)throw new Error("too late; already scheduled");return e}function Ti(t,n){var e=Si(t,n);if(e.state>bi)throw new Error("too late; already started");return e}function Si(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)?ki:Ti;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,Pi(this,"attr."+t,n)):null==n?(e.local?Ui:Li)(e):(e.local?Oi: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,Pi(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}}(Pi(this,"text",t)):function(t){return function(){this.textContent=t}}(null==t?"":t+""))},remove:function(){return this.on("end.remove",function(t){return function(){var 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=Si(this.node(),e).tween,o=0,a=i.length;o_i&&e.name===n)return new Gi([[t]],Ho,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 Go(){dn.preventDefault(),dn.stopImmediatePropagation()}var $o={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 sa(){var t=this.ownerSVGElement||this;return[[0,0],[t.width.baseVal.value,t.height.baseVal.value]]}function la(t){for(;!t.__brush;)if(!(t=t.parentNode))return;return t.__brush}function fa(t){return t[0][0]===t[1][0]||t[0][1]===t[1][1]}function 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=sa,r=ca,i=(0,lt.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=la(this).extent;kn(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",l)}function u(){var t=kn(this),n=la(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 s(t,n)}function s(t,n){this.that=t,this.args=n,this.state=t.__brush,this.active=0}function l(){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}Go()}),!0).on("keyup.brush",(function(){switch(dn.keyCode){case 16:A&&(v=y=A=!1,z());break;case 18:b===Ko&&(w<0?s=l:w>0&&(e=i),x<0?f=h:x>0&&(o=a),b=Zo,z());break;case 32:b===Qo&&(dn.altKey?(w&&(s=l-d*w,e=i+d*w),x&&(f=h-p*x,o=a+p*x),b=Ko):(w<0?s=l:w>0&&(e=i),x<0?f=h:x>0&&(o=a),b=Zo),U.attr("cursor",ea[_]),z());break;default:return}Go()}),!0).on("mousemove.brush",O,!0).on("mouseup.brush",F,!0);Fn(dn.view)}Xo(),Ci(m),u.call(m),I.start()}function O(){var t=In(m);!A||v||y||(Math.abs(t[0]-P[0])>Math.abs(t[1]-P[1])?y=!0:v=!0),P=t,g=!0,Go(),z()}function z(){var t;switch(d=P[0]-R[0],p=P[1]-R[1],b){case Qo:case $o:w&&(d=Math.max(k-e,Math.min(S-s,d)),i=e+d,l=s+d),x&&(p=Math.max(T-o,Math.min(C-f,p)),a=o+p,h=f+p);break;case Zo:w<0?(d=Math.max(k-e,Math.min(S-e,d)),i=e+d,l=s):w>0&&(d=Math.max(k-s,Math.min(S-s,d)),i=e,l=s+d),x<0?(p=Math.max(T-o,Math.min(C-o,p)),a=o+p,h=f):x>0&&(p=Math.max(T-f,Math.min(C-f,p)),a=o,h=f+p);break;case Ko:w&&(i=Math.max(k,Math.min(S,e-d*w)),l=Math.max(k,Math.min(S,s+d*w))),x&&(a=Math.max(T,Math.min(C,o-p*x)),h=Math.max(T,Math.min(C,f+p*x)))}lSa)if(Math.abs(l*u-c*s)>Sa&&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((ka-Math.acos((p+f-g)/(2*v*y)))/2),_=m/y,b=m/v;Math.abs(_-1)>Sa&&(this._+="L"+(t+_*s)+","+(n+_*l)),this._+="A"+i+","+i+",0,0,"+ +(l*h>s*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,s=n+u,l=1^o,f=o?r-i:i-r;if(e<0)throw new Error("negative radius: "+e);null===this._x1?this._+="M"+c+","+s:(Math.abs(this._x1-c)>Sa||Math.abs(this._y1-s)>Sa)&&(this._+="L"+c+","+s),e&&(f<0&&(f=f%Ta+Ta),f>Ca?this._+="A"+e+","+e+",0,1,"+l+","+(t-a)+","+(n-u)+"A"+e+","+e+",0,1,"+l+","+(this._x1=c)+","+(this._y1=s):f>Sa&&(this._+="A"+e+","+e+",0,"+ +(f>=ka)+","+l+","+(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 Pa=Ra;function Ia(t){return t.source}function La(t){return t.target}function Ua(t){return t.radius}function Da(t){return t.startAngle}function Oa(t){return t.endAngle}function za(){var t=Ia,n=La,e=Ua,r=Da,i=Oa,o=null;function a(){var a,u=Ea.call(arguments),c=t.apply(this,u),s=n.apply(this,u),l=+e.apply(this,(u[0]=c,u)),f=r.apply(this,u)-ba,h=i.apply(this,u)-ba,d=l*ya(f),p=l*ma(f),g=+e.apply(this,(u[0]=s,u)),v=r.apply(this,u)-ba,y=i.apply(this,u)-ba;if(o||(o=a=Pa()),o.moveTo(d,p),o.arc(0,0,l,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:Na(+t),a):e},a.startAngle=function(t){return arguments.length?(r="function"==typeof t?t:Na(+t),a):r},a.endAngle=function(t){return arguments.length?(i="function"==typeof t?t:Na(+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 Ha(t,n){for(var e,r=-1,i=n.length;++rr!=d>r&&e<(h-s)*(r-l)/(d-l)+s&&(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 Ga(){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,s,l,f,h=new Array,d=new Array;for(o=u=-1,s=e[0]>=r,Xa[s<<1].forEach(p);++o=r,Xa[c|s<<1].forEach(p);for(Xa[s<<0].forEach(p);++u=r,l=e[u*t]>=r,Xa[s<<1|l<<2].forEach(p);++o=r,f=l,l=e[u*t+o+1]>=r,Xa[c|s<<1|l<<2|f<<3].forEach(p);Xa[s|l<<3].forEach(p)}for(o=-1,l=e[u*t]>=r,Xa[l<<2].forEach(p);++o=r,Xa[l<<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],s=a(r),l=a(c);(n=d[s])?(e=h[l])?(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=l]=n):(n=h[l])?(e=d[s])?(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=s]=n):h[s]=d[l]={start:s,end:l,ring:[r,c]}}Xa[l<<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 $a(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,s=i+2*u>>a,l=Ba(20);function f(r){var i=new Float32Array(c*s),f=new Float32Array(c*s);r.forEach((function(r,o,l){var f=+t(r,o,l)+u>>a,h=+n(r,o,l)+u>>a,d=+e(r,o,l);f>=0&&f=0&&h>a),Qa({width:c,height:s,data:f},{width:c,height:s,data:i},o>>a),$a({width:c,height:s,data:i},{width:c,height:s,data:f},o>>a),Qa({width:c,height:s,data:f},{width:c,height:s,data:i},o>>a),$a({width:c,height:s,data:i},{width:c,height:s,data:f},o>>a),Qa({width:c,height:s,data:f},{width:c,height:s,data:i},o>>a);var d=l(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 Ga().thresholds(d).size([c,s])(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,s=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?(l="function"==typeof t?t:Array.isArray(t)?Ba(qa.call(t)):Ba(t),f):l},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 su(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 lu=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,(l=e>=(a=(v+m)/2))?v=a:m=a,i=d,!(d=d[f=l<<1|s]))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),(s=n>=(o=(g+y)/2))?g=o:y=o,(l=e>=(a=(v+m)/2))?v=a:m=a}while((f=l<<1|s)==(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 Nu(t){return t[1]}function ku(t,n,e){var r=new Tu(null==n?Eu:n,null==e?Nu:e,NaN,NaN,NaN,NaN);return null==t?r:r.addAll(t)}function Tu(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 Su(t){for(var n={data:t.data},e=n;t=t.next;)e=e.next={data:t.data};return n}var Cu=ku.prototype=Tu.prototype;function Au(t){return t.x+t.vx}function Ru(t){return t.y+t.vy}function Pu(t){var n,e,r=1,i=1;function o(){for(var t,o,u,c,s,l,f,h=n.length,d=0;dc+d||is+d||ou.index){var p=c-a.x-a.vx,g=s-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;rl&&(l=r),if&&(f=i));for(lt||t>i||r>n||n>o))return this;var a,u,c=i-e,s=this._root;switch(u=(n<(r+o)/2)<<1|t<(e+i)/2){case 0:do{(a=new Array(4))[u]=s,s=a}while(o=r+(c*=2),t>(i=e+c)||n>o);break;case 1:do{(a=new Array(4))[u]=s,s=a}while(o=r+(c*=2),(e=i-c)>t||n>o);break;case 2:do{(a=new Array(4))[u]=s,s=a}while(r=o-(c*=2),t>(i=e+c)||r>n);break;case 3:do{(a=new Array(4))[u]=s,s=a}while(r=o-(c*=2),(e=i-c)>t||r>n)}this._root&&this._root.length&&(this._root=s)}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,s,l=this._x0,f=this._y0,h=this._x1,d=this._y1,p=[],g=this._root;for(g&&p.push(new Mu(g,l,f,h,d)),null==e?e=1/0:(l=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-s],p[p.length-1-s]=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,(l=a>=(c=(g+y)/2))?g=c:y=c,n=d,!(d=d[f=l<<1|s]))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,s=0,l=t.length;for(null==r?r=1/0:r*=r,s=0;s1?(s.on(t,e),n):s.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=ku(t,Du,Ou).visitAfter(l);for(e=r,i=0;i=a)){(t.data!==n||t.next)&&(0===l&&(d+=(l=wu())*l),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,Gu=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function $u(t){return new Qu(t)}function Qu(t){if(!(n=Gu.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")}$u.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=$u(t)).fill,e=t.align,c=t.sign,s=t.symbol,l=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"),(l||"0"===n&&"="===e)&&(l=!0,n="0",e="=");var v="$"===s?i[0]:"#"===s&&/[boxX]/.test(g)?"0"+g.toLowerCase():"",y="$"===s?i[1]:/[%p]/.test(g)?u:"",m=Ku[g],_=/[defgprs%]/.test(g);function b(t){var i,u,s,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(s=t.charCodeAt(i))||s>57){w=(46===s?o+t.slice(i+1):t.slice(i))+w,t=t.slice(0,i);break}}h&&!l&&(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=$u(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 sc(){return new lc}function lc(){this.reset()}oc({decimal:".",thousands:",",grouping:[3],currency:["$",""]}),lc.prototype={constructor:lc,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 lc;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,Nc=Math.ceil,kc=Math.exp,Tc=(Math.floor,Math.log),Sc=Math.pow,Cc=Math.sin,Ac=Math.sign||function(t){return t>0?1:t<0?-1:0},Rc=Math.sqrt,Pc=Math.tan;function Ic(t){return t>1?0:t<-1?gc:Math.acos(t)}function Lc(t){return t>1?vc:t<-1?-vc:Math.asin(t)}function Uc(t){return(t=Cc(t/2))*t}function Dc(){}function Oc(t,n){t&&Fc.hasOwnProperty(t.type)&&Fc[t.type](t,n)}var zc={Feature:function(t,n){Oc(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),s=u*r*Cc(i);Gc.add(Mc(s,c)),Vc=t,Wc=o,Xc=a}function ns(t){return $c.reset(),Bc(t,Qc),2*$c}function es(t){return[Mc(t[1],t[0]),Lc(t[2])]}function rs(t){var n=t[0],e=t[1],r=Ec(e);return[r*Ec(n),r*Cc(n),Cc(e)]}function is(t,n){return t[0]*n[0]+t[1]*n[1]+t[2]*n[2]}function os(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 as(t,n){t[0]+=n[0],t[1]+=n[1],t[2]+=n[2]}function us(t,n){return[t[0]*n,t[1]*n,t[2]*n]}function cs(t){var n=Rc(t[0]*t[0]+t[1]*t[1]+t[2]*t[2]);t[0]/=n,t[1]/=n,t[2]/=n}var ss,ls,fs,hs,ds,ps,gs,vs,ys,ms,_s,bs,ws,xs,Ms,Es,Ns,ks,Ts,Ss,Cs,As,Rs,Ps,Is,Ls,Us=sc(),Ds={point:Os,lineStart:Fs,lineEnd:qs,polygonStart:function(){Ds.point=js,Ds.lineStart=Bs,Ds.lineEnd=Hs,Us.reset(),Qc.polygonStart()},polygonEnd:function(){Qc.polygonEnd(),Ds.point=Os,Ds.lineStart=Fs,Ds.lineEnd=qs,Gc<0?(ss=-(fs=180),ls=-(hs=90)):Us>dc?hs=90:Us<-dc&&(ls=-90),ms[0]=ss,ms[1]=fs}};function Os(t,n){ys.push(ms=[ss=t,fs=t]),nhs&&(hs=n)}function zs(t,n){var e=rs([t*bc,n*bc]);if(vs){var r=os(vs,e),i=os([r[1],-r[0],0],r);cs(i),i=es(i);var o,a=t-ds,u=a>0?1:-1,c=i[0]*_c*u,s=wc(a)>180;s^(u*dshs&&(hs=o):s^(u*ds<(c=(c+360)%360-180)&&chs&&(hs=n)),s?tYs(ss,fs)&&(fs=t):Ys(t,fs)>Ys(ss,fs)&&(ss=t):fs>=ss?(tfs&&(fs=t)):t>ds?Ys(ss,t)>Ys(ss,fs)&&(fs=t):Ys(t,fs)>Ys(ss,fs)&&(ss=t)}else ys.push(ms=[ss=t,fs=t]);nhs&&(hs=n),vs=e,ds=t}function Fs(){Ds.point=zs}function qs(){ms[0]=ss,ms[1]=fs,Ds.point=Os,vs=null}function js(t,n){if(vs){var e=t-ds;Us.add(wc(e)>180?e+(e>0?360:-360):e)}else ps=t,gs=n;Qc.point(t,n),zs(t,n)}function Bs(){Qc.lineStart()}function Hs(){js(ps,gs),Qc.lineEnd(),wc(Us)>dc&&(ss=-(fs=180)),ms[0]=ss,ms[1]=fs,vs=null}function Ys(t,n){return(n-=t)<0?n+360:n}function Vs(t,n){return t[0]-n[0]}function Ws(t,n){return t[0]<=t[1]?t[0]<=n&&n<=t[1]:nYs(r[0],r[1])&&(r[1]=i[1]),Ys(i[0],r[1])>Ys(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=Ys(r[1],i[0]))>a&&(a=u,ss=i[0],fs=r[1])}return ys=ms=null,ss===1/0||ls===1/0?[[NaN,NaN],[NaN,NaN]]:[[ss,ls],[fs,hs]]}var Gs={sphere:Dc,point:$s,lineStart:Zs,lineEnd:tl,polygonStart:function(){Gs.lineStart=nl,Gs.lineEnd=el},polygonEnd:function(){Gs.lineStart=Zs,Gs.lineEnd=tl}};function $s(t,n){t*=bc;var e=Ec(n*=bc);Qs(e*Ec(t),e*Cc(t),Cc(n))}function Qs(t,n,e){++_s,ws+=(t-ws)/_s,xs+=(n-xs)/_s,Ms+=(e-Ms)/_s}function Zs(){Gs.point=Ks}function Ks(t,n){t*=bc;var e=Ec(n*=bc);Ps=e*Ec(t),Is=e*Cc(t),Ls=Cc(n),Gs.point=Js,Qs(Ps,Is,Ls)}function Js(t,n){t*=bc;var e=Ec(n*=bc),r=e*Ec(t),i=e*Cc(t),o=Cc(n),a=Mc(Rc((a=Is*o-Ls*i)*a+(a=Ls*r-Ps*o)*a+(a=Ps*i-Is*r)*a),Ps*r+Is*i+Ls*o);bs+=a,Es+=a*(Ps+(Ps=r)),Ns+=a*(Is+(Is=i)),ks+=a*(Ls+(Ls=o)),Qs(Ps,Is,Ls)}function tl(){Gs.point=$s}function nl(){Gs.point=rl}function el(){il(As,Rs),Gs.point=$s}function rl(t,n){As=t,Rs=n,t*=bc,n*=bc,Gs.point=il;var e=Ec(n);Ps=e*Ec(t),Is=e*Cc(t),Ls=Cc(n),Qs(Ps,Is,Ls)}function il(t,n){t*=bc;var e=Ec(n*=bc),r=e*Ec(t),i=e*Cc(t),o=Cc(n),a=Is*o-Ls*i,u=Ls*r-Ps*o,c=Ps*i-Is*r,s=Rc(a*a+u*u+c*c),l=Lc(s),f=s&&-l/s;Ts+=f*a,Ss+=f*u,Cs+=f*c,bs+=l,Es+=l*(Ps+(Ps=r)),Ns+=l*(Is+(Is=i)),ks+=l*(Ls+(Ls=o)),Qs(Ps,Is,Ls)}function ol(t){_s=bs=ws=xs=Ms=Es=Ns=ks=Ts=Ss=Cs=0,Bc(t,Gs);var n=Ts,e=Ss,r=Cs,i=n*n+e*e+r*r;return igc?t-mc:t<-gc?t+mc:t,n]}function sl(t,n,e){return(t%=mc)?n||e?ul(fl(t),hl(n,e)):fl(t):n||e?hl(n,e):cl}function ll(t){return function(n,e){return[(n+=t)>gc?n-mc:n<-gc?n+mc:n,e]}}function fl(t){var n=ll(t);return n.invert=ll(-t),n}function hl(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,s=Cc(n),l=s*e+u*r;return[Mc(c*i-l*o,u*e-s*r),Lc(l*i+c*o)]}return a.invert=function(t,n){var a=Ec(n),u=Ec(t)*a,c=Cc(t)*a,s=Cc(n),l=s*i-c*o;return[Mc(c*i+s*o,u*e+l*r),Lc(l*e-u*r)]},a}function dl(t){function n(n){return(n=t(n[0]*bc,n[1]*bc))[0]*=_c,n[1]*=_c,n}return t=sl(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 pl(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=gl(a,i),o=gl(a,o),(r>0?io)&&(i+=r*mc));for(var s,l=i;r>0?l>o:l1&&n.push(n.pop().concat(n.shift()))},result:function(){var e=n;return n=[],t=null,e}}}function ml(t,n){return wc(t[0]-n[0])=0;--o)i.point((l=s[o])[0],l[1]);else r(h.x,h.p.x,-1,i);h=h.p}s=(h=h.o).z,d=!d}while(!h.v);i.lineEnd()}}}function wl(t){if(n=t.length){for(var n,e,r=0,i=t[0];++r=0?1:-1,N=E*M,k=N>gc,T=g*w;if(xl.add(Mc(T*E*Cc(N),v*x+T*Ec(N))),a+=k?M+E*mc:M,k^d>=e^_>=e){var S=os(rs(h),rs(m));cs(S);var C=os(o,S);cs(C);var A=(k^M>=0?-1:1)*Lc(C[2]);(r>A||r===A&&(S[0]||S[1]))&&(u+=k^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(Nl))}return h}}function Nl(t){return t.length>1}function kl(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 Tl=El((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=os(rs(t),rs(e)),a=is(o,o),u=o[0],c=a-u*u;if(!c)return!r&&t;var s=n*a/c,l=-n*u/c,f=os(i,o),h=us(i,s);as(h,us(o,l));var d=f,p=is(h,d),g=is(d,d),v=p*p-g*(is(h,h)-1);if(!(v<0)){var y=Rc(v),m=us(d,(-p-y)/g);if(as(m,h),m=es(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 k=us(d,(-p+y)/g);return as(k,h),[m,es(k)]}}}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 El(o,(function(t){var n,e,c,s,l;return{lineStart:function(){s=c=!1,l=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&&(s=c=g)&&t.lineStart(),g!==c&&(!(d=a(n,p))||ml(n,d)||ml(p,d))&&(p[0]+=dc,p[1]+=dc,g=o(p[0],p[1])),g!==c)l=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))||(l=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&&ml(n,p)||t.point(p[0],p[1]),n=p,c=g,e=v},lineEnd:function(){c&&t.lineEnd(),n=null},clean:function(){return l|(s&&c)<<1}}}),(function(n,r,i,o){pl(o,t,e,i,n,r)}),r?[0,-t]:[-gc,t-gc])}var Cl=1e9,Al=-Cl;function Rl(t,n,e,r){function i(i,o){return t<=i&&i<=e&&n<=o&&o<=r}function o(i,o,u,s){var l=0,f=0;if(null==i||(l=a(i,u))!==(f=a(o,u))||c(i,o)<0^u>0)do{s.point(0===l||3===l?t:e,l>1?r:n)}while((l=(l+u+4)%4)!==f);else s.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,s,l,f,h,d,p,g,v,y,m,_=a,b=yl(),w={point:x,lineStart:function(){w.point=M,s&&s.push(l=[]),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=[],s=[],m=!0},polygonEnd:function(){var n=function(){for(var n=0,e=0,i=s.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&&bl(c,u,n,o,a),a.polygonEnd()),_=a,c=s=l=null}};function x(t,n){i(t,n)&&_.point(t,n)}function M(o,a){var u=i(o,a);if(s&&l.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(Al,Math.min(Cl,p)),g=Math.max(Al,Math.min(Cl,g))],b=[o=Math.max(Al,Math.min(Cl,o)),a=Math.max(Al,Math.min(Cl,a))];!function(t,n,e,r,i,o){var a,u=t[0],c=t[1],s=0,l=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>l)return;a>s&&(s=a)}if(a=i-u,f||!(a<0)){if(a/=f,f<0){if(a>l)return;a>s&&(s=a)}else if(f>0){if(a0)){if(a/=h,h<0){if(a0){if(a>l)return;a>s&&(s=a)}if(a=o-c,h||!(a<0)){if(a/=h,h<0){if(a>l)return;a>s&&(s=a)}else if(h>0){if(a0&&(t[0]=u+s*f,t[1]=c+s*h),l<1&&(n[0]=u+l*f,n[1]=c+l*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 Pl(){var t,n,e,r=0,i=0,o=960,a=500;return e={stream:function(e){return t&&n===e?t:t=Rl(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 Il,Ll,Ul,Dl=sc(),Ol={sphere:Dc,point:Dc,lineStart:function(){Ol.point=Fl,Ol.lineEnd=zl},lineEnd:Dc,polygonStart:Dc,polygonEnd:Dc};function zl(){Ol.point=Ol.lineEnd=Dc}function Fl(t,n){Il=t*=bc,Ll=Cc(n*=bc),Ul=Ec(n),Ol.point=ql}function ql(t,n){t*=bc;var e=Cc(n*=bc),r=Ec(n),i=wc(t-Il),o=Ec(i),a=r*Cc(i),u=Ul*e-Ll*r*o,c=Ll*e+Ul*r*o;Dl.add(Mc(Rc(a*a+u*u),c)),Il=t,Ll=e,Ul=r}function jl(t){return Dl.reset(),Bc(t,Ol),+Dl}var Bl=[null,null],Hl={type:"LineString",coordinates:Bl};function Yl(t,n){return Bl[0]=t,Bl[1]=n,jl(Hl)}var Vl={Feature:function(t,n){return Xl(t.geometry,n)},FeatureCollection:function(t,n){for(var e=t.features,r=-1,i=e.length;++rdc})).map(c)).concat(M(Nc(o/d)*d,i,d).filter((function(t){return wc(t%g)>dc})).map(s))}return y.lines=function(){return m().map((function(t){return{type:"LineString",coordinates:t}}))},y.outline=function(){return{type:"Polygon",coordinates:[l(r).concat(f(a).slice(1),l(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),s=nf(n,t,v),l=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),s=Cc(o),l=a*Ec(e),f=a*Cc(e),h=c*Ec(i),d=c*Cc(i),p=2*Lc(Rc(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*l+n*h,i=e*f+n*d,o=e*u+n*s;return[Mc(i,r)*_c,Mc(o,Rc(r*r+i*i))*_c]}:function(){return[e*_c,r*_c]};return v.distance=p,v}function af(t){return t}var uf,cf,sf,lf,ff=sc(),hf=sc(),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=sf=t,cf=lf=n}function vf(t,n){hf.add(lf*t-sf*n),sf=t,lf=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 Nf,kf,Tf,Sf,Cf=0,Af=0,Rf=0,Pf=0,If=0,Lf=0,Uf=0,Df=0,Of=0,zf={point:Ff,lineStart:qf,lineEnd:Hf,polygonStart:function(){zf.lineStart=Yf,zf.lineEnd=Vf},polygonEnd:function(){zf.point=Ff,zf.lineStart=qf,zf.lineEnd=Hf},result:function(){var t=Of?[Uf/Of,Df/Of]:Lf?[Pf/Lf,If/Lf]:Rf?[Cf/Rf,Af/Rf]:[NaN,NaN];return Cf=Af=Rf=Pf=If=Lf=Uf=Df=Of=0,t}};function Ff(t,n){Cf+=t,Af+=n,++Rf}function qf(){zf.point=jf}function jf(t,n){zf.point=Bf,Ff(Tf=t,Sf=n)}function Bf(t,n){var e=t-Tf,r=n-Sf,i=Rc(e*e+r*r);Pf+=i*(Tf+t)/2,If+=i*(Sf+n)/2,Lf+=i,Ff(Tf=t,Sf=n)}function Hf(){zf.point=Ff}function Yf(){zf.point=Wf}function Vf(){Xf(Nf,kf)}function Wf(t,n){zf.point=Xf,Ff(Nf=Tf=t,kf=Sf=n)}function Xf(t,n){var e=t-Tf,r=n-Sf,i=Rc(e*e+r*r);Pf+=i*(Tf+t)/2,If+=i*(Sf+n)/2,Lf+=i,Uf+=(i=Sf*t-Tf*n)*(Tf+t),Df+=i*(Sf+n),Of+=3*i,Ff(Tf=t,Sf=n)}const Gf=zf;function $f(t){this._context=t}$f.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=sc(),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(Rc(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(Gf)),Gf.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 $f(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 sh(t){return{stream:lh(t)}}function lh(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,s,l,f,h,d,p,g,v){var y=s-r,m=l-i,_=y*y+m*m;if(_>4*n&&g--){var b=a+h,w=u+d,x=c+p,M=Rc(b*b+w*w+x*x),E=Lc(x/=M),N=wc(wc(x)-1)n||wc((y*C+m*A)/_-.5)>.3||a*h+u*d+c*p2?t[2]%360*bc:0,T()):[v*_c,y*_c,m*_c]},N.angle=function(t){return arguments.length?(_=t%360*bc,T()):_*_c},N.precision=function(t){return arguments.length?(a=_h(u,E=t*t),S()):Rc(E)},N.fitExtent=function(t,n){return dh(N,t,n)},N.fitSize=function(t,n){return ph(N,t,n)},N.fitWidth=function(t,n){return gh(N,t,n)},N.fitHeight=function(t,n){return vh(N,t,n)},function(){return n=t.apply(this,arguments),N.invert=n.invert&&k,T()}}function Nh(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 kh(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)},l.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/Sc(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)*Rc(t*t+e*e);return[Mc(t,wc(e))/r*Ac(e),2*xc(Sc(i/o,1/r))-vc]},o}function jh(){return Nh(qh).scale(109.5).parallels([30,30])}function Bh(t,n){return[t,n]}function Hh(){return Mh(Bh).scale(152.63)}function Yh(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),s=u.x-t(u,c)/2,l=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-s)/(l-s)*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),s=[u];for(null==n&&(n=yd);e=s.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)s.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*(Gh+$h*i))-n)/(Wh+3*Xh*i+o*(7*Gh+9*$h*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=Rh(Lc),ud.invert=Rh((function(t){return 2*xc(t)})),sd.invert=function(t,n){return[-n,2*xc(kc(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 kd(t,n){for(var e=0;e(a*=a)?(r=(s+a-i)/(2*s),o=Math.sqrt(Math.max(0,a/s-r*r)),e.x=t.x-r*u-o*c,e.y=t.y-r*c+o*u):(r=(s+i-a)/(2*s),o=Math.sqrt(Math.max(0,i/s-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 Rd(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 Pd(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 Ld(t){if(!(i=t.length))return 0;var n,e,r,i,o,a,u,c,s,l,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 s=i,l=i,f=i;i.eachBefore((function(t){t.xl.x&&(l=t),t.depth>f.depth&&(f=t)}));var h=s===l?1:t(s,l)/2,d=h-s.x,p=n/(l.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],s=o.m,l=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-s+t(u._,o._))>0&&(ep(rp(u,n,r),n,i),s+=i,l+=i),f+=u.m,s+=o.m,h+=c.m,l+=a.m;u&&!np(a)&&(a.t=u,a.m+=f-l),o&&!tp(c)&&(c.t=o,c.m+=s-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,s=t.value&&(i-e)/t.value;++uh&&(h=u),v=l*l*g,(d=Math.max(h/v,v/f))>p){l-=u;break}p=d}y.push(a={value:l,dice:c1?n:1)},e}(up);function lp(){var t=sp,n=!1,e=1,r=1,i=[0],o=Od,a=Od,u=Od,c=Od,s=Od;function l(t){return t.x0=t.y0=0,t.x1=e,t.y1=r,t.eachBefore(f),i=[0],n&&t.eachBefore(Yd),t}function f(n){var e=i[n.depth],r=n.x0+e,l=n.y0+e,f=n.x1-e,h=n.y1-e;f=e-1){var l=u[n];return l.x0=i,l.y0=o,l.x1=a,void(l.y1=c)}for(var f=s[n],h=r/2+f,d=n+1,p=e-1;d>>1;s[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,s,l,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)s.push(t[r[o[n]][2]]);for(n=+u;nu!=s>u&&a<(c-e)*(u-r)/(s-r)+e&&(l=!l),c=e,s=r;return l}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),Np=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),kp=function t(n){function e(t){return function(){for(var e=0,r=0;r2?Bp:jp,r=i=null,l}function l(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 l.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)},l.domain=function(t){return arguments.length?(o=Ap.call(t,zp),s()):o.slice()},l.range=function(t){return arguments.length?(a=Rp.call(t),s()):a.slice()},l.rangeRound=function(t){return a=Rp.call(t),u=br,s()},l.clamp=function(t){return arguments.length?(c=!!t,s()):c},l.interpolate=function(t){return arguments.length?(u=t,s()):u},s()}function Vp(t){var n=t.domain;return t.ticks=function(t){var e=n();return T(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=$u(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=S(u=Math.floor(u/r)*r,c=Math.ceil(c/r)*r,e):r<0&&(r=S(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=Yp(qp,hr);return t.copy=function(){return Hp(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 Gp(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;--l)if(!((f=s*l)c)break;g.push(f)}}else g=T(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[s(t,r,0,e)]}return r.domain=function(i){return arguments.length?(t=Rp.call(i),e=Math.min(t.length,n.length-1),r):t.slice()},r.range=function(i){return arguments.length?(n=Rp.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,sg=new Date;function lg(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),sg.setTime(+r),t(cg),t(sg),Math.floor(e(cg,sg))},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=lg((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?lg((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=lg((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=lg((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,Ng=lg((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 kg=Ng;var Tg=Ng.range,Sg=lg((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=Sg;var Ag=Sg.range;function Rg(t){return lg((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 Pg=Rg(0),Ig=Rg(1),Lg=Rg(2),Ug=Rg(3),Dg=Rg(4),Og=Rg(5),zg=Rg(6),Fg=Pg.range,qg=Ig.range,jg=Lg.range,Bg=Ug.range,Hg=Dg.range,Yg=Og.range,Vg=zg.range,Wg=lg((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 Gg=Wg.range,$g=lg((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()}));$g.every=function(t){return isFinite(t=Math.floor(t))&&t>0?lg((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=$g;var Zg=$g.range,Kg=lg((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=lg((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=lg((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 lg((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),sv=uv(1),lv=uv(2),fv=uv(3),hv=uv(4),dv=uv(5),pv=uv(6),gv=cv.range,vv=sv.range,yv=lv.range,mv=fv.range,_v=hv.range,bv=dv.range,wv=pv.range,xv=lg((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,Nv=lg((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()}));Nv.every=function(t){return isFinite(t=Math.floor(t))&&t>0?lg((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 kv=Nv;var Tv=Nv.range;function Sv(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 Rv(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,s=Hv(i),l=Yv(i),f=Hv(o),h=Yv(o),d=Hv(a),p=Yv(a),g=Hv(u),v=Yv(u),y=Hv(c),m=Yv(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:ly,e:ly,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:Ny,Z:ky,"%":Yy},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:Ty,e:Ty,f:Py,H:Sy,I:Cy,j:Ay,L:Ry,m:Iy,M:Ly,p:function(t){return i[+(t.getUTCHours()>=12)]},Q:Vy,s:Wy,S:Uy,u:Dy,U:Oy,V:zy,w:Fy,W:qy,x:null,X:null,y:jy,Y:By,Z:Hy,"%":Yy},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=s.exec(n.slice(e));return r?(t.p=l[r[0].toLowerCase()],e+r[0].length):-1},Q:cy,s:sy,S:iy,u:Wv,U:Xv,V:Gv,w:Vv,W:$v,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,s=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?sv.ceil(r):sv(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 Ov?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+="",Sv);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 Pv,Iv,Lv,Uv,Dv,Ov={"-":"",_:" ",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 sy(t,n,e){var r=zv.exec(n.slice(e));return r?(t.Q=1e3*+r[0],e+r[0].length):-1}function ly(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(Pg.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 Ny(t,n){return jv(t.getFullYear()%1e4,n,4)}function ky(t){var n=t.getTimezoneOffset();return(n>0?"-":(n*=-1,"+"))+jv(n/60|0,"0",2)+jv(n%60,"0",2)}function Ty(t,n){return jv(t.getUTCDate(),n,2)}function Sy(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(kv(t),t),n,3)}function Ry(t,n){return jv(t.getUTCMilliseconds(),n,3)}function Py(t,n){return Ry(t,n)+"000"}function Iy(t,n){return jv(t.getUTCMonth()+1,n,2)}function Ly(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 Oy(t,n){return jv(cv.count(kv(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(kv(t),t)+(4===kv(t).getUTCDay()),n,2)}function Fy(t){return t.getUTCDay()}function qy(t,n){return jv(sv.count(kv(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 Hy(){return"+0000"}function Yy(){return"%"}function Vy(t){return+t}function Wy(t){return Math.floor(+t/1e3)}function Xy(t){return Pv=Rv(t),Iv=Pv.format,Lv=Pv.parse,Uv=Pv.utcFormat,Dv=Pv.utcParse,Pv}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 Gy="%Y-%m-%dT%H:%M:%S.%LZ",$y=Date.prototype.toISOString?function(t){return t.toISOString()}:Uv(Gy);const Qy=$y;var Zy=+new Date("2000-01-01T00:00:00.000Z")?function(t){var n=new Date(t);return isNaN(n)?null:n}:Dv(Gy);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,s){var l=Yp(qp,hr),f=l.invert,h=l.domain,d=s(".%L"),p=s(":%S"),g=s("%I:%M"),v=s("%I %p"),y=s("%a %d"),m=s("%b %d"),_=s("%B"),b=s("%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 T_.h=360*t-100,T_.s=1.5-1.5*n,T_.l=.8-.9*n,T_+""}var C_=ge(),A_=Math.PI/3,R_=2*Math.PI/3;function P_(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+R_))*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 L_=I_(dm("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725"));var U_=I_(dm("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf")),D_=I_(dm("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4")),O_=I_(dm("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"));function z_(t){return function(){return t}}var F_=Math.abs,q_=Math.atan2,j_=Math.cos,B_=Math.max,H_=Math.min,Y_=Math.sin,V_=Math.sqrt,W_=1e-12,X_=Math.PI,G_=X_/2,$_=2*X_;function Q_(t){return t>=1?G_:t<=-1?-G_: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,s=(a?o:-o)/V_(u*u+c*c),l=s*c,f=-s*u,h=t+l,d=n+f,p=e+l,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,N=(-x*m-_*M)/b,k=(x*_+m*M)/b,T=(-x*m+_*M)/b,S=E-v,C=N-y,A=k-v,R=T-y;return S*S+C*C>A*A+R*R&&(E=k,N=T),{cx:E,cy:N,x01:-l,y01:-f,x11:E*(i/w-1),y11:N*(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,s,l,f=+t.apply(this,arguments),h=+n.apply(this,arguments),d=i.apply(this,arguments)-G_,p=o.apply(this,arguments)-G_,g=F_(p-d),v=p>d;if(u||(u=c=Pa()),hW_)if(g>$_-W_)u.moveTo(h*j_(d),h*Y_(d)),u.arc(0,0,h,d,p,!v),f>W_&&(u.moveTo(f*j_(p),f*Y_(p)),u.arc(0,0,f,p,d,v));else{var y,m,_=d,b=p,w=d,x=p,M=g,E=g,N=a.apply(this,arguments)/2,k=N>W_&&(r?+r.apply(this,arguments):V_(f*f+h*h)),T=H_(F_(h-f)/2,+e.apply(this,arguments)),S=T,C=T;if(k>W_){var A=Q_(k/f*Y_(N)),R=Q_(k/h*Y_(N));(M-=2*A)>W_?(w+=A*=v?1:-1,x-=A):(M=0,w=x=(d+p)/2),(E-=2*R)>W_?(_+=R*=v?1:-1,b-=R):(E=0,_=b=(d+p)/2)}var P=h*j_(_),I=h*Y_(_),L=f*j_(x),U=f*Y_(x);if(T>W_){var D=h*j_(b),O=h*Y_(b),z=f*j_(w),F=f*Y_(w);if(gW_?function(t,n,e,r,i,o,a,u){var c=e-t,s=r-n,l=a-i,f=u-o,h=(l*(n-o)-f*(t-i))/(f*c-l*s);return[t+h*c,n+h*s]}(P,I,z,F,D,O,L,U):[L,U],j=P-q[0],B=I-q[1],H=D-q[0],Y=O-q[1],V=1/Y_(((l=(j*H+B*Y)/(V_(j*j+B*B)*V_(H*H+Y*Y)))>1?0:l<-1?X_:Math.acos(l))/2),W=V_(q[0]*q[0]+q[1]*q[1]);S=H_(T,(f-W)/(V-1)),C=H_(T,(h-W)/(V+1))}}E>W_?C>W_?(y=eb(z,F,P,I,h,C,v),m=eb(D,O,L,U,h,C,v),u.moveTo(y.cx+y.x01,y.cy+y.y01),CW_&&M>W_?S>W_?(y=eb(L,U,D,O,f,-S,v),m=eb(P,I,z,F,f,-S,v),u.lineTo(y.cx+y.x01,y.cy+y.y01),S=l;--f)u.point(v[f],y[f]);u.lineEnd(),u.areaEnd()}g&&(v[s]=+t(h,s,c),y[s]=+e(h,s,c),u.point(n?+n(h,s,c):v[s],r?+r(h,s,c):y[s]))}if(d)return u=null,d+""||null}function s(){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 s().x(t).y(e)},c.lineY1=function(){return s().x(t).y(r)},c.lineX1=function(){return s().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 lb(t,n){return nt?1:n>=t?0:NaN}function fb(t){return t}function hb(){var t=fb,n=lb,e=null,r=z_(0),i=z_($_),o=z_(0);function a(a){var u,c,s,l,f,h=a.length,d=0,p=new Array(h),g=new Array(h),v=+r.apply(this,arguments),y=Math.min($_,Math.max(-$_,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,s=d?(y-h*_)/d:0;u0?f*s:0)+_,g[c]={data:a[c],index:u,value:f,startAngle:v,endAngle:l,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=sb().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),s=e.apply(this,u);if(o||(o=a=Pa()),t(o,+r.apply(this,(u[0]=c,u)),+i.apply(this,u),+r.apply(this,(u[0]=s,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 Nb(t,n,e,r,i){t.moveTo(n,e),t.bezierCurveTo(n,e=(e+i)/2,r,e,r,i)}function kb(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 Tb(){return Mb(Eb)}function Sb(){return Mb(Nb)}function Cb(){var t=Mb(kb);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,$_)}},Rb={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 Pb=Math.sqrt(1/3),Ib=2*Pb;const Lb={draw:function(t,n){var e=Math.sqrt(n/Ib),r=e*Pb;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($_/10)*Ub,Ob=-Math.cos($_/10)*Ub;const zb={draw:function(t,n){var e=Math.sqrt(.8908130915292852*n),r=Db*e,i=Ob*e;t.moveTo(0,-e),t.lineTo(r,i);for(var o=1;o<5;++o){var a=$_*o/5,u=Math.cos(a),c=Math.sin(a);t.lineTo(c*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,Hb=Math.sqrt(3)/2,Yb=1/Math.sqrt(12),Vb=3*(Yb/2+1);const Wb={draw:function(t,n){var e=Math.sqrt(n/Vb),r=e/2,i=e*Yb,o=r,a=e*Yb+e,u=-o,c=a;t.moveTo(r,i),t.lineTo(o,a),t.lineTo(u,c),t.lineTo(Bb*r-Hb*i,Hb*r+Bb*i),t.lineTo(Bb*o-Hb*a,Hb*o+Bb*a),t.lineTo(Bb*u-Hb*c,Hb*u+Bb*c),t.lineTo(Bb*r+Hb*i,Bb*i-Hb*r),t.lineTo(Bb*o+Hb*a,Bb*a-Hb*o),t.lineTo(Bb*u+Hb*c,Bb*c-Hb*u),t.closePath()}};var Xb=[Ab,Rb,Lb,Fb,zb,jb,Wb];function Gb(){var t=z_(Ab),n=z_(64),e=null;function r(){var r;if(e||(e=r=Pa()),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 $b(){}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:$b,areaEnd:$b,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:$b,areaEnd:$b,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 sw=function t(n){function e(t){return new cw(t,n)}return e.tension=function(n){return t(+n)},e}(0);function lw(t,n){this._context=t,this._k=(1-n)/6}lw.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 lw(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 s=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,l=3*t._l23_a*(t._l23_a+t._l12_a);o=(o*s+t._x1*t._l23_2a-n*t._l12_2a)/l,a=(a*s+t._y1*t._l23_2a-e*t._l12_2a)/l}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:$b,areaEnd:$b,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 lw(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 Nw(t){this._context=t}function kw(t){this._context=new Tw(t)}function Tw(t){this._context=t}function Sw(t){return new Nw(t)}function Cw(t){return new kw(t)}function Aw(t){this._context=t}function Rw(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=Ow,r=Fw;function i(i){var o,a,u=t.apply(this,arguments),c=i.length,s=u.length,l=new Array(s);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,s=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 Hw(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),Tx[t.index].halfedges.push(o),Tx[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],s=a[1],l=0,f=1,h=u[0]-c,d=u[1]-s;if(o=n-c,h||!(o>0)){if(o/=h,h<0){if(o0){if(o>f)return;o>l&&(l=o)}if(o=r-c,h||!(o<0)){if(o/=h,h<0){if(o>f)return;o>l&&(l=o)}else if(h>0){if(o0)){if(o/=d,d<0){if(o0){if(o>f)return;o>l&&(l=o)}if(o=i-s,d||!(o<0)){if(o/=d,d<0){if(o>f)return;o>l&&(l=o)}else if(d>0){if(o0||f<1)||(l>0&&(t[0]=[c+l*h,s+l*d]),f<1&&(t[1]=[c+f*h,s+f*d]),!0)}}}}}function sx(t,n,e,r,i){var o=t[1];if(o)return!0;var a,u,c=t[0],s=t.left,l=t.right,f=s[0],h=s[1],d=l[0],p=l[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]=-Rx)){var d=c*c+s*s,p=l*l+f*f,g=(f*d-s*p)/h,v=(c*p-l*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,_=Sx._;_;)if(y.y<_.y||y.y===_.y&&y.x<=_.x){if(!_.L){m=_.P;break}_=_.L}else{if(!_.R){m=_;break}_=_.R}Sx.insert(m,y),m||(dx=y)}}}}function yx(t){var n=t.circle;n&&(n.P||(dx=n.N),Sx.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),kx.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-Nx(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){Tx[t.index]={site:t,halfedges:[]}}(t);var c=bx(t);if(kx.insert(n,c),n||e){if(n===e)return yx(n),e=bx(n.site),kx.insert(c,e),c.edge=e.edge=ox(n.site,c.site),vx(n),void vx(e);if(e){yx(n),yx(e);var s=n.site,l=s[0],f=s[1],h=t[0]-l,d=t[1]-f,p=e.site,g=p[0]-l,v=p[1]-f,y=2*(h*v-d*g),m=h*h+d*d,_=g*g+v*v,b=[(v*m-d*_)/y+l,(h*_-g*m)/y+f];ux(e.edge,s,p,b),c.edge=ox(s,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],s=c-n;if(!s)return u;var l=u-r,f=1/o-1/s,h=l/s;return f?(-h+Math.sqrt(h*h-2*f*(l*l/(-2*s)-c+s/2+i-o/2)))/f+r:(r+u)/2}function Nx(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 kx,Tx,Sx,Cx,Ax=1e-6,Rx=1e-12;function Px(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 Lx(t,n){var e,r,i,o=t.sort(Ix).pop();for(Cx=[],Tx=new Array(t.length),kx=new ix,Sx=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,s),function(t,n,e,r){var i,o,a,u,c,s,l,f,h,d,p,g,v=Tx.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],s=n-i.site[1],l=c*c+s*s;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],s=n-u[1],f=c*c+s*s;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 $x(){var t,n,e=Hx,r=Yx,i=Gx,o=Wx,a=Xx,u=[0,1/0],c=[[-1/0,-1/0],[1/0,1/0]],s=250,l=Dr,f=[],h=(0,lt.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",N).filter(a).on("touchstart.zoom",k).on("touchmove.zoom",T).on("touchend.zoom touchcancel.zoom",S).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]),s=t.__zoom,f="function"==typeof n?n.apply(t,i):n,h=l(s.invert(u).concat(c/s.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 N(){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(),s>0?kn(this).transition().duration(s).call(b,u,n):kn(this).call(v.transform,u)}}function k(){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 s=c.append("g").attr("class","label"),l=i(s,u),f=e[u.shape],h=r.pick(l.node().getBBox(),"width","height");u.elem=this,u.id&&c.attr("id",u.id),u.labelId&&s.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,s.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),s=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,s,l,f,h,d,p,g,v,y;if(!(o=e.y-t.y,u=t.x-e.x,s=e.x*t.y-t.x*e.y,d=o*r.x+u*r.y+s,p=o*i.x+u*i.y+s,0!==d&&0!==p&&n(d,p)||(a=i.y-r.y,c=r.x-i.x,l=i.x*r.y-r.x*i.y,f=a*t.x+c*t.y+l,h=a*e.x+c*e.y+l,0!==f&&0!==h&&n(f,h)||0==(g=o*c-a*u))))return v=Math.abs(g/2),{x:(y=u*l-c*s)<0?(y-v)/g:(y+v)/g,y:(y=a*s-o*l)<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 s=i-t.width/2-u,l=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,s=t.height/2;return Math.abs(u)*c>Math.abs(a)*s?(u<0&&(s=-s),e=0===u?0:s*a/u,r=s):(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,s=u.node().getBBox();switch(e){case"top":c=-n.height/2;break;case"bottom":c=n.height/2-s.height;break;default:c=-s.height/2}return u.attr("transform","translate("+-s.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),s=e(940),l=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),l(b,g),f(_,g),s(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?(s=t,g):s},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:()=>iT,area:()=>lT,areaRadial:()=>_T,ascending:()=>i,axisBottom:()=>ct,axisLeft:()=>st,axisRight:()=>ut,axisTop:()=>at,bisect:()=>s,bisectLeft:()=>c,bisectRight:()=>u,bisector:()=>o,brush:()=>qi,brushSelection:()=>Oi,brushX:()=>zi,brushY:()=>Fi,chord:()=>Zi,clientPoint:()=>Tk,cluster:()=>Hg,color:()=>Xo,create:()=>xk,creator:()=>hN,cross:()=>h,csv:()=>P_,csvFormat:()=>Tc,csvFormatRows:()=>Sc,csvParse:()=>Nc,csvParseRows:()=>kc,cubehelix:()=>Ca,curveBasis:()=>JT,curveBasisClosed:()=>nS,curveBasisOpen:()=>rS,curveBundle:()=>oS,curveCardinal:()=>cS,curveCardinalClosed:()=>lS,curveCardinalOpen:()=>hS,curveCatmullRom:()=>gS,curveCatmullRomClosed:()=>yS,curveCatmullRomOpen:()=>_S,curveLinear:()=>aT,curveLinearClosed:()=>wS,curveMonotoneX:()=>CS,curveMonotoneY:()=>AS,curveNatural:()=>IS,curveStep:()=>US,curveStepAfter:()=>OS,curveStepBefore:()=>DS,customEvent:()=>dk,descending:()=>d,deviation:()=>v,dispatch:()=>Da,drag:()=>vc,dragDisable:()=>cc,dragEnable:()=>sc,dsvFormat:()=>Mc,easeBack:()=>ys,easeBackIn:()=>gs,easeBackInOut:()=>ys,easeBackOut:()=>vs,easeBounce:()=>hs,easeBounceIn:()=>fs,easeBounceInOut:()=>ds,easeBounceOut:()=>hs,easeCircle:()=>ts,easeCircleIn:()=>Kc,easeCircleInOut:()=>ts,easeCircleOut:()=>Jc,easeCubic:()=>qc,easeCubicIn:()=>zc,easeCubicInOut:()=>qc,easeCubicOut:()=>Fc,easeElastic:()=>bs,easeElasticIn:()=>_s,easeElasticInOut:()=>ws,easeElasticOut:()=>bs,easeExp:()=>Zc,easeExpIn:()=>$c,easeExpInOut:()=>Zc,easeExpOut:()=>Qc,easeLinear:()=>Lc,easePoly:()=>Hc,easePolyIn:()=>jc,easePolyInOut:()=>Hc,easePolyOut:()=>Bc,easeQuad:()=>Oc,easeQuadIn:()=>Uc,easeQuadInOut:()=>Oc,easeQuadOut:()=>Dc,easeSin:()=>Gc,easeSinIn:()=>Wc,easeSinInOut:()=>Gc,easeSinOut:()=>Xc,entries:()=>Co,event:()=>ck,extent:()=>y,forceCenter:()=>xs,forceCollide:()=>Us,forceLink:()=>Ys,forceManyBody:()=>wl,forceRadial:()=>xl,forceSimulation:()=>bl,forceX:()=>Ml,forceY:()=>El,format:()=>Ll,formatDefaultLocale:()=>zl,formatLocale:()=>Ol,formatPrefix:()=>Ul,formatSpecifier:()=>Al,geoAlbers:()=>lg,geoAlbersUsa:()=>fg,geoArea:()=>Uf,geoAzimuthalEqualArea:()=>gg,geoAzimuthalEqualAreaRaw:()=>pg,geoAzimuthalEquidistant:()=>yg,geoAzimuthalEquidistantRaw:()=>vg,geoBounds:()=>Th,geoCentroid:()=>Fh,geoCircle:()=>Qh,geoClipAntimeridian:()=>hd,geoClipCircle:()=>dd,geoClipExtent:()=>yd,geoClipRectangle:()=>vd,geoConicConformal:()=>Mg,geoConicConformalRaw:()=>xg,geoConicEqualArea:()=>sg,geoConicEqualAreaRaw:()=>cg,geoConicEquidistant:()=>Tg,geoConicEquidistantRaw:()=>kg,geoContains:()=>zd,geoDistance:()=>Cd,geoEquirectangular:()=>Ng,geoEquirectangularRaw:()=>Eg,geoGnomonic:()=>Cg,geoGnomonicRaw:()=>Sg,geoGraticule:()=>jd,geoGraticule10:()=>Bd,geoIdentity:()=>Rg,geoInterpolate:()=>Hd,geoLength:()=>kd,geoMercator:()=>_g,geoMercatorRaw:()=>mg,geoNaturalEarth1:()=>Ig,geoNaturalEarth1Raw:()=>Pg,geoOrthographic:()=>Ug,geoOrthographicRaw:()=>Lg,geoPath:()=>Wp,geoProjection:()=>og,geoProjectionMutator:()=>ag,geoRotation:()=>Xh,geoStereographic:()=>Og,geoStereographicRaw:()=>Dg,geoStream:()=>xf,geoTransform:()=>Xp,geoTransverseMercator:()=>Fg,geoTransverseMercatorRaw:()=>zg,hcl:()=>_a,hierarchy:()=>Vg,histogram:()=>R,hsl:()=>ta,html:()=>k_,interpolate:()=>sm,interpolateArray:()=>em,interpolateBasis:()=>Wy,interpolateBasisClosed:()=>Xy,interpolateCool:()=>KE,interpolateCubehelix:()=>Um,interpolateCubehelixDefault:()=>QE,interpolateCubehelixLong:()=>Dm,interpolateDate:()=>rm,interpolateHcl:()=>Pm,interpolateHclLong:()=>Im,interpolateHsl:()=>Sm,interpolateHslLong:()=>Cm,interpolateInferno:()=>iN,interpolateLab:()=>Am,interpolateMagma:()=>rN,interpolateNumber:()=>im,interpolateObject:()=>om,interpolatePlasma:()=>oN,interpolateRainbow:()=>tN,interpolateRgb:()=>Ky,interpolateRgbBasis:()=>tm,interpolateRgbBasisClosed:()=>nm,interpolateRound:()=>lm,interpolateString:()=>cm,interpolateTransformCss:()=>_m,interpolateTransformSvg:()=>bm,interpolateViridis:()=>eN,interpolateWarm:()=>ZE,interpolateZoom:()=>km,interrupt:()=>WL,interval:()=>WP,isoFormat:()=>EP,isoParse:()=>NP,json:()=>T_,keys:()=>To,lab:()=>da,line:()=>sT,lineRadial:()=>mT,linkHorizontal:()=>ST,linkRadial:()=>AT,linkVertical:()=>CT,local:()=>Ek,map:()=>yo,matcher:()=>bN,max:()=>U,mean:()=>D,median:()=>O,merge:()=>z,min:()=>F,mouse:()=>Sk,namespace:()=>sN,namespaces:()=>cN,nest:()=>mo,now:()=>OP,pack:()=>gv,packEnclose:()=>Zg,packSiblings:()=>lv,pairs:()=>l,partition:()=>wv,path:()=>Ym,permute:()=>q,pie:()=>dT,pointRadial:()=>bT,polygonArea:()=>Vm,polygonCentroid:()=>Wm,polygonContains:()=>Zm,polygonHull:()=>Qm,polygonLength:()=>Km,precisionFixed:()=>Fl,precisionPrefix:()=>ql,precisionRound:()=>jl,quadtree:()=>r_,quantile:()=>P,quantize:()=>Om,queue:()=>p_,radialArea:()=>_T,radialLine:()=>mT,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:()=>aN,scaleSqrt:()=>yx,scaleThreshold:()=>bx,scaleTime:()=>HE,scaleUtc:()=>YE,scan:()=>j,schemeCategory10:()=>WE,schemeCategory20:()=>$E,schemeCategory20b:()=>XE,schemeCategory20c:()=>GE,select:()=>wk,selectAll:()=>Ck,selection:()=>bk,selector:()=>pN,selectorAll:()=>vN,set:()=>ko,shuffle:()=>B,stack:()=>jS,stackOffsetDiverging:()=>HS,stackOffsetExpand:()=>BS,stackOffsetNone:()=>zS,stackOffsetSilhouette:()=>YS,stackOffsetWiggle:()=>VS,stackOrderAscending:()=>WS,stackOrderDescending:()=>GS,stackOrderInsideOut:()=>$S,stackOrderNone:()=>FS,stackOrderReverse:()=>QS,stratify:()=>Tv,style:()=>ON,sum:()=>H,symbol:()=>$T,symbolCircle:()=>RT,symbolCross:()=>PT,symbolDiamond:()=>UT,symbolSquare:()=>qT,symbolStar:()=>FT,symbolTriangle:()=>BT,symbolWye:()=>XT,symbols:()=>GT,text:()=>S_,thresholdFreedmanDiaconis:()=>I,thresholdScott:()=>L,thresholdSturges:()=>A,tickIncrement:()=>S,tickStep:()=>C,ticks:()=>T,timeDay:()=>mC,timeDays:()=>_C,timeFormat:()=>cR,timeFormatDefaultLocale:()=>xP,timeFormatLocale:()=>aR,timeFriday:()=>kC,timeFridays:()=>IC,timeHour:()=>gC,timeHours:()=>vC,timeInterval:()=>JS,timeMillisecond:()=>nC,timeMilliseconds:()=>eC,timeMinute:()=>hC,timeMinutes:()=>dC,timeMonday:()=>xC,timeMondays:()=>CC,timeMonth:()=>DC,timeMonths:()=>OC,timeParse:()=>sR,timeSaturday:()=>TC,timeSaturdays:()=>LC,timeSecond:()=>sC,timeSeconds:()=>lC,timeSunday:()=>wC,timeSundays:()=>SC,timeThursday:()=>NC,timeThursdays:()=>PC,timeTuesday:()=>MC,timeTuesdays:()=>AC,timeWednesday:()=>EC,timeWednesdays:()=>RC,timeWeek:()=>wC,timeWeeks:()=>SC,timeYear:()=>FC,timeYears:()=>qC,timeout:()=>VP,timer:()=>qP,timerFlush:()=>jP,touch:()=>Ak,touches:()=>Rk,transition:()=>OD,transpose:()=>Y,tree:()=>Lv,treemap:()=>Fv,treemapBinary:()=>qv,treemapDice:()=>bv,treemapResquarify:()=>Bv,treemapSlice:()=>Uv,treemapSliceDice:()=>jv,treemapSquarify:()=>zv,tsv:()=>I_,tsvFormat:()=>Pc,tsvFormatRows:()=>Ic,tsvParse:()=>Ac,tsvParseRows:()=>Rc,utcDay:()=>GC,utcDays:()=>$C,utcFormat:()=>lR,utcFriday:()=>eA,utcFridays:()=>sA,utcHour:()=>VC,utcHours:()=>WC,utcMillisecond:()=>nC,utcMilliseconds:()=>eC,utcMinute:()=>BC,utcMinutes:()=>HC,utcMonday:()=>KC,utcMondays:()=>oA,utcMonth:()=>hA,utcMonths:()=>dA,utcParse:()=>fR,utcSaturday:()=>rA,utcSaturdays:()=>lA,utcSecond:()=>sC,utcSeconds:()=>lC,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:()=>So,variance:()=>g,version:()=>r,voronoi:()=>RO,window:()=>IN,xml:()=>C_,zip:()=>W,zoom:()=>Jj,zoomIdentity:()=>Hj,zoomTransform:()=>Yj});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 s=u;function l(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>=N?5:o>=k?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(o>=E?10:o>=N?5:o>=k?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>=N?i*=5:o>=k&&(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]:l,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*(P(t,.75)-P(t,.25))*Math.pow(t.length,-1/3)))}function L(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 Nt(t){return null==t?Et:function(){return this.querySelectorAll(t)}}var kt=function(t){return function(){return this.matches(t)}};if("undefined"!=typeof document){var Tt=document.documentElement;if(!Tt.matches){var St=Tt.webkitMatchesSelector||Tt.msMatchesSelector||Tt.mozMatchesSelector||Tt.oMatchesSelector;kt=function(t){return function(){return St.call(this,t)}}}}const Ct=kt;function At(t){return new Array(t.length)}function Rt(t,n){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=n}Rt.prototype={constructor:Rt,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 Pt="$";function It(t,n,e,r,i,o){for(var a,u=0,c=n.length,s=o.length;un?1:t>=n?0:NaN}function Dt(t){return function(){this.removeAttribute(t)}}function Ot(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 Ht(t){return function(){this.style.removeProperty(t)}}function Yt(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 Gt(t,n){return function(){this[t]=n}}function $t(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?Ht:"function"==typeof n?Vt:Yt)(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?$t:Gt)(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=Yn.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=Gn.exec(t))?te(255*n[1]/100,255*n[2]/100,255*n[3]/100,n[4]):(n=$n.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 On||(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 On||(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(On,Kn,{displayable:function(){return this.rgb().displayable()},hex:function(){return this.rgb().hex()},toString:function(){return this.rgb()+""}}),Un(re,ee,Dn(On,{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(On,{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 se=Math.PI/180,le=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 Ne){if(isNaN(t.h))return new _e(t.l,0,0,t.opacity);var n=t.h*se;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 Ne)return new Ne(t.h,t.c,t.l,t.opacity);if(t instanceof _e||(t=me(t)),0===t.a&&0===t.b)return new Ne(NaN,0,t.l,t.opacity);var n=Math.atan2(t.b,t.a)*le;return new Ne(n<0?n+360:n,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}(t):new Ne(t,n,e,null==r?1:r)}function Ne(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(On,{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(Ne,Ee,Dn(On,{brighter:function(t){return new Ne(this.h,this.c,this.l+18*(null==t?1:t),this.opacity)},darker:function(t){return new Ne(this.h,this.c,this.l-18*(null==t?1:t),this.opacity)},rgb:function(){return me(this).rgb()}}));var ke=-.14861,Te=1.78277,Se=-.29227,Ce=-.90649,Ae=1.97294,Re=Ae*Ce,Pe=Ae*Te,Ie=Te*Se-Ce*ke;function Le(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+Re*n-Pe*e)/(Ie+Re-Pe),o=r-i,a=(Ae*(e-i)-Se*o)/Ce,u=Math.sqrt(a*a+o*o)/(Ae*i*(1-i)),c=u?Math.atan2(a,o)*le-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 Oe(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):Oe(isNaN(t)?n:t)}function qe(t,n){var e=n-t;return e?ze(t,e):Oe(isNaN(t)?n:t)}Un(Ue,Le,Dn(On,{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)*se,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*(ke*r+Te*i)),255*(n+e*(Se*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):Oe(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=Ge.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=lr,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:lr=n);fr=t,Tr(r)}(),yr=0}}function kr(){var t=_r.now(),n=t-vr;n>gr&&(mr-=n,vr=t)}function Tr(t){hr||(dr&&(dr=clearTimeout(dr)),t-yr>24?(t<1/0&&(dr=setTimeout(Nr,t-_r.now()-mr)),pr&&(pr=clearInterval(pr))):(pr||(vr=_r.now(),pr=setInterval(kr,gr)),hr=1,br(Nr)))}function Sr(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:lr=this,fr=this),this._call=t,this._time=e,Tr()},stop:function(){this._call&&(this._call=null,this._time=1/0,Tr())}};var Cr=gt("start","end","interrupt"),Ar=[],Rr=0,Pr=1,Ir=2,Lr=3,Ur=4,Dr=5,Or=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 s,l,f,h;if(e.state!==Pr)return u();for(s in i)if((h=i[s]).name===e.name){if(h.state===Lr)return Sr(o);h.state===Ur?(h.state=Or,h.timer.stop(),h.on.call("interrupt",t,t.__data__,h.index,h.group),delete i[s]):+sRr)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?Gr:Xr)(e):(e.local?Qr:$r)(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",Ti.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?s=l:w>0&&(e=i),x<0?f=h:x>0&&(o=a),b=xi,z());break;case 32:b===wi&&(mn.altKey?(w&&(s=l-d*w,e=i+d*w),x&&(f=h-p*x,o=a+p*x),b=Mi):(w<0?s=l:w>0&&(e=i),x<0?f=h:x>0&&(o=a),b=xi),U.attr("cursor",Ti[_]),z());break;default:return}yi()}),!0).on("mousemove.brush",O,!0).on("mouseup.brush",F,!0);!function(t){var n=t.document.documentElement,e=An(t).on("dragstart.drag",Ln,!0);"onselectstart"in n?e.on("selectstart.drag",Ln,!0):(n.__noselect=n.style.MozUserSelect,n.style.MozUserSelect="none")}(mn.view)}vi(),Br(m),u.call(m),I.start()}function O(){var t=In(m);!A||v||y||(Math.abs(t[0]-P[0])>Math.abs(t[1]-P[1])?y=!0:v=!0),P=t,g=!0,yi(),z()}function z(){var t;switch(d=P[0]-R[0],p=P[1]-R[1],b){case wi:case bi:w&&(d=Math.max(k-e,Math.min(S-s,d)),i=e+d,l=s+d),x&&(p=Math.max(T-o,Math.min(C-f,p)),a=o+p,h=f+p);break;case xi:w<0?(d=Math.max(k-e,Math.min(S-e,d)),i=e+d,l=s):w>0&&(d=Math.max(k-s,Math.min(S-s,d)),i=e,l=s+d),x<0?(p=Math.max(T-o,Math.min(C-o,p)),a=o+p,h=f):x>0&&(p=Math.max(T-f,Math.min(C-f,p)),a=o,h=f+p);break;case Mi:w&&(i=Math.max(k,Math.min(S,e-d*w)),l=Math.max(k,Math.min(S,s+d*w))),x&&(a=Math.max(T,Math.min(C,o-p*x)),h=Math.max(T,Math.min(C,f+p*x)))}ln?1:t>=n?0:NaN}1===(mi=Bi).length&&(_i=mi,mi=function(t,n){return Bi(_i(t),n)});var Hi=Array.prototype;function Yi(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(l*u-c*s)>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+_*s)+","+(n+_*l)),this._+="A"+i+","+i+",0,0,"+ +(l*h>s*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,s=n+u,l=1^o,f=o?r-i:i-r;if(e<0)throw new Error("negative radius: "+e);null===this._x1?this._+="M"+c+","+s:(Math.abs(this._x1-c)>eo||Math.abs(this._y1-s)>eo)&&(this._+="L"+c+","+s),e&&(f<0&&(f=f%no+no),f>ro?this._+="A"+e+","+e+",0,1,"+l+","+(t-a)+","+(n-u)+"A"+e+","+e+",0,1,"+l+","+(this._x1=c)+","+(this._y1=s):f>eo&&(this._+="A"+e+","+e+",0,"+ +(f>=to)+","+l+","+(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 so(t){return t.radius}function lo(t){return t.startAngle}function fo(t){return t.endAngle}function ho(){var t=uo,n=co,e=so,r=lo,i=fo,o=null;function a(){var a,u=Ki.call(arguments),c=t.apply(this,u),s=n.apply(this,u),l=+e.apply(this,(u[0]=c,u)),f=r.apply(this,u)-Gi,h=i.apply(this,u)-Gi,d=l*Vi(f),p=l*Wi(f),g=+e.apply(this,(u[0]=s,u)),v=r.apply(this,u)-Gi,y=i.apply(this,u)-Gi;if(o||(o=a=ao()),o.moveTo(d,p),o.arc(0,0,l,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,s,l,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 No(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))?Go(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))?$o(n[1],n[2],n[3],n[4]):(n=Ho.exec(t))?$o(255*n[1]/100,255*n[2]/100,255*n[3]/100,n[4]):(n=Yo.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)?Go(Wo[t]):"transparent"===t?new Ko(NaN,NaN,NaN,0):null}function Go(t){return new Ko(t>>16&255,t>>8&255,255&t,1)}function $o(t,n,e,r){return r<=0&&(t=n=e=NaN),new Ko(t,n,e,r)}function Qo(t){return t instanceof Po||(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 Po||(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(Po,Xo,{displayable:function(){return this.rgb().displayable()},toString:function(){return this.rgb()+""}}),Ao(Ko,Zo,Ro(Po,{brighter:function(t){return t=null==t?Lo:Math.pow(Lo,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,Ro(Po,{brighter:function(t){return t=null==t?Lo:Math.pow(Lo,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,sa=6/29,la=3*sa*sa,fa=sa*sa*sa;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/la+ca}function va(t){return t>sa?t*t*t:la*(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,Ro(Po,{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,Ro(Po,{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,Na=1.97294,ka=Na*Ea,Ta=Na*xa,Sa=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=(Sa*r+ka*n-Ta*e)/(Sa+ka-Ta),o=r-i,a=(Na*(e-i)-Ma*o)/Ea,u=Math.sqrt(a*a+o*o)/(Na*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,Ro(Po,{brighter:function(t){return t=null==t?Lo:Math.pow(Lo,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*(Na*r)),this.opacity)}}));var Ra={value:function(){}};function Pa(){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)),Ya.hasOwnProperty(n)?{space:Ya[n],local:t}:t}function Wa(t){return function(){var n=this.ownerDocument,e=this.namespaceURI;return e===Ha&&n.documentElement.namespaceURI===Ha?n.createElement(t):n.createElementNS(e,t)}}function Xa(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function Ga(t){var n=Va(t);return(n.local?Xa:Wa)(n)}function $a(){}function Qa(t){return null==t?$a: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,s=o.length;un?1:t>=n?0:NaN}function cu(t){return function(){this.removeAttribute(t)}}function su(t){return function(){this.removeAttributeNS(t.space,t.local)}}function lu(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 Hu(t,n,e){return t=Yu(t,n,e),function(n){var e=n.relatedTarget;e&&(e===this||8&e.compareDocumentPosition(this))||t.call(this,n)}}function Yu(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),sc(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?s=!0:r===wc&&(s=!0,t.charCodeAt(a)===bc&&++a),t.slice(i+1,n-1).replace(/""/g,'"')}for(;a=(o=(g+y)/2))?g=o:y=o,(l=e>=(a=(v+m)/2))?v=a:m=a,i=d,!(d=d[f=l<<1|s]))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),(s=n>=(o=(g+y)/2))?g=o:y=o,(l=e>=(a=(v+m)/2))?v=a:m=a}while((f=l<<1|s)==(h=(c>=a)<<1|u>=o));return i[h]=d,i[f]=p,t}function ks(t,n,e,r,i){this.node=t,this.x0=n,this.y0=e,this.x1=r,this.y1=i}function Ts(t){return t[0]}function Ss(t){return t[1]}function Cs(t,n,e){var r=new As(null==n?Ts:n,null==e?Ss:e,NaN,NaN,NaN,NaN);return null==t?r:r.addAll(t)}function As(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 Rs(t){for(var n={data:t.data},e=n;t=t.next;)e=e.next={data:t.data};return n}var Ps=Cs.prototype=As.prototype;function Is(t){return t.x+t.vx}function Ls(t){return t.y+t.vy}function Us(t){var n,e,r=1,i=1;function o(){for(var t,o,u,c,s,l,f,h=n.length,d=0;dc+d||is+d||o