Files
Snap.Hutao.Docs/assets/mermaid.esm.min.e3b5d21d.js

1256 lines
1.1 MiB
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
/*! For license information please see mermaid.esm.min.mjs.LICENSE.txt */var E6={2536:(M,z,p)=>{M=p.nmd(M);var b=function(){var u=function(Me,Ke,Xe,Ee){for(Xe=Xe||{},Ee=Me.length;Ee--;Xe[Me[Ee]]=Ke);return Xe},_=[1,6],y=[1,7],E=[1,8],A=[1,9],w=[1,16],F=[1,11],B=[1,12],P=[1,13],G=[1,14],K=[1,15],J=[1,27],ht=[1,33],tt=[1,34],kt=[1,35],at=[1,36],ut=[1,37],vt=[1,72],Zt=[1,73],Gt=[1,74],xt=[1,75],It=[1,76],wt=[1,77],mt=[1,78],X=[1,38],ot=[1,39],j=[1,40],yt=[1,41],Y=[1,42],bt=[1,43],Ct=[1,44],$t=[1,45],be=[1,46],We=[1,47],xe=[1,48],pe=[1,49],_e=[1,50],Ae=[1,51],De=[1,52],me=[1,53],wn=[1,54],de=[1,55],Qe=[1,56],ne=[1,57],Qt=[1,59],se=[1,60],Et=[1,61],te=[1,62],st=[1,63],dt=[1,64],ft=[1,65],Mt=[1,66],fe=[1,67],Le=[1,68],en=[1,69],qe=[24,52],sn=[24,44,46,47,48,49,50,51,52,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84],Fe=[15,24,44,46,47,48,49,50,51,52,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84],Te=[1,94],Oe=[1,95],Be=[1,96],ge=[1,97],re=[15,24,52],An=[7,8,9,10,18,22,25,26,27,28],Ie=[15,24,43,52],ln=[15,24,43,52,86,87,89,90],Ye=[15,43],fn=[44,46,47,48,49,50,51,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84],Jn={trace:function(){},yy:{},symbols_:{error:2,start:3,mermaidDoc:4,direction:5,directive:6,direction_tb:7,direction_bt:8,direction_rl:9,direction_lr:10,graphConfig:11,openDirective:12,typeDirective:13,closeDirective:14,NEWLINE:15,":":16,argDirective:17,open_directive:18,type_directive:19,arg_directive:20,close_directive:21,C4_CONTEXT:22,statements:23,EOF:24,C4_CONTAINER:25,C4_COMPONENT:26,C4_DYNAMIC:27,C4_DEPLOYMENT:28,otherStatements:29,diagramStatements:30,otherStatement:31,title:32,accDescription:33,acc_title:34,acc_title_value:35,acc_descr:36,acc_descr_value:37,acc_descr_multiline_value:38,boundaryStatement:39,boundaryStartStatement:40,boundaryStopStatement:41,boundaryStart:42,LBRACE:43,ENTERPRISE_BOUNDARY:44,attributes:45,SYSTEM_BOUNDARY:46,BOUNDARY:47,CONTAINER_BOUNDARY:48,NODE:49,NODE_L:50,NODE_R:51,RBRACE:52,diagramStatement:53,PERSON:54,PERSON_EXT:55,SYSTEM:56,SYSTEM_DB:57,SYSTEM_QUEUE:58,SYSTEM_EXT:59,SYSTEM_EXT_DB:60,SYSTEM_EXT_QUEUE:61,CONTAINER:62,CONTAINER_DB:63,CONTAINER_QUEUE:64,CONTAINER_EXT:65,CONTAINER_EXT_DB:66,CONTAINER_EXT_QUEUE:67,COMPONENT:68,COMPONENT_DB:69,COMPONENT_QUEUE:70,COMPONENT_EXT:71,COMPONENT_EXT_DB:72,COMPONENT_EXT_QUEUE:73,REL:74,BIREL:75,REL_U:76,REL_D:77,REL_L:78,REL_R:79,REL_B:80,REL_INDEX:81,UPDATE_EL_STYLE:82,UPDATE_REL_STYLE:83,UPDATE_LAYOUT_CONFIG:84,attribute:85,STR:86,STR_KEY:87,STR_VALUE:88,ATTRIBUTE:89,ATTRIBUTE_EMPTY:90,$accept:0,$end:1},terminals_:{2:"error",7:"direction_tb",8:"direction_bt",9:"direction_rl",10:"direction_lr",15:"NEWLINE",16:":",18:"open_directive",19:"type_directive",20:"arg_directive",21:"close_directive",22:"C4_CONTEXT",24:"EOF",25:"C4_CONTAINER",26:"C4_COMPONENT",27:"C4_DYNAMIC",28:"C4_DEPLOYMENT",32:"title",33:"accDescription",34:"acc_title",35:"acc_title_value",36:"acc_descr",37:"acc_descr_value",38:"acc_descr_multiline_value",43:"LBRACE",44:"ENTERPRISE_BOUNDARY",46:"SYSTEM_BOUNDARY",47:"BOUNDARY",48:"CONTAINER_BOUNDARY",49:"NODE",50:"NODE_L",51:"NODE_R",52:"RBRACE",54:"PERSON",55:"PERSON_EXT",56:"SYSTEM",57:"SYSTEM_DB",58:"SYSTEM_QUEUE",59:"SYSTEM_EXT",60:"SYSTEM_EXT_DB",61:"SYSTEM_EXT_QUEUE",62:"CONTAINER",63:"CONTAINER_DB",64:"CONTAINER_QUEUE",65:"CONTAINER_EXT",66:"CONTAINER_EXT_DB",67:"CONTAINER_EXT_QUEUE",68:"COMPONENT",69:"COMPONENT_DB",70:"COMPONENT_QUEUE",71:"COMPONENT_EXT",72:"COMPONENT_EXT_DB",73:"COMPONENT_EXT_QUEUE",74:"REL",75:"BIREL",76:"REL_U",77:"REL_D",78:"REL_L",79:"REL_R",80:"REL_B",81:"REL_INDEX",82:"UPDATE_EL_STYLE",83:"UPDATE_REL_STYLE",84:"UPDATE_LAYOUT_CONFIG",86:"STR",87:"STR_KEY",88:"STR_VALUE",89:"ATTRIBUTE",90:"ATTRIBUTE_EMPTY"},productions_:[0,[3,1],[3,1],[3,2],[5,1],[5,1],[5,1],[5,1],[4,1],[6,4],[6,6],[12,1],[13,1],[17,1],[14,1],[11,4],[11,4],[11,4],[11,4],[11,4],[23,1],[23,1],[23,2],[29,1],[29,2],[29,3],[31,1],[31,1],[31,2],[31,2],[31,1],[39,3],[40,3],[40,3],[40,4],[42,2],[42,2],[42,2],[42,2],[42,2],[42,2],[42,2],[41,1],[30,1],[30,2],[30,3],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,1],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[45,1],[45,2],[85,1],[85,2],[85,1],[85,1]],performAction:function(Me,Ke,Xe,Ee,mn,At,vr){var Yt=At.length-1;switch(mn){case 4:Ee.setDirection("TB");break;case 5:Ee.setDirection("BT");break;case 6:Ee.setDirection("RL");break;case 7:Ee.setDirection("LR");break;case 11:console.log("open_directive: ",At[Yt]),Ee.parseDirective("%%{","open_directive");break;case 12:break;case 13:At[Yt]=At[Yt].trim().replace(/'/g,'"'),console.log("arg_directive: ",At[Yt]),Ee.parseDirective(At[Yt],"arg_directive");break;case 14:console.log("close_directive: ",At[Yt]),Ee.parseDirective("}%%","close_directive","c4Context");break;case 15:case 16:case 17:case 18:case 19:Ee.setC4Type(At[Yt-3]);break;case 26:Ee.setTitle(At[Yt].substring(6)),this.$=At[Yt].substring(6);break;case 27:Ee.setAccDescription(At[Yt].substring(15)),this.$=At[Yt].substring(15);break;case 28:this.$=At[Yt].trim(),Ee.setTitle(this.$);break;case 29:case 30:this.$=At[Yt].trim(),Ee.setAccDescription(this.$);break;case 35:case 36:console.log(At[Yt-1],JSON.stringify(At[Yt])),At[Yt].splice(2,0,"ENTERPRISE"),Ee.addPersonOrSystemBoundary(...At[Yt]),this.$=At[Yt];break;case 37:console.log(At[Yt-1],JSON.stringify(At[Yt])),Ee.addPersonOrSystemBoundary(...At[Yt]),this.$=At[Yt];break;case 38:console.log(At[Yt-1],JSON.stringify(At[Yt])),At[Yt].splice(2,0,"CONTAINER"),Ee.addContainerBoundary(...At[Yt]),this.$=At[Yt];break;case 39:console.log(At[Yt-1],JSON.stringify(At[Yt])),Ee.addDeploymentNode("node",...At[Yt]),this.$=At[Yt];break;case 40:console.log(At[Yt-1],JSON.stringify(At[Yt])),Ee.addDeploymentNode("nodeL",...At[Yt]),this.$=At[Yt];break;case 41:console.log(At[Yt-1],JSON.stringify(At[Yt])),Ee.addDeploymentNode("nodeR",...At[Yt]),this.$=At[Yt];break;case 42:Ee.popBoundaryParseStack();break;case 46:console.log(At[Yt-1],JSON.stringify(At[Yt])),Ee.addPersonOrSystem("person",...At[Yt]),this.$=At[Yt];break;case 47:console.log(At[Yt-1],JSON.stringify(At[Yt])),Ee.addPersonOrSystem("external_person",...At[Yt]),this.$=At[Yt];break;case 48:console.log(At[Yt-1],JSON.stringify(At[Yt])),Ee.addPersonOrSystem("system",...At[Yt]),this.$=At[Yt];break;case 49:console.log(At[Yt-1],JSON.stringify(At[Yt])),Ee.addPersonOrSystem("system_db",...At[Yt]),this.$=At[Yt];break;case 50:console.log(At[Yt-1],JSON.stringify(At[Yt])),Ee.addPersonOrSystem("system_queue",...At[Yt]),this.$=At[Yt];break;case 51:console.log(At[Yt-1],JSON.stringify(At[Yt])),Ee.addPersonOrSystem("external_system",...At[Yt]),this.$=At[Yt];break;case 52:console.log(At[Yt-1],JSON.stringify(At[Yt])),Ee.addPersonOrSystem("external_system_db",...At[Yt]),this.$=At[Yt];break;case 53:console.log(At[Yt-1],JSON.stringify(At[Yt])),Ee.addPersonOrSystem("external_system_queue",...At[Yt]),this.$=At[Yt];break;case 54:console.log(At[Yt-1],JSON.stringify(At[Yt])),Ee.addContainer("container",...At[Yt]),this.$=At[Yt];break;case 55:console.log(At[Yt-1],JSON.stringify(At[Yt])),Ee.addContainer("container_db",...At[Yt]),this.$=At[Yt];break;case 56:console.log(At[Yt-1],JSON.stringify(At[Yt])),Ee.addContainer("container_queue",...At[Yt]),this.$=At[Yt];break;case 57:console.log(At[Yt-1],JSON.stringify(At[Yt])),Ee.addContainer("external_container",...At[Yt]),this.$=At[Yt];break;case 58:console.log(At[Yt-1],JSON.stringify(At[Yt])),Ee.addContainer("external_container_db",...At[Yt]),this.$=At[Yt];break;case 59:console.log(At[Yt-1],JSON.stringify(At[Yt])),Ee.addContainer("external_container_queue",...At[Yt]),this.$=At[Yt];break;case 60:console.log(At[Yt-1],JSON.stringify(At[Yt])),Ee.addComponent("component",...At[Yt]),this.$=At[Yt];break;case 61:console.log(At[Yt-1],JSON.stringify(At[Yt])),Ee.addComponent("component_db",...At[Yt]),this.$=At[Yt];break;case 62:console.log(At[Yt-1],JSON.stringify(At[Yt])),Ee.addComponent("component_queue",...At[Yt]),this.$=At[Yt];break;case 63:console.log(At[Yt-1],JSON.stringify(At[Yt])),Ee.addComponent("external_component",...At[Yt]),this.$=At[Yt];break;case 64:console.log(At[Yt-1],JSON.stringify(At[Yt])),Ee.addComponent("external_component_db",...At[Yt]),this.$=At[Yt];break;case 65:console.log(At[Yt-1],JSON.stringify(At[Yt])),Ee.addComponent("external_component_queue",...At[Yt]),this.$=At[Yt];break;case 67:console.log(At[Yt-1],JSON.stringify(At[Yt])),Ee.addRel("rel",...At[Yt]),this.$=At[Yt];break;case 68:console.log(At[Yt-1],JSON.stringify(At[Yt])),Ee.addRel("birel",...At[Yt]),this.$=At[Yt];break;case 69:console.log(At[Yt-1],JSON.stringify(At[Yt])),Ee.addRel("rel_u",...At[Yt]),this.$=At[Yt];break;case 70:console.log(At[Yt-1],JSON.stringify(At[Yt])),Ee.addRel("rel_d",...At[Yt]),this.$=At[Yt];break;case 71:console.log(At[Yt-1],JSON.stringify(At[Yt])),Ee.addRel("rel_l",...At[Yt]),this.$=At[Yt];break;case 72:console.log(At[Yt-1],JSON.stringify(At[Yt])),Ee.addRel("rel_r",...At[Yt]),this.$=At[Yt];break;case 73:console.log(At[Yt-1],JSON.stringify(At[Yt])),Ee.addRel("rel_b",...At[Yt]),this.$=At[Yt];break;case 74:console.log(At[Yt-1],JSON.stringify(At[Yt])),At[Yt].splice(0,1),Ee.addRel("rel",...At[Yt]),this.$=At[Yt];break;case 75:console.log(At[Yt-1],JSON.stringify(At[Yt])),Ee.updateElStyle("update_el_style",...At[Yt]),this.$=At[Yt];break;case 76:console.log(At[Yt-1],JSON.stringify(At[Yt])),Ee.updateRelStyle("update_rel_style",...At[Yt]),this.$=At[Yt];break;case 77:console.log(At[Yt-1],JSON.stringify(At[Yt])),Ee.updateLayoutConfig("update_layout_config",...At[Yt]),this.$=At[Yt];break;case 78:console.log("PUSH ATTRIBUTE: ",At[Yt]),this.$=[At[Yt]];break;case 79:console.log("PUSH ATTRIBUTE: ",At[Yt-1]),At[Yt].unshift(At[Yt-1]),this.$=At[Yt];break;case 80:case 82:this.$=At[Yt].trim();break;case 81:console.log("kv: ",At[Yt-1],At[Yt]);let Un={};Un[At[Yt-1].trim()]=At[Yt].trim(),this.$=Un;break;case 83:this.$=""}},table:[{3:1,4:2,5:3,6:4,7:_,8:y,9:E,10:A,11:5,12:10,18:w,22:F,25:B,26:P,27:G,28:K},{1:[3]},{1:[2,1]},{1:[2,2]},{3:17,4:2,5:3,6:4,7:_,8:y,9:E,10:A,11:5,12:10,18:w,22:F,25:B,26:P,27:G,28:K},{1:[2,8]},{1:[2,4]},{1:[2,5]},{1:[2,6]},{1:[2,7]},{13:18,19:[1,19]},{15:[1,20]},{15:[1,21]},{15:[1,22]},{15:[1,23]},{15:[1,24]},{19:[2,11]},{1:[2,3]},{14:25,16:[1,26],21:J},u([16,21],[2,12]),{23:28,29:29,30:30,31:31,32:ht,33:tt,34:kt,36:at,38:ut,39:58,40:70,42:71,44:vt,46:Zt,47:Gt,48:xt,49:It,50:wt,51:mt,53:32,54:X,55:ot,56:j,57:yt,58:Y,59:bt,60:Ct,61:$t,62:be,63:We,64:xe,65:pe,66:_e,67:Ae,68:De,69:me,70:wn,71:de,72:Qe,73:ne,74:Qt,75:se,76:Et,77:te,78:st,79:dt,80:ft,81:Mt,82:fe,83:Le,84:en},{23:79,29:29,30:30,31:31,32:ht,33:tt,34:kt,36:at,38:ut,39:58,40:70,42:71,44:vt,46:Zt,47:Gt,48:xt,49:It,50:wt,51:mt,53:32,54:X,55:ot,56:j,57:yt,58:Y,59:bt,60:Ct,61:$t,62:be,63:We,64:xe,65:pe,66:_e,67:Ae,68:De,69:me,70:wn,71:de,72:Qe,73:ne,74:Qt,75:se,76:Et,77:te,78:st,79:dt,80:ft,81:Mt,82:fe,83:Le,84:en},{23:80,29:29,30:30,31:31,32:ht,33:tt,34:kt,36:at,38:ut,39:58,40:70,42:71,44:vt,46:Zt,47:Gt,48:xt,49:It,50:wt,51:mt,53:32,54:X,55:ot,56:j,57:yt,58:Y,59:bt,60:Ct,61:$t,62:be,63:We,64:xe,65:pe,66:_e,67:Ae,68:De,69:me,70:wn,71:de,72:Qe,73:ne,74:Qt,75:se,76:Et,77:te,78:st,79:dt,80:ft,81:Mt,82:fe,83:Le,84:en},{23:81,29:29,30:30,31:31,32:ht,33:tt,34:kt,36:at,38:ut,39:58,40:70,42:71,44:vt,46:Zt,47:Gt,48:xt,49:It,50:wt,51:mt,53:32,54:X,55:ot,56:j,57:yt,58:Y,59:bt,60:Ct,61:$t,62:be,63:We,64:xe,65:pe,66:_e,67:Ae,68:De,69:me,70:wn,71:de,72:Qe,73:ne,74:Qt,75:se,76:Et,77:te,78:st,79:dt,80:ft,81:Mt,82:fe,83:Le,84:en},{23:82,29:29,30:30,31:31,32:ht,33:tt,34:kt,36:at,38:ut,39:58,40:70,42:71,44:vt,46:Zt,47:Gt,48:xt,49:It,50:wt,51:mt,53:32,54:X,55:ot,56:j,57:yt,58:Y,59:bt,60:Ct,61:$t,62:be,63:We,64:xe,65:pe,66:_e,67:Ae,68:De,69:me,70:wn,71:de,72:Qe,73:ne,74:Qt,75:se,76:Et,77:te,78:st,79:dt,80:ft,81:Mt,82:fe,83:Le,84:en},{15:[1,83]},{17:84,20:[1,85]},{15:[2,14]},{24:[1,86]},u(qe,[2,20],{53:32,39:58,40:70,42:71,30:87,44:vt,46:Zt,47:Gt,48:xt,49:It,50:wt,51:mt,54:X,55:ot,56:j,57:yt,58:Y,59:bt,60:Ct,61:$t,62:be,63:We,64:xe,65:pe,66:_e,67:Ae,68:De,69:me,70:wn,71:de,72:Qe,73:ne,74:Qt,75:se,76:Et,77:te,78:st,79:dt,80:ft,81:Mt,82:fe,83:Le,84:en}),u(qe,[2,21]),u(sn,[2,23],{15:[1,88]}),u(qe,[2,43],{15:[1,89]}),u(Fe,[2,26]),u(Fe,[2,27]),{35:[1,90]},{37:[1,91]},u(Fe,[2,30]),{45:92,85:93,86:Te,87:Oe,89:Be,90:ge},{45:98,85:93,86:Te,87:Oe,89:Be,90:ge},{45:99,85:93,86:Te,87:Oe,89:Be,90:ge},{45:100,85:93,86:Te,87:Oe,89:Be,90:ge},{45:101,85:93,86:Te,87:Oe,89:Be,90:ge},{45:102,85:93,86:Te,87:Oe,89:Be,90:ge},{45:103,85:93,86:Te,87:Oe,89:Be,90:ge},{45:104,85:93,86:Te,87:Oe,89:Be,90:ge},{45:105,85:93,86:Te,87:Oe,89:Be,90:ge},{45:106,85:93,86:Te,87:Oe,89:Be,90:ge},{45:107,85:93,86:Te,87:Oe,89:Be,90:ge},{45:108,85:93,86:Te,87:Oe,89:Be,90:ge},{45:109,85:93,86:Te,87:Oe,89:Be,90:ge},{45:110,85:93,86:Te,87:Oe,89:Be,90:ge},{45:111,85:93,86:Te,87:Oe,89:Be,90:ge},{45:112,85:93,86:Te,87:Oe,89:Be,90:ge},{45:113,85:93,86:Te,87:Oe,89:Be,90:ge},{45:114,85:93,86:Te,87:Oe,89:Be,90:ge},{45:115,85:93,86:Te,87:Oe,89:Be,90:ge},{45:116,85:93,86:Te,87:Oe,89:Be,90:ge},u(re,[2,66]),{45:117,85:93,86:Te,87:Oe,89:Be,90:ge},{45:118,85:93,86:Te,87:Oe,89:Be,90:ge},{45:119,85:93,86:Te,87:Oe,89:Be,90:ge},{45:120,85:93,86:Te,87:Oe,89:Be,90:ge},{45:121,85:93,86:Te,87:Oe,89:Be,90:ge},{45:122,85:93,86:Te,87:Oe,89:Be,90:ge},{45:123,85:93,86:Te,87:Oe,89:Be,90:ge},{45:124,85:93,86:Te,87:Oe,89:Be,90:ge},{45:125,85:93,86:Te,87:Oe,89:Be,90:ge},{45:126,85:93,86:Te,87:Oe,89:Be,90:ge},{45:127,85:93,86:Te,87:Oe,89:Be,90:ge},{30:128,39:58,40:70,42:71,44:vt,46:Zt,47:Gt,48:xt,49:It,50:wt,51:mt,53:32,54:X,55:ot,56:j,57:yt,58:Y,59:bt,60:Ct,61:$t,62:be,63:We,64:xe,65:pe,66:_e,67:Ae,68:De,69:me,70:wn,71:de,72:Qe,73:ne,74:Qt,75:se,76:Et,77:te,78:st,79:dt,80:ft,81:Mt,82:fe,83:Le,84:en},{15:[1,130],43:[1,129]},{45:131,85:93,86:Te,87:Oe,89:Be,90:ge},{45:132,85:93,86:Te,87:Oe,89:Be,90:ge},{45:133,85:93,86:Te,87:Oe,89:Be,90:ge},{45:134,85:93,86:Te,87:Oe,89:Be,90:ge},{45:135,85:93,86:Te,87:Oe,89:Be,90:ge},{45:136,85:93,86:Te,87:Oe,89:Be,90:ge},{45:137,85:93,86:Te,87:Oe,89:Be,90:ge},{24:[1,138]},{24:[1,139]},{24:[1,140]},{24:[1,141]},u(An,[2,9]),{14:142,21:J},{21:[2,13]},{1:[2,15]},u(qe,[2,22]),u(sn,[2,24],{31:31,29:143,32:ht,33:tt,34:kt,36:at,38:ut}),u(qe,[2,44],{29:29,30:30,31:31,53:32,39:58,40:70,42:71,23:144,32:ht,33:tt,34:kt,36:at,38:ut,44:vt,46:Zt,47:Gt,48:xt,49:It,50:wt,51:mt,54:X,55:ot,56:j,57:yt,58:Y,59:bt,60:Ct,61:$t,62:be,63:We,64:xe,65:pe,66:_e,67:Ae,68:De,69:me,70:wn,71:de,72:Qe,73:ne,74:Qt,75:se,76:Et,77:te,78:st,79:dt,80:ft,81:Mt,82:fe,83:Le,84:en}),u(Fe,[2,28]),u(Fe,[2,29]),u(re,[2,46]),u(Ie,[2,78],{85:93,45:145,86:Te,87:Oe,89:Be,90:ge}),u(ln,[2,80]),{88:[1,146]},u(ln,[2,82]),u(ln,[2,83]),u(re,[2,47]),u(re,[2,48]),u(re,[2,49]),u(re,[2,50]),u(re,[2,51]),u(re,[2,52]),u(re,[2,53]),u(re,[2,54]),u(re,[2,55]),u(re,[2,56]),u(re,[2,57]),u(re,[2,58]),u(re,[2,59]),u(re,[2,60]),u(re,[2,61]),u(re,[2,62]),u(re,[2,63]),u(re,[2,64]),u(re,[2,65]),u(re,[2,67]),u(re,[2,68]),u(re,[2,69]),u(re,[2,70]),u(re,[2,71]),u(re,[2,72]),u(re,[2,73]),u(re,[2,74]),u(re,[2,75]),u(re,[2,76]),u(re,[2,77]),{41:147,52:[1,148]},{15:[1,149]},{43:[1,150]},u(Ye,[2,35]),u(Ye,[2,36]),u(Ye,[2,37]),u(Ye,[2,38]),u(Ye,[2,39]),u(Ye,[2,40]),u(Ye,[2,41]),{1:[2,16]},{1:[2,17]},{1:[2,18]},{1:[2,19]},{15:[1,151]},u(sn,[2,25]),u(qe,[2,45]),u(Ie,[2,79]),u(ln,[2,81]),u(re,[2,31]),u(re,[2,42]),u(fn,[2,32]),u(fn,[2,33],{15:[1,152]}),u(An,[2,10]),u(fn,[2,34])],defaultActions:{2:[2,1],3:[2,2],5:[2,8],6:[2,4],7:[2,5],8:[2,6],9:[2,7],16:[2,11],17:[2,3],27:[2,14],85:[2,13],86:[2,15],138:[2,16],139:[2,17],140:[2,18],141:[2,19]},parseError:function(Me,Ke){if(!Ke.recoverable){var Xe=new Error(Me);throw Xe.hash=Ke,Xe}this.trace(Me)},parse:function(Me){var Ke=this,Xe=[0],Ee=[],mn=[null],At=[],vr=this.table,Yt="",Un=0,Rn=0,Vn=0,Mn=2,Hn=1,In=At.slice.call(arguments,1),En=Object.create(this.lexer),Fn={yy:{}};for(var Pn in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Pn)&&(Fn.yy[Pn]=this.yy[Pn]);En.setInput(Me,Fn.yy),Fn.yy.lexer=En,Fn.yy.parser=this,En.yylloc===void 0&&(En.yylloc={});var jn=En.yylloc;At.push(jn);var fa=En.options&&En.options.ranges;function Dr(){var Gn;return typeof(Gn=Ee.pop()||En.lex()||Hn)!="number"&&(Gn instanceof Array&&(Gn=(Ee=Gn).pop()),Gn=Ke.symbols_[Gn]||Gn),Gn}typeof Fn.yy.parseError=="function"?this.parseError=Fn.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var Tr,Sn,oi,Nn,_r,Cr,yr,qr,Dt,Ar={};;){if(oi=Xe[Xe.length-1],this.defaultActions[oi]?Nn=this.defaultActions[oi]:(Tr==null&&(Tr=Dr()),Nn=vr[oi]&&vr[oi][Tr]),Nn===void 0||!Nn.length||!Nn[0]){var Nr="";for(Cr in Dt=[],vr[oi])this.terminals_[Cr]&&Cr>Mn&&Dt.push("'"+this.terminals_[Cr]+"'");Nr=En.showPosition?"Parse error on line "+(Un+1)+`:
`+En.showPosition()+`
Expecting `+Dt.join(", ")+", got '"+(this.terminals_[Tr]||Tr)+"'":"Parse error on line "+(Un+1)+": Unexpected "+(Tr==Hn?"end of input":"'"+(this.terminals_[Tr]||Tr)+"'"),this.parseError(Nr,{text:En.match,token:this.terminals_[Tr]||Tr,line:En.yylineno,loc:jn,expected:Dt})}if(Nn[0]instanceof Array&&Nn.length>1)throw new Error("Parse Error: multiple actions possible at state: "+oi+", token: "+Tr);switch(Nn[0]){case 1:Xe.push(Tr),mn.push(En.yytext),At.push(En.yylloc),Xe.push(Nn[1]),Tr=null,Sn?(Tr=Sn,Sn=null):(Rn=En.yyleng,Yt=En.yytext,Un=En.yylineno,jn=En.yylloc,Vn>0);break;case 2:if(yr=this.productions_[Nn[1]][1],Ar.$=mn[mn.length-yr],Ar._$={first_line:At[At.length-(yr||1)].first_line,last_line:At[At.length-1].last_line,first_column:At[At.length-(yr||1)].first_column,last_column:At[At.length-1].last_column},fa&&(Ar._$.range=[At[At.length-(yr||1)].range[0],At[At.length-1].range[1]]),(_r=this.performAction.apply(Ar,[Yt,Rn,Un,Fn.yy,Nn[1],mn,At].concat(In)))!==void 0)return _r;yr&&(Xe=Xe.slice(0,-1*yr*2),mn=mn.slice(0,-1*yr),At=At.slice(0,-1*yr)),Xe.push(this.productions_[Nn[1]][0]),mn.push(Ar.$),At.push(Ar._$),qr=vr[Xe[Xe.length-2]][Xe[Xe.length-1]],Xe.push(qr);break;case 3:return!0}}return!0}},Dn={EOF:1,parseError:function(Me,Ke){if(!this.yy.parser)throw new Error(Me);this.yy.parser.parseError(Me,Ke)},setInput:function(Me,Ke){return this.yy=Ke||this.yy||{},this._input=Me,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var Me=this._input[0];return this.yytext+=Me,this.yyleng++,this.offset++,this.match+=Me,this.matched+=Me,Me.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),Me},unput:function(Me){var Ke=Me.length,Xe=Me.split(/(?:\r\n?|\n)/g);this._input=Me+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-Ke),this.offset-=Ke;var Ee=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),Xe.length-1&&(this.yylineno-=Xe.length-1);var mn=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:Xe?(Xe.length===Ee.length?this.yylloc.first_column:0)+Ee[Ee.length-Xe.length].length-Xe[0].length:this.yylloc.first_column-Ke},this.options.ranges&&(this.yylloc.range=[mn[0],mn[0]+this.yyleng-Ke]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(Me){this.unput(this.match.slice(Me))},pastInput:function(){var Me=this.matched.substr(0,this.matched.length-this.match.length);return(Me.length>20?"...":"")+Me.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var Me=this.match;return Me.length<20&&(Me+=this._input.substr(0,20-Me.length)),(Me.substr(0,20)+(Me.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var Me=this.pastInput(),Ke=new Array(Me.length+1).join("-");return Me+this.upcomingInput()+`
`+Ke+"^"},test_match:function(Me,Ke){var Xe,Ee,mn;if(this.options.backtrack_lexer&&(mn={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(mn.yylloc.range=this.yylloc.range.slice(0))),(Ee=Me[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=Ee.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:Ee?Ee[Ee.length-1].length-Ee[Ee.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+Me[0].length},this.yytext+=Me[0],this.match+=Me[0],this.matches=Me,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(Me[0].length),this.matched+=Me[0],Xe=this.performAction.call(this,this.yy,this,Ke,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),Xe)return Xe;if(this._backtrack){for(var At in mn)this[At]=mn[At];return!1}return!1},next:function(){if(this.done)return this.EOF;var Me,Ke,Xe,Ee;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var mn=this._currentRules(),At=0;At<mn.length;At++)if((Xe=this._input.match(this.rules[mn[At]]))&&(!Ke||Xe[0].length>Ke[0].length)){if(Ke=Xe,Ee=At,this.options.backtrack_lexer){if((Me=this.test_match(Xe,mn[At]))!==!1)return Me;if(this._backtrack){Ke=!1;continue}return!1}if(!this.options.flex)break}return Ke?(Me=this.test_match(Ke,mn[Ee]))!==!1&&Me:this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(Me){this.conditionStack.push(Me)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(Me){return(Me=this.conditionStack.length-1-Math.abs(Me||0))>=0?this.conditionStack[Me]:"INITIAL"},pushState:function(Me){this.begin(Me)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(Me,Ke,Xe,Ee){switch(Xe){case 0:return this.begin("open_directive"),18;case 1:return 7;case 2:return 8;case 3:return 9;case 4:return 10;case 5:return this.begin("type_directive"),19;case 6:return this.popState(),this.begin("arg_directive"),16;case 7:return this.popState(),this.popState(),21;case 8:return 20;case 9:return 32;case 10:return 33;case 11:return this.begin("acc_title"),34;case 12:return this.popState(),"acc_title_value";case 13:return this.begin("acc_descr"),36;case 14:return this.popState(),"acc_descr_value";case 15:this.begin("acc_descr_multiline");break;case 16:this.popState();break;case 17:return"acc_descr_multiline_value";case 18:case 21:break;case 19:c;break;case 20:return 15;case 22:return 22;case 23:return 25;case 24:return 26;case 25:return 27;case 26:return 28;case 27:return this.begin("person_ext"),console.log("begin person_ext"),55;case 28:return this.begin("person"),console.log("begin person"),54;case 29:return this.begin("system_ext_queue"),console.log("begin system_ext_queue"),61;case 30:return this.begin("system_ext_db"),console.log("begin system_ext_db"),60;case 31:return this.begin("system_ext"),console.log("begin system_ext"),59;case 32:return this.begin("system_queue"),console.log("begin system_queue"),58;case 33:return this.begin("system_db"),console.log("begin system_db"),57;case 34:return this.begin("system"),console.log("begin system"),56;case 35:return this.begin("boundary"),console.log("begin boundary"),47;case 36:return this.begin("enterprise_boundary"),console.log("begin enterprise_boundary"),44;case 37:return this.begin("system_boundary"),console.log("begin system_boundary"),46;case 38:return this.begin("container_ext_queue"),console.log("begin container_ext_queue"),67;case 39:return this.begin("container_ext_db"),console.log("begin container_ext_db"),66;case 40:return this.begin("container_ext"),console.log("begin container_ext"),65;case 41:return this.begin("container_queue"),console.log("begin container_queue"),64;case 42:return this.begin("container_db"),console.log("begin container_db"),63;case 43:return this.begin("container"),console.log("begin container"),62;case 44:return this.begin("container_boundary"),console.log("begin container_boundary"),48;case 45:return this.begin("component_ext_queue"),console.log("begin component_ext_queue"),73;case 46:return this.begin("component_ext_db"),console.log("begin component_ext_db"),72;case 47:return this.begin("component_ext"),console.log("begin component_ext"),71;case 48:return this.begin("component_queue"),console.log("begin component_queue"),70;case 49:return this.begin("component_db"),console.log("begin component_db"),69;case 50:return this.begin("component"),console.log("begin component"),68;case 51:case 52:return this.begin("node"),console.log("begin node"),49;case 53:return this.begin("node_l"),console.log("begin node_l"),50;case 54:return this.begin("node_r"),console.log("begin node_r"),51;case 55:return this.begin("rel"),console.log("begin rel"),74;case 56:return this.begin("birel"),console.log("begin birel"),75;case 57:case 58:return this.begin("rel_u"),console.log("begin rel_u"),76;case 59:case 60:return this.begin("rel_d"),console.log("begin rel_d"),77;case 61:case 62:return this.begin("rel_l"),console.log("begin rel_l"),78;case 63:case 64:return this.begin("rel_r"),console.log("begin rel_r"),79;case 65:return this.begin("rel_b"),console.log("begin rel_b"),80;case 66:return this.begin("rel_index"),console.log("begin rel_index"),81;case 67:return this.begin("update_el_style"),console.log("begin update_el_style"),82;case 68:return this.begin("update_rel_style"),console.log("begin update_rel_style"),83;case 69:return this.begin("update_layout_config"),console.log("begin update_layout_config"),84;case 70:return"EOF_IN_STRUCT";case 71:return console.log("begin attribute with ATTRIBUTE_EMPTY"),this.begin("attribute"),"ATTRIBUTE_EMPTY";case 72:console.log("begin attribute"),this.begin("attribute");break;case 73:console.log("STOP attribute"),this.popState(),console.log("STOP diagram"),this.popState();break;case 74:return console.log(",,"),90;case 75:console.log(",");break;case 76:return console.log("ATTRIBUTE_EMPTY"),90;case 77:console.log("begin string"),this.begin("string");break;case 78:console.log("STOP string"),this.popState();break;case 79:return console.log("STR"),"STR";case 80:console.log("begin string_kv"),this.begin("string_kv");break;case 81:return console.log("STR_KEY"),this.begin("string_kv_key"),"STR_KEY";case 82:console.log("begin string_kv_value"),this.popState(),this.begin("string_kv_value");break;case 83:return console.log("STR_VALUE"),"STR_VALUE";case 84:console.log("STOP string_kv_value"),this.popState(),this.popState();break;case 85:return console.log("not STR"),"STR";case 86:return console.log("begin boundary block"),"LBRACE";case 87:return console.log("STOP boundary block"),"RBRACE";case 88:return"SPACE";case 89:return"EOL";case 90:return 24}},rules:[/^(?:%%\{)/,/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:((?:(?!\}%%)[^:.])*))/,/^(?::)/,/^(?:\}%%)/,/^(?:((?:(?!\}%%).|\n)*))/,/^(?:title\s[^#\n;]+)/,/^(?:accDescription\s[^#\n;]+)/,/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:%%(?!\{)*[^\n]*(\r?\n?)+)/,/^(?:%%[^\n]*(\r?\n)*)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:C4Context\b)/,/^(?:C4Container\b)/,/^(?:C4Component\b)/,/^(?:C4Dynamic\b)/,/^(?:C4Deployment\b)/,/^(?:Person_Ext\b)/,/^(?:Person\b)/,/^(?:SystemQueue_Ext\b)/,/^(?:SystemDb_Ext\b)/,/^(?:System_Ext\b)/,/^(?:SystemQueue\b)/,/^(?:SystemDb\b)/,/^(?:System\b)/,/^(?:Boundary\b)/,/^(?:Enterprise_Boundary\b)/,/^(?:System_Boundary\b)/,/^(?:ContainerQueue_Ext\b)/,/^(?:ContainerDb_Ext\b)/,/^(?:Container_Ext\b)/,/^(?:ContainerQueue\b)/,/^(?:ContainerDb\b)/,/^(?:Container\b)/,/^(?:Container_Boundary\b)/,/^(?:ComponentQueue_Ext\b)/,/^(?:ComponentDb_Ext\b)/,/^(?:Component_Ext\b)/,/^(?:ComponentQueue\b)/,/^(?:ComponentDb\b)/,/^(?:Component\b)/,/^(?:Deployment_Node\b)/,/^(?:Node\b)/,/^(?:Node_L\b)/,/^(?:Node_R\b)/,/^(?:Rel\b)/,/^(?:BiRel\b)/,/^(?:Rel_Up\b)/,/^(?:Rel_U\b)/,/^(?:Rel_Down\b)/,/^(?:Rel_D\b)/,/^(?:Rel_Left\b)/,/^(?:Rel_L\b)/,/^(?:Rel_Right\b)/,/^(?:Rel_R\b)/,/^(?:Rel_Back\b)/,/^(?:RelIndex\b)/,/^(?:UpdateElementStyle\b)/,/^(?:UpdateRelStyle\b)/,/^(?:UpdateLayoutConfig\b)/,/^(?:$)/,/^(?:[(][ ]*[,])/,/^(?:[(])/,/^(?:[)])/,/^(?:,,)/,/^(?:,)/,/^(?:[ ]*["]["])/,/^(?:[ ]*["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:[ ]*[\$])/,/^(?:[^=]*)/,/^(?:[=][ ]*["])/,/^(?:[^"]+)/,/^(?:["])/,/^(?:[^,]+)/,/^(?:\{)/,/^(?:\})/,/^(?:[\s]+)/,/^(?:[\n\r]+)/,/^(?:$)/],conditions:{acc_descr_multiline:{rules:[16,17],inclusive:!1},acc_descr:{rules:[14],inclusive:!1},acc_title:{rules:[12],inclusive:!1},close_directive:{rules:[],inclusive:!1},arg_directive:{rules:[7,8],inclusive:!1},type_directive:{rules:[6,7],inclusive:!1},open_directive:{rules:[5],inclusive:!1},string_kv_value:{rules:[83,84],inclusive:!1},string_kv_key:{rules:[82],inclusive:!1},string_kv:{rules:[81],inclusive:!1},string:{rules:[78,79],inclusive:!1},attribute:{rules:[73,74,75,76,77,80,85],inclusive:!1},update_layout_config:{rules:[70,71,72,73],inclusive:!1},update_rel_style:{rules:[70,71,72,73],inclusive:!1},update_el_style:{rules:[70,71,72,73],inclusive:!1},rel_b:{rules:[70,71,72,73],inclusive:!1},rel_r:{rules:[70,71,72,73],inclusive:!1},rel_l:{rules:[70,71,72,73],inclusive:!1},rel_d:{rules:[70,71,72,73],inclusive:!1},rel_u:{rules:[70,71,72,73],inclusive:!1},rel_bi:{rules:[],inclusive:!1},rel:{rules:[70,71,72,73],inclusive:!1},node_r:{rules:[70,71,72,73],inclusive:!1},node_l:{rules:[70,71,72,73],inclusive:!1},node:{rules:[70,71,72,73],inclusive:!1},index:{rules:[],inclusive:!1},rel_index:{rules:[70,71,72,73],inclusive:!1},component_ext_queue:{rules:[],inclusive:!1},component_ext_db:{rules:[70,71,72,73],inclusive:!1},component_ext:{rules:[70,71,72,73],inclusive:!1},component_queue:{rules:[70,71,72,73],inclusive:!1},component_db:{rules:[70,71,72,73],inclusive:!1},component:{rules:[70,71,72,73],inclusive:!1},container_boundary:{rules:[70,71,72,73],inclusive:!1},container_ext_queue:{rules:[],inclusive:!1},container_ext_db:{rules:[70,71,72,73],inclusive:!1},container_ext:{rules:[70,71,72,73],inclusive:!1},container_queue:{rules:[70,71,72,73],inclusive:!1},container_db:{rules:[70,71,72,73],inclusive:!1},container:{rules:[70,71,72,73],inclusive:!1},birel:{rules:[70,71,72,73],inclusive:!1},system_boundary:{rules:[70,71,72,73],inclusive:!1},enterprise_boundary:{rules:[70,71,72,73],inclusive:!1},boundary:{rules:[70,71,72,73],inclusive:!1},system_ext_queue:{rules:[70,71,72,73],inclusive:!1},system_ext_db:{rules:[70,71,72,73],inclusive:!1},system_ext:{rules:[70,71,72,73],inclusive:!1},system_queue:{rules:[70,71,72,73],inclusive:!1},system_db:{rules:[70,71,72,73],inclusive:!1},system:{rules:[70,71,72,73],inclusive:!1},person_ext:{rules:[70,71,72,73],inclusive:!1},person:{rules:[70,71,72,73],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,9,10,11,13,15,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,86,87,88,89,90],inclusive:!0}}};function Tn(){this.yy={}}return Jn.lexer=Dn,Tn.prototype=Jn,Jn.Parser=Tn,new Tn}();z.parser=b,z.Parser=b.Parser,z.parse=function(){return b.parse.apply(b,arguments)},z.main=function(u){u[1]||(console.log("Usage: "+u[0]+" FILE"),process.exit(1));var _=p(555).readFileSync(p(6470).normalize(u[1]),"utf8");return z.parser.parse(_)},p.c[p.s]===M&&z.main(process.argv.slice(1))},1362:(M,z,p)=>{M=p.nmd(M);var b=function(){var u=function(Qt,se,Et,te){for(Et=Et||{},te=Qt.length;te--;Et[Qt[te]]=se);return Et},_=[1,3],y=[1,7],E=[1,8],A=[1,9],w=[1,10],F=[1,13],B=[1,12],P=[1,16,25],G=[1,20],K=[1,31],J=[1,32],ht=[1,33],tt=[1,35],kt=[1,38],at=[1,36],ut=[1,37],vt=[1,39],Zt=[1,40],Gt=[1,41],xt=[1,42],It=[1,45],wt=[1,46],mt=[1,47],X=[1,48],ot=[16,25],j=[1,62],yt=[1,63],Y=[1,64],bt=[1,65],Ct=[1,66],$t=[1,67],be=[1,68],We=[16,25,32,44,45,53,56,57,58,59,60,61,62,67,69],xe=[16,25,30,32,44,45,49,53,56,57,58,59,60,61,62,67,69,84,85,86,87],pe=[5,8,9,10,11,16,19,23,25],_e=[53,84,85,86,87],Ae=[53,61,62,84,85,86,87],De=[53,56,57,58,59,60,84,85,86,87],me=[16,25,32],wn=[1,100],de={trace:function(){},yy:{},symbols_:{error:2,start:3,mermaidDoc:4,statments:5,direction:6,directive:7,direction_tb:8,direction_bt:9,direction_rl:10,direction_lr:11,graphConfig:12,openDirective:13,typeDirective:14,closeDirective:15,NEWLINE:16,":":17,argDirective:18,open_directive:19,type_directive:20,arg_directive:21,close_directive:22,CLASS_DIAGRAM:23,statements:24,EOF:25,statement:26,className:27,alphaNumToken:28,classLiteralName:29,GENERICTYPE:30,relationStatement:31,LABEL:32,classStatement:33,methodStatement:34,annotationStatement:35,clickStatement:36,cssClassStatement:37,acc_title:38,acc_title_value:39,acc_descr:40,acc_descr_value:41,acc_descr_multiline_value:42,CLASS:43,STYLE_SEPARATOR:44,STRUCT_START:45,members:46,STRUCT_STOP:47,ANNOTATION_START:48,ANNOTATION_END:49,MEMBER:50,SEPARATOR:51,relation:52,STR:53,relationType:54,lineType:55,AGGREGATION:56,EXTENSION:57,COMPOSITION:58,DEPENDENCY:59,LOLLIPOP:60,LINE:61,DOTTED_LINE:62,CALLBACK:63,LINK:64,LINK_TARGET:65,CLICK:66,CALLBACK_NAME:67,CALLBACK_ARGS:68,HREF:69,CSSCLASS:70,commentToken:71,textToken:72,graphCodeTokens:73,textNoTagsToken:74,TAGSTART:75,TAGEND:76,"==":77,"--":78,PCT:79,DEFAULT:80,SPACE:81,MINUS:82,keywords:83,UNICODE_TEXT:84,NUM:85,ALPHA:86,BQUOTE_STR:87,$accept:0,$end:1},terminals_:{2:"error",5:"statments",8:"direction_tb",9:"direction_bt",10:"direction_rl",11:"direction_lr",16:"NEWLINE",17:":",19:"open_directive",20:"type_directive",21:"arg_directive",22:"close_directive",23:"CLASS_DIAGRAM",25:"EOF",30:"GENERICTYPE",32:"LABEL",38:"acc_title",39:"acc_title_value",40:"acc_descr",41:"acc_descr_value",42:"acc_descr_multiline_value",43:"CLASS",44:"STYLE_SEPARATOR",45:"STRUCT_START",47:"STRUCT_STOP",48:"ANNOTATION_START",49:"ANNOTATION_END",50:"MEMBER",51:"SEPARATOR",53:"STR",56:"AGGREGATION",57:"EXTENSION",58:"COMPOSITION",59:"DEPENDENCY",60:"LOLLIPOP",61:"LINE",62:"DOTTED_LINE",63:"CALLBACK",64:"LINK",65:"LINK_TARGET",66:"CLICK",67:"CALLBACK_NAME",68:"CALLBACK_ARGS",69:"HREF",70:"CSSCLASS",73:"graphCodeTokens",75:"TAGSTART",76:"TAGEND",77:"==",78:"--",79:"PCT",80:"DEFAULT",81:"SPACE",82:"MINUS",83:"keywords",84:"UNICODE_TEXT",85:"NUM",86:"ALPHA",87:"BQUOTE_STR"},productions_:[0,[3,1],[3,1],[3,1],[3,2],[6,1],[6,1],[6,1],[6,1],[4,1],[7,4],[7,6],[13,1],[14,1],[18,1],[15,1],[12,4],[24,1],[24,2],[24,3],[27,1],[27,1],[27,2],[27,2],[27,2],[26,1],[26,2],[26,1],[26,1],[26,1],[26,1],[26,1],[26,1],[26,1],[26,2],[26,2],[26,1],[33,2],[33,4],[33,5],[33,7],[35,4],[46,1],[46,2],[34,1],[34,2],[34,1],[34,1],[31,3],[31,4],[31,4],[31,5],[52,3],[52,2],[52,2],[52,1],[54,1],[54,1],[54,1],[54,1],[54,1],[55,1],[55,1],[36,3],[36,4],[36,3],[36,4],[36,4],[36,5],[36,3],[36,4],[36,4],[36,5],[36,3],[36,4],[36,4],[36,5],[37,3],[71,1],[71,1],[72,1],[72,1],[72,1],[72,1],[72,1],[72,1],[72,1],[74,1],[74,1],[74,1],[74,1],[28,1],[28,1],[28,1],[29,1]],performAction:function(Qt,se,Et,te,st,dt,ft){var Mt=dt.length-1;switch(st){case 5:te.setDirection("TB");break;case 6:te.setDirection("BT");break;case 7:te.setDirection("RL");break;case 8:te.setDirection("LR");break;case 12:te.parseDirective("%%{","open_directive");break;case 13:te.parseDirective(dt[Mt],"type_directive");break;case 14:dt[Mt]=dt[Mt].trim().replace(/'/g,'"'),te.parseDirective(dt[Mt],"arg_directive");break;case 15:te.parseDirective("}%%","close_directive","class");break;case 20:case 21:this.$=dt[Mt];break;case 22:this.$=dt[Mt-1]+dt[Mt];break;case 23:case 24:this.$=dt[Mt-1]+"~"+dt[Mt];break;case 25:te.addRelation(dt[Mt]);break;case 26:dt[Mt-1].title=te.cleanupLabel(dt[Mt]),te.addRelation(dt[Mt-1]);break;case 34:this.$=dt[Mt].trim(),te.setAccTitle(this.$);break;case 35:case 36:this.$=dt[Mt].trim(),te.setAccDescription(this.$);break;case 37:te.addClass(dt[Mt]);break;case 38:te.addClass(dt[Mt-2]),te.setCssClass(dt[Mt-2],dt[Mt]);break;case 39:te.addClass(dt[Mt-3]),te.addMembers(dt[Mt-3],dt[Mt-1]);break;case 40:te.addClass(dt[Mt-5]),te.setCssClass(dt[Mt-5],dt[Mt-3]),te.addMembers(dt[Mt-5],dt[Mt-1]);break;case 41:te.addAnnotation(dt[Mt],dt[Mt-2]);break;case 42:this.$=[dt[Mt]];break;case 43:dt[Mt].push(dt[Mt-1]),this.$=dt[Mt];break;case 44:case 46:case 47:break;case 45:te.addMember(dt[Mt-1],te.cleanupLabel(dt[Mt]));break;case 48:this.$={id1:dt[Mt-2],id2:dt[Mt],relation:dt[Mt-1],relationTitle1:"none",relationTitle2:"none"};break;case 49:this.$={id1:dt[Mt-3],id2:dt[Mt],relation:dt[Mt-1],relationTitle1:dt[Mt-2],relationTitle2:"none"};break;case 50:this.$={id1:dt[Mt-3],id2:dt[Mt],relation:dt[Mt-2],relationTitle1:"none",relationTitle2:dt[Mt-1]};break;case 51:this.$={id1:dt[Mt-4],id2:dt[Mt],relation:dt[Mt-2],relationTitle1:dt[Mt-3],relationTitle2:dt[Mt-1]};break;case 52:this.$={type1:dt[Mt-2],type2:dt[Mt],lineType:dt[Mt-1]};break;case 53:this.$={type1:"none",type2:dt[Mt],lineType:dt[Mt-1]};break;case 54:this.$={type1:dt[Mt-1],type2:"none",lineType:dt[Mt]};break;case 55:this.$={type1:"none",type2:"none",lineType:dt[Mt]};break;case 56:this.$=te.relationType.AGGREGATION;break;case 57:this.$=te.relationType.EXTENSION;break;case 58:this.$=te.relationType.COMPOSITION;break;case 59:this.$=te.relationType.DEPENDENCY;break;case 60:this.$=te.relationType.LOLLIPOP;break;case 61:this.$=te.lineType.LINE;break;case 62:this.$=te.lineType.DOTTED_LINE;break;case 63:case 69:this.$=dt[Mt-2],te.setClickEvent(dt[Mt-1],dt[Mt]);break;case 64:case 70:this.$=dt[Mt-3],te.setClickEvent(dt[Mt-2],dt[Mt-1]),te.setTooltip(dt[Mt-2],dt[Mt]);break;case 65:case 73:this.$=dt[Mt-2],te.setLink(dt[Mt-1],dt[Mt]);break;case 66:case 74:this.$=dt[Mt-3],te.setLink(dt[Mt-2],dt[Mt-1],dt[Mt]);break;case 67:case 75:this.$=dt[Mt-3],te.setLink(dt[Mt-2],dt[Mt-1]),te.setTooltip(dt[Mt-2],dt[Mt]);break;case 68:case 76:this.$=dt[Mt-4],te.setLink(dt[Mt-3],dt[Mt-2],dt[Mt]),te.setTooltip(dt[Mt-3],dt[Mt-1]);break;case 71:this.$=dt[Mt-3],te.setClickEvent(dt[Mt-2],dt[Mt-1],dt[Mt]);break;case 72:this.$=dt[Mt-4],te.setClickEvent(dt[Mt-3],dt[Mt-2],dt[Mt-1]),te.setTooltip(dt[Mt-3],dt[Mt]);break;case 77:te.setCssClass(dt[Mt-1],dt[Mt])}},table:[{3:1,4:2,5:_,6:4,7:5,8:y,9:E,10:A,11:w,12:6,13:11,19:F,23:B},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,3]},{3:14,4:2,5:_,6:4,7:5,8:y,9:E,10:A,11:w,12:6,13:11,19:F,23:B},{1:[2,9]},u(P,[2,5]),u(P,[2,6]),u(P,[2,7]),u(P,[2,8]),{14:15,20:[1,16]},{16:[1,17]},{20:[2,12]},{1:[2,4]},{15:18,17:[1,19],22:G},u([17,22],[2,13]),{6:30,7:29,8:y,9:E,10:A,11:w,13:11,19:F,24:21,26:22,27:34,28:43,29:44,31:23,33:24,34:25,35:26,36:27,37:28,38:K,40:J,42:ht,43:tt,48:kt,50:at,51:ut,63:vt,64:Zt,66:Gt,70:xt,84:It,85:wt,86:mt,87:X},{16:[1,49]},{18:50,21:[1,51]},{16:[2,15]},{25:[1,52]},{16:[1,53],25:[2,17]},u(ot,[2,25],{32:[1,54]}),u(ot,[2,27]),u(ot,[2,28]),u(ot,[2,29]),u(ot,[2,30]),u(ot,[2,31]),u(ot,[2,32]),u(ot,[2,33]),{39:[1,55]},{41:[1,56]},u(ot,[2,36]),u(ot,[2,44],{52:57,54:60,55:61,32:[1,59],53:[1,58],56:j,57:yt,58:Y,59:bt,60:Ct,61:$t,62:be}),{27:69,28:43,29:44,84:It,85:wt,86:mt,87:X},u(ot,[2,46]),u(ot,[2,47]),{28:70,84:It,85:wt,86:mt},{27:71,28:43,29:44,84:It,85:wt,86:mt,87:X},{27:72,28:43,29:44,84:It,85:wt,86:mt,87:X},{27:73,28:43,29:44,84:It,85:wt,86:mt,87:X},{53:[1,74]},u(We,[2,20],{28:43,29:44,27:75,30:[1,76],84:It,85:wt,86:mt,87:X}),u(We,[2,21],{30:[1,77]}),u(xe,[2,91]),u(xe,[2,92]),u(xe,[2,93]),u([16,25,30,32,44,45,53,56,57,58,59,60,61,62,67,69],[2,94]),u(pe,[2,10]),{15:78,22:G},{22:[2,14]},{1:[2,16]},{6:30,7:29,8:y,9:E,10:A,11:w,13:11,19:F,24:79,25:[2,18],26:22,27:34,28:43,29:44,31:23,33:24,34:25,35:26,36:27,37:28,38:K,40:J,42:ht,43:tt,48:kt,50:at,51:ut,63:vt,64:Zt,66:Gt,70:xt,84:It,85:wt,86:mt,87:X},u(ot,[2,26]),u(ot,[2,34]),u(ot,[2,35]),{27:80,28:43,29:44,53:[1,81],84:It,85:wt,86:mt,87:X},{52:82,54:60,55:61,56:j,57:yt,58:Y,59:bt,60:Ct,61:$t,62:be},u(ot,[2,45]),{55:83,61:$t,62:be},u(_e,[2,55],{54:84,56:j,57:yt,58:Y,59:bt,60:Ct}),u(Ae,[2,56]),u(Ae,[2,57]),u(Ae,[2,58]),u(Ae,[2,59]),u(Ae,[2,60]),u(De,[2,61]),u(De,[2,62]),u(ot,[2,37],{44:[1,85],45:[1,86]}),{49:[1,87]},{53:[1,88]},{53:[1,89]},{67:[1,90],69:[1,91]},{28:92,84:It,85:wt,86:mt},u(We,[2,22]),u(We,[2,23]),u(We,[2,24]),{16:[1,93]},{25:[2,19]},u(me,[2,48]),{27:94,28:43,29:44,84:It,85:wt,86:mt,87:X},{27:95,28:43,29:44,53:[1,96],84:It,85:wt,86:mt,87:X},u(_e,[2,54],{54:97,56:j,57:yt,58:Y,59:bt,60:Ct}),u(_e,[2,53]),{28:98,84:It,85:wt,86:mt},{46:99,50:wn},{27:101,28:43,29:44,84:It,85:wt,86:mt,87:X},u(ot,[2,63],{53:[1,102]}),u(ot,[2,65],{53:[1,104],65:[1,103]}),u(ot,[2,69],{53:[1,105],68:[1,106]}),u(ot,[2,73],{53:[1,108],65:[1,107]}),u(ot,[2,77]),u(pe,[2,11]),u(me,[2,50]),u(me,[2,49]),{27:109,28:43,29:44,84:It,85:wt,86:mt,87:X},u(_e,[2,52]),u(ot,[2,38],{45:[1,110]}),{47:[1,111]},{46:112,47:[2,42],50:wn},u(ot,[2,41]),u(ot,[2,64]),u(ot,[2,66]),u(ot,[2,67],{65:[1,113]}),u(ot,[2,70]),u(ot,[2,71],{53:[1,114]}),u(ot,[2,74]),u(ot,[2,75],{65:[1,115]}),u(me,[2,51]),{46:116,50:wn},u(ot,[2,39]),{47:[2,43]},u(ot,[2,68]),u(ot,[2,72]),u(ot,[2,76]),{47:[1,117]},u(ot,[2,40])],defaultActions:{2:[2,1],3:[2,2],4:[2,3],6:[2,9],13:[2,12],14:[2,4],20:[2,15],51:[2,14],52:[2,16],79:[2,19],112:[2,43]},parseError:function(Qt,se){if(!se.recoverable){var Et=new Error(Qt);throw Et.hash=se,Et}this.trace(Qt)},parse:function(Qt){var se=this,Et=[0],te=[],st=[null],dt=[],ft=this.table,Mt="",fe=0,Le=0,en=0,qe=2,sn=1,Fe=dt.slice.call(arguments,1),Te=Object.create(this.lexer),Oe={yy:{}};for(var Be in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Be)&&(Oe.yy[Be]=this.yy[Be]);Te.setInput(Qt,Oe.yy),Oe.yy.lexer=Te,Oe.yy.parser=this,Te.yylloc===void 0&&(Te.yylloc={});var ge=Te.yylloc;dt.push(ge);var re=Te.options&&Te.options.ranges;function An(){var mn;return typeof(mn=te.pop()||Te.lex()||sn)!="number"&&(mn instanceof Array&&(mn=(te=mn).pop()),mn=se.symbols_[mn]||mn),mn}typeof Oe.yy.parseError=="function"?this.parseError=Oe.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var Ie,ln,Ye,fn,Jn,Dn,Tn,Me,Ke,Xe={};;){if(Ye=Et[Et.length-1],this.defaultActions[Ye]?fn=this.defaultActions[Ye]:(Ie==null&&(Ie=An()),fn=ft[Ye]&&ft[Ye][Ie]),fn===void 0||!fn.length||!fn[0]){var Ee="";for(Dn in Ke=[],ft[Ye])this.terminals_[Dn]&&Dn>qe&&Ke.push("'"+this.terminals_[Dn]+"'");Ee=Te.showPosition?"Parse error on line "+(fe+1)+`:
`+Te.showPosition()+`
Expecting `+Ke.join(", ")+", got '"+(this.terminals_[Ie]||Ie)+"'":"Parse error on line "+(fe+1)+": Unexpected "+(Ie==sn?"end of input":"'"+(this.terminals_[Ie]||Ie)+"'"),this.parseError(Ee,{text:Te.match,token:this.terminals_[Ie]||Ie,line:Te.yylineno,loc:ge,expected:Ke})}if(fn[0]instanceof Array&&fn.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Ye+", token: "+Ie);switch(fn[0]){case 1:Et.push(Ie),st.push(Te.yytext),dt.push(Te.yylloc),Et.push(fn[1]),Ie=null,ln?(Ie=ln,ln=null):(Le=Te.yyleng,Mt=Te.yytext,fe=Te.yylineno,ge=Te.yylloc,en>0);break;case 2:if(Tn=this.productions_[fn[1]][1],Xe.$=st[st.length-Tn],Xe._$={first_line:dt[dt.length-(Tn||1)].first_line,last_line:dt[dt.length-1].last_line,first_column:dt[dt.length-(Tn||1)].first_column,last_column:dt[dt.length-1].last_column},re&&(Xe._$.range=[dt[dt.length-(Tn||1)].range[0],dt[dt.length-1].range[1]]),(Jn=this.performAction.apply(Xe,[Mt,Le,fe,Oe.yy,fn[1],st,dt].concat(Fe)))!==void 0)return Jn;Tn&&(Et=Et.slice(0,-1*Tn*2),st=st.slice(0,-1*Tn),dt=dt.slice(0,-1*Tn)),Et.push(this.productions_[fn[1]][0]),st.push(Xe.$),dt.push(Xe._$),Me=ft[Et[Et.length-2]][Et[Et.length-1]],Et.push(Me);break;case 3:return!0}}return!0}},Qe={EOF:1,parseError:function(Qt,se){if(!this.yy.parser)throw new Error(Qt);this.yy.parser.parseError(Qt,se)},setInput:function(Qt,se){return this.yy=se||this.yy||{},this._input=Qt,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var Qt=this._input[0];return this.yytext+=Qt,this.yyleng++,this.offset++,this.match+=Qt,this.matched+=Qt,Qt.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),Qt},unput:function(Qt){var se=Qt.length,Et=Qt.split(/(?:\r\n?|\n)/g);this._input=Qt+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-se),this.offset-=se;var te=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),Et.length-1&&(this.yylineno-=Et.length-1);var st=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:Et?(Et.length===te.length?this.yylloc.first_column:0)+te[te.length-Et.length].length-Et[0].length:this.yylloc.first_column-se},this.options.ranges&&(this.yylloc.range=[st[0],st[0]+this.yyleng-se]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(Qt){this.unput(this.match.slice(Qt))},pastInput:function(){var Qt=this.matched.substr(0,this.matched.length-this.match.length);return(Qt.length>20?"...":"")+Qt.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var Qt=this.match;return Qt.length<20&&(Qt+=this._input.substr(0,20-Qt.length)),(Qt.substr(0,20)+(Qt.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var Qt=this.pastInput(),se=new Array(Qt.length+1).join("-");return Qt+this.upcomingInput()+`
`+se+"^"},test_match:function(Qt,se){var Et,te,st;if(this.options.backtrack_lexer&&(st={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(st.yylloc.range=this.yylloc.range.slice(0))),(te=Qt[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=te.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:te?te[te.length-1].length-te[te.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+Qt[0].length},this.yytext+=Qt[0],this.match+=Qt[0],this.matches=Qt,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(Qt[0].length),this.matched+=Qt[0],Et=this.performAction.call(this,this.yy,this,se,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),Et)return Et;if(this._backtrack){for(var dt in st)this[dt]=st[dt];return!1}return!1},next:function(){if(this.done)return this.EOF;var Qt,se,Et,te;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var st=this._currentRules(),dt=0;dt<st.length;dt++)if((Et=this._input.match(this.rules[st[dt]]))&&(!se||Et[0].length>se[0].length)){if(se=Et,te=dt,this.options.backtrack_lexer){if((Qt=this.test_match(Et,st[dt]))!==!1)return Qt;if(this._backtrack){se=!1;continue}return!1}if(!this.options.flex)break}return se?(Qt=this.test_match(se,st[te]))!==!1&&Qt:this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(Qt){this.conditionStack.push(Qt)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(Qt){return(Qt=this.conditionStack.length-1-Math.abs(Qt||0))>=0?this.conditionStack[Qt]:"INITIAL"},pushState:function(Qt){this.begin(Qt)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(Qt,se,Et,te){switch(Et){case 0:return this.begin("open_directive"),19;case 1:return 8;case 2:return 9;case 3:return 10;case 4:return 11;case 5:return this.begin("type_directive"),20;case 6:return this.popState(),this.begin("arg_directive"),17;case 7:return this.popState(),this.popState(),22;case 8:return 21;case 9:case 10:case 19:case 27:break;case 11:return this.begin("acc_title"),38;case 12:return this.popState(),"acc_title_value";case 13:return this.begin("acc_descr"),40;case 14:return this.popState(),"acc_descr_value";case 15:this.begin("acc_descr_multiline");break;case 16:case 37:case 40:case 43:case 46:case 49:case 52:this.popState();break;case 17:return"acc_descr_multiline_value";case 18:return 16;case 20:case 21:return 23;case 22:return this.begin("struct"),45;case 23:return"EDGE_STATE";case 24:return"EOF_IN_STRUCT";case 25:return"OPEN_IN_STRUCT";case 26:return this.popState(),47;case 28:return"MEMBER";case 29:return 43;case 30:return 70;case 31:return 63;case 32:return 64;case 33:return 66;case 34:return 48;case 35:return 49;case 36:this.begin("generic");break;case 38:return"GENERICTYPE";case 39:this.begin("string");break;case 41:return"STR";case 42:this.begin("bqstring");break;case 44:return"BQUOTE_STR";case 45:this.begin("href");break;case 47:return 69;case 48:this.begin("callback_name");break;case 50:this.popState(),this.begin("callback_args");break;case 51:return 67;case 53:return 68;case 54:case 55:case 56:case 57:return 65;case 58:case 59:return 57;case 60:case 61:return 59;case 62:return 58;case 63:return 56;case 64:return 60;case 65:return 61;case 66:return 62;case 67:return 32;case 68:return 44;case 69:return 82;case 70:return"DOT";case 71:return"PLUS";case 72:return 79;case 73:case 74:return"EQUALS";case 75:return 86;case 76:return"PUNCTUATION";case 77:return 85;case 78:return 84;case 79:return 81;case 80:return 25}},rules:[/^(?:%%\{)/,/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:((?:(?!\}%%)[^:.])*))/,/^(?::)/,/^(?:\}%%)/,/^(?:((?:(?!\}%%).|\n)*))/,/^(?:%%(?!\{)*[^\n]*(\r?\n?)+)/,/^(?:%%[^\n]*(\r?\n)*)/,/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:classDiagram-v2\b)/,/^(?:classDiagram\b)/,/^(?:[{])/,/^(?:\[\*\])/,/^(?:$)/,/^(?:[{])/,/^(?:[}])/,/^(?:[\n])/,/^(?:[^{}\n]*)/,/^(?:class\b)/,/^(?:cssClass\b)/,/^(?:callback\b)/,/^(?:link\b)/,/^(?:click\b)/,/^(?:<<)/,/^(?:>>)/,/^(?:[~])/,/^(?:[~])/,/^(?:[^~]*)/,/^(?:["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:[`])/,/^(?:[`])/,/^(?:[^`]+)/,/^(?:href[\s]+["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:call[\s]+)/,/^(?:\([\s]*\))/,/^(?:\()/,/^(?:[^(]*)/,/^(?:\))/,/^(?:[^)]*)/,/^(?:_self\b)/,/^(?:_blank\b)/,/^(?:_parent\b)/,/^(?:_top\b)/,/^(?:\s*<\|)/,/^(?:\s*\|>)/,/^(?:\s*>)/,/^(?:\s*<)/,/^(?:\s*\*)/,/^(?:\s*o\b)/,/^(?:\s*\(\))/,/^(?:--)/,/^(?:\.\.)/,/^(?::{1}[^:\n;]+)/,/^(?::{3})/,/^(?:-)/,/^(?:\.)/,/^(?:\+)/,/^(?:%)/,/^(?:=)/,/^(?:=)/,/^(?:\w+)/,/^(?:[!"#$%&'*+,-.`?\\/])/,/^(?:[0-9]+)/,/^(?:[\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6]|[\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377]|[\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5]|[\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA]|[\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE]|[\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA]|[\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0]|[\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977]|[\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2]|[\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A]|[\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39]|[\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8]|[\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C]|[\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C]|[\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99]|[\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0]|[\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D]|[\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3]|[\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10]|[\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1]|[\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81]|[\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3]|[\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6]|[\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A]|[\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081]|[\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D]|[\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0]|[\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310]|[\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C]|[\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711]|[\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7]|[\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C]|[\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16]|[\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF]|[\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC]|[\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D]|[\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D]|[\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3]|[\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F]|[\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128]|[\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184]|[\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3]|[\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6]|[\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE]|[\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C]|[\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D]|[\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC]|[\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B]|[\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788]|[\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805]|[\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB]|[\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28]|[\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5]|[\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4]|[\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E]|[\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D]|[\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36]|[\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D]|[\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC]|[\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF]|[\uFFD2-\uFFD7\uFFDA-\uFFDC])/,/^(?:\s)/,/^(?:$)/],conditions:{acc_descr_multiline:{rules:[16,17],inclusive:!1},acc_descr:{rules:[14],inclusive:!1},acc_title:{rules:[12],inclusive:!1},arg_directive:{rules:[7,8],inclusive:!1},type_directive:{rules:[6,7],inclusive:!1},open_directive:{rules:[5],inclusive:!1},callback_args:{rules:[52,53],inclusive:!1},callback_name:{rules:[49,50,51],inclusive:!1},href:{rules:[46,47],inclusive:!1},struct:{rules:[23,24,25,26,27,28],inclusive:!1},generic:{rules:[37,38],inclusive:!1},bqstring:{rules:[43,44],inclusive:!1},string:{rules:[40,41],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,9,10,11,13,15,18,19,20,21,22,23,29,30,31,32,33,34,35,36,39,42,45,48,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80],inclusive:!0}}};function ne(){this.yy={}}return de.lexer=Qe,ne.prototype=de,de.Parser=ne,new ne}();z.parser=b,z.Parser=b.Parser,z.parse=function(){return b.parse.apply(b,arguments)},z.main=function(u){u[1]||(console.log("Usage: "+u[0]+" FILE"),process.exit(1));var _=p(8218).readFileSync(p(6470).normalize(u[1]),"utf8");return z.parser.parse(_)},p.c[p.s]===M&&z.main(process.argv.slice(1))},5890:(M,z,p)=>{M=p.nmd(M);var b=function(){var u=function(X,ot,j,yt){for(j=j||{},yt=X.length;yt--;j[X[yt]]=ot);return j},_=[1,2],y=[1,5],E=[6,9,11,23,25,27,29,30,49],A=[1,17],w=[1,18],F=[1,19],B=[1,20],P=[1,21],G=[1,24],K=[1,29],J=[1,30],ht=[1,31],tt=[1,32],kt=[6,9,11,15,20,23,25,27,29,30,42,43,44,45,49],at=[1,45],ut=[30,46,47],vt=[4,6,9,11,23,25,27,29,30,49],Zt=[42,43,44,45],Gt=[22,37],xt=[1,64],It={trace:function(){},yy:{},symbols_:{error:2,start:3,ER_DIAGRAM:4,document:5,EOF:6,directive:7,line:8,SPACE:9,statement:10,NEWLINE:11,openDirective:12,typeDirective:13,closeDirective:14,":":15,argDirective:16,entityName:17,relSpec:18,role:19,BLOCK_START:20,attributes:21,BLOCK_STOP:22,title:23,title_value:24,acc_title:25,acc_title_value:26,acc_descr:27,acc_descr_value:28,acc_descr_multiline_value:29,ALPHANUM:30,".":31,attribute:32,attributeType:33,attributeName:34,attributeKeyType:35,attributeComment:36,ATTRIBUTE_WORD:37,ATTRIBUTE_KEY:38,COMMENT:39,cardinality:40,relType:41,ZERO_OR_ONE:42,ZERO_OR_MORE:43,ONE_OR_MORE:44,ONLY_ONE:45,NON_IDENTIFYING:46,IDENTIFYING:47,WORD:48,open_directive:49,type_directive:50,arg_directive:51,close_directive:52,$accept:0,$end:1},terminals_:{2:"error",4:"ER_DIAGRAM",6:"EOF",9:"SPACE",11:"NEWLINE",15:":",20:"BLOCK_START",22:"BLOCK_STOP",23:"title",24:"title_value",25:"acc_title",26:"acc_title_value",27:"acc_descr",28:"acc_descr_value",29:"acc_descr_multiline_value",30:"ALPHANUM",31:".",37:"ATTRIBUTE_WORD",38:"ATTRIBUTE_KEY",39:"COMMENT",42:"ZERO_OR_ONE",43:"ZERO_OR_MORE",44:"ONE_OR_MORE",45:"ONLY_ONE",46:"NON_IDENTIFYING",47:"IDENTIFYING",48:"WORD",49:"open_directive",50:"type_directive",51:"arg_directive",52:"close_directive"},productions_:[0,[3,3],[3,2],[5,0],[5,2],[8,2],[8,1],[8,1],[8,1],[7,4],[7,6],[10,1],[10,5],[10,4],[10,3],[10,1],[10,2],[10,2],[10,2],[10,1],[17,1],[17,3],[21,1],[21,2],[32,2],[32,3],[32,3],[32,4],[33,1],[34,1],[35,1],[36,1],[18,3],[40,1],[40,1],[40,1],[40,1],[41,1],[41,1],[19,1],[19,1],[12,1],[13,1],[16,1],[14,1]],performAction:function(X,ot,j,yt,Y,bt,Ct){var $t=bt.length-1;switch(Y){case 1:break;case 3:case 7:case 8:this.$=[];break;case 4:bt[$t-1].push(bt[$t]),this.$=bt[$t-1];break;case 5:case 6:case 20:case 28:case 29:case 30:case 40:this.$=bt[$t];break;case 12:yt.addEntity(bt[$t-4]),yt.addEntity(bt[$t-2]),yt.addRelationship(bt[$t-4],bt[$t],bt[$t-2],bt[$t-3]);break;case 13:yt.addEntity(bt[$t-3]),yt.addAttributes(bt[$t-3],bt[$t-1]);break;case 14:yt.addEntity(bt[$t-2]);break;case 15:yt.addEntity(bt[$t]);break;case 16:case 17:this.$=bt[$t].trim(),yt.setAccTitle(this.$);break;case 18:case 19:this.$=bt[$t].trim(),yt.setAccDescription(this.$);break;case 21:this.$=bt[$t-2]+bt[$t-1]+bt[$t];break;case 22:this.$=[bt[$t]];break;case 23:bt[$t].push(bt[$t-1]),this.$=bt[$t];break;case 24:this.$={attributeType:bt[$t-1],attributeName:bt[$t]};break;case 25:this.$={attributeType:bt[$t-2],attributeName:bt[$t-1],attributeKeyType:bt[$t]};break;case 26:this.$={attributeType:bt[$t-2],attributeName:bt[$t-1],attributeComment:bt[$t]};break;case 27:this.$={attributeType:bt[$t-3],attributeName:bt[$t-2],attributeKeyType:bt[$t-1],attributeComment:bt[$t]};break;case 31:case 39:this.$=bt[$t].replace(/"/g,"");break;case 32:this.$={cardA:bt[$t],relType:bt[$t-1],cardB:bt[$t-2]};break;case 33:this.$=yt.Cardinality.ZERO_OR_ONE;break;case 34:this.$=yt.Cardinality.ZERO_OR_MORE;break;case 35:this.$=yt.Cardinality.ONE_OR_MORE;break;case 36:this.$=yt.Cardinality.ONLY_ONE;break;case 37:this.$=yt.Identification.NON_IDENTIFYING;break;case 38:this.$=yt.Identification.IDENTIFYING;break;case 41:yt.parseDirective("%%{","open_directive");break;case 42:yt.parseDirective(bt[$t],"type_directive");break;case 43:bt[$t]=bt[$t].trim().replace(/'/g,'"'),yt.parseDirective(bt[$t],"arg_directive");break;case 44:yt.parseDirective("}%%","close_directive","er")}},table:[{3:1,4:_,7:3,12:4,49:y},{1:[3]},u(E,[2,3],{5:6}),{3:7,4:_,7:3,12:4,49:y},{13:8,50:[1,9]},{50:[2,41]},{6:[1,10],7:15,8:11,9:[1,12],10:13,11:[1,14],12:4,17:16,23:A,25:w,27:F,29:B,30:P,49:y},{1:[2,2]},{14:22,15:[1,23],52:G},u([15,52],[2,42]),u(E,[2,8],{1:[2,1]}),u(E,[2,4]),{7:15,10:25,12:4,17:16,23:A,25:w,27:F,29:B,30:P,49:y},u(E,[2,6]),u(E,[2,7]),u(E,[2,11]),u(E,[2,15],{18:26,40:28,20:[1,27],42:K,43:J,44:ht,45:tt}),{24:[1,33]},{26:[1,34]},{28:[1,35]},u(E,[2,19]),u(kt,[2,20],{31:[1,36]}),{11:[1,37]},{16:38,51:[1,39]},{11:[2,44]},u(E,[2,5]),{17:40,30:P},{21:41,22:[1,42],32:43,33:44,37:at},{41:46,46:[1,47],47:[1,48]},u(ut,[2,33]),u(ut,[2,34]),u(ut,[2,35]),u(ut,[2,36]),u(E,[2,16]),u(E,[2,17]),u(E,[2,18]),{17:49,30:P},u(vt,[2,9]),{14:50,52:G},{52:[2,43]},{15:[1,51]},{22:[1,52]},u(E,[2,14]),{21:53,22:[2,22],32:43,33:44,37:at},{34:54,37:[1,55]},{37:[2,28]},{40:56,42:K,43:J,44:ht,45:tt},u(Zt,[2,37]),u(Zt,[2,38]),u(kt,[2,21]),{11:[1,57]},{19:58,30:[1,60],48:[1,59]},u(E,[2,13]),{22:[2,23]},u(Gt,[2,24],{35:61,36:62,38:[1,63],39:xt}),u([22,37,38,39],[2,29]),{30:[2,32]},u(vt,[2,10]),u(E,[2,12]),u(E,[2,39]),u(E,[2,40]),u(Gt,[2,25],{36:65,39:xt}),u(Gt,[2,26]),u([22,37,39],[2,30]),u(Gt,[2,31]),u(Gt,[2,27])],defaultActions:{5:[2,41],7:[2,2],24:[2,44],39:[2,43],45:[2,28],53:[2,23],56:[2,32]},parseError:function(X,ot){if(!ot.recoverable){var j=new Error(X);throw j.hash=ot,j}this.trace(X)},parse:function(X){var ot=this,j=[0],yt=[],Y=[null],bt=[],Ct=this.table,$t="",be=0,We=0,xe=0,pe=2,_e=1,Ae=bt.slice.call(arguments,1),De=Object.create(this.lexer),me={yy:{}};for(var wn in this.yy)Object.prototype.hasOwnProperty.call(this.yy,wn)&&(me.yy[wn]=this.yy[wn]);De.setInput(X,me.yy),me.yy.lexer=De,me.yy.parser=this,De.yylloc===void 0&&(De.yylloc={});var de=De.yylloc;bt.push(de);var Qe=De.options&&De.options.ranges;function ne(){var qe;return typeof(qe=yt.pop()||De.lex()||_e)!="number"&&(qe instanceof Array&&(qe=(yt=qe).pop()),qe=ot.symbols_[qe]||qe),qe}typeof me.yy.parseError=="function"?this.parseError=me.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var Qt,se,Et,te,st,dt,ft,Mt,fe,Le={};;){if(Et=j[j.length-1],this.defaultActions[Et]?te=this.defaultActions[Et]:(Qt==null&&(Qt=ne()),te=Ct[Et]&&Ct[Et][Qt]),te===void 0||!te.length||!te[0]){var en="";for(dt in fe=[],Ct[Et])this.terminals_[dt]&&dt>pe&&fe.push("'"+this.terminals_[dt]+"'");en=De.showPosition?"Parse error on line "+(be+1)+`:
`+De.showPosition()+`
Expecting `+fe.join(", ")+", got '"+(this.terminals_[Qt]||Qt)+"'":"Parse error on line "+(be+1)+": Unexpected "+(Qt==_e?"end of input":"'"+(this.terminals_[Qt]||Qt)+"'"),this.parseError(en,{text:De.match,token:this.terminals_[Qt]||Qt,line:De.yylineno,loc:de,expected:fe})}if(te[0]instanceof Array&&te.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Et+", token: "+Qt);switch(te[0]){case 1:j.push(Qt),Y.push(De.yytext),bt.push(De.yylloc),j.push(te[1]),Qt=null,se?(Qt=se,se=null):(We=De.yyleng,$t=De.yytext,be=De.yylineno,de=De.yylloc,xe>0);break;case 2:if(ft=this.productions_[te[1]][1],Le.$=Y[Y.length-ft],Le._$={first_line:bt[bt.length-(ft||1)].first_line,last_line:bt[bt.length-1].last_line,first_column:bt[bt.length-(ft||1)].first_column,last_column:bt[bt.length-1].last_column},Qe&&(Le._$.range=[bt[bt.length-(ft||1)].range[0],bt[bt.length-1].range[1]]),(st=this.performAction.apply(Le,[$t,We,be,me.yy,te[1],Y,bt].concat(Ae)))!==void 0)return st;ft&&(j=j.slice(0,-1*ft*2),Y=Y.slice(0,-1*ft),bt=bt.slice(0,-1*ft)),j.push(this.productions_[te[1]][0]),Y.push(Le.$),bt.push(Le._$),Mt=Ct[j[j.length-2]][j[j.length-1]],j.push(Mt);break;case 3:return!0}}return!0}},wt={EOF:1,parseError:function(X,ot){if(!this.yy.parser)throw new Error(X);this.yy.parser.parseError(X,ot)},setInput:function(X,ot){return this.yy=ot||this.yy||{},this._input=X,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var X=this._input[0];return this.yytext+=X,this.yyleng++,this.offset++,this.match+=X,this.matched+=X,X.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),X},unput:function(X){var ot=X.length,j=X.split(/(?:\r\n?|\n)/g);this._input=X+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-ot),this.offset-=ot;var yt=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),j.length-1&&(this.yylineno-=j.length-1);var Y=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:j?(j.length===yt.length?this.yylloc.first_column:0)+yt[yt.length-j.length].length-j[0].length:this.yylloc.first_column-ot},this.options.ranges&&(this.yylloc.range=[Y[0],Y[0]+this.yyleng-ot]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(X){this.unput(this.match.slice(X))},pastInput:function(){var X=this.matched.substr(0,this.matched.length-this.match.length);return(X.length>20?"...":"")+X.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var X=this.match;return X.length<20&&(X+=this._input.substr(0,20-X.length)),(X.substr(0,20)+(X.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var X=this.pastInput(),ot=new Array(X.length+1).join("-");return X+this.upcomingInput()+`
`+ot+"^"},test_match:function(X,ot){var j,yt,Y;if(this.options.backtrack_lexer&&(Y={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(Y.yylloc.range=this.yylloc.range.slice(0))),(yt=X[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=yt.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:yt?yt[yt.length-1].length-yt[yt.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+X[0].length},this.yytext+=X[0],this.match+=X[0],this.matches=X,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(X[0].length),this.matched+=X[0],j=this.performAction.call(this,this.yy,this,ot,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),j)return j;if(this._backtrack){for(var bt in Y)this[bt]=Y[bt];return!1}return!1},next:function(){if(this.done)return this.EOF;var X,ot,j,yt;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var Y=this._currentRules(),bt=0;bt<Y.length;bt++)if((j=this._input.match(this.rules[Y[bt]]))&&(!ot||j[0].length>ot[0].length)){if(ot=j,yt=bt,this.options.backtrack_lexer){if((X=this.test_match(j,Y[bt]))!==!1)return X;if(this._backtrack){ot=!1;continue}return!1}if(!this.options.flex)break}return ot?(X=this.test_match(ot,Y[yt]))!==!1&&X:this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(X){this.conditionStack.push(X)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(X){return(X=this.conditionStack.length-1-Math.abs(X||0))>=0?this.conditionStack[X]:"INITIAL"},pushState:function(X){this.begin(X)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(X,ot,j,yt){switch(j){case 0:return this.begin("acc_title"),25;case 1:return this.popState(),"acc_title_value";case 2:return this.begin("acc_descr"),27;case 3:return this.popState(),"acc_descr_value";case 4:this.begin("acc_descr_multiline");break;case 5:this.popState();break;case 6:return"acc_descr_multiline_value";case 7:return this.begin("open_directive"),49;case 8:return this.begin("type_directive"),50;case 9:return this.popState(),this.begin("arg_directive"),15;case 10:return this.popState(),this.popState(),52;case 11:return 51;case 12:case 13:case 15:case 20:case 25:break;case 14:return 11;case 16:return 9;case 17:return 48;case 18:return 4;case 19:return this.begin("block"),20;case 21:return 38;case 22:case 23:return 37;case 24:return 39;case 26:return this.popState(),22;case 27:case 40:return ot.yytext[0];case 28:case 32:return 42;case 29:case 33:return 43;case 30:case 34:return 44;case 31:return 45;case 35:case 37:case 38:return 46;case 36:return 47;case 39:return 30;case 41:return 6}},rules:[/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:[\s]+)/i,/^(?:"[^"]*")/i,/^(?:erDiagram\b)/i,/^(?:\{)/i,/^(?:\s+)/i,/^(?:\b((?:PK)|(?:FK))\b)/i,/^(?:(.*?)[~](.*?)*[~])/i,/^(?:[A-Za-z][A-Za-z0-9\-_\[\]]*)/i,/^(?:"[^"]*")/i,/^(?:[\n]+)/i,/^(?:\})/i,/^(?:.)/i,/^(?:\|o\b)/i,/^(?:\}o\b)/i,/^(?:\}\|)/i,/^(?:\|\|)/i,/^(?:o\|)/i,/^(?:o\{)/i,/^(?:\|\{)/i,/^(?:\.\.)/i,/^(?:--)/i,/^(?:\.-)/i,/^(?:-\.)/i,/^(?:[A-Za-z][A-Za-z0-9\-_]*)/i,/^(?:.)/i,/^(?:$)/i],conditions:{acc_descr_multiline:{rules:[5,6],inclusive:!1},acc_descr:{rules:[3],inclusive:!1},acc_title:{rules:[1],inclusive:!1},open_directive:{rules:[8],inclusive:!1},type_directive:{rules:[9,10],inclusive:!1},arg_directive:{rules:[10,11],inclusive:!1},block:{rules:[20,21,22,23,24,25,26,27],inclusive:!1},INITIAL:{rules:[0,2,4,7,12,13,14,15,16,17,18,19,28,29,30,31,32,33,34,35,36,37,38,39,40,41],inclusive:!0}}};function mt(){this.yy={}}return It.lexer=wt,mt.prototype=It,It.Parser=mt,new mt}();z.parser=b,z.Parser=b.Parser,z.parse=function(){return b.parse.apply(b,arguments)},z.main=function(u){u[1]||(console.log("Usage: "+u[0]+" FILE"),process.exit(1));var _=p(8009).readFileSync(p(6470).normalize(u[1]),"utf8");return z.parser.parse(_)},p.c[p.s]===M&&z.main(process.argv.slice(1))},3602:(M,z,p)=>{M=p.nmd(M);var b=function(){var u=function(rn,Zn,an,nn){for(an=an||{},nn=rn.length;nn--;an[rn[nn]]=Zn);return an},_=[1,9],y=[1,7],E=[1,6],A=[1,8],w=[1,20,21,22,23,38,44,46,48,52,66,67,86,87,88,89,90,91,95,105,106,109,111,112,118,119,120,121,122,123,124,125,126,127],F=[2,10],B=[1,20],P=[1,21],G=[1,22],K=[1,23],J=[1,30],ht=[1,32],tt=[1,33],kt=[1,34],at=[1,62],ut=[1,48],vt=[1,52],Zt=[1,36],Gt=[1,37],xt=[1,38],It=[1,39],wt=[1,40],mt=[1,56],X=[1,63],ot=[1,51],j=[1,53],yt=[1,55],Y=[1,59],bt=[1,60],Ct=[1,41],$t=[1,42],be=[1,43],We=[1,44],xe=[1,61],pe=[1,50],_e=[1,54],Ae=[1,57],De=[1,58],me=[1,49],wn=[1,66],de=[1,71],Qe=[1,20,21,22,23,38,42,44,46,48,52,66,67,86,87,88,89,90,91,95,105,106,109,111,112,118,119,120,121,122,123,124,125,126,127],ne=[1,75],Qt=[1,74],se=[1,76],Et=[20,21,23,81,82],te=[1,99],st=[1,104],dt=[1,107],ft=[1,108],Mt=[1,101],fe=[1,106],Le=[1,109],en=[1,102],qe=[1,114],sn=[1,113],Fe=[1,103],Te=[1,105],Oe=[1,110],Be=[1,111],ge=[1,112],re=[1,115],An=[20,21,22,23,81,82],Ie=[20,21,22,23,53,81,82],ln=[20,21,22,23,40,52,53,55,57,59,61,63,65,66,67,69,71,73,74,76,81,82,91,95,105,106,109,111,112,122,123,124,125,126,127],Ye=[20,21,23],fn=[20,21,23,52,66,67,81,82,91,95,105,106,109,111,112,122,123,124,125,126,127],Jn=[1,12,20,21,22,23,24,38,42,44,46,48,52,66,67,86,87,88,89,90,91,95,105,106,109,111,112,118,119,120,121,122,123,124,125,126,127],Dn=[52,66,67,91,95,105,106,109,111,112,122,123,124,125,126,127],Tn=[1,149],Me=[1,157],Ke=[1,158],Xe=[1,159],Ee=[1,160],mn=[1,144],At=[1,145],vr=[1,141],Yt=[1,152],Un=[1,153],Rn=[1,154],Vn=[1,155],Mn=[1,156],Hn=[1,161],In=[1,162],En=[1,147],Fn=[1,150],Pn=[1,146],jn=[1,143],fa=[20,21,22,23,38,42,44,46,48,52,66,67,86,87,88,89,90,91,95,105,106,109,111,112,118,119,120,121,122,123,124,125,126,127],Dr=[1,165],Tr=[20,21,22,23,26,52,66,67,91,105,106,109,111,112,122,123,124,125,126,127],Sn=[20,21,22,23,24,26,38,40,41,42,52,56,58,60,62,64,66,67,68,70,72,73,75,77,81,82,86,87,88,89,90,91,92,95,105,106,109,111,112,113,114,122,123,124,125,126,127],oi=[12,21,22,24],Nn=[22,106],_r=[1,250],Cr=[1,245],yr=[1,246],qr=[1,254],Dt=[1,251],Ar=[1,248],Nr=[1,247],Gn=[1,249],Zr=[1,252],Ur=[1,253],Ir=[1,255],Qr=[1,273],xa=[20,21,23,106],cr=[20,21,22,23,66,67,86,102,105,106,109,110,111,112,113],ea={trace:function(){},yy:{},symbols_:{error:2,start:3,mermaidDoc:4,directive:5,openDirective:6,typeDirective:7,closeDirective:8,separator:9,":":10,argDirective:11,open_directive:12,type_directive:13,arg_directive:14,close_directive:15,graphConfig:16,document:17,line:18,statement:19,SEMI:20,NEWLINE:21,SPACE:22,EOF:23,GRAPH:24,NODIR:25,DIR:26,FirstStmtSeperator:27,ending:28,endToken:29,spaceList:30,spaceListNewline:31,verticeStatement:32,styleStatement:33,linkStyleStatement:34,classDefStatement:35,classStatement:36,clickStatement:37,subgraph:38,text:39,SQS:40,SQE:41,end:42,direction:43,acc_title:44,acc_title_value:45,acc_descr:46,acc_descr_value:47,acc_descr_multiline_value:48,link:49,node:50,vertex:51,AMP:52,STYLE_SEPARATOR:53,idString:54,DOUBLECIRCLESTART:55,DOUBLECIRCLEEND:56,PS:57,PE:58,"(-":59,"-)":60,STADIUMSTART:61,STADIUMEND:62,SUBROUTINESTART:63,SUBROUTINEEND:64,VERTEX_WITH_PROPS_START:65,ALPHA:66,COLON:67,PIPE:68,CYLINDERSTART:69,CYLINDEREND:70,DIAMOND_START:71,DIAMOND_STOP:72,TAGEND:73,TRAPSTART:74,TRAPEND:75,INVTRAPSTART:76,INVTRAPEND:77,linkStatement:78,arrowText:79,TESTSTR:80,START_LINK:81,LINK:82,textToken:83,STR:84,keywords:85,STYLE:86,LINKSTYLE:87,CLASSDEF:88,CLASS:89,CLICK:90,DOWN:91,UP:92,textNoTags:93,textNoTagsToken:94,DEFAULT:95,stylesOpt:96,alphaNum:97,CALLBACKNAME:98,CALLBACKARGS:99,HREF:100,LINK_TARGET:101,HEX:102,numList:103,INTERPOLATE:104,NUM:105,COMMA:106,style:107,styleComponent:108,MINUS:109,UNIT:110,BRKT:111,DOT:112,PCT:113,TAGSTART:114,alphaNumToken:115,idStringToken:116,alphaNumStatement:117,direction_tb:118,direction_bt:119,direction_rl:120,direction_lr:121,PUNCTUATION:122,UNICODE_TEXT:123,PLUS:124,EQUALS:125,MULT:126,UNDERSCORE:127,graphCodeTokens:128,ARROW_CROSS:129,ARROW_POINT:130,ARROW_CIRCLE:131,ARROW_OPEN:132,QUOTE:133,$accept:0,$end:1},terminals_:{2:"error",10:":",12:"open_directive",13:"type_directive",14:"arg_directive",15:"close_directive",20:"SEMI",21:"NEWLINE",22:"SPACE",23:"EOF",24:"GRAPH",25:"NODIR",26:"DIR",38:"subgraph",40:"SQS",41:"SQE",42:"end",44:"acc_title",45:"acc_title_value",46:"acc_descr",47:"acc_descr_value",48:"acc_descr_multiline_value",52:"AMP",53:"STYLE_SEPARATOR",55:"DOUBLECIRCLESTART",56:"DOUBLECIRCLEEND",57:"PS",58:"PE",59:"(-",60:"-)",61:"STADIUMSTART",62:"STADIUMEND",63:"SUBROUTINESTART",64:"SUBROUTINEEND",65:"VERTEX_WITH_PROPS_START",66:"ALPHA",67:"COLON",68:"PIPE",69:"CYLINDERSTART",70:"CYLINDEREND",71:"DIAMOND_START",72:"DIAMOND_STOP",73:"TAGEND",74:"TRAPSTART",75:"TRAPEND",76:"INVTRAPSTART",77:"INVTRAPEND",80:"TESTSTR",81:"START_LINK",82:"LINK",84:"STR",86:"STYLE",87:"LINKSTYLE",88:"CLASSDEF",89:"CLASS",90:"CLICK",91:"DOWN",92:"UP",95:"DEFAULT",98:"CALLBACKNAME",99:"CALLBACKARGS",100:"HREF",101:"LINK_TARGET",102:"HEX",104:"INTERPOLATE",105:"NUM",106:"COMMA",109:"MINUS",110:"UNIT",111:"BRKT",112:"DOT",113:"PCT",114:"TAGSTART",118:"direction_tb",119:"direction_bt",120:"direction_rl",121:"direction_lr",122:"PUNCTUATION",123:"UNICODE_TEXT",124:"PLUS",125:"EQUALS",126:"MULT",127:"UNDERSCORE",129:"ARROW_CROSS",130:"ARROW_POINT",131:"ARROW_CIRCLE",132:"ARROW_OPEN",133:"QUOTE"},productions_:[0,[3,1],[3,2],[5,4],[5,6],[6,1],[7,1],[11,1],[8,1],[4,2],[17,0],[17,2],[18,1],[18,1],[18,1],[18,1],[18,1],[16,2],[16,2],[16,2],[16,3],[28,2],[28,1],[29,1],[29,1],[29,1],[27,1],[27,1],[27,2],[31,2],[31,2],[31,1],[31,1],[30,2],[30,1],[19,2],[19,2],[19,2],[19,2],[19,2],[19,2],[19,9],[19,6],[19,4],[19,1],[19,2],[19,2],[19,1],[9,1],[9,1],[9,1],[32,3],[32,4],[32,2],[32,1],[50,1],[50,5],[50,3],[51,4],[51,4],[51,6],[51,4],[51,4],[51,4],[51,8],[51,4],[51,4],[51,4],[51,6],[51,4],[51,4],[51,4],[51,4],[51,4],[51,1],[49,2],[49,3],[49,3],[49,1],[49,3],[78,1],[79,3],[39,1],[39,2],[39,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[93,1],[93,2],[35,5],[35,5],[36,5],[37,2],[37,4],[37,3],[37,5],[37,2],[37,4],[37,4],[37,6],[37,2],[37,4],[37,2],[37,4],[37,4],[37,6],[33,5],[33,5],[34,5],[34,5],[34,9],[34,9],[34,7],[34,7],[103,1],[103,3],[96,1],[96,3],[107,1],[107,2],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[94,1],[94,1],[94,1],[94,1],[54,1],[54,2],[97,1],[97,2],[117,1],[117,1],[117,1],[117,1],[43,1],[43,1],[43,1],[43,1],[115,1],[115,1],[115,1],[115,1],[115,1],[115,1],[115,1],[115,1],[115,1],[115,1],[115,1],[115,1],[115,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1]],performAction:function(rn,Zn,an,nn,nr,qt,wi){var Kt=qt.length-1;switch(nr){case 5:nn.parseDirective("%%{","open_directive");break;case 6:nn.parseDirective(qt[Kt],"type_directive");break;case 7:qt[Kt]=qt[Kt].trim().replace(/'/g,'"'),nn.parseDirective(qt[Kt],"arg_directive");break;case 8:nn.parseDirective("}%%","close_directive","flowchart");break;case 10:case 36:case 37:case 38:case 39:case 40:this.$=[];break;case 11:qt[Kt]!==[]&&qt[Kt-1].push(qt[Kt]),this.$=qt[Kt-1];break;case 12:case 82:case 84:case 96:case 152:case 154:case 155:case 78:case 150:this.$=qt[Kt];break;case 19:nn.setDirection("TB"),this.$="TB";break;case 20:nn.setDirection(qt[Kt-1]),this.$=qt[Kt-1];break;case 35:this.$=qt[Kt-1].nodes;break;case 41:this.$=nn.addSubGraph(qt[Kt-6],qt[Kt-1],qt[Kt-4]);break;case 42:this.$=nn.addSubGraph(qt[Kt-3],qt[Kt-1],qt[Kt-3]);break;case 43:this.$=nn.addSubGraph(void 0,qt[Kt-1],void 0);break;case 45:this.$=qt[Kt].trim(),nn.setAccTitle(this.$);break;case 46:case 47:this.$=qt[Kt].trim(),nn.setAccDescription(this.$);break;case 51:nn.addLink(qt[Kt-2].stmt,qt[Kt],qt[Kt-1]),this.$={stmt:qt[Kt],nodes:qt[Kt].concat(qt[Kt-2].nodes)};break;case 52:nn.addLink(qt[Kt-3].stmt,qt[Kt-1],qt[Kt-2]),this.$={stmt:qt[Kt-1],nodes:qt[Kt-1].concat(qt[Kt-3].nodes)};break;case 53:this.$={stmt:qt[Kt-1],nodes:qt[Kt-1]};break;case 54:this.$={stmt:qt[Kt],nodes:qt[Kt]};break;case 55:case 123:case 125:this.$=[qt[Kt]];break;case 56:this.$=qt[Kt-4].concat(qt[Kt]);break;case 57:this.$=[qt[Kt-2]],nn.setClass(qt[Kt-2],qt[Kt]);break;case 58:this.$=qt[Kt-3],nn.addVertex(qt[Kt-3],qt[Kt-1],"square");break;case 59:this.$=qt[Kt-3],nn.addVertex(qt[Kt-3],qt[Kt-1],"doublecircle");break;case 60:this.$=qt[Kt-5],nn.addVertex(qt[Kt-5],qt[Kt-2],"circle");break;case 61:this.$=qt[Kt-3],nn.addVertex(qt[Kt-3],qt[Kt-1],"ellipse");break;case 62:this.$=qt[Kt-3],nn.addVertex(qt[Kt-3],qt[Kt-1],"stadium");break;case 63:this.$=qt[Kt-3],nn.addVertex(qt[Kt-3],qt[Kt-1],"subroutine");break;case 64:this.$=qt[Kt-7],nn.addVertex(qt[Kt-7],qt[Kt-1],"rect",void 0,void 0,void 0,Object.fromEntries([[qt[Kt-5],qt[Kt-3]]]));break;case 65:this.$=qt[Kt-3],nn.addVertex(qt[Kt-3],qt[Kt-1],"cylinder");break;case 66:this.$=qt[Kt-3],nn.addVertex(qt[Kt-3],qt[Kt-1],"round");break;case 67:this.$=qt[Kt-3],nn.addVertex(qt[Kt-3],qt[Kt-1],"diamond");break;case 68:this.$=qt[Kt-5],nn.addVertex(qt[Kt-5],qt[Kt-2],"hexagon");break;case 69:this.$=qt[Kt-3],nn.addVertex(qt[Kt-3],qt[Kt-1],"odd");break;case 70:this.$=qt[Kt-3],nn.addVertex(qt[Kt-3],qt[Kt-1],"trapezoid");break;case 71:this.$=qt[Kt-3],nn.addVertex(qt[Kt-3],qt[Kt-1],"inv_trapezoid");break;case 72:this.$=qt[Kt-3],nn.addVertex(qt[Kt-3],qt[Kt-1],"lean_right");break;case 73:this.$=qt[Kt-3],nn.addVertex(qt[Kt-3],qt[Kt-1],"lean_left");break;case 74:this.$=qt[Kt],nn.addVertex(qt[Kt]);break;case 75:qt[Kt-1].text=qt[Kt],this.$=qt[Kt-1];break;case 76:case 77:qt[Kt-2].text=qt[Kt-1],this.$=qt[Kt-2];break;case 79:var xr=nn.destructLink(qt[Kt],qt[Kt-2]);this.$={type:xr.type,stroke:xr.stroke,length:xr.length,text:qt[Kt-1]};break;case 80:xr=nn.destructLink(qt[Kt]),this.$={type:xr.type,stroke:xr.stroke,length:xr.length};break;case 81:this.$=qt[Kt-1];break;case 83:case 97:case 153:case 151:this.$=qt[Kt-1]+""+qt[Kt];break;case 98:case 99:this.$=qt[Kt-4],nn.addClass(qt[Kt-2],qt[Kt]);break;case 100:this.$=qt[Kt-4],nn.setClass(qt[Kt-2],qt[Kt]);break;case 101:case 109:this.$=qt[Kt-1],nn.setClickEvent(qt[Kt-1],qt[Kt]);break;case 102:case 110:this.$=qt[Kt-3],nn.setClickEvent(qt[Kt-3],qt[Kt-2]),nn.setTooltip(qt[Kt-3],qt[Kt]);break;case 103:this.$=qt[Kt-2],nn.setClickEvent(qt[Kt-2],qt[Kt-1],qt[Kt]);break;case 104:this.$=qt[Kt-4],nn.setClickEvent(qt[Kt-4],qt[Kt-3],qt[Kt-2]),nn.setTooltip(qt[Kt-4],qt[Kt]);break;case 105:case 111:this.$=qt[Kt-1],nn.setLink(qt[Kt-1],qt[Kt]);break;case 106:case 112:this.$=qt[Kt-3],nn.setLink(qt[Kt-3],qt[Kt-2]),nn.setTooltip(qt[Kt-3],qt[Kt]);break;case 107:case 113:this.$=qt[Kt-3],nn.setLink(qt[Kt-3],qt[Kt-2],qt[Kt]);break;case 108:case 114:this.$=qt[Kt-5],nn.setLink(qt[Kt-5],qt[Kt-4],qt[Kt]),nn.setTooltip(qt[Kt-5],qt[Kt-2]);break;case 115:this.$=qt[Kt-4],nn.addVertex(qt[Kt-2],void 0,void 0,qt[Kt]);break;case 116:case 118:this.$=qt[Kt-4],nn.updateLink(qt[Kt-2],qt[Kt]);break;case 117:this.$=qt[Kt-4],nn.updateLink([qt[Kt-2]],qt[Kt]);break;case 119:this.$=qt[Kt-8],nn.updateLinkInterpolate([qt[Kt-6]],qt[Kt-2]),nn.updateLink([qt[Kt-6]],qt[Kt]);break;case 120:this.$=qt[Kt-8],nn.updateLinkInterpolate(qt[Kt-6],qt[Kt-2]),nn.updateLink(qt[Kt-6],qt[Kt]);break;case 121:this.$=qt[Kt-6],nn.updateLinkInterpolate([qt[Kt-4]],qt[Kt]);break;case 122:this.$=qt[Kt-6],nn.updateLinkInterpolate(qt[Kt-4],qt[Kt]);break;case 124:case 126:qt[Kt-2].push(qt[Kt]),this.$=qt[Kt-2];break;case 128:this.$=qt[Kt-1]+qt[Kt];break;case 156:this.$="v";break;case 157:this.$="-";break;case 158:this.$={stmt:"dir",value:"TB"};break;case 159:this.$={stmt:"dir",value:"BT"};break;case 160:this.$={stmt:"dir",value:"RL"};break;case 161:this.$={stmt:"dir",value:"LR"}}},table:[{3:1,4:2,5:3,6:5,12:_,16:4,21:y,22:E,24:A},{1:[3]},{1:[2,1]},{3:10,4:2,5:3,6:5,12:_,16:4,21:y,22:E,24:A},u(w,F,{17:11}),{7:12,13:[1,13]},{16:14,21:y,22:E,24:A},{16:15,21:y,22:E,24:A},{25:[1,16],26:[1,17]},{13:[2,5]},{1:[2,2]},{1:[2,9],18:18,19:19,20:B,21:P,22:G,23:K,32:24,33:25,34:26,35:27,36:28,37:29,38:J,43:31,44:ht,46:tt,48:kt,50:35,51:45,52:at,54:46,66:ut,67:vt,86:Zt,87:Gt,88:xt,89:It,90:wt,91:mt,95:X,105:ot,106:j,109:yt,111:Y,112:bt,116:47,118:Ct,119:$t,120:be,121:We,122:xe,123:pe,124:_e,125:Ae,126:De,127:me},{8:64,10:[1,65],15:wn},u([10,15],[2,6]),u(w,[2,17]),u(w,[2,18]),u(w,[2,19]),{20:[1,68],21:[1,69],22:de,27:67,30:70},u(Qe,[2,11]),u(Qe,[2,12]),u(Qe,[2,13]),u(Qe,[2,14]),u(Qe,[2,15]),u(Qe,[2,16]),{9:72,20:ne,21:Qt,23:se,49:73,78:77,81:[1,78],82:[1,79]},{9:80,20:ne,21:Qt,23:se},{9:81,20:ne,21:Qt,23:se},{9:82,20:ne,21:Qt,23:se},{9:83,20:ne,21:Qt,23:se},{9:84,20:ne,21:Qt,23:se},{9:86,20:ne,21:Qt,22:[1,85],23:se},u(Qe,[2,44]),{45:[1,87]},{47:[1,88]},u(Qe,[2,47]),u(Et,[2,54],{30:89,22:de}),{22:[1,90]},{22:[1,91]},{22:[1,92]},{22:[1,93]},{26:te,52:st,66:dt,67:ft,84:[1,97],91:Mt,97:96,98:[1,94],100:[1,95],105:fe,106:Le,109:en,111:qe,112:sn,115:100,117:98,122:Fe,123:Te,124:Oe,125:Be,126:ge,127:re},u(Qe,[2,158]),u(Qe,[2,159]),u(Qe,[2,160]),u(Qe,[2,161]),u(An,[2,55],{53:[1,116]}),u(Ie,[2,74],{116:129,40:[1,117],52:at,55:[1,118],57:[1,119],59:[1,120],61:[1,121],63:[1,122],65:[1,123],66:ut,67:vt,69:[1,124],71:[1,125],73:[1,126],74:[1,127],76:[1,128],91:mt,95:X,105:ot,106:j,109:yt,111:Y,112:bt,122:xe,123:pe,124:_e,125:Ae,126:De,127:me}),u(ln,[2,150]),u(ln,[2,175]),u(ln,[2,176]),u(ln,[2,177]),u(ln,[2,178]),u(ln,[2,179]),u(ln,[2,180]),u(ln,[2,181]),u(ln,[2,182]),u(ln,[2,183]),u(ln,[2,184]),u(ln,[2,185]),u(ln,[2,186]),u(ln,[2,187]),u(ln,[2,188]),u(ln,[2,189]),u(ln,[2,190]),{9:130,20:ne,21:Qt,23:se},{11:131,14:[1,132]},u(Ye,[2,8]),u(w,[2,20]),u(w,[2,26]),u(w,[2,27]),{21:[1,133]},u(fn,[2,34],{30:134,22:de}),u(Qe,[2,35]),{50:135,51:45,52:at,54:46,66:ut,67:vt,91:mt,95:X,105:ot,106:j,109:yt,111:Y,112:bt,116:47,122:xe,123:pe,124:_e,125:Ae,126:De,127:me},u(Jn,[2,48]),u(Jn,[2,49]),u(Jn,[2,50]),u(Dn,[2,78],{79:136,68:[1,138],80:[1,137]}),{22:Tn,24:Me,26:Ke,38:Xe,39:139,42:Ee,52:st,66:dt,67:ft,73:mn,81:At,83:140,84:vr,85:151,86:Yt,87:Un,88:Rn,89:Vn,90:Mn,91:Hn,92:In,94:142,95:En,105:fe,106:Le,109:Fn,111:qe,112:sn,113:Pn,114:jn,115:148,122:Fe,123:Te,124:Oe,125:Be,126:ge,127:re},u([52,66,67,68,80,91,95,105,106,109,111,112,122,123,124,125,126,127],[2,80]),u(Qe,[2,36]),u(Qe,[2,37]),u(Qe,[2,38]),u(Qe,[2,39]),u(Qe,[2,40]),{22:Tn,24:Me,26:Ke,38:Xe,39:163,42:Ee,52:st,66:dt,67:ft,73:mn,81:At,83:140,84:vr,85:151,86:Yt,87:Un,88:Rn,89:Vn,90:Mn,91:Hn,92:In,94:142,95:En,105:fe,106:Le,109:Fn,111:qe,112:sn,113:Pn,114:jn,115:148,122:Fe,123:Te,124:Oe,125:Be,126:ge,127:re},u(fa,F,{17:164}),u(Qe,[2,45]),u(Qe,[2,46]),u(Et,[2,53],{52:Dr}),{26:te,52:st,66:dt,67:ft,91:Mt,97:166,102:[1,167],105:fe,106:Le,109:en,111:qe,112:sn,115:100,117:98,122:Fe,123:Te,124:Oe,125:Be,126:ge,127:re},{95:[1,168],103:169,105:[1,170]},{26:te,52:st,66:dt,67:ft,91:Mt,95:[1,171],97:172,105:fe,106:Le,109:en,111:qe,112:sn,115:100,117:98,122:Fe,123:Te,124:Oe,125:Be,126:ge,127:re},{26:te,52:st,66:dt,67:ft,91:Mt,97:173,105:fe,106:Le,109:en,111:qe,112:sn,115:100,117:98,122:Fe,123:Te,124:Oe,125:Be,126:ge,127:re},u(Ye,[2,101],{22:[1,174],99:[1,175]}),u(Ye,[2,105],{22:[1,176]}),u(Ye,[2,109],{115:100,117:178,22:[1,177],26:te,52:st,66:dt,67:ft,91:Mt,105:fe,106:Le,109:en,111:qe,112:sn,122:Fe,123:Te,124:Oe,125:Be,126:ge,127:re}),u(Ye,[2,111],{22:[1,179]}),u(Tr,[2,152]),u(Tr,[2,154]),u(Tr,[2,155]),u(Tr,[2,156]),u(Tr,[2,157]),u(Sn,[2,162]),u(Sn,[2,163]),u(Sn,[2,164]),u(Sn,[2,165]),u(Sn,[2,166]),u(Sn,[2,167]),u(Sn,[2,168]),u(Sn,[2,169]),u(Sn,[2,170]),u(Sn,[2,171]),u(Sn,[2,172]),u(Sn,[2,173]),u(Sn,[2,174]),{52:at,54:180,66:ut,67:vt,91:mt,95:X,105:ot,106:j,109:yt,111:Y,112:bt,116:47,122:xe,123:pe,124:_e,125:Ae,126:De,127:me},{22:Tn,24:Me,26:Ke,38:Xe,39:181,42:Ee,52:st,66:dt,67:ft,73:mn,81:At,83:140,84:vr,85:151,86:Yt,87:Un,88:Rn,89:Vn,90:Mn,91:Hn,92:In,94:142,95:En,105:fe,106:Le,109:Fn,111:qe,112:sn,113:Pn,114:jn,115:148,122:Fe,123:Te,124:Oe,125:Be,126:ge,127:re},{22:Tn,24:Me,26:Ke,38:Xe,39:182,42:Ee,52:st,66:dt,67:ft,73:mn,81:At,83:140,84:vr,85:151,86:Yt,87:Un,88:Rn,89:Vn,90:Mn,91:Hn,92:In,94:142,95:En,105:fe,106:Le,109:Fn,111:qe,112:sn,113:Pn,114:jn,115:148,122:Fe,123:Te,124:Oe,125:Be,126:ge,127:re},{22:Tn,24:Me,26:Ke,38:Xe,39:184,42:Ee,52:st,57:[1,183],66:dt,67:ft,73:mn,81:At,83:140,84:vr,85:151,86:Yt,87:Un,88:Rn,89:Vn,90:Mn,91:Hn,92:In,94:142,95:En,105:fe,106:Le,109:Fn,111:qe,112:sn,113:Pn,114:jn,115:148,122:Fe,123:Te,124:Oe,125:Be,126:ge,127:re},{22:Tn,24:Me,26:Ke,38:Xe,39:185,42:Ee,52:st,66:dt,67:ft,73:mn,81:At,83:140,84:vr,85:151,86:Yt,87:Un,88:Rn,89:Vn,90:Mn,91:Hn,92:In,94:142,95:En,105:fe,106:Le,109:Fn,111:qe,112:sn,113:Pn,114:jn,115:148,122:Fe,123:Te,124:Oe,125:Be,126:ge,127:re},{22:Tn,24:Me,26:Ke,38:Xe,39:186,42:Ee,52:st,66:dt,67:ft,73:mn,81:At,83:140,84:vr,85:151,86:Yt,87:Un,88:Rn,89:Vn,90:Mn,91:Hn,92:In,94:142,95:En,105:fe,106:Le,109:Fn,111:qe,112:sn,113:Pn,114:jn,115:148,122:Fe,123:Te,124:Oe,125:Be,126:ge,127:re},{22:Tn,24:Me,26:Ke,38:Xe,39:187,42:Ee,52:st,66:dt,67:ft,73:mn,81:At,83:140,84:vr,85:151,86:Yt,87:Un,88:Rn,89:Vn,90:Mn,91:Hn,92:In,94:142,95:En,105:fe,106:Le,109:Fn,111:qe,112:sn,113:Pn,114:jn,115:148,122:Fe,123:Te,124:Oe,125:Be,126:ge,127:re},{66:[1,188]},{22:Tn,24:Me,26:Ke,38:Xe,39:189,42:Ee,52:st,66:dt,67:ft,73:mn,81:At,83:140,84:vr,85:151,86:Yt,87:Un,88:Rn,89:Vn,90:Mn,91:Hn,92:In,94:142,95:En,105:fe,106:Le,109:Fn,111:qe,112:sn,113:Pn,114:jn,115:148,122:Fe,123:Te,124:Oe,125:Be,126:ge,127:re},{22:Tn,24:Me,26:Ke,38:Xe,39:190,42:Ee,52:st,66:dt,67:ft,71:[1,191],73:mn,81:At,83:140,84:vr,85:151,86:Yt,87:Un,88:Rn,89:Vn,90:Mn,91:Hn,92:In,94:142,95:En,105:fe,106:Le,109:Fn,111:qe,112:sn,113:Pn,114:jn,115:148,122:Fe,123:Te,124:Oe,125:Be,126:ge,127:re},{22:Tn,24:Me,26:Ke,38:Xe,39:192,42:Ee,52:st,66:dt,67:ft,73:mn,81:At,83:140,84:vr,85:151,86:Yt,87:Un,88:Rn,89:Vn,90:Mn,91:Hn,92:In,94:142,95:En,105:fe,106:Le,109:Fn,111:qe,112:sn,113:Pn,114:jn,115:148,122:Fe,123:Te,124:Oe,125:Be,126:ge,127:re},{22:Tn,24:Me,26:Ke,38:Xe,39:193,42:Ee,52:st,66:dt,67:ft,73:mn,81:At,83:140,84:vr,85:151,86:Yt,87:Un,88:Rn,89:Vn,90:Mn,91:Hn,92:In,94:142,95:En,105:fe,106:Le,109:Fn,111:qe,112:sn,113:Pn,114:jn,115:148,122:Fe,123:Te,124:Oe,125:Be,126:ge,127:re},{22:Tn,24:Me,26:Ke,38:Xe,39:194,42:Ee,52:st,66:dt,67:ft,73:mn,81:At,83:140,84:vr,85:151,86:Yt,87:Un,88:Rn,89:Vn,90:Mn,91:Hn,92:In,94:142,95:En,105:fe,106:Le,109:Fn,111:qe,112:sn,113:Pn,114:jn,115:148,122:Fe,123:Te,124:Oe,125:Be,126:ge,127:re},u(ln,[2,151]),u(oi,[2,3]),{8:195,15:wn},{15:[2,7]},u(w,[2,28]),u(fn,[2,33]),u(Et,[2,51],{30:196,22:de}),u(Dn,[2,75],{22:[1,197]}),{22:[1,198]},{22:Tn,24:Me,26:Ke,38:Xe,39:199,42:Ee,52:st,66:dt,67:ft,73:mn,81:At,83:140,84:vr,85:151,86:Yt,87:Un,88:Rn,89:Vn,90:Mn,91:Hn,92:In,94:142,95:En,105:fe,106:Le,109:Fn,111:qe,112:sn,113:Pn,114:jn,115:148,122:Fe,123:Te,124:Oe,125:Be,126:ge,127:re},{22:Tn,24:Me,26:Ke,38:Xe,42:Ee,52:st,66:dt,67:ft,73:mn,81:At,82:[1,200],83:201,85:151,86:Yt,87:Un,88:Rn,89:Vn,90:Mn,91:Hn,92:In,94:142,95:En,105:fe,106:Le,109:Fn,111:qe,112:sn,113:Pn,114:jn,115:148,122:Fe,123:Te,124:Oe,125:Be,126:ge,127:re},u(Sn,[2,82]),u(Sn,[2,84]),u(Sn,[2,140]),u(Sn,[2,141]),u(Sn,[2,142]),u(Sn,[2,143]),u(Sn,[2,144]),u(Sn,[2,145]),u(Sn,[2,146]),u(Sn,[2,147]),u(Sn,[2,148]),u(Sn,[2,149]),u(Sn,[2,85]),u(Sn,[2,86]),u(Sn,[2,87]),u(Sn,[2,88]),u(Sn,[2,89]),u(Sn,[2,90]),u(Sn,[2,91]),u(Sn,[2,92]),u(Sn,[2,93]),u(Sn,[2,94]),u(Sn,[2,95]),{9:203,20:ne,21:Qt,22:Tn,23:se,24:Me,26:Ke,38:Xe,40:[1,202],42:Ee,52:st,66:dt,67:ft,73:mn,81:At,83:201,85:151,86:Yt,87:Un,88:Rn,89:Vn,90:Mn,91:Hn,92:In,94:142,95:En,105:fe,106:Le,109:Fn,111:qe,112:sn,113:Pn,114:jn,115:148,122:Fe,123:Te,124:Oe,125:Be,126:ge,127:re},{18:18,19:19,20:B,21:P,22:G,23:K,32:24,33:25,34:26,35:27,36:28,37:29,38:J,42:[1,204],43:31,44:ht,46:tt,48:kt,50:35,51:45,52:at,54:46,66:ut,67:vt,86:Zt,87:Gt,88:xt,89:It,90:wt,91:mt,95:X,105:ot,106:j,109:yt,111:Y,112:bt,116:47,118:Ct,119:$t,120:be,121:We,122:xe,123:pe,124:_e,125:Ae,126:De,127:me},{22:de,30:205},{22:[1,206],26:te,52:st,66:dt,67:ft,91:Mt,105:fe,106:Le,109:en,111:qe,112:sn,115:100,117:178,122:Fe,123:Te,124:Oe,125:Be,126:ge,127:re},{22:[1,207]},{22:[1,208]},{22:[1,209],106:[1,210]},u(Nn,[2,123]),{22:[1,211]},{22:[1,212],26:te,52:st,66:dt,67:ft,91:Mt,105:fe,106:Le,109:en,111:qe,112:sn,115:100,117:178,122:Fe,123:Te,124:Oe,125:Be,126:ge,127:re},{22:[1,213],26:te,52:st,66:dt,67:ft,91:Mt,105:fe,106:Le,109:en,111:qe,112:sn,115:100,117:178,122:Fe,123:Te,124:Oe,125:Be,126:ge,127:re},{84:[1,214]},u(Ye,[2,103],{22:[1,215]}),{84:[1,216],101:[1,217]},{84:[1,218]},u(Tr,[2,153]),{84:[1,219],101:[1,220]},u(An,[2,57],{116:129,52:at,66:ut,67:vt,91:mt,95:X,105:ot,106:j,109:yt,111:Y,112:bt,122:xe,123:pe,124:_e,125:Ae,126:De,127:me}),{22:Tn,24:Me,26:Ke,38:Xe,41:[1,221],42:Ee,52:st,66:dt,67:ft,73:mn,81:At,83:201,85:151,86:Yt,87:Un,88:Rn,89:Vn,90:Mn,91:Hn,92:In,94:142,95:En,105:fe,106:Le,109:Fn,111:qe,112:sn,113:Pn,114:jn,115:148,122:Fe,123:Te,124:Oe,125:Be,126:ge,127:re},{22:Tn,24:Me,26:Ke,38:Xe,42:Ee,52:st,56:[1,222],66:dt,67:ft,73:mn,81:At,83:201,85:151,86:Yt,87:Un,88:Rn,89:Vn,90:Mn,91:Hn,92:In,94:142,95:En,105:fe,106:Le,109:Fn,111:qe,112:sn,113:Pn,114:jn,115:148,122:Fe,123:Te,124:Oe,125:Be,126:ge,127:re},{22:Tn,24:Me,26:Ke,38:Xe,39:223,42:Ee,52:st,66:dt,67:ft,73:mn,81:At,83:140,84:vr,85:151,86:Yt,87:Un,88:Rn,89:Vn,90:Mn,91:Hn,92:In,94:142,95:En,105:fe,106:Le,109:Fn,111:qe,112:sn,113:Pn,114:jn,115:148,122:Fe,123:Te,124:Oe,125:Be,126:ge,127:re},{22:Tn,24:Me,26:Ke,38:Xe,42:Ee,52:st,58:[1,224],66:dt,67:ft,73:mn,81:At,83:201,85:151,86:Yt,87:Un,88:Rn,89:Vn,90:Mn,91:Hn,92:In,94:142,95:En,105:fe,106:Le,109:Fn,111:qe,112:sn,113:Pn,114:jn,115:148,122:Fe,123:Te,124:Oe,125:Be,126:ge,127:re},{22:Tn,24:Me,26:Ke,38:Xe,42:Ee,52:st,60:[1,225],66:dt,67:ft,73:mn,81:At,83:201,85:151,86:Yt,87:Un,88:Rn,89:Vn,90:Mn,91:Hn,92:In,94:142,95:En,105:fe,106:Le,109:Fn,111:qe,112:sn,113:Pn,114:jn,115:148,122:Fe,123:Te,124:Oe,125:Be,126:ge,127:re},{22:Tn,24:Me,26:Ke,38:Xe,42:Ee,52:st,62:[1,226],66:dt,67:ft,73:mn,81:At,83:201,85:151,86:Yt,87:Un,88:Rn,89:Vn,90:Mn,91:Hn,92:In,94:142,95:En,105:fe,106:Le,109:Fn,111:qe,112:sn,113:Pn,114:jn,115:148,122:Fe,123:Te,124:Oe,125:Be,126:ge,127:re},{22:Tn,24:Me,26:Ke,38:Xe,42:Ee,52:st,64:[1,227],66:dt,67:ft,73:mn,81:At,83:201,85:151,86:Yt,87:Un,88:Rn,89:Vn,90:Mn,91:Hn,92:In,94:142,95:En,105:fe,106:Le,109:Fn,111:qe,112:sn,113:Pn,114:jn,115:148,122:Fe,123:Te,124:Oe,125:Be,126:ge,127:re},{67:[1,228]},{22:Tn,24:Me,26:Ke,38:Xe,42:Ee,52:st,66:dt,67:ft,70:[1,229],73:mn,81:At,83:201,85:151,86:Yt,87:Un,88:Rn,89:Vn,90:Mn,91:Hn,92:In,94:142,95:En,105:fe,106:Le,109:Fn,111:qe,112:sn,113:Pn,114:jn,115:148,122:Fe,123:Te,124:Oe,125:Be,126:ge,127:re},{22:Tn,24:Me,26:Ke,38:Xe,42:Ee,52:st,66:dt,67:ft,72:[1,230],73:mn,81:At,83:201,85:151,86:Yt,87:Un,88:Rn,89:Vn,90:Mn,91:Hn,92:In,94:142,95:En,105:fe,106:Le,109:Fn,111:qe,112:sn,113:Pn,114:jn,115:148,122:Fe,123:Te,124:Oe,125:Be,126:ge,127:re},{22:Tn,24:Me,26:Ke,38:Xe,39:231,42:Ee,52:st,66:dt,67:ft,73:mn,81:At,83:140,84:vr,85:151,86:Yt,87:Un,88:Rn,89:Vn,90:Mn,91:Hn,92:In,94:142,95:En,105:fe,106:Le,109:Fn,111:qe,112:sn,113:Pn,114:jn,115:148,122:Fe,123:Te,124:Oe,125:Be,126:ge,127:re},{22:Tn,24:Me,26:Ke,38:Xe,41:[1,232],42:Ee,52:st,66:dt,67:ft,73:mn,81:At,83:201,85:151,86:Yt,87:Un,88:Rn,89:Vn,90:Mn,91:Hn,92:In,94:142,95:En,105:fe,106:Le,109:Fn,111:qe,112:sn,113:Pn,114:jn,115:148,122:Fe,123:Te,124:Oe,125:Be,126:ge,127:re},{22:Tn,24:Me,26:Ke,38:Xe,42:Ee,52:st,66:dt,67:ft,73:mn,75:[1,233],77:[1,234],81:At,83:201,85:151,86:Yt,87:Un,88:Rn,89:Vn,90:Mn,91:Hn,92:In,94:142,95:En,105:fe,106:Le,109:Fn,111:qe,112:sn,113:Pn,114:jn,115:148,122:Fe,123:Te,124:Oe,125:Be,126:ge,127:re},{22:Tn,24:Me,26:Ke,38:Xe,42:Ee,52:st,66:dt,67:ft,73:mn,75:[1,236],77:[1,235],81:At,83:201,85:151,86:Yt,87:Un,88:Rn,89:Vn,90:Mn,91:Hn,92:In,94:142,95:En,105:fe,106:Le,109:Fn,111:qe,112:sn,113:Pn,114:jn,115:148,122:Fe,123:Te,124:Oe,125:Be,126:ge,127:re},{9:237,20:ne,21:Qt,23:se},u(Et,[2,52],{52:Dr}),u(Dn,[2,77]),u(Dn,[2,76]),{22:Tn,24:Me,26:Ke,38:Xe,42:Ee,52:st,66:dt,67:ft,68:[1,238],73:mn,81:At,83:201,85:151,86:Yt,87:Un,88:Rn,89:Vn,90:Mn,91:Hn,92:In,94:142,95:En,105:fe,106:Le,109:Fn,111:qe,112:sn,113:Pn,114:jn,115:148,122:Fe,123:Te,124:Oe,125:Be,126:ge,127:re},u(Dn,[2,79]),u(Sn,[2,83]),{22:Tn,24:Me,26:Ke,38:Xe,39:239,42:Ee,52:st,66:dt,67:ft,73:mn,81:At,83:140,84:vr,85:151,86:Yt,87:Un,88:Rn,89:Vn,90:Mn,91:Hn,92:In,94:142,95:En,105:fe,106:Le,109:Fn,111:qe,112:sn,113:Pn,114:jn,115:148,122:Fe,123:Te,124:Oe,125:Be,126:ge,127:re},u(fa,F,{17:240}),u(Qe,[2,43]),{51:241,52:at,54:46,66:ut,67:vt,91:mt,95:X,105:ot,106:j,109:yt,111:Y,112:bt,116:47,122:xe,123:pe,124:_e,125:Ae,126:De,127:me},{22:_r,66:Cr,67:yr,86:qr,96:242,102:Dt,105:Ar,107:243,108:244,109:Nr,110:Gn,111:Zr,112:Ur,113:Ir},{22:_r,66:Cr,67:yr,86:qr,96:256,102:Dt,105:Ar,107:243,108:244,109:Nr,110:Gn,111:Zr,112:Ur,113:Ir},{22:_r,66:Cr,67:yr,86:qr,96:257,102:Dt,104:[1,258],105:Ar,107:243,108:244,109:Nr,110:Gn,111:Zr,112:Ur,113:Ir},{22:_r,66:Cr,67:yr,86:qr,96:259,102:Dt,104:[1,260],105:Ar,107:243,108:244,109:Nr,110:Gn,111:Zr,112:Ur,113:Ir},{105:[1,261]},{22:_r,66:Cr,67:yr,86:qr,96:262,102:Dt,105:Ar,107:243,108:244,109:Nr,110:Gn,111:Zr,112:Ur,113:Ir},{22:_r,66:Cr,67:yr,86:qr,96:263,102:Dt,105:Ar,107:243,108:244,109:Nr,110:Gn,111:Zr,112:Ur,113:Ir},{26:te,52:st,66:dt,67:ft,91:Mt,97:264,105:fe,106:Le,109:en,111:qe,112:sn,115:100,117:98,122:Fe,123:Te,124:Oe,125:Be,126:ge,127:re},u(Ye,[2,102]),{84:[1,265]},u(Ye,[2,106],{22:[1,266]}),u(Ye,[2,107]),u(Ye,[2,110]),u(Ye,[2,112],{22:[1,267]}),u(Ye,[2,113]),u(Ie,[2,58]),u(Ie,[2,59]),{22:Tn,24:Me,26:Ke,38:Xe,42:Ee,52:st,58:[1,268],66:dt,67:ft,73:mn,81:At,83:201,85:151,86:Yt,87:Un,88:Rn,89:Vn,90:Mn,91:Hn,92:In,94:142,95:En,105:fe,106:Le,109:Fn,111:qe,112:sn,113:Pn,114:jn,115:148,122:Fe,123:Te,124:Oe,125:Be,126:ge,127:re},u(Ie,[2,66]),u(Ie,[2,61]),u(Ie,[2,62]),u(Ie,[2,63]),{66:[1,269]},u(Ie,[2,65]),u(Ie,[2,67]),{22:Tn,24:Me,26:Ke,38:Xe,42:Ee,52:st,66:dt,67:ft,72:[1,270],73:mn,81:At,83:201,85:151,86:Yt,87:Un,88:Rn,89:Vn,90:Mn,91:Hn,92:In,94:142,95:En,105:fe,106:Le,109:Fn,111:qe,112:sn,113:Pn,114:jn,115:148,122:Fe,123:Te,124:Oe,125:Be,126:ge,127:re},u(Ie,[2,69]),u(Ie,[2,70]),u(Ie,[2,72]),u(Ie,[2,71]),u(Ie,[2,73]),u(oi,[2,4]),u([22,52,66,67,91,95,105,106,109,111,112,122,123,124,125,126,127],[2,81]),{22:Tn,24:Me,26:Ke,38:Xe,41:[1,271],42:Ee,52:st,66:dt,67:ft,73:mn,81:At,83:201,85:151,86:Yt,87:Un,88:Rn,89:Vn,90:Mn,91:Hn,92:In,94:142,95:En,105:fe,106:Le,109:Fn,111:qe,112:sn,113:Pn,114:jn,115:148,122:Fe,123:Te,124:Oe,125:Be,126:ge,127:re},{18:18,19:19,20:B,21:P,22:G,23:K,32:24,33:25,34:26,35:27,36:28,37:29,38:J,42:[1,272],43:31,44:ht,46:tt,48:kt,50:35,51:45,52:at,54:46,66:ut,67:vt,86:Zt,87:Gt,88:xt,89:It,90:wt,91:mt,95:X,105:ot,106:j,109:yt,111:Y,112:bt,116:47,118:Ct,119:$t,120:be,121:We,122:xe,123:pe,124:_e,125:Ae,126:De,127:me},u(An,[2,56]),u(Ye,[2,115],{106:Qr}),u(xa,[2,125],{108:274,22:_r,66:Cr,67:yr,86:qr,102:Dt,105:Ar,109:Nr,110:Gn,111:Zr,112:Ur,113:Ir}),u(cr,[2,127]),u(cr,[2,129]),u(cr,[2,130]),u(cr,[2,131]),u(cr,[2,132]),u(cr,[2,133]),u(cr,[2,134]),u(cr,[2,135]),u(cr,[2,136]),u(cr,[2,137]),u(cr,[2,138]),u(cr,[2,139]),u(Ye,[2,116],{106:Qr}),u(Ye,[2,117],{106:Qr}),{22:[1,275]},u(Ye,[2,118],{106:Qr}),{22:[1,276]},u(Nn,[2,124]),u(Ye,[2,98],{106:Qr}),u(Ye,[2,99],{106:Qr}),u(Ye,[2,100],{115:100,117:178,26:te,52:st,66:dt,67:ft,91:Mt,105:fe,106:Le,109:en,111:qe,112:sn,122:Fe,123:Te,124:Oe,125:Be,126:ge,127:re}),u(Ye,[2,104]),{101:[1,277]},{101:[1,278]},{58:[1,279]},{68:[1,280]},{72:[1,281]},{9:282,20:ne,21:Qt,23:se},u(Qe,[2,42]),{22:_r,66:Cr,67:yr,86:qr,102:Dt,105:Ar,107:283,108:244,109:Nr,110:Gn,111:Zr,112:Ur,113:Ir},u(cr,[2,128]),{26:te,52:st,66:dt,67:ft,91:Mt,97:284,105:fe,106:Le,109:en,111:qe,112:sn,115:100,117:98,122:Fe,123:Te,124:Oe,125:Be,126:ge,127:re},{26:te,52:st,66:dt,67:ft,91:Mt,97:285,105:fe,106:Le,109:en,111:qe,112:sn,115:100,117:98,122:Fe,123:Te,124:Oe,125:Be,126:ge,127:re},u(Ye,[2,108]),u(Ye,[2,114]),u(Ie,[2,60]),{22:Tn,24:Me,26:Ke,38:Xe,39:286,42:Ee,52:st,66:dt,67:ft,73:mn,81:At,83:140,84:vr,85:151,86:Yt,87:Un,88:Rn,89:Vn,90:Mn,91:Hn,92:In,94:142,95:En,105:fe,106:Le,109:Fn,111:qe,112:sn,113:Pn,114:jn,115:148,122:Fe,123:Te,124:Oe,125:Be,126:ge,127:re},u(Ie,[2,68]),u(fa,F,{17:287}),u(xa,[2,126],{108:274,22:_r,66:Cr,67:yr,86:qr,102:Dt,105:Ar,109:Nr,110:Gn,111:Zr,112:Ur,113:Ir}),u(Ye,[2,121],{115:100,117:178,22:[1,288],26:te,52:st,66:dt,67:ft,91:Mt,105:fe,106:Le,109:en,111:qe,112:sn,122:Fe,123:Te,124:Oe,125:Be,126:ge,127:re}),u(Ye,[2,122],{115:100,117:178,22:[1,289],26:te,52:st,66:dt,67:ft,91:Mt,105:fe,106:Le,109:en,111:qe,112:sn,122:Fe,123:Te,124:Oe,125:Be,126:ge,127:re}),{22:Tn,24:Me,26:Ke,38:Xe,41:[1,290],42:Ee,52:st,66:dt,67:ft,73:mn,81:At,83:201,85:151,86:Yt,87:Un,88:Rn,89:Vn,90:Mn,91:Hn,92:In,94:142,95:En,105:fe,106:Le,109:Fn,111:qe,112:sn,113:Pn,114:jn,115:148,122:Fe,123:Te,124:Oe,125:Be,126:ge,127:re},{18:18,19:19,20:B,21:P,22:G,23:K,32:24,33:25,34:26,35:27,36:28,37:29,38:J,42:[1,291],43:31,44:ht,46:tt,48:kt,50:35,51:45,52:at,54:46,66:ut,67:vt,86:Zt,87:Gt,88:xt,89:It,90:wt,91:mt,95:X,105:ot,106:j,109:yt,111:Y,112:bt,116:47,118:Ct,119:$t,120:be,121:We,122:xe,123:pe,124:_e,125:Ae,126:De,127:me},{22:_r,66:Cr,67:yr,86:qr,96:292,102:Dt,105:Ar,107:243,108:244,109:Nr,110:Gn,111:Zr,112:Ur,113:Ir},{22:_r,66:Cr,67:yr,86:qr,96:293,102:Dt,105:Ar,107:243,108:244,109:Nr,110:Gn,111:Zr,112:Ur,113:Ir},u(Ie,[2,64]),u(Qe,[2,41]),u(Ye,[2,119],{106:Qr}),u(Ye,[2,120],{106:Qr})],defaultActions:{2:[2,1],9:[2,5],10:[2,2],132:[2,7]},parseError:function(rn,Zn){if(!Zn.recoverable){var an=new Error(rn);throw an.hash=Zn,an}this.trace(rn)},parse:function(rn){var Zn=this,an=[0],nn=[],nr=[null],qt=[],wi=this.table,Kt="",xr=0,Or=0,Vr=0,li=2,ka=1,hr=qt.slice.call(arguments,1),xn=Object.create(this.lexer),ra={yy:{}};for(var On in this.yy)Object.prototype.hasOwnProperty.call(this.yy,On)&&(ra.yy[On]=this.yy[On]);xn.setInput(rn,ra.yy),ra.yy.lexer=xn,ra.yy.parser=this,xn.yylloc===void 0&&(xn.yylloc={});var bi=xn.yylloc;qt.push(bi);var si=xn.options&&xn.options.ranges;function Oi(){var ti;return typeof(ti=nn.pop()||xn.lex()||ka)!="number"&&(ti instanceof Array&&(ti=(nn=ti).pop()),ti=Zn.symbols_[ti]||ti),ti}typeof ra.yy.parseError=="function"?this.parseError=ra.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var lr,Kr,Hr,Gr,ni,Ti,Xr,wa,Ba,pr={};;){if(Hr=an[an.length-1],this.defaultActions[Hr]?Gr=this.defaultActions[Hr]:(lr==null&&(lr=Oi()),Gr=wi[Hr]&&wi[Hr][lr]),Gr===void 0||!Gr.length||!Gr[0]){var Jr="";for(Ti in Ba=[],wi[Hr])this.terminals_[Ti]&&Ti>li&&Ba.push("'"+this.terminals_[Ti]+"'");Jr=xn.showPosition?"Parse error on line "+(xr+1)+`:
`+xn.showPosition()+`
Expecting `+Ba.join(", ")+", got '"+(this.terminals_[lr]||lr)+"'":"Parse error on line "+(xr+1)+": Unexpected "+(lr==ka?"end of input":"'"+(this.terminals_[lr]||lr)+"'"),this.parseError(Jr,{text:xn.match,token:this.terminals_[lr]||lr,line:xn.yylineno,loc:bi,expected:Ba})}if(Gr[0]instanceof Array&&Gr.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Hr+", token: "+lr);switch(Gr[0]){case 1:an.push(lr),nr.push(xn.yytext),qt.push(xn.yylloc),an.push(Gr[1]),lr=null,Kr?(lr=Kr,Kr=null):(Or=xn.yyleng,Kt=xn.yytext,xr=xn.yylineno,bi=xn.yylloc,Vr>0);break;case 2:if(Xr=this.productions_[Gr[1]][1],pr.$=nr[nr.length-Xr],pr._$={first_line:qt[qt.length-(Xr||1)].first_line,last_line:qt[qt.length-1].last_line,first_column:qt[qt.length-(Xr||1)].first_column,last_column:qt[qt.length-1].last_column},si&&(pr._$.range=[qt[qt.length-(Xr||1)].range[0],qt[qt.length-1].range[1]]),(ni=this.performAction.apply(pr,[Kt,Or,xr,ra.yy,Gr[1],nr,qt].concat(hr)))!==void 0)return ni;Xr&&(an=an.slice(0,-1*Xr*2),nr=nr.slice(0,-1*Xr),qt=qt.slice(0,-1*Xr)),an.push(this.productions_[Gr[1]][0]),nr.push(pr.$),qt.push(pr._$),wa=wi[an[an.length-2]][an[an.length-1]],an.push(wa);break;case 3:return!0}}return!0}},na={EOF:1,parseError:function(rn,Zn){if(!this.yy.parser)throw new Error(rn);this.yy.parser.parseError(rn,Zn)},setInput:function(rn,Zn){return this.yy=Zn||this.yy||{},this._input=rn,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var rn=this._input[0];return this.yytext+=rn,this.yyleng++,this.offset++,this.match+=rn,this.matched+=rn,rn.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),rn},unput:function(rn){var Zn=rn.length,an=rn.split(/(?:\r\n?|\n)/g);this._input=rn+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-Zn),this.offset-=Zn;var nn=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),an.length-1&&(this.yylineno-=an.length-1);var nr=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:an?(an.length===nn.length?this.yylloc.first_column:0)+nn[nn.length-an.length].length-an[0].length:this.yylloc.first_column-Zn},this.options.ranges&&(this.yylloc.range=[nr[0],nr[0]+this.yyleng-Zn]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(rn){this.unput(this.match.slice(rn))},pastInput:function(){var rn=this.matched.substr(0,this.matched.length-this.match.length);return(rn.length>20?"...":"")+rn.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var rn=this.match;return rn.length<20&&(rn+=this._input.substr(0,20-rn.length)),(rn.substr(0,20)+(rn.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var rn=this.pastInput(),Zn=new Array(rn.length+1).join("-");return rn+this.upcomingInput()+`
`+Zn+"^"},test_match:function(rn,Zn){var an,nn,nr;if(this.options.backtrack_lexer&&(nr={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(nr.yylloc.range=this.yylloc.range.slice(0))),(nn=rn[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=nn.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:nn?nn[nn.length-1].length-nn[nn.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+rn[0].length},this.yytext+=rn[0],this.match+=rn[0],this.matches=rn,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(rn[0].length),this.matched+=rn[0],an=this.performAction.call(this,this.yy,this,Zn,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),an)return an;if(this._backtrack){for(var qt in nr)this[qt]=nr[qt];return!1}return!1},next:function(){if(this.done)return this.EOF;var rn,Zn,an,nn;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var nr=this._currentRules(),qt=0;qt<nr.length;qt++)if((an=this._input.match(this.rules[nr[qt]]))&&(!Zn||an[0].length>Zn[0].length)){if(Zn=an,nn=qt,this.options.backtrack_lexer){if((rn=this.test_match(an,nr[qt]))!==!1)return rn;if(this._backtrack){Zn=!1;continue}return!1}if(!this.options.flex)break}return Zn?(rn=this.test_match(Zn,nr[nn]))!==!1&&rn:this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(rn){this.conditionStack.push(rn)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(rn){return(rn=this.conditionStack.length-1-Math.abs(rn||0))>=0?this.conditionStack[rn]:"INITIAL"},pushState:function(rn){this.begin(rn)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(rn,Zn,an,nn){switch(an){case 0:return this.begin("open_directive"),12;case 1:return this.begin("type_directive"),13;case 2:return this.popState(),this.begin("arg_directive"),10;case 3:return this.popState(),this.popState(),15;case 4:return 14;case 5:case 6:break;case 7:return this.begin("acc_title"),44;case 8:return this.popState(),"acc_title_value";case 9:return this.begin("acc_descr"),46;case 10:return this.popState(),"acc_descr_value";case 11:this.begin("acc_descr_multiline");break;case 12:case 15:case 24:case 27:case 30:case 33:this.popState();break;case 13:return"acc_descr_multiline_value";case 14:this.begin("string");break;case 16:return"STR";case 17:return 86;case 18:return 95;case 19:return 87;case 20:return 104;case 21:return 88;case 22:return 89;case 23:this.begin("href");break;case 25:return 100;case 26:this.begin("callbackname");break;case 28:this.popState(),this.begin("callbackargs");break;case 29:return 98;case 31:return 99;case 32:this.begin("click");break;case 34:return 90;case 35:case 36:return rn.lex.firstGraph()&&this.begin("dir"),24;case 37:return 38;case 38:return 42;case 39:case 40:case 41:case 42:return 101;case 43:return this.popState(),25;case 44:case 45:case 46:case 47:case 48:case 49:case 50:case 51:case 52:case 53:return this.popState(),26;case 54:return 118;case 55:return 119;case 56:return 120;case 57:return 121;case 58:return 105;case 59:return 111;case 60:return 53;case 61:return 67;case 62:return 52;case 63:return 20;case 64:return 106;case 65:return 126;case 66:case 67:case 68:return 82;case 69:case 70:case 71:return 81;case 72:return 59;case 73:return 60;case 74:return 61;case 75:return 62;case 76:return 63;case 77:return 64;case 78:return 65;case 79:return 69;case 80:return 70;case 81:return 55;case 82:return 56;case 83:return 109;case 84:return 112;case 85:return 127;case 86:return 124;case 87:return 113;case 88:case 89:return 125;case 90:return 114;case 91:return 73;case 92:return 92;case 93:return"SEP";case 94:return 91;case 95:return 66;case 96:return 75;case 97:return 74;case 98:return 77;case 99:return 76;case 100:return 122;case 101:return 123;case 102:return 68;case 103:return 57;case 104:return 58;case 105:return 40;case 106:return 41;case 107:return 71;case 108:return 72;case 109:return 133;case 110:return 21;case 111:return 22;case 112:return 23}},rules:[/^(?:%%\{)/,/^(?:((?:(?!\}%%)[^:.])*))/,/^(?::)/,/^(?:\}%%)/,/^(?:((?:(?!\}%%).|\n)*))/,/^(?:%%(?!\{)[^\n]*)/,/^(?:[^\}]%%[^\n]*)/,/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:style\b)/,/^(?:default\b)/,/^(?:linkStyle\b)/,/^(?:interpolate\b)/,/^(?:classDef\b)/,/^(?:class\b)/,/^(?:href[\s]+["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:call[\s]+)/,/^(?:\([\s]*\))/,/^(?:\()/,/^(?:[^(]*)/,/^(?:\))/,/^(?:[^)]*)/,/^(?:click[\s]+)/,/^(?:[\s\n])/,/^(?:[^\s\n]*)/,/^(?:graph\b)/,/^(?:flowchart\b)/,/^(?:subgraph\b)/,/^(?:end\b\s*)/,/^(?:_self\b)/,/^(?:_blank\b)/,/^(?:_parent\b)/,/^(?:_top\b)/,/^(?:(\r?\n)*\s*\n)/,/^(?:\s*LR\b)/,/^(?:\s*RL\b)/,/^(?:\s*TB\b)/,/^(?:\s*BT\b)/,/^(?:\s*TD\b)/,/^(?:\s*BR\b)/,/^(?:\s*<)/,/^(?:\s*>)/,/^(?:\s*\^)/,/^(?:\s*v\b)/,/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:[0-9]+)/,/^(?:#)/,/^(?::::)/,/^(?::)/,/^(?:&)/,/^(?:;)/,/^(?:,)/,/^(?:\*)/,/^(?:\s*[xo<]?--+[-xo>]\s*)/,/^(?:\s*[xo<]?==+[=xo>]\s*)/,/^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/,/^(?:\s*[xo<]?--\s*)/,/^(?:\s*[xo<]?==\s*)/,/^(?:\s*[xo<]?-\.\s*)/,/^(?:\(-)/,/^(?:-\))/,/^(?:\(\[)/,/^(?:\]\))/,/^(?:\[\[)/,/^(?:\]\])/,/^(?:\[\|)/,/^(?:\[\()/,/^(?:\)\])/,/^(?:\(\(\()/,/^(?:\)\)\))/,/^(?:-)/,/^(?:\.)/,/^(?:[\_])/,/^(?:\+)/,/^(?:%)/,/^(?:=)/,/^(?:=)/,/^(?:<)/,/^(?:>)/,/^(?:\^)/,/^(?:\\\|)/,/^(?:v\b)/,/^(?:[A-Za-z]+)/,/^(?:\\\])/,/^(?:\[\/)/,/^(?:\/\])/,/^(?:\[\\)/,/^(?:[!"#$%&'*+,-.`?\\_/])/,/^(?:[\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6]|[\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377]|[\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5]|[\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA]|[\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE]|[\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA]|[\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0]|[\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977]|[\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2]|[\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A]|[\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39]|[\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8]|[\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C]|[\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C]|[\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99]|[\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0]|[\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D]|[\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3]|[\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10]|[\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1]|[\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81]|[\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3]|[\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6]|[\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A]|[\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081]|[\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D]|[\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0]|[\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310]|[\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C]|[\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711]|[\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7]|[\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C]|[\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16]|[\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF]|[\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC]|[\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D]|[\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D]|[\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3]|[\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F]|[\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128]|[\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184]|[\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3]|[\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6]|[\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE]|[\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C]|[\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D]|[\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC]|[\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B]|[\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788]|[\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805]|[\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB]|[\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28]|[\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5]|[\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4]|[\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E]|[\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D]|[\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36]|[\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D]|[\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC]|[\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF]|[\uFFD2-\uFFD7\uFFDA-\uFFDC])/,/^(?:\|)/,/^(?:\()/,/^(?:\))/,/^(?:\[)/,/^(?:\])/,/^(?:\{)/,/^(?:\})/,/^(?:")/,/^(?:(\r?\n)+)/,/^(?:\s)/,/^(?:$)/],conditions:{close_directive:{rules:[],inclusive:!1},arg_directive:{rules:[3,4],inclusive:!1},type_directive:{rules:[2,3],inclusive:!1},open_directive:{rules:[1],inclusive:!1},callbackargs:{rules:[30,31],inclusive:!1},callbackname:{rules:[27,28,29],inclusive:!1},href:{rules:[24,25],inclusive:!1},click:{rules:[33,34],inclusive:!1},vertex:{rules:[],inclusive:!1},dir:{rules:[43,44,45,46,47,48,49,50,51,52,53],inclusive:!1},acc_descr_multiline:{rules:[12,13],inclusive:!1},acc_descr:{rules:[10],inclusive:!1},acc_title:{rules:[8],inclusive:!1},string:{rules:[15,16],inclusive:!1},INITIAL:{rules:[0,5,6,7,9,11,14,17,18,19,20,21,22,23,26,32,35,36,37,38,39,40,41,42,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112],inclusive:!0}}};function Ni(){this.yy={}}return ea.lexer=na,Ni.prototype=ea,ea.Parser=Ni,new Ni}();z.parser=b,z.Parser=b.Parser,z.parse=function(){return b.parse.apply(b,arguments)},z.main=function(u){u[1]||(console.log("Usage: "+u[0]+" FILE"),process.exit(1));var _=p(5354).readFileSync(p(6470).normalize(u[1]),"utf8");return z.parser.parse(_)},p.c[p.s]===M&&z.main(process.argv.slice(1))},9959:(M,z,p)=>{M=p.nmd(M);var b=function(){var u=function(mt,X,ot,j){for(ot=ot||{},j=mt.length;j--;ot[mt[j]]=X);return ot},_=[1,3],y=[1,5],E=[7,9,11,12,13,14,15,16,17,18,19,20,22,24,25,27,34,39],A=[1,15],w=[1,16],F=[1,17],B=[1,18],P=[1,19],G=[1,20],K=[1,21],J=[1,22],ht=[1,23],tt=[1,24],kt=[1,25],at=[1,26],ut=[1,28],vt=[1,30],Zt=[1,33],Gt=[5,7,9,11,12,13,14,15,16,17,18,19,20,22,24,25,27,34,39],xt={trace:function(){},yy:{},symbols_:{error:2,start:3,directive:4,gantt:5,document:6,EOF:7,line:8,SPACE:9,statement:10,NL:11,dateFormat:12,inclusiveEndDates:13,topAxis:14,axisFormat:15,excludes:16,includes:17,todayMarker:18,title:19,acc_title:20,acc_title_value:21,acc_descr:22,acc_descr_value:23,acc_descr_multiline_value:24,section:25,clickStatement:26,taskTxt:27,taskData:28,openDirective:29,typeDirective:30,closeDirective:31,":":32,argDirective:33,click:34,callbackname:35,callbackargs:36,href:37,clickStatementDebug:38,open_directive:39,type_directive:40,arg_directive:41,close_directive:42,$accept:0,$end:1},terminals_:{2:"error",5:"gantt",7:"EOF",9:"SPACE",11:"NL",12:"dateFormat",13:"inclusiveEndDates",14:"topAxis",15:"axisFormat",16:"excludes",17:"includes",18:"todayMarker",19:"title",20:"acc_title",21:"acc_title_value",22:"acc_descr",23:"acc_descr_value",24:"acc_descr_multiline_value",25:"section",27:"taskTxt",28:"taskData",32:":",34:"click",35:"callbackname",36:"callbackargs",37:"href",39:"open_directive",40:"type_directive",41:"arg_directive",42:"close_directive"},productions_:[0,[3,2],[3,3],[6,0],[6,2],[8,2],[8,1],[8,1],[8,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,2],[10,2],[10,1],[10,1],[10,1],[10,2],[10,1],[4,4],[4,6],[26,2],[26,3],[26,3],[26,4],[26,3],[26,4],[26,2],[38,2],[38,3],[38,3],[38,4],[38,3],[38,4],[38,2],[29,1],[30,1],[33,1],[31,1]],performAction:function(mt,X,ot,j,yt,Y,bt){var Ct=Y.length-1;switch(yt){case 2:return Y[Ct-1];case 3:case 7:case 8:this.$=[];break;case 4:Y[Ct-1].push(Y[Ct]),this.$=Y[Ct-1];break;case 5:case 6:this.$=Y[Ct];break;case 9:j.setDateFormat(Y[Ct].substr(11)),this.$=Y[Ct].substr(11);break;case 10:j.enableInclusiveEndDates(),this.$=Y[Ct].substr(18);break;case 11:j.TopAxis(),this.$=Y[Ct].substr(8);break;case 12:j.setAxisFormat(Y[Ct].substr(11)),this.$=Y[Ct].substr(11);break;case 13:j.setExcludes(Y[Ct].substr(9)),this.$=Y[Ct].substr(9);break;case 14:j.setIncludes(Y[Ct].substr(9)),this.$=Y[Ct].substr(9);break;case 15:j.setTodayMarker(Y[Ct].substr(12)),this.$=Y[Ct].substr(12);break;case 16:j.setDiagramTitle(Y[Ct].substr(6)),this.$=Y[Ct].substr(6);break;case 17:this.$=Y[Ct].trim(),j.setAccTitle(this.$);break;case 18:case 19:this.$=Y[Ct].trim(),j.setAccDescription(this.$);break;case 20:j.addSection(Y[Ct].substr(8)),this.$=Y[Ct].substr(8);break;case 22:j.addTask(Y[Ct-1],Y[Ct]),this.$="task";break;case 26:this.$=Y[Ct-1],j.setClickEvent(Y[Ct-1],Y[Ct],null);break;case 27:this.$=Y[Ct-2],j.setClickEvent(Y[Ct-2],Y[Ct-1],Y[Ct]);break;case 28:this.$=Y[Ct-2],j.setClickEvent(Y[Ct-2],Y[Ct-1],null),j.setLink(Y[Ct-2],Y[Ct]);break;case 29:this.$=Y[Ct-3],j.setClickEvent(Y[Ct-3],Y[Ct-2],Y[Ct-1]),j.setLink(Y[Ct-3],Y[Ct]);break;case 30:this.$=Y[Ct-2],j.setClickEvent(Y[Ct-2],Y[Ct],null),j.setLink(Y[Ct-2],Y[Ct-1]);break;case 31:this.$=Y[Ct-3],j.setClickEvent(Y[Ct-3],Y[Ct-1],Y[Ct]),j.setLink(Y[Ct-3],Y[Ct-2]);break;case 32:this.$=Y[Ct-1],j.setLink(Y[Ct-1],Y[Ct]);break;case 33:case 39:this.$=Y[Ct-1]+" "+Y[Ct];break;case 34:case 35:case 37:this.$=Y[Ct-2]+" "+Y[Ct-1]+" "+Y[Ct];break;case 36:case 38:this.$=Y[Ct-3]+" "+Y[Ct-2]+" "+Y[Ct-1]+" "+Y[Ct];break;case 40:j.parseDirective("%%{","open_directive");break;case 41:j.parseDirective(Y[Ct],"type_directive");break;case 42:Y[Ct]=Y[Ct].trim().replace(/'/g,'"'),j.parseDirective(Y[Ct],"arg_directive");break;case 43:j.parseDirective("}%%","close_directive","gantt")}},table:[{3:1,4:2,5:_,29:4,39:y},{1:[3]},{3:6,4:2,5:_,29:4,39:y},u(E,[2,3],{6:7}),{30:8,40:[1,9]},{40:[2,40]},{1:[2,1]},{4:29,7:[1,10],8:11,9:[1,12],10:13,11:[1,14],12:A,13:w,14:F,15:B,16:P,17:G,18:K,19:J,20:ht,22:tt,24:kt,25:at,26:27,27:ut,29:4,34:vt,39:y},{31:31,32:[1,32],42:Zt},u([32,42],[2,41]),u(E,[2,8],{1:[2,2]}),u(E,[2,4]),{4:29,10:34,12:A,13:w,14:F,15:B,16:P,17:G,18:K,19:J,20:ht,22:tt,24:kt,25:at,26:27,27:ut,29:4,34:vt,39:y},u(E,[2,6]),u(E,[2,7]),u(E,[2,9]),u(E,[2,10]),u(E,[2,11]),u(E,[2,12]),u(E,[2,13]),u(E,[2,14]),u(E,[2,15]),u(E,[2,16]),{21:[1,35]},{23:[1,36]},u(E,[2,19]),u(E,[2,20]),u(E,[2,21]),{28:[1,37]},u(E,[2,23]),{35:[1,38],37:[1,39]},{11:[1,40]},{33:41,41:[1,42]},{11:[2,43]},u(E,[2,5]),u(E,[2,17]),u(E,[2,18]),u(E,[2,22]),u(E,[2,26],{36:[1,43],37:[1,44]}),u(E,[2,32],{35:[1,45]}),u(Gt,[2,24]),{31:46,42:Zt},{42:[2,42]},u(E,[2,27],{37:[1,47]}),u(E,[2,28]),u(E,[2,30],{36:[1,48]}),{11:[1,49]},u(E,[2,29]),u(E,[2,31]),u(Gt,[2,25])],defaultActions:{5:[2,40],6:[2,1],33:[2,43],42:[2,42]},parseError:function(mt,X){if(!X.recoverable){var ot=new Error(mt);throw ot.hash=X,ot}this.trace(mt)},parse:function(mt){var X=this,ot=[0],j=[],yt=[null],Y=[],bt=this.table,Ct="",$t=0,be=0,We=0,xe=2,pe=1,_e=Y.slice.call(arguments,1),Ae=Object.create(this.lexer),De={yy:{}};for(var me in this.yy)Object.prototype.hasOwnProperty.call(this.yy,me)&&(De.yy[me]=this.yy[me]);Ae.setInput(mt,De.yy),De.yy.lexer=Ae,De.yy.parser=this,Ae.yylloc===void 0&&(Ae.yylloc={});var wn=Ae.yylloc;Y.push(wn);var de=Ae.options&&Ae.options.ranges;function Qe(){var en;return typeof(en=j.pop()||Ae.lex()||pe)!="number"&&(en instanceof Array&&(en=(j=en).pop()),en=X.symbols_[en]||en),en}typeof De.yy.parseError=="function"?this.parseError=De.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var ne,Qt,se,Et,te,st,dt,ft,Mt,fe={};;){if(se=ot[ot.length-1],this.defaultActions[se]?Et=this.defaultActions[se]:(ne==null&&(ne=Qe()),Et=bt[se]&&bt[se][ne]),Et===void 0||!Et.length||!Et[0]){var Le="";for(st in Mt=[],bt[se])this.terminals_[st]&&st>xe&&Mt.push("'"+this.terminals_[st]+"'");Le=Ae.showPosition?"Parse error on line "+($t+1)+`:
`+Ae.showPosition()+`
Expecting `+Mt.join(", ")+", got '"+(this.terminals_[ne]||ne)+"'":"Parse error on line "+($t+1)+": Unexpected "+(ne==pe?"end of input":"'"+(this.terminals_[ne]||ne)+"'"),this.parseError(Le,{text:Ae.match,token:this.terminals_[ne]||ne,line:Ae.yylineno,loc:wn,expected:Mt})}if(Et[0]instanceof Array&&Et.length>1)throw new Error("Parse Error: multiple actions possible at state: "+se+", token: "+ne);switch(Et[0]){case 1:ot.push(ne),yt.push(Ae.yytext),Y.push(Ae.yylloc),ot.push(Et[1]),ne=null,Qt?(ne=Qt,Qt=null):(be=Ae.yyleng,Ct=Ae.yytext,$t=Ae.yylineno,wn=Ae.yylloc,We>0);break;case 2:if(dt=this.productions_[Et[1]][1],fe.$=yt[yt.length-dt],fe._$={first_line:Y[Y.length-(dt||1)].first_line,last_line:Y[Y.length-1].last_line,first_column:Y[Y.length-(dt||1)].first_column,last_column:Y[Y.length-1].last_column},de&&(fe._$.range=[Y[Y.length-(dt||1)].range[0],Y[Y.length-1].range[1]]),(te=this.performAction.apply(fe,[Ct,be,$t,De.yy,Et[1],yt,Y].concat(_e)))!==void 0)return te;dt&&(ot=ot.slice(0,-1*dt*2),yt=yt.slice(0,-1*dt),Y=Y.slice(0,-1*dt)),ot.push(this.productions_[Et[1]][0]),yt.push(fe.$),Y.push(fe._$),ft=bt[ot[ot.length-2]][ot[ot.length-1]],ot.push(ft);break;case 3:return!0}}return!0}},It={EOF:1,parseError:function(mt,X){if(!this.yy.parser)throw new Error(mt);this.yy.parser.parseError(mt,X)},setInput:function(mt,X){return this.yy=X||this.yy||{},this._input=mt,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var mt=this._input[0];return this.yytext+=mt,this.yyleng++,this.offset++,this.match+=mt,this.matched+=mt,mt.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),mt},unput:function(mt){var X=mt.length,ot=mt.split(/(?:\r\n?|\n)/g);this._input=mt+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-X),this.offset-=X;var j=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),ot.length-1&&(this.yylineno-=ot.length-1);var yt=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:ot?(ot.length===j.length?this.yylloc.first_column:0)+j[j.length-ot.length].length-ot[0].length:this.yylloc.first_column-X},this.options.ranges&&(this.yylloc.range=[yt[0],yt[0]+this.yyleng-X]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(mt){this.unput(this.match.slice(mt))},pastInput:function(){var mt=this.matched.substr(0,this.matched.length-this.match.length);return(mt.length>20?"...":"")+mt.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var mt=this.match;return mt.length<20&&(mt+=this._input.substr(0,20-mt.length)),(mt.substr(0,20)+(mt.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var mt=this.pastInput(),X=new Array(mt.length+1).join("-");return mt+this.upcomingInput()+`
`+X+"^"},test_match:function(mt,X){var ot,j,yt;if(this.options.backtrack_lexer&&(yt={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(yt.yylloc.range=this.yylloc.range.slice(0))),(j=mt[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=j.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:j?j[j.length-1].length-j[j.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+mt[0].length},this.yytext+=mt[0],this.match+=mt[0],this.matches=mt,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(mt[0].length),this.matched+=mt[0],ot=this.performAction.call(this,this.yy,this,X,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),ot)return ot;if(this._backtrack){for(var Y in yt)this[Y]=yt[Y];return!1}return!1},next:function(){if(this.done)return this.EOF;var mt,X,ot,j;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var yt=this._currentRules(),Y=0;Y<yt.length;Y++)if((ot=this._input.match(this.rules[yt[Y]]))&&(!X||ot[0].length>X[0].length)){if(X=ot,j=Y,this.options.backtrack_lexer){if((mt=this.test_match(ot,yt[Y]))!==!1)return mt;if(this._backtrack){X=!1;continue}return!1}if(!this.options.flex)break}return X?(mt=this.test_match(X,yt[j]))!==!1&&mt:this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(mt){this.conditionStack.push(mt)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(mt){return(mt=this.conditionStack.length-1-Math.abs(mt||0))>=0?this.conditionStack[mt]:"INITIAL"},pushState:function(mt){this.begin(mt)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(mt,X,ot,j){switch(ot){case 0:return this.begin("open_directive"),39;case 1:return this.begin("type_directive"),40;case 2:return this.popState(),this.begin("arg_directive"),32;case 3:return this.popState(),this.popState(),42;case 4:return 41;case 5:return this.begin("acc_title"),20;case 6:return this.popState(),"acc_title_value";case 7:return this.begin("acc_descr"),22;case 8:return this.popState(),"acc_descr_value";case 9:this.begin("acc_descr_multiline");break;case 10:case 20:case 23:case 26:case 29:this.popState();break;case 11:return"acc_descr_multiline_value";case 12:case 13:case 14:case 16:case 17:case 18:break;case 15:return 11;case 19:this.begin("href");break;case 21:return 37;case 22:this.begin("callbackname");break;case 24:this.popState(),this.begin("callbackargs");break;case 25:return 35;case 27:return 36;case 28:this.begin("click");break;case 30:return 34;case 31:return 5;case 32:return 12;case 33:return 13;case 34:return 14;case 35:return 15;case 36:return 17;case 37:return 16;case 38:return 18;case 39:return"date";case 40:return 19;case 41:return"accDescription";case 42:return 25;case 43:return 27;case 44:return 28;case 45:return 32;case 46:return 7;case 47:return"INVALID"}},rules:[/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:%%(?!\{)*[^\n]*)/i,/^(?:[^\}]%%*[^\n]*)/i,/^(?:%%*[^\n]*[\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:%[^\n]*)/i,/^(?:href[\s]+["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:call[\s]+)/i,/^(?:\([\s]*\))/i,/^(?:\()/i,/^(?:[^(]*)/i,/^(?:\))/i,/^(?:[^)]*)/i,/^(?:click[\s]+)/i,/^(?:[\s\n])/i,/^(?:[^\s\n]*)/i,/^(?:gantt\b)/i,/^(?:dateFormat\s[^#\n;]+)/i,/^(?:inclusiveEndDates\b)/i,/^(?:topAxis\b)/i,/^(?:axisFormat\s[^#\n;]+)/i,/^(?:includes\s[^#\n;]+)/i,/^(?:excludes\s[^#\n;]+)/i,/^(?:todayMarker\s[^\n;]+)/i,/^(?:\d\d\d\d-\d\d-\d\d\b)/i,/^(?:title\s[^#\n;]+)/i,/^(?:accDescription\s[^#\n;]+)/i,/^(?:section\s[^#:\n;]+)/i,/^(?:[^#:\n;]+)/i,/^(?::[^#\n;]+)/i,/^(?::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[10,11],inclusive:!1},acc_descr:{rules:[8],inclusive:!1},acc_title:{rules:[6],inclusive:!1},close_directive:{rules:[],inclusive:!1},arg_directive:{rules:[3,4],inclusive:!1},type_directive:{rules:[2,3],inclusive:!1},open_directive:{rules:[1],inclusive:!1},callbackargs:{rules:[26,27],inclusive:!1},callbackname:{rules:[23,24,25],inclusive:!1},href:{rules:[20,21],inclusive:!1},click:{rules:[29,30],inclusive:!1},INITIAL:{rules:[0,5,7,9,12,13,14,15,16,17,18,19,22,28,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47],inclusive:!0}}};function wt(){this.yy={}}return xt.lexer=It,wt.prototype=xt,xt.Parser=wt,new wt}();z.parser=b,z.Parser=b.Parser,z.parse=function(){return b.parse.apply(b,arguments)},z.main=function(u){u[1]||(console.log("Usage: "+u[0]+" FILE"),process.exit(1));var _=p(6878).readFileSync(p(6470).normalize(u[1]),"utf8");return z.parser.parse(_)},p.c[p.s]===M&&z.main(process.argv.slice(1))},2553:(M,z,p)=>{M=p.nmd(M);var b=function(){var u=function(It,wt,mt,X){for(mt=mt||{},X=It.length;X--;mt[It[X]]=wt);return mt},_=[1,4],y=[1,7],E=[1,5],A=[1,9],w=[1,6],F=[2,6],B=[1,16],P=[6,8,14,20,22,24,25,27,29,32,35,39,49,53],G=[8,14,20,22,24,25,27,29,32,35,39],K=[8,13,14,20,22,24,25,27,29,32,35,39],J=[1,26],ht=[6,8,14,49,53],tt=[8,14,53],kt=[1,64],at=[1,65],ut=[1,66],vt=[8,14,33,38,41,53],Zt={trace:function(){},yy:{},symbols_:{error:2,start:3,eol:4,directive:5,GG:6,document:7,EOF:8,":":9,DIR:10,options:11,body:12,OPT:13,NL:14,line:15,statement:16,commitStatement:17,mergeStatement:18,cherryPickStatement:19,acc_title:20,acc_title_value:21,acc_descr:22,acc_descr_value:23,acc_descr_multiline_value:24,section:25,branchStatement:26,CHECKOUT:27,ID:28,BRANCH:29,ORDER:30,NUM:31,CHERRY_PICK:32,COMMIT_ID:33,STR:34,MERGE:35,COMMIT_TYPE:36,commitType:37,COMMIT_TAG:38,COMMIT:39,commit_arg:40,COMMIT_MSG:41,NORMAL:42,REVERSE:43,HIGHLIGHT:44,openDirective:45,typeDirective:46,closeDirective:47,argDirective:48,open_directive:49,type_directive:50,arg_directive:51,close_directive:52,";":53,$accept:0,$end:1},terminals_:{2:"error",6:"GG",8:"EOF",9:":",10:"DIR",13:"OPT",14:"NL",20:"acc_title",21:"acc_title_value",22:"acc_descr",23:"acc_descr_value",24:"acc_descr_multiline_value",25:"section",27:"CHECKOUT",28:"ID",29:"BRANCH",30:"ORDER",31:"NUM",32:"CHERRY_PICK",33:"COMMIT_ID",34:"STR",35:"MERGE",36:"COMMIT_TYPE",38:"COMMIT_TAG",39:"COMMIT",41:"COMMIT_MSG",42:"NORMAL",43:"REVERSE",44:"HIGHLIGHT",49:"open_directive",50:"type_directive",51:"arg_directive",52:"close_directive",53:";"},productions_:[0,[3,2],[3,2],[3,3],[3,4],[3,5],[7,0],[7,2],[11,2],[11,1],[12,0],[12,2],[15,2],[15,1],[16,1],[16,1],[16,1],[16,2],[16,2],[16,1],[16,1],[16,1],[16,2],[26,2],[26,4],[19,3],[18,2],[18,4],[18,4],[18,4],[18,6],[18,6],[18,6],[18,6],[18,6],[18,6],[18,8],[18,8],[18,8],[18,8],[18,8],[18,8],[17,2],[17,3],[17,3],[17,5],[17,5],[17,3],[17,5],[17,5],[17,5],[17,5],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,3],[17,5],[17,5],[17,5],[17,5],[17,5],[17,5],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[40,0],[40,1],[37,1],[37,1],[37,1],[5,3],[5,5],[45,1],[46,1],[48,1],[47,1],[4,1],[4,1],[4,1]],performAction:function(It,wt,mt,X,ot,j,yt){var Y=j.length-1;switch(ot){case 3:return j[Y];case 4:return j[Y-1];case 5:return X.setDirection(j[Y-3]),j[Y-1];case 7:X.setOptions(j[Y-1]),this.$=j[Y];break;case 8:j[Y-1]+=j[Y],this.$=j[Y-1];break;case 10:this.$=[];break;case 11:j[Y-1].push(j[Y]),this.$=j[Y-1];break;case 12:this.$=j[Y-1];break;case 17:this.$=j[Y].trim(),X.setAccTitle(this.$);break;case 18:case 19:this.$=j[Y].trim(),X.setAccDescription(this.$);break;case 20:X.addSection(j[Y].substr(8)),this.$=j[Y].substr(8);break;case 22:X.checkout(j[Y]);break;case 23:X.branch(j[Y]);break;case 24:X.branch(j[Y-2],j[Y]);break;case 25:X.cherryPick(j[Y]);break;case 26:X.merge(j[Y],"","","");break;case 27:X.merge(j[Y-2],j[Y],"","");break;case 28:X.merge(j[Y-2],"",j[Y],"");break;case 29:X.merge(j[Y-2],"","",j[Y]);break;case 30:X.merge(j[Y-4],j[Y],"",j[Y-2]);break;case 31:X.merge(j[Y-4],"",j[Y],j[Y-2]);break;case 32:X.merge(j[Y-4],"",j[Y-2],j[Y]);break;case 33:X.merge(j[Y-4],j[Y-2],j[Y],"");break;case 34:X.merge(j[Y-4],j[Y-2],"",j[Y]);break;case 35:X.merge(j[Y-4],j[Y],j[Y-2],"");break;case 36:X.merge(j[Y-6],j[Y-4],j[Y-2],j[Y]);break;case 37:X.merge(j[Y-6],j[Y],j[Y-4],j[Y-2]);break;case 38:X.merge(j[Y-6],j[Y-4],j[Y],j[Y-2]);break;case 39:X.merge(j[Y-6],j[Y-2],j[Y-4],j[Y]);break;case 40:X.merge(j[Y-6],j[Y],j[Y-2],j[Y-4]);break;case 41:X.merge(j[Y-6],j[Y-2],j[Y],j[Y-4]);break;case 42:X.commit(j[Y]);break;case 43:X.commit("","",X.commitType.NORMAL,j[Y]);break;case 44:X.commit("","",j[Y],"");break;case 45:X.commit("","",j[Y],j[Y-2]);break;case 46:X.commit("","",j[Y-2],j[Y]);break;case 47:X.commit("",j[Y],X.commitType.NORMAL,"");break;case 48:X.commit("",j[Y-2],X.commitType.NORMAL,j[Y]);break;case 49:X.commit("",j[Y],X.commitType.NORMAL,j[Y-2]);break;case 50:X.commit("",j[Y-2],j[Y],"");break;case 51:X.commit("",j[Y],j[Y-2],"");break;case 52:X.commit("",j[Y-4],j[Y-2],j[Y]);break;case 53:X.commit("",j[Y-4],j[Y],j[Y-2]);break;case 54:X.commit("",j[Y-2],j[Y-4],j[Y]);break;case 55:X.commit("",j[Y],j[Y-4],j[Y-2]);break;case 56:X.commit("",j[Y],j[Y-2],j[Y-4]);break;case 57:X.commit("",j[Y-2],j[Y],j[Y-4]);break;case 58:X.commit(j[Y],"",X.commitType.NORMAL,"");break;case 59:X.commit(j[Y],"",X.commitType.NORMAL,j[Y-2]);break;case 60:X.commit(j[Y-2],"",X.commitType.NORMAL,j[Y]);break;case 61:X.commit(j[Y-2],"",j[Y],"");break;case 62:X.commit(j[Y],"",j[Y-2],"");break;case 63:X.commit(j[Y],j[Y-2],X.commitType.NORMAL,"");break;case 64:X.commit(j[Y-2],j[Y],X.commitType.NORMAL,"");break;case 65:X.commit(j[Y-4],"",j[Y-2],j[Y]);break;case 66:X.commit(j[Y-4],"",j[Y],j[Y-2]);break;case 67:X.commit(j[Y-2],"",j[Y-4],j[Y]);break;case 68:X.commit(j[Y],"",j[Y-4],j[Y-2]);break;case 69:X.commit(j[Y],"",j[Y-2],j[Y-4]);break;case 70:X.commit(j[Y-2],"",j[Y],j[Y-4]);break;case 71:X.commit(j[Y-4],j[Y],j[Y-2],"");break;case 72:X.commit(j[Y-4],j[Y-2],j[Y],"");break;case 73:X.commit(j[Y-2],j[Y],j[Y-4],"");break;case 74:X.commit(j[Y],j[Y-2],j[Y-4],"");break;case 75:X.commit(j[Y],j[Y-4],j[Y-2],"");break;case 76:X.commit(j[Y-2],j[Y-4],j[Y],"");break;case 77:X.commit(j[Y-4],j[Y],X.commitType.NORMAL,j[Y-2]);break;case 78:X.commit(j[Y-4],j[Y-2],X.commitType.NORMAL,j[Y]);break;case 79:X.commit(j[Y-2],j[Y],X.commitType.NORMAL,j[Y-4]);break;case 80:X.commit(j[Y],j[Y-2],X.commitType.NORMAL,j[Y-4]);break;case 81:X.commit(j[Y],j[Y-4],X.commitType.NORMAL,j[Y-2]);break;case 82:X.commit(j[Y-2],j[Y-4],X.commitType.NORMAL,j[Y]);break;case 83:X.commit(j[Y-6],j[Y-4],j[Y-2],j[Y]);break;case 84:X.commit(j[Y-6],j[Y-4],j[Y],j[Y-2]);break;case 85:X.commit(j[Y-6],j[Y-2],j[Y-4],j[Y]);break;case 86:X.commit(j[Y-6],j[Y],j[Y-4],j[Y-2]);break;case 87:X.commit(j[Y-6],j[Y-2],j[Y],j[Y-4]);break;case 88:X.commit(j[Y-6],j[Y],j[Y-2],j[Y-4]);break;case 89:X.commit(j[Y-4],j[Y-6],j[Y-2],j[Y]);break;case 90:X.commit(j[Y-4],j[Y-6],j[Y],j[Y-2]);break;case 91:X.commit(j[Y-2],j[Y-6],j[Y-4],j[Y]);break;case 92:X.commit(j[Y],j[Y-6],j[Y-4],j[Y-2]);break;case 93:X.commit(j[Y-2],j[Y-6],j[Y],j[Y-4]);break;case 94:X.commit(j[Y],j[Y-6],j[Y-2],j[Y-4]);break;case 95:X.commit(j[Y],j[Y-4],j[Y-2],j[Y-6]);break;case 96:X.commit(j[Y-2],j[Y-4],j[Y],j[Y-6]);break;case 97:X.commit(j[Y],j[Y-2],j[Y-4],j[Y-6]);break;case 98:X.commit(j[Y-2],j[Y],j[Y-4],j[Y-6]);break;case 99:X.commit(j[Y-4],j[Y-2],j[Y],j[Y-6]);break;case 100:X.commit(j[Y-4],j[Y],j[Y-2],j[Y-6]);break;case 101:X.commit(j[Y-2],j[Y-4],j[Y-6],j[Y]);break;case 102:X.commit(j[Y],j[Y-4],j[Y-6],j[Y-2]);break;case 103:X.commit(j[Y-2],j[Y],j[Y-6],j[Y-4]);break;case 104:X.commit(j[Y],j[Y-2],j[Y-6],j[Y-4]);break;case 105:X.commit(j[Y-4],j[Y-2],j[Y-6],j[Y]);break;case 106:X.commit(j[Y-4],j[Y],j[Y-6],j[Y-2]);break;case 107:this.$="";break;case 108:this.$=j[Y];break;case 109:this.$=X.commitType.NORMAL;break;case 110:this.$=X.commitType.REVERSE;break;case 111:this.$=X.commitType.HIGHLIGHT;break;case 114:X.parseDirective("%%{","open_directive");break;case 115:X.parseDirective(j[Y],"type_directive");break;case 116:j[Y]=j[Y].trim().replace(/'/g,'"'),X.parseDirective(j[Y],"arg_directive");break;case 117:X.parseDirective("}%%","close_directive","gitGraph")}},table:[{3:1,4:2,5:3,6:_,8:y,14:E,45:8,49:A,53:w},{1:[3]},{3:10,4:2,5:3,6:_,8:y,14:E,45:8,49:A,53:w},{3:11,4:2,5:3,6:_,8:y,14:E,45:8,49:A,53:w},{7:12,8:F,9:[1,13],10:[1,14],11:15,14:B},u(P,[2,118]),u(P,[2,119]),u(P,[2,120]),{46:17,50:[1,18]},{50:[2,114]},{1:[2,1]},{1:[2,2]},{8:[1,19]},{7:20,8:F,11:15,14:B},{9:[1,21]},u(G,[2,10],{12:22,13:[1,23]}),u(K,[2,9]),{9:[1,25],47:24,52:J},u([9,52],[2,115]),{1:[2,3]},{8:[1,27]},{7:28,8:F,11:15,14:B},{8:[2,7],14:[1,31],15:29,16:30,17:32,18:33,19:34,20:[1,35],22:[1,36],24:[1,37],25:[1,38],26:39,27:[1,40],29:[1,44],32:[1,43],35:[1,42],39:[1,41]},u(K,[2,8]),u(ht,[2,112]),{48:45,51:[1,46]},u(ht,[2,117]),{1:[2,4]},{8:[1,47]},u(G,[2,11]),{4:48,8:y,14:E,53:w},u(G,[2,13]),u(tt,[2,14]),u(tt,[2,15]),u(tt,[2,16]),{21:[1,49]},{23:[1,50]},u(tt,[2,19]),u(tt,[2,20]),u(tt,[2,21]),{28:[1,51]},u(tt,[2,107],{40:52,33:[1,55],34:[1,57],36:[1,54],38:[1,53],41:[1,56]}),{28:[1,58]},{33:[1,59]},{28:[1,60]},{47:61,52:J},{52:[2,116]},{1:[2,5]},u(G,[2,12]),u(tt,[2,17]),u(tt,[2,18]),u(tt,[2,22]),u(tt,[2,42]),{34:[1,62]},{37:63,42:kt,43:at,44:ut},{34:[1,67]},{34:[1,68]},u(tt,[2,108]),u(tt,[2,26],{33:[1,69],36:[1,70],38:[1,71]}),{34:[1,72]},u(tt,[2,23],{30:[1,73]}),u(ht,[2,113]),u(tt,[2,43],{33:[1,75],36:[1,74],41:[1,76]}),u(tt,[2,44],{33:[1,78],38:[1,77],41:[1,79]}),u(vt,[2,109]),u(vt,[2,110]),u(vt,[2,111]),u(tt,[2,47],{36:[1,81],38:[1,80],41:[1,82]}),u(tt,[2,58],{33:[1,85],36:[1,84],38:[1,83]}),{34:[1,86]},{37:87,42:kt,43:at,44:ut},{34:[1,88]},u(tt,[2,25]),{31:[1,89]},{37:90,42:kt,43:at,44:ut},{34:[1,91]},{34:[1,92]},{34:[1,93]},{34:[1,94]},{34:[1,95]},{34:[1,96]},{37:97,42:kt,43:at,44:ut},{34:[1,98]},{34:[1,99]},{37:100,42:kt,43:at,44:ut},{34:[1,101]},u(tt,[2,27],{36:[1,102],38:[1,103]}),u(tt,[2,28],{33:[1,105],38:[1,104]}),u(tt,[2,29],{33:[1,106],36:[1,107]}),u(tt,[2,24]),u(tt,[2,45],{33:[1,108],41:[1,109]}),u(tt,[2,49],{36:[1,110],41:[1,111]}),u(tt,[2,59],{33:[1,113],36:[1,112]}),u(tt,[2,46],{33:[1,114],41:[1,115]}),u(tt,[2,51],{38:[1,116],41:[1,117]}),u(tt,[2,62],{33:[1,119],38:[1,118]}),u(tt,[2,48],{36:[1,120],41:[1,121]}),u(tt,[2,50],{38:[1,122],41:[1,123]}),u(tt,[2,63],{36:[1,124],38:[1,125]}),u(tt,[2,60],{33:[1,127],36:[1,126]}),u(tt,[2,61],{33:[1,129],38:[1,128]}),u(tt,[2,64],{36:[1,130],38:[1,131]}),{37:132,42:kt,43:at,44:ut},{34:[1,133]},{34:[1,134]},{34:[1,135]},{34:[1,136]},{37:137,42:kt,43:at,44:ut},{34:[1,138]},{34:[1,139]},{37:140,42:kt,43:at,44:ut},{34:[1,141]},{37:142,42:kt,43:at,44:ut},{34:[1,143]},{34:[1,144]},{34:[1,145]},{34:[1,146]},{34:[1,147]},{34:[1,148]},{34:[1,149]},{37:150,42:kt,43:at,44:ut},{34:[1,151]},{34:[1,152]},{34:[1,153]},{37:154,42:kt,43:at,44:ut},{34:[1,155]},{37:156,42:kt,43:at,44:ut},{34:[1,157]},{34:[1,158]},{34:[1,159]},{37:160,42:kt,43:at,44:ut},{34:[1,161]},u(tt,[2,33],{38:[1,162]}),u(tt,[2,34],{36:[1,163]}),u(tt,[2,32],{33:[1,164]}),u(tt,[2,35],{38:[1,165]}),u(tt,[2,30],{36:[1,166]}),u(tt,[2,31],{33:[1,167]}),u(tt,[2,56],{41:[1,168]}),u(tt,[2,69],{33:[1,169]}),u(tt,[2,57],{41:[1,170]}),u(tt,[2,80],{36:[1,171]}),u(tt,[2,70],{33:[1,172]}),u(tt,[2,79],{36:[1,173]}),u(tt,[2,55],{41:[1,174]}),u(tt,[2,68],{33:[1,175]}),u(tt,[2,54],{41:[1,176]}),u(tt,[2,74],{38:[1,177]}),u(tt,[2,67],{33:[1,178]}),u(tt,[2,73],{38:[1,179]}),u(tt,[2,53],{41:[1,180]}),u(tt,[2,81],{36:[1,181]}),u(tt,[2,52],{41:[1,182]}),u(tt,[2,75],{38:[1,183]}),u(tt,[2,76],{38:[1,184]}),u(tt,[2,82],{36:[1,185]}),u(tt,[2,66],{33:[1,186]}),u(tt,[2,77],{36:[1,187]}),u(tt,[2,65],{33:[1,188]}),u(tt,[2,71],{38:[1,189]}),u(tt,[2,72],{38:[1,190]}),u(tt,[2,78],{36:[1,191]}),{34:[1,192]},{37:193,42:kt,43:at,44:ut},{34:[1,194]},{34:[1,195]},{37:196,42:kt,43:at,44:ut},{34:[1,197]},{34:[1,198]},{34:[1,199]},{34:[1,200]},{37:201,42:kt,43:at,44:ut},{34:[1,202]},{37:203,42:kt,43:at,44:ut},{34:[1,204]},{34:[1,205]},{34:[1,206]},{34:[1,207]},{34:[1,208]},{34:[1,209]},{34:[1,210]},{37:211,42:kt,43:at,44:ut},{34:[1,212]},{34:[1,213]},{34:[1,214]},{37:215,42:kt,43:at,44:ut},{34:[1,216]},{37:217,42:kt,43:at,44:ut},{34:[1,218]},{34:[1,219]},{34:[1,220]},{37:221,42:kt,43:at,44:ut},u(tt,[2,36]),u(tt,[2,38]),u(tt,[2,37]),u(tt,[2,39]),u(tt,[2,41]),u(tt,[2,40]),u(tt,[2,97]),u(tt,[2,98]),u(tt,[2,95]),u(tt,[2,96]),u(tt,[2,100]),u(tt,[2,99]),u(tt,[2,104]),u(tt,[2,103]),u(tt,[2,102]),u(tt,[2,101]),u(tt,[2,106]),u(tt,[2,105]),u(tt,[2,94]),u(tt,[2,93]),u(tt,[2,92]),u(tt,[2,91]),u(tt,[2,89]),u(tt,[2,90]),u(tt,[2,88]),u(tt,[2,87]),u(tt,[2,86]),u(tt,[2,85]),u(tt,[2,83]),u(tt,[2,84])],defaultActions:{9:[2,114],10:[2,1],11:[2,2],19:[2,3],27:[2,4],46:[2,116],47:[2,5]},parseError:function(It,wt){if(!wt.recoverable){var mt=new Error(It);throw mt.hash=wt,mt}this.trace(It)},parse:function(It){var wt=this,mt=[0],X=[],ot=[null],j=[],yt=this.table,Y="",bt=0,Ct=0,$t=0,be=2,We=1,xe=j.slice.call(arguments,1),pe=Object.create(this.lexer),_e={yy:{}};for(var Ae in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Ae)&&(_e.yy[Ae]=this.yy[Ae]);pe.setInput(It,_e.yy),_e.yy.lexer=pe,_e.yy.parser=this,pe.yylloc===void 0&&(pe.yylloc={});var De=pe.yylloc;j.push(De);var me=pe.options&&pe.options.ranges;function wn(){var fe;return typeof(fe=X.pop()||pe.lex()||We)!="number"&&(fe instanceof Array&&(fe=(X=fe).pop()),fe=wt.symbols_[fe]||fe),fe}typeof _e.yy.parseError=="function"?this.parseError=_e.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var de,Qe,ne,Qt,se,Et,te,st,dt,ft={};;){if(ne=mt[mt.length-1],this.defaultActions[ne]?Qt=this.defaultActions[ne]:(de==null&&(de=wn()),Qt=yt[ne]&&yt[ne][de]),Qt===void 0||!Qt.length||!Qt[0]){var Mt="";for(Et in dt=[],yt[ne])this.terminals_[Et]&&Et>be&&dt.push("'"+this.terminals_[Et]+"'");Mt=pe.showPosition?"Parse error on line "+(bt+1)+`:
`+pe.showPosition()+`
Expecting `+dt.join(", ")+", got '"+(this.terminals_[de]||de)+"'":"Parse error on line "+(bt+1)+": Unexpected "+(de==We?"end of input":"'"+(this.terminals_[de]||de)+"'"),this.parseError(Mt,{text:pe.match,token:this.terminals_[de]||de,line:pe.yylineno,loc:De,expected:dt})}if(Qt[0]instanceof Array&&Qt.length>1)throw new Error("Parse Error: multiple actions possible at state: "+ne+", token: "+de);switch(Qt[0]){case 1:mt.push(de),ot.push(pe.yytext),j.push(pe.yylloc),mt.push(Qt[1]),de=null,Qe?(de=Qe,Qe=null):(Ct=pe.yyleng,Y=pe.yytext,bt=pe.yylineno,De=pe.yylloc,$t>0);break;case 2:if(te=this.productions_[Qt[1]][1],ft.$=ot[ot.length-te],ft._$={first_line:j[j.length-(te||1)].first_line,last_line:j[j.length-1].last_line,first_column:j[j.length-(te||1)].first_column,last_column:j[j.length-1].last_column},me&&(ft._$.range=[j[j.length-(te||1)].range[0],j[j.length-1].range[1]]),(se=this.performAction.apply(ft,[Y,Ct,bt,_e.yy,Qt[1],ot,j].concat(xe)))!==void 0)return se;te&&(mt=mt.slice(0,-1*te*2),ot=ot.slice(0,-1*te),j=j.slice(0,-1*te)),mt.push(this.productions_[Qt[1]][0]),ot.push(ft.$),j.push(ft._$),st=yt[mt[mt.length-2]][mt[mt.length-1]],mt.push(st);break;case 3:return!0}}return!0}},Gt={EOF:1,parseError:function(It,wt){if(!this.yy.parser)throw new Error(It);this.yy.parser.parseError(It,wt)},setInput:function(It,wt){return this.yy=wt||this.yy||{},this._input=It,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var It=this._input[0];return this.yytext+=It,this.yyleng++,this.offset++,this.match+=It,this.matched+=It,It.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),It},unput:function(It){var wt=It.length,mt=It.split(/(?:\r\n?|\n)/g);this._input=It+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-wt),this.offset-=wt;var X=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),mt.length-1&&(this.yylineno-=mt.length-1);var ot=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:mt?(mt.length===X.length?this.yylloc.first_column:0)+X[X.length-mt.length].length-mt[0].length:this.yylloc.first_column-wt},this.options.ranges&&(this.yylloc.range=[ot[0],ot[0]+this.yyleng-wt]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(It){this.unput(this.match.slice(It))},pastInput:function(){var It=this.matched.substr(0,this.matched.length-this.match.length);return(It.length>20?"...":"")+It.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var It=this.match;return It.length<20&&(It+=this._input.substr(0,20-It.length)),(It.substr(0,20)+(It.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var It=this.pastInput(),wt=new Array(It.length+1).join("-");return It+this.upcomingInput()+`
`+wt+"^"},test_match:function(It,wt){var mt,X,ot;if(this.options.backtrack_lexer&&(ot={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(ot.yylloc.range=this.yylloc.range.slice(0))),(X=It[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=X.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:X?X[X.length-1].length-X[X.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+It[0].length},this.yytext+=It[0],this.match+=It[0],this.matches=It,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(It[0].length),this.matched+=It[0],mt=this.performAction.call(this,this.yy,this,wt,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),mt)return mt;if(this._backtrack){for(var j in ot)this[j]=ot[j];return!1}return!1},next:function(){if(this.done)return this.EOF;var It,wt,mt,X;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var ot=this._currentRules(),j=0;j<ot.length;j++)if((mt=this._input.match(this.rules[ot[j]]))&&(!wt||mt[0].length>wt[0].length)){if(wt=mt,X=j,this.options.backtrack_lexer){if((It=this.test_match(mt,ot[j]))!==!1)return It;if(this._backtrack){wt=!1;continue}return!1}if(!this.options.flex)break}return wt?(It=this.test_match(wt,ot[X]))!==!1&&It:this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(It){this.conditionStack.push(It)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(It){return(It=this.conditionStack.length-1-Math.abs(It||0))>=0?this.conditionStack[It]:"INITIAL"},pushState:function(It){this.begin(It)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(It,wt,mt,X){switch(mt){case 0:return this.begin("open_directive"),49;case 1:return this.begin("type_directive"),50;case 2:return this.popState(),this.begin("arg_directive"),9;case 3:return this.popState(),this.popState(),52;case 4:return 51;case 5:return this.begin("acc_title"),20;case 6:return this.popState(),"acc_title_value";case 7:return this.begin("acc_descr"),22;case 8:return this.popState(),"acc_descr_value";case 9:this.begin("acc_descr_multiline");break;case 10:case 35:case 38:this.popState();break;case 11:return"acc_descr_multiline_value";case 12:return 14;case 13:case 14:case 15:break;case 16:return 6;case 17:return 39;case 18:return 33;case 19:return 36;case 20:return 41;case 21:return 42;case 22:return 43;case 23:return 44;case 24:return 38;case 25:return 29;case 26:return 30;case 27:return 35;case 28:return 32;case 29:return 27;case 30:case 31:return 10;case 32:return 9;case 33:return"CARET";case 34:this.begin("options");break;case 36:return 13;case 37:this.begin("string");break;case 39:return 34;case 40:return 31;case 41:return 28;case 42:return 8}},rules:[/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:(\r?\n)+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:%[^\n]*)/i,/^(?:gitGraph\b)/i,/^(?:commit\b)/i,/^(?:id:)/i,/^(?:type:)/i,/^(?:msg:)/i,/^(?:NORMAL\b)/i,/^(?:REVERSE\b)/i,/^(?:HIGHLIGHT\b)/i,/^(?:tag:)/i,/^(?:branch\b)/i,/^(?:order:)/i,/^(?:merge\b)/i,/^(?:cherry-pick\b)/i,/^(?:checkout\b)/i,/^(?:LR\b)/i,/^(?:BT\b)/i,/^(?::)/i,/^(?:\^)/i,/^(?:options\r?\n)/i,/^(?:[ \r\n\t]+end\b)/i,/^(?:[\s\S]+(?=[ \r\n\t]+end))/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[0-9]+)/i,/^(?:[a-zA-Z][-_\./a-zA-Z0-9]*[-_a-zA-Z0-9])/i,/^(?:$)/i],conditions:{acc_descr_multiline:{rules:[10,11],inclusive:!1},acc_descr:{rules:[8],inclusive:!1},acc_title:{rules:[6],inclusive:!1},close_directive:{rules:[],inclusive:!1},arg_directive:{rules:[3,4],inclusive:!1},type_directive:{rules:[2,3],inclusive:!1},open_directive:{rules:[1],inclusive:!1},options:{rules:[35,36],inclusive:!1},string:{rules:[38,39],inclusive:!1},INITIAL:{rules:[0,5,7,9,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,37,40,41,42],inclusive:!0}}};function xt(){this.yy={}}return Zt.lexer=Gt,xt.prototype=Zt,Zt.Parser=xt,new xt}();z.parser=b,z.Parser=b.Parser,z.parse=function(){return b.parse.apply(b,arguments)},z.main=function(u){u[1]||(console.log("Usage: "+u[0]+" FILE"),process.exit(1));var _=p(8183).readFileSync(p(6470).normalize(u[1]),"utf8");return z.parser.parse(_)},p.c[p.s]===M&&z.main(process.argv.slice(1))},6765:(M,z,p)=>{M=p.nmd(M);var b=function(){var u=function(w,F,B,P){for(B=B||{},P=w.length;P--;B[w[P]]=F);return B},_=[6,9,10],y={trace:function(){},yy:{},symbols_:{error:2,start:3,info:4,document:5,EOF:6,line:7,statement:8,NL:9,showInfo:10,$accept:0,$end:1},terminals_:{2:"error",4:"info",6:"EOF",9:"NL",10:"showInfo"},productions_:[0,[3,3],[5,0],[5,2],[7,1],[7,1],[8,1]],performAction:function(w,F,B,P,G,K,J){switch(K.length,G){case 1:return P;case 4:break;case 6:P.setInfo(!0)}},table:[{3:1,4:[1,2]},{1:[3]},u(_,[2,2],{5:3}),{6:[1,4],7:5,8:6,9:[1,7],10:[1,8]},{1:[2,1]},u(_,[2,3]),u(_,[2,4]),u(_,[2,5]),u(_,[2,6])],defaultActions:{4:[2,1]},parseError:function(w,F){if(!F.recoverable){var B=new Error(w);throw B.hash=F,B}this.trace(w)},parse:function(w){var F=this,B=[0],P=[],G=[null],K=[],J=this.table,ht="",tt=0,kt=0,at=0,ut=2,vt=1,Zt=K.slice.call(arguments,1),Gt=Object.create(this.lexer),xt={yy:{}};for(var It in this.yy)Object.prototype.hasOwnProperty.call(this.yy,It)&&(xt.yy[It]=this.yy[It]);Gt.setInput(w,xt.yy),xt.yy.lexer=Gt,xt.yy.parser=this,Gt.yylloc===void 0&&(Gt.yylloc={});var wt=Gt.yylloc;K.push(wt);var mt=Gt.options&&Gt.options.ranges;function X(){var _e;return typeof(_e=P.pop()||Gt.lex()||vt)!="number"&&(_e instanceof Array&&(_e=(P=_e).pop()),_e=F.symbols_[_e]||_e),_e}typeof xt.yy.parseError=="function"?this.parseError=xt.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var ot,j,yt,Y,bt,Ct,$t,be,We,xe={};;){if(yt=B[B.length-1],this.defaultActions[yt]?Y=this.defaultActions[yt]:(ot==null&&(ot=X()),Y=J[yt]&&J[yt][ot]),Y===void 0||!Y.length||!Y[0]){var pe="";for(Ct in We=[],J[yt])this.terminals_[Ct]&&Ct>ut&&We.push("'"+this.terminals_[Ct]+"'");pe=Gt.showPosition?"Parse error on line "+(tt+1)+`:
`+Gt.showPosition()+`
Expecting `+We.join(", ")+", got '"+(this.terminals_[ot]||ot)+"'":"Parse error on line "+(tt+1)+": Unexpected "+(ot==vt?"end of input":"'"+(this.terminals_[ot]||ot)+"'"),this.parseError(pe,{text:Gt.match,token:this.terminals_[ot]||ot,line:Gt.yylineno,loc:wt,expected:We})}if(Y[0]instanceof Array&&Y.length>1)throw new Error("Parse Error: multiple actions possible at state: "+yt+", token: "+ot);switch(Y[0]){case 1:B.push(ot),G.push(Gt.yytext),K.push(Gt.yylloc),B.push(Y[1]),ot=null,j?(ot=j,j=null):(kt=Gt.yyleng,ht=Gt.yytext,tt=Gt.yylineno,wt=Gt.yylloc,at>0);break;case 2:if($t=this.productions_[Y[1]][1],xe.$=G[G.length-$t],xe._$={first_line:K[K.length-($t||1)].first_line,last_line:K[K.length-1].last_line,first_column:K[K.length-($t||1)].first_column,last_column:K[K.length-1].last_column},mt&&(xe._$.range=[K[K.length-($t||1)].range[0],K[K.length-1].range[1]]),(bt=this.performAction.apply(xe,[ht,kt,tt,xt.yy,Y[1],G,K].concat(Zt)))!==void 0)return bt;$t&&(B=B.slice(0,-1*$t*2),G=G.slice(0,-1*$t),K=K.slice(0,-1*$t)),B.push(this.productions_[Y[1]][0]),G.push(xe.$),K.push(xe._$),be=J[B[B.length-2]][B[B.length-1]],B.push(be);break;case 3:return!0}}return!0}},E={EOF:1,parseError:function(w,F){if(!this.yy.parser)throw new Error(w);this.yy.parser.parseError(w,F)},setInput:function(w,F){return this.yy=F||this.yy||{},this._input=w,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var w=this._input[0];return this.yytext+=w,this.yyleng++,this.offset++,this.match+=w,this.matched+=w,w.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),w},unput:function(w){var F=w.length,B=w.split(/(?:\r\n?|\n)/g);this._input=w+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-F),this.offset-=F;var P=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),B.length-1&&(this.yylineno-=B.length-1);var G=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:B?(B.length===P.length?this.yylloc.first_column:0)+P[P.length-B.length].length-B[0].length:this.yylloc.first_column-F},this.options.ranges&&(this.yylloc.range=[G[0],G[0]+this.yyleng-F]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(w){this.unput(this.match.slice(w))},pastInput:function(){var w=this.matched.substr(0,this.matched.length-this.match.length);return(w.length>20?"...":"")+w.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var w=this.match;return w.length<20&&(w+=this._input.substr(0,20-w.length)),(w.substr(0,20)+(w.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var w=this.pastInput(),F=new Array(w.length+1).join("-");return w+this.upcomingInput()+`
`+F+"^"},test_match:function(w,F){var B,P,G;if(this.options.backtrack_lexer&&(G={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(G.yylloc.range=this.yylloc.range.slice(0))),(P=w[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=P.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:P?P[P.length-1].length-P[P.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+w[0].length},this.yytext+=w[0],this.match+=w[0],this.matches=w,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(w[0].length),this.matched+=w[0],B=this.performAction.call(this,this.yy,this,F,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),B)return B;if(this._backtrack){for(var K in G)this[K]=G[K];return!1}return!1},next:function(){if(this.done)return this.EOF;var w,F,B,P;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var G=this._currentRules(),K=0;K<G.length;K++)if((B=this._input.match(this.rules[G[K]]))&&(!F||B[0].length>F[0].length)){if(F=B,P=K,this.options.backtrack_lexer){if((w=this.test_match(B,G[K]))!==!1)return w;if(this._backtrack){F=!1;continue}return!1}if(!this.options.flex)break}return F?(w=this.test_match(F,G[P]))!==!1&&w:this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(w){this.conditionStack.push(w)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(w){return(w=this.conditionStack.length-1-Math.abs(w||0))>=0?this.conditionStack[w]:"INITIAL"},pushState:function(w){this.begin(w)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(w,F,B,P){switch(B){case 0:return 4;case 1:return 9;case 2:return"space";case 3:return 10;case 4:return 6;case 5:return"TXT"}},rules:[/^(?:info\b)/i,/^(?:[\s\n\r]+)/i,/^(?:[\s]+)/i,/^(?:showInfo\b)/i,/^(?:$)/i,/^(?:.)/i],conditions:{INITIAL:{rules:[0,1,2,3,4,5],inclusive:!0}}};function A(){this.yy={}}return y.lexer=E,A.prototype=y,y.Parser=A,new A}();z.parser=b,z.Parser=b.Parser,z.parse=function(){return b.parse.apply(b,arguments)},z.main=function(u){u[1]||(console.log("Usage: "+u[0]+" FILE"),process.exit(1));var _=p(1428).readFileSync(p(6470).normalize(u[1]),"utf8");return z.parser.parse(_)},p.c[p.s]===M&&z.main(process.argv.slice(1))},7062:(M,z,p)=>{M=p.nmd(M);var b=function(){var u=function(wt,mt,X,ot){for(X=X||{},ot=wt.length;ot--;X[wt[ot]]=mt);return X},_=[1,4],y=[1,5],E=[1,6],A=[1,7],w=[1,9],F=[1,11,13,15,17,19,20,26,27,28,29],B=[2,5],P=[1,6,11,13,15,17,19,20,26,27,28,29],G=[26,27,28],K=[2,8],J=[1,18],ht=[1,19],tt=[1,20],kt=[1,21],at=[1,22],ut=[1,23],vt=[1,28],Zt=[6,26,27,28,29],Gt={trace:function(){},yy:{},symbols_:{error:2,start:3,eol:4,directive:5,PIE:6,document:7,showData:8,line:9,statement:10,txt:11,value:12,title:13,title_value:14,acc_title:15,acc_title_value:16,acc_descr:17,acc_descr_value:18,acc_descr_multiline_value:19,section:20,openDirective:21,typeDirective:22,closeDirective:23,":":24,argDirective:25,NEWLINE:26,";":27,EOF:28,open_directive:29,type_directive:30,arg_directive:31,close_directive:32,$accept:0,$end:1},terminals_:{2:"error",6:"PIE",8:"showData",11:"txt",12:"value",13:"title",14:"title_value",15:"acc_title",16:"acc_title_value",17:"acc_descr",18:"acc_descr_value",19:"acc_descr_multiline_value",20:"section",24:":",26:"NEWLINE",27:";",28:"EOF",29:"open_directive",30:"type_directive",31:"arg_directive",32:"close_directive"},productions_:[0,[3,2],[3,2],[3,2],[3,3],[7,0],[7,2],[9,2],[10,0],[10,2],[10,2],[10,2],[10,2],[10,1],[10,1],[10,1],[5,3],[5,5],[4,1],[4,1],[4,1],[21,1],[22,1],[25,1],[23,1]],performAction:function(wt,mt,X,ot,j,yt,Y){var bt=yt.length-1;switch(j){case 4:ot.setShowData(!0);break;case 7:this.$=yt[bt-1];break;case 9:ot.addSection(yt[bt-1],ot.cleanupValue(yt[bt]));break;case 10:this.$=yt[bt].trim(),ot.setDiagramTitle(this.$);break;case 11:this.$=yt[bt].trim(),ot.setAccTitle(this.$);break;case 12:case 13:this.$=yt[bt].trim(),ot.setAccDescription(this.$);break;case 14:ot.addSection(yt[bt].substr(8)),this.$=yt[bt].substr(8);break;case 21:ot.parseDirective("%%{","open_directive");break;case 22:ot.parseDirective(yt[bt],"type_directive");break;case 23:yt[bt]=yt[bt].trim().replace(/'/g,'"'),ot.parseDirective(yt[bt],"arg_directive");break;case 24:ot.parseDirective("}%%","close_directive","pie")}},table:[{3:1,4:2,5:3,6:_,21:8,26:y,27:E,28:A,29:w},{1:[3]},{3:10,4:2,5:3,6:_,21:8,26:y,27:E,28:A,29:w},{3:11,4:2,5:3,6:_,21:8,26:y,27:E,28:A,29:w},u(F,B,{7:12,8:[1,13]}),u(P,[2,18]),u(P,[2,19]),u(P,[2,20]),{22:14,30:[1,15]},{30:[2,21]},{1:[2,1]},{1:[2,2]},u(G,K,{21:8,9:16,10:17,5:24,1:[2,3],11:J,13:ht,15:tt,17:kt,19:at,20:ut,29:w}),u(F,B,{7:25}),{23:26,24:[1,27],32:vt},u([24,32],[2,22]),u(F,[2,6]),{4:29,26:y,27:E,28:A},{12:[1,30]},{14:[1,31]},{16:[1,32]},{18:[1,33]},u(G,[2,13]),u(G,[2,14]),u(G,[2,15]),u(G,K,{21:8,9:16,10:17,5:24,1:[2,4],11:J,13:ht,15:tt,17:kt,19:at,20:ut,29:w}),u(Zt,[2,16]),{25:34,31:[1,35]},u(Zt,[2,24]),u(F,[2,7]),u(G,[2,9]),u(G,[2,10]),u(G,[2,11]),u(G,[2,12]),{23:36,32:vt},{32:[2,23]},u(Zt,[2,17])],defaultActions:{9:[2,21],10:[2,1],11:[2,2],35:[2,23]},parseError:function(wt,mt){if(!mt.recoverable){var X=new Error(wt);throw X.hash=mt,X}this.trace(wt)},parse:function(wt){var mt=this,X=[0],ot=[],j=[null],yt=[],Y=this.table,bt="",Ct=0,$t=0,be=0,We=2,xe=1,pe=yt.slice.call(arguments,1),_e=Object.create(this.lexer),Ae={yy:{}};for(var De in this.yy)Object.prototype.hasOwnProperty.call(this.yy,De)&&(Ae.yy[De]=this.yy[De]);_e.setInput(wt,Ae.yy),Ae.yy.lexer=_e,Ae.yy.parser=this,_e.yylloc===void 0&&(_e.yylloc={});var me=_e.yylloc;yt.push(me);var wn=_e.options&&_e.options.ranges;function de(){var Le;return typeof(Le=ot.pop()||_e.lex()||xe)!="number"&&(Le instanceof Array&&(Le=(ot=Le).pop()),Le=mt.symbols_[Le]||Le),Le}typeof Ae.yy.parseError=="function"?this.parseError=Ae.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var Qe,ne,Qt,se,Et,te,st,dt,ft,Mt={};;){if(Qt=X[X.length-1],this.defaultActions[Qt]?se=this.defaultActions[Qt]:(Qe==null&&(Qe=de()),se=Y[Qt]&&Y[Qt][Qe]),se===void 0||!se.length||!se[0]){var fe="";for(te in ft=[],Y[Qt])this.terminals_[te]&&te>We&&ft.push("'"+this.terminals_[te]+"'");fe=_e.showPosition?"Parse error on line "+(Ct+1)+`:
`+_e.showPosition()+`
Expecting `+ft.join(", ")+", got '"+(this.terminals_[Qe]||Qe)+"'":"Parse error on line "+(Ct+1)+": Unexpected "+(Qe==xe?"end of input":"'"+(this.terminals_[Qe]||Qe)+"'"),this.parseError(fe,{text:_e.match,token:this.terminals_[Qe]||Qe,line:_e.yylineno,loc:me,expected:ft})}if(se[0]instanceof Array&&se.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Qt+", token: "+Qe);switch(se[0]){case 1:X.push(Qe),j.push(_e.yytext),yt.push(_e.yylloc),X.push(se[1]),Qe=null,ne?(Qe=ne,ne=null):($t=_e.yyleng,bt=_e.yytext,Ct=_e.yylineno,me=_e.yylloc,be>0);break;case 2:if(st=this.productions_[se[1]][1],Mt.$=j[j.length-st],Mt._$={first_line:yt[yt.length-(st||1)].first_line,last_line:yt[yt.length-1].last_line,first_column:yt[yt.length-(st||1)].first_column,last_column:yt[yt.length-1].last_column},wn&&(Mt._$.range=[yt[yt.length-(st||1)].range[0],yt[yt.length-1].range[1]]),(Et=this.performAction.apply(Mt,[bt,$t,Ct,Ae.yy,se[1],j,yt].concat(pe)))!==void 0)return Et;st&&(X=X.slice(0,-1*st*2),j=j.slice(0,-1*st),yt=yt.slice(0,-1*st)),X.push(this.productions_[se[1]][0]),j.push(Mt.$),yt.push(Mt._$),dt=Y[X[X.length-2]][X[X.length-1]],X.push(dt);break;case 3:return!0}}return!0}},xt={EOF:1,parseError:function(wt,mt){if(!this.yy.parser)throw new Error(wt);this.yy.parser.parseError(wt,mt)},setInput:function(wt,mt){return this.yy=mt||this.yy||{},this._input=wt,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var wt=this._input[0];return this.yytext+=wt,this.yyleng++,this.offset++,this.match+=wt,this.matched+=wt,wt.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),wt},unput:function(wt){var mt=wt.length,X=wt.split(/(?:\r\n?|\n)/g);this._input=wt+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-mt),this.offset-=mt;var ot=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),X.length-1&&(this.yylineno-=X.length-1);var j=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:X?(X.length===ot.length?this.yylloc.first_column:0)+ot[ot.length-X.length].length-X[0].length:this.yylloc.first_column-mt},this.options.ranges&&(this.yylloc.range=[j[0],j[0]+this.yyleng-mt]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(wt){this.unput(this.match.slice(wt))},pastInput:function(){var wt=this.matched.substr(0,this.matched.length-this.match.length);return(wt.length>20?"...":"")+wt.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var wt=this.match;return wt.length<20&&(wt+=this._input.substr(0,20-wt.length)),(wt.substr(0,20)+(wt.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var wt=this.pastInput(),mt=new Array(wt.length+1).join("-");return wt+this.upcomingInput()+`
`+mt+"^"},test_match:function(wt,mt){var X,ot,j;if(this.options.backtrack_lexer&&(j={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(j.yylloc.range=this.yylloc.range.slice(0))),(ot=wt[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=ot.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:ot?ot[ot.length-1].length-ot[ot.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+wt[0].length},this.yytext+=wt[0],this.match+=wt[0],this.matches=wt,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(wt[0].length),this.matched+=wt[0],X=this.performAction.call(this,this.yy,this,mt,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),X)return X;if(this._backtrack){for(var yt in j)this[yt]=j[yt];return!1}return!1},next:function(){if(this.done)return this.EOF;var wt,mt,X,ot;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var j=this._currentRules(),yt=0;yt<j.length;yt++)if((X=this._input.match(this.rules[j[yt]]))&&(!mt||X[0].length>mt[0].length)){if(mt=X,ot=yt,this.options.backtrack_lexer){if((wt=this.test_match(X,j[yt]))!==!1)return wt;if(this._backtrack){mt=!1;continue}return!1}if(!this.options.flex)break}return mt?(wt=this.test_match(mt,j[ot]))!==!1&&wt:this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(wt){this.conditionStack.push(wt)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(wt){return(wt=this.conditionStack.length-1-Math.abs(wt||0))>=0?this.conditionStack[wt]:"INITIAL"},pushState:function(wt){this.begin(wt)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(wt,mt,X,ot){switch(X){case 0:return this.begin("open_directive"),29;case 1:return this.begin("type_directive"),30;case 2:return this.popState(),this.begin("arg_directive"),24;case 3:return this.popState(),this.popState(),32;case 4:return 31;case 5:case 6:case 8:case 9:break;case 7:return 26;case 10:return this.begin("title"),13;case 11:return this.popState(),"title_value";case 12:return this.begin("acc_title"),15;case 13:return this.popState(),"acc_title_value";case 14:return this.begin("acc_descr"),17;case 15:return this.popState(),"acc_descr_value";case 16:this.begin("acc_descr_multiline");break;case 17:case 20:this.popState();break;case 18:return"acc_descr_multiline_value";case 19:this.begin("string");break;case 21:return"txt";case 22:return 6;case 23:return 8;case 24:return"value";case 25:return 28}},rules:[/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n\r]+)/i,/^(?:%%[^\n]*)/i,/^(?:[\s]+)/i,/^(?:title\b)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:pie\b)/i,/^(?:showData\b)/i,/^(?::[\s]*[\d]+(?:\.[\d]+)?)/i,/^(?:$)/i],conditions:{acc_descr_multiline:{rules:[17,18],inclusive:!1},acc_descr:{rules:[15],inclusive:!1},acc_title:{rules:[13],inclusive:!1},close_directive:{rules:[],inclusive:!1},arg_directive:{rules:[3,4],inclusive:!1},type_directive:{rules:[2,3],inclusive:!1},open_directive:{rules:[1],inclusive:!1},title:{rules:[11],inclusive:!1},string:{rules:[20,21],inclusive:!1},INITIAL:{rules:[0,5,6,7,8,9,10,12,14,16,19,22,23,24,25],inclusive:!0}}};function It(){this.yy={}}return Gt.lexer=xt,It.prototype=Gt,Gt.Parser=It,new It}();z.parser=b,z.Parser=b.Parser,z.parse=function(){return b.parse.apply(b,arguments)},z.main=function(u){u[1]||(console.log("Usage: "+u[0]+" FILE"),process.exit(1));var _=p(4551).readFileSync(p(6470).normalize(u[1]),"utf8");return z.parser.parse(_)},p.c[p.s]===M&&z.main(process.argv.slice(1))},3176:(M,z,p)=>{M=p.nmd(M);var b=function(){var u=function(ne,Qt,se,Et){for(se=se||{},Et=ne.length;Et--;se[ne[Et]]=Qt);return se},_=[1,3],y=[1,5],E=[1,6],A=[1,7],w=[1,8],F=[5,6,8,14,16,18,19,40,41,42,43,44,45,53,71,72],B=[1,22],P=[2,13],G=[1,26],K=[1,27],J=[1,28],ht=[1,29],tt=[1,30],kt=[1,31],at=[1,24],ut=[1,32],vt=[1,33],Zt=[1,36],Gt=[71,72],xt=[5,8,14,16,18,19,40,41,42,43,44,45,53,60,62,71,72],It=[1,56],wt=[1,57],mt=[1,58],X=[1,59],ot=[1,60],j=[1,61],yt=[1,62],Y=[62,63],bt=[1,74],Ct=[1,70],$t=[1,71],be=[1,72],We=[1,73],xe=[1,75],pe=[1,79],_e=[1,80],Ae=[1,77],De=[1,78],me=[5,8,14,16,18,19,40,41,42,43,44,45,53,71,72],wn={trace:function(){},yy:{},symbols_:{error:2,start:3,directive:4,NEWLINE:5,RD:6,diagram:7,EOF:8,openDirective:9,typeDirective:10,closeDirective:11,":":12,argDirective:13,acc_title:14,acc_title_value:15,acc_descr:16,acc_descr_value:17,acc_descr_multiline_value:18,open_directive:19,type_directive:20,arg_directive:21,close_directive:22,requirementDef:23,elementDef:24,relationshipDef:25,requirementType:26,requirementName:27,STRUCT_START:28,requirementBody:29,ID:30,COLONSEP:31,id:32,TEXT:33,text:34,RISK:35,riskLevel:36,VERIFYMTHD:37,verifyType:38,STRUCT_STOP:39,REQUIREMENT:40,FUNCTIONAL_REQUIREMENT:41,INTERFACE_REQUIREMENT:42,PERFORMANCE_REQUIREMENT:43,PHYSICAL_REQUIREMENT:44,DESIGN_CONSTRAINT:45,LOW_RISK:46,MED_RISK:47,HIGH_RISK:48,VERIFY_ANALYSIS:49,VERIFY_DEMONSTRATION:50,VERIFY_INSPECTION:51,VERIFY_TEST:52,ELEMENT:53,elementName:54,elementBody:55,TYPE:56,type:57,DOCREF:58,ref:59,END_ARROW_L:60,relationship:61,LINE:62,END_ARROW_R:63,CONTAINS:64,COPIES:65,DERIVES:66,SATISFIES:67,VERIFIES:68,REFINES:69,TRACES:70,unqString:71,qString:72,$accept:0,$end:1},terminals_:{2:"error",5:"NEWLINE",6:"RD",8:"EOF",12:":",14:"acc_title",15:"acc_title_value",16:"acc_descr",17:"acc_descr_value",18:"acc_descr_multiline_value",19:"open_directive",20:"type_directive",21:"arg_directive",22:"close_directive",28:"STRUCT_START",30:"ID",31:"COLONSEP",33:"TEXT",35:"RISK",37:"VERIFYMTHD",39:"STRUCT_STOP",40:"REQUIREMENT",41:"FUNCTIONAL_REQUIREMENT",42:"INTERFACE_REQUIREMENT",43:"PERFORMANCE_REQUIREMENT",44:"PHYSICAL_REQUIREMENT",45:"DESIGN_CONSTRAINT",46:"LOW_RISK",47:"MED_RISK",48:"HIGH_RISK",49:"VERIFY_ANALYSIS",50:"VERIFY_DEMONSTRATION",51:"VERIFY_INSPECTION",52:"VERIFY_TEST",53:"ELEMENT",56:"TYPE",58:"DOCREF",60:"END_ARROW_L",62:"LINE",63:"END_ARROW_R",64:"CONTAINS",65:"COPIES",66:"DERIVES",67:"SATISFIES",68:"VERIFIES",69:"REFINES",70:"TRACES",71:"unqString",72:"qString"},productions_:[0,[3,3],[3,2],[3,4],[4,3],[4,5],[4,2],[4,2],[4,1],[9,1],[10,1],[13,1],[11,1],[7,0],[7,2],[7,2],[7,2],[7,2],[7,2],[23,5],[29,5],[29,5],[29,5],[29,5],[29,2],[29,1],[26,1],[26,1],[26,1],[26,1],[26,1],[26,1],[36,1],[36,1],[36,1],[38,1],[38,1],[38,1],[38,1],[24,5],[55,5],[55,5],[55,2],[55,1],[25,5],[25,5],[61,1],[61,1],[61,1],[61,1],[61,1],[61,1],[61,1],[27,1],[27,1],[32,1],[32,1],[34,1],[34,1],[54,1],[54,1],[57,1],[57,1],[59,1],[59,1]],performAction:function(ne,Qt,se,Et,te,st,dt){var ft=st.length-1;switch(te){case 6:this.$=st[ft].trim(),Et.setAccTitle(this.$);break;case 7:case 8:this.$=st[ft].trim(),Et.setAccDescription(this.$);break;case 9:Et.parseDirective("%%{","open_directive");break;case 10:Et.parseDirective(st[ft],"type_directive");break;case 11:st[ft]=st[ft].trim().replace(/'/g,'"'),Et.parseDirective(st[ft],"arg_directive");break;case 12:Et.parseDirective("}%%","close_directive","pie");break;case 13:this.$=[];break;case 19:Et.addRequirement(st[ft-3],st[ft-4]);break;case 20:Et.setNewReqId(st[ft-2]);break;case 21:Et.setNewReqText(st[ft-2]);break;case 22:Et.setNewReqRisk(st[ft-2]);break;case 23:Et.setNewReqVerifyMethod(st[ft-2]);break;case 26:this.$=Et.RequirementType.REQUIREMENT;break;case 27:this.$=Et.RequirementType.FUNCTIONAL_REQUIREMENT;break;case 28:this.$=Et.RequirementType.INTERFACE_REQUIREMENT;break;case 29:this.$=Et.RequirementType.PERFORMANCE_REQUIREMENT;break;case 30:this.$=Et.RequirementType.PHYSICAL_REQUIREMENT;break;case 31:this.$=Et.RequirementType.DESIGN_CONSTRAINT;break;case 32:this.$=Et.RiskLevel.LOW_RISK;break;case 33:this.$=Et.RiskLevel.MED_RISK;break;case 34:this.$=Et.RiskLevel.HIGH_RISK;break;case 35:this.$=Et.VerifyType.VERIFY_ANALYSIS;break;case 36:this.$=Et.VerifyType.VERIFY_DEMONSTRATION;break;case 37:this.$=Et.VerifyType.VERIFY_INSPECTION;break;case 38:this.$=Et.VerifyType.VERIFY_TEST;break;case 39:Et.addElement(st[ft-3]);break;case 40:Et.setNewElementType(st[ft-2]);break;case 41:Et.setNewElementDocRef(st[ft-2]);break;case 44:Et.addRelationship(st[ft-2],st[ft],st[ft-4]);break;case 45:Et.addRelationship(st[ft-2],st[ft-4],st[ft]);break;case 46:this.$=Et.Relationships.CONTAINS;break;case 47:this.$=Et.Relationships.COPIES;break;case 48:this.$=Et.Relationships.DERIVES;break;case 49:this.$=Et.Relationships.SATISFIES;break;case 50:this.$=Et.Relationships.VERIFIES;break;case 51:this.$=Et.Relationships.REFINES;break;case 52:this.$=Et.Relationships.TRACES}},table:[{3:1,4:2,6:_,9:4,14:y,16:E,18:A,19:w},{1:[3]},{3:10,4:2,5:[1,9],6:_,9:4,14:y,16:E,18:A,19:w},{5:[1,11]},{10:12,20:[1,13]},{15:[1,14]},{17:[1,15]},u(F,[2,8]),{20:[2,9]},{3:16,4:2,6:_,9:4,14:y,16:E,18:A,19:w},{1:[2,2]},{4:21,5:B,7:17,8:P,9:4,14:y,16:E,18:A,19:w,23:18,24:19,25:20,26:23,32:25,40:G,41:K,42:J,43:ht,44:tt,45:kt,53:at,71:ut,72:vt},{11:34,12:[1,35],22:Zt},u([12,22],[2,10]),u(F,[2,6]),u(F,[2,7]),{1:[2,1]},{8:[1,37]},{4:21,5:B,7:38,8:P,9:4,14:y,16:E,18:A,19:w,23:18,24:19,25:20,26:23,32:25,40:G,41:K,42:J,43:ht,44:tt,45:kt,53:at,71:ut,72:vt},{4:21,5:B,7:39,8:P,9:4,14:y,16:E,18:A,19:w,23:18,24:19,25:20,26:23,32:25,40:G,41:K,42:J,43:ht,44:tt,45:kt,53:at,71:ut,72:vt},{4:21,5:B,7:40,8:P,9:4,14:y,16:E,18:A,19:w,23:18,24:19,25:20,26:23,32:25,40:G,41:K,42:J,43:ht,44:tt,45:kt,53:at,71:ut,72:vt},{4:21,5:B,7:41,8:P,9:4,14:y,16:E,18:A,19:w,23:18,24:19,25:20,26:23,32:25,40:G,41:K,42:J,43:ht,44:tt,45:kt,53:at,71:ut,72:vt},{4:21,5:B,7:42,8:P,9:4,14:y,16:E,18:A,19:w,23:18,24:19,25:20,26:23,32:25,40:G,41:K,42:J,43:ht,44:tt,45:kt,53:at,71:ut,72:vt},{27:43,71:[1,44],72:[1,45]},{54:46,71:[1,47],72:[1,48]},{60:[1,49],62:[1,50]},u(Gt,[2,26]),u(Gt,[2,27]),u(Gt,[2,28]),u(Gt,[2,29]),u(Gt,[2,30]),u(Gt,[2,31]),u(xt,[2,55]),u(xt,[2,56]),u(F,[2,4]),{13:51,21:[1,52]},u(F,[2,12]),{1:[2,3]},{8:[2,14]},{8:[2,15]},{8:[2,16]},{8:[2,17]},{8:[2,18]},{28:[1,53]},{28:[2,53]},{28:[2,54]},{28:[1,54]},{28:[2,59]},{28:[2,60]},{61:55,64:It,65:wt,66:mt,67:X,68:ot,69:j,70:yt},{61:63,64:It,65:wt,66:mt,67:X,68:ot,69:j,70:yt},{11:64,22:Zt},{22:[2,11]},{5:[1,65]},{5:[1,66]},{62:[1,67]},u(Y,[2,46]),u(Y,[2,47]),u(Y,[2,48]),u(Y,[2,49]),u(Y,[2,50]),u(Y,[2,51]),u(Y,[2,52]),{63:[1,68]},u(F,[2,5]),{5:bt,29:69,30:Ct,33:$t,35:be,37:We,39:xe},{5:pe,39:_e,55:76,56:Ae,58:De},{32:81,71:ut,72:vt},{32:82,71:ut,72:vt},u(me,[2,19]),{31:[1,83]},{31:[1,84]},{31:[1,85]},{31:[1,86]},{5:bt,29:87,30:Ct,33:$t,35:be,37:We,39:xe},u(me,[2,25]),u(me,[2,39]),{31:[1,88]},{31:[1,89]},{5:pe,39:_e,55:90,56:Ae,58:De},u(me,[2,43]),u(me,[2,44]),u(me,[2,45]),{32:91,71:ut,72:vt},{34:92,71:[1,93],72:[1,94]},{36:95,46:[1,96],47:[1,97],48:[1,98]},{38:99,49:[1,100],50:[1,101],51:[1,102],52:[1,103]},u(me,[2,24]),{57:104,71:[1,105],72:[1,106]},{59:107,71:[1,108],72:[1,109]},u(me,[2,42]),{5:[1,110]},{5:[1,111]},{5:[2,57]},{5:[2,58]},{5:[1,112]},{5:[2,32]},{5:[2,33]},{5:[2,34]},{5:[1,113]},{5:[2,35]},{5:[2,36]},{5:[2,37]},{5:[2,38]},{5:[1,114]},{5:[2,61]},{5:[2,62]},{5:[1,115]},{5:[2,63]},{5:[2,64]},{5:bt,29:116,30:Ct,33:$t,35:be,37:We,39:xe},{5:bt,29:117,30:Ct,33:$t,35:be,37:We,39:xe},{5:bt,29:118,30:Ct,33:$t,35:be,37:We,39:xe},{5:bt,29:119,30:Ct,33:$t,35:be,37:We,39:xe},{5:pe,39:_e,55:120,56:Ae,58:De},{5:pe,39:_e,55:121,56:Ae,58:De},u(me,[2,20]),u(me,[2,21]),u(me,[2,22]),u(me,[2,23]),u(me,[2,40]),u(me,[2,41])],defaultActions:{8:[2,9],10:[2,2],16:[2,1],37:[2,3],38:[2,14],39:[2,15],40:[2,16],41:[2,17],42:[2,18],44:[2,53],45:[2,54],47:[2,59],48:[2,60],52:[2,11],93:[2,57],94:[2,58],96:[2,32],97:[2,33],98:[2,34],100:[2,35],101:[2,36],102:[2,37],103:[2,38],105:[2,61],106:[2,62],108:[2,63],109:[2,64]},parseError:function(ne,Qt){if(!Qt.recoverable){var se=new Error(ne);throw se.hash=Qt,se}this.trace(ne)},parse:function(ne){var Qt=this,se=[0],Et=[],te=[null],st=[],dt=this.table,ft="",Mt=0,fe=0,Le=0,en=2,qe=1,sn=st.slice.call(arguments,1),Fe=Object.create(this.lexer),Te={yy:{}};for(var Oe in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Oe)&&(Te.yy[Oe]=this.yy[Oe]);Fe.setInput(ne,Te.yy),Te.yy.lexer=Fe,Te.yy.parser=this,Fe.yylloc===void 0&&(Fe.yylloc={});var Be=Fe.yylloc;st.push(Be);var ge=Fe.options&&Fe.options.ranges;function re(){var Ee;return typeof(Ee=Et.pop()||Fe.lex()||qe)!="number"&&(Ee instanceof Array&&(Ee=(Et=Ee).pop()),Ee=Qt.symbols_[Ee]||Ee),Ee}typeof Te.yy.parseError=="function"?this.parseError=Te.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var An,Ie,ln,Ye,fn,Jn,Dn,Tn,Me,Ke={};;){if(ln=se[se.length-1],this.defaultActions[ln]?Ye=this.defaultActions[ln]:(An==null&&(An=re()),Ye=dt[ln]&&dt[ln][An]),Ye===void 0||!Ye.length||!Ye[0]){var Xe="";for(Jn in Me=[],dt[ln])this.terminals_[Jn]&&Jn>en&&Me.push("'"+this.terminals_[Jn]+"'");Xe=Fe.showPosition?"Parse error on line "+(Mt+1)+`:
`+Fe.showPosition()+`
Expecting `+Me.join(", ")+", got '"+(this.terminals_[An]||An)+"'":"Parse error on line "+(Mt+1)+": Unexpected "+(An==qe?"end of input":"'"+(this.terminals_[An]||An)+"'"),this.parseError(Xe,{text:Fe.match,token:this.terminals_[An]||An,line:Fe.yylineno,loc:Be,expected:Me})}if(Ye[0]instanceof Array&&Ye.length>1)throw new Error("Parse Error: multiple actions possible at state: "+ln+", token: "+An);switch(Ye[0]){case 1:se.push(An),te.push(Fe.yytext),st.push(Fe.yylloc),se.push(Ye[1]),An=null,Ie?(An=Ie,Ie=null):(fe=Fe.yyleng,ft=Fe.yytext,Mt=Fe.yylineno,Be=Fe.yylloc,Le>0);break;case 2:if(Dn=this.productions_[Ye[1]][1],Ke.$=te[te.length-Dn],Ke._$={first_line:st[st.length-(Dn||1)].first_line,last_line:st[st.length-1].last_line,first_column:st[st.length-(Dn||1)].first_column,last_column:st[st.length-1].last_column},ge&&(Ke._$.range=[st[st.length-(Dn||1)].range[0],st[st.length-1].range[1]]),(fn=this.performAction.apply(Ke,[ft,fe,Mt,Te.yy,Ye[1],te,st].concat(sn)))!==void 0)return fn;Dn&&(se=se.slice(0,-1*Dn*2),te=te.slice(0,-1*Dn),st=st.slice(0,-1*Dn)),se.push(this.productions_[Ye[1]][0]),te.push(Ke.$),st.push(Ke._$),Tn=dt[se[se.length-2]][se[se.length-1]],se.push(Tn);break;case 3:return!0}}return!0}},de={EOF:1,parseError:function(ne,Qt){if(!this.yy.parser)throw new Error(ne);this.yy.parser.parseError(ne,Qt)},setInput:function(ne,Qt){return this.yy=Qt||this.yy||{},this._input=ne,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var ne=this._input[0];return this.yytext+=ne,this.yyleng++,this.offset++,this.match+=ne,this.matched+=ne,ne.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),ne},unput:function(ne){var Qt=ne.length,se=ne.split(/(?:\r\n?|\n)/g);this._input=ne+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-Qt),this.offset-=Qt;var Et=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),se.length-1&&(this.yylineno-=se.length-1);var te=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:se?(se.length===Et.length?this.yylloc.first_column:0)+Et[Et.length-se.length].length-se[0].length:this.yylloc.first_column-Qt},this.options.ranges&&(this.yylloc.range=[te[0],te[0]+this.yyleng-Qt]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(ne){this.unput(this.match.slice(ne))},pastInput:function(){var ne=this.matched.substr(0,this.matched.length-this.match.length);return(ne.length>20?"...":"")+ne.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var ne=this.match;return ne.length<20&&(ne+=this._input.substr(0,20-ne.length)),(ne.substr(0,20)+(ne.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var ne=this.pastInput(),Qt=new Array(ne.length+1).join("-");return ne+this.upcomingInput()+`
`+Qt+"^"},test_match:function(ne,Qt){var se,Et,te;if(this.options.backtrack_lexer&&(te={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(te.yylloc.range=this.yylloc.range.slice(0))),(Et=ne[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=Et.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:Et?Et[Et.length-1].length-Et[Et.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+ne[0].length},this.yytext+=ne[0],this.match+=ne[0],this.matches=ne,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(ne[0].length),this.matched+=ne[0],se=this.performAction.call(this,this.yy,this,Qt,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),se)return se;if(this._backtrack){for(var st in te)this[st]=te[st];return!1}return!1},next:function(){if(this.done)return this.EOF;var ne,Qt,se,Et;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var te=this._currentRules(),st=0;st<te.length;st++)if((se=this._input.match(this.rules[te[st]]))&&(!Qt||se[0].length>Qt[0].length)){if(Qt=se,Et=st,this.options.backtrack_lexer){if((ne=this.test_match(se,te[st]))!==!1)return ne;if(this._backtrack){Qt=!1;continue}return!1}if(!this.options.flex)break}return Qt?(ne=this.test_match(Qt,te[Et]))!==!1&&ne:this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(ne){this.conditionStack.push(ne)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(ne){return(ne=this.conditionStack.length-1-Math.abs(ne||0))>=0?this.conditionStack[ne]:"INITIAL"},pushState:function(ne){this.begin(ne)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(ne,Qt,se,Et){switch(se){case 0:return this.begin("open_directive"),19;case 1:return this.begin("type_directive"),20;case 2:return this.popState(),this.begin("arg_directive"),12;case 3:return this.popState(),this.popState(),22;case 4:return 21;case 5:return"title";case 6:return this.begin("acc_title"),14;case 7:return this.popState(),"acc_title_value";case 8:return this.begin("acc_descr"),16;case 9:return this.popState(),"acc_descr_value";case 10:this.begin("acc_descr_multiline");break;case 11:case 53:this.popState();break;case 12:return"acc_descr_multiline_value";case 13:return 5;case 14:case 15:case 16:break;case 17:return 8;case 18:return 6;case 19:return 28;case 20:return 39;case 21:return 31;case 22:return 30;case 23:return 33;case 24:return 35;case 25:return 37;case 26:return 40;case 27:return 41;case 28:return 42;case 29:return 43;case 30:return 44;case 31:return 45;case 32:return 46;case 33:return 47;case 34:return 48;case 35:return 49;case 36:return 50;case 37:return 51;case 38:return 52;case 39:return 53;case 40:return 64;case 41:return 65;case 42:return 66;case 43:return 67;case 44:return 68;case 45:return 69;case 46:return 70;case 47:return 56;case 48:return 58;case 49:return 60;case 50:return 63;case 51:return 62;case 52:this.begin("string");break;case 54:return"qString";case 55:return Qt.yytext=Qt.yytext.trim(),71}},rules:[/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:title\s[^#\n;]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:(\r?\n)+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:%[^\n]*)/i,/^(?:$)/i,/^(?:requirementDiagram\b)/i,/^(?:\{)/i,/^(?:\})/i,/^(?::)/i,/^(?:id\b)/i,/^(?:text\b)/i,/^(?:risk\b)/i,/^(?:verifyMethod\b)/i,/^(?:requirement\b)/i,/^(?:functionalRequirement\b)/i,/^(?:interfaceRequirement\b)/i,/^(?:performanceRequirement\b)/i,/^(?:physicalRequirement\b)/i,/^(?:designConstraint\b)/i,/^(?:low\b)/i,/^(?:medium\b)/i,/^(?:high\b)/i,/^(?:analysis\b)/i,/^(?:demonstration\b)/i,/^(?:inspection\b)/i,/^(?:test\b)/i,/^(?:element\b)/i,/^(?:contains\b)/i,/^(?:copies\b)/i,/^(?:derives\b)/i,/^(?:satisfies\b)/i,/^(?:verifies\b)/i,/^(?:refines\b)/i,/^(?:traces\b)/i,/^(?:type\b)/i,/^(?:docref\b)/i,/^(?:<-)/i,/^(?:->)/i,/^(?:-)/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[\w][^\r\n\{\<\>\-\=]*)/i],conditions:{acc_descr_multiline:{rules:[11,12],inclusive:!1},acc_descr:{rules:[9],inclusive:!1},acc_title:{rules:[7],inclusive:!1},close_directive:{rules:[],inclusive:!1},arg_directive:{rules:[3,4],inclusive:!1},type_directive:{rules:[2,3],inclusive:!1},open_directive:{rules:[1],inclusive:!1},unqString:{rules:[],inclusive:!1},token:{rules:[],inclusive:!1},string:{rules:[53,54],inclusive:!1},INITIAL:{rules:[0,5,6,8,10,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,55],inclusive:!0}}};function Qe(){this.yy={}}return wn.lexer=de,Qe.prototype=wn,wn.Parser=Qe,new Qe}();z.parser=b,z.Parser=b.Parser,z.parse=function(){return b.parse.apply(b,arguments)},z.main=function(u){u[1]||(console.log("Usage: "+u[0]+" FILE"),process.exit(1));var _=p(8800).readFileSync(p(6470).normalize(u[1]),"utf8");return z.parser.parse(_)},p.c[p.s]===M&&z.main(process.argv.slice(1))},6876:(M,z,p)=>{M=p.nmd(M);var b=function(){var u=function(ne,Qt,se,Et){for(se=se||{},Et=ne.length;Et--;se[ne[Et]]=Qt);return se},_=[1,2],y=[1,3],E=[1,5],A=[1,7],w=[2,5],F=[1,15],B=[1,17],P=[1,18],G=[1,19],K=[1,21],J=[1,22],ht=[1,23],tt=[1,29],kt=[1,30],at=[1,31],ut=[1,32],vt=[1,33],Zt=[1,34],Gt=[1,35],xt=[1,36],It=[1,37],wt=[1,38],mt=[1,39],X=[1,40],ot=[1,43],j=[1,44],yt=[1,45],Y=[1,46],bt=[1,47],Ct=[1,48],$t=[1,51],be=[1,4,5,16,20,22,25,26,32,33,34,36,38,39,40,41,42,43,45,47,49,50,51,52,53,58,59,60,61,69,79],We=[4,5,16,20,22,25,26,32,33,34,36,38,39,40,41,42,43,45,47,49,53,58,59,60,61,69,79],xe=[4,5,16,20,22,25,26,32,33,34,36,38,39,40,41,42,43,45,47,49,52,53,58,59,60,61,69,79],pe=[4,5,16,20,22,25,26,32,33,34,36,38,39,40,41,42,43,45,47,49,51,53,58,59,60,61,69,79],_e=[4,5,16,20,22,25,26,32,33,34,36,38,39,40,41,42,43,45,47,49,50,53,58,59,60,61,69,79],Ae=[67,68,69],De=[1,121],me=[1,4,5,7,16,20,22,25,26,32,33,34,36,38,39,40,41,42,43,45,47,49,50,51,52,53,58,59,60,61,69,79],wn={trace:function(){},yy:{},symbols_:{error:2,start:3,SPACE:4,NEWLINE:5,directive:6,SD:7,document:8,line:9,statement:10,openDirective:11,typeDirective:12,closeDirective:13,":":14,argDirective:15,participant:16,actor:17,AS:18,restOfLine:19,participant_actor:20,signal:21,autonumber:22,NUM:23,off:24,activate:25,deactivate:26,note_statement:27,links_statement:28,link_statement:29,properties_statement:30,details_statement:31,title:32,legacy_title:33,acc_title:34,acc_title_value:35,acc_descr:36,acc_descr_value:37,acc_descr_multiline_value:38,loop:39,end:40,rect:41,opt:42,alt:43,else_sections:44,par:45,par_sections:46,critical:47,option_sections:48,break:49,option:50,and:51,else:52,note:53,placement:54,text2:55,over:56,actor_pair:57,links:58,link:59,properties:60,details:61,spaceList:62,",":63,left_of:64,right_of:65,signaltype:66,"+":67,"-":68,ACTOR:69,SOLID_OPEN_ARROW:70,DOTTED_OPEN_ARROW:71,SOLID_ARROW:72,DOTTED_ARROW:73,SOLID_CROSS:74,DOTTED_CROSS:75,SOLID_POINT:76,DOTTED_POINT:77,TXT:78,open_directive:79,type_directive:80,arg_directive:81,close_directive:82,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NEWLINE",7:"SD",14:":",16:"participant",18:"AS",19:"restOfLine",20:"participant_actor",22:"autonumber",23:"NUM",24:"off",25:"activate",26:"deactivate",32:"title",33:"legacy_title",34:"acc_title",35:"acc_title_value",36:"acc_descr",37:"acc_descr_value",38:"acc_descr_multiline_value",39:"loop",40:"end",41:"rect",42:"opt",43:"alt",45:"par",47:"critical",49:"break",50:"option",51:"and",52:"else",53:"note",56:"over",58:"links",59:"link",60:"properties",61:"details",63:",",64:"left_of",65:"right_of",67:"+",68:"-",69:"ACTOR",70:"SOLID_OPEN_ARROW",71:"DOTTED_OPEN_ARROW",72:"SOLID_ARROW",73:"DOTTED_ARROW",74:"SOLID_CROSS",75:"DOTTED_CROSS",76:"SOLID_POINT",77:"DOTTED_POINT",78:"TXT",79:"open_directive",80:"type_directive",81:"arg_directive",82:"close_directive"},productions_:[0,[3,2],[3,2],[3,2],[3,2],[8,0],[8,2],[9,2],[9,1],[9,1],[6,4],[6,6],[10,5],[10,3],[10,5],[10,3],[10,2],[10,4],[10,3],[10,3],[10,2],[10,3],[10,3],[10,2],[10,2],[10,2],[10,2],[10,2],[10,1],[10,1],[10,2],[10,2],[10,1],[10,4],[10,4],[10,4],[10,4],[10,4],[10,4],[10,4],[10,1],[48,1],[48,4],[46,1],[46,4],[44,1],[44,4],[27,4],[27,4],[28,3],[29,3],[30,3],[31,3],[62,2],[62,1],[57,3],[57,1],[54,1],[54,1],[21,5],[21,5],[21,4],[17,1],[66,1],[66,1],[66,1],[66,1],[66,1],[66,1],[66,1],[66,1],[55,1],[11,1],[12,1],[15,1],[13,1]],performAction:function(ne,Qt,se,Et,te,st,dt){var ft=st.length-1;switch(te){case 4:return Et.apply(st[ft]),st[ft];case 5:case 9:this.$=[];break;case 6:st[ft-1].push(st[ft]),this.$=st[ft-1];break;case 7:case 8:case 56:this.$=st[ft];break;case 12:st[ft-3].type="addParticipant",st[ft-3].description=Et.parseMessage(st[ft-1]),this.$=st[ft-3];break;case 13:st[ft-1].type="addParticipant",this.$=st[ft-1];break;case 14:st[ft-3].type="addActor",st[ft-3].description=Et.parseMessage(st[ft-1]),this.$=st[ft-3];break;case 15:st[ft-1].type="addActor",this.$=st[ft-1];break;case 17:this.$={type:"sequenceIndex",sequenceIndex:Number(st[ft-2]),sequenceIndexStep:Number(st[ft-1]),sequenceVisible:!0,signalType:Et.LINETYPE.AUTONUMBER};break;case 18:this.$={type:"sequenceIndex",sequenceIndex:Number(st[ft-1]),sequenceIndexStep:1,sequenceVisible:!0,signalType:Et.LINETYPE.AUTONUMBER};break;case 19:this.$={type:"sequenceIndex",sequenceVisible:!1,signalType:Et.LINETYPE.AUTONUMBER};break;case 20:this.$={type:"sequenceIndex",sequenceVisible:!0,signalType:Et.LINETYPE.AUTONUMBER};break;case 21:this.$={type:"activeStart",signalType:Et.LINETYPE.ACTIVE_START,actor:st[ft-1]};break;case 22:this.$={type:"activeEnd",signalType:Et.LINETYPE.ACTIVE_END,actor:st[ft-1]};break;case 28:Et.setDiagramTitle(st[ft].substring(6)),this.$=st[ft].substring(6);break;case 29:Et.setDiagramTitle(st[ft].substring(7)),this.$=st[ft].substring(7);break;case 30:this.$=st[ft].trim(),Et.setAccTitle(this.$);break;case 31:case 32:this.$=st[ft].trim(),Et.setAccDescription(this.$);break;case 33:st[ft-1].unshift({type:"loopStart",loopText:Et.parseMessage(st[ft-2]),signalType:Et.LINETYPE.LOOP_START}),st[ft-1].push({type:"loopEnd",loopText:st[ft-2],signalType:Et.LINETYPE.LOOP_END}),this.$=st[ft-1];break;case 34:st[ft-1].unshift({type:"rectStart",color:Et.parseMessage(st[ft-2]),signalType:Et.LINETYPE.RECT_START}),st[ft-1].push({type:"rectEnd",color:Et.parseMessage(st[ft-2]),signalType:Et.LINETYPE.RECT_END}),this.$=st[ft-1];break;case 35:st[ft-1].unshift({type:"optStart",optText:Et.parseMessage(st[ft-2]),signalType:Et.LINETYPE.OPT_START}),st[ft-1].push({type:"optEnd",optText:Et.parseMessage(st[ft-2]),signalType:Et.LINETYPE.OPT_END}),this.$=st[ft-1];break;case 36:st[ft-1].unshift({type:"altStart",altText:Et.parseMessage(st[ft-2]),signalType:Et.LINETYPE.ALT_START}),st[ft-1].push({type:"altEnd",signalType:Et.LINETYPE.ALT_END}),this.$=st[ft-1];break;case 37:st[ft-1].unshift({type:"parStart",parText:Et.parseMessage(st[ft-2]),signalType:Et.LINETYPE.PAR_START}),st[ft-1].push({type:"parEnd",signalType:Et.LINETYPE.PAR_END}),this.$=st[ft-1];break;case 38:st[ft-1].unshift({type:"criticalStart",criticalText:Et.parseMessage(st[ft-2]),signalType:Et.LINETYPE.CRITICAL_START}),st[ft-1].push({type:"criticalEnd",signalType:Et.LINETYPE.CRITICAL_END}),this.$=st[ft-1];break;case 39:st[ft-1].unshift({type:"breakStart",breakText:Et.parseMessage(st[ft-2]),signalType:Et.LINETYPE.BREAK_START}),st[ft-1].push({type:"breakEnd",optText:Et.parseMessage(st[ft-2]),signalType:Et.LINETYPE.BREAK_END}),this.$=st[ft-1];break;case 42:this.$=st[ft-3].concat([{type:"option",optionText:Et.parseMessage(st[ft-1]),signalType:Et.LINETYPE.CRITICAL_OPTION},st[ft]]);break;case 44:this.$=st[ft-3].concat([{type:"and",parText:Et.parseMessage(st[ft-1]),signalType:Et.LINETYPE.PAR_AND},st[ft]]);break;case 46:this.$=st[ft-3].concat([{type:"else",altText:Et.parseMessage(st[ft-1]),signalType:Et.LINETYPE.ALT_ELSE},st[ft]]);break;case 47:this.$=[st[ft-1],{type:"addNote",placement:st[ft-2],actor:st[ft-1].actor,text:st[ft]}];break;case 48:st[ft-2]=[].concat(st[ft-1],st[ft-1]).slice(0,2),st[ft-2][0]=st[ft-2][0].actor,st[ft-2][1]=st[ft-2][1].actor,this.$=[st[ft-1],{type:"addNote",placement:Et.PLACEMENT.OVER,actor:st[ft-2].slice(0,2),text:st[ft]}];break;case 49:this.$=[st[ft-1],{type:"addLinks",actor:st[ft-1].actor,text:st[ft]}];break;case 50:this.$=[st[ft-1],{type:"addALink",actor:st[ft-1].actor,text:st[ft]}];break;case 51:this.$=[st[ft-1],{type:"addProperties",actor:st[ft-1].actor,text:st[ft]}];break;case 52:this.$=[st[ft-1],{type:"addDetails",actor:st[ft-1].actor,text:st[ft]}];break;case 55:this.$=[st[ft-2],st[ft]];break;case 57:this.$=Et.PLACEMENT.LEFTOF;break;case 58:this.$=Et.PLACEMENT.RIGHTOF;break;case 59:this.$=[st[ft-4],st[ft-1],{type:"addMessage",from:st[ft-4].actor,to:st[ft-1].actor,signalType:st[ft-3],msg:st[ft]},{type:"activeStart",signalType:Et.LINETYPE.ACTIVE_START,actor:st[ft-1]}];break;case 60:this.$=[st[ft-4],st[ft-1],{type:"addMessage",from:st[ft-4].actor,to:st[ft-1].actor,signalType:st[ft-3],msg:st[ft]},{type:"activeEnd",signalType:Et.LINETYPE.ACTIVE_END,actor:st[ft-4]}];break;case 61:this.$=[st[ft-3],st[ft-1],{type:"addMessage",from:st[ft-3].actor,to:st[ft-1].actor,signalType:st[ft-2],msg:st[ft]}];break;case 62:this.$={type:"addParticipant",actor:st[ft]};break;case 63:this.$=Et.LINETYPE.SOLID_OPEN;break;case 64:this.$=Et.LINETYPE.DOTTED_OPEN;break;case 65:this.$=Et.LINETYPE.SOLID;break;case 66:this.$=Et.LINETYPE.DOTTED;break;case 67:this.$=Et.LINETYPE.SOLID_CROSS;break;case 68:this.$=Et.LINETYPE.DOTTED_CROSS;break;case 69:this.$=Et.LINETYPE.SOLID_POINT;break;case 70:this.$=Et.LINETYPE.DOTTED_POINT;break;case 71:this.$=Et.parseMessage(st[ft].trim().substring(1));break;case 72:Et.parseDirective("%%{","open_directive");break;case 73:Et.parseDirective(st[ft],"type_directive");break;case 74:st[ft]=st[ft].trim().replace(/'/g,'"'),Et.parseDirective(st[ft],"arg_directive");break;case 75:Et.parseDirective("}%%","close_directive","sequence")}},table:[{3:1,4:_,5:y,6:4,7:E,11:6,79:A},{1:[3]},{3:8,4:_,5:y,6:4,7:E,11:6,79:A},{3:9,4:_,5:y,6:4,7:E,11:6,79:A},{3:10,4:_,5:y,6:4,7:E,11:6,79:A},u([1,4,5,16,20,22,25,26,32,33,34,36,38,39,41,42,43,45,47,49,53,58,59,60,61,69,79],w,{8:11}),{12:12,80:[1,13]},{80:[2,72]},{1:[2,1]},{1:[2,2]},{1:[2,3]},{1:[2,4],4:F,5:B,6:41,9:14,10:16,11:6,16:P,17:42,20:G,21:20,22:K,25:J,26:ht,27:24,28:25,29:26,30:27,31:28,32:tt,33:kt,34:at,36:ut,38:vt,39:Zt,41:Gt,42:xt,43:It,45:wt,47:mt,49:X,53:ot,58:j,59:yt,60:Y,61:bt,69:Ct,79:A},{13:49,14:[1,50],82:$t},u([14,82],[2,73]),u(be,[2,6]),{6:41,10:52,11:6,16:P,17:42,20:G,21:20,22:K,25:J,26:ht,27:24,28:25,29:26,30:27,31:28,32:tt,33:kt,34:at,36:ut,38:vt,39:Zt,41:Gt,42:xt,43:It,45:wt,47:mt,49:X,53:ot,58:j,59:yt,60:Y,61:bt,69:Ct,79:A},u(be,[2,8]),u(be,[2,9]),{17:53,69:Ct},{17:54,69:Ct},{5:[1,55]},{5:[1,58],23:[1,56],24:[1,57]},{17:59,69:Ct},{17:60,69:Ct},{5:[1,61]},{5:[1,62]},{5:[1,63]},{5:[1,64]},{5:[1,65]},u(be,[2,28]),u(be,[2,29]),{35:[1,66]},{37:[1,67]},u(be,[2,32]),{19:[1,68]},{19:[1,69]},{19:[1,70]},{19:[1,71]},{19:[1,72]},{19:[1,73]},{19:[1,74]},u(be,[2,40]),{66:75,70:[1,76],71:[1,77],72:[1,78],73:[1,79],74:[1,80],75:[1,81],76:[1,82],77:[1,83]},{54:84,56:[1,85],64:[1,86],65:[1,87]},{17:88,69:Ct},{17:89,69:Ct},{17:90,69:Ct},{17:91,69:Ct},u([5,18,63,70,71,72,73,74,75,76,77,78],[2,62]),{5:[1,92]},{15:93,81:[1,94]},{5:[2,75]},u(be,[2,7]),{5:[1,96],18:[1,95]},{5:[1,98],18:[1,97]},u(be,[2,16]),{5:[1,100],23:[1,99]},{5:[1,101]},u(be,[2,20]),{5:[1,102]},{5:[1,103]},u(be,[2,23]),u(be,[2,24]),u(be,[2,25]),u(be,[2,26]),u(be,[2,27]),u(be,[2,30]),u(be,[2,31]),u(We,w,{8:104}),u(We,w,{8:105}),u(We,w,{8:106}),u(xe,w,{44:107,8:108}),u(pe,w,{46:109,8:110}),u(_e,w,{48:111,8:112}),u(We,w,{8:113}),{17:116,67:[1,114],68:[1,115],69:Ct},u(Ae,[2,63]),u(Ae,[2,64]),u(Ae,[2,65]),u(Ae,[2,66]),u(Ae,[2,67]),u(Ae,[2,68]),u(Ae,[2,69]),u(Ae,[2,70]),{17:117,69:Ct},{17:119,57:118,69:Ct},{69:[2,57]},{69:[2,58]},{55:120,78:De},{55:122,78:De},{55:123,78:De},{55:124,78:De},u(me,[2,10]),{13:125,82:$t},{82:[2,74]},{19:[1,126]},u(be,[2,13]),{19:[1,127]},u(be,[2,15]),{5:[1,128]},u(be,[2,18]),u(be,[2,19]),u(be,[2,21]),u(be,[2,22]),{4:F,5:B,6:41,9:14,10:16,11:6,16:P,17:42,20:G,21:20,22:K,25:J,26:ht,27:24,28:25,29:26,30:27,31:28,32:tt,33:kt,34:at,36:ut,38:vt,39:Zt,40:[1,129],41:Gt,42:xt,43:It,45:wt,47:mt,49:X,53:ot,58:j,59:yt,60:Y,61:bt,69:Ct,79:A},{4:F,5:B,6:41,9:14,10:16,11:6,16:P,17:42,20:G,21:20,22:K,25:J,26:ht,27:24,28:25,29:26,30:27,31:28,32:tt,33:kt,34:at,36:ut,38:vt,39:Zt,40:[1,130],41:Gt,42:xt,43:It,45:wt,47:mt,49:X,53:ot,58:j,59:yt,60:Y,61:bt,69:Ct,79:A},{4:F,5:B,6:41,9:14,10:16,11:6,16:P,17:42,20:G,21:20,22:K,25:J,26:ht,27:24,28:25,29:26,30:27,31:28,32:tt,33:kt,34:at,36:ut,38:vt,39:Zt,40:[1,131],41:Gt,42:xt,43:It,45:wt,47:mt,49:X,53:ot,58:j,59:yt,60:Y,61:bt,69:Ct,79:A},{40:[1,132]},{4:F,5:B,6:41,9:14,10:16,11:6,16:P,17:42,20:G,21:20,22:K,25:J,26:ht,27:24,28:25,29:26,30:27,31:28,32:tt,33:kt,34:at,36:ut,38:vt,39:Zt,40:[2,45],41:Gt,42:xt,43:It,45:wt,47:mt,49:X,52:[1,133],53:ot,58:j,59:yt,60:Y,61:bt,69:Ct,79:A},{40:[1,134]},{4:F,5:B,6:41,9:14,10:16,11:6,16:P,17:42,20:G,21:20,22:K,25:J,26:ht,27:24,28:25,29:26,30:27,31:28,32:tt,33:kt,34:at,36:ut,38:vt,39:Zt,40:[2,43],41:Gt,42:xt,43:It,45:wt,47:mt,49:X,51:[1,135],53:ot,58:j,59:yt,60:Y,61:bt,69:Ct,79:A},{40:[1,136]},{4:F,5:B,6:41,9:14,10:16,11:6,16:P,17:42,20:G,21:20,22:K,25:J,26:ht,27:24,28:25,29:26,30:27,31:28,32:tt,33:kt,34:at,36:ut,38:vt,39:Zt,40:[2,41],41:Gt,42:xt,43:It,45:wt,47:mt,49:X,50:[1,137],53:ot,58:j,59:yt,60:Y,61:bt,69:Ct,79:A},{4:F,5:B,6:41,9:14,10:16,11:6,16:P,17:42,20:G,21:20,22:K,25:J,26:ht,27:24,28:25,29:26,30:27,31:28,32:tt,33:kt,34:at,36:ut,38:vt,39:Zt,40:[1,138],41:Gt,42:xt,43:It,45:wt,47:mt,49:X,53:ot,58:j,59:yt,60:Y,61:bt,69:Ct,79:A},{17:139,69:Ct},{17:140,69:Ct},{55:141,78:De},{55:142,78:De},{55:143,78:De},{63:[1,144],78:[2,56]},{5:[2,49]},{5:[2,71]},{5:[2,50]},{5:[2,51]},{5:[2,52]},{5:[1,145]},{5:[1,146]},{5:[1,147]},u(be,[2,17]),u(be,[2,33]),u(be,[2,34]),u(be,[2,35]),u(be,[2,36]),{19:[1,148]},u(be,[2,37]),{19:[1,149]},u(be,[2,38]),{19:[1,150]},u(be,[2,39]),{55:151,78:De},{55:152,78:De},{5:[2,61]},{5:[2,47]},{5:[2,48]},{17:153,69:Ct},u(me,[2,11]),u(be,[2,12]),u(be,[2,14]),u(xe,w,{8:108,44:154}),u(pe,w,{8:110,46:155}),u(_e,w,{8:112,48:156}),{5:[2,59]},{5:[2,60]},{78:[2,55]},{40:[2,46]},{40:[2,44]},{40:[2,42]}],defaultActions:{7:[2,72],8:[2,1],9:[2,2],10:[2,3],51:[2,75],86:[2,57],87:[2,58],94:[2,74],120:[2,49],121:[2,71],122:[2,50],123:[2,51],124:[2,52],141:[2,61],142:[2,47],143:[2,48],151:[2,59],152:[2,60],153:[2,55],154:[2,46],155:[2,44],156:[2,42]},parseError:function(ne,Qt){if(!Qt.recoverable){var se=new Error(ne);throw se.hash=Qt,se}this.trace(ne)},parse:function(ne){var Qt=this,se=[0],Et=[],te=[null],st=[],dt=this.table,ft="",Mt=0,fe=0,Le=0,en=2,qe=1,sn=st.slice.call(arguments,1),Fe=Object.create(this.lexer),Te={yy:{}};for(var Oe in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Oe)&&(Te.yy[Oe]=this.yy[Oe]);Fe.setInput(ne,Te.yy),Te.yy.lexer=Fe,Te.yy.parser=this,Fe.yylloc===void 0&&(Fe.yylloc={});var Be=Fe.yylloc;st.push(Be);var ge=Fe.options&&Fe.options.ranges;function re(){var Ee;return typeof(Ee=Et.pop()||Fe.lex()||qe)!="number"&&(Ee instanceof Array&&(Ee=(Et=Ee).pop()),Ee=Qt.symbols_[Ee]||Ee),Ee}typeof Te.yy.parseError=="function"?this.parseError=Te.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var An,Ie,ln,Ye,fn,Jn,Dn,Tn,Me,Ke={};;){if(ln=se[se.length-1],this.defaultActions[ln]?Ye=this.defaultActions[ln]:(An==null&&(An=re()),Ye=dt[ln]&&dt[ln][An]),Ye===void 0||!Ye.length||!Ye[0]){var Xe="";for(Jn in Me=[],dt[ln])this.terminals_[Jn]&&Jn>en&&Me.push("'"+this.terminals_[Jn]+"'");Xe=Fe.showPosition?"Parse error on line "+(Mt+1)+`:
`+Fe.showPosition()+`
Expecting `+Me.join(", ")+", got '"+(this.terminals_[An]||An)+"'":"Parse error on line "+(Mt+1)+": Unexpected "+(An==qe?"end of input":"'"+(this.terminals_[An]||An)+"'"),this.parseError(Xe,{text:Fe.match,token:this.terminals_[An]||An,line:Fe.yylineno,loc:Be,expected:Me})}if(Ye[0]instanceof Array&&Ye.length>1)throw new Error("Parse Error: multiple actions possible at state: "+ln+", token: "+An);switch(Ye[0]){case 1:se.push(An),te.push(Fe.yytext),st.push(Fe.yylloc),se.push(Ye[1]),An=null,Ie?(An=Ie,Ie=null):(fe=Fe.yyleng,ft=Fe.yytext,Mt=Fe.yylineno,Be=Fe.yylloc,Le>0);break;case 2:if(Dn=this.productions_[Ye[1]][1],Ke.$=te[te.length-Dn],Ke._$={first_line:st[st.length-(Dn||1)].first_line,last_line:st[st.length-1].last_line,first_column:st[st.length-(Dn||1)].first_column,last_column:st[st.length-1].last_column},ge&&(Ke._$.range=[st[st.length-(Dn||1)].range[0],st[st.length-1].range[1]]),(fn=this.performAction.apply(Ke,[ft,fe,Mt,Te.yy,Ye[1],te,st].concat(sn)))!==void 0)return fn;Dn&&(se=se.slice(0,-1*Dn*2),te=te.slice(0,-1*Dn),st=st.slice(0,-1*Dn)),se.push(this.productions_[Ye[1]][0]),te.push(Ke.$),st.push(Ke._$),Tn=dt[se[se.length-2]][se[se.length-1]],se.push(Tn);break;case 3:return!0}}return!0}},de={EOF:1,parseError:function(ne,Qt){if(!this.yy.parser)throw new Error(ne);this.yy.parser.parseError(ne,Qt)},setInput:function(ne,Qt){return this.yy=Qt||this.yy||{},this._input=ne,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var ne=this._input[0];return this.yytext+=ne,this.yyleng++,this.offset++,this.match+=ne,this.matched+=ne,ne.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),ne},unput:function(ne){var Qt=ne.length,se=ne.split(/(?:\r\n?|\n)/g);this._input=ne+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-Qt),this.offset-=Qt;var Et=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),se.length-1&&(this.yylineno-=se.length-1);var te=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:se?(se.length===Et.length?this.yylloc.first_column:0)+Et[Et.length-se.length].length-se[0].length:this.yylloc.first_column-Qt},this.options.ranges&&(this.yylloc.range=[te[0],te[0]+this.yyleng-Qt]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(ne){this.unput(this.match.slice(ne))},pastInput:function(){var ne=this.matched.substr(0,this.matched.length-this.match.length);return(ne.length>20?"...":"")+ne.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var ne=this.match;return ne.length<20&&(ne+=this._input.substr(0,20-ne.length)),(ne.substr(0,20)+(ne.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var ne=this.pastInput(),Qt=new Array(ne.length+1).join("-");return ne+this.upcomingInput()+`
`+Qt+"^"},test_match:function(ne,Qt){var se,Et,te;if(this.options.backtrack_lexer&&(te={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(te.yylloc.range=this.yylloc.range.slice(0))),(Et=ne[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=Et.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:Et?Et[Et.length-1].length-Et[Et.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+ne[0].length},this.yytext+=ne[0],this.match+=ne[0],this.matches=ne,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(ne[0].length),this.matched+=ne[0],se=this.performAction.call(this,this.yy,this,Qt,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),se)return se;if(this._backtrack){for(var st in te)this[st]=te[st];return!1}return!1},next:function(){if(this.done)return this.EOF;var ne,Qt,se,Et;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var te=this._currentRules(),st=0;st<te.length;st++)if((se=this._input.match(this.rules[te[st]]))&&(!Qt||se[0].length>Qt[0].length)){if(Qt=se,Et=st,this.options.backtrack_lexer){if((ne=this.test_match(se,te[st]))!==!1)return ne;if(this._backtrack){Qt=!1;continue}return!1}if(!this.options.flex)break}return Qt?(ne=this.test_match(Qt,te[Et]))!==!1&&ne:this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(ne){this.conditionStack.push(ne)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(ne){return(ne=this.conditionStack.length-1-Math.abs(ne||0))>=0?this.conditionStack[ne]:"INITIAL"},pushState:function(ne){this.begin(ne)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(ne,Qt,se,Et){switch(se){case 0:return this.begin("open_directive"),79;case 1:return this.begin("type_directive"),80;case 2:return this.popState(),this.begin("arg_directive"),14;case 3:return this.popState(),this.popState(),82;case 4:return 81;case 5:case 52:case 65:return 5;case 6:case 7:case 8:case 9:case 10:break;case 11:return 23;case 12:return this.begin("ID"),16;case 13:return this.begin("ID"),20;case 14:return Qt.yytext=Qt.yytext.trim(),this.begin("ALIAS"),69;case 15:return this.popState(),this.popState(),this.begin("LINE"),18;case 16:return this.popState(),this.popState(),5;case 17:return this.begin("LINE"),39;case 18:return this.begin("LINE"),41;case 19:return this.begin("LINE"),42;case 20:return this.begin("LINE"),43;case 21:return this.begin("LINE"),52;case 22:return this.begin("LINE"),45;case 23:return this.begin("LINE"),51;case 24:return this.begin("LINE"),47;case 25:return this.begin("LINE"),50;case 26:return this.begin("LINE"),49;case 27:return this.popState(),19;case 28:return 40;case 29:return 64;case 30:return 65;case 31:return 58;case 32:return 59;case 33:return 60;case 34:return 61;case 35:return 56;case 36:return 53;case 37:return this.begin("ID"),25;case 38:return this.begin("ID"),26;case 39:return 32;case 40:return 33;case 41:return this.begin("acc_title"),34;case 42:return this.popState(),"acc_title_value";case 43:return this.begin("acc_descr"),36;case 44:return this.popState(),"acc_descr_value";case 45:this.begin("acc_descr_multiline");break;case 46:this.popState();break;case 47:return"acc_descr_multiline_value";case 48:return 7;case 49:return 22;case 50:return 24;case 51:return 63;case 53:return Qt.yytext=Qt.yytext.trim(),69;case 54:return 72;case 55:return 73;case 56:return 70;case 57:return 71;case 58:return 74;case 59:return 75;case 60:return 76;case 61:return 77;case 62:return 78;case 63:return 67;case 64:return 68;case 66:return"INVALID"}},rules:[/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:((?!\n)\s)+)/i,/^(?:#[^\n]*)/i,/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[0-9]+(?=[ \n]+))/i,/^(?:participant\b)/i,/^(?:actor\b)/i,/^(?:[^\->:\n,;]+?(?=((?!\n)\s)+as(?!\n)\s|[#\n;]|$))/i,/^(?:as\b)/i,/^(?:(?:))/i,/^(?:loop\b)/i,/^(?:rect\b)/i,/^(?:opt\b)/i,/^(?:alt\b)/i,/^(?:else\b)/i,/^(?:par\b)/i,/^(?:and\b)/i,/^(?:critical\b)/i,/^(?:option\b)/i,/^(?:break\b)/i,/^(?:(?:[:]?(?:no)?wrap)?[^#\n;]*)/i,/^(?:end\b)/i,/^(?:left of\b)/i,/^(?:right of\b)/i,/^(?:links\b)/i,/^(?:link\b)/i,/^(?:properties\b)/i,/^(?:details\b)/i,/^(?:over\b)/i,/^(?:note\b)/i,/^(?:activate\b)/i,/^(?:deactivate\b)/i,/^(?:title\s[^#\n;]+)/i,/^(?:title:\s[^#\n;]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:sequenceDiagram\b)/i,/^(?:autonumber\b)/i,/^(?:off\b)/i,/^(?:,)/i,/^(?:;)/i,/^(?:[^\+\->:\n,;]+((?!(-x|--x|-\)|--\)))[\-]*[^\+\->:\n,;]+)*)/i,/^(?:->>)/i,/^(?:-->>)/i,/^(?:->)/i,/^(?:-->)/i,/^(?:-[x])/i,/^(?:--[x])/i,/^(?:-[\)])/i,/^(?:--[\)])/i,/^(?::(?:(?:no)?wrap)?[^#\n;]+)/i,/^(?:\+)/i,/^(?:-)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[46,47],inclusive:!1},acc_descr:{rules:[44],inclusive:!1},acc_title:{rules:[42],inclusive:!1},open_directive:{rules:[1,8],inclusive:!1},type_directive:{rules:[2,3,8],inclusive:!1},arg_directive:{rules:[3,4,8],inclusive:!1},ID:{rules:[7,8,14],inclusive:!1},ALIAS:{rules:[7,8,15,16],inclusive:!1},LINE:{rules:[7,8,27],inclusive:!1},INITIAL:{rules:[0,5,6,8,9,10,11,12,13,17,18,19,20,21,22,23,24,25,26,28,29,30,31,32,33,34,35,36,37,38,39,40,41,43,45,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66],inclusive:!0}}};function Qe(){this.yy={}}return wn.lexer=de,Qe.prototype=wn,wn.Parser=Qe,new Qe}();z.parser=b,z.Parser=b.Parser,z.parse=function(){return b.parse.apply(b,arguments)},z.main=function(u){u[1]||(console.log("Usage: "+u[0]+" FILE"),process.exit(1));var _=p(1993).readFileSync(p(6470).normalize(u[1]),"utf8");return z.parser.parse(_)},p.c[p.s]===M&&z.main(process.argv.slice(1))},3584:(M,z,p)=>{M=p.nmd(M);var b=function(){var u=function(xe,pe,_e,Ae){for(_e=_e||{},Ae=xe.length;Ae--;_e[xe[Ae]]=pe);return _e},_=[1,2],y=[1,3],E=[1,5],A=[1,7],w=[2,5],F=[1,15],B=[1,17],P=[1,19],G=[1,20],K=[1,21],J=[1,22],ht=[1,33],tt=[1,23],kt=[1,24],at=[1,25],ut=[1,26],vt=[1,27],Zt=[1,30],Gt=[1,31],xt=[1,32],It=[1,35],wt=[1,36],mt=[1,37],X=[1,38],ot=[1,34],j=[1,41],yt=[1,4,5,14,15,17,19,20,22,23,24,25,26,27,31,33,35,41,42,43,44,47,50],Y=[1,4,5,12,13,14,15,17,19,20,22,23,24,25,26,27,31,33,35,41,42,43,44,47,50],bt=[1,4,5,7,14,15,17,19,20,22,23,24,25,26,27,31,33,35,41,42,43,44,47,50],Ct=[4,5,14,15,17,19,20,22,23,24,25,26,27,31,33,35,41,42,43,44,47,50],$t={trace:function(){},yy:{},symbols_:{error:2,start:3,SPACE:4,NL:5,directive:6,SD:7,document:8,line:9,statement:10,idStatement:11,DESCR:12,"-->":13,HIDE_EMPTY:14,scale:15,WIDTH:16,COMPOSIT_STATE:17,STRUCT_START:18,STRUCT_STOP:19,STATE_DESCR:20,AS:21,ID:22,FORK:23,JOIN:24,CHOICE:25,CONCURRENT:26,note:27,notePosition:28,NOTE_TEXT:29,direction:30,acc_title:31,acc_title_value:32,acc_descr:33,acc_descr_value:34,acc_descr_multiline_value:35,openDirective:36,typeDirective:37,closeDirective:38,":":39,argDirective:40,direction_tb:41,direction_bt:42,direction_rl:43,direction_lr:44,eol:45,";":46,EDGE_STATE:47,left_of:48,right_of:49,open_directive:50,type_directive:51,arg_directive:52,close_directive:53,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NL",7:"SD",12:"DESCR",13:"-->",14:"HIDE_EMPTY",15:"scale",16:"WIDTH",17:"COMPOSIT_STATE",18:"STRUCT_START",19:"STRUCT_STOP",20:"STATE_DESCR",21:"AS",22:"ID",23:"FORK",24:"JOIN",25:"CHOICE",26:"CONCURRENT",27:"note",29:"NOTE_TEXT",31:"acc_title",32:"acc_title_value",33:"acc_descr",34:"acc_descr_value",35:"acc_descr_multiline_value",39:":",41:"direction_tb",42:"direction_bt",43:"direction_rl",44:"direction_lr",46:";",47:"EDGE_STATE",48:"left_of",49:"right_of",50:"open_directive",51:"type_directive",52:"arg_directive",53:"close_directive"},productions_:[0,[3,2],[3,2],[3,2],[3,2],[8,0],[8,2],[9,2],[9,1],[9,1],[10,1],[10,2],[10,3],[10,4],[10,1],[10,2],[10,1],[10,4],[10,3],[10,6],[10,1],[10,1],[10,1],[10,1],[10,4],[10,4],[10,1],[10,1],[10,2],[10,2],[10,1],[6,3],[6,5],[30,1],[30,1],[30,1],[30,1],[45,1],[45,1],[11,1],[11,1],[28,1],[28,1],[36,1],[37,1],[40,1],[38,1]],performAction:function(xe,pe,_e,Ae,De,me,wn){var de=me.length-1;switch(De){case 4:return Ae.setRootDoc(me[de]),me[de];case 5:this.$=[];break;case 6:me[de]!="nl"&&(me[de-1].push(me[de]),this.$=me[de-1]);break;case 7:case 8:case 39:case 40:this.$=me[de];break;case 9:this.$="nl";break;case 10:this.$={stmt:"state",id:me[de],type:"default",description:""};break;case 11:this.$={stmt:"state",id:me[de-1],type:"default",description:Ae.trimColon(me[de])};break;case 12:this.$={stmt:"relation",state1:{stmt:"state",id:me[de-2],type:"default",description:""},state2:{stmt:"state",id:me[de],type:"default",description:""}};break;case 13:this.$={stmt:"relation",state1:{stmt:"state",id:me[de-3],type:"default",description:""},state2:{stmt:"state",id:me[de-1],type:"default",description:""},description:me[de].substr(1).trim()};break;case 17:this.$={stmt:"state",id:me[de-3],type:"default",description:"",doc:me[de-1]};break;case 18:var Qe=me[de],ne=me[de-2].trim();if(me[de].match(":")){var Qt=me[de].split(":");Qe=Qt[0],ne=[ne,Qt[1]]}this.$={stmt:"state",id:Qe,type:"default",description:ne};break;case 19:this.$={stmt:"state",id:me[de-3],type:"default",description:me[de-5],doc:me[de-1]};break;case 20:this.$={stmt:"state",id:me[de],type:"fork"};break;case 21:this.$={stmt:"state",id:me[de],type:"join"};break;case 22:this.$={stmt:"state",id:me[de],type:"choice"};break;case 23:this.$={stmt:"state",id:Ae.getDividerId(),type:"divider"};break;case 24:this.$={stmt:"state",id:me[de-1].trim(),note:{position:me[de-2].trim(),text:me[de].trim()}};break;case 28:this.$=me[de].trim(),Ae.setAccTitle(this.$);break;case 29:case 30:this.$=me[de].trim(),Ae.setAccDescription(this.$);break;case 33:Ae.setDirection("TB"),this.$={stmt:"dir",value:"TB"};break;case 34:Ae.setDirection("BT"),this.$={stmt:"dir",value:"BT"};break;case 35:Ae.setDirection("RL"),this.$={stmt:"dir",value:"RL"};break;case 36:Ae.setDirection("LR"),this.$={stmt:"dir",value:"LR"};break;case 43:Ae.parseDirective("%%{","open_directive");break;case 44:Ae.parseDirective(me[de],"type_directive");break;case 45:me[de]=me[de].trim().replace(/'/g,'"'),Ae.parseDirective(me[de],"arg_directive");break;case 46:Ae.parseDirective("}%%","close_directive","state")}},table:[{3:1,4:_,5:y,6:4,7:E,36:6,50:A},{1:[3]},{3:8,4:_,5:y,6:4,7:E,36:6,50:A},{3:9,4:_,5:y,6:4,7:E,36:6,50:A},{3:10,4:_,5:y,6:4,7:E,36:6,50:A},u([1,4,5,14,15,17,20,22,23,24,25,26,27,31,33,35,41,42,43,44,47,50],w,{8:11}),{37:12,51:[1,13]},{51:[2,43]},{1:[2,1]},{1:[2,2]},{1:[2,3]},{1:[2,4],4:F,5:B,6:28,9:14,10:16,11:18,14:P,15:G,17:K,20:J,22:ht,23:tt,24:kt,25:at,26:ut,27:vt,30:29,31:Zt,33:Gt,35:xt,36:6,41:It,42:wt,43:mt,44:X,47:ot,50:A},{38:39,39:[1,40],53:j},u([39,53],[2,44]),u(yt,[2,6]),{6:28,10:42,11:18,14:P,15:G,17:K,20:J,22:ht,23:tt,24:kt,25:at,26:ut,27:vt,30:29,31:Zt,33:Gt,35:xt,36:6,41:It,42:wt,43:mt,44:X,47:ot,50:A},u(yt,[2,8]),u(yt,[2,9]),u(yt,[2,10],{12:[1,43],13:[1,44]}),u(yt,[2,14]),{16:[1,45]},u(yt,[2,16],{18:[1,46]}),{21:[1,47]},u(yt,[2,20]),u(yt,[2,21]),u(yt,[2,22]),u(yt,[2,23]),{28:48,29:[1,49],48:[1,50],49:[1,51]},u(yt,[2,26]),u(yt,[2,27]),{32:[1,52]},{34:[1,53]},u(yt,[2,30]),u(Y,[2,39]),u(Y,[2,40]),u(yt,[2,33]),u(yt,[2,34]),u(yt,[2,35]),u(yt,[2,36]),u(bt,[2,31]),{40:54,52:[1,55]},u(bt,[2,46]),u(yt,[2,7]),u(yt,[2,11]),{11:56,22:ht,47:ot},u(yt,[2,15]),u(Ct,w,{8:57}),{22:[1,58]},{22:[1,59]},{21:[1,60]},{22:[2,41]},{22:[2,42]},u(yt,[2,28]),u(yt,[2,29]),{38:61,53:j},{53:[2,45]},u(yt,[2,12],{12:[1,62]}),{4:F,5:B,6:28,9:14,10:16,11:18,14:P,15:G,17:K,19:[1,63],20:J,22:ht,23:tt,24:kt,25:at,26:ut,27:vt,30:29,31:Zt,33:Gt,35:xt,36:6,41:It,42:wt,43:mt,44:X,47:ot,50:A},u(yt,[2,18],{18:[1,64]}),{29:[1,65]},{22:[1,66]},u(bt,[2,32]),u(yt,[2,13]),u(yt,[2,17]),u(Ct,w,{8:67}),u(yt,[2,24]),u(yt,[2,25]),{4:F,5:B,6:28,9:14,10:16,11:18,14:P,15:G,17:K,19:[1,68],20:J,22:ht,23:tt,24:kt,25:at,26:ut,27:vt,30:29,31:Zt,33:Gt,35:xt,36:6,41:It,42:wt,43:mt,44:X,47:ot,50:A},u(yt,[2,19])],defaultActions:{7:[2,43],8:[2,1],9:[2,2],10:[2,3],50:[2,41],51:[2,42],55:[2,45]},parseError:function(xe,pe){if(!pe.recoverable){var _e=new Error(xe);throw _e.hash=pe,_e}this.trace(xe)},parse:function(xe){var pe=this,_e=[0],Ae=[],De=[null],me=[],wn=this.table,de="",Qe=0,ne=0,Qt=0,se=2,Et=1,te=me.slice.call(arguments,1),st=Object.create(this.lexer),dt={yy:{}};for(var ft in this.yy)Object.prototype.hasOwnProperty.call(this.yy,ft)&&(dt.yy[ft]=this.yy[ft]);st.setInput(xe,dt.yy),dt.yy.lexer=st,dt.yy.parser=this,st.yylloc===void 0&&(st.yylloc={});var Mt=st.yylloc;me.push(Mt);var fe=st.options&&st.options.ranges;function Le(){var ln;return typeof(ln=Ae.pop()||st.lex()||Et)!="number"&&(ln instanceof Array&&(ln=(Ae=ln).pop()),ln=pe.symbols_[ln]||ln),ln}typeof dt.yy.parseError=="function"?this.parseError=dt.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var en,qe,sn,Fe,Te,Oe,Be,ge,re,An={};;){if(sn=_e[_e.length-1],this.defaultActions[sn]?Fe=this.defaultActions[sn]:(en==null&&(en=Le()),Fe=wn[sn]&&wn[sn][en]),Fe===void 0||!Fe.length||!Fe[0]){var Ie="";for(Oe in re=[],wn[sn])this.terminals_[Oe]&&Oe>se&&re.push("'"+this.terminals_[Oe]+"'");Ie=st.showPosition?"Parse error on line "+(Qe+1)+`:
`+st.showPosition()+`
Expecting `+re.join(", ")+", got '"+(this.terminals_[en]||en)+"'":"Parse error on line "+(Qe+1)+": Unexpected "+(en==Et?"end of input":"'"+(this.terminals_[en]||en)+"'"),this.parseError(Ie,{text:st.match,token:this.terminals_[en]||en,line:st.yylineno,loc:Mt,expected:re})}if(Fe[0]instanceof Array&&Fe.length>1)throw new Error("Parse Error: multiple actions possible at state: "+sn+", token: "+en);switch(Fe[0]){case 1:_e.push(en),De.push(st.yytext),me.push(st.yylloc),_e.push(Fe[1]),en=null,qe?(en=qe,qe=null):(ne=st.yyleng,de=st.yytext,Qe=st.yylineno,Mt=st.yylloc,Qt>0);break;case 2:if(Be=this.productions_[Fe[1]][1],An.$=De[De.length-Be],An._$={first_line:me[me.length-(Be||1)].first_line,last_line:me[me.length-1].last_line,first_column:me[me.length-(Be||1)].first_column,last_column:me[me.length-1].last_column},fe&&(An._$.range=[me[me.length-(Be||1)].range[0],me[me.length-1].range[1]]),(Te=this.performAction.apply(An,[de,ne,Qe,dt.yy,Fe[1],De,me].concat(te)))!==void 0)return Te;Be&&(_e=_e.slice(0,-1*Be*2),De=De.slice(0,-1*Be),me=me.slice(0,-1*Be)),_e.push(this.productions_[Fe[1]][0]),De.push(An.$),me.push(An._$),ge=wn[_e[_e.length-2]][_e[_e.length-1]],_e.push(ge);break;case 3:return!0}}return!0}},be={EOF:1,parseError:function(xe,pe){if(!this.yy.parser)throw new Error(xe);this.yy.parser.parseError(xe,pe)},setInput:function(xe,pe){return this.yy=pe||this.yy||{},this._input=xe,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var xe=this._input[0];return this.yytext+=xe,this.yyleng++,this.offset++,this.match+=xe,this.matched+=xe,xe.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),xe},unput:function(xe){var pe=xe.length,_e=xe.split(/(?:\r\n?|\n)/g);this._input=xe+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-pe),this.offset-=pe;var Ae=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),_e.length-1&&(this.yylineno-=_e.length-1);var De=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:_e?(_e.length===Ae.length?this.yylloc.first_column:0)+Ae[Ae.length-_e.length].length-_e[0].length:this.yylloc.first_column-pe},this.options.ranges&&(this.yylloc.range=[De[0],De[0]+this.yyleng-pe]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(xe){this.unput(this.match.slice(xe))},pastInput:function(){var xe=this.matched.substr(0,this.matched.length-this.match.length);return(xe.length>20?"...":"")+xe.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var xe=this.match;return xe.length<20&&(xe+=this._input.substr(0,20-xe.length)),(xe.substr(0,20)+(xe.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var xe=this.pastInput(),pe=new Array(xe.length+1).join("-");return xe+this.upcomingInput()+`
`+pe+"^"},test_match:function(xe,pe){var _e,Ae,De;if(this.options.backtrack_lexer&&(De={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(De.yylloc.range=this.yylloc.range.slice(0))),(Ae=xe[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=Ae.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:Ae?Ae[Ae.length-1].length-Ae[Ae.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+xe[0].length},this.yytext+=xe[0],this.match+=xe[0],this.matches=xe,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(xe[0].length),this.matched+=xe[0],_e=this.performAction.call(this,this.yy,this,pe,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),_e)return _e;if(this._backtrack){for(var me in De)this[me]=De[me];return!1}return!1},next:function(){if(this.done)return this.EOF;var xe,pe,_e,Ae;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var De=this._currentRules(),me=0;me<De.length;me++)if((_e=this._input.match(this.rules[De[me]]))&&(!pe||_e[0].length>pe[0].length)){if(pe=_e,Ae=me,this.options.backtrack_lexer){if((xe=this.test_match(_e,De[me]))!==!1)return xe;if(this._backtrack){pe=!1;continue}return!1}if(!this.options.flex)break}return pe?(xe=this.test_match(pe,De[Ae]))!==!1&&xe:this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(xe){this.conditionStack.push(xe)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(xe){return(xe=this.conditionStack.length-1-Math.abs(xe||0))>=0?this.conditionStack[xe]:"INITIAL"},pushState:function(xe){this.begin(xe)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(xe,pe,_e,Ae){switch(_e){case 0:case 33:return 41;case 1:case 34:return 42;case 2:case 35:return 43;case 3:case 36:return 44;case 4:return this.begin("open_directive"),50;case 5:return this.begin("type_directive"),51;case 6:return this.popState(),this.begin("arg_directive"),39;case 7:return this.popState(),this.popState(),53;case 8:return 52;case 9:case 10:case 12:case 13:case 14:case 15:case 46:case 52:break;case 11:case 66:return 5;case 16:return this.pushState("SCALE"),15;case 17:return 16;case 18:case 24:case 40:case 43:this.popState();break;case 19:return this.begin("acc_title"),31;case 20:return this.popState(),"acc_title_value";case 21:return this.begin("acc_descr"),33;case 22:return this.popState(),"acc_descr_value";case 23:this.begin("acc_descr_multiline");break;case 25:return"acc_descr_multiline_value";case 26:this.pushState("STATE");break;case 27:case 30:return this.popState(),pe.yytext=pe.yytext.slice(0,-8).trim(),23;case 28:case 31:return this.popState(),pe.yytext=pe.yytext.slice(0,-8).trim(),24;case 29:case 32:return this.popState(),pe.yytext=pe.yytext.slice(0,-10).trim(),25;case 37:this.begin("STATE_STRING");break;case 38:return this.popState(),this.pushState("STATE_ID"),"AS";case 39:case 54:return this.popState(),"ID";case 41:return"STATE_DESCR";case 42:return 17;case 44:return this.popState(),this.pushState("struct"),18;case 45:return this.popState(),19;case 47:return this.begin("NOTE"),27;case 48:return this.popState(),this.pushState("NOTE_ID"),48;case 49:return this.popState(),this.pushState("NOTE_ID"),49;case 50:this.popState(),this.pushState("FLOATING_NOTE");break;case 51:return this.popState(),this.pushState("FLOATING_NOTE_ID"),"AS";case 53:return"NOTE_TEXT";case 55:return this.popState(),this.pushState("NOTE_TEXT"),22;case 56:return this.popState(),pe.yytext=pe.yytext.substr(2).trim(),29;case 57:return this.popState(),pe.yytext=pe.yytext.slice(0,-8).trim(),29;case 58:case 59:return 7;case 60:return 14;case 61:return 47;case 62:return 22;case 63:return pe.yytext=pe.yytext.trim(),12;case 64:return 13;case 65:return 26;case 67:return"INVALID"}},rules:[/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:[\s]+)/i,/^(?:((?!\n)\s)+)/i,/^(?:#[^\n]*)/i,/^(?:%[^\n]*)/i,/^(?:scale\s+)/i,/^(?:\d+)/i,/^(?:\s+width\b)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:state\s+)/i,/^(?:.*<<fork>>)/i,/^(?:.*<<join>>)/i,/^(?:.*<<choice>>)/i,/^(?:.*\[\[fork\]\])/i,/^(?:.*\[\[join\]\])/i,/^(?:.*\[\[choice\]\])/i,/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:["])/i,/^(?:\s*as\s+)/i,/^(?:[^\n\{]*)/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[^\n\s\{]+)/i,/^(?:\n)/i,/^(?:\{)/i,/^(?:\})/i,/^(?:[\n])/i,/^(?:note\s+)/i,/^(?:left of\b)/i,/^(?:right of\b)/i,/^(?:")/i,/^(?:\s*as\s*)/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[^\n]*)/i,/^(?:\s*[^:\n\s\-]+)/i,/^(?:\s*:[^:\n;]+)/i,/^(?:[\s\S]*?end note\b)/i,/^(?:stateDiagram\s+)/i,/^(?:stateDiagram-v2\s+)/i,/^(?:hide empty description\b)/i,/^(?:\[\*\])/i,/^(?:[^:\n\s\-\{]+)/i,/^(?:\s*:[^:\n;]+)/i,/^(?:-->)/i,/^(?:--)/i,/^(?:$)/i,/^(?:.)/i],conditions:{LINE:{rules:[13,14],inclusive:!1},close_directive:{rules:[13,14],inclusive:!1},arg_directive:{rules:[7,8,13,14],inclusive:!1},type_directive:{rules:[6,7,13,14],inclusive:!1},open_directive:{rules:[5,13,14],inclusive:!1},struct:{rules:[13,14,26,33,34,35,36,45,46,47,61,62,63,64,65],inclusive:!1},FLOATING_NOTE_ID:{rules:[54],inclusive:!1},FLOATING_NOTE:{rules:[51,52,53],inclusive:!1},NOTE_TEXT:{rules:[56,57],inclusive:!1},NOTE_ID:{rules:[55],inclusive:!1},NOTE:{rules:[48,49,50],inclusive:!1},acc_descr_multiline:{rules:[24,25],inclusive:!1},acc_descr:{rules:[22],inclusive:!1},acc_title:{rules:[20],inclusive:!1},SCALE:{rules:[17,18],inclusive:!1},ALIAS:{rules:[],inclusive:!1},STATE_ID:{rules:[39],inclusive:!1},STATE_STRING:{rules:[40,41],inclusive:!1},FORK_STATE:{rules:[],inclusive:!1},STATE:{rules:[13,14,27,28,29,30,31,32,37,38,42,43,44],inclusive:!1},ID:{rules:[13,14],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,9,10,11,12,14,15,16,19,21,23,26,44,47,58,59,60,61,62,63,64,66,67],inclusive:!0}}};function We(){this.yy={}}return $t.lexer=be,We.prototype=$t,$t.Parser=We,new We}();z.parser=b,z.Parser=b.Parser,z.parse=function(){return b.parse.apply(b,arguments)},z.main=function(u){u[1]||(console.log("Usage: "+u[0]+" FILE"),process.exit(1));var _=p(3069).readFileSync(p(6470).normalize(u[1]),"utf8");return z.parser.parse(_)},p.c[p.s]===M&&z.main(process.argv.slice(1))},9763:(M,z,p)=>{M=p.nmd(M);var b=function(){var u=function(at,ut,vt,Zt){for(vt=vt||{},Zt=at.length;Zt--;vt[at[Zt]]=ut);return vt},_=[1,2],y=[1,5],E=[6,9,11,17,18,20,22,23,24,26],A=[1,15],w=[1,16],F=[1,17],B=[1,18],P=[1,19],G=[1,20],K=[1,24],J=[4,6,9,11,17,18,20,22,23,24,26],ht={trace:function(){},yy:{},symbols_:{error:2,start:3,journey:4,document:5,EOF:6,directive:7,line:8,SPACE:9,statement:10,NEWLINE:11,openDirective:12,typeDirective:13,closeDirective:14,":":15,argDirective:16,title:17,acc_title:18,acc_title_value:19,acc_descr:20,acc_descr_value:21,acc_descr_multiline_value:22,section:23,taskName:24,taskData:25,open_directive:26,type_directive:27,arg_directive:28,close_directive:29,$accept:0,$end:1},terminals_:{2:"error",4:"journey",6:"EOF",9:"SPACE",11:"NEWLINE",15:":",17:"title",18:"acc_title",19:"acc_title_value",20:"acc_descr",21:"acc_descr_value",22:"acc_descr_multiline_value",23:"section",24:"taskName",25:"taskData",26:"open_directive",27:"type_directive",28:"arg_directive",29:"close_directive"},productions_:[0,[3,3],[3,2],[5,0],[5,2],[8,2],[8,1],[8,1],[8,1],[7,4],[7,6],[10,1],[10,2],[10,2],[10,1],[10,1],[10,2],[10,1],[12,1],[13,1],[16,1],[14,1]],performAction:function(at,ut,vt,Zt,Gt,xt,It){var wt=xt.length-1;switch(Gt){case 1:return xt[wt-1];case 3:case 7:case 8:this.$=[];break;case 4:xt[wt-1].push(xt[wt]),this.$=xt[wt-1];break;case 5:case 6:this.$=xt[wt];break;case 11:Zt.setDiagramTitle(xt[wt].substr(6)),this.$=xt[wt].substr(6);break;case 12:this.$=xt[wt].trim(),Zt.setAccTitle(this.$);break;case 13:case 14:this.$=xt[wt].trim(),Zt.setAccDescription(this.$);break;case 15:Zt.addSection(xt[wt].substr(8)),this.$=xt[wt].substr(8);break;case 16:Zt.addTask(xt[wt-1],xt[wt]),this.$="task";break;case 18:Zt.parseDirective("%%{","open_directive");break;case 19:Zt.parseDirective(xt[wt],"type_directive");break;case 20:xt[wt]=xt[wt].trim().replace(/'/g,'"'),Zt.parseDirective(xt[wt],"arg_directive");break;case 21:Zt.parseDirective("}%%","close_directive","journey")}},table:[{3:1,4:_,7:3,12:4,26:y},{1:[3]},u(E,[2,3],{5:6}),{3:7,4:_,7:3,12:4,26:y},{13:8,27:[1,9]},{27:[2,18]},{6:[1,10],7:21,8:11,9:[1,12],10:13,11:[1,14],12:4,17:A,18:w,20:F,22:B,23:P,24:G,26:y},{1:[2,2]},{14:22,15:[1,23],29:K},u([15,29],[2,19]),u(E,[2,8],{1:[2,1]}),u(E,[2,4]),{7:21,10:25,12:4,17:A,18:w,20:F,22:B,23:P,24:G,26:y},u(E,[2,6]),u(E,[2,7]),u(E,[2,11]),{19:[1,26]},{21:[1,27]},u(E,[2,14]),u(E,[2,15]),{25:[1,28]},u(E,[2,17]),{11:[1,29]},{16:30,28:[1,31]},{11:[2,21]},u(E,[2,5]),u(E,[2,12]),u(E,[2,13]),u(E,[2,16]),u(J,[2,9]),{14:32,29:K},{29:[2,20]},{11:[1,33]},u(J,[2,10])],defaultActions:{5:[2,18],7:[2,2],24:[2,21],31:[2,20]},parseError:function(at,ut){if(!ut.recoverable){var vt=new Error(at);throw vt.hash=ut,vt}this.trace(at)},parse:function(at){var ut=this,vt=[0],Zt=[],Gt=[null],xt=[],It=this.table,wt="",mt=0,X=0,ot=0,j=2,yt=1,Y=xt.slice.call(arguments,1),bt=Object.create(this.lexer),Ct={yy:{}};for(var $t in this.yy)Object.prototype.hasOwnProperty.call(this.yy,$t)&&(Ct.yy[$t]=this.yy[$t]);bt.setInput(at,Ct.yy),Ct.yy.lexer=bt,Ct.yy.parser=this,bt.yylloc===void 0&&(bt.yylloc={});var be=bt.yylloc;xt.push(be);var We=bt.options&&bt.options.ranges;function xe(){var Et;return typeof(Et=Zt.pop()||bt.lex()||yt)!="number"&&(Et instanceof Array&&(Et=(Zt=Et).pop()),Et=ut.symbols_[Et]||Et),Et}typeof Ct.yy.parseError=="function"?this.parseError=Ct.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var pe,_e,Ae,De,me,wn,de,Qe,ne,Qt={};;){if(Ae=vt[vt.length-1],this.defaultActions[Ae]?De=this.defaultActions[Ae]:(pe==null&&(pe=xe()),De=It[Ae]&&It[Ae][pe]),De===void 0||!De.length||!De[0]){var se="";for(wn in ne=[],It[Ae])this.terminals_[wn]&&wn>j&&ne.push("'"+this.terminals_[wn]+"'");se=bt.showPosition?"Parse error on line "+(mt+1)+`:
`+bt.showPosition()+`
Expecting `+ne.join(", ")+", got '"+(this.terminals_[pe]||pe)+"'":"Parse error on line "+(mt+1)+": Unexpected "+(pe==yt?"end of input":"'"+(this.terminals_[pe]||pe)+"'"),this.parseError(se,{text:bt.match,token:this.terminals_[pe]||pe,line:bt.yylineno,loc:be,expected:ne})}if(De[0]instanceof Array&&De.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Ae+", token: "+pe);switch(De[0]){case 1:vt.push(pe),Gt.push(bt.yytext),xt.push(bt.yylloc),vt.push(De[1]),pe=null,_e?(pe=_e,_e=null):(X=bt.yyleng,wt=bt.yytext,mt=bt.yylineno,be=bt.yylloc,ot>0);break;case 2:if(de=this.productions_[De[1]][1],Qt.$=Gt[Gt.length-de],Qt._$={first_line:xt[xt.length-(de||1)].first_line,last_line:xt[xt.length-1].last_line,first_column:xt[xt.length-(de||1)].first_column,last_column:xt[xt.length-1].last_column},We&&(Qt._$.range=[xt[xt.length-(de||1)].range[0],xt[xt.length-1].range[1]]),(me=this.performAction.apply(Qt,[wt,X,mt,Ct.yy,De[1],Gt,xt].concat(Y)))!==void 0)return me;de&&(vt=vt.slice(0,-1*de*2),Gt=Gt.slice(0,-1*de),xt=xt.slice(0,-1*de)),vt.push(this.productions_[De[1]][0]),Gt.push(Qt.$),xt.push(Qt._$),Qe=It[vt[vt.length-2]][vt[vt.length-1]],vt.push(Qe);break;case 3:return!0}}return!0}},tt={EOF:1,parseError:function(at,ut){if(!this.yy.parser)throw new Error(at);this.yy.parser.parseError(at,ut)},setInput:function(at,ut){return this.yy=ut||this.yy||{},this._input=at,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var at=this._input[0];return this.yytext+=at,this.yyleng++,this.offset++,this.match+=at,this.matched+=at,at.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),at},unput:function(at){var ut=at.length,vt=at.split(/(?:\r\n?|\n)/g);this._input=at+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-ut),this.offset-=ut;var Zt=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),vt.length-1&&(this.yylineno-=vt.length-1);var Gt=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:vt?(vt.length===Zt.length?this.yylloc.first_column:0)+Zt[Zt.length-vt.length].length-vt[0].length:this.yylloc.first_column-ut},this.options.ranges&&(this.yylloc.range=[Gt[0],Gt[0]+this.yyleng-ut]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(at){this.unput(this.match.slice(at))},pastInput:function(){var at=this.matched.substr(0,this.matched.length-this.match.length);return(at.length>20?"...":"")+at.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var at=this.match;return at.length<20&&(at+=this._input.substr(0,20-at.length)),(at.substr(0,20)+(at.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var at=this.pastInput(),ut=new Array(at.length+1).join("-");return at+this.upcomingInput()+`
`+ut+"^"},test_match:function(at,ut){var vt,Zt,Gt;if(this.options.backtrack_lexer&&(Gt={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(Gt.yylloc.range=this.yylloc.range.slice(0))),(Zt=at[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=Zt.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:Zt?Zt[Zt.length-1].length-Zt[Zt.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+at[0].length},this.yytext+=at[0],this.match+=at[0],this.matches=at,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(at[0].length),this.matched+=at[0],vt=this.performAction.call(this,this.yy,this,ut,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),vt)return vt;if(this._backtrack){for(var xt in Gt)this[xt]=Gt[xt];return!1}return!1},next:function(){if(this.done)return this.EOF;var at,ut,vt,Zt;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var Gt=this._currentRules(),xt=0;xt<Gt.length;xt++)if((vt=this._input.match(this.rules[Gt[xt]]))&&(!ut||vt[0].length>ut[0].length)){if(ut=vt,Zt=xt,this.options.backtrack_lexer){if((at=this.test_match(vt,Gt[xt]))!==!1)return at;if(this._backtrack){ut=!1;continue}return!1}if(!this.options.flex)break}return ut?(at=this.test_match(ut,Gt[Zt]))!==!1&&at:this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(at){this.conditionStack.push(at)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(at){return(at=this.conditionStack.length-1-Math.abs(at||0))>=0?this.conditionStack[at]:"INITIAL"},pushState:function(at){this.begin(at)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(at,ut,vt,Zt){switch(vt){case 0:return this.begin("open_directive"),26;case 1:return this.begin("type_directive"),27;case 2:return this.popState(),this.begin("arg_directive"),15;case 3:return this.popState(),this.popState(),29;case 4:return 28;case 5:case 6:case 8:case 9:break;case 7:return 11;case 10:return 4;case 11:return 17;case 12:return this.begin("acc_title"),18;case 13:return this.popState(),"acc_title_value";case 14:return this.begin("acc_descr"),20;case 15:return this.popState(),"acc_descr_value";case 16:this.begin("acc_descr_multiline");break;case 17:this.popState();break;case 18:return"acc_descr_multiline_value";case 19:return 23;case 20:return 24;case 21:return 25;case 22:return 15;case 23:return 6;case 24:return"INVALID"}},rules:[/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:journey\b)/i,/^(?:title\s[^#\n;]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:section\s[^#:\n;]+)/i,/^(?:[^#:\n;]+)/i,/^(?::[^#\n;]+)/i,/^(?::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{open_directive:{rules:[1],inclusive:!1},type_directive:{rules:[2,3],inclusive:!1},arg_directive:{rules:[3,4],inclusive:!1},acc_descr_multiline:{rules:[17,18],inclusive:!1},acc_descr:{rules:[15],inclusive:!1},acc_title:{rules:[13],inclusive:!1},INITIAL:{rules:[0,5,6,7,8,9,10,11,12,14,16,19,20,21,22,23,24],inclusive:!0}}};function kt(){this.yy={}}return ht.lexer=tt,kt.prototype=ht,ht.Parser=kt,new kt}();z.parser=b,z.Parser=b.Parser,z.parse=function(){return b.parse.apply(b,arguments)},z.main=function(u){u[1]||(console.log("Usage: "+u[0]+" FILE"),process.exit(1));var _=p(9143).readFileSync(p(6470).normalize(u[1]),"utf8");return z.parser.parse(_)},p.c[p.s]===M&&z.main(process.argv.slice(1))},7967:(M,z)=>{z.N=void 0;var p=/^([^\w]*)(javascript|data|vbscript)/im,b=/&#(\w+)(^\w|;)?/g,u=/[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim,_=/^([^:]+):/gm,y=[".","/"];z.N=function(E){var A,w=(A=E||"",A.replace(b,function(P,G){return String.fromCharCode(G)})).replace(u,"").trim();if(!w)return"about:blank";if(function(P){return y.indexOf(P[0])>-1}(w))return w;var F=w.match(_);if(!F)return w;var B=F[0];return p.test(B)?"about:blank":w}},3841:M=>{M.exports=function(z,p){return z.intersect(p)}},6187:(M,z,p)=>{p.d(z,{Z:()=>fs});var b=p(1941),u=p.n(b),_={debug:1,info:2,warn:3,error:4,fatal:5},y={debug:function(){},info:function(){},warn:function(){},error:function(){},fatal:function(){}},E=function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"fatal";isNaN(i)&&(i=i.toLowerCase(),_[i]!==void 0&&(i=_[i])),y.trace=function(){},y.debug=function(){},y.info=function(){},y.warn=function(){},y.error=function(){},y.fatal=function(){},i<=_.fatal&&(y.fatal=console.error?console.error.bind(console,A("FATAL"),"color: orange"):console.log.bind(console,"\x1B[35m",A("FATAL"))),i<=_.error&&(y.error=console.error?console.error.bind(console,A("ERROR"),"color: orange"):console.log.bind(console,"\x1B[31m",A("ERROR"))),i<=_.warn&&(y.warn=console.warn?console.warn.bind(console,A("WARN"),"color: orange"):console.log.bind(console,"\x1B[33m",A("WARN"))),i<=_.info&&(y.info=console.info?console.info.bind(console,A("INFO"),"color: lightblue"):console.log.bind(console,"\x1B[34m",A("INFO"))),i<=_.debug&&(y.debug=console.debug?console.debug.bind(console,A("DEBUG"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",A("DEBUG")))},A=function(i){var n=u()().format("ss.SSS");return"%c".concat(n," : ").concat(i," : ")},w=p(7543),F="comm",B="rule",P="decl",G=Math.abs,K=String.fromCharCode;function J(i){return i.trim()}function ht(i,n,l){return i.replace(n,l)}function tt(i,n){return i.indexOf(n)}function kt(i,n){return 0|i.charCodeAt(n)}function at(i,n,l){return i.slice(n,l)}function ut(i){return i.length}function vt(i){return i.length}function Zt(i,n){return n.push(i),i}function Gt(i,n){for(var l="",d=vt(i),g=0;g<d;g++)l+=n(i[g],g,i,n)||"";return l}function xt(i,n,l,d){switch(i.type){case"@import":case P:return i.return=i.return||i.value;case F:return"";case"@keyframes":return i.return=i.value+"{"+Gt(i.children,d)+"}";case B:i.value=i.props.join(",")}return ut(l=Gt(i.children,d))?i.return=i.value+"{"+l+"}":""}var It=1,wt=1,mt=0,X=0,ot=0,j="";function yt(i,n,l,d,g,T,k){return{value:i,root:n,parent:l,type:d,props:g,children:T,line:It,column:wt,length:k,return:""}}function Y(){return ot=X>0?kt(j,--X):0,wt--,ot===10&&(wt=1,It--),ot}function bt(){return ot=X<mt?kt(j,X++):0,wt++,ot===10&&(wt=1,It++),ot}function Ct(){return kt(j,X)}function $t(){return X}function be(i,n){return at(j,i,n)}function We(i){switch(i){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function xe(i){return J(be(X-1,Ae(i===91?i+2:i===40?i+1:i)))}function pe(i){for(;(ot=Ct())&&ot<33;)bt();return We(i)>2||We(ot)>3?"":" "}function _e(i,n){for(;--n&&bt()&&!(ot<48||ot>102||ot>57&&ot<65||ot>70&&ot<97););return be(i,$t()+(n<6&&Ct()==32&&bt()==32))}function Ae(i){for(;bt();)switch(ot){case i:return X;case 34:case 39:i!==34&&i!==39&&Ae(ot);break;case 40:i===41&&Ae(i);break;case 92:bt()}return X}function De(i,n){for(;bt()&&i+ot!==57&&(i+ot!==84||Ct()!==47););return"/*"+be(n,X-1)+"*"+K(i===47?i:bt())}function me(i){for(;!We(Ct());)bt();return be(i,X)}function wn(i){return function(n){return j="",n}(de("",null,null,null,[""],i=function(n){return It=wt=1,mt=ut(j=n),X=0,[]}(i),0,[0],i))}function de(i,n,l,d,g,T,k,S,N){for(var O=0,q=0,V=k,et=0,Q=0,Tt=0,St=1,Lt=1,Nt=1,Ot=0,Ft="",_t=g,ee=T,ke=d,ue=Ft;Lt;)switch(Tt=Ot,Ot=bt()){case 40:if(Tt!=108&&ue.charCodeAt(V-1)==58){tt(ue+=ht(xe(Ot),"&","&\f"),"&\f")!=-1&&(Nt=-1);break}case 34:case 39:case 91:ue+=xe(Ot);break;case 9:case 10:case 13:case 32:ue+=pe(Tt);break;case 92:ue+=_e($t()-1,7);continue;case 47:switch(Ct()){case 42:case 47:Zt(ne(De(bt(),$t()),n,l),N);break;default:ue+="/"}break;case 123*St:S[O++]=ut(ue)*Nt;case 125*St:case 59:case 0:switch(Ot){case 0:case 125:Lt=0;case 59+q:Q>0&&ut(ue)-V&&Zt(Q>32?Qt(ue+";",d,l,V-1):Qt(ht(ue," ","")+";",d,l,V-2),N);break;case 59:ue+=";";default:if(Zt(ke=Qe(ue,n,l,O,q,g,S,Ft,_t=[],ee=[],V),T),Ot===123)if(q===0)de(ue,n,ke,ke,_t,T,V,S,ee);else switch(et){case 100:case 109:case 115:de(i,ke,ke,d&&Zt(Qe(i,ke,ke,0,0,g,S,Ft,g,_t=[],V),ee),g,ee,V,S,d?_t:ee);break;default:de(ue,ke,ke,ke,[""],ee,0,S,ee)}}O=q=Q=0,St=Nt=1,Ft=ue="",V=k;break;case 58:V=1+ut(ue),Q=Tt;default:if(St<1){if(Ot==123)--St;else if(Ot==125&&St++==0&&Y()==125)continue}switch(ue+=K(Ot),Ot*St){case 38:Nt=q>0?1:(ue+="\f",-1);break;case 44:S[O++]=(ut(ue)-1)*Nt,Nt=1;break;case 64:Ct()===45&&(ue+=xe(bt())),et=Ct(),q=V=ut(Ft=ue+=me($t())),Ot++;break;case 45:Tt===45&&ut(ue)==2&&(St=0)}}return T}function Qe(i,n,l,d,g,T,k,S,N,O,q){for(var V=g-1,et=g===0?T:[""],Q=vt(et),Tt=0,St=0,Lt=0;Tt<d;++Tt)for(var Nt=0,Ot=at(i,V+1,V=G(St=k[Tt])),Ft=i;Nt<Q;++Nt)(Ft=J(St>0?et[Nt]+" "+Ot:ht(Ot,/&\f/g,et[Nt])))&&(N[Lt++]=Ft);return yt(i,n,l,g===0?B:S,N,O,q)}function ne(i,n,l){return yt(i,n,l,F,K(ot),at(i,2,-2),0)}function Qt(i,n,l,d){return yt(i,n,l,P,at(i,0,d),at(i,d+1,-1),d)}const se="9.1.7";function Et(i){return Et=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Et(i)}const te=function i(n,l,d){var g=Object.assign({depth:2,clobber:!1},d),T=g.depth,k=g.clobber;return Array.isArray(l)&&!Array.isArray(n)?(l.forEach(function(S){return i(n,S,d)}),n):Array.isArray(l)&&Array.isArray(n)?(l.forEach(function(S){n.indexOf(S)===-1&&n.push(S)}),n):n===void 0||T<=0?n!=null&&Et(n)==="object"&&Et(l)==="object"?Object.assign(n,l):l:(l!==void 0&&Et(n)==="object"&&Et(l)==="object"&&Object.keys(l).forEach(function(S){Et(l[S])!=="object"||n[S]!==void 0&&Et(n[S])!=="object"?(k||Et(n[S])!=="object"&&Et(l[S])!=="object")&&(n[S]=l[S]):(n[S]===void 0&&(n[S]=Array.isArray(l[S])?[]:{}),n[S]=i(n[S],l[S],{depth:T-1,clobber:k}))}),n)},st={min:{r:0,g:0,b:0,s:0,l:0,a:0},max:{r:255,g:255,b:255,h:360,s:100,l:100,a:1},clamp:{r:i=>i>=255?255:i<0?0:i,g:i=>i>=255?255:i<0?0:i,b:i=>i>=255?255:i<0?0:i,h:i=>i%360,s:i=>i>=100?100:i<0?0:i,l:i=>i>=100?100:i<0?0:i,a:i=>i>=1?1:i<0?0:i},toLinear:i=>{const n=i/255;return i>.03928?Math.pow((n+.055)/1.055,2.4):n/12.92},hue2rgb:(i,n,l)=>(l<0&&(l+=1),l>1&&(l-=1),l<1/6?i+6*(n-i)*l:l<.5?n:l<2/3?i+(n-i)*(2/3-l)*6:i),hsl2rgb:({h:i,s:n,l},d)=>{if(!n)return 2.55*l;i/=360,n/=100;const g=(l/=100)<.5?l*(1+n):l+n-l*n,T=2*l-g;switch(d){case"r":return 255*st.hue2rgb(T,g,i+1/3);case"g":return 255*st.hue2rgb(T,g,i);case"b":return 255*st.hue2rgb(T,g,i-1/3)}},rgb2hsl:({r:i,g:n,b:l},d)=>{i/=255,n/=255,l/=255;const g=Math.max(i,n,l),T=Math.min(i,n,l),k=(g+T)/2;if(d==="l")return 100*k;if(g===T)return 0;const S=g-T;if(d==="s")return 100*(k>.5?S/(2-g-T):S/(g+T));switch(g){case i:return 60*((n-l)/S+(n<l?6:0));case n:return 60*((l-i)/S+2);case l:return 60*((i-n)/S+4);default:return-1}}},dt={channel:st,lang:{clamp:(i,n,l)=>n>l?Math.min(n,Math.max(l,i)):Math.min(l,Math.max(n,i)),round:i=>Math.round(1e10*i)/1e10},unit:{dec2hex:i=>{const n=Math.round(i).toString(16);return n.length>1?n:`0${n}`}}},ft={};for(let i=0;i<=255;i++)ft[i]=dt.unit.dec2hex(i);const Mt=new class{constructor(i,n){this.color=n,this.changed=!1,this.data=i,this.type=new class{constructor(){this.type=0}get(){return this.type}set(l){if(this.type&&this.type!==l)throw new Error("Cannot change both RGB and HSL channels at the same time");this.type=l}reset(){this.type=0}is(l){return this.type===l}}}set(i,n){return this.color=n,this.changed=!1,this.data=i,this.type.type=0,this}_ensureHSL(){const i=this.data,{h:n,s:l,l:d}=i;n===void 0&&(i.h=dt.channel.rgb2hsl(i,"h")),l===void 0&&(i.s=dt.channel.rgb2hsl(i,"s")),d===void 0&&(i.l=dt.channel.rgb2hsl(i,"l"))}_ensureRGB(){const i=this.data,{r:n,g:l,b:d}=i;n===void 0&&(i.r=dt.channel.hsl2rgb(i,"r")),l===void 0&&(i.g=dt.channel.hsl2rgb(i,"g")),d===void 0&&(i.b=dt.channel.hsl2rgb(i,"b"))}get r(){const i=this.data,n=i.r;return this.type.is(2)||n===void 0?(this._ensureHSL(),dt.channel.hsl2rgb(i,"r")):n}get g(){const i=this.data,n=i.g;return this.type.is(2)||n===void 0?(this._ensureHSL(),dt.channel.hsl2rgb(i,"g")):n}get b(){const i=this.data,n=i.b;return this.type.is(2)||n===void 0?(this._ensureHSL(),dt.channel.hsl2rgb(i,"b")):n}get h(){const i=this.data,n=i.h;return this.type.is(1)||n===void 0?(this._ensureRGB(),dt.channel.rgb2hsl(i,"h")):n}get s(){const i=this.data,n=i.s;return this.type.is(1)||n===void 0?(this._ensureRGB(),dt.channel.rgb2hsl(i,"s")):n}get l(){const i=this.data,n=i.l;return this.type.is(1)||n===void 0?(this._ensureRGB(),dt.channel.rgb2hsl(i,"l")):n}get a(){return this.data.a}set r(i){this.type.set(1),this.changed=!0,this.data.r=i}set g(i){this.type.set(1),this.changed=!0,this.data.g=i}set b(i){this.type.set(1),this.changed=!0,this.data.b=i}set h(i){this.type.set(2),this.changed=!0,this.data.h=i}set s(i){this.type.set(2),this.changed=!0,this.data.s=i}set l(i){this.type.set(2),this.changed=!0,this.data.l=i}set a(i){this.changed=!0,this.data.a=i}}({r:0,g:0,b:0,a:0},"transparent"),fe={re:/^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,parse:i=>{if(i.charCodeAt(0)!==35)return;const n=i.match(fe.re);if(!n)return;const l=n[1],d=parseInt(l,16),g=l.length,T=g%4==0,k=g>4,S=k?1:17,N=k?8:4,O=T?0:-1,q=k?255:15;return Mt.set({r:(d>>N*(O+3)&q)*S,g:(d>>N*(O+2)&q)*S,b:(d>>N*(O+1)&q)*S,a:T?(d&q)*S/255:1},i)},stringify:i=>{const{r:n,g:l,b:d,a:g}=i;return g<1?`#${ft[Math.round(n)]}${ft[Math.round(l)]}${ft[Math.round(d)]}${ft[Math.round(255*g)]}`:`#${ft[Math.round(n)]}${ft[Math.round(l)]}${ft[Math.round(d)]}`}},Le=fe,en={re:/^hsla?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(?:deg|grad|rad|turn)?)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(%)?))?\s*?\)$/i,hueRe:/^(.+?)(deg|grad|rad|turn)$/i,_hue2deg:i=>{const n=i.match(en.hueRe);if(n){const[,l,d]=n;switch(d){case"grad":return dt.channel.clamp.h(.9*parseFloat(l));case"rad":return dt.channel.clamp.h(180*parseFloat(l)/Math.PI);case"turn":return dt.channel.clamp.h(360*parseFloat(l))}}return dt.channel.clamp.h(parseFloat(i))},parse:i=>{const n=i.charCodeAt(0);if(n!==104&&n!==72)return;const l=i.match(en.re);if(!l)return;const[,d,g,T,k,S]=l;return Mt.set({h:en._hue2deg(d),s:dt.channel.clamp.s(parseFloat(g)),l:dt.channel.clamp.l(parseFloat(T)),a:k?dt.channel.clamp.a(S?parseFloat(k)/100:parseFloat(k)):1},i)},stringify:i=>{const{h:n,s:l,l:d,a:g}=i;return g<1?`hsla(${dt.lang.round(n)}, ${dt.lang.round(l)}%, ${dt.lang.round(d)}%, ${g})`:`hsl(${dt.lang.round(n)}, ${dt.lang.round(l)}%, ${dt.lang.round(d)}%)`}},qe=en,sn={colors:{aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyanaqua:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",transparent:"#00000000",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},parse:i=>{i=i.toLowerCase();const n=sn.colors[i];if(n)return Le.parse(n)},stringify:i=>{const n=Le.stringify(i);for(const l in sn.colors)if(sn.colors[l]===n)return l}},Fe=sn,Te={re:/^rgba?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?)))?\s*?\)$/i,parse:i=>{const n=i.charCodeAt(0);if(n!==114&&n!==82)return;const l=i.match(Te.re);if(!l)return;const[,d,g,T,k,S,N,O,q]=l;return Mt.set({r:dt.channel.clamp.r(g?2.55*parseFloat(d):parseFloat(d)),g:dt.channel.clamp.g(k?2.55*parseFloat(T):parseFloat(T)),b:dt.channel.clamp.b(N?2.55*parseFloat(S):parseFloat(S)),a:O?dt.channel.clamp.a(q?parseFloat(O)/100:parseFloat(O)):1},i)},stringify:i=>{const{r:n,g:l,b:d,a:g}=i;return g<1?`rgba(${dt.lang.round(n)}, ${dt.lang.round(l)}, ${dt.lang.round(d)}, ${dt.lang.round(g)})`:`rgb(${dt.lang.round(n)}, ${dt.lang.round(l)}, ${dt.lang.round(d)})`}},Oe=Te,Be={format:{keyword:Fe,hex:Le,rgb:Oe,rgba:Oe,hsl:qe,hsla:qe},parse:i=>{if(typeof i!="string")return i;const n=Le.parse(i)||Oe.parse(i)||qe.parse(i)||Fe.parse(i);if(n)return n;throw new Error(`Unsupported color format: "${i}"`)},stringify:i=>!i.changed&&i.color?i.color:i.type.is(2)||i.data.r===void 0?qe.stringify(i):i.a<1||!Number.isInteger(i.r)||!Number.isInteger(i.g)||!Number.isInteger(i.b)?Oe.stringify(i):Le.stringify(i)},ge=(i,n)=>{const l=Be.parse(i);for(const d in n)l[d]=dt.channel.clamp[d](n[d]);return Be.stringify(l)},re=(i,n)=>{const l=Be.parse(i),d={};for(const g in n)n[g]&&(d[g]=l[g]+n[g]);return ge(i,d)},An=(i,n,l=0,d=1)=>{if(typeof i!="number")return ge(i,{a:n});const g=Mt.set({r:dt.channel.clamp.r(i),g:dt.channel.clamp.g(n),b:dt.channel.clamp.b(l),a:dt.channel.clamp.a(d)});return Be.stringify(g)},Ie=(i,n=100)=>{const l=Be.parse(i);return l.r=255-l.r,l.g=255-l.g,l.b=255-l.b,((d,g,T=50)=>{const{r:k,g:S,b:N,a:O}=Be.parse(d),{r:q,g:V,b:et,a:Q}=Be.parse(g),Tt=T/100,St=2*Tt-1,Lt=O-Q,Nt=((St*Lt==-1?St:(St+Lt)/(1+St*Lt))+1)/2,Ot=1-Nt;return An(k*Nt+q*Ot,S*Nt+V*Ot,N*Nt+et*Ot,O*Tt+Q*(1-Tt))})(l,i,n)},ln=(i,n,l)=>{const d=Be.parse(i),g=d[n],T=dt.channel.clamp[n](g+l);return g!==T&&(d[n]=T),Be.stringify(d)},Ye=(i,n)=>ln(i,"l",-n),fn=(i,n)=>ln(i,"l",n);var Jn=function(i,n){return re(i,n?{s:-40,l:10}:{s:-40,l:-10})};function Dn(i){return Dn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Dn(i)}function Tn(i,n){for(var l=0;l<n.length;l++){var d=n[l];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(i,d.key,d)}}var Me=function(){function i(){(function(d,g){if(!(d instanceof g))throw new TypeError("Cannot call a class as a function")})(this,i),this.background="#f4f4f4",this.darkMode=!1,this.primaryColor="#fff4dd",this.noteBkgColor="#fff5ad",this.noteTextColor="#333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px"}var n,l;return n=i,l=[{key:"updateColors",value:function(){this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#333"),this.secondaryColor=this.secondaryColor||re(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||re(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||Jn(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||Jn(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||Jn(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||Jn(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||Ie(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||Ie(this.tertiaryColor),this.lineColor=this.lineColor||Ie(this.background),this.textColor=this.textColor||this.primaryTextColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.primaryBorderColor,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?Ye(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||"grey",this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||Ye(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||Ie(this.lineColor),this.sectionBkgColor=this.sectionBkgColor||this.tertiaryColor,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||this.secondaryColor,this.sectionBkgColor2=this.sectionBkgColor2||this.primaryColor,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||this.primaryColor,this.activeTaskBorderColor=this.activeTaskBorderColor||this.primaryColor,this.activeTaskBkgColor=this.activeTaskBkgColor||fn(this.primaryColor,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.taskTextColor=this.taskTextColor||this.textColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||this.tertiaryColor,this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||this.primaryColor,this.fillType1=this.fillType1||this.secondaryColor,this.fillType2=this.fillType2||re(this.primaryColor,{h:64}),this.fillType3=this.fillType3||re(this.secondaryColor,{h:64}),this.fillType4=this.fillType4||re(this.primaryColor,{h:-64}),this.fillType5=this.fillType5||re(this.secondaryColor,{h:-64}),this.fillType6=this.fillType6||re(this.primaryColor,{h:128}),this.fillType7=this.fillType7||re(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||this.tertiaryColor,this.pie4=this.pie4||re(this.primaryColor,{l:-10}),this.pie5=this.pie5||re(this.secondaryColor,{l:-10}),this.pie6=this.pie6||re(this.tertiaryColor,{l:-10}),this.pie7=this.pie7||re(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||re(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||re(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||re(this.primaryColor,{h:60,l:-20}),this.pie11=this.pie11||re(this.primaryColor,{h:-60,l:-20}),this.pie12=this.pie12||re(this.primaryColor,{h:120,l:-10}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOpacity=this.pieOpacity||"0.7",this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||this.primaryBorderColor,this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?Ye(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||re(this.primaryColor,{h:-30}),this.git4=this.git4||re(this.primaryColor,{h:-60}),this.git5=this.git5||re(this.primaryColor,{h:-90}),this.git6=this.git6||re(this.primaryColor,{h:60}),this.git7=this.git7||re(this.primaryColor,{h:120}),this.darkMode?(this.git0=fn(this.git0,25),this.git1=fn(this.git1,25),this.git2=fn(this.git2,25),this.git3=fn(this.git3,25),this.git4=fn(this.git4,25),this.git5=fn(this.git5,25),this.git6=fn(this.git6,25),this.git7=fn(this.git7,25)):(this.git0=Ye(this.git0,25),this.git1=Ye(this.git1,25),this.git2=Ye(this.git2,25),this.git3=Ye(this.git3,25),this.git4=Ye(this.git4,25),this.git5=Ye(this.git5,25),this.git6=Ye(this.git6,25),this.git7=Ye(this.git7,25)),this.gitInv0=this.gitInv0||Ie(this.git0),this.gitInv1=this.gitInv1||Ie(this.git1),this.gitInv2=this.gitInv2||Ie(this.git2),this.gitInv3=this.gitInv3||Ie(this.git3),this.gitInv4=this.gitInv4||Ie(this.git4),this.gitInv5=this.gitInv5||Ie(this.git5),this.gitInv6=this.gitInv6||Ie(this.git6),this.gitInv7=this.gitInv7||Ie(this.git7),this.branchLabelColor=this.branchLabelColor||(this.darkMode?"black":this.labelTextColor),this.gitBranchLabel0=this.gitBranchLabel0||this.branchLabelColor,this.gitBranchLabel1=this.gitBranchLabel1||this.branchLabelColor,this.gitBranchLabel2=this.gitBranchLabel2||this.branchLabelColor,this.gitBranchLabel3=this.gitBranchLabel3||this.branchLabelColor,this.gitBranchLabel4=this.gitBranchLabel4||this.branchLabelColor,this.gitBranchLabel5=this.gitBranchLabel5||this.branchLabelColor,this.gitBranchLabel6=this.gitBranchLabel6||this.branchLabelColor,this.gitBranchLabel7=this.gitBranchLabel7||this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px"}},{key:"calculate",value:function(d){var g=this;if(Dn(d)==="object"){var T=Object.keys(d);T.forEach(function(k){g[k]=d[k]}),this.updateColors(),T.forEach(function(k){g[k]=d[k]})}else this.updateColors()}}],l&&Tn(n.prototype,l),Object.defineProperty(n,"prototype",{writable:!1}),i}();function Ke(i){return Ke=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Ke(i)}function Xe(i,n){for(var l=0;l<n.length;l++){var d=n[l];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(i,d.key,d)}}var Ee=function(){function i(){(function(d,g){if(!(d instanceof g))throw new TypeError("Cannot call a class as a function")})(this,i),this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=fn(this.primaryColor,16),this.tertiaryColor=re(this.primaryColor,{h:-160}),this.primaryBorderColor=Ie(this.background),this.secondaryBorderColor=Jn(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=Jn(this.tertiaryColor,this.darkMode),this.primaryTextColor=Ie(this.primaryColor),this.secondaryTextColor=Ie(this.secondaryColor),this.tertiaryTextColor=Ie(this.tertiaryColor),this.lineColor=Ie(this.background),this.textColor=Ie(this.background),this.mainBkg="#1f2020",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=fn(Ie("#323D47"),10),this.lineColor="calculated",this.border1="#81B1DB",this.border2=An(255,255,255,.25),this.arrowheadColor="calculated",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.labelBackground="#181818",this.textColor="#ccc",this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="#F9FFFE",this.edgeLabelBackground="calculated",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="calculated",this.actorLineColor="calculated",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="calculated",this.activationBkgColor="calculated",this.sequenceNumberColor="black",this.sectionBkgColor=Ye("#EAE8D9",30),this.altSectionBkgColor="calculated",this.sectionBkgColor2="#EAE8D9",this.taskBorderColor=An(255,255,255,70),this.taskBkgColor="calculated",this.taskTextColor="calculated",this.taskTextLightColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor=An(255,255,255,50),this.activeTaskBkgColor="#81B1DB",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="grey",this.critBorderColor="#E83737",this.critBkgColor="#E83737",this.taskTextDarkColor="calculated",this.todayLineColor="#DB5757",this.personBorder="calculated",this.personBkg="calculated",this.labelColor="calculated",this.errorBkgColor="#a44141",this.errorTextColor="#ddd"}var n,l;return n=i,l=[{key:"updateColors",value:function(){this.secondBkg=fn(this.mainBkg,16),this.lineColor=this.mainContrastColor,this.arrowheadColor=this.mainContrastColor,this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.edgeLabelBackground=fn(this.labelBackground,25),this.actorBorder=this.border1,this.actorBkg=this.mainBkg,this.actorTextColor=this.mainContrastColor,this.actorLineColor=this.mainContrastColor,this.signalColor=this.mainContrastColor,this.signalTextColor=this.mainContrastColor,this.labelBoxBkgColor=this.actorBkg,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.mainContrastColor,this.loopTextColor=this.mainContrastColor,this.noteBorderColor=this.secondaryBorderColor,this.noteBkgColor=this.secondBkg,this.noteTextColor=this.secondaryTextColor,this.activationBorderColor=this.border1,this.activationBkgColor=this.secondBkg,this.altSectionBkgColor=this.background,this.taskBkgColor=fn(this.mainBkg,23),this.taskTextColor=this.darkTextColor,this.taskTextLightColor=this.mainContrastColor,this.taskTextOutsideColor=this.taskTextLightColor,this.gridColor=this.mainContrastColor,this.doneTaskBkgColor=this.mainContrastColor,this.taskTextDarkColor=this.darkTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#555",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.primaryBorderColor,this.specialStateColor="#f4f4f4",this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=re(this.primaryColor,{h:64}),this.fillType3=re(this.secondaryColor,{h:64}),this.fillType4=re(this.primaryColor,{h:-64}),this.fillType5=re(this.secondaryColor,{h:-64}),this.fillType6=re(this.primaryColor,{h:128}),this.fillType7=re(this.secondaryColor,{h:128}),this.pie1=this.pie1||"#0b0000",this.pie2=this.pie2||"#4d1037",this.pie3=this.pie3||"#3f5258",this.pie4=this.pie4||"#4f2f1b",this.pie5=this.pie5||"#6e0a0a",this.pie6=this.pie6||"#3b0048",this.pie7=this.pie7||"#995a01",this.pie8=this.pie8||"#154706",this.pie9=this.pie9||"#161722",this.pie10=this.pie10||"#00296f",this.pie11=this.pie11||"#01629c",this.pie12=this.pie12||"#010029",this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOpacity=this.pieOpacity||"0.7",this.classText=this.primaryTextColor,this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||this.primaryBorderColor,this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?Ye(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=fn(this.secondaryColor,20),this.git1=fn(this.pie2||this.secondaryColor,20),this.git2=fn(this.pie3||this.tertiaryColor,20),this.git3=fn(this.pie4||re(this.primaryColor,{h:-30}),20),this.git4=fn(this.pie5||re(this.primaryColor,{h:-60}),20),this.git5=fn(this.pie6||re(this.primaryColor,{h:-90}),10),this.git6=fn(this.pie7||re(this.primaryColor,{h:60}),10),this.git7=fn(this.pie8||re(this.primaryColor,{h:120}),20),this.gitInv0=this.gitInv0||Ie(this.git0),this.gitInv1=this.gitInv1||Ie(this.git1),this.gitInv2=this.gitInv2||Ie(this.git2),this.gitInv3=this.gitInv3||Ie(this.git3),this.gitInv4=this.gitInv4||Ie(this.git4),this.gitInv5=this.gitInv5||Ie(this.git5),this.gitInv6=this.gitInv6||Ie(this.git6),this.gitInv7=this.gitInv7||Ie(this.git7),this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px"}},{key:"calculate",value:function(d){var g=this;if(Ke(d)==="object"){var T=Object.keys(d);T.forEach(function(k){g[k]=d[k]}),this.updateColors(),T.forEach(function(k){g[k]=d[k]})}else this.updateColors()}}],l&&Xe(n.prototype,l),Object.defineProperty(n,"prototype",{writable:!1}),i}();function mn(i){return mn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},mn(i)}function At(i,n){for(var l=0;l<n.length;l++){var d=n[l];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(i,d.key,d)}}var vr=function(){function i(){(function(d,g){if(!(d instanceof g))throw new TypeError("Cannot call a class as a function")})(this,i),this.background="#f4f4f4",this.primaryColor="#ECECFF",this.secondaryColor=re(this.primaryColor,{h:120}),this.secondaryColor="#ffffde",this.tertiaryColor=re(this.primaryColor,{h:-160}),this.primaryBorderColor=Jn(this.primaryColor,this.darkMode),this.secondaryBorderColor=Jn(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=Jn(this.tertiaryColor,this.darkMode),this.primaryTextColor=Ie(this.primaryColor),this.secondaryTextColor=Ie(this.secondaryColor),this.tertiaryTextColor=Ie(this.tertiaryColor),this.lineColor=Ie(this.background),this.textColor=Ie(this.background),this.background="white",this.mainBkg="#ECECFF",this.secondBkg="#ffffde",this.lineColor="#333333",this.border1="#9370DB",this.border2="#aaaa33",this.arrowheadColor="#333333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.labelBackground="#e8e8e8",this.textColor="#333",this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="calculated",this.edgeLabelBackground="calculated",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="black",this.actorLineColor="grey",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="calculated",this.altSectionBkgColor="calculated",this.sectionBkgColor2="calculated",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="calculated",this.taskTextLightColor="calculated",this.taskTextColor=this.taskTextLightColor,this.taskTextDarkColor="calculated",this.taskTextOutsideColor=this.taskTextDarkColor,this.taskTextClickableColor="calculated",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="calculated",this.critBorderColor="calculated",this.critBkgColor="calculated",this.todayLineColor="calculated",this.sectionBkgColor=An(102,102,255,.49),this.altSectionBkgColor="white",this.sectionBkgColor2="#fff400",this.taskBorderColor="#534fbc",this.taskBkgColor="#8a90dd",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="black",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="#534fbc",this.activeTaskBkgColor="#bfc7ff",this.gridColor="lightgrey",this.doneTaskBkgColor="lightgrey",this.doneTaskBorderColor="grey",this.critBorderColor="#ff8888",this.critBkgColor="red",this.todayLineColor="red",this.personBorder="calculated",this.personBkg="calculated",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222",this.updateColors()}var n,l;return n=i,l=[{key:"updateColors",value:function(){this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.titleColor=this.textColor,this.edgeLabelBackground=this.labelBackground,this.actorBorder=fn(this.border1,23),this.actorBkg=this.mainBkg,this.labelBoxBkgColor=this.actorBkg,this.signalColor=this.textColor,this.signalTextColor=this.textColor,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.actorTextColor,this.loopTextColor=this.actorTextColor,this.noteBorderColor=this.border2,this.noteTextColor=this.actorTextColor,this.taskTextColor=this.taskTextLightColor,this.taskTextOutsideColor=this.taskTextDarkColor,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.specialStateColor=this.lineColor,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.classText=this.primaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=re(this.primaryColor,{h:64}),this.fillType3=re(this.secondaryColor,{h:64}),this.fillType4=re(this.primaryColor,{h:-64}),this.fillType5=re(this.secondaryColor,{h:-64}),this.fillType6=re(this.primaryColor,{h:128}),this.fillType7=re(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||re(this.tertiaryColor,{l:-40}),this.pie4=this.pie4||re(this.primaryColor,{l:-10}),this.pie5=this.pie5||re(this.secondaryColor,{l:-30}),this.pie6=this.pie6||re(this.tertiaryColor,{l:-20}),this.pie7=this.pie7||re(this.primaryColor,{h:60,l:-20}),this.pie8=this.pie8||re(this.primaryColor,{h:-60,l:-40}),this.pie9=this.pie9||re(this.primaryColor,{h:120,l:-40}),this.pie10=this.pie10||re(this.primaryColor,{h:60,l:-40}),this.pie11=this.pie11||re(this.primaryColor,{h:-90,l:-40}),this.pie12=this.pie12||re(this.primaryColor,{h:120,l:-30}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOpacity=this.pieOpacity||"0.7",this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||this.primaryBorderColor,this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||this.labelBackground,this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||re(this.primaryColor,{h:-30}),this.git4=this.git4||re(this.primaryColor,{h:-60}),this.git5=this.git5||re(this.primaryColor,{h:-90}),this.git6=this.git6||re(this.primaryColor,{h:60}),this.git7=this.git7||re(this.primaryColor,{h:120}),this.darkMode?(this.git0=fn(this.git0,25),this.git1=fn(this.git1,25),this.git2=fn(this.git2,25),this.git3=fn(this.git3,25),this.git4=fn(this.git4,25),this.git5=fn(this.git5,25),this.git6=fn(this.git6,25),this.git7=fn(this.git7,25)):(this.git0=Ye(this.git0,25),this.git1=Ye(this.git1,25),this.git2=Ye(this.git2,25),this.git3=Ye(this.git3,25),this.git4=Ye(this.git4,25),this.git5=Ye(this.git5,25),this.git6=Ye(this.git6,25),this.git7=Ye(this.git7,25)),this.gitInv0=this.gitInv0||Ye(Ie(this.git0),25),this.gitInv1=this.gitInv1||Ie(this.git1),this.gitInv2=this.gitInv2||Ie(this.git2),this.gitInv3=this.gitInv3||Ie(this.git3),this.gitInv4=this.gitInv4||Ie(this.git4),this.gitInv5=this.gitInv5||Ie(this.git5),this.gitInv6=this.gitInv6||Ie(this.git6),this.gitInv7=this.gitInv7||Ie(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||Ie(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||Ie(this.labelTextColor),this.gitBranchLabel4=this.gitBranchLabel4||this.labelTextColor,this.gitBranchLabel5=this.gitBranchLabel5||this.labelTextColor,this.gitBranchLabel6=this.gitBranchLabel6||this.labelTextColor,this.gitBranchLabel7=this.gitBranchLabel7||this.labelTextColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px"}},{key:"calculate",value:function(d){var g=this;if(mn(d)==="object"){var T=Object.keys(d);T.forEach(function(k){g[k]=d[k]}),this.updateColors(),T.forEach(function(k){g[k]=d[k]})}else this.updateColors()}}],l&&At(n.prototype,l),Object.defineProperty(n,"prototype",{writable:!1}),i}();function Yt(i){return Yt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Yt(i)}function Un(i,n){for(var l=0;l<n.length;l++){var d=n[l];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(i,d.key,d)}}var Rn=function(){function i(){(function(d,g){if(!(d instanceof g))throw new TypeError("Cannot call a class as a function")})(this,i),this.background="#f4f4f4",this.primaryColor="#cde498",this.secondaryColor="#cdffb2",this.background="white",this.mainBkg="#cde498",this.secondBkg="#cdffb2",this.lineColor="green",this.border1="#13540c",this.border2="#6eaa49",this.arrowheadColor="green",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.tertiaryColor=fn("#cde498",10),this.primaryBorderColor=Jn(this.primaryColor,this.darkMode),this.secondaryBorderColor=Jn(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=Jn(this.tertiaryColor,this.darkMode),this.primaryTextColor=Ie(this.primaryColor),this.secondaryTextColor=Ie(this.secondaryColor),this.tertiaryTextColor=Ie(this.primaryColor),this.lineColor=Ie(this.background),this.textColor=Ie(this.background),this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="#333",this.edgeLabelBackground="#e8e8e8",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="black",this.actorLineColor="grey",this.signalColor="#333",this.signalTextColor="#333",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="#326932",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="#6eaa49",this.altSectionBkgColor="white",this.sectionBkgColor2="#6eaa49",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="#487e3a",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="black",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="lightgrey",this.doneTaskBkgColor="lightgrey",this.doneTaskBorderColor="grey",this.critBorderColor="#ff8888",this.critBkgColor="red",this.todayLineColor="red",this.personBorder="calculated",this.personBkg="calculated",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222"}var n,l;return n=i,l=[{key:"updateColors",value:function(){this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.actorBorder=Ye(this.mainBkg,20),this.actorBkg=this.mainBkg,this.labelBoxBkgColor=this.actorBkg,this.labelTextColor=this.actorTextColor,this.loopTextColor=this.actorTextColor,this.noteBorderColor=this.border2,this.noteTextColor=this.actorTextColor,this.taskBorderColor=this.border1,this.taskTextColor=this.taskTextLightColor,this.taskTextOutsideColor=this.taskTextDarkColor,this.activeTaskBorderColor=this.taskBorderColor,this.activeTaskBkgColor=this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.primaryBorderColor,this.specialStateColor=this.lineColor,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.classText=this.primaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=re(this.primaryColor,{h:64}),this.fillType3=re(this.secondaryColor,{h:64}),this.fillType4=re(this.primaryColor,{h:-64}),this.fillType5=re(this.secondaryColor,{h:-64}),this.fillType6=re(this.primaryColor,{h:128}),this.fillType7=re(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||this.tertiaryColor,this.pie4=this.pie4||re(this.primaryColor,{l:-30}),this.pie5=this.pie5||re(this.secondaryColor,{l:-30}),this.pie6=this.pie6||re(this.tertiaryColor,{h:40,l:-40}),this.pie7=this.pie7||re(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||re(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||re(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||re(this.primaryColor,{h:60,l:-50}),this.pie11=this.pie11||re(this.primaryColor,{h:-60,l:-50}),this.pie12=this.pie12||re(this.primaryColor,{h:120,l:-50}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOpacity=this.pieOpacity||"0.7",this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||this.primaryBorderColor,this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||this.edgeLabelBackground,this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||re(this.primaryColor,{h:-30}),this.git4=this.git4||re(this.primaryColor,{h:-60}),this.git5=this.git5||re(this.primaryColor,{h:-90}),this.git6=this.git6||re(this.primaryColor,{h:60}),this.git7=this.git7||re(this.primaryColor,{h:120}),this.darkMode?(this.git0=fn(this.git0,25),this.git1=fn(this.git1,25),this.git2=fn(this.git2,25),this.git3=fn(this.git3,25),this.git4=fn(this.git4,25),this.git5=fn(this.git5,25),this.git6=fn(this.git6,25),this.git7=fn(this.git7,25)):(this.git0=Ye(this.git0,25),this.git1=Ye(this.git1,25),this.git2=Ye(this.git2,25),this.git3=Ye(this.git3,25),this.git4=Ye(this.git4,25),this.git5=Ye(this.git5,25),this.git6=Ye(this.git6,25),this.git7=Ye(this.git7,25)),this.gitInv0=this.gitInv0||Ie(this.git0),this.gitInv1=this.gitInv1||Ie(this.git1),this.gitInv2=this.gitInv2||Ie(this.git2),this.gitInv3=this.gitInv3||Ie(this.git3),this.gitInv4=this.gitInv4||Ie(this.git4),this.gitInv5=this.gitInv5||Ie(this.git5),this.gitInv6=this.gitInv6||Ie(this.git6),this.gitInv7=this.gitInv7||Ie(this.git7),this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px"}},{key:"calculate",value:function(d){var g=this;if(Yt(d)==="object"){var T=Object.keys(d);T.forEach(function(k){g[k]=d[k]}),this.updateColors(),T.forEach(function(k){g[k]=d[k]})}else this.updateColors()}}],l&&Un(n.prototype,l),Object.defineProperty(n,"prototype",{writable:!1}),i}();function Vn(i){return Vn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Vn(i)}function Mn(i,n){for(var l=0;l<n.length;l++){var d=n[l];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(i,d.key,d)}}var Hn=function(){function i(){(function(d,g){if(!(d instanceof g))throw new TypeError("Cannot call a class as a function")})(this,i),this.primaryColor="#eee",this.contrast="#707070",this.secondaryColor=fn(this.contrast,55),this.background="#ffffff",this.tertiaryColor=re(this.primaryColor,{h:-160}),this.primaryBorderColor=Jn(this.primaryColor,this.darkMode),this.secondaryBorderColor=Jn(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=Jn(this.tertiaryColor,this.darkMode),this.primaryTextColor=Ie(this.primaryColor),this.secondaryTextColor=Ie(this.secondaryColor),this.tertiaryTextColor=Ie(this.tertiaryColor),this.lineColor=Ie(this.background),this.textColor=Ie(this.background),this.mainBkg="#eee",this.secondBkg="calculated",this.lineColor="#666",this.border1="#999",this.border2="calculated",this.note="#ffa",this.text="#333",this.critical="#d42",this.done="#bbb",this.arrowheadColor="#333333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="calculated",this.edgeLabelBackground="white",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="calculated",this.actorLineColor="calculated",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="calculated",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="calculated",this.altSectionBkgColor="white",this.sectionBkgColor2="calculated",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="calculated",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="calculated",this.critBkgColor="calculated",this.critBorderColor="calculated",this.todayLineColor="calculated",this.personBorder="calculated",this.personBkg="calculated",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222"}var n,l;return n=i,l=[{key:"updateColors",value:function(){this.secondBkg=fn(this.contrast,55),this.border2=this.contrast,this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.titleColor=this.text,this.actorBorder=fn(this.border1,23),this.actorBkg=this.mainBkg,this.actorTextColor=this.text,this.actorLineColor=this.lineColor,this.signalColor=this.text,this.signalTextColor=this.text,this.labelBoxBkgColor=this.actorBkg,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.text,this.loopTextColor=this.text,this.noteBorderColor="#999",this.noteBkgColor="#666",this.noteTextColor="#fff",this.sectionBkgColor=fn(this.contrast,30),this.sectionBkgColor2=fn(this.contrast,30),this.taskBorderColor=Ye(this.contrast,10),this.taskBkgColor=this.contrast,this.taskTextColor=this.taskTextLightColor,this.taskTextDarkColor=this.text,this.taskTextOutsideColor=this.taskTextDarkColor,this.activeTaskBorderColor=this.taskBorderColor,this.activeTaskBkgColor=this.mainBkg,this.gridColor=fn(this.border1,30),this.doneTaskBkgColor=this.done,this.doneTaskBorderColor=this.lineColor,this.critBkgColor=this.critical,this.critBorderColor=Ye(this.critBkgColor,10),this.todayLineColor=this.critBkgColor,this.transitionColor=this.transitionColor||"#000",this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f4f4f4",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.stateBorder=this.stateBorder||"#000",this.innerEndBackground=this.primaryBorderColor,this.specialStateColor="#222",this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.classText=this.primaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=re(this.primaryColor,{h:64}),this.fillType3=re(this.secondaryColor,{h:64}),this.fillType4=re(this.primaryColor,{h:-64}),this.fillType5=re(this.secondaryColor,{h:-64}),this.fillType6=re(this.primaryColor,{h:128}),this.fillType7=re(this.secondaryColor,{h:128}),this.pie1=this.pie1||"#F4F4F4",this.pie2=this.pie2||"#555",this.pie3=this.pie3||"#BBB",this.pie4=this.pie4||"#777",this.pie5=this.pie5||"#999",this.pie6=this.pie6||"#DDD",this.pie7=this.pie7||"#FFF",this.pie8=this.pie8||"#DDD",this.pie9=this.pie9||"#BBB",this.pie10=this.pie10||"#999",this.pie11=this.pie11||"#777",this.pie12=this.pie12||"#555",this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOpacity=this.pieOpacity||"0.7",this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||this.primaryBorderColor,this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||this.edgeLabelBackground,this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=Ye(this.pie1,25)||this.primaryColor,this.git1=this.pie2||this.secondaryColor,this.git2=this.pie3||this.tertiaryColor,this.git3=this.pie4||re(this.primaryColor,{h:-30}),this.git4=this.pie5||re(this.primaryColor,{h:-60}),this.git5=this.pie6||re(this.primaryColor,{h:-90}),this.git6=this.pie7||re(this.primaryColor,{h:60}),this.git7=this.pie8||re(this.primaryColor,{h:120}),this.gitInv0=this.gitInv0||Ie(this.git0),this.gitInv1=this.gitInv1||Ie(this.git1),this.gitInv2=this.gitInv2||Ie(this.git2),this.gitInv3=this.gitInv3||Ie(this.git3),this.gitInv4=this.gitInv4||Ie(this.git4),this.gitInv5=this.gitInv5||Ie(this.git5),this.gitInv6=this.gitInv6||Ie(this.git6),this.gitInv7=this.gitInv7||Ie(this.git7),this.branchLabelColor=this.branchLabelColor||this.labelTextColor,this.gitBranchLabel0=this.branchLabelColor,this.gitBranchLabel1="white",this.gitBranchLabel2=this.branchLabelColor,this.gitBranchLabel3="white",this.gitBranchLabel4=this.branchLabelColor,this.gitBranchLabel5=this.branchLabelColor,this.gitBranchLabel6=this.branchLabelColor,this.gitBranchLabel7=this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px"}},{key:"calculate",value:function(d){var g=this;if(Vn(d)==="object"){var T=Object.keys(d);T.forEach(function(k){g[k]=d[k]}),this.updateColors(),T.forEach(function(k){g[k]=d[k]})}else this.updateColors()}}],l&&Mn(n.prototype,l),Object.defineProperty(n,"prototype",{writable:!1}),i}();const In={base:{getThemeVariables:function(i){var n=new Me;return n.calculate(i),n}},dark:{getThemeVariables:function(i){var n=new Ee;return n.calculate(i),n}},default:{getThemeVariables:function(i){var n=new vr;return n.calculate(i),n}},forest:{getThemeVariables:function(i){var n=new Rn;return n.calculate(i),n}},neutral:{getThemeVariables:function(i){var n=new Hn;return n.calculate(i),n}}};function En(i){return function(n){if(Array.isArray(n))return Fn(n)}(i)||function(n){if(typeof Symbol<"u"&&n[Symbol.iterator]!=null||n["@@iterator"]!=null)return Array.from(n)}(i)||function(n,l){if(n){if(typeof n=="string")return Fn(n,l);var d=Object.prototype.toString.call(n).slice(8,-1);return d==="Object"&&n.constructor&&(d=n.constructor.name),d==="Map"||d==="Set"?Array.from(n):d==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(d)?Fn(n,l):void 0}}(i)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function Fn(i,n){(n==null||n>i.length)&&(n=i.length);for(var l=0,d=new Array(n);l<n;l++)d[l]=i[l];return d}function Pn(i){return Pn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Pn(i)}var jn={theme:"default",themeVariables:In.default.getThemeVariables(),themeCSS:void 0,maxTextSize:5e4,darkMode:!1,fontFamily:'"trebuchet ms", verdana, arial, sans-serif;',logLevel:5,securityLevel:"strict",startOnLoad:!0,arrowMarkerAbsolute:!1,secure:["secure","securityLevel","startOnLoad","maxTextSize"],deterministicIds:!1,deterministicIDSeed:void 0,flowchart:{diagramPadding:8,htmlLabels:!0,nodeSpacing:50,rankSpacing:50,curve:"basis",padding:15,useMaxWidth:!0,defaultRenderer:"dagre-d3"},sequence:{hideUnusedParticipants:!1,activationWidth:10,diagramMarginX:50,diagramMarginY:10,actorMargin:50,width:150,height:65,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",mirrorActors:!0,forceMenus:!1,bottomMarginAdj:1,useMaxWidth:!0,rightAngles:!1,showSequenceNumbers:!1,actorFontSize:14,actorFontFamily:'"Open Sans", sans-serif',actorFontWeight:400,noteFontSize:14,noteFontFamily:'"trebuchet ms", verdana, arial, sans-serif',noteFontWeight:400,noteAlign:"center",messageFontSize:16,messageFontFamily:'"trebuchet ms", verdana, arial, sans-serif',messageFontWeight:400,wrap:!1,wrapPadding:10,labelBoxWidth:50,labelBoxHeight:20,messageFont:function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},noteFont:function(){return{fontFamily:this.noteFontFamily,fontSize:this.noteFontSize,fontWeight:this.noteFontWeight}},actorFont:function(){return{fontFamily:this.actorFontFamily,fontSize:this.actorFontSize,fontWeight:this.actorFontWeight}}},gantt:{titleTopMargin:25,barHeight:20,barGap:4,topPadding:50,rightPadding:75,leftPadding:75,gridLineStartPadding:35,fontSize:11,sectionFontSize:11,numberSectionStyles:4,axisFormat:"%Y-%m-%d",useMaxWidth:!0,topAxis:!1,useWidth:void 0},journey:{diagramMarginX:50,diagramMarginY:10,leftMargin:150,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,useMaxWidth:!0,rightAngles:!1,taskFontSize:14,taskFontFamily:'"Open Sans", sans-serif',taskMargin:50,activationWidth:10,textPlacement:"fo",actorColours:["#8FBC8F","#7CFC00","#00FFFF","#20B2AA","#B0E0E6","#FFFFE0"],sectionFills:["#191970","#8B008B","#4B0082","#2F4F4F","#800000","#8B4513","#00008B"],sectionColours:["#fff"]},class:{arrowMarkerAbsolute:!1,dividerMargin:10,padding:5,textHeight:10,useMaxWidth:!0,defaultRenderer:"dagre-wrapper"},state:{dividerMargin:10,sizeUnit:5,padding:8,textHeight:10,titleShift:-15,noteMargin:10,forkWidth:70,forkHeight:7,miniPadding:2,fontSizeFactor:5.02,fontSize:24,labelHeight:16,edgeLengthFactor:"20",compositTitleSize:35,radius:5,useMaxWidth:!0,defaultRenderer:"dagre-wrapper"},er:{diagramPadding:20,layoutDirection:"TB",minEntityWidth:100,minEntityHeight:75,entityPadding:15,stroke:"gray",fill:"honeydew",fontSize:12,useMaxWidth:!0},pie:{useWidth:void 0,useMaxWidth:!0},requirement:{useWidth:void 0,useMaxWidth:!0,rect_fill:"#f9f9f9",text_color:"#333",rect_border_size:"0.5px",rect_border_color:"#bbb",rect_min_width:200,rect_min_height:200,fontSize:14,rect_padding:10,line_height:20},gitGraph:{diagramPadding:8,nodeLabel:{width:75,height:100,x:-25,y:0},mainBranchName:"main",mainBranchOrder:0,showCommitLabel:!0,showBranches:!0,rotateCommitLabel:!0},c4:{useWidth:void 0,diagramMarginX:50,diagramMarginY:10,c4ShapeMargin:50,c4ShapePadding:20,width:216,height:60,boxMargin:10,useMaxWidth:!0,c4ShapeInRow:4,nextLinePaddingX:0,c4BoundaryInRow:2,personFontSize:14,personFontFamily:'"Open Sans", sans-serif',personFontWeight:"normal",external_personFontSize:14,external_personFontFamily:'"Open Sans", sans-serif',external_personFontWeight:"normal",systemFontSize:14,systemFontFamily:'"Open Sans", sans-serif',systemFontWeight:"normal",external_systemFontSize:14,external_systemFontFamily:'"Open Sans", sans-serif',external_systemFontWeight:"normal",system_dbFontSize:14,system_dbFontFamily:'"Open Sans", sans-serif',system_dbFontWeight:"normal",external_system_dbFontSize:14,external_system_dbFontFamily:'"Open Sans", sans-serif',external_system_dbFontWeight:"normal",system_queueFontSize:14,system_queueFontFamily:'"Open Sans", sans-serif',system_queueFontWeight:"normal",external_system_queueFontSize:14,external_system_queueFontFamily:'"Open Sans", sans-serif',external_system_queueFontWeight:"normal",boundaryFontSize:14,boundaryFontFamily:'"Open Sans", sans-serif',boundaryFontWeight:"normal",messageFontSize:12,messageFontFamily:'"Open Sans", sans-serif',messageFontWeight:"normal",containerFontSize:14,containerFontFamily:'"Open Sans", sans-serif',containerFontWeight:"normal",external_containerFontSize:14,external_containerFontFamily:'"Open Sans", sans-serif',external_containerFontWeight:"normal",container_dbFontSize:14,container_dbFontFamily:'"Open Sans", sans-serif',container_dbFontWeight:"normal",external_container_dbFontSize:14,external_container_dbFontFamily:'"Open Sans", sans-serif',external_container_dbFontWeight:"normal",container_queueFontSize:14,container_queueFontFamily:'"Open Sans", sans-serif',container_queueFontWeight:"normal",external_container_queueFontSize:14,external_container_queueFontFamily:'"Open Sans", sans-serif',external_container_queueFontWeight:"normal",componentFontSize:14,componentFontFamily:'"Open Sans", sans-serif',componentFontWeight:"normal",external_componentFontSize:14,external_componentFontFamily:'"Open Sans", sans-serif',external_componentFontWeight:"normal",component_dbFontSize:14,component_dbFontFamily:'"Open Sans", sans-serif',component_dbFontWeight:"normal",external_component_dbFontSize:14,external_component_dbFontFamily:'"Open Sans", sans-serif',external_component_dbFontWeight:"normal",component_queueFontSize:14,component_queueFontFamily:'"Open Sans", sans-serif',component_queueFontWeight:"normal",external_component_queueFontSize:14,external_component_queueFontFamily:'"Open Sans", sans-serif',external_component_queueFontWeight:"normal",wrap:!0,wrapPadding:10,personFont:function(){return{fontFamily:this.personFontFamily,fontSize:this.personFontSize,fontWeight:this.personFontWeight}},external_personFont:function(){return{fontFamily:this.external_personFontFamily,fontSize:this.external_personFontSize,fontWeight:this.external_personFontWeight}},systemFont:function(){return{fontFamily:this.systemFontFamily,fontSize:this.systemFontSize,fontWeight:this.systemFontWeight}},external_systemFont:function(){return{fontFamily:this.external_systemFontFamily,fontSize:this.external_systemFontSize,fontWeight:this.external_systemFontWeight}},system_dbFont:function(){return{fontFamily:this.system_dbFontFamily,fontSize:this.system_dbFontSize,fontWeight:this.system_dbFontWeight}},external_system_dbFont:function(){return{fontFamily:this.external_system_dbFontFamily,fontSize:this.external_system_dbFontSize,fontWeight:this.external_system_dbFontWeight}},system_queueFont:function(){return{fontFamily:this.system_queueFontFamily,fontSize:this.system_queueFontSize,fontWeight:this.system_queueFontWeight}},external_system_queueFont:function(){return{fontFamily:this.external_system_queueFontFamily,fontSize:this.external_system_queueFontSize,fontWeight:this.external_system_queueFontWeight}},containerFont:function(){return{fontFamily:this.containerFontFamily,fontSize:this.containerFontSize,fontWeight:this.containerFontWeight}},external_containerFont:function(){return{fontFamily:this.external_containerFontFamily,fontSize:this.external_containerFontSize,fontWeight:this.external_containerFontWeight}},container_dbFont:function(){return{fontFamily:this.container_dbFontFamily,fontSize:this.container_dbFontSize,fontWeight:this.container_dbFontWeight}},external_container_dbFont:function(){return{fontFamily:this.external_container_dbFontFamily,fontSize:this.external_container_dbFontSize,fontWeight:this.external_container_dbFontWeight}},container_queueFont:function(){return{fontFamily:this.container_queueFontFamily,fontSize:this.container_queueFontSize,fontWeight:this.container_queueFontWeight}},external_container_queueFont:function(){return{fontFamily:this.external_container_queueFontFamily,fontSize:this.external_container_queueFontSize,fontWeight:this.external_container_queueFontWeight}},componentFont:function(){return{fontFamily:this.componentFontFamily,fontSize:this.componentFontSize,fontWeight:this.componentFontWeight}},external_componentFont:function(){return{fontFamily:this.external_componentFontFamily,fontSize:this.external_componentFontSize,fontWeight:this.external_componentFontWeight}},component_dbFont:function(){return{fontFamily:this.component_dbFontFamily,fontSize:this.component_dbFontSize,fontWeight:this.component_dbFontWeight}},external_component_dbFont:function(){return{fontFamily:this.external_component_dbFontFamily,fontSize:this.external_component_dbFontSize,fontWeight:this.external_component_dbFontWeight}},component_queueFont:function(){return{fontFamily:this.component_queueFontFamily,fontSize:this.component_queueFontSize,fontWeight:this.component_queueFontWeight}},external_component_queueFont:function(){return{fontFamily:this.external_component_queueFontFamily,fontSize:this.external_component_queueFontSize,fontWeight:this.external_component_queueFontWeight}},boundaryFont:function(){return{fontFamily:this.boundaryFontFamily,fontSize:this.boundaryFontSize,fontWeight:this.boundaryFontWeight}},messageFont:function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},person_bg_color:"#08427B",person_border_color:"#073B6F",external_person_bg_color:"#686868",external_person_border_color:"#8A8A8A",system_bg_color:"#1168BD",system_border_color:"#3C7FC0",system_db_bg_color:"#1168BD",system_db_border_color:"#3C7FC0",system_queue_bg_color:"#1168BD",system_queue_border_color:"#3C7FC0",external_system_bg_color:"#999999",external_system_border_color:"#8A8A8A",external_system_db_bg_color:"#999999",external_system_db_border_color:"#8A8A8A",external_system_queue_bg_color:"#999999",external_system_queue_border_color:"#8A8A8A",container_bg_color:"#438DD5",container_border_color:"#3C7FC0",container_db_bg_color:"#438DD5",container_db_border_color:"#3C7FC0",container_queue_bg_color:"#438DD5",container_queue_border_color:"#3C7FC0",external_container_bg_color:"#B3B3B3",external_container_border_color:"#A6A6A6",external_container_db_bg_color:"#B3B3B3",external_container_db_border_color:"#A6A6A6",external_container_queue_bg_color:"#B3B3B3",external_container_queue_border_color:"#A6A6A6",component_bg_color:"#85BBF0",component_border_color:"#78A8D8",component_db_bg_color:"#85BBF0",component_db_border_color:"#78A8D8",component_queue_bg_color:"#85BBF0",component_queue_border_color:"#78A8D8",external_component_bg_color:"#CCCCCC",external_component_border_color:"#BFBFBF",external_component_db_bg_color:"#CCCCCC",external_component_db_border_color:"#BFBFBF",external_component_queue_bg_color:"#CCCCCC",external_component_queue_border_color:"#BFBFBF"}};jn.class.arrowMarkerAbsolute=jn.arrowMarkerAbsolute,jn.gitGraph.arrowMarkerAbsolute=jn.arrowMarkerAbsolute;var fa=function i(n){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return Object.keys(n).reduce(function(d,g){return Array.isArray(n[g])?d:Pn(n[g])==="object"&&n[g]!==null?[].concat(En(d),[l+g],En(i(n[g],""))):[].concat(En(d),[l+g])},[])}(jn,"");const Dr=jn;function Tr(i){return Tr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Tr(i)}var Sn,oi=Object.freeze(Dr),Nn=te({},oi),_r=[],Cr=te({},oi),yr=function(i,n){for(var l=te({},i),d={},g=0;g<n.length;g++){var T=n[g];Ar(T),d=te(d,T)}if(l=te(l,d),d.theme&&In[d.theme]){var k=te({},Sn),S=te(k.themeVariables||{},d.themeVariables);l.themeVariables=In[l.theme].getThemeVariables(S)}return Cr=l,l},qr=function(){return te({},Nn)},Dt=function(){return te({},Cr)},Ar=function i(n){Object.keys(Nn.secure).forEach(function(l){n[Nn.secure[l]]!==void 0&&(y.debug("Denied attempt to modify a secure key ".concat(Nn.secure[l]),n[Nn.secure[l]]),delete n[Nn.secure[l]])}),Object.keys(n).forEach(function(l){l.indexOf("__")===0&&delete n[l]}),Object.keys(n).forEach(function(l){typeof n[l]=="string"&&(n[l].indexOf("<")>-1||n[l].indexOf(">")>-1||n[l].indexOf("url(data:")>-1)&&delete n[l],Tr(n[l])==="object"&&i(n[l])})},Nr=function(i){i.fontFamily&&(i.themeVariables&&i.themeVariables.fontFamily||(i.themeVariables={fontFamily:i.fontFamily})),_r.push(i),yr(Nn,_r)},Gn=function(){yr(Nn,_r=[])},Zr=p(7856),Ur=p.n(Zr),Ir=function(i){var n=i.replace(/\\u[\dA-F]{4}/gi,function(l){return String.fromCharCode(parseInt(l.replace(/\\u/g,""),16))});return n=(n=(n=n.replace(/\\x([0-9a-f]{2})/gi,function(l,d){return String.fromCharCode(parseInt(d,16))})).replace(/\\[\d\d\d]{3}/gi,function(l){return String.fromCharCode(parseInt(l.replace(/\\/g,""),8))})).replace(/\\[\d\d\d]{2}/gi,function(l){return String.fromCharCode(parseInt(l.replace(/\\/g,""),8))})},Qr=function(i){for(var n="",l=0;l>=0;){if(!((l=i.indexOf("<script"))>=0)){n+=i,l=-1;break}n+=i.substr(0,l),(l=(i=i.substr(l+1)).indexOf("<\/script>"))>=0&&(l+=9,i=i.substr(l))}var d=Ir(n);return(d=(d=(d=(d=d.replace(/script>/gi,"#")).replace(/javascript:/gi,"#")).replace(/javascript&colon/gi,"#")).replace(/onerror=/gi,"onerror:")).replace(/<iframe/gi,"")},xa=function(i,n){var l=i,d=!0;if(!n.flowchart||n.flowchart.htmlLabels!==!1&&n.flowchart.htmlLabels!=="false"||(d=!1),d){var g=n.securityLevel;g==="antiscript"||g==="strict"?l=Qr(l):g!=="loose"&&(l=(l=(l=Ni(l)).replace(/</g,"&lt;").replace(/>/g,"&gt;")).replace(/=/g,"&equals;"),l=na(l))}return l},cr=function(i,n){return i&&(n.dompurifyConfig?Ur().sanitize(xa(i,n),n.dompurifyConfig):Ur().sanitize(xa(i,n)))},ea=/<br\s*\/?>/gi,na=function(i){return i.replace(/#br#/g,"<br/>")},Ni=function(i){return i.replace(ea,"#br#")},rn=function(i){return i!=="false"&&i!==!1},Zn=function i(n){var l=n;return n.indexOf("~")!=-1?i(l=(l=l.replace("~","<")).replace("~",">")):l};const an={getRows:function(i){if(!i)return 1;var n=Ni(i);return(n=n.replace(/\\n/g,"#br#")).split("#br#")},sanitizeText:cr,sanitizeTextOrArray:function(i,n){return typeof i=="string"?cr(i,n):i.flat().map(function(l){return cr(l,n)})},hasBreaks:function(i){return ea.test(i)},splitBreaks:function(i){return i.split(ea)},lineBreakRegex:ea,removeScript:Qr,getUrl:function(i){var n="";return i&&(n=(n=(n=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search).replace(/\(/g,"\\(")).replace(/\)/g,"\\)")),n},evaluate:rn,removeEscapes:Ir};var nn="",nr="",qt="",wi=function(i){return cr(i,Dt())},Kt=function(){nn="",qt="",nr=""},xr=function(i){nn=wi(i).replace(/^\s+/g,"")},Or=function(){return nn||nr},Vr=function(i){qt=wi(i).replace(/\n\s+/g,`
`)},li=function(){return qt},ka=function(i){nr=wi(i)},hr=function(){return nr};function xn(i,n){return function(l){if(Array.isArray(l))return l}(i)||function(l,d){var g=l==null?null:typeof Symbol<"u"&&l[Symbol.iterator]||l["@@iterator"];if(g!=null){var T,k,S=[],N=!0,O=!1;try{for(g=g.call(l);!(N=(T=g.next()).done)&&(S.push(T.value),!d||S.length!==d);N=!0);}catch(q){O=!0,k=q}finally{try{N||g.return==null||g.return()}finally{if(O)throw k}}return S}}(i,n)||function(l,d){if(l){if(typeof l=="string")return ra(l,d);var g=Object.prototype.toString.call(l).slice(8,-1);return g==="Object"&&l.constructor&&(g=l.constructor.name),g==="Map"||g==="Set"?Array.from(l):g==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(g)?ra(l,d):void 0}}(i,n)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function ra(i,n){(n==null||n>i.length)&&(n=i.length);for(var l=0,d=new Array(n);l<n;l++)d[l]=i[l];return d}function On(i){return On=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},On(i)}var bi,si=[],Oi=[""],lr="global",Kr="",Hr=[{alias:"global",label:{text:"global"},type:{text:"global"},tags:null,link:null,parentBoundary:""}],Gr=[],ni="",Ti=!1,Xr=4,wa=2,Ba=function(i){return i==null?si:si.filter(function(n){return n.parentBoundary===i})},pr=function(){return Ti};const Jr={addPersonOrSystem:function(i,n,l,d,g,T,k){if(n!==null&&l!==null){var S={},N=si.find(function(ee){return ee.alias===n});if(N&&n===N.alias?S=N:(S.alias=n,si.push(S)),S.label=l==null?{text:""}:{text:l},d==null)S.descr={text:""};else if(On(d)==="object"){var O=xn(Object.entries(d)[0],2),q=O[0],V=O[1];S[q]={text:V}}else S.descr={text:d};if(On(g)==="object"){var et=xn(Object.entries(g)[0],2),Q=et[0],Tt=et[1];S[Q]=Tt}else S.sprite=g;if(On(T)==="object"){var St=xn(Object.entries(T)[0],2),Lt=St[0],Nt=St[1];S[Lt]=Nt}else S.tags=T;if(On(k)==="object"){var Ot=xn(Object.entries(k)[0],2),Ft=Ot[0],_t=Ot[1];S[Ft]=_t}else S.link=k;S.typeC4Shape={text:i},S.parentBoundary=lr,S.wrap=pr()}},addPersonOrSystemBoundary:function(i,n,l,d,g){if(i!==null&&n!==null){var T={},k=Hr.find(function(Lt){return Lt.alias===i});if(k&&i===k.alias?T=k:(T.alias=i,Hr.push(T)),T.label=n==null?{text:""}:{text:n},l==null)T.type={text:"system"};else if(On(l)==="object"){var S=xn(Object.entries(l)[0],2),N=S[0],O=S[1];T[N]={text:O}}else T.type={text:l};if(On(d)==="object"){var q=xn(Object.entries(d)[0],2),V=q[0],et=q[1];T[V]=et}else T.tags=d;if(On(g)==="object"){var Q=xn(Object.entries(g)[0],2),Tt=Q[0],St=Q[1];T[Tt]=St}else T.link=g;T.parentBoundary=lr,T.wrap=pr(),Kr=lr,lr=i,Oi.push(Kr)}},addContainer:function(i,n,l,d,g,T,k,S){if(n!==null&&l!==null){var N={},O=si.find(function(Rt){return Rt.alias===n});if(O&&n===O.alias?N=O:(N.alias=n,si.push(N)),N.label=l==null?{text:""}:{text:l},d==null)N.techn={text:""};else if(On(d)==="object"){var q=xn(Object.entries(d)[0],2),V=q[0],et=q[1];N[V]={text:et}}else N.techn={text:d};if(g==null)N.descr={text:""};else if(On(g)==="object"){var Q=xn(Object.entries(g)[0],2),Tt=Q[0],St=Q[1];N[Tt]={text:St}}else N.descr={text:g};if(On(T)==="object"){var Lt=xn(Object.entries(T)[0],2),Nt=Lt[0],Ot=Lt[1];N[Nt]=Ot}else N.sprite=T;if(On(k)==="object"){var Ft=xn(Object.entries(k)[0],2),_t=Ft[0],ee=Ft[1];N[_t]=ee}else N.tags=k;if(On(S)==="object"){var ke=xn(Object.entries(S)[0],2),ue=ke[0],ve=ke[1];N[ue]=ve}else N.link=S;N.wrap=pr(),N.typeC4Shape={text:i},N.parentBoundary=lr}},addContainerBoundary:function(i,n,l,d,g){if(i!==null&&n!==null){var T={},k=Hr.find(function(Lt){return Lt.alias===i});if(k&&i===k.alias?T=k:(T.alias=i,Hr.push(T)),T.label=n==null?{text:""}:{text:n},l==null)T.type={text:"container"};else if(On(l)==="object"){var S=xn(Object.entries(l)[0],2),N=S[0],O=S[1];T[N]={text:O}}else T.type={text:l};if(On(d)==="object"){var q=xn(Object.entries(d)[0],2),V=q[0],et=q[1];T[V]=et}else T.tags=d;if(On(g)==="object"){var Q=xn(Object.entries(g)[0],2),Tt=Q[0],St=Q[1];T[Tt]=St}else T.link=g;T.parentBoundary=lr,T.wrap=pr(),Kr=lr,lr=i,Oi.push(Kr)}},addComponent:function(i,n,l,d,g,T,k,S){if(n!==null&&l!==null){var N={},O=si.find(function(Rt){return Rt.alias===n});if(O&&n===O.alias?N=O:(N.alias=n,si.push(N)),N.label=l==null?{text:""}:{text:l},d==null)N.techn={text:""};else if(On(d)==="object"){var q=xn(Object.entries(d)[0],2),V=q[0],et=q[1];N[V]={text:et}}else N.techn={text:d};if(g==null)N.descr={text:""};else if(On(g)==="object"){var Q=xn(Object.entries(g)[0],2),Tt=Q[0],St=Q[1];N[Tt]={text:St}}else N.descr={text:g};if(On(T)==="object"){var Lt=xn(Object.entries(T)[0],2),Nt=Lt[0],Ot=Lt[1];N[Nt]=Ot}else N.sprite=T;if(On(k)==="object"){var Ft=xn(Object.entries(k)[0],2),_t=Ft[0],ee=Ft[1];N[_t]=ee}else N.tags=k;if(On(S)==="object"){var ke=xn(Object.entries(S)[0],2),ue=ke[0],ve=ke[1];N[ue]=ve}else N.link=S;N.wrap=pr(),N.typeC4Shape={text:i},N.parentBoundary=lr}},addDeploymentNode:function(i,n,l,d,g,T,k,S){if(n!==null&&l!==null){var N={},O=Hr.find(function(ke){return ke.alias===n});if(O&&n===O.alias?N=O:(N.alias=n,Hr.push(N)),N.label=l==null?{text:""}:{text:l},d==null)N.type={text:"node"};else if(On(d)==="object"){var q=xn(Object.entries(d)[0],2),V=q[0],et=q[1];N[V]={text:et}}else N.type={text:d};if(g==null)N.descr={text:""};else if(On(g)==="object"){var Q=xn(Object.entries(g)[0],2),Tt=Q[0],St=Q[1];N[Tt]={text:St}}else N.descr={text:g};if(On(k)==="object"){var Lt=xn(Object.entries(k)[0],2),Nt=Lt[0],Ot=Lt[1];N[Nt]=Ot}else N.tags=k;if(On(S)==="object"){var Ft=xn(Object.entries(S)[0],2),_t=Ft[0],ee=Ft[1];N[_t]=ee}else N.link=S;N.nodeType=i,N.parentBoundary=lr,N.wrap=pr(),Kr=lr,lr=n,Oi.push(Kr)}},popBoundaryParseStack:function(){lr=Kr,Oi.pop(),Kr=Oi.pop(),Oi.push(Kr)},addRel:function(i,n,l,d,g,T,k,S,N){if(i!=null&&n!=null&&l!=null&&d!=null){var O={},q=Gr.find(function(le){return le.from===n&&le.to===l});if(q?O=q:Gr.push(O),O.type=i,O.from=n,O.to=l,O.label={text:d},g==null)O.techn={text:""};else if(On(g)==="object"){var V=xn(Object.entries(g)[0],2),et=V[0],Q=V[1];O[et]={text:Q}}else O.techn={text:g};if(T==null)O.descr={text:""};else if(On(T)==="object"){var Tt=xn(Object.entries(T)[0],2),St=Tt[0],Lt=Tt[1];O[St]={text:Lt}}else O.descr={text:T};if(On(k)==="object"){var Nt=xn(Object.entries(k)[0],2),Ot=Nt[0],Ft=Nt[1];O[Ot]=Ft}else O.sprite=k;if(On(S)==="object"){var _t=xn(Object.entries(S)[0],2),ee=_t[0],ke=_t[1];O[ee]=ke}else O.tags=S;if(On(N)==="object"){var ue=xn(Object.entries(N)[0],2),ve=ue[0],Rt=ue[1];O[ve]=Rt}else O.link=N;O.wrap=pr()}},updateElStyle:function(i,n,l,d,g,T,k,S,N,O,q){var V=si.find(function($e){return $e.alias===n});if(V!==void 0||(V=Hr.find(function($e){return $e.alias===n}))!==void 0){if(l!=null)if(On(l)==="object"){var et=xn(Object.entries(l)[0],2),Q=et[0],Tt=et[1];V[Q]=Tt}else V.bgColor=l;if(d!=null)if(On(d)==="object"){var St=xn(Object.entries(d)[0],2),Lt=St[0],Nt=St[1];V[Lt]=Nt}else V.fontColor=d;if(g!=null)if(On(g)==="object"){var Ot=xn(Object.entries(g)[0],2),Ft=Ot[0],_t=Ot[1];V[Ft]=_t}else V.borderColor=g;if(T!=null)if(On(T)==="object"){var ee=xn(Object.entries(T)[0],2),ke=ee[0],ue=ee[1];V[ke]=ue}else V.shadowing=T;if(k!=null)if(On(k)==="object"){var ve=xn(Object.entries(k)[0],2),Rt=ve[0],le=ve[1];V[Rt]=le}else V.shape=k;if(S!=null)if(On(S)==="object"){var Wt=xn(Object.entries(S)[0],2),ie=Wt[0],ce=Wt[1];V[ie]=ce}else V.sprite=S;if(N!=null)if(On(N)==="object"){var oe=xn(Object.entries(N)[0],2),Ne=oe[0],Ce=oe[1];V[Ne]=Ce}else V.techn=N;if(O!=null)if(On(O)==="object"){var je=xn(Object.entries(O)[0],2),_n=je[0],Re=je[1];V[_n]=Re}else V.legendText=O;if(q!=null)if(On(q)==="object"){var tn=xn(Object.entries(q)[0],2),yn=tn[0],Ue=tn[1];V[yn]=Ue}else V.legendSprite=q}},updateRelStyle:function(i,n,l,d,g,T,k){var S=Gr.find(function(_t){return _t.from===n&&_t.to===l});if(S!==void 0){if(d!=null)if(On(d)==="object"){var N=xn(Object.entries(d)[0],2),O=N[0],q=N[1];S[O]=q}else S.textColor=d;if(g!=null)if(On(g)==="object"){var V=xn(Object.entries(g)[0],2),et=V[0],Q=V[1];S[et]=Q}else S.lineColor=g;if(T!=null)if(On(T)==="object"){var Tt=xn(Object.entries(T)[0],2),St=Tt[0],Lt=Tt[1];S[St]=parseInt(Lt)}else S.offsetX=parseInt(T);if(k!=null)if(On(k)==="object"){var Nt=xn(Object.entries(k)[0],2),Ot=Nt[0],Ft=Nt[1];S[Ot]=parseInt(Ft)}else S.offsetY=parseInt(k)}},updateLayoutConfig:function(i,n,l){var d=Xr,g=wa;if(On(n)==="object"){var T=xn(Object.entries(n)[0],2),k=(T[0],T[1]);d=parseInt(k)}else d=parseInt(n);if(On(l)==="object"){var S=xn(Object.entries(l)[0],2),N=(S[0],S[1]);g=parseInt(N)}else g=parseInt(l);d>=1&&(Xr=d),g>=1&&(wa=g)},autoWrap:pr,setWrap:function(i){Ti=i},getC4ShapeArray:Ba,getC4Shape:function(i){return si.find(function(n){return n.alias===i})},getC4ShapeKeys:function(i){return Object.keys(Ba(i))},getBoundarys:function(i){return i==null?Hr:Hr.filter(function(n){return n.parentBoundary===i})},getCurrentBoundaryParse:function(){return lr},getParentBoundaryParse:function(){return Kr},getRels:function(){return Gr},getTitle:function(){return ni},getC4Type:function(){return bi},getC4ShapeInRow:function(){return Xr},getC4BoundaryInRow:function(){return wa},setAccTitle:xr,getAccTitle:Or,getAccDescription:li,setAccDescription:Vr,parseDirective:function(i,n,l){Bn.parseDirective(this,i,n,l)},getConfig:function(){return Dt().c4},clear:function(){si=[],Hr=[{alias:"global",label:{text:"global"},type:{text:"global"},tags:null,link:null,parentBoundary:""}],Kr="",lr="global",Oi=[""],Gr=[],Oi=[""],ni="",Ti=!1,Xr=4,wa=2},LINETYPE:{SOLID:0,DOTTED:1,NOTE:2,SOLID_CROSS:3,DOTTED_CROSS:4,SOLID_OPEN:5,DOTTED_OPEN:6,LOOP_START:10,LOOP_END:11,ALT_START:12,ALT_ELSE:13,ALT_END:14,OPT_START:15,OPT_END:16,ACTIVE_START:17,ACTIVE_END:18,PAR_START:19,PAR_AND:20,PAR_END:21,RECT_START:22,RECT_END:23,SOLID_POINT:24,DOTTED_POINT:25},ARROWTYPE:{FILLED:0,OPEN:1},PLACEMENT:{LEFTOF:0,RIGHTOF:1,OVER:2},setTitle:function(i){var n=cr(i,Dt());ni=n},setC4Type:function(i){var n=cr(i,Dt());bi=n}};var ti=p(7967);function No(i,n){(n==null||n>i.length)&&(n=i.length);for(var l=0,d=new Array(n);l<n;l++)d[l]=i[l];return d}var Xa=function(i,n){var l=i.append("rect");if(l.attr("x",n.x),l.attr("y",n.y),l.attr("fill",n.fill),l.attr("stroke",n.stroke),l.attr("width",n.width),l.attr("height",n.height),l.attr("rx",n.rx),l.attr("ry",n.ry),n.attrs!=="undefined"&&n.attrs!==null)for(var d in n.attrs)l.attr(d,n.attrs[d]);return n.class!=="undefined"&&l.attr("class",n.class),l},ia=function(){function i(g,T,k,S,N,O,q){d(T.append("text").attr("x",k+N/2).attr("y",S+O/2+5).style("text-anchor","middle").text(g),q)}function n(g,T,k,S,N,O,q,V){for(var et=V.fontSize,Q=V.fontFamily,Tt=V.fontWeight,St=g.split(an.lineBreakRegex),Lt=0;Lt<St.length;Lt++){var Nt=Lt*et-et*(St.length-1)/2,Ot=T.append("text").attr("x",k+N/2).attr("y",S).style("text-anchor","middle").attr("dominant-baseline","middle").style("font-size",et).style("font-weight",Tt).style("font-family",Q);Ot.append("tspan").attr("dy",Nt).text(St[Lt]).attr("alignment-baseline","mathematical"),d(Ot,q)}}function l(g,T,k,S,N,O,q,V){var et=T.append("switch"),Q=et.append("foreignObject").attr("x",k).attr("y",S).attr("width",N).attr("height",O).append("xhtml:div").style("display","table").style("height","100%").style("width","100%");Q.append("div").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(g),n(g,et,k,S,N,0,q,V),d(Q,q)}function d(g,T){for(var k in T)T.hasOwnProperty(k)&&g.attr(k,T[k])}return function(g){return g.textPlacement==="fo"?l:g.textPlacement==="old"?i:n}}();const ic=function(i,n,l){var d=n.bgColor?n.bgColor:l[n.typeC4Shape.text+"_bg_color"],g=n.borderColor?n.borderColor:l[n.typeC4Shape.text+"_border_color"],T=n.fontColor?n.fontColor:"#FFFFFF",k="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAIAAADYYG7QAAACD0lEQVR4Xu2YoU4EMRCGT+4j8Ai8AhaH4QHgAUjQuFMECUgMIUgwJAgMhgQsAYUiJCiQIBBY+EITsjfTdme6V24v4c8vyGbb+ZjOtN0bNcvjQXmkH83WvYBWto6PLm6v7p7uH1/w2fXD+PBycX1Pv2l3IdDm/vn7x+dXQiAubRzoURa7gRZWd0iGRIiJbOnhnfYBQZNJjNbuyY2eJG8fkDE3bbG4ep6MHUAsgYxmE3nVs6VsBWJSGccsOlFPmLIViMzLOB7pCVO2AtHJMohH7Fh6zqitQK7m0rJvAVYgGcEpe//PLdDz65sM4pF9N7ICcXDKIB5Nv6j7tD0NoSdM2QrU9Gg0ewE1LqBhHR3BBdvj2vapnidjHxD/q6vd7Pvhr31AwcY8eXMTXAKECZZJFXuEq27aLgQK5uLMohCenGGuGewOxSjBvYBqeG6B+Nqiblggdjnc+ZXDy+FNFpFzw76O3UBAROuXh6FoiAcf5g9eTvUgzy0nWg6I8cXHRUpg5bOVBCo+KDpFajOf23GgPme7RSQ+lacIENUgJ6gg1k6HjgOlqnLqip4tEuhv0hNEMXUD0clyXE3p6pZA0S2nnvTlXwLJEZWlb7cTQH1+USgTN4VhAenm/wea1OCAOmqo6fE1WCb9WSKBah+rbUWPWAmE2Rvk0ApiB45eOyNAzU8xcTvj8KvkKEoOaIYeHNA3ZuygAvFMUO0AAAAASUVORK5CYII=";switch(n.typeC4Shape.text){case"person":k="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAIAAADYYG7QAAACD0lEQVR4Xu2YoU4EMRCGT+4j8Ai8AhaH4QHgAUjQuFMECUgMIUgwJAgMhgQsAYUiJCiQIBBY+EITsjfTdme6V24v4c8vyGbb+ZjOtN0bNcvjQXmkH83WvYBWto6PLm6v7p7uH1/w2fXD+PBycX1Pv2l3IdDm/vn7x+dXQiAubRzoURa7gRZWd0iGRIiJbOnhnfYBQZNJjNbuyY2eJG8fkDE3bbG4ep6MHUAsgYxmE3nVs6VsBWJSGccsOlFPmLIViMzLOB7pCVO2AtHJMohH7Fh6zqitQK7m0rJvAVYgGcEpe//PLdDz65sM4pF9N7ICcXDKIB5Nv6j7tD0NoSdM2QrU9Gg0ewE1LqBhHR3BBdvj2vapnidjHxD/q6vd7Pvhr31AwcY8eXMTXAKECZZJFXuEq27aLgQK5uLMohCenGGuGewOxSjBvYBqeG6B+Nqiblggdjnc+ZXDy+FNFpFzw76O3UBAROuXh6FoiAcf5g9eTvUgzy0nWg6I8cXHRUpg5bOVBCo+KDpFajOf23GgPme7RSQ+lacIENUgJ6gg1k6HjgOlqnLqip4tEuhv0hNEMXUD0clyXE3p6pZA0S2nnvTlXwLJEZWlb7cTQH1+USgTN4VhAenm/wea1OCAOmqo6fE1WCb9WSKBah+rbUWPWAmE2Rvk0ApiB45eOyNAzU8xcTvj8KvkKEoOaIYeHNA3ZuygAvFMUO0AAAAASUVORK5CYII=";break;case"external_person":k="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAIAAADYYG7QAAAB6ElEQVR4Xu2YLY+EMBCG9+dWr0aj0Wg0Go1Go0+j8Xdv2uTCvv1gpt0ebHKPuhDaeW4605Z9mJvx4AdXUyTUdd08z+u6flmWZRnHsWkafk9DptAwDPu+f0eAYtu2PEaGWuj5fCIZrBAC2eLBAnRCsEkkxmeaJp7iDJ2QMDdHsLg8SxKFEJaAo8lAXnmuOFIhTMpxxKATebo4UiFknuNo4OniSIXQyRxEA3YsnjGCVEjVXD7yLUAqxBGUyPv/Y4W2beMgGuS7kVQIBycH0fD+oi5pezQETxdHKmQKGk1eQEYldK+jw5GxPfZ9z7Mk0Qnhf1W1m3w//EUn5BDmSZsbR44QQLBEqrBHqOrmSKaQAxdnLArCrxZcM7A7ZKs4ioRq8LFC+NpC3WCBJsvpVw5edm9iEXFuyNfxXAgSwfrFQ1c0iNda8AdejvUgnktOtJQQxmcfFzGglc5WVCj7oDgFqU18boeFSs52CUh8LE8BIVQDT1ABrB0HtgSEYlX5doJnCwv9TXocKCaKbnwhdDKPq4lf3SwU3HLq4V/+WYhHVMa/3b4IlfyikAduCkcBc7mQ3/z/Qq/cTuikhkzB12Ae/mcJC9U+Vo8Ej1gWAtgbeGgFsAMHr50BIWOLCbezvhpBFUdY6EJuJ/QDW0XoMX60zZ0AAAAASUVORK5CYII="}var S=i.append("g");S.attr("class","person-man");var N={x:0,y:0,fill:"#EDF2AE",stroke:"#666",width:100,anchor:"start",height:100,rx:0,ry:0};switch(n.typeC4Shape.text){case"person":case"external_person":case"system":case"external_system":case"container":case"external_container":case"component":case"external_component":N.x=n.x,N.y=n.y,N.fill=d,N.width=n.width,N.height=n.height,N.style="stroke:"+g+";stroke-width:0.5;",N.rx=2.5,N.ry=2.5,Xa(S,N);break;case"system_db":case"external_system_db":case"container_db":case"external_container_db":case"component_db":case"external_component_db":S.append("path").attr("fill",d).attr("stroke-width","0.5").attr("stroke",g).attr("d","Mstartx,startyc0,-10 half,-10 half,-10c0,0 half,0 half,10l0,heightc0,10 -half,10 -half,10c0,0 -half,0 -half,-10l0,-height".replaceAll("startx",n.x).replaceAll("starty",n.y).replaceAll("half",n.width/2).replaceAll("height",n.height)),S.append("path").attr("fill","none").attr("stroke-width","0.5").attr("stroke",g).attr("d","Mstartx,startyc0,10 half,10 half,10c0,0 half,0 half,-10".replaceAll("startx",n.x).replaceAll("starty",n.y).replaceAll("half",n.width/2));break;case"system_queue":case"external_system_queue":case"container_queue":case"external_container_queue":case"component_queue":case"external_component_queue":S.append("path").attr("fill",d).attr("stroke-width","0.5").attr("stroke",g).attr("d","Mstartx,startylwidth,0c5,0 5,half 5,halfc0,0 0,half -5,halfl-width,0c-5,0 -5,-half -5,-halfc0,0 0,-half 5,-half".replaceAll("startx",n.x).replaceAll("starty",n.y).replaceAll("width",n.width).replaceAll("half",n.height/2)),S.append("path").attr("fill","none").attr("stroke-width","0.5").attr("stroke",g).attr("d","Mstartx,startyc-5,0 -5,half -5,halfc0,half 5,half 5,half".replaceAll("startx",n.x+n.width).replaceAll("starty",n.y).replaceAll("half",n.height/2))}var O,q,V=(O=l,q=n.typeC4Shape.text,{fontFamily:O[q+"FontFamily"],fontSize:O[q+"FontSize"],fontWeight:O[q+"FontWeight"]});switch(S.append("text").attr("fill",T).attr("font-family",V.fontFamily).attr("font-size",V.fontSize-2).attr("font-style","italic").attr("lengthAdjust","spacing").attr("textLength",n.typeC4Shape.width).attr("x",n.x+n.width/2-n.typeC4Shape.width/2).attr("y",n.y+n.typeC4Shape.Y).text("<<"+n.typeC4Shape.text+">>"),n.typeC4Shape.text){case"person":case"external_person":(function(Q,Tt,St,Lt,Nt,Ot){var Ft=Q.append("image");Ft.attr("width",Tt),Ft.attr("height",St),Ft.attr("x",Lt),Ft.attr("y",Nt);var _t=Ot.startsWith("data:image/png;base64")?Ot:(0,ti.N)(Ot);Ft.attr("xlink:href",_t)})(S,48,48,n.x+n.width/2-24,n.y+n.image.Y,k)}var et=l[n.typeC4Shape.text+"Font"]();return et.fontWeight="bold",et.fontSize=et.fontSize+2,et.fontColor=T,ia(l)(n.label.text,S,n.x,n.y+n.label.Y,n.width,n.height,{fill:T},et),(et=l[n.typeC4Shape.text+"Font"]()).fontColor=T,n.thchn&&n.thchn.text!==""?ia(l)(n.thchn.text,S,n.x,n.y+n.thchn.Y,n.width,n.height,{fill:T,"font-style":"italic"},et):n.type&&n.type.text!==""&&ia(l)(n.type.text,S,n.x,n.y+n.type.Y,n.width,n.height,{fill:T,"font-style":"italic"},et),n.descr&&n.descr.text!==""&&((et=l.personFont()).fontColor=T,ia(l)(n.descr.text,S,n.x,n.y+n.descr.Y,n.width,n.height,{fill:T},et)),n.height},Ht=function(i,n,l){var d,g=i.append("g"),T=0,k=function(St,Lt){var Nt=typeof Symbol<"u"&&St[Symbol.iterator]||St["@@iterator"];if(!Nt){if(Array.isArray(St)||(Nt=function(ue,ve){if(ue){if(typeof ue=="string")return No(ue,ve);var Rt=Object.prototype.toString.call(ue).slice(8,-1);return Rt==="Object"&&ue.constructor&&(Rt=ue.constructor.name),Rt==="Map"||Rt==="Set"?Array.from(ue):Rt==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Rt)?No(ue,ve):void 0}}(St))||Lt&&St&&typeof St.length=="number"){Nt&&(St=Nt);var Ot=0,Ft=function(){};return{s:Ft,n:function(){return Ot>=St.length?{done:!0}:{done:!1,value:St[Ot++]}},e:function(ue){throw ue},f:Ft}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var _t,ee=!0,ke=!1;return{s:function(){Nt=Nt.call(St)},n:function(){var ue=Nt.next();return ee=ue.done,ue},e:function(ue){ke=!0,_t=ue},f:function(){try{ee||Nt.return==null||Nt.return()}finally{if(ke)throw _t}}}}(n);try{for(k.s();!(d=k.n()).done;){var S=d.value,N=S.textColor?S.textColor:"#444444",O=S.lineColor?S.lineColor:"#444444",q=S.offsetX?parseInt(S.offsetX):0,V=S.offsetY?parseInt(S.offsetY):0;if(T===0){var et=g.append("line");et.attr("x1",S.startPoint.x),et.attr("y1",S.startPoint.y),et.attr("x2",S.endPoint.x),et.attr("y2",S.endPoint.y),et.attr("stroke-width","1"),et.attr("stroke",O),et.style("fill","none"),S.type!=="rel_b"&&et.attr("marker-end","url(#arrowhead)"),S.type!=="birel"&&S.type!=="rel_b"||et.attr("marker-start","url(#arrowend)"),T=-1}else{var Q=g.append("path");Q.attr("fill","none").attr("stroke-width","1").attr("stroke",O).attr("d","Mstartx,starty Qcontrolx,controly stopx,stopy ".replaceAll("startx",S.startPoint.x).replaceAll("starty",S.startPoint.y).replaceAll("controlx",S.startPoint.x+(S.endPoint.x-S.startPoint.x)/2-(S.endPoint.x-S.startPoint.x)/4).replaceAll("controly",S.startPoint.y+(S.endPoint.y-S.startPoint.y)/2).replaceAll("stopx",S.endPoint.x).replaceAll("stopy",S.endPoint.y)),S.type!=="rel_b"&&Q.attr("marker-end","url(#arrowhead)"),S.type!=="birel"&&S.type!=="rel_b"||Q.attr("marker-start","url(#arrowend)")}var Tt=l.messageFont();ia(l)(S.label.text,g,Math.min(S.startPoint.x,S.endPoint.x)+Math.abs(S.endPoint.x-S.startPoint.x)/2+q,Math.min(S.startPoint.y,S.endPoint.y)+Math.abs(S.endPoint.y-S.startPoint.y)/2+V,S.label.width,S.label.height,{fill:N},Tt),S.techn&&S.techn.text!==""&&(Tt=l.messageFont(),ia(l)("["+S.techn.text+"]",g,Math.min(S.startPoint.x,S.endPoint.x)+Math.abs(S.endPoint.x-S.startPoint.x)/2+q,Math.min(S.startPoint.y,S.endPoint.y)+Math.abs(S.endPoint.y-S.startPoint.y)/2+l.messageFontSize+5+V,Math.max(S.label.width,S.techn.width),S.techn.height,{fill:N,"font-style":"italic"},Tt))}}catch(St){k.e(St)}finally{k.f()}};ti.N;var Ve=p(2536),pn=p.n(Ve),ar=/[%]{2}[{]\s*(?:(?:(\w+)\s*:|(\w+))\s*(?:(?:(\w+))|((?:(?![}][%]{2}).|\r?\n)*))?\s*)(?:[}][%]{2})?/gi,ci=/\s*%%.*\n/gm,Er={};const ui=function(i,n){if((i=i.replace(ar,"").replace(ci,`
`)).match(/^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/))return"c4";if(i==="error")return"error";if(i.match(/^\s*sequenceDiagram/))return"sequence";if(i.match(/^\s*gantt/))return"gantt";if(i.match(/^\s*classDiagram-v2/))return"classDiagram";if(i.match(/^\s*classDiagram/))return n&&n.class&&n.class.defaultRenderer==="dagre-wrapper"?"classDiagram":"class";if(i.match(/^\s*stateDiagram-v2/))return"stateDiagram";if(i.match(/^\s*stateDiagram/))return n&&n.class&&n.state.defaultRenderer==="dagre-wrapper"?"stateDiagram":"state";if(i.match(/^\s*flowchart/))return"flowchart-v2";if(i.match(/^\s*info/))return"info";if(i.match(/^\s*pie/))return"pie";if(i.match(/^\s*erDiagram/))return"er";if(i.match(/^\s*journey/))return"journey";if(i.match(/^\s*requirement/)||i.match(/^\s*requirementDiagram/))return"requirement";if(n&&n.flowchart&&n.flowchart.defaultRenderer==="dagre-wrapper")return"flowchart-v2";for(var l=Object.keys(Er),d=0;d<l.length;d++){var g=l[d],T=Er[g];if(T&&T.detector(i))return g}return"flowchart"};var La=void 0;function hi(i){return hi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},hi(i)}function Ei(i,n){for(var l=0;l<n.length;l++){var d=n[l];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(i,d.key,d)}}function Oo(i,n){var l=typeof Symbol<"u"&&i[Symbol.iterator]||i["@@iterator"];if(!l){if(Array.isArray(i)||(l=Ia(i))||n&&i&&typeof i.length=="number"){l&&(i=l);var d=0,g=function(){};return{s:g,n:function(){return d>=i.length?{done:!0}:{done:!1,value:i[d++]}},e:function(N){throw N},f:g}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var T,k=!0,S=!1;return{s:function(){l=l.call(i)},n:function(){var N=l.next();return k=N.done,N},e:function(N){S=!0,T=N},f:function(){try{k||l.return==null||l.return()}finally{if(S)throw T}}}}function ac(i){return function(n){if(Array.isArray(n))return oc(n)}(i)||function(n){if(typeof Symbol<"u"&&n[Symbol.iterator]!=null||n["@@iterator"]!=null)return Array.from(n)}(i)||Ia(i)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function Ia(i,n){if(i){if(typeof i=="string")return oc(i,n);var l=Object.prototype.toString.call(i).slice(8,-1);return l==="Object"&&i.constructor&&(l=i.constructor.name),l==="Map"||l==="Set"?Array.from(i):l==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(l)?oc(i,n):void 0}}function oc(i,n){(n==null||n>i.length)&&(n=i.length);for(var l=0,d=new Array(n);l<n;l++)d[l]=i[l];return d}var ys,nu={curveBasis:w.curveBasis,curveBasisClosed:w.curveBasisClosed,curveBasisOpen:w.curveBasisOpen,curveLinear:w.curveLinear,curveLinearClosed:w.curveLinearClosed,curveMonotoneX:w.curveMonotoneX,curveMonotoneY:w.curveMonotoneY,curveNatural:w.curveNatural,curveStep:w.curveStep,curveStepAfter:w.curveStepAfter,curveStepBefore:w.curveStepBefore},on=/[%]{2}[{]\s*(?:(?:(\w+)\s*:|(\w+))\s*(?:(?:(\w+))|((?:(?![}][%]{2}).|\r?\n)*))?\s*)(?:[}][%]{2})?/gi,Gc=/\s*(?:(?:(\w+)(?=:):|(\w+))\s*(?:(?:(\w+))|((?:(?![}][%]{2}).|\r?\n)*))?\s*)(?:[}][%]{2})?/gi,Mr=function(i){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;try{var l=new RegExp("[%]{2}(?![{]".concat(Gc.source,`)(?=[}][%]{2}).*
`),"ig");i=i.trim().replace(l,"").replace(/'/gm,'"'),y.debug("Detecting diagram directive".concat(n!==null?" type:"+n:""," based on the text:").concat(i));for(var d,g=[];(d=on.exec(i))!==null;)if(d.index===on.lastIndex&&on.lastIndex++,d&&!n||n&&d[1]&&d[1].match(n)||n&&d[2]&&d[2].match(n)){var T=d[1]?d[1]:d[2],k=d[3]?d[3].trim():d[4]?JSON.parse(d[4].trim()):null;g.push({type:T,args:k})}return g.length===0&&g.push({type:i,args:null}),g.length===1?g[0]:g}catch(S){return y.error("ERROR: ".concat(S.message,` - Unable to parse directive
`).concat(n!==null?" type:"+n:""," based on the text:").concat(i)),{type:null,args:null}}},ho=function(i,n){var l={};return function(){for(var d=arguments.length,g=new Array(d),T=0;T<d;T++)g[T]=arguments[T];var k=n?n.apply(La,g):g[0];if(k in l)return l[k];var S=i.apply(void 0,g);return l[k]=S,S}},da=function(i,n){if(!i)return n;var l="curve".concat(i.charAt(0).toUpperCase()+i.slice(1));return nu[l]||n},Za=function(i,n){return i&&n?Math.sqrt(Math.pow(n.x-i.x,2)+Math.pow(n.y-i.y,2)):0},Si=function(i){for(var n="",l="",d=0;d<i.length;d++)i[d]!==void 0&&(i[d].startsWith("color:")||i[d].startsWith("text-align:")?l=l+i[d]+";":n=n+i[d]+";");return{style:n,labelStyle:l}},Bo=0,sc=function(){return Bo++,"id-"+Math.random().toString(36).substr(2,12)+"-"+Bo},cc=function(i){return function(n){for(var l="",d="0123456789abcdef",g=d.length,T=0;T<n;T++)l+=d.charAt(Math.floor(Math.random()*g));return l}(i.length)},lc=function(i,n){var l=n.text.replace(an.lineBreakRegex," "),d=i.append("text");d.attr("x",n.x),d.attr("y",n.y),d.style("text-anchor",n.anchor),d.style("font-family",n.fontFamily),d.style("font-size",n.fontSize),d.style("font-weight",n.fontWeight),d.attr("fill",n.fill),n.class!==void 0&&d.attr("class",n.class);var g=d.append("tspan");return g.attr("x",n.x+2*n.textMargin),g.attr("fill",n.fill),g.text(l),d},Ta=ho(function(i,n,l){if(!i||(l=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",joinWith:"<br/>"},l),an.lineBreakRegex.test(i)))return i;var d=i.split(" "),g=[],T="";return d.forEach(function(k,S){var N=Ea("".concat(k," "),l),O=Ea(T,l);if(N>n){var q=ru(k,n,"-",l),V=q.hyphenatedStrings,et=q.remainingWord;g.push.apply(g,[T].concat(ac(V))),T=et}else O+N>=n?(g.push(T),T=k):T=[T,k].filter(Boolean).join(" ");S+1===d.length&&g.push(T)}),g.filter(function(k){return k!==""}).join(l.joinWith)},function(i,n,l){return"".concat(i,"-").concat(n,"-").concat(l.fontSize,"-").concat(l.fontWeight,"-").concat(l.fontFamily,"-").concat(l.joinWith)}),ru=ho(function(i,n){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"-",d=arguments.length>3?arguments[3]:void 0;d=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:0},d);var g=i.split(""),T=[],k="";return g.forEach(function(S,N){var O="".concat(k).concat(S);if(Ea(O,d)>=n){var q=N+1,V=g.length===q,et="".concat(O).concat(l);T.push(V?O:et),k=""}else k=O}),{hyphenatedStrings:T,remainingWord:k}},function(i,n){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"-",d=arguments.length>3?arguments[3]:void 0;return"".concat(i,"-").concat(n,"-").concat(l,"-").concat(d.fontSize,"-").concat(d.fontWeight,"-").concat(d.fontFamily)}),uc=function(i,n){return n=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:15},n),ms(i,n).height},Ea=function(i,n){return n=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial"},n),ms(i,n).width},ms=ho(function(i,n){var l=n=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial"},n),d=l.fontSize,g=l.fontFamily,T=l.fontWeight;if(!i)return{width:0,height:0};var k=["sans-serif",g],S=i.split(an.lineBreakRegex),N=[],O=(0,w.select)("body");if(!O.remove)return{width:0,height:0,lineHeight:0};for(var q=O.append("svg"),V=0,et=k;V<et.length;V++){var Q,Tt=et[V],St=0,Lt={width:0,height:0,lineHeight:0},Nt=Oo(S);try{for(Nt.s();!(Q=Nt.n()).done;){var Ot=Q.value,Ft={x:0,y:0,fill:void 0,anchor:"start",style:"#666",width:100,height:100,textMargin:0,rx:0,ry:0,valign:void 0};Ft.text=Ot;var _t=lc(q,Ft).style("font-size",d).style("font-weight",T).style("font-family",Tt),ee=(_t._groups||_t)[0][0].getBBox();Lt.width=Math.round(Math.max(Lt.width,ee.width)),St=Math.round(ee.height),Lt.height+=St,Lt.lineHeight=Math.round(Math.max(Lt.lineHeight,St))}}catch(ke){Nt.e(ke)}finally{Nt.f()}N.push(Lt)}return q.remove(),N[isNaN(N[1].height)||isNaN(N[1].width)||isNaN(N[1].lineHeight)||N[0].height>N[1].height&&N[0].width>N[1].width&&N[0].lineHeight>N[1].lineHeight?0:1]},function(i,n){return"".concat(i,"-").concat(n.fontSize,"-").concat(n.fontWeight,"-").concat(n.fontFamily)}),Xc=function(i,n,l){var d=new Map;return l?(d.set("width","100%"),d.set("style","max-width: ".concat(n,"px;"))):d.set("width",n),d},Gi=function(i,n,l,d){(function(g,T){var k,S=Oo(T);try{for(S.s();!(k=S.n()).done;){var N=k.value;g.attr(N[0],N[1])}}catch(O){S.e(O)}finally{S.f()}})(i,Xc(0,1*l,d))},Lo=function(i,n,l,d){var g=n.node().getBBox(),T=g.width,k=g.height;y.info("SVG bounds: ".concat(T,"x").concat(k),g);var S=i._label.width,N=i._label.height;y.info("Graph bounds: ".concat(S,"x").concat(N),i),S=T+2*l,N=k+2*l,y.info("Calculated bounds: ".concat(S,"x").concat(N)),Gi(n,0,S,d);var O="".concat(g.x-l," ").concat(g.y-l," ").concat(g.width+2*l," ").concat(g.height+2*l);y.info("Graph.label",i._label,"swidth",T,"sheight",k,"width",S,"height",N,"vBox",O),n.attr("viewBox",O)},fi=function i(n){if(y.debug("directiveSanitizer called with",n),hi(n)==="object"&&(n.length?n.forEach(function(k){return i(k)}):Object.keys(n).forEach(function(k){y.debug("Checking key",k),k.indexOf("__")===0&&(y.debug("sanitize deleting __ option",k),delete n[k]),k.indexOf("proto")>=0&&(y.debug("sanitize deleting proto option",k),delete n[k]),k.indexOf("constr")>=0&&(y.debug("sanitize deleting constr option",k),delete n[k]),k.indexOf("themeCSS")>=0&&(y.debug("sanitizing themeCss option"),n[k]=Qo(n[k])),k.indexOf("fontFamily")>=0&&(y.debug("sanitizing fontFamily option"),n[k]=Qo(n[k])),k.indexOf("altFontFamily")>=0&&(y.debug("sanitizing altFontFamily option"),n[k]=Qo(n[k])),fa.indexOf(k)<0?(y.debug("sanitize deleting option",k),delete n[k]):hi(n[k])==="object"&&(y.debug("sanitize deleting object",k),i(n[k]))})),n.themeVariables)for(var l=Object.keys(n.themeVariables),d=0;d<l.length;d++){var g=l[d],T=n.themeVariables[g];T&&T.match&&!T.match(/^[a-zA-Z0-9#,";()%. ]+$/)&&(n.themeVariables[g]="")}y.debug("After sanitization",n)},Qo=function(i){for(var n=0,l=0,d=0;d<i.length;d++){if(n<l)return"{ /* ERROR: Unbalanced CSS */ }";i[d]==="{"?n++:i[d]==="}"&&l++}return n!==l?"{ /* ERROR: Unbalanced CSS */ }":i};const qn={assignWithDepth:te,wrapLabel:Ta,calculateTextHeight:uc,calculateTextWidth:Ea,calculateTextDimensions:ms,calculateSvgSizeAttrs:Xc,configureSvgSize:Gi,setupGraphViewbox:Lo,detectInit:function(i,n){var l=Mr(i,/(?:init\b)|(?:initialize\b)/),d={};if(Array.isArray(l)){var g=l.map(function(k){return k.args});fi(g),d=te(d,ac(g))}else d=l.args;if(d){var T=ui(i,n);["config"].forEach(function(k){d[k]!==void 0&&(T==="flowchart-v2"&&(T="flowchart"),d[T]=d[k],delete d[k])})}return d},detectDirective:Mr,isSubstringInArray:function(i,n){for(var l=0;l<n.length;l++)if(n[l].match(i))return l;return-1},interpolateToCurve:da,calcLabelPosition:function(i){return i.length===1?i[0]:function(n){var l,d=0;n.forEach(function(k){d+=Za(k,l),l=k});var g=d/2,T=void 0;return l=void 0,n.forEach(function(k){if(l&&!T){var S=Za(k,l);if(S<g)g-=S;else{var N=g/S;N<=0&&(T=l),N>=1&&(T={x:k.x,y:k.y}),N>0&&N<1&&(T={x:(1-N)*l.x+N*k.x,y:(1-N)*l.y+N*k.y})}}l=k}),T}(i)},calcCardinalityPosition:function(i,n,l){var d;y.info("our points",n),n[0]!==l&&(n=n.reverse()),n.forEach(function(O){Za(O,d),d=O});var g,T=25;d=void 0,n.forEach(function(O){if(d&&!g){var q=Za(O,d);if(q<T)T-=q;else{var V=T/q;V<=0&&(g=d),V>=1&&(g={x:O.x,y:O.y}),V>0&&V<1&&(g={x:(1-V)*d.x+V*O.x,y:(1-V)*d.y+V*O.y})}}d=O});var k=i?10:5,S=Math.atan2(n[0].y-g.y,n[0].x-g.x),N={x:0,y:0};return N.x=Math.sin(S)*k+(n[0].x+g.x)/2,N.y=-Math.cos(S)*k+(n[0].y+g.y)/2,N},calcTerminalLabelPosition:function(i,n,l){var d,g=JSON.parse(JSON.stringify(l));y.info("our points",g),n!=="start_left"&&n!=="start_right"&&(g=g.reverse()),g.forEach(function(q){Za(q,d),d=q});var T,k=25+i;d=void 0,g.forEach(function(q){if(d&&!T){var V=Za(q,d);if(V<k)k-=V;else{var et=k/V;et<=0&&(T=d),et>=1&&(T={x:q.x,y:q.y}),et>0&&et<1&&(T={x:(1-et)*d.x+et*q.x,y:(1-et)*d.y+et*q.y})}}d=q});var S=10+.5*i,N=Math.atan2(g[0].y-T.y,g[0].x-T.x),O={x:0,y:0};return O.x=Math.sin(N)*S+(g[0].x+T.x)/2,O.y=-Math.cos(N)*S+(g[0].y+T.y)/2,n==="start_left"&&(O.x=Math.sin(N+Math.PI)*S+(g[0].x+T.x)/2,O.y=-Math.cos(N+Math.PI)*S+(g[0].y+T.y)/2),n==="end_right"&&(O.x=Math.sin(N-Math.PI)*S+(g[0].x+T.x)/2-5,O.y=-Math.cos(N-Math.PI)*S+(g[0].y+T.y)/2-5),n==="end_left"&&(O.x=Math.sin(N)*S+(g[0].x+T.x)/2-5,O.y=-Math.cos(N)*S+(g[0].y+T.y)/2-5),O},formatUrl:function(i,n){var l=i.trim();if(l)return n.securityLevel!=="loose"?(0,ti.N)(l):l},getStylesFromArray:Si,generateId:sc,random:cc,memoize:ho,runFunc:function(i){for(var n,l=i.split("."),d=l.length-1,g=l[d],T=window,k=0;k<d;k++)if(!(T=T[l[k]]))return;for(var S=arguments.length,N=new Array(S>1?S-1:0),O=1;O<S;O++)N[O-1]=arguments[O];(n=T)[g].apply(n,N)},entityDecode:function(i){return ys=ys||document.createElement("div"),i=escape(i).replace(/%26/g,"&").replace(/%23/g,"#").replace(/%3B/g,";"),ys.innerHTML=i,unescape(ys.textContent)},initIdGenerator:function(){function i(d,g){(function(T,k){if(!(T instanceof k))throw new TypeError("Cannot call a class as a function")})(this,i),this.deterministic=d,this.seed=g,this.count=g?g.length:0}var n,l;return n=i,(l=[{key:"next",value:function(){return this.deterministic?this.count++:Date.now()}}])&&Ei(n.prototype,l),Object.defineProperty(n,"prototype",{writable:!1}),i}(),directiveSanitizer:fi,sanitizeCss:Qo};function kr(i,n,l){if(n.insert!==void 0){var d=i.getAccTitle(),g=i.getAccDescription();n.attr("role","img").attr("aria-labelledby","chart-title-"+l+" chart-desc-"+l),n.insert("desc",":first-child").attr("id","chart-desc-"+l).text(g),n.insert("title",":first-child").attr("id","chart-title-"+l).text(d)}}function Zc(i,n){(n==null||n>i.length)&&(n=i.length);for(var l=0,d=new Array(n);l<n;l++)d[l]=i[l];return d}function Io(i,n){if(!(i instanceof n))throw new TypeError("Cannot call a class as a function")}function bs(i,n){for(var l=0;l<n.length;l++){var d=n[l];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(i,d.key,d)}}function fo(i,n,l){return n&&bs(i.prototype,n),l&&bs(i,l),Object.defineProperty(i,"prototype",{writable:!1}),i}var po=0,go=0,ji=4,Ci=2;Ve.parser.yy=Jr;var kn={},Xi=function(){function i(n){Io(this,i),this.name="",this.data={},this.data.startx=void 0,this.data.stopx=void 0,this.data.starty=void 0,this.data.stopy=void 0,this.data.widthLimit=void 0,this.nextData={},this.nextData.startx=void 0,this.nextData.stopx=void 0,this.nextData.starty=void 0,this.nextData.stopy=void 0,this.nextData.cnt=0,pa(n.db.getConfig())}return fo(i,[{key:"setData",value:function(n,l,d,g){this.nextData.startx=this.data.startx=n,this.nextData.stopx=this.data.stopx=l,this.nextData.starty=this.data.starty=d,this.nextData.stopy=this.data.stopy=g}},{key:"updateVal",value:function(n,l,d,g){n[l]===void 0?n[l]=d:n[l]=g(d,n[l])}},{key:"insert",value:function(n){this.nextData.cnt=this.nextData.cnt+1;var l=this.nextData.startx===this.nextData.stopx?this.nextData.stopx+n.margin:this.nextData.stopx+2*n.margin,d=l+n.width,g=this.nextData.starty+2*n.margin,T=g+n.height;(l>=this.data.widthLimit||d>=this.data.widthLimit||this.nextData.cnt>ji)&&(l=this.nextData.startx+n.margin+kn.nextLinePaddingX,g=this.nextData.stopy+2*n.margin,this.nextData.stopx=d=l+n.width,this.nextData.starty=this.nextData.stopy,this.nextData.stopy=T=g+n.height,this.nextData.cnt=1),n.x=l,n.y=g,this.updateVal(this.data,"startx",l,Math.min),this.updateVal(this.data,"starty",g,Math.min),this.updateVal(this.data,"stopx",d,Math.max),this.updateVal(this.data,"stopy",T,Math.max),this.updateVal(this.nextData,"startx",l,Math.min),this.updateVal(this.nextData,"starty",g,Math.min),this.updateVal(this.nextData,"stopx",d,Math.max),this.updateVal(this.nextData,"stopy",T,Math.max)}},{key:"init",value:function(n){this.name="",this.data={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0,widthLimit:void 0},this.nextData={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0,cnt:0},pa(n.db.getConfig())}},{key:"bumpLastMargin",value:function(n){this.data.stopx+=n,this.data.stopy+=n}}]),i}(),pa=function(i){te(kn,i),i.fontFamily&&(kn.personFontFamily=kn.systemFontFamily=kn.messageFontFamily=i.fontFamily),i.fontSize&&(kn.personFontSize=kn.systemFontSize=kn.messageFontSize=i.fontSize),i.fontWeight&&(kn.personFontWeight=kn.systemFontWeight=kn.messageFontWeight=i.fontWeight)},Qn=function(i,n){return{fontFamily:i[n+"FontFamily"],fontSize:i[n+"FontSize"],fontWeight:i[n+"FontWeight"]}},x=function(i){return{fontFamily:i.boundaryFontFamily,fontSize:i.boundaryFontSize,fontWeight:i.boundaryFontWeight}};function L(i,n,l,d,g){if(!n[i].width)if(l)n[i].text=Ta(n[i].text,g,d),n[i].textLines=n[i].text.split(an.lineBreakRegex).length,n[i].width=g,n[i].height=uc(n[i].text,d);else{var T=n[i].text.split(an.lineBreakRegex);n[i].textLines=T.length;var k=0;n[i].height=0,n[i].width=0;for(var S=0;S<T.length;S++)n[i].width=Math.max(Ea(T[S],d),n[i].width),k=uc(T[S],d),n[i].height=n[i].height+k}}var H=function(i,n,l){n.x=l.data.startx,n.y=l.data.starty,n.width=l.data.stopx-l.data.startx,n.height=l.data.stopy-l.data.starty,n.label.y=kn.c4ShapeMargin-35;var d=n.wrap&&kn.wrap,g=x(kn);g.fontSize=g.fontSize+2,g.fontWeight="bold",L("label",n,d,g,Ea(n.label.text,g)),function(T,k,S){var N=T.append("g"),O=k.bgColor?k.bgColor:"none",q=k.borderColor?k.borderColor:"#444444",V=k.fontColor?k.fontColor:"black",et={"stroke-width":1,"stroke-dasharray":"7.0,7.0"};k.nodeType&&(et={"stroke-width":1});var Q={x:k.x,y:k.y,fill:O,stroke:q,width:k.width,height:k.height,rx:2.5,ry:2.5,attrs:et};Xa(N,Q);var Tt=S.boundaryFont();Tt.fontWeight="bold",Tt.fontSize=Tt.fontSize+2,Tt.fontColor=V,ia(S)(k.label.text,N,k.x,k.y+k.label.Y,k.width,k.height,{fill:"#444444"},Tt),k.type&&k.type.text!==""&&((Tt=S.boundaryFont()).fontColor=V,ia(S)(k.type.text,N,k.x,k.y+k.type.Y,k.width,k.height,{fill:"#444444"},Tt)),k.descr&&k.descr.text!==""&&((Tt=S.boundaryFont()).fontSize=Tt.fontSize-2,Tt.fontColor=V,ia(S)(k.descr.text,N,k.x,k.y+k.descr.Y,k.width,k.height,{fill:"#444444"},Tt))}(i,n,kn)},ct=function(i,n,l,d){for(var g=0,T=0;T<d.length;T++){g=0;var k=l[d[T]],S=Qn(kn,k.typeC4Shape.text);switch(S.fontSize=S.fontSize-2,k.typeC4Shape.width=Ea("<<"+k.typeC4Shape.text+">>",S),k.typeC4Shape.height=S.fontSize+2,k.typeC4Shape.Y=kn.c4ShapePadding,g=k.typeC4Shape.Y+k.typeC4Shape.height-4,k.image={width:0,height:0,Y:0},k.typeC4Shape.text){case"person":case"external_person":k.image.width=48,k.image.height=48,k.image.Y=g,g=k.image.Y+k.image.height}k.sprite&&(k.image.width=48,k.image.height=48,k.image.Y=g,g=k.image.Y+k.image.height);var N=k.wrap&&kn.wrap,O=kn.width-2*kn.c4ShapePadding,q=Qn(kn,k.typeC4Shape.text);q.fontSize=q.fontSize+2,q.fontWeight="bold",L("label",k,N,q,O),k.label.Y=g+8,g=k.label.Y+k.label.height,k.type&&k.type.text!==""?(k.type.text="["+k.type.text+"]",L("type",k,N,Qn(kn,k.typeC4Shape.text),O),k.type.Y=g+5,g=k.type.Y+k.type.height):k.techn&&k.techn.text!==""&&(k.techn.text="["+k.techn.text+"]",L("techn",k,N,Qn(kn,k.techn.text),O),k.techn.Y=g+5,g=k.techn.Y+k.techn.height);var V=g,et=k.label.width;k.descr&&k.descr.text!==""&&(L("descr",k,N,Qn(kn,k.typeC4Shape.text),O),k.descr.Y=g+20,g=k.descr.Y+k.descr.height,et=Math.max(k.label.width,k.descr.width),V=g-5*k.descr.textLines),et+=kn.c4ShapePadding,k.width=Math.max(k.width||kn.width,et,kn.width),k.height=Math.max(k.height||kn.height,V,kn.height),k.margin=k.margin||kn.c4ShapeMargin,i.insert(k),ic(n,k,kn)}i.bumpLastMargin(kn.c4ShapeMargin)},Xt=fo(function i(n,l){Io(this,i),this.x=n,this.y=l}),Se=function(i,n){var l=i.x,d=i.y,g=n.x,T=n.y,k=l+i.width/2,S=d+i.height/2,N=Math.abs(l-g),O=Math.abs(d-T),q=O/N,V=i.height/i.width,et=null;return d==T&&l<g?et=new Xt(l+i.width,S):d==T&&l>g?et=new Xt(l,S):l==g&&d<T?et=new Xt(k,d+i.height):l==g&&d>T&&(et=new Xt(k,d)),l>g&&d<T?et=V>=q?new Xt(l,S+q*i.width/2):new Xt(k-N/O*i.height/2,d+i.height):l<g&&d<T?et=V>=q?new Xt(l+i.width,S+q*i.width/2):new Xt(k+N/O*i.height/2,d+i.height):l<g&&d>T?et=V>=q?new Xt(l+i.width,S-q*i.width/2):new Xt(k+i.height/2*N/O,d):l>g&&d>T&&(et=V>=q?new Xt(l,S-i.width/2*q):new Xt(k-i.height/2*N/O,d)),et},Pe=function(i,n){var l={x:0,y:0};l.x=n.x+n.width/2,l.y=n.y+n.height/2;var d=Se(i,l);return l.x=i.x+i.width/2,l.y=i.y+i.height/2,{startPoint:d,endPoint:Se(n,l)}};function Ze(i,n,l,d,g){var T=new Xi(g);T.data.widthLimit=l.data.widthLimit/Math.min(Ci,d.length);for(var k=0;k<d.length;k++){var S=d[k],N=0;S.image={width:0,height:0,Y:0},S.sprite&&(S.image.width=48,S.image.height=48,S.image.Y=N,N=S.image.Y+S.image.height);var O=S.wrap&&kn.wrap,q=x(kn);if(q.fontSize=q.fontSize+2,q.fontWeight="bold",L("label",S,O,q,T.data.widthLimit),S.label.Y=N+8,N=S.label.Y+S.label.height,S.type&&S.type.text!==""&&(S.type.text="["+S.type.text+"]",L("type",S,O,x(kn),T.data.widthLimit),S.type.Y=N+5,N=S.type.Y+S.type.height),S.descr&&S.descr.text!==""){var V=x(kn);V.fontSize=V.fontSize-2,L("descr",S,O,V,T.data.widthLimit),S.descr.Y=N+20,N=S.descr.Y+S.descr.height}if(k==0||k%Ci==0){var et=l.data.startx+kn.diagramMarginX,Q=l.data.stopy+kn.diagramMarginY+N;T.setData(et,et,Q,Q)}else{var Tt=T.data.stopx!==T.data.startx?T.data.stopx+kn.diagramMarginX:T.data.startx,St=T.data.starty;T.setData(Tt,Tt,St,St)}T.name=S.alias;var Lt=g.db.getC4ShapeArray(S.alias),Nt=g.db.getC4ShapeKeys(S.alias);Nt.length>0&&ct(T,i,Lt,Nt),n=S.alias;var Ot=g.db.getBoundarys(n);Ot.length>0&&Ze(i,n,T,Ot,g),S.alias!=="global"&&H(i,S,T),l.data.stopy=Math.max(T.data.stopy+kn.c4ShapeMargin,l.data.stopy),l.data.stopx=Math.max(T.data.stopx+kn.c4ShapeMargin,l.data.stopx),po=Math.max(po,l.data.stopx),go=Math.max(go,l.data.stopy)}}const Je={drawPersonOrSystemArray:ct,drawBoundary:H,setConf:pa,draw:function(i,n,l,d){kn=Dt().c4;var g,T=Dt().securityLevel;T==="sandbox"&&(g=(0,w.select)("#i"+n));var k=T==="sandbox"?(0,w.select)(g.nodes()[0].contentDocument.body):(0,w.select)("body"),S=d.db;d.db.setWrap(kn.wrap),ji=S.getC4ShapeInRow(),Ci=S.getC4BoundaryInRow(),y.debug("C:".concat(JSON.stringify(kn,null,2)));var N=T==="sandbox"?k.select('[id="'.concat(n,'"]')):(0,w.select)('[id="'.concat(n,'"]'));N.append("defs").append("symbol").attr("id","computer").attr("width","24").attr("height","24").append("path").attr("transform","scale(.5)").attr("d","M2 2v13h20v-13h-20zm18 11h-16v-9h16v9zm-10.228 6l.466-1h3.524l.467 1h-4.457zm14.228 3h-24l2-6h2.104l-1.33 4h18.45l-1.297-4h2.073l2 6zm-5-10h-14v-7h14v7z"),function(St){St.append("defs").append("symbol").attr("id","database").attr("fill-rule","evenodd").attr("clip-rule","evenodd").append("path").attr("transform","scale(.5)").attr("d","M12.258.001l.256.004.255.005.253.008.251.01.249.012.247.015.246.016.242.019.241.02.239.023.236.024.233.027.231.028.229.031.225.032.223.034.22.036.217.038.214.04.211.041.208.043.205.045.201.046.198.048.194.05.191.051.187.053.183.054.18.056.175.057.172.059.168.06.163.061.16.063.155.064.15.066.074.033.073.033.071.034.07.034.069.035.068.035.067.035.066.035.064.036.064.036.062.036.06.036.06.037.058.037.058.037.055.038.055.038.053.038.052.038.051.039.05.039.048.039.047.039.045.04.044.04.043.04.041.04.04.041.039.041.037.041.036.041.034.041.033.042.032.042.03.042.029.042.027.042.026.043.024.043.023.043.021.043.02.043.018.044.017.043.015.044.013.044.012.044.011.045.009.044.007.045.006.045.004.045.002.045.001.045v17l-.001.045-.002.045-.004.045-.006.045-.007.045-.009.044-.011.045-.012.044-.013.044-.015.044-.017.043-.018.044-.02.043-.021.043-.023.043-.024.043-.026.043-.027.042-.029.042-.03.042-.032.042-.033.042-.034.041-.036.041-.037.041-.039.041-.04.041-.041.04-.043.04-.044.04-.045.04-.047.039-.048.039-.05.039-.051.039-.052.038-.053.038-.055.038-.055.038-.058.037-.058.037-.06.037-.06.036-.062.036-.064.036-.064.036-.066.035-.067.035-.068.035-.069.035-.07.034-.071.034-.073.033-.074.033-.15.066-.155.064-.16.063-.163.061-.168.06-.172.059-.175.057-.18.056-.183.054-.187.053-.191.051-.194.05-.198.048-.201.046-.205.045-.208.043-.211.041-.214.04-.217.038-.22.036-.223.034-.225.032-.229.031-.231.028-.233.027-.236.024-.239.023-.241.02-.242.019-.246.016-.247.015-.249.012-.251.01-.253.008-.255.005-.256.004-.258.001-.258-.001-.256-.004-.255-.005-.253-.008-.251-.01-.249-.012-.247-.015-.245-.016-.243-.019-.241-.02-.238-.023-.236-.024-.234-.027-.231-.028-.228-.031-.226-.032-.223-.034-.22-.036-.217-.038-.214-.04-.211-.041-.208-.043-.204-.045-.201-.046-.198-.048-.195-.05-.19-.051-.187-.053-.184-.054-.179-.056-.176-.057-.172-.059-.167-.06-.164-.061-.159-.063-.155-.064-.151-.066-.074-.033-.072-.033-.072-.034-.07-.034-.069-.035-.068-.035-.067-.035-.066-.035-.064-.036-.063-.036-.062-.036-.061-.036-.06-.037-.058-.037-.057-.037-.056-.038-.055-.038-.053-.038-.052-.038-.051-.039-.049-.039-.049-.039-.046-.039-.046-.04-.044-.04-.043-.04-.041-.04-.04-.041-.039-.041-.037-.041-.036-.041-.034-.041-.033-.042-.032-.042-.03-.042-.029-.042-.027-.042-.026-.043-.024-.043-.023-.043-.021-.043-.02-.043-.018-.044-.017-.043-.015-.044-.013-.044-.012-.044-.011-.045-.009-.044-.007-.045-.006-.045-.004-.045-.002-.045-.001-.045v-17l.001-.045.002-.045.004-.045.006-.045.007-.045.009-.044.011-.045.012-.044.013-.044.015-.044.017-.043.018-.044.02-.043.021-.043.023-.043.024-.043.026-.043.027-.042.029-.042.03-.042.032-.042.033-.042.034-.041.036-.041.037-.041.039-.041.04-.041.041-.04.043-.04.044-.04.046-.04.046-.039.049-.039.049-.039.051-.039.052-.038.053-.038.055-.038.056-.038.057-.037.058-.037.06-.037.061-.036.062-.036.063-.036.064-.036.066-.035.067-.035.068-.035.069-.035.07-.034.072-.034.072-.033.074-.033.151-.066.155-.064.159-.063.164-.061.167-.06.172-.059.176-.057.179-.056.184-.054.187-.053.19-.051.195-.05.198-.048.201-.046.204-.045.208-.043.211-.041.214-.04.217-.038.22-.036.223-.034.226-.032.228-.031.231-.028.234-.027.236-.024.238-.023.241-.02.243-.019.245-.016.247-.015.249-.012.251-.01.253-.008.255-.005.256-.004.258-.001.258.001zm-9.258 20.499v.01l.001.021.003.021.004.022.005.021.006.022.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.023.018.024.019.024.021.024.022.025.023.024.024.025.052.049.056.05.061.051.066.051.07.051.075.051.079.052.084.052.088.052.092.052.097.052.102.051.105.052.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.048.144.049.147.047.152.047.155.047.16.045.163.045.167.043.171.043.176.041.178.041.183.039.187.039.19.037.194.035.197.035.202.033.204.031.209.03.212.029.216.027.219.025.222.024.226.021.23.02.233.018.236.016.24.015.243.012.246.01.249.008.253.005.256.004.259.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.021.224-.024.22-.026.216-.027.212-.028.21-.031.205-.031.202-.034.198-.034.194-.036.191-.037.187-.039.183-.04.179-.04.175-.042.172-.043.168-.044.163-.045.16-.046.155-.046.152-.047.148-.048.143-.049.139-.049.136-.05.131-.05.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.053.083-.051.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.05.023-.024.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.023.01-.022.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.127l-.077.055-.08.053-.083.054-.085.053-.087.052-.09.052-.093.051-.095.05-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.045-.118.044-.12.043-.122.042-.124.042-.126.041-.128.04-.13.04-.132.038-.134.038-.135.037-.138.037-.139.035-.142.035-.143.034-.144.033-.147.032-.148.031-.15.03-.151.03-.153.029-.154.027-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.01-.179.008-.179.008-.181.006-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.006-.179-.008-.179-.008-.178-.01-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.027-.153-.029-.151-.03-.15-.03-.148-.031-.146-.032-.145-.033-.143-.034-.141-.035-.14-.035-.137-.037-.136-.037-.134-.038-.132-.038-.13-.04-.128-.04-.126-.041-.124-.042-.122-.042-.12-.044-.117-.043-.116-.045-.113-.045-.112-.046-.109-.047-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.05-.093-.052-.09-.051-.087-.052-.085-.053-.083-.054-.08-.054-.077-.054v4.127zm0-5.654v.011l.001.021.003.021.004.021.005.022.006.022.007.022.009.022.01.022.011.023.012.023.013.023.015.024.016.023.017.024.018.024.019.024.021.024.022.024.023.025.024.024.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.052.11.051.114.051.119.052.123.05.127.051.131.05.135.049.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.044.171.042.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.022.23.02.233.018.236.016.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.012.241-.015.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.048.139-.05.136-.049.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.051.051-.049.023-.025.023-.024.021-.025.02-.024.019-.024.018-.024.017-.024.015-.023.014-.023.013-.024.012-.022.01-.023.01-.023.008-.022.006-.022.006-.022.004-.021.004-.022.001-.021.001-.021v-4.139l-.077.054-.08.054-.083.054-.085.052-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.044-.118.044-.12.044-.122.042-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.035-.143.033-.144.033-.147.033-.148.031-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.009-.179.009-.179.007-.181.007-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.007-.179-.007-.179-.009-.178-.009-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.031-.146-.033-.145-.033-.143-.033-.141-.035-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.04-.126-.041-.124-.042-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.051-.093-.051-.09-.051-.087-.053-.085-.052-.083-.054-.08-.054-.077-.054v4.139zm0-5.666v.011l.001.02.003.022.004.021.005.022.006.021.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.024.018.023.019.024.021.025.022.024.023.024.024.025.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.051.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.043.171.043.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.021.23.02.233.018.236.017.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.013.241-.014.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.049.139-.049.136-.049.131-.051.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.049.023-.025.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.022.01-.023.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.153l-.077.054-.08.054-.083.053-.085.053-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.048-.105.048-.106.048-.109.046-.111.046-.114.046-.115.044-.118.044-.12.043-.122.043-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.034-.143.034-.144.033-.147.032-.148.032-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.024-.161.024-.162.023-.163.023-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.01-.178.01-.179.009-.179.007-.181.006-.182.006-.182.004-.184.003-.184.001-.185.001-.185-.001-.184-.001-.184-.003-.182-.004-.182-.006-.181-.006-.179-.007-.179-.009-.178-.01-.176-.01-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.023-.162-.023-.161-.024-.159-.024-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.032-.146-.032-.145-.033-.143-.034-.141-.034-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.041-.126-.041-.124-.041-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.048-.105-.048-.102-.048-.1-.05-.097-.049-.095-.051-.093-.051-.09-.052-.087-.052-.085-.053-.083-.053-.08-.054-.077-.054v4.153zm8.74-8.179l-.257.004-.254.005-.25.008-.247.011-.244.012-.241.014-.237.016-.233.018-.231.021-.226.022-.224.023-.22.026-.216.027-.212.028-.21.031-.205.032-.202.033-.198.034-.194.036-.191.038-.187.038-.183.04-.179.041-.175.042-.172.043-.168.043-.163.045-.16.046-.155.046-.152.048-.148.048-.143.048-.139.049-.136.05-.131.05-.126.051-.123.051-.118.051-.114.052-.11.052-.106.052-.101.052-.096.052-.092.052-.088.052-.083.052-.079.052-.074.051-.07.052-.065.051-.06.05-.056.05-.051.05-.023.025-.023.024-.021.024-.02.025-.019.024-.018.024-.017.023-.015.024-.014.023-.013.023-.012.023-.01.023-.01.022-.008.022-.006.023-.006.021-.004.022-.004.021-.001.021-.001.021.001.021.001.021.004.021.004.022.006.021.006.023.008.022.01.022.01.023.012.023.013.023.014.023.015.024.017.023.018.024.019.024.02.025.021.024.023.024.023.025.051.05.056.05.06.05.065.051.07.052.074.051.079.052.083.052.088.052.092.052.096.052.101.052.106.052.11.052.114.052.118.051.123.051.126.051.131.05.136.05.139.049.143.048.148.048.152.048.155.046.16.046.163.045.168.043.172.043.175.042.179.041.183.04.187.038.191.038.194.036.198.034.202.033.205.032.21.031.212.028.216.027.22.026.224.023.226.022.231.021.233.018.237.016.241.014.244.012.247.011.25.008.254.005.257.004.26.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.022.224-.023.22-.026.216-.027.212-.028.21-.031.205-.032.202-.033.198-.034.194-.036.191-.038.187-.038.183-.04.179-.041.175-.042.172-.043.168-.043.163-.045.16-.046.155-.046.152-.048.148-.048.143-.048.139-.049.136-.05.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.05.051-.05.023-.025.023-.024.021-.024.02-.025.019-.024.018-.024.017-.023.015-.024.014-.023.013-.023.012-.023.01-.023.01-.022.008-.022.006-.023.006-.021.004-.022.004-.021.001-.021.001-.021-.001-.021-.001-.021-.004-.021-.004-.022-.006-.021-.006-.023-.008-.022-.01-.022-.01-.023-.012-.023-.013-.023-.014-.023-.015-.024-.017-.023-.018-.024-.019-.024-.02-.025-.021-.024-.023-.024-.023-.025-.051-.05-.056-.05-.06-.05-.065-.051-.07-.052-.074-.051-.079-.052-.083-.052-.088-.052-.092-.052-.096-.052-.101-.052-.106-.052-.11-.052-.114-.052-.118-.051-.123-.051-.126-.051-.131-.05-.136-.05-.139-.049-.143-.048-.148-.048-.152-.048-.155-.046-.16-.046-.163-.045-.168-.043-.172-.043-.175-.042-.179-.041-.183-.04-.187-.038-.191-.038-.194-.036-.198-.034-.202-.033-.205-.032-.21-.031-.212-.028-.216-.027-.22-.026-.224-.023-.226-.022-.231-.021-.233-.018-.237-.016-.241-.014-.244-.012-.247-.011-.25-.008-.254-.005-.257-.004-.26-.001-.26.001z")}(N),function(St){St.append("defs").append("symbol").attr("id","clock").attr("width","24").attr("height","24").append("path").attr("transform","scale(.5)").attr("d","M12 2c5.514 0 10 4.486 10 10s-4.486 10-10 10-10-4.486-10-10 4.486-10 10-10zm0-2c-6.627 0-12 5.373-12 12s5.373 12 12 12 12-5.373 12-12-5.373-12-12-12zm5.848 12.459c.202.038.202.333.001.372-1.907.361-6.045 1.111-6.547 1.111-.719 0-1.301-.582-1.301-1.301 0-.512.77-5.447 1.125-7.445.034-.192.312-.181.343.014l.985 6.238 5.394 1.011z")}(N);var O=new Xi(d);O.setData(kn.diagramMarginX,kn.diagramMarginX,kn.diagramMarginY,kn.diagramMarginY),O.data.widthLimit=screen.availWidth,po=kn.diagramMarginX,go=kn.diagramMarginY;var q=d.db.getTitle();d.db.getC4Type(),Ze(N,"",O,d.db.getBoundarys(""),d),function(St){St.append("defs").append("marker").attr("id","arrowhead").attr("refX",9).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z")}(N),function(St){St.append("defs").append("marker").attr("id","arrowend").attr("refX",1).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 10 0 L 0 5 L 10 10 z")}(N),function(St){var Lt=St.append("defs").append("marker").attr("id","crosshead").attr("markerWidth",15).attr("markerHeight",8).attr("orient","auto").attr("refX",16).attr("refY",4);Lt.append("path").attr("fill","black").attr("stroke","#000000").style("stroke-dasharray","0, 0").attr("stroke-width","1px").attr("d","M 9,2 V 6 L16,4 Z"),Lt.append("path").attr("fill","none").attr("stroke","#000000").style("stroke-dasharray","0, 0").attr("stroke-width","1px").attr("d","M 0,1 L 6,7 M 6,1 L 0,7")}(N),function(St){St.append("defs").append("marker").attr("id","filled-head").attr("refX",18).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z")}(N),function(St,Lt,Nt,Ot){var Ft,_t,ee=0,ke=function(oe,Ne){var Ce=typeof Symbol<"u"&&oe[Symbol.iterator]||oe["@@iterator"];if(!Ce){if(Array.isArray(oe)||(Ce=function(Ue,$e){if(Ue){if(typeof Ue=="string")return Zc(Ue,$e);var bn=Object.prototype.toString.call(Ue).slice(8,-1);return bn==="Object"&&Ue.constructor&&(bn=Ue.constructor.name),bn==="Map"||bn==="Set"?Array.from(Ue):bn==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(bn)?Zc(Ue,$e):void 0}}(oe))||Ne&&oe&&typeof oe.length=="number"){Ce&&(oe=Ce);var je=0,_n=function(){};return{s:_n,n:function(){return je>=oe.length?{done:!0}:{done:!1,value:oe[je++]}},e:function(Ue){throw Ue},f:_n}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var Re,tn=!0,yn=!1;return{s:function(){Ce=Ce.call(oe)},n:function(){var Ue=Ce.next();return tn=Ue.done,Ue},e:function(Ue){yn=!0,Re=Ue},f:function(){try{tn||Ce.return==null||Ce.return()}finally{if(yn)throw Re}}}}(Lt);try{for(ke.s();!(Ft=ke.n()).done;){var ue=Ft.value;ee+=1;var ve=ue.wrap&&kn.wrap,Rt={fontFamily:(_t=kn).messageFontFamily,fontSize:_t.messageFontSize,fontWeight:_t.messageFontWeight};Ot.db.getC4Type()==="C4Dynamic"&&(ue.label.text=ee+": "+ue.label.text);var le=Ea(ue.label.text,Rt);L("label",ue,ve,Rt,le),ue.techn&&ue.techn.text!==""&&L("techn",ue,ve,Rt,le=Ea(ue.techn.text,Rt)),ue.descr&&ue.descr.text!==""&&L("descr",ue,ve,Rt,le=Ea(ue.descr.text,Rt));var Wt=Nt(ue.from),ie=Nt(ue.to),ce=Pe(Wt,ie);ue.startPoint=ce.startPoint,ue.endPoint=ce.endPoint}}catch(oe){ke.e(oe)}finally{ke.f()}Ht(St,Lt,kn)}(N,d.db.getRels(),d.db.getC4Shape,d),O.data.stopx=po,O.data.stopy=go;var V=O.data,et=V.stopy-V.starty+2*kn.diagramMarginY,Q=V.stopx-V.startx+2*kn.diagramMarginX;q&&N.append("text").text(q).attr("x",(V.stopx-V.startx)/2-4*kn.diagramMarginX).attr("y",V.starty+kn.diagramMarginY),Gi(N,0,Q,kn.useMaxWidth);var Tt=q?60:0;N.attr("viewBox",V.startx-kn.diagramMarginX+" -"+(kn.diagramMarginY+Tt)+" "+Q+" "+(et+Tt)),kr(Ve.parser.yy,N,n),y.debug("models:",V)}};function un(i,n){(n==null||n>i.length)&&(n=i.length);for(var l=0,d=new Array(n);l<n;l++)d[l]=i[l];return d}var gn="classid-",zn=[],hn={},mr=0,or=[],$r=function(i){return an.sanitizeText(i,Dt())},ri=function(i){var n="",l=i;if(i.indexOf("~")>0){var d=i.split("~");l=d[0],n=an.sanitizeText(d[1],Dt())}return{className:l,type:n}},Yr=function(i){var n=ri(i);hn[n.className]===void 0&&(hn[n.className]={id:n.className,type:n.type,cssClasses:[],methods:[],members:[],annotations:[],domId:gn+n.className+"-"+mr},mr++)},vs=function(i){for(var n=Object.keys(hn),l=0;l<n.length;l++)if(hn[n[l]].id===i)return hn[n[l]].domId},iu=function(i,n){var l=ri(i).className,d=hn[l];if(typeof n=="string"){var g=n.trim();g.startsWith("<<")&&g.endsWith(">>")?d.annotations.push($r(g.substring(2,g.length-2))):g.indexOf(")")>0?d.methods.push($r(g)):g&&d.members.push($r(g))}},hc=function(i,n){i.split(",").forEach(function(l){var d=l;l[0].match(/\d/)&&(d=gn+d),hn[d]!==void 0&&hn[d].cssClasses.push(n)})},Xh=function(i,n,l){var d=Dt(),g=i,T=vs(g);if(d.securityLevel==="loose"&&n!==void 0&&hn[g]!==void 0){var k=[];if(typeof l=="string"){k=l.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(var S=0;S<k.length;S++){var N=k[S].trim();N.charAt(0)==='"'&&N.charAt(N.length-1)==='"'&&(N=N.substr(1,N.length-2)),k[S]=N}}k.length===0&&k.push(T),or.push(function(){var O=document.querySelector('[id="'.concat(T,'"]'));O!==null&&O.addEventListener("click",function(){var q;qn.runFunc.apply(qn,[n].concat(function(V){if(Array.isArray(V))return un(V)}(q=k)||function(V){if(typeof Symbol<"u"&&V[Symbol.iterator]!=null||V["@@iterator"]!=null)return Array.from(V)}(q)||function(V,et){if(V){if(typeof V=="string")return un(V,et);var Q=Object.prototype.toString.call(V).slice(8,-1);return Q==="Object"&&V.constructor&&(Q=V.constructor.name),Q==="Map"||Q==="Set"?Array.from(V):Q==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Q)?un(V,et):void 0}}(q)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()))},!1)})}},au=function(i){var n=(0,w.select)(".mermaidTooltip");(n._groups||n)[0][0]===null&&(n=(0,w.select)("body").append("div").attr("class","mermaidTooltip").style("opacity",0)),(0,w.select)(i).select("svg").selectAll("g.node").on("mouseover",function(){var l=(0,w.select)(this);if(l.attr("title")!==null){var d=this.getBoundingClientRect();n.transition().duration(200).style("opacity",".9"),n.text(l.attr("title")).style("left",window.scrollX+d.left+(d.right-d.left)/2+"px").style("top",window.scrollY+d.top-14+document.body.scrollTop+"px"),n.html(n.html().replace(/&lt;br\/&gt;/g,"<br/>")),l.classed("hover",!0)}}).on("mouseout",function(){n.transition().duration(500).style("opacity",0),(0,w.select)(this).classed("hover",!1)})};or.push(au);var fc="TB";const aa={parseDirective:function(i,n,l){Bn.parseDirective(this,i,n,l)},setAccTitle:xr,getAccTitle:Or,getAccDescription:li,setAccDescription:Vr,getConfig:function(){return Dt().class},addClass:Yr,bindFunctions:function(i){or.forEach(function(n){n(i)})},clear:function(){zn=[],hn={},(or=[]).push(au),Kt()},getClass:function(i){return hn[i]},getClasses:function(){return hn},addAnnotation:function(i,n){var l=ri(i).className;hn[l].annotations.push(n)},getRelations:function(){return zn},addRelation:function(i){y.debug("Adding relation: "+JSON.stringify(i)),Yr(i.id1),Yr(i.id2),i.id1=ri(i.id1).className,i.id2=ri(i.id2).className,i.relationTitle1=an.sanitizeText(i.relationTitle1.trim(),Dt()),i.relationTitle2=an.sanitizeText(i.relationTitle2.trim(),Dt()),zn.push(i)},getDirection:function(){return fc},setDirection:function(i){fc=i},addMember:iu,addMembers:function(i,n){Array.isArray(n)&&(n.reverse(),n.forEach(function(l){return iu(i,l)}))},cleanupLabel:function(i){return i.substring(0,1)===":"?an.sanitizeText(i.substr(1).trim(),Dt()):$r(i.trim())},lineType:{LINE:0,DOTTED_LINE:1},relationType:{AGGREGATION:0,EXTENSION:1,COMPOSITION:2,DEPENDENCY:3,LOLLIPOP:4},setClickEvent:function(i,n,l){i.split(",").forEach(function(d){Xh(d,n,l),hn[d].haveCallback=!0}),hc(i,"clickable")},setCssClass:hc,setLink:function(i,n,l){var d=Dt();i.split(",").forEach(function(g){var T=g;g[0].match(/\d/)&&(T=gn+T),hn[T]!==void 0&&(hn[T].link=qn.formatUrl(n,d),d.securityLevel==="sandbox"?hn[T].linkTarget="_top":hn[T].linkTarget=typeof l=="string"?$r(l):"_blank")}),hc(i,"clickable")},getTooltip:function(i){return hn[i].tooltip},setTooltip:function(i,n){var l=Dt();i.split(",").forEach(function(d){n!==void 0&&(hn[d].tooltip=an.sanitizeText(n,l))})},lookUpDomId:vs};var ou=p(681),_s=p.n(ou),Zh=p(8282),di=p.n(Zh),dc=0,Qc=function(i){var n=i.match(/^(\+|-|~|#)?(\w+)(~\w+~|\[\])?\s+(\w+) *(\*|\$)?$/),l=i.match(/^([+|\-|~|#])?(\w+) *\( *(.*)\) *(\*|\$)? *(\w*[~|[\]]*\s*\w*~?)$/);return n&&!l?Kc(n):l?Ai(l):pc(i)},Kc=function(i){var n="",l="";try{var d=i[1]?i[1].trim():"",g=i[2]?i[2].trim():"",T=i[3]?Zn(i[3].trim()):"",k=i[4]?i[4].trim():"",S=i[5]?i[5].trim():"";l=d+g+T+" "+k,n=Jc(S)}catch{l=i}return{displayText:l,cssStyle:n}},Ai=function(i){var n="",l="";try{var d=i[1]?i[1].trim():"",g=i[2]?i[2].trim():"",T=i[3]?Zn(i[3].trim()):"",k=i[4]?i[4].trim():"";l=d+g+"("+T+")"+(i[5]?" : "+Zn(i[5]).trim():""),n=Jc(k)}catch{l=i}return{displayText:l,cssStyle:n}},pc=function(i){var n="",l="",d="",g=i.indexOf("("),T=i.indexOf(")");if(g>1&&T>g&&T<=i.length){var k="",S="",N=i.substring(0,1);N.match(/\w/)?S=i.substring(0,g).trim():(N.match(/\+|-|~|#/)&&(k=N),S=i.substring(1,g).trim());var O=i.substring(g+1,T),q=i.substring(T+1,1);l=Jc(q),n=k+S+"("+Zn(O.trim())+")",T<0&&(d=i.substring(T+2).trim())!==""&&(d=" : "+Zn(d))}else n=Zn(i);return{displayText:n,cssStyle:l}},su=function(i,n,l,d){var g=Qc(n),T=i.append("tspan").attr("x",d.padding).text(g.displayText);g.cssStyle!==""&&T.attr("style",g.cssStyle),l||T.attr("dy",d.textHeight)},Jc=function(i){switch(i){case"*":return"font-style:italic;";case"$":return"text-decoration:underline;";default:return""}};const nf=function(i,n,l,d){y.debug("Rendering class ",n,l);var g,T=n.id,k={id:T,label:n.id,width:0,height:0},S=i.append("g").attr("id",d.db.lookUpDomId(T)).attr("class","classGroup");g=n.link?S.append("svg:a").attr("xlink:href",n.link).attr("target",n.linkTarget).append("text").attr("y",l.textHeight+l.padding).attr("x",0):S.append("text").attr("y",l.textHeight+l.padding).attr("x",0);var N=!0;n.annotations.forEach(function(_t){var ee=g.append("tspan").text("\xAB"+_t+"\xBB");N||ee.attr("dy",l.textHeight),N=!1});var O=n.id;n.type!==void 0&&n.type!==""&&(O+="<"+n.type+">");var q=g.append("tspan").text(O).attr("class","title");N||q.attr("dy",l.textHeight);var V=g.node().getBBox().height,et=S.append("line").attr("x1",0).attr("y1",l.padding+V+l.dividerMargin/2).attr("y2",l.padding+V+l.dividerMargin/2),Q=S.append("text").attr("x",l.padding).attr("y",V+l.dividerMargin+l.textHeight).attr("fill","white").attr("class","classText");N=!0,n.members.forEach(function(_t){su(Q,_t,N,l),N=!1});var Tt=Q.node().getBBox(),St=S.append("line").attr("x1",0).attr("y1",l.padding+V+l.dividerMargin+Tt.height).attr("y2",l.padding+V+l.dividerMargin+Tt.height),Lt=S.append("text").attr("x",l.padding).attr("y",V+2*l.dividerMargin+Tt.height+l.textHeight).attr("fill","white").attr("class","classText");N=!0,n.methods.forEach(function(_t){su(Lt,_t,N,l),N=!1});var Nt=S.node().getBBox(),Ot=" ";n.cssClasses.length>0&&(Ot+=n.cssClasses.join(" "));var Ft=S.insert("rect",":first-child").attr("x",0).attr("y",0).attr("width",Nt.width+2*l.padding).attr("height",Nt.height+l.padding+.5*l.dividerMargin).attr("class",Ot).node().getBBox().width;return g.node().childNodes.forEach(function(_t){_t.setAttribute("x",(Ft-_t.getBBox().width)/2)}),n.tooltip&&g.insert("title").text(n.tooltip),et.attr("x2",Ft),St.attr("x2",Ft),k.width=Ft,k.height=Nt.height+l.padding+.5*l.dividerMargin,k};var gc={},yc=function(i){var n=Object.entries(gc).find(function(l){return l[1].label===i});if(n)return n[0]};const rf={draw:function(i,n,l,d){var g=Dt().class;gc={},y.info("Rendering diagram "+i);var T,k=Dt().securityLevel;k==="sandbox"&&(T=(0,w.select)("#i"+n));var S,N=k==="sandbox"?(0,w.select)(T.nodes()[0].contentDocument.body):(0,w.select)("body"),O=(k==="sandbox"&&T.nodes()[0].contentDocument,N.select("[id='".concat(n,"']")));(S=O).append("defs").append("marker").attr("id","extensionStart").attr("class","extension").attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 1,7 L18,13 V 1 Z"),S.append("defs").append("marker").attr("id","extensionEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 1,1 V 13 L18,7 Z"),S.append("defs").append("marker").attr("id","compositionStart").attr("class","extension").attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),S.append("defs").append("marker").attr("id","compositionEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),S.append("defs").append("marker").attr("id","aggregationStart").attr("class","extension").attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),S.append("defs").append("marker").attr("id","aggregationEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),S.append("defs").append("marker").attr("id","dependencyStart").attr("class","extension").attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),S.append("defs").append("marker").attr("id","dependencyEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z");var q=new(di()).Graph({multigraph:!0});q.setGraph({isMultiGraph:!0}),q.setDefaultEdgeLabel(function(){return{}});for(var V=d.db.getClasses(),et=Object.keys(V),Q=0;Q<et.length;Q++){var Tt=V[et[Q]],St=nf(O,Tt,g,d);gc[St.id]=St,q.setNode(St.id,St),y.info("Org height: "+St.height)}d.db.getRelations().forEach(function(_t){y.info("tjoho"+yc(_t.id1)+yc(_t.id2)+JSON.stringify(_t)),q.setEdge(yc(_t.id1),yc(_t.id2),{relation:_t},_t.title||"DEFAULT")}),_s().layout(q),q.nodes().forEach(function(_t){_t!==void 0&&q.node(_t)!==void 0&&(y.debug("Node "+_t+": "+JSON.stringify(q.node(_t))),N.select("#"+d.db.lookUpDomId(_t)).attr("transform","translate("+(q.node(_t).x-q.node(_t).width/2)+","+(q.node(_t).y-q.node(_t).height/2)+" )"))}),q.edges().forEach(function(_t){_t!==void 0&&q.edge(_t)!==void 0&&(y.debug("Edge "+_t.v+" -> "+_t.w+": "+JSON.stringify(q.edge(_t))),function(ee,ke,ue,ve,Rt){var le=function(dr){switch(dr){case Rt.db.relationType.AGGREGATION:return"aggregation";case Rt.db.EXTENSION:return"extension";case Rt.db.COMPOSITION:return"composition";case Rt.db.DEPENDENCY:return"dependency";case Rt.db.LOLLIPOP:return"lollipop"}};ke.points=ke.points.filter(function(dr){return!Number.isNaN(dr.y)});var Wt,ie,ce=ke.points,oe=(0,w.line)().x(function(dr){return dr.x}).y(function(dr){return dr.y}).curve(w.curveBasis),Ne=ee.append("path").attr("d",oe(ce)).attr("id","edge"+dc).attr("class","relation"),Ce="";ve.arrowMarkerAbsolute&&(Ce=(Ce=(Ce=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search).replace(/\(/g,"\\(")).replace(/\)/g,"\\)")),ue.relation.lineType==1&&Ne.attr("class","relation dashed-line"),ue.relation.type1!=="none"&&Ne.attr("marker-start","url("+Ce+"#"+le(ue.relation.type1)+"Start)"),ue.relation.type2!=="none"&&Ne.attr("marker-end","url("+Ce+"#"+le(ue.relation.type2)+"End)");var je,_n,Re,tn,yn=ke.points.length,Ue=qn.calcLabelPosition(ke.points);if(Wt=Ue.x,ie=Ue.y,yn%2!=0&&yn>1){var $e=qn.calcCardinalityPosition(ue.relation.type1!=="none",ke.points,ke.points[0]),bn=qn.calcCardinalityPosition(ue.relation.type2!=="none",ke.points,ke.points[yn-1]);y.debug("cardinality_1_point "+JSON.stringify($e)),y.debug("cardinality_2_point "+JSON.stringify(bn)),je=$e.x,_n=$e.y,Re=bn.x,tn=bn.y}if(ue.title!==void 0){var gr=ee.append("g").attr("class","classLabel"),fr=gr.append("text").attr("class","label").attr("x",Wt).attr("y",ie).attr("fill","red").attr("text-anchor","middle").text(ue.title);window.label=fr;var jr=fr.node().getBBox();gr.insert("rect",":first-child").attr("class","box").attr("x",jr.x-ve.padding/2).attr("y",jr.y-ve.padding/2).attr("width",jr.width+ve.padding).attr("height",jr.height+ve.padding)}y.info("Rendering relation "+JSON.stringify(ue)),ue.relationTitle1!==void 0&&ue.relationTitle1!=="none"&&ee.append("g").attr("class","cardinality").append("text").attr("class","type1").attr("x",je).attr("y",_n).attr("fill","black").attr("font-size","6").text(ue.relationTitle1),ue.relationTitle2!==void 0&&ue.relationTitle2!=="none"&&ee.append("g").attr("class","cardinality").append("text").attr("class","type2").attr("x",Re).attr("y",tn).attr("fill","black").attr("font-size","6").text(ue.relationTitle2),dc++}(O,q.edge(_t),q.edge(_t).relation,g,d))});var Lt=O.node().getBBox(),Nt=Lt.width+40,Ot=Lt.height+40;Gi(O,0,Nt,g.useMaxWidth);var Ft="".concat(Lt.x-20," ").concat(Lt.y-20," ").concat(Nt," ").concat(Ot);y.debug("viewBox ".concat(Ft)),O.attr("viewBox",Ft),kr(d.db,O,n)}};var Qh={extension:function(i,n,l){y.trace("Making markers for ",l),i.append("defs").append("marker").attr("id",n+"-extensionStart").attr("class","marker extension "+n).attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 1,7 L18,13 V 1 Z"),i.append("defs").append("marker").attr("id",n+"-extensionEnd").attr("class","marker extension "+n).attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 1,1 V 13 L18,7 Z")},composition:function(i,n){i.append("defs").append("marker").attr("id",n+"-compositionStart").attr("class","marker composition "+n).attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),i.append("defs").append("marker").attr("id",n+"-compositionEnd").attr("class","marker composition "+n).attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},aggregation:function(i,n){i.append("defs").append("marker").attr("id",n+"-aggregationStart").attr("class","marker aggregation "+n).attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),i.append("defs").append("marker").attr("id",n+"-aggregationEnd").attr("class","marker aggregation "+n).attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},dependency:function(i,n){i.append("defs").append("marker").attr("id",n+"-dependencyStart").attr("class","marker dependency "+n).attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),i.append("defs").append("marker").attr("id",n+"-dependencyEnd").attr("class","marker dependency "+n).attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},lollipop:function(i,n,l){i.append("defs").append("marker").attr("id",n+"-lollipopStart").attr("class","marker lollipop "+n).attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("stroke","black").attr("fill","white").attr("cx",6).attr("cy",7).attr("r",6)},point:function(i,n){i.append("marker").attr("id",n+"-pointEnd").attr("class","marker "+n).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),i.append("marker").attr("id",n+"-pointStart").attr("class","marker "+n).attr("viewBox","0 0 10 10").attr("refX",0).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 0 5 L 10 10 L 10 0 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0")},circle:function(i,n){i.append("marker").attr("id",n+"-circleEnd").attr("class","marker "+n).attr("viewBox","0 0 10 10").attr("refX",11).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),i.append("marker").attr("id",n+"-circleStart").attr("class","marker "+n).attr("viewBox","0 0 10 10").attr("refX",-1).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0")},cross:function(i,n){i.append("marker").attr("id",n+"-crossEnd").attr("class","marker cross "+n).attr("viewBox","0 0 11 11").attr("refX",12).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0"),i.append("marker").attr("id",n+"-crossStart").attr("class","marker cross "+n).attr("viewBox","0 0 11 11").attr("refX",-1).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0")},barb:function(i,n){i.append("defs").append("marker").attr("id",n+"-barbEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","strokeWidth").attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z")}};const Kh=function(i,n,l,d){n.forEach(function(g){Qh[g](i,l,d)})};function oa(i){return oa=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},oa(i)}const Zi=function(i,n,l,d){var g=i||"";if(oa(g)==="object"&&(g=g[0]),rn(Dt().flowchart.htmlLabels)){g=g.replace(/\\n|\n/g,"<br />"),y.info("vertexText"+g);var T=function(q){var V,et=(0,w.select)(document.createElementNS("http://www.w3.org/2000/svg","foreignObject")),Q=et.append("xhtml:div"),Tt=q.label,St=q.isNode?"nodeLabel":"edgeLabel";return Q.html('<span class="'+St+'" '+(q.labelStyle?'style="'+q.labelStyle+'"':"")+">"+Tt+"</span>"),(V=q.labelStyle)&&Q.attr("style",V),Q.style("display","inline-block"),Q.style("white-space","nowrap"),Q.attr("xmlns","http://www.w3.org/1999/xhtml"),et.node()}({isNode:d,label:qs(g).replace(/fa[lrsb]?:fa-[\w-]+/g,function(q){return"<i class='".concat(q.replace(":"," "),"'></i>")}),labelStyle:n.replace("fill:","color:")});return T}var k=document.createElementNS("http://www.w3.org/2000/svg","text");k.setAttribute("style",n.replace("color:","fill:"));var S=[];S=typeof g=="string"?g.split(/\\n|\n|<br\s*\/?>/gi):Array.isArray(g)?g:[];for(var N=0;N<S.length;N++){var O=document.createElementNS("http://www.w3.org/2000/svg","tspan");O.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),O.setAttribute("dy","1em"),O.setAttribute("x","0"),l?O.setAttribute("class","title-row"):O.setAttribute("class","row"),O.textContent=S[N].trim(),k.appendChild(O)}return k};var Mi=function(i,n,l,d){var g;g=l||"node default";var T=i.insert("g").attr("class",g).attr("id",n.domId||n.id),k=T.insert("g").attr("class","label").attr("style",n.labelStyle),S=typeof n.labelText=="string"?n.labelText:n.labelText[0],N=k.node().appendChild(Zi(cr(qs(S),Dt()),n.labelStyle,!1,d)),O=N.getBBox();if(rn(Dt().flowchart.htmlLabels)){var q=N.children[0],V=(0,w.select)(N);O=q.getBoundingClientRect(),V.attr("width",O.width),V.attr("height",O.height)}var et=n.padding/2;return k.attr("transform","translate("+-O.width/2+", "+-O.height/2+")"),{shapeSvg:T,bbox:O,halfPadding:et,label:k}},ei=function(i,n){var l=n.node().getBBox();i.width=l.width,i.height=l.height};function Fa(i,n,l,d){return i.insert("polygon",":first-child").attr("points",d.map(function(g){return g.x+","+g.y}).join(" ")).attr("class","label-container").attr("transform","translate("+-n/2+","+l/2+")")}var Kn={},Sa={},sa={},Ko=function(i,n){return y.trace("In isDecendant",n," ",i," = ",Sa[n].indexOf(i)>=0),Sa[n].indexOf(i)>=0},mc=function i(n,l,d,g){y.warn("Copying children of ",n,"root",g,"data",l.node(n),g);var T=l.children(n)||[];n!==g&&T.push(n),y.warn("Copying (nodes) clusterId",n,"nodes",T),T.forEach(function(k){if(l.children(k).length>0)i(k,l,d,g);else{var S=l.node(k);y.info("cp ",k," to ",g," with parent ",n),d.setNode(k,S),g!==l.parent(k)&&(y.warn("Setting parent",k,l.parent(k)),d.setParent(k,l.parent(k))),n!==g&&k!==n?(y.debug("Setting parent",k,n),d.setParent(k,n)):(y.info("In copy ",n,"root",g,"data",l.node(n),g),y.debug("Not Setting parent for node=",k,"cluster!==rootId",n!==g,"node!==clusterId",k!==n));var N=l.edges(k);y.debug("Copying Edges",N),N.forEach(function(O){y.info("Edge",O);var q=l.edge(O.v,O.w,O.name);y.info("Edge data",q,g);try{(function(V,et){return y.info("Decendants of ",et," is ",Sa[et]),y.info("Edge is ",V),V.v!==et&&V.w!==et&&(Sa[et]?(y.info("Here "),Sa[et].indexOf(V.v)>=0||!!Ko(V.v,et)||!!Ko(V.w,et)||Sa[et].indexOf(V.w)>=0):(y.debug("Tilt, ",et,",not in decendants"),!1))})(O,g)?(y.info("Copying as ",O.v,O.w,q,O.name),d.setEdge(O.v,O.w,q,O.name),y.info("newGraph edges ",d.edges(),d.edge(d.edges()[0]))):y.info("Skipping copy of edge ",O.v,"-->",O.w," rootId: ",g," clusterId:",n)}catch(V){y.error(V)}})}y.debug("Removing node",k),l.removeNode(k)})},xs=function i(n,l){for(var d=l.children(n),g=[].concat(d),T=0;T<d.length;T++)sa[d[T]]=n,g=g.concat(i(d[T],l));return g},Fo=function i(n,l){y.trace("Searching",n);var d=l.children(n);if(y.trace("Searching children of id ",n,d),d.length<1)return y.trace("This is a valid node",n),n;for(var g=0;g<d.length;g++){var T=i(d[g],l);if(T)return y.trace("Found replacement for",n," => ",T),T}},Ro=function(i){return Kn[i]&&Kn[i].externalConnections&&Kn[i]?Kn[i].id:i},tl=function(i,n){!i||n>10?y.debug("Opting out, no graph "):(y.debug("Opting in, graph "),i.nodes().forEach(function(l){i.children(l).length>0&&(y.warn("Cluster identified",l," Replacement id in edges: ",Fo(l,i)),Sa[l]=xs(l,i),Kn[l]={id:Fo(l,i),clusterData:i.node(l)})}),i.nodes().forEach(function(l){var d=i.children(l),g=i.edges();d.length>0?(y.debug("Cluster identified",l,Sa),g.forEach(function(T){T.v!==l&&T.w!==l&&Ko(T.v,l)^Ko(T.w,l)&&(y.warn("Edge: ",T," leaves cluster ",l),y.warn("Decendants of XXX ",l,": ",Sa[l]),Kn[l].externalConnections=!0)})):y.debug("Not a cluster ",l,Sa)}),i.edges().forEach(function(l){var d=i.edge(l);y.warn("Edge "+l.v+" -> "+l.w+": "+JSON.stringify(l)),y.warn("Edge "+l.v+" -> "+l.w+": "+JSON.stringify(i.edge(l)));var g=l.v,T=l.w;if(y.warn("Fix XXX",Kn,"ids:",l.v,l.w,"Translateing: ",Kn[l.v]," --- ",Kn[l.w]),Kn[l.v]&&Kn[l.w]&&Kn[l.v]===Kn[l.w]){y.warn("Fixing and trixing link to self - removing XXX",l.v,l.w,l.name),y.warn("Fixing and trixing - removing XXX",l.v,l.w,l.name),g=Ro(l.v),T=Ro(l.w),i.removeEdge(l.v,l.w,l.name);var k=l.w+"---"+l.v;i.setNode(k,{domId:k,id:k,labelStyle:"",labelText:d.label,padding:0,shape:"labelRect",style:""});var S=JSON.parse(JSON.stringify(d)),N=JSON.parse(JSON.stringify(d));S.label="",S.arrowTypeEnd="none",N.label="",S.fromCluster=l.v,N.toCluster=l.v,i.setEdge(g,k,S,l.name+"-cyclic-special"),i.setEdge(k,T,N,l.name+"-cyclic-special")}else(Kn[l.v]||Kn[l.w])&&(y.warn("Fixing and trixing - removing XXX",l.v,l.w,l.name),g=Ro(l.v),T=Ro(l.w),i.removeEdge(l.v,l.w,l.name),g!==l.v&&(d.fromCluster=l.v),T!==l.w&&(d.toCluster=l.w),y.warn("Fix Replacing with XXX",g,T,l.name),i.setEdge(g,T,d,l.name))}),y.warn("Adjusted Graph",di().json.write(i)),Jo(i,0),y.trace(Kn))},Jo=function i(n,l){if(y.warn("extractor - ",l,di().json.write(n),n.children("D")),l>10)y.error("Bailing out");else{for(var d=n.nodes(),g=!1,T=0;T<d.length;T++){var k=d[T],S=n.children(k);g=g||S.length>0}if(g){y.debug("Nodes = ",d,l);for(var N=0;N<d.length;N++){var O=d[N];if(y.debug("Extracting node",O,Kn,Kn[O]&&!Kn[O].externalConnections,!n.parent(O),n.node(O),n.children("D")," Depth ",l),Kn[O])if(!Kn[O].externalConnections&&n.children(O)&&n.children(O).length>0){y.warn("Cluster without external connections, without a parent and with children",O,l);var q=n.graph().rankdir==="TB"?"LR":"TB";Kn[O]&&Kn[O].clusterData&&Kn[O].clusterData.dir&&(q=Kn[O].clusterData.dir,y.warn("Fixing dir",Kn[O].clusterData.dir,q));var V=new(di()).Graph({multigraph:!0,compound:!0}).setGraph({rankdir:q,nodesep:50,ranksep:50,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});y.warn("Old graph before copy",di().json.write(n)),mc(O,n,V,O),n.setNode(O,{clusterNode:!0,id:O,clusterData:Kn[O].clusterData,labelText:Kn[O].labelText,graph:V}),y.warn("New graph after copy node: (",O,")",di().json.write(V)),y.debug("Old graph after copy",di().json.write(n))}else y.warn("Cluster ** ",O," **not meeting the criteria !externalConnections:",!Kn[O].externalConnections," no parent: ",!n.parent(O)," children ",n.children(O)&&n.children(O).length>0,n.children("D"),l),y.debug(Kn);else y.debug("Not a cluster",O,l)}d=n.nodes(),y.warn("New list of nodes",d);for(var et=0;et<d.length;et++){var Q=d[et],Tt=n.node(Q);y.warn(" Now next level",Q,Tt),Tt.clusterNode&&i(Tt.graph,l+1)}}else y.debug("Done, no node has children",n.nodes())}},el=function i(n,l){if(l.length===0)return[];var d=Object.assign(l);return l.forEach(function(g){var T=n.children(g),k=i(n,T);d=d.concat(k)}),d},bc=function(i){return el(i,i.children())},Jh=p(3841);const vc=function(i,n,l,d){var g=i.x,T=i.y,k=g-d.x,S=T-d.y,N=Math.sqrt(n*n*S*S+l*l*k*k),O=Math.abs(n*l*k/N);d.x<g&&(O=-O);var q=Math.abs(n*l*S/N);return d.y<T&&(q=-q),{x:g+O,y:T+q}};function t1(i,n){return i*n>0}const _c=function(i,n,l,d){var g,T,k,S,N,O,q,V,et,Q,Tt,St,Lt;if(g=n.y-i.y,k=i.x-n.x,N=n.x*i.y-i.x*n.y,et=g*l.x+k*l.y+N,Q=g*d.x+k*d.y+N,!(et!==0&&Q!==0&&t1(et,Q)||(T=d.y-l.y,S=l.x-d.x,O=d.x*l.y-l.x*d.y,q=T*i.x+S*i.y+O,V=T*n.x+S*n.y+O,q!==0&&V!==0&&t1(q,V)||(Tt=g*S-T*k)==0)))return St=Math.abs(Tt/2),{x:(Lt=k*O-S*N)<0?(Lt-St)/Tt:(Lt+St)/Tt,y:(Lt=T*N-g*O)<0?(Lt-St)/Tt:(Lt+St)/Tt}},Po=function(i,n){var l,d,g=i.x,T=i.y,k=n.x-g,S=n.y-T,N=i.width/2,O=i.height/2;return Math.abs(S)*N>Math.abs(k)*O?(S<0&&(O=-O),l=S===0?0:O*k/S,d=O):(k<0&&(N=-N),l=N,d=k===0?0:N*S/k),{x:g+l,y:T+d}},ks=(p.n(Jh)(),function(i,n,l){return vc(i,n,n,l)}),Qa=function(i,n,l){var d=i.x,g=i.y,T=[],k=Number.POSITIVE_INFINITY,S=Number.POSITIVE_INFINITY;typeof n.forEach=="function"?n.forEach(function(Tt){k=Math.min(k,Tt.x),S=Math.min(S,Tt.y)}):(k=Math.min(k,n.x),S=Math.min(S,n.y));for(var N=d-i.width/2-k,O=g-i.height/2-S,q=0;q<n.length;q++){var V=n[q],et=n[q<n.length-1?q+1:0],Q=_c(i,l,{x:N+V.x,y:O+V.y},{x:N+et.x,y:O+et.y});Q&&T.push(Q)}return T.length?(T.length>1&&T.sort(function(Tt,St){var Lt=Tt.x-l.x,Nt=Tt.y-l.y,Ot=Math.sqrt(Lt*Lt+Nt*Nt),Ft=St.x-l.x,_t=St.y-l.y,ee=Math.sqrt(Ft*Ft+_t*_t);return Ot<ee?-1:Ot===ee?0:1}),T[0]):i},jo=Po;function ws(i){return ws=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},ws(i)}function nl(i,n,l,d){var g=[],T=function(S){g.push(S),g.push(0)},k=function(S){g.push(0),g.push(S)};n.includes("t")?(y.debug("add top border"),T(l)):k(l),n.includes("r")?(y.debug("add right border"),T(d)):k(d),n.includes("b")?(y.debug("add bottom border"),T(l)):k(l),n.includes("l")?(y.debug("add left border"),T(d)):k(d),i.attr("stroke-dasharray",g.join(" "))}var e1=function(i,n,l){var d=i.insert("g").attr("class","node default").attr("id",n.domId||n.id),g=70,T=10;l==="LR"&&(g=10,T=70);var k=d.append("rect").attr("x",-1*g/2).attr("y",-1*T/2).attr("width",g).attr("height",T).attr("class","fork-join");return ei(n,k),n.height=n.height+n.padding/2,n.width=n.width+n.padding/2,n.intersect=function(S){return jo(n,S)},d},n1={question:function(i,n){var l=Mi(i,n,void 0,!0),d=l.shapeSvg,g=l.bbox,T=g.width+n.padding+(g.height+n.padding),k=[{x:T/2,y:0},{x:T,y:-T/2},{x:T/2,y:-T},{x:0,y:-T/2}];y.info("Question main (Circle)");var S=Fa(d,T,T,k);return S.attr("style",n.style),ei(n,S),n.intersect=function(N){return y.warn("Intersect called"),Qa(n,k,N)},d},rect:function(i,n){var l=Mi(i,n,"node "+n.classes,!0),d=l.shapeSvg,g=l.bbox,T=l.halfPadding;y.trace("Classes = ",n.classes);var k=d.insert("rect",":first-child"),S=g.width+n.padding,N=g.height+n.padding;if(k.attr("class","basic label-container").attr("style",n.style).attr("rx",n.rx).attr("ry",n.ry).attr("x",-g.width/2-T).attr("y",-g.height/2-T).attr("width",S).attr("height",N),n.props){var O=new Set(Object.keys(n.props));n.props.borders&&(nl(k,n.props.borders,S,N),O.delete("borders")),O.forEach(function(q){y.warn("Unknown node property ".concat(q))})}return ei(n,k),n.intersect=function(q){return jo(n,q)},d},labelRect:function(i,n){var l=Mi(i,n,"label",!0),d=l.shapeSvg;y.trace("Classes = ",n.classes);var g=d.insert("rect",":first-child");if(g.attr("width",0).attr("height",0),d.attr("class","label edgeLabel"),n.props){var T=new Set(Object.keys(n.props));n.props.borders&&(nl(g,n.props.borders,0,0),T.delete("borders")),T.forEach(function(k){y.warn("Unknown node property ".concat(k))})}return ei(n,g),n.intersect=function(k){return jo(n,k)},d},rectWithTitle:function(i,n){var l;l=n.classes?"node "+n.classes:"node default";var d,g=i.insert("g").attr("class",l).attr("id",n.domId||n.id),T=g.insert("rect",":first-child"),k=g.insert("line"),S=g.insert("g").attr("class","label"),N=n.labelText.flat?n.labelText.flat():n.labelText;d=ws(N)==="object"?N[0]:N,y.info("Label text abc79",d,N,ws(N)==="object");var O=S.node().appendChild(Zi(d,n.labelStyle,!0,!0)),q={width:0,height:0};if(rn(Dt().flowchart.htmlLabels)){var V=O.children[0],et=(0,w.select)(O);q=V.getBoundingClientRect(),et.attr("width",q.width),et.attr("height",q.height)}y.info("Text 2",N);var Q=N.slice(1,N.length),Tt=O.getBBox(),St=S.node().appendChild(Zi(Q.join?Q.join("<br/>"):Q,n.labelStyle,!0,!0));if(rn(Dt().flowchart.htmlLabels)){var Lt=St.children[0],Nt=(0,w.select)(St);q=Lt.getBoundingClientRect(),Nt.attr("width",q.width),Nt.attr("height",q.height)}var Ot=n.padding/2;return(0,w.select)(St).attr("transform","translate( "+(q.width>Tt.width?0:(Tt.width-q.width)/2)+", "+(Tt.height+Ot+5)+")"),(0,w.select)(O).attr("transform","translate( "+(q.width<Tt.width?0:-(Tt.width-q.width)/2)+", 0)"),q=S.node().getBBox(),S.attr("transform","translate("+-q.width/2+", "+(-q.height/2-Ot+3)+")"),T.attr("class","outer title-state").attr("x",-q.width/2-Ot).attr("y",-q.height/2-Ot).attr("width",q.width+n.padding).attr("height",q.height+n.padding),k.attr("class","divider").attr("x1",-q.width/2-Ot).attr("x2",q.width/2+Ot).attr("y1",-q.height/2-Ot+Tt.height+Ot).attr("y2",-q.height/2-Ot+Tt.height+Ot),ei(n,T),n.intersect=function(Ft){return jo(n,Ft)},g},choice:function(i,n){var l=i.insert("g").attr("class","node default").attr("id",n.domId||n.id);return l.insert("polygon",":first-child").attr("points",[{x:0,y:14},{x:14,y:0},{x:0,y:-14},{x:-14,y:0}].map(function(d){return d.x+","+d.y}).join(" ")).attr("class","state-start").attr("r",7).attr("width",28).attr("height",28),n.width=28,n.height=28,n.intersect=function(d){return ks(n,14,d)},l},circle:function(i,n){var l=Mi(i,n,void 0,!0),d=l.shapeSvg,g=l.bbox,T=l.halfPadding,k=d.insert("circle",":first-child");return k.attr("style",n.style).attr("rx",n.rx).attr("ry",n.ry).attr("r",g.width/2+T).attr("width",g.width+n.padding).attr("height",g.height+n.padding),y.info("Circle main"),ei(n,k),n.intersect=function(S){return y.info("Circle intersect",n,g.width/2+T,S),ks(n,g.width/2+T,S)},d},doublecircle:function(i,n){var l=Mi(i,n,void 0,!0),d=l.shapeSvg,g=l.bbox,T=l.halfPadding,k=d.insert("g",":first-child"),S=k.insert("circle"),N=k.insert("circle");return S.attr("style",n.style).attr("rx",n.rx).attr("ry",n.ry).attr("r",g.width/2+T+5).attr("width",g.width+n.padding+10).attr("height",g.height+n.padding+10),N.attr("style",n.style).attr("rx",n.rx).attr("ry",n.ry).attr("r",g.width/2+T).attr("width",g.width+n.padding).attr("height",g.height+n.padding),y.info("DoubleCircle main"),ei(n,S),n.intersect=function(O){return y.info("DoubleCircle intersect",n,g.width/2+T+5,O),ks(n,g.width/2+T+5,O)},d},stadium:function(i,n){var l=Mi(i,n,void 0,!0),d=l.shapeSvg,g=l.bbox,T=g.height+n.padding,k=g.width+T/4+n.padding,S=d.insert("rect",":first-child").attr("style",n.style).attr("rx",T/2).attr("ry",T/2).attr("x",-k/2).attr("y",-T/2).attr("width",k).attr("height",T);return ei(n,S),n.intersect=function(N){return jo(n,N)},d},hexagon:function(i,n){var l=Mi(i,n,void 0,!0),d=l.shapeSvg,g=l.bbox,T=g.height+n.padding,k=T/4,S=g.width+2*k+n.padding,N=[{x:k,y:0},{x:S-k,y:0},{x:S,y:-T/2},{x:S-k,y:-T},{x:k,y:-T},{x:0,y:-T/2}],O=Fa(d,S,T,N);return O.attr("style",n.style),ei(n,O),n.intersect=function(q){return Qa(n,N,q)},d},rect_left_inv_arrow:function(i,n){var l=Mi(i,n,void 0,!0),d=l.shapeSvg,g=l.bbox,T=g.width+n.padding,k=g.height+n.padding,S=[{x:-k/2,y:0},{x:T,y:0},{x:T,y:-k},{x:-k/2,y:-k},{x:0,y:-k/2}];return Fa(d,T,k,S).attr("style",n.style),n.width=T+k,n.height=k,n.intersect=function(N){return Qa(n,S,N)},d},lean_right:function(i,n){var l=Mi(i,n,void 0,!0),d=l.shapeSvg,g=l.bbox,T=g.width+n.padding,k=g.height+n.padding,S=[{x:-2*k/6,y:0},{x:T-k/6,y:0},{x:T+2*k/6,y:-k},{x:k/6,y:-k}],N=Fa(d,T,k,S);return N.attr("style",n.style),ei(n,N),n.intersect=function(O){return Qa(n,S,O)},d},lean_left:function(i,n){var l=Mi(i,n,void 0,!0),d=l.shapeSvg,g=l.bbox,T=g.width+n.padding,k=g.height+n.padding,S=[{x:2*k/6,y:0},{x:T+k/6,y:0},{x:T-2*k/6,y:-k},{x:-k/6,y:-k}],N=Fa(d,T,k,S);return N.attr("style",n.style),ei(n,N),n.intersect=function(O){return Qa(n,S,O)},d},trapezoid:function(i,n){var l=Mi(i,n,void 0,!0),d=l.shapeSvg,g=l.bbox,T=g.width+n.padding,k=g.height+n.padding,S=[{x:-2*k/6,y:0},{x:T+2*k/6,y:0},{x:T-k/6,y:-k},{x:k/6,y:-k}],N=Fa(d,T,k,S);return N.attr("style",n.style),ei(n,N),n.intersect=function(O){return Qa(n,S,O)},d},inv_trapezoid:function(i,n){var l=Mi(i,n,void 0,!0),d=l.shapeSvg,g=l.bbox,T=g.width+n.padding,k=g.height+n.padding,S=[{x:k/6,y:0},{x:T-k/6,y:0},{x:T+2*k/6,y:-k},{x:-2*k/6,y:-k}],N=Fa(d,T,k,S);return N.attr("style",n.style),ei(n,N),n.intersect=function(O){return Qa(n,S,O)},d},rect_right_inv_arrow:function(i,n){var l=Mi(i,n,void 0,!0),d=l.shapeSvg,g=l.bbox,T=g.width+n.padding,k=g.height+n.padding,S=[{x:0,y:0},{x:T+k/2,y:0},{x:T,y:-k/2},{x:T+k/2,y:-k},{x:0,y:-k}],N=Fa(d,T,k,S);return N.attr("style",n.style),ei(n,N),n.intersect=function(O){return Qa(n,S,O)},d},cylinder:function(i,n){var l=Mi(i,n,void 0,!0),d=l.shapeSvg,g=l.bbox,T=g.width+n.padding,k=T/2,S=k/(2.5+T/50),N=g.height+S+n.padding,O="M 0,"+S+" a "+k+","+S+" 0,0,0 "+T+" 0 a "+k+","+S+" 0,0,0 "+-T+" 0 l 0,"+N+" a "+k+","+S+" 0,0,0 "+T+" 0 l 0,"+-N,q=d.attr("label-offset-y",S).insert("path",":first-child").attr("style",n.style).attr("d",O).attr("transform","translate("+-T/2+","+-(N/2+S)+")");return ei(n,q),n.intersect=function(V){var et=jo(n,V),Q=et.x-n.x;if(k!=0&&(Math.abs(Q)<n.width/2||Math.abs(Q)==n.width/2&&Math.abs(et.y-n.y)>n.height/2-S)){var Tt=S*S*(1-Q*Q/(k*k));Tt!=0&&(Tt=Math.sqrt(Tt)),Tt=S-Tt,V.y-n.y>0&&(Tt=-Tt),et.y+=Tt}return et},d},start:function(i,n){var l=i.insert("g").attr("class","node default").attr("id",n.domId||n.id),d=l.insert("circle",":first-child");return d.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14),ei(n,d),n.intersect=function(g){return ks(n,7,g)},l},end:function(i,n){var l=i.insert("g").attr("class","node default").attr("id",n.domId||n.id),d=l.insert("circle",":first-child"),g=l.insert("circle",":first-child");return g.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14),d.attr("class","state-end").attr("r",5).attr("width",10).attr("height",10),ei(n,g),n.intersect=function(T){return ks(n,7,T)},l},note:function(i,n){var l=Mi(i,n,"node "+n.classes,!0),d=l.shapeSvg,g=l.bbox,T=l.halfPadding;y.info("Classes = ",n.classes);var k=d.insert("rect",":first-child");return k.attr("rx",n.rx).attr("ry",n.ry).attr("x",-g.width/2-T).attr("y",-g.height/2-T).attr("width",g.width+n.padding).attr("height",g.height+n.padding),ei(n,k),n.intersect=function(S){return jo(n,S)},d},subroutine:function(i,n){var l=Mi(i,n,void 0,!0),d=l.shapeSvg,g=l.bbox,T=g.width+n.padding,k=g.height+n.padding,S=[{x:0,y:0},{x:T,y:0},{x:T,y:-k},{x:0,y:-k},{x:0,y:0},{x:-8,y:0},{x:T+8,y:0},{x:T+8,y:-k},{x:-8,y:-k},{x:-8,y:0}],N=Fa(d,T,k,S);return N.attr("style",n.style),ei(n,N),n.intersect=function(O){return Qa(n,S,O)},d},fork:e1,join:e1,class_box:function(i,n){var l,d=n.padding/2;l=n.classes?"node "+n.classes:"node default";var g=i.insert("g").attr("class",l).attr("id",n.domId||n.id),T=g.insert("rect",":first-child"),k=g.insert("line"),S=g.insert("line"),N=0,O=4,q=g.insert("g").attr("class","label"),V=0,et=n.classData.annotations&&n.classData.annotations[0],Q=n.classData.annotations[0]?"\xAB"+n.classData.annotations[0]+"\xBB":"",Tt=q.node().appendChild(Zi(Q,n.labelStyle,!0,!0)),St=Tt.getBBox();if(rn(Dt().flowchart.htmlLabels)){var Lt=Tt.children[0],Nt=(0,w.select)(Tt);St=Lt.getBoundingClientRect(),Nt.attr("width",St.width),Nt.attr("height",St.height)}n.classData.annotations[0]&&(O+=St.height+4,N+=St.width);var Ot=n.classData.id;n.classData.type!==void 0&&n.classData.type!==""&&(Dt().flowchart.htmlLabels?Ot+="&lt;"+n.classData.type+"&gt;":Ot+="<"+n.classData.type+">");var Ft=q.node().appendChild(Zi(Ot,n.labelStyle,!0,!0));(0,w.select)(Ft).attr("class","classTitle");var _t=Ft.getBBox();if(rn(Dt().flowchart.htmlLabels)){var ee=Ft.children[0],ke=(0,w.select)(Ft);_t=ee.getBoundingClientRect(),ke.attr("width",_t.width),ke.attr("height",_t.height)}O+=_t.height+4,_t.width>N&&(N=_t.width);var ue=[];n.classData.members.forEach(function(Wt){var ie=Qc(Wt),ce=ie.displayText;Dt().flowchart.htmlLabels&&(ce=ce.replace(/</g,"&lt;").replace(/>/g,"&gt;"));var oe=q.node().appendChild(Zi(ce,ie.cssStyle?ie.cssStyle:n.labelStyle,!0,!0)),Ne=oe.getBBox();if(rn(Dt().flowchart.htmlLabels)){var Ce=oe.children[0],je=(0,w.select)(oe);Ne=Ce.getBoundingClientRect(),je.attr("width",Ne.width),je.attr("height",Ne.height)}Ne.width>N&&(N=Ne.width),O+=Ne.height+4,ue.push(oe)}),O+=8;var ve=[];if(n.classData.methods.forEach(function(Wt){var ie=Qc(Wt),ce=ie.displayText;Dt().flowchart.htmlLabels&&(ce=ce.replace(/</g,"&lt;").replace(/>/g,"&gt;"));var oe=q.node().appendChild(Zi(ce,ie.cssStyle?ie.cssStyle:n.labelStyle,!0,!0)),Ne=oe.getBBox();if(rn(Dt().flowchart.htmlLabels)){var Ce=oe.children[0],je=(0,w.select)(oe);Ne=Ce.getBoundingClientRect(),je.attr("width",Ne.width),je.attr("height",Ne.height)}Ne.width>N&&(N=Ne.width),O+=Ne.height+4,ve.push(oe)}),O+=8,et){var Rt=(N-St.width)/2;(0,w.select)(Tt).attr("transform","translate( "+(-1*N/2+Rt)+", "+-1*O/2+")"),V=St.height+4}var le=(N-_t.width)/2;return(0,w.select)(Ft).attr("transform","translate( "+(-1*N/2+le)+", "+(-1*O/2+V)+")"),V+=_t.height+4,k.attr("class","divider").attr("x1",-N/2-d).attr("x2",N/2+d).attr("y1",-O/2-d+8+V).attr("y2",-O/2-d+8+V),V+=8,ue.forEach(function(Wt){(0,w.select)(Wt).attr("transform","translate( "+-N/2+", "+(-1*O/2+V+4)+")"),V+=_t.height+4}),V+=8,S.attr("class","divider").attr("x1",-N/2-d).attr("x2",N/2+d).attr("y1",-O/2-d+8+V).attr("y2",-O/2-d+8+V),V+=8,ve.forEach(function(Wt){(0,w.select)(Wt).attr("transform","translate( "+-N/2+", "+(-1*O/2+V)+")"),V+=_t.height+4}),T.attr("class","outer title-state").attr("x",-N/2-d).attr("y",-O/2-d).attr("width",N+n.padding).attr("height",O+n.padding),ei(n,T),n.intersect=function(Wt){return jo(n,Wt)},g}},yo={},rl=function(i){var n=yo[i.id];y.trace("Transforming node",i.diff,i,"translate("+(i.x-i.width/2-5)+", "+i.width/2+")");var l=i.diff||0;return i.clusterNode?n.attr("transform","translate("+(i.x+l-i.width/2)+", "+(i.y-i.height/2-8)+")"):n.attr("transform","translate("+i.x+", "+i.y+")"),l},Ka={rect:function(i,n){y.trace("Creating subgraph rect for ",n.id,n);var l=i.insert("g").attr("class","cluster"+(n.class?" "+n.class:"")).attr("id",n.id),d=l.insert("rect",":first-child"),g=l.insert("g").attr("class","cluster-label"),T=g.node().appendChild(Zi(n.labelText,n.labelStyle,void 0,!0)),k=T.getBBox();if(rn(Dt().flowchart.htmlLabels)){var S=T.children[0],N=(0,w.select)(T);k=S.getBoundingClientRect(),N.attr("width",k.width),N.attr("height",k.height)}var O=0*n.padding,q=O/2,V=n.width<=k.width+O?k.width+O:n.width;n.width<=k.width+O?n.diff=(k.width-n.width)/2-n.padding/2:n.diff=-n.padding/2,y.trace("Data ",n,JSON.stringify(n)),d.attr("style",n.style).attr("rx",n.rx).attr("ry",n.ry).attr("x",n.x-V/2).attr("y",n.y-n.height/2-q).attr("width",V).attr("height",n.height+O),g.attr("transform","translate("+(n.x-k.width/2)+", "+(n.y-n.height/2+n.padding/3)+")");var et=d.node().getBBox();return n.width=et.width,n.height=et.height,n.intersect=function(Q){return Po(n,Q)},l},roundedWithTitle:function(i,n){var l=i.insert("g").attr("class",n.classes).attr("id",n.id),d=l.insert("rect",":first-child"),g=l.insert("g").attr("class","cluster-label"),T=l.append("rect"),k=g.node().appendChild(Zi(n.labelText,n.labelStyle,void 0,!0)),S=k.getBBox();if(rn(Dt().flowchart.htmlLabels)){var N=k.children[0],O=(0,w.select)(k);S=N.getBoundingClientRect(),O.attr("width",S.width),O.attr("height",S.height)}S=k.getBBox();var q=0*n.padding,V=q/2,et=n.width<=S.width+n.padding?S.width+n.padding:n.width;n.width<=S.width+n.padding?n.diff=(S.width+0*n.padding-n.width)/2:n.diff=-n.padding/2,d.attr("class","outer").attr("x",n.x-et/2-V).attr("y",n.y-n.height/2-V).attr("width",et+q).attr("height",n.height+q),T.attr("class","inner").attr("x",n.x-et/2-V).attr("y",n.y-n.height/2-V+S.height-1).attr("width",et+q).attr("height",n.height+q-S.height-3),g.attr("transform","translate("+(n.x-S.width/2)+", "+(n.y-n.height/2-n.padding/3+(rn(Dt().flowchart.htmlLabels)?5:3))+")");var Q=d.node().getBBox();return n.height=Q.height,n.intersect=function(Tt){return Po(n,Tt)},l},noteGroup:function(i,n){var l=i.insert("g").attr("class","note-cluster").attr("id",n.id),d=l.insert("rect",":first-child"),g=0*n.padding,T=g/2;d.attr("rx",n.rx).attr("ry",n.ry).attr("x",n.x-n.width/2-T).attr("y",n.y-n.height/2-T).attr("width",n.width+g).attr("height",n.height+g).attr("fill","none");var k=d.node().getBBox();return n.width=k.width,n.height=k.height,n.intersect=function(S){return Po(n,S)},l},divider:function(i,n){var l=i.insert("g").attr("class",n.classes).attr("id",n.id),d=l.insert("rect",":first-child"),g=0*n.padding,T=g/2;d.attr("class","divider").attr("x",n.x-n.width/2-T).attr("y",n.y-n.height/2).attr("width",n.width+g).attr("height",n.height+g);var k=d.node().getBBox();return n.width=k.width,n.height=k.height,n.diff=-n.padding/2,n.intersect=function(S){return Po(n,S)},l}},Ca={},Ja={},pi={},r1=function(i,n){var l=Zi(n.label,n.labelStyle),d=i.insert("g").attr("class","edgeLabel"),g=d.insert("g").attr("class","label");g.node().appendChild(l);var T,k=l.getBBox();if(rn(Dt().flowchart.htmlLabels)){var S=l.children[0],N=(0,w.select)(l);k=S.getBoundingClientRect(),N.attr("width",k.width),N.attr("height",k.height)}if(g.attr("transform","translate("+-k.width/2+", "+-k.height/2+")"),Ja[n.id]=d,n.width=k.width,n.height=k.height,n.startLabelLeft){var O=Zi(n.startLabelLeft,n.labelStyle),q=i.insert("g").attr("class","edgeTerminals"),V=q.insert("g").attr("class","inner");T=V.node().appendChild(O);var et=O.getBBox();V.attr("transform","translate("+-et.width/2+", "+-et.height/2+")"),pi[n.id]||(pi[n.id]={}),pi[n.id].startLeft=q,Ts(T,n.startLabelLeft)}if(n.startLabelRight){var Q=Zi(n.startLabelRight,n.labelStyle),Tt=i.insert("g").attr("class","edgeTerminals"),St=Tt.insert("g").attr("class","inner");T=Tt.node().appendChild(Q),St.node().appendChild(Q);var Lt=Q.getBBox();St.attr("transform","translate("+-Lt.width/2+", "+-Lt.height/2+")"),pi[n.id]||(pi[n.id]={}),pi[n.id].startRight=Tt,Ts(T,n.startLabelRight)}if(n.endLabelLeft){var Nt=Zi(n.endLabelLeft,n.labelStyle),Ot=i.insert("g").attr("class","edgeTerminals"),Ft=Ot.insert("g").attr("class","inner");T=Ft.node().appendChild(Nt);var _t=Nt.getBBox();Ft.attr("transform","translate("+-_t.width/2+", "+-_t.height/2+")"),Ot.node().appendChild(Nt),pi[n.id]||(pi[n.id]={}),pi[n.id].endLeft=Ot,Ts(T,n.endLabelLeft)}if(n.endLabelRight){var ee=Zi(n.endLabelRight,n.labelStyle),ke=i.insert("g").attr("class","edgeTerminals"),ue=ke.insert("g").attr("class","inner");T=ue.node().appendChild(ee);var ve=ee.getBBox();ue.attr("transform","translate("+-ve.width/2+", "+-ve.height/2+")"),ke.node().appendChild(ee),pi[n.id]||(pi[n.id]={}),pi[n.id].endRight=ke,Ts(T,n.endLabelRight)}};function Ts(i,n){Dt().flowchart.htmlLabels&&i&&(i.style.width=9*n.length+"px",i.style.height="12px")}var i1=function(i,n){y.info("Moving label abc78 ",i.id,i.label,Ja[i.id]);var l=n.updatedPath?n.updatedPath:n.originalPath;if(i.label){var d=Ja[i.id],g=i.x,T=i.y;if(l){var k=qn.calcLabelPosition(l);y.info("Moving label from (",g,",",T,") to (",k.x,",",k.y,") abc78")}d.attr("transform","translate("+g+", "+T+")")}if(i.startLabelLeft){var S=pi[i.id].startLeft,N=i.x,O=i.y;if(l){var q=qn.calcTerminalLabelPosition(i.arrowTypeStart?10:0,"start_left",l);N=q.x,O=q.y}S.attr("transform","translate("+N+", "+O+")")}if(i.startLabelRight){var V=pi[i.id].startRight,et=i.x,Q=i.y;if(l){var Tt=qn.calcTerminalLabelPosition(i.arrowTypeStart?10:0,"start_right",l);et=Tt.x,Q=Tt.y}V.attr("transform","translate("+et+", "+Q+")")}if(i.endLabelLeft){var St=pi[i.id].endLeft,Lt=i.x,Nt=i.y;if(l){var Ot=qn.calcTerminalLabelPosition(i.arrowTypeEnd?10:0,"end_left",l);Lt=Ot.x,Nt=Ot.y}St.attr("transform","translate("+Lt+", "+Nt+")")}if(i.endLabelRight){var Ft=pi[i.id].endRight,_t=i.x,ee=i.y;if(l){var ke=qn.calcTerminalLabelPosition(i.arrowTypeEnd?10:0,"end_right",l);_t=ke.x,ee=ke.y}Ft.attr("transform","translate("+_t+", "+ee+")")}},cu=function(i,n){y.warn("abc88 cutPathAtIntersect",i,n);var l=[],d=i[0],g=!1;return i.forEach(function(T){if(y.info("abc88 checking point",T,n),function(N,O){var q=N.x,V=N.y,et=Math.abs(O.x-q),Q=Math.abs(O.y-V),Tt=N.width/2,St=N.height/2;return et>=Tt||Q>=St}(n,T)||g)y.warn("abc88 outside",T,d),d=T,g||l.push(T);else{var k=function(N,O,q){y.warn(`intersection calc abc89:
outsidePoint: `.concat(JSON.stringify(O),`
insidePoint : `).concat(JSON.stringify(q),`
node : x:`).concat(N.x," y:").concat(N.y," w:").concat(N.width," h:").concat(N.height));var V=N.x,et=N.y,Q=Math.abs(V-q.x),Tt=N.width/2,St=q.x<O.x?Tt-Q:Tt+Q,Lt=N.height/2,Nt=Math.abs(O.y-q.y),Ot=Math.abs(O.x-q.x);if(Math.abs(et-O.y)*Tt>Math.abs(V-O.x)*Lt){var Ft=q.y<O.y?O.y-Lt-et:et-Lt-O.y;St=Ot*Ft/Nt;var _t={x:q.x<O.x?q.x+St:q.x-Ot+St,y:q.y<O.y?q.y+Nt-Ft:q.y-Nt+Ft};return St===0&&(_t.x=O.x,_t.y=O.y),Ot===0&&(_t.x=O.x),Nt===0&&(_t.y=O.y),y.warn("abc89 topp/bott calc, Q ".concat(Nt,", q ").concat(Ft,", R ").concat(Ot,", r ").concat(St),_t),_t}var ee=Nt*(St=q.x<O.x?O.x-Tt-V:V-Tt-O.x)/Ot,ke=q.x<O.x?q.x+Ot-St:q.x-Ot+St,ue=q.y<O.y?q.y+ee:q.y-ee;return y.warn("sides calc abc89, Q ".concat(Nt,", q ").concat(ee,", R ").concat(Ot,", r ").concat(St),{_x:ke,_y:ue}),St===0&&(ke=O.x,ue=O.y),Ot===0&&(ke=O.x),Nt===0&&(ue=O.y),{x:ke,y:ue}}(n,d,T);y.warn("abc88 inside",T,d,k),y.warn("abc88 intersection",k);var S=!1;l.forEach(function(N){S=S||N.x===k.x&&N.y===k.y}),l.find(function(N){return N.x===k.x&&N.y===k.y})?y.warn("abc88 no intersect",k,l):l.push(k),g=!0}}),y.warn("abc88 returning points",l),l},a1=function i(n,l,d,g){y.info("Graph in recursive render: XXX",di().json.write(l),g);var T=l.graph().rankdir;y.trace("Dir in recursive render - dir:",T);var k=n.insert("g").attr("class","root");l.nodes()?y.info("Recursive render XXX",l.nodes()):y.info("No nodes found for",l),l.edges().length>0&&y.trace("Recursive edges",l.edge(l.edges()[0]));var S=k.insert("g").attr("class","clusters"),N=k.insert("g").attr("class","edgePaths"),O=k.insert("g").attr("class","edgeLabels"),q=k.insert("g").attr("class","nodes");l.nodes().forEach(function(et){var Q=l.node(et);if(g!==void 0){var Tt=JSON.parse(JSON.stringify(g.clusterData));y.info("Setting data for cluster XXX (",et,") ",Tt,g),l.setNode(g.id,Tt),l.parent(et)||(y.trace("Setting parent",et,g.id),l.setParent(et,g.id,Tt))}if(y.info("(Insert) Node XXX"+et+": "+JSON.stringify(l.node(et))),Q&&Q.clusterNode){y.info("Cluster identified",et,Q.width,l.node(et));var St=i(q,Q.graph,d,l.node(et)),Lt=St.elem;ei(Q,Lt),Q.diff=St.diff||0,y.info("Node bounds (abc123)",et,Q,Q.width,Q.x,Q.y),function(Nt,Ot){yo[Ot.id]=Nt}(Lt,Q),y.warn("Recursive render complete ",Lt,Q)}else l.children(et).length>0?(y.info("Cluster - the non recursive path XXX",et,Q.id,Q,l),y.info(Fo(Q.id,l)),Kn[Q.id]={id:Fo(Q.id,l),node:Q}):(y.info("Node - the non recursive path",et,Q.id,Q),function(Nt,Ot,Ft){var _t,ee,ke;Ot.link?(Dt().securityLevel==="sandbox"?ke="_top":Ot.linkTarget&&(ke=Ot.linkTarget||"_blank"),_t=Nt.insert("svg:a").attr("xlink:href",Ot.link).attr("target",ke),ee=n1[Ot.shape](_t,Ot,Ft)):_t=ee=n1[Ot.shape](Nt,Ot,Ft),Ot.tooltip&&ee.attr("title",Ot.tooltip),Ot.class&&ee.attr("class","node default "+Ot.class),yo[Ot.id]=_t,Ot.haveCallback&&yo[Ot.id].attr("class",yo[Ot.id].attr("class")+" clickable")}(q,l.node(et),T))}),l.edges().forEach(function(et){var Q=l.edge(et.v,et.w,et.name);y.info("Edge "+et.v+" -> "+et.w+": "+JSON.stringify(et)),y.info("Edge "+et.v+" -> "+et.w+": ",et," ",JSON.stringify(l.edge(et))),y.info("Fix",Kn,"ids:",et.v,et.w,"Translateing: ",Kn[et.v],Kn[et.w]),r1(O,Q)}),l.edges().forEach(function(et){y.info("Edge "+et.v+" -> "+et.w+": "+JSON.stringify(et))}),y.info("#############################################"),y.info("### Layout ###"),y.info("#############################################"),y.info(l),_s().layout(l),y.info("Graph after layout:",di().json.write(l));var V=0;return bc(l).forEach(function(et){var Q=l.node(et);y.info("Position "+et+": "+JSON.stringify(l.node(et))),y.info("Position "+et+": ("+Q.x,","+Q.y,") width: ",Q.width," height: ",Q.height),Q&&Q.clusterNode?rl(Q):l.children(et).length>0?(function(Tt,St){y.trace("Inserting cluster");var Lt=St.shape||"rect";Ca[St.id]=Ka[Lt](Tt,St)}(S,Q),Kn[Q.id].node=Q):rl(Q)}),l.edges().forEach(function(et){var Q=l.edge(et);y.info("Edge "+et.v+" -> "+et.w+": "+JSON.stringify(Q),Q);var Tt=function(St,Lt,Nt,Ot,Ft,_t){var ee=Nt.points,ke=!1,ue=_t.node(Lt.v),ve=_t.node(Lt.w);y.info("abc88 InsertEdge: ",Nt),ve.intersect&&ue.intersect&&((ee=ee.slice(1,Nt.points.length-1)).unshift(ue.intersect(ee[0])),y.info("Last point",ee[ee.length-1],ve,ve.intersect(ee[ee.length-1])),ee.push(ve.intersect(ee[ee.length-1]))),Nt.toCluster&&(y.info("to cluster abc88",Ot[Nt.toCluster]),ee=cu(Nt.points,Ot[Nt.toCluster].node),ke=!0),Nt.fromCluster&&(y.info("from cluster abc88",Ot[Nt.fromCluster]),ee=cu(ee.reverse(),Ot[Nt.fromCluster].node).reverse(),ke=!0);var Rt,le=ee.filter(function(Ce){return!Number.isNaN(Ce.y)});Rt=(Ft==="graph"||Ft==="flowchart")&&Nt.curve||w.curveBasis;var Wt,ie=(0,w.line)().x(function(Ce){return Ce.x}).y(function(Ce){return Ce.y}).curve(Rt);switch(Nt.thickness){case"normal":Wt="edge-thickness-normal";break;case"thick":Wt="edge-thickness-thick";break;default:Wt=""}switch(Nt.pattern){case"solid":Wt+=" edge-pattern-solid";break;case"dotted":Wt+=" edge-pattern-dotted";break;case"dashed":Wt+=" edge-pattern-dashed"}var ce=St.append("path").attr("d",ie(le)).attr("id",Nt.id).attr("class"," "+Wt+(Nt.classes?" "+Nt.classes:"")).attr("style",Nt.style),oe="";switch(Dt().state.arrowMarkerAbsolute&&(oe=(oe=(oe=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search).replace(/\(/g,"\\(")).replace(/\)/g,"\\)")),y.info("arrowTypeStart",Nt.arrowTypeStart),y.info("arrowTypeEnd",Nt.arrowTypeEnd),Nt.arrowTypeStart){case"arrow_cross":ce.attr("marker-start","url("+oe+"#"+Ft+"-crossStart)");break;case"arrow_point":ce.attr("marker-start","url("+oe+"#"+Ft+"-pointStart)");break;case"arrow_barb":ce.attr("marker-start","url("+oe+"#"+Ft+"-barbStart)");break;case"arrow_circle":ce.attr("marker-start","url("+oe+"#"+Ft+"-circleStart)");break;case"aggregation":ce.attr("marker-start","url("+oe+"#"+Ft+"-aggregationStart)");break;case"extension":ce.attr("marker-start","url("+oe+"#"+Ft+"-extensionStart)");break;case"composition":ce.attr("marker-start","url("+oe+"#"+Ft+"-compositionStart)");break;case"dependency":ce.attr("marker-start","url("+oe+"#"+Ft+"-dependencyStart)");break;case"lollipop":ce.attr("marker-start","url("+oe+"#"+Ft+"-lollipopStart)")}switch(Nt.arrowTypeEnd){case"arrow_cross":ce.attr("marker-end","url("+oe+"#"+Ft+"-crossEnd)");break;case"arrow_point":ce.attr("marker-end","url("+oe+"#"+Ft+"-pointEnd)");break;case"arrow_barb":ce.attr("marker-end","url("+oe+"#"+Ft+"-barbEnd)");break;case"arrow_circle":ce.attr("marker-end","url("+oe+"#"+Ft+"-circleEnd)");break;case"aggregation":ce.attr("marker-end","url("+oe+"#"+Ft+"-aggregationEnd)");break;case"extension":ce.attr("marker-end","url("+oe+"#"+Ft+"-extensionEnd)");break;case"composition":ce.attr("marker-end","url("+oe+"#"+Ft+"-compositionEnd)");break;case"dependency":ce.attr("marker-end","url("+oe+"#"+Ft+"-dependencyEnd)");break;case"lollipop":ce.attr("marker-end","url("+oe+"#"+Ft+"-lollipopEnd)")}var Ne={};return ke&&(Ne.updatedPath=ee),Ne.originalPath=Nt.points,Ne}(N,et,Q,Kn,d,l);i1(Q,Tt)}),l.nodes().forEach(function(et){var Q=l.node(et);y.info(et,Q.type,Q.diff),Q.type==="group"&&(V=Q.diff)}),{elem:k,diff:V}},il=function(i,n,l,d,g){Kh(i,l,d,g),yo={},Ja={},pi={},Ca={},Sa={},sa={},Kn={},y.warn("Graph at first:",di().json.write(n)),tl(n),y.warn("Graph after:",di().json.write(n)),a1(i,n,d)};function o1(i){var n;switch(i){case 0:n="aggregation";break;case 1:n="extension";break;case 2:n="composition";break;case 3:n="dependency";break;case 4:n="lollipop";break;default:n="none"}return n}const af={setConf:function(i){Object.keys(i).forEach(function(n){i[n]})},draw:function(i,n,l,d){y.info("Drawing class - ",n);var g=Dt().flowchart,T=Dt().securityLevel;y.info("config:",g);var k,S=g.nodeSpacing||50,N=g.rankSpacing||50,O=new(di()).Graph({multigraph:!0,compound:!0}).setGraph({rankdir:d.db.getDirection(),nodesep:S,ranksep:N,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}}),q=d.db.getClasses(),V=d.db.getRelations();y.info(V),function(ee,ke,ue,ve){var Rt=Object.keys(ee);y.info("keys:",Rt),y.info(ee),Rt.forEach(function(le){var Wt=ee[le],ie="";Wt.cssClasses.length>0&&(ie=ie+" "+Wt.cssClasses.join(" "));var ce,oe,Ne={labelStyle:""},Ce=Wt.text!==void 0?Wt.text:Wt.id;Wt.type,oe="class_box",ke.setNode(Wt.id,{labelStyle:Ne.labelStyle,shape:oe,labelText:(ce=Ce,an.sanitizeText(ce,Dt())),classData:Wt,rx:0,ry:0,class:ie,style:Ne.style,id:Wt.id,domId:Wt.domId,tooltip:ve.db.getTooltip(Wt.id)||"",haveCallback:Wt.haveCallback,link:Wt.link,width:Wt.type==="group"?500:void 0,type:Wt.type,padding:Dt().flowchart.padding}),y.info("setNode",{labelStyle:Ne.labelStyle,shape:oe,labelText:Ce,rx:0,ry:0,class:ie,style:Ne.style,id:Wt.id,width:Wt.type==="group"?500:void 0,type:Wt.type,padding:Dt().flowchart.padding})})}(q,O,0,d),function(ee,ke){var ue=Dt().flowchart,ve=0;ee.forEach(function(Rt){ve++;var le={classes:"relation"};le.pattern=Rt.relation.lineType==1?"dashed":"solid",le.id="id"+ve,Rt.type==="arrow_open"?le.arrowhead="none":le.arrowhead="normal",y.info(le,Rt),le.startLabelRight=Rt.relationTitle1==="none"?"":Rt.relationTitle1,le.endLabelLeft=Rt.relationTitle2==="none"?"":Rt.relationTitle2,le.arrowTypeStart=o1(Rt.relation.type1),le.arrowTypeEnd=o1(Rt.relation.type2);var Wt="",ie="";if(Rt.style!==void 0){var ce=Si(Rt.style);Wt=ce.style,ie=ce.labelStyle}else Wt="fill:none";le.style=Wt,le.labelStyle=ie,Rt.interpolate!==void 0?le.curve=da(Rt.interpolate,w.curveLinear):ee.defaultInterpolate!==void 0?le.curve=da(ee.defaultInterpolate,w.curveLinear):le.curve=da(ue.curve,w.curveLinear),Rt.text=Rt.title,Rt.text===void 0?Rt.style!==void 0&&(le.arrowheadStyle="fill: #333"):(le.arrowheadStyle="fill: #333",le.labelpos="c",Dt().flowchart.htmlLabels?(le.labelType="html",le.label='<span class="edgeLabel">'+Rt.text+"</span>"):(le.labelType="text",le.label=Rt.text.replace(an.lineBreakRegex,`
`),Rt.style===void 0&&(le.style=le.style||"stroke: #333; stroke-width: 1.5px;fill:none"),le.labelStyle=le.labelStyle.replace("color:","fill:"))),ke.setEdge(Rt.id1,Rt.id2,le,ve)})}(V,O),T==="sandbox"&&(k=(0,w.select)("#i"+n));var et=T==="sandbox"?(0,w.select)(k.nodes()[0].contentDocument.body):(0,w.select)("body"),Q=et.select('[id="'.concat(n,'"]')),Tt=et.select("#"+n+" g");if(il(Tt,O,["aggregation","extension","composition","dependency","lollipop"],"classDiagram",n),Lo(O,Q,g.diagramPadding,g.useMaxWidth),!g.htmlLabels)for(var St=T==="sandbox"?k.nodes()[0].contentDocument:document,Lt=St.querySelectorAll('[id="'+n+'"] .edgeLabel .label'),Nt=0;Nt<Lt.length;Nt++){var Ot=Lt[Nt],Ft=Ot.getBBox(),_t=St.createElementNS("http://www.w3.org/2000/svg","rect");_t.setAttribute("rx",0),_t.setAttribute("ry",0),_t.setAttribute("width",Ft.width),_t.setAttribute("height",Ft.height),Ot.insertBefore(_t,Ot.firstChild)}kr(d.db,Q,n)}};var lu=p(1362),uu=p.n(lu),xc={},hu=[],s1=function(i){return xc[i]===void 0&&(xc[i]={attributes:[]},y.info("Added new entity :",i)),xc[i]};const of={Cardinality:{ZERO_OR_ONE:"ZERO_OR_ONE",ZERO_OR_MORE:"ZERO_OR_MORE",ONE_OR_MORE:"ONE_OR_MORE",ONLY_ONE:"ONLY_ONE"},Identification:{NON_IDENTIFYING:"NON_IDENTIFYING",IDENTIFYING:"IDENTIFYING"},parseDirective:function(i,n,l){Bn.parseDirective(this,i,n,l)},getConfig:function(){return Dt().er},addEntity:s1,addAttributes:function(i,n){var l,d=s1(i);for(l=n.length-1;l>=0;l--)d.attributes.push(n[l]),y.debug("Added attribute ",n[l].attributeName)},getEntities:function(){return xc},addRelationship:function(i,n,l,d){var g={entityA:i,roleA:n,entityB:l,relSpec:d};hu.push(g),y.debug("Added new relationship :",g)},getRelationships:function(){return hu},clear:function(){xc={},hu=[],Kt()},setAccTitle:xr,getAccTitle:Or,setAccDescription:Vr,getAccDescription:li};var mo={ONLY_ONE_START:"ONLY_ONE_START",ONLY_ONE_END:"ONLY_ONE_END",ZERO_OR_ONE_START:"ZERO_OR_ONE_START",ZERO_OR_ONE_END:"ZERO_OR_ONE_END",ONE_OR_MORE_START:"ONE_OR_MORE_START",ONE_OR_MORE_END:"ONE_OR_MORE_END",ZERO_OR_MORE_START:"ZERO_OR_MORE_START",ZERO_OR_MORE_END:"ZERO_OR_MORE_END"};const zo=mo;var Br={},c1=function(i){return(i.entityA+i.roleA+i.entityB).replace(/\s/g,"")},l1=0;const sf={setConf:function(i){for(var n=Object.keys(i),l=0;l<n.length;l++)Br[n[l]]=i[n[l]]},draw:function(i,n,l,d){Br=Dt().er,y.info("Drawing ER diagram");var g,T=Dt().securityLevel;T==="sandbox"&&(g=(0,w.select)("#i"+n));var k,S=(T==="sandbox"?(0,w.select)(g.nodes()[0].contentDocument.body):(0,w.select)("body")).select("[id='".concat(n,"']"));(function(Lt,Nt){var Ot;Lt.append("defs").append("marker").attr("id",mo.ONLY_ONE_START).attr("refX",0).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("stroke",Nt.stroke).attr("fill","none").attr("d","M9,0 L9,18 M15,0 L15,18"),Lt.append("defs").append("marker").attr("id",mo.ONLY_ONE_END).attr("refX",18).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("stroke",Nt.stroke).attr("fill","none").attr("d","M3,0 L3,18 M9,0 L9,18"),(Ot=Lt.append("defs").append("marker").attr("id",mo.ZERO_OR_ONE_START).attr("refX",0).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto")).append("circle").attr("stroke",Nt.stroke).attr("fill","white").attr("cx",21).attr("cy",9).attr("r",6),Ot.append("path").attr("stroke",Nt.stroke).attr("fill","none").attr("d","M9,0 L9,18"),(Ot=Lt.append("defs").append("marker").attr("id",mo.ZERO_OR_ONE_END).attr("refX",30).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto")).append("circle").attr("stroke",Nt.stroke).attr("fill","white").attr("cx",9).attr("cy",9).attr("r",6),Ot.append("path").attr("stroke",Nt.stroke).attr("fill","none").attr("d","M21,0 L21,18"),Lt.append("defs").append("marker").attr("id",mo.ONE_OR_MORE_START).attr("refX",18).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("stroke",Nt.stroke).attr("fill","none").attr("d","M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27"),Lt.append("defs").append("marker").attr("id",mo.ONE_OR_MORE_END).attr("refX",27).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("stroke",Nt.stroke).attr("fill","none").attr("d","M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18"),(Ot=Lt.append("defs").append("marker").attr("id",mo.ZERO_OR_MORE_START).attr("refX",18).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto")).append("circle").attr("stroke",Nt.stroke).attr("fill","white").attr("cx",48).attr("cy",18).attr("r",6),Ot.append("path").attr("stroke",Nt.stroke).attr("fill","none").attr("d","M0,18 Q18,0 36,18 Q18,36 0,18"),(Ot=Lt.append("defs").append("marker").attr("id",mo.ZERO_OR_MORE_END).attr("refX",39).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto")).append("circle").attr("stroke",Nt.stroke).attr("fill","white").attr("cx",9).attr("cy",18).attr("r",6),Ot.append("path").attr("stroke",Nt.stroke).attr("fill","none").attr("d","M21,18 Q39,0 57,18 Q39,36 21,18")})(S,Br),k=new(di()).Graph({multigraph:!0,directed:!0,compound:!1}).setGraph({rankdir:Br.layoutDirection,marginx:20,marginy:20,nodesep:100,edgesep:100,ranksep:100}).setDefaultEdgeLabel(function(){return{}});var N,O,q=function(Lt,Nt,Ot){var Ft;return Object.keys(Nt).forEach(function(_t){var ee=Lt.append("g").attr("id",_t);Ft=Ft===void 0?_t:Ft;var ke="entity-"+_t,ue=ee.append("text").attr("class","er entityLabel").attr("id",ke).attr("x",0).attr("y",0).attr("dominant-baseline","middle").attr("text-anchor","middle").attr("style","font-family: "+Dt().fontFamily+"; font-size: "+Br.fontSize+"px").text(_t),ve=function(ie,ce,oe){var Ne=Br.entityPadding/3,Ce=Br.entityPadding/3,je=.85*Br.fontSize,_n=ce.node().getBBox(),Re=[],tn=!1,yn=!1,Ue=0,$e=0,bn=0,gr=0,fr=_n.height+2*Ne,jr=1;oe.forEach(function(zr){zr.attributeKeyType!==void 0&&(tn=!0),zr.attributeComment!==void 0&&(yn=!0)}),oe.forEach(function(zr){var Da="".concat(ce.node().id,"-attr-").concat(jr),ma=0,ds=Zn(zr.attributeType),qo=ie.append("text").attr("class","er entityLabel").attr("id","".concat(Da,"-type")).attr("x",0).attr("y",0).attr("dominant-baseline","middle").attr("text-anchor","left").attr("style","font-family: "+Dt().fontFamily+"; font-size: "+je+"px").text(ds),Va=ie.append("text").attr("class","er entityLabel").attr("id","".concat(Da,"-name")).attr("x",0).attr("y",0).attr("dominant-baseline","middle").attr("text-anchor","left").attr("style","font-family: "+Dt().fontFamily+"; font-size: "+je+"px").text(zr.attributeName),Na={};Na.tn=qo,Na.nn=Va;var Yl=qo.node().getBBox(),Ul=Va.node().getBBox();if(Ue=Math.max(Ue,Yl.width),$e=Math.max($e,Ul.width),ma=Math.max(Yl.height,Ul.height),tn){var $l=ie.append("text").attr("class","er entityLabel").attr("id","".concat(Da,"-key")).attr("x",0).attr("y",0).attr("dominant-baseline","middle").attr("text-anchor","left").attr("style","font-family: "+Dt().fontFamily+"; font-size: "+je+"px").text(zr.attributeKeyType||"");Na.kn=$l;var gh=$l.node().getBBox();bn=Math.max(bn,gh.width),ma=Math.max(ma,gh.height)}if(yn){var yh=ie.append("text").attr("class","er entityLabel").attr("id","".concat(Da,"-comment")).attr("x",0).attr("y",0).attr("dominant-baseline","middle").attr("text-anchor","left").attr("style","font-family: "+Dt().fontFamily+"; font-size: "+je+"px").text(zr.attributeComment||"");Na.cn=yh;var Vi=yh.node().getBBox();gr=Math.max(gr,Vi.width),ma=Math.max(ma,Vi.height)}Na.height=ma,Re.push(Na),fr+=ma+2*Ne,jr+=1});var dr=4;tn&&(dr+=2),yn&&(dr+=2);var mi=Ue+$e+bn+gr,ur={width:Math.max(Br.minEntityWidth,Math.max(_n.width+2*Br.entityPadding,mi+Ce*dr)),height:oe.length>0?fr:Math.max(Br.minEntityHeight,_n.height+2*Br.entityPadding)};if(oe.length>0){var Ma=Math.max(0,(ur.width-mi-Ce*dr)/(dr/2));ce.attr("transform","translate("+ur.width/2+","+(Ne+_n.height/2)+")");var la=_n.height+2*Ne,ai="attributeBoxOdd";Re.forEach(function(zr){var Da=la+Ne+zr.height/2;zr.tn.attr("transform","translate("+Ce+","+Da+")");var ma=ie.insert("rect","#"+zr.tn.node().id).attr("class","er ".concat(ai)).attr("fill",Br.fill).attr("fill-opacity","100%").attr("stroke",Br.stroke).attr("x",0).attr("y",la).attr("width",Ue+2*Ce+Ma).attr("height",zr.height+2*Ne),ds=parseFloat(ma.attr("x"))+parseFloat(ma.attr("width"));zr.nn.attr("transform","translate("+(ds+Ce)+","+Da+")");var qo=ie.insert("rect","#"+zr.nn.node().id).attr("class","er ".concat(ai)).attr("fill",Br.fill).attr("fill-opacity","100%").attr("stroke",Br.stroke).attr("x",ds).attr("y",la).attr("width",$e+2*Ce+Ma).attr("height",zr.height+2*Ne),Va=parseFloat(qo.attr("x"))+parseFloat(qo.attr("width"));if(tn){zr.kn.attr("transform","translate("+(Va+Ce)+","+Da+")");var Na=ie.insert("rect","#"+zr.kn.node().id).attr("class","er ".concat(ai)).attr("fill",Br.fill).attr("fill-opacity","100%").attr("stroke",Br.stroke).attr("x",Va).attr("y",la).attr("width",bn+2*Ce+Ma).attr("height",zr.height+2*Ne);Va=parseFloat(Na.attr("x"))+parseFloat(Na.attr("width"))}yn&&(zr.cn.attr("transform","translate("+(Va+Ce)+","+Da+")"),ie.insert("rect","#"+zr.cn.node().id).attr("class","er ".concat(ai)).attr("fill",Br.fill).attr("fill-opacity","100%").attr("stroke",Br.stroke).attr("x",Va).attr("y",la).attr("width",gr+2*Ce+Ma).attr("height",zr.height+2*Ne)),la+=zr.height+2*Ne,ai=ai=="attributeBoxOdd"?"attributeBoxEven":"attributeBoxOdd"})}else ur.height=Math.max(Br.minEntityHeight,fr),ce.attr("transform","translate("+ur.width/2+","+ur.height/2+")");return ur}(ee,ue,Nt[_t].attributes),Rt=ve.width,le=ve.height,Wt=ee.insert("rect","#"+ke).attr("class","er entityBox").attr("fill",Br.fill).attr("fill-opacity","100%").attr("stroke",Br.stroke).attr("x",0).attr("y",0).attr("width",Rt).attr("height",le).node().getBBox();Ot.setNode(_t,{width:Wt.width,height:Wt.height,shape:"rect",id:_t})}),Ft}(S,d.db.getEntities(),k),V=function(Lt,Nt){return Lt.forEach(function(Ot){Nt.setEdge(Ot.entityA,Ot.entityB,{relationship:Ot},c1(Ot))}),Lt}(d.db.getRelationships(),k);_s().layout(k),N=S,(O=k).nodes().forEach(function(Lt){Lt!==void 0&&O.node(Lt)!==void 0&&N.select("#"+Lt).attr("transform","translate("+(O.node(Lt).x-O.node(Lt).width/2)+","+(O.node(Lt).y-O.node(Lt).height/2)+" )")}),V.forEach(function(Lt){(function(Nt,Ot,Ft,_t,ee){l1++;var ke=Ft.edge(Ot.entityA,Ot.entityB,c1(Ot)),ue=(0,w.line)().x(function(oe){return oe.x}).y(function(oe){return oe.y}).curve(w.curveBasis),ve=Nt.insert("path","#"+_t).attr("class","er relationshipLine").attr("d",ue(ke.points)).attr("stroke",Br.stroke).attr("fill","none");Ot.relSpec.relType===ee.db.Identification.NON_IDENTIFYING&&ve.attr("stroke-dasharray","8,8");var Rt="";switch(Br.arrowMarkerAbsolute&&(Rt=(Rt=(Rt=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search).replace(/\(/g,"\\(")).replace(/\)/g,"\\)")),Ot.relSpec.cardA){case ee.db.Cardinality.ZERO_OR_ONE:ve.attr("marker-end","url("+Rt+"#"+zo.ZERO_OR_ONE_END+")");break;case ee.db.Cardinality.ZERO_OR_MORE:ve.attr("marker-end","url("+Rt+"#"+zo.ZERO_OR_MORE_END+")");break;case ee.db.Cardinality.ONE_OR_MORE:ve.attr("marker-end","url("+Rt+"#"+zo.ONE_OR_MORE_END+")");break;case ee.db.Cardinality.ONLY_ONE:ve.attr("marker-end","url("+Rt+"#"+zo.ONLY_ONE_END+")")}switch(Ot.relSpec.cardB){case ee.db.Cardinality.ZERO_OR_ONE:ve.attr("marker-start","url("+Rt+"#"+zo.ZERO_OR_ONE_START+")");break;case ee.db.Cardinality.ZERO_OR_MORE:ve.attr("marker-start","url("+Rt+"#"+zo.ZERO_OR_MORE_START+")");break;case ee.db.Cardinality.ONE_OR_MORE:ve.attr("marker-start","url("+Rt+"#"+zo.ONE_OR_MORE_START+")");break;case ee.db.Cardinality.ONLY_ONE:ve.attr("marker-start","url("+Rt+"#"+zo.ONLY_ONE_START+")")}var le=ve.node().getTotalLength(),Wt=ve.node().getPointAtLength(.5*le),ie="rel"+l1,ce=Nt.append("text").attr("class","er relationshipLabel").attr("id",ie).attr("x",Wt.x).attr("y",Wt.y).attr("text-anchor","middle").attr("dominant-baseline","middle").attr("style","font-family: "+Dt().fontFamily+"; font-size: "+Br.fontSize+"px").text(Ot.roleA).node().getBBox();Nt.insert("rect","#"+ie).attr("class","er relationshipLabelBox").attr("x",Wt.x-ce.width/2).attr("y",Wt.y-ce.height/2).attr("width",ce.width).attr("height",ce.height).attr("fill","white").attr("fill-opacity","85%")})(S,Lt,k,q,d)});var et=Br.diagramPadding,Q=S.node().getBBox(),Tt=Q.width+2*et,St=Q.height+2*et;Gi(S,0,Tt,Br.useMaxWidth),S.attr("viewBox","".concat(Q.x-et," ").concat(Q.y-et," ").concat(Tt," ").concat(St)),kr(d.db,S,n)}},fu={setConf:function(i){Object.keys(i).forEach(function(n){i[n]})},draw:function(i,n,l){try{y.debug(`Renering svg for syntax error
`);var d=(0,w.select)("#"+n),g=d.append("g");g.append("path").attr("class","error-icon").attr("d","m411.313,123.313c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32-9.375,9.375-20.688-20.688c-12.484-12.5-32.766-12.5-45.25,0l-16,16c-1.261,1.261-2.304,2.648-3.31,4.051-21.739-8.561-45.324-13.426-70.065-13.426-105.867,0-192,86.133-192,192s86.133,192 192,192 192-86.133 192-192c0-24.741-4.864-48.327-13.426-70.065 1.402-1.007 2.79-2.049 4.051-3.31l16-16c12.5-12.492 12.5-32.758 0-45.25l-20.688-20.688 9.375-9.375 32.001-31.999zm-219.313,100.687c-52.938,0-96,43.063-96,96 0,8.836-7.164,16-16,16s-16-7.164-16-16c0-70.578 57.422-128 128-128 8.836,0 16,7.164 16,16s-7.164,16-16,16z"),g.append("path").attr("class","error-icon").attr("d","m459.02,148.98c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l16,16c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16.001-16z"),g.append("path").attr("class","error-icon").attr("d","m340.395,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16-16c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l15.999,16z"),g.append("path").attr("class","error-icon").attr("d","m400,64c8.844,0 16-7.164 16-16v-32c0-8.836-7.156-16-16-16-8.844,0-16,7.164-16,16v32c0,8.836 7.156,16 16,16z"),g.append("path").attr("class","error-icon").attr("d","m496,96.586h-32c-8.844,0-16,7.164-16,16 0,8.836 7.156,16 16,16h32c8.844,0 16-7.164 16-16 0-8.836-7.156-16-16-16z"),g.append("path").attr("class","error-icon").attr("d","m436.98,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688l32-32c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32c-6.251,6.25-6.251,16.375-0.001,22.625z"),g.append("text").attr("class","error-text").attr("x",1440).attr("y",250).attr("font-size","150px").style("text-anchor","middle").text("Syntax error in graph"),g.append("text").attr("class","error-text").attr("x",1250).attr("y",400).attr("font-size","100px").style("text-anchor","middle").text("mermaid version "+l),d.attr("height",100),d.attr("width",500),d.attr("viewBox","768 0 912 512")}catch(T){y.error("Error while rendering info diagram"),y.error(T.message)}}};var cf=p(5890),lf=p.n(cf);function du(i){return du=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},du(i)}function pu(i,n){(n==null||n>i.length)&&(n=i.length);for(var l=0,d=new Array(n);l<n;l++)d[l]=i[l];return d}var bo,al,u1="flowchart-",h1=0,gu=Dt(),ii={},ts=[],Es=[],vi=[],kc={},ol={},Ra=0,yu=!0,sl=[],Ss=function(i){return an.sanitizeText(i,gu)},cl=function(i){for(var n=Object.keys(ii),l=0;l<n.length;l++)if(ii[n[l]].id===i)return ii[n[l]].domId;return i},uf=function(i,n,l,d){var g={start:i,end:n,type:void 0,text:""};(d=l.text)!==void 0&&(g.text=Ss(d.trim()),g.text[0]==='"'&&g.text[g.text.length-1]==='"'&&(g.text=g.text.substring(1,g.text.length-1))),l!==void 0&&(g.type=l.type,g.stroke=l.stroke,g.length=l.length),ts.push(g)},mu=function(i,n){i.split(",").forEach(function(l){var d=l;ii[d]!==void 0&&ii[d].classes.push(n),kc[d]!==void 0&&kc[d].classes.push(n)})},f1=function(i){var n=(0,w.select)(".mermaidTooltip");(n._groups||n)[0][0]===null&&(n=(0,w.select)("body").append("div").attr("class","mermaidTooltip").style("opacity",0)),(0,w.select)(i).select("svg").selectAll("g.node").on("mouseover",function(){var l=(0,w.select)(this);if(l.attr("title")!==null){var d=this.getBoundingClientRect();n.transition().duration(200).style("opacity",".9"),n.text(l.attr("title")).style("left",window.scrollX+d.left+(d.right-d.left)/2+"px").style("top",window.scrollY+d.top-14+document.body.scrollTop+"px"),n.html(n.html().replace(/&lt;br\/&gt;/g,"<br/>")),l.classed("hover",!0)}}).on("mouseout",function(){n.transition().duration(500).style("opacity",0),(0,w.select)(this).classed("hover",!1)})};sl.push(f1);var bu=function(i){for(var n=0;n<vi.length;n++)if(vi[n].id===i)return n;return-1},vu=-1,d1=[],_u=function i(n,l){var d=vi[l].nodes;if(!((vu+=1)>2e3)){if(d1[vu]=l,vi[l].id===n)return{result:!0,count:0};for(var g=0,T=1;g<d.length;){var k=bu(d[g]);if(k>=0){var S=i(n,k);if(S.result)return{result:!0,count:T+S.count};T+=S.count}g+=1}return{result:!1,count:T}}},xu=function(i,n){var l=!1;return i.forEach(function(d){d.nodes.indexOf(n)>=0&&(l=!0)}),l},ll=function(i,n){var l=[];return i.nodes.forEach(function(d,g){xu(n,d)||l.push(i.nodes[g])}),{nodes:l}};const ga={parseDirective:function(i,n,l){Bn.parseDirective(this,i,n,l)},defaultConfig:function(){return oi.flowchart},setAccTitle:xr,getAccTitle:Or,getAccDescription:li,setAccDescription:Vr,addVertex:function(i,n,l,d,g,T){var k,S=arguments.length>6&&arguments[6]!==void 0?arguments[6]:{},N=i;N!==void 0&&N.trim().length!==0&&(ii[N]===void 0&&(ii[N]={id:N,domId:u1+N+"-"+h1,styles:[],classes:[]}),h1++,n!==void 0?(gu=Dt(),(k=Ss(n.trim()))[0]==='"'&&k[k.length-1]==='"'&&(k=k.substring(1,k.length-1)),ii[N].text=k):ii[N].text===void 0&&(ii[N].text=i),l!==void 0&&(ii[N].type=l),d!=null&&d.forEach(function(O){ii[N].styles.push(O)}),g!=null&&g.forEach(function(O){ii[N].classes.push(O)}),T!==void 0&&(ii[N].dir=T),ii[N].props=S)},lookUpDomId:cl,addLink:function(i,n,l,d){var g,T;for(g=0;g<i.length;g++)for(T=0;T<n.length;T++)uf(i[g],n[T],l,d)},updateLinkInterpolate:function(i,n){i.forEach(function(l){l==="default"?ts.defaultInterpolate=n:ts[l].interpolate=n})},updateLink:function(i,n){i.forEach(function(l){l==="default"?ts.defaultStyle=n:(qn.isSubstringInArray("fill",n)===-1&&n.push("fill:none"),ts[l].style=n)})},addClass:function(i,n){Es[i]===void 0&&(Es[i]={id:i,styles:[],textStyles:[]}),n!=null&&n.forEach(function(l){if(l.match("color")){var d=l.replace("fill","bgFill").replace("color","fill");Es[i].textStyles.push(d)}Es[i].styles.push(l)})},setDirection:function(i){(bo=i).match(/.*</)&&(bo="RL"),bo.match(/.*\^/)&&(bo="BT"),bo.match(/.*>/)&&(bo="LR"),bo.match(/.*v/)&&(bo="TB")},setClass:mu,setTooltip:function(i,n){i.split(",").forEach(function(l){n!==void 0&&(ol[al==="gen-1"?cl(l):l]=Ss(n))})},getTooltip:function(i){return ol[i]},setClickEvent:function(i,n,l){i.split(",").forEach(function(d){(function(g,T,k){var S=cl(g);if(Dt().securityLevel==="loose"&&T!==void 0){var N=[];if(typeof k=="string"){N=k.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(var O=0;O<N.length;O++){var q=N[O].trim();q.charAt(0)==='"'&&q.charAt(q.length-1)==='"'&&(q=q.substr(1,q.length-2)),N[O]=q}}N.length===0&&N.push(g),ii[g]!==void 0&&(ii[g].haveCallback=!0,sl.push(function(){var V=document.querySelector('[id="'.concat(S,'"]'));V!==null&&V.addEventListener("click",function(){var et;qn.runFunc.apply(qn,[T].concat(function(Q){if(Array.isArray(Q))return pu(Q)}(et=N)||function(Q){if(typeof Symbol<"u"&&Q[Symbol.iterator]!=null||Q["@@iterator"]!=null)return Array.from(Q)}(et)||function(Q,Tt){if(Q){if(typeof Q=="string")return pu(Q,Tt);var St=Object.prototype.toString.call(Q).slice(8,-1);return St==="Object"&&Q.constructor&&(St=Q.constructor.name),St==="Map"||St==="Set"?Array.from(Q):St==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(St)?pu(Q,Tt):void 0}}(et)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()))},!1)}))}})(d,n,l)}),mu(i,"clickable")},setLink:function(i,n,l){i.split(",").forEach(function(d){ii[d]!==void 0&&(ii[d].link=qn.formatUrl(n,gu),ii[d].linkTarget=l)}),mu(i,"clickable")},bindFunctions:function(i){sl.forEach(function(n){n(i)})},getDirection:function(){return bo.trim()},getVertices:function(){return ii},getEdges:function(){return ts},getClasses:function(){return Es},clear:function(i){ii={},Es={},ts=[],(sl=[]).push(f1),vi=[],kc={},Ra=0,ol=[],yu=!0,al=i||"gen-1",Kt()},setGen:function(i){al=i||"gen-1"},defaultStyle:function(){return"fill:#ffa;stroke: #f66; stroke-width: 3px; stroke-dasharray: 5, 5;fill:#ffa;stroke: #666;"},addSubGraph:function(i,n,l){var d=i.trim(),g=l;i===l&&l.match(/\s/)&&(d=void 0);var T=[],k=function(V){var et,Q={boolean:{},number:{},string:{}},Tt=[],St=V.filter(function(Lt){var Nt=du(Lt);return Lt.stmt&&Lt.stmt==="dir"?(et=Lt.value,!1):Lt.trim()!==""&&(Nt in Q?!Q[Nt].hasOwnProperty(Lt)&&(Q[Nt][Lt]=!0):!(Tt.indexOf(Lt)>=0)&&Tt.push(Lt))});return{nodeList:St,dir:et}}(T.concat.apply(T,n)),S=k.nodeList,N=k.dir;if(T=S,al==="gen-1")for(var O=0;O<T.length;O++)T[O]=cl(T[O]);d=d||"subGraph"+Ra,g=Ss(g=g||""),Ra+=1;var q={id:d,nodes:T,title:g.trim(),classes:[],dir:N};return y.info("Adding",q.id,q.nodes,q.dir),q.nodes=ll(q,vi).nodes,vi.push(q),kc[d]=q,d},getDepthFirstPos:function(i){return d1[i]},indexNodes:function(){vu=-1,vi.length>0&&_u("none",vi.length-1)},getSubGraphs:function(){return vi},destructLink:function(i,n){var l,d=function(g){var T=g.trim(),k=T.slice(0,-1),S="arrow_open";switch(T.slice(-1)){case"x":S="arrow_cross",T[0]==="x"&&(S="double_"+S,k=k.slice(1));break;case">":S="arrow_point",T[0]==="<"&&(S="double_"+S,k=k.slice(1));break;case"o":S="arrow_circle",T[0]==="o"&&(S="double_"+S,k=k.slice(1))}var N="normal",O=k.length-1;k[0]==="="&&(N="thick");var q=function(V,et){for(var Q=et.length,Tt=0,St=0;St<Q;++St)et[St]==="."&&++Tt;return Tt}(0,k);return q&&(N="dotted",O=q),{type:S,stroke:N,length:O}}(i);if(n){if(l=function(g){var T=g.trim(),k="arrow_open";switch(T[0]){case"<":k="arrow_point",T=T.slice(1);break;case"x":k="arrow_cross",T=T.slice(1);break;case"o":k="arrow_circle",T=T.slice(1)}var S="normal";return T.indexOf("=")!==-1&&(S="thick"),T.indexOf(".")!==-1&&(S="dotted"),{type:k,stroke:S}}(n),l.stroke!==d.stroke)return{type:"INVALID",stroke:"INVALID"};if(l.type==="arrow_open")l.type=d.type;else{if(l.type!==d.type)return{type:"INVALID",stroke:"INVALID"};l.type="double_"+l.type}return l.type==="double_arrow"&&(l.type="double_arrow_point"),l.length=d.length,l}return d},lex:{firstGraph:function(){return!!yu&&(yu=!1,!0)}},exists:xu,makeUniq:ll};var Cs=p(4949),ca=p.n(Cs),zi=p(8284),Bi=p.n(zi);function p1(i,n,l){var d=.9*(n.width+n.height),g=[{x:d/2,y:0},{x:d,y:-d/2},{x:d/2,y:-d},{x:0,y:-d/2}],T=_o(i,d,d,g);return l.intersect=function(k){return ca().intersect.polygon(l,g,k)},T}function ku(i,n,l){var d=n.height,g=d/4,T=n.width+2*g,k=[{x:g,y:0},{x:T-g,y:0},{x:T,y:-d/2},{x:T-g,y:-d},{x:g,y:-d},{x:0,y:-d/2}],S=_o(i,T,d,k);return l.intersect=function(N){return ca().intersect.polygon(l,k,N)},S}function ul(i,n,l){var d=n.width,g=n.height,T=[{x:-g/2,y:0},{x:d,y:0},{x:d,y:-g},{x:-g/2,y:-g},{x:0,y:-g/2}],k=_o(i,d,g,T);return l.intersect=function(S){return ca().intersect.polygon(l,T,S)},k}function hl(i,n,l){var d=n.width,g=n.height,T=[{x:-2*g/6,y:0},{x:d-g/6,y:0},{x:d+2*g/6,y:-g},{x:g/6,y:-g}],k=_o(i,d,g,T);return l.intersect=function(S){return ca().intersect.polygon(l,T,S)},k}function hf(i,n,l){var d=n.width,g=n.height,T=[{x:2*g/6,y:0},{x:d+g/6,y:0},{x:d-2*g/6,y:-g},{x:-g/6,y:-g}],k=_o(i,d,g,T);return l.intersect=function(S){return ca().intersect.polygon(l,T,S)},k}function vo(i,n,l){var d=n.width,g=n.height,T=[{x:-2*g/6,y:0},{x:d+2*g/6,y:0},{x:d-g/6,y:-g},{x:g/6,y:-g}],k=_o(i,d,g,T);return l.intersect=function(S){return ca().intersect.polygon(l,T,S)},k}function g1(i,n,l){var d=n.width,g=n.height,T=[{x:g/6,y:0},{x:d-g/6,y:0},{x:d+2*g/6,y:-g},{x:-2*g/6,y:-g}],k=_o(i,d,g,T);return l.intersect=function(S){return ca().intersect.polygon(l,T,S)},k}function y1(i,n,l){var d=n.width,g=n.height,T=[{x:0,y:0},{x:d+g/2,y:0},{x:d,y:-g/2},{x:d+g/2,y:-g},{x:0,y:-g}],k=_o(i,d,g,T);return l.intersect=function(S){return ca().intersect.polygon(l,T,S)},k}function ff(i,n,l){var d=n.height,g=n.width+d/4,T=i.insert("rect",":first-child").attr("rx",d/2).attr("ry",d/2).attr("x",-g/2).attr("y",-d/2).attr("width",g).attr("height",d);return l.intersect=function(k){return ca().intersect.rect(l,k)},T}function df(i,n,l){var d=n.width,g=n.height,T=[{x:0,y:0},{x:d,y:0},{x:d,y:-g},{x:0,y:-g},{x:0,y:0},{x:-8,y:0},{x:d+8,y:0},{x:d+8,y:-g},{x:-8,y:-g},{x:-8,y:0}],k=_o(i,d,g,T);return l.intersect=function(S){return ca().intersect.polygon(l,T,S)},k}function wc(i,n,l){var d=n.width,g=d/2,T=g/(2.5+d/50),k=n.height+T,S="M 0,"+T+" a "+g+","+T+" 0,0,0 "+d+" 0 a "+g+","+T+" 0,0,0 "+-d+" 0 l 0,"+k+" a "+g+","+T+" 0,0,0 "+d+" 0 l 0,"+-k,N=i.attr("label-offset-y",T).insert("path",":first-child").attr("d",S).attr("transform","translate("+-d/2+","+-(k/2+T)+")");return l.intersect=function(O){var q=ca().intersect.rect(l,O),V=q.x-l.x;if(g!=0&&(Math.abs(V)<l.width/2||Math.abs(V)==l.width/2&&Math.abs(q.y-l.y)>l.height/2-T)){var et=T*T*(1-V*V/(g*g));et!=0&&(et=Math.sqrt(et)),et=T-et,O.y-l.y>0&&(et=-et),q.y+=et}return q},N}function _o(i,n,l,d){return i.insert("polygon",":first-child").attr("points",d.map(function(g){return g.x+","+g.y}).join(" ")).attr("transform","translate("+-n/2+","+l/2+")")}const pf=function(i){i.shapes().question=p1,i.shapes().hexagon=ku,i.shapes().stadium=ff,i.shapes().subroutine=df,i.shapes().cylinder=wc,i.shapes().rect_left_inv_arrow=ul,i.shapes().lean_right=hl,i.shapes().lean_left=hf,i.shapes().trapezoid=vo,i.shapes().inv_trapezoid=g1,i.shapes().rect_right_inv_arrow=y1};var m1={},fl=function(i,n,l,d,g,T){Dt().securityLevel;var k=d?d.select('[id="'.concat(l,'"]')):(0,w.select)('[id="'.concat(l,'"]')),S=g||document;Object.keys(i).forEach(function(N){var O=i[N],q="default";O.classes.length>0&&(q=O.classes.join(" "));var V,et=Si(O.styles),Q=O.text!==void 0?O.text:O.id;if(rn(Dt().flowchart.htmlLabels)){var Tt={label:Q.replace(/fa[lrsb]?:fa-[\w-]+/g,function(ee){return"<i class='".concat(ee.replace(":"," "),"'></i>")})};(V=Bi()(k,Tt).node()).parentNode.removeChild(V)}else{var St=S.createElementNS("http://www.w3.org/2000/svg","text");St.setAttribute("style",et.labelStyle.replace("color:","fill:"));for(var Lt=Q.split(an.lineBreakRegex),Nt=0;Nt<Lt.length;Nt++){var Ot=S.createElementNS("http://www.w3.org/2000/svg","tspan");Ot.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),Ot.setAttribute("dy","1em"),Ot.setAttribute("x","1"),Ot.textContent=Lt[Nt],St.appendChild(Ot)}V=St}var Ft=0,_t="";switch(O.type){case"round":Ft=5,_t="rect";break;case"square":case"group":default:_t="rect";break;case"diamond":_t="question";break;case"hexagon":_t="hexagon";break;case"odd":case"odd_right":_t="rect_left_inv_arrow";break;case"lean_right":_t="lean_right";break;case"lean_left":_t="lean_left";break;case"trapezoid":_t="trapezoid";break;case"inv_trapezoid":_t="inv_trapezoid";break;case"circle":_t="circle";break;case"ellipse":_t="ellipse";break;case"stadium":_t="stadium";break;case"subroutine":_t="subroutine";break;case"cylinder":_t="cylinder"}y.warn("Adding node",O.id,O.domId),n.setNode(T.db.lookUpDomId(O.id),{labelType:"svg",labelStyle:et.labelStyle,shape:_t,label:V,rx:Ft,ry:Ft,class:q,style:et.style,id:T.db.lookUpDomId(O.id)})})},b1=function(i,n,l){var d,g,T=0;if(i.defaultStyle!==void 0){var k=Si(i.defaultStyle);d=k.style,g=k.labelStyle}i.forEach(function(S){T++;var N="L-"+S.start+"-"+S.end,O="LS-"+S.start,q="LE-"+S.end,V={};S.type==="arrow_open"?V.arrowhead="none":V.arrowhead="normal";var et="",Q="";if(S.style!==void 0){var Tt=Si(S.style);et=Tt.style,Q=Tt.labelStyle}else switch(S.stroke){case"normal":et="fill:none",d!==void 0&&(et=d),g!==void 0&&(Q=g);break;case"dotted":et="fill:none;stroke-width:2px;stroke-dasharray:3;";break;case"thick":et=" stroke-width: 3.5px;fill:none"}V.style=et,V.labelStyle=Q,S.interpolate!==void 0?V.curve=da(S.interpolate,w.curveLinear):i.defaultInterpolate!==void 0?V.curve=da(i.defaultInterpolate,w.curveLinear):V.curve=da(m1.curve,w.curveLinear),S.text===void 0?S.style!==void 0&&(V.arrowheadStyle="fill: #333"):(V.arrowheadStyle="fill: #333",V.labelpos="c",rn(Dt().flowchart.htmlLabels)?(V.labelType="html",V.label='<span id="L-'.concat(N,'" class="edgeLabel L-').concat(O,"' L-").concat(q,'" style="').concat(V.labelStyle,'">').concat(S.text.replace(/fa[lrsb]?:fa-[\w-]+/g,function(St){return"<i class='".concat(St.replace(":"," "),"'></i>")}),"</span>")):(V.labelType="text",V.label=S.text.replace(an.lineBreakRegex,`
`),S.style===void 0&&(V.style=V.style||"stroke: #333; stroke-width: 1.5px;fill:none"),V.labelStyle=V.labelStyle.replace("color:","fill:"))),V.id=N,V.class=O+" "+q,V.minlen=S.length||1,n.setEdge(l.db.lookUpDomId(S.start),l.db.lookUpDomId(S.end),V,T)})};const dl={setConf:function(i){for(var n=Object.keys(i),l=0;l<n.length;l++)m1[n[l]]=i[n[l]]},addVertices:fl,addEdges:b1,getClasses:function(i,n){y.info("Extracting classes"),n.db.clear();try{return n.parse(i),n.db.getClasses()}catch{return}},draw:function(i,n,l,d){y.info("Drawing flowchart"),d.db.clear();var g,T=Dt().securityLevel;T==="sandbox"&&(g=(0,w.select)("#i"+n));var k=T==="sandbox"?(0,w.select)(g.nodes()[0].contentDocument.body):(0,w.select)("body"),S=T==="sandbox"?g.nodes()[0].contentDocument:document;try{d.parser.parse(i)}catch{y.debug("Parsing failed")}var N=d.db.getDirection();N===void 0&&(N="TD");for(var O,q=Dt().flowchart,V=q.nodeSpacing||50,et=q.rankSpacing||50,Q=new(di()).Graph({multigraph:!0,compound:!0}).setGraph({rankdir:N,nodesep:V,ranksep:et,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}}),Tt=d.db.getSubGraphs(),St=Tt.length-1;St>=0;St--)O=Tt[St],d.db.addVertex(O.id,O.title,"group",void 0,O.classes);var Lt=d.db.getVertices();y.warn("Get vertices",Lt);var Nt=d.db.getEdges(),Ot=0;for(Ot=Tt.length-1;Ot>=0;Ot--){O=Tt[Ot],(0,w.selectAll)("cluster").append("text");for(var Ft=0;Ft<O.nodes.length;Ft++)y.warn("Setting subgraph",O.nodes[Ft],d.db.lookUpDomId(O.nodes[Ft]),d.db.lookUpDomId(O.id)),Q.setParent(d.db.lookUpDomId(O.nodes[Ft]),d.db.lookUpDomId(O.id))}fl(Lt,Q,n,k,S,d),b1(Nt,Q,d);var _t=new(ca()).render;pf(_t),_t.arrows().none=function(Re,tn,yn,Ue){var $e=Re.append("marker").attr("id",tn).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","strokeWidth").attr("markerWidth",8).attr("markerHeight",6).attr("orient","auto").append("path").attr("d","M 0 0 L 0 0 L 0 0 z");ca().util.applyStyle($e,yn[Ue+"Style"])},_t.arrows().normal=function(Re,tn){Re.append("marker").attr("id",tn).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","strokeWidth").attr("markerWidth",8).attr("markerHeight",6).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("class","arrowheadPath").style("stroke-width",1).style("stroke-dasharray","1,0")};var ee=k.select('[id="'.concat(n,'"]'));kr(d.db,ee,n);var ke=k.select("#"+n+" g");for(_t(ke,Q),ke.selectAll("g.node").attr("title",function(){return d.db.getTooltip(this.id)}),d.db.indexNodes("subGraph"+Ot),Ot=0;Ot<Tt.length;Ot++)if((O=Tt[Ot]).title!=="undefined"){var ue=S.querySelectorAll("#"+n+' [id="'+d.db.lookUpDomId(O.id)+'"] rect'),ve=S.querySelectorAll("#"+n+' [id="'+d.db.lookUpDomId(O.id)+'"]'),Rt=ue[0].x.baseVal.value,le=ue[0].y.baseVal.value,Wt=ue[0].width.baseVal.value,ie=(0,w.select)(ve[0]).select(".label");ie.attr("transform","translate(".concat(Rt+Wt/2,", ").concat(le+14,")")),ie.attr("id",n+"Text");for(var ce=0;ce<O.classes.length;ce++)ve[0].classList.add(O.classes[ce])}rn(q.htmlLabels);for(var oe=S.querySelectorAll('[id="'+n+'"] .edgeLabel .label'),Ne=0;Ne<oe.length;Ne++){var Ce=oe[Ne],je=Ce.getBBox(),_n=S.createElementNS("http://www.w3.org/2000/svg","rect");_n.setAttribute("rx",0),_n.setAttribute("ry",0),_n.setAttribute("width",je.width),_n.setAttribute("height",je.height),Ce.insertBefore(_n,Ce.firstChild)}Lo(Q,ee,q.diagramPadding,q.useMaxWidth),Object.keys(Lt).forEach(function(Re){var tn=Lt[Re];if(tn.link){var yn=k.select("#"+n+' [id="'+d.db.lookUpDomId(Re)+'"]');if(yn){var Ue=S.createElementNS("http://www.w3.org/2000/svg","a");Ue.setAttributeNS("http://www.w3.org/2000/svg","class",tn.classes.join(" ")),Ue.setAttributeNS("http://www.w3.org/2000/svg","href",tn.link),Ue.setAttributeNS("http://www.w3.org/2000/svg","rel","noopener"),T==="sandbox"?Ue.setAttributeNS("http://www.w3.org/2000/svg","target","_top"):tn.linkTarget&&Ue.setAttributeNS("http://www.w3.org/2000/svg","target",tn.linkTarget);var $e=yn.insert(function(){return Ue},":first-child"),bn=yn.select(".label-container");bn&&$e.append(function(){return bn.node()});var gr=yn.select(".label");gr&&$e.append(function(){return gr.node()})}}})}};var v1={},_1=function(i,n,l,d,g,T){var k=d.select('[id="'.concat(l,'"]'));Object.keys(i).forEach(function(S){var N=i[S],O="default";N.classes.length>0&&(O=N.classes.join(" "));var q,V=Si(N.styles),et=N.text!==void 0?N.text:N.id;if(rn(Dt().flowchart.htmlLabels)){var Q={label:et.replace(/fa[lrsb]?:fa-[\w-]+/g,function(_t){return"<i class='".concat(_t.replace(":"," "),"'></i>")})};(q=Bi()(k,Q).node()).parentNode.removeChild(q)}else{var Tt=g.createElementNS("http://www.w3.org/2000/svg","text");Tt.setAttribute("style",V.labelStyle.replace("color:","fill:"));for(var St=et.split(an.lineBreakRegex),Lt=0;Lt<St.length;Lt++){var Nt=g.createElementNS("http://www.w3.org/2000/svg","tspan");Nt.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),Nt.setAttribute("dy","1em"),Nt.setAttribute("x","1"),Nt.textContent=St[Lt],Tt.appendChild(Nt)}q=Tt}var Ot=0,Ft="";switch(N.type){case"round":Ot=5,Ft="rect";break;case"square":case"group":default:Ft="rect";break;case"diamond":Ft="question";break;case"hexagon":Ft="hexagon";break;case"odd":case"odd_right":Ft="rect_left_inv_arrow";break;case"lean_right":Ft="lean_right";break;case"lean_left":Ft="lean_left";break;case"trapezoid":Ft="trapezoid";break;case"inv_trapezoid":Ft="inv_trapezoid";break;case"circle":Ft="circle";break;case"ellipse":Ft="ellipse";break;case"stadium":Ft="stadium";break;case"subroutine":Ft="subroutine";break;case"cylinder":Ft="cylinder";break;case"doublecircle":Ft="doublecircle"}n.setNode(N.id,{labelStyle:V.labelStyle,shape:Ft,labelText:et,rx:Ot,ry:Ot,class:O,style:V.style,id:N.id,link:N.link,linkTarget:N.linkTarget,tooltip:T.db.getTooltip(N.id)||"",domId:T.db.lookUpDomId(N.id),haveCallback:N.haveCallback,width:N.type==="group"?500:void 0,dir:N.dir,type:N.type,props:N.props,padding:Dt().flowchart.padding}),y.info("setNode",{labelStyle:V.labelStyle,shape:Ft,labelText:et,rx:Ot,ry:Ot,class:O,style:V.style,id:N.id,domId:T.db.lookUpDomId(N.id),width:N.type==="group"?500:void 0,type:N.type,dir:N.dir,props:N.props,padding:Dt().flowchart.padding})})},x1=function(i,n,l){y.info("abc78 edges = ",i);var d,g,T=0,k={};if(i.defaultStyle!==void 0){var S=Si(i.defaultStyle);d=S.style,g=S.labelStyle}i.forEach(function(N){T++;var O="L-"+N.start+"-"+N.end;k[O]===void 0?(k[O]=0,y.info("abc78 new entry",O,k[O])):(k[O]++,y.info("abc78 new entry",O,k[O]));var q=O+"-"+k[O];y.info("abc78 new link id to be used is",O,q,k[O]);var V="LS-"+N.start,et="LE-"+N.end,Q={style:"",labelStyle:""};switch(Q.minlen=N.length||1,N.type==="arrow_open"?Q.arrowhead="none":Q.arrowhead="normal",Q.arrowTypeStart="arrow_open",Q.arrowTypeEnd="arrow_open",N.type){case"double_arrow_cross":Q.arrowTypeStart="arrow_cross";case"arrow_cross":Q.arrowTypeEnd="arrow_cross";break;case"double_arrow_point":Q.arrowTypeStart="arrow_point";case"arrow_point":Q.arrowTypeEnd="arrow_point";break;case"double_arrow_circle":Q.arrowTypeStart="arrow_circle";case"arrow_circle":Q.arrowTypeEnd="arrow_circle"}var Tt="",St="";switch(N.stroke){case"normal":Tt="fill:none;",d!==void 0&&(Tt=d),g!==void 0&&(St=g),Q.thickness="normal",Q.pattern="solid";break;case"dotted":Q.thickness="normal",Q.pattern="dotted",Q.style="fill:none;stroke-width:2px;stroke-dasharray:3;";break;case"thick":Q.thickness="thick",Q.pattern="solid",Q.style="stroke-width: 3.5px;fill:none;"}if(N.style!==void 0){var Lt=Si(N.style);Tt=Lt.style,St=Lt.labelStyle}Q.style=Q.style+=Tt,Q.labelStyle=Q.labelStyle+=St,N.interpolate!==void 0?Q.curve=da(N.interpolate,w.curveLinear):i.defaultInterpolate!==void 0?Q.curve=da(i.defaultInterpolate,w.curveLinear):Q.curve=da(v1.curve,w.curveLinear),N.text===void 0?N.style!==void 0&&(Q.arrowheadStyle="fill: #333"):(Q.arrowheadStyle="fill: #333",Q.labelpos="c"),Q.labelType="text",Q.label=N.text.replace(an.lineBreakRegex,`
`),N.style===void 0&&(Q.style=Q.style||"stroke: #333; stroke-width: 1.5px;fill:none;"),Q.labelStyle=Q.labelStyle.replace("color:","fill:"),Q.id=q,Q.classes="flowchart-link "+V+" "+et,n.setEdge(N.start,N.end,Q,T)})};const Tc={setConf:function(i){for(var n=Object.keys(i),l=0;l<n.length;l++)v1[n[l]]=i[n[l]]},addVertices:_1,addEdges:x1,getClasses:function(i,n){y.info("Extracting classes"),n.db.clear();try{return n.parse(i),n.db.getClasses()}catch{return}},draw:function(i,n,l,d){y.info("Drawing flowchart"),d.db.clear(),ga.setGen("gen-2"),d.parser.parse(i);var g=d.db.getDirection();g===void 0&&(g="TD");var T,k=Dt().flowchart,S=k.nodeSpacing||50,N=k.rankSpacing||50,O=Dt().securityLevel;O==="sandbox"&&(T=(0,w.select)("#i"+n));var q,V=O==="sandbox"?(0,w.select)(T.nodes()[0].contentDocument.body):(0,w.select)("body"),et=O==="sandbox"?T.nodes()[0].contentDocument:document,Q=new(di()).Graph({multigraph:!0,compound:!0}).setGraph({rankdir:g,nodesep:S,ranksep:N,marginx:0,marginy:0}).setDefaultEdgeLabel(function(){return{}}),Tt=d.db.getSubGraphs();y.info("Subgraphs - ",Tt);for(var St=Tt.length-1;St>=0;St--)q=Tt[St],y.info("Subgraph - ",q),d.db.addVertex(q.id,q.title,"group",void 0,q.classes,q.dir);var Lt=d.db.getVertices(),Nt=d.db.getEdges();y.info(Nt);var Ot=0;for(Ot=Tt.length-1;Ot>=0;Ot--){q=Tt[Ot],(0,w.selectAll)("cluster").append("text");for(var Ft=0;Ft<q.nodes.length;Ft++)y.info("Setting up subgraphs",q.nodes[Ft],q.id),Q.setParent(q.nodes[Ft],q.id)}_1(Lt,Q,n,V,et,d),x1(Nt,Q);var _t=V.select('[id="'.concat(n,'"]'));kr(d.db,_t,n);var ee=V.select("#"+n+" g");if(il(ee,Q,["point","circle","cross"],"flowchart",n),Lo(Q,_t,k.diagramPadding,k.useMaxWidth),d.db.indexNodes("subGraph"+Ot),!k.htmlLabels)for(var ke=et.querySelectorAll('[id="'+n+'"] .edgeLabel .label'),ue=0;ue<ke.length;ue++){var ve=ke[ue],Rt=ve.getBBox(),le=et.createElementNS("http://www.w3.org/2000/svg","rect");le.setAttribute("rx",0),le.setAttribute("ry",0),le.setAttribute("width",Rt.width),le.setAttribute("height",Rt.height),ve.insertBefore(le,ve.firstChild)}Object.keys(Lt).forEach(function(Wt){var ie=Lt[Wt];if(ie.link){var ce=(0,w.select)("#"+n+' [id="'+Wt+'"]');if(ce){var oe=et.createElementNS("http://www.w3.org/2000/svg","a");oe.setAttributeNS("http://www.w3.org/2000/svg","class",ie.classes.join(" ")),oe.setAttributeNS("http://www.w3.org/2000/svg","href",ie.link),oe.setAttributeNS("http://www.w3.org/2000/svg","rel","noopener"),O==="sandbox"?oe.setAttributeNS("http://www.w3.org/2000/svg","target","_top"):ie.linkTarget&&oe.setAttributeNS("http://www.w3.org/2000/svg","target",ie.linkTarget);var Ne=ce.insert(function(){return oe},":first-child"),Ce=ce.select(".label-container");Ce&&Ne.append(function(){return Ce.node()});var je=ce.select(".label");je&&Ne.append(function(){return je.node()})}}})}};var k1=p(3602),es=p.n(k1);function Yo(i,n){(n==null||n>i.length)&&(n=i.length);for(var l=0,d=new Array(n);l<n;l++)d[l]=i[l];return d}var pl,ns,Pa="",gl="",Ec="",rs=[],Sc=[],wu={},Tu=[],Eu=[],Uo="",yl=["active","done","crit","milestone"],As=[],ja=!1,Su=!1,Cc=0,Cu=function(i,n,l,d){return!(d.indexOf(i.format(n.trim()))>=0)&&(i.isoWeekday()>=6&&l.indexOf("weekends")>=0||l.indexOf(i.format("dddd").toLowerCase())>=0||l.indexOf(i.format(n.trim()))>=0)},$o=function(i,n,l,d){if(l.length&&!i.manualEndTime){var g=u()(i.startTime,n,!0);g.add(1,"d");var T=u()(i.endTime,n,!0),k=gf(g,T,n,l,d);i.endTime=T.toDate(),i.renderEndTime=k}},gf=function(i,n,l,d,g){for(var T=!1,k=null;i<=n;)T||(k=n.toDate()),(T=Cu(i,l,d,g))&&n.add(1,"d"),i.add(1,"d");return k},xo=function(i,n,l){l=l.trim();var d=/^after\s+([\d\w- ]+)/.exec(l.trim());if(d!==null){var g=null;if(d[1].split(" ").forEach(function(S){var N=Ds(S);N!==void 0&&(g?N.endTime>g.endTime&&(g=N):g=N)}),g)return g.endTime;var T=new Date;return T.setHours(0,0,0,0),T}var k=u()(l,n.trim(),!0);return k.isValid()?k.toDate():(y.debug("Invalid date:"+l),y.debug("With date format:"+n.trim()),new Date)},w1=function(i,n){if(i!==null)switch(i[2]){case"ms":n.add(i[1],"milliseconds");break;case"s":n.add(i[1],"seconds");break;case"m":n.add(i[1],"minutes");break;case"h":n.add(i[1],"hours");break;case"d":n.add(i[1],"days");break;case"w":n.add(i[1],"weeks")}return n.toDate()},T1=function(i,n,l,d){d=d||!1,l=l.trim();var g=u()(l,n.trim(),!0);return g.isValid()?(d&&g.add(1,"d"),g.toDate()):w1(/^([\d]+)([wdhms]|ms)$/.exec(l.trim()),u()(i))},Au=0,Ms=function(i){return i===void 0?"task"+(Au+=1):i},gi=[],E1={},Ds=function(i){var n=E1[i];return gi[n]},Mu=function(){for(var i=function(d){var g=gi[d],T="";switch(gi[d].raw.startTime.type){case"prevTaskEnd":var k=Ds(g.prevTaskId);g.startTime=k.endTime;break;case"getStartDate":(T=xo(0,Pa,gi[d].raw.startTime.startData))&&(gi[d].startTime=T)}return gi[d].startTime&&(gi[d].endTime=T1(gi[d].startTime,Pa,gi[d].raw.endTime.data,ja),gi[d].endTime&&(gi[d].processed=!0,gi[d].manualEndTime=u()(gi[d].raw.endTime.data,"YYYY-MM-DD",!0).isValid(),$o(gi[d],Pa,Sc,rs))),gi[d].processed},n=!0,l=0;l<gi.length;l++)i(l),n=n&&gi[l].processed;return n},S1=function(i,n){i.split(",").forEach(function(l){var d=Ds(l);d!==void 0&&d.classes.push(n)})},C1=function(i,n){As.push(function(){var l=document.querySelector('[id="'.concat(i,'"]'));l!==null&&l.addEventListener("click",function(){n()})}),As.push(function(){var l=document.querySelector('[id="'.concat(i,'-text"]'));l!==null&&l.addEventListener("click",function(){n()})})};const Du={parseDirective:function(i,n,l){Bn.parseDirective(this,i,n,l)},getConfig:function(){return Dt().gantt},clear:function(){Tu=[],Eu=[],Uo="",As=[],Au=0,pl=void 0,ns=void 0,gi=[],Pa="",gl="",Ec="",rs=[],Sc=[],ja=!1,Su=!1,Cc=0,wu={},Kt()},setDateFormat:function(i){Pa=i},getDateFormat:function(){return Pa},enableInclusiveEndDates:function(){ja=!0},endDatesAreInclusive:function(){return ja},enableTopAxis:function(){Su=!0},topAxisEnabled:function(){return Su},setAxisFormat:function(i){gl=i},getAxisFormat:function(){return gl},setTodayMarker:function(i){Ec=i},getTodayMarker:function(){return Ec},setAccTitle:xr,getAccTitle:Or,setDiagramTitle:ka,getDiagramTitle:hr,setAccDescription:Vr,getAccDescription:li,addSection:function(i){Uo=i,Tu.push(i)},getSections:function(){return Tu},getTasks:function(){for(var i=Mu(),n=0;!i&&n<10;)i=Mu(),n++;return Eu=gi},addTask:function(i,n){var l={section:Uo,type:Uo,processed:!1,manualEndTime:!1,renderEndTime:null,raw:{data:n},task:i,classes:[]},d=function(T,k){var S=(k.substr(0,1)===":"?k.substr(1,k.length):k).split(","),N={};Nu(S,N,yl);for(var O=0;O<S.length;O++)S[O]=S[O].trim();switch(S.length){case 1:N.id=Ms(),N.startTime={type:"prevTaskEnd",id:T},N.endTime={data:S[0]};break;case 2:N.id=Ms(),N.startTime={type:"getStartDate",startData:S[0]},N.endTime={data:S[1]};break;case 3:N.id=Ms(S[0]),N.startTime={type:"getStartDate",startData:S[1]},N.endTime={data:S[2]}}return N}(ns,n);l.raw.startTime=d.startTime,l.raw.endTime=d.endTime,l.id=d.id,l.prevTaskId=ns,l.active=d.active,l.done=d.done,l.crit=d.crit,l.milestone=d.milestone,l.order=Cc,Cc++;var g=gi.push(l);ns=l.id,E1[l.id]=g-1},findTaskById:Ds,addTaskOrg:function(i,n){var l={section:Uo,type:Uo,description:i,task:i,classes:[]},d=function(g,T){var k=(T.substr(0,1)===":"?T.substr(1,T.length):T).split(","),S={};Nu(k,S,yl);for(var N=0;N<k.length;N++)k[N]=k[N].trim();var O="";switch(k.length){case 1:S.id=Ms(),S.startTime=g.endTime,O=k[0];break;case 2:S.id=Ms(),S.startTime=xo(0,Pa,k[0]),O=k[1];break;case 3:S.id=Ms(k[0]),S.startTime=xo(0,Pa,k[1]),O=k[2]}return O&&(S.endTime=T1(S.startTime,Pa,O,ja),S.manualEndTime=u()(O,"YYYY-MM-DD",!0).isValid(),$o(S,Pa,Sc,rs)),S}(pl,n);l.startTime=d.startTime,l.endTime=d.endTime,l.id=d.id,l.active=d.active,l.done=d.done,l.crit=d.crit,l.milestone=d.milestone,pl=l,Eu.push(l)},setIncludes:function(i){rs=i.toLowerCase().split(/[\s,]+/)},getIncludes:function(){return rs},setExcludes:function(i){Sc=i.toLowerCase().split(/[\s,]+/)},getExcludes:function(){return Sc},setClickEvent:function(i,n,l){i.split(",").forEach(function(d){(function(g,T,k){if(Dt().securityLevel==="loose"&&T!==void 0){var S=[];if(typeof k=="string"){S=k.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(var N=0;N<S.length;N++){var O=S[N].trim();O.charAt(0)==='"'&&O.charAt(O.length-1)==='"'&&(O=O.substr(1,O.length-2)),S[N]=O}}S.length===0&&S.push(g),Ds(g)!==void 0&&C1(g,function(){var q;qn.runFunc.apply(qn,[T].concat(function(V){if(Array.isArray(V))return Yo(V)}(q=S)||function(V){if(typeof Symbol<"u"&&V[Symbol.iterator]!=null||V["@@iterator"]!=null)return Array.from(V)}(q)||function(V,et){if(V){if(typeof V=="string")return Yo(V,et);var Q=Object.prototype.toString.call(V).slice(8,-1);return Q==="Object"&&V.constructor&&(Q=V.constructor.name),Q==="Map"||Q==="Set"?Array.from(V):Q==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Q)?Yo(V,et):void 0}}(q)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()))})}})(d,n,l)}),S1(i,"clickable")},setLink:function(i,n){var l=n;Dt().securityLevel!=="loose"&&(l=(0,ti.N)(n)),i.split(",").forEach(function(d){Ds(d)!==void 0&&(C1(d,function(){window.open(l,"_self")}),wu[d]=l)}),S1(i,"clickable")},getLinks:function(){return wu},bindFunctions:function(i){As.forEach(function(n){n(i)})},durationToDate:w1,isInvalidDate:Cu};function Nu(i,n,l){for(var d=!0;d;)d=!1,l.forEach(function(g){var T=new RegExp("^\\s*"+g+"\\s*$");i[0].match(T)&&(n[g]=!0,i.shift(1),d=!0)})}var ko;const ml={setConf:function(){y.debug("Something is calling, setConf, remove the call")},draw:function(i,n,l,d){var g,T=Dt().gantt,k=Dt().securityLevel;k==="sandbox"&&(g=(0,w.select)("#i"+n));var S=k==="sandbox"?(0,w.select)(g.nodes()[0].contentDocument.body):(0,w.select)("body"),N=k==="sandbox"?g.nodes()[0].contentDocument:document,O=N.getElementById(n);(ko=O.parentElement.offsetWidth)===void 0&&(ko=1200),T.useWidth!==void 0&&(ko=T.useWidth);var q=d.db.getTasks(),V=q.length*(T.barHeight+T.barGap)+2*T.topPadding;O.setAttribute("viewBox","0 0 "+ko+" "+V);for(var et=S.select('[id="'.concat(n,'"]')),Q=(0,w.scaleTime)().domain([(0,w.min)(q,function(Nt){return Nt.startTime}),(0,w.max)(q,function(Nt){return Nt.endTime})]).rangeRound([0,ko-T.leftPadding-T.rightPadding]),Tt=[],St=0;St<q.length;St++)Tt.push(q[St].type);var Lt=Tt;Tt=function(Nt){for(var Ot={},Ft=[],_t=0,ee=Nt.length;_t<ee;++_t)Object.prototype.hasOwnProperty.call(Ot,Nt[_t])||(Ot[Nt[_t]]=!0,Ft.push(Nt[_t]));return Ft}(Tt),q.sort(function(Nt,Ot){var Ft=Nt.startTime,_t=Ot.startTime,ee=0;return Ft>_t?ee=1:Ft<_t&&(ee=-1),ee}),function(Nt,Ot,Ft){var _t=T.barHeight,ee=_t+T.barGap,ke=T.topPadding,ue=T.leftPadding;(0,w.scaleLinear)().domain([0,Tt.length]).range(["#00B9FA","#F95002"]).interpolate(w.interpolateHcl),function(ve,Rt,le,Wt,ie,ce,oe,Ne){var Ce=ce.reduce(function(Ue,$e){var bn=$e.startTime;return Ue?Math.min(Ue,bn):bn},0),je=ce.reduce(function(Ue,$e){var bn=$e.endTime;return Ue?Math.max(Ue,bn):bn},0),_n=d.db.getDateFormat();if(Ce&&je){for(var Re=[],tn=null,yn=u()(Ce);yn.valueOf()<=je;)d.db.isInvalidDate(yn,_n,oe,Ne)?tn?tn.end=yn.clone():tn={start:yn.clone(),end:yn.clone()}:tn&&(Re.push(tn),tn=null),yn.add(1,"d");et.append("g").selectAll("rect").data(Re).enter().append("rect").attr("id",function(Ue){return"exclude-"+Ue.start.format("YYYY-MM-DD")}).attr("x",function(Ue){return Q(Ue.start)+le}).attr("y",T.gridLineStartPadding).attr("width",function(Ue){var $e=Ue.end.clone().add(1,"day");return Q($e)-Q(Ue.start)}).attr("height",ie-Rt-T.gridLineStartPadding).attr("transform-origin",function(Ue,$e){return(Q(Ue.start)+le+.5*(Q(Ue.end)-Q(Ue.start))).toString()+"px "+($e*ve+.5*ie).toString()+"px"}).attr("class","exclude-range")}}(ee,ke,ue,0,Ft,Nt,d.db.getExcludes(),d.db.getIncludes()),function(ve,Rt,le,Wt){var ie=(0,w.axisBottom)(Q).tickSize(-Wt+Rt+T.gridLineStartPadding).tickFormat((0,w.timeFormat)(d.db.getAxisFormat()||T.axisFormat||"%Y-%m-%d"));if(et.append("g").attr("class","grid").attr("transform","translate("+ve+", "+(Wt-50)+")").call(ie).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10).attr("dy","1em"),d.db.topAxisEnabled()||T.topAxis){var ce=(0,w.axisTop)(Q).tickSize(-Wt+Rt+T.gridLineStartPadding).tickFormat((0,w.timeFormat)(d.db.getAxisFormat()||T.axisFormat||"%Y-%m-%d"));et.append("g").attr("class","grid").attr("transform","translate("+ve+", "+Rt+")").call(ce).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10)}}(ue,ke,0,Ft),function(ve,Rt,le,Wt,ie,ce,oe){et.append("g").selectAll("rect").data(ve).enter().append("rect").attr("x",0).attr("y",function(Re,tn){return Re.order*Rt+le-2}).attr("width",function(){return oe-T.rightPadding/2}).attr("height",Rt).attr("class",function(Re){for(var tn=0;tn<Tt.length;tn++)if(Re.type===Tt[tn])return"section section"+tn%T.numberSectionStyles;return"section section0"});var Ne=et.append("g").selectAll("rect").data(ve).enter(),Ce=d.db.getLinks();if(Ne.append("rect").attr("id",function(Re){return Re.id}).attr("rx",3).attr("ry",3).attr("x",function(Re){return Re.milestone?Q(Re.startTime)+Wt+.5*(Q(Re.endTime)-Q(Re.startTime))-.5*ie:Q(Re.startTime)+Wt}).attr("y",function(Re,tn){return Re.order*Rt+le}).attr("width",function(Re){return Re.milestone?ie:Q(Re.renderEndTime||Re.endTime)-Q(Re.startTime)}).attr("height",ie).attr("transform-origin",function(Re,tn){return tn=Re.order,(Q(Re.startTime)+Wt+.5*(Q(Re.endTime)-Q(Re.startTime))).toString()+"px "+(tn*Rt+le+.5*ie).toString()+"px"}).attr("class",function(Re){var tn="";Re.classes.length>0&&(tn=Re.classes.join(" "));for(var yn=0,Ue=0;Ue<Tt.length;Ue++)Re.type===Tt[Ue]&&(yn=Ue%T.numberSectionStyles);var $e="";return Re.active?Re.crit?$e+=" activeCrit":$e=" active":Re.done?$e=Re.crit?" doneCrit":" done":Re.crit&&($e+=" crit"),$e.length===0&&($e=" task"),Re.milestone&&($e=" milestone "+$e),"task"+($e+=yn)+" "+tn}),Ne.append("text").attr("id",function(Re){return Re.id+"-text"}).text(function(Re){return Re.task}).attr("font-size",T.fontSize).attr("x",function(Re){var tn=Q(Re.startTime),yn=Q(Re.renderEndTime||Re.endTime);Re.milestone&&(tn+=.5*(Q(Re.endTime)-Q(Re.startTime))-.5*ie),Re.milestone&&(yn=tn+ie);var Ue=this.getBBox().width;return Ue>yn-tn?yn+Ue+1.5*T.leftPadding>oe?tn+Wt-5:yn+Wt+5:(yn-tn)/2+tn+Wt}).attr("y",function(Re,tn){return Re.order*Rt+T.barHeight/2+(T.fontSize/2-2)+le}).attr("text-height",ie).attr("class",function(Re){var tn=Q(Re.startTime),yn=Q(Re.endTime);Re.milestone&&(yn=tn+ie);var Ue=this.getBBox().width,$e="";Re.classes.length>0&&($e=Re.classes.join(" "));for(var bn=0,gr=0;gr<Tt.length;gr++)Re.type===Tt[gr]&&(bn=gr%T.numberSectionStyles);var fr="";return Re.active&&(fr=Re.crit?"activeCritText"+bn:"activeText"+bn),Re.done?fr=Re.crit?fr+" doneCritText"+bn:fr+" doneText"+bn:Re.crit&&(fr=fr+" critText"+bn),Re.milestone&&(fr+=" milestoneText"),Ue>yn-tn?yn+Ue+1.5*T.leftPadding>oe?$e+" taskTextOutsideLeft taskTextOutside"+bn+" "+fr:$e+" taskTextOutsideRight taskTextOutside"+bn+" "+fr+" width-"+Ue:$e+" taskText taskText"+bn+" "+fr+" width-"+Ue}),Dt().securityLevel==="sandbox"){var je;je=(0,w.select)("#i"+n),(0,w.select)(je.nodes()[0].contentDocument.body);var _n=je.nodes()[0].contentDocument;Ne.filter(function(Re){return Ce[Re.id]!==void 0}).each(function(Re){var tn=_n.querySelector("#"+Re.id),yn=_n.querySelector("#"+Re.id+"-text"),Ue=tn.parentNode,$e=_n.createElement("a");$e.setAttribute("xlink:href",Ce[Re.id]),$e.setAttribute("target","_top"),Ue.appendChild($e),$e.appendChild(tn),$e.appendChild(yn)})}}(Nt,ee,ke,ue,_t,0,Ot),function(ve,Rt){for(var le=[],Wt=0,ie=0;ie<Tt.length;ie++)le[ie]=[Tt[ie],(ce=Tt[ie],oe=Lt,function(Ne){for(var Ce=Ne.length,je={};Ce;)je[Ne[--Ce]]=(je[Ne[Ce]]||0)+1;return je}(oe)[ce]||0)];var ce,oe;et.append("g").selectAll("text").data(le).enter().append(function(Ne){var Ce=Ne[0].split(an.lineBreakRegex),je=-(Ce.length-1)/2,_n=N.createElementNS("http://www.w3.org/2000/svg","text");_n.setAttribute("dy",je+"em");for(var Re=0;Re<Ce.length;Re++){var tn=N.createElementNS("http://www.w3.org/2000/svg","tspan");tn.setAttribute("alignment-baseline","central"),tn.setAttribute("x","10"),Re>0&&tn.setAttribute("dy","1em"),tn.textContent=Ce[Re],_n.appendChild(tn)}return _n}).attr("x",10).attr("y",function(Ne,Ce){if(!(Ce>0))return Ne[1]*ve/2+Rt;for(var je=0;je<Ce;je++)return Wt+=le[Ce-1][1],Ne[1]*ve/2+Wt*ve+Rt}).attr("font-size",T.sectionFontSize).attr("font-size",T.sectionFontSize).attr("class",function(Ne){for(var Ce=0;Ce<Tt.length;Ce++)if(Ne[0]===Tt[Ce])return"sectionTitle sectionTitle"+Ce%T.numberSectionStyles;return"sectionTitle"})}(ee,ke),function(ve,Rt,le,Wt){var ie=d.db.getTodayMarker();if(ie!=="off"){var ce=et.append("g").attr("class","today"),oe=new Date,Ne=ce.append("line");Ne.attr("x1",Q(oe)+ve).attr("x2",Q(oe)+ve).attr("y1",T.titleTopMargin).attr("y2",Wt-T.titleTopMargin).attr("class","today"),ie!==""&&Ne.attr("style",ie.replace(/,/g,";"))}}(ue,0,0,Ft)}(q,ko,V),Gi(et,0,ko,T.useMaxWidth),et.append("text").text(d.db.getDiagramTitle()).attr("x",ko/2).attr("y",T.titleTopMargin).attr("class","titleText"),kr(d.db,et,n)}};var A1=p(9959),Ou=p.n(A1),Bu="",Lu=!1;const yf={setMessage:function(i){y.debug("Setting message to: "+i),Bu=i},getMessage:function(){return Bu},setInfo:function(i){Lu=i},getInfo:function(){return Lu}},bl={draw:function(i,n,l,d){try{y.debug(`Renering info diagram
`+i);var g,T=Dt().securityLevel;T==="sandbox"&&(g=(0,w.select)("#i"+n));var k=T==="sandbox"?(0,w.select)(g.nodes()[0].contentDocument.body):(0,w.select)("body"),S=(T==="sandbox"&&g.nodes()[0].contentDocument,k.select("#"+n));S.append("g").append("text").attr("x",100).attr("y",40).attr("class","version").attr("font-size","32px").style("text-anchor","middle").text("v "+l),S.attr("height",100),S.attr("width",400)}catch(N){y.error("Error while rendering info diagram"),y.error(N.message)}}};var za=p(6765),Iu=p.n(za),Fu=p(7062),Ru=p.n(Fu),Ns={},vl=!1;const mf={parseDirective:function(i,n,l){Bn.parseDirective(this,i,n,l)},getConfig:function(){return Dt().pie},addSection:function(i,n){i=an.sanitizeText(i,Dt()),Ns[i]===void 0&&(Ns[i]=n,y.debug("Added new section :",i))},getSections:function(){return Ns},cleanupValue:function(i){return i.substring(0,1)===":"&&(i=i.substring(1).trim()),Number(i.trim())},clear:function(){Ns={},vl=!1,Kt()},setAccTitle:xr,getAccTitle:Or,setDiagramTitle:ka,getDiagramTitle:hr,setShowData:function(i){vl=i},getShowData:function(){return vl},getAccDescription:li,setAccDescription:Vr};var Ya,Di=Dt();const M1={draw:function(i,n,l,d){try{Di=Dt(),y.debug(`Rendering info diagram
`+i);var g,T=Dt().securityLevel;T==="sandbox"&&(g=(0,w.select)("#i"+n));var k=T==="sandbox"?(0,w.select)(g.nodes()[0].contentDocument.body):(0,w.select)("body"),S=T==="sandbox"?g.nodes()[0].contentDocument:document;d.db.clear(),d.parser.parse(i),y.debug("Parsed info diagram");var N=S.getElementById(n);(Ya=N.parentElement.offsetWidth)===void 0&&(Ya=1200),Di.useWidth!==void 0&&(Ya=Di.useWidth),Di.pie.useWidth!==void 0&&(Ya=Di.pie.useWidth);var O=k.select("#"+n);Gi(O,0,Ya,Di.pie.useMaxWidth),kr(d.db,O,n),N.setAttribute("viewBox","0 0 "+Ya+" 450");var q=Math.min(Ya,450)/2-40,V=O.append("g").attr("transform","translate("+Ya/2+",225)"),et=d.db.getSections(),Q=0;Object.keys(et).forEach(function(_t){Q+=et[_t]});var Tt=Di.themeVariables,St=[Tt.pie1,Tt.pie2,Tt.pie3,Tt.pie4,Tt.pie5,Tt.pie6,Tt.pie7,Tt.pie8,Tt.pie9,Tt.pie10,Tt.pie11,Tt.pie12],Lt=(0,w.scaleOrdinal)().range(St),Nt=(0,w.pie)().value(function(_t){return _t[1]})(Object.entries(et)),Ot=(0,w.arc)().innerRadius(0).outerRadius(q);V.selectAll("mySlices").data(Nt).enter().append("path").attr("d",Ot).attr("fill",function(_t){return Lt(_t.data[0])}).attr("class","pieCircle"),V.selectAll("mySlices").data(Nt).enter().append("text").text(function(_t){return(_t.data[1]/Q*100).toFixed(0)+"%"}).attr("transform",function(_t){return"translate("+Ot.centroid(_t)+")"}).style("text-anchor","middle").attr("class","slice"),V.append("text").text(d.db.getDiagramTitle()).attr("x",0).attr("y",-200).attr("class","pieTitleText");var Ft=V.selectAll(".legend").data(Lt.domain()).enter().append("g").attr("class","legend").attr("transform",function(_t,ee){return"translate(216,"+(22*ee-22*Lt.domain().length/2)+")"});Ft.append("rect").attr("width",18).attr("height",18).style("fill",Lt).style("stroke",Lt),Ft.data(Nt).append("text").attr("x",22).attr("y",14).text(function(_t){return d.db.getShowData()||Di.showData||Di.pie.showData?_t.data[0]+" ["+_t.data[1]+"]":_t.data[0]})}catch(_t){y.error("Error while rendering info diagram"),y.error(_t)}}};var D1=p(3176),Pu=p.n(D1),Ac=[],Li={},wo={},To={},Os={};const N1={RequirementType:{REQUIREMENT:"Requirement",FUNCTIONAL_REQUIREMENT:"Functional Requirement",INTERFACE_REQUIREMENT:"Interface Requirement",PERFORMANCE_REQUIREMENT:"Performance Requirement",PHYSICAL_REQUIREMENT:"Physical Requirement",DESIGN_CONSTRAINT:"Design Constraint"},RiskLevel:{LOW_RISK:"Low",MED_RISK:"Medium",HIGH_RISK:"High"},VerifyType:{VERIFY_ANALYSIS:"Analysis",VERIFY_DEMONSTRATION:"Demonstration",VERIFY_INSPECTION:"Inspection",VERIFY_TEST:"Test"},Relationships:{CONTAINS:"contains",COPIES:"copies",DERIVES:"derives",SATISFIES:"satisfies",VERIFIES:"verifies",REFINES:"refines",TRACES:"traces"},parseDirective:function(i,n,l){Bn.parseDirective(this,i,n,l)},getConfig:function(){return Dt().req},addRequirement:function(i,n){return wo[i]===void 0&&(wo[i]={name:i,type:n,id:Li.id,text:Li.text,risk:Li.risk,verifyMethod:Li.verifyMethod}),Li={},wo[i]},getRequirements:function(){return wo},setNewReqId:function(i){Li!==void 0&&(Li.id=i)},setNewReqText:function(i){Li!==void 0&&(Li.text=i)},setNewReqRisk:function(i){Li!==void 0&&(Li.risk=i)},setNewReqVerifyMethod:function(i){Li!==void 0&&(Li.verifyMethod=i)},setAccTitle:xr,getAccTitle:Or,setAccDescription:Vr,getAccDescription:li,addElement:function(i){return Os[i]===void 0&&(Os[i]={name:i,type:To.type,docRef:To.docRef},y.info("Added new requirement: ",i)),To={},Os[i]},getElements:function(){return Os},setNewElementType:function(i){To!==void 0&&(To.type=i)},setNewElementDocRef:function(i){To!==void 0&&(To.docRef=i)},addRelationship:function(i,n,l){Ac.push({type:i,src:n,dst:l})},getRelationships:function(){return Ac},clear:function(){Ac=[],Li={},wo={},To={},Os={},Kt()}};var ju={CONTAINS:"contains",ARROW:"arrow"};const Ua=ju;var Fr={},zu=0,O1=function(i,n){return i.insert("rect","#"+n).attr("class","req reqBox").attr("x",0).attr("y",0).attr("width",Fr.rect_min_width+"px").attr("height",Fr.rect_min_height+"px")},Eo=function(i,n,l){var d=Fr.rect_min_width/2,g=i.append("text").attr("class","req reqLabel reqTitle").attr("id",n).attr("x",d).attr("y",Fr.rect_padding).attr("dominant-baseline","hanging"),T=0;l.forEach(function(S){T==0?g.append("tspan").attr("text-anchor","middle").attr("x",Fr.rect_min_width/2).attr("dy",0).text(S):g.append("tspan").attr("text-anchor","middle").attr("x",Fr.rect_min_width/2).attr("dy",.75*Fr.line_height).text(S),T++});var k=1.5*Fr.rect_padding+T*Fr.line_height*.75;return i.append("line").attr("class","req-title-line").attr("x1","0").attr("x2",Fr.rect_min_width).attr("y1",k).attr("y2",k),{titleNode:g,y:k}},B1=function(i,n,l,d){var g=i.append("text").attr("class","req reqLabel").attr("id",n).attr("x",Fr.rect_padding).attr("y",d).attr("dominant-baseline","hanging"),T=0,k=[];return l.forEach(function(S){for(var N=S.length;N>30&&T<3;){var O=S.substring(0,30);N=(S=S.substring(30,S.length)).length,k[k.length]=O,T++}if(T==3){var q=k[k.length-1];k[k.length-1]=q.substring(0,q.length-4)+"..."}else k[k.length]=S;T=0}),k.forEach(function(S){g.append("tspan").attr("x",Fr.rect_padding).attr("dy",Fr.line_height).text(S)}),g},Bs=function(i){return i.replace(/\s/g,"").replace(/\./g,"_")};const bf={draw:function(i,n,l,d){Fr=Dt().requirement,d.db.clear(),d.parser.parse(i);var g,T=Fr.securityLevel;T==="sandbox"&&(g=(0,w.select)("#i"+n));var k=T==="sandbox"?(0,w.select)(g.nodes()[0].contentDocument.body):(0,w.select)("body"),S=(T==="sandbox"&&g.nodes()[0].contentDocument,k.select("[id='".concat(n,"']")));(function(Ft,_t){var ee=Ft.append("defs").append("marker").attr("id",ju.CONTAINS+"_line_ending").attr("refX",0).attr("refY",_t.line_height/2).attr("markerWidth",_t.line_height).attr("markerHeight",_t.line_height).attr("orient","auto").append("g");ee.append("circle").attr("cx",_t.line_height/2).attr("cy",_t.line_height/2).attr("r",_t.line_height/2).attr("fill","none"),ee.append("line").attr("x1",0).attr("x2",_t.line_height).attr("y1",_t.line_height/2).attr("y2",_t.line_height/2).attr("stroke-width",1),ee.append("line").attr("y1",0).attr("y2",_t.line_height).attr("x1",_t.line_height/2).attr("x2",_t.line_height/2).attr("stroke-width",1),Ft.append("defs").append("marker").attr("id",ju.ARROW+"_line_ending").attr("refX",_t.line_height).attr("refY",.5*_t.line_height).attr("markerWidth",_t.line_height).attr("markerHeight",_t.line_height).attr("orient","auto").append("path").attr("d",`M0,0
L`.concat(_t.line_height,",").concat(_t.line_height/2,`
M`).concat(_t.line_height,",").concat(_t.line_height/2,`
L0,`).concat(_t.line_height)).attr("stroke-width",1)})(S,Fr);var N,O,q,V=new(di()).Graph({multigraph:!1,compound:!1,directed:!0}).setGraph({rankdir:Fr.layoutDirection,marginx:20,marginy:20,nodesep:100,edgesep:100,ranksep:100}).setDefaultEdgeLabel(function(){return{}}),et=d.db.getRequirements(),Q=d.db.getElements(),Tt=d.db.getRelationships();N=et,O=V,q=S,Object.keys(N).forEach(function(Ft){var _t=N[Ft];Ft=Bs(Ft),y.info("Added new requirement: ",Ft);var ee=q.append("g").attr("id",Ft),ke=O1(ee,"req-"+Ft),ue=Eo(ee,Ft+"_title",["<<".concat(_t.type,">>"),"".concat(_t.name)]);B1(ee,Ft+"_body",["Id: ".concat(_t.id),"Text: ".concat(_t.text),"Risk: ".concat(_t.risk),"Verification: ".concat(_t.verifyMethod)],ue.y);var ve=ke.node().getBBox();O.setNode(Ft,{width:ve.width,height:ve.height,shape:"rect",id:Ft})}),function(Ft,_t,ee){Object.keys(Ft).forEach(function(ke){var ue=Ft[ke],ve=Bs(ke),Rt=ee.append("g").attr("id",ve),le="element-"+ve,Wt=O1(Rt,le),ie=Eo(Rt,le+"_title",["<<Element>>","".concat(ke)]);B1(Rt,le+"_body",["Type: ".concat(ue.type||"Not Specified"),"Doc Ref: ".concat(ue.docRef||"None")],ie.y);var ce=Wt.node().getBBox();_t.setNode(ve,{width:ce.width,height:ce.height,shape:"rect",id:ve})})}(Q,V,S),function(Ft,_t){Ft.forEach(function(ee){var ke=Bs(ee.src),ue=Bs(ee.dst);_t.setEdge(ke,ue,{relationship:ee})})}(Tt,V),_s().layout(V),function(Ft,_t){_t.nodes().forEach(function(ee){ee!==void 0&&_t.node(ee)!==void 0&&(Ft.select("#"+ee),Ft.select("#"+ee).attr("transform","translate("+(_t.node(ee).x-_t.node(ee).width/2)+","+(_t.node(ee).y-_t.node(ee).height/2)+" )"))})}(S,V),Tt.forEach(function(Ft){(function(_t,ee,ke,ue,ve){var Rt=ke.edge(Bs(ee.src),Bs(ee.dst)),le=(0,w.line)().x(function(ie){return ie.x}).y(function(ie){return ie.y}),Wt=_t.insert("path","#"+ue).attr("class","er relationshipLine").attr("d",le(Rt.points)).attr("fill","none");ee.type==ve.db.Relationships.CONTAINS?Wt.attr("marker-start","url("+an.getUrl(Fr.arrowMarkerAbsolute)+"#"+ee.type+"_line_ending)"):(Wt.attr("stroke-dasharray","10,7"),Wt.attr("marker-end","url("+an.getUrl(Fr.arrowMarkerAbsolute)+"#"+Ua.ARROW+"_line_ending)")),function(ie,ce,oe,Ne){var Ce=ce.node().getTotalLength(),je=ce.node().getPointAtLength(.5*Ce),_n="rel"+zu;zu++;var Re=ie.append("text").attr("class","req relationshipLabel").attr("id",_n).attr("x",je.x).attr("y",je.y).attr("text-anchor","middle").attr("dominant-baseline","middle").text(Ne).node().getBBox();ie.insert("rect","#"+_n).attr("class","req reqLabelBox").attr("x",je.x-Re.width/2).attr("y",je.y-Re.height/2).attr("width",Re.width).attr("height",Re.height).attr("fill","white").attr("fill-opacity","85%")}(_t,Wt,0,"<<".concat(ee.type,">>"))})(S,Ft,V,n,d)});var St=Fr.rect_padding,Lt=S.node().getBBox(),Nt=Lt.width+2*St,Ot=Lt.height+2*St;Gi(S,0,Nt,Fr.useMaxWidth),S.attr("viewBox","".concat(Lt.x-St," ").concat(Lt.y-St," ").concat(Nt," ").concat(Ot)),kr(d.db,S,n)}};var Yu,So=p(6876),L1=p.n(So),is=void 0,to={},$a=[],_l=!1,Uu=function(i,n,l,d){var g=to[i];g&&n===g.name&&l==null||(l!=null&&l.text!=null||(l={text:n,wrap:null,type:d}),d!=null&&l.text!=null||(l={text:n,wrap:null,type:d}),to[i]={name:n,description:l.text,wrap:l.wrap===void 0&&eo()||!!l.wrap,prevActor:is,links:{},properties:{},actorCnt:null,rectData:null,type:d||"participant"},is&&to[is]&&(to[is].nextActor=i),is=i)},vf=function(i){var n,l=0;for(n=0;n<$a.length;n++)$a[n].type===no.ACTIVE_START&&$a[n].from.actor===i&&l++,$a[n].type===no.ACTIVE_END&&$a[n].from.actor===i&&l--;return l},Rr=function(i,n){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{text:void 0,wrap:void 0},d=arguments.length>3?arguments[3]:void 0;if(d===no.ACTIVE_END){var g=vf(i.actor);if(g<1){var T=new Error("Trying to inactivate an inactive participant ("+i.actor+")");throw T.hash={text:"->>-",token:"->>-",line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["'ACTIVE_PARTICIPANT'"]},T}}return $a.push({from:i,to:n,message:l.text,wrap:l.wrap===void 0&&eo()||!!l.wrap,type:d}),!0},as=function(i){return to[i]},eo=function(){return Yu!==void 0?Yu:Dt().sequence.wrap},no={SOLID:0,DOTTED:1,NOTE:2,SOLID_CROSS:3,DOTTED_CROSS:4,SOLID_OPEN:5,DOTTED_OPEN:6,LOOP_START:10,LOOP_END:11,ALT_START:12,ALT_ELSE:13,ALT_END:14,OPT_START:15,OPT_END:16,ACTIVE_START:17,ACTIVE_END:18,PAR_START:19,PAR_AND:20,PAR_END:21,RECT_START:22,RECT_END:23,SOLID_POINT:24,DOTTED_POINT:25,AUTONUMBER:26,CRITICAL_START:27,CRITICAL_OPTION:28,CRITICAL_END:29,BREAK_START:30,BREAK_END:31},$u=function(i,n,l){l.text,l.wrap===void 0&&eo()||l.wrap;var d=[].concat(i,i);$a.push({from:d[0],to:d[1],message:l.text,wrap:l.wrap===void 0&&eo()||!!l.wrap,type:no.NOTE,placement:n})},Wu=function(i,n){var l=as(i);try{var d=cr(n.text,Dt());d=(d=d.replace(/&amp;/g,"&")).replace(/&equals;/g,"="),xl(l,JSON.parse(d))}catch(g){y.error("error while parsing actor link text",g)}};function xl(i,n){if(i.links==null)i.links=n;else for(var l in n)i.links[l]=n[l]}var Yi=function(i,n){var l=as(i);try{var d=cr(n.text,Dt());Mc(l,JSON.parse(d))}catch(g){y.error("error while parsing actor properties text",g)}};function Mc(i,n){if(i.properties==null)i.properties=n;else for(var l in n)i.properties[l]=n[l]}var qu=function(i,n){var l=as(i),d=document.getElementById(n.text);try{var g=d.innerHTML,T=JSON.parse(g);T.properties&&Mc(l,T.properties),T.links&&xl(l,T.links)}catch(k){y.error("error while parsing actor details text",k)}};const Dc={addActor:Uu,addMessage:function(i,n,l,d){$a.push({from:i,to:n,message:l.text,wrap:l.wrap===void 0&&eo()||!!l.wrap,answer:d})},addSignal:Rr,addLinks:Wu,addDetails:qu,addProperties:Yi,autoWrap:eo,setWrap:function(i){Yu=i},enableSequenceNumbers:function(){_l=!0},disableSequenceNumbers:function(){_l=!1},showSequenceNumbers:function(){return _l},getMessages:function(){return $a},getActors:function(){return to},getActor:as,getActorKeys:function(){return Object.keys(to)},getActorProperty:function(i,n){if(i!==void 0&&i.properties!==void 0)return i.properties[n]},getAccTitle:Or,getDiagramTitle:hr,setDiagramTitle:ka,parseDirective:function(i,n,l){Bn.parseDirective(this,i,n,l)},getConfig:function(){return Dt().sequence},clear:function(){to={},$a=[],_l=!1,Kt()},parseMessage:function(i){var n=i.trim(),l={text:n.replace(/^[:]?(?:no)?wrap:/,"").trim(),wrap:n.match(/^[:]?wrap:/)!==null||n.match(/^[:]?nowrap:/)===null&&void 0};return y.debug("parseMessage:",l),l},LINETYPE:no,ARROWTYPE:{FILLED:0,OPEN:1},PLACEMENT:{LEFTOF:0,RIGHTOF:1,OVER:2},addNote:$u,setAccTitle:xr,apply:function i(n){if(n instanceof Array)n.forEach(function(l){i(l)});else switch(n.type){case"sequenceIndex":$a.push({from:void 0,to:void 0,message:{start:n.sequenceIndex,step:n.sequenceIndexStep,visible:n.sequenceVisible},wrap:!1,type:n.signalType});break;case"addParticipant":Uu(n.actor,n.actor,n.description,"participant");break;case"addActor":Uu(n.actor,n.actor,n.description,"actor");break;case"activeStart":case"activeEnd":Rr(n.actor,void 0,void 0,n.signalType);break;case"addNote":$u(n.actor,n.placement,n.text);break;case"addLinks":Wu(n.actor,n.text);break;case"addALink":(function(l,d){var g=as(l);try{var T={},k=cr(d.text,Dt()),S=k.indexOf("@"),N=(k=(k=k.replace(/&amp;/g,"&")).replace(/&equals;/g,"=")).slice(0,S-1).trim(),O=k.slice(S+1).trim();T[N]=O,xl(g,T)}catch(q){y.error("error while parsing actor link text",q)}})(n.actor,n.text);break;case"addProperties":Yi(n.actor,n.text);break;case"addDetails":qu(n.actor,n.text);break;case"addMessage":Rr(n.from,n.to,n.msg,n.signalType);break;case"loopStart":Rr(void 0,void 0,n.loopText,n.signalType);break;case"loopEnd":case"rectEnd":case"optEnd":case"altEnd":case"parEnd":case"criticalEnd":case"breakEnd":Rr(void 0,void 0,void 0,n.signalType);break;case"rectStart":Rr(void 0,void 0,n.color,n.signalType);break;case"optStart":Rr(void 0,void 0,n.optText,n.signalType);break;case"altStart":case"else":Rr(void 0,void 0,n.altText,n.signalType);break;case"setAccTitle":xr(n.text);break;case"parStart":case"and":Rr(void 0,void 0,n.parText,n.signalType);break;case"criticalStart":Rr(void 0,void 0,n.criticalText,n.signalType);break;case"option":Rr(void 0,void 0,n.optionText,n.signalType);break;case"breakStart":Rr(void 0,void 0,n.breakText,n.signalType)}},setAccDescription:Vr,getAccDescription:li};var Ls=[],Is=function(i,n){var l=i.append("rect");return l.attr("x",n.x),l.attr("y",n.y),l.attr("fill",n.fill),l.attr("stroke",n.stroke),l.attr("width",n.width),l.attr("height",n.height),l.attr("rx",n.rx),l.attr("ry",n.ry),n.class!==void 0&&l.attr("class",n.class),l},I1=function(i,n){var l;l=function(){var d=document.querySelectorAll(i);d.length!==0&&(d[0].addEventListener("mouseover",function(){Nc("actor"+n+"_popup")}),d[0].addEventListener("mouseout",function(){xf("actor"+n+"_popup")}))},Ls.push(l)},_f=function(i,n,l,d){var g=i.append("image");g.attr("x",n),g.attr("y",l);var T=(0,ti.N)(d);g.attr("xlink:href",T)},Fs=function(i,n,l,d){var g=i.append("use");g.attr("x",n),g.attr("y",l);var T=(0,ti.N)(d);g.attr("xlink:href","#"+T)},Nc=function(i){var n=document.getElementById(i);n!=null&&(n.style.display="block")},xf=function(i){var n=document.getElementById(i);n!=null&&(n.style.display="none")},Oc=function(i,n){var l=0,d=0,g=n.text.split(an.lineBreakRegex),T=[],k=0,S=function(){return n.y};if(n.valign!==void 0&&n.textMargin!==void 0&&n.textMargin>0)switch(n.valign){case"top":case"start":S=function(){return Math.round(n.y+n.textMargin)};break;case"middle":case"center":S=function(){return Math.round(n.y+(l+d+n.textMargin)/2)};break;case"bottom":case"end":S=function(){return Math.round(n.y+(l+d+2*n.textMargin)-n.textMargin)}}if(n.anchor!==void 0&&n.textMargin!==void 0&&n.width!==void 0)switch(n.anchor){case"left":case"start":n.x=Math.round(n.x+n.textMargin),n.anchor="start",n.dominantBaseline="middle",n.alignmentBaseline="middle";break;case"middle":case"center":n.x=Math.round(n.x+n.width/2),n.anchor="middle",n.dominantBaseline="middle",n.alignmentBaseline="middle";break;case"right":case"end":n.x=Math.round(n.x+n.width-n.textMargin),n.anchor="end",n.dominantBaseline="middle",n.alignmentBaseline="middle"}for(var N=0;N<g.length;N++){var O=g[N];n.textMargin!==void 0&&n.textMargin===0&&n.fontSize!==void 0&&(k=N*n.fontSize);var q=i.append("text");if(q.attr("x",n.x),q.attr("y",S()),n.anchor!==void 0&&q.attr("text-anchor",n.anchor).attr("dominant-baseline",n.dominantBaseline).attr("alignment-baseline",n.alignmentBaseline),n.fontFamily!==void 0&&q.style("font-family",n.fontFamily),n.fontSize!==void 0&&q.style("font-size",n.fontSize),n.fontWeight!==void 0&&q.style("font-weight",n.fontWeight),n.fill!==void 0&&q.attr("fill",n.fill),n.class!==void 0&&q.attr("class",n.class),n.dy!==void 0?q.attr("dy",n.dy):k!==0&&q.attr("dy",k),n.tspan){var V=q.append("tspan");V.attr("x",n.x),n.fill!==void 0&&V.attr("fill",n.fill),V.text(O)}else q.text(O);n.valign!==void 0&&n.textMargin!==void 0&&n.textMargin>0&&(d+=(q._groups||q)[0][0].getBBox().height,l=d),T.push(q)}return T},F1=function(i,n){var l=i.append("polygon");return l.attr("points",function(d,g,T,k,S){return d+","+g+" "+(d+T)+","+g+" "+(d+T)+","+(g+k-7)+" "+(d+T-8.4)+","+(g+k)+" "+d+","+(g+k)}(n.x,n.y,n.width,n.height)),l.attr("class","labelBox"),n.y=n.y+n.height/2,Oc(i,n),l},Ui=-1,Vu=function(i,n){i.selectAll&&i.selectAll(".actor-line").attr("class","200").attr("y2",n-55)},R1=function(){return{x:0,y:0,fill:void 0,anchor:void 0,style:"#666",width:void 0,height:void 0,textMargin:0,rx:0,ry:0,tspan:!0,valign:void 0}},kf=function(){return{x:0,y:0,fill:"#EDF2AE",stroke:"#666",width:100,anchor:"start",height:100,rx:0,ry:0}},os=function(){function i(g,T,k,S,N,O,q){d(T.append("text").attr("x",k+N/2).attr("y",S+O/2+5).style("text-anchor","middle").text(g),q)}function n(g,T,k,S,N,O,q,V){for(var et=V.actorFontSize,Q=V.actorFontFamily,Tt=V.actorFontWeight,St=et&&et.replace?et.replace("px",""):et,Lt=g.split(an.lineBreakRegex),Nt=0;Nt<Lt.length;Nt++){var Ot=Nt*St-St*(Lt.length-1)/2,Ft=T.append("text").attr("x",k+N/2).attr("y",S).style("text-anchor","middle").style("font-size",et).style("font-weight",Tt).style("font-family",Q);Ft.append("tspan").attr("x",k+N/2).attr("dy",Ot).text(Lt[Nt]),Ft.attr("y",S+O/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),d(Ft,q)}}function l(g,T,k,S,N,O,q,V){var et=T.append("switch"),Q=et.append("foreignObject").attr("x",k).attr("y",S).attr("width",N).attr("height",O).append("xhtml:div").style("display","table").style("height","100%").style("width","100%");Q.append("div").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(g),n(g,et,k,S,N,O,q,V),d(Q,q)}function d(g,T){for(var k in T)T.hasOwnProperty(k)&&g.attr(k,T[k])}return function(g){return g.textPlacement==="fo"?l:g.textPlacement==="old"?i:n}}(),wf=function(){function i(g,T,k,S,N,O,q){d(T.append("text").attr("x",k).attr("y",S).style("text-anchor","start").text(g),q)}function n(g,T,k,S,N,O,q,V){for(var et=V.actorFontSize,Q=V.actorFontFamily,Tt=V.actorFontWeight,St=g.split(an.lineBreakRegex),Lt=0;Lt<St.length;Lt++){var Nt=Lt*et-et*(St.length-1)/2,Ot=T.append("text").attr("x",k).attr("y",S).style("text-anchor","start").style("font-size",et).style("font-weight",Tt).style("font-family",Q);Ot.append("tspan").attr("x",k).attr("dy",Nt).text(St[Lt]),Ot.attr("y",S+O/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),d(Ot,q)}}function l(g,T,k,S,N,O,q,V){var et=T.append("switch"),Q=et.append("foreignObject").attr("x",k).attr("y",S).attr("width",N).attr("height",O).append("xhtml:div").style("display","table").style("height","100%").style("width","100%");Q.append("div").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(g),n(g,et,k,S,0,O,q,V),d(Q,q)}function d(g,T){for(var k in T)T.hasOwnProperty(k)&&g.attr(k,T[k])}return function(g){return g.textPlacement==="fo"?l:g.textPlacement==="old"?i:n}}();const Tf=Is,Ef=function(i,n,l){switch(n.type){case"actor":return function(d,g,T){var k=g.x+g.width/2;g.y===0&&(Ui++,d.append("line").attr("id","actor"+Ui).attr("x1",k).attr("y1",80).attr("x2",k).attr("y2",2e3).attr("class","actor-line").attr("stroke-width","0.5px").attr("stroke","#999"));var S=d.append("g");S.attr("class","actor-man");var N={x:0,y:0,fill:"#EDF2AE",stroke:"#666",width:100,anchor:"start",height:100,rx:0,ry:0};N.x=g.x,N.y=g.y,N.fill="#eaeaea",N.width=g.width,N.height=g.height,N.class="actor",N.rx=3,N.ry=3,S.append("line").attr("id","actor-man-torso"+Ui).attr("x1",k).attr("y1",g.y+25).attr("x2",k).attr("y2",g.y+45),S.append("line").attr("id","actor-man-arms"+Ui).attr("x1",k-18).attr("y1",g.y+33).attr("x2",k+18).attr("y2",g.y+33),S.append("line").attr("x1",k-18).attr("y1",g.y+60).attr("x2",k).attr("y2",g.y+45),S.append("line").attr("x1",k).attr("y1",g.y+45).attr("x2",k+16).attr("y2",g.y+60);var O=S.append("circle");O.attr("cx",g.x+g.width/2),O.attr("cy",g.y+10),O.attr("r",15),O.attr("width",g.width),O.attr("height",g.height);var q=S.node().getBBox();return g.height=q.height,os(T)(g.description,S,N.x,N.y+35,N.width,N.height,{class:"actor"},T),g.height}(i,n,l);case"participant":return function(d,g,T){var k=g.x+g.width/2,S=d.append("g"),N=S;g.y===0&&(Ui++,N.append("line").attr("id","actor"+Ui).attr("x1",k).attr("y1",5).attr("x2",k).attr("y2",2e3).attr("class","actor-line").attr("stroke-width","0.5px").attr("stroke","#999"),N=S.append("g"),g.actorCnt=Ui,g.links!=null&&(N.attr("id","root-"+Ui),I1("#root-"+Ui,Ui)));var O={x:0,y:0,fill:"#EDF2AE",stroke:"#666",width:100,anchor:"start",height:100,rx:0,ry:0},q="actor";g.properties!=null&&g.properties.class?q=g.properties.class:O.fill="#eaeaea",O.x=g.x,O.y=g.y,O.width=g.width,O.height=g.height,O.class=q,O.rx=3,O.ry=3;var V=Is(N,O);if(g.rectData=O,g.properties!=null&&g.properties.icon){var et=g.properties.icon.trim();et.charAt(0)==="@"?Fs(N,O.x+O.width-20,O.y+10,et.substr(1)):_f(N,O.x+O.width-20,O.y+10,et)}os(T)(g.description,N,O.x,O.y,O.width,O.height,{class:"actor"},T);var Q=g.height;if(V.node){var Tt=V.node().getBBox();g.height=Tt.height,Q=Tt.height}return Q}(i,n,l)}},Hu=function(i,n,l,d,g){if(n.links===void 0||n.links===null||Object.keys(n.links).length===0)return{height:0,width:0};var T=n.links,k=n.actorCnt,S=n.rectData,N="none";g&&(N="block !important");var O=i.append("g");O.attr("id","actor"+k+"_popup"),O.attr("class","actorPopupMenu"),O.attr("display",N),I1("#actor"+k+"_popup",k);var q="";S.class!==void 0&&(q=" "+S.class);var V=S.width>l?S.width:l,et=O.append("rect");if(et.attr("class","actorPopupMenuPanel"+q),et.attr("x",S.x),et.attr("y",S.height),et.attr("fill",S.fill),et.attr("stroke",S.stroke),et.attr("width",V),et.attr("height",S.height),et.attr("rx",S.rx),et.attr("ry",S.ry),T!=null){var Q=20;for(var Tt in T){var St=O.append("a"),Lt=(0,ti.N)(T[Tt]);St.attr("xlink:href",Lt),St.attr("target","_blank"),wf(d)(Tt,St,S.x+10,S.height+Q,V,20,{class:"actor"},d),Q+=30}}return et.attr("height",Q),{height:S.height+Q,width:V}},kl=function(i){return i.append("g")},Gu=function(i,n,l,d,g){var T={x:0,y:0,fill:"#EDF2AE",stroke:"#666",width:100,anchor:"start",height:100,rx:0,ry:0},k=n.anchored;T.x=n.startx,T.y=n.starty,T.class="activation"+g%3,T.width=n.stopx-n.startx,T.height=l-n.starty,Is(k,T)},Rs=function(i,n,l,d){var g=d.boxMargin,T=d.boxTextMargin,k=d.labelBoxHeight,S=d.labelBoxWidth,N=d.messageFontFamily,O=d.messageFontSize,q=d.messageFontWeight,V=i.append("g"),et=function(St,Lt,Nt,Ot){return V.append("line").attr("x1",St).attr("y1",Lt).attr("x2",Nt).attr("y2",Ot).attr("class","loopLine")};et(n.startx,n.starty,n.stopx,n.starty),et(n.stopx,n.starty,n.stopx,n.stopy),et(n.startx,n.stopy,n.stopx,n.stopy),et(n.startx,n.starty,n.startx,n.stopy),n.sections!==void 0&&n.sections.forEach(function(St){et(n.startx,St.y,n.stopx,St.y).style("stroke-dasharray","3, 3")});var Q={x:0,y:0,fill:void 0,anchor:void 0,style:"#666",width:void 0,height:void 0,textMargin:0,rx:0,ry:0,tspan:!0,valign:void 0};Q.text=l,Q.x=n.startx,Q.y=n.starty,Q.fontFamily=N,Q.fontSize=O,Q.fontWeight=q,Q.anchor="middle",Q.valign="middle",Q.tspan=!1,Q.width=S||50,Q.height=k||20,Q.textMargin=T,Q.class="labelText",F1(V,Q),(Q={x:0,y:0,fill:void 0,anchor:void 0,style:"#666",width:void 0,height:void 0,textMargin:0,rx:0,ry:0,tspan:!0,valign:void 0}).text=n.title,Q.x=n.startx+S/2+(n.stopx-n.startx)/2,Q.y=n.starty+g+T,Q.anchor="middle",Q.valign="middle",Q.textMargin=T,Q.class="loopText",Q.fontFamily=N,Q.fontSize=O,Q.fontWeight=q,Q.wrap=!0;var Tt=Oc(V,Q);return n.sectionTitles!==void 0&&n.sectionTitles.forEach(function(St,Lt){if(St.message){Q.text=St.message,Q.x=n.startx+(n.stopx-n.startx)/2,Q.y=n.sections[Lt].y+g+T,Q.class="loopText",Q.anchor="middle",Q.valign="middle",Q.tspan=!1,Q.fontFamily=N,Q.fontSize=O,Q.fontWeight=q,Q.wrap=n.wrap,Tt=Oc(V,Q);var Nt=Math.round(Tt.map(function(Ot){return(Ot._groups||Ot)[0][0].getBBox().height}).reduce(function(Ot,Ft){return Ot+Ft}));n.sections[Lt].height+=Nt-(g+T)}}),n.height=Math.round(n.stopy-n.starty),V},Sf=function(i,n){Is(i,{x:n.startx,y:n.starty,width:n.stopx-n.startx,height:n.stopy-n.starty,fill:n.fill,class:"rect"}).lower()},Cf=function(i){i.append("defs").append("marker").attr("id","arrowhead").attr("refX",9).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z")},Af=function(i){i.append("defs").append("marker").attr("id","filled-head").attr("refX",18).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},Mf=function(i){i.append("defs").append("marker").attr("id","sequencenumber").attr("refX",15).attr("refY",15).attr("markerWidth",60).attr("markerHeight",40).attr("orient","auto").append("circle").attr("cx",15).attr("cy",15).attr("r",6)},P1=function(i){var n=i.append("defs").append("marker").attr("id","crosshead").attr("markerWidth",15).attr("markerHeight",8).attr("orient","auto").attr("refX",16).attr("refY",4);n.append("path").attr("fill","black").attr("stroke","#000000").style("stroke-dasharray","0, 0").attr("stroke-width","1px").attr("d","M 9,2 V 6 L16,4 Z"),n.append("path").attr("fill","none").attr("stroke","#000000").style("stroke-dasharray","0, 0").attr("stroke-width","1px").attr("d","M 0,1 L 6,7 M 6,1 L 0,7")},Xu=function(i){i.append("defs").append("symbol").attr("id","database").attr("fill-rule","evenodd").attr("clip-rule","evenodd").append("path").attr("transform","scale(.5)").attr("d","M12.258.001l.256.004.255.005.253.008.251.01.249.012.247.015.246.016.242.019.241.02.239.023.236.024.233.027.231.028.229.031.225.032.223.034.22.036.217.038.214.04.211.041.208.043.205.045.201.046.198.048.194.05.191.051.187.053.183.054.18.056.175.057.172.059.168.06.163.061.16.063.155.064.15.066.074.033.073.033.071.034.07.034.069.035.068.035.067.035.066.035.064.036.064.036.062.036.06.036.06.037.058.037.058.037.055.038.055.038.053.038.052.038.051.039.05.039.048.039.047.039.045.04.044.04.043.04.041.04.04.041.039.041.037.041.036.041.034.041.033.042.032.042.03.042.029.042.027.042.026.043.024.043.023.043.021.043.02.043.018.044.017.043.015.044.013.044.012.044.011.045.009.044.007.045.006.045.004.045.002.045.001.045v17l-.001.045-.002.045-.004.045-.006.045-.007.045-.009.044-.011.045-.012.044-.013.044-.015.044-.017.043-.018.044-.02.043-.021.043-.023.043-.024.043-.026.043-.027.042-.029.042-.03.042-.032.042-.033.042-.034.041-.036.041-.037.041-.039.041-.04.041-.041.04-.043.04-.044.04-.045.04-.047.039-.048.039-.05.039-.051.039-.052.038-.053.038-.055.038-.055.038-.058.037-.058.037-.06.037-.06.036-.062.036-.064.036-.064.036-.066.035-.067.035-.068.035-.069.035-.07.034-.071.034-.073.033-.074.033-.15.066-.155.064-.16.063-.163.061-.168.06-.172.059-.175.057-.18.056-.183.054-.187.053-.191.051-.194.05-.198.048-.201.046-.205.045-.208.043-.211.041-.214.04-.217.038-.22.036-.223.034-.225.032-.229.031-.231.028-.233.027-.236.024-.239.023-.241.02-.242.019-.246.016-.247.015-.249.012-.251.01-.253.008-.255.005-.256.004-.258.001-.258-.001-.256-.004-.255-.005-.253-.008-.251-.01-.249-.012-.247-.015-.245-.016-.243-.019-.241-.02-.238-.023-.236-.024-.234-.027-.231-.028-.228-.031-.226-.032-.223-.034-.22-.036-.217-.038-.214-.04-.211-.041-.208-.043-.204-.045-.201-.046-.198-.048-.195-.05-.19-.051-.187-.053-.184-.054-.179-.056-.176-.057-.172-.059-.167-.06-.164-.061-.159-.063-.155-.064-.151-.066-.074-.033-.072-.033-.072-.034-.07-.034-.069-.035-.068-.035-.067-.035-.066-.035-.064-.036-.063-.036-.062-.036-.061-.036-.06-.037-.058-.037-.057-.037-.056-.038-.055-.038-.053-.038-.052-.038-.051-.039-.049-.039-.049-.039-.046-.039-.046-.04-.044-.04-.043-.04-.041-.04-.04-.041-.039-.041-.037-.041-.036-.041-.034-.041-.033-.042-.032-.042-.03-.042-.029-.042-.027-.042-.026-.043-.024-.043-.023-.043-.021-.043-.02-.043-.018-.044-.017-.043-.015-.044-.013-.044-.012-.044-.011-.045-.009-.044-.007-.045-.006-.045-.004-.045-.002-.045-.001-.045v-17l.001-.045.002-.045.004-.045.006-.045.007-.045.009-.044.011-.045.012-.044.013-.044.015-.044.017-.043.018-.044.02-.043.021-.043.023-.043.024-.043.026-.043.027-.042.029-.042.03-.042.032-.042.033-.042.034-.041.036-.041.037-.041.039-.041.04-.041.041-.04.043-.04.044-.04.046-.04.046-.039.049-.039.049-.039.051-.039.052-.038.053-.038.055-.038.056-.038.057-.037.058-.037.06-.037.061-.036.062-.036.063-.036.064-.036.066-.035.067-.035.068-.035.069-.035.07-.034.072-.034.072-.033.074-.033.151-.066.155-.064.159-.063.164-.061.167-.06.172-.059.176-.057.179-.056.184-.054.187-.053.19-.051.195-.05.198-.048.201-.046.204-.045.208-.043.211-.041.214-.04.217-.038.22-.036.223-.034.226-.032.228-.031.231-.028.234-.027.236-.024.238-.023.241-.02.243-.019.245-.016.247-.015.249-.012.251-.01.253-.008.255-.005.256-.004.258-.001.258.001zm-9.258 20.499v.01l.001.021.003.021.004.022.005.021.006.022.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.023.018.024.019.024.021.024.022.025.023.024.024.025.052.049.056.05.061.051.066.051.07.051.075.051.079.052.084.052.088.052.092.052.097.052.102.051.105.052.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.048.144.049.147.047.152.047.155.047.16.045.163.045.167.043.171.043.176.041.178.041.183.039.187.039.19.037.194.035.197.035.202.033.204.031.209.03.212.029.216.027.219.025.222.024.226.021.23.02.233.018.236.016.24.015.243.012.246.01.249.008.253.005.256.004.259.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.021.224-.024.22-.026.216-.027.212-.028.21-.031.205-.031.202-.034.198-.034.194-.036.191-.037.187-.039.183-.04.179-.04.175-.042.172-.043.168-.044.163-.045.16-.046.155-.046.152-.047.148-.048.143-.049.139-.049.136-.05.131-.05.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.053.083-.051.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.05.023-.024.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.023.01-.022.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.127l-.077.055-.08.053-.083.054-.085.053-.087.052-.09.052-.093.051-.095.05-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.045-.118.044-.12.043-.122.042-.124.042-.126.041-.128.04-.13.04-.132.038-.134.038-.135.037-.138.037-.139.035-.142.035-.143.034-.144.033-.147.032-.148.031-.15.03-.151.03-.153.029-.154.027-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.01-.179.008-.179.008-.181.006-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.006-.179-.008-.179-.008-.178-.01-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.027-.153-.029-.151-.03-.15-.03-.148-.031-.146-.032-.145-.033-.143-.034-.141-.035-.14-.035-.137-.037-.136-.037-.134-.038-.132-.038-.13-.04-.128-.04-.126-.041-.124-.042-.122-.042-.12-.044-.117-.043-.116-.045-.113-.045-.112-.046-.109-.047-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.05-.093-.052-.09-.051-.087-.052-.085-.053-.083-.054-.08-.054-.077-.054v4.127zm0-5.654v.011l.001.021.003.021.004.021.005.022.006.022.007.022.009.022.01.022.011.023.012.023.013.023.015.024.016.023.017.024.018.024.019.024.021.024.022.024.023.025.024.024.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.052.11.051.114.051.119.052.123.05.127.051.131.05.135.049.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.044.171.042.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.022.23.02.233.018.236.016.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.012.241-.015.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.048.139-.05.136-.049.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.051.051-.049.023-.025.023-.024.021-.025.02-.024.019-.024.018-.024.017-.024.015-.023.014-.023.013-.024.012-.022.01-.023.01-.023.008-.022.006-.022.006-.022.004-.021.004-.022.001-.021.001-.021v-4.139l-.077.054-.08.054-.083.054-.085.052-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.044-.118.044-.12.044-.122.042-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.035-.143.033-.144.033-.147.033-.148.031-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.009-.179.009-.179.007-.181.007-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.007-.179-.007-.179-.009-.178-.009-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.031-.146-.033-.145-.033-.143-.033-.141-.035-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.04-.126-.041-.124-.042-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.051-.093-.051-.09-.051-.087-.053-.085-.052-.083-.054-.08-.054-.077-.054v4.139zm0-5.666v.011l.001.02.003.022.004.021.005.022.006.021.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.024.018.023.019.024.021.025.022.024.023.024.024.025.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.051.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.043.171.043.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.021.23.02.233.018.236.017.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.013.241-.014.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.049.139-.049.136-.049.131-.051.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.049.023-.025.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.022.01-.023.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.153l-.077.054-.08.054-.083.053-.085.053-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.048-.105.048-.106.048-.109.046-.111.046-.114.046-.115.044-.118.044-.12.043-.122.043-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.034-.143.034-.144.033-.147.032-.148.032-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.024-.161.024-.162.023-.163.023-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.01-.178.01-.179.009-.179.007-.181.006-.182.006-.182.004-.184.003-.184.001-.185.001-.185-.001-.184-.001-.184-.003-.182-.004-.182-.006-.181-.006-.179-.007-.179-.009-.178-.01-.176-.01-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.023-.162-.023-.161-.024-.159-.024-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.032-.146-.032-.145-.033-.143-.034-.141-.034-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.041-.126-.041-.124-.041-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.048-.105-.048-.102-.048-.1-.05-.097-.049-.095-.051-.093-.051-.09-.052-.087-.052-.085-.053-.083-.053-.08-.054-.077-.054v4.153zm8.74-8.179l-.257.004-.254.005-.25.008-.247.011-.244.012-.241.014-.237.016-.233.018-.231.021-.226.022-.224.023-.22.026-.216.027-.212.028-.21.031-.205.032-.202.033-.198.034-.194.036-.191.038-.187.038-.183.04-.179.041-.175.042-.172.043-.168.043-.163.045-.16.046-.155.046-.152.048-.148.048-.143.048-.139.049-.136.05-.131.05-.126.051-.123.051-.118.051-.114.052-.11.052-.106.052-.101.052-.096.052-.092.052-.088.052-.083.052-.079.052-.074.051-.07.052-.065.051-.06.05-.056.05-.051.05-.023.025-.023.024-.021.024-.02.025-.019.024-.018.024-.017.023-.015.024-.014.023-.013.023-.012.023-.01.023-.01.022-.008.022-.006.023-.006.021-.004.022-.004.021-.001.021-.001.021.001.021.001.021.004.021.004.022.006.021.006.023.008.022.01.022.01.023.012.023.013.023.014.023.015.024.017.023.018.024.019.024.02.025.021.024.023.024.023.025.051.05.056.05.06.05.065.051.07.052.074.051.079.052.083.052.088.052.092.052.096.052.101.052.106.052.11.052.114.052.118.051.123.051.126.051.131.05.136.05.139.049.143.048.148.048.152.048.155.046.16.046.163.045.168.043.172.043.175.042.179.041.183.04.187.038.191.038.194.036.198.034.202.033.205.032.21.031.212.028.216.027.22.026.224.023.226.022.231.021.233.018.237.016.241.014.244.012.247.011.25.008.254.005.257.004.26.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.022.224-.023.22-.026.216-.027.212-.028.21-.031.205-.032.202-.033.198-.034.194-.036.191-.038.187-.038.183-.04.179-.041.175-.042.172-.043.168-.043.163-.045.16-.046.155-.046.152-.048.148-.048.143-.048.139-.049.136-.05.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.05.051-.05.023-.025.023-.024.021-.024.02-.025.019-.024.018-.024.017-.023.015-.024.014-.023.013-.023.012-.023.01-.023.01-.022.008-.022.006-.023.006-.021.004-.022.004-.021.001-.021.001-.021-.001-.021-.001-.021-.004-.021-.004-.022-.006-.021-.006-.023-.008-.022-.01-.022-.01-.023-.012-.023-.013-.023-.014-.023-.015-.024-.017-.023-.018-.024-.019-.024-.02-.025-.021-.024-.023-.024-.023-.025-.051-.05-.056-.05-.06-.05-.065-.051-.07-.052-.074-.051-.079-.052-.083-.052-.088-.052-.092-.052-.096-.052-.101-.052-.106-.052-.11-.052-.114-.052-.118-.051-.123-.051-.126-.051-.131-.05-.136-.05-.139-.049-.143-.048-.148-.048-.152-.048-.155-.046-.16-.046-.163-.045-.168-.043-.172-.043-.175-.042-.179-.041-.183-.04-.187-.038-.191-.038-.194-.036-.198-.034-.202-.033-.205-.032-.21-.031-.212-.028-.216-.027-.22-.026-.224-.023-.226-.022-.231-.021-.233-.018-.237-.016-.241-.014-.244-.012-.247-.011-.25-.008-.254-.005-.257-.004-.26-.001-.26.001z")},j1=function(i){i.append("defs").append("symbol").attr("id","computer").attr("width","24").attr("height","24").append("path").attr("transform","scale(.5)").attr("d","M2 2v13h20v-13h-20zm18 11h-16v-9h16v9zm-10.228 6l.466-1h3.524l.467 1h-4.457zm14.228 3h-24l2-6h2.104l-1.33 4h18.45l-1.297-4h2.073l2 6zm-5-10h-14v-7h14v7z")},z1=function(i){i.append("defs").append("symbol").attr("id","clock").attr("width","24").attr("height","24").append("path").attr("transform","scale(.5)").attr("d","M12 2c5.514 0 10 4.486 10 10s-4.486 10-10 10-10-4.486-10-10 4.486-10 10-10zm0-2c-6.627 0-12 5.373-12 12s5.373 12 12 12 12-5.373 12-12-5.373-12-12-12zm5.848 12.459c.202.038.202.333.001.372-1.907.361-6.045 1.111-6.547 1.111-.719 0-1.301-.582-1.301-1.301 0-.512.77-5.447 1.125-7.445.034-.192.312-.181.343.014l.985 6.238 5.394 1.011z")},Qi=R1,wl=kf;ti.N;var he={},cn={data:{startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},verticalPos:0,sequenceItems:[],activations:[],models:{getHeight:function(){return Math.max.apply(null,this.actors.length===0?[0]:this.actors.map(function(i){return i.height||0}))+(this.loops.length===0?0:this.loops.map(function(i){return i.height||0}).reduce(function(i,n){return i+n}))+(this.messages.length===0?0:this.messages.map(function(i){return i.height||0}).reduce(function(i,n){return i+n}))+(this.notes.length===0?0:this.notes.map(function(i){return i.height||0}).reduce(function(i,n){return i+n}))},clear:function(){this.actors=[],this.loops=[],this.messages=[],this.notes=[]},addActor:function(i){this.actors.push(i)},addLoop:function(i){this.loops.push(i)},addMessage:function(i){this.messages.push(i)},addNote:function(i){this.notes.push(i)},lastActor:function(){return this.actors[this.actors.length-1]},lastLoop:function(){return this.loops[this.loops.length-1]},lastMessage:function(){return this.messages[this.messages.length-1]},lastNote:function(){return this.notes[this.notes.length-1]},actors:[],loops:[],messages:[],notes:[]},init:function(){this.sequenceItems=[],this.activations=[],this.models.clear(),this.data={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},this.verticalPos=0,U1(Dt())},updateVal:function(i,n,l,d){i[n]===void 0?i[n]=l:i[n]=d(l,i[n])},updateBounds:function(i,n,l,d){var g=this,T=0;function k(S){return function(N){T++;var O=g.sequenceItems.length-T+1;g.updateVal(N,"starty",n-O*he.boxMargin,Math.min),g.updateVal(N,"stopy",d+O*he.boxMargin,Math.max),g.updateVal(cn.data,"startx",i-O*he.boxMargin,Math.min),g.updateVal(cn.data,"stopx",l+O*he.boxMargin,Math.max),S!=="activation"&&(g.updateVal(N,"startx",i-O*he.boxMargin,Math.min),g.updateVal(N,"stopx",l+O*he.boxMargin,Math.max),g.updateVal(cn.data,"starty",n-O*he.boxMargin,Math.min),g.updateVal(cn.data,"stopy",d+O*he.boxMargin,Math.max))}}this.sequenceItems.forEach(k()),this.activations.forEach(k("activation"))},insert:function(i,n,l,d){var g=Math.min(i,l),T=Math.max(i,l),k=Math.min(n,d),S=Math.max(n,d);this.updateVal(cn.data,"startx",g,Math.min),this.updateVal(cn.data,"starty",k,Math.min),this.updateVal(cn.data,"stopx",T,Math.max),this.updateVal(cn.data,"stopy",S,Math.max),this.updateBounds(g,k,T,S)},newActivation:function(i,n,l){var d=l[i.from.actor],g=ro(i.from.actor).length||0,T=d.x+d.width/2+(g-1)*he.activationWidth/2;this.activations.push({startx:T,starty:this.verticalPos+2,stopx:T+he.activationWidth,stopy:void 0,actor:i.from.actor,anchored:kl(n)})},endActivation:function(i){var n=this.activations.map(function(l){return l.actor}).lastIndexOf(i.from.actor);return this.activations.splice(n,1)[0]},createLoop:function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{message:void 0,wrap:!1,width:void 0},n=arguments.length>1?arguments[1]:void 0;return{startx:void 0,starty:this.verticalPos,stopx:void 0,stopy:void 0,title:i.message,wrap:i.wrap,width:i.width,height:0,fill:n}},newLoop:function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{message:void 0,wrap:!1,width:void 0},n=arguments.length>1?arguments[1]:void 0;this.sequenceItems.push(this.createLoop(i,n))},endLoop:function(){return this.sequenceItems.pop()},addSectionToLoop:function(i){var n=this.sequenceItems.pop();n.sections=n.sections||[],n.sectionTitles=n.sectionTitles||[],n.sections.push({y:cn.getVerticalPos(),height:0}),n.sectionTitles.push(i),this.sequenceItems.push(n)},bumpVerticalPos:function(i){this.verticalPos=this.verticalPos+i,this.data.stopy=this.verticalPos},getVerticalPos:function(){return this.verticalPos},getBounds:function(){return{bounds:this.data,models:this.models}}},Ps=function(i){return{fontFamily:i.messageFontFamily,fontSize:i.messageFontSize,fontWeight:i.messageFontWeight}},js=function(i){return{fontFamily:i.noteFontFamily,fontSize:i.noteFontSize,fontWeight:i.noteFontWeight}},Zu=function(i){return{fontFamily:i.actorFontFamily,fontSize:i.actorFontSize,fontWeight:i.actorFontWeight}},Qu=function(i,n,l,d,g,T){if(g.hideUnusedParticipants===!0){var k=new Set;T.forEach(function(Q){k.add(Q.from),k.add(Q.to)}),l=l.filter(function(Q){return k.has(Q)})}for(var S=0,N=0,O=0,q=0;q<l.length;q++){var V=n[l[q]];V.width=V.width||he.width,V.height=Math.max(V.height||he.height,he.height),V.margin=V.margin||he.actorMargin,V.x=S+N,V.y=d;var et=Ef(i,V,he);O=Math.max(O,et),cn.insert(V.x,d,V.x+V.width,V.height),S+=V.width,N+=V.margin,cn.models.addActor(V)}cn.bumpVerticalPos(O)},Y1=function(i,n,l,d){for(var g=0,T=0,k=0;k<l.length;k++){var S=n[l[k]],N=Df(S),O=Hu(i,S,N,he,he.forceMenus);O.height>g&&(g=O.height),O.width+S.x>T&&(T=O.width+S.x)}return{maxHeight:g,maxWidth:T}},U1=function(i){te(he,i),i.fontFamily&&(he.actorFontFamily=he.noteFontFamily=he.messageFontFamily=i.fontFamily),i.fontSize&&(he.actorFontSize=he.noteFontSize=he.messageFontSize=i.fontSize),i.fontWeight&&(he.actorFontWeight=he.noteFontWeight=he.messageFontWeight=i.fontWeight)},ro=function(i){return cn.activations.filter(function(n){return n.actor===i})},Ku=function(i,n){var l=n[i],d=ro(i);return[d.reduce(function(g,T){return Math.min(g,T.startx)},l.x+l.width/2),d.reduce(function(g,T){return Math.max(g,T.stopx)},l.x+l.width/2)]};function io(i,n,l,d,g){cn.bumpVerticalPos(l);var T=d;if(n.id&&n.message&&i[n.id]){var k=i[n.id].width,S=Ps(he);n.message=qn.wrapLabel("[".concat(n.message,"]"),k-2*he.wrapPadding,S),n.width=k,n.wrap=!0;var N=qn.calculateTextDimensions(n.message,S),O=Math.max(N.height,he.labelBoxHeight);T=d+O,y.debug("".concat(O," - ").concat(n.message))}g(n),cn.bumpVerticalPos(T)}var Df=function(i){var n=0,l=Zu(he);for(var d in i.links){var g=qn.calculateTextDimensions(d,l).width+2*he.wrapPadding+2*he.boxMargin;n<g&&(n=g)}return n};const Bc={bounds:cn,drawActors:Qu,drawActorsPopup:Y1,setConf:U1,draw:function(i,n,l,d){he=Dt().sequence;var g,T=Dt().securityLevel;T==="sandbox"&&(g=(0,w.select)("#i"+n));var k=T==="sandbox"?(0,w.select)(g.nodes()[0].contentDocument.body):(0,w.select)("body");T==="sandbox"&&g.nodes()[0].contentDocument,cn.init(),y.debug(d.db);var S=T==="sandbox"?k.select('[id="'.concat(n,'"]')):(0,w.select)('[id="'.concat(n,'"]')),N=d.db.getActors(),O=d.db.getActorKeys(),q=d.db.getMessages(),V=d.db.getDiagramTitle(),et=function(ve,Rt,le){var Wt={};return Rt.forEach(function(ie){if(ve[ie.to]&&ve[ie.from]){var ce=ve[ie.to];if(ie.placement===le.db.PLACEMENT.LEFTOF&&!ce.prevActor||ie.placement===le.db.PLACEMENT.RIGHTOF&&!ce.nextActor)return;var oe=ie.placement!==void 0,Ne=!oe,Ce=oe?js(he):Ps(he),je=ie.wrap?qn.wrapLabel(ie.message,he.width-2*he.wrapPadding,Ce):ie.message,_n=qn.calculateTextDimensions(je,Ce).width+2*he.wrapPadding;Ne&&ie.from===ce.nextActor?Wt[ie.to]=Math.max(Wt[ie.to]||0,_n):Ne&&ie.from===ce.prevActor?Wt[ie.from]=Math.max(Wt[ie.from]||0,_n):Ne&&ie.from===ie.to?(Wt[ie.from]=Math.max(Wt[ie.from]||0,_n/2),Wt[ie.to]=Math.max(Wt[ie.to]||0,_n/2)):ie.placement===le.db.PLACEMENT.RIGHTOF?Wt[ie.from]=Math.max(Wt[ie.from]||0,_n):ie.placement===le.db.PLACEMENT.LEFTOF?Wt[ce.prevActor]=Math.max(Wt[ce.prevActor]||0,_n):ie.placement===le.db.PLACEMENT.OVER&&(ce.prevActor&&(Wt[ce.prevActor]=Math.max(Wt[ce.prevActor]||0,_n/2)),ce.nextActor&&(Wt[ie.from]=Math.max(Wt[ie.from]||0,_n/2)))}}),y.debug("maxMessageWidthPerActor:",Wt),Wt}(N,q,d);he.height=function(ve,Rt){var le=0;for(var Wt in Object.keys(ve).forEach(function(Ne){var Ce=ve[Ne];Ce.wrap&&(Ce.description=qn.wrapLabel(Ce.description,he.width-2*he.wrapPadding,Zu(he)));var je=qn.calculateTextDimensions(Ce.description,Zu(he));Ce.width=Ce.wrap?he.width:Math.max(he.width,je.width+2*he.wrapPadding),Ce.height=Ce.wrap?Math.max(je.height,he.height):he.height,le=Math.max(le,Ce.height)}),Rt){var ie=ve[Wt];if(ie){var ce=ve[ie.nextActor];if(ce){var oe=Rt[Wt]+he.actorMargin-ie.width/2-ce.width/2;ie.margin=Math.max(oe,he.actorMargin)}}}return Math.max(le,he.height)}(N,et),j1(S),Xu(S),z1(S),Qu(S,N,O,0,he,q);var Q=function(ve,Rt,le,Wt){var ie,ce,oe,Ne={},Ce=[];return ve.forEach(function(je){switch(je.id=qn.random({length:10}),je.type){case Wt.db.LINETYPE.LOOP_START:case Wt.db.LINETYPE.ALT_START:case Wt.db.LINETYPE.OPT_START:case Wt.db.LINETYPE.PAR_START:case Wt.db.LINETYPE.CRITICAL_START:case Wt.db.LINETYPE.BREAK_START:Ce.push({id:je.id,msg:je.message,from:Number.MAX_SAFE_INTEGER,to:Number.MIN_SAFE_INTEGER,width:0});break;case Wt.db.LINETYPE.ALT_ELSE:case Wt.db.LINETYPE.PAR_AND:case Wt.db.LINETYPE.CRITICAL_OPTION:je.message&&(ie=Ce.pop(),Ne[ie.id]=ie,Ne[je.id]=ie,Ce.push(ie));break;case Wt.db.LINETYPE.LOOP_END:case Wt.db.LINETYPE.ALT_END:case Wt.db.LINETYPE.OPT_END:case Wt.db.LINETYPE.PAR_END:case Wt.db.LINETYPE.CRITICAL_END:case Wt.db.LINETYPE.BREAK_END:ie=Ce.pop(),Ne[ie.id]=ie;break;case Wt.db.LINETYPE.ACTIVE_START:var _n=Rt[je.from?je.from.actor:je.to.actor],Re=ro(je.from?je.from.actor:je.to.actor).length,tn=_n.x+_n.width/2+(Re-1)*he.activationWidth/2,yn={startx:tn,stopx:tn+he.activationWidth,actor:je.from.actor,enabled:!0};cn.activations.push(yn);break;case Wt.db.LINETYPE.ACTIVE_END:var Ue=cn.activations.map(function($e){return $e.actor}).lastIndexOf(je.from.actor);delete cn.activations.splice(Ue,1)[0]}je.placement!==void 0?(ce=function($e,bn,gr){var fr=bn[$e.from].x,jr=bn[$e.to].x,dr=$e.wrap&&$e.message,mi=qn.calculateTextDimensions(dr?qn.wrapLabel($e.message,he.width,js(he)):$e.message,js(he)),ur={width:dr?he.width:Math.max(he.width,mi.width+2*he.noteMargin),height:0,startx:bn[$e.from].x,stopx:0,starty:0,stopy:0,message:$e.message};return $e.placement===gr.db.PLACEMENT.RIGHTOF?(ur.width=dr?Math.max(he.width,mi.width):Math.max(bn[$e.from].width/2+bn[$e.to].width/2,mi.width+2*he.noteMargin),ur.startx=fr+(bn[$e.from].width+he.actorMargin)/2):$e.placement===gr.db.PLACEMENT.LEFTOF?(ur.width=Math.max(dr?he.width:bn[$e.from].width/2+bn[$e.to].width/2,mi.width+2*he.noteMargin),ur.startx=fr-ur.width+(bn[$e.from].width-he.actorMargin)/2):$e.to===$e.from?(mi=qn.calculateTextDimensions(dr?qn.wrapLabel($e.message,Math.max(he.width,bn[$e.from].width),js(he)):$e.message,js(he)),ur.width=dr?Math.max(he.width,bn[$e.from].width):Math.max(bn[$e.from].width,he.width,mi.width+2*he.noteMargin),ur.startx=fr+(bn[$e.from].width-ur.width)/2):(ur.width=Math.abs(fr+bn[$e.from].width/2-(jr+bn[$e.to].width/2))+he.actorMargin,ur.startx=fr<jr?fr+bn[$e.from].width/2-he.actorMargin/2:jr+bn[$e.to].width/2-he.actorMargin/2),dr&&(ur.message=qn.wrapLabel($e.message,ur.width-2*he.wrapPadding,js(he))),y.debug("NM:[".concat(ur.startx,",").concat(ur.stopx,",").concat(ur.starty,",").concat(ur.stopy,":").concat(ur.width,",").concat(ur.height,"=").concat($e.message,"]")),ur}(je,Rt,Wt),je.noteModel=ce,Ce.forEach(function($e){(ie=$e).from=Math.min(ie.from,ce.startx),ie.to=Math.max(ie.to,ce.startx+ce.width),ie.width=Math.max(ie.width,Math.abs(ie.from-ie.to))-he.labelBoxWidth})):(oe=function($e,bn,gr){var fr=!1;if([gr.db.LINETYPE.SOLID_OPEN,gr.db.LINETYPE.DOTTED_OPEN,gr.db.LINETYPE.SOLID,gr.db.LINETYPE.DOTTED,gr.db.LINETYPE.SOLID_CROSS,gr.db.LINETYPE.DOTTED_CROSS,gr.db.LINETYPE.SOLID_POINT,gr.db.LINETYPE.DOTTED_POINT].includes($e.type)&&(fr=!0),!fr)return{};var jr=Ku($e.from,bn),dr=Ku($e.to,bn),mi=jr[0]<=dr[0]?1:0,ur=jr[0]<dr[0]?0:1,Ma=jr.concat(dr),la=Math.abs(dr[ur]-jr[mi]);$e.wrap&&$e.message&&($e.message=qn.wrapLabel($e.message,Math.max(la+2*he.wrapPadding,he.width),Ps(he)));var ai=qn.calculateTextDimensions($e.message,Ps(he));return{width:Math.max($e.wrap?0:ai.width+2*he.wrapPadding,la+2*he.wrapPadding,he.width),height:0,startx:jr[mi],stopx:dr[ur],starty:0,stopy:0,message:$e.message,type:$e.type,wrap:$e.wrap,fromBounds:Math.min.apply(null,Ma),toBounds:Math.max.apply(null,Ma)}}(je,Rt,Wt),je.msgModel=oe,oe.startx&&oe.stopx&&Ce.length>0&&Ce.forEach(function($e){if(ie=$e,oe.startx===oe.stopx){var bn=Rt[je.from],gr=Rt[je.to];ie.from=Math.min(bn.x-oe.width/2,bn.x-bn.width/2,ie.from),ie.to=Math.max(gr.x+oe.width/2,gr.x+bn.width/2,ie.to),ie.width=Math.max(ie.width,Math.abs(ie.to-ie.from))-he.labelBoxWidth}else ie.from=Math.min(oe.startx,ie.from),ie.to=Math.max(oe.stopx,ie.to),ie.width=Math.max(ie.width,oe.width)-he.labelBoxWidth}))}),cn.activations=[],y.debug("Loop type widths:",Ne),Ne}(q,N,0,d);Cf(S),P1(S),Af(S),Mf(S);var Tt=1,St=1,Lt=Array();q.forEach(function(ve){var Rt,le,Wt;switch(ve.type){case d.db.LINETYPE.NOTE:le=ve.noteModel,function(ce,oe){cn.bumpVerticalPos(he.boxMargin),oe.height=he.boxMargin,oe.starty=cn.getVerticalPos();var Ne=wl();Ne.x=oe.startx,Ne.y=oe.starty,Ne.width=oe.width||he.width,Ne.class="note";var Ce=ce.append("g"),je=Tf(Ce,Ne),_n=Qi();_n.x=oe.startx,_n.y=oe.starty,_n.width=Ne.width,_n.dy="1em",_n.text=oe.message,_n.class="noteText",_n.fontFamily=he.noteFontFamily,_n.fontSize=he.noteFontSize,_n.fontWeight=he.noteFontWeight,_n.anchor=he.noteAlign,_n.textMargin=he.noteMargin,_n.valign="center";var Re=Oc(Ce,_n),tn=Math.round(Re.map(function(yn){return(yn._groups||yn)[0][0].getBBox().height}).reduce(function(yn,Ue){return yn+Ue}));je.attr("height",tn+2*he.noteMargin),oe.height+=tn+2*he.noteMargin,cn.bumpVerticalPos(tn+2*he.noteMargin),oe.stopy=oe.starty+tn+2*he.noteMargin,oe.stopx=oe.startx+Ne.width,cn.insert(oe.startx,oe.starty,oe.stopx,oe.stopy),cn.models.addNote(oe)}(S,le);break;case d.db.LINETYPE.ACTIVE_START:cn.newActivation(ve,S,N);break;case d.db.LINETYPE.ACTIVE_END:(function(ce,oe){var Ne=cn.endActivation(ce);Ne.starty+18>oe&&(Ne.starty=oe-6,oe+=12),Gu(S,Ne,oe,he,ro(ce.from.actor).length),cn.insert(Ne.startx,oe-10,Ne.stopx,oe)})(ve,cn.getVerticalPos());break;case d.db.LINETYPE.LOOP_START:io(Q,ve,he.boxMargin,he.boxMargin+he.boxTextMargin,function(ce){return cn.newLoop(ce)});break;case d.db.LINETYPE.LOOP_END:Rt=cn.endLoop(),Rs(S,Rt,"loop",he),cn.bumpVerticalPos(Rt.stopy-cn.getVerticalPos()),cn.models.addLoop(Rt);break;case d.db.LINETYPE.RECT_START:io(Q,ve,he.boxMargin,he.boxMargin,function(ce){return cn.newLoop(void 0,ce.message)});break;case d.db.LINETYPE.RECT_END:Rt=cn.endLoop(),Sf(S,Rt),cn.models.addLoop(Rt),cn.bumpVerticalPos(Rt.stopy-cn.getVerticalPos());break;case d.db.LINETYPE.OPT_START:io(Q,ve,he.boxMargin,he.boxMargin+he.boxTextMargin,function(ce){return cn.newLoop(ce)});break;case d.db.LINETYPE.OPT_END:Rt=cn.endLoop(),Rs(S,Rt,"opt",he),cn.bumpVerticalPos(Rt.stopy-cn.getVerticalPos()),cn.models.addLoop(Rt);break;case d.db.LINETYPE.ALT_START:io(Q,ve,he.boxMargin,he.boxMargin+he.boxTextMargin,function(ce){return cn.newLoop(ce)});break;case d.db.LINETYPE.ALT_ELSE:io(Q,ve,he.boxMargin+he.boxTextMargin,he.boxMargin,function(ce){return cn.addSectionToLoop(ce)});break;case d.db.LINETYPE.ALT_END:Rt=cn.endLoop(),Rs(S,Rt,"alt",he),cn.bumpVerticalPos(Rt.stopy-cn.getVerticalPos()),cn.models.addLoop(Rt);break;case d.db.LINETYPE.PAR_START:io(Q,ve,he.boxMargin,he.boxMargin+he.boxTextMargin,function(ce){return cn.newLoop(ce)});break;case d.db.LINETYPE.PAR_AND:io(Q,ve,he.boxMargin+he.boxTextMargin,he.boxMargin,function(ce){return cn.addSectionToLoop(ce)});break;case d.db.LINETYPE.PAR_END:Rt=cn.endLoop(),Rs(S,Rt,"par",he),cn.bumpVerticalPos(Rt.stopy-cn.getVerticalPos()),cn.models.addLoop(Rt);break;case d.db.LINETYPE.AUTONUMBER:Tt=ve.message.start||Tt,St=ve.message.step||St,ve.message.visible?d.db.enableSequenceNumbers():d.db.disableSequenceNumbers();break;case d.db.LINETYPE.CRITICAL_START:io(Q,ve,he.boxMargin,he.boxMargin+he.boxTextMargin,function(ce){return cn.newLoop(ce)});break;case d.db.LINETYPE.CRITICAL_OPTION:io(Q,ve,he.boxMargin+he.boxTextMargin,he.boxMargin,function(ce){return cn.addSectionToLoop(ce)});break;case d.db.LINETYPE.CRITICAL_END:Rt=cn.endLoop(),Rs(S,Rt,"critical",he),cn.bumpVerticalPos(Rt.stopy-cn.getVerticalPos()),cn.models.addLoop(Rt);break;case d.db.LINETYPE.BREAK_START:io(Q,ve,he.boxMargin,he.boxMargin+he.boxTextMargin,function(ce){return cn.newLoop(ce)});break;case d.db.LINETYPE.BREAK_END:Rt=cn.endLoop(),Rs(S,Rt,"break",he),cn.bumpVerticalPos(Rt.stopy-cn.getVerticalPos()),cn.models.addLoop(Rt);break;default:try{(Wt=ve.msgModel).starty=cn.getVerticalPos(),Wt.sequenceIndex=Tt,Wt.sequenceVisible=d.db.showSequenceNumbers();var ie=function(ce,oe){cn.bumpVerticalPos(10);var Ne,Ce=oe.startx,je=oe.stopx,_n=oe.message,Re=an.splitBreaks(_n).length,tn=qn.calculateTextDimensions(_n,Ps(he)),yn=tn.height/Re;oe.height+=yn,cn.bumpVerticalPos(yn);var Ue=tn.height-10,$e=tn.width;if(Ce===je){Ne=cn.getVerticalPos()+Ue,he.rightAngles||(Ue+=he.boxMargin,Ne=cn.getVerticalPos()+Ue),Ue+=30;var bn=Math.max($e/2,he.width/2);cn.insert(Ce-bn,cn.getVerticalPos()-10+Ue,je+bn,cn.getVerticalPos()+30+Ue)}else Ue+=he.boxMargin,Ne=cn.getVerticalPos()+Ue,cn.insert(Ce,Ne-10,je,Ne);return cn.bumpVerticalPos(Ue),oe.height+=Ue,oe.stopy=oe.starty+oe.height,cn.insert(oe.fromBounds,oe.starty,oe.toBounds,oe.stopy),Ne}(0,Wt);Lt.push({messageModel:Wt,lineStarty:ie}),cn.models.addMessage(Wt)}catch(ce){y.error("error while drawing message",ce)}}[d.db.LINETYPE.SOLID_OPEN,d.db.LINETYPE.DOTTED_OPEN,d.db.LINETYPE.SOLID,d.db.LINETYPE.DOTTED,d.db.LINETYPE.SOLID_CROSS,d.db.LINETYPE.DOTTED_CROSS,d.db.LINETYPE.SOLID_POINT,d.db.LINETYPE.DOTTED_POINT].includes(ve.type)&&(Tt+=St)}),Lt.forEach(function(ve){return function(Rt,le,Wt,ie){var ce=le.startx,oe=le.stopx,Ne=le.starty,Ce=le.message,je=le.type,_n=le.sequenceIndex,Re=le.sequenceVisible,tn=qn.calculateTextDimensions(Ce,Ps(he)),yn=Qi();yn.x=ce,yn.y=Ne+10,yn.width=oe-ce,yn.class="messageText",yn.dy="1em",yn.text=Ce,yn.fontFamily=he.messageFontFamily,yn.fontSize=he.messageFontSize,yn.fontWeight=he.messageFontWeight,yn.anchor=he.messageAlign,yn.valign="center",yn.textMargin=he.wrapPadding,yn.tspan=!1,Oc(Rt,yn);var Ue,$e=tn.width;ce===oe?Ue=he.rightAngles?Rt.append("path").attr("d","M ".concat(ce,",").concat(Wt," H ").concat(ce+Math.max(he.width/2,$e/2)," V ").concat(Wt+25," H ").concat(ce)):Rt.append("path").attr("d","M "+ce+","+Wt+" C "+(ce+60)+","+(Wt-10)+" "+(ce+60)+","+(Wt+30)+" "+ce+","+(Wt+20)):((Ue=Rt.append("line")).attr("x1",ce),Ue.attr("y1",Wt),Ue.attr("x2",oe),Ue.attr("y2",Wt)),je===ie.db.LINETYPE.DOTTED||je===ie.db.LINETYPE.DOTTED_CROSS||je===ie.db.LINETYPE.DOTTED_POINT||je===ie.db.LINETYPE.DOTTED_OPEN?(Ue.style("stroke-dasharray","3, 3"),Ue.attr("class","messageLine1")):Ue.attr("class","messageLine0");var bn="";he.arrowMarkerAbsolute&&(bn=(bn=(bn=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search).replace(/\(/g,"\\(")).replace(/\)/g,"\\)")),Ue.attr("stroke-width",2),Ue.attr("stroke","none"),Ue.style("fill","none"),je!==ie.db.LINETYPE.SOLID&&je!==ie.db.LINETYPE.DOTTED||Ue.attr("marker-end","url("+bn+"#arrowhead)"),je!==ie.db.LINETYPE.SOLID_POINT&&je!==ie.db.LINETYPE.DOTTED_POINT||Ue.attr("marker-end","url("+bn+"#filled-head)"),je!==ie.db.LINETYPE.SOLID_CROSS&&je!==ie.db.LINETYPE.DOTTED_CROSS||Ue.attr("marker-end","url("+bn+"#crosshead)"),(Re||he.showSequenceNumbers)&&(Ue.attr("marker-start","url("+bn+"#sequencenumber)"),Rt.append("text").attr("x",ce).attr("y",Wt+4).attr("font-family","sans-serif").attr("font-size","12px").attr("text-anchor","middle").attr("class","sequenceNumber").text(_n))}(S,ve.messageModel,ve.lineStarty,d)}),he.mirrorActors&&(cn.bumpVerticalPos(2*he.boxMargin),Qu(S,N,O,cn.getVerticalPos(),he,q),cn.bumpVerticalPos(he.boxMargin),Vu(S,cn.getVerticalPos()));var Nt=Y1(S,N,O),Ot=cn.getBounds().bounds;y.debug("For line height fix Querying: #"+n+" .actor-line"),(0,w.selectAll)("#"+n+" .actor-line").attr("y2",Ot.stopy);var Ft=Ot.stopy-Ot.starty;Ft<Nt.maxHeight&&(Ft=Nt.maxHeight);var _t=Ft+2*he.diagramMarginY;he.mirrorActors&&(_t=_t-he.boxMargin+he.bottomMarginAdj);var ee=Ot.stopx-Ot.startx;ee<Nt.maxWidth&&(ee=Nt.maxWidth);var ke=ee+2*he.diagramMarginX;V&&S.append("text").text(V).attr("x",(Ot.stopx-Ot.startx)/2-2*he.diagramMarginX).attr("y",-25),Gi(S,0,ke,he.useMaxWidth);var ue=V?40:0;S.attr("viewBox",Ot.startx-he.diagramMarginX+" -"+(he.diagramMarginY+ue)+" "+ke+" "+(_t+ue)),kr(d.db,S,n),y.debug("models:",cn.models)}};var Nf=p(3584),$1=p.n(Nf);function Ju(i){return Ju=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Ju(i)}var Tl=function(i){return JSON.parse(JSON.stringify(i))},El=[],Of=function i(n,l,d){if(l.stmt==="relation")i(n,l.state1,!0),i(n,l.state2,!1);else if(l.stmt==="state"&&l.id==="[*]"&&(l.id=d?n.id+"_start":n.id+"_end",l.start=d),l.doc){var g=[],T=0,k=[];for(T=0;T<l.doc.length;T++)if(l.doc[T].type==="divider"){var S=Tl(l.doc[T]);S.doc=Tl(k),g.push(S),k=[]}else k.push(l.doc[T]);if(g.length>0&&k.length>0){var N={stmt:"state",id:sc(),type:"divider",doc:Tl(k)};g.push(Tl(N)),l.doc=g}l.doc.forEach(function(O){return i(l,O,!0)})}},Sl={root:{relations:[],states:{},documents:{}}},$i=Sl.root,Cl=0,Al=function(i,n,l,d,g){$i.states[i]===void 0?$i.states[i]={id:i,descriptions:[],type:n,doc:l,note:g}:($i.states[i].doc||($i.states[i].doc=l),$i.states[i].type||($i.states[i].type=n)),d&&(y.info("Adding state ",i,d),typeof d=="string"&&eh(i,d.trim()),Ju(d)==="object"&&d.forEach(function(T){return eh(i,T.trim())})),g&&($i.states[i].note=g,$i.states[i].note.text=an.sanitizeText($i.states[i].note.text,Dt()))},W1=function(i){$i=(Sl={root:{relations:[],states:{},documents:{}}}).root,$i=Sl.root,Cl=0,V1=[],i||Kt()},th=function(i,n,l){var d=i,g=n,T="default",k="default";i==="[*]"&&(d="start"+ ++Cl,T="start"),n==="[*]"&&(g="end"+Cl,k="end"),Al(d,T),Al(g,k),$i.relations.push({id1:d,id2:g,title:an.sanitizeText(l,Dt())})},eh=function(i,n){var l=$i.states[i],d=n;d[0]===":"&&(d=d.substr(1).trim()),l.descriptions.push(an.sanitizeText(d,Dt()))},q1=0,V1=[],H1="TB";const ao={parseDirective:function(i,n,l){Bn.parseDirective(this,i,n,l)},getConfig:function(){return Dt().state},addState:Al,clear:W1,getState:function(i){return $i.states[i]},getStates:function(){return $i.states},getRelations:function(){return $i.relations},getClasses:function(){return V1},getDirection:function(){return H1},addRelation:th,getDividerId:function(){return"divider-id-"+ ++q1},setDirection:function(i){H1=i},cleanupLabel:function(i){return i.substring(0,1)===":"?i.substr(2).trim():i.trim()},lineType:{LINE:0,DOTTED_LINE:1},relationType:{AGGREGATION:0,EXTENSION:1,COMPOSITION:2,DEPENDENCY:3},logDocuments:function(){y.info("Documents = ",Sl)},getRootDoc:function(){return El},setRootDoc:function(i){y.info("Setting root doc",i),El=i},getRootDocV2:function(){return Of({id:"root"},{id:"root",doc:El},!0),{id:"root",doc:El}},extract:function(i){var n;n=i.doc?i.doc:i,y.info(n),W1(!0),y.info("Extract",n),n.forEach(function(l){l.stmt==="state"&&Al(l.id,l.type,l.doc,l.description,l.note),l.stmt==="relation"&&th(l.state1.id,l.state2.id,l.description)})},trimColon:function(i){return i&&i[0]===":"?i.substr(1).trim():i.trim()},getAccTitle:Or,setAccTitle:xr,getAccDescription:li,setAccDescription:Vr};function Co(i,n){(n==null||n>i.length)&&(n=i.length);for(var l=0,d=new Array(n);l<n;l++)d[l]=i[l];return d}var ya,Bf=function(i,n,l){var d,g=Dt().state.padding,T=2*Dt().state.padding,k=i.node().getBBox(),S=k.width,N=k.x,O=i.append("text").attr("x",0).attr("y",Dt().state.titleShift).attr("font-size",Dt().state.fontSize).attr("class","state-title").text(n.id),q=O.node().getBBox().width+T,V=Math.max(q,S);V===S&&(V+=T);var et=i.node().getBBox();n.doc,d=N-g,q>S&&(d=(S-V)/2+g),Math.abs(N-et.x)<g&&q>S&&(d=N-(q-S)/2);var Q=1-Dt().state.textHeight;return i.insert("rect",":first-child").attr("x",d).attr("y",Q).attr("class",l?"alt-composit":"composit").attr("width",V).attr("height",et.height+Dt().state.textHeight+Dt().state.titleShift+1).attr("rx","0"),O.attr("x",d+g),q<=S&&O.attr("x",N+(V-T)/2-q/2+g),i.insert("rect",":first-child").attr("x",d).attr("y",Dt().state.titleShift-Dt().state.textHeight-Dt().state.padding).attr("width",V).attr("height",3*Dt().state.textHeight).attr("rx",Dt().state.radius),i.insert("rect",":first-child").attr("x",d).attr("y",Dt().state.titleShift-Dt().state.textHeight-Dt().state.padding).attr("width",V).attr("height",et.height+3+2*Dt().state.textHeight).attr("rx",Dt().state.radius),i},G1=function(i,n){n.attr("class","state-note");var l=n.append("rect").attr("x",0).attr("y",Dt().state.padding),d=function(k,S,N,O){var q=0,V=O.append("text");V.style("text-anchor","start"),V.attr("class","noteText");var et,Q=k.replace(/\r\n/g,"<br/>"),Tt=(Q=Q.replace(/\n/g,"<br/>")).split(an.lineBreakRegex),St=1.25*Dt().state.noteMargin,Lt=function(Ft,_t){var ee=typeof Symbol<"u"&&Ft[Symbol.iterator]||Ft["@@iterator"];if(!ee){if(Array.isArray(Ft)||(ee=function(Wt,ie){if(Wt){if(typeof Wt=="string")return Co(Wt,ie);var ce=Object.prototype.toString.call(Wt).slice(8,-1);return ce==="Object"&&Wt.constructor&&(ce=Wt.constructor.name),ce==="Map"||ce==="Set"?Array.from(Wt):ce==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(ce)?Co(Wt,ie):void 0}}(Ft))||_t&&Ft&&typeof Ft.length=="number"){ee&&(Ft=ee);var ke=0,ue=function(){};return{s:ue,n:function(){return ke>=Ft.length?{done:!0}:{done:!1,value:Ft[ke++]}},e:function(Wt){throw Wt},f:ue}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var ve,Rt=!0,le=!1;return{s:function(){ee=ee.call(Ft)},n:function(){var Wt=ee.next();return Rt=Wt.done,Wt},e:function(Wt){le=!0,ve=Wt},f:function(){try{Rt||ee.return==null||ee.return()}finally{if(le)throw ve}}}}(Tt);try{for(Lt.s();!(et=Lt.n()).done;){var Nt=et.value.trim();if(Nt.length>0){var Ot=V.append("tspan");Ot.text(Nt),St===0&&(St+=Ot.node().getBBox().height),q+=St,Ot.attr("x",0+Dt().state.noteMargin),Ot.attr("y",0+q+1.25*Dt().state.noteMargin)}}}catch(Ft){Lt.e(Ft)}finally{Lt.f()}return{textWidth:V.node().getBBox().width,textHeight:q}}(i,0,0,n.append("g")),g=d.textWidth,T=d.textHeight;return l.attr("height",T+2*Dt().state.noteMargin),l.attr("width",g+2*Dt().state.noteMargin),l},X1=function(i,n){var l=n.id,d={id:l,label:n.id,width:0,height:0},g=i.append("g").attr("id",l).attr("class","stateGroup");n.type==="start"&&function(k){k.append("circle").attr("class","start-state").attr("r",Dt().state.sizeUnit).attr("cx",Dt().state.padding+Dt().state.sizeUnit).attr("cy",Dt().state.padding+Dt().state.sizeUnit)}(g),n.type==="end"&&function(k){k.append("circle").attr("class","end-state-outer").attr("r",Dt().state.sizeUnit+Dt().state.miniPadding).attr("cx",Dt().state.padding+Dt().state.sizeUnit+Dt().state.miniPadding).attr("cy",Dt().state.padding+Dt().state.sizeUnit+Dt().state.miniPadding),k.append("circle").attr("class","end-state-inner").attr("r",Dt().state.sizeUnit).attr("cx",Dt().state.padding+Dt().state.sizeUnit+2).attr("cy",Dt().state.padding+Dt().state.sizeUnit+2)}(g),n.type!=="fork"&&n.type!=="join"||function(k,S){var N=Dt().state.forkWidth,O=Dt().state.forkHeight;if(S.parentId){var q=N;N=O,O=q}k.append("rect").style("stroke","black").style("fill","black").attr("width",N).attr("height",O).attr("x",Dt().state.padding).attr("y",Dt().state.padding)}(g,n),n.type==="note"&&G1(n.note.text,g),n.type==="divider"&&function(k){k.append("line").style("stroke","grey").style("stroke-dasharray","3").attr("x1",Dt().state.textHeight).attr("class","divider").attr("x2",2*Dt().state.textHeight).attr("y1",0).attr("y2",0)}(g),n.type==="default"&&n.descriptions.length===0&&function(k,S){var N=k.append("text").attr("x",2*Dt().state.padding).attr("y",Dt().state.textHeight+2*Dt().state.padding).attr("font-size",Dt().state.fontSize).attr("class","state-title").text(S.id).node().getBBox();k.insert("rect",":first-child").attr("x",Dt().state.padding).attr("y",Dt().state.padding).attr("width",N.width+2*Dt().state.padding).attr("height",N.height+2*Dt().state.padding).attr("rx",Dt().state.radius)}(g,n),n.type==="default"&&n.descriptions.length>0&&function(k,S){var N=k.append("text").attr("x",2*Dt().state.padding).attr("y",Dt().state.textHeight+1.3*Dt().state.padding).attr("font-size",Dt().state.fontSize).attr("class","state-title").text(S.descriptions[0]).node().getBBox(),O=N.height,q=k.append("text").attr("x",Dt().state.padding).attr("y",O+.4*Dt().state.padding+Dt().state.dividerMargin+Dt().state.textHeight).attr("class","state-description"),V=!0,et=!0;S.descriptions.forEach(function(Lt){V||(function(Nt,Ot,Ft){var _t=Nt.append("tspan").attr("x",2*Dt().state.padding).text(Ot);Ft||_t.attr("dy",Dt().state.textHeight)}(q,Lt,et),et=!1),V=!1});var Q=k.append("line").attr("x1",Dt().state.padding).attr("y1",Dt().state.padding+O+Dt().state.dividerMargin/2).attr("y2",Dt().state.padding+O+Dt().state.dividerMargin/2).attr("class","descr-divider"),Tt=q.node().getBBox(),St=Math.max(Tt.width,N.width);Q.attr("x2",St+3*Dt().state.padding),k.insert("rect",":first-child").attr("x",Dt().state.padding).attr("y",Dt().state.padding).attr("width",St+2*Dt().state.padding).attr("height",Tt.height+O+2*Dt().state.padding).attr("rx",Dt().state.radius)}(g,n);var T=g.node().getBBox();return d.width=T.width+2*Dt().state.padding,d.height=T.height+2*Dt().state.padding,d},Z1=0,Ml={},Dl=function i(n,l,d,g,T,k,S){var N,O=new(di()).Graph({compound:!0,multigraph:!0}),q=!0;for(N=0;N<n.length;N++)if(n[N].stmt==="relation"){q=!1;break}d?O.setGraph({rankdir:"LR",multigraph:!0,compound:!0,ranker:"tight-tree",ranksep:q?1:ya.edgeLengthFactor,nodeSep:q?1:50,isMultiGraph:!0}):O.setGraph({rankdir:"TB",multigraph:!0,compound:!0,ranksep:q?1:ya.edgeLengthFactor,nodeSep:q?1:50,ranker:"tight-tree",isMultiGraph:!0}),O.setDefaultEdgeLabel(function(){return{}}),S.db.extract(n);for(var V=S.db.getStates(),et=S.db.getRelations(),Q=Object.keys(V),Tt=0;Tt<Q.length;Tt++){var St=V[Q[Tt]];d&&(St.parentId=d);var Lt=void 0;if(St.doc){var Nt=l.append("g").attr("id",St.id).attr("class","stateGroup");Lt=i(St.doc,Nt,St.id,!g,T,k,S);var Ot=(Nt=Bf(Nt,St,g)).node().getBBox();Lt.width=Ot.width,Lt.height=Ot.height+ya.padding/2,Ml[St.id]={y:ya.compositTitleSize}}else Lt=X1(l,St);if(St.note){var Ft={descriptions:[],id:St.id+"-note",note:St.note,type:"note"},_t=X1(l,Ft);St.note.position==="left of"?(O.setNode(Lt.id+"-note",_t),O.setNode(Lt.id,Lt)):(O.setNode(Lt.id,Lt),O.setNode(Lt.id+"-note",_t)),O.setParent(Lt.id,Lt.id+"-group"),O.setParent(Lt.id+"-note",Lt.id+"-group")}else O.setNode(Lt.id,Lt)}y.debug("Count=",O.nodeCount(),O);var ee=0;et.forEach(function(Rt){var le;ee++,y.debug("Setting edge",Rt),O.setEdge(Rt.id1,Rt.id2,{relation:Rt,width:(le=Rt.title,le?le.length*ya.fontSizeFactor:1),height:ya.labelHeight*an.getRows(Rt.title).length,labelpos:"c"},"id"+ee)}),_s().layout(O),y.debug("Graph after layout",O.nodes());var ke=l.node();O.nodes().forEach(function(Rt){Rt!==void 0&&O.node(Rt)!==void 0?(y.warn("Node "+Rt+": "+JSON.stringify(O.node(Rt))),T.select("#"+ke.id+" #"+Rt).attr("transform","translate("+(O.node(Rt).x-O.node(Rt).width/2)+","+(O.node(Rt).y+(Ml[Rt]?Ml[Rt].y:0)-O.node(Rt).height/2)+" )"),T.select("#"+ke.id+" #"+Rt).attr("data-x-shift",O.node(Rt).x-O.node(Rt).width/2),k.querySelectorAll("#"+ke.id+" #"+Rt+" .divider").forEach(function(le){var Wt=le.parentElement,ie=0,ce=0;Wt&&(Wt.parentElement&&(ie=Wt.parentElement.getBBox().width),ce=parseInt(Wt.getAttribute("data-x-shift"),10),Number.isNaN(ce)&&(ce=0)),le.setAttribute("x1",0-ce+8),le.setAttribute("x2",ie-ce-8)})):y.debug("No Node "+Rt+": "+JSON.stringify(O.node(Rt)))});var ue=ke.getBBox();O.edges().forEach(function(Rt){Rt!==void 0&&O.edge(Rt)!==void 0&&(y.debug("Edge "+Rt.v+" -> "+Rt.w+": "+JSON.stringify(O.edge(Rt))),function(le,Wt,ie){Wt.points=Wt.points.filter(function(ai){return!Number.isNaN(ai.y)});var ce=Wt.points,oe=(0,w.line)().x(function(ai){return ai.x}).y(function(ai){return ai.y}).curve(w.curveBasis),Ne=le.append("path").attr("d",oe(ce)).attr("id","edge"+Z1).attr("class","transition"),Ce="";if(Dt().state.arrowMarkerAbsolute&&(Ce=(Ce=(Ce=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search).replace(/\(/g,"\\(")).replace(/\)/g,"\\)")),Ne.attr("marker-end","url("+Ce+"#"+function(ai){switch(ai){case ao.relationType.AGGREGATION:return"aggregation";case ao.relationType.EXTENSION:return"extension";case ao.relationType.COMPOSITION:return"composition";case ao.relationType.DEPENDENCY:return"dependency"}}(ao.relationType.DEPENDENCY)+"End)"),ie.title!==void 0){for(var je=le.append("g").attr("class","stateLabel"),_n=qn.calcLabelPosition(Wt.points),Re=_n.x,tn=_n.y,yn=an.getRows(ie.title),Ue=0,$e=[],bn=0,gr=0,fr=0;fr<=yn.length;fr++){var jr=je.append("text").attr("text-anchor","middle").text(yn[fr]).attr("x",Re).attr("y",tn+Ue),dr=jr.node().getBBox();if(bn=Math.max(bn,dr.width),gr=Math.min(gr,dr.x),y.info(dr.x,Re,tn+Ue),Ue===0){var mi=jr.node().getBBox();Ue=mi.height,y.info("Title height",Ue,tn)}$e.push(jr)}var ur=Ue*yn.length;if(yn.length>1){var Ma=(yn.length-1)*Ue*.5;$e.forEach(function(ai,zr){return ai.attr("y",tn+zr*Ue-Ma)}),ur=Ue*yn.length}var la=je.node().getBBox();je.insert("rect",":first-child").attr("class","box").attr("x",Re-bn/2-Dt().state.padding/2).attr("y",tn-ur/2-Dt().state.padding/2-3.5).attr("width",bn+Dt().state.padding).attr("height",ur+Dt().state.padding),y.info(la)}Z1++}(l,O.edge(Rt),O.edge(Rt).relation))}),ue=ke.getBBox();var ve={id:d||"root",label:d||"root",width:0,height:0};return ve.width=ue.width+2*ya.padding,ve.height=ue.height+2*ya.padding,y.debug("Doc rendered",ve,O),ve};const Q1={setConf:function(){},draw:function(i,n,l,d){ya=Dt().state;var g,T=Dt().securityLevel;T==="sandbox"&&(g=(0,w.select)("#i"+n));var k=T==="sandbox"?(0,w.select)(g.nodes()[0].contentDocument.body):(0,w.select)("body"),S=T==="sandbox"?g.nodes()[0].contentDocument:document;y.debug("Rendering diagram "+i);var N=k.select("[id='".concat(n,"']"));N.append("defs").append("marker").attr("id","dependencyEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z"),new(di()).Graph({multigraph:!0,compound:!0,rankdir:"RL"}).setDefaultEdgeLabel(function(){return{}});var O=d.db.getRootDoc();Dl(O,N,void 0,!1,k,S,d);var q=ya.padding,V=N.node().getBBox(),et=V.width+2*q,Q=V.height+2*q;Gi(N,0,1.75*et,ya.useMaxWidth),N.attr("viewBox","".concat(V.x-ya.padding," ").concat(V.y-ya.padding," ")+et+" "+Q),kr(d.db,N,n)}};var Lc={},br={},zs=function(i,n,l,d){if(l.id!=="root"){var g="rect";l.start===!0&&(g="start"),l.start===!1&&(g="end"),l.type!=="default"&&(g=l.type),br[l.id]||(br[l.id]={id:l.id,shape:g,description:an.sanitizeText(l.id,Dt()),classes:"statediagram-state"}),l.description&&(Array.isArray(br[l.id].description)?(br[l.id].shape="rectWithTitle",br[l.id].description.push(l.description)):br[l.id].description.length>0?(br[l.id].shape="rectWithTitle",br[l.id].description===l.id?br[l.id].description=[l.description]:br[l.id].description=[br[l.id].description,l.description]):(br[l.id].shape="rect",br[l.id].description=l.description),br[l.id].description=an.sanitizeTextOrArray(br[l.id].description,Dt())),br[l.id].description.length===1&&br[l.id].shape==="rectWithTitle"&&(br[l.id].shape="rect"),!br[l.id].type&&l.doc&&(y.info("Setting cluster for ",l.id,Nl(l)),br[l.id].type="group",br[l.id].dir=Nl(l),br[l.id].shape=l.type==="divider"?"divider":"roundedWithTitle",br[l.id].classes=br[l.id].classes+" "+(d?"statediagram-cluster statediagram-cluster-alt":"statediagram-cluster"));var T={labelStyle:"",shape:br[l.id].shape,labelText:br[l.id].description,classes:br[l.id].classes,style:"",id:l.id,dir:br[l.id].dir,domId:"state-"+l.id+"-"+Wo,type:br[l.id].type,padding:15};if(l.note){var k={labelStyle:"",shape:"note",labelText:l.note.text,classes:"statediagram-note",style:"",id:l.id+"----note-"+Wo,domId:"state-"+l.id+"----note-"+Wo,type:br[l.id].type,padding:15},S={labelStyle:"",shape:"noteGroup",labelText:l.note.text,classes:br[l.id].classes,style:"",id:l.id+"----parent",domId:"state-"+l.id+"----parent-"+Wo,type:"group",padding:0};Wo++,i.setNode(l.id+"----parent",S),i.setNode(k.id,k),i.setNode(l.id,T),i.setParent(l.id,l.id+"----parent"),i.setParent(k.id,l.id+"----parent");var N=l.id,O=k.id;l.note.position==="left of"&&(N=k.id,O=l.id),i.setEdge(N,O,{arrowhead:"none",arrowType:"",style:"fill:none",labelStyle:"",classes:"transition note-edge",arrowheadStyle:"fill: #333",labelpos:"c",labelType:"text",thickness:"normal"})}else i.setNode(l.id,T)}n&&n.id!=="root"&&(y.trace("Setting node ",l.id," to be child of its parent ",n.id),i.setParent(l.id,n.id)),l.doc&&(y.trace("Adding nodes children "),Lf(i,l,l.doc,!d))},Wo=0,Lf=function(i,n,l,d){y.trace("items",l),l.forEach(function(g){if(g.stmt==="state"||g.stmt==="default")zs(i,n,g,d);else if(g.stmt==="relation"){zs(i,n,g.state1,d),zs(i,n,g.state2,d);var T={id:"edge"+Wo,arrowhead:"normal",arrowTypeEnd:"arrow_barb",style:"fill:none",labelStyle:"",label:an.sanitizeText(g.description,Dt()),arrowheadStyle:"fill: #333",labelpos:"c",labelType:"text",thickness:"normal",classes:"transition"},k=g.state1.id,S=g.state2.id;i.setEdge(k,S,T,Wo),Wo++}})},Nl=function(i,n){var l=n||"TB";if(i.doc)for(var d=0;d<i.doc.length;d++){var g=i.doc[d];g.stmt==="dir"&&(l=g.value)}return l};const ss={setConf:function(i){for(var n=Object.keys(i),l=0;l<n.length;l++)Lc[n[l]]=i[n[l]]},getClasses:function(i,n){return y.trace("Extracting classes"),n.sb.clear(),n.parser.parse(i),n.sb.getClasses()},draw:function(i,n,l,d){y.info("Drawing state diagram (v2)",n),br={},d.db.getDirection();var g=Dt().state,T=g.nodeSpacing||50,k=g.rankSpacing||50,S=Dt().securityLevel;y.info(d.db.getRootDocV2()),d.db.extract(d.db.getRootDocV2()),y.info(d.db.getRootDocV2());var N,O=new(di()).Graph({multigraph:!0,compound:!0}).setGraph({rankdir:Nl(d.db.getRootDocV2()),nodesep:T,ranksep:k,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});zs(O,void 0,d.db.getRootDocV2(),!0),S==="sandbox"&&(N=(0,w.select)("#i"+n));var q=S==="sandbox"?(0,w.select)(N.nodes()[0].contentDocument.body):(0,w.select)("body"),V=(S==="sandbox"&&N.nodes()[0].contentDocument,q.select('[id="'.concat(n,'"]'))),et=q.select("#"+n+" g");il(et,O,["barb"],"statediagram",n);var Q=V.node().getBBox(),Tt=Q.width+16,St=Q.height+16;V.attr("class","statediagram");var Lt=V.node().getBBox();Gi(V,0,Tt,g.useMaxWidth);var Nt="".concat(Lt.x-8," ").concat(Lt.y-8," ").concat(Tt," ").concat(St);y.debug("viewBox ".concat(Nt)),V.attr("viewBox",Nt);for(var Ot=document.querySelectorAll('[id="'+n+'"] .edgeLabel .label'),Ft=0;Ft<Ot.length;Ft++){var _t=Ot[Ft],ee=_t.getBBox(),ke=document.createElementNS("http://www.w3.org/2000/svg","rect");ke.setAttribute("rx",0),ke.setAttribute("ry",0),ke.setAttribute("width",ee.width),ke.setAttribute("height",ee.height),_t.insertBefore(ke,_t.firstChild)}kr(d.db,V,n)}};function K1(i){return function(n){if(Array.isArray(n))return Ol(n)}(i)||function(n){if(typeof Symbol<"u"&&n[Symbol.iterator]!=null||n["@@iterator"]!=null)return Array.from(n)}(i)||function(n,l){if(n){if(typeof n=="string")return Ol(n,l);var d=Object.prototype.toString.call(n).slice(8,-1);return d==="Object"&&n.constructor&&(d=n.constructor.name),d==="Map"||d==="Set"?Array.from(n):d==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(d)?Ol(n,l):void 0}}(i)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function Ol(i,n){(n==null||n>i.length)&&(n=i.length);for(var l=0,d=new Array(n);l<n;l++)d[l]=i[l];return d}var Ys="",nh=[],Us=[],$s=[],J1=function(){for(var i=!0,n=0;n<$s.length;n++)$s[n].processed,i=i&&$s[n].processed;return i};const t0={parseDirective:function(i,n,l){Bn.parseDirective(this,i,n,l)},getConfig:function(){return Dt().journey},clear:function(){nh.length=0,Us.length=0,Ys="",$s.length=0,Kt()},setDiagramTitle:ka,getDiagramTitle:hr,setAccTitle:xr,getAccTitle:Or,setAccDescription:Vr,getAccDescription:li,addSection:function(i){Ys=i,nh.push(i)},getSections:function(){return nh},getTasks:function(){for(var i=J1(),n=0;!i&&n<100;)i=J1(),n++;return Us.push.apply(Us,$s),Us},addTask:function(i,n){var l=n.substr(1).split(":"),d=0,g=[];l.length===1?(d=Number(l[0]),g=[]):(d=Number(l[0]),g=l[1].split(","));var T=g.map(function(S){return S.trim()}),k={section:Ys,type:Ys,people:T,task:i,score:d};$s.push(k)},addTaskOrg:function(i){var n={section:Ys,type:Ys,description:i,task:i,classes:[]};Us.push(n)},getActors:function(){return i=[],Us.forEach(function(n){n.people&&i.push.apply(i,K1(n.people))}),K1(new Set(i)).sort();var i}};var Ic=function(i,n){var l=i.append("rect");return l.attr("x",n.x),l.attr("y",n.y),l.attr("fill",n.fill),l.attr("stroke",n.stroke),l.attr("width",n.width),l.attr("height",n.height),l.attr("rx",n.rx),l.attr("ry",n.ry),n.class!==void 0&&l.attr("class",n.class),l},rh=function(i,n){var l=i.append("circle");return l.attr("cx",n.cx),l.attr("cy",n.cy),l.attr("class","actor-"+n.pos),l.attr("fill",n.fill),l.attr("stroke",n.stroke),l.attr("r",n.r),l.class!==void 0&&l.attr("class",l.class),n.title!==void 0&&l.append("title").text(n.title),l},e0=-1,n0=function(){function i(g,T,k,S,N,O,q,V){d(T.append("text").attr("x",k+N/2).attr("y",S+O/2+5).style("font-color",V).style("text-anchor","middle").text(g),q)}function n(g,T,k,S,N,O,q,V,et){for(var Q=V.taskFontSize,Tt=V.taskFontFamily,St=g.split(/<br\s*\/?>/gi),Lt=0;Lt<St.length;Lt++){var Nt=Lt*Q-Q*(St.length-1)/2,Ot=T.append("text").attr("x",k+N/2).attr("y",S).attr("fill",et).style("text-anchor","middle").style("font-size",Q).style("font-family",Tt);Ot.append("tspan").attr("x",k+N/2).attr("dy",Nt).text(St[Lt]),Ot.attr("y",S+O/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),d(Ot,q)}}function l(g,T,k,S,N,O,q,V){var et=T.append("switch"),Q=et.append("foreignObject").attr("x",k).attr("y",S).attr("width",N).attr("height",O).attr("position","fixed").append("xhtml:div").style("display","table").style("height","100%").style("width","100%");Q.append("div").attr("class","label").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(g),n(g,et,k,S,N,O,q,V),d(Q,q)}function d(g,T){for(var k in T)k in T&&g.attr(k,T[k])}return function(g){return g.textPlacement==="fo"?l:g.textPlacement==="old"?i:n}}();const If=rh,Ff=function(i,n,l){var d=i.append("g"),g={x:0,y:0,width:100,anchor:"start",height:100,rx:0,ry:0};g.x=n.x,g.y=n.y,g.fill=n.fill,g.width=l.width,g.height=l.height,g.class="journey-section section-type-"+n.num,g.rx=3,g.ry=3,Ic(d,g),n0(l)(n.text,d,g.x,g.y,g.width,g.height,{class:"journey-section section-type-"+n.num},l,n.colour)},Rf=function(i,n){var l=n.text.replace(/<br\s*\/?>/gi," "),d=i.append("text");d.attr("x",n.x),d.attr("y",n.y),d.attr("class","legend"),d.style("text-anchor",n.anchor),n.class!==void 0&&d.attr("class",n.class);var g=d.append("tspan");return g.attr("x",n.x+2*n.textMargin),g.text(l),d},Pf=function(i,n,l){var d,g,T,k=n.x+l.width/2,S=i.append("g");e0++,S.append("line").attr("id","task"+e0).attr("x1",k).attr("y1",n.y).attr("x2",k).attr("y2",450).attr("class","task-line").attr("stroke-width","1px").attr("stroke-dasharray","4 2").attr("stroke","#666"),d=S,g={cx:k,cy:300+30*(5-n.score),score:n.score},d.append("circle").attr("cx",g.cx).attr("cy",g.cy).attr("class","face").attr("r",15).attr("stroke-width",2).attr("overflow","visible"),(T=d.append("g")).append("circle").attr("cx",g.cx-5).attr("cy",g.cy-5).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666"),T.append("circle").attr("cx",g.cx+5).attr("cy",g.cy-5).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666"),g.score>3?function(q){var V=(0,w.arc)().startAngle(Math.PI/2).endAngle(Math.PI/2*3).innerRadius(7.5).outerRadius(6.8181818181818175);q.append("path").attr("class","mouth").attr("d",V).attr("transform","translate("+g.cx+","+(g.cy+2)+")")}(T):g.score<3?function(q){var V=(0,w.arc)().startAngle(3*Math.PI/2).endAngle(Math.PI/2*5).innerRadius(7.5).outerRadius(6.8181818181818175);q.append("path").attr("class","mouth").attr("d",V).attr("transform","translate("+g.cx+","+(g.cy+7)+")")}(T):function(q){q.append("line").attr("class","mouth").attr("stroke",2).attr("x1",g.cx-5).attr("y1",g.cy+7).attr("x2",g.cx+5).attr("y2",g.cy+7).attr("class","mouth").attr("stroke-width","1px").attr("stroke","#666")}(T);var N={x:0,y:0,width:100,anchor:"start",height:100,rx:0,ry:0};N.x=n.x,N.y=n.y,N.fill=n.fill,N.width=l.width,N.height=l.height,N.class="task task-type-"+n.num,N.rx=3,N.ry=3,Ic(S,N);var O=n.x+14;n.people.forEach(function(q){var V=n.actors[q].color,et={cx:O,cy:n.y,r:7,fill:V,stroke:"#000",title:q,pos:n.actors[q].position};rh(S,et),O+=10}),n0(l)(n.task,S,N.x,N.y,N.width,N.height,{class:"task"},l,n.colour)};var Wa={},ih=Dt().journey,cs=Dt().journey.leftMargin,Aa={data:{startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},verticalPos:0,sequenceItems:[],init:function(){this.sequenceItems=[],this.data={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},this.verticalPos=0},updateVal:function(i,n,l,d){i[n]===void 0?i[n]=l:i[n]=d(l,i[n])},updateBounds:function(i,n,l,d){var g=Dt().journey,T=this,k=0;this.sequenceItems.forEach(function(S){k++;var N=T.sequenceItems.length-k+1;T.updateVal(S,"starty",n-N*g.boxMargin,Math.min),T.updateVal(S,"stopy",d+N*g.boxMargin,Math.max),T.updateVal(Aa.data,"startx",i-N*g.boxMargin,Math.min),T.updateVal(Aa.data,"stopx",l+N*g.boxMargin,Math.max),T.updateVal(S,"startx",i-N*g.boxMargin,Math.min),T.updateVal(S,"stopx",l+N*g.boxMargin,Math.max),T.updateVal(Aa.data,"starty",n-N*g.boxMargin,Math.min),T.updateVal(Aa.data,"stopy",d+N*g.boxMargin,Math.max)})},insert:function(i,n,l,d){var g=Math.min(i,l),T=Math.max(i,l),k=Math.min(n,d),S=Math.max(n,d);this.updateVal(Aa.data,"startx",g,Math.min),this.updateVal(Aa.data,"starty",k,Math.min),this.updateVal(Aa.data,"stopx",T,Math.max),this.updateVal(Aa.data,"stopy",S,Math.max),this.updateBounds(g,k,T,S)},bumpVerticalPos:function(i){this.verticalPos=this.verticalPos+i,this.data.stopy=this.verticalPos},getVerticalPos:function(){return this.verticalPos},getBounds:function(){return this.data}},ah=ih.sectionFills,oh=ih.sectionColours;const Ii={setConf:function(i){Object.keys(i).forEach(function(n){ih[n]=i[n]})},draw:function(i,n,l,d){var g=Dt().journey;d.db.clear(),d.parser.parse(i+`
`);var T,k=Dt().securityLevel;k==="sandbox"&&(T=(0,w.select)("#i"+n));var S=k==="sandbox"?(0,w.select)(T.nodes()[0].contentDocument.body):(0,w.select)("body");Aa.init();var N=S.select("#"+n);N.append("defs").append("marker").attr("id","arrowhead").attr("refX",5).attr("refY",2).attr("markerWidth",6).attr("markerHeight",4).attr("orient","auto").append("path").attr("d","M 0,0 V 4 L6,2 Z");var O=d.db.getTasks(),q=d.db.getDiagramTitle(),V=d.db.getActors();for(var et in Wa)delete Wa[et];var Q=0;V.forEach(function(Ot){Wa[Ot]={color:g.actorColours[Q%g.actorColours.length],position:Q},Q++}),function(Ot){var Ft=Dt().journey,_t=60;Object.keys(Wa).forEach(function(ee){var ke=Wa[ee].color,ue={cx:20,cy:_t,r:7,fill:ke,stroke:"#000",pos:Wa[ee].position};If(Ot,ue);var ve={x:40,y:_t+7,fill:"#666",text:ee,textMargin:5|Ft.boxTextMargin};Rf(Ot,ve),_t+=20})}(N),Aa.insert(0,0,cs,50*Object.keys(Wa).length),function(Ot,Ft,_t){for(var ee=Dt().journey,ke="",ue=_t+(2*ee.height+ee.diagramMarginY),ve=0,Rt="#CCC",le="black",Wt=0,ie=0;ie<Ft.length;ie++){var ce=Ft[ie];if(ke!==ce.section){Rt=ah[ve%ah.length],Wt=ve%ah.length,le=oh[ve%oh.length];var oe={x:ie*ee.taskMargin+ie*ee.width+cs,y:50,text:ce.section,fill:Rt,num:Wt,colour:le};Ff(Ot,oe,ee),ke=ce.section,ve++}var Ne=ce.people.reduce(function(Ce,je){return Wa[je]&&(Ce[je]=Wa[je]),Ce},{});ce.x=ie*ee.taskMargin+ie*ee.width+cs,ce.y=ue,ce.width=ee.diagramMarginX,ce.height=ee.diagramMarginY,ce.colour=le,ce.fill=Rt,ce.num=Wt,ce.actors=Ne,Pf(Ot,ce,ee),Aa.insert(ce.x,ce.y,ce.x+ce.width+ee.taskMargin,450)}}(N,O,0);var Tt=Aa.getBounds();q&&N.append("text").text(q).attr("x",cs).attr("font-size","4ex").attr("font-weight","bold").attr("y",25);var St=Tt.stopy-Tt.starty+2*g.diagramMarginY,Lt=cs+Tt.stopx+2*g.diagramMarginX;Gi(N,0,Lt,g.useMaxWidth),N.append("line").attr("x1",cs).attr("y1",4*g.height).attr("x2",Lt-cs-4).attr("y2",4*g.height).attr("stroke-width",4).attr("stroke","black").attr("marker-end","url(#arrowhead)");var Nt=q?70:0;N.attr("viewBox","".concat(Tt.startx," -25 ").concat(Lt," ").concat(St+Nt)),N.attr("preserveAspectRatio","xMinYMin meet"),N.attr("height",St+Nt+25),kr(d.db,N,n)}};var jf=p(9763),zf=p.n(jf),Fc={c4:{db:Jr,renderer:Je,parser:pn(),init:function(i){Je.setConf(i.c4)}},class:{db:aa,renderer:rf,parser:uu(),init:function(i){i.class.arrowMarkerAbsolute=i.arrowMarkerAbsolute,aa.clear()}},error:{db:{},renderer:fu,parser:{parser:{yy:{}},parse:function(){}},init:function(){}},classDiagram:{db:aa,renderer:af,parser:uu(),init:function(i){i.class.arrowMarkerAbsolute=i.arrowMarkerAbsolute,aa.clear()}},er:{db:of,renderer:sf,parser:lf()},flowchart:{db:ga,renderer:dl,parser:es(),init:function(i){dl.setConf(i.flowchart),i.flowchart.arrowMarkerAbsolute=i.arrowMarkerAbsolute,ga.clear(),ga.setGen("gen-1")}},"flowchart-v2":{db:ga,renderer:Tc,parser:es(),init:function(i){Tc.setConf(i.flowchart),i.flowchart.arrowMarkerAbsolute=i.arrowMarkerAbsolute,ga.clear(),ga.setGen("gen-2")}},gantt:{db:Du,renderer:ml,parser:Ou(),init:function(i){ml.setConf(i.gantt)}},info:{db:yf,renderer:bl,parser:Iu()},pie:{db:mf,renderer:M1,parser:Ru()},requirement:{db:N1,renderer:bf,parser:Pu()},sequence:{db:Dc,renderer:Bc,parser:L1(),init:function(i){i.sequence.arrowMarkerAbsolute=i.arrowMarkerAbsolute,i.sequenceDiagram&&(Bc.setConf(Object.assign(i.sequence,i.sequenceDiagram)),console.error("`mermaid config.sequenceDiagram` has been renamed to `config.sequence`. Please update your mermaid config.")),Dc.setWrap(i.wrap),Bc.setConf(i.sequence)}},state:{db:ao,renderer:Q1,parser:$1(),init:function(i){i.class.arrowMarkerAbsolute=i.arrowMarkerAbsolute,ao.clear()}},stateDiagram:{db:ao,renderer:ss,parser:$1(),init:function(i){i.class.arrowMarkerAbsolute=i.arrowMarkerAbsolute,ao.clear()}},journey:{db:t0,renderer:Ii,parser:zf(),init:function(i){Ii.setConf(i.journey),t0.clear()}}},sh=function(){return Fc};function ch(i,n){var l=Object.keys(i);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(i);n&&(d=d.filter(function(g){return Object.getOwnPropertyDescriptor(i,g).enumerable})),l.push.apply(l,d)}return l}function Wi(i){for(var n=1;n<arguments.length;n++){var l=arguments[n]!=null?arguments[n]:{};n%2?ch(Object(l),!0).forEach(function(d){_i(i,d,l[d])}):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(l)):ch(Object(l)).forEach(function(d){Object.defineProperty(i,d,Object.getOwnPropertyDescriptor(l,d))})}return i}function _i(i,n,l){return n in i?Object.defineProperty(i,n,{value:l,enumerable:!0,configurable:!0,writable:!0}):i[n]=l,i}var qa=Dt().gitGraph.mainBranchName,Yf=Dt().gitGraph.mainBranchOrder,xi={},Ki=null,Bl={};Bl[qa]={name:qa,order:Yf};var yi={};yi[qa]=Ki;var Fi=qa,lh="LR",ls=0;function uh(){return cc({length:7})}var r0={},i0=function(i){if(i=an.sanitizeText(i,Dt()),yi[i]===void 0){var n=new Error('Trying to checkout branch which is not yet created. (Help try using "branch '+i+'")');throw n.hash={text:"checkout "+i,token:"checkout "+i,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:['"branch '+i+'"']},n}var l=yi[Fi=i];Ki=xi[l]};function a0(i,n,l){var d=i.indexOf(n);d===-1?i.push(l):i.splice(d,1,l)}function o0(i){var n=i.reduce(function(q,V){return q.seq>V.seq?q:V},i[0]),l="";i.forEach(function(q){l+=q===n?" *":" |"});var d,g,T,k=[l,n.id,n.seq];for(var S in yi)yi[S]===n.id&&k.push(S);if(y.debug(k.join(" ")),n.parents&&n.parents.length==2){var N=xi[n.parents[0]];a0(i,n,N),i.push(xi[n.parents[1]])}else{if(n.parents.length==0)return;var O=xi[n.parents];a0(i,n,O)}d=i,g=function(q){return q.id},T=Object.create(null),o0(i=d.reduce(function(q,V){var et=g(V);return T[et]||(T[et]=!0,q.push(V)),q},[]))}var s0=function(){var i=Object.keys(xi).map(function(n){return xi[n]});return i.forEach(function(n){y.debug(n.id)}),i.sort(function(n,l){return n.seq-l.seq}),i},Rc={NORMAL:0,REVERSE:1,HIGHLIGHT:2,MERGE:3,CHERRY_PICK:4};const Ll={parseDirective:function(i,n,l){Bn.parseDirective(this,i,n,l)},getConfig:function(){return Dt().gitGraph},setDirection:function(i){lh=i},setOptions:function(i){y.debug("options str",i),i=(i=i&&i.trim())||"{}";try{r0=JSON.parse(i)}catch(n){y.error("error while parsing gitGraph options",n.message)}},getOptions:function(){return r0},commit:function(i,n,l,d){y.debug("Entering commit:",i,n,l,d),n=an.sanitizeText(n,Dt()),i=an.sanitizeText(i,Dt()),d=an.sanitizeText(d,Dt());var g={id:n||ls+"-"+uh(),message:i,seq:ls++,type:l||Rc.NORMAL,tag:d||"",parents:Ki==null?[]:[Ki.id],branch:Fi};Ki=g,xi[g.id]=g,yi[Fi]=g.id,y.debug("in pushCommit "+g.id)},branch:function(i,n){if(i=an.sanitizeText(i,Dt()),yi[i]!==void 0){var l=new Error('Trying to create an existing branch. (Help: Either use a new name if you want create a new branch or try using "checkout '+i+'")');throw l.hash={text:"branch "+i,token:"branch "+i,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:['"checkout '+i+'"']},l}yi[i]=Ki!=null?Ki.id:null,Bl[i]={name:i,order:n?parseInt(n,10):null},i0(i),y.debug("in createBranch")},merge:function(i,n,l,d){i=an.sanitizeText(i,Dt()),n=an.sanitizeText(n,Dt());var g=xi[yi[Fi]],T=xi[yi[i]];if(Fi===i){var k=new Error('Incorrect usage of "merge". Cannot merge a branch to itself');throw k.hash={text:"merge "+i,token:"merge "+i,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["branch abc"]},k}if(g===void 0||!g){var S=new Error('Incorrect usage of "merge". Current branch ('+Fi+")has no commits");throw S.hash={text:"merge "+i,token:"merge "+i,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["commit"]},S}if(yi[i]===void 0){var N=new Error('Incorrect usage of "merge". Branch to be merged ('+i+") does not exist");throw N.hash={text:"merge "+i,token:"merge "+i,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["branch "+i]},N}if(T===void 0||!T){var O=new Error('Incorrect usage of "merge". Branch to be merged ('+i+") has no commits");throw O.hash={text:"merge "+i,token:"merge "+i,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:['"commit"']},O}if(g===T){var q=new Error('Incorrect usage of "merge". Both branches have same head');throw q.hash={text:"merge "+i,token:"merge "+i,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["branch abc"]},q}if(n&&xi[n]!==void 0){var V=new Error('Incorrect usage of "merge". Commit with id:'+n+" already exists, use different custom Id");throw V.hash={text:"merge "+i+n+l+d,token:"merge "+i+n+l+d,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["merge "+i+" "+n+"_UNIQUE "+l+" "+d]},V}var et={id:n||ls+"-"+uh(),message:"merged branch "+i+" into "+Fi,seq:ls++,parents:[Ki==null?null:Ki.id,yi[i]],branch:Fi,type:Rc.MERGE,customType:l,customId:!!n,tag:d||""};Ki=et,xi[et.id]=et,yi[Fi]=et.id,y.debug(yi),y.debug("in mergeBranch")},cherryPick:function(i,n){if(i=an.sanitizeText(i,Dt()),n=an.sanitizeText(n,Dt()),!i||xi[i]===void 0){var l=new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');throw l.hash={text:"cherryPick "+i+" "+n,token:"cherryPick "+i+" "+n,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["cherry-pick abc"]},l}var d=xi[i],g=d.branch;if(d.type===Rc.MERGE){var T=new Error('Incorrect usage of "cherryPick". Source commit should not be a merge commit');throw T.hash={text:"cherryPick "+i+" "+n,token:"cherryPick "+i+" "+n,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["cherry-pick abc"]},T}if(!n||xi[n]===void 0){if(g===Fi){var k=new Error('Incorrect usage of "cherryPick". Source commit is already on current branch');throw k.hash={text:"cherryPick "+i+" "+n,token:"cherryPick "+i+" "+n,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["cherry-pick abc"]},k}var S=xi[yi[Fi]];if(S===void 0||!S){var N=new Error('Incorrect usage of "cherry-pick". Current branch ('+Fi+")has no commits");throw N.hash={text:"cherryPick "+i+" "+n,token:"cherryPick "+i+" "+n,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["cherry-pick abc"]},N}var O={id:ls+"-"+uh(),message:"cherry-picked "+d+" into "+Fi,seq:ls++,parents:[Ki==null?null:Ki.id,d.id],branch:Fi,type:Rc.CHERRY_PICK,tag:"cherry-pick:"+d.id};Ki=O,xi[O.id]=O,yi[Fi]=O.id,y.debug(yi),y.debug("in cheeryPick")}},checkout:i0,prettyPrint:function(){y.debug(xi),o0([s0()[0]])},clear:function(){xi={},Ki=null;var i=Dt().gitGraph.mainBranchName,n=Dt().gitGraph.mainBranchOrder;(yi={})[i]=null,(Bl={})[i]={name:i,order:n},Fi=i,ls=0,Kt()},getBranchesAsObjArray:function(){return Object.values(Bl).map(function(i,n){return i.order!==null?i:Wi(Wi({},i),{},{order:parseFloat("0.".concat(n),10)})}).sort(function(i,n){return i.order-n.order}).map(function(i){return{name:i.name}})},getBranches:function(){return yi},getCommits:function(){return xi},getCommitsArray:s0,getCurrentBranch:function(){return Fi},getDirection:function(){return lh},getHead:function(){return Ki},setAccTitle:xr,getAccTitle:Or,getAccDescription:li,setAccDescription:Vr,commitType:Rc};var oo={},Ji={},Ws={},so=[],us=0,hh=function(i,n,l){var d=Dt().gitGraph,g=i.append("g").attr("class","commit-bullets"),T=i.append("g").attr("class","commit-labels"),k=0;Object.keys(n).sort(function(S,N){return n[S].seq-n[N].seq}).forEach(function(S,N){var O=n[S],q=Ji[O.branch].pos,V=k+10;if(l){var et,Q=O.customType!==void 0&&O.customType!==""?O.customType:O.type;switch(Q){case 0:default:et="commit-normal";break;case 1:et="commit-reverse";break;case 2:et="commit-highlight";break;case 3:et="commit-merge";break;case 4:et="commit-cherry-pick"}if(Q===2){var Tt=g.append("rect");Tt.attr("x",V-10),Tt.attr("y",q-10),Tt.attr("height",20),Tt.attr("width",20),Tt.attr("class","commit ".concat(O.id," commit-highlight").concat(Ji[O.branch].index%8," ").concat(et,"-outer")),g.append("rect").attr("x",V-6).attr("y",q-6).attr("height",12).attr("width",12).attr("class","commit ".concat(O.id," commit").concat(Ji[O.branch].index%8," ").concat(et,"-inner"))}else if(Q===4)g.append("circle").attr("cx",V).attr("cy",q).attr("r",10).attr("class","commit ".concat(O.id," ").concat(et)),g.append("circle").attr("cx",V-3).attr("cy",q+2).attr("r",2.75).attr("fill","#fff").attr("class","commit ".concat(O.id," ").concat(et)),g.append("circle").attr("cx",V+3).attr("cy",q+2).attr("r",2.75).attr("fill","#fff").attr("class","commit ".concat(O.id," ").concat(et)),g.append("line").attr("x1",V+3).attr("y1",q+1).attr("x2",V).attr("y2",q-5).attr("stroke","#fff").attr("class","commit ".concat(O.id," ").concat(et)),g.append("line").attr("x1",V-3).attr("y1",q+1).attr("x2",V).attr("y2",q-5).attr("stroke","#fff").attr("class","commit ".concat(O.id," ").concat(et));else{var St=g.append("circle");if(St.attr("cx",V),St.attr("cy",q),St.attr("r",O.type===3?9:10),St.attr("class","commit ".concat(O.id," commit").concat(Ji[O.branch].index%8)),Q===3){var Lt=g.append("circle");Lt.attr("cx",V),Lt.attr("cy",q),Lt.attr("r",6),Lt.attr("class","commit ".concat(et," ").concat(O.id," commit").concat(Ji[O.branch].index%8))}Q===1&&g.append("path").attr("d","M ".concat(V-5,",").concat(q-5,"L").concat(V+5,",").concat(q+5,"M").concat(V-5,",").concat(q+5,"L").concat(V+5,",").concat(q-5)).attr("class","commit ".concat(et," ").concat(O.id," commit").concat(Ji[O.branch].index%8))}}if(Ws[O.id]={x:k+10,y:q},l){if(O.type!==4&&(O.customId&&O.type===3||O.type!==3)&&d.showCommitLabel){var Nt=T.append("g"),Ot=Nt.insert("rect").attr("class","commit-label-bkg"),Ft=Nt.append("text").attr("x",k).attr("y",q+25).attr("class","commit-label").text(O.id),_t=Ft.node().getBBox();if(Ot.attr("x",k+10-_t.width/2-2).attr("y",q+13.5).attr("width",_t.width+4).attr("height",_t.height+4),Ft.attr("x",k+10-_t.width/2),d.rotateCommitLabel){var ee=-7.5-(_t.width+10)/25*9.5,ke=10+_t.width/25*8.5;Nt.attr("transform","translate("+ee+", "+ke+") rotate(-45, "+k+", "+q+")")}}if(O.tag){var ue=T.insert("polygon"),ve=T.append("circle"),Rt=T.append("text").attr("y",q-16).attr("class","tag-label").text(O.tag),le=Rt.node().getBBox();Rt.attr("x",k+10-le.width/2);var Wt=le.height/2,ie=q-19.2;ue.attr("class","tag-label-bkg").attr("points",`
`.concat(k-le.width/2-2,",").concat(ie+2,`
`).concat(k-le.width/2-2,",").concat(ie-2,`
`).concat(k+10-le.width/2-4,",").concat(ie-Wt-2,`
`).concat(k+10+le.width/2+4,",").concat(ie-Wt-2,`
`).concat(k+10+le.width/2+4,",").concat(ie+Wt+2,`
`).concat(k+10-le.width/2-4,",").concat(ie+Wt+2)),ve.attr("cx",k-le.width/2+2).attr("cy",ie).attr("r",1.5).attr("class","tag-hole")}}(k+=50)>us&&(us=k)})},fh=function i(n,l,d){var g=d||0,T=n+Math.abs(n-l)/2;if(g>5)return T;for(var k=!0,S=0;S<so.length;S++)Math.abs(so[S]-T)<10&&(k=!1);return k?(so.push(T),T):i(n,l-Math.abs(n-l)/5,g+1)};const c0={draw:function(i,n,l,d){Ji={},Ws={},oo={},us=0,so=[];var g=Dt(),T=Dt().gitGraph;y.debug("in gitgraph renderer",i+`
`,"id:",n,l),oo=d.db.getCommits();var k=d.db.getBranchesAsObjArray(),S=0;k.forEach(function(Tt,St){Ji[Tt.name]={pos:S,index:St},S+=50+(T.rotateCommitLabel?40:0)});var N=(0,w.select)('[id="'.concat(n,'"]'));kr(d.db,N,n),hh(N,oo,!1),T.showBranches&&function(Tt,St){var Lt=Dt().gitGraph,Nt=Tt.append("g");St.forEach(function(Ot,Ft){var _t=Ft%8,ee=Ji[Ot.name].pos,ke=Nt.append("line");ke.attr("x1",0),ke.attr("y1",ee),ke.attr("x2",us),ke.attr("y2",ee),ke.attr("class","branch branch"+_t),so.push(ee);var ue=function(Wt){var ie=document.createElementNS("http://www.w3.org/2000/svg","text"),ce=[];ce=typeof Wt=="string"?Wt.split(/\\n|\n|<br\s*\/?>/gi):Array.isArray(Wt)?Wt:[];for(var oe=0;oe<ce.length;oe++){var Ne=document.createElementNS("http://www.w3.org/2000/svg","tspan");Ne.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),Ne.setAttribute("dy","1em"),Ne.setAttribute("x","0"),Ne.setAttribute("class","row"),Ne.textContent=ce[oe].trim(),ie.appendChild(Ne)}return ie}(Ot.name),ve=Nt.insert("rect"),Rt=Nt.insert("g").attr("class","branchLabel").insert("g").attr("class","label branch-label"+_t);Rt.node().appendChild(ue);var le=ue.getBBox();ve.attr("class","branchLabelBkg label"+_t).attr("rx",4).attr("ry",4).attr("x",-le.width-4-(Lt.rotateCommitLabel===!0?30:0)).attr("y",-le.height/2+8).attr("width",le.width+18).attr("height",le.height+4),Rt.attr("transform","translate("+(-le.width-14-(Lt.rotateCommitLabel===!0?30:0))+", "+(ee-le.height/2-1)+")"),ve.attr("transform","translate(-19, "+(ee-le.height/2)+")")})}(N,k),function(Tt,St){var Lt=Tt.append("g").attr("class","commit-arrows");Object.keys(St).forEach(function(Nt,Ot){var Ft=St[Nt];Ft.parents&&Ft.parents.length>0&&Ft.parents.forEach(function(_t){(function(ee,ke,ue,ve){var Rt=Dt(),le=Ws[ke.id],Wt=Ws[ue.id],ie=function(tn,yn,Ue){return Ws[yn.id],Ws[tn.id],Object.keys(Ue).filter(function($e){return Ue[$e].branch===yn.branch&&Ue[$e].seq>tn.seq&&Ue[$e].seq<yn.seq}).length>0}(ke,ue,ve);Rt.arrowMarkerAbsolute&&(window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search).replace(/\(/g,"\\(").replace(/\)/g,"\\)");var ce,oe="",Ne="",Ce=0,je=0,_n=Ji[ue.branch].index;if(ie){oe="A 10 10, 0, 0, 0,",Ne="A 10 10, 0, 0, 1,",Ce=10,je=10,_n=Ji[ue.branch].index;var Re=le.y<Wt.y?fh(le.y,Wt.y):fh(Wt.y,le.y);ce=le.y<Wt.y?"M ".concat(le.x," ").concat(le.y," L ").concat(le.x," ").concat(Re-Ce," ").concat(oe," ").concat(le.x+je," ").concat(Re," L ").concat(Wt.x-Ce," ").concat(Re," ").concat(Ne," ").concat(Wt.x," ").concat(Re+je," L ").concat(Wt.x," ").concat(Wt.y):"M ".concat(le.x," ").concat(le.y," L ").concat(le.x," ").concat(Re+Ce," ").concat(Ne," ").concat(le.x+je," ").concat(Re," L ").concat(Wt.x-Ce," ").concat(Re," ").concat(oe," ").concat(Wt.x," ").concat(Re-je," L ").concat(Wt.x," ").concat(Wt.y)}else le.y<Wt.y&&(oe="A 20 20, 0, 0, 0,",Ce=20,je=20,_n=Ji[ue.branch].index,ce="M ".concat(le.x," ").concat(le.y," L ").concat(le.x," ").concat(Wt.y-Ce," ").concat(oe," ").concat(le.x+je," ").concat(Wt.y," L ").concat(Wt.x," ").concat(Wt.y)),le.y>Wt.y&&(oe="A 20 20, 0, 0, 0,",Ce=20,je=20,_n=Ji[ke.branch].index,ce="M ".concat(le.x," ").concat(le.y," L ").concat(Wt.x-Ce," ").concat(le.y," ").concat(oe," ").concat(Wt.x," ").concat(le.y-je," L ").concat(Wt.x," ").concat(Wt.y)),le.y===Wt.y&&(_n=Ji[ke.branch].index,ce="M ".concat(le.x," ").concat(le.y," L ").concat(le.x," ").concat(Wt.y-Ce," ").concat(oe," ").concat(le.x+je," ").concat(Wt.y," L ").concat(Wt.x," ").concat(Wt.y));ee.append("path").attr("d",ce).attr("class","arrow arrow"+_n%8)})(Lt,St[_t],Ft,St)})})}(N,oo),hh(N,oo,!0);var O=T.diagramPadding,q=N.node().getBBox(),V=q.width+2*O,et=q.height+2*O;Gi(N,0,V,g.useMaxWidth);var Q="".concat(q.x-O-(T.showBranches&&T.rotateCommitLabel===!0?30:0)," ").concat(q.y-O," ").concat(V," ").concat(et);N.attr("viewBox",Q)}};var Il=p(2553),Fl=p.n(Il);const dh=function(i){return i.match(/^\s*gitGraph/)?"gitGraph":null},Rl=function(){var i,n,l,d,g,T;i="gitGraph",n=Fl(),l=Ll,d=c0,g=void 0,T=dh,Fc[i]={parser:n,db:l,renderer:d,init:g},function(k,S){Er[k]={detector:S}}(i,T)};function l0(i,n){for(var l=0;l<n.length;l++){var d=n[l];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(i,d.key,d)}}function Pc(i,n,l){return n in i?Object.defineProperty(i,n,{value:l,enumerable:!0,configurable:!0,writable:!0}):i[n]=l,i}var u0=function(){function i(d){var g,T;(function(N,O){if(!(N instanceof O))throw new TypeError("Cannot call a class as a function")})(this,i),Pc(this,"type","graph"),Pc(this,"parser",void 0),Pc(this,"renderer",void 0),Pc(this,"db",void 0);var k=sh(),S=Dt();this.txt=d,this.type=ui(d,S),y.debug("Type "+this.type),this.db=k[this.type].db,(g=(T=this.db).clear)===null||g===void 0||g.call(T),this.renderer=k[this.type].renderer,this.parser=k[this.type].parser,this.parser.parser.yy=this.db,typeof k[this.type].init=="function"&&(k[this.type].init(S),y.debug("Initialized diagram "+this.type,S)),this.txt=this.txt+`
`,this.parser.parser.yy.graphType=this.type,this.parser.parser.yy.parseError=function(N,O){throw{str:N,hash:O}},this.parser.parse(this.txt)}var n,l;return n=i,(l=[{key:"parse",value:function(d){var g=!1;try{d+=`
`,this.db.clear(),this.parser.parse(d)}catch(T){if(g=!0,!p.g.mermaid.parseError)throw T;T.str!=null?p.g.mermaid.parseError(T.str,T.hash):p.g.mermaid.parseError(T)}return!g}},{key:"getParser",value:function(){return this.parser}},{key:"getType",value:function(){return this.type}}])&&l0(n.prototype,l),Object.defineProperty(n,"prototype",{writable:!1}),i}();const Pl=u0,jl=function(i){return`g.classGroup text {
fill: `.concat(i.nodeBorder,`;
fill: `).concat(i.classText,`;
stroke: none;
font-family: `).concat(i.fontFamily,`;
font-size: 10px;
.title {
font-weight: bolder;
}
}
.nodeLabel, .edgeLabel {
color: `).concat(i.classText,`;
}
.edgeLabel .label rect {
fill: `).concat(i.mainBkg,`;
}
.label text {
fill: `).concat(i.classText,`;
}
.edgeLabel .label span {
background: `).concat(i.mainBkg,`;
}
.classTitle {
font-weight: bolder;
}
.node rect,
.node circle,
.node ellipse,
.node polygon,
.node path {
fill: `).concat(i.mainBkg,`;
stroke: `).concat(i.nodeBorder,`;
stroke-width: 1px;
}
.divider {
stroke: `).concat(i.nodeBorder,`;
stroke: 1;
}
g.clickable {
cursor: pointer;
}
g.classGroup rect {
fill: `).concat(i.mainBkg,`;
stroke: `).concat(i.nodeBorder,`;
}
g.classGroup line {
stroke: `).concat(i.nodeBorder,`;
stroke-width: 1;
}
.classLabel .box {
stroke: none;
stroke-width: 0;
fill: `).concat(i.mainBkg,`;
opacity: 0.5;
}
.classLabel .label {
fill: `).concat(i.nodeBorder,`;
font-size: 10px;
}
.relation {
stroke: `).concat(i.lineColor,`;
stroke-width: 1;
fill: none;
}
.dashed-line{
stroke-dasharray: 3;
}
#compositionStart, .composition {
fill: `).concat(i.lineColor,` !important;
stroke: `).concat(i.lineColor,` !important;
stroke-width: 1;
}
#compositionEnd, .composition {
fill: `).concat(i.lineColor,` !important;
stroke: `).concat(i.lineColor,` !important;
stroke-width: 1;
}
#dependencyStart, .dependency {
fill: `).concat(i.lineColor,` !important;
stroke: `).concat(i.lineColor,` !important;
stroke-width: 1;
}
#dependencyStart, .dependency {
fill: `).concat(i.lineColor,` !important;
stroke: `).concat(i.lineColor,` !important;
stroke-width: 1;
}
#extensionStart, .extension {
fill: `).concat(i.lineColor,` !important;
stroke: `).concat(i.lineColor,` !important;
stroke-width: 1;
}
#extensionEnd, .extension {
fill: `).concat(i.lineColor,` !important;
stroke: `).concat(i.lineColor,` !important;
stroke-width: 1;
}
#aggregationStart, .aggregation {
fill: `).concat(i.mainBkg,` !important;
stroke: `).concat(i.lineColor,` !important;
stroke-width: 1;
}
#aggregationEnd, .aggregation {
fill: `).concat(i.mainBkg,` !important;
stroke: `).concat(i.lineColor,` !important;
stroke-width: 1;
}
#lollipopStart, .lollipop {
fill: `).concat(i.mainBkg,` !important;
stroke: `).concat(i.lineColor,` !important;
stroke-width: 1;
}
#lollipopEnd, .lollipop {
fill: `).concat(i.mainBkg,` !important;
stroke: `).concat(i.lineColor,` !important;
stroke-width: 1;
}
.edgeTerminals {
font-size: 11px;
}
`)},ph=function(i){return`.label {
font-family: `.concat(i.fontFamily,`;
color: `).concat(i.nodeTextColor||i.textColor,`;
}
.cluster-label text {
fill: `).concat(i.titleColor,`;
}
.cluster-label span {
color: `).concat(i.titleColor,`;
}
.label text,span {
fill: `).concat(i.nodeTextColor||i.textColor,`;
color: `).concat(i.nodeTextColor||i.textColor,`;
}
.node rect,
.node circle,
.node ellipse,
.node polygon,
.node path {
fill: `).concat(i.mainBkg,`;
stroke: `).concat(i.nodeBorder,`;
stroke-width: 1px;
}
.node .label {
text-align: center;
}
.node.clickable {
cursor: pointer;
}
.arrowheadPath {
fill: `).concat(i.arrowheadColor,`;
}
.edgePath .path {
stroke: `).concat(i.lineColor,`;
stroke-width: 2.0px;
}
.flowchart-link {
stroke: `).concat(i.lineColor,`;
fill: none;
}
.edgeLabel {
background-color: `).concat(i.edgeLabelBackground,`;
rect {
opacity: 0.5;
background-color: `).concat(i.edgeLabelBackground,`;
fill: `).concat(i.edgeLabelBackground,`;
}
text-align: center;
}
.cluster rect {
fill: `).concat(i.clusterBkg,`;
stroke: `).concat(i.clusterBorder,`;
stroke-width: 1px;
}
.cluster text {
fill: `).concat(i.titleColor,`;
}
.cluster span {
color: `).concat(i.titleColor,`;
}
/* .cluster div {
color: `).concat(i.titleColor,`;
} */
div.mermaidTooltip {
position: absolute;
text-align: center;
max-width: 200px;
padding: 2px;
font-family: `).concat(i.fontFamily,`;
font-size: 12px;
background: `).concat(i.tertiaryColor,`;
border: 1px solid `).concat(i.border2,`;
border-radius: 2px;
pointer-events: none;
z-index: 100;
}
`)},Xn=function(i){return`
defs #statediagram-barbEnd {
fill: `.concat(i.transitionColor,`;
stroke: `).concat(i.transitionColor,`;
}
g.stateGroup text {
fill: `).concat(i.nodeBorder,`;
stroke: none;
font-size: 10px;
}
g.stateGroup text {
fill: `).concat(i.textColor,`;
stroke: none;
font-size: 10px;
}
g.stateGroup .state-title {
font-weight: bolder;
fill: `).concat(i.stateLabelColor,`;
}
g.stateGroup rect {
fill: `).concat(i.mainBkg,`;
stroke: `).concat(i.nodeBorder,`;
}
g.stateGroup line {
stroke: `).concat(i.lineColor,`;
stroke-width: 1;
}
.transition {
stroke: `).concat(i.transitionColor,`;
stroke-width: 1;
fill: none;
}
.stateGroup .composit {
fill: `).concat(i.background,`;
border-bottom: 1px
}
.stateGroup .alt-composit {
fill: #e0e0e0;
border-bottom: 1px
}
.state-note {
stroke: `).concat(i.noteBorderColor,`;
fill: `).concat(i.noteBkgColor,`;
text {
fill: `).concat(i.noteTextColor,`;
stroke: none;
font-size: 10px;
}
}
.stateLabel .box {
stroke: none;
stroke-width: 0;
fill: `).concat(i.mainBkg,`;
opacity: 0.5;
}
.edgeLabel .label rect {
fill: `).concat(i.labelBackgroundColor,`;
opacity: 0.5;
}
.edgeLabel .label text {
fill: `).concat(i.transitionLabelColor||i.tertiaryTextColor,`;
}
.label div .edgeLabel {
color: `).concat(i.transitionLabelColor||i.tertiaryTextColor,`;
}
.stateLabel text {
fill: `).concat(i.stateLabelColor,`;
font-size: 10px;
font-weight: bold;
}
.node circle.state-start {
fill: `).concat(i.specialStateColor,`;
stroke: `).concat(i.specialStateColor,`;
}
.node .fork-join {
fill: `).concat(i.specialStateColor,`;
stroke: `).concat(i.specialStateColor,`;
}
.node circle.state-end {
fill: `).concat(i.innerEndBackground,`;
stroke: `).concat(i.background,`;
stroke-width: 1.5
}
.end-state-inner {
fill: `).concat(i.compositeBackground||i.background,`;
// stroke: `).concat(i.background,`;
stroke-width: 1.5
}
.node rect {
fill: `).concat(i.stateBkg||i.mainBkg,`;
stroke: `).concat(i.stateBorder||i.nodeBorder,`;
stroke-width: 1px;
}
.node polygon {
fill: `).concat(i.mainBkg,`;
stroke: `).concat(i.stateBorder||i.nodeBorder,`;;
stroke-width: 1px;
}
#statediagram-barbEnd {
fill: `).concat(i.lineColor,`;
}
.statediagram-cluster rect {
fill: `).concat(i.compositeTitleBackground,`;
stroke: `).concat(i.stateBorder||i.nodeBorder,`;
stroke-width: 1px;
}
.cluster-label, .nodeLabel {
color: `).concat(i.stateLabelColor,`;
}
.statediagram-cluster rect.outer {
rx: 5px;
ry: 5px;
}
.statediagram-state .divider {
stroke: `).concat(i.stateBorder||i.nodeBorder,`;
}
.statediagram-state .title-state {
rx: 5px;
ry: 5px;
}
.statediagram-cluster.statediagram-cluster .inner {
fill: `).concat(i.compositeBackground||i.background,`;
}
.statediagram-cluster.statediagram-cluster-alt .inner {
fill: `).concat(i.altBackground?i.altBackground:"#efefef",`;
}
.statediagram-cluster .inner {
rx:0;
ry:0;
}
.statediagram-state rect.basic {
rx: 5px;
ry: 5px;
}
.statediagram-state rect.divider {
stroke-dasharray: 10,10;
fill: `).concat(i.altBackground?i.altBackground:"#efefef",`;
}
.note-edge {
stroke-dasharray: 5;
}
.statediagram-note rect {
fill: `).concat(i.noteBkgColor,`;
stroke: `).concat(i.noteBorderColor,`;
stroke-width: 1px;
rx: 0;
ry: 0;
}
.statediagram-note rect {
fill: `).concat(i.noteBkgColor,`;
stroke: `).concat(i.noteBorderColor,`;
stroke-width: 1px;
rx: 0;
ry: 0;
}
.statediagram-note text {
fill: `).concat(i.noteTextColor,`;
}
.statediagram-note .nodeLabel {
color: `).concat(i.noteTextColor,`;
}
.statediagram .edgeLabel {
color: red; // `).concat(i.noteTextColor,`;
}
#dependencyStart, #dependencyEnd {
fill: `).concat(i.lineColor,`;
stroke: `).concat(i.lineColor,`;
stroke-width: 1;
}
`)};var zl={flowchart:ph,"flowchart-v2":ph,sequence:function(i){return`.actor {
stroke: `.concat(i.actorBorder,`;
fill: `).concat(i.actorBkg,`;
}
text.actor > tspan {
fill: `).concat(i.actorTextColor,`;
stroke: none;
}
.actor-line {
stroke: `).concat(i.actorLineColor,`;
}
.messageLine0 {
stroke-width: 1.5;
stroke-dasharray: none;
stroke: `).concat(i.signalColor,`;
}
.messageLine1 {
stroke-width: 1.5;
stroke-dasharray: 2, 2;
stroke: `).concat(i.signalColor,`;
}
#arrowhead path {
fill: `).concat(i.signalColor,`;
stroke: `).concat(i.signalColor,`;
}
.sequenceNumber {
fill: `).concat(i.sequenceNumberColor,`;
}
#sequencenumber {
fill: `).concat(i.signalColor,`;
}
#crosshead path {
fill: `).concat(i.signalColor,`;
stroke: `).concat(i.signalColor,`;
}
.messageText {
fill: `).concat(i.signalTextColor,`;
stroke: none;
}
.labelBox {
stroke: `).concat(i.labelBoxBorderColor,`;
fill: `).concat(i.labelBoxBkgColor,`;
}
.labelText, .labelText > tspan {
fill: `).concat(i.labelTextColor,`;
stroke: none;
}
.loopText, .loopText > tspan {
fill: `).concat(i.loopTextColor,`;
stroke: none;
}
.loopLine {
stroke-width: 2px;
stroke-dasharray: 2, 2;
stroke: `).concat(i.labelBoxBorderColor,`;
fill: `).concat(i.labelBoxBorderColor,`;
}
.note {
//stroke: #decc93;
stroke: `).concat(i.noteBorderColor,`;
fill: `).concat(i.noteBkgColor,`;
}
.noteText, .noteText > tspan {
fill: `).concat(i.noteTextColor,`;
stroke: none;
}
.activation0 {
fill: `).concat(i.activationBkgColor,`;
stroke: `).concat(i.activationBorderColor,`;
}
.activation1 {
fill: `).concat(i.activationBkgColor,`;
stroke: `).concat(i.activationBorderColor,`;
}
.activation2 {
fill: `).concat(i.activationBkgColor,`;
stroke: `).concat(i.activationBorderColor,`;
}
.actorPopupMenu {
position: absolute;
}
.actorPopupMenuPanel {
position: absolute;
fill: `).concat(i.actorBkg,`;
box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
filter: drop-shadow(3px 5px 2px rgb(0 0 0 / 0.4));
}
.actor-man line {
stroke: `).concat(i.actorBorder,`;
fill: `).concat(i.actorBkg,`;
}
.actor-man circle, line {
stroke: `).concat(i.actorBorder,`;
fill: `).concat(i.actorBkg,`;
stroke-width: 2px;
}
`)},gantt:function(i){return`
.mermaid-main-font {
font-family: "trebuchet ms", verdana, arial, sans-serif;
font-family: var(--mermaid-font-family);
}
.exclude-range {
fill: `.concat(i.excludeBkgColor,`;
}
.section {
stroke: none;
opacity: 0.2;
}
.section0 {
fill: `).concat(i.sectionBkgColor,`;
}
.section2 {
fill: `).concat(i.sectionBkgColor2,`;
}
.section1,
.section3 {
fill: `).concat(i.altSectionBkgColor,`;
opacity: 0.2;
}
.sectionTitle0 {
fill: `).concat(i.titleColor,`;
}
.sectionTitle1 {
fill: `).concat(i.titleColor,`;
}
.sectionTitle2 {
fill: `).concat(i.titleColor,`;
}
.sectionTitle3 {
fill: `).concat(i.titleColor,`;
}
.sectionTitle {
text-anchor: start;
// font-size: `).concat(i.ganttFontSize,`;
// text-height: 14px;
font-family: 'trebuchet ms', verdana, arial, sans-serif;
font-family: var(--mermaid-font-family);
}
/* Grid and axis */
.grid .tick {
stroke: `).concat(i.gridColor,`;
opacity: 0.8;
shape-rendering: crispEdges;
text {
font-family: `).concat(i.fontFamily,`;
fill: `).concat(i.textColor,`;
}
}
.grid path {
stroke-width: 0;
}
/* Today line */
.today {
fill: none;
stroke: `).concat(i.todayLineColor,`;
stroke-width: 2px;
}
/* Task styling */
/* Default task */
.task {
stroke-width: 2;
}
.taskText {
text-anchor: middle;
font-family: 'trebuchet ms', verdana, arial, sans-serif;
font-family: var(--mermaid-font-family);
}
// .taskText:not([font-size]) {
// font-size: `).concat(i.ganttFontSize,`;
// }
.taskTextOutsideRight {
fill: `).concat(i.taskTextDarkColor,`;
text-anchor: start;
// font-size: `).concat(i.ganttFontSize,`;
font-family: 'trebuchet ms', verdana, arial, sans-serif;
font-family: var(--mermaid-font-family);
}
.taskTextOutsideLeft {
fill: `).concat(i.taskTextDarkColor,`;
text-anchor: end;
// font-size: `).concat(i.ganttFontSize,`;
}
/* Special case clickable */
.task.clickable {
cursor: pointer;
}
.taskText.clickable {
cursor: pointer;
fill: `).concat(i.taskTextClickableColor,` !important;
font-weight: bold;
}
.taskTextOutsideLeft.clickable {
cursor: pointer;
fill: `).concat(i.taskTextClickableColor,` !important;
font-weight: bold;
}
.taskTextOutsideRight.clickable {
cursor: pointer;
fill: `).concat(i.taskTextClickableColor,` !important;
font-weight: bold;
}
/* Specific task settings for the sections*/
.taskText0,
.taskText1,
.taskText2,
.taskText3 {
fill: `).concat(i.taskTextColor,`;
}
.task0,
.task1,
.task2,
.task3 {
fill: `).concat(i.taskBkgColor,`;
stroke: `).concat(i.taskBorderColor,`;
}
.taskTextOutside0,
.taskTextOutside2
{
fill: `).concat(i.taskTextOutsideColor,`;
}
.taskTextOutside1,
.taskTextOutside3 {
fill: `).concat(i.taskTextOutsideColor,`;
}
/* Active task */
.active0,
.active1,
.active2,
.active3 {
fill: `).concat(i.activeTaskBkgColor,`;
stroke: `).concat(i.activeTaskBorderColor,`;
}
.activeText0,
.activeText1,
.activeText2,
.activeText3 {
fill: `).concat(i.taskTextDarkColor,` !important;
}
/* Completed task */
.done0,
.done1,
.done2,
.done3 {
stroke: `).concat(i.doneTaskBorderColor,`;
fill: `).concat(i.doneTaskBkgColor,`;
stroke-width: 2;
}
.doneText0,
.doneText1,
.doneText2,
.doneText3 {
fill: `).concat(i.taskTextDarkColor,` !important;
}
/* Tasks on the critical line */
.crit0,
.crit1,
.crit2,
.crit3 {
stroke: `).concat(i.critBorderColor,`;
fill: `).concat(i.critBkgColor,`;
stroke-width: 2;
}
.activeCrit0,
.activeCrit1,
.activeCrit2,
.activeCrit3 {
stroke: `).concat(i.critBorderColor,`;
fill: `).concat(i.activeTaskBkgColor,`;
stroke-width: 2;
}
.doneCrit0,
.doneCrit1,
.doneCrit2,
.doneCrit3 {
stroke: `).concat(i.critBorderColor,`;
fill: `).concat(i.doneTaskBkgColor,`;
stroke-width: 2;
cursor: pointer;
shape-rendering: crispEdges;
}
.milestone {
transform: rotate(45deg) scale(0.8,0.8);
}
.milestoneText {
font-style: italic;
}
.doneCritText0,
.doneCritText1,
.doneCritText2,
.doneCritText3 {
fill: `).concat(i.taskTextDarkColor,` !important;
}
.activeCritText0,
.activeCritText1,
.activeCritText2,
.activeCritText3 {
fill: `).concat(i.taskTextDarkColor,` !important;
}
.titleText {
text-anchor: middle;
font-size: 18px;
fill: `).concat(i.textColor,` ;
font-family: 'trebuchet ms', verdana, arial, sans-serif;
font-family: var(--mermaid-font-family);
}
`)},classDiagram:jl,"classDiagram-v2":jl,class:jl,stateDiagram:Xn,state:Xn,gitGraph:function(i){return`
.commit-id,
.commit-msg,
.branch-label {
fill: lightgrey;
color: lightgrey;
font-family: 'trebuchet ms', verdana, arial, sans-serif;
font-family: var(--mermaid-font-family);
}
`.concat([0,1,2,3,4,5,6,7].map(function(n){return`
.branch-label`.concat(n," { fill: ").concat(i["gitBranchLabel"+n],`; }
.commit`).concat(n," { stroke: ").concat(i["git"+n],"; fill: ").concat(i["git"+n],`; }
.commit-highlight`).concat(n," { stroke: ").concat(i["gitInv"+n],"; fill: ").concat(i["gitInv"+n],`; }
.label`).concat(n," { fill: ").concat(i["git"+n],`; }
.arrow`).concat(n," { stroke: ").concat(i["git"+n],`; }
`)}).join(`
`),`
.branch {
stroke-width: 1;
stroke: `).concat(i.lineColor,`;
stroke-dasharray: 2;
}
.commit-label { font-size: `).concat(i.commitLabelFontSize,"; fill: ").concat(i.commitLabelColor,`;}
.commit-label-bkg { font-size: `).concat(i.commitLabelFontSize,"; fill: ").concat(i.commitLabelBackground,`; opacity: 0.5; }
.tag-label { font-size: `).concat(i.tagLabelFontSize,"; fill: ").concat(i.tagLabelColor,`;}
.tag-label-bkg { fill: `).concat(i.tagLabelBackground,"; stroke: ").concat(i.tagLabelBorder,`; }
.tag-hole { fill: `).concat(i.textColor,`; }
.commit-merge {
stroke: `).concat(i.primaryColor,`;
fill: `).concat(i.primaryColor,`;
}
.commit-reverse {
stroke: `).concat(i.primaryColor,`;
fill: `).concat(i.primaryColor,`;
stroke-width: 3;
}
.commit-highlight-outer {
}
.commit-highlight-inner {
stroke: `).concat(i.primaryColor,`;
fill: `).concat(i.primaryColor,`;
}
.arrow { stroke-width: 8; stroke-linecap: round; fill: none}
}
`)},info:function(){return""},pie:function(i){return`
.pieCircle{
stroke: `.concat(i.pieStrokeColor,`;
stroke-width : `).concat(i.pieStrokeWidth,`;
opacity : `).concat(i.pieOpacity,`;
}
.pieTitleText {
text-anchor: middle;
font-size: `).concat(i.pieTitleTextSize,`;
fill: `).concat(i.pieTitleTextColor,`;
font-family: `).concat(i.fontFamily,`;
}
.slice {
font-family: `).concat(i.fontFamily,`;
fill: `).concat(i.pieSectionTextColor,`;
font-size:`).concat(i.pieSectionTextSize,`;
// fill: white;
}
.legend text {
fill: `).concat(i.pieLegendTextColor,`;
font-family: `).concat(i.fontFamily,`;
font-size: `).concat(i.pieLegendTextSize,`;
}
`)},er:function(i){return`
.entityBox {
fill: `.concat(i.mainBkg,`;
stroke: `).concat(i.nodeBorder,`;
}
.attributeBoxOdd {
fill: #ffffff;
stroke: `).concat(i.nodeBorder,`;
}
.attributeBoxEven {
fill: #f2f2f2;
stroke: `).concat(i.nodeBorder,`;
}
.relationshipLabelBox {
fill: `).concat(i.tertiaryColor,`;
opacity: 0.7;
background-color: `).concat(i.tertiaryColor,`;
rect {
opacity: 0.5;
}
}
.relationshipLine {
stroke: `).concat(i.lineColor,`;
}
`)},error:function(){return""},journey:function(i){return`.label {
font-family: 'trebuchet ms', verdana, arial, sans-serif;
font-family: var(--mermaid-font-family);
color: `.concat(i.textColor,`;
}
.mouth {
stroke: #666;
}
line {
stroke: `).concat(i.textColor,`
}
.legend {
fill: `).concat(i.textColor,`;
}
.label text {
fill: #333;
}
.label {
color: `).concat(i.textColor,`
}
.face {
`).concat(i.faceColor?"fill: ".concat(i.faceColor):"fill: #FFF8DC",`;
stroke: #999;
}
.node rect,
.node circle,
.node ellipse,
.node polygon,
.node path {
fill: `).concat(i.mainBkg,`;
stroke: `).concat(i.nodeBorder,`;
stroke-width: 1px;
}
.node .label {
text-align: center;
}
.node.clickable {
cursor: pointer;
}
.arrowheadPath {
fill: `).concat(i.arrowheadColor,`;
}
.edgePath .path {
stroke: `).concat(i.lineColor,`;
stroke-width: 1.5px;
}
.flowchart-link {
stroke: `).concat(i.lineColor,`;
fill: none;
}
.edgeLabel {
background-color: `).concat(i.edgeLabelBackground,`;
rect {
opacity: 0.5;
}
text-align: center;
}
.cluster rect {
}
.cluster text {
fill: `).concat(i.titleColor,`;
}
div.mermaidTooltip {
position: absolute;
text-align: center;
max-width: 200px;
padding: 2px;
font-family: 'trebuchet ms', verdana, arial, sans-serif;
font-family: var(--mermaid-font-family);
font-size: 12px;
background: `).concat(i.tertiaryColor,`;
border: 1px solid `).concat(i.border2,`;
border-radius: 2px;
pointer-events: none;
z-index: 100;
}
.task-type-0, .section-type-0 {
`).concat(i.fillType0?"fill: ".concat(i.fillType0):"",`;
}
.task-type-1, .section-type-1 {
`).concat(i.fillType0?"fill: ".concat(i.fillType1):"",`;
}
.task-type-2, .section-type-2 {
`).concat(i.fillType0?"fill: ".concat(i.fillType2):"",`;
}
.task-type-3, .section-type-3 {
`).concat(i.fillType0?"fill: ".concat(i.fillType3):"",`;
}
.task-type-4, .section-type-4 {
`).concat(i.fillType0?"fill: ".concat(i.fillType4):"",`;
}
.task-type-5, .section-type-5 {
`).concat(i.fillType0?"fill: ".concat(i.fillType5):"",`;
}
.task-type-6, .section-type-6 {
`).concat(i.fillType0?"fill: ".concat(i.fillType6):"",`;
}
.task-type-7, .section-type-7 {
`).concat(i.fillType0?"fill: ".concat(i.fillType7):"",`;
}
.actor-0 {
`).concat(i.actor0?"fill: ".concat(i.actor0):"",`;
}
.actor-1 {
`).concat(i.actor1?"fill: ".concat(i.actor1):"",`;
}
.actor-2 {
`).concat(i.actor2?"fill: ".concat(i.actor2):"",`;
}
.actor-3 {
`).concat(i.actor3?"fill: ".concat(i.actor3):"",`;
}
.actor-4 {
`).concat(i.actor4?"fill: ".concat(i.actor4):"",`;
}
.actor-5 {
`).concat(i.actor5?"fill: ".concat(i.actor5):"",`;
}
}
`)},requirement:function(i){return`
marker {
fill: `.concat(i.relationColor,`;
stroke: `).concat(i.relationColor,`;
}
marker.cross {
stroke: `).concat(i.lineColor,`;
}
svg {
font-family: `).concat(i.fontFamily,`;
font-size: `).concat(i.fontSize,`;
}
.reqBox {
fill: `).concat(i.requirementBackground,`;
fill-opacity: 100%;
stroke: `).concat(i.requirementBorderColor,`;
stroke-width: `).concat(i.requirementBorderSize,`;
}
.reqTitle, .reqLabel{
fill: `).concat(i.requirementTextColor,`;
}
.reqLabelBox {
fill: `).concat(i.relationLabelBackground,`;
fill-opacity: 100%;
}
.req-title-line {
stroke: `).concat(i.requirementBorderColor,`;
stroke-width: `).concat(i.requirementBorderSize,`;
}
.relationshipLine {
stroke: `).concat(i.relationColor,`;
stroke-width: 1;
}
.relationshipLabel {
fill: `).concat(i.relationLabelColor,`;
}
`)},c4:function(i){return`.person {
stroke: `.concat(i.personBorder,`;
fill: `).concat(i.personBkg,`;
}
`)}};function tr(i){return tr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},tr(i)}var Pr=!1,qs=function(i){var n=i;return(n=(n=n.replace(/fl°°/g,function(){return"&#"})).replace(/fl°/g,function(){return"&"})).replace(/¶ß/g,function(){return";"})},ki={};function Lr(i){dl.setConf(i.flowchart),Tc.setConf(i.flowchart),i.sequenceDiagram!==void 0&&Bc.setConf(te(i.sequence,i.sequenceDiagram)),Bc.setConf(i.sequence),ml.setConf(i.gantt),Q1.setConf(i.state),ss.setConf(i.state),Ii.setConf(i.journey),fu.setConf(i.class)}var $n=Object.freeze({render:function(i,n,l,d){Pr||(Rl(),Pr=!0),Gn();var g=n.replace(/\r\n?/g,`
`),T=qn.detectInit(g);T&&(fi(T),Nr(T));var k=Dt();y.debug(k),n.length>k.maxTextSize&&(g="graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa");var S,N,O=(0,w.select)("body");if(d!==void 0){if(k.securityLevel==="sandbox"){var q=(0,w.select)("body").append("iframe").attr("id","i"+i).attr("style","width: 100%; height: 100%;").attr("sandbox","");(O=(0,w.select)(q.nodes()[0].contentDocument.body)).node().style.margin=0}if(d.innerHTML="",k.securityLevel==="sandbox"){var V=(0,w.select)(d).append("iframe").attr("id","i"+i).attr("style","width: 100%; height: 100%;").attr("sandbox","");(O=(0,w.select)(V.nodes()[0].contentDocument.body)).node().style.margin=0}else O=(0,w.select)(d);O.append("div").attr("id","d"+i).attr("style","font-family: "+k.fontFamily).append("svg").attr("id",i).attr("width","100%").attr("xmlns","http://www.w3.org/2000/svg").attr("xmlns:xlink","http://www.w3.org/1999/xlink").append("g")}else{var et,Q=document.getElementById(i);if(Q&&Q.remove(),(et=k.securityLevel!=="sandbox"?document.querySelector("#d"+i):document.querySelector("#i"+i))&&et.remove(),k.securityLevel==="sandbox"){var Tt=(0,w.select)("body").append("iframe").attr("id","i"+i).attr("style","width: 100%; height: 100%;").attr("sandbox","");(O=(0,w.select)(Tt.nodes()[0].contentDocument.body)).node().style.margin=0}else O=(0,w.select)("body");O.append("div").attr("id","d"+i).append("svg").attr("id",i).attr("width","100%").attr("xmlns","http://www.w3.org/2000/svg").append("g")}g=g.replace(/style.*:\S*#.*;/g,function(oe){return oe.substring(0,oe.length-1)}).replace(/classDef.*:\S*#.*;/g,function(oe){return oe.substring(0,oe.length-1)}).replace(/#\w+;/g,function(oe){var Ne=oe.substring(1,oe.length-1);return/^\+?\d+$/.test(Ne)?"\uFB02\xB0\xB0"+Ne+"\xB6\xDF":"\uFB02\xB0"+Ne+"\xB6\xDF"});try{S=new Pl(g)}catch(oe){S=new Pl("error"),N=oe}var St=O.select("#d"+i).node(),Lt=S.type,Nt=St.firstChild,Ot=Nt.firstChild,Ft="";if(k.themeCSS!==void 0&&(Ft+=`
`.concat(k.themeCSS)),k.fontFamily!==void 0&&(Ft+=`
:root { --mermaid-font-family: `.concat(k.fontFamily,"}")),k.altFontFamily!==void 0&&(Ft+=`
:root { --mermaid-alt-font-family: `.concat(k.altFontFamily,"}")),Lt==="flowchart"||Lt==="flowchart-v2"||Lt==="graph"){var _t=dl.getClasses(g,S),ee=k.htmlLabels||k.flowchart.htmlLabels;for(var ke in _t)ee?(Ft+=`
.`.concat(ke," > * { ").concat(_t[ke].styles.join(" !important; ")," !important; }"),Ft+=`
.`.concat(ke," span { ").concat(_t[ke].styles.join(" !important; ")," !important; }")):(Ft+=`
.`.concat(ke," path { ").concat(_t[ke].styles.join(" !important; ")," !important; }"),Ft+=`
.`.concat(ke," rect { ").concat(_t[ke].styles.join(" !important; ")," !important; }"),Ft+=`
.`.concat(ke," polygon { ").concat(_t[ke].styles.join(" !important; ")," !important; }"),Ft+=`
.`.concat(ke," ellipse { ").concat(_t[ke].styles.join(" !important; ")," !important; }"),Ft+=`
.`.concat(ke," circle { ").concat(_t[ke].styles.join(" !important; ")," !important; }"),_t[ke].textStyles&&(Ft+=`
.`.concat(ke," tspan { ").concat(_t[ke].textStyles.join(" !important; ")," !important; }")))}var ue=function(oe,Ne){return Gt(wn("".concat(oe,"{").concat(Ne,"}")),xt)}("#".concat(i),function(oe,Ne,Ce){return` {
font-family: `.concat(Ce.fontFamily,`;
font-size: `).concat(Ce.fontSize,`;
fill: `).concat(Ce.textColor,`
}
/* Classes common for multiple diagrams */
.error-icon {
fill: `).concat(Ce.errorBkgColor,`;
}
.error-text {
fill: `).concat(Ce.errorTextColor,`;
stroke: `).concat(Ce.errorTextColor,`;
}
.edge-thickness-normal {
stroke-width: 2px;
}
.edge-thickness-thick {
stroke-width: 3.5px
}
.edge-pattern-solid {
stroke-dasharray: 0;
}
.edge-pattern-dashed{
stroke-dasharray: 3;
}
.edge-pattern-dotted {
stroke-dasharray: 2;
}
.marker {
fill: `).concat(Ce.lineColor,`;
stroke: `).concat(Ce.lineColor,`;
}
.marker.cross {
stroke: `).concat(Ce.lineColor,`;
}
svg {
font-family: `).concat(Ce.fontFamily,`;
font-size: `).concat(Ce.fontSize,`;
}
`).concat(zl[oe](Ce),`
`).concat(Ne,`
`)}(Lt,Ft,k.themeVariables)),ve=document.createElement("style");ve.innerHTML="#".concat(i," ")+ue,Nt.insertBefore(ve,Ot);try{S.renderer.draw(g,i,se,S)}catch(oe){throw fu.draw(i,se),oe}O.select('[id="'.concat(i,'"]')).selectAll("foreignobject > *").attr("xmlns","http://www.w3.org/1999/xhtml");var Rt=O.select("#d"+i).node().innerHTML;if(y.debug("cnf.arrowMarkerAbsolute",k.arrowMarkerAbsolute),k.arrowMarkerAbsolute&&k.arrowMarkerAbsolute!=="false"||k.arrowMarkerAbsolute==="sandbox"||(Rt=Rt.replace(/marker-end="url\(.*?#/g,'marker-end="url(#',"g")),Rt=(Rt=qs(Rt)).replace(/<br>/g,"<br/>"),k.securityLevel==="sandbox"){var le=O.select("#d"+i+" svg").node(),Wt="100%";le&&(Wt=le.viewBox.baseVal.height+"px"),Rt='<iframe style="width:'.concat("100%",";height:").concat(Wt,';border:0;margin:0;" src="data:text/html;base64,').concat(btoa('<body style="margin:0">'+Rt+"</body>"),`" sandbox="allow-top-navigation-by-user-activation allow-popups">
The \u201Ciframe\u201D tag is not supported by your browser.
</iframe>`)}else k.securityLevel!=="loose"&&(Rt=Ur().sanitize(Rt,{ADD_TAGS:["foreignobject"],ADD_ATTR:["dominant-baseline"]}));if(l!==void 0)switch(Lt){case"flowchart":case"flowchart-v2":l(Rt,ga.bindFunctions);break;case"gantt":l(Rt,Du.bindFunctions);break;case"class":case"classDiagram":l(Rt,aa.bindFunctions);break;default:l(Rt)}else y.debug("CB = undefined!");Ls.forEach(function(oe){oe()}),Ls=[];var ie=k.securityLevel==="sandbox"?"#i"+i:"#d"+i,ce=(0,w.select)(ie).node();if(ce!==null&&typeof ce.remove=="function"&&(0,w.select)(ie).node().remove(),N)throw N;return Rt},parse:function(i,n){Pr||(Rl(),Pr=!0);var l=!1;try{var d=n||new Pl(i);return d.db.clear(),d.parse(i)}catch(g){if(l=!0,!fs.parseError)throw g;g.str!=null?fs.parseError(g.str,g.hash):fs.parseError(g)}return!l},parseDirective:function(i,n,l,d){try{if(n!==void 0)switch(n=n.trim(),l){case"open_directive":ki={};break;case"type_directive":ki.type=n.toLowerCase();break;case"arg_directive":ki.args=JSON.parse(n);break;case"close_directive":(function(g,T,k){switch(y.debug("Directive type=".concat(T.type," with args:"),T.args),T.type){case"init":case"initialize":["config"].forEach(function(S){T.args[S]!==void 0&&(k==="flowchart-v2"&&(k="flowchart"),T.args[k]=T.args[S],delete T.args[S])}),y.debug("sanitize in handleDirective",T.args),fi(T.args),y.debug("sanitize in handleDirective (done)",T.args),Nr(T.args);break;case"wrap":case"nowrap":g&&g.setWrap&&g.setWrap(T.type==="wrap");break;case"themeCss":y.warn("themeCss encountered");break;default:y.warn("Unhandled directive: source: '%%{".concat(T.type,": ").concat(JSON.stringify(T.args?T.args:{}),"}%%"),T)}})(i,ki,d),ki=null}}catch(g){y.error("Error while rendering sequenceDiagram directive: ".concat(n," jison context: ").concat(l)),y.error(g.message)}},initialize:function(i){var n;i!=null&&i.fontFamily&&((n=i.themeVariables)!==null&&n!==void 0&&n.fontFamily||(i.themeVariables={fontFamily:i.fontFamily})),function(d){Sn=te({},d)}(i),i!=null&&i.theme&&In[i.theme]?i.themeVariables=In[i.theme].getThemeVariables(i.themeVariables):i&&(i.themeVariables=In.default.getThemeVariables(i.themeVariables));var l=tr(i)==="object"?function(d){return Nn=te({},oi),Nn=te(Nn,d),d.theme&&In[d.theme]&&(Nn.themeVariables=In[d.theme].getThemeVariables(d.themeVariables)),Cr=yr(Nn,_r),Nn}(i):qr();Lr(l),E(l.logLevel),Pr||(Rl(),Pr=!0)},getConfig:Dt,setConfig:function(i){return te(Cr,i),Dt()},getSiteConfig:qr,updateSiteConfig:function(i){return Nn=te(Nn,i),yr(Nn,_r),Nn},reset:function(){Gn()},globalReset:function(){Gn(),Lr(Dt())},defaultConfig:oi});E(Dt().logLevel),Gn(Dt());const Bn=$n;var hs=function(){var i,n,l=Bn.getConfig();arguments.length>=2?(arguments[0]!==void 0&&(vn.sequenceConfig=arguments[0]),i=arguments[1]):i=arguments[0],typeof arguments[arguments.length-1]=="function"?(n=arguments[arguments.length-1],y.debug("Callback function found")):l.mermaid!==void 0&&(typeof l.mermaid.callback=="function"?(n=l.mermaid.callback,y.debug("Callback function found")):y.debug("No Callback function found")),i=i===void 0?document.querySelectorAll(".mermaid"):typeof i=="string"?document.querySelectorAll(i):i instanceof window.Node?[i]:i,y.debug("Start On Load before: "+vn.startOnLoad),vn.startOnLoad!==void 0&&(y.debug("Start On Load inner: "+vn.startOnLoad),Bn.updateSiteConfig({startOnLoad:vn.startOnLoad})),vn.ganttConfig!==void 0&&Bn.updateSiteConfig({gantt:vn.ganttConfig});for(var d,g=new qn.initIdGenerator(l.deterministicIds,l.deterministicIDSeed),T=[],k=function(N){y.info("Rendering diagram: "+i[N].id,N);var O=i[N];if(O.getAttribute("data-processed"))return"continue";O.setAttribute("data-processed",!0);var q="mermaid-".concat(g.next());d=O.innerHTML,d=qn.entityDecode(d).trim().replace(/<br\s*\/?>/gi,"<br/>");var V=qn.detectInit(d);V&&y.debug("Detected early reinit: ",V);try{Bn.render(q,d,function(et,Q){O.innerHTML=et,n!==void 0&&n(q),Q&&Q(O)},O)}catch(et){y.warn("Catching Error (bootstrap)",et),typeof vn.parseError=="function"&&vn.parseError({error:et,str:et.str,hash:et.hash,message:et.str}),T.push({error:et,str:et.str,hash:et.hash,message:et.str})}},S=0;S<i.length;S++)k(S);if(T.length>0)throw T[0]},qi=function(){vn.startOnLoad?Bn.getConfig().startOnLoad&&vn.init():vn.startOnLoad===void 0&&(y.debug("In start, no config"),Bn.getConfig().startOnLoad&&vn.init())};typeof document<"u"&&window.addEventListener("load",function(){qi()},!1);var vn={startOnLoad:!0,htmlLabels:!0,diagrams:{},mermaidAPI:Bn,parse:Bn!=null?Bn.parse:null,render:Bn!=null?Bn.render:null,init:function(){try{hs.apply(void 0,arguments)}catch(i){y.warn("Syntax Error rendering"),y.warn(i.str)}},initThrowsErrors:hs,initialize:function(i){i.mermaid!==void 0&&(i.mermaid.startOnLoad!==void 0&&(vn.startOnLoad=i.mermaid.startOnLoad),i.mermaid.htmlLabels!==void 0&&(vn.htmlLabels=i.mermaid.htmlLabels!=="false"&&i.mermaid.htmlLabels!==!1)),Bn.initialize(i)},contentLoaded:qi,setParseErrorHandler:function(i){vn.parseError=i}};const fs=vn},4949:(M,z,p)=>{M.exports={graphlib:p(6614),dagre:p(6478),intersect:p(8114),render:p(5787),util:p(8355),version:p(5689)}},9144:(M,z,p)=>{var b=p(8355);function u(_,y,E,A){var w=_.append("marker").attr("id",y).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","strokeWidth").attr("markerWidth",8).attr("markerHeight",6).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").style("stroke-width",1).style("stroke-dasharray","1,0");b.applyStyle(w,E[A+"Style"]),E[A+"Class"]&&w.attr("class",E[A+"Class"])}M.exports={default:u,normal:u,vee:function(_,y,E,A){var w=_.append("marker").attr("id",y).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","strokeWidth").attr("markerWidth",8).attr("markerHeight",6).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 L 4 5 z").style("stroke-width",1).style("stroke-dasharray","1,0");b.applyStyle(w,E[A+"Style"]),E[A+"Class"]&&w.attr("class",E[A+"Class"])},undirected:function(_,y,E,A){var w=_.append("marker").attr("id",y).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","strokeWidth").attr("markerWidth",8).attr("markerHeight",6).attr("orient","auto").append("path").attr("d","M 0 5 L 10 5").style("stroke-width",1).style("stroke-dasharray","1,0");b.applyStyle(w,E[A+"Style"]),E[A+"Class"]&&w.attr("class",E[A+"Class"])}}},5632:(M,z,p)=>{var b=p(8355),u=p(4322),_=p(1322);M.exports=function(y,E){var A,w=E.nodes().filter(function(B){return b.isSubgraph(E,B)}),F=y.selectAll("g.cluster").data(w,function(B){return B});return F.selectAll("*").remove(),F.enter().append("g").attr("class","cluster").attr("id",function(B){return E.node(B).id}).style("opacity",0),F=y.selectAll("g.cluster"),b.applyTransition(F,E).style("opacity",1),F.each(function(B){var P=E.node(B),G=u.select(this);u.select(this).append("rect");var K=G.append("g").attr("class","label");_(K,P,P.clusterLabelPos)}),F.selectAll("rect").each(function(B){var P=E.node(B),G=u.select(this);b.applyStyle(G,P.style)}),A=F.exit?F.exit():F.selectAll(null),b.applyTransition(A,E).style("opacity",0).remove(),F}},6315:(M,z,p)=>{var b=p(1034),u=p(1322),_=p(8355),y=p(4322);M.exports=function(E,A){var w,F=E.selectAll("g.edgeLabel").data(A.edges(),function(B){return _.edgeToId(B)}).classed("update",!0);return F.exit().remove(),F.enter().append("g").classed("edgeLabel",!0).style("opacity",0),(F=E.selectAll("g.edgeLabel")).each(function(B){var P=y.select(this);P.select(".label").remove();var G=A.edge(B),K=u(P,A.edge(B),0,0).classed("label",!0),J=K.node().getBBox();G.labelId&&K.attr("id",G.labelId),b.has(G,"width")||(G.width=J.width),b.has(G,"height")||(G.height=J.height)}),w=F.exit?F.exit():F.selectAll(null),_.applyTransition(w,A).style("opacity",0).remove(),F}},940:(M,z,p)=>{var b=p(1034),u=p(3042),_=p(8355),y=p(4322);function E(A,w){var F=(y.line||y.svg.line)().x(function(B){return B.x}).y(function(B){return B.y});return(F.curve||F.interpolate)(A.curve),F(w)}M.exports=function(A,w,F){var B=A.selectAll("g.edgePath").data(w.edges(),function(K){return _.edgeToId(K)}).classed("update",!0),P=function(K,J){var ht=K.enter().append("g").attr("class","edgePath").style("opacity",0);return ht.append("path").attr("class","path").attr("d",function(tt){var kt=J.edge(tt),at=J.node(tt.v).elem;return E(kt,b.range(kt.points.length).map(function(){return vt=(ut=at).getBBox(),{x:(Zt=ut.ownerSVGElement.getScreenCTM().inverse().multiply(ut.getScreenCTM()).translate(vt.width/2,vt.height/2)).e,y:Zt.f};var ut,vt,Zt}))}),ht.append("defs"),ht}(B,w);(function(K,J){var ht=K.exit();_.applyTransition(ht,J).style("opacity",0).remove()})(B,w);var G=B.merge!==void 0?B.merge(P):B;return _.applyTransition(G,w).style("opacity",1),G.each(function(K){var J=y.select(this),ht=w.edge(K);ht.elem=this,ht.id&&J.attr("id",ht.id),_.applyClass(J,ht.class,(J.classed("update")?"update ":"")+"edgePath")}),G.selectAll("path.path").each(function(K){var J=w.edge(K);J.arrowheadId=b.uniqueId("arrowhead");var ht=y.select(this).attr("marker-end",function(){return"url("+(tt=location.href,kt=J.arrowheadId,tt.split("#")[0]+"#"+kt+")");var tt,kt}).style("fill","none");_.applyTransition(ht,w).attr("d",function(tt){return function(kt,at){var ut=kt.edge(at),vt=kt.node(at.v),Zt=kt.node(at.w),Gt=ut.points.slice(1,ut.points.length-1);return Gt.unshift(u(vt,Gt[0])),Gt.push(u(Zt,Gt[Gt.length-1])),E(ut,Gt)}(w,tt)}),_.applyStyle(ht,J.style)}),G.selectAll("defs *").remove(),G.selectAll("defs").each(function(K){var J=w.edge(K);(0,F[J.arrowhead])(y.select(this),J.arrowheadId,J,"arrowhead")}),G}},607:(M,z,p)=>{var b=p(1034),u=p(1322),_=p(8355),y=p(4322);M.exports=function(E,A,w){var F,B=A.nodes().filter(function(G){return!_.isSubgraph(A,G)}),P=E.selectAll("g.node").data(B,function(G){return G}).classed("update",!0);return P.exit().remove(),P.enter().append("g").attr("class","node").style("opacity",0),(P=E.selectAll("g.node")).each(function(G){var K=A.node(G),J=y.select(this);_.applyClass(J,K.class,(J.classed("update")?"update ":"")+"node"),J.select("g.label").remove();var ht=J.append("g").attr("class","label"),tt=u(ht,K),kt=w[K.shape],at=b.pick(tt.node().getBBox(),"width","height");K.elem=this,K.id&&J.attr("id",K.id),K.labelId&&ht.attr("id",K.labelId),b.has(K,"width")&&(at.width=K.width),b.has(K,"height")&&(at.height=K.height),at.width+=K.paddingLeft+K.paddingRight,at.height+=K.paddingTop+K.paddingBottom,ht.attr("transform","translate("+(K.paddingLeft-K.paddingRight)/2+","+(K.paddingTop-K.paddingBottom)/2+")");var ut=y.select(this);ut.select(".label-container").remove();var vt=kt(ut,at,K).classed("label-container",!0);_.applyStyle(vt,K.style);var Zt=vt.node().getBBox();K.width=Zt.width,K.height=Zt.height}),F=P.exit?P.exit():P.selectAll(null),_.applyTransition(F,A).style("opacity",0).remove(),P}},4322:(M,z,p)=>{var b;if(!b)try{b=p(7543)}catch{}b||(b=window.d3),M.exports=b},6478:(M,z,p)=>{var b;try{b=p(681)}catch{}b||(b=window.dagre),M.exports=b},6614:(M,z,p)=>{var b;try{b=p(8282)}catch{}b||(b=window.graphlib),M.exports=b},8114:(M,z,p)=>{M.exports={node:p(3042),circle:p(6587),ellipse:p(3260),polygon:p(5337),rect:p(8049)}},6587:(M,z,p)=>{var b=p(3260);M.exports=function(u,_,y){return b(u,_,_,y)}},3260:M=>{M.exports=function(z,p,b,u){var _=z.x,y=z.y,E=_-u.x,A=y-u.y,w=Math.sqrt(p*p*A*A+b*b*E*E),F=Math.abs(p*b*E/w);u.x<_&&(F=-F);var B=Math.abs(p*b*A/w);return u.y<y&&(B=-B),{x:_+F,y:y+B}}},6808:M=>{function z(p,b){return p*b>0}M.exports=function(p,b,u,_){var y,E,A,w,F,B,P,G,K,J,ht,tt,kt;if(y=b.y-p.y,A=p.x-b.x,F=b.x*p.y-p.x*b.y,K=y*u.x+A*u.y+F,J=y*_.x+A*_.y+F,!(K!==0&&J!==0&&z(K,J)||(E=_.y-u.y,w=u.x-_.x,B=_.x*u.y-u.x*_.y,P=E*p.x+w*p.y+B,G=E*b.x+w*b.y+B,P!==0&&G!==0&&z(P,G)||(ht=y*w-E*A)==0)))return tt=Math.abs(ht/2),{x:(kt=A*B-w*F)<0?(kt-tt)/ht:(kt+tt)/ht,y:(kt=E*F-y*B)<0?(kt-tt)/ht:(kt+tt)/ht}}},3042:M=>{M.exports=function(z,p){return z.intersect(p)}},5337:(M,z,p)=>{var b=p(6808);M.exports=function(u,_,y){var E=u.x,A=u.y,w=[],F=Number.POSITIVE_INFINITY,B=Number.POSITIVE_INFINITY;_.forEach(function(kt){F=Math.min(F,kt.x),B=Math.min(B,kt.y)});for(var P=E-u.width/2-F,G=A-u.height/2-B,K=0;K<_.length;K++){var J=_[K],ht=_[K<_.length-1?K+1:0],tt=b(u,y,{x:P+J.x,y:G+J.y},{x:P+ht.x,y:G+ht.y});tt&&w.push(tt)}return w.length?(w.length>1&&w.sort(function(kt,at){var ut=kt.x-y.x,vt=kt.y-y.y,Zt=Math.sqrt(ut*ut+vt*vt),Gt=at.x-y.x,xt=at.y-y.y,It=Math.sqrt(Gt*Gt+xt*xt);return Zt<It?-1:Zt===It?0:1}),w[0]):(console.log("NO INTERSECTION FOUND, RETURN NODE CENTER",u),u)}},8049:M=>{M.exports=function(z,p){var b,u,_=z.x,y=z.y,E=p.x-_,A=p.y-y,w=z.width/2,F=z.height/2;return Math.abs(A)*w>Math.abs(E)*F?(A<0&&(F=-F),b=A===0?0:F*E/A,u=F):(E<0&&(w=-w),b=w,u=E===0?0:w*A/E),{x:_+b,y:y+u}}},8284:(M,z,p)=>{var b=p(8355);M.exports=function(u,_){var y=u.append("foreignObject").attr("width","100000"),E=y.append("xhtml:div");E.attr("xmlns","http://www.w3.org/1999/xhtml");var A=_.label;switch(typeof A){case"function":E.insert(A);break;case"object":E.insert(function(){return A});break;default:E.html(A)}b.applyStyle(E,_.labelStyle),E.style("display","inline-block"),E.style("white-space","nowrap");var w=E.node().getBoundingClientRect();return y.attr("width",w.width).attr("height",w.height),y}},1322:(M,z,p)=>{var b=p(7318),u=p(8284),_=p(8287);M.exports=function(y,E,A){var w=E.label,F=y.append("g");E.labelType==="svg"?_(F,E):typeof w!="string"||E.labelType==="html"?u(F,E):b(F,E);var B,P=F.node().getBBox();switch(A){case"top":B=-E.height/2;break;case"bottom":B=E.height/2-P.height;break;default:B=-P.height/2}return F.attr("transform","translate("+-P.width/2+","+B+")"),F}},8287:(M,z,p)=>{var b=p(8355);M.exports=function(u,_){var y=u;return y.node().appendChild(_.label),b.applyStyle(y,_.labelStyle),y}},7318:(M,z,p)=>{var b=p(8355);M.exports=function(u,_){for(var y=u.append("text"),E=function(w){for(var F,B="",P=!1,G=0;G<w.length;++G)F=w[G],P?(B+=F==="n"?`
`:F,P=!1):F==="\\"?P=!0:B+=F;return B}(_.label).split(`
`),A=0;A<E.length;A++)y.append("tspan").attr("xml:space","preserve").attr("dy","1em").attr("x","1").text(E[A]);return b.applyStyle(y,_.labelStyle),y}},1034:(M,z,p)=>{var b;try{b={defaults:p(1747),each:p(6073),isFunction:p(3560),isPlainObject:p(8630),pick:p(9722),has:p(8721),range:p(6026),uniqueId:p(3955)}}catch{}b||(b=window._),M.exports=b},6381:(M,z,p)=>{var b=p(8355),u=p(4322);M.exports=function(_,y){var E=_.filter(function(){return!u.select(this).classed("update")});function A(w){var F=y.node(w);return"translate("+F.x+","+F.y+")"}E.attr("transform",A),b.applyTransition(_,y).style("opacity",1).attr("transform",A),b.applyTransition(E.selectAll("rect"),y).attr("width",function(w){return y.node(w).width}).attr("height",function(w){return y.node(w).height}).attr("x",function(w){return-y.node(w).width/2}).attr("y",function(w){return-y.node(w).height/2})}},4577:(M,z,p)=>{var b=p(8355),u=p(4322),_=p(1034);M.exports=function(y,E){function A(w){var F=E.edge(w);return _.has(F,"x")?"translate("+F.x+","+F.y+")":""}y.filter(function(){return!u.select(this).classed("update")}).attr("transform",A),b.applyTransition(y,E).style("opacity",1).attr("transform",A)}},4849:(M,z,p)=>{var b=p(8355),u=p(4322);M.exports=function(_,y){function E(A){var w=y.node(A);return"translate("+w.x+","+w.y+")"}_.filter(function(){return!u.select(this).classed("update")}).attr("transform",E),b.applyTransition(_,y).style("opacity",1).attr("transform",E)}},5787:(M,z,p)=>{var b=p(1034),u=p(4322),_=p(6478).layout;M.exports=function(){var w=p(607),F=p(5632),B=p(6315),P=p(940),G=p(4849),K=p(4577),J=p(6381),ht=p(4418),tt=p(9144),kt=function(at,ut){(function(mt){mt.nodes().forEach(function(X){var ot=mt.node(X);b.has(ot,"label")||mt.children(X).length||(ot.label=X),b.has(ot,"paddingX")&&b.defaults(ot,{paddingLeft:ot.paddingX,paddingRight:ot.paddingX}),b.has(ot,"paddingY")&&b.defaults(ot,{paddingTop:ot.paddingY,paddingBottom:ot.paddingY}),b.has(ot,"padding")&&b.defaults(ot,{paddingLeft:ot.padding,paddingRight:ot.padding,paddingTop:ot.padding,paddingBottom:ot.padding}),b.defaults(ot,y),b.each(["paddingLeft","paddingRight","paddingTop","paddingBottom"],function(j){ot[j]=Number(ot[j])}),b.has(ot,"width")&&(ot._prevWidth=ot.width),b.has(ot,"height")&&(ot._prevHeight=ot.height)}),mt.edges().forEach(function(X){var ot=mt.edge(X);b.has(ot,"label")||(ot.label=""),b.defaults(ot,E)})})(ut);var vt=A(at,"output"),Zt=A(vt,"clusters"),Gt=A(vt,"edgePaths"),xt=B(A(vt,"edgeLabels"),ut),It=w(A(vt,"nodes"),ut,ht);_(ut),G(It,ut),K(xt,ut),P(Gt,ut,tt);var wt=F(Zt,ut);J(wt,ut),function(mt){b.each(mt.nodes(),function(X){var ot=mt.node(X);b.has(ot,"_prevWidth")?ot.width=ot._prevWidth:delete ot.width,b.has(ot,"_prevHeight")?ot.height=ot._prevHeight:delete ot.height,delete ot._prevWidth,delete ot._prevHeight})}(ut)};return kt.createNodes=function(at){return arguments.length?(w=at,kt):w},kt.createClusters=function(at){return arguments.length?(F=at,kt):F},kt.createEdgeLabels=function(at){return arguments.length?(B=at,kt):B},kt.createEdgePaths=function(at){return arguments.length?(P=at,kt):P},kt.shapes=function(at){return arguments.length?(ht=at,kt):ht},kt.arrows=function(at){return arguments.length?(tt=at,kt):tt},kt};var y={paddingLeft:10,paddingRight:10,paddingTop:10,paddingBottom:10,rx:0,ry:0,shape:"rect"},E={arrowhead:"normal",curve:u.curveLinear};function A(w,F){var B=w.select("g."+F);return B.empty()&&(B=w.append("g").attr("class",F)),B}},4418:(M,z,p)=>{var b=p(8049),u=p(3260),_=p(6587),y=p(5337);M.exports={rect:function(E,A,w){var F=E.insert("rect",":first-child").attr("rx",w.rx).attr("ry",w.ry).attr("x",-A.width/2).attr("y",-A.height/2).attr("width",A.width).attr("height",A.height);return w.intersect=function(B){return b(w,B)},F},ellipse:function(E,A,w){var F=A.width/2,B=A.height/2,P=E.insert("ellipse",":first-child").attr("x",-A.width/2).attr("y",-A.height/2).attr("rx",F).attr("ry",B);return w.intersect=function(G){return u(w,F,B,G)},P},circle:function(E,A,w){var F=Math.max(A.width,A.height)/2,B=E.insert("circle",":first-child").attr("x",-A.width/2).attr("y",-A.height/2).attr("r",F);return w.intersect=function(P){return _(w,F,P)},B},diamond:function(E,A,w){var F=A.width*Math.SQRT2/2,B=A.height*Math.SQRT2/2,P=[{x:0,y:-B},{x:-F,y:0},{x:0,y:B},{x:F,y:0}],G=E.insert("polygon",":first-child").attr("points",P.map(function(K){return K.x+","+K.y}).join(" "));return w.intersect=function(K){return y(w,P,K)},G}}},8355:(M,z,p)=>{var b=p(1034);M.exports={isSubgraph:function(y,E){return!!y.children(E).length},edgeToId:function(y){return _(y.v)+":"+_(y.w)+":"+_(y.name)},applyStyle:function(y,E){E&&y.attr("style",E)},applyClass:function(y,E,A){E&&y.attr("class",E).attr("class",A+" "+y.attr("class"))},applyTransition:function(y,E){var A=E.graph();if(b.isPlainObject(A)){var w=A.transition;if(b.isFunction(w))return w(y)}return y}};var u=/:/g;function _(y){return y?String(y).replace(u,"\\:"):""}},5689:M=>{M.exports="0.6.4"},681:(M,z,p)=>{M.exports={graphlib:p(574),layout:p(8123),debug:p(7570),util:{time:p(1138).time,notime:p(1138).notime},version:p(8177)}},2188:(M,z,p)=>{var b=p(8436),u=p(4079);M.exports={run:function(_){var y=_.graph().acyclicer==="greedy"?u(_,function(E){return function(A){return E.edge(A).weight}}(_)):function(E){var A=[],w={},F={};return b.forEach(E.nodes(),function B(P){b.has(F,P)||(F[P]=!0,w[P]=!0,b.forEach(E.outEdges(P),function(G){b.has(w,G.w)?A.push(G):B(G.w)}),delete w[P])}),A}(_);b.forEach(y,function(E){var A=_.edge(E);_.removeEdge(E),A.forwardName=E.name,A.reversed=!0,_.setEdge(E.w,E.v,A,b.uniqueId("rev"))})},undo:function(_){b.forEach(_.edges(),function(y){var E=_.edge(y);if(E.reversed){_.removeEdge(y);var A=E.forwardName;delete E.reversed,delete E.forwardName,_.setEdge(y.w,y.v,E,A)}})}}},1133:(M,z,p)=>{var b=p(8436),u=p(1138);function _(y,E,A,w,F,B){var P={width:0,height:0,rank:B,borderType:E},G=F[E][B-1],K=u.addDummyNode(y,"border",P,A);F[E][B]=K,y.setParent(K,w),G&&y.setEdge(G,K,{weight:1})}M.exports=function(y){b.forEach(y.children(),function E(A){var w=y.children(A),F=y.node(A);if(w.length&&b.forEach(w,E),b.has(F,"minRank")){F.borderLeft=[],F.borderRight=[];for(var B=F.minRank,P=F.maxRank+1;B<P;++B)_(y,"borderLeft","_bl",A,F,B),_(y,"borderRight","_br",A,F,B)}})}},3258:(M,z,p)=>{var b=p(8436);function u(A){b.forEach(A.nodes(),function(w){_(A.node(w))}),b.forEach(A.edges(),function(w){_(A.edge(w))})}function _(A){var w=A.width;A.width=A.height,A.height=w}function y(A){A.y=-A.y}function E(A){var w=A.x;A.x=A.y,A.y=w}M.exports={adjust:function(A){var w=A.graph().rankdir.toLowerCase();w!=="lr"&&w!=="rl"||u(A)},undo:function(A){var w=A.graph().rankdir.toLowerCase();w!=="bt"&&w!=="rl"||function(F){b.forEach(F.nodes(),function(B){y(F.node(B))}),b.forEach(F.edges(),function(B){var P=F.edge(B);b.forEach(P.points,y),b.has(P,"y")&&y(P)})}(A),w!=="lr"&&w!=="rl"||(function(F){b.forEach(F.nodes(),function(B){E(F.node(B))}),b.forEach(F.edges(),function(B){var P=F.edge(B);b.forEach(P.points,E),b.has(P,"x")&&E(P)})}(A),u(A))}}},7822:M=>{function z(){var u={};u._next=u._prev=u,this._sentinel=u}function p(u){u._prev._next=u._next,u._next._prev=u._prev,delete u._next,delete u._prev}function b(u,_){if(u!=="_next"&&u!=="_prev")return _}M.exports=z,z.prototype.dequeue=function(){var u=this._sentinel,_=u._prev;if(_!==u)return p(_),_},z.prototype.enqueue=function(u){var _=this._sentinel;u._prev&&u._next&&p(u),u._next=_._next,_._next._prev=u,_._next=u,u._prev=_},z.prototype.toString=function(){for(var u=[],_=this._sentinel,y=_._prev;y!==_;)u.push(JSON.stringify(y,b)),y=y._prev;return"["+u.join(", ")+"]"}},7570:(M,z,p)=>{var b=p(8436),u=p(1138),_=p(574).Graph;M.exports={debugOrdering:function(y){var E=u.buildLayerMatrix(y),A=new _({compound:!0,multigraph:!0}).setGraph({});return b.forEach(y.nodes(),function(w){A.setNode(w,{label:w}),A.setParent(w,"layer"+y.node(w).rank)}),b.forEach(y.edges(),function(w){A.setEdge(w.v,w.w,{},w.name)}),b.forEach(E,function(w,F){var B="layer"+F;A.setNode(B,{rank:"same"}),b.reduce(w,function(P,G){return A.setEdge(P,G,{style:"invis"}),G})}),A}}},574:(M,z,p)=>{var b;try{b=p(8282)}catch{}b||(b=window.graphlib),M.exports=b},4079:(M,z,p)=>{var b=p(8436),u=p(574).Graph,_=p(7822);M.exports=function(w,F){if(w.nodeCount()<=1)return[];var B=function(G,K){var J=new u,ht=0,tt=0;b.forEach(G.nodes(),function(ut){J.setNode(ut,{v:ut,in:0,out:0})}),b.forEach(G.edges(),function(ut){var vt=J.edge(ut.v,ut.w)||0,Zt=K(ut),Gt=vt+Zt;J.setEdge(ut.v,ut.w,Gt),tt=Math.max(tt,J.node(ut.v).out+=Zt),ht=Math.max(ht,J.node(ut.w).in+=Zt)});var kt=b.range(tt+ht+3).map(function(){return new _}),at=ht+1;return b.forEach(J.nodes(),function(ut){A(kt,at,J.node(ut))}),{graph:J,buckets:kt,zeroIdx:at}}(w,F||y),P=function(G,K,J){for(var ht,tt=[],kt=K[K.length-1],at=K[0];G.nodeCount();){for(;ht=at.dequeue();)E(G,K,J,ht);for(;ht=kt.dequeue();)E(G,K,J,ht);if(G.nodeCount()){for(var ut=K.length-2;ut>0;--ut)if(ht=K[ut].dequeue()){tt=tt.concat(E(G,K,J,ht,!0));break}}}return tt}(B.graph,B.buckets,B.zeroIdx);return b.flatten(b.map(P,function(G){return w.outEdges(G.v,G.w)}),!0)};var y=b.constant(1);function E(w,F,B,P,G){var K=G?[]:void 0;return b.forEach(w.inEdges(P.v),function(J){var ht=w.edge(J),tt=w.node(J.v);G&&K.push({v:J.v,w:J.w}),tt.out-=ht,A(F,B,tt)}),b.forEach(w.outEdges(P.v),function(J){var ht=w.edge(J),tt=J.w,kt=w.node(tt);kt.in-=ht,A(F,B,kt)}),w.removeNode(P.v),K}function A(w,F,B){B.out?B.in?w[B.out-B.in+F].enqueue(B):w[w.length-1].enqueue(B):w[0].enqueue(B)}},8123:(M,z,p)=>{var b=p(8436),u=p(2188),_=p(5995),y=p(8093),E=p(1138).normalizeRanks,A=p(4219),w=p(1138).removeEmptyRanks,F=p(2981),B=p(1133),P=p(3258),G=p(3408),K=p(7873),J=p(1138),ht=p(574).Graph;M.exports=function(mt,X){var ot=X&&X.debugTiming?J.time:J.notime;ot("layout",function(){var j=ot(" buildLayoutGraph",function(){return function(yt){var Y=new ht({multigraph:!0,compound:!0}),bt=wt(yt.graph());return Y.setGraph(b.merge({},kt,It(bt,tt),b.pick(bt,at))),b.forEach(yt.nodes(),function(Ct){var $t=wt(yt.node(Ct));Y.setNode(Ct,b.defaults(It($t,ut),vt)),Y.setParent(Ct,yt.parent(Ct))}),b.forEach(yt.edges(),function(Ct){var $t=wt(yt.edge(Ct));Y.setEdge(Ct,b.merge({},Gt,It($t,Zt),b.pick($t,xt)))}),Y}(mt)});ot(" runLayout",function(){(function(yt,Y){Y(" makeSpaceForEdgeLabels",function(){(function(bt){var Ct=bt.graph();Ct.ranksep/=2,b.forEach(bt.edges(),function($t){var be=bt.edge($t);be.minlen*=2,be.labelpos.toLowerCase()!=="c"&&(Ct.rankdir==="TB"||Ct.rankdir==="BT"?be.width+=be.labeloffset:be.height+=be.labeloffset)})})(yt)}),Y(" removeSelfEdges",function(){(function(bt){b.forEach(bt.edges(),function(Ct){if(Ct.v===Ct.w){var $t=bt.node(Ct.v);$t.selfEdges||($t.selfEdges=[]),$t.selfEdges.push({e:Ct,label:bt.edge(Ct)}),bt.removeEdge(Ct)}})})(yt)}),Y(" acyclic",function(){u.run(yt)}),Y(" nestingGraph.run",function(){F.run(yt)}),Y(" rank",function(){y(J.asNonCompoundGraph(yt))}),Y(" injectEdgeLabelProxies",function(){(function(bt){b.forEach(bt.edges(),function(Ct){var $t=bt.edge(Ct);if($t.width&&$t.height){var be=bt.node(Ct.v),We={rank:(bt.node(Ct.w).rank-be.rank)/2+be.rank,e:Ct};J.addDummyNode(bt,"edge-proxy",We,"_ep")}})})(yt)}),Y(" removeEmptyRanks",function(){w(yt)}),Y(" nestingGraph.cleanup",function(){F.cleanup(yt)}),Y(" normalizeRanks",function(){E(yt)}),Y(" assignRankMinMax",function(){(function(bt){var Ct=0;b.forEach(bt.nodes(),function($t){var be=bt.node($t);be.borderTop&&(be.minRank=bt.node(be.borderTop).rank,be.maxRank=bt.node(be.borderBottom).rank,Ct=b.max(Ct,be.maxRank))}),bt.graph().maxRank=Ct})(yt)}),Y(" removeEdgeLabelProxies",function(){(function(bt){b.forEach(bt.nodes(),function(Ct){var $t=bt.node(Ct);$t.dummy==="edge-proxy"&&(bt.edge($t.e).labelRank=$t.rank,bt.removeNode(Ct))})})(yt)}),Y(" normalize.run",function(){_.run(yt)}),Y(" parentDummyChains",function(){A(yt)}),Y(" addBorderSegments",function(){B(yt)}),Y(" order",function(){G(yt)}),Y(" insertSelfEdges",function(){(function(bt){var Ct=J.buildLayerMatrix(bt);b.forEach(Ct,function($t){var be=0;b.forEach($t,function(We,xe){var pe=bt.node(We);pe.order=xe+be,b.forEach(pe.selfEdges,function(_e){J.addDummyNode(bt,"selfedge",{width:_e.label.width,height:_e.label.height,rank:pe.rank,order:xe+ ++be,e:_e.e,label:_e.label},"_se")}),delete pe.selfEdges})})})(yt)}),Y(" adjustCoordinateSystem",function(){P.adjust(yt)}),Y(" position",function(){K(yt)}),Y(" positionSelfEdges",function(){(function(bt){b.forEach(bt.nodes(),function(Ct){var $t=bt.node(Ct);if($t.dummy==="selfedge"){var be=bt.node($t.e.v),We=be.x+be.width/2,xe=be.y,pe=$t.x-We,_e=be.height/2;bt.setEdge($t.e,$t.label),bt.removeNode(Ct),$t.label.points=[{x:We+2*pe/3,y:xe-_e},{x:We+5*pe/6,y:xe-_e},{x:We+pe,y:xe},{x:We+5*pe/6,y:xe+_e},{x:We+2*pe/3,y:xe+_e}],$t.label.x=$t.x,$t.label.y=$t.y}})})(yt)}),Y(" removeBorderNodes",function(){(function(bt){b.forEach(bt.nodes(),function(Ct){if(bt.children(Ct).length){var $t=bt.node(Ct),be=bt.node($t.borderTop),We=bt.node($t.borderBottom),xe=bt.node(b.last($t.borderLeft)),pe=bt.node(b.last($t.borderRight));$t.width=Math.abs(pe.x-xe.x),$t.height=Math.abs(We.y-be.y),$t.x=xe.x+$t.width/2,$t.y=be.y+$t.height/2}}),b.forEach(bt.nodes(),function(Ct){bt.node(Ct).dummy==="border"&&bt.removeNode(Ct)})})(yt)}),Y(" normalize.undo",function(){_.undo(yt)}),Y(" fixupEdgeLabelCoords",function(){(function(bt){b.forEach(bt.edges(),function(Ct){var $t=bt.edge(Ct);if(b.has($t,"x"))switch($t.labelpos!=="l"&&$t.labelpos!=="r"||($t.width-=$t.labeloffset),$t.labelpos){case"l":$t.x-=$t.width/2+$t.labeloffset;break;case"r":$t.x+=$t.width/2+$t.labeloffset}})})(yt)}),Y(" undoCoordinateSystem",function(){P.undo(yt)}),Y(" translateGraph",function(){(function(bt){var Ct=Number.POSITIVE_INFINITY,$t=0,be=Number.POSITIVE_INFINITY,We=0,xe=bt.graph(),pe=xe.marginx||0,_e=xe.marginy||0;function Ae(De){var me=De.x,wn=De.y,de=De.width,Qe=De.height;Ct=Math.min(Ct,me-de/2),$t=Math.max($t,me+de/2),be=Math.min(be,wn-Qe/2),We=Math.max(We,wn+Qe/2)}b.forEach(bt.nodes(),function(De){Ae(bt.node(De))}),b.forEach(bt.edges(),function(De){var me=bt.edge(De);b.has(me,"x")&&Ae(me)}),Ct-=pe,be-=_e,b.forEach(bt.nodes(),function(De){var me=bt.node(De);me.x-=Ct,me.y-=be}),b.forEach(bt.edges(),function(De){var me=bt.edge(De);b.forEach(me.points,function(wn){wn.x-=Ct,wn.y-=be}),b.has(me,"x")&&(me.x-=Ct),b.has(me,"y")&&(me.y-=be)}),xe.width=$t-Ct+pe,xe.height=We-be+_e})(yt)}),Y(" assignNodeIntersects",function(){(function(bt){b.forEach(bt.edges(),function(Ct){var $t,be,We=bt.edge(Ct),xe=bt.node(Ct.v),pe=bt.node(Ct.w);We.points?($t=We.points[0],be=We.points[We.points.length-1]):(We.points=[],$t=pe,be=xe),We.points.unshift(J.intersectRect(xe,$t)),We.points.push(J.intersectRect(pe,be))})})(yt)}),Y(" reversePoints",function(){(function(bt){b.forEach(bt.edges(),function(Ct){var $t=bt.edge(Ct);$t.reversed&&$t.points.reverse()})})(yt)}),Y(" acyclic.undo",function(){u.undo(yt)})})(j,ot)}),ot(" updateInputGraph",function(){(function(yt,Y){b.forEach(yt.nodes(),function(bt){var Ct=yt.node(bt),$t=Y.node(bt);Ct&&(Ct.x=$t.x,Ct.y=$t.y,Y.children(bt).length&&(Ct.width=$t.width,Ct.height=$t.height))}),b.forEach(yt.edges(),function(bt){var Ct=yt.edge(bt),$t=Y.edge(bt);Ct.points=$t.points,b.has($t,"x")&&(Ct.x=$t.x,Ct.y=$t.y)}),yt.graph().width=Y.graph().width,yt.graph().height=Y.graph().height})(mt,j)})})};var tt=["nodesep","edgesep","ranksep","marginx","marginy"],kt={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},at=["acyclicer","ranker","rankdir","align"],ut=["width","height"],vt={width:0,height:0},Zt=["minlen","weight","width","height","labeloffset"],Gt={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},xt=["labelpos"];function It(mt,X){return b.mapValues(b.pick(mt,X),Number)}function wt(mt){var X={};return b.forEach(mt,function(ot,j){X[j.toLowerCase()]=ot}),X}},8436:(M,z,p)=>{var b;try{b={cloneDeep:p(361),constant:p(5703),defaults:p(1747),each:p(6073),filter:p(3105),find:p(3311),flatten:p(5564),forEach:p(4486),forIn:p(2620),has:p(8721),isUndefined:p(2353),last:p(928),map:p(5161),mapValues:p(6604),max:p(6162),merge:p(3857),min:p(3632),minBy:p(2762),now:p(7771),pick:p(9722),range:p(6026),reduce:p(4061),sortBy:p(9734),uniqueId:p(3955),values:p(2628),zipObject:p(7287)}}catch{}b||(b=window._),M.exports=b},2981:(M,z,p)=>{var b=p(8436),u=p(1138);function _(y,E,A,w,F,B,P){var G=y.children(P);if(G.length){var K=u.addBorderNode(y,"_bt"),J=u.addBorderNode(y,"_bb"),ht=y.node(P);y.setParent(K,P),ht.borderTop=K,y.setParent(J,P),ht.borderBottom=J,b.forEach(G,function(tt){_(y,E,A,w,F,B,tt);var kt=y.node(tt),at=kt.borderTop?kt.borderTop:tt,ut=kt.borderBottom?kt.borderBottom:tt,vt=kt.borderTop?w:2*w,Zt=at!==ut?1:F-B[P]+1;y.setEdge(K,at,{weight:vt,minlen:Zt,nestingEdge:!0}),y.setEdge(ut,J,{weight:vt,minlen:Zt,nestingEdge:!0})}),y.parent(P)||y.setEdge(E,K,{weight:0,minlen:F+B[P]})}else P!==E&&y.setEdge(E,P,{weight:0,minlen:A})}M.exports={run:function(y){var E=u.addDummyNode(y,"root",{},"_root"),A=function(P){var G={};function K(J,ht){var tt=P.children(J);tt&&tt.length&&b.forEach(tt,function(kt){K(kt,ht+1)}),G[J]=ht}return b.forEach(P.children(),function(J){K(J,1)}),G}(y),w=b.max(b.values(A))-1,F=2*w+1;y.graph().nestingRoot=E,b.forEach(y.edges(),function(P){y.edge(P).minlen*=F});var B=function(P){return b.reduce(P.edges(),function(G,K){return G+P.edge(K).weight},0)}(y)+1;b.forEach(y.children(),function(P){_(y,E,F,B,w,A,P)}),y.graph().nodeRankFactor=F},cleanup:function(y){var E=y.graph();y.removeNode(E.nestingRoot),delete E.nestingRoot,b.forEach(y.edges(),function(A){y.edge(A).nestingEdge&&y.removeEdge(A)})}}},5995:(M,z,p)=>{var b=p(8436),u=p(1138);M.exports={run:function(_){_.graph().dummyChains=[],b.forEach(_.edges(),function(y){(function(E,A){var w,F,B,P=A.v,G=E.node(P).rank,K=A.w,J=E.node(K).rank,ht=A.name,tt=E.edge(A),kt=tt.labelRank;if(J!==G+1){for(E.removeEdge(A),B=0,++G;G<J;++B,++G)tt.points=[],F={width:0,height:0,edgeLabel:tt,edgeObj:A,rank:G},w=u.addDummyNode(E,"edge",F,"_d"),G===kt&&(F.width=tt.width,F.height=tt.height,F.dummy="edge-label",F.labelpos=tt.labelpos),E.setEdge(P,w,{weight:tt.weight},ht),B===0&&E.graph().dummyChains.push(w),P=w;E.setEdge(P,K,{weight:tt.weight},ht)}})(_,y)})},undo:function(_){b.forEach(_.graph().dummyChains,function(y){var E,A=_.node(y),w=A.edgeLabel;for(_.setEdge(A.edgeObj,w);A.dummy;)E=_.successors(y)[0],_.removeNode(y),w.points.push({x:A.x,y:A.y}),A.dummy==="edge-label"&&(w.x=A.x,w.y=A.y,w.width=A.width,w.height=A.height),y=E,A=_.node(y)})}}},5093:(M,z,p)=>{var b=p(8436);M.exports=function(u,_,y){var E,A={};b.forEach(y,function(w){for(var F,B,P=u.parent(w);P;){if((F=u.parent(P))?(B=A[F],A[F]=P):(B=E,E=P),B&&B!==P)return void _.setEdge(B,P);P=F}})}},5439:(M,z,p)=>{var b=p(8436);M.exports=function(u,_){return b.map(_,function(y){var E=u.inEdges(y);if(E.length){var A=b.reduce(E,function(w,F){var B=u.edge(F),P=u.node(F.v);return{sum:w.sum+B.weight*P.order,weight:w.weight+B.weight}},{sum:0,weight:0});return{v:y,barycenter:A.sum/A.weight,weight:A.weight}}return{v:y}})}},3128:(M,z,p)=>{var b=p(8436),u=p(574).Graph;M.exports=function(_,y,E){var A=function(F){for(var B;F.hasNode(B=b.uniqueId("_root")););return B}(_),w=new u({compound:!0}).setGraph({root:A}).setDefaultNodeLabel(function(F){return _.node(F)});return b.forEach(_.nodes(),function(F){var B=_.node(F),P=_.parent(F);(B.rank===y||B.minRank<=y&&y<=B.maxRank)&&(w.setNode(F),w.setParent(F,P||A),b.forEach(_[E](F),function(G){var K=G.v===F?G.w:G.v,J=w.edge(K,F),ht=b.isUndefined(J)?0:J.weight;w.setEdge(K,F,{weight:_.edge(G).weight+ht})}),b.has(B,"minRank")&&w.setNode(F,{borderLeft:B.borderLeft[y],borderRight:B.borderRight[y]}))}),w}},6630:(M,z,p)=>{var b=p(8436);function u(_,y,E){for(var A=b.zipObject(E,b.map(E,function(K,J){return J})),w=b.flatten(b.map(y,function(K){return b.sortBy(b.map(_.outEdges(K),function(J){return{pos:A[J.w],weight:_.edge(J).weight}}),"pos")}),!0),F=1;F<E.length;)F<<=1;var B=2*F-1;F-=1;var P=b.map(new Array(B),function(){return 0}),G=0;return b.forEach(w.forEach(function(K){var J=K.pos+F;P[J]+=K.weight;for(var ht=0;J>0;)J%2&&(ht+=P[J+1]),P[J=J-1>>1]+=K.weight;G+=K.weight*ht})),G}M.exports=function(_,y){for(var E=0,A=1;A<y.length;++A)E+=u(_,y[A-1],y[A]);return E}},3408:(M,z,p)=>{var b=p(8436),u=p(2588),_=p(6630),y=p(1026),E=p(3128),A=p(5093),w=p(574).Graph,F=p(1138);function B(K,J,ht){return b.map(J,function(tt){return E(K,tt,ht)})}function P(K,J){var ht=new w;b.forEach(K,function(tt){var kt=tt.graph().root,at=y(tt,kt,ht,J);b.forEach(at.vs,function(ut,vt){tt.node(ut).order=vt}),A(tt,ht,at.vs)})}function G(K,J){b.forEach(J,function(ht){b.forEach(ht,function(tt,kt){K.node(tt).order=kt})})}M.exports=function(K){var J=F.maxRank(K),ht=B(K,b.range(1,J+1),"inEdges"),tt=B(K,b.range(J-1,-1,-1),"outEdges"),kt=u(K);G(K,kt);for(var at,ut=Number.POSITIVE_INFINITY,vt=0,Zt=0;Zt<4;++vt,++Zt){P(vt%2?ht:tt,vt%4>=2),kt=F.buildLayerMatrix(K);var Gt=_(K,kt);Gt<ut&&(Zt=0,at=b.cloneDeep(kt),ut=Gt)}G(K,at)}},2588:(M,z,p)=>{var b=p(8436);M.exports=function(u){var _={},y=b.filter(u.nodes(),function(F){return!u.children(F).length}),E=b.max(b.map(y,function(F){return u.node(F).rank})),A=b.map(b.range(E+1),function(){return[]}),w=b.sortBy(y,function(F){return u.node(F).rank});return b.forEach(w,function F(B){if(!b.has(_,B)){_[B]=!0;var P=u.node(B);A[P.rank].push(B),b.forEach(u.successors(B),F)}}),A}},9567:(M,z,p)=>{var b=p(8436);M.exports=function(u,_){var y={};return b.forEach(u,function(E,A){var w=y[E.v]={indegree:0,in:[],out:[],vs:[E.v],i:A};b.isUndefined(E.barycenter)||(w.barycenter=E.barycenter,w.weight=E.weight)}),b.forEach(_.edges(),function(E){var A=y[E.v],w=y[E.w];b.isUndefined(A)||b.isUndefined(w)||(w.indegree++,A.out.push(y[E.w]))}),function(E){var A=[];function w(P){return function(G){var K,J,ht,tt;G.merged||(b.isUndefined(G.barycenter)||b.isUndefined(P.barycenter)||G.barycenter>=P.barycenter)&&(J=G,ht=0,tt=0,(K=P).weight&&(ht+=K.barycenter*K.weight,tt+=K.weight),J.weight&&(ht+=J.barycenter*J.weight,tt+=J.weight),K.vs=J.vs.concat(K.vs),K.barycenter=ht/tt,K.weight=tt,K.i=Math.min(J.i,K.i),J.merged=!0)}}function F(P){return function(G){G.in.push(P),--G.indegree==0&&E.push(G)}}for(;E.length;){var B=E.pop();A.push(B),b.forEach(B.in.reverse(),w(B)),b.forEach(B.out,F(B))}return b.map(b.filter(A,function(P){return!P.merged}),function(P){return b.pick(P,["vs","i","barycenter","weight"])})}(b.filter(y,function(E){return!E.indegree}))}},1026:(M,z,p)=>{var b=p(8436),u=p(5439),_=p(9567),y=p(7304);M.exports=function E(A,w,F,B){var P=A.children(w),G=A.node(w),K=G?G.borderLeft:void 0,J=G?G.borderRight:void 0,ht={};K&&(P=b.filter(P,function(Zt){return Zt!==K&&Zt!==J}));var tt=u(A,P);b.forEach(tt,function(Zt){if(A.children(Zt.v).length){var Gt=E(A,Zt.v,F,B);ht[Zt.v]=Gt,b.has(Gt,"barycenter")&&(xt=Zt,It=Gt,b.isUndefined(xt.barycenter)?(xt.barycenter=It.barycenter,xt.weight=It.weight):(xt.barycenter=(xt.barycenter*xt.weight+It.barycenter*It.weight)/(xt.weight+It.weight),xt.weight+=It.weight))}var xt,It});var kt=_(tt,F);(function(Zt,Gt){b.forEach(Zt,function(xt){xt.vs=b.flatten(xt.vs.map(function(It){return Gt[It]?Gt[It].vs:It}),!0)})})(kt,ht);var at=y(kt,B);if(K&&(at.vs=b.flatten([K,at.vs,J],!0),A.predecessors(K).length)){var ut=A.node(A.predecessors(K)[0]),vt=A.node(A.predecessors(J)[0]);b.has(at,"barycenter")||(at.barycenter=0,at.weight=0),at.barycenter=(at.barycenter*at.weight+ut.order+vt.order)/(at.weight+2),at.weight+=2}return at}},7304:(M,z,p)=>{var b=p(8436),u=p(1138);function _(y,E,A){for(var w;E.length&&(w=b.last(E)).i<=A;)E.pop(),y.push(w.vs),A++;return A}M.exports=function(y,E){var A,w=u.partition(y,function(tt){return b.has(tt,"barycenter")}),F=w.lhs,B=b.sortBy(w.rhs,function(tt){return-tt.i}),P=[],G=0,K=0,J=0;F.sort((A=!!E,function(tt,kt){return tt.barycenter<kt.barycenter?-1:tt.barycenter>kt.barycenter?1:A?kt.i-tt.i:tt.i-kt.i})),J=_(P,B,J),b.forEach(F,function(tt){J+=tt.vs.length,P.push(tt.vs),G+=tt.barycenter*tt.weight,K+=tt.weight,J=_(P,B,J)});var ht={vs:b.flatten(P,!0)};return K&&(ht.barycenter=G/K,ht.weight=K),ht}},4219:(M,z,p)=>{var b=p(8436);M.exports=function(u){var _=function(y){var E={},A=0;return b.forEach(y.children(),function w(F){var B=A;b.forEach(y.children(F),w),E[F]={low:B,lim:A++}}),E}(u);b.forEach(u.graph().dummyChains,function(y){for(var E=u.node(y),A=E.edgeObj,w=function(J,ht,tt,kt){var at,ut,vt=[],Zt=[],Gt=Math.min(ht[tt].low,ht[kt].low),xt=Math.max(ht[tt].lim,ht[kt].lim);at=tt;do at=J.parent(at),vt.push(at);while(at&&(ht[at].low>Gt||xt>ht[at].lim));for(ut=at,at=kt;(at=J.parent(at))!==ut;)Zt.push(at);return{path:vt.concat(Zt.reverse()),lca:ut}}(u,_,A.v,A.w),F=w.path,B=w.lca,P=0,G=F[P],K=!0;y!==A.w;){if(E=u.node(y),K){for(;(G=F[P])!==B&&u.node(G).maxRank<E.rank;)P++;G===B&&(K=!1)}if(!K){for(;P<F.length-1&&u.node(G=F[P+1]).minRank<=E.rank;)P++;G=F[P]}u.setParent(y,G),y=u.successors(y)[0]}})}},3573:(M,z,p)=>{var b=p(8436),u=p(574).Graph,_=p(1138);function y(J,ht){var tt={};return b.reduce(ht,function(kt,at){var ut=0,vt=0,Zt=kt.length,Gt=b.last(at);return b.forEach(at,function(xt,It){var wt=function(X,ot){if(X.node(ot).dummy)return b.find(X.predecessors(ot),function(j){return X.node(j).dummy})}(J,xt),mt=wt?J.node(wt).order:Zt;(wt||xt===Gt)&&(b.forEach(at.slice(vt,It+1),function(X){b.forEach(J.predecessors(X),function(ot){var j=J.node(ot),yt=j.order;!(yt<ut||mt<yt)||j.dummy&&J.node(X).dummy||A(tt,ot,X)})}),vt=It+1,ut=mt)}),at}),tt}function E(J,ht){var tt={};function kt(at,ut,vt,Zt,Gt){var xt;b.forEach(b.range(ut,vt),function(It){xt=at[It],J.node(xt).dummy&&b.forEach(J.predecessors(xt),function(wt){var mt=J.node(wt);mt.dummy&&(mt.order<Zt||mt.order>Gt)&&A(tt,wt,xt)})})}return b.reduce(ht,function(at,ut){var vt,Zt=-1,Gt=0;return b.forEach(ut,function(xt,It){if(J.node(xt).dummy==="border"){var wt=J.predecessors(xt);wt.length&&(vt=J.node(wt[0]).order,kt(ut,Gt,It,Zt,vt),Gt=It,Zt=vt)}kt(ut,Gt,ut.length,vt,at.length)}),ut}),tt}function A(J,ht,tt){if(ht>tt){var kt=ht;ht=tt,tt=kt}var at=J[ht];at||(J[ht]=at={}),at[tt]=!0}function w(J,ht,tt){if(ht>tt){var kt=ht;ht=tt,tt=kt}return b.has(J[ht],tt)}function F(J,ht,tt,kt){var at={},ut={},vt={};return b.forEach(ht,function(Zt){b.forEach(Zt,function(Gt,xt){at[Gt]=Gt,ut[Gt]=Gt,vt[Gt]=xt})}),b.forEach(ht,function(Zt){var Gt=-1;b.forEach(Zt,function(xt){var It=kt(xt);if(It.length){It=b.sortBy(It,function(j){return vt[j]});for(var wt=(It.length-1)/2,mt=Math.floor(wt),X=Math.ceil(wt);mt<=X;++mt){var ot=It[mt];ut[xt]===xt&&Gt<vt[ot]&&!w(tt,xt,ot)&&(ut[ot]=xt,ut[xt]=at[xt]=at[ot],Gt=vt[ot])}}})}),{root:at,align:ut}}function B(J,ht,tt,kt,at){var ut={},vt=function(xt,It,wt,mt){var X=new u,ot=xt.graph(),j=function(yt,Y,bt){return function(Ct,$t,be){var We,xe=Ct.node($t),pe=Ct.node(be),_e=0;if(_e+=xe.width/2,b.has(xe,"labelpos"))switch(xe.labelpos.toLowerCase()){case"l":We=-xe.width/2;break;case"r":We=xe.width/2}if(We&&(_e+=bt?We:-We),We=0,_e+=(xe.dummy?Y:yt)/2,_e+=(pe.dummy?Y:yt)/2,_e+=pe.width/2,b.has(pe,"labelpos"))switch(pe.labelpos.toLowerCase()){case"l":We=pe.width/2;break;case"r":We=-pe.width/2}return We&&(_e+=bt?We:-We),We=0,_e}}(ot.nodesep,ot.edgesep,mt);return b.forEach(It,function(yt){var Y;b.forEach(yt,function(bt){var Ct=wt[bt];if(X.setNode(Ct),Y){var $t=wt[Y],be=X.edge($t,Ct);X.setEdge($t,Ct,Math.max(j(xt,bt,Y),be||0))}Y=bt})}),X}(J,ht,tt,at),Zt=at?"borderLeft":"borderRight";function Gt(xt,It){for(var wt=vt.nodes(),mt=wt.pop(),X={};mt;)X[mt]?xt(mt):(X[mt]=!0,wt.push(mt),wt=wt.concat(It(mt))),mt=wt.pop()}return Gt(function(xt){ut[xt]=vt.inEdges(xt).reduce(function(It,wt){return Math.max(It,ut[wt.v]+vt.edge(wt))},0)},vt.predecessors.bind(vt)),Gt(function(xt){var It=vt.outEdges(xt).reduce(function(mt,X){return Math.min(mt,ut[X.w]-vt.edge(X))},Number.POSITIVE_INFINITY),wt=J.node(xt);It!==Number.POSITIVE_INFINITY&&wt.borderType!==Zt&&(ut[xt]=Math.max(ut[xt],It))},vt.successors.bind(vt)),b.forEach(kt,function(xt){ut[xt]=ut[tt[xt]]}),ut}function P(J,ht){return b.minBy(b.values(ht),function(tt){var kt=Number.NEGATIVE_INFINITY,at=Number.POSITIVE_INFINITY;return b.forIn(tt,function(ut,vt){var Zt=function(Gt,xt){return Gt.node(xt).width}(J,vt)/2;kt=Math.max(ut+Zt,kt),at=Math.min(ut-Zt,at)}),kt-at})}function G(J,ht){var tt=b.values(ht),kt=b.min(tt),at=b.max(tt);b.forEach(["u","d"],function(ut){b.forEach(["l","r"],function(vt){var Zt,Gt=ut+vt,xt=J[Gt];if(xt!==ht){var It=b.values(xt);(Zt=vt==="l"?kt-b.min(It):at-b.max(It))&&(J[Gt]=b.mapValues(xt,function(wt){return wt+Zt}))}})})}function K(J,ht){return b.mapValues(J.ul,function(tt,kt){if(ht)return J[ht.toLowerCase()][kt];var at=b.sortBy(b.map(J,kt));return(at[1]+at[2])/2})}M.exports={positionX:function(J){var ht,tt=_.buildLayerMatrix(J),kt=b.merge(y(J,tt),E(J,tt)),at={};b.forEach(["u","d"],function(vt){ht=vt==="u"?tt:b.values(tt).reverse(),b.forEach(["l","r"],function(Zt){Zt==="r"&&(ht=b.map(ht,function(wt){return b.values(wt).reverse()}));var Gt=(vt==="u"?J.predecessors:J.successors).bind(J),xt=F(0,ht,kt,Gt),It=B(J,ht,xt.root,xt.align,Zt==="r");Zt==="r"&&(It=b.mapValues(It,function(wt){return-wt})),at[vt+Zt]=It})});var ut=P(J,at);return G(at,ut),K(at,J.graph().align)},findType1Conflicts:y,findType2Conflicts:E,addConflict:A,hasConflict:w,verticalAlignment:F,horizontalCompaction:B,alignCoordinates:G,findSmallestWidthAlignment:P,balance:K}},7873:(M,z,p)=>{var b=p(8436),u=p(1138),_=p(3573).positionX;M.exports=function(y){(function(E){var A=u.buildLayerMatrix(E),w=E.graph().ranksep,F=0;b.forEach(A,function(B){var P=b.max(b.map(B,function(G){return E.node(G).height}));b.forEach(B,function(G){E.node(G).y=F+P/2}),F+=P+w})})(y=u.asNonCompoundGraph(y)),b.forEach(_(y),function(E,A){y.node(A).x=E})}},300:(M,z,p)=>{var b=p(8436),u=p(574).Graph,_=p(6681).slack;function y(w,F){return b.forEach(w.nodes(),function B(P){b.forEach(F.nodeEdges(P),function(G){var K=G.v,J=P===K?G.w:K;w.hasNode(J)||_(F,G)||(w.setNode(J,{}),w.setEdge(P,J,{}),B(J))})}),w.nodeCount()}function E(w,F){return b.minBy(F.edges(),function(B){if(w.hasNode(B.v)!==w.hasNode(B.w))return _(F,B)})}function A(w,F,B){b.forEach(w.nodes(),function(P){F.node(P).rank+=B})}M.exports=function(w){var F,B,P=new u({directed:!1}),G=w.nodes()[0],K=w.nodeCount();for(P.setNode(G,{});y(P,w)<K;)F=E(P,w),B=P.hasNode(F.v)?_(w,F):-_(w,F),A(P,w,B);return P}},8093:(M,z,p)=>{var b=p(6681).longestPath,u=p(300),_=p(2472);M.exports=function(E){switch(E.graph().ranker){case"network-simplex":default:(function(A){_(A)})(E);break;case"tight-tree":(function(A){b(A),u(A)})(E);break;case"longest-path":y(E)}};var y=b},2472:(M,z,p)=>{var b=p(8436),u=p(300),_=p(6681).slack,y=p(6681).longestPath,E=p(574).alg.preorder,A=p(574).alg.postorder,w=p(1138).simplify;function F(at){at=w(at),y(at);var ut,vt=u(at);for(G(vt),B(vt,at);ut=J(vt);)tt(vt,at,ut,ht(vt,at,ut))}function B(at,ut){var vt=A(at,at.nodes());vt=vt.slice(0,vt.length-1),b.forEach(vt,function(Zt){(function(Gt,xt,It){var wt=Gt.node(It).parent;Gt.edge(It,wt).cutvalue=P(Gt,xt,It)})(at,ut,Zt)})}function P(at,ut,vt){var Zt=at.node(vt).parent,Gt=!0,xt=ut.edge(vt,Zt),It=0;return xt||(Gt=!1,xt=ut.edge(Zt,vt)),It=xt.weight,b.forEach(ut.nodeEdges(vt),function(wt){var mt,X,ot=wt.v===vt,j=ot?wt.w:wt.v;if(j!==Zt){var yt=ot===Gt,Y=ut.edge(wt).weight;if(It+=yt?Y:-Y,mt=vt,X=j,at.hasEdge(mt,X)){var bt=at.edge(vt,j).cutvalue;It+=yt?-bt:bt}}}),It}function G(at,ut){arguments.length<2&&(ut=at.nodes()[0]),K(at,{},1,ut)}function K(at,ut,vt,Zt,Gt){var xt=vt,It=at.node(Zt);return ut[Zt]=!0,b.forEach(at.neighbors(Zt),function(wt){b.has(ut,wt)||(vt=K(at,ut,vt,wt,Zt))}),It.low=xt,It.lim=vt++,Gt?It.parent=Gt:delete It.parent,vt}function J(at){return b.find(at.edges(),function(ut){return at.edge(ut).cutvalue<0})}function ht(at,ut,vt){var Zt=vt.v,Gt=vt.w;ut.hasEdge(Zt,Gt)||(Zt=vt.w,Gt=vt.v);var xt=at.node(Zt),It=at.node(Gt),wt=xt,mt=!1;xt.lim>It.lim&&(wt=It,mt=!0);var X=b.filter(ut.edges(),function(ot){return mt===kt(0,at.node(ot.v),wt)&&mt!==kt(0,at.node(ot.w),wt)});return b.minBy(X,function(ot){return _(ut,ot)})}function tt(at,ut,vt,Zt){var Gt=vt.v,xt=vt.w;at.removeEdge(Gt,xt),at.setEdge(Zt.v,Zt.w,{}),G(at),B(at,ut),function(It,wt){var mt=b.find(It.nodes(),function(ot){return!wt.node(ot).parent}),X=E(It,mt);X=X.slice(1),b.forEach(X,function(ot){var j=It.node(ot).parent,yt=wt.edge(ot,j),Y=!1;yt||(yt=wt.edge(j,ot),Y=!0),wt.node(ot).rank=wt.node(j).rank+(Y?yt.minlen:-yt.minlen)})}(at,ut)}function kt(at,ut,vt){return vt.low<=ut.lim&&ut.lim<=vt.lim}M.exports=F,F.initLowLimValues=G,F.initCutValues=B,F.calcCutValue=P,F.leaveEdge=J,F.enterEdge=ht,F.exchangeEdges=tt},6681:(M,z,p)=>{var b=p(8436);M.exports={longestPath:function(u){var _={};b.forEach(u.sources(),function y(E){var A=u.node(E);if(b.has(_,E))return A.rank;_[E]=!0;var w=b.min(b.map(u.outEdges(E),function(F){return y(F.w)-u.edge(F).minlen}));return w!==Number.POSITIVE_INFINITY&&w!=null||(w=0),A.rank=w})},slack:function(u,_){return u.node(_.w).rank-u.node(_.v).rank-u.edge(_).minlen}}},1138:(M,z,p)=>{var b=p(8436),u=p(574).Graph;function _(E,A,w,F){var B;do B=b.uniqueId(F);while(E.hasNode(B));return w.dummy=A,E.setNode(B,w),B}function y(E){return b.max(b.map(E.nodes(),function(A){var w=E.node(A).rank;if(!b.isUndefined(w))return w}))}M.exports={addDummyNode:_,simplify:function(E){var A=new u().setGraph(E.graph());return b.forEach(E.nodes(),function(w){A.setNode(w,E.node(w))}),b.forEach(E.edges(),function(w){var F=A.edge(w.v,w.w)||{weight:0,minlen:1},B=E.edge(w);A.setEdge(w.v,w.w,{weight:F.weight+B.weight,minlen:Math.max(F.minlen,B.minlen)})}),A},asNonCompoundGraph:function(E){var A=new u({multigraph:E.isMultigraph()}).setGraph(E.graph());return b.forEach(E.nodes(),function(w){E.children(w).length||A.setNode(w,E.node(w))}),b.forEach(E.edges(),function(w){A.setEdge(w,E.edge(w))}),A},successorWeights:function(E){var A=b.map(E.nodes(),function(w){var F={};return b.forEach(E.outEdges(w),function(B){F[B.w]=(F[B.w]||0)+E.edge(B).weight}),F});return b.zipObject(E.nodes(),A)},predecessorWeights:function(E){var A=b.map(E.nodes(),function(w){var F={};return b.forEach(E.inEdges(w),function(B){F[B.v]=(F[B.v]||0)+E.edge(B).weight}),F});return b.zipObject(E.nodes(),A)},intersectRect:function(E,A){var w,F,B=E.x,P=E.y,G=A.x-B,K=A.y-P,J=E.width/2,ht=E.height/2;if(!G&&!K)throw new Error("Not possible to find intersection inside of the rectangle");return Math.abs(K)*J>Math.abs(G)*ht?(K<0&&(ht=-ht),w=ht*G/K,F=ht):(G<0&&(J=-J),w=J,F=J*K/G),{x:B+w,y:P+F}},buildLayerMatrix:function(E){var A=b.map(b.range(y(E)+1),function(){return[]});return b.forEach(E.nodes(),function(w){var F=E.node(w),B=F.rank;b.isUndefined(B)||(A[B][F.order]=w)}),A},normalizeRanks:function(E){var A=b.min(b.map(E.nodes(),function(w){return E.node(w).rank}));b.forEach(E.nodes(),function(w){var F=E.node(w);b.has(F,"rank")&&(F.rank-=A)})},removeEmptyRanks:function(E){var A=b.min(b.map(E.nodes(),function(P){return E.node(P).rank})),w=[];b.forEach(E.nodes(),function(P){var G=E.node(P).rank-A;w[G]||(w[G]=[]),w[G].push(P)});var F=0,B=E.graph().nodeRankFactor;b.forEach(w,function(P,G){b.isUndefined(P)&&G%B!=0?--F:F&&b.forEach(P,function(K){E.node(K).rank+=F})})},addBorderNode:function(E,A,w,F){var B={width:0,height:0};return arguments.length>=4&&(B.rank=w,B.order=F),_(E,"border",B,A)},maxRank:y,partition:function(E,A){var w={lhs:[],rhs:[]};return b.forEach(E,function(F){A(F)?w.lhs.push(F):w.rhs.push(F)}),w},time:function(E,A){var w=b.now();try{return A()}finally{console.log(E+" time: "+(b.now()-w)+"ms")}},notime:function(E,A){return A()}}},8177:M=>{M.exports="0.8.5"},7856:function(M){M.exports=function(){function z(ft){return z=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Mt){return typeof Mt}:function(Mt){return Mt&&typeof Symbol=="function"&&Mt.constructor===Symbol&&Mt!==Symbol.prototype?"symbol":typeof Mt},z(ft)}function p(ft,Mt){return p=Object.setPrototypeOf||function(fe,Le){return fe.__proto__=Le,fe},p(ft,Mt)}function b(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function u(ft,Mt,fe){return u=b()?Reflect.construct:function(Le,en,qe){var sn=[null];sn.push.apply(sn,en);var Fe=new(Function.bind.apply(Le,sn));return qe&&p(Fe,qe.prototype),Fe},u.apply(null,arguments)}function _(ft){return function(Mt){if(Array.isArray(Mt))return y(Mt)}(ft)||function(Mt){if(typeof Symbol<"u"&&Mt[Symbol.iterator]!=null||Mt["@@iterator"]!=null)return Array.from(Mt)}(ft)||function(Mt,fe){if(Mt){if(typeof Mt=="string")return y(Mt,fe);var Le=Object.prototype.toString.call(Mt).slice(8,-1);return Le==="Object"&&Mt.constructor&&(Le=Mt.constructor.name),Le==="Map"||Le==="Set"?Array.from(Mt):Le==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Le)?y(Mt,fe):void 0}}(ft)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function y(ft,Mt){(Mt==null||Mt>ft.length)&&(Mt=ft.length);for(var fe=0,Le=new Array(Mt);fe<Mt;fe++)Le[fe]=ft[fe];return Le}var E=Object.hasOwnProperty,A=Object.setPrototypeOf,w=Object.isFrozen,F=Object.getPrototypeOf,B=Object.getOwnPropertyDescriptor,P=Object.freeze,G=Object.seal,K=Object.create,J=typeof Reflect<"u"&&Reflect,ht=J.apply,tt=J.construct;ht||(ht=function(ft,Mt,fe){return ft.apply(Mt,fe)}),P||(P=function(ft){return ft}),G||(G=function(ft){return ft}),tt||(tt=function(ft,Mt){return u(ft,_(Mt))});var kt,at=ot(Array.prototype.forEach),ut=ot(Array.prototype.pop),vt=ot(Array.prototype.push),Zt=ot(String.prototype.toLowerCase),Gt=ot(String.prototype.match),xt=ot(String.prototype.replace),It=ot(String.prototype.indexOf),wt=ot(String.prototype.trim),mt=ot(RegExp.prototype.test),X=(kt=TypeError,function(){for(var ft=arguments.length,Mt=new Array(ft),fe=0;fe<ft;fe++)Mt[fe]=arguments[fe];return tt(kt,Mt)});function ot(ft){return function(Mt){for(var fe=arguments.length,Le=new Array(fe>1?fe-1:0),en=1;en<fe;en++)Le[en-1]=arguments[en];return ht(ft,Mt,Le)}}function j(ft,Mt,fe){fe=fe||Zt,A&&A(ft,null);for(var Le=Mt.length;Le--;){var en=Mt[Le];if(typeof en=="string"){var qe=fe(en);qe!==en&&(w(Mt)||(Mt[Le]=qe),en=qe)}ft[en]=!0}return ft}function yt(ft){var Mt,fe=K(null);for(Mt in ft)ht(E,ft,[Mt])&&(fe[Mt]=ft[Mt]);return fe}function Y(ft,Mt){for(;ft!==null;){var fe=B(ft,Mt);if(fe){if(fe.get)return ot(fe.get);if(typeof fe.value=="function")return ot(fe.value)}ft=F(ft)}return function(Le){return console.warn("fallback value for",Le),null}}var bt=P(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),Ct=P(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),$t=P(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),be=P(["animate","color-profile","cursor","discard","fedropshadow","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),We=P(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover"]),xe=P(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),pe=P(["#text"]),_e=P(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),Ae=P(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),De=P(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),me=P(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),wn=G(/\{\{[\w\W]*|[\w\W]*\}\}/gm),de=G(/<%[\w\W]*|[\w\W]*%>/gm),Qe=G(/^data-[\-\w.\u00B7-\uFFFF]/),ne=G(/^aria-[\-\w]+$/),Qt=G(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),se=G(/^(?:\w+script|data):/i),Et=G(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),te=G(/^html$/i),st=function(){return typeof window>"u"?null:window},dt=function(ft,Mt){if(z(ft)!=="object"||typeof ft.createPolicy!="function")return null;var fe=null,Le="data-tt-policy-suffix";Mt.currentScript&&Mt.currentScript.hasAttribute(Le)&&(fe=Mt.currentScript.getAttribute(Le));var en="dompurify"+(fe?"#"+fe:"");try{return ft.createPolicy(en,{createHTML:function(qe){return qe},createScriptURL:function(qe){return qe}})}catch{return console.warn("TrustedTypes policy "+en+" could not be created."),null}};return function ft(){var Mt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:st(),fe=function(Ht){return ft(Ht)};if(fe.version="2.4.0",fe.removed=[],!Mt||!Mt.document||Mt.document.nodeType!==9)return fe.isSupported=!1,fe;var Le=Mt.document,en=Mt.document,qe=Mt.DocumentFragment,sn=Mt.HTMLTemplateElement,Fe=Mt.Node,Te=Mt.Element,Oe=Mt.NodeFilter,Be=Mt.NamedNodeMap,ge=Be===void 0?Mt.NamedNodeMap||Mt.MozNamedAttrMap:Be,re=Mt.HTMLFormElement,An=Mt.DOMParser,Ie=Mt.trustedTypes,ln=Te.prototype,Ye=Y(ln,"cloneNode"),fn=Y(ln,"nextSibling"),Jn=Y(ln,"childNodes"),Dn=Y(ln,"parentNode");if(typeof sn=="function"){var Tn=en.createElement("template");Tn.content&&Tn.content.ownerDocument&&(en=Tn.content.ownerDocument)}var Me=dt(Ie,Le),Ke=Me?Me.createHTML(""):"",Xe=en,Ee=Xe.implementation,mn=Xe.createNodeIterator,At=Xe.createDocumentFragment,vr=Xe.getElementsByTagName,Yt=Le.importNode,Un={};try{Un=yt(en).documentMode?en.documentMode:{}}catch{}var Rn={};fe.isSupported=typeof Dn=="function"&&Ee&&Ee.createHTMLDocument!==void 0&&Un!==9;var Vn,Mn,Hn=wn,In=de,En=Qe,Fn=ne,Pn=se,jn=Et,fa=Qt,Dr=null,Tr=j({},[].concat(_(bt),_(Ct),_($t),_(We),_(pe))),Sn=null,oi=j({},[].concat(_(_e),_(Ae),_(De),_(me))),Nn=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),_r=null,Cr=null,yr=!0,qr=!0,Dt=!1,Ar=!1,Nr=!1,Gn=!1,Zr=!1,Ur=!1,Ir=!1,Qr=!1,xa=!0,cr=!1,ea="user-content-",na=!0,Ni=!1,rn={},Zn=null,an=j({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),nn=null,nr=j({},["audio","video","img","source","image","track"]),qt=null,wi=j({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Kt="http://www.w3.org/1998/Math/MathML",xr="http://www.w3.org/2000/svg",Or="http://www.w3.org/1999/xhtml",Vr=Or,li=!1,ka=["application/xhtml+xml","text/html"],hr="text/html",xn=null,ra=en.createElement("form"),On=function(Ht){return Ht instanceof RegExp||Ht instanceof Function},bi=function(Ht){xn&&xn===Ht||(Ht&&z(Ht)==="object"||(Ht={}),Ht=yt(Ht),Vn=Vn=ka.indexOf(Ht.PARSER_MEDIA_TYPE)===-1?hr:Ht.PARSER_MEDIA_TYPE,Mn=Vn==="application/xhtml+xml"?function(Ve){return Ve}:Zt,Dr="ALLOWED_TAGS"in Ht?j({},Ht.ALLOWED_TAGS,Mn):Tr,Sn="ALLOWED_ATTR"in Ht?j({},Ht.ALLOWED_ATTR,Mn):oi,qt="ADD_URI_SAFE_ATTR"in Ht?j(yt(wi),Ht.ADD_URI_SAFE_ATTR,Mn):wi,nn="ADD_DATA_URI_TAGS"in Ht?j(yt(nr),Ht.ADD_DATA_URI_TAGS,Mn):nr,Zn="FORBID_CONTENTS"in Ht?j({},Ht.FORBID_CONTENTS,Mn):an,_r="FORBID_TAGS"in Ht?j({},Ht.FORBID_TAGS,Mn):{},Cr="FORBID_ATTR"in Ht?j({},Ht.FORBID_ATTR,Mn):{},rn="USE_PROFILES"in Ht&&Ht.USE_PROFILES,yr=Ht.ALLOW_ARIA_ATTR!==!1,qr=Ht.ALLOW_DATA_ATTR!==!1,Dt=Ht.ALLOW_UNKNOWN_PROTOCOLS||!1,Ar=Ht.SAFE_FOR_TEMPLATES||!1,Nr=Ht.WHOLE_DOCUMENT||!1,Ur=Ht.RETURN_DOM||!1,Ir=Ht.RETURN_DOM_FRAGMENT||!1,Qr=Ht.RETURN_TRUSTED_TYPE||!1,Zr=Ht.FORCE_BODY||!1,xa=Ht.SANITIZE_DOM!==!1,cr=Ht.SANITIZE_NAMED_PROPS||!1,na=Ht.KEEP_CONTENT!==!1,Ni=Ht.IN_PLACE||!1,fa=Ht.ALLOWED_URI_REGEXP||fa,Vr=Ht.NAMESPACE||Or,Ht.CUSTOM_ELEMENT_HANDLING&&On(Ht.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Nn.tagNameCheck=Ht.CUSTOM_ELEMENT_HANDLING.tagNameCheck),Ht.CUSTOM_ELEMENT_HANDLING&&On(Ht.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Nn.attributeNameCheck=Ht.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),Ht.CUSTOM_ELEMENT_HANDLING&&typeof Ht.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(Nn.allowCustomizedBuiltInElements=Ht.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Ar&&(qr=!1),Ir&&(Ur=!0),rn&&(Dr=j({},_(pe)),Sn=[],rn.html===!0&&(j(Dr,bt),j(Sn,_e)),rn.svg===!0&&(j(Dr,Ct),j(Sn,Ae),j(Sn,me)),rn.svgFilters===!0&&(j(Dr,$t),j(Sn,Ae),j(Sn,me)),rn.mathMl===!0&&(j(Dr,We),j(Sn,De),j(Sn,me))),Ht.ADD_TAGS&&(Dr===Tr&&(Dr=yt(Dr)),j(Dr,Ht.ADD_TAGS,Mn)),Ht.ADD_ATTR&&(Sn===oi&&(Sn=yt(Sn)),j(Sn,Ht.ADD_ATTR,Mn)),Ht.ADD_URI_SAFE_ATTR&&j(qt,Ht.ADD_URI_SAFE_ATTR,Mn),Ht.FORBID_CONTENTS&&(Zn===an&&(Zn=yt(Zn)),j(Zn,Ht.FORBID_CONTENTS,Mn)),na&&(Dr["#text"]=!0),Nr&&j(Dr,["html","head","body"]),Dr.table&&(j(Dr,["tbody"]),delete _r.tbody),P&&P(Ht),xn=Ht)},si=j({},["mi","mo","mn","ms","mtext"]),Oi=j({},["foreignobject","desc","title","annotation-xml"]),lr=j({},["title","style","font","a","script"]),Kr=j({},Ct);j(Kr,$t),j(Kr,be);var Hr=j({},We);j(Hr,xe);var Gr=function(Ht){var Ve=Dn(Ht);Ve&&Ve.tagName||(Ve={namespaceURI:Or,tagName:"template"});var pn=Zt(Ht.tagName),ar=Zt(Ve.tagName);return Ht.namespaceURI===xr?Ve.namespaceURI===Or?pn==="svg":Ve.namespaceURI===Kt?pn==="svg"&&(ar==="annotation-xml"||si[ar]):Boolean(Kr[pn]):Ht.namespaceURI===Kt?Ve.namespaceURI===Or?pn==="math":Ve.namespaceURI===xr?pn==="math"&&Oi[ar]:Boolean(Hr[pn]):Ht.namespaceURI===Or&&!(Ve.namespaceURI===xr&&!Oi[ar])&&!(Ve.namespaceURI===Kt&&!si[ar])&&!Hr[pn]&&(lr[pn]||!Kr[pn])},ni=function(Ht){vt(fe.removed,{element:Ht});try{Ht.parentNode.removeChild(Ht)}catch{try{Ht.outerHTML=Ke}catch{Ht.remove()}}},Ti=function(Ht,Ve){try{vt(fe.removed,{attribute:Ve.getAttributeNode(Ht),from:Ve})}catch{vt(fe.removed,{attribute:null,from:Ve})}if(Ve.removeAttribute(Ht),Ht==="is"&&!Sn[Ht])if(Ur||Ir)try{ni(Ve)}catch{}else try{Ve.setAttribute(Ht,"")}catch{}},Xr=function(Ht){var Ve,pn;if(Zr)Ht="<remove></remove>"+Ht;else{var ar=Gt(Ht,/^[\r\n\t ]+/);pn=ar&&ar[0]}Vn==="application/xhtml+xml"&&(Ht='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+Ht+"</body></html>");var ci=Me?Me.createHTML(Ht):Ht;if(Vr===Or)try{Ve=new An().parseFromString(ci,Vn)}catch{}if(!Ve||!Ve.documentElement){Ve=Ee.createDocument(Vr,"template",null);try{Ve.documentElement.innerHTML=li?"":ci}catch{}}var Er=Ve.body||Ve.documentElement;return Ht&&pn&&Er.insertBefore(en.createTextNode(pn),Er.childNodes[0]||null),Vr===Or?vr.call(Ve,Nr?"html":"body")[0]:Nr?Ve.documentElement:Er},wa=function(Ht){return mn.call(Ht.ownerDocument||Ht,Ht,Oe.SHOW_ELEMENT|Oe.SHOW_COMMENT|Oe.SHOW_TEXT,null,!1)},Ba=function(Ht){return Ht instanceof re&&(typeof Ht.nodeName!="string"||typeof Ht.textContent!="string"||typeof Ht.removeChild!="function"||!(Ht.attributes instanceof ge)||typeof Ht.removeAttribute!="function"||typeof Ht.setAttribute!="function"||typeof Ht.namespaceURI!="string"||typeof Ht.insertBefore!="function")},pr=function(Ht){return z(Fe)==="object"?Ht instanceof Fe:Ht&&z(Ht)==="object"&&typeof Ht.nodeType=="number"&&typeof Ht.nodeName=="string"},Jr=function(Ht,Ve,pn){Rn[Ht]&&at(Rn[Ht],function(ar){ar.call(fe,Ve,pn,xn)})},ti=function(Ht){var Ve;if(Jr("beforeSanitizeElements",Ht,null),Ba(Ht)||mt(/[\u0080-\uFFFF]/,Ht.nodeName))return ni(Ht),!0;var pn=Mn(Ht.nodeName);if(Jr("uponSanitizeElement",Ht,{tagName:pn,allowedTags:Dr}),Ht.hasChildNodes()&&!pr(Ht.firstElementChild)&&(!pr(Ht.content)||!pr(Ht.content.firstElementChild))&&mt(/<[/\w]/g,Ht.innerHTML)&&mt(/<[/\w]/g,Ht.textContent)||pn==="select"&&mt(/<template/i,Ht.innerHTML))return ni(Ht),!0;if(!Dr[pn]||_r[pn]){if(!_r[pn]&&Xa(pn)&&(Nn.tagNameCheck instanceof RegExp&&mt(Nn.tagNameCheck,pn)||Nn.tagNameCheck instanceof Function&&Nn.tagNameCheck(pn)))return!1;if(na&&!Zn[pn]){var ar=Dn(Ht)||Ht.parentNode,ci=Jn(Ht)||Ht.childNodes;if(ci&&ar)for(var Er=ci.length-1;Er>=0;--Er)ar.insertBefore(Ye(ci[Er],!0),fn(Ht))}return ni(Ht),!0}return Ht instanceof Te&&!Gr(Ht)?(ni(Ht),!0):pn!=="noscript"&&pn!=="noembed"||!mt(/<\/no(script|embed)/i,Ht.innerHTML)?(Ar&&Ht.nodeType===3&&(Ve=Ht.textContent,Ve=xt(Ve,Hn," "),Ve=xt(Ve,In," "),Ht.textContent!==Ve&&(vt(fe.removed,{element:Ht.cloneNode()}),Ht.textContent=Ve)),Jr("afterSanitizeElements",Ht,null),!1):(ni(Ht),!0)},No=function(Ht,Ve,pn){if(xa&&(Ve==="id"||Ve==="name")&&(pn in en||pn in ra))return!1;if(!(qr&&!Cr[Ve]&&mt(En,Ve))){if(!(yr&&mt(Fn,Ve))){if(!Sn[Ve]||Cr[Ve]){if(!(Xa(Ht)&&(Nn.tagNameCheck instanceof RegExp&&mt(Nn.tagNameCheck,Ht)||Nn.tagNameCheck instanceof Function&&Nn.tagNameCheck(Ht))&&(Nn.attributeNameCheck instanceof RegExp&&mt(Nn.attributeNameCheck,Ve)||Nn.attributeNameCheck instanceof Function&&Nn.attributeNameCheck(Ve))||Ve==="is"&&Nn.allowCustomizedBuiltInElements&&(Nn.tagNameCheck instanceof RegExp&&mt(Nn.tagNameCheck,pn)||Nn.tagNameCheck instanceof Function&&Nn.tagNameCheck(pn))))return!1}else if(!qt[Ve]){if(!mt(fa,xt(pn,jn,""))){if((Ve!=="src"&&Ve!=="xlink:href"&&Ve!=="href"||Ht==="script"||It(pn,"data:")!==0||!nn[Ht])&&!(Dt&&!mt(Pn,xt(pn,jn,"")))){if(pn)return!1}}}}}return!0},Xa=function(Ht){return Ht.indexOf("-")>0},ia=function(Ht){var Ve,pn,ar,ci;Jr("beforeSanitizeAttributes",Ht,null);var Er=Ht.attributes;if(Er){var ui={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Sn};for(ci=Er.length;ci--;){var La=Ve=Er[ci],hi=La.name,Ei=La.namespaceURI;if(pn=hi==="value"?Ve.value:wt(Ve.value),ar=Mn(hi),ui.attrName=ar,ui.attrValue=pn,ui.keepAttr=!0,ui.forceKeepAttr=void 0,Jr("uponSanitizeAttribute",Ht,ui),pn=ui.attrValue,!ui.forceKeepAttr&&(Ti(hi,Ht),ui.keepAttr))if(mt(/\/>/i,pn))Ti(hi,Ht);else{Ar&&(pn=xt(pn,Hn," "),pn=xt(pn,In," "));var Oo=Mn(Ht.nodeName);if(No(Oo,ar,pn)){if(!cr||ar!=="id"&&ar!=="name"||(Ti(hi,Ht),pn=ea+pn),Me&&z(Ie)==="object"&&typeof Ie.getAttributeType=="function"&&!Ei)switch(Ie.getAttributeType(Oo,ar)){case"TrustedHTML":pn=Me.createHTML(pn);break;case"TrustedScriptURL":pn=Me.createScriptURL(pn)}try{Ei?Ht.setAttributeNS(Ei,hi,pn):Ht.setAttribute(hi,pn),ut(fe.removed)}catch{}}}}Jr("afterSanitizeAttributes",Ht,null)}},ic=function Ht(Ve){var pn,ar=wa(Ve);for(Jr("beforeSanitizeShadowDOM",Ve,null);pn=ar.nextNode();)Jr("uponSanitizeShadowNode",pn,null),ti(pn)||(pn.content instanceof qe&&Ht(pn.content),ia(pn));Jr("afterSanitizeShadowDOM",Ve,null)};return fe.sanitize=function(Ht){var Ve,pn,ar,ci,Er,ui=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if((li=!Ht)&&(Ht="<!-->"),typeof Ht!="string"&&!pr(Ht)){if(typeof Ht.toString!="function")throw X("toString is not a function");if(typeof(Ht=Ht.toString())!="string")throw X("dirty is not a string, aborting")}if(!fe.isSupported){if(z(Mt.toStaticHTML)==="object"||typeof Mt.toStaticHTML=="function"){if(typeof Ht=="string")return Mt.toStaticHTML(Ht);if(pr(Ht))return Mt.toStaticHTML(Ht.outerHTML)}return Ht}if(Gn||bi(ui),fe.removed=[],typeof Ht=="string"&&(Ni=!1),Ni){if(Ht.nodeName){var La=Mn(Ht.nodeName);if(!Dr[La]||_r[La])throw X("root node is forbidden and cannot be sanitized in-place")}}else if(Ht instanceof Fe)(pn=(Ve=Xr("<!---->")).ownerDocument.importNode(Ht,!0)).nodeType===1&&pn.nodeName==="BODY"||pn.nodeName==="HTML"?Ve=pn:Ve.appendChild(pn);else{if(!Ur&&!Ar&&!Nr&&Ht.indexOf("<")===-1)return Me&&Qr?Me.createHTML(Ht):Ht;if(!(Ve=Xr(Ht)))return Ur?null:Qr?Ke:""}Ve&&Zr&&ni(Ve.firstChild);for(var hi=wa(Ni?Ht:Ve);ar=hi.nextNode();)ar.nodeType===3&&ar===ci||ti(ar)||(ar.content instanceof qe&&ic(ar.content),ia(ar),ci=ar);if(ci=null,Ni)return Ht;if(Ur){if(Ir)for(Er=At.call(Ve.ownerDocument);Ve.firstChild;)Er.appendChild(Ve.firstChild);else Er=Ve;return Sn.shadowroot&&(Er=Yt.call(Le,Er,!0)),Er}var Ei=Nr?Ve.outerHTML:Ve.innerHTML;return Nr&&Dr["!doctype"]&&Ve.ownerDocument&&Ve.ownerDocument.doctype&&Ve.ownerDocument.doctype.name&&mt(te,Ve.ownerDocument.doctype.name)&&(Ei="<!DOCTYPE "+Ve.ownerDocument.doctype.name+`>
`+Ei),Ar&&(Ei=xt(Ei,Hn," "),Ei=xt(Ei,In," ")),Me&&Qr?Me.createHTML(Ei):Ei},fe.setConfig=function(Ht){bi(Ht),Gn=!0},fe.clearConfig=function(){xn=null,Gn=!1},fe.isValidAttribute=function(Ht,Ve,pn){xn||bi({});var ar=Mn(Ht),ci=Mn(Ve);return No(ar,ci,pn)},fe.addHook=function(Ht,Ve){typeof Ve=="function"&&(Rn[Ht]=Rn[Ht]||[],vt(Rn[Ht],Ve))},fe.removeHook=function(Ht){if(Rn[Ht])return ut(Rn[Ht])},fe.removeHooks=function(Ht){Rn[Ht]&&(Rn[Ht]=[])},fe.removeAllHooks=function(){Rn={}},fe}()}()},8282:(M,z,p)=>{var b=p(2354);M.exports={Graph:b.Graph,json:p(8974),alg:p(2440),version:b.version}},2842:(M,z,p)=>{var b=p(9126);M.exports=function(u){var _,y={},E=[];function A(w){b.has(y,w)||(y[w]=!0,_.push(w),b.each(u.successors(w),A),b.each(u.predecessors(w),A))}return b.each(u.nodes(),function(w){_=[],A(w),_.length&&E.push(_)}),E}},3984:(M,z,p)=>{var b=p(9126);function u(_,y,E,A,w,F){b.has(A,y)||(A[y]=!0,E||F.push(y),b.each(w(y),function(B){u(_,B,E,A,w,F)}),E&&F.push(y))}M.exports=function(_,y,E){b.isArray(y)||(y=[y]);var A=(_.isDirected()?_.successors:_.neighbors).bind(_),w=[],F={};return b.each(y,function(B){if(!_.hasNode(B))throw new Error("Graph does not have node: "+B);u(_,B,E==="post",F,A,w)}),w}},4847:(M,z,p)=>{var b=p(3763),u=p(9126);M.exports=function(_,y,E){return u.transform(_.nodes(),function(A,w){A[w]=b(_,w,y,E)},{})}},3763:(M,z,p)=>{var b=p(9126),u=p(9675);M.exports=function(y,E,A,w){return function(F,B,P,G){var K,J,ht={},tt=new u,kt=function(at){var ut=at.v!==K?at.v:at.w,vt=ht[ut],Zt=P(at),Gt=J.distance+Zt;if(Zt<0)throw new Error("dijkstra does not allow negative edge weights. Bad edge: "+at+" Weight: "+Zt);Gt<vt.distance&&(vt.distance=Gt,vt.predecessor=K,tt.decrease(ut,Gt))};for(F.nodes().forEach(function(at){var ut=at===B?0:Number.POSITIVE_INFINITY;ht[at]={distance:ut},tt.add(at,ut)});tt.size()>0&&(K=tt.removeMin(),(J=ht[K]).distance!==Number.POSITIVE_INFINITY);)G(K).forEach(kt);return ht}(y,String(E),A||_,w||function(F){return y.outEdges(F)})};var _=b.constant(1)},9096:(M,z,p)=>{var b=p(9126),u=p(5023);M.exports=function(_){return b.filter(u(_),function(y){return y.length>1||y.length===1&&_.hasEdge(y[0],y[0])})}},8924:(M,z,p)=>{var b=p(9126);M.exports=function(_,y,E){return function(A,w,F){var B={},P=A.nodes();return P.forEach(function(G){B[G]={},B[G][G]={distance:0},P.forEach(function(K){G!==K&&(B[G][K]={distance:Number.POSITIVE_INFINITY})}),F(G).forEach(function(K){var J=K.v===G?K.w:K.v,ht=w(K);B[G][J]={distance:ht,predecessor:G}})}),P.forEach(function(G){var K=B[G];P.forEach(function(J){var ht=B[J];P.forEach(function(tt){var kt=ht[G],at=K[tt],ut=ht[tt],vt=kt.distance+at.distance;vt<ut.distance&&(ut.distance=vt,ut.predecessor=at.predecessor)})})}),B}(_,y||u,E||function(A){return _.outEdges(A)})};var u=b.constant(1)},2440:(M,z,p)=>{M.exports={components:p(2842),dijkstra:p(3763),dijkstraAll:p(4847),findCycles:p(9096),floydWarshall:p(8924),isAcyclic:p(2707),postorder:p(8828),preorder:p(2648),prim:p(514),tarjan:p(5023),topsort:p(2166)}},2707:(M,z,p)=>{var b=p(2166);M.exports=function(u){try{b(u)}catch(_){if(_ instanceof b.CycleException)return!1;throw _}return!0}},8828:(M,z,p)=>{var b=p(3984);M.exports=function(u,_){return b(u,_,"post")}},2648:(M,z,p)=>{var b=p(3984);M.exports=function(u,_){return b(u,_,"pre")}},514:(M,z,p)=>{var b=p(9126),u=p(771),_=p(9675);M.exports=function(y,E){var A,w=new u,F={},B=new _;function P(K){var J=K.v===A?K.w:K.v,ht=B.priority(J);if(ht!==void 0){var tt=E(K);tt<ht&&(F[J]=A,B.decrease(J,tt))}}if(y.nodeCount()===0)return w;b.each(y.nodes(),function(K){B.add(K,Number.POSITIVE_INFINITY),w.setNode(K)}),B.decrease(y.nodes()[0],0);for(var G=!1;B.size()>0;){if(A=B.removeMin(),b.has(F,A))w.setEdge(A,F[A]);else{if(G)throw new Error("Input graph is not connected: "+y);G=!0}y.nodeEdges(A).forEach(P)}return w}},5023:(M,z,p)=>{var b=p(9126);M.exports=function(u){var _=0,y=[],E={},A=[];function w(F){var B=E[F]={onStack:!0,lowlink:_,index:_++};if(y.push(F),u.successors(F).forEach(function(K){b.has(E,K)?E[K].onStack&&(B.lowlink=Math.min(B.lowlink,E[K].index)):(w(K),B.lowlink=Math.min(B.lowlink,E[K].lowlink))}),B.lowlink===B.index){var P,G=[];do P=y.pop(),E[P].onStack=!1,G.push(P);while(F!==P);A.push(G)}}return u.nodes().forEach(function(F){b.has(E,F)||w(F)}),A}},2166:(M,z,p)=>{var b=p(9126);function u(y){var E={},A={},w=[];if(b.each(y.sinks(),function F(B){if(b.has(A,B))throw new _;b.has(E,B)||(A[B]=!0,E[B]=!0,b.each(y.predecessors(B),F),delete A[B],w.push(B))}),b.size(E)!==y.nodeCount())throw new _;return w}function _(){}M.exports=u,u.CycleException=_,_.prototype=new Error},9675:(M,z,p)=>{var b=p(9126);function u(){this._arr=[],this._keyIndices={}}M.exports=u,u.prototype.size=function(){return this._arr.length},u.prototype.keys=function(){return this._arr.map(function(_){return _.key})},u.prototype.has=function(_){return b.has(this._keyIndices,_)},u.prototype.priority=function(_){var y=this._keyIndices[_];if(y!==void 0)return this._arr[y].priority},u.prototype.min=function(){if(this.size()===0)throw new Error("Queue underflow");return this._arr[0].key},u.prototype.add=function(_,y){var E=this._keyIndices;if(_=String(_),!b.has(E,_)){var A=this._arr,w=A.length;return E[_]=w,A.push({key:_,priority:y}),this._decrease(w),!0}return!1},u.prototype.removeMin=function(){this._swap(0,this._arr.length-1);var _=this._arr.pop();return delete this._keyIndices[_.key],this._heapify(0),_.key},u.prototype.decrease=function(_,y){var E=this._keyIndices[_];if(y>this._arr[E].priority)throw new Error("New priority is greater than current priority. Key: "+_+" Old: "+this._arr[E].priority+" New: "+y);this._arr[E].priority=y,this._decrease(E)},u.prototype._heapify=function(_){var y=this._arr,E=2*_,A=E+1,w=_;E<y.length&&(w=y[E].priority<y[w].priority?E:w,A<y.length&&(w=y[A].priority<y[w].priority?A:w),w!==_&&(this._swap(_,w),this._heapify(w)))},u.prototype._decrease=function(_){for(var y,E=this._arr,A=E[_].priority;_!==0&&!(E[y=_>>1].priority<A);)this._swap(_,y),_=y},u.prototype._swap=function(_,y){var E=this._arr,A=this._keyIndices,w=E[_],F=E[y];E[_]=F,E[y]=w,A[F.key]=_,A[w.key]=y}},771:(M,z,p)=>{var b=p(9126);M.exports=_;var u="\0";function _(B){this._isDirected=!b.has(B,"directed")||B.directed,this._isMultigraph=!!b.has(B,"multigraph")&&B.multigraph,this._isCompound=!!b.has(B,"compound")&&B.compound,this._label=void 0,this._defaultNodeLabelFn=b.constant(void 0),this._defaultEdgeLabelFn=b.constant(void 0),this._nodes={},this._isCompound&&(this._parent={},this._children={},this._children["\0"]={}),this._in={},this._preds={},this._out={},this._sucs={},this._edgeObjs={},this._edgeLabels={}}function y(B,P){B[P]?B[P]++:B[P]=1}function E(B,P){--B[P]||delete B[P]}function A(B,P,G,K){var J=""+P,ht=""+G;if(!B&&J>ht){var tt=J;J=ht,ht=tt}return J+""+ht+""+(b.isUndefined(K)?"\0":K)}function w(B,P,G,K){var J=""+P,ht=""+G;if(!B&&J>ht){var tt=J;J=ht,ht=tt}var kt={v:J,w:ht};return K&&(kt.name=K),kt}function F(B,P){return A(B,P.v,P.w,P.name)}_.prototype._nodeCount=0,_.prototype._edgeCount=0,_.prototype.isDirected=function(){return this._isDirected},_.prototype.isMultigraph=function(){return this._isMultigraph},_.prototype.isCompound=function(){return this._isCompound},_.prototype.setGraph=function(B){return this._label=B,this},_.prototype.graph=function(){return this._label},_.prototype.setDefaultNodeLabel=function(B){return b.isFunction(B)||(B=b.constant(B)),this._defaultNodeLabelFn=B,this},_.prototype.nodeCount=function(){return this._nodeCount},_.prototype.nodes=function(){return b.keys(this._nodes)},_.prototype.sources=function(){var B=this;return b.filter(this.nodes(),function(P){return b.isEmpty(B._in[P])})},_.prototype.sinks=function(){var B=this;return b.filter(this.nodes(),function(P){return b.isEmpty(B._out[P])})},_.prototype.setNodes=function(B,P){var G=arguments,K=this;return b.each(B,function(J){G.length>1?K.setNode(J,P):K.setNode(J)}),this},_.prototype.setNode=function(B,P){return b.has(this._nodes,B)?(arguments.length>1&&(this._nodes[B]=P),this):(this._nodes[B]=arguments.length>1?P:this._defaultNodeLabelFn(B),this._isCompound&&(this._parent[B]=u,this._children[B]={},this._children["\0"][B]=!0),this._in[B]={},this._preds[B]={},this._out[B]={},this._sucs[B]={},++this._nodeCount,this)},_.prototype.node=function(B){return this._nodes[B]},_.prototype.hasNode=function(B){return b.has(this._nodes,B)},_.prototype.removeNode=function(B){var P=this;if(b.has(this._nodes,B)){var G=function(K){P.removeEdge(P._edgeObjs[K])};delete this._nodes[B],this._isCompound&&(this._removeFromParentsChildList(B),delete this._parent[B],b.each(this.children(B),function(K){P.setParent(K)}),delete this._children[B]),b.each(b.keys(this._in[B]),G),delete this._in[B],delete this._preds[B],b.each(b.keys(this._out[B]),G),delete this._out[B],delete this._sucs[B],--this._nodeCount}return this},_.prototype.setParent=function(B,P){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(b.isUndefined(P))P=u;else{for(var G=P+="";!b.isUndefined(G);G=this.parent(G))if(G===B)throw new Error("Setting "+P+" as parent of "+B+" would create a cycle");this.setNode(P)}return this.setNode(B),this._removeFromParentsChildList(B),this._parent[B]=P,this._children[P][B]=!0,this},_.prototype._removeFromParentsChildList=function(B){delete this._children[this._parent[B]][B]},_.prototype.parent=function(B){if(this._isCompound){var P=this._parent[B];if(P!==u)return P}},_.prototype.children=function(B){if(b.isUndefined(B)&&(B=u),this._isCompound){var P=this._children[B];if(P)return b.keys(P)}else{if(B===u)return this.nodes();if(this.hasNode(B))return[]}},_.prototype.predecessors=function(B){var P=this._preds[B];if(P)return b.keys(P)},_.prototype.successors=function(B){var P=this._sucs[B];if(P)return b.keys(P)},_.prototype.neighbors=function(B){var P=this.predecessors(B);if(P)return b.union(P,this.successors(B))},_.prototype.isLeaf=function(B){return(this.isDirected()?this.successors(B):this.neighbors(B)).length===0},_.prototype.filterNodes=function(B){var P=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});P.setGraph(this.graph());var G=this;b.each(this._nodes,function(ht,tt){B(tt)&&P.setNode(tt,ht)}),b.each(this._edgeObjs,function(ht){P.hasNode(ht.v)&&P.hasNode(ht.w)&&P.setEdge(ht,G.edge(ht))});var K={};function J(ht){var tt=G.parent(ht);return tt===void 0||P.hasNode(tt)?(K[ht]=tt,tt):tt in K?K[tt]:J(tt)}return this._isCompound&&b.each(P.nodes(),function(ht){P.setParent(ht,J(ht))}),P},_.prototype.setDefaultEdgeLabel=function(B){return b.isFunction(B)||(B=b.constant(B)),this._defaultEdgeLabelFn=B,this},_.prototype.edgeCount=function(){return this._edgeCount},_.prototype.edges=function(){return b.values(this._edgeObjs)},_.prototype.setPath=function(B,P){var G=this,K=arguments;return b.reduce(B,function(J,ht){return K.length>1?G.setEdge(J,ht,P):G.setEdge(J,ht),ht}),this},_.prototype.setEdge=function(){var B,P,G,K,J=!1,ht=arguments[0];typeof ht=="object"&&ht!==null&&"v"in ht?(B=ht.v,P=ht.w,G=ht.name,arguments.length===2&&(K=arguments[1],J=!0)):(B=ht,P=arguments[1],G=arguments[3],arguments.length>2&&(K=arguments[2],J=!0)),B=""+B,P=""+P,b.isUndefined(G)||(G=""+G);var tt=A(this._isDirected,B,P,G);if(b.has(this._edgeLabels,tt))return J&&(this._edgeLabels[tt]=K),this;if(!b.isUndefined(G)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(B),this.setNode(P),this._edgeLabels[tt]=J?K:this._defaultEdgeLabelFn(B,P,G);var kt=w(this._isDirected,B,P,G);return B=kt.v,P=kt.w,Object.freeze(kt),this._edgeObjs[tt]=kt,y(this._preds[P],B),y(this._sucs[B],P),this._in[P][tt]=kt,this._out[B][tt]=kt,this._edgeCount++,this},_.prototype.edge=function(B,P,G){var K=arguments.length===1?F(this._isDirected,arguments[0]):A(this._isDirected,B,P,G);return this._edgeLabels[K]},_.prototype.hasEdge=function(B,P,G){var K=arguments.length===1?F(this._isDirected,arguments[0]):A(this._isDirected,B,P,G);return b.has(this._edgeLabels,K)},_.prototype.removeEdge=function(B,P,G){var K=arguments.length===1?F(this._isDirected,arguments[0]):A(this._isDirected,B,P,G),J=this._edgeObjs[K];return J&&(B=J.v,P=J.w,delete this._edgeLabels[K],delete this._edgeObjs[K],E(this._preds[P],B),E(this._sucs[B],P),delete this._in[P][K],delete this._out[B][K],this._edgeCount--),this},_.prototype.inEdges=function(B,P){var G=this._in[B];if(G){var K=b.values(G);return P?b.filter(K,function(J){return J.v===P}):K}},_.prototype.outEdges=function(B,P){var G=this._out[B];if(G){var K=b.values(G);return P?b.filter(K,function(J){return J.w===P}):K}},_.prototype.nodeEdges=function(B,P){var G=this.inEdges(B,P);if(G)return G.concat(this.outEdges(B,P))}},2354:(M,z,p)=>{M.exports={Graph:p(771),version:p(9631)}},8974:(M,z,p)=>{var b=p(9126),u=p(771);function _(E){return b.map(E.nodes(),function(A){var w=E.node(A),F=E.parent(A),B={v:A};return b.isUndefined(w)||(B.value=w),b.isUndefined(F)||(B.parent=F),B})}function y(E){return b.map(E.edges(),function(A){var w=E.edge(A),F={v:A.v,w:A.w};return b.isUndefined(A.name)||(F.name=A.name),b.isUndefined(w)||(F.value=w),F})}M.exports={write:function(E){var A={options:{directed:E.isDirected(),multigraph:E.isMultigraph(),compound:E.isCompound()},nodes:_(E),edges:y(E)};return b.isUndefined(E.graph())||(A.value=b.clone(E.graph())),A},read:function(E){var A=new u(E.options).setGraph(E.value);return b.each(E.nodes,function(w){A.setNode(w.v,w.value),w.parent&&A.setParent(w.v,w.parent)}),b.each(E.edges,function(w){A.setEdge({v:w.v,w:w.w,name:w.name},w.value)}),A}}},9126:(M,z,p)=>{var b;try{b={clone:p(6678),constant:p(5703),each:p(6073),filter:p(3105),has:p(8721),isArray:p(1469),isEmpty:p(1609),isFunction:p(3560),isUndefined:p(2353),keys:p(3674),map:p(5161),reduce:p(4061),size:p(4238),transform:p(8718),union:p(3386),values:p(2628)}}catch{}b||(b=window._),M.exports=b},9631:M=>{M.exports="2.1.8"},8552:(M,z,p)=>{var b=p(852)(p(5639),"DataView");M.exports=b},1989:(M,z,p)=>{var b=p(1789),u=p(401),_=p(7667),y=p(1327),E=p(1866);function A(w){var F=-1,B=w==null?0:w.length;for(this.clear();++F<B;){var P=w[F];this.set(P[0],P[1])}}A.prototype.clear=b,A.prototype.delete=u,A.prototype.get=_,A.prototype.has=y,A.prototype.set=E,M.exports=A},8407:(M,z,p)=>{var b=p(7040),u=p(4125),_=p(2117),y=p(7518),E=p(4705);function A(w){var F=-1,B=w==null?0:w.length;for(this.clear();++F<B;){var P=w[F];this.set(P[0],P[1])}}A.prototype.clear=b,A.prototype.delete=u,A.prototype.get=_,A.prototype.has=y,A.prototype.set=E,M.exports=A},7071:(M,z,p)=>{var b=p(852)(p(5639),"Map");M.exports=b},3369:(M,z,p)=>{var b=p(4785),u=p(1285),_=p(6e3),y=p(9916),E=p(5265);function A(w){var F=-1,B=w==null?0:w.length;for(this.clear();++F<B;){var P=w[F];this.set(P[0],P[1])}}A.prototype.clear=b,A.prototype.delete=u,A.prototype.get=_,A.prototype.has=y,A.prototype.set=E,M.exports=A},3818:(M,z,p)=>{var b=p(852)(p(5639),"Promise");M.exports=b},8525:(M,z,p)=>{var b=p(852)(p(5639),"Set");M.exports=b},8668:(M,z,p)=>{var b=p(3369),u=p(619),_=p(2385);function y(E){var A=-1,w=E==null?0:E.length;for(this.__data__=new b;++A<w;)this.add(E[A])}y.prototype.add=y.prototype.push=u,y.prototype.has=_,M.exports=y},6384:(M,z,p)=>{var b=p(8407),u=p(7465),_=p(3779),y=p(7599),E=p(4758),A=p(4309);function w(F){var B=this.__data__=new b(F);this.size=B.size}w.prototype.clear=u,w.prototype.delete=_,w.prototype.get=y,w.prototype.has=E,w.prototype.set=A,M.exports=w},2705:(M,z,p)=>{var b=p(5639).Symbol;M.exports=b},1149:(M,z,p)=>{var b=p(5639).Uint8Array;M.exports=b},577:(M,z,p)=>{var b=p(852)(p(5639),"WeakMap");M.exports=b},6874:M=>{M.exports=function(z,p,b){switch(b.length){case 0:return z.call(p);case 1:return z.call(p,b[0]);case 2:return z.call(p,b[0],b[1]);case 3:return z.call(p,b[0],b[1],b[2])}return z.apply(p,b)}},7412:M=>{M.exports=function(z,p){for(var b=-1,u=z==null?0:z.length;++b<u&&p(z[b],b,z)!==!1;);return z}},4963:M=>{M.exports=function(z,p){for(var b=-1,u=z==null?0:z.length,_=0,y=[];++b<u;){var E=z[b];p(E,b,z)&&(y[_++]=E)}return y}},7443:(M,z,p)=>{var b=p(2118);M.exports=function(u,_){return!(u==null||!u.length)&&b(u,_,0)>-1}},1196:M=>{M.exports=function(z,p,b){for(var u=-1,_=z==null?0:z.length;++u<_;)if(b(p,z[u]))return!0;return!1}},4636:(M,z,p)=>{var b=p(2545),u=p(5694),_=p(1469),y=p(4144),E=p(5776),A=p(6719),w=Object.prototype.hasOwnProperty;M.exports=function(F,B){var P=_(F),G=!P&&u(F),K=!P&&!G&&y(F),J=!P&&!G&&!K&&A(F),ht=P||G||K||J,tt=ht?b(F.length,String):[],kt=tt.length;for(var at in F)!B&&!w.call(F,at)||ht&&(at=="length"||K&&(at=="offset"||at=="parent")||J&&(at=="buffer"||at=="byteLength"||at=="byteOffset")||E(at,kt))||tt.push(at);return tt}},9932:M=>{M.exports=function(z,p){for(var b=-1,u=z==null?0:z.length,_=Array(u);++b<u;)_[b]=p(z[b],b,z);return _}},2488:M=>{M.exports=function(z,p){for(var b=-1,u=p.length,_=z.length;++b<u;)z[_+b]=p[b];return z}},2663:M=>{M.exports=function(z,p,b,u){var _=-1,y=z==null?0:z.length;for(u&&y&&(b=z[++_]);++_<y;)b=p(b,z[_],_,z);return b}},2908:M=>{M.exports=function(z,p){for(var b=-1,u=z==null?0:z.length;++b<u;)if(p(z[b],b,z))return!0;return!1}},8983:(M,z,p)=>{var b=p(371)("length");M.exports=b},6556:(M,z,p)=>{var b=p(9465),u=p(7813);M.exports=function(_,y,E){(E!==void 0&&!u(_[y],E)||E===void 0&&!(y in _))&&b(_,y,E)}},4865:(M,z,p)=>{var b=p(9465),u=p(7813),_=Object.prototype.hasOwnProperty;M.exports=function(y,E,A){var w=y[E];_.call(y,E)&&u(w,A)&&(A!==void 0||E in y)||b(y,E,A)}},8470:(M,z,p)=>{var b=p(7813);M.exports=function(u,_){for(var y=u.length;y--;)if(b(u[y][0],_))return y;return-1}},4037:(M,z,p)=>{var b=p(8363),u=p(3674);M.exports=function(_,y){return _&&b(y,u(y),_)}},3886:(M,z,p)=>{var b=p(8363),u=p(1704);M.exports=function(_,y){return _&&b(y,u(y),_)}},9465:(M,z,p)=>{var b=p(8777);M.exports=function(u,_,y){_=="__proto__"&&b?b(u,_,{configurable:!0,enumerable:!0,value:y,writable:!0}):u[_]=y}},5990:(M,z,p)=>{var b=p(6384),u=p(7412),_=p(4865),y=p(4037),E=p(3886),A=p(4626),w=p(278),F=p(8805),B=p(1911),P=p(8234),G=p(6904),K=p(4160),J=p(3824),ht=p(9148),tt=p(8517),kt=p(1469),at=p(4144),ut=p(6688),vt=p(3218),Zt=p(2928),Gt=p(3674),xt=p(1704),It="[object Arguments]",wt="[object Function]",mt="[object Object]",X={};X[It]=X["[object Array]"]=X["[object ArrayBuffer]"]=X["[object DataView]"]=X["[object Boolean]"]=X["[object Date]"]=X["[object Float32Array]"]=X["[object Float64Array]"]=X["[object Int8Array]"]=X["[object Int16Array]"]=X["[object Int32Array]"]=X["[object Map]"]=X["[object Number]"]=X[mt]=X["[object RegExp]"]=X["[object Set]"]=X["[object String]"]=X["[object Symbol]"]=X["[object Uint8Array]"]=X["[object Uint8ClampedArray]"]=X["[object Uint16Array]"]=X["[object Uint32Array]"]=!0,X["[object Error]"]=X[wt]=X["[object WeakMap]"]=!1,M.exports=function ot(j,yt,Y,bt,Ct,$t){var be,We=1&yt,xe=2&yt,pe=4&yt;if(Y&&(be=Ct?Y(j,bt,Ct,$t):Y(j)),be!==void 0)return be;if(!vt(j))return j;var _e=kt(j);if(_e){if(be=J(j),!We)return w(j,be)}else{var Ae=K(j),De=Ae==wt||Ae=="[object GeneratorFunction]";if(at(j))return A(j,We);if(Ae==mt||Ae==It||De&&!Ct){if(be=xe||De?{}:tt(j),!We)return xe?B(j,E(be,j)):F(j,y(be,j))}else{if(!X[Ae])return Ct?j:{};be=ht(j,Ae,We)}}$t||($t=new b);var me=$t.get(j);if(me)return me;$t.set(j,be),Zt(j)?j.forEach(function(de){be.add(ot(de,yt,Y,de,j,$t))}):ut(j)&&j.forEach(function(de,Qe){be.set(Qe,ot(de,yt,Y,Qe,j,$t))});var wn=_e?void 0:(pe?xe?G:P:xe?xt:Gt)(j);return u(wn||j,function(de,Qe){wn&&(de=j[Qe=de]),_(be,Qe,ot(de,yt,Y,Qe,j,$t))}),be}},3118:(M,z,p)=>{var b=p(3218),u=Object.create,_=function(){function y(){}return function(E){if(!b(E))return{};if(u)return u(E);y.prototype=E;var A=new y;return y.prototype=void 0,A}}();M.exports=_},9881:(M,z,p)=>{var b=p(7816),u=p(9291)(b);M.exports=u},6029:(M,z,p)=>{var b=p(3448);M.exports=function(u,_,y){for(var E=-1,A=u.length;++E<A;){var w=u[E],F=_(w);if(F!=null&&(B===void 0?F==F&&!b(F):y(F,B)))var B=F,P=w}return P}},760:(M,z,p)=>{var b=p(9881);M.exports=function(u,_){var y=[];return b(u,function(E,A,w){_(E,A,w)&&y.push(E)}),y}},1848:M=>{M.exports=function(z,p,b,u){for(var _=z.length,y=b+(u?1:-1);u?y--:++y<_;)if(p(z[y],y,z))return y;return-1}},1078:(M,z,p)=>{var b=p(2488),u=p(7285);M.exports=function _(y,E,A,w,F){var B=-1,P=y.length;for(A||(A=u),F||(F=[]);++B<P;){var G=y[B];E>0&&A(G)?E>1?_(G,E-1,A,w,F):b(F,G):w||(F[F.length]=G)}return F}},8483:(M,z,p)=>{var b=p(5063)();M.exports=b},7816:(M,z,p)=>{var b=p(8483),u=p(3674);M.exports=function(_,y){return _&&b(_,y,u)}},7786:(M,z,p)=>{var b=p(1811),u=p(327);M.exports=function(_,y){for(var E=0,A=(y=b(y,_)).length;_!=null&&E<A;)_=_[u(y[E++])];return E&&E==A?_:void 0}},8866:(M,z,p)=>{var b=p(2488),u=p(1469);M.exports=function(_,y,E){var A=y(_);return u(_)?A:b(A,E(_))}},4239:(M,z,p)=>{var b=p(2705),u=p(9607),_=p(2333),y=b?b.toStringTag:void 0;M.exports=function(E){return E==null?E===void 0?"[object Undefined]":"[object Null]":y&&y in Object(E)?u(E):_(E)}},3325:M=>{M.exports=function(z,p){return z>p}},8565:M=>{var z=Object.prototype.hasOwnProperty;M.exports=function(p,b){return p!=null&&z.call(p,b)}},13:M=>{M.exports=function(z,p){return z!=null&&p in Object(z)}},2118:(M,z,p)=>{var b=p(1848),u=p(2722),_=p(2351);M.exports=function(y,E,A){return E==E?_(y,E,A):b(y,u,A)}},9454:(M,z,p)=>{var b=p(4239),u=p(7005);M.exports=function(_){return u(_)&&b(_)=="[object Arguments]"}},939:(M,z,p)=>{var b=p(2492),u=p(7005);M.exports=function _(y,E,A,w,F){return y===E||(y==null||E==null||!u(y)&&!u(E)?y!=y&&E!=E:b(y,E,A,w,_,F))}},2492:(M,z,p)=>{var b=p(6384),u=p(7114),_=p(8351),y=p(6096),E=p(4160),A=p(1469),w=p(4144),F=p(6719),B="[object Arguments]",P="[object Array]",G="[object Object]",K=Object.prototype.hasOwnProperty;M.exports=function(J,ht,tt,kt,at,ut){var vt=A(J),Zt=A(ht),Gt=vt?P:E(J),xt=Zt?P:E(ht),It=(Gt=Gt==B?G:Gt)==G,wt=(xt=xt==B?G:xt)==G,mt=Gt==xt;if(mt&&w(J)){if(!w(ht))return!1;vt=!0,It=!1}if(mt&&!It)return ut||(ut=new b),vt||F(J)?u(J,ht,tt,kt,at,ut):_(J,ht,Gt,tt,kt,at,ut);if(!(1&tt)){var X=It&&K.call(J,"__wrapped__"),ot=wt&&K.call(ht,"__wrapped__");if(X||ot){var j=X?J.value():J,yt=ot?ht.value():ht;return ut||(ut=new b),at(j,yt,tt,kt,ut)}}return!!mt&&(ut||(ut=new b),y(J,ht,tt,kt,at,ut))}},5588:(M,z,p)=>{var b=p(4160),u=p(7005);M.exports=function(_){return u(_)&&b(_)=="[object Map]"}},2958:(M,z,p)=>{var b=p(6384),u=p(939);M.exports=function(_,y,E,A){var w=E.length,F=w,B=!A;if(_==null)return!F;for(_=Object(_);w--;){var P=E[w];if(B&&P[2]?P[1]!==_[P[0]]:!(P[0]in _))return!1}for(;++w<F;){var G=(P=E[w])[0],K=_[G],J=P[1];if(B&&P[2]){if(K===void 0&&!(G in _))return!1}else{var ht=new b;if(A)var tt=A(K,J,G,_,y,ht);if(!(tt===void 0?u(J,K,3,A,ht):tt))return!1}}return!0}},2722:M=>{M.exports=function(z){return z!=z}},8458:(M,z,p)=>{var b=p(3560),u=p(5346),_=p(3218),y=p(346),E=/^\[object .+?Constructor\]$/,A=Function.prototype,w=Object.prototype,F=A.toString,B=w.hasOwnProperty,P=RegExp("^"+F.call(B).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");M.exports=function(G){return!(!_(G)||u(G))&&(b(G)?P:E).test(y(G))}},9221:(M,z,p)=>{var b=p(4160),u=p(7005);M.exports=function(_){return u(_)&&b(_)=="[object Set]"}},8749:(M,z,p)=>{var b=p(4239),u=p(1780),_=p(7005),y={};y["[object Float32Array]"]=y["[object Float64Array]"]=y["[object Int8Array]"]=y["[object Int16Array]"]=y["[object Int32Array]"]=y["[object Uint8Array]"]=y["[object Uint8ClampedArray]"]=y["[object Uint16Array]"]=y["[object Uint32Array]"]=!0,y["[object Arguments]"]=y["[object Array]"]=y["[object ArrayBuffer]"]=y["[object Boolean]"]=y["[object DataView]"]=y["[object Date]"]=y["[object Error]"]=y["[object Function]"]=y["[object Map]"]=y["[object Number]"]=y["[object Object]"]=y["[object RegExp]"]=y["[object Set]"]=y["[object String]"]=y["[object WeakMap]"]=!1,M.exports=function(E){return _(E)&&u(E.length)&&!!y[b(E)]}},7206:(M,z,p)=>{var b=p(1573),u=p(6432),_=p(6557),y=p(1469),E=p(9601);M.exports=function(A){return typeof A=="function"?A:A==null?_:typeof A=="object"?y(A)?u(A[0],A[1]):b(A):E(A)}},280:(M,z,p)=>{var b=p(5726),u=p(6916),_=Object.prototype.hasOwnProperty;M.exports=function(y){if(!b(y))return u(y);var E=[];for(var A in Object(y))_.call(y,A)&&A!="constructor"&&E.push(A);return E}},313:(M,z,p)=>{var b=p(3218),u=p(5726),_=p(3498),y=Object.prototype.hasOwnProperty;M.exports=function(E){if(!b(E))return _(E);var A=u(E),w=[];for(var F in E)(F!="constructor"||!A&&y.call(E,F))&&w.push(F);return w}},433:M=>{M.exports=function(z,p){return z<p}},9199:(M,z,p)=>{var b=p(9881),u=p(8612);M.exports=function(_,y){var E=-1,A=u(_)?Array(_.length):[];return b(_,function(w,F,B){A[++E]=y(w,F,B)}),A}},1573:(M,z,p)=>{var b=p(2958),u=p(1499),_=p(2634);M.exports=function(y){var E=u(y);return E.length==1&&E[0][2]?_(E[0][0],E[0][1]):function(A){return A===y||b(A,y,E)}}},6432:(M,z,p)=>{var b=p(939),u=p(7361),_=p(9095),y=p(5403),E=p(9162),A=p(2634),w=p(327);M.exports=function(F,B){return y(F)&&E(B)?A(w(F),B):function(P){var G=u(P,F);return G===void 0&&G===B?_(P,F):b(B,G,3)}}},2980:(M,z,p)=>{var b=p(6384),u=p(6556),_=p(8483),y=p(9783),E=p(3218),A=p(1704),w=p(6390);M.exports=function F(B,P,G,K,J){B!==P&&_(P,function(ht,tt){if(J||(J=new b),E(ht))y(B,P,tt,G,F,K,J);else{var kt=K?K(w(B,tt),ht,tt+"",B,P,J):void 0;kt===void 0&&(kt=ht),u(B,tt,kt)}},A)}},9783:(M,z,p)=>{var b=p(6556),u=p(4626),_=p(7133),y=p(278),E=p(8517),A=p(5694),w=p(1469),F=p(9246),B=p(4144),P=p(3560),G=p(3218),K=p(8630),J=p(6719),ht=p(6390),tt=p(3678);M.exports=function(kt,at,ut,vt,Zt,Gt,xt){var It=ht(kt,ut),wt=ht(at,ut),mt=xt.get(wt);if(mt)b(kt,ut,mt);else{var X=Gt?Gt(It,wt,ut+"",kt,at,xt):void 0,ot=X===void 0;if(ot){var j=w(wt),yt=!j&&B(wt),Y=!j&&!yt&&J(wt);X=wt,j||yt||Y?w(It)?X=It:F(It)?X=y(It):yt?(ot=!1,X=u(wt,!0)):Y?(ot=!1,X=_(wt,!0)):X=[]:K(wt)||A(wt)?(X=It,A(It)?X=tt(It):G(It)&&!P(It)||(X=E(wt))):ot=!1}ot&&(xt.set(wt,X),Zt(X,wt,vt,Gt,xt),xt.delete(wt)),b(kt,ut,X)}}},9556:(M,z,p)=>{var b=p(9932),u=p(7786),_=p(7206),y=p(9199),E=p(1131),A=p(1717),w=p(5022),F=p(6557),B=p(1469);M.exports=function(P,G,K){G=G.length?b(G,function(tt){return B(tt)?function(kt){return u(kt,tt.length===1?tt[0]:tt)}:tt}):[F];var J=-1;G=b(G,A(_));var ht=y(P,function(tt,kt,at){return{criteria:b(G,function(ut){return ut(tt)}),index:++J,value:tt}});return E(ht,function(tt,kt){return w(tt,kt,K)})}},5970:(M,z,p)=>{var b=p(3012),u=p(9095);M.exports=function(_,y){return b(_,y,function(E,A){return u(_,A)})}},3012:(M,z,p)=>{var b=p(7786),u=p(611),_=p(1811);M.exports=function(y,E,A){for(var w=-1,F=E.length,B={};++w<F;){var P=E[w],G=b(y,P);A(G,P)&&u(B,_(P,y),G)}return B}},371:M=>{M.exports=function(z){return function(p){return p==null?void 0:p[z]}}},9152:(M,z,p)=>{var b=p(7786);M.exports=function(u){return function(_){return b(_,u)}}},98:M=>{var z=Math.ceil,p=Math.max;M.exports=function(b,u,_,y){for(var E=-1,A=p(z((u-b)/(_||1)),0),w=Array(A);A--;)w[y?A:++E]=b,b+=_;return w}},107:M=>{M.exports=function(z,p,b,u,_){return _(z,function(y,E,A){b=u?(u=!1,y):p(b,y,E,A)}),b}},5976:(M,z,p)=>{var b=p(6557),u=p(5357),_=p(61);M.exports=function(y,E){return _(u(y,E,b),y+"")}},611:(M,z,p)=>{var b=p(4865),u=p(1811),_=p(5776),y=p(3218),E=p(327);M.exports=function(A,w,F,B){if(!y(A))return A;for(var P=-1,G=(w=u(w,A)).length,K=G-1,J=A;J!=null&&++P<G;){var ht=E(w[P]),tt=F;if(ht==="__proto__"||ht==="constructor"||ht==="prototype")return A;if(P!=K){var kt=J[ht];(tt=B?B(kt,ht,J):void 0)===void 0&&(tt=y(kt)?kt:_(w[P+1])?[]:{})}b(J,ht,tt),J=J[ht]}return A}},6560:(M,z,p)=>{var b=p(5703),u=p(8777),_=p(6557),y=u?function(E,A){return u(E,"toString",{configurable:!0,enumerable:!1,value:b(A),writable:!0})}:_;M.exports=y},1131:M=>{M.exports=function(z,p){var b=z.length;for(z.sort(p);b--;)z[b]=z[b].value;return z}},2545:M=>{M.exports=function(z,p){for(var b=-1,u=Array(z);++b<z;)u[b]=p(b);return u}},531:(M,z,p)=>{var b=p(2705),u=p(9932),_=p(1469),y=p(3448),E=b?b.prototype:void 0,A=E?E.toString:void 0;M.exports=function w(F){if(typeof F=="string")return F;if(_(F))return u(F,w)+"";if(y(F))return A?A.call(F):"";var B=F+"";return B=="0"&&1/F==-1/0?"-0":B}},7561:(M,z,p)=>{var b=p(7990),u=/^\s+/;M.exports=function(_){return _&&_.slice(0,b(_)+1).replace(u,"")}},1717:M=>{M.exports=function(z){return function(p){return z(p)}}},5652:(M,z,p)=>{var b=p(8668),u=p(7443),_=p(1196),y=p(4757),E=p(3593),A=p(1814);M.exports=function(w,F,B){var P=-1,G=u,K=w.length,J=!0,ht=[],tt=ht;if(B)J=!1,G=_;else if(K>=200){var kt=F?null:E(w);if(kt)return A(kt);J=!1,G=y,tt=new b}else tt=F?[]:ht;t:for(;++P<K;){var at=w[P],ut=F?F(at):at;if(at=B||at!==0?at:0,J&&ut==ut){for(var vt=tt.length;vt--;)if(tt[vt]===ut)continue t;F&&tt.push(ut),ht.push(at)}else G(tt,ut,B)||(tt!==ht&&tt.push(ut),ht.push(at))}return ht}},7415:(M,z,p)=>{var b=p(9932);M.exports=function(u,_){return b(_,function(y){return u[y]})}},1757:M=>{M.exports=function(z,p,b){for(var u=-1,_=z.length,y=p.length,E={};++u<_;){var A=u<y?p[u]:void 0;b(E,z[u],A)}return E}},4757:M=>{M.exports=function(z,p){return z.has(p)}},4290:(M,z,p)=>{var b=p(6557);M.exports=function(u){return typeof u=="function"?u:b}},1811:(M,z,p)=>{var b=p(1469),u=p(5403),_=p(5514),y=p(9833);M.exports=function(E,A){return b(E)?E:u(E,A)?[E]:_(y(E))}},4318:(M,z,p)=>{var b=p(1149);M.exports=function(u){var _=new u.constructor(u.byteLength);return new b(_).set(new b(u)),_}},4626:(M,z,p)=>{M=p.nmd(M);var b=p(5639),u=z&&!z.nodeType&&z,_=u&&M&&!M.nodeType&&M,y=_&&_.exports===u?b.Buffer:void 0,E=y?y.allocUnsafe:void 0;M.exports=function(A,w){if(w)return A.slice();var F=A.length,B=E?E(F):new A.constructor(F);return A.copy(B),B}},7157:(M,z,p)=>{var b=p(4318);M.exports=function(u,_){var y=_?b(u.buffer):u.buffer;return new u.constructor(y,u.byteOffset,u.byteLength)}},3147:M=>{var z=/\w*$/;M.exports=function(p){var b=new p.constructor(p.source,z.exec(p));return b.lastIndex=p.lastIndex,b}},419:(M,z,p)=>{var b=p(2705),u=b?b.prototype:void 0,_=u?u.valueOf:void 0;M.exports=function(y){return _?Object(_.call(y)):{}}},7133:(M,z,p)=>{var b=p(4318);M.exports=function(u,_){var y=_?b(u.buffer):u.buffer;return new u.constructor(y,u.byteOffset,u.length)}},6393:(M,z,p)=>{var b=p(3448);M.exports=function(u,_){if(u!==_){var y=u!==void 0,E=u===null,A=u==u,w=b(u),F=_!==void 0,B=_===null,P=_==_,G=b(_);if(!B&&!G&&!w&&u>_||w&&F&&P&&!B&&!G||E&&F&&P||!y&&P||!A)return 1;if(!E&&!w&&!G&&u<_||G&&y&&A&&!E&&!w||B&&y&&A||!F&&A||!P)return-1}return 0}},5022:(M,z,p)=>{var b=p(6393);M.exports=function(u,_,y){for(var E=-1,A=u.criteria,w=_.criteria,F=A.length,B=y.length;++E<F;){var P=b(A[E],w[E]);if(P)return E>=B?P:P*(y[E]=="desc"?-1:1)}return u.index-_.index}},278:M=>{M.exports=function(z,p){var b=-1,u=z.length;for(p||(p=Array(u));++b<u;)p[b]=z[b];return p}},8363:(M,z,p)=>{var b=p(4865),u=p(9465);M.exports=function(_,y,E,A){var w=!E;E||(E={});for(var F=-1,B=y.length;++F<B;){var P=y[F],G=A?A(E[P],_[P],P,E,_):void 0;G===void 0&&(G=_[P]),w?u(E,P,G):b(E,P,G)}return E}},8805:(M,z,p)=>{var b=p(8363),u=p(9551);M.exports=function(_,y){return b(_,u(_),y)}},1911:(M,z,p)=>{var b=p(8363),u=p(1442);M.exports=function(_,y){return b(_,u(_),y)}},4429:(M,z,p)=>{var b=p(5639)["__core-js_shared__"];M.exports=b},1463:(M,z,p)=>{var b=p(5976),u=p(6612);M.exports=function(_){return b(function(y,E){var A=-1,w=E.length,F=w>1?E[w-1]:void 0,B=w>2?E[2]:void 0;for(F=_.length>3&&typeof F=="function"?(w--,F):void 0,B&&u(E[0],E[1],B)&&(F=w<3?void 0:F,w=1),y=Object(y);++A<w;){var P=E[A];P&&_(y,P,A,F)}return y})}},9291:(M,z,p)=>{var b=p(8612);M.exports=function(u,_){return function(y,E){if(y==null)return y;if(!b(y))return u(y,E);for(var A=y.length,w=_?A:-1,F=Object(y);(_?w--:++w<A)&&E(F[w],w,F)!==!1;);return y}}},5063:M=>{M.exports=function(z){return function(p,b,u){for(var _=-1,y=Object(p),E=u(p),A=E.length;A--;){var w=E[z?A:++_];if(b(y[w],w,y)===!1)break}return p}}},7740:(M,z,p)=>{var b=p(7206),u=p(8612),_=p(3674);M.exports=function(y){return function(E,A,w){var F=Object(E);if(!u(E)){var B=b(A,3);E=_(E),A=function(G){return B(F[G],G,F)}}var P=y(E,A,w);return P>-1?F[B?E[P]:P]:void 0}}},7445:(M,z,p)=>{var b=p(98),u=p(6612),_=p(8601);M.exports=function(y){return function(E,A,w){return w&&typeof w!="number"&&u(E,A,w)&&(A=w=void 0),E=_(E),A===void 0?(A=E,E=0):A=_(A),w=w===void 0?E<A?1:-1:_(w),b(E,A,w,y)}}},3593:(M,z,p)=>{var b=p(8525),u=p(308),_=p(1814),y=b&&1/_(new b([,-0]))[1]==1/0?function(E){return new b(E)}:u;M.exports=y},8777:(M,z,p)=>{var b=p(852),u=function(){try{var _=b(Object,"defineProperty");return _({},"",{}),_}catch{}}();M.exports=u},7114:(M,z,p)=>{var b=p(8668),u=p(2908),_=p(4757);M.exports=function(y,E,A,w,F,B){var P=1&A,G=y.length,K=E.length;if(G!=K&&!(P&&K>G))return!1;var J=B.get(y),ht=B.get(E);if(J&&ht)return J==E&&ht==y;var tt=-1,kt=!0,at=2&A?new b:void 0;for(B.set(y,E),B.set(E,y);++tt<G;){var ut=y[tt],vt=E[tt];if(w)var Zt=P?w(vt,ut,tt,E,y,B):w(ut,vt,tt,y,E,B);if(Zt!==void 0){if(Zt)continue;kt=!1;break}if(at){if(!u(E,function(Gt,xt){if(!_(at,xt)&&(ut===Gt||F(ut,Gt,A,w,B)))return at.push(xt)})){kt=!1;break}}else if(ut!==vt&&!F(ut,vt,A,w,B)){kt=!1;break}}return B.delete(y),B.delete(E),kt}},8351:(M,z,p)=>{var b=p(2705),u=p(1149),_=p(7813),y=p(7114),E=p(8776),A=p(1814),w=b?b.prototype:void 0,F=w?w.valueOf:void 0;M.exports=function(B,P,G,K,J,ht,tt){switch(G){case"[object DataView]":if(B.byteLength!=P.byteLength||B.byteOffset!=P.byteOffset)return!1;B=B.buffer,P=P.buffer;case"[object ArrayBuffer]":return!(B.byteLength!=P.byteLength||!ht(new u(B),new u(P)));case"[object Boolean]":case"[object Date]":case"[object Number]":return _(+B,+P);case"[object Error]":return B.name==P.name&&B.message==P.message;case"[object RegExp]":case"[object String]":return B==P+"";case"[object Map]":var kt=E;case"[object Set]":var at=1&K;if(kt||(kt=A),B.size!=P.size&&!at)return!1;var ut=tt.get(B);if(ut)return ut==P;K|=2,tt.set(B,P);var vt=y(kt(B),kt(P),K,J,ht,tt);return tt.delete(B),vt;case"[object Symbol]":if(F)return F.call(B)==F.call(P)}return!1}},6096:(M,z,p)=>{var b=p(8234),u=Object.prototype.hasOwnProperty;M.exports=function(_,y,E,A,w,F){var B=1&E,P=b(_),G=P.length;if(G!=b(y).length&&!B)return!1;for(var K=G;K--;){var J=P[K];if(!(B?J in y:u.call(y,J)))return!1}var ht=F.get(_),tt=F.get(y);if(ht&&tt)return ht==y&&tt==_;var kt=!0;F.set(_,y),F.set(y,_);for(var at=B;++K<G;){var ut=_[J=P[K]],vt=y[J];if(A)var Zt=B?A(vt,ut,J,y,_,F):A(ut,vt,J,_,y,F);if(!(Zt===void 0?ut===vt||w(ut,vt,E,A,F):Zt)){kt=!1;break}at||(at=J=="constructor")}if(kt&&!at){var Gt=_.constructor,xt=y.constructor;Gt==xt||!("constructor"in _)||!("constructor"in y)||typeof Gt=="function"&&Gt instanceof Gt&&typeof xt=="function"&&xt instanceof xt||(kt=!1)}return F.delete(_),F.delete(y),kt}},9021:(M,z,p)=>{var b=p(5564),u=p(5357),_=p(61);M.exports=function(y){return _(u(y,void 0,b),y+"")}},1957:(M,z,p)=>{var b=typeof p.g=="object"&&p.g&&p.g.Object===Object&&p.g;M.exports=b},8234:(M,z,p)=>{var b=p(8866),u=p(9551),_=p(3674);M.exports=function(y){return b(y,_,u)}},6904:(M,z,p)=>{var b=p(8866),u=p(1442),_=p(1704);M.exports=function(y){return b(y,_,u)}},5050:(M,z,p)=>{var b=p(7019);M.exports=function(u,_){var y=u.__data__;return b(_)?y[typeof _=="string"?"string":"hash"]:y.map}},1499:(M,z,p)=>{var b=p(9162),u=p(3674);M.exports=function(_){for(var y=u(_),E=y.length;E--;){var A=y[E],w=_[A];y[E]=[A,w,b(w)]}return y}},852:(M,z,p)=>{var b=p(8458),u=p(7801);M.exports=function(_,y){var E=u(_,y);return b(E)?E:void 0}},5924:(M,z,p)=>{var b=p(5569)(Object.getPrototypeOf,Object);M.exports=b},9607:(M,z,p)=>{var b=p(2705),u=Object.prototype,_=u.hasOwnProperty,y=u.toString,E=b?b.toStringTag:void 0;M.exports=function(A){var w=_.call(A,E),F=A[E];try{A[E]=void 0;var B=!0}catch{}var P=y.call(A);return B&&(w?A[E]=F:delete A[E]),P}},9551:(M,z,p)=>{var b=p(4963),u=p(479),_=Object.prototype.propertyIsEnumerable,y=Object.getOwnPropertySymbols,E=y?function(A){return A==null?[]:(A=Object(A),b(y(A),function(w){return _.call(A,w)}))}:u;M.exports=E},1442:(M,z,p)=>{var b=p(2488),u=p(5924),_=p(9551),y=p(479),E=Object.getOwnPropertySymbols?function(A){for(var w=[];A;)b(w,_(A)),A=u(A);return w}:y;M.exports=E},4160:(M,z,p)=>{var b=p(8552),u=p(7071),_=p(3818),y=p(8525),E=p(577),A=p(4239),w=p(346),F="[object Map]",B="[object Promise]",P="[object Set]",G="[object WeakMap]",K="[object DataView]",J=w(b),ht=w(u),tt=w(_),kt=w(y),at=w(E),ut=A;(b&&ut(new b(new ArrayBuffer(1)))!=K||u&&ut(new u)!=F||_&&ut(_.resolve())!=B||y&&ut(new y)!=P||E&&ut(new E)!=G)&&(ut=function(vt){var Zt=A(vt),Gt=Zt=="[object Object]"?vt.constructor:void 0,xt=Gt?w(Gt):"";if(xt)switch(xt){case J:return K;case ht:return F;case tt:return B;case kt:return P;case at:return G}return Zt}),M.exports=ut},7801:M=>{M.exports=function(z,p){return z==null?void 0:z[p]}},222:(M,z,p)=>{var b=p(1811),u=p(5694),_=p(1469),y=p(5776),E=p(1780),A=p(327);M.exports=function(w,F,B){for(var P=-1,G=(F=b(F,w)).length,K=!1;++P<G;){var J=A(F[P]);if(!(K=w!=null&&B(w,J)))break;w=w[J]}return K||++P!=G?K:!!(G=w==null?0:w.length)&&E(G)&&y(J,G)&&(_(w)||u(w))}},2689:M=>{var z=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");M.exports=function(p){return z.test(p)}},1789:(M,z,p)=>{var b=p(4536);M.exports=function(){this.__data__=b?b(null):{},this.size=0}},401:M=>{M.exports=function(z){var p=this.has(z)&&delete this.__data__[z];return this.size-=p?1:0,p}},7667:(M,z,p)=>{var b=p(4536),u=Object.prototype.hasOwnProperty;M.exports=function(_){var y=this.__data__;if(b){var E=y[_];return E==="__lodash_hash_undefined__"?void 0:E}return u.call(y,_)?y[_]:void 0}},1327:(M,z,p)=>{var b=p(4536),u=Object.prototype.hasOwnProperty;M.exports=function(_){var y=this.__data__;return b?y[_]!==void 0:u.call(y,_)}},1866:(M,z,p)=>{var b=p(4536);M.exports=function(u,_){var y=this.__data__;return this.size+=this.has(u)?0:1,y[u]=b&&_===void 0?"__lodash_hash_undefined__":_,this}},3824:M=>{var z=Object.prototype.hasOwnProperty;M.exports=function(p){var b=p.length,u=new p.constructor(b);return b&&typeof p[0]=="string"&&z.call(p,"index")&&(u.index=p.index,u.input=p.input),u}},9148:(M,z,p)=>{var b=p(4318),u=p(7157),_=p(3147),y=p(419),E=p(7133);M.exports=function(A,w,F){var B=A.constructor;switch(w){case"[object ArrayBuffer]":return b(A);case"[object Boolean]":case"[object Date]":return new B(+A);case"[object DataView]":return u(A,F);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return E(A,F);case"[object Map]":case"[object Set]":return new B;case"[object Number]":case"[object String]":return new B(A);case"[object RegExp]":return _(A);case"[object Symbol]":return y(A)}}},8517:(M,z,p)=>{var b=p(3118),u=p(5924),_=p(5726);M.exports=function(y){return typeof y.constructor!="function"||_(y)?{}:b(u(y))}},7285:(M,z,p)=>{var b=p(2705),u=p(5694),_=p(1469),y=b?b.isConcatSpreadable:void 0;M.exports=function(E){return _(E)||u(E)||!!(y&&E&&E[y])}},5776:M=>{var z=/^(?:0|[1-9]\d*)$/;M.exports=function(p,b){var u=typeof p;return!!(b=b==null?9007199254740991:b)&&(u=="number"||u!="symbol"&&z.test(p))&&p>-1&&p%1==0&&p<b}},6612:(M,z,p)=>{var b=p(7813),u=p(8612),_=p(5776),y=p(3218);M.exports=function(E,A,w){if(!y(w))return!1;var F=typeof A;return!!(F=="number"?u(w)&&_(A,w.length):F=="string"&&A in w)&&b(w[A],E)}},5403:(M,z,p)=>{var b=p(1469),u=p(3448),_=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,y=/^\w*$/;M.exports=function(E,A){if(b(E))return!1;var w=typeof E;return!(w!="number"&&w!="symbol"&&w!="boolean"&&E!=null&&!u(E))||y.test(E)||!_.test(E)||A!=null&&E in Object(A)}},7019:M=>{M.exports=function(z){var p=typeof z;return p=="string"||p=="number"||p=="symbol"||p=="boolean"?z!=="__proto__":z===null}},5346:(M,z,p)=>{var b,u=p(4429),_=(b=/[^.]+$/.exec(u&&u.keys&&u.keys.IE_PROTO||""))?"Symbol(src)_1."+b:"";M.exports=function(y){return!!_&&_ in y}},5726:M=>{var z=Object.prototype;M.exports=function(p){var b=p&&p.constructor;return p===(typeof b=="function"&&b.prototype||z)}},9162:(M,z,p)=>{var b=p(3218);M.exports=function(u){return u==u&&!b(u)}},7040:M=>{M.exports=function(){this.__data__=[],this.size=0}},4125:(M,z,p)=>{var b=p(8470),u=Array.prototype.splice;M.exports=function(_){var y=this.__data__,E=b(y,_);return!(E<0||(E==y.length-1?y.pop():u.call(y,E,1),--this.size,0))}},2117:(M,z,p)=>{var b=p(8470);M.exports=function(u){var _=this.__data__,y=b(_,u);return y<0?void 0:_[y][1]}},7518:(M,z,p)=>{var b=p(8470);M.exports=function(u){return b(this.__data__,u)>-1}},4705:(M,z,p)=>{var b=p(8470);M.exports=function(u,_){var y=this.__data__,E=b(y,u);return E<0?(++this.size,y.push([u,_])):y[E][1]=_,this}},4785:(M,z,p)=>{var b=p(1989),u=p(8407),_=p(7071);M.exports=function(){this.size=0,this.__data__={hash:new b,map:new(_||u),string:new b}}},1285:(M,z,p)=>{var b=p(5050);M.exports=function(u){var _=b(this,u).delete(u);return this.size-=_?1:0,_}},6e3:(M,z,p)=>{var b=p(5050);M.exports=function(u){return b(this,u).get(u)}},9916:(M,z,p)=>{var b=p(5050);M.exports=function(u){return b(this,u).has(u)}},5265:(M,z,p)=>{var b=p(5050);M.exports=function(u,_){var y=b(this,u),E=y.size;return y.set(u,_),this.size+=y.size==E?0:1,this}},8776:M=>{M.exports=function(z){var p=-1,b=Array(z.size);return z.forEach(function(u,_){b[++p]=[_,u]}),b}},2634:M=>{M.exports=function(z,p){return function(b){return b!=null&&b[z]===p&&(p!==void 0||z in Object(b))}}},4523:(M,z,p)=>{var b=p(8306);M.exports=function(u){var _=b(u,function(E){return y.size===500&&y.clear(),E}),y=_.cache;return _}},4536:(M,z,p)=>{var b=p(852)(Object,"create");M.exports=b},6916:(M,z,p)=>{var b=p(5569)(Object.keys,Object);M.exports=b},3498:M=>{M.exports=function(z){var p=[];if(z!=null)for(var b in Object(z))p.push(b);return p}},1167:(M,z,p)=>{M=p.nmd(M);var b=p(1957),u=z&&!z.nodeType&&z,_=u&&M&&!M.nodeType&&M,y=_&&_.exports===u&&b.process,E=function(){try{return _&&_.require&&_.require("util").types||y&&y.binding&&y.binding("util")}catch{}}();M.exports=E},2333:M=>{var z=Object.prototype.toString;M.exports=function(p){return z.call(p)}},5569:M=>{M.exports=function(z,p){return function(b){return z(p(b))}}},5357:(M,z,p)=>{var b=p(6874),u=Math.max;M.exports=function(_,y,E){return y=u(y===void 0?_.length-1:y,0),function(){for(var A=arguments,w=-1,F=u(A.length-y,0),B=Array(F);++w<F;)B[w]=A[y+w];w=-1;for(var P=Array(y+1);++w<y;)P[w]=A[w];return P[y]=E(B),b(_,this,P)}}},5639:(M,z,p)=>{var b=p(1957),u=typeof self=="object"&&self&&self.Object===Object&&self,_=b||u||Function("return this")();M.exports=_},6390:M=>{M.exports=function(z,p){if((p!=="constructor"||typeof z[p]!="function")&&p!="__proto__")return z[p]}},619:M=>{M.exports=function(z){return this.__data__.set(z,"__lodash_hash_undefined__"),this}},2385:M=>{M.exports=function(z){return this.__data__.has(z)}},1814:M=>{M.exports=function(z){var p=-1,b=Array(z.size);return z.forEach(function(u){b[++p]=u}),b}},61:(M,z,p)=>{var b=p(6560),u=p(1275)(b);M.exports=u},1275:M=>{var z=Date.now;M.exports=function(p){var b=0,u=0;return function(){var _=z(),y=16-(_-u);if(u=_,y>0){if(++b>=800)return arguments[0]}else b=0;return p.apply(void 0,arguments)}}},7465:(M,z,p)=>{var b=p(8407);M.exports=function(){this.__data__=new b,this.size=0}},3779:M=>{M.exports=function(z){var p=this.__data__,b=p.delete(z);return this.size=p.size,b}},7599:M=>{M.exports=function(z){return this.__data__.get(z)}},4758:M=>{M.exports=function(z){return this.__data__.has(z)}},4309:(M,z,p)=>{var b=p(8407),u=p(7071),_=p(3369);M.exports=function(y,E){var A=this.__data__;if(A instanceof b){var w=A.__data__;if(!u||w.length<199)return w.push([y,E]),this.size=++A.size,this;A=this.__data__=new _(w)}return A.set(y,E),this.size=A.size,this}},2351:M=>{M.exports=function(z,p,b){for(var u=b-1,_=z.length;++u<_;)if(z[u]===p)return u;return-1}},8016:(M,z,p)=>{var b=p(8983),u=p(2689),_=p(1903);M.exports=function(y){return u(y)?_(y):b(y)}},5514:(M,z,p)=>{var b=p(4523),u=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,_=/\\(\\)?/g,y=b(function(E){var A=[];return E.charCodeAt(0)===46&&A.push(""),E.replace(u,function(w,F,B,P){A.push(B?P.replace(_,"$1"):F||w)}),A});M.exports=y},327:(M,z,p)=>{var b=p(3448);M.exports=function(u){if(typeof u=="string"||b(u))return u;var _=u+"";return _=="0"&&1/u==-1/0?"-0":_}},346:M=>{var z=Function.prototype.toString;M.exports=function(p){if(p!=null){try{return z.call(p)}catch{}try{return p+""}catch{}}return""}},7990:M=>{var z=/\s/;M.exports=function(p){for(var b=p.length;b--&&z.test(p.charAt(b)););return b}},1903:M=>{var z="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",p="\\ud83c[\\udffb-\\udfff]",b="[^\\ud800-\\udfff]",u="(?:\\ud83c[\\udde6-\\uddff]){2}",_="[\\ud800-\\udbff][\\udc00-\\udfff]",y="(?:"+z+"|"+p+")?",E="[\\ufe0e\\ufe0f]?",A=E+y+"(?:\\u200d(?:"+[b,u,_].join("|")+")"+E+y+")*",w="(?:"+[b+z+"?",z,u,_,"[\\ud800-\\udfff]"].join("|")+")",F=RegExp(p+"(?="+p+")|"+w+A,"g");M.exports=function(B){for(var P=F.lastIndex=0;F.test(B);)++P;return P}},6678:(M,z,p)=>{var b=p(5990);M.exports=function(u){return b(u,4)}},361:(M,z,p)=>{var b=p(5990);M.exports=function(u){return b(u,5)}},5703:M=>{M.exports=function(z){return function(){return z}}},1747:(M,z,p)=>{var b=p(5976),u=p(7813),_=p(6612),y=p(1704),E=Object.prototype,A=E.hasOwnProperty,w=b(function(F,B){F=Object(F);var P=-1,G=B.length,K=G>2?B[2]:void 0;for(K&&_(B[0],B[1],K)&&(G=1);++P<G;)for(var J=B[P],ht=y(J),tt=-1,kt=ht.length;++tt<kt;){var at=ht[tt],ut=F[at];(ut===void 0||u(ut,E[at])&&!A.call(F,at))&&(F[at]=J[at])}return F});M.exports=w},6073:(M,z,p)=>{M.exports=p(4486)},7813:M=>{M.exports=function(z,p){return z===p||z!=z&&p!=p}},3105:(M,z,p)=>{var b=p(4963),u=p(760),_=p(7206),y=p(1469);M.exports=function(E,A){return(y(E)?b:u)(E,_(A,3))}},3311:(M,z,p)=>{var b=p(7740)(p(998));M.exports=b},998:(M,z,p)=>{var b=p(1848),u=p(7206),_=p(554),y=Math.max;M.exports=function(E,A,w){var F=E==null?0:E.length;if(!F)return-1;var B=w==null?0:_(w);return B<0&&(B=y(F+B,0)),b(E,u(A,3),B)}},5564:(M,z,p)=>{var b=p(1078);M.exports=function(u){return u!=null&&u.length?b(u,1):[]}},4486:(M,z,p)=>{var b=p(7412),u=p(9881),_=p(4290),y=p(1469);M.exports=function(E,A){return(y(E)?b:u)(E,_(A))}},2620:(M,z,p)=>{var b=p(8483),u=p(4290),_=p(1704);M.exports=function(y,E){return y==null?y:b(y,u(E),_)}},7361:(M,z,p)=>{var b=p(7786);M.exports=function(u,_,y){var E=u==null?void 0:b(u,_);return E===void 0?y:E}},8721:(M,z,p)=>{var b=p(8565),u=p(222);M.exports=function(_,y){return _!=null&&u(_,y,b)}},9095:(M,z,p)=>{var b=p(13),u=p(222);M.exports=function(_,y){return _!=null&&u(_,y,b)}},6557:M=>{M.exports=function(z){return z}},5694:(M,z,p)=>{var b=p(9454),u=p(7005),_=Object.prototype,y=_.hasOwnProperty,E=_.propertyIsEnumerable,A=b(function(){return arguments}())?b:function(w){return u(w)&&y.call(w,"callee")&&!E.call(w,"callee")};M.exports=A},1469:M=>{var z=Array.isArray;M.exports=z},8612:(M,z,p)=>{var b=p(3560),u=p(1780);M.exports=function(_){return _!=null&&u(_.length)&&!b(_)}},9246:(M,z,p)=>{var b=p(8612),u=p(7005);M.exports=function(_){return u(_)&&b(_)}},4144:(M,z,p)=>{M=p.nmd(M);var b=p(5639),u=p(5062),_=z&&!z.nodeType&&z,y=_&&M&&!M.nodeType&&M,E=y&&y.exports===_?b.Buffer:void 0,A=(E?E.isBuffer:void 0)||u;M.exports=A},1609:(M,z,p)=>{var b=p(280),u=p(4160),_=p(5694),y=p(1469),E=p(8612),A=p(4144),w=p(5726),F=p(6719),B=Object.prototype.hasOwnProperty;M.exports=function(P){if(P==null)return!0;if(E(P)&&(y(P)||typeof P=="string"||typeof P.splice=="function"||A(P)||F(P)||_(P)))return!P.length;var G=u(P);if(G=="[object Map]"||G=="[object Set]")return!P.size;if(w(P))return!b(P).length;for(var K in P)if(B.call(P,K))return!1;return!0}},3560:(M,z,p)=>{var b=p(4239),u=p(3218);M.exports=function(_){if(!u(_))return!1;var y=b(_);return y=="[object Function]"||y=="[object GeneratorFunction]"||y=="[object AsyncFunction]"||y=="[object Proxy]"}},1780:M=>{M.exports=function(z){return typeof z=="number"&&z>-1&&z%1==0&&z<=9007199254740991}},6688:(M,z,p)=>{var b=p(5588),u=p(1717),_=p(1167),y=_&&_.isMap,E=y?u(y):b;M.exports=E},3218:M=>{M.exports=function(z){var p=typeof z;return z!=null&&(p=="object"||p=="function")}},7005:M=>{M.exports=function(z){return z!=null&&typeof z=="object"}},8630:(M,z,p)=>{var b=p(4239),u=p(5924),_=p(7005),y=Function.prototype,E=Object.prototype,A=y.toString,w=E.hasOwnProperty,F=A.call(Object);M.exports=function(B){if(!_(B)||b(B)!="[object Object]")return!1;var P=u(B);if(P===null)return!0;var G=w.call(P,"constructor")&&P.constructor;return typeof G=="function"&&G instanceof G&&A.call(G)==F}},2928:(M,z,p)=>{var b=p(9221),u=p(1717),_=p(1167),y=_&&_.isSet,E=y?u(y):b;M.exports=E},7037:(M,z,p)=>{var b=p(4239),u=p(1469),_=p(7005);M.exports=function(y){return typeof y=="string"||!u(y)&&_(y)&&b(y)=="[object String]"}},3448:(M,z,p)=>{var b=p(4239),u=p(7005);M.exports=function(_){return typeof _=="symbol"||u(_)&&b(_)=="[object Symbol]"}},6719:(M,z,p)=>{var b=p(8749),u=p(1717),_=p(1167),y=_&&_.isTypedArray,E=y?u(y):b;M.exports=E},2353:M=>{M.exports=function(z){return z===void 0}},3674:(M,z,p)=>{var b=p(4636),u=p(280),_=p(8612);M.exports=function(y){return _(y)?b(y):u(y)}},1704:(M,z,p)=>{var b=p(4636),u=p(313),_=p(8612);M.exports=function(y){return _(y)?b(y,!0):u(y)}},928:M=>{M.exports=function(z){var p=z==null?0:z.length;return p?z[p-1]:void 0}},5161:(M,z,p)=>{var b=p(9932),u=p(7206),_=p(9199),y=p(1469);M.exports=function(E,A){return(y(E)?b:_)(E,u(A,3))}},6604:(M,z,p)=>{var b=p(9465),u=p(7816),_=p(7206);M.exports=function(y,E){var A={};return E=_(E,3),u(y,function(w,F,B){b(A,F,E(w,F,B))}),A}},6162:(M,z,p)=>{var b=p(6029),u=p(3325),_=p(6557);M.exports=function(y){return y&&y.length?b(y,_,u):void 0}},8306:(M,z,p)=>{var b=p(3369);function u(_,y){if(typeof _!="function"||y!=null&&typeof y!="function")throw new TypeError("Expected a function");var E=function(){var A=arguments,w=y?y.apply(this,A):A[0],F=E.cache;if(F.has(w))return F.get(w);var B=_.apply(this,A);return E.cache=F.set(w,B)||F,B};return E.cache=new(u.Cache||b),E}u.Cache=b,M.exports=u},3857:(M,z,p)=>{var b=p(2980),u=p(1463)(function(_,y,E){b(_,y,E)});M.exports=u},3632:(M,z,p)=>{var b=p(6029),u=p(433),_=p(6557);M.exports=function(y){return y&&y.length?b(y,_,u):void 0}},2762:(M,z,p)=>{var b=p(6029),u=p(7206),_=p(433);M.exports=function(y,E){return y&&y.length?b(y,u(E,2),_):void 0}},308:M=>{M.exports=function(){}},7771:(M,z,p)=>{var b=p(5639);M.exports=function(){return b.Date.now()}},9722:(M,z,p)=>{var b=p(5970),u=p(9021)(function(_,y){return _==null?{}:b(_,y)});M.exports=u},9601:(M,z,p)=>{var b=p(371),u=p(9152),_=p(5403),y=p(327);M.exports=function(E){return _(E)?b(y(E)):u(E)}},6026:(M,z,p)=>{var b=p(7445)();M.exports=b},4061:(M,z,p)=>{var b=p(2663),u=p(9881),_=p(7206),y=p(107),E=p(1469);M.exports=function(A,w,F){var B=E(A)?b:y,P=arguments.length<3;return B(A,_(w,4),F,P,u)}},4238:(M,z,p)=>{var b=p(280),u=p(4160),_=p(8612),y=p(7037),E=p(8016);M.exports=function(A){if(A==null)return 0;if(_(A))return y(A)?E(A):A.length;var w=u(A);return w=="[object Map]"||w=="[object Set]"?A.size:b(A).length}},9734:(M,z,p)=>{var b=p(1078),u=p(9556),_=p(5976),y=p(6612),E=_(function(A,w){if(A==null)return[];var F=w.length;return F>1&&y(A,w[0],w[1])?w=[]:F>2&&y(w[0],w[1],w[2])&&(w=[w[0]]),u(A,b(w,1),[])});M.exports=E},479:M=>{M.exports=function(){return[]}},5062:M=>{M.exports=function(){return!1}},8601:(M,z,p)=>{var b=p(4841);M.exports=function(u){return u?(u=b(u))===1/0||u===-1/0?17976931348623157e292*(u<0?-1:1):u==u?u:0:u===0?u:0}},554:(M,z,p)=>{var b=p(8601);M.exports=function(u){var _=b(u),y=_%1;return _==_?y?_-y:_:0}},4841:(M,z,p)=>{var b=p(7561),u=p(3218),_=p(3448),y=/^[-+]0x[0-9a-f]+$/i,E=/^0b[01]+$/i,A=/^0o[0-7]+$/i,w=parseInt;M.exports=function(F){if(typeof F=="number")return F;if(_(F))return NaN;if(u(F)){var B=typeof F.valueOf=="function"?F.valueOf():F;F=u(B)?B+"":B}if(typeof F!="string")return F===0?F:+F;F=b(F);var P=E.test(F);return P||A.test(F)?w(F.slice(2),P?2:8):y.test(F)?NaN:+F}},3678:(M,z,p)=>{var b=p(8363),u=p(1704);M.exports=function(_){return b(_,u(_))}},9833:(M,z,p)=>{var b=p(531);M.exports=function(u){return u==null?"":b(u)}},8718:(M,z,p)=>{var b=p(7412),u=p(3118),_=p(7816),y=p(7206),E=p(5924),A=p(1469),w=p(4144),F=p(3560),B=p(3218),P=p(6719);M.exports=function(G,K,J){var ht=A(G),tt=ht||w(G)||P(G);if(K=y(K,4),J==null){var kt=G&&G.constructor;J=tt?ht?new kt:[]:B(G)&&F(kt)?u(E(G)):{}}return(tt?b:_)(G,function(at,ut,vt){return K(J,at,ut,vt)}),J}},3386:(M,z,p)=>{var b=p(1078),u=p(5976),_=p(5652),y=p(9246),E=u(function(A){return _(b(A,1,y,!0))});M.exports=E},3955:(M,z,p)=>{var b=p(9833),u=0;M.exports=function(_){var y=++u;return b(_)+y}},2628:(M,z,p)=>{var b=p(7415),u=p(3674);M.exports=function(_){return _==null?[]:b(_,u(_))}},7287:(M,z,p)=>{var b=p(4865),u=p(1757);M.exports=function(_,y){return u(_||[],y||[],b)}},9234:()=>{},1748:(M,z,p)=>{var b={"./locale":9234,"./locale.js":9234};function u(y){var E=_(y);return p(E)}function _(y){if(!p.o(b,y)){var E=new Error("Cannot find module '"+y+"'");throw E.code="MODULE_NOT_FOUND",E}return b[y]}u.keys=function(){return Object.keys(b)},u.resolve=_,M.exports=u,u.id=1748},1941:function(M,z,p){(M=p.nmd(M)).exports=function(){var b,u;function _(){return b.apply(null,arguments)}function y(x){return x instanceof Array||Object.prototype.toString.call(x)==="[object Array]"}function E(x){return x!=null&&Object.prototype.toString.call(x)==="[object Object]"}function A(x){return x===void 0}function w(x){return typeof x=="number"||Object.prototype.toString.call(x)==="[object Number]"}function F(x){return x instanceof Date||Object.prototype.toString.call(x)==="[object Date]"}function B(x,L){var H,ct=[];for(H=0;H<x.length;++H)ct.push(L(x[H],H));return ct}function P(x,L){return Object.prototype.hasOwnProperty.call(x,L)}function G(x,L){for(var H in L)P(L,H)&&(x[H]=L[H]);return P(L,"toString")&&(x.toString=L.toString),P(L,"valueOf")&&(x.valueOf=L.valueOf),x}function K(x,L,H,ct){return ka(x,L,H,ct,!0).utc()}function J(x){return x._pf==null&&(x._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],meridiem:null,rfc2822:!1,weekdayMismatch:!1}),x._pf}function ht(x){if(x._isValid==null){var L=J(x),H=u.call(L.parsedDateParts,function(Xt){return Xt!=null}),ct=!isNaN(x._d.getTime())&&L.overflow<0&&!L.empty&&!L.invalidMonth&&!L.invalidWeekday&&!L.weekdayMismatch&&!L.nullInput&&!L.invalidFormat&&!L.userInvalidated&&(!L.meridiem||L.meridiem&&H);if(x._strict&&(ct=ct&&L.charsLeftOver===0&&L.unusedTokens.length===0&&L.bigHour===void 0),Object.isFrozen!=null&&Object.isFrozen(x))return ct;x._isValid=ct}return x._isValid}function tt(x){var L=K(NaN);return x!=null?G(J(L),x):J(L).userInvalidated=!0,L}u=Array.prototype.some?Array.prototype.some:function(x){for(var L=Object(this),H=L.length>>>0,ct=0;ct<H;ct++)if(ct in L&&x.call(this,L[ct],ct,L))return!0;return!1};var kt=_.momentProperties=[];function at(x,L){var H,ct,Xt;if(A(L._isAMomentObject)||(x._isAMomentObject=L._isAMomentObject),A(L._i)||(x._i=L._i),A(L._f)||(x._f=L._f),A(L._l)||(x._l=L._l),A(L._strict)||(x._strict=L._strict),A(L._tzm)||(x._tzm=L._tzm),A(L._isUTC)||(x._isUTC=L._isUTC),A(L._offset)||(x._offset=L._offset),A(L._pf)||(x._pf=J(L)),A(L._locale)||(x._locale=L._locale),0<kt.length)for(H=0;H<kt.length;H++)A(Xt=L[ct=kt[H]])||(x[ct]=Xt);return x}var ut=!1;function vt(x){at(this,x),this._d=new Date(x._d!=null?x._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),ut===!1&&(ut=!0,_.updateOffset(this),ut=!1)}function Zt(x){return x instanceof vt||x!=null&&x._isAMomentObject!=null}function Gt(x){return x<0?Math.ceil(x)||0:Math.floor(x)}function xt(x){var L=+x,H=0;return L!==0&&isFinite(L)&&(H=Gt(L)),H}function It(x,L,H){var ct,Xt=Math.min(x.length,L.length),Se=Math.abs(x.length-L.length),Pe=0;for(ct=0;ct<Xt;ct++)(H&&x[ct]!==L[ct]||!H&&xt(x[ct])!==xt(L[ct]))&&Pe++;return Pe+Se}function wt(x){_.suppressDeprecationWarnings===!1&&typeof console<"u"&&console.warn&&console.warn("Deprecation warning: "+x)}function mt(x,L){var H=!0;return G(function(){if(_.deprecationHandler!=null&&_.deprecationHandler(null,x),H){for(var ct,Xt=[],Se=0;Se<arguments.length;Se++){if(ct="",typeof arguments[Se]=="object"){for(var Pe in ct+=`
[`+Se+"] ",arguments[0])ct+=Pe+": "+arguments[0][Pe]+", ";ct=ct.slice(0,-2)}else ct=arguments[Se];Xt.push(ct)}wt(x+`
Arguments: `+Array.prototype.slice.call(Xt).join("")+`
`+new Error().stack),H=!1}return L.apply(this,arguments)},L)}var X,ot={};function j(x,L){_.deprecationHandler!=null&&_.deprecationHandler(x,L),ot[x]||(wt(L),ot[x]=!0)}function yt(x){return x instanceof Function||Object.prototype.toString.call(x)==="[object Function]"}function Y(x,L){var H,ct=G({},x);for(H in L)P(L,H)&&(E(x[H])&&E(L[H])?(ct[H]={},G(ct[H],x[H]),G(ct[H],L[H])):L[H]!=null?ct[H]=L[H]:delete ct[H]);for(H in x)P(x,H)&&!P(L,H)&&E(x[H])&&(ct[H]=G({},ct[H]));return ct}function bt(x){x!=null&&this.set(x)}_.suppressDeprecationWarnings=!1,_.deprecationHandler=null,X=Object.keys?Object.keys:function(x){var L,H=[];for(L in x)P(x,L)&&H.push(L);return H};var Ct={};function $t(x,L){var H=x.toLowerCase();Ct[H]=Ct[H+"s"]=Ct[L]=x}function be(x){return typeof x=="string"?Ct[x]||Ct[x.toLowerCase()]:void 0}function We(x){var L,H,ct={};for(H in x)P(x,H)&&(L=be(H))&&(ct[L]=x[H]);return ct}var xe={};function pe(x,L){xe[x]=L}function _e(x,L,H){var ct=""+Math.abs(x),Xt=L-ct.length;return(0<=x?H?"+":"":"-")+Math.pow(10,Math.max(0,Xt)).toString().substr(1)+ct}var Ae=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,De=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,me={},wn={};function de(x,L,H,ct){var Xt=ct;typeof ct=="string"&&(Xt=function(){return this[ct]()}),x&&(wn[x]=Xt),L&&(wn[L[0]]=function(){return _e(Xt.apply(this,arguments),L[1],L[2])}),H&&(wn[H]=function(){return this.localeData().ordinal(Xt.apply(this,arguments),x)})}function Qe(x,L){return x.isValid()?(L=ne(L,x.localeData()),me[L]=me[L]||function(H){var ct,Xt,Se,Pe=H.match(Ae);for(ct=0,Xt=Pe.length;ct<Xt;ct++)wn[Pe[ct]]?Pe[ct]=wn[Pe[ct]]:Pe[ct]=(Se=Pe[ct]).match(/\[[\s\S]/)?Se.replace(/^\[|\]$/g,""):Se.replace(/\\/g,"");return function(Ze){var Je,un="";for(Je=0;Je<Xt;Je++)un+=yt(Pe[Je])?Pe[Je].call(Ze,H):Pe[Je];return un}}(L),me[L](x)):x.localeData().invalidDate()}function ne(x,L){var H=5;function ct(Xt){return L.longDateFormat(Xt)||Xt}for(De.lastIndex=0;0<=H&&De.test(x);)x=x.replace(De,ct),De.lastIndex=0,H-=1;return x}var Qt=/\d/,se=/\d\d/,Et=/\d{3}/,te=/\d{4}/,st=/[+-]?\d{6}/,dt=/\d\d?/,ft=/\d\d\d\d?/,Mt=/\d\d\d\d\d\d?/,fe=/\d{1,3}/,Le=/\d{1,4}/,en=/[+-]?\d{1,6}/,qe=/\d+/,sn=/[+-]?\d+/,Fe=/Z|[+-]\d\d:?\d\d/gi,Te=/Z|[+-]\d\d(?::?\d\d)?/gi,Oe=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,Be={};function ge(x,L,H){Be[x]=yt(L)?L:function(ct,Xt){return ct&&H?H:L}}function re(x,L){return P(Be,x)?Be[x](L._strict,L._locale):new RegExp(An(x.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(H,ct,Xt,Se,Pe){return ct||Xt||Se||Pe})))}function An(x){return x.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var Ie={};function ln(x,L){var H,ct=L;for(typeof x=="string"&&(x=[x]),w(L)&&(ct=function(Xt,Se){Se[L]=xt(Xt)}),H=0;H<x.length;H++)Ie[x[H]]=ct}function Ye(x,L){ln(x,function(H,ct,Xt,Se){Xt._w=Xt._w||{},L(H,Xt._w,Xt,Se)})}function fn(x){return Jn(x)?366:365}function Jn(x){return x%4==0&&x%100!=0||x%400==0}de("Y",0,0,function(){var x=this.year();return x<=9999?""+x:"+"+x}),de(0,["YY",2],0,function(){return this.year()%100}),de(0,["YYYY",4],0,"year"),de(0,["YYYYY",5],0,"year"),de(0,["YYYYYY",6,!0],0,"year"),$t("year","y"),pe("year",1),ge("Y",sn),ge("YY",dt,se),ge("YYYY",Le,te),ge("YYYYY",en,st),ge("YYYYYY",en,st),ln(["YYYYY","YYYYYY"],0),ln("YYYY",function(x,L){L[0]=x.length===2?_.parseTwoDigitYear(x):xt(x)}),ln("YY",function(x,L){L[0]=_.parseTwoDigitYear(x)}),ln("Y",function(x,L){L[0]=parseInt(x,10)}),_.parseTwoDigitYear=function(x){return xt(x)+(68<xt(x)?1900:2e3)};var Dn,Tn=Me("FullYear",!0);function Me(x,L){return function(H){return H!=null?(Xe(this,x,H),_.updateOffset(this,L),this):Ke(this,x)}}function Ke(x,L){return x.isValid()?x._d["get"+(x._isUTC?"UTC":"")+L]():NaN}function Xe(x,L,H){x.isValid()&&!isNaN(H)&&(L==="FullYear"&&Jn(x.year())&&x.month()===1&&x.date()===29?x._d["set"+(x._isUTC?"UTC":"")+L](H,x.month(),Ee(H,x.month())):x._d["set"+(x._isUTC?"UTC":"")+L](H))}function Ee(x,L){if(isNaN(x)||isNaN(L))return NaN;var H=(L%12+12)%12;return x+=(L-H)/12,H===1?Jn(x)?29:28:31-H%7%2}Dn=Array.prototype.indexOf?Array.prototype.indexOf:function(x){var L;for(L=0;L<this.length;++L)if(this[L]===x)return L;return-1},de("M",["MM",2],"Mo",function(){return this.month()+1}),de("MMM",0,0,function(x){return this.localeData().monthsShort(this,x)}),de("MMMM",0,0,function(x){return this.localeData().months(this,x)}),$t("month","M"),pe("month",8),ge("M",dt),ge("MM",dt,se),ge("MMM",function(x,L){return L.monthsShortRegex(x)}),ge("MMMM",function(x,L){return L.monthsRegex(x)}),ln(["M","MM"],function(x,L){L[1]=xt(x)-1}),ln(["MMM","MMMM"],function(x,L,H,ct){var Xt=H._locale.monthsParse(x,ct,H._strict);Xt!=null?L[1]=Xt:J(H).invalidMonth=x});var mn=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,At="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),vr="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_");function Yt(x,L){var H;if(!x.isValid())return x;if(typeof L=="string"){if(/^\d+$/.test(L))L=xt(L);else if(!w(L=x.localeData().monthsParse(L)))return x}return H=Math.min(x.date(),Ee(x.year(),L)),x._d["set"+(x._isUTC?"UTC":"")+"Month"](L,H),x}function Un(x){return x!=null?(Yt(this,x),_.updateOffset(this,!0),this):Ke(this,"Month")}var Rn=Oe,Vn=Oe;function Mn(){function x(Pe,Ze){return Ze.length-Pe.length}var L,H,ct=[],Xt=[],Se=[];for(L=0;L<12;L++)H=K([2e3,L]),ct.push(this.monthsShort(H,"")),Xt.push(this.months(H,"")),Se.push(this.months(H,"")),Se.push(this.monthsShort(H,""));for(ct.sort(x),Xt.sort(x),Se.sort(x),L=0;L<12;L++)ct[L]=An(ct[L]),Xt[L]=An(Xt[L]);for(L=0;L<24;L++)Se[L]=An(Se[L]);this._monthsRegex=new RegExp("^("+Se.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+Xt.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+ct.join("|")+")","i")}function Hn(x){var L;if(x<100&&0<=x){var H=Array.prototype.slice.call(arguments);H[0]=x+400,L=new Date(Date.UTC.apply(null,H)),isFinite(L.getUTCFullYear())&&L.setUTCFullYear(x)}else L=new Date(Date.UTC.apply(null,arguments));return L}function In(x,L,H){var ct=7+L-H;return-(7+Hn(x,0,ct).getUTCDay()-L)%7+ct-1}function En(x,L,H,ct,Xt){var Se,Pe,Ze=1+7*(L-1)+(7+H-ct)%7+In(x,ct,Xt);return Pe=Ze<=0?fn(Se=x-1)+Ze:Ze>fn(x)?(Se=x+1,Ze-fn(x)):(Se=x,Ze),{year:Se,dayOfYear:Pe}}function Fn(x,L,H){var ct,Xt,Se=In(x.year(),L,H),Pe=Math.floor((x.dayOfYear()-Se-1)/7)+1;return Pe<1?ct=Pe+Pn(Xt=x.year()-1,L,H):Pe>Pn(x.year(),L,H)?(ct=Pe-Pn(x.year(),L,H),Xt=x.year()+1):(Xt=x.year(),ct=Pe),{week:ct,year:Xt}}function Pn(x,L,H){var ct=In(x,L,H),Xt=In(x+1,L,H);return(fn(x)-ct+Xt)/7}function jn(x,L){return x.slice(L,7).concat(x.slice(0,L))}de("w",["ww",2],"wo","week"),de("W",["WW",2],"Wo","isoWeek"),$t("week","w"),$t("isoWeek","W"),pe("week",5),pe("isoWeek",5),ge("w",dt),ge("ww",dt,se),ge("W",dt),ge("WW",dt,se),Ye(["w","ww","W","WW"],function(x,L,H,ct){L[ct.substr(0,1)]=xt(x)}),de("d",0,"do","day"),de("dd",0,0,function(x){return this.localeData().weekdaysMin(this,x)}),de("ddd",0,0,function(x){return this.localeData().weekdaysShort(this,x)}),de("dddd",0,0,function(x){return this.localeData().weekdays(this,x)}),de("e",0,0,"weekday"),de("E",0,0,"isoWeekday"),$t("day","d"),$t("weekday","e"),$t("isoWeekday","E"),pe("day",11),pe("weekday",11),pe("isoWeekday",11),ge("d",dt),ge("e",dt),ge("E",dt),ge("dd",function(x,L){return L.weekdaysMinRegex(x)}),ge("ddd",function(x,L){return L.weekdaysShortRegex(x)}),ge("dddd",function(x,L){return L.weekdaysRegex(x)}),Ye(["dd","ddd","dddd"],function(x,L,H,ct){var Xt=H._locale.weekdaysParse(x,ct,H._strict);Xt!=null?L.d=Xt:J(H).invalidWeekday=x}),Ye(["d","e","E"],function(x,L,H,ct){L[ct]=xt(x)});var fa="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Dr="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Tr="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Sn=Oe,oi=Oe,Nn=Oe;function _r(){function x(gn,zn){return zn.length-gn.length}var L,H,ct,Xt,Se,Pe=[],Ze=[],Je=[],un=[];for(L=0;L<7;L++)H=K([2e3,1]).day(L),ct=this.weekdaysMin(H,""),Xt=this.weekdaysShort(H,""),Se=this.weekdays(H,""),Pe.push(ct),Ze.push(Xt),Je.push(Se),un.push(ct),un.push(Xt),un.push(Se);for(Pe.sort(x),Ze.sort(x),Je.sort(x),un.sort(x),L=0;L<7;L++)Ze[L]=An(Ze[L]),Je[L]=An(Je[L]),un[L]=An(un[L]);this._weekdaysRegex=new RegExp("^("+un.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+Je.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+Ze.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+Pe.join("|")+")","i")}function Cr(){return this.hours()%12||12}function yr(x,L){de(x,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),L)})}function qr(x,L){return L._meridiemParse}de("H",["HH",2],0,"hour"),de("h",["hh",2],0,Cr),de("k",["kk",2],0,function(){return this.hours()||24}),de("hmm",0,0,function(){return""+Cr.apply(this)+_e(this.minutes(),2)}),de("hmmss",0,0,function(){return""+Cr.apply(this)+_e(this.minutes(),2)+_e(this.seconds(),2)}),de("Hmm",0,0,function(){return""+this.hours()+_e(this.minutes(),2)}),de("Hmmss",0,0,function(){return""+this.hours()+_e(this.minutes(),2)+_e(this.seconds(),2)}),yr("a",!0),yr("A",!1),$t("hour","h"),pe("hour",13),ge("a",qr),ge("A",qr),ge("H",dt),ge("h",dt),ge("k",dt),ge("HH",dt,se),ge("hh",dt,se),ge("kk",dt,se),ge("hmm",ft),ge("hmmss",Mt),ge("Hmm",ft),ge("Hmmss",Mt),ln(["H","HH"],3),ln(["k","kk"],function(x,L,H){var ct=xt(x);L[3]=ct===24?0:ct}),ln(["a","A"],function(x,L,H){H._isPm=H._locale.isPM(x),H._meridiem=x}),ln(["h","hh"],function(x,L,H){L[3]=xt(x),J(H).bigHour=!0}),ln("hmm",function(x,L,H){var ct=x.length-2;L[3]=xt(x.substr(0,ct)),L[4]=xt(x.substr(ct)),J(H).bigHour=!0}),ln("hmmss",function(x,L,H){var ct=x.length-4,Xt=x.length-2;L[3]=xt(x.substr(0,ct)),L[4]=xt(x.substr(ct,2)),L[5]=xt(x.substr(Xt)),J(H).bigHour=!0}),ln("Hmm",function(x,L,H){var ct=x.length-2;L[3]=xt(x.substr(0,ct)),L[4]=xt(x.substr(ct))}),ln("Hmmss",function(x,L,H){var ct=x.length-4,Xt=x.length-2;L[3]=xt(x.substr(0,ct)),L[4]=xt(x.substr(ct,2)),L[5]=xt(x.substr(Xt))});var Dt,Ar=Me("Hours",!0),Nr={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:At,monthsShort:vr,week:{dow:0,doy:6},weekdays:fa,weekdaysMin:Tr,weekdaysShort:Dr,meridiemParse:/[ap]\.?m?\.?/i},Gn={},Zr={};function Ur(x){return x&&x.toLowerCase().replace("_","-")}function Ir(x){var L=null;if(!Gn[x]&&M&&M.exports)try{L=Dt._abbr,p(1748)("./"+x),Qr(L)}catch{}return Gn[x]}function Qr(x,L){var H;return x&&((H=A(L)?cr(x):xa(x,L))?Dt=H:typeof console<"u"&&console.warn&&console.warn("Locale "+x+" not found. Did you forget to load it?")),Dt._abbr}function xa(x,L){if(L===null)return delete Gn[x],null;var H,ct=Nr;if(L.abbr=x,Gn[x]!=null)j("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),ct=Gn[x]._config;else if(L.parentLocale!=null)if(Gn[L.parentLocale]!=null)ct=Gn[L.parentLocale]._config;else{if((H=Ir(L.parentLocale))==null)return Zr[L.parentLocale]||(Zr[L.parentLocale]=[]),Zr[L.parentLocale].push({name:x,config:L}),null;ct=H._config}return Gn[x]=new bt(Y(ct,L)),Zr[x]&&Zr[x].forEach(function(Xt){xa(Xt.name,Xt.config)}),Qr(x),Gn[x]}function cr(x){var L;if(x&&x._locale&&x._locale._abbr&&(x=x._locale._abbr),!x)return Dt;if(!y(x)){if(L=Ir(x))return L;x=[x]}return function(H){for(var ct,Xt,Se,Pe,Ze=0;Ze<H.length;){for(ct=(Pe=Ur(H[Ze]).split("-")).length,Xt=(Xt=Ur(H[Ze+1]))?Xt.split("-"):null;0<ct;){if(Se=Ir(Pe.slice(0,ct).join("-")))return Se;if(Xt&&Xt.length>=ct&&It(Pe,Xt,!0)>=ct-1)break;ct--}Ze++}return Dt}(x)}function ea(x){var L,H=x._a;return H&&J(x).overflow===-2&&(L=H[1]<0||11<H[1]?1:H[2]<1||H[2]>Ee(H[0],H[1])?2:H[3]<0||24<H[3]||H[3]===24&&(H[4]!==0||H[5]!==0||H[6]!==0)?3:H[4]<0||59<H[4]?4:H[5]<0||59<H[5]?5:H[6]<0||999<H[6]?6:-1,J(x)._overflowDayOfYear&&(L<0||2<L)&&(L=2),J(x)._overflowWeeks&&L===-1&&(L=7),J(x)._overflowWeekday&&L===-1&&(L=8),J(x).overflow=L),x}function na(x,L,H){return x!=null?x:L!=null?L:H}function Ni(x){var L,H,ct,Xt,Se,Pe=[];if(!x._d){var Ze,Je;for(Ze=x,Je=new Date(_.now()),ct=Ze._useUTC?[Je.getUTCFullYear(),Je.getUTCMonth(),Je.getUTCDate()]:[Je.getFullYear(),Je.getMonth(),Je.getDate()],x._w&&x._a[2]==null&&x._a[1]==null&&function(un){var gn,zn,hn,mr,or,$r,ri,Yr;if((gn=un._w).GG!=null||gn.W!=null||gn.E!=null)or=1,$r=4,zn=na(gn.GG,un._a[0],Fn(hr(),1,4).year),hn=na(gn.W,1),((mr=na(gn.E,1))<1||7<mr)&&(Yr=!0);else{or=un._locale._week.dow,$r=un._locale._week.doy;var vs=Fn(hr(),or,$r);zn=na(gn.gg,un._a[0],vs.year),hn=na(gn.w,vs.week),gn.d!=null?((mr=gn.d)<0||6<mr)&&(Yr=!0):gn.e!=null?(mr=gn.e+or,(gn.e<0||6<gn.e)&&(Yr=!0)):mr=or}hn<1||hn>Pn(zn,or,$r)?J(un)._overflowWeeks=!0:Yr!=null?J(un)._overflowWeekday=!0:(ri=En(zn,hn,mr,or,$r),un._a[0]=ri.year,un._dayOfYear=ri.dayOfYear)}(x),x._dayOfYear!=null&&(Se=na(x._a[0],ct[0]),(x._dayOfYear>fn(Se)||x._dayOfYear===0)&&(J(x)._overflowDayOfYear=!0),H=Hn(Se,0,x._dayOfYear),x._a[1]=H.getUTCMonth(),x._a[2]=H.getUTCDate()),L=0;L<3&&x._a[L]==null;++L)x._a[L]=Pe[L]=ct[L];for(;L<7;L++)x._a[L]=Pe[L]=x._a[L]==null?L===2?1:0:x._a[L];x._a[3]===24&&x._a[4]===0&&x._a[5]===0&&x._a[6]===0&&(x._nextDay=!0,x._a[3]=0),x._d=(x._useUTC?Hn:function(un,gn,zn,hn,mr,or,$r){var ri;return un<100&&0<=un?(ri=new Date(un+400,gn,zn,hn,mr,or,$r),isFinite(ri.getFullYear())&&ri.setFullYear(un)):ri=new Date(un,gn,zn,hn,mr,or,$r),ri}).apply(null,Pe),Xt=x._useUTC?x._d.getUTCDay():x._d.getDay(),x._tzm!=null&&x._d.setUTCMinutes(x._d.getUTCMinutes()-x._tzm),x._nextDay&&(x._a[3]=24),x._w&&x._w.d!==void 0&&x._w.d!==Xt&&(J(x).weekdayMismatch=!0)}}var rn=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Zn=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,an=/Z|[+-]\d\d(?::?\d\d)?/,nn=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/]],nr=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],qt=/^\/?Date\((\-?\d+)/i;function wi(x){var L,H,ct,Xt,Se,Pe,Ze=x._i,Je=rn.exec(Ze)||Zn.exec(Ze);if(Je){for(J(x).iso=!0,L=0,H=nn.length;L<H;L++)if(nn[L][1].exec(Je[1])){Xt=nn[L][0],ct=nn[L][2]!==!1;break}if(Xt==null)return void(x._isValid=!1);if(Je[3]){for(L=0,H=nr.length;L<H;L++)if(nr[L][1].exec(Je[3])){Se=(Je[2]||" ")+nr[L][0];break}if(Se==null)return void(x._isValid=!1)}if(!ct&&Se!=null)return void(x._isValid=!1);if(Je[4]){if(!an.exec(Je[4]))return void(x._isValid=!1);Pe="Z"}x._f=Xt+(Se||"")+(Pe||""),Vr(x)}else x._isValid=!1}var Kt=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,xr={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Or(x){var L,H,ct,Xt=Kt.exec(x._i.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,""));if(Xt){var Se=function(Pe,Ze,Je,un,gn,zn){var hn=[function(mr){var or=parseInt(mr,10);return or<=49?2e3+or:or<=999?1900+or:or}(Pe),vr.indexOf(Ze),parseInt(Je,10),parseInt(un,10),parseInt(gn,10)];return zn&&hn.push(parseInt(zn,10)),hn}(Xt[4],Xt[3],Xt[2],Xt[5],Xt[6],Xt[7]);if(H=Se,ct=x,(L=Xt[1])&&Dr.indexOf(L)!==new Date(H[0],H[1],H[2]).getDay()&&(J(ct).weekdayMismatch=!0,!(ct._isValid=!1)))return;x._a=Se,x._tzm=function(Pe,Ze,Je){if(Pe)return xr[Pe];if(Ze)return 0;var un=parseInt(Je,10),gn=un%100;return(un-gn)/100*60+gn}(Xt[8],Xt[9],Xt[10]),x._d=Hn.apply(null,x._a),x._d.setUTCMinutes(x._d.getUTCMinutes()-x._tzm),J(x).rfc2822=!0}else x._isValid=!1}function Vr(x){if(x._f!==_.ISO_8601)if(x._f!==_.RFC_2822){x._a=[],J(x).empty=!0;var L,H,ct,Xt,Se,Pe,Ze,Je,un=""+x._i,gn=un.length,zn=0;for(ct=ne(x._f,x._locale).match(Ae)||[],L=0;L<ct.length;L++)Xt=ct[L],(H=(un.match(re(Xt,x))||[])[0])&&(0<(Se=un.substr(0,un.indexOf(H))).length&&J(x).unusedInput.push(Se),un=un.slice(un.indexOf(H)+H.length),zn+=H.length),wn[Xt]?(H?J(x).empty=!1:J(x).unusedTokens.push(Xt),Pe=Xt,Je=x,(Ze=H)!=null&&P(Ie,Pe)&&Ie[Pe](Ze,Je._a,Je,Pe)):x._strict&&!H&&J(x).unusedTokens.push(Xt);J(x).charsLeftOver=gn-zn,0<un.length&&J(x).unusedInput.push(un),x._a[3]<=12&&J(x).bigHour===!0&&0<x._a[3]&&(J(x).bigHour=void 0),J(x).parsedDateParts=x._a.slice(0),J(x).meridiem=x._meridiem,x._a[3]=function(hn,mr,or){var $r;return or==null?mr:hn.meridiemHour!=null?hn.meridiemHour(mr,or):(hn.isPM!=null&&(($r=hn.isPM(or))&&mr<12&&(mr+=12),$r||mr!==12||(mr=0)),mr)}(x._locale,x._a[3],x._meridiem),Ni(x),ea(x)}else Or(x);else wi(x)}function li(x){var L,H,ct,Xt,Se=x._i,Pe=x._f;return x._locale=x._locale||cr(x._l),Se===null||Pe===void 0&&Se===""?tt({nullInput:!0}):(typeof Se=="string"&&(x._i=Se=x._locale.preparse(Se)),Zt(Se)?new vt(ea(Se)):(F(Se)?x._d=Se:y(Pe)?function(Ze){var Je,un,gn,zn,hn;if(Ze._f.length===0)return J(Ze).invalidFormat=!0,Ze._d=new Date(NaN);for(zn=0;zn<Ze._f.length;zn++)hn=0,Je=at({},Ze),Ze._useUTC!=null&&(Je._useUTC=Ze._useUTC),Je._f=Ze._f[zn],Vr(Je),ht(Je)&&(hn+=J(Je).charsLeftOver,hn+=10*J(Je).unusedTokens.length,J(Je).score=hn,(gn==null||hn<gn)&&(gn=hn,un=Je));G(Ze,un||Je)}(x):Pe?Vr(x):A(H=(L=x)._i)?L._d=new Date(_.now()):F(H)?L._d=new Date(H.valueOf()):typeof H=="string"?(ct=L,(Xt=qt.exec(ct._i))===null?(wi(ct),ct._isValid===!1&&(delete ct._isValid,Or(ct),ct._isValid===!1&&(delete ct._isValid,_.createFromInputFallback(ct)))):ct._d=new Date(+Xt[1])):y(H)?(L._a=B(H.slice(0),function(Ze){return parseInt(Ze,10)}),Ni(L)):E(H)?function(Ze){if(!Ze._d){var Je=We(Ze._i);Ze._a=B([Je.year,Je.month,Je.day||Je.date,Je.hour,Je.minute,Je.second,Je.millisecond],function(un){return un&&parseInt(un,10)}),Ni(Ze)}}(L):w(H)?L._d=new Date(H):_.createFromInputFallback(L),ht(x)||(x._d=null),x))}function ka(x,L,H,ct,Xt){var Se,Pe={};return H!==!0&&H!==!1||(ct=H,H=void 0),(E(x)&&function(Ze){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(Ze).length===0;var Je;for(Je in Ze)if(Ze.hasOwnProperty(Je))return!1;return!0}(x)||y(x)&&x.length===0)&&(x=void 0),Pe._isAMomentObject=!0,Pe._useUTC=Pe._isUTC=Xt,Pe._l=H,Pe._i=x,Pe._f=L,Pe._strict=ct,(Se=new vt(ea(li(Pe))))._nextDay&&(Se.add(1,"d"),Se._nextDay=void 0),Se}function hr(x,L,H,ct){return ka(x,L,H,ct,!1)}_.createFromInputFallback=mt("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged and will be removed in an upcoming major release. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(x){x._d=new Date(x._i+(x._useUTC?" UTC":""))}),_.ISO_8601=function(){},_.RFC_2822=function(){};var xn=mt("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var x=hr.apply(null,arguments);return this.isValid()&&x.isValid()?x<this?this:x:tt()}),ra=mt("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var x=hr.apply(null,arguments);return this.isValid()&&x.isValid()?this<x?this:x:tt()});function On(x,L){var H,ct;if(L.length===1&&y(L[0])&&(L=L[0]),!L.length)return hr();for(H=L[0],ct=1;ct<L.length;++ct)L[ct].isValid()&&!L[ct][x](H)||(H=L[ct]);return H}var bi=["year","quarter","month","week","day","hour","minute","second","millisecond"];function si(x){var L=We(x),H=L.year||0,ct=L.quarter||0,Xt=L.month||0,Se=L.week||L.isoWeek||0,Pe=L.day||0,Ze=L.hour||0,Je=L.minute||0,un=L.second||0,gn=L.millisecond||0;this._isValid=function(zn){for(var hn in zn)if(Dn.call(bi,hn)===-1||zn[hn]!=null&&isNaN(zn[hn]))return!1;for(var mr=!1,or=0;or<bi.length;++or)if(zn[bi[or]]){if(mr)return!1;parseFloat(zn[bi[or]])!==xt(zn[bi[or]])&&(mr=!0)}return!0}(L),this._milliseconds=+gn+1e3*un+6e4*Je+1e3*Ze*60*60,this._days=+Pe+7*Se,this._months=+Xt+3*ct+12*H,this._data={},this._locale=cr(),this._bubble()}function Oi(x){return x instanceof si}function lr(x){return x<0?-1*Math.round(-1*x):Math.round(x)}function Kr(x,L){de(x,0,0,function(){var H=this.utcOffset(),ct="+";return H<0&&(H=-H,ct="-"),ct+_e(~~(H/60),2)+L+_e(~~H%60,2)})}Kr("Z",":"),Kr("ZZ",""),ge("Z",Te),ge("ZZ",Te),ln(["Z","ZZ"],function(x,L,H){H._useUTC=!0,H._tzm=Gr(Te,x)});var Hr=/([\+\-]|\d\d)/gi;function Gr(x,L){var H=(L||"").match(x);if(H===null)return null;var ct=((H[H.length-1]||[])+"").match(Hr)||["-",0,0],Xt=60*ct[1]+xt(ct[2]);return Xt===0?0:ct[0]==="+"?Xt:-Xt}function ni(x,L){var H,ct;return L._isUTC?(H=L.clone(),ct=(Zt(x)||F(x)?x.valueOf():hr(x).valueOf())-H.valueOf(),H._d.setTime(H._d.valueOf()+ct),_.updateOffset(H,!1),H):hr(x).local()}function Ti(x){return 15*-Math.round(x._d.getTimezoneOffset()/15)}function Xr(){return!!this.isValid()&&this._isUTC&&this._offset===0}_.updateOffset=function(){};var wa=/^(\-|\+)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/,Ba=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function pr(x,L){var H,ct,Xt,Se=x,Pe=null;return Oi(x)?Se={ms:x._milliseconds,d:x._days,M:x._months}:w(x)?(Se={},L?Se[L]=x:Se.milliseconds=x):(Pe=wa.exec(x))?(H=Pe[1]==="-"?-1:1,Se={y:0,d:xt(Pe[2])*H,h:xt(Pe[3])*H,m:xt(Pe[4])*H,s:xt(Pe[5])*H,ms:xt(lr(1e3*Pe[6]))*H}):(Pe=Ba.exec(x))?(H=Pe[1]==="-"?-1:1,Se={y:Jr(Pe[2],H),M:Jr(Pe[3],H),w:Jr(Pe[4],H),d:Jr(Pe[5],H),h:Jr(Pe[6],H),m:Jr(Pe[7],H),s:Jr(Pe[8],H)}):Se==null?Se={}:typeof Se=="object"&&("from"in Se||"to"in Se)&&(Xt=function(Ze,Je){var un;return Ze.isValid()&&Je.isValid()?(Je=ni(Je,Ze),Ze.isBefore(Je)?un=ti(Ze,Je):((un=ti(Je,Ze)).milliseconds=-un.milliseconds,un.months=-un.months),un):{milliseconds:0,months:0}}(hr(Se.from),hr(Se.to)),(Se={}).ms=Xt.milliseconds,Se.M=Xt.months),ct=new si(Se),Oi(x)&&P(x,"_locale")&&(ct._locale=x._locale),ct}function Jr(x,L){var H=x&&parseFloat(x.replace(",","."));return(isNaN(H)?0:H)*L}function ti(x,L){var H={};return H.months=L.month()-x.month()+12*(L.year()-x.year()),x.clone().add(H.months,"M").isAfter(L)&&--H.months,H.milliseconds=+L-+x.clone().add(H.months,"M"),H}function No(x,L){return function(H,ct){var Xt;return ct===null||isNaN(+ct)||(j(L,"moment()."+L+"(period, number) is deprecated. Please use moment()."+L+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),Xt=H,H=ct,ct=Xt),Xa(this,pr(H=typeof H=="string"?+H:H,ct),x),this}}function Xa(x,L,H,ct){var Xt=L._milliseconds,Se=lr(L._days),Pe=lr(L._months);x.isValid()&&(ct=ct==null||ct,Pe&&Yt(x,Ke(x,"Month")+Pe*H),Se&&Xe(x,"Date",Ke(x,"Date")+Se*H),Xt&&x._d.setTime(x._d.valueOf()+Xt*H),ct&&_.updateOffset(x,Se||Pe))}pr.fn=si.prototype,pr.invalid=function(){return pr(NaN)};var ia=No(1,"add"),ic=No(-1,"subtract");function Ht(x,L){var H=12*(L.year()-x.year())+(L.month()-x.month()),ct=x.clone().add(H,"months");return-(H+(L-ct<0?(L-ct)/(ct-x.clone().add(H-1,"months")):(L-ct)/(x.clone().add(H+1,"months")-ct)))||0}function Ve(x){var L;return x===void 0?this._locale._abbr:((L=cr(x))!=null&&(this._locale=L),this)}_.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",_.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var pn=mt("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(x){return x===void 0?this.localeData():this.locale(x)});function ar(){return this._locale}var ci=126227808e5;function Er(x,L){return(x%L+L)%L}function ui(x,L,H){return x<100&&0<=x?new Date(x+400,L,H)-ci:new Date(x,L,H).valueOf()}function La(x,L,H){return x<100&&0<=x?Date.UTC(x+400,L,H)-ci:Date.UTC(x,L,H)}function hi(x,L){de(0,[x,x.length],0,L)}function Ei(x,L,H,ct,Xt){var Se;return x==null?Fn(this,ct,Xt).year:((Se=Pn(x,ct,Xt))<L&&(L=Se),function(Pe,Ze,Je,un,gn){var zn=En(Pe,Ze,Je,un,gn),hn=Hn(zn.year,0,zn.dayOfYear);return this.year(hn.getUTCFullYear()),this.month(hn.getUTCMonth()),this.date(hn.getUTCDate()),this}.call(this,x,L,H,ct,Xt))}de(0,["gg",2],0,function(){return this.weekYear()%100}),de(0,["GG",2],0,function(){return this.isoWeekYear()%100}),hi("gggg","weekYear"),hi("ggggg","weekYear"),hi("GGGG","isoWeekYear"),hi("GGGGG","isoWeekYear"),$t("weekYear","gg"),$t("isoWeekYear","GG"),pe("weekYear",1),pe("isoWeekYear",1),ge("G",sn),ge("g",sn),ge("GG",dt,se),ge("gg",dt,se),ge("GGGG",Le,te),ge("gggg",Le,te),ge("GGGGG",en,st),ge("ggggg",en,st),Ye(["gggg","ggggg","GGGG","GGGGG"],function(x,L,H,ct){L[ct.substr(0,2)]=xt(x)}),Ye(["gg","GG"],function(x,L,H,ct){L[ct]=_.parseTwoDigitYear(x)}),de("Q",0,"Qo","quarter"),$t("quarter","Q"),pe("quarter",7),ge("Q",Qt),ln("Q",function(x,L){L[1]=3*(xt(x)-1)}),de("D",["DD",2],"Do","date"),$t("date","D"),pe("date",9),ge("D",dt),ge("DD",dt,se),ge("Do",function(x,L){return x?L._dayOfMonthOrdinalParse||L._ordinalParse:L._dayOfMonthOrdinalParseLenient}),ln(["D","DD"],2),ln("Do",function(x,L){L[2]=xt(x.match(dt)[0])});var Oo=Me("Date",!0);de("DDD",["DDDD",3],"DDDo","dayOfYear"),$t("dayOfYear","DDD"),pe("dayOfYear",4),ge("DDD",fe),ge("DDDD",Et),ln(["DDD","DDDD"],function(x,L,H){H._dayOfYear=xt(x)}),de("m",["mm",2],0,"minute"),$t("minute","m"),pe("minute",14),ge("m",dt),ge("mm",dt,se),ln(["m","mm"],4);var ac=Me("Minutes",!1);de("s",["ss",2],0,"second"),$t("second","s"),pe("second",15),ge("s",dt),ge("ss",dt,se),ln(["s","ss"],5);var Ia,oc=Me("Seconds",!1);for(de("S",0,0,function(){return~~(this.millisecond()/100)}),de(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),de(0,["SSS",3],0,"millisecond"),de(0,["SSSS",4],0,function(){return 10*this.millisecond()}),de(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),de(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),de(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),de(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),de(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),$t("millisecond","ms"),pe("millisecond",16),ge("S",fe,Qt),ge("SS",fe,se),ge("SSS",fe,Et),Ia="SSSS";Ia.length<=9;Ia+="S")ge(Ia,qe);function ys(x,L){L[6]=xt(1e3*("0."+x))}for(Ia="S";Ia.length<=9;Ia+="S")ln(Ia,ys);var nu=Me("Milliseconds",!1);de("z",0,0,"zoneAbbr"),de("zz",0,0,"zoneName");var on=vt.prototype;function Gc(x){return x}on.add=ia,on.calendar=function(x,L){var H=x||hr(),ct=ni(H,this).startOf("day"),Xt=_.calendarFormat(this,ct)||"sameElse",Se=L&&(yt(L[Xt])?L[Xt].call(this,H):L[Xt]);return this.format(Se||this.localeData().calendar(Xt,this,hr(H)))},on.clone=function(){return new vt(this)},on.diff=function(x,L,H){var ct,Xt,Se;if(!this.isValid())return NaN;if(!(ct=ni(x,this)).isValid())return NaN;switch(Xt=6e4*(ct.utcOffset()-this.utcOffset()),L=be(L)){case"year":Se=Ht(this,ct)/12;break;case"month":Se=Ht(this,ct);break;case"quarter":Se=Ht(this,ct)/3;break;case"second":Se=(this-ct)/1e3;break;case"minute":Se=(this-ct)/6e4;break;case"hour":Se=(this-ct)/36e5;break;case"day":Se=(this-ct-Xt)/864e5;break;case"week":Se=(this-ct-Xt)/6048e5;break;default:Se=this-ct}return H?Se:Gt(Se)},on.endOf=function(x){var L;if((x=be(x))===void 0||x==="millisecond"||!this.isValid())return this;var H=this._isUTC?La:ui;switch(x){case"year":L=H(this.year()+1,0,1)-1;break;case"quarter":L=H(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":L=H(this.year(),this.month()+1,1)-1;break;case"week":L=H(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":L=H(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":L=H(this.year(),this.month(),this.date()+1)-1;break;case"hour":L=this._d.valueOf(),L+=36e5-Er(L+(this._isUTC?0:6e4*this.utcOffset()),36e5)-1;break;case"minute":L=this._d.valueOf(),L+=6e4-Er(L,6e4)-1;break;case"second":L=this._d.valueOf(),L+=1e3-Er(L,1e3)-1}return this._d.setTime(L),_.updateOffset(this,!0),this},on.format=function(x){x||(x=this.isUtc()?_.defaultFormatUtc:_.defaultFormat);var L=Qe(this,x);return this.localeData().postformat(L)},on.from=function(x,L){return this.isValid()&&(Zt(x)&&x.isValid()||hr(x).isValid())?pr({to:this,from:x}).locale(this.locale()).humanize(!L):this.localeData().invalidDate()},on.fromNow=function(x){return this.from(hr(),x)},on.to=function(x,L){return this.isValid()&&(Zt(x)&&x.isValid()||hr(x).isValid())?pr({from:this,to:x}).locale(this.locale()).humanize(!L):this.localeData().invalidDate()},on.toNow=function(x){return this.to(hr(),x)},on.get=function(x){return yt(this[x=be(x)])?this[x]():this},on.invalidAt=function(){return J(this).overflow},on.isAfter=function(x,L){var H=Zt(x)?x:hr(x);return!(!this.isValid()||!H.isValid())&&((L=be(L)||"millisecond")==="millisecond"?this.valueOf()>H.valueOf():H.valueOf()<this.clone().startOf(L).valueOf())},on.isBefore=function(x,L){var H=Zt(x)?x:hr(x);return!(!this.isValid()||!H.isValid())&&((L=be(L)||"millisecond")==="millisecond"?this.valueOf()<H.valueOf():this.clone().endOf(L).valueOf()<H.valueOf())},on.isBetween=function(x,L,H,ct){var Xt=Zt(x)?x:hr(x),Se=Zt(L)?L:hr(L);return!!(this.isValid()&&Xt.isValid()&&Se.isValid())&&((ct=ct||"()")[0]==="("?this.isAfter(Xt,H):!this.isBefore(Xt,H))&&(ct[1]===")"?this.isBefore(Se,H):!this.isAfter(Se,H))},on.isSame=function(x,L){var H,ct=Zt(x)?x:hr(x);return!(!this.isValid()||!ct.isValid())&&((L=be(L)||"millisecond")==="millisecond"?this.valueOf()===ct.valueOf():(H=ct.valueOf(),this.clone().startOf(L).valueOf()<=H&&H<=this.clone().endOf(L).valueOf()))},on.isSameOrAfter=function(x,L){return this.isSame(x,L)||this.isAfter(x,L)},on.isSameOrBefore=function(x,L){return this.isSame(x,L)||this.isBefore(x,L)},on.isValid=function(){return ht(this)},on.lang=pn,on.locale=Ve,on.localeData=ar,on.max=ra,on.min=xn,on.parsingFlags=function(){return G({},J(this))},on.set=function(x,L){if(typeof x=="object")for(var H=function(Xt){var Se=[];for(var Pe in Xt)Se.push({unit:Pe,priority:xe[Pe]});return Se.sort(function(Ze,Je){return Ze.priority-Je.priority}),Se}(x=We(x)),ct=0;ct<H.length;ct++)this[H[ct].unit](x[H[ct].unit]);else if(yt(this[x=be(x)]))return this[x](L);return this},on.startOf=function(x){var L;if((x=be(x))===void 0||x==="millisecond"||!this.isValid())return this;var H=this._isUTC?La:ui;switch(x){case"year":L=H(this.year(),0,1);break;case"quarter":L=H(this.year(),this.month()-this.month()%3,1);break;case"month":L=H(this.year(),this.month(),1);break;case"week":L=H(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":L=H(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":L=H(this.year(),this.month(),this.date());break;case"hour":L=this._d.valueOf(),L-=Er(L+(this._isUTC?0:6e4*this.utcOffset()),36e5);break;case"minute":L=this._d.valueOf(),L-=Er(L,6e4);break;case"second":L=this._d.valueOf(),L-=Er(L,1e3)}return this._d.setTime(L),_.updateOffset(this,!0),this},on.subtract=ic,on.toArray=function(){var x=this;return[x.year(),x.month(),x.date(),x.hour(),x.minute(),x.second(),x.millisecond()]},on.toObject=function(){var x=this;return{years:x.year(),months:x.month(),date:x.date(),hours:x.hours(),minutes:x.minutes(),seconds:x.seconds(),milliseconds:x.milliseconds()}},on.toDate=function(){return new Date(this.valueOf())},on.toISOString=function(x){if(!this.isValid())return null;var L=x!==!0,H=L?this.clone().utc():this;return H.year()<0||9999<H.year()?Qe(H,L?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):yt(Date.prototype.toISOString)?L?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",Qe(H,"Z")):Qe(H,L?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},on.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var x="moment",L="";this.isLocal()||(x=this.utcOffset()===0?"moment.utc":"moment.parseZone",L="Z");var H="["+x+'("]',ct=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",Xt=L+'[")]';return this.format(H+ct+"-MM-DD[T]HH:mm:ss.SSS"+Xt)},on.toJSON=function(){return this.isValid()?this.toISOString():null},on.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},on.unix=function(){return Math.floor(this.valueOf()/1e3)},on.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},on.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},on.year=Tn,on.isLeapYear=function(){return Jn(this.year())},on.weekYear=function(x){return Ei.call(this,x,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},on.isoWeekYear=function(x){return Ei.call(this,x,this.isoWeek(),this.isoWeekday(),1,4)},on.quarter=on.quarters=function(x){return x==null?Math.ceil((this.month()+1)/3):this.month(3*(x-1)+this.month()%3)},on.month=Un,on.daysInMonth=function(){return Ee(this.year(),this.month())},on.week=on.weeks=function(x){var L=this.localeData().week(this);return x==null?L:this.add(7*(x-L),"d")},on.isoWeek=on.isoWeeks=function(x){var L=Fn(this,1,4).week;return x==null?L:this.add(7*(x-L),"d")},on.weeksInYear=function(){var x=this.localeData()._week;return Pn(this.year(),x.dow,x.doy)},on.isoWeeksInYear=function(){return Pn(this.year(),1,4)},on.date=Oo,on.day=on.days=function(x){if(!this.isValid())return x!=null?this:NaN;var L,H,ct=this._isUTC?this._d.getUTCDay():this._d.getDay();return x!=null?(L=x,H=this.localeData(),x=typeof L!="string"?L:isNaN(L)?typeof(L=H.weekdaysParse(L))=="number"?L:null:parseInt(L,10),this.add(x-ct,"d")):ct},on.weekday=function(x){if(!this.isValid())return x!=null?this:NaN;var L=(this.day()+7-this.localeData()._week.dow)%7;return x==null?L:this.add(x-L,"d")},on.isoWeekday=function(x){if(!this.isValid())return x!=null?this:NaN;if(x==null)return this.day()||7;var L,H,ct=(L=x,H=this.localeData(),typeof L=="string"?H.weekdaysParse(L)%7||7:isNaN(L)?null:L);return this.day(this.day()%7?ct:ct-7)},on.dayOfYear=function(x){var L=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return x==null?L:this.add(x-L,"d")},on.hour=on.hours=Ar,on.minute=on.minutes=ac,on.second=on.seconds=oc,on.millisecond=on.milliseconds=nu,on.utcOffset=function(x,L,H){var ct,Xt=this._offset||0;if(!this.isValid())return x!=null?this:NaN;if(x==null)return this._isUTC?Xt:Ti(this);if(typeof x=="string"){if((x=Gr(Te,x))===null)return this}else Math.abs(x)<16&&!H&&(x*=60);return!this._isUTC&&L&&(ct=Ti(this)),this._offset=x,this._isUTC=!0,ct!=null&&this.add(ct,"m"),Xt!==x&&(!L||this._changeInProgress?Xa(this,pr(x-Xt,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,_.updateOffset(this,!0),this._changeInProgress=null)),this},on.utc=function(x){return this.utcOffset(0,x)},on.local=function(x){return this._isUTC&&(this.utcOffset(0,x),this._isUTC=!1,x&&this.subtract(Ti(this),"m")),this},on.parseZone=function(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var x=Gr(Fe,this._i);x!=null?this.utcOffset(x):this.utcOffset(0,!0)}return this},on.hasAlignedHourOffset=function(x){return!!this.isValid()&&(x=x?hr(x).utcOffset():0,(this.utcOffset()-x)%60==0)},on.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},on.isLocal=function(){return!!this.isValid()&&!this._isUTC},on.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},on.isUtc=Xr,on.isUTC=Xr,on.zoneAbbr=function(){return this._isUTC?"UTC":""},on.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},on.dates=mt("dates accessor is deprecated. Use date instead.",Oo),on.months=mt("months accessor is deprecated. Use month instead",Un),on.years=mt("years accessor is deprecated. Use year instead",Tn),on.zone=mt("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function(x,L){return x!=null?(typeof x!="string"&&(x=-x),this.utcOffset(x,L),this):-this.utcOffset()}),on.isDSTShifted=mt("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){if(!A(this._isDSTShifted))return this._isDSTShifted;var x={};if(at(x,this),(x=li(x))._a){var L=x._isUTC?K(x._a):hr(x._a);this._isDSTShifted=this.isValid()&&0<It(x._a,L.toArray())}else this._isDSTShifted=!1;return this._isDSTShifted});var Mr=bt.prototype;function ho(x,L,H,ct){var Xt=cr(),Se=K().set(ct,L);return Xt[H](Se,x)}function da(x,L,H){if(w(x)&&(L=x,x=void 0),x=x||"",L!=null)return ho(x,L,H,"month");var ct,Xt=[];for(ct=0;ct<12;ct++)Xt[ct]=ho(x,ct,H,"month");return Xt}function Za(x,L,H,ct){typeof x=="boolean"?w(L)&&(H=L,L=void 0):(L=x,x=!1,w(H=L)&&(H=L,L=void 0)),L=L||"";var Xt,Se=cr(),Pe=x?Se._week.dow:0;if(H!=null)return ho(L,(H+Pe)%7,ct,"day");var Ze=[];for(Xt=0;Xt<7;Xt++)Ze[Xt]=ho(L,(Xt+Pe)%7,ct,"day");return Ze}Mr.calendar=function(x,L,H){var ct=this._calendar[x]||this._calendar.sameElse;return yt(ct)?ct.call(L,H):ct},Mr.longDateFormat=function(x){var L=this._longDateFormat[x],H=this._longDateFormat[x.toUpperCase()];return L||!H?L:(this._longDateFormat[x]=H.replace(/MMMM|MM|DD|dddd/g,function(ct){return ct.slice(1)}),this._longDateFormat[x])},Mr.invalidDate=function(){return this._invalidDate},Mr.ordinal=function(x){return this._ordinal.replace("%d",x)},Mr.preparse=Gc,Mr.postformat=Gc,Mr.relativeTime=function(x,L,H,ct){var Xt=this._relativeTime[H];return yt(Xt)?Xt(x,L,H,ct):Xt.replace(/%d/i,x)},Mr.pastFuture=function(x,L){var H=this._relativeTime[0<x?"future":"past"];return yt(H)?H(L):H.replace(/%s/i,L)},Mr.set=function(x){var L,H;for(H in x)yt(L=x[H])?this[H]=L:this["_"+H]=L;this._config=x,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},Mr.months=function(x,L){return x?y(this._months)?this._months[x.month()]:this._months[(this._months.isFormat||mn).test(L)?"format":"standalone"][x.month()]:y(this._months)?this._months:this._months.standalone},Mr.monthsShort=function(x,L){return x?y(this._monthsShort)?this._monthsShort[x.month()]:this._monthsShort[mn.test(L)?"format":"standalone"][x.month()]:y(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},Mr.monthsParse=function(x,L,H){var ct,Xt,Se;if(this._monthsParseExact)return function(Pe,Ze,Je){var un,gn,zn,hn=Pe.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],un=0;un<12;++un)zn=K([2e3,un]),this._shortMonthsParse[un]=this.monthsShort(zn,"").toLocaleLowerCase(),this._longMonthsParse[un]=this.months(zn,"").toLocaleLowerCase();return Je?Ze==="MMM"?(gn=Dn.call(this._shortMonthsParse,hn))!==-1?gn:null:(gn=Dn.call(this._longMonthsParse,hn))!==-1?gn:null:Ze==="MMM"?(gn=Dn.call(this._shortMonthsParse,hn))!==-1||(gn=Dn.call(this._longMonthsParse,hn))!==-1?gn:null:(gn=Dn.call(this._longMonthsParse,hn))!==-1||(gn=Dn.call(this._shortMonthsParse,hn))!==-1?gn:null}.call(this,x,L,H);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),ct=0;ct<12;ct++)if(Xt=K([2e3,ct]),H&&!this._longMonthsParse[ct]&&(this._longMonthsParse[ct]=new RegExp("^"+this.months(Xt,"").replace(".","")+"$","i"),this._shortMonthsParse[ct]=new RegExp("^"+this.monthsShort(Xt,"").replace(".","")+"$","i")),H||this._monthsParse[ct]||(Se="^"+this.months(Xt,"")+"|^"+this.monthsShort(Xt,""),this._monthsParse[ct]=new RegExp(Se.replace(".",""),"i")),H&&L==="MMMM"&&this._longMonthsParse[ct].test(x)||H&&L==="MMM"&&this._shortMonthsParse[ct].test(x)||!H&&this._monthsParse[ct].test(x))return ct},Mr.monthsRegex=function(x){return this._monthsParseExact?(P(this,"_monthsRegex")||Mn.call(this),x?this._monthsStrictRegex:this._monthsRegex):(P(this,"_monthsRegex")||(this._monthsRegex=Vn),this._monthsStrictRegex&&x?this._monthsStrictRegex:this._monthsRegex)},Mr.monthsShortRegex=function(x){return this._monthsParseExact?(P(this,"_monthsRegex")||Mn.call(this),x?this._monthsShortStrictRegex:this._monthsShortRegex):(P(this,"_monthsShortRegex")||(this._monthsShortRegex=Rn),this._monthsShortStrictRegex&&x?this._monthsShortStrictRegex:this._monthsShortRegex)},Mr.week=function(x){return Fn(x,this._week.dow,this._week.doy).week},Mr.firstDayOfYear=function(){return this._week.doy},Mr.firstDayOfWeek=function(){return this._week.dow},Mr.weekdays=function(x,L){var H=y(this._weekdays)?this._weekdays:this._weekdays[x&&x!==!0&&this._weekdays.isFormat.test(L)?"format":"standalone"];return x===!0?jn(H,this._week.dow):x?H[x.day()]:H},Mr.weekdaysMin=function(x){return x===!0?jn(this._weekdaysMin,this._week.dow):x?this._weekdaysMin[x.day()]:this._weekdaysMin},Mr.weekdaysShort=function(x){return x===!0?jn(this._weekdaysShort,this._week.dow):x?this._weekdaysShort[x.day()]:this._weekdaysShort},Mr.weekdaysParse=function(x,L,H){var ct,Xt,Se;if(this._weekdaysParseExact)return function(Pe,Ze,Je){var un,gn,zn,hn=Pe.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],un=0;un<7;++un)zn=K([2e3,1]).day(un),this._minWeekdaysParse[un]=this.weekdaysMin(zn,"").toLocaleLowerCase(),this._shortWeekdaysParse[un]=this.weekdaysShort(zn,"").toLocaleLowerCase(),this._weekdaysParse[un]=this.weekdays(zn,"").toLocaleLowerCase();return Je?Ze==="dddd"?(gn=Dn.call(this._weekdaysParse,hn))!==-1?gn:null:Ze==="ddd"?(gn=Dn.call(this._shortWeekdaysParse,hn))!==-1?gn:null:(gn=Dn.call(this._minWeekdaysParse,hn))!==-1?gn:null:Ze==="dddd"?(gn=Dn.call(this._weekdaysParse,hn))!==-1||(gn=Dn.call(this._shortWeekdaysParse,hn))!==-1||(gn=Dn.call(this._minWeekdaysParse,hn))!==-1?gn:null:Ze==="ddd"?(gn=Dn.call(this._shortWeekdaysParse,hn))!==-1||(gn=Dn.call(this._weekdaysParse,hn))!==-1||(gn=Dn.call(this._minWeekdaysParse,hn))!==-1?gn:null:(gn=Dn.call(this._minWeekdaysParse,hn))!==-1||(gn=Dn.call(this._weekdaysParse,hn))!==-1||(gn=Dn.call(this._shortWeekdaysParse,hn))!==-1?gn:null}.call(this,x,L,H);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),ct=0;ct<7;ct++)if(Xt=K([2e3,1]).day(ct),H&&!this._fullWeekdaysParse[ct]&&(this._fullWeekdaysParse[ct]=new RegExp("^"+this.weekdays(Xt,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[ct]=new RegExp("^"+this.weekdaysShort(Xt,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[ct]=new RegExp("^"+this.weekdaysMin(Xt,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[ct]||(Se="^"+this.weekdays(Xt,"")+"|^"+this.weekdaysShort(Xt,"")+"|^"+this.weekdaysMin(Xt,""),this._weekdaysParse[ct]=new RegExp(Se.replace(".",""),"i")),H&&L==="dddd"&&this._fullWeekdaysParse[ct].test(x)||H&&L==="ddd"&&this._shortWeekdaysParse[ct].test(x)||H&&L==="dd"&&this._minWeekdaysParse[ct].test(x)||!H&&this._weekdaysParse[ct].test(x))return ct},Mr.weekdaysRegex=function(x){return this._weekdaysParseExact?(P(this,"_weekdaysRegex")||_r.call(this),x?this._weekdaysStrictRegex:this._weekdaysRegex):(P(this,"_weekdaysRegex")||(this._weekdaysRegex=Sn),this._weekdaysStrictRegex&&x?this._weekdaysStrictRegex:this._weekdaysRegex)},Mr.weekdaysShortRegex=function(x){return this._weekdaysParseExact?(P(this,"_weekdaysRegex")||_r.call(this),x?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(P(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=oi),this._weekdaysShortStrictRegex&&x?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},Mr.weekdaysMinRegex=function(x){return this._weekdaysParseExact?(P(this,"_weekdaysRegex")||_r.call(this),x?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(P(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Nn),this._weekdaysMinStrictRegex&&x?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},Mr.isPM=function(x){return(x+"").toLowerCase().charAt(0)==="p"},Mr.meridiem=function(x,L,H){return 11<x?H?"pm":"PM":H?"am":"AM"},Qr("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(x){var L=x%10;return x+(xt(x%100/10)===1?"th":L===1?"st":L===2?"nd":L===3?"rd":"th")}}),_.lang=mt("moment.lang is deprecated. Use moment.locale instead.",Qr),_.langData=mt("moment.langData is deprecated. Use moment.localeData instead.",cr);var Si=Math.abs;function Bo(x,L,H,ct){var Xt=pr(L,H);return x._milliseconds+=ct*Xt._milliseconds,x._days+=ct*Xt._days,x._months+=ct*Xt._months,x._bubble()}function sc(x){return x<0?Math.floor(x):Math.ceil(x)}function cc(x){return 4800*x/146097}function lc(x){return 146097*x/4800}function Ta(x){return function(){return this.as(x)}}var ru=Ta("ms"),uc=Ta("s"),Ea=Ta("m"),ms=Ta("h"),Xc=Ta("d"),Gi=Ta("w"),Lo=Ta("M"),fi=Ta("Q"),Qo=Ta("y");function qn(x){return function(){return this.isValid()?this._data[x]:NaN}}var kr=qn("milliseconds"),Zc=qn("seconds"),Io=qn("minutes"),bs=qn("hours"),fo=qn("days"),po=qn("months"),go=qn("years"),ji=Math.round,Ci={ss:44,s:45,m:45,h:22,d:26,M:11},kn=Math.abs;function Xi(x){return(0<x)-(x<0)||+x}function pa(){if(!this.isValid())return this.localeData().invalidDate();var x,L,H=kn(this._milliseconds)/1e3,ct=kn(this._days),Xt=kn(this._months);L=Gt((x=Gt(H/60))/60),H%=60,x%=60;var Se=Gt(Xt/12),Pe=Xt%=12,Ze=ct,Je=L,un=x,gn=H?H.toFixed(3).replace(/\.?0+$/,""):"",zn=this.asSeconds();if(!zn)return"P0D";var hn=zn<0?"-":"",mr=Xi(this._months)!==Xi(zn)?"-":"",or=Xi(this._days)!==Xi(zn)?"-":"",$r=Xi(this._milliseconds)!==Xi(zn)?"-":"";return hn+"P"+(Se?mr+Se+"Y":"")+(Pe?mr+Pe+"M":"")+(Ze?or+Ze+"D":"")+(Je||un||gn?"T":"")+(Je?$r+Je+"H":"")+(un?$r+un+"M":"")+(gn?$r+gn+"S":"")}var Qn=si.prototype;return Qn.isValid=function(){return this._isValid},Qn.abs=function(){var x=this._data;return this._milliseconds=Si(this._milliseconds),this._days=Si(this._days),this._months=Si(this._months),x.milliseconds=Si(x.milliseconds),x.seconds=Si(x.seconds),x.minutes=Si(x.minutes),x.hours=Si(x.hours),x.months=Si(x.months),x.years=Si(x.years),this},Qn.add=function(x,L){return Bo(this,x,L,1)},Qn.subtract=function(x,L){return Bo(this,x,L,-1)},Qn.as=function(x){if(!this.isValid())return NaN;var L,H,ct=this._milliseconds;if((x=be(x))==="month"||x==="quarter"||x==="year")switch(L=this._days+ct/864e5,H=this._months+cc(L),x){case"month":return H;case"quarter":return H/3;case"year":return H/12}else switch(L=this._days+Math.round(lc(this._months)),x){case"week":return L/7+ct/6048e5;case"day":return L+ct/864e5;case"hour":return 24*L+ct/36e5;case"minute":return 1440*L+ct/6e4;case"second":return 86400*L+ct/1e3;case"millisecond":return Math.floor(864e5*L)+ct;default:throw new Error("Unknown unit "+x)}},Qn.asMilliseconds=ru,Qn.asSeconds=uc,Qn.asMinutes=Ea,Qn.asHours=ms,Qn.asDays=Xc,Qn.asWeeks=Gi,Qn.asMonths=Lo,Qn.asQuarters=fi,Qn.asYears=Qo,Qn.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*xt(this._months/12):NaN},Qn._bubble=function(){var x,L,H,ct,Xt,Se=this._milliseconds,Pe=this._days,Ze=this._months,Je=this._data;return 0<=Se&&0<=Pe&&0<=Ze||Se<=0&&Pe<=0&&Ze<=0||(Se+=864e5*sc(lc(Ze)+Pe),Ze=Pe=0),Je.milliseconds=Se%1e3,x=Gt(Se/1e3),Je.seconds=x%60,L=Gt(x/60),Je.minutes=L%60,H=Gt(L/60),Je.hours=H%24,Ze+=Xt=Gt(cc(Pe+=Gt(H/24))),Pe-=sc(lc(Xt)),ct=Gt(Ze/12),Ze%=12,Je.days=Pe,Je.months=Ze,Je.years=ct,this},Qn.clone=function(){return pr(this)},Qn.get=function(x){return x=be(x),this.isValid()?this[x+"s"]():NaN},Qn.milliseconds=kr,Qn.seconds=Zc,Qn.minutes=Io,Qn.hours=bs,Qn.days=fo,Qn.weeks=function(){return Gt(this.days()/7)},Qn.months=po,Qn.years=go,Qn.humanize=function(x){if(!this.isValid())return this.localeData().invalidDate();var L,H,ct,Xt,Se,Pe,Ze,Je,un,gn,zn=this.localeData(),hn=(L=!x,H=zn,ct=pr(this).abs(),Xt=ji(ct.as("s")),Se=ji(ct.as("m")),Pe=ji(ct.as("h")),Ze=ji(ct.as("d")),Je=ji(ct.as("M")),un=ji(ct.as("y")),(gn=Xt<=Ci.ss&&["s",Xt]||Xt<Ci.s&&["ss",Xt]||Se<=1&&["m"]||Se<Ci.m&&["mm",Se]||Pe<=1&&["h"]||Pe<Ci.h&&["hh",Pe]||Ze<=1&&["d"]||Ze<Ci.d&&["dd",Ze]||Je<=1&&["M"]||Je<Ci.M&&["MM",Je]||un<=1&&["y"]||["yy",un])[2]=L,gn[3]=0<+this,gn[4]=H,function(mr,or,$r,ri,Yr){return Yr.relativeTime(or||1,!!$r,mr,ri)}.apply(null,gn));return x&&(hn=zn.pastFuture(+this,hn)),zn.postformat(hn)},Qn.toISOString=pa,Qn.toString=pa,Qn.toJSON=pa,Qn.locale=Ve,Qn.localeData=ar,Qn.toIsoString=mt("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",pa),Qn.lang=pn,de("X",0,0,"unix"),de("x",0,0,"valueOf"),ge("x",sn),ge("X",/[+-]?\d+(\.\d{1,3})?/),ln("X",function(x,L,H){H._d=new Date(1e3*parseFloat(x,10))}),ln("x",function(x,L,H){H._d=new Date(xt(x))}),_.version="2.24.0",b=hr,_.fn=on,_.min=function(){return On("isBefore",[].slice.call(arguments,0))},_.max=function(){return On("isAfter",[].slice.call(arguments,0))},_.now=function(){return Date.now?Date.now():+new Date},_.utc=K,_.unix=function(x){return hr(1e3*x)},_.months=function(x,L){return da(x,L,"months")},_.isDate=F,_.locale=Qr,_.invalid=tt,_.duration=pr,_.isMoment=Zt,_.weekdays=function(x,L,H){return Za(x,L,H,"weekdays")},_.parseZone=function(){return hr.apply(null,arguments).parseZone()},_.localeData=cr,_.isDuration=Oi,_.monthsShort=function(x,L){return da(x,L,"monthsShort")},_.weekdaysMin=function(x,L,H){return Za(x,L,H,"weekdaysMin")},_.defineLocale=xa,_.updateLocale=function(x,L){if(L!=null){var H,ct,Xt=Nr;(ct=Ir(x))!=null&&(Xt=ct._config),(H=new bt(L=Y(Xt,L))).parentLocale=Gn[x],Gn[x]=H,Qr(x)}else Gn[x]!=null&&(Gn[x].parentLocale!=null?Gn[x]=Gn[x].parentLocale:Gn[x]!=null&&delete Gn[x]);return Gn[x]},_.locales=function(){return X(Gn)},_.weekdaysShort=function(x,L,H){return Za(x,L,H,"weekdaysShort")},_.normalizeUnits=be,_.relativeTimeRounding=function(x){return x===void 0?ji:typeof x=="function"&&(ji=x,!0)},_.relativeTimeThreshold=function(x,L){return Ci[x]!==void 0&&(L===void 0?Ci[x]:(Ci[x]=L,x==="s"&&(Ci.ss=L-1),!0))},_.calendarFormat=function(x,L){var H=x.diff(L,"days",!0);return H<-6?"sameElse":H<-1?"lastWeek":H<0?"lastDay":H<1?"sameDay":H<2?"nextDay":H<7?"nextWeek":"sameElse"},_.prototype=on,_.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},_}()},6470:M=>{function z(u){if(typeof u!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(u))}function p(u,_){for(var y,E="",A=0,w=-1,F=0,B=0;B<=u.length;++B){if(B<u.length)y=u.charCodeAt(B);else{if(y===47)break;y=47}if(y===47){if(!(w===B-1||F===1))if(w!==B-1&&F===2){if(E.length<2||A!==2||E.charCodeAt(E.length-1)!==46||E.charCodeAt(E.length-2)!==46){if(E.length>2){var P=E.lastIndexOf("/");if(P!==E.length-1){P===-1?(E="",A=0):A=(E=E.slice(0,P)).length-1-E.lastIndexOf("/"),w=B,F=0;continue}}else if(E.length===2||E.length===1){E="",A=0,w=B,F=0;continue}}_&&(E.length>0?E+="/..":E="..",A=2)}else E.length>0?E+="/"+u.slice(w+1,B):E=u.slice(w+1,B),A=B-w-1;w=B,F=0}else y===46&&F!==-1?++F:F=-1}return E}var b={resolve:function(){for(var u,_="",y=!1,E=arguments.length-1;E>=-1&&!y;E--){var A;E>=0?A=arguments[E]:(u===void 0&&(u=process.cwd()),A=u),z(A),A.length!==0&&(_=A+"/"+_,y=A.charCodeAt(0)===47)}return _=p(_,!y),y?_.length>0?"/"+_:"/":_.length>0?_:"."},normalize:function(u){if(z(u),u.length===0)return".";var _=u.charCodeAt(0)===47,y=u.charCodeAt(u.length-1)===47;return(u=p(u,!_)).length!==0||_||(u="."),u.length>0&&y&&(u+="/"),_?"/"+u:u},isAbsolute:function(u){return z(u),u.length>0&&u.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var u,_=0;_<arguments.length;++_){var y=arguments[_];z(y),y.length>0&&(u===void 0?u=y:u+="/"+y)}return u===void 0?".":b.normalize(u)},relative:function(u,_){if(z(u),z(_),u===_||(u=b.resolve(u))===(_=b.resolve(_)))return"";for(var y=1;y<u.length&&u.charCodeAt(y)===47;++y);for(var E=u.length,A=E-y,w=1;w<_.length&&_.charCodeAt(w)===47;++w);for(var F=_.length-w,B=A<F?A:F,P=-1,G=0;G<=B;++G){if(G===B){if(F>B){if(_.charCodeAt(w+G)===47)return _.slice(w+G+1);if(G===0)return _.slice(w+G)}else A>B&&(u.charCodeAt(y+G)===47?P=G:G===0&&(P=0));break}var K=u.charCodeAt(y+G);if(K!==_.charCodeAt(w+G))break;K===47&&(P=G)}var J="";for(G=y+P+1;G<=E;++G)G!==E&&u.charCodeAt(G)!==47||(J.length===0?J+="..":J+="/..");return J.length>0?J+_.slice(w+P):(w+=P,_.charCodeAt(w)===47&&++w,_.slice(w))},_makeLong:function(u){return u},dirname:function(u){if(z(u),u.length===0)return".";for(var _=u.charCodeAt(0),y=_===47,E=-1,A=!0,w=u.length-1;w>=1;--w)if((_=u.charCodeAt(w))===47){if(!A){E=w;break}}else A=!1;return E===-1?y?"/":".":y&&E===1?"//":u.slice(0,E)},basename:function(u,_){if(_!==void 0&&typeof _!="string")throw new TypeError('"ext" argument must be a string');z(u);var y,E=0,A=-1,w=!0;if(_!==void 0&&_.length>0&&_.length<=u.length){if(_.length===u.length&&_===u)return"";var F=_.length-1,B=-1;for(y=u.length-1;y>=0;--y){var P=u.charCodeAt(y);if(P===47){if(!w){E=y+1;break}}else B===-1&&(w=!1,B=y+1),F>=0&&(P===_.charCodeAt(F)?--F==-1&&(A=y):(F=-1,A=B))}return E===A?A=B:A===-1&&(A=u.length),u.slice(E,A)}for(y=u.length-1;y>=0;--y)if(u.charCodeAt(y)===47){if(!w){E=y+1;break}}else A===-1&&(w=!1,A=y+1);return A===-1?"":u.slice(E,A)},extname:function(u){z(u);for(var _=-1,y=0,E=-1,A=!0,w=0,F=u.length-1;F>=0;--F){var B=u.charCodeAt(F);if(B!==47)E===-1&&(A=!1,E=F+1),B===46?_===-1?_=F:w!==1&&(w=1):_!==-1&&(w=-1);else if(!A){y=F+1;break}}return _===-1||E===-1||w===0||w===1&&_===E-1&&_===y+1?"":u.slice(_,E)},format:function(u){if(u===null||typeof u!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof u);return function(_,y){var E=y.dir||y.root,A=y.base||(y.name||"")+(y.ext||"");return E?E===y.root?E+A:E+"/"+A:A}(0,u)},parse:function(u){z(u);var _={root:"",dir:"",base:"",ext:"",name:""};if(u.length===0)return _;var y,E=u.charCodeAt(0),A=E===47;A?(_.root="/",y=1):y=0;for(var w=-1,F=0,B=-1,P=!0,G=u.length-1,K=0;G>=y;--G)if((E=u.charCodeAt(G))!==47)B===-1&&(P=!1,B=G+1),E===46?w===-1?w=G:K!==1&&(K=1):w!==-1&&(K=-1);else if(!P){F=G+1;break}return w===-1||B===-1||K===0||K===1&&w===B-1&&w===F+1?B!==-1&&(_.base=_.name=F===0&&A?u.slice(1,B):u.slice(F,B)):(F===0&&A?(_.name=u.slice(1,w),_.base=u.slice(1,B)):(_.name=u.slice(F,w),_.base=u.slice(F,B)),_.ext=u.slice(w,B)),F>0?_.dir=u.slice(0,F-1):A&&(_.dir="/"),_},sep:"/",delimiter:":",win32:null,posix:null};b.posix=b,M.exports=b},555:()=>{},8218:()=>{},8009:()=>{},5354:()=>{},6878:()=>{},8183:()=>{},1428:()=>{},4551:()=>{},8800:()=>{},1993:()=>{},3069:()=>{},9143:()=>{},7543:(M,z,p)=>{function b(t,e){return t==null||e==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function u(t){let e=t,r=t,a=t;function o(s,h,f=0,m=s.length){if(f<m){if(r(h,h)!==0)return m;do{const v=f+m>>>1;a(s[v],h)<0?f=v+1:m=v}while(f<m)}return f}return t.length!==2&&(e=(s,h)=>t(s)-h,r=b,a=(s,h)=>b(t(s),h)),{left:o,center:function(s,h,f=0,m=s.length){const v=o(s,h,f,m-1);return v>f&&e(s[v-1],h)>-e(s[v],h)?v-1:v},right:function(s,h,f=0,m=s.length){if(f<m){if(r(h,h)!==0)return m;do{const v=f+m>>>1;a(s[v],h)<=0?f=v+1:m=v}while(f<m)}return f}}}function _(t){return t===null?NaN:+t}p.r(z),p.d(z,{Adder:()=>vt,Delaunay:()=>Hu,FormatSpecifier:()=>us,InternMap:()=>xt,InternSet:()=>It,Node:()=>zc,Voronoi:()=>R1,ZoomTransform:()=>Zo,active:()=>f1,arc:()=>yv,area:()=>Hy,areaRadial:()=>Qy,ascending:()=>b,autoType:()=>Tl,axisBottom:()=>cr,axisLeft:()=>ea,axisRight:()=>xa,axisTop:()=>Qr,bin:()=>en,bisect:()=>F,bisectCenter:()=>w,bisectLeft:()=>A,bisectRight:()=>E,bisector:()=>u,blob:()=>Us,brush:()=>x1,brushSelection:()=>dl,brushX:()=>v1,brushY:()=>_1,buffer:()=>J1,chord:()=>wu,chordDirected:()=>Eu,chordTranspose:()=>Tu,cluster:()=>A3,color:()=>hn,contourDensity:()=>vf,contours:()=>L1,count:()=>B,create:()=>iv,creator:()=>Bo,cross:()=>J,csv:()=>n0,csvFormat:()=>js,csvFormatBody:()=>Zu,csvFormatRow:()=>Y1,csvFormatRows:()=>Qu,csvFormatValue:()=>U1,csvParse:()=>cn,csvParseRows:()=>Ps,cubehelix:()=>Ua,cumsum:()=>ht,curveBasis:()=>Iv,curveBasisClosed:()=>Fv,curveBasisOpen:()=>Rv,curveBumpX:()=>Pv,curveBumpY:()=>jv,curveBundle:()=>zv,curveCardinal:()=>Yv,curveCardinalClosed:()=>Uv,curveCardinalOpen:()=>$v,curveCatmullRom:()=>Wv,curveCatmullRomClosed:()=>qv,curveCatmullRomOpen:()=>Vv,curveLinear:()=>G0,curveLinearClosed:()=>Hv,curveMonotoneX:()=>Gv,curveMonotoneY:()=>Xv,curveNatural:()=>Zv,curveStep:()=>Qv,curveStepAfter:()=>Jv,curveStepBefore:()=>Kv,descending:()=>tt,deviation:()=>at,difference:()=>Dr,disjoint:()=>Tr,dispatch:()=>nr,drag:()=>Mf,dragDisable:()=>po,dragEnable:()=>go,dsv:()=>e0,dsvFormat:()=>wl,easeBack:()=>Nl,easeBackIn:()=>Wo,easeBackInOut:()=>Nl,easeBackOut:()=>Lf,easeBounce:()=>Lc,easeBounceIn:()=>Q1,easeBounceInOut:()=>br,easeBounceOut:()=>Lc,easeCircle:()=>Ml,easeCircleIn:()=>X1,easeCircleInOut:()=>Ml,easeCircleOut:()=>Z1,easeCubic:()=>Ss,easeCubicIn:()=>yu,easeCubicInOut:()=>Ss,easeCubicOut:()=>sl,easeElastic:()=>Ol,easeElasticIn:()=>K1,easeElasticInOut:()=>Ys,easeElasticOut:()=>Ol,easeExp:()=>G1,easeExpIn:()=>ya,easeExpInOut:()=>G1,easeExpOut:()=>Bf,easeLinear:()=>Of,easePoly:()=>th,easePolyIn:()=>Al,easePolyInOut:()=>th,easePolyOut:()=>W1,easeQuad:()=>Cl,easeQuadIn:()=>Sl,easeQuadInOut:()=>Cl,easeQuadOut:()=>$i,easeSin:()=>ao,easeSinIn:()=>V1,easeSinInOut:()=>ao,easeSinOut:()=>H1,every:()=>In,extent:()=>ut,fcumsum:()=>Gt,filter:()=>Fn,flatGroup:()=>Ct,flatRollup:()=>$t,forceCenter:()=>ah,forceCollide:()=>Ki,forceLink:()=>Fi,forceManyBody:()=>a0,forceRadial:()=>o0,forceSimulation:()=>i0,forceX:()=>s0,forceY:()=>Rc,format:()=>Fl,formatDefaultLocale:()=>u0,formatLocale:()=>Pc,formatPrefix:()=>dh,formatSpecifier:()=>so,fsum:()=>Zt,geoAlbers:()=>xp,geoAlbersUsa:()=>h3,geoArea:()=>gr,geoAzimuthalEqualArea:()=>f3,geoAzimuthalEqualAreaRaw:()=>gd,geoAzimuthalEquidistant:()=>d3,geoAzimuthalEquidistantRaw:()=>yd,geoBounds:()=>Om,geoCentroid:()=>Pm,geoCircle:()=>jm,geoClipAntimeridian:()=>Gf,geoClipCircle:()=>W2,geoClipExtent:()=>Um,geoClipRectangle:()=>y0,geoConicConformal:()=>g3,geoConicConformalRaw:()=>Tp,geoConicEqualArea:()=>S0,geoConicEqualAreaRaw:()=>_p,geoConicEquidistant:()=>m3,geoConicEquidistantRaw:()=>Ep,geoContains:()=>Gm,geoDistance:()=>m0,geoEqualEarth:()=>b3,geoEqualEarthRaw:()=>md,geoEquirectangular:()=>y3,geoEquirectangularRaw:()=>Ah,geoGnomonic:()=>v3,geoGnomonicRaw:()=>bd,geoGraticule:()=>tp,geoGraticule10:()=>Xm,geoIdentity:()=>_3,geoInterpolate:()=>Zm,geoLength:()=>q2,geoMercator:()=>p3,geoMercatorRaw:()=>Ch,geoNaturalEarth1:()=>x3,geoNaturalEarth1Raw:()=>vd,geoOrthographic:()=>k3,geoOrthographicRaw:()=>_d,geoPath:()=>s3,geoProjection:()=>Go,geoProjectionMutator:()=>dd,geoRotation:()=>F2,geoStereographic:()=>w3,geoStereographicRaw:()=>xd,geoStream:()=>Nt,geoTransform:()=>c3,geoTransverseMercator:()=>T3,geoTransverseMercatorRaw:()=>kd,gray:()=>yf,greatest:()=>mn,greatestIndex:()=>At,group:()=>yt,groupSort:()=>Qe,groups:()=>Y,hcl:()=>Ya,hierarchy:()=>wd,histogram:()=>en,hsl:()=>fc,html:()=>cs,image:()=>Ff,index:()=>xe,indexes:()=>pe,interpolate:()=>Kn,interpolateArray:()=>rf,interpolateBasis:()=>Zh,interpolateBasisClosed:()=>di,interpolateBlues:()=>jb,interpolateBrBG:()=>bb,interpolateBuGn:()=>Cb,interpolateBuPu:()=>Ab,interpolateCividis:()=>qb,interpolateCool:()=>Gb,interpolateCubehelix:()=>i4,interpolateCubehelixDefault:()=>Vb,interpolateCubehelixLong:()=>I0,interpolateDate:()=>Kh,interpolateDiscrete:()=>Q3,interpolateGnBu:()=>Mb,interpolateGreens:()=>zb,interpolateGreys:()=>Yb,interpolateHcl:()=>n4,interpolateHclLong:()=>r4,interpolateHsl:()=>J3,interpolateHslLong:()=>t4,interpolateHue:()=>K3,interpolateInferno:()=>nv,interpolateLab:()=>e4,interpolateMagma:()=>ev,interpolateNumber:()=>oa,interpolateNumberArray:()=>gc,interpolateObject:()=>Zi,interpolateOrRd:()=>Db,interpolateOranges:()=>Wb,interpolatePRGn:()=>vb,interpolatePiYG:()=>_b,interpolatePlasma:()=>rv,interpolatePuBu:()=>Ob,interpolatePuBuGn:()=>Nb,interpolatePuOr:()=>xb,interpolatePuRd:()=>Bb,interpolatePurples:()=>Ub,interpolateRainbow:()=>Xb,interpolateRdBu:()=>kb,interpolateRdGy:()=>wb,interpolateRdPu:()=>Lb,interpolateRdYlBu:()=>Tb,interpolateRdYlGn:()=>Eb,interpolateReds:()=>$b,interpolateRgb:()=>pc,interpolateRgbBasis:()=>Jc,interpolateRgbBasisClosed:()=>nf,interpolateRound:()=>L0,interpolateSinebow:()=>Kb,interpolateSpectral:()=>Sb,interpolateString:()=>Fa,interpolateTransformCss:()=>a1,interpolateTransformSvg:()=>il,interpolateTurbo:()=>Jb,interpolateViridis:()=>tv,interpolateWarm:()=>Hb,interpolateYlGn:()=>Fb,interpolateYlGnBu:()=>Ib,interpolateYlOrBr:()=>Rb,interpolateYlOrRd:()=>Pb,interpolateZoom:()=>Wp,interrupt:()=>Ja,intersection:()=>Sn,interval:()=>g6,isoFormat:()=>f6,isoParse:()=>p6,json:()=>Pf,lab:()=>bl,lch:()=>mf,least:()=>Xe,leastIndex:()=>Ee,line:()=>f2,lineRadial:()=>Zy,linkHorizontal:()=>Sv,linkRadial:()=>Av,linkVertical:()=>Cv,local:()=>$y,map:()=>Pn,matcher:()=>Vr,max:()=>qe,maxIndex:()=>An,mean:()=>Ie,median:()=>ln,merge:()=>Ye,min:()=>sn,minIndex:()=>fn,mode:()=>Jn,namespace:()=>Xr,namespaces:()=>Ti,nice:()=>fe,now:()=>vc,pack:()=>R3,packEnclose:()=>Cp,packSiblings:()=>I3,pairs:()=>Dn,partition:()=>P3,path:()=>$o,permute:()=>De,pie:()=>_v,piecewise:()=>Gp,pointRadial:()=>Vh,pointer:()=>sa,pointers:()=>ov,polygonArea:()=>o4,polygonCentroid:()=>s4,polygonContains:()=>h4,polygonHull:()=>u4,polygonLength:()=>f4,precisionFixed:()=>Pl,precisionPrefix:()=>jl,precisionRound:()=>ph,quadtree:()=>Fc,quantile:()=>Oe,quantileSorted:()=>Be,quantize:()=>a4,quickselect:()=>Fe,radialArea:()=>Qy,radialLine:()=>Zy,randomBates:()=>y4,randomBernoulli:()=>v4,randomBeta:()=>Kp,randomBinomial:()=>Jp,randomCauchy:()=>x4,randomExponential:()=>m4,randomGamma:()=>Nd,randomGeometric:()=>Qp,randomInt:()=>p4,randomIrwinHall:()=>Zp,randomLcg:()=>T4,randomLogNormal:()=>g4,randomLogistic:()=>k4,randomNormal:()=>Dd,randomPareto:()=>b4,randomPoisson:()=>w4,randomUniform:()=>d4,randomWeibull:()=>_4,range:()=>Me,rank:()=>Ke,reduce:()=>jn,reverse:()=>fa,rgb:()=>ri,ribbon:()=>S1,ribbonArrow:()=>C1,rollup:()=>be,rollups:()=>We,scaleBand:()=>Ld,scaleDiverging:()=>dy,scaleDivergingLog:()=>py,scaleDivergingPow:()=>s2,scaleDivergingSqrt:()=>sb,scaleDivergingSymlog:()=>gy,scaleIdentity:()=>ag,scaleImplicit:()=>Od,scaleLinear:()=>ig,scaleLog:()=>ug,scaleOrdinal:()=>Bd,scalePoint:()=>E4,scalePow:()=>zd,scaleQuantile:()=>mg,scaleQuantize:()=>bg,scaleRadial:()=>yg,scaleSequential:()=>ly,scaleSequentialLog:()=>uy,scaleSequentialPow:()=>o2,scaleSequentialQuantile:()=>fy,scaleSequentialSqrt:()=>ob,scaleSequentialSymlog:()=>hy,scaleSqrt:()=>B4,scaleSymlog:()=>dg,scaleThreshold:()=>vg,scaleTime:()=>ib,scaleUtc:()=>ab,scan:()=>vr,schemeAccent:()=>lb,schemeBlues:()=>Ry,schemeBrBG:()=>yy,schemeBuGn:()=>Ey,schemeBuPu:()=>Sy,schemeCategory10:()=>cb,schemeDark2:()=>ub,schemeGnBu:()=>Cy,schemeGreens:()=>Py,schemeGreys:()=>jy,schemeOrRd:()=>Ay,schemeOranges:()=>Uy,schemePRGn:()=>my,schemePaired:()=>hb,schemePastel1:()=>fb,schemePastel2:()=>db,schemePiYG:()=>by,schemePuBu:()=>Dy,schemePuBuGn:()=>My,schemePuOr:()=>vy,schemePuRd:()=>Ny,schemePurples:()=>zy,schemeRdBu:()=>_y,schemeRdGy:()=>xy,schemeRdPu:()=>Oy,schemeRdYlBu:()=>ky,schemeRdYlGn:()=>wy,schemeReds:()=>Yy,schemeSet1:()=>pb,schemeSet2:()=>gb,schemeSet3:()=>yb,schemeSpectral:()=>Ty,schemeTableau10:()=>mb,schemeYlGn:()=>Ly,schemeYlGnBu:()=>By,schemeYlOrBr:()=>Iy,schemeYlOrRd:()=>Fy,select:()=>kr,selectAll:()=>sv,selection:()=>qn,selector:()=>wi,selectorAll:()=>Or,shuffle:()=>Yt,shuffler:()=>Un,some:()=>En,sort:()=>me,stack:()=>n6,stackOffsetDiverging:()=>i6,stackOffsetExpand:()=>r6,stackOffsetNone:()=>Jl,stackOffsetSilhouette:()=>a6,stackOffsetWiggle:()=>o6,stackOrderAppearance:()=>xm,stackOrderAscending:()=>km,stackOrderDescending:()=>c6,stackOrderInsideOut:()=>l6,stackOrderNone:()=>tu,stackOrderReverse:()=>u6,stratify:()=>U3,style:()=>Ve,subset:()=>Cr,sum:()=>Rn,superset:()=>Nn,svg:()=>Aa,symbol:()=>Lv,symbolCircle:()=>g2,symbolCross:()=>Ky,symbolDiamond:()=>tm,symbolSquare:()=>rm,symbolStar:()=>nm,symbolTriangle:()=>im,symbolWye:()=>am,symbols:()=>Bv,text:()=>Ic,thresholdFreedmanDiaconis:()=>ge,thresholdScott:()=>re,thresholdSturges:()=>Le,tickFormat:()=>rg,tickIncrement:()=>ft,tickStep:()=>Mt,ticks:()=>dt,timeDay:()=>Ph,timeDays:()=>R4,timeFormat:()=>r2,timeFormatDefaultLocale:()=>cy,timeFormatLocale:()=>Vg,timeFriday:()=>Ag,timeFridays:()=>U4,timeHour:()=>Gd,timeHours:()=>F4,timeInterval:()=>Ri,timeMillisecond:()=>Vd,timeMilliseconds:()=>_g,timeMinute:()=>Hd,timeMinutes:()=>I4,timeMonday:()=>jh,timeMondays:()=>P4,timeMonth:()=>Xd,timeMonths:()=>W4,timeParse:()=>Hg,timeSaturday:()=>Mg,timeSaturdays:()=>$4,timeSecond:()=>Xs,timeSeconds:()=>kg,timeSunday:()=>Xl,timeSundays:()=>Dg,timeThursday:()=>$c,timeThursdays:()=>Y4,timeTickInterval:()=>qg,timeTicks:()=>Wg,timeTuesday:()=>Sg,timeTuesdays:()=>j4,timeWednesday:()=>Cg,timeWednesdays:()=>z4,timeWeek:()=>Xl,timeWeeks:()=>Dg,timeYear:()=>Zs,timeYears:()=>q4,timeout:()=>nl,timer:()=>Po,timerFlush:()=>ks,transition:()=>kc,transpose:()=>Vn,tree:()=>V3,treemap:()=>H3,treemapBinary:()=>G3,treemapDice:()=>Lh,treemapResquarify:()=>Z3,treemapSlice:()=>B0,treemapSliceDice:()=>X3,treemapSquarify:()=>Up,tsv:()=>If,tsvFormat:()=>Df,tsvFormatBody:()=>Bc,tsvFormatRow:()=>$1,tsvFormatRows:()=>Nf,tsvFormatValue:()=>Ju,tsvParse:()=>Ku,tsvParseRows:()=>io,union:()=>yr,utcDay:()=>zh,utcDays:()=>G4,utcFormat:()=>j0,utcFriday:()=>Rg,utcFridays:()=>J4,utcHour:()=>Kd,utcHours:()=>H4,utcMillisecond:()=>Vd,utcMilliseconds:()=>_g,utcMinute:()=>Qd,utcMinutes:()=>V4,utcMonday:()=>Yh,utcMondays:()=>X4,utcMonth:()=>Jd,utcMonths:()=>e5,utcParse:()=>i2,utcSaturday:()=>Pg,utcSaturdays:()=>t5,utcSecond:()=>Xs,utcSeconds:()=>kg,utcSunday:()=>Zl,utcSundays:()=>jg,utcThursday:()=>qc,utcThursdays:()=>K4,utcTickInterval:()=>$g,utcTicks:()=>Ug,utcTuesday:()=>Ig,utcTuesdays:()=>Z4,utcWednesday:()=>Fg,utcWednesdays:()=>Q4,utcWeek:()=>Zl,utcWeeks:()=>jg,utcYear:()=>Qs,utcYears:()=>n5,variance:()=>kt,window:()=>Xa,xml:()=>ih,zip:()=>Hn,zoom:()=>k6,zoomIdentity:()=>ef,zoomTransform:()=>Em});const y=u(b),E=y.right,A=y.left,w=u(_).center,F=E;function B(t,e){let r=0;if(e===void 0)for(let a of t)a!=null&&(a=+a)>=a&&++r;else{let a=-1;for(let o of t)(o=e(o,++a,t))!=null&&(o=+o)>=o&&++r}return r}function P(t){return 0|t.length}function G(t){return!(t>0)}function K(t){return typeof t!="object"||"length"in t?t:Array.from(t)}function J(...t){const e=typeof t[t.length-1]=="function"&&function(h){return f=>h(...f)}(t.pop()),r=(t=t.map(K)).map(P),a=t.length-1,o=new Array(a+1).fill(0),s=[];if(a<0||r.some(G))return s;for(;;){s.push(o.map((f,m)=>t[m][f]));let h=a;for(;++o[h]===r[h];){if(h===0)return e?s.map(e):s;o[h--]=0}}}function ht(t,e){var r=0,a=0;return Float64Array.from(t,e===void 0?o=>r+=+o||0:o=>r+=+e(o,a++,t)||0)}function tt(t,e){return t==null||e==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function kt(t,e){let r,a=0,o=0,s=0;if(e===void 0)for(let h of t)h!=null&&(h=+h)>=h&&(r=h-o,o+=r/++a,s+=r*(h-o));else{let h=-1;for(let f of t)(f=e(f,++h,t))!=null&&(f=+f)>=f&&(r=f-o,o+=r/++a,s+=r*(f-o))}if(a>1)return s/(a-1)}function at(t,e){const r=kt(t,e);return r&&Math.sqrt(r)}function ut(t,e){let r,a;if(e===void 0)for(const o of t)o!=null&&(r===void 0?o>=o&&(r=a=o):(r>o&&(r=o),a<o&&(a=o)));else{let o=-1;for(let s of t)(s=e(s,++o,t))!=null&&(r===void 0?s>=s&&(r=a=s):(r>s&&(r=s),a<s&&(a=s)))}return[r,a]}class vt{constructor(){this._partials=new Float64Array(32),this._n=0}add(e){const r=this._partials;let a=0;for(let o=0;o<this._n&&o<32;o++){const s=r[o],h=e+s,f=Math.abs(e)<Math.abs(s)?e-(h-s):s-(h-e);f&&(r[a++]=f),e=h}return r[a]=e,this._n=a+1,this}valueOf(){const e=this._partials;let r,a,o,s=this._n,h=0;if(s>0){for(h=e[--s];s>0&&(r=h,a=e[--s],h=r+a,o=a-(h-r),!o););s>0&&(o<0&&e[s-1]<0||o>0&&e[s-1]>0)&&(a=2*o,r=h+a,a==r-h&&(h=r))}return h}}function Zt(t,e){const r=new vt;if(e===void 0)for(let a of t)(a=+a)&&r.add(a);else{let a=-1;for(let o of t)(o=+e(o,++a,t))&&r.add(o)}return+r}function Gt(t,e){const r=new vt;let a=-1;return Float64Array.from(t,e===void 0?o=>r.add(+o||0):o=>r.add(+e(o,++a,t)||0))}class xt extends Map{constructor(e,r=ot){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:r}}),e!=null)for(const[a,o]of e)this.set(a,o)}get(e){return super.get(wt(this,e))}has(e){return super.has(wt(this,e))}set(e,r){return super.set(mt(this,e),r)}delete(e){return super.delete(X(this,e))}}class It extends Set{constructor(e,r=ot){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:r}}),e!=null)for(const a of e)this.add(a)}has(e){return super.has(wt(this,e))}add(e){return super.add(mt(this,e))}delete(e){return super.delete(X(this,e))}}function wt({_intern:t,_key:e},r){const a=e(r);return t.has(a)?t.get(a):r}function mt({_intern:t,_key:e},r){const a=e(r);return t.has(a)?t.get(a):(t.set(a,r),r)}function X({_intern:t,_key:e},r){const a=e(r);return t.has(a)&&(r=t.get(a),t.delete(a)),r}function ot(t){return t!==null&&typeof t=="object"?t.valueOf():t}function j(t){return t}function yt(t,...e){return Ae(t,j,j,e)}function Y(t,...e){return Ae(t,Array.from,j,e)}function bt(t,e){for(let r=1,a=e.length;r<a;++r)t=t.flatMap(o=>o.pop().map(([s,h])=>[...o,s,h]));return t}function Ct(t,...e){return bt(Y(t,...e),e)}function $t(t,e,...r){return bt(We(t,e,...r),r)}function be(t,e,...r){return Ae(t,j,e,r)}function We(t,e,...r){return Ae(t,Array.from,e,r)}function xe(t,...e){return Ae(t,j,_e,e)}function pe(t,...e){return Ae(t,Array.from,_e,e)}function _e(t){if(t.length!==1)throw new Error("duplicate key");return t[0]}function Ae(t,e,r,a){return function o(s,h){if(h>=a.length)return r(s);const f=new xt,m=a[h++];let v=-1;for(const C of s){const I=m(C,++v,s),D=f.get(I);D?D.push(C):f.set(I,[C])}for(const[C,I]of f)f.set(C,o(I,h));return e(f)}(t,0)}function De(t,e){return Array.from(e,r=>t[r])}function me(t,...e){if(typeof t[Symbol.iterator]!="function")throw new TypeError("values is not iterable");t=Array.from(t);let[r]=e;if(r&&r.length!==2||e.length>1){const a=Uint32Array.from(t,(o,s)=>s);return e.length>1?(e=e.map(o=>t.map(o)),a.sort((o,s)=>{for(const h of e){const f=de(h[o],h[s]);if(f)return f}})):(r=t.map(r),a.sort((o,s)=>de(r[o],r[s]))),De(t,a)}return t.sort(wn(r))}function wn(t=b){if(t===b)return de;if(typeof t!="function")throw new TypeError("compare is not a function");return(e,r)=>{const a=t(e,r);return a||a===0?a:(t(r,r)===0)-(t(e,e)===0)}}function de(t,e){return(t==null||!(t>=t))-(e==null||!(e>=e))||(t<e?-1:t>e?1:0)}function Qe(t,e,r){return(e.length!==2?me(be(t,e,r),([a,o],[s,h])=>b(o,h)||b(a,s)):me(yt(t,r),([a,o],[s,h])=>e(o,h)||b(a,s))).map(([a])=>a)}var ne=Array.prototype,Qt=ne.slice;function se(t){return()=>t}var Et=Math.sqrt(50),te=Math.sqrt(10),st=Math.sqrt(2);function dt(t,e,r){var a,o,s,h,f=-1;if(r=+r,(t=+t)==(e=+e)&&r>0)return[t];if((a=e<t)&&(o=t,t=e,e=o),(h=ft(t,e,r))===0||!isFinite(h))return[];if(h>0){let m=Math.round(t/h),v=Math.round(e/h);for(m*h<t&&++m,v*h>e&&--v,s=new Array(o=v-m+1);++f<o;)s[f]=(m+f)*h}else{h=-h;let m=Math.round(t*h),v=Math.round(e*h);for(m/h<t&&++m,v/h>e&&--v,s=new Array(o=v-m+1);++f<o;)s[f]=(m+f)/h}return a&&s.reverse(),s}function ft(t,e,r){var a=(e-t)/Math.max(0,r),o=Math.floor(Math.log(a)/Math.LN10),s=a/Math.pow(10,o);return o>=0?(s>=Et?10:s>=te?5:s>=st?2:1)*Math.pow(10,o):-Math.pow(10,-o)/(s>=Et?10:s>=te?5:s>=st?2:1)}function Mt(t,e,r){var a=Math.abs(e-t)/Math.max(0,r),o=Math.pow(10,Math.floor(Math.log(a)/Math.LN10)),s=a/o;return s>=Et?o*=10:s>=te?o*=5:s>=st&&(o*=2),e<t?-o:o}function fe(t,e,r){let a;for(;;){const o=ft(t,e,r);if(o===a||o===0||!isFinite(o))return[t,e];o>0?(t=Math.floor(t/o)*o,e=Math.ceil(e/o)*o):o<0&&(t=Math.ceil(t*o)/o,e=Math.floor(e*o)/o),a=o}}function Le(t){return Math.ceil(Math.log(B(t))/Math.LN2)+1}function en(){var t=j,e=ut,r=Le;function a(o){Array.isArray(o)||(o=Array.from(o));var s,h,f=o.length,m=new Array(f);for(s=0;s<f;++s)m[s]=t(o[s],s,o);var v=e(m),C=v[0],I=v[1],D=r(m,C,I);if(!Array.isArray(D)){const $=I,W=+D;if(e===ut&&([C,I]=fe(C,I,W)),(D=dt(C,I,W))[D.length-1]>=I)if($>=I&&e===ut){const it=ft(C,I,W);isFinite(it)&&(it>0?I=(Math.floor(I/it)+1)*it:it<0&&(I=(Math.ceil(I*-it)+1)/-it))}else D.pop()}for(var R=D.length;D[0]<=C;)D.shift(),--R;for(;D[R-1]>I;)D.pop(),--R;var Z,U=new Array(R+1);for(s=0;s<=R;++s)(Z=U[s]=[]).x0=s>0?D[s-1]:C,Z.x1=s<R?D[s]:I;for(s=0;s<f;++s)(h=m[s])!=null&&C<=h&&h<=I&&U[F(D,h,0,R)].push(o[s]);return U}return a.value=function(o){return arguments.length?(t=typeof o=="function"?o:se(o),a):t},a.domain=function(o){return arguments.length?(e=typeof o=="function"?o:se([o[0],o[1]]),a):e},a.thresholds=function(o){return arguments.length?(r=typeof o=="function"?o:Array.isArray(o)?se(Qt.call(o)):se(o),a):r},a}function qe(t,e){let r;if(e===void 0)for(const a of t)a!=null&&(r<a||r===void 0&&a>=a)&&(r=a);else{let a=-1;for(let o of t)(o=e(o,++a,t))!=null&&(r<o||r===void 0&&o>=o)&&(r=o)}return r}function sn(t,e){let r;if(e===void 0)for(const a of t)a!=null&&(r>a||r===void 0&&a>=a)&&(r=a);else{let a=-1;for(let o of t)(o=e(o,++a,t))!=null&&(r>o||r===void 0&&o>=o)&&(r=o)}return r}function Fe(t,e,r=0,a=t.length-1,o){for(o=o===void 0?de:wn(o);a>r;){if(a-r>600){const m=a-r+1,v=e-r+1,C=Math.log(m),I=.5*Math.exp(2*C/3),D=.5*Math.sqrt(C*I*(m-I)/m)*(v-m/2<0?-1:1);Fe(t,e,Math.max(r,Math.floor(e-v*I/m+D)),Math.min(a,Math.floor(e+(m-v)*I/m+D)),o)}const s=t[e];let h=r,f=a;for(Te(t,r,e),o(t[a],s)>0&&Te(t,r,a);h<f;){for(Te(t,h,f),++h,--f;o(t[h],s)<0;)++h;for(;o(t[f],s)>0;)--f}o(t[r],s)===0?Te(t,r,f):(++f,Te(t,f,a)),f<=e&&(r=f+1),e<=f&&(a=f-1)}return t}function Te(t,e,r){const a=t[e];t[e]=t[r],t[r]=a}function Oe(t,e,r){if(t=Float64Array.from(function*(f,m){if(m===void 0)for(let v of f)v!=null&&(v=+v)>=v&&(yield v);else{let v=-1;for(let C of f)(C=m(C,++v,f))!=null&&(C=+C)>=C&&(yield C)}}(t,r)),a=t.length){if((e=+e)<=0||a<2)return sn(t);if(e>=1)return qe(t);var a,o=(a-1)*e,s=Math.floor(o),h=qe(Fe(t,s).subarray(0,s+1));return h+(sn(t.subarray(s+1))-h)*(o-s)}}function Be(t,e,r=_){if(a=t.length){if((e=+e)<=0||a<2)return+r(t[0],0,t);if(e>=1)return+r(t[a-1],a-1,t);var a,o=(a-1)*e,s=Math.floor(o),h=+r(t[s],s,t);return h+(+r(t[s+1],s+1,t)-h)*(o-s)}}function ge(t,e,r){return Math.ceil((r-e)/(2*(Oe(t,.75)-Oe(t,.25))*Math.pow(B(t),-.3333333333333333)))}function re(t,e,r){return Math.ceil((r-e)/(3.5*at(t)*Math.pow(B(t),-.3333333333333333)))}function An(t,e){let r,a=-1,o=-1;if(e===void 0)for(const s of t)++o,s!=null&&(r<s||r===void 0&&s>=s)&&(r=s,a=o);else for(let s of t)(s=e(s,++o,t))!=null&&(r<s||r===void 0&&s>=s)&&(r=s,a=o);return a}function Ie(t,e){let r=0,a=0;if(e===void 0)for(let o of t)o!=null&&(o=+o)>=o&&(++r,a+=o);else{let o=-1;for(let s of t)(s=e(s,++o,t))!=null&&(s=+s)>=s&&(++r,a+=s)}if(r)return a/r}function ln(t,e){return Oe(t,.5,e)}function Ye(t){return Array.from(function*(e){for(const r of e)yield*r}(t))}function fn(t,e){let r,a=-1,o=-1;if(e===void 0)for(const s of t)++o,s!=null&&(r>s||r===void 0&&s>=s)&&(r=s,a=o);else for(let s of t)(s=e(s,++o,t))!=null&&(r>s||r===void 0&&s>=s)&&(r=s,a=o);return a}function Jn(t,e){const r=new xt;if(e===void 0)for(let s of t)s!=null&&s>=s&&r.set(s,(r.get(s)||0)+1);else{let s=-1;for(let h of t)(h=e(h,++s,t))!=null&&h>=h&&r.set(h,(r.get(h)||0)+1)}let a,o=0;for(const[s,h]of r)h>o&&(o=h,a=s);return a}function Dn(t,e=Tn){const r=[];let a,o=!1;for(const s of t)o&&r.push(e(a,s)),a=s,o=!0;return r}function Tn(t,e){return[t,e]}function Me(t,e,r){t=+t,e=+e,r=(o=arguments.length)<2?(e=t,t=0,1):o<3?1:+r;for(var a=-1,o=0|Math.max(0,Math.ceil((e-t)/r)),s=new Array(o);++a<o;)s[a]=t+a*r;return s}function Ke(t,e=b){if(typeof t[Symbol.iterator]!="function")throw new TypeError("values is not iterable");let r=Array.from(t);const a=new Float64Array(r.length);e.length!==2&&(r=r.map(e),e=b);const o=(f,m)=>e(r[f],r[m]);let s,h;return Uint32Array.from(r,(f,m)=>m).sort(e===b?(f,m)=>de(r[f],r[m]):wn(o)).forEach((f,m)=>{const v=o(f,s===void 0?f:s);v>=0?((s===void 0||v>0)&&(s=f,h=m),a[f]=h):a[f]=NaN}),a}function Xe(t,e=b){let r,a=!1;if(e.length===1){let o;for(const s of t){const h=e(s);(a?b(h,o)<0:b(h,h)===0)&&(r=s,o=h,a=!0)}}else for(const o of t)(a?e(o,r)<0:e(o,o)===0)&&(r=o,a=!0);return r}function Ee(t,e=b){if(e.length===1)return fn(t,e);let r,a=-1,o=-1;for(const s of t)++o,(a<0?e(s,s)===0:e(s,r)<0)&&(r=s,a=o);return a}function mn(t,e=b){let r,a=!1;if(e.length===1){let o;for(const s of t){const h=e(s);(a?b(h,o)>0:b(h,h)===0)&&(r=s,o=h,a=!0)}}else for(const o of t)(a?e(o,r)>0:e(o,o)===0)&&(r=o,a=!0);return r}function At(t,e=b){if(e.length===1)return An(t,e);let r,a=-1,o=-1;for(const s of t)++o,(a<0?e(s,s)===0:e(s,r)>0)&&(r=s,a=o);return a}function vr(t,e){const r=Ee(t,e);return r<0?void 0:r}const Yt=Un(Math.random);function Un(t){return function(e,r=0,a=e.length){let o=a-(r=+r);for(;o;){const s=t()*o--|0,h=e[o+r];e[o+r]=e[s+r],e[s+r]=h}return e}}function Rn(t,e){let r=0;if(e===void 0)for(let a of t)(a=+a)&&(r+=a);else{let a=-1;for(let o of t)(o=+e(o,++a,t))&&(r+=o)}return r}function Vn(t){if(!(o=t.length))return[];for(var e=-1,r=sn(t,Mn),a=new Array(r);++e<r;)for(var o,s=-1,h=a[e]=new Array(o);++s<o;)h[s]=t[s][e];return a}function Mn(t){return t.length}function Hn(){return Vn(arguments)}function In(t,e){if(typeof e!="function")throw new TypeError("test is not a function");let r=-1;for(const a of t)if(!e(a,++r,t))return!1;return!0}function En(t,e){if(typeof e!="function")throw new TypeError("test is not a function");let r=-1;for(const a of t)if(e(a,++r,t))return!0;return!1}function Fn(t,e){if(typeof e!="function")throw new TypeError("test is not a function");const r=[];let a=-1;for(const o of t)e(o,++a,t)&&r.push(o);return r}function Pn(t,e){if(typeof t[Symbol.iterator]!="function")throw new TypeError("values is not iterable");if(typeof e!="function")throw new TypeError("mapper is not a function");return Array.from(t,(r,a)=>e(r,a,t))}function jn(t,e,r){if(typeof e!="function")throw new TypeError("reducer is not a function");const a=t[Symbol.iterator]();let o,s,h=-1;if(arguments.length<3){if({done:o,value:r}=a.next(),o)return;++h}for(;{done:o,value:s}=a.next(),!o;)r=e(r,s,++h,t);return r}function fa(t){if(typeof t[Symbol.iterator]!="function")throw new TypeError("values is not iterable");return Array.from(t).reverse()}function Dr(t,...e){t=new It(t);for(const r of e)for(const a of r)t.delete(a);return t}function Tr(t,e){const r=e[Symbol.iterator](),a=new It;for(const o of t){if(a.has(o))return!1;let s,h;for(;({value:s,done:h}=r.next())&&!h;){if(Object.is(o,s))return!1;a.add(s)}}return!0}function Sn(t,...e){t=new It(t),e=e.map(oi);t:for(const r of t)for(const a of e)if(!a.has(r)){t.delete(r);continue t}return t}function oi(t){return t instanceof It?t:new It(t)}function Nn(t,e){const r=t[Symbol.iterator](),a=new Set;for(const o of e){const s=_r(o);if(a.has(s))continue;let h,f;for(;{value:h,done:f}=r.next();){if(f)return!1;const m=_r(h);if(a.add(m),Object.is(s,m))break}}return!0}function _r(t){return t!==null&&typeof t=="object"?t.valueOf():t}function Cr(t,e){return Nn(e,t)}function yr(...t){const e=new It;for(const r of t)for(const a of r)e.add(a);return e}function qr(t){return t}var Dt=1e-6;function Ar(t){return"translate("+t+",0)"}function Nr(t){return"translate(0,"+t+")"}function Gn(t){return e=>+t(e)}function Zr(t,e){return e=Math.max(0,t.bandwidth()-2*e)/2,t.round()&&(e=Math.round(e)),r=>+t(r)+e}function Ur(){return!this.__axis}function Ir(t,e){var r=[],a=null,o=null,s=6,h=6,f=3,m=typeof window<"u"&&window.devicePixelRatio>1?0:.5,v=t===1||t===4?-1:1,C=t===4||t===2?"x":"y",I=t===1||t===3?Ar:Nr;function D(R){var Z=a==null?e.ticks?e.ticks.apply(e,r):e.domain():a,U=o==null?e.tickFormat?e.tickFormat.apply(e,r):qr:o,$=Math.max(s,0)+f,W=e.range(),it=+W[0]+m,nt=+W[W.length-1]+m,rt=(e.bandwidth?Zr:Gn)(e.copy(),m),lt=R.selection?R.selection():R,pt=lt.selectAll(".domain").data([null]),Jt=lt.selectAll(".tick").data(Z,e).order(),ye=Jt.exit(),Ut=Jt.enter().append("g").attr("class","tick"),Pt=Jt.select("line"),jt=Jt.select("text");pt=pt.merge(pt.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),Jt=Jt.merge(Ut),Pt=Pt.merge(Ut.append("line").attr("stroke","currentColor").attr(C+"2",v*s)),jt=jt.merge(Ut.append("text").attr("fill","currentColor").attr(C,v*$).attr("dy",t===1?"0em":t===3?"0.71em":"0.32em")),R!==lt&&(pt=pt.transition(R),Jt=Jt.transition(R),Pt=Pt.transition(R),jt=jt.transition(R),ye=ye.transition(R).attr("opacity",Dt).attr("transform",function(zt){return isFinite(zt=rt(zt))?I(zt+m):this.getAttribute("transform")}),Ut.attr("opacity",Dt).attr("transform",function(zt){var gt=this.parentNode.__axis;return I((gt&&isFinite(gt=gt(zt))?gt:rt(zt))+m)})),ye.remove(),pt.attr("d",t===4||t===2?h?"M"+v*h+","+it+"H"+m+"V"+nt+"H"+v*h:"M"+m+","+it+"V"+nt:h?"M"+it+","+v*h+"V"+m+"H"+nt+"V"+v*h:"M"+it+","+m+"H"+nt),Jt.attr("opacity",1).attr("transform",function(zt){return I(rt(zt)+m)}),Pt.attr(C+"2",v*s),jt.attr(C,v*$).text(U),lt.filter(Ur).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",t===2?"start":t===4?"end":"middle"),lt.each(function(){this.__axis=rt})}return D.scale=function(R){return arguments.length?(e=R,D):e},D.ticks=function(){return r=Array.from(arguments),D},D.tickArguments=function(R){return arguments.length?(r=R==null?[]:Array.from(R),D):r.slice()},D.tickValues=function(R){return arguments.length?(a=R==null?null:Array.from(R),D):a&&a.slice()},D.tickFormat=function(R){return arguments.length?(o=R,D):o},D.tickSize=function(R){return arguments.length?(s=h=+R,D):s},D.tickSizeInner=function(R){return arguments.length?(s=+R,D):s},D.tickSizeOuter=function(R){return arguments.length?(h=+R,D):h},D.tickPadding=function(R){return arguments.length?(f=+R,D):f},D.offset=function(R){return arguments.length?(m=+R,D):m},D}function Qr(t){return Ir(1,t)}function xa(t){return Ir(2,t)}function cr(t){return Ir(3,t)}function ea(t){return Ir(4,t)}var na={value:()=>{}};function Ni(){for(var t,e=0,r=arguments.length,a={};e<r;++e){if(!(t=arguments[e]+"")||t in a||/[\s.]/.test(t))throw new Error("illegal type: "+t);a[t]=[]}return new rn(a)}function rn(t){this._=t}function Zn(t,e){return t.trim().split(/^|\s+/).map(function(r){var a="",o=r.indexOf(".");if(o>=0&&(a=r.slice(o+1),r=r.slice(0,o)),r&&!e.hasOwnProperty(r))throw new Error("unknown type: "+r);return{type:r,name:a}})}function an(t,e){for(var r,a=0,o=t.length;a<o;++a)if((r=t[a]).name===e)return r.value}function nn(t,e,r){for(var a=0,o=t.length;a<o;++a)if(t[a].name===e){t[a]=na,t=t.slice(0,a).concat(t.slice(a+1));break}return r!=null&&t.push({name:e,value:r}),t}rn.prototype=Ni.prototype={constructor:rn,on:function(t,e){var r,a=this._,o=Zn(t+"",a),s=-1,h=o.length;if(!(arguments.length<2)){if(e!=null&&typeof e!="function")throw new Error("invalid callback: "+e);for(;++s<h;)if(r=(t=o[s]).type)a[r]=nn(a[r],t.name,e);else if(e==null)for(r in a)a[r]=nn(a[r],t.name,null);return this}for(;++s<h;)if((r=(t=o[s]).type)&&(r=an(a[r],t.name)))return r},copy:function(){var t={},e=this._;for(var r in e)t[r]=e[r].slice();return new rn(t)},call:function(t,e){if((r=arguments.length-2)>0)for(var r,a,o=new Array(r),s=0;s<r;++s)o[s]=arguments[s+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(s=0,r=(a=this._[t]).length;s<r;++s)a[s].value.apply(e,o)},apply:function(t,e,r){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var a=this._[t],o=0,s=a.length;o<s;++o)a[o].value.apply(e,r)}};const nr=Ni;function qt(){}function wi(t){return t==null?qt:function(){return this.querySelector(t)}}function Kt(t){return t==null?[]:Array.isArray(t)?t:Array.from(t)}function xr(){return[]}function Or(t){return t==null?xr:function(){return this.querySelectorAll(t)}}function Vr(t){return function(){return this.matches(t)}}function li(t){return function(e){return e.matches(t)}}var ka=Array.prototype.find;function hr(){return this.firstElementChild}var xn=Array.prototype.filter;function ra(){return Array.from(this.children)}function On(t){return new Array(t.length)}function bi(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}function si(t){return function(){return t}}function Oi(t,e,r,a,o,s){for(var h,f=0,m=e.length,v=s.length;f<v;++f)(h=e[f])?(h.__data__=s[f],a[f]=h):r[f]=new bi(t,s[f]);for(;f<m;++f)(h=e[f])&&(o[f]=h)}function lr(t,e,r,a,o,s,h){var f,m,v,C=new Map,I=e.length,D=s.length,R=new Array(I);for(f=0;f<I;++f)(m=e[f])&&(R[f]=v=h.call(m,m.__data__,f,e)+"",C.has(v)?o[f]=m:C.set(v,m));for(f=0;f<D;++f)v=h.call(t,s[f],f,s)+"",(m=C.get(v))?(a[f]=m,m.__data__=s[f],C.delete(v)):r[f]=new bi(t,s[f]);for(f=0;f<I;++f)(m=e[f])&&C.get(R[f])===m&&(o[f]=m)}function Kr(t){return t.__data__}function Hr(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}function Gr(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}bi.prototype={constructor:bi,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)}};var ni="http://www.w3.org/1999/xhtml";const Ti={svg:"http://www.w3.org/2000/svg",xhtml:ni,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Xr(t){var e=t+="",r=e.indexOf(":");return r>=0&&(e=t.slice(0,r))!=="xmlns"&&(t=t.slice(r+1)),Ti.hasOwnProperty(e)?{space:Ti[e],local:t}:t}function wa(t){return function(){this.removeAttribute(t)}}function Ba(t){return function(){this.removeAttributeNS(t.space,t.local)}}function pr(t,e){return function(){this.setAttribute(t,e)}}function Jr(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function ti(t,e){return function(){var r=e.apply(this,arguments);r==null?this.removeAttribute(t):this.setAttribute(t,r)}}function No(t,e){return function(){var r=e.apply(this,arguments);r==null?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,r)}}function Xa(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function ia(t){return function(){this.style.removeProperty(t)}}function ic(t,e,r){return function(){this.style.setProperty(t,e,r)}}function Ht(t,e,r){return function(){var a=e.apply(this,arguments);a==null?this.style.removeProperty(t):this.style.setProperty(t,a,r)}}function Ve(t,e){return t.style.getPropertyValue(e)||Xa(t).getComputedStyle(t,null).getPropertyValue(e)}function pn(t){return function(){delete this[t]}}function ar(t,e){return function(){this[t]=e}}function ci(t,e){return function(){var r=e.apply(this,arguments);r==null?delete this[t]:this[t]=r}}function Er(t){return t.trim().split(/^|\s+/)}function ui(t){return t.classList||new La(t)}function La(t){this._node=t,this._names=Er(t.getAttribute("class")||"")}function hi(t,e){for(var r=ui(t),a=-1,o=e.length;++a<o;)r.add(e[a])}function Ei(t,e){for(var r=ui(t),a=-1,o=e.length;++a<o;)r.remove(e[a])}function Oo(t){return function(){hi(this,t)}}function ac(t){return function(){Ei(this,t)}}function Ia(t,e){return function(){(e.apply(this,arguments)?hi:Ei)(this,t)}}function oc(){this.textContent=""}function ys(t){return function(){this.textContent=t}}function nu(t){return function(){var e=t.apply(this,arguments);this.textContent=e==null?"":e}}function on(){this.innerHTML=""}function Gc(t){return function(){this.innerHTML=t}}function Mr(t){return function(){var e=t.apply(this,arguments);this.innerHTML=e==null?"":e}}function ho(){this.nextSibling&&this.parentNode.appendChild(this)}function da(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Za(t){return function(){var e=this.ownerDocument,r=this.namespaceURI;return r===ni&&e.documentElement.namespaceURI===ni?e.createElement(t):e.createElementNS(r,t)}}function Si(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function Bo(t){var e=Xr(t);return(e.local?Si:Za)(e)}function sc(){return null}function cc(){var t=this.parentNode;t&&t.removeChild(this)}function lc(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function Ta(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function ru(t){return t.trim().split(/^|\s+/).map(function(e){var r="",a=e.indexOf(".");return a>=0&&(r=e.slice(a+1),e=e.slice(0,a)),{type:e,name:r}})}function uc(t){return function(){var e=this.__on;if(e){for(var r,a=0,o=-1,s=e.length;a<s;++a)r=e[a],t.type&&r.type!==t.type||r.name!==t.name?e[++o]=r:this.removeEventListener(r.type,r.listener,r.options);++o?e.length=o:delete this.__on}}}function Ea(t,e,r){return function(){var a,o=this.__on,s=function(m){return function(v){m.call(this,v,this.__data__)}}(e);if(o){for(var h=0,f=o.length;h<f;++h)if((a=o[h]).type===t.type&&a.name===t.name)return this.removeEventListener(a.type,a.listener,a.options),this.addEventListener(a.type,a.listener=s,a.options=r),void(a.value=e)}this.addEventListener(t.type,s,r),a={type:t.type,name:t.name,value:e,listener:s,options:r},o?o.push(a):this.__on=[a]}}function ms(t,e,r){var a=Xa(t),o=a.CustomEvent;typeof o=="function"?o=new o(e,r):(o=a.document.createEvent("Event"),r?(o.initEvent(e,r.bubbles,r.cancelable),o.detail=r.detail):o.initEvent(e,!1,!1)),t.dispatchEvent(o)}function Xc(t,e){return function(){return ms(this,t,e)}}function Gi(t,e){return function(){return ms(this,t,e.apply(this,arguments))}}La.prototype={add:function(t){this._names.indexOf(t)<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}};var Lo=[null];function fi(t,e){this._groups=t,this._parents=e}function Qo(){return new fi([[document.documentElement]],Lo)}fi.prototype=Qo.prototype={constructor:fi,select:function(t){typeof t!="function"&&(t=wi(t));for(var e=this._groups,r=e.length,a=new Array(r),o=0;o<r;++o)for(var s,h,f=e[o],m=f.length,v=a[o]=new Array(m),C=0;C<m;++C)(s=f[C])&&(h=t.call(s,s.__data__,C,f))&&("__data__"in s&&(h.__data__=s.__data__),v[C]=h);return new fi(a,this._parents)},selectAll:function(t){t=typeof t=="function"?function(C){return function(){return Kt(C.apply(this,arguments))}}(t):Or(t);for(var e=this._groups,r=e.length,a=[],o=[],s=0;s<r;++s)for(var h,f=e[s],m=f.length,v=0;v<m;++v)(h=f[v])&&(a.push(t.call(h,h.__data__,v,f)),o.push(h));return new fi(a,o)},selectChild:function(t){return this.select(t==null?hr:function(e){return function(){return ka.call(this.children,e)}}(typeof t=="function"?t:li(t)))},selectChildren:function(t){return this.selectAll(t==null?ra:function(e){return function(){return xn.call(this.children,e)}}(typeof t=="function"?t:li(t)))},filter:function(t){typeof t!="function"&&(t=Vr(t));for(var e=this._groups,r=e.length,a=new Array(r),o=0;o<r;++o)for(var s,h=e[o],f=h.length,m=a[o]=[],v=0;v<f;++v)(s=h[v])&&t.call(s,s.__data__,v,h)&&m.push(s);return new fi(a,this._parents)},data:function(t,e){if(!arguments.length)return Array.from(this,Kr);var r=e?lr:Oi,a=this._parents,o=this._groups;typeof t!="function"&&(t=si(t));for(var s=o.length,h=new Array(s),f=new Array(s),m=new Array(s),v=0;v<s;++v){var C=a[v],I=o[v],D=I.length,R=Hr(t.call(C,C&&C.__data__,v,a)),Z=R.length,U=f[v]=new Array(Z),$=h[v]=new Array(Z),W=m[v]=new Array(D);r(C,I,U,$,W,R,e);for(var it,nt,rt=0,lt=0;rt<Z;++rt)if(it=U[rt]){for(rt>=lt&&(lt=rt+1);!(nt=$[lt])&&++lt<Z;);it._next=nt||null}}return(h=new fi(h,a))._enter=f,h._exit=m,h},enter:function(){return new fi(this._enter||this._groups.map(On),this._parents)},exit:function(){return new fi(this._exit||this._groups.map(On),this._parents)},join:function(t,e,r){var a=this.enter(),o=this,s=this.exit();return typeof t=="function"?(a=t(a))&&(a=a.selection()):a=a.append(t+""),e!=null&&(o=e(o))&&(o=o.selection()),r==null?s.remove():r(s),a&&o?a.merge(o).order():o},merge:function(t){for(var e=t.selection?t.selection():t,r=this._groups,a=e._groups,o=r.length,s=a.length,h=Math.min(o,s),f=new Array(o),m=0;m<h;++m)for(var v,C=r[m],I=a[m],D=C.length,R=f[m]=new Array(D),Z=0;Z<D;++Z)(v=C[Z]||I[Z])&&(R[Z]=v);for(;m<o;++m)f[m]=r[m];return new fi(f,this._parents)},selection:function(){return this},order:function(){for(var t=this._groups,e=-1,r=t.length;++e<r;)for(var a,o=t[e],s=o.length-1,h=o[s];--s>=0;)(a=o[s])&&(h&&4^a.compareDocumentPosition(h)&&h.parentNode.insertBefore(a,h),h=a);return this},sort:function(t){function e(I,D){return I&&D?t(I.__data__,D.__data__):!I-!D}t||(t=Gr);for(var r=this._groups,a=r.length,o=new Array(a),s=0;s<a;++s){for(var h,f=r[s],m=f.length,v=o[s]=new Array(m),C=0;C<m;++C)(h=f[C])&&(v[C]=h);v.sort(e)}return new fi(o,this._parents).order()},call:function(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this},nodes:function(){return Array.from(this)},node:function(){for(var t=this._groups,e=0,r=t.length;e<r;++e)for(var a=t[e],o=0,s=a.length;o<s;++o){var h=a[o];if(h)return h}return null},size:function(){let t=0;for(const e of this)++t;return t},empty:function(){return!this.node()},each:function(t){for(var e=this._groups,r=0,a=e.length;r<a;++r)for(var o,s=e[r],h=0,f=s.length;h<f;++h)(o=s[h])&&t.call(o,o.__data__,h,s);return this},attr:function(t,e){var r=Xr(t);if(arguments.length<2){var a=this.node();return r.local?a.getAttributeNS(r.space,r.local):a.getAttribute(r)}return this.each((e==null?r.local?Ba:wa:typeof e=="function"?r.local?No:ti:r.local?Jr:pr)(r,e))},style:function(t,e,r){return arguments.length>1?this.each((e==null?ia:typeof e=="function"?Ht:ic)(t,e,r==null?"":r)):Ve(this.node(),t)},property:function(t,e){return arguments.length>1?this.each((e==null?pn:typeof e=="function"?ci:ar)(t,e)):this.node()[t]},classed:function(t,e){var r=Er(t+"");if(arguments.length<2){for(var a=ui(this.node()),o=-1,s=r.length;++o<s;)if(!a.contains(r[o]))return!1;return!0}return this.each((typeof e=="function"?Ia:e?Oo:ac)(r,e))},text:function(t){return arguments.length?this.each(t==null?oc:(typeof t=="function"?nu:ys)(t)):this.node().textContent},html:function(t){return arguments.length?this.each(t==null?on:(typeof t=="function"?Mr:Gc)(t)):this.node().innerHTML},raise:function(){return this.each(ho)},lower:function(){return this.each(da)},append:function(t){var e=typeof t=="function"?t:Bo(t);return this.select(function(){return this.appendChild(e.apply(this,arguments))})},insert:function(t,e){var r=typeof t=="function"?t:Bo(t),a=e==null?sc:typeof e=="function"?e:wi(e);return this.select(function(){return this.insertBefore(r.apply(this,arguments),a.apply(this,arguments)||null)})},remove:function(){return this.each(cc)},clone:function(t){return this.select(t?Ta:lc)},datum:function(t){return arguments.length?this.property("__data__",t):this.node().__data__},on:function(t,e,r){var a,o,s=ru(t+""),h=s.length;if(!(arguments.length<2)){for(f=e?Ea:uc,a=0;a<h;++a)this.each(f(s[a],e,r));return this}var f=this.node().__on;if(f){for(var m,v=0,C=f.length;v<C;++v)for(a=0,m=f[v];a<h;++a)if((o=s[a]).type===m.type&&o.name===m.name)return m.value}},dispatch:function(t,e){return this.each((typeof e=="function"?Gi:Xc)(t,e))},[Symbol.iterator]:function*(){for(var t=this._groups,e=0,r=t.length;e<r;++e)for(var a,o=t[e],s=0,h=o.length;s<h;++s)(a=o[s])&&(yield a)}};const qn=Qo;function kr(t){return typeof t=="string"?new fi([[document.querySelector(t)]],[document.documentElement]):new fi([[t]],Lo)}const Zc={passive:!1},Io={capture:!0,passive:!1};function bs(t){t.stopImmediatePropagation()}function fo(t){t.preventDefault(),t.stopImmediatePropagation()}function po(t){var e=t.document.documentElement,r=kr(t).on("dragstart.drag",fo,Io);"onselectstart"in e?r.on("selectstart.drag",fo,Io):(e.__noselect=e.style.MozUserSelect,e.style.MozUserSelect="none")}function go(t,e){var r=t.document.documentElement,a=kr(t).on("dragstart.drag",null);e&&(a.on("click.drag",fo,Io),setTimeout(function(){a.on("click.drag",null)},0)),"onselectstart"in r?a.on("selectstart.drag",null):(r.style.MozUserSelect=r.__noselect,delete r.__noselect)}function ji(t,e,r){t.prototype=e.prototype=r,r.constructor=t}function Ci(t,e){var r=Object.create(t.prototype);for(var a in e)r[a]=e[a];return r}function kn(){}var Xi=.7,pa=1/Xi,Qn="\\s*([+-]?\\d+)\\s*",x="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",L="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",H=/^#([0-9a-f]{3,8})$/,ct=new RegExp("^rgb\\("+[Qn,Qn,Qn]+"\\)$"),Xt=new RegExp("^rgb\\("+[L,L,L]+"\\)$"),Se=new RegExp("^rgba\\("+[Qn,Qn,Qn,x]+"\\)$"),Pe=new RegExp("^rgba\\("+[L,L,L,x]+"\\)$"),Ze=new RegExp("^hsl\\("+[x,L,L]+"\\)$"),Je=new RegExp("^hsla\\("+[x,L,L,x]+"\\)$"),un={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function gn(){return this.rgb().formatHex()}function zn(){return this.rgb().formatRgb()}function hn(t){var e,r;return t=(t+"").trim().toLowerCase(),(e=H.exec(t))?(r=e[1].length,e=parseInt(e[1],16),r===6?mr(e):r===3?new Yr(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):r===8?or(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):r===4?or(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=ct.exec(t))?new Yr(e[1],e[2],e[3],1):(e=Xt.exec(t))?new Yr(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=Se.exec(t))?or(e[1],e[2],e[3],e[4]):(e=Pe.exec(t))?or(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=Ze.exec(t))?Xh(e[1],e[2]/100,e[3]/100,1):(e=Je.exec(t))?Xh(e[1],e[2]/100,e[3]/100,e[4]):un.hasOwnProperty(t)?mr(un[t]):t==="transparent"?new Yr(NaN,NaN,NaN,0):null}function mr(t){return new Yr(t>>16&255,t>>8&255,255&t,1)}function or(t,e,r,a){return a<=0&&(t=e=r=NaN),new Yr(t,e,r,a)}function $r(t){return t instanceof kn||(t=hn(t)),t?new Yr((t=t.rgb()).r,t.g,t.b,t.opacity):new Yr}function ri(t,e,r,a){return arguments.length===1?$r(t):new Yr(t,e,r,a==null?1:a)}function Yr(t,e,r,a){this.r=+t,this.g=+e,this.b=+r,this.opacity=+a}function vs(){return"#"+hc(this.r)+hc(this.g)+hc(this.b)}function iu(){var t=this.opacity;return((t=isNaN(t)?1:Math.max(0,Math.min(1,t)))===1?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(t===1?")":", "+t+")")}function hc(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function Xh(t,e,r,a){return a<=0?t=e=r=NaN:r<=0||r>=1?t=e=NaN:e<=0&&(t=NaN),new aa(t,e,r,a)}function au(t){if(t instanceof aa)return new aa(t.h,t.s,t.l,t.opacity);if(t instanceof kn||(t=hn(t)),!t)return new aa;if(t instanceof aa)return t;var e=(t=t.rgb()).r/255,r=t.g/255,a=t.b/255,o=Math.min(e,r,a),s=Math.max(e,r,a),h=NaN,f=s-o,m=(s+o)/2;return f?(h=e===s?(r-a)/f+6*(r<a):r===s?(a-e)/f+2:(e-r)/f+4,f/=m<.5?s+o:2-s-o,h*=60):f=m>0&&m<1?0:h,new aa(h,f,m,t.opacity)}function fc(t,e,r,a){return arguments.length===1?au(t):new aa(t,e,r,a==null?1:a)}function aa(t,e,r,a){this.h=+t,this.s=+e,this.l=+r,this.opacity=+a}function ou(t,e,r){return 255*(t<60?e+(r-e)*t/60:t<180?r:t<240?e+(r-e)*(240-t)/60:e)}function _s(t,e,r,a,o){var s=t*t,h=s*t;return((1-3*t+3*s-h)*e+(4-6*s+3*h)*r+(1+3*t+3*s-3*h)*a+h*o)/6}function Zh(t){var e=t.length-1;return function(r){var a=r<=0?r=0:r>=1?(r=1,e-1):Math.floor(r*e),o=t[a],s=t[a+1],h=a>0?t[a-1]:2*o-s,f=a<e-1?t[a+2]:2*s-o;return _s((r-a/e)*e,h,o,s,f)}}function di(t){var e=t.length;return function(r){var a=Math.floor(((r%=1)<0?++r:r)*e),o=t[(a+e-1)%e],s=t[a%e],h=t[(a+1)%e],f=t[(a+2)%e];return _s((r-a/e)*e,o,s,h,f)}}ji(kn,hn,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:gn,formatHex:gn,formatHsl:function(){return au(this).formatHsl()},formatRgb:zn,toString:zn}),ji(Yr,ri,Ci(kn,{brighter:function(t){return t=t==null?pa:Math.pow(pa,t),new Yr(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=t==null?Xi:Math.pow(Xi,t),new Yr(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:vs,formatHex:vs,formatRgb:iu,toString:iu})),ji(aa,fc,Ci(kn,{brighter:function(t){return t=t==null?pa:Math.pow(pa,t),new aa(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=t==null?Xi:Math.pow(Xi,t),new aa(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,r=this.l,a=r+(r<.5?r:1-r)*e,o=2*r-a;return new Yr(ou(t>=240?t-240:t+120,o,a),ou(t,o,a),ou(t<120?t+240:t-120,o,a),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var t=this.opacity;return((t=isNaN(t)?1:Math.max(0,Math.min(1,t)))===1?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(t===1?")":", "+t+")")}}));const dc=t=>()=>t;function Qc(t,e){return function(r){return t+r*e}}function Kc(t,e){var r=e-t;return r?Qc(t,r>180||r<-180?r-360*Math.round(r/360):r):dc(isNaN(t)?e:t)}function Ai(t,e){var r=e-t;return r?Qc(t,r):dc(isNaN(t)?e:t)}const pc=function t(e){var r=function(o){return(o=+o)==1?Ai:function(s,h){return h-s?function(f,m,v){return f=Math.pow(f,v),m=Math.pow(m,v)-f,v=1/v,function(C){return Math.pow(f+C*m,v)}}(s,h,o):dc(isNaN(s)?h:s)}}(e);function a(o,s){var h=r((o=ri(o)).r,(s=ri(s)).r),f=r(o.g,s.g),m=r(o.b,s.b),v=Ai(o.opacity,s.opacity);return function(C){return o.r=h(C),o.g=f(C),o.b=m(C),o.opacity=v(C),o+""}}return a.gamma=t,a}(1);function su(t){return function(e){var r,a,o=e.length,s=new Array(o),h=new Array(o),f=new Array(o);for(r=0;r<o;++r)a=ri(e[r]),s[r]=a.r||0,h[r]=a.g||0,f[r]=a.b||0;return s=t(s),h=t(h),f=t(f),a.opacity=1,function(m){return a.r=s(m),a.g=h(m),a.b=f(m),a+""}}}var Jc=su(Zh),nf=su(di);function gc(t,e){e||(e=[]);var r,a=t?Math.min(e.length,t.length):0,o=e.slice();return function(s){for(r=0;r<a;++r)o[r]=t[r]*(1-s)+e[r]*s;return o}}function yc(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}function rf(t,e){return(yc(e)?gc:Qh)(t,e)}function Qh(t,e){var r,a=e?e.length:0,o=t?Math.min(a,t.length):0,s=new Array(o),h=new Array(a);for(r=0;r<o;++r)s[r]=Kn(t[r],e[r]);for(;r<a;++r)h[r]=e[r];return function(f){for(r=0;r<o;++r)h[r]=s[r](f);return h}}function Kh(t,e){var r=new Date;return t=+t,e=+e,function(a){return r.setTime(t*(1-a)+e*a),r}}function oa(t,e){return t=+t,e=+e,function(r){return t*(1-r)+e*r}}function Zi(t,e){var r,a={},o={};for(r in t!==null&&typeof t=="object"||(t={}),e!==null&&typeof e=="object"||(e={}),e)r in t?a[r]=Kn(t[r],e[r]):o[r]=e[r];return function(s){for(r in a)o[r]=a[r](s);return o}}var Mi=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,ei=new RegExp(Mi.source,"g");function Fa(t,e){var r,a,o,s=Mi.lastIndex=ei.lastIndex=0,h=-1,f=[],m=[];for(t+="",e+="";(r=Mi.exec(t))&&(a=ei.exec(e));)(o=a.index)>s&&(o=e.slice(s,o),f[h]?f[h]+=o:f[++h]=o),(r=r[0])===(a=a[0])?f[h]?f[h]+=a:f[++h]=a:(f[++h]=null,m.push({i:h,x:oa(r,a)})),s=ei.lastIndex;return s<e.length&&(o=e.slice(s),f[h]?f[h]+=o:f[++h]=o),f.length<2?m[0]?function(v){return function(C){return v(C)+""}}(m[0].x):function(v){return function(){return v}}(e):(e=m.length,function(v){for(var C,I=0;I<e;++I)f[(C=m[I]).i]=C.x(v);return f.join("")})}function Kn(t,e){var r,a=typeof e;return e==null||a==="boolean"?dc(e):(a==="number"?oa:a==="string"?(r=hn(e))?(e=r,pc):Fa:e instanceof hn?pc:e instanceof Date?Kh:yc(e)?gc:Array.isArray(e)?Qh:typeof e.valueOf!="function"&&typeof e.toString!="function"||isNaN(e)?Zi:oa)(t,e)}function Sa(t){let e;for(;e=t.sourceEvent;)t=e;return t}function sa(t,e){if(t=Sa(t),e===void 0&&(e=t.currentTarget),e){var r=e.ownerSVGElement||e;if(r.createSVGPoint){var a=r.createSVGPoint();return a.x=t.clientX,a.y=t.clientY,[(a=a.matrixTransform(e.getScreenCTM().inverse())).x,a.y]}if(e.getBoundingClientRect){var o=e.getBoundingClientRect();return[t.clientX-o.left-e.clientLeft,t.clientY-o.top-e.clientTop]}}return[t.pageX,t.pageY]}var Ko,mc,xs=0,Fo=0,Ro=0,tl=0,Jo=0,el=0,bc=typeof performance=="object"&&performance.now?performance:Date,Jh=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function vc(){return Jo||(Jh(t1),Jo=bc.now()+el)}function t1(){Jo=0}function _c(){this._call=this._time=this._next=null}function Po(t,e,r){var a=new _c;return a.restart(t,e,r),a}function ks(){vc(),++xs;for(var t,e=Ko;e;)(t=Jo-e._time)>=0&&e._call.call(void 0,t),e=e._next;--xs}function Qa(){Jo=(tl=bc.now())+el,xs=Fo=0;try{ks()}finally{xs=0,function(){for(var t,e,r=Ko,a=1/0;r;)r._call?(a>r._time&&(a=r._time),t=r,r=r._next):(e=r._next,r._next=null,r=t?t._next=e:Ko=e);mc=t,ws(a)}(),Jo=0}}function jo(){var t=bc.now(),e=t-tl;e>1e3&&(el-=e,tl=t)}function ws(t){xs||(Fo&&(Fo=clearTimeout(Fo)),t-Jo>24?(t<1/0&&(Fo=setTimeout(Qa,t-bc.now()-el)),Ro&&(Ro=clearInterval(Ro))):(Ro||(tl=bc.now(),Ro=setInterval(jo,1e3)),xs=1,Jh(Qa)))}function nl(t,e,r){var a=new _c;return e=e==null?0:+e,a.restart(o=>{a.stop(),t(o+e)},e,r),a}_c.prototype=Po.prototype={constructor:_c,restart:function(t,e,r){if(typeof t!="function")throw new TypeError("callback is not a function");r=(r==null?vc():+r)+(e==null?0:+e),this._next||mc===this||(mc?mc._next=this:Ko=this,mc=this),this._call=t,this._time=r,ws()},stop:function(){this._call&&(this._call=null,this._time=1/0,ws())}};var e1=nr("start","end","cancel","interrupt"),n1=[];function yo(t,e,r,a,o,s){var h=t.__transition;if(h){if(r in h)return}else t.__transition={};(function(f,m,v){var C,I=f.__transition;function D(U){var $,W,it,nt;if(v.state!==1)return Z();for($ in I)if((nt=I[$]).name===v.name){if(nt.state===3)return nl(D);nt.state===4?(nt.state=6,nt.timer.stop(),nt.on.call("interrupt",f,f.__data__,nt.index,nt.group),delete I[$]):+$<m&&(nt.state=6,nt.timer.stop(),nt.on.call("cancel",f,f.__data__,nt.index,nt.group),delete I[$])}if(nl(function(){v.state===3&&(v.state=4,v.timer.restart(R,v.delay,v.time),R(U))}),v.state=2,v.on.call("start",f,f.__data__,v.index,v.group),v.state===2){for(v.state=3,C=new Array(it=v.tween.length),$=0,W=-1;$<it;++$)(nt=v.tween[$].value.call(f,f.__data__,v.index,v.group))&&(C[++W]=nt);C.length=W+1}}function R(U){for(var $=U<v.duration?v.ease.call(null,U/v.duration):(v.timer.restart(Z),v.state=5,1),W=-1,it=C.length;++W<it;)C[W].call(f,$);v.state===5&&(v.on.call("end",f,f.__data__,v.index,v.group),Z())}function Z(){for(var U in v.state=6,v.timer.stop(),delete I[m],I)return;delete f.__transition}I[m]=v,v.timer=Po(function(U){v.state=1,v.timer.restart(D,v.delay,v.time),v.delay<=U&&D(U-v.delay)},0,v.time)})(t,r,{name:e,index:a,group:o,on:e1,tween:n1,time:s.time,delay:s.delay,duration:s.duration,ease:s.ease,timer:null,state:0})}function rl(t,e){var r=Ca(t,e);if(r.state>0)throw new Error("too late; already scheduled");return r}function Ka(t,e){var r=Ca(t,e);if(r.state>3)throw new Error("too late; already running");return r}function Ca(t,e){var r=t.__transition;if(!r||!(r=r[e]))throw new Error("transition not found");return r}function Ja(t,e){var r,a,o,s=t.__transition,h=!0;if(s){for(o in e=e==null?null:e+"",s)(r=s[o]).name===e?(a=r.state>2&&r.state<5,r.state=6,r.timer.stop(),r.on.call(a?"interrupt":"cancel",t,t.__data__,r.index,r.group),delete s[o]):h=!1;h&&delete t.__transition}}var pi,r1=180/Math.PI,Ts={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function i1(t,e,r,a,o,s){var h,f,m;return(h=Math.sqrt(t*t+e*e))&&(t/=h,e/=h),(m=t*r+e*a)&&(r-=t*m,a-=e*m),(f=Math.sqrt(r*r+a*a))&&(r/=f,a/=f,m/=f),t*a<e*r&&(t=-t,e=-e,m=-m,h=-h),{translateX:o,translateY:s,rotate:Math.atan2(e,t)*r1,skewX:Math.atan(m)*r1,scaleX:h,scaleY:f}}function cu(t,e,r,a){function o(s){return s.length?s.pop()+" ":""}return function(s,h){var f=[],m=[];return s=t(s),h=t(h),function(v,C,I,D,R,Z){if(v!==I||C!==D){var U=R.push("translate(",null,e,null,r);Z.push({i:U-4,x:oa(v,I)},{i:U-2,x:oa(C,D)})}else(I||D)&&R.push("translate("+I+e+D+r)}(s.translateX,s.translateY,h.translateX,h.translateY,f,m),function(v,C,I,D){v!==C?(v-C>180?C+=360:C-v>180&&(v+=360),D.push({i:I.push(o(I)+"rotate(",null,a)-2,x:oa(v,C)})):C&&I.push(o(I)+"rotate("+C+a)}(s.rotate,h.rotate,f,m),function(v,C,I,D){v!==C?D.push({i:I.push(o(I)+"skewX(",null,a)-2,x:oa(v,C)}):C&&I.push(o(I)+"skewX("+C+a)}(s.skewX,h.skewX,f,m),function(v,C,I,D,R,Z){if(v!==I||C!==D){var U=R.push(o(R)+"scale(",null,",",null,")");Z.push({i:U-4,x:oa(v,I)},{i:U-2,x:oa(C,D)})}else I===1&&D===1||R.push(o(R)+"scale("+I+","+D+")")}(s.scaleX,s.scaleY,h.scaleX,h.scaleY,f,m),s=h=null,function(v){for(var C,I=-1,D=m.length;++I<D;)f[(C=m[I]).i]=C.x(v);return f.join("")}}}var a1=cu(function(t){const e=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(t+"");return e.isIdentity?Ts:i1(e.a,e.b,e.c,e.d,e.e,e.f)},"px, ","px)","deg)"),il=cu(function(t){return t==null?Ts:(pi||(pi=document.createElementNS("http://www.w3.org/2000/svg","g")),pi.setAttribute("transform",t),(t=pi.transform.baseVal.consolidate())?i1((t=t.matrix).a,t.b,t.c,t.d,t.e,t.f):Ts)},", ",")",")");function o1(t,e){var r,a;return function(){var o=Ka(this,t),s=o.tween;if(s!==r){for(var h=0,f=(a=r=s).length;h<f;++h)if(a[h].name===e){(a=a.slice()).splice(h,1);break}}o.tween=a}}function af(t,e,r){var a,o;if(typeof r!="function")throw new Error;return function(){var s=Ka(this,t),h=s.tween;if(h!==a){o=(a=h).slice();for(var f={name:e,value:r},m=0,v=o.length;m<v;++m)if(o[m].name===e){o[m]=f;break}m===v&&o.push(f)}s.tween=o}}function lu(t,e,r){var a=t._id;return t.each(function(){var o=Ka(this,a);(o.value||(o.value={}))[e]=r.apply(this,arguments)}),function(o){return Ca(o,a).value[e]}}function uu(t,e){var r;return(typeof e=="number"?oa:e instanceof hn?pc:(r=hn(e))?(e=r,pc):Fa)(t,e)}function xc(t){return function(){this.removeAttribute(t)}}function hu(t){return function(){this.removeAttributeNS(t.space,t.local)}}function s1(t,e,r){var a,o,s=r+"";return function(){var h=this.getAttribute(t);return h===s?null:h===a?o:o=e(a=h,r)}}function of(t,e,r){var a,o,s=r+"";return function(){var h=this.getAttributeNS(t.space,t.local);return h===s?null:h===a?o:o=e(a=h,r)}}function mo(t,e,r){var a,o,s;return function(){var h,f,m=r(this);if(m!=null)return(h=this.getAttribute(t))===(f=m+"")?null:h===a&&f===o?s:(o=f,s=e(a=h,m));this.removeAttribute(t)}}function zo(t,e,r){var a,o,s;return function(){var h,f,m=r(this);if(m!=null)return(h=this.getAttributeNS(t.space,t.local))===(f=m+"")?null:h===a&&f===o?s:(o=f,s=e(a=h,m));this.removeAttributeNS(t.space,t.local)}}function Br(t,e){return function(r){this.setAttribute(t,e.call(this,r))}}function c1(t,e){return function(r){this.setAttributeNS(t.space,t.local,e.call(this,r))}}function l1(t,e){var r,a;function o(){var s=e.apply(this,arguments);return s!==a&&(r=(a=s)&&c1(t,s)),r}return o._value=e,o}function sf(t,e){var r,a;function o(){var s=e.apply(this,arguments);return s!==a&&(r=(a=s)&&Br(t,s)),r}return o._value=e,o}function fu(t,e){return function(){rl(this,t).delay=+e.apply(this,arguments)}}function cf(t,e){return e=+e,function(){rl(this,t).delay=e}}function lf(t,e){return function(){Ka(this,t).duration=+e.apply(this,arguments)}}function du(t,e){return e=+e,function(){Ka(this,t).duration=e}}function pu(t,e){if(typeof e!="function")throw new Error;return function(){Ka(this,t).ease=e}}function bo(t,e,r){var a,o,s=function(h){return(h+"").trim().split(/^|\s+/).every(function(f){var m=f.indexOf(".");return m>=0&&(f=f.slice(0,m)),!f||f==="start"})}(e)?rl:Ka;return function(){var h=s(this,t),f=h.on;f!==a&&(o=(a=f).copy()).on(e,r),h.on=o}}var al=qn.prototype.constructor;function u1(t){return function(){this.style.removeProperty(t)}}function h1(t,e,r){return function(a){this.style.setProperty(t,e.call(this,a),r)}}function gu(t,e,r){var a,o;function s(){var h=e.apply(this,arguments);return h!==o&&(a=(o=h)&&h1(t,h,r)),a}return s._value=e,s}function ii(t){return function(e){this.textContent=t.call(this,e)}}function ts(t){var e,r;function a(){var o=t.apply(this,arguments);return o!==r&&(e=(r=o)&&ii(o)),e}return a._value=t,a}var Es=0;function vi(t,e,r,a){this._groups=t,this._parents=e,this._name=r,this._id=a}function kc(t){return qn().transition(t)}function ol(){return++Es}var Ra=qn.prototype;function yu(t){return t*t*t}function sl(t){return--t*t*t+1}function Ss(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}vi.prototype=kc.prototype={constructor:vi,select:function(t){var e=this._name,r=this._id;typeof t!="function"&&(t=wi(t));for(var a=this._groups,o=a.length,s=new Array(o),h=0;h<o;++h)for(var f,m,v=a[h],C=v.length,I=s[h]=new Array(C),D=0;D<C;++D)(f=v[D])&&(m=t.call(f,f.__data__,D,v))&&("__data__"in f&&(m.__data__=f.__data__),I[D]=m,yo(I[D],e,r,D,I,Ca(f,r)));return new vi(s,this._parents,e,r)},selectAll:function(t){var e=this._name,r=this._id;typeof t!="function"&&(t=Or(t));for(var a=this._groups,o=a.length,s=[],h=[],f=0;f<o;++f)for(var m,v=a[f],C=v.length,I=0;I<C;++I)if(m=v[I]){for(var D,R=t.call(m,m.__data__,I,v),Z=Ca(m,r),U=0,$=R.length;U<$;++U)(D=R[U])&&yo(D,e,r,U,R,Z);s.push(R),h.push(m)}return new vi(s,h,e,r)},selectChild:Ra.selectChild,selectChildren:Ra.selectChildren,filter:function(t){typeof t!="function"&&(t=Vr(t));for(var e=this._groups,r=e.length,a=new Array(r),o=0;o<r;++o)for(var s,h=e[o],f=h.length,m=a[o]=[],v=0;v<f;++v)(s=h[v])&&t.call(s,s.__data__,v,h)&&m.push(s);return new vi(a,this._parents,this._name,this._id)},merge:function(t){if(t._id!==this._id)throw new Error;for(var e=this._groups,r=t._groups,a=e.length,o=r.length,s=Math.min(a,o),h=new Array(a),f=0;f<s;++f)for(var m,v=e[f],C=r[f],I=v.length,D=h[f]=new Array(I),R=0;R<I;++R)(m=v[R]||C[R])&&(D[R]=m);for(;f<a;++f)h[f]=e[f];return new vi(h,this._parents,this._name,this._id)},selection:function(){return new al(this._groups,this._parents)},transition:function(){for(var t=this._name,e=this._id,r=ol(),a=this._groups,o=a.length,s=0;s<o;++s)for(var h,f=a[s],m=f.length,v=0;v<m;++v)if(h=f[v]){var C=Ca(h,e);yo(h,t,r,v,f,{time:C.time+C.delay+C.duration,delay:0,duration:C.duration,ease:C.ease})}return new vi(a,this._parents,t,r)},call:Ra.call,nodes:Ra.nodes,node:Ra.node,size:Ra.size,empty:Ra.empty,each:Ra.each,on:function(t,e){var r=this._id;return arguments.length<2?Ca(this.node(),r).on.on(t):this.each(bo(r,t,e))},attr:function(t,e){var r=Xr(t),a=r==="transform"?il:uu;return this.attrTween(t,typeof e=="function"?(r.local?zo:mo)(r,a,lu(this,"attr."+t,e)):e==null?(r.local?hu:xc)(r):(r.local?of:s1)(r,a,e))},attrTween:function(t,e){var r="attr."+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;var a=Xr(t);return this.tween(r,(a.local?l1:sf)(a,e))},style:function(t,e,r){var a=(t+="")=="transform"?a1:uu;return e==null?this.styleTween(t,function(o,s){var h,f,m;return function(){var v=Ve(this,o),C=(this.style.removeProperty(o),Ve(this,o));return v===C?null:v===h&&C===f?m:m=s(h=v,f=C)}}(t,a)).on("end.style."+t,u1(t)):typeof e=="function"?this.styleTween(t,function(o,s,h){var f,m,v;return function(){var C=Ve(this,o),I=h(this),D=I+"";return I==null&&(this.style.removeProperty(o),D=I=Ve(this,o)),C===D?null:C===f&&D===m?v:(m=D,v=s(f=C,I))}}(t,a,lu(this,"style."+t,e))).each(function(o,s){var h,f,m,v,C="style."+s,I="end."+C;return function(){var D=Ka(this,o),R=D.on,Z=D.value[C]==null?v||(v=u1(s)):void 0;R===h&&m===Z||(f=(h=R).copy()).on(I,m=Z),D.on=f}}(this._id,t)):this.styleTween(t,function(o,s,h){var f,m,v=h+"";return function(){var C=Ve(this,o);return C===v?null:C===f?m:m=s(f=C,h)}}(t,a,e),r).on("end.style."+t,null)},styleTween:function(t,e,r){var a="style."+(t+="");if(arguments.length<2)return(a=this.tween(a))&&a._value;if(e==null)return this.tween(a,null);if(typeof e!="function")throw new Error;return this.tween(a,gu(t,e,r==null?"":r))},text:function(t){return this.tween("text",typeof t=="function"?function(e){return function(){var r=e(this);this.textContent=r==null?"":r}}(lu(this,"text",t)):function(e){return function(){this.textContent=e}}(t==null?"":t+""))},textTween:function(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,ts(t))},remove:function(){return this.on("end.remove",function(t){return function(){var e=this.parentNode;for(var r in this.__transition)if(+r!==t)return;e&&e.removeChild(this)}}(this._id))},tween:function(t,e){var r=this._id;if(t+="",arguments.length<2){for(var a,o=Ca(this.node(),r).tween,s=0,h=o.length;s<h;++s)if((a=o[s]).name===t)return a.value;return null}return this.each((e==null?o1:af)(r,t,e))},delay:function(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?fu:cf)(e,t)):Ca(this.node(),e).delay},duration:function(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?lf:du)(e,t)):Ca(this.node(),e).duration},ease:function(t){var e=this._id;return arguments.length?this.each(pu(e,t)):Ca(this.node(),e).ease},easeVarying:function(t){if(typeof t!="function")throw new Error;return this.each(function(e,r){return function(){var a=r.apply(this,arguments);if(typeof a!="function")throw new Error;Ka(this,e).ease=a}}(this._id,t))},end:function(){var t,e,r=this,a=r._id,o=r.size();return new Promise(function(s,h){var f={value:h},m={value:function(){--o==0&&s()}};r.each(function(){var v=Ka(this,a),C=v.on;C!==t&&((e=(t=C).copy())._.cancel.push(f),e._.interrupt.push(f),e._.end.push(m)),v.on=e}),o===0&&s()})},[Symbol.iterator]:Ra[Symbol.iterator]};var cl={time:null,delay:0,duration:250,ease:Ss};function uf(t,e){for(var r;!(r=t.__transition)||!(r=r[e]);)if(!(t=t.parentNode))throw new Error(`transition ${e} not found`);return r}qn.prototype.interrupt=function(t){return this.each(function(){Ja(this,t)})},qn.prototype.transition=function(t){var e,r;t instanceof vi?(e=t._id,t=t._name):(e=ol(),(r=cl).time=vc(),t=t==null?null:t+"");for(var a=this._groups,o=a.length,s=0;s<o;++s)for(var h,f=a[s],m=f.length,v=0;v<m;++v)(h=f[v])&&yo(h,t,e,v,f,r||uf(h,e));return new vi(a,this._parents,t,e)};var mu=[null];function f1(t,e){var r,a,o=t.__transition;if(o){for(a in e=e==null?null:e+"",o)if((r=o[a]).state>1&&r.name===e)return new vi([[t]],mu,e,+a)}return null}const bu=t=>()=>t;function vu(t,{sourceEvent:e,target:r,selection:a,mode:o,dispatch:s}){Object.defineProperties(this,{type:{value:t,enumerable:!0,configurable:!0},sourceEvent:{value:e,enumerable:!0,configurable:!0},target:{value:r,enumerable:!0,configurable:!0},selection:{value:a,enumerable:!0,configurable:!0},mode:{value:o,enumerable:!0,configurable:!0},_:{value:s}})}function d1(t){t.stopImmediatePropagation()}function _u(t){t.preventDefault(),t.stopImmediatePropagation()}var xu={name:"drag"},ll={name:"space"},ga={name:"handle"},Cs={name:"center"};const{abs:ca,max:zi,min:Bi}=Math;function p1(t){return[+t[0],+t[1]]}function ku(t){return[p1(t[0]),p1(t[1])]}var ul={name:"x",handles:["w","e"].map(wc),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]]}},hl={name:"y",handles:["n","s"].map(wc),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]]}},hf={name:"xy",handles:["n","w","e","s","nw","ne","sw","se"].map(wc),input:function(t){return t==null?null:ku(t)},output:function(t){return t}},vo={overlay:"crosshair",selection:"move",n:"ns-resize",e:"ew-resize",s:"ns-resize",w:"ew-resize",nw:"nwse-resize",ne:"nesw-resize",se:"nwse-resize",sw:"nesw-resize"},g1={e:"w",w:"e",nw:"ne",ne:"nw",se:"sw",sw:"se"},y1={n:"s",s:"n",nw:"sw",ne:"se",se:"ne",sw:"nw"},ff={overlay:1,selection:1,n:null,e:1,s:null,w:-1,nw:-1,ne:1,se:1,sw:-1},df={overlay:1,selection:1,n:-1,e:null,s:1,w:null,nw:-1,ne:-1,se:1,sw:1};function wc(t){return{type:t}}function _o(t){return!t.ctrlKey&&!t.button}function pf(){var t=this.ownerSVGElement||this;return t.hasAttribute("viewBox")?[[(t=t.viewBox.baseVal).x,t.y],[t.x+t.width,t.y+t.height]]:[[0,0],[t.width.baseVal.value,t.height.baseVal.value]]}function m1(){return navigator.maxTouchPoints||"ontouchstart"in this}function fl(t){for(;!t.__brush;)if(!(t=t.parentNode))return;return t.__brush}function b1(t){return t[0][0]===t[1][0]||t[0][1]===t[1][1]}function dl(t){var e=t.__brush;return e?e.dim.output(e.selection):null}function v1(){return Tc(ul)}function _1(){return Tc(hl)}function x1(){return Tc(hf)}function Tc(t){var e,r=pf,a=_o,o=m1,s=!0,h=nr("start","brush","end"),f=6;function m($){var W=$.property("__brush",U).selectAll(".overlay").data([wc("overlay")]);W.enter().append("rect").attr("class","overlay").attr("pointer-events","all").attr("cursor",vo.overlay).merge(W).each(function(){var nt=fl(this).extent;kr(this).attr("x",nt[0][0]).attr("y",nt[0][1]).attr("width",nt[1][0]-nt[0][0]).attr("height",nt[1][1]-nt[0][1])}),$.selectAll(".selection").data([wc("selection")]).enter().append("rect").attr("class","selection").attr("cursor",vo.selection).attr("fill","#777").attr("fill-opacity",.3).attr("stroke","#fff").attr("shape-rendering","crispEdges");var it=$.selectAll(".handle").data(t.handles,function(nt){return nt.type});it.exit().remove(),it.enter().append("rect").attr("class",function(nt){return"handle handle--"+nt.type}).attr("cursor",function(nt){return vo[nt.type]}),$.each(v).attr("fill","none").attr("pointer-events","all").on("mousedown.brush",D).filter(o).on("touchstart.brush",D).on("touchmove.brush",R).on("touchend.brush touchcancel.brush",Z).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function v(){var $=kr(this),W=fl(this).selection;W?($.selectAll(".selection").style("display",null).attr("x",W[0][0]).attr("y",W[0][1]).attr("width",W[1][0]-W[0][0]).attr("height",W[1][1]-W[0][1]),$.selectAll(".handle").style("display",null).attr("x",function(it){return it.type[it.type.length-1]==="e"?W[1][0]-f/2:W[0][0]-f/2}).attr("y",function(it){return it.type[0]==="s"?W[1][1]-f/2:W[0][1]-f/2}).attr("width",function(it){return it.type==="n"||it.type==="s"?W[1][0]-W[0][0]+f:f}).attr("height",function(it){return it.type==="e"||it.type==="w"?W[1][1]-W[0][1]+f:f})):$.selectAll(".selection,.handle").style("display","none").attr("x",null).attr("y",null).attr("width",null).attr("height",null)}function C($,W,it){var nt=$.__brush.emitter;return!nt||it&&nt.clean?new I($,W,it):nt}function I($,W,it){this.that=$,this.args=W,this.state=$.__brush,this.active=0,this.clean=it}function D($){if((!e||$.touches)&&a.apply(this,arguments)){var W,it,nt,rt,lt,pt,Jt,ye,Ut,Pt,jt,zt=this,gt=$.target.__data__.type,Bt=(s&&$.metaKey?gt="overlay":gt)==="selection"?xu:s&&$.altKey?Cs:ga,Vt=t===hl?null:ff[gt],ae=t===ul?null:df[gt],we=fl(zt),ze=we.extent,He=we.selection,dn=ze[0][0],Ge=ze[0][1],Yn=ze[1][0],Wn=ze[1][1],Cn=0,Ln=0,wr=Vt&&ae&&s&&$.shiftKey,ir=Array.from($.touches||[$],sr=>{const Pi=sr.identifier;return(sr=sa(sr,zt)).point0=sr.slice(),sr.identifier=Pi,sr});Ja(zt);var Oa=C(zt,arguments,!0).beforestart();if(gt==="overlay"){He&&(Ut=!0);const sr=[ir[0],ir[1]||ir[0]];we.selection=He=[[W=t===hl?dn:Bi(sr[0][0],sr[1][0]),nt=t===ul?Ge:Bi(sr[0][1],sr[1][1])],[lt=t===hl?Yn:zi(sr[0][0],sr[1][0]),Jt=t===ul?Wn:zi(sr[0][1],sr[1][1])]],ir.length>1&&Hc($)}else W=He[0][0],nt=He[0][1],lt=He[1][0],Jt=He[1][1];it=W,rt=nt,pt=lt,ye=Jt;var nc=kr(zt).attr("pointer-events","none"),Do=nc.selectAll(".overlay").attr("cursor",vo[gt]);if($.touches)Oa.moved=Cm,Oa.ended=Am;else{var eu=kr($.view).on("mousemove.brush",Cm,!0).on("mouseup.brush",Am,!0);s&&eu.on("keydown.brush",w6,!0).on("keyup.brush",T6,!0),po($.view)}v.call(zt),Oa.start($,Bt.name)}function Cm(sr){for(const Pi of sr.changedTouches||[sr])for(const Gh of ir)Gh.identifier===Pi.identifier&&(Gh.cur=sa(Pi,zt));if(wr&&!Pt&&!jt&&ir.length===1){const Pi=ir[0];ca(Pi.cur[0]-Pi[0])>ca(Pi.cur[1]-Pi[1])?jt=!0:Pt=!0}for(const Pi of ir)Pi.cur&&(Pi[0]=Pi.cur[0],Pi[1]=Pi.cur[1]);Ut=!0,_u(sr),Hc(sr)}function Hc(sr){const Pi=ir[0],Gh=Pi.point0;var rc;switch(Cn=Pi[0]-Gh[0],Ln=Pi[1]-Gh[1],Bt){case ll:case xu:Vt&&(Cn=zi(dn-W,Bi(Yn-lt,Cn)),it=W+Cn,pt=lt+Cn),ae&&(Ln=zi(Ge-nt,Bi(Wn-Jt,Ln)),rt=nt+Ln,ye=Jt+Ln);break;case ga:ir[1]?(Vt&&(it=zi(dn,Bi(Yn,ir[0][0])),pt=zi(dn,Bi(Yn,ir[1][0])),Vt=1),ae&&(rt=zi(Ge,Bi(Wn,ir[0][1])),ye=zi(Ge,Bi(Wn,ir[1][1])),ae=1)):(Vt<0?(Cn=zi(dn-W,Bi(Yn-W,Cn)),it=W+Cn,pt=lt):Vt>0&&(Cn=zi(dn-lt,Bi(Yn-lt,Cn)),it=W,pt=lt+Cn),ae<0?(Ln=zi(Ge-nt,Bi(Wn-nt,Ln)),rt=nt+Ln,ye=Jt):ae>0&&(Ln=zi(Ge-Jt,Bi(Wn-Jt,Ln)),rt=nt,ye=Jt+Ln));break;case Cs:Vt&&(it=zi(dn,Bi(Yn,W-Cn*Vt)),pt=zi(dn,Bi(Yn,lt+Cn*Vt))),ae&&(rt=zi(Ge,Bi(Wn,nt-Ln*ae)),ye=zi(Ge,Bi(Wn,Jt+Ln*ae)))}pt<it&&(Vt*=-1,rc=W,W=lt,lt=rc,rc=it,it=pt,pt=rc,gt in g1&&Do.attr("cursor",vo[gt=g1[gt]])),ye<rt&&(ae*=-1,rc=nt,nt=Jt,Jt=rc,rc=rt,rt=ye,ye=rc,gt in y1&&Do.attr("cursor",vo[gt=y1[gt]])),we.selection&&(He=we.selection),Pt&&(it=He[0][0],pt=He[1][0]),jt&&(rt=He[0][1],ye=He[1][1]),He[0][0]===it&&He[0][1]===rt&&He[1][0]===pt&&He[1][1]===ye||(we.selection=[[it,rt],[pt,ye]],v.call(zt),Oa.brush(sr,Bt.name))}function Am(sr){if(d1(sr),sr.touches){if(sr.touches.length)return;e&&clearTimeout(e),e=setTimeout(function(){e=null},500)}else go(sr.view,Ut),eu.on("keydown.brush keyup.brush mousemove.brush mouseup.brush",null);nc.attr("pointer-events","all"),Do.attr("cursor",vo.overlay),we.selection&&(He=we.selection),b1(He)&&(we.selection=null,v.call(zt)),Oa.end(sr,Bt.name)}function w6(sr){switch(sr.keyCode){case 16:wr=Vt&&ae;break;case 18:Bt===ga&&(Vt&&(lt=pt-Cn*Vt,W=it+Cn*Vt),ae&&(Jt=ye-Ln*ae,nt=rt+Ln*ae),Bt=Cs,Hc(sr));break;case 32:Bt!==ga&&Bt!==Cs||(Vt<0?lt=pt-Cn:Vt>0&&(W=it-Cn),ae<0?Jt=ye-Ln:ae>0&&(nt=rt-Ln),Bt=ll,Do.attr("cursor",vo.selection),Hc(sr));break;default:return}_u(sr)}function T6(sr){switch(sr.keyCode){case 16:wr&&(Pt=jt=wr=!1,Hc(sr));break;case 18:Bt===Cs&&(Vt<0?lt=pt:Vt>0&&(W=it),ae<0?Jt=ye:ae>0&&(nt=rt),Bt=ga,Hc(sr));break;case 32:Bt===ll&&(sr.altKey?(Vt&&(lt=pt-Cn*Vt,W=it+Cn*Vt),ae&&(Jt=ye-Ln*ae,nt=rt+Ln*ae),Bt=Cs):(Vt<0?lt=pt:Vt>0&&(W=it),ae<0?Jt=ye:ae>0&&(nt=rt),Bt=ga),Do.attr("cursor",vo[gt]),Hc(sr));break;default:return}_u(sr)}}function R($){C(this,arguments).moved($)}function Z($){C(this,arguments).ended($)}function U(){var $=this.__brush||{selection:null};return $.extent=ku(r.apply(this,arguments)),$.dim=t,$}return m.move=function($,W,it){$.tween?$.on("start.brush",function(nt){C(this,arguments).beforestart().start(nt)}).on("interrupt.brush end.brush",function(nt){C(this,arguments).end(nt)}).tween("brush",function(){var nt=this,rt=nt.__brush,lt=C(nt,arguments),pt=rt.selection,Jt=t.input(typeof W=="function"?W.apply(this,arguments):W,rt.extent),ye=Kn(pt,Jt);function Ut(Pt){rt.selection=Pt===1&&Jt===null?null:ye(Pt),v.call(nt),lt.brush()}return pt!==null&&Jt!==null?Ut:Ut(1)}):$.each(function(){var nt=this,rt=arguments,lt=nt.__brush,pt=t.input(typeof W=="function"?W.apply(nt,rt):W,lt.extent),Jt=C(nt,rt).beforestart();Ja(nt),lt.selection=pt===null?null:pt,v.call(nt),Jt.start(it).brush(it).end(it)})},m.clear=function($,W){m.move($,null,W)},I.prototype={beforestart:function(){return++this.active==1&&(this.state.emitter=this,this.starting=!0),this},start:function($,W){return this.starting?(this.starting=!1,this.emit("start",$,W)):this.emit("brush",$),this},brush:function($,W){return this.emit("brush",$,W),this},end:function($,W){return--this.active==0&&(delete this.state.emitter,this.emit("end",$,W)),this},emit:function($,W,it){var nt=kr(this.that).datum();h.call($,this.that,new vu($,{sourceEvent:W,target:m,selection:t.output(this.state.selection),mode:it,dispatch:h}),nt)}},m.extent=function($){return arguments.length?(r=typeof $=="function"?$:bu(ku($)),m):r},m.filter=function($){return arguments.length?(a=typeof $=="function"?$:bu(!!$),m):a},m.touchable=function($){return arguments.length?(o=typeof $=="function"?$:bu(!!$),m):o},m.handleSize=function($){return arguments.length?(f=+$,m):f},m.keyModifiers=function($){return arguments.length?(s=!!$,m):s},m.on=function(){var $=h.on.apply(h,arguments);return $===h?m:$},m}var k1=Math.abs,es=Math.cos,Yo=Math.sin,pl=Math.PI,ns=pl/2,Pa=2*pl,gl=Math.max,Ec=1e-12;function rs(t,e){return Array.from({length:e-t},(r,a)=>t+a)}function Sc(t){return function(e,r){return t(e.source.value+e.target.value,r.source.value+r.target.value)}}function wu(){return Uo(!1,!1)}function Tu(){return Uo(!1,!0)}function Eu(){return Uo(!0,!1)}function Uo(t,e){var r=0,a=null,o=null,s=null;function h(f){var m,v=f.length,C=new Array(v),I=rs(0,v),D=new Array(v*v),R=new Array(v),Z=0;f=Float64Array.from({length:v*v},e?(U,$)=>f[$%v][$/v|0]:(U,$)=>f[$/v|0][$%v]);for(let U=0;U<v;++U){let $=0;for(let W=0;W<v;++W)$+=f[U*v+W]+t*f[W*v+U];Z+=C[U]=$}m=(Z=gl(0,Pa-r*v)/Z)?r:Pa/v;{let U=0;a&&I.sort(($,W)=>a(C[$],C[W]));for(const $ of I){const W=U;if(t){const it=rs(1+~v,v).filter(nt=>nt<0?f[~nt*v+$]:f[$*v+nt]);o&&it.sort((nt,rt)=>o(nt<0?-f[~nt*v+$]:f[$*v+nt],rt<0?-f[~rt*v+$]:f[$*v+rt]));for(const nt of it)nt<0?(D[~nt*v+$]||(D[~nt*v+$]={source:null,target:null})).target={index:$,startAngle:U,endAngle:U+=f[~nt*v+$]*Z,value:f[~nt*v+$]}:(D[$*v+nt]||(D[$*v+nt]={source:null,target:null})).source={index:$,startAngle:U,endAngle:U+=f[$*v+nt]*Z,value:f[$*v+nt]};R[$]={index:$,startAngle:W,endAngle:U,value:C[$]}}else{const it=rs(0,v).filter(nt=>f[$*v+nt]||f[nt*v+$]);o&&it.sort((nt,rt)=>o(f[$*v+nt],f[$*v+rt]));for(const nt of it){let rt;if($<nt?(rt=D[$*v+nt]||(D[$*v+nt]={source:null,target:null}),rt.source={index:$,startAngle:U,endAngle:U+=f[$*v+nt]*Z,value:f[$*v+nt]}):(rt=D[nt*v+$]||(D[nt*v+$]={source:null,target:null}),rt.target={index:$,startAngle:U,endAngle:U+=f[$*v+nt]*Z,value:f[$*v+nt]},$===nt&&(rt.source=rt.target)),rt.source&&rt.target&&rt.source.value<rt.target.value){const lt=rt.source;rt.source=rt.target,rt.target=lt}}R[$]={index:$,startAngle:W,endAngle:U,value:C[$]}}U+=m}}return(D=Object.values(D)).groups=R,s?D.sort(s):D}return h.padAngle=function(f){return arguments.length?(r=gl(0,f),h):r},h.sortGroups=function(f){return arguments.length?(a=f,h):a},h.sortSubgroups=function(f){return arguments.length?(o=f,h):o},h.sortChords=function(f){return arguments.length?(f==null?s=null:(s=Sc(f))._=f,h):s&&s._},h}const yl=Math.PI,As=2*yl,ja=1e-6,Su=As-ja;function Cc(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function Cu(){return new Cc}Cc.prototype=Cu.prototype={constructor:Cc,moveTo:function(t,e){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)},closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(t,e){this._+="L"+(this._x1=+t)+","+(this._y1=+e)},quadraticCurveTo:function(t,e,r,a){this._+="Q"+ +t+","+ +e+","+(this._x1=+r)+","+(this._y1=+a)},bezierCurveTo:function(t,e,r,a,o,s){this._+="C"+ +t+","+ +e+","+ +r+","+ +a+","+(this._x1=+o)+","+(this._y1=+s)},arcTo:function(t,e,r,a,o){t=+t,e=+e,r=+r,a=+a,o=+o;var s=this._x1,h=this._y1,f=r-t,m=a-e,v=s-t,C=h-e,I=v*v+C*C;if(o<0)throw new Error("negative radius: "+o);if(this._x1===null)this._+="M"+(this._x1=t)+","+(this._y1=e);else if(I>ja)if(Math.abs(C*f-m*v)>ja&&o){var D=r-s,R=a-h,Z=f*f+m*m,U=D*D+R*R,$=Math.sqrt(Z),W=Math.sqrt(I),it=o*Math.tan((yl-Math.acos((Z+I-U)/(2*$*W)))/2),nt=it/W,rt=it/$;Math.abs(nt-1)>ja&&(this._+="L"+(t+nt*v)+","+(e+nt*C)),this._+="A"+o+","+o+",0,0,"+ +(C*D>v*R)+","+(this._x1=t+rt*f)+","+(this._y1=e+rt*m)}else this._+="L"+(this._x1=t)+","+(this._y1=e)},arc:function(t,e,r,a,o,s){t=+t,e=+e,s=!!s;var h=(r=+r)*Math.cos(a),f=r*Math.sin(a),m=t+h,v=e+f,C=1^s,I=s?a-o:o-a;if(r<0)throw new Error("negative radius: "+r);this._x1===null?this._+="M"+m+","+v:(Math.abs(this._x1-m)>ja||Math.abs(this._y1-v)>ja)&&(this._+="L"+m+","+v),r&&(I<0&&(I=I%As+As),I>Su?this._+="A"+r+","+r+",0,1,"+C+","+(t-h)+","+(e-f)+"A"+r+","+r+",0,1,"+C+","+(this._x1=m)+","+(this._y1=v):I>ja&&(this._+="A"+r+","+r+",0,"+ +(I>=yl)+","+C+","+(this._x1=t+r*Math.cos(o))+","+(this._y1=e+r*Math.sin(o))))},rect:function(t,e,r,a){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)+"h"+ +r+"v"+ +a+"h"+-r+"Z"},toString:function(){return this._}};const $o=Cu;var gf=Array.prototype.slice;function xo(t){return function(){return t}}function w1(t){return t.source}function T1(t){return t.target}function Au(t){return t.radius}function Ms(t){return t.startAngle}function gi(t){return t.endAngle}function E1(){return 0}function Ds(){return 10}function Mu(t){var e=w1,r=T1,a=Au,o=Au,s=Ms,h=gi,f=E1,m=null;function v(){var C,I=e.apply(this,arguments),D=r.apply(this,arguments),R=f.apply(this,arguments)/2,Z=gf.call(arguments),U=+a.apply(this,(Z[0]=I,Z)),$=s.apply(this,Z)-ns,W=h.apply(this,Z)-ns,it=+o.apply(this,(Z[0]=D,Z)),nt=s.apply(this,Z)-ns,rt=h.apply(this,Z)-ns;if(m||(m=C=$o()),R>Ec&&(k1(W-$)>2*R+Ec?W>$?($+=R,W-=R):($-=R,W+=R):$=W=($+W)/2,k1(rt-nt)>2*R+Ec?rt>nt?(nt+=R,rt-=R):(nt-=R,rt+=R):nt=rt=(nt+rt)/2),m.moveTo(U*es($),U*Yo($)),m.arc(0,0,U,$,W),$!==nt||W!==rt)if(t){var lt=+t.apply(this,arguments),pt=it-lt,Jt=(nt+rt)/2;m.quadraticCurveTo(0,0,pt*es(nt),pt*Yo(nt)),m.lineTo(it*es(Jt),it*Yo(Jt)),m.lineTo(pt*es(rt),pt*Yo(rt))}else m.quadraticCurveTo(0,0,it*es(nt),it*Yo(nt)),m.arc(0,0,it,nt,rt);if(m.quadraticCurveTo(0,0,U*es($),U*Yo($)),m.closePath(),C)return m=null,C+""||null}return t&&(v.headRadius=function(C){return arguments.length?(t=typeof C=="function"?C:xo(+C),v):t}),v.radius=function(C){return arguments.length?(a=o=typeof C=="function"?C:xo(+C),v):a},v.sourceRadius=function(C){return arguments.length?(a=typeof C=="function"?C:xo(+C),v):a},v.targetRadius=function(C){return arguments.length?(o=typeof C=="function"?C:xo(+C),v):o},v.startAngle=function(C){return arguments.length?(s=typeof C=="function"?C:xo(+C),v):s},v.endAngle=function(C){return arguments.length?(h=typeof C=="function"?C:xo(+C),v):h},v.padAngle=function(C){return arguments.length?(f=typeof C=="function"?C:xo(+C),v):f},v.source=function(C){return arguments.length?(e=C,v):e},v.target=function(C){return arguments.length?(r=C,v):r},v.context=function(C){return arguments.length?(m=C==null?null:C,v):m},v}function S1(){return Mu()}function C1(){return Mu(Ds)}const Du=Math.PI/180,Nu=180/Math.PI,ko=.96422,ml=.82521,A1=4/29,Ou=6/29,Bu=3*Ou*Ou;function Lu(t){if(t instanceof za)return new za(t.l,t.a,t.b,t.opacity);if(t instanceof Di)return M1(t);t instanceof Yr||(t=$r(t));var e,r,a=Ns(t.r),o=Ns(t.g),s=Ns(t.b),h=Iu((.2225045*a+.7168786*o+.0606169*s)/1);return a===o&&o===s?e=r=h:(e=Iu((.4360747*a+.3850649*o+.1430804*s)/ko),r=Iu((.0139322*a+.0971045*o+.7141733*s)/ml)),new za(116*h-16,500*(e-h),200*(h-r),t.opacity)}function yf(t,e){return new za(t,0,0,e==null?1:e)}function bl(t,e,r,a){return arguments.length===1?Lu(t):new za(t,e,r,a==null?1:a)}function za(t,e,r,a){this.l=+t,this.a=+e,this.b=+r,this.opacity=+a}function Iu(t){return t>.008856451679035631?Math.pow(t,.3333333333333333):t/Bu+A1}function Fu(t){return t>Ou?t*t*t:Bu*(t-A1)}function Ru(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,.4166666666666667)-.055)}function Ns(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function vl(t){if(t instanceof Di)return new Di(t.h,t.c,t.l,t.opacity);if(t instanceof za||(t=Lu(t)),t.a===0&&t.b===0)return new Di(NaN,0<t.l&&t.l<100?0:NaN,t.l,t.opacity);var e=Math.atan2(t.b,t.a)*Nu;return new Di(e<0?e+360:e,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}function mf(t,e,r,a){return arguments.length===1?vl(t):new Di(r,e,t,a==null?1:a)}function Ya(t,e,r,a){return arguments.length===1?vl(t):new Di(t,e,r,a==null?1:a)}function Di(t,e,r,a){this.h=+t,this.c=+e,this.l=+r,this.opacity=+a}function M1(t){if(isNaN(t.h))return new za(t.l,0,0,t.opacity);var e=t.h*Du;return new za(t.l,Math.cos(e)*t.c,Math.sin(e)*t.c,t.opacity)}ji(za,bl,Ci(kn,{brighter:function(t){return new za(this.l+18*(t==null?1:t),this.a,this.b,this.opacity)},darker:function(t){return new za(this.l-18*(t==null?1:t),this.a,this.b,this.opacity)},rgb:function(){var t=(this.l+16)/116,e=isNaN(this.a)?t:t+this.a/500,r=isNaN(this.b)?t:t-this.b/200;return new Yr(Ru(3.1338561*(e=ko*Fu(e))-1.6168667*(t=1*Fu(t))-.4906146*(r=ml*Fu(r))),Ru(-.9787684*e+1.9161415*t+.033454*r),Ru(.0719453*e-.2289914*t+1.4052427*r),this.opacity)}})),ji(Di,Ya,Ci(kn,{brighter:function(t){return new Di(this.h,this.c,this.l+18*(t==null?1:t),this.opacity)},darker:function(t){return new Di(this.h,this.c,this.l-18*(t==null?1:t),this.opacity)},rgb:function(){return M1(this).rgb()}}));var D1=-.14861,Pu=1.78277,Ac=-.29227,Li=-.90649,wo=1.97294,To=wo*Li,Os=wo*Pu,N1=Pu*Ac-Li*D1;function ju(t){if(t instanceof Fr)return new Fr(t.h,t.s,t.l,t.opacity);t instanceof Yr||(t=$r(t));var e=t.r/255,r=t.g/255,a=t.b/255,o=(N1*a+To*e-Os*r)/(N1+To-Os),s=a-o,h=(wo*(r-o)-Ac*s)/Li,f=Math.sqrt(h*h+s*s)/(wo*o*(1-o)),m=f?Math.atan2(h,s)*Nu-120:NaN;return new Fr(m<0?m+360:m,f,o,t.opacity)}function Ua(t,e,r,a){return arguments.length===1?ju(t):new Fr(t,e,r,a==null?1:a)}function Fr(t,e,r,a){this.h=+t,this.s=+e,this.l=+r,this.opacity=+a}ji(Fr,Ua,Ci(kn,{brighter:function(t){return t=t==null?pa:Math.pow(pa,t),new Fr(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=t==null?Xi:Math.pow(Xi,t),new Fr(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=isNaN(this.h)?0:(this.h+120)*Du,e=+this.l,r=isNaN(this.s)?0:this.s*e*(1-e),a=Math.cos(t),o=Math.sin(t);return new Yr(255*(e+r*(D1*a+Pu*o)),255*(e+r*(Ac*a+Li*o)),255*(e+r*(wo*a)),this.opacity)}}));var zu=Array.prototype.slice;function O1(t,e){return t-e}const Eo=t=>()=>t;function B1(t,e){for(var r,a=-1,o=e.length;++a<o;)if(r=Bs(t,e[a]))return r;return 0}function Bs(t,e){for(var r=e[0],a=e[1],o=-1,s=0,h=t.length,f=h-1;s<h;f=s++){var m=t[s],v=m[0],C=m[1],I=t[f],D=I[0],R=I[1];if(bf(m,I,e))return 0;C>a!=R>a&&r<(D-v)*(a-C)/(R-C)+v&&(o=-o)}return o}function bf(t,e,r){var a,o,s,h;return function(f,m,v){return(m[0]-f[0])*(v[1]-f[1])==(v[0]-f[0])*(m[1]-f[1])}(t,e,r)&&(o=t[a=+(t[0]===e[0])],s=r[a],h=e[a],o<=s&&s<=h||h<=s&&s<=o)}function Yu(){}var So=[[],[[[1,1.5],[.5,1]]],[[[1.5,1],[1,1.5]]],[[[1.5,1],[.5,1]]],[[[1,.5],[1.5,1]]],[[[1,1.5],[.5,1]],[[1,.5],[1.5,1]]],[[[1,.5],[1,1.5]]],[[[1,.5],[.5,1]]],[[[.5,1],[1,.5]]],[[[1,1.5],[1,.5]]],[[[.5,1],[1,.5]],[[1.5,1],[1,1.5]]],[[[1.5,1],[1,.5]]],[[[.5,1],[1.5,1]]],[[[1,1.5],[1.5,1]]],[[[.5,1],[1,1.5]]],[]];function L1(){var t=1,e=1,r=Le,a=f;function o(m){var v=r(m);if(Array.isArray(v))v=v.slice().sort(O1);else{const C=ut(m),I=Mt(C[0],C[1],v);v=dt(Math.floor(C[0]/I)*I,Math.floor(C[1]/I-1)*I,v)}return v.map(C=>s(m,C))}function s(m,v){var C=[],I=[];return function(D,R,Z){var U,$,W,it,nt,rt,lt=new Array,pt=new Array;for(U=$=-1,it=D[0]>=R,So[it<<1].forEach(Jt);++U<t-1;)W=it,it=D[U+1]>=R,So[W|it<<1].forEach(Jt);for(So[it<<0].forEach(Jt);++$<e-1;){for(U=-1,it=D[$*t+t]>=R,nt=D[$*t]>=R,So[it<<1|nt<<2].forEach(Jt);++U<t-1;)W=it,it=D[$*t+t+U+1]>=R,rt=nt,nt=D[$*t+U+1]>=R,So[W|it<<1|nt<<2|rt<<3].forEach(Jt);So[it|nt<<3].forEach(Jt)}for(U=-1,nt=D[$*t]>=R,So[nt<<2].forEach(Jt);++U<t-1;)rt=nt,nt=D[$*t+U+1]>=R,So[nt<<2|rt<<3].forEach(Jt);function Jt(ye){var Ut,Pt,jt=[ye[0][0]+U,ye[0][1]+$],zt=[ye[1][0]+U,ye[1][1]+$],gt=h(jt),Bt=h(zt);(Ut=pt[gt])?(Pt=lt[Bt])?(delete pt[Ut.end],delete lt[Pt.start],Ut===Pt?(Ut.ring.push(zt),Z(Ut.ring)):lt[Ut.start]=pt[Pt.end]={start:Ut.start,end:Pt.end,ring:Ut.ring.concat(Pt.ring)}):(delete pt[Ut.end],Ut.ring.push(zt),pt[Ut.end=Bt]=Ut):(Ut=lt[Bt])?(Pt=pt[gt])?(delete lt[Ut.start],delete pt[Pt.end],Ut===Pt?(Ut.ring.push(zt),Z(Ut.ring)):lt[Pt.start]=pt[Ut.end]={start:Pt.start,end:Ut.end,ring:Pt.ring.concat(Ut.ring)}):(delete lt[Ut.start],Ut.ring.unshift(jt),lt[Ut.start=gt]=Ut):lt[gt]=pt[Bt]={start:gt,end:Bt,ring:[jt,zt]}}So[nt<<3].forEach(Jt)}(m,v,function(D){a(D,m,v),function(R){for(var Z=0,U=R.length,$=R[U-1][1]*R[0][0]-R[U-1][0]*R[0][1];++Z<U;)$+=R[Z-1][1]*R[Z][0]-R[Z-1][0]*R[Z][1];return $}(D)>0?C.push([D]):I.push(D)}),I.forEach(function(D){for(var R,Z=0,U=C.length;Z<U;++Z)if(B1((R=C[Z])[0],D)!==-1)return void R.push(D)}),{type:"MultiPolygon",value:v,coordinates:C}}function h(m){return 2*m[0]+m[1]*(t+1)*4}function f(m,v,C){m.forEach(function(I){var D,R=I[0],Z=I[1],U=0|R,$=0|Z,W=v[$*t+U];R>0&&R<t&&U===R&&(D=v[$*t+U-1],I[0]=R+(C-D)/(W-D)-.5),Z>0&&Z<e&&$===Z&&(D=v[($-1)*t+U],I[1]=Z+(C-D)/(W-D)-.5)})}return o.contour=s,o.size=function(m){if(!arguments.length)return[t,e];var v=Math.floor(m[0]),C=Math.floor(m[1]);if(!(v>=0&&C>=0))throw new Error("invalid size");return t=v,e=C,o},o.thresholds=function(m){return arguments.length?(r=typeof m=="function"?m:Array.isArray(m)?Eo(zu.call(m)):Eo(m),o):r},o.smooth=function(m){return arguments.length?(a=m?f:Yu,o):a===f},o}function is(t,e,r){for(var a=t.width,o=t.height,s=1+(r<<1),h=0;h<o;++h)for(var f=0,m=0;f<a+r;++f)f<a&&(m+=t.data[f+h*a]),f>=r&&(f>=s&&(m-=t.data[f-s+h*a]),e.data[f-r+h*a]=m/Math.min(f+1,a-1+s-f,s))}function to(t,e,r){for(var a=t.width,o=t.height,s=1+(r<<1),h=0;h<a;++h)for(var f=0,m=0;f<o+r;++f)f<o&&(m+=t.data[h+f*a]),f>=r&&(f>=s&&(m-=t.data[h+(f-s)*a]),e.data[h+(f-r)*a]=m/Math.min(f+1,o-1+s-f,s))}function $a(t){return t[0]}function _l(t){return t[1]}function Uu(){return 1}function vf(){var t=$a,e=_l,r=Uu,a=960,o=500,s=20,h=2,f=3*s,m=a+2*f>>h,v=o+2*f>>h,C=Eo(20);function I(W){var it=new Float32Array(m*v),nt=new Float32Array(m*v),rt=Math.pow(2,-h);W.forEach(function(Jt,ye,Ut){var Pt=(t(Jt,ye,Ut)+f)*rt,jt=(e(Jt,ye,Ut)+f)*rt,zt=+r(Jt,ye,Ut);if(Pt>=0&&Pt<m&&jt>=0&&jt<v){var gt=Math.floor(Pt),Bt=Math.floor(jt),Vt=Pt-gt-.5,ae=jt-Bt-.5;it[gt+Bt*m]+=(1-Vt)*(1-ae)*zt,it[gt+1+Bt*m]+=Vt*(1-ae)*zt,it[gt+1+(Bt+1)*m]+=Vt*ae*zt,it[gt+(Bt+1)*m]+=(1-Vt)*ae*zt}}),is({width:m,height:v,data:it},{width:m,height:v,data:nt},s>>h),to({width:m,height:v,data:nt},{width:m,height:v,data:it},s>>h),is({width:m,height:v,data:it},{width:m,height:v,data:nt},s>>h),to({width:m,height:v,data:nt},{width:m,height:v,data:it},s>>h),is({width:m,height:v,data:it},{width:m,height:v,data:nt},s>>h),to({width:m,height:v,data:nt},{width:m,height:v,data:it},s>>h);var lt=C(it);if(!Array.isArray(lt)){var pt=qe(it);lt=Mt(0,pt,lt),(lt=Me(0,Math.floor(pt/lt)*lt,lt)).shift()}return L1().thresholds(lt).size([m,v])(it).map(D)}function D(W){return W.value*=Math.pow(2,-2*h),W.coordinates.forEach(R),W}function R(W){W.forEach(Z)}function Z(W){W.forEach(U)}function U(W){W[0]=W[0]*Math.pow(2,h)-f,W[1]=W[1]*Math.pow(2,h)-f}function $(){return m=a+2*(f=3*s)>>h,v=o+2*f>>h,I}return I.x=function(W){return arguments.length?(t=typeof W=="function"?W:Eo(+W),I):t},I.y=function(W){return arguments.length?(e=typeof W=="function"?W:Eo(+W),I):e},I.weight=function(W){return arguments.length?(r=typeof W=="function"?W:Eo(+W),I):r},I.size=function(W){if(!arguments.length)return[a,o];var it=+W[0],nt=+W[1];if(!(it>=0&&nt>=0))throw new Error("invalid size");return a=it,o=nt,$()},I.cellSize=function(W){if(!arguments.length)return 1<<h;if(!((W=+W)>=1))throw new Error("invalid cell size");return h=Math.floor(Math.log(W)/Math.LN2),$()},I.thresholds=function(W){return arguments.length?(C=typeof W=="function"?W:Array.isArray(W)?Eo(zu.call(W)):Eo(W),I):C},I.bandwidth=function(W){if(!arguments.length)return Math.sqrt(s*(s+1));if(!((W=+W)>=0))throw new Error("invalid bandwidth");return s=Math.round((Math.sqrt(4*W*W+1)-1)/2),$()},I}const Rr=134217729;function as(t,e,r,a,o){let s,h,f,m,v=e[0],C=a[0],I=0,D=0;C>v==C>-v?(s=v,v=e[++I]):(s=C,C=a[++D]);let R=0;if(I<t&&D<r)for(C>v==C>-v?(h=v+s,f=s-(h-v),v=e[++I]):(h=C+s,f=s-(h-C),C=a[++D]),s=h,f!==0&&(o[R++]=f);I<t&&D<r;)C>v==C>-v?(h=s+v,m=h-s,f=s-(h-m)+(v-m),v=e[++I]):(h=s+C,m=h-s,f=s-(h-m)+(C-m),C=a[++D]),s=h,f!==0&&(o[R++]=f);for(;I<t;)h=s+v,m=h-s,f=s-(h-m)+(v-m),v=e[++I],s=h,f!==0&&(o[R++]=f);for(;D<r;)h=s+C,m=h-s,f=s-(h-m)+(C-m),C=a[++D],s=h,f!==0&&(o[R++]=f);return s===0&&R!==0||(o[R++]=s),R}function eo(t){return new Float64Array(t)}const no=eo(4),$u=eo(8),Wu=eo(12),xl=eo(16),Yi=eo(4);function Mc(t,e,r,a,o,s){const h=(e-s)*(r-o),f=(t-o)*(a-s),m=h-f;if(h===0||f===0||h>0!=f>0)return m;const v=Math.abs(h+f);return Math.abs(m)>=33306690738754716e-32*v?m:-function(C,I,D,R,Z,U,$){let W,it,nt,rt,lt,pt,Jt,ye,Ut,Pt,jt,zt,gt,Bt,Vt,ae,we,ze;const He=C-Z,dn=D-Z,Ge=I-U,Yn=R-U;Bt=He*Yn,pt=Rr*He,Jt=pt-(pt-He),ye=He-Jt,pt=Rr*Yn,Ut=pt-(pt-Yn),Pt=Yn-Ut,Vt=ye*Pt-(Bt-Jt*Ut-ye*Ut-Jt*Pt),ae=Ge*dn,pt=Rr*Ge,Jt=pt-(pt-Ge),ye=Ge-Jt,pt=Rr*dn,Ut=pt-(pt-dn),Pt=dn-Ut,we=ye*Pt-(ae-Jt*Ut-ye*Ut-Jt*Pt),jt=Vt-we,lt=Vt-jt,no[0]=Vt-(jt+lt)+(lt-we),zt=Bt+jt,lt=zt-Bt,gt=Bt-(zt-lt)+(jt-lt),jt=gt-ae,lt=gt-jt,no[1]=gt-(jt+lt)+(lt-ae),ze=zt+jt,lt=ze-zt,no[2]=zt-(ze-lt)+(jt-lt),no[3]=ze;let Wn=function(Oa,nc){let Do=nc[0];for(let eu=1;eu<4;eu++)Do+=nc[eu];return Do}(0,no),Cn=22204460492503146e-32*$;if(Wn>=Cn||-Wn>=Cn||(lt=C-He,W=C-(He+lt)+(lt-Z),lt=D-dn,nt=D-(dn+lt)+(lt-Z),lt=I-Ge,it=I-(Ge+lt)+(lt-U),lt=R-Yn,rt=R-(Yn+lt)+(lt-U),W===0&&it===0&&nt===0&&rt===0)||(Cn=11093356479670487e-47*$+33306690738754706e-32*Math.abs(Wn),Wn+=He*rt+Yn*W-(Ge*nt+dn*it),Wn>=Cn||-Wn>=Cn))return Wn;Bt=W*Yn,pt=Rr*W,Jt=pt-(pt-W),ye=W-Jt,pt=Rr*Yn,Ut=pt-(pt-Yn),Pt=Yn-Ut,Vt=ye*Pt-(Bt-Jt*Ut-ye*Ut-Jt*Pt),ae=it*dn,pt=Rr*it,Jt=pt-(pt-it),ye=it-Jt,pt=Rr*dn,Ut=pt-(pt-dn),Pt=dn-Ut,we=ye*Pt-(ae-Jt*Ut-ye*Ut-Jt*Pt),jt=Vt-we,lt=Vt-jt,Yi[0]=Vt-(jt+lt)+(lt-we),zt=Bt+jt,lt=zt-Bt,gt=Bt-(zt-lt)+(jt-lt),jt=gt-ae,lt=gt-jt,Yi[1]=gt-(jt+lt)+(lt-ae),ze=zt+jt,lt=ze-zt,Yi[2]=zt-(ze-lt)+(jt-lt),Yi[3]=ze;const Ln=as(4,no,4,Yi,$u);Bt=He*rt,pt=Rr*He,Jt=pt-(pt-He),ye=He-Jt,pt=Rr*rt,Ut=pt-(pt-rt),Pt=rt-Ut,Vt=ye*Pt-(Bt-Jt*Ut-ye*Ut-Jt*Pt),ae=Ge*nt,pt=Rr*Ge,Jt=pt-(pt-Ge),ye=Ge-Jt,pt=Rr*nt,Ut=pt-(pt-nt),Pt=nt-Ut,we=ye*Pt-(ae-Jt*Ut-ye*Ut-Jt*Pt),jt=Vt-we,lt=Vt-jt,Yi[0]=Vt-(jt+lt)+(lt-we),zt=Bt+jt,lt=zt-Bt,gt=Bt-(zt-lt)+(jt-lt),jt=gt-ae,lt=gt-jt,Yi[1]=gt-(jt+lt)+(lt-ae),ze=zt+jt,lt=ze-zt,Yi[2]=zt-(ze-lt)+(jt-lt),Yi[3]=ze;const wr=as(Ln,$u,4,Yi,Wu);Bt=W*rt,pt=Rr*W,Jt=pt-(pt-W),ye=W-Jt,pt=Rr*rt,Ut=pt-(pt-rt),Pt=rt-Ut,Vt=ye*Pt-(Bt-Jt*Ut-ye*Ut-Jt*Pt),ae=it*nt,pt=Rr*it,Jt=pt-(pt-it),ye=it-Jt,pt=Rr*nt,Ut=pt-(pt-nt),Pt=nt-Ut,we=ye*Pt-(ae-Jt*Ut-ye*Ut-Jt*Pt),jt=Vt-we,lt=Vt-jt,Yi[0]=Vt-(jt+lt)+(lt-we),zt=Bt+jt,lt=zt-Bt,gt=Bt-(zt-lt)+(jt-lt),jt=gt-ae,lt=gt-jt,Yi[1]=gt-(jt+lt)+(lt-ae),ze=zt+jt,lt=ze-zt,Yi[2]=zt-(ze-lt)+(jt-lt),Yi[3]=ze;const ir=as(wr,Wu,4,Yi,xl);return xl[ir-1]}(t,e,r,a,o,s,v)}const qu=Math.pow(2,-52),Dc=new Uint32Array(512);class Ls{static from(e,r=xf,a=Oc){const o=e.length,s=new Float64Array(2*o);for(let h=0;h<o;h++){const f=e[h];s[2*h]=r(f),s[2*h+1]=a(f)}return new Ls(s)}constructor(e){const r=e.length>>1;if(r>0&&typeof e[0]!="number")throw new Error("Expected coords to contain numbers.");this.coords=e;const a=Math.max(2*r-5,0);this._triangles=new Uint32Array(3*a),this._halfedges=new Int32Array(3*a),this._hashSize=Math.ceil(Math.sqrt(r)),this._hullPrev=new Uint32Array(r),this._hullNext=new Uint32Array(r),this._hullTri=new Uint32Array(r),this._hullHash=new Int32Array(this._hashSize).fill(-1),this._ids=new Uint32Array(r),this._dists=new Float64Array(r),this.update()}update(){const{coords:e,_hullPrev:r,_hullNext:a,_hullTri:o,_hullHash:s}=this,h=e.length>>1;let f=1/0,m=1/0,v=-1/0,C=-1/0;for(let Pt=0;Pt<h;Pt++){const jt=e[2*Pt],zt=e[2*Pt+1];jt<f&&(f=jt),zt<m&&(m=zt),jt>v&&(v=jt),zt>C&&(C=zt),this._ids[Pt]=Pt}const I=(f+v)/2,D=(m+C)/2;let R,Z,U,$=1/0;for(let Pt=0;Pt<h;Pt++){const jt=Is(I,D,e[2*Pt],e[2*Pt+1]);jt<$&&(R=Pt,$=jt)}const W=e[2*R],it=e[2*R+1];$=1/0;for(let Pt=0;Pt<h;Pt++){if(Pt===R)continue;const jt=Is(W,it,e[2*Pt],e[2*Pt+1]);jt<$&&jt>0&&(Z=Pt,$=jt)}let nt=e[2*Z],rt=e[2*Z+1],lt=1/0;for(let Pt=0;Pt<h;Pt++){if(Pt===R||Pt===Z)continue;const jt=_f(W,it,nt,rt,e[2*Pt],e[2*Pt+1]);jt<lt&&(U=Pt,lt=jt)}let pt=e[2*U],Jt=e[2*U+1];if(lt===1/0){for(let zt=0;zt<h;zt++)this._dists[zt]=e[2*zt]-e[0]||e[2*zt+1]-e[1];Fs(this._ids,this._dists,0,h-1);const Pt=new Uint32Array(h);let jt=0;for(let zt=0,gt=-1/0;zt<h;zt++){const Bt=this._ids[zt];this._dists[Bt]>gt&&(Pt[jt++]=Bt,gt=this._dists[Bt])}return this.hull=Pt.subarray(0,jt),this.triangles=new Uint32Array(0),void(this.halfedges=new Uint32Array(0))}if(Mc(W,it,nt,rt,pt,Jt)<0){const Pt=Z,jt=nt,zt=rt;Z=U,nt=pt,rt=Jt,U=Pt,pt=jt,Jt=zt}const ye=function(Pt,jt,zt,gt,Bt,Vt){const ae=zt-Pt,we=gt-jt,ze=Bt-Pt,He=Vt-jt,dn=ae*ae+we*we,Ge=ze*ze+He*He,Yn=.5/(ae*He-we*ze);return{x:Pt+(He*dn-we*Ge)*Yn,y:jt+(ae*Ge-ze*dn)*Yn}}(W,it,nt,rt,pt,Jt);this._cx=ye.x,this._cy=ye.y;for(let Pt=0;Pt<h;Pt++)this._dists[Pt]=Is(e[2*Pt],e[2*Pt+1],ye.x,ye.y);Fs(this._ids,this._dists,0,h-1),this._hullStart=R;let Ut=3;a[R]=r[U]=Z,a[Z]=r[R]=U,a[U]=r[Z]=R,o[R]=0,o[Z]=1,o[U]=2,s.fill(-1),s[this._hashKey(W,it)]=R,s[this._hashKey(nt,rt)]=Z,s[this._hashKey(pt,Jt)]=U,this.trianglesLen=0,this._addTriangle(R,Z,U,-1,-1,-1);for(let Pt,jt,zt=0;zt<this._ids.length;zt++){const gt=this._ids[zt],Bt=e[2*gt],Vt=e[2*gt+1];if(zt>0&&Math.abs(Bt-Pt)<=qu&&Math.abs(Vt-jt)<=qu||(Pt=Bt,jt=Vt,gt===R||gt===Z||gt===U))continue;let ae=0;for(let Ge=0,Yn=this._hashKey(Bt,Vt);Ge<this._hashSize&&(ae=s[(Yn+Ge)%this._hashSize],ae===-1||ae===a[ae]);Ge++);ae=r[ae];let we,ze=ae;for(;we=a[ze],Mc(Bt,Vt,e[2*ze],e[2*ze+1],e[2*we],e[2*we+1])>=0;)if(ze=we,ze===ae){ze=-1;break}if(ze===-1)continue;let He=this._addTriangle(ze,gt,a[ze],-1,-1,o[ze]);o[gt]=this._legalize(He+2),o[ze]=He,Ut++;let dn=a[ze];for(;we=a[dn],Mc(Bt,Vt,e[2*dn],e[2*dn+1],e[2*we],e[2*we+1])<0;)He=this._addTriangle(dn,gt,we,o[gt],-1,o[dn]),o[gt]=this._legalize(He+2),a[dn]=dn,Ut--,dn=we;if(ze===ae)for(;we=r[ze],Mc(Bt,Vt,e[2*we],e[2*we+1],e[2*ze],e[2*ze+1])<0;)He=this._addTriangle(we,gt,ze,-1,o[ze],o[we]),this._legalize(He+2),o[we]=He,a[ze]=ze,Ut--,ze=we;this._hullStart=r[gt]=ze,a[ze]=r[dn]=gt,a[gt]=dn,s[this._hashKey(Bt,Vt)]=gt,s[this._hashKey(e[2*ze],e[2*ze+1])]=ze}this.hull=new Uint32Array(Ut);for(let Pt=0,jt=this._hullStart;Pt<Ut;Pt++)this.hull[Pt]=jt,jt=a[jt];this.triangles=this._triangles.subarray(0,this.trianglesLen),this.halfedges=this._halfedges.subarray(0,this.trianglesLen)}_hashKey(e,r){return Math.floor(function(a,o){const s=a/(Math.abs(a)+Math.abs(o));return(o>0?3-s:1+s)/4}(e-this._cx,r-this._cy)*this._hashSize)%this._hashSize}_legalize(e){const{_triangles:r,_halfedges:a,coords:o}=this;let s=0,h=0;for(;;){const f=a[e],m=e-e%3;if(h=m+(e+2)%3,f===-1){if(s===0)break;e=Dc[--s];continue}const v=f-f%3,C=m+(e+1)%3,I=v+(f+2)%3,D=r[h],R=r[e],Z=r[C],U=r[I];if(I1(o[2*D],o[2*D+1],o[2*R],o[2*R+1],o[2*Z],o[2*Z+1],o[2*U],o[2*U+1])){r[e]=U,r[f]=D;const $=a[I];if($===-1){let it=this._hullStart;do{if(this._hullTri[it]===I){this._hullTri[it]=e;break}it=this._hullPrev[it]}while(it!==this._hullStart)}this._link(e,$),this._link(f,a[h]),this._link(h,I);const W=v+(f+1)%3;s<Dc.length&&(Dc[s++]=W)}else{if(s===0)break;e=Dc[--s]}}return h}_link(e,r){this._halfedges[e]=r,r!==-1&&(this._halfedges[r]=e)}_addTriangle(e,r,a,o,s,h){const f=this.trianglesLen;return this._triangles[f]=e,this._triangles[f+1]=r,this._triangles[f+2]=a,this._link(f,o),this._link(f+1,s),this._link(f+2,h),this.trianglesLen+=3,f}}function Is(t,e,r,a){const o=t-r,s=e-a;return o*o+s*s}function I1(t,e,r,a,o,s,h,f){const m=t-h,v=e-f,C=r-h,I=a-f,D=o-h,R=s-f,Z=C*C+I*I,U=D*D+R*R;return m*(I*U-Z*R)-v*(C*U-Z*D)+(m*m+v*v)*(C*R-I*D)<0}function _f(t,e,r,a,o,s){const h=r-t,f=a-e,m=o-t,v=s-e,C=h*h+f*f,I=m*m+v*v,D=.5/(h*v-f*m),R=(v*C-f*I)*D,Z=(h*I-m*C)*D;return R*R+Z*Z}function Fs(t,e,r,a){if(a-r<=20)for(let o=r+1;o<=a;o++){const s=t[o],h=e[s];let f=o-1;for(;f>=r&&e[t[f]]>h;)t[f+1]=t[f--];t[f+1]=s}else{let o=r+1,s=a;Nc(t,r+a>>1,o),e[t[r]]>e[t[a]]&&Nc(t,r,a),e[t[o]]>e[t[a]]&&Nc(t,o,a),e[t[r]]>e[t[o]]&&Nc(t,r,o);const h=t[o],f=e[h];for(;;){do o++;while(e[t[o]]<f);do s--;while(e[t[s]]>f);if(s<o)break;Nc(t,o,s)}t[r+1]=t[s],t[s]=h,a-o+1>=s-r?(Fs(t,e,o,a),Fs(t,e,r,s-1)):(Fs(t,e,r,s-1),Fs(t,e,o,a))}}function Nc(t,e,r){const a=t[e];t[e]=t[r],t[r]=a}function xf(t){return t[0]}function Oc(t){return t[1]}const F1=1e-6;class Ui{constructor(){this._x0=this._y0=this._x1=this._y1=null,this._=""}moveTo(e,r){this._+=`M${this._x0=this._x1=+e},${this._y0=this._y1=+r}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")}lineTo(e,r){this._+=`L${this._x1=+e},${this._y1=+r}`}arc(e,r,a){const o=(e=+e)+(a=+a),s=r=+r;if(a<0)throw new Error("negative radius");this._x1===null?this._+=`M${o},${s}`:(Math.abs(this._x1-o)>F1||Math.abs(this._y1-s)>F1)&&(this._+="L"+o+","+s),a&&(this._+=`A${a},${a},0,1,1,${e-a},${r}A${a},${a},0,1,1,${this._x1=o},${this._y1=s}`)}rect(e,r,a,o){this._+=`M${this._x0=this._x1=+e},${this._y0=this._y1=+r}h${+a}v${+o}h${-a}Z`}value(){return this._||null}}class Vu{constructor(){this._=[]}moveTo(e,r){this._.push([e,r])}closePath(){this._.push(this._[0].slice())}lineTo(e,r){this._.push([e,r])}value(){return this._.length?this._:null}}class R1{constructor(e,[r,a,o,s]=[0,0,960,500]){if(!((o=+o)>=(r=+r)&&(s=+s)>=(a=+a)))throw new Error("invalid bounds");this.delaunay=e,this._circumcenters=new Float64Array(2*e.points.length),this.vectors=new Float64Array(2*e.points.length),this.xmax=o,this.xmin=r,this.ymax=s,this.ymin=a,this._init()}update(){return this.delaunay.update(),this._init(),this}_init(){const{delaunay:{points:e,hull:r,triangles:a},vectors:o}=this,s=this.circumcenters=this._circumcenters.subarray(0,a.length/3*2);for(let R,Z,U=0,$=0,W=a.length;U<W;U+=3,$+=2){const it=2*a[U],nt=2*a[U+1],rt=2*a[U+2],lt=e[it],pt=e[it+1],Jt=e[nt],ye=e[nt+1],Ut=e[rt],Pt=e[rt+1],jt=Jt-lt,zt=ye-pt,gt=Ut-lt,Bt=Pt-pt,Vt=2*(jt*Bt-zt*gt);if(Math.abs(Vt)<1e-9){let ae=1e9;const we=2*a[0];ae*=Math.sign((e[we]-lt)*Bt-(e[we+1]-pt)*gt),R=(lt+Ut)/2-ae*Bt,Z=(pt+Pt)/2+ae*gt}else{const ae=1/Vt,we=jt*jt+zt*zt,ze=gt*gt+Bt*Bt;R=lt+(Bt*we-zt*ze)*ae,Z=pt+(jt*ze-gt*we)*ae}s[$]=R,s[$+1]=Z}let h,f,m,v=r[r.length-1],C=4*v,I=e[2*v],D=e[2*v+1];o.fill(0);for(let R=0;R<r.length;++R)v=r[R],h=C,f=I,m=D,C=4*v,I=e[2*v],D=e[2*v+1],o[h+2]=o[C]=m-D,o[h+3]=o[C+1]=I-f}render(e){const r=e==null?e=new Ui:void 0,{delaunay:{halfedges:a,inedges:o,hull:s},circumcenters:h,vectors:f}=this;if(s.length<=1)return null;for(let C=0,I=a.length;C<I;++C){const D=a[C];if(D<C)continue;const R=2*Math.floor(C/3),Z=2*Math.floor(D/3),U=h[R],$=h[R+1],W=h[Z],it=h[Z+1];this._renderSegment(U,$,W,it,e)}let m,v=s[s.length-1];for(let C=0;C<s.length;++C){m=v,v=s[C];const I=2*Math.floor(o[v]/3),D=h[I],R=h[I+1],Z=4*m,U=this._project(D,R,f[Z+2],f[Z+3]);U&&this._renderSegment(D,R,U[0],U[1],e)}return r&&r.value()}renderBounds(e){const r=e==null?e=new Ui:void 0;return e.rect(this.xmin,this.ymin,this.xmax-this.xmin,this.ymax-this.ymin),r&&r.value()}renderCell(e,r){const a=r==null?r=new Ui:void 0,o=this._clip(e);if(o===null||!o.length)return;r.moveTo(o[0],o[1]);let s=o.length;for(;o[0]===o[s-2]&&o[1]===o[s-1]&&s>1;)s-=2;for(let h=2;h<s;h+=2)o[h]===o[h-2]&&o[h+1]===o[h-1]||r.lineTo(o[h],o[h+1]);return r.closePath(),a&&a.value()}*cellPolygons(){const{delaunay:{points:e}}=this;for(let r=0,a=e.length/2;r<a;++r){const o=this.cellPolygon(r);o&&(o.index=r,yield o)}}cellPolygon(e){const r=new Vu;return this.renderCell(e,r),r.value()}_renderSegment(e,r,a,o,s){let h;const f=this._regioncode(e,r),m=this._regioncode(a,o);f===0&&m===0?(s.moveTo(e,r),s.lineTo(a,o)):(h=this._clipSegment(e,r,a,o,f,m))&&(s.moveTo(h[0],h[1]),s.lineTo(h[2],h[3]))}contains(e,r,a){return(r=+r)==r&&(a=+a)==a&&this.delaunay._step(e,r,a)===e}*neighbors(e){const r=this._clip(e);if(r)for(const a of this.delaunay.neighbors(e)){const o=this._clip(a);if(o){t:for(let s=0,h=r.length;s<h;s+=2)for(let f=0,m=o.length;f<m;f+=2)if(r[s]==o[f]&&r[s+1]==o[f+1]&&r[(s+2)%h]==o[(f+m-2)%m]&&r[(s+3)%h]==o[(f+m-1)%m]){yield a;break t}}}}_cell(e){const{circumcenters:r,delaunay:{inedges:a,halfedges:o,triangles:s}}=this,h=a[e];if(h===-1)return null;const f=[];let m=h;do{const v=Math.floor(m/3);if(f.push(r[2*v],r[2*v+1]),m=m%3==2?m-2:m+1,s[m]!==e)break;m=o[m]}while(m!==h&&m!==-1);return f}_clip(e){if(e===0&&this.delaunay.hull.length===1)return[this.xmax,this.ymin,this.xmax,this.ymax,this.xmin,this.ymax,this.xmin,this.ymin];const r=this._cell(e);if(r===null)return null;const{vectors:a}=this,o=4*e;return a[o]||a[o+1]?this._clipInfinite(e,r,a[o],a[o+1],a[o+2],a[o+3]):this._clipFinite(e,r)}_clipFinite(e,r){const a=r.length;let o,s,h,f,m=null,v=r[a-2],C=r[a-1],I=this._regioncode(v,C),D=0;for(let R=0;R<a;R+=2)if(o=v,s=C,v=r[R],C=r[R+1],h=I,I=this._regioncode(v,C),h===0&&I===0)f=D,D=0,m?m.push(v,C):m=[v,C];else{let Z,U,$,W,it;if(h===0){if((Z=this._clipSegment(o,s,v,C,h,I))===null)continue;[U,$,W,it]=Z}else{if((Z=this._clipSegment(v,C,o,s,I,h))===null)continue;[W,it,U,$]=Z,f=D,D=this._edgecode(U,$),f&&D&&this._edge(e,f,D,m,m.length),m?m.push(U,$):m=[U,$]}f=D,D=this._edgecode(W,it),f&&D&&this._edge(e,f,D,m,m.length),m?m.push(W,it):m=[W,it]}if(m)f=D,D=this._edgecode(m[0],m[1]),f&&D&&this._edge(e,f,D,m,m.length);else if(this.contains(e,(this.xmin+this.xmax)/2,(this.ymin+this.ymax)/2))return[this.xmax,this.ymin,this.xmax,this.ymax,this.xmin,this.ymax,this.xmin,this.ymin];return m}_clipSegment(e,r,a,o,s,h){for(;;){if(s===0&&h===0)return[e,r,a,o];if(s&h)return null;let f,m,v=s||h;8&v?(f=e+(a-e)*(this.ymax-r)/(o-r),m=this.ymax):4&v?(f=e+(a-e)*(this.ymin-r)/(o-r),m=this.ymin):2&v?(m=r+(o-r)*(this.xmax-e)/(a-e),f=this.xmax):(m=r+(o-r)*(this.xmin-e)/(a-e),f=this.xmin),s?(e=f,r=m,s=this._regioncode(e,r)):(a=f,o=m,h=this._regioncode(a,o))}}_clipInfinite(e,r,a,o,s,h){let f,m=Array.from(r);if((f=this._project(m[0],m[1],a,o))&&m.unshift(f[0],f[1]),(f=this._project(m[m.length-2],m[m.length-1],s,h))&&m.push(f[0],f[1]),m=this._clipFinite(e,m))for(let v,C=0,I=m.length,D=this._edgecode(m[I-2],m[I-1]);C<I;C+=2)v=D,D=this._edgecode(m[C],m[C+1]),v&&D&&(C=this._edge(e,v,D,m,C),I=m.length);else this.contains(e,(this.xmin+this.xmax)/2,(this.ymin+this.ymax)/2)&&(m=[this.xmin,this.ymin,this.xmax,this.ymin,this.xmax,this.ymax,this.xmin,this.ymax]);return m}_edge(e,r,a,o,s){for(;r!==a;){let h,f;switch(r){case 5:r=4;continue;case 4:r=6,h=this.xmax,f=this.ymin;break;case 6:r=2;continue;case 2:r=10,h=this.xmax,f=this.ymax;break;case 10:r=8;continue;case 8:r=9,h=this.xmin,f=this.ymax;break;case 9:r=1;continue;case 1:r=5,h=this.xmin,f=this.ymin}o[s]===h&&o[s+1]===f||!this.contains(e,h,f)||(o.splice(s,0,h,f),s+=2)}if(o.length>4)for(let h=0;h<o.length;h+=2){const f=(h+2)%o.length,m=(h+4)%o.length;(o[h]===o[f]&&o[f]===o[m]||o[h+1]===o[f+1]&&o[f+1]===o[m+1])&&(o.splice(f,2),h-=2)}return s}_project(e,r,a,o){let s,h,f,m=1/0;if(o<0){if(r<=this.ymin)return null;(s=(this.ymin-r)/o)<m&&(f=this.ymin,h=e+(m=s)*a)}else if(o>0){if(r>=this.ymax)return null;(s=(this.ymax-r)/o)<m&&(f=this.ymax,h=e+(m=s)*a)}if(a>0){if(e>=this.xmax)return null;(s=(this.xmax-e)/a)<m&&(h=this.xmax,f=r+(m=s)*o)}else if(a<0){if(e<=this.xmin)return null;(s=(this.xmin-e)/a)<m&&(h=this.xmin,f=r+(m=s)*o)}return[h,f]}_edgecode(e,r){return(e===this.xmin?1:e===this.xmax?2:0)|(r===this.ymin?4:r===this.ymax?8:0)}_regioncode(e,r){return(e<this.xmin?1:e>this.xmax?2:0)|(r<this.ymin?4:r>this.ymax?8:0)}}const kf=2*Math.PI,os=Math.pow;function wf(t){return t[0]}function Tf(t){return t[1]}function Ef(t,e,r){return[t+Math.sin(t+e)*r,e+Math.cos(t-e)*r]}class Hu{static from(e,r=wf,a=Tf,o){return new Hu("length"in e?function(s,h,f,m){const v=s.length,C=new Float64Array(2*v);for(let I=0;I<v;++I){const D=s[I];C[2*I]=h.call(m,D,I,s),C[2*I+1]=f.call(m,D,I,s)}return C}(e,r,a,o):Float64Array.from(function*(s,h,f,m){let v=0;for(const C of s)yield h.call(m,C,v,s),yield f.call(m,C,v,s),++v}(e,r,a,o)))}constructor(e){this._delaunator=new Ls(e),this.inedges=new Int32Array(e.length/2),this._hullIndex=new Int32Array(e.length/2),this.points=this._delaunator.coords,this._init()}update(){return this._delaunator.update(),this._init(),this}_init(){const e=this._delaunator,r=this.points;if(e.hull&&e.hull.length>2&&function(m){const{triangles:v,coords:C}=m;for(let I=0;I<v.length;I+=3){const D=2*v[I],R=2*v[I+1],Z=2*v[I+2];if((C[Z]-C[D])*(C[R+1]-C[D+1])-(C[R]-C[D])*(C[Z+1]-C[D+1])>1e-10)return!1}return!0}(e)){this.collinear=Int32Array.from({length:r.length/2},(D,R)=>R).sort((D,R)=>r[2*D]-r[2*R]||r[2*D+1]-r[2*R+1]);const m=this.collinear[0],v=this.collinear[this.collinear.length-1],C=[r[2*m],r[2*m+1],r[2*v],r[2*v+1]],I=1e-8*Math.hypot(C[3]-C[1],C[2]-C[0]);for(let D=0,R=r.length/2;D<R;++D){const Z=Ef(r[2*D],r[2*D+1],I);r[2*D]=Z[0],r[2*D+1]=Z[1]}this._delaunator=new Ls(r)}else delete this.collinear;const a=this.halfedges=this._delaunator.halfedges,o=this.hull=this._delaunator.hull,s=this.triangles=this._delaunator.triangles,h=this.inedges.fill(-1),f=this._hullIndex.fill(-1);for(let m=0,v=a.length;m<v;++m){const C=s[m%3==2?m-2:m+1];a[m]!==-1&&h[C]!==-1||(h[C]=m)}for(let m=0,v=o.length;m<v;++m)f[o[m]]=m;o.length<=2&&o.length>0&&(this.triangles=new Int32Array(3).fill(-1),this.halfedges=new Int32Array(3).fill(-1),this.triangles[0]=o[0],h[o[0]]=1,o.length===2&&(h[o[1]]=0,this.triangles[1]=o[1],this.triangles[2]=o[1]))}voronoi(e){return new R1(this,e)}*neighbors(e){const{inedges:r,hull:a,_hullIndex:o,halfedges:s,triangles:h,collinear:f}=this;if(f){const I=f.indexOf(e);return I>0&&(yield f[I-1]),void(I<f.length-1&&(yield f[I+1]))}const m=r[e];if(m===-1)return;let v=m,C=-1;do{if(yield C=h[v],v=v%3==2?v-2:v+1,h[v]!==e)return;if(v=s[v],v===-1){const I=a[(o[e]+1)%a.length];return void(I!==C&&(yield I))}}while(v!==m)}find(e,r,a=0){if((e=+e)!=e||(r=+r)!=r)return-1;const o=a;let s;for(;(s=this._step(a,e,r))>=0&&s!==a&&s!==o;)a=s;return s}_step(e,r,a){const{inedges:o,hull:s,_hullIndex:h,halfedges:f,triangles:m,points:v}=this;if(o[e]===-1||!v.length)return(e+1)%(v.length>>1);let C=e,I=os(r-v[2*e],2)+os(a-v[2*e+1],2);const D=o[e];let R=D;do{let Z=m[R];const U=os(r-v[2*Z],2)+os(a-v[2*Z+1],2);if(U<I&&(I=U,C=Z),R=R%3==2?R-2:R+1,m[R]!==e)break;if(R=f[R],R===-1){if(R=s[(h[e]+1)%s.length],R!==Z&&os(r-v[2*R],2)+os(a-v[2*R+1],2)<I)return R;break}}while(R!==D);return C}render(e){const r=e==null?e=new Ui:void 0,{points:a,halfedges:o,triangles:s}=this;for(let h=0,f=o.length;h<f;++h){const m=o[h];if(m<h)continue;const v=2*s[h],C=2*s[m];e.moveTo(a[v],a[v+1]),e.lineTo(a[C],a[C+1])}return this.renderHull(e),r&&r.value()}renderPoints(e,r){r!==void 0||e&&typeof e.moveTo=="function"||(r=e,e=null),r=r==null?2:+r;const a=e==null?e=new Ui:void 0,{points:o}=this;for(let s=0,h=o.length;s<h;s+=2){const f=o[s],m=o[s+1];e.moveTo(f+r,m),e.arc(f,m,r,0,kf)}return a&&a.value()}renderHull(e){const r=e==null?e=new Ui:void 0,{hull:a,points:o}=this,s=2*a[0],h=a.length;e.moveTo(o[s],o[s+1]);for(let f=1;f<h;++f){const m=2*a[f];e.lineTo(o[m],o[m+1])}return e.closePath(),r&&r.value()}hullPolygon(){const e=new Vu;return this.renderHull(e),e.value()}renderTriangle(e,r){const a=r==null?r=new Ui:void 0,{points:o,triangles:s}=this,h=2*s[e*=3],f=2*s[e+1],m=2*s[e+2];return r.moveTo(o[h],o[h+1]),r.lineTo(o[f],o[f+1]),r.lineTo(o[m],o[m+1]),r.closePath(),a&&a.value()}*trianglePolygons(){const{triangles:e}=this;for(let r=0,a=e.length/3;r<a;++r)yield this.trianglePolygon(r)}trianglePolygon(e){const r=new Vu;return this.renderTriangle(e,r),r.value()}}const kl=t=>()=>t;function Gu(t,{sourceEvent:e,subject:r,target:a,identifier:o,active:s,x:h,y:f,dx:m,dy:v,dispatch:C}){Object.defineProperties(this,{type:{value:t,enumerable:!0,configurable:!0},sourceEvent:{value:e,enumerable:!0,configurable:!0},subject:{value:r,enumerable:!0,configurable:!0},target:{value:a,enumerable:!0,configurable:!0},identifier:{value:o,enumerable:!0,configurable:!0},active:{value:s,enumerable:!0,configurable:!0},x:{value:h,enumerable:!0,configurable:!0},y:{value:f,enumerable:!0,configurable:!0},dx:{value:m,enumerable:!0,configurable:!0},dy:{value:v,enumerable:!0,configurable:!0},_:{value:C}})}function Rs(t){return!t.ctrlKey&&!t.button}function Sf(){return this.parentNode}function Cf(t,e){return e==null?{x:t.x,y:t.y}:e}function Af(){return navigator.maxTouchPoints||"ontouchstart"in this}function Mf(){var t,e,r,a,o=Rs,s=Sf,h=Cf,f=Af,m={},v=nr("start","drag","end"),C=0,I=0;function D(rt){rt.on("mousedown.drag",R).filter(f).on("touchstart.drag",$).on("touchmove.drag",W,Zc).on("touchend.drag touchcancel.drag",it).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function R(rt,lt){if(!a&&o.call(this,rt,lt)){var pt=nt(this,s.call(this,rt,lt),rt,lt,"mouse");pt&&(kr(rt.view).on("mousemove.drag",Z,Io).on("mouseup.drag",U,Io),po(rt.view),bs(rt),r=!1,t=rt.clientX,e=rt.clientY,pt("start",rt))}}function Z(rt){if(fo(rt),!r){var lt=rt.clientX-t,pt=rt.clientY-e;r=lt*lt+pt*pt>I}m.mouse("drag",rt)}function U(rt){kr(rt.view).on("mousemove.drag mouseup.drag",null),go(rt.view,r),fo(rt),m.mouse("end",rt)}function $(rt,lt){if(o.call(this,rt,lt)){var pt,Jt,ye=rt.changedTouches,Ut=s.call(this,rt,lt),Pt=ye.length;for(pt=0;pt<Pt;++pt)(Jt=nt(this,Ut,rt,lt,ye[pt].identifier,ye[pt]))&&(bs(rt),Jt("start",rt,ye[pt]))}}function W(rt){var lt,pt,Jt=rt.changedTouches,ye=Jt.length;for(lt=0;lt<ye;++lt)(pt=m[Jt[lt].identifier])&&(fo(rt),pt("drag",rt,Jt[lt]))}function it(rt){var lt,pt,Jt=rt.changedTouches,ye=Jt.length;for(a&&clearTimeout(a),a=setTimeout(function(){a=null},500),lt=0;lt<ye;++lt)(pt=m[Jt[lt].identifier])&&(bs(rt),pt("end",rt,Jt[lt]))}function nt(rt,lt,pt,Jt,ye,Ut){var Pt,jt,zt,gt=v.copy(),Bt=sa(Ut||pt,lt);if((zt=h.call(rt,new Gu("beforestart",{sourceEvent:pt,target:D,identifier:ye,active:C,x:Bt[0],y:Bt[1],dx:0,dy:0,dispatch:gt}),Jt))!=null)return Pt=zt.x-Bt[0]||0,jt=zt.y-Bt[1]||0,function Vt(ae,we,ze){var He,dn=Bt;switch(ae){case"start":m[ye]=Vt,He=C++;break;case"end":delete m[ye],--C;case"drag":Bt=sa(ze||we,lt),He=C}gt.call(ae,rt,new Gu(ae,{sourceEvent:we,subject:zt,target:D,identifier:ye,active:He,x:Bt[0]+Pt,y:Bt[1]+jt,dx:Bt[0]-dn[0],dy:Bt[1]-dn[1],dispatch:gt}),Jt)}}return D.filter=function(rt){return arguments.length?(o=typeof rt=="function"?rt:kl(!!rt),D):o},D.container=function(rt){return arguments.length?(s=typeof rt=="function"?rt:kl(rt),D):s},D.subject=function(rt){return arguments.length?(h=typeof rt=="function"?rt:kl(rt),D):h},D.touchable=function(rt){return arguments.length?(f=typeof rt=="function"?rt:kl(!!rt),D):f},D.on=function(){var rt=v.on.apply(v,arguments);return rt===v?D:rt},D.clickDistance=function(rt){return arguments.length?(I=(rt=+rt)*rt,D):Math.sqrt(I)},D}Gu.prototype.on=function(){var t=this._.on.apply(this._,arguments);return t===this._?this:t};var P1={},Xu={};function j1(t){return new Function("d","return {"+t.map(function(e,r){return JSON.stringify(e)+": d["+r+'] || ""'}).join(",")+"}")}function z1(t){var e=Object.create(null),r=[];return t.forEach(function(a){for(var o in a)o in e||r.push(e[o]=o)}),r}function Qi(t,e){var r=t+"",a=r.length;return a<e?new Array(e-a+1).join(0)+r:r}function wl(t){var e=new RegExp('["'+t+`
\r]`),r=t.charCodeAt(0);function a(f,m){var v,C=[],I=f.length,D=0,R=0,Z=I<=0,U=!1;function $(){if(Z)return Xu;if(U)return U=!1,P1;var it,nt,rt=D;if(f.charCodeAt(rt)===34){for(;D++<I&&f.charCodeAt(D)!==34||f.charCodeAt(++D)===34;);return(it=D)>=I?Z=!0:(nt=f.charCodeAt(D++))===10?U=!0:nt===13&&(U=!0,f.charCodeAt(D)===10&&++D),f.slice(rt+1,it-1).replace(/""/g,'"')}for(;D<I;){if((nt=f.charCodeAt(it=D++))===10)U=!0;else if(nt===13)U=!0,f.charCodeAt(D)===10&&++D;else if(nt!==r)continue;return f.slice(rt,it)}return Z=!0,f.slice(rt,I)}for(f.charCodeAt(I-1)===10&&--I,f.charCodeAt(I-1)===13&&--I;(v=$())!==Xu;){for(var W=[];v!==P1&&v!==Xu;)W.push(v),v=$();m&&(W=m(W,R++))==null||C.push(W)}return C}function o(f,m){return f.map(function(v){return m.map(function(C){return h(v[C])}).join(t)})}function s(f){return f.map(h).join(t)}function h(f){return f==null?"":f instanceof Date?function(m){var v=m.getUTCHours(),C=m.getUTCMinutes(),I=m.getUTCSeconds(),D=m.getUTCMilliseconds();return isNaN(m)?"Invalid Date":function(R){return R<0?"-"+Qi(-R,6):R>9999?"+"+Qi(R,6):Qi(R,4)}(m.getUTCFullYear())+"-"+Qi(m.getUTCMonth()+1,2)+"-"+Qi(m.getUTCDate(),2)+(D?"T"+Qi(v,2)+":"+Qi(C,2)+":"+Qi(I,2)+"."+Qi(D,3)+"Z":I?"T"+Qi(v,2)+":"+Qi(C,2)+":"+Qi(I,2)+"Z":C||v?"T"+Qi(v,2)+":"+Qi(C,2)+"Z":"")}(f):e.test(f+="")?'"'+f.replace(/"/g,'""')+'"':f}return{parse:function(f,m){var v,C,I=a(f,function(D,R){if(v)return v(D,R-1);C=D,v=m?function(Z,U){var $=j1(Z);return function(W,it){return U($(W),it,Z)}}(D,m):j1(D)});return I.columns=C||[],I},parseRows:a,format:function(f,m){return m==null&&(m=z1(f)),[m.map(h).join(t)].concat(o(f,m)).join(`
`)},formatBody:function(f,m){return m==null&&(m=z1(f)),o(f,m).join(`
`)},formatRows:function(f){return f.map(s).join(`
`)},formatRow:s,formatValue:h}}var he=wl(","),cn=he.parse,Ps=he.parseRows,js=he.format,Zu=he.formatBody,Qu=he.formatRows,Y1=he.formatRow,U1=he.formatValue,ro=wl(" "),Ku=ro.parse,io=ro.parseRows,Df=ro.format,Bc=ro.formatBody,Nf=ro.formatRows,$1=ro.formatRow,Ju=ro.formatValue;function Tl(t){for(var e in t){var r,a,o=t[e].trim();if(o)if(o==="true")o=!0;else if(o==="false")o=!1;else if(o==="NaN")o=NaN;else if(isNaN(r=+o)){if(!(a=o.match(/^([-+]\d{2})?\d{4}(-\d{2}(-\d{2})?)?(T\d{2}:\d{2}(:\d{2}(\.\d{3})?)?(Z|[-+]\d{2}:\d{2})?)?$/)))continue;El&&a[4]&&!a[7]&&(o=o.replace(/-/g,"/").replace(/T/," ")),o=new Date(o)}else o=r;else o=null;t[e]=o}return t}const El=new Date("2019-01-01T00:00").getHours()||new Date("2019-07-01T00:00").getHours(),Of=t=>+t;function Sl(t){return t*t}function $i(t){return t*(2-t)}function Cl(t){return((t*=2)<=1?t*t:--t*(2-t)+1)/2}var Al=function t(e){function r(a){return Math.pow(a,e)}return e=+e,r.exponent=t,r}(3),W1=function t(e){function r(a){return 1-Math.pow(1-a,e)}return e=+e,r.exponent=t,r}(3),th=function t(e){function r(a){return((a*=2)<=1?Math.pow(a,e):2-Math.pow(2-a,e))/2}return e=+e,r.exponent=t,r}(3),eh=Math.PI,q1=eh/2;function V1(t){return+t==1?1:1-Math.cos(t*q1)}function H1(t){return Math.sin(t*q1)}function ao(t){return(1-Math.cos(eh*t))/2}function Co(t){return 1.0009775171065494*(Math.pow(2,-10*t)-.0009765625)}function ya(t){return Co(1-+t)}function Bf(t){return 1-Co(t)}function G1(t){return((t*=2)<=1?Co(1-t):2-Co(t-1))/2}function X1(t){return 1-Math.sqrt(1-t*t)}function Z1(t){return Math.sqrt(1- --t*t)}function Ml(t){return((t*=2)<=1?1-Math.sqrt(1-t*t):Math.sqrt(1-(t-=2)*t)+1)/2}var Dl=7.5625;function Q1(t){return 1-Lc(1-t)}function Lc(t){return(t=+t)<.36363636363636365?Dl*t*t:t<.7272727272727273?Dl*(t-=.5454545454545454)*t+.75:t<.9090909090909091?Dl*(t-=.8181818181818182)*t+.9375:Dl*(t-=.9545454545454546)*t+.984375}function br(t){return((t*=2)<=1?1-Lc(1-t):Lc(t-1)+1)/2}var zs=1.70158,Wo=function t(e){function r(a){return(a=+a)*a*(e*(a-1)+a)}return e=+e,r.overshoot=t,r}(zs),Lf=function t(e){function r(a){return--a*a*((a+1)*e+a)+1}return e=+e,r.overshoot=t,r}(zs),Nl=function t(e){function r(a){return((a*=2)<1?a*a*((e+1)*a-e):(a-=2)*a*((e+1)*a+e)+2)/2}return e=+e,r.overshoot=t,r}(zs),ss=2*Math.PI,K1=function t(e,r){var a=Math.asin(1/(e=Math.max(1,e)))*(r/=ss);function o(s){return e*Co(- --s)*Math.sin((a-s)/r)}return o.amplitude=function(s){return t(s,r*ss)},o.period=function(s){return t(e,s)},o}(1,.3),Ol=function t(e,r){var a=Math.asin(1/(e=Math.max(1,e)))*(r/=ss);function o(s){return 1-e*Co(s=+s)*Math.sin((s+a)/r)}return o.amplitude=function(s){return t(s,r*ss)},o.period=function(s){return t(e,s)},o}(1,.3),Ys=function t(e,r){var a=Math.asin(1/(e=Math.max(1,e)))*(r/=ss);function o(s){return((s=2*s-1)<0?e*Co(-s)*Math.sin((a-s)/r):2-e*Co(s)*Math.sin((a+s)/r))/2}return o.amplitude=function(s){return t(s,r*ss)},o.period=function(s){return t(e,s)},o}(1,.3);function nh(t){if(!t.ok)throw new Error(t.status+" "+t.statusText);return t.blob()}function Us(t,e){return fetch(t,e).then(nh)}function $s(t){if(!t.ok)throw new Error(t.status+" "+t.statusText);return t.arrayBuffer()}function J1(t,e){return fetch(t,e).then($s)}function t0(t){if(!t.ok)throw new Error(t.status+" "+t.statusText);return t.text()}function Ic(t,e){return fetch(t,e).then(t0)}function rh(t){return function(e,r,a){return arguments.length===2&&typeof r=="function"&&(a=r,r=void 0),Ic(e,r).then(function(o){return t(o,a)})}}function e0(t,e,r,a){arguments.length===3&&typeof r=="function"&&(a=r,r=void 0);var o=wl(t);return Ic(e,r).then(function(s){return o.parse(s,a)})}var n0=rh(cn),If=rh(Ku);function Ff(t,e){return new Promise(function(r,a){var o=new Image;for(var s in e)o[s]=e[s];o.onerror=a,o.onload=function(){r(o)},o.src=t})}function Rf(t){if(!t.ok)throw new Error(t.status+" "+t.statusText);if(t.status!==204&&t.status!==205)return t.json()}function Pf(t,e){return fetch(t,e).then(Rf)}function Wa(t){return(e,r)=>Ic(e,r).then(a=>new DOMParser().parseFromString(a,t))}const ih=Wa("application/xml");var cs=Wa("text/html"),Aa=Wa("image/svg+xml");function ah(t,e){var r,a=1;function o(){var s,h,f=r.length,m=0,v=0;for(s=0;s<f;++s)m+=(h=r[s]).x,v+=h.y;for(m=(m/f-t)*a,v=(v/f-e)*a,s=0;s<f;++s)(h=r[s]).x-=m,h.y-=v}return t==null&&(t=0),e==null&&(e=0),o.initialize=function(s){r=s},o.x=function(s){return arguments.length?(t=+s,o):t},o.y=function(s){return arguments.length?(e=+s,o):e},o.strength=function(s){return arguments.length?(a=+s,o):a},o}function oh(t,e,r,a){if(isNaN(e)||isNaN(r))return t;var o,s,h,f,m,v,C,I,D,R=t._root,Z={data:a},U=t._x0,$=t._y0,W=t._x1,it=t._y1;if(!R)return t._root=Z,t;for(;R.length;)if((v=e>=(s=(U+W)/2))?U=s:W=s,(C=r>=(h=($+it)/2))?$=h:it=h,o=R,!(R=R[I=C<<1|v]))return o[I]=Z,t;if(f=+t._x.call(null,R.data),m=+t._y.call(null,R.data),e===f&&r===m)return Z.next=R,o?o[I]=Z:t._root=Z,t;do o=o?o[I]=new Array(4):t._root=new Array(4),(v=e>=(s=(U+W)/2))?U=s:W=s,(C=r>=(h=($+it)/2))?$=h:it=h;while((I=C<<1|v)==(D=(m>=h)<<1|f>=s));return o[D]=R,o[I]=Z,t}function Ii(t,e,r,a,o){this.node=t,this.x0=e,this.y0=r,this.x1=a,this.y1=o}function jf(t){return t[0]}function zf(t){return t[1]}function Fc(t,e,r){var a=new sh(e==null?jf:e,r==null?zf:r,NaN,NaN,NaN,NaN);return t==null?a:a.addAll(t)}function sh(t,e,r,a,o,s){this._x=t,this._y=e,this._x0=r,this._y0=a,this._x1=o,this._y1=s,this._root=void 0}function ch(t){for(var e={data:t.data},r=e;t=t.next;)r=r.next={data:t.data};return e}var Wi=Fc.prototype=sh.prototype;function _i(t){return function(){return t}}function qa(t){return 1e-6*(t()-.5)}function Yf(t){return t.x+t.vx}function xi(t){return t.y+t.vy}function Ki(t){var e,r,a,o=1,s=1;function h(){for(var v,C,I,D,R,Z,U,$=e.length,W=0;W<s;++W)for(C=Fc(e,Yf,xi).visitAfter(f),v=0;v<$;++v)I=e[v],Z=r[I.index],U=Z*Z,D=I.x+I.vx,R=I.y+I.vy,C.visit(it);function it(nt,rt,lt,pt,Jt){var ye=nt.data,Ut=nt.r,Pt=Z+Ut;if(!ye)return rt>D+Pt||pt<D-Pt||lt>R+Pt||Jt<R-Pt;if(ye.index>I.index){var jt=D-ye.x-ye.vx,zt=R-ye.y-ye.vy,gt=jt*jt+zt*zt;gt<Pt*Pt&&(jt===0&&(gt+=(jt=qa(a))*jt),zt===0&&(gt+=(zt=qa(a))*zt),gt=(Pt-(gt=Math.sqrt(gt)))/gt*o,I.vx+=(jt*=gt)*(Pt=(Ut*=Ut)/(U+Ut)),I.vy+=(zt*=gt)*Pt,ye.vx-=jt*(Pt=1-Pt),ye.vy-=zt*Pt)}}}function f(v){if(v.data)return v.r=r[v.data.index];for(var C=v.r=0;C<4;++C)v[C]&&v[C].r>v.r&&(v.r=v[C].r)}function m(){if(e){var v,C,I=e.length;for(r=new Array(I),v=0;v<I;++v)C=e[v],r[C.index]=+t(C,v,e)}}return typeof t!="function"&&(t=_i(t==null?1:+t)),h.initialize=function(v,C){e=v,a=C,m()},h.iterations=function(v){return arguments.length?(s=+v,h):s},h.strength=function(v){return arguments.length?(o=+v,h):o},h.radius=function(v){return arguments.length?(t=typeof v=="function"?v:_i(+v),m(),h):t},h}function Bl(t){return t.index}function yi(t,e){var r=t.get(e);if(!r)throw new Error("node not found: "+e);return r}function Fi(t){var e,r,a,o,s,h,f=Bl,m=function(U){return 1/Math.min(o[U.source.index],o[U.target.index])},v=_i(30),C=1;function I(U){for(var $=0,W=t.length;$<C;++$)for(var it,nt,rt,lt,pt,Jt,ye,Ut=0;Ut<W;++Ut)nt=(it=t[Ut]).source,lt=(rt=it.target).x+rt.vx-nt.x-nt.vx||qa(h),pt=rt.y+rt.vy-nt.y-nt.vy||qa(h),lt*=Jt=((Jt=Math.sqrt(lt*lt+pt*pt))-r[Ut])/Jt*U*e[Ut],pt*=Jt,rt.vx-=lt*(ye=s[Ut]),rt.vy-=pt*ye,nt.vx+=lt*(ye=1-ye),nt.vy+=pt*ye}function D(){if(a){var U,$,W=a.length,it=t.length,nt=new Map(a.map((rt,lt)=>[f(rt,lt,a),rt]));for(U=0,o=new Array(W);U<it;++U)($=t[U]).index=U,typeof $.source!="object"&&($.source=yi(nt,$.source)),typeof $.target!="object"&&($.target=yi(nt,$.target)),o[$.source.index]=(o[$.source.index]||0)+1,o[$.target.index]=(o[$.target.index]||0)+1;for(U=0,s=new Array(it);U<it;++U)$=t[U],s[U]=o[$.source.index]/(o[$.source.index]+o[$.target.index]);e=new Array(it),R(),r=new Array(it),Z()}}function R(){if(a)for(var U=0,$=t.length;U<$;++U)e[U]=+m(t[U],U,t)}function Z(){if(a)for(var U=0,$=t.length;U<$;++U)r[U]=+v(t[U],U,t)}return t==null&&(t=[]),I.initialize=function(U,$){a=U,h=$,D()},I.links=function(U){return arguments.length?(t=U,D(),I):t},I.id=function(U){return arguments.length?(f=U,I):f},I.iterations=function(U){return arguments.length?(C=+U,I):C},I.strength=function(U){return arguments.length?(m=typeof U=="function"?U:_i(+U),R(),I):m},I.distance=function(U){return arguments.length?(v=typeof U=="function"?U:_i(+U),Z(),I):v},I}Wi.copy=function(){var t,e,r=new sh(this._x,this._y,this._x0,this._y0,this._x1,this._y1),a=this._root;if(!a)return r;if(!a.length)return r._root=ch(a),r;for(t=[{source:a,target:r._root=new Array(4)}];a=t.pop();)for(var o=0;o<4;++o)(e=a.source[o])&&(e.length?t.push({source:e,target:a.target[o]=new Array(4)}):a.target[o]=ch(e));return r},Wi.add=function(t){const e=+this._x.call(null,t),r=+this._y.call(null,t);return oh(this.cover(e,r),e,r,t)},Wi.addAll=function(t){var e,r,a,o,s=t.length,h=new Array(s),f=new Array(s),m=1/0,v=1/0,C=-1/0,I=-1/0;for(r=0;r<s;++r)isNaN(a=+this._x.call(null,e=t[r]))||isNaN(o=+this._y.call(null,e))||(h[r]=a,f[r]=o,a<m&&(m=a),a>C&&(C=a),o<v&&(v=o),o>I&&(I=o));if(m>C||v>I)return this;for(this.cover(m,v).cover(C,I),r=0;r<s;++r)oh(this,h[r],f[r],t[r]);return this},Wi.cover=function(t,e){if(isNaN(t=+t)||isNaN(e=+e))return this;var r=this._x0,a=this._y0,o=this._x1,s=this._y1;if(isNaN(r))o=(r=Math.floor(t))+1,s=(a=Math.floor(e))+1;else{for(var h,f,m=o-r||1,v=this._root;r>t||t>=o||a>e||e>=s;)switch(f=(e<a)<<1|t<r,(h=new Array(4))[f]=v,v=h,m*=2,f){case 0:o=r+m,s=a+m;break;case 1:r=o-m,s=a+m;break;case 2:o=r+m,a=s-m;break;case 3:r=o-m,a=s-m}this._root&&this._root.length&&(this._root=v)}return this._x0=r,this._y0=a,this._x1=o,this._y1=s,this},Wi.data=function(){var t=[];return this.visit(function(e){if(!e.length)do t.push(e.data);while(e=e.next)}),t},Wi.extent=function(t){return arguments.length?this.cover(+t[0][0],+t[0][1]).cover(+t[1][0],+t[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]},Wi.find=function(t,e,r){var a,o,s,h,f,m,v,C=this._x0,I=this._y0,D=this._x1,R=this._y1,Z=[],U=this._root;for(U&&Z.push(new Ii(U,C,I,D,R)),r==null?r=1/0:(C=t-r,I=e-r,D=t+r,R=e+r,r*=r);m=Z.pop();)if(!(!(U=m.node)||(o=m.x0)>D||(s=m.y0)>R||(h=m.x1)<C||(f=m.y1)<I))if(U.length){var $=(o+h)/2,W=(s+f)/2;Z.push(new Ii(U[3],$,W,h,f),new Ii(U[2],o,W,$,f),new Ii(U[1],$,s,h,W),new Ii(U[0],o,s,$,W)),(v=(e>=W)<<1|t>=$)&&(m=Z[Z.length-1],Z[Z.length-1]=Z[Z.length-1-v],Z[Z.length-1-v]=m)}else{var it=t-+this._x.call(null,U.data),nt=e-+this._y.call(null,U.data),rt=it*it+nt*nt;if(rt<r){var lt=Math.sqrt(r=rt);C=t-lt,I=e-lt,D=t+lt,R=e+lt,a=U.data}}return a},Wi.remove=function(t){if(isNaN(s=+this._x.call(null,t))||isNaN(h=+this._y.call(null,t)))return this;var e,r,a,o,s,h,f,m,v,C,I,D,R=this._root,Z=this._x0,U=this._y0,$=this._x1,W=this._y1;if(!R)return this;if(R.length)for(;;){if((v=s>=(f=(Z+$)/2))?Z=f:$=f,(C=h>=(m=(U+W)/2))?U=m:W=m,e=R,!(R=R[I=C<<1|v]))return this;if(!R.length)break;(e[I+1&3]||e[I+2&3]||e[I+3&3])&&(r=e,D=I)}for(;R.data!==t;)if(a=R,!(R=R.next))return this;return(o=R.next)&&delete R.next,a?(o?a.next=o:delete a.next,this):e?(o?e[I]=o:delete e[I],(R=e[0]||e[1]||e[2]||e[3])&&R===(e[3]||e[2]||e[1]||e[0])&&!R.length&&(r?r[D]=R:this._root=R),this):(this._root=o,this)},Wi.removeAll=function(t){for(var e=0,r=t.length;e<r;++e)this.remove(t[e]);return this},Wi.root=function(){return this._root},Wi.size=function(){var t=0;return this.visit(function(e){if(!e.length)do++t;while(e=e.next)}),t},Wi.visit=function(t){var e,r,a,o,s,h,f=[],m=this._root;for(m&&f.push(new Ii(m,this._x0,this._y0,this._x1,this._y1));e=f.pop();)if(!t(m=e.node,a=e.x0,o=e.y0,s=e.x1,h=e.y1)&&m.length){var v=(a+s)/2,C=(o+h)/2;(r=m[3])&&f.push(new Ii(r,v,C,s,h)),(r=m[2])&&f.push(new Ii(r,a,C,v,h)),(r=m[1])&&f.push(new Ii(r,v,o,s,C)),(r=m[0])&&f.push(new Ii(r,a,o,v,C))}return this},Wi.visitAfter=function(t){var e,r=[],a=[];for(this._root&&r.push(new Ii(this._root,this._x0,this._y0,this._x1,this._y1));e=r.pop();){var o=e.node;if(o.length){var s,h=e.x0,f=e.y0,m=e.x1,v=e.y1,C=(h+m)/2,I=(f+v)/2;(s=o[0])&&r.push(new Ii(s,h,f,C,I)),(s=o[1])&&r.push(new Ii(s,C,f,m,I)),(s=o[2])&&r.push(new Ii(s,h,I,C,v)),(s=o[3])&&r.push(new Ii(s,C,I,m,v))}a.push(e)}for(;e=a.pop();)t(e.node,e.x0,e.y0,e.x1,e.y1);return this},Wi.x=function(t){return arguments.length?(this._x=t,this):this._x},Wi.y=function(t){return arguments.length?(this._y=t,this):this._y};const lh=4294967296;function ls(t){return t.x}function uh(t){return t.y}var r0=Math.PI*(3-Math.sqrt(5));function i0(t){var e,r=1,a=.001,o=1-Math.pow(a,1/300),s=0,h=.6,f=new Map,m=Po(I),v=nr("tick","end"),C=function(){let U=1;return()=>(U=(1664525*U+1013904223)%lh)/lh}();function I(){D(),v.call("tick",e),r<a&&(m.stop(),v.call("end",e))}function D(U){var $,W,it=t.length;U===void 0&&(U=1);for(var nt=0;nt<U;++nt)for(r+=(s-r)*o,f.forEach(function(rt){rt(r)}),$=0;$<it;++$)(W=t[$]).fx==null?W.x+=W.vx*=h:(W.x=W.fx,W.vx=0),W.fy==null?W.y+=W.vy*=h:(W.y=W.fy,W.vy=0);return e}function R(){for(var U,$=0,W=t.length;$<W;++$){if((U=t[$]).index=$,U.fx!=null&&(U.x=U.fx),U.fy!=null&&(U.y=U.fy),isNaN(U.x)||isNaN(U.y)){var it=10*Math.sqrt(.5+$),nt=$*r0;U.x=it*Math.cos(nt),U.y=it*Math.sin(nt)}(isNaN(U.vx)||isNaN(U.vy))&&(U.vx=U.vy=0)}}function Z(U){return U.initialize&&U.initialize(t,C),U}return t==null&&(t=[]),R(),e={tick:D,restart:function(){return m.restart(I),e},stop:function(){return m.stop(),e},nodes:function(U){return arguments.length?(t=U,R(),f.forEach(Z),e):t},alpha:function(U){return arguments.length?(r=+U,e):r},alphaMin:function(U){return arguments.length?(a=+U,e):a},alphaDecay:function(U){return arguments.length?(o=+U,e):+o},alphaTarget:function(U){return arguments.length?(s=+U,e):s},velocityDecay:function(U){return arguments.length?(h=1-U,e):1-h},randomSource:function(U){return arguments.length?(C=U,f.forEach(Z),e):C},force:function(U,$){return arguments.length>1?($==null?f.delete(U):f.set(U,Z($)),e):f.get(U)},find:function(U,$,W){var it,nt,rt,lt,pt,Jt=0,ye=t.length;for(W==null?W=1/0:W*=W,Jt=0;Jt<ye;++Jt)(rt=(it=U-(lt=t[Jt]).x)*it+(nt=$-lt.y)*nt)<W&&(pt=lt,W=rt);return pt},on:function(U,$){return arguments.length>1?(v.on(U,$),e):v.on(U)}}}function a0(){var t,e,r,a,o,s=_i(-30),h=1,f=1/0,m=.81;function v(R){var Z,U=t.length,$=Fc(t,ls,uh).visitAfter(I);for(a=R,Z=0;Z<U;++Z)e=t[Z],$.visit(D)}function C(){if(t){var R,Z,U=t.length;for(o=new Array(U),R=0;R<U;++R)Z=t[R],o[Z.index]=+s(Z,R,t)}}function I(R){var Z,U,$,W,it,nt=0,rt=0;if(R.length){for($=W=it=0;it<4;++it)(Z=R[it])&&(U=Math.abs(Z.value))&&(nt+=Z.value,rt+=U,$+=U*Z.x,W+=U*Z.y);R.x=$/rt,R.y=W/rt}else{(Z=R).x=Z.data.x,Z.y=Z.data.y;do nt+=o[Z.data.index];while(Z=Z.next)}R.value=nt}function D(R,Z,U,$){if(!R.value)return!0;var W=R.x-e.x,it=R.y-e.y,nt=$-Z,rt=W*W+it*it;if(nt*nt/m<rt)return rt<f&&(W===0&&(rt+=(W=qa(r))*W),it===0&&(rt+=(it=qa(r))*it),rt<h&&(rt=Math.sqrt(h*rt)),e.vx+=W*R.value*a/rt,e.vy+=it*R.value*a/rt),!0;if(!(R.length||rt>=f)){(R.data!==e||R.next)&&(W===0&&(rt+=(W=qa(r))*W),it===0&&(rt+=(it=qa(r))*it),rt<h&&(rt=Math.sqrt(h*rt)));do R.data!==e&&(nt=o[R.data.index]*a/rt,e.vx+=W*nt,e.vy+=it*nt);while(R=R.next)}}return v.initialize=function(R,Z){t=R,r=Z,C()},v.strength=function(R){return arguments.length?(s=typeof R=="function"?R:_i(+R),C(),v):s},v.distanceMin=function(R){return arguments.length?(h=R*R,v):Math.sqrt(h)},v.distanceMax=function(R){return arguments.length?(f=R*R,v):Math.sqrt(f)},v.theta=function(R){return arguments.length?(m=R*R,v):Math.sqrt(m)},v}function o0(t,e,r){var a,o,s,h=_i(.1);function f(v){for(var C=0,I=a.length;C<I;++C){var D=a[C],R=D.x-e||1e-6,Z=D.y-r||1e-6,U=Math.sqrt(R*R+Z*Z),$=(s[C]-U)*o[C]*v/U;D.vx+=R*$,D.vy+=Z*$}}function m(){if(a){var v,C=a.length;for(o=new Array(C),s=new Array(C),v=0;v<C;++v)s[v]=+t(a[v],v,a),o[v]=isNaN(s[v])?0:+h(a[v],v,a)}}return typeof t!="function"&&(t=_i(+t)),e==null&&(e=0),r==null&&(r=0),f.initialize=function(v){a=v,m()},f.strength=function(v){return arguments.length?(h=typeof v=="function"?v:_i(+v),m(),f):h},f.radius=function(v){return arguments.length?(t=typeof v=="function"?v:_i(+v),m(),f):t},f.x=function(v){return arguments.length?(e=+v,f):e},f.y=function(v){return arguments.length?(r=+v,f):r},f}function s0(t){var e,r,a,o=_i(.1);function s(f){for(var m,v=0,C=e.length;v<C;++v)(m=e[v]).vx+=(a[v]-m.x)*r[v]*f}function h(){if(e){var f,m=e.length;for(r=new Array(m),a=new Array(m),f=0;f<m;++f)r[f]=isNaN(a[f]=+t(e[f],f,e))?0:+o(e[f],f,e)}}return typeof t!="function"&&(t=_i(t==null?0:+t)),s.initialize=function(f){e=f,h()},s.strength=function(f){return arguments.length?(o=typeof f=="function"?f:_i(+f),h(),s):o},s.x=function(f){return arguments.length?(t=typeof f=="function"?f:_i(+f),h(),s):t},s}function Rc(t){var e,r,a,o=_i(.1);function s(f){for(var m,v=0,C=e.length;v<C;++v)(m=e[v]).vy+=(a[v]-m.y)*r[v]*f}function h(){if(e){var f,m=e.length;for(r=new Array(m),a=new Array(m),f=0;f<m;++f)r[f]=isNaN(a[f]=+t(e[f],f,e))?0:+o(e[f],f,e)}}return typeof t!="function"&&(t=_i(t==null?0:+t)),s.initialize=function(f){e=f,h()},s.strength=function(f){return arguments.length?(o=typeof f=="function"?f:_i(+f),h(),s):o},s.y=function(f){return arguments.length?(t=typeof f=="function"?f:_i(+f),h(),s):t},s}function Ll(t,e){if((r=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"))<0)return null;var r,a=t.slice(0,r);return[a.length>1?a[0]+a.slice(2):a,+t.slice(r+1)]}function oo(t){return(t=Ll(Math.abs(t)))?t[1]:NaN}var Ji,Ws=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function so(t){if(!(e=Ws.exec(t)))throw new Error("invalid format: "+t);var e;return new us({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]})}function us(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+""}function hh(t,e){var r=Ll(t,e);if(!r)return t+"";var a=r[0],o=r[1];return o<0?"0."+new Array(-o).join("0")+a:a.length>o+1?a.slice(0,o+1)+"."+a.slice(o+1):a+new Array(o-a.length+2).join("0")}so.prototype=us.prototype,us.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,0|this.width))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};const fh={"%":(t,e)=>(100*t).toFixed(e),b:t=>Math.round(t).toString(2),c:t=>t+"",d:function(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)},e:(t,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)=>hh(100*t,e),r:hh,s:function(t,e){var r=Ll(t,e);if(!r)return t+"";var a=r[0],o=r[1],s=o-(Ji=3*Math.max(-8,Math.min(8,Math.floor(o/3))))+1,h=a.length;return s===h?a:s>h?a+new Array(s-h+1).join("0"):s>0?a.slice(0,s)+"."+a.slice(s):"0."+new Array(1-s).join("0")+Ll(t,Math.max(0,e+s-1))[0]},X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function c0(t){return t}var Il,Fl,dh,Rl=Array.prototype.map,l0=["y","z","a","f","p","n","\xB5","m","","k","M","G","T","P","E","Z","Y"];function Pc(t){var e,r,a=t.grouping===void 0||t.thousands===void 0?c0:(e=Rl.call(t.grouping,Number),r=t.thousands+"",function(D,R){for(var Z=D.length,U=[],$=0,W=e[0],it=0;Z>0&&W>0&&(it+W+1>R&&(W=Math.max(1,R-it)),U.push(D.substring(Z-=W,Z+W)),!((it+=W+1)>R));)W=e[$=($+1)%e.length];return U.reverse().join(r)}),o=t.currency===void 0?"":t.currency[0]+"",s=t.currency===void 0?"":t.currency[1]+"",h=t.decimal===void 0?".":t.decimal+"",f=t.numerals===void 0?c0:function(D){return function(R){return R.replace(/[0-9]/g,function(Z){return D[+Z]})}}(Rl.call(t.numerals,String)),m=t.percent===void 0?"%":t.percent+"",v=t.minus===void 0?"\u2212":t.minus+"",C=t.nan===void 0?"NaN":t.nan+"";function I(D){var R=(D=so(D)).fill,Z=D.align,U=D.sign,$=D.symbol,W=D.zero,it=D.width,nt=D.comma,rt=D.precision,lt=D.trim,pt=D.type;pt==="n"?(nt=!0,pt="g"):fh[pt]||(rt===void 0&&(rt=12),lt=!0,pt="g"),(W||R==="0"&&Z==="=")&&(W=!0,R="0",Z="=");var Jt=$==="$"?o:$==="#"&&/[boxX]/.test(pt)?"0"+pt.toLowerCase():"",ye=$==="$"?s:/[%p]/.test(pt)?m:"",Ut=fh[pt],Pt=/[defgprs%]/.test(pt);function jt(zt){var gt,Bt,Vt,ae=Jt,we=ye;if(pt==="c")we=Ut(zt)+we,zt="";else{var ze=(zt=+zt)<0||1/zt<0;if(zt=isNaN(zt)?C:Ut(Math.abs(zt),rt),lt&&(zt=function(Ge){t:for(var Yn,Wn=Ge.length,Cn=1,Ln=-1;Cn<Wn;++Cn)switch(Ge[Cn]){case".":Ln=Yn=Cn;break;case"0":Ln===0&&(Ln=Cn),Yn=Cn;break;default:if(!+Ge[Cn])break t;Ln>0&&(Ln=0)}return Ln>0?Ge.slice(0,Ln)+Ge.slice(Yn+1):Ge}(zt)),ze&&+zt==0&&U!=="+"&&(ze=!1),ae=(ze?U==="("?U:v:U==="-"||U==="("?"":U)+ae,we=(pt==="s"?l0[8+Ji/3]:"")+we+(ze&&U==="("?")":""),Pt){for(gt=-1,Bt=zt.length;++gt<Bt;)if(48>(Vt=zt.charCodeAt(gt))||Vt>57){we=(Vt===46?h+zt.slice(gt+1):zt.slice(gt))+we,zt=zt.slice(0,gt);break}}}nt&&!W&&(zt=a(zt,1/0));var He=ae.length+zt.length+we.length,dn=He<it?new Array(it-He+1).join(R):"";switch(nt&&W&&(zt=a(dn+zt,dn.length?it-we.length:1/0),dn=""),Z){case"<":zt=ae+zt+we+dn;break;case"=":zt=ae+dn+zt+we;break;case"^":zt=dn.slice(0,He=dn.length>>1)+ae+zt+we+dn.slice(He);break;default:zt=dn+ae+zt+we}return f(zt)}return rt=rt===void 0?6:/[gprs]/.test(pt)?Math.max(1,Math.min(21,rt)):Math.max(0,Math.min(20,rt)),jt.toString=function(){return D+""},jt}return{format:I,formatPrefix:function(D,R){var Z=I(((D=so(D)).type="f",D)),U=3*Math.max(-8,Math.min(8,Math.floor(oo(R)/3))),$=Math.pow(10,-U),W=l0[8+U/3];return function(it){return Z($*it)+W}}}}function u0(t){return Il=Pc(t),Fl=Il.format,dh=Il.formatPrefix,Il}function Pl(t){return Math.max(0,-oo(Math.abs(t)))}function jl(t,e){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(oo(e)/3)))-oo(Math.abs(t)))}function ph(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,oo(e)-oo(t))+1}u0({thousands:",",grouping:[3],currency:["$",""]});var Xn=1e-6,zl=1e-12,tr=Math.PI,Pr=tr/2,qs=tr/4,ki=2*tr,Lr=180/tr,$n=tr/180,Bn=Math.abs,hs=Math.atan,qi=Math.atan2,vn=Math.cos,fs=Math.ceil,i=Math.exp,n=Math.hypot,l=Math.log,d=Math.pow,g=Math.sin,T=Math.sign||function(t){return t>0?1:t<0?-1:0},k=Math.sqrt,S=Math.tan;function N(t){return t>1?0:t<-1?tr:Math.acos(t)}function O(t){return t>1?Pr:t<-1?-Pr:Math.asin(t)}function q(t){return(t=g(t/2))*t}function V(){}function et(t,e){t&&Tt.hasOwnProperty(t.type)&&Tt[t.type](t,e)}var Q={Feature:function(t,e){et(t.geometry,e)},FeatureCollection:function(t,e){for(var r=t.features,a=-1,o=r.length;++a<o;)et(r[a].geometry,e)}},Tt={Sphere:function(t,e){e.sphere()},Point:function(t,e){t=t.coordinates,e.point(t[0],t[1],t[2])},MultiPoint:function(t,e){for(var r=t.coordinates,a=-1,o=r.length;++a<o;)t=r[a],e.point(t[0],t[1],t[2])},LineString:function(t,e){St(t.coordinates,e,0)},MultiLineString:function(t,e){for(var r=t.coordinates,a=-1,o=r.length;++a<o;)St(r[a],e,0)},Polygon:function(t,e){Lt(t.coordinates,e)},MultiPolygon:function(t,e){for(var r=t.coordinates,a=-1,o=r.length;++a<o;)Lt(r[a],e)},GeometryCollection:function(t,e){for(var r=t.geometries,a=-1,o=r.length;++a<o;)et(r[a],e)}};function St(t,e,r){var a,o=-1,s=t.length-r;for(e.lineStart();++o<s;)a=t[o],e.point(a[0],a[1],a[2]);e.lineEnd()}function Lt(t,e){var r=-1,a=t.length;for(e.polygonStart();++r<a;)St(t[r],e,1);e.polygonEnd()}function Nt(t,e){t&&Q.hasOwnProperty(t.type)?Q[t.type](t,e):et(t,e)}var Ot,Ft,_t,ee,ke,ue,ve,Rt,le,Wt,ie,ce,oe,Ne,Ce,je,_n=new vt,Re=new vt,tn={point:V,lineStart:V,lineEnd:V,polygonStart:function(){_n=new vt,tn.lineStart=yn,tn.lineEnd=Ue},polygonEnd:function(){var t=+_n;Re.add(t<0?ki+t:t),this.lineStart=this.lineEnd=this.point=V},sphere:function(){Re.add(ki)}};function yn(){tn.point=$e}function Ue(){bn(Ot,Ft)}function $e(t,e){tn.point=bn,Ot=t,Ft=e,_t=t*=$n,ee=vn(e=(e*=$n)/2+qs),ke=g(e)}function bn(t,e){var r=(t*=$n)-_t,a=r>=0?1:-1,o=a*r,s=vn(e=(e*=$n)/2+qs),h=g(e),f=ke*h,m=ee*s+f*vn(o),v=f*a*g(o);_n.add(qi(v,m)),_t=t,ee=s,ke=h}function gr(t){return Re=new vt,Nt(t,tn),2*Re}function fr(t){return[qi(t[1],t[0]),O(t[2])]}function jr(t){var e=t[0],r=t[1],a=vn(r);return[a*vn(e),a*g(e),g(r)]}function dr(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function mi(t,e){return[t[1]*e[2]-t[2]*e[1],t[2]*e[0]-t[0]*e[2],t[0]*e[1]-t[1]*e[0]]}function ur(t,e){t[0]+=e[0],t[1]+=e[1],t[2]+=e[2]}function Ma(t,e){return[t[0]*e,t[1]*e,t[2]*e]}function la(t){var e=k(t[0]*t[0]+t[1]*t[1]+t[2]*t[2]);t[0]/=e,t[1]/=e,t[2]/=e}var ai,zr,Da,ma,ds,qo,Va,Na,Yl,Ul,$l,gh,yh,Vi,ba,va,ps={point:Uf,lineStart:S2,lineEnd:C2,polygonStart:function(){ps.point=A2,ps.lineStart=Mm,ps.lineEnd=Dm,Ne=new vt,tn.polygonStart()},polygonEnd:function(){tn.polygonEnd(),ps.point=Uf,ps.lineStart=S2,ps.lineEnd=C2,_n<0?(ue=-(Rt=180),ve=-(le=90)):Ne>Xn?le=90:Ne<-1e-6&&(ve=-90),je[0]=ue,je[1]=Rt},sphere:function(){ue=-(Rt=180),ve=-(le=90)}};function Uf(t,e){Ce.push(je=[ue=t,Rt=t]),e<ve&&(ve=e),e>le&&(le=e)}function E2(t,e){var r=jr([t*$n,e*$n]);if(oe){var a=mi(oe,r),o=mi([a[1],-a[0],0],a);la(o),o=fr(o);var s,h=t-Wt,f=h>0?1:-1,m=o[0]*Lr*f,v=Bn(h)>180;v^(f*Wt<m&&m<f*t)?(s=o[1]*Lr)>le&&(le=s):v^(f*Wt<(m=(m+360)%360-180)&&m<f*t)?(s=-o[1]*Lr)<ve&&(ve=s):(e<ve&&(ve=e),e>le&&(le=e)),v?t<Wt?Ha(ue,t)>Ha(ue,Rt)&&(Rt=t):Ha(t,Rt)>Ha(ue,Rt)&&(ue=t):Rt>=ue?(t<ue&&(ue=t),t>Rt&&(Rt=t)):t>Wt?Ha(ue,t)>Ha(ue,Rt)&&(Rt=t):Ha(t,Rt)>Ha(ue,Rt)&&(ue=t)}else Ce.push(je=[ue=t,Rt=t]);e<ve&&(ve=e),e>le&&(le=e),oe=r,Wt=t}function S2(){ps.point=E2}function C2(){je[0]=ue,je[1]=Rt,ps.point=Uf,oe=null}function A2(t,e){if(oe){var r=t-Wt;Ne.add(Bn(r)>180?r+(r>0?360:-360):r)}else ie=t,ce=e;tn.point(t,e),E2(t,e)}function Mm(){tn.lineStart()}function Dm(){A2(ie,ce),tn.lineEnd(),Bn(Ne)>Xn&&(ue=-(Rt=180)),je[0]=ue,je[1]=Rt,oe=null}function Ha(t,e){return(e-=t)<0?e+360:e}function Nm(t,e){return t[0]-e[0]}function M2(t,e){return t[0]<=t[1]?t[0]<=e&&e<=t[1]:e<t[0]||t[1]<e}function Om(t){var e,r,a,o,s,h,f;if(le=Rt=-(ue=ve=1/0),Ce=[],Nt(t,ps),r=Ce.length){for(Ce.sort(Nm),e=1,s=[a=Ce[0]];e<r;++e)M2(a,(o=Ce[e])[0])||M2(a,o[1])?(Ha(a[0],o[1])>Ha(a[0],a[1])&&(a[1]=o[1]),Ha(o[0],a[1])>Ha(a[0],a[1])&&(a[0]=o[0])):s.push(a=o);for(h=-1/0,e=0,a=s[r=s.length-1];e<=r;a=o,++e)o=s[e],(f=Ha(a[1],o[0]))>h&&(h=f,ue=o[0],Rt=a[1])}return Ce=je=null,ue===1/0||ve===1/0?[[NaN,NaN],[NaN,NaN]]:[[ue,ve],[Rt,le]]}var Ao={sphere:V,point:$f,lineStart:D2,lineEnd:N2,polygonStart:function(){Ao.lineStart=Im,Ao.lineEnd=Fm},polygonEnd:function(){Ao.lineStart=D2,Ao.lineEnd=N2}};function $f(t,e){t*=$n;var r=vn(e*=$n);mh(r*vn(t),r*g(t),g(e))}function mh(t,e,r){++ai,Da+=(t-Da)/ai,ma+=(e-ma)/ai,ds+=(r-ds)/ai}function D2(){Ao.point=Bm}function Bm(t,e){t*=$n;var r=vn(e*=$n);Vi=r*vn(t),ba=r*g(t),va=g(e),Ao.point=Lm,mh(Vi,ba,va)}function Lm(t,e){t*=$n;var r=vn(e*=$n),a=r*vn(t),o=r*g(t),s=g(e),h=qi(k((h=ba*s-va*o)*h+(h=va*a-Vi*s)*h+(h=Vi*o-ba*a)*h),Vi*a+ba*o+va*s);zr+=h,qo+=h*(Vi+(Vi=a)),Va+=h*(ba+(ba=o)),Na+=h*(va+(va=s)),mh(Vi,ba,va)}function N2(){Ao.point=$f}function Im(){Ao.point=Rm}function Fm(){O2(gh,yh),Ao.point=$f}function Rm(t,e){gh=t,yh=e,t*=$n,e*=$n,Ao.point=O2;var r=vn(e);Vi=r*vn(t),ba=r*g(t),va=g(e),mh(Vi,ba,va)}function O2(t,e){t*=$n;var r=vn(e*=$n),a=r*vn(t),o=r*g(t),s=g(e),h=ba*s-va*o,f=va*a-Vi*s,m=Vi*o-ba*a,v=n(h,f,m),C=O(v),I=v&&-C/v;Yl.add(I*h),Ul.add(I*f),$l.add(I*m),zr+=C,qo+=C*(Vi+(Vi=a)),Va+=C*(ba+(ba=o)),Na+=C*(va+(va=s)),mh(Vi,ba,va)}function Pm(t){ai=zr=Da=ma=ds=qo=Va=Na=0,Yl=new vt,Ul=new vt,$l=new vt,Nt(t,Ao);var e=+Yl,r=+Ul,a=+$l,o=n(e,r,a);return o<zl&&(e=qo,r=Va,a=Na,zr<Xn&&(e=Da,r=ma,a=ds),(o=n(e,r,a))<zl)?[NaN,NaN]:[qi(r,e)*Lr,O(a/o)*Lr]}function Wl(t){return function(){return t}}function Wf(t,e){function r(a,o){return a=t(a,o),e(a[0],a[1])}return t.invert&&e.invert&&(r.invert=function(a,o){return(a=e.invert(a,o))&&t.invert(a[0],a[1])}),r}function qf(t,e){return[Bn(t)>tr?t+Math.round(-t/ki)*ki:t,e]}function Vf(t,e,r){return(t%=ki)?e||r?Wf(L2(t),I2(e,r)):L2(t):e||r?I2(e,r):qf}function B2(t){return function(e,r){return[(e+=t)>tr?e-ki:e<-tr?e+ki:e,r]}}function L2(t){var e=B2(t);return e.invert=B2(-t),e}function I2(t,e){var r=vn(t),a=g(t),o=vn(e),s=g(e);function h(f,m){var v=vn(m),C=vn(f)*v,I=g(f)*v,D=g(m),R=D*r+C*a;return[qi(I*o-R*s,C*r-D*a),O(R*o+I*s)]}return h.invert=function(f,m){var v=vn(m),C=vn(f)*v,I=g(f)*v,D=g(m),R=D*o-I*s;return[qi(I*o+D*s,C*r+R*a),O(R*r-C*a)]},h}function F2(t){function e(r){return(r=t(r[0]*$n,r[1]*$n))[0]*=Lr,r[1]*=Lr,r}return t=Vf(t[0]*$n,t[1]*$n,t.length>2?t[2]*$n:0),e.invert=function(r){return(r=t.invert(r[0]*$n,r[1]*$n))[0]*=Lr,r[1]*=Lr,r},e}function R2(t,e,r,a,o,s){if(r){var h=vn(e),f=g(e),m=a*r;o==null?(o=e+a*ki,s=e-m/2):(o=P2(h,o),s=P2(h,s),(a>0?o<s:o>s)&&(o+=a*ki));for(var v,C=o;a>0?C>s:C<s;C-=m)v=fr([h,-f*vn(C),-f*g(C)]),t.point(v[0],v[1])}}function P2(t,e){(e=jr(e))[0]-=t,la(e);var r=N(-e[1]);return((-e[2]<0?-r:r)+ki-Xn)%ki}function jm(){var t,e,r=Wl([0,0]),a=Wl(90),o=Wl(6),s={point:function(f,m){t.push(f=e(f,m)),f[0]*=Lr,f[1]*=Lr}};function h(){var f=r.apply(this,arguments),m=a.apply(this,arguments)*$n,v=o.apply(this,arguments)*$n;return t=[],e=Vf(-f[0]*$n,-f[1]*$n,0).invert,R2(s,m,v,1),f={type:"Polygon",coordinates:[t]},t=e=null,f}return h.center=function(f){return arguments.length?(r=typeof f=="function"?f:Wl([+f[0],+f[1]]),h):r},h.radius=function(f){return arguments.length?(a=typeof f=="function"?f:Wl(+f),h):a},h.precision=function(f){return arguments.length?(o=typeof f=="function"?f:Wl(+f),h):o},h}function j2(){var t,e=[];return{point:function(r,a,o){t.push([r,a,o])},lineStart:function(){e.push(t=[])},lineEnd:V,rejoin:function(){e.length>1&&e.push(e.pop().concat(e.shift()))},result:function(){var r=e;return e=[],t=null,r}}}function h0(t,e){return Bn(t[0]-e[0])<Xn&&Bn(t[1]-e[1])<Xn}function f0(t,e,r,a){this.x=t,this.z=e,this.o=r,this.e=a,this.v=!1,this.n=this.p=null}function z2(t,e,r,a,o){var s,h,f=[],m=[];if(t.forEach(function(Z){if(!((U=Z.length-1)<=0)){var U,$,W=Z[0],it=Z[U];if(h0(W,it)){if(!W[2]&&!it[2]){for(o.lineStart(),s=0;s<U;++s)o.point((W=Z[s])[0],W[1]);return void o.lineEnd()}it[0]+=2e-6}f.push($=new f0(W,Z,null,!0)),m.push($.o=new f0(W,null,$,!1)),f.push($=new f0(it,Z,null,!1)),m.push($.o=new f0(it,null,$,!0))}}),f.length){for(m.sort(e),Y2(f),Y2(m),s=0,h=m.length;s<h;++s)m[s].e=r=!r;for(var v,C,I=f[0];;){for(var D=I,R=!0;D.v;)if((D=D.n)===I)return;v=D.z,o.lineStart();do{if(D.v=D.o.v=!0,D.e){if(R)for(s=0,h=v.length;s<h;++s)o.point((C=v[s])[0],C[1]);else a(D.x,D.n.x,1,o);D=D.n}else{if(R)for(v=D.p.z,s=v.length-1;s>=0;--s)o.point((C=v[s])[0],C[1]);else a(D.x,D.p.x,-1,o);D=D.p}v=(D=D.o).z,R=!R}while(!D.v);o.lineEnd()}}}function Y2(t){if(e=t.length){for(var e,r,a=0,o=t[0];++a<e;)o.n=r=t[a],r.p=o,o=r;o.n=r=t[0],r.p=o}}function Hf(t){return Bn(t[0])<=tr?t[0]:T(t[0])*((Bn(t[0])+tr)%ki-tr)}function U2(t,e){var r=Hf(e),a=e[1],o=g(a),s=[g(r),-vn(r),0],h=0,f=0,m=new vt;o===1?a=Pr+Xn:o===-1&&(a=-Pr-Xn);for(var v=0,C=t.length;v<C;++v)if(D=(I=t[v]).length)for(var I,D,R=I[D-1],Z=Hf(R),U=R[1]/2+qs,$=g(U),W=vn(U),it=0;it<D;++it,Z=rt,$=pt,W=Jt,R=nt){var nt=I[it],rt=Hf(nt),lt=nt[1]/2+qs,pt=g(lt),Jt=vn(lt),ye=rt-Z,Ut=ye>=0?1:-1,Pt=Ut*ye,jt=Pt>tr,zt=$*pt;if(m.add(qi(zt*Ut*g(Pt),W*Jt+zt*vn(Pt))),h+=jt?ye+Ut*ki:ye,jt^Z>=r^rt>=r){var gt=mi(jr(R),jr(nt));la(gt);var Bt=mi(s,gt);la(Bt);var Vt=(jt^ye>=0?-1:1)*O(Bt[2]);(a>Vt||a===Vt&&(gt[0]||gt[1]))&&(f+=jt^ye>=0?1:-1)}}return(h<-1e-6||h<Xn&&m<-1e-12)^1&f}function $2(t,e,r,a){return function(o){var s,h,f,m=e(o),v=j2(),C=e(v),I=!1,D={point:R,lineStart:U,lineEnd:$,polygonStart:function(){D.point=W,D.lineStart=it,D.lineEnd=nt,h=[],s=[]},polygonEnd:function(){D.point=R,D.lineStart=U,D.lineEnd=$,h=Ye(h);var rt=U2(s,a);h.length?(I||(o.polygonStart(),I=!0),z2(h,Ym,rt,r,o)):rt&&(I||(o.polygonStart(),I=!0),o.lineStart(),r(null,null,1,o),o.lineEnd()),I&&(o.polygonEnd(),I=!1),h=s=null},sphere:function(){o.polygonStart(),o.lineStart(),r(null,null,1,o),o.lineEnd(),o.polygonEnd()}};function R(rt,lt){t(rt,lt)&&o.point(rt,lt)}function Z(rt,lt){m.point(rt,lt)}function U(){D.point=Z,m.lineStart()}function $(){D.point=R,m.lineEnd()}function W(rt,lt){f.push([rt,lt]),C.point(rt,lt)}function it(){C.lineStart(),f=[]}function nt(){W(f[0][0],f[0][1]),C.lineEnd();var rt,lt,pt,Jt,ye=C.clean(),Ut=v.result(),Pt=Ut.length;if(f.pop(),s.push(f),f=null,Pt)if(1&ye){if((lt=(pt=Ut[0]).length-1)>0){for(I||(o.polygonStart(),I=!0),o.lineStart(),rt=0;rt<lt;++rt)o.point((Jt=pt[rt])[0],Jt[1]);o.lineEnd()}}else Pt>1&&2&ye&&Ut.push(Ut.pop().concat(Ut.shift())),h.push(Ut.filter(zm))}return D}}function zm(t){return t.length>1}function Ym(t,e){return((t=t.x)[0]<0?t[1]-Pr-Xn:Pr-t[1])-((e=e.x)[0]<0?e[1]-Pr-Xn:Pr-e[1])}qf.invert=qf;const Gf=$2(function(){return!0},function(t){var e,r=NaN,a=NaN,o=NaN;return{lineStart:function(){t.lineStart(),e=1},point:function(s,h){var f=s>0?tr:-tr,m=Bn(s-r);Bn(m-tr)<Xn?(t.point(r,a=(a+h)/2>0?Pr:-Pr),t.point(o,a),t.lineEnd(),t.lineStart(),t.point(f,a),t.point(s,a),e=0):o!==f&&m>=tr&&(Bn(r-o)<Xn&&(r-=o*Xn),Bn(s-f)<Xn&&(s-=f*Xn),a=function(v,C,I,D){var R,Z,U=g(v-I);return Bn(U)>Xn?hs((g(C)*(Z=vn(D))*g(I)-g(D)*(R=vn(C))*g(v))/(R*Z*U)):(C+D)/2}(r,a,s,h),t.point(o,a),t.lineEnd(),t.lineStart(),t.point(f,a),e=0),t.point(r=s,a=h),o=f},lineEnd:function(){t.lineEnd(),r=a=NaN},clean:function(){return 2-e}}},function(t,e,r,a){var o;if(t==null)o=r*Pr,a.point(-tr,o),a.point(0,o),a.point(tr,o),a.point(tr,0),a.point(tr,-o),a.point(0,-o),a.point(-tr,-o),a.point(-tr,0),a.point(-tr,o);else if(Bn(t[0]-e[0])>Xn){var s=t[0]<e[0]?tr:-tr;o=r*s/2,a.point(-s,o),a.point(0,o),a.point(s,o)}else a.point(e[0],e[1])},[-tr,-Pr]);function W2(t){var e=vn(t),r=6*$n,a=e>0,o=Bn(e)>Xn;function s(m,v){return vn(m)*vn(v)>e}function h(m,v,C){var I=[1,0,0],D=mi(jr(m),jr(v)),R=dr(D,D),Z=D[0],U=R-Z*Z;if(!U)return!C&&m;var $=e*R/U,W=-e*Z/U,it=mi(I,D),nt=Ma(I,$);ur(nt,Ma(D,W));var rt=it,lt=dr(nt,rt),pt=dr(rt,rt),Jt=lt*lt-pt*(dr(nt,nt)-1);if(!(Jt<0)){var ye=k(Jt),Ut=Ma(rt,(-lt-ye)/pt);if(ur(Ut,nt),Ut=fr(Ut),!C)return Ut;var Pt,jt=m[0],zt=v[0],gt=m[1],Bt=v[1];zt<jt&&(Pt=jt,jt=zt,zt=Pt);var Vt=zt-jt,ae=Bn(Vt-tr)<Xn;if(!ae&&Bt<gt&&(Pt=gt,gt=Bt,Bt=Pt),ae||Vt<Xn?ae?gt+Bt>0^Ut[1]<(Bn(Ut[0]-jt)<Xn?gt:Bt):gt<=Ut[1]&&Ut[1]<=Bt:Vt>tr^(jt<=Ut[0]&&Ut[0]<=zt)){var we=Ma(rt,(-lt+ye)/pt);return ur(we,nt),[Ut,fr(we)]}}}function f(m,v){var C=a?t:tr-t,I=0;return m<-C?I|=1:m>C&&(I|=2),v<-C?I|=4:v>C&&(I|=8),I}return $2(s,function(m){var v,C,I,D,R;return{lineStart:function(){D=I=!1,R=1},point:function(Z,U){var $,W=[Z,U],it=s(Z,U),nt=a?it?0:f(Z,U):it?f(Z+(Z<0?tr:-tr),U):0;if(!v&&(D=I=it)&&m.lineStart(),it!==I&&(!($=h(v,W))||h0(v,$)||h0(W,$))&&(W[2]=1),it!==I)R=0,it?(m.lineStart(),$=h(W,v),m.point($[0],$[1])):($=h(v,W),m.point($[0],$[1],2),m.lineEnd()),v=$;else if(o&&v&&a^it){var rt;nt&C||!(rt=h(W,v,!0))||(R=0,a?(m.lineStart(),m.point(rt[0][0],rt[0][1]),m.point(rt[1][0],rt[1][1]),m.lineEnd()):(m.point(rt[1][0],rt[1][1]),m.lineEnd(),m.lineStart(),m.point(rt[0][0],rt[0][1],3)))}!it||v&&h0(v,W)||m.point(W[0],W[1]),v=W,I=it,C=nt},lineEnd:function(){I&&m.lineEnd(),v=null},clean:function(){return R|(D&&I)<<1}}},function(m,v,C,I){R2(I,t,r,C,m,v)},a?[0,-t]:[-tr,t-tr])}var Xf,Zf,d0,p0,bh=1e9,g0=-bh;function y0(t,e,r,a){function o(v,C){return t<=v&&v<=r&&e<=C&&C<=a}function s(v,C,I,D){var R=0,Z=0;if(v==null||(R=h(v,I))!==(Z=h(C,I))||m(v,C)<0^I>0)do D.point(R===0||R===3?t:r,R>1?a:e);while((R=(R+I+4)%4)!==Z);else D.point(C[0],C[1])}function h(v,C){return Bn(v[0]-t)<Xn?C>0?0:3:Bn(v[0]-r)<Xn?C>0?2:1:Bn(v[1]-e)<Xn?C>0?1:0:C>0?3:2}function f(v,C){return m(v.x,C.x)}function m(v,C){var I=h(v,1),D=h(C,1);return I!==D?I-D:I===0?C[1]-v[1]:I===1?v[0]-C[0]:I===2?v[1]-C[1]:C[0]-v[0]}return function(v){var C,I,D,R,Z,U,$,W,it,nt,rt,lt=v,pt=j2(),Jt={point:ye,lineStart:function(){Jt.point=Ut,I&&I.push(D=[]),nt=!0,it=!1,$=W=NaN},lineEnd:function(){C&&(Ut(R,Z),U&&it&&pt.rejoin(),C.push(pt.result())),Jt.point=ye,it&&lt.lineEnd()},polygonStart:function(){lt=pt,C=[],I=[],rt=!0},polygonEnd:function(){var Pt=function(){for(var gt=0,Bt=0,Vt=I.length;Bt<Vt;++Bt)for(var ae,we,ze=I[Bt],He=1,dn=ze.length,Ge=ze[0],Yn=Ge[0],Wn=Ge[1];He<dn;++He)ae=Yn,we=Wn,Yn=(Ge=ze[He])[0],Wn=Ge[1],we<=a?Wn>a&&(Yn-ae)*(a-we)>(Wn-we)*(t-ae)&&++gt:Wn<=a&&(Yn-ae)*(a-we)<(Wn-we)*(t-ae)&&--gt;return gt}(),jt=rt&&Pt,zt=(C=Ye(C)).length;(jt||zt)&&(v.polygonStart(),jt&&(v.lineStart(),s(null,null,1,v),v.lineEnd()),zt&&z2(C,f,Pt,s,v),v.polygonEnd()),lt=v,C=I=D=null}};function ye(Pt,jt){o(Pt,jt)&&lt.point(Pt,jt)}function Ut(Pt,jt){var zt=o(Pt,jt);if(I&&D.push([Pt,jt]),nt)R=Pt,Z=jt,U=zt,nt=!1,zt&&(lt.lineStart(),lt.point(Pt,jt));else if(zt&&it)lt.point(Pt,jt);else{var gt=[$=Math.max(g0,Math.min(bh,$)),W=Math.max(g0,Math.min(bh,W))],Bt=[Pt=Math.max(g0,Math.min(bh,Pt)),jt=Math.max(g0,Math.min(bh,jt))];(function(Vt,ae,we,ze,He,dn){var Ge,Yn=Vt[0],Wn=Vt[1],Cn=0,Ln=1,wr=ae[0]-Yn,ir=ae[1]-Wn;if(Ge=we-Yn,wr||!(Ge>0)){if(Ge/=wr,wr<0){if(Ge<Cn)return;Ge<Ln&&(Ln=Ge)}else if(wr>0){if(Ge>Ln)return;Ge>Cn&&(Cn=Ge)}if(Ge=He-Yn,wr||!(Ge<0)){if(Ge/=wr,wr<0){if(Ge>Ln)return;Ge>Cn&&(Cn=Ge)}else if(wr>0){if(Ge<Cn)return;Ge<Ln&&(Ln=Ge)}if(Ge=ze-Wn,ir||!(Ge>0)){if(Ge/=ir,ir<0){if(Ge<Cn)return;Ge<Ln&&(Ln=Ge)}else if(ir>0){if(Ge>Ln)return;Ge>Cn&&(Cn=Ge)}if(Ge=dn-Wn,ir||!(Ge<0)){if(Ge/=ir,ir<0){if(Ge>Ln)return;Ge>Cn&&(Cn=Ge)}else if(ir>0){if(Ge<Cn)return;Ge<Ln&&(Ln=Ge)}return Cn>0&&(Vt[0]=Yn+Cn*wr,Vt[1]=Wn+Cn*ir),Ln<1&&(ae[0]=Yn+Ln*wr,ae[1]=Wn+Ln*ir),!0}}}}})(gt,Bt,t,e,r,a)?(it||(lt.lineStart(),lt.point(gt[0],gt[1])),lt.point(Bt[0],Bt[1]),zt||lt.lineEnd(),rt=!1):zt&&(lt.lineStart(),lt.point(Pt,jt),rt=!1)}$=Pt,W=jt,it=zt}return Jt}}function Um(){var t,e,r,a=0,o=0,s=960,h=500;return r={stream:function(f){return t&&e===f?t:t=y0(a,o,s,h)(e=f)},extent:function(f){return arguments.length?(a=+f[0][0],o=+f[0][1],s=+f[1][0],h=+f[1][1],t=e=null,r):[[a,o],[s,h]]}}}var ql={sphere:V,point:V,lineStart:function(){ql.point=Wm,ql.lineEnd=$m},lineEnd:V,polygonStart:V,polygonEnd:V};function $m(){ql.point=ql.lineEnd=V}function Wm(t,e){Zf=t*=$n,d0=g(e*=$n),p0=vn(e),ql.point=qm}function qm(t,e){t*=$n;var r=g(e*=$n),a=vn(e),o=Bn(t-Zf),s=vn(o),h=a*g(o),f=p0*r-d0*a*s,m=d0*r+p0*a*s;Xf.add(qi(k(h*h+f*f),m)),Zf=t,d0=r,p0=a}function q2(t){return Xf=new vt,Nt(t,ql),+Xf}var Qf=[null,null],Vm={type:"LineString",coordinates:Qf};function m0(t,e){return Qf[0]=t,Qf[1]=e,q2(Vm)}var V2={Feature:function(t,e){return b0(t.geometry,e)},FeatureCollection:function(t,e){for(var r=t.features,a=-1,o=r.length;++a<o;)if(b0(r[a].geometry,e))return!0;return!1}},H2={Sphere:function(){return!0},Point:function(t,e){return G2(t.coordinates,e)},MultiPoint:function(t,e){for(var r=t.coordinates,a=-1,o=r.length;++a<o;)if(G2(r[a],e))return!0;return!1},LineString:function(t,e){return X2(t.coordinates,e)},MultiLineString:function(t,e){for(var r=t.coordinates,a=-1,o=r.length;++a<o;)if(X2(r[a],e))return!0;return!1},Polygon:function(t,e){return Z2(t.coordinates,e)},MultiPolygon:function(t,e){for(var r=t.coordinates,a=-1,o=r.length;++a<o;)if(Z2(r[a],e))return!0;return!1},GeometryCollection:function(t,e){for(var r=t.geometries,a=-1,o=r.length;++a<o;)if(b0(r[a],e))return!0;return!1}};function b0(t,e){return!(!t||!H2.hasOwnProperty(t.type))&&H2[t.type](t,e)}function G2(t,e){return m0(t,e)===0}function X2(t,e){for(var r,a,o,s=0,h=t.length;s<h;s++){if((a=m0(t[s],e))===0||s>0&&(o=m0(t[s],t[s-1]))>0&&r<=o&&a<=o&&(r+a-o)*(1-Math.pow((r-a)/o,2))<zl*o)return!0;r=a}return!1}function Z2(t,e){return!!U2(t.map(Hm),Q2(e))}function Hm(t){return(t=t.map(Q2)).pop(),t}function Q2(t){return[t[0]*$n,t[1]*$n]}function Gm(t,e){return(t&&V2.hasOwnProperty(t.type)?V2[t.type]:b0)(t,e)}function K2(t,e,r){var a=Me(t,e-Xn,r).concat(e);return function(o){return a.map(function(s){return[o,s]})}}function J2(t,e,r){var a=Me(t,e-Xn,r).concat(e);return function(o){return a.map(function(s){return[s,o]})}}function tp(){var t,e,r,a,o,s,h,f,m,v,C,I,D=10,R=D,Z=90,U=360,$=2.5;function W(){return{type:"MultiLineString",coordinates:it()}}function it(){return Me(fs(a/Z)*Z,r,Z).map(C).concat(Me(fs(f/U)*U,h,U).map(I)).concat(Me(fs(e/D)*D,t,D).filter(function(nt){return Bn(nt%Z)>Xn}).map(m)).concat(Me(fs(s/R)*R,o,R).filter(function(nt){return Bn(nt%U)>Xn}).map(v))}return W.lines=function(){return it().map(function(nt){return{type:"LineString",coordinates:nt}})},W.outline=function(){return{type:"Polygon",coordinates:[C(a).concat(I(h).slice(1),C(r).reverse().slice(1),I(f).reverse().slice(1))]}},W.extent=function(nt){return arguments.length?W.extentMajor(nt).extentMinor(nt):W.extentMinor()},W.extentMajor=function(nt){return arguments.length?(a=+nt[0][0],r=+nt[1][0],f=+nt[0][1],h=+nt[1][1],a>r&&(nt=a,a=r,r=nt),f>h&&(nt=f,f=h,h=nt),W.precision($)):[[a,f],[r,h]]},W.extentMinor=function(nt){return arguments.length?(e=+nt[0][0],t=+nt[1][0],s=+nt[0][1],o=+nt[1][1],e>t&&(nt=e,e=t,t=nt),s>o&&(nt=s,s=o,o=nt),W.precision($)):[[e,s],[t,o]]},W.step=function(nt){return arguments.length?W.stepMajor(nt).stepMinor(nt):W.stepMinor()},W.stepMajor=function(nt){return arguments.length?(Z=+nt[0],U=+nt[1],W):[Z,U]},W.stepMinor=function(nt){return arguments.length?(D=+nt[0],R=+nt[1],W):[D,R]},W.precision=function(nt){return arguments.length?($=+nt,m=K2(s,o,90),v=J2(e,t,$),C=K2(f,h,90),I=J2(a,r,$),W):$},W.extentMajor([[-180,-89.999999],[180,89.999999]]).extentMinor([[-180,-80.000001],[180,80.000001]])}function Xm(){return tp()()}function Zm(t,e){var r=t[0]*$n,a=t[1]*$n,o=e[0]*$n,s=e[1]*$n,h=vn(a),f=g(a),m=vn(s),v=g(s),C=h*vn(r),I=h*g(r),D=m*vn(o),R=m*g(o),Z=2*O(k(q(s-a)+h*m*q(o-r))),U=g(Z),$=Z?function(W){var it=g(W*=Z)/U,nt=g(Z-W)/U,rt=nt*C+it*D,lt=nt*I+it*R,pt=nt*f+it*v;return[qi(lt,rt)*Lr,qi(pt,k(rt*rt+lt*lt))*Lr]}:function(){return[r*Lr,a*Lr]};return $.distance=Z,$}const vh=t=>t;var ep,np,Kf,Jf,td=new vt,ed=new vt,Vs={point:V,lineStart:V,lineEnd:V,polygonStart:function(){Vs.lineStart=Qm,Vs.lineEnd=Jm},polygonEnd:function(){Vs.lineStart=Vs.lineEnd=Vs.point=V,td.add(Bn(ed)),ed=new vt},result:function(){var t=td/2;return td=new vt,t}};function Qm(){Vs.point=Km}function Km(t,e){Vs.point=rp,ep=Kf=t,np=Jf=e}function rp(t,e){ed.add(Jf*t-Kf*e),Kf=t,Jf=e}function Jm(){rp(ep,np)}const ip=Vs;var Vl=1/0,v0=Vl,_h=-Vl,_0=_h,t3={point:function(t,e){t<Vl&&(Vl=t),t>_h&&(_h=t),e<v0&&(v0=e),e>_0&&(_0=e)},lineStart:V,lineEnd:V,polygonStart:V,polygonEnd:V,result:function(){var t=[[Vl,v0],[_h,_0]];return _h=_0=-(v0=Vl=1/0),t}};const x0=t3;var ap,op,Vo,Ho,nd=0,rd=0,xh=0,k0=0,w0=0,Hl=0,id=0,ad=0,kh=0,Mo={point:jc,lineStart:sp,lineEnd:cp,polygonStart:function(){Mo.lineStart=r3,Mo.lineEnd=i3},polygonEnd:function(){Mo.point=jc,Mo.lineStart=sp,Mo.lineEnd=cp},result:function(){var t=kh?[id/kh,ad/kh]:Hl?[k0/Hl,w0/Hl]:xh?[nd/xh,rd/xh]:[NaN,NaN];return nd=rd=xh=k0=w0=Hl=id=ad=kh=0,t}};function jc(t,e){nd+=t,rd+=e,++xh}function sp(){Mo.point=e3}function e3(t,e){Mo.point=n3,jc(Vo=t,Ho=e)}function n3(t,e){var r=t-Vo,a=e-Ho,o=k(r*r+a*a);k0+=o*(Vo+t)/2,w0+=o*(Ho+e)/2,Hl+=o,jc(Vo=t,Ho=e)}function cp(){Mo.point=jc}function r3(){Mo.point=a3}function i3(){lp(ap,op)}function a3(t,e){Mo.point=lp,jc(ap=Vo=t,op=Ho=e)}function lp(t,e){var r=t-Vo,a=e-Ho,o=k(r*r+a*a);k0+=o*(Vo+t)/2,w0+=o*(Ho+e)/2,Hl+=o,id+=(o=Ho*t-Vo*e)*(Vo+t),ad+=o*(Ho+e),kh+=3*o,jc(Vo=t,Ho=e)}const up=Mo;function hp(t){this._context=t}hp.prototype={_radius:4.5,pointRadius:function(t){return this._radius=t,this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){this._line===0&&this._context.closePath(),this._point=NaN},point:function(t,e){switch(this._point){case 0:this._context.moveTo(t,e),this._point=1;break;case 1:this._context.lineTo(t,e);break;default:this._context.moveTo(t+this._radius,e),this._context.arc(t,e,this._radius,0,ki)}},result:V};var od,fp,dp,wh,Th,sd=new vt,T0={point:V,lineStart:function(){T0.point=o3},lineEnd:function(){od&&pp(fp,dp),T0.point=V},polygonStart:function(){od=!0},polygonEnd:function(){od=null},result:function(){var t=+sd;return sd=new vt,t}};function o3(t,e){T0.point=pp,fp=wh=t,dp=Th=e}function pp(t,e){wh-=t,Th-=e,sd.add(k(wh*wh+Th*Th)),wh=t,Th=e}const gp=T0;function yp(){this._string=[]}function mp(t){return"m0,"+t+"a"+t+","+t+" 0 1,1 0,"+-2*t+"a"+t+","+t+" 0 1,1 0,"+2*t+"z"}function s3(t,e){var r,a,o=4.5;function s(h){return h&&(typeof o=="function"&&a.pointRadius(+o.apply(this,arguments)),Nt(h,r(a))),a.result()}return s.area=function(h){return Nt(h,r(ip)),ip.result()},s.measure=function(h){return Nt(h,r(gp)),gp.result()},s.bounds=function(h){return Nt(h,r(x0)),x0.result()},s.centroid=function(h){return Nt(h,r(up)),up.result()},s.projection=function(h){return arguments.length?(r=h==null?(t=null,vh):(t=h).stream,s):t},s.context=function(h){return arguments.length?(a=h==null?(e=null,new yp):new hp(e=h),typeof o!="function"&&a.pointRadius(o),s):e},s.pointRadius=function(h){return arguments.length?(o=typeof h=="function"?h:(a.pointRadius(+h),+h),s):o},s.projection(t).context(e)}function c3(t){return{stream:Eh(t)}}function Eh(t){return function(e){var r=new cd;for(var a in t)r[a]=t[a];return r.stream=e,r}}function cd(){}function ld(t,e,r){var a=t.clipExtent&&t.clipExtent();return t.scale(150).translate([0,0]),a!=null&&t.clipExtent(null),Nt(r,t.stream(x0)),e(x0.result()),a!=null&&t.clipExtent(a),t}function E0(t,e,r){return ld(t,function(a){var o=e[1][0]-e[0][0],s=e[1][1]-e[0][1],h=Math.min(o/(a[1][0]-a[0][0]),s/(a[1][1]-a[0][1])),f=+e[0][0]+(o-h*(a[1][0]+a[0][0]))/2,m=+e[0][1]+(s-h*(a[1][1]+a[0][1]))/2;t.scale(150*h).translate([f,m])},r)}function ud(t,e,r){return E0(t,[[0,0],e],r)}function hd(t,e,r){return ld(t,function(a){var o=+e,s=o/(a[1][0]-a[0][0]),h=(o-s*(a[1][0]+a[0][0]))/2,f=-s*a[0][1];t.scale(150*s).translate([h,f])},r)}function fd(t,e,r){return ld(t,function(a){var o=+e,s=o/(a[1][1]-a[0][1]),h=-s*a[0][0],f=(o-s*(a[1][1]+a[0][1]))/2;t.scale(150*s).translate([h,f])},r)}yp.prototype={_radius:4.5,_circle:mp(4.5),pointRadius:function(t){return(t=+t)!==this._radius&&(this._radius=t,this._circle=null),this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){this._line===0&&this._string.push("Z"),this._point=NaN},point:function(t,e){switch(this._point){case 0:this._string.push("M",t,",",e),this._point=1;break;case 1:this._string.push("L",t,",",e);break;default:this._circle==null&&(this._circle=mp(this._radius)),this._string.push("M",t,",",e,this._circle)}},result:function(){if(this._string.length){var t=this._string.join("");return this._string=[],t}return null}},cd.prototype={constructor:cd,point:function(t,e){this.stream.point(t,e)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}};var l3=vn(30*$n);function bp(t,e){return+e?function(r,a){function o(s,h,f,m,v,C,I,D,R,Z,U,$,W,it){var nt=I-s,rt=D-h,lt=nt*nt+rt*rt;if(lt>4*a&&W--){var pt=m+Z,Jt=v+U,ye=C+$,Ut=k(pt*pt+Jt*Jt+ye*ye),Pt=O(ye/=Ut),jt=Bn(Bn(ye)-1)<Xn||Bn(f-R)<Xn?(f+R)/2:qi(Jt,pt),zt=r(jt,Pt),gt=zt[0],Bt=zt[1],Vt=gt-s,ae=Bt-h,we=rt*Vt-nt*ae;(we*we/lt>a||Bn((nt*Vt+rt*ae)/lt-.5)>.3||m*Z+v*U+C*$<l3)&&(o(s,h,f,m,v,C,gt,Bt,jt,pt/=Ut,Jt/=Ut,ye,W,it),it.point(gt,Bt),o(gt,Bt,jt,pt,Jt,ye,I,D,R,Z,U,$,W,it))}}return function(s){var h,f,m,v,C,I,D,R,Z,U,$,W,it={point:nt,lineStart:rt,lineEnd:pt,polygonStart:function(){s.polygonStart(),it.lineStart=Jt},polygonEnd:function(){s.polygonEnd(),it.lineStart=rt}};function nt(Pt,jt){Pt=r(Pt,jt),s.point(Pt[0],Pt[1])}function rt(){R=NaN,it.point=lt,s.lineStart()}function lt(Pt,jt){var zt=jr([Pt,jt]),gt=r(Pt,jt);o(R,Z,D,U,$,W,R=gt[0],Z=gt[1],D=Pt,U=zt[0],$=zt[1],W=zt[2],16,s),s.point(R,Z)}function pt(){it.point=nt,s.lineEnd()}function Jt(){rt(),it.point=ye,it.lineEnd=Ut}function ye(Pt,jt){lt(h=Pt,jt),f=R,m=Z,v=U,C=$,I=W,it.point=lt}function Ut(){o(R,Z,D,U,$,W,f,m,h,v,C,I,16,s),it.lineEnd=pt,pt()}return it}}(t,e):function(r){return Eh({point:function(a,o){a=r(a,o),this.stream.point(a[0],a[1])}})}(t)}var u3=Eh({point:function(t,e){this.stream.point(t*$n,e*$n)}});function vp(t,e,r,a,o,s){if(!s)return function(U,$,W,it,nt){function rt(lt,pt){return[$+U*(lt*=it),W-U*(pt*=nt)]}return rt.invert=function(lt,pt){return[(lt-$)/U*it,(W-pt)/U*nt]},rt}(t,e,r,a,o);var h=vn(s),f=g(s),m=h*t,v=f*t,C=h/t,I=f/t,D=(f*r-h*e)/t,R=(f*e+h*r)/t;function Z(U,$){return[m*(U*=a)-v*($*=o)+e,r-v*U-m*$]}return Z.invert=function(U,$){return[a*(C*U-I*$+D),o*(R-I*U-C*$)]},Z}function Go(t){return dd(function(){return t})()}function dd(t){var e,r,a,o,s,h,f,m,v,C,I=150,D=480,R=250,Z=0,U=0,$=0,W=0,it=0,nt=0,rt=1,lt=1,pt=null,Jt=Gf,ye=null,Ut=vh,Pt=.5;function jt(Vt){return m(Vt[0]*$n,Vt[1]*$n)}function zt(Vt){return(Vt=m.invert(Vt[0],Vt[1]))&&[Vt[0]*Lr,Vt[1]*Lr]}function gt(){var Vt=vp(I,0,0,rt,lt,nt).apply(null,e(Z,U)),ae=vp(I,D-Vt[0],R-Vt[1],rt,lt,nt);return r=Vf($,W,it),f=Wf(e,ae),m=Wf(r,f),h=bp(f,Pt),Bt()}function Bt(){return v=C=null,jt}return jt.stream=function(Vt){return v&&C===Vt?v:v=u3(function(ae){return Eh({point:function(we,ze){var He=ae(we,ze);return this.stream.point(He[0],He[1])}})}(r)(Jt(h(Ut(C=Vt)))))},jt.preclip=function(Vt){return arguments.length?(Jt=Vt,pt=void 0,Bt()):Jt},jt.postclip=function(Vt){return arguments.length?(Ut=Vt,ye=a=o=s=null,Bt()):Ut},jt.clipAngle=function(Vt){return arguments.length?(Jt=+Vt?W2(pt=Vt*$n):(pt=null,Gf),Bt()):pt*Lr},jt.clipExtent=function(Vt){return arguments.length?(Ut=Vt==null?(ye=a=o=s=null,vh):y0(ye=+Vt[0][0],a=+Vt[0][1],o=+Vt[1][0],s=+Vt[1][1]),Bt()):ye==null?null:[[ye,a],[o,s]]},jt.scale=function(Vt){return arguments.length?(I=+Vt,gt()):I},jt.translate=function(Vt){return arguments.length?(D=+Vt[0],R=+Vt[1],gt()):[D,R]},jt.center=function(Vt){return arguments.length?(Z=Vt[0]%360*$n,U=Vt[1]%360*$n,gt()):[Z*Lr,U*Lr]},jt.rotate=function(Vt){return arguments.length?($=Vt[0]%360*$n,W=Vt[1]%360*$n,it=Vt.length>2?Vt[2]%360*$n:0,gt()):[$*Lr,W*Lr,it*Lr]},jt.angle=function(Vt){return arguments.length?(nt=Vt%360*$n,gt()):nt*Lr},jt.reflectX=function(Vt){return arguments.length?(rt=Vt?-1:1,gt()):rt<0},jt.reflectY=function(Vt){return arguments.length?(lt=Vt?-1:1,gt()):lt<0},jt.precision=function(Vt){return arguments.length?(h=bp(f,Pt=Vt*Vt),Bt()):k(Pt)},jt.fitExtent=function(Vt,ae){return E0(jt,Vt,ae)},jt.fitSize=function(Vt,ae){return ud(jt,Vt,ae)},jt.fitWidth=function(Vt,ae){return hd(jt,Vt,ae)},jt.fitHeight=function(Vt,ae){return fd(jt,Vt,ae)},function(){return e=t.apply(this,arguments),jt.invert=e.invert&&zt,gt()}}function pd(t){var e=0,r=tr/3,a=dd(t),o=a(e,r);return o.parallels=function(s){return arguments.length?a(e=s[0]*$n,r=s[1]*$n):[e*Lr,r*Lr]},o}function _p(t,e){var r=g(t),a=(r+g(e))/2;if(Bn(a)<Xn)return function(f){var m=vn(f);function v(C,I){return[C*m,g(I)/m]}return v.invert=function(C,I){return[C/m,O(I*m)]},v}(t);var o=1+r*(2*a-r),s=k(o)/a;function h(f,m){var v=k(o-2*a*g(m))/a;return[v*g(f*=a),s-v*vn(f)]}return h.invert=function(f,m){var v=s-m,C=qi(f,Bn(v))*T(v);return v*a<0&&(C-=tr*T(f)*T(v)),[C/a,O((o-(f*f+v*v)*a*a)/(2*a))]},h}function S0(){return pd(_p).scale(155.424).center([0,33.6442])}function xp(){return S0().parallels([29.5,45.5]).scale(1070).translate([480,250]).rotate([96,0]).center([-.6,38.7])}function h3(){var t,e,r,a,o,s,h=xp(),f=S0().rotate([154,0]).center([-2,58.5]).parallels([55,65]),m=S0().rotate([157,0]).center([-3,19.9]).parallels([8,18]),v={point:function(D,R){s=[D,R]}};function C(D){var R=D[0],Z=D[1];return s=null,r.point(R,Z),s||(a.point(R,Z),s)||(o.point(R,Z),s)}function I(){return t=e=null,C}return C.invert=function(D){var R=h.scale(),Z=h.translate(),U=(D[0]-Z[0])/R,$=(D[1]-Z[1])/R;return($>=.12&&$<.234&&U>=-.425&&U<-.214?f:$>=.166&&$<.234&&U>=-.214&&U<-.115?m:h).invert(D)},C.stream=function(D){return t&&e===D?t:(R=[h.stream(e=D),f.stream(D),m.stream(D)],Z=R.length,t={point:function(U,$){for(var W=-1;++W<Z;)R[W].point(U,$)},sphere:function(){for(var U=-1;++U<Z;)R[U].sphere()},lineStart:function(){for(var U=-1;++U<Z;)R[U].lineStart()},lineEnd:function(){for(var U=-1;++U<Z;)R[U].lineEnd()},polygonStart:function(){for(var U=-1;++U<Z;)R[U].polygonStart()},polygonEnd:function(){for(var U=-1;++U<Z;)R[U].polygonEnd()}});var R,Z},C.precision=function(D){return arguments.length?(h.precision(D),f.precision(D),m.precision(D),I()):h.precision()},C.scale=function(D){return arguments.length?(h.scale(D),f.scale(.35*D),m.scale(D),C.translate(h.translate())):h.scale()},C.translate=function(D){if(!arguments.length)return h.translate();var R=h.scale(),Z=+D[0],U=+D[1];return r=h.translate(D).clipExtent([[Z-.455*R,U-.238*R],[Z+.455*R,U+.238*R]]).stream(v),a=f.translate([Z-.307*R,U+.201*R]).clipExtent([[Z-.425*R+Xn,U+.12*R+Xn],[Z-.214*R-Xn,U+.234*R-Xn]]).stream(v),o=m.translate([Z-.205*R,U+.212*R]).clipExtent([[Z-.214*R+Xn,U+.166*R+Xn],[Z-.115*R-Xn,U+.234*R-Xn]]).stream(v),I()},C.fitExtent=function(D,R){return E0(C,D,R)},C.fitSize=function(D,R){return ud(C,D,R)},C.fitWidth=function(D,R){return hd(C,D,R)},C.fitHeight=function(D,R){return fd(C,D,R)},C.scale(1070)}function kp(t){return function(e,r){var a=vn(e),o=vn(r),s=t(a*o);return s===1/0?[2,0]:[s*o*g(e),s*g(r)]}}function Sh(t){return function(e,r){var a=k(e*e+r*r),o=t(a),s=g(o),h=vn(o);return[qi(e*s,a*h),O(a&&r*s/a)]}}var gd=kp(function(t){return k(2/(1+t))});function f3(){return Go(gd).scale(124.75).clipAngle(179.999)}gd.invert=Sh(function(t){return 2*O(t/2)});var yd=kp(function(t){return(t=N(t))&&t/g(t)});function d3(){return Go(yd).scale(79.4188).clipAngle(179.999)}function Ch(t,e){return[t,l(S((Pr+e)/2))]}function p3(){return wp(Ch).scale(961/ki)}function wp(t){var e,r,a,o=Go(t),s=o.center,h=o.scale,f=o.translate,m=o.clipExtent,v=null;function C(){var I=tr*h(),D=o(F2(o.rotate()).invert([0,0]));return m(v==null?[[D[0]-I,D[1]-I],[D[0]+I,D[1]+I]]:t===Ch?[[Math.max(D[0]-I,v),e],[Math.min(D[0]+I,r),a]]:[[v,Math.max(D[1]-I,e)],[r,Math.min(D[1]+I,a)]])}return o.scale=function(I){return arguments.length?(h(I),C()):h()},o.translate=function(I){return arguments.length?(f(I),C()):f()},o.center=function(I){return arguments.length?(s(I),C()):s()},o.clipExtent=function(I){return arguments.length?(I==null?v=e=r=a=null:(v=+I[0][0],e=+I[0][1],r=+I[1][0],a=+I[1][1]),C()):v==null?null:[[v,e],[r,a]]},C()}function C0(t){return S((Pr+t)/2)}function Tp(t,e){var r=vn(t),a=t===e?g(t):l(r/vn(e))/l(C0(e)/C0(t)),o=r*d(C0(t),a)/a;if(!a)return Ch;function s(h,f){o>0?f<-Pr+Xn&&(f=-Pr+Xn):f>Pr-Xn&&(f=Pr-Xn);var m=o/d(C0(f),a);return[m*g(a*h),o-m*vn(a*h)]}return s.invert=function(h,f){var m=o-f,v=T(a)*k(h*h+m*m),C=qi(h,Bn(m))*T(m);return m*a<0&&(C-=tr*T(h)*T(m)),[C/a,2*hs(d(o/v,1/a))-Pr]},s}function g3(){return pd(Tp).scale(109.5).parallels([30,30])}function Ah(t,e){return[t,e]}function y3(){return Go(Ah).scale(152.63)}function Ep(t,e){var r=vn(t),a=t===e?g(t):(r-vn(e))/(e-t),o=r/a+t;if(Bn(a)<Xn)return Ah;function s(h,f){var m=o-f,v=a*h;return[m*g(v),o-m*vn(v)]}return s.invert=function(h,f){var m=o-f,v=qi(h,Bn(m))*T(m);return m*a<0&&(v-=tr*T(h)*T(m)),[v/a,o-T(a)*k(h*h+m*m)]},s}function m3(){return pd(Ep).scale(131.154).center([0,13.9389])}yd.invert=Sh(function(t){return t}),Ch.invert=function(t,e){return[t,2*hs(i(e))-Pr]},Ah.invert=Ah;var Mh=1.340264,Dh=-.081106,Nh=893e-6,Oh=.003796,A0=k(3)/2;function md(t,e){var r=O(A0*g(e)),a=r*r,o=a*a*a;return[t*vn(r)/(A0*(Mh+3*Dh*a+o*(7*Nh+9*Oh*a))),r*(Mh+Dh*a+o*(Nh+Oh*a))]}function b3(){return Go(md).scale(177.158)}function bd(t,e){var r=vn(e),a=vn(t)*r;return[r*g(t)/a,g(e)/a]}function v3(){return Go(bd).scale(144.049).clipAngle(60)}function _3(){var t,e,r,a,o,s,h,f=1,m=0,v=0,C=1,I=1,D=0,R=null,Z=1,U=1,$=Eh({point:function(rt,lt){var pt=nt([rt,lt]);this.stream.point(pt[0],pt[1])}}),W=vh;function it(){return Z=f*C,U=f*I,s=h=null,nt}function nt(rt){var lt=rt[0]*Z,pt=rt[1]*U;if(D){var Jt=pt*t-lt*e;lt=lt*t+pt*e,pt=Jt}return[lt+m,pt+v]}return nt.invert=function(rt){var lt=rt[0]-m,pt=rt[1]-v;if(D){var Jt=pt*t+lt*e;lt=lt*t-pt*e,pt=Jt}return[lt/Z,pt/U]},nt.stream=function(rt){return s&&h===rt?s:s=$(W(h=rt))},nt.postclip=function(rt){return arguments.length?(W=rt,R=r=a=o=null,it()):W},nt.clipExtent=function(rt){return arguments.length?(W=rt==null?(R=r=a=o=null,vh):y0(R=+rt[0][0],r=+rt[0][1],a=+rt[1][0],o=+rt[1][1]),it()):R==null?null:[[R,r],[a,o]]},nt.scale=function(rt){return arguments.length?(f=+rt,it()):f},nt.translate=function(rt){return arguments.length?(m=+rt[0],v=+rt[1],it()):[m,v]},nt.angle=function(rt){return arguments.length?(e=g(D=rt%360*$n),t=vn(D),it()):D*Lr},nt.reflectX=function(rt){return arguments.length?(C=rt?-1:1,it()):C<0},nt.reflectY=function(rt){return arguments.length?(I=rt?-1:1,it()):I<0},nt.fitExtent=function(rt,lt){return E0(nt,rt,lt)},nt.fitSize=function(rt,lt){return ud(nt,rt,lt)},nt.fitWidth=function(rt,lt){return hd(nt,rt,lt)},nt.fitHeight=function(rt,lt){return fd(nt,rt,lt)},nt}function vd(t,e){var r=e*e,a=r*r;return[t*(.8707-.131979*r+a*(a*(.003971*r-.001529*a)-.013791)),e*(1.007226+r*(.015085+a*(.028874*r-.044475-.005916*a)))]}function x3(){return Go(vd).scale(175.295)}function _d(t,e){return[vn(e)*g(t),g(e)]}function k3(){return Go(_d).scale(249.5).clipAngle(90.000001)}function xd(t,e){var r=vn(e),a=1+vn(t)*r;return[r*g(t)/a,g(e)/a]}function w3(){return Go(xd).scale(250).clipAngle(142)}function kd(t,e){return[l(S((Pr+e)/2)),-t]}function T3(){var t=wp(kd),e=t.center,r=t.rotate;return t.center=function(a){return arguments.length?e([-a[1],a[0]]):[(a=e())[1],-a[0]]},t.rotate=function(a){return arguments.length?r([a[0],a[1],a.length>2?a[2]+90:90]):[(a=r())[0],a[1],a[2]-90]},r([0,0,90]).scale(159.155)}function E3(t,e){return t.parent===e.parent?1:2}function S3(t,e){return t+e.x}function C3(t,e){return Math.max(t,e.y)}function A3(){var t=E3,e=1,r=1,a=!1;function o(s){var h,f=0;s.eachAfter(function(D){var R=D.children;R?(D.x=function(Z){return Z.reduce(S3,0)/Z.length}(R),D.y=function(Z){return 1+Z.reduce(C3,0)}(R)):(D.x=h?f+=t(D,h):0,D.y=0,h=D)});var m=function(D){for(var R;R=D.children;)D=R[0];return D}(s),v=function(D){for(var R;R=D.children;)D=R[R.length-1];return D}(s),C=m.x-t(m,v)/2,I=v.x+t(v,m)/2;return s.eachAfter(a?function(D){D.x=(D.x-s.x)*e,D.y=(s.y-D.y)*r}:function(D){D.x=(D.x-C)/(I-C)*e,D.y=(1-(s.y?D.y/s.y:1))*r})}return o.separation=function(s){return arguments.length?(t=s,o):t},o.size=function(s){return arguments.length?(a=!1,e=+s[0],r=+s[1],o):a?null:[e,r]},o.nodeSize=function(s){return arguments.length?(a=!0,e=+s[0],r=+s[1],o):a?[e,r]:null},o}function M3(t){var e=0,r=t.children,a=r&&r.length;if(a)for(;--a>=0;)e+=r[a].value;else e=1;t.value=e}function wd(t,e){t instanceof Map?(t=[void 0,t],e===void 0&&(e=N3)):e===void 0&&(e=D3);for(var r,a,o,s,h,f=new zc(t),m=[f];r=m.pop();)if((o=e(r.data))&&(h=(o=Array.from(o)).length))for(r.children=o,s=h-1;s>=0;--s)m.push(a=o[s]=new zc(o[s])),a.parent=r,a.depth=r.depth+1;return f.eachBefore(Sp)}function D3(t){return t.children}function N3(t){return Array.isArray(t)?t[1]:null}function O3(t){t.data.value!==void 0&&(t.value=t.data.value),t.data=t.data.data}function Sp(t){var e=0;do t.height=e;while((t=t.parent)&&t.height<++e)}function zc(t){this.data=t,this.depth=this.height=0,this.parent=null}function Cp(t){for(var e,r,a=0,o=(t=function(h){for(var f,m,v=h.length;v;)m=Math.random()*v--|0,f=h[v],h[v]=h[m],h[m]=f;return h}(Array.from(t))).length,s=[];a<o;)e=t[a],r&&Ap(r,e)?++a:(r=L3(s=B3(s,e)),a=0);return r}function B3(t,e){var r,a;if(Td(e,t))return[e];for(r=0;r<t.length;++r)if(M0(e,t[r])&&Td(Bh(t[r],e),t))return[t[r],e];for(r=0;r<t.length-1;++r)for(a=r+1;a<t.length;++a)if(M0(Bh(t[r],t[a]),e)&&M0(Bh(t[r],e),t[a])&&M0(Bh(t[a],e),t[r])&&Td(Mp(t[r],t[a],e),t))return[t[r],t[a],e];throw new Error}function M0(t,e){var r=t.r-e.r,a=e.x-t.x,o=e.y-t.y;return r<0||r*r<a*a+o*o}function Ap(t,e){var r=t.r-e.r+1e-9*Math.max(t.r,e.r,1),a=e.x-t.x,o=e.y-t.y;return r>0&&r*r>a*a+o*o}function Td(t,e){for(var r=0;r<e.length;++r)if(!Ap(t,e[r]))return!1;return!0}function L3(t){switch(t.length){case 1:return{x:(e=t[0]).x,y:e.y,r:e.r};case 2:return Bh(t[0],t[1]);case 3:return Mp(t[0],t[1],t[2])}var e}function Bh(t,e){var r=t.x,a=t.y,o=t.r,s=e.x,h=e.y,f=e.r,m=s-r,v=h-a,C=f-o,I=Math.sqrt(m*m+v*v);return{x:(r+s+m/I*C)/2,y:(a+h+v/I*C)/2,r:(I+o+f)/2}}function Mp(t,e,r){var a=t.x,o=t.y,s=t.r,h=e.x,f=e.y,m=e.r,v=r.x,C=r.y,I=r.r,D=a-h,R=a-v,Z=o-f,U=o-C,$=m-s,W=I-s,it=a*a+o*o-s*s,nt=it-h*h-f*f+m*m,rt=it-v*v-C*C+I*I,lt=R*Z-D*U,pt=(Z*rt-U*nt)/(2*lt)-a,Jt=(U*$-Z*W)/lt,ye=(R*nt-D*rt)/(2*lt)-o,Ut=(D*W-R*$)/lt,Pt=Jt*Jt+Ut*Ut-1,jt=2*(s+pt*Jt+ye*Ut),zt=pt*pt+ye*ye-s*s,gt=-(Pt?(jt+Math.sqrt(jt*jt-4*Pt*zt))/(2*Pt):zt/jt);return{x:a+pt+Jt*gt,y:o+ye+Ut*gt,r:gt}}function Dp(t,e,r){var a,o,s,h,f=t.x-e.x,m=t.y-e.y,v=f*f+m*m;v?(o=e.r+r.r,o*=o,h=t.r+r.r,o>(h*=h)?(a=(v+h-o)/(2*v),s=Math.sqrt(Math.max(0,h/v-a*a)),r.x=t.x-a*f-s*m,r.y=t.y-a*m+s*f):(a=(v+o-h)/(2*v),s=Math.sqrt(Math.max(0,o/v-a*a)),r.x=e.x+a*f-s*m,r.y=e.y+a*m+s*f)):(r.x=e.x+r.r,r.y=e.y)}function Np(t,e){var r=t.r+e.r-1e-6,a=e.x-t.x,o=e.y-t.y;return r>0&&r*r>a*a+o*o}function Op(t){var e=t._,r=t.next._,a=e.r+r.r,o=(e.x*r.r+r.x*e.r)/a,s=(e.y*r.r+r.y*e.r)/a;return o*o+s*s}function D0(t){this._=t,this.next=null,this.previous=null}function Bp(t){if(!(s=(e=t,t=typeof e=="object"&&"length"in e?e:Array.from(e)).length))return 0;var e,r,a,o,s,h,f,m,v,C,I,D;if((r=t[0]).x=0,r.y=0,!(s>1))return r.r;if(a=t[1],r.x=-a.r,a.x=r.r,a.y=0,!(s>2))return r.r+a.r;Dp(a,r,o=t[2]),r=new D0(r),a=new D0(a),o=new D0(o),r.next=o.previous=a,a.next=r.previous=o,o.next=a.previous=r;t:for(m=3;m<s;++m){Dp(r._,a._,o=t[m]),o=new D0(o),v=a.next,C=r.previous,I=a._.r,D=r._.r;do if(I<=D){if(Np(v._,o._)){a=v,r.next=a,a.previous=r,--m;continue t}I+=v._.r,v=v.next}else{if(Np(C._,o._)){(r=C).next=a,a.previous=r,--m;continue t}D+=C._.r,C=C.previous}while(v!==C.next);for(o.previous=r,o.next=a,r.next=a.previous=a=o,h=Op(r);(o=o.next)!==a;)(f=Op(o))<h&&(r=o,h=f);a=r.next}for(r=[a._],o=a;(o=o.next)!==a;)r.push(o._);for(o=Cp(r),m=0;m<s;++m)(r=t[m]).x-=o.x,r.y-=o.y;return o.r}function I3(t){return Bp(t),t}function N0(t){return t==null?null:Lp(t)}function Lp(t){if(typeof t!="function")throw new Error;return t}function Yc(){return 0}function Gl(t){return function(){return t}}function F3(t){return Math.sqrt(t.value)}function R3(){var t=null,e=1,r=1,a=Yc;function o(s){return s.x=e/2,s.y=r/2,t?s.eachBefore(Ip(t)).eachAfter(Ed(a,.5)).eachBefore(Fp(1)):s.eachBefore(Ip(F3)).eachAfter(Ed(Yc,1)).eachAfter(Ed(a,s.r/Math.min(e,r))).eachBefore(Fp(Math.min(e,r)/(2*s.r))),s}return o.radius=function(s){return arguments.length?(t=N0(s),o):t},o.size=function(s){return arguments.length?(e=+s[0],r=+s[1],o):[e,r]},o.padding=function(s){return arguments.length?(a=typeof s=="function"?s:Gl(+s),o):a},o}function Ip(t){return function(e){e.children||(e.r=Math.max(0,+t(e)||0))}}function Ed(t,e){return function(r){if(a=r.children){var a,o,s,h=a.length,f=t(r)*e||0;if(f)for(o=0;o<h;++o)a[o].r+=f;if(s=Bp(a),f)for(o=0;o<h;++o)a[o].r-=f;r.r=s+f}}}function Fp(t){return function(e){var r=e.parent;e.r*=t,r&&(e.x=r.x+t*e.x,e.y=r.y+t*e.y)}}function Rp(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)}function Lh(t,e,r,a,o){for(var s,h=t.children,f=-1,m=h.length,v=t.value&&(a-e)/t.value;++f<m;)(s=h[f]).y0=r,s.y1=o,s.x0=e,s.x1=e+=s.value*v}function P3(){var t=1,e=1,r=0,a=!1;function o(s){var h=s.height+1;return s.x0=s.y0=r,s.x1=t,s.y1=e/h,s.eachBefore(function(f,m){return function(v){v.children&&Lh(v,v.x0,f*(v.depth+1)/m,v.x1,f*(v.depth+2)/m);var C=v.x0,I=v.y0,D=v.x1-r,R=v.y1-r;D<C&&(C=D=(C+D)/2),R<I&&(I=R=(I+R)/2),v.x0=C,v.y0=I,v.x1=D,v.y1=R}}(e,h)),a&&s.eachBefore(Rp),s}return o.round=function(s){return arguments.length?(a=!!s,o):a},o.size=function(s){return arguments.length?(t=+s[0],e=+s[1],o):[t,e]},o.padding=function(s){return arguments.length?(r=+s,o):r},o}md.invert=function(t,e){for(var r,a=e,o=a*a,s=o*o*o,h=0;h<12&&(s=(o=(a-=r=(a*(Mh+Dh*o+s*(Nh+Oh*o))-e)/(Mh+3*Dh*o+s*(7*Nh+9*Oh*o)))*a)*o*o,!(Bn(r)<zl));++h);return[A0*t*(Mh+3*Dh*o+s*(7*Nh+9*Oh*o))/vn(a),O(g(a)/A0)]},bd.invert=Sh(hs),vd.invert=function(t,e){var r,a=e,o=25;do{var s=a*a,h=s*s;a-=r=(a*(1.007226+s*(.015085+h*(.028874*s-.044475-.005916*h)))-e)/(1.007226+s*(.045255+h*(.259866*s-.311325-.06507600000000001*h)))}while(Bn(r)>Xn&&--o>0);return[t/(.8707+(s=a*a)*(s*(s*s*s*(.003971-.001529*s)-.013791)-.131979)),a]},_d.invert=Sh(O),xd.invert=Sh(function(t){return 2*hs(t)}),kd.invert=function(t,e){return[-e,2*hs(i(t))-Pr]},zc.prototype=wd.prototype={constructor:zc,count:function(){return this.eachAfter(M3)},each:function(t,e){let r=-1;for(const a of this)t.call(e,a,++r,this);return this},eachAfter:function(t,e){for(var r,a,o,s=this,h=[s],f=[],m=-1;s=h.pop();)if(f.push(s),r=s.children)for(a=0,o=r.length;a<o;++a)h.push(r[a]);for(;s=f.pop();)t.call(e,s,++m,this);return this},eachBefore:function(t,e){for(var r,a,o=this,s=[o],h=-1;o=s.pop();)if(t.call(e,o,++h,this),r=o.children)for(a=r.length-1;a>=0;--a)s.push(r[a]);return this},find:function(t,e){let r=-1;for(const a of this)if(t.call(e,a,++r,this))return a},sum:function(t){return this.eachAfter(function(e){for(var r=+t(e.data)||0,a=e.children,o=a&&a.length;--o>=0;)r+=a[o].value;e.value=r})},sort:function(t){return this.eachBefore(function(e){e.children&&e.children.sort(t)})},path:function(t){for(var e=this,r=function(s,h){if(s===h)return s;var f=s.ancestors(),m=h.ancestors(),v=null;for(s=f.pop(),h=m.pop();s===h;)v=s,s=f.pop(),h=m.pop();return v}(e,t),a=[e];e!==r;)e=e.parent,a.push(e);for(var o=a.length;t!==r;)a.splice(o,0,t),t=t.parent;return a},ancestors:function(){for(var t=this,e=[t];t=t.parent;)e.push(t);return e},descendants:function(){return Array.from(this)},leaves:function(){var t=[];return this.eachBefore(function(e){e.children||t.push(e)}),t},links:function(){var t=this,e=[];return t.each(function(r){r!==t&&e.push({source:r.parent,target:r})}),e},copy:function(){return wd(this).eachBefore(O3)},[Symbol.iterator]:function*(){var t,e,r,a,o=this,s=[o];do for(t=s.reverse(),s=[];o=t.pop();)if(yield o,e=o.children)for(r=0,a=e.length;r<a;++r)s.push(e[r]);while(s.length)}};var j3={depth:-1},Pp={},Sd={};function z3(t){return t.id}function Y3(t){return t.parentId}function U3(){var t,e=z3,r=Y3;function a(o){var s,h,f,m,v,C,I,D,R=Array.from(o),Z=e,U=r,$=new Map;if(t!=null){const W=R.map((rt,lt)=>function(pt){let Jt=(pt=`${pt}`).length;return Cd(pt,Jt-1)&&!Cd(pt,Jt-2)&&(pt=pt.slice(0,-1)),pt[0]==="/"?pt:`/${pt}`}(t(rt,lt,o))),it=W.map(jp),nt=new Set(W).add("");for(const rt of it)nt.has(rt)||(nt.add(rt),W.push(rt),it.push(jp(rt)),R.push(Sd));Z=(rt,lt)=>W[lt],U=(rt,lt)=>it[lt]}for(f=0,s=R.length;f<s;++f)h=R[f],C=R[f]=new zc(h),(I=Z(h,f,o))!=null&&(I+="")&&(D=C.id=I,$.set(D,$.has(D)?Pp:C)),(I=U(h,f,o))!=null&&(I+="")&&(C.parent=I);for(f=0;f<s;++f)if(I=(C=R[f]).parent){if(!(v=$.get(I)))throw new Error("missing: "+I);if(v===Pp)throw new Error("ambiguous: "+I);v.children?v.children.push(C):v.children=[C],C.parent=v}else{if(m)throw new Error("multiple roots");m=C}if(!m)throw new Error("no root");if(t!=null){for(;m.data===Sd&&m.children.length===1;)m=m.children[0],--s;for(let W=R.length-1;W>=0&&(C=R[W],C.data===Sd);--W)C.data=null}if(m.parent=j3,m.eachBefore(function(W){W.depth=W.parent.depth+1,--s}).eachBefore(Sp),m.parent=null,s>0)throw new Error("cycle");return m}return a.id=function(o){return arguments.length?(e=N0(o),a):e},a.parentId=function(o){return arguments.length?(r=N0(o),a):r},a.path=function(o){return arguments.length?(t=N0(o),a):t},a}function jp(t){let e=t.length;if(e<2)return"";for(;--e>1&&!Cd(t,e););return t.slice(0,e)}function Cd(t,e){if(t[e]==="/"){let r=0;for(;e>0&&t[--e]==="\\";)++r;if((1&r)==0)return!0}return!1}function $3(t,e){return t.parent===e.parent?1:2}function Ad(t){var e=t.children;return e?e[0]:t.t}function Md(t){var e=t.children;return e?e[e.length-1]:t.t}function W3(t,e,r){var a=r/(e.i-t.i);e.c-=a,e.s+=r,t.c+=a,e.z+=r,e.m+=r}function q3(t,e,r){return t.a.parent===e.parent?t.a:r}function O0(t,e){this._=t,this.parent=null,this.children=null,this.A=null,this.a=this,this.z=0,this.m=0,this.c=0,this.s=0,this.t=null,this.i=e}function V3(){var t=$3,e=1,r=1,a=null;function o(m){var v=function(W){for(var it,nt,rt,lt,pt,Jt=new O0(W,0),ye=[Jt];it=ye.pop();)if(rt=it._.children)for(it.children=new Array(pt=rt.length),lt=pt-1;lt>=0;--lt)ye.push(nt=it.children[lt]=new O0(rt[lt],lt)),nt.parent=it;return(Jt.parent=new O0(null,0)).children=[Jt],Jt}(m);if(v.eachAfter(s),v.parent.m=-v.z,v.eachBefore(h),a)m.eachBefore(f);else{var C=m,I=m,D=m;m.eachBefore(function(W){W.x<C.x&&(C=W),W.x>I.x&&(I=W),W.depth>D.depth&&(D=W)});var R=C===I?1:t(C,I)/2,Z=R-C.x,U=e/(I.x+R+Z),$=r/(D.depth||1);m.eachBefore(function(W){W.x=(W.x+Z)*U,W.y=W.depth*$})}return m}function s(m){var v=m.children,C=m.parent.children,I=m.i?C[m.i-1]:null;if(v){(function(R){for(var Z,U=0,$=0,W=R.children,it=W.length;--it>=0;)(Z=W[it]).z+=U,Z.m+=U,U+=Z.s+($+=Z.c)})(m);var D=(v[0].z+v[v.length-1].z)/2;I?(m.z=I.z+t(m._,I._),m.m=m.z-D):m.z=D}else I&&(m.z=I.z+t(m._,I._));m.parent.A=function(R,Z,U){if(Z){for(var $,W=R,it=R,nt=Z,rt=W.parent.children[0],lt=W.m,pt=it.m,Jt=nt.m,ye=rt.m;nt=Md(nt),W=Ad(W),nt&&W;)rt=Ad(rt),(it=Md(it)).a=R,($=nt.z+Jt-W.z-lt+t(nt._,W._))>0&&(W3(q3(nt,R,U),R,$),lt+=$,pt+=$),Jt+=nt.m,lt+=W.m,ye+=rt.m,pt+=it.m;nt&&!Md(it)&&(it.t=nt,it.m+=Jt-pt),W&&!Ad(rt)&&(rt.t=W,rt.m+=lt-ye,U=R)}return U}(m,I,m.parent.A||C[0])}function h(m){m._.x=m.z+m.parent.m,m.m+=m.parent.m}function f(m){m.x*=e,m.y=m.depth*r}return o.separation=function(m){return arguments.length?(t=m,o):t},o.size=function(m){return arguments.length?(a=!1,e=+m[0],r=+m[1],o):a?null:[e,r]},o.nodeSize=function(m){return arguments.length?(a=!0,e=+m[0],r=+m[1],o):a?[e,r]:null},o}function B0(t,e,r,a,o){for(var s,h=t.children,f=-1,m=h.length,v=t.value&&(o-r)/t.value;++f<m;)(s=h[f]).x0=e,s.x1=a,s.y0=r,s.y1=r+=s.value*v}O0.prototype=Object.create(zc.prototype);var zp=(1+Math.sqrt(5))/2;function Yp(t,e,r,a,o,s){for(var h,f,m,v,C,I,D,R,Z,U,$,W=[],it=e.children,nt=0,rt=0,lt=it.length,pt=e.value;nt<lt;){m=o-r,v=s-a;do C=it[rt++].value;while(!C&&rt<lt);for(I=D=C,$=C*C*(U=Math.max(v/m,m/v)/(pt*t)),Z=Math.max(D/$,$/I);rt<lt;++rt){if(C+=f=it[rt].value,f<I&&(I=f),f>D&&(D=f),$=C*C*U,(R=Math.max(D/$,$/I))>Z){C-=f;break}Z=R}W.push(h={value:C,dice:m<v,children:it.slice(nt,rt)}),h.dice?Lh(h,r,a,o,pt?a+=v*C/pt:s):B0(h,r,a,pt?r+=m*C/pt:o,s),pt-=C,nt=rt}return W}const Up=function t(e){function r(a,o,s,h,f){Yp(e,a,o,s,h,f)}return r.ratio=function(a){return t((a=+a)>1?a:1)},r}(zp);function H3(){var t=Up,e=!1,r=1,a=1,o=[0],s=Yc,h=Yc,f=Yc,m=Yc,v=Yc;function C(D){return D.x0=D.y0=0,D.x1=r,D.y1=a,D.eachBefore(I),o=[0],e&&D.eachBefore(Rp),D}function I(D){var R=o[D.depth],Z=D.x0+R,U=D.y0+R,$=D.x1-R,W=D.y1-R;$<Z&&(Z=$=(Z+$)/2),W<U&&(U=W=(U+W)/2),D.x0=Z,D.y0=U,D.x1=$,D.y1=W,D.children&&(R=o[D.depth+1]=s(D)/2,Z+=v(D)-R,U+=h(D)-R,($-=f(D)-R)<Z&&(Z=$=(Z+$)/2),(W-=m(D)-R)<U&&(U=W=(U+W)/2),t(D,Z,U,$,W))}return C.round=function(D){return arguments.length?(e=!!D,C):e},C.size=function(D){return arguments.length?(r=+D[0],a=+D[1],C):[r,a]},C.tile=function(D){return arguments.length?(t=Lp(D),C):t},C.padding=function(D){return arguments.length?C.paddingInner(D).paddingOuter(D):C.paddingInner()},C.paddingInner=function(D){return arguments.length?(s=typeof D=="function"?D:Gl(+D),C):s},C.paddingOuter=function(D){return arguments.length?C.paddingTop(D).paddingRight(D).paddingBottom(D).paddingLeft(D):C.paddingTop()},C.paddingTop=function(D){return arguments.length?(h=typeof D=="function"?D:Gl(+D),C):h},C.paddingRight=function(D){return arguments.length?(f=typeof D=="function"?D:Gl(+D),C):f},C.paddingBottom=function(D){return arguments.length?(m=typeof D=="function"?D:Gl(+D),C):m},C.paddingLeft=function(D){return arguments.length?(v=typeof D=="function"?D:Gl(+D),C):v},C}function G3(t,e,r,a,o){var s,h,f=t.children,m=f.length,v=new Array(m+1);for(v[0]=h=s=0;s<m;++s)v[s+1]=h+=f[s].value;(function C(I,D,R,Z,U,$,W){if(I>=D-1){var it=f[I];return it.x0=Z,it.y0=U,it.x1=$,void(it.y1=W)}for(var nt=v[I],rt=R/2+nt,lt=I+1,pt=D-1;lt<pt;){var Jt=lt+pt>>>1;v[Jt]<rt?lt=Jt+1:pt=Jt}rt-v[lt-1]<v[lt]-rt&&I+1<lt&&--lt;var ye=v[lt]-nt,Ut=R-ye;if($-Z>W-U){var Pt=R?(Z*Ut+$*ye)/R:$;C(I,lt,ye,Z,U,Pt,W),C(lt,D,Ut,Pt,U,$,W)}else{var jt=R?(U*Ut+W*ye)/R:W;C(I,lt,ye,Z,U,$,jt),C(lt,D,Ut,Z,jt,$,W)}})(0,m,t.value,e,r,a,o)}function X3(t,e,r,a,o){(1&t.depth?B0:Lh)(t,e,r,a,o)}const Z3=function t(e){function r(a,o,s,h,f){if((m=a._squarify)&&m.ratio===e)for(var m,v,C,I,D,R=-1,Z=m.length,U=a.value;++R<Z;){for(C=(v=m[R]).children,I=v.value=0,D=C.length;I<D;++I)v.value+=C[I].value;v.dice?Lh(v,o,s,h,U?s+=(f-s)*v.value/U:f):B0(v,o,s,U?o+=(h-o)*v.value/U:h,f),U-=v.value}else a._squarify=m=Yp(e,a,o,s,h,f),m.ratio=e}return r.ratio=function(a){return t((a=+a)>1?a:1)},r}(zp);function Q3(t){var e=t.length;return function(r){return t[Math.max(0,Math.min(e-1,Math.floor(r*e)))]}}function K3(t,e){var r=Kc(+t,+e);return function(a){var o=r(a);return o-360*Math.floor(o/360)}}function L0(t,e){return t=+t,e=+e,function(r){return Math.round(t*(1-r)+e*r)}}function $p(t){return((t=Math.exp(t))+1/t)/2}const Wp=function t(e,r,a){function o(s,h){var f,m,v=s[0],C=s[1],I=s[2],D=h[0],R=h[1],Z=h[2],U=D-v,$=R-C,W=U*U+$*$;if(W<1e-12)m=Math.log(Z/I)/e,f=function(Jt){return[v+Jt*U,C+Jt*$,I*Math.exp(e*Jt*m)]};else{var it=Math.sqrt(W),nt=(Z*Z-I*I+a*W)/(2*I*r*it),rt=(Z*Z-I*I-a*W)/(2*Z*r*it),lt=Math.log(Math.sqrt(nt*nt+1)-nt),pt=Math.log(Math.sqrt(rt*rt+1)-rt);m=(pt-lt)/e,f=function(Jt){var ye,Ut=Jt*m,Pt=$p(lt),jt=I/(r*it)*(Pt*(ye=e*Ut+lt,((ye=Math.exp(2*ye))-1)/(ye+1))-function(zt){return((zt=Math.exp(zt))-1/zt)/2}(lt));return[v+jt*U,C+jt*$,I*Pt/$p(e*Ut+lt)]}}return f.duration=1e3*m*e/Math.SQRT2,f}return o.rho=function(s){var h=Math.max(.001,+s),f=h*h;return t(h,f,f*f)},o}(Math.SQRT2,2,4);function qp(t){return function(e,r){var a=t((e=fc(e)).h,(r=fc(r)).h),o=Ai(e.s,r.s),s=Ai(e.l,r.l),h=Ai(e.opacity,r.opacity);return function(f){return e.h=a(f),e.s=o(f),e.l=s(f),e.opacity=h(f),e+""}}}const J3=qp(Kc);var t4=qp(Ai);function e4(t,e){var r=Ai((t=bl(t)).l,(e=bl(e)).l),a=Ai(t.a,e.a),o=Ai(t.b,e.b),s=Ai(t.opacity,e.opacity);return function(h){return t.l=r(h),t.a=a(h),t.b=o(h),t.opacity=s(h),t+""}}function Vp(t){return function(e,r){var a=t((e=Ya(e)).h,(r=Ya(r)).h),o=Ai(e.c,r.c),s=Ai(e.l,r.l),h=Ai(e.opacity,r.opacity);return function(f){return e.h=a(f),e.c=o(f),e.l=s(f),e.opacity=h(f),e+""}}}const n4=Vp(Kc);var r4=Vp(Ai);function Hp(t){return function e(r){function a(o,s){var h=t((o=Ua(o)).h,(s=Ua(s)).h),f=Ai(o.s,s.s),m=Ai(o.l,s.l),v=Ai(o.opacity,s.opacity);return function(C){return o.h=h(C),o.s=f(C),o.l=m(Math.pow(C,r)),o.opacity=v(C),o+""}}return r=+r,a.gamma=e,a}(1)}const i4=Hp(Kc);var I0=Hp(Ai);function Gp(t,e){e===void 0&&(e=t,t=Kn);for(var r=0,a=e.length-1,o=e[0],s=new Array(a<0?0:a);r<a;)s[r]=t(o,o=e[++r]);return function(h){var f=Math.max(0,Math.min(a-1,Math.floor(h*=a)));return s[f](h-f)}}function a4(t,e){for(var r=new Array(e),a=0;a<e;++a)r[a]=t(a/(e-1));return r}function o4(t){for(var e,r=-1,a=t.length,o=t[a-1],s=0;++r<a;)e=o,o=t[r],s+=e[1]*o[0]-e[0]*o[1];return s/2}function s4(t){for(var e,r,a=-1,o=t.length,s=0,h=0,f=t[o-1],m=0;++a<o;)e=f,f=t[a],m+=r=e[0]*f[1]-f[0]*e[1],s+=(e[0]+f[0])*r,h+=(e[1]+f[1])*r;return[s/(m*=3),h/m]}function c4(t,e,r){return(e[0]-t[0])*(r[1]-t[1])-(e[1]-t[1])*(r[0]-t[0])}function l4(t,e){return t[0]-e[0]||t[1]-e[1]}function Xp(t){const e=t.length,r=[0,1];let a,o=2;for(a=2;a<e;++a){for(;o>1&&c4(t[r[o-2]],t[r[o-1]],t[a])<=0;)--o;r[o++]=a}return r.slice(0,o)}function u4(t){if((r=t.length)<3)return null;var e,r,a=new Array(r),o=new Array(r);for(e=0;e<r;++e)a[e]=[+t[e][0],+t[e][1],e];for(a.sort(l4),e=0;e<r;++e)o[e]=[a[e][0],-a[e][1]];var s=Xp(a),h=Xp(o),f=h[0]===s[0],m=h[h.length-1]===s[s.length-1],v=[];for(e=s.length-1;e>=0;--e)v.push(t[a[s[e]][2]]);for(e=+f;e<h.length-m;++e)v.push(t[a[h[e]][2]]);return v}function h4(t,e){for(var r,a,o=t.length,s=t[o-1],h=e[0],f=e[1],m=s[0],v=s[1],C=!1,I=0;I<o;++I)r=(s=t[I])[0],(a=s[1])>f!=v>f&&h<(m-r)*(f-a)/(v-a)+r&&(C=!C),m=r,v=a;return C}function f4(t){for(var e,r,a=-1,o=t.length,s=t[o-1],h=s[0],f=s[1],m=0;++a<o;)e=h,r=f,e-=h=(s=t[a])[0],r-=f=s[1],m+=Math.hypot(e,r);return m}const ta=Math.random,d4=function t(e){function r(a,o){return a=a==null?0:+a,o=o==null?1:+o,arguments.length===1?(o=a,a=0):o-=a,function(){return e()*o+a}}return r.source=t,r}(ta),p4=function t(e){function r(a,o){return arguments.length<2&&(o=a,a=0),a=Math.floor(a),o=Math.floor(o)-a,function(){return Math.floor(e()*o+a)}}return r.source=t,r}(ta),Dd=function t(e){function r(a,o){var s,h;return a=a==null?0:+a,o=o==null?1:+o,function(){var f;if(s!=null)f=s,s=null;else do s=2*e()-1,f=2*e()-1,h=s*s+f*f;while(!h||h>1);return a+o*f*Math.sqrt(-2*Math.log(h)/h)}}return r.source=t,r}(ta),g4=function t(e){var r=Dd.source(e);function a(){var o=r.apply(this,arguments);return function(){return Math.exp(o())}}return a.source=t,a}(ta),Zp=function t(e){function r(a){return(a=+a)<=0?()=>0:function(){for(var o=0,s=a;s>1;--s)o+=e();return o+s*e()}}return r.source=t,r}(ta),y4=function t(e){var r=Zp.source(e);function a(o){if((o=+o)==0)return e;var s=r(o);return function(){return s()/o}}return a.source=t,a}(ta),m4=function t(e){function r(a){return function(){return-Math.log1p(-e())/a}}return r.source=t,r}(ta),b4=function t(e){function r(a){if((a=+a)<0)throw new RangeError("invalid alpha");return a=1/-a,function(){return Math.pow(1-e(),a)}}return r.source=t,r}(ta),v4=function t(e){function r(a){if((a=+a)<0||a>1)throw new RangeError("invalid p");return function(){return Math.floor(e()+a)}}return r.source=t,r}(ta),Qp=function t(e){function r(a){if((a=+a)<0||a>1)throw new RangeError("invalid p");return a===0?()=>1/0:a===1?()=>1:(a=Math.log1p(-a),function(){return 1+Math.floor(Math.log1p(-e())/a)})}return r.source=t,r}(ta),Nd=function t(e){var r=Dd.source(e)();function a(o,s){if((o=+o)<0)throw new RangeError("invalid k");if(o===0)return()=>0;if(s=s==null?1:+s,o===1)return()=>-Math.log1p(-e())*s;var h=(o<1?o+1:o)-1/3,f=1/(3*Math.sqrt(h)),m=o<1?()=>Math.pow(e(),1/o):()=>1;return function(){do{do var v=r(),C=1+f*v;while(C<=0);C*=C*C;var I=1-e()}while(I>=1-.0331*v*v*v*v&&Math.log(I)>=.5*v*v+h*(1-C+Math.log(C)));return h*C*m()*s}}return a.source=t,a}(ta),Kp=function t(e){var r=Nd.source(e);function a(o,s){var h=r(o),f=r(s);return function(){var m=h();return m===0?0:m/(m+f())}}return a.source=t,a}(ta),Jp=function t(e){var r=Qp.source(e),a=Kp.source(e);function o(s,h){return s=+s,(h=+h)>=1?()=>s:h<=0?()=>0:function(){for(var f=0,m=s,v=h;m*v>16&&m*(1-v)>16;){var C=Math.floor((m+1)*v),I=a(C,m-C+1)();I<=v?(f+=C,m-=C,v=(v-I)/(1-I)):(m=C-1,v/=I)}for(var D=v<.5,R=r(D?v:1-v),Z=R(),U=0;Z<=m;++U)Z+=R();return f+(D?U:m-U)}}return o.source=t,o}(ta),_4=function t(e){function r(a,o,s){var h;return(a=+a)==0?h=f=>-Math.log(f):(a=1/a,h=f=>Math.pow(f,a)),o=o==null?0:+o,s=s==null?1:+s,function(){return o+s*h(-Math.log1p(-e()))}}return r.source=t,r}(ta),x4=function t(e){function r(a,o){return a=a==null?0:+a,o=o==null?1:+o,function(){return a+o*Math.tan(Math.PI*e())}}return r.source=t,r}(ta),k4=function t(e){function r(a,o){return a=a==null?0:+a,o=o==null?1:+o,function(){var s=e();return a+o*Math.log(s/(1-s))}}return r.source=t,r}(ta),w4=function t(e){var r=Nd.source(e),a=Jp.source(e);function o(s){return function(){for(var h=0,f=s;f>16;){var m=Math.floor(.875*f),v=r(m)();if(v>f)return h+a(m-1,f/v)();h+=m,f-=v}for(var C=-Math.log1p(-e()),I=0;C<=f;++I)C-=Math.log1p(-e());return h+I}}return o.source=t,o}(ta),tg=1/4294967296;function T4(t=Math.random()){let e=0|(0<=t&&t<1?t/tg:Math.abs(t));return()=>(e=1664525*e+1013904223|0,tg*(e>>>0))}function co(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t)}return this}function gs(t,e){switch(arguments.length){case 0:break;case 1:typeof t=="function"?this.interpolator(t):this.range(t);break;default:this.domain(t),typeof e=="function"?this.interpolator(e):this.range(e)}return this}const Od=Symbol("implicit");function Bd(){var t=new xt,e=[],r=[],a=Od;function o(s){let h=t.get(s);if(h===void 0){if(a!==Od)return a;t.set(s,h=e.push(s)-1)}return r[h%r.length]}return o.domain=function(s){if(!arguments.length)return e.slice();e=[],t=new xt;for(const h of s)t.has(h)||t.set(h,e.push(h)-1);return o},o.range=function(s){return arguments.length?(r=Array.from(s),o):r.slice()},o.unknown=function(s){return arguments.length?(a=s,o):a},o.copy=function(){return Bd(e,r).unknown(a)},co.apply(o,arguments),o}function Ld(){var t,e,r=Bd().unknown(void 0),a=r.domain,o=r.range,s=0,h=1,f=!1,m=0,v=0,C=.5;function I(){var D=a().length,R=h<s,Z=R?h:s,U=R?s:h;t=(U-Z)/Math.max(1,D-m+2*v),f&&(t=Math.floor(t)),Z+=(U-Z-t*(D-m))*C,e=t*(1-m),f&&(Z=Math.round(Z),e=Math.round(e));var $=Me(D).map(function(W){return Z+t*W});return o(R?$.reverse():$)}return delete r.unknown,r.domain=function(D){return arguments.length?(a(D),I()):a()},r.range=function(D){return arguments.length?([s,h]=D,s=+s,h=+h,I()):[s,h]},r.rangeRound=function(D){return[s,h]=D,s=+s,h=+h,f=!0,I()},r.bandwidth=function(){return e},r.step=function(){return t},r.round=function(D){return arguments.length?(f=!!D,I()):f},r.padding=function(D){return arguments.length?(m=Math.min(1,v=+D),I()):m},r.paddingInner=function(D){return arguments.length?(m=Math.min(1,D),I()):m},r.paddingOuter=function(D){return arguments.length?(v=+D,I()):v},r.align=function(D){return arguments.length?(C=Math.max(0,Math.min(1,D)),I()):C},r.copy=function(){return Ld(a(),[s,h]).round(f).paddingInner(m).paddingOuter(v).align(C)},co.apply(I(),arguments)}function eg(t){var e=t.copy;return t.padding=t.paddingOuter,delete t.paddingInner,delete t.paddingOuter,t.copy=function(){return eg(e())},t}function E4(){return eg(Ld.apply(null,arguments).paddingInner(1))}function F0(t){return+t}var ng=[0,1];function _a(t){return t}function Id(t,e){return(e-=t=+t)?function(a){return(a-t)/e}:(r=isNaN(e)?NaN:.5,function(){return r});var r}function S4(t,e,r){var a=t[0],o=t[1],s=e[0],h=e[1];return o<a?(a=Id(o,a),s=r(h,s)):(a=Id(a,o),s=r(s,h)),function(f){return s(a(f))}}function C4(t,e,r){var a=Math.min(t.length,e.length)-1,o=new Array(a),s=new Array(a),h=-1;for(t[a]<t[0]&&(t=t.slice().reverse(),e=e.slice().reverse());++h<a;)o[h]=Id(t[h],t[h+1]),s[h]=r(e[h],e[h+1]);return function(f){var m=F(t,f,1,a)-1;return s[m](o[m](f))}}function Ih(t,e){return e.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function R0(){var t,e,r,a,o,s,h=ng,f=ng,m=Kn,v=_a;function C(){var D,R,Z,U=Math.min(h.length,f.length);return v!==_a&&(D=h[0],R=h[U-1],D>R&&(Z=D,D=R,R=Z),v=function($){return Math.max(D,Math.min(R,$))}),a=U>2?C4:S4,o=s=null,I}function I(D){return D==null||isNaN(D=+D)?r:(o||(o=a(h.map(t),f,m)))(t(v(D)))}return I.invert=function(D){return v(e((s||(s=a(f,h.map(t),oa)))(D)))},I.domain=function(D){return arguments.length?(h=Array.from(D,F0),C()):h.slice()},I.range=function(D){return arguments.length?(f=Array.from(D),C()):f.slice()},I.rangeRound=function(D){return f=Array.from(D),m=L0,C()},I.clamp=function(D){return arguments.length?(v=!!D||_a,C()):v!==_a},I.interpolate=function(D){return arguments.length?(m=D,C()):m},I.unknown=function(D){return arguments.length?(r=D,I):r},function(D,R){return t=D,e=R,C()}}function Fd(){return R0()(_a,_a)}function rg(t,e,r,a){var o,s=Mt(t,e,r);switch((a=so(a==null?",f":a)).type){case"s":var h=Math.max(Math.abs(t),Math.abs(e));return a.precision!=null||isNaN(o=jl(s,h))||(a.precision=o),dh(a,h);case"":case"e":case"g":case"p":case"r":a.precision!=null||isNaN(o=ph(s,Math.max(Math.abs(t),Math.abs(e))))||(a.precision=o-(a.type==="e"));break;case"f":case"%":a.precision!=null||isNaN(o=Pl(s))||(a.precision=o-2*(a.type==="%"))}return Fl(a)}function Hs(t){var e=t.domain;return t.ticks=function(r){var a=e();return dt(a[0],a[a.length-1],r==null?10:r)},t.tickFormat=function(r,a){var o=e();return rg(o[0],o[o.length-1],r==null?10:r,a)},t.nice=function(r){r==null&&(r=10);var a,o,s=e(),h=0,f=s.length-1,m=s[h],v=s[f],C=10;for(v<m&&(o=m,m=v,v=o,o=h,h=f,f=o);C-- >0;){if((o=ft(m,v,r))===a)return s[h]=m,s[f]=v,e(s);if(o>0)m=Math.floor(m/o)*o,v=Math.ceil(v/o)*o;else{if(!(o<0))break;m=Math.ceil(m*o)/o,v=Math.floor(v*o)/o}a=o}return t},t}function ig(){var t=Fd();return t.copy=function(){return Ih(t,ig())},co.apply(t,arguments),Hs(t)}function ag(t){var e;function r(a){return a==null||isNaN(a=+a)?e:a}return r.invert=r,r.domain=r.range=function(a){return arguments.length?(t=Array.from(a,F0),r):t.slice()},r.unknown=function(a){return arguments.length?(e=a,r):e},r.copy=function(){return ag(t).unknown(e)},t=arguments.length?Array.from(t,F0):[0,1],Hs(r)}function og(t,e){var r,a=0,o=(t=t.slice()).length-1,s=t[a],h=t[o];return h<s&&(r=a,a=o,o=r,r=s,s=h,h=r),t[a]=e.floor(s),t[o]=e.ceil(h),t}function sg(t){return Math.log(t)}function cg(t){return Math.exp(t)}function A4(t){return-Math.log(-t)}function M4(t){return-Math.exp(-t)}function D4(t){return isFinite(t)?+("1e"+t):t<0?0:t}function lg(t){return(e,r)=>-t(-e,r)}function Rd(t){const e=t(sg,cg),r=e.domain;let a,o,s=10;function h(){return a=function(f){return f===Math.E?Math.log:f===10&&Math.log10||f===2&&Math.log2||(f=Math.log(f),m=>Math.log(m)/f)}(s),o=function(f){return f===10?D4:f===Math.E?Math.exp:m=>Math.pow(f,m)}(s),r()[0]<0?(a=lg(a),o=lg(o),t(A4,M4)):t(sg,cg),e}return e.base=function(f){return arguments.length?(s=+f,h()):s},e.domain=function(f){return arguments.length?(r(f),h()):r()},e.ticks=f=>{const m=r();let v=m[0],C=m[m.length-1];const I=C<v;I&&([v,C]=[C,v]);let D,R,Z=a(v),U=a(C);const $=f==null?10:+f;let W=[];if(!(s%1)&&U-Z<$){if(Z=Math.floor(Z),U=Math.ceil(U),v>0){for(;Z<=U;++Z)for(D=1;D<s;++D)if(R=Z<0?D/o(-Z):D*o(Z),!(R<v)){if(R>C)break;W.push(R)}}else for(;Z<=U;++Z)for(D=s-1;D>=1;--D)if(R=Z>0?D/o(-Z):D*o(Z),!(R<v)){if(R>C)break;W.push(R)}2*W.length<$&&(W=dt(v,C,$))}else W=dt(Z,U,Math.min(U-Z,$)).map(o);return I?W.reverse():W},e.tickFormat=(f,m)=>{if(f==null&&(f=10),m==null&&(m=s===10?"s":","),typeof m!="function"&&(s%1||(m=so(m)).precision!=null||(m.trim=!0),m=Fl(m)),f===1/0)return m;const v=Math.max(1,s*f/e.ticks().length);return C=>{let I=C/o(Math.round(a(C)));return I*s<s-.5&&(I*=s),I<=v?m(C):""}},e.nice=()=>r(og(r(),{floor:f=>o(Math.floor(a(f))),ceil:f=>o(Math.ceil(a(f)))})),e}function ug(){const t=Rd(R0()).domain([1,10]);return t.copy=()=>Ih(t,ug()).base(t.base()),co.apply(t,arguments),t}function hg(t){return function(e){return Math.sign(e)*Math.log1p(Math.abs(e/t))}}function fg(t){return function(e){return Math.sign(e)*Math.expm1(Math.abs(e))*t}}function Pd(t){var e=1,r=t(hg(e),fg(e));return r.constant=function(a){return arguments.length?t(hg(e=+a),fg(e)):e},Hs(r)}function dg(){var t=Pd(R0());return t.copy=function(){return Ih(t,dg()).constant(t.constant())},co.apply(t,arguments)}function pg(t){return function(e){return e<0?-Math.pow(-e,t):Math.pow(e,t)}}function N4(t){return t<0?-Math.sqrt(-t):Math.sqrt(t)}function O4(t){return t<0?-t*t:t*t}function jd(t){var e=t(_a,_a),r=1;function a(){return r===1?t(_a,_a):r===.5?t(N4,O4):t(pg(r),pg(1/r))}return e.exponent=function(o){return arguments.length?(r=+o,a()):r},Hs(e)}function zd(){var t=jd(R0());return t.copy=function(){return Ih(t,zd()).exponent(t.exponent())},co.apply(t,arguments),t}function B4(){return zd.apply(null,arguments).exponent(.5)}function gg(t){return Math.sign(t)*t*t}function L4(t){return Math.sign(t)*Math.sqrt(Math.abs(t))}function yg(){var t,e=Fd(),r=[0,1],a=!1;function o(s){var h=L4(e(s));return isNaN(h)?t:a?Math.round(h):h}return o.invert=function(s){return e.invert(gg(s))},o.domain=function(s){return arguments.length?(e.domain(s),o):e.domain()},o.range=function(s){return arguments.length?(e.range((r=Array.from(s,F0)).map(gg)),o):r.slice()},o.rangeRound=function(s){return o.range(s).round(!0)},o.round=function(s){return arguments.length?(a=!!s,o):a},o.clamp=function(s){return arguments.length?(e.clamp(s),o):e.clamp()},o.unknown=function(s){return arguments.length?(t=s,o):t},o.copy=function(){return yg(e.domain(),r).round(a).clamp(e.clamp()).unknown(t)},co.apply(o,arguments),Hs(o)}function mg(){var t,e=[],r=[],a=[];function o(){var h=0,f=Math.max(1,r.length);for(a=new Array(f-1);++h<f;)a[h-1]=Be(e,h/f);return s}function s(h){return h==null||isNaN(h=+h)?t:r[F(a,h)]}return s.invertExtent=function(h){var f=r.indexOf(h);return f<0?[NaN,NaN]:[f>0?a[f-1]:e[0],f<a.length?a[f]:e[e.length-1]]},s.domain=function(h){if(!arguments.length)return e.slice();e=[];for(let f of h)f==null||isNaN(f=+f)||e.push(f);return e.sort(b),o()},s.range=function(h){return arguments.length?(r=Array.from(h),o()):r.slice()},s.unknown=function(h){return arguments.length?(t=h,s):t},s.quantiles=function(){return a.slice()},s.copy=function(){return mg().domain(e).range(r).unknown(t)},co.apply(s,arguments)}function bg(){var t,e=0,r=1,a=1,o=[.5],s=[0,1];function h(m){return m!=null&&m<=m?s[F(o,m,0,a)]:t}function f(){var m=-1;for(o=new Array(a);++m<a;)o[m]=((m+1)*r-(m-a)*e)/(a+1);return h}return h.domain=function(m){return arguments.length?([e,r]=m,e=+e,r=+r,f()):[e,r]},h.range=function(m){return arguments.length?(a=(s=Array.from(m)).length-1,f()):s.slice()},h.invertExtent=function(m){var v=s.indexOf(m);return v<0?[NaN,NaN]:v<1?[e,o[0]]:v>=a?[o[a-1],r]:[o[v-1],o[v]]},h.unknown=function(m){return arguments.length&&(t=m),h},h.thresholds=function(){return o.slice()},h.copy=function(){return bg().domain([e,r]).range(s).unknown(t)},co.apply(Hs(h),arguments)}function vg(){var t,e=[.5],r=[0,1],a=1;function o(s){return s!=null&&s<=s?r[F(e,s,0,a)]:t}return o.domain=function(s){return arguments.length?(e=Array.from(s),a=Math.min(e.length,r.length-1),o):e.slice()},o.range=function(s){return arguments.length?(r=Array.from(s),a=Math.min(e.length,r.length-1),o):r.slice()},o.invertExtent=function(s){var h=r.indexOf(s);return[e[h-1],e[h]]},o.unknown=function(s){return arguments.length?(t=s,o):t},o.copy=function(){return vg().domain(e).range(r).unknown(t)},co.apply(o,arguments)}const Fh=1e3,Gs=6e4,Rh=36e5,Yd=864e5,Ud=6048e5,$d=31536e6;var Wd=new Date,qd=new Date;function Ri(t,e,r,a){function o(s){return t(s=arguments.length===0?new Date:new Date(+s)),s}return o.floor=function(s){return t(s=new Date(+s)),s},o.ceil=function(s){return t(s=new Date(s-1)),e(s,1),t(s),s},o.round=function(s){var h=o(s),f=o.ceil(s);return s-h<f-s?h:f},o.offset=function(s,h){return e(s=new Date(+s),h==null?1:Math.floor(h)),s},o.range=function(s,h,f){var m,v=[];if(s=o.ceil(s),f=f==null?1:Math.floor(f),!(s<h&&f>0))return v;do v.push(m=new Date(+s)),e(s,f),t(s);while(m<s&&s<h);return v},o.filter=function(s){return Ri(function(h){if(h>=h)for(;t(h),!s(h);)h.setTime(h-1)},function(h,f){if(h>=h)if(f<0)for(;++f<=0;)for(;e(h,-1),!s(h););else for(;--f>=0;)for(;e(h,1),!s(h););})},r&&(o.count=function(s,h){return Wd.setTime(+s),qd.setTime(+h),t(Wd),t(qd),Math.floor(r(Wd,qd))},o.every=function(s){return s=Math.floor(s),isFinite(s)&&s>0?s>1?o.filter(a?function(h){return a(h)%s==0}:function(h){return o.count(0,h)%s==0}):o:null}),o}var P0=Ri(function(){},function(t,e){t.setTime(+t+e)},function(t,e){return e-t});P0.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?Ri(function(e){e.setTime(Math.floor(e/t)*t)},function(e,r){e.setTime(+e+r*t)},function(e,r){return(r-e)/t}):P0:null};const Vd=P0;var _g=P0.range,xg=Ri(function(t){t.setTime(t-t.getMilliseconds())},function(t,e){t.setTime(+t+e*Fh)},function(t,e){return(e-t)/Fh},function(t){return t.getUTCSeconds()});const Xs=xg;var kg=xg.range,wg=Ri(function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*Fh)},function(t,e){t.setTime(+t+e*Gs)},function(t,e){return(e-t)/Gs},function(t){return t.getMinutes()});const Hd=wg;var I4=wg.range,Tg=Ri(function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*Fh-t.getMinutes()*Gs)},function(t,e){t.setTime(+t+e*Rh)},function(t,e){return(e-t)/Rh},function(t){return t.getHours()});const Gd=Tg;var F4=Tg.range,Eg=Ri(t=>t.setHours(0,0,0,0),(t,e)=>t.setDate(t.getDate()+e),(t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*Gs)/Yd,t=>t.getDate()-1);const Ph=Eg;var R4=Eg.range;function Uc(t){return Ri(function(e){e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)},function(e,r){e.setDate(e.getDate()+7*r)},function(e,r){return(r-e-(r.getTimezoneOffset()-e.getTimezoneOffset())*Gs)/Ud})}var Xl=Uc(0),jh=Uc(1),Sg=Uc(2),Cg=Uc(3),$c=Uc(4),Ag=Uc(5),Mg=Uc(6),Dg=Xl.range,P4=jh.range,j4=Sg.range,z4=Cg.range,Y4=$c.range,U4=Ag.range,$4=Mg.range,Ng=Ri(function(t){t.setDate(1),t.setHours(0,0,0,0)},function(t,e){t.setMonth(t.getMonth()+e)},function(t,e){return e.getMonth()-t.getMonth()+12*(e.getFullYear()-t.getFullYear())},function(t){return t.getMonth()});const Xd=Ng;var W4=Ng.range,Zd=Ri(function(t){t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,e){t.setFullYear(t.getFullYear()+e)},function(t,e){return e.getFullYear()-t.getFullYear()},function(t){return t.getFullYear()});Zd.every=function(t){return isFinite(t=Math.floor(t))&&t>0?Ri(function(e){e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)},function(e,r){e.setFullYear(e.getFullYear()+r*t)}):null};const Zs=Zd;var q4=Zd.range,Og=Ri(function(t){t.setUTCSeconds(0,0)},function(t,e){t.setTime(+t+e*Gs)},function(t,e){return(e-t)/Gs},function(t){return t.getUTCMinutes()});const Qd=Og;var V4=Og.range,Bg=Ri(function(t){t.setUTCMinutes(0,0,0)},function(t,e){t.setTime(+t+e*Rh)},function(t,e){return(e-t)/Rh},function(t){return t.getUTCHours()});const Kd=Bg;var H4=Bg.range,Lg=Ri(function(t){t.setUTCHours(0,0,0,0)},function(t,e){t.setUTCDate(t.getUTCDate()+e)},function(t,e){return(e-t)/Yd},function(t){return t.getUTCDate()-1});const zh=Lg;var G4=Lg.range;function Wc(t){return Ri(function(e){e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)},function(e,r){e.setUTCDate(e.getUTCDate()+7*r)},function(e,r){return(r-e)/Ud})}var Zl=Wc(0),Yh=Wc(1),Ig=Wc(2),Fg=Wc(3),qc=Wc(4),Rg=Wc(5),Pg=Wc(6),jg=Zl.range,X4=Yh.range,Z4=Ig.range,Q4=Fg.range,K4=qc.range,J4=Rg.range,t5=Pg.range,zg=Ri(function(t){t.setUTCDate(1),t.setUTCHours(0,0,0,0)},function(t,e){t.setUTCMonth(t.getUTCMonth()+e)},function(t,e){return e.getUTCMonth()-t.getUTCMonth()+12*(e.getUTCFullYear()-t.getUTCFullYear())},function(t){return t.getUTCMonth()});const Jd=zg;var e5=zg.range,t2=Ri(function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,e){t.setUTCFullYear(t.getUTCFullYear()+e)},function(t,e){return e.getUTCFullYear()-t.getUTCFullYear()},function(t){return t.getUTCFullYear()});t2.every=function(t){return isFinite(t=Math.floor(t))&&t>0?Ri(function(e){e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},function(e,r){e.setUTCFullYear(e.getUTCFullYear()+r*t)}):null};const Qs=t2;var n5=t2.range;function Yg(t,e,r,a,o,s){const h=[[Xs,1,Fh],[Xs,5,5e3],[Xs,15,15e3],[Xs,30,3e4],[s,1,Gs],[s,5,3e5],[s,15,9e5],[s,30,18e5],[o,1,Rh],[o,3,108e5],[o,6,216e5],[o,12,432e5],[a,1,Yd],[a,2,1728e5],[r,1,Ud],[e,1,2592e6],[e,3,7776e6],[t,1,$d]];function f(m,v,C){const I=Math.abs(v-m)/C,D=u(([,,U])=>U).right(h,I);if(D===h.length)return t.every(Mt(m/$d,v/$d,C));if(D===0)return Vd.every(Math.max(Mt(m,v,C),1));const[R,Z]=h[I/h[D-1][2]<h[D][2]/I?D-1:D];return R.every(Z)}return[function(m,v,C){const I=v<m;I&&([m,v]=[v,m]);const D=C&&typeof C.range=="function"?C:f(m,v,C),R=D?D.range(m,+v+1):[];return I?R.reverse():R},f]}const[Ug,$g]=Yg(Qs,Jd,Zl,zh,Kd,Qd),[Wg,qg]=Yg(Zs,Xd,Xl,Ph,Gd,Hd);function e2(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 n2(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 Uh(t,e,r){return{y:t,m:e,d:r,H:0,M:0,S:0,L:0}}function Vg(t){var e=t.dateTime,r=t.date,a=t.time,o=t.periods,s=t.days,h=t.shortDays,f=t.months,m=t.shortMonths,v=$h(o),C=Wh(o),I=$h(s),D=Wh(s),R=$h(h),Z=Wh(h),U=$h(f),$=Wh(f),W=$h(m),it=Wh(m),nt={a:function(Ut){return h[Ut.getDay()]},A:function(Ut){return s[Ut.getDay()]},b:function(Ut){return m[Ut.getMonth()]},B:function(Ut){return f[Ut.getMonth()]},c:null,d:Jg,e:Jg,f:E5,g:I5,G:R5,H:k5,I:w5,j:T5,L:ty,m:S5,M:C5,p:function(Ut){return o[+(Ut.getHours()>=12)]},q:function(Ut){return 1+~~(Ut.getMonth()/3)},Q:oy,s:sy,S:A5,u:M5,U:D5,V:N5,w:O5,W:B5,x:null,X:null,y:L5,Y:F5,Z:P5,"%":ay},rt={a:function(Ut){return h[Ut.getUTCDay()]},A:function(Ut){return s[Ut.getUTCDay()]},b:function(Ut){return m[Ut.getUTCMonth()]},B:function(Ut){return f[Ut.getUTCMonth()]},c:null,d:ny,e:ny,f:U5,g:K5,G:tb,H:j5,I:z5,j:Y5,L:ry,m:$5,M:W5,p:function(Ut){return o[+(Ut.getUTCHours()>=12)]},q:function(Ut){return 1+~~(Ut.getUTCMonth()/3)},Q:oy,s:sy,S:q5,u:V5,U:H5,V:G5,w:X5,W:Z5,x:null,X:null,y:Q5,Y:J5,Z:eb,"%":ay},lt={a:function(Ut,Pt,jt){var zt=R.exec(Pt.slice(jt));return zt?(Ut.w=Z.get(zt[0].toLowerCase()),jt+zt[0].length):-1},A:function(Ut,Pt,jt){var zt=I.exec(Pt.slice(jt));return zt?(Ut.w=D.get(zt[0].toLowerCase()),jt+zt[0].length):-1},b:function(Ut,Pt,jt){var zt=W.exec(Pt.slice(jt));return zt?(Ut.m=it.get(zt[0].toLowerCase()),jt+zt[0].length):-1},B:function(Ut,Pt,jt){var zt=U.exec(Pt.slice(jt));return zt?(Ut.m=$.get(zt[0].toLowerCase()),jt+zt[0].length):-1},c:function(Ut,Pt,jt){return ye(Ut,e,Pt,jt)},d:Qg,e:Qg,f:b5,g:Zg,G:Xg,H:Kg,I:Kg,j:p5,L:m5,m:d5,M:g5,p:function(Ut,Pt,jt){var zt=v.exec(Pt.slice(jt));return zt?(Ut.p=C.get(zt[0].toLowerCase()),jt+zt[0].length):-1},q:f5,Q:_5,s:x5,S:y5,u:s5,U:c5,V:l5,w:o5,W:u5,x:function(Ut,Pt,jt){return ye(Ut,r,Pt,jt)},X:function(Ut,Pt,jt){return ye(Ut,a,Pt,jt)},y:Zg,Y:Xg,Z:h5,"%":v5};function pt(Ut,Pt){return function(jt){var zt,gt,Bt,Vt=[],ae=-1,we=0,ze=Ut.length;for(jt instanceof Date||(jt=new Date(+jt));++ae<ze;)Ut.charCodeAt(ae)===37&&(Vt.push(Ut.slice(we,ae)),(gt=Gg[zt=Ut.charAt(++ae)])!=null?zt=Ut.charAt(++ae):gt=zt==="e"?" ":"0",(Bt=Pt[zt])&&(zt=Bt(jt,gt)),Vt.push(zt),we=ae+1);return Vt.push(Ut.slice(we,ae)),Vt.join("")}}function Jt(Ut,Pt){return function(jt){var zt,gt,Bt=Uh(1900,void 0,1);if(ye(Bt,Ut,jt+="",0)!=jt.length)return null;if("Q"in Bt)return new Date(Bt.Q);if("s"in Bt)return new Date(1e3*Bt.s+("L"in Bt?Bt.L:0));if(Pt&&!("Z"in Bt)&&(Bt.Z=0),"p"in Bt&&(Bt.H=Bt.H%12+12*Bt.p),Bt.m===void 0&&(Bt.m="q"in Bt?Bt.q:0),"V"in Bt){if(Bt.V<1||Bt.V>53)return null;"w"in Bt||(Bt.w=1),"Z"in Bt?(gt=(zt=n2(Uh(Bt.y,0,1))).getUTCDay(),zt=gt>4||gt===0?Yh.ceil(zt):Yh(zt),zt=zh.offset(zt,7*(Bt.V-1)),Bt.y=zt.getUTCFullYear(),Bt.m=zt.getUTCMonth(),Bt.d=zt.getUTCDate()+(Bt.w+6)%7):(gt=(zt=e2(Uh(Bt.y,0,1))).getDay(),zt=gt>4||gt===0?jh.ceil(zt):jh(zt),zt=Ph.offset(zt,7*(Bt.V-1)),Bt.y=zt.getFullYear(),Bt.m=zt.getMonth(),Bt.d=zt.getDate()+(Bt.w+6)%7)}else("W"in Bt||"U"in Bt)&&("w"in Bt||(Bt.w="u"in Bt?Bt.u%7:"W"in Bt?1:0),gt="Z"in Bt?n2(Uh(Bt.y,0,1)).getUTCDay():e2(Uh(Bt.y,0,1)).getDay(),Bt.m=0,Bt.d="W"in Bt?(Bt.w+6)%7+7*Bt.W-(gt+5)%7:Bt.w+7*Bt.U-(gt+6)%7);return"Z"in Bt?(Bt.H+=Bt.Z/100|0,Bt.M+=Bt.Z%100,n2(Bt)):e2(Bt)}}function ye(Ut,Pt,jt,zt){for(var gt,Bt,Vt=0,ae=Pt.length,we=jt.length;Vt<ae;){if(zt>=we)return-1;if((gt=Pt.charCodeAt(Vt++))===37){if(gt=Pt.charAt(Vt++),!(Bt=lt[gt in Gg?Pt.charAt(Vt++):gt])||(zt=Bt(Ut,jt,zt))<0)return-1}else if(gt!=jt.charCodeAt(zt++))return-1}return zt}return nt.x=pt(r,nt),nt.X=pt(a,nt),nt.c=pt(e,nt),rt.x=pt(r,rt),rt.X=pt(a,rt),rt.c=pt(e,rt),{format:function(Ut){var Pt=pt(Ut+="",nt);return Pt.toString=function(){return Ut},Pt},parse:function(Ut){var Pt=Jt(Ut+="",!1);return Pt.toString=function(){return Ut},Pt},utcFormat:function(Ut){var Pt=pt(Ut+="",rt);return Pt.toString=function(){return Ut},Pt},utcParse:function(Ut){var Pt=Jt(Ut+="",!0);return Pt.toString=function(){return Ut},Pt}}}var Ql,r2,Hg,j0,i2,Gg={"-":"",_:" ",0:"0"},Hi=/^\s*\d+/,r5=/^%/,i5=/[\\^$*+?|[\]().{}]/g;function Sr(t,e,r){var a=t<0?"-":"",o=(a?-t:t)+"",s=o.length;return a+(s<r?new Array(r-s+1).join(e)+o:o)}function a5(t){return t.replace(i5,"\\$&")}function $h(t){return new RegExp("^(?:"+t.map(a5).join("|")+")","i")}function Wh(t){return new Map(t.map((e,r)=>[e.toLowerCase(),r]))}function o5(t,e,r){var a=Hi.exec(e.slice(r,r+1));return a?(t.w=+a[0],r+a[0].length):-1}function s5(t,e,r){var a=Hi.exec(e.slice(r,r+1));return a?(t.u=+a[0],r+a[0].length):-1}function c5(t,e,r){var a=Hi.exec(e.slice(r,r+2));return a?(t.U=+a[0],r+a[0].length):-1}function l5(t,e,r){var a=Hi.exec(e.slice(r,r+2));return a?(t.V=+a[0],r+a[0].length):-1}function u5(t,e,r){var a=Hi.exec(e.slice(r,r+2));return a?(t.W=+a[0],r+a[0].length):-1}function Xg(t,e,r){var a=Hi.exec(e.slice(r,r+4));return a?(t.y=+a[0],r+a[0].length):-1}function Zg(t,e,r){var a=Hi.exec(e.slice(r,r+2));return a?(t.y=+a[0]+(+a[0]>68?1900:2e3),r+a[0].length):-1}function h5(t,e,r){var a=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(r,r+6));return a?(t.Z=a[1]?0:-(a[2]+(a[3]||"00")),r+a[0].length):-1}function f5(t,e,r){var a=Hi.exec(e.slice(r,r+1));return a?(t.q=3*a[0]-3,r+a[0].length):-1}function d5(t,e,r){var a=Hi.exec(e.slice(r,r+2));return a?(t.m=a[0]-1,r+a[0].length):-1}function Qg(t,e,r){var a=Hi.exec(e.slice(r,r+2));return a?(t.d=+a[0],r+a[0].length):-1}function p5(t,e,r){var a=Hi.exec(e.slice(r,r+3));return a?(t.m=0,t.d=+a[0],r+a[0].length):-1}function Kg(t,e,r){var a=Hi.exec(e.slice(r,r+2));return a?(t.H=+a[0],r+a[0].length):-1}function g5(t,e,r){var a=Hi.exec(e.slice(r,r+2));return a?(t.M=+a[0],r+a[0].length):-1}function y5(t,e,r){var a=Hi.exec(e.slice(r,r+2));return a?(t.S=+a[0],r+a[0].length):-1}function m5(t,e,r){var a=Hi.exec(e.slice(r,r+3));return a?(t.L=+a[0],r+a[0].length):-1}function b5(t,e,r){var a=Hi.exec(e.slice(r,r+6));return a?(t.L=Math.floor(a[0]/1e3),r+a[0].length):-1}function v5(t,e,r){var a=r5.exec(e.slice(r,r+1));return a?r+a[0].length:-1}function _5(t,e,r){var a=Hi.exec(e.slice(r));return a?(t.Q=+a[0],r+a[0].length):-1}function x5(t,e,r){var a=Hi.exec(e.slice(r));return a?(t.s=+a[0],r+a[0].length):-1}function Jg(t,e){return Sr(t.getDate(),e,2)}function k5(t,e){return Sr(t.getHours(),e,2)}function w5(t,e){return Sr(t.getHours()%12||12,e,2)}function T5(t,e){return Sr(1+Ph.count(Zs(t),t),e,3)}function ty(t,e){return Sr(t.getMilliseconds(),e,3)}function E5(t,e){return ty(t,e)+"000"}function S5(t,e){return Sr(t.getMonth()+1,e,2)}function C5(t,e){return Sr(t.getMinutes(),e,2)}function A5(t,e){return Sr(t.getSeconds(),e,2)}function M5(t){var e=t.getDay();return e===0?7:e}function D5(t,e){return Sr(Xl.count(Zs(t)-1,t),e,2)}function ey(t){var e=t.getDay();return e>=4||e===0?$c(t):$c.ceil(t)}function N5(t,e){return t=ey(t),Sr($c.count(Zs(t),t)+(Zs(t).getDay()===4),e,2)}function O5(t){return t.getDay()}function B5(t,e){return Sr(jh.count(Zs(t)-1,t),e,2)}function L5(t,e){return Sr(t.getFullYear()%100,e,2)}function I5(t,e){return Sr((t=ey(t)).getFullYear()%100,e,2)}function F5(t,e){return Sr(t.getFullYear()%1e4,e,4)}function R5(t,e){var r=t.getDay();return Sr((t=r>=4||r===0?$c(t):$c.ceil(t)).getFullYear()%1e4,e,4)}function P5(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+Sr(e/60|0,"0",2)+Sr(e%60,"0",2)}function ny(t,e){return Sr(t.getUTCDate(),e,2)}function j5(t,e){return Sr(t.getUTCHours(),e,2)}function z5(t,e){return Sr(t.getUTCHours()%12||12,e,2)}function Y5(t,e){return Sr(1+zh.count(Qs(t),t),e,3)}function ry(t,e){return Sr(t.getUTCMilliseconds(),e,3)}function U5(t,e){return ry(t,e)+"000"}function $5(t,e){return Sr(t.getUTCMonth()+1,e,2)}function W5(t,e){return Sr(t.getUTCMinutes(),e,2)}function q5(t,e){return Sr(t.getUTCSeconds(),e,2)}function V5(t){var e=t.getUTCDay();return e===0?7:e}function H5(t,e){return Sr(Zl.count(Qs(t)-1,t),e,2)}function iy(t){var e=t.getUTCDay();return e>=4||e===0?qc(t):qc.ceil(t)}function G5(t,e){return t=iy(t),Sr(qc.count(Qs(t),t)+(Qs(t).getUTCDay()===4),e,2)}function X5(t){return t.getUTCDay()}function Z5(t,e){return Sr(Yh.count(Qs(t)-1,t),e,2)}function Q5(t,e){return Sr(t.getUTCFullYear()%100,e,2)}function K5(t,e){return Sr((t=iy(t)).getUTCFullYear()%100,e,2)}function J5(t,e){return Sr(t.getUTCFullYear()%1e4,e,4)}function tb(t,e){var r=t.getUTCDay();return Sr((t=r>=4||r===0?qc(t):qc.ceil(t)).getUTCFullYear()%1e4,e,4)}function eb(){return"+0000"}function ay(){return"%"}function oy(t){return+t}function sy(t){return Math.floor(+t/1e3)}function cy(t){return Ql=Vg(t),r2=Ql.format,Hg=Ql.parse,j0=Ql.utcFormat,i2=Ql.utcParse,Ql}function nb(t){return new Date(t)}function rb(t){return t instanceof Date?+t:+new Date(+t)}function a2(t,e,r,a,o,s,h,f,m,v){var C=Fd(),I=C.invert,D=C.domain,R=v(".%L"),Z=v(":%S"),U=v("%I:%M"),$=v("%I %p"),W=v("%a %d"),it=v("%b %d"),nt=v("%B"),rt=v("%Y");function lt(pt){return(m(pt)<pt?R:f(pt)<pt?Z:h(pt)<pt?U:s(pt)<pt?$:a(pt)<pt?o(pt)<pt?W:it:r(pt)<pt?nt:rt)(pt)}return C.invert=function(pt){return new Date(I(pt))},C.domain=function(pt){return arguments.length?D(Array.from(pt,rb)):D().map(nb)},C.ticks=function(pt){var Jt=D();return t(Jt[0],Jt[Jt.length-1],pt==null?10:pt)},C.tickFormat=function(pt,Jt){return Jt==null?lt:v(Jt)},C.nice=function(pt){var Jt=D();return pt&&typeof pt.range=="function"||(pt=e(Jt[0],Jt[Jt.length-1],pt==null?10:pt)),pt?D(og(Jt,pt)):C},C.copy=function(){return Ih(C,a2(t,e,r,a,o,s,h,f,m,v))},C}function ib(){return co.apply(a2(Wg,qg,Zs,Xd,Xl,Ph,Gd,Hd,Xs,r2).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function ab(){return co.apply(a2(Ug,$g,Qs,Jd,Zl,zh,Kd,Qd,Xs,j0).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function z0(){var t,e,r,a,o,s=0,h=1,f=_a,m=!1;function v(I){return I==null||isNaN(I=+I)?o:f(r===0?.5:(I=(a(I)-t)*r,m?Math.max(0,Math.min(1,I)):I))}function C(I){return function(D){var R,Z;return arguments.length?([R,Z]=D,f=I(R,Z),v):[f(0),f(1)]}}return v.domain=function(I){return arguments.length?([s,h]=I,t=a(s=+s),e=a(h=+h),r=t===e?0:1/(e-t),v):[s,h]},v.clamp=function(I){return arguments.length?(m=!!I,v):m},v.interpolator=function(I){return arguments.length?(f=I,v):f},v.range=C(Kn),v.rangeRound=C(L0),v.unknown=function(I){return arguments.length?(o=I,v):o},function(I){return a=I,t=I(s),e=I(h),r=t===e?0:1/(e-t),v}}function Ks(t,e){return e.domain(t.domain()).interpolator(t.interpolator()).clamp(t.clamp()).unknown(t.unknown())}function ly(){var t=Hs(z0()(_a));return t.copy=function(){return Ks(t,ly())},gs.apply(t,arguments)}function uy(){var t=Rd(z0()).domain([1,10]);return t.copy=function(){return Ks(t,uy()).base(t.base())},gs.apply(t,arguments)}function hy(){var t=Pd(z0());return t.copy=function(){return Ks(t,hy()).constant(t.constant())},gs.apply(t,arguments)}function o2(){var t=jd(z0());return t.copy=function(){return Ks(t,o2()).exponent(t.exponent())},gs.apply(t,arguments)}function ob(){return o2.apply(null,arguments).exponent(.5)}function fy(){var t=[],e=_a;function r(a){if(a!=null&&!isNaN(a=+a))return e((F(t,a,1)-1)/(t.length-1))}return r.domain=function(a){if(!arguments.length)return t.slice();t=[];for(let o of a)o==null||isNaN(o=+o)||t.push(o);return t.sort(b),r},r.interpolator=function(a){return arguments.length?(e=a,r):e},r.range=function(){return t.map((a,o)=>e(o/(t.length-1)))},r.quantiles=function(a){return Array.from({length:a+1},(o,s)=>Oe(t,s/a))},r.copy=function(){return fy(e).domain(t)},gs.apply(r,arguments)}function Y0(){var t,e,r,a,o,s,h,f=0,m=.5,v=1,C=1,I=_a,D=!1;function R(U){return isNaN(U=+U)?h:(U=.5+((U=+s(U))-e)*(C*U<C*e?a:o),I(D?Math.max(0,Math.min(1,U)):U))}function Z(U){return function($){var W,it,nt;return arguments.length?([W,it,nt]=$,I=Gp(U,[W,it,nt]),R):[I(0),I(.5),I(1)]}}return R.domain=function(U){return arguments.length?([f,m,v]=U,t=s(f=+f),e=s(m=+m),r=s(v=+v),a=t===e?0:.5/(e-t),o=e===r?0:.5/(r-e),C=e<t?-1:1,R):[f,m,v]},R.clamp=function(U){return arguments.length?(D=!!U,R):D},R.interpolator=function(U){return arguments.length?(I=U,R):I},R.range=Z(Kn),R.rangeRound=Z(L0),R.unknown=function(U){return arguments.length?(h=U,R):h},function(U){return s=U,t=U(f),e=U(m),r=U(v),a=t===e?0:.5/(e-t),o=e===r?0:.5/(r-e),C=e<t?-1:1,R}}function dy(){var t=Hs(Y0()(_a));return t.copy=function(){return Ks(t,dy())},gs.apply(t,arguments)}function py(){var t=Rd(Y0()).domain([.1,1,10]);return t.copy=function(){return Ks(t,py()).base(t.base())},gs.apply(t,arguments)}function gy(){var t=Pd(Y0());return t.copy=function(){return Ks(t,gy()).constant(t.constant())},gs.apply(t,arguments)}function s2(){var t=jd(Y0());return t.copy=function(){return Ks(t,s2()).exponent(t.exponent())},gs.apply(t,arguments)}function sb(){return s2.apply(null,arguments).exponent(.5)}function rr(t){for(var e=t.length/6|0,r=new Array(e),a=0;a<e;)r[a]="#"+t.slice(6*a,6*++a);return r}cy({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"]});const cb=rr("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf"),lb=rr("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666"),ub=rr("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666"),hb=rr("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928"),fb=rr("fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2"),db=rr("b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc"),pb=rr("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999"),gb=rr("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3"),yb=rr("8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f"),mb=rr("4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab"),Wr=t=>Jc(t[t.length-1]);var yy=new Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e","8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(rr);const bb=Wr(yy);var my=new Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837","40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map(rr);const vb=Wr(my);var by=new Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419","8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map(rr);const _b=Wr(by);var vy=new Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map(rr);const xb=Wr(vy);var _y=new Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(rr);const kb=Wr(_y);var xy=new Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040","ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map(rr);const wb=Wr(xy);var ky=new Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4","d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map(rr);const Tb=Wr(ky);var wy=new Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850","d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(rr);const Eb=Wr(wy);var Ty=new Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd","9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(rr);const Sb=Wr(Ty);var Ey=new Array(3).concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map(rr);const Cb=Wr(Ey);var Sy=new Array(3).concat("e0ecf49ebcda8856a7","edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map(rr);const Ab=Wr(Sy);var Cy=new Array(3).concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map(rr);const Mb=Wr(Cy);var Ay=new Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map(rr);const Db=Wr(Ay);var My=new Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map(rr);const Nb=Wr(My);var Dy=new Array(3).concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map(rr);const Ob=Wr(Dy);var Ny=new Array(3).concat("e7e1efc994c7dd1c77","f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map(rr);const Bb=Wr(Ny);var Oy=new Array(3).concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map(rr);const Lb=Wr(Oy);var By=new Array(3).concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map(rr);const Ib=Wr(By);var Ly=new Array(3).concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837","ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map(rr);const Fb=Wr(Ly);var Iy=new Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map(rr);const Rb=Wr(Iy);var Fy=new Array(3).concat("ffeda0feb24cf03b20","ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map(rr);const Pb=Wr(Fy);var Ry=new Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(rr);const jb=Wr(Ry);var Py=new Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(rr);const zb=Wr(Py);var jy=new Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525","f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(rr);const Yb=Wr(jy);var zy=new Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(rr);const Ub=Wr(zy);var Yy=new Array(3).concat("fee0d2fc9272de2d26","fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(rr);const $b=Wr(Yy);var Uy=new Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(rr);const Wb=Wr(Uy);function qb(t){return t=Math.max(0,Math.min(1,t)),"rgb("+Math.max(0,Math.min(255,Math.round(-4.54-t*(35.34-t*(2381.73-t*(6402.7-t*(7024.72-2710.57*t)))))))+", "+Math.max(0,Math.min(255,Math.round(32.49+t*(170.73+t*(52.82-t*(131.46-t*(176.58-67.37*t)))))))+", "+Math.max(0,Math.min(255,Math.round(81.24+t*(442.36-t*(2482.43-t*(6167.24-t*(6614.94-2475.67*t)))))))+")"}const Vb=I0(Ua(300,.5,0),Ua(-240,.5,1));var Hb=I0(Ua(-100,.75,.35),Ua(80,1.5,.8)),Gb=I0(Ua(260,.75,.35),Ua(80,1.5,.8)),U0=Ua();function Xb(t){(t<0||t>1)&&(t-=Math.floor(t));var e=Math.abs(t-.5);return U0.h=360*t-100,U0.s=1.5-1.5*e,U0.l=.8-.9*e,U0+""}var $0=ri(),Zb=Math.PI/3,Qb=2*Math.PI/3;function Kb(t){var e;return t=(.5-t)*Math.PI,$0.r=255*(e=Math.sin(t))*e,$0.g=255*(e=Math.sin(t+Zb))*e,$0.b=255*(e=Math.sin(t+Qb))*e,$0+""}function Jb(t){return t=Math.max(0,Math.min(1,t)),"rgb("+Math.max(0,Math.min(255,Math.round(34.61+t*(1172.33-t*(10793.56-t*(33300.12-t*(38394.49-14825.05*t)))))))+", "+Math.max(0,Math.min(255,Math.round(23.31+t*(557.33+t*(1225.33-t*(3574.96-t*(1073.77+707.56*t)))))))+", "+Math.max(0,Math.min(255,Math.round(27.2+t*(3211.1-t*(15327.97-t*(27814-t*(22569.18-6838.66*t)))))))+")"}function W0(t){var e=t.length;return function(r){return t[Math.max(0,Math.min(e-1,Math.floor(r*e)))]}}const tv=W0(rr("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725"));var ev=W0(rr("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf")),nv=W0(rr("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4")),rv=W0(rr("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"));function iv(t){return kr(Bo(t).call(document.documentElement))}var av=0;function $y(){return new c2}function c2(){this._="@"+(++av).toString(36)}function ov(t,e){return t.target&&(t=Sa(t),e===void 0&&(e=t.currentTarget),t=t.touches||[t]),Array.from(t,r=>sa(r,e))}function sv(t){return typeof t=="string"?new fi([document.querySelectorAll(t)],[document.documentElement]):new fi([Kt(t)],Lo)}function er(t){return function(){return t}}c2.prototype=$y.prototype={constructor:c2,get:function(t){for(var e=this._;!(e in t);)if(!(t=t.parentNode))return;return t[e]},set:function(t,e){return t[this._]=e},remove:function(t){return this._ in t&&delete t[this._]},toString:function(){return this._}};var Wy=Math.abs,ua=Math.atan2,Vc=Math.cos,cv=Math.max,l2=Math.min,Xo=Math.sin,Kl=Math.sqrt,ha=1e-12,Js=Math.PI,q0=Js/2,tc=2*Js;function lv(t){return t>1?0:t<-1?Js:Math.acos(t)}function qy(t){return t>=1?q0:t<=-1?-q0:Math.asin(t)}function uv(t){return t.innerRadius}function hv(t){return t.outerRadius}function fv(t){return t.startAngle}function dv(t){return t.endAngle}function pv(t){return t&&t.padAngle}function gv(t,e,r,a,o,s,h,f){var m=r-t,v=a-e,C=h-o,I=f-s,D=I*m-C*v;if(!(D*D<ha))return[t+(D=(C*(e-s)-I*(t-o))/D)*m,e+D*v]}function V0(t,e,r,a,o,s,h){var f=t-r,m=e-a,v=(h?s:-s)/Kl(f*f+m*m),C=v*m,I=-v*f,D=t+C,R=e+I,Z=r+C,U=a+I,$=(D+Z)/2,W=(R+U)/2,it=Z-D,nt=U-R,rt=it*it+nt*nt,lt=o-s,pt=D*U-Z*R,Jt=(nt<0?-1:1)*Kl(cv(0,lt*lt*rt-pt*pt)),ye=(pt*nt-it*Jt)/rt,Ut=(-pt*it-nt*Jt)/rt,Pt=(pt*nt+it*Jt)/rt,jt=(-pt*it+nt*Jt)/rt,zt=ye-$,gt=Ut-W,Bt=Pt-$,Vt=jt-W;return zt*zt+gt*gt>Bt*Bt+Vt*Vt&&(ye=Pt,Ut=jt),{cx:ye,cy:Ut,x01:-C,y01:-I,x11:ye*(o/lt-1),y11:Ut*(o/lt-1)}}function yv(){var t=uv,e=hv,r=er(0),a=null,o=fv,s=dv,h=pv,f=null;function m(){var v,C,I=+t.apply(this,arguments),D=+e.apply(this,arguments),R=o.apply(this,arguments)-q0,Z=s.apply(this,arguments)-q0,U=Wy(Z-R),$=Z>R;if(f||(f=v=$o()),D<I&&(C=D,D=I,I=C),D>ha)if(U>tc-ha)f.moveTo(D*Vc(R),D*Xo(R)),f.arc(0,0,D,R,Z,!$),I>ha&&(f.moveTo(I*Vc(Z),I*Xo(Z)),f.arc(0,0,I,Z,R,$));else{var W,it,nt=R,rt=Z,lt=R,pt=Z,Jt=U,ye=U,Ut=h.apply(this,arguments)/2,Pt=Ut>ha&&(a?+a.apply(this,arguments):Kl(I*I+D*D)),jt=l2(Wy(D-I)/2,+r.apply(this,arguments)),zt=jt,gt=jt;if(Pt>ha){var Bt=qy(Pt/I*Xo(Ut)),Vt=qy(Pt/D*Xo(Ut));(Jt-=2*Bt)>ha?(lt+=Bt*=$?1:-1,pt-=Bt):(Jt=0,lt=pt=(R+Z)/2),(ye-=2*Vt)>ha?(nt+=Vt*=$?1:-1,rt-=Vt):(ye=0,nt=rt=(R+Z)/2)}var ae=D*Vc(nt),we=D*Xo(nt),ze=I*Vc(pt),He=I*Xo(pt);if(jt>ha){var dn,Ge=D*Vc(rt),Yn=D*Xo(rt),Wn=I*Vc(lt),Cn=I*Xo(lt);if(U<Js&&(dn=gv(ae,we,Wn,Cn,Ge,Yn,ze,He))){var Ln=ae-dn[0],wr=we-dn[1],ir=Ge-dn[0],Oa=Yn-dn[1],nc=1/Xo(lv((Ln*ir+wr*Oa)/(Kl(Ln*Ln+wr*wr)*Kl(ir*ir+Oa*Oa)))/2),Do=Kl(dn[0]*dn[0]+dn[1]*dn[1]);zt=l2(jt,(I-Do)/(nc-1)),gt=l2(jt,(D-Do)/(nc+1))}}ye>ha?gt>ha?(W=V0(Wn,Cn,ae,we,D,gt,$),it=V0(Ge,Yn,ze,He,D,gt,$),f.moveTo(W.cx+W.x01,W.cy+W.y01),gt<jt?f.arc(W.cx,W.cy,gt,ua(W.y01,W.x01),ua(it.y01,it.x01),!$):(f.arc(W.cx,W.cy,gt,ua(W.y01,W.x01),ua(W.y11,W.x11),!$),f.arc(0,0,D,ua(W.cy+W.y11,W.cx+W.x11),ua(it.cy+it.y11,it.cx+it.x11),!$),f.arc(it.cx,it.cy,gt,ua(it.y11,it.x11),ua(it.y01,it.x01),!$))):(f.moveTo(ae,we),f.arc(0,0,D,nt,rt,!$)):f.moveTo(ae,we),I>ha&&Jt>ha?zt>ha?(W=V0(ze,He,Ge,Yn,I,-zt,$),it=V0(ae,we,Wn,Cn,I,-zt,$),f.lineTo(W.cx+W.x01,W.cy+W.y01),zt<jt?f.arc(W.cx,W.cy,zt,ua(W.y01,W.x01),ua(it.y01,it.x01),!$):(f.arc(W.cx,W.cy,zt,ua(W.y01,W.x01),ua(W.y11,W.x11),!$),f.arc(0,0,I,ua(W.cy+W.y11,W.cx+W.x11),ua(it.cy+it.y11,it.cx+it.x11),$),f.arc(it.cx,it.cy,zt,ua(it.y11,it.x11),ua(it.y01,it.x01),!$))):f.arc(0,0,I,pt,lt,$):f.lineTo(ze,He)}else f.moveTo(0,0);if(f.closePath(),v)return f=null,v+""||null}return m.centroid=function(){var v=(+t.apply(this,arguments)+ +e.apply(this,arguments))/2,C=(+o.apply(this,arguments)+ +s.apply(this,arguments))/2-Js/2;return[Vc(C)*v,Xo(C)*v]},m.innerRadius=function(v){return arguments.length?(t=typeof v=="function"?v:er(+v),m):t},m.outerRadius=function(v){return arguments.length?(e=typeof v=="function"?v:er(+v),m):e},m.cornerRadius=function(v){return arguments.length?(r=typeof v=="function"?v:er(+v),m):r},m.padRadius=function(v){return arguments.length?(a=v==null?null:typeof v=="function"?v:er(+v),m):a},m.startAngle=function(v){return arguments.length?(o=typeof v=="function"?v:er(+v),m):o},m.endAngle=function(v){return arguments.length?(s=typeof v=="function"?v:er(+v),m):s},m.padAngle=function(v){return arguments.length?(h=typeof v=="function"?v:er(+v),m):h},m.context=function(v){return arguments.length?(f=v==null?null:v,m):f},m}var mv=Array.prototype.slice;function H0(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}function Vy(t){this._context=t}function G0(t){return new Vy(t)}function u2(t){return t[0]}function h2(t){return t[1]}function f2(t,e){var r=er(!0),a=null,o=G0,s=null;function h(f){var m,v,C,I=(f=H0(f)).length,D=!1;for(a==null&&(s=o(C=$o())),m=0;m<=I;++m)!(m<I&&r(v=f[m],m,f))===D&&((D=!D)?s.lineStart():s.lineEnd()),D&&s.point(+t(v,m,f),+e(v,m,f));if(C)return s=null,C+""||null}return t=typeof t=="function"?t:t===void 0?u2:er(t),e=typeof e=="function"?e:e===void 0?h2:er(e),h.x=function(f){return arguments.length?(t=typeof f=="function"?f:er(+f),h):t},h.y=function(f){return arguments.length?(e=typeof f=="function"?f:er(+f),h):e},h.defined=function(f){return arguments.length?(r=typeof f=="function"?f:er(!!f),h):r},h.curve=function(f){return arguments.length?(o=f,a!=null&&(s=o(a)),h):o},h.context=function(f){return arguments.length?(f==null?a=s=null:s=o(a=f),h):a},h}function Hy(t,e,r){var a=null,o=er(!0),s=null,h=G0,f=null;function m(C){var I,D,R,Z,U,$=(C=H0(C)).length,W=!1,it=new Array($),nt=new Array($);for(s==null&&(f=h(U=$o())),I=0;I<=$;++I){if(!(I<$&&o(Z=C[I],I,C))===W)if(W=!W)D=I,f.areaStart(),f.lineStart();else{for(f.lineEnd(),f.lineStart(),R=I-1;R>=D;--R)f.point(it[R],nt[R]);f.lineEnd(),f.areaEnd()}W&&(it[I]=+t(Z,I,C),nt[I]=+e(Z,I,C),f.point(a?+a(Z,I,C):it[I],r?+r(Z,I,C):nt[I]))}if(U)return f=null,U+""||null}function v(){return f2().defined(o).curve(h).context(s)}return t=typeof t=="function"?t:t===void 0?u2:er(+t),e=typeof e=="function"?e:er(e===void 0?0:+e),r=typeof r=="function"?r:r===void 0?h2:er(+r),m.x=function(C){return arguments.length?(t=typeof C=="function"?C:er(+C),a=null,m):t},m.x0=function(C){return arguments.length?(t=typeof C=="function"?C:er(+C),m):t},m.x1=function(C){return arguments.length?(a=C==null?null:typeof C=="function"?C:er(+C),m):a},m.y=function(C){return arguments.length?(e=typeof C=="function"?C:er(+C),r=null,m):e},m.y0=function(C){return arguments.length?(e=typeof C=="function"?C:er(+C),m):e},m.y1=function(C){return arguments.length?(r=C==null?null:typeof C=="function"?C:er(+C),m):r},m.lineX0=m.lineY0=function(){return v().x(t).y(e)},m.lineY1=function(){return v().x(t).y(r)},m.lineX1=function(){return v().x(a).y(e)},m.defined=function(C){return arguments.length?(o=typeof C=="function"?C:er(!!C),m):o},m.curve=function(C){return arguments.length?(h=C,s!=null&&(f=h(s)),m):h},m.context=function(C){return arguments.length?(C==null?s=f=null:f=h(s=C),m):s},m}function bv(t,e){return e<t?-1:e>t?1:e>=t?0:NaN}function vv(t){return t}function _v(){var t=vv,e=bv,r=null,a=er(0),o=er(tc),s=er(0);function h(f){var m,v,C,I,D,R=(f=H0(f)).length,Z=0,U=new Array(R),$=new Array(R),W=+a.apply(this,arguments),it=Math.min(tc,Math.max(-tc,o.apply(this,arguments)-W)),nt=Math.min(Math.abs(it)/R,s.apply(this,arguments)),rt=nt*(it<0?-1:1);for(m=0;m<R;++m)(D=$[U[m]=m]=+t(f[m],m,f))>0&&(Z+=D);for(e!=null?U.sort(function(lt,pt){return e($[lt],$[pt])}):r!=null&&U.sort(function(lt,pt){return r(f[lt],f[pt])}),m=0,C=Z?(it-R*rt)/Z:0;m<R;++m,W=I)v=U[m],I=W+((D=$[v])>0?D*C:0)+rt,$[v]={data:f[v],index:m,value:D,startAngle:W,endAngle:I,padAngle:nt};return $}return h.value=function(f){return arguments.length?(t=typeof f=="function"?f:er(+f),h):t},h.sortValues=function(f){return arguments.length?(e=f,r=null,h):e},h.sort=function(f){return arguments.length?(r=f,e=null,h):r},h.startAngle=function(f){return arguments.length?(a=typeof f=="function"?f:er(+f),h):a},h.endAngle=function(f){return arguments.length?(o=typeof f=="function"?f:er(+f),h):o},h.padAngle=function(f){return arguments.length?(s=typeof f=="function"?f:er(+f),h):s},h}Vy.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)}}};var Gy=d2(G0);function Xy(t){this._curve=t}function d2(t){function e(r){return new Xy(t(r))}return e._curve=t,e}function qh(t){var e=t.curve;return t.angle=t.x,delete t.x,t.radius=t.y,delete t.y,t.curve=function(r){return arguments.length?e(d2(r)):e()._curve},t}function Zy(){return qh(f2().curve(Gy))}function Qy(){var t=Hy().curve(Gy),e=t.curve,r=t.lineX0,a=t.lineX1,o=t.lineY0,s=t.lineY1;return t.angle=t.x,delete t.x,t.startAngle=t.x0,delete t.x0,t.endAngle=t.x1,delete t.x1,t.radius=t.y,delete t.y,t.innerRadius=t.y0,delete t.y0,t.outerRadius=t.y1,delete t.y1,t.lineStartAngle=function(){return qh(r())},delete t.lineX0,t.lineEndAngle=function(){return qh(a())},delete t.lineX1,t.lineInnerRadius=function(){return qh(o())},delete t.lineY0,t.lineOuterRadius=function(){return qh(s())},delete t.lineY1,t.curve=function(h){return arguments.length?e(d2(h)):e()._curve},t}function Vh(t,e){return[(e=+e)*Math.cos(t-=Math.PI/2),e*Math.sin(t)]}function xv(t){return t.source}function kv(t){return t.target}function p2(t){var e=xv,r=kv,a=u2,o=h2,s=null;function h(){var f,m=mv.call(arguments),v=e.apply(this,m),C=r.apply(this,m);if(s||(s=f=$o()),t(s,+a.apply(this,(m[0]=v,m)),+o.apply(this,m),+a.apply(this,(m[0]=C,m)),+o.apply(this,m)),f)return s=null,f+""||null}return h.source=function(f){return arguments.length?(e=f,h):e},h.target=function(f){return arguments.length?(r=f,h):r},h.x=function(f){return arguments.length?(a=typeof f=="function"?f:er(+f),h):a},h.y=function(f){return arguments.length?(o=typeof f=="function"?f:er(+f),h):o},h.context=function(f){return arguments.length?(s=f==null?null:f,h):s},h}function wv(t,e,r,a,o){t.moveTo(e,r),t.bezierCurveTo(e=(e+a)/2,r,e,o,a,o)}function Tv(t,e,r,a,o){t.moveTo(e,r),t.bezierCurveTo(e,r=(r+o)/2,a,r,a,o)}function Ev(t,e,r,a,o){var s=Vh(e,r),h=Vh(e,r=(r+o)/2),f=Vh(a,r),m=Vh(a,o);t.moveTo(s[0],s[1]),t.bezierCurveTo(h[0],h[1],f[0],f[1],m[0],m[1])}function Sv(){return p2(wv)}function Cv(){return p2(Tv)}function Av(){var t=p2(Ev);return t.angle=t.x,delete t.x,t.radius=t.y,delete t.y,t}Xy.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(t,e){this._curve.point(e*Math.sin(t),e*-Math.cos(t))}};const g2={draw:function(t,e){var r=Math.sqrt(e/Js);t.moveTo(r,0),t.arc(0,0,r,0,tc)}},Ky={draw:function(t,e){var r=Math.sqrt(e/5)/2;t.moveTo(-3*r,-r),t.lineTo(-r,-r),t.lineTo(-r,-3*r),t.lineTo(r,-3*r),t.lineTo(r,-r),t.lineTo(3*r,-r),t.lineTo(3*r,r),t.lineTo(r,r),t.lineTo(r,3*r),t.lineTo(-r,3*r),t.lineTo(-r,r),t.lineTo(-3*r,r),t.closePath()}};var Jy=Math.sqrt(1/3),Mv=2*Jy;const tm={draw:function(t,e){var r=Math.sqrt(e/Mv),a=r*Jy;t.moveTo(0,-r),t.lineTo(a,0),t.lineTo(0,r),t.lineTo(-a,0),t.closePath()}};var em=Math.sin(Js/10)/Math.sin(7*Js/10),Dv=Math.sin(tc/10)*em,Nv=-Math.cos(tc/10)*em;const nm={draw:function(t,e){var r=Math.sqrt(.8908130915292852*e),a=Dv*r,o=Nv*r;t.moveTo(0,-r),t.lineTo(a,o);for(var s=1;s<5;++s){var h=tc*s/5,f=Math.cos(h),m=Math.sin(h);t.lineTo(m*r,-f*r),t.lineTo(f*a-m*o,m*a+f*o)}t.closePath()}},rm={draw:function(t,e){var r=Math.sqrt(e),a=-r/2;t.rect(a,a,r,r)}};var y2=Math.sqrt(3);const im={draw:function(t,e){var r=-Math.sqrt(e/(3*y2));t.moveTo(0,2*r),t.lineTo(-y2*r,-r),t.lineTo(y2*r,-r),t.closePath()}};var lo=-.5,uo=Math.sqrt(3)/2,m2=1/Math.sqrt(12),Ov=3*(m2/2+1);const am={draw:function(t,e){var r=Math.sqrt(e/Ov),a=r/2,o=r*m2,s=a,h=r*m2+r,f=-s,m=h;t.moveTo(a,o),t.lineTo(s,h),t.lineTo(f,m),t.lineTo(lo*a-uo*o,uo*a+lo*o),t.lineTo(lo*s-uo*h,uo*s+lo*h),t.lineTo(lo*f-uo*m,uo*f+lo*m),t.lineTo(lo*a+uo*o,lo*o-uo*a),t.lineTo(lo*s+uo*h,lo*h-uo*s),t.lineTo(lo*f+uo*m,lo*m-uo*f),t.closePath()}};var Bv=[g2,Ky,tm,rm,nm,im,am];function Lv(t,e){var r=null;function a(){var o;if(r||(r=o=$o()),t.apply(this,arguments).draw(r,+e.apply(this,arguments)),o)return r=null,o+""||null}return t=typeof t=="function"?t:er(t||g2),e=typeof e=="function"?e:er(e===void 0?64:+e),a.type=function(o){return arguments.length?(t=typeof o=="function"?o:er(o),a):t},a.size=function(o){return arguments.length?(e=typeof o=="function"?o:er(+o),a):e},a.context=function(o){return arguments.length?(r=o==null?null:o,a):r},a}function ec(){}function X0(t,e,r){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+r)/6)}function Z0(t){this._context=t}function Iv(t){return new Z0(t)}function om(t){this._context=t}function Fv(t){return new om(t)}function sm(t){this._context=t}function Rv(t){return new sm(t)}Z0.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:X0(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(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:X0(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},om.prototype={areaStart:ec,areaEnd:ec,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(t,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:X0(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},sm.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 r=(this._x0+4*this._x1+t)/6,a=(this._y0+4*this._y1+e)/6;this._line?this._context.lineTo(r,a):this._context.moveTo(r,a);break;case 3:this._point=4;default:X0(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};class cm{constructor(e,r){this._context=e,this._x=r}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,r){switch(e=+e,r=+r,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,r):this._context.moveTo(e,r);break;case 1:this._point=2;default:this._x?this._context.bezierCurveTo(this._x0=(this._x0+e)/2,this._y0,this._x0,r,e,r):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+r)/2,e,this._y0,e,r)}this._x0=e,this._y0=r}}function Pv(t){return new cm(t,!0)}function jv(t){return new cm(t,!1)}function lm(t,e){this._basis=new Z0(t),this._beta=e}lm.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var t=this._x,e=this._y,r=t.length-1;if(r>0)for(var a,o=t[0],s=e[0],h=t[r]-o,f=e[r]-s,m=-1;++m<=r;)a=m/r,this._basis.point(this._beta*t[m]+(1-this._beta)*(o+a*h),this._beta*e[m]+(1-this._beta)*(s+a*f));this._x=this._y=null,this._basis.lineEnd()},point:function(t,e){this._x.push(+t),this._y.push(+e)}};const zv=function t(e){function r(a){return e===1?new Z0(a):new lm(a,e)}return r.beta=function(a){return t(+a)},r}(.85);function Q0(t,e,r){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-r),t._x2,t._y2)}function b2(t,e){this._context=t,this._k=(1-e)/6}b2.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:Q0(this,this._x1,this._y1)}(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:Q0(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const Yv=function t(e){function r(a){return new b2(a,e)}return r.tension=function(a){return t(+a)},r}(0);function v2(t,e){this._context=t,this._k=(1-e)/6}v2.prototype={areaStart:ec,areaEnd:ec,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,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:Q0(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const Uv=function t(e){function r(a){return new v2(a,e)}return r.tension=function(a){return t(+a)},r}(0);function _2(t,e){this._context=t,this._k=(1-e)/6}_2.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:Q0(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const $v=function t(e){function r(a){return new _2(a,e)}return r.tension=function(a){return t(+a)},r}(0);function x2(t,e,r){var a=t._x1,o=t._y1,s=t._x2,h=t._y2;if(t._l01_a>ha){var f=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,m=3*t._l01_a*(t._l01_a+t._l12_a);a=(a*f-t._x0*t._l12_2a+t._x2*t._l01_2a)/m,o=(o*f-t._y0*t._l12_2a+t._y2*t._l01_2a)/m}if(t._l23_a>ha){var v=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,C=3*t._l23_a*(t._l23_a+t._l12_a);s=(s*v+t._x1*t._l23_2a-e*t._l12_2a)/C,h=(h*v+t._y1*t._l23_2a-r*t._l12_2a)/C}t._context.bezierCurveTo(a,o,s,h,t._x2,t._y2)}function um(t,e){this._context=t,this._alpha=e}um.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(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 r=this._x2-t,a=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+a*a,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:x2(this,t,e)}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}};const Wv=function t(e){function r(a){return e?new um(a,e):new b2(a,0)}return r.alpha=function(a){return t(+a)},r}(.5);function hm(t,e){this._context=t,this._alpha=e}hm.prototype={areaStart:ec,areaEnd:ec,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,e){if(t=+t,e=+e,this._point){var r=this._x2-t,a=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+a*a,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:x2(this,t,e)}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}};const qv=function t(e){function r(a){return e?new hm(a,e):new v2(a,0)}return r.alpha=function(a){return t(+a)},r}(.5);function fm(t,e){this._context=t,this._alpha=e}fm.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 r=this._x2-t,a=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+a*a,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:x2(this,t,e)}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}};const Vv=function t(e){function r(a){return e?new fm(a,e):new _2(a,0)}return r.alpha=function(a){return t(+a)},r}(.5);function dm(t){this._context=t}function Hv(t){return new dm(t)}function pm(t){return t<0?-1:1}function gm(t,e,r){var a=t._x1-t._x0,o=e-t._x1,s=(t._y1-t._y0)/(a||o<0&&-0),h=(r-t._y1)/(o||a<0&&-0),f=(s*o+h*a)/(a+o);return(pm(s)+pm(h))*Math.min(Math.abs(s),Math.abs(h),.5*Math.abs(f))||0}function ym(t,e){var r=t._x1-t._x0;return r?(3*(t._y1-t._y0)/r-e)/2:e}function k2(t,e,r){var a=t._x0,o=t._y0,s=t._x1,h=t._y1,f=(s-a)/3;t._context.bezierCurveTo(a+f,o+f*e,s-f,h-f*r,s,h)}function K0(t){this._context=t}function mm(t){this._context=new bm(t)}function bm(t){this._context=t}function Gv(t){return new K0(t)}function Xv(t){return new mm(t)}function vm(t){this._context=t}function _m(t){var e,r,a=t.length-1,o=new Array(a),s=new Array(a),h=new Array(a);for(o[0]=0,s[0]=2,h[0]=t[0]+2*t[1],e=1;e<a-1;++e)o[e]=1,s[e]=4,h[e]=4*t[e]+2*t[e+1];for(o[a-1]=2,s[a-1]=7,h[a-1]=8*t[a-1]+t[a],e=1;e<a;++e)r=o[e]/s[e-1],s[e]-=r,h[e]-=r*h[e-1];for(o[a-1]=h[a-1]/s[a-1],e=a-2;e>=0;--e)o[e]=(h[e]-o[e+1])/s[e];for(s[a-1]=(t[a]+o[a-1])/2,e=0;e<a-1;++e)s[e]=2*t[e+1]-o[e+1];return[o,s]}function Zv(t){return new vm(t)}function J0(t,e){this._context=t,this._t=e}function Qv(t){return new J0(t,.5)}function Kv(t){return new J0(t,0)}function Jv(t){return new J0(t,1)}function Jl(t,e){if((o=t.length)>1)for(var r,a,o,s=1,h=t[e[0]],f=h.length;s<o;++s)for(a=h,h=t[e[s]],r=0;r<f;++r)h[r][1]+=h[r][0]=isNaN(a[r][1])?a[r][0]:a[r][1]}function tu(t){for(var e=t.length,r=new Array(e);--e>=0;)r[e]=e;return r}function t6(t,e){return t[e]}function e6(t){const e=[];return e.key=t,e}function n6(){var t=er([]),e=tu,r=Jl,a=t6;function o(s){var h,f,m=Array.from(t.apply(this,arguments),e6),v=m.length,C=-1;for(const I of s)for(h=0,++C;h<v;++h)(m[h][C]=[0,+a(I,m[h].key,C,s)]).data=I;for(h=0,f=H0(e(m));h<v;++h)m[f[h]].index=h;return r(m,f),m}return o.keys=function(s){return arguments.length?(t=typeof s=="function"?s:er(Array.from(s)),o):t},o.value=function(s){return arguments.length?(a=typeof s=="function"?s:er(+s),o):a},o.order=function(s){return arguments.length?(e=s==null?tu:typeof s=="function"?s:er(Array.from(s)),o):e},o.offset=function(s){return arguments.length?(r=s==null?Jl:s,o):r},o}function r6(t,e){if((a=t.length)>0){for(var r,a,o,s=0,h=t[0].length;s<h;++s){for(o=r=0;r<a;++r)o+=t[r][s][1]||0;if(o)for(r=0;r<a;++r)t[r][s][1]/=o}Jl(t,e)}}function i6(t,e){if((f=t.length)>0)for(var r,a,o,s,h,f,m=0,v=t[e[0]].length;m<v;++m)for(s=h=0,r=0;r<f;++r)(o=(a=t[e[r]][m])[1]-a[0])>0?(a[0]=s,a[1]=s+=o):o<0?(a[1]=h,a[0]=h+=o):(a[0]=0,a[1]=o)}function a6(t,e){if((r=t.length)>0){for(var r,a=0,o=t[e[0]],s=o.length;a<s;++a){for(var h=0,f=0;h<r;++h)f+=t[h][a][1]||0;o[a][1]+=o[a][0]=-f/2}Jl(t,e)}}function o6(t,e){if((o=t.length)>0&&(a=(r=t[e[0]]).length)>0){for(var r,a,o,s=0,h=1;h<a;++h){for(var f=0,m=0,v=0;f<o;++f){for(var C=t[e[f]],I=C[h][1]||0,D=(I-(C[h-1][1]||0))/2,R=0;R<f;++R){var Z=t[e[R]];D+=(Z[h][1]||0)-(Z[h-1][1]||0)}m+=I,v+=D*I}r[h-1][1]+=r[h-1][0]=s,m&&(s-=v/m)}r[h-1][1]+=r[h-1][0]=s,Jl(t,e)}}function xm(t){var e=t.map(s6);return tu(t).sort(function(r,a){return e[r]-e[a]})}function s6(t){for(var e,r=-1,a=0,o=t.length,s=-1/0;++r<o;)(e=+t[r][1])>s&&(s=e,a=r);return a}function km(t){var e=t.map(wm);return tu(t).sort(function(r,a){return e[r]-e[a]})}function wm(t){for(var e,r=0,a=-1,o=t.length;++a<o;)(e=+t[a][1])&&(r+=e);return r}function c6(t){return km(t).reverse()}function l6(t){var e,r,a=t.length,o=t.map(wm),s=xm(t),h=0,f=0,m=[],v=[];for(e=0;e<a;++e)r=s[e],h<f?(h+=o[r],m.push(r)):(f+=o[r],v.push(r));return v.reverse().concat(m)}function u6(t){return tu(t).reverse()}dm.prototype={areaStart:ec,areaEnd:ec,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))}},K0.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:k2(this,this._t0,ym(this,this._t0))}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){var r=NaN;if(e=+e,(t=+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,k2(this,ym(this,r=gm(this,t,e)),r);break;default:k2(this,this._t0,r=gm(this,t,e))}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=r}}},(mm.prototype=Object.create(K0.prototype)).point=function(t,e){K0.prototype.point.call(this,e,t)},bm.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,r,a,o,s){this._context.bezierCurveTo(e,t,a,r,s,o)}},vm.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,r=t.length;if(r)if(this._line?this._context.lineTo(t[0],e[0]):this._context.moveTo(t[0],e[0]),r===2)this._context.lineTo(t[1],e[1]);else for(var a=_m(t),o=_m(e),s=0,h=1;h<r;++s,++h)this._context.bezierCurveTo(a[0][s],o[0][s],a[1][s],o[1][s],t[h],e[h]);(this._line||this._line!==0&&r===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)}},J0.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 r=this._x*(1-this._t)+t*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,e)}}this._x=t,this._y=e}};var Tm="%Y-%m-%dT%H:%M:%S.%LZ",h6=Date.prototype.toISOString?function(t){return t.toISOString()}:j0(Tm);const f6=h6;var d6=+new Date("2000-01-01T00:00:00.000Z")?function(t){var e=new Date(t);return isNaN(e)?null:e}:i2(Tm);const p6=d6;function g6(t,e,r){var a=new _c,o=e;return e==null?(a.restart(t,e,r),a):(a._restart=a.restart,a.restart=function(s,h,f){h=+h,f=f==null?vc():+f,a._restart(function m(v){v+=o,a._restart(m,o+=h,f),s(v)},h,f)},a.restart(t,e,r),a)}const tf=t=>()=>t;function y6(t,{sourceEvent:e,target:r,transform:a,dispatch:o}){Object.defineProperties(this,{type:{value:t,enumerable:!0,configurable:!0},sourceEvent:{value:e,enumerable:!0,configurable:!0},target:{value:r,enumerable:!0,configurable:!0},transform:{value:a,enumerable:!0,configurable:!0},_:{value:o}})}function Zo(t,e,r){this.k=t,this.x=e,this.y=r}Zo.prototype={constructor:Zo,scale:function(t){return t===1?this:new Zo(this.k*t,this.x,this.y)},translate:function(t,e){return t===0&e===0?this:new Zo(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 ef=new Zo(1,0,0);function Em(t){for(;!t.__zoom;)if(!(t=t.parentNode))return ef;return t.__zoom}function w2(t){t.stopImmediatePropagation()}function Hh(t){t.preventDefault(),t.stopImmediatePropagation()}function m6(t){return!(t.ctrlKey&&t.type!=="wheel"||t.button)}function b6(){var t=this;return t instanceof SVGElement?(t=t.ownerSVGElement||t).hasAttribute("viewBox")?[[(t=t.viewBox.baseVal).x,t.y],[t.x+t.width,t.y+t.height]]:[[0,0],[t.width.baseVal.value,t.height.baseVal.value]]:[[0,0],[t.clientWidth,t.clientHeight]]}function Sm(){return this.__zoom||ef}function v6(t){return-t.deltaY*(t.deltaMode===1?.05:t.deltaMode?1:.002)*(t.ctrlKey?10:1)}function _6(){return navigator.maxTouchPoints||"ontouchstart"in this}function x6(t,e,r){var a=t.invertX(e[0][0])-r[0][0],o=t.invertX(e[1][0])-r[1][0],s=t.invertY(e[0][1])-r[0][1],h=t.invertY(e[1][1])-r[1][1];return t.translate(o>a?(a+o)/2:Math.min(0,a)||Math.max(0,o),h>s?(s+h)/2:Math.min(0,s)||Math.max(0,h))}function k6(){var t,e,r,a=m6,o=b6,s=x6,h=v6,f=_6,m=[0,1/0],v=[[-1/0,-1/0],[1/0,1/0]],C=250,I=Wp,D=nr("start","zoom","end"),R=500,Z=0,U=10;function $(gt){gt.property("__zoom",Sm).on("wheel.zoom",Jt,{passive:!1}).on("mousedown.zoom",ye).on("dblclick.zoom",Ut).filter(f).on("touchstart.zoom",Pt).on("touchmove.zoom",jt).on("touchend.zoom touchcancel.zoom",zt).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function W(gt,Bt){return(Bt=Math.max(m[0],Math.min(m[1],Bt)))===gt.k?gt:new Zo(Bt,gt.x,gt.y)}function it(gt,Bt,Vt){var ae=Bt[0]-Vt[0]*gt.k,we=Bt[1]-Vt[1]*gt.k;return ae===gt.x&&we===gt.y?gt:new Zo(gt.k,ae,we)}function nt(gt){return[(+gt[0][0]+ +gt[1][0])/2,(+gt[0][1]+ +gt[1][1])/2]}function rt(gt,Bt,Vt,ae){gt.on("start.zoom",function(){lt(this,arguments).event(ae).start()}).on("interrupt.zoom end.zoom",function(){lt(this,arguments).event(ae).end()}).tween("zoom",function(){var we=this,ze=arguments,He=lt(we,ze).event(ae),dn=o.apply(we,ze),Ge=Vt==null?nt(dn):typeof Vt=="function"?Vt.apply(we,ze):Vt,Yn=Math.max(dn[1][0]-dn[0][0],dn[1][1]-dn[0][1]),Wn=we.__zoom,Cn=typeof Bt=="function"?Bt.apply(we,ze):Bt,Ln=I(Wn.invert(Ge).concat(Yn/Wn.k),Cn.invert(Ge).concat(Yn/Cn.k));return function(wr){if(wr===1)wr=Cn;else{var ir=Ln(wr),Oa=Yn/ir[2];wr=new Zo(Oa,Ge[0]-ir[0]*Oa,Ge[1]-ir[1]*Oa)}He.zoom(null,wr)}})}function lt(gt,Bt,Vt){return!Vt&&gt.__zooming||new pt(gt,Bt)}function pt(gt,Bt){this.that=gt,this.args=Bt,this.active=0,this.sourceEvent=null,this.extent=o.apply(gt,Bt),this.taps=0}function Jt(gt,...Bt){if(a.apply(this,arguments)){var Vt=lt(this,Bt).event(gt),ae=this.__zoom,we=Math.max(m[0],Math.min(m[1],ae.k*Math.pow(2,h.apply(this,arguments)))),ze=sa(gt);if(Vt.wheel)Vt.mouse[0][0]===ze[0]&&Vt.mouse[0][1]===ze[1]||(Vt.mouse[1]=ae.invert(Vt.mouse[0]=ze)),clearTimeout(Vt.wheel);else{if(ae.k===we)return;Vt.mouse=[ze,ae.invert(ze)],Ja(this),Vt.start()}Hh(gt),Vt.wheel=setTimeout(He,150),Vt.zoom("mouse",s(it(W(ae,we),Vt.mouse[0],Vt.mouse[1]),Vt.extent,v))}function He(){Vt.wheel=null,Vt.end()}}function ye(gt,...Bt){if(!r&&a.apply(this,arguments)){var Vt=gt.currentTarget,ae=lt(this,Bt,!0).event(gt),we=kr(gt.view).on("mousemove.zoom",Ge,!0).on("mouseup.zoom",Yn,!0),ze=sa(gt,Vt),He=gt.clientX,dn=gt.clientY;po(gt.view),w2(gt),ae.mouse=[ze,this.__zoom.invert(ze)],Ja(this),ae.start()}function Ge(Wn){if(Hh(Wn),!ae.moved){var Cn=Wn.clientX-He,Ln=Wn.clientY-dn;ae.moved=Cn*Cn+Ln*Ln>Z}ae.event(Wn).zoom("mouse",s(it(ae.that.__zoom,ae.mouse[0]=sa(Wn,Vt),ae.mouse[1]),ae.extent,v))}function Yn(Wn){we.on("mousemove.zoom mouseup.zoom",null),go(Wn.view,ae.moved),Hh(Wn),ae.event(Wn).end()}}function Ut(gt,...Bt){if(a.apply(this,arguments)){var Vt=this.__zoom,ae=sa(gt.changedTouches?gt.changedTouches[0]:gt,this),we=Vt.invert(ae),ze=Vt.k*(gt.shiftKey?.5:2),He=s(it(W(Vt,ze),ae,we),o.apply(this,Bt),v);Hh(gt),C>0?kr(this).transition().duration(C).call(rt,He,ae,gt):kr(this).call($.transform,He,ae,gt)}}function Pt(gt,...Bt){if(a.apply(this,arguments)){var Vt,ae,we,ze,He=gt.touches,dn=He.length,Ge=lt(this,Bt,gt.changedTouches.length===dn).event(gt);for(w2(gt),ae=0;ae<dn;++ae)ze=[ze=sa(we=He[ae],this),this.__zoom.invert(ze),we.identifier],Ge.touch0?Ge.touch1||Ge.touch0[2]===ze[2]||(Ge.touch1=ze,Ge.taps=0):(Ge.touch0=ze,Vt=!0,Ge.taps=1+!!t);t&&(t=clearTimeout(t)),Vt&&(Ge.taps<2&&(e=ze[0],t=setTimeout(function(){t=null},R)),Ja(this),Ge.start())}}function jt(gt,...Bt){if(this.__zooming){var Vt,ae,we,ze,He=lt(this,Bt).event(gt),dn=gt.changedTouches,Ge=dn.length;for(Hh(gt),Vt=0;Vt<Ge;++Vt)we=sa(ae=dn[Vt],this),He.touch0&&He.touch0[2]===ae.identifier?He.touch0[0]=we:He.touch1&&He.touch1[2]===ae.identifier&&(He.touch1[0]=we);if(ae=He.that.__zoom,He.touch1){var Yn=He.touch0[0],Wn=He.touch0[1],Cn=He.touch1[0],Ln=He.touch1[1],wr=(wr=Cn[0]-Yn[0])*wr+(wr=Cn[1]-Yn[1])*wr,ir=(ir=Ln[0]-Wn[0])*ir+(ir=Ln[1]-Wn[1])*ir;ae=W(ae,Math.sqrt(wr/ir)),we=[(Yn[0]+Cn[0])/2,(Yn[1]+Cn[1])/2],ze=[(Wn[0]+Ln[0])/2,(Wn[1]+Ln[1])/2]}else{if(!He.touch0)return;we=He.touch0[0],ze=He.touch0[1]}He.zoom("touch",s(it(ae,we,ze),He.extent,v))}}function zt(gt,...Bt){if(this.__zooming){var Vt,ae,we=lt(this,Bt).event(gt),ze=gt.changedTouches,He=ze.length;for(w2(gt),r&&clearTimeout(r),r=setTimeout(function(){r=null},R),Vt=0;Vt<He;++Vt)ae=ze[Vt],we.touch0&&we.touch0[2]===ae.identifier?delete we.touch0:we.touch1&&we.touch1[2]===ae.identifier&&delete we.touch1;if(we.touch1&&!we.touch0&&(we.touch0=we.touch1,delete we.touch1),we.touch0)we.touch0[1]=this.__zoom.invert(we.touch0[0]);else if(we.end(),we.taps===2&&(ae=sa(ae,this),Math.hypot(e[0]-ae[0],e[1]-ae[1])<U)){var dn=kr(this).on("dblclick.zoom");dn&&dn.apply(this,arguments)}}}return $.transform=function(gt,Bt,Vt,ae){var we=gt.selection?gt.selection():gt;we.property("__zoom",Sm),gt!==we?rt(gt,Bt,Vt,ae):we.interrupt().each(function(){lt(this,arguments).event(ae).start().zoom(null,typeof Bt=="function"?Bt.apply(this,arguments):Bt).end()})},$.scaleBy=function(gt,Bt,Vt,ae){$.scaleTo(gt,function(){var we=this.__zoom.k,ze=typeof Bt=="function"?Bt.apply(this,arguments):Bt;return we*ze},Vt,ae)},$.scaleTo=function(gt,Bt,Vt,ae){$.transform(gt,function(){var we=o.apply(this,arguments),ze=this.__zoom,He=Vt==null?nt(we):typeof Vt=="function"?Vt.apply(this,arguments):Vt,dn=ze.invert(He),Ge=typeof Bt=="function"?Bt.apply(this,arguments):Bt;return s(it(W(ze,Ge),He,dn),we,v)},Vt,ae)},$.translateBy=function(gt,Bt,Vt,ae){$.transform(gt,function(){return s(this.__zoom.translate(typeof Bt=="function"?Bt.apply(this,arguments):Bt,typeof Vt=="function"?Vt.apply(this,arguments):Vt),o.apply(this,arguments),v)},null,ae)},$.translateTo=function(gt,Bt,Vt,ae,we){$.transform(gt,function(){var ze=o.apply(this,arguments),He=this.__zoom,dn=ae==null?nt(ze):typeof ae=="function"?ae.apply(this,arguments):ae;return s(ef.translate(dn[0],dn[1]).scale(He.k).translate(typeof Bt=="function"?-Bt.apply(this,arguments):-Bt,typeof Vt=="function"?-Vt.apply(this,arguments):-Vt),ze,v)},ae,we)},pt.prototype={event:function(gt){return gt&&(this.sourceEvent=gt),this},start:function(){return++this.active==1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(gt,Bt){return this.mouse&&gt!=="mouse"&&(this.mouse[1]=Bt.invert(this.mouse[0])),this.touch0&&gt!=="touch"&&(this.touch0[1]=Bt.invert(this.touch0[0])),this.touch1&&gt!=="touch"&&(this.touch1[1]=Bt.invert(this.touch1[0])),this.that.__zoom=Bt,this.emit("zoom"),this},end:function(){return--this.active==0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(gt){var Bt=kr(this.that).datum();D.call(gt,this.that,new y6(gt,{sourceEvent:this.sourceEvent,target:$,type:gt,transform:this.that.__zoom,dispatch:D}),Bt)}},$.wheelDelta=function(gt){return arguments.length?(h=typeof gt=="function"?gt:tf(+gt),$):h},$.filter=function(gt){return arguments.length?(a=typeof gt=="function"?gt:tf(!!gt),$):a},$.touchable=function(gt){return arguments.length?(f=typeof gt=="function"?gt:tf(!!gt),$):f},$.extent=function(gt){return arguments.length?(o=typeof gt=="function"?gt:tf([[+gt[0][0],+gt[0][1]],[+gt[1][0],+gt[1][1]]]),$):o},$.scaleExtent=function(gt){return arguments.length?(m[0]=+gt[0],m[1]=+gt[1],$):[m[0],m[1]]},$.translateExtent=function(gt){return arguments.length?(v[0][0]=+gt[0][0],v[1][0]=+gt[1][0],v[0][1]=+gt[0][1],v[1][1]=+gt[1][1],$):[[v[0][0],v[0][1]],[v[1][0],v[1][1]]]},$.constrain=function(gt){return arguments.length?(s=gt,$):s},$.duration=function(gt){return arguments.length?(C=+gt,$):C},$.interpolate=function(gt){return arguments.length?(I=gt,$):I},$.on=function(){var gt=D.on.apply(D,arguments);return gt===D?$:gt},$.clickDistance=function(gt){return arguments.length?(Z=(gt=+gt)*gt,$):Math.sqrt(Z)},$.tapDistance=function(gt){return arguments.length?(U=+gt,$):U},$}Em.prototype=Zo.prototype}},T2={};function Ga(M){var z=T2[M];if(z!==void 0)return z.exports;var p=T2[M]={id:M,loaded:!1,exports:{}};return E6[M].call(p.exports,p,p.exports,Ga),p.loaded=!0,p.exports}Ga.c=T2,Ga.n=M=>{var z=M&&M.__esModule?()=>M.default:()=>M;return Ga.d(z,{a:z}),z},Ga.d=(M,z)=>{for(var p in z)Ga.o(z,p)&&!Ga.o(M,p)&&Object.defineProperty(M,p,{enumerable:!0,get:z[p]})},Ga.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch{if(typeof window=="object")return window}}(),Ga.o=(M,z)=>Object.prototype.hasOwnProperty.call(M,z),Ga.r=M=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(M,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(M,"__esModule",{value:!0})},Ga.nmd=M=>(M.paths=[],M.children||(M.children=[]),M);var S6=Ga(Ga.s=6187).Z;export{S6 as default};