@eeshaai/code 1.0.0 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.md +3 -3
- package/README.md +337 -322
- package/dist/cli.js +4 -4
- package/dist/resources/styles/custom/instructions/design.md +283 -283
- package/dist/resources/styles/custom/instructions/requirements.md +161 -161
- package/dist/resources/styles/custom/instructions/tasks-implement.md +90 -90
- package/dist/resources/styles/custom/instructions/tasks.md +159 -159
- package/dist/resources/styles/custom/process.md +49 -49
- package/dist/resources/styles/custom/prompts/first.md +29 -29
- package/dist/resources/styles/custom/prompts/implement.md +27 -27
- package/dist/resources/styles/custom/prompts/rewrite-note.md +40 -40
- package/dist/resources/styles/custom/prompts/rewrite.md +32 -32
- package/dist/resources/styles/custom/style.yml +46 -46
- package/dist/resources/styles/grammar.md +727 -731
- package/dist/resources/styles/kiro/style.yml +63 -0
- package/dist/resources/styles/speckit/style.yml +59 -0
- package/dist/server.js +465 -486
- package/dist/web/chunks/{abnfDiagram-VCTEODGH-6KC3BO47.js → abnfDiagram-VCTEODGH-P6AZFXJU.js} +2 -2
- package/dist/web/chunks/architecture-7GRP2DOG-K6PMPK7N.js +2 -0
- package/dist/web/chunks/{architectureDiagram-5GKGNRK7-QKPCVOD2.js → architectureDiagram-5GKGNRK7-JB5DD7KL.js} +2 -2
- package/dist/web/chunks/{blockDiagram-I7D4REHJ-4XZWNXLB.js → blockDiagram-I7D4REHJ-ARCDWS5D.js} +2 -2
- package/dist/web/chunks/{c4Diagram-7LVT6UL2-4HJHKNE3.js → c4Diagram-7LVT6UL2-57CIXPJZ.js} +2 -2
- package/dist/web/chunks/{chunk-GQPX4EIC.js → chunk-3EZ2OKHV.js} +2 -2
- package/dist/web/chunks/{chunk-37NHO5VO.js → chunk-4KJ2U3VQ.js} +2 -2
- package/dist/web/chunks/{chunk-OXLTOJNY.js → chunk-4ZUFUR3U.js} +2 -2
- package/dist/web/chunks/{chunk-46RPN6IE.js → chunk-63W35XXT.js} +2 -2
- package/dist/web/chunks/{chunk-LSVIQRSY.js → chunk-6YVFH4BZ.js} +2 -2
- package/dist/web/chunks/{chunk-6VRLULJH.js → chunk-7PUK2GON.js} +2 -2
- package/dist/web/chunks/{chunk-TPXX77KB.js → chunk-7Q4TXKAS.js} +2 -2
- package/dist/web/chunks/{chunk-4S2DRQJ6.js → chunk-7QRY2XB7.js} +2 -2
- package/dist/web/chunks/{chunk-2DLEMZHM.js → chunk-CA2KMNVI.js} +2 -2
- package/dist/web/chunks/{chunk-LHNPPNB7.js → chunk-CFMSYLIK.js} +2 -2
- package/dist/web/chunks/{chunk-4TORDSRR.js → chunk-CKJRXIX7.js} +2 -2
- package/dist/web/chunks/{chunk-L34PKG4P.js → chunk-CXXG5KL5.js} +2 -2
- package/dist/web/chunks/chunk-EFBAEJZJ.js +2 -0
- package/dist/web/chunks/{chunk-LQ6CTWX6.js → chunk-FKTXB6RJ.js} +2 -2
- package/dist/web/chunks/{chunk-TXNHMPKM.js → chunk-FU7R4QOG.js} +2 -2
- package/dist/web/chunks/{chunk-DIRT34TZ.js → chunk-GEV6X2TZ.js} +2 -2
- package/dist/web/chunks/{chunk-II6WN3ZG.js → chunk-GPW7TXQS.js} +2 -2
- package/dist/web/chunks/{chunk-5KNOHX5X.js → chunk-I6RMTJPN.js} +2 -2
- package/dist/web/chunks/{chunk-6TGTE6CF.js → chunk-IKC3ZQV7.js} +2 -2
- package/dist/web/chunks/{chunk-LDXBIOBF.js → chunk-ITN3D7RJ.js} +2 -2
- package/dist/web/chunks/{chunk-OODDZ447.js → chunk-J6N7AUC2.js} +2 -2
- package/dist/web/chunks/{chunk-FGASMJTA.js → chunk-J7VDGOTK.js} +2 -2
- package/dist/web/chunks/chunk-KVRWT2YT.js +2 -0
- package/dist/web/chunks/{chunk-6URXM4C4.js → chunk-NBC6B3KN.js} +2 -2
- package/dist/web/chunks/{chunk-HBEUVMXY.js → chunk-NLHJT4GD.js} +2 -2
- package/dist/web/chunks/{chunk-HNYXDXPN.js → chunk-NOVL2262.js} +2 -2
- package/dist/web/chunks/{chunk-FPLIRG3U.js → chunk-NQ2XP5EN.js} +2 -2
- package/dist/web/chunks/chunk-P44J6WNO.js +2 -0
- package/dist/web/chunks/{chunk-6KSWTVXD.js → chunk-QBOSTM7Q.js} +2 -2
- package/dist/web/chunks/{chunk-HAKJ3AUV.js → chunk-QKU4ZFG5.js} +2 -2
- package/dist/web/chunks/{chunk-T4HEWXAQ.js → chunk-RINQGKTH.js} +2 -2
- package/dist/web/chunks/{chunk-TPYBIPJG.js → chunk-RK4EOCHJ.js} +2 -2
- package/dist/web/chunks/{chunk-YM7LHP34.js → chunk-S4X6ERXI.js} +2 -2
- package/dist/web/chunks/{chunk-VY4GEFSG.js → chunk-SE57RN36.js} +2 -2
- package/dist/web/chunks/{chunk-6FQEBIA3.js → chunk-SGL7WI35.js} +3 -3
- package/dist/web/chunks/chunk-SOAWGUAD.js +2 -0
- package/dist/web/chunks/{chunk-7XAOOQR4.js → chunk-U6ILIHMR.js} +2 -2
- package/dist/web/chunks/{chunk-M3SWKTLZ.js → chunk-USZ3ZJYA.js} +2 -2
- package/dist/web/chunks/{chunk-MBZYSJFT.js → chunk-UU7BHEBD.js} +2 -2
- package/dist/web/chunks/{chunk-QNEZP2TE.js → chunk-WL4ZMLPV.js} +2 -2
- package/dist/web/chunks/{chunk-MZEMPN3C.js → chunk-XE4RLI22.js} +2 -2
- package/dist/web/chunks/{chunk-VAKN3BTM.js → chunk-XJ6FSQEO.js} +2 -2
- package/dist/web/chunks/{chunk-XBYCKXUJ.js → chunk-XM7VXEGI.js} +2 -2
- package/dist/web/chunks/{chunk-2RFQIKC6.js → chunk-XO4SHRSO.js} +2 -2
- package/dist/web/chunks/{chunk-BUZPUGIT.js → chunk-XOZZFIHV.js} +2 -2
- package/dist/web/chunks/{chunk-FNIFXWXL.js → chunk-YYJ5VFH5.js} +2 -2
- package/dist/web/chunks/{chunk-JOSXY3EP.js → chunk-ZX45GMMJ.js} +2 -2
- package/dist/web/chunks/{chunk-4IPDIKAU.js → chunk-ZXMMITLE.js} +2 -2
- package/dist/web/chunks/classDiagram-ZZMXUADV-ALD5ECFE.js +2 -0
- package/dist/web/chunks/classDiagram-v2-VYDZK3BY-IMIEVQNX.js +2 -0
- package/dist/web/chunks/{cose-bilkent-JH36ORCC-ZPRW5JRW.js → cose-bilkent-JH36ORCC-YVEPG7XZ.js} +2 -2
- package/dist/web/chunks/cynefin-OW5HDTMX-5G3MG4ZJ.js +2 -0
- package/dist/web/chunks/{cynefinDiagram-5FMLGOSQ-O7GURHJG.js → cynefinDiagram-5FMLGOSQ-A3E3NM6X.js} +2 -2
- package/dist/web/chunks/{dagre-GXQ25YYZ-WK67O4N6.js → dagre-GXQ25YYZ-WKL3XLC6.js} +2 -2
- package/dist/web/chunks/{diagram-S7CK7UJ4-2CEO2EN2.js → diagram-S7CK7UJ4-AENTNBTM.js} +2 -2
- package/dist/web/chunks/{diagram-UQ7AKVKN-2Z4VHGF3.js → diagram-UQ7AKVKN-BN6IVDBP.js} +2 -2
- package/dist/web/chunks/{diagram-VSXAHHWV-AN4BOWYB.js → diagram-VSXAHHWV-X7IW7FU6.js} +2 -2
- package/dist/web/chunks/{diagram-VX7I27RA-VEZ2GXCM.js → diagram-VX7I27RA-4V6RQ6IS.js} +2 -2
- package/dist/web/chunks/{diagram-Z3DM3KII-TGGNDSLW.js → diagram-Z3DM3KII-ODYVRYAT.js} +2 -2
- package/dist/web/chunks/{ebnfDiagram-PWID7BFC-7RM57IJV.js → ebnfDiagram-PWID7BFC-2KD46JNN.js} +2 -2
- package/dist/web/chunks/{erDiagram-RLTQ6QDP-LCATC3YT.js → erDiagram-RLTQ6QDP-6MYZ2NRT.js} +2 -2
- package/dist/web/chunks/eventmodeling-NTZA5JFV-QZXC5VKS.js +2 -0
- package/dist/web/chunks/flowDiagram-HODETNUW-BILJ37ZX.js +2 -0
- package/dist/web/chunks/{ganttDiagram-EL5Y4UJY-5VPBBF2V.js → ganttDiagram-EL5Y4UJY-LVA23DND.js} +2 -2
- package/dist/web/chunks/gitGraph-4MIJSDKK-H43S2MKN.js +2 -0
- package/dist/web/chunks/{gitGraphDiagram-WWUBYQGX-HZMAGPIJ.js → gitGraphDiagram-WWUBYQGX-JRB4SUZI.js} +2 -2
- package/dist/web/chunks/info-A6RAGUB7-DKS7Q63Q.js +2 -0
- package/dist/web/chunks/infoDiagram-27XIBGKW-JLOVILVF.js +3 -0
- package/dist/web/chunks/{ishikawaDiagram-5VMMS53U-A54WWBPX.js → ishikawaDiagram-5VMMS53U-SUA2YN5D.js} +2 -2
- package/dist/web/chunks/{journeyDiagram-3NMN7TZE-XRCTMTR7.js → journeyDiagram-3NMN7TZE-ORMC2WB2.js} +2 -2
- package/dist/web/chunks/{kanban-definition-UXKFOSKX-UW2PQXZF.js → kanban-definition-UXKFOSKX-TPRG3VMF.js} +2 -2
- package/dist/web/chunks/{katex-B7HWCVTN.js → katex-DLHJF5VS.js} +2 -2
- package/dist/web/chunks/{mermaid.core-VL5SQK5M.js → mermaid.core-ZM3JSPVU.js} +3 -3
- package/dist/web/chunks/{mindmap-definition-YA3MSWOX-2H2Z6CVN.js → mindmap-definition-YA3MSWOX-BLW6WWFS.js} +2 -2
- package/dist/web/chunks/packet-AYTQ26CC-FIXQVEDM.js +2 -0
- package/dist/web/chunks/{pegDiagram-XKGWAZYB-KC4BYUN7.js → pegDiagram-XKGWAZYB-BYMP3YHY.js} +2 -2
- package/dist/web/chunks/pie-WAS4IAKB-R4EUNVPB.js +2 -0
- package/dist/web/chunks/{pieDiagram-E7YTZNPT-54T6XSU5.js → pieDiagram-E7YTZNPT-XOJE3H3L.js} +2 -2
- package/dist/web/chunks/{quadrantDiagram-AXDQQJYC-3G3RXSTE.js → quadrantDiagram-AXDQQJYC-23VSADTC.js} +2 -2
- package/dist/web/chunks/radar-RG4KPBEZ-O6Y2TENX.js +2 -0
- package/dist/web/chunks/railroad-74A4TZTK-PHWZ7KVH.js +2 -0
- package/dist/web/chunks/railroad-abnf-HS5TGJTU-DZ4OSJAN.js +2 -0
- package/dist/web/chunks/railroad-ebnf-LZEXJU2U-GYBLRQUL.js +2 -0
- package/dist/web/chunks/railroad-peg-WCYAUIDC-ZK4ZOBSX.js +2 -0
- package/dist/web/chunks/{railroadDiagram-O6MQD6OU-3LHKFF5N.js → railroadDiagram-O6MQD6OU-Z5IEAZJK.js} +2 -2
- package/dist/web/chunks/{requirementDiagram-BXWQKSXE-M4LF54YT.js → requirementDiagram-BXWQKSXE-MNP4O73E.js} +2 -2
- package/dist/web/chunks/{sankeyDiagram-P5KCCOFB-USCKKKNT.js → sankeyDiagram-P5KCCOFB-PADI35QR.js} +2 -2
- package/dist/web/chunks/{sequenceDiagram-WJ2MYXX4-QZ2O4KWV.js → sequenceDiagram-WJ2MYXX4-FGWOVXU4.js} +2 -2
- package/dist/web/chunks/{sizeCapture-INFHLROL-DZI5JWEV.js → sizeCapture-INFHLROL-Y6H3VQLE.js} +2 -2
- package/dist/web/chunks/{stateDiagram-D77RDMKH-EQJNTBF3.js → stateDiagram-D77RDMKH-7PRO4WYR.js} +2 -2
- package/dist/web/chunks/stateDiagram-v2-MP3YSRHH-2Y6SWEJW.js +2 -0
- package/dist/web/chunks/{swimlanes-42K2YHIH-H7SZ2HG6.js → swimlanes-42K2YHIH-DXVTFB6Q.js} +2 -2
- package/dist/web/chunks/swimlanesDiagram-VR7AAH4N-U2LP4OEE.js +9 -0
- package/dist/web/chunks/{timeline-definition-24CTP7MA-4Q2ARIQ6.js → timeline-definition-24CTP7MA-7ZIALE6C.js} +2 -2
- package/dist/web/chunks/treeView-Q6P3EWNA-VSJ7TJ36.js +2 -0
- package/dist/web/chunks/treemap-WGGIJYW6-JZWFGRKS.js +2 -0
- package/dist/web/chunks/{vennDiagram-4TSXK5OY-WMJVK74C.js → vennDiagram-4TSXK5OY-IPXNDYWM.js} +2 -2
- package/dist/web/chunks/wardley-WFR3VGLG-PAUUFL5N.js +2 -0
- package/dist/web/chunks/{wardleyDiagram-VM6X3IG4-CLB324RQ.js → wardleyDiagram-VM6X3IG4-4Z2U2NNR.js} +2 -2
- package/dist/web/chunks/{xychartDiagram-S5SC5T6Z-G5C2R7C2.js → xychartDiagram-S5SC5T6Z-NAEIWN4K.js} +2 -2
- package/dist/web/page.css +1 -1
- package/dist/web/page.js +156 -125
- package/package.json +64 -62
- package/dist/web/chunks/architecture-7GRP2DOG-JLXNDD4H.js +0 -2
- package/dist/web/chunks/chunk-4KP3BIPB.js +0 -2
- package/dist/web/chunks/chunk-HX7W7GSO.js +0 -2
- package/dist/web/chunks/chunk-PR453BYT.js +0 -2
- package/dist/web/chunks/chunk-R7TFKRNM.js +0 -2
- package/dist/web/chunks/classDiagram-ZZMXUADV-4J5HHZD6.js +0 -2
- package/dist/web/chunks/classDiagram-v2-VYDZK3BY-X6WY2DAS.js +0 -2
- package/dist/web/chunks/cynefin-OW5HDTMX-SVVTQRRB.js +0 -2
- package/dist/web/chunks/eventmodeling-NTZA5JFV-2SR57JAH.js +0 -2
- package/dist/web/chunks/flowDiagram-HODETNUW-HU6Y2EYQ.js +0 -2
- package/dist/web/chunks/gitGraph-4MIJSDKK-25JPIQP7.js +0 -2
- package/dist/web/chunks/info-A6RAGUB7-72MROTVX.js +0 -2
- package/dist/web/chunks/infoDiagram-27XIBGKW-BQYTPGNG.js +0 -3
- package/dist/web/chunks/packet-AYTQ26CC-NEGDW4B6.js +0 -2
- package/dist/web/chunks/pie-WAS4IAKB-OT3EMGHT.js +0 -2
- package/dist/web/chunks/radar-RG4KPBEZ-DCHU5FOQ.js +0 -2
- package/dist/web/chunks/railroad-74A4TZTK-RZX6D7H6.js +0 -2
- package/dist/web/chunks/railroad-abnf-HS5TGJTU-STTFN7R4.js +0 -2
- package/dist/web/chunks/railroad-ebnf-LZEXJU2U-RBXU3IBK.js +0 -2
- package/dist/web/chunks/railroad-peg-WCYAUIDC-OD5BXOH6.js +0 -2
- package/dist/web/chunks/stateDiagram-v2-MP3YSRHH-WSCDKLG6.js +0 -2
- package/dist/web/chunks/swimlanesDiagram-VR7AAH4N-DFYTBPVS.js +0 -9
- package/dist/web/chunks/treeView-Q6P3EWNA-ADCP6RPT.js +0 -2
- package/dist/web/chunks/treemap-WGGIJYW6-NEV7DUDY.js +0 -2
- package/dist/web/chunks/wardley-WFR3VGLG-4QZOFDI5.js +0 -2
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as St}from"./chunk-LDXBIOBF.js";import{a as tu,c as eu,d as a}from"./chunk-R7TFKRNM.js";var li=tu((ir,or)=>{a();(function(t,e){typeof ir=="object"&&typeof or<"u"?or.exports=e():typeof define=="function"&&define.amd?define(e):(t=typeof globalThis<"u"?globalThis:t||self).dayjs=e()})(ir,(function(){"use strict";var t=1e3,e=6e4,n=36e5,r="millisecond",i="second",o="minute",s="hour",u="day",l="week",f="month",h="quarter",m="year",c="date",d="Invalid Date",v=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,b=/\[([^\]]+)]|YYYY|YY|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,S={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(g){var x=["th","st","nd","rd"],_=g%100;return"["+g+(x[(_-20)%10]||x[_]||x[0])+"]"}},C=function(g,x,_){var k=String(g);return!k||k.length>=x?g:""+Array(x+1-k.length).join(_)+g},I={s:C,z:function(g){var x=-g.utcOffset(),_=Math.abs(x),k=Math.floor(_/60),M=_%60;return(x<=0?"+":"-")+C(k,2,"0")+":"+C(M,2,"0")},m:function g(x,_){if(x.date()<_.date())return-g(_,x);var k=12*(_.year()-x.year())+(_.month()-x.month()),M=x.clone().add(k,f),A=_-M<0,D=x.clone().add(k+(A?-1:1),f);return+(-(k+(_-M)/(A?M-D:D-M))||0)},a:function(g){return g<0?Math.ceil(g)||0:Math.floor(g)},p:function(g){return{M:f,y:m,w:l,d:u,D:c,h:s,m:o,s:i,ms:r,Q:h}[g]||String(g||"").toLowerCase().replace(/s$/,"")},u:function(g){return g===void 0}},$="en",N={};N[$]=S;var R="$isDayjsObject",w=function(g){return g instanceof W||!(!g||!g[R])},Y=function g(x,_,k){var M;if(!x)return $;if(typeof x=="string"){var A=x.toLowerCase();N[A]&&(M=A),_&&(N[A]=_,M=A);var D=x.split("-");if(!M&&D.length>1)return g(D[0])}else{var U=x.name;N[U]=x,M=U}return!k&&M&&($=M),M||!k&&$},F=function(g,x){if(w(g))return g.clone();var _=typeof x=="object"?x:{};return _.date=g,_.args=arguments,new W(_)},O=I;O.l=Y,O.i=w,O.w=function(g,x){return F(g,{locale:x.$L,utc:x.$u,x:x.$x,$offset:x.$offset})};var W=(function(){function g(_){this.$L=Y(_.locale,null,!0),this.parse(_),this.$x=this.$x||_.x||{},this[R]=!0}var x=g.prototype;return x.parse=function(_){this.$d=(function(k){var M=k.date,A=k.utc;if(M===null)return new Date(NaN);if(O.u(M))return new Date;if(M instanceof Date)return new Date(M);if(typeof M=="string"&&!/Z$/i.test(M)){var D=M.match(v);if(D){var U=D[2]-1||0,z=(D[7]||"0").substring(0,3);return A?new Date(Date.UTC(D[1],U,D[3]||1,D[4]||0,D[5]||0,D[6]||0,z)):new Date(D[1],U,D[3]||1,D[4]||0,D[5]||0,D[6]||0,z)}}return new Date(M)})(_),this.init()},x.init=function(){var _=this.$d;this.$y=_.getFullYear(),this.$M=_.getMonth(),this.$D=_.getDate(),this.$W=_.getDay(),this.$H=_.getHours(),this.$m=_.getMinutes(),this.$s=_.getSeconds(),this.$ms=_.getMilliseconds()},x.$utils=function(){return O},x.isValid=function(){return this.$d.toString()!==d},x.isSame=function(_,k){var M=F(_);return this.startOf(k)<=M&&M<=this.endOf(k)},x.isAfter=function(_,k){return F(_)<this.startOf(k)},x.isBefore=function(_,k){return this.endOf(k)<F(_)},x.$g=function(_,k,M){return O.u(_)?this[k]:this.set(M,_)},x.unix=function(){return Math.floor(this.valueOf()/1e3)},x.valueOf=function(){return this.$d.getTime()},x.startOf=function(_,k){var M=this,A=!!O.u(k)||k,D=O.p(_),U=function(ut,Q){var T=O.w(M.$u?Date.UTC(M.$y,Q,ut):new Date(M.$y,Q,ut),M);return A?T:T.endOf(u)},z=function(ut,Q){return O.w(M.toDate()[ut].apply(M.toDate("s"),(A?[0,0,0,0]:[23,59,59,999]).slice(Q)),M)},V=this.$W,G=this.$M,j=this.$D,ht="set"+(this.$u?"UTC":"");switch(D){case m:return A?U(1,0):U(31,11);case f:return A?U(1,G):U(0,G+1);case l:var K=this.$locale().weekStart||0,xt=(V<K?V+7:V)-K;return U(A?j-xt:j+(6-xt),G);case u:case c:return z(ht+"Hours",0);case s:return z(ht+"Minutes",1);case o:return z(ht+"Seconds",2);case i:return z(ht+"Milliseconds",3);default:return this.clone()}},x.endOf=function(_){return this.startOf(_,!1)},x.$set=function(_,k){var M,A=O.p(_),D="set"+(this.$u?"UTC":""),U=(M={},M[u]=D+"Date",M[c]=D+"Date",M[f]=D+"Month",M[m]=D+"FullYear",M[s]=D+"Hours",M[o]=D+"Minutes",M[i]=D+"Seconds",M[r]=D+"Milliseconds",M)[A],z=A===u?this.$D+(k-this.$W):k;if(A===f||A===m){var V=this.clone().set(c,1);V.$d[U](z),V.init(),this.$d=V.set(c,Math.min(this.$D,V.daysInMonth())).$d}else U&&this.$d[U](z);return this.init(),this},x.set=function(_,k){return this.clone().$set(_,k)},x.get=function(_){return this[O.p(_)]()},x.add=function(_,k){var M,A=this;_=Number(_);var D=O.p(k),U=function(G){var j=F(A);return O.w(j.date(j.date()+Math.round(G*_)),A)};if(D===f)return this.set(f,this.$M+_);if(D===m)return this.set(m,this.$y+_);if(D===u)return U(1);if(D===l)return U(7);var z=(M={},M[o]=e,M[s]=n,M[i]=t,M)[D]||1,V=this.$d.getTime()+_*z;return O.w(V,this)},x.subtract=function(_,k){return this.add(-1*_,k)},x.format=function(_){var k=this,M=this.$locale();if(!this.isValid())return M.invalidDate||d;var A=_||"YYYY-MM-DDTHH:mm:ssZ",D=O.z(this),U=this.$H,z=this.$m,V=this.$M,G=M.weekdays,j=M.months,ht=M.meridiem,K=function(Q,T,E,P){return Q&&(Q[T]||Q(k,A))||E[T].slice(0,P)},xt=function(Q){return O.s(U%12||12,Q,"0")},ut=ht||function(Q,T,E){var P=Q<12?"AM":"PM";return E?P.toLowerCase():P};return A.replace(b,(function(Q,T){return T||(function(E){switch(E){case"YY":return String(k.$y).slice(-2);case"YYYY":return O.s(k.$y,4,"0");case"M":return V+1;case"MM":return O.s(V+1,2,"0");case"MMM":return K(M.monthsShort,V,j,3);case"MMMM":return K(j,V);case"D":return k.$D;case"DD":return O.s(k.$D,2,"0");case"d":return String(k.$W);case"dd":return K(M.weekdaysMin,k.$W,G,2);case"ddd":return K(M.weekdaysShort,k.$W,G,3);case"dddd":return G[k.$W];case"H":return String(U);case"HH":return O.s(U,2,"0");case"h":return xt(1);case"hh":return xt(2);case"a":return ut(U,z,!0);case"A":return ut(U,z,!1);case"m":return String(z);case"mm":return O.s(z,2,"0");case"s":return String(k.$s);case"ss":return O.s(k.$s,2,"0");case"SSS":return O.s(k.$ms,3,"0");case"Z":return D}return null})(Q)||D.replace(":","")}))},x.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},x.diff=function(_,k,M){var A,D=this,U=O.p(k),z=F(_),V=(z.utcOffset()-this.utcOffset())*e,G=this-z,j=function(){return O.m(D,z)};switch(U){case m:A=j()/12;break;case f:A=j();break;case h:A=j()/3;break;case l:A=(G-V)/6048e5;break;case u:A=(G-V)/864e5;break;case s:A=G/n;break;case o:A=G/e;break;case i:A=G/t;break;default:A=G}return M?A:O.a(A)},x.daysInMonth=function(){return this.endOf(f).$D},x.$locale=function(){return N[this.$L]},x.locale=function(_,k){if(!_)return this.$L;var M=this.clone(),A=Y(_,k,!0);return A&&(M.$L=A),M},x.clone=function(){return O.w(this.$d,this)},x.toDate=function(){return new Date(this.valueOf())},x.toJSON=function(){return this.isValid()?this.toISOString():null},x.toISOString=function(){return this.$d.toISOString()},x.toString=function(){return this.$d.toUTCString()},g})(),B=W.prototype;return F.prototype=B,[["$ms",r],["$s",i],["$m",o],["$H",s],["$W",u],["$M",f],["$y",m],["$D",c]].forEach((function(g){B[g[1]]=function(x){return this.$g(x,g[0],g[1])}})),F.extend=function(g,x){return g.$i||(g(x,W,F),g.$i=!0),F},F.locale=Y,F.isDayjs=w,F.unix=function(g){return F(1e3*g)},F.en=N[$],F.Ls=N,F.p={},F}))});a();var ci=eu(li(),1),Ct={trace:0,debug:1,info:2,warn:3,error:4,fatal:5},pt={trace:St((...t)=>{},"trace"),debug:St((...t)=>{},"debug"),info:St((...t)=>{},"info"),warn:St((...t)=>{},"warn"),error:St((...t)=>{},"error"),fatal:St((...t)=>{},"fatal")},Gh=St(function(t="fatal"){let e=Ct.fatal;typeof t=="string"?t.toLowerCase()in Ct&&(e=Ct[t]):typeof t=="number"&&(e=t),pt.trace=()=>{},pt.debug=()=>{},pt.info=()=>{},pt.warn=()=>{},pt.error=()=>{},pt.fatal=()=>{},e<=Ct.fatal&&(pt.fatal=console.error?console.error.bind(console,mt("FATAL"),"color: orange"):console.log.bind(console,"\x1B[35m",mt("FATAL"))),e<=Ct.error&&(pt.error=console.error?console.error.bind(console,mt("ERROR"),"color: orange"):console.log.bind(console,"\x1B[31m",mt("ERROR"))),e<=Ct.warn&&(pt.warn=console.warn?console.warn.bind(console,mt("WARN"),"color: orange"):console.log.bind(console,"\x1B[33m",mt("WARN"))),e<=Ct.info&&(pt.info=console.info?console.info.bind(console,mt("INFO"),"color: lightblue"):console.log.bind(console,"\x1B[34m",mt("INFO"))),e<=Ct.debug&&(pt.debug=console.debug?console.debug.bind(console,mt("DEBUG"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",mt("DEBUG"))),e<=Ct.trace&&(pt.trace=console.debug?console.debug.bind(console,mt("TRACE"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",mt("TRACE")))},"setLogLevel"),mt=St(t=>`%c${(0,ci.default)().format("ss.SSS")} : ${t} : `,"format");a();function hi(t,e){let n;if(e===void 0)for(let r of t)r!=null&&(n<r||n===void 0&&r>=r)&&(n=r);else{let r=-1;for(let i of t)(i=e(i,++r,t))!=null&&(n<i||n===void 0&&i>=i)&&(n=i)}return n}a();function pi(t,e){let n;if(e===void 0)for(let r of t)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);else{let r=-1;for(let i of t)(i=e(i,++r,t))!=null&&(n>i||n===void 0&&i>=i)&&(n=i)}return n}a();a();a();function Wt(t,e){return t==null||e==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}a();a();function ar(t,e){return t==null||e==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function Vt(t){let e,n,r;t.length!==2?(e=Wt,n=(u,l)=>Wt(t(u),l),r=(u,l)=>t(u)-l):(e=t===Wt||t===ar?t:nu,n=t,r=t);function i(u,l,f=0,h=u.length){if(f<h){if(e(l,l)!==0)return h;do{let m=f+h>>>1;n(u[m],l)<0?f=m+1:h=m}while(f<h)}return f}function o(u,l,f=0,h=u.length){if(f<h){if(e(l,l)!==0)return h;do{let m=f+h>>>1;n(u[m],l)<=0?f=m+1:h=m}while(f<h)}return f}function s(u,l,f=0,h=u.length){let m=i(u,l,f,h-1);return m>f&&r(u[m-1],l)>-r(u[m],l)?m-1:m}return{left:i,center:s,right:o}}function nu(){return 0}a();function sr(t){return t===null?NaN:+t}var mi=Vt(Wt),di=mi.right,ru=mi.left,iu=Vt(sr).center,ur=di;a();var le=class extends Map{constructor(e,n=su){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),e!=null)for(let[r,i]of e)this.set(r,i)}get(e){return super.get(xi(this,e))}has(e){return super.has(xi(this,e))}set(e,n){return super.set(ou(this,e),n)}delete(e){return super.delete(au(this,e))}};function xi({_intern:t,_key:e},n){let r=e(n);return t.has(r)?t.get(r):n}function ou({_intern:t,_key:e},n){let r=e(n);return t.has(r)?t.get(r):(t.set(r,n),n)}function au({_intern:t,_key:e},n){let r=e(n);return t.has(r)&&(n=t.get(r),t.delete(r)),n}function su(t){return t!==null&&typeof t=="object"?t.valueOf():t}a();var uu=Math.sqrt(50),fu=Math.sqrt(10),lu=Math.sqrt(2);function sn(t,e,n){let r=(e-t)/Math.max(0,n),i=Math.floor(Math.log10(r)),o=r/Math.pow(10,i),s=o>=uu?10:o>=fu?5:o>=lu?2:1,u,l,f;return i<0?(f=Math.pow(10,-i)/s,u=Math.round(t*f),l=Math.round(e*f),u/f<t&&++u,l/f>e&&--l,f=-f):(f=Math.pow(10,i)*s,u=Math.round(t/f),l=Math.round(e/f),u*f<t&&++u,l*f>e&&--l),l<u&&.5<=n&&n<2?sn(t,e,n*2):[u,l,f]}function un(t,e,n){if(e=+e,t=+t,n=+n,!(n>0))return[];if(t===e)return[t];let r=e<t,[i,o,s]=r?sn(e,t,n):sn(t,e,n);if(!(o>=i))return[];let u=o-i+1,l=new Array(u);if(r)if(s<0)for(let f=0;f<u;++f)l[f]=(o-f)/-s;else for(let f=0;f<u;++f)l[f]=(o-f)*s;else if(s<0)for(let f=0;f<u;++f)l[f]=(i+f)/-s;else for(let f=0;f<u;++f)l[f]=(i+f)*s;return l}function Oe(t,e,n){return e=+e,t=+t,n=+n,sn(t,e,n)[2]}function ce(t,e,n){e=+e,t=+t,n=+n;let r=e<t,i=r?Oe(e,t,n):Oe(t,e,n);return(r?-1:1)*(i<0?1/-i:i)}a();function fn(t,e,n){t=+t,e=+e,n=(i=arguments.length)<2?(e=t,t=0,1):i<3?1:+n;for(var r=-1,i=Math.max(0,Math.ceil((e-t)/n))|0,o=new Array(i);++r<i;)o[r]=t+r*n;return o}a();a();function _i(t){return t}var cn=1,fr=2,lr=3,ln=4,gi=1e-6;function cu(t){return"translate("+t+",0)"}function hu(t){return"translate(0,"+t+")"}function pu(t){return e=>+t(e)}function mu(t,e){return e=Math.max(0,t.bandwidth()-e*2)/2,t.round()&&(e=Math.round(e)),n=>+t(n)+e}function du(){return!this.__axis}function yi(t,e){var n=[],r=null,i=null,o=6,s=6,u=3,l=typeof window<"u"&&window.devicePixelRatio>1?0:.5,f=t===cn||t===ln?-1:1,h=t===ln||t===fr?"x":"y",m=t===cn||t===lr?cu:hu;function c(d){var v=r??(e.ticks?e.ticks.apply(e,n):e.domain()),b=i??(e.tickFormat?e.tickFormat.apply(e,n):_i),S=Math.max(o,0)+u,C=e.range(),I=+C[0]+l,$=+C[C.length-1]+l,N=(e.bandwidth?mu:pu)(e.copy(),l),R=d.selection?d.selection():d,w=R.selectAll(".domain").data([null]),Y=R.selectAll(".tick").data(v,e).order(),F=Y.exit(),O=Y.enter().append("g").attr("class","tick"),W=Y.select("line"),B=Y.select("text");w=w.merge(w.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),Y=Y.merge(O),W=W.merge(O.append("line").attr("stroke","currentColor").attr(h+"2",f*o)),B=B.merge(O.append("text").attr("fill","currentColor").attr(h,f*S).attr("dy",t===cn?"0em":t===lr?"0.71em":"0.32em")),d!==R&&(w=w.transition(d),Y=Y.transition(d),W=W.transition(d),B=B.transition(d),F=F.transition(d).attr("opacity",gi).attr("transform",function(g){return isFinite(g=N(g))?m(g+l):this.getAttribute("transform")}),O.attr("opacity",gi).attr("transform",function(g){var x=this.parentNode.__axis;return m((x&&isFinite(x=x(g))?x:N(g))+l)})),F.remove(),w.attr("d",t===ln||t===fr?s?"M"+f*s+","+I+"H"+l+"V"+$+"H"+f*s:"M"+l+","+I+"V"+$:s?"M"+I+","+f*s+"V"+l+"H"+$+"V"+f*s:"M"+I+","+l+"H"+$),Y.attr("opacity",1).attr("transform",function(g){return m(N(g)+l)}),W.attr(h+"2",f*o),B.attr(h,f*S).text(b),R.filter(du).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",t===fr?"start":t===ln?"end":"middle"),R.each(function(){this.__axis=N})}return c.scale=function(d){return arguments.length?(e=d,c):e},c.ticks=function(){return n=Array.from(arguments),c},c.tickArguments=function(d){return arguments.length?(n=d==null?[]:Array.from(d),c):n.slice()},c.tickValues=function(d){return arguments.length?(r=d==null?null:Array.from(d),c):r&&r.slice()},c.tickFormat=function(d){return arguments.length?(i=d,c):i},c.tickSize=function(d){return arguments.length?(o=s=+d,c):o},c.tickSizeInner=function(d){return arguments.length?(o=+d,c):o},c.tickSizeOuter=function(d){return arguments.length?(s=+d,c):s},c.tickPadding=function(d){return arguments.length?(u=+d,c):u},c.offset=function(d){return arguments.length?(l=+d,c):l},c}function xu(t){return yi(cn,t)}function _u(t){return yi(lr,t)}a();a();a();a();a();function gu(){}function Xt(t){return t==null?gu:function(){return this.querySelector(t)}}function vi(t){typeof t!="function"&&(t=Xt(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i<n;++i)for(var o=e[i],s=o.length,u=r[i]=new Array(s),l,f,h=0;h<s;++h)(l=o[h])&&(f=t.call(l,l.__data__,h,o))&&("__data__"in l&&(f.__data__=l.__data__),u[h]=f);return new Z(r,this._parents)}a();a();function cr(t){return t==null?[]:Array.isArray(t)?t:Array.from(t)}a();function yu(){return[]}function Ie(t){return t==null?yu:function(){return this.querySelectorAll(t)}}function vu(t){return function(){return cr(t.apply(this,arguments))}}function wi(t){typeof t=="function"?t=vu(t):t=Ie(t);for(var e=this._groups,n=e.length,r=[],i=[],o=0;o<n;++o)for(var s=e[o],u=s.length,l,f=0;f<u;++f)(l=s[f])&&(r.push(t.call(l,l.__data__,f,s)),i.push(l));return new Z(r,i)}a();a();function Ee(t){return function(){return this.matches(t)}}function hn(t){return function(e){return e.matches(t)}}var wu=Array.prototype.find;function bu(t){return function(){return wu.call(this.children,t)}}function Mu(){return this.firstElementChild}function bi(t){return this.select(t==null?Mu:bu(typeof t=="function"?t:hn(t)))}a();var Tu=Array.prototype.filter;function ku(){return Array.from(this.children)}function Su(t){return function(){return Tu.call(this.children,t)}}function Mi(t){return this.selectAll(t==null?ku:Su(typeof t=="function"?t:hn(t)))}a();function Ti(t){typeof t!="function"&&(t=Ee(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i<n;++i)for(var o=e[i],s=o.length,u=r[i]=[],l,f=0;f<s;++f)(l=o[f])&&t.call(l,l.__data__,f,o)&&u.push(l);return new Z(r,this._parents)}a();a();a();function pn(t){return new Array(t.length)}function ki(){return new Z(this._enter||this._groups.map(pn),this._parents)}function Re(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}Re.prototype={constructor:Re,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};a();function Si(t){return function(){return t}}function Cu(t,e,n,r,i,o){for(var s=0,u,l=e.length,f=o.length;s<f;++s)(u=e[s])?(u.__data__=o[s],r[s]=u):n[s]=new Re(t,o[s]);for(;s<l;++s)(u=e[s])&&(i[s]=u)}function Nu(t,e,n,r,i,o,s){var u,l,f=new Map,h=e.length,m=o.length,c=new Array(h),d;for(u=0;u<h;++u)(l=e[u])&&(c[u]=d=s.call(l,l.__data__,u,e)+"",f.has(d)?i[u]=l:f.set(d,l));for(u=0;u<m;++u)d=s.call(t,o[u],u,o)+"",(l=f.get(d))?(r[u]=l,l.__data__=o[u],f.delete(d)):n[u]=new Re(t,o[u]);for(u=0;u<h;++u)(l=e[u])&&f.get(c[u])===l&&(i[u]=l)}function Au(t){return t.__data__}function Ci(t,e){if(!arguments.length)return Array.from(this,Au);var n=e?Nu:Cu,r=this._parents,i=this._groups;typeof t!="function"&&(t=Si(t));for(var o=i.length,s=new Array(o),u=new Array(o),l=new Array(o),f=0;f<o;++f){var h=r[f],m=i[f],c=m.length,d=Du(t.call(h,h&&h.__data__,f,r)),v=d.length,b=u[f]=new Array(v),S=s[f]=new Array(v),C=l[f]=new Array(c);n(h,m,b,S,C,d,e);for(var I=0,$=0,N,R;I<v;++I)if(N=b[I]){for(I>=$&&($=I+1);!(R=S[$])&&++$<v;);N._next=R||null}}return s=new Z(s,r),s._enter=u,s._exit=l,s}function Du(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}a();function Ni(){return new Z(this._exit||this._groups.map(pn),this._parents)}a();function Ai(t,e,n){var r=this.enter(),i=this,o=this.exit();return typeof t=="function"?(r=t(r),r&&(r=r.selection())):r=r.append(t+""),e!=null&&(i=e(i),i&&(i=i.selection())),n==null?o.remove():n(o),r&&i?r.merge(i).order():i}a();function Di(t){for(var e=t.selection?t.selection():t,n=this._groups,r=e._groups,i=n.length,o=r.length,s=Math.min(i,o),u=new Array(i),l=0;l<s;++l)for(var f=n[l],h=r[l],m=f.length,c=u[l]=new Array(m),d,v=0;v<m;++v)(d=f[v]||h[v])&&(c[v]=d);for(;l<i;++l)u[l]=n[l];return new Z(u,this._parents)}a();function $i(){for(var t=this._groups,e=-1,n=t.length;++e<n;)for(var r=t[e],i=r.length-1,o=r[i],s;--i>=0;)(s=r[i])&&(o&&s.compareDocumentPosition(o)^4&&o.parentNode.insertBefore(s,o),o=s);return this}a();function Oi(t){t||(t=$u);function e(m,c){return m&&c?t(m.__data__,c.__data__):!m-!c}for(var n=this._groups,r=n.length,i=new Array(r),o=0;o<r;++o){for(var s=n[o],u=s.length,l=i[o]=new Array(u),f,h=0;h<u;++h)(f=s[h])&&(l[h]=f);l.sort(e)}return new Z(i,this._parents).order()}function $u(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}a();function Ii(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this}a();function Ei(){return Array.from(this)}a();function Ri(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var r=t[e],i=0,o=r.length;i<o;++i){var s=r[i];if(s)return s}return null}a();function Yi(){let t=0;for(let e of this)++t;return t}a();function Pi(){return!this.node()}a();function Fi(t){for(var e=this._groups,n=0,r=e.length;n<r;++n)for(var i=e[n],o=0,s=i.length,u;o<s;++o)(u=i[o])&&t.call(u,u.__data__,o,i);return this}a();a();a();var mn="http://www.w3.org/1999/xhtml",hr={svg:"http://www.w3.org/2000/svg",xhtml:mn,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Nt(t){var e=t+="",n=e.indexOf(":");return n>=0&&(e=t.slice(0,n))!=="xmlns"&&(t=t.slice(n+1)),hr.hasOwnProperty(e)?{space:hr[e],local:t}:t}function Ou(t){return function(){this.removeAttribute(t)}}function Iu(t){return function(){this.removeAttributeNS(t.space,t.local)}}function Eu(t,e){return function(){this.setAttribute(t,e)}}function Ru(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function Yu(t,e){return function(){var n=e.apply(this,arguments);n==null?this.removeAttribute(t):this.setAttribute(t,n)}}function Pu(t,e){return function(){var n=e.apply(this,arguments);n==null?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,n)}}function Ui(t,e){var n=Nt(t);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((e==null?n.local?Iu:Ou:typeof e=="function"?n.local?Pu:Yu:n.local?Ru:Eu)(n,e))}a();a();function dn(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function Fu(t){return function(){this.style.removeProperty(t)}}function Uu(t,e,n){return function(){this.style.setProperty(t,e,n)}}function zu(t,e,n){return function(){var r=e.apply(this,arguments);r==null?this.style.removeProperty(t):this.style.setProperty(t,r,n)}}function zi(t,e,n){return arguments.length>1?this.each((e==null?Fu:typeof e=="function"?zu:Uu)(t,e,n??"")):Rt(this.node(),t)}function Rt(t,e){return t.style.getPropertyValue(e)||dn(t).getComputedStyle(t,null).getPropertyValue(e)}a();function Lu(t){return function(){delete this[t]}}function Hu(t,e){return function(){this[t]=e}}function Bu(t,e){return function(){var n=e.apply(this,arguments);n==null?delete this[t]:this[t]=n}}function Li(t,e){return arguments.length>1?this.each((e==null?Lu:typeof e=="function"?Bu:Hu)(t,e)):this.node()[t]}a();function Hi(t){return t.trim().split(/^|\s+/)}function pr(t){return t.classList||new Bi(t)}function Bi(t){this._node=t,this._names=Hi(t.getAttribute("class")||"")}Bi.prototype={add:function(t){var e=this._names.indexOf(t);e<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var e=this._names.indexOf(t);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};function qi(t,e){for(var n=pr(t),r=-1,i=e.length;++r<i;)n.add(e[r])}function Wi(t,e){for(var n=pr(t),r=-1,i=e.length;++r<i;)n.remove(e[r])}function qu(t){return function(){qi(this,t)}}function Wu(t){return function(){Wi(this,t)}}function Vu(t,e){return function(){(e.apply(this,arguments)?qi:Wi)(this,t)}}function Vi(t,e){var n=Hi(t+"");if(arguments.length<2){for(var r=pr(this.node()),i=-1,o=n.length;++i<o;)if(!r.contains(n[i]))return!1;return!0}return this.each((typeof e=="function"?Vu:e?qu:Wu)(n,e))}a();function Xu(){this.textContent=""}function Gu(t){return function(){this.textContent=t}}function Zu(t){return function(){var e=t.apply(this,arguments);this.textContent=e??""}}function Xi(t){return arguments.length?this.each(t==null?Xu:(typeof t=="function"?Zu:Gu)(t)):this.node().textContent}a();function Qu(){this.innerHTML=""}function Ku(t){return function(){this.innerHTML=t}}function Ju(t){return function(){var e=t.apply(this,arguments);this.innerHTML=e??""}}function Gi(t){return arguments.length?this.each(t==null?Qu:(typeof t=="function"?Ju:Ku)(t)):this.node().innerHTML}a();function ju(){this.nextSibling&&this.parentNode.appendChild(this)}function Zi(){return this.each(ju)}a();function tf(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Qi(){return this.each(tf)}a();a();function ef(t){return function(){var e=this.ownerDocument,n=this.namespaceURI;return n===mn&&e.documentElement.namespaceURI===mn?e.createElement(t):e.createElementNS(n,t)}}function nf(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function xn(t){var e=Nt(t);return(e.local?nf:ef)(e)}function Ki(t){var e=typeof t=="function"?t:xn(t);return this.select(function(){return this.appendChild(e.apply(this,arguments))})}a();function rf(){return null}function Ji(t,e){var n=typeof t=="function"?t:xn(t),r=e==null?rf:typeof e=="function"?e:Xt(e);return this.select(function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)})}a();function of(){var t=this.parentNode;t&&t.removeChild(this)}function ji(){return this.each(of)}a();function af(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function sf(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function to(t){return this.select(t?sf:af)}a();function eo(t){return arguments.length?this.property("__data__",t):this.node().__data__}a();function uf(t){return function(e){t.call(this,e,this.__data__)}}function ff(t){return t.trim().split(/^|\s+/).map(function(e){var n="",r=e.indexOf(".");return r>=0&&(n=e.slice(r+1),e=e.slice(0,r)),{type:e,name:n}})}function lf(t){return function(){var e=this.__on;if(e){for(var n=0,r=-1,i=e.length,o;n<i;++n)o=e[n],(!t.type||o.type===t.type)&&o.name===t.name?this.removeEventListener(o.type,o.listener,o.options):e[++r]=o;++r?e.length=r:delete this.__on}}}function cf(t,e,n){return function(){var r=this.__on,i,o=uf(e);if(r){for(var s=0,u=r.length;s<u;++s)if((i=r[s]).type===t.type&&i.name===t.name){this.removeEventListener(i.type,i.listener,i.options),this.addEventListener(i.type,i.listener=o,i.options=n),i.value=e;return}}this.addEventListener(t.type,o,n),i={type:t.type,name:t.name,value:e,listener:o,options:n},r?r.push(i):this.__on=[i]}}function no(t,e,n){var r=ff(t+""),i,o=r.length,s;if(arguments.length<2){var u=this.node().__on;if(u){for(var l=0,f=u.length,h;l<f;++l)for(i=0,h=u[l];i<o;++i)if((s=r[i]).type===h.type&&s.name===h.name)return h.value}return}for(u=e?cf:lf,i=0;i<o;++i)this.each(u(r[i],e,n));return this}a();function ro(t,e,n){var r=dn(t),i=r.CustomEvent;typeof i=="function"?i=new i(e,n):(i=r.document.createEvent("Event"),n?(i.initEvent(e,n.bubbles,n.cancelable),i.detail=n.detail):i.initEvent(e,!1,!1)),t.dispatchEvent(i)}function hf(t,e){return function(){return ro(this,t,e)}}function pf(t,e){return function(){return ro(this,t,e.apply(this,arguments))}}function io(t,e){return this.each((typeof e=="function"?pf:hf)(t,e))}a();function*oo(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var r=t[e],i=0,o=r.length,s;i<o;++i)(s=r[i])&&(yield s)}var mr=[null];function Z(t,e){this._groups=t,this._parents=e}function ao(){return new Z([[document.documentElement]],mr)}function mf(){return this}Z.prototype=ao.prototype={constructor:Z,select:vi,selectAll:wi,selectChild:bi,selectChildren:Mi,filter:Ti,data:Ci,enter:ki,exit:Ni,join:Ai,merge:Di,selection:mf,order:$i,sort:Oi,call:Ii,nodes:Ei,node:Ri,size:Yi,empty:Pi,each:Fi,attr:Ui,style:zi,property:Li,classed:Vi,text:Xi,html:Gi,raise:Zi,lower:Qi,append:Ki,insert:Ji,remove:ji,clone:to,datum:eo,on:no,dispatch:io,[Symbol.iterator]:oo};var At=ao;function df(t){return typeof t=="string"?new Z([[document.querySelector(t)]],[document.documentElement]):new Z([[t]],mr)}a();a();a();a();a();function Gt(t,e,n){t.prototype=e.prototype=n,n.constructor=t}function he(t,e){var n=Object.create(t.prototype);for(var r in e)n[r]=e[r];return n}function Yt(){}var Ye=.7,yn=1/Ye,pe="\\s*([+-]?\\d+)\\s*",Pe="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",wt="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",xf=/^#([0-9a-f]{3,8})$/,_f=new RegExp(`^rgb\\(${pe},${pe},${pe}\\)$`),gf=new RegExp(`^rgb\\(${wt},${wt},${wt}\\)$`),yf=new RegExp(`^rgba\\(${pe},${pe},${pe},${Pe}\\)$`),vf=new RegExp(`^rgba\\(${wt},${wt},${wt},${Pe}\\)$`),wf=new RegExp(`^hsl\\(${Pe},${wt},${wt}\\)$`),bf=new RegExp(`^hsla\\(${Pe},${wt},${wt},${Pe}\\)$`),so={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};Gt(Yt,gt,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:uo,formatHex:uo,formatHex8:Mf,formatHsl:Tf,formatRgb:fo,toString:fo});function uo(){return this.rgb().formatHex()}function Mf(){return this.rgb().formatHex8()}function Tf(){return xo(this).formatHsl()}function fo(){return this.rgb().formatRgb()}function gt(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=xf.exec(t))?(n=e[1].length,e=parseInt(e[1],16),n===6?lo(e):n===3?new nt(e>>8&15|e>>4&240,e>>4&15|e&240,(e&15)<<4|e&15,1):n===8?_n(e>>24&255,e>>16&255,e>>8&255,(e&255)/255):n===4?_n(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|e&240,((e&15)<<4|e&15)/255):null):(e=_f.exec(t))?new nt(e[1],e[2],e[3],1):(e=gf.exec(t))?new nt(e[1]*255/100,e[2]*255/100,e[3]*255/100,1):(e=yf.exec(t))?_n(e[1],e[2],e[3],e[4]):(e=vf.exec(t))?_n(e[1]*255/100,e[2]*255/100,e[3]*255/100,e[4]):(e=wf.exec(t))?po(e[1],e[2]/100,e[3]/100,1):(e=bf.exec(t))?po(e[1],e[2]/100,e[3]/100,e[4]):so.hasOwnProperty(t)?lo(so[t]):t==="transparent"?new nt(NaN,NaN,NaN,0):null}function lo(t){return new nt(t>>16&255,t>>8&255,t&255,1)}function _n(t,e,n,r){return r<=0&&(t=e=n=NaN),new nt(t,e,n,r)}function xr(t){return t instanceof Yt||(t=gt(t)),t?(t=t.rgb(),new nt(t.r,t.g,t.b,t.opacity)):new nt}function me(t,e,n,r){return arguments.length===1?xr(t):new nt(t,e,n,r??1)}function nt(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}Gt(nt,me,he(Yt,{brighter(t){return t=t==null?yn:Math.pow(yn,t),new nt(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=t==null?Ye:Math.pow(Ye,t),new nt(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new nt(Qt(this.r),Qt(this.g),Qt(this.b),vn(this.opacity))},displayable(){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:co,formatHex:co,formatHex8:kf,formatRgb:ho,toString:ho}));function co(){return`#${Zt(this.r)}${Zt(this.g)}${Zt(this.b)}`}function kf(){return`#${Zt(this.r)}${Zt(this.g)}${Zt(this.b)}${Zt((isNaN(this.opacity)?1:this.opacity)*255)}`}function ho(){let t=vn(this.opacity);return`${t===1?"rgb(":"rgba("}${Qt(this.r)}, ${Qt(this.g)}, ${Qt(this.b)}${t===1?")":`, ${t})`}`}function vn(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function Qt(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function Zt(t){return t=Qt(t),(t<16?"0":"")+t.toString(16)}function po(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new _t(t,e,n,r)}function xo(t){if(t instanceof _t)return new _t(t.h,t.s,t.l,t.opacity);if(t instanceof Yt||(t=gt(t)),!t)return new _t;if(t instanceof _t)return t;t=t.rgb();var e=t.r/255,n=t.g/255,r=t.b/255,i=Math.min(e,n,r),o=Math.max(e,n,r),s=NaN,u=o-i,l=(o+i)/2;return u?(e===o?s=(n-r)/u+(n<r)*6:n===o?s=(r-e)/u+2:s=(e-n)/u+4,u/=l<.5?o+i:2-o-i,s*=60):u=l>0&&l<1?0:s,new _t(s,u,l,t.opacity)}function _o(t,e,n,r){return arguments.length===1?xo(t):new _t(t,e,n,r??1)}function _t(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}Gt(_t,_o,he(Yt,{brighter(t){return t=t==null?yn:Math.pow(yn,t),new _t(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=t==null?Ye:Math.pow(Ye,t),new _t(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+(this.h<0)*360,e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,i=2*n-r;return new nt(dr(t>=240?t-240:t+120,i,r),dr(t,i,r),dr(t<120?t+240:t-120,i,r),this.opacity)},clamp(){return new _t(mo(this.h),gn(this.s),gn(this.l),vn(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){let t=vn(this.opacity);return`${t===1?"hsl(":"hsla("}${mo(this.h)}, ${gn(this.s)*100}%, ${gn(this.l)*100}%${t===1?")":`, ${t})`}`}}));function mo(t){return t=(t||0)%360,t<0?t+360:t}function gn(t){return Math.max(0,Math.min(1,t||0))}function dr(t,e,n){return(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)*255}a();a();var go=Math.PI/180,yo=180/Math.PI;var wn=18,vo=.96422,wo=1,bo=.82521,Mo=4/29,de=6/29,To=3*de*de,Sf=de*de*de;function ko(t){if(t instanceof bt)return new bt(t.l,t.a,t.b,t.opacity);if(t instanceof Dt)return So(t);t instanceof nt||(t=xr(t));var e=vr(t.r),n=vr(t.g),r=vr(t.b),i=_r((.2225045*e+.7168786*n+.0606169*r)/wo),o,s;return e===n&&n===r?o=s=i:(o=_r((.4360747*e+.3850649*n+.1430804*r)/vo),s=_r((.0139322*e+.0971045*n+.7141733*r)/bo)),new bt(116*i-16,500*(o-i),200*(i-s),t.opacity)}function wr(t,e,n,r){return arguments.length===1?ko(t):new bt(t,e,n,r??1)}function bt(t,e,n,r){this.l=+t,this.a=+e,this.b=+n,this.opacity=+r}Gt(bt,wr,he(Yt,{brighter(t){return new bt(this.l+wn*(t??1),this.a,this.b,this.opacity)},darker(t){return new bt(this.l-wn*(t??1),this.a,this.b,this.opacity)},rgb(){var t=(this.l+16)/116,e=isNaN(this.a)?t:t+this.a/500,n=isNaN(this.b)?t:t-this.b/200;return e=vo*gr(e),t=wo*gr(t),n=bo*gr(n),new nt(yr(3.1338561*e-1.6168667*t-.4906146*n),yr(-.9787684*e+1.9161415*t+.033454*n),yr(.0719453*e-.2289914*t+1.4052427*n),this.opacity)}}));function _r(t){return t>Sf?Math.pow(t,1/3):t/To+Mo}function gr(t){return t>de?t*t*t:To*(t-Mo)}function yr(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function vr(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function Cf(t){if(t instanceof Dt)return new Dt(t.h,t.c,t.l,t.opacity);if(t instanceof bt||(t=ko(t)),t.a===0&&t.b===0)return new Dt(NaN,0<t.l&&t.l<100?0:NaN,t.l,t.opacity);var e=Math.atan2(t.b,t.a)*yo;return new Dt(e<0?e+360:e,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}function Fe(t,e,n,r){return arguments.length===1?Cf(t):new Dt(t,e,n,r??1)}function Dt(t,e,n,r){this.h=+t,this.c=+e,this.l=+n,this.opacity=+r}function So(t){if(isNaN(t.h))return new bt(t.l,0,0,t.opacity);var e=t.h*go;return new bt(t.l,Math.cos(e)*t.c,Math.sin(e)*t.c,t.opacity)}Gt(Dt,Fe,he(Yt,{brighter(t){return new Dt(this.h,this.c,this.l+wn*(t??1),this.opacity)},darker(t){return new Dt(this.h,this.c,this.l-wn*(t??1),this.opacity)},rgb(){return So(this).rgb()}}));a();a();var xe=t=>()=>t;function Co(t,e){return function(n){return t+n*e}}function Nf(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(r){return Math.pow(t+r*e,n)}}function No(t,e){var n=e-t;return n?Co(t,n>180||n<-180?n-360*Math.round(n/360):n):xe(isNaN(t)?e:t)}function Ao(t){return(t=+t)==1?$t:function(e,n){return n-e?Nf(e,n,t):xe(isNaN(e)?n:e)}}function $t(t,e){var n=e-t;return n?Co(t,n):xe(isNaN(t)?e:t)}function Do(t){return function(e,n){var r=t((e=Fe(e)).h,(n=Fe(n)).h),i=$t(e.c,n.c),o=$t(e.l,n.l),s=$t(e.opacity,n.opacity);return function(u){return e.h=r(u),e.c=i(u),e.l=o(u),e.opacity=s(u),e+""}}}var Af=Do(No),Df=Do($t);a();a();a();a();function br(t,e,n,r,i){var o=t*t,s=o*t;return((1-3*t+3*o-s)*e+(4-6*o+3*s)*n+(1+3*t+3*o-3*s)*r+s*i)/6}function $o(t){var e=t.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,e-1):Math.floor(n*e),i=t[r],o=t[r+1],s=r>0?t[r-1]:2*i-o,u=r<e-1?t[r+2]:2*o-i;return br((n-r/e)*e,s,i,o,u)}}a();function Oo(t){var e=t.length;return function(n){var r=Math.floor(((n%=1)<0?++n:n)*e),i=t[(r+e-1)%e],o=t[r%e],s=t[(r+1)%e],u=t[(r+2)%e];return br((n-r/e)*e,i,o,s,u)}}var Kt=(function t(e){var n=Ao(e);function r(i,o){var s=n((i=me(i)).r,(o=me(o)).r),u=n(i.g,o.g),l=n(i.b,o.b),f=$t(i.opacity,o.opacity);return function(h){return i.r=s(h),i.g=u(h),i.b=l(h),i.opacity=f(h),i+""}}return r.gamma=t,r})(1);function Io(t){return function(e){var n=e.length,r=new Array(n),i=new Array(n),o=new Array(n),s,u;for(s=0;s<n;++s)u=me(e[s]),r[s]=u.r||0,i[s]=u.g||0,o[s]=u.b||0;return r=t(r),i=t(i),o=t(o),u.opacity=1,function(l){return u.r=r(l),u.g=i(l),u.b=o(l),u+""}}}var $f=Io($o),Of=Io(Oo);a();a();function Eo(t,e){e||(e=[]);var n=t?Math.min(e.length,t.length):0,r=e.slice(),i;return function(o){for(i=0;i<n;++i)r[i]=t[i]*(1-o)+e[i]*o;return r}}function Ro(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}function Yo(t,e){var n=e?e.length:0,r=t?Math.min(n,t.length):0,i=new Array(r),o=new Array(n),s;for(s=0;s<r;++s)i[s]=Jt(t[s],e[s]);for(;s<n;++s)o[s]=e[s];return function(u){for(s=0;s<r;++s)o[s]=i[s](u);return o}}a();function Po(t,e){var n=new Date;return t=+t,e=+e,function(r){return n.setTime(t*(1-r)+e*r),n}}a();function rt(t,e){return t=+t,e=+e,function(n){return t*(1-n)+e*n}}a();function Fo(t,e){var n={},r={},i;(t===null||typeof t!="object")&&(t={}),(e===null||typeof e!="object")&&(e={});for(i in e)i in t?n[i]=Jt(t[i],e[i]):r[i]=e[i];return function(o){for(i in n)r[i]=n[i](o);return r}}a();var Tr=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Mr=new RegExp(Tr.source,"g");function If(t){return function(){return t}}function Ef(t){return function(e){return t(e)+""}}function Ue(t,e){var n=Tr.lastIndex=Mr.lastIndex=0,r,i,o,s=-1,u=[],l=[];for(t=t+"",e=e+"";(r=Tr.exec(t))&&(i=Mr.exec(e));)(o=i.index)>n&&(o=e.slice(n,o),u[s]?u[s]+=o:u[++s]=o),(r=r[0])===(i=i[0])?u[s]?u[s]+=i:u[++s]=i:(u[++s]=null,l.push({i:s,x:rt(r,i)})),n=Mr.lastIndex;return n<e.length&&(o=e.slice(n),u[s]?u[s]+=o:u[++s]=o),u.length<2?l[0]?Ef(l[0].x):If(e):(e=l.length,function(f){for(var h=0,m;h<e;++h)u[(m=l[h]).i]=m.x(f);return u.join("")})}function Jt(t,e){var n=typeof e,r;return e==null||n==="boolean"?xe(e):(n==="number"?rt:n==="string"?(r=gt(e))?(e=r,Kt):Ue:e instanceof gt?Kt:e instanceof Date?Po:Ro(e)?Eo:Array.isArray(e)?Yo:typeof e.valueOf!="function"&&typeof e.toString!="function"||isNaN(e)?Fo:rt)(t,e)}a();function kr(t,e){return t=+t,e=+e,function(n){return Math.round(t*(1-n)+e*n)}}a();a();a();var Uo=180/Math.PI,bn={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function Sr(t,e,n,r,i,o){var s,u,l;return(s=Math.sqrt(t*t+e*e))&&(t/=s,e/=s),(l=t*n+e*r)&&(n-=t*l,r-=e*l),(u=Math.sqrt(n*n+r*r))&&(n/=u,r/=u,l/=u),t*r<e*n&&(t=-t,e=-e,l=-l,s=-s),{translateX:i,translateY:o,rotate:Math.atan2(e,t)*Uo,skewX:Math.atan(l)*Uo,scaleX:s,scaleY:u}}var Mn;function zo(t){let e=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(t+"");return e.isIdentity?bn:Sr(e.a,e.b,e.c,e.d,e.e,e.f)}function Lo(t){return t==null?bn:(Mn||(Mn=document.createElementNS("http://www.w3.org/2000/svg","g")),Mn.setAttribute("transform",t),(t=Mn.transform.baseVal.consolidate())?(t=t.matrix,Sr(t.a,t.b,t.c,t.d,t.e,t.f)):bn)}function Ho(t,e,n,r){function i(f){return f.length?f.pop()+" ":""}function o(f,h,m,c,d,v){if(f!==m||h!==c){var b=d.push("translate(",null,e,null,n);v.push({i:b-4,x:rt(f,m)},{i:b-2,x:rt(h,c)})}else(m||c)&&d.push("translate("+m+e+c+n)}function s(f,h,m,c){f!==h?(f-h>180?h+=360:h-f>180&&(f+=360),c.push({i:m.push(i(m)+"rotate(",null,r)-2,x:rt(f,h)})):h&&m.push(i(m)+"rotate("+h+r)}function u(f,h,m,c){f!==h?c.push({i:m.push(i(m)+"skewX(",null,r)-2,x:rt(f,h)}):h&&m.push(i(m)+"skewX("+h+r)}function l(f,h,m,c,d,v){if(f!==m||h!==c){var b=d.push(i(d)+"scale(",null,",",null,")");v.push({i:b-4,x:rt(f,m)},{i:b-2,x:rt(h,c)})}else(m!==1||c!==1)&&d.push(i(d)+"scale("+m+","+c+")")}return function(f,h){var m=[],c=[];return f=t(f),h=t(h),o(f.translateX,f.translateY,h.translateX,h.translateY,m,c),s(f.rotate,h.rotate,m,c),u(f.skewX,h.skewX,m,c),l(f.scaleX,f.scaleY,h.scaleX,h.scaleY,m,c),f=h=null,function(d){for(var v=-1,b=c.length,S;++v<b;)m[(S=c[v]).i]=S.x(d);return m.join("")}}}var Cr=Ho(zo,"px, ","px)","deg)"),Nr=Ho(Lo,", ",")",")");a();a();a();a();function Bo(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)}function jt(t,e){if(!isFinite(t)||t===0)return null;var n=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"),r=t.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+t.slice(n+1)]}function Mt(t){return t=jt(Math.abs(t)),t?t[1]:NaN}a();function qo(t,e){return function(n,r){for(var i=n.length,o=[],s=0,u=t[0],l=0;i>0&&u>0&&(l+u+1>r&&(u=Math.max(1,r-l)),o.push(n.substring(i-=u,i+u)),!((l+=u+1)>r));)u=t[s=(s+1)%t.length];return o.reverse().join(e)}}a();function Wo(t){return function(e){return e.replace(/[0-9]/g,function(n){return t[+n]})}}a();var Rf=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Pt(t){if(!(e=Rf.exec(t)))throw new Error("invalid format: "+t);var e;return new Tn({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}Pt.prototype=Tn.prototype;function Tn(t){this.fill=t.fill===void 0?" ":t.fill+"",this.align=t.align===void 0?">":t.align+"",this.sign=t.sign===void 0?"-":t.sign+"",this.symbol=t.symbol===void 0?"":t.symbol+"",this.zero=!!t.zero,this.width=t.width===void 0?void 0:+t.width,this.comma=!!t.comma,this.precision=t.precision===void 0?void 0:+t.precision,this.trim=!!t.trim,this.type=t.type===void 0?"":t.type+""}Tn.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};a();function Vo(t){t:for(var e=t.length,n=1,r=-1,i;n<e;++n)switch(t[n]){case".":r=i=n;break;case"0":r===0&&(r=n),i=n;break;default:if(!+t[n])break t;r>0&&(r=0);break}return r>0?t.slice(0,r)+t.slice(i+1):t}a();a();var ze;function Xo(t,e){var n=jt(t,e);if(!n)return ze=void 0,t.toPrecision(e);var r=n[0],i=n[1],o=i-(ze=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,s=r.length;return o===s?r:o>s?r+new Array(o-s+1).join("0"):o>0?r.slice(0,o)+"."+r.slice(o):"0."+new Array(1-o).join("0")+jt(t,Math.max(0,e+o-1))[0]}a();function Ar(t,e){var n=jt(t,e);if(!n)return t+"";var r=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")}var Dr={"%":(t,e)=>(t*100).toFixed(e),b:t=>Math.round(t).toString(2),c:t=>t+"",d:Bo,e:(t,e)=>t.toExponential(e),f:(t,e)=>t.toFixed(e),g:(t,e)=>t.toPrecision(e),o:t=>Math.round(t).toString(8),p:(t,e)=>Ar(t*100,e),r:Ar,s:Xo,X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};a();function $r(t){return t}var Go=Array.prototype.map,Zo=["y","z","a","f","p","n","\xB5","m","","k","M","G","T","P","E","Z","Y"];function Qo(t){var e=t.grouping===void 0||t.thousands===void 0?$r:qo(Go.call(t.grouping,Number),t.thousands+""),n=t.currency===void 0?"":t.currency[0]+"",r=t.currency===void 0?"":t.currency[1]+"",i=t.decimal===void 0?".":t.decimal+"",o=t.numerals===void 0?$r:Wo(Go.call(t.numerals,String)),s=t.percent===void 0?"%":t.percent+"",u=t.minus===void 0?"\u2212":t.minus+"",l=t.nan===void 0?"NaN":t.nan+"";function f(m,c){m=Pt(m);var d=m.fill,v=m.align,b=m.sign,S=m.symbol,C=m.zero,I=m.width,$=m.comma,N=m.precision,R=m.trim,w=m.type;w==="n"?($=!0,w="g"):Dr[w]||(N===void 0&&(N=12),R=!0,w="g"),(C||d==="0"&&v==="=")&&(C=!0,d="0",v="=");var Y=(c&&c.prefix!==void 0?c.prefix:"")+(S==="$"?n:S==="#"&&/[boxX]/.test(w)?"0"+w.toLowerCase():""),F=(S==="$"?r:/[%p]/.test(w)?s:"")+(c&&c.suffix!==void 0?c.suffix:""),O=Dr[w],W=/[defgprs%]/.test(w);N=N===void 0?6:/[gprs]/.test(w)?Math.max(1,Math.min(21,N)):Math.max(0,Math.min(20,N));function B(g){var x=Y,_=F,k,M,A;if(w==="c")_=O(g)+_,g="";else{g=+g;var D=g<0||1/g<0;if(g=isNaN(g)?l:O(Math.abs(g),N),R&&(g=Vo(g)),D&&+g==0&&b!=="+"&&(D=!1),x=(D?b==="("?b:u:b==="-"||b==="("?"":b)+x,_=(w==="s"&&!isNaN(g)&&ze!==void 0?Zo[8+ze/3]:"")+_+(D&&b==="("?")":""),W){for(k=-1,M=g.length;++k<M;)if(A=g.charCodeAt(k),48>A||A>57){_=(A===46?i+g.slice(k+1):g.slice(k))+_,g=g.slice(0,k);break}}}$&&!C&&(g=e(g,1/0));var U=x.length+g.length+_.length,z=U<I?new Array(I-U+1).join(d):"";switch($&&C&&(g=e(z+g,z.length?I-_.length:1/0),z=""),v){case"<":g=x+g+_+z;break;case"=":g=x+z+g+_;break;case"^":g=z.slice(0,U=z.length>>1)+x+g+_+z.slice(U);break;default:g=z+x+g+_;break}return o(g)}return B.toString=function(){return m+""},B}function h(m,c){var d=Math.max(-8,Math.min(8,Math.floor(Mt(c)/3)))*3,v=Math.pow(10,-d),b=f((m=Pt(m),m.type="f",m),{suffix:Zo[8+d/3]});return function(S){return b(v*S)}}return{format:f,formatPrefix:h}}var kn,Sn,Cn;Or({thousands:",",grouping:[3],currency:["$",""]});function Or(t){return kn=Qo(t),Sn=kn.format,Cn=kn.formatPrefix,kn}a();a();function Ir(t){return Math.max(0,-Mt(Math.abs(t)))}a();function Er(t,e){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(Mt(e)/3)))*3-Mt(Math.abs(t)))}a();function Rr(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,Mt(e)-Mt(t))+1}a();a();function Yf(t){var e=0,n=t.children,r=n&&n.length;if(!r)e=1;else for(;--r>=0;)e+=n[r].value;t.value=e}function Ko(){return this.eachAfter(Yf)}a();function Jo(t,e){let n=-1;for(let r of this)t.call(e,r,++n,this);return this}a();function jo(t,e){for(var n=this,r=[n],i,o,s=-1;n=r.pop();)if(t.call(e,n,++s,this),i=n.children)for(o=i.length-1;o>=0;--o)r.push(i[o]);return this}a();function ta(t,e){for(var n=this,r=[n],i=[],o,s,u,l=-1;n=r.pop();)if(i.push(n),o=n.children)for(s=0,u=o.length;s<u;++s)r.push(o[s]);for(;n=i.pop();)t.call(e,n,++l,this);return this}a();function ea(t,e){let n=-1;for(let r of this)if(t.call(e,r,++n,this))return r}a();function na(t){return this.eachAfter(function(e){for(var n=+t(e.data)||0,r=e.children,i=r&&r.length;--i>=0;)n+=r[i].value;e.value=n})}a();function ra(t){return this.eachBefore(function(e){e.children&&e.children.sort(t)})}a();function ia(t){for(var e=this,n=Pf(e,t),r=[e];e!==n;)e=e.parent,r.push(e);for(var i=r.length;t!==n;)r.splice(i,0,t),t=t.parent;return r}function Pf(t,e){if(t===e)return t;var n=t.ancestors(),r=e.ancestors(),i=null;for(t=n.pop(),e=r.pop();t===e;)i=t,t=n.pop(),e=r.pop();return i}a();function oa(){for(var t=this,e=[t];t=t.parent;)e.push(t);return e}a();function aa(){return Array.from(this)}a();function sa(){var t=[];return this.eachBefore(function(e){e.children||t.push(e)}),t}a();function ua(){var t=this,e=[];return t.each(function(n){n!==t&&e.push({source:n.parent,target:n})}),e}a();function*fa(){var t=this,e,n=[t],r,i,o;do for(e=n.reverse(),n=[];t=e.pop();)if(yield t,r=t.children)for(i=0,o=r.length;i<o;++i)n.push(r[i]);while(n.length)}function Nn(t,e){t instanceof Map?(t=[void 0,t],e===void 0&&(e=zf)):e===void 0&&(e=Uf);for(var n=new Le(t),r,i=[n],o,s,u,l;r=i.pop();)if((s=e(r.data))&&(l=(s=Array.from(s)).length))for(r.children=s,u=l-1;u>=0;--u)i.push(o=s[u]=new Le(s[u])),o.parent=r,o.depth=r.depth+1;return n.eachBefore(Hf)}function Ff(){return Nn(this).eachBefore(Lf)}function Uf(t){return t.children}function zf(t){return Array.isArray(t)?t[1]:null}function Lf(t){t.data.value!==void 0&&(t.value=t.data.value),t.data=t.data.data}function Hf(t){var e=0;do t.height=e;while((t=t.parent)&&t.height<++e)}function Le(t){this.data=t,this.depth=this.height=0,this.parent=null}Le.prototype=Nn.prototype={constructor:Le,count:Ko,each:Jo,eachAfter:ta,eachBefore:jo,find:ea,sum:na,sort:ra,path:ia,ancestors:oa,descendants:aa,leaves:sa,links:ua,copy:Ff,[Symbol.iterator]:fa};a();a();function la(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)}a();a();function ca(t,e,n,r,i){for(var o=t.children,s,u=-1,l=o.length,f=t.value&&(r-e)/t.value;++u<l;)s=o[u],s.y0=n,s.y1=i,s.x0=e,s.x1=e+=s.value*f}a();function ha(t,e,n,r,i){for(var o=t.children,s,u=-1,l=o.length,f=t.value&&(i-n)/t.value;++u<l;)s=o[u],s.x0=e,s.x1=r,s.y0=n,s.y1=n+=s.value*f}var Bf=(1+Math.sqrt(5))/2;function qf(t,e,n,r,i,o){for(var s=[],u=e.children,l,f,h=0,m=0,c=u.length,d,v,b=e.value,S,C,I,$,N,R,w;h<c;){d=i-n,v=o-r;do S=u[m++].value;while(!S&&m<c);for(C=I=S,R=Math.max(v/d,d/v)/(b*t),w=S*S*R,N=Math.max(I/w,w/C);m<c;++m){if(S+=f=u[m].value,f<C&&(C=f),f>I&&(I=f),w=S*S*R,$=Math.max(I/w,w/C),$>N){S-=f;break}N=$}s.push(l={value:S,dice:d<v,children:u.slice(h,m)}),l.dice?ca(l,n,r,i,b?r+=v*S/b:o):ha(l,n,r,b?n+=d*S/b:i,o),b-=S,h=m}return s}var pa=(function t(e){function n(r,i,o,s,u){qf(e,r,i,o,s,u)}return n.ratio=function(r){return t((r=+r)>1?r:1)},n})(Bf);a();function ma(t){if(typeof t!="function")throw new Error;return t}a();function _e(){return 0}function ge(t){return function(){return t}}function Wf(){var t=pa,e=!1,n=1,r=1,i=[0],o=_e,s=_e,u=_e,l=_e,f=_e;function h(c){return c.x0=c.y0=0,c.x1=n,c.y1=r,c.eachBefore(m),i=[0],e&&c.eachBefore(la),c}function m(c){var d=i[c.depth],v=c.x0+d,b=c.y0+d,S=c.x1-d,C=c.y1-d;S<v&&(v=S=(v+S)/2),C<b&&(b=C=(b+C)/2),c.x0=v,c.y0=b,c.x1=S,c.y1=C,c.children&&(d=i[c.depth+1]=o(c)/2,v+=f(c)-d,b+=s(c)-d,S-=u(c)-d,C-=l(c)-d,S<v&&(v=S=(v+S)/2),C<b&&(b=C=(b+C)/2),t(c,v,b,S,C))}return h.round=function(c){return arguments.length?(e=!!c,h):e},h.size=function(c){return arguments.length?(n=+c[0],r=+c[1],h):[n,r]},h.tile=function(c){return arguments.length?(t=ma(c),h):t},h.padding=function(c){return arguments.length?h.paddingInner(c).paddingOuter(c):h.paddingInner()},h.paddingInner=function(c){return arguments.length?(o=typeof c=="function"?c:ge(+c),h):o},h.paddingOuter=function(c){return arguments.length?h.paddingTop(c).paddingRight(c).paddingBottom(c).paddingLeft(c):h.paddingTop()},h.paddingTop=function(c){return arguments.length?(s=typeof c=="function"?c:ge(+c),h):s},h.paddingRight=function(c){return arguments.length?(u=typeof c=="function"?c:ge(+c),h):u},h.paddingBottom=function(c){return arguments.length?(l=typeof c=="function"?c:ge(+c),h):l},h.paddingLeft=function(c){return arguments.length?(f=typeof c=="function"?c:ge(+c),h):f},h}a();a();a();function Ft(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t);break}return this}var Yr=Symbol("implicit");function He(){var t=new le,e=[],n=[],r=Yr;function i(o){let s=t.get(o);if(s===void 0){if(r!==Yr)return r;t.set(o,s=e.push(o)-1)}return n[s%n.length]}return i.domain=function(o){if(!arguments.length)return e.slice();e=[],t=new le;for(let s of o)t.has(s)||t.set(s,e.push(s)-1);return i},i.range=function(o){return arguments.length?(n=Array.from(o),i):n.slice()},i.unknown=function(o){return arguments.length?(r=o,i):r},i.copy=function(){return He(e,n).unknown(r)},Ft.apply(i,arguments),i}a();function Pr(){var t=He().unknown(void 0),e=t.domain,n=t.range,r=0,i=1,o,s,u=!1,l=0,f=0,h=.5;delete t.unknown;function m(){var c=e().length,d=i<r,v=d?i:r,b=d?r:i;o=(b-v)/Math.max(1,c-l+f*2),u&&(o=Math.floor(o)),v+=(b-v-o*(c-l))*h,s=o*(1-l),u&&(v=Math.round(v),s=Math.round(s));var S=fn(c).map(function(C){return v+o*C});return n(d?S.reverse():S)}return t.domain=function(c){return arguments.length?(e(c),m()):e()},t.range=function(c){return arguments.length?([r,i]=c,r=+r,i=+i,m()):[r,i]},t.rangeRound=function(c){return[r,i]=c,r=+r,i=+i,u=!0,m()},t.bandwidth=function(){return s},t.step=function(){return o},t.round=function(c){return arguments.length?(u=!!c,m()):u},t.padding=function(c){return arguments.length?(l=Math.min(1,f=+c),m()):l},t.paddingInner=function(c){return arguments.length?(l=Math.min(1,c),m()):l},t.paddingOuter=function(c){return arguments.length?(f=+c,m()):f},t.align=function(c){return arguments.length?(h=Math.max(0,Math.min(1,c)),m()):h},t.copy=function(){return Pr(e(),[r,i]).round(u).paddingInner(l).paddingOuter(f).align(h)},Ft.apply(m(),arguments)}a();a();a();function Fr(t){return function(){return t}}a();function Ur(t){return+t}var da=[0,1];function ye(t){return t}function zr(t,e){return(e-=t=+t)?function(n){return(n-t)/e}:Fr(isNaN(e)?NaN:.5)}function Vf(t,e){var n;return t>e&&(n=t,t=e,e=n),function(r){return Math.max(t,Math.min(e,r))}}function Xf(t,e,n){var r=t[0],i=t[1],o=e[0],s=e[1];return i<r?(r=zr(i,r),o=n(s,o)):(r=zr(r,i),o=n(o,s)),function(u){return o(r(u))}}function Gf(t,e,n){var r=Math.min(t.length,e.length)-1,i=new Array(r),o=new Array(r),s=-1;for(t[r]<t[0]&&(t=t.slice().reverse(),e=e.slice().reverse());++s<r;)i[s]=zr(t[s],t[s+1]),o[s]=n(e[s],e[s+1]);return function(u){var l=ur(t,u,1,r)-1;return o[l](i[l](u))}}function An(t,e){return e.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function Zf(){var t=da,e=da,n=Jt,r,i,o,s=ye,u,l,f;function h(){var c=Math.min(t.length,e.length);return s!==ye&&(s=Vf(t[0],t[c-1])),u=c>2?Gf:Xf,l=f=null,m}function m(c){return c==null||isNaN(c=+c)?o:(l||(l=u(t.map(r),e,n)))(r(s(c)))}return m.invert=function(c){return s(i((f||(f=u(e,t.map(r),rt)))(c)))},m.domain=function(c){return arguments.length?(t=Array.from(c,Ur),h()):t.slice()},m.range=function(c){return arguments.length?(e=Array.from(c),h()):e.slice()},m.rangeRound=function(c){return e=Array.from(c),n=kr,h()},m.clamp=function(c){return arguments.length?(s=c?!0:ye,h()):s!==ye},m.interpolate=function(c){return arguments.length?(n=c,h()):n},m.unknown=function(c){return arguments.length?(o=c,m):o},function(c,d){return r=c,i=d,h()}}function Be(){return Zf()(ye,ye)}a();function Lr(t,e,n,r){var i=ce(t,e,n),o;switch(r=Pt(r??",f"),r.type){case"s":{var s=Math.max(Math.abs(t),Math.abs(e));return r.precision==null&&!isNaN(o=Er(i,s))&&(r.precision=o),Cn(r,s)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(o=Rr(i,Math.max(Math.abs(t),Math.abs(e))))&&(r.precision=o-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(o=Ir(i))&&(r.precision=o-(r.type==="%")*2);break}}return Sn(r)}function Qf(t){var e=t.domain;return t.ticks=function(n){var r=e();return un(r[0],r[r.length-1],n??10)},t.tickFormat=function(n,r){var i=e();return Lr(i[0],i[i.length-1],n??10,r)},t.nice=function(n){n==null&&(n=10);var r=e(),i=0,o=r.length-1,s=r[i],u=r[o],l,f,h=10;for(u<s&&(f=s,s=u,u=f,f=i,i=o,o=f);h-- >0;){if(f=Oe(s,u,n),f===l)return r[i]=s,r[o]=u,e(r);if(f>0)s=Math.floor(s/f)*f,u=Math.ceil(u/f)*f;else if(f<0)s=Math.ceil(s*f)/f,u=Math.floor(u*f)/f;else break;l=f}return t},t}function Hr(){var t=Be();return t.copy=function(){return An(t,Hr())},Ft.apply(t,arguments),Qf(t)}a();a();var Br=new Date,qr=new Date;function H(t,e,n,r){function i(o){return t(o=arguments.length===0?new Date:new Date(+o)),o}return i.floor=o=>(t(o=new Date(+o)),o),i.ceil=o=>(t(o=new Date(o-1)),e(o,1),t(o),o),i.round=o=>{let s=i(o),u=i.ceil(o);return o-s<u-o?s:u},i.offset=(o,s)=>(e(o=new Date(+o),s==null?1:Math.floor(s)),o),i.range=(o,s,u)=>{let l=[];if(o=i.ceil(o),u=u==null?1:Math.floor(u),!(o<s)||!(u>0))return l;let f;do l.push(f=new Date(+o)),e(o,u),t(o);while(f<o&&o<s);return l},i.filter=o=>H(s=>{if(s>=s)for(;t(s),!o(s);)s.setTime(s-1)},(s,u)=>{if(s>=s)if(u<0)for(;++u<=0;)for(;e(s,-1),!o(s););else for(;--u>=0;)for(;e(s,1),!o(s););}),n&&(i.count=(o,s)=>(Br.setTime(+o),qr.setTime(+s),t(Br),t(qr),Math.floor(n(Br,qr))),i.every=o=>(o=Math.floor(o),!isFinite(o)||!(o>0)?null:o>1?i.filter(r?s=>r(s)%o===0:s=>i.count(0,s)%o===0):i)),i}var te=H(()=>{},(t,e)=>{t.setTime(+t+e)},(t,e)=>e-t);te.every=t=>(t=Math.floor(t),!isFinite(t)||!(t>0)?null:t>1?H(e=>{e.setTime(Math.floor(e/t)*t)},(e,n)=>{e.setTime(+e+n*t)},(e,n)=>(n-e)/t):te);var xa=te.range;a();var Tt=H(t=>{t.setTime(t-t.getMilliseconds())},(t,e)=>{t.setTime(+t+e*1e3)},(t,e)=>(e-t)/1e3,t=>t.getUTCSeconds()),_a=Tt.range;a();var ve=H(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*1e3)},(t,e)=>{t.setTime(+t+e*6e4)},(t,e)=>(e-t)/6e4,t=>t.getMinutes()),Kf=ve.range,Dn=H(t=>{t.setUTCSeconds(0,0)},(t,e)=>{t.setTime(+t+e*6e4)},(t,e)=>(e-t)/6e4,t=>t.getUTCMinutes()),Jf=Dn.range;a();var we=H(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*1e3-t.getMinutes()*6e4)},(t,e)=>{t.setTime(+t+e*36e5)},(t,e)=>(e-t)/36e5,t=>t.getHours()),jf=we.range,$n=H(t=>{t.setUTCMinutes(0,0,0)},(t,e)=>{t.setTime(+t+e*36e5)},(t,e)=>(e-t)/36e5,t=>t.getUTCHours()),tl=$n.range;a();var Ot=H(t=>t.setHours(0,0,0,0),(t,e)=>t.setDate(t.getDate()+e),(t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*6e4)/864e5,t=>t.getDate()-1),el=Ot.range,We=H(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/864e5,t=>t.getUTCDate()-1),nl=We.range,On=H(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/864e5,t=>Math.floor(t/864e5)),rl=On.range;a();function re(t){return H(e=>{e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)},(e,n)=>{e.setDate(e.getDate()+n*7)},(e,n)=>(n-e-(n.getTimezoneOffset()-e.getTimezoneOffset())*6e4)/6048e5)}var It=re(0),be=re(1),ya=re(2),va=re(3),Ut=re(4),wa=re(5),ba=re(6),Ma=It.range,il=be.range,ol=ya.range,al=va.range,sl=Ut.range,ul=wa.range,fl=ba.range;function ie(t){return H(e=>{e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)},(e,n)=>{e.setUTCDate(e.getUTCDate()+n*7)},(e,n)=>(n-e)/6048e5)}var oe=ie(0),Me=ie(1),Ta=ie(2),ka=ie(3),zt=ie(4),Sa=ie(5),Ca=ie(6),Na=oe.range,ll=Me.range,cl=Ta.range,hl=ka.range,pl=zt.range,ml=Sa.range,dl=Ca.range;a();var Te=H(t=>{t.setDate(1),t.setHours(0,0,0,0)},(t,e)=>{t.setMonth(t.getMonth()+e)},(t,e)=>e.getMonth()-t.getMonth()+(e.getFullYear()-t.getFullYear())*12,t=>t.getMonth()),xl=Te.range,In=H(t=>{t.setUTCDate(1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCMonth(t.getUTCMonth()+e)},(t,e)=>e.getUTCMonth()-t.getUTCMonth()+(e.getUTCFullYear()-t.getUTCFullYear())*12,t=>t.getUTCMonth()),_l=In.range;a();a();var ct=H(t=>{t.setMonth(0,1),t.setHours(0,0,0,0)},(t,e)=>{t.setFullYear(t.getFullYear()+e)},(t,e)=>e.getFullYear()-t.getFullYear(),t=>t.getFullYear());ct.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:H(e=>{e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)},(e,n)=>{e.setFullYear(e.getFullYear()+n*t)});var gl=ct.range,yt=H(t=>{t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCFullYear(t.getUTCFullYear()+e)},(t,e)=>e.getUTCFullYear()-t.getUTCFullYear(),t=>t.getUTCFullYear());yt.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:H(e=>{e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,n)=>{e.setUTCFullYear(e.getUTCFullYear()+n*t)});var yl=yt.range;a();function Da(t,e,n,r,i,o){let s=[[Tt,1,1e3],[Tt,5,5*1e3],[Tt,15,15*1e3],[Tt,30,30*1e3],[o,1,6e4],[o,5,5*6e4],[o,15,15*6e4],[o,30,30*6e4],[i,1,36e5],[i,3,3*36e5],[i,6,6*36e5],[i,12,12*36e5],[r,1,864e5],[r,2,2*864e5],[n,1,6048e5],[e,1,2592e6],[e,3,3*2592e6],[t,1,31536e6]];function u(f,h,m){let c=h<f;c&&([f,h]=[h,f]);let d=m&&typeof m.range=="function"?m:l(f,h,m),v=d?d.range(f,+h+1):[];return c?v.reverse():v}function l(f,h,m){let c=Math.abs(h-f)/m,d=Vt(([,,S])=>S).right(s,c);if(d===s.length)return t.every(ce(f/31536e6,h/31536e6,m));if(d===0)return te.every(Math.max(ce(f,h,m),1));let[v,b]=s[c/s[d-1][2]<s[d][2]/c?d-1:d];return v.every(b)}return[u,l]}var[wl,bl]=Da(yt,In,oe,On,$n,Dn),[Wr,Vr]=Da(ct,Te,It,Ot,we,ve);a();a();function Xr(t){if(0<=t.y&&t.y<100){var e=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return e.setFullYear(t.y),e}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function Gr(t){if(0<=t.y&&t.y<100){var e=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return e.setUTCFullYear(t.y),e}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function Ve(t,e,n){return{y:t,m:e,d:n,H:0,M:0,S:0,L:0}}function Zr(t){var e=t.dateTime,n=t.date,r=t.time,i=t.periods,o=t.days,s=t.shortDays,u=t.months,l=t.shortMonths,f=Xe(i),h=Ge(i),m=Xe(o),c=Ge(o),d=Xe(s),v=Ge(s),b=Xe(u),S=Ge(u),C=Xe(l),I=Ge(l),$={a:A,A:D,b:U,B:z,c:null,d:Ya,e:Ya,f:Wl,g:ec,G:rc,H:Hl,I:Bl,j:ql,L:La,m:Vl,M:Xl,p:V,q:G,Q:Ua,s:za,S:Gl,u:Zl,U:Ql,V:Kl,w:Jl,W:jl,x:null,X:null,y:tc,Y:nc,Z:ic,"%":Fa},N={a:j,A:ht,b:K,B:xt,c:null,d:Pa,e:Pa,f:uc,g:gc,G:vc,H:oc,I:ac,j:sc,L:Ba,m:fc,M:lc,p:ut,q:Q,Q:Ua,s:za,S:cc,u:hc,U:pc,V:mc,w:dc,W:xc,x:null,X:null,y:_c,Y:yc,Z:wc,"%":Fa},R={a:W,A:B,b:g,B:x,c:_,d:Ea,e:Ea,f:Fl,g:Ia,G:Oa,H:Ra,I:Ra,j:El,L:Pl,m:Il,M:Rl,p:O,q:Ol,Q:zl,s:Ll,S:Yl,u:Cl,U:Nl,V:Al,w:Sl,W:Dl,x:k,X:M,y:Ia,Y:Oa,Z:$l,"%":Ul};$.x=w(n,$),$.X=w(r,$),$.c=w(e,$),N.x=w(n,N),N.X=w(r,N),N.c=w(e,N);function w(T,E){return function(P){var y=[],st=-1,q=0,ft=T.length,lt,qt,fi;for(P instanceof Date||(P=new Date(+P));++st<ft;)T.charCodeAt(st)===37&&(y.push(T.slice(q,st)),(qt=$a[lt=T.charAt(++st)])!=null?lt=T.charAt(++st):qt=lt==="e"?" ":"0",(fi=E[lt])&&(lt=fi(P,qt)),y.push(lt),q=st+1);return y.push(T.slice(q,st)),y.join("")}}function Y(T,E){return function(P){var y=Ve(1900,void 0,1),st=F(y,T,P+="",0),q,ft;if(st!=P.length)return null;if("Q"in y)return new Date(y.Q);if("s"in y)return new Date(y.s*1e3+("L"in y?y.L:0));if(E&&!("Z"in y)&&(y.Z=0),"p"in y&&(y.H=y.H%12+y.p*12),y.m===void 0&&(y.m="q"in y?y.q:0),"V"in y){if(y.V<1||y.V>53)return null;"w"in y||(y.w=1),"Z"in y?(q=Gr(Ve(y.y,0,1)),ft=q.getUTCDay(),q=ft>4||ft===0?Me.ceil(q):Me(q),q=We.offset(q,(y.V-1)*7),y.y=q.getUTCFullYear(),y.m=q.getUTCMonth(),y.d=q.getUTCDate()+(y.w+6)%7):(q=Xr(Ve(y.y,0,1)),ft=q.getDay(),q=ft>4||ft===0?be.ceil(q):be(q),q=Ot.offset(q,(y.V-1)*7),y.y=q.getFullYear(),y.m=q.getMonth(),y.d=q.getDate()+(y.w+6)%7)}else("W"in y||"U"in y)&&("w"in y||(y.w="u"in y?y.u%7:"W"in y?1:0),ft="Z"in y?Gr(Ve(y.y,0,1)).getUTCDay():Xr(Ve(y.y,0,1)).getDay(),y.m=0,y.d="W"in y?(y.w+6)%7+y.W*7-(ft+5)%7:y.w+y.U*7-(ft+6)%7);return"Z"in y?(y.H+=y.Z/100|0,y.M+=y.Z%100,Gr(y)):Xr(y)}}function F(T,E,P,y){for(var st=0,q=E.length,ft=P.length,lt,qt;st<q;){if(y>=ft)return-1;if(lt=E.charCodeAt(st++),lt===37){if(lt=E.charAt(st++),qt=R[lt in $a?E.charAt(st++):lt],!qt||(y=qt(T,P,y))<0)return-1}else if(lt!=P.charCodeAt(y++))return-1}return y}function O(T,E,P){var y=f.exec(E.slice(P));return y?(T.p=h.get(y[0].toLowerCase()),P+y[0].length):-1}function W(T,E,P){var y=d.exec(E.slice(P));return y?(T.w=v.get(y[0].toLowerCase()),P+y[0].length):-1}function B(T,E,P){var y=m.exec(E.slice(P));return y?(T.w=c.get(y[0].toLowerCase()),P+y[0].length):-1}function g(T,E,P){var y=C.exec(E.slice(P));return y?(T.m=I.get(y[0].toLowerCase()),P+y[0].length):-1}function x(T,E,P){var y=b.exec(E.slice(P));return y?(T.m=S.get(y[0].toLowerCase()),P+y[0].length):-1}function _(T,E,P){return F(T,e,E,P)}function k(T,E,P){return F(T,n,E,P)}function M(T,E,P){return F(T,r,E,P)}function A(T){return s[T.getDay()]}function D(T){return o[T.getDay()]}function U(T){return l[T.getMonth()]}function z(T){return u[T.getMonth()]}function V(T){return i[+(T.getHours()>=12)]}function G(T){return 1+~~(T.getMonth()/3)}function j(T){return s[T.getUTCDay()]}function ht(T){return o[T.getUTCDay()]}function K(T){return l[T.getUTCMonth()]}function xt(T){return u[T.getUTCMonth()]}function ut(T){return i[+(T.getUTCHours()>=12)]}function Q(T){return 1+~~(T.getUTCMonth()/3)}return{format:function(T){var E=w(T+="",$);return E.toString=function(){return T},E},parse:function(T){var E=Y(T+="",!1);return E.toString=function(){return T},E},utcFormat:function(T){var E=w(T+="",N);return E.toString=function(){return T},E},utcParse:function(T){var E=Y(T+="",!0);return E.toString=function(){return T},E}}}var $a={"-":"",_:" ",0:"0"},tt=/^\s*\d+/,Ml=/^%/,Tl=/[\\^$*+?|[\]().{}]/g;function L(t,e,n){var r=t<0?"-":"",i=(r?-t:t)+"",o=i.length;return r+(o<n?new Array(n-o+1).join(e)+i:i)}function kl(t){return t.replace(Tl,"\\$&")}function Xe(t){return new RegExp("^(?:"+t.map(kl).join("|")+")","i")}function Ge(t){return new Map(t.map((e,n)=>[e.toLowerCase(),n]))}function Sl(t,e,n){var r=tt.exec(e.slice(n,n+1));return r?(t.w=+r[0],n+r[0].length):-1}function Cl(t,e,n){var r=tt.exec(e.slice(n,n+1));return r?(t.u=+r[0],n+r[0].length):-1}function Nl(t,e,n){var r=tt.exec(e.slice(n,n+2));return r?(t.U=+r[0],n+r[0].length):-1}function Al(t,e,n){var r=tt.exec(e.slice(n,n+2));return r?(t.V=+r[0],n+r[0].length):-1}function Dl(t,e,n){var r=tt.exec(e.slice(n,n+2));return r?(t.W=+r[0],n+r[0].length):-1}function Oa(t,e,n){var r=tt.exec(e.slice(n,n+4));return r?(t.y=+r[0],n+r[0].length):-1}function Ia(t,e,n){var r=tt.exec(e.slice(n,n+2));return r?(t.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function $l(t,e,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(n,n+6));return r?(t.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function Ol(t,e,n){var r=tt.exec(e.slice(n,n+1));return r?(t.q=r[0]*3-3,n+r[0].length):-1}function Il(t,e,n){var r=tt.exec(e.slice(n,n+2));return r?(t.m=r[0]-1,n+r[0].length):-1}function Ea(t,e,n){var r=tt.exec(e.slice(n,n+2));return r?(t.d=+r[0],n+r[0].length):-1}function El(t,e,n){var r=tt.exec(e.slice(n,n+3));return r?(t.m=0,t.d=+r[0],n+r[0].length):-1}function Ra(t,e,n){var r=tt.exec(e.slice(n,n+2));return r?(t.H=+r[0],n+r[0].length):-1}function Rl(t,e,n){var r=tt.exec(e.slice(n,n+2));return r?(t.M=+r[0],n+r[0].length):-1}function Yl(t,e,n){var r=tt.exec(e.slice(n,n+2));return r?(t.S=+r[0],n+r[0].length):-1}function Pl(t,e,n){var r=tt.exec(e.slice(n,n+3));return r?(t.L=+r[0],n+r[0].length):-1}function Fl(t,e,n){var r=tt.exec(e.slice(n,n+6));return r?(t.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function Ul(t,e,n){var r=Ml.exec(e.slice(n,n+1));return r?n+r[0].length:-1}function zl(t,e,n){var r=tt.exec(e.slice(n));return r?(t.Q=+r[0],n+r[0].length):-1}function Ll(t,e,n){var r=tt.exec(e.slice(n));return r?(t.s=+r[0],n+r[0].length):-1}function Ya(t,e){return L(t.getDate(),e,2)}function Hl(t,e){return L(t.getHours(),e,2)}function Bl(t,e){return L(t.getHours()%12||12,e,2)}function ql(t,e){return L(1+Ot.count(ct(t),t),e,3)}function La(t,e){return L(t.getMilliseconds(),e,3)}function Wl(t,e){return La(t,e)+"000"}function Vl(t,e){return L(t.getMonth()+1,e,2)}function Xl(t,e){return L(t.getMinutes(),e,2)}function Gl(t,e){return L(t.getSeconds(),e,2)}function Zl(t){var e=t.getDay();return e===0?7:e}function Ql(t,e){return L(It.count(ct(t)-1,t),e,2)}function Ha(t){var e=t.getDay();return e>=4||e===0?Ut(t):Ut.ceil(t)}function Kl(t,e){return t=Ha(t),L(Ut.count(ct(t),t)+(ct(t).getDay()===4),e,2)}function Jl(t){return t.getDay()}function jl(t,e){return L(be.count(ct(t)-1,t),e,2)}function tc(t,e){return L(t.getFullYear()%100,e,2)}function ec(t,e){return t=Ha(t),L(t.getFullYear()%100,e,2)}function nc(t,e){return L(t.getFullYear()%1e4,e,4)}function rc(t,e){var n=t.getDay();return t=n>=4||n===0?Ut(t):Ut.ceil(t),L(t.getFullYear()%1e4,e,4)}function ic(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+L(e/60|0,"0",2)+L(e%60,"0",2)}function Pa(t,e){return L(t.getUTCDate(),e,2)}function oc(t,e){return L(t.getUTCHours(),e,2)}function ac(t,e){return L(t.getUTCHours()%12||12,e,2)}function sc(t,e){return L(1+We.count(yt(t),t),e,3)}function Ba(t,e){return L(t.getUTCMilliseconds(),e,3)}function uc(t,e){return Ba(t,e)+"000"}function fc(t,e){return L(t.getUTCMonth()+1,e,2)}function lc(t,e){return L(t.getUTCMinutes(),e,2)}function cc(t,e){return L(t.getUTCSeconds(),e,2)}function hc(t){var e=t.getUTCDay();return e===0?7:e}function pc(t,e){return L(oe.count(yt(t)-1,t),e,2)}function qa(t){var e=t.getUTCDay();return e>=4||e===0?zt(t):zt.ceil(t)}function mc(t,e){return t=qa(t),L(zt.count(yt(t),t)+(yt(t).getUTCDay()===4),e,2)}function dc(t){return t.getUTCDay()}function xc(t,e){return L(Me.count(yt(t)-1,t),e,2)}function _c(t,e){return L(t.getUTCFullYear()%100,e,2)}function gc(t,e){return t=qa(t),L(t.getUTCFullYear()%100,e,2)}function yc(t,e){return L(t.getUTCFullYear()%1e4,e,4)}function vc(t,e){var n=t.getUTCDay();return t=n>=4||n===0?zt(t):zt.ceil(t),L(t.getUTCFullYear()%1e4,e,4)}function wc(){return"+0000"}function Fa(){return"%"}function Ua(t){return+t}function za(t){return Math.floor(+t/1e3)}var ke,En,Wa,Va,Xa;Qr({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 Qr(t){return ke=Zr(t),En=ke.format,Wa=ke.parse,Va=ke.utcFormat,Xa=ke.utcParse,ke}a();a();a();function Kr(t,e){t=t.slice();var n=0,r=t.length-1,i=t[n],o=t[r],s;return o<i&&(s=n,n=r,r=s,s=i,i=o,o=s),t[n]=e.floor(i),t[r]=e.ceil(o),t}function bc(t){return new Date(t)}function Mc(t){return t instanceof Date?+t:+new Date(+t)}function Ga(t,e,n,r,i,o,s,u,l,f){var h=Be(),m=h.invert,c=h.domain,d=f(".%L"),v=f(":%S"),b=f("%I:%M"),S=f("%I %p"),C=f("%a %d"),I=f("%b %d"),$=f("%B"),N=f("%Y");function R(w){return(l(w)<w?d:u(w)<w?v:s(w)<w?b:o(w)<w?S:r(w)<w?i(w)<w?C:I:n(w)<w?$:N)(w)}return h.invert=function(w){return new Date(m(w))},h.domain=function(w){return arguments.length?c(Array.from(w,Mc)):c().map(bc)},h.ticks=function(w){var Y=c();return t(Y[0],Y[Y.length-1],w??10)},h.tickFormat=function(w,Y){return Y==null?R:f(Y)},h.nice=function(w){var Y=c();return(!w||typeof w.range!="function")&&(w=e(Y[0],Y[Y.length-1],w??10)),w?c(Kr(Y,w)):h},h.copy=function(){return An(h,Ga(t,e,n,r,i,o,s,u,l,f))},h}function Za(){return Ft.apply(Ga(Wr,Vr,ct,Te,It,Ot,we,ve,Tt,En).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}a();a();a();function Qa(t){for(var e=t.length/6|0,n=new Array(e),r=0;r<e;)n[r]="#"+t.slice(r*6,++r*6);return n}var Tc=Qa("4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab");a();a();a();function X(t){return function(){return t}}a();var Jr=Math.abs,it=Math.atan2,Lt=Math.cos,Ka=Math.max,Rn=Math.min,vt=Math.sin,ae=Math.sqrt,et=1e-12,Se=Math.PI,Ze=Se/2,Ce=2*Se;function Ja(t){return t>1?0:t<-1?Se:Math.acos(t)}function jr(t){return t>=1?Ze:t<=-1?-Ze:Math.asin(t)}a();a();a();var ti=Math.PI,ei=2*ti,se=1e-6,kc=ei-se;function ja(t){this._+=t[0];for(let e=1,n=t.length;e<n;++e)this._+=arguments[e]+t[e]}function Sc(t){let e=Math.floor(t);if(!(e>=0))throw new Error(`invalid digits: ${t}`);if(e>15)return ja;let n=10**e;return function(r){this._+=r[0];for(let i=1,o=r.length;i<o;++i)this._+=Math.round(arguments[i]*n)/n+r[i]}}var ue=class{constructor(e){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=e==null?ja:Sc(e)}moveTo(e,n){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+n}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(e,n){this._append`L${this._x1=+e},${this._y1=+n}`}quadraticCurveTo(e,n,r,i){this._append`Q${+e},${+n},${this._x1=+r},${this._y1=+i}`}bezierCurveTo(e,n,r,i,o,s){this._append`C${+e},${+n},${+r},${+i},${this._x1=+o},${this._y1=+s}`}arcTo(e,n,r,i,o){if(e=+e,n=+n,r=+r,i=+i,o=+o,o<0)throw new Error(`negative radius: ${o}`);let s=this._x1,u=this._y1,l=r-e,f=i-n,h=s-e,m=u-n,c=h*h+m*m;if(this._x1===null)this._append`M${this._x1=e},${this._y1=n}`;else if(c>se)if(!(Math.abs(m*l-f*h)>se)||!o)this._append`L${this._x1=e},${this._y1=n}`;else{let d=r-s,v=i-u,b=l*l+f*f,S=d*d+v*v,C=Math.sqrt(b),I=Math.sqrt(c),$=o*Math.tan((ti-Math.acos((b+c-S)/(2*C*I)))/2),N=$/I,R=$/C;Math.abs(N-1)>se&&this._append`L${e+N*h},${n+N*m}`,this._append`A${o},${o},0,0,${+(m*d>h*v)},${this._x1=e+R*l},${this._y1=n+R*f}`}}arc(e,n,r,i,o,s){if(e=+e,n=+n,r=+r,s=!!s,r<0)throw new Error(`negative radius: ${r}`);let u=r*Math.cos(i),l=r*Math.sin(i),f=e+u,h=n+l,m=1^s,c=s?i-o:o-i;this._x1===null?this._append`M${f},${h}`:(Math.abs(this._x1-f)>se||Math.abs(this._y1-h)>se)&&this._append`L${f},${h}`,r&&(c<0&&(c=c%ei+ei),c>kc?this._append`A${r},${r},0,1,${m},${e-u},${n-l}A${r},${r},0,1,${m},${this._x1=f},${this._y1=h}`:c>se&&this._append`A${r},${r},0,${+(c>=ti)},${m},${this._x1=e+r*Math.cos(o)},${this._y1=n+r*Math.sin(o)}`)}rect(e,n,r,i){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+n}h${r=+r}v${+i}h${-r}Z`}toString(){return this._}};function ts(){return new ue}ts.prototype=ue.prototype;function Yn(t){let e=3;return t.digits=function(n){if(!arguments.length)return e;if(n==null)e=null;else{let r=Math.floor(n);if(!(r>=0))throw new RangeError(`invalid digits: ${n}`);e=r}return t},()=>new ue(e)}function Cc(t){return t.innerRadius}function Nc(t){return t.outerRadius}function Ac(t){return t.startAngle}function Dc(t){return t.endAngle}function $c(t){return t&&t.padAngle}function Oc(t,e,n,r,i,o,s,u){var l=n-t,f=r-e,h=s-i,m=u-o,c=m*l-h*f;if(!(c*c<et))return c=(h*(e-o)-m*(t-i))/c,[t+c*l,e+c*f]}function Pn(t,e,n,r,i,o,s){var u=t-n,l=e-r,f=(s?o:-o)/ae(u*u+l*l),h=f*l,m=-f*u,c=t+h,d=e+m,v=n+h,b=r+m,S=(c+v)/2,C=(d+b)/2,I=v-c,$=b-d,N=I*I+$*$,R=i-o,w=c*b-v*d,Y=($<0?-1:1)*ae(Ka(0,R*R*N-w*w)),F=(w*$-I*Y)/N,O=(-w*I-$*Y)/N,W=(w*$+I*Y)/N,B=(-w*I+$*Y)/N,g=F-S,x=O-C,_=W-S,k=B-C;return g*g+x*x>_*_+k*k&&(F=W,O=B),{cx:F,cy:O,x01:-h,y01:-m,x11:F*(i/R-1),y11:O*(i/R-1)}}function Ic(){var t=Cc,e=Nc,n=X(0),r=null,i=Ac,o=Dc,s=$c,u=null,l=Yn(f);function f(){var h,m,c=+t.apply(this,arguments),d=+e.apply(this,arguments),v=i.apply(this,arguments)-Ze,b=o.apply(this,arguments)-Ze,S=Jr(b-v),C=b>v;if(u||(u=h=l()),d<c&&(m=d,d=c,c=m),!(d>et))u.moveTo(0,0);else if(S>Ce-et)u.moveTo(d*Lt(v),d*vt(v)),u.arc(0,0,d,v,b,!C),c>et&&(u.moveTo(c*Lt(b),c*vt(b)),u.arc(0,0,c,b,v,C));else{var I=v,$=b,N=v,R=b,w=S,Y=S,F=s.apply(this,arguments)/2,O=F>et&&(r?+r.apply(this,arguments):ae(c*c+d*d)),W=Rn(Jr(d-c)/2,+n.apply(this,arguments)),B=W,g=W,x,_;if(O>et){var k=jr(O/c*vt(F)),M=jr(O/d*vt(F));(w-=k*2)>et?(k*=C?1:-1,N+=k,R-=k):(w=0,N=R=(v+b)/2),(Y-=M*2)>et?(M*=C?1:-1,I+=M,$-=M):(Y=0,I=$=(v+b)/2)}var A=d*Lt(I),D=d*vt(I),U=c*Lt(R),z=c*vt(R);if(W>et){var V=d*Lt($),G=d*vt($),j=c*Lt(N),ht=c*vt(N),K;if(S<Se)if(K=Oc(A,D,j,ht,V,G,U,z)){var xt=A-K[0],ut=D-K[1],Q=V-K[0],T=G-K[1],E=1/vt(Ja((xt*Q+ut*T)/(ae(xt*xt+ut*ut)*ae(Q*Q+T*T)))/2),P=ae(K[0]*K[0]+K[1]*K[1]);B=Rn(W,(c-P)/(E-1)),g=Rn(W,(d-P)/(E+1))}else B=g=0}Y>et?g>et?(x=Pn(j,ht,A,D,d,g,C),_=Pn(V,G,U,z,d,g,C),u.moveTo(x.cx+x.x01,x.cy+x.y01),g<W?u.arc(x.cx,x.cy,g,it(x.y01,x.x01),it(_.y01,_.x01),!C):(u.arc(x.cx,x.cy,g,it(x.y01,x.x01),it(x.y11,x.x11),!C),u.arc(0,0,d,it(x.cy+x.y11,x.cx+x.x11),it(_.cy+_.y11,_.cx+_.x11),!C),u.arc(_.cx,_.cy,g,it(_.y11,_.x11),it(_.y01,_.x01),!C))):(u.moveTo(A,D),u.arc(0,0,d,I,$,!C)):u.moveTo(A,D),!(c>et)||!(w>et)?u.lineTo(U,z):B>et?(x=Pn(U,z,V,G,c,-B,C),_=Pn(A,D,j,ht,c,-B,C),u.lineTo(x.cx+x.x01,x.cy+x.y01),B<W?u.arc(x.cx,x.cy,B,it(x.y01,x.x01),it(_.y01,_.x01),!C):(u.arc(x.cx,x.cy,B,it(x.y01,x.x01),it(x.y11,x.x11),!C),u.arc(0,0,c,it(x.cy+x.y11,x.cx+x.x11),it(_.cy+_.y11,_.cx+_.x11),C),u.arc(_.cx,_.cy,B,it(_.y11,_.x11),it(_.y01,_.x01),!C))):u.arc(0,0,c,R,N,C)}if(u.closePath(),h)return u=null,h+""||null}return f.centroid=function(){var h=(+t.apply(this,arguments)+ +e.apply(this,arguments))/2,m=(+i.apply(this,arguments)+ +o.apply(this,arguments))/2-Se/2;return[Lt(m)*h,vt(m)*h]},f.innerRadius=function(h){return arguments.length?(t=typeof h=="function"?h:X(+h),f):t},f.outerRadius=function(h){return arguments.length?(e=typeof h=="function"?h:X(+h),f):e},f.cornerRadius=function(h){return arguments.length?(n=typeof h=="function"?h:X(+h),f):n},f.padRadius=function(h){return arguments.length?(r=h==null?null:typeof h=="function"?h:X(+h),f):r},f.startAngle=function(h){return arguments.length?(i=typeof h=="function"?h:X(+h),f):i},f.endAngle=function(h){return arguments.length?(o=typeof h=="function"?h:X(+h),f):o},f.padAngle=function(h){return arguments.length?(s=typeof h=="function"?h:X(+h),f):s},f.context=function(h){return arguments.length?(u=h??null,f):u},f}a();a();var jv=Array.prototype.slice;function Fn(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}a();function es(t){this._context=t}es.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._context.lineTo(t,e);break}}};function ni(t){return new es(t)}a();function ns(t){return t[0]}function rs(t){return t[1]}function Ec(t,e){var n=X(!0),r=null,i=ni,o=null,s=Yn(u);t=typeof t=="function"?t:t===void 0?ns:X(t),e=typeof e=="function"?e:e===void 0?rs:X(e);function u(l){var f,h=(l=Fn(l)).length,m,c=!1,d;for(r==null&&(o=i(d=s())),f=0;f<=h;++f)!(f<h&&n(m=l[f],f,l))===c&&((c=!c)?o.lineStart():o.lineEnd()),c&&o.point(+t(m,f,l),+e(m,f,l));if(d)return o=null,d+""||null}return u.x=function(l){return arguments.length?(t=typeof l=="function"?l:X(+l),u):t},u.y=function(l){return arguments.length?(e=typeof l=="function"?l:X(+l),u):e},u.defined=function(l){return arguments.length?(n=typeof l=="function"?l:X(!!l),u):n},u.curve=function(l){return arguments.length?(i=l,r!=null&&(o=i(r)),u):i},u.context=function(l){return arguments.length?(l==null?r=o=null:o=i(r=l),u):r},u}a();a();function is(t,e){return e<t?-1:e>t?1:e>=t?0:NaN}a();function os(t){return t}function Rc(){var t=os,e=is,n=null,r=X(0),i=X(Ce),o=X(0);function s(u){var l,f=(u=Fn(u)).length,h,m,c=0,d=new Array(f),v=new Array(f),b=+r.apply(this,arguments),S=Math.min(Ce,Math.max(-Ce,i.apply(this,arguments)-b)),C,I=Math.min(Math.abs(S)/f,o.apply(this,arguments)),$=I*(S<0?-1:1),N;for(l=0;l<f;++l)(N=v[d[l]=l]=+t(u[l],l,u))>0&&(c+=N);for(e!=null?d.sort(function(R,w){return e(v[R],v[w])}):n!=null&&d.sort(function(R,w){return n(u[R],u[w])}),l=0,m=c?(S-f*$)/c:0;l<f;++l,b=C)h=d[l],N=v[h],C=b+(N>0?N*m:0)+$,v[h]={data:u[h],index:l,value:N,startAngle:b,endAngle:C,padAngle:I};return v}return s.value=function(u){return arguments.length?(t=typeof u=="function"?u:X(+u),s):t},s.sortValues=function(u){return arguments.length?(e=u,n=null,s):e},s.sort=function(u){return arguments.length?(n=u,e=null,s):n},s.startAngle=function(u){return arguments.length?(r=typeof u=="function"?u:X(+u),s):r},s.endAngle=function(u){return arguments.length?(i=typeof u=="function"?u:X(+u),s):i},s.padAngle=function(u){return arguments.length?(o=typeof u=="function"?u:X(+u),s):o},s}a();function Ne(t,e,n){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+e)/6,(t._y0+4*t._y1+n)/6)}function Qe(t){this._context=t}Qe.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:Ne(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:Ne(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function Yc(t){return new Qe(t)}a();a();var Un=class{constructor(e,n){this._context=e,this._x=n}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(e,n){switch(e=+e,n=+n,this._point){case 0:{this._point=1,this._line?this._context.lineTo(e,n):this._context.moveTo(e,n);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+e)/2,this._y0,this._x0,n,e,n):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+n)/2,e,this._y0,e,n);break}}this._x0=e,this._y0=n}};function Pc(t){return new Un(t,!0)}function Fc(t){return new Un(t,!1)}a();a();function dt(){}function as(t){this._context=t}as.prototype={areaStart:dt,areaEnd:dt,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);break}}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x2=t,this._y2=e;break;case 1:this._point=2,this._x3=t,this._y3=e;break;case 2:this._point=3,this._x4=t,this._y4=e,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+e)/6);break;default:Ne(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function Uc(t){return new as(t)}a();function ss(t){this._context=t}ss.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||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+t)/6,r=(this._y0+4*this._y1+e)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:Ne(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function zc(t){return new ss(t)}a();function us(t,e){this._basis=new Qe(t),this._beta=e}us.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var t=this._x,e=this._y,n=t.length-1;if(n>0)for(var r=t[0],i=e[0],o=t[n]-r,s=e[n]-i,u=-1,l;++u<=n;)l=u/n,this._basis.point(this._beta*t[u]+(1-this._beta)*(r+l*o),this._beta*e[u]+(1-this._beta)*(i+l*s));this._x=this._y=null,this._basis.lineEnd()},point:function(t,e){this._x.push(+t),this._y.push(+e)}};var Lc=(function t(e){function n(r){return e===1?new Qe(r):new us(r,e)}return n.beta=function(r){return t(+r)},n})(.85);a();a();function Ae(t,e,n){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-e),t._y2+t._k*(t._y1-n),t._x2,t._y2)}function zn(t,e){this._context=t,this._k=(1-e)/6}zn.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:Ae(this,this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2,this._x1=t,this._y1=e;break;case 2:this._point=3;default:Ae(this,t,e);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var Hc=(function t(e){function n(r){return new zn(r,e)}return n.tension=function(r){return t(+r)},n})(0);function Ln(t,e){this._context=t,this._k=(1-e)/6}Ln.prototype={areaStart:dt,areaEnd:dt,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);break}}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:Ae(this,t,e);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var Bc=(function t(e){function n(r){return new Ln(r,e)}return n.tension=function(r){return t(+r)},n})(0);a();function Hn(t,e){this._context=t,this._k=(1-e)/6}Hn.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||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Ae(this,t,e);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var qc=(function t(e){function n(r){return new Hn(r,e)}return n.tension=function(r){return t(+r)},n})(0);a();a();function Ke(t,e,n){var r=t._x1,i=t._y1,o=t._x2,s=t._y2;if(t._l01_a>et){var u=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,l=3*t._l01_a*(t._l01_a+t._l12_a);r=(r*u-t._x0*t._l12_2a+t._x2*t._l01_2a)/l,i=(i*u-t._y0*t._l12_2a+t._y2*t._l01_2a)/l}if(t._l23_a>et){var f=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,h=3*t._l23_a*(t._l23_a+t._l12_a);o=(o*f+t._x1*t._l23_2a-e*t._l12_2a)/h,s=(s*f+t._y1*t._l23_2a-n*t._l12_2a)/h}t._context.bezierCurveTo(r,i,o,s,t._x2,t._y2)}function fs(t,e){this._context=t,this._alpha=e}fs.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);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3;default:Ke(this,t,e);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var Wc=(function t(e){function n(r){return e?new fs(r,e):new zn(r,0)}return n.alpha=function(r){return t(+r)},n})(.5);function ls(t,e){this._context=t,this._alpha=e}ls.prototype={areaStart:dt,areaEnd:dt,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);break}}},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:Ke(this,t,e);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var Vc=(function t(e){function n(r){return e?new ls(r,e):new Ln(r,0)}return n.alpha=function(r){return t(+r)},n})(.5);a();function cs(t,e){this._context=t,this._alpha=e}cs.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||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Ke(this,t,e);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var Xc=(function t(e){function n(r){return e?new cs(r,e):new Hn(r,0)}return n.alpha=function(r){return t(+r)},n})(.5);a();function hs(t){this._context=t}hs.prototype={areaStart:dt,areaEnd:dt,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(t,e){t=+t,e=+e,this._point?this._context.lineTo(t,e):(this._point=1,this._context.moveTo(t,e))}};function Gc(t){return new hs(t)}a();function ps(t){return t<0?-1:1}function ms(t,e,n){var r=t._x1-t._x0,i=e-t._x1,o=(t._y1-t._y0)/(r||i<0&&-0),s=(n-t._y1)/(i||r<0&&-0),u=(o*i+s*r)/(r+i);return(ps(o)+ps(s))*Math.min(Math.abs(o),Math.abs(s),.5*Math.abs(u))||0}function ds(t,e){var n=t._x1-t._x0;return n?(3*(t._y1-t._y0)/n-e)/2:e}function ri(t,e,n){var r=t._x0,i=t._y0,o=t._x1,s=t._y1,u=(o-r)/3;t._context.bezierCurveTo(r+u,i+u*e,o-u,s-u*n,o,s)}function Bn(t){this._context=t}Bn.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:ri(this,this._t0,ds(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){var n=NaN;if(t=+t,e=+e,!(t===this._x1&&e===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,ri(this,ds(this,n=ms(this,t,e)),n);break;default:ri(this,this._t0,n=ms(this,t,e));break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=n}}};function xs(t){this._context=new _s(t)}(xs.prototype=Object.create(Bn.prototype)).point=function(t,e){Bn.prototype.point.call(this,e,t)};function _s(t){this._context=t}_s.prototype={moveTo:function(t,e){this._context.moveTo(e,t)},closePath:function(){this._context.closePath()},lineTo:function(t,e){this._context.lineTo(e,t)},bezierCurveTo:function(t,e,n,r,i,o){this._context.bezierCurveTo(e,t,r,n,o,i)}};function Zc(t){return new Bn(t)}function Qc(t){return new xs(t)}a();function ys(t){this._context=t}ys.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var t=this._x,e=this._y,n=t.length;if(n)if(this._line?this._context.lineTo(t[0],e[0]):this._context.moveTo(t[0],e[0]),n===2)this._context.lineTo(t[1],e[1]);else for(var r=gs(t),i=gs(e),o=0,s=1;s<n;++o,++s)this._context.bezierCurveTo(r[0][o],i[0][o],r[1][o],i[1][o],t[s],e[s]);(this._line||this._line!==0&&n===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(t,e){this._x.push(+t),this._y.push(+e)}};function gs(t){var e,n=t.length-1,r,i=new Array(n),o=new Array(n),s=new Array(n);for(i[0]=0,o[0]=2,s[0]=t[0]+2*t[1],e=1;e<n-1;++e)i[e]=1,o[e]=4,s[e]=4*t[e]+2*t[e+1];for(i[n-1]=2,o[n-1]=7,s[n-1]=8*t[n-1]+t[n],e=1;e<n;++e)r=i[e]/o[e-1],o[e]-=r,s[e]-=r*s[e-1];for(i[n-1]=s[n-1]/o[n-1],e=n-2;e>=0;--e)i[e]=(s[e]-i[e+1])/o[e];for(o[n-1]=(t[n]+i[n-1])/2,e=0;e<n-1;++e)o[e]=2*t[e+1]-i[e+1];return[i,o]}function Kc(t){return new ys(t)}a();function qn(t,e){this._context=t,this._t=e}qn.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&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,e),this._context.lineTo(t,e);else{var n=this._x*(1-this._t)+t*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,e)}break}}this._x=t,this._y=e}};function Jc(t){return new qn(t,.5)}function jc(t){return new qn(t,0)}function th(t){return new qn(t,1)}a();a();a();a();a();var eh={value:()=>{}};function ws(){for(var t=0,e=arguments.length,n={},r;t<e;++t){if(!(r=arguments[t]+"")||r in n||/[\s.]/.test(r))throw new Error("illegal type: "+r);n[r]=[]}return new Wn(n)}function Wn(t){this._=t}function nh(t,e){return t.trim().split(/^|\s+/).map(function(n){var r="",i=n.indexOf(".");if(i>=0&&(r=n.slice(i+1),n=n.slice(0,i)),n&&!e.hasOwnProperty(n))throw new Error("unknown type: "+n);return{type:n,name:r}})}Wn.prototype=ws.prototype={constructor:Wn,on:function(t,e){var n=this._,r=nh(t+"",n),i,o=-1,s=r.length;if(arguments.length<2){for(;++o<s;)if((i=(t=r[o]).type)&&(i=rh(n[i],t.name)))return i;return}if(e!=null&&typeof e!="function")throw new Error("invalid callback: "+e);for(;++o<s;)if(i=(t=r[o]).type)n[i]=vs(n[i],t.name,e);else if(e==null)for(i in n)n[i]=vs(n[i],t.name,null);return this},copy:function(){var t={},e=this._;for(var n in e)t[n]=e[n].slice();return new Wn(t)},call:function(t,e){if((i=arguments.length-2)>0)for(var n=new Array(i),r=0,i,o;r<i;++r)n[r]=arguments[r+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(o=this._[t],r=0,i=o.length;r<i;++r)o[r].value.apply(e,n)},apply:function(t,e,n){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(e,n)}};function rh(t,e){for(var n=0,r=t.length,i;n<r;++n)if((i=t[n]).name===e)return i.value}function vs(t,e,n){for(var r=0,i=t.length;r<i;++r)if(t[r].name===e){t[r]=eh,t=t.slice(0,r).concat(t.slice(r+1));break}return n!=null&&t.push({name:e,value:n}),t}var ii=ws;a();a();a();a();a();a();a();var De=0,je=0,Je=0,Ms=1e3,Vn,tn,Xn=0,fe=0,Gn=0,en=typeof performance=="object"&&performance.now?performance:Date,Ts=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function rn(){return fe||(Ts(ih),fe=en.now()+Gn)}function ih(){fe=0}function nn(){this._call=this._time=this._next=null}nn.prototype=Zn.prototype={constructor:nn,restart:function(t,e,n){if(typeof t!="function")throw new TypeError("callback is not a function");n=(n==null?rn():+n)+(e==null?0:+e),!this._next&&tn!==this&&(tn?tn._next=this:Vn=this,tn=this),this._call=t,this._time=n,oi()},stop:function(){this._call&&(this._call=null,this._time=1/0,oi())}};function Zn(t,e,n){var r=new nn;return r.restart(t,e,n),r}function ks(){rn(),++De;for(var t=Vn,e;t;)(e=fe-t._time)>=0&&t._call.call(void 0,e),t=t._next;--De}function bs(){fe=(Xn=en.now())+Gn,De=je=0;try{ks()}finally{De=0,ah(),fe=0}}function oh(){var t=en.now(),e=t-Xn;e>Ms&&(Gn-=e,Xn=t)}function ah(){for(var t,e=Vn,n,r=1/0;e;)e._call?(r>e._time&&(r=e._time),t=e,e=e._next):(n=e._next,e._next=null,e=t?t._next=n:Vn=n);tn=t,oi(r)}function oi(t){if(!De){je&&(je=clearTimeout(je));var e=t-fe;e>24?(t<1/0&&(je=setTimeout(bs,t-en.now()-Gn)),Je&&(Je=clearInterval(Je))):(Je||(Xn=en.now(),Je=setInterval(oh,Ms)),De=1,Ts(bs))}}a();function Qn(t,e,n){var r=new nn;return e=e==null?0:+e,r.restart(i=>{r.stop(),t(i+e)},e,n),r}var sh=ii("start","end","cancel","interrupt"),uh=[],Ns=0,Ss=1,Jn=2,Kn=3,Cs=4,jn=5,on=6;function Ht(t,e,n,r,i,o){var s=t.__transition;if(!s)t.__transition={};else if(n in s)return;fh(t,n,{name:e,index:r,group:i,on:sh,tween:uh,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:Ns})}function an(t,e){var n=J(t,e);if(n.state>Ns)throw new Error("too late; already scheduled");return n}function ot(t,e){var n=J(t,e);if(n.state>Kn)throw new Error("too late; already running");return n}function J(t,e){var n=t.__transition;if(!n||!(n=n[e]))throw new Error("transition not found");return n}function fh(t,e,n){var r=t.__transition,i;r[e]=n,n.timer=Zn(o,0,n.time);function o(f){n.state=Ss,n.timer.restart(s,n.delay,n.time),n.delay<=f&&s(f-n.delay)}function s(f){var h,m,c,d;if(n.state!==Ss)return l();for(h in r)if(d=r[h],d.name===n.name){if(d.state===Kn)return Qn(s);d.state===Cs?(d.state=on,d.timer.stop(),d.on.call("interrupt",t,t.__data__,d.index,d.group),delete r[h]):+h<e&&(d.state=on,d.timer.stop(),d.on.call("cancel",t,t.__data__,d.index,d.group),delete r[h])}if(Qn(function(){n.state===Kn&&(n.state=Cs,n.timer.restart(u,n.delay,n.time),u(f))}),n.state=Jn,n.on.call("start",t,t.__data__,n.index,n.group),n.state===Jn){for(n.state=Kn,i=new Array(c=n.tween.length),h=0,m=-1;h<c;++h)(d=n.tween[h].value.call(t,t.__data__,n.index,n.group))&&(i[++m]=d);i.length=m+1}}function u(f){for(var h=f<n.duration?n.ease.call(null,f/n.duration):(n.timer.restart(l),n.state=jn,1),m=-1,c=i.length;++m<c;)i[m].call(t,h);n.state===jn&&(n.on.call("end",t,t.__data__,n.index,n.group),l())}function l(){n.state=on,n.timer.stop(),delete r[e];for(var f in r)return;delete t.__transition}}function tr(t,e){var n=t.__transition,r,i,o=!0,s;if(n){e=e==null?null:e+"";for(s in n){if((r=n[s]).name!==e){o=!1;continue}i=r.state>Jn&&r.state<jn,r.state=on,r.timer.stop(),r.on.call(i?"interrupt":"cancel",t,t.__data__,r.index,r.group),delete n[s]}o&&delete t.__transition}}function As(t){return this.each(function(){tr(this,t)})}a();a();a();a();function lh(t,e){var n,r;return function(){var i=ot(this,t),o=i.tween;if(o!==n){r=n=o;for(var s=0,u=r.length;s<u;++s)if(r[s].name===e){r=r.slice(),r.splice(s,1);break}}i.tween=r}}function ch(t,e,n){var r,i;if(typeof n!="function")throw new Error;return function(){var o=ot(this,t),s=o.tween;if(s!==r){i=(r=s).slice();for(var u={name:e,value:n},l=0,f=i.length;l<f;++l)if(i[l].name===e){i[l]=u;break}l===f&&i.push(u)}o.tween=i}}function Ds(t,e){var n=this._id;if(t+="",arguments.length<2){for(var r=J(this.node(),n).tween,i=0,o=r.length,s;i<o;++i)if((s=r[i]).name===t)return s.value;return null}return this.each((e==null?lh:ch)(n,t,e))}function $e(t,e,n){var r=t._id;return t.each(function(){var i=ot(this,r);(i.value||(i.value={}))[e]=n.apply(this,arguments)}),function(i){return J(i,r).value[e]}}a();function er(t,e){var n;return(typeof e=="number"?rt:e instanceof gt?Kt:(n=gt(e))?(e=n,Kt):Ue)(t,e)}function hh(t){return function(){this.removeAttribute(t)}}function ph(t){return function(){this.removeAttributeNS(t.space,t.local)}}function mh(t,e,n){var r,i=n+"",o;return function(){var s=this.getAttribute(t);return s===i?null:s===r?o:o=e(r=s,n)}}function dh(t,e,n){var r,i=n+"",o;return function(){var s=this.getAttributeNS(t.space,t.local);return s===i?null:s===r?o:o=e(r=s,n)}}function xh(t,e,n){var r,i,o;return function(){var s,u=n(this),l;return u==null?void this.removeAttribute(t):(s=this.getAttribute(t),l=u+"",s===l?null:s===r&&l===i?o:(i=l,o=e(r=s,u)))}}function _h(t,e,n){var r,i,o;return function(){var s,u=n(this),l;return u==null?void this.removeAttributeNS(t.space,t.local):(s=this.getAttributeNS(t.space,t.local),l=u+"",s===l?null:s===r&&l===i?o:(i=l,o=e(r=s,u)))}}function $s(t,e){var n=Nt(t),r=n==="transform"?Nr:er;return this.attrTween(t,typeof e=="function"?(n.local?_h:xh)(n,r,$e(this,"attr."+t,e)):e==null?(n.local?ph:hh)(n):(n.local?dh:mh)(n,r,e))}a();function gh(t,e){return function(n){this.setAttribute(t,e.call(this,n))}}function yh(t,e){return function(n){this.setAttributeNS(t.space,t.local,e.call(this,n))}}function vh(t,e){var n,r;function i(){var o=e.apply(this,arguments);return o!==r&&(n=(r=o)&&yh(t,o)),n}return i._value=e,i}function wh(t,e){var n,r;function i(){var o=e.apply(this,arguments);return o!==r&&(n=(r=o)&&gh(t,o)),n}return i._value=e,i}function Os(t,e){var n="attr."+t;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(e==null)return this.tween(n,null);if(typeof e!="function")throw new Error;var r=Nt(t);return this.tween(n,(r.local?vh:wh)(r,e))}a();function bh(t,e){return function(){an(this,t).delay=+e.apply(this,arguments)}}function Mh(t,e){return e=+e,function(){an(this,t).delay=e}}function Is(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?bh:Mh)(e,t)):J(this.node(),e).delay}a();function Th(t,e){return function(){ot(this,t).duration=+e.apply(this,arguments)}}function kh(t,e){return e=+e,function(){ot(this,t).duration=e}}function Es(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?Th:kh)(e,t)):J(this.node(),e).duration}a();function Sh(t,e){if(typeof e!="function")throw new Error;return function(){ot(this,t).ease=e}}function Rs(t){var e=this._id;return arguments.length?this.each(Sh(e,t)):J(this.node(),e).ease}a();function Ch(t,e){return function(){var n=e.apply(this,arguments);if(typeof n!="function")throw new Error;ot(this,t).ease=n}}function Ys(t){if(typeof t!="function")throw new Error;return this.each(Ch(this._id,t))}a();function Ps(t){typeof t!="function"&&(t=Ee(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i<n;++i)for(var o=e[i],s=o.length,u=r[i]=[],l,f=0;f<s;++f)(l=o[f])&&t.call(l,l.__data__,f,o)&&u.push(l);return new at(r,this._parents,this._name,this._id)}a();function Fs(t){if(t._id!==this._id)throw new Error;for(var e=this._groups,n=t._groups,r=e.length,i=n.length,o=Math.min(r,i),s=new Array(r),u=0;u<o;++u)for(var l=e[u],f=n[u],h=l.length,m=s[u]=new Array(h),c,d=0;d<h;++d)(c=l[d]||f[d])&&(m[d]=c);for(;u<r;++u)s[u]=e[u];return new at(s,this._parents,this._name,this._id)}a();function Nh(t){return(t+"").trim().split(/^|\s+/).every(function(e){var n=e.indexOf(".");return n>=0&&(e=e.slice(0,n)),!e||e==="start"})}function Ah(t,e,n){var r,i,o=Nh(e)?an:ot;return function(){var s=o(this,t),u=s.on;u!==r&&(i=(r=u).copy()).on(e,n),s.on=i}}function Us(t,e){var n=this._id;return arguments.length<2?J(this.node(),n).on.on(t):this.each(Ah(n,t,e))}a();function Dh(t){return function(){var e=this.parentNode;for(var n in this.__transition)if(+n!==t)return;e&&e.removeChild(this)}}function zs(){return this.on("end.remove",Dh(this._id))}a();function Ls(t){var e=this._name,n=this._id;typeof t!="function"&&(t=Xt(t));for(var r=this._groups,i=r.length,o=new Array(i),s=0;s<i;++s)for(var u=r[s],l=u.length,f=o[s]=new Array(l),h,m,c=0;c<l;++c)(h=u[c])&&(m=t.call(h,h.__data__,c,u))&&("__data__"in h&&(m.__data__=h.__data__),f[c]=m,Ht(f[c],e,n,c,f,J(h,n)));return new at(o,this._parents,e,n)}a();function Hs(t){var e=this._name,n=this._id;typeof t!="function"&&(t=Ie(t));for(var r=this._groups,i=r.length,o=[],s=[],u=0;u<i;++u)for(var l=r[u],f=l.length,h,m=0;m<f;++m)if(h=l[m]){for(var c=t.call(h,h.__data__,m,l),d,v=J(h,n),b=0,S=c.length;b<S;++b)(d=c[b])&&Ht(d,e,n,b,c,v);o.push(c),s.push(h)}return new at(o,s,e,n)}a();var $h=At.prototype.constructor;function Bs(){return new $h(this._groups,this._parents)}a();function Oh(t,e){var n,r,i;return function(){var o=Rt(this,t),s=(this.style.removeProperty(t),Rt(this,t));return o===s?null:o===n&&s===r?i:i=e(n=o,r=s)}}function qs(t){return function(){this.style.removeProperty(t)}}function Ih(t,e,n){var r,i=n+"",o;return function(){var s=Rt(this,t);return s===i?null:s===r?o:o=e(r=s,n)}}function Eh(t,e,n){var r,i,o;return function(){var s=Rt(this,t),u=n(this),l=u+"";return u==null&&(l=u=(this.style.removeProperty(t),Rt(this,t))),s===l?null:s===r&&l===i?o:(i=l,o=e(r=s,u))}}function Rh(t,e){var n,r,i,o="style."+e,s="end."+o,u;return function(){var l=ot(this,t),f=l.on,h=l.value[o]==null?u||(u=qs(e)):void 0;(f!==n||i!==h)&&(r=(n=f).copy()).on(s,i=h),l.on=r}}function Ws(t,e,n){var r=(t+="")=="transform"?Cr:er;return e==null?this.styleTween(t,Oh(t,r)).on("end.style."+t,qs(t)):typeof e=="function"?this.styleTween(t,Eh(t,r,$e(this,"style."+t,e))).each(Rh(this._id,t)):this.styleTween(t,Ih(t,r,e),n).on("end.style."+t,null)}a();function Yh(t,e,n){return function(r){this.style.setProperty(t,e.call(this,r),n)}}function Ph(t,e,n){var r,i;function o(){var s=e.apply(this,arguments);return s!==i&&(r=(i=s)&&Yh(t,s,n)),r}return o._value=e,o}function Vs(t,e,n){var r="style."+(t+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(e==null)return this.tween(r,null);if(typeof e!="function")throw new Error;return this.tween(r,Ph(t,e,n??""))}a();function Fh(t){return function(){this.textContent=t}}function Uh(t){return function(){var e=t(this);this.textContent=e??""}}function Xs(t){return this.tween("text",typeof t=="function"?Uh($e(this,"text",t)):Fh(t==null?"":t+""))}a();function zh(t){return function(e){this.textContent=t.call(this,e)}}function Lh(t){var e,n;function r(){var i=t.apply(this,arguments);return i!==n&&(e=(n=i)&&zh(i)),e}return r._value=t,r}function Gs(t){var e="text";if(arguments.length<1)return(e=this.tween(e))&&e._value;if(t==null)return this.tween(e,null);if(typeof t!="function")throw new Error;return this.tween(e,Lh(t))}a();function Zs(){for(var t=this._name,e=this._id,n=nr(),r=this._groups,i=r.length,o=0;o<i;++o)for(var s=r[o],u=s.length,l,f=0;f<u;++f)if(l=s[f]){var h=J(l,e);Ht(l,t,n,f,s,{time:h.time+h.delay+h.duration,delay:0,duration:h.duration,ease:h.ease})}return new at(r,this._parents,t,n)}a();function Qs(){var t,e,n=this,r=n._id,i=n.size();return new Promise(function(o,s){var u={value:s},l={value:function(){--i===0&&o()}};n.each(function(){var f=ot(this,r),h=f.on;h!==t&&(e=(t=h).copy(),e._.cancel.push(u),e._.interrupt.push(u),e._.end.push(l)),f.on=e}),i===0&&o()})}var Hh=0;function at(t,e,n,r){this._groups=t,this._parents=e,this._name=n,this._id=r}function Ks(t){return At().transition(t)}function nr(){return++Hh}var Et=At.prototype;at.prototype=Ks.prototype={constructor:at,select:Ls,selectAll:Hs,selectChild:Et.selectChild,selectChildren:Et.selectChildren,filter:Ps,merge:Fs,selection:Bs,transition:Zs,call:Et.call,nodes:Et.nodes,node:Et.node,size:Et.size,empty:Et.empty,each:Et.each,on:Us,attr:$s,attrTween:Os,style:Ws,styleTween:Vs,text:Xs,textTween:Gs,remove:zs,tween:Ds,delay:Is,duration:Es,ease:Rs,easeVarying:Ys,end:Qs,[Symbol.iterator]:Et[Symbol.iterator]};a();a();function rr(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}var Bh={time:null,delay:0,duration:250,ease:rr};function qh(t,e){for(var n;!(n=t.__transition)||!(n=n[e]);)if(!(t=t.parentNode))throw new Error(`transition ${e} not found`);return n}function Js(t){var e,n;t instanceof at?(e=t._id,t=t._name):(e=nr(),(n=Bh).time=rn(),t=t==null?null:t+"");for(var r=this._groups,i=r.length,o=0;o<i;++o)for(var s=r[o],u=s.length,l,f=0;f<u;++f)(l=s[f])&&Ht(l,t,e,f,s,n||qh(l,e));return new at(r,this._parents,t,e)}At.prototype.interrupt=As;At.prototype.transition=Js;a();a();a();var{abs:$T,max:OT,min:IT}=Math;function js(t){return[+t[0],+t[1]]}function Wh(t){return[js(t[0]),js(t[1])]}var ET={name:"x",handles:["w","e"].map(ai),input:function(t,e){return t==null?null:[[+t[0],e[0][1]],[+t[1],e[1][1]]]},output:function(t){return t&&[t[0][0],t[1][0]]}},RT={name:"y",handles:["n","s"].map(ai),input:function(t,e){return t==null?null:[[e[0][0],+t[0]],[e[1][0],+t[1]]]},output:function(t){return t&&[t[0][1],t[1][1]]}},YT={name:"xy",handles:["n","w","e","s","nw","ne","sw","se"].map(ai),input:function(t){return t==null?null:Wh(t)},output:function(t){return t}};function ai(t){return{type:t}}a();a();a();a();a();function Bt(t,e,n){this.k=t,this.x=e,this.y=n}Bt.prototype={constructor:Bt,scale:function(t){return t===1?this:new Bt(this.k*t,this.x,this.y)},translate:function(t,e){return t===0&e===0?this:new Bt(this.k,this.x+this.k*t,this.y+this.k*e)},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 si=new Bt(1,0,0);ui.prototype=Bt.prototype;function ui(t){for(;!t.__zoom;)if(!(t=t.parentNode))return si;return t.__zoom}a();export{li as a,pt as b,Gh as c,hi as d,pi as e,xu as f,_u as g,df as h,Af as i,Sn as j,Nn as k,Wf as l,He as m,Pr as n,Hr as o,te as p,Tt as q,ve as r,we as s,Ot as t,It as u,be as v,ya as w,va as x,Ut as y,wa as z,ba as A,Te as B,En as C,Za as D,Tc as E,Ic as F,ni as G,Ec as H,Rc as I,Pc as J,Fc as K,Yc as L,Uc as M,zc as N,Lc as O,Hc as P,Bc as Q,qc as R,Wc as S,Vc as T,Xc as U,Gc as V,Zc as W,Qc as X,Kc as Y,Jc as Z,jc as _,th as $};
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as St}from"./chunk-ITN3D7RJ.js";import{a as tu,c as eu,d as a}from"./chunk-SOAWGUAD.js";var li=tu((ir,or)=>{a();(function(t,e){typeof ir=="object"&&typeof or<"u"?or.exports=e():typeof define=="function"&&define.amd?define(e):(t=typeof globalThis<"u"?globalThis:t||self).dayjs=e()})(ir,(function(){"use strict";var t=1e3,e=6e4,n=36e5,r="millisecond",i="second",o="minute",s="hour",u="day",l="week",f="month",h="quarter",m="year",c="date",d="Invalid Date",v=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,b=/\[([^\]]+)]|YYYY|YY|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,S={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(g){var x=["th","st","nd","rd"],_=g%100;return"["+g+(x[(_-20)%10]||x[_]||x[0])+"]"}},C=function(g,x,_){var k=String(g);return!k||k.length>=x?g:""+Array(x+1-k.length).join(_)+g},I={s:C,z:function(g){var x=-g.utcOffset(),_=Math.abs(x),k=Math.floor(_/60),M=_%60;return(x<=0?"+":"-")+C(k,2,"0")+":"+C(M,2,"0")},m:function g(x,_){if(x.date()<_.date())return-g(_,x);var k=12*(_.year()-x.year())+(_.month()-x.month()),M=x.clone().add(k,f),A=_-M<0,D=x.clone().add(k+(A?-1:1),f);return+(-(k+(_-M)/(A?M-D:D-M))||0)},a:function(g){return g<0?Math.ceil(g)||0:Math.floor(g)},p:function(g){return{M:f,y:m,w:l,d:u,D:c,h:s,m:o,s:i,ms:r,Q:h}[g]||String(g||"").toLowerCase().replace(/s$/,"")},u:function(g){return g===void 0}},$="en",N={};N[$]=S;var R="$isDayjsObject",w=function(g){return g instanceof W||!(!g||!g[R])},Y=function g(x,_,k){var M;if(!x)return $;if(typeof x=="string"){var A=x.toLowerCase();N[A]&&(M=A),_&&(N[A]=_,M=A);var D=x.split("-");if(!M&&D.length>1)return g(D[0])}else{var U=x.name;N[U]=x,M=U}return!k&&M&&($=M),M||!k&&$},F=function(g,x){if(w(g))return g.clone();var _=typeof x=="object"?x:{};return _.date=g,_.args=arguments,new W(_)},O=I;O.l=Y,O.i=w,O.w=function(g,x){return F(g,{locale:x.$L,utc:x.$u,x:x.$x,$offset:x.$offset})};var W=(function(){function g(_){this.$L=Y(_.locale,null,!0),this.parse(_),this.$x=this.$x||_.x||{},this[R]=!0}var x=g.prototype;return x.parse=function(_){this.$d=(function(k){var M=k.date,A=k.utc;if(M===null)return new Date(NaN);if(O.u(M))return new Date;if(M instanceof Date)return new Date(M);if(typeof M=="string"&&!/Z$/i.test(M)){var D=M.match(v);if(D){var U=D[2]-1||0,z=(D[7]||"0").substring(0,3);return A?new Date(Date.UTC(D[1],U,D[3]||1,D[4]||0,D[5]||0,D[6]||0,z)):new Date(D[1],U,D[3]||1,D[4]||0,D[5]||0,D[6]||0,z)}}return new Date(M)})(_),this.init()},x.init=function(){var _=this.$d;this.$y=_.getFullYear(),this.$M=_.getMonth(),this.$D=_.getDate(),this.$W=_.getDay(),this.$H=_.getHours(),this.$m=_.getMinutes(),this.$s=_.getSeconds(),this.$ms=_.getMilliseconds()},x.$utils=function(){return O},x.isValid=function(){return this.$d.toString()!==d},x.isSame=function(_,k){var M=F(_);return this.startOf(k)<=M&&M<=this.endOf(k)},x.isAfter=function(_,k){return F(_)<this.startOf(k)},x.isBefore=function(_,k){return this.endOf(k)<F(_)},x.$g=function(_,k,M){return O.u(_)?this[k]:this.set(M,_)},x.unix=function(){return Math.floor(this.valueOf()/1e3)},x.valueOf=function(){return this.$d.getTime()},x.startOf=function(_,k){var M=this,A=!!O.u(k)||k,D=O.p(_),U=function(ut,Q){var T=O.w(M.$u?Date.UTC(M.$y,Q,ut):new Date(M.$y,Q,ut),M);return A?T:T.endOf(u)},z=function(ut,Q){return O.w(M.toDate()[ut].apply(M.toDate("s"),(A?[0,0,0,0]:[23,59,59,999]).slice(Q)),M)},V=this.$W,G=this.$M,j=this.$D,ht="set"+(this.$u?"UTC":"");switch(D){case m:return A?U(1,0):U(31,11);case f:return A?U(1,G):U(0,G+1);case l:var K=this.$locale().weekStart||0,xt=(V<K?V+7:V)-K;return U(A?j-xt:j+(6-xt),G);case u:case c:return z(ht+"Hours",0);case s:return z(ht+"Minutes",1);case o:return z(ht+"Seconds",2);case i:return z(ht+"Milliseconds",3);default:return this.clone()}},x.endOf=function(_){return this.startOf(_,!1)},x.$set=function(_,k){var M,A=O.p(_),D="set"+(this.$u?"UTC":""),U=(M={},M[u]=D+"Date",M[c]=D+"Date",M[f]=D+"Month",M[m]=D+"FullYear",M[s]=D+"Hours",M[o]=D+"Minutes",M[i]=D+"Seconds",M[r]=D+"Milliseconds",M)[A],z=A===u?this.$D+(k-this.$W):k;if(A===f||A===m){var V=this.clone().set(c,1);V.$d[U](z),V.init(),this.$d=V.set(c,Math.min(this.$D,V.daysInMonth())).$d}else U&&this.$d[U](z);return this.init(),this},x.set=function(_,k){return this.clone().$set(_,k)},x.get=function(_){return this[O.p(_)]()},x.add=function(_,k){var M,A=this;_=Number(_);var D=O.p(k),U=function(G){var j=F(A);return O.w(j.date(j.date()+Math.round(G*_)),A)};if(D===f)return this.set(f,this.$M+_);if(D===m)return this.set(m,this.$y+_);if(D===u)return U(1);if(D===l)return U(7);var z=(M={},M[o]=e,M[s]=n,M[i]=t,M)[D]||1,V=this.$d.getTime()+_*z;return O.w(V,this)},x.subtract=function(_,k){return this.add(-1*_,k)},x.format=function(_){var k=this,M=this.$locale();if(!this.isValid())return M.invalidDate||d;var A=_||"YYYY-MM-DDTHH:mm:ssZ",D=O.z(this),U=this.$H,z=this.$m,V=this.$M,G=M.weekdays,j=M.months,ht=M.meridiem,K=function(Q,T,E,P){return Q&&(Q[T]||Q(k,A))||E[T].slice(0,P)},xt=function(Q){return O.s(U%12||12,Q,"0")},ut=ht||function(Q,T,E){var P=Q<12?"AM":"PM";return E?P.toLowerCase():P};return A.replace(b,(function(Q,T){return T||(function(E){switch(E){case"YY":return String(k.$y).slice(-2);case"YYYY":return O.s(k.$y,4,"0");case"M":return V+1;case"MM":return O.s(V+1,2,"0");case"MMM":return K(M.monthsShort,V,j,3);case"MMMM":return K(j,V);case"D":return k.$D;case"DD":return O.s(k.$D,2,"0");case"d":return String(k.$W);case"dd":return K(M.weekdaysMin,k.$W,G,2);case"ddd":return K(M.weekdaysShort,k.$W,G,3);case"dddd":return G[k.$W];case"H":return String(U);case"HH":return O.s(U,2,"0");case"h":return xt(1);case"hh":return xt(2);case"a":return ut(U,z,!0);case"A":return ut(U,z,!1);case"m":return String(z);case"mm":return O.s(z,2,"0");case"s":return String(k.$s);case"ss":return O.s(k.$s,2,"0");case"SSS":return O.s(k.$ms,3,"0");case"Z":return D}return null})(Q)||D.replace(":","")}))},x.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},x.diff=function(_,k,M){var A,D=this,U=O.p(k),z=F(_),V=(z.utcOffset()-this.utcOffset())*e,G=this-z,j=function(){return O.m(D,z)};switch(U){case m:A=j()/12;break;case f:A=j();break;case h:A=j()/3;break;case l:A=(G-V)/6048e5;break;case u:A=(G-V)/864e5;break;case s:A=G/n;break;case o:A=G/e;break;case i:A=G/t;break;default:A=G}return M?A:O.a(A)},x.daysInMonth=function(){return this.endOf(f).$D},x.$locale=function(){return N[this.$L]},x.locale=function(_,k){if(!_)return this.$L;var M=this.clone(),A=Y(_,k,!0);return A&&(M.$L=A),M},x.clone=function(){return O.w(this.$d,this)},x.toDate=function(){return new Date(this.valueOf())},x.toJSON=function(){return this.isValid()?this.toISOString():null},x.toISOString=function(){return this.$d.toISOString()},x.toString=function(){return this.$d.toUTCString()},g})(),B=W.prototype;return F.prototype=B,[["$ms",r],["$s",i],["$m",o],["$H",s],["$W",u],["$M",f],["$y",m],["$D",c]].forEach((function(g){B[g[1]]=function(x){return this.$g(x,g[0],g[1])}})),F.extend=function(g,x){return g.$i||(g(x,W,F),g.$i=!0),F},F.locale=Y,F.isDayjs=w,F.unix=function(g){return F(1e3*g)},F.en=N[$],F.Ls=N,F.p={},F}))});a();var ci=eu(li(),1),Ct={trace:0,debug:1,info:2,warn:3,error:4,fatal:5},pt={trace:St((...t)=>{},"trace"),debug:St((...t)=>{},"debug"),info:St((...t)=>{},"info"),warn:St((...t)=>{},"warn"),error:St((...t)=>{},"error"),fatal:St((...t)=>{},"fatal")},Gh=St(function(t="fatal"){let e=Ct.fatal;typeof t=="string"?t.toLowerCase()in Ct&&(e=Ct[t]):typeof t=="number"&&(e=t),pt.trace=()=>{},pt.debug=()=>{},pt.info=()=>{},pt.warn=()=>{},pt.error=()=>{},pt.fatal=()=>{},e<=Ct.fatal&&(pt.fatal=console.error?console.error.bind(console,mt("FATAL"),"color: orange"):console.log.bind(console,"\x1B[35m",mt("FATAL"))),e<=Ct.error&&(pt.error=console.error?console.error.bind(console,mt("ERROR"),"color: orange"):console.log.bind(console,"\x1B[31m",mt("ERROR"))),e<=Ct.warn&&(pt.warn=console.warn?console.warn.bind(console,mt("WARN"),"color: orange"):console.log.bind(console,"\x1B[33m",mt("WARN"))),e<=Ct.info&&(pt.info=console.info?console.info.bind(console,mt("INFO"),"color: lightblue"):console.log.bind(console,"\x1B[34m",mt("INFO"))),e<=Ct.debug&&(pt.debug=console.debug?console.debug.bind(console,mt("DEBUG"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",mt("DEBUG"))),e<=Ct.trace&&(pt.trace=console.debug?console.debug.bind(console,mt("TRACE"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",mt("TRACE")))},"setLogLevel"),mt=St(t=>`%c${(0,ci.default)().format("ss.SSS")} : ${t} : `,"format");a();function hi(t,e){let n;if(e===void 0)for(let r of t)r!=null&&(n<r||n===void 0&&r>=r)&&(n=r);else{let r=-1;for(let i of t)(i=e(i,++r,t))!=null&&(n<i||n===void 0&&i>=i)&&(n=i)}return n}a();function pi(t,e){let n;if(e===void 0)for(let r of t)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);else{let r=-1;for(let i of t)(i=e(i,++r,t))!=null&&(n>i||n===void 0&&i>=i)&&(n=i)}return n}a();a();a();function Wt(t,e){return t==null||e==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}a();a();function ar(t,e){return t==null||e==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function Vt(t){let e,n,r;t.length!==2?(e=Wt,n=(u,l)=>Wt(t(u),l),r=(u,l)=>t(u)-l):(e=t===Wt||t===ar?t:nu,n=t,r=t);function i(u,l,f=0,h=u.length){if(f<h){if(e(l,l)!==0)return h;do{let m=f+h>>>1;n(u[m],l)<0?f=m+1:h=m}while(f<h)}return f}function o(u,l,f=0,h=u.length){if(f<h){if(e(l,l)!==0)return h;do{let m=f+h>>>1;n(u[m],l)<=0?f=m+1:h=m}while(f<h)}return f}function s(u,l,f=0,h=u.length){let m=i(u,l,f,h-1);return m>f&&r(u[m-1],l)>-r(u[m],l)?m-1:m}return{left:i,center:s,right:o}}function nu(){return 0}a();function sr(t){return t===null?NaN:+t}var mi=Vt(Wt),di=mi.right,ru=mi.left,iu=Vt(sr).center,ur=di;a();var le=class extends Map{constructor(e,n=su){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),e!=null)for(let[r,i]of e)this.set(r,i)}get(e){return super.get(xi(this,e))}has(e){return super.has(xi(this,e))}set(e,n){return super.set(ou(this,e),n)}delete(e){return super.delete(au(this,e))}};function xi({_intern:t,_key:e},n){let r=e(n);return t.has(r)?t.get(r):n}function ou({_intern:t,_key:e},n){let r=e(n);return t.has(r)?t.get(r):(t.set(r,n),n)}function au({_intern:t,_key:e},n){let r=e(n);return t.has(r)&&(n=t.get(r),t.delete(r)),n}function su(t){return t!==null&&typeof t=="object"?t.valueOf():t}a();var uu=Math.sqrt(50),fu=Math.sqrt(10),lu=Math.sqrt(2);function sn(t,e,n){let r=(e-t)/Math.max(0,n),i=Math.floor(Math.log10(r)),o=r/Math.pow(10,i),s=o>=uu?10:o>=fu?5:o>=lu?2:1,u,l,f;return i<0?(f=Math.pow(10,-i)/s,u=Math.round(t*f),l=Math.round(e*f),u/f<t&&++u,l/f>e&&--l,f=-f):(f=Math.pow(10,i)*s,u=Math.round(t/f),l=Math.round(e/f),u*f<t&&++u,l*f>e&&--l),l<u&&.5<=n&&n<2?sn(t,e,n*2):[u,l,f]}function un(t,e,n){if(e=+e,t=+t,n=+n,!(n>0))return[];if(t===e)return[t];let r=e<t,[i,o,s]=r?sn(e,t,n):sn(t,e,n);if(!(o>=i))return[];let u=o-i+1,l=new Array(u);if(r)if(s<0)for(let f=0;f<u;++f)l[f]=(o-f)/-s;else for(let f=0;f<u;++f)l[f]=(o-f)*s;else if(s<0)for(let f=0;f<u;++f)l[f]=(i+f)/-s;else for(let f=0;f<u;++f)l[f]=(i+f)*s;return l}function Oe(t,e,n){return e=+e,t=+t,n=+n,sn(t,e,n)[2]}function ce(t,e,n){e=+e,t=+t,n=+n;let r=e<t,i=r?Oe(e,t,n):Oe(t,e,n);return(r?-1:1)*(i<0?1/-i:i)}a();function fn(t,e,n){t=+t,e=+e,n=(i=arguments.length)<2?(e=t,t=0,1):i<3?1:+n;for(var r=-1,i=Math.max(0,Math.ceil((e-t)/n))|0,o=new Array(i);++r<i;)o[r]=t+r*n;return o}a();a();function _i(t){return t}var cn=1,fr=2,lr=3,ln=4,gi=1e-6;function cu(t){return"translate("+t+",0)"}function hu(t){return"translate(0,"+t+")"}function pu(t){return e=>+t(e)}function mu(t,e){return e=Math.max(0,t.bandwidth()-e*2)/2,t.round()&&(e=Math.round(e)),n=>+t(n)+e}function du(){return!this.__axis}function yi(t,e){var n=[],r=null,i=null,o=6,s=6,u=3,l=typeof window<"u"&&window.devicePixelRatio>1?0:.5,f=t===cn||t===ln?-1:1,h=t===ln||t===fr?"x":"y",m=t===cn||t===lr?cu:hu;function c(d){var v=r??(e.ticks?e.ticks.apply(e,n):e.domain()),b=i??(e.tickFormat?e.tickFormat.apply(e,n):_i),S=Math.max(o,0)+u,C=e.range(),I=+C[0]+l,$=+C[C.length-1]+l,N=(e.bandwidth?mu:pu)(e.copy(),l),R=d.selection?d.selection():d,w=R.selectAll(".domain").data([null]),Y=R.selectAll(".tick").data(v,e).order(),F=Y.exit(),O=Y.enter().append("g").attr("class","tick"),W=Y.select("line"),B=Y.select("text");w=w.merge(w.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),Y=Y.merge(O),W=W.merge(O.append("line").attr("stroke","currentColor").attr(h+"2",f*o)),B=B.merge(O.append("text").attr("fill","currentColor").attr(h,f*S).attr("dy",t===cn?"0em":t===lr?"0.71em":"0.32em")),d!==R&&(w=w.transition(d),Y=Y.transition(d),W=W.transition(d),B=B.transition(d),F=F.transition(d).attr("opacity",gi).attr("transform",function(g){return isFinite(g=N(g))?m(g+l):this.getAttribute("transform")}),O.attr("opacity",gi).attr("transform",function(g){var x=this.parentNode.__axis;return m((x&&isFinite(x=x(g))?x:N(g))+l)})),F.remove(),w.attr("d",t===ln||t===fr?s?"M"+f*s+","+I+"H"+l+"V"+$+"H"+f*s:"M"+l+","+I+"V"+$:s?"M"+I+","+f*s+"V"+l+"H"+$+"V"+f*s:"M"+I+","+l+"H"+$),Y.attr("opacity",1).attr("transform",function(g){return m(N(g)+l)}),W.attr(h+"2",f*o),B.attr(h,f*S).text(b),R.filter(du).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",t===fr?"start":t===ln?"end":"middle"),R.each(function(){this.__axis=N})}return c.scale=function(d){return arguments.length?(e=d,c):e},c.ticks=function(){return n=Array.from(arguments),c},c.tickArguments=function(d){return arguments.length?(n=d==null?[]:Array.from(d),c):n.slice()},c.tickValues=function(d){return arguments.length?(r=d==null?null:Array.from(d),c):r&&r.slice()},c.tickFormat=function(d){return arguments.length?(i=d,c):i},c.tickSize=function(d){return arguments.length?(o=s=+d,c):o},c.tickSizeInner=function(d){return arguments.length?(o=+d,c):o},c.tickSizeOuter=function(d){return arguments.length?(s=+d,c):s},c.tickPadding=function(d){return arguments.length?(u=+d,c):u},c.offset=function(d){return arguments.length?(l=+d,c):l},c}function xu(t){return yi(cn,t)}function _u(t){return yi(lr,t)}a();a();a();a();a();function gu(){}function Xt(t){return t==null?gu:function(){return this.querySelector(t)}}function vi(t){typeof t!="function"&&(t=Xt(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i<n;++i)for(var o=e[i],s=o.length,u=r[i]=new Array(s),l,f,h=0;h<s;++h)(l=o[h])&&(f=t.call(l,l.__data__,h,o))&&("__data__"in l&&(f.__data__=l.__data__),u[h]=f);return new Z(r,this._parents)}a();a();function cr(t){return t==null?[]:Array.isArray(t)?t:Array.from(t)}a();function yu(){return[]}function Ie(t){return t==null?yu:function(){return this.querySelectorAll(t)}}function vu(t){return function(){return cr(t.apply(this,arguments))}}function wi(t){typeof t=="function"?t=vu(t):t=Ie(t);for(var e=this._groups,n=e.length,r=[],i=[],o=0;o<n;++o)for(var s=e[o],u=s.length,l,f=0;f<u;++f)(l=s[f])&&(r.push(t.call(l,l.__data__,f,s)),i.push(l));return new Z(r,i)}a();a();function Ee(t){return function(){return this.matches(t)}}function hn(t){return function(e){return e.matches(t)}}var wu=Array.prototype.find;function bu(t){return function(){return wu.call(this.children,t)}}function Mu(){return this.firstElementChild}function bi(t){return this.select(t==null?Mu:bu(typeof t=="function"?t:hn(t)))}a();var Tu=Array.prototype.filter;function ku(){return Array.from(this.children)}function Su(t){return function(){return Tu.call(this.children,t)}}function Mi(t){return this.selectAll(t==null?ku:Su(typeof t=="function"?t:hn(t)))}a();function Ti(t){typeof t!="function"&&(t=Ee(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i<n;++i)for(var o=e[i],s=o.length,u=r[i]=[],l,f=0;f<s;++f)(l=o[f])&&t.call(l,l.__data__,f,o)&&u.push(l);return new Z(r,this._parents)}a();a();a();function pn(t){return new Array(t.length)}function ki(){return new Z(this._enter||this._groups.map(pn),this._parents)}function Re(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}Re.prototype={constructor:Re,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};a();function Si(t){return function(){return t}}function Cu(t,e,n,r,i,o){for(var s=0,u,l=e.length,f=o.length;s<f;++s)(u=e[s])?(u.__data__=o[s],r[s]=u):n[s]=new Re(t,o[s]);for(;s<l;++s)(u=e[s])&&(i[s]=u)}function Nu(t,e,n,r,i,o,s){var u,l,f=new Map,h=e.length,m=o.length,c=new Array(h),d;for(u=0;u<h;++u)(l=e[u])&&(c[u]=d=s.call(l,l.__data__,u,e)+"",f.has(d)?i[u]=l:f.set(d,l));for(u=0;u<m;++u)d=s.call(t,o[u],u,o)+"",(l=f.get(d))?(r[u]=l,l.__data__=o[u],f.delete(d)):n[u]=new Re(t,o[u]);for(u=0;u<h;++u)(l=e[u])&&f.get(c[u])===l&&(i[u]=l)}function Au(t){return t.__data__}function Ci(t,e){if(!arguments.length)return Array.from(this,Au);var n=e?Nu:Cu,r=this._parents,i=this._groups;typeof t!="function"&&(t=Si(t));for(var o=i.length,s=new Array(o),u=new Array(o),l=new Array(o),f=0;f<o;++f){var h=r[f],m=i[f],c=m.length,d=Du(t.call(h,h&&h.__data__,f,r)),v=d.length,b=u[f]=new Array(v),S=s[f]=new Array(v),C=l[f]=new Array(c);n(h,m,b,S,C,d,e);for(var I=0,$=0,N,R;I<v;++I)if(N=b[I]){for(I>=$&&($=I+1);!(R=S[$])&&++$<v;);N._next=R||null}}return s=new Z(s,r),s._enter=u,s._exit=l,s}function Du(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}a();function Ni(){return new Z(this._exit||this._groups.map(pn),this._parents)}a();function Ai(t,e,n){var r=this.enter(),i=this,o=this.exit();return typeof t=="function"?(r=t(r),r&&(r=r.selection())):r=r.append(t+""),e!=null&&(i=e(i),i&&(i=i.selection())),n==null?o.remove():n(o),r&&i?r.merge(i).order():i}a();function Di(t){for(var e=t.selection?t.selection():t,n=this._groups,r=e._groups,i=n.length,o=r.length,s=Math.min(i,o),u=new Array(i),l=0;l<s;++l)for(var f=n[l],h=r[l],m=f.length,c=u[l]=new Array(m),d,v=0;v<m;++v)(d=f[v]||h[v])&&(c[v]=d);for(;l<i;++l)u[l]=n[l];return new Z(u,this._parents)}a();function $i(){for(var t=this._groups,e=-1,n=t.length;++e<n;)for(var r=t[e],i=r.length-1,o=r[i],s;--i>=0;)(s=r[i])&&(o&&s.compareDocumentPosition(o)^4&&o.parentNode.insertBefore(s,o),o=s);return this}a();function Oi(t){t||(t=$u);function e(m,c){return m&&c?t(m.__data__,c.__data__):!m-!c}for(var n=this._groups,r=n.length,i=new Array(r),o=0;o<r;++o){for(var s=n[o],u=s.length,l=i[o]=new Array(u),f,h=0;h<u;++h)(f=s[h])&&(l[h]=f);l.sort(e)}return new Z(i,this._parents).order()}function $u(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}a();function Ii(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this}a();function Ei(){return Array.from(this)}a();function Ri(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var r=t[e],i=0,o=r.length;i<o;++i){var s=r[i];if(s)return s}return null}a();function Yi(){let t=0;for(let e of this)++t;return t}a();function Pi(){return!this.node()}a();function Fi(t){for(var e=this._groups,n=0,r=e.length;n<r;++n)for(var i=e[n],o=0,s=i.length,u;o<s;++o)(u=i[o])&&t.call(u,u.__data__,o,i);return this}a();a();a();var mn="http://www.w3.org/1999/xhtml",hr={svg:"http://www.w3.org/2000/svg",xhtml:mn,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Nt(t){var e=t+="",n=e.indexOf(":");return n>=0&&(e=t.slice(0,n))!=="xmlns"&&(t=t.slice(n+1)),hr.hasOwnProperty(e)?{space:hr[e],local:t}:t}function Ou(t){return function(){this.removeAttribute(t)}}function Iu(t){return function(){this.removeAttributeNS(t.space,t.local)}}function Eu(t,e){return function(){this.setAttribute(t,e)}}function Ru(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function Yu(t,e){return function(){var n=e.apply(this,arguments);n==null?this.removeAttribute(t):this.setAttribute(t,n)}}function Pu(t,e){return function(){var n=e.apply(this,arguments);n==null?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,n)}}function Ui(t,e){var n=Nt(t);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((e==null?n.local?Iu:Ou:typeof e=="function"?n.local?Pu:Yu:n.local?Ru:Eu)(n,e))}a();a();function dn(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function Fu(t){return function(){this.style.removeProperty(t)}}function Uu(t,e,n){return function(){this.style.setProperty(t,e,n)}}function zu(t,e,n){return function(){var r=e.apply(this,arguments);r==null?this.style.removeProperty(t):this.style.setProperty(t,r,n)}}function zi(t,e,n){return arguments.length>1?this.each((e==null?Fu:typeof e=="function"?zu:Uu)(t,e,n??"")):Rt(this.node(),t)}function Rt(t,e){return t.style.getPropertyValue(e)||dn(t).getComputedStyle(t,null).getPropertyValue(e)}a();function Lu(t){return function(){delete this[t]}}function Hu(t,e){return function(){this[t]=e}}function Bu(t,e){return function(){var n=e.apply(this,arguments);n==null?delete this[t]:this[t]=n}}function Li(t,e){return arguments.length>1?this.each((e==null?Lu:typeof e=="function"?Bu:Hu)(t,e)):this.node()[t]}a();function Hi(t){return t.trim().split(/^|\s+/)}function pr(t){return t.classList||new Bi(t)}function Bi(t){this._node=t,this._names=Hi(t.getAttribute("class")||"")}Bi.prototype={add:function(t){var e=this._names.indexOf(t);e<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var e=this._names.indexOf(t);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};function qi(t,e){for(var n=pr(t),r=-1,i=e.length;++r<i;)n.add(e[r])}function Wi(t,e){for(var n=pr(t),r=-1,i=e.length;++r<i;)n.remove(e[r])}function qu(t){return function(){qi(this,t)}}function Wu(t){return function(){Wi(this,t)}}function Vu(t,e){return function(){(e.apply(this,arguments)?qi:Wi)(this,t)}}function Vi(t,e){var n=Hi(t+"");if(arguments.length<2){for(var r=pr(this.node()),i=-1,o=n.length;++i<o;)if(!r.contains(n[i]))return!1;return!0}return this.each((typeof e=="function"?Vu:e?qu:Wu)(n,e))}a();function Xu(){this.textContent=""}function Gu(t){return function(){this.textContent=t}}function Zu(t){return function(){var e=t.apply(this,arguments);this.textContent=e??""}}function Xi(t){return arguments.length?this.each(t==null?Xu:(typeof t=="function"?Zu:Gu)(t)):this.node().textContent}a();function Qu(){this.innerHTML=""}function Ku(t){return function(){this.innerHTML=t}}function Ju(t){return function(){var e=t.apply(this,arguments);this.innerHTML=e??""}}function Gi(t){return arguments.length?this.each(t==null?Qu:(typeof t=="function"?Ju:Ku)(t)):this.node().innerHTML}a();function ju(){this.nextSibling&&this.parentNode.appendChild(this)}function Zi(){return this.each(ju)}a();function tf(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Qi(){return this.each(tf)}a();a();function ef(t){return function(){var e=this.ownerDocument,n=this.namespaceURI;return n===mn&&e.documentElement.namespaceURI===mn?e.createElement(t):e.createElementNS(n,t)}}function nf(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function xn(t){var e=Nt(t);return(e.local?nf:ef)(e)}function Ki(t){var e=typeof t=="function"?t:xn(t);return this.select(function(){return this.appendChild(e.apply(this,arguments))})}a();function rf(){return null}function Ji(t,e){var n=typeof t=="function"?t:xn(t),r=e==null?rf:typeof e=="function"?e:Xt(e);return this.select(function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)})}a();function of(){var t=this.parentNode;t&&t.removeChild(this)}function ji(){return this.each(of)}a();function af(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function sf(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function to(t){return this.select(t?sf:af)}a();function eo(t){return arguments.length?this.property("__data__",t):this.node().__data__}a();function uf(t){return function(e){t.call(this,e,this.__data__)}}function ff(t){return t.trim().split(/^|\s+/).map(function(e){var n="",r=e.indexOf(".");return r>=0&&(n=e.slice(r+1),e=e.slice(0,r)),{type:e,name:n}})}function lf(t){return function(){var e=this.__on;if(e){for(var n=0,r=-1,i=e.length,o;n<i;++n)o=e[n],(!t.type||o.type===t.type)&&o.name===t.name?this.removeEventListener(o.type,o.listener,o.options):e[++r]=o;++r?e.length=r:delete this.__on}}}function cf(t,e,n){return function(){var r=this.__on,i,o=uf(e);if(r){for(var s=0,u=r.length;s<u;++s)if((i=r[s]).type===t.type&&i.name===t.name){this.removeEventListener(i.type,i.listener,i.options),this.addEventListener(i.type,i.listener=o,i.options=n),i.value=e;return}}this.addEventListener(t.type,o,n),i={type:t.type,name:t.name,value:e,listener:o,options:n},r?r.push(i):this.__on=[i]}}function no(t,e,n){var r=ff(t+""),i,o=r.length,s;if(arguments.length<2){var u=this.node().__on;if(u){for(var l=0,f=u.length,h;l<f;++l)for(i=0,h=u[l];i<o;++i)if((s=r[i]).type===h.type&&s.name===h.name)return h.value}return}for(u=e?cf:lf,i=0;i<o;++i)this.each(u(r[i],e,n));return this}a();function ro(t,e,n){var r=dn(t),i=r.CustomEvent;typeof i=="function"?i=new i(e,n):(i=r.document.createEvent("Event"),n?(i.initEvent(e,n.bubbles,n.cancelable),i.detail=n.detail):i.initEvent(e,!1,!1)),t.dispatchEvent(i)}function hf(t,e){return function(){return ro(this,t,e)}}function pf(t,e){return function(){return ro(this,t,e.apply(this,arguments))}}function io(t,e){return this.each((typeof e=="function"?pf:hf)(t,e))}a();function*oo(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var r=t[e],i=0,o=r.length,s;i<o;++i)(s=r[i])&&(yield s)}var mr=[null];function Z(t,e){this._groups=t,this._parents=e}function ao(){return new Z([[document.documentElement]],mr)}function mf(){return this}Z.prototype=ao.prototype={constructor:Z,select:vi,selectAll:wi,selectChild:bi,selectChildren:Mi,filter:Ti,data:Ci,enter:ki,exit:Ni,join:Ai,merge:Di,selection:mf,order:$i,sort:Oi,call:Ii,nodes:Ei,node:Ri,size:Yi,empty:Pi,each:Fi,attr:Ui,style:zi,property:Li,classed:Vi,text:Xi,html:Gi,raise:Zi,lower:Qi,append:Ki,insert:Ji,remove:ji,clone:to,datum:eo,on:no,dispatch:io,[Symbol.iterator]:oo};var At=ao;function df(t){return typeof t=="string"?new Z([[document.querySelector(t)]],[document.documentElement]):new Z([[t]],mr)}a();a();a();a();a();function Gt(t,e,n){t.prototype=e.prototype=n,n.constructor=t}function he(t,e){var n=Object.create(t.prototype);for(var r in e)n[r]=e[r];return n}function Yt(){}var Ye=.7,yn=1/Ye,pe="\\s*([+-]?\\d+)\\s*",Pe="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",wt="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",xf=/^#([0-9a-f]{3,8})$/,_f=new RegExp(`^rgb\\(${pe},${pe},${pe}\\)$`),gf=new RegExp(`^rgb\\(${wt},${wt},${wt}\\)$`),yf=new RegExp(`^rgba\\(${pe},${pe},${pe},${Pe}\\)$`),vf=new RegExp(`^rgba\\(${wt},${wt},${wt},${Pe}\\)$`),wf=new RegExp(`^hsl\\(${Pe},${wt},${wt}\\)$`),bf=new RegExp(`^hsla\\(${Pe},${wt},${wt},${Pe}\\)$`),so={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};Gt(Yt,gt,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:uo,formatHex:uo,formatHex8:Mf,formatHsl:Tf,formatRgb:fo,toString:fo});function uo(){return this.rgb().formatHex()}function Mf(){return this.rgb().formatHex8()}function Tf(){return xo(this).formatHsl()}function fo(){return this.rgb().formatRgb()}function gt(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=xf.exec(t))?(n=e[1].length,e=parseInt(e[1],16),n===6?lo(e):n===3?new nt(e>>8&15|e>>4&240,e>>4&15|e&240,(e&15)<<4|e&15,1):n===8?_n(e>>24&255,e>>16&255,e>>8&255,(e&255)/255):n===4?_n(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|e&240,((e&15)<<4|e&15)/255):null):(e=_f.exec(t))?new nt(e[1],e[2],e[3],1):(e=gf.exec(t))?new nt(e[1]*255/100,e[2]*255/100,e[3]*255/100,1):(e=yf.exec(t))?_n(e[1],e[2],e[3],e[4]):(e=vf.exec(t))?_n(e[1]*255/100,e[2]*255/100,e[3]*255/100,e[4]):(e=wf.exec(t))?po(e[1],e[2]/100,e[3]/100,1):(e=bf.exec(t))?po(e[1],e[2]/100,e[3]/100,e[4]):so.hasOwnProperty(t)?lo(so[t]):t==="transparent"?new nt(NaN,NaN,NaN,0):null}function lo(t){return new nt(t>>16&255,t>>8&255,t&255,1)}function _n(t,e,n,r){return r<=0&&(t=e=n=NaN),new nt(t,e,n,r)}function xr(t){return t instanceof Yt||(t=gt(t)),t?(t=t.rgb(),new nt(t.r,t.g,t.b,t.opacity)):new nt}function me(t,e,n,r){return arguments.length===1?xr(t):new nt(t,e,n,r??1)}function nt(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}Gt(nt,me,he(Yt,{brighter(t){return t=t==null?yn:Math.pow(yn,t),new nt(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=t==null?Ye:Math.pow(Ye,t),new nt(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new nt(Qt(this.r),Qt(this.g),Qt(this.b),vn(this.opacity))},displayable(){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:co,formatHex:co,formatHex8:kf,formatRgb:ho,toString:ho}));function co(){return`#${Zt(this.r)}${Zt(this.g)}${Zt(this.b)}`}function kf(){return`#${Zt(this.r)}${Zt(this.g)}${Zt(this.b)}${Zt((isNaN(this.opacity)?1:this.opacity)*255)}`}function ho(){let t=vn(this.opacity);return`${t===1?"rgb(":"rgba("}${Qt(this.r)}, ${Qt(this.g)}, ${Qt(this.b)}${t===1?")":`, ${t})`}`}function vn(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function Qt(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function Zt(t){return t=Qt(t),(t<16?"0":"")+t.toString(16)}function po(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new _t(t,e,n,r)}function xo(t){if(t instanceof _t)return new _t(t.h,t.s,t.l,t.opacity);if(t instanceof Yt||(t=gt(t)),!t)return new _t;if(t instanceof _t)return t;t=t.rgb();var e=t.r/255,n=t.g/255,r=t.b/255,i=Math.min(e,n,r),o=Math.max(e,n,r),s=NaN,u=o-i,l=(o+i)/2;return u?(e===o?s=(n-r)/u+(n<r)*6:n===o?s=(r-e)/u+2:s=(e-n)/u+4,u/=l<.5?o+i:2-o-i,s*=60):u=l>0&&l<1?0:s,new _t(s,u,l,t.opacity)}function _o(t,e,n,r){return arguments.length===1?xo(t):new _t(t,e,n,r??1)}function _t(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}Gt(_t,_o,he(Yt,{brighter(t){return t=t==null?yn:Math.pow(yn,t),new _t(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=t==null?Ye:Math.pow(Ye,t),new _t(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+(this.h<0)*360,e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,i=2*n-r;return new nt(dr(t>=240?t-240:t+120,i,r),dr(t,i,r),dr(t<120?t+240:t-120,i,r),this.opacity)},clamp(){return new _t(mo(this.h),gn(this.s),gn(this.l),vn(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){let t=vn(this.opacity);return`${t===1?"hsl(":"hsla("}${mo(this.h)}, ${gn(this.s)*100}%, ${gn(this.l)*100}%${t===1?")":`, ${t})`}`}}));function mo(t){return t=(t||0)%360,t<0?t+360:t}function gn(t){return Math.max(0,Math.min(1,t||0))}function dr(t,e,n){return(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)*255}a();a();var go=Math.PI/180,yo=180/Math.PI;var wn=18,vo=.96422,wo=1,bo=.82521,Mo=4/29,de=6/29,To=3*de*de,Sf=de*de*de;function ko(t){if(t instanceof bt)return new bt(t.l,t.a,t.b,t.opacity);if(t instanceof Dt)return So(t);t instanceof nt||(t=xr(t));var e=vr(t.r),n=vr(t.g),r=vr(t.b),i=_r((.2225045*e+.7168786*n+.0606169*r)/wo),o,s;return e===n&&n===r?o=s=i:(o=_r((.4360747*e+.3850649*n+.1430804*r)/vo),s=_r((.0139322*e+.0971045*n+.7141733*r)/bo)),new bt(116*i-16,500*(o-i),200*(i-s),t.opacity)}function wr(t,e,n,r){return arguments.length===1?ko(t):new bt(t,e,n,r??1)}function bt(t,e,n,r){this.l=+t,this.a=+e,this.b=+n,this.opacity=+r}Gt(bt,wr,he(Yt,{brighter(t){return new bt(this.l+wn*(t??1),this.a,this.b,this.opacity)},darker(t){return new bt(this.l-wn*(t??1),this.a,this.b,this.opacity)},rgb(){var t=(this.l+16)/116,e=isNaN(this.a)?t:t+this.a/500,n=isNaN(this.b)?t:t-this.b/200;return e=vo*gr(e),t=wo*gr(t),n=bo*gr(n),new nt(yr(3.1338561*e-1.6168667*t-.4906146*n),yr(-.9787684*e+1.9161415*t+.033454*n),yr(.0719453*e-.2289914*t+1.4052427*n),this.opacity)}}));function _r(t){return t>Sf?Math.pow(t,1/3):t/To+Mo}function gr(t){return t>de?t*t*t:To*(t-Mo)}function yr(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function vr(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function Cf(t){if(t instanceof Dt)return new Dt(t.h,t.c,t.l,t.opacity);if(t instanceof bt||(t=ko(t)),t.a===0&&t.b===0)return new Dt(NaN,0<t.l&&t.l<100?0:NaN,t.l,t.opacity);var e=Math.atan2(t.b,t.a)*yo;return new Dt(e<0?e+360:e,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}function Fe(t,e,n,r){return arguments.length===1?Cf(t):new Dt(t,e,n,r??1)}function Dt(t,e,n,r){this.h=+t,this.c=+e,this.l=+n,this.opacity=+r}function So(t){if(isNaN(t.h))return new bt(t.l,0,0,t.opacity);var e=t.h*go;return new bt(t.l,Math.cos(e)*t.c,Math.sin(e)*t.c,t.opacity)}Gt(Dt,Fe,he(Yt,{brighter(t){return new Dt(this.h,this.c,this.l+wn*(t??1),this.opacity)},darker(t){return new Dt(this.h,this.c,this.l-wn*(t??1),this.opacity)},rgb(){return So(this).rgb()}}));a();a();var xe=t=>()=>t;function Co(t,e){return function(n){return t+n*e}}function Nf(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(r){return Math.pow(t+r*e,n)}}function No(t,e){var n=e-t;return n?Co(t,n>180||n<-180?n-360*Math.round(n/360):n):xe(isNaN(t)?e:t)}function Ao(t){return(t=+t)==1?$t:function(e,n){return n-e?Nf(e,n,t):xe(isNaN(e)?n:e)}}function $t(t,e){var n=e-t;return n?Co(t,n):xe(isNaN(t)?e:t)}function Do(t){return function(e,n){var r=t((e=Fe(e)).h,(n=Fe(n)).h),i=$t(e.c,n.c),o=$t(e.l,n.l),s=$t(e.opacity,n.opacity);return function(u){return e.h=r(u),e.c=i(u),e.l=o(u),e.opacity=s(u),e+""}}}var Af=Do(No),Df=Do($t);a();a();a();a();function br(t,e,n,r,i){var o=t*t,s=o*t;return((1-3*t+3*o-s)*e+(4-6*o+3*s)*n+(1+3*t+3*o-3*s)*r+s*i)/6}function $o(t){var e=t.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,e-1):Math.floor(n*e),i=t[r],o=t[r+1],s=r>0?t[r-1]:2*i-o,u=r<e-1?t[r+2]:2*o-i;return br((n-r/e)*e,s,i,o,u)}}a();function Oo(t){var e=t.length;return function(n){var r=Math.floor(((n%=1)<0?++n:n)*e),i=t[(r+e-1)%e],o=t[r%e],s=t[(r+1)%e],u=t[(r+2)%e];return br((n-r/e)*e,i,o,s,u)}}var Kt=(function t(e){var n=Ao(e);function r(i,o){var s=n((i=me(i)).r,(o=me(o)).r),u=n(i.g,o.g),l=n(i.b,o.b),f=$t(i.opacity,o.opacity);return function(h){return i.r=s(h),i.g=u(h),i.b=l(h),i.opacity=f(h),i+""}}return r.gamma=t,r})(1);function Io(t){return function(e){var n=e.length,r=new Array(n),i=new Array(n),o=new Array(n),s,u;for(s=0;s<n;++s)u=me(e[s]),r[s]=u.r||0,i[s]=u.g||0,o[s]=u.b||0;return r=t(r),i=t(i),o=t(o),u.opacity=1,function(l){return u.r=r(l),u.g=i(l),u.b=o(l),u+""}}}var $f=Io($o),Of=Io(Oo);a();a();function Eo(t,e){e||(e=[]);var n=t?Math.min(e.length,t.length):0,r=e.slice(),i;return function(o){for(i=0;i<n;++i)r[i]=t[i]*(1-o)+e[i]*o;return r}}function Ro(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}function Yo(t,e){var n=e?e.length:0,r=t?Math.min(n,t.length):0,i=new Array(r),o=new Array(n),s;for(s=0;s<r;++s)i[s]=Jt(t[s],e[s]);for(;s<n;++s)o[s]=e[s];return function(u){for(s=0;s<r;++s)o[s]=i[s](u);return o}}a();function Po(t,e){var n=new Date;return t=+t,e=+e,function(r){return n.setTime(t*(1-r)+e*r),n}}a();function rt(t,e){return t=+t,e=+e,function(n){return t*(1-n)+e*n}}a();function Fo(t,e){var n={},r={},i;(t===null||typeof t!="object")&&(t={}),(e===null||typeof e!="object")&&(e={});for(i in e)i in t?n[i]=Jt(t[i],e[i]):r[i]=e[i];return function(o){for(i in n)r[i]=n[i](o);return r}}a();var Tr=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Mr=new RegExp(Tr.source,"g");function If(t){return function(){return t}}function Ef(t){return function(e){return t(e)+""}}function Ue(t,e){var n=Tr.lastIndex=Mr.lastIndex=0,r,i,o,s=-1,u=[],l=[];for(t=t+"",e=e+"";(r=Tr.exec(t))&&(i=Mr.exec(e));)(o=i.index)>n&&(o=e.slice(n,o),u[s]?u[s]+=o:u[++s]=o),(r=r[0])===(i=i[0])?u[s]?u[s]+=i:u[++s]=i:(u[++s]=null,l.push({i:s,x:rt(r,i)})),n=Mr.lastIndex;return n<e.length&&(o=e.slice(n),u[s]?u[s]+=o:u[++s]=o),u.length<2?l[0]?Ef(l[0].x):If(e):(e=l.length,function(f){for(var h=0,m;h<e;++h)u[(m=l[h]).i]=m.x(f);return u.join("")})}function Jt(t,e){var n=typeof e,r;return e==null||n==="boolean"?xe(e):(n==="number"?rt:n==="string"?(r=gt(e))?(e=r,Kt):Ue:e instanceof gt?Kt:e instanceof Date?Po:Ro(e)?Eo:Array.isArray(e)?Yo:typeof e.valueOf!="function"&&typeof e.toString!="function"||isNaN(e)?Fo:rt)(t,e)}a();function kr(t,e){return t=+t,e=+e,function(n){return Math.round(t*(1-n)+e*n)}}a();a();a();var Uo=180/Math.PI,bn={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function Sr(t,e,n,r,i,o){var s,u,l;return(s=Math.sqrt(t*t+e*e))&&(t/=s,e/=s),(l=t*n+e*r)&&(n-=t*l,r-=e*l),(u=Math.sqrt(n*n+r*r))&&(n/=u,r/=u,l/=u),t*r<e*n&&(t=-t,e=-e,l=-l,s=-s),{translateX:i,translateY:o,rotate:Math.atan2(e,t)*Uo,skewX:Math.atan(l)*Uo,scaleX:s,scaleY:u}}var Mn;function zo(t){let e=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(t+"");return e.isIdentity?bn:Sr(e.a,e.b,e.c,e.d,e.e,e.f)}function Lo(t){return t==null?bn:(Mn||(Mn=document.createElementNS("http://www.w3.org/2000/svg","g")),Mn.setAttribute("transform",t),(t=Mn.transform.baseVal.consolidate())?(t=t.matrix,Sr(t.a,t.b,t.c,t.d,t.e,t.f)):bn)}function Ho(t,e,n,r){function i(f){return f.length?f.pop()+" ":""}function o(f,h,m,c,d,v){if(f!==m||h!==c){var b=d.push("translate(",null,e,null,n);v.push({i:b-4,x:rt(f,m)},{i:b-2,x:rt(h,c)})}else(m||c)&&d.push("translate("+m+e+c+n)}function s(f,h,m,c){f!==h?(f-h>180?h+=360:h-f>180&&(f+=360),c.push({i:m.push(i(m)+"rotate(",null,r)-2,x:rt(f,h)})):h&&m.push(i(m)+"rotate("+h+r)}function u(f,h,m,c){f!==h?c.push({i:m.push(i(m)+"skewX(",null,r)-2,x:rt(f,h)}):h&&m.push(i(m)+"skewX("+h+r)}function l(f,h,m,c,d,v){if(f!==m||h!==c){var b=d.push(i(d)+"scale(",null,",",null,")");v.push({i:b-4,x:rt(f,m)},{i:b-2,x:rt(h,c)})}else(m!==1||c!==1)&&d.push(i(d)+"scale("+m+","+c+")")}return function(f,h){var m=[],c=[];return f=t(f),h=t(h),o(f.translateX,f.translateY,h.translateX,h.translateY,m,c),s(f.rotate,h.rotate,m,c),u(f.skewX,h.skewX,m,c),l(f.scaleX,f.scaleY,h.scaleX,h.scaleY,m,c),f=h=null,function(d){for(var v=-1,b=c.length,S;++v<b;)m[(S=c[v]).i]=S.x(d);return m.join("")}}}var Cr=Ho(zo,"px, ","px)","deg)"),Nr=Ho(Lo,", ",")",")");a();a();a();a();function Bo(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)}function jt(t,e){if(!isFinite(t)||t===0)return null;var n=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"),r=t.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+t.slice(n+1)]}function Mt(t){return t=jt(Math.abs(t)),t?t[1]:NaN}a();function qo(t,e){return function(n,r){for(var i=n.length,o=[],s=0,u=t[0],l=0;i>0&&u>0&&(l+u+1>r&&(u=Math.max(1,r-l)),o.push(n.substring(i-=u,i+u)),!((l+=u+1)>r));)u=t[s=(s+1)%t.length];return o.reverse().join(e)}}a();function Wo(t){return function(e){return e.replace(/[0-9]/g,function(n){return t[+n]})}}a();var Rf=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Pt(t){if(!(e=Rf.exec(t)))throw new Error("invalid format: "+t);var e;return new Tn({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}Pt.prototype=Tn.prototype;function Tn(t){this.fill=t.fill===void 0?" ":t.fill+"",this.align=t.align===void 0?">":t.align+"",this.sign=t.sign===void 0?"-":t.sign+"",this.symbol=t.symbol===void 0?"":t.symbol+"",this.zero=!!t.zero,this.width=t.width===void 0?void 0:+t.width,this.comma=!!t.comma,this.precision=t.precision===void 0?void 0:+t.precision,this.trim=!!t.trim,this.type=t.type===void 0?"":t.type+""}Tn.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};a();function Vo(t){t:for(var e=t.length,n=1,r=-1,i;n<e;++n)switch(t[n]){case".":r=i=n;break;case"0":r===0&&(r=n),i=n;break;default:if(!+t[n])break t;r>0&&(r=0);break}return r>0?t.slice(0,r)+t.slice(i+1):t}a();a();var ze;function Xo(t,e){var n=jt(t,e);if(!n)return ze=void 0,t.toPrecision(e);var r=n[0],i=n[1],o=i-(ze=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,s=r.length;return o===s?r:o>s?r+new Array(o-s+1).join("0"):o>0?r.slice(0,o)+"."+r.slice(o):"0."+new Array(1-o).join("0")+jt(t,Math.max(0,e+o-1))[0]}a();function Ar(t,e){var n=jt(t,e);if(!n)return t+"";var r=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")}var Dr={"%":(t,e)=>(t*100).toFixed(e),b:t=>Math.round(t).toString(2),c:t=>t+"",d:Bo,e:(t,e)=>t.toExponential(e),f:(t,e)=>t.toFixed(e),g:(t,e)=>t.toPrecision(e),o:t=>Math.round(t).toString(8),p:(t,e)=>Ar(t*100,e),r:Ar,s:Xo,X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};a();function $r(t){return t}var Go=Array.prototype.map,Zo=["y","z","a","f","p","n","\xB5","m","","k","M","G","T","P","E","Z","Y"];function Qo(t){var e=t.grouping===void 0||t.thousands===void 0?$r:qo(Go.call(t.grouping,Number),t.thousands+""),n=t.currency===void 0?"":t.currency[0]+"",r=t.currency===void 0?"":t.currency[1]+"",i=t.decimal===void 0?".":t.decimal+"",o=t.numerals===void 0?$r:Wo(Go.call(t.numerals,String)),s=t.percent===void 0?"%":t.percent+"",u=t.minus===void 0?"\u2212":t.minus+"",l=t.nan===void 0?"NaN":t.nan+"";function f(m,c){m=Pt(m);var d=m.fill,v=m.align,b=m.sign,S=m.symbol,C=m.zero,I=m.width,$=m.comma,N=m.precision,R=m.trim,w=m.type;w==="n"?($=!0,w="g"):Dr[w]||(N===void 0&&(N=12),R=!0,w="g"),(C||d==="0"&&v==="=")&&(C=!0,d="0",v="=");var Y=(c&&c.prefix!==void 0?c.prefix:"")+(S==="$"?n:S==="#"&&/[boxX]/.test(w)?"0"+w.toLowerCase():""),F=(S==="$"?r:/[%p]/.test(w)?s:"")+(c&&c.suffix!==void 0?c.suffix:""),O=Dr[w],W=/[defgprs%]/.test(w);N=N===void 0?6:/[gprs]/.test(w)?Math.max(1,Math.min(21,N)):Math.max(0,Math.min(20,N));function B(g){var x=Y,_=F,k,M,A;if(w==="c")_=O(g)+_,g="";else{g=+g;var D=g<0||1/g<0;if(g=isNaN(g)?l:O(Math.abs(g),N),R&&(g=Vo(g)),D&&+g==0&&b!=="+"&&(D=!1),x=(D?b==="("?b:u:b==="-"||b==="("?"":b)+x,_=(w==="s"&&!isNaN(g)&&ze!==void 0?Zo[8+ze/3]:"")+_+(D&&b==="("?")":""),W){for(k=-1,M=g.length;++k<M;)if(A=g.charCodeAt(k),48>A||A>57){_=(A===46?i+g.slice(k+1):g.slice(k))+_,g=g.slice(0,k);break}}}$&&!C&&(g=e(g,1/0));var U=x.length+g.length+_.length,z=U<I?new Array(I-U+1).join(d):"";switch($&&C&&(g=e(z+g,z.length?I-_.length:1/0),z=""),v){case"<":g=x+g+_+z;break;case"=":g=x+z+g+_;break;case"^":g=z.slice(0,U=z.length>>1)+x+g+_+z.slice(U);break;default:g=z+x+g+_;break}return o(g)}return B.toString=function(){return m+""},B}function h(m,c){var d=Math.max(-8,Math.min(8,Math.floor(Mt(c)/3)))*3,v=Math.pow(10,-d),b=f((m=Pt(m),m.type="f",m),{suffix:Zo[8+d/3]});return function(S){return b(v*S)}}return{format:f,formatPrefix:h}}var kn,Sn,Cn;Or({thousands:",",grouping:[3],currency:["$",""]});function Or(t){return kn=Qo(t),Sn=kn.format,Cn=kn.formatPrefix,kn}a();a();function Ir(t){return Math.max(0,-Mt(Math.abs(t)))}a();function Er(t,e){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(Mt(e)/3)))*3-Mt(Math.abs(t)))}a();function Rr(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,Mt(e)-Mt(t))+1}a();a();function Yf(t){var e=0,n=t.children,r=n&&n.length;if(!r)e=1;else for(;--r>=0;)e+=n[r].value;t.value=e}function Ko(){return this.eachAfter(Yf)}a();function Jo(t,e){let n=-1;for(let r of this)t.call(e,r,++n,this);return this}a();function jo(t,e){for(var n=this,r=[n],i,o,s=-1;n=r.pop();)if(t.call(e,n,++s,this),i=n.children)for(o=i.length-1;o>=0;--o)r.push(i[o]);return this}a();function ta(t,e){for(var n=this,r=[n],i=[],o,s,u,l=-1;n=r.pop();)if(i.push(n),o=n.children)for(s=0,u=o.length;s<u;++s)r.push(o[s]);for(;n=i.pop();)t.call(e,n,++l,this);return this}a();function ea(t,e){let n=-1;for(let r of this)if(t.call(e,r,++n,this))return r}a();function na(t){return this.eachAfter(function(e){for(var n=+t(e.data)||0,r=e.children,i=r&&r.length;--i>=0;)n+=r[i].value;e.value=n})}a();function ra(t){return this.eachBefore(function(e){e.children&&e.children.sort(t)})}a();function ia(t){for(var e=this,n=Pf(e,t),r=[e];e!==n;)e=e.parent,r.push(e);for(var i=r.length;t!==n;)r.splice(i,0,t),t=t.parent;return r}function Pf(t,e){if(t===e)return t;var n=t.ancestors(),r=e.ancestors(),i=null;for(t=n.pop(),e=r.pop();t===e;)i=t,t=n.pop(),e=r.pop();return i}a();function oa(){for(var t=this,e=[t];t=t.parent;)e.push(t);return e}a();function aa(){return Array.from(this)}a();function sa(){var t=[];return this.eachBefore(function(e){e.children||t.push(e)}),t}a();function ua(){var t=this,e=[];return t.each(function(n){n!==t&&e.push({source:n.parent,target:n})}),e}a();function*fa(){var t=this,e,n=[t],r,i,o;do for(e=n.reverse(),n=[];t=e.pop();)if(yield t,r=t.children)for(i=0,o=r.length;i<o;++i)n.push(r[i]);while(n.length)}function Nn(t,e){t instanceof Map?(t=[void 0,t],e===void 0&&(e=zf)):e===void 0&&(e=Uf);for(var n=new Le(t),r,i=[n],o,s,u,l;r=i.pop();)if((s=e(r.data))&&(l=(s=Array.from(s)).length))for(r.children=s,u=l-1;u>=0;--u)i.push(o=s[u]=new Le(s[u])),o.parent=r,o.depth=r.depth+1;return n.eachBefore(Hf)}function Ff(){return Nn(this).eachBefore(Lf)}function Uf(t){return t.children}function zf(t){return Array.isArray(t)?t[1]:null}function Lf(t){t.data.value!==void 0&&(t.value=t.data.value),t.data=t.data.data}function Hf(t){var e=0;do t.height=e;while((t=t.parent)&&t.height<++e)}function Le(t){this.data=t,this.depth=this.height=0,this.parent=null}Le.prototype=Nn.prototype={constructor:Le,count:Ko,each:Jo,eachAfter:ta,eachBefore:jo,find:ea,sum:na,sort:ra,path:ia,ancestors:oa,descendants:aa,leaves:sa,links:ua,copy:Ff,[Symbol.iterator]:fa};a();a();function la(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)}a();a();function ca(t,e,n,r,i){for(var o=t.children,s,u=-1,l=o.length,f=t.value&&(r-e)/t.value;++u<l;)s=o[u],s.y0=n,s.y1=i,s.x0=e,s.x1=e+=s.value*f}a();function ha(t,e,n,r,i){for(var o=t.children,s,u=-1,l=o.length,f=t.value&&(i-n)/t.value;++u<l;)s=o[u],s.x0=e,s.x1=r,s.y0=n,s.y1=n+=s.value*f}var Bf=(1+Math.sqrt(5))/2;function qf(t,e,n,r,i,o){for(var s=[],u=e.children,l,f,h=0,m=0,c=u.length,d,v,b=e.value,S,C,I,$,N,R,w;h<c;){d=i-n,v=o-r;do S=u[m++].value;while(!S&&m<c);for(C=I=S,R=Math.max(v/d,d/v)/(b*t),w=S*S*R,N=Math.max(I/w,w/C);m<c;++m){if(S+=f=u[m].value,f<C&&(C=f),f>I&&(I=f),w=S*S*R,$=Math.max(I/w,w/C),$>N){S-=f;break}N=$}s.push(l={value:S,dice:d<v,children:u.slice(h,m)}),l.dice?ca(l,n,r,i,b?r+=v*S/b:o):ha(l,n,r,b?n+=d*S/b:i,o),b-=S,h=m}return s}var pa=(function t(e){function n(r,i,o,s,u){qf(e,r,i,o,s,u)}return n.ratio=function(r){return t((r=+r)>1?r:1)},n})(Bf);a();function ma(t){if(typeof t!="function")throw new Error;return t}a();function _e(){return 0}function ge(t){return function(){return t}}function Wf(){var t=pa,e=!1,n=1,r=1,i=[0],o=_e,s=_e,u=_e,l=_e,f=_e;function h(c){return c.x0=c.y0=0,c.x1=n,c.y1=r,c.eachBefore(m),i=[0],e&&c.eachBefore(la),c}function m(c){var d=i[c.depth],v=c.x0+d,b=c.y0+d,S=c.x1-d,C=c.y1-d;S<v&&(v=S=(v+S)/2),C<b&&(b=C=(b+C)/2),c.x0=v,c.y0=b,c.x1=S,c.y1=C,c.children&&(d=i[c.depth+1]=o(c)/2,v+=f(c)-d,b+=s(c)-d,S-=u(c)-d,C-=l(c)-d,S<v&&(v=S=(v+S)/2),C<b&&(b=C=(b+C)/2),t(c,v,b,S,C))}return h.round=function(c){return arguments.length?(e=!!c,h):e},h.size=function(c){return arguments.length?(n=+c[0],r=+c[1],h):[n,r]},h.tile=function(c){return arguments.length?(t=ma(c),h):t},h.padding=function(c){return arguments.length?h.paddingInner(c).paddingOuter(c):h.paddingInner()},h.paddingInner=function(c){return arguments.length?(o=typeof c=="function"?c:ge(+c),h):o},h.paddingOuter=function(c){return arguments.length?h.paddingTop(c).paddingRight(c).paddingBottom(c).paddingLeft(c):h.paddingTop()},h.paddingTop=function(c){return arguments.length?(s=typeof c=="function"?c:ge(+c),h):s},h.paddingRight=function(c){return arguments.length?(u=typeof c=="function"?c:ge(+c),h):u},h.paddingBottom=function(c){return arguments.length?(l=typeof c=="function"?c:ge(+c),h):l},h.paddingLeft=function(c){return arguments.length?(f=typeof c=="function"?c:ge(+c),h):f},h}a();a();a();function Ft(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t);break}return this}var Yr=Symbol("implicit");function He(){var t=new le,e=[],n=[],r=Yr;function i(o){let s=t.get(o);if(s===void 0){if(r!==Yr)return r;t.set(o,s=e.push(o)-1)}return n[s%n.length]}return i.domain=function(o){if(!arguments.length)return e.slice();e=[],t=new le;for(let s of o)t.has(s)||t.set(s,e.push(s)-1);return i},i.range=function(o){return arguments.length?(n=Array.from(o),i):n.slice()},i.unknown=function(o){return arguments.length?(r=o,i):r},i.copy=function(){return He(e,n).unknown(r)},Ft.apply(i,arguments),i}a();function Pr(){var t=He().unknown(void 0),e=t.domain,n=t.range,r=0,i=1,o,s,u=!1,l=0,f=0,h=.5;delete t.unknown;function m(){var c=e().length,d=i<r,v=d?i:r,b=d?r:i;o=(b-v)/Math.max(1,c-l+f*2),u&&(o=Math.floor(o)),v+=(b-v-o*(c-l))*h,s=o*(1-l),u&&(v=Math.round(v),s=Math.round(s));var S=fn(c).map(function(C){return v+o*C});return n(d?S.reverse():S)}return t.domain=function(c){return arguments.length?(e(c),m()):e()},t.range=function(c){return arguments.length?([r,i]=c,r=+r,i=+i,m()):[r,i]},t.rangeRound=function(c){return[r,i]=c,r=+r,i=+i,u=!0,m()},t.bandwidth=function(){return s},t.step=function(){return o},t.round=function(c){return arguments.length?(u=!!c,m()):u},t.padding=function(c){return arguments.length?(l=Math.min(1,f=+c),m()):l},t.paddingInner=function(c){return arguments.length?(l=Math.min(1,c),m()):l},t.paddingOuter=function(c){return arguments.length?(f=+c,m()):f},t.align=function(c){return arguments.length?(h=Math.max(0,Math.min(1,c)),m()):h},t.copy=function(){return Pr(e(),[r,i]).round(u).paddingInner(l).paddingOuter(f).align(h)},Ft.apply(m(),arguments)}a();a();a();function Fr(t){return function(){return t}}a();function Ur(t){return+t}var da=[0,1];function ye(t){return t}function zr(t,e){return(e-=t=+t)?function(n){return(n-t)/e}:Fr(isNaN(e)?NaN:.5)}function Vf(t,e){var n;return t>e&&(n=t,t=e,e=n),function(r){return Math.max(t,Math.min(e,r))}}function Xf(t,e,n){var r=t[0],i=t[1],o=e[0],s=e[1];return i<r?(r=zr(i,r),o=n(s,o)):(r=zr(r,i),o=n(o,s)),function(u){return o(r(u))}}function Gf(t,e,n){var r=Math.min(t.length,e.length)-1,i=new Array(r),o=new Array(r),s=-1;for(t[r]<t[0]&&(t=t.slice().reverse(),e=e.slice().reverse());++s<r;)i[s]=zr(t[s],t[s+1]),o[s]=n(e[s],e[s+1]);return function(u){var l=ur(t,u,1,r)-1;return o[l](i[l](u))}}function An(t,e){return e.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function Zf(){var t=da,e=da,n=Jt,r,i,o,s=ye,u,l,f;function h(){var c=Math.min(t.length,e.length);return s!==ye&&(s=Vf(t[0],t[c-1])),u=c>2?Gf:Xf,l=f=null,m}function m(c){return c==null||isNaN(c=+c)?o:(l||(l=u(t.map(r),e,n)))(r(s(c)))}return m.invert=function(c){return s(i((f||(f=u(e,t.map(r),rt)))(c)))},m.domain=function(c){return arguments.length?(t=Array.from(c,Ur),h()):t.slice()},m.range=function(c){return arguments.length?(e=Array.from(c),h()):e.slice()},m.rangeRound=function(c){return e=Array.from(c),n=kr,h()},m.clamp=function(c){return arguments.length?(s=c?!0:ye,h()):s!==ye},m.interpolate=function(c){return arguments.length?(n=c,h()):n},m.unknown=function(c){return arguments.length?(o=c,m):o},function(c,d){return r=c,i=d,h()}}function Be(){return Zf()(ye,ye)}a();function Lr(t,e,n,r){var i=ce(t,e,n),o;switch(r=Pt(r??",f"),r.type){case"s":{var s=Math.max(Math.abs(t),Math.abs(e));return r.precision==null&&!isNaN(o=Er(i,s))&&(r.precision=o),Cn(r,s)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(o=Rr(i,Math.max(Math.abs(t),Math.abs(e))))&&(r.precision=o-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(o=Ir(i))&&(r.precision=o-(r.type==="%")*2);break}}return Sn(r)}function Qf(t){var e=t.domain;return t.ticks=function(n){var r=e();return un(r[0],r[r.length-1],n??10)},t.tickFormat=function(n,r){var i=e();return Lr(i[0],i[i.length-1],n??10,r)},t.nice=function(n){n==null&&(n=10);var r=e(),i=0,o=r.length-1,s=r[i],u=r[o],l,f,h=10;for(u<s&&(f=s,s=u,u=f,f=i,i=o,o=f);h-- >0;){if(f=Oe(s,u,n),f===l)return r[i]=s,r[o]=u,e(r);if(f>0)s=Math.floor(s/f)*f,u=Math.ceil(u/f)*f;else if(f<0)s=Math.ceil(s*f)/f,u=Math.floor(u*f)/f;else break;l=f}return t},t}function Hr(){var t=Be();return t.copy=function(){return An(t,Hr())},Ft.apply(t,arguments),Qf(t)}a();a();var Br=new Date,qr=new Date;function H(t,e,n,r){function i(o){return t(o=arguments.length===0?new Date:new Date(+o)),o}return i.floor=o=>(t(o=new Date(+o)),o),i.ceil=o=>(t(o=new Date(o-1)),e(o,1),t(o),o),i.round=o=>{let s=i(o),u=i.ceil(o);return o-s<u-o?s:u},i.offset=(o,s)=>(e(o=new Date(+o),s==null?1:Math.floor(s)),o),i.range=(o,s,u)=>{let l=[];if(o=i.ceil(o),u=u==null?1:Math.floor(u),!(o<s)||!(u>0))return l;let f;do l.push(f=new Date(+o)),e(o,u),t(o);while(f<o&&o<s);return l},i.filter=o=>H(s=>{if(s>=s)for(;t(s),!o(s);)s.setTime(s-1)},(s,u)=>{if(s>=s)if(u<0)for(;++u<=0;)for(;e(s,-1),!o(s););else for(;--u>=0;)for(;e(s,1),!o(s););}),n&&(i.count=(o,s)=>(Br.setTime(+o),qr.setTime(+s),t(Br),t(qr),Math.floor(n(Br,qr))),i.every=o=>(o=Math.floor(o),!isFinite(o)||!(o>0)?null:o>1?i.filter(r?s=>r(s)%o===0:s=>i.count(0,s)%o===0):i)),i}var te=H(()=>{},(t,e)=>{t.setTime(+t+e)},(t,e)=>e-t);te.every=t=>(t=Math.floor(t),!isFinite(t)||!(t>0)?null:t>1?H(e=>{e.setTime(Math.floor(e/t)*t)},(e,n)=>{e.setTime(+e+n*t)},(e,n)=>(n-e)/t):te);var xa=te.range;a();var Tt=H(t=>{t.setTime(t-t.getMilliseconds())},(t,e)=>{t.setTime(+t+e*1e3)},(t,e)=>(e-t)/1e3,t=>t.getUTCSeconds()),_a=Tt.range;a();var ve=H(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*1e3)},(t,e)=>{t.setTime(+t+e*6e4)},(t,e)=>(e-t)/6e4,t=>t.getMinutes()),Kf=ve.range,Dn=H(t=>{t.setUTCSeconds(0,0)},(t,e)=>{t.setTime(+t+e*6e4)},(t,e)=>(e-t)/6e4,t=>t.getUTCMinutes()),Jf=Dn.range;a();var we=H(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*1e3-t.getMinutes()*6e4)},(t,e)=>{t.setTime(+t+e*36e5)},(t,e)=>(e-t)/36e5,t=>t.getHours()),jf=we.range,$n=H(t=>{t.setUTCMinutes(0,0,0)},(t,e)=>{t.setTime(+t+e*36e5)},(t,e)=>(e-t)/36e5,t=>t.getUTCHours()),tl=$n.range;a();var Ot=H(t=>t.setHours(0,0,0,0),(t,e)=>t.setDate(t.getDate()+e),(t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*6e4)/864e5,t=>t.getDate()-1),el=Ot.range,We=H(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/864e5,t=>t.getUTCDate()-1),nl=We.range,On=H(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/864e5,t=>Math.floor(t/864e5)),rl=On.range;a();function re(t){return H(e=>{e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)},(e,n)=>{e.setDate(e.getDate()+n*7)},(e,n)=>(n-e-(n.getTimezoneOffset()-e.getTimezoneOffset())*6e4)/6048e5)}var It=re(0),be=re(1),ya=re(2),va=re(3),Ut=re(4),wa=re(5),ba=re(6),Ma=It.range,il=be.range,ol=ya.range,al=va.range,sl=Ut.range,ul=wa.range,fl=ba.range;function ie(t){return H(e=>{e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)},(e,n)=>{e.setUTCDate(e.getUTCDate()+n*7)},(e,n)=>(n-e)/6048e5)}var oe=ie(0),Me=ie(1),Ta=ie(2),ka=ie(3),zt=ie(4),Sa=ie(5),Ca=ie(6),Na=oe.range,ll=Me.range,cl=Ta.range,hl=ka.range,pl=zt.range,ml=Sa.range,dl=Ca.range;a();var Te=H(t=>{t.setDate(1),t.setHours(0,0,0,0)},(t,e)=>{t.setMonth(t.getMonth()+e)},(t,e)=>e.getMonth()-t.getMonth()+(e.getFullYear()-t.getFullYear())*12,t=>t.getMonth()),xl=Te.range,In=H(t=>{t.setUTCDate(1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCMonth(t.getUTCMonth()+e)},(t,e)=>e.getUTCMonth()-t.getUTCMonth()+(e.getUTCFullYear()-t.getUTCFullYear())*12,t=>t.getUTCMonth()),_l=In.range;a();a();var ct=H(t=>{t.setMonth(0,1),t.setHours(0,0,0,0)},(t,e)=>{t.setFullYear(t.getFullYear()+e)},(t,e)=>e.getFullYear()-t.getFullYear(),t=>t.getFullYear());ct.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:H(e=>{e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)},(e,n)=>{e.setFullYear(e.getFullYear()+n*t)});var gl=ct.range,yt=H(t=>{t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCFullYear(t.getUTCFullYear()+e)},(t,e)=>e.getUTCFullYear()-t.getUTCFullYear(),t=>t.getUTCFullYear());yt.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:H(e=>{e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,n)=>{e.setUTCFullYear(e.getUTCFullYear()+n*t)});var yl=yt.range;a();function Da(t,e,n,r,i,o){let s=[[Tt,1,1e3],[Tt,5,5*1e3],[Tt,15,15*1e3],[Tt,30,30*1e3],[o,1,6e4],[o,5,5*6e4],[o,15,15*6e4],[o,30,30*6e4],[i,1,36e5],[i,3,3*36e5],[i,6,6*36e5],[i,12,12*36e5],[r,1,864e5],[r,2,2*864e5],[n,1,6048e5],[e,1,2592e6],[e,3,3*2592e6],[t,1,31536e6]];function u(f,h,m){let c=h<f;c&&([f,h]=[h,f]);let d=m&&typeof m.range=="function"?m:l(f,h,m),v=d?d.range(f,+h+1):[];return c?v.reverse():v}function l(f,h,m){let c=Math.abs(h-f)/m,d=Vt(([,,S])=>S).right(s,c);if(d===s.length)return t.every(ce(f/31536e6,h/31536e6,m));if(d===0)return te.every(Math.max(ce(f,h,m),1));let[v,b]=s[c/s[d-1][2]<s[d][2]/c?d-1:d];return v.every(b)}return[u,l]}var[wl,bl]=Da(yt,In,oe,On,$n,Dn),[Wr,Vr]=Da(ct,Te,It,Ot,we,ve);a();a();function Xr(t){if(0<=t.y&&t.y<100){var e=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return e.setFullYear(t.y),e}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function Gr(t){if(0<=t.y&&t.y<100){var e=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return e.setUTCFullYear(t.y),e}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function Ve(t,e,n){return{y:t,m:e,d:n,H:0,M:0,S:0,L:0}}function Zr(t){var e=t.dateTime,n=t.date,r=t.time,i=t.periods,o=t.days,s=t.shortDays,u=t.months,l=t.shortMonths,f=Xe(i),h=Ge(i),m=Xe(o),c=Ge(o),d=Xe(s),v=Ge(s),b=Xe(u),S=Ge(u),C=Xe(l),I=Ge(l),$={a:A,A:D,b:U,B:z,c:null,d:Ya,e:Ya,f:Wl,g:ec,G:rc,H:Hl,I:Bl,j:ql,L:La,m:Vl,M:Xl,p:V,q:G,Q:Ua,s:za,S:Gl,u:Zl,U:Ql,V:Kl,w:Jl,W:jl,x:null,X:null,y:tc,Y:nc,Z:ic,"%":Fa},N={a:j,A:ht,b:K,B:xt,c:null,d:Pa,e:Pa,f:uc,g:gc,G:vc,H:oc,I:ac,j:sc,L:Ba,m:fc,M:lc,p:ut,q:Q,Q:Ua,s:za,S:cc,u:hc,U:pc,V:mc,w:dc,W:xc,x:null,X:null,y:_c,Y:yc,Z:wc,"%":Fa},R={a:W,A:B,b:g,B:x,c:_,d:Ea,e:Ea,f:Fl,g:Ia,G:Oa,H:Ra,I:Ra,j:El,L:Pl,m:Il,M:Rl,p:O,q:Ol,Q:zl,s:Ll,S:Yl,u:Cl,U:Nl,V:Al,w:Sl,W:Dl,x:k,X:M,y:Ia,Y:Oa,Z:$l,"%":Ul};$.x=w(n,$),$.X=w(r,$),$.c=w(e,$),N.x=w(n,N),N.X=w(r,N),N.c=w(e,N);function w(T,E){return function(P){var y=[],st=-1,q=0,ft=T.length,lt,qt,fi;for(P instanceof Date||(P=new Date(+P));++st<ft;)T.charCodeAt(st)===37&&(y.push(T.slice(q,st)),(qt=$a[lt=T.charAt(++st)])!=null?lt=T.charAt(++st):qt=lt==="e"?" ":"0",(fi=E[lt])&&(lt=fi(P,qt)),y.push(lt),q=st+1);return y.push(T.slice(q,st)),y.join("")}}function Y(T,E){return function(P){var y=Ve(1900,void 0,1),st=F(y,T,P+="",0),q,ft;if(st!=P.length)return null;if("Q"in y)return new Date(y.Q);if("s"in y)return new Date(y.s*1e3+("L"in y?y.L:0));if(E&&!("Z"in y)&&(y.Z=0),"p"in y&&(y.H=y.H%12+y.p*12),y.m===void 0&&(y.m="q"in y?y.q:0),"V"in y){if(y.V<1||y.V>53)return null;"w"in y||(y.w=1),"Z"in y?(q=Gr(Ve(y.y,0,1)),ft=q.getUTCDay(),q=ft>4||ft===0?Me.ceil(q):Me(q),q=We.offset(q,(y.V-1)*7),y.y=q.getUTCFullYear(),y.m=q.getUTCMonth(),y.d=q.getUTCDate()+(y.w+6)%7):(q=Xr(Ve(y.y,0,1)),ft=q.getDay(),q=ft>4||ft===0?be.ceil(q):be(q),q=Ot.offset(q,(y.V-1)*7),y.y=q.getFullYear(),y.m=q.getMonth(),y.d=q.getDate()+(y.w+6)%7)}else("W"in y||"U"in y)&&("w"in y||(y.w="u"in y?y.u%7:"W"in y?1:0),ft="Z"in y?Gr(Ve(y.y,0,1)).getUTCDay():Xr(Ve(y.y,0,1)).getDay(),y.m=0,y.d="W"in y?(y.w+6)%7+y.W*7-(ft+5)%7:y.w+y.U*7-(ft+6)%7);return"Z"in y?(y.H+=y.Z/100|0,y.M+=y.Z%100,Gr(y)):Xr(y)}}function F(T,E,P,y){for(var st=0,q=E.length,ft=P.length,lt,qt;st<q;){if(y>=ft)return-1;if(lt=E.charCodeAt(st++),lt===37){if(lt=E.charAt(st++),qt=R[lt in $a?E.charAt(st++):lt],!qt||(y=qt(T,P,y))<0)return-1}else if(lt!=P.charCodeAt(y++))return-1}return y}function O(T,E,P){var y=f.exec(E.slice(P));return y?(T.p=h.get(y[0].toLowerCase()),P+y[0].length):-1}function W(T,E,P){var y=d.exec(E.slice(P));return y?(T.w=v.get(y[0].toLowerCase()),P+y[0].length):-1}function B(T,E,P){var y=m.exec(E.slice(P));return y?(T.w=c.get(y[0].toLowerCase()),P+y[0].length):-1}function g(T,E,P){var y=C.exec(E.slice(P));return y?(T.m=I.get(y[0].toLowerCase()),P+y[0].length):-1}function x(T,E,P){var y=b.exec(E.slice(P));return y?(T.m=S.get(y[0].toLowerCase()),P+y[0].length):-1}function _(T,E,P){return F(T,e,E,P)}function k(T,E,P){return F(T,n,E,P)}function M(T,E,P){return F(T,r,E,P)}function A(T){return s[T.getDay()]}function D(T){return o[T.getDay()]}function U(T){return l[T.getMonth()]}function z(T){return u[T.getMonth()]}function V(T){return i[+(T.getHours()>=12)]}function G(T){return 1+~~(T.getMonth()/3)}function j(T){return s[T.getUTCDay()]}function ht(T){return o[T.getUTCDay()]}function K(T){return l[T.getUTCMonth()]}function xt(T){return u[T.getUTCMonth()]}function ut(T){return i[+(T.getUTCHours()>=12)]}function Q(T){return 1+~~(T.getUTCMonth()/3)}return{format:function(T){var E=w(T+="",$);return E.toString=function(){return T},E},parse:function(T){var E=Y(T+="",!1);return E.toString=function(){return T},E},utcFormat:function(T){var E=w(T+="",N);return E.toString=function(){return T},E},utcParse:function(T){var E=Y(T+="",!0);return E.toString=function(){return T},E}}}var $a={"-":"",_:" ",0:"0"},tt=/^\s*\d+/,Ml=/^%/,Tl=/[\\^$*+?|[\]().{}]/g;function L(t,e,n){var r=t<0?"-":"",i=(r?-t:t)+"",o=i.length;return r+(o<n?new Array(n-o+1).join(e)+i:i)}function kl(t){return t.replace(Tl,"\\$&")}function Xe(t){return new RegExp("^(?:"+t.map(kl).join("|")+")","i")}function Ge(t){return new Map(t.map((e,n)=>[e.toLowerCase(),n]))}function Sl(t,e,n){var r=tt.exec(e.slice(n,n+1));return r?(t.w=+r[0],n+r[0].length):-1}function Cl(t,e,n){var r=tt.exec(e.slice(n,n+1));return r?(t.u=+r[0],n+r[0].length):-1}function Nl(t,e,n){var r=tt.exec(e.slice(n,n+2));return r?(t.U=+r[0],n+r[0].length):-1}function Al(t,e,n){var r=tt.exec(e.slice(n,n+2));return r?(t.V=+r[0],n+r[0].length):-1}function Dl(t,e,n){var r=tt.exec(e.slice(n,n+2));return r?(t.W=+r[0],n+r[0].length):-1}function Oa(t,e,n){var r=tt.exec(e.slice(n,n+4));return r?(t.y=+r[0],n+r[0].length):-1}function Ia(t,e,n){var r=tt.exec(e.slice(n,n+2));return r?(t.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function $l(t,e,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(n,n+6));return r?(t.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function Ol(t,e,n){var r=tt.exec(e.slice(n,n+1));return r?(t.q=r[0]*3-3,n+r[0].length):-1}function Il(t,e,n){var r=tt.exec(e.slice(n,n+2));return r?(t.m=r[0]-1,n+r[0].length):-1}function Ea(t,e,n){var r=tt.exec(e.slice(n,n+2));return r?(t.d=+r[0],n+r[0].length):-1}function El(t,e,n){var r=tt.exec(e.slice(n,n+3));return r?(t.m=0,t.d=+r[0],n+r[0].length):-1}function Ra(t,e,n){var r=tt.exec(e.slice(n,n+2));return r?(t.H=+r[0],n+r[0].length):-1}function Rl(t,e,n){var r=tt.exec(e.slice(n,n+2));return r?(t.M=+r[0],n+r[0].length):-1}function Yl(t,e,n){var r=tt.exec(e.slice(n,n+2));return r?(t.S=+r[0],n+r[0].length):-1}function Pl(t,e,n){var r=tt.exec(e.slice(n,n+3));return r?(t.L=+r[0],n+r[0].length):-1}function Fl(t,e,n){var r=tt.exec(e.slice(n,n+6));return r?(t.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function Ul(t,e,n){var r=Ml.exec(e.slice(n,n+1));return r?n+r[0].length:-1}function zl(t,e,n){var r=tt.exec(e.slice(n));return r?(t.Q=+r[0],n+r[0].length):-1}function Ll(t,e,n){var r=tt.exec(e.slice(n));return r?(t.s=+r[0],n+r[0].length):-1}function Ya(t,e){return L(t.getDate(),e,2)}function Hl(t,e){return L(t.getHours(),e,2)}function Bl(t,e){return L(t.getHours()%12||12,e,2)}function ql(t,e){return L(1+Ot.count(ct(t),t),e,3)}function La(t,e){return L(t.getMilliseconds(),e,3)}function Wl(t,e){return La(t,e)+"000"}function Vl(t,e){return L(t.getMonth()+1,e,2)}function Xl(t,e){return L(t.getMinutes(),e,2)}function Gl(t,e){return L(t.getSeconds(),e,2)}function Zl(t){var e=t.getDay();return e===0?7:e}function Ql(t,e){return L(It.count(ct(t)-1,t),e,2)}function Ha(t){var e=t.getDay();return e>=4||e===0?Ut(t):Ut.ceil(t)}function Kl(t,e){return t=Ha(t),L(Ut.count(ct(t),t)+(ct(t).getDay()===4),e,2)}function Jl(t){return t.getDay()}function jl(t,e){return L(be.count(ct(t)-1,t),e,2)}function tc(t,e){return L(t.getFullYear()%100,e,2)}function ec(t,e){return t=Ha(t),L(t.getFullYear()%100,e,2)}function nc(t,e){return L(t.getFullYear()%1e4,e,4)}function rc(t,e){var n=t.getDay();return t=n>=4||n===0?Ut(t):Ut.ceil(t),L(t.getFullYear()%1e4,e,4)}function ic(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+L(e/60|0,"0",2)+L(e%60,"0",2)}function Pa(t,e){return L(t.getUTCDate(),e,2)}function oc(t,e){return L(t.getUTCHours(),e,2)}function ac(t,e){return L(t.getUTCHours()%12||12,e,2)}function sc(t,e){return L(1+We.count(yt(t),t),e,3)}function Ba(t,e){return L(t.getUTCMilliseconds(),e,3)}function uc(t,e){return Ba(t,e)+"000"}function fc(t,e){return L(t.getUTCMonth()+1,e,2)}function lc(t,e){return L(t.getUTCMinutes(),e,2)}function cc(t,e){return L(t.getUTCSeconds(),e,2)}function hc(t){var e=t.getUTCDay();return e===0?7:e}function pc(t,e){return L(oe.count(yt(t)-1,t),e,2)}function qa(t){var e=t.getUTCDay();return e>=4||e===0?zt(t):zt.ceil(t)}function mc(t,e){return t=qa(t),L(zt.count(yt(t),t)+(yt(t).getUTCDay()===4),e,2)}function dc(t){return t.getUTCDay()}function xc(t,e){return L(Me.count(yt(t)-1,t),e,2)}function _c(t,e){return L(t.getUTCFullYear()%100,e,2)}function gc(t,e){return t=qa(t),L(t.getUTCFullYear()%100,e,2)}function yc(t,e){return L(t.getUTCFullYear()%1e4,e,4)}function vc(t,e){var n=t.getUTCDay();return t=n>=4||n===0?zt(t):zt.ceil(t),L(t.getUTCFullYear()%1e4,e,4)}function wc(){return"+0000"}function Fa(){return"%"}function Ua(t){return+t}function za(t){return Math.floor(+t/1e3)}var ke,En,Wa,Va,Xa;Qr({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 Qr(t){return ke=Zr(t),En=ke.format,Wa=ke.parse,Va=ke.utcFormat,Xa=ke.utcParse,ke}a();a();a();function Kr(t,e){t=t.slice();var n=0,r=t.length-1,i=t[n],o=t[r],s;return o<i&&(s=n,n=r,r=s,s=i,i=o,o=s),t[n]=e.floor(i),t[r]=e.ceil(o),t}function bc(t){return new Date(t)}function Mc(t){return t instanceof Date?+t:+new Date(+t)}function Ga(t,e,n,r,i,o,s,u,l,f){var h=Be(),m=h.invert,c=h.domain,d=f(".%L"),v=f(":%S"),b=f("%I:%M"),S=f("%I %p"),C=f("%a %d"),I=f("%b %d"),$=f("%B"),N=f("%Y");function R(w){return(l(w)<w?d:u(w)<w?v:s(w)<w?b:o(w)<w?S:r(w)<w?i(w)<w?C:I:n(w)<w?$:N)(w)}return h.invert=function(w){return new Date(m(w))},h.domain=function(w){return arguments.length?c(Array.from(w,Mc)):c().map(bc)},h.ticks=function(w){var Y=c();return t(Y[0],Y[Y.length-1],w??10)},h.tickFormat=function(w,Y){return Y==null?R:f(Y)},h.nice=function(w){var Y=c();return(!w||typeof w.range!="function")&&(w=e(Y[0],Y[Y.length-1],w??10)),w?c(Kr(Y,w)):h},h.copy=function(){return An(h,Ga(t,e,n,r,i,o,s,u,l,f))},h}function Za(){return Ft.apply(Ga(Wr,Vr,ct,Te,It,Ot,we,ve,Tt,En).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}a();a();a();function Qa(t){for(var e=t.length/6|0,n=new Array(e),r=0;r<e;)n[r]="#"+t.slice(r*6,++r*6);return n}var Tc=Qa("4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab");a();a();a();function X(t){return function(){return t}}a();var Jr=Math.abs,it=Math.atan2,Lt=Math.cos,Ka=Math.max,Rn=Math.min,vt=Math.sin,ae=Math.sqrt,et=1e-12,Se=Math.PI,Ze=Se/2,Ce=2*Se;function Ja(t){return t>1?0:t<-1?Se:Math.acos(t)}function jr(t){return t>=1?Ze:t<=-1?-Ze:Math.asin(t)}a();a();a();var ti=Math.PI,ei=2*ti,se=1e-6,kc=ei-se;function ja(t){this._+=t[0];for(let e=1,n=t.length;e<n;++e)this._+=arguments[e]+t[e]}function Sc(t){let e=Math.floor(t);if(!(e>=0))throw new Error(`invalid digits: ${t}`);if(e>15)return ja;let n=10**e;return function(r){this._+=r[0];for(let i=1,o=r.length;i<o;++i)this._+=Math.round(arguments[i]*n)/n+r[i]}}var ue=class{constructor(e){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=e==null?ja:Sc(e)}moveTo(e,n){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+n}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(e,n){this._append`L${this._x1=+e},${this._y1=+n}`}quadraticCurveTo(e,n,r,i){this._append`Q${+e},${+n},${this._x1=+r},${this._y1=+i}`}bezierCurveTo(e,n,r,i,o,s){this._append`C${+e},${+n},${+r},${+i},${this._x1=+o},${this._y1=+s}`}arcTo(e,n,r,i,o){if(e=+e,n=+n,r=+r,i=+i,o=+o,o<0)throw new Error(`negative radius: ${o}`);let s=this._x1,u=this._y1,l=r-e,f=i-n,h=s-e,m=u-n,c=h*h+m*m;if(this._x1===null)this._append`M${this._x1=e},${this._y1=n}`;else if(c>se)if(!(Math.abs(m*l-f*h)>se)||!o)this._append`L${this._x1=e},${this._y1=n}`;else{let d=r-s,v=i-u,b=l*l+f*f,S=d*d+v*v,C=Math.sqrt(b),I=Math.sqrt(c),$=o*Math.tan((ti-Math.acos((b+c-S)/(2*C*I)))/2),N=$/I,R=$/C;Math.abs(N-1)>se&&this._append`L${e+N*h},${n+N*m}`,this._append`A${o},${o},0,0,${+(m*d>h*v)},${this._x1=e+R*l},${this._y1=n+R*f}`}}arc(e,n,r,i,o,s){if(e=+e,n=+n,r=+r,s=!!s,r<0)throw new Error(`negative radius: ${r}`);let u=r*Math.cos(i),l=r*Math.sin(i),f=e+u,h=n+l,m=1^s,c=s?i-o:o-i;this._x1===null?this._append`M${f},${h}`:(Math.abs(this._x1-f)>se||Math.abs(this._y1-h)>se)&&this._append`L${f},${h}`,r&&(c<0&&(c=c%ei+ei),c>kc?this._append`A${r},${r},0,1,${m},${e-u},${n-l}A${r},${r},0,1,${m},${this._x1=f},${this._y1=h}`:c>se&&this._append`A${r},${r},0,${+(c>=ti)},${m},${this._x1=e+r*Math.cos(o)},${this._y1=n+r*Math.sin(o)}`)}rect(e,n,r,i){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+n}h${r=+r}v${+i}h${-r}Z`}toString(){return this._}};function ts(){return new ue}ts.prototype=ue.prototype;function Yn(t){let e=3;return t.digits=function(n){if(!arguments.length)return e;if(n==null)e=null;else{let r=Math.floor(n);if(!(r>=0))throw new RangeError(`invalid digits: ${n}`);e=r}return t},()=>new ue(e)}function Cc(t){return t.innerRadius}function Nc(t){return t.outerRadius}function Ac(t){return t.startAngle}function Dc(t){return t.endAngle}function $c(t){return t&&t.padAngle}function Oc(t,e,n,r,i,o,s,u){var l=n-t,f=r-e,h=s-i,m=u-o,c=m*l-h*f;if(!(c*c<et))return c=(h*(e-o)-m*(t-i))/c,[t+c*l,e+c*f]}function Pn(t,e,n,r,i,o,s){var u=t-n,l=e-r,f=(s?o:-o)/ae(u*u+l*l),h=f*l,m=-f*u,c=t+h,d=e+m,v=n+h,b=r+m,S=(c+v)/2,C=(d+b)/2,I=v-c,$=b-d,N=I*I+$*$,R=i-o,w=c*b-v*d,Y=($<0?-1:1)*ae(Ka(0,R*R*N-w*w)),F=(w*$-I*Y)/N,O=(-w*I-$*Y)/N,W=(w*$+I*Y)/N,B=(-w*I+$*Y)/N,g=F-S,x=O-C,_=W-S,k=B-C;return g*g+x*x>_*_+k*k&&(F=W,O=B),{cx:F,cy:O,x01:-h,y01:-m,x11:F*(i/R-1),y11:O*(i/R-1)}}function Ic(){var t=Cc,e=Nc,n=X(0),r=null,i=Ac,o=Dc,s=$c,u=null,l=Yn(f);function f(){var h,m,c=+t.apply(this,arguments),d=+e.apply(this,arguments),v=i.apply(this,arguments)-Ze,b=o.apply(this,arguments)-Ze,S=Jr(b-v),C=b>v;if(u||(u=h=l()),d<c&&(m=d,d=c,c=m),!(d>et))u.moveTo(0,0);else if(S>Ce-et)u.moveTo(d*Lt(v),d*vt(v)),u.arc(0,0,d,v,b,!C),c>et&&(u.moveTo(c*Lt(b),c*vt(b)),u.arc(0,0,c,b,v,C));else{var I=v,$=b,N=v,R=b,w=S,Y=S,F=s.apply(this,arguments)/2,O=F>et&&(r?+r.apply(this,arguments):ae(c*c+d*d)),W=Rn(Jr(d-c)/2,+n.apply(this,arguments)),B=W,g=W,x,_;if(O>et){var k=jr(O/c*vt(F)),M=jr(O/d*vt(F));(w-=k*2)>et?(k*=C?1:-1,N+=k,R-=k):(w=0,N=R=(v+b)/2),(Y-=M*2)>et?(M*=C?1:-1,I+=M,$-=M):(Y=0,I=$=(v+b)/2)}var A=d*Lt(I),D=d*vt(I),U=c*Lt(R),z=c*vt(R);if(W>et){var V=d*Lt($),G=d*vt($),j=c*Lt(N),ht=c*vt(N),K;if(S<Se)if(K=Oc(A,D,j,ht,V,G,U,z)){var xt=A-K[0],ut=D-K[1],Q=V-K[0],T=G-K[1],E=1/vt(Ja((xt*Q+ut*T)/(ae(xt*xt+ut*ut)*ae(Q*Q+T*T)))/2),P=ae(K[0]*K[0]+K[1]*K[1]);B=Rn(W,(c-P)/(E-1)),g=Rn(W,(d-P)/(E+1))}else B=g=0}Y>et?g>et?(x=Pn(j,ht,A,D,d,g,C),_=Pn(V,G,U,z,d,g,C),u.moveTo(x.cx+x.x01,x.cy+x.y01),g<W?u.arc(x.cx,x.cy,g,it(x.y01,x.x01),it(_.y01,_.x01),!C):(u.arc(x.cx,x.cy,g,it(x.y01,x.x01),it(x.y11,x.x11),!C),u.arc(0,0,d,it(x.cy+x.y11,x.cx+x.x11),it(_.cy+_.y11,_.cx+_.x11),!C),u.arc(_.cx,_.cy,g,it(_.y11,_.x11),it(_.y01,_.x01),!C))):(u.moveTo(A,D),u.arc(0,0,d,I,$,!C)):u.moveTo(A,D),!(c>et)||!(w>et)?u.lineTo(U,z):B>et?(x=Pn(U,z,V,G,c,-B,C),_=Pn(A,D,j,ht,c,-B,C),u.lineTo(x.cx+x.x01,x.cy+x.y01),B<W?u.arc(x.cx,x.cy,B,it(x.y01,x.x01),it(_.y01,_.x01),!C):(u.arc(x.cx,x.cy,B,it(x.y01,x.x01),it(x.y11,x.x11),!C),u.arc(0,0,c,it(x.cy+x.y11,x.cx+x.x11),it(_.cy+_.y11,_.cx+_.x11),C),u.arc(_.cx,_.cy,B,it(_.y11,_.x11),it(_.y01,_.x01),!C))):u.arc(0,0,c,R,N,C)}if(u.closePath(),h)return u=null,h+""||null}return f.centroid=function(){var h=(+t.apply(this,arguments)+ +e.apply(this,arguments))/2,m=(+i.apply(this,arguments)+ +o.apply(this,arguments))/2-Se/2;return[Lt(m)*h,vt(m)*h]},f.innerRadius=function(h){return arguments.length?(t=typeof h=="function"?h:X(+h),f):t},f.outerRadius=function(h){return arguments.length?(e=typeof h=="function"?h:X(+h),f):e},f.cornerRadius=function(h){return arguments.length?(n=typeof h=="function"?h:X(+h),f):n},f.padRadius=function(h){return arguments.length?(r=h==null?null:typeof h=="function"?h:X(+h),f):r},f.startAngle=function(h){return arguments.length?(i=typeof h=="function"?h:X(+h),f):i},f.endAngle=function(h){return arguments.length?(o=typeof h=="function"?h:X(+h),f):o},f.padAngle=function(h){return arguments.length?(s=typeof h=="function"?h:X(+h),f):s},f.context=function(h){return arguments.length?(u=h??null,f):u},f}a();a();var jv=Array.prototype.slice;function Fn(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}a();function es(t){this._context=t}es.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._context.lineTo(t,e);break}}};function ni(t){return new es(t)}a();function ns(t){return t[0]}function rs(t){return t[1]}function Ec(t,e){var n=X(!0),r=null,i=ni,o=null,s=Yn(u);t=typeof t=="function"?t:t===void 0?ns:X(t),e=typeof e=="function"?e:e===void 0?rs:X(e);function u(l){var f,h=(l=Fn(l)).length,m,c=!1,d;for(r==null&&(o=i(d=s())),f=0;f<=h;++f)!(f<h&&n(m=l[f],f,l))===c&&((c=!c)?o.lineStart():o.lineEnd()),c&&o.point(+t(m,f,l),+e(m,f,l));if(d)return o=null,d+""||null}return u.x=function(l){return arguments.length?(t=typeof l=="function"?l:X(+l),u):t},u.y=function(l){return arguments.length?(e=typeof l=="function"?l:X(+l),u):e},u.defined=function(l){return arguments.length?(n=typeof l=="function"?l:X(!!l),u):n},u.curve=function(l){return arguments.length?(i=l,r!=null&&(o=i(r)),u):i},u.context=function(l){return arguments.length?(l==null?r=o=null:o=i(r=l),u):r},u}a();a();function is(t,e){return e<t?-1:e>t?1:e>=t?0:NaN}a();function os(t){return t}function Rc(){var t=os,e=is,n=null,r=X(0),i=X(Ce),o=X(0);function s(u){var l,f=(u=Fn(u)).length,h,m,c=0,d=new Array(f),v=new Array(f),b=+r.apply(this,arguments),S=Math.min(Ce,Math.max(-Ce,i.apply(this,arguments)-b)),C,I=Math.min(Math.abs(S)/f,o.apply(this,arguments)),$=I*(S<0?-1:1),N;for(l=0;l<f;++l)(N=v[d[l]=l]=+t(u[l],l,u))>0&&(c+=N);for(e!=null?d.sort(function(R,w){return e(v[R],v[w])}):n!=null&&d.sort(function(R,w){return n(u[R],u[w])}),l=0,m=c?(S-f*$)/c:0;l<f;++l,b=C)h=d[l],N=v[h],C=b+(N>0?N*m:0)+$,v[h]={data:u[h],index:l,value:N,startAngle:b,endAngle:C,padAngle:I};return v}return s.value=function(u){return arguments.length?(t=typeof u=="function"?u:X(+u),s):t},s.sortValues=function(u){return arguments.length?(e=u,n=null,s):e},s.sort=function(u){return arguments.length?(n=u,e=null,s):n},s.startAngle=function(u){return arguments.length?(r=typeof u=="function"?u:X(+u),s):r},s.endAngle=function(u){return arguments.length?(i=typeof u=="function"?u:X(+u),s):i},s.padAngle=function(u){return arguments.length?(o=typeof u=="function"?u:X(+u),s):o},s}a();function Ne(t,e,n){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+e)/6,(t._y0+4*t._y1+n)/6)}function Qe(t){this._context=t}Qe.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:Ne(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:Ne(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function Yc(t){return new Qe(t)}a();a();var Un=class{constructor(e,n){this._context=e,this._x=n}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(e,n){switch(e=+e,n=+n,this._point){case 0:{this._point=1,this._line?this._context.lineTo(e,n):this._context.moveTo(e,n);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+e)/2,this._y0,this._x0,n,e,n):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+n)/2,e,this._y0,e,n);break}}this._x0=e,this._y0=n}};function Pc(t){return new Un(t,!0)}function Fc(t){return new Un(t,!1)}a();a();function dt(){}function as(t){this._context=t}as.prototype={areaStart:dt,areaEnd:dt,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);break}}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x2=t,this._y2=e;break;case 1:this._point=2,this._x3=t,this._y3=e;break;case 2:this._point=3,this._x4=t,this._y4=e,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+e)/6);break;default:Ne(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function Uc(t){return new as(t)}a();function ss(t){this._context=t}ss.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||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+t)/6,r=(this._y0+4*this._y1+e)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:Ne(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function zc(t){return new ss(t)}a();function us(t,e){this._basis=new Qe(t),this._beta=e}us.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var t=this._x,e=this._y,n=t.length-1;if(n>0)for(var r=t[0],i=e[0],o=t[n]-r,s=e[n]-i,u=-1,l;++u<=n;)l=u/n,this._basis.point(this._beta*t[u]+(1-this._beta)*(r+l*o),this._beta*e[u]+(1-this._beta)*(i+l*s));this._x=this._y=null,this._basis.lineEnd()},point:function(t,e){this._x.push(+t),this._y.push(+e)}};var Lc=(function t(e){function n(r){return e===1?new Qe(r):new us(r,e)}return n.beta=function(r){return t(+r)},n})(.85);a();a();function Ae(t,e,n){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-e),t._y2+t._k*(t._y1-n),t._x2,t._y2)}function zn(t,e){this._context=t,this._k=(1-e)/6}zn.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:Ae(this,this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2,this._x1=t,this._y1=e;break;case 2:this._point=3;default:Ae(this,t,e);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var Hc=(function t(e){function n(r){return new zn(r,e)}return n.tension=function(r){return t(+r)},n})(0);function Ln(t,e){this._context=t,this._k=(1-e)/6}Ln.prototype={areaStart:dt,areaEnd:dt,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);break}}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:Ae(this,t,e);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var Bc=(function t(e){function n(r){return new Ln(r,e)}return n.tension=function(r){return t(+r)},n})(0);a();function Hn(t,e){this._context=t,this._k=(1-e)/6}Hn.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||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Ae(this,t,e);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var qc=(function t(e){function n(r){return new Hn(r,e)}return n.tension=function(r){return t(+r)},n})(0);a();a();function Ke(t,e,n){var r=t._x1,i=t._y1,o=t._x2,s=t._y2;if(t._l01_a>et){var u=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,l=3*t._l01_a*(t._l01_a+t._l12_a);r=(r*u-t._x0*t._l12_2a+t._x2*t._l01_2a)/l,i=(i*u-t._y0*t._l12_2a+t._y2*t._l01_2a)/l}if(t._l23_a>et){var f=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,h=3*t._l23_a*(t._l23_a+t._l12_a);o=(o*f+t._x1*t._l23_2a-e*t._l12_2a)/h,s=(s*f+t._y1*t._l23_2a-n*t._l12_2a)/h}t._context.bezierCurveTo(r,i,o,s,t._x2,t._y2)}function fs(t,e){this._context=t,this._alpha=e}fs.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);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3;default:Ke(this,t,e);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var Wc=(function t(e){function n(r){return e?new fs(r,e):new zn(r,0)}return n.alpha=function(r){return t(+r)},n})(.5);function ls(t,e){this._context=t,this._alpha=e}ls.prototype={areaStart:dt,areaEnd:dt,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);break}}},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:Ke(this,t,e);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var Vc=(function t(e){function n(r){return e?new ls(r,e):new Ln(r,0)}return n.alpha=function(r){return t(+r)},n})(.5);a();function cs(t,e){this._context=t,this._alpha=e}cs.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||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Ke(this,t,e);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var Xc=(function t(e){function n(r){return e?new cs(r,e):new Hn(r,0)}return n.alpha=function(r){return t(+r)},n})(.5);a();function hs(t){this._context=t}hs.prototype={areaStart:dt,areaEnd:dt,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(t,e){t=+t,e=+e,this._point?this._context.lineTo(t,e):(this._point=1,this._context.moveTo(t,e))}};function Gc(t){return new hs(t)}a();function ps(t){return t<0?-1:1}function ms(t,e,n){var r=t._x1-t._x0,i=e-t._x1,o=(t._y1-t._y0)/(r||i<0&&-0),s=(n-t._y1)/(i||r<0&&-0),u=(o*i+s*r)/(r+i);return(ps(o)+ps(s))*Math.min(Math.abs(o),Math.abs(s),.5*Math.abs(u))||0}function ds(t,e){var n=t._x1-t._x0;return n?(3*(t._y1-t._y0)/n-e)/2:e}function ri(t,e,n){var r=t._x0,i=t._y0,o=t._x1,s=t._y1,u=(o-r)/3;t._context.bezierCurveTo(r+u,i+u*e,o-u,s-u*n,o,s)}function Bn(t){this._context=t}Bn.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:ri(this,this._t0,ds(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){var n=NaN;if(t=+t,e=+e,!(t===this._x1&&e===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,ri(this,ds(this,n=ms(this,t,e)),n);break;default:ri(this,this._t0,n=ms(this,t,e));break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=n}}};function xs(t){this._context=new _s(t)}(xs.prototype=Object.create(Bn.prototype)).point=function(t,e){Bn.prototype.point.call(this,e,t)};function _s(t){this._context=t}_s.prototype={moveTo:function(t,e){this._context.moveTo(e,t)},closePath:function(){this._context.closePath()},lineTo:function(t,e){this._context.lineTo(e,t)},bezierCurveTo:function(t,e,n,r,i,o){this._context.bezierCurveTo(e,t,r,n,o,i)}};function Zc(t){return new Bn(t)}function Qc(t){return new xs(t)}a();function ys(t){this._context=t}ys.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var t=this._x,e=this._y,n=t.length;if(n)if(this._line?this._context.lineTo(t[0],e[0]):this._context.moveTo(t[0],e[0]),n===2)this._context.lineTo(t[1],e[1]);else for(var r=gs(t),i=gs(e),o=0,s=1;s<n;++o,++s)this._context.bezierCurveTo(r[0][o],i[0][o],r[1][o],i[1][o],t[s],e[s]);(this._line||this._line!==0&&n===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(t,e){this._x.push(+t),this._y.push(+e)}};function gs(t){var e,n=t.length-1,r,i=new Array(n),o=new Array(n),s=new Array(n);for(i[0]=0,o[0]=2,s[0]=t[0]+2*t[1],e=1;e<n-1;++e)i[e]=1,o[e]=4,s[e]=4*t[e]+2*t[e+1];for(i[n-1]=2,o[n-1]=7,s[n-1]=8*t[n-1]+t[n],e=1;e<n;++e)r=i[e]/o[e-1],o[e]-=r,s[e]-=r*s[e-1];for(i[n-1]=s[n-1]/o[n-1],e=n-2;e>=0;--e)i[e]=(s[e]-i[e+1])/o[e];for(o[n-1]=(t[n]+i[n-1])/2,e=0;e<n-1;++e)o[e]=2*t[e+1]-i[e+1];return[i,o]}function Kc(t){return new ys(t)}a();function qn(t,e){this._context=t,this._t=e}qn.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&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,e),this._context.lineTo(t,e);else{var n=this._x*(1-this._t)+t*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,e)}break}}this._x=t,this._y=e}};function Jc(t){return new qn(t,.5)}function jc(t){return new qn(t,0)}function th(t){return new qn(t,1)}a();a();a();a();a();var eh={value:()=>{}};function ws(){for(var t=0,e=arguments.length,n={},r;t<e;++t){if(!(r=arguments[t]+"")||r in n||/[\s.]/.test(r))throw new Error("illegal type: "+r);n[r]=[]}return new Wn(n)}function Wn(t){this._=t}function nh(t,e){return t.trim().split(/^|\s+/).map(function(n){var r="",i=n.indexOf(".");if(i>=0&&(r=n.slice(i+1),n=n.slice(0,i)),n&&!e.hasOwnProperty(n))throw new Error("unknown type: "+n);return{type:n,name:r}})}Wn.prototype=ws.prototype={constructor:Wn,on:function(t,e){var n=this._,r=nh(t+"",n),i,o=-1,s=r.length;if(arguments.length<2){for(;++o<s;)if((i=(t=r[o]).type)&&(i=rh(n[i],t.name)))return i;return}if(e!=null&&typeof e!="function")throw new Error("invalid callback: "+e);for(;++o<s;)if(i=(t=r[o]).type)n[i]=vs(n[i],t.name,e);else if(e==null)for(i in n)n[i]=vs(n[i],t.name,null);return this},copy:function(){var t={},e=this._;for(var n in e)t[n]=e[n].slice();return new Wn(t)},call:function(t,e){if((i=arguments.length-2)>0)for(var n=new Array(i),r=0,i,o;r<i;++r)n[r]=arguments[r+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(o=this._[t],r=0,i=o.length;r<i;++r)o[r].value.apply(e,n)},apply:function(t,e,n){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(e,n)}};function rh(t,e){for(var n=0,r=t.length,i;n<r;++n)if((i=t[n]).name===e)return i.value}function vs(t,e,n){for(var r=0,i=t.length;r<i;++r)if(t[r].name===e){t[r]=eh,t=t.slice(0,r).concat(t.slice(r+1));break}return n!=null&&t.push({name:e,value:n}),t}var ii=ws;a();a();a();a();a();a();a();var De=0,je=0,Je=0,Ms=1e3,Vn,tn,Xn=0,fe=0,Gn=0,en=typeof performance=="object"&&performance.now?performance:Date,Ts=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function rn(){return fe||(Ts(ih),fe=en.now()+Gn)}function ih(){fe=0}function nn(){this._call=this._time=this._next=null}nn.prototype=Zn.prototype={constructor:nn,restart:function(t,e,n){if(typeof t!="function")throw new TypeError("callback is not a function");n=(n==null?rn():+n)+(e==null?0:+e),!this._next&&tn!==this&&(tn?tn._next=this:Vn=this,tn=this),this._call=t,this._time=n,oi()},stop:function(){this._call&&(this._call=null,this._time=1/0,oi())}};function Zn(t,e,n){var r=new nn;return r.restart(t,e,n),r}function ks(){rn(),++De;for(var t=Vn,e;t;)(e=fe-t._time)>=0&&t._call.call(void 0,e),t=t._next;--De}function bs(){fe=(Xn=en.now())+Gn,De=je=0;try{ks()}finally{De=0,ah(),fe=0}}function oh(){var t=en.now(),e=t-Xn;e>Ms&&(Gn-=e,Xn=t)}function ah(){for(var t,e=Vn,n,r=1/0;e;)e._call?(r>e._time&&(r=e._time),t=e,e=e._next):(n=e._next,e._next=null,e=t?t._next=n:Vn=n);tn=t,oi(r)}function oi(t){if(!De){je&&(je=clearTimeout(je));var e=t-fe;e>24?(t<1/0&&(je=setTimeout(bs,t-en.now()-Gn)),Je&&(Je=clearInterval(Je))):(Je||(Xn=en.now(),Je=setInterval(oh,Ms)),De=1,Ts(bs))}}a();function Qn(t,e,n){var r=new nn;return e=e==null?0:+e,r.restart(i=>{r.stop(),t(i+e)},e,n),r}var sh=ii("start","end","cancel","interrupt"),uh=[],Ns=0,Ss=1,Jn=2,Kn=3,Cs=4,jn=5,on=6;function Ht(t,e,n,r,i,o){var s=t.__transition;if(!s)t.__transition={};else if(n in s)return;fh(t,n,{name:e,index:r,group:i,on:sh,tween:uh,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:Ns})}function an(t,e){var n=J(t,e);if(n.state>Ns)throw new Error("too late; already scheduled");return n}function ot(t,e){var n=J(t,e);if(n.state>Kn)throw new Error("too late; already running");return n}function J(t,e){var n=t.__transition;if(!n||!(n=n[e]))throw new Error("transition not found");return n}function fh(t,e,n){var r=t.__transition,i;r[e]=n,n.timer=Zn(o,0,n.time);function o(f){n.state=Ss,n.timer.restart(s,n.delay,n.time),n.delay<=f&&s(f-n.delay)}function s(f){var h,m,c,d;if(n.state!==Ss)return l();for(h in r)if(d=r[h],d.name===n.name){if(d.state===Kn)return Qn(s);d.state===Cs?(d.state=on,d.timer.stop(),d.on.call("interrupt",t,t.__data__,d.index,d.group),delete r[h]):+h<e&&(d.state=on,d.timer.stop(),d.on.call("cancel",t,t.__data__,d.index,d.group),delete r[h])}if(Qn(function(){n.state===Kn&&(n.state=Cs,n.timer.restart(u,n.delay,n.time),u(f))}),n.state=Jn,n.on.call("start",t,t.__data__,n.index,n.group),n.state===Jn){for(n.state=Kn,i=new Array(c=n.tween.length),h=0,m=-1;h<c;++h)(d=n.tween[h].value.call(t,t.__data__,n.index,n.group))&&(i[++m]=d);i.length=m+1}}function u(f){for(var h=f<n.duration?n.ease.call(null,f/n.duration):(n.timer.restart(l),n.state=jn,1),m=-1,c=i.length;++m<c;)i[m].call(t,h);n.state===jn&&(n.on.call("end",t,t.__data__,n.index,n.group),l())}function l(){n.state=on,n.timer.stop(),delete r[e];for(var f in r)return;delete t.__transition}}function tr(t,e){var n=t.__transition,r,i,o=!0,s;if(n){e=e==null?null:e+"";for(s in n){if((r=n[s]).name!==e){o=!1;continue}i=r.state>Jn&&r.state<jn,r.state=on,r.timer.stop(),r.on.call(i?"interrupt":"cancel",t,t.__data__,r.index,r.group),delete n[s]}o&&delete t.__transition}}function As(t){return this.each(function(){tr(this,t)})}a();a();a();a();function lh(t,e){var n,r;return function(){var i=ot(this,t),o=i.tween;if(o!==n){r=n=o;for(var s=0,u=r.length;s<u;++s)if(r[s].name===e){r=r.slice(),r.splice(s,1);break}}i.tween=r}}function ch(t,e,n){var r,i;if(typeof n!="function")throw new Error;return function(){var o=ot(this,t),s=o.tween;if(s!==r){i=(r=s).slice();for(var u={name:e,value:n},l=0,f=i.length;l<f;++l)if(i[l].name===e){i[l]=u;break}l===f&&i.push(u)}o.tween=i}}function Ds(t,e){var n=this._id;if(t+="",arguments.length<2){for(var r=J(this.node(),n).tween,i=0,o=r.length,s;i<o;++i)if((s=r[i]).name===t)return s.value;return null}return this.each((e==null?lh:ch)(n,t,e))}function $e(t,e,n){var r=t._id;return t.each(function(){var i=ot(this,r);(i.value||(i.value={}))[e]=n.apply(this,arguments)}),function(i){return J(i,r).value[e]}}a();function er(t,e){var n;return(typeof e=="number"?rt:e instanceof gt?Kt:(n=gt(e))?(e=n,Kt):Ue)(t,e)}function hh(t){return function(){this.removeAttribute(t)}}function ph(t){return function(){this.removeAttributeNS(t.space,t.local)}}function mh(t,e,n){var r,i=n+"",o;return function(){var s=this.getAttribute(t);return s===i?null:s===r?o:o=e(r=s,n)}}function dh(t,e,n){var r,i=n+"",o;return function(){var s=this.getAttributeNS(t.space,t.local);return s===i?null:s===r?o:o=e(r=s,n)}}function xh(t,e,n){var r,i,o;return function(){var s,u=n(this),l;return u==null?void this.removeAttribute(t):(s=this.getAttribute(t),l=u+"",s===l?null:s===r&&l===i?o:(i=l,o=e(r=s,u)))}}function _h(t,e,n){var r,i,o;return function(){var s,u=n(this),l;return u==null?void this.removeAttributeNS(t.space,t.local):(s=this.getAttributeNS(t.space,t.local),l=u+"",s===l?null:s===r&&l===i?o:(i=l,o=e(r=s,u)))}}function $s(t,e){var n=Nt(t),r=n==="transform"?Nr:er;return this.attrTween(t,typeof e=="function"?(n.local?_h:xh)(n,r,$e(this,"attr."+t,e)):e==null?(n.local?ph:hh)(n):(n.local?dh:mh)(n,r,e))}a();function gh(t,e){return function(n){this.setAttribute(t,e.call(this,n))}}function yh(t,e){return function(n){this.setAttributeNS(t.space,t.local,e.call(this,n))}}function vh(t,e){var n,r;function i(){var o=e.apply(this,arguments);return o!==r&&(n=(r=o)&&yh(t,o)),n}return i._value=e,i}function wh(t,e){var n,r;function i(){var o=e.apply(this,arguments);return o!==r&&(n=(r=o)&&gh(t,o)),n}return i._value=e,i}function Os(t,e){var n="attr."+t;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(e==null)return this.tween(n,null);if(typeof e!="function")throw new Error;var r=Nt(t);return this.tween(n,(r.local?vh:wh)(r,e))}a();function bh(t,e){return function(){an(this,t).delay=+e.apply(this,arguments)}}function Mh(t,e){return e=+e,function(){an(this,t).delay=e}}function Is(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?bh:Mh)(e,t)):J(this.node(),e).delay}a();function Th(t,e){return function(){ot(this,t).duration=+e.apply(this,arguments)}}function kh(t,e){return e=+e,function(){ot(this,t).duration=e}}function Es(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?Th:kh)(e,t)):J(this.node(),e).duration}a();function Sh(t,e){if(typeof e!="function")throw new Error;return function(){ot(this,t).ease=e}}function Rs(t){var e=this._id;return arguments.length?this.each(Sh(e,t)):J(this.node(),e).ease}a();function Ch(t,e){return function(){var n=e.apply(this,arguments);if(typeof n!="function")throw new Error;ot(this,t).ease=n}}function Ys(t){if(typeof t!="function")throw new Error;return this.each(Ch(this._id,t))}a();function Ps(t){typeof t!="function"&&(t=Ee(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i<n;++i)for(var o=e[i],s=o.length,u=r[i]=[],l,f=0;f<s;++f)(l=o[f])&&t.call(l,l.__data__,f,o)&&u.push(l);return new at(r,this._parents,this._name,this._id)}a();function Fs(t){if(t._id!==this._id)throw new Error;for(var e=this._groups,n=t._groups,r=e.length,i=n.length,o=Math.min(r,i),s=new Array(r),u=0;u<o;++u)for(var l=e[u],f=n[u],h=l.length,m=s[u]=new Array(h),c,d=0;d<h;++d)(c=l[d]||f[d])&&(m[d]=c);for(;u<r;++u)s[u]=e[u];return new at(s,this._parents,this._name,this._id)}a();function Nh(t){return(t+"").trim().split(/^|\s+/).every(function(e){var n=e.indexOf(".");return n>=0&&(e=e.slice(0,n)),!e||e==="start"})}function Ah(t,e,n){var r,i,o=Nh(e)?an:ot;return function(){var s=o(this,t),u=s.on;u!==r&&(i=(r=u).copy()).on(e,n),s.on=i}}function Us(t,e){var n=this._id;return arguments.length<2?J(this.node(),n).on.on(t):this.each(Ah(n,t,e))}a();function Dh(t){return function(){var e=this.parentNode;for(var n in this.__transition)if(+n!==t)return;e&&e.removeChild(this)}}function zs(){return this.on("end.remove",Dh(this._id))}a();function Ls(t){var e=this._name,n=this._id;typeof t!="function"&&(t=Xt(t));for(var r=this._groups,i=r.length,o=new Array(i),s=0;s<i;++s)for(var u=r[s],l=u.length,f=o[s]=new Array(l),h,m,c=0;c<l;++c)(h=u[c])&&(m=t.call(h,h.__data__,c,u))&&("__data__"in h&&(m.__data__=h.__data__),f[c]=m,Ht(f[c],e,n,c,f,J(h,n)));return new at(o,this._parents,e,n)}a();function Hs(t){var e=this._name,n=this._id;typeof t!="function"&&(t=Ie(t));for(var r=this._groups,i=r.length,o=[],s=[],u=0;u<i;++u)for(var l=r[u],f=l.length,h,m=0;m<f;++m)if(h=l[m]){for(var c=t.call(h,h.__data__,m,l),d,v=J(h,n),b=0,S=c.length;b<S;++b)(d=c[b])&&Ht(d,e,n,b,c,v);o.push(c),s.push(h)}return new at(o,s,e,n)}a();var $h=At.prototype.constructor;function Bs(){return new $h(this._groups,this._parents)}a();function Oh(t,e){var n,r,i;return function(){var o=Rt(this,t),s=(this.style.removeProperty(t),Rt(this,t));return o===s?null:o===n&&s===r?i:i=e(n=o,r=s)}}function qs(t){return function(){this.style.removeProperty(t)}}function Ih(t,e,n){var r,i=n+"",o;return function(){var s=Rt(this,t);return s===i?null:s===r?o:o=e(r=s,n)}}function Eh(t,e,n){var r,i,o;return function(){var s=Rt(this,t),u=n(this),l=u+"";return u==null&&(l=u=(this.style.removeProperty(t),Rt(this,t))),s===l?null:s===r&&l===i?o:(i=l,o=e(r=s,u))}}function Rh(t,e){var n,r,i,o="style."+e,s="end."+o,u;return function(){var l=ot(this,t),f=l.on,h=l.value[o]==null?u||(u=qs(e)):void 0;(f!==n||i!==h)&&(r=(n=f).copy()).on(s,i=h),l.on=r}}function Ws(t,e,n){var r=(t+="")=="transform"?Cr:er;return e==null?this.styleTween(t,Oh(t,r)).on("end.style."+t,qs(t)):typeof e=="function"?this.styleTween(t,Eh(t,r,$e(this,"style."+t,e))).each(Rh(this._id,t)):this.styleTween(t,Ih(t,r,e),n).on("end.style."+t,null)}a();function Yh(t,e,n){return function(r){this.style.setProperty(t,e.call(this,r),n)}}function Ph(t,e,n){var r,i;function o(){var s=e.apply(this,arguments);return s!==i&&(r=(i=s)&&Yh(t,s,n)),r}return o._value=e,o}function Vs(t,e,n){var r="style."+(t+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(e==null)return this.tween(r,null);if(typeof e!="function")throw new Error;return this.tween(r,Ph(t,e,n??""))}a();function Fh(t){return function(){this.textContent=t}}function Uh(t){return function(){var e=t(this);this.textContent=e??""}}function Xs(t){return this.tween("text",typeof t=="function"?Uh($e(this,"text",t)):Fh(t==null?"":t+""))}a();function zh(t){return function(e){this.textContent=t.call(this,e)}}function Lh(t){var e,n;function r(){var i=t.apply(this,arguments);return i!==n&&(e=(n=i)&&zh(i)),e}return r._value=t,r}function Gs(t){var e="text";if(arguments.length<1)return(e=this.tween(e))&&e._value;if(t==null)return this.tween(e,null);if(typeof t!="function")throw new Error;return this.tween(e,Lh(t))}a();function Zs(){for(var t=this._name,e=this._id,n=nr(),r=this._groups,i=r.length,o=0;o<i;++o)for(var s=r[o],u=s.length,l,f=0;f<u;++f)if(l=s[f]){var h=J(l,e);Ht(l,t,n,f,s,{time:h.time+h.delay+h.duration,delay:0,duration:h.duration,ease:h.ease})}return new at(r,this._parents,t,n)}a();function Qs(){var t,e,n=this,r=n._id,i=n.size();return new Promise(function(o,s){var u={value:s},l={value:function(){--i===0&&o()}};n.each(function(){var f=ot(this,r),h=f.on;h!==t&&(e=(t=h).copy(),e._.cancel.push(u),e._.interrupt.push(u),e._.end.push(l)),f.on=e}),i===0&&o()})}var Hh=0;function at(t,e,n,r){this._groups=t,this._parents=e,this._name=n,this._id=r}function Ks(t){return At().transition(t)}function nr(){return++Hh}var Et=At.prototype;at.prototype=Ks.prototype={constructor:at,select:Ls,selectAll:Hs,selectChild:Et.selectChild,selectChildren:Et.selectChildren,filter:Ps,merge:Fs,selection:Bs,transition:Zs,call:Et.call,nodes:Et.nodes,node:Et.node,size:Et.size,empty:Et.empty,each:Et.each,on:Us,attr:$s,attrTween:Os,style:Ws,styleTween:Vs,text:Xs,textTween:Gs,remove:zs,tween:Ds,delay:Is,duration:Es,ease:Rs,easeVarying:Ys,end:Qs,[Symbol.iterator]:Et[Symbol.iterator]};a();a();function rr(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}var Bh={time:null,delay:0,duration:250,ease:rr};function qh(t,e){for(var n;!(n=t.__transition)||!(n=n[e]);)if(!(t=t.parentNode))throw new Error(`transition ${e} not found`);return n}function Js(t){var e,n;t instanceof at?(e=t._id,t=t._name):(e=nr(),(n=Bh).time=rn(),t=t==null?null:t+"");for(var r=this._groups,i=r.length,o=0;o<i;++o)for(var s=r[o],u=s.length,l,f=0;f<u;++f)(l=s[f])&&Ht(l,t,e,f,s,n||qh(l,e));return new at(r,this._parents,t,e)}At.prototype.interrupt=As;At.prototype.transition=Js;a();a();a();var{abs:$T,max:OT,min:IT}=Math;function js(t){return[+t[0],+t[1]]}function Wh(t){return[js(t[0]),js(t[1])]}var ET={name:"x",handles:["w","e"].map(ai),input:function(t,e){return t==null?null:[[+t[0],e[0][1]],[+t[1],e[1][1]]]},output:function(t){return t&&[t[0][0],t[1][0]]}},RT={name:"y",handles:["n","s"].map(ai),input:function(t,e){return t==null?null:[[e[0][0],+t[0]],[e[1][0],+t[1]]]},output:function(t){return t&&[t[0][1],t[1][1]]}},YT={name:"xy",handles:["n","w","e","s","nw","ne","sw","se"].map(ai),input:function(t){return t==null?null:Wh(t)},output:function(t){return t}};function ai(t){return{type:t}}a();a();a();a();a();function Bt(t,e,n){this.k=t,this.x=e,this.y=n}Bt.prototype={constructor:Bt,scale:function(t){return t===1?this:new Bt(this.k*t,this.x,this.y)},translate:function(t,e){return t===0&e===0?this:new Bt(this.k,this.x+this.k*t,this.y+this.k*e)},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 si=new Bt(1,0,0);ui.prototype=Bt.prototype;function ui(t){for(;!t.__zoom;)if(!(t=t.parentNode))return si;return t.__zoom}a();export{li as a,pt as b,Gh as c,hi as d,pi as e,xu as f,_u as g,df as h,Af as i,Sn as j,Nn as k,Wf as l,He as m,Pr as n,Hr as o,te as p,Tt as q,ve as r,we as s,Ot as t,It as u,be as v,ya as w,va as x,Ut as y,wa as z,ba as A,Te as B,En as C,Za as D,Tc as E,Ic as F,ni as G,Ec as H,Rc as I,Pc as J,Fc as K,Yc as L,Uc as M,zc as N,Lc as O,Hc as P,Bc as Q,qc as R,Wc as S,Vc as T,Xc as U,Gc as V,Zc as W,Qc as X,Kc as Y,Jc as Z,jc as _,th as $};
|
|
2
|
+
//# sourceMappingURL=chunk-CXXG5KL5.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as t,b as u,c as n,d as i,e as o,g as l,h as d,w as h,y as m}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as t,b as u,c as n,d as i,e as o,g as l,h as d,w as h,y as m}from"./chunk-WL4ZMLPV.js";import{d as s}from"./chunk-SOAWGUAD.js";s();var A=class extends m{static{t(this,"ArchitectureTokenBuilder")}constructor(){super(["architecture"])}},C=class extends h{static{t(this,"ArchitectureValueConverter")}runCustomConverter(c,r,a){if(c.name==="ARCH_ICON")return r.replace(/[()]/g,"").trim();if(c.name==="ARCH_TEXT_ICON")return r.replace(/["()]/g,"");if(c.name==="ARCH_TITLE"){let e=r.replace(/^\[|]$/g,"").trim();return(e.startsWith('"')&&e.endsWith('"')||e.startsWith("'")&&e.endsWith("'"))&&(e=e.slice(1,-1),e=e.replace(/\\"/g,'"').replace(/\\'/g,"'")),e.trim()}}},v={parser:{TokenBuilder:t(()=>new A,"TokenBuilder"),ValueConverter:t(()=>new C,"ValueConverter")}};function p(c=o){let r=i(n(c),l),a=i(u({shared:r}),d,v);return r.ServiceRegistry.register(a),{shared:r,Architecture:a}}t(p,"createArchitectureServices");export{v as a,p as b};
|
|
2
|
+
//# sourceMappingURL=chunk-FKTXB6RJ.js.map
|