text: !function(t){var n={};function e(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,e),i.l=!0,i.exports}e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{enumerable:!0,get:r})},e.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},e.t=function(t,n){if(1&n&&(t=e(t)),8&n)return t;if(4&n&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(e.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&n&&"string"!=typeof t)for(var i in t)e.d(r,i,function(n){return t[n]}.bind(null,i));return r},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},e.p="",e(e.s=77)}([function(t,n,e){"use strict";var r,i=this&&this.__extends||(r=function(t,n){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var e in n)Object.prototype.hasOwnProperty.call(n,e)&&(t[e]=n[e])})(t,n)},function(t,n){function e(){this.constructor=t}r(t,n),t.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}),o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var n,e=1,r=arguments.length;e<r;e++)for(var i in n=arguments[e])Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t}).apply(this,arguments)},u=this&&this.__createBinding||(Object.create?function(t,n,e,r){void 0===r&&(r=e),Object.defineProperty(t,r,{enumerable:!0,get:function(){return n[e]}})}:function(t,n,e,r){void 0===r&&(r=e),t[r]=n[e]}),a=this&&this.__setModuleDefault||(Object.create?function(t,n){Object.defineProperty(t,"default",{enumerable:!0,value:n})}:function(t,n){t.default=n}),c=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var n={};if(null!=t)for(var e in t)"default"!==e&&Object.prototype.hasOwnProperty.call(t,e)&&u(n,t,e);return a(n,t),n},f=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(n,"__esModule",{value:!0});var s=c(e(7)),l=f(e(5)),h={width:400,height:300,margin:{top:20,right:30,bottom:30,left:40}},d=function(t){function n(n,e){var r=t.call(this,o(o({},h),n),e)||this,i=s.scaleOrdinal(s.schemeAccent);return Object.assign(r.dependencies,{d3:s,palette:i}),r}return i(n,t),n.prototype.setContainer=function(t){var e,r,i=this.config,o=i.width,u=i.height;t instanceof n?(e=t.getDependency("container"),r=t.getDependency("rootContainer"),Object.assign(this.dependencies,{isRoot:!1})):(r=e=s.select(t).append("svg").attr("width",o).attr("height",u),Object.assign(this.dependencies,{isRoot:!0}));var a=e.append("g").attr("class",this.elemClass);Object.assign(this.dependencies,{container:a,rootContainer:r})},n.prototype.destroy=function(){var t=this.dependencies,n=t.isRoot,e=t.rootContainer;n&&e.remove()},n}(l.default);n.default=d},function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=function(){function t(t){this.container=t}return t.prototype.getElement=function(t,n,e,r){var i,o=document.createElement(t);return n&&n.length&&(i=o.classList).add.apply(i,n),r&&Object.keys(r).forEach((function(t){o.setAttribute(t,r[t])})),e&&e.appendChild(o),o},t.prototype.destroy=function(){this.root&&this.root.remove()},t}();n.default=r},function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=function(){function t(){}return t.seed=function(n){this.rand=t.mulberry32(t.xmur3(n)()),Math.random=t.rand},t.xmur3=function(t){for(var n=1779033703^t.length,e=0;e<t.length;e++)n=(n=Math.imul(n^t.charCodeAt(e),3432918353))<<13|n>>>19;return function(){return n=Math.imul(n^n>>>16,2246822507),n=Math.imul(n^n>>>13,3266489909),(n^=n>>>16)>>>0}},t.mulberry32=function(t){return function(){var n=t+=1831565813;return n=Math.imul(n^n>>>15,1|n),(((n^=n+Math.imul(n^n>>>7,61|n))^n>>>14)>>>0)/4294967296}},t.roundToPrecision=function(t,n){var e=Math.pow(10,n);return Math.round(t*e)/e},t.random=function(t,n){return Math.random()*(n-t)+t},t.randomInt=function(t,n){var e=Math.ceil(t),r=Math.floor(n);return Math.floor(Math.random()*(r-e))+e},t.seededRandom=function(n,e){return t.rand()*(e-n)+n},t.seededRandomInt=function(n,e){var r=Math.ceil(n),i=Math.floor(e);return Math.floor(t.rand()*(i-r))+r},t.randomChoice=function(n){return n[t.randomInt(0,n.length-1)]},t.shuffleArray=function(t){for(var n=t.length-1;n>0;n--){var e=Math.floor(Math.random()*(n+1)),r=t[n];t[n]=t[e],t[e]=r}return t},t.rand=t.mulberry32(t.xmur3("apples")()),t}();n.default=r},function(t,n,e){"use strict";function r(t,n){if(!t||!n||t.length!==n.length)throw new Error("Missing ponts data "+t+", "+n);for(var e=0,r=0;r<t.length;r++)e+=Math.pow(t[r]-n[r],2);return Math.sqrt(e)}function i(t,n){if(!t||!n||t.length!==n.length)throw new Error("Missing ponts data "+t+", "+n);for(var e=0,r=0;r<t.length;r++)e+=Math.abs(t[r]-n[r]);return e}function o(t,n){if(!t||!n||t.length!==n.length)throw new Error("Missing ponts data "+t+", "+n);return t.map((function(t,e){return t+n[e]}))}Object.defineProperty(n,"__esModule",{value:!0}),n.sum=n.manhattanDistance=n.euclideanDistance=void 0,n.euclideanDistance=r,n.manhattanDistance=i,n.sum=o;var u={euclideanDistance:r,manhattanDistance:i,sum:o};n.default=u},function(t,n,e){"use strict";var r,i=this&&this.__extends||(r=function(t,n){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var e in n)Object.prototype.hasOwnProperty.call(n,e)&&(t[e]=n[e])})(t,n)},function(t,n){function e(){this.constructor=t}r(t,n),t.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}),o=this&&this.__createBinding||(Object.create?function(t,n,e,r){void 0===r&&(r=e),Object.defineProperty(t,r,{enumerable:!0,get:function(){return n[e]}})}:function(t,n,e,r){void 0===r&&(r=e),t[r]=n[e]}),u=this&&this.__setModuleDefault||(Object.create?function(t,n){Object.defineProperty(t,"default",{enumerable:!0,value:n})}:function(t,n){t.default=n}),a=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var n={};if(null!=t)for(var e in t)"default"!==e&&Object.prototype.hasOwnProperty.call(t,e)&&o(n,t,e);return u(n,t),n};Object.defineProperty(n,"__esModule",{value:!0}),n.EvolutionaryConfig=void 0;var c=a(e(12)),f=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.iterations=100,n}return i(n,t),n}(c.SerializableConfig);n.EvolutionaryConfig=f;var s=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.iteration=0,n}return i(n,t),n.prototype.shouldStop=function(){return this.iteration===this.config.iterations},n.prototype.getIteration=function(){return this.iteration},n.prototype.reset=function(){this.iteration=0},n}(c.default);n.default=s},function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=function(){function t(t,n){this.config=t,this.elemClass=n,this.dependencies={}}return t.prototype.getDependency=function(t){return this.dependencies[t]},t}();n.default=r},function(t,n,e){"use strict";var r,i=this&&this.__extends||(r=function(t,n){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var e in n)Object.prototype.hasOwnProperty.call(n,e)&&(t[e]=n[e])})(t,n)},function(t,n){function e(){this.constructor=t}r(t,n),t.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}),o=this&&this.__spreadArrays||function(){for(var t=0,n=0,e=arguments.length;n<e;n++)t+=arguments[n].length;var r=Array(t),i=0;for(n=0;n<e;n++)for(var o=arguments[n],u=0,a=o.length;u<a;u++,i++)r[i]=o[u];return r},u=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(n,"__esModule",{value:!0});var a=function(t){function n(n,e,r){var i=t.call(this,n,e)||this;i.visualizations={};var u=o(r,[i]).reduce((function(t,n){return Object.assign(t,{domainX:{min:n.config.domainX?n.config.domainX.min:void 0,max:n.config.domainX?n.config.domainX.max:void 0},domainY:{min:n.config.domainY?n.config.domainY.min:void 0,max:n.config.domainY?n.config.domainY.max:void 0}})}),{});return r.forEach((function(t){i.visualizations[t.elemClass]=t,Object.assign(t.config,n,u)})),i}return i(n,t),n.prototype.updateFn=function(){},n.prototype.setContainer=function(n){var e=this;t.prototype.setContainer.call(this,n),Object.values(this.visualizations).forEach((function(t){return t.setContainer(e)})),this.setup()},n.prototype.setup=function(t){void 0===t&&(t=[]),Object.values(this.visualizations).forEach((function(n){n.setup((t.find((function(t){return t.elemClass===n.elemClass}))||{}).data)}))},n.prototype.getDataUpdateFn=function(t){return this.visualizations[t]?this.visualizations[t].getDataUpdateFn():this.updateFn},n.prototype.dataUpdate=function(t,n){this.visualizations[n]&&this.visualizations[n].dataUpdate.call(this.visualizations[n],t,n)},n.prototype.destroy=function(){Object.values(this.visualizations).forEach((function(t){return t.destroy()})),t.prototype.destroy.call(this)},n}(u(e(0)).default);n.default=a},function(t,n,e){"use strict";e.r(n),e.d(n,"version",(function(){return r})),e.d(n,"bisect",(function(){return l})),e.d(n,"bisectRight",(function(){return c})),e.d(n,"bisectLeft",(function(){return f})),e.d(n,"bisectCenter",(function(){return s})),e.d(n,"ascending",(function(){return i})),e.d(n,"bisector",(function(){return o})),e.d(n,"count",(function(){return h})),e.d(n,"cross",(function(){return g})),e.d(n,"cumsum",(function(){return y})),e.d(n,"descending",(function(){return _})),e.d(n,"deviation",(function(){return m})),e.d(n,"extent",(function(){return x})),e.d(n,"fsum",(function(){return M})),e.d(n,"Adder",(function(){return w})),e.d(n,"group",(function(){return E})),e.d(n,"groups",(function(){return S})),e.d(n,"index",(function(){return k})),e.d(n,"indexes",(function(){return P})),e.d(n,"rollup",(function(){return T})),e.d(n,"rollups",(function(){return O})),e.d(n,"bin",(function(){return H})),e.d(n,"histogram",(function(){return H})),e.d(n,"thresholdFreedmanDiaconis",(function(){return K})),e.d(n,"thresholdScott",(function(){return Q})),e.d(n,"thresholdSturges",(function(){return Y})),e.d(n,"max",(function(){return V})),e.d(n,"maxIndex",(function(){return J})),e.d(n,"mean",(function(){return tt})),e.d(n,"median",(function(){return nt})),e.d(n,"merge",(function(){return et})),e.d(n,"min",(function(){return X})),e.d(n,"minIndex",(function(){return rt})),e.d(n,"nice",(function(){return B})),e.d(n,"pairs",(function(){return it})),e.d(n,"permute",(function(){return ut})),e.d(n,"quantile",(function(){return $})),e.d(n,"quantileSorted",(function(){return Z})),e.d(n,"quickselect",(function(){return G})),e.d(n,"range",(function(){return at})),e.d(n,"least",(function(){return ct})),e.d(n,"leastIndex",(function(){return ft})),e.d(n,"greatest",(function(){return st})),e.d(n,"greatestIndex",(function(){return lt})),e.d(n,"scan",(function(){return ht})),e.d(n,"shuffle",(function(){return dt})),e.d(n,"shuffler",(function(){return pt})),e.d(n,"sum",(function(){return vt})),e.d(n,"ticks",(function(){return q})),e.d(n,"tickIncrement",(function(){return L})),e.d(n,"tickStep",(function(){return U})),e.d(n,"transpose",(function(){return gt})),e.d(n,"variance",(function(){return b})),e.d(n,"zip",(function(){return _t})),e.d(n,"every",(function(){return bt})),e.d(n,"some",(function(){return mt})),e.d(n,"filter",(function(){return xt})),e.d(n,"map",(function(){return wt})),e.d(n,"reduce",(function(){return Mt})),e.d(n,"reverse",(function(){return At})),e.d(n,"sort",(function(){return Et})),e.d(n,"difference",(function(){return St})),e.d(n,"disjoint",(function(){return Tt})),e.d(n,"intersection",(function(){return kt})),e.d(n,"subset",(function(){return Nt})),e.d(n,"superset",(function(){return Pt})),e.d(n,"union",(function(){return Ct})),e.d(n,"axisTop",(function(){return Ut})),e.d(n,"axisRight",(function(){return Bt})),e.d(n,"axisBottom",(function(){return Yt})),e.d(n,"axisLeft",(function(){return Ht})),e.d(n,"brush",(function(){return ho})),e.d(n,"brushX",(function(){return so})),e.d(n,"brushY",(function(){return lo})),e.d(n,"brushSelection",(function(){return fo})),e.d(n,"chord",(function(){return Ao})),e.d(n,"chordTranspose",(function(){return Eo})),e.d(n,"chordDirected",(function(){return So})),e.d(n,"ribbon",(function(){return Ho})),e.d(n,"ribbonArrow",(function(){return Vo})),e.d(n,"color",(function(){return je})),e.d(n,"rgb",(function(){return Re})),e.d(n,"hsl",(function(){return Ve})),e.d(n,"lab",(function(){return Zo})),e.d(n,"hcl",(function(){return iu})),e.d(n,"lch",(function(){return ru})),e.d(n,"gray",(function(){return $o})),e.d(n,"cubehelix",(function(){return hu})),e.d(n,"contours",(function(){return wu})),e.d(n,"contourDensity",(function(){return Ou})),e.d(n,"Delaunay",(function(){return $u})),e.d(n,"Voronoi",(function(){return Yu})),e.d(n,"dispatch",(function(){return Kt})),e.d(n,"drag",(function(){return ea})),e.d(n,"dragDisable",(function(){return ge})),e.d(n,"dragEnable",(function(){return ye})),e.d(n,"dsvFormat",(function(){return fa})),e.d(n,"csvParse",(function(){return la})),e.d(n,"csvParseRows",(function(){return ha})),e.d(n,"csvFormat",(function(){return da})),e.d(n,"csvFormatBody",(function(){return pa})),e.d(n,"csvFormatRows",(function(){return va})),e.d(n,"csvFormatRow",(function(){return ga})),e.d(n,"csvFormatValue",(function(){return ya})),e.d(n,"tsvParse",(function(){return ba})),e.d(n,"tsvParseRows",(function(){return ma})),e.d(n,"tsvFormat",(function(){return xa})),e.d(n,"tsvFormatBody",(function(){return wa})),e.d(n,"tsvFormatRows",(function(){return Ma})),e.d(n,"tsvFormatRow",(function(){return Aa})),e.d(n,"tsvFormatValue",(function(){return Ea})),e.d(n,"autoType",(function(){return Sa})),e.d(n,"easeLinear",(function(){return Oa})),e.d(n,"easeQuad",(function(){return Na})),e.d(n,"easeQuadIn",(function(){return ka})),e.d(n,"easeQuadOut",(function(){return Pa})),e.d(n,"easeQuadInOut",(function(){return Na})),e.d(n,"easeCubic",(function(){return Ni})),e.d(n,"easeCubicIn",(function(){return ki})),e.d(n,"easeCubicOut",(function(){return Pi})),e.d(n,"easeCubicInOut",(function(){return Ni})),e.d(n,"easePoly",(function(){return ja})),e.d(n,"easePolyIn",(function(){return Ca})),e.d(n,"easePolyOut",(function(){return Ia})),e.d(n,"easePolyInOut",(function(){return ja})),e.d(n,"easeSin",(function(){return qa})),e.d(n,"easeSinIn",(function(){return Fa})),e.d(n,"easeSinOut",(function(){return Ra})),e.d(n,"easeSinInOut",(function(){return qa})),e.d(n,"easeExp",(function(){return Ya})),e.d(n,"easeExpIn",(function(){return Ua})),e.d(n,"easeExpOut",(function(){return Ba})),e.d(n,"easeExpInOut",(function(){return Ya})),e.d(n,"easeCircle",(function(){return Xa})),e.d(n,"easeCircleIn",(function(){return Ha})),e.d(n,"easeCircleOut",(function(){return Va})),e.d(n,"easeCircleInOut",(function(){return Xa})),e.d(n,"easeBounce",(function(){return Wa})),e.d(n,"easeBounceIn",(function(){return Ga})),e.d(n,"easeBounceOut",(function(){return Wa})),e.d(n,"easeBounceInOut",(function(){return $a})),e.d(n,"easeBack",(function(){return Qa})),e.d(n,"easeBackIn",(function(){return Za})),e.d(n,"easeBackOut",(function(){return Ka})),e.d(n,"easeBackInOut",(function(){return Qa})),e.d(n,"easeElastic",(function(){return nc})),e.d(n,"easeElasticIn",(function(){return tc})),e.d(n,"easeElasticOut",(function(){return nc})),e.d(n,"easeElasticInOut",(function(){return ec})),e.d(n,"blob",(function(){return ic})),e.d(n,"buffer",(function(){return uc})),e.d(n,"dsv",(function(){return sc})),e.d(n,"csv",(function(){return lc})),e.d(n,"tsv",(function(){return hc})),e.d(n,"image",(function(){return dc})),e.d(n,"json",(function(){return vc})),e.d(n,"text",(function(){return cc})),e.d(n,"xml",(function(){return yc})),e.d(n,"html",(function(){return _c})),e.d(n,"svg",(function(){return bc})),e.d(n,"forceCenter",(function(){return mc})),e.d(n,"forceCollide",(function(){return Ic})),e.d(n,"forceLink",(function(){return zc})),e.d(n,"forceManyBody",(function(){return Uc})),e.d(n,"forceRadial",(function(){return Bc})),e.d(n,"forceSimulation",(function(){return Lc})),e.d(n,"forceX",(function(){return Yc})),e.d(n,"forceY",(function(){return Hc})),e.d(n,"formatDefaultLocale",(function(){return af})),e.d(n,"format",(function(){return Qc})),e.d(n,"formatPrefix",(function(){return Jc})),e.d(n,"formatLocale",(function(){return uf})),e.d(n,"formatSpecifier",(function(){return Wc})),e.d(n,"FormatSpecifier",(function(){return $c})),e.d(n,"precisionFixed",(function(){return cf})),e.d(n,"precisionPrefix",(function(){return ff})),e.d(n,"precisionRound",(function(){return sf})),e.d(n,"geoArea",(function(){return fs})),e.d(n,"geoBounds",(function(){return Hs})),e.d(n,"geoCentroid",(function(){return el})),e.d(n,"geoCircle",(function(){return dl})),e.d(n,"geoClipAntimeridian",(function(){return Al})),e.d(n,"geoClipCircle",(function(){return El})),e.d(n,"geoClipExtent",(function(){return Nl})),e.d(n,"geoClipRectangle",(function(){return Sl})),e.d(n,"geoContains",(function(){return Wl})),e.d(n,"geoDistance",(function(){return ql})),e.d(n,"geoGraticule",(function(){return Kl})),e.d(n,"geoGraticule10",(function(){return Ql})),e.d(n,"geoInterpolate",(function(){return rh})),e.d(n,"geoLength",(function(){return zl})),e.d(n,"geoPath",(function(){return nd})),e.d(n,"geoAlbers",(function(){return bd})),e.d(n,"geoAlbersUsa",(function(){return md})),e.d(n,"geoAzimuthalEqualArea",(function(){return Ad})),e.d(n,"geoAzimuthalEqualAreaRaw",(function(){return Md})),e.d(n,"geoAzimuthalEquidistant",(function(){return Sd})),e.d(n,"geoAzimuthalEquidistantRaw",(function(){return Ed})),e.d(n,"geoConicConformal",(function(){return Cd})),e.d(n,"geoConicConformalRaw",(function(){return Nd})),e.d(n,"geoConicEqualArea",(function(){return _d})),e.d(n,"geoConicEqualAreaRaw",(function(){return yd})),e.d(n,"geoConicEquidistant",(function(){return zd})),e.d(n,"geoConicEquidistantRaw",(function(){return Dd})),e.d(n,"geoEqualEarth",(function(){return Yd})),e.d(n,"geoEqualEarthRaw",(function(){return Bd})),e.d(n,"geoEquirectangular",(function(){return jd})),e.d(n,"geoEquirectangularRaw",(function(){return Id})),e.d(n,"geoGnomonic",(function(){return Vd})),e.d(n,"geoGnomonicRaw",(function(){return Hd})),e.d(n,"geoIdentity",(function(){return Xd})),e.d(n,"geoProjection",(function(){return pd})),e.d(n,"geoProjectionMutator",(function(){return vd})),e.d(n,"geoMercator",(function(){return Od})),e.d(n,"geoMercatorRaw",(function(){return Td})),e.d(n,"geoNaturalEarth1",(function(){return Wd})),e.d(n,"geoNaturalEarth1Raw",(function(){return Gd})),e.d(n,"geoOrthographic",(function(){return Zd})),e.d(n,"geoOrthographicRaw",(function(){return $d})),e.d(n,"geoStereographic",(function(){return Qd})),e.d(n,"geoStereographicRaw",(function(){return Kd})),e.d(n,"geoTransverseMercator",(function(){return tp})),e.d(n,"geoTransverseMercatorRaw",(function(){return Jd})),e.d(n,"geoRotation",(function(){return sl})),e.d(n,"geoStream",(function(){return Hf})),e.d(n,"geoTransform",(function(){return ed})),e.d(n,"cluster",(function(){return ip})),e.d(n,"hierarchy",(function(){return up})),e.d(n,"pack",(function(){return Np})),e.d(n,"packSiblings",(function(){return Ep})),e.d(n,"packEnclose",(function(){return hp})),e.d(n,"partition",(function(){return Fp})),e.d(n,"stratify",(function(){return Bp})),e.d(n,"tree",(function(){return $p})),e.d(n,"treemap",(function(){return tv})),e.d(n,"treemapBinary",(function(){return nv})),e.d(n,"treemapDice",(function(){return zp})),e.d(n,"treemapSlice",(function(){return Zp})),e.d(n,"treemapSliceDice",(function(){return ev})),e.d(n,"treemapSquarify",(function(){return Jp})),e.d(n,"treemapResquarify",(function(){return rv})),e.d(n,"interpolate",(function(){return _r})),e.d(n,"interpolateArray",(function(){return cr})),e.d(n,"interpolateBasis",(function(){return $e})),e.d(n,"interpolateBasisClosed",(function(){return Ze})),e.d(n,"interpolateDate",(function(){return sr})),e.d(n,"interpolateDiscrete",(function(){return iv})),e.d(n,"interpolateHue",(function(){return ov})),e.d(n,"interpolateNumber",(function(){return lr})),e.d(n,"interpolateNumberArray",(function(){return ur})),e.d(n,"interpolateObject",(function(){return hr})),e.d(n,"interpolateRound",(function(){return uv})),e.d(n,"interpolateString",(function(){return yr})),e.d(n,"interpolateTransformCss",(function(){return Zr})),e.d(n,"interpolateTransformSvg",(function(){return Kr})),e.d(n,"interpolateZoom",(function(){return cv})),e.d(n,"interpolateRgb",(function(){return er})),e.d(n,"interpolateRgbBasis",(function(){return ir})),e.d(n,"interpolateRgbBasisClosed",(function(){return or})),e.d(n,"interpolateHsl",(function(){return sv})),e.d(n,"interpolateHslLong",(function(){return lv})),e.d(n,"interpolateLab",(function(){return hv})),e.d(n,"interpolateHcl",(function(){return pv})),e.d(n,"interpolateHclLong",(function(){return vv})),e.d(n,"interpolateCubehelix",(function(){return yv})),e.d(n,"interpolateCubehelixLong",(function(){return _v})),e.d(n,"piecewise",(function(){return bv})),e.d(n,"quantize",(function(){return mv})),e.d(n,"path",(function(){return Io})),e.d(n,"polygonArea",(function(){return xv})),e.d(n,"polygonCentroid",(function(){return wv})),e.d(n,"polygonHull",(function(){return Ev})),e.d(n,"polygonContains",(function(){return Sv})),e.d(n,"polygonLength",(function(){return Tv})),e.d(n,"quadtree",(function(){return Ec})),e.d(n,"randomUniform",(function(){return kv})),e.d(n,"randomInt",(function(){return Pv})),e.d(n,"randomNormal",(function(){return Nv})),e.d(n,"randomLogNormal",(function(){return Cv})),e.d(n,"randomBates",(function(){return jv})),e.d(n,"randomIrwinHall",(function(){return Iv})),e.d(n,"randomExponential",(function(){return Dv})),e.d(n,"randomPareto",(function(){return zv})),e.d(n,"randomBernoulli",(function(){return Fv})),e.d(n,"randomGeometric",(function(){return Rv})),e.d(n,"randomBinomial",(function(){return Uv})),e.d(n,"randomGamma",(function(){return qv})),e.d(n,"randomBeta",(function(){return Lv})),e.d(n,"randomWeibull",(function(){return Bv})),e.d(n,"randomCauchy",(function(){return Yv})),e.d(n,"randomLogistic",(function(){return Hv})),e.d(n,"randomPoisson",(function(){return Vv})),e.d(n,"randomLcg",(function(){return Gv})),e.d(n,"scaleBand",(function(){return Qv})),e.d(n,"scalePoint",(function(){return tg})),e.d(n,"scaleIdentity",(function(){return dg})),e.d(n,"scaleLinear",(function(){return hg})),e.d(n,"scaleLog",(function(){return wg})),e.d(n,"scaleSymlog",(function(){return Sg})),e.d(n,"scaleOrdinal",(function(){return Kv})),e.d(n,"scaleImplicit",(function(){return Zv})),e.d(n,"scalePow",(function(){return Ng})),e.d(n,"scaleSqrt",(function(){return Cg})),e.d(n,"scaleRadial",(function(){return Dg})),e.d(n,"scaleQuantile",(function(){return zg})),e.d(n,"scaleQuantize",(function(){return Fg})),e.d(n,"scaleThreshold",(function(){return Rg})),e.d(n,"scaleTime",(function(){return xb})),e.d(n,"scaleUtc",(function(){return Nb})),e.d(n,"scaleSequential",(function(){return jb})),e.d(n,"scaleSequentialLog",(function(){return Db})),e.d(n,"scaleSequentialPow",(function(){return Fb})),e.d(n,"scaleSequentialSqrt",(function(){return Rb})),e.d(n,"scaleSequentialSymlog",(function(){return zb})),e.d(n,"scaleSequentialQuantile",(function(){return qb})),e.d(n,"scaleDiverging",(function(){return Ub})),e.d(n,"scaleDivergingLog",(function(){return Bb})),e.d(n,"scaleDivergingPow",(function(){return Hb})),e.d(n,"scaleDivergingSqrt",(function(){return Vb})),e.d(n,"scaleDivergingSymlog",(function(){return Yb})),e.d(n,"tickFormat",(function(){return sg})),e.d(n,"schemeCategory10",(function(){return Gb})),e.d(n,"schemeAccent",(function(){return Wb})),e.d(n,"schemeDark2",(function(){return $b})),e.d(n,"schemePaired",(function(){return Zb})),e.d(n,"schemePastel1",(function(){return Kb})),e.d(n,"schemePastel2",(function(){return Qb})),e.d(n,"schemeSet1",(function(){return Jb})),e.d(n,"schemeSet2",(function(){return tm})),e.d(n,"schemeSet3",(function(){return nm})),e.d(n,"schemeTableau10",(function(){return em})),e.d(n,"interpolateBrBG",(function(){return om})),e.d(n,"schemeBrBG",(function(){return im})),e.d(n,"interpolatePRGn",(function(){return am})),e.d(n,"schemePRGn",(function(){return um})),e.d(n,"interpolatePiYG",(function(){return fm})),e.d(n,"schemePiYG",(function(){return cm})),e.d(n,"interpolatePuOr",(function(){return lm})),e.d(n,"schemePuOr",(function(){return sm})),e.d(n,"interpolateRdBu",(function(){return dm})),e.d(n,"schemeRdBu",(function(){return hm})),e.d(n,"interpolateRdGy",(function(){return vm})),e.d(n,"schemeRdGy",(function(){return pm})),e.d(n,"interpolateRdYlBu",(function(){return ym})),e.d(n,"schemeRdYlBu",(function(){return gm})),e.d(n,"interpolateRdYlGn",(function(){return bm})),e.d(n,"schemeRdYlGn",(function(){return _m})),e.d(n,"interpolateSpectral",(function(){return xm})),e.d(n,"schemeSpectral",(function(){return mm})),e.d(n,"interpolateBuGn",(function(){return Mm})),e.d(n,"schemeBuGn",(function(){return wm})),e.d(n,"interpolateBuPu",(function(){return Em})),e.d(n,"schemeBuPu",(function(){return Am})),e.d(n,"interpolateGnBu",(function(){return Tm})),e.d(n,"schemeGnBu",(function(){return Sm})),e.d(n,"interpolateOrRd",(function(){return km})),e.d(n,"schemeOrRd",(function(){return Om})),e.d(n,"interpolatePuBuGn",(function(){return Nm})),e.d(n,"schemePuBuGn",(function(){return Pm})),e.d(n,"interpolatePuBu",(function(){return Im})),e.d(n,"schemePuBu",(function(){return Cm})),e.d(n,"interpolatePuRd",(function(){return Dm})),e.d(n,"schemePuRd",(function(){return jm})),e.d(n,"interpolateRdPu",(function(){return Fm})),e.d(n,"schemeRdPu",(function(){return zm})),e.d(n,"interpolateYlGnBu",(function(){return qm})),e.d(n,"schemeYlGnBu",(function(){return Rm})),e.d(n,"interpolateYlGn",(function(){return Um})),e.d(n,"schemeYlGn",(function(){return Lm})),e.d(n,"interpolateYlOrBr",(function(){return Ym})),e.d(n,"schemeYlOrBr",(function(){return Bm})),e.d(n,"interpolateYlOrRd",(function(){return Vm})),e.d(n,"schemeYlOrRd",(function(){return Hm})),e.d(n,"interpolateBlues",(function(){return Gm})),e.d(n,"schemeBlues",(function(){return Xm})),e.d(n,"interpolateGreens",(function(){return $m})),e.d(n,"schemeGreens",(function(){return Wm})),e.d(n,"interpolateGreys",(function(){return Km})),e.d(n,"schemeGreys",(function(){return Zm})),e.d(n,"interpolatePurples",(function(){return Jm})),e.d(n,"schemePurples",(function(){return Qm})),e.d(n,"interpolateReds",(function(){return nx})),e.d(n,"schemeReds",(function(){return tx})),e.d(n,"interpolateOranges",(function(){return rx})),e.d(n,"schemeOranges",(function(){return ex})),e.d(n,"interpolateCividis",(function(){return ix})),e.d(n,"interpolateCubehelixDefault",(function(){return ox})),e.d(n,"interpolateRainbow",(function(){return fx})),e.d(n,"interpolateWarm",(function(){return ux})),e.d(n,"interpolateCool",(function(){return ax})),e.d(n,"interpolateSinebow",(function(){return dx})),e.d(n,"interpolateTurbo",(function(){return px})),e.d(n,"interpolateViridis",(function(){return gx})),e.d(n,"interpolateMagma",(function(){return yx})),e.d(n,"interpolateInferno",(function(){return _x})),e.d(n,"interpolatePlasma",(function(){return bx})),e.d(n,"create",(function(){return mx})),e.d(n,"creator",(function(){return Qn})),e.d(n,"local",(function(){return wx})),e.d(n,"matcher",(function(){return rn})),e.d(n,"namespace",(function(){return bn})),e.d(n,"namespaces",(function(){return _n})),e.d(n,"pointer",(function(){return mr})),e.d(n,"pointers",(function(){return Ax})),e.d(n,"select",(function(){return de})),e.d(n,"selectAll",(function(){return Ex})),e.d(n,"selection",(function(){return he})),e.d(n,"selector",(function(){return Jt})),e.d(n,"selectorAll",(function(){return en})),e.d(n,"style",(function(){return Pn})),e.d(n,"window",(function(){return Sn})),e.d(n,"arc",(function(){return Xx})),e.d(n,"area",(function(){return tw})),e.d(n,"line",(function(){return Jx})),e.d(n,"pie",(function(){return rw})),e.d(n,"areaRadial",(function(){return fw})),e.d(n,"radialArea",(function(){return fw})),e.d(n,"lineRadial",(function(){return cw})),e.d(n,"radialLine",(function(){return cw})),e.d(n,"pointRadial",(function(){return sw})),e.d(n,"linkHorizontal",(function(){return yw})),e.d(n,"linkVertical",(function(){return _w})),e.d(n,"linkRadial",(function(){return bw})),e.d(n,"symbol",(function(){return Fw})),e.d(n,"symbols",(function(){return zw})),e.d(n,"symbolCircle",(function(){return mw})),e.d(n,"symbolCross",(function(){return xw})),e.d(n,"symbolDiamond",(function(){return Aw})),e.d(n,"symbolSquare",(function(){return kw})),e.d(n,"symbolStar",(function(){return Ow})),e.d(n,"symbolTriangle",(function(){return Nw})),e.d(n,"symbolWye",(function(){return Dw})),e.d(n,"curveBasisClosed",(function(){return Yw})),e.d(n,"curveBasisOpen",(function(){return Vw})),e.d(n,"curveBasis",(function(){return Uw})),e.d(n,"curveBundle",(function(){return Gw})),e.d(n,"curveCardinalClosed",(function(){return Qw})),e.d(n,"curveCardinalOpen",(function(){return tM})),e.d(n,"curveCardinal",(function(){return Zw})),e.d(n,"curveCatmullRomClosed",(function(){return oM})),e.d(n,"curveCatmullRomOpen",(function(){return aM})),e.d(n,"curveCatmullRom",(function(){return rM})),e.d(n,"curveLinearClosed",(function(){return fM})),e.d(n,"curveLinear",(function(){return Zx})),e.d(n,"curveMonotoneX",(function(){return yM})),e.d(n,"curveMonotoneY",(function(){return _M})),e.d(n,"curveNatural",(function(){return xM})),e.d(n,"curveStep",(function(){return MM})),e.d(n,"curveStepAfter",(function(){return EM})),e.d(n,"curveStepBefore",(function(){return AM})),e.d(n,"stack",(function(){return PM})),e.d(n,"stackOffsetExpand",(function(){return NM})),e.d(n,"stackOffsetDiverging",(function(){return CM})),e.d(n,"stackOffsetNone",(function(){return SM})),e.d(n,"stackOffsetSilhouette",(function(){return IM})),e.d(n,"stackOffsetWiggle",(function(){return jM})),e.d(n,"stackOrderAppearance",(function(){return DM})),e.d(n,"stackOrderAscending",(function(){return FM})),e.d(n,"stackOrderDescending",(function(){return qM})),e.d(n,"stackOrderInsideOut",(function(){return LM})),e.d(n,"stackOrderNone",(function(){return TM})),e.d(n,"stackOrderReverse",(function(){return UM})),e.d(n,"timeInterval",(function(){return Ug})),e.d(n,"timeMillisecond",(function(){return wy})),e.d(n,"timeMilliseconds",(function(){return My})),e.d(n,"utcMillisecond",(function(){return wy})),e.d(n,"utcMilliseconds",(function(){return My})),e.d(n,"timeSecond",(function(){return by})),e.d(n,"timeSeconds",(function(){return my})),e.d(n,"utcSecond",(function(){return by})),e.d(n,"utcSeconds",(function(){return my})),e.d(n,"timeMinute",(function(){return gy})),e.d(n,"timeMinutes",(function(){return yy})),e.d(n,"timeHour",(function(){return dy})),e.d(n,"timeHours",(function(){return py})),e.d(n,"timeDay",(function(){return sy})),e.d(n,"timeDays",(function(){return ly})),e.d(n,"timeWeek",(function(){return $g})),e.d(n,"timeWeeks",(function(){return ey})),e.d(n,"timeSunday",(function(){return $g})),e.d(n,"timeSundays",(function(){return ey})),e.d(n,"timeMonday",(function(){return Zg})),e.d(n,"timeMondays",(function(){return ry})),e.d(n,"timeTuesday",(function(){return Kg})),e.d(n,"timeTuesdays",(function(){return iy})),e.d(n,"timeWednesday",(function(){return Qg})),e.d(n,"timeWednesdays",(function(){return oy})),e.d(n,"timeThursday",(function(){return Jg})),e.d(n,"timeThursdays",(function(){return uy})),e.d(n,"timeFriday",(function(){return ty})),e.d(n,"timeFridays",(function(){return ay})),e.d(n,"timeSaturday",(function(){return ny})),e.d(n,"timeSaturdays",(function(){return cy})),e.d(n,"timeMonth",(function(){return Xg})),e.d(n,"timeMonths",(function(){return Gg})),e.d(n,"timeYear",(function(){return Yg})),e.d(n,"timeYears",(function(){return Hg})),e.d(n,"utcMinute",(function(){return kb})),e.d(n,"utcMinutes",(function(){return Pb})),e.d(n,"utcHour",(function(){return Sb})),e.d(n,"utcHours",(function(){return Tb})),e.d(n,"utcDay",(function(){return Ly})),e.d(n,"utcDays",(function(){return Uy})),e.d(n,"utcWeek",(function(){return Ey})),e.d(n,"utcWeeks",(function(){return Cy})),e.d(n,"utcSunday",(function(){return Ey})),e.d(n,"utcSundays",(function(){return Cy})),e.d(n,"utcMonday",(function(){return Sy})),e.d(n,"utcMondays",(function(){return Iy})),e.d(n,"utcTuesday",(function(){return Ty})),e.d(n,"utcTuesdays",(function(){return jy})),e.d(n,"utcWednesday",(function(){return Oy})),e.d(n,"utcWednesdays",(function(){return Dy})),e.d(n,"utcThursday",(function(){return ky})),e.d(n,"utcThursdays",(function(){return zy})),e.d(n,"utcFriday",(function(){return Py})),e.d(n,"utcFridays",(function(){return Fy})),e.d(n,"utcSaturday",(function(){return Ny})),e.d(n,"utcSaturdays",(function(){return Ry})),e.d(n,"utcMonth",(function(){return Mb})),e.d(n,"utcMonths",(function(){return Ab})),e.d(n,"utcYear",(function(){return Yy})),e.d(n,"utcYears",(function(){return Hy})),e.d(n,"timeFormatDefaultLocale",(function(){return yb})),e.d(n,"timeFormat",(function(){return Zy})),e.d(n,"timeParse",(function(){return Ky})),e.d(n,"utcFormat",(function(){return Qy})),e.d(n,"utcParse",(function(){return Jy})),e.d(n,"timeFormatLocale",(function(){return Wy})),e.d(n,"isoFormat",(function(){return BM})),e.d(n,"isoParse",(function(){return YM})),e.d(n,"now",(function(){return kr})),e.d(n,"timer",(function(){return Cr})),e.d(n,"timerFlush",(function(){return Ir})),e.d(n,"timeout",(function(){return Fr})),e.d(n,"interval",(function(){return HM})),e.d(n,"transition",(function(){return Si})),e.d(n,"active",(function(){return Di})),e.d(n,"interrupt",(function(){return Vr})),e.d(n,"zoom",(function(){return iA})),e.d(n,"zoomTransform",(function(){return $M})),e.d(n,"zoomIdentity",(function(){return WM}));var r="6.2.0",i=function(t,n){return t<n?-1:t>n?1:t>=n?0:NaN},o=function(t){let n=t,e=t;function r(t,n,r,i){for(null==r&&(r=0),null==i&&(i=t.length);r<i;){const o=r+i>>>1;e(t[o],n)<0?r=o+1:i=o}return r}return 1===t.length&&(n=(n,e)=>t(n)-e,e=function(t){return(n,e)=>i(t(n),e)}(t)),{left:r,center:function(t,e,i,o){null==i&&(i=0),null==o&&(o=t.length);const u=r(t,e,i,o-1);return u>i&&n(t[u-1],e)>-n(t[u],e)?u-1:u},right:function(t,n,r,i){for(null==r&&(r=0),null==i&&(i=t.length);r<i;){const o=r+i>>>1;e(t[o],n)>0?i=o:r=o+1}return r}}};var u=function(t){return null===t?NaN:+t};const a=o(i),c=a.right,f=a.left,s=o(u).center;var l=c;function h(t,n){let e=0;if(void 0===n)for(let n of t)null!=n&&(n=+n)>=n&&++e;else{let r=-1;for(let i of t)null!=(i=n(i,++r,t))&&(i=+i)>=i&&++e}return e}function d(t){return 0|t.length}function p(t){return!(t>0)}function v(t){return"object"!=typeof t||"length"in t?t:Array.from(t)}function g(...t){const n="function"==typeof t[t.length-1]&&function(t){return n=>t(...n)}(t.pop()),e=(t=t.map(v)).map(d),r=t.length-1,i=new Array(r+1).fill(0),o=[];if(r<0||e.some(p))return o;for(;;){o.push(i.map((n,e)=>t[e][n]));let u=r;for(;++i[u]===e[u];){if(0===u)return n?o.map(n):o;i[u--]=0}}}function y(t,n){var e=0,r=0;return Float64Array.from(t,void 0===n?t=>e+=+t||0:i=>e+=+n(i,r++,t)||0)}var _=function(t,n){return n<t?-1:n>t?1:n>=t?0:NaN};function b(t,n){let e,r=0,i=0,o=0;if(void 0===n)for(let n of t)null!=n&&(n=+n)>=n&&(e=n-i,i+=e/++r,o+=e*(n-i));else{let u=-1;for(let a of t)null!=(a=n(a,++u,t))&&(a=+a)>=a&&(e=a-i,i+=e/++r,o+=e*(a-i))}if(r>1)return o/(r-1)}function m(t,n){const e=b(t,n);return e?Math.sqrt(e):e}var x=function(t,n){let e,r;if(void 0===n)for(const n of t)null!=n&&(void 0===e?n>=n&&(e=r=n):(e>n&&(e=n),r<n&&(r=n)));else{let i=-1;for(let o of t)null!=(o=n(o,++i,t))&&(void 0===e?o>=o&&(e=r=o):(e>o&&(e=o),r<o&&(r=o)))}return[e,r]};class w{constructor(){this._partials=new Float64Array(32),this._n=0}add(t){const n=this._partials;let e=0;for(let r=0;r<this._n&&r<32;r++){const i=n[r],o=t+i,u=Math.abs(t)<Math.abs(i)?t-(o-i):i-(o-t);u&&(n[e++]=u),t=o}return n[e]=t,this._n=e+1,this}valueOf(){const t=this._partials;let n,e,r,i=this._n,o=0;if(i>0){for(o=t[--i];i>0&&(n=o,e=t[--i],o=n+e,r=e-(o-n),!r););i>0&&(r<0&&t[i-1]<0||r>0&&t[i-1]>0)&&(e=2*r,n=o+e,e==n-o&&(o=n))}return o}}var M=function(t,n){const e=new w;if(void 0===n)for(let n of t)(n=+n)&&e.add(n);else{let r=-1;for(let i of t)(i=+n(i,++r,t))&&e.add(i)}return+e},A=function(t){return t};function E(t,...n){return C(t,A,A,n)}function S(t,...n){return C(t,Array.from,A,n)}function T(t,n,...e){return C(t,A,n,e)}function O(t,n,...e){return C(t,Array.from,n,e)}function k(t,...n){return C(t,A,N,n)}function P(t,...n){return C(t,Array.from,N,n)}function N(t){if(1!==t.length)throw new Error("duplicate key");return t[0]}function C(t,n,e,r){return function t(i,o){if(o>=r.length)return e(i);const u=new Map,a=r[o++];let c=-1;for(const t of i){const n=a(t,++c,i),e=u.get(n);e?e.push(t):u.set(n,[t])}for(const[n,e]of u)u.set(n,t(e,o));return n(u)}(t,0)}var I=Array.prototype,j=I.slice,D=(I.map,function(t){return function(){return t}}),z=Math.sqrt(50),F=Math.sqrt(10),R=Math.sqrt(2),q=function(t,n,e){var r,i,o,u,a=-1;if(e=+e,(t=+t)===(n=+n)&&e>0)return[t];if((r=n<t)&&(i=t,t=n,n=i),0===(u=L(t,n,e))||!isFinite(u))return[];if(u>0)for(t=Math.ceil(t/u),n=Math.floor(n/u),o=new Array(i=Math.ceil(n-t+1));++a<i;)o[a]=(t+a)*u;else for(u=-u,t=Math.ceil(t*u),n=Math.floor(n*u),o=new Array(i=Math.ceil(n-t+1));++a<i;)o[a]=(t+a)/u;return r&&o.reverse(),o};function L(t,n,e){var r=(n-t)/Math.max(0,e),i=Math.floor(Math.log(r)/Math.LN10),o=r/Math.pow(10,i);return i>=0?(o>=z?10:o>=F?5:o>=R?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(o>=z?10:o>=F?5:o>=R?2:1)}function U(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>=z?i*=10:o>=F?i*=5:o>=R&&(i*=2),n<t?-i:i}function B(t,n,e){let r;for(;;){const i=L(t,n,e);if(i===r||0===i||!isFinite(i))return[t,n];i>0?(t=Math.floor(t/i)*i,n=Math.ceil(n/i)*i):i<0&&(t=Math.ceil(t*i)/i,n=Math.floor(n*i)/i),r=i}}var Y=function(t){return Math.ceil(Math.log(h(t))/Math.LN2)+1},H=function(){var t=A,n=x,e=Y;function r(r){Array.isArray(r)||(r=Array.from(r));var i,o,u=r.length,a=new Array(u);for(i=0;i<u;++i)a[i]=t(r[i],i,r);var c=n(a),f=c[0],s=c[1],h=e(a,f,s);Array.isArray(h)||(h=+h,n===x&&([f,s]=B(f,s,h)),(h=q(f,s,h))[h.length-1]===s&&h.pop());for(var d=h.length;h[0]<=f;)h.shift(),--d;for(;h[d-1]>s;)h.pop(),--d;var p,v=new Array(d+1);for(i=0;i<=d;++i)(p=v[i]=[]).x0=i>0?h[i-1]:f,p.x1=i<d?h[i]:s;for(i=0;i<u;++i)f<=(o=a[i])&&o<=s&&v[l(h,o,0,d)].push(r[i]);return v}return r.value=function(n){return arguments.length?(t="function"==typeof n?n:D(n),r):t},r.domain=function(t){return arguments.length?(n="function"==typeof t?t:D([t[0],t[1]]),r):n},r.thresholds=function(t){return arguments.length?(e="function"==typeof t?t:Array.isArray(t)?D(j.call(t)):D(t),r):e},r};function V(t,n){let e;if(void 0===n)for(const n of t)null!=n&&(e<n||void 0===e&&n>=n)&&(e=n);else{let r=-1;for(let i of t)null!=(i=n(i,++r,t))&&(e<i||void 0===e&&i>=i)&&(e=i)}return e}function X(t,n){let e;if(void 0===n)for(const n of t)null!=n&&(e>n||void 0===e&&n>=n)&&(e=n);else{let r=-1;for(let i of t)null!=(i=n(i,++r,t))&&(e>i||void 0===e&&i>=i)&&(e=i)}return e}function G(t,n,e=0,r=t.length-1,o=i){for(;r>e;){if(r-e>600){const i=r-e+1,u=n-e+1,a=Math.log(i),c=.5*Math.exp(2*a/3),f=.5*Math.sqrt(a*c*(i-c)/i)*(u-i/2<0?-1:1);G(t,n,Math.max(e,Math.floor(n-u*c/i+f)),Math.min(r,Math.floor(n+(i-u)*c/i+f)),o)}const i=t[n];let u=e,a=r;for(W(t,e,n),o(t[r],i)>0&&W(t,e,r);u<a;){for(W(t,u,a),++u,--a;o(t[u],i)<0;)++u;for(;o(t[a],i)>0;)--a}0===o(t[e],i)?W(t,e,a):(++a,W(t,a,r)),a<=n&&(e=a+1),n<=a&&(r=a-1)}return t}function W(t,n,e){const r=t[n];t[n]=t[e],t[e]=r}function $(t,n,e){if(r=(t=Float64Array.from(function*(t,n){if(void 0===n)for(let n of t)null!=n&&(n=+n)>=n&&(yield n);else{let e=-1;for(let r of t)null!=(r=n(r,++e,t))&&(r=+r)>=r&&(yield r)}}(t,e))).length){if((n=+n)<=0||r<2)return X(t);if(n>=1)return V(t);var r,i=(r-1)*n,o=Math.floor(i),u=V(G(t,o).subarray(0,o+1));return u+(X(t.subarray(o+1))-u)*(i-o)}}function Z(t,n,e=u){if(r=t.length){if((n=+n)<=0||r<2)return+e(t[0],0,t);if(n>=1)return+e(t[r-1],r-1,t);var r,i=(r-1)*n,o=Math.floor(i),a=+e(t[o],o,t);return a+(+e(t[o+1],o+1,t)-a)*(i-o)}}var K=function(t,n,e){return Math.ceil((e-n)/(2*($(t,.75)-$(t,.25))*Math.pow(h(t),-1/3)))},Q=function(t,n,e){return Math.ceil((e-n)/(3.5*m(t)*Math.pow(h(t),-1/3)))};function J(t,n){let e,r=-1,i=-1;if(void 0===n)for(const n of t)++i,null!=n&&(e<n||void 0===e&&n>=n)&&(e=n,r=i);else for(let o of t)null!=(o=n(o,++i,t))&&(e<o||void 0===e&&o>=o)&&(e=o,r=i);return r}function tt(t,n){let e=0,r=0;if(void 0===n)for(let n of t)null!=n&&(n=+n)>=n&&(++e,r+=n);else{let i=-1;for(let o of t)null!=(o=n(o,++i,t))&&(o=+o)>=o&&(++e,r+=o)}if(e)return r/e}var nt=function(t,n){return $(t,.5,n)};function et(t){return Array.from(function*(t){for(const n of t)yield*n}(t))}function rt(t,n){let e,r=-1,i=-1;if(void 0===n)for(const n of t)++i,null!=n&&(e>n||void 0===e&&n>=n)&&(e=n,r=i);else for(let o of t)null!=(o=n(o,++i,t))&&(e>o||void 0===e&&o>=o)&&(e=o,r=i);return r}function it(t,n=ot){const e=[];let r,i=!1;for(const o of t)i&&e.push(n(r,o)),r=o,i=!0;return e}function ot(t,n){return[t,n]}var ut=function(t,n){return Array.from(n,n=>t[n])},at=function(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);++r<i;)o[r]=t+r*e;return o};function ct(t,n=i){let e,r=!1;if(1===n.length){let o;for(const u of t){const t=n(u);(r?i(t,o)<0:0===i(t,t))&&(e=u,o=t,r=!0)}}else for(const i of t)(r?n(i,e)<0:0===n(i,i))&&(e=i,r=!0);return e}function ft(t,n=i){if(1===n.length)return rt(t,n);let e,r=-1,o=-1;for(const i of t)++o,(r<0?0===n(i,i):n(i,e)<0)&&(e=i,r=o);return r}function st(t,n=i){let e,r=!1;if(1===n.length){let o;for(const u of t){const t=n(u);(r?i(t,o)>0:0===i(t,t))&&(e=u,o=t,r=!0)}}else for(const i of t)(r?n(i,e)>0:0===n(i,i))&&(e=i,r=!0);return e}function lt(t,n=i){if(1===n.length)return J(t,n);let e,r=-1,o=-1;for(const i of t)++o,(r<0?0===n(i,i):n(i,e)>0)&&(e=i,r=o);return r}function ht(t,n){const e=ft(t,n);return e<0?void 0:e}var dt=pt(Math.random);function pt(t){return function(n,e=0,r=n.length){let i=r-(e=+e);for(;i;){const r=t()*i--|0,o=n[i+e];n[i+e]=n[r+e],n[r+e]=o}return n}}function vt(t,n){let e=0;if(void 0===n)for(let n of t)(n=+n)&&(e+=n);else{let r=-1;for(let i of t)(i=+n(i,++r,t))&&(e+=i)}return e}var gt=function(t){if(!(i=t.length))return[];for(var n=-1,e=X(t,yt),r=new Array(e);++n<e;)for(var i,o=-1,u=r[n]=new Array(i);++o<i;)u[o]=t[o][n];return r};function yt(t){return t.length}var _t=function(){return gt(arguments)};function bt(t,n){if("function"!=typeof n)throw new TypeError("test is not a function");let e=-1;for(const r of t)if(!n(r,++e,t))return!1;return!0}function mt(t,n){if("function"!=typeof n)throw new TypeError("test is not a function");let e=-1;for(const r of t)if(n(r,++e,t))return!0;return!1}function xt(t,n){if("function"!=typeof n)throw new TypeError("test is not a function");const e=[];let r=-1;for(const i of t)n(i,++r,t)&&e.push(i);return e}function wt(t,n){if("function"!=typeof t[Symbol.iterator])throw new TypeError("values is not iterable");if("function"!=typeof n)throw new TypeError("mapper is not a function");return Array.from(t,(e,r)=>n(e,r,t))}function Mt(t,n,e){if("function"!=typeof n)throw new TypeError("reducer is not a function");const r=t[Symbol.iterator]();let i,o,u=-1;if(arguments.length<3){if(({done:i,value:e}=r.next()),i)return;++u}for(;({done:i,value:o}=r.next()),!i;)e=n(e,o,++u,t);return e}function At(t){if("function"!=typeof t[Symbol.iterator])throw new TypeError("values is not iterable");return Array.from(t).reverse()}function Et(t,n=i){if("function"!=typeof t[Symbol.iterator])throw new TypeError("values is not iterable");return Array.from(t).sort(n)}function St(t,...n){t=new Set(t);for(const e of n)for(const n of e)t.delete(n);return t}function Tt(t,n){const e=n[Symbol.iterator](),r=new Set;for(const n of t){if(r.has(n))return!1;let t,i;for(;({value:t,done:i}=e.next())&&!i;){if(Object.is(n,t))return!1;r.add(t)}}return!0}function Ot(t){return t instanceof Set?t:new Set(t)}function kt(t,...n){t=new Set(t),n=n.map(Ot);t:for(const e of t)for(const r of n)if(!r.has(e)){t.delete(e);continue t}return t}function Pt(t,n){const e=t[Symbol.iterator](),r=new Set;for(const t of n){if(r.has(t))continue;let n,i;for(;({value:n,done:i}=e.next());){if(i)return!1;if(r.add(n),Object.is(t,n))break}}return!0}function Nt(t,n){return Pt(n,t)}function Ct(...t){const n=new Set;for(const e of t)for(const t of e)n.add(t);return n}var It=Array.prototype.slice,jt=function(t){return t};function Dt(t){return"translate("+(t+.5)+",0)"}function zt(t){return"translate(0,"+(t+.5)+")"}function Ft(t){return n=>+t(n)}function Rt(t){var n=Math.max(0,t.bandwidth()-1)/2;return t.round()&&(n=Math.round(n)),function(e){return+t(e)+n}}function qt(){return!this.__axis}function Lt(t,n){var e=[],r=null,i=null,o=6,u=6,a=3,c=1===t||4===t?-1:1,f=4===t||2===t?"x":"y",s=1===t||3===t?Dt:zt;function l(l){var h=null==r?n.ticks?n.ticks.apply(n,e):n.domain():r,d=null==i?n.tickFormat?n.tickFormat.apply(n,e):jt:i,p=Math.max(o,0)+a,v=n.range(),g=+v[0]+.5,y=+v[v.length-1]+.5,_=(n.bandwidth?Rt:Ft)(n.copy()),b=l.selection?l.selection():l,m=b.selectAll(".domain").data([null]),x=b.selectAll(".tick").data(h,n).order(),w=x.exit(),M=x.enter().append("g").attr("class","tick"),A=x.select("line"),E=x.select("text");m=m.merge(m.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),x=x.merge(M),A=A.merge(M.append("line").attr("stroke","currentColor").attr(f+"2",c*o)),E=E.merge(M.append("text").attr("fill","currentColor").attr(f,c*p).attr("dy",1===t?"0em":3===t?"0.71em":"0.32em")),l!==b&&(m=m.transition(l),x=x.transition(l),A=A.transition(l),E=E.transition(l),w=w.transition(l).attr("opacity",1e-6).attr("transform",(function(t){return isFinite(t=_(t))?s(t):this.getAttribute("transform")})),M.attr("opacity",1e-6).attr("transform",(function(t){var n=this.parentNode.__axis;return s(n&&isFinite(n=n(t))?n:_(t))}))),w.remove(),m.attr("d",4===t||2==t?u?"M"+c*u+","+g+"H0.5V"+y+"H"+c*u:"M0.5,"+g+"V"+y:u?"M"+g+","+c*u+"V0.5H"+y+"V"+c*u:"M"+g+",0.5H"+y),x.attr("opacity",1).attr("transform",(function(t){return s(_(t))})),A.attr(f+"2",c*o),E.attr(f,c*p).text(d),b.filter(qt).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",2===t?"start":4===t?"end":"middle"),b.each((function(){this.__axis=_}))}return l.scale=function(t){return arguments.length?(n=t,l):n},l.ticks=function(){return e=It.call(arguments),l},l.tickArguments=function(t){return arguments.length?(e=null==t?[]:It.call(t),l):e.slice()},l.tickValues=function(t){return arguments.length?(r=null==t?null:It.call(t),l):r&&r.slice()},l.tickFormat=function(t){return arguments.length?(i=t,l):i},l.tickSize=function(t){return arguments.length?(o=u=+t,l):o},l.tickSizeInner=function(t){return arguments.length?(o=+t,l):o},l.tickSizeOuter=function(t){return arguments.length?(u=+t,l):u},l.tickPadding=function(t){return arguments.length?(a=+t,l):a},l}function Ut(t){return Lt(1,t)}function Bt(t){return Lt(2,t)}function Yt(t){return Lt(3,t)}function Ht(t){return Lt(4,t)}var Vt={value:()=>{}};function Xt(){for(var t,n=0,e=arguments.length,r={};n<e;++n){if(!(t=arguments[n]+"")||t in r||/[\s.]/.test(t))throw new Error("illegal type: "+t);r[t]=[]}return new Gt(r)}function Gt(t){this._=t}function Wt(t,n){return t.trim().split(/^|\s+/).map((function(t){var e="",r=t.indexOf(".");if(r>=0&&(e=t.slice(r+1),t=t.slice(0,r)),t&&!n.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:e}}))}function $t(t,n){for(var e,r=0,i=t.length;r<i;++r)if((e=t[r]).name===n)return e.value}function Zt(t,n,e){for(var r=0,i=t.length;r<i;++r)if(t[r].name===n){t[r]=Vt,t=t.slice(0,r).concat(t.slice(r+1));break}return null!=e&&t.push({name:n,value:e}),t}Gt.prototype=Xt.prototype={constructor:Gt,on:function(t,n){var e,r=this._,i=Wt(t+"",r),o=-1,u=i.length;if(!(arguments.length<2)){if(null!=n&&"function"!=typeof n)throw new Error("invalid callback: "+n);for(;++o<u;)if(e=(t=i[o]).type)r[e]=Zt(r[e],t.name,n);else if(null==n)for(e in r)r[e]=Zt(r[e],t.name,null);return this}for(;++o<u;)if((e=(t=i[o]).type)&&(e=$t(r[e],t.name)))return e},copy:function(){var t={},n=this._;for(var e in n)t[e]=n[e].slice();return new Gt(t)},call:function(t,n){if((e=arguments.length-2)>0)for(var e,r,i=new Array(e),o=0;o<e;++o)i[o]=arguments[o+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(o=0,e=(r=this._[t]).length;o<e;++o)r[o].value.apply(n,i)},apply:function(t,n,e){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var r=this._[t],i=0,o=r.length;i<o;++i)r[i].value.apply(n,e)}};var Kt=Xt;function Qt(){}var Jt=function(t){return null==t?Qt:function(){return this.querySelector(t)}},tn=function(t){return"object"==typeof t&&"length"in t?t:Array.from(t)};function nn(){return[]}var en=function(t){return null==t?nn:function(){return this.querySelectorAll(t)}};var rn=function(t){return function(){return this.matches(t)}};function on(t){return function(n){return n.matches(t)}}var un=Array.prototype.find;function an(){return this.firstElementChild}var cn=Array.prototype.filter;function fn(){return this.children}var sn=function(t){return new Array(t.length)};function ln(t,n){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=n}ln.prototype={constructor:ln,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 hn=function(t){return function(){return t}};function dn(t,n,e,r,i,o){for(var u,a=0,c=n.length,f=o.length;a<f;++a)(u=n[a])?(u.__data__=o[a],r[a]=u):e[a]=new ln(t,o[a]);for(;a<c;++a)(u=n[a])&&(i[a]=u)}function pn(t,n,e,r,i,o,u){var a,c,f,s=new Map,l=n.length,h=o.length,d=new Array(l);for(a=0;a<l;++a)(c=n[a])&&(d[a]=f=u.call(c,c.__data__,a,n)+"",s.has(f)?i[a]=c:s.set(f,c));for(a=0;a<h;++a)f=u.call(t,o[a],a,o)+"",(c=s.get(f))?(r[a]=c,c.__data__=o[a],s.delete(f)):e[a]=new ln(t,o[a]);for(a=0;a<l;++a)(c=n[a])&&s.get(d[a])===c&&(i[a]=c)}function vn(t){return t.__data__}function gn(t,n){return t<n?-1:t>n?1:t>=n?0:NaN}var yn="http://www.w3.org/1999/xhtml",_n={svg:"http://www.w3.org/2000/svg",xhtml:yn,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},bn=function(t){var n=t+="",e=n.indexOf(":");return e>=0&&"xmlns"!==(n=t.slice(0,e))&&(t=t.slice(e+1)),_n.hasOwnProperty(n)?{space:_n[n],local:t}:t};function mn(t){return function(){this.removeAttribute(t)}}function xn(t){return function(){this.removeAttributeNS(t.space,t.local)}}function wn(t,n){return function(){this.setAttribute(t,n)}}function Mn(t,n){return function(){this.setAttributeNS(t.space,t.local,n)}}function An(t,n){return function(){var e=n.apply(this,arguments);null==e?this.removeAttribute(t):this.setAttribute(t,e)}}function En(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)}}var Sn=function(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView};function Tn(t){return function(){this.style.removeProperty(t)}}function On(t,n,e){return function(){this.style.setProperty(t,n,e)}}function kn(t,n,e){return function(){var r=n.apply(this,arguments);null==r?this.style.removeProperty(t):this.style.setProperty(t,r,e)}}function Pn(t,n){return t.style.getPropertyValue(n)||Sn(t).getComputedStyle(t,null).getPropertyValue(n)}function Nn(t){return function(){delete this[t]}}function Cn(t,n){return function(){this[t]=n}}function In(t,n){return function(){var e=n.apply(this,arguments);null==e?delete this[t]:this[t]=e}}function jn(t){return t.trim().split(/^|\s+/)}function Dn(t){return t.classList||new zn(t)}function zn(t){this._node=t,this._names=jn(t.getAttribute("class")||"")}function Fn(t,n){for(var e=Dn(t),r=-1,i=n.length;++r<i;)e.add(n[r])}function Rn(t,n){for(var e=Dn(t),r=-1,i=n.length;++r<i;)e.remove(n[r])}function qn(t){return function(){Fn(this,t)}}function Ln(t){return function(){Rn(this,t)}}function Un(t,n){return function(){(n.apply(this,arguments)?Fn:Rn)(this,t)}}zn.prototype={add:function(t){this._names.indexOf(t)<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 Bn(){this.textContent=""}function Yn(t){return function(){this.textContent=t}}function Hn(t){return function(){var n=t.apply(this,arguments);this.textContent=null==n?"":n}}function Vn(){this.innerHTML=""}function Xn(t){return function(){this.innerHTML=t}}function Gn(t){return function(){var n=t.apply(this,arguments);this.innerHTML=null==n?"":n}}function Wn(){this.nextSibling&&this.parentNode.appendChild(this)}function $n(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Zn(t){return function(){var n=this.ownerDocument,e=this.namespaceURI;return e===yn&&n.documentElement.namespaceURI===yn?n.createElement(t):n.createElementNS(e,t)}}function Kn(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}var Qn=function(t){var n=bn(t);return(n.local?Kn:Zn)(n)};function Jn(){return null}function te(){var t=this.parentNode;t&&t.removeChild(this)}function ne(){var t=this.cloneNode(!1),n=this.parentNode;return n?n.insertBefore(t,this.nextSibling):t}function ee(){var t=this.cloneNode(!0),n=this.parentNode;return n?n.insertBefore(t,this.nextSibling):t}function re(t){return t.trim().split(/^|\s+/).map((function(t){var n="",e=t.indexOf(".");return e>=0&&(n=t.slice(e+1),t=t.slice(0,e)),{type:t,name:n}}))}function ie(t){return function(){var n=this.__on;if(n){for(var e,r=0,i=-1,o=n.length;r<o;++r)e=n[r],t.type&&e.type!==t.type||e.name!==t.name?n[++i]=e:this.removeEventListener(e.type,e.listener,e.options);++i?n.length=i:delete this.__on}}}function oe(t,n,e){return function(){var r,i=this.__on,o=function(t){return function(n){t.call(this,n,this.__data__)}}(n);if(i)for(var u=0,a=i.length;u<a;++u)if((r=i[u]).type===t.type&&r.name===t.name)return this.removeEventListener(r.type,r.listener,r.options),this.addEventListener(r.type,r.listener=o,r.options=e),void(r.value=n);this.addEventListener(t.type,o,e),r={type:t.type,name:t.name,value:n,listener:o,options:e},i?i.push(r):this.__on=[r]}}function ue(t,n,e){var r=Sn(t),i=r.CustomEvent;"function"==typeof i?i=new i(n,e):(i=r.document.createEvent("Event"),e?(i.initEvent(n,e.bubbles,e.cancelable),i.detail=e.detail):i.initEvent(n,!1,!1)),t.dispatchEvent(i)}function ae(t,n){return function(){return ue(this,t,n)}}function ce(t,n){return function(){return ue(this,t,n.apply(this,arguments))}}var fe=[null];function se(t,n){this._groups=t,this._parents=n}function le(){return new se([[document.documentElement]],fe)}se.prototype=le.prototype={constructor:se,select:function(t){"function"!=typeof t&&(t=Jt(t));for(var n=this._groups,e=n.length,r=new Array(e),i=0;i<e;++i)for(var o,u,a=n[i],c=a.length,f=r[i]=new Array(c),s=0;s<c;++s)(o=a[s])&&(u=t.call(o,o.__data__,s,a))&&("__data__"in o&&(u.__data__=o.__data__),f[s]=u);return new se(r,this._parents)},selectAll:function(t){t="function"==typeof t?function(t){return function(){var n=t.apply(this,arguments);return null==n?[]:tn(n)}}(t):en(t);for(var n=this._groups,e=n.length,r=[],i=[],o=0;o<e;++o)for(var u,a=n[o],c=a.length,f=0;f<c;++f)(u=a[f])&&(r.push(t.call(u,u.__data__,f,a)),i.push(u));return new se(r,i)},selectChild:function(t){return this.select(null==t?an:function(t){return function(){return un.call(this.children,t)}}("function"==typeof t?t:on(t)))},selectChildren:function(t){return this.selectAll(null==t?fn:function(t){return function(){return cn.call(this.children,t)}}("function"==typeof t?t:on(t)))},filter:function(t){"function"!=typeof t&&(t=rn(t));for(var n=this._groups,e=n.length,r=new Array(e),i=0;i<e;++i)for(var o,u=n[i],a=u.length,c=r[i]=[],f=0;f<a;++f)(o=u[f])&&t.call(o,o.__data__,f,u)&&c.push(o);return new se(r,this._parents)},data:function(t,n){if(!arguments.length)return Array.from(this,vn);var e=n?pn:dn,r=this._parents,i=this._groups;"function"!=typeof t&&(t=hn(t));for(var o=i.length,u=new Array(o),a=new Array(o),c=new Array(o),f=0;f<o;++f){var s=r[f],l=i[f],h=l.length,d=tn(t.call(s,s&&s.__data__,f,r)),p=d.length,v=a[f]=new Array(p),g=u[f]=new Array(p),y=c[f]=new Array(h);e(s,l,v,g,y,d,n);for(var _,b,m=0,x=0;m<p;++m)if(_=v[m]){for(m>=x&&(x=m+1);!(b=g[x])&&++x<p;);_._next=b||null}}return(u=new se(u,r))._enter=a,u._exit=c,u},enter:function(){return new se(this._enter||this._groups.map(sn),this._parents)},exit:function(){return new se(this._exit||this._groups.map(sn),this._parents)},join:function(t,n,e){var r=this.enter(),i=this,o=this.exit();return r="function"==typeof t?t(r):r.append(t+""),null!=n&&(i=n(i)),null==e?o.remove():e(o),r&&i?r.merge(i).order():i},merge:function(t){if(!(t instanceof se))throw new Error("invalid merge");for(var n=this._groups,e=t._groups,r=n.length,i=e.length,o=Math.min(r,i),u=new Array(r),a=0;a<o;++a)for(var c,f=n[a],s=e[a],l=f.length,h=u[a]=new Array(l),d=0;d<l;++d)(c=f[d]||s[d])&&(h[d]=c);for(;a<r;++a)u[a]=n[a];return new se(u,this._parents)},selection:function(){return this},order:function(){for(var t=this._groups,n=-1,e=t.length;++n<e;)for(var r,i=t[n],o=i.length-1,u=i[o];--o>=0;)(r=i[o])&&(u&&4^r.compareDocumentPosition(u)&&u.parentNode.insertBefore(r,u),u=r);return this},sort:function(t){function n(n,e){return n&&e?t(n.__data__,e.__data__):!n-!e}t||(t=gn);for(var e=this._groups,r=e.length,i=new Array(r),o=0;o<r;++o){for(var u,a=e[o],c=a.length,f=i[o]=new Array(c),s=0;s<c;++s)(u=a[s])&&(f[s]=u);f.sort(n)}return new se(i,this._parents).order()},call:function(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this},nodes:function(){return Array.from(this)},node:function(){for(var t=this._groups,n=0,e=t.length;n<e;++n)for(var r=t[n],i=0,o=r.length;i<o;++i){var u=r[i];if(u)return u}return null},size:function(){let t=0;for(const n of this)++t;return t},empty:function(){return!this.node()},each:function(t){for(var n=this._groups,e=0,r=n.length;e<r;++e)for(var i,o=n[e],u=0,a=o.length;u<a;++u)(i=o[u])&&t.call(i,i.__data__,u,o);return this},attr:function(t,n){var e=bn(t);if(arguments.length<2){var r=this.node();return e.local?r.getAttributeNS(e.space,e.local):r.getAttribute(e)}return this.each((null==n?e.local?xn:mn:"function"==typeof n?e.local?En:An:e.local?Mn:wn)(e,n))},style:function(t,n,e){return arguments.length>1?this.each((null==n?Tn:"function"==typeof n?kn:On)(t,n,null==e?"":e)):Pn(this.node(),t)},property:function(t,n){return arguments.length>1?this.each((null==n?Nn:"function"==typeof n?In:Cn)(t,n)):this.node()[t]},classed:function(t,n){var e=jn(t+"");if(arguments.length<2){for(var r=Dn(this.node()),i=-1,o=e.length;++i<o;)if(!r.contains(e[i]))return!1;return!0}return this.each(("function"==typeof n?Un:n?qn:Ln)(e,n))},text:function(t){return arguments.length?this.each(null==t?Bn:("function"==typeof t?Hn:Yn)(t)):this.node().textContent},html:function(t){return arguments.length?this.each(null==t?Vn:("function"==typeof t?Gn:Xn)(t)):this.node().innerHTML},raise:function(){return this.each(Wn)},lower:function(){return this.each($n)},append:function(t){var n="function"==typeof t?t:Qn(t);return this.select((function(){return this.appendChild(n.apply(this,arguments))}))},insert:function(t,n){var e="function"==typeof t?t:Qn(t),r=null==n?Jn:"function"==typeof n?n:Jt(n);return this.select((function(){return this.insertBefore(e.apply(this,arguments),r.apply(this,arguments)||null)}))},remove:function(){return this.each(te)},clone:function(t){return this.select(t?ee:ne)},datum:function(t){return arguments.length?this.property("__data__",t):this.node().__data__},on:function(t,n,e){var r,i,o=re(t+""),u=o.length;if(!(arguments.length<2)){for(a=n?oe:ie,r=0;r<u;++r)this.each(a(o[r],n,e));return this}var a=this.node().__on;if(a)for(var c,f=0,s=a.length;f<s;++f)for(r=0,c=a[f];r<u;++r)if((i=o[r]).type===c.type&&i.name===c.name)return c.value},dispatch:function(t,n){return this.each(("function"==typeof n?ce:ae)(t,n))},[Symbol.iterator]:function*(){for(var t=this._groups,n=0,e=t.length;n<e;++n)for(var r,i=t[n],o=0,u=i.length;o<u;++o)(r=i[o])&&(yield r)}};var he=le,de=function(t){return"string"==typeof t?new se([[document.querySelector(t)]],[document.documentElement]):new se([[t]],fe)};function pe(t){t.stopImmediatePropagation()}var ve=function(t){t.preventDefault(),t.stopImmediatePropagation()},ge=function(t){var n=t.document.documentElement,e=de(t).on("dragstart.drag",ve,!0);"onselectstart"in n?e.on("selectstart.drag",ve,!0):(n.__noselect=n.style.MozUserSelect,n.style.MozUserSelect="none")};function ye(t,n){var e=t.document.documentElement,r=de(t).on("dragstart.drag",null);n&&(r.on("click.drag",ve,!0),setTimeout((function(){r.on("click.drag",null)}),0)),"onselectstart"in e?r.on("selectstart.drag",null):(e.style.MozUserSelect=e.__noselect,delete e.__noselect)}var _e=function(t,n,e){t.prototype=n.prototype=e,e.constructor=t};function be(t,n){var e=Object.create(t.prototype);for(var r in n)e[r]=n[r];return e}function me(){}var xe="\\s*([+-]?\\d+)\\s*",we="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",Me="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Ae=/^#([0-9a-f]{3,8})$/,Ee=new RegExp("^rgb\\("+[xe,xe,xe]+"\\)$"),Se=new RegExp("^rgb\\("+[Me,Me,Me]+"\\)$"),Te=new RegExp("^rgba\\("+[xe,xe,xe,we]+"\\)$"),Oe=new RegExp("^rgba\\("+[Me,Me,Me,we]+"\\)$"),ke=new RegExp("^hsl\\("+[we,Me,Me]+"\\)$"),Pe=new RegExp("^hsla\\("+[we,Me,Me,we]+"\\)$"),Ne={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function Ce(){return this.rgb().formatHex()}function Ie(){return this.rgb().formatRgb()}function je(t){var n,e;return t=(t+"").trim().toLowerCase(),(n=Ae.exec(t))?(e=n[1].length,n=parseInt(n[1],16),6===e?De(n):3===e?new qe(n>>8&15|n>>4&240,n>>4&15|240&n,(15&n)<<4|15&n,1):8===e?ze(n>>24&255,n>>16&255,n>>8&255,(255&n)/255):4===e?ze(n>>12&15|n>>8&240,n>>8&15|n>>4&240,n>>4&15|240&n,((15&n)<<4|15&n)/255):null):(n=Ee.exec(t))?new qe(n[1],n[2],n[3],1):(n=Se.exec(t))?new qe(255*n[1]/100,255*n[2]/100,255*n[3]/100,1):(n=Te.exec(t))?ze(n[1],n[2],n[3],n[4]):(n=Oe.exec(t))?ze(255*n[1]/100,255*n[2]/100,255*n[3]/100,n[4]):(n=ke.exec(t))?Ye(n[1],n[2]/100,n[3]/100,1):(n=Pe.exec(t))?Ye(n[1],n[2]/100,n[3]/100,n[4]):Ne.hasOwnProperty(t)?De(Ne[t]):"transparent"===t?new qe(NaN,NaN,NaN,0):null}function De(t){return new qe(t>>16&255,t>>8&255,255&t,1)}function ze(t,n,e,r){return r<=0&&(t=n=e=NaN),new qe(t,n,e,r)}function Fe(t){return t instanceof me||(t=je(t)),t?new qe((t=t.rgb()).r,t.g,t.b,t.opacity):new qe}function Re(t,n,e,r){return 1===arguments.length?Fe(t):new qe(t,n,e,null==r?1:r)}function qe(t,n,e,r){this.r=+t,this.g=+n,this.b=+e,this.opacity=+r}function Le(){return"#"+Be(this.r)+Be(this.g)+Be(this.b)}function Ue(){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+")")}function Be(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function Ye(t,n,e,r){return r<=0?t=n=e=NaN:e<=0||e>=1?t=n=NaN:n<=0&&(t=NaN),new Xe(t,n,e,r)}function He(t){if(t instanceof Xe)return new Xe(t.h,t.s,t.l,t.opacity);if(t instanceof me||(t=je(t)),!t)return new Xe;if(t instanceof Xe)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),u=NaN,a=o-i,c=(o+i)/2;return a?(u=n===o?(e-r)/a+6*(e<r):e===o?(r-n)/a+2:(n-e)/a+4,a/=c<.5?o+i:2-o-i,u*=60):a=c>0&&c<1?0:u,new Xe(u,a,c,t.opacity)}function Ve(t,n,e,r){return 1===arguments.length?He(t):new Xe(t,n,e,null==r?1:r)}function Xe(t,n,e,r){this.h=+t,this.s=+n,this.l=+e,this.opacity=+r}function Ge(t,n,e){return 255*(t<60?n+(e-n)*t/60:t<180?e:t<240?n+(e-n)*(240-t)/60:n)}function We(t,n,e,r,i){var o=t*t,u=o*t;return((1-3*t+3*o-u)*n+(4-6*o+3*u)*e+(1+3*t+3*o-3*u)*r+u*i)/6}_e(me,je,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:Ce,formatHex:Ce,formatHsl:function(){return He(this).formatHsl()},formatRgb:Ie,toString:Ie}),_e(qe,Re,be(me,{brighter:function(t){return t=null==t?1/.7:Math.pow(1/.7,t),new qe(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new qe(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Le,formatHex:Le,formatRgb:Ue,toString:Ue})),_e(Xe,Ve,be(me,{brighter:function(t){return t=null==t?1/.7:Math.pow(1/.7,t),new Xe(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new Xe(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 qe(Ge(t>=240?t-240:t+120,i,r),Ge(t,i,r),Ge(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},formatHsl:function(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===t?")":", "+t+")")}}));var $e=function(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],u=r>0?t[r-1]:2*i-o,a=r<n-1?t[r+2]:2*o-i;return We((e-r/n)*n,u,i,o,a)}},Ze=function(t){var n=t.length;return function(e){var r=Math.floor(((e%=1)<0?++e:e)*n),i=t[(r+n-1)%n],o=t[r%n],u=t[(r+1)%n],a=t[(r+2)%n];return We((e-r/n)*n,i,o,u,a)}},Ke=t=>()=>t;function Qe(t,n){return function(e){return t+e*n}}function Je(t,n){var e=n-t;return e?Qe(t,e>180||e<-180?e-360*Math.round(e/360):e):Ke(isNaN(t)?n:t)}function tr(t){return 1==(t=+t)?nr: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):Ke(isNaN(n)?e:n)}}function nr(t,n){var e=n-t;return e?Qe(t,e):Ke(isNaN(t)?n:t)}var er=function t(n){var e=tr(n);function r(t,n){var r=e((t=Re(t)).r,(n=Re(n)).r),i=e(t.g,n.g),o=e(t.b,n.b),u=nr(t.opacity,n.opacity);return function(n){return t.r=r(n),t.g=i(n),t.b=o(n),t.opacity=u(n),t+""}}return r.gamma=t,r}(1);function rr(t){return function(n){var e,r,i=n.length,o=new Array(i),u=new Array(i),a=new Array(i);for(e=0;e<i;++e)r=Re(n[e]),o[e]=r.r||0,u[e]=r.g||0,a[e]=r.b||0;return o=t(o),u=t(u),a=t(a),r.opacity=1,function(t){return r.r=o(t),r.g=u(t),r.b=a(t),r+""}}}var ir=rr($e),or=rr(Ze),ur=function(t,n){n||(n=[]);var e,r=t?Math.min(n.length,t.length):0,i=n.slice();return function(o){for(e=0;e<r;++e)i[e]=t[e]*(1-o)+n[e]*o;return i}};function ar(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}var cr=function(t,n){return(ar(n)?ur:fr)(t,n)};function fr(t,n){var e,r=n?n.length:0,i=t?Math.min(r,t.length):0,o=new Array(i),u=new Array(r);for(e=0;e<i;++e)o[e]=_r(t[e],n[e]);for(;e<r;++e)u[e]=n[e];return function(t){for(e=0;e<i;++e)u[e]=o[e](t);return u}}var sr=function(t,n){var e=new Date;return t=+t,n=+n,function(r){return e.setTime(t*(1-r)+n*r),e}},lr=function(t,n){return t=+t,n=+n,function(e){return t*(1-e)+n*e}},hr=function(t,n){var e,r={},i={};for(e in null!==t&&"object"==typeof t||(t={}),null!==n&&"object"==typeof n||(n={}),n)e in t?r[e]=_r(t[e],n[e]):i[e]=n[e];return function(t){for(e in r)i[e]=r[e](t);return i}},dr=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,pr=new RegExp(dr.source,"g");var vr,gr,yr=function(t,n){var e,r,i,o=dr.lastIndex=pr.lastIndex=0,u=-1,a=[],c=[];for(t+="",n+="";(e=dr.exec(t))&&(r=pr.exec(n));)(i=r.index)>o&&(i=n.slice(o,i),a[u]?a[u]+=i:a[++u]=i),(e=e[0])===(r=r[0])?a[u]?a[u]+=r:a[++u]=r:(a[++u]=null,c.push({i:u,x:lr(e,r)})),o=pr.lastIndex;return o<n.length&&(i=n.slice(o),a[u]?a[u]+=i:a[++u]=i),a.length<2?c[0]?function(t){return function(n){return t(n)+""}}(c[0].x):function(t){return function(){return t}}(n):(n=c.length,function(t){for(var e,r=0;r<n;++r)a[(e=c[r]).i]=e.x(t);return a.join("")})},_r=function(t,n){var e,r=typeof n;return null==n||"boolean"===r?Ke(n):("number"===r?lr:"string"===r?(e=je(n))?(n=e,er):yr:n instanceof je?er:n instanceof Date?sr:ar(n)?ur:Array.isArray(n)?fr:"function"!=typeof n.valueOf&&"function"!=typeof n.toString||isNaN(n)?hr:lr)(t,n)},br=function(t){let n;for(;n=t.sourceEvent;)t=n;return t},mr=function(t,n){if(t=br(t),void 0===n&&(n=t.currentTarget),n){var e=n.ownerSVGElement||n;if(e.createSVGPoint){var r=e.createSVGPoint();return r.x=t.clientX,r.y=t.clientY,[(r=r.matrixTransform(n.getScreenCTM().inverse())).x,r.y]}if(n.getBoundingClientRect){var i=n.getBoundingClientRect();return[t.clientX-i.left-n.clientLeft,t.clientY-i.top-n.clientTop]}}return[t.pageX,t.pageY]},xr=0,wr=0,Mr=0,Ar=0,Er=0,Sr=0,Tr="object"==typeof performance&&performance.now?performance:Date,Or="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function kr(){return Er||(Or(Pr),Er=Tr.now()+Sr)}function Pr(){Er=0}function Nr(){this._call=this._time=this._next=null}function Cr(t,n,e){var r=new Nr;return r.restart(t,n,e),r}function Ir(){kr(),++xr;for(var t,n=vr;n;)(t=Er-n._time)>=0&&n._call.call(null,t),n=n._next;--xr}function jr(){Er=(Ar=Tr.now())+Sr,xr=wr=0;try{Ir()}finally{xr=0,function(){var t,n,e=vr,r=1/0;for(;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:vr=n);gr=t,zr(r)}(),Er=0}}function Dr(){var t=Tr.now(),n=t-Ar;n>1e3&&(Sr-=n,Ar=t)}function zr(t){xr||(wr&&(wr=clearTimeout(wr)),t-Er>24?(t<1/0&&(wr=setTimeout(jr,t-Tr.now()-Sr)),Mr&&(Mr=clearInterval(Mr))):(Mr||(Ar=Tr.now(),Mr=setInterval(Dr,1e3)),xr=1,Or(jr)))}Nr.prototype=Cr.prototype={constructor:Nr,restart:function(t,n,e){if("function"!=typeof t)throw new TypeError("callback is not a function");e=(null==e?kr():+e)+(null==n?0:+n),this._next||gr===this||(gr?gr._next=this:vr=this,gr=this),this._call=t,this._time=e,zr()},stop:function(){this._call&&(this._call=null,this._time=1/0,zr())}};var Fr=function(t,n,e){var r=new Nr;return n=null==n?0:+n,r.restart(e=>{r.stop(),t(e+n)},n,e),r},Rr=Kt("start","end","cancel","interrupt"),qr=[],Lr=function(t,n,e,r,i,o){var u=t.__transition;if(u){if(e in u)return}else t.__transition={};!function(t,n,e){var r,i=t.__transition;function o(c){var f,s,l,h;if(1!==e.state)return a();for(f in i)if((h=i[f]).name===e.name){if(3===h.state)return Fr(o);4===h.state?(h.state=6,h.timer.stop(),h.on.call("interrupt",t,t.__data__,h.index,h.group),delete i[f]):+f<n&&(h.state=6,h.timer.stop(),h.on.call("cancel",t,t.__data__,h.index,h.group),delete i[f])}if(Fr((function(){3===e.state&&(e.state=4,e.timer.restart(u,e.delay,e.time),u(c))})),e.state=2,e.on.call("start",t,t.__data__,e.index,e.group),2===e.state){for(e.state=3,r=new Array(l=e.tween.length),f=0,s=-1;f<l;++f)(h=e.tween[f].value.call(t,t.__data__,e.index,e.group))&&(r[++s]=h);r.length=s+1}}function u(n){for(var i=n<e.duration?e.ease.call(null,n/e.duration):(e.timer.restart(a),e.state=5,1),o=-1,u=r.length;++o<u;)r[o].call(t,i);5===e.state&&(e.on.call("end",t,t.__data__,e.index,e.group),a())}function a(){for(var r in e.state=6,e.timer.stop(),delete i[n],i)return;delete t.__transition}i[n]=e,e.timer=Cr((function(t){e.state=1,e.timer.restart(o,e.delay,e.time),e.delay<=t&&o(t-e.delay)}),0,e.time)}(t,e,{name:n,index:r,group:i,on:Rr,tween:qr,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:0})};function Ur(t,n){var e=Yr(t,n);if(e.state>0)throw new Error("too late; already scheduled");return e}function Br(t,n){var e=Yr(t,n);if(e.state>3)throw new Error("too late; already running");return e}function Yr(t,n){var e=t.__transition;if(!e||!(e=e[n]))throw new Error("transition not found");return e}var Hr,Vr=function(t,n){var e,r,i,o=t.__transition,u=!0;if(o){for(i in n=null==n?null:n+"",o)(e=o[i]).name===n?(r=e.state>2&&e.state<5,e.state=6,e.timer.stop(),e.on.call(r?"interrupt":"cancel",t,t.__data__,e.index,e.group),delete o[i]):u=!1;u&&delete t.__transition}},Xr=180/Math.PI,Gr={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1},Wr=function(t,n,e,r,i,o){var u,a,c;return(u=Math.sqrt(t*t+n*n))&&(t/=u,n/=u),(c=t*e+n*r)&&(e-=t*c,r-=n*c),(a=Math.sqrt(e*e+r*r))&&(e/=a,r/=a,c/=a),t*r<n*e&&(t=-t,n=-n,c=-c,u=-u),{translateX:i,translateY:o,rotate:Math.atan2(n,t)*Xr,skewX:Math.atan(c)*Xr,scaleX:u,scaleY:a}};function $r(t,n,e,r){function i(t){return t.length?t.pop()+" ":""}return function(o,u){var a=[],c=[];return o=t(o),u=t(u),function(t,r,i,o,u,a){if(t!==i||r!==o){var c=u.push("translate(",null,n,null,e);a.push({i:c-4,x:lr(t,i)},{i:c-2,x:lr(r,o)})}else(i||o)&&u.push("translate("+i+n+o+e)}(o.translateX,o.translateY,u.translateX,u.translateY,a,c),function(t,n,e,o){t!==n?(t-n>180?n+=360:n-t>180&&(t+=360),o.push({i:e.push(i(e)+"rotate(",null,r)-2,x:lr(t,n)})):n&&e.push(i(e)+"rotate("+n+r)}(o.rotate,u.rotate,a,c),function(t,n,e,o){t!==n?o.push({i:e.push(i(e)+"skewX(",null,r)-2,x:lr(t,n)}):n&&e.push(i(e)+"skewX("+n+r)}(o.skewX,u.skewX,a,c),function(t,n,e,r,o,u){if(t!==e||n!==r){var a=o.push(i(o)+"scale(",null,",",null,")");u.push({i:a-4,x:lr(t,e)},{i:a-2,x:lr(n,r)})}else 1===e&&1===r||o.push(i(o)+"scale("+e+","+r+")")}(o.scaleX,o.scaleY,u.scaleX,u.scaleY,a,c),o=u=null,function(t){for(var n,e=-1,r=c.length;++e<r;)a[(n=c[e]).i]=n.x(t);return a.join("")}}}var Zr=$r((function(t){const n=new("function"==typeof DOMMatrix?DOMMatrix:WebKitCSSMatrix)(t+"");return n.isIdentity?Gr:Wr(n.a,n.b,n.c,n.d,n.e,n.f)}),"px, ","px)","deg)"),Kr=$r((function(t){return null==t?Gr:(Hr||(Hr=document.createElementNS("http://www.w3.org/2000/svg","g")),Hr.setAttribute("transform",t),(t=Hr.transform.baseVal.consolidate())?(t=t.matrix,Wr(t.a,t.b,t.c,t.d,t.e,t.f)):Gr)}),", ",")",")");function Qr(t,n){var e,r;return function(){var i=Br(this,t),o=i.tween;if(o!==e)for(var u=0,a=(r=e=o).length;u<a;++u)if(r[u].name===n){(r=r.slice()).splice(u,1);break}i.tween=r}}function Jr(t,n,e){var r,i;if("function"!=typeof e)throw new Error;return function(){var o=Br(this,t),u=o.tween;if(u!==r){i=(r=u).slice();for(var a={name:n,value:e},c=0,f=i.length;c<f;++c)if(i[c].name===n){i[c]=a;break}c===f&&i.push(a)}o.tween=i}}function ti(t,n,e){var r=t._id;return t.each((function(){var t=Br(this,r);(t.value||(t.value={}))[n]=e.apply(this,arguments)})),function(t){return Yr(t,r).value[n]}}var ni=function(t,n){var e;return("number"==typeof n?lr:n instanceof je?er:(e=je(n))?(n=e,er):yr)(t,n)};function ei(t){return function(){this.removeAttribute(t)}}function ri(t){return function(){this.removeAttributeNS(t.space,t.local)}}function ii(t,n,e){var r,i,o=e+"";return function(){var u=this.getAttribute(t);return u===o?null:u===r?i:i=n(r=u,e)}}function oi(t,n,e){var r,i,o=e+"";return function(){var u=this.getAttributeNS(t.space,t.local);return u===o?null:u===r?i:i=n(r=u,e)}}function ui(t,n,e){var r,i,o;return function(){var u,a,c=e(this);if(null!=c)return(u=this.getAttribute(t))===(a=c+"")?null:u===r&&a===i?o:(i=a,o=n(r=u,c));this.removeAttribute(t)}}function ai(t,n,e){var r,i,o;return function(){var u,a,c=e(this);if(null!=c)return(u=this.getAttributeNS(t.space,t.local))===(a=c+"")?null:u===r&&a===i?o:(i=a,o=n(r=u,c));this.removeAttributeNS(t.space,t.local)}}function ci(t,n){return function(e){this.setAttribute(t,n.call(this,e))}}function fi(t,n){return function(e){this.setAttributeNS(t.space,t.local,n.call(this,e))}}function si(t,n){var e,r;function i(){var i=n.apply(this,arguments);return i!==r&&(e=(r=i)&&fi(t,i)),e}return i._value=n,i}function li(t,n){var e,r;function i(){var i=n.apply(this,arguments);return i!==r&&(e=(r=i)&&ci(t,i)),e}return i._value=n,i}function hi(t,n){return function(){Ur(this,t).delay=+n.apply(this,arguments)}}function di(t,n){return n=+n,function(){Ur(this,t).delay=n}}function pi(t,n){return function(){Br(this,t).duration=+n.apply(this,arguments)}}function vi(t,n){return n=+n,function(){Br(this,t).duration=n}}function gi(t,n){if("function"!=typeof n)throw new Error;return function(){Br(this,t).ease=n}}function yi(t,n,e){var r,i,o=function(t){return(t+"").trim().split(/^|\s+/).every((function(t){var n=t.indexOf(".");return n>=0&&(t=t.slice(0,n)),!t||"start"===t}))}(n)?Ur:Br;return function(){var u=o(this,t),a=u.on;a!==r&&(i=(r=a).copy()).on(n,e),u.on=i}}var _i=he.prototype.constructor;function bi(t){return function(){this.style.removeProperty(t)}}function mi(t,n,e){return function(r){this.style.setProperty(t,n.call(this,r),e)}}function xi(t,n,e){var r,i;function o(){var o=n.apply(this,arguments);return o!==i&&(r=(i=o)&&mi(t,o,e)),r}return o._value=n,o}function wi(t){return function(n){this.textContent=t.call(this,n)}}function Mi(t){var n,e;function r(){var r=t.apply(this,arguments);return r!==e&&(n=(e=r)&&wi(r)),n}return r._value=t,r}var Ai=0;function Ei(t,n,e,r){this._groups=t,this._parents=n,this._name=e,this._id=r}function Si(t){return he().transition(t)}function Ti(){return++Ai}var Oi=he.prototype;function ki(t){return t*t*t}function Pi(t){return--t*t*t+1}function Ni(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}Ei.prototype=Si.prototype={constructor:Ei,select:function(t){var n=this._name,e=this._id;"function"!=typeof t&&(t=Jt(t));for(var r=this._groups,i=r.length,o=new Array(i),u=0;u<i;++u)for(var a,c,f=r[u],s=f.length,l=o[u]=new Array(s),h=0;h<s;++h)(a=f[h])&&(c=t.call(a,a.__data__,h,f))&&("__data__"in a&&(c.__data__=a.__data__),l[h]=c,Lr(l[h],n,e,h,l,Yr(a,e)));return new Ei(o,this._parents,n,e)},selectAll:function(t){var n=this._name,e=this._id;"function"!=typeof t&&(t=en(t));for(var r=this._groups,i=r.length,o=[],u=[],a=0;a<i;++a)for(var c,f=r[a],s=f.length,l=0;l<s;++l)if(c=f[l]){for(var h,d=t.call(c,c.__data__,l,f),p=Yr(c,e),v=0,g=d.length;v<g;++v)(h=d[v])&&Lr(h,n,e,v,d,p);o.push(d),u.push(c)}return new Ei(o,u,n,e)},filter:function(t){"function"!=typeof t&&(t=rn(t));for(var n=this._groups,e=n.length,r=new Array(e),i=0;i<e;++i)for(var o,u=n[i],a=u.length,c=r[i]=[],f=0;f<a;++f)(o=u[f])&&t.call(o,o.__data__,f,u)&&c.push(o);return new Ei(r,this._parents,this._name,this._id)},merge:function(t){if(t._id!==this._id)throw new Error;for(var n=this._groups,e=t._groups,r=n.length,i=e.length,o=Math.min(r,i),u=new Array(r),a=0;a<o;++a)for(var c,f=n[a],s=e[a],l=f.length,h=u[a]=new Array(l),d=0;d<l;++d)(c=f[d]||s[d])&&(h[d]=c);for(;a<r;++a)u[a]=n[a];return new Ei(u,this._parents,this._name,this._id)},selection:function(){return new _i(this._groups,this._parents)},transition:function(){for(var t=this._name,n=this._id,e=Ti(),r=this._groups,i=r.length,o=0;o<i;++o)for(var u,a=r[o],c=a.length,f=0;f<c;++f)if(u=a[f]){var s=Yr(u,n);Lr(u,t,e,f,a,{time:s.time+s.delay+s.duration,delay:0,duration:s.duration,ease:s.ease})}return new Ei(r,this._parents,t,e)},call:Oi.call,nodes:Oi.nodes,node:Oi.node,size:Oi.size,empty:Oi.empty,each:Oi.each,on:function(t,n){var e=this._id;return arguments.length<2?Yr(this.node(),e).on.on(t):this.each(yi(e,t,n))},attr:function(t,n){var e=bn(t),r="transform"===e?Kr:ni;return this.attrTween(t,"function"==typeof n?(e.local?ai:ui)(e,r,ti(this,"attr."+t,n)):null==n?(e.local?ri:ei)(e):(e.local?oi:ii)(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=bn(t);return this.tween(e,(r.local?si:li)(r,n))},style:function(t,n,e){var r="transform"==(t+="")?Zr:ni;return null==n?this.styleTween(t,function(t,n){var e,r,i;return function(){var o=Pn(this,t),u=(this.style.removeProperty(t),Pn(this,t));return o===u?null:o===e&&u===r?i:i=n(e=o,r=u)}}(t,r)).on("end.style."+t,bi(t)):"function"==typeof n?this.styleTween(t,function(t,n,e){var r,i,o;return function(){var u=Pn(this,t),a=e(this),c=a+"";return null==a&&(this.style.removeProperty(t),c=a=Pn(this,t)),u===c?null:u===r&&c===i?o:(i=c,o=n(r=u,a))}}(t,r,ti(this,"style."+t,n))).each(function(t,n){var e,r,i,o,u="style."+n,a="end."+u;return function(){var c=Br(this,t),f=c.on,s=null==c.value[u]?o||(o=bi(n)):void 0;f===e&&i===s||(r=(e=f).copy()).on(a,i=s),c.on=r}}(this._id,t)):this.styleTween(t,function(t,n,e){var r,i,o=e+"";return function(){var u=Pn(this,t);return u===o?null:u===r?i:i=n(r=u,e)}}(t,r,n),e).on("end.style."+t,null)},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,xi(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}}(ti(this,"text",t)):function(t){return function(){this.textContent=t}}(null==t?"":t+""))},textTween:function(t){var n="text";if(arguments.length<1)return(n=this.tween(n))&&n._value;if(null==t)return this.tween(n,null);if("function"!=typeof t)throw new Error;return this.tween(n,Mi(t))},remove:function(){return this.on("end.remove",(t=this._id,function(){var n=this.parentNode;for(var e in this.__transition)if(+e!==t)return;n&&n.removeChild(this)}));var t},tween:function(t,n){var e=this._id;if(t+="",arguments.length<2){for(var r,i=Yr(this.node(),e).tween,o=0,u=i.length;o<u;++o)if((r=i[o]).name===t)return r.value;return null}return this.each((null==n?Qr:Jr)(e,t,n))},delay:function(t){var n=this._id;return arguments.length?this.each(("function"==typeof t?hi:di)(n,t)):Yr(this.node(),n).delay},duration:function(t){var n=this._id;return arguments.length?this.each(("function"==typeof t?pi:vi)(n,t)):Yr(this.node(),n).duration},ease:function(t){var n=this._id;return arguments.length?this.each(gi(n,t)):Yr(this.node(),n).ease},easeVarying:function(t){if("function"!=typeof t)throw new Error;return this.each(function(t,n){return function(){var e=n.apply(this,arguments);if("function"!=typeof e)throw new Error;Br(this,t).ease=e}}(this._id,t))},end:function(){var t,n,e=this,r=e._id,i=e.size();return new Promise((function(o,u){var a={value:u},c={value:function(){0==--i&&o()}};e.each((function(){var e=Br(this,r),i=e.on;i!==t&&((n=(t=i).copy())._.cancel.push(a),n._.interrupt.push(a),n._.end.push(c)),e.on=n})),0===i&&o()}))},[Symbol.iterator]:Oi[Symbol.iterator]};var Ci={time:null,delay:0,duration:250,ease:Ni};function Ii(t,n){for(var e;!(e=t.__transition)||!(e=e[n]);)if(!(t=t.parentNode))throw new Error(`transition ${n} not found`);return e}he.prototype.interrupt=function(t){return this.each((function(){Vr(this,t)}))},he.prototype.transition=function(t){var n,e;t instanceof Ei?(n=t._id,t=t._name):(n=Ti(),(e=Ci).time=kr(),t=null==t?null:t+"");for(var r=this._groups,i=r.length,o=0;o<i;++o)for(var u,a=r[o],c=a.length,f=0;f<c;++f)(u=a[f])&&Lr(u,t,n,f,a,e||Ii(u,n));return new Ei(r,this._parents,t,n)};var ji=[null],Di=function(t,n){var e,r,i=t.__transition;if(i)for(r in n=null==n?null:n+"",i)if((e=i[r]).state>1&&e.name===n)return new Ei([[t]],ji,n,+r);return null},zi=t=>()=>t;function Fi(t,{sourceEvent:n,target:e,selection:r,mode:i,dispatch:o}){Object.defineProperties(this,{type:{value:t,enumerable:!0,configurable:!0},sourceEvent:{value:n,enumerable:!0,configurable:!0},target:{value:e,enumerable:!0,configurable:!0},selection:{value:r,enumerable:!0,configurable:!0},mode:{value:i,enumerable:!0,configurable:!0},_:{value:o}})}function Ri(t){t.stopImmediatePropagation()}var qi=function(t){t.preventDefault(),t.stopImmediatePropagation()},Li={name:"drag"},Ui={name:"space"},Bi={name:"handle"},Yi={name:"center"};const{abs:Hi,max:Vi,min:Xi}=Math;function Gi(t){return[+t[0],+t[1]]}function Wi(t){return[Gi(t[0]),Gi(t[1])]}var $i={name:"x",handles:["w","e"].map(ro),input:function(t,n){return null==t?null:[[+t[0],n[0][1]],[+t[1],n[1][1]]]},output:function(t){return t&&[t[0][0],t[1][0]]}},Zi={name:"y",handles:["n","s"].map(ro),input:function(t,n){return null==t?null:[[n[0][0],+t[0]],[n[1][0],+t[1]]]},output:function(t){return t&&[t[0][1],t[1][1]]}},Ki={name:"xy",handles:["n","w","e","s","nw","ne","sw","se"].map(ro),input:function(t){return null==t?null:Wi(t)},output:function(t){return t}},Qi={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"},Ji={e:"w",w:"e",nw:"ne",ne:"nw",se:"sw",sw:"se"},to={n:"s",s:"n",nw:"sw",ne:"se",se:"ne",sw:"nw"},no={overlay:1,selection:1,n:null,e:1,s:null,w:-1,nw:-1,ne:1,se:1,sw:-1},eo={overlay:1,selection:1,n:-1,e:null,s:1,w:null,nw:-1,ne:-1,se:1,sw:1};function ro(t){return{type:t}}function io(t){return!t.ctrlKey&&!t.button}function oo(){var t=this.ownerSVGElement||this;return t.hasAttribute("viewBox")?[[(t=t.viewBox.baseVal).x,t.y],[t.x+t.width,t.y+t.height]]:[[0,0],[t.width.baseVal.value,t.height.baseVal.value]]}function uo(){return navigator.maxTouchPoints||"ontouchstart"in this}function ao(t){for(;!t.__brush;)if(!(t=t.parentNode))return;return t.__brush}function co(t){return t[0][0]===t[1][0]||t[0][1]===t[1][1]}function fo(t){var n=t.__brush;return n?n.dim.output(n.selection):null}function so(){return po($i)}function lo(){return po(Zi)}var ho=function(){return po(Ki)};function po(t){var n,e=oo,r=io,i=uo,o=!0,u=Kt("start","brush","end"),a=6;function c(n){var e=n.property("__brush",v).selectAll(".overlay").data([ro("overlay")]);e.enter().append("rect").attr("class","overlay").attr("pointer-events","all").attr("cursor",Qi.overlay).merge(e).each((function(){var t=ao(this).extent;de(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([ro("selection")]).enter().append("rect").attr("class","selection").attr("cursor",Qi.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 Qi[t.type]})),n.each(f).attr("fill","none").attr("pointer-events","all").on("mousedown.brush",h).filter(i).on("touchstart.brush",h).on("touchmove.brush",d).on("touchend.brush touchcancel.brush",p).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function f(){var t=de(this),n=ao(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]-a/2:n[0][0]-a/2})).attr("y",(function(t){return"s"===t.type[0]?n[1][1]-a/2:n[0][1]-a/2})).attr("width",(function(t){return"n"===t.type||"s"===t.type?n[1][0]-n[0][0]+a:a})).attr("height",(function(t){return"e"===t.type||"w"===t.type?n[1][1]-n[0][1]+a:a}))):t.selectAll(".selection,.handle").style("display","none").attr("x",null).attr("y",null).attr("width",null).attr("height",null)}function s(t,n,e){var r=t.__brush.emitter;return!r||e&&r.clean?new l(t,n,e):r}function l(t,n,e){this.that=t,this.args=n,this.state=t.__brush,this.active=0,this.clean=e}function h(e){if((!n||e.touches)&&r.apply(this,arguments)){var i,u,a,c,l,h,d,p,v,g,y,_=this,b=e.target.__data__.type,m="selection"===(o&&e.metaKey?b="overlay":b)?Li:o&&e.altKey?Yi:Bi,x=t===Zi?null:no[b],w=t===$i?null:eo[b],M=ao(_),A=M.extent,E=M.selection,S=A[0][0],T=A[0][1],O=A[1][0],k=A[1][1],P=0,N=0,C=x&&w&&o&&e.shiftKey,I=Array.from(e.touches||[e],t=>{const n=t.identifier;return(t=mr(t,_)).point0=t.slice(),t.identifier=n,t});if("overlay"===b){E&&(v=!0);const n=[I[0],I[1]||I[0]];M.selection=E=[[i=t===Zi?S:Xi(n[0][0],n[1][0]),a=t===$i?T:Xi(n[0][1],n[1][1])],[l=t===Zi?O:Vi(n[0][0],n[1][0]),d=t===$i?k:Vi(n[0][1],n[1][1])]],I.length>1&&q()}else i=E[0][0],a=E[0][1],l=E[1][0],d=E[1][1];u=i,c=a,h=l,p=d;var j=de(_).attr("pointer-events","none"),D=j.selectAll(".overlay").attr("cursor",Qi[b]);Vr(_);var z=s(_,arguments,!0).beforestart();if(e.touches)z.moved=R,z.ended=L;else{var F=de(e.view).on("mousemove.brush",R,!0).on("mouseup.brush",L,!0);o&&F.on("keydown.brush",U,!0).on("keyup.brush",B,!0),ge(e.view)}f.call(_),z.start(e,m.name)}function R(t){for(const n of t.changedTouches||[t])for(const t of I)t.identifier===n.identifier&&(t.cur=mr(n,_));if(C&&!g&&!y&&1===I.length){const t=I[0];Hi(t.cur[0]-t[0])>Hi(t.cur[1]-t[1])?y=!0:g=!0}for(const t of I)t.cur&&(t[0]=t.cur[0],t[1]=t.cur[1]);v=!0,qi(t),q(t)}function q(t){const n=I[0],e=n.point0;var r;switch(P=n[0]-e[0],N=n[1]-e[1],m){case Ui:case Li:x&&(P=Vi(S-i,Xi(O-l,P)),u=i+P,h=l+P),w&&(N=Vi(T-a,Xi(k-d,N)),c=a+N,p=d+N);break;case Bi:I[1]?(x&&(u=Vi(S,Xi(O,I[0][0])),h=Vi(S,Xi(O,I[1][0])),x=1),w&&(c=Vi(T,Xi(k,I[0][1])),p=Vi(T,Xi(k,I[1][1])),w=1)):(x<0?(P=Vi(S-i,Xi(O-i,P)),u=i+P,h=l):x>0&&(P=Vi(S-l,Xi(O-l,P)),u=i,h=l+P),w<0?(N=Vi(T-a,Xi(k-a,N)),c=a+N,p=d):w>0&&(N=Vi(T-d,Xi(k-d,N)),c=a,p=d+N));break;case Yi:x&&(u=Vi(S,Xi(O,i-P*x)),h=Vi(S,Xi(O,l+P*x))),w&&(c=Vi(T,Xi(k,a-N*w)),p=Vi(T,Xi(k,d+N*w)))}h<u&&(x*=-1,r=i,i=l,l=r,r=u,u=h,h=r,b in Ji&&D.attr("cursor",Qi[b=Ji[b]])),p<c&&(w*=-1,r=a,a=d,d=r,r=c,c=p,p=r,b in to&&D.attr("cursor",Qi[b=to[b]])),M.selection&&(E=M.selection),g&&(u=E[0][0],h=E[1][0]),y&&(c=E[0][1],p=E[1][1]),E[0][0]===u&&E[0][1]===c&&E[1][0]===h&&E[1][1]===p||(M.selection=[[u,c],[h,p]],f.call(_),z.brush(t,m.name))}function L(t){if(Ri(t),t.touches){if(t.touches.length)return;n&&clearTimeout(n),n=setTimeout((function(){n=null}),500)}else ye(t.view,v),F.on("keydown.brush keyup.brush mousemove.brush mouseup.brush",null);j.attr("pointer-events","all"),D.attr("cursor",Qi.overlay),M.selection&&(E=M.selection),co(E)&&(M.selection=null,f.call(_)),z.end(t,m.name)}function U(t){switch(t.keyCode){case 16:C=x&&w;break;case 18:m===Bi&&(x&&(l=h-P*x,i=u+P*x),w&&(d=p-N*w,a=c+N*w),m=Yi,q());break;case 32:m!==Bi&&m!==Yi||(x<0?l=h-P:x>0&&(i=u-P),w<0?d=p-N:w>0&&(a=c-N),m=Ui,D.attr("cursor",Qi.selection),q());break;default:return}qi(t)}function B(t){switch(t.keyCode){case 16:C&&(g=y=C=!1,q());break;case 18:m===Yi&&(x<0?l=h:x>0&&(i=u),w<0?d=p:w>0&&(a=c),m=Bi,q());break;case 32:m===Ui&&(t.altKey?(x&&(l=h-P*x,i=u+P*x),w&&(d=p-N*w,a=c+N*w),m=Yi):(x<0?l=h:x>0&&(i=u),w<0?d=p:w>0&&(a=c),m=Bi),D.attr("cursor",Qi[b]),q());break;default:return}qi(t)}}function d(t){s(this,arguments).moved(t)}function p(t){s(this,arguments).ended(t)}function v(){var n=this.__brush||{selection:null};return n.extent=Wi(e.apply(this,arguments)),n.dim=t,n}return c.move=function(n,e){n.tween?n.on("start.brush",(function(t){s(this,arguments).beforestart().start(t)})).on("interrupt.brush end.brush",(function(t){s(this,arguments).end(t)})).tween("brush",(function(){var n=this,r=n.__brush,i=s(n,arguments),o=r.selection,u=t.input("function"==typeof e?e.apply(this,arguments):e,r.extent),a=_r(o,u);function c(t){r.selection=1===t&&null===u?null:a(t),f.call(n),i.brush()}return null!==o&&null!==u?c:c(1)})):n.each((function(){var n=this,r=arguments,i=n.__brush,o=t.input("function"==typeof e?e.apply(n,r):e,i.extent),u=s(n,r).beforestart();Vr(n),i.selection=null===o?null:o,f.call(n),u.start().brush().end()}))},c.clear=function(t){c.move(t,null)},l.prototype={beforestart:function(){return 1==++this.active&&(this.state.emitter=this,this.starting=!0),this},start:function(t,n){return this.starting?(this.starting=!1,this.emit("start",t,n)):this.emit("brush",t),this},brush:function(t,n){return this.emit("brush",t,n),this},end:function(t,n){return 0==--this.active&&(delete this.state.emitter,this.emit("end",t,n)),this},emit:function(n,e,r){var i=de(this.that).datum();u.call(n,this.that,new Fi(n,{sourceEvent:e,target:c,selection:t.output(this.state.selection),mode:r,dispatch:u}),i)}},c.extent=function(t){return arguments.length?(e="function"==typeof t?t:zi(Wi(t)),c):e},c.filter=function(t){return arguments.length?(r="function"==typeof t?t:zi(!!t),c):r},c.touchable=function(t){return arguments.length?(i="function"==typeof t?t:zi(!!t),c):i},c.handleSize=function(t){return arguments.length?(a=+t,c):a},c.keyModifiers=function(t){return arguments.length?(o=!!t,c):o},c.on=function(){var t=u.on.apply(u,arguments);return t===u?c:t},c}var vo=Math.abs,go=Math.cos,yo=Math.sin,_o=Math.PI,bo=_o/2,mo=2*_o,xo=Math.max;function wo(t,n){return Array.from({length:n-t},(n,e)=>t+e)}function Mo(t){return function(n,e){return t(n.source.value+n.target.value,e.source.value+e.target.value)}}var Ao=function(){return To(!1,!1)};function Eo(){return To(!1,!0)}function So(){return To(!0,!1)}function To(t,n){var e=0,r=null,i=null,o=null;function u(u){var a,c=u.length,f=new Array(c),s=wo(0,c),l=new Array(c*c),h=new Array(c),d=0;u=Float64Array.from({length:c*c},n?(t,n)=>u[n%c][n/c|0]:(t,n)=>u[n/c|0][n%c]);for(let n=0;n<c;++n){let e=0;for(let r=0;r<c;++r)e+=u[n*c+r]+t*u[r*c+n];d+=f[n]=e}a=(d=xo(0,mo-e*c)/d)?e:mo/c;{let n=0;r&&s.sort((t,n)=>r(f[t],f[n]));for(const e of s){const r=n;if(t){const t=wo(1+~c,c).filter(t=>t<0?u[~t*c+e]:u[e*c+t]);i&&t.sort((t,n)=>i(t<0?-u[~t*c+e]:u[e*c+t],n<0?-u[~n*c+e]:u[e*c+n]));for(const r of t)if(r<0){(l[~r*c+e]||(l[~r*c+e]={source:null,target:null})).target={index:e,startAngle:n,endAngle:n+=u[~r*c+e]*d,value:u[~r*c+e]}}else{(l[e*c+r]||(l[e*c+r]={source:null,target:null})).source={index:e,startAngle:n,endAngle:n+=u[e*c+r]*d,value:u[e*c+r]}}h[e]={index:e,startAngle:r,endAngle:n,value:f[e]}}else{const t=wo(0,c).filter(t=>u[e*c+t]||u[t*c+e]);i&&t.sort((t,n)=>i(u[e*c+t],u[e*c+n]));for(const r of t){let t;if(e<r?(t=l[e*c+r]||(l[e*c+r]={source:null,target:null}),t.source={index:e,startAngle:n,endAngle:n+=u[e*c+r]*d,value:u[e*c+r]}):(t=l[r*c+e]||(l[r*c+e]={source:null,target:null}),t.target={index:e,startAngle:n,endAngle:n+=u[e*c+r]*d,value:u[e*c+r]},e===r&&(t.source=t.target)),t.source&&t.target&&t.source.value<t.target.value){const n=t.source;t.source=t.target,t.target=n}}h[e]={index:e,startAngle:r,endAngle:n,value:f[e]}}n+=a}}return(l=Object.values(l)).groups=h,o?l.sort(o):l}return u.padAngle=function(t){return arguments.length?(e=xo(0,t),u):e},u.sortGroups=function(t){return arguments.length?(r=t,u):r},u.sortSubgroups=function(t){return arguments.length?(i=t,u):i},u.sortChords=function(t){return arguments.length?(null==t?o=null:(o=Mo(t))._=t,u):o&&o._},u}const Oo=Math.PI,ko=2*Oo,Po=ko-1e-6;function No(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function Co(){return new No}No.prototype=Co.prototype={constructor:No,moveTo:function(t,n){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+n)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(t,n){this._+="L"+(this._x1=+t)+","+(this._y1=+n)},quadraticCurveTo:function(t,n,e,r){this._+="Q"+ +t+","+ +n+","+(this._x1=+e)+","+(this._y1=+r)},bezierCurveTo:function(t,n,e,r,i,o){this._+="C"+ +t+","+ +n+","+ +e+","+ +r+","+(this._x1=+i)+","+(this._y1=+o)},arcTo:function(t,n,e,r,i){t=+t,n=+n,e=+e,r=+r,i=+i;var o=this._x1,u=this._y1,a=e-t,c=r-n,f=o-t,s=u-n,l=f*f+s*s;if(i<0)throw new Error("negative radius: "+i);if(null===this._x1)this._+="M"+(this._x1=t)+","+(this._y1=n);else if(l>1e-6)if(Math.abs(s*a-c*f)>1e-6&&i){var h=e-o,d=r-u,p=a*a+c*c,v=h*h+d*d,g=Math.sqrt(p),y=Math.sqrt(l),_=i*Math.tan((Oo-Math.acos((p+l-v)/(2*g*y)))/2),b=_/y,m=_/g;Math.abs(b-1)>1e-6&&(this._+="L"+(t+b*f)+","+(n+b*s)),this._+="A"+i+","+i+",0,0,"+ +(s*h>f*d)+","+(this._x1=t+m*a)+","+(this._y1=n+m*c)}else this._+="L"+(this._x1=t)+","+(this._y1=n);else;},arc:function(t,n,e,r,i,o){t=+t,n=+n,o=!!o;var u=(e=+e)*Math.cos(r),a=e*Math.sin(r),c=t+u,f=n+a,s=1^o,l=o?r-i:i-r;if(e<0)throw new Error("negative radius: "+e);null===this._x1?this._+="M"+c+","+f:(Math.abs(this._x1-c)>1e-6||Math.abs(this._y1-f)>1e-6)&&(this._+="L"+c+","+f),e&&(l<0&&(l=l%ko+ko),l>Po?this._+="A"+e+","+e+",0,1,"+s+","+(t-u)+","+(n-a)+"A"+e+","+e+",0,1,"+s+","+(this._x1=c)+","+(this._y1=f):l>1e-6&&(this._+="A"+e+","+e+",0,"+ +(l>=Oo)+","+s+","+(this._x1=t+e*Math.cos(i))+","+(this._y1=n+e*Math.sin(i))))},rect:function(t,n,e,r){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+n)+"h"+ +e+"v"+ +r+"h"+-e+"Z"},toString:function(){return this._}};var Io=Co,jo=Array.prototype.slice,Do=function(t){return function(){return t}};function zo(t){return t.source}function Fo(t){return t.target}function Ro(t){return t.radius}function qo(t){return t.startAngle}function Lo(t){return t.endAngle}function Uo(){return 0}function Bo(){return 10}function Yo(t){var n=zo,e=Fo,r=Ro,i=Ro,o=qo,u=Lo,a=Uo,c=null;function f(){var f,s=n.apply(this,arguments),l=e.apply(this,arguments),h=a.apply(this,arguments)/2,d=jo.call(arguments),p=+r.apply(this,(d[0]=s,d)),v=o.apply(this,d)-bo,g=u.apply(this,d)-bo,y=+i.apply(this,(d[0]=l,d)),_=o.apply(this,d)-bo,b=u.apply(this,d)-bo;if(c||(c=f=Io()),h>1e-12&&(vo(g-v)>2*h+1e-12?g>v?(v+=h,g-=h):(v-=h,g+=h):v=g=(v+g)/2,vo(b-_)>2*h+1e-12?b>_?(_+=h,b-=h):(_-=h,b+=h):_=b=(_+b)/2),c.moveTo(p*go(v),p*yo(v)),c.arc(0,0,p,v,g),v!==_||g!==b)if(t){var m=+t.apply(this,arguments),x=y-m,w=(_+b)/2;c.quadraticCurveTo(0,0,x*go(_),x*yo(_)),c.lineTo(y*go(w),y*yo(w)),c.lineTo(x*go(b),x*yo(b))}else c.quadraticCurveTo(0,0,y*go(_),y*yo(_)),c.arc(0,0,y,_,b);if(c.quadraticCurveTo(0,0,p*go(v),p*yo(v)),c.closePath(),f)return c=null,f+""||null}return t&&(f.headRadius=function(n){return arguments.length?(t="function"==typeof n?n:Do(+n),f):t}),f.radius=function(t){return arguments.length?(r=i="function"==typeof t?t:Do(+t),f):r},f.sourceRadius=function(t){return arguments.length?(r="function"==typeof t?t:Do(+t),f):r},f.targetRadius=function(t){return arguments.length?(i="function"==typeof t?t:Do(+t),f):i},f.startAngle=function(t){return arguments.length?(o="function"==typeof t?t:Do(+t),f):o},f.endAngle=function(t){return arguments.length?(u="function"==typeof t?t:Do(+t),f):u},f.padAngle=function(t){return arguments.length?(a="function"==typeof t?t:Do(+t),f):a},f.source=function(t){return arguments.length?(n=t,f):n},f.target=function(t){return arguments.length?(e=t,f):e},f.context=function(t){return arguments.length?(c=null==t?null:t,f):c},f}var Ho=function(){return Yo()};function Vo(){return Yo(Bo)}const Xo=Math.PI/180,Go=180/Math.PI;function Wo(t){if(t instanceof Ko)return new Ko(t.l,t.a,t.b,t.opacity);if(t instanceof ou)return uu(t);t instanceof qe||(t=Fe(t));var n,e,r=nu(t.r),i=nu(t.g),o=nu(t.b),u=Qo((.2225045*r+.7168786*i+.0606169*o)/1);return r===i&&i===o?n=e=u:(n=Qo((.4360747*r+.3850649*i+.1430804*o)/.96422),e=Qo((.0139322*r+.0971045*i+.7141733*o)/.82521)),new Ko(116*u-16,500*(n-u),200*(u-e),t.opacity)}function $o(t,n){return new Ko(t,0,0,null==n?1:n)}function Zo(t,n,e,r){return 1===arguments.length?Wo(t):new Ko(t,n,e,null==r?1:r)}function Ko(t,n,e,r){this.l=+t,this.a=+n,this.b=+e,this.opacity=+r}function Qo(t){return t>6/29*(6/29)*(6/29)?Math.pow(t,1/3):t/(6/29*3*(6/29))+4/29}function Jo(t){return t>6/29?t*t*t:6/29*3*(6/29)*(t-4/29)}function tu(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function nu(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function eu(t){if(t instanceof ou)return new ou(t.h,t.c,t.l,t.opacity);if(t instanceof Ko||(t=Wo(t)),0===t.a&&0===t.b)return new ou(NaN,0<t.l&&t.l<100?0:NaN,t.l,t.opacity);var n=Math.atan2(t.b,t.a)*Go;return new ou(n<0?n+360:n,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}function ru(t,n,e,r){return 1===arguments.length?eu(t):new ou(e,n,t,null==r?1:r)}function iu(t,n,e,r){return 1===arguments.length?eu(t):new ou(t,n,e,null==r?1:r)}function ou(t,n,e,r){this.h=+t,this.c=+n,this.l=+e,this.opacity=+r}function uu(t){if(isNaN(t.h))return new Ko(t.l,0,0,t.opacity);var n=t.h*Xo;return new Ko(t.l,Math.cos(n)*t.c,Math.sin(n)*t.c,t.opacity)}_e(Ko,Zo,be(me,{brighter:function(t){return new Ko(this.l+18*(null==t?1:t),this.a,this.b,this.opacity)},darker:function(t){return new Ko(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 qe(tu(3.1338561*(n=.96422*Jo(n))-1.6168667*(t=1*Jo(t))-.4906146*(e=.82521*Jo(e))),tu(-.9787684*n+1.9161415*t+.033454*e),tu(.0719453*n-.2289914*t+1.4052427*e),this.opacity)}})),_e(ou,iu,be(me,{brighter:function(t){return new ou(this.h,this.c,this.l+18*(null==t?1:t),this.opacity)},darker:function(t){return new ou(this.h,this.c,this.l-18*(null==t?1:t),this.opacity)},rgb:function(){return uu(this).rgb()}}));var au=-.29227,cu=-1.7884503806,fu=3.5172982438,su=-.6557636667999999;function lu(t){if(t instanceof du)return new du(t.h,t.s,t.l,t.opacity);t instanceof qe||(t=Fe(t));var n=t.r/255,e=t.g/255,r=t.b/255,i=(su*r+cu*n-fu*e)/(su+cu-fu),o=r-i,u=(1.97294*(e-i)-au*o)/-.90649,a=Math.sqrt(u*u+o*o)/(1.97294*i*(1-i)),c=a?Math.atan2(u,o)*Go-120:NaN;return new du(c<0?c+360:c,a,i,t.opacity)}function hu(t,n,e,r){return 1===arguments.length?lu(t):new du(t,n,e,null==r?1:r)}function du(t,n,e,r){this.h=+t,this.s=+n,this.l=+e,this.opacity=+r}_e(du,hu,be(me,{brighter:function(t){return t=null==t?1/.7:Math.pow(1/.7,t),new du(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new du(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=isNaN(this.h)?0:(this.h+120)*Xo,n=+this.l,e=isNaN(this.s)?0:this.s*n*(1-n),r=Math.cos(t),i=Math.sin(t);return new qe(255*(n+e*(-.14861*r+1.78277*i)),255*(n+e*(au*r+-.90649*i)),255*(n+e*(1.97294*r)),this.opacity)}}));var pu=Array.prototype.slice,vu=function(t,n){return t-n},gu=t=>()=>t,yu=function(t,n){for(var e,r=-1,i=n.length;++r<i;)if(e=_u(t,n[r]))return e;return 0};function _u(t,n){for(var e=n[0],r=n[1],i=-1,o=0,u=t.length,a=u-1;o<u;a=o++){var c=t[o],f=c[0],s=c[1],l=t[a],h=l[0],d=l[1];if(bu(c,l,n))return 0;s>r!=d>r&&e<(h-f)*(r-s)/(d-s)+f&&(i=-i)}return i}function bu(t,n,e){var r,i,o,u;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],u=n[r],i<=o&&o<=u||u<=o&&o<=i)}var mu=function(){},xu=[[],[[[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]]],[]],wu=function(){var t=1,n=1,e=Y,r=a;function i(t){var n=e(t);if(Array.isArray(n))n=n.slice().sort(vu);else{var r=x(t),i=r[0],u=r[1];n=U(i,u,n),n=at(Math.floor(i/n)*n,Math.floor(u/n)*n,n)}return n.map((function(n){return o(t,n)}))}function o(e,i){var o=[],a=[];return function(e,r,i){var o,a,c,f,s,l,h=new Array,d=new Array;o=a=-1,f=e[0]>=r,xu[f<<1].forEach(p);for(;++o<t-1;)c=f,f=e[o+1]>=r,xu[c|f<<1].forEach(p);xu[f<<0].forEach(p);for(;++a<n-1;){for(o=-1,f=e[a*t+t]>=r,s=e[a*t]>=r,xu[f<<1|s<<2].forEach(p);++o<t-1;)c=f,f=e[a*t+t+o+1]>=r,l=s,s=e[a*t+o+1]>=r,xu[c|f<<1|s<<2|l<<3].forEach(p);xu[f|s<<3].forEach(p)}o=-1,s=e[a*t]>=r,xu[s<<2].forEach(p);for(;++o<t-1;)l=s,s=e[a*t+o+1]>=r,xu[s<<2|l<<3].forEach(p);function p(t){var n,e,r=[t[0][0]+o,t[0][1]+a],c=[t[1][0]+o,t[1][1]+a],f=u(r),s=u(c);(n=d[f])?(e=h[s])?(delete d[n.end],delete h[e.start],n===e?(n.ring.push(c),i(n.ring)):h[n.start]=d[e.end]={start:n.start,end:e.end,ring:n.ring.concat(e.ring)}):(delete d[n.end],n.ring.push(c),d[n.end=s]=n):(n=h[s])?(e=d[f])?(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=f]=n):h[f]=d[s]={start:f,end:s,ring:[r,c]}}xu[s<<3].forEach(p)}(e,i,(function(t){r(t,e,i),function(t){for(var n=0,e=t.length,r=t[e-1][1]*t[0][0]-t[e-1][0]*t[0][1];++n<e;)r+=t[n-1][1]*t[n][0]-t[n-1][0]*t[n][1];return r}(t)>0?o.push([t]):a.push(t)})),a.forEach((function(t){for(var n,e=0,r=o.length;e<r;++e)if(-1!==yu((n=o[e])[0],t))return void n.push(t)})),{type:"MultiPolygon",value:i,coordinates:o}}function u(n){return 2*n[0]+n[1]*(t+1)*4}function a(e,r,i){e.forEach((function(e){var o,u=e[0],a=e[1],c=0|u,f=0|a,s=r[f*t+c];u>0&&u<t&&c===u&&(o=r[f*t+c-1],e[0]=u+(i-o)/(s-o)-.5),a>0&&a<n&&f===a&&(o=r[(f-1)*t+c],e[1]=a+(i-o)/(s-o)-.5)}))}return i.contour=o,i.size=function(e){if(!arguments.length)return[t,n];var r=Math.floor(e[0]),o=Math.floor(e[1]);if(!(r>=0&&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)?gu(pu.call(t)):gu(t),i):e},i.smooth=function(t){return arguments.length?(r=t?a:mu,i):r===a},i};function Mu(t,n,e){for(var r=t.width,i=t.height,o=1+(e<<1),u=0;u<i;++u)for(var a=0,c=0;a<r+e;++a)a<r&&(c+=t.data[a+u*r]),a>=e&&(a>=o&&(c-=t.data[a-o+u*r]),n.data[a-e+u*r]=c/Math.min(a+1,r-1+o-a,o))}function Au(t,n,e){for(var r=t.width,i=t.height,o=1+(e<<1),u=0;u<r;++u)for(var a=0,c=0;a<i+e;++a)a<i&&(c+=t.data[u+a*r]),a>=e&&(a>=o&&(c-=t.data[u+(a-o)*r]),n.data[u+(a-e)*r]=c/Math.min(a+1,i-1+o-a,o))}function Eu(t){return t[0]}function Su(t){return t[1]}function Tu(){return 1}var Ou=function(){var t=Eu,n=Su,e=Tu,r=960,i=500,o=20,u=2,a=3*o,c=r+2*a>>u,f=i+2*a>>u,s=gu(20);function l(r){var i=new Float32Array(c*f),l=new Float32Array(c*f);r.forEach((function(r,o,s){var l=+t(r,o,s)+a>>u,h=+n(r,o,s)+a>>u,d=+e(r,o,s);l>=0&&l<c&&h>=0&&h<f&&(i[l+h*c]+=d)})),Mu({width:c,height:f,data:i},{width:c,height:f,data:l},o>>u),Au({width:c,height:f,data:l},{width:c,height:f,data:i},o>>u),Mu({width:c,height:f,data:i},{width:c,height:f,data:l},o>>u),Au({width:c,height:f,data:l},{width:c,height:f,data:i},o>>u),Mu({width:c,height:f,data:i},{width:c,height:f,data:l},o>>u),Au({width:c,height:f,data:l},{width:c,height:f,data:i},o>>u);var d=s(i);if(!Array.isArray(d)){var p=V(i);d=U(0,p,d),(d=at(0,Math.floor(p/d)*d,d)).shift()}return wu().thresholds(d).size([c,f])(i).map(h)}function h(t){return t.value*=Math.pow(2,-2*u),t.coordinates.forEach(d),t}function d(t){t.forEach(p)}function p(t){t.forEach(v)}function v(t){t[0]=t[0]*Math.pow(2,u)-a,t[1]=t[1]*Math.pow(2,u)-a}function g(){return c=r+2*(a=3*o)>>u,f=i+2*a>>u,l}return l.x=function(n){return arguments.length?(t="function"==typeof n?n:gu(+n),l):t},l.y=function(t){return arguments.length?(n="function"==typeof t?t:gu(+t),l):n},l.weight=function(t){return arguments.length?(e="function"==typeof t?t:gu(+t),l):e},l.size=function(t){if(!arguments.length)return[r,i];var n=+t[0],e=+t[1];if(!(n>=0&&e>=0))throw new Error("invalid size");return r=n,i=e,g()},l.cellSize=function(t){if(!arguments.length)return 1<<u;if(!((t=+t)>=1))throw new Error("invalid cell size");return u=Math.floor(Math.log(t)/Math.LN2),g()},l.thresholds=function(t){return arguments.length?(s="function"==typeof t?t:Array.isArray(t)?gu(pu.call(t)):gu(t),l):s},l.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),g()},l};const ku=Math.pow(2,-52),Pu=new Uint32Array(512);class Nu{static from(t,n=qu,e=Lu){const r=t.length,i=new Float64Array(2*r);for(let o=0;o<r;o++){const r=t[o];i[2*o]=n(r),i[2*o+1]=e(r)}return new Nu(i)}constructor(t){const n=t.length>>1;if(n>0&&"number"!=typeof t[0])throw new Error("Expected coords to contain numbers.");this.coords=t;const e=Math.max(2*n-5,0);this._triangles=new Uint32Array(3*e),this._halfedges=new Int32Array(3*e),this._hashSize=Math.ceil(Math.sqrt(n)),this._hullPrev=new Uint32Array(n),this._hullNext=new Uint32Array(n),this._hullTri=new Uint32Array(n),this._hullHash=new Int32Array(this._hashSize).fill(-1),this._ids=new Uint32Array(n),this._dists=new Float64Array(n),this.update()}update(){const{coords:t,_hullPrev:n,_hullNext:e,_hullTri:r,_hullHash:i}=this,o=t.length>>1;let u=1/0,a=1/0,c=-1/0,f=-1/0;for(let n=0;n<o;n++){const e=t[2*n],r=t[2*n+1];e<u&&(u=e),r<a&&(a=r),e>c&&(c=e),r>f&&(f=r),this._ids[n]=n}const s=(u+c)/2,l=(a+f)/2;let h,d,p,v=1/0;for(let n=0;n<o;n++){const e=Cu(s,l,t[2*n],t[2*n+1]);e<v&&(h=n,v=e)}const g=t[2*h],y=t[2*h+1];v=1/0;for(let n=0;n<o;n++){if(n===h)continue;const e=Cu(g,y,t[2*n],t[2*n+1]);e<v&&e>0&&(d=n,v=e)}let _=t[2*d],b=t[2*d+1],m=1/0;for(let n=0;n<o;n++){if(n===h||n===d)continue;const e=zu(g,y,_,b,t[2*n],t[2*n+1]);e<m&&(p=n,m=e)}let x=t[2*p],w=t[2*p+1];if(m===1/0){for(let n=0;n<o;n++)this._dists[n]=t[2*n]-t[0]||t[2*n+1]-t[1];Fu(this._ids,this._dists,0,o-1);const n=new Uint32Array(o);let e=0;for(let t=0,r=-1/0;t<o;t++){const i=this._ids[t];this._dists[i]>r&&(n[e++]=i,r=this._dists[i])}return this.hull=n.subarray(0,e),this.triangles=new Uint32Array(0),void(this.halfedges=new Uint32Array(0))}if(ju(g,y,_,b,x,w)){const t=d,n=_,e=b;d=p,_=x,b=w,p=t,x=n,w=e}const M=function(t,n,e,r,i,o){const u=e-t,a=r-n,c=i-t,f=o-n,s=u*u+a*a,l=c*c+f*f,h=.5/(u*f-a*c);return{x:t+(f*s-a*l)*h,y:n+(u*l-c*s)*h}}(g,y,_,b,x,w);this._cx=M.x,this._cy=M.y;for(let n=0;n<o;n++)this._dists[n]=Cu(t[2*n],t[2*n+1],M.x,M.y);Fu(this._ids,this._dists,0,o-1),this._hullStart=h;let A=3;e[h]=n[p]=d,e[d]=n[h]=p,e[p]=n[d]=h,r[h]=0,r[d]=1,r[p]=2,i.fill(-1),i[this._hashKey(g,y)]=h,i[this._hashKey(_,b)]=d,i[this._hashKey(x,w)]=p,this.trianglesLen=0,this._addTriangle(h,d,p,-1,-1,-1);for(let o,u,a=0;a<this._ids.length;a++){const c=this._ids[a],f=t[2*c],s=t[2*c+1];if(a>0&&Math.abs(f-o)<=ku&&Math.abs(s-u)<=ku)continue;if(o=f,u=s,c===h||c===d||c===p)continue;let l=0;for(let t=0,n=this._hashKey(f,s);t<this._hashSize&&(l=i[(n+t)%this._hashSize],-1===l||l===e[l]);t++);l=n[l];let v,g=l;for(;v=e[g],!ju(f,s,t[2*g],t[2*g+1],t[2*v],t[2*v+1]);)if(g=v,g===l){g=-1;break}if(-1===g)continue;let y=this._addTriangle(g,c,e[g],-1,-1,r[g]);r[c]=this._legalize(y+2),r[g]=y,A++;let _=e[g];for(;v=e[_],ju(f,s,t[2*_],t[2*_+1],t[2*v],t[2*v+1]);)y=this._addTriangle(_,c,v,r[c],-1,r[_]),r[c]=this._legalize(y+2),e[_]=_,A--,_=v;if(g===l)for(;v=n[g],ju(f,s,t[2*v],t[2*v+1],t[2*g],t[2*g+1]);)y=this._addTriangle(v,c,g,-1,r[g],r[v]),this._legalize(y+2),r[v]=y,e[g]=g,A--,g=v;this._hullStart=n[c]=g,e[g]=n[_]=c,e[c]=_,i[this._hashKey(f,s)]=c,i[this._hashKey(t[2*g],t[2*g+1])]=g}this.hull=new Uint32Array(A);for(let t=0,n=this._hullStart;t<A;t++)this.hull[t]=n,n=e[n];this.triangles=this._triangles.subarray(0,this.trianglesLen),this.halfedges=this._halfedges.subarray(0,this.trianglesLen)}_hashKey(t,n){return Math.floor(function(t,n){const e=t/(Math.abs(t)+Math.abs(n));return(n>0?3-e:1+e)/4}(t-this._cx,n-this._cy)*this._hashSize)%this._hashSize}_legalize(t){const{_triangles:n,_halfedges:e,coords:r}=this;let i=0,o=0;for(;;){const u=e[t],a=t-t%3;if(o=a+(t+2)%3,-1===u){if(0===i)break;t=Pu[--i];continue}const c=u-u%3,f=a+(t+1)%3,s=c+(u+2)%3,l=n[o],h=n[t],d=n[f],p=n[s];if(Du(r[2*l],r[2*l+1],r[2*h],r[2*h+1],r[2*d],r[2*d+1],r[2*p],r[2*p+1])){n[t]=p,n[u]=l;const r=e[s];if(-1===r){let n=this._hullStart;do{if(this._hullTri[n]===s){this._hullTri[n]=t;break}n=this._hullPrev[n]}while(n!==this._hullStart)}this._link(t,r),this._link(u,e[o]),this._link(o,s);const a=c+(u+1)%3;i<Pu.length&&(Pu[i++]=a)}else{if(0===i)break;t=Pu[--i]}}return o}_link(t,n){this._halfedges[t]=n,-1!==n&&(this._halfedges[n]=t)}_addTriangle(t,n,e,r,i,o){const u=this.trianglesLen;return this._triangles[u]=t,this._triangles[u+1]=n,this._triangles[u+2]=e,this._link(u,r),this._link(u+1,i),this._link(u+2,o),this.trianglesLen+=3,u}}function Cu(t,n,e,r){const i=t-e,o=n-r;return i*i+o*o}function Iu(t,n,e,r,i,o){const u=(r-n)*(i-t),a=(e-t)*(o-n);return Math.abs(u-a)>=33306690738754716e-32*Math.abs(u+a)?u-a:0}function ju(t,n,e,r,i,o){return(Iu(i,o,t,n,e,r)||Iu(t,n,e,r,i,o)||Iu(e,r,i,o,t,n))<0}function Du(t,n,e,r,i,o,u,a){const c=t-u,f=n-a,s=e-u,l=r-a,h=i-u,d=o-a,p=s*s+l*l,v=h*h+d*d;return c*(l*v-p*d)-f*(s*v-p*h)+(c*c+f*f)*(s*d-l*h)<0}function zu(t,n,e,r,i,o){const u=e-t,a=r-n,c=i-t,f=o-n,s=u*u+a*a,l=c*c+f*f,h=.5/(u*f-a*c),d=(f*s-a*l)*h,p=(u*l-c*s)*h;return d*d+p*p}function Fu(t,n,e,r){if(r-e<=20)for(let i=e+1;i<=r;i++){const r=t[i],o=n[r];let u=i-1;for(;u>=e&&n[t[u]]>o;)t[u+1]=t[u--];t[u+1]=r}else{let i=e+1,o=r;Ru(t,e+r>>1,i),n[t[e]]>n[t[r]]&&Ru(t,e,r),n[t[i]]>n[t[r]]&&Ru(t,i,r),n[t[e]]>n[t[i]]&&Ru(t,e,i);const u=t[i],a=n[u];for(;;){do{i++}while(n[t[i]]<a);do{o--}while(n[t[o]]>a);if(o<i)break;Ru(t,i,o)}t[e+1]=t[o],t[o]=u,r-i+1>=o-e?(Fu(t,n,i,r),Fu(t,n,e,o-1)):(Fu(t,n,e,o-1),Fu(t,n,i,r))}}function Ru(t,n,e){const r=t[n];t[n]=t[e],t[e]=r}function qu(t){return t[0]}function Lu(t){return t[1]}class Uu{constructor(){this._x0=this._y0=this._x1=this._y1=null,this._=""}moveTo(t,n){this._+=`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}`}closePath(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")}lineTo(t,n){this._+=`L${this._x1=+t},${this._y1=+n}`}arc(t,n,e){const r=(t=+t)+(e=+e),i=n=+n;if(e<0)throw new Error("negative radius");null===this._x1?this._+=`M${r},${i}`:(Math.abs(this._x1-r)>1e-6||Math.abs(this._y1-i)>1e-6)&&(this._+="L"+r+","+i),e&&(this._+=`A${e},${e},0,1,1,${t-e},${n}A${e},${e},0,1,1,${this._x1=r},${this._y1=i}`)}rect(t,n,e,r){this._+=`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}h${+e}v${+r}h${-e}Z`}value(){return this._||null}}class Bu{constructor(){this._=[]}moveTo(t,n){this._.push([t,n])}closePath(){this._.push(this._[0].slice())}lineTo(t,n){this._.push([t,n])}value(){return this._.length?this._:null}}class Yu{constructor(t,[n,e,r,i]=[0,0,960,500]){if(!((r=+r)>=(n=+n)&&(i=+i)>=(e=+e)))throw new Error("invalid bounds");this.delaunay=t,this._circumcenters=new Float64Array(2*t.points.length),this.vectors=new Float64Array(2*t.points.length),this.xmax=r,this.xmin=n,this.ymax=i,this.ymin=e,this._init()}update(){return this.delaunay.update(),this._init(),this}_init(){const{delaunay:{points:t,hull:n,triangles:e},vectors:r}=this,i=this.circumcenters=this._circumcenters.subarray(0,e.length/3*2);for(let n,r,o=0,u=0,a=e.length;o<a;o+=3,u+=2){const a=2*e[o],c=2*e[o+1],f=2*e[o+2],s=t[a],l=t[a+1],h=t[c],d=t[c+1],p=t[f],v=t[f+1],g=h-s,y=d-l,_=p-s,b=v-l,m=g*g+y*y,x=_*_+b*b,w=2*(g*b-y*_);if(w)if(Math.abs(w)<1e-8)n=(s+p)/2,r=(l+v)/2;else{const t=1/w;n=s+(b*m-y*x)*t,r=l+(g*x-_*m)*t}else n=(s+p)/2-1e8*b,r=(l+v)/2+1e8*_;i[u]=n,i[u+1]=r}let o,u,a,c=n[n.length-1],f=4*c,s=t[2*c],l=t[2*c+1];r.fill(0);for(let e=0;e<n.length;++e)c=n[e],o=f,u=s,a=l,f=4*c,s=t[2*c],l=t[2*c+1],r[o+2]=r[f]=a-l,r[o+3]=r[f+1]=s-u}render(t){const n=null==t?t=new Uu:void 0,{delaunay:{halfedges:e,inedges:r,hull:i},circumcenters:o,vectors:u}=this;if(i.length<=1)return null;for(let n=0,r=e.length;n<r;++n){const r=e[n];if(r<n)continue;const i=2*Math.floor(n/3),u=2*Math.floor(r/3),a=o[i],c=o[i+1],f=o[u],s=o[u+1];this._renderSegment(a,c,f,s,t)}let a,c=i[i.length-1];for(let n=0;n<i.length;++n){a=c,c=i[n];const e=2*Math.floor(r[c]/3),f=o[e],s=o[e+1],l=4*a,h=this._project(f,s,u[l+2],u[l+3]);h&&this._renderSegment(f,s,h[0],h[1],t)}return n&&n.value()}renderBounds(t){const n=null==t?t=new Uu:void 0;return t.rect(this.xmin,this.ymin,this.xmax-this.xmin,this.ymax-this.ymin),n&&n.value()}renderCell(t,n){const e=null==n?n=new Uu:void 0,r=this._clip(t);if(null===r||!r.length)return;n.moveTo(r[0],r[1]);let i=r.length;for(;r[0]===r[i-2]&&r[1]===r[i-1]&&i>1;)i-=2;for(let t=2;t<i;t+=2)r[t]===r[t-2]&&r[t+1]===r[t-1]||n.lineTo(r[t],r[t+1]);return n.closePath(),e&&e.value()}*cellPolygons(){const{delaunay:{points:t}}=this;for(let n=0,e=t.length/2;n<e;++n){const t=this.cellPolygon(n);t&&(t.index=n,yield t)}}cellPolygon(t){const n=new Bu;return this.renderCell(t,n),n.value()}_renderSegment(t,n,e,r,i){let o;const u=this._regioncode(t,n),a=this._regioncode(e,r);0===u&&0===a?(i.moveTo(t,n),i.lineTo(e,r)):(o=this._clipSegment(t,n,e,r,u,a))&&(i.moveTo(o[0],o[1]),i.lineTo(o[2],o[3]))}contains(t,n,e){return(n=+n)==n&&(e=+e)==e&&this.delaunay._step(t,n,e)===t}*neighbors(t){const n=this._clip(t);if(n)for(const e of this.delaunay.neighbors(t)){const t=this._clip(e);if(t)t:for(let r=0,i=n.length;r<i;r+=2)for(let o=0,u=t.length;o<u;o+=2)if(n[r]==t[o]&&n[r+1]==t[o+1]&&n[(r+2)%i]==t[(o+u-2)%u]&&n[(r+3)%i]==t[(o+u-1)%u]){yield e;break t}}}_cell(t){const{circumcenters:n,delaunay:{inedges:e,halfedges:r,triangles:i}}=this,o=e[t];if(-1===o)return null;const u=[];let a=o;do{const e=Math.floor(a/3);if(u.push(n[2*e],n[2*e+1]),a=a%3==2?a-2:a+1,i[a]!==t)break;a=r[a]}while(a!==o&&-1!==a);return u}_clip(t){if(0===t&&1===this.delaunay.hull.length)return[this.xmax,this.ymin,this.xmax,this.ymax,this.xmin,this.ymax,this.xmin,this.ymin];const n=this._cell(t);if(null===n)return null;const{vectors:e}=this,r=4*t;return e[r]||e[r+1]?this._clipInfinite(t,n,e[r],e[r+1],e[r+2],e[r+3]):this._clipFinite(t,n)}_clipFinite(t,n){const e=n.length;let r,i,o,u,a,c=null,f=n[e-2],s=n[e-1],l=this._regioncode(f,s);for(let h=0;h<e;h+=2)if(r=f,i=s,f=n[h],s=n[h+1],o=l,l=this._regioncode(f,s),0===o&&0===l)u=a,a=0,c?c.push(f,s):c=[f,s];else{let n,e,h,d,p;if(0===o){if(null===(n=this._clipSegment(r,i,f,s,o,l)))continue;[e,h,d,p]=n}else{if(null===(n=this._clipSegment(f,s,r,i,l,o)))continue;[d,p,e,h]=n,u=a,a=this._edgecode(e,h),u&&a&&this._edge(t,u,a,c,c.length),c?c.push(e,h):c=[e,h]}u=a,a=this._edgecode(d,p),u&&a&&this._edge(t,u,a,c,c.length),c?c.push(d,p):c=[d,p]}if(c)u=a,a=this._edgecode(c[0],c[1]),u&&a&&this._edge(t,u,a,c,c.length);else if(this.contains(t,(this.xmin+this.xmax)/2,(this.ymin+this.ymax)/2))return[this.xmax,this.ymin,this.xmax,this.ymax,this.xmin,this.ymax,this.xmin,this.ymin];return c}_clipSegment(t,n,e,r,i,o){for(;;){if(0===i&&0===o)return[t,n,e,r];if(i&o)return null;let u,a,c=i||o;8&c?(u=t+(e-t)*(this.ymax-n)/(r-n),a=this.ymax):4&c?(u=t+(e-t)*(this.ymin-n)/(r-n),a=this.ymin):2&c?(a=n+(r-n)*(this.xmax-t)/(e-t),u=this.xmax):(a=n+(r-n)*(this.xmin-t)/(e-t),u=this.xmin),i?(t=u,n=a,i=this._regioncode(t,n)):(e=u,r=a,o=this._regioncode(e,r))}}_clipInfinite(t,n,e,r,i,o){let u,a=Array.from(n);if((u=this._project(a[0],a[1],e,r))&&a.unshift(u[0],u[1]),(u=this._project(a[a.length-2],a[a.length-1],i,o))&&a.push(u[0],u[1]),a=this._clipFinite(t,a))for(let n,e=0,r=a.length,i=this._edgecode(a[r-2],a[r-1]);e<r;e+=2)n=i,i=this._edgecode(a[e],a[e+1]),n&&i&&(e=this._edge(t,n,i,a,e),r=a.length);else this.contains(t,(this.xmin+this.xmax)/2,(this.ymin+this.ymax)/2)&&(a=[this.xmin,this.ymin,this.xmax,this.ymin,this.xmax,this.ymax,this.xmin,this.ymax]);return a}_edge(t,n,e,r,i){for(;n!==e;){let e,o;switch(n){case 5:n=4;continue;case 4:n=6,e=this.xmax,o=this.ymin;break;case 6:n=2;continue;case 2:n=10,e=this.xmax,o=this.ymax;break;case 10:n=8;continue;case 8:n=9,e=this.xmin,o=this.ymax;break;case 9:n=1;continue;case 1:n=5,e=this.xmin,o=this.ymin}r[i]===e&&r[i+1]===o||!this.contains(t,e,o)||(r.splice(i,0,e,o),i+=2)}if(r.length>4)for(let t=0;t<r.length;t+=2){const n=(t+2)%r.length,e=(t+4)%r.length;(r[t]===r[n]&&r[n]===r[e]||r[t+1]===r[n+1]&&r[n+1]===r[e+1])&&(r.splice(n,2),t-=2)}return i}_project(t,n,e,r){let i,o,u,a=1/0;if(r<0){if(n<=this.ymin)return null;(i=(this.ymin-n)/r)<a&&(u=this.ymin,o=t+(a=i)*e)}else if(r>0){if(n>=this.ymax)return null;(i=(this.ymax-n)/r)<a&&(u=this.ymax,o=t+(a=i)*e)}if(e>0){if(t>=this.xmax)return null;(i=(this.xmax-t)/e)<a&&(o=this.xmax,u=n+(a=i)*r)}else if(e<0){if(t<=this.xmin)return null;(i=(this.xmin-t)/e)<a&&(o=this.xmin,u=n+(a=i)*r)}return[o,u]}_edgecode(t,n){return(t===this.xmin?1:t===this.xmax?2:0)|(n===this.ymin?4:n===this.ymax?8:0)}_regioncode(t,n){return(t<this.xmin?1:t>this.xmax?2:0)|(n<this.ymin?4:n>this.ymax?8:0)}}const Hu=2*Math.PI,Vu=Math.pow;function Xu(t){return t[0]}function Gu(t){return t[1]}function Wu(t,n,e){return[t+Math.sin(t+n)*e,n+Math.cos(t-n)*e]}class $u{static from(t,n=Xu,e=Gu,r){return new $u("length"in t?function(t,n,e,r){const i=t.length,o=new Float64Array(2*i);for(let u=0;u<i;++u){const i=t[u];o[2*u]=n.call(r,i,u,t),o[2*u+1]=e.call(r,i,u,t)}return o}(t,n,e,r):Float64Array.from(function*(t,n,e,r){let i=0;for(const o of t)yield n.call(r,o,i,t),yield e.call(r,o,i,t),++i}(t,n,e,r)))}constructor(t){this._delaunator=new Nu(t),this.inedges=new Int32Array(t.length/2),this._hullIndex=new Int32Array(t.length/2),this.points=this._delaunator.coords,this._init()}update(){return this._delaunator.update(),this._init(),this}_init(){const t=this._delaunator,n=this.points;if(t.hull&&t.hull.length>2&&function(t){const{triangles:n,coords:e}=t;for(let t=0;t<n.length;t+=3){const r=2*n[t],i=2*n[t+1],o=2*n[t+2];if((e[o]-e[r])*(e[i+1]-e[r+1])-(e[i]-e[r])*(e[o+1]-e[r+1])>1e-10)return!1}return!0}(t)){this.collinear=Int32Array.from({length:n.length/2},(t,n)=>n).sort((t,e)=>n[2*t]-n[2*e]||n[2*t+1]-n[2*e+1]);const t=this.collinear[0],e=this.collinear[this.collinear.length-1],r=[n[2*t],n[2*t+1],n[2*e],n[2*e+1]],i=1e-8*Math.hypot(r[3]-r[1],r[2]-r[0]);for(let t=0,e=n.length/2;t<e;++t){const e=Wu(n[2*t],n[2*t+1],i);n[2*t]=e[0],n[2*t+1]=e[1]}this._delaunator=new Nu(n)}else delete this.collinear;const e=this.halfedges=this._delaunator.halfedges,r=this.hull=this._delaunator.hull,i=this.triangles=this._delaunator.triangles,o=this.inedges.fill(-1),u=this._hullIndex.fill(-1);for(let t=0,n=e.length;t<n;++t){const n=i[t%3==2?t-2:t+1];-1!==e[t]&&-1!==o[n]||(o[n]=t)}for(let t=0,n=r.length;t<n;++t)u[r[t]]=t;r.length<=2&&r.length>0&&(this.triangles=new Int32Array(3).fill(-1),this.halfedges=new Int32Array(3).fill(-1),this.triangles[0]=r[0],this.triangles[1]=r[1],this.triangles[2]=r[1],o[r[0]]=1,2===r.length&&(o[r[1]]=0))}voronoi(t){return new Yu(this,t)}*neighbors(t){const{inedges:n,hull:e,_hullIndex:r,halfedges:i,triangles:o,collinear:u}=this;if(u){const n=u.indexOf(t);return n>0&&(yield u[n-1]),void(n<u.length-1&&(yield u[n+1]))}const a=n[t];if(-1===a)return;let c=a,f=-1;do{if(yield f=o[c],c=c%3==2?c-2:c+1,o[c]!==t)return;if(c=i[c],-1===c){const n=e[(r[t]+1)%e.length];return void(n!==f&&(yield n))}}while(c!==a)}find(t,n,e=0){if((t=+t)!=t||(n=+n)!=n)return-1;const r=e;let i;for(;(i=this._step(e,t,n))>=0&&i!==e&&i!==r;)e=i;return i}_step(t,n,e){const{inedges:r,hull:i,_hullIndex:o,halfedges:u,triangles:a,points:c}=this;if(-1===r[t]||!c.length)return(t+1)%(c.length>>1);let f=t,s=Vu(n-c[2*t],2)+Vu(e-c[2*t+1],2);const l=r[t];let h=l;do{let r=a[h];const l=Vu(n-c[2*r],2)+Vu(e-c[2*r+1],2);if(l<s&&(s=l,f=r),h=h%3==2?h-2:h+1,a[h]!==t)break;if(h=u[h],-1===h){if(h=i[(o[t]+1)%i.length],h!==r&&Vu(n-c[2*h],2)+Vu(e-c[2*h+1],2)<s)return h;break}}while(h!==l);return f}render(t){const n=null==t?t=new Uu:void 0,{points:e,halfedges:r,triangles:i}=this;for(let n=0,o=r.length;n<o;++n){const o=r[n];if(o<n)continue;const u=2*i[n],a=2*i[o];t.moveTo(e[u],e[u+1]),t.lineTo(e[a],e[a+1])}return this.renderHull(t),n&&n.value()}renderPoints(t,n=2){const e=null==t?t=new Uu:void 0,{points:r}=this;for(let e=0,i=r.length;e<i;e+=2){const i=r[e],o=r[e+1];t.moveTo(i+n,o),t.arc(i,o,n,0,Hu)}return e&&e.value()}renderHull(t){const n=null==t?t=new Uu:void 0,{hull:e,points:r}=this,i=2*e[0],o=e.length;t.moveTo(r[i],r[i+1]);for(let n=1;n<o;++n){const i=2*e[n];t.lineTo(r[i],r[i+1])}return t.closePath(),n&&n.value()}hullPolygon(){const t=new Bu;return this.renderHull(t),t.value()}renderTriangle(t,n){const e=null==n?n=new Uu:void 0,{points:r,triangles:i}=this,o=2*i[t*=3],u=2*i[t+1],a=2*i[t+2];return n.moveTo(r[o],r[o+1]),n.lineTo(r[u],r[u+1]),n.lineTo(r[a],r[a+1]),n.closePath(),e&&e.value()}*trianglePolygons(){const{triangles:t}=this;for(let n=0,e=t.length/3;n<e;++n)yield this.trianglePolygon(n)}trianglePolygon(t){const n=new Bu;return this.renderTriangle(t,n),n.value()}}var Zu=t=>()=>t;function Ku(t,{sourceEvent:n,subject:e,target:r,identifier:i,active:o,x:u,y:a,dx:c,dy:f,dispatch:s}){Object.defineProperties(this,{type:{value:t,enumerable:!0,configurable:!0},sourceEvent:{value:n,enumerable:!0,configurable:!0},subject:{value:e,enumerable:!0,configurable:!0},target:{value:r,enumerable:!0,configurable:!0},identifier:{value:i,enumerable:!0,configurable:!0},active:{value:o,enumerable:!0,configurable:!0},x:{value:u,enumerable:!0,configurable:!0},y:{value:a,enumerable:!0,configurable:!0},dx:{value:c,enumerable:!0,configurable:!0},dy:{value:f,enumerable:!0,configurable:!0},_:{value:s}})}function Qu(t){return!t.ctrlKey&&!t.button}function Ju(){return this.parentNode}function ta(t,n){return null==n?{x:t.x,y:t.y}:n}function na(){return navigator.maxTouchPoints||"ontouchstart"in this}Ku.prototype.on=function(){var t=this._.on.apply(this._,arguments);return t===this._?this:t};var ea=function(){var t,n,e,r,i=Qu,o=Ju,u=ta,a=na,c={},f=Kt("start","drag","end"),s=0,l=0;function h(t){t.on("mousedown.drag",d).filter(a).on("touchstart.drag",g).on("touchmove.drag",y).on("touchend.drag touchcancel.drag",_).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function d(u,a){if(!r&&i.call(this,u,a)){var c=b(this,o.call(this,u,a),u,a,"mouse");c&&(de(u.view).on("mousemove.drag",p,!0).on("mouseup.drag",v,!0),ge(u.view),pe(u),e=!1,t=u.clientX,n=u.clientY,c("start",u))}}function p(r){if(ve(r),!e){var i=r.clientX-t,o=r.clientY-n;e=i*i+o*o>l}c.mouse("drag",r)}function v(t){de(t.view).on("mousemove.drag mouseup.drag",null),ye(t.view,e),ve(t),c.mouse("end",t)}function g(t,n){if(i.call(this,t,n)){var e,r,u=t.changedTouches,a=o.call(this,t,n),c=u.length;for(e=0;e<c;++e)(r=b(this,a,t,n,u[e].identifier,u[e]))&&(pe(t),r("start",t,u[e]))}}function y(t){var n,e,r=t.changedTouches,i=r.length;for(n=0;n<i;++n)(e=c[r[n].identifier])&&(ve(t),e("drag",t,r[n]))}function _(t){var n,e,i=t.changedTouches,o=i.length;for(r&&clearTimeout(r),r=setTimeout((function(){r=null}),500),n=0;n<o;++n)(e=c[i[n].identifier])&&(pe(t),e("end",t,i[n]))}function b(t,n,e,r,i,o){var a,l,d,p=f.copy(),v=mr(o||e,n);if(null!=(d=u.call(t,new Ku("beforestart",{sourceEvent:e,target:h,identifier:i,active:s,x:v[0],y:v[1],dx:0,dy:0,dispatch:p}),r)))return a=d.x-v[0]||0,l=d.y-v[1]||0,function e(o,u,f){var g,y=v;switch(o){case"start":c[i]=e,g=s++;break;case"end":delete c[i],--s;case"drag":v=mr(f||u,n),g=s}p.call(o,t,new Ku(o,{sourceEvent:u,subject:d,target:h,identifier:i,active:g,x:v[0]+a,y:v[1]+l,dx:v[0]-y[0],dy:v[1]-y[1],dispatch:p}),r)}}return h.filter=function(t){return arguments.length?(i="function"==typeof t?t:Zu(!!t),h):i},h.container=function(t){return arguments.length?(o="function"==typeof t?t:Zu(t),h):o},h.subject=function(t){return arguments.length?(u="function"==typeof t?t:Zu(t),h):u},h.touchable=function(t){return arguments.length?(a="function"==typeof t?t:Zu(!!t),h):a},h.on=function(){var t=f.on.apply(f,arguments);return t===f?h:t},h.clickDistance=function(t){return arguments.length?(l=(t=+t)*t,h):Math.sqrt(l)},h},ra={},ia={};function oa(t){return new Function("d","return {"+t.map((function(t,n){return JSON.stringify(t)+": d["+n+'] || ""'})).join(",")+"}")}function ua(t){var n=Object.create(null),e=[];return t.forEach((function(t){for(var r in t)r in n||e.push(n[r]=r)})),e}function aa(t,n){var e=t+"",r=e.length;return r<n?new Array(n-r+1).join(0)+e:e}function ca(t){var n,e=t.getUTCHours(),r=t.getUTCMinutes(),i=t.getUTCSeconds(),o=t.getUTCMilliseconds();return isNaN(t)?"Invalid Date":((n=t.getUTCFullYear())<0?"-"+aa(-n,6):n>9999?"+"+aa(n,6):aa(n,4))+"-"+aa(t.getUTCMonth()+1,2)+"-"+aa(t.getUTCDate(),2)+(o?"T"+aa(e,2)+":"+aa(r,2)+":"+aa(i,2)+"."+aa(o,3)+"Z":i?"T"+aa(e,2)+":"+aa(r,2)+":"+aa(i,2)+"Z":r||e?"T"+aa(e,2)+":"+aa(r,2)+"Z":"")}var fa=function(t){var n=new RegExp('["'+t+"\n\r]"),e=t.charCodeAt(0);function r(t,n){var r,i=[],o=t.length,u=0,a=0,c=o<=0,f=!1;function s(){if(c)return ia;if(f)return f=!1,ra;var n,r,i=u;if(34===t.charCodeAt(i)){for(;u++<o&&34!==t.charCodeAt(u)||34===t.charCodeAt(++u););return(n=u)>=o?c=!0:10===(r=t.charCodeAt(u++))?f=!0:13===r&&(f=!0,10===t.charCodeAt(u)&&++u),t.slice(i+1,n-1).replace(/""/g,'"')}for(;u<o;){if(10===(r=t.charCodeAt(n=u++)))f=!0;else if(13===r)f=!0,10===t.charCodeAt(u)&&++u;else if(r!==e)continue;return t.slice(i,n)}return c=!0,t.slice(i,o)}for(10===t.charCodeAt(o-1)&&--o,13===t.charCodeAt(o-1)&&--o;(r=s())!==ia;){for(var l=[];r!==ra&&r!==ia;)l.push(r),r=s();n&&null==(l=n(l,a++))||i.push(l)}return i}function i(n,e){return n.map((function(n){return e.map((function(t){return u(n[t])})).join(t)}))}function o(n){return n.map(u).join(t)}function u(t){return null==t?"":t instanceof Date?ca(t):n.test(t+="")?'"'+t.replace(/"/g,'""')+'"':t}return{parse:function(t,n){var e,i,o=r(t,(function(t,r){if(e)return e(t,r-1);i=t,e=n?function(t,n){var e=oa(t);return function(r,i){return n(e(r),i,t)}}(t,n):oa(t)}));return o.columns=i||[],o},parseRows:r,format:function(n,e){return null==e&&(e=ua(n)),[e.map(u).join(t)].concat(i(n,e)).join("\n")},formatBody:function(t,n){return null==n&&(n=ua(t)),i(t,n).join("\n")},formatRows:function(t){return t.map(o).join("\n")},formatRow:o,formatValue:u}},sa=fa(","),la=sa.parse,ha=sa.parseRows,da=sa.format,pa=sa.formatBody,va=sa.formatRows,ga=sa.formatRow,ya=sa.formatValue,_a=fa("\t"),ba=_a.parse,ma=_a.parseRows,xa=_a.format,wa=_a.formatBody,Ma=_a.formatRows,Aa=_a.formatRow,Ea=_a.formatValue;function Sa(t){for(var n in t){var e,r,i=t[n].trim();if(i)if("true"===i)i=!0;else if("false"===i)i=!1;else if("NaN"===i)i=NaN;else if(isNaN(e=+i)){if(!(r=i.match(/^([-+]\d{2})?\d{4}(-\d{2}(-\d{2})?)?(T\d{2}:\d{2}(:\d{2}(\.\d{3})?)?(Z|[-+]\d{2}:\d{2})?)?$/)))continue;Ta&&r[4]&&!r[7]&&(i=i.replace(/-/g,"/").replace(/T/," ")),i=new Date(i)}else i=e;else i=null;t[n]=i}return t}const Ta=new Date("2019-01-01T00:00").getHours()||new Date("2019-07-01T00:00").getHours(),Oa=t=>+t;function ka(t){return t*t}function Pa(t){return t*(2-t)}function Na(t){return((t*=2)<=1?t*t:--t*(2-t)+1)/2}var Ca=function t(n){function e(t){return Math.pow(t,n)}return n=+n,e.exponent=t,e}(3),Ia=function t(n){function e(t){return 1-Math.pow(1-t,n)}return n=+n,e.exponent=t,e}(3),ja=function t(n){function e(t){return((t*=2)<=1?Math.pow(t,n):2-Math.pow(2-t,n))/2}return n=+n,e.exponent=t,e}(3),Da=Math.PI,za=Da/2;function Fa(t){return 1==+t?1:1-Math.cos(t*za)}function Ra(t){return Math.sin(t*za)}function qa(t){return(1-Math.cos(Da*t))/2}function La(t){return 1.0009775171065494*(Math.pow(2,-10*t)-.0009765625)}function Ua(t){return La(1-+t)}function Ba(t){return 1-La(t)}function Ya(t){return((t*=2)<=1?La(1-t):2-La(t-1))/2}function Ha(t){return 1-Math.sqrt(1-t*t)}function Va(t){return Math.sqrt(1- --t*t)}function Xa(t){return((t*=2)<=1?1-Math.sqrt(1-t*t):Math.sqrt(1-(t-=2)*t)+1)/2}function Ga(t){return 1-Wa(1-t)}function Wa(t){return(t=+t)<4/11?7.5625*t*t:t<8/11?7.5625*(t-=6/11)*t+3/4:t<10/11?7.5625*(t-=9/11)*t+15/16:7.5625*(t-=21/22)*t+63/64}function $a(t){return((t*=2)<=1?1-Wa(1-t):Wa(t-1)+1)/2}var Za=function t(n){function e(t){return(t=+t)*t*(n*(t-1)+t)}return n=+n,e.overshoot=t,e}(1.70158),Ka=function t(n){function e(t){return--t*t*((t+1)*n+t)+1}return n=+n,e.overshoot=t,e}(1.70158),Qa=function t(n){function e(t){return((t*=2)<1?t*t*((n+1)*t-n):(t-=2)*t*((n+1)*t+n)+2)/2}return n=+n,e.overshoot=t,e}(1.70158),Ja=2*Math.PI,tc=function t(n,e){var r=Math.asin(1/(n=Math.max(1,n)))*(e/=Ja);function i(t){return n*La(- --t)*Math.sin((r-t)/e)}return i.amplitude=function(n){return t(n,e*Ja)},i.period=function(e){return t(n,e)},i}(1,.3),nc=function t(n,e){var r=Math.asin(1/(n=Math.max(1,n)))*(e/=Ja);function i(t){return 1-n*La(t=+t)*Math.sin((t+r)/e)}return i.amplitude=function(n){return t(n,e*Ja)},i.period=function(e){return t(n,e)},i}(1,.3),ec=function t(n,e){var r=Math.asin(1/(n=Math.max(1,n)))*(e/=Ja);function i(t){return((t=2*t-1)<0?n*La(-t)*Math.sin((r-t)/e):2-n*La(t)*Math.sin((r+t)/e))/2}return i.amplitude=function(n){return t(n,e*Ja)},i.period=function(e){return t(n,e)},i}(1,.3);function rc(t){if(!t.ok)throw new Error(t.status+" "+t.statusText);return t.blob()}var ic=function(t,n){return fetch(t,n).then(rc)};function oc(t){if(!t.ok)throw new Error(t.status+" "+t.statusText);return t.arrayBuffer()}var uc=function(t,n){return fetch(t,n).then(oc)};function ac(t){if(!t.ok)throw new Error(t.status+" "+t.statusText);return t.text()}var cc=function(t,n){return fetch(t,n).then(ac)};function fc(t){return function(n,e,r){return 2===arguments.length&&"function"==typeof e&&(r=e,e=void 0),cc(n,e).then((function(n){return t(n,r)}))}}function sc(t,n,e,r){3===arguments.length&&"function"==typeof e&&(r=e,e=void 0);var i=fa(t);return cc(n,e).then((function(t){return i.parse(t,r)}))}var lc=fc(la),hc=fc(ba),dc=function(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 pc(t){if(!t.ok)throw new Error(t.status+" "+t.statusText);if(204!==t.status&&205!==t.status)return t.json()}var vc=function(t,n){return fetch(t,n).then(pc)};function gc(t){return(n,e)=>cc(n,e).then(n=>(new DOMParser).parseFromString(n,t))}var yc=gc("application/xml"),_c=gc("text/html"),bc=gc("image/svg+xml"),mc=function(t,n){var e,r=1;function i(){var i,o,u=e.length,a=0,c=0;for(i=0;i<u;++i)a+=(o=e[i]).x,c+=o.y;for(a=(a/u-t)*r,c=(c/u-n)*r,i=0;i<u;++i)(o=e[i]).x-=a,o.y-=c}return null==t&&(t=0),null==n&&(n=0),i.initialize=function(t){e=t},i.x=function(n){return arguments.length?(t=+n,i):t},i.y=function(t){return arguments.length?(n=+t,i):n},i.strength=function(t){return arguments.length?(r=+t,i):r},i};function xc(t,n,e,r){if(isNaN(n)||isNaN(e))return t;var i,o,u,a,c,f,s,l,h,d=t._root,p={data:r},v=t._x0,g=t._y0,y=t._x1,_=t._y1;if(!d)return t._root=p,t;for(;d.length;)if((f=n>=(o=(v+y)/2))?v=o:y=o,(s=e>=(u=(g+_)/2))?g=u:_=u,i=d,!(d=d[l=s<<1|f]))return i[l]=p,t;if(a=+t._x.call(null,d.data),c=+t._y.call(null,d.data),n===a&&e===c)return p.next=d,i?i[l]=p:t._root=p,t;do{i=i?i[l]=new Array(4):t._root=new Array(4),(f=n>=(o=(v+y)/2))?v=o:y=o,(s=e>=(u=(g+_)/2))?g=u:_=u}while((l=s<<1|f)==(h=(c>=u)<<1|a>=o));return i[h]=d,i[l]=p,t}var wc=function(t,n,e,r,i){this.node=t,this.x0=n,this.y0=e,this.x1=r,this.y1=i};function Mc(t){return t[0]}function Ac(t){return t[1]}function Ec(t,n,e){var r=new Sc(null==n?Mc:n,null==e?Ac:e,NaN,NaN,NaN,NaN);return null==t?r:r.addAll(t)}function Sc(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 Tc(t){for(var n={data:t.data},e=n;t=t.next;)e=e.next={data:t.data};return n}var Oc=Ec.prototype=Sc.prototype;Oc.copy=function(){var t,n,e=new Sc(this._x,this._y,this._x0,this._y0,this._x1,this._y1),r=this._root;if(!r)return e;if(!r.length)return e._root=Tc(r),e;for(t=[{source:r,target:e._root=new Array(4)}];r=t.pop();)for(var i=0;i<4;++i)(n=r.source[i])&&(n.length?t.push({source:n,target:r.target[i]=new Array(4)}):r.target[i]=Tc(n));return e},Oc.add=function(t){const n=+this._x.call(null,t),e=+this._y.call(null,t);return xc(this.cover(n,e),n,e,t)},Oc.addAll=function(t){var n,e,r,i,o=t.length,u=new Array(o),a=new Array(o),c=1/0,f=1/0,s=-1/0,l=-1/0;for(e=0;e<o;++e)isNaN(r=+this._x.call(null,n=t[e]))||isNaN(i=+this._y.call(null,n))||(u[e]=r,a[e]=i,r<c&&(c=r),r>s&&(s=r),i<f&&(f=i),i>l&&(l=i));if(c>s||f>l)return this;for(this.cover(c,f).cover(s,l),e=0;e<o;++e)xc(this,u[e],a[e],t[e]);return this},Oc.cover=function(t,n){if(isNaN(t=+t)||isNaN(n=+n))return this;var e=this._x0,r=this._y0,i=this._x1,o=this._y1;if(isNaN(e))i=(e=Math.floor(t))+1,o=(r=Math.floor(n))+1;else{for(var u,a,c=i-e||1,f=this._root;e>t||t>=i||r>n||n>=o;)switch(a=(n<r)<<1|t<e,(u=new Array(4))[a]=f,f=u,c*=2,a){case 0:i=e+c,o=r+c;break;case 1:e=i-c,o=r+c;break;case 2:i=e+c,r=o-c;break;case 3:e=i-c,r=o-c}this._root&&this._root.length&&(this._root=f)}return this._x0=e,this._y0=r,this._x1=i,this._y1=o,this},Oc.data=function(){var t=[];return this.visit((function(n){if(!n.length)do{t.push(n.data)}while(n=n.next)})),t},Oc.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]]},Oc.find=function(t,n,e){var r,i,o,u,a,c,f,s=this._x0,l=this._y0,h=this._x1,d=this._y1,p=[],v=this._root;for(v&&p.push(new wc(v,s,l,h,d)),null==e?e=1/0:(s=t-e,l=n-e,h=t+e,d=n+e,e*=e);c=p.pop();)if(!(!(v=c.node)||(i=c.x0)>h||(o=c.y0)>d||(u=c.x1)<s||(a=c.y1)<l))if(v.length){var g=(i+u)/2,y=(o+a)/2;p.push(new wc(v[3],g,y,u,a),new wc(v[2],i,y,g,a),new wc(v[1],g,o,u,y),new wc(v[0],i,o,g,y)),(f=(n>=y)<<1|t>=g)&&(c=p[p.length-1],p[p.length-1]=p[p.length-1-f],p[p.length-1-f]=c)}else{var _=t-+this._x.call(null,v.data),b=n-+this._y.call(null,v.data),m=_*_+b*b;if(m<e){var x=Math.sqrt(e=m);s=t-x,l=n-x,h=t+x,d=n+x,r=v.data}}return r},Oc.remove=function(t){if(isNaN(o=+this._x.call(null,t))||isNaN(u=+this._y.call(null,t)))return this;var n,e,r,i,o,u,a,c,f,s,l,h,d=this._root,p=this._x0,v=this._y0,g=this._x1,y=this._y1;if(!d)return this;if(d.length)for(;;){if((f=o>=(a=(p+g)/2))?p=a:g=a,(s=u>=(c=(v+y)/2))?v=c:y=c,n=d,!(d=d[l=s<<1|f]))return this;if(!d.length)break;(n[l+1&3]||n[l+2&3]||n[l+3&3])&&(e=n,h=l)}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[l]=i:delete n[l],(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)},Oc.removeAll=function(t){for(var n=0,e=t.length;n<e;++n)this.remove(t[n]);return this},Oc.root=function(){return this._root},Oc.size=function(){var t=0;return this.visit((function(n){if(!n.length)do{++t}while(n=n.next)})),t},Oc.visit=function(t){var n,e,r,i,o,u,a=[],c=this._root;for(c&&a.push(new wc(c,this._x0,this._y0,this._x1,this._y1));n=a.pop();)if(!t(c=n.node,r=n.x0,i=n.y0,o=n.x1,u=n.y1)&&c.length){var f=(r+o)/2,s=(i+u)/2;(e=c[3])&&a.push(new wc(e,f,s,o,u)),(e=c[2])&&a.push(new wc(e,r,s,f,u)),(e=c[1])&&a.push(new wc(e,f,i,o,s)),(e=c[0])&&a.push(new wc(e,r,i,f,s))}return this},Oc.visitAfter=function(t){var n,e=[],r=[];for(this._root&&e.push(new wc(this._root,this._x0,this._y0,this._x1,this._y1));n=e.pop();){var i=n.node;if(i.length){var o,u=n.x0,a=n.y0,c=n.x1,f=n.y1,s=(u+c)/2,l=(a+f)/2;(o=i[0])&&e.push(new wc(o,u,a,s,l)),(o=i[1])&&e.push(new wc(o,s,a,c,l)),(o=i[2])&&e.push(new wc(o,u,l,s,f)),(o=i[3])&&e.push(new wc(o,s,l,c,f))}r.push(n)}for(;n=r.pop();)t(n.node,n.x0,n.y0,n.x1,n.y1);return this},Oc.x=function(t){return arguments.length?(this._x=t,this):this._x},Oc.y=function(t){return arguments.length?(this._y=t,this):this._y};var kc=function(t){return function(){return t}},Pc=function(t){return 1e-6*(t()-.5)};function Nc(t){return t.x+t.vx}function Cc(t){return t.y+t.vy}var Ic=function(t){var n,e,r,i=1,o=1;function u(){for(var t,u,c,f,s,l,h,d=n.length,p=0;p<o;++p)for(u=Ec(n,Nc,Cc).visitAfter(a),t=0;t<d;++t)c=n[t],l=e[c.index],h=l*l,f=c.x+c.vx,s=c.y+c.vy,u.visit(v);function v(t,n,e,o,u){var a=t.data,d=t.r,p=l+d;if(!a)return n>f+p||o<f-p||e>s+p||u<s-p;if(a.index>c.index){var v=f-a.x-a.vx,g=s-a.y-a.vy,y=v*v+g*g;y<p*p&&(0===v&&(y+=(v=Pc(r))*v),0===g&&(y+=(g=Pc(r))*g),y=(p-(y=Math.sqrt(y)))/y*i,c.vx+=(v*=y)*(p=(d*=d)/(h+d)),c.vy+=(g*=y)*p,a.vx-=v*(p=1-p),a.vy-=g*p)}}}function a(t){if(t.data)return t.r=e[t.data.index];for(var n=t.r=0;n<4;++n)t[n]&&t[n].r>t.r&&(t.r=t[n].r)}function c(){if(n){var r,i,o=n.length;for(e=new Array(o),r=0;r<o;++r)i=n[r],e[i.index]=+t(i,r,n)}}return"function"!=typeof t&&(t=kc(null==t?1:+t)),u.initialize=function(t,e){n=t,r=e,c()},u.iterations=function(t){return arguments.length?(o=+t,u):o},u.strength=function(t){return arguments.length?(i=+t,u):i},u.radius=function(n){return arguments.length?(t="function"==typeof n?n:kc(+n),c(),u):t},u};function jc(t){return t.index}function Dc(t,n){var e=t.get(n);if(!e)throw new Error("node not found: "+n);return e}var zc=function(t){var n,e,r,i,o,u,a=jc,c=function(t){return 1/Math.min(i[t.source.index],i[t.target.index])},f=kc(30),s=1;function l(r){for(var i=0,a=t.length;i<s;++i)for(var c,f,l,h,d,p,v,g=0;g<a;++g)f=(c=t[g]).source,h=(l=c.target).x+l.vx-f.x-f.vx||Pc(u),d=l.y+l.vy-f.y-f.vy||Pc(u),h*=p=((p=Math.sqrt(h*h+d*d))-e[g])/p*r*n[g],d*=p,l.vx-=h*(v=o[g]),l.vy-=d*v,f.vx+=h*(v=1-v),f.vy+=d*v}function h(){if(r){var u,c,f=r.length,s=t.length,l=new Map(r.map((t,n)=>[a(t,n,r),t]));for(u=0,i=new Array(f);u<s;++u)(c=t[u]).index=u,"object"!=typeof c.source&&(c.source=Dc(l,c.source)),"object"!=typeof c.target&&(c.target=Dc(l,c.target)),i[c.source.index]=(i[c.source.index]||0)+1,i[c.target.index]=(i[c.target.index]||0)+1;for(u=0,o=new Array(s);u<s;++u)c=t[u],o[u]=i[c.source.index]/(i[c.source.index]+i[c.target.index]);n=new Array(s),d(),e=new Array(s),p()}}function d(){if(r)for(var e=0,i=t.length;e<i;++e)n[e]=+c(t[e],e,t)}function p(){if(r)for(var n=0,i=t.length;n<i;++n)e[n]=+f(t[n],n,t)}return null==t&&(t=[]),l.initialize=function(t,n){r=t,u=n,h()},l.links=function(n){return arguments.length?(t=n,h(),l):t},l.id=function(t){return arguments.length?(a=t,l):a},l.iterations=function(t){return arguments.length?(s=+t,l):s},l.strength=function(t){return arguments.length?(c="function"==typeof t?t:kc(+t),d(),l):c},l.distance=function(t){return arguments.length?(f="function"==typeof t?t:kc(+t),p(),l):f},l};function Fc(t){return t.x}function Rc(t){return t.y}var qc=Math.PI*(3-Math.sqrt(5)),Lc=function(t){var n,e=1,r=.001,i=1-Math.pow(r,1/300),o=0,u=.6,a=new Map,c=Cr(l),f=Kt("tick","end"),s=function(){let t=1;return()=>(t=(1664525*t+1013904223)%4294967296)/4294967296}();function l(){h(),f.call("tick",n),e<r&&(c.stop(),f.call("end",n))}function h(r){var c,f,s=t.length;void 0===r&&(r=1);for(var l=0;l<r;++l)for(e+=(o-e)*i,a.forEach((function(t){t(e)})),c=0;c<s;++c)null==(f=t[c]).fx?f.x+=f.vx*=u:(f.x=f.fx,f.vx=0),null==f.fy?f.y+=f.vy*=u:(f.y=f.fy,f.vy=0);return n}function d(){for(var n,e=0,r=t.length;e<r;++e){if((n=t[e]).index=e,null!=n.fx&&(n.x=n.fx),null!=n.fy&&(n.y=n.fy),isNaN(n.x)||isNaN(n.y)){var i=10*Math.sqrt(.5+e),o=e*qc;n.x=i*Math.cos(o),n.y=i*Math.sin(o)}(isNaN(n.vx)||isNaN(n.vy))&&(n.vx=n.vy=0)}}function p(n){return n.initialize&&n.initialize(t,s),n}return null==t&&(t=[]),d(),n={tick:h,restart:function(){return c.restart(l),n},stop:function(){return c.stop(),n},nodes:function(e){return arguments.length?(t=e,d(),a.forEach(p),n):t},alpha:function(t){return arguments.length?(e=+t,n):e},alphaMin:function(t){return arguments.length?(r=+t,n):r},alphaDecay:function(t){return arguments.length?(i=+t,n):+i},alphaTarget:function(t){return arguments.length?(o=+t,n):o},velocityDecay:function(t){return arguments.length?(u=1-t,n):1-u},randomSource:function(t){return arguments.length?(s=t,a.forEach(p),n):s},force:function(t,e){return arguments.length>1?(null==e?a.delete(t):a.set(t,p(e)),n):a.get(t)},find:function(n,e,r){var i,o,u,a,c,f=0,s=t.length;for(null==r?r=1/0:r*=r,f=0;f<s;++f)(u=(i=n-(a=t[f]).x)*i+(o=e-a.y)*o)<r&&(c=a,r=u);return c},on:function(t,e){return arguments.length>1?(f.on(t,e),n):f.on(t)}}},Uc=function(){var t,n,e,r,i,o=kc(-30),u=1,a=1/0,c=.81;function f(e){var i,o=t.length,u=Ec(t,Fc,Rc).visitAfter(l);for(r=e,i=0;i<o;++i)n=t[i],u.visit(h)}function s(){if(t){var n,e,r=t.length;for(i=new Array(r),n=0;n<r;++n)e=t[n],i[e.index]=+o(e,n,t)}}function l(t){var n,e,r,o,u,a=0,c=0;if(t.length){for(r=o=u=0;u<4;++u)(n=t[u])&&(e=Math.abs(n.value))&&(a+=n.value,c+=e,r+=e*n.x,o+=e*n.y);t.x=r/c,t.y=o/c}else{(n=t).x=n.data.x,n.y=n.data.y;do{a+=i[n.data.index]}while(n=n.next)}t.value=a}function h(t,o,f,s){if(!t.value)return!0;var l=t.x-n.x,h=t.y-n.y,d=s-o,p=l*l+h*h;if(d*d/c<p)return p<a&&(0===l&&(p+=(l=Pc(e))*l),0===h&&(p+=(h=Pc(e))*h),p<u&&(p=Math.sqrt(u*p)),n.vx+=l*t.value*r/p,n.vy+=h*t.value*r/p),!0;if(!(t.length||p>=a)){(t.data!==n||t.next)&&(0===l&&(p+=(l=Pc(e))*l),0===h&&(p+=(h=Pc(e))*h),p<u&&(p=Math.sqrt(u*p)));do{t.data!==n&&(d=i[t.data.index]*r/p,n.vx+=l*d,n.vy+=h*d)}while(t=t.next)}}return f.initialize=function(n,r){t=n,e=r,s()},f.strength=function(t){return arguments.length?(o="function"==typeof t?t:kc(+t),s(),f):o},f.distanceMin=function(t){return arguments.length?(u=t*t,f):Math.sqrt(u)},f.distanceMax=function(t){return arguments.length?(a=t*t,f):Math.sqrt(a)},f.theta=function(t){return arguments.length?(c=t*t,f):Math.sqrt(c)},f},Bc=function(t,n,e){var r,i,o,u=kc(.1);function a(t){for(var u=0,a=r.length;u<a;++u){var c=r[u],f=c.x-n||1e-6,s=c.y-e||1e-6,l=Math.sqrt(f*f+s*s),h=(o[u]-l)*i[u]*t/l;c.vx+=f*h,c.vy+=s*h}}function c(){if(r){var n,e=r.length;for(i=new Array(e),o=new Array(e),n=0;n<e;++n)o[n]=+t(r[n],n,r),i[n]=isNaN(o[n])?0:+u(r[n],n,r)}}return"function"!=typeof t&&(t=kc(+t)),null==n&&(n=0),null==e&&(e=0),a.initialize=function(t){r=t,c()},a.strength=function(t){return arguments.length?(u="function"==typeof t?t:kc(+t),c(),a):u},a.radius=function(n){return arguments.length?(t="function"==typeof n?n:kc(+n),c(),a):t},a.x=function(t){return arguments.length?(n=+t,a):n},a.y=function(t){return arguments.length?(e=+t,a):e},a},Yc=function(t){var n,e,r,i=kc(.1);function o(t){for(var i,o=0,u=n.length;o<u;++o)(i=n[o]).vx+=(r[o]-i.x)*e[o]*t}function u(){if(n){var o,u=n.length;for(e=new Array(u),r=new Array(u),o=0;o<u;++o)e[o]=isNaN(r[o]=+t(n[o],o,n))?0:+i(n[o],o,n)}}return"function"!=typeof t&&(t=kc(null==t?0:+t)),o.initialize=function(t){n=t,u()},o.strength=function(t){return arguments.length?(i="function"==typeof t?t:kc(+t),u(),o):i},o.x=function(n){return arguments.length?(t="function"==typeof n?n:kc(+n),u(),o):t},o},Hc=function(t){var n,e,r,i=kc(.1);function o(t){for(var i,o=0,u=n.length;o<u;++o)(i=n[o]).vy+=(r[o]-i.y)*e[o]*t}function u(){if(n){var o,u=n.length;for(e=new Array(u),r=new Array(u),o=0;o<u;++o)e[o]=isNaN(r[o]=+t(n[o],o,n))?0:+i(n[o],o,n)}}return"function"!=typeof t&&(t=kc(null==t?0:+t)),o.initialize=function(t){n=t,u()},o.strength=function(t){return arguments.length?(i="function"==typeof t?t:kc(+t),u(),o):i},o.y=function(n){return arguments.length?(t="function"==typeof n?n:kc(+n),u(),o):t},o};function Vc(t,n){if((e=(t=n?t.toExponential(n-1):t.toExponential()).indexOf("e"))<0)return null;var e,r=t.slice(0,e);return[r.length>1?r[0]+r.slice(2):r,+t.slice(e+1)]}var Xc=function(t){return(t=Vc(Math.abs(t)))?t[1]:NaN},Gc=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Wc(t){if(!(n=Gc.exec(t)))throw new Error("invalid format: "+t);var n;return new $c({fill:n[1],align:n[2],sign:n[3],symbol:n[4],zero:n[5],width:n[6],comma:n[7],precision:n[8]&&n[8].slice(1),trim:n[9],type:n[10]})}function $c(t){this.fill=void 0===t.fill?" ":t.fill+"",this.align=void 0===t.align?">":t.align+"",this.sign=void 0===t.sign?"-":t.sign+"",this.symbol=void 0===t.symbol?"":t.symbol+"",this.zero=!!t.zero,this.width=void 0===t.width?void 0:+t.width,this.comma=!!t.comma,this.precision=void 0===t.precision?void 0:+t.precision,this.trim=!!t.trim,this.type=void 0===t.type?"":t.type+""}Wc.prototype=$c.prototype,$c.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};var Zc,Kc,Qc,Jc,tf=function(t,n){var e=Vc(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")},nf={"%":(t,n)=>(100*t).toFixed(n),b:t=>Math.round(t).toString(2),c:t=>t+"",d:function(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)},e:(t,n)=>t.toExponential(n),f:(t,n)=>t.toFixed(n),g:(t,n)=>t.toPrecision(n),o:t=>Math.round(t).toString(8),p:(t,n)=>tf(100*t,n),r:tf,s:function(t,n){var e=Vc(t,n);if(!e)return t+"";var r=e[0],i=e[1],o=i-(Zc=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,u=r.length;return o===u?r:o>u?r+new Array(o-u+1).join("0"):o>0?r.slice(0,o)+"."+r.slice(o):"0."+new Array(1-o).join("0")+Vc(t,Math.max(0,n+o-1))[0]},X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)},ef=function(t){return t},rf=Array.prototype.map,of=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"],uf=function(t){var n,e,r=void 0===t.grouping||void 0===t.thousands?ef:(n=rf.call(t.grouping,Number),e=t.thousands+"",function(t,r){for(var i=t.length,o=[],u=0,a=n[0],c=0;i>0&&a>0&&(c+a+1>r&&(a=Math.max(1,r-c)),o.push(t.substring(i-=a,i+a)),!((c+=a+1)>r));)a=n[u=(u+1)%n.length];return o.reverse().join(e)}),i=void 0===t.currency?"":t.currency[0]+"",o=void 0===t.currency?"":t.currency[1]+"",u=void 0===t.decimal?".":t.decimal+"",a=void 0===t.numerals?ef:function(t){return function(n){return n.replace(/[0-9]/g,(function(n){return t[+n]}))}}(rf.call(t.numerals,String)),c=void 0===t.percent?"%":t.percent+"",f=void 0===t.minus?"−":t.minus+"",s=void 0===t.nan?"NaN":t.nan+"";function l(t){var n=(t=Wc(t)).fill,e=t.align,l=t.sign,h=t.symbol,d=t.zero,p=t.width,v=t.comma,g=t.precision,y=t.trim,_=t.type;"n"===_?(v=!0,_="g"):nf[_]||(void 0===g&&(g=12),y=!0,_="g"),(d||"0"===n&&"="===e)&&(d=!0,n="0",e="=");var b="$"===h?i:"#"===h&&/[boxX]/.test(_)?"0"+_.toLowerCase():"",m="$"===h?o:/[%p]/.test(_)?c:"",x=nf[_],w=/[defgprs%]/.test(_);function M(t){var i,o,c,h=b,M=m;if("c"===_)M=x(t)+M,t="";else{var A=(t=+t)<0||1/t<0;if(t=isNaN(t)?s:x(Math.abs(t),g),y&&(t=function(t){t:for(var n,e=t.length,r=1,i=-1;r<e;++r)switch(t[r]){case".":i=n=r;break;case"0":0===i&&(i=r),n=r;break;default:if(!+t[r])break t;i>0&&(i=0)}return i>0?t.slice(0,i)+t.slice(n+1):t}(t)),A&&0==+t&&"+"!==l&&(A=!1),h=(A?"("===l?l:f:"-"===l||"("===l?"":l)+h,M=("s"===_?of[8+Zc/3]:"")+M+(A&&"("===l?")":""),w)for(i=-1,o=t.length;++i<o;)if(48>(c=t.charCodeAt(i))||c>57){M=(46===c?u+t.slice(i+1):t.slice(i))+M,t=t.slice(0,i);break}}v&&!d&&(t=r(t,1/0));var E=h.length+t.length+M.length,S=E<p?new Array(p-E+1).join(n):"";switch(v&&d&&(t=r(S+t,S.length?p-M.length:1/0),S=""),e){case"<":t=h+t+M+S;break;case"=":t=h+S+t+M;break;case"^":t=S.slice(0,E=S.length>>1)+h+t+M+S.slice(E);break;default:t=S+h+t+M}return a(t)}return g=void 0===g?6:/[gprs]/.test(_)?Math.max(1,Math.min(21,g)):Math.max(0,Math.min(20,g)),M.toString=function(){return t+""},M}return{format:l,formatPrefix:function(t,n){var e=l(((t=Wc(t)).type="f",t)),r=3*Math.max(-8,Math.min(8,Math.floor(Xc(n)/3))),i=Math.pow(10,-r),o=of[8+r/3];return function(t){return e(i*t)+o}}}};function af(t){return Kc=uf(t),Qc=Kc.format,Jc=Kc.formatPrefix,Kc}af({thousands:",",grouping:[3],currency:["$",""]});var cf=function(t){return Math.max(0,-Xc(Math.abs(t)))},ff=function(t,n){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(Xc(n)/3)))-Xc(Math.abs(t)))},sf=function(t,n){return t=Math.abs(t),n=Math.abs(n)-t,Math.max(0,Xc(n)-Xc(t))+1},lf=Math.PI,hf=lf/2,df=lf/4,pf=2*lf,vf=180/lf,gf=lf/180,yf=Math.abs,_f=Math.atan,bf=Math.atan2,mf=Math.cos,xf=Math.ceil,wf=Math.exp,Mf=(Math.floor,Math.hypot),Af=Math.log,Ef=Math.pow,Sf=Math.sin,Tf=Math.sign||function(t){return t>0?1:t<0?-1:0},Of=Math.sqrt,kf=Math.tan;function Pf(t){return t>1?0:t<-1?lf:Math.acos(t)}function Nf(t){return t>1?hf:t<-1?-hf:Math.asin(t)}function Cf(t){return(t=Sf(t/2))*t}function If(){}function jf(t,n){t&&zf.hasOwnProperty(t.type)&&zf[t.type](t,n)}var Df={Feature:function(t,n){jf(t.geometry,n)},FeatureCollection:function(t,n){for(var e=t.features,r=-1,i=e.length;++r<i;)jf(e[r].geometry,n)}},zf={Sphere:function(t,n){n.sphere()},Point:function(t,n){t=t.coordinates,n.point(t[0],t[1],t[2])},MultiPoint:function(t,n){for(var e=t.coordinates,r=-1,i=e.length;++r<i;)t=e[r],n.point(t[0],t[1],t[2])},LineString:function(t,n){Ff(t.coordinates,n,0)},MultiLineString:function(t,n){for(var e=t.coordinates,r=-1,i=e.length;++r<i;)Ff(e[r],n,0)},Polygon:function(t,n){Rf(t.coordinates,n)},MultiPolygon:function(t,n){for(var e=t.coordinates,r=-1,i=e.length;++r<i;)Rf(e[r],n)},GeometryCollection:function(t,n){for(var e=t.geometries,r=-1,i=e.length;++r<i;)jf(e[r],n)}};function Ff(t,n,e){var r,i=-1,o=t.length-e;for(n.lineStart();++i<o;)r=t[i],n.point(r[0],r[1],r[2]);n.lineEnd()}function Rf(t,n){var e=-1,r=t.length;for(n.polygonStart();++e<r;)Ff(t[e],n,1);n.polygonEnd()}var qf,Lf,Uf,Bf,Yf,Hf=function(t,n){t&&Df.hasOwnProperty(t.type)?Df[t.type](t,n):jf(t,n)},Vf=new w,Xf=new w,Gf={point:If,lineStart:If,lineEnd:If,polygonStart:function(){Vf=new w,Gf.lineStart=Wf,Gf.lineEnd=$f},polygonEnd:function(){var t=+Vf;Xf.add(t<0?pf+t:t),this.lineStart=this.lineEnd=this.point=If},sphere:function(){Xf.add(pf)}};function Wf(){Gf.point=Zf}function $f(){Kf(qf,Lf)}function Zf(t,n){Gf.point=Kf,qf=t,Lf=n,Uf=t*=gf,Bf=mf(n=(n*=gf)/2+df),Yf=Sf(n)}function Kf(t,n){var e=(t*=gf)-Uf,r=e>=0?1:-1,i=r*e,o=mf(n=(n*=gf)/2+df),u=Sf(n),a=Yf*u,c=Bf*o+a*mf(i),f=a*r*Sf(i);Vf.add(bf(f,c)),Uf=t,Bf=o,Yf=u}var Qf,Jf,ts,ns,es,rs,is,os,us,as,cs,fs=function(t){return Xf=new w,Hf(t,Gf),2*Xf};function ss(t){return[bf(t[1],t[0]),Nf(t[2])]}function ls(t){var n=t[0],e=t[1],r=mf(e);return[r*mf(n),r*Sf(n),Sf(e)]}function hs(t,n){return t[0]*n[0]+t[1]*n[1]+t[2]*n[2]}function ds(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 ps(t,n){t[0]+=n[0],t[1]+=n[1],t[2]+=n[2]}function vs(t,n){return[t[0]*n,t[1]*n,t[2]*n]}function gs(t){var n=Of(t[0]*t[0]+t[1]*t[1]+t[2]*t[2]);t[0]/=n,t[1]/=n,t[2]/=n}var ys={point:_s,lineStart:ms,lineEnd:xs,polygonStart:function(){ys.point=ws,ys.lineStart=Ms,ys.lineEnd=As,us=new w,Gf.polygonStart()},polygonEnd:function(){Gf.polygonEnd(),ys.point=_s,ys.lineStart=ms,ys.lineEnd=xs,Vf<0?(Qf=-(ts=180),Jf=-(ns=90)):us>1e-6?ns=90:us<-1e-6&&(Jf=-90),cs[0]=Qf,cs[1]=ts},sphere:function(){Qf=-(ts=180),Jf=-(ns=90)}};function _s(t,n){as.push(cs=[Qf=t,ts=t]),n<Jf&&(Jf=n),n>ns&&(ns=n)}function bs(t,n){var e=ls([t*gf,n*gf]);if(os){var r=ds(os,e),i=ds([r[1],-r[0],0],r);gs(i),i=ss(i);var o,u=t-es,a=u>0?1:-1,c=i[0]*vf*a,f=yf(u)>180;f^(a*es<c&&c<a*t)?(o=i[1]*vf)>ns&&(ns=o):f^(a*es<(c=(c+360)%360-180)&&c<a*t)?(o=-i[1]*vf)<Jf&&(Jf=o):(n<Jf&&(Jf=n),n>ns&&(ns=n)),f?t<es?Es(Qf,t)>Es(Qf,ts)&&(ts=t):Es(t,ts)>Es(Qf,ts)&&(Qf=t):ts>=Qf?(t<Qf&&(Qf=t),t>ts&&(ts=t)):t>es?Es(Qf,t)>Es(Qf,ts)&&(ts=t):Es(t,ts)>Es(Qf,ts)&&(Qf=t)}else as.push(cs=[Qf=t,ts=t]);n<Jf&&(Jf=n),n>ns&&(ns=n),os=e,es=t}function ms(){ys.point=bs}function xs(){cs[0]=Qf,cs[1]=ts,ys.point=_s,os=null}function ws(t,n){if(os){var e=t-es;us.add(yf(e)>180?e+(e>0?360:-360):e)}else rs=t,is=n;Gf.point(t,n),bs(t,n)}function Ms(){Gf.lineStart()}function As(){ws(rs,is),Gf.lineEnd(),yf(us)>1e-6&&(Qf=-(ts=180)),cs[0]=Qf,cs[1]=ts,os=null}function Es(t,n){return(n-=t)<0?n+360:n}function Ss(t,n){return t[0]-n[0]}function Ts(t,n){return t[0]<=t[1]?t[0]<=n&&n<=t[1]:n<t[0]||t[1]<n}var Os,ks,Ps,Ns,Cs,Is,js,Ds,zs,Fs,Rs,qs,Ls,Us,Bs,Ys,Hs=function(t){var n,e,r,i,o,u,a;if(ns=ts=-(Qf=Jf=1/0),as=[],Hf(t,ys),e=as.length){for(as.sort(Ss),n=1,o=[r=as[0]];n<e;++n)Ts(r,(i=as[n])[0])||Ts(r,i[1])?(Es(r[0],i[1])>Es(r[0],r[1])&&(r[1]=i[1]),Es(i[0],r[1])>Es(r[0],r[1])&&(r[0]=i[0])):o.push(r=i);for(u=-1/0,n=0,r=o[e=o.length-1];n<=e;r=i,++n)i=o[n],(a=Es(r[1],i[0]))>u&&(u=a,Qf=i[0],ts=r[1])}return as=cs=null,Qf===1/0||Jf===1/0?[[NaN,NaN],[NaN,NaN]]:[[Qf,Jf],[ts,ns]]},Vs={sphere:If,point:Xs,lineStart:Ws,lineEnd:Ks,polygonStart:function(){Vs.lineStart=Qs,Vs.lineEnd=Js},polygonEnd:function(){Vs.lineStart=Ws,Vs.lineEnd=Ks}};function Xs(t,n){t*=gf;var e=mf(n*=gf);Gs(e*mf(t),e*Sf(t),Sf(n))}function Gs(t,n,e){++Os,Ps+=(t-Ps)/Os,Ns+=(n-Ns)/Os,Cs+=(e-Cs)/Os}function Ws(){Vs.point=$s}function $s(t,n){t*=gf;var e=mf(n*=gf);Us=e*mf(t),Bs=e*Sf(t),Ys=Sf(n),Vs.point=Zs,Gs(Us,Bs,Ys)}function Zs(t,n){t*=gf;var e=mf(n*=gf),r=e*mf(t),i=e*Sf(t),o=Sf(n),u=bf(Of((u=Bs*o-Ys*i)*u+(u=Ys*r-Us*o)*u+(u=Us*i-Bs*r)*u),Us*r+Bs*i+Ys*o);ks+=u,Is+=u*(Us+(Us=r)),js+=u*(Bs+(Bs=i)),Ds+=u*(Ys+(Ys=o)),Gs(Us,Bs,Ys)}function Ks(){Vs.point=Xs}function Qs(){Vs.point=tl}function Js(){nl(qs,Ls),Vs.point=Xs}function tl(t,n){qs=t,Ls=n,t*=gf,n*=gf,Vs.point=nl;var e=mf(n);Us=e*mf(t),Bs=e*Sf(t),Ys=Sf(n),Gs(Us,Bs,Ys)}function nl(t,n){t*=gf;var e=mf(n*=gf),r=e*mf(t),i=e*Sf(t),o=Sf(n),u=Bs*o-Ys*i,a=Ys*r-Us*o,c=Us*i-Bs*r,f=Mf(u,a,c),s=Nf(f),l=f&&-s/f;zs.add(l*u),Fs.add(l*a),Rs.add(l*c),ks+=s,Is+=s*(Us+(Us=r)),js+=s*(Bs+(Bs=i)),Ds+=s*(Ys+(Ys=o)),Gs(Us,Bs,Ys)}var el=function(t){Os=ks=Ps=Ns=Cs=Is=js=Ds=0,zs=new w,Fs=new w,Rs=new w,Hf(t,Vs);var n=+zs,e=+Fs,r=+Rs,i=Mf(n,e,r);return i<1e-12&&(n=Is,e=js,r=Ds,ks<1e-6&&(n=Ps,e=Ns,r=Cs),(i=Mf(n,e,r))<1e-12)?[NaN,NaN]:[bf(e,n)*vf,Nf(r/i)*vf]},rl=function(t){return function(){return t}},il=function(t,n){function e(e,r){return e=t(e,r),n(e[0],e[1])}return t.invert&&n.invert&&(e.invert=function(e,r){return(e=n.invert(e,r))&&t.invert(e[0],e[1])}),e};function ol(t,n){return[yf(t)>lf?t+Math.round(-t/pf)*pf:t,n]}function ul(t,n,e){return(t%=pf)?n||e?il(cl(t),fl(n,e)):cl(t):n||e?fl(n,e):ol}function al(t){return function(n,e){return[(n+=t)>lf?n-pf:n<-lf?n+pf:n,e]}}function cl(t){var n=al(t);return n.invert=al(-t),n}function fl(t,n){var e=mf(t),r=Sf(t),i=mf(n),o=Sf(n);function u(t,n){var u=mf(n),a=mf(t)*u,c=Sf(t)*u,f=Sf(n),s=f*e+a*r;return[bf(c*i-s*o,a*e-f*r),Nf(s*i+c*o)]}return u.invert=function(t,n){var u=mf(n),a=mf(t)*u,c=Sf(t)*u,f=Sf(n),s=f*i-c*o;return[bf(c*i+f*o,a*e+s*r),Nf(s*e-a*r)]},u}ol.invert=ol;var sl=function(t){function n(n){return(n=t(n[0]*gf,n[1]*gf))[0]*=vf,n[1]*=vf,n}return t=ul(t[0]*gf,t[1]*gf,t.length>2?t[2]*gf:0),n.invert=function(n){return(n=t.invert(n[0]*gf,n[1]*gf))[0]*=vf,n[1]*=vf,n},n};function ll(t,n,e,r,i,o){if(e){var u=mf(n),a=Sf(n),c=r*e;null==i?(i=n+r*pf,o=n-c/2):(i=hl(u,i),o=hl(u,o),(r>0?i<o:i>o)&&(i+=r*pf));for(var f,s=i;r>0?s>o:s<o;s-=c)f=ss([u,-a*mf(s),-a*Sf(s)]),t.point(f[0],f[1])}}function hl(t,n){(n=ls(n))[0]-=t,gs(n);var e=Pf(-n[1]);return((-n[2]<0?-e:e)+pf-1e-6)%pf}var dl=function(){var t,n,e=rl([0,0]),r=rl(90),i=rl(6),o={point:function(e,r){t.push(e=n(e,r)),e[0]*=vf,e[1]*=vf}};function u(){var u=e.apply(this,arguments),a=r.apply(this,arguments)*gf,c=i.apply(this,arguments)*gf;return t=[],n=ul(-u[0]*gf,-u[1]*gf,0).invert,ll(o,a,c,1),u={type:"Polygon",coordinates:[t]},t=n=null,u}return u.center=function(t){return arguments.length?(e="function"==typeof t?t:rl([+t[0],+t[1]]),u):e},u.radius=function(t){return arguments.length?(r="function"==typeof t?t:rl(+t),u):r},u.precision=function(t){return arguments.length?(i="function"==typeof t?t:rl(+t),u):i},u},pl=function(){var t,n=[];return{point:function(n,e,r){t.push([n,e,r])},lineStart:function(){n.push(t=[])},lineEnd:If,rejoin:function(){n.length>1&&n.push(n.pop().concat(n.shift()))},result:function(){var e=n;return n=[],t=null,e}}},vl=function(t,n){return yf(t[0]-n[0])<1e-6&&yf(t[1]-n[1])<1e-6};function gl(t,n,e,r){this.x=t,this.z=n,this.o=e,this.e=r,this.v=!1,this.n=this.p=null}var yl=function(t,n,e,r,i){var o,u,a=[],c=[];if(t.forEach((function(t){if(!((n=t.length-1)<=0)){var n,e,r=t[0],u=t[n];if(vl(r,u)){if(!r[2]&&!u[2]){for(i.lineStart(),o=0;o<n;++o)i.point((r=t[o])[0],r[1]);return void i.lineEnd()}u[0]+=2e-6}a.push(e=new gl(r,t,null,!0)),c.push(e.o=new gl(r,null,e,!1)),a.push(e=new gl(u,t,null,!1)),c.push(e.o=new gl(u,null,e,!0))}})),a.length){for(c.sort(n),_l(a),_l(c),o=0,u=c.length;o<u;++o)c[o].e=e=!e;for(var f,s,l=a[0];;){for(var h=l,d=!0;h.v;)if((h=h.n)===l)return;f=h.z,i.lineStart();do{if(h.v=h.o.v=!0,h.e){if(d)for(o=0,u=f.length;o<u;++o)i.point((s=f[o])[0],s[1]);else r(h.x,h.n.x,1,i);h=h.n}else{if(d)for(f=h.p.z,o=f.length-1;o>=0;--o)i.point((s=f[o])[0],s[1]);else r(h.x,h.p.x,-1,i);h=h.p}f=(h=h.o).z,d=!d}while(!h.v);i.lineEnd()}}};function _l(t){if(n=t.length){for(var n,e,r=0,i=t[0];++r<n;)i.n=e=t[r],e.p=i,i=e;i.n=e=t[0],e.p=i}}function bl(t){return yf(t[0])<=lf?t[0]:Tf(t[0])*((yf(t[0])+lf)%pf-lf)}var ml=function(t,n){var e=bl(n),r=n[1],i=Sf(r),o=[Sf(e),-mf(e),0],u=0,a=0,c=new w;1===i?r=hf+1e-6:-1===i&&(r=-hf-1e-6);for(var f=0,s=t.length;f<s;++f)if(h=(l=t[f]).length)for(var l,h,d=l[h-1],p=bl(d),v=d[1]/2+df,g=Sf(v),y=mf(v),_=0;_<h;++_,p=m,g=M,y=A,d=b){var b=l[_],m=bl(b),x=b[1]/2+df,M=Sf(x),A=mf(x),E=m-p,S=E>=0?1:-1,T=S*E,O=T>lf,k=g*M;if(c.add(bf(k*S*Sf(T),y*A+k*mf(T))),u+=O?E+S*pf:E,O^p>=e^m>=e){var P=ds(ls(d),ls(b));gs(P);var N=ds(o,P);gs(N);var C=(O^E>=0?-1:1)*Nf(N[2]);(r>C||r===C&&(P[0]||P[1]))&&(a+=O^E>=0?1:-1)}}return(u<-1e-6||u<1e-6&&c<-1e-12)^1&a},xl=function(t,n,e,r){return function(i){var o,u,a,c=n(i),f=pl(),s=n(f),l=!1,h={point:d,lineStart:v,lineEnd:g,polygonStart:function(){h.point=y,h.lineStart=_,h.lineEnd=b,u=[],o=[]},polygonEnd:function(){h.point=d,h.lineStart=v,h.lineEnd=g,u=et(u);var t=ml(o,r);u.length?(l||(i.polygonStart(),l=!0),yl(u,Ml,t,e,i)):t&&(l||(i.polygonStart(),l=!0),i.lineStart(),e(null,null,1,i),i.lineEnd()),l&&(i.polygonEnd(),l=!1),u=o=null},sphere:function(){i.polygonStart(),i.lineStart(),e(null,null,1,i),i.lineEnd(),i.polygonEnd()}};function d(n,e){t(n,e)&&i.point(n,e)}function p(t,n){c.point(t,n)}function v(){h.point=p,c.lineStart()}function g(){h.point=d,c.lineEnd()}function y(t,n){a.push([t,n]),s.point(t,n)}function _(){s.lineStart(),a=[]}function b(){y(a[0][0],a[0][1]),s.lineEnd();var t,n,e,r,c=s.clean(),h=f.result(),d=h.length;if(a.pop(),o.push(a),a=null,d)if(1&c){if((n=(e=h[0]).length-1)>0){for(l||(i.polygonStart(),l=!0),i.lineStart(),t=0;t<n;++t)i.point((r=e[t])[0],r[1]);i.lineEnd()}}else d>1&&2&c&&h.push(h.pop().concat(h.shift())),u.push(h.filter(wl))}return h}};function wl(t){return t.length>1}function Ml(t,n){return((t=t.x)[0]<0?t[1]-hf-1e-6:hf-t[1])-((n=n.x)[0]<0?n[1]-hf-1e-6:hf-n[1])}var Al=xl((function(){return!0}),(function(t){var n,e=NaN,r=NaN,i=NaN;return{lineStart:function(){t.lineStart(),n=1},point:function(o,u){var a=o>0?lf:-lf,c=yf(o-e);yf(c-lf)<1e-6?(t.point(e,r=(r+u)/2>0?hf:-hf),t.point(i,r),t.lineEnd(),t.lineStart(),t.point(a,r),t.point(o,r),n=0):i!==a&&c>=lf&&(yf(e-i)<1e-6&&(e-=1e-6*i),yf(o-a)<1e-6&&(o-=1e-6*a),r=function(t,n,e,r){var i,o,u=Sf(t-e);return yf(u)>1e-6?_f((Sf(n)*(o=mf(r))*Sf(e)-Sf(r)*(i=mf(n))*Sf(t))/(i*o*u)):(n+r)/2}(e,r,o,u),t.point(i,r),t.lineEnd(),t.lineStart(),t.point(a,r),n=0),t.point(e=o,r=u),i=a},lineEnd:function(){t.lineEnd(),e=r=NaN},clean:function(){return 2-n}}}),(function(t,n,e,r){var i;if(null==t)i=e*hf,r.point(-lf,i),r.point(0,i),r.point(lf,i),r.point(lf,0),r.point(lf,-i),r.point(0,-i),r.point(-lf,-i),r.point(-lf,0),r.point(-lf,i);else if(yf(t[0]-n[0])>1e-6){var o=t[0]<n[0]?lf:-lf;i=e*o/2,r.point(-o,i),r.point(0,i),r.point(o,i)}else r.point(n[0],n[1])}),[-lf,-hf]);var El=function(t){var n=mf(t),e=6*gf,r=n>0,i=yf(n)>1e-6;function o(t,e){return mf(t)*mf(e)>n}function u(t,e,r){var i=[1,0,0],o=ds(ls(t),ls(e)),u=hs(o,o),a=o[0],c=u-a*a;if(!c)return!r&&t;var f=n*u/c,s=-n*a/c,l=ds(i,o),h=vs(i,f);ps(h,vs(o,s));var d=l,p=hs(h,d),v=hs(d,d),g=p*p-v*(hs(h,h)-1);if(!(g<0)){var y=Of(g),_=vs(d,(-p-y)/v);if(ps(_,h),_=ss(_),!r)return _;var b,m=t[0],x=e[0],w=t[1],M=e[1];x<m&&(b=m,m=x,x=b);var A=x-m,E=yf(A-lf)<1e-6;if(!E&&M<w&&(b=w,w=M,M=b),E||A<1e-6?E?w+M>0^_[1]<(yf(_[0]-m)<1e-6?w:M):w<=_[1]&&_[1]<=M:A>lf^(m<=_[0]&&_[0]<=x)){var S=vs(d,(-p+y)/v);return ps(S,h),[_,ss(S)]}}}function a(n,e){var i=r?t:lf-t,o=0;return n<-i?o|=1:n>i&&(o|=2),e<-i?o|=4:e>i&&(o|=8),o}return xl(o,(function(t){var n,e,c,f,s;return{lineStart:function(){f=c=!1,s=1},point:function(l,h){var d,p=[l,h],v=o(l,h),g=r?v?0:a(l,h):v?a(l+(l<0?lf:-lf),h):0;if(!n&&(f=c=v)&&t.lineStart(),v!==c&&(!(d=u(n,p))||vl(n,d)||vl(p,d))&&(p[2]=1),v!==c)s=0,v?(t.lineStart(),d=u(p,n),t.point(d[0],d[1])):(d=u(n,p),t.point(d[0],d[1],2),t.lineEnd()),n=d;else if(i&&n&&r^v){var y;g&e||!(y=u(p,n,!0))||(s=0,r?(t.lineStart(),t.point(y[0][0],y[0][1]),t.point(y[1][0],y[1][1]),t.lineEnd()):(t.point(y[1][0],y[1][1]),t.lineEnd(),t.lineStart(),t.point(y[0][0],y[0][1],3)))}!v||n&&vl(n,p)||t.point(p[0],p[1]),n=p,c=v,e=g},lineEnd:function(){c&&t.lineEnd(),n=null},clean:function(){return s|(f&&c)<<1}}}),(function(n,r,i,o){ll(o,t,e,i,n,r)}),r?[0,-t]:[-lf,t-lf])};function Sl(t,n,e,r){function i(i,o){return t<=i&&i<=e&&n<=o&&o<=r}function o(i,o,a,f){var s=0,l=0;if(null==i||(s=u(i,a))!==(l=u(o,a))||c(i,o)<0^a>0)do{f.point(0===s||3===s?t:e,s>1?r:n)}while((s=(s+a+4)%4)!==l);else f.point(o[0],o[1])}function u(r,i){return yf(r[0]-t)<1e-6?i>0?0:3:yf(r[0]-e)<1e-6?i>0?2:1:yf(r[1]-n)<1e-6?i>0?1:0:i>0?3:2}function a(t,n){return c(t.x,n.x)}function c(t,n){var e=u(t,1),r=u(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(u){var c,f,s,l,h,d,p,v,g,y,_,b=u,m=pl(),x={point:w,lineStart:function(){x.point=M,f&&f.push(s=[]);y=!0,g=!1,p=v=NaN},lineEnd:function(){c&&(M(l,h),d&&g&&m.rejoin(),c.push(m.result()));x.point=w,g&&b.lineEnd()},polygonStart:function(){b=m,c=[],f=[],_=!0},polygonEnd:function(){var n=function(){for(var n=0,e=0,i=f.length;e<i;++e)for(var o,u,a=f[e],c=1,s=a.length,l=a[0],h=l[0],d=l[1];c<s;++c)o=h,u=d,l=a[c],h=l[0],d=l[1],u<=r?d>r&&(h-o)*(r-u)>(d-u)*(t-o)&&++n:d<=r&&(h-o)*(r-u)<(d-u)*(t-o)&&--n;return n}(),e=_&&n,i=(c=et(c)).length;(e||i)&&(u.polygonStart(),e&&(u.lineStart(),o(null,null,1,u),u.lineEnd()),i&&yl(c,a,n,o,u),u.polygonEnd());b=u,c=f=s=null}};function w(t,n){i(t,n)&&b.point(t,n)}function M(o,u){var a=i(o,u);if(f&&s.push([o,u]),y)l=o,h=u,d=a,y=!1,a&&(b.lineStart(),b.point(o,u));else if(a&&g)b.point(o,u);else{var c=[p=Math.max(-1e9,Math.min(1e9,p)),v=Math.max(-1e9,Math.min(1e9,v))],m=[o=Math.max(-1e9,Math.min(1e9,o)),u=Math.max(-1e9,Math.min(1e9,u))];!function(t,n,e,r,i,o){var u,a=t[0],c=t[1],f=0,s=1,l=n[0]-a,h=n[1]-c;if(u=e-a,l||!(u>0)){if(u/=l,l<0){if(u<f)return;u<s&&(s=u)}else if(l>0){if(u>s)return;u>f&&(f=u)}if(u=i-a,l||!(u<0)){if(u/=l,l<0){if(u>s)return;u>f&&(f=u)}else if(l>0){if(u<f)return;u<s&&(s=u)}if(u=r-c,h||!(u>0)){if(u/=h,h<0){if(u<f)return;u<s&&(s=u)}else if(h>0){if(u>s)return;u>f&&(f=u)}if(u=o-c,h||!(u<0)){if(u/=h,h<0){if(u>s)return;u>f&&(f=u)}else if(h>0){if(u<f)return;u<s&&(s=u)}return f>0&&(t[0]=a+f*l,t[1]=c+f*h),s<1&&(n[0]=a+s*l,n[1]=c+s*h),!0}}}}}(c,m,t,n,e,r)?a&&(b.lineStart(),b.point(o,u),_=!1):(g||(b.lineStart(),b.point(c[0],c[1])),b.point(m[0],m[1]),a||b.lineEnd(),_=!1)}p=o,v=u,g=a}return x}}var Tl,Ol,kl,Pl,Nl=function(){var t,n,e,r=0,i=0,o=960,u=500;return e={stream:function(e){return t&&n===e?t:t=Sl(r,i,o,u)(n=e)},extent:function(a){return arguments.length?(r=+a[0][0],i=+a[0][1],o=+a[1][0],u=+a[1][1],t=n=null,e):[[r,i],[o,u]]}}},Cl={sphere:If,point:If,lineStart:function(){Cl.point=jl,Cl.lineEnd=Il},lineEnd:If,polygonStart:If,polygonEnd:If};function Il(){Cl.point=Cl.lineEnd=If}function jl(t,n){Ol=t*=gf,kl=Sf(n*=gf),Pl=mf(n),Cl.point=Dl}function Dl(t,n){t*=gf;var e=Sf(n*=gf),r=mf(n),i=yf(t-Ol),o=mf(i),u=r*Sf(i),a=Pl*e-kl*r*o,c=kl*e+Pl*r*o;Tl.add(bf(Of(u*u+a*a),c)),Ol=t,kl=e,Pl=r}var zl=function(t){return Tl=new w,Hf(t,Cl),+Tl},Fl=[null,null],Rl={type:"LineString",coordinates:Fl},ql=function(t,n){return Fl[0]=t,Fl[1]=n,zl(Rl)},Ll={Feature:function(t,n){return Bl(t.geometry,n)},FeatureCollection:function(t,n){for(var e=t.features,r=-1,i=e.length;++r<i;)if(Bl(e[r].geometry,n))return!0;return!1}},Ul={Sphere:function(){return!0},Point:function(t,n){return Yl(t.coordinates,n)},MultiPoint:function(t,n){for(var e=t.coordinates,r=-1,i=e.length;++r<i;)if(Yl(e[r],n))return!0;return!1},LineString:function(t,n){return Hl(t.coordinates,n)},MultiLineString:function(t,n){for(var e=t.coordinates,r=-1,i=e.length;++r<i;)if(Hl(e[r],n))return!0;return!1},Polygon:function(t,n){return Vl(t.coordinates,n)},MultiPolygon:function(t,n){for(var e=t.coordinates,r=-1,i=e.length;++r<i;)if(Vl(e[r],n))return!0;return!1},GeometryCollection:function(t,n){for(var e=t.geometries,r=-1,i=e.length;++r<i;)if(Bl(e[r],n))return!0;return!1}};function Bl(t,n){return!(!t||!Ul.hasOwnProperty(t.type))&&Ul[t.type](t,n)}function Yl(t,n){return 0===ql(t,n)}function Hl(t,n){for(var e,r,i,o=0,u=t.length;o<u;o++){if(0===(r=ql(t[o],n)))return!0;if(o>0&&(i=ql(t[o],t[o-1]))>0&&e<=i&&r<=i&&(e+r-i)*(1-Math.pow((e-r)/i,2))<1e-12*i)return!0;e=r}return!1}function Vl(t,n){return!!ml(t.map(Xl),Gl(n))}function Xl(t){return(t=t.map(Gl)).pop(),t}function Gl(t){return[t[0]*gf,t[1]*gf]}var Wl=function(t,n){return(t&&Ll.hasOwnProperty(t.type)?Ll[t.type]:Bl)(t,n)};function $l(t,n,e){var r=at(t,n-1e-6,e).concat(n);return function(t){return r.map((function(n){return[t,n]}))}}function Zl(t,n,e){var r=at(t,n-1e-6,e).concat(n);return function(t){return r.map((function(n){return[n,t]}))}}function Kl(){var t,n,e,r,i,o,u,a,c,f,s,l,h=10,d=h,p=90,v=360,g=2.5;function y(){return{type:"MultiLineString",coordinates:_()}}function _(){return at(xf(r/p)*p,e,p).map(s).concat(at(xf(a/v)*v,u,v).map(l)).concat(at(xf(n/h)*h,t,h).filter((function(t){return yf(t%p)>1e-6})).map(c)).concat(at(xf(o/d)*d,i,d).filter((function(t){return yf(t%v)>1e-6})).map(f))}return y.lines=function(){return _().map((function(t){return{type:"LineString",coordinates:t}}))},y.outline=function(){return{type:"Polygon",coordinates:[s(r).concat(l(u).slice(1),s(e).reverse().slice(1),l(a).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],a=+t[0][1],u=+t[1][1],r>e&&(t=r,r=e,e=t),a>u&&(t=a,a=u,u=t),y.precision(g)):[[r,a],[e,u]]},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(g)):[[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],v=+t[1],y):[p,v]},y.stepMinor=function(t){return arguments.length?(h=+t[0],d=+t[1],y):[h,d]},y.precision=function(h){return arguments.length?(g=+h,c=$l(o,i,90),f=Zl(n,t,g),s=$l(a,u,90),l=Zl(r,e,g),y):g},y.extentMajor([[-180,-89.999999],[180,89.999999]]).extentMinor([[-180,-80.000001],[180,80.000001]])}function Ql(){return Kl()()}var Jl,th,nh,eh,rh=function(t,n){var e=t[0]*gf,r=t[1]*gf,i=n[0]*gf,o=n[1]*gf,u=mf(r),a=Sf(r),c=mf(o),f=Sf(o),s=u*mf(e),l=u*Sf(e),h=c*mf(i),d=c*Sf(i),p=2*Nf(Of(Cf(o-r)+u*c*Cf(i-e))),v=Sf(p),g=p?function(t){var n=Sf(t*=p)/v,e=Sf(p-t)/v,r=e*s+n*h,i=e*l+n*d,o=e*a+n*f;return[bf(i,r)*vf,bf(o,Of(r*r+i*i))*vf]}:function(){return[e*vf,r*vf]};return g.distance=p,g},ih=t=>t,oh=new w,uh=new w,ah={point:If,lineStart:If,lineEnd:If,polygonStart:function(){ah.lineStart=ch,ah.lineEnd=lh},polygonEnd:function(){ah.lineStart=ah.lineEnd=ah.point=If,oh.add(yf(uh)),uh=new w},result:function(){var t=oh/2;return oh=new w,t}};function ch(){ah.point=fh}function fh(t,n){ah.point=sh,Jl=nh=t,th=eh=n}function sh(t,n){uh.add(eh*t-nh*n),nh=t,eh=n}function lh(){sh(Jl,th)}var hh=ah,dh=1/0,ph=dh,vh=-dh,gh=vh;var yh,_h,bh,mh,xh={point:function(t,n){t<dh&&(dh=t);t>vh&&(vh=t);n<ph&&(ph=n);n>gh&&(gh=n)},lineStart:If,lineEnd:If,polygonStart:If,polygonEnd:If,result:function(){var t=[[dh,ph],[vh,gh]];return vh=gh=-(ph=dh=1/0),t}},wh=0,Mh=0,Ah=0,Eh=0,Sh=0,Th=0,Oh=0,kh=0,Ph=0,Nh={point:Ch,lineStart:Ih,lineEnd:zh,polygonStart:function(){Nh.lineStart=Fh,Nh.lineEnd=Rh},polygonEnd:function(){Nh.point=Ch,Nh.lineStart=Ih,Nh.lineEnd=zh},result:function(){var t=Ph?[Oh/Ph,kh/Ph]:Th?[Eh/Th,Sh/Th]:Ah?[wh/Ah,Mh/Ah]:[NaN,NaN];return wh=Mh=Ah=Eh=Sh=Th=Oh=kh=Ph=0,t}};function Ch(t,n){wh+=t,Mh+=n,++Ah}function Ih(){Nh.point=jh}function jh(t,n){Nh.point=Dh,Ch(bh=t,mh=n)}function Dh(t,n){var e=t-bh,r=n-mh,i=Of(e*e+r*r);Eh+=i*(bh+t)/2,Sh+=i*(mh+n)/2,Th+=i,Ch(bh=t,mh=n)}function zh(){Nh.point=Ch}function Fh(){Nh.point=qh}function Rh(){Lh(yh,_h)}function qh(t,n){Nh.point=Lh,Ch(yh=bh=t,_h=mh=n)}function Lh(t,n){var e=t-bh,r=n-mh,i=Of(e*e+r*r);Eh+=i*(bh+t)/2,Sh+=i*(mh+n)/2,Th+=i,Oh+=(i=mh*t-bh*n)*(bh+t),kh+=i*(mh+n),Ph+=3*i,Ch(bh=t,mh=n)}var Uh=Nh;function Bh(t){this._context=t}Bh.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,pf)}},result:If};var Yh,Hh,Vh,Xh,Gh,Wh=new w,$h={point:If,lineStart:function(){$h.point=Zh},lineEnd:function(){Yh&&Kh(Hh,Vh),$h.point=If},polygonStart:function(){Yh=!0},polygonEnd:function(){Yh=null},result:function(){var t=+Wh;return Wh=new w,t}};function Zh(t,n){$h.point=Kh,Hh=Xh=t,Vh=Gh=n}function Kh(t,n){Xh-=t,Gh-=n,Wh.add(Of(Xh*Xh+Gh*Gh)),Xh=t,Gh=n}var Qh=$h;function Jh(){this._string=[]}function td(t){return"m0,"+t+"a"+t+","+t+" 0 1,1 0,"+-2*t+"a"+t+","+t+" 0 1,1 0,"+2*t+"z"}Jh.prototype={_radius:4.5,_circle:td(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=td(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}};var nd=function(t,n){var e,r,i=4.5;function o(t){return t&&("function"==typeof i&&r.pointRadius(+i.apply(this,arguments)),Hf(t,e(r))),r.result()}return o.area=function(t){return Hf(t,e(hh)),hh.result()},o.measure=function(t){return Hf(t,e(Qh)),Qh.result()},o.bounds=function(t){return Hf(t,e(xh)),xh.result()},o.centroid=function(t){return Hf(t,e(Uh)),Uh.result()},o.projection=function(n){return arguments.length?(e=null==n?(t=null,ih):(t=n).stream,o):t},o.context=function(t){return arguments.length?(r=null==t?(n=null,new Jh):new Bh(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)},ed=function(t){return{stream:rd(t)}};function rd(t){return function(n){var e=new id;for(var r in t)e[r]=t[r];return e.stream=n,e}}function id(){}function od(t,n,e){var r=t.clipExtent&&t.clipExtent();return t.scale(150).translate([0,0]),null!=r&&t.clipExtent(null),Hf(e,t.stream(xh)),n(xh.result()),null!=r&&t.clipExtent(r),t}function ud(t,n,e){return od(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])),u=+n[0][0]+(r-o*(e[1][0]+e[0][0]))/2,a=+n[0][1]+(i-o*(e[1][1]+e[0][1]))/2;t.scale(150*o).translate([u,a])}),e)}function ad(t,n,e){return ud(t,[[0,0],n],e)}function cd(t,n,e){return od(t,(function(e){var r=+n,i=r/(e[1][0]-e[0][0]),o=(r-i*(e[1][0]+e[0][0]))/2,u=-i*e[0][1];t.scale(150*i).translate([o,u])}),e)}function fd(t,n,e){return od(t,(function(e){var r=+n,i=r/(e[1][1]-e[0][1]),o=-i*e[0][0],u=(r-i*(e[1][1]+e[0][1]))/2;t.scale(150*i).translate([o,u])}),e)}id.prototype={constructor:id,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 sd=mf(30*gf),ld=function(t,n){return+n?function(t,n){function e(r,i,o,u,a,c,f,s,l,h,d,p,v,g){var y=f-r,_=s-i,b=y*y+_*_;if(b>4*n&&v--){var m=u+h,x=a+d,w=c+p,M=Of(m*m+x*x+w*w),A=Nf(w/=M),E=yf(yf(w)-1)<1e-6||yf(o-l)<1e-6?(o+l)/2:bf(x,m),S=t(E,A),T=S[0],O=S[1],k=T-r,P=O-i,N=_*k-y*P;(N*N/b>n||yf((y*k+_*P)/b-.5)>.3||u*h+a*d+c*p<sd)&&(e(r,i,o,u,a,c,T,O,E,m/=M,x/=M,w,v,g),g.point(T,O),e(T,O,E,m,x,w,f,s,l,h,d,p,v,g))}}return function(n){var r,i,o,u,a,c,f,s,l,h,d,p,v={point:g,lineStart:y,lineEnd:b,polygonStart:function(){n.polygonStart(),v.lineStart=m},polygonEnd:function(){n.polygonEnd(),v.lineStart=y}};function g(e,r){e=t(e,r),n.point(e[0],e[1])}function y(){s=NaN,v.point=_,n.lineStart()}function _(r,i){var o=ls([r,i]),u=t(r,i);e(s,l,f,h,d,p,s=u[0],l=u[1],f=r,h=o[0],d=o[1],p=o[2],16,n),n.point(s,l)}function b(){v.point=g,n.lineEnd()}function m(){y(),v.point=x,v.lineEnd=w}function x(t,n){_(r=t,n),i=s,o=l,u=h,a=d,c=p,v.point=_}function w(){e(s,l,f,h,d,p,i,o,r,u,a,c,16,n),v.lineEnd=b,b()}return v}}(t,n):function(t){return rd({point:function(n,e){n=t(n,e),this.stream.point(n[0],n[1])}})}(t)};var hd=rd({point:function(t,n){this.stream.point(t*gf,n*gf)}});function dd(t,n,e,r,i,o){if(!o)return function(t,n,e,r,i){function o(o,u){return[n+t*(o*=r),e-t*(u*=i)]}return o.invert=function(o,u){return[(o-n)/t*r,(e-u)/t*i]},o}(t,n,e,r,i);var u=mf(o),a=Sf(o),c=u*t,f=a*t,s=u/t,l=a/t,h=(a*e-u*n)/t,d=(a*n+u*e)/t;function p(t,o){return[c*(t*=r)-f*(o*=i)+n,e-f*t-c*o]}return p.invert=function(t,n){return[r*(s*t-l*n+h),i*(d-l*t-s*n)]},p}function pd(t){return vd((function(){return t}))()}function vd(t){var n,e,r,i,o,u,a,c,f,s,l=150,h=480,d=250,p=0,v=0,g=0,y=0,_=0,b=0,m=1,x=1,w=null,M=Al,A=null,E=ih,S=.5;function T(t){return c(t[0]*gf,t[1]*gf)}function O(t){return(t=c.invert(t[0],t[1]))&&[t[0]*vf,t[1]*vf]}function k(){var t=dd(l,0,0,m,x,b).apply(null,n(p,v)),r=dd(l,h-t[0],d-t[1],m,x,b);return e=ul(g,y,_),a=il(n,r),c=il(e,a),u=ld(a,S),P()}function P(){return f=s=null,T}return T.stream=function(t){return f&&s===t?f:f=hd(function(t){return rd({point:function(n,e){var r=t(n,e);return this.stream.point(r[0],r[1])}})}(e)(M(u(E(s=t)))))},T.preclip=function(t){return arguments.length?(M=t,w=void 0,P()):M},T.postclip=function(t){return arguments.length?(E=t,A=r=i=o=null,P()):E},T.clipAngle=function(t){return arguments.length?(M=+t?El(w=t*gf):(w=null,Al),P()):w*vf},T.clipExtent=function(t){return arguments.length?(E=null==t?(A=r=i=o=null,ih):Sl(A=+t[0][0],r=+t[0][1],i=+t[1][0],o=+t[1][1]),P()):null==A?null:[[A,r],[i,o]]},T.scale=function(t){return arguments.length?(l=+t,k()):l},T.translate=function(t){return arguments.length?(h=+t[0],d=+t[1],k()):[h,d]},T.center=function(t){return arguments.length?(p=t[0]%360*gf,v=t[1]%360*gf,k()):[p*vf,v*vf]},T.rotate=function(t){return arguments.length?(g=t[0]%360*gf,y=t[1]%360*gf,_=t.length>2?t[2]%360*gf:0,k()):[g*vf,y*vf,_*vf]},T.angle=function(t){return arguments.length?(b=t%360*gf,k()):b*vf},T.reflectX=function(t){return arguments.length?(m=t?-1:1,k()):m<0},T.reflectY=function(t){return arguments.length?(x=t?-1:1,k()):x<0},T.precision=function(t){return arguments.length?(u=ld(a,S=t*t),P()):Of(S)},T.fitExtent=function(t,n){return ud(T,t,n)},T.fitSize=function(t,n){return ad(T,t,n)},T.fitWidth=function(t,n){return cd(T,t,n)},T.fitHeight=function(t,n){return fd(T,t,n)},function(){return n=t.apply(this,arguments),T.invert=n.invert&&O,k()}}function gd(t){var n=0,e=lf/3,r=vd(t),i=r(n,e);return i.parallels=function(t){return arguments.length?r(n=t[0]*gf,e=t[1]*gf):[n*vf,e*vf]},i}function yd(t,n){var e=Sf(t),r=(e+Sf(n))/2;if(yf(r)<1e-6)return function(t){var n=mf(t);function e(t,e){return[t*n,Sf(e)/n]}return e.invert=function(t,e){return[t/n,Nf(e*n)]},e}(t);var i=1+e*(2*r-e),o=Of(i)/r;function u(t,n){var e=Of(i-2*r*Sf(n))/r;return[e*Sf(t*=r),o-e*mf(t)]}return u.invert=function(t,n){var e=o-n,u=bf(t,yf(e))*Tf(e);return e*r<0&&(u-=lf*Tf(t)*Tf(e)),[u/r,Nf((i-(t*t+e*e)*r*r)/(2*r))]},u}var _d=function(){return gd(yd).scale(155.424).center([0,33.6442])},bd=function(){return _d().parallels([29.5,45.5]).scale(1070).translate([480,250]).rotate([96,0]).center([-.6,38.7])};var md=function(){var t,n,e,r,i,o,u=bd(),a=_d().rotate([154,0]).center([-2,58.5]).parallels([55,65]),c=_d().rotate([157,0]).center([-3,19.9]).parallels([8,18]),f={point:function(t,n){o=[t,n]}};function s(t){var n=t[0],u=t[1];return o=null,e.point(n,u),o||(r.point(n,u),o)||(i.point(n,u),o)}function l(){return t=n=null,s}return s.invert=function(t){var n=u.scale(),e=u.translate(),r=(t[0]-e[0])/n,i=(t[1]-e[1])/n;return(i>=.12&&i<.234&&r>=-.425&&r<-.214?a:i>=.166&&i<.234&&r>=-.214&&r<-.115?c:u).invert(t)},s.stream=function(e){return t&&n===e?t:(r=[u.stream(n=e),a.stream(e),c.stream(e)],i=r.length,t={point:function(t,n){for(var e=-1;++e<i;)r[e].point(t,n)},sphere:function(){for(var t=-1;++t<i;)r[t].sphere()},lineStart:function(){for(var t=-1;++t<i;)r[t].lineStart()},lineEnd:function(){for(var t=-1;++t<i;)r[t].lineEnd()},polygonStart:function(){for(var t=-1;++t<i;)r[t].polygonStart()},polygonEnd:function(){for(var t=-1;++t<i;)r[t].polygonEnd()}});var r,i},s.precision=function(t){return arguments.length?(u.precision(t),a.precision(t),c.precision(t),l()):u.precision()},s.scale=function(t){return arguments.length?(u.scale(t),a.scale(.35*t),c.scale(t),s.translate(u.translate())):u.scale()},s.translate=function(t){if(!arguments.length)return u.translate();var n=u.scale(),o=+t[0],s=+t[1];return e=u.translate(t).clipExtent([[o-.455*n,s-.238*n],[o+.455*n,s+.238*n]]).stream(f),r=a.translate([o-.307*n,s+.201*n]).clipExtent([[o-.425*n+1e-6,s+.12*n+1e-6],[o-.214*n-1e-6,s+.234*n-1e-6]]).stream(f),i=c.translate([o-.205*n,s+.212*n]).clipExtent([[o-.214*n+1e-6,s+.166*n+1e-6],[o-.115*n-1e-6,s+.234*n-1e-6]]).stream(f),l()},s.fitExtent=function(t,n){return ud(s,t,n)},s.fitSize=function(t,n){return ad(s,t,n)},s.fitWidth=function(t,n){return cd(s,t,n)},s.fitHeight=function(t,n){return fd(s,t,n)},s.scale(1070)};function xd(t){return function(n,e){var r=mf(n),i=mf(e),o=t(r*i);return o===1/0?[2,0]:[o*i*Sf(n),o*Sf(e)]}}function wd(t){return function(n,e){var r=Of(n*n+e*e),i=t(r),o=Sf(i),u=mf(i);return[bf(n*o,r*u),Nf(r&&e*o/r)]}}var Md=xd((function(t){return Of(2/(1+t))}));Md.invert=wd((function(t){return 2*Nf(t/2)}));var Ad=function(){return pd(Md).scale(124.75).clipAngle(179.999)},Ed=xd((function(t){return(t=Pf(t))&&t/Sf(t)}));Ed.invert=wd((function(t){return t}));var Sd=function(){return pd(Ed).scale(79.4188).clipAngle(179.999)};function Td(t,n){return[t,Af(kf((hf+n)/2))]}Td.invert=function(t,n){return[t,2*_f(wf(n))-hf]};var Od=function(){return kd(Td).scale(961/pf)};function kd(t){var n,e,r,i=pd(t),o=i.center,u=i.scale,a=i.translate,c=i.clipExtent,f=null;function s(){var o=lf*u(),a=i(sl(i.rotate()).invert([0,0]));return c(null==f?[[a[0]-o,a[1]-o],[a[0]+o,a[1]+o]]:t===Td?[[Math.max(a[0]-o,f),n],[Math.min(a[0]+o,e),r]]:[[f,Math.max(a[1]-o,n)],[e,Math.min(a[1]+o,r)]])}return i.scale=function(t){return arguments.length?(u(t),s()):u()},i.translate=function(t){return arguments.length?(a(t),s()):a()},i.center=function(t){return arguments.length?(o(t),s()):o()},i.clipExtent=function(t){return arguments.length?(null==t?f=n=e=r=null:(f=+t[0][0],n=+t[0][1],e=+t[1][0],r=+t[1][1]),s()):null==f?null:[[f,n],[e,r]]},s()}function Pd(t){return kf((hf+t)/2)}function Nd(t,n){var e=mf(t),r=t===n?Sf(t):Af(e/mf(n))/Af(Pd(n)/Pd(t)),i=e*Ef(Pd(t),r)/r;if(!r)return Td;function o(t,n){i>0?n<1e-6-hf&&(n=1e-6-hf):n>hf-1e-6&&(n=hf-1e-6);var e=i/Ef(Pd(n),r);return[e*Sf(r*t),i-e*mf(r*t)]}return o.invert=function(t,n){var e=i-n,o=Tf(r)*Of(t*t+e*e),u=bf(t,yf(e))*Tf(e);return e*r<0&&(u-=lf*Tf(t)*Tf(e)),[u/r,2*_f(Ef(i/o,1/r))-hf]},o}var Cd=function(){return gd(Nd).scale(109.5).parallels([30,30])};function Id(t,n){return[t,n]}Id.invert=Id;var jd=function(){return pd(Id).scale(152.63)};function Dd(t,n){var e=mf(t),r=t===n?Sf(t):(e-mf(n))/(n-t),i=e/r+t;if(yf(r)<1e-6)return Id;function o(t,n){var e=i-n,o=r*t;return[e*Sf(o),i-e*mf(o)]}return o.invert=function(t,n){var e=i-n,o=bf(t,yf(e))*Tf(e);return e*r<0&&(o-=lf*Tf(t)*Tf(e)),[o/r,i-Tf(r)*Of(t*t+e*e)]},o}var zd=function(){return gd(Dd).scale(131.154).center([0,13.9389])},Fd=1.340264,Rd=-.081106,qd=893e-6,Ld=.003796,Ud=Of(3)/2;function Bd(t,n){var e=Nf(Ud*Sf(n)),r=e*e,i=r*r*r;return[t*mf(e)/(Ud*(Fd+3*Rd*r+i*(7*qd+9*Ld*r))),e*(Fd+Rd*r+i*(qd+Ld*r))]}Bd.invert=function(t,n){for(var e,r=n,i=r*r,o=i*i*i,u=0;u<12&&(o=(i=(r-=e=(r*(Fd+Rd*i+o*(qd+Ld*i))-n)/(Fd+3*Rd*i+o*(7*qd+9*Ld*i)))*r)*i*i,!(yf(e)<1e-12));++u);return[Ud*t*(Fd+3*Rd*i+o*(7*qd+9*Ld*i))/mf(r),Nf(Sf(r)/Ud)]};var Yd=function(){return pd(Bd).scale(177.158)};function Hd(t,n){var e=mf(n),r=mf(t)*e;return[e*Sf(t)/r,Sf(n)/r]}Hd.invert=wd(_f);var Vd=function(){return pd(Hd).scale(144.049).clipAngle(60)},Xd=function(){var t,n,e,r,i,o,u,a=1,c=0,f=0,s=1,l=1,h=0,d=null,p=1,v=1,g=rd({point:function(t,n){var e=b([t,n]);this.stream.point(e[0],e[1])}}),y=ih;function _(){return p=a*s,v=a*l,o=u=null,b}function b(e){var r=e[0]*p,i=e[1]*v;if(h){var o=i*t-r*n;r=r*t+i*n,i=o}return[r+c,i+f]}return b.invert=function(e){var r=e[0]-c,i=e[1]-f;if(h){var o=i*t+r*n;r=r*t-i*n,i=o}return[r/p,i/v]},b.stream=function(t){return o&&u===t?o:o=g(y(u=t))},b.postclip=function(t){return arguments.length?(y=t,d=e=r=i=null,_()):y},b.clipExtent=function(t){return arguments.length?(y=null==t?(d=e=r=i=null,ih):Sl(d=+t[0][0],e=+t[0][1],r=+t[1][0],i=+t[1][1]),_()):null==d?null:[[d,e],[r,i]]},b.scale=function(t){return arguments.length?(a=+t,_()):a},b.translate=function(t){return arguments.length?(c=+t[0],f=+t[1],_()):[c,f]},b.angle=function(e){return arguments.length?(n=Sf(h=e%360*gf),t=mf(h),_()):h*vf},b.reflectX=function(t){return arguments.length?(s=t?-1:1,_()):s<0},b.reflectY=function(t){return arguments.length?(l=t?-1:1,_()):l<0},b.fitExtent=function(t,n){return ud(b,t,n)},b.fitSize=function(t,n){return ad(b,t,n)},b.fitWidth=function(t,n){return cd(b,t,n)},b.fitHeight=function(t,n){return fd(b,t,n)},b};function Gd(t,n){var e=n*n,r=e*e;return[t*(.8707-.131979*e+r*(r*(.003971*e-.001529*r)-.013791)),n*(1.007226+e*(.015085+r*(.028874*e-.044475-.005916*r)))]}Gd.invert=function(t,n){var e,r=n,i=25;do{var o=r*r,u=o*o;r-=e=(r*(1.007226+o*(.015085+u*(.028874*o-.044475-.005916*u)))-n)/(1.007226+o*(.045255+u*(.259866*o-.311325-.005916*11*u)))}while(yf(e)>1e-6&&--i>0);return[t/(.8707+(o=r*r)*(o*(o*o*o*(.003971-.001529*o)-.013791)-.131979)),r]};var Wd=function(){return pd(Gd).scale(175.295)};function $d(t,n){return[mf(n)*Sf(t),Sf(n)]}$d.invert=wd(Nf);var Zd=function(){return pd($d).scale(249.5).clipAngle(90.000001)};function Kd(t,n){var e=mf(n),r=1+mf(t)*e;return[e*Sf(t)/r,Sf(n)/r]}Kd.invert=wd((function(t){return 2*_f(t)}));var Qd=function(){return pd(Kd).scale(250).clipAngle(142)};function Jd(t,n){return[Af(kf((hf+n)/2)),-t]}Jd.invert=function(t,n){return[-n,2*_f(wf(t))-hf]};var tp=function(){var t=kd(Jd),n=t.center,e=t.rotate;return t.center=function(t){return arguments.length?n([-t[1],t[0]]):[(t=n())[1],-t[0]]},t.rotate=function(t){return arguments.length?e([t[0],t[1],t.length>2?t[2]+90:90]):[(t=e())[0],t[1],t[2]-90]},e([0,0,90]).scale(159.155)};function np(t,n){return t.parent===n.parent?1:2}function ep(t,n){return t+n.x}function rp(t,n){return Math.max(t,n.y)}var ip=function(){var t=np,n=1,e=1,r=!1;function i(i){var o,u=0;i.eachAfter((function(n){var e=n.children;e?(n.x=function(t){return t.reduce(ep,0)/t.length}(e),n.y=function(t){return 1+t.reduce(rp,0)}(e)):(n.x=o?u+=t(n,o):0,n.y=0,o=n)}));var a=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),f=a.x-t(a,c)/2,s=c.x+t(c,a)/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-f)/(s-f)*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 op(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 up(t,n){t instanceof Map?(t=[void 0,t],void 0===n&&(n=cp)):void 0===n&&(n=ap);for(var e,r,i,o,u,a=new lp(t),c=[a];e=c.pop();)if((i=n(e.data))&&(u=(i=Array.from(i)).length))for(e.children=i,o=u-1;o>=0;--o)c.push(r=i[o]=new lp(i[o])),r.parent=e,r.depth=e.depth+1;return a.eachBefore(sp)}function ap(t){return t.children}function cp(t){return Array.isArray(t)?t[1]:null}function fp(t){void 0!==t.data.value&&(t.value=t.data.value),t.data=t.data.data}function sp(t){var n=0;do{t.height=n}while((t=t.parent)&&t.height<++n)}function lp(t){this.data=t,this.depth=this.height=0,this.parent=null}lp.prototype=up.prototype={constructor:lp,count:function(){return this.eachAfter(op)},each:function(t,n){let e=-1;for(const r of this)t.call(n,r,++e,this);return this},eachAfter:function(t,n){for(var e,r,i,o=this,u=[o],a=[],c=-1;o=u.pop();)if(a.push(o),e=o.children)for(r=0,i=e.length;r<i;++r)u.push(e[r]);for(;o=a.pop();)t.call(n,o,++c,this);return this},eachBefore:function(t,n){for(var e,r,i=this,o=[i],u=-1;i=o.pop();)if(t.call(n,i,++u,this),e=i.children)for(r=e.length-1;r>=0;--r)o.push(e[r]);return this},find:function(t,n){let e=-1;for(const r of this)if(t.call(n,r,++e,this))return r},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;t=e.pop(),n=r.pop();for(;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(){return Array.from(this)},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 up(this).eachBefore(fp)},[Symbol.iterator]:function*(){var t,n,e,r,i=this,o=[i];do{for(t=o.reverse(),o=[];i=t.pop();)if(yield i,n=i.children)for(e=0,r=n.length;e<r;++e)o.push(n[e])}while(o.length)}};var hp=function(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}(Array.from(t))).length,o=[];r<i;)n=t[r],e&&vp(e,n)?++r:(e=yp(o=dp(o,n)),r=0);return e};function dp(t,n){var e,r;if(gp(n,t))return[n];for(e=0;e<t.length;++e)if(pp(n,t[e])&&gp(_p(t[e],n),t))return[t[e],n];for(e=0;e<t.length-1;++e)for(r=e+1;r<t.length;++r)if(pp(_p(t[e],t[r]),n)&&pp(_p(t[e],n),t[r])&&pp(_p(t[r],n),t[e])&&gp(bp(t[e],t[r],n),t))return[t[e],t[r],n];throw new Error}function pp(t,n){var e=t.r-n.r,r=n.x-t.x,i=n.y-t.y;return e<0||e*e<r*r+i*i}function vp(t,n){var e=t.r-n.r+1e-9*Math.max(t.r,n.r,1),r=n.x-t.x,i=n.y-t.y;return e>0&&e*e>r*r+i*i}function gp(t,n){for(var e=0;e<n.length;++e)if(!vp(t,n[e]))return!1;return!0}function yp(t){switch(t.length){case 1:return{x:(n=t[0]).x,y:n.y,r:n.r};case 2:return _p(t[0],t[1]);case 3:return bp(t[0],t[1],t[2])}var n}function _p(t,n){var e=t.x,r=t.y,i=t.r,o=n.x,u=n.y,a=n.r,c=o-e,f=u-r,s=a-i,l=Math.sqrt(c*c+f*f);return{x:(e+o+c/l*s)/2,y:(r+u+f/l*s)/2,r:(l+i+a)/2}}function bp(t,n,e){var r=t.x,i=t.y,o=t.r,u=n.x,a=n.y,c=n.r,f=e.x,s=e.y,l=e.r,h=r-u,d=r-f,p=i-a,v=i-s,g=c-o,y=l-o,_=r*r+i*i-o*o,b=_-u*u-a*a+c*c,m=_-f*f-s*s+l*l,x=d*p-h*v,w=(p*m-v*b)/(2*x)-r,M=(v*g-p*y)/x,A=(d*b-h*m)/(2*x)-i,E=(h*y-d*g)/x,S=M*M+E*E-1,T=2*(o+w*M+A*E),O=w*w+A*A-o*o,k=-(S?(T+Math.sqrt(T*T-4*S*O))/(2*S):O/T);return{x:r+w+M*k,y:i+A+E*k,r:k}}function mp(t,n,e){var r,i,o,u,a=t.x-n.x,c=t.y-n.y,f=a*a+c*c;f?(i=n.r+e.r,i*=i,u=t.r+e.r,i>(u*=u)?(r=(f+u-i)/(2*f),o=Math.sqrt(Math.max(0,u/f-r*r)),e.x=t.x-r*a-o*c,e.y=t.y-r*c+o*a):(r=(f+i-u)/(2*f),o=Math.sqrt(Math.max(0,i/f-r*r)),e.x=n.x+r*a-o*c,e.y=n.y+r*c+o*a)):(e.x=n.x+e.r,e.y=n.y)}function xp(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 wp(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 Mp(t){this._=t,this.next=null,this.previous=null}function Ap(t){if(!(o=(n=t,t="object"==typeof n&&"length"in n?n:Array.from(n)).length))return 0;var n,e,r,i,o,u,a,c,f,s,l,h;if((e=t[0]).x=0,e.y=0,!(o>1))return e.r;if(r=t[1],e.x=-r.r,r.x=e.r,r.y=0,!(o>2))return e.r+r.r;mp(r,e,i=t[2]),e=new Mp(e),r=new Mp(r),i=new Mp(i),e.next=i.previous=r,r.next=e.previous=i,i.next=r.previous=e;t:for(c=3;c<o;++c){mp(e._,r._,i=t[c]),i=new Mp(i),f=r.next,s=e.previous,l=r._.r,h=e._.r;do{if(l<=h){if(xp(f._,i._)){r=f,e.next=r,r.previous=e,--c;continue t}l+=f._.r,f=f.next}else{if(xp(s._,i._)){(e=s).next=r,r.previous=e,--c;continue t}h+=s._.r,s=s.previous}}while(f!==s.next);for(i.previous=e,i.next=r,e.next=r.previous=r=i,u=wp(e);(i=i.next)!==r;)(a=wp(i))<u&&(e=i,u=a);r=e.next}for(e=[r._],i=r;(i=i.next)!==r;)e.push(i._);for(i=hp(e),c=0;c<o;++c)(e=t[c]).x-=i.x,e.y-=i.y;return i.r}var Ep=function(t){return Ap(t),t};function Sp(t){return null==t?null:Tp(t)}function Tp(t){if("function"!=typeof t)throw new Error;return t}function Op(){return 0}var kp=function(t){return function(){return t}};function Pp(t){return Math.sqrt(t.value)}var Np=function(){var t=null,n=1,e=1,r=Op;function i(i){return i.x=n/2,i.y=e/2,t?i.eachBefore(Cp(t)).eachAfter(Ip(r,.5)).eachBefore(jp(1)):i.eachBefore(Cp(Pp)).eachAfter(Ip(Op,1)).eachAfter(Ip(r,i.r/Math.min(n,e))).eachBefore(jp(Math.min(n,e)/(2*i.r))),i}return i.radius=function(n){return arguments.length?(t=Sp(n),i):t},i.size=function(t){return arguments.length?(n=+t[0],e=+t[1],i):[n,e]},i.padding=function(t){return arguments.length?(r="function"==typeof t?t:kp(+t),i):r},i};function Cp(t){return function(n){n.children||(n.r=Math.max(0,+t(n)||0))}}function Ip(t,n){return function(e){if(r=e.children){var r,i,o,u=r.length,a=t(e)*n||0;if(a)for(i=0;i<u;++i)r[i].r+=a;if(o=Ap(r),a)for(i=0;i<u;++i)r[i].r-=a;e.r=o+a}}}function jp(t){return function(n){var e=n.parent;n.r*=t,e&&(n.x=e.x+t*n.x,n.y=e.y+t*n.y)}}var Dp=function(t){t.x0=Math.round(t.x0),t.y0=Math.round(t.y0),t.x1=Math.round(t.x1),t.y1=Math.round(t.y1)},zp=function(t,n,e,r,i){for(var o,u=t.children,a=-1,c=u.length,f=t.value&&(r-n)/t.value;++a<c;)(o=u[a]).y0=e,o.y1=i,o.x0=n,o.x1=n+=o.value*f},Fp=function(){var t=1,n=1,e=0,r=!1;function i(i){var o=i.height+1;return i.x0=i.y0=e,i.x1=t,i.y1=n/o,i.eachBefore(function(t,n){return function(r){r.children&&zp(r,r.x0,t*(r.depth+1)/n,r.x1,t*(r.depth+2)/n);var i=r.x0,o=r.y0,u=r.x1-e,a=r.y1-e;u<i&&(i=u=(i+u)/2),a<o&&(o=a=(o+a)/2),r.x0=i,r.y0=o,r.x1=u,r.y1=a}}(n,o)),r&&i.eachBefore(Dp),i}return i.round=function(t){return arguments.length?(r=!!t,i):r},i.size=function(e){return arguments.length?(t=+e[0],n=+e[1],i):[t,n]},i.padding=function(t){return arguments.length?(e=+t,i):e},i},Rp={depth:-1},qp={};function Lp(t){return t.id}function Up(t){return t.parentId}var Bp=function(){var t=Lp,n=Up;function e(e){var r,i,o,u,a,c,f,s=Array.from(e),l=s.length,h=new Map;for(i=0;i<l;++i)r=s[i],a=s[i]=new lp(r),null!=(c=t(r,i,e))&&(c+="")&&(f=a.id=c,h.set(f,h.has(f)?qp:a)),null!=(c=n(r,i,e))&&(c+="")&&(a.parent=c);for(i=0;i<l;++i)if(c=(a=s[i]).parent){if(!(u=h.get(c)))throw new Error("missing: "+c);if(u===qp)throw new Error("ambiguous: "+c);u.children?u.children.push(a):u.children=[a],a.parent=u}else{if(o)throw new Error("multiple roots");o=a}if(!o)throw new Error("no root");if(o.parent=Rp,o.eachBefore((function(t){t.depth=t.parent.depth+1,--l})).eachBefore(sp),o.parent=null,l>0)throw new Error("cycle");return o}return e.id=function(n){return arguments.length?(t=Tp(n),e):t},e.parentId=function(t){return arguments.length?(n=Tp(t),e):n},e};function Yp(t,n){return t.parent===n.parent?1:2}function Hp(t){var n=t.children;return n?n[0]:t.t}function Vp(t){var n=t.children;return n?n[n.length-1]:t.t}function Xp(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 Gp(t,n,e){return t.a.parent===n.parent?t.a:e}function Wp(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}Wp.prototype=Object.create(lp.prototype);var $p=function(){var t=Yp,n=1,e=1,r=null;function i(i){var c=function(t){for(var n,e,r,i,o,u=new Wp(t,0),a=[u];n=a.pop();)if(r=n._.children)for(n.children=new Array(o=r.length),i=o-1;i>=0;--i)a.push(e=n.children[i]=new Wp(r[i],i)),e.parent=n;return(u.parent=new Wp(null,0)).children=[u],u}(i);if(c.eachAfter(o),c.parent.m=-c.z,c.eachBefore(u),r)i.eachBefore(a);else{var f=i,s=i,l=i;i.eachBefore((function(t){t.x<f.x&&(f=t),t.x>s.x&&(s=t),t.depth>l.depth&&(l=t)}));var h=f===s?1:t(f,s)/2,d=h-f.x,p=n/(s.x+h+d),v=e/(l.depth||1);i.eachBefore((function(t){t.x=(t.x+d)*p,t.y=t.depth*v}))}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,u=n,a=e,c=o.parent.children[0],f=o.m,s=u.m,l=a.m,h=c.m;a=Vp(a),o=Hp(o),a&&o;)c=Hp(c),(u=Vp(u)).a=n,(i=a.z+l-o.z-f+t(a._,o._))>0&&(Xp(Gp(a,n,r),n,i),f+=i,s+=i),l+=a.m,f+=o.m,h+=c.m,s+=u.m;a&&!Vp(u)&&(u.t=a,u.m+=l-s),o&&!Hp(c)&&(c.t=o,c.m+=f-h,r=n)}return r}(n,i,n.parent.A||r[0])}function u(t){t._.x=t.z+t.parent.m,t.m+=t.parent.m}function a(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},Zp=function(t,n,e,r,i){for(var o,u=t.children,a=-1,c=u.length,f=t.value&&(i-e)/t.value;++a<c;)(o=u[a]).x0=n,o.x1=r,o.y0=e,o.y1=e+=o.value*f},Kp=(1+Math.sqrt(5))/2;function Qp(t,n,e,r,i,o){for(var u,a,c,f,s,l,h,d,p,v,g,y=[],_=n.children,b=0,m=0,x=_.length,w=n.value;b<x;){c=i-e,f=o-r;do{s=_[m++].value}while(!s&&m<x);for(l=h=s,g=s*s*(v=Math.max(f/c,c/f)/(w*t)),p=Math.max(h/g,g/l);m<x;++m){if(s+=a=_[m].value,a<l&&(l=a),a>h&&(h=a),g=s*s*v,(d=Math.max(h/g,g/l))>p){s-=a;break}p=d}y.push(u={value:s,dice:c<f,children:_.slice(b,m)}),u.dice?zp(u,e,r,i,w?r+=f*s/w:o):Zp(u,e,r,w?e+=c*s/w:i,o),w-=s,b=m}return y}var Jp=function t(n){function e(t,e,r,i,o){Qp(n,t,e,r,i,o)}return e.ratio=function(n){return t((n=+n)>1?n:1)},e}(Kp),tv=function(){var t=Jp,n=!1,e=1,r=1,i=[0],o=Op,u=Op,a=Op,c=Op,f=Op;function s(t){return t.x0=t.y0=0,t.x1=e,t.y1=r,t.eachBefore(l),i=[0],n&&t.eachBefore(Dp),t}function l(n){var e=i[n.depth],r=n.x0+e,s=n.y0+e,l=n.x1-e,h=n.y1-e;l<r&&(r=l=(r+l)/2),h<s&&(s=h=(s+h)/2),n.x0=r,n.y0=s,n.x1=l,n.y1=h,n.children&&(e=i[n.depth+1]=o(n)/2,r+=f(n)-e,s+=u(n)-e,(l-=a(n)-e)<r&&(r=l=(r+l)/2),(h-=c(n)-e)<s&&(s=h=(s+h)/2),t(n,r,s,l,h))}return s.round=function(t){return arguments.length?(n=!!t,s):n},s.size=function(t){return arguments.length?(e=+t[0],r=+t[1],s):[e,r]},s.tile=function(n){return arguments.length?(t=Tp(n),s):t},s.padding=function(t){return arguments.length?s.paddingInner(t).paddingOuter(t):s.paddingInner()},s.paddingInner=function(t){return arguments.length?(o="function"==typeof t?t:kp(+t),s):o},s.paddingOuter=function(t){return arguments.length?s.paddingTop(t).paddingRight(t).paddingBottom(t).paddingLeft(t):s.paddingTop()},s.paddingTop=function(t){return arguments.length?(u="function"==typeof t?t:kp(+t),s):u},s.paddingRight=function(t){return arguments.length?(a="function"==typeof t?t:kp(+t),s):a},s.paddingBottom=function(t){return arguments.length?(c="function"==typeof t?t:kp(+t),s):c},s.paddingLeft=function(t){return arguments.length?(f="function"==typeof t?t:kp(+t),s):f},s},nv=function(t,n,e,r,i){var o,u,a=t.children,c=a.length,f=new Array(c+1);for(f[0]=u=o=0;o<c;++o)f[o+1]=u+=a[o].value;!function t(n,e,r,i,o,u,c){if(n>=e-1){var s=a[n];return s.x0=i,s.y0=o,s.x1=u,void(s.y1=c)}var l=f[n],h=r/2+l,d=n+1,p=e-1;for(;d<p;){var v=d+p>>>1;f[v]<h?d=v+1:p=v}h-f[d-1]<f[d]-h&&n+1<d&&--d;var g=f[d]-l,y=r-g;if(u-i>c-o){var _=r?(i*y+u*g)/r:u;t(n,d,g,i,o,_,c),t(d,e,y,_,o,u,c)}else{var b=r?(o*y+c*g)/r:c;t(n,d,g,i,o,u,b),t(d,e,y,i,b,u,c)}}(0,c,t.value,n,e,r,i)},ev=function(t,n,e,r,i){(1&t.depth?Zp:zp)(t,n,e,r,i)},rv=function t(n){function e(t,e,r,i,o){if((u=t._squarify)&&u.ratio===n)for(var u,a,c,f,s,l=-1,h=u.length,d=t.value;++l<h;){for(c=(a=u[l]).children,f=a.value=0,s=c.length;f<s;++f)a.value+=c[f].value;a.dice?zp(a,e,r,i,d?r+=(o-r)*a.value/d:o):Zp(a,e,r,d?e+=(i-e)*a.value/d:i,o),d-=a.value}else t._squarify=u=Qp(n,t,e,r,i,o),u.ratio=n}return e.ratio=function(n){return t((n=+n)>1?n:1)},e}(Kp),iv=function(t){var n=t.length;return function(e){return t[Math.max(0,Math.min(n-1,Math.floor(e*n)))]}},ov=function(t,n){var e=Je(+t,+n);return function(t){var n=e(t);return n-360*Math.floor(n/360)}},uv=function(t,n){return t=+t,n=+n,function(e){return Math.round(t*(1-e)+n*e)}};function av(t){return((t=Math.exp(t))+1/t)/2}var cv=function t(n,e,r){function i(t,i){var o,u,a=t[0],c=t[1],f=t[2],s=i[0],l=i[1],h=i[2],d=s-a,p=l-c,v=d*d+p*p;if(v<1e-12)u=Math.log(h/f)/n,o=function(t){return[a+t*d,c+t*p,f*Math.exp(n*t*u)]};else{var g=Math.sqrt(v),y=(h*h-f*f+r*v)/(2*f*e*g),_=(h*h-f*f-r*v)/(2*h*e*g),b=Math.log(Math.sqrt(y*y+1)-y),m=Math.log(Math.sqrt(_*_+1)-_);u=(m-b)/n,o=function(t){var r,i=t*u,o=av(b),s=f/(e*g)*(o*(r=n*i+b,((r=Math.exp(2*r))-1)/(r+1))-function(t){return((t=Math.exp(t))-1/t)/2}(b));return[a+s*d,c+s*p,f*o/av(n*i+b)]}}return o.duration=1e3*u*n/Math.SQRT2,o}return i.rho=function(n){var e=Math.max(.001,+n),r=e*e;return t(e,r,r*r)},i}(Math.SQRT2,2,4);function fv(t){return function(n,e){var r=t((n=Ve(n)).h,(e=Ve(e)).h),i=nr(n.s,e.s),o=nr(n.l,e.l),u=nr(n.opacity,e.opacity);return function(t){return n.h=r(t),n.s=i(t),n.l=o(t),n.opacity=u(t),n+""}}}var sv=fv(Je),lv=fv(nr);function hv(t,n){var e=nr((t=Zo(t)).l,(n=Zo(n)).l),r=nr(t.a,n.a),i=nr(t.b,n.b),o=nr(t.opacity,n.opacity);return function(n){return t.l=e(n),t.a=r(n),t.b=i(n),t.opacity=o(n),t+""}}function dv(t){return function(n,e){var r=t((n=iu(n)).h,(e=iu(e)).h),i=nr(n.c,e.c),o=nr(n.l,e.l),u=nr(n.opacity,e.opacity);return function(t){return n.h=r(t),n.c=i(t),n.l=o(t),n.opacity=u(t),n+""}}}var pv=dv(Je),vv=dv(nr);function gv(t){return function n(e){function r(n,r){var i=t((n=hu(n)).h,(r=hu(r)).h),o=nr(n.s,r.s),u=nr(n.l,r.l),a=nr(n.opacity,r.opacity);return function(t){return n.h=i(t),n.s=o(t),n.l=u(Math.pow(t,e)),n.opacity=a(t),n+""}}return e=+e,r.gamma=n,r}(1)}var yv=gv(Je),_v=gv(nr);function bv(t,n){void 0===n&&(n=t,t=_r);for(var e=0,r=n.length-1,i=n[0],o=new Array(r<0?0:r);e<r;)o[e]=t(i,i=n[++e]);return function(t){var n=Math.max(0,Math.min(r-1,Math.floor(t*=r)));return o[n](t-n)}}var mv=function(t,n){for(var e=new Array(n),r=0;r<n;++r)e[r]=t(r/(n-1));return e},xv=function(t){for(var n,e=-1,r=t.length,i=t[r-1],o=0;++e<r;)n=i,i=t[e],o+=n[1]*i[0]-n[0]*i[1];return o/2},wv=function(t){for(var n,e,r=-1,i=t.length,o=0,u=0,a=t[i-1],c=0;++r<i;)n=a,a=t[r],c+=e=n[0]*a[1]-a[0]*n[1],o+=(n[0]+a[0])*e,u+=(n[1]+a[1])*e;return[o/(c*=3),u/c]};function Mv(t,n){return t[0]-n[0]||t[1]-n[1]}function Av(t){const n=t.length,e=[0,1];let r,i=2;for(r=2;r<n;++r){for(;i>1&&(o=t[e[i-2]],u=t[e[i-1]],a=t[r],(u[0]-o[0])*(a[1]-o[1])-(u[1]-o[1])*(a[0]-o[0])<=0);)--i;e[i++]=r}var o,u,a;return e.slice(0,i)}var Ev=function(t){if((e=t.length)<3)return null;var n,e,r=new Array(e),i=new Array(e);for(n=0;n<e;++n)r[n]=[+t[n][0],+t[n][1],n];for(r.sort(Mv),n=0;n<e;++n)i[n]=[r[n][0],-r[n][1]];var o=Av(r),u=Av(i),a=u[0]===o[0],c=u[u.length-1]===o[o.length-1],f=[];for(n=o.length-1;n>=0;--n)f.push(t[r[o[n]][2]]);for(n=+a;n<u.length-c;++n)f.push(t[r[u[n]][2]]);return f},Sv=function(t,n){for(var e,r,i=t.length,o=t[i-1],u=n[0],a=n[1],c=o[0],f=o[1],s=!1,l=0;l<i;++l)e=(o=t[l])[0],(r=o[1])>a!=f>a&&u<(c-e)*(a-r)/(f-r)+e&&(s=!s),c=e,f=r;return s},Tv=function(t){for(var n,e,r=-1,i=t.length,o=t[i-1],u=o[0],a=o[1],c=0;++r<i;)n=u,e=a,n-=u=(o=t[r])[0],e-=a=o[1],c+=Math.hypot(n,e);return c},Ov=Math.random,kv=function t(n){function e(t,e){return t=null==t?0:+t,e=null==e?1:+e,1===arguments.length?(e=t,t=0):e-=t,function(){return n()*e+t}}return e.source=t,e}(Ov),Pv=function t(n){function e(t,e){return arguments.length<2&&(e=t,t=0),t=Math.floor(t),e=Math.floor(e)-t,function(){return Math.floor(n()*e+t)}}return e.source=t,e}(Ov),Nv=function t(n){function e(t,e){var r,i;return t=null==t?0:+t,e=null==e?1:+e,function(){var o;if(null!=r)o=r,r=null;else do{r=2*n()-1,o=2*n()-1,i=r*r+o*o}while(!i||i>1);return t+e*o*Math.sqrt(-2*Math.log(i)/i)}}return e.source=t,e}(Ov),Cv=function t(n){var e=Nv.source(n);function r(){var t=e.apply(this,arguments);return function(){return Math.exp(t())}}return r.source=t,r}(Ov),Iv=function t(n){function e(t){return(t=+t)<=0?()=>0:function(){for(var e=0,r=t;r>1;--r)e+=n();return e+r*n()}}return e.source=t,e}(Ov),jv=function t(n){var e=Iv.source(n);function r(t){if(0==(t=+t))return n;var r=e(t);return function(){return r()/t}}return r.source=t,r}(Ov),Dv=function t(n){function e(t){return function(){return-Math.log1p(-n())/t}}return e.source=t,e}(Ov),zv=function t(n){function e(t){if((t=+t)<0)throw new RangeError("invalid alpha");return t=1/-t,function(){return Math.pow(1-n(),t)}}return e.source=t,e}(Ov),Fv=function t(n){function e(t){if((t=+t)<0||t>1)throw new RangeError("invalid p");return function(){return Math.floor(n()+t)}}return e.source=t,e}(Ov),Rv=function t(n){function e(t){if((t=+t)<0||t>1)throw new RangeError("invalid p");return 0===t?()=>1/0:1===t?()=>1:(t=Math.log1p(-t),function(){return 1+Math.floor(Math.log1p(-n())/t)})}return e.source=t,e}(Ov),qv=function t(n){var e=Nv.source(n)();function r(t,r){if((t=+t)<0)throw new RangeError("invalid k");if(0===t)return()=>0;if(r=null==r?1:+r,1===t)return()=>-Math.log1p(-n())*r;var i=(t<1?t+1:t)-1/3,o=1/(3*Math.sqrt(i)),u=t<1?()=>Math.pow(n(),1/t):()=>1;return function(){do{do{var t=e(),a=1+o*t}while(a<=0);a*=a*a;var c=1-n()}while(c>=1-.0331*t*t*t*t&&Math.log(c)>=.5*t*t+i*(1-a+Math.log(a)));return i*a*u()*r}}return r.source=t,r}(Ov),Lv=function t(n){var e=qv.source(n);function r(t,n){var r=e(t),i=e(n);return function(){var t=r();return 0===t?0:t/(t+i())}}return r.source=t,r}(Ov),Uv=function t(n){var e=Rv.source(n),r=Lv.source(n);function i(t,n){return t=+t,(n=+n)>=1?()=>t:n<=0?()=>0:function(){for(var i=0,o=t,u=n;o*u>16&&o*(1-u)>16;){var a=Math.floor((o+1)*u),c=r(a,o-a+1)();c<=u?(i+=a,o-=a,u=(u-c)/(1-c)):(o=a-1,u/=c)}for(var f=u<.5,s=e(f?u:1-u),l=s(),h=0;l<=o;++h)l+=s();return i+(f?h:o-h)}}return i.source=t,i}(Ov),Bv=function t(n){function e(t,e,r){var i;return 0==(t=+t)?i=t=>-Math.log(t):(t=1/t,i=n=>Math.pow(n,t)),e=null==e?0:+e,r=null==r?1:+r,function(){return e+r*i(-Math.log1p(-n()))}}return e.source=t,e}(Ov),Yv=function t(n){function e(t,e){return t=null==t?0:+t,e=null==e?1:+e,function(){return t+e*Math.tan(Math.PI*n())}}return e.source=t,e}(Ov),Hv=function t(n){function e(t,e){return t=null==t?0:+t,e=null==e?1:+e,function(){var r=n();return t+e*Math.log(r/(1-r))}}return e.source=t,e}(Ov),Vv=function t(n){var e=qv.source(n),r=Uv.source(n);function i(t){return function(){for(var i=0,o=t;o>16;){var u=Math.floor(.875*o),a=e(u)();if(a>o)return i+r(u-1,o/a)();i+=u,o-=a}for(var c=-Math.log1p(-n()),f=0;c<=o;++f)c-=Math.log1p(-n());return i+f}}return i.source=t,i}(Ov);const Xv=1/4294967296;function Gv(t=Math.random()){let n=0|(0<=t&&t<1?t/Xv:Math.abs(t));return()=>(n=1664525*n+1013904223|0,Xv*(n>>>0))}function Wv(t,n){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(n).domain(t)}return this}function $v(t,n){switch(arguments.length){case 0:break;case 1:"function"==typeof t?this.interpolator(t):this.range(t);break;default:this.domain(t),"function"==typeof n?this.interpolator(n):this.range(n)}return this}const Zv=Symbol("implicit");function Kv(){var t=new Map,n=[],e=[],r=Zv;function i(i){var o=i+"",u=t.get(o);if(!u){if(r!==Zv)return r;t.set(o,u=n.push(i))}return e[(u-1)%e.length]}return i.domain=function(e){if(!arguments.length)return n.slice();n=[],t=new Map;for(const r of e){const e=r+"";t.has(e)||t.set(e,n.push(r))}return i},i.range=function(t){return arguments.length?(e=Array.from(t),i):e.slice()},i.unknown=function(t){return arguments.length?(r=t,i):r},i.copy=function(){return Kv(n,e).unknown(r)},Wv.apply(i,arguments),i}function Qv(){var t,n,e=Kv().unknown(void 0),r=e.domain,i=e.range,o=0,u=1,a=!1,c=0,f=0,s=.5;function l(){var e=r().length,l=u<o,h=l?u:o,d=l?o:u;t=(d-h)/Math.max(1,e-c+2*f),a&&(t=Math.floor(t)),h+=(d-h-t*(e-c))*s,n=t*(1-c),a&&(h=Math.round(h),n=Math.round(n));var p=at(e).map((function(n){return h+t*n}));return i(l?p.reverse():p)}return delete e.unknown,e.domain=function(t){return arguments.length?(r(t),l()):r()},e.range=function(t){return arguments.length?([o,u]=t,o=+o,u=+u,l()):[o,u]},e.rangeRound=function(t){return[o,u]=t,o=+o,u=+u,a=!0,l()},e.bandwidth=function(){return n},e.step=function(){return t},e.round=function(t){return arguments.length?(a=!!t,l()):a},e.padding=function(t){return arguments.length?(c=Math.min(1,f=+t),l()):c},e.paddingInner=function(t){return arguments.length?(c=Math.min(1,t),l()):c},e.paddingOuter=function(t){return arguments.length?(f=+t,l()):f},e.align=function(t){return arguments.length?(s=Math.max(0,Math.min(1,t)),l()):s},e.copy=function(){return Qv(r(),[o,u]).round(a).paddingInner(c).paddingOuter(f).align(s)},Wv.apply(l(),arguments)}function Jv(t){var n=t.copy;return t.padding=t.paddingOuter,delete t.paddingInner,delete t.paddingOuter,t.copy=function(){return Jv(n())},t}function tg(){return Jv(Qv.apply(null,arguments).paddingInner(1))}function ng(t){return+t}var eg=[0,1];function rg(t){return t}function ig(t,n){return(n-=t=+t)?function(e){return(e-t)/n}:(e=isNaN(n)?NaN:.5,function(){return e});var e}function og(t,n,e){var r=t[0],i=t[1],o=n[0],u=n[1];return i<r?(r=ig(i,r),o=e(u,o)):(r=ig(r,i),o=e(o,u)),function(t){return o(r(t))}}function ug(t,n,e){var r=Math.min(t.length,n.length)-1,i=new Array(r),o=new Array(r),u=-1;for(t[r]<t[0]&&(t=t.slice().reverse(),n=n.slice().reverse());++u<r;)i[u]=ig(t[u],t[u+1]),o[u]=e(n[u],n[u+1]);return function(n){var e=l(t,n,1,r)-1;return o[e](i[e](n))}}function ag(t,n){return n.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function cg(){var t,n,e,r,i,o,u=eg,a=eg,c=_r,f=rg;function s(){var t,n,e,c=Math.min(u.length,a.length);return f!==rg&&(t=u[0],n=u[c-1],t>n&&(e=t,t=n,n=e),f=function(e){return Math.max(t,Math.min(n,e))}),r=c>2?ug:og,i=o=null,l}function l(n){return isNaN(n=+n)?e:(i||(i=r(u.map(t),a,c)))(t(f(n)))}return l.invert=function(e){return f(n((o||(o=r(a,u.map(t),lr)))(e)))},l.domain=function(t){return arguments.length?(u=Array.from(t,ng),s()):u.slice()},l.range=function(t){return arguments.length?(a=Array.from(t),s()):a.slice()},l.rangeRound=function(t){return a=Array.from(t),c=uv,s()},l.clamp=function(t){return arguments.length?(f=!!t||rg,s()):f!==rg},l.interpolate=function(t){return arguments.length?(c=t,s()):c},l.unknown=function(t){return arguments.length?(e=t,l):e},function(e,r){return t=e,n=r,s()}}function fg(){return cg()(rg,rg)}function sg(t,n,e,r){var i,o=U(t,n,e);switch((r=Wc(null==r?",f":r)).type){case"s":var u=Math.max(Math.abs(t),Math.abs(n));return null!=r.precision||isNaN(i=ff(o,u))||(r.precision=i),Jc(r,u);case"":case"e":case"g":case"p":case"r":null!=r.precision||isNaN(i=sf(o,Math.max(Math.abs(t),Math.abs(n))))||(r.precision=i-("e"===r.type));break;case"f":case"%":null!=r.precision||isNaN(i=cf(o))||(r.precision=i-2*("%"===r.type))}return Qc(r)}function lg(t){var n=t.domain;return t.ticks=function(t){var e=n();return q(e[0],e[e.length-1],null==t?10:t)},t.tickFormat=function(t,e){var r=n();return sg(r[0],r[r.length-1],null==t?10:t,e)},t.nice=function(e){null==e&&(e=10);var r,i,o=n(),u=0,a=o.length-1,c=o[u],f=o[a],s=10;for(f<c&&(i=c,c=f,f=i,i=u,u=a,a=i);s-- >0;){if((i=L(c,f,e))===r)return o[u]=c,o[a]=f,n(o);if(i>0)c=Math.floor(c/i)*i,f=Math.ceil(f/i)*i;else{if(!(i<0))break;c=Math.ceil(c*i)/i,f=Math.floor(f*i)/i}r=i}return t},t}function hg(){var t=fg();return t.copy=function(){return ag(t,hg())},Wv.apply(t,arguments),lg(t)}function dg(t){var n;function e(t){return isNaN(t=+t)?n:t}return e.invert=e,e.domain=e.range=function(n){return arguments.length?(t=Array.from(n,ng),e):t.slice()},e.unknown=function(t){return arguments.length?(n=t,e):n},e.copy=function(){return dg(t).unknown(n)},t=arguments.length?Array.from(t,ng):[0,1],lg(e)}function pg(t,n){var e,r=0,i=(t=t.slice()).length-1,o=t[r],u=t[i];return u<o&&(e=r,r=i,i=e,e=o,o=u,u=e),t[r]=n.floor(o),t[i]=n.ceil(u),t}function vg(t){return Math.log(t)}function gg(t){return Math.exp(t)}function yg(t){return-Math.log(-t)}function _g(t){return-Math.exp(-t)}function bg(t){return isFinite(t)?+("1e"+t):t<0?0:t}function mg(t){return function(n){return-t(-n)}}function xg(t){var n,e,r=t(vg,gg),i=r.domain,o=10;function u(){return n=function(t){return t===Math.E?Math.log:10===t&&Math.log10||2===t&&Math.log2||(t=Math.log(t),function(n){return Math.log(n)/t})}(o),e=function(t){return 10===t?bg:t===Math.E?Math.exp:function(n){return Math.pow(t,n)}}(o),i()[0]<0?(n=mg(n),e=mg(e),t(yg,_g)):t(vg,gg),r}return r.base=function(t){return arguments.length?(o=+t,u()):o},r.domain=function(t){return arguments.length?(i(t),u()):i()},r.ticks=function(t){var r,u=i(),a=u[0],c=u[u.length-1];(r=c<a)&&(h=a,a=c,c=h);var f,s,l,h=n(a),d=n(c),p=null==t?10:+t,v=[];if(!(o%1)&&d-h<p){if(h=Math.floor(h),d=Math.ceil(d),a>0){for(;h<=d;++h)for(s=1,f=e(h);s<o;++s)if(!((l=f*s)<a)){if(l>c)break;v.push(l)}}else for(;h<=d;++h)for(s=o-1,f=e(h);s>=1;--s)if(!((l=f*s)<a)){if(l>c)break;v.push(l)}2*v.length<p&&(v=q(a,c,p))}else v=q(h,d,Math.min(d-h,p)).map(e);return r?v.reverse():v},r.tickFormat=function(t,i){if(null==i&&(i=10===o?".0e":","),"function"!=typeof i&&(i=Qc(i)),t===1/0)return i;null==t&&(t=10);var u=Math.max(1,o*t/r.ticks().length);return function(t){var r=t/e(Math.round(n(t)));return r*o<o-.5&&(r*=o),r<=u?i(t):""}},r.nice=function(){return i(pg(i(),{floor:function(t){return e(Math.floor(n(t)))},ceil:function(t){return e(Math.ceil(n(t)))}}))},r}function wg(){var t=xg(cg()).domain([1,10]);return t.copy=function(){return ag(t,wg()).base(t.base())},Wv.apply(t,arguments),t}function Mg(t){return function(n){return Math.sign(n)*Math.log1p(Math.abs(n/t))}}function Ag(t){return function(n){return Math.sign(n)*Math.expm1(Math.abs(n))*t}}function Eg(t){var n=1,e=t(Mg(n),Ag(n));return e.constant=function(e){return arguments.length?t(Mg(n=+e),Ag(n)):n},lg(e)}function Sg(){var t=Eg(cg());return t.copy=function(){return ag(t,Sg()).constant(t.constant())},Wv.apply(t,arguments)}function Tg(t){return function(n){return n<0?-Math.pow(-n,t):Math.pow(n,t)}}function Og(t){return t<0?-Math.sqrt(-t):Math.sqrt(t)}function kg(t){return t<0?-t*t:t*t}function Pg(t){var n=t(rg,rg),e=1;function r(){return 1===e?t(rg,rg):.5===e?t(Og,kg):t(Tg(e),Tg(1/e))}return n.exponent=function(t){return arguments.length?(e=+t,r()):e},lg(n)}function Ng(){var t=Pg(cg());return t.copy=function(){return ag(t,Ng()).exponent(t.exponent())},Wv.apply(t,arguments),t}function Cg(){return Ng.apply(null,arguments).exponent(.5)}function Ig(t){return Math.sign(t)*t*t}function jg(t){return Math.sign(t)*Math.sqrt(Math.abs(t))}function Dg(){var t,n=fg(),e=[0,1],r=!1;function i(e){var i=jg(n(e));return isNaN(i)?t:r?Math.round(i):i}return i.invert=function(t){return n.invert(Ig(t))},i.domain=function(t){return arguments.length?(n.domain(t),i):n.domain()},i.range=function(t){return arguments.length?(n.range((e=Array.from(t,ng)).map(Ig)),i):e.slice()},i.rangeRound=function(t){return i.range(t).round(!0)},i.round=function(t){return arguments.length?(r=!!t,i):r},i.clamp=function(t){return arguments.length?(n.clamp(t),i):n.clamp()},i.unknown=function(n){return arguments.length?(t=n,i):t},i.copy=function(){return Dg(n.domain(),e).round(r).clamp(n.clamp()).unknown(t)},Wv.apply(i,arguments),lg(i)}function zg(){var t,n=[],e=[],r=[];function o(){var t=0,i=Math.max(1,e.length);for(r=new Array(i-1);++t<i;)r[t-1]=Z(n,t/i);return u}function u(n){return isNaN(n=+n)?t:e[l(r,n)]}return u.invertExtent=function(t){var i=e.indexOf(t);return i<0?[NaN,NaN]:[i>0?r[i-1]:n[0],i<r.length?r[i]:n[n.length-1]]},u.domain=function(t){if(!arguments.length)return n.slice();n=[];for(let e of t)null==e||isNaN(e=+e)||n.push(e);return n.sort(i),o()},u.range=function(t){return arguments.length?(e=Array.from(t),o()):e.slice()},u.unknown=function(n){return arguments.length?(t=n,u):t},u.quantiles=function(){return r.slice()},u.copy=function(){return zg().domain(n).range(e).unknown(t)},Wv.apply(u,arguments)}function Fg(){var t,n=0,e=1,r=1,i=[.5],o=[0,1];function u(n){return n<=n?o[l(i,n,0,r)]:t}function a(){var t=-1;for(i=new Array(r);++t<r;)i[t]=((t+1)*e-(t-r)*n)/(r+1);return u}return u.domain=function(t){return arguments.length?([n,e]=t,n=+n,e=+e,a()):[n,e]},u.range=function(t){return arguments.length?(r=(o=Array.from(t)).length-1,a()):o.slice()},u.invertExtent=function(t){var u=o.indexOf(t);return u<0?[NaN,NaN]:u<1?[n,i[0]]:u>=r?[i[r-1],e]:[i[u-1],i[u]]},u.unknown=function(n){return arguments.length?(t=n,u):u},u.thresholds=function(){return i.slice()},u.copy=function(){return Fg().domain([n,e]).range(o).unknown(t)},Wv.apply(lg(u),arguments)}function Rg(){var t,n=[.5],e=[0,1],r=1;function i(i){return i<=i?e[l(n,i,0,r)]:t}return i.domain=function(t){return arguments.length?(n=Array.from(t),r=Math.min(n.length,e.length-1),i):n.slice()},i.range=function(t){return arguments.length?(e=Array.from(t),r=Math.min(n.length,e.length-1),i):e.slice()},i.invertExtent=function(t){var r=e.indexOf(t);return[n[r-1],n[r]]},i.unknown=function(n){return arguments.length?(t=n,i):t},i.copy=function(){return Rg().domain(n).range(e).unknown(t)},Wv.apply(i,arguments)}var qg=new Date,Lg=new Date;function Ug(t,n,e,r){function i(n){return t(n=0===arguments.length?new Date:new Date(+n)),n}return i.floor=function(n){return t(n=new Date(+n)),n},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-n<e-t?n:e},i.offset=function(t,e){return n(t=new Date(+t),null==e?1:Math.floor(e)),t},i.range=function(e,r,o){var u,a=[];if(e=i.ceil(e),o=null==o?1:Math.floor(o),!(e<r&&o>0))return a;do{a.push(u=new Date(+e)),n(e,o),t(e)}while(u<e&&e<r);return a},i.filter=function(e){return Ug((function(n){if(n>=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 qg.setTime(+n),Lg.setTime(+r),t(qg),t(Lg),Math.floor(e(qg,Lg))},i.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?i.filter(r?function(n){return r(n)%t==0}:function(n){return i.count(0,n)%t==0}):i:null}),i}var Bg=Ug((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()}));Bg.every=function(t){return isFinite(t=Math.floor(t))&&t>0?Ug((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};var Yg=Bg,Hg=Bg.range,Vg=Ug((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()})),Xg=Vg,Gg=Vg.range;function Wg(t){return Ug((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-6e4*(n.getTimezoneOffset()-t.getTimezoneOffset()))/6048e5}))}var $g=Wg(0),Zg=Wg(1),Kg=Wg(2),Qg=Wg(3),Jg=Wg(4),ty=Wg(5),ny=Wg(6),ey=$g.range,ry=Zg.range,iy=Kg.range,oy=Qg.range,uy=Jg.range,ay=ty.range,cy=ny.range,fy=Ug(t=>t.setHours(0,0,0,0),(t,n)=>t.setDate(t.getDate()+n),(t,n)=>(n-t-6e4*(n.getTimezoneOffset()-t.getTimezoneOffset()))/864e5,t=>t.getDate()-1),sy=fy,ly=fy.range,hy=Ug((function(t){t.setTime(t-t.getMilliseconds()-1e3*t.getSeconds()-6e4*t.getMinutes())}),(function(t,n){t.setTime(+t+36e5*n)}),(function(t,n){return(n-t)/36e5}),(function(t){return t.getHours()})),dy=hy,py=hy.range,vy=Ug((function(t){t.setTime(t-t.getMilliseconds()-1e3*t.getSeconds())}),(function(t,n){t.setTime(+t+6e4*n)}),(function(t,n){return(n-t)/6e4}),(function(t){return t.getMinutes()})),gy=vy,yy=vy.range,_y=Ug((function(t){t.setTime(t-t.getMilliseconds())}),(function(t,n){t.setTime(+t+1e3*n)}),(function(t,n){return(n-t)/1e3}),(function(t){return t.getUTCSeconds()})),by=_y,my=_y.range,xy=Ug((function(){}),(function(t,n){t.setTime(+t+n)}),(function(t,n){return n-t}));xy.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?Ug((function(n){n.setTime(Math.floor(n/t)*t)}),(function(n,e){n.setTime(+n+e*t)}),(function(n,e){return(e-n)/t})):xy:null};var wy=xy,My=xy.range;function Ay(t){return Ug((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)/6048e5}))}var Ey=Ay(0),Sy=Ay(1),Ty=Ay(2),Oy=Ay(3),ky=Ay(4),Py=Ay(5),Ny=Ay(6),Cy=Ey.range,Iy=Sy.range,jy=Ty.range,Dy=Oy.range,zy=ky.range,Fy=Py.range,Ry=Ny.range,qy=Ug((function(t){t.setUTCHours(0,0,0,0)}),(function(t,n){t.setUTCDate(t.getUTCDate()+n)}),(function(t,n){return(n-t)/864e5}),(function(t){return t.getUTCDate()-1})),Ly=qy,Uy=qy.range,By=Ug((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()}));By.every=function(t){return isFinite(t=Math.floor(t))&&t>0?Ug((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};var Yy=By,Hy=By.range;function Vy(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 Xy(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 Gy(t,n,e){return{y:t,m:n,d:e,H:0,M:0,S:0,L:0}}function Wy(t){var n=t.dateTime,e=t.date,r=t.time,i=t.periods,o=t.days,u=t.shortDays,a=t.months,c=t.shortMonths,f=u_(i),s=a_(i),l=u_(o),h=a_(o),d=u_(u),p=a_(u),v=u_(a),g=a_(a),y=u_(c),_=a_(c),b={a:function(t){return u[t.getDay()]},A:function(t){return o[t.getDay()]},b:function(t){return c[t.getMonth()]},B:function(t){return a[t.getMonth()]},c:null,d:O_,e:O_,f:I_,g:H_,G:X_,H:k_,I:P_,j:N_,L:C_,m:j_,M:D_,p:function(t){return i[+(t.getHours()>=12)]},q:function(t){return 1+~~(t.getMonth()/3)},Q:vb,s:gb,S:z_,u:F_,U:R_,V:L_,w:U_,W:B_,x:null,X:null,y:Y_,Y:V_,Z:G_,"%":pb},m={a:function(t){return u[t.getUTCDay()]},A:function(t){return o[t.getUTCDay()]},b:function(t){return c[t.getUTCMonth()]},B:function(t){return a[t.getUTCMonth()]},c:null,d:W_,e:W_,f:J_,g:sb,G:hb,H:$_,I:Z_,j:K_,L:Q_,m:tb,M:nb,p:function(t){return i[+(t.getUTCHours()>=12)]},q:function(t){return 1+~~(t.getUTCMonth()/3)},Q:vb,s:gb,S:eb,u:rb,U:ib,V:ub,w:ab,W:cb,x:null,X:null,y:fb,Y:lb,Z:db,"%":pb},x={a:function(t,n,e){var r=d.exec(n.slice(e));return r?(t.w=p.get(r[0].toLowerCase()),e+r[0].length):-1},A:function(t,n,e){var r=l.exec(n.slice(e));return r?(t.w=h.get(r[0].toLowerCase()),e+r[0].length):-1},b:function(t,n,e){var r=y.exec(n.slice(e));return r?(t.m=_.get(r[0].toLowerCase()),e+r[0].length):-1},B:function(t,n,e){var r=v.exec(n.slice(e));return r?(t.m=g.get(r[0].toLowerCase()),e+r[0].length):-1},c:function(t,e,r){return A(t,n,e,r)},d:__,e:__,f:A_,g:p_,G:d_,H:m_,I:m_,j:b_,L:M_,m:y_,M:x_,p:function(t,n,e){var r=f.exec(n.slice(e));return r?(t.p=s.get(r[0].toLowerCase()),e+r[0].length):-1},q:g_,Q:S_,s:T_,S:w_,u:f_,U:s_,V:l_,w:c_,W:h_,x:function(t,n,r){return A(t,e,n,r)},X:function(t,n,e){return A(t,r,n,e)},y:p_,Y:d_,Z:v_,"%":E_};function w(t,n){return function(e){var r,i,o,u=[],a=-1,c=0,f=t.length;for(e instanceof Date||(e=new Date(+e));++a<f;)37===t.charCodeAt(a)&&(u.push(t.slice(c,a)),null!=(i=t_[r=t.charAt(++a)])?r=t.charAt(++a):i="e"===r?" ":"0",(o=n[r])&&(r=o(e,i)),u.push(r),c=a+1);return u.push(t.slice(c,a)),u.join("")}}function M(t,n){return function(e){var r,i,o=Gy(1900,void 0,1);if(A(o,t,e+="",0)!=e.length)return null;if("Q"in o)return new Date(o.Q);if("s"in o)return new Date(1e3*o.s+("L"in o?o.L:0));if(n&&!("Z"in o)&&(o.Z=0),"p"in o&&(o.H=o.H%12+12*o.p),void 0===o.m&&(o.m="q"in o?o.q:0),"V"in o){if(o.V<1||o.V>53)return null;"w"in o||(o.w=1),"Z"in o?(i=(r=Xy(Gy(o.y,0,1))).getUTCDay(),r=i>4||0===i?Sy.ceil(r):Sy(r),r=Ly.offset(r,7*(o.V-1)),o.y=r.getUTCFullYear(),o.m=r.getUTCMonth(),o.d=r.getUTCDate()+(o.w+6)%7):(i=(r=Vy(Gy(o.y,0,1))).getDay(),r=i>4||0===i?Zg.ceil(r):Zg(r),r=sy.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?Xy(Gy(o.y,0,1)).getUTCDay():Vy(Gy(o.y,0,1)).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,Xy(o)):Vy(o)}}function A(t,n,e,r){for(var i,o,u=0,a=n.length,c=e.length;u<a;){if(r>=c)return-1;if(37===(i=n.charCodeAt(u++))){if(i=n.charAt(u++),!(o=x[i in t_?n.charAt(u++):i])||(r=o(t,e,r))<0)return-1}else if(i!=e.charCodeAt(r++))return-1}return r}return b.x=w(e,b),b.X=w(r,b),b.c=w(n,b),m.x=w(e,m),m.X=w(r,m),m.c=w(n,m),{format:function(t){var n=w(t+="",b);return n.toString=function(){return t},n},parse:function(t){var n=M(t+="",!1);return n.toString=function(){return t},n},utcFormat:function(t){var n=w(t+="",m);return n.toString=function(){return t},n},utcParse:function(t){var n=M(t+="",!0);return n.toString=function(){return t},n}}}var $y,Zy,Ky,Qy,Jy,t_={"-":"",_:" ",0:"0"},n_=/^\s*\d+/,e_=/^%/,r_=/[\\^$*+?|[\]().{}]/g;function i_(t,n,e){var r=t<0?"-":"",i=(r?-t:t)+"",o=i.length;return r+(o<e?new Array(e-o+1).join(n)+i:i)}function o_(t){return t.replace(r_,"\\$&")}function u_(t){return new RegExp("^(?:"+t.map(o_).join("|")+")","i")}function a_(t){return new Map(t.map((t,n)=>[t.toLowerCase(),n]))}function c_(t,n,e){var r=n_.exec(n.slice(e,e+1));return r?(t.w=+r[0],e+r[0].length):-1}function f_(t,n,e){var r=n_.exec(n.slice(e,e+1));return r?(t.u=+r[0],e+r[0].length):-1}function s_(t,n,e){var r=n_.exec(n.slice(e,e+2));return r?(t.U=+r[0],e+r[0].length):-1}function l_(t,n,e){var r=n_.exec(n.slice(e,e+2));return r?(t.V=+r[0],e+r[0].length):-1}function h_(t,n,e){var r=n_.exec(n.slice(e,e+2));return r?(t.W=+r[0],e+r[0].length):-1}function d_(t,n,e){var r=n_.exec(n.slice(e,e+4));return r?(t.y=+r[0],e+r[0].length):-1}function p_(t,n,e){var r=n_.exec(n.slice(e,e+2));return r?(t.y=+r[0]+(+r[0]>68?1900:2e3),e+r[0].length):-1}function v_(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 g_(t,n,e){var r=n_.exec(n.slice(e,e+1));return r?(t.q=3*r[0]-3,e+r[0].length):-1}function y_(t,n,e){var r=n_.exec(n.slice(e,e+2));return r?(t.m=r[0]-1,e+r[0].length):-1}function __(t,n,e){var r=n_.exec(n.slice(e,e+2));return r?(t.d=+r[0],e+r[0].length):-1}function b_(t,n,e){var r=n_.exec(n.slice(e,e+3));return r?(t.m=0,t.d=+r[0],e+r[0].length):-1}function m_(t,n,e){var r=n_.exec(n.slice(e,e+2));return r?(t.H=+r[0],e+r[0].length):-1}function x_(t,n,e){var r=n_.exec(n.slice(e,e+2));return r?(t.M=+r[0],e+r[0].length):-1}function w_(t,n,e){var r=n_.exec(n.slice(e,e+2));return r?(t.S=+r[0],e+r[0].length):-1}function M_(t,n,e){var r=n_.exec(n.slice(e,e+3));return r?(t.L=+r[0],e+r[0].length):-1}function A_(t,n,e){var r=n_.exec(n.slice(e,e+6));return r?(t.L=Math.floor(r[0]/1e3),e+r[0].length):-1}function E_(t,n,e){var r=e_.exec(n.slice(e,e+1));return r?e+r[0].length:-1}function S_(t,n,e){var r=n_.exec(n.slice(e));return r?(t.Q=+r[0],e+r[0].length):-1}function T_(t,n,e){var r=n_.exec(n.slice(e));return r?(t.s=+r[0],e+r[0].length):-1}function O_(t,n){return i_(t.getDate(),n,2)}function k_(t,n){return i_(t.getHours(),n,2)}function P_(t,n){return i_(t.getHours()%12||12,n,2)}function N_(t,n){return i_(1+sy.count(Yg(t),t),n,3)}function C_(t,n){return i_(t.getMilliseconds(),n,3)}function I_(t,n){return C_(t,n)+"000"}function j_(t,n){return i_(t.getMonth()+1,n,2)}function D_(t,n){return i_(t.getMinutes(),n,2)}function z_(t,n){return i_(t.getSeconds(),n,2)}function F_(t){var n=t.getDay();return 0===n?7:n}function R_(t,n){return i_($g.count(Yg(t)-1,t),n,2)}function q_(t){var n=t.getDay();return n>=4||0===n?Jg(t):Jg.ceil(t)}function L_(t,n){return t=q_(t),i_(Jg.count(Yg(t),t)+(4===Yg(t).getDay()),n,2)}function U_(t){return t.getDay()}function B_(t,n){return i_(Zg.count(Yg(t)-1,t),n,2)}function Y_(t,n){return i_(t.getFullYear()%100,n,2)}function H_(t,n){return i_((t=q_(t)).getFullYear()%100,n,2)}function V_(t,n){return i_(t.getFullYear()%1e4,n,4)}function X_(t,n){var e=t.getDay();return i_((t=e>=4||0===e?Jg(t):Jg.ceil(t)).getFullYear()%1e4,n,4)}function G_(t){var n=t.getTimezoneOffset();return(n>0?"-":(n*=-1,"+"))+i_(n/60|0,"0",2)+i_(n%60,"0",2)}function W_(t,n){return i_(t.getUTCDate(),n,2)}function $_(t,n){return i_(t.getUTCHours(),n,2)}function Z_(t,n){return i_(t.getUTCHours()%12||12,n,2)}function K_(t,n){return i_(1+Ly.count(Yy(t),t),n,3)}function Q_(t,n){return i_(t.getUTCMilliseconds(),n,3)}function J_(t,n){return Q_(t,n)+"000"}function tb(t,n){return i_(t.getUTCMonth()+1,n,2)}function nb(t,n){return i_(t.getUTCMinutes(),n,2)}function eb(t,n){return i_(t.getUTCSeconds(),n,2)}function rb(t){var n=t.getUTCDay();return 0===n?7:n}function ib(t,n){return i_(Ey.count(Yy(t)-1,t),n,2)}function ob(t){var n=t.getUTCDay();return n>=4||0===n?ky(t):ky.ceil(t)}function ub(t,n){return t=ob(t),i_(ky.count(Yy(t),t)+(4===Yy(t).getUTCDay()),n,2)}function ab(t){return t.getUTCDay()}function cb(t,n){return i_(Sy.count(Yy(t)-1,t),n,2)}function fb(t,n){return i_(t.getUTCFullYear()%100,n,2)}function sb(t,n){return i_((t=ob(t)).getUTCFullYear()%100,n,2)}function lb(t,n){return i_(t.getUTCFullYear()%1e4,n,4)}function hb(t,n){var e=t.getUTCDay();return i_((t=e>=4||0===e?ky(t):ky.ceil(t)).getUTCFullYear()%1e4,n,4)}function db(){return"+0000"}function pb(){return"%"}function vb(t){return+t}function gb(t){return Math.floor(+t/1e3)}function yb(t){return $y=Wy(t),Zy=$y.format,Ky=$y.parse,Qy=$y.utcFormat,Jy=$y.utcParse,$y}yb({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function _b(t){return new Date(t)}function bb(t){return t instanceof Date?+t:+new Date(+t)}function mb(t,n,e,r,i,u,a,c,f){var s=fg(),l=s.invert,h=s.domain,d=f(".%L"),p=f(":%S"),v=f("%I:%M"),g=f("%I %p"),y=f("%a %d"),_=f("%b %d"),b=f("%B"),m=f("%Y"),x=[[a,1,1e3],[a,5,5e3],[a,15,15e3],[a,30,3e4],[u,1,6e4],[u,5,3e5],[u,15,9e5],[u,30,18e5],[i,1,36e5],[i,3,108e5],[i,6,216e5],[i,12,432e5],[r,1,864e5],[r,2,1728e5],[e,1,6048e5],[n,1,2592e6],[n,3,7776e6],[t,1,31536e6]];function w(o){return(a(o)<o?d:u(o)<o?p:i(o)<o?v:r(o)<o?g:n(o)<o?e(o)<o?y:_:t(o)<o?b:m)(o)}function M(n,e,r){if(null==n&&(n=10),"number"==typeof n){var i,u=Math.abs(r-e)/n,a=o((function(t){return t[2]})).right(x,u);return a===x.length?(i=U(e/31536e6,r/31536e6,n),n=t):a?(i=(a=x[u/x[a-1][2]<x[a][2]/u?a-1:a])[1],n=a[0]):(i=Math.max(U(e,r,n),1),n=c),n.every(i)}return n}return s.invert=function(t){return new Date(l(t))},s.domain=function(t){return arguments.length?h(Array.from(t,bb)):h().map(_b)},s.ticks=function(t){var n,e=h(),r=e[0],i=e[e.length-1],o=i<r;return o&&(n=r,r=i,i=n),n=(n=M(t,r,i))?n.range(r,i+1):[],o?n.reverse():n},s.tickFormat=function(t,n){return null==n?w:f(n)},s.nice=function(t){var n=h();return(t=M(t,n[0],n[n.length-1]))?h(pg(n,t)):s},s.copy=function(){return ag(s,mb(t,n,e,r,i,u,a,c,f))},s}function xb(){return Wv.apply(mb(Yg,Xg,$g,sy,dy,gy,by,wy,Zy).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}var wb=Ug((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()})),Mb=wb,Ab=wb.range,Eb=Ug((function(t){t.setUTCMinutes(0,0,0)}),(function(t,n){t.setTime(+t+36e5*n)}),(function(t,n){return(n-t)/36e5}),(function(t){return t.getUTCHours()})),Sb=Eb,Tb=Eb.range,Ob=Ug((function(t){t.setUTCSeconds(0,0)}),(function(t,n){t.setTime(+t+6e4*n)}),(function(t,n){return(n-t)/6e4}),(function(t){return t.getUTCMinutes()})),kb=Ob,Pb=Ob.range;function Nb(){return Wv.apply(mb(Yy,Mb,Ey,Ly,Sb,kb,by,wy,Qy).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function Cb(){var t,n,e,r,i,o=0,u=1,a=rg,c=!1;function f(n){return isNaN(n=+n)?i:a(0===e?.5:(n=(r(n)-t)*e,c?Math.max(0,Math.min(1,n)):n))}function s(t){return function(n){var e,r;return arguments.length?([e,r]=n,a=t(e,r),f):[a(0),a(1)]}}return f.domain=function(i){return arguments.length?([o,u]=i,t=r(o=+o),n=r(u=+u),e=t===n?0:1/(n-t),f):[o,u]},f.clamp=function(t){return arguments.length?(c=!!t,f):c},f.interpolator=function(t){return arguments.length?(a=t,f):a},f.range=s(_r),f.rangeRound=s(uv),f.unknown=function(t){return arguments.length?(i=t,f):i},function(i){return r=i,t=i(o),n=i(u),e=t===n?0:1/(n-t),f}}function Ib(t,n){return n.domain(t.domain()).interpolator(t.interpolator()).clamp(t.clamp()).unknown(t.unknown())}function jb(){var t=lg(Cb()(rg));return t.copy=function(){return Ib(t,jb())},$v.apply(t,arguments)}function Db(){var t=xg(Cb()).domain([1,10]);return t.copy=function(){return Ib(t,Db()).base(t.base())},$v.apply(t,arguments)}function zb(){var t=Eg(Cb());return t.copy=function(){return Ib(t,zb()).constant(t.constant())},$v.apply(t,arguments)}function Fb(){var t=Pg(Cb());return t.copy=function(){return Ib(t,Fb()).exponent(t.exponent())},$v.apply(t,arguments)}function Rb(){return Fb.apply(null,arguments).exponent(.5)}function qb(){var t=[],n=rg;function e(e){if(!isNaN(e=+e))return n((l(t,e,1)-1)/(t.length-1))}return e.domain=function(n){if(!arguments.length)return t.slice();t=[];for(let e of n)null==e||isNaN(e=+e)||t.push(e);return t.sort(i),e},e.interpolator=function(t){return arguments.length?(n=t,e):n},e.range=function(){return t.map((e,r)=>n(r/(t.length-1)))},e.quantiles=function(n){return Array.from({length:n+1},(e,r)=>$(t,r/n))},e.copy=function(){return qb(n).domain(t)},$v.apply(e,arguments)}function Lb(){var t,n,e,r,i,o,u,a=0,c=.5,f=1,s=1,l=rg,h=!1;function d(t){return isNaN(t=+t)?u:(t=.5+((t=+o(t))-n)*(s*t<s*n?r:i),l(h?Math.max(0,Math.min(1,t)):t))}function p(t){return function(n){var e,r,i;return arguments.length?([e,r,i]=n,l=bv(t,[e,r,i]),d):[l(0),l(.5),l(1)]}}return d.domain=function(u){return arguments.length?([a,c,f]=u,t=o(a=+a),n=o(c=+c),e=o(f=+f),r=t===n?0:.5/(n-t),i=n===e?0:.5/(e-n),s=n<t?-1:1,d):[a,c,f]},d.clamp=function(t){return arguments.length?(h=!!t,d):h},d.interpolator=function(t){return arguments.length?(l=t,d):l},d.range=p(_r),d.rangeRound=p(uv),d.unknown=function(t){return arguments.length?(u=t,d):u},function(u){return o=u,t=u(a),n=u(c),e=u(f),r=t===n?0:.5/(n-t),i=n===e?0:.5/(e-n),s=n<t?-1:1,d}}function Ub(){var t=lg(Lb()(rg));return t.copy=function(){return Ib(t,Ub())},$v.apply(t,arguments)}function Bb(){var t=xg(Lb()).domain([.1,1,10]);return t.copy=function(){return Ib(t,Bb()).base(t.base())},$v.apply(t,arguments)}function Yb(){var t=Eg(Lb());return t.copy=function(){return Ib(t,Yb()).constant(t.constant())},$v.apply(t,arguments)}function Hb(){var t=Pg(Lb());return t.copy=function(){return Ib(t,Hb()).exponent(t.exponent())},$v.apply(t,arguments)}function Vb(){return Hb.apply(null,arguments).exponent(.5)}var Xb=function(t){for(var n=t.length/6|0,e=new Array(n),r=0;r<n;)e[r]="#"+t.slice(6*r,6*++r);return e},Gb=Xb("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf"),Wb=Xb("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666"),$b=Xb("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666"),Zb=Xb("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928"),Kb=Xb("fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2"),Qb=Xb("b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc"),Jb=Xb("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999"),tm=Xb("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3"),nm=Xb("8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f"),em=Xb("4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab"),rm=t=>ir(t[t.length-1]),im=new Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e","8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(Xb),om=rm(im),um=new Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837","40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map(Xb),am=rm(um),cm=new Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419","8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map(Xb),fm=rm(cm),sm=new Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map(Xb),lm=rm(sm),hm=new Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(Xb),dm=rm(hm),pm=new Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040","ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map(Xb),vm=rm(pm),gm=new Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4","d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map(Xb),ym=rm(gm),_m=new Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850","d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(Xb),bm=rm(_m),mm=new Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd","9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(Xb),xm=rm(mm),wm=new Array(3).concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map(Xb),Mm=rm(wm),Am=new Array(3).concat("e0ecf49ebcda8856a7","edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map(Xb),Em=rm(Am),Sm=new Array(3).concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map(Xb),Tm=rm(Sm),Om=new Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map(Xb),km=rm(Om),Pm=new Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map(Xb),Nm=rm(Pm),Cm=new Array(3).concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map(Xb),Im=rm(Cm),jm=new Array(3).concat("e7e1efc994c7dd1c77","f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map(Xb),Dm=rm(jm),zm=new Array(3).concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map(Xb),Fm=rm(zm),Rm=new Array(3).concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map(Xb),qm=rm(Rm),Lm=new Array(3).concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837","ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map(Xb),Um=rm(Lm),Bm=new Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map(Xb),Ym=rm(Bm),Hm=new Array(3).concat("ffeda0feb24cf03b20","ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map(Xb),Vm=rm(Hm),Xm=new Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(Xb),Gm=rm(Xm),Wm=new Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(Xb),$m=rm(Wm),Zm=new Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525","f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(Xb),Km=rm(Zm),Qm=new Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(Xb),Jm=rm(Qm),tx=new Array(3).concat("fee0d2fc9272de2d26","fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(Xb),nx=rm(tx),ex=new Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(Xb),rx=rm(ex),ix=function(t){return t=Math.max(0,Math.min(1,t)),"rgb("+Math.max(0,Math.min(255,Math.round(-4.54-t*(35.34-t*(2381.73-t*(6402.7-t*(7024.72-2710.57*t)))))))+", "+Math.max(0,Math.min(255,Math.round(32.49+t*(170.73+t*(52.82-t*(131.46-t*(176.58-67.37*t)))))))+", "+Math.max(0,Math.min(255,Math.round(81.24+t*(442.36-t*(2482.43-t*(6167.24-t*(6614.94-2475.67*t)))))))+")"},ox=_v(hu(300,.5,0),hu(-240,.5,1)),ux=_v(hu(-100,.75,.35),hu(80,1.5,.8)),ax=_v(hu(260,.75,.35),hu(80,1.5,.8)),cx=hu(),fx=function(t){(t<0||t>1)&&(t-=Math.floor(t));var n=Math.abs(t-.5);return cx.h=360*t-100,cx.s=1.5-1.5*n,cx.l=.8-.9*n,cx+""},sx=Re(),lx=Math.PI/3,hx=2*Math.PI/3,dx=function(t){var n;return t=(.5-t)*Math.PI,sx.r=255*(n=Math.sin(t))*n,sx.g=255*(n=Math.sin(t+lx))*n,sx.b=255*(n=Math.sin(t+hx))*n,sx+""},px=function(t){return t=Math.max(0,Math.min(1,t)),"rgb("+Math.max(0,Math.min(255,Math.round(34.61+t*(1172.33-t*(10793.56-t*(33300.12-t*(38394.49-14825.05*t)))))))+", "+Math.max(0,Math.min(255,Math.round(23.31+t*(557.33+t*(1225.33-t*(3574.96-t*(1073.77+707.56*t)))))))+", "+Math.max(0,Math.min(255,Math.round(27.2+t*(3211.1-t*(15327.97-t*(27814-t*(22569.18-6838.66*t)))))))+")"};function vx(t){var n=t.length;return function(e){return t[Math.max(0,Math.min(n-1,Math.floor(e*n)))]}}var gx=vx(Xb("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725")),yx=vx(Xb("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf")),_x=vx(Xb("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4")),bx=vx(Xb("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921")),mx=function(t){return de(Qn(t).call(document.documentElement))},xx=0;function wx(){return new Mx}function Mx(){this._="@"+(++xx).toString(36)}Mx.prototype=wx.prototype={constructor:Mx,get:function(t){for(var n=this._;!(n in t);)if(!(t=t.parentNode))return;return t[n]},set:function(t,n){return t[this._]=n},remove:function(t){return this._ in t&&delete t[this._]},toString:function(){return this._}};var Ax=function(t,n){return t.target&&(t=br(t),void 0===n&&(n=t.currentTarget),t=t.touches||[t]),Array.from(t,t=>mr(t,n))},Ex=function(t){return"string"==typeof t?new se([document.querySelectorAll(t)],[document.documentElement]):new se([null==t?[]:tn(t)],fe)},Sx=function(t){return function(){return t}},Tx=Math.abs,Ox=Math.atan2,kx=Math.cos,Px=Math.max,Nx=Math.min,Cx=Math.sin,Ix=Math.sqrt,jx=Math.PI,Dx=jx/2,zx=2*jx;function Fx(t){return t>1?0:t<-1?jx:Math.acos(t)}function Rx(t){return t>=1?Dx:t<=-1?-Dx:Math.asin(t)}function qx(t){return t.innerRadius}function Lx(t){return t.outerRadius}function Ux(t){return t.startAngle}function Bx(t){return t.endAngle}function Yx(t){return t&&t.padAngle}function Hx(t,n,e,r,i,o,u,a){var c=e-t,f=r-n,s=u-i,l=a-o,h=l*c-s*f;if(!(h*h<1e-12))return[t+(h=(s*(n-o)-l*(t-i))/h)*c,n+h*f]}function Vx(t,n,e,r,i,o,u){var a=t-e,c=n-r,f=(u?o:-o)/Ix(a*a+c*c),s=f*c,l=-f*a,h=t+s,d=n+l,p=e+s,v=r+l,g=(h+p)/2,y=(d+v)/2,_=p-h,b=v-d,m=_*_+b*b,x=i-o,w=h*v-p*d,M=(b<0?-1:1)*Ix(Px(0,x*x*m-w*w)),A=(w*b-_*M)/m,E=(-w*_-b*M)/m,S=(w*b+_*M)/m,T=(-w*_+b*M)/m,O=A-g,k=E-y,P=S-g,N=T-y;return O*O+k*k>P*P+N*N&&(A=S,E=T),{cx:A,cy:E,x01:-s,y01:-l,x11:A*(i/x-1),y11:E*(i/x-1)}}var Xx=function(){var t=qx,n=Lx,e=Sx(0),r=null,i=Ux,o=Bx,u=Yx,a=null;function c(){var c,f,s=+t.apply(this,arguments),l=+n.apply(this,arguments),h=i.apply(this,arguments)-Dx,d=o.apply(this,arguments)-Dx,p=Tx(d-h),v=d>h;if(a||(a=c=Io()),l<s&&(f=l,l=s,s=f),l>1e-12)if(p>zx-1e-12)a.moveTo(l*kx(h),l*Cx(h)),a.arc(0,0,l,h,d,!v),s>1e-12&&(a.moveTo(s*kx(d),s*Cx(d)),a.arc(0,0,s,d,h,v));else{var g,y,_=h,b=d,m=h,x=d,w=p,M=p,A=u.apply(this,arguments)/2,E=A>1e-12&&(r?+r.apply(this,arguments):Ix(s*s+l*l)),S=Nx(Tx(l-s)/2,+e.apply(this,arguments)),T=S,O=S;if(E>1e-12){var k=Rx(E/s*Cx(A)),P=Rx(E/l*Cx(A));(w-=2*k)>1e-12?(m+=k*=v?1:-1,x-=k):(w=0,m=x=(h+d)/2),(M-=2*P)>1e-12?(_+=P*=v?1:-1,b-=P):(M=0,_=b=(h+d)/2)}var N=l*kx(_),C=l*Cx(_),I=s*kx(x),j=s*Cx(x);if(S>1e-12){var D,z=l*kx(b),F=l*Cx(b),R=s*kx(m),q=s*Cx(m);if(p<jx&&(D=Hx(N,C,R,q,z,F,I,j))){var L=N-D[0],U=C-D[1],B=z-D[0],Y=F-D[1],H=1/Cx(Fx((L*B+U*Y)/(Ix(L*L+U*U)*Ix(B*B+Y*Y)))/2),V=Ix(D[0]*D[0]+D[1]*D[1]);T=Nx(S,(s-V)/(H-1)),O=Nx(S,(l-V)/(H+1))}}M>1e-12?O>1e-12?(g=Vx(R,q,N,C,l,O,v),y=Vx(z,F,I,j,l,O,v),a.moveTo(g.cx+g.x01,g.cy+g.y01),O<S?a.arc(g.cx,g.cy,O,Ox(g.y01,g.x01),Ox(y.y01,y.x01),!v):(a.arc(g.cx,g.cy,O,Ox(g.y01,g.x01),Ox(g.y11,g.x11),!v),a.arc(0,0,l,Ox(g.cy+g.y11,g.cx+g.x11),Ox(y.cy+y.y11,y.cx+y.x11),!v),a.arc(y.cx,y.cy,O,Ox(y.y11,y.x11),Ox(y.y01,y.x01),!v))):(a.moveTo(N,C),a.arc(0,0,l,_,b,!v)):a.moveTo(N,C),s>1e-12&&w>1e-12?T>1e-12?(g=Vx(I,j,z,F,s,-T,v),y=Vx(N,C,R,q,s,-T,v),a.lineTo(g.cx+g.x01,g.cy+g.y01),T<S?a.arc(g.cx,g.cy,T,Ox(g.y01,g.x01),Ox(y.y01,y.x01),!v):(a.arc(g.cx,g.cy,T,Ox(g.y01,g.x01),Ox(g.y11,g.x11),!v),a.arc(0,0,s,Ox(g.cy+g.y11,g.cx+g.x11),Ox(y.cy+y.y11,y.cx+y.x11),v),a.arc(y.cx,y.cy,T,Ox(y.y11,y.x11),Ox(y.y01,y.x01),!v))):a.arc(0,0,s,x,m,v):a.lineTo(I,j)}else a.moveTo(0,0);if(a.closePath(),c)return a=null,c+""||null}return c.centroid=function(){var e=(+t.apply(this,arguments)+ +n.apply(this,arguments))/2,r=(+i.apply(this,arguments)+ +o.apply(this,arguments))/2-jx/2;return[kx(r)*e,Cx(r)*e]},c.innerRadius=function(n){return arguments.length?(t="function"==typeof n?n:Sx(+n),c):t},c.outerRadius=function(t){return arguments.length?(n="function"==typeof t?t:Sx(+t),c):n},c.cornerRadius=function(t){return arguments.length?(e="function"==typeof t?t:Sx(+t),c):e},c.padRadius=function(t){return arguments.length?(r=null==t?null:"function"==typeof t?t:Sx(+t),c):r},c.startAngle=function(t){return arguments.length?(i="function"==typeof t?t:Sx(+t),c):i},c.endAngle=function(t){return arguments.length?(o="function"==typeof t?t:Sx(+t),c):o},c.padAngle=function(t){return arguments.length?(u="function"==typeof t?t:Sx(+t),c):u},c.context=function(t){return arguments.length?(a=null==t?null:t,c):a},c},Gx=Array.prototype.slice,Wx=function(t){return"object"==typeof t&&"length"in t?t:Array.from(t)};function $x(t){this._context=t}$x.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 Zx=function(t){return new $x(t)};function Kx(t){return t[0]}function Qx(t){return t[1]}var Jx=function(t,n){var e=Sx(!0),r=null,i=Zx,o=null;function u(u){var a,c,f,s=(u=Wx(u)).length,l=!1;for(null==r&&(o=i(f=Io())),a=0;a<=s;++a)!(a<s&&e(c=u[a],a,u))===l&&((l=!l)?o.lineStart():o.lineEnd()),l&&o.point(+t(c,a,u),+n(c,a,u));if(f)return o=null,f+""||null}return t="function"==typeof t?t:void 0===t?Kx:Sx(t),n="function"==typeof n?n:void 0===n?Qx:Sx(n),u.x=function(n){return arguments.length?(t="function"==typeof n?n:Sx(+n),u):t},u.y=function(t){return arguments.length?(n="function"==typeof t?t:Sx(+t),u):n},u.defined=function(t){return arguments.length?(e="function"==typeof t?t:Sx(!!t),u):e},u.curve=function(t){return arguments.length?(i=t,null!=r&&(o=i(r)),u):i},u.context=function(t){return arguments.length?(null==t?r=o=null:o=i(r=t),u):r},u},tw=function(t,n,e){var r=null,i=Sx(!0),o=null,u=Zx,a=null;function c(c){var f,s,l,h,d,p=(c=Wx(c)).length,v=!1,g=new Array(p),y=new Array(p);for(null==o&&(a=u(d=Io())),f=0;f<=p;++f){if(!(f<p&&i(h=c[f],f,c))===v)if(v=!v)s=f,a.areaStart(),a.lineStart();else{for(a.lineEnd(),a.lineStart(),l=f-1;l>=s;--l)a.point(g[l],y[l]);a.lineEnd(),a.areaEnd()}v&&(g[f]=+t(h,f,c),y[f]=+n(h,f,c),a.point(r?+r(h,f,c):g[f],e?+e(h,f,c):y[f]))}if(d)return a=null,d+""||null}function f(){return Jx().defined(i).curve(u).context(o)}return t="function"==typeof t?t:void 0===t?Kx:Sx(+t),n="function"==typeof n?n:Sx(void 0===n?0:+n),e="function"==typeof e?e:void 0===e?Qx:Sx(+e),c.x=function(n){return arguments.length?(t="function"==typeof n?n:Sx(+n),r=null,c):t},c.x0=function(n){return arguments.length?(t="function"==typeof n?n:Sx(+n),c):t},c.x1=function(t){return arguments.length?(r=null==t?null:"function"==typeof t?t:Sx(+t),c):r},c.y=function(t){return arguments.length?(n="function"==typeof t?t:Sx(+t),e=null,c):n},c.y0=function(t){return arguments.length?(n="function"==typeof t?t:Sx(+t),c):n},c.y1=function(t){return arguments.length?(e=null==t?null:"function"==typeof t?t:Sx(+t),c):e},c.lineX0=c.lineY0=function(){return f().x(t).y(n)},c.lineY1=function(){return f().x(t).y(e)},c.lineX1=function(){return f().x(r).y(n)},c.defined=function(t){return arguments.length?(i="function"==typeof t?t:Sx(!!t),c):i},c.curve=function(t){return arguments.length?(u=t,null!=o&&(a=u(o)),c):u},c.context=function(t){return arguments.length?(null==t?o=a=null:a=u(o=t),c):o},c},nw=function(t,n){return n<t?-1:n>t?1:n>=t?0:NaN},ew=function(t){return t},rw=function(){var t=ew,n=nw,e=null,r=Sx(0),i=Sx(zx),o=Sx(0);function u(u){var a,c,f,s,l,h=(u=Wx(u)).length,d=0,p=new Array(h),v=new Array(h),g=+r.apply(this,arguments),y=Math.min(zx,Math.max(-zx,i.apply(this,arguments)-g)),_=Math.min(Math.abs(y)/h,o.apply(this,arguments)),b=_*(y<0?-1:1);for(a=0;a<h;++a)(l=v[p[a]=a]=+t(u[a],a,u))>0&&(d+=l);for(null!=n?p.sort((function(t,e){return n(v[t],v[e])})):null!=e&&p.sort((function(t,n){return e(u[t],u[n])})),a=0,f=d?(y-h*b)/d:0;a<h;++a,g=s)c=p[a],s=g+((l=v[c])>0?l*f:0)+b,v[c]={data:u[c],index:a,value:l,startAngle:g,endAngle:s,padAngle:_};return v}return u.value=function(n){return arguments.length?(t="function"==typeof n?n:Sx(+n),u):t},u.sortValues=function(t){return arguments.length?(n=t,e=null,u):n},u.sort=function(t){return arguments.length?(e=t,n=null,u):e},u.startAngle=function(t){return arguments.length?(r="function"==typeof t?t:Sx(+t),u):r},u.endAngle=function(t){return arguments.length?(i="function"==typeof t?t:Sx(+t),u):i},u.padAngle=function(t){return arguments.length?(o="function"==typeof t?t:Sx(+t),u):o},u},iw=uw(Zx);function ow(t){this._curve=t}function uw(t){function n(n){return new ow(t(n))}return n._curve=t,n}function aw(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(uw(t)):n()._curve},t}ow.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 cw=function(){return aw(Jx().curve(iw))},fw=function(){var t=tw().curve(iw),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 aw(e())},delete t.lineX0,t.lineEndAngle=function(){return aw(r())},delete t.lineX1,t.lineInnerRadius=function(){return aw(i())},delete t.lineY0,t.lineOuterRadius=function(){return aw(o())},delete t.lineY1,t.curve=function(t){return arguments.length?n(uw(t)):n()._curve},t},sw=function(t,n){return[(n=+n)*Math.cos(t-=Math.PI/2),n*Math.sin(t)]};function lw(t){return t.source}function hw(t){return t.target}function dw(t){var n=lw,e=hw,r=Kx,i=Qx,o=null;function u(){var u,a=Gx.call(arguments),c=n.apply(this,a),f=e.apply(this,a);if(o||(o=u=Io()),t(o,+r.apply(this,(a[0]=c,a)),+i.apply(this,a),+r.apply(this,(a[0]=f,a)),+i.apply(this,a)),u)return o=null,u+""||null}return u.source=function(t){return arguments.length?(n=t,u):n},u.target=function(t){return arguments.length?(e=t,u):e},u.x=function(t){return arguments.length?(r="function"==typeof t?t:Sx(+t),u):r},u.y=function(t){return arguments.length?(i="function"==typeof t?t:Sx(+t),u):i},u.context=function(t){return arguments.length?(o=null==t?null:t,u):o},u}function pw(t,n,e,r,i){t.moveTo(n,e),t.bezierCurveTo(n=(n+r)/2,e,n,i,r,i)}function vw(t,n,e,r,i){t.moveTo(n,e),t.bezierCurveTo(n,e=(e+i)/2,r,e,r,i)}function gw(t,n,e,r,i){var o=sw(n,e),u=sw(n,e=(e+i)/2),a=sw(r,e),c=sw(r,i);t.moveTo(o[0],o[1]),t.bezierCurveTo(u[0],u[1],a[0],a[1],c[0],c[1])}function yw(){return dw(pw)}function _w(){return dw(vw)}function bw(){var t=dw(gw);return t.angle=t.x,delete t.x,t.radius=t.y,delete t.y,t}var mw={draw:function(t,n){var e=Math.sqrt(n/jx);t.moveTo(e,0),t.arc(0,0,e,0,zx)}},xw={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()}},ww=Math.sqrt(1/3),Mw=2*ww,Aw={draw:function(t,n){var e=Math.sqrt(n/Mw),r=e*ww;t.moveTo(0,-e),t.lineTo(r,0),t.lineTo(0,e),t.lineTo(-r,0),t.closePath()}},Ew=Math.sin(jx/10)/Math.sin(7*jx/10),Sw=Math.sin(zx/10)*Ew,Tw=-Math.cos(zx/10)*Ew,Ow={draw:function(t,n){var e=Math.sqrt(.8908130915292852*n),r=Sw*e,i=Tw*e;t.moveTo(0,-e),t.lineTo(r,i);for(var o=1;o<5;++o){var u=zx*o/5,a=Math.cos(u),c=Math.sin(u);t.lineTo(c*e,-a*e),t.lineTo(a*r-c*i,c*r+a*i)}t.closePath()}},kw={draw:function(t,n){var e=Math.sqrt(n),r=-e/2;t.rect(r,r,e,e)}},Pw=Math.sqrt(3),Nw={draw:function(t,n){var e=-Math.sqrt(n/(3*Pw));t.moveTo(0,2*e),t.lineTo(-Pw*e,-e),t.lineTo(Pw*e,-e),t.closePath()}},Cw=Math.sqrt(3)/2,Iw=1/Math.sqrt(12),jw=3*(Iw/2+1),Dw={draw:function(t,n){var e=Math.sqrt(n/jw),r=e/2,i=e*Iw,o=r,u=e*Iw+e,a=-o,c=u;t.moveTo(r,i),t.lineTo(o,u),t.lineTo(a,c),t.lineTo(-.5*r-Cw*i,Cw*r+-.5*i),t.lineTo(-.5*o-Cw*u,Cw*o+-.5*u),t.lineTo(-.5*a-Cw*c,Cw*a+-.5*c),t.lineTo(-.5*r+Cw*i,-.5*i-Cw*r),t.lineTo(-.5*o+Cw*u,-.5*u-Cw*o),t.lineTo(-.5*a+Cw*c,-.5*c-Cw*a),t.closePath()}},zw=[mw,xw,Aw,kw,Ow,Nw,Dw],Fw=function(t,n){var e=null;function r(){var r;if(e||(e=r=Io()),t.apply(this,arguments).draw(e,+n.apply(this,arguments)),r)return e=null,r+""||null}return t="function"==typeof t?t:Sx(t||mw),n="function"==typeof n?n:Sx(void 0===n?64:+n),r.type=function(n){return arguments.length?(t="function"==typeof n?n:Sx(n),r):t},r.size=function(t){return arguments.length?(n="function"==typeof t?t:Sx(+t),r):n},r.context=function(t){return arguments.length?(e=null==t?null:t,r):e},r},Rw=function(){};function qw(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 Lw(t){this._context=t}Lw.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:qw(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:qw(this,t,n)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=n}};var Uw=function(t){return new Lw(t)};function Bw(t){this._context=t}Bw.prototype={areaStart:Rw,areaEnd:Rw,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:qw(this,t,n)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=n}};var Yw=function(t){return new Bw(t)};function Hw(t){this._context=t}Hw.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:qw(this,t,n)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=n}};var Vw=function(t){return new Hw(t)};function Xw(t,n){this._basis=new Lw(t),this._beta=n}Xw.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],u=t[e]-i,a=n[e]-o,c=-1;++c<=e;)r=c/e,this._basis.point(this._beta*t[c]+(1-this._beta)*(i+r*u),this._beta*n[c]+(1-this._beta)*(o+r*a));this._x=this._y=null,this._basis.lineEnd()},point:function(t,n){this._x.push(+t),this._y.push(+n)}};var Gw=function t(n){function e(t){return 1===n?new Lw(t):new Xw(t,n)}return e.beta=function(n){return t(+n)},e}(.85);function Ww(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 $w(t,n){this._context=t,this._k=(1-n)/6}$w.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:Ww(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:Ww(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}};var Zw=function t(n){function e(t){return new $w(t,n)}return e.tension=function(n){return t(+n)},e}(0);function Kw(t,n){this._context=t,this._k=(1-n)/6}Kw.prototype={areaStart:Rw,areaEnd:Rw,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:Ww(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}};var Qw=function t(n){function e(t){return new Kw(t,n)}return e.tension=function(n){return t(+n)},e}(0);function Jw(t,n){this._context=t,this._k=(1-n)/6}Jw.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:Ww(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}};var tM=function t(n){function e(t){return new Jw(t,n)}return e.tension=function(n){return t(+n)},e}(0);function nM(t,n,e){var r=t._x1,i=t._y1,o=t._x2,u=t._y2;if(t._l01_a>1e-12){var a=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*a-t._x0*t._l12_2a+t._x2*t._l01_2a)/c,i=(i*a-t._y0*t._l12_2a+t._y2*t._l01_2a)/c}if(t._l23_a>1e-12){var f=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,s=3*t._l23_a*(t._l23_a+t._l12_a);o=(o*f+t._x1*t._l23_2a-n*t._l12_2a)/s,u=(u*f+t._y1*t._l23_2a-e*t._l12_2a)/s}t._context.bezierCurveTo(r,i,o,u,t._x2,t._y2)}function eM(t,n){this._context=t,this._alpha=n}eM.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:nM(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}};var rM=function t(n){function e(t){return n?new eM(t,n):new $w(t,0)}return e.alpha=function(n){return t(+n)},e}(.5);function iM(t,n){this._context=t,this._alpha=n}iM.prototype={areaStart:Rw,areaEnd:Rw,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:nM(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}};var oM=function t(n){function e(t){return n?new iM(t,n):new Kw(t,0)}return e.alpha=function(n){return t(+n)},e}(.5);function uM(t,n){this._context=t,this._alpha=n}uM.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:nM(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}};var aM=function t(n){function e(t){return n?new uM(t,n):new Jw(t,0)}return e.alpha=function(n){return t(+n)},e}(.5);function cM(t){this._context=t}cM.prototype={areaStart:Rw,areaEnd:Rw,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(t,n){t=+t,n=+n,this._point?this._context.lineTo(t,n):(this._point=1,this._context.moveTo(t,n))}};var fM=function(t){return new cM(t)};function sM(t){return t<0?-1:1}function lM(t,n,e){var r=t._x1-t._x0,i=n-t._x1,o=(t._y1-t._y0)/(r||i<0&&-0),u=(e-t._y1)/(i||r<0&&-0),a=(o*i+u*r)/(r+i);return(sM(o)+sM(u))*Math.min(Math.abs(o),Math.abs(u),.5*Math.abs(a))||0}function hM(t,n){var e=t._x1-t._x0;return e?(3*(t._y1-t._y0)/e-n)/2:n}function dM(t,n,e){var r=t._x0,i=t._y0,o=t._x1,u=t._y1,a=(o-r)/3;t._context.bezierCurveTo(r+a,i+a*n,o-a,u-a*e,o,u)}function pM(t){this._context=t}function vM(t){this._context=new gM(t)}function gM(t){this._context=t}function yM(t){return new pM(t)}function _M(t){return new vM(t)}function bM(t){this._context=t}function mM(t){var n,e,r=t.length-1,i=new Array(r),o=new Array(r),u=new Array(r);for(i[0]=0,o[0]=2,u[0]=t[0]+2*t[1],n=1;n<r-1;++n)i[n]=1,o[n]=4,u[n]=4*t[n]+2*t[n+1];for(i[r-1]=2,o[r-1]=7,u[r-1]=8*t[r-1]+t[r],n=1;n<r;++n)e=i[n]/o[n-1],o[n]-=e,u[n]-=e*u[n-1];for(i[r-1]=u[r-1]/o[r-1],n=r-2;n>=0;--n)i[n]=(u[n]-i[n+1])/o[n];for(o[r-1]=(t[r]+i[r-1])/2,n=0;n<r-1;++n)o[n]=2*t[n+1]-i[n+1];return[i,o]}pM.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:dM(this,this._t0,hM(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){var e=NaN;if(n=+n,(t=+t)!==this._x1||n!==this._y1){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,dM(this,hM(this,e=lM(this,t,n)),e);break;default:dM(this,this._t0,e=lM(this,t,n))}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=n,this._t0=e}}},(vM.prototype=Object.create(pM.prototype)).point=function(t,n){pM.prototype.point.call(this,n,t)},gM.prototype={moveTo:function(t,n){this._context.moveTo(n,t)},closePath:function(){this._context.closePath()},lineTo:function(t,n){this._context.lineTo(n,t)},bezierCurveTo:function(t,n,e,r,i,o){this._context.bezierCurveTo(n,t,r,e,o,i)}},bM.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var t=this._x,n=this._y,e=t.length;if(e)if(this._line?this._context.lineTo(t[0],n[0]):this._context.moveTo(t[0],n[0]),2===e)this._context.lineTo(t[1],n[1]);else for(var r=mM(t),i=mM(n),o=0,u=1;u<e;++o,++u)this._context.bezierCurveTo(r[0][o],i[0][o],r[1][o],i[1][o],t[u],n[u]);(this._line||0!==this._line&&1===e)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(t,n){this._x.push(+t),this._y.push(+n)}};var xM=function(t){return new bM(t)};function wM(t,n){this._context=t,this._t=n}wM.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&2===this._point&&this._context.lineTo(this._x,this._y),(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,n),this._context.lineTo(t,n);else{var e=this._x*(1-this._t)+t*this._t;this._context.lineTo(e,this._y),this._context.lineTo(e,n)}}this._x=t,this._y=n}};var MM=function(t){return new wM(t,.5)};function AM(t){return new wM(t,0)}function EM(t){return new wM(t,1)}var SM=function(t,n){if((i=t.length)>1)for(var e,r,i,o=1,u=t[n[0]],a=u.length;o<i;++o)for(r=u,u=t[n[o]],e=0;e<a;++e)u[e][1]+=u[e][0]=isNaN(r[e][1])?r[e][0]:r[e][1]},TM=function(t){for(var n=t.length,e=new Array(n);--n>=0;)e[n]=n;return e};function OM(t,n){return t[n]}function kM(t){const n=[];return n.key=t,n}var PM=function(){var t=Sx([]),n=TM,e=SM,r=OM;function i(i){var o,u,a=Array.from(t.apply(this,arguments),kM),c=a.length,f=-1;for(const t of i)for(o=0,++f;o<c;++o)(a[o][f]=[0,+r(t,a[o].key,f,i)]).data=t;for(o=0,u=Wx(n(a));o<c;++o)a[u[o]].index=o;return e(a,u),a}return i.keys=function(n){return arguments.length?(t="function"==typeof n?n:Sx(Array.from(n)),i):t},i.value=function(t){return arguments.length?(r="function"==typeof t?t:Sx(+t),i):r},i.order=function(t){return arguments.length?(n=null==t?TM:"function"==typeof t?t:Sx(Array.from(t)),i):n},i.offset=function(t){return arguments.length?(e=null==t?SM:t,i):e},i},NM=function(t,n){if((r=t.length)>0){for(var e,r,i,o=0,u=t[0].length;o<u;++o){for(i=e=0;e<r;++e)i+=t[e][o][1]||0;if(i)for(e=0;e<r;++e)t[e][o][1]/=i}SM(t,n)}},CM=function(t,n){if((a=t.length)>0)for(var e,r,i,o,u,a,c=0,f=t[n[0]].length;c<f;++c)for(o=u=0,e=0;e<a;++e)(i=(r=t[n[e]][c])[1]-r[0])>0?(r[0]=o,r[1]=o+=i):i<0?(r[1]=u,r[0]=u+=i):(r[0]=0,r[1]=i)},IM=function(t,n){if((e=t.length)>0){for(var e,r=0,i=t[n[0]],o=i.length;r<o;++r){for(var u=0,a=0;u<e;++u)a+=t[u][r][1]||0;i[r][1]+=i[r][0]=-a/2}SM(t,n)}},jM=function(t,n){if((i=t.length)>0&&(r=(e=t[n[0]]).length)>0){for(var e,r,i,o=0,u=1;u<r;++u){for(var a=0,c=0,f=0;a<i;++a){for(var s=t[n[a]],l=s[u][1]||0,h=(l-(s[u-1][1]||0))/2,d=0;d<a;++d){var p=t[n[d]];h+=(p[u][1]||0)-(p[u-1][1]||0)}c+=l,f+=h*l}e[u-1][1]+=e[u-1][0]=o,c&&(o-=f/c)}e[u-1][1]+=e[u-1][0]=o,SM(t,n)}},DM=function(t){var n=t.map(zM);return TM(t).sort((function(t,e){return n[t]-n[e]}))};function zM(t){for(var n,e=-1,r=0,i=t.length,o=-1/0;++e<i;)(n=+t[e][1])>o&&(o=n,r=e);return r}var FM=function(t){var n=t.map(RM);return TM(t).sort((function(t,e){return n[t]-n[e]}))};function RM(t){for(var n,e=0,r=-1,i=t.length;++r<i;)(n=+t[r][1])&&(e+=n);return e}var qM=function(t){return FM(t).reverse()},LM=function(t){var n,e,r=t.length,i=t.map(RM),o=DM(t),u=0,a=0,c=[],f=[];for(n=0;n<r;++n)e=o[n],u<a?(u+=i[e],c.push(e)):(a+=i[e],f.push(e));return f.reverse().concat(c)},UM=function(t){return TM(t).reverse()};var BM=Date.prototype.toISOString?function(t){return t.toISOString()}:Qy("%Y-%m-%dT%H:%M:%S.%LZ");var YM=+new Date("2000-01-01T00:00:00.000Z")?function(t){var n=new Date(t);return isNaN(n)?null:n}:Jy("%Y-%m-%dT%H:%M:%S.%LZ"),HM=function(t,n,e){var r=new Nr,i=n;return null==n?(r.restart(t,n,e),r):(r._restart=r.restart,r.restart=function(t,n,e){n=+n,e=null==e?kr():+e,r._restart((function o(u){u+=i,r._restart(o,i+=n,e),t(u)}),n,e)},r.restart(t,n,e),r)},VM=t=>()=>t;function XM(t,{sourceEvent:n,target:e,transform:r,dispatch:i}){Object.defineProperties(this,{type:{value:t,enumerable:!0,configurable:!0},sourceEvent:{value:n,enumerable:!0,configurable:!0},target:{value:e,enumerable:!0,configurable:!0},transform:{value:r,enumerable:!0,configurable:!0},_:{value:i}})}function GM(t,n,e){this.k=t,this.x=n,this.y=e}GM.prototype={constructor:GM,scale:function(t){return 1===t?this:new GM(this.k*t,this.x,this.y)},translate:function(t,n){return 0===t&0===n?this:new GM(this.k,this.x+this.k*t,this.y+this.k*n)},apply:function(t){return[t[0]*this.k+this.x,t[1]*this.k+this.y]},applyX:function(t){return t*this.k+this.x},applyY:function(t){return t*this.k+this.y},invert:function(t){return[(t[0]-this.x)/this.k,(t[1]-this.y)/this.k]},invertX:function(t){return(t-this.x)/this.k},invertY:function(t){return(t-this.y)/this.k},rescaleX:function(t){return t.copy().domain(t.range().map(this.invertX,this).map(t.invert,t))},rescaleY:function(t){return t.copy().domain(t.range().map(this.invertY,this).map(t.invert,t))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var WM=new GM(1,0,0);function $M(t){for(;!t.__zoom;)if(!(t=t.parentNode))return WM;return t.__zoom}function ZM(t){t.stopImmediatePropagation()}$M.prototype=GM.prototype;var KM=function(t){t.preventDefault(),t.stopImmediatePropagation()};function QM(t){return!(t.ctrlKey&&"wheel"!==t.type||t.button)}function JM(){var t=this;return t instanceof SVGElement?(t=t.ownerSVGElement||t).hasAttribute("viewBox")?[[(t=t.viewBox.baseVal).x,t.y],[t.x+t.width,t.y+t.height]]:[[0,0],[t.width.baseVal.value,t.height.baseVal.value]]:[[0,0],[t.clientWidth,t.clientHeight]]}function tA(){return this.__zoom||WM}function nA(t){return-t.deltaY*(1===t.deltaMode?.05:t.deltaMode?1:.002)*(t.ctrlKey?10:1)}function eA(){return navigator.maxTouchPoints||"ontouchstart"in this}function rA(t,n,e){var r=t.invertX(n[0][0])-e[0][0],i=t.invertX(n[1][0])-e[1][0],o=t.invertY(n[0][1])-e[0][1],u=t.invertY(n[1][1])-e[1][1];return t.translate(i>r?(r+i)/2:Math.min(0,r)||Math.max(0,i),u>o?(o+u)/2:Math.min(0,o)||Math.max(0,u))}var iA=function(){var t,n,e,r=QM,i=JM,o=rA,u=nA,a=eA,c=[0,1/0],f=[[-1/0,-1/0],[1/0,1/0]],s=250,l=cv,h=Kt("start","zoom","end"),d=0,p=10;function v(t){t.property("__zoom",tA).on("wheel.zoom",w).on("mousedown.zoom",M).on("dblclick.zoom",A).filter(a).on("touchstart.zoom",E).on("touchmove.zoom",S).on("touchend.zoom touchcancel.zoom",T).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function g(t,n){return(n=Math.max(c[0],Math.min(c[1],n)))===t.k?t:new GM(n,t.x,t.y)}function y(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 GM(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,r){t.on("start.zoom",(function(){m(this,arguments).event(r).start()})).on("interrupt.zoom end.zoom",(function(){m(this,arguments).event(r).end()})).tween("zoom",(function(){var t=this,o=arguments,u=m(t,o).event(r),a=i.apply(t,o),c=null==e?_(a):"function"==typeof e?e.apply(t,o):e,f=Math.max(a[1][0]-a[0][0],a[1][1]-a[0][1]),s=t.__zoom,h="function"==typeof n?n.apply(t,o):n,d=l(s.invert(c).concat(f/s.k),h.invert(c).concat(f/h.k));return function(t){if(1===t)t=h;else{var n=d(t),e=f/n[2];t=new GM(e,c[0]-n[0]*e,c[1]-n[1]*e)}u.zoom(null,t)}}))}function m(t,n,e){return!e&&t.__zooming||new x(t,n)}function x(t,n){this.that=t,this.args=n,this.active=0,this.sourceEvent=null,this.extent=i.apply(t,n),this.taps=0}function w(t,...n){if(r.apply(this,arguments)){var e=m(this,n).event(t),i=this.__zoom,a=Math.max(c[0],Math.min(c[1],i.k*Math.pow(2,u.apply(this,arguments)))),s=mr(t);if(e.wheel)e.mouse[0][0]===s[0]&&e.mouse[0][1]===s[1]||(e.mouse[1]=i.invert(e.mouse[0]=s)),clearTimeout(e.wheel);else{if(i.k===a)return;e.mouse=[s,i.invert(s)],Vr(this),e.start()}KM(t),e.wheel=setTimeout(l,150),e.zoom("mouse",o(y(g(i,a),e.mouse[0],e.mouse[1]),e.extent,f))}function l(){e.wheel=null,e.end()}}function M(t,...n){if(!e&&r.apply(this,arguments)){var i=m(this,n,!0).event(t),u=de(t.view).on("mousemove.zoom",h,!0).on("mouseup.zoom",p,!0),a=mr(t,c),c=t.currentTarget,s=t.clientX,l=t.clientY;ge(t.view),ZM(t),i.mouse=[a,this.__zoom.invert(a)],Vr(this),i.start()}function h(t){if(KM(t),!i.moved){var n=t.clientX-s,e=t.clientY-l;i.moved=n*n+e*e>d}i.event(t).zoom("mouse",o(y(i.that.__zoom,i.mouse[0]=mr(t,c),i.mouse[1]),i.extent,f))}function p(t){u.on("mousemove.zoom mouseup.zoom",null),ye(t.view,i.moved),KM(t),i.event(t).end()}}function A(t,...n){if(r.apply(this,arguments)){var e=this.__zoom,u=mr(t.changedTouches?t.changedTouches[0]:t,this),a=e.invert(u),c=e.k*(t.shiftKey?.5:2),l=o(y(g(e,c),u,a),i.apply(this,n),f);KM(t),s>0?de(this).transition().duration(s).call(b,l,u,t):de(this).call(v.transform,l,u,t)}}function E(e,...i){if(r.apply(this,arguments)){var o,u,a,c,f=e.touches,s=f.length,l=m(this,i,e.changedTouches.length===s).event(e);for(ZM(e),u=0;u<s;++u)a=f[u],c=[c=mr(a,this),this.__zoom.invert(c),a.identifier],l.touch0?l.touch1||l.touch0[2]===c[2]||(l.touch1=c,l.taps=0):(l.touch0=c,o=!0,l.taps=1+!!t);t&&(t=clearTimeout(t)),o&&(l.taps<2&&(n=c[0],t=setTimeout((function(){t=null}),500)),Vr(this),l.start())}}function S(t,...n){if(this.__zooming){var e,r,i,u,a=m(this,n).event(t),c=t.changedTouches,s=c.length;for(KM(t),e=0;e<s;++e)r=c[e],i=mr(r,this),a.touch0&&a.touch0[2]===r.identifier?a.touch0[0]=i:a.touch1&&a.touch1[2]===r.identifier&&(a.touch1[0]=i);if(r=a.that.__zoom,a.touch1){var l=a.touch0[0],h=a.touch0[1],d=a.touch1[0],p=a.touch1[1],v=(v=d[0]-l[0])*v+(v=d[1]-l[1])*v,_=(_=p[0]-h[0])*_+(_=p[1]-h[1])*_;r=g(r,Math.sqrt(v/_)),i=[(l[0]+d[0])/2,(l[1]+d[1])/2],u=[(h[0]+p[0])/2,(h[1]+p[1])/2]}else{if(!a.touch0)return;i=a.touch0[0],u=a.touch0[1]}a.zoom("touch",o(y(r,i,u),a.extent,f))}}function T(t,...r){if(this.__zooming){var i,o,u=m(this,r).event(t),a=t.changedTouches,c=a.length;for(ZM(t),e&&clearTimeout(e),e=setTimeout((function(){e=null}),500),i=0;i<c;++i)o=a[i],u.touch0&&u.touch0[2]===o.identifier?delete u.touch0:u.touch1&&u.touch1[2]===o.identifier&&delete u.touch1;if(u.touch1&&!u.touch0&&(u.touch0=u.touch1,delete u.touch1),u.touch0)u.touch0[1]=this.__zoom.invert(u.touch0[0]);else if(u.end(),2===u.taps&&(o=mr(o,this),Math.hypot(n[0]-o[0],n[1]-o[1])<p)){var f=de(this).on("dblclick.zoom");f&&f.apply(this,arguments)}}}return v.transform=function(t,n,e,r){var i=t.selection?t.selection():t;i.property("__zoom",tA),t!==i?b(t,n,e,r):i.interrupt().each((function(){m(this,arguments).event(r).start().zoom(null,"function"==typeof n?n.apply(this,arguments):n).end()}))},v.scaleBy=function(t,n,e,r){v.scaleTo(t,(function(){var t=this.__zoom.k,e="function"==typeof n?n.apply(this,arguments):n;return t*e}),e,r)},v.scaleTo=function(t,n,e,r){v.transform(t,(function(){var t=i.apply(this,arguments),r=this.__zoom,u=null==e?_(t):"function"==typeof e?e.apply(this,arguments):e,a=r.invert(u),c="function"==typeof n?n.apply(this,arguments):n;return o(y(g(r,c),u,a),t,f)}),e,r)},v.translateBy=function(t,n,e,r){v.transform(t,(function(){return o(this.__zoom.translate("function"==typeof n?n.apply(this,arguments):n,"function"==typeof e?e.apply(this,arguments):e),i.apply(this,arguments),f)}),null,r)},v.translateTo=function(t,n,e,r,u){v.transform(t,(function(){var t=i.apply(this,arguments),u=this.__zoom,a=null==r?_(t):"function"==typeof r?r.apply(this,arguments):r;return o(WM.translate(a[0],a[1]).scale(u.k).translate("function"==typeof n?-n.apply(this,arguments):-n,"function"==typeof e?-e.apply(this,arguments):-e),t,f)}),r,u)},x.prototype={event:function(t){return t&&(this.sourceEvent=t),this},start:function(){return 1==++this.active&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(t,n){return this.mouse&&"mouse"!==t&&(this.mouse[1]=n.invert(this.mouse[0])),this.touch0&&"touch"!==t&&(this.touch0[1]=n.invert(this.touch0[0])),this.touch1&&"touch"!==t&&(this.touch1[1]=n.invert(this.touch1[0])),this.that.__zoom=n,this.emit("zoom"),this},end:function(){return 0==--this.active&&(delete this.that.__zooming,this.emit("end")),this},emit:function(t){var n=de(this.that).datum();h.call(t,this.that,new XM(t,{sourceEvent:this.sourceEvent,target:v,type:t,transform:this.that.__zoom,dispatch:h}),n)}},v.wheelDelta=function(t){return arguments.length?(u="function"==typeof t?t:VM(+t),v):u},v.filter=function(t){return arguments.length?(r="function"==typeof t?t:VM(!!t),v):r},v.touchable=function(t){return arguments.length?(a="function"==typeof t?t:VM(!!t),v):a},v.extent=function(t){return arguments.length?(i="function"==typeof t?t:VM([[+t[0][0],+t[0][1]],[+t[1][0],+t[1][1]]]),v):i},v.scaleExtent=function(t){return arguments.length?(c[0]=+t[0],c[1]=+t[1],v):[c[0],c[1]]},v.translateExtent=function(t){return arguments.length?(f[0][0]=+t[0][0],f[1][0]=+t[1][0],f[0][1]=+t[0][1],f[1][1]=+t[1][1],v):[[f[0][0],f[0][1]],[f[1][0],f[1][1]]]},v.constrain=function(t){return arguments.length?(o=t,v):o},v.duration=function(t){return arguments.length?(s=+t,v):s},v.interpolate=function(t){return arguments.length?(l=t,v):l},v.on=function(){var t=h.on.apply(h,arguments);return t===h?v:t},v.clickDistance=function(t){return arguments.length?(d=(t=+t)*t,v):Math.sqrt(d)},v.tapDistance=function(t){return arguments.length?(p=+t,v):p},v}},function(t,n,e){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(n,"__esModule",{value:!0});var i=r(e(11)).default(),o=function(){function t(){}return t.deepClone=function(t){return i(t)},t}();n.default=o},function(t,n,e){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(n,"__esModule",{value:!0});var i=r(e(2)),o=function(){function t(){}return t.getRootContainer=function(t,n){var e;console.log("get root container...",t);var r=null;(n&&(null===(e=document.querySelector("#"+n))||void 0===e||e.remove()),t&&(r=document.querySelector(t)),r)||null!==document.querySelector("#labEnvironment")&&((r=document.createElement("div")).id=n||"experiment-"+i.default.randomInt(0,1e3),r.style.margin="0 0 0 200px",r.style.padding="50px 20px 0",document.body.appendChild(r));return r||(r=document.createElement("div"),document.body.appendChild(r)),r},t}();n.default=o},function(t,n,e){"use strict";var r,i=this&&this.__extends||(r=function(t,n){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var e in n)Object.prototype.hasOwnProperty.call(n,e)&&(t[e]=n[e])})(t,n)},function(t,n){function e(){this.constructor=t}r(t,n),t.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}),o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(n,"__esModule",{value:!0});var u=function(t){function n(n,e){return void 0===e&&(e="axis-elem"),t.call(this,n,e)||this}return i(n,t),n.prototype.updateFn=function(t,n){var e=this.config,r=e.margin,i=e.width,o=e.height,u=e.domainX,a=e.domainY,c=this.dependencies,f=c.d3,s=c.rootContainer,l=this.dependencies,h=l.x,d=l.y;if(!h||this.config.autoscaleX){var p=f.extent(t,(function(t){return t.x})),v=p[0],g=p[1];h=f.scaleLinear().domain([u&&void 0!==u.min?u.min:v,u&&void 0!==u.max?u.max:g]).nice().range([r.left,i-r.right]),s.select("."+n+" .xAxis").remove(),s.select("."+n).append("g").attr("class","xAxis").attr("transform","translate(0,"+(o-r.bottom)+")").call(f.axisBottom(h).ticks(i/80).tickSizeOuter(0)),Object.assign(this.dependencies,{x:h})}if(!d||this.config.autoscaleX){var y=f.extent(t,(function(t){return t.y})),_=y[0],b=y[1];d=f.scaleLinear().domain([a&&void 0!==a.min?a.min:_,a&&void 0!==a.max?a.max:b]).nice().range([o-r.bottom,r.top]),s.select("."+n+" .yAxis").remove(),s.select("."+n).append("g").attr("class","yAxis").attr("transform","translate("+r.left+",0)").call(f.axisLeft(d)),Object.assign(this.dependencies,{y:d})}},n.prototype.setup=function(t){var n=this.config,e=n.margin,r=n.width,i=n.height,o=n.domainX,u=n.domainY,a=this.dependencies,c=a.d3,f=a.rootContainer;if(o&&void 0!==o.min&&void 0!==o.max){var s=c.scaleLinear().domain([o.min,o.max]).nice().range([e.left,r-e.right]);f.select("."+this.elemClass).append("g").attr("transform","translate(0,"+(i-e.bottom)+")").call(c.axisBottom(s).ticks(r/80).tickSizeOuter(0)),Object.assign(this.dependencies,{x:s})}if(u&&void 0!==u.min&&void 0!==u.max){var l=c.scaleLinear().domain([u.min,u.max]).nice().range([i-e.bottom,e.top]);f.select("."+this.elemClass).append("g").attr("transform","translate("+e.left+",0)").call(c.axisLeft(l)),Object.assign(this.dependencies,{y:l})}t&&this.updateFn(t,this.elemClass)},n.prototype.getDataUpdateFn=function(){return this.updateFn},n.prototype.dataUpdate=function(t){this.updateFn(t,this.elemClass)},n}(o(e(0)).default);n.default=u},function(t,n,e){"use strict";t.exports=function(t){return(t=t||{}).circles?function(t){var n=[],e=[];return t.proto?function t(i){if("object"!=typeof i||null===i)return i;if(i instanceof Date)return new Date(i);if(Array.isArray(i))return r(i,t);var o={};for(var u in n.push(i),e.push(o),i){var a=i[u];if("object"!=typeof a||null===a)o[u]=a;else if(a instanceof Date)o[u]=new Date(a);else{var c=n.indexOf(a);o[u]=-1!==c?e[c]:t(a)}}return n.pop(),e.pop(),o}:function t(i){if("object"!=typeof i||null===i)return i;if(i instanceof Date)return new Date(i);if(Array.isArray(i))return r(i,t);var o={};for(var u in n.push(i),e.push(o),i)if(!1!==Object.hasOwnProperty.call(i,u)){var a=i[u];if("object"!=typeof a||null===a)o[u]=a;else if(a instanceof Date)o[u]=new Date(a);else{var c=n.indexOf(a);o[u]=-1!==c?e[c]:t(a)}}return n.pop(),e.pop(),o};function r(t,r){for(var i=Object.keys(t),o=new Array(i.length),u=0;u<i.length;u++){var a=i[u],c=t[a];if("object"!=typeof c||null===c)o[a]=c;else if(c instanceof Date)o[a]=new Date(c);else{var f=n.indexOf(c);o[a]=-1!==f?e[f]:r(c)}}return o}}(t):t.proto?function t(e){if("object"!=typeof e||null===e)return e;if(e instanceof Date)return new Date(e);if(Array.isArray(e))return n(e,t);var r={};for(var i in e){var o=e[i];"object"!=typeof o||null===o?r[i]=o:o instanceof Date?r[i]=new Date(o):r[i]=t(o)}return r}:function t(e){if("object"!=typeof e||null===e)return e;if(e instanceof Date)return new Date(e);if(Array.isArray(e))return n(e,t);var r={};for(var i in e)if(!1!==Object.hasOwnProperty.call(e,i)){var o=e[i];"object"!=typeof o||null===o?r[i]=o:o instanceof Date?r[i]=new Date(o):r[i]=t(o)}return r};function n(t,n){for(var e=Object.keys(t),r=new Array(e.length),i=0;i<e.length;i++){var o=e[i],u=t[o];"object"!=typeof u||null===u?r[o]=u:u instanceof Date?r[o]=new Date(u):r[o]=n(u)}return r}}},function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.SerializableConfig=void 0;var r=function(){};n.SerializableConfig=r;var i=function(){function t(t){this.config=t}return t.prototype.serialize=function(){return JSON.stringify(this.config)},t.prototype.loadState=function(t){this.config="string"==typeof t?JSON.parse(t):t},t}();n.default=i},function(t,n,e){"use strict";var r,i=this&&this.__extends||(r=function(t,n){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var e in n)Object.prototype.hasOwnProperty.call(n,e)&&(t[e]=n[e])})(t,n)},function(t,n){function e(){this.constructor=t}r(t,n),t.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}),o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(n,"__esModule",{value:!0});var u=function(t){function n(n,e,r){var i=t.call(this,n)||this;return i.key=e,i.parser=function(t){return t},i.root=i.getElement("div",["form-group"],n),i.getElement("label",["form-label"],i.root,{for:e}).innerText=r,i}return i(n,t),n.prototype.setValue=function(t){this.inputField&&this.inputField.setAttribute("value",t)},n.prototype.getValue=function(){if(this.inputField){var t=this.parser(this.inputField.getAttribute("value"));return null===t?void 0:t}},n}(o(e(1)).default);n.default=u},,function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.getPairsFromDistanceMatrix=n.distanceMatrix=n.gaussianKernel=n.indexOfSmallest=n.roundToPrecision=n.average=void 0;var r=e(3);n.average=function(t){if(!t||!t.length)throw new Error("Missing ponts data "+t);var n=t[0].length,e=Array(n).fill(0);return t.reduce((function(t,n){return r.sum(t,n)}),e).map((function(n){return n/t.length}))},n.roundToPrecision=function(t,n){var e=Math.pow(10,n);return Math.round(t*e)/e},n.indexOfSmallest=function(t){if(!t||!t.length)throw new Error("Missing ponts data "+t);return t.reduce((function(n,e,r){return e<t[n]?r:n}),0)},n.gaussianKernel=function(t,n){return 1/(n*Math.sqrt(2*Math.PI))*Math.exp(-.5*Math.pow(t/n,2))},n.distanceMatrix=function(t,n,e){void 0===e&&(e=1/0);for(var r=t.length,i=[],o=0;o<r;o++){i.push(new Array(r).fill(e));for(var u=0;u<o;u++){var a=n(t[o],t[u]);i[o][u]=a,i[u][o]=a}}return i},n.getPairsFromDistanceMatrix=function(t,n){void 0===n&&(n=2);for(var e=t.length,r=new Array(e).fill(0).map((function(){return 1/0})),i=new Array(e).fill(0).map((function(){return 1/0})),o=e,u=0;o>1;){for(var a=1/0,c=-1,f=-1,s=1/0,l=0;l<e;l++)for(var h=l+1;h<e;h++)t[l][h]<a&&(s=t[l][h]),r[l]===1/0&&r[h]===1/0&&t[l][h]<a&&(a=t[l][h],c=l,f=h);s===a&&(!n||u<n)?(r[c]=u,r[f]=u,i[c]=a,i[f]=a,u++,o-=2):(r[c]=u,i[c]=0,u++,o-=1)}for(l=0;l<e;l++)r[l]===1/0&&(r[l]=u,i[l]=0);return[r,i]}},function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=function(){function t(t){void 0===t&&(t=2),this.historySize=t,this.history=[]}return t.prototype.addValue=function(t){var n=this.history,e=this.historySize;n.push(JSON.stringify(t)),n.length>e&&this.history.shift()},t.prototype.hadConverged=function(){var t=this.history,n=this.historySize;if(t.length!==n)return!1;for(var e=t[0],r=1;r<n;r++)if(t[r]!==e)return!1;return!0},t}();n.default=r},function(t,n,e){"use strict";var r,i=this&&this.__extends||(r=function(t,n){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var e in n)Object.prototype.hasOwnProperty.call(n,e)&&(t[e]=n[e])})(t,n)},function(t,n){function e(){this.constructor=t}r(t,n),t.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}),o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(n,"__esModule",{value:!0});var u=function(t){function n(n,e){return void 0===e&&(e="title-elem"),t.call(this,n,e)||this}return i(n,t),n.prototype.updateFn=function(){},n.prototype.setup=function(){var t=this.config,n=t.margin,e=t.width,r=t.text,i=t.yLoc;this.dependencies.rootContainer.selectAll("."+this.elemClass).append("text").attr("transform","translate("+(n.left+(e-n.right-n.left)/2)+","+(i||15)+")").style("text-anchor","middle").text(r||"Text Undefined")},n.prototype.getDataUpdateFn=function(){return this.updateFn},n.prototype.dataUpdate=function(t,n){},n}(o(e(0)).default);n.default=u},function(t,n,e){"use strict";var r,i=this&&this.__extends||(r=function(t,n){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var e in n)Object.prototype.hasOwnProperty.call(n,e)&&(t[e]=n[e])})(t,n)},function(t,n){function e(){this.constructor=t}r(t,n),t.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}),o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var n,e=1,r=arguments.length;e<r;e++)for(var i in n=arguments[e])Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t}).apply(this,arguments)},u=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(n,"__esModule",{value:!0});var a=u(e(8)),c=u(e(1)),f=u(e(19)),s=u(e(20)),l=function(t){function n(n,e,r){var i=t.call(this,n)||this;i.inputFields=[];var u=Object.keys(r);return i.currentConfig=a.default.deepClone(e),u.forEach((function(t){var u,a=r[t];(u=a.options?new f.default(n,t,a.label||t,a.options):new s.default(n,t,a.label||t,o({type:"number"==typeof e[t]?"number":"text"},a))).setValue(e[t]||r.default),i.inputFields.push(u)})),i}return i(n,t),n.prototype.getCurrentConfiguration=function(){var t={};return this.inputFields.forEach((function(n){var e=n.key,r=n.getValue();r&&(t[e]=r)})),t},n}(c.default);n.default=l},function(t,n,e){"use strict";var r,i=this&&this.__extends||(r=function(t,n){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var e in n)Object.prototype.hasOwnProperty.call(n,e)&&(t[e]=n[e])})(t,n)},function(t,n){function e(){this.constructor=t}r(t,n),t.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}),o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(n,"__esModule",{value:!0});var u=function(t){function n(n,e,r,i,o){var u=t.call(this,n,e,r)||this;u.inputField=u.getElement("select",["form-select"],u.root,o),u.inputField.addEventListener("change",(function(t){var n=t.target.value;try{u.setValue(parseFloat(n))}catch(t){u.setValue(n)}u.setValue(n)}));for(var a=0;a<i.length;a++){u.getElement("option",[],u.inputField,{value:i[a]}).innerText=i[a]}return u}return i(n,t),n}(o(e(13)).default);n.default=u},function(t,n,e){"use strict";var r,i=this&&this.__extends||(r=function(t,n){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var e in n)Object.prototype.hasOwnProperty.call(n,e)&&(t[e]=n[e])})(t,n)},function(t,n){function e(){this.constructor=t}r(t,n),t.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}),o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(n,"__esModule",{value:!0});var u=function(t){function n(n,e,r,i){var o=t.call(this,n,e,r)||this;return i&&"number"===i.type&&(o.parser=parseFloat),o.inputField=o.getElement("input",["form-input"],o.root,i),o.inputField.addEventListener("change",(function(t){var n=t.target.value;try{o.setValue(parseFloat(n))}catch(t){o.setValue(n)}o.setValue(n)})),o}return i(n,t),n}(o(e(13)).default);n.default=u},function(t,n,e){"use strict";var r=this&&this.__createBinding||(Object.create?function(t,n,e,r){void 0===r&&(r=e),Object.defineProperty(t,r,{enumerable:!0,get:function(){return n[e]}})}:function(t,n,e,r){void 0===r&&(r=e),t[r]=n[e]}),i=this&&this.__exportStar||function(t,n){for(var e in t)"default"===e||Object.prototype.hasOwnProperty.call(n,e)||r(n,t,e)};Object.defineProperty(n,"__esModule",{value:!0}),i(e(22),n),i(e(23),n),i(e(24),n),i(e(25),n)},function(t,n,e){"use strict";var r,i=this&&this.__extends||(r=function(t,n){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var e in n)Object.prototype.hasOwnProperty.call(n,e)&&(t[e]=n[e])})(t,n)},function(t,n){function e(){this.constructor=t}r(t,n),t.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}),o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(n,"__esModule",{value:!0}),n.default=n.Button=void 0;var u=function(t){function n(n,e,r){var i=t.call(this,n)||this,o=i.getElement("button",["btn"],n);return o.innerText=e,o.addEventListener("click",(function(){r()})),i}return i(n,t),n}(o(e(1)).default);n.Button=u,n.default=u},function(t,n,e){"use strict";var r,i=this&&this.__extends||(r=function(t,n){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var e in n)Object.prototype.hasOwnProperty.call(n,e)&&(t[e]=n[e])})(t,n)},function(t,n){function e(){this.constructor=t}r(t,n),t.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}),o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(n,"__esModule",{value:!0}),n.default=n.Accordion=void 0;var u=function(t){function n(n,e){var r=t.call(this,n)||this,i=r.getElement("div",["accordion"]),o=Math.floor(1e4*Math.random());return i.innerHTML='\n        <input type="checkbox" id="accordion-'+o+'" name="accordion-checkbox" hidden checked>\n        <label class="accordion-header" for="accordion-'+o+'">\n          <i class="icon icon-arrow-right mr-1"></i>\n          '+e+"\n        </label>",r.root=r.getElement("div",["accordion-body"]),i.appendChild(r.root),n.appendChild(i),r}return i(n,t),n}(o(e(1)).default);n.Accordion=u,n.default=u},function(t,n,e){"use strict";var r,i=this&&this.__extends||(r=function(t,n){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var e in n)Object.prototype.hasOwnProperty.call(n,e)&&(t[e]=n[e])})(t,n)},function(t,n){function e(){this.constructor=t}r(t,n),t.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}),o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(n,"__esModule",{value:!0}),n.default=n.TabBar=void 0;var u=function(t){function n(n,e,r){void 0===r&&(r=[]);var i=t.call(this,n)||this;i.tabs=[],i.titles=[],i.containers=[],i.root=i.getElement("div",r,n);var o=i.getElement("ul",["tab","tab-block"],i.root);return e.forEach((function(t,n){var e=i.getElement("li",["tab-item"],o),r=i.getElement("div",[],i.root);r.style.display="none";var u=i.getElement("span",["tab-item-content"],e);u.innerText=t,i.titles.push(u),e.addEventListener("click",(function(){i.setActive(n)})),i.tabs.push(e),i.containers.push(r)})),i.setActive(0),i}return i(n,t),n.prototype.setTitle=function(t,n){this.titles[t].innerText=n},n.prototype.setActive=function(t){void 0!==this.activeTabIndex&&(this.tabs[this.activeTabIndex].classList.remove("active"),this.containers[this.activeTabIndex].style.display="none"),this.activeTabIndex=t,this.tabs[this.activeTabIndex].classList.add("active"),this.containers[this.activeTabIndex].style.display="block"},n}(o(e(1)).default);n.TabBar=u,n.default=u},function(t,n,e){"use strict";var r,i=this&&this.__extends||(r=function(t,n){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var e in n)Object.prototype.hasOwnProperty.call(n,e)&&(t[e]=n[e])})(t,n)},function(t,n){function e(){this.constructor=t}r(t,n),t.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}),o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(n,"__esModule",{value:!0}),n.default=n.Divider=void 0;var u=function(t){function n(n,e){var r=t.call(this,n)||this;return r.root=r.getElement("div",["divider","text-center"],n,{"data-content":e}),r}return i(n,t),n}(o(e(1)).default);n.Divider=u,n.default=u},function(t,n,e){"use strict";var r,i=this&&this.__extends||(r=function(t,n){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var e in n)Object.prototype.hasOwnProperty.call(n,e)&&(t[e]=n[e])})(t,n)},function(t,n){function e(){this.constructor=t}r(t,n),t.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}),o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(n,"__esModule",{value:!0});var u=function(t){function n(n,e){return void 0===e&&(e="line-elem"),t.call(this,n,e)||this}return i(n,t),n.prototype.updateFn=function(t,n){var e=this.config,r=e.margin,i=e.width,o=e.height,u=e.domainX,a=e.domainY,c=this.dependencies,f=c.d3,s=c.rootContainer,l=this.dependencies,h=l.x,d=l.y;if(!h||this.config.autoscaleX){var p=f.extent(t,(function(t){return t.x})),v=p[0],g=p[1];h=f.scaleLinear().domain([u&&void 0!==u.min?u.min:v,u&&void 0!==u.max?u.max:g]).nice().range([r.left,i-r.right]),Object.assign(this.dependencies,{x:h})}if(!d||this.config.autoscaleY){var y=f.extent(t,(function(t){return t.y})),_=y[0],b=y[1];d=f.scaleLinear().domain([a&&void 0!==a.min?a.min:_,a&&void 0!==a.max?a.max:b]).nice().range([o-r.bottom,r.top]),Object.assign(this.dependencies,{y:d})}var m=f.line().x((function(t){return h(t.x)})).y((function(t){return d(t.y)}));s.selectAll("."+n+" path").remove(),s.select("."+n).append("path").datum(t).attr("fill","none").attr("class","plot-path").attr("stroke","steelblue").attr("stroke-width",1.5).attr("stroke-linejoin","round").attr("stroke-linecap","round").attr("d",m)},n.prototype.setup=function(t){t&&this.updateFn(t,this.elemClass)},n.prototype.getDataUpdateFn=function(){return this.updateFn},n.prototype.dataUpdate=function(t){this.updateFn(t,this.elemClass)},n}(o(e(0)).default);n.default=u},function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=function(){function t(){}return t.euclideanDistance=function(t,n){if(!t||!n||t.length!==n.length)throw new Error("Missing ponts data "+t+", "+n);for(var e=0,r=0;r<t.length;r++)e+=Math.pow(t[r]-n[r],2);return Math.sqrt(e)},t.manhattanDistance=function(t,n){if(!t||!n||t.length!==n.length)throw new Error("Missing ponts data "+t+", "+n);for(var e=0,r=0;r<t.length;r++)e+=Math.abs(t[r]-n[r]);return e},t.sumElements=function(t){return t.reduce((function(t,n){return t+n}),0)},t.addition=function(t,n){if(!t||!n||t.length!==n.length)throw new Error("Missing ponts data "+t+", "+n);return t.map((function(t,e){return t+n[e]}))},t.subtraction=function(t,n){if(!t||!n||t.length!==n.length)throw new Error("Missing ponts data "+t+", "+n);return t.map((function(t,e){return t-n[e]}))},t.multiplication=function(t,n){if(!t||!n||t.length!==n.length)throw new Error("Missing ponts data "+t+", "+n);return t.map((function(t,e){return t*n[e]}))},t.division=function(t,n){if(!t||!n||t.length!==n.length)throw new Error("Missing ponts data "+t+", "+n);return t.map((function(t,e){return t/n[e]}))},t.scalarAddition=function(t,n){return t.map((function(t){return t+n}))},t.scalarSubtraction=function(t,n){return t.map((function(t){return t-n}))},t.scalarMultiplication=function(t,n){return t.map((function(t){return t*n}))},t.scalarDivision=function(t,n){return t.map((function(t){return t/n}))},t.averageElements=function(n){return t.sumElements(n)/n.length},t.average=function(n){if(!n||!n.length)throw new Error("Missing ponts data "+n);var e=n[0].length,r=Array(e).fill(0);return n.reduce((function(n,e){return t.addition(n,e)}),r).map((function(t){return t/n.length}))},t.indexOfSmallest=function(t){if(!t||!t.length)throw new Error("Missing ponts data "+t);return t.reduce((function(n,e,r){return e<t[n]?r:n}),0)},t.max=function(t){return Math.max.apply(Math,t)},t.min=function(t){return Math.min.apply(Math,t)},t.standardDeviation=function(t){var n=this.averageElements(t),e=t.map((function(t){var e=t-n;return e*e})),r=this.averageElements(e);return Math.sqrt(r)},t.normalize=function(n){var e,r,i=[];return e=t.averageElements(n),r=t.standardDeviation(n),i=t.scalarSubtraction(n,e),r>0&&(i=t.scalarDivision(i,r)),i},t}();n.default=r},,,function(t,n,e){"use strict";var r,i=this&&this.__extends||(r=function(t,n){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var e in n)Object.prototype.hasOwnProperty.call(n,e)&&(t[e]=n[e])})(t,n)},function(t,n){function e(){this.constructor=t}r(t,n),t.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}),o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var n,e=1,r=arguments.length;e<r;e++)for(var i in n=arguments[e])Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t}).apply(this,arguments)},u=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(n,"__esModule",{value:!0});var a=u(e(1)),c=u(e(18)),f=e(21),s=function(t){function n(n,e,r,i){var u=t.call(this,n)||this;u.running=!1;var a=e.config,s=a.constructor,l=r||s.definitions;u.root=u.getElement("div",["m-2","metaheuristic-wrapper","panel"],n);u.getElement("div",["panel-header"],u.root);var h=new f.TabBar(u.root,["Execute","Config"],["panel-nav"]),d=h.containers,p=d[0],v=d[1];u.mainView=p;var g=u.getElement("div",["p-2"],u.mainView);if(v.classList.add("m-2"),v.classList.add("p-2"),l&&v){var y=new c.default(v,a,l);new f.Button(v,"Update Configuration",(function(){var t=y.getCurrentConfiguration();e.loadState(o(o(o({},e.config),t),{history:[]})),e.reset(),i&&i(),h.setActive(0)}))}var _=function(){if(i){var t=i();u.running&&!t&&window.requestAnimationFrame((function(){return _()}))}};return new f.Button(g,"Start",(function(){h.setTitle(0,"Execute (Running)"),u.running=!0,_()})),new f.Button(g,"Step",(function(){_()})),new f.Button(g,"Stop",(function(){h.setTitle(0,"Execute (Stopped)"),u.running=!1})),_(),u}return i(n,t),n}(a.default);n.default=s},function(t,n,e){"use strict";var r=this&&this.__createBinding||(Object.create?function(t,n,e,r){void 0===r&&(r=e),Object.defineProperty(t,r,{enumerable:!0,get:function(){return n[e]}})}:function(t,n,e,r){void 0===r&&(r=e),t[r]=n[e]}),i=this&&this.__setModuleDefault||(Object.create?function(t,n){Object.defineProperty(t,"default",{enumerable:!0,value:n})}:function(t,n){t.default=n}),o=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var n={};if(null!=t)for(var e in t)"default"!==e&&Object.prototype.hasOwnProperty.call(t,e)&&r(n,t,e);return i(n,t),n},u=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(n,"__esModule",{value:!0});var a=o(e(32)),c=u(e(27)),f=u(e(35)),s=function(){function t(){}return t.meanSquaredError=function(t,n,e){var r=[];if(Array.isArray(t))for(var i=0;i<t.length;i++)r.push(-1*t[i]*(n-e));else r.push(-1*(n-e)),r.push(-1*t*(n-e));return r},t.crossEntropyCostFunction=function(t,n,e){for(var r=[],i=0;i<t.length;i++)r.push(t[i]*(f.default.sigmoid(e)-n));return r},t.gradientDescent=function(t,n,e,r,i){for(var o=t.length,u=2===e.length?a.default(t,e):a.predictMultivariable(t,e),f=(Array(e.length).fill(0),Array(e.length).fill(0)),s=Array(e.length).fill(0),l=0;l<o;l++){var h=i(t[l],n[l],u[l]);f=c.default.addition(f,h)}return s=c.default.scalarMultiplication(c.default.scalarDivision(f,o),r),c.default.subtraction(e,s)},t}();n.default=s},function(t,n,e){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(n,"__esModule",{value:!0}),n.decisionBoundary=n.transformToPolynomialInput=n.transposeAndNormalize=n.transpose=n.addBias=n.predictMultivariable=void 0;var i=r(e(27)),o=r(e(39));function u(t){for(var n=[],e=0;e<t.length;e++)n.push([1].concat(t[e]));return n}n.default=function(t,n){for(var e=[],r=0;r<t.length;r++)e.push(n[1]*t[r]+n[0]);return e},n.predictMultivariable=function(t,n){var e=[];return t.forEach((function(r){for(var i=0,o=0;o<t[0].length;o++)i+=r[o]*n[o];e.push(i)})),e},n.addBias=u,n.transpose=function(t){return u(t)},n.transposeAndNormalize=function(t){var n,e=[];n=o.default.transpose(t);for(var r=0;r<n.length;r++)e.push(i.default.normalize(n[r]));return u(e=o.default.transpose(e))},n.transformToPolynomialInput=function(t,n){for(var e=[],r=0;r<t.length;r++){for(var i=[],o=1;o<=n;o++)i.push(Math.pow(t[r],o));e.push(i)}return e},n.decisionBoundary=function(t){for(var n=[],e=0;e<t.length;e++)n.push(t[e]>=.5?1:0);return n}},,,function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=function(){function t(){}return t.identity=function(t){return t},t.sigmoid=function(t){return 1/(1+Math.pow(Math.E,-t))},t.binary=function(t){return t>0?1:0},t.relu=function(t){return Math.max(0,t)},t.leakyRelu=function(t){return Math.max(.01*t,t)},t.softPlus=function(t){return Math.log(1+Math.pow(Math.E,t))},t.siLu=function(n){return n*t.sigmoid(n)},t.tanh=function(t){return(Math.pow(Math.E,t)-Math.pow(Math.E,-t))/(Math.pow(Math.E,t)+Math.pow(Math.E,-t))},t.sign=function(t){return t<0?-1:1},t}();n.default=r},function(t,n,e){"use strict";var r=this&&this.__createBinding||(Object.create?function(t,n,e,r){void 0===r&&(r=e),Object.defineProperty(t,r,{enumerable:!0,get:function(){return n[e]}})}:function(t,n,e,r){void 0===r&&(r=e),t[r]=n[e]}),i=this&&this.__exportStar||function(t,n){for(var e in t)"default"===e||Object.prototype.hasOwnProperty.call(n,e)||r(n,t,e)};Object.defineProperty(n,"__esModule",{value:!0}),i(e(3),n),i(e(2),n),i(e(15),n);var o=function(){};n.default=o},function(t,n,e){"use strict";var r,i=this&&this.__extends||(r=function(t,n){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var e in n)Object.prototype.hasOwnProperty.call(n,e)&&(t[e]=n[e])})(t,n)},function(t,n){function e(){this.constructor=t}r(t,n),t.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}),o=this&&this.__createBinding||(Object.create?function(t,n,e,r){void 0===r&&(r=e),Object.defineProperty(t,r,{enumerable:!0,get:function(){return n[e]}})}:function(t,n,e,r){void 0===r&&(r=e),t[r]=n[e]}),u=this&&this.__setModuleDefault||(Object.create?function(t,n){Object.defineProperty(t,"default",{enumerable:!0,value:n})}:function(t,n){t.default=n}),a=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var n={};if(null!=t)for(var e in t)"default"!==e&&Object.prototype.hasOwnProperty.call(t,e)&&o(n,t,e);return u(n,t),n},c=this&&this.__generator||function(t,n){var e,r,i,o,u={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(e)throw new TypeError("Generator is already executing.");for(;u;)try{if(e=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return u.label++,{value:o[1],done:!1};case 5:u.label++,r=o[1],o=[0];continue;case 7:o=u.ops.pop(),u.trys.pop();continue;default:if(!(i=u.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){u=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){u.label=o[1];break}if(6===o[0]&&u.label<i[1]){u.label=i[1],i=o;break}if(i&&u.label<i[2]){u.label=i[2],u.ops.push(o);break}i[2]&&u.ops.pop(),u.trys.pop();continue}o=n.call(t,u)}catch(t){o=[6,t],r=0}finally{e=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}},f=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(n,"__esModule",{value:!0}),n.RegressionConfig=void 0;var s=f(e(16)),l=a(e(4)),h=f(e(40)),d=f(e(31)),p=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.iterations=1e3,n.convergenceHistorySize=2,n.convergenceRoundingPrecision=5,n.biasAndWeights=[],n.lossHistory=[],n.costFunction="meanSquaredError",n.lossFunction="meanSquaredError",n}return i(n,t),n}(l.EvolutionaryConfig);n.RegressionConfig=p;var v=function(t){function n(n){var e=t.call(this,n)||this;if("string"==typeof n.costFunction?e.costFunction=d.default[n.costFunction]:e.costFunction=n.costFunction,"string"==typeof n.lossFunction?e.lossFunction=h.default[n.lossFunction]:e.lossFunction=n.lossFunction,!e.costFunction)throw new Error("Unkown cost function "+e.costFunction);if(!e.lossFunction)throw new Error("Unkown loss function "+e.lossFunction);return e.convergence=new s.default(n.convergenceHistorySize),e}return i(n,t),n.prototype.fit=function(t,n){for(this.input=t,this.target=n,this.prepareDataset(t,n);!this.shouldStop();)this.step(),this.iteration++;return this.config.biasAndWeights},n.prototype.fitAsync=function(t,n){return c(this,(function(e){switch(e.label){case 0:this.input=t,this.target=n,this.prepareDataset(t,n),e.label=1;case 1:return this.shouldStop()?[3,3]:(this.step(),this.iteration++,[4,this.config.biasAndWeights]);case 2:return e.sent(),[3,1];case 3:return[2,this.config.biasAndWeights]}}))},n.prototype.shouldStop=function(){return this.iteration===this.config.iterations||this.convergence.hadConverged()},n.prototype.reset=function(){t.prototype.reset.call(this),this.convergence=new s.default(this.config.convergenceHistorySize)},n}(l.default);n.default=v},,function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=function(){function t(){}return t.transpose=function(t){return t[0].map((function(n,e){return t.map((function(t){return t[e]}))}))},t}();n.default=r},function(t,n,e){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(n,"__esModule",{value:!0});var i=r(e(27)),o=function(){function t(){}return t.meanSquaredError=function(t,n){for(var e=0,r=0;r<n.length;r++)e+=Math.pow(t[r]-n[r],2);return e/(2*n.length)},t.crossEntropy=function(t,n){for(var e,r,o,u=[],a=[],c=t.length,f=0;f<c;f++)u.push(Math.log(t[f])),a.push(Math.log(1-t[f]));return e=i.default.scalarMultiplication(i.default.multiplication(u,n),-1),r=i.default.scalarMultiplication(i.default.multiplication(a,i.default.scalarSubtraction(n,1)),-1),o=i.default.subtraction(e,r),i.default.sumElements(o)/c},t.hinge=function(t,n){var e=t[n.indexOf(1)];return Math.max(0,1-e)},t.l2=function(t,n){for(var e=0,r=0;r<n.length;r++)e+=Math.pow(t[r]-n[r],2);return e},t.meanAbsoluteError=function(t,n){for(var e=0,r=0;r<n.length;r++)e+=Math.abs(t[r]-n[r]);return e/n.length},t.supportVectorMachine=function(t,n){for(var e=0,r=t[n.indexOf(1)],i=0;i<n.length;i++)e+=Math.max(0,t[i]-r+1);return e-=1},t}();n.default=o},function(t,n,e){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(n,"__esModule",{value:!0});var i=r(e(10)),o=r(e(26)),u=r(e(6)),a=r(e(17)),c=function(){function t(t,n,e,r){void 0===n&&(n=400),void 0===e&&(e=200);var c=[new i.default({autoscaleX:!0,autoscaleY:!0},"axis-elem"),new o.default({autoscaleX:!0,autoscaleY:!0},"line-elem")];if(r){var f=new a.default({text:r},"title-class");c.push(f)}this.functionPlot=new u.default({width:n,height:e},"function-elem",c),this.functionPlot.setContainer(t)}return t.prototype.dataUpdate=function(t){this.functionPlot.dataUpdate(t,"axis-elem"),this.functionPlot.dataUpdate(t,"line-elem")},t}();n.default=c},,,function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=e(45),i=function(){function t(t,n){this.internalMap={},this.inversedInternalMap={},this.nextKeyIterator=n||r.integerNextKeyGenerator(),this.valueEncoder=t||new r.ToStringValueEncoder}return t.prototype.checkIndexed=function(t){return void 0!==this.internalMap[t]},t.prototype.fitTransform=function(t){for(var n=[],e=0;e<t.length;e++){var r=t[e],i=this.valueEncoder.encode(r),o=this.internalMap[i];void 0===o&&(o=this.nextKeyIterator.next().value,this.internalMap[i]=o,this.inversedInternalMap[o]=r),n.push(o)}return n},t.prototype.transform=function(t){for(var n=[],e=0;e<t.length;e++){var r=t[e],i=this.valueEncoder.encode(r),o=this.internalMap[i];if(void 0===o)throw new Error("Index not found for "+i);n.push(o)}return n},t.prototype.inverse=function(t){for(var n=[],e=0;e<t.length;e++)n.push(this.inversedInternalMap[t[e]]);return n},t}();n.default=i},function(t,n,e){"use strict";var r=this&&this.__generator||function(t,n){var e,r,i,o,u={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(e)throw new TypeError("Generator is already executing.");for(;u;)try{if(e=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return u.label++,{value:o[1],done:!1};case 5:u.label++,r=o[1],o=[0];continue;case 7:o=u.ops.pop(),u.trys.pop();continue;default:if(!(i=u.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){u=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){u.label=o[1];break}if(6===o[0]&&u.label<i[1]){u.label=i[1],i=o;break}if(i&&u.label<i[2]){u.label=i[2],u.ops.push(o);break}i[2]&&u.ops.pop(),u.trys.pop();continue}o=n.call(t,u)}catch(t){o=[6,t],r=0}finally{e=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}};Object.defineProperty(n,"__esModule",{value:!0}),n.ToStringValueEncoder=n.integerNextKeyGenerator=void 0,n.integerNextKeyGenerator=function(){var t;return r(this,(function(n){switch(n.label){case 0:t=0,n.label=1;case 1:return[4,t++];case 2:return n.sent(),[3,1];case 3:return[2]}}))};var i=function(){function t(){}return t.prototype.encode=function(t){return JSON.stringify(t)},t}();n.ToStringValueEncoder=i},function(t,n,e){"use strict";var r,i=this&&this.__extends||(r=function(t,n){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var e in n)Object.prototype.hasOwnProperty.call(n,e)&&(t[e]=n[e])})(t,n)},function(t,n){function e(){this.constructor=t}r(t,n),t.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}),o=this&&this.__createBinding||(Object.create?function(t,n,e,r){void 0===r&&(r=e),Object.defineProperty(t,r,{enumerable:!0,get:function(){return n[e]}})}:function(t,n,e,r){void 0===r&&(r=e),t[r]=n[e]}),u=this&&this.__setModuleDefault||(Object.create?function(t,n){Object.defineProperty(t,"default",{enumerable:!0,value:n})}:function(t,n){t.default=n}),a=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var n={};if(null!=t)for(var e in t)"default"!==e&&Object.prototype.hasOwnProperty.call(t,e)&&o(n,t,e);return u(n,t),n},c=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(n,"__esModule",{value:!0}),n.LinearRegression=n.LinearRegressionConfig=void 0;var f=c(e(31)),s=e(36),l=a(e(37)),h=c(e(32)),d=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.learningRate=.001,n}return i(n,t),n}(l.RegressionConfig);n.LinearRegressionConfig=d;var p=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return i(n,t),n.prototype.prepareDataset=function(t,n){this.transformedInput=t,this.transformedTarget=n,this.config.biasAndWeights=[0,0],this.currentPrediction=h.default(this.transformedInput,this.config.biasAndWeights)},n.prototype.predict=function(t){return h.default(t,this.config.biasAndWeights)},n.prototype.step=function(){var t=this.config,n=t.biasAndWeights,e=t.learningRate;this.config.biasAndWeights=f.default.gradientDescent(this.transformedInput,this.transformedTarget,n,e,this.costFunction),this.currentPrediction=h.default(this.transformedInput,this.config.biasAndWeights);var r=this.lossFunction(this.currentPrediction,this.transformedTarget),i=s.roundToPrecision(r,this.config.convergenceRoundingPrecision);this.config.lossHistory.push(i),this.convergence.addValue(i)},n}(l.default);n.LinearRegression=p},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,n,e){"use strict";var r=this&&this.__awaiter||function(t,n,e,r){return new(e||(e=Promise))((function(i,o){function u(t){try{c(r.next(t))}catch(t){o(t)}}function a(t){try{c(r.throw(t))}catch(t){o(t)}}function c(t){var n;t.done?i(t.value):(n=t.value,n instanceof e?n:new e((function(t){t(n)}))).then(u,a)}c((r=r.apply(t,n||[])).next())}))},i=this&&this.__generator||function(t,n){var e,r,i,o,u={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(e)throw new TypeError("Generator is already executing.");for(;u;)try{if(e=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return u.label++,{value:o[1],done:!1};case 5:u.label++,r=o[1],o=[0];continue;case 7:o=u.ops.pop(),u.trys.pop();continue;default:if(!(i=u.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){u=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){u.label=o[1];break}if(6===o[0]&&u.label<i[1]){u.label=i[1],i=o;break}if(i&&u.label<i[2]){u.label=i[2],u.ops.push(o);break}i[2]&&u.ops.pop(),u.trys.pop();continue}o=n.call(t,u)}catch(t){o=[6,t],r=0}finally{e=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}},o=this&&this.__spreadArrays||function(){for(var t=0,n=0,e=arguments.length;n<e;n++)t+=arguments[n].length;var r=Array(t),i=0;for(n=0;n<e;n++)for(var o=arguments[n],u=0,a=o.length;u<a;u++,i++)r[i]=o[u];return r},u=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(n,"__esModule",{value:!0});var a=u(e(78)),c=u(e(2)),f=u(e(44)),s=e(79),l=u(e(80)),h=u(e(41)),d=u(e(9)),p=u(e(30));n.default=r(void 0,void 0,void 0,(function(){var t,n,e,r,u,v,g,y,_,b,m;return i(this,(function(i){return c.default.seed("multivariateLinearRegression"),t=d.default.getRootContainer('[data-ref="documentation/multivariateLinearRegression"]'),n=document.createElement("div"),(e=document.createElement("h4")).innerText="Multivariate Linear Regression - Predicting Iris Sepal Length",t.appendChild(e),(r=new l.default({})).injectDOM(document),r.setContainer(n),u=new h.default(n,400,200),(v=new s.MultivariableLinearRegressionConfig).learningRate=.05,v.convergenceRoundingPrecision=5,v.convergenceHistorySize=5,v.iterations=1e4,Object.assign(v.constructor,{definitions:{learningRate:{label:"Learning Rate",min:0,max:1,default:.2},convergenceRoundingPrecision:{label:"Convergence Rounding Precision",min:0,default:5}}}),g=new s.MultivariableLinearRegression(v),new p.default(t,g,void 0,(function(){if(0===g.getIteration()){var t=[],n=[];c.default.shuffleArray(a.default),a.default.forEach((function(e){var r=o(e);n.push(r.splice(-1)[0]),t.push(r)}));for(var e=(m=new f.default).fitTransform(n),i=[],s=[],l=0;l<t.length;l++)s.push(t[l].splice(0,1)[0]),i.push(o(t[l],[e[l]]));_=i.splice(-10),b=s.splice(-10),console.log(i),y=g.fitAsync(i,s)}var h=y.next(),d=g.predict(_),p=b,v=[];for(l=0;l<d.length;l++)v.push({"Sepal Width":_[l][0],"Petal Length":_[l][1],"Petal Width":_[l][2],"Iris Class":m.inverse([_[l][3]]),"Predicted Sepal Length":d[l].toFixed(4),"Expected Sepal Length":p[l].toFixed(1),"Abs Err":Math.abs(p[l]-d[l]).toFixed(4)});return r.dataUpdate(v),u.dataUpdate(g.config.lossHistory.slice(-100).map((function(t,n){return{x:n,y:t}}))),h.done})).mainView.appendChild(n),[2]}))}))},function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=[[5.1,3.5,1.4,.2,"Iris-setosa"],[4.9,3,1.4,.2,"Iris-setosa"],[4.7,3.2,1.3,.2,"Iris-setosa"],[4.6,3.1,1.5,.2,"Iris-setosa"],[5,3.6,1.4,.2,"Iris-setosa"],[5.4,3.9,1.7,.4,"Iris-setosa"],[4.6,3.4,1.4,.3,"Iris-setosa"],[5,3.4,1.5,.2,"Iris-setosa"],[4.4,2.9,1.4,.2,"Iris-setosa"],[4.9,3.1,1.5,.1,"Iris-setosa"],[5.4,3.7,1.5,.2,"Iris-setosa"],[4.8,3.4,1.6,.2,"Iris-setosa"],[4.8,3,1.4,.1,"Iris-setosa"],[4.3,3,1.1,.1,"Iris-setosa"],[5.8,4,1.2,.2,"Iris-setosa"],[5.7,4.4,1.5,.4,"Iris-setosa"],[5.4,3.9,1.3,.4,"Iris-setosa"],[5.1,3.5,1.4,.3,"Iris-setosa"],[5.7,3.8,1.7,.3,"Iris-setosa"],[5.1,3.8,1.5,.3,"Iris-setosa"],[5.4,3.4,1.7,.2,"Iris-setosa"],[5.1,3.7,1.5,.4,"Iris-setosa"],[4.6,3.6,1,.2,"Iris-setosa"],[5.1,3.3,1.7,.5,"Iris-setosa"],[4.8,3.4,1.9,.2,"Iris-setosa"],[5,3,1.6,.2,"Iris-setosa"],[5,3.4,1.6,.4,"Iris-setosa"],[5.2,3.5,1.5,.2,"Iris-setosa"],[5.2,3.4,1.4,.2,"Iris-setosa"],[4.7,3.2,1.6,.2,"Iris-setosa"],[4.8,3.1,1.6,.2,"Iris-setosa"],[5.4,3.4,1.5,.4,"Iris-setosa"],[5.2,4.1,1.5,.1,"Iris-setosa"],[5.5,4.2,1.4,.2,"Iris-setosa"],[4.9,3.1,1.5,.1,"Iris-setosa"],[5,3.2,1.2,.2,"Iris-setosa"],[5.5,3.5,1.3,.2,"Iris-setosa"],[4.9,3.1,1.5,.1,"Iris-setosa"],[4.4,3,1.3,.2,"Iris-setosa"],[5.1,3.4,1.5,.2,"Iris-setosa"],[5,3.5,1.3,.3,"Iris-setosa"],[4.5,2.3,1.3,.3,"Iris-setosa"],[4.4,3.2,1.3,.2,"Iris-setosa"],[5,3.5,1.6,.6,"Iris-setosa"],[5.1,3.8,1.9,.4,"Iris-setosa"],[4.8,3,1.4,.3,"Iris-setosa"],[5.1,3.8,1.6,.2,"Iris-setosa"],[4.6,3.2,1.4,.2,"Iris-setosa"],[5.3,3.7,1.5,.2,"Iris-setosa"],[5,3.3,1.4,.2,"Iris-setosa"],[7,3.2,4.7,1.4,"Iris-versicolor"],[6.4,3.2,4.5,1.5,"Iris-versicolor"],[6.9,3.1,4.9,1.5,"Iris-versicolor"],[5.5,2.3,4,1.3,"Iris-versicolor"],[6.5,2.8,4.6,1.5,"Iris-versicolor"],[5.7,2.8,4.5,1.3,"Iris-versicolor"],[6.3,3.3,4.7,1.6,"Iris-versicolor"],[4.9,2.4,3.3,1,"Iris-versicolor"],[6.6,2.9,4.6,1.3,"Iris-versicolor"],[5.2,2.7,3.9,1.4,"Iris-versicolor"],[5,2,3.5,1,"Iris-versicolor"],[5.9,3,4.2,1.5,"Iris-versicolor"],[6,2.2,4,1,"Iris-versicolor"],[6.1,2.9,4.7,1.4,"Iris-versicolor"],[5.6,2.9,3.6,1.3,"Iris-versicolor"],[6.7,3.1,4.4,1.4,"Iris-versicolor"],[5.6,3,4.5,1.5,"Iris-versicolor"],[5.8,2.7,4.1,1,"Iris-versicolor"],[6.2,2.2,4.5,1.5,"Iris-versicolor"],[5.6,2.5,3.9,1.1,"Iris-versicolor"],[5.9,3.2,4.8,1.8,"Iris-versicolor"],[6.1,2.8,4,1.3,"Iris-versicolor"],[6.3,2.5,4.9,1.5,"Iris-versicolor"],[6.1,2.8,4.7,1.2,"Iris-versicolor"],[6.4,2.9,4.3,1.3,"Iris-versicolor"],[6.6,3,4.4,1.4,"Iris-versicolor"],[6.8,2.8,4.8,1.4,"Iris-versicolor"],[6.7,3,5,1.7,"Iris-versicolor"],[6,2.9,4.5,1.5,"Iris-versicolor"],[5.7,2.6,3.5,1,"Iris-versicolor"],[5.5,2.4,3.8,1.1,"Iris-versicolor"],[5.5,2.4,3.7,1,"Iris-versicolor"],[5.8,2.7,3.9,1.2,"Iris-versicolor"],[6,2.7,5.1,1.6,"Iris-versicolor"],[5.4,3,4.5,1.5,"Iris-versicolor"],[6,3.4,4.5,1.6,"Iris-versicolor"],[6.7,3.1,4.7,1.5,"Iris-versicolor"],[6.3,2.3,4.4,1.3,"Iris-versicolor"],[5.6,3,4.1,1.3,"Iris-versicolor"],[5.5,2.5,4,1.3,"Iris-versicolor"],[5.5,2.6,4.4,1.2,"Iris-versicolor"],[6.1,3,4.6,1.4,"Iris-versicolor"],[5.8,2.6,4,1.2,"Iris-versicolor"],[5,2.3,3.3,1,"Iris-versicolor"],[5.6,2.7,4.2,1.3,"Iris-versicolor"],[5.7,3,4.2,1.2,"Iris-versicolor"],[5.7,2.9,4.2,1.3,"Iris-versicolor"],[6.2,2.9,4.3,1.3,"Iris-versicolor"],[5.1,2.5,3,1.1,"Iris-versicolor"],[5.7,2.8,4.1,1.3,"Iris-versicolor"],[6.3,3.3,6,2.5,"Iris-virginica"],[5.8,2.7,5.1,1.9,"Iris-virginica"],[7.1,3,5.9,2.1,"Iris-virginica"],[6.3,2.9,5.6,1.8,"Iris-virginica"],[6.5,3,5.8,2.2,"Iris-virginica"],[7.6,3,6.6,2.1,"Iris-virginica"],[4.9,2.5,4.5,1.7,"Iris-virginica"],[7.3,2.9,6.3,1.8,"Iris-virginica"],[6.7,2.5,5.8,1.8,"Iris-virginica"],[7.2,3.6,6.1,2.5,"Iris-virginica"],[6.5,3.2,5.1,2,"Iris-virginica"],[6.4,2.7,5.3,1.9,"Iris-virginica"],[6.8,3,5.5,2.1,"Iris-virginica"],[5.7,2.5,5,2,"Iris-virginica"],[5.8,2.8,5.1,2.4,"Iris-virginica"],[6.4,3.2,5.3,2.3,"Iris-virginica"],[6.5,3,5.5,1.8,"Iris-virginica"],[7.7,3.8,6.7,2.2,"Iris-virginica"],[7.7,2.6,6.9,2.3,"Iris-virginica"],[6,2.2,5,1.5,"Iris-virginica"],[6.9,3.2,5.7,2.3,"Iris-virginica"],[5.6,2.8,4.9,2,"Iris-virginica"],[7.7,2.8,6.7,2,"Iris-virginica"],[6.3,2.7,4.9,1.8,"Iris-virginica"],[6.7,3.3,5.7,2.1,"Iris-virginica"],[7.2,3.2,6,1.8,"Iris-virginica"],[6.2,2.8,4.8,1.8,"Iris-virginica"],[6.1,3,4.9,1.8,"Iris-virginica"],[6.4,2.8,5.6,2.1,"Iris-virginica"],[7.2,3,5.8,1.6,"Iris-virginica"],[7.4,2.8,6.1,1.9,"Iris-virginica"],[7.9,3.8,6.4,2,"Iris-virginica"],[6.4,2.8,5.6,2.2,"Iris-virginica"],[6.3,2.8,5.1,1.5,"Iris-virginica"],[6.1,2.6,5.6,1.4,"Iris-virginica"],[7.7,3,6.1,2.3,"Iris-virginica"],[6.3,3.4,5.6,2.4,"Iris-virginica"],[6.4,3.1,5.5,1.8,"Iris-virginica"],[6,3,4.8,1.8,"Iris-virginica"],[6.9,3.1,5.4,2.1,"Iris-virginica"],[6.7,3.1,5.6,2.4,"Iris-virginica"],[6.9,3.1,5.1,2.3,"Iris-virginica"],[5.8,2.7,5.1,1.9,"Iris-virginica"],[6.8,3.2,5.9,2.3,"Iris-virginica"],[6.7,3.3,5.7,2.5,"Iris-virginica"],[6.7,3,5.2,2.3,"Iris-virginica"],[6.3,2.5,5,1.9,"Iris-virginica"],[6.5,3,5.2,2,"Iris-virginica"],[6.2,3.4,5.4,2.3,"Iris-virginica"],[5.9,3,5.1,1.8,"Iris-virginica"]]},function(t,n,e){"use strict";var r,i=this&&this.__extends||(r=function(t,n){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var e in n)Object.prototype.hasOwnProperty.call(n,e)&&(t[e]=n[e])})(t,n)},function(t,n){function e(){this.constructor=t}r(t,n),t.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}),o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(n,"__esModule",{value:!0}),n.MultivariableLinearRegression=n.MultivariableLinearRegressionConfig=void 0;var u=o(e(31)),a=e(36),c=e(46),f=o(e(37)),s=e(32),l=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return i(n,t),n}(c.LinearRegressionConfig);n.MultivariableLinearRegressionConfig=l;var h=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return i(n,t),n.prototype.prepareDataset=function(t){this.transformedInput=s.addBias(t),this.config.biasAndWeights=Array(t[0].length+1).fill(0),this.currentPrediction=s.predictMultivariable(this.transformedInput,this.config.biasAndWeights)},n.prototype.predict=function(t){return s.predictMultivariable(s.addBias(t),this.config.biasAndWeights)},n.prototype.step=function(){var t=this.config,n=t.biasAndWeights,e=t.learningRate;this.config.biasAndWeights=u.default.gradientDescent(this.transformedInput,this.target,n,e,this.costFunction),this.currentPrediction=s.predictMultivariable(this.transformedInput,this.config.biasAndWeights);var r=this.lossFunction(this.currentPrediction,this.target),i=a.roundToPrecision(r,this.config.convergenceRoundingPrecision);this.config.lossHistory.push(i),this.convergence.addValue(i)},n}(f.default);n.MultivariableLinearRegression=h},function(t,n,e){"use strict";var r,i=this&&this.__extends||(r=function(t,n){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var e in n)Object.prototype.hasOwnProperty.call(n,e)&&(t[e]=n[e])})(t,n)},function(t,n){function e(){this.constructor=t}r(t,n),t.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}),o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(n,"__esModule",{value:!0});var u=function(t){function n(n,e){return void 0===e&&(e="table-elem"),t.call(this,n,e)||this}return i(n,t),n.prototype.updateFn=function(t,n){var e=this.config,r=e.width,i=e.border,o=e.borderCollapse,u=this.dependencies,a=u.document,c=u.rootContainer,f=a.createElement("table");f.border=i,f.width=r,f.style="border-collapse: "+o;var s=a.createElement("thead");if(f.appendChild(s),t.length){var l=a.createElement("tr");s.appendChild(l),Object.keys(t[0]).forEach((function(t){var n=a.createElement("td");n.appendChild(a.createTextNode(""+t)),l.appendChild(n)}))}var h=a.createElement("tbody");f.appendChild(h);for(var d=function(n){var e=a.createElement("tr");h.appendChild(e),Object.entries(t[n]).forEach((function(t){var n=a.createElement("td");n.appendChild(a.createTextNode(""+t[1])),e.appendChild(n)}))},p=0;p<t.length;p++)d(p);c.querySelector("."+n).innerHTML="",c.querySelector("."+n).appendChild(f)},n.prototype.setup=function(t){t&&this.updateFn(t,this.elemClass)},n.prototype.getDataUpdateFn=function(){return this.updateFn},n.prototype.dataUpdate=function(t){this.updateFn(t,this.elemClass)},n}(o(e(81)).default);n.default=u},function(t,n,e){"use strict";var r,i=this&&this.__extends||(r=function(t,n){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var e in n)Object.prototype.hasOwnProperty.call(n,e)&&(t[e]=n[e])})(t,n)},function(t,n){function e(){this.constructor=t}r(t,n),t.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}),o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var n,e=1,r=arguments.length;e<r;e++)for(var i in n=arguments[e])Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t}).apply(this,arguments)},u=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(n,"__esModule",{value:!0});var a=u(e(5)),c={border:1,width:"100%",borderCollapse:"collapse"},f=function(t){function n(n,e){return t.call(this,o(o({},c),n),e)||this}return i(n,t),n.prototype.injectDOM=function(t){Object.assign(this.dependencies,{document:t})},n.prototype.setContainer=function(t){var e,r,i=this.dependencies.document;t instanceof n?(e=t.getDependency("container"),r=t.getDependency("rootContainer")):(e=t,r=t);var o=i.createElement("div");o.setAttribute("class",this.elemClass),e.appendChild(o),Object.assign(this.dependencies,{container:o,rootContainer:r})},n}(a.default);n.default=f}]);