var g="http://www.w3.org/1999/xhtml";const N={svg:"http://www.w3.org/2000/svg",xhtml:g,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function E(t){var n=t+="",e=n.indexOf(":");return e>=0&&(n=t.slice(0,e))!=="xmlns"&&(t=t.slice(e+1)),N.hasOwnProperty(n)?{space:N[n],local:t}:t}function O(t){return function(){var n=this.ownerDocument,e=this.namespaceURI;return e===g&&n.documentElement.namespaceURI===g?n.createElement(t):n.createElementNS(e,t)}}function k(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function b(t){var n=E(t);return(n.local?k:O)(n)}function H(){}function L(t){return t==null?H:function(){return this.querySelector(t)}}function U(t){typeof t!="function"&&(t=L(t));for(var n=this._groups,e=n.length,i=new Array(e),r=0;r=m&&(m=d+1);!(C=x[m])&&++m=0;)(l=i[r])&&(s&&l.compareDocumentPosition(s)^4&&s.parentNode.insertBefore(l,s),s=l);return this}function yt(t){t||(t=dt);function n(_,p){return _&&p?t(_.__data__,p.__data__):!_-!p}for(var e=this._groups,i=e.length,r=new Array(i),s=0;sn?1:t>=n?0:NaN}function mt(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this}function vt(){return Array.from(this)}function gt(){for(var t=this._groups,n=0,e=t.length;n1?this.each((n==null?Ft:typeof n=="function"?Bt:Vt)(t,n,e??"")):Tt(this.node(),t)}function Tt(t,n){return t.style.getPropertyValue(n)||V(t).getComputedStyle(t,null).getPropertyValue(n)}function Mt(t){return function(){delete this[t]}}function Dt(t,n){return function(){this[t]=n}}function qt(t,n){return function(){var e=n.apply(this,arguments);e==null?delete this[t]:this[t]=e}}function It(t,n){return arguments.length>1?this.each((n==null?Mt:typeof n=="function"?qt:Dt)(t,n)):this.node()[t]}function B(t){return t.trim().split(/^|\s+/)}function w(t){return t.classList||new P(t)}function P(t){this._node=t,this._names=B(t.getAttribute("class")||"")}P.prototype={add:function(t){var n=this._names.indexOf(t);n<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var n=this._names.indexOf(t);n>=0&&(this._names.splice(n,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};function T(t,n){for(var e=w(t),i=-1,r=n.length;++i=0&&(e=n.slice(i+1),n=n.slice(0,i)),{type:n,name:e}})}function _n(t){return function(){var n=this.__on;if(n){for(var e=0,i=-1,r=n.length,s;e