gitea_hat/public/js/mermaid.081bbd49.js

1256 lines
1.1 MiB
Raw Permalink 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.

"use strict";(self.webpackChunkgitea=self.webpackChunkgitea||[]).push([["mermaid"],{"./node_modules/mermaid/dist/mermaid.esm.min.mjs":function(M6,E2,S2){S2.r(E2),S2.d(E2,{default:function(){return Om}});var Nm={2536:(M,z,p)=>{M=p.nmd(M);var b=function(){var u=function(De,Qe,Ge,Se){for(Ge=Ge||{},Se=De.length;Se--;Ge[De[Se]]=Qe);return Ge},_=[1,6],g=[1,7],E=[1,8],A=[1,9],T=[1,16],F=[1,11],O=[1,12],P=[1,13],V=[1,14],J=[1,15],tt=[1,27],ht=[1,33],et=[1,34],wt=[1,35],at=[1,36],ut=[1,37],vt=[1,72],Qt=[1,73],Vt=[1,74],kt=[1,75],It=[1,76],Tt=[1,77],mt=[1,78],X=[1,38],ot=[1,39],j=[1,40],yt=[1,41],Y=[1,42],bt=[1,43],At=[1,44],Ut=[1,45],me=[1,46],Ye=[1,47],ke=[1,48],pe=[1,49],xe=[1,50],Ae=[1,51],Ne=[1,52],be=[1,53],kn=[1,54],he=[1,55],Ze=[1,56],re=[1,57],Xt=[1,59],se=[1,60],St=[1,61],ee=[1,62],st=[1,63],dt=[1,64],ft=[1,65],Dt=[1,66],ue=[1,67],Oe=[1,68],en=[1,69],$e=[24,52],cn=[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],Ee=[1,94],Be=[1,95],Le=[1,96],ge=[1,97],ie=[15,24,52],An=[7,8,9,10,18,22,25,26,27,28],Ie=[15,24,43,52],un=[15,24,43,52,86,87,89,90],ze=[15,43],pn=[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],tr={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(De,Qe,Ge,Se,vn,Mt,vr){var zt=Mt.length-1;switch(vn){case 4:Se.setDirection("TB");break;case 5:Se.setDirection("BT");break;case 6:Se.setDirection("RL");break;case 7:Se.setDirection("LR");break;case 11:console.log("open_directive: ",Mt[zt]),Se.parseDirective("%%{","open_directive");break;case 12:break;case 13:Mt[zt]=Mt[zt].trim().replace(/'/g,'"'),console.log("arg_directive: ",Mt[zt]),Se.parseDirective(Mt[zt],"arg_directive");break;case 14:console.log("close_directive: ",Mt[zt]),Se.parseDirective("}%%","close_directive","c4Context");break;case 15:case 16:case 17:case 18:case 19:Se.setC4Type(Mt[zt-3]);break;case 26:Se.setTitle(Mt[zt].substring(6)),this.$=Mt[zt].substring(6);break;case 27:Se.setAccDescription(Mt[zt].substring(15)),this.$=Mt[zt].substring(15);break;case 28:this.$=Mt[zt].trim(),Se.setTitle(this.$);break;case 29:case 30:this.$=Mt[zt].trim(),Se.setAccDescription(this.$);break;case 35:case 36:console.log(Mt[zt-1],JSON.stringify(Mt[zt])),Mt[zt].splice(2,0,"ENTERPRISE"),Se.addPersonOrSystemBoundary(...Mt[zt]),this.$=Mt[zt];break;case 37:console.log(Mt[zt-1],JSON.stringify(Mt[zt])),Se.addPersonOrSystemBoundary(...Mt[zt]),this.$=Mt[zt];break;case 38:console.log(Mt[zt-1],JSON.stringify(Mt[zt])),Mt[zt].splice(2,0,"CONTAINER"),Se.addContainerBoundary(...Mt[zt]),this.$=Mt[zt];break;case 39:console.log(Mt[zt-1],JSON.stringify(Mt[zt])),Se.addDeploymentNode("node",...Mt[zt]),this.$=Mt[zt];break;case 40:console.log(Mt[zt-1],JSON.stringify(Mt[zt])),Se.addDeploymentNode("nodeL",...Mt[zt]),this.$=Mt[zt];break;case 41:console.log(Mt[zt-1],JSON.stringify(Mt[zt])),Se.addDeploymentNode("nodeR",...Mt[zt]),this.$=Mt[zt];break;case 42:Se.popBoundaryParseStack();break;case 46:console.log(Mt[zt-1],JSON.stringify(Mt[zt])),Se.addPersonOrSystem("person",...Mt[zt]),this.$=Mt[zt];break;case 47:console.log(Mt[zt-1],JSON.stringify(Mt[zt])),Se.addPersonOrSystem("external_person",...Mt[zt]),this.$=Mt[zt];break;case 48:console.log(Mt[zt-1],JSON.stringify(Mt[zt])),Se.addPersonOrSystem("system",...Mt[zt]),this.$=Mt[zt];break;case 49:console.log(Mt[zt-1],JSON.stringify(Mt[zt])),Se.addPersonOrSystem("system_db",...Mt[zt]),this.$=Mt[zt];break;case 50:console.log(Mt[zt-1],JSON.stringify(Mt[zt])),Se.addPersonOrSystem("system_queue",...Mt[zt]),this.$=Mt[zt];break;case 51:console.log(Mt[zt-1],JSON.stringify(Mt[zt])),Se.addPersonOrSystem("external_system",...Mt[zt]),this.$=Mt[zt];break;case 52:console.log(Mt[zt-1],JSON.stringify(Mt[zt])),Se.addPersonOrSystem("external_system_db",...Mt[zt]),this.$=Mt[zt];break;case 53:console.log(Mt[zt-1],JSON.stringify(Mt[zt])),Se.addPersonOrSystem("external_system_queue",...Mt[zt]),this.$=Mt[zt];break;case 54:console.log(Mt[zt-1],JSON.stringify(Mt[zt])),Se.addContainer("container",...Mt[zt]),this.$=Mt[zt];break;case 55:console.log(Mt[zt-1],JSON.stringify(Mt[zt])),Se.addContainer("container_db",...Mt[zt]),this.$=Mt[zt];break;case 56:console.log(Mt[zt-1],JSON.stringify(Mt[zt])),Se.addContainer("container_queue",...Mt[zt]),this.$=Mt[zt];break;case 57:console.log(Mt[zt-1],JSON.stringify(Mt[zt])),Se.addContainer("external_container",...Mt[zt]),this.$=Mt[zt];break;case 58:console.log(Mt[zt-1],JSON.stringify(Mt[zt])),Se.addContainer("external_container_db",...Mt[zt]),this.$=Mt[zt];break;case 59:console.log(Mt[zt-1],JSON.stringify(Mt[zt])),Se.addContainer("external_container_queue",...Mt[zt]),this.$=Mt[zt];break;case 60:console.log(Mt[zt-1],JSON.stringify(Mt[zt])),Se.addComponent("component",...Mt[zt]),this.$=Mt[zt];break;case 61:console.log(Mt[zt-1],JSON.stringify(Mt[zt])),Se.addComponent("component_db",...Mt[zt]),this.$=Mt[zt];break;case 62:console.log(Mt[zt-1],JSON.stringify(Mt[zt])),Se.addComponent("component_queue",...Mt[zt]),this.$=Mt[zt];break;case 63:console.log(Mt[zt-1],JSON.stringify(Mt[zt])),Se.addComponent("external_component",...Mt[zt]),this.$=Mt[zt];break;case 64:console.log(Mt[zt-1],JSON.stringify(Mt[zt])),Se.addComponent("external_component_db",...Mt[zt]),this.$=Mt[zt];break;case 65:console.log(Mt[zt-1],JSON.stringify(Mt[zt])),Se.addComponent("external_component_queue",...Mt[zt]),this.$=Mt[zt];break;case 67:console.log(Mt[zt-1],JSON.stringify(Mt[zt])),Se.addRel("rel",...Mt[zt]),this.$=Mt[zt];break;case 68:console.log(Mt[zt-1],JSON.stringify(Mt[zt])),Se.addRel("birel",...Mt[zt]),this.$=Mt[zt];break;case 69:console.log(Mt[zt-1],JSON.stringify(Mt[zt])),Se.addRel("rel_u",...Mt[zt]),this.$=Mt[zt];break;case 70:console.log(Mt[zt-1],JSON.stringify(Mt[zt])),Se.addRel("rel_d",...Mt[zt]),this.$=Mt[zt];break;case 71:console.log(Mt[zt-1],JSON.stringify(Mt[zt])),Se.addRel("rel_l",...Mt[zt]),this.$=Mt[zt];break;case 72:console.log(Mt[zt-1],JSON.stringify(Mt[zt])),Se.addRel("rel_r",...Mt[zt]),this.$=Mt[zt];break;case 73:console.log(Mt[zt-1],JSON.stringify(Mt[zt])),Se.addRel("rel_b",...Mt[zt]),this.$=Mt[zt];break;case 74:console.log(Mt[zt-1],JSON.stringify(Mt[zt])),Mt[zt].splice(0,1),Se.addRel("rel",...Mt[zt]),this.$=Mt[zt];break;case 75:console.log(Mt[zt-1],JSON.stringify(Mt[zt])),Se.updateElStyle("update_el_style",...Mt[zt]),this.$=Mt[zt];break;case 76:console.log(Mt[zt-1],JSON.stringify(Mt[zt])),Se.updateRelStyle("update_rel_style",...Mt[zt]),this.$=Mt[zt];break;case 77:console.log(Mt[zt-1],JSON.stringify(Mt[zt])),Se.updateLayoutConfig("update_layout_config",...Mt[zt]),this.$=Mt[zt];break;case 78:console.log("PUSH ATTRIBUTE: ",Mt[zt]),this.$=[Mt[zt]];break;case 79:console.log("PUSH ATTRIBUTE: ",Mt[zt-1]),Mt[zt].unshift(Mt[zt-1]),this.$=Mt[zt];break;case 80:case 82:this.$=Mt[zt].trim();break;case 81:console.log("kv: ",Mt[zt-1],Mt[zt]);let Wn={};Wn[Mt[zt-1].trim()]=Mt[zt].trim(),this.$=Wn;break;case 83:this.$=""}},table:[{3:1,4:2,5:3,6:4,7:_,8:g,9:E,10:A,11:5,12:10,18:T,22:F,25:O,26:P,27:V,28:J},{1:[3]},{1:[2,1]},{1:[2,2]},{3:17,4:2,5:3,6:4,7:_,8:g,9:E,10:A,11:5,12:10,18:T,22:F,25:O,26:P,27:V,28:J},{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:tt},u([16,21],[2,12]),{23:28,29:29,30:30,31:31,32:ht,33:et,34:wt,36:at,38:ut,39:58,40:70,42:71,44:vt,46:Qt,47:Vt,48:kt,49:It,50:Tt,51:mt,53:32,54:X,55:ot,56:j,57:yt,58:Y,59:bt,60:At,61:Ut,62:me,63:Ye,64:ke,65:pe,66:xe,67:Ae,68:Ne,69:be,70:kn,71:he,72:Ze,73:re,74:Xt,75:se,76:St,77:ee,78:st,79:dt,80:ft,81:Dt,82:ue,83:Oe,84:en},{23:79,29:29,30:30,31:31,32:ht,33:et,34:wt,36:at,38:ut,39:58,40:70,42:71,44:vt,46:Qt,47:Vt,48:kt,49:It,50:Tt,51:mt,53:32,54:X,55:ot,56:j,57:yt,58:Y,59:bt,60:At,61:Ut,62:me,63:Ye,64:ke,65:pe,66:xe,67:Ae,68:Ne,69:be,70:kn,71:he,72:Ze,73:re,74:Xt,75:se,76:St,77:ee,78:st,79:dt,80:ft,81:Dt,82:ue,83:Oe,84:en},{23:80,29:29,30:30,31:31,32:ht,33:et,34:wt,36:at,38:ut,39:58,40:70,42:71,44:vt,46:Qt,47:Vt,48:kt,49:It,50:Tt,51:mt,53:32,54:X,55:ot,56:j,57:yt,58:Y,59:bt,60:At,61:Ut,62:me,63:Ye,64:ke,65:pe,66:xe,67:Ae,68:Ne,69:be,70:kn,71:he,72:Ze,73:re,74:Xt,75:se,76:St,77:ee,78:st,79:dt,80:ft,81:Dt,82:ue,83:Oe,84:en},{23:81,29:29,30:30,31:31,32:ht,33:et,34:wt,36:at,38:ut,39:58,40:70,42:71,44:vt,46:Qt,47:Vt,48:kt,49:It,50:Tt,51:mt,53:32,54:X,55:ot,56:j,57:yt,58:Y,59:bt,60:At,61:Ut,62:me,63:Ye,64:ke,65:pe,66:xe,67:Ae,68:Ne,69:be,70:kn,71:he,72:Ze,73:re,74:Xt,75:se,76:St,77:ee,78:st,79:dt,80:ft,81:Dt,82:ue,83:Oe,84:en},{23:82,29:29,30:30,31:31,32:ht,33:et,34:wt,36:at,38:ut,39:58,40:70,42:71,44:vt,46:Qt,47:Vt,48:kt,49:It,50:Tt,51:mt,53:32,54:X,55:ot,56:j,57:yt,58:Y,59:bt,60:At,61:Ut,62:me,63:Ye,64:ke,65:pe,66:xe,67:Ae,68:Ne,69:be,70:kn,71:he,72:Ze,73:re,74:Xt,75:se,76:St,77:ee,78:st,79:dt,80:ft,81:Dt,82:ue,83:Oe,84:en},{15:[1,83]},{17:84,20:[1,85]},{15:[2,14]},{24:[1,86]},u($e,[2,20],{53:32,39:58,40:70,42:71,30:87,44:vt,46:Qt,47:Vt,48:kt,49:It,50:Tt,51:mt,54:X,55:ot,56:j,57:yt,58:Y,59:bt,60:At,61:Ut,62:me,63:Ye,64:ke,65:pe,66:xe,67:Ae,68:Ne,69:be,70:kn,71:he,72:Ze,73:re,74:Xt,75:se,76:St,77:ee,78:st,79:dt,80:ft,81:Dt,82:ue,83:Oe,84:en}),u($e,[2,21]),u(cn,[2,23],{15:[1,88]}),u($e,[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:Ee,87:Be,89:Le,90:ge},{45:98,85:93,86:Ee,87:Be,89:Le,90:ge},{45:99,85:93,86:Ee,87:Be,89:Le,90:ge},{45:100,85:93,86:Ee,87:Be,89:Le,90:ge},{45:101,85:93,86:Ee,87:Be,89:Le,90:ge},{45:102,85:93,86:Ee,87:Be,89:Le,90:ge},{45:103,85:93,86:Ee,87:Be,89:Le,90:ge},{45:104,85:93,86:Ee,87:Be,89:Le,90:ge},{45:105,85:93,86:Ee,87:Be,89:Le,90:ge},{45:106,85:93,86:Ee,87:Be,89:Le,90:ge},{45:107,85:93,86:Ee,87:Be,89:Le,90:ge},{45:108,85:93,86:Ee,87:Be,89:Le,90:ge},{45:109,85:93,86:Ee,87:Be,89:Le,90:ge},{45:110,85:93,86:Ee,87:Be,89:Le,90:ge},{45:111,85:93,86:Ee,87:Be,89:Le,90:ge},{45:112,85:93,86:Ee,87:Be,89:Le,90:ge},{45:113,85:93,86:Ee,87:Be,89:Le,90:ge},{45:114,85:93,86:Ee,87:Be,89:Le,90:ge},{45:115,85:93,86:Ee,87:Be,89:Le,90:ge},{45:116,85:93,86:Ee,87:Be,89:Le,90:ge},u(ie,[2,66]),{45:117,85:93,86:Ee,87:Be,89:Le,90:ge},{45:118,85:93,86:Ee,87:Be,89:Le,90:ge},{45:119,85:93,86:Ee,87:Be,89:Le,90:ge},{45:120,85:93,86:Ee,87:Be,89:Le,90:ge},{45:121,85:93,86:Ee,87:Be,89:Le,90:ge},{45:122,85:93,86:Ee,87:Be,89:Le,90:ge},{45:123,85:93,86:Ee,87:Be,89:Le,90:ge},{45:124,85:93,86:Ee,87:Be,89:Le,90:ge},{45:125,85:93,86:Ee,87:Be,89:Le,90:ge},{45:126,85:93,86:Ee,87:Be,89:Le,90:ge},{45:127,85:93,86:Ee,87:Be,89:Le,90:ge},{30:128,39:58,40:70,42:71,44:vt,46:Qt,47:Vt,48:kt,49:It,50:Tt,51:mt,53:32,54:X,55:ot,56:j,57:yt,58:Y,59:bt,60:At,61:Ut,62:me,63:Ye,64:ke,65:pe,66:xe,67:Ae,68:Ne,69:be,70:kn,71:he,72:Ze,73:re,74:Xt,75:se,76:St,77:ee,78:st,79:dt,80:ft,81:Dt,82:ue,83:Oe,84:en},{15:[1,130],43:[1,129]},{45:131,85:93,86:Ee,87:Be,89:Le,90:ge},{45:132,85:93,86:Ee,87:Be,89:Le,90:ge},{45:133,85:93,86:Ee,87:Be,89:Le,90:ge},{45:134,85:93,86:Ee,87:Be,89:Le,90:ge},{45:135,85:93,86:Ee,87:Be,89:Le,90:ge},{45:136,85:93,86:Ee,87:Be,89:Le,90:ge},{45:137,85:93,86:Ee,87:Be,89:Le,90:ge},{24:[1,138]},{24:[1,139]},{24:[1,140]},{24:[1,141]},u(An,[2,9]),{14:142,21:tt},{21:[2,13]},{1:[2,15]},u($e,[2,22]),u(cn,[2,24],{31:31,29:143,32:ht,33:et,34:wt,36:at,38:ut}),u($e,[2,44],{29:29,30:30,31:31,53:32,39:58,40:70,42:71,23:144,32:ht,33:et,34:wt,36:at,38:ut,44:vt,46:Qt,47:Vt,48:kt,49:It,50:Tt,51:mt,54:X,55:ot,56:j,57:yt,58:Y,59:bt,60:At,61:Ut,62:me,63:Ye,64:ke,65:pe,66:xe,67:Ae,68:Ne,69:be,70:kn,71:he,72:Ze,73:re,74:Xt,75:se,76:St,77:ee,78:st,79:dt,80:ft,81:Dt,82:ue,83:Oe,84:en}),u(Fe,[2,28]),u(Fe,[2,29]),u(ie,[2,46]),u(Ie,[2,78],{85:93,45:145,86:Ee,87:Be,89:Le,90:ge}),u(un,[2,80]),{88:[1,146]},u(un,[2,82]),u(un,[2,83]),u(ie,[2,47]),u(ie,[2,48]),u(ie,[2,49]),u(ie,[2,50]),u(ie,[2,51]),u(ie,[2,52]),u(ie,[2,53]),u(ie,[2,54]),u(ie,[2,55]),u(ie,[2,56]),u(ie,[2,57]),u(ie,[2,58]),u(ie,[2,59]),u(ie,[2,60]),u(ie,[2,61]),u(ie,[2,62]),u(ie,[2,63]),u(ie,[2,64]),u(ie,[2,65]),u(ie,[2,67]),u(ie,[2,68]),u(ie,[2,69]),u(ie,[2,70]),u(ie,[2,71]),u(ie,[2,72]),u(ie,[2,73]),u(ie,[2,74]),u(ie,[2,75]),u(ie,[2,76]),u(ie,[2,77]),{41:147,52:[1,148]},{15:[1,149]},{43:[1,150]},u(ze,[2,35]),u(ze,[2,36]),u(ze,[2,37]),u(ze,[2,38]),u(ze,[2,39]),u(ze,[2,40]),u(ze,[2,41]),{1:[2,16]},{1:[2,17]},{1:[2,18]},{1:[2,19]},{15:[1,151]},u(cn,[2,25]),u($e,[2,45]),u(Ie,[2,79]),u(un,[2,81]),u(ie,[2,31]),u(ie,[2,42]),u(pn,[2,32]),u(pn,[2,33],{15:[1,152]}),u(An,[2,10]),u(pn,[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(De,Qe){if(!Qe.recoverable){var Ge=new Error(De);throw Ge.hash=Qe,Ge}this.trace(De)},parse:function(De){var Qe=this,Ge=[0],Se=[],vn=[null],Mt=[],vr=this.table,zt="",Wn=0,jn=0,Hn=0,Mn=2,Gn=1,Rn=Mt.slice.call(arguments,1),En=Object.create(this.lexer),Pn={yy:{}};for(var zn in this.yy)Object.prototype.hasOwnProperty.call(this.yy,zn)&&(Pn.yy[zn]=this.yy[zn]);En.setInput(De,Pn.yy),Pn.yy.lexer=En,Pn.yy.parser=this,En.yylloc===void 0&&(En.yylloc={});var Yn=En.yylloc;Mt.push(Yn);var ya=En.options&&En.options.ranges;function Br(){var Xn;return typeof(Xn=Se.pop()||En.lex()||Gn)!="number"&&(Xn instanceof Array&&(Xn=(Se=Xn).pop()),Xn=Qe.symbols_[Xn]||Xn),Xn}typeof Pn.yy.parseError=="function"?this.parseError=Pn.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var Tr,Sn,li,Bn,_r,Ar,yr,qr,Nt,Mr={};;){if(li=Ge[Ge.length-1],this.defaultActions[li]?Bn=this.defaultActions[li]:(Tr==null&&(Tr=Br()),Bn=vr[li]&&vr[li][Tr]),Bn===void 0||!Bn.length||!Bn[0]){var Lr="";for(Ar in Nt=[],vr[li])this.terminals_[Ar]&&Ar>Mn&&Nt.push("'"+this.terminals_[Ar]+"'");Lr=En.showPosition?"Parse error on line "+(Wn+1)+`:
`+En.showPosition()+`
Expecting `+Nt.join(", ")+", got '"+(this.terminals_[Tr]||Tr)+"'":"Parse error on line "+(Wn+1)+": Unexpected "+(Tr==Gn?"end of input":"'"+(this.terminals_[Tr]||Tr)+"'"),this.parseError(Lr,{text:En.match,token:this.terminals_[Tr]||Tr,line:En.yylineno,loc:Yn,expected:Nt})}if(Bn[0]instanceof Array&&Bn.length>1)throw new Error("Parse Error: multiple actions possible at state: "+li+", token: "+Tr);switch(Bn[0]){case 1:Ge.push(Tr),vn.push(En.yytext),Mt.push(En.yylloc),Ge.push(Bn[1]),Tr=null,Sn?(Tr=Sn,Sn=null):(jn=En.yyleng,zt=En.yytext,Wn=En.yylineno,Yn=En.yylloc,Hn>0&&Hn--);break;case 2:if(yr=this.productions_[Bn[1]][1],Mr.$=vn[vn.length-yr],Mr._$={first_line:Mt[Mt.length-(yr||1)].first_line,last_line:Mt[Mt.length-1].last_line,first_column:Mt[Mt.length-(yr||1)].first_column,last_column:Mt[Mt.length-1].last_column},ya&&(Mr._$.range=[Mt[Mt.length-(yr||1)].range[0],Mt[Mt.length-1].range[1]]),(_r=this.performAction.apply(Mr,[zt,jn,Wn,Pn.yy,Bn[1],vn,Mt].concat(Rn)))!==void 0)return _r;yr&&(Ge=Ge.slice(0,-1*yr*2),vn=vn.slice(0,-1*yr),Mt=Mt.slice(0,-1*yr)),Ge.push(this.productions_[Bn[1]][0]),vn.push(Mr.$),Mt.push(Mr._$),qr=vr[Ge[Ge.length-2]][Ge[Ge.length-1]],Ge.push(qr);break;case 3:return!0}}return!0}},Dn={EOF:1,parseError:function(De,Qe){if(!this.yy.parser)throw new Error(De);this.yy.parser.parseError(De,Qe)},setInput:function(De,Qe){return this.yy=Qe||this.yy||{},this._input=De,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 De=this._input[0];return this.yytext+=De,this.yyleng++,this.offset++,this.match+=De,this.matched+=De,De.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),De},unput:function(De){var Qe=De.length,Ge=De.split(/(?:\r\n?|\n)/g);this._input=De+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-Qe),this.offset-=Qe;var Se=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),Ge.length-1&&(this.yylineno-=Ge.length-1);var vn=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:Ge?(Ge.length===Se.length?this.yylloc.first_column:0)+Se[Se.length-Ge.length].length-Ge[0].length:this.yylloc.first_column-Qe},this.options.ranges&&(this.yylloc.range=[vn[0],vn[0]+this.yyleng-Qe]),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(De){this.unput(this.match.slice(De))},pastInput:function(){var De=this.matched.substr(0,this.matched.length-this.match.length);return(De.length>20?"...":"")+De.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var De=this.match;return De.length<20&&(De+=this._input.substr(0,20-De.length)),(De.substr(0,20)+(De.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var De=this.pastInput(),Qe=new Array(De.length+1).join("-");return De+this.upcomingInput()+`
`+Qe+"^"},test_match:function(De,Qe){var Ge,Se,vn;if(this.options.backtrack_lexer&&(vn={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&&(vn.yylloc.range=this.yylloc.range.slice(0))),(Se=De[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=Se.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:Se?Se[Se.length-1].length-Se[Se.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+De[0].length},this.yytext+=De[0],this.match+=De[0],this.matches=De,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(De[0].length),this.matched+=De[0],Ge=this.performAction.call(this,this.yy,this,Qe,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),Ge)return Ge;if(this._backtrack){for(var Mt in vn)this[Mt]=vn[Mt];return!1}return!1},next:function(){if(this.done)return this.EOF;var De,Qe,Ge,Se;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var vn=this._currentRules(),Mt=0;Mt<vn.length;Mt++)if((Ge=this._input.match(this.rules[vn[Mt]]))&&(!Qe||Ge[0].length>Qe[0].length)){if(Qe=Ge,Se=Mt,this.options.backtrack_lexer){if((De=this.test_match(Ge,vn[Mt]))!==!1)return De;if(this._backtrack){Qe=!1;continue}return!1}if(!this.options.flex)break}return Qe?(De=this.test_match(Qe,vn[Se]))!==!1&&De: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(De){this.conditionStack.push(De)},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(De){return(De=this.conditionStack.length-1-Math.abs(De||0))>=0?this.conditionStack[De]:"INITIAL"},pushState:function(De){this.begin(De)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(De,Qe,Ge,Se){switch(Ge){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 tr.lexer=Dn,Tn.prototype=tr,tr.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(Xt,se,St,ee){for(St=St||{},ee=Xt.length;ee--;St[Xt[ee]]=se);return St},_=[1,3],g=[1,7],E=[1,8],A=[1,9],T=[1,10],F=[1,13],O=[1,12],P=[1,16,25],V=[1,20],J=[1,31],tt=[1,32],ht=[1,33],et=[1,35],wt=[1,38],at=[1,36],ut=[1,37],vt=[1,39],Qt=[1,40],Vt=[1,41],kt=[1,42],It=[1,45],Tt=[1,46],mt=[1,47],X=[1,48],ot=[16,25],j=[1,62],yt=[1,63],Y=[1,64],bt=[1,65],At=[1,66],Ut=[1,67],me=[1,68],Ye=[16,25,32,44,45,53,56,57,58,59,60,61,62,67,69],ke=[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],xe=[53,84,85,86,87],Ae=[53,61,62,84,85,86,87],Ne=[53,56,57,58,59,60,84,85,86,87],be=[16,25,32],kn=[1,100],he={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(Xt,se,St,ee,st,dt,ft){var Dt=dt.length-1;switch(st){case 5:ee.setDirection("TB");break;case 6:ee.setDirection("BT");break;case 7:ee.setDirection("RL");break;case 8:ee.setDirection("LR");break;case 12:ee.parseDirective("%%{","open_directive");break;case 13:ee.parseDirective(dt[Dt],"type_directive");break;case 14:dt[Dt]=dt[Dt].trim().replace(/'/g,'"'),ee.parseDirective(dt[Dt],"arg_directive");break;case 15:ee.parseDirective("}%%","close_directive","class");break;case 20:case 21:this.$=dt[Dt];break;case 22:this.$=dt[Dt-1]+dt[Dt];break;case 23:case 24:this.$=dt[Dt-1]+"~"+dt[Dt];break;case 25:ee.addRelation(dt[Dt]);break;case 26:dt[Dt-1].title=ee.cleanupLabel(dt[Dt]),ee.addRelation(dt[Dt-1]);break;case 34:this.$=dt[Dt].trim(),ee.setAccTitle(this.$);break;case 35:case 36:this.$=dt[Dt].trim(),ee.setAccDescription(this.$);break;case 37:ee.addClass(dt[Dt]);break;case 38:ee.addClass(dt[Dt-2]),ee.setCssClass(dt[Dt-2],dt[Dt]);break;case 39:ee.addClass(dt[Dt-3]),ee.addMembers(dt[Dt-3],dt[Dt-1]);break;case 40:ee.addClass(dt[Dt-5]),ee.setCssClass(dt[Dt-5],dt[Dt-3]),ee.addMembers(dt[Dt-5],dt[Dt-1]);break;case 41:ee.addAnnotation(dt[Dt],dt[Dt-2]);break;case 42:this.$=[dt[Dt]];break;case 43:dt[Dt].push(dt[Dt-1]),this.$=dt[Dt];break;case 44:case 46:case 47:break;case 45:ee.addMember(dt[Dt-1],ee.cleanupLabel(dt[Dt]));break;case 48:this.$={id1:dt[Dt-2],id2:dt[Dt],relation:dt[Dt-1],relationTitle1:"none",relationTitle2:"none"};break;case 49:this.$={id1:dt[Dt-3],id2:dt[Dt],relation:dt[Dt-1],relationTitle1:dt[Dt-2],relationTitle2:"none"};break;case 50:this.$={id1:dt[Dt-3],id2:dt[Dt],relation:dt[Dt-2],relationTitle1:"none",relationTitle2:dt[Dt-1]};break;case 51:this.$={id1:dt[Dt-4],id2:dt[Dt],relation:dt[Dt-2],relationTitle1:dt[Dt-3],relationTitle2:dt[Dt-1]};break;case 52:this.$={type1:dt[Dt-2],type2:dt[Dt],lineType:dt[Dt-1]};break;case 53:this.$={type1:"none",type2:dt[Dt],lineType:dt[Dt-1]};break;case 54:this.$={type1:dt[Dt-1],type2:"none",lineType:dt[Dt]};break;case 55:this.$={type1:"none",type2:"none",lineType:dt[Dt]};break;case 56:this.$=ee.relationType.AGGREGATION;break;case 57:this.$=ee.relationType.EXTENSION;break;case 58:this.$=ee.relationType.COMPOSITION;break;case 59:this.$=ee.relationType.DEPENDENCY;break;case 60:this.$=ee.relationType.LOLLIPOP;break;case 61:this.$=ee.lineType.LINE;break;case 62:this.$=ee.lineType.DOTTED_LINE;break;case 63:case 69:this.$=dt[Dt-2],ee.setClickEvent(dt[Dt-1],dt[Dt]);break;case 64:case 70:this.$=dt[Dt-3],ee.setClickEvent(dt[Dt-2],dt[Dt-1]),ee.setTooltip(dt[Dt-2],dt[Dt]);break;case 65:case 73:this.$=dt[Dt-2],ee.setLink(dt[Dt-1],dt[Dt]);break;case 66:case 74:this.$=dt[Dt-3],ee.setLink(dt[Dt-2],dt[Dt-1],dt[Dt]);break;case 67:case 75:this.$=dt[Dt-3],ee.setLink(dt[Dt-2],dt[Dt-1]),ee.setTooltip(dt[Dt-2],dt[Dt]);break;case 68:case 76:this.$=dt[Dt-4],ee.setLink(dt[Dt-3],dt[Dt-2],dt[Dt]),ee.setTooltip(dt[Dt-3],dt[Dt-1]);break;case 71:this.$=dt[Dt-3],ee.setClickEvent(dt[Dt-2],dt[Dt-1],dt[Dt]);break;case 72:this.$=dt[Dt-4],ee.setClickEvent(dt[Dt-3],dt[Dt-2],dt[Dt-1]),ee.setTooltip(dt[Dt-3],dt[Dt]);break;case 77:ee.setCssClass(dt[Dt-1],dt[Dt])}},table:[{3:1,4:2,5:_,6:4,7:5,8:g,9:E,10:A,11:T,12:6,13:11,19:F,23:O},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,3]},{3:14,4:2,5:_,6:4,7:5,8:g,9:E,10:A,11:T,12:6,13:11,19:F,23:O},{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:V},u([17,22],[2,13]),{6:30,7:29,8:g,9:E,10:A,11:T,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:J,40:tt,42:ht,43:et,48:wt,50:at,51:ut,63:vt,64:Qt,66:Vt,70:kt,84:It,85:Tt,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:At,61:Ut,62:me}),{27:69,28:43,29:44,84:It,85:Tt,86:mt,87:X},u(ot,[2,46]),u(ot,[2,47]),{28:70,84:It,85:Tt,86:mt},{27:71,28:43,29:44,84:It,85:Tt,86:mt,87:X},{27:72,28:43,29:44,84:It,85:Tt,86:mt,87:X},{27:73,28:43,29:44,84:It,85:Tt,86:mt,87:X},{53:[1,74]},u(Ye,[2,20],{28:43,29:44,27:75,30:[1,76],84:It,85:Tt,86:mt,87:X}),u(Ye,[2,21],{30:[1,77]}),u(ke,[2,91]),u(ke,[2,92]),u(ke,[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:V},{22:[2,14]},{1:[2,16]},{6:30,7:29,8:g,9:E,10:A,11:T,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:J,40:tt,42:ht,43:et,48:wt,50:at,51:ut,63:vt,64:Qt,66:Vt,70:kt,84:It,85:Tt,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:Tt,86:mt,87:X},{52:82,54:60,55:61,56:j,57:yt,58:Y,59:bt,60:At,61:Ut,62:me},u(ot,[2,45]),{55:83,61:Ut,62:me},u(xe,[2,55],{54:84,56:j,57:yt,58:Y,59:bt,60:At}),u(Ae,[2,56]),u(Ae,[2,57]),u(Ae,[2,58]),u(Ae,[2,59]),u(Ae,[2,60]),u(Ne,[2,61]),u(Ne,[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:Tt,86:mt},u(Ye,[2,22]),u(Ye,[2,23]),u(Ye,[2,24]),{16:[1,93]},{25:[2,19]},u(be,[2,48]),{27:94,28:43,29:44,84:It,85:Tt,86:mt,87:X},{27:95,28:43,29:44,53:[1,96],84:It,85:Tt,86:mt,87:X},u(xe,[2,54],{54:97,56:j,57:yt,58:Y,59:bt,60:At}),u(xe,[2,53]),{28:98,84:It,85:Tt,86:mt},{46:99,50:kn},{27:101,28:43,29:44,84:It,85:Tt,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(be,[2,50]),u(be,[2,49]),{27:109,28:43,29:44,84:It,85:Tt,86:mt,87:X},u(xe,[2,52]),u(ot,[2,38],{45:[1,110]}),{47:[1,111]},{46:112,47:[2,42],50:kn},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(be,[2,51]),{46:116,50:kn},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(Xt,se){if(!se.recoverable){var St=new Error(Xt);throw St.hash=se,St}this.trace(Xt)},parse:function(Xt){var se=this,St=[0],ee=[],st=[null],dt=[],ft=this.table,Dt="",ue=0,Oe=0,en=0,$e=2,cn=1,Fe=dt.slice.call(arguments,1),Ee=Object.create(this.lexer),Be={yy:{}};for(var Le in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Le)&&(Be.yy[Le]=this.yy[Le]);Ee.setInput(Xt,Be.yy),Be.yy.lexer=Ee,Be.yy.parser=this,Ee.yylloc===void 0&&(Ee.yylloc={});var ge=Ee.yylloc;dt.push(ge);var ie=Ee.options&&Ee.options.ranges;function An(){var vn;return typeof(vn=ee.pop()||Ee.lex()||cn)!="number"&&(vn instanceof Array&&(vn=(ee=vn).pop()),vn=se.symbols_[vn]||vn),vn}typeof Be.yy.parseError=="function"?this.parseError=Be.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var Ie,un,ze,pn,tr,Dn,Tn,De,Qe,Ge={};;){if(ze=St[St.length-1],this.defaultActions[ze]?pn=this.defaultActions[ze]:(Ie==null&&(Ie=An()),pn=ft[ze]&&ft[ze][Ie]),pn===void 0||!pn.length||!pn[0]){var Se="";for(Dn in Qe=[],ft[ze])this.terminals_[Dn]&&Dn>$e&&Qe.push("'"+this.terminals_[Dn]+"'");Se=Ee.showPosition?"Parse error on line "+(ue+1)+`:
`+Ee.showPosition()+`
Expecting `+Qe.join(", ")+", got '"+(this.terminals_[Ie]||Ie)+"'":"Parse error on line "+(ue+1)+": Unexpected "+(Ie==cn?"end of input":"'"+(this.terminals_[Ie]||Ie)+"'"),this.parseError(Se,{text:Ee.match,token:this.terminals_[Ie]||Ie,line:Ee.yylineno,loc:ge,expected:Qe})}if(pn[0]instanceof Array&&pn.length>1)throw new Error("Parse Error: multiple actions possible at state: "+ze+", token: "+Ie);switch(pn[0]){case 1:St.push(Ie),st.push(Ee.yytext),dt.push(Ee.yylloc),St.push(pn[1]),Ie=null,un?(Ie=un,un=null):(Oe=Ee.yyleng,Dt=Ee.yytext,ue=Ee.yylineno,ge=Ee.yylloc,en>0&&en--);break;case 2:if(Tn=this.productions_[pn[1]][1],Ge.$=st[st.length-Tn],Ge._$={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},ie&&(Ge._$.range=[dt[dt.length-(Tn||1)].range[0],dt[dt.length-1].range[1]]),(tr=this.performAction.apply(Ge,[Dt,Oe,ue,Be.yy,pn[1],st,dt].concat(Fe)))!==void 0)return tr;Tn&&(St=St.slice(0,-1*Tn*2),st=st.slice(0,-1*Tn),dt=dt.slice(0,-1*Tn)),St.push(this.productions_[pn[1]][0]),st.push(Ge.$),dt.push(Ge._$),De=ft[St[St.length-2]][St[St.length-1]],St.push(De);break;case 3:return!0}}return!0}},Ze={EOF:1,parseError:function(Xt,se){if(!this.yy.parser)throw new Error(Xt);this.yy.parser.parseError(Xt,se)},setInput:function(Xt,se){return this.yy=se||this.yy||{},this._input=Xt,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 Xt=this._input[0];return this.yytext+=Xt,this.yyleng++,this.offset++,this.match+=Xt,this.matched+=Xt,Xt.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),Xt},unput:function(Xt){var se=Xt.length,St=Xt.split(/(?:\r\n?|\n)/g);this._input=Xt+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-se),this.offset-=se;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),St.length-1&&(this.yylineno-=St.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:St?(St.length===ee.length?this.yylloc.first_column:0)+ee[ee.length-St.length].length-St[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(Xt){this.unput(this.match.slice(Xt))},pastInput:function(){var Xt=this.matched.substr(0,this.matched.length-this.match.length);return(Xt.length>20?"...":"")+Xt.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var Xt=this.match;return Xt.length<20&&(Xt+=this._input.substr(0,20-Xt.length)),(Xt.substr(0,20)+(Xt.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var Xt=this.pastInput(),se=new Array(Xt.length+1).join("-");return Xt+this.upcomingInput()+`
`+se+"^"},test_match:function(Xt,se){var St,ee,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))),(ee=Xt[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+Xt[0].length},this.yytext+=Xt[0],this.match+=Xt[0],this.matches=Xt,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(Xt[0].length),this.matched+=Xt[0],St=this.performAction.call(this,this.yy,this,se,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),St)return St;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 Xt,se,St,ee;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var st=this._currentRules(),dt=0;dt<st.length;dt++)if((St=this._input.match(this.rules[st[dt]]))&&(!se||St[0].length>se[0].length)){if(se=St,ee=dt,this.options.backtrack_lexer){if((Xt=this.test_match(St,st[dt]))!==!1)return Xt;if(this._backtrack){se=!1;continue}return!1}if(!this.options.flex)break}return se?(Xt=this.test_match(se,st[ee]))!==!1&&Xt: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(Xt){this.conditionStack.push(Xt)},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(Xt){return(Xt=this.conditionStack.length-1-Math.abs(Xt||0))>=0?this.conditionStack[Xt]:"INITIAL"},pushState:function(Xt){this.begin(Xt)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(Xt,se,St,ee){switch(St){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 re(){this.yy={}}return he.lexer=Ze,re.prototype=he,he.Parser=re,new re}();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],g=[1,5],E=[6,9,11,23,25,27,29,30,49],A=[1,17],T=[1,18],F=[1,19],O=[1,20],P=[1,21],V=[1,24],J=[1,29],tt=[1,30],ht=[1,31],et=[1,32],wt=[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],Qt=[42,43,44,45],Vt=[22,37],kt=[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,At){var Ut=bt.length-1;switch(Y){case 1:break;case 3:case 7:case 8:this.$=[];break;case 4:bt[Ut-1].push(bt[Ut]),this.$=bt[Ut-1];break;case 5:case 6:case 20:case 28:case 29:case 30:case 40:this.$=bt[Ut];break;case 12:yt.addEntity(bt[Ut-4]),yt.addEntity(bt[Ut-2]),yt.addRelationship(bt[Ut-4],bt[Ut],bt[Ut-2],bt[Ut-3]);break;case 13:yt.addEntity(bt[Ut-3]),yt.addAttributes(bt[Ut-3],bt[Ut-1]);break;case 14:yt.addEntity(bt[Ut-2]);break;case 15:yt.addEntity(bt[Ut]);break;case 16:case 17:this.$=bt[Ut].trim(),yt.setAccTitle(this.$);break;case 18:case 19:this.$=bt[Ut].trim(),yt.setAccDescription(this.$);break;case 21:this.$=bt[Ut-2]+bt[Ut-1]+bt[Ut];break;case 22:this.$=[bt[Ut]];break;case 23:bt[Ut].push(bt[Ut-1]),this.$=bt[Ut];break;case 24:this.$={attributeType:bt[Ut-1],attributeName:bt[Ut]};break;case 25:this.$={attributeType:bt[Ut-2],attributeName:bt[Ut-1],attributeKeyType:bt[Ut]};break;case 26:this.$={attributeType:bt[Ut-2],attributeName:bt[Ut-1],attributeComment:bt[Ut]};break;case 27:this.$={attributeType:bt[Ut-3],attributeName:bt[Ut-2],attributeKeyType:bt[Ut-1],attributeComment:bt[Ut]};break;case 31:case 39:this.$=bt[Ut].replace(/"/g,"");break;case 32:this.$={cardA:bt[Ut],relType:bt[Ut-1],cardB:bt[Ut-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[Ut],"type_directive");break;case 43:bt[Ut]=bt[Ut].trim().replace(/'/g,'"'),yt.parseDirective(bt[Ut],"arg_directive");break;case 44:yt.parseDirective("}%%","close_directive","er")}},table:[{3:1,4:_,7:3,12:4,49:g},{1:[3]},u(E,[2,3],{5:6}),{3:7,4:_,7:3,12:4,49:g},{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:T,27:F,29:O,30:P,49:g},{1:[2,2]},{14:22,15:[1,23],52:V},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:T,27:F,29:O,30:P,49:g},u(E,[2,6]),u(E,[2,7]),u(E,[2,11]),u(E,[2,15],{18:26,40:28,20:[1,27],42:J,43:tt,44:ht,45:et}),{24:[1,33]},{26:[1,34]},{28:[1,35]},u(E,[2,19]),u(wt,[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:V},{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:J,43:tt,44:ht,45:et},u(Qt,[2,37]),u(Qt,[2,38]),u(wt,[2,21]),{11:[1,57]},{19:58,30:[1,60],48:[1,59]},u(E,[2,13]),{22:[2,23]},u(Vt,[2,24],{35:61,36:62,38:[1,63],39:kt}),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(Vt,[2,25],{36:65,39:kt}),u(Vt,[2,26]),u([22,37,39],[2,30]),u(Vt,[2,31]),u(Vt,[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=[],At=this.table,Ut="",me=0,Ye=0,ke=0,pe=2,xe=1,Ae=bt.slice.call(arguments,1),Ne=Object.create(this.lexer),be={yy:{}};for(var kn in this.yy)Object.prototype.hasOwnProperty.call(this.yy,kn)&&(be.yy[kn]=this.yy[kn]);Ne.setInput(X,be.yy),be.yy.lexer=Ne,be.yy.parser=this,Ne.yylloc===void 0&&(Ne.yylloc={});var he=Ne.yylloc;bt.push(he);var Ze=Ne.options&&Ne.options.ranges;function re(){var $e;return typeof($e=yt.pop()||Ne.lex()||xe)!="number"&&($e instanceof Array&&($e=(yt=$e).pop()),$e=ot.symbols_[$e]||$e),$e}typeof be.yy.parseError=="function"?this.parseError=be.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var Xt,se,St,ee,st,dt,ft,Dt,ue,Oe={};;){if(St=j[j.length-1],this.defaultActions[St]?ee=this.defaultActions[St]:(Xt==null&&(Xt=re()),ee=At[St]&&At[St][Xt]),ee===void 0||!ee.length||!ee[0]){var en="";for(dt in ue=[],At[St])this.terminals_[dt]&&dt>pe&&ue.push("'"+this.terminals_[dt]+"'");en=Ne.showPosition?"Parse error on line "+(me+1)+`:
`+Ne.showPosition()+`
Expecting `+ue.join(", ")+", got '"+(this.terminals_[Xt]||Xt)+"'":"Parse error on line "+(me+1)+": Unexpected "+(Xt==xe?"end of input":"'"+(this.terminals_[Xt]||Xt)+"'"),this.parseError(en,{text:Ne.match,token:this.terminals_[Xt]||Xt,line:Ne.yylineno,loc:he,expected:ue})}if(ee[0]instanceof Array&&ee.length>1)throw new Error("Parse Error: multiple actions possible at state: "+St+", token: "+Xt);switch(ee[0]){case 1:j.push(Xt),Y.push(Ne.yytext),bt.push(Ne.yylloc),j.push(ee[1]),Xt=null,se?(Xt=se,se=null):(Ye=Ne.yyleng,Ut=Ne.yytext,me=Ne.yylineno,he=Ne.yylloc,ke>0&&ke--);break;case 2:if(ft=this.productions_[ee[1]][1],Oe.$=Y[Y.length-ft],Oe._$={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},Ze&&(Oe._$.range=[bt[bt.length-(ft||1)].range[0],bt[bt.length-1].range[1]]),(st=this.performAction.apply(Oe,[Ut,Ye,me,be.yy,ee[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_[ee[1]][0]),Y.push(Oe.$),bt.push(Oe._$),Dt=At[j[j.length-2]][j[j.length-1]],j.push(Dt);break;case 3:return!0}}return!0}},Tt={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=Tt,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(an,Qn,on,rn){for(on=on||{},rn=an.length;rn--;on[an[rn]]=Qn);return on},_=[1,9],g=[1,7],E=[1,6],A=[1,8],T=[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],O=[1,20],P=[1,21],V=[1,22],J=[1,23],tt=[1,30],ht=[1,32],et=[1,33],wt=[1,34],at=[1,62],ut=[1,48],vt=[1,52],Qt=[1,36],Vt=[1,37],kt=[1,38],It=[1,39],Tt=[1,40],mt=[1,56],X=[1,63],ot=[1,51],j=[1,53],yt=[1,55],Y=[1,59],bt=[1,60],At=[1,41],Ut=[1,42],me=[1,43],Ye=[1,44],ke=[1,61],pe=[1,50],xe=[1,54],Ae=[1,57],Ne=[1,58],be=[1,49],kn=[1,66],he=[1,71],Ze=[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],re=[1,75],Xt=[1,74],se=[1,76],St=[20,21,23,81,82],ee=[1,99],st=[1,104],dt=[1,107],ft=[1,108],Dt=[1,101],ue=[1,106],Oe=[1,109],en=[1,102],$e=[1,114],cn=[1,113],Fe=[1,103],Ee=[1,105],Be=[1,110],Le=[1,111],ge=[1,112],ie=[1,115],An=[20,21,22,23,81,82],Ie=[20,21,22,23,53,81,82],un=[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],ze=[20,21,23],pn=[20,21,23,52,66,67,81,82,91,95,105,106,109,111,112,122,123,124,125,126,127],tr=[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],De=[1,157],Qe=[1,158],Ge=[1,159],Se=[1,160],vn=[1,144],Mt=[1,145],vr=[1,141],zt=[1,152],Wn=[1,153],jn=[1,154],Hn=[1,155],Mn=[1,156],Gn=[1,161],Rn=[1,162],En=[1,147],Pn=[1,150],zn=[1,146],Yn=[1,143],ya=[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],Br=[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],li=[12,21,22,24],Bn=[22,106],_r=[1,250],Ar=[1,245],yr=[1,246],qr=[1,254],Nt=[1,251],Mr=[1,248],Lr=[1,247],Xn=[1,249],Qr=[1,252],Yr=[1,253],Pr=[1,255],Kr=[1,273],ka=[20,21,23,106],hr=[20,21,22,23,66,67,86,102,105,106,109,110,111,112,113],aa={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(an,Qn,on,rn,rr,$t,Ci){var Kt=$t.length-1;switch(rr){case 5:rn.parseDirective("%%{","open_directive");break;case 6:rn.parseDirective($t[Kt],"type_directive");break;case 7:$t[Kt]=$t[Kt].trim().replace(/'/g,'"'),rn.parseDirective($t[Kt],"arg_directive");break;case 8:rn.parseDirective("}%%","close_directive","flowchart");break;case 10:case 36:case 37:case 38:case 39:case 40:this.$=[];break;case 11:$t[Kt]!==[]&&$t[Kt-1].push($t[Kt]),this.$=$t[Kt-1];break;case 12:case 82:case 84:case 96:case 152:case 154:case 155:case 78:case 150:this.$=$t[Kt];break;case 19:rn.setDirection("TB"),this.$="TB";break;case 20:rn.setDirection($t[Kt-1]),this.$=$t[Kt-1];break;case 35:this.$=$t[Kt-1].nodes;break;case 41:this.$=rn.addSubGraph($t[Kt-6],$t[Kt-1],$t[Kt-4]);break;case 42:this.$=rn.addSubGraph($t[Kt-3],$t[Kt-1],$t[Kt-3]);break;case 43:this.$=rn.addSubGraph(void 0,$t[Kt-1],void 0);break;case 45:this.$=$t[Kt].trim(),rn.setAccTitle(this.$);break;case 46:case 47:this.$=$t[Kt].trim(),rn.setAccDescription(this.$);break;case 51:rn.addLink($t[Kt-2].stmt,$t[Kt],$t[Kt-1]),this.$={stmt:$t[Kt],nodes:$t[Kt].concat($t[Kt-2].nodes)};break;case 52:rn.addLink($t[Kt-3].stmt,$t[Kt-1],$t[Kt-2]),this.$={stmt:$t[Kt-1],nodes:$t[Kt-1].concat($t[Kt-3].nodes)};break;case 53:this.$={stmt:$t[Kt-1],nodes:$t[Kt-1]};break;case 54:this.$={stmt:$t[Kt],nodes:$t[Kt]};break;case 55:case 123:case 125:this.$=[$t[Kt]];break;case 56:this.$=$t[Kt-4].concat($t[Kt]);break;case 57:this.$=[$t[Kt-2]],rn.setClass($t[Kt-2],$t[Kt]);break;case 58:this.$=$t[Kt-3],rn.addVertex($t[Kt-3],$t[Kt-1],"square");break;case 59:this.$=$t[Kt-3],rn.addVertex($t[Kt-3],$t[Kt-1],"doublecircle");break;case 60:this.$=$t[Kt-5],rn.addVertex($t[Kt-5],$t[Kt-2],"circle");break;case 61:this.$=$t[Kt-3],rn.addVertex($t[Kt-3],$t[Kt-1],"ellipse");break;case 62:this.$=$t[Kt-3],rn.addVertex($t[Kt-3],$t[Kt-1],"stadium");break;case 63:this.$=$t[Kt-3],rn.addVertex($t[Kt-3],$t[Kt-1],"subroutine");break;case 64:this.$=$t[Kt-7],rn.addVertex($t[Kt-7],$t[Kt-1],"rect",void 0,void 0,void 0,Object.fromEntries([[$t[Kt-5],$t[Kt-3]]]));break;case 65:this.$=$t[Kt-3],rn.addVertex($t[Kt-3],$t[Kt-1],"cylinder");break;case 66:this.$=$t[Kt-3],rn.addVertex($t[Kt-3],$t[Kt-1],"round");break;case 67:this.$=$t[Kt-3],rn.addVertex($t[Kt-3],$t[Kt-1],"diamond");break;case 68:this.$=$t[Kt-5],rn.addVertex($t[Kt-5],$t[Kt-2],"hexagon");break;case 69:this.$=$t[Kt-3],rn.addVertex($t[Kt-3],$t[Kt-1],"odd");break;case 70:this.$=$t[Kt-3],rn.addVertex($t[Kt-3],$t[Kt-1],"trapezoid");break;case 71:this.$=$t[Kt-3],rn.addVertex($t[Kt-3],$t[Kt-1],"inv_trapezoid");break;case 72:this.$=$t[Kt-3],rn.addVertex($t[Kt-3],$t[Kt-1],"lean_right");break;case 73:this.$=$t[Kt-3],rn.addVertex($t[Kt-3],$t[Kt-1],"lean_left");break;case 74:this.$=$t[Kt],rn.addVertex($t[Kt]);break;case 75:$t[Kt-1].text=$t[Kt],this.$=$t[Kt-1];break;case 76:case 77:$t[Kt-2].text=$t[Kt-1],this.$=$t[Kt-2];break;case 79:var xr=rn.destructLink($t[Kt],$t[Kt-2]);this.$={type:xr.type,stroke:xr.stroke,length:xr.length,text:$t[Kt-1]};break;case 80:xr=rn.destructLink($t[Kt]),this.$={type:xr.type,stroke:xr.stroke,length:xr.length};break;case 81:this.$=$t[Kt-1];break;case 83:case 97:case 153:case 151:this.$=$t[Kt-1]+""+$t[Kt];break;case 98:case 99:this.$=$t[Kt-4],rn.addClass($t[Kt-2],$t[Kt]);break;case 100:this.$=$t[Kt-4],rn.setClass($t[Kt-2],$t[Kt]);break;case 101:case 109:this.$=$t[Kt-1],rn.setClickEvent($t[Kt-1],$t[Kt]);break;case 102:case 110:this.$=$t[Kt-3],rn.setClickEvent($t[Kt-3],$t[Kt-2]),rn.setTooltip($t[Kt-3],$t[Kt]);break;case 103:this.$=$t[Kt-2],rn.setClickEvent($t[Kt-2],$t[Kt-1],$t[Kt]);break;case 104:this.$=$t[Kt-4],rn.setClickEvent($t[Kt-4],$t[Kt-3],$t[Kt-2]),rn.setTooltip($t[Kt-4],$t[Kt]);break;case 105:case 111:this.$=$t[Kt-1],rn.setLink($t[Kt-1],$t[Kt]);break;case 106:case 112:this.$=$t[Kt-3],rn.setLink($t[Kt-3],$t[Kt-2]),rn.setTooltip($t[Kt-3],$t[Kt]);break;case 107:case 113:this.$=$t[Kt-3],rn.setLink($t[Kt-3],$t[Kt-2],$t[Kt]);break;case 108:case 114:this.$=$t[Kt-5],rn.setLink($t[Kt-5],$t[Kt-4],$t[Kt]),rn.setTooltip($t[Kt-5],$t[Kt-2]);break;case 115:this.$=$t[Kt-4],rn.addVertex($t[Kt-2],void 0,void 0,$t[Kt]);break;case 116:case 118:this.$=$t[Kt-4],rn.updateLink($t[Kt-2],$t[Kt]);break;case 117:this.$=$t[Kt-4],rn.updateLink([$t[Kt-2]],$t[Kt]);break;case 119:this.$=$t[Kt-8],rn.updateLinkInterpolate([$t[Kt-6]],$t[Kt-2]),rn.updateLink([$t[Kt-6]],$t[Kt]);break;case 120:this.$=$t[Kt-8],rn.updateLinkInterpolate($t[Kt-6],$t[Kt-2]),rn.updateLink($t[Kt-6],$t[Kt]);break;case 121:this.$=$t[Kt-6],rn.updateLinkInterpolate([$t[Kt-4]],$t[Kt]);break;case 122:this.$=$t[Kt-6],rn.updateLinkInterpolate($t[Kt-4],$t[Kt]);break;case 124:case 126:$t[Kt-2].push($t[Kt]),this.$=$t[Kt-2];break;case 128:this.$=$t[Kt-1]+$t[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:g,22:E,24:A},{1:[3]},{1:[2,1]},{3:10,4:2,5:3,6:5,12:_,16:4,21:g,22:E,24:A},u(T,F,{17:11}),{7:12,13:[1,13]},{16:14,21:g,22:E,24:A},{16:15,21:g,22:E,24:A},{25:[1,16],26:[1,17]},{13:[2,5]},{1:[2,2]},{1:[2,9],18:18,19:19,20:O,21:P,22:V,23:J,32:24,33:25,34:26,35:27,36:28,37:29,38:tt,43:31,44:ht,46:et,48:wt,50:35,51:45,52:at,54:46,66:ut,67:vt,86:Qt,87:Vt,88:kt,89:It,90:Tt,91:mt,95:X,105:ot,106:j,109:yt,111:Y,112:bt,116:47,118:At,119:Ut,120:me,121:Ye,122:ke,123:pe,124:xe,125:Ae,126:Ne,127:be},{8:64,10:[1,65],15:kn},u([10,15],[2,6]),u(T,[2,17]),u(T,[2,18]),u(T,[2,19]),{20:[1,68],21:[1,69],22:he,27:67,30:70},u(Ze,[2,11]),u(Ze,[2,12]),u(Ze,[2,13]),u(Ze,[2,14]),u(Ze,[2,15]),u(Ze,[2,16]),{9:72,20:re,21:Xt,23:se,49:73,78:77,81:[1,78],82:[1,79]},{9:80,20:re,21:Xt,23:se},{9:81,20:re,21:Xt,23:se},{9:82,20:re,21:Xt,23:se},{9:83,20:re,21:Xt,23:se},{9:84,20:re,21:Xt,23:se},{9:86,20:re,21:Xt,22:[1,85],23:se},u(Ze,[2,44]),{45:[1,87]},{47:[1,88]},u(Ze,[2,47]),u(St,[2,54],{30:89,22:he}),{22:[1,90]},{22:[1,91]},{22:[1,92]},{22:[1,93]},{26:ee,52:st,66:dt,67:ft,84:[1,97],91:Dt,97:96,98:[1,94],100:[1,95],105:ue,106:Oe,109:en,111:$e,112:cn,115:100,117:98,122:Fe,123:Ee,124:Be,125:Le,126:ge,127:ie},u(Ze,[2,158]),u(Ze,[2,159]),u(Ze,[2,160]),u(Ze,[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:ke,123:pe,124:xe,125:Ae,126:Ne,127:be}),u(un,[2,150]),u(un,[2,175]),u(un,[2,176]),u(un,[2,177]),u(un,[2,178]),u(un,[2,179]),u(un,[2,180]),u(un,[2,181]),u(un,[2,182]),u(un,[2,183]),u(un,[2,184]),u(un,[2,185]),u(un,[2,186]),u(un,[2,187]),u(un,[2,188]),u(un,[2,189]),u(un,[2,190]),{9:130,20:re,21:Xt,23:se},{11:131,14:[1,132]},u(ze,[2,8]),u(T,[2,20]),u(T,[2,26]),u(T,[2,27]),{21:[1,133]},u(pn,[2,34],{30:134,22:he}),u(Ze,[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:ke,123:pe,124:xe,125:Ae,126:Ne,127:be},u(tr,[2,48]),u(tr,[2,49]),u(tr,[2,50]),u(Dn,[2,78],{79:136,68:[1,138],80:[1,137]}),{22:Tn,24:De,26:Qe,38:Ge,39:139,42:Se,52:st,66:dt,67:ft,73:vn,81:Mt,83:140,84:vr,85:151,86:zt,87:Wn,88:jn,89:Hn,90:Mn,91:Gn,92:Rn,94:142,95:En,105:ue,106:Oe,109:Pn,111:$e,112:cn,113:zn,114:Yn,115:148,122:Fe,123:Ee,124:Be,125:Le,126:ge,127:ie},u([52,66,67,68,80,91,95,105,106,109,111,112,122,123,124,125,126,127],[2,80]),u(Ze,[2,36]),u(Ze,[2,37]),u(Ze,[2,38]),u(Ze,[2,39]),u(Ze,[2,40]),{22:Tn,24:De,26:Qe,38:Ge,39:163,42:Se,52:st,66:dt,67:ft,73:vn,81:Mt,83:140,84:vr,85:151,86:zt,87:Wn,88:jn,89:Hn,90:Mn,91:Gn,92:Rn,94:142,95:En,105:ue,106:Oe,109:Pn,111:$e,112:cn,113:zn,114:Yn,115:148,122:Fe,123:Ee,124:Be,125:Le,126:ge,127:ie},u(ya,F,{17:164}),u(Ze,[2,45]),u(Ze,[2,46]),u(St,[2,53],{52:Br}),{26:ee,52:st,66:dt,67:ft,91:Dt,97:166,102:[1,167],105:ue,106:Oe,109:en,111:$e,112:cn,115:100,117:98,122:Fe,123:Ee,124:Be,125:Le,126:ge,127:ie},{95:[1,168],103:169,105:[1,170]},{26:ee,52:st,66:dt,67:ft,91:Dt,95:[1,171],97:172,105:ue,106:Oe,109:en,111:$e,112:cn,115:100,117:98,122:Fe,123:Ee,124:Be,125:Le,126:ge,127:ie},{26:ee,52:st,66:dt,67:ft,91:Dt,97:173,105:ue,106:Oe,109:en,111:$e,112:cn,115:100,117:98,122:Fe,123:Ee,124:Be,125:Le,126:ge,127:ie},u(ze,[2,101],{22:[1,174],99:[1,175]}),u(ze,[2,105],{22:[1,176]}),u(ze,[2,109],{115:100,117:178,22:[1,177],26:ee,52:st,66:dt,67:ft,91:Dt,105:ue,106:Oe,109:en,111:$e,112:cn,122:Fe,123:Ee,124:Be,125:Le,126:ge,127:ie}),u(ze,[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:ke,123:pe,124:xe,125:Ae,126:Ne,127:be},{22:Tn,24:De,26:Qe,38:Ge,39:181,42:Se,52:st,66:dt,67:ft,73:vn,81:Mt,83:140,84:vr,85:151,86:zt,87:Wn,88:jn,89:Hn,90:Mn,91:Gn,92:Rn,94:142,95:En,105:ue,106:Oe,109:Pn,111:$e,112:cn,113:zn,114:Yn,115:148,122:Fe,123:Ee,124:Be,125:Le,126:ge,127:ie},{22:Tn,24:De,26:Qe,38:Ge,39:182,42:Se,52:st,66:dt,67:ft,73:vn,81:Mt,83:140,84:vr,85:151,86:zt,87:Wn,88:jn,89:Hn,90:Mn,91:Gn,92:Rn,94:142,95:En,105:ue,106:Oe,109:Pn,111:$e,112:cn,113:zn,114:Yn,115:148,122:Fe,123:Ee,124:Be,125:Le,126:ge,127:ie},{22:Tn,24:De,26:Qe,38:Ge,39:184,42:Se,52:st,57:[1,183],66:dt,67:ft,73:vn,81:Mt,83:140,84:vr,85:151,86:zt,87:Wn,88:jn,89:Hn,90:Mn,91:Gn,92:Rn,94:142,95:En,105:ue,106:Oe,109:Pn,111:$e,112:cn,113:zn,114:Yn,115:148,122:Fe,123:Ee,124:Be,125:Le,126:ge,127:ie},{22:Tn,24:De,26:Qe,38:Ge,39:185,42:Se,52:st,66:dt,67:ft,73:vn,81:Mt,83:140,84:vr,85:151,86:zt,87:Wn,88:jn,89:Hn,90:Mn,91:Gn,92:Rn,94:142,95:En,105:ue,106:Oe,109:Pn,111:$e,112:cn,113:zn,114:Yn,115:148,122:Fe,123:Ee,124:Be,125:Le,126:ge,127:ie},{22:Tn,24:De,26:Qe,38:Ge,39:186,42:Se,52:st,66:dt,67:ft,73:vn,81:Mt,83:140,84:vr,85:151,86:zt,87:Wn,88:jn,89:Hn,90:Mn,91:Gn,92:Rn,94:142,95:En,105:ue,106:Oe,109:Pn,111:$e,112:cn,113:zn,114:Yn,115:148,122:Fe,123:Ee,124:Be,125:Le,126:ge,127:ie},{22:Tn,24:De,26:Qe,38:Ge,39:187,42:Se,52:st,66:dt,67:ft,73:vn,81:Mt,83:140,84:vr,85:151,86:zt,87:Wn,88:jn,89:Hn,90:Mn,91:Gn,92:Rn,94:142,95:En,105:ue,106:Oe,109:Pn,111:$e,112:cn,113:zn,114:Yn,115:148,122:Fe,123:Ee,124:Be,125:Le,126:ge,127:ie},{66:[1,188]},{22:Tn,24:De,26:Qe,38:Ge,39:189,42:Se,52:st,66:dt,67:ft,73:vn,81:Mt,83:140,84:vr,85:151,86:zt,87:Wn,88:jn,89:Hn,90:Mn,91:Gn,92:Rn,94:142,95:En,105:ue,106:Oe,109:Pn,111:$e,112:cn,113:zn,114:Yn,115:148,122:Fe,123:Ee,124:Be,125:Le,126:ge,127:ie},{22:Tn,24:De,26:Qe,38:Ge,39:190,42:Se,52:st,66:dt,67:ft,71:[1,191],73:vn,81:Mt,83:140,84:vr,85:151,86:zt,87:Wn,88:jn,89:Hn,90:Mn,91:Gn,92:Rn,94:142,95:En,105:ue,106:Oe,109:Pn,111:$e,112:cn,113:zn,114:Yn,115:148,122:Fe,123:Ee,124:Be,125:Le,126:ge,127:ie},{22:Tn,24:De,26:Qe,38:Ge,39:192,42:Se,52:st,66:dt,67:ft,73:vn,81:Mt,83:140,84:vr,85:151,86:zt,87:Wn,88:jn,89:Hn,90:Mn,91:Gn,92:Rn,94:142,95:En,105:ue,106:Oe,109:Pn,111:$e,112:cn,113:zn,114:Yn,115:148,122:Fe,123:Ee,124:Be,125:Le,126:ge,127:ie},{22:Tn,24:De,26:Qe,38:Ge,39:193,42:Se,52:st,66:dt,67:ft,73:vn,81:Mt,83:140,84:vr,85:151,86:zt,87:Wn,88:jn,89:Hn,90:Mn,91:Gn,92:Rn,94:142,95:En,105:ue,106:Oe,109:Pn,111:$e,112:cn,113:zn,114:Yn,115:148,122:Fe,123:Ee,124:Be,125:Le,126:ge,127:ie},{22:Tn,24:De,26:Qe,38:Ge,39:194,42:Se,52:st,66:dt,67:ft,73:vn,81:Mt,83:140,84:vr,85:151,86:zt,87:Wn,88:jn,89:Hn,90:Mn,91:Gn,92:Rn,94:142,95:En,105:ue,106:Oe,109:Pn,111:$e,112:cn,113:zn,114:Yn,115:148,122:Fe,123:Ee,124:Be,125:Le,126:ge,127:ie},u(un,[2,151]),u(li,[2,3]),{8:195,15:kn},{15:[2,7]},u(T,[2,28]),u(pn,[2,33]),u(St,[2,51],{30:196,22:he}),u(Dn,[2,75],{22:[1,197]}),{22:[1,198]},{22:Tn,24:De,26:Qe,38:Ge,39:199,42:Se,52:st,66:dt,67:ft,73:vn,81:Mt,83:140,84:vr,85:151,86:zt,87:Wn,88:jn,89:Hn,90:Mn,91:Gn,92:Rn,94:142,95:En,105:ue,106:Oe,109:Pn,111:$e,112:cn,113:zn,114:Yn,115:148,122:Fe,123:Ee,124:Be,125:Le,126:ge,127:ie},{22:Tn,24:De,26:Qe,38:Ge,42:Se,52:st,66:dt,67:ft,73:vn,81:Mt,82:[1,200],83:201,85:151,86:zt,87:Wn,88:jn,89:Hn,90:Mn,91:Gn,92:Rn,94:142,95:En,105:ue,106:Oe,109:Pn,111:$e,112:cn,113:zn,114:Yn,115:148,122:Fe,123:Ee,124:Be,125:Le,126:ge,127:ie},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:re,21:Xt,22:Tn,23:se,24:De,26:Qe,38:Ge,40:[1,202],42:Se,52:st,66:dt,67:ft,73:vn,81:Mt,83:201,85:151,86:zt,87:Wn,88:jn,89:Hn,90:Mn,91:Gn,92:Rn,94:142,95:En,105:ue,106:Oe,109:Pn,111:$e,112:cn,113:zn,114:Yn,115:148,122:Fe,123:Ee,124:Be,125:Le,126:ge,127:ie},{18:18,19:19,20:O,21:P,22:V,23:J,32:24,33:25,34:26,35:27,36:28,37:29,38:tt,42:[1,204],43:31,44:ht,46:et,48:wt,50:35,51:45,52:at,54:46,66:ut,67:vt,86:Qt,87:Vt,88:kt,89:It,90:Tt,91:mt,95:X,105:ot,106:j,109:yt,111:Y,112:bt,116:47,118:At,119:Ut,120:me,121:Ye,122:ke,123:pe,124:xe,125:Ae,126:Ne,127:be},{22:he,30:205},{22:[1,206],26:ee,52:st,66:dt,67:ft,91:Dt,105:ue,106:Oe,109:en,111:$e,112:cn,115:100,117:178,122:Fe,123:Ee,124:Be,125:Le,126:ge,127:ie},{22:[1,207]},{22:[1,208]},{22:[1,209],106:[1,210]},u(Bn,[2,123]),{22:[1,211]},{22:[1,212],26:ee,52:st,66:dt,67:ft,91:Dt,105:ue,106:Oe,109:en,111:$e,112:cn,115:100,117:178,122:Fe,123:Ee,124:Be,125:Le,126:ge,127:ie},{22:[1,213],26:ee,52:st,66:dt,67:ft,91:Dt,105:ue,106:Oe,109:en,111:$e,112:cn,115:100,117:178,122:Fe,123:Ee,124:Be,125:Le,126:ge,127:ie},{84:[1,214]},u(ze,[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:ke,123:pe,124:xe,125:Ae,126:Ne,127:be}),{22:Tn,24:De,26:Qe,38:Ge,41:[1,221],42:Se,52:st,66:dt,67:ft,73:vn,81:Mt,83:201,85:151,86:zt,87:Wn,88:jn,89:Hn,90:Mn,91:Gn,92:Rn,94:142,95:En,105:ue,106:Oe,109:Pn,111:$e,112:cn,113:zn,114:Yn,115:148,122:Fe,123:Ee,124:Be,125:Le,126:ge,127:ie},{22:Tn,24:De,26:Qe,38:Ge,42:Se,52:st,56:[1,222],66:dt,67:ft,73:vn,81:Mt,83:201,85:151,86:zt,87:Wn,88:jn,89:Hn,90:Mn,91:Gn,92:Rn,94:142,95:En,105:ue,106:Oe,109:Pn,111:$e,112:cn,113:zn,114:Yn,115:148,122:Fe,123:Ee,124:Be,125:Le,126:ge,127:ie},{22:Tn,24:De,26:Qe,38:Ge,39:223,42:Se,52:st,66:dt,67:ft,73:vn,81:Mt,83:140,84:vr,85:151,86:zt,87:Wn,88:jn,89:Hn,90:Mn,91:Gn,92:Rn,94:142,95:En,105:ue,106:Oe,109:Pn,111:$e,112:cn,113:zn,114:Yn,115:148,122:Fe,123:Ee,124:Be,125:Le,126:ge,127:ie},{22:Tn,24:De,26:Qe,38:Ge,42:Se,52:st,58:[1,224],66:dt,67:ft,73:vn,81:Mt,83:201,85:151,86:zt,87:Wn,88:jn,89:Hn,90:Mn,91:Gn,92:Rn,94:142,95:En,105:ue,106:Oe,109:Pn,111:$e,112:cn,113:zn,114:Yn,115:148,122:Fe,123:Ee,124:Be,125:Le,126:ge,127:ie},{22:Tn,24:De,26:Qe,38:Ge,42:Se,52:st,60:[1,225],66:dt,67:ft,73:vn,81:Mt,83:201,85:151,86:zt,87:Wn,88:jn,89:Hn,90:Mn,91:Gn,92:Rn,94:142,95:En,105:ue,106:Oe,109:Pn,111:$e,112:cn,113:zn,114:Yn,115:148,122:Fe,123:Ee,124:Be,125:Le,126:ge,127:ie},{22:Tn,24:De,26:Qe,38:Ge,42:Se,52:st,62:[1,226],66:dt,67:ft,73:vn,81:Mt,83:201,85:151,86:zt,87:Wn,88:jn,89:Hn,90:Mn,91:Gn,92:Rn,94:142,95:En,105:ue,106:Oe,109:Pn,111:$e,112:cn,113:zn,114:Yn,115:148,122:Fe,123:Ee,124:Be,125:Le,126:ge,127:ie},{22:Tn,24:De,26:Qe,38:Ge,42:Se,52:st,64:[1,227],66:dt,67:ft,73:vn,81:Mt,83:201,85:151,86:zt,87:Wn,88:jn,89:Hn,90:Mn,91:Gn,92:Rn,94:142,95:En,105:ue,106:Oe,109:Pn,111:$e,112:cn,113:zn,114:Yn,115:148,122:Fe,123:Ee,124:Be,125:Le,126:ge,127:ie},{67:[1,228]},{22:Tn,24:De,26:Qe,38:Ge,42:Se,52:st,66:dt,67:ft,70:[1,229],73:vn,81:Mt,83:201,85:151,86:zt,87:Wn,88:jn,89:Hn,90:Mn,91:Gn,92:Rn,94:142,95:En,105:ue,106:Oe,109:Pn,111:$e,112:cn,113:zn,114:Yn,115:148,122:Fe,123:Ee,124:Be,125:Le,126:ge,127:ie},{22:Tn,24:De,26:Qe,38:Ge,42:Se,52:st,66:dt,67:ft,72:[1,230],73:vn,81:Mt,83:201,85:151,86:zt,87:Wn,88:jn,89:Hn,90:Mn,91:Gn,92:Rn,94:142,95:En,105:ue,106:Oe,109:Pn,111:$e,112:cn,113:zn,114:Yn,115:148,122:Fe,123:Ee,124:Be,125:Le,126:ge,127:ie},{22:Tn,24:De,26:Qe,38:Ge,39:231,42:Se,52:st,66:dt,67:ft,73:vn,81:Mt,83:140,84:vr,85:151,86:zt,87:Wn,88:jn,89:Hn,90:Mn,91:Gn,92:Rn,94:142,95:En,105:ue,106:Oe,109:Pn,111:$e,112:cn,113:zn,114:Yn,115:148,122:Fe,123:Ee,124:Be,125:Le,126:ge,127:ie},{22:Tn,24:De,26:Qe,38:Ge,41:[1,232],42:Se,52:st,66:dt,67:ft,73:vn,81:Mt,83:201,85:151,86:zt,87:Wn,88:jn,89:Hn,90:Mn,91:Gn,92:Rn,94:142,95:En,105:ue,106:Oe,109:Pn,111:$e,112:cn,113:zn,114:Yn,115:148,122:Fe,123:Ee,124:Be,125:Le,126:ge,127:ie},{22:Tn,24:De,26:Qe,38:Ge,42:Se,52:st,66:dt,67:ft,73:vn,75:[1,233],77:[1,234],81:Mt,83:201,85:151,86:zt,87:Wn,88:jn,89:Hn,90:Mn,91:Gn,92:Rn,94:142,95:En,105:ue,106:Oe,109:Pn,111:$e,112:cn,113:zn,114:Yn,115:148,122:Fe,123:Ee,124:Be,125:Le,126:ge,127:ie},{22:Tn,24:De,26:Qe,38:Ge,42:Se,52:st,66:dt,67:ft,73:vn,75:[1,236],77:[1,235],81:Mt,83:201,85:151,86:zt,87:Wn,88:jn,89:Hn,90:Mn,91:Gn,92:Rn,94:142,95:En,105:ue,106:Oe,109:Pn,111:$e,112:cn,113:zn,114:Yn,115:148,122:Fe,123:Ee,124:Be,125:Le,126:ge,127:ie},{9:237,20:re,21:Xt,23:se},u(St,[2,52],{52:Br}),u(Dn,[2,77]),u(Dn,[2,76]),{22:Tn,24:De,26:Qe,38:Ge,42:Se,52:st,66:dt,67:ft,68:[1,238],73:vn,81:Mt,83:201,85:151,86:zt,87:Wn,88:jn,89:Hn,90:Mn,91:Gn,92:Rn,94:142,95:En,105:ue,106:Oe,109:Pn,111:$e,112:cn,113:zn,114:Yn,115:148,122:Fe,123:Ee,124:Be,125:Le,126:ge,127:ie},u(Dn,[2,79]),u(Sn,[2,83]),{22:Tn,24:De,26:Qe,38:Ge,39:239,42:Se,52:st,66:dt,67:ft,73:vn,81:Mt,83:140,84:vr,85:151,86:zt,87:Wn,88:jn,89:Hn,90:Mn,91:Gn,92:Rn,94:142,95:En,105:ue,106:Oe,109:Pn,111:$e,112:cn,113:zn,114:Yn,115:148,122:Fe,123:Ee,124:Be,125:Le,126:ge,127:ie},u(ya,F,{17:240}),u(Ze,[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:ke,123:pe,124:xe,125:Ae,126:Ne,127:be},{22:_r,66:Ar,67:yr,86:qr,96:242,102:Nt,105:Mr,107:243,108:244,109:Lr,110:Xn,111:Qr,112:Yr,113:Pr},{22:_r,66:Ar,67:yr,86:qr,96:256,102:Nt,105:Mr,107:243,108:244,109:Lr,110:Xn,111:Qr,112:Yr,113:Pr},{22:_r,66:Ar,67:yr,86:qr,96:257,102:Nt,104:[1,258],105:Mr,107:243,108:244,109:Lr,110:Xn,111:Qr,112:Yr,113:Pr},{22:_r,66:Ar,67:yr,86:qr,96:259,102:Nt,104:[1,260],105:Mr,107:243,108:244,109:Lr,110:Xn,111:Qr,112:Yr,113:Pr},{105:[1,261]},{22:_r,66:Ar,67:yr,86:qr,96:262,102:Nt,105:Mr,107:243,108:244,109:Lr,110:Xn,111:Qr,112:Yr,113:Pr},{22:_r,66:Ar,67:yr,86:qr,96:263,102:Nt,105:Mr,107:243,108:244,109:Lr,110:Xn,111:Qr,112:Yr,113:Pr},{26:ee,52:st,66:dt,67:ft,91:Dt,97:264,105:ue,106:Oe,109:en,111:$e,112:cn,115:100,117:98,122:Fe,123:Ee,124:Be,125:Le,126:ge,127:ie},u(ze,[2,102]),{84:[1,265]},u(ze,[2,106],{22:[1,266]}),u(ze,[2,107]),u(ze,[2,110]),u(ze,[2,112],{22:[1,267]}),u(ze,[2,113]),u(Ie,[2,58]),u(Ie,[2,59]),{22:Tn,24:De,26:Qe,38:Ge,42:Se,52:st,58:[1,268],66:dt,67:ft,73:vn,81:Mt,83:201,85:151,86:zt,87:Wn,88:jn,89:Hn,90:Mn,91:Gn,92:Rn,94:142,95:En,105:ue,106:Oe,109:Pn,111:$e,112:cn,113:zn,114:Yn,115:148,122:Fe,123:Ee,124:Be,125:Le,126:ge,127:ie},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:De,26:Qe,38:Ge,42:Se,52:st,66:dt,67:ft,72:[1,270],73:vn,81:Mt,83:201,85:151,86:zt,87:Wn,88:jn,89:Hn,90:Mn,91:Gn,92:Rn,94:142,95:En,105:ue,106:Oe,109:Pn,111:$e,112:cn,113:zn,114:Yn,115:148,122:Fe,123:Ee,124:Be,125:Le,126:ge,127:ie},u(Ie,[2,69]),u(Ie,[2,70]),u(Ie,[2,72]),u(Ie,[2,71]),u(Ie,[2,73]),u(li,[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:De,26:Qe,38:Ge,41:[1,271],42:Se,52:st,66:dt,67:ft,73:vn,81:Mt,83:201,85:151,86:zt,87:Wn,88:jn,89:Hn,90:Mn,91:Gn,92:Rn,94:142,95:En,105:ue,106:Oe,109:Pn,111:$e,112:cn,113:zn,114:Yn,115:148,122:Fe,123:Ee,124:Be,125:Le,126:ge,127:ie},{18:18,19:19,20:O,21:P,22:V,23:J,32:24,33:25,34:26,35:27,36:28,37:29,38:tt,42:[1,272],43:31,44:ht,46:et,48:wt,50:35,51:45,52:at,54:46,66:ut,67:vt,86:Qt,87:Vt,88:kt,89:It,90:Tt,91:mt,95:X,105:ot,106:j,109:yt,111:Y,112:bt,116:47,118:At,119:Ut,120:me,121:Ye,122:ke,123:pe,124:xe,125:Ae,126:Ne,127:be},u(An,[2,56]),u(ze,[2,115],{106:Kr}),u(ka,[2,125],{108:274,22:_r,66:Ar,67:yr,86:qr,102:Nt,105:Mr,109:Lr,110:Xn,111:Qr,112:Yr,113:Pr}),u(hr,[2,127]),u(hr,[2,129]),u(hr,[2,130]),u(hr,[2,131]),u(hr,[2,132]),u(hr,[2,133]),u(hr,[2,134]),u(hr,[2,135]),u(hr,[2,136]),u(hr,[2,137]),u(hr,[2,138]),u(hr,[2,139]),u(ze,[2,116],{106:Kr}),u(ze,[2,117],{106:Kr}),{22:[1,275]},u(ze,[2,118],{106:Kr}),{22:[1,276]},u(Bn,[2,124]),u(ze,[2,98],{106:Kr}),u(ze,[2,99],{106:Kr}),u(ze,[2,100],{115:100,117:178,26:ee,52:st,66:dt,67:ft,91:Dt,105:ue,106:Oe,109:en,111:$e,112:cn,122:Fe,123:Ee,124:Be,125:Le,126:ge,127:ie}),u(ze,[2,104]),{101:[1,277]},{101:[1,278]},{58:[1,279]},{68:[1,280]},{72:[1,281]},{9:282,20:re,21:Xt,23:se},u(Ze,[2,42]),{22:_r,66:Ar,67:yr,86:qr,102:Nt,105:Mr,107:283,108:244,109:Lr,110:Xn,111:Qr,112:Yr,113:Pr},u(hr,[2,128]),{26:ee,52:st,66:dt,67:ft,91:Dt,97:284,105:ue,106:Oe,109:en,111:$e,112:cn,115:100,117:98,122:Fe,123:Ee,124:Be,125:Le,126:ge,127:ie},{26:ee,52:st,66:dt,67:ft,91:Dt,97:285,105:ue,106:Oe,109:en,111:$e,112:cn,115:100,117:98,122:Fe,123:Ee,124:Be,125:Le,126:ge,127:ie},u(ze,[2,108]),u(ze,[2,114]),u(Ie,[2,60]),{22:Tn,24:De,26:Qe,38:Ge,39:286,42:Se,52:st,66:dt,67:ft,73:vn,81:Mt,83:140,84:vr,85:151,86:zt,87:Wn,88:jn,89:Hn,90:Mn,91:Gn,92:Rn,94:142,95:En,105:ue,106:Oe,109:Pn,111:$e,112:cn,113:zn,114:Yn,115:148,122:Fe,123:Ee,124:Be,125:Le,126:ge,127:ie},u(Ie,[2,68]),u(ya,F,{17:287}),u(ka,[2,126],{108:274,22:_r,66:Ar,67:yr,86:qr,102:Nt,105:Mr,109:Lr,110:Xn,111:Qr,112:Yr,113:Pr}),u(ze,[2,121],{115:100,117:178,22:[1,288],26:ee,52:st,66:dt,67:ft,91:Dt,105:ue,106:Oe,109:en,111:$e,112:cn,122:Fe,123:Ee,124:Be,125:Le,126:ge,127:ie}),u(ze,[2,122],{115:100,117:178,22:[1,289],26:ee,52:st,66:dt,67:ft,91:Dt,105:ue,106:Oe,109:en,111:$e,112:cn,122:Fe,123:Ee,124:Be,125:Le,126:ge,127:ie}),{22:Tn,24:De,26:Qe,38:Ge,41:[1,290],42:Se,52:st,66:dt,67:ft,73:vn,81:Mt,83:201,85:151,86:zt,87:Wn,88:jn,89:Hn,90:Mn,91:Gn,92:Rn,94:142,95:En,105:ue,106:Oe,109:Pn,111:$e,112:cn,113:zn,114:Yn,115:148,122:Fe,123:Ee,124:Be,125:Le,126:ge,127:ie},{18:18,19:19,20:O,21:P,22:V,23:J,32:24,33:25,34:26,35:27,36:28,37:29,38:tt,42:[1,291],43:31,44:ht,46:et,48:wt,50:35,51:45,52:at,54:46,66:ut,67:vt,86:Qt,87:Vt,88:kt,89:It,90:Tt,91:mt,95:X,105:ot,106:j,109:yt,111:Y,112:bt,116:47,118:At,119:Ut,120:me,121:Ye,122:ke,123:pe,124:xe,125:Ae,126:Ne,127:be},{22:_r,66:Ar,67:yr,86:qr,96:292,102:Nt,105:Mr,107:243,108:244,109:Lr,110:Xn,111:Qr,112:Yr,113:Pr},{22:_r,66:Ar,67:yr,86:qr,96:293,102:Nt,105:Mr,107:243,108:244,109:Lr,110:Xn,111:Qr,112:Yr,113:Pr},u(Ie,[2,64]),u(Ze,[2,41]),u(ze,[2,119],{106:Kr}),u(ze,[2,120],{106:Kr})],defaultActions:{2:[2,1],9:[2,5],10:[2,2],132:[2,7]},parseError:function(an,Qn){if(!Qn.recoverable){var on=new Error(an);throw on.hash=Qn,on}this.trace(an)},parse:function(an){var Qn=this,on=[0],rn=[],rr=[null],$t=[],Ci=this.table,Kt="",xr=0,Ir=0,Ur=0,pi=2,wa=1,dr=$t.slice.call(arguments,1),_n=Object.create(this.lexer),sa={yy:{}};for(var In in this.yy)Object.prototype.hasOwnProperty.call(this.yy,In)&&(sa.yy[In]=this.yy[In]);_n.setInput(an,sa.yy),sa.yy.lexer=_n,sa.yy.parser=this,_n.yylloc===void 0&&(_n.yylloc={});var wi=_n.yylloc;$t.push(wi);var ui=_n.options&&_n.options.ranges;function Ii(){var ei;return typeof(ei=rn.pop()||_n.lex()||wa)!="number"&&(ei instanceof Array&&(ei=(rn=ei).pop()),ei=Qn.symbols_[ei]||ei),ei}typeof sa.yy.parseError=="function"?this.parseError=sa.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var fr,Jr,Hr,Vr,ii,Ai,Gr,Ta,Ia,pr={};;){if(Hr=on[on.length-1],this.defaultActions[Hr]?Vr=this.defaultActions[Hr]:(fr==null&&(fr=Ii()),Vr=Ci[Hr]&&Ci[Hr][fr]),Vr===void 0||!Vr.length||!Vr[0]){var ti="";for(Ai in Ia=[],Ci[Hr])this.terminals_[Ai]&&Ai>pi&&Ia.push("'"+this.terminals_[Ai]+"'");ti=_n.showPosition?"Parse error on line "+(xr+1)+`:
`+_n.showPosition()+`
Expecting `+Ia.join(", ")+", got '"+(this.terminals_[fr]||fr)+"'":"Parse error on line "+(xr+1)+": Unexpected "+(fr==wa?"end of input":"'"+(this.terminals_[fr]||fr)+"'"),this.parseError(ti,{text:_n.match,token:this.terminals_[fr]||fr,line:_n.yylineno,loc:wi,expected:Ia})}if(Vr[0]instanceof Array&&Vr.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Hr+", token: "+fr);switch(Vr[0]){case 1:on.push(fr),rr.push(_n.yytext),$t.push(_n.yylloc),on.push(Vr[1]),fr=null,Jr?(fr=Jr,Jr=null):(Ir=_n.yyleng,Kt=_n.yytext,xr=_n.yylineno,wi=_n.yylloc,Ur>0&&Ur--);break;case 2:if(Gr=this.productions_[Vr[1]][1],pr.$=rr[rr.length-Gr],pr._$={first_line:$t[$t.length-(Gr||1)].first_line,last_line:$t[$t.length-1].last_line,first_column:$t[$t.length-(Gr||1)].first_column,last_column:$t[$t.length-1].last_column},ui&&(pr._$.range=[$t[$t.length-(Gr||1)].range[0],$t[$t.length-1].range[1]]),(ii=this.performAction.apply(pr,[Kt,Ir,xr,sa.yy,Vr[1],rr,$t].concat(dr)))!==void 0)return ii;Gr&&(on=on.slice(0,-1*Gr*2),rr=rr.slice(0,-1*Gr),$t=$t.slice(0,-1*Gr)),on.push(this.productions_[Vr[1]][0]),rr.push(pr.$),$t.push(pr._$),Ta=Ci[on[on.length-2]][on[on.length-1]],on.push(Ta);break;case 3:return!0}}return!0}},oa={EOF:1,parseError:function(an,Qn){if(!this.yy.parser)throw new Error(an);this.yy.parser.parseError(an,Qn)},setInput:function(an,Qn){return this.yy=Qn||this.yy||{},this._input=an,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 an=this._input[0];return this.yytext+=an,this.yyleng++,this.offset++,this.match+=an,this.matched+=an,an.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),an},unput:function(an){var Qn=an.length,on=an.split(/(?:\r\n?|\n)/g);this._input=an+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-Qn),this.offset-=Qn;var rn=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),on.length-1&&(this.yylineno-=on.length-1);var rr=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:on?(on.length===rn.length?this.yylloc.first_column:0)+rn[rn.length-on.length].length-on[0].length:this.yylloc.first_column-Qn},this.options.ranges&&(this.yylloc.range=[rr[0],rr[0]+this.yyleng-Qn]),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(an){this.unput(this.match.slice(an))},pastInput:function(){var an=this.matched.substr(0,this.matched.length-this.match.length);return(an.length>20?"...":"")+an.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var an=this.match;return an.length<20&&(an+=this._input.substr(0,20-an.length)),(an.substr(0,20)+(an.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var an=this.pastInput(),Qn=new Array(an.length+1).join("-");return an+this.upcomingInput()+`
`+Qn+"^"},test_match:function(an,Qn){var on,rn,rr;if(this.options.backtrack_lexer&&(rr={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&&(rr.yylloc.range=this.yylloc.range.slice(0))),(rn=an[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=rn.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:rn?rn[rn.length-1].length-rn[rn.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+an[0].length},this.yytext+=an[0],this.match+=an[0],this.matches=an,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(an[0].length),this.matched+=an[0],on=this.performAction.call(this,this.yy,this,Qn,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),on)return on;if(this._backtrack){for(var $t in rr)this[$t]=rr[$t];return!1}return!1},next:function(){if(this.done)return this.EOF;var an,Qn,on,rn;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var rr=this._currentRules(),$t=0;$t<rr.length;$t++)if((on=this._input.match(this.rules[rr[$t]]))&&(!Qn||on[0].length>Qn[0].length)){if(Qn=on,rn=$t,this.options.backtrack_lexer){if((an=this.test_match(on,rr[$t]))!==!1)return an;if(this._backtrack){Qn=!1;continue}return!1}if(!this.options.flex)break}return Qn?(an=this.test_match(Qn,rr[rn]))!==!1&&an: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(an){this.conditionStack.push(an)},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(an){return(an=this.conditionStack.length-1-Math.abs(an||0))>=0?this.conditionStack[an]:"INITIAL"},pushState:function(an){this.begin(an)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(an,Qn,on,rn){switch(on){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 an.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 Li(){this.yy={}}return aa.lexer=oa,Li.prototype=aa,aa.Parser=Li,new Li}();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],g=[1,5],E=[7,9,11,12,13,14,15,16,17,18,19,20,22,24,25,27,34,39],A=[1,15],T=[1,16],F=[1,17],O=[1,18],P=[1,19],V=[1,20],J=[1,21],tt=[1,22],ht=[1,23],et=[1,24],wt=[1,25],at=[1,26],ut=[1,28],vt=[1,30],Qt=[1,33],Vt=[5,7,9,11,12,13,14,15,16,17,18,19,20,22,24,25,27,34,39],kt={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 At=Y.length-1;switch(yt){case 2:return Y[At-1];case 3:case 7:case 8:this.$=[];break;case 4:Y[At-1].push(Y[At]),this.$=Y[At-1];break;case 5:case 6:this.$=Y[At];break;case 9:j.setDateFormat(Y[At].substr(11)),this.$=Y[At].substr(11);break;case 10:j.enableInclusiveEndDates(),this.$=Y[At].substr(18);break;case 11:j.TopAxis(),this.$=Y[At].substr(8);break;case 12:j.setAxisFormat(Y[At].substr(11)),this.$=Y[At].substr(11);break;case 13:j.setExcludes(Y[At].substr(9)),this.$=Y[At].substr(9);break;case 14:j.setIncludes(Y[At].substr(9)),this.$=Y[At].substr(9);break;case 15:j.setTodayMarker(Y[At].substr(12)),this.$=Y[At].substr(12);break;case 16:j.setDiagramTitle(Y[At].substr(6)),this.$=Y[At].substr(6);break;case 17:this.$=Y[At].trim(),j.setAccTitle(this.$);break;case 18:case 19:this.$=Y[At].trim(),j.setAccDescription(this.$);break;case 20:j.addSection(Y[At].substr(8)),this.$=Y[At].substr(8);break;case 22:j.addTask(Y[At-1],Y[At]),this.$="task";break;case 26:this.$=Y[At-1],j.setClickEvent(Y[At-1],Y[At],null);break;case 27:this.$=Y[At-2],j.setClickEvent(Y[At-2],Y[At-1],Y[At]);break;case 28:this.$=Y[At-2],j.setClickEvent(Y[At-2],Y[At-1],null),j.setLink(Y[At-2],Y[At]);break;case 29:this.$=Y[At-3],j.setClickEvent(Y[At-3],Y[At-2],Y[At-1]),j.setLink(Y[At-3],Y[At]);break;case 30:this.$=Y[At-2],j.setClickEvent(Y[At-2],Y[At],null),j.setLink(Y[At-2],Y[At-1]);break;case 31:this.$=Y[At-3],j.setClickEvent(Y[At-3],Y[At-1],Y[At]),j.setLink(Y[At-3],Y[At-2]);break;case 32:this.$=Y[At-1],j.setLink(Y[At-1],Y[At]);break;case 33:case 39:this.$=Y[At-1]+" "+Y[At];break;case 34:case 35:case 37:this.$=Y[At-2]+" "+Y[At-1]+" "+Y[At];break;case 36:case 38:this.$=Y[At-3]+" "+Y[At-2]+" "+Y[At-1]+" "+Y[At];break;case 40:j.parseDirective("%%{","open_directive");break;case 41:j.parseDirective(Y[At],"type_directive");break;case 42:Y[At]=Y[At].trim().replace(/'/g,'"'),j.parseDirective(Y[At],"arg_directive");break;case 43:j.parseDirective("}%%","close_directive","gantt")}},table:[{3:1,4:2,5:_,29:4,39:g},{1:[3]},{3:6,4:2,5:_,29:4,39:g},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:T,14:F,15:O,16:P,17:V,18:J,19:tt,20:ht,22:et,24:wt,25:at,26:27,27:ut,29:4,34:vt,39:g},{31:31,32:[1,32],42:Qt},u([32,42],[2,41]),u(E,[2,8],{1:[2,2]}),u(E,[2,4]),{4:29,10:34,12:A,13:T,14:F,15:O,16:P,17:V,18:J,19:tt,20:ht,22:et,24:wt,25:at,26:27,27:ut,29:4,34:vt,39:g},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(Vt,[2,24]),{31:46,42:Qt},{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(Vt,[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,At="",Ut=0,me=0,Ye=0,ke=2,pe=1,xe=Y.slice.call(arguments,1),Ae=Object.create(this.lexer),Ne={yy:{}};for(var be in this.yy)Object.prototype.hasOwnProperty.call(this.yy,be)&&(Ne.yy[be]=this.yy[be]);Ae.setInput(mt,Ne.yy),Ne.yy.lexer=Ae,Ne.yy.parser=this,Ae.yylloc===void 0&&(Ae.yylloc={});var kn=Ae.yylloc;Y.push(kn);var he=Ae.options&&Ae.options.ranges;function Ze(){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 Ne.yy.parseError=="function"?this.parseError=Ne.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var re,Xt,se,St,ee,st,dt,ft,Dt,ue={};;){if(se=ot[ot.length-1],this.defaultActions[se]?St=this.defaultActions[se]:(re==null&&(re=Ze()),St=bt[se]&&bt[se][re]),St===void 0||!St.length||!St[0]){var Oe="";for(st in Dt=[],bt[se])this.terminals_[st]&&st>ke&&Dt.push("'"+this.terminals_[st]+"'");Oe=Ae.showPosition?"Parse error on line "+(Ut+1)+`:
`+Ae.showPosition()+`
Expecting `+Dt.join(", ")+", got '"+(this.terminals_[re]||re)+"'":"Parse error on line "+(Ut+1)+": Unexpected "+(re==pe?"end of input":"'"+(this.terminals_[re]||re)+"'"),this.parseError(Oe,{text:Ae.match,token:this.terminals_[re]||re,line:Ae.yylineno,loc:kn,expected:Dt})}if(St[0]instanceof Array&&St.length>1)throw new Error("Parse Error: multiple actions possible at state: "+se+", token: "+re);switch(St[0]){case 1:ot.push(re),yt.push(Ae.yytext),Y.push(Ae.yylloc),ot.push(St[1]),re=null,Xt?(re=Xt,Xt=null):(me=Ae.yyleng,At=Ae.yytext,Ut=Ae.yylineno,kn=Ae.yylloc,Ye>0&&Ye--);break;case 2:if(dt=this.productions_[St[1]][1],ue.$=yt[yt.length-dt],ue._$={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},he&&(ue._$.range=[Y[Y.length-(dt||1)].range[0],Y[Y.length-1].range[1]]),(ee=this.performAction.apply(ue,[At,me,Ut,Ne.yy,St[1],yt,Y].concat(xe)))!==void 0)return ee;dt&&(ot=ot.slice(0,-1*dt*2),yt=yt.slice(0,-1*dt),Y=Y.slice(0,-1*dt)),ot.push(this.productions_[St[1]][0]),yt.push(ue.$),Y.push(ue._$),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 Tt(){this.yy={}}return kt.lexer=It,Tt.prototype=kt,kt.Parser=Tt,new Tt}();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,Tt,mt,X){for(mt=mt||{},X=It.length;X--;mt[It[X]]=Tt);return mt},_=[1,4],g=[1,7],E=[1,5],A=[1,9],T=[1,6],F=[2,6],O=[1,16],P=[6,8,14,20,22,24,25,27,29,32,35,39,49,53],V=[8,14,20,22,24,25,27,29,32,35,39],J=[8,13,14,20,22,24,25,27,29,32,35,39],tt=[1,26],ht=[6,8,14,49,53],et=[8,14,53],wt=[1,64],at=[1,65],ut=[1,66],vt=[8,14,33,38,41,53],Qt={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,Tt,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:g,14:E,45:8,49:A,53:T},{1:[3]},{3:10,4:2,5:3,6:_,8:g,14:E,45:8,49:A,53:T},{3:11,4:2,5:3,6:_,8:g,14:E,45:8,49:A,53:T},{7:12,8:F,9:[1,13],10:[1,14],11:15,14:O},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:O},{9:[1,21]},u(V,[2,10],{12:22,13:[1,23]}),u(J,[2,9]),{9:[1,25],47:24,52:tt},u([9,52],[2,115]),{1:[2,3]},{8:[1,27]},{7:28,8:F,11:15,14:O},{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(J,[2,8]),u(ht,[2,112]),{48:45,51:[1,46]},u(ht,[2,117]),{1:[2,4]},{8:[1,47]},u(V,[2,11]),{4:48,8:g,14:E,53:T},u(V,[2,13]),u(et,[2,14]),u(et,[2,15]),u(et,[2,16]),{21:[1,49]},{23:[1,50]},u(et,[2,19]),u(et,[2,20]),u(et,[2,21]),{28:[1,51]},u(et,[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:tt},{52:[2,116]},{1:[2,5]},u(V,[2,12]),u(et,[2,17]),u(et,[2,18]),u(et,[2,22]),u(et,[2,42]),{34:[1,62]},{37:63,42:wt,43:at,44:ut},{34:[1,67]},{34:[1,68]},u(et,[2,108]),u(et,[2,26],{33:[1,69],36:[1,70],38:[1,71]}),{34:[1,72]},u(et,[2,23],{30:[1,73]}),u(ht,[2,113]),u(et,[2,43],{33:[1,75],36:[1,74],41:[1,76]}),u(et,[2,44],{33:[1,78],38:[1,77],41:[1,79]}),u(vt,[2,109]),u(vt,[2,110]),u(vt,[2,111]),u(et,[2,47],{36:[1,81],38:[1,80],41:[1,82]}),u(et,[2,58],{33:[1,85],36:[1,84],38:[1,83]}),{34:[1,86]},{37:87,42:wt,43:at,44:ut},{34:[1,88]},u(et,[2,25]),{31:[1,89]},{37:90,42:wt,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:wt,43:at,44:ut},{34:[1,98]},{34:[1,99]},{37:100,42:wt,43:at,44:ut},{34:[1,101]},u(et,[2,27],{36:[1,102],38:[1,103]}),u(et,[2,28],{33:[1,105],38:[1,104]}),u(et,[2,29],{33:[1,106],36:[1,107]}),u(et,[2,24]),u(et,[2,45],{33:[1,108],41:[1,109]}),u(et,[2,49],{36:[1,110],41:[1,111]}),u(et,[2,59],{33:[1,113],36:[1,112]}),u(et,[2,46],{33:[1,114],41:[1,115]}),u(et,[2,51],{38:[1,116],41:[1,117]}),u(et,[2,62],{33:[1,119],38:[1,118]}),u(et,[2,48],{36:[1,120],41:[1,121]}),u(et,[2,50],{38:[1,122],41:[1,123]}),u(et,[2,63],{36:[1,124],38:[1,125]}),u(et,[2,60],{33:[1,127],36:[1,126]}),u(et,[2,61],{33:[1,129],38:[1,128]}),u(et,[2,64],{36:[1,130],38:[1,131]}),{37:132,42:wt,43:at,44:ut},{34:[1,133]},{34:[1,134]},{34:[1,135]},{34:[1,136]},{37:137,42:wt,43:at,44:ut},{34:[1,138]},{34:[1,139]},{37:140,42:wt,43:at,44:ut},{34:[1,141]},{37:142,42:wt,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:wt,43:at,44:ut},{34:[1,151]},{34:[1,152]},{34:[1,153]},{37:154,42:wt,43:at,44:ut},{34:[1,155]},{37:156,42:wt,43:at,44:ut},{34:[1,157]},{34:[1,158]},{34:[1,159]},{37:160,42:wt,43:at,44:ut},{34:[1,161]},u(et,[2,33],{38:[1,162]}),u(et,[2,34],{36:[1,163]}),u(et,[2,32],{33:[1,164]}),u(et,[2,35],{38:[1,165]}),u(et,[2,30],{36:[1,166]}),u(et,[2,31],{33:[1,167]}),u(et,[2,56],{41:[1,168]}),u(et,[2,69],{33:[1,169]}),u(et,[2,57],{41:[1,170]}),u(et,[2,80],{36:[1,171]}),u(et,[2,70],{33:[1,172]}),u(et,[2,79],{36:[1,173]}),u(et,[2,55],{41:[1,174]}),u(et,[2,68],{33:[1,175]}),u(et,[2,54],{41:[1,176]}),u(et,[2,74],{38:[1,177]}),u(et,[2,67],{33:[1,178]}),u(et,[2,73],{38:[1,179]}),u(et,[2,53],{41:[1,180]}),u(et,[2,81],{36:[1,181]}),u(et,[2,52],{41:[1,182]}),u(et,[2,75],{38:[1,183]}),u(et,[2,76],{38:[1,184]}),u(et,[2,82],{36:[1,185]}),u(et,[2,66],{33:[1,186]}),u(et,[2,77],{36:[1,187]}),u(et,[2,65],{33:[1,188]}),u(et,[2,71],{38:[1,189]}),u(et,[2,72],{38:[1,190]}),u(et,[2,78],{36:[1,191]}),{34:[1,192]},{37:193,42:wt,43:at,44:ut},{34:[1,194]},{34:[1,195]},{37:196,42:wt,43:at,44:ut},{34:[1,197]},{34:[1,198]},{34:[1,199]},{34:[1,200]},{37:201,42:wt,43:at,44:ut},{34:[1,202]},{37:203,42:wt,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:wt,43:at,44:ut},{34:[1,212]},{34:[1,213]},{34:[1,214]},{37:215,42:wt,43:at,44:ut},{34:[1,216]},{37:217,42:wt,43:at,44:ut},{34:[1,218]},{34:[1,219]},{34:[1,220]},{37:221,42:wt,43:at,44:ut},u(et,[2,36]),u(et,[2,38]),u(et,[2,37]),u(et,[2,39]),u(et,[2,41]),u(et,[2,40]),u(et,[2,97]),u(et,[2,98]),u(et,[2,95]),u(et,[2,96]),u(et,[2,100]),u(et,[2,99]),u(et,[2,104]),u(et,[2,103]),u(et,[2,102]),u(et,[2,101]),u(et,[2,106]),u(et,[2,105]),u(et,[2,94]),u(et,[2,93]),u(et,[2,92]),u(et,[2,91]),u(et,[2,89]),u(et,[2,90]),u(et,[2,88]),u(et,[2,87]),u(et,[2,86]),u(et,[2,85]),u(et,[2,83]),u(et,[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,Tt){if(!Tt.recoverable){var mt=new Error(It);throw mt.hash=Tt,mt}this.trace(It)},parse:function(It){var Tt=this,mt=[0],X=[],ot=[null],j=[],yt=this.table,Y="",bt=0,At=0,Ut=0,me=2,Ye=1,ke=j.slice.call(arguments,1),pe=Object.create(this.lexer),xe={yy:{}};for(var Ae in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Ae)&&(xe.yy[Ae]=this.yy[Ae]);pe.setInput(It,xe.yy),xe.yy.lexer=pe,xe.yy.parser=this,pe.yylloc===void 0&&(pe.yylloc={});var Ne=pe.yylloc;j.push(Ne);var be=pe.options&&pe.options.ranges;function kn(){var ue;return typeof(ue=X.pop()||pe.lex()||Ye)!="number"&&(ue instanceof Array&&(ue=(X=ue).pop()),ue=Tt.symbols_[ue]||ue),ue}typeof xe.yy.parseError=="function"?this.parseError=xe.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var he,Ze,re,Xt,se,St,ee,st,dt,ft={};;){if(re=mt[mt.length-1],this.defaultActions[re]?Xt=this.defaultActions[re]:(he==null&&(he=kn()),Xt=yt[re]&&yt[re][he]),Xt===void 0||!Xt.length||!Xt[0]){var Dt="";for(St in dt=[],yt[re])this.terminals_[St]&&St>me&&dt.push("'"+this.terminals_[St]+"'");Dt=pe.showPosition?"Parse error on line "+(bt+1)+`:
`+pe.showPosition()+`
Expecting `+dt.join(", ")+", got '"+(this.terminals_[he]||he)+"'":"Parse error on line "+(bt+1)+": Unexpected "+(he==Ye?"end of input":"'"+(this.terminals_[he]||he)+"'"),this.parseError(Dt,{text:pe.match,token:this.terminals_[he]||he,line:pe.yylineno,loc:Ne,expected:dt})}if(Xt[0]instanceof Array&&Xt.length>1)throw new Error("Parse Error: multiple actions possible at state: "+re+", token: "+he);switch(Xt[0]){case 1:mt.push(he),ot.push(pe.yytext),j.push(pe.yylloc),mt.push(Xt[1]),he=null,Ze?(he=Ze,Ze=null):(At=pe.yyleng,Y=pe.yytext,bt=pe.yylineno,Ne=pe.yylloc,Ut>0&&Ut--);break;case 2:if(ee=this.productions_[Xt[1]][1],ft.$=ot[ot.length-ee],ft._$={first_line:j[j.length-(ee||1)].first_line,last_line:j[j.length-1].last_line,first_column:j[j.length-(ee||1)].first_column,last_column:j[j.length-1].last_column},be&&(ft._$.range=[j[j.length-(ee||1)].range[0],j[j.length-1].range[1]]),(se=this.performAction.apply(ft,[Y,At,bt,xe.yy,Xt[1],ot,j].concat(ke)))!==void 0)return se;ee&&(mt=mt.slice(0,-1*ee*2),ot=ot.slice(0,-1*ee),j=j.slice(0,-1*ee)),mt.push(this.productions_[Xt[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}},Vt={EOF:1,parseError:function(It,Tt){if(!this.yy.parser)throw new Error(It);this.yy.parser.parseError(It,Tt)},setInput:function(It,Tt){return this.yy=Tt||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 Tt=It.length,mt=It.split(/(?:\r\n?|\n)/g);this._input=It+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-Tt),this.offset-=Tt;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-Tt},this.options.ranges&&(this.yylloc.range=[ot[0],ot[0]+this.yyleng-Tt]),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(),Tt=new Array(It.length+1).join("-");return It+this.upcomingInput()+`
`+Tt+"^"},test_match:function(It,Tt){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,Tt,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,Tt,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]]))&&(!Tt||mt[0].length>Tt[0].length)){if(Tt=mt,X=j,this.options.backtrack_lexer){if((It=this.test_match(mt,ot[j]))!==!1)return It;if(this._backtrack){Tt=!1;continue}return!1}if(!this.options.flex)break}return Tt?(It=this.test_match(Tt,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,Tt,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 kt(){this.yy={}}return Qt.lexer=Vt,kt.prototype=Qt,Qt.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(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(T,F,O,P){for(O=O||{},P=T.length;P--;O[T[P]]=F);return O},_=[6,9,10],g={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(T,F,O,P,V,J,tt){switch(J.length,V){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(T,F){if(!F.recoverable){var O=new Error(T);throw O.hash=F,O}this.trace(T)},parse:function(T){var F=this,O=[0],P=[],V=[null],J=[],tt=this.table,ht="",et=0,wt=0,at=0,ut=2,vt=1,Qt=J.slice.call(arguments,1),Vt=Object.create(this.lexer),kt={yy:{}};for(var It in this.yy)Object.prototype.hasOwnProperty.call(this.yy,It)&&(kt.yy[It]=this.yy[It]);Vt.setInput(T,kt.yy),kt.yy.lexer=Vt,kt.yy.parser=this,Vt.yylloc===void 0&&(Vt.yylloc={});var Tt=Vt.yylloc;J.push(Tt);var mt=Vt.options&&Vt.options.ranges;function X(){var xe;return typeof(xe=P.pop()||Vt.lex()||vt)!="number"&&(xe instanceof Array&&(xe=(P=xe).pop()),xe=F.symbols_[xe]||xe),xe}typeof kt.yy.parseError=="function"?this.parseError=kt.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var ot,j,yt,Y,bt,At,Ut,me,Ye,ke={};;){if(yt=O[O.length-1],this.defaultActions[yt]?Y=this.defaultActions[yt]:(ot==null&&(ot=X()),Y=tt[yt]&&tt[yt][ot]),Y===void 0||!Y.length||!Y[0]){var pe="";for(At in Ye=[],tt[yt])this.terminals_[At]&&At>ut&&Ye.push("'"+this.terminals_[At]+"'");pe=Vt.showPosition?"Parse error on line "+(et+1)+`:
`+Vt.showPosition()+`
Expecting `+Ye.join(", ")+", got '"+(this.terminals_[ot]||ot)+"'":"Parse error on line "+(et+1)+": Unexpected "+(ot==vt?"end of input":"'"+(this.terminals_[ot]||ot)+"'"),this.parseError(pe,{text:Vt.match,token:this.terminals_[ot]||ot,line:Vt.yylineno,loc:Tt,expected:Ye})}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:O.push(ot),V.push(Vt.yytext),J.push(Vt.yylloc),O.push(Y[1]),ot=null,j?(ot=j,j=null):(wt=Vt.yyleng,ht=Vt.yytext,et=Vt.yylineno,Tt=Vt.yylloc,at>0&&at--);break;case 2:if(Ut=this.productions_[Y[1]][1],ke.$=V[V.length-Ut],ke._$={first_line:J[J.length-(Ut||1)].first_line,last_line:J[J.length-1].last_line,first_column:J[J.length-(Ut||1)].first_column,last_column:J[J.length-1].last_column},mt&&(ke._$.range=[J[J.length-(Ut||1)].range[0],J[J.length-1].range[1]]),(bt=this.performAction.apply(ke,[ht,wt,et,kt.yy,Y[1],V,J].concat(Qt)))!==void 0)return bt;Ut&&(O=O.slice(0,-1*Ut*2),V=V.slice(0,-1*Ut),J=J.slice(0,-1*Ut)),O.push(this.productions_[Y[1]][0]),V.push(ke.$),J.push(ke._$),me=tt[O[O.length-2]][O[O.length-1]],O.push(me);break;case 3:return!0}}return!0}},E={EOF:1,parseError:function(T,F){if(!this.yy.parser)throw new Error(T);this.yy.parser.parseError(T,F)},setInput:function(T,F){return this.yy=F||this.yy||{},this._input=T,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 T=this._input[0];return this.yytext+=T,this.yyleng++,this.offset++,this.match+=T,this.matched+=T,T.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),T},unput:function(T){var F=T.length,O=T.split(/(?:\r\n?|\n)/g);this._input=T+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),O.length-1&&(this.yylineno-=O.length-1);var V=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:O?(O.length===P.length?this.yylloc.first_column:0)+P[P.length-O.length].length-O[0].length:this.yylloc.first_column-F},this.options.ranges&&(this.yylloc.range=[V[0],V[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(T){this.unput(this.match.slice(T))},pastInput:function(){var T=this.matched.substr(0,this.matched.length-this.match.length);return(T.length>20?"...":"")+T.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var T=this.match;return T.length<20&&(T+=this._input.substr(0,20-T.length)),(T.substr(0,20)+(T.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var T=this.pastInput(),F=new Array(T.length+1).join("-");return T+this.upcomingInput()+`
`+F+"^"},test_match:function(T,F){var O,P,V;if(this.options.backtrack_lexer&&(V={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&&(V.yylloc.range=this.yylloc.range.slice(0))),(P=T[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+T[0].length},this.yytext+=T[0],this.match+=T[0],this.matches=T,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(T[0].length),this.matched+=T[0],O=this.performAction.call(this,this.yy,this,F,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),O)return O;if(this._backtrack){for(var J in V)this[J]=V[J];return!1}return!1},next:function(){if(this.done)return this.EOF;var T,F,O,P;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var V=this._currentRules(),J=0;J<V.length;J++)if((O=this._input.match(this.rules[V[J]]))&&(!F||O[0].length>F[0].length)){if(F=O,P=J,this.options.backtrack_lexer){if((T=this.test_match(O,V[J]))!==!1)return T;if(this._backtrack){F=!1;continue}return!1}if(!this.options.flex)break}return F?(T=this.test_match(F,V[P]))!==!1&&T: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(T){this.conditionStack.push(T)},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(T){return(T=this.conditionStack.length-1-Math.abs(T||0))>=0?this.conditionStack[T]:"INITIAL"},pushState:function(T){this.begin(T)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(T,F,O,P){switch(O){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 g.lexer=E,A.prototype=g,g.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(Tt,mt,X,ot){for(X=X||{},ot=Tt.length;ot--;X[Tt[ot]]=mt);return X},_=[1,4],g=[1,5],E=[1,6],A=[1,7],T=[1,9],F=[1,11,13,15,17,19,20,26,27,28,29],O=[2,5],P=[1,6,11,13,15,17,19,20,26,27,28,29],V=[26,27,28],J=[2,8],tt=[1,18],ht=[1,19],et=[1,20],wt=[1,21],at=[1,22],ut=[1,23],vt=[1,28],Qt=[6,26,27,28,29],Vt={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(Tt,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:g,27:E,28:A,29:T},{1:[3]},{3:10,4:2,5:3,6:_,21:8,26:g,27:E,28:A,29:T},{3:11,4:2,5:3,6:_,21:8,26:g,27:E,28:A,29:T},u(F,O,{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(V,J,{21:8,9:16,10:17,5:24,1:[2,3],11:tt,13:ht,15:et,17:wt,19:at,20:ut,29:T}),u(F,O,{7:25}),{23:26,24:[1,27],32:vt},u([24,32],[2,22]),u(F,[2,6]),{4:29,26:g,27:E,28:A},{12:[1,30]},{14:[1,31]},{16:[1,32]},{18:[1,33]},u(V,[2,13]),u(V,[2,14]),u(V,[2,15]),u(V,J,{21:8,9:16,10:17,5:24,1:[2,4],11:tt,13:ht,15:et,17:wt,19:at,20:ut,29:T}),u(Qt,[2,16]),{25:34,31:[1,35]},u(Qt,[2,24]),u(F,[2,7]),u(V,[2,9]),u(V,[2,10]),u(V,[2,11]),u(V,[2,12]),{23:36,32:vt},{32:[2,23]},u(Qt,[2,17])],defaultActions:{9:[2,21],10:[2,1],11:[2,2],35:[2,23]},parseError:function(Tt,mt){if(!mt.recoverable){var X=new Error(Tt);throw X.hash=mt,X}this.trace(Tt)},parse:function(Tt){var mt=this,X=[0],ot=[],j=[null],yt=[],Y=this.table,bt="",At=0,Ut=0,me=0,Ye=2,ke=1,pe=yt.slice.call(arguments,1),xe=Object.create(this.lexer),Ae={yy:{}};for(var Ne in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Ne)&&(Ae.yy[Ne]=this.yy[Ne]);xe.setInput(Tt,Ae.yy),Ae.yy.lexer=xe,Ae.yy.parser=this,xe.yylloc===void 0&&(xe.yylloc={});var be=xe.yylloc;yt.push(be);var kn=xe.options&&xe.options.ranges;function he(){var Oe;return typeof(Oe=ot.pop()||xe.lex()||ke)!="number"&&(Oe instanceof Array&&(Oe=(ot=Oe).pop()),Oe=mt.symbols_[Oe]||Oe),Oe}typeof Ae.yy.parseError=="function"?this.parseError=Ae.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var Ze,re,Xt,se,St,ee,st,dt,ft,Dt={};;){if(Xt=X[X.length-1],this.defaultActions[Xt]?se=this.defaultActions[Xt]:(Ze==null&&(Ze=he()),se=Y[Xt]&&Y[Xt][Ze]),se===void 0||!se.length||!se[0]){var ue="";for(ee in ft=[],Y[Xt])this.terminals_[ee]&&ee>Ye&&ft.push("'"+this.terminals_[ee]+"'");ue=xe.showPosition?"Parse error on line "+(At+1)+`:
`+xe.showPosition()+`
Expecting `+ft.join(", ")+", got '"+(this.terminals_[Ze]||Ze)+"'":"Parse error on line "+(At+1)+": Unexpected "+(Ze==ke?"end of input":"'"+(this.terminals_[Ze]||Ze)+"'"),this.parseError(ue,{text:xe.match,token:this.terminals_[Ze]||Ze,line:xe.yylineno,loc:be,expected:ft})}if(se[0]instanceof Array&&se.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Xt+", token: "+Ze);switch(se[0]){case 1:X.push(Ze),j.push(xe.yytext),yt.push(xe.yylloc),X.push(se[1]),Ze=null,re?(Ze=re,re=null):(Ut=xe.yyleng,bt=xe.yytext,At=xe.yylineno,be=xe.yylloc,me>0&&me--);break;case 2:if(st=this.productions_[se[1]][1],Dt.$=j[j.length-st],Dt._$={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},kn&&(Dt._$.range=[yt[yt.length-(st||1)].range[0],yt[yt.length-1].range[1]]),(St=this.performAction.apply(Dt,[bt,Ut,At,Ae.yy,se[1],j,yt].concat(pe)))!==void 0)return St;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(Dt.$),yt.push(Dt._$),dt=Y[X[X.length-2]][X[X.length-1]],X.push(dt);break;case 3:return!0}}return!0}},kt={EOF:1,parseError:function(Tt,mt){if(!this.yy.parser)throw new Error(Tt);this.yy.parser.parseError(Tt,mt)},setInput:function(Tt,mt){return this.yy=mt||this.yy||{},this._input=Tt,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 Tt=this._input[0];return this.yytext+=Tt,this.yyleng++,this.offset++,this.match+=Tt,this.matched+=Tt,Tt.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),Tt},unput:function(Tt){var mt=Tt.length,X=Tt.split(/(?:\r\n?|\n)/g);this._input=Tt+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(Tt){this.unput(this.match.slice(Tt))},pastInput:function(){var Tt=this.matched.substr(0,this.matched.length-this.match.length);return(Tt.length>20?"...":"")+Tt.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var Tt=this.match;return Tt.length<20&&(Tt+=this._input.substr(0,20-Tt.length)),(Tt.substr(0,20)+(Tt.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var Tt=this.pastInput(),mt=new Array(Tt.length+1).join("-");return Tt+this.upcomingInput()+`
`+mt+"^"},test_match:function(Tt,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=Tt[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+Tt[0].length},this.yytext+=Tt[0],this.match+=Tt[0],this.matches=Tt,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(Tt[0].length),this.matched+=Tt[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 Tt,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((Tt=this.test_match(X,j[yt]))!==!1)return Tt;if(this._backtrack){mt=!1;continue}return!1}if(!this.options.flex)break}return mt?(Tt=this.test_match(mt,j[ot]))!==!1&&Tt: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(Tt){this.conditionStack.push(Tt)},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(Tt){return(Tt=this.conditionStack.length-1-Math.abs(Tt||0))>=0?this.conditionStack[Tt]:"INITIAL"},pushState:function(Tt){this.begin(Tt)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(Tt,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 Vt.lexer=kt,It.prototype=Vt,Vt.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(re,Xt,se,St){for(se=se||{},St=re.length;St--;se[re[St]]=Xt);return se},_=[1,3],g=[1,5],E=[1,6],A=[1,7],T=[1,8],F=[5,6,8,14,16,18,19,40,41,42,43,44,45,53,71,72],O=[1,22],P=[2,13],V=[1,26],J=[1,27],tt=[1,28],ht=[1,29],et=[1,30],wt=[1,31],at=[1,24],ut=[1,32],vt=[1,33],Qt=[1,36],Vt=[71,72],kt=[5,8,14,16,18,19,40,41,42,43,44,45,53,60,62,71,72],It=[1,56],Tt=[1,57],mt=[1,58],X=[1,59],ot=[1,60],j=[1,61],yt=[1,62],Y=[62,63],bt=[1,74],At=[1,70],Ut=[1,71],me=[1,72],Ye=[1,73],ke=[1,75],pe=[1,79],xe=[1,80],Ae=[1,77],Ne=[1,78],be=[5,8,14,16,18,19,40,41,42,43,44,45,53,71,72],kn={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(re,Xt,se,St,ee,st,dt){var ft=st.length-1;switch(ee){case 6:this.$=st[ft].trim(),St.setAccTitle(this.$);break;case 7:case 8:this.$=st[ft].trim(),St.setAccDescription(this.$);break;case 9:St.parseDirective("%%{","open_directive");break;case 10:St.parseDirective(st[ft],"type_directive");break;case 11:st[ft]=st[ft].trim().replace(/'/g,'"'),St.parseDirective(st[ft],"arg_directive");break;case 12:St.parseDirective("}%%","close_directive","pie");break;case 13:this.$=[];break;case 19:St.addRequirement(st[ft-3],st[ft-4]);break;case 20:St.setNewReqId(st[ft-2]);break;case 21:St.setNewReqText(st[ft-2]);break;case 22:St.setNewReqRisk(st[ft-2]);break;case 23:St.setNewReqVerifyMethod(st[ft-2]);break;case 26:this.$=St.RequirementType.REQUIREMENT;break;case 27:this.$=St.RequirementType.FUNCTIONAL_REQUIREMENT;break;case 28:this.$=St.RequirementType.INTERFACE_REQUIREMENT;break;case 29:this.$=St.RequirementType.PERFORMANCE_REQUIREMENT;break;case 30:this.$=St.RequirementType.PHYSICAL_REQUIREMENT;break;case 31:this.$=St.RequirementType.DESIGN_CONSTRAINT;break;case 32:this.$=St.RiskLevel.LOW_RISK;break;case 33:this.$=St.RiskLevel.MED_RISK;break;case 34:this.$=St.RiskLevel.HIGH_RISK;break;case 35:this.$=St.VerifyType.VERIFY_ANALYSIS;break;case 36:this.$=St.VerifyType.VERIFY_DEMONSTRATION;break;case 37:this.$=St.VerifyType.VERIFY_INSPECTION;break;case 38:this.$=St.VerifyType.VERIFY_TEST;break;case 39:St.addElement(st[ft-3]);break;case 40:St.setNewElementType(st[ft-2]);break;case 41:St.setNewElementDocRef(st[ft-2]);break;case 44:St.addRelationship(st[ft-2],st[ft],st[ft-4]);break;case 45:St.addRelationship(st[ft-2],st[ft-4],st[ft]);break;case 46:this.$=St.Relationships.CONTAINS;break;case 47:this.$=St.Relationships.COPIES;break;case 48:this.$=St.Relationships.DERIVES;break;case 49:this.$=St.Relationships.SATISFIES;break;case 50:this.$=St.Relationships.VERIFIES;break;case 51:this.$=St.Relationships.REFINES;break;case 52:this.$=St.Relationships.TRACES}},table:[{3:1,4:2,6:_,9:4,14:g,16:E,18:A,19:T},{1:[3]},{3:10,4:2,5:[1,9],6:_,9:4,14:g,16:E,18:A,19:T},{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:g,16:E,18:A,19:T},{1:[2,2]},{4:21,5:O,7:17,8:P,9:4,14:g,16:E,18:A,19:T,23:18,24:19,25:20,26:23,32:25,40:V,41:J,42:tt,43:ht,44:et,45:wt,53:at,71:ut,72:vt},{11:34,12:[1,35],22:Qt},u([12,22],[2,10]),u(F,[2,6]),u(F,[2,7]),{1:[2,1]},{8:[1,37]},{4:21,5:O,7:38,8:P,9:4,14:g,16:E,18:A,19:T,23:18,24:19,25:20,26:23,32:25,40:V,41:J,42:tt,43:ht,44:et,45:wt,53:at,71:ut,72:vt},{4:21,5:O,7:39,8:P,9:4,14:g,16:E,18:A,19:T,23:18,24:19,25:20,26:23,32:25,40:V,41:J,42:tt,43:ht,44:et,45:wt,53:at,71:ut,72:vt},{4:21,5:O,7:40,8:P,9:4,14:g,16:E,18:A,19:T,23:18,24:19,25:20,26:23,32:25,40:V,41:J,42:tt,43:ht,44:et,45:wt,53:at,71:ut,72:vt},{4:21,5:O,7:41,8:P,9:4,14:g,16:E,18:A,19:T,23:18,24:19,25:20,26:23,32:25,40:V,41:J,42:tt,43:ht,44:et,45:wt,53:at,71:ut,72:vt},{4:21,5:O,7:42,8:P,9:4,14:g,16:E,18:A,19:T,23:18,24:19,25:20,26:23,32:25,40:V,41:J,42:tt,43:ht,44:et,45:wt,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(Vt,[2,26]),u(Vt,[2,27]),u(Vt,[2,28]),u(Vt,[2,29]),u(Vt,[2,30]),u(Vt,[2,31]),u(kt,[2,55]),u(kt,[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:Tt,66:mt,67:X,68:ot,69:j,70:yt},{61:63,64:It,65:Tt,66:mt,67:X,68:ot,69:j,70:yt},{11:64,22:Qt},{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:At,33:Ut,35:me,37:Ye,39:ke},{5:pe,39:xe,55:76,56:Ae,58:Ne},{32:81,71:ut,72:vt},{32:82,71:ut,72:vt},u(be,[2,19]),{31:[1,83]},{31:[1,84]},{31:[1,85]},{31:[1,86]},{5:bt,29:87,30:At,33:Ut,35:me,37:Ye,39:ke},u(be,[2,25]),u(be,[2,39]),{31:[1,88]},{31:[1,89]},{5:pe,39:xe,55:90,56:Ae,58:Ne},u(be,[2,43]),u(be,[2,44]),u(be,[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(be,[2,24]),{57:104,71:[1,105],72:[1,106]},{59:107,71:[1,108],72:[1,109]},u(be,[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:At,33:Ut,35:me,37:Ye,39:ke},{5:bt,29:117,30:At,33:Ut,35:me,37:Ye,39:ke},{5:bt,29:118,30:At,33:Ut,35:me,37:Ye,39:ke},{5:bt,29:119,30:At,33:Ut,35:me,37:Ye,39:ke},{5:pe,39:xe,55:120,56:Ae,58:Ne},{5:pe,39:xe,55:121,56:Ae,58:Ne},u(be,[2,20]),u(be,[2,21]),u(be,[2,22]),u(be,[2,23]),u(be,[2,40]),u(be,[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(re,Xt){if(!Xt.recoverable){var se=new Error(re);throw se.hash=Xt,se}this.trace(re)},parse:function(re){var Xt=this,se=[0],St=[],ee=[null],st=[],dt=this.table,ft="",Dt=0,ue=0,Oe=0,en=2,$e=1,cn=st.slice.call(arguments,1),Fe=Object.create(this.lexer),Ee={yy:{}};for(var Be in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Be)&&(Ee.yy[Be]=this.yy[Be]);Fe.setInput(re,Ee.yy),Ee.yy.lexer=Fe,Ee.yy.parser=this,Fe.yylloc===void 0&&(Fe.yylloc={});var Le=Fe.yylloc;st.push(Le);var ge=Fe.options&&Fe.options.ranges;function ie(){var Se;return typeof(Se=St.pop()||Fe.lex()||$e)!="number"&&(Se instanceof Array&&(Se=(St=Se).pop()),Se=Xt.symbols_[Se]||Se),Se}typeof Ee.yy.parseError=="function"?this.parseError=Ee.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var An,Ie,un,ze,pn,tr,Dn,Tn,De,Qe={};;){if(un=se[se.length-1],this.defaultActions[un]?ze=this.defaultActions[un]:(An==null&&(An=ie()),ze=dt[un]&&dt[un][An]),ze===void 0||!ze.length||!ze[0]){var Ge="";for(tr in De=[],dt[un])this.terminals_[tr]&&tr>en&&De.push("'"+this.terminals_[tr]+"'");Ge=Fe.showPosition?"Parse error on line "+(Dt+1)+`:
`+Fe.showPosition()+`
Expecting `+De.join(", ")+", got '"+(this.terminals_[An]||An)+"'":"Parse error on line "+(Dt+1)+": Unexpected "+(An==$e?"end of input":"'"+(this.terminals_[An]||An)+"'"),this.parseError(Ge,{text:Fe.match,token:this.terminals_[An]||An,line:Fe.yylineno,loc:Le,expected:De})}if(ze[0]instanceof Array&&ze.length>1)throw new Error("Parse Error: multiple actions possible at state: "+un+", token: "+An);switch(ze[0]){case 1:se.push(An),ee.push(Fe.yytext),st.push(Fe.yylloc),se.push(ze[1]),An=null,Ie?(An=Ie,Ie=null):(ue=Fe.yyleng,ft=Fe.yytext,Dt=Fe.yylineno,Le=Fe.yylloc,Oe>0&&Oe--);break;case 2:if(Dn=this.productions_[ze[1]][1],Qe.$=ee[ee.length-Dn],Qe._$={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&&(Qe._$.range=[st[st.length-(Dn||1)].range[0],st[st.length-1].range[1]]),(pn=this.performAction.apply(Qe,[ft,ue,Dt,Ee.yy,ze[1],ee,st].concat(cn)))!==void 0)return pn;Dn&&(se=se.slice(0,-1*Dn*2),ee=ee.slice(0,-1*Dn),st=st.slice(0,-1*Dn)),se.push(this.productions_[ze[1]][0]),ee.push(Qe.$),st.push(Qe._$),Tn=dt[se[se.length-2]][se[se.length-1]],se.push(Tn);break;case 3:return!0}}return!0}},he={EOF:1,parseError:function(re,Xt){if(!this.yy.parser)throw new Error(re);this.yy.parser.parseError(re,Xt)},setInput:function(re,Xt){return this.yy=Xt||this.yy||{},this._input=re,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 re=this._input[0];return this.yytext+=re,this.yyleng++,this.offset++,this.match+=re,this.matched+=re,re.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),re},unput:function(re){var Xt=re.length,se=re.split(/(?:\r\n?|\n)/g);this._input=re+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-Xt),this.offset-=Xt;var St=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 ee=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===St.length?this.yylloc.first_column:0)+St[St.length-se.length].length-se[0].length:this.yylloc.first_column-Xt},this.options.ranges&&(this.yylloc.range=[ee[0],ee[0]+this.yyleng-Xt]),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(re){this.unput(this.match.slice(re))},pastInput:function(){var re=this.matched.substr(0,this.matched.length-this.match.length);return(re.length>20?"...":"")+re.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var re=this.match;return re.length<20&&(re+=this._input.substr(0,20-re.length)),(re.substr(0,20)+(re.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var re=this.pastInput(),Xt=new Array(re.length+1).join("-");return re+this.upcomingInput()+`
`+Xt+"^"},test_match:function(re,Xt){var se,St,ee;if(this.options.backtrack_lexer&&(ee={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&&(ee.yylloc.range=this.yylloc.range.slice(0))),(St=re[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=St.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:St?St[St.length-1].length-St[St.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+re[0].length},this.yytext+=re[0],this.match+=re[0],this.matches=re,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(re[0].length),this.matched+=re[0],se=this.performAction.call(this,this.yy,this,Xt,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),se)return se;if(this._backtrack){for(var st in ee)this[st]=ee[st];return!1}return!1},next:function(){if(this.done)return this.EOF;var re,Xt,se,St;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var ee=this._currentRules(),st=0;st<ee.length;st++)if((se=this._input.match(this.rules[ee[st]]))&&(!Xt||se[0].length>Xt[0].length)){if(Xt=se,St=st,this.options.backtrack_lexer){if((re=this.test_match(se,ee[st]))!==!1)return re;if(this._backtrack){Xt=!1;continue}return!1}if(!this.options.flex)break}return Xt?(re=this.test_match(Xt,ee[St]))!==!1&&re: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(re){this.conditionStack.push(re)},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(re){return(re=this.conditionStack.length-1-Math.abs(re||0))>=0?this.conditionStack[re]:"INITIAL"},pushState:function(re){this.begin(re)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(re,Xt,se,St){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 Xt.yytext=Xt.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 Ze(){this.yy={}}return kn.lexer=he,Ze.prototype=kn,kn.Parser=Ze,new Ze}();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(re,Xt,se,St){for(se=se||{},St=re.length;St--;se[re[St]]=Xt);return se},_=[1,2],g=[1,3],E=[1,5],A=[1,7],T=[2,5],F=[1,15],O=[1,17],P=[1,18],V=[1,19],J=[1,21],tt=[1,22],ht=[1,23],et=[1,29],wt=[1,30],at=[1,31],ut=[1,32],vt=[1,33],Qt=[1,34],Vt=[1,35],kt=[1,36],It=[1,37],Tt=[1,38],mt=[1,39],X=[1,40],ot=[1,43],j=[1,44],yt=[1,45],Y=[1,46],bt=[1,47],At=[1,48],Ut=[1,51],me=[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],Ye=[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],ke=[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],xe=[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],Ne=[1,121],be=[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],kn={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(re,Xt,se,St,ee,st,dt){var ft=st.length-1;switch(ee){case 4:return St.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=St.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=St.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:St.LINETYPE.AUTONUMBER};break;case 18:this.$={type:"sequenceIndex",sequenceIndex:Number(st[ft-1]),sequenceIndexStep:1,sequenceVisible:!0,signalType:St.LINETYPE.AUTONUMBER};break;case 19:this.$={type:"sequenceIndex",sequenceVisible:!1,signalType:St.LINETYPE.AUTONUMBER};break;case 20:this.$={type:"sequenceIndex",sequenceVisible:!0,signalType:St.LINETYPE.AUTONUMBER};break;case 21:this.$={type:"activeStart",signalType:St.LINETYPE.ACTIVE_START,actor:st[ft-1]};break;case 22:this.$={type:"activeEnd",signalType:St.LINETYPE.ACTIVE_END,actor:st[ft-1]};break;case 28:St.setDiagramTitle(st[ft].substring(6)),this.$=st[ft].substring(6);break;case 29:St.setDiagramTitle(st[ft].substring(7)),this.$=st[ft].substring(7);break;case 30:this.$=st[ft].trim(),St.setAccTitle(this.$);break;case 31:case 32:this.$=st[ft].trim(),St.setAccDescription(this.$);break;case 33:st[ft-1].unshift({type:"loopStart",loopText:St.parseMessage(st[ft-2]),signalType:St.LINETYPE.LOOP_START}),st[ft-1].push({type:"loopEnd",loopText:st[ft-2],signalType:St.LINETYPE.LOOP_END}),this.$=st[ft-1];break;case 34:st[ft-1].unshift({type:"rectStart",color:St.parseMessage(st[ft-2]),signalType:St.LINETYPE.RECT_START}),st[ft-1].push({type:"rectEnd",color:St.parseMessage(st[ft-2]),signalType:St.LINETYPE.RECT_END}),this.$=st[ft-1];break;case 35:st[ft-1].unshift({type:"optStart",optText:St.parseMessage(st[ft-2]),signalType:St.LINETYPE.OPT_START}),st[ft-1].push({type:"optEnd",optText:St.parseMessage(st[ft-2]),signalType:St.LINETYPE.OPT_END}),this.$=st[ft-1];break;case 36:st[ft-1].unshift({type:"altStart",altText:St.parseMessage(st[ft-2]),signalType:St.LINETYPE.ALT_START}),st[ft-1].push({type:"altEnd",signalType:St.LINETYPE.ALT_END}),this.$=st[ft-1];break;case 37:st[ft-1].unshift({type:"parStart",parText:St.parseMessage(st[ft-2]),signalType:St.LINETYPE.PAR_START}),st[ft-1].push({type:"parEnd",signalType:St.LINETYPE.PAR_END}),this.$=st[ft-1];break;case 38:st[ft-1].unshift({type:"criticalStart",criticalText:St.parseMessage(st[ft-2]),signalType:St.LINETYPE.CRITICAL_START}),st[ft-1].push({type:"criticalEnd",signalType:St.LINETYPE.CRITICAL_END}),this.$=st[ft-1];break;case 39:st[ft-1].unshift({type:"breakStart",breakText:St.parseMessage(st[ft-2]),signalType:St.LINETYPE.BREAK_START}),st[ft-1].push({type:"breakEnd",optText:St.parseMessage(st[ft-2]),signalType:St.LINETYPE.BREAK_END}),this.$=st[ft-1];break;case 42:this.$=st[ft-3].concat([{type:"option",optionText:St.parseMessage(st[ft-1]),signalType:St.LINETYPE.CRITICAL_OPTION},st[ft]]);break;case 44:this.$=st[ft-3].concat([{type:"and",parText:St.parseMessage(st[ft-1]),signalType:St.LINETYPE.PAR_AND},st[ft]]);break;case 46:this.$=st[ft-3].concat([{type:"else",altText:St.parseMessage(st[ft-1]),signalType:St.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:St.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.$=St.PLACEMENT.LEFTOF;break;case 58:this.$=St.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:St.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:St.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.$=St.LINETYPE.SOLID_OPEN;break;case 64:this.$=St.LINETYPE.DOTTED_OPEN;break;case 65:this.$=St.LINETYPE.SOLID;break;case 66:this.$=St.LINETYPE.DOTTED;break;case 67:this.$=St.LINETYPE.SOLID_CROSS;break;case 68:this.$=St.LINETYPE.DOTTED_CROSS;break;case 69:this.$=St.LINETYPE.SOLID_POINT;break;case 70:this.$=St.LINETYPE.DOTTED_POINT;break;case 71:this.$=St.parseMessage(st[ft].trim().substring(1));break;case 72:St.parseDirective("%%{","open_directive");break;case 73:St.parseDirective(st[ft],"type_directive");break;case 74:st[ft]=st[ft].trim().replace(/'/g,'"'),St.parseDirective(st[ft],"arg_directive");break;case 75:St.parseDirective("}%%","close_directive","sequence")}},table:[{3:1,4:_,5:g,6:4,7:E,11:6,79:A},{1:[3]},{3:8,4:_,5:g,6:4,7:E,11:6,79:A},{3:9,4:_,5:g,6:4,7:E,11:6,79:A},{3:10,4:_,5:g,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],T,{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:O,6:41,9:14,10:16,11:6,16:P,17:42,20:V,21:20,22:J,25:tt,26:ht,27:24,28:25,29:26,30:27,31:28,32:et,33:wt,34:at,36:ut,38:vt,39:Qt,41:Vt,42:kt,43:It,45:Tt,47:mt,49:X,53:ot,58:j,59:yt,60:Y,61:bt,69:At,79:A},{13:49,14:[1,50],82:Ut},u([14,82],[2,73]),u(me,[2,6]),{6:41,10:52,11:6,16:P,17:42,20:V,21:20,22:J,25:tt,26:ht,27:24,28:25,29:26,30:27,31:28,32:et,33:wt,34:at,36:ut,38:vt,39:Qt,41:Vt,42:kt,43:It,45:Tt,47:mt,49:X,53:ot,58:j,59:yt,60:Y,61:bt,69:At,79:A},u(me,[2,8]),u(me,[2,9]),{17:53,69:At},{17:54,69:At},{5:[1,55]},{5:[1,58],23:[1,56],24:[1,57]},{17:59,69:At},{17:60,69:At},{5:[1,61]},{5:[1,62]},{5:[1,63]},{5:[1,64]},{5:[1,65]},u(me,[2,28]),u(me,[2,29]),{35:[1,66]},{37:[1,67]},u(me,[2,32]),{19:[1,68]},{19:[1,69]},{19:[1,70]},{19:[1,71]},{19:[1,72]},{19:[1,73]},{19:[1,74]},u(me,[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:At},{17:89,69:At},{17:90,69:At},{17:91,69:At},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(me,[2,7]),{5:[1,96],18:[1,95]},{5:[1,98],18:[1,97]},u(me,[2,16]),{5:[1,100],23:[1,99]},{5:[1,101]},u(me,[2,20]),{5:[1,102]},{5:[1,103]},u(me,[2,23]),u(me,[2,24]),u(me,[2,25]),u(me,[2,26]),u(me,[2,27]),u(me,[2,30]),u(me,[2,31]),u(Ye,T,{8:104}),u(Ye,T,{8:105}),u(Ye,T,{8:106}),u(ke,T,{44:107,8:108}),u(pe,T,{46:109,8:110}),u(xe,T,{48:111,8:112}),u(Ye,T,{8:113}),{17:116,67:[1,114],68:[1,115],69:At},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:At},{17:119,57:118,69:At},{69:[2,57]},{69:[2,58]},{55:120,78:Ne},{55:122,78:Ne},{55:123,78:Ne},{55:124,78:Ne},u(be,[2,10]),{13:125,82:Ut},{82:[2,74]},{19:[1,126]},u(me,[2,13]),{19:[1,127]},u(me,[2,15]),{5:[1,128]},u(me,[2,18]),u(me,[2,19]),u(me,[2,21]),u(me,[2,22]),{4:F,5:O,6:41,9:14,10:16,11:6,16:P,17:42,20:V,21:20,22:J,25:tt,26:ht,27:24,28:25,29:26,30:27,31:28,32:et,33:wt,34:at,36:ut,38:vt,39:Qt,40:[1,129],41:Vt,42:kt,43:It,45:Tt,47:mt,49:X,53:ot,58:j,59:yt,60:Y,61:bt,69:At,79:A},{4:F,5:O,6:41,9:14,10:16,11:6,16:P,17:42,20:V,21:20,22:J,25:tt,26:ht,27:24,28:25,29:26,30:27,31:28,32:et,33:wt,34:at,36:ut,38:vt,39:Qt,40:[1,130],41:Vt,42:kt,43:It,45:Tt,47:mt,49:X,53:ot,58:j,59:yt,60:Y,61:bt,69:At,79:A},{4:F,5:O,6:41,9:14,10:16,11:6,16:P,17:42,20:V,21:20,22:J,25:tt,26:ht,27:24,28:25,29:26,30:27,31:28,32:et,33:wt,34:at,36:ut,38:vt,39:Qt,40:[1,131],41:Vt,42:kt,43:It,45:Tt,47:mt,49:X,53:ot,58:j,59:yt,60:Y,61:bt,69:At,79:A},{40:[1,132]},{4:F,5:O,6:41,9:14,10:16,11:6,16:P,17:42,20:V,21:20,22:J,25:tt,26:ht,27:24,28:25,29:26,30:27,31:28,32:et,33:wt,34:at,36:ut,38:vt,39:Qt,40:[2,45],41:Vt,42:kt,43:It,45:Tt,47:mt,49:X,52:[1,133],53:ot,58:j,59:yt,60:Y,61:bt,69:At,79:A},{40:[1,134]},{4:F,5:O,6:41,9:14,10:16,11:6,16:P,17:42,20:V,21:20,22:J,25:tt,26:ht,27:24,28:25,29:26,30:27,31:28,32:et,33:wt,34:at,36:ut,38:vt,39:Qt,40:[2,43],41:Vt,42:kt,43:It,45:Tt,47:mt,49:X,51:[1,135],53:ot,58:j,59:yt,60:Y,61:bt,69:At,79:A},{40:[1,136]},{4:F,5:O,6:41,9:14,10:16,11:6,16:P,17:42,20:V,21:20,22:J,25:tt,26:ht,27:24,28:25,29:26,30:27,31:28,32:et,33:wt,34:at,36:ut,38:vt,39:Qt,40:[2,41],41:Vt,42:kt,43:It,45:Tt,47:mt,49:X,50:[1,137],53:ot,58:j,59:yt,60:Y,61:bt,69:At,79:A},{4:F,5:O,6:41,9:14,10:16,11:6,16:P,17:42,20:V,21:20,22:J,25:tt,26:ht,27:24,28:25,29:26,30:27,31:28,32:et,33:wt,34:at,36:ut,38:vt,39:Qt,40:[1,138],41:Vt,42:kt,43:It,45:Tt,47:mt,49:X,53:ot,58:j,59:yt,60:Y,61:bt,69:At,79:A},{17:139,69:At},{17:140,69:At},{55:141,78:Ne},{55:142,78:Ne},{55:143,78:Ne},{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(me,[2,17]),u(me,[2,33]),u(me,[2,34]),u(me,[2,35]),u(me,[2,36]),{19:[1,148]},u(me,[2,37]),{19:[1,149]},u(me,[2,38]),{19:[1,150]},u(me,[2,39]),{55:151,78:Ne},{55:152,78:Ne},{5:[2,61]},{5:[2,47]},{5:[2,48]},{17:153,69:At},u(be,[2,11]),u(me,[2,12]),u(me,[2,14]),u(ke,T,{8:108,44:154}),u(pe,T,{8:110,46:155}),u(xe,T,{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(re,Xt){if(!Xt.recoverable){var se=new Error(re);throw se.hash=Xt,se}this.trace(re)},parse:function(re){var Xt=this,se=[0],St=[],ee=[null],st=[],dt=this.table,ft="",Dt=0,ue=0,Oe=0,en=2,$e=1,cn=st.slice.call(arguments,1),Fe=Object.create(this.lexer),Ee={yy:{}};for(var Be in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Be)&&(Ee.yy[Be]=this.yy[Be]);Fe.setInput(re,Ee.yy),Ee.yy.lexer=Fe,Ee.yy.parser=this,Fe.yylloc===void 0&&(Fe.yylloc={});var Le=Fe.yylloc;st.push(Le);var ge=Fe.options&&Fe.options.ranges;function ie(){var Se;return typeof(Se=St.pop()||Fe.lex()||$e)!="number"&&(Se instanceof Array&&(Se=(St=Se).pop()),Se=Xt.symbols_[Se]||Se),Se}typeof Ee.yy.parseError=="function"?this.parseError=Ee.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var An,Ie,un,ze,pn,tr,Dn,Tn,De,Qe={};;){if(un=se[se.length-1],this.defaultActions[un]?ze=this.defaultActions[un]:(An==null&&(An=ie()),ze=dt[un]&&dt[un][An]),ze===void 0||!ze.length||!ze[0]){var Ge="";for(tr in De=[],dt[un])this.terminals_[tr]&&tr>en&&De.push("'"+this.terminals_[tr]+"'");Ge=Fe.showPosition?"Parse error on line "+(Dt+1)+`:
`+Fe.showPosition()+`
Expecting `+De.join(", ")+", got '"+(this.terminals_[An]||An)+"'":"Parse error on line "+(Dt+1)+": Unexpected "+(An==$e?"end of input":"'"+(this.terminals_[An]||An)+"'"),this.parseError(Ge,{text:Fe.match,token:this.terminals_[An]||An,line:Fe.yylineno,loc:Le,expected:De})}if(ze[0]instanceof Array&&ze.length>1)throw new Error("Parse Error: multiple actions possible at state: "+un+", token: "+An);switch(ze[0]){case 1:se.push(An),ee.push(Fe.yytext),st.push(Fe.yylloc),se.push(ze[1]),An=null,Ie?(An=Ie,Ie=null):(ue=Fe.yyleng,ft=Fe.yytext,Dt=Fe.yylineno,Le=Fe.yylloc,Oe>0&&Oe--);break;case 2:if(Dn=this.productions_[ze[1]][1],Qe.$=ee[ee.length-Dn],Qe._$={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&&(Qe._$.range=[st[st.length-(Dn||1)].range[0],st[st.length-1].range[1]]),(pn=this.performAction.apply(Qe,[ft,ue,Dt,Ee.yy,ze[1],ee,st].concat(cn)))!==void 0)return pn;Dn&&(se=se.slice(0,-1*Dn*2),ee=ee.slice(0,-1*Dn),st=st.slice(0,-1*Dn)),se.push(this.productions_[ze[1]][0]),ee.push(Qe.$),st.push(Qe._$),Tn=dt[se[se.length-2]][se[se.length-1]],se.push(Tn);break;case 3:return!0}}return!0}},he={EOF:1,parseError:function(re,Xt){if(!this.yy.parser)throw new Error(re);this.yy.parser.parseError(re,Xt)},setInput:function(re,Xt){return this.yy=Xt||this.yy||{},this._input=re,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 re=this._input[0];return this.yytext+=re,this.yyleng++,this.offset++,this.match+=re,this.matched+=re,re.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),re},unput:function(re){var Xt=re.length,se=re.split(/(?:\r\n?|\n)/g);this._input=re+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-Xt),this.offset-=Xt;var St=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 ee=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===St.length?this.yylloc.first_column:0)+St[St.length-se.length].length-se[0].length:this.yylloc.first_column-Xt},this.options.ranges&&(this.yylloc.range=[ee[0],ee[0]+this.yyleng-Xt]),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(re){this.unput(this.match.slice(re))},pastInput:function(){var re=this.matched.substr(0,this.matched.length-this.match.length);return(re.length>20?"...":"")+re.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var re=this.match;return re.length<20&&(re+=this._input.substr(0,20-re.length)),(re.substr(0,20)+(re.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var re=this.pastInput(),Xt=new Array(re.length+1).join("-");return re+this.upcomingInput()+`
`+Xt+"^"},test_match:function(re,Xt){var se,St,ee;if(this.options.backtrack_lexer&&(ee={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&&(ee.yylloc.range=this.yylloc.range.slice(0))),(St=re[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=St.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:St?St[St.length-1].length-St[St.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+re[0].length},this.yytext+=re[0],this.match+=re[0],this.matches=re,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(re[0].length),this.matched+=re[0],se=this.performAction.call(this,this.yy,this,Xt,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),se)return se;if(this._backtrack){for(var st in ee)this[st]=ee[st];return!1}return!1},next:function(){if(this.done)return this.EOF;var re,Xt,se,St;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var ee=this._currentRules(),st=0;st<ee.length;st++)if((se=this._input.match(this.rules[ee[st]]))&&(!Xt||se[0].length>Xt[0].length)){if(Xt=se,St=st,this.options.backtrack_lexer){if((re=this.test_match(se,ee[st]))!==!1)return re;if(this._backtrack){Xt=!1;continue}return!1}if(!this.options.flex)break}return Xt?(re=this.test_match(Xt,ee[St]))!==!1&&re: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(re){this.conditionStack.push(re)},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(re){return(re=this.conditionStack.length-1-Math.abs(re||0))>=0?this.conditionStack[re]:"INITIAL"},pushState:function(re){this.begin(re)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(re,Xt,se,St){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 Xt.yytext=Xt.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 Xt.yytext=Xt.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 Ze(){this.yy={}}return kn.lexer=he,Ze.prototype=kn,kn.Parser=Ze,new Ze}();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(ke,pe,xe,Ae){for(xe=xe||{},Ae=ke.length;Ae--;xe[ke[Ae]]=pe);return xe},_=[1,2],g=[1,3],E=[1,5],A=[1,7],T=[2,5],F=[1,15],O=[1,17],P=[1,19],V=[1,20],J=[1,21],tt=[1,22],ht=[1,33],et=[1,23],wt=[1,24],at=[1,25],ut=[1,26],vt=[1,27],Qt=[1,30],Vt=[1,31],kt=[1,32],It=[1,35],Tt=[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],At=[4,5,14,15,17,19,20,22,23,24,25,26,27,31,33,35,41,42,43,44,47,50],Ut={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(ke,pe,xe,Ae,Ne,be,kn){var he=be.length-1;switch(Ne){case 4:return Ae.setRootDoc(be[he]),be[he];case 5:this.$=[];break;case 6:be[he]!="nl"&&(be[he-1].push(be[he]),this.$=be[he-1]);break;case 7:case 8:case 39:case 40:this.$=be[he];break;case 9:this.$="nl";break;case 10:this.$={stmt:"state",id:be[he],type:"default",description:""};break;case 11:this.$={stmt:"state",id:be[he-1],type:"default",description:Ae.trimColon(be[he])};break;case 12:this.$={stmt:"relation",state1:{stmt:"state",id:be[he-2],type:"default",description:""},state2:{stmt:"state",id:be[he],type:"default",description:""}};break;case 13:this.$={stmt:"relation",state1:{stmt:"state",id:be[he-3],type:"default",description:""},state2:{stmt:"state",id:be[he-1],type:"default",description:""},description:be[he].substr(1).trim()};break;case 17:this.$={stmt:"state",id:be[he-3],type:"default",description:"",doc:be[he-1]};break;case 18:var Ze=be[he],re=be[he-2].trim();if(be[he].match(":")){var Xt=be[he].split(":");Ze=Xt[0],re=[re,Xt[1]]}this.$={stmt:"state",id:Ze,type:"default",description:re};break;case 19:this.$={stmt:"state",id:be[he-3],type:"default",description:be[he-5],doc:be[he-1]};break;case 20:this.$={stmt:"state",id:be[he],type:"fork"};break;case 21:this.$={stmt:"state",id:be[he],type:"join"};break;case 22:this.$={stmt:"state",id:be[he],type:"choice"};break;case 23:this.$={stmt:"state",id:Ae.getDividerId(),type:"divider"};break;case 24:this.$={stmt:"state",id:be[he-1].trim(),note:{position:be[he-2].trim(),text:be[he].trim()}};break;case 28:this.$=be[he].trim(),Ae.setAccTitle(this.$);break;case 29:case 30:this.$=be[he].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(be[he],"type_directive");break;case 45:be[he]=be[he].trim().replace(/'/g,'"'),Ae.parseDirective(be[he],"arg_directive");break;case 46:Ae.parseDirective("}%%","close_directive","state")}},table:[{3:1,4:_,5:g,6:4,7:E,36:6,50:A},{1:[3]},{3:8,4:_,5:g,6:4,7:E,36:6,50:A},{3:9,4:_,5:g,6:4,7:E,36:6,50:A},{3:10,4:_,5:g,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],T,{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:O,6:28,9:14,10:16,11:18,14:P,15:V,17:J,20:tt,22:ht,23:et,24:wt,25:at,26:ut,27:vt,30:29,31:Qt,33:Vt,35:kt,36:6,41:It,42:Tt,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:V,17:J,20:tt,22:ht,23:et,24:wt,25:at,26:ut,27:vt,30:29,31:Qt,33:Vt,35:kt,36:6,41:It,42:Tt,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(At,T,{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:O,6:28,9:14,10:16,11:18,14:P,15:V,17:J,19:[1,63],20:tt,22:ht,23:et,24:wt,25:at,26:ut,27:vt,30:29,31:Qt,33:Vt,35:kt,36:6,41:It,42:Tt,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(At,T,{8:67}),u(yt,[2,24]),u(yt,[2,25]),{4:F,5:O,6:28,9:14,10:16,11:18,14:P,15:V,17:J,19:[1,68],20:tt,22:ht,23:et,24:wt,25:at,26:ut,27:vt,30:29,31:Qt,33:Vt,35:kt,36:6,41:It,42:Tt,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(ke,pe){if(!pe.recoverable){var xe=new Error(ke);throw xe.hash=pe,xe}this.trace(ke)},parse:function(ke){var pe=this,xe=[0],Ae=[],Ne=[null],be=[],kn=this.table,he="",Ze=0,re=0,Xt=0,se=2,St=1,ee=be.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(ke,dt.yy),dt.yy.lexer=st,dt.yy.parser=this,st.yylloc===void 0&&(st.yylloc={});var Dt=st.yylloc;be.push(Dt);var ue=st.options&&st.options.ranges;function Oe(){var un;return typeof(un=Ae.pop()||st.lex()||St)!="number"&&(un instanceof Array&&(un=(Ae=un).pop()),un=pe.symbols_[un]||un),un}typeof dt.yy.parseError=="function"?this.parseError=dt.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var en,$e,cn,Fe,Ee,Be,Le,ge,ie,An={};;){if(cn=xe[xe.length-1],this.defaultActions[cn]?Fe=this.defaultActions[cn]:(en==null&&(en=Oe()),Fe=kn[cn]&&kn[cn][en]),Fe===void 0||!Fe.length||!Fe[0]){var Ie="";for(Be in ie=[],kn[cn])this.terminals_[Be]&&Be>se&&ie.push("'"+this.terminals_[Be]+"'");Ie=st.showPosition?"Parse error on line "+(Ze+1)+`:
`+st.showPosition()+`
Expecting `+ie.join(", ")+", got '"+(this.terminals_[en]||en)+"'":"Parse error on line "+(Ze+1)+": Unexpected "+(en==St?"end of input":"'"+(this.terminals_[en]||en)+"'"),this.parseError(Ie,{text:st.match,token:this.terminals_[en]||en,line:st.yylineno,loc:Dt,expected:ie})}if(Fe[0]instanceof Array&&Fe.length>1)throw new Error("Parse Error: multiple actions possible at state: "+cn+", token: "+en);switch(Fe[0]){case 1:xe.push(en),Ne.push(st.yytext),be.push(st.yylloc),xe.push(Fe[1]),en=null,$e?(en=$e,$e=null):(re=st.yyleng,he=st.yytext,Ze=st.yylineno,Dt=st.yylloc,Xt>0&&Xt--);break;case 2:if(Le=this.productions_[Fe[1]][1],An.$=Ne[Ne.length-Le],An._$={first_line:be[be.length-(Le||1)].first_line,last_line:be[be.length-1].last_line,first_column:be[be.length-(Le||1)].first_column,last_column:be[be.length-1].last_column},ue&&(An._$.range=[be[be.length-(Le||1)].range[0],be[be.length-1].range[1]]),(Ee=this.performAction.apply(An,[he,re,Ze,dt.yy,Fe[1],Ne,be].concat(ee)))!==void 0)return Ee;Le&&(xe=xe.slice(0,-1*Le*2),Ne=Ne.slice(0,-1*Le),be=be.slice(0,-1*Le)),xe.push(this.productions_[Fe[1]][0]),Ne.push(An.$),be.push(An._$),ge=kn[xe[xe.length-2]][xe[xe.length-1]],xe.push(ge);break;case 3:return!0}}return!0}},me={EOF:1,parseError:function(ke,pe){if(!this.yy.parser)throw new Error(ke);this.yy.parser.parseError(ke,pe)},setInput:function(ke,pe){return this.yy=pe||this.yy||{},this._input=ke,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 ke=this._input[0];return this.yytext+=ke,this.yyleng++,this.offset++,this.match+=ke,this.matched+=ke,ke.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),ke},unput:function(ke){var pe=ke.length,xe=ke.split(/(?:\r\n?|\n)/g);this._input=ke+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),xe.length-1&&(this.yylineno-=xe.length-1);var Ne=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===Ae.length?this.yylloc.first_column:0)+Ae[Ae.length-xe.length].length-xe[0].length:this.yylloc.first_column-pe},this.options.ranges&&(this.yylloc.range=[Ne[0],Ne[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(ke){this.unput(this.match.slice(ke))},pastInput:function(){var ke=this.matched.substr(0,this.matched.length-this.match.length);return(ke.length>20?"...":"")+ke.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var ke=this.match;return ke.length<20&&(ke+=this._input.substr(0,20-ke.length)),(ke.substr(0,20)+(ke.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var ke=this.pastInput(),pe=new Array(ke.length+1).join("-");return ke+this.upcomingInput()+`
`+pe+"^"},test_match:function(ke,pe){var xe,Ae,Ne;if(this.options.backtrack_lexer&&(Ne={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&&(Ne.yylloc.range=this.yylloc.range.slice(0))),(Ae=ke[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+ke[0].length},this.yytext+=ke[0],this.match+=ke[0],this.matches=ke,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(ke[0].length),this.matched+=ke[0],xe=this.performAction.call(this,this.yy,this,pe,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),xe)return xe;if(this._backtrack){for(var be in Ne)this[be]=Ne[be];return!1}return!1},next:function(){if(this.done)return this.EOF;var ke,pe,xe,Ae;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var Ne=this._currentRules(),be=0;be<Ne.length;be++)if((xe=this._input.match(this.rules[Ne[be]]))&&(!pe||xe[0].length>pe[0].length)){if(pe=xe,Ae=be,this.options.backtrack_lexer){if((ke=this.test_match(xe,Ne[be]))!==!1)return ke;if(this._backtrack){pe=!1;continue}return!1}if(!this.options.flex)break}return pe?(ke=this.test_match(pe,Ne[Ae]))!==!1&&ke: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(ke){this.conditionStack.push(ke)},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(ke){return(ke=this.conditionStack.length-1-Math.abs(ke||0))>=0?this.conditionStack[ke]:"INITIAL"},pushState:function(ke){this.begin(ke)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(ke,pe,xe,Ae){switch(xe){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 Ye(){this.yy={}}return Ut.lexer=me,Ye.prototype=Ut,Ut.Parser=Ye,new Ye}();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,Qt){for(vt=vt||{},Qt=at.length;Qt--;vt[at[Qt]]=ut);return vt},_=[1,2],g=[1,5],E=[6,9,11,17,18,20,22,23,24,26],A=[1,15],T=[1,16],F=[1,17],O=[1,18],P=[1,19],V=[1,20],J=[1,24],tt=[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,Qt,Vt,kt,It){var Tt=kt.length-1;switch(Vt){case 1:return kt[Tt-1];case 3:case 7:case 8:this.$=[];break;case 4:kt[Tt-1].push(kt[Tt]),this.$=kt[Tt-1];break;case 5:case 6:this.$=kt[Tt];break;case 11:Qt.setDiagramTitle(kt[Tt].substr(6)),this.$=kt[Tt].substr(6);break;case 12:this.$=kt[Tt].trim(),Qt.setAccTitle(this.$);break;case 13:case 14:this.$=kt[Tt].trim(),Qt.setAccDescription(this.$);break;case 15:Qt.addSection(kt[Tt].substr(8)),this.$=kt[Tt].substr(8);break;case 16:Qt.addTask(kt[Tt-1],kt[Tt]),this.$="task";break;case 18:Qt.parseDirective("%%{","open_directive");break;case 19:Qt.parseDirective(kt[Tt],"type_directive");break;case 20:kt[Tt]=kt[Tt].trim().replace(/'/g,'"'),Qt.parseDirective(kt[Tt],"arg_directive");break;case 21:Qt.parseDirective("}%%","close_directive","journey")}},table:[{3:1,4:_,7:3,12:4,26:g},{1:[3]},u(E,[2,3],{5:6}),{3:7,4:_,7:3,12:4,26:g},{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:T,20:F,22:O,23:P,24:V,26:g},{1:[2,2]},{14:22,15:[1,23],29:J},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:T,20:F,22:O,23:P,24:V,26:g},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(tt,[2,9]),{14:32,29:J},{29:[2,20]},{11:[1,33]},u(tt,[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],Qt=[],Vt=[null],kt=[],It=this.table,Tt="",mt=0,X=0,ot=0,j=2,yt=1,Y=kt.slice.call(arguments,1),bt=Object.create(this.lexer),At={yy:{}};for(var Ut in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Ut)&&(At.yy[Ut]=this.yy[Ut]);bt.setInput(at,At.yy),At.yy.lexer=bt,At.yy.parser=this,bt.yylloc===void 0&&(bt.yylloc={});var me=bt.yylloc;kt.push(me);var Ye=bt.options&&bt.options.ranges;function ke(){var St;return typeof(St=Qt.pop()||bt.lex()||yt)!="number"&&(St instanceof Array&&(St=(Qt=St).pop()),St=ut.symbols_[St]||St),St}typeof At.yy.parseError=="function"?this.parseError=At.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var pe,xe,Ae,Ne,be,kn,he,Ze,re,Xt={};;){if(Ae=vt[vt.length-1],this.defaultActions[Ae]?Ne=this.defaultActions[Ae]:(pe==null&&(pe=ke()),Ne=It[Ae]&&It[Ae][pe]),Ne===void 0||!Ne.length||!Ne[0]){var se="";for(kn in re=[],It[Ae])this.terminals_[kn]&&kn>j&&re.push("'"+this.terminals_[kn]+"'");se=bt.showPosition?"Parse error on line "+(mt+1)+`:
`+bt.showPosition()+`
Expecting `+re.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:me,expected:re})}if(Ne[0]instanceof Array&&Ne.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Ae+", token: "+pe);switch(Ne[0]){case 1:vt.push(pe),Vt.push(bt.yytext),kt.push(bt.yylloc),vt.push(Ne[1]),pe=null,xe?(pe=xe,xe=null):(X=bt.yyleng,Tt=bt.yytext,mt=bt.yylineno,me=bt.yylloc,ot>0&&ot--);break;case 2:if(he=this.productions_[Ne[1]][1],Xt.$=Vt[Vt.length-he],Xt._$={first_line:kt[kt.length-(he||1)].first_line,last_line:kt[kt.length-1].last_line,first_column:kt[kt.length-(he||1)].first_column,last_column:kt[kt.length-1].last_column},Ye&&(Xt._$.range=[kt[kt.length-(he||1)].range[0],kt[kt.length-1].range[1]]),(be=this.performAction.apply(Xt,[Tt,X,mt,At.yy,Ne[1],Vt,kt].concat(Y)))!==void 0)return be;he&&(vt=vt.slice(0,-1*he*2),Vt=Vt.slice(0,-1*he),kt=kt.slice(0,-1*he)),vt.push(this.productions_[Ne[1]][0]),Vt.push(Xt.$),kt.push(Xt._$),Ze=It[vt[vt.length-2]][vt[vt.length-1]],vt.push(Ze);break;case 3:return!0}}return!0}},et={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 Qt=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 Vt=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===Qt.length?this.yylloc.first_column:0)+Qt[Qt.length-vt.length].length-vt[0].length:this.yylloc.first_column-ut},this.options.ranges&&(this.yylloc.range=[Vt[0],Vt[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,Qt,Vt;if(this.options.backtrack_lexer&&(Vt={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&&(Vt.yylloc.range=this.yylloc.range.slice(0))),(Qt=at[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=Qt.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:Qt?Qt[Qt.length-1].length-Qt[Qt.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 kt in Vt)this[kt]=Vt[kt];return!1}return!1},next:function(){if(this.done)return this.EOF;var at,ut,vt,Qt;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var Vt=this._currentRules(),kt=0;kt<Vt.length;kt++)if((vt=this._input.match(this.rules[Vt[kt]]))&&(!ut||vt[0].length>ut[0].length)){if(ut=vt,Qt=kt,this.options.backtrack_lexer){if((at=this.test_match(vt,Vt[kt]))!==!1)return at;if(this._backtrack){ut=!1;continue}return!1}if(!this.options.flex)break}return ut?(at=this.test_match(ut,Vt[Qt]))!==!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,Qt){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 wt(){this.yy={}}return ht.lexer=et,wt.prototype=ht,ht.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(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,g=[".","/"];z.N=function(E){var A,T=(A=E||"",A.replace(b,function(P,V){return String.fromCharCode(V)})).replace(u,"").trim();if(!T)return"about:blank";if(function(P){return g.indexOf(P[0])>-1}(T))return T;var F=T.match(_);if(!F)return T;var O=F[0];return p.test(O)?"about:blank":T}},3841:M=>{M.exports=function(z,p){return z.intersect(p)}},6187:(M,z,p)=>{p.d(z,{Z:()=>Zs});var b=p(1941),u=p.n(b),_={debug:1,info:2,warn:3,error:4,fatal:5},g={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])),g.trace=function(){},g.debug=function(){},g.info=function(){},g.warn=function(){},g.error=function(){},g.fatal=function(){},i<=_.fatal&&(g.fatal=console.error?console.error.bind(console,A("FATAL"),"color: orange"):console.log.bind(console,"\x1B[35m",A("FATAL"))),i<=_.error&&(g.error=console.error?console.error.bind(console,A("ERROR"),"color: orange"):console.log.bind(console,"\x1B[31m",A("ERROR"))),i<=_.warn&&(g.warn=console.warn?console.warn.bind(console,A("WARN"),"color: orange"):console.log.bind(console,"\x1B[33m",A("WARN"))),i<=_.info&&(g.info=console.info?console.info.bind(console,A("INFO"),"color: lightblue"):console.log.bind(console,"\x1B[34m",A("INFO"))),i<=_.debug&&(g.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," : ")},T=p(7543),F="comm",O="rule",P="decl",V=Math.abs,J=String.fromCharCode;function tt(i){return i.trim()}function ht(i,n,l){return i.replace(n,l)}function et(i,n){return i.indexOf(n)}function wt(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 Qt(i,n){return n.push(i),i}function Vt(i,n){for(var l="",d=vt(i),m=0;m<d;m++)l+=n(i[m],m,i,n)||"";return l}function kt(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+"{"+Vt(i.children,d)+"}";case O:i.value=i.props.join(",")}return ut(l=Vt(i.children,d))?i.return=i.value+"{"+l+"}":""}var It=1,Tt=1,mt=0,X=0,ot=0,j="";function yt(i,n,l,d,m,w,k){return{value:i,root:n,parent:l,type:d,props:m,children:w,line:It,column:Tt,length:k,return:""}}function Y(){return ot=X>0?wt(j,--X):0,Tt--,ot===10&&(Tt=1,It--),ot}function bt(){return ot=X<mt?wt(j,X++):0,Tt++,ot===10&&(Tt=1,It++),ot}function At(){return wt(j,X)}function Ut(){return X}function me(i,n){return at(j,i,n)}function Ye(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 ke(i){return tt(me(X-1,Ae(i===91?i+2:i===40?i+1:i)))}function pe(i){for(;(ot=At())&&ot<33;)bt();return Ye(i)>2||Ye(ot)>3?"":" "}function xe(i,n){for(;--n&&bt()&&!(ot<48||ot>102||ot>57&&ot<65||ot>70&&ot<97););return me(i,Ut()+(n<6&&At()==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 Ne(i,n){for(;bt()&&i+ot!==57&&(i+ot!==84||At()!==47););return"/*"+me(n,X-1)+"*"+J(i===47?i:bt())}function be(i){for(;!Ye(At());)bt();return me(i,X)}function kn(i){return function(n){return j="",n}(he("",null,null,null,[""],i=function(n){return It=Tt=1,mt=ut(j=n),X=0,[]}(i),0,[0],i))}function he(i,n,l,d,m,w,k,S,N){for(var B=0,q=0,G=k,K=0,Q=0,xt=0,Ct=1,Bt=1,Ft=1,Lt=0,Et="",_t=m,qt=w,ve=d,de=Et;Bt;)switch(xt=Lt,Lt=bt()){case 40:if(xt!=108&&de.charCodeAt(G-1)==58){et(de+=ht(ke(Lt),"&","&\f"),"&\f")!=-1&&(Ft=-1);break}case 34:case 39:case 91:de+=ke(Lt);break;case 9:case 10:case 13:case 32:de+=pe(xt);break;case 92:de+=xe(Ut()-1,7);continue;case 47:switch(At()){case 42:case 47:Qt(re(Ne(bt(),Ut()),n,l),N);break;default:de+="/"}break;case 123*Ct:S[B++]=ut(de)*Ft;case 125*Ct:case 59:case 0:switch(Lt){case 0:case 125:Bt=0;case 59+q:Q>0&&ut(de)-G&&Qt(Q>32?Xt(de+";",d,l,G-1):Xt(ht(de," ","")+";",d,l,G-2),N);break;case 59:de+=";";default:if(Qt(ve=Ze(de,n,l,B,q,m,S,Et,_t=[],qt=[],G),w),Lt===123)if(q===0)he(de,n,ve,ve,_t,w,G,S,qt);else switch(K){case 100:case 109:case 115:he(i,ve,ve,d&&Qt(Ze(i,ve,ve,0,0,m,S,Et,m,_t=[],G),qt),m,qt,G,S,d?_t:qt);break;default:he(de,ve,ve,ve,[""],qt,0,S,qt)}}B=q=Q=0,Ct=Ft=1,Et=de="",G=k;break;case 58:G=1+ut(de),Q=xt;default:if(Ct<1){if(Lt==123)--Ct;else if(Lt==125&&Ct++==0&&Y()==125)continue}switch(de+=J(Lt),Lt*Ct){case 38:Ft=q>0?1:(de+="\f",-1);break;case 44:S[B++]=(ut(de)-1)*Ft,Ft=1;break;case 64:At()===45&&(de+=ke(bt())),K=At(),q=G=ut(Et=de+=be(Ut())),Lt++;break;case 45:xt===45&&ut(de)==2&&(Ct=0)}}return w}function Ze(i,n,l,d,m,w,k,S,N,B,q){for(var G=m-1,K=m===0?w:[""],Q=vt(K),xt=0,Ct=0,Bt=0;xt<d;++xt)for(var Ft=0,Lt=at(i,G+1,G=V(Ct=k[xt])),Et=i;Ft<Q;++Ft)(Et=tt(Ct>0?K[Ft]+" "+Lt:ht(Lt,/&\f/g,K[Ft])))&&(N[Bt++]=Et);return yt(i,n,l,m===0?O:S,N,B,q)}function re(i,n,l){return yt(i,n,l,F,J(ot),at(i,2,-2),0)}function Xt(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 St(i){return St=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},St(i)}const ee=function i(n,l,d){var m=Object.assign({depth:2,clobber:!1},d),w=m.depth,k=m.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||w<=0?n!=null&&St(n)==="object"&&St(l)==="object"?Object.assign(n,l):l:(l!==void 0&&St(n)==="object"&&St(l)==="object"&&Object.keys(l).forEach(function(S){St(l[S])!=="object"||n[S]!==void 0&&St(n[S])!=="object"?(k||St(n[S])!=="object"&&St(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:w-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 m=(l/=100)<.5?l*(1+n):l+n-l*n,w=2*l-m;switch(d){case"r":return 255*st.hue2rgb(w,m,i+1/3);case"g":return 255*st.hue2rgb(w,m,i);case"b":return 255*st.hue2rgb(w,m,i-1/3)}},rgb2hsl:({r:i,g:n,b:l},d)=>{i/=255,n/=255,l/=255;const m=Math.max(i,n,l),w=Math.min(i,n,l),k=(m+w)/2;if(d==="l")return 100*k;if(m===w)return 0;const S=m-w;if(d==="s")return 100*(k>.5?S/(2-m-w):S/(m+w));switch(m){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 Dt=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"),ue={re:/^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,parse:i=>{if(i.charCodeAt(0)!==35)return;const n=i.match(ue.re);if(!n)return;const l=n[1],d=parseInt(l,16),m=l.length,w=m%4==0,k=m>4,S=k?1:17,N=k?8:4,B=w?0:-1,q=k?255:15;return Dt.set({r:(d>>N*(B+3)&q)*S,g:(d>>N*(B+2)&q)*S,b:(d>>N*(B+1)&q)*S,a:w?(d&q)*S/255:1},i)},stringify:i=>{const{r:n,g:l,b:d,a:m}=i;return m<1?`#${ft[Math.round(n)]}${ft[Math.round(l)]}${ft[Math.round(d)]}${ft[Math.round(255*m)]}`:`#${ft[Math.round(n)]}${ft[Math.round(l)]}${ft[Math.round(d)]}`}},Oe=ue,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,m,w,k,S]=l;return Dt.set({h:en._hue2deg(d),s:dt.channel.clamp.s(parseFloat(m)),l:dt.channel.clamp.l(parseFloat(w)),a:k?dt.channel.clamp.a(S?parseFloat(k)/100:parseFloat(k)):1},i)},stringify:i=>{const{h:n,s:l,l:d,a:m}=i;return m<1?`hsla(${dt.lang.round(n)}, ${dt.lang.round(l)}%, ${dt.lang.round(d)}%, ${m})`:`hsl(${dt.lang.round(n)}, ${dt.lang.round(l)}%, ${dt.lang.round(d)}%)`}},$e=en,cn={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=cn.colors[i];if(n)return Oe.parse(n)},stringify:i=>{const n=Oe.stringify(i);for(const l in cn.colors)if(cn.colors[l]===n)return l}},Fe=cn,Ee={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(Ee.re);if(!l)return;const[,d,m,w,k,S,N,B,q]=l;return Dt.set({r:dt.channel.clamp.r(m?2.55*parseFloat(d):parseFloat(d)),g:dt.channel.clamp.g(k?2.55*parseFloat(w):parseFloat(w)),b:dt.channel.clamp.b(N?2.55*parseFloat(S):parseFloat(S)),a:B?dt.channel.clamp.a(q?parseFloat(B)/100:parseFloat(B)):1},i)},stringify:i=>{const{r:n,g:l,b:d,a:m}=i;return m<1?`rgba(${dt.lang.round(n)}, ${dt.lang.round(l)}, ${dt.lang.round(d)}, ${dt.lang.round(m)})`:`rgb(${dt.lang.round(n)}, ${dt.lang.round(l)}, ${dt.lang.round(d)})`}},Be=Ee,Le={format:{keyword:Fe,hex:Oe,rgb:Be,rgba:Be,hsl:$e,hsla:$e},parse:i=>{if(typeof i!="string")return i;const n=Oe.parse(i)||Be.parse(i)||$e.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?$e.stringify(i):i.a<1||!Number.isInteger(i.r)||!Number.isInteger(i.g)||!Number.isInteger(i.b)?Be.stringify(i):Oe.stringify(i)},ge=(i,n)=>{const l=Le.parse(i);for(const d in n)l[d]=dt.channel.clamp[d](n[d]);return Le.stringify(l)},ie=(i,n)=>{const l=Le.parse(i),d={};for(const m in n)n[m]&&(d[m]=l[m]+n[m]);return ge(i,d)},An=(i,n,l=0,d=1)=>{if(typeof i!="number")return ge(i,{a:n});const m=Dt.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 Le.stringify(m)},Ie=(i,n=100)=>{const l=Le.parse(i);return l.r=255-l.r,l.g=255-l.g,l.b=255-l.b,((d,m,w=50)=>{const{r:k,g:S,b:N,a:B}=Le.parse(d),{r:q,g:G,b:K,a:Q}=Le.parse(m),xt=w/100,Ct=2*xt-1,Bt=B-Q,Ft=((Ct*Bt==-1?Ct:(Ct+Bt)/(1+Ct*Bt))+1)/2,Lt=1-Ft;return An(k*Ft+q*Lt,S*Ft+G*Lt,N*Ft+K*Lt,B*xt+Q*(1-xt))})(l,i,n)},un=(i,n,l)=>{const d=Le.parse(i),m=d[n],w=dt.channel.clamp[n](m+l);return m!==w&&(d[n]=w),Le.stringify(d)},ze=(i,n)=>un(i,"l",-n),pn=(i,n)=>un(i,"l",n);var tr=function(i,n){return ie(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 De=function(){function i(){(function(d,m){if(!(d instanceof m))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||ie(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||ie(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||tr(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||tr(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||tr(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||tr(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?ze(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||ze(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||pn(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||ie(this.primaryColor,{h:64}),this.fillType3=this.fillType3||ie(this.secondaryColor,{h:64}),this.fillType4=this.fillType4||ie(this.primaryColor,{h:-64}),this.fillType5=this.fillType5||ie(this.secondaryColor,{h:-64}),this.fillType6=this.fillType6||ie(this.primaryColor,{h:128}),this.fillType7=this.fillType7||ie(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||ie(this.primaryColor,{l:-10}),this.pie5=this.pie5||ie(this.secondaryColor,{l:-10}),this.pie6=this.pie6||ie(this.tertiaryColor,{l:-10}),this.pie7=this.pie7||ie(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||ie(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||ie(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||ie(this.primaryColor,{h:60,l:-20}),this.pie11=this.pie11||ie(this.primaryColor,{h:-60,l:-20}),this.pie12=this.pie12||ie(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?ze(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||ie(this.primaryColor,{h:-30}),this.git4=this.git4||ie(this.primaryColor,{h:-60}),this.git5=this.git5||ie(this.primaryColor,{h:-90}),this.git6=this.git6||ie(this.primaryColor,{h:60}),this.git7=this.git7||ie(this.primaryColor,{h:120}),this.darkMode?(this.git0=pn(this.git0,25),this.git1=pn(this.git1,25),this.git2=pn(this.git2,25),this.git3=pn(this.git3,25),this.git4=pn(this.git4,25),this.git5=pn(this.git5,25),this.git6=pn(this.git6,25),this.git7=pn(this.git7,25)):(this.git0=ze(this.git0,25),this.git1=ze(this.git1,25),this.git2=ze(this.git2,25),this.git3=ze(this.git3,25),this.git4=ze(this.git4,25),this.git5=ze(this.git5,25),this.git6=ze(this.git6,25),this.git7=ze(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 m=this;if(Dn(d)==="object"){var w=Object.keys(d);w.forEach(function(k){m[k]=d[k]}),this.updateColors(),w.forEach(function(k){m[k]=d[k]})}else this.updateColors()}}],l&&Tn(n.prototype,l),Object.defineProperty(n,"prototype",{writable:!1}),i}();function Qe(i){return Qe=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},Qe(i)}function Ge(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 Se=function(){function i(){(function(d,m){if(!(d instanceof m))throw new TypeError("Cannot call a class as a function")})(this,i),this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=pn(this.primaryColor,16),this.tertiaryColor=ie(this.primaryColor,{h:-160}),this.primaryBorderColor=Ie(this.background),this.secondaryBorderColor=tr(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=tr(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=pn(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=ze("#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=pn(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=pn(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=pn(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=ie(this.primaryColor,{h:64}),this.fillType3=ie(this.secondaryColor,{h:64}),this.fillType4=ie(this.primaryColor,{h:-64}),this.fillType5=ie(this.secondaryColor,{h:-64}),this.fillType6=ie(this.primaryColor,{h:128}),this.fillType7=ie(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?ze(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=pn(this.secondaryColor,20),this.git1=pn(this.pie2||this.secondaryColor,20),this.git2=pn(this.pie3||this.tertiaryColor,20),this.git3=pn(this.pie4||ie(this.primaryColor,{h:-30}),20),this.git4=pn(this.pie5||ie(this.primaryColor,{h:-60}),20),this.git5=pn(this.pie6||ie(this.primaryColor,{h:-90}),10),this.git6=pn(this.pie7||ie(this.primaryColor,{h:60}),10),this.git7=pn(this.pie8||ie(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 m=this;if(Qe(d)==="object"){var w=Object.keys(d);w.forEach(function(k){m[k]=d[k]}),this.updateColors(),w.forEach(function(k){m[k]=d[k]})}else this.updateColors()}}],l&&Ge(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 Mt(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,m){if(!(d instanceof m))throw new TypeError("Cannot call a class as a function")})(this,i),this.background="#f4f4f4",this.primaryColor="#ECECFF",this.secondaryColor=ie(this.primaryColor,{h:120}),this.secondaryColor="#ffffde",this.tertiaryColor=ie(this.primaryColor,{h:-160}),this.primaryBorderColor=tr(this.primaryColor,this.darkMode),this.secondaryBorderColor=tr(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=tr(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=pn(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=ie(this.primaryColor,{h:64}),this.fillType3=ie(this.secondaryColor,{h:64}),this.fillType4=ie(this.primaryColor,{h:-64}),this.fillType5=ie(this.secondaryColor,{h:-64}),this.fillType6=ie(this.primaryColor,{h:128}),this.fillType7=ie(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||ie(this.tertiaryColor,{l:-40}),this.pie4=this.pie4||ie(this.primaryColor,{l:-10}),this.pie5=this.pie5||ie(this.secondaryColor,{l:-30}),this.pie6=this.pie6||ie(this.tertiaryColor,{l:-20}),this.pie7=this.pie7||ie(this.primaryColor,{h:60,l:-20}),this.pie8=this.pie8||ie(this.primaryColor,{h:-60,l:-40}),this.pie9=this.pie9||ie(this.primaryColor,{h:120,l:-40}),this.pie10=this.pie10||ie(this.primaryColor,{h:60,l:-40}),this.pie11=this.pie11||ie(this.primaryColor,{h:-90,l:-40}),this.pie12=this.pie12||ie(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||ie(this.primaryColor,{h:-30}),this.git4=this.git4||ie(this.primaryColor,{h:-60}),this.git5=this.git5||ie(this.primaryColor,{h:-90}),this.git6=this.git6||ie(this.primaryColor,{h:60}),this.git7=this.git7||ie(this.primaryColor,{h:120}),this.darkMode?(this.git0=pn(this.git0,25),this.git1=pn(this.git1,25),this.git2=pn(this.git2,25),this.git3=pn(this.git3,25),this.git4=pn(this.git4,25),this.git5=pn(this.git5,25),this.git6=pn(this.git6,25),this.git7=pn(this.git7,25)):(this.git0=ze(this.git0,25),this.git1=ze(this.git1,25),this.git2=ze(this.git2,25),this.git3=ze(this.git3,25),this.git4=ze(this.git4,25),this.git5=ze(this.git5,25),this.git6=ze(this.git6,25),this.git7=ze(this.git7,25)),this.gitInv0=this.gitInv0||ze(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 m=this;if(vn(d)==="object"){var w=Object.keys(d);w.forEach(function(k){m[k]=d[k]}),this.updateColors(),w.forEach(function(k){m[k]=d[k]})}else this.updateColors()}}],l&&Mt(n.prototype,l),Object.defineProperty(n,"prototype",{writable:!1}),i}();function zt(i){return zt=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},zt(i)}function Wn(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 jn=function(){function i(){(function(d,m){if(!(d instanceof m))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=pn("#cde498",10),this.primaryBorderColor=tr(this.primaryColor,this.darkMode),this.secondaryBorderColor=tr(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=tr(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=ze(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=ie(this.primaryColor,{h:64}),this.fillType3=ie(this.secondaryColor,{h:64}),this.fillType4=ie(this.primaryColor,{h:-64}),this.fillType5=ie(this.secondaryColor,{h:-64}),this.fillType6=ie(this.primaryColor,{h:128}),this.fillType7=ie(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||ie(this.primaryColor,{l:-30}),this.pie5=this.pie5||ie(this.secondaryColor,{l:-30}),this.pie6=this.pie6||ie(this.tertiaryColor,{h:40,l:-40}),this.pie7=this.pie7||ie(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||ie(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||ie(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||ie(this.primaryColor,{h:60,l:-50}),this.pie11=this.pie11||ie(this.primaryColor,{h:-60,l:-50}),this.pie12=this.pie12||ie(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||ie(this.primaryColor,{h:-30}),this.git4=this.git4||ie(this.primaryColor,{h:-60}),this.git5=this.git5||ie(this.primaryColor,{h:-90}),this.git6=this.git6||ie(this.primaryColor,{h:60}),this.git7=this.git7||ie(this.primaryColor,{h:120}),this.darkMode?(this.git0=pn(this.git0,25),this.git1=pn(this.git1,25),this.git2=pn(this.git2,25),this.git3=pn(this.git3,25),this.git4=pn(this.git4,25),this.git5=pn(this.git5,25),this.git6=pn(this.git6,25),this.git7=pn(this.git7,25)):(this.git0=ze(this.git0,25),this.git1=ze(this.git1,25),this.git2=ze(this.git2,25),this.git3=ze(this.git3,25),this.git4=ze(this.git4,25),this.git5=ze(this.git5,25),this.git6=ze(this.git6,25),this.git7=ze(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 m=this;if(zt(d)==="object"){var w=Object.keys(d);w.forEach(function(k){m[k]=d[k]}),this.updateColors(),w.forEach(function(k){m[k]=d[k]})}else this.updateColors()}}],l&&Wn(n.prototype,l),Object.defineProperty(n,"prototype",{writable:!1}),i}();function Hn(i){return Hn=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},Hn(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 Gn=function(){function i(){(function(d,m){if(!(d instanceof m))throw new TypeError("Cannot call a class as a function")})(this,i),this.primaryColor="#eee",this.contrast="#707070",this.secondaryColor=pn(this.contrast,55),this.background="#ffffff",this.tertiaryColor=ie(this.primaryColor,{h:-160}),this.primaryBorderColor=tr(this.primaryColor,this.darkMode),this.secondaryBorderColor=tr(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=tr(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=pn(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=pn(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=pn(this.contrast,30),this.sectionBkgColor2=pn(this.contrast,30),this.taskBorderColor=ze(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=pn(this.border1,30),this.doneTaskBkgColor=this.done,this.doneTaskBorderColor=this.lineColor,this.critBkgColor=this.critical,this.critBorderColor=ze(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=ie(this.primaryColor,{h:64}),this.fillType3=ie(this.secondaryColor,{h:64}),this.fillType4=ie(this.primaryColor,{h:-64}),this.fillType5=ie(this.secondaryColor,{h:-64}),this.fillType6=ie(this.primaryColor,{h:128}),this.fillType7=ie(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=ze(this.pie1,25)||this.primaryColor,this.git1=this.pie2||this.secondaryColor,this.git2=this.pie3||this.tertiaryColor,this.git3=this.pie4||ie(this.primaryColor,{h:-30}),this.git4=this.pie5||ie(this.primaryColor,{h:-60}),this.git5=this.pie6||ie(this.primaryColor,{h:-90}),this.git6=this.pie7||ie(this.primaryColor,{h:60}),this.git7=this.pie8||ie(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 m=this;if(Hn(d)==="object"){var w=Object.keys(d);w.forEach(function(k){m[k]=d[k]}),this.updateColors(),w.forEach(function(k){m[k]=d[k]})}else this.updateColors()}}],l&&Mn(n.prototype,l),Object.defineProperty(n,"prototype",{writable:!1}),i}();const Rn={base:{getThemeVariables:function(i){var n=new De;return n.calculate(i),n}},dark:{getThemeVariables:function(i){var n=new Se;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 jn;return n.calculate(i),n}},neutral:{getThemeVariables:function(i){var n=new Gn;return n.calculate(i),n}}};function En(i){return function(n){if(Array.isArray(n))return Pn(n)}(i)||function(n){if(typeof Symbol!="undefined"&&n[Symbol.iterator]!=null||n["@@iterator"]!=null)return Array.from(n)}(i)||function(n,l){if(n){if(typeof n=="string")return Pn(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)?Pn(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 Pn(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 zn(i){return zn=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},zn(i)}var Yn={theme:"default",themeVariables:Rn.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"}};Yn.class.arrowMarkerAbsolute=Yn.arrowMarkerAbsolute,Yn.gitGraph.arrowMarkerAbsolute=Yn.arrowMarkerAbsolute;var ya=function i(n){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return Object.keys(n).reduce(function(d,m){return Array.isArray(n[m])?d:zn(n[m])==="object"&&n[m]!==null?[].concat(En(d),[l+m],En(i(n[m],""))):[].concat(En(d),[l+m])},[])}(Yn,"");const Br=Yn;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,li=Object.freeze(Br),Bn=ee({},li),_r=[],Ar=ee({},li),yr=function(i,n){for(var l=ee({},i),d={},m=0;m<n.length;m++){var w=n[m];Mr(w),d=ee(d,w)}if(l=ee(l,d),d.theme&&Rn[d.theme]){var k=ee({},Sn),S=ee(k.themeVariables||{},d.themeVariables);l.themeVariables=Rn[l.theme].getThemeVariables(S)}return Ar=l,l},qr=function(){return ee({},Bn)},Nt=function(){return ee({},Ar)},Mr=function i(n){Object.keys(Bn.secure).forEach(function(l){n[Bn.secure[l]]!==void 0&&(g.debug("Denied attempt to modify a secure key ".concat(Bn.secure[l]),n[Bn.secure[l]]),delete n[Bn.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])})},Lr=function(i){i.fontFamily&&(i.themeVariables&&i.themeVariables.fontFamily||(i.themeVariables={fontFamily:i.fontFamily})),_r.push(i),yr(Bn,_r)},Xn=function(){yr(Bn,_r=[])},Qr=p(7856),Yr=p.n(Qr),Pr=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))})},Kr=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=Pr(n);return(d=(d=(d=(d=d.replace(/script>/gi,"#")).replace(/javascript:/gi,"#")).replace(/javascript&colon/gi,"#")).replace(/onerror=/gi,"onerror:")).replace(/<iframe/gi,"")},ka=function(i,n){var l=i,d=!0;if(!n.flowchart||n.flowchart.htmlLabels!==!1&&n.flowchart.htmlLabels!=="false"||(d=!1),d){var m=n.securityLevel;m==="antiscript"||m==="strict"?l=Kr(l):m!=="loose"&&(l=(l=(l=Li(l)).replace(/</g,"&lt;").replace(/>/g,"&gt;")).replace(/=/g,"&equals;"),l=oa(l))}return l},hr=function(i,n){return i&&(n.dompurifyConfig?Yr().sanitize(ka(i,n),n.dompurifyConfig):Yr().sanitize(ka(i,n)))},aa=/<br\s*\/?>/gi,oa=function(i){return i.replace(/#br#/g,"<br/>")},Li=function(i){return i.replace(aa,"#br#")},an=function(i){return i!=="false"&&i!==!1},Qn=function i(n){var l=n;return n.indexOf("~")!=-1?i(l=(l=l.replace("~","<")).replace("~",">")):l};const on={getRows:function(i){if(!i)return 1;var n=Li(i);return(n=n.replace(/\\n/g,"#br#")).split("#br#")},sanitizeText:hr,sanitizeTextOrArray:function(i,n){return typeof i=="string"?hr(i,n):i.flat().map(function(l){return hr(l,n)})},hasBreaks:function(i){return aa.test(i)},splitBreaks:function(i){return i.split(aa)},lineBreakRegex:aa,removeScript:Kr,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:an,removeEscapes:Pr};var rn="",rr="",$t="",Ci=function(i){return hr(i,Nt())},Kt=function(){rn="",$t="",rr=""},xr=function(i){rn=Ci(i).replace(/^\s+/g,"")},Ir=function(){return rn||rr},Ur=function(i){$t=Ci(i).replace(/\n\s+/g,`
`)},pi=function(){return $t},wa=function(i){rr=Ci(i)},dr=function(){return rr};function _n(i,n){return function(l){if(Array.isArray(l))return l}(i)||function(l,d){var m=l==null?null:typeof Symbol!="undefined"&&l[Symbol.iterator]||l["@@iterator"];if(m!=null){var w,k,S=[],N=!0,B=!1;try{for(m=m.call(l);!(N=(w=m.next()).done)&&(S.push(w.value),!d||S.length!==d);N=!0);}catch(q){B=!0,k=q}finally{try{N||m.return==null||m.return()}finally{if(B)throw k}}return S}}(i,n)||function(l,d){if(l){if(typeof l=="string")return sa(l,d);var m=Object.prototype.toString.call(l).slice(8,-1);return m==="Object"&&l.constructor&&(m=l.constructor.name),m==="Map"||m==="Set"?Array.from(l):m==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(m)?sa(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 sa(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 In(i){return In=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},In(i)}var wi,ui=[],Ii=[""],fr="global",Jr="",Hr=[{alias:"global",label:{text:"global"},type:{text:"global"},tags:null,link:null,parentBoundary:""}],Vr=[],ii="",Ai=!1,Gr=4,Ta=2,Ia=function(i){return i==null?ui:ui.filter(function(n){return n.parentBoundary===i})},pr=function(){return Ai};const ti={addPersonOrSystem:function(i,n,l,d,m,w,k){if(n!==null&&l!==null){var S={},N=ui.find(function(qt){return qt.alias===n});if(N&&n===N.alias?S=N:(S.alias=n,ui.push(S)),S.label=l==null?{text:""}:{text:l},d==null)S.descr={text:""};else if(In(d)==="object"){var B=_n(Object.entries(d)[0],2),q=B[0],G=B[1];S[q]={text:G}}else S.descr={text:d};if(In(m)==="object"){var K=_n(Object.entries(m)[0],2),Q=K[0],xt=K[1];S[Q]=xt}else S.sprite=m;if(In(w)==="object"){var Ct=_n(Object.entries(w)[0],2),Bt=Ct[0],Ft=Ct[1];S[Bt]=Ft}else S.tags=w;if(In(k)==="object"){var Lt=_n(Object.entries(k)[0],2),Et=Lt[0],_t=Lt[1];S[Et]=_t}else S.link=k;S.typeC4Shape={text:i},S.parentBoundary=fr,S.wrap=pr()}},addPersonOrSystemBoundary:function(i,n,l,d,m){if(i!==null&&n!==null){var w={},k=Hr.find(function(Bt){return Bt.alias===i});if(k&&i===k.alias?w=k:(w.alias=i,Hr.push(w)),w.label=n==null?{text:""}:{text:n},l==null)w.type={text:"system"};else if(In(l)==="object"){var S=_n(Object.entries(l)[0],2),N=S[0],B=S[1];w[N]={text:B}}else w.type={text:l};if(In(d)==="object"){var q=_n(Object.entries(d)[0],2),G=q[0],K=q[1];w[G]=K}else w.tags=d;if(In(m)==="object"){var Q=_n(Object.entries(m)[0],2),xt=Q[0],Ct=Q[1];w[xt]=Ct}else w.link=m;w.parentBoundary=fr,w.wrap=pr(),Jr=fr,fr=i,Ii.push(Jr)}},addContainer:function(i,n,l,d,m,w,k,S){if(n!==null&&l!==null){var N={},B=ui.find(function(te){return te.alias===n});if(B&&n===B.alias?N=B:(N.alias=n,ui.push(N)),N.label=l==null?{text:""}:{text:l},d==null)N.techn={text:""};else if(In(d)==="object"){var q=_n(Object.entries(d)[0],2),G=q[0],K=q[1];N[G]={text:K}}else N.techn={text:d};if(m==null)N.descr={text:""};else if(In(m)==="object"){var Q=_n(Object.entries(m)[0],2),xt=Q[0],Ct=Q[1];N[xt]={text:Ct}}else N.descr={text:m};if(In(w)==="object"){var Bt=_n(Object.entries(w)[0],2),Ft=Bt[0],Lt=Bt[1];N[Ft]=Lt}else N.sprite=w;if(In(k)==="object"){var Et=_n(Object.entries(k)[0],2),_t=Et[0],qt=Et[1];N[_t]=qt}else N.tags=k;if(In(S)==="object"){var ve=_n(Object.entries(S)[0],2),de=ve[0],je=ve[1];N[de]=je}else N.link=S;N.wrap=pr(),N.typeC4Shape={text:i},N.parentBoundary=fr}},addContainerBoundary:function(i,n,l,d,m){if(i!==null&&n!==null){var w={},k=Hr.find(function(Bt){return Bt.alias===i});if(k&&i===k.alias?w=k:(w.alias=i,Hr.push(w)),w.label=n==null?{text:""}:{text:n},l==null)w.type={text:"container"};else if(In(l)==="object"){var S=_n(Object.entries(l)[0],2),N=S[0],B=S[1];w[N]={text:B}}else w.type={text:l};if(In(d)==="object"){var q=_n(Object.entries(d)[0],2),G=q[0],K=q[1];w[G]=K}else w.tags=d;if(In(m)==="object"){var Q=_n(Object.entries(m)[0],2),xt=Q[0],Ct=Q[1];w[xt]=Ct}else w.link=m;w.parentBoundary=fr,w.wrap=pr(),Jr=fr,fr=i,Ii.push(Jr)}},addComponent:function(i,n,l,d,m,w,k,S){if(n!==null&&l!==null){var N={},B=ui.find(function(te){return te.alias===n});if(B&&n===B.alias?N=B:(N.alias=n,ui.push(N)),N.label=l==null?{text:""}:{text:l},d==null)N.techn={text:""};else if(In(d)==="object"){var q=_n(Object.entries(d)[0],2),G=q[0],K=q[1];N[G]={text:K}}else N.techn={text:d};if(m==null)N.descr={text:""};else if(In(m)==="object"){var Q=_n(Object.entries(m)[0],2),xt=Q[0],Ct=Q[1];N[xt]={text:Ct}}else N.descr={text:m};if(In(w)==="object"){var Bt=_n(Object.entries(w)[0],2),Ft=Bt[0],Lt=Bt[1];N[Ft]=Lt}else N.sprite=w;if(In(k)==="object"){var Et=_n(Object.entries(k)[0],2),_t=Et[0],qt=Et[1];N[_t]=qt}else N.tags=k;if(In(S)==="object"){var ve=_n(Object.entries(S)[0],2),de=ve[0],je=ve[1];N[de]=je}else N.link=S;N.wrap=pr(),N.typeC4Shape={text:i},N.parentBoundary=fr}},addDeploymentNode:function(i,n,l,d,m,w,k,S){if(n!==null&&l!==null){var N={},B=Hr.find(function(ve){return ve.alias===n});if(B&&n===B.alias?N=B:(N.alias=n,Hr.push(N)),N.label=l==null?{text:""}:{text:l},d==null)N.type={text:"node"};else if(In(d)==="object"){var q=_n(Object.entries(d)[0],2),G=q[0],K=q[1];N[G]={text:K}}else N.type={text:d};if(m==null)N.descr={text:""};else if(In(m)==="object"){var Q=_n(Object.entries(m)[0],2),xt=Q[0],Ct=Q[1];N[xt]={text:Ct}}else N.descr={text:m};if(In(k)==="object"){var Bt=_n(Object.entries(k)[0],2),Ft=Bt[0],Lt=Bt[1];N[Ft]=Lt}else N.tags=k;if(In(S)==="object"){var Et=_n(Object.entries(S)[0],2),_t=Et[0],qt=Et[1];N[_t]=qt}else N.link=S;N.nodeType=i,N.parentBoundary=fr,N.wrap=pr(),Jr=fr,fr=n,Ii.push(Jr)}},popBoundaryParseStack:function(){fr=Jr,Ii.pop(),Jr=Ii.pop(),Ii.push(Jr)},addRel:function(i,n,l,d,m,w,k,S,N){if(i!=null&&n!=null&&l!=null&&d!=null){var B={},q=Vr.find(function(ne){return ne.from===n&&ne.to===l});if(q?B=q:Vr.push(B),B.type=i,B.from=n,B.to=l,B.label={text:d},m==null)B.techn={text:""};else if(In(m)==="object"){var G=_n(Object.entries(m)[0],2),K=G[0],Q=G[1];B[K]={text:Q}}else B.techn={text:m};if(w==null)B.descr={text:""};else if(In(w)==="object"){var xt=_n(Object.entries(w)[0],2),Ct=xt[0],Bt=xt[1];B[Ct]={text:Bt}}else B.descr={text:w};if(In(k)==="object"){var Ft=_n(Object.entries(k)[0],2),Lt=Ft[0],Et=Ft[1];B[Lt]=Et}else B.sprite=k;if(In(S)==="object"){var _t=_n(Object.entries(S)[0],2),qt=_t[0],ve=_t[1];B[qt]=ve}else B.tags=S;if(In(N)==="object"){var de=_n(Object.entries(N)[0],2),je=de[0],te=de[1];B[je]=te}else B.link=N;B.wrap=pr()}},updateElStyle:function(i,n,l,d,m,w,k,S,N,B,q){var G=ui.find(function(nn){return nn.alias===n});if(G!==void 0||(G=Hr.find(function(nn){return nn.alias===n}))!==void 0){if(l!=null)if(In(l)==="object"){var K=_n(Object.entries(l)[0],2),Q=K[0],xt=K[1];G[Q]=xt}else G.bgColor=l;if(d!=null)if(In(d)==="object"){var Ct=_n(Object.entries(d)[0],2),Bt=Ct[0],Ft=Ct[1];G[Bt]=Ft}else G.fontColor=d;if(m!=null)if(In(m)==="object"){var Lt=_n(Object.entries(m)[0],2),Et=Lt[0],_t=Lt[1];G[Et]=_t}else G.borderColor=m;if(w!=null)if(In(w)==="object"){var qt=_n(Object.entries(w)[0],2),ve=qt[0],de=qt[1];G[ve]=de}else G.shadowing=w;if(k!=null)if(In(k)==="object"){var je=_n(Object.entries(k)[0],2),te=je[0],ne=je[1];G[te]=ne}else G.shape=k;if(S!=null)if(In(S)==="object"){var ce=_n(Object.entries(S)[0],2),le=ce[0],Gt=ce[1];G[le]=Gt}else G.sprite=S;if(N!=null)if(In(N)==="object"){var oe=_n(Object.entries(N)[0],2),_e=oe[0],we=oe[1];G[_e]=we}else G.techn=N;if(B!=null)if(In(B)==="object"){var Je=_n(Object.entries(B)[0],2),dn=Je[0],Me=Je[1];G[dn]=Me}else G.legendText=B;if(q!=null)if(In(q)==="object"){var gn=_n(Object.entries(q)[0],2),wn=gn[0],Ue=gn[1];G[wn]=Ue}else G.legendSprite=q}},updateRelStyle:function(i,n,l,d,m,w,k){var S=Vr.find(function(_t){return _t.from===n&&_t.to===l});if(S!==void 0){if(d!=null)if(In(d)==="object"){var N=_n(Object.entries(d)[0],2),B=N[0],q=N[1];S[B]=q}else S.textColor=d;if(m!=null)if(In(m)==="object"){var G=_n(Object.entries(m)[0],2),K=G[0],Q=G[1];S[K]=Q}else S.lineColor=m;if(w!=null)if(In(w)==="object"){var xt=_n(Object.entries(w)[0],2),Ct=xt[0],Bt=xt[1];S[Ct]=parseInt(Bt)}else S.offsetX=parseInt(w);if(k!=null)if(In(k)==="object"){var Ft=_n(Object.entries(k)[0],2),Lt=Ft[0],Et=Ft[1];S[Lt]=parseInt(Et)}else S.offsetY=parseInt(k)}},updateLayoutConfig:function(i,n,l){var d=Gr,m=Ta;if(In(n)==="object"){var w=_n(Object.entries(n)[0],2),k=(w[0],w[1]);d=parseInt(k)}else d=parseInt(n);if(In(l)==="object"){var S=_n(Object.entries(l)[0],2),N=(S[0],S[1]);m=parseInt(N)}else m=parseInt(l);d>=1&&(Gr=d),m>=1&&(Ta=m)},autoWrap:pr,setWrap:function(i){Ai=i},getC4ShapeArray:Ia,getC4Shape:function(i){return ui.find(function(n){return n.alias===i})},getC4ShapeKeys:function(i){return Object.keys(Ia(i))},getBoundarys:function(i){return i==null?Hr:Hr.filter(function(n){return n.parentBoundary===i})},getCurrentBoundaryParse:function(){return fr},getParentBoundaryParse:function(){return Jr},getRels:function(){return Vr},getTitle:function(){return ii},getC4Type:function(){return wi},getC4ShapeInRow:function(){return Gr},getC4BoundaryInRow:function(){return Ta},setAccTitle:xr,getAccTitle:Ir,getAccDescription:pi,setAccDescription:Ur,parseDirective:function(i,n,l){zr.parseDirective(this,i,n,l)},getConfig:function(){return Nt().c4},clear:function(){ui=[],Hr=[{alias:"global",label:{text:"global"},type:{text:"global"},tags:null,link:null,parentBoundary:""}],Jr="",fr="global",Ii=[""],Vr=[],Ii=[""],ii="",Ai=!1,Gr=4,Ta=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=hr(i,Nt());ii=n},setC4Type:function(i){var n=hr(i,Nt());wi=n}};var ei=p(7967);function Lo(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 Wa=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},ca=function(){function i(m,w,k,S,N,B,q){d(w.append("text").attr("x",k+N/2).attr("y",S+B/2+5).style("text-anchor","middle").text(m),q)}function n(m,w,k,S,N,B,q,G){for(var K=G.fontSize,Q=G.fontFamily,xt=G.fontWeight,Ct=m.split(on.lineBreakRegex),Bt=0;Bt<Ct.length;Bt++){var Ft=Bt*K-K*(Ct.length-1)/2,Lt=w.append("text").attr("x",k+N/2).attr("y",S).style("text-anchor","middle").attr("dominant-baseline","middle").style("font-size",K).style("font-weight",xt).style("font-family",Q);Lt.append("tspan").attr("dy",Ft).text(Ct[Bt]).attr("alignment-baseline","mathematical"),d(Lt,q)}}function l(m,w,k,S,N,B,q,G){var K=w.append("switch"),Q=K.append("foreignObject").attr("x",k).attr("y",S).attr("width",N).attr("height",B).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(m),n(m,K,k,S,N,0,q,G),d(Q,q)}function d(m,w){for(var k in w)w.hasOwnProperty(k)&&m.attr(k,w[k])}return function(m){return m.textPlacement==="fo"?l:m.textPlacement==="old"?i:n}}();const uc=function(i,n,l){var d=n.bgColor?n.bgColor:l[n.typeC4Shape.text+"_bg_color"],m=n.borderColor?n.borderColor:l[n.typeC4Shape.text+"_border_color"],w=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:"+m+";stroke-width:0.5;",N.rx=2.5,N.ry=2.5,Wa(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",m).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",m).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",m).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",m).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 B,q,G=(B=l,q=n.typeC4Shape.text,{fontFamily:B[q+"FontFamily"],fontSize:B[q+"FontSize"],fontWeight:B[q+"FontWeight"]});switch(S.append("text").attr("fill",w).attr("font-family",G.fontFamily).attr("font-size",G.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,xt,Ct,Bt,Ft,Lt){var Et=Q.append("image");Et.attr("width",xt),Et.attr("height",Ct),Et.attr("x",Bt),Et.attr("y",Ft);var _t=Lt.startsWith("data:image/png;base64")?Lt:(0,ei.N)(Lt);Et.attr("xlink:href",_t)})(S,48,48,n.x+n.width/2-24,n.y+n.image.Y,k)}var K=l[n.typeC4Shape.text+"Font"]();return K.fontWeight="bold",K.fontSize=K.fontSize+2,K.fontColor=w,ca(l)(n.label.text,S,n.x,n.y+n.label.Y,n.width,n.height,{fill:w},K),(K=l[n.typeC4Shape.text+"Font"]()).fontColor=w,n.thchn&&n.thchn.text!==""?ca(l)(n.thchn.text,S,n.x,n.y+n.thchn.Y,n.width,n.height,{fill:w,"font-style":"italic"},K):n.type&&n.type.text!==""&&ca(l)(n.type.text,S,n.x,n.y+n.type.Y,n.width,n.height,{fill:w,"font-style":"italic"},K),n.descr&&n.descr.text!==""&&((K=l.personFont()).fontColor=w,ca(l)(n.descr.text,S,n.x,n.y+n.descr.Y,n.width,n.height,{fill:w},K)),n.height},Ht=function(i,n,l){var d,m=i.append("g"),w=0,k=function(Ct,Bt){var Ft=typeof Symbol!="undefined"&&Ct[Symbol.iterator]||Ct["@@iterator"];if(!Ft){if(Array.isArray(Ct)||(Ft=function(de,je){if(de){if(typeof de=="string")return Lo(de,je);var te=Object.prototype.toString.call(de).slice(8,-1);return te==="Object"&&de.constructor&&(te=de.constructor.name),te==="Map"||te==="Set"?Array.from(de):te==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(te)?Lo(de,je):void 0}}(Ct))||Bt&&Ct&&typeof Ct.length=="number"){Ft&&(Ct=Ft);var Lt=0,Et=function(){};return{s:Et,n:function(){return Lt>=Ct.length?{done:!0}:{done:!1,value:Ct[Lt++]}},e:function(de){throw de},f:Et}}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,qt=!0,ve=!1;return{s:function(){Ft=Ft.call(Ct)},n:function(){var de=Ft.next();return qt=de.done,de},e:function(de){ve=!0,_t=de},f:function(){try{qt||Ft.return==null||Ft.return()}finally{if(ve)throw _t}}}}(n);try{for(k.s();!(d=k.n()).done;){var S=d.value,N=S.textColor?S.textColor:"#444444",B=S.lineColor?S.lineColor:"#444444",q=S.offsetX?parseInt(S.offsetX):0,G=S.offsetY?parseInt(S.offsetY):0;if(w===0){var K=m.append("line");K.attr("x1",S.startPoint.x),K.attr("y1",S.startPoint.y),K.attr("x2",S.endPoint.x),K.attr("y2",S.endPoint.y),K.attr("stroke-width","1"),K.attr("stroke",B),K.style("fill","none"),S.type!=="rel_b"&&K.attr("marker-end","url(#arrowhead)"),S.type!=="birel"&&S.type!=="rel_b"||K.attr("marker-start","url(#arrowend)"),w=-1}else{var Q=m.append("path");Q.attr("fill","none").attr("stroke-width","1").attr("stroke",B).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 xt=l.messageFont();ca(l)(S.label.text,m,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+G,S.label.width,S.label.height,{fill:N},xt),S.techn&&S.techn.text!==""&&(xt=l.messageFont(),ca(l)("["+S.techn.text+"]",m,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+G,Math.max(S.label.width,S.techn.width),S.techn.height,{fill:N,"font-style":"italic"},xt))}}catch(Ct){k.e(Ct)}finally{k.f()}};ei.N;var We=p(2536),mn=p.n(We),or=/[%]{2}[{]\s*(?:(?:(\w+)\s*:|(\w+))\s*(?:(?:(\w+))|((?:(?![}][%]{2}).|\r?\n)*))?\s*)(?:[}][%]{2})?/gi,hi=/\s*%%.*\n/gm,Er={};const gi=function(i,n){if((i=i.replace(or,"").replace(hi,`
`)).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 m=l[d],w=Er[m];if(w&&w.detector(i))return m}return"flowchart"};var Fa=void 0;function yi(i){return yi=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},yi(i)}function Mi(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 Io(i,n){var l=typeof Symbol!="undefined"&&i[Symbol.iterator]||i["@@iterator"];if(!l){if(Array.isArray(i)||(l=Ra(i))||n&&i&&typeof i.length=="number"){l&&(i=l);var d=0,m=function(){};return{s:m,n:function(){return d>=i.length?{done:!0}:{done:!1,value:i[d++]}},e:function(N){throw N},f:m}}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 w,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,w=N},f:function(){try{k||l.return==null||l.return()}finally{if(S)throw w}}}}function hc(i){return function(n){if(Array.isArray(n))return fc(n)}(i)||function(n){if(typeof Symbol!="undefined"&&n[Symbol.iterator]!=null||n["@@iterator"]!=null)return Array.from(n)}(i)||Ra(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 Ra(i,n){if(i){if(typeof i=="string")return fc(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)?fc(i,n):void 0}}function fc(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 ks,hu={curveBasis:T.curveBasis,curveBasisClosed:T.curveBasisClosed,curveBasisOpen:T.curveBasisOpen,curveLinear:T.curveLinear,curveLinearClosed:T.curveLinearClosed,curveMonotoneX:T.curveMonotoneX,curveMonotoneY:T.curveMonotoneY,curveNatural:T.curveNatural,curveStep:T.curveStep,curveStepAfter:T.curveStepAfter,curveStepBefore:T.curveStepBefore},sn=/[%]{2}[{]\s*(?:(?:(\w+)\s*:|(\w+))\s*(?:(?:(\w+))|((?:(?![}][%]{2}).|\r?\n)*))?\s*)(?:[}][%]{2})?/gi,ul=/\s*(?:(?:(\w+)(?=:):|(\w+))\s*(?:(?:(\w+))|((?:(?![}][%]{2}).|\r?\n)*))?\s*)(?:[}][%]{2})?/gi,Dr=function(i){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;try{var l=new RegExp("[%]{2}(?![{]".concat(ul.source,`)(?=[}][%]{2}).*
`),"ig");i=i.trim().replace(l,"").replace(/'/gm,'"'),g.debug("Detecting diagram directive".concat(n!==null?" type:"+n:""," based on the text:").concat(i));for(var d,m=[];(d=sn.exec(i))!==null;)if(d.index===sn.lastIndex&&sn.lastIndex++,d&&!n||n&&d[1]&&d[1].match(n)||n&&d[2]&&d[2].match(n)){var w=d[1]?d[1]:d[2],k=d[3]?d[3].trim():d[4]?JSON.parse(d[4].trim()):null;m.push({type:w,args:k})}return m.length===0&&m.push({type:i,args:null}),m.length===1?m[0]:m}catch(S){return g.error("ERROR: ".concat(S.message,` - Unable to parse directive
`).concat(n!==null?" type:"+n:""," based on the text:").concat(i)),{type:null,args:null}}},so=function(i,n){var l={};return function(){for(var d=arguments.length,m=new Array(d),w=0;w<d;w++)m[w]=arguments[w];var k=n?n.apply(Fa,m):m[0];if(k in l)return l[k];var S=i.apply(void 0,m);return l[k]=S,S}},ma=function(i,n){if(!i)return n;var l="curve".concat(i.charAt(0).toUpperCase()+i.slice(1));return hu[l]||n},qa=function(i,n){return i&&n?Math.sqrt(Math.pow(n.x-i.x,2)+Math.pow(n.y-i.y,2)):0},Di=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}},Fo=0,dc=function(){return Fo++,"id-"+Math.random().toString(36).substr(2,12)+"-"+Fo},pc=function(i){return function(n){for(var l="",d="0123456789abcdef",m=d.length,w=0;w<n;w++)l+=d.charAt(Math.floor(Math.random()*m));return l}(i.length)},gc=function(i,n){var l=n.text.replace(on.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 m=d.append("tspan");return m.attr("x",n.x+2*n.textMargin),m.attr("fill",n.fill),m.text(l),d},Ea=so(function(i,n,l){if(!i||(l=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",joinWith:"<br/>"},l),on.lineBreakRegex.test(i)))return i;var d=i.split(" "),m=[],w="";return d.forEach(function(k,S){var N=Sa("".concat(k," "),l),B=Sa(w,l);if(N>n){var q=fu(k,n,"-",l),G=q.hyphenatedStrings,K=q.remainingWord;m.push.apply(m,[w].concat(hc(G))),w=K}else B+N>=n?(m.push(w),w=k):w=[w,k].filter(Boolean).join(" ");S+1===d.length&&m.push(w)}),m.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)}),fu=so(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 m=i.split(""),w=[],k="";return m.forEach(function(S,N){var B="".concat(k).concat(S);if(Sa(B,d)>=n){var q=N+1,G=m.length===q,K="".concat(B).concat(l);w.push(G?B:K),k=""}else k=B}),{hyphenatedStrings:w,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)}),yc=function(i,n){return n=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:15},n),ws(i,n).height},Sa=function(i,n){return n=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial"},n),ws(i,n).width},ws=so(function(i,n){var l=n=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial"},n),d=l.fontSize,m=l.fontFamily,w=l.fontWeight;if(!i)return{width:0,height:0};var k=["sans-serif",m],S=i.split(on.lineBreakRegex),N=[],B=(0,T.select)("body");if(!B.remove)return{width:0,height:0,lineHeight:0};for(var q=B.append("svg"),G=0,K=k;G<K.length;G++){var Q,xt=K[G],Ct=0,Bt={width:0,height:0,lineHeight:0},Ft=Io(S);try{for(Ft.s();!(Q=Ft.n()).done;){var Lt=Q.value,Et={x:0,y:0,fill:void 0,anchor:"start",style:"#666",width:100,height:100,textMargin:0,rx:0,ry:0,valign:void 0};Et.text=Lt;var _t=gc(q,Et).style("font-size",d).style("font-weight",w).style("font-family",xt),qt=(_t._groups||_t)[0][0].getBBox();Bt.width=Math.round(Math.max(Bt.width,qt.width)),Ct=Math.round(qt.height),Bt.height+=Ct,Bt.lineHeight=Math.round(Math.max(Bt.lineHeight,Ct))}}catch(ve){Ft.e(ve)}finally{Ft.f()}N.push(Bt)}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)}),hl=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},Qi=function(i,n,l,d){(function(m,w){var k,S=Io(w);try{for(S.s();!(k=S.n()).done;){var N=k.value;m.attr(N[0],N[1])}}catch(B){S.e(B)}finally{S.f()}})(i,hl(0,1*l,d))},Ro=function(i,n,l,d){var m=n.node().getBBox(),w=m.width,k=m.height;g.info("SVG bounds: ".concat(w,"x").concat(k),m);var S=i._label.width,N=i._label.height;g.info("Graph bounds: ".concat(S,"x").concat(N),i),S=w+2*l,N=k+2*l,g.info("Calculated bounds: ".concat(S,"x").concat(N)),Qi(n,0,S,d);var B="".concat(m.x-l," ").concat(m.y-l," ").concat(m.width+2*l," ").concat(m.height+2*l);g.info("Graph.label",i._label,"swidth",w,"sheight",k,"width",S,"height",N,"vBox",B),n.attr("viewBox",B)},mi=function i(n){if(g.debug("directiveSanitizer called with",n),yi(n)==="object"&&(n.length?n.forEach(function(k){return i(k)}):Object.keys(n).forEach(function(k){g.debug("Checking key",k),k.indexOf("__")===0&&(g.debug("sanitize deleting __ option",k),delete n[k]),k.indexOf("proto")>=0&&(g.debug("sanitize deleting proto option",k),delete n[k]),k.indexOf("constr")>=0&&(g.debug("sanitize deleting constr option",k),delete n[k]),k.indexOf("themeCSS")>=0&&(g.debug("sanitizing themeCss option"),n[k]=rs(n[k])),k.indexOf("fontFamily")>=0&&(g.debug("sanitizing fontFamily option"),n[k]=rs(n[k])),k.indexOf("altFontFamily")>=0&&(g.debug("sanitizing altFontFamily option"),n[k]=rs(n[k])),ya.indexOf(k)<0?(g.debug("sanitize deleting option",k),delete n[k]):yi(n[k])==="object"&&(g.debug("sanitize deleting object",k),i(n[k]))})),n.themeVariables)for(var l=Object.keys(n.themeVariables),d=0;d<l.length;d++){var m=l[d],w=n.themeVariables[m];w&&w.match&&!w.match(/^[a-zA-Z0-9#,";()%. ]+$/)&&(n.themeVariables[m]="")}g.debug("After sanitization",n)},rs=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 Vn={assignWithDepth:ee,wrapLabel:Ea,calculateTextHeight:yc,calculateTextWidth:Sa,calculateTextDimensions:ws,calculateSvgSizeAttrs:hl,configureSvgSize:Qi,setupGraphViewbox:Ro,detectInit:function(i,n){var l=Dr(i,/(?:init\b)|(?:initialize\b)/),d={};if(Array.isArray(l)){var m=l.map(function(k){return k.args});mi(m),d=ee(d,hc(m))}else d=l.args;if(d){var w=gi(i,n);["config"].forEach(function(k){d[k]!==void 0&&(w==="flowchart-v2"&&(w="flowchart"),d[w]=d[k],delete d[k])})}return d},detectDirective:Dr,isSubstringInArray:function(i,n){for(var l=0;l<n.length;l++)if(n[l].match(i))return l;return-1},interpolateToCurve:ma,calcLabelPosition:function(i){return i.length===1?i[0]:function(n){var l,d=0;n.forEach(function(k){d+=qa(k,l),l=k});var m=d/2,w=void 0;return l=void 0,n.forEach(function(k){if(l&&!w){var S=qa(k,l);if(S<m)m-=S;else{var N=m/S;N<=0&&(w=l),N>=1&&(w={x:k.x,y:k.y}),N>0&&N<1&&(w={x:(1-N)*l.x+N*k.x,y:(1-N)*l.y+N*k.y})}}l=k}),w}(i)},calcCardinalityPosition:function(i,n,l){var d;g.info("our points",n),n[0]!==l&&(n=n.reverse()),n.forEach(function(B){qa(B,d),d=B});var m,w=25;d=void 0,n.forEach(function(B){if(d&&!m){var q=qa(B,d);if(q<w)w-=q;else{var G=w/q;G<=0&&(m=d),G>=1&&(m={x:B.x,y:B.y}),G>0&&G<1&&(m={x:(1-G)*d.x+G*B.x,y:(1-G)*d.y+G*B.y})}}d=B});var k=i?10:5,S=Math.atan2(n[0].y-m.y,n[0].x-m.x),N={x:0,y:0};return N.x=Math.sin(S)*k+(n[0].x+m.x)/2,N.y=-Math.cos(S)*k+(n[0].y+m.y)/2,N},calcTerminalLabelPosition:function(i,n,l){var d,m=JSON.parse(JSON.stringify(l));g.info("our points",m),n!=="start_left"&&n!=="start_right"&&(m=m.reverse()),m.forEach(function(q){qa(q,d),d=q});var w,k=25+i;d=void 0,m.forEach(function(q){if(d&&!w){var G=qa(q,d);if(G<k)k-=G;else{var K=k/G;K<=0&&(w=d),K>=1&&(w={x:q.x,y:q.y}),K>0&&K<1&&(w={x:(1-K)*d.x+K*q.x,y:(1-K)*d.y+K*q.y})}}d=q});var S=10+.5*i,N=Math.atan2(m[0].y-w.y,m[0].x-w.x),B={x:0,y:0};return B.x=Math.sin(N)*S+(m[0].x+w.x)/2,B.y=-Math.cos(N)*S+(m[0].y+w.y)/2,n==="start_left"&&(B.x=Math.sin(N+Math.PI)*S+(m[0].x+w.x)/2,B.y=-Math.cos(N+Math.PI)*S+(m[0].y+w.y)/2),n==="end_right"&&(B.x=Math.sin(N-Math.PI)*S+(m[0].x+w.x)/2-5,B.y=-Math.cos(N-Math.PI)*S+(m[0].y+w.y)/2-5),n==="end_left"&&(B.x=Math.sin(N)*S+(m[0].x+w.x)/2-5,B.y=-Math.cos(N)*S+(m[0].y+w.y)/2-5),B},formatUrl:function(i,n){var l=i.trim();if(l)return n.securityLevel!=="loose"?(0,ei.N)(l):l},getStylesFromArray:Di,generateId:dc,random:pc,memoize:so,runFunc:function(i){for(var n,l=i.split("."),d=l.length-1,m=l[d],w=window,k=0;k<d;k++)if(!(w=w[l[k]]))return;for(var S=arguments.length,N=new Array(S>1?S-1:0),B=1;B<S;B++)N[B-1]=arguments[B];(n=w)[m].apply(n,N)},entityDecode:function(i){return ks=ks||document.createElement("div"),i=escape(i).replace(/%26/g,"&").replace(/%23/g,"#").replace(/%3B/g,";"),ks.innerHTML=i,unescape(ks.textContent)},initIdGenerator:function(){function i(d,m){(function(w,k){if(!(w instanceof k))throw new TypeError("Cannot call a class as a function")})(this,i),this.deterministic=d,this.seed=m,this.count=m?m.length:0}var n,l;return n=i,(l=[{key:"next",value:function(){return this.deterministic?this.count++:Date.now()}}])&&Mi(n.prototype,l),Object.defineProperty(n,"prototype",{writable:!1}),i}(),directiveSanitizer:mi,sanitizeCss:rs};function kr(i,n,l){if(n.insert!==void 0){var d=i.getAccTitle(),m=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(m),n.insert("title",":first-child").attr("id","chart-title-"+l).text(d)}}function fl(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 Po(i,n){if(!(i instanceof n))throw new TypeError("Cannot call a class as a function")}function Ts(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 co(i,n,l){return n&&Ts(i.prototype,n),l&&Ts(i,l),Object.defineProperty(i,"prototype",{writable:!1}),i}var lo=0,uo=0,zi=4,Ni=2;We.parser.yy=ti;var xn={},Ki=function(){function i(n){Po(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,ba(n.db.getConfig())}return co(i,[{key:"setData",value:function(n,l,d,m){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=m}},{key:"updateVal",value:function(n,l,d,m){n[l]===void 0?n[l]=d:n[l]=m(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,m=this.nextData.starty+2*n.margin,w=m+n.height;(l>=this.data.widthLimit||d>=this.data.widthLimit||this.nextData.cnt>zi)&&(l=this.nextData.startx+n.margin+xn.nextLinePaddingX,m=this.nextData.stopy+2*n.margin,this.nextData.stopx=d=l+n.width,this.nextData.starty=this.nextData.stopy,this.nextData.stopy=w=m+n.height,this.nextData.cnt=1),n.x=l,n.y=m,this.updateVal(this.data,"startx",l,Math.min),this.updateVal(this.data,"starty",m,Math.min),this.updateVal(this.data,"stopx",d,Math.max),this.updateVal(this.data,"stopy",w,Math.max),this.updateVal(this.nextData,"startx",l,Math.min),this.updateVal(this.nextData,"starty",m,Math.min),this.updateVal(this.nextData,"stopx",d,Math.max),this.updateVal(this.nextData,"stopy",w,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},ba(n.db.getConfig())}},{key:"bumpLastMargin",value:function(n){this.data.stopx+=n,this.data.stopy+=n}}]),i}(),ba=function(i){ee(xn,i),i.fontFamily&&(xn.personFontFamily=xn.systemFontFamily=xn.messageFontFamily=i.fontFamily),i.fontSize&&(xn.personFontSize=xn.systemFontSize=xn.messageFontSize=i.fontSize),i.fontWeight&&(xn.personFontWeight=xn.systemFontWeight=xn.messageFontWeight=i.fontWeight)},Kn=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,m){if(!n[i].width)if(l)n[i].text=Ea(n[i].text,m,d),n[i].textLines=n[i].text.split(on.lineBreakRegex).length,n[i].width=m,n[i].height=yc(n[i].text,d);else{var w=n[i].text.split(on.lineBreakRegex);n[i].textLines=w.length;var k=0;n[i].height=0,n[i].width=0;for(var S=0;S<w.length;S++)n[i].width=Math.max(Sa(w[S],d),n[i].width),k=yc(w[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=xn.c4ShapeMargin-35;var d=n.wrap&&xn.wrap,m=x(xn);m.fontSize=m.fontSize+2,m.fontWeight="bold",L("label",n,d,m,Sa(n.label.text,m)),function(w,k,S){var N=w.append("g"),B=k.bgColor?k.bgColor:"none",q=k.borderColor?k.borderColor:"#444444",G=k.fontColor?k.fontColor:"black",K={"stroke-width":1,"stroke-dasharray":"7.0,7.0"};k.nodeType&&(K={"stroke-width":1});var Q={x:k.x,y:k.y,fill:B,stroke:q,width:k.width,height:k.height,rx:2.5,ry:2.5,attrs:K};Wa(N,Q);var xt=S.boundaryFont();xt.fontWeight="bold",xt.fontSize=xt.fontSize+2,xt.fontColor=G,ca(S)(k.label.text,N,k.x,k.y+k.label.Y,k.width,k.height,{fill:"#444444"},xt),k.type&&k.type.text!==""&&((xt=S.boundaryFont()).fontColor=G,ca(S)(k.type.text,N,k.x,k.y+k.type.Y,k.width,k.height,{fill:"#444444"},xt)),k.descr&&k.descr.text!==""&&((xt=S.boundaryFont()).fontSize=xt.fontSize-2,xt.fontColor=G,ca(S)(k.descr.text,N,k.x,k.y+k.descr.Y,k.width,k.height,{fill:"#444444"},xt))}(i,n,xn)},ct=function(i,n,l,d){for(var m=0,w=0;w<d.length;w++){m=0;var k=l[d[w]],S=Kn(xn,k.typeC4Shape.text);switch(S.fontSize=S.fontSize-2,k.typeC4Shape.width=Sa("<<"+k.typeC4Shape.text+">>",S),k.typeC4Shape.height=S.fontSize+2,k.typeC4Shape.Y=xn.c4ShapePadding,m=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=m,m=k.image.Y+k.image.height}k.sprite&&(k.image.width=48,k.image.height=48,k.image.Y=m,m=k.image.Y+k.image.height);var N=k.wrap&&xn.wrap,B=xn.width-2*xn.c4ShapePadding,q=Kn(xn,k.typeC4Shape.text);q.fontSize=q.fontSize+2,q.fontWeight="bold",L("label",k,N,q,B),k.label.Y=m+8,m=k.label.Y+k.label.height,k.type&&k.type.text!==""?(k.type.text="["+k.type.text+"]",L("type",k,N,Kn(xn,k.typeC4Shape.text),B),k.type.Y=m+5,m=k.type.Y+k.type.height):k.techn&&k.techn.text!==""&&(k.techn.text="["+k.techn.text+"]",L("techn",k,N,Kn(xn,k.techn.text),B),k.techn.Y=m+5,m=k.techn.Y+k.techn.height);var G=m,K=k.label.width;k.descr&&k.descr.text!==""&&(L("descr",k,N,Kn(xn,k.typeC4Shape.text),B),k.descr.Y=m+20,m=k.descr.Y+k.descr.height,K=Math.max(k.label.width,k.descr.width),G=m-5*k.descr.textLines),K+=xn.c4ShapePadding,k.width=Math.max(k.width||xn.width,K,xn.width),k.height=Math.max(k.height||xn.height,G,xn.height),k.margin=k.margin||xn.c4ShapeMargin,i.insert(k),uc(n,k,xn)}i.bumpLastMargin(xn.c4ShapeMargin)},Zt=co(function i(n,l){Po(this,i),this.x=n,this.y=l}),Ce=function(i,n){var l=i.x,d=i.y,m=n.x,w=n.y,k=l+i.width/2,S=d+i.height/2,N=Math.abs(l-m),B=Math.abs(d-w),q=B/N,G=i.height/i.width,K=null;return d==w&&l<m?K=new Zt(l+i.width,S):d==w&&l>m?K=new Zt(l,S):l==m&&d<w?K=new Zt(k,d+i.height):l==m&&d>w&&(K=new Zt(k,d)),l>m&&d<w?K=G>=q?new Zt(l,S+q*i.width/2):new Zt(k-N/B*i.height/2,d+i.height):l<m&&d<w?K=G>=q?new Zt(l+i.width,S+q*i.width/2):new Zt(k+N/B*i.height/2,d+i.height):l<m&&d>w?K=G>=q?new Zt(l+i.width,S-q*i.width/2):new Zt(k+i.height/2*N/B,d):l>m&&d>w&&(K=G>=q?new Zt(l,S-i.width/2*q):new Zt(k-i.height/2*N/B,d)),K},Re=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=Ce(i,l);return l.x=i.x+i.width/2,l.y=i.y+i.height/2,{startPoint:d,endPoint:Ce(n,l)}};function Xe(i,n,l,d,m){var w=new Ki(m);w.data.widthLimit=l.data.widthLimit/Math.min(Ni,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 B=S.wrap&&xn.wrap,q=x(xn);if(q.fontSize=q.fontSize+2,q.fontWeight="bold",L("label",S,B,q,w.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,B,x(xn),w.data.widthLimit),S.type.Y=N+5,N=S.type.Y+S.type.height),S.descr&&S.descr.text!==""){var G=x(xn);G.fontSize=G.fontSize-2,L("descr",S,B,G,w.data.widthLimit),S.descr.Y=N+20,N=S.descr.Y+S.descr.height}if(k==0||k%Ni==0){var K=l.data.startx+xn.diagramMarginX,Q=l.data.stopy+xn.diagramMarginY+N;w.setData(K,K,Q,Q)}else{var xt=w.data.stopx!==w.data.startx?w.data.stopx+xn.diagramMarginX:w.data.startx,Ct=w.data.starty;w.setData(xt,xt,Ct,Ct)}w.name=S.alias;var Bt=m.db.getC4ShapeArray(S.alias),Ft=m.db.getC4ShapeKeys(S.alias);Ft.length>0&&ct(w,i,Bt,Ft),n=S.alias;var Lt=m.db.getBoundarys(n);Lt.length>0&&Xe(i,n,w,Lt,m),S.alias!=="global"&&H(i,S,w),l.data.stopy=Math.max(w.data.stopy+xn.c4ShapeMargin,l.data.stopy),l.data.stopx=Math.max(w.data.stopx+xn.c4ShapeMargin,l.data.stopx),lo=Math.max(lo,l.data.stopx),uo=Math.max(uo,l.data.stopy)}}const Ke={drawPersonOrSystemArray:ct,drawBoundary:H,setConf:ba,draw:function(i,n,l,d){xn=Nt().c4;var m,w=Nt().securityLevel;w==="sandbox"&&(m=(0,T.select)("#i"+n));var k=w==="sandbox"?(0,T.select)(m.nodes()[0].contentDocument.body):(0,T.select)("body"),S=d.db;d.db.setWrap(xn.wrap),zi=S.getC4ShapeInRow(),Ni=S.getC4BoundaryInRow(),g.debug("C:".concat(JSON.stringify(xn,null,2)));var N=w==="sandbox"?k.select('[id="'.concat(n,'"]')):(0,T.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(Ct){Ct.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(Ct){Ct.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 B=new Ki(d);B.setData(xn.diagramMarginX,xn.diagramMarginX,xn.diagramMarginY,xn.diagramMarginY),B.data.widthLimit=screen.availWidth,lo=xn.diagramMarginX,uo=xn.diagramMarginY;var q=d.db.getTitle();d.db.getC4Type(),Xe(N,"",B,d.db.getBoundarys(""),d),function(Ct){Ct.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(Ct){Ct.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(Ct){var Bt=Ct.append("defs").append("marker").attr("id","crosshead").attr("markerWidth",15).attr("markerHeight",8).attr("orient","auto").attr("refX",16).attr("refY",4);Bt.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"),Bt.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(Ct){Ct.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(Ct,Bt,Ft,Lt){var Et,_t,qt=0,ve=function(oe,_e){var we=typeof Symbol!="undefined"&&oe[Symbol.iterator]||oe["@@iterator"];if(!we){if(Array.isArray(oe)||(we=function(Ue,nn){if(Ue){if(typeof Ue=="string")return fl(Ue,nn);var tn=Object.prototype.toString.call(Ue).slice(8,-1);return tn==="Object"&&Ue.constructor&&(tn=Ue.constructor.name),tn==="Map"||tn==="Set"?Array.from(Ue):tn==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(tn)?fl(Ue,nn):void 0}}(oe))||_e&&oe&&typeof oe.length=="number"){we&&(oe=we);var Je=0,dn=function(){};return{s:dn,n:function(){return Je>=oe.length?{done:!0}:{done:!1,value:oe[Je++]}},e:function(Ue){throw Ue},f:dn}}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 Me,gn=!0,wn=!1;return{s:function(){we=we.call(oe)},n:function(){var Ue=we.next();return gn=Ue.done,Ue},e:function(Ue){wn=!0,Me=Ue},f:function(){try{gn||we.return==null||we.return()}finally{if(wn)throw Me}}}}(Bt);try{for(ve.s();!(Et=ve.n()).done;){var de=Et.value;qt+=1;var je=de.wrap&&xn.wrap,te={fontFamily:(_t=xn).messageFontFamily,fontSize:_t.messageFontSize,fontWeight:_t.messageFontWeight};Lt.db.getC4Type()==="C4Dynamic"&&(de.label.text=qt+": "+de.label.text);var ne=Sa(de.label.text,te);L("label",de,je,te,ne),de.techn&&de.techn.text!==""&&L("techn",de,je,te,ne=Sa(de.techn.text,te)),de.descr&&de.descr.text!==""&&L("descr",de,je,te,ne=Sa(de.descr.text,te));var ce=Ft(de.from),le=Ft(de.to),Gt=Re(ce,le);de.startPoint=Gt.startPoint,de.endPoint=Gt.endPoint}}catch(oe){ve.e(oe)}finally{ve.f()}Ht(Ct,Bt,xn)}(N,d.db.getRels(),d.db.getC4Shape,d),B.data.stopx=lo,B.data.stopy=uo;var G=B.data,K=G.stopy-G.starty+2*xn.diagramMarginY,Q=G.stopx-G.startx+2*xn.diagramMarginX;q&&N.append("text").text(q).attr("x",(G.stopx-G.startx)/2-4*xn.diagramMarginX).attr("y",G.starty+xn.diagramMarginY),Qi(N,0,Q,xn.useMaxWidth);var xt=q?60:0;N.attr("viewBox",G.startx-xn.diagramMarginX+" -"+(xn.diagramMarginY+xt)+" "+Q+" "+(K+xt)),kr(We.parser.yy,N,n),g.debug("models:",G)}};function hn(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 bn="classid-",Un=[],fn={},mr=0,sr=[],$r=function(i){return on.sanitizeText(i,Nt())},ai=function(i){var n="",l=i;if(i.indexOf("~")>0){var d=i.split("~");l=d[0],n=on.sanitizeText(d[1],Nt())}return{className:l,type:n}},jr=function(i){var n=ai(i);fn[n.className]===void 0&&(fn[n.className]={id:n.className,type:n.type,cssClasses:[],methods:[],members:[],annotations:[],domId:bn+n.className+"-"+mr},mr++)},Es=function(i){for(var n=Object.keys(fn),l=0;l<n.length;l++)if(fn[n[l]].id===i)return fn[n[l]].domId},du=function(i,n){var l=ai(i).className,d=fn[l];if(typeof n=="string"){var m=n.trim();m.startsWith("<<")&&m.endsWith(">>")?d.annotations.push($r(m.substring(2,m.length-2))):m.indexOf(")")>0?d.methods.push($r(m)):m&&d.members.push($r(m))}},mc=function(i,n){i.split(",").forEach(function(l){var d=l;l[0].match(/\d/)&&(d=bn+d),fn[d]!==void 0&&fn[d].cssClasses.push(n)})},Hh=function(i,n,l){var d=Nt(),m=i,w=Es(m);if(d.securityLevel==="loose"&&n!==void 0&&fn[m]!==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(w),sr.push(function(){var B=document.querySelector('[id="'.concat(w,'"]'));B!==null&&B.addEventListener("click",function(){var q;Vn.runFunc.apply(Vn,[n].concat(function(G){if(Array.isArray(G))return hn(G)}(q=k)||function(G){if(typeof Symbol!="undefined"&&G[Symbol.iterator]!=null||G["@@iterator"]!=null)return Array.from(G)}(q)||function(G,K){if(G){if(typeof G=="string")return hn(G,K);var Q=Object.prototype.toString.call(G).slice(8,-1);return Q==="Object"&&G.constructor&&(Q=G.constructor.name),Q==="Map"||Q==="Set"?Array.from(G):Q==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Q)?hn(G,K):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)})}},pu=function(i){var n=(0,T.select)(".mermaidTooltip");(n._groups||n)[0][0]===null&&(n=(0,T.select)("body").append("div").attr("class","mermaidTooltip").style("opacity",0)),(0,T.select)(i).select("svg").selectAll("g.node").on("mouseover",function(){var l=(0,T.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,T.select)(this).classed("hover",!1)})};sr.push(pu);var bc="TB";const la={parseDirective:function(i,n,l){zr.parseDirective(this,i,n,l)},setAccTitle:xr,getAccTitle:Ir,getAccDescription:pi,setAccDescription:Ur,getConfig:function(){return Nt().class},addClass:jr,bindFunctions:function(i){sr.forEach(function(n){n(i)})},clear:function(){Un=[],fn={},(sr=[]).push(pu),Kt()},getClass:function(i){return fn[i]},getClasses:function(){return fn},addAnnotation:function(i,n){var l=ai(i).className;fn[l].annotations.push(n)},getRelations:function(){return Un},addRelation:function(i){g.debug("Adding relation: "+JSON.stringify(i)),jr(i.id1),jr(i.id2),i.id1=ai(i.id1).className,i.id2=ai(i.id2).className,i.relationTitle1=on.sanitizeText(i.relationTitle1.trim(),Nt()),i.relationTitle2=on.sanitizeText(i.relationTitle2.trim(),Nt()),Un.push(i)},getDirection:function(){return bc},setDirection:function(i){bc=i},addMember:du,addMembers:function(i,n){Array.isArray(n)&&(n.reverse(),n.forEach(function(l){return du(i,l)}))},cleanupLabel:function(i){return i.substring(0,1)===":"?on.sanitizeText(i.substr(1).trim(),Nt()):$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){Hh(d,n,l),fn[d].haveCallback=!0}),mc(i,"clickable")},setCssClass:mc,setLink:function(i,n,l){var d=Nt();i.split(",").forEach(function(m){var w=m;m[0].match(/\d/)&&(w=bn+w),fn[w]!==void 0&&(fn[w].link=Vn.formatUrl(n,d),d.securityLevel==="sandbox"?fn[w].linkTarget="_top":fn[w].linkTarget=typeof l=="string"?$r(l):"_blank")}),mc(i,"clickable")},getTooltip:function(i){return fn[i].tooltip},setTooltip:function(i,n){var l=Nt();i.split(",").forEach(function(d){n!==void 0&&(fn[d].tooltip=on.sanitizeText(n,l))})},lookUpDomId:Es};var gu=p(681),Ss=p.n(gu),Vh=p(8282),bi=p.n(Vh),vc=0,dl=function(i){var n=i.match(/^(\+|-|~|#)?(\w+)(~\w+~|\[\])?\s+(\w+) *(\*|\$)?$/),l=i.match(/^([+|\-|~|#])?(\w+) *\( *(.*)\) *(\*|\$)? *(\w*[~|[\]]*\s*\w*~?)$/);return n&&!l?pl(n):l?Oi(l):_c(i)},pl=function(i){var n="",l="";try{var d=i[1]?i[1].trim():"",m=i[2]?i[2].trim():"",w=i[3]?Qn(i[3].trim()):"",k=i[4]?i[4].trim():"",S=i[5]?i[5].trim():"";l=d+m+w+" "+k,n=gl(S)}catch(N){l=i}return{displayText:l,cssStyle:n}},Oi=function(i){var n="",l="";try{var d=i[1]?i[1].trim():"",m=i[2]?i[2].trim():"",w=i[3]?Qn(i[3].trim()):"",k=i[4]?i[4].trim():"";l=d+m+"("+w+")"+(i[5]?" : "+Qn(i[5]).trim():""),n=gl(k)}catch(S){l=i}return{displayText:l,cssStyle:n}},_c=function(i){var n="",l="",d="",m=i.indexOf("("),w=i.indexOf(")");if(m>1&&w>m&&w<=i.length){var k="",S="",N=i.substring(0,1);N.match(/\w/)?S=i.substring(0,m).trim():(N.match(/\+|-|~|#/)&&(k=N),S=i.substring(1,m).trim());var B=i.substring(m+1,w),q=i.substring(w+1,1);l=gl(q),n=k+S+"("+Qn(B.trim())+")",w<0&&(d=i.substring(w+2).trim())!==""&&(d=" : "+Qn(d))}else n=Qn(i);return{displayText:n,cssStyle:l}},yu=function(i,n,l,d){var m=dl(n),w=i.append("tspan").attr("x",d.padding).text(m.displayText);m.cssStyle!==""&&w.attr("style",m.cssStyle),l||w.attr("dy",d.textHeight)},gl=function(i){switch(i){case"*":return"font-style:italic;";case"$":return"text-decoration:underline;";default:return""}};const uf=function(i,n,l,d){g.debug("Rendering class ",n,l);var m,w=n.id,k={id:w,label:n.id,width:0,height:0},S=i.append("g").attr("id",d.db.lookUpDomId(w)).attr("class","classGroup");m=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 qt=m.append("tspan").text("\xAB"+_t+"\xBB");N||qt.attr("dy",l.textHeight),N=!1});var B=n.id;n.type!==void 0&&n.type!==""&&(B+="<"+n.type+">");var q=m.append("tspan").text(B).attr("class","title");N||q.attr("dy",l.textHeight);var G=m.node().getBBox().height,K=S.append("line").attr("x1",0).attr("y1",l.padding+G+l.dividerMargin/2).attr("y2",l.padding+G+l.dividerMargin/2),Q=S.append("text").attr("x",l.padding).attr("y",G+l.dividerMargin+l.textHeight).attr("fill","white").attr("class","classText");N=!0,n.members.forEach(function(_t){yu(Q,_t,N,l),N=!1});var xt=Q.node().getBBox(),Ct=S.append("line").attr("x1",0).attr("y1",l.padding+G+l.dividerMargin+xt.height).attr("y2",l.padding+G+l.dividerMargin+xt.height),Bt=S.append("text").attr("x",l.padding).attr("y",G+2*l.dividerMargin+xt.height+l.textHeight).attr("fill","white").attr("class","classText");N=!0,n.methods.forEach(function(_t){yu(Bt,_t,N,l),N=!1});var Ft=S.node().getBBox(),Lt=" ";n.cssClasses.length>0&&(Lt+=n.cssClasses.join(" "));var Et=S.insert("rect",":first-child").attr("x",0).attr("y",0).attr("width",Ft.width+2*l.padding).attr("height",Ft.height+l.padding+.5*l.dividerMargin).attr("class",Lt).node().getBBox().width;return m.node().childNodes.forEach(function(_t){_t.setAttribute("x",(Et-_t.getBBox().width)/2)}),n.tooltip&&m.insert("title").text(n.tooltip),K.attr("x2",Et),Ct.attr("x2",Et),k.width=Et,k.height=Ft.height+l.padding+.5*l.dividerMargin,k};var xc={},kc=function(i){var n=Object.entries(xc).find(function(l){return l[1].label===i});if(n)return n[0]};const hf={draw:function(i,n,l,d){var m=Nt().class;xc={},g.info("Rendering diagram "+i);var w,k=Nt().securityLevel;k==="sandbox"&&(w=(0,T.select)("#i"+n));var S,N=k==="sandbox"?(0,T.select)(w.nodes()[0].contentDocument.body):(0,T.select)("body"),B=(k==="sandbox"&&w.nodes()[0].contentDocument,N.select("[id='".concat(n,"']")));(S=B).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(bi()).Graph({multigraph:!0});q.setGraph({isMultiGraph:!0}),q.setDefaultEdgeLabel(function(){return{}});for(var G=d.db.getClasses(),K=Object.keys(G),Q=0;Q<K.length;Q++){var xt=G[K[Q]],Ct=uf(B,xt,m,d);xc[Ct.id]=Ct,q.setNode(Ct.id,Ct),g.info("Org height: "+Ct.height)}d.db.getRelations().forEach(function(_t){g.info("tjoho"+kc(_t.id1)+kc(_t.id2)+JSON.stringify(_t)),q.setEdge(kc(_t.id1),kc(_t.id2),{relation:_t},_t.title||"DEFAULT")}),Ss().layout(q),q.nodes().forEach(function(_t){_t!==void 0&&q.node(_t)!==void 0&&(g.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&&(g.debug("Edge "+_t.v+" -> "+_t.w+": "+JSON.stringify(q.edge(_t))),function(qt,ve,de,je,te){var ne=function(Sr){switch(Sr){case te.db.relationType.AGGREGATION:return"aggregation";case te.db.EXTENSION:return"extension";case te.db.COMPOSITION:return"composition";case te.db.DEPENDENCY:return"dependency";case te.db.LOLLIPOP:return"lollipop"}};ve.points=ve.points.filter(function(Sr){return!Number.isNaN(Sr.y)});var ce,le,Gt=ve.points,oe=(0,T.line)().x(function(Sr){return Sr.x}).y(function(Sr){return Sr.y}).curve(T.curveBasis),_e=qt.append("path").attr("d",oe(Gt)).attr("id","edge"+vc).attr("class","relation"),we="";je.arrowMarkerAbsolute&&(we=(we=(we=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search).replace(/\(/g,"\\(")).replace(/\)/g,"\\)")),de.relation.lineType==1&&_e.attr("class","relation dashed-line"),de.relation.type1!=="none"&&_e.attr("marker-start","url("+we+"#"+ne(de.relation.type1)+"Start)"),de.relation.type2!=="none"&&_e.attr("marker-end","url("+we+"#"+ne(de.relation.type2)+"End)");var Je,dn,Me,gn,wn=ve.points.length,Ue=Vn.calcLabelPosition(ve.points);if(ce=Ue.x,le=Ue.y,wn%2!=0&&wn>1){var nn=Vn.calcCardinalityPosition(de.relation.type1!=="none",ve.points,ve.points[0]),tn=Vn.calcCardinalityPosition(de.relation.type2!=="none",ve.points,ve.points[wn-1]);g.debug("cardinality_1_point "+JSON.stringify(nn)),g.debug("cardinality_2_point "+JSON.stringify(tn)),Je=nn.x,dn=nn.y,Me=tn.x,gn=tn.y}if(de.title!==void 0){var On=qt.append("g").attr("class","classLabel"),cr=On.append("text").attr("class","label").attr("x",ce).attr("y",le).attr("fill","red").attr("text-anchor","middle").text(de.title);window.label=cr;var Xr=cr.node().getBBox();On.insert("rect",":first-child").attr("class","box").attr("x",Xr.x-je.padding/2).attr("y",Xr.y-je.padding/2).attr("width",Xr.width+je.padding).attr("height",Xr.height+je.padding)}g.info("Rendering relation "+JSON.stringify(de)),de.relationTitle1!==void 0&&de.relationTitle1!=="none"&&qt.append("g").attr("class","cardinality").append("text").attr("class","type1").attr("x",Je).attr("y",dn).attr("fill","black").attr("font-size","6").text(de.relationTitle1),de.relationTitle2!==void 0&&de.relationTitle2!=="none"&&qt.append("g").attr("class","cardinality").append("text").attr("class","type2").attr("x",Me).attr("y",gn).attr("fill","black").attr("font-size","6").text(de.relationTitle2),vc++}(B,q.edge(_t),q.edge(_t).relation,m,d))});var Bt=B.node().getBBox(),Ft=Bt.width+40,Lt=Bt.height+40;Qi(B,0,Ft,m.useMaxWidth);var Et="".concat(Bt.x-20," ").concat(Bt.y-20," ").concat(Ft," ").concat(Lt);g.debug("viewBox ".concat(Et)),B.attr("viewBox",Et),kr(d.db,B,n)}};var Gh={extension:function(i,n,l){g.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 Xh=function(i,n,l,d){n.forEach(function(m){Gh[m](i,l,d)})};function ua(i){return ua=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},ua(i)}const Ji=function(i,n,l,d){var m=i||"";if(ua(m)==="object"&&(m=m[0]),an(Nt().flowchart.htmlLabels)){m=m.replace(/\\n|\n/g,"<br />"),g.info("vertexText"+m);var w=function(q){var G,K=(0,T.select)(document.createElementNS("http://www.w3.org/2000/svg","foreignObject")),Q=K.append("xhtml:div"),xt=q.label,Ct=q.isNode?"nodeLabel":"edgeLabel";return Q.html('<span class="'+Ct+'" '+(q.labelStyle?'style="'+q.labelStyle+'"':"")+">"+xt+"</span>"),(G=q.labelStyle)&&Q.attr("style",G),Q.style("display","inline-block"),Q.style("white-space","nowrap"),Q.attr("xmlns","http://www.w3.org/1999/xhtml"),K.node()}({isNode:d,label:ur(m).replace(/fa[lrsb]?:fa-[\w-]+/g,function(q){return"<i class='".concat(q.replace(":"," "),"'></i>")}),labelStyle:n.replace("fill:","color:")});return w}var k=document.createElementNS("http://www.w3.org/2000/svg","text");k.setAttribute("style",n.replace("color:","fill:"));var S=[];S=typeof m=="string"?m.split(/\\n|\n|<br\s*\/?>/gi):Array.isArray(m)?m:[];for(var N=0;N<S.length;N++){var B=document.createElementNS("http://www.w3.org/2000/svg","tspan");B.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),B.setAttribute("dy","1em"),B.setAttribute("x","0"),l?B.setAttribute("class","title-row"):B.setAttribute("class","row"),B.textContent=S[N].trim(),k.appendChild(B)}return k};var Bi=function(i,n,l,d){var m;m=l||"node default";var w=i.insert("g").attr("class",m).attr("id",n.domId||n.id),k=w.insert("g").attr("class","label").attr("style",n.labelStyle),S=typeof n.labelText=="string"?n.labelText:n.labelText[0],N=k.node().appendChild(Ji(hr(ur(S),Nt()),n.labelStyle,!1,d)),B=N.getBBox();if(an(Nt().flowchart.htmlLabels)){var q=N.children[0],G=(0,T.select)(N);B=q.getBoundingClientRect(),G.attr("width",B.width),G.attr("height",B.height)}var K=n.padding/2;return k.attr("transform","translate("+-B.width/2+", "+-B.height/2+")"),{shapeSvg:w,bbox:B,halfPadding:K,label:k}},ni=function(i,n){var l=n.node().getBBox();i.width=l.width,i.height=l.height};function Pa(i,n,l,d){return i.insert("polygon",":first-child").attr("points",d.map(function(m){return m.x+","+m.y}).join(" ")).attr("class","label-container").attr("transform","translate("+-n/2+","+l/2+")")}var Jn={},Ca={},ha={},is=function(i,n){return g.trace("In isDecendant",n," ",i," = ",Ca[n].indexOf(i)>=0),Ca[n].indexOf(i)>=0},wc=function i(n,l,d,m){g.warn("Copying children of ",n,"root",m,"data",l.node(n),m);var w=l.children(n)||[];n!==m&&w.push(n),g.warn("Copying (nodes) clusterId",n,"nodes",w),w.forEach(function(k){if(l.children(k).length>0)i(k,l,d,m);else{var S=l.node(k);g.info("cp ",k," to ",m," with parent ",n),d.setNode(k,S),m!==l.parent(k)&&(g.warn("Setting parent",k,l.parent(k)),d.setParent(k,l.parent(k))),n!==m&&k!==n?(g.debug("Setting parent",k,n),d.setParent(k,n)):(g.info("In copy ",n,"root",m,"data",l.node(n),m),g.debug("Not Setting parent for node=",k,"cluster!==rootId",n!==m,"node!==clusterId",k!==n));var N=l.edges(k);g.debug("Copying Edges",N),N.forEach(function(B){g.info("Edge",B);var q=l.edge(B.v,B.w,B.name);g.info("Edge data",q,m);try{(function(G,K){return g.info("Decendants of ",K," is ",Ca[K]),g.info("Edge is ",G),G.v!==K&&G.w!==K&&(Ca[K]?(g.info("Here "),Ca[K].indexOf(G.v)>=0||!!is(G.v,K)||!!is(G.w,K)||Ca[K].indexOf(G.w)>=0):(g.debug("Tilt, ",K,",not in decendants"),!1))})(B,m)?(g.info("Copying as ",B.v,B.w,q,B.name),d.setEdge(B.v,B.w,q,B.name),g.info("newGraph edges ",d.edges(),d.edge(d.edges()[0]))):g.info("Skipping copy of edge ",B.v,"-->",B.w," rootId: ",m," clusterId:",n)}catch(G){g.error(G)}})}g.debug("Removing node",k),l.removeNode(k)})},Cs=function i(n,l){for(var d=l.children(n),m=[].concat(d),w=0;w<d.length;w++)ha[d[w]]=n,m=m.concat(i(d[w],l));return m},jo=function i(n,l){g.trace("Searching",n);var d=l.children(n);if(g.trace("Searching children of id ",n,d),d.length<1)return g.trace("This is a valid node",n),n;for(var m=0;m<d.length;m++){var w=i(d[m],l);if(w)return g.trace("Found replacement for",n," => ",w),w}},zo=function(i){return Jn[i]&&Jn[i].externalConnections&&Jn[i]?Jn[i].id:i},yl=function(i,n){!i||n>10?g.debug("Opting out, no graph "):(g.debug("Opting in, graph "),i.nodes().forEach(function(l){i.children(l).length>0&&(g.warn("Cluster identified",l," Replacement id in edges: ",jo(l,i)),Ca[l]=Cs(l,i),Jn[l]={id:jo(l,i),clusterData:i.node(l)})}),i.nodes().forEach(function(l){var d=i.children(l),m=i.edges();d.length>0?(g.debug("Cluster identified",l,Ca),m.forEach(function(w){w.v!==l&&w.w!==l&&is(w.v,l)^is(w.w,l)&&(g.warn("Edge: ",w," leaves cluster ",l),g.warn("Decendants of XXX ",l,": ",Ca[l]),Jn[l].externalConnections=!0)})):g.debug("Not a cluster ",l,Ca)}),i.edges().forEach(function(l){var d=i.edge(l);g.warn("Edge "+l.v+" -> "+l.w+": "+JSON.stringify(l)),g.warn("Edge "+l.v+" -> "+l.w+": "+JSON.stringify(i.edge(l)));var m=l.v,w=l.w;if(g.warn("Fix XXX",Jn,"ids:",l.v,l.w,"Translateing: ",Jn[l.v]," --- ",Jn[l.w]),Jn[l.v]&&Jn[l.w]&&Jn[l.v]===Jn[l.w]){g.warn("Fixing and trixing link to self - removing XXX",l.v,l.w,l.name),g.warn("Fixing and trixing - removing XXX",l.v,l.w,l.name),m=zo(l.v),w=zo(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(m,k,S,l.name+"-cyclic-special"),i.setEdge(k,w,N,l.name+"-cyclic-special")}else(Jn[l.v]||Jn[l.w])&&(g.warn("Fixing and trixing - removing XXX",l.v,l.w,l.name),m=zo(l.v),w=zo(l.w),i.removeEdge(l.v,l.w,l.name),m!==l.v&&(d.fromCluster=l.v),w!==l.w&&(d.toCluster=l.w),g.warn("Fix Replacing with XXX",m,w,l.name),i.setEdge(m,w,d,l.name))}),g.warn("Adjusted Graph",bi().json.write(i)),as(i,0),g.trace(Jn))},as=function i(n,l){if(g.warn("extractor - ",l,bi().json.write(n),n.children("D")),l>10)g.error("Bailing out");else{for(var d=n.nodes(),m=!1,w=0;w<d.length;w++){var k=d[w],S=n.children(k);m=m||S.length>0}if(m){g.debug("Nodes = ",d,l);for(var N=0;N<d.length;N++){var B=d[N];if(g.debug("Extracting node",B,Jn,Jn[B]&&!Jn[B].externalConnections,!n.parent(B),n.node(B),n.children("D")," Depth ",l),Jn[B])if(!Jn[B].externalConnections&&n.children(B)&&n.children(B).length>0){g.warn("Cluster without external connections, without a parent and with children",B,l);var q=n.graph().rankdir==="TB"?"LR":"TB";Jn[B]&&Jn[B].clusterData&&Jn[B].clusterData.dir&&(q=Jn[B].clusterData.dir,g.warn("Fixing dir",Jn[B].clusterData.dir,q));var G=new(bi()).Graph({multigraph:!0,compound:!0}).setGraph({rankdir:q,nodesep:50,ranksep:50,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});g.warn("Old graph before copy",bi().json.write(n)),wc(B,n,G,B),n.setNode(B,{clusterNode:!0,id:B,clusterData:Jn[B].clusterData,labelText:Jn[B].labelText,graph:G}),g.warn("New graph after copy node: (",B,")",bi().json.write(G)),g.debug("Old graph after copy",bi().json.write(n))}else g.warn("Cluster ** ",B," **not meeting the criteria !externalConnections:",!Jn[B].externalConnections," no parent: ",!n.parent(B)," children ",n.children(B)&&n.children(B).length>0,n.children("D"),l),g.debug(Jn);else g.debug("Not a cluster",B,l)}d=n.nodes(),g.warn("New list of nodes",d);for(var K=0;K<d.length;K++){var Q=d[K],xt=n.node(Q);g.warn(" Now next level",Q,xt),xt.clusterNode&&i(xt.graph,l+1)}}else g.debug("Done, no node has children",n.nodes())}},ml=function i(n,l){if(l.length===0)return[];var d=Object.assign(l);return l.forEach(function(m){var w=n.children(m),k=i(n,w);d=d.concat(k)}),d},Tc=function(i){return ml(i,i.children())},Zh=p(3841);const Ec=function(i,n,l,d){var m=i.x,w=i.y,k=m-d.x,S=w-d.y,N=Math.sqrt(n*n*S*S+l*l*k*k),B=Math.abs(n*l*k/N);d.x<m&&(B=-B);var q=Math.abs(n*l*S/N);return d.y<w&&(q=-q),{x:m+B,y:w+q}};function Qh(i,n){return i*n>0}const Sc=function(i,n,l,d){var m,w,k,S,N,B,q,G,K,Q,xt,Ct,Bt;if(m=n.y-i.y,k=i.x-n.x,N=n.x*i.y-i.x*n.y,K=m*l.x+k*l.y+N,Q=m*d.x+k*d.y+N,!(K!==0&&Q!==0&&Qh(K,Q)||(w=d.y-l.y,S=l.x-d.x,B=d.x*l.y-l.x*d.y,q=w*i.x+S*i.y+B,G=w*n.x+S*n.y+B,q!==0&&G!==0&&Qh(q,G)||(xt=m*S-w*k)==0)))return Ct=Math.abs(xt/2),{x:(Bt=k*B-S*N)<0?(Bt-Ct)/xt:(Bt+Ct)/xt,y:(Bt=w*N-m*B)<0?(Bt-Ct)/xt:(Bt+Ct)/xt}},Yo=function(i,n){var l,d,m=i.x,w=i.y,k=n.x-m,S=n.y-w,N=i.width/2,B=i.height/2;return Math.abs(S)*N>Math.abs(k)*B?(S<0&&(B=-B),l=S===0?0:B*k/S,d=B):(k<0&&(N=-N),l=N,d=k===0?0:N*S/k),{x:m+l,y:w+d}},As=(p.n(Zh)(),function(i,n,l){return Ec(i,n,n,l)}),Ha=function(i,n,l){var d=i.x,m=i.y,w=[],k=Number.POSITIVE_INFINITY,S=Number.POSITIVE_INFINITY;typeof n.forEach=="function"?n.forEach(function(xt){k=Math.min(k,xt.x),S=Math.min(S,xt.y)}):(k=Math.min(k,n.x),S=Math.min(S,n.y));for(var N=d-i.width/2-k,B=m-i.height/2-S,q=0;q<n.length;q++){var G=n[q],K=n[q<n.length-1?q+1:0],Q=Sc(i,l,{x:N+G.x,y:B+G.y},{x:N+K.x,y:B+K.y});Q&&w.push(Q)}return w.length?(w.length>1&&w.sort(function(xt,Ct){var Bt=xt.x-l.x,Ft=xt.y-l.y,Lt=Math.sqrt(Bt*Bt+Ft*Ft),Et=Ct.x-l.x,_t=Ct.y-l.y,qt=Math.sqrt(Et*Et+_t*_t);return Lt<qt?-1:Lt===qt?0:1}),w[0]):i},Uo=Yo;function Ms(i){return Ms=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},Ms(i)}function bl(i,n,l,d){var m=[],w=function(S){m.push(S),m.push(0)},k=function(S){m.push(0),m.push(S)};n.includes("t")?(g.debug("add top border"),w(l)):k(l),n.includes("r")?(g.debug("add right border"),w(d)):k(d),n.includes("b")?(g.debug("add bottom border"),w(l)):k(l),n.includes("l")?(g.debug("add left border"),w(d)):k(d),i.attr("stroke-dasharray",m.join(" "))}var Kh=function(i,n,l){var d=i.insert("g").attr("class","node default").attr("id",n.domId||n.id),m=70,w=10;l==="LR"&&(m=10,w=70);var k=d.append("rect").attr("x",-1*m/2).attr("y",-1*w/2).attr("width",m).attr("height",w).attr("class","fork-join");return ni(n,k),n.height=n.height+n.padding/2,n.width=n.width+n.padding/2,n.intersect=function(S){return Uo(n,S)},d},Jh={question:function(i,n){var l=Bi(i,n,void 0,!0),d=l.shapeSvg,m=l.bbox,w=m.width+n.padding+(m.height+n.padding),k=[{x:w/2,y:0},{x:w,y:-w/2},{x:w/2,y:-w},{x:0,y:-w/2}];g.info("Question main (Circle)");var S=Pa(d,w,w,k);return S.attr("style",n.style),ni(n,S),n.intersect=function(N){return g.warn("Intersect called"),Ha(n,k,N)},d},rect:function(i,n){var l=Bi(i,n,"node "+n.classes,!0),d=l.shapeSvg,m=l.bbox,w=l.halfPadding;g.trace("Classes = ",n.classes);var k=d.insert("rect",":first-child"),S=m.width+n.padding,N=m.height+n.padding;if(k.attr("class","basic label-container").attr("style",n.style).attr("rx",n.rx).attr("ry",n.ry).attr("x",-m.width/2-w).attr("y",-m.height/2-w).attr("width",S).attr("height",N),n.props){var B=new Set(Object.keys(n.props));n.props.borders&&(bl(k,n.props.borders,S,N),B.delete("borders")),B.forEach(function(q){g.warn("Unknown node property ".concat(q))})}return ni(n,k),n.intersect=function(q){return Uo(n,q)},d},labelRect:function(i,n){var l=Bi(i,n,"label",!0),d=l.shapeSvg;l.bbox,l.halfPadding,g.trace("Classes = ",n.classes);var m=d.insert("rect",":first-child");if(m.attr("width",0).attr("height",0),d.attr("class","label edgeLabel"),n.props){var w=new Set(Object.keys(n.props));n.props.borders&&(bl(m,n.props.borders,0,0),w.delete("borders")),w.forEach(function(k){g.warn("Unknown node property ".concat(k))})}return ni(n,m),n.intersect=function(k){return Uo(n,k)},d},rectWithTitle:function(i,n){var l;l=n.classes?"node "+n.classes:"node default";var d,m=i.insert("g").attr("class",l).attr("id",n.domId||n.id),w=m.insert("rect",":first-child"),k=m.insert("line"),S=m.insert("g").attr("class","label"),N=n.labelText.flat?n.labelText.flat():n.labelText;d=Ms(N)==="object"?N[0]:N,g.info("Label text abc79",d,N,Ms(N)==="object");var B=S.node().appendChild(Ji(d,n.labelStyle,!0,!0)),q={width:0,height:0};if(an(Nt().flowchart.htmlLabels)){var G=B.children[0],K=(0,T.select)(B);q=G.getBoundingClientRect(),K.attr("width",q.width),K.attr("height",q.height)}g.info("Text 2",N);var Q=N.slice(1,N.length),xt=B.getBBox(),Ct=S.node().appendChild(Ji(Q.join?Q.join("<br/>"):Q,n.labelStyle,!0,!0));if(an(Nt().flowchart.htmlLabels)){var Bt=Ct.children[0],Ft=(0,T.select)(Ct);q=Bt.getBoundingClientRect(),Ft.attr("width",q.width),Ft.attr("height",q.height)}var Lt=n.padding/2;return(0,T.select)(Ct).attr("transform","translate( "+(q.width>xt.width?0:(xt.width-q.width)/2)+", "+(xt.height+Lt+5)+")"),(0,T.select)(B).attr("transform","translate( "+(q.width<xt.width?0:-(xt.width-q.width)/2)+", 0)"),q=S.node().getBBox(),S.attr("transform","translate("+-q.width/2+", "+(-q.height/2-Lt+3)+")"),w.attr("class","outer title-state").attr("x",-q.width/2-Lt).attr("y",-q.height/2-Lt).attr("width",q.width+n.padding).attr("height",q.height+n.padding),k.attr("class","divider").attr("x1",-q.width/2-Lt).attr("x2",q.width/2+Lt).attr("y1",-q.height/2-Lt+xt.height+Lt).attr("y2",-q.height/2-Lt+xt.height+Lt),ni(n,w),n.intersect=function(Et){return Uo(n,Et)},m},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 As(n,14,d)},l},circle:function(i,n){var l=Bi(i,n,void 0,!0),d=l.shapeSvg,m=l.bbox,w=l.halfPadding,k=d.insert("circle",":first-child");return k.attr("style",n.style).attr("rx",n.rx).attr("ry",n.ry).attr("r",m.width/2+w).attr("width",m.width+n.padding).attr("height",m.height+n.padding),g.info("Circle main"),ni(n,k),n.intersect=function(S){return g.info("Circle intersect",n,m.width/2+w,S),As(n,m.width/2+w,S)},d},doublecircle:function(i,n){var l=Bi(i,n,void 0,!0),d=l.shapeSvg,m=l.bbox,w=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",m.width/2+w+5).attr("width",m.width+n.padding+10).attr("height",m.height+n.padding+10),N.attr("style",n.style).attr("rx",n.rx).attr("ry",n.ry).attr("r",m.width/2+w).attr("width",m.width+n.padding).attr("height",m.height+n.padding),g.info("DoubleCircle main"),ni(n,S),n.intersect=function(B){return g.info("DoubleCircle intersect",n,m.width/2+w+5,B),As(n,m.width/2+w+5,B)},d},stadium:function(i,n){var l=Bi(i,n,void 0,!0),d=l.shapeSvg,m=l.bbox,w=m.height+n.padding,k=m.width+w/4+n.padding,S=d.insert("rect",":first-child").attr("style",n.style).attr("rx",w/2).attr("ry",w/2).attr("x",-k/2).attr("y",-w/2).attr("width",k).attr("height",w);return ni(n,S),n.intersect=function(N){return Uo(n,N)},d},hexagon:function(i,n){var l=Bi(i,n,void 0,!0),d=l.shapeSvg,m=l.bbox,w=m.height+n.padding,k=w/4,S=m.width+2*k+n.padding,N=[{x:k,y:0},{x:S-k,y:0},{x:S,y:-w/2},{x:S-k,y:-w},{x:k,y:-w},{x:0,y:-w/2}],B=Pa(d,S,w,N);return B.attr("style",n.style),ni(n,B),n.intersect=function(q){return Ha(n,N,q)},d},rect_left_inv_arrow:function(i,n){var l=Bi(i,n,void 0,!0),d=l.shapeSvg,m=l.bbox,w=m.width+n.padding,k=m.height+n.padding,S=[{x:-k/2,y:0},{x:w,y:0},{x:w,y:-k},{x:-k/2,y:-k},{x:0,y:-k/2}];return Pa(d,w,k,S).attr("style",n.style),n.width=w+k,n.height=k,n.intersect=function(N){return Ha(n,S,N)},d},lean_right:function(i,n){var l=Bi(i,n,void 0,!0),d=l.shapeSvg,m=l.bbox,w=m.width+n.padding,k=m.height+n.padding,S=[{x:-2*k/6,y:0},{x:w-k/6,y:0},{x:w+2*k/6,y:-k},{x:k/6,y:-k}],N=Pa(d,w,k,S);return N.attr("style",n.style),ni(n,N),n.intersect=function(B){return Ha(n,S,B)},d},lean_left:function(i,n){var l=Bi(i,n,void 0,!0),d=l.shapeSvg,m=l.bbox,w=m.width+n.padding,k=m.height+n.padding,S=[{x:2*k/6,y:0},{x:w+k/6,y:0},{x:w-2*k/6,y:-k},{x:-k/6,y:-k}],N=Pa(d,w,k,S);return N.attr("style",n.style),ni(n,N),n.intersect=function(B){return Ha(n,S,B)},d},trapezoid:function(i,n){var l=Bi(i,n,void 0,!0),d=l.shapeSvg,m=l.bbox,w=m.width+n.padding,k=m.height+n.padding,S=[{x:-2*k/6,y:0},{x:w+2*k/6,y:0},{x:w-k/6,y:-k},{x:k/6,y:-k}],N=Pa(d,w,k,S);return N.attr("style",n.style),ni(n,N),n.intersect=function(B){return Ha(n,S,B)},d},inv_trapezoid:function(i,n){var l=Bi(i,n,void 0,!0),d=l.shapeSvg,m=l.bbox,w=m.width+n.padding,k=m.height+n.padding,S=[{x:k/6,y:0},{x:w-k/6,y:0},{x:w+2*k/6,y:-k},{x:-2*k/6,y:-k}],N=Pa(d,w,k,S);return N.attr("style",n.style),ni(n,N),n.intersect=function(B){return Ha(n,S,B)},d},rect_right_inv_arrow:function(i,n){var l=Bi(i,n,void 0,!0),d=l.shapeSvg,m=l.bbox,w=m.width+n.padding,k=m.height+n.padding,S=[{x:0,y:0},{x:w+k/2,y:0},{x:w,y:-k/2},{x:w+k/2,y:-k},{x:0,y:-k}],N=Pa(d,w,k,S);return N.attr("style",n.style),ni(n,N),n.intersect=function(B){return Ha(n,S,B)},d},cylinder:function(i,n){var l=Bi(i,n,void 0,!0),d=l.shapeSvg,m=l.bbox,w=m.width+n.padding,k=w/2,S=k/(2.5+w/50),N=m.height+S+n.padding,B="M 0,"+S+" a "+k+","+S+" 0,0,0 "+w+" 0 a "+k+","+S+" 0,0,0 "+-w+" 0 l 0,"+N+" a "+k+","+S+" 0,0,0 "+w+" 0 l 0,"+-N,q=d.attr("label-offset-y",S).insert("path",":first-child").attr("style",n.style).attr("d",B).attr("transform","translate("+-w/2+","+-(N/2+S)+")");return ni(n,q),n.intersect=function(G){var K=Uo(n,G),Q=K.x-n.x;if(k!=0&&(Math.abs(Q)<n.width/2||Math.abs(Q)==n.width/2&&Math.abs(K.y-n.y)>n.height/2-S)){var xt=S*S*(1-Q*Q/(k*k));xt!=0&&(xt=Math.sqrt(xt)),xt=S-xt,G.y-n.y>0&&(xt=-xt),K.y+=xt}return K},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),ni(n,d),n.intersect=function(m){return As(n,7,m)},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"),m=l.insert("circle",":first-child");return m.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),ni(n,m),n.intersect=function(w){return As(n,7,w)},l},note:function(i,n){var l=Bi(i,n,"node "+n.classes,!0),d=l.shapeSvg,m=l.bbox,w=l.halfPadding;g.info("Classes = ",n.classes);var k=d.insert("rect",":first-child");return k.attr("rx",n.rx).attr("ry",n.ry).attr("x",-m.width/2-w).attr("y",-m.height/2-w).attr("width",m.width+n.padding).attr("height",m.height+n.padding),ni(n,k),n.intersect=function(S){return Uo(n,S)},d},subroutine:function(i,n){var l=Bi(i,n,void 0,!0),d=l.shapeSvg,m=l.bbox,w=m.width+n.padding,k=m.height+n.padding,S=[{x:0,y:0},{x:w,y:0},{x:w,y:-k},{x:0,y:-k},{x:0,y:0},{x:-8,y:0},{x:w+8,y:0},{x:w+8,y:-k},{x:-8,y:-k},{x:-8,y:0}],N=Pa(d,w,k,S);return N.attr("style",n.style),ni(n,N),n.intersect=function(B){return Ha(n,S,B)},d},fork:Kh,join:Kh,class_box:function(i,n){var l,d=n.padding/2;l=n.classes?"node "+n.classes:"node default";var m=i.insert("g").attr("class",l).attr("id",n.domId||n.id),w=m.insert("rect",":first-child"),k=m.insert("line"),S=m.insert("line"),N=0,B=4,q=m.insert("g").attr("class","label"),G=0,K=n.classData.annotations&&n.classData.annotations[0],Q=n.classData.annotations[0]?"\xAB"+n.classData.annotations[0]+"\xBB":"",xt=q.node().appendChild(Ji(Q,n.labelStyle,!0,!0)),Ct=xt.getBBox();if(an(Nt().flowchart.htmlLabels)){var Bt=xt.children[0],Ft=(0,T.select)(xt);Ct=Bt.getBoundingClientRect(),Ft.attr("width",Ct.width),Ft.attr("height",Ct.height)}n.classData.annotations[0]&&(B+=Ct.height+4,N+=Ct.width);var Lt=n.classData.id;n.classData.type!==void 0&&n.classData.type!==""&&(Nt().flowchart.htmlLabels?Lt+="&lt;"+n.classData.type+"&gt;":Lt+="<"+n.classData.type+">");var Et=q.node().appendChild(Ji(Lt,n.labelStyle,!0,!0));(0,T.select)(Et).attr("class","classTitle");var _t=Et.getBBox();if(an(Nt().flowchart.htmlLabels)){var qt=Et.children[0],ve=(0,T.select)(Et);_t=qt.getBoundingClientRect(),ve.attr("width",_t.width),ve.attr("height",_t.height)}B+=_t.height+4,_t.width>N&&(N=_t.width);var de=[];n.classData.members.forEach(function(ce){var le=dl(ce),Gt=le.displayText;Nt().flowchart.htmlLabels&&(Gt=Gt.replace(/</g,"&lt;").replace(/>/g,"&gt;"));var oe=q.node().appendChild(Ji(Gt,le.cssStyle?le.cssStyle:n.labelStyle,!0,!0)),_e=oe.getBBox();if(an(Nt().flowchart.htmlLabels)){var we=oe.children[0],Je=(0,T.select)(oe);_e=we.getBoundingClientRect(),Je.attr("width",_e.width),Je.attr("height",_e.height)}_e.width>N&&(N=_e.width),B+=_e.height+4,de.push(oe)}),B+=8;var je=[];if(n.classData.methods.forEach(function(ce){var le=dl(ce),Gt=le.displayText;Nt().flowchart.htmlLabels&&(Gt=Gt.replace(/</g,"&lt;").replace(/>/g,"&gt;"));var oe=q.node().appendChild(Ji(Gt,le.cssStyle?le.cssStyle:n.labelStyle,!0,!0)),_e=oe.getBBox();if(an(Nt().flowchart.htmlLabels)){var we=oe.children[0],Je=(0,T.select)(oe);_e=we.getBoundingClientRect(),Je.attr("width",_e.width),Je.attr("height",_e.height)}_e.width>N&&(N=_e.width),B+=_e.height+4,je.push(oe)}),B+=8,K){var te=(N-Ct.width)/2;(0,T.select)(xt).attr("transform","translate( "+(-1*N/2+te)+", "+-1*B/2+")"),G=Ct.height+4}var ne=(N-_t.width)/2;return(0,T.select)(Et).attr("transform","translate( "+(-1*N/2+ne)+", "+(-1*B/2+G)+")"),G+=_t.height+4,k.attr("class","divider").attr("x1",-N/2-d).attr("x2",N/2+d).attr("y1",-B/2-d+8+G).attr("y2",-B/2-d+8+G),G+=8,de.forEach(function(ce){(0,T.select)(ce).attr("transform","translate( "+-N/2+", "+(-1*B/2+G+4)+")"),G+=_t.height+4}),G+=8,S.attr("class","divider").attr("x1",-N/2-d).attr("x2",N/2+d).attr("y1",-B/2-d+8+G).attr("y2",-B/2-d+8+G),G+=8,je.forEach(function(ce){(0,T.select)(ce).attr("transform","translate( "+-N/2+", "+(-1*B/2+G)+")"),G+=_t.height+4}),w.attr("class","outer title-state").attr("x",-N/2-d).attr("y",-B/2-d).attr("width",N+n.padding).attr("height",B+n.padding),ni(n,w),n.intersect=function(ce){return Uo(n,ce)},m}},ho={},vl=function(i){var n=ho[i.id];g.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},Va={rect:function(i,n){g.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"),m=l.insert("g").attr("class","cluster-label"),w=m.node().appendChild(Ji(n.labelText,n.labelStyle,void 0,!0)),k=w.getBBox();if(an(Nt().flowchart.htmlLabels)){var S=w.children[0],N=(0,T.select)(w);k=S.getBoundingClientRect(),N.attr("width",k.width),N.attr("height",k.height)}var B=0*n.padding,q=B/2,G=n.width<=k.width+B?k.width+B:n.width;n.width<=k.width+B?n.diff=(k.width-n.width)/2-n.padding/2:n.diff=-n.padding/2,g.trace("Data ",n,JSON.stringify(n)),d.attr("style",n.style).attr("rx",n.rx).attr("ry",n.ry).attr("x",n.x-G/2).attr("y",n.y-n.height/2-q).attr("width",G).attr("height",n.height+B),m.attr("transform","translate("+(n.x-k.width/2)+", "+(n.y-n.height/2+n.padding/3)+")");var K=d.node().getBBox();return n.width=K.width,n.height=K.height,n.intersect=function(Q){return Yo(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"),m=l.insert("g").attr("class","cluster-label"),w=l.append("rect"),k=m.node().appendChild(Ji(n.labelText,n.labelStyle,void 0,!0)),S=k.getBBox();if(an(Nt().flowchart.htmlLabels)){var N=k.children[0],B=(0,T.select)(k);S=N.getBoundingClientRect(),B.attr("width",S.width),B.attr("height",S.height)}S=k.getBBox();var q=0*n.padding,G=q/2,K=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-K/2-G).attr("y",n.y-n.height/2-G).attr("width",K+q).attr("height",n.height+q),w.attr("class","inner").attr("x",n.x-K/2-G).attr("y",n.y-n.height/2-G+S.height-1).attr("width",K+q).attr("height",n.height+q-S.height-3),m.attr("transform","translate("+(n.x-S.width/2)+", "+(n.y-n.height/2-n.padding/3+(an(Nt().flowchart.htmlLabels)?5:3))+")");var Q=d.node().getBBox();return n.height=Q.height,n.intersect=function(xt){return Yo(n,xt)},l},noteGroup:function(i,n){var l=i.insert("g").attr("class","note-cluster").attr("id",n.id),d=l.insert("rect",":first-child"),m=0*n.padding,w=m/2;d.attr("rx",n.rx).attr("ry",n.ry).attr("x",n.x-n.width/2-w).attr("y",n.y-n.height/2-w).attr("width",n.width+m).attr("height",n.height+m).attr("fill","none");var k=d.node().getBBox();return n.width=k.width,n.height=k.height,n.intersect=function(S){return Yo(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"),m=0*n.padding,w=m/2;d.attr("class","divider").attr("x",n.x-n.width/2-w).attr("y",n.y-n.height/2).attr("width",n.width+m).attr("height",n.height+m);var k=d.node().getBBox();return n.width=k.width,n.height=k.height,n.diff=-n.padding/2,n.intersect=function(S){return Yo(n,S)},l}},Aa={},Ga={},vi={},t1=function(i,n){var l=Ji(n.label,n.labelStyle),d=i.insert("g").attr("class","edgeLabel"),m=d.insert("g").attr("class","label");m.node().appendChild(l);var w,k=l.getBBox();if(an(Nt().flowchart.htmlLabels)){var S=l.children[0],N=(0,T.select)(l);k=S.getBoundingClientRect(),N.attr("width",k.width),N.attr("height",k.height)}if(m.attr("transform","translate("+-k.width/2+", "+-k.height/2+")"),Ga[n.id]=d,n.width=k.width,n.height=k.height,n.startLabelLeft){var B=Ji(n.startLabelLeft,n.labelStyle),q=i.insert("g").attr("class","edgeTerminals"),G=q.insert("g").attr("class","inner");w=G.node().appendChild(B);var K=B.getBBox();G.attr("transform","translate("+-K.width/2+", "+-K.height/2+")"),vi[n.id]||(vi[n.id]={}),vi[n.id].startLeft=q,Ds(w,n.startLabelLeft)}if(n.startLabelRight){var Q=Ji(n.startLabelRight,n.labelStyle),xt=i.insert("g").attr("class","edgeTerminals"),Ct=xt.insert("g").attr("class","inner");w=xt.node().appendChild(Q),Ct.node().appendChild(Q);var Bt=Q.getBBox();Ct.attr("transform","translate("+-Bt.width/2+", "+-Bt.height/2+")"),vi[n.id]||(vi[n.id]={}),vi[n.id].startRight=xt,Ds(w,n.startLabelRight)}if(n.endLabelLeft){var Ft=Ji(n.endLabelLeft,n.labelStyle),Lt=i.insert("g").attr("class","edgeTerminals"),Et=Lt.insert("g").attr("class","inner");w=Et.node().appendChild(Ft);var _t=Ft.getBBox();Et.attr("transform","translate("+-_t.width/2+", "+-_t.height/2+")"),Lt.node().appendChild(Ft),vi[n.id]||(vi[n.id]={}),vi[n.id].endLeft=Lt,Ds(w,n.endLabelLeft)}if(n.endLabelRight){var qt=Ji(n.endLabelRight,n.labelStyle),ve=i.insert("g").attr("class","edgeTerminals"),de=ve.insert("g").attr("class","inner");w=de.node().appendChild(qt);var je=qt.getBBox();de.attr("transform","translate("+-je.width/2+", "+-je.height/2+")"),ve.node().appendChild(qt),vi[n.id]||(vi[n.id]={}),vi[n.id].endRight=ve,Ds(w,n.endLabelRight)}};function Ds(i,n){Nt().flowchart.htmlLabels&&i&&(i.style.width=9*n.length+"px",i.style.height="12px")}var e1=function(i,n){g.info("Moving label abc78 ",i.id,i.label,Ga[i.id]);var l=n.updatedPath?n.updatedPath:n.originalPath;if(i.label){var d=Ga[i.id],m=i.x,w=i.y;if(l){var k=Vn.calcLabelPosition(l);g.info("Moving label from (",m,",",w,") to (",k.x,",",k.y,") abc78")}d.attr("transform","translate("+m+", "+w+")")}if(i.startLabelLeft){var S=vi[i.id].startLeft,N=i.x,B=i.y;if(l){var q=Vn.calcTerminalLabelPosition(i.arrowTypeStart?10:0,"start_left",l);N=q.x,B=q.y}S.attr("transform","translate("+N+", "+B+")")}if(i.startLabelRight){var G=vi[i.id].startRight,K=i.x,Q=i.y;if(l){var xt=Vn.calcTerminalLabelPosition(i.arrowTypeStart?10:0,"start_right",l);K=xt.x,Q=xt.y}G.attr("transform","translate("+K+", "+Q+")")}if(i.endLabelLeft){var Ct=vi[i.id].endLeft,Bt=i.x,Ft=i.y;if(l){var Lt=Vn.calcTerminalLabelPosition(i.arrowTypeEnd?10:0,"end_left",l);Bt=Lt.x,Ft=Lt.y}Ct.attr("transform","translate("+Bt+", "+Ft+")")}if(i.endLabelRight){var Et=vi[i.id].endRight,_t=i.x,qt=i.y;if(l){var ve=Vn.calcTerminalLabelPosition(i.arrowTypeEnd?10:0,"end_right",l);_t=ve.x,qt=ve.y}Et.attr("transform","translate("+_t+", "+qt+")")}},mu=function(i,n){g.warn("abc88 cutPathAtIntersect",i,n);var l=[],d=i[0],m=!1;return i.forEach(function(w){if(g.info("abc88 checking point",w,n),function(N,B){var q=N.x,G=N.y,K=Math.abs(B.x-q),Q=Math.abs(B.y-G),xt=N.width/2,Ct=N.height/2;return K>=xt||Q>=Ct}(n,w)||m)g.warn("abc88 outside",w,d),d=w,m||l.push(w);else{var k=function(N,B,q){g.warn(`intersection calc abc89:
outsidePoint: `.concat(JSON.stringify(B),`
insidePoint : `).concat(JSON.stringify(q),`
node : x:`).concat(N.x," y:").concat(N.y," w:").concat(N.width," h:").concat(N.height));var G=N.x,K=N.y,Q=Math.abs(G-q.x),xt=N.width/2,Ct=q.x<B.x?xt-Q:xt+Q,Bt=N.height/2,Ft=Math.abs(B.y-q.y),Lt=Math.abs(B.x-q.x);if(Math.abs(K-B.y)*xt>Math.abs(G-B.x)*Bt){var Et=q.y<B.y?B.y-Bt-K:K-Bt-B.y;Ct=Lt*Et/Ft;var _t={x:q.x<B.x?q.x+Ct:q.x-Lt+Ct,y:q.y<B.y?q.y+Ft-Et:q.y-Ft+Et};return Ct===0&&(_t.x=B.x,_t.y=B.y),Lt===0&&(_t.x=B.x),Ft===0&&(_t.y=B.y),g.warn("abc89 topp/bott calc, Q ".concat(Ft,", q ").concat(Et,", R ").concat(Lt,", r ").concat(Ct),_t),_t}var qt=Ft*(Ct=q.x<B.x?B.x-xt-G:G-xt-B.x)/Lt,ve=q.x<B.x?q.x+Lt-Ct:q.x-Lt+Ct,de=q.y<B.y?q.y+qt:q.y-qt;return g.warn("sides calc abc89, Q ".concat(Ft,", q ").concat(qt,", R ").concat(Lt,", r ").concat(Ct),{_x:ve,_y:de}),Ct===0&&(ve=B.x,de=B.y),Lt===0&&(ve=B.x),Ft===0&&(de=B.y),{x:ve,y:de}}(n,d,w);g.warn("abc88 inside",w,d,k),g.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})?g.warn("abc88 no intersect",k,l):l.push(k),m=!0}}),g.warn("abc88 returning points",l),l},n1=function i(n,l,d,m){g.info("Graph in recursive render: XXX",bi().json.write(l),m);var w=l.graph().rankdir;g.trace("Dir in recursive render - dir:",w);var k=n.insert("g").attr("class","root");l.nodes()?g.info("Recursive render XXX",l.nodes()):g.info("No nodes found for",l),l.edges().length>0&&g.trace("Recursive edges",l.edge(l.edges()[0]));var S=k.insert("g").attr("class","clusters"),N=k.insert("g").attr("class","edgePaths"),B=k.insert("g").attr("class","edgeLabels"),q=k.insert("g").attr("class","nodes");l.nodes().forEach(function(K){var Q=l.node(K);if(m!==void 0){var xt=JSON.parse(JSON.stringify(m.clusterData));g.info("Setting data for cluster XXX (",K,") ",xt,m),l.setNode(m.id,xt),l.parent(K)||(g.trace("Setting parent",K,m.id),l.setParent(K,m.id,xt))}if(g.info("(Insert) Node XXX"+K+": "+JSON.stringify(l.node(K))),Q&&Q.clusterNode){g.info("Cluster identified",K,Q.width,l.node(K));var Ct=i(q,Q.graph,d,l.node(K)),Bt=Ct.elem;ni(Q,Bt),Q.diff=Ct.diff||0,g.info("Node bounds (abc123)",K,Q,Q.width,Q.x,Q.y),function(Ft,Lt){ho[Lt.id]=Ft}(Bt,Q),g.warn("Recursive render complete ",Bt,Q)}else l.children(K).length>0?(g.info("Cluster - the non recursive path XXX",K,Q.id,Q,l),g.info(jo(Q.id,l)),Jn[Q.id]={id:jo(Q.id,l),node:Q}):(g.info("Node - the non recursive path",K,Q.id,Q),function(Ft,Lt,Et){var _t,qt,ve;Lt.link?(Nt().securityLevel==="sandbox"?ve="_top":Lt.linkTarget&&(ve=Lt.linkTarget||"_blank"),_t=Ft.insert("svg:a").attr("xlink:href",Lt.link).attr("target",ve),qt=Jh[Lt.shape](_t,Lt,Et)):_t=qt=Jh[Lt.shape](Ft,Lt,Et),Lt.tooltip&&qt.attr("title",Lt.tooltip),Lt.class&&qt.attr("class","node default "+Lt.class),ho[Lt.id]=_t,Lt.haveCallback&&ho[Lt.id].attr("class",ho[Lt.id].attr("class")+" clickable")}(q,l.node(K),w))}),l.edges().forEach(function(K){var Q=l.edge(K.v,K.w,K.name);g.info("Edge "+K.v+" -> "+K.w+": "+JSON.stringify(K)),g.info("Edge "+K.v+" -> "+K.w+": ",K," ",JSON.stringify(l.edge(K))),g.info("Fix",Jn,"ids:",K.v,K.w,"Translateing: ",Jn[K.v],Jn[K.w]),t1(B,Q)}),l.edges().forEach(function(K){g.info("Edge "+K.v+" -> "+K.w+": "+JSON.stringify(K))}),g.info("#############################################"),g.info("### Layout ###"),g.info("#############################################"),g.info(l),Ss().layout(l),g.info("Graph after layout:",bi().json.write(l));var G=0;return Tc(l).forEach(function(K){var Q=l.node(K);g.info("Position "+K+": "+JSON.stringify(l.node(K))),g.info("Position "+K+": ("+Q.x,","+Q.y,") width: ",Q.width," height: ",Q.height),Q&&Q.clusterNode?vl(Q):l.children(K).length>0?(function(xt,Ct){g.trace("Inserting cluster");var Bt=Ct.shape||"rect";Aa[Ct.id]=Va[Bt](xt,Ct)}(S,Q),Jn[Q.id].node=Q):vl(Q)}),l.edges().forEach(function(K){var Q=l.edge(K);g.info("Edge "+K.v+" -> "+K.w+": "+JSON.stringify(Q),Q);var xt=function(Ct,Bt,Ft,Lt,Et,_t){var qt=Ft.points,ve=!1,de=_t.node(Bt.v),je=_t.node(Bt.w);g.info("abc88 InsertEdge: ",Ft),je.intersect&&de.intersect&&((qt=qt.slice(1,Ft.points.length-1)).unshift(de.intersect(qt[0])),g.info("Last point",qt[qt.length-1],je,je.intersect(qt[qt.length-1])),qt.push(je.intersect(qt[qt.length-1]))),Ft.toCluster&&(g.info("to cluster abc88",Lt[Ft.toCluster]),qt=mu(Ft.points,Lt[Ft.toCluster].node),ve=!0),Ft.fromCluster&&(g.info("from cluster abc88",Lt[Ft.fromCluster]),qt=mu(qt.reverse(),Lt[Ft.fromCluster].node).reverse(),ve=!0);var te,ne=qt.filter(function(we){return!Number.isNaN(we.y)});te=(Et==="graph"||Et==="flowchart")&&Ft.curve||T.curveBasis;var ce,le=(0,T.line)().x(function(we){return we.x}).y(function(we){return we.y}).curve(te);switch(Ft.thickness){case"normal":ce="edge-thickness-normal";break;case"thick":ce="edge-thickness-thick";break;default:ce=""}switch(Ft.pattern){case"solid":ce+=" edge-pattern-solid";break;case"dotted":ce+=" edge-pattern-dotted";break;case"dashed":ce+=" edge-pattern-dashed"}var Gt=Ct.append("path").attr("d",le(ne)).attr("id",Ft.id).attr("class"," "+ce+(Ft.classes?" "+Ft.classes:"")).attr("style",Ft.style),oe="";switch(Nt().state.arrowMarkerAbsolute&&(oe=(oe=(oe=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search).replace(/\(/g,"\\(")).replace(/\)/g,"\\)")),g.info("arrowTypeStart",Ft.arrowTypeStart),g.info("arrowTypeEnd",Ft.arrowTypeEnd),Ft.arrowTypeStart){case"arrow_cross":Gt.attr("marker-start","url("+oe+"#"+Et+"-crossStart)");break;case"arrow_point":Gt.attr("marker-start","url("+oe+"#"+Et+"-pointStart)");break;case"arrow_barb":Gt.attr("marker-start","url("+oe+"#"+Et+"-barbStart)");break;case"arrow_circle":Gt.attr("marker-start","url("+oe+"#"+Et+"-circleStart)");break;case"aggregation":Gt.attr("marker-start","url("+oe+"#"+Et+"-aggregationStart)");break;case"extension":Gt.attr("marker-start","url("+oe+"#"+Et+"-extensionStart)");break;case"composition":Gt.attr("marker-start","url("+oe+"#"+Et+"-compositionStart)");break;case"dependency":Gt.attr("marker-start","url("+oe+"#"+Et+"-dependencyStart)");break;case"lollipop":Gt.attr("marker-start","url("+oe+"#"+Et+"-lollipopStart)")}switch(Ft.arrowTypeEnd){case"arrow_cross":Gt.attr("marker-end","url("+oe+"#"+Et+"-crossEnd)");break;case"arrow_point":Gt.attr("marker-end","url("+oe+"#"+Et+"-pointEnd)");break;case"arrow_barb":Gt.attr("marker-end","url("+oe+"#"+Et+"-barbEnd)");break;case"arrow_circle":Gt.attr("marker-end","url("+oe+"#"+Et+"-circleEnd)");break;case"aggregation":Gt.attr("marker-end","url("+oe+"#"+Et+"-aggregationEnd)");break;case"extension":Gt.attr("marker-end","url("+oe+"#"+Et+"-extensionEnd)");break;case"composition":Gt.attr("marker-end","url("+oe+"#"+Et+"-compositionEnd)");break;case"dependency":Gt.attr("marker-end","url("+oe+"#"+Et+"-dependencyEnd)");break;case"lollipop":Gt.attr("marker-end","url("+oe+"#"+Et+"-lollipopEnd)")}var _e={};return ve&&(_e.updatedPath=qt),_e.originalPath=Ft.points,_e}(N,K,Q,Jn,d,l);e1(Q,xt)}),l.nodes().forEach(function(K){var Q=l.node(K);g.info(K,Q.type,Q.diff),Q.type==="group"&&(G=Q.diff)}),{elem:k,diff:G}},_l=function(i,n,l,d,m){Xh(i,l,d,m),ho={},Ga={},vi={},Aa={},Ca={},ha={},Jn={},g.warn("Graph at first:",bi().json.write(n)),yl(n),g.warn("Graph after:",bi().json.write(n)),n1(i,n,d)},ff={dividerMargin:10,padding:5,textHeight:10};function r1(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 bu={setConf:function(i){Object.keys(i).forEach(function(n){ff[n]=i[n]})},draw:function(i,n,l,d){g.info("Drawing class - ",n);var m=Nt().flowchart,w=Nt().securityLevel;g.info("config:",m);var k,S=m.nodeSpacing||50,N=m.rankSpacing||50,B=new(bi()).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(),G=d.db.getRelations();g.info(G),function(qt,ve,de,je){var te=Object.keys(qt);g.info("keys:",te),g.info(qt),te.forEach(function(ne){var ce=qt[ne],le="";ce.cssClasses.length>0&&(le=le+" "+ce.cssClasses.join(" "));var Gt,oe,_e={labelStyle:""},we=ce.text!==void 0?ce.text:ce.id;ce.type,oe="class_box",ve.setNode(ce.id,{labelStyle:_e.labelStyle,shape:oe,labelText:(Gt=we,on.sanitizeText(Gt,Nt())),classData:ce,rx:0,ry:0,class:le,style:_e.style,id:ce.id,domId:ce.domId,tooltip:je.db.getTooltip(ce.id)||"",haveCallback:ce.haveCallback,link:ce.link,width:ce.type==="group"?500:void 0,type:ce.type,padding:Nt().flowchart.padding}),g.info("setNode",{labelStyle:_e.labelStyle,shape:oe,labelText:we,rx:0,ry:0,class:le,style:_e.style,id:ce.id,width:ce.type==="group"?500:void 0,type:ce.type,padding:Nt().flowchart.padding})})}(q,B,0,d),function(qt,ve){var de=Nt().flowchart,je=0;qt.forEach(function(te){je++;var ne={classes:"relation"};ne.pattern=te.relation.lineType==1?"dashed":"solid",ne.id="id"+je,te.type==="arrow_open"?ne.arrowhead="none":ne.arrowhead="normal",g.info(ne,te),ne.startLabelRight=te.relationTitle1==="none"?"":te.relationTitle1,ne.endLabelLeft=te.relationTitle2==="none"?"":te.relationTitle2,ne.arrowTypeStart=r1(te.relation.type1),ne.arrowTypeEnd=r1(te.relation.type2);var ce="",le="";if(te.style!==void 0){var Gt=Di(te.style);ce=Gt.style,le=Gt.labelStyle}else ce="fill:none";ne.style=ce,ne.labelStyle=le,te.interpolate!==void 0?ne.curve=ma(te.interpolate,T.curveLinear):qt.defaultInterpolate!==void 0?ne.curve=ma(qt.defaultInterpolate,T.curveLinear):ne.curve=ma(de.curve,T.curveLinear),te.text=te.title,te.text===void 0?te.style!==void 0&&(ne.arrowheadStyle="fill: #333"):(ne.arrowheadStyle="fill: #333",ne.labelpos="c",Nt().flowchart.htmlLabels?(ne.labelType="html",ne.label='<span class="edgeLabel">'+te.text+"</span>"):(ne.labelType="text",ne.label=te.text.replace(on.lineBreakRegex,`
`),te.style===void 0&&(ne.style=ne.style||"stroke: #333; stroke-width: 1.5px;fill:none"),ne.labelStyle=ne.labelStyle.replace("color:","fill:"))),ve.setEdge(te.id1,te.id2,ne,je)})}(G,B),w==="sandbox"&&(k=(0,T.select)("#i"+n));var K=w==="sandbox"?(0,T.select)(k.nodes()[0].contentDocument.body):(0,T.select)("body"),Q=K.select('[id="'.concat(n,'"]')),xt=K.select("#"+n+" g");if(_l(xt,B,["aggregation","extension","composition","dependency","lollipop"],"classDiagram",n),Ro(B,Q,m.diagramPadding,m.useMaxWidth),!m.htmlLabels)for(var Ct=w==="sandbox"?k.nodes()[0].contentDocument:document,Bt=Ct.querySelectorAll('[id="'+n+'"] .edgeLabel .label'),Ft=0;Ft<Bt.length;Ft++){var Lt=Bt[Ft],Et=Lt.getBBox(),_t=Ct.createElementNS("http://www.w3.org/2000/svg","rect");_t.setAttribute("rx",0),_t.setAttribute("ry",0),_t.setAttribute("width",Et.width),_t.setAttribute("height",Et.height),Lt.insertBefore(_t,Lt.firstChild)}kr(d.db,Q,n)}};var i1=p(1362),a1=p.n(i1),Cc={},vu=[],o1=function(i){return Cc[i]===void 0&&(Cc[i]={attributes:[]},g.info("Added new entity :",i)),Cc[i]};const df={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){zr.parseDirective(this,i,n,l)},getConfig:function(){return Nt().er},addEntity:o1,addAttributes:function(i,n){var l,d=o1(i);for(l=n.length-1;l>=0;l--)d.attributes.push(n[l]),g.debug("Added attribute ",n[l].attributeName)},getEntities:function(){return Cc},addRelationship:function(i,n,l,d){var m={entityA:i,roleA:n,entityB:l,relSpec:d};vu.push(m),g.debug("Added new relationship :",m)},getRelationships:function(){return vu},clear:function(){Cc={},vu=[],Kt()},setAccTitle:xr,getAccTitle:Ir,setAccDescription:Ur,getAccDescription:pi};var fo={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 $o=fo;var Fr={},s1=function(i){return(i.entityA+i.roleA+i.entityB).replace(/\s/g,"")},c1=0;const pf={setConf:function(i){for(var n=Object.keys(i),l=0;l<n.length;l++)Fr[n[l]]=i[n[l]]},draw:function(i,n,l,d){Fr=Nt().er,g.info("Drawing ER diagram");var m,w=Nt().securityLevel;w==="sandbox"&&(m=(0,T.select)("#i"+n));var k,S=(w==="sandbox"?(0,T.select)(m.nodes()[0].contentDocument.body):(0,T.select)("body")).select("[id='".concat(n,"']"));(function(Bt,Ft){var Lt;Bt.append("defs").append("marker").attr("id",fo.ONLY_ONE_START).attr("refX",0).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("stroke",Ft.stroke).attr("fill","none").attr("d","M9,0 L9,18 M15,0 L15,18"),Bt.append("defs").append("marker").attr("id",fo.ONLY_ONE_END).attr("refX",18).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("stroke",Ft.stroke).attr("fill","none").attr("d","M3,0 L3,18 M9,0 L9,18"),(Lt=Bt.append("defs").append("marker").attr("id",fo.ZERO_OR_ONE_START).attr("refX",0).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto")).append("circle").attr("stroke",Ft.stroke).attr("fill","white").attr("cx",21).attr("cy",9).attr("r",6),Lt.append("path").attr("stroke",Ft.stroke).attr("fill","none").attr("d","M9,0 L9,18"),(Lt=Bt.append("defs").append("marker").attr("id",fo.ZERO_OR_ONE_END).attr("refX",30).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto")).append("circle").attr("stroke",Ft.stroke).attr("fill","white").attr("cx",9).attr("cy",9).attr("r",6),Lt.append("path").attr("stroke",Ft.stroke).attr("fill","none").attr("d","M21,0 L21,18"),Bt.append("defs").append("marker").attr("id",fo.ONE_OR_MORE_START).attr("refX",18).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("stroke",Ft.stroke).attr("fill","none").attr("d","M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27"),Bt.append("defs").append("marker").attr("id",fo.ONE_OR_MORE_END).attr("refX",27).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("stroke",Ft.stroke).attr("fill","none").attr("d","M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18"),(Lt=Bt.append("defs").append("marker").attr("id",fo.ZERO_OR_MORE_START).attr("refX",18).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto")).append("circle").attr("stroke",Ft.stroke).attr("fill","white").attr("cx",48).attr("cy",18).attr("r",6),Lt.append("path").attr("stroke",Ft.stroke).attr("fill","none").attr("d","M0,18 Q18,0 36,18 Q18,36 0,18"),(Lt=Bt.append("defs").append("marker").attr("id",fo.ZERO_OR_MORE_END).attr("refX",39).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto")).append("circle").attr("stroke",Ft.stroke).attr("fill","white").attr("cx",9).attr("cy",18).attr("r",6),Lt.append("path").attr("stroke",Ft.stroke).attr("fill","none").attr("d","M21,18 Q39,0 57,18 Q39,36 21,18")})(S,Fr),k=new(bi()).Graph({multigraph:!0,directed:!0,compound:!1}).setGraph({rankdir:Fr.layoutDirection,marginx:20,marginy:20,nodesep:100,edgesep:100,ranksep:100}).setDefaultEdgeLabel(function(){return{}});var N,B,q=function(Bt,Ft,Lt){var Et;return Object.keys(Ft).forEach(function(_t){var qt=Bt.append("g").attr("id",_t);Et=Et===void 0?_t:Et;var ve="entity-"+_t,de=qt.append("text").attr("class","er entityLabel").attr("id",ve).attr("x",0).attr("y",0).attr("dominant-baseline","middle").attr("text-anchor","middle").attr("style","font-family: "+Nt().fontFamily+"; font-size: "+Fr.fontSize+"px").text(_t),je=function(le,Gt,oe){var _e=Fr.entityPadding/3,we=Fr.entityPadding/3,Je=.85*Fr.fontSize,dn=Gt.node().getBBox(),Me=[],gn=!1,wn=!1,Ue=0,nn=0,tn=0,On=0,cr=dn.height+2*_e,Xr=1;oe.forEach(function(Or){Or.attributeKeyType!==void 0&&(gn=!0),Or.attributeComment!==void 0&&(wn=!0)}),oe.forEach(function(Or){var Oa="".concat(Gt.node().id,"-attr-").concat(Xr),_a=0,Qs=Qn(Or.attributeType),_s=le.append("text").attr("class","er entityLabel").attr("id","".concat(Oa,"-type")).attr("x",0).attr("y",0).attr("dominant-baseline","middle").attr("text-anchor","left").attr("style","font-family: "+Nt().fontFamily+"; font-size: "+Je+"px").text(Qs),eo=le.append("text").attr("class","er entityLabel").attr("id","".concat(Oa,"-name")).attr("x",0).attr("y",0).attr("dominant-baseline","middle").attr("text-anchor","left").attr("style","font-family: "+Nt().fontFamily+"; font-size: "+Je+"px").text(Or.attributeName),no={};no.tn=_s,no.nn=eo;var dh=_s.node().getBBox(),Vi=eo.node().getBBox();if(Ue=Math.max(Ue,dh.width),nn=Math.max(nn,Vi.width),_a=Math.max(dh.height,Vi.height),gn){var Gi=le.append("text").attr("class","er entityLabel").attr("id","".concat(Oa,"-key")).attr("x",0).attr("y",0).attr("dominant-baseline","middle").attr("text-anchor","left").attr("style","font-family: "+Nt().fontFamily+"; font-size: "+Je+"px").text(Or.attributeKeyType||"");no.kn=Gi;var Xi=Gi.node().getBBox();tn=Math.max(tn,Xi.width),_a=Math.max(_a,Xi.height)}if(wn){var ro=le.append("text").attr("class","er entityLabel").attr("id","".concat(Oa,"-comment")).attr("x",0).attr("y",0).attr("dominant-baseline","middle").attr("text-anchor","left").attr("style","font-family: "+Nt().fontFamily+"; font-size: "+Je+"px").text(Or.attributeComment||"");no.cn=ro;var Kl=ro.node().getBBox();On=Math.max(On,Kl.width),_a=Math.max(_a,Kl.height)}no.height=_a,Me.push(no),cr+=_a+2*_e,Xr+=1});var Sr=4;gn&&(Sr+=2),wn&&(Sr+=2);var si=Ue+nn+tn+On,Zr={width:Math.max(Fr.minEntityWidth,Math.max(dn.width+2*Fr.entityPadding,si+we*Sr)),height:oe.length>0?cr:Math.max(Fr.minEntityHeight,dn.height+2*Fr.entityPadding)};if(oe.length>0){var br=Math.max(0,(Zr.width-si-we*Sr)/(Sr/2));Gt.attr("transform","translate("+Zr.width/2+","+(_e+dn.height/2)+")");var da=dn.height+2*_e,ci="attributeBoxOdd";Me.forEach(function(Or){var Oa=da+_e+Or.height/2;Or.tn.attr("transform","translate("+we+","+Oa+")");var _a=le.insert("rect","#"+Or.tn.node().id).attr("class","er ".concat(ci)).attr("fill",Fr.fill).attr("fill-opacity","100%").attr("stroke",Fr.stroke).attr("x",0).attr("y",da).attr("width",Ue+2*we+br).attr("height",Or.height+2*_e),Qs=parseFloat(_a.attr("x"))+parseFloat(_a.attr("width"));Or.nn.attr("transform","translate("+(Qs+we)+","+Oa+")");var _s=le.insert("rect","#"+Or.nn.node().id).attr("class","er ".concat(ci)).attr("fill",Fr.fill).attr("fill-opacity","100%").attr("stroke",Fr.stroke).attr("x",Qs).attr("y",da).attr("width",nn+2*we+br).attr("height",Or.height+2*_e),eo=parseFloat(_s.attr("x"))+parseFloat(_s.attr("width"));if(gn){Or.kn.attr("transform","translate("+(eo+we)+","+Oa+")");var no=le.insert("rect","#"+Or.kn.node().id).attr("class","er ".concat(ci)).attr("fill",Fr.fill).attr("fill-opacity","100%").attr("stroke",Fr.stroke).attr("x",eo).attr("y",da).attr("width",tn+2*we+br).attr("height",Or.height+2*_e);eo=parseFloat(no.attr("x"))+parseFloat(no.attr("width"))}wn&&(Or.cn.attr("transform","translate("+(eo+we)+","+Oa+")"),le.insert("rect","#"+Or.cn.node().id).attr("class","er ".concat(ci)).attr("fill",Fr.fill).attr("fill-opacity","100%").attr("stroke",Fr.stroke).attr("x",eo).attr("y",da).attr("width",On+2*we+br).attr("height",Or.height+2*_e)),da+=Or.height+2*_e,ci=ci=="attributeBoxOdd"?"attributeBoxEven":"attributeBoxOdd"})}else Zr.height=Math.max(Fr.minEntityHeight,cr),Gt.attr("transform","translate("+Zr.width/2+","+Zr.height/2+")");return Zr}(qt,de,Ft[_t].attributes),te=je.width,ne=je.height,ce=qt.insert("rect","#"+ve).attr("class","er entityBox").attr("fill",Fr.fill).attr("fill-opacity","100%").attr("stroke",Fr.stroke).attr("x",0).attr("y",0).attr("width",te).attr("height",ne).node().getBBox();Lt.setNode(_t,{width:ce.width,height:ce.height,shape:"rect",id:_t})}),Et}(S,d.db.getEntities(),k),G=function(Bt,Ft){return Bt.forEach(function(Lt){Ft.setEdge(Lt.entityA,Lt.entityB,{relationship:Lt},s1(Lt))}),Bt}(d.db.getRelationships(),k);Ss().layout(k),N=S,(B=k).nodes().forEach(function(Bt){Bt!==void 0&&B.node(Bt)!==void 0&&N.select("#"+Bt).attr("transform","translate("+(B.node(Bt).x-B.node(Bt).width/2)+","+(B.node(Bt).y-B.node(Bt).height/2)+" )")}),G.forEach(function(Bt){(function(Ft,Lt,Et,_t,qt){c1++;var ve=Et.edge(Lt.entityA,Lt.entityB,s1(Lt)),de=(0,T.line)().x(function(oe){return oe.x}).y(function(oe){return oe.y}).curve(T.curveBasis),je=Ft.insert("path","#"+_t).attr("class","er relationshipLine").attr("d",de(ve.points)).attr("stroke",Fr.stroke).attr("fill","none");Lt.relSpec.relType===qt.db.Identification.NON_IDENTIFYING&&je.attr("stroke-dasharray","8,8");var te="";switch(Fr.arrowMarkerAbsolute&&(te=(te=(te=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search).replace(/\(/g,"\\(")).replace(/\)/g,"\\)")),Lt.relSpec.cardA){case qt.db.Cardinality.ZERO_OR_ONE:je.attr("marker-end","url("+te+"#"+$o.ZERO_OR_ONE_END+")");break;case qt.db.Cardinality.ZERO_OR_MORE:je.attr("marker-end","url("+te+"#"+$o.ZERO_OR_MORE_END+")");break;case qt.db.Cardinality.ONE_OR_MORE:je.attr("marker-end","url("+te+"#"+$o.ONE_OR_MORE_END+")");break;case qt.db.Cardinality.ONLY_ONE:je.attr("marker-end","url("+te+"#"+$o.ONLY_ONE_END+")")}switch(Lt.relSpec.cardB){case qt.db.Cardinality.ZERO_OR_ONE:je.attr("marker-start","url("+te+"#"+$o.ZERO_OR_ONE_START+")");break;case qt.db.Cardinality.ZERO_OR_MORE:je.attr("marker-start","url("+te+"#"+$o.ZERO_OR_MORE_START+")");break;case qt.db.Cardinality.ONE_OR_MORE:je.attr("marker-start","url("+te+"#"+$o.ONE_OR_MORE_START+")");break;case qt.db.Cardinality.ONLY_ONE:je.attr("marker-start","url("+te+"#"+$o.ONLY_ONE_START+")")}var ne=je.node().getTotalLength(),ce=je.node().getPointAtLength(.5*ne),le="rel"+c1,Gt=Ft.append("text").attr("class","er relationshipLabel").attr("id",le).attr("x",ce.x).attr("y",ce.y).attr("text-anchor","middle").attr("dominant-baseline","middle").attr("style","font-family: "+Nt().fontFamily+"; font-size: "+Fr.fontSize+"px").text(Lt.roleA).node().getBBox();Ft.insert("rect","#"+le).attr("class","er relationshipLabelBox").attr("x",ce.x-Gt.width/2).attr("y",ce.y-Gt.height/2).attr("width",Gt.width).attr("height",Gt.height).attr("fill","white").attr("fill-opacity","85%")})(S,Bt,k,q,d)});var K=Fr.diagramPadding,Q=S.node().getBBox(),xt=Q.width+2*K,Ct=Q.height+2*K;Qi(S,0,xt,Fr.useMaxWidth),S.attr("viewBox","".concat(Q.x-K," ").concat(Q.y-K," ").concat(xt," ").concat(Ct)),kr(d.db,S,n)}};var gf={};const _u={setConf:function(i){Object.keys(i).forEach(function(n){gf[n]=i[n]})},draw:function(i,n,l){try{g.debug(`Renering svg for syntax error
`);var d=(0,T.select)("#"+n),m=d.append("g");m.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"),m.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"),m.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"),m.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"),m.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"),m.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"),m.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"),m.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(w){g.error("Error while rendering info diagram"),g.error(w.message)}}};var yf=p(5890),mf=p.n(yf);function xu(i){return xu=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},xu(i)}function ku(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,xl,bf="flowchart-",l1=0,wu=Nt(),oi={},Yi=[],os=[],ja=[],Ma={},Tu={},Eu=0,Ac=!0,kl=[],wl=function(i){return on.sanitizeText(i,wu)},Tl=function(i){for(var n=Object.keys(oi),l=0;l<n.length;l++)if(oi[n[l]].id===i)return oi[n[l]].domId;return i},vf=function(i,n,l,d){var m={start:i,end:n,type:void 0,text:""};(d=l.text)!==void 0&&(m.text=wl(d.trim()),m.text[0]==='"'&&m.text[m.text.length-1]==='"'&&(m.text=m.text.substring(1,m.text.length-1))),l!==void 0&&(m.type=l.type,m.stroke=l.stroke,m.length=l.length),Yi.push(m)},Mc=function(i,n){i.split(",").forEach(function(l){var d=l;oi[d]!==void 0&&oi[d].classes.push(n),Ma[d]!==void 0&&Ma[d].classes.push(n)})},u1=function(i){var n=(0,T.select)(".mermaidTooltip");(n._groups||n)[0][0]===null&&(n=(0,T.select)("body").append("div").attr("class","mermaidTooltip").style("opacity",0)),(0,T.select)(i).select("svg").selectAll("g.node").on("mouseover",function(){var l=(0,T.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,T.select)(this).classed("hover",!1)})};kl.push(u1);var _f=function(i){for(var n=0;n<ja.length;n++)if(ja[n].id===i)return n;return-1},Dc=-1,Su=[],Cu=function i(n,l){var d=ja[l].nodes;if(!((Dc+=1)>2e3)){if(Su[Dc]=l,ja[l].id===n)return{result:!0,count:0};for(var m=0,w=1;m<d.length;){var k=_f(d[m]);if(k>=0){var S=i(n,k);if(S.result)return{result:!0,count:w+S.count};w+=S.count}m+=1}return{result:!1,count:w}}},ss=function(i,n){var l=!1;return i.forEach(function(d){d.nodes.indexOf(n)>=0&&(l=!0)}),l},cs=function(i,n){var l=[];return i.nodes.forEach(function(d,m){ss(n,d)||l.push(i.nodes[m])}),{nodes:l}};const po={parseDirective:function(i,n,l){zr.parseDirective(this,i,n,l)},defaultConfig:function(){return li.flowchart},setAccTitle:xr,getAccTitle:Ir,getAccDescription:pi,setAccDescription:Ur,addVertex:function(i,n,l,d,m,w){var k,S=arguments.length>6&&arguments[6]!==void 0?arguments[6]:{},N=i;N!==void 0&&N.trim().length!==0&&(oi[N]===void 0&&(oi[N]={id:N,domId:bf+N+"-"+l1,styles:[],classes:[]}),l1++,n!==void 0?(wu=Nt(),(k=wl(n.trim()))[0]==='"'&&k[k.length-1]==='"'&&(k=k.substring(1,k.length-1)),oi[N].text=k):oi[N].text===void 0&&(oi[N].text=i),l!==void 0&&(oi[N].type=l),d!=null&&d.forEach(function(B){oi[N].styles.push(B)}),m!=null&&m.forEach(function(B){oi[N].classes.push(B)}),w!==void 0&&(oi[N].dir=w),oi[N].props=S)},lookUpDomId:Tl,addLink:function(i,n,l,d){var m,w;for(m=0;m<i.length;m++)for(w=0;w<n.length;w++)vf(i[m],n[w],l,d)},updateLinkInterpolate:function(i,n){i.forEach(function(l){l==="default"?Yi.defaultInterpolate=n:Yi[l].interpolate=n})},updateLink:function(i,n){i.forEach(function(l){l==="default"?Yi.defaultStyle=n:(Vn.isSubstringInArray("fill",n)===-1&&n.push("fill:none"),Yi[l].style=n)})},addClass:function(i,n){os[i]===void 0&&(os[i]={id:i,styles:[],textStyles:[]}),n!=null&&n.forEach(function(l){if(l.match("color")){var d=l.replace("fill","bgFill").replace("color","fill");os[i].textStyles.push(d)}os[i].styles.push(l)})},setDirection:function(i){(Xa=i).match(/.*</)&&(Xa="RL"),Xa.match(/.*\^/)&&(Xa="BT"),Xa.match(/.*>/)&&(Xa="LR"),Xa.match(/.*v/)&&(Xa="TB")},setClass:Mc,setTooltip:function(i,n){i.split(",").forEach(function(l){n!==void 0&&(Tu[xl==="gen-1"?Tl(l):l]=wl(n))})},getTooltip:function(i){return Tu[i]},setClickEvent:function(i,n,l){i.split(",").forEach(function(d){(function(m,w,k){var S=Tl(m);if(Nt().securityLevel==="loose"&&w!==void 0){var N=[];if(typeof k=="string"){N=k.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(var B=0;B<N.length;B++){var q=N[B].trim();q.charAt(0)==='"'&&q.charAt(q.length-1)==='"'&&(q=q.substr(1,q.length-2)),N[B]=q}}N.length===0&&N.push(m),oi[m]!==void 0&&(oi[m].haveCallback=!0,kl.push(function(){var G=document.querySelector('[id="'.concat(S,'"]'));G!==null&&G.addEventListener("click",function(){var K;Vn.runFunc.apply(Vn,[w].concat(function(Q){if(Array.isArray(Q))return ku(Q)}(K=N)||function(Q){if(typeof Symbol!="undefined"&&Q[Symbol.iterator]!=null||Q["@@iterator"]!=null)return Array.from(Q)}(K)||function(Q,xt){if(Q){if(typeof Q=="string")return ku(Q,xt);var Ct=Object.prototype.toString.call(Q).slice(8,-1);return Ct==="Object"&&Q.constructor&&(Ct=Q.constructor.name),Ct==="Map"||Ct==="Set"?Array.from(Q):Ct==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Ct)?ku(Q,xt):void 0}}(K)||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)}),Mc(i,"clickable")},setLink:function(i,n,l){i.split(",").forEach(function(d){oi[d]!==void 0&&(oi[d].link=Vn.formatUrl(n,wu),oi[d].linkTarget=l)}),Mc(i,"clickable")},bindFunctions:function(i){kl.forEach(function(n){n(i)})},getDirection:function(){return Xa.trim()},getVertices:function(){return oi},getEdges:function(){return Yi},getClasses:function(){return os},clear:function(i){oi={},os={},Yi=[],(kl=[]).push(u1),ja=[],Ma={},Eu=0,Tu=[],Ac=!0,xl=i||"gen-1",Kt()},setGen:function(i){xl=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(),m=l;i===l&&l.match(/\s/)&&(d=void 0);var w=[],k=function(G){var K,Q={boolean:{},number:{},string:{}},xt=[],Ct=G.filter(function(Bt){var Ft=xu(Bt);return Bt.stmt&&Bt.stmt==="dir"?(K=Bt.value,!1):Bt.trim()!==""&&(Ft in Q?!Q[Ft].hasOwnProperty(Bt)&&(Q[Ft][Bt]=!0):!(xt.indexOf(Bt)>=0)&&xt.push(Bt))});return{nodeList:Ct,dir:K}}(w.concat.apply(w,n)),S=k.nodeList,N=k.dir;if(w=S,xl==="gen-1")for(var B=0;B<w.length;B++)w[B]=Tl(w[B]);d=d||"subGraph"+Eu,m=wl(m=m||""),Eu+=1;var q={id:d,nodes:w,title:m.trim(),classes:[],dir:N};return g.info("Adding",q.id,q.nodes,q.dir),q.nodes=cs(q,ja).nodes,ja.push(q),Ma[d]=q,d},getDepthFirstPos:function(i){return Su[i]},indexNodes:function(){Dc=-1,ja.length>0&&Cu("none",ja.length-1)},getSubGraphs:function(){return ja},destructLink:function(i,n){var l,d=function(m){var w=m.trim(),k=w.slice(0,-1),S="arrow_open";switch(w.slice(-1)){case"x":S="arrow_cross",w[0]==="x"&&(S="double_"+S,k=k.slice(1));break;case">":S="arrow_point",w[0]==="<"&&(S="double_"+S,k=k.slice(1));break;case"o":S="arrow_circle",w[0]==="o"&&(S="double_"+S,k=k.slice(1))}var N="normal",B=k.length-1;k[0]==="="&&(N="thick");var q=function(G,K){for(var Q=K.length,xt=0,Ct=0;Ct<Q;++Ct)K[Ct]==="."&&++xt;return xt}(0,k);return q&&(N="dotted",B=q),{type:S,stroke:N,length:B}}(i);if(n){if(l=function(m){var w=m.trim(),k="arrow_open";switch(w[0]){case"<":k="arrow_point",w=w.slice(1);break;case"x":k="arrow_cross",w=w.slice(1);break;case"o":k="arrow_circle",w=w.slice(1)}var S="normal";return w.indexOf("=")!==-1&&(S="thick"),w.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!!Ac&&(Ac=!1,!0)}},exists:ss,makeUniq:cs};var Ui=p(4949),Rr=p.n(Ui),h1=p(8284),El=p.n(h1);function Sl(i,n,l){var d=.9*(n.width+n.height),m=[{x:d/2,y:0},{x:d,y:-d/2},{x:d/2,y:-d},{x:0,y:-d/2}],w=yo(i,d,d,m);return l.intersect=function(k){return Rr().intersect.polygon(l,m,k)},w}function Cl(i,n,l){var d=n.height,m=d/4,w=n.width+2*m,k=[{x:m,y:0},{x:w-m,y:0},{x:w,y:-d/2},{x:w-m,y:-d},{x:m,y:-d},{x:0,y:-d/2}],S=yo(i,w,d,k);return l.intersect=function(N){return Rr().intersect.polygon(l,k,N)},S}function xf(i,n,l){var d=n.width,m=n.height,w=[{x:-m/2,y:0},{x:d,y:0},{x:d,y:-m},{x:-m/2,y:-m},{x:0,y:-m/2}],k=yo(i,d,m,w);return l.intersect=function(S){return Rr().intersect.polygon(l,w,S)},k}function go(i,n,l){var d=n.width,m=n.height,w=[{x:-2*m/6,y:0},{x:d-m/6,y:0},{x:d+2*m/6,y:-m},{x:m/6,y:-m}],k=yo(i,d,m,w);return l.intersect=function(S){return Rr().intersect.polygon(l,w,S)},k}function f1(i,n,l){var d=n.width,m=n.height,w=[{x:2*m/6,y:0},{x:d+m/6,y:0},{x:d-2*m/6,y:-m},{x:-m/6,y:-m}],k=yo(i,d,m,w);return l.intersect=function(S){return Rr().intersect.polygon(l,w,S)},k}function d1(i,n,l){var d=n.width,m=n.height,w=[{x:-2*m/6,y:0},{x:d+2*m/6,y:0},{x:d-m/6,y:-m},{x:m/6,y:-m}],k=yo(i,d,m,w);return l.intersect=function(S){return Rr().intersect.polygon(l,w,S)},k}function kf(i,n,l){var d=n.width,m=n.height,w=[{x:m/6,y:0},{x:d-m/6,y:0},{x:d+2*m/6,y:-m},{x:-2*m/6,y:-m}],k=yo(i,d,m,w);return l.intersect=function(S){return Rr().intersect.polygon(l,w,S)},k}function wf(i,n,l){var d=n.width,m=n.height,w=[{x:0,y:0},{x:d+m/2,y:0},{x:d,y:-m/2},{x:d+m/2,y:-m},{x:0,y:-m}],k=yo(i,d,m,w);return l.intersect=function(S){return Rr().intersect.polygon(l,w,S)},k}function Nc(i,n,l){var d=n.height,m=n.width+d/4,w=i.insert("rect",":first-child").attr("rx",d/2).attr("ry",d/2).attr("x",-m/2).attr("y",-d/2).attr("width",m).attr("height",d);return l.intersect=function(k){return Rr().intersect.rect(l,k)},w}function Tf(i,n,l){var d=n.width,m=n.height,w=[{x:0,y:0},{x:d,y:0},{x:d,y:-m},{x:0,y:-m},{x:0,y:0},{x:-8,y:0},{x:d+8,y:0},{x:d+8,y:-m},{x:-8,y:-m},{x:-8,y:0}],k=yo(i,d,m,w);return l.intersect=function(S){return Rr().intersect.polygon(l,w,S)},k}function Ef(i,n,l){var d=n.width,m=d/2,w=m/(2.5+d/50),k=n.height+w,S="M 0,"+w+" a "+m+","+w+" 0,0,0 "+d+" 0 a "+m+","+w+" 0,0,0 "+-d+" 0 l 0,"+k+" a "+m+","+w+" 0,0,0 "+d+" 0 l 0,"+-k,N=i.attr("label-offset-y",w).insert("path",":first-child").attr("d",S).attr("transform","translate("+-d/2+","+-(k/2+w)+")");return l.intersect=function(B){var q=Rr().intersect.rect(l,B),G=q.x-l.x;if(m!=0&&(Math.abs(G)<l.width/2||Math.abs(G)==l.width/2&&Math.abs(q.y-l.y)>l.height/2-w)){var K=w*w*(1-G*G/(m*m));K!=0&&(K=Math.sqrt(K)),K=w-K,B.y-l.y>0&&(K=-K),q.y+=K}return q},N}function yo(i,n,l,d){return i.insert("polygon",":first-child").attr("points",d.map(function(m){return m.x+","+m.y}).join(" ")).attr("transform","translate("+-n/2+","+l/2+")")}const Au=function(i){i.shapes().question=Sl,i.shapes().hexagon=Cl,i.shapes().stadium=Nc,i.shapes().subroutine=Tf,i.shapes().cylinder=Ef,i.shapes().rect_left_inv_arrow=xf,i.shapes().lean_right=go,i.shapes().lean_left=f1,i.shapes().trapezoid=d1,i.shapes().inv_trapezoid=kf,i.shapes().rect_right_inv_arrow=wf};var p1={},g1=function(i,n,l,d,m,w){Nt().securityLevel;var k=d?d.select('[id="'.concat(l,'"]')):(0,T.select)('[id="'.concat(l,'"]')),S=m||document;Object.keys(i).forEach(function(N){var B=i[N],q="default";B.classes.length>0&&(q=B.classes.join(" "));var G,K=Di(B.styles),Q=B.text!==void 0?B.text:B.id;if(an(Nt().flowchart.htmlLabels)){var xt={label:Q.replace(/fa[lrsb]?:fa-[\w-]+/g,function(qt){return"<i class='".concat(qt.replace(":"," "),"'></i>")})};(G=El()(k,xt).node()).parentNode.removeChild(G)}else{var Ct=S.createElementNS("http://www.w3.org/2000/svg","text");Ct.setAttribute("style",K.labelStyle.replace("color:","fill:"));for(var Bt=Q.split(on.lineBreakRegex),Ft=0;Ft<Bt.length;Ft++){var Lt=S.createElementNS("http://www.w3.org/2000/svg","tspan");Lt.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),Lt.setAttribute("dy","1em"),Lt.setAttribute("x","1"),Lt.textContent=Bt[Ft],Ct.appendChild(Lt)}G=Ct}var Et=0,_t="";switch(B.type){case"round":Et=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"}g.warn("Adding node",B.id,B.domId),n.setNode(w.db.lookUpDomId(B.id),{labelType:"svg",labelStyle:K.labelStyle,shape:_t,label:G,rx:Et,ry:Et,class:q,style:K.style,id:w.db.lookUpDomId(B.id)})})},y1=function(i,n,l){var d,m,w=0;if(i.defaultStyle!==void 0){var k=Di(i.defaultStyle);d=k.style,m=k.labelStyle}i.forEach(function(S){w++;var N="L-"+S.start+"-"+S.end,B="LS-"+S.start,q="LE-"+S.end,G={};S.type==="arrow_open"?G.arrowhead="none":G.arrowhead="normal";var K="",Q="";if(S.style!==void 0){var xt=Di(S.style);K=xt.style,Q=xt.labelStyle}else switch(S.stroke){case"normal":K="fill:none",d!==void 0&&(K=d),m!==void 0&&(Q=m);break;case"dotted":K="fill:none;stroke-width:2px;stroke-dasharray:3;";break;case"thick":K=" stroke-width: 3.5px;fill:none"}G.style=K,G.labelStyle=Q,S.interpolate!==void 0?G.curve=ma(S.interpolate,T.curveLinear):i.defaultInterpolate!==void 0?G.curve=ma(i.defaultInterpolate,T.curveLinear):G.curve=ma(p1.curve,T.curveLinear),S.text===void 0?S.style!==void 0&&(G.arrowheadStyle="fill: #333"):(G.arrowheadStyle="fill: #333",G.labelpos="c",an(Nt().flowchart.htmlLabels)?(G.labelType="html",G.label='<span id="L-'.concat(N,'" class="edgeLabel L-').concat(B,"' L-").concat(q,'" style="').concat(G.labelStyle,'">').concat(S.text.replace(/fa[lrsb]?:fa-[\w-]+/g,function(Ct){return"<i class='".concat(Ct.replace(":"," "),"'></i>")}),"</span>")):(G.labelType="text",G.label=S.text.replace(on.lineBreakRegex,`
`),S.style===void 0&&(G.style=G.style||"stroke: #333; stroke-width: 1.5px;fill:none"),G.labelStyle=G.labelStyle.replace("color:","fill:"))),G.id=N,G.class=B+" "+q,G.minlen=S.length||1,n.setEdge(l.db.lookUpDomId(S.start),l.db.lookUpDomId(S.end),G,w)})};const Al={setConf:function(i){for(var n=Object.keys(i),l=0;l<n.length;l++)p1[n[l]]=i[n[l]]},addVertices:g1,addEdges:y1,getClasses:function(i,n){g.info("Extracting classes"),n.db.clear();try{return n.parse(i),n.db.getClasses()}catch(l){return}},draw:function(i,n,l,d){g.info("Drawing flowchart"),d.db.clear();var m,w=Nt().securityLevel;w==="sandbox"&&(m=(0,T.select)("#i"+n));var k=w==="sandbox"?(0,T.select)(m.nodes()[0].contentDocument.body):(0,T.select)("body"),S=w==="sandbox"?m.nodes()[0].contentDocument:document;try{d.parser.parse(i)}catch(Me){g.debug("Parsing failed")}var N=d.db.getDirection();N===void 0&&(N="TD");for(var B,q=Nt().flowchart,G=q.nodeSpacing||50,K=q.rankSpacing||50,Q=new(bi()).Graph({multigraph:!0,compound:!0}).setGraph({rankdir:N,nodesep:G,ranksep:K,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}}),xt=d.db.getSubGraphs(),Ct=xt.length-1;Ct>=0;Ct--)B=xt[Ct],d.db.addVertex(B.id,B.title,"group",void 0,B.classes);var Bt=d.db.getVertices();g.warn("Get vertices",Bt);var Ft=d.db.getEdges(),Lt=0;for(Lt=xt.length-1;Lt>=0;Lt--){B=xt[Lt],(0,T.selectAll)("cluster").append("text");for(var Et=0;Et<B.nodes.length;Et++)g.warn("Setting subgraph",B.nodes[Et],d.db.lookUpDomId(B.nodes[Et]),d.db.lookUpDomId(B.id)),Q.setParent(d.db.lookUpDomId(B.nodes[Et]),d.db.lookUpDomId(B.id))}g1(Bt,Q,n,k,S,d),y1(Ft,Q,d);var _t=new(Rr()).render;Au(_t),_t.arrows().none=function(Me,gn,wn,Ue){var nn=Me.append("marker").attr("id",gn).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");Rr().util.applyStyle(nn,wn[Ue+"Style"])},_t.arrows().normal=function(Me,gn){Me.append("marker").attr("id",gn).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 qt=k.select('[id="'.concat(n,'"]'));kr(d.db,qt,n);var ve=k.select("#"+n+" g");for(_t(ve,Q),ve.selectAll("g.node").attr("title",function(){return d.db.getTooltip(this.id)}),d.db.indexNodes("subGraph"+Lt),Lt=0;Lt<xt.length;Lt++)if((B=xt[Lt]).title!=="undefined"){var de=S.querySelectorAll("#"+n+' [id="'+d.db.lookUpDomId(B.id)+'"] rect'),je=S.querySelectorAll("#"+n+' [id="'+d.db.lookUpDomId(B.id)+'"]'),te=de[0].x.baseVal.value,ne=de[0].y.baseVal.value,ce=de[0].width.baseVal.value,le=(0,T.select)(je[0]).select(".label");le.attr("transform","translate(".concat(te+ce/2,", ").concat(ne+14,")")),le.attr("id",n+"Text");for(var Gt=0;Gt<B.classes.length;Gt++)je[0].classList.add(B.classes[Gt])}an(q.htmlLabels);for(var oe=S.querySelectorAll('[id="'+n+'"] .edgeLabel .label'),_e=0;_e<oe.length;_e++){var we=oe[_e],Je=we.getBBox(),dn=S.createElementNS("http://www.w3.org/2000/svg","rect");dn.setAttribute("rx",0),dn.setAttribute("ry",0),dn.setAttribute("width",Je.width),dn.setAttribute("height",Je.height),we.insertBefore(dn,we.firstChild)}Ro(Q,qt,q.diagramPadding,q.useMaxWidth),Object.keys(Bt).forEach(function(Me){var gn=Bt[Me];if(gn.link){var wn=k.select("#"+n+' [id="'+d.db.lookUpDomId(Me)+'"]');if(wn){var Ue=S.createElementNS("http://www.w3.org/2000/svg","a");Ue.setAttributeNS("http://www.w3.org/2000/svg","class",gn.classes.join(" ")),Ue.setAttributeNS("http://www.w3.org/2000/svg","href",gn.link),Ue.setAttributeNS("http://www.w3.org/2000/svg","rel","noopener"),w==="sandbox"?Ue.setAttributeNS("http://www.w3.org/2000/svg","target","_top"):gn.linkTarget&&Ue.setAttributeNS("http://www.w3.org/2000/svg","target",gn.linkTarget);var nn=wn.insert(function(){return Ue},":first-child"),tn=wn.select(".label-container");tn&&nn.append(function(){return tn.node()});var On=wn.select(".label");On&&nn.append(function(){return On.node()})}}})}};var m1={},Ml=function(i,n,l,d,m,w){var k=d.select('[id="'.concat(l,'"]'));Object.keys(i).forEach(function(S){var N=i[S],B="default";N.classes.length>0&&(B=N.classes.join(" "));var q,G=Di(N.styles),K=N.text!==void 0?N.text:N.id;if(an(Nt().flowchart.htmlLabels)){var Q={label:K.replace(/fa[lrsb]?:fa-[\w-]+/g,function(_t){return"<i class='".concat(_t.replace(":"," "),"'></i>")})};(q=El()(k,Q).node()).parentNode.removeChild(q)}else{var xt=m.createElementNS("http://www.w3.org/2000/svg","text");xt.setAttribute("style",G.labelStyle.replace("color:","fill:"));for(var Ct=K.split(on.lineBreakRegex),Bt=0;Bt<Ct.length;Bt++){var Ft=m.createElementNS("http://www.w3.org/2000/svg","tspan");Ft.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),Ft.setAttribute("dy","1em"),Ft.setAttribute("x","1"),Ft.textContent=Ct[Bt],xt.appendChild(Ft)}q=xt}var Lt=0,Et="";switch(N.type){case"round":Lt=5,Et="rect";break;case"square":case"group":default:Et="rect";break;case"diamond":Et="question";break;case"hexagon":Et="hexagon";break;case"odd":case"odd_right":Et="rect_left_inv_arrow";break;case"lean_right":Et="lean_right";break;case"lean_left":Et="lean_left";break;case"trapezoid":Et="trapezoid";break;case"inv_trapezoid":Et="inv_trapezoid";break;case"circle":Et="circle";break;case"ellipse":Et="ellipse";break;case"stadium":Et="stadium";break;case"subroutine":Et="subroutine";break;case"cylinder":Et="cylinder";break;case"doublecircle":Et="doublecircle"}n.setNode(N.id,{labelStyle:G.labelStyle,shape:Et,labelText:K,rx:Lt,ry:Lt,class:B,style:G.style,id:N.id,link:N.link,linkTarget:N.linkTarget,tooltip:w.db.getTooltip(N.id)||"",domId:w.db.lookUpDomId(N.id),haveCallback:N.haveCallback,width:N.type==="group"?500:void 0,dir:N.dir,type:N.type,props:N.props,padding:Nt().flowchart.padding}),g.info("setNode",{labelStyle:G.labelStyle,shape:Et,labelText:K,rx:Lt,ry:Lt,class:B,style:G.style,id:N.id,domId:w.db.lookUpDomId(N.id),width:N.type==="group"?500:void 0,type:N.type,dir:N.dir,props:N.props,padding:Nt().flowchart.padding})})},Mu=function(i,n,l){g.info("abc78 edges = ",i);var d,m,w=0,k={};if(i.defaultStyle!==void 0){var S=Di(i.defaultStyle);d=S.style,m=S.labelStyle}i.forEach(function(N){w++;var B="L-"+N.start+"-"+N.end;k[B]===void 0?(k[B]=0,g.info("abc78 new entry",B,k[B])):(k[B]++,g.info("abc78 new entry",B,k[B]));var q=B+"-"+k[B];g.info("abc78 new link id to be used is",B,q,k[B]);var G="LS-"+N.start,K="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 xt="",Ct="";switch(N.stroke){case"normal":xt="fill:none;",d!==void 0&&(xt=d),m!==void 0&&(Ct=m),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 Bt=Di(N.style);xt=Bt.style,Ct=Bt.labelStyle}Q.style=Q.style+=xt,Q.labelStyle=Q.labelStyle+=Ct,N.interpolate!==void 0?Q.curve=ma(N.interpolate,T.curveLinear):i.defaultInterpolate!==void 0?Q.curve=ma(i.defaultInterpolate,T.curveLinear):Q.curve=ma(m1.curve,T.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(on.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 "+G+" "+K,n.setEdge(N.start,N.end,Q,w)})};const Wo={setConf:function(i){for(var n=Object.keys(i),l=0;l<n.length;l++)m1[n[l]]=i[n[l]]},addVertices:Ml,addEdges:Mu,getClasses:function(i,n){g.info("Extracting classes"),n.db.clear();try{return n.parse(i),n.db.getClasses()}catch(l){return}},draw:function(i,n,l,d){g.info("Drawing flowchart"),d.db.clear(),po.setGen("gen-2"),d.parser.parse(i);var m=d.db.getDirection();m===void 0&&(m="TD");var w,k=Nt().flowchart,S=k.nodeSpacing||50,N=k.rankSpacing||50,B=Nt().securityLevel;B==="sandbox"&&(w=(0,T.select)("#i"+n));var q,G=B==="sandbox"?(0,T.select)(w.nodes()[0].contentDocument.body):(0,T.select)("body"),K=B==="sandbox"?w.nodes()[0].contentDocument:document,Q=new(bi()).Graph({multigraph:!0,compound:!0}).setGraph({rankdir:m,nodesep:S,ranksep:N,marginx:0,marginy:0}).setDefaultEdgeLabel(function(){return{}}),xt=d.db.getSubGraphs();g.info("Subgraphs - ",xt);for(var Ct=xt.length-1;Ct>=0;Ct--)q=xt[Ct],g.info("Subgraph - ",q),d.db.addVertex(q.id,q.title,"group",void 0,q.classes,q.dir);var Bt=d.db.getVertices(),Ft=d.db.getEdges();g.info(Ft);var Lt=0;for(Lt=xt.length-1;Lt>=0;Lt--){q=xt[Lt],(0,T.selectAll)("cluster").append("text");for(var Et=0;Et<q.nodes.length;Et++)g.info("Setting up subgraphs",q.nodes[Et],q.id),Q.setParent(q.nodes[Et],q.id)}Ml(Bt,Q,n,G,K,d),Mu(Ft,Q);var _t=G.select('[id="'.concat(n,'"]'));kr(d.db,_t,n);var qt=G.select("#"+n+" g");if(_l(qt,Q,["point","circle","cross"],"flowchart",n),Ro(Q,_t,k.diagramPadding,k.useMaxWidth),d.db.indexNodes("subGraph"+Lt),!k.htmlLabels)for(var ve=K.querySelectorAll('[id="'+n+'"] .edgeLabel .label'),de=0;de<ve.length;de++){var je=ve[de],te=je.getBBox(),ne=K.createElementNS("http://www.w3.org/2000/svg","rect");ne.setAttribute("rx",0),ne.setAttribute("ry",0),ne.setAttribute("width",te.width),ne.setAttribute("height",te.height),je.insertBefore(ne,je.firstChild)}Object.keys(Bt).forEach(function(ce){var le=Bt[ce];if(le.link){var Gt=(0,T.select)("#"+n+' [id="'+ce+'"]');if(Gt){var oe=K.createElementNS("http://www.w3.org/2000/svg","a");oe.setAttributeNS("http://www.w3.org/2000/svg","class",le.classes.join(" ")),oe.setAttributeNS("http://www.w3.org/2000/svg","href",le.link),oe.setAttributeNS("http://www.w3.org/2000/svg","rel","noopener"),B==="sandbox"?oe.setAttributeNS("http://www.w3.org/2000/svg","target","_top"):le.linkTarget&&oe.setAttributeNS("http://www.w3.org/2000/svg","target",le.linkTarget);var _e=Gt.insert(function(){return oe},":first-child"),we=Gt.select(".label-container");we&&_e.append(function(){return we.node()});var Je=Gt.select(".label");Je&&_e.append(function(){return Je.node()})}}})}};var Ns=p(3602),Du=p.n(Ns);function Os(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 Dl,Oc,Da="",Bc="",Nu="",Lc=[],Ic=[],Ou={},Fc=[],Rc=[],qo="",Ho=["active","done","crit","milestone"],Nl=[],ls=!1,Ol=!1,mo=0,b1=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)},Vo=function(i,n,l,d){if(l.length&&!i.manualEndTime){var m=u()(i.startTime,n,!0);m.add(1,"d");var w=u()(i.endTime,n,!0),k=Sf(m,w,n,l,d);i.endTime=w.toDate(),i.renderEndTime=k}},Sf=function(i,n,l,d,m){for(var w=!1,k=null;i<=n;)w||(k=n.toDate()),(w=b1(i,l,d,m))&&n.add(1,"d"),i.add(1,"d");return k},Bu=function(i,n,l){l=l.trim();var d=/^after\s+([\d\w- ]+)/.exec(l.trim());if(d!==null){var m=null;if(d[1].split(" ").forEach(function(S){var N=Ls(S);N!==void 0&&(m?N.endTime>m.endTime&&(m=N):m=N)}),m)return m.endTime;var w=new Date;return w.setHours(0,0,0,0),w}var k=u()(l,n.trim(),!0);return k.isValid()?k.toDate():(g.debug("Invalid date:"+l),g.debug("With date format:"+n.trim()),new Date)},Lu=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()},v1=function(i,n,l,d){d=d||!1,l=l.trim();var m=u()(l,n.trim(),!0);return m.isValid()?(d&&m.add(1,"d"),m.toDate()):Lu(/^([\d]+)([wdhms]|ms)$/.exec(l.trim()),u()(i))},_1=0,Bs=function(i){return i===void 0?"task"+(_1+=1):i},_i=[],Iu={},Ls=function(i){var n=Iu[i];return _i[n]},x1=function(){for(var i=function(d){var m=_i[d],w="";switch(_i[d].raw.startTime.type){case"prevTaskEnd":var k=Ls(m.prevTaskId);m.startTime=k.endTime;break;case"getStartDate":(w=Bu(0,Da,_i[d].raw.startTime.startData))&&(_i[d].startTime=w)}return _i[d].startTime&&(_i[d].endTime=v1(_i[d].startTime,Da,_i[d].raw.endTime.data,ls),_i[d].endTime&&(_i[d].processed=!0,_i[d].manualEndTime=u()(_i[d].raw.endTime.data,"YYYY-MM-DD",!0).isValid(),Vo(_i[d],Da,Ic,Lc))),_i[d].processed},n=!0,l=0;l<_i.length;l++)i(l),n=n&&_i[l].processed;return n},Fu=function(i,n){i.split(",").forEach(function(l){var d=Ls(l);d!==void 0&&d.classes.push(n)})},Ru=function(i,n){Nl.push(function(){var l=document.querySelector('[id="'.concat(i,'"]'));l!==null&&l.addEventListener("click",function(){n()})}),Nl.push(function(){var l=document.querySelector('[id="'.concat(i,'-text"]'));l!==null&&l.addEventListener("click",function(){n()})})};const Pu={parseDirective:function(i,n,l){zr.parseDirective(this,i,n,l)},getConfig:function(){return Nt().gantt},clear:function(){Fc=[],Rc=[],qo="",Nl=[],_1=0,Dl=void 0,Oc=void 0,_i=[],Da="",Bc="",Nu="",Lc=[],Ic=[],ls=!1,Ol=!1,mo=0,Ou={},Kt()},setDateFormat:function(i){Da=i},getDateFormat:function(){return Da},enableInclusiveEndDates:function(){ls=!0},endDatesAreInclusive:function(){return ls},enableTopAxis:function(){Ol=!0},topAxisEnabled:function(){return Ol},setAxisFormat:function(i){Bc=i},getAxisFormat:function(){return Bc},setTodayMarker:function(i){Nu=i},getTodayMarker:function(){return Nu},setAccTitle:xr,getAccTitle:Ir,setDiagramTitle:wa,getDiagramTitle:dr,setAccDescription:Ur,getAccDescription:pi,addSection:function(i){qo=i,Fc.push(i)},getSections:function(){return Fc},getTasks:function(){for(var i=x1(),n=0;!i&&n<10;)i=x1(),n++;return Rc=_i},addTask:function(i,n){var l={section:qo,type:qo,processed:!1,manualEndTime:!1,renderEndTime:null,raw:{data:n},task:i,classes:[]},d=function(w,k){var S=(k.substr(0,1)===":"?k.substr(1,k.length):k).split(","),N={};ju(S,N,Ho);for(var B=0;B<S.length;B++)S[B]=S[B].trim();switch(S.length){case 1:N.id=Bs(),N.startTime={type:"prevTaskEnd",id:w},N.endTime={data:S[0]};break;case 2:N.id=Bs(),N.startTime={type:"getStartDate",startData:S[0]},N.endTime={data:S[1]};break;case 3:N.id=Bs(S[0]),N.startTime={type:"getStartDate",startData:S[1]},N.endTime={data:S[2]}}return N}(Oc,n);l.raw.startTime=d.startTime,l.raw.endTime=d.endTime,l.id=d.id,l.prevTaskId=Oc,l.active=d.active,l.done=d.done,l.crit=d.crit,l.milestone=d.milestone,l.order=mo,mo++;var m=_i.push(l);Oc=l.id,Iu[l.id]=m-1},findTaskById:Ls,addTaskOrg:function(i,n){var l={section:qo,type:qo,description:i,task:i,classes:[]},d=function(m,w){var k=(w.substr(0,1)===":"?w.substr(1,w.length):w).split(","),S={};ju(k,S,Ho);for(var N=0;N<k.length;N++)k[N]=k[N].trim();var B="";switch(k.length){case 1:S.id=Bs(),S.startTime=m.endTime,B=k[0];break;case 2:S.id=Bs(),S.startTime=Bu(0,Da,k[0]),B=k[1];break;case 3:S.id=Bs(k[0]),S.startTime=Bu(0,Da,k[1]),B=k[2]}return B&&(S.endTime=v1(S.startTime,Da,B,ls),S.manualEndTime=u()(B,"YYYY-MM-DD",!0).isValid(),Vo(S,Da,Ic,Lc)),S}(Dl,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,Dl=l,Rc.push(l)},setIncludes:function(i){Lc=i.toLowerCase().split(/[\s,]+/)},getIncludes:function(){return Lc},setExcludes:function(i){Ic=i.toLowerCase().split(/[\s,]+/)},getExcludes:function(){return Ic},setClickEvent:function(i,n,l){i.split(",").forEach(function(d){(function(m,w,k){if(Nt().securityLevel==="loose"&&w!==void 0){var S=[];if(typeof k=="string"){S=k.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(var N=0;N<S.length;N++){var B=S[N].trim();B.charAt(0)==='"'&&B.charAt(B.length-1)==='"'&&(B=B.substr(1,B.length-2)),S[N]=B}}S.length===0&&S.push(m),Ls(m)!==void 0&&Ru(m,function(){var q;Vn.runFunc.apply(Vn,[w].concat(function(G){if(Array.isArray(G))return Os(G)}(q=S)||function(G){if(typeof Symbol!="undefined"&&G[Symbol.iterator]!=null||G["@@iterator"]!=null)return Array.from(G)}(q)||function(G,K){if(G){if(typeof G=="string")return Os(G,K);var Q=Object.prototype.toString.call(G).slice(8,-1);return Q==="Object"&&G.constructor&&(Q=G.constructor.name),Q==="Map"||Q==="Set"?Array.from(G):Q==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Q)?Os(G,K):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)}),Fu(i,"clickable")},setLink:function(i,n){var l=n;Nt().securityLevel!=="loose"&&(l=(0,ei.N)(n)),i.split(",").forEach(function(d){Ls(d)!==void 0&&(Ru(d,function(){window.open(l,"_self")}),Ou[d]=l)}),Fu(i,"clickable")},getLinks:function(){return Ou},bindFunctions:function(i){Nl.forEach(function(n){n(i)})},durationToDate:Lu,isInvalidDate:b1};function ju(i,n,l){for(var d=!0;d;)d=!1,l.forEach(function(m){var w=new RegExp("^\\s*"+m+"\\s*$");i[0].match(w)&&(n[m]=!0,i.shift(1),d=!0)})}var bo;const Pc={setConf:function(){g.debug("Something is calling, setConf, remove the call")},draw:function(i,n,l,d){var m,w=Nt().gantt,k=Nt().securityLevel;k==="sandbox"&&(m=(0,T.select)("#i"+n));var S=k==="sandbox"?(0,T.select)(m.nodes()[0].contentDocument.body):(0,T.select)("body"),N=k==="sandbox"?m.nodes()[0].contentDocument:document,B=N.getElementById(n);(bo=B.parentElement.offsetWidth)===void 0&&(bo=1200),w.useWidth!==void 0&&(bo=w.useWidth);var q=d.db.getTasks(),G=q.length*(w.barHeight+w.barGap)+2*w.topPadding;B.setAttribute("viewBox","0 0 "+bo+" "+G);for(var K=S.select('[id="'.concat(n,'"]')),Q=(0,T.scaleTime)().domain([(0,T.min)(q,function(Ft){return Ft.startTime}),(0,T.max)(q,function(Ft){return Ft.endTime})]).rangeRound([0,bo-w.leftPadding-w.rightPadding]),xt=[],Ct=0;Ct<q.length;Ct++)xt.push(q[Ct].type);var Bt=xt;xt=function(Ft){for(var Lt={},Et=[],_t=0,qt=Ft.length;_t<qt;++_t)Object.prototype.hasOwnProperty.call(Lt,Ft[_t])||(Lt[Ft[_t]]=!0,Et.push(Ft[_t]));return Et}(xt),q.sort(function(Ft,Lt){var Et=Ft.startTime,_t=Lt.startTime,qt=0;return Et>_t?qt=1:Et<_t&&(qt=-1),qt}),function(Ft,Lt,Et){var _t=w.barHeight,qt=_t+w.barGap,ve=w.topPadding,de=w.leftPadding;(0,T.scaleLinear)().domain([0,xt.length]).range(["#00B9FA","#F95002"]).interpolate(T.interpolateHcl),function(je,te,ne,ce,le,Gt,oe,_e){var we=Gt.reduce(function(Ue,nn){var tn=nn.startTime;return Ue?Math.min(Ue,tn):tn},0),Je=Gt.reduce(function(Ue,nn){var tn=nn.endTime;return Ue?Math.max(Ue,tn):tn},0),dn=d.db.getDateFormat();if(we&&Je){for(var Me=[],gn=null,wn=u()(we);wn.valueOf()<=Je;)d.db.isInvalidDate(wn,dn,oe,_e)?gn?gn.end=wn.clone():gn={start:wn.clone(),end:wn.clone()}:gn&&(Me.push(gn),gn=null),wn.add(1,"d");K.append("g").selectAll("rect").data(Me).enter().append("rect").attr("id",function(Ue){return"exclude-"+Ue.start.format("YYYY-MM-DD")}).attr("x",function(Ue){return Q(Ue.start)+ne}).attr("y",w.gridLineStartPadding).attr("width",function(Ue){var nn=Ue.end.clone().add(1,"day");return Q(nn)-Q(Ue.start)}).attr("height",le-te-w.gridLineStartPadding).attr("transform-origin",function(Ue,nn){return(Q(Ue.start)+ne+.5*(Q(Ue.end)-Q(Ue.start))).toString()+"px "+(nn*je+.5*le).toString()+"px"}).attr("class","exclude-range")}}(qt,ve,de,0,Et,Ft,d.db.getExcludes(),d.db.getIncludes()),function(je,te,ne,ce){var le=(0,T.axisBottom)(Q).tickSize(-ce+te+w.gridLineStartPadding).tickFormat((0,T.timeFormat)(d.db.getAxisFormat()||w.axisFormat||"%Y-%m-%d"));if(K.append("g").attr("class","grid").attr("transform","translate("+je+", "+(ce-50)+")").call(le).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10).attr("dy","1em"),d.db.topAxisEnabled()||w.topAxis){var Gt=(0,T.axisTop)(Q).tickSize(-ce+te+w.gridLineStartPadding).tickFormat((0,T.timeFormat)(d.db.getAxisFormat()||w.axisFormat||"%Y-%m-%d"));K.append("g").attr("class","grid").attr("transform","translate("+je+", "+te+")").call(Gt).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10)}}(de,ve,0,Et),function(je,te,ne,ce,le,Gt,oe){K.append("g").selectAll("rect").data(je).enter().append("rect").attr("x",0).attr("y",function(Me,gn){return Me.order*te+ne-2}).attr("width",function(){return oe-w.rightPadding/2}).attr("height",te).attr("class",function(Me){for(var gn=0;gn<xt.length;gn++)if(Me.type===xt[gn])return"section section"+gn%w.numberSectionStyles;return"section section0"});var _e=K.append("g").selectAll("rect").data(je).enter(),we=d.db.getLinks();if(_e.append("rect").attr("id",function(Me){return Me.id}).attr("rx",3).attr("ry",3).attr("x",function(Me){return Me.milestone?Q(Me.startTime)+ce+.5*(Q(Me.endTime)-Q(Me.startTime))-.5*le:Q(Me.startTime)+ce}).attr("y",function(Me,gn){return Me.order*te+ne}).attr("width",function(Me){return Me.milestone?le:Q(Me.renderEndTime||Me.endTime)-Q(Me.startTime)}).attr("height",le).attr("transform-origin",function(Me,gn){return gn=Me.order,(Q(Me.startTime)+ce+.5*(Q(Me.endTime)-Q(Me.startTime))).toString()+"px "+(gn*te+ne+.5*le).toString()+"px"}).attr("class",function(Me){var gn="";Me.classes.length>0&&(gn=Me.classes.join(" "));for(var wn=0,Ue=0;Ue<xt.length;Ue++)Me.type===xt[Ue]&&(wn=Ue%w.numberSectionStyles);var nn="";return Me.active?Me.crit?nn+=" activeCrit":nn=" active":Me.done?nn=Me.crit?" doneCrit":" done":Me.crit&&(nn+=" crit"),nn.length===0&&(nn=" task"),Me.milestone&&(nn=" milestone "+nn),"task"+(nn+=wn)+" "+gn}),_e.append("text").attr("id",function(Me){return Me.id+"-text"}).text(function(Me){return Me.task}).attr("font-size",w.fontSize).attr("x",function(Me){var gn=Q(Me.startTime),wn=Q(Me.renderEndTime||Me.endTime);Me.milestone&&(gn+=.5*(Q(Me.endTime)-Q(Me.startTime))-.5*le),Me.milestone&&(wn=gn+le);var Ue=this.getBBox().width;return Ue>wn-gn?wn+Ue+1.5*w.leftPadding>oe?gn+ce-5:wn+ce+5:(wn-gn)/2+gn+ce}).attr("y",function(Me,gn){return Me.order*te+w.barHeight/2+(w.fontSize/2-2)+ne}).attr("text-height",le).attr("class",function(Me){var gn=Q(Me.startTime),wn=Q(Me.endTime);Me.milestone&&(wn=gn+le);var Ue=this.getBBox().width,nn="";Me.classes.length>0&&(nn=Me.classes.join(" "));for(var tn=0,On=0;On<xt.length;On++)Me.type===xt[On]&&(tn=On%w.numberSectionStyles);var cr="";return Me.active&&(cr=Me.crit?"activeCritText"+tn:"activeText"+tn),Me.done?cr=Me.crit?cr+" doneCritText"+tn:cr+" doneText"+tn:Me.crit&&(cr=cr+" critText"+tn),Me.milestone&&(cr+=" milestoneText"),Ue>wn-gn?wn+Ue+1.5*w.leftPadding>oe?nn+" taskTextOutsideLeft taskTextOutside"+tn+" "+cr:nn+" taskTextOutsideRight taskTextOutside"+tn+" "+cr+" width-"+Ue:nn+" taskText taskText"+tn+" "+cr+" width-"+Ue}),Nt().securityLevel==="sandbox"){var Je;Je=(0,T.select)("#i"+n),(0,T.select)(Je.nodes()[0].contentDocument.body);var dn=Je.nodes()[0].contentDocument;_e.filter(function(Me){return we[Me.id]!==void 0}).each(function(Me){var gn=dn.querySelector("#"+Me.id),wn=dn.querySelector("#"+Me.id+"-text"),Ue=gn.parentNode,nn=dn.createElement("a");nn.setAttribute("xlink:href",we[Me.id]),nn.setAttribute("target","_top"),Ue.appendChild(nn),nn.appendChild(gn),nn.appendChild(wn)})}}(Ft,qt,ve,de,_t,0,Lt),function(je,te){for(var ne=[],ce=0,le=0;le<xt.length;le++)ne[le]=[xt[le],(Gt=xt[le],oe=Bt,function(_e){for(var we=_e.length,Je={};we;)Je[_e[--we]]=(Je[_e[we]]||0)+1;return Je}(oe)[Gt]||0)];var Gt,oe;K.append("g").selectAll("text").data(ne).enter().append(function(_e){var we=_e[0].split(on.lineBreakRegex),Je=-(we.length-1)/2,dn=N.createElementNS("http://www.w3.org/2000/svg","text");dn.setAttribute("dy",Je+"em");for(var Me=0;Me<we.length;Me++){var gn=N.createElementNS("http://www.w3.org/2000/svg","tspan");gn.setAttribute("alignment-baseline","central"),gn.setAttribute("x","10"),Me>0&&gn.setAttribute("dy","1em"),gn.textContent=we[Me],dn.appendChild(gn)}return dn}).attr("x",10).attr("y",function(_e,we){if(!(we>0))return _e[1]*je/2+te;for(var Je=0;Je<we;Je++)return ce+=ne[we-1][1],_e[1]*je/2+ce*je+te}).attr("font-size",w.sectionFontSize).attr("font-size",w.sectionFontSize).attr("class",function(_e){for(var we=0;we<xt.length;we++)if(_e[0]===xt[we])return"sectionTitle sectionTitle"+we%w.numberSectionStyles;return"sectionTitle"})}(qt,ve),function(je,te,ne,ce){var le=d.db.getTodayMarker();if(le!=="off"){var Gt=K.append("g").attr("class","today"),oe=new Date,_e=Gt.append("line");_e.attr("x1",Q(oe)+je).attr("x2",Q(oe)+je).attr("y1",w.titleTopMargin).attr("y2",ce-w.titleTopMargin).attr("class","today"),le!==""&&_e.attr("style",le.replace(/,/g,";"))}}(de,0,0,Et)}(q,bo,G),Qi(K,0,bo,w.useMaxWidth),K.append("text").text(d.db.getDiagramTitle()).attr("x",bo/2).attr("y",w.titleTopMargin).attr("class","titleText"),kr(d.db,K,n)}};var k1=p(9959),w1=p.n(k1),T1="",jc=!1;const za={setMessage:function(i){g.debug("Setting message to: "+i),T1=i},getMessage:function(){return T1},setInfo:function(i){jc=i},getInfo:function(){return jc}},zu={draw:function(i,n,l,d){try{g.debug(`Renering info diagram
`+i);var m,w=Nt().securityLevel;w==="sandbox"&&(m=(0,T.select)("#i"+n));var k=w==="sandbox"?(0,T.select)(m.nodes()[0].contentDocument.body):(0,T.select)("body"),S=(w==="sandbox"&&m.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){g.error("Error while rendering info diagram"),g.error(N.message)}}};var Yu=p(6765),Uu=p.n(Yu),$u=p(7062),E1=p.n($u),Bl={},Is=!1;const Za={parseDirective:function(i,n,l){zr.parseDirective(this,i,n,l)},getConfig:function(){return Nt().pie},addSection:function(i,n){i=on.sanitizeText(i,Nt()),Bl[i]===void 0&&(Bl[i]=n,g.debug("Added new section :",i))},getSections:function(){return Bl},cleanupValue:function(i){return i.substring(0,1)===":"&&(i=i.substring(1).trim()),Number(i.trim())},clear:function(){Bl={},Is=!1,Kt()},setAccTitle:xr,getAccTitle:Ir,setDiagramTitle:wa,getDiagramTitle:dr,setShowData:function(i){Is=i},getShowData:function(){return Is},getAccDescription:pi,setAccDescription:Ur};var vo,Qa=Nt();const Wu={draw:function(i,n,l,d){try{Qa=Nt(),g.debug(`Rendering info diagram
`+i);var m,w=Nt().securityLevel;w==="sandbox"&&(m=(0,T.select)("#i"+n));var k=w==="sandbox"?(0,T.select)(m.nodes()[0].contentDocument.body):(0,T.select)("body"),S=w==="sandbox"?m.nodes()[0].contentDocument:document;d.db.clear(),d.parser.parse(i),g.debug("Parsed info diagram");var N=S.getElementById(n);(vo=N.parentElement.offsetWidth)===void 0&&(vo=1200),Qa.useWidth!==void 0&&(vo=Qa.useWidth),Qa.pie.useWidth!==void 0&&(vo=Qa.pie.useWidth);var B=k.select("#"+n);Qi(B,0,vo,Qa.pie.useMaxWidth),kr(d.db,B,n),N.setAttribute("viewBox","0 0 "+vo+" 450");var q=Math.min(vo,450)/2-40,G=B.append("g").attr("transform","translate("+vo/2+",225)"),K=d.db.getSections(),Q=0;Object.keys(K).forEach(function(_t){Q+=K[_t]});var xt=Qa.themeVariables,Ct=[xt.pie1,xt.pie2,xt.pie3,xt.pie4,xt.pie5,xt.pie6,xt.pie7,xt.pie8,xt.pie9,xt.pie10,xt.pie11,xt.pie12],Bt=(0,T.scaleOrdinal)().range(Ct),Ft=(0,T.pie)().value(function(_t){return _t[1]})(Object.entries(K)),Lt=(0,T.arc)().innerRadius(0).outerRadius(q);G.selectAll("mySlices").data(Ft).enter().append("path").attr("d",Lt).attr("fill",function(_t){return Bt(_t.data[0])}).attr("class","pieCircle"),G.selectAll("mySlices").data(Ft).enter().append("text").text(function(_t){return(_t.data[1]/Q*100).toFixed(0)+"%"}).attr("transform",function(_t){return"translate("+Lt.centroid(_t)+")"}).style("text-anchor","middle").attr("class","slice"),G.append("text").text(d.db.getDiagramTitle()).attr("x",0).attr("y",-200).attr("class","pieTitleText");var Et=G.selectAll(".legend").data(Bt.domain()).enter().append("g").attr("class","legend").attr("transform",function(_t,qt){return"translate(216,"+(22*qt-22*Bt.domain().length/2)+")"});Et.append("rect").attr("width",18).attr("height",18).style("fill",Bt).style("stroke",Bt),Et.data(Ft).append("text").attr("x",22).attr("y",14).text(function(_t){return d.db.getShowData()||Qa.showData||Qa.pie.showData?_t.data[0]+" ["+_t.data[1]+"]":_t.data[0]})}catch(_t){g.error("Error while rendering info diagram"),g.error(_t)}}};var qu=p(3176),Ll=p.n(qu),us=[],ta={},Fs={},_o={},zc={};const Ya={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){zr.parseDirective(this,i,n,l)},getConfig:function(){return Nt().req},addRequirement:function(i,n){return Fs[i]===void 0&&(Fs[i]={name:i,type:n,id:ta.id,text:ta.text,risk:ta.risk,verifyMethod:ta.verifyMethod}),ta={},Fs[i]},getRequirements:function(){return Fs},setNewReqId:function(i){ta!==void 0&&(ta.id=i)},setNewReqText:function(i){ta!==void 0&&(ta.text=i)},setNewReqRisk:function(i){ta!==void 0&&(ta.risk=i)},setNewReqVerifyMethod:function(i){ta!==void 0&&(ta.verifyMethod=i)},setAccTitle:xr,getAccTitle:Ir,setAccDescription:Ur,getAccDescription:pi,addElement:function(i){return zc[i]===void 0&&(zc[i]={name:i,type:_o.type,docRef:_o.docRef},g.info("Added new requirement: ",i)),_o={},zc[i]},getElements:function(){return zc},setNewElementType:function(i){_o!==void 0&&(_o.type=i)},setNewElementDocRef:function(i){_o!==void 0&&(_o.docRef=i)},addRelationship:function(i,n,l){us.push({type:i,src:n,dst:l})},getRelationships:function(){return us},clear:function(){us=[],ta={},Fs={},_o={},zc={},Kt()}};var xo={CONTAINS:"contains",ARROW:"arrow"};const S1=xo;var fi={},ko=0,C1=function(i,n){return i.insert("rect","#"+n).attr("class","req reqBox").attr("x",0).attr("y",0).attr("width",fi.rect_min_width+"px").attr("height",fi.rect_min_height+"px")},A1=function(i,n,l){var d=fi.rect_min_width/2,m=i.append("text").attr("class","req reqLabel reqTitle").attr("id",n).attr("x",d).attr("y",fi.rect_padding).attr("dominant-baseline","hanging"),w=0;l.forEach(function(S){w==0?m.append("tspan").attr("text-anchor","middle").attr("x",fi.rect_min_width/2).attr("dy",0).text(S):m.append("tspan").attr("text-anchor","middle").attr("x",fi.rect_min_width/2).attr("dy",.75*fi.line_height).text(S),w++});var k=1.5*fi.rect_padding+w*fi.line_height*.75;return i.append("line").attr("class","req-title-line").attr("x1","0").attr("x2",fi.rect_min_width).attr("y1",k).attr("y2",k),{titleNode:m,y:k}},M1=function(i,n,l,d){var m=i.append("text").attr("class","req reqLabel").attr("id",n).attr("x",fi.rect_padding).attr("y",d).attr("dominant-baseline","hanging"),w=0,k=[];return l.forEach(function(S){for(var N=S.length;N>30&&w<3;){var B=S.substring(0,30);N=(S=S.substring(30,S.length)).length,k[k.length]=B,w++}if(w==3){var q=k[k.length-1];k[k.length-1]=q.substring(0,q.length-4)+"..."}else k[k.length]=S;w=0}),k.forEach(function(S){m.append("tspan").attr("x",fi.rect_padding).attr("dy",fi.line_height).text(S)}),m},Rs=function(i){return i.replace(/\s/g,"").replace(/\./g,"_")};const wo={draw:function(i,n,l,d){fi=Nt().requirement,d.db.clear(),d.parser.parse(i);var m,w=fi.securityLevel;w==="sandbox"&&(m=(0,T.select)("#i"+n));var k=w==="sandbox"?(0,T.select)(m.nodes()[0].contentDocument.body):(0,T.select)("body"),S=(w==="sandbox"&&m.nodes()[0].contentDocument,k.select("[id='".concat(n,"']")));(function(Et,_t){var qt=Et.append("defs").append("marker").attr("id",xo.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");qt.append("circle").attr("cx",_t.line_height/2).attr("cy",_t.line_height/2).attr("r",_t.line_height/2).attr("fill","none"),qt.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),qt.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),Et.append("defs").append("marker").attr("id",xo.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,fi);var N,B,q,G=new(bi()).Graph({multigraph:!1,compound:!1,directed:!0}).setGraph({rankdir:fi.layoutDirection,marginx:20,marginy:20,nodesep:100,edgesep:100,ranksep:100}).setDefaultEdgeLabel(function(){return{}}),K=d.db.getRequirements(),Q=d.db.getElements(),xt=d.db.getRelationships();N=K,B=G,q=S,Object.keys(N).forEach(function(Et){var _t=N[Et];Et=Rs(Et),g.info("Added new requirement: ",Et);var qt=q.append("g").attr("id",Et),ve=C1(qt,"req-"+Et),de=[],je=A1(qt,Et+"_title",["<<".concat(_t.type,">>"),"".concat(_t.name)]);de.push(je.titleNode);var te=M1(qt,Et+"_body",["Id: ".concat(_t.id),"Text: ".concat(_t.text),"Risk: ".concat(_t.risk),"Verification: ".concat(_t.verifyMethod)],je.y);de.push(te);var ne=ve.node().getBBox();B.setNode(Et,{width:ne.width,height:ne.height,shape:"rect",id:Et})}),function(Et,_t,qt){Object.keys(Et).forEach(function(ve){var de=Et[ve],je=Rs(ve),te=qt.append("g").attr("id",je),ne="element-"+je,ce=C1(te,ne),le=[],Gt=A1(te,ne+"_title",["<<Element>>","".concat(ve)]);le.push(Gt.titleNode);var oe=M1(te,ne+"_body",["Type: ".concat(de.type||"Not Specified"),"Doc Ref: ".concat(de.docRef||"None")],Gt.y);le.push(oe);var _e=ce.node().getBBox();_t.setNode(je,{width:_e.width,height:_e.height,shape:"rect",id:je})})}(Q,G,S),function(Et,_t){Et.forEach(function(qt){var ve=Rs(qt.src),de=Rs(qt.dst);_t.setEdge(ve,de,{relationship:qt})})}(xt,G),Ss().layout(G),function(Et,_t){_t.nodes().forEach(function(qt){qt!==void 0&&_t.node(qt)!==void 0&&(Et.select("#"+qt),Et.select("#"+qt).attr("transform","translate("+(_t.node(qt).x-_t.node(qt).width/2)+","+(_t.node(qt).y-_t.node(qt).height/2)+" )"))})}(S,G),xt.forEach(function(Et){(function(_t,qt,ve,de,je){var te=ve.edge(Rs(qt.src),Rs(qt.dst)),ne=(0,T.line)().x(function(le){return le.x}).y(function(le){return le.y}),ce=_t.insert("path","#"+de).attr("class","er relationshipLine").attr("d",ne(te.points)).attr("fill","none");qt.type==je.db.Relationships.CONTAINS?ce.attr("marker-start","url("+on.getUrl(fi.arrowMarkerAbsolute)+"#"+qt.type+"_line_ending)"):(ce.attr("stroke-dasharray","10,7"),ce.attr("marker-end","url("+on.getUrl(fi.arrowMarkerAbsolute)+"#"+S1.ARROW+"_line_ending)")),function(le,Gt,oe,_e){var we=Gt.node().getTotalLength(),Je=Gt.node().getPointAtLength(.5*we),dn="rel"+ko;ko++;var Me=le.append("text").attr("class","req relationshipLabel").attr("id",dn).attr("x",Je.x).attr("y",Je.y).attr("text-anchor","middle").attr("dominant-baseline","middle").text(_e).node().getBBox();le.insert("rect","#"+dn).attr("class","req reqLabelBox").attr("x",Je.x-Me.width/2).attr("y",Je.y-Me.height/2).attr("width",Me.width).attr("height",Me.height).attr("fill","white").attr("fill-opacity","85%")}(_t,ce,0,"<<".concat(qt.type,">>"))})(S,Et,G,n,d)});var Ct=fi.rect_padding,Bt=S.node().getBBox(),Ft=Bt.width+2*Ct,Lt=Bt.height+2*Ct;Qi(S,0,Ft,fi.useMaxWidth),S.attr("viewBox","".concat(Bt.x-Ct," ").concat(Bt.y-Ct," ").concat(Ft," ").concat(Lt)),kr(d.db,S,n)}};var Il,Hu=p(6876),Vu=p.n(Hu),Yc=void 0,Go={},Ua=[],Cf=[],Ti=!1,Uc=function(i,n,l,d){var m=Go[i];m&&n===m.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}),Go[i]={name:n,description:l.text,wrap:l.wrap===void 0&&hs()||!!l.wrap,prevActor:Yc,links:{},properties:{},actorCnt:null,rectData:null,type:d||"participant"},Yc&&Go[Yc]&&(Go[Yc].nextActor=i),Yc=i)},qe=function(i){var n,l=0;for(n=0;n<Ua.length;n++)Ua[n].type===js.ACTIVE_START&&Ua[n].from.actor===i&&l++,Ua[n].type===js.ACTIVE_END&&Ua[n].from.actor===i&&l--;return l},Fi=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===js.ACTIVE_END){var m=qe(i.actor);if(m<1){var w=new Error("Trying to inactivate an inactive participant ("+i.actor+")");throw w.hash={text:"->>-",token:"->>-",line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["'ACTIVE_PARTICIPANT'"]},w}}return Ua.push({from:i,to:n,message:l.text,wrap:l.wrap===void 0&&hs()||!!l.wrap,type:d}),!0},Ps=function(i){return Go[i]},hs=function(){return Il!==void 0?Il:Nt().sequence.wrap},js={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},$i=function(i,n,l){var d={actor:i,placement:n,message:l.text,wrap:l.wrap===void 0&&hs()||!!l.wrap},m=[].concat(i,i);Cf.push(d),Ua.push({from:m[0],to:m[1],message:l.text,wrap:l.wrap===void 0&&hs()||!!l.wrap,type:js.NOTE,placement:n})},$c=function(i,n){var l=Ps(i);try{var d=hr(n.text,Nt());d=(d=d.replace(/&amp;/g,"&")).replace(/&equals;/g,"="),Fl(l,JSON.parse(d))}catch(m){g.error("error while parsing actor link text",m)}};function Fl(i,n){if(i.links==null)i.links=n;else for(var l in n)i.links[l]=n[l]}var Wc=function(i,n){var l=Ps(i);try{var d=hr(n.text,Nt());qc(l,JSON.parse(d))}catch(m){g.error("error while parsing actor properties text",m)}};function qc(i,n){if(i.properties==null)i.properties=n;else for(var l in n)i.properties[l]=n[l]}var Rl=function(i,n){var l=Ps(i),d=document.getElementById(n.text);try{var m=d.innerHTML,w=JSON.parse(m);w.properties&&qc(l,w.properties),w.links&&Fl(l,w.links)}catch(k){g.error("error while parsing actor details text",k)}};const D1={addActor:Uc,addMessage:function(i,n,l,d){Ua.push({from:i,to:n,message:l.text,wrap:l.wrap===void 0&&hs()||!!l.wrap,answer:d})},addSignal:Fi,addLinks:$c,addDetails:Rl,addProperties:Wc,autoWrap:hs,setWrap:function(i){Il=i},enableSequenceNumbers:function(){Ti=!0},disableSequenceNumbers:function(){Ti=!1},showSequenceNumbers:function(){return Ti},getMessages:function(){return Ua},getActors:function(){return Go},getActor:Ps,getActorKeys:function(){return Object.keys(Go)},getActorProperty:function(i,n){if(i!==void 0&&i.properties!==void 0)return i.properties[n]},getAccTitle:Ir,getDiagramTitle:dr,setDiagramTitle:wa,parseDirective:function(i,n,l){zr.parseDirective(this,i,n,l)},getConfig:function(){return Nt().sequence},clear:function(){Go={},Ua=[],Ti=!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 g.debug("parseMessage:",l),l},LINETYPE:js,ARROWTYPE:{FILLED:0,OPEN:1},PLACEMENT:{LEFTOF:0,RIGHTOF:1,OVER:2},addNote:$i,setAccTitle:xr,apply:function i(n){if(n instanceof Array)n.forEach(function(l){i(l)});else switch(n.type){case"sequenceIndex":Ua.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":Uc(n.actor,n.actor,n.description,"participant");break;case"addActor":Uc(n.actor,n.actor,n.description,"actor");break;case"activeStart":case"activeEnd":Fi(n.actor,void 0,void 0,n.signalType);break;case"addNote":$i(n.actor,n.placement,n.text);break;case"addLinks":$c(n.actor,n.text);break;case"addALink":(function(l,d){var m=Ps(l);try{var w={},k=hr(d.text,Nt()),S=k.indexOf("@"),N=(k=(k=k.replace(/&amp;/g,"&")).replace(/&equals;/g,"=")).slice(0,S-1).trim(),B=k.slice(S+1).trim();w[N]=B,Fl(m,w)}catch(q){g.error("error while parsing actor link text",q)}})(n.actor,n.text);break;case"addProperties":Wc(n.actor,n.text);break;case"addDetails":Rl(n.actor,n.text);break;case"addMessage":Fi(n.from,n.to,n.msg,n.signalType);break;case"loopStart":Fi(void 0,void 0,n.loopText,n.signalType);break;case"loopEnd":case"rectEnd":case"optEnd":case"altEnd":case"parEnd":case"criticalEnd":case"breakEnd":Fi(void 0,void 0,void 0,n.signalType);break;case"rectStart":Fi(void 0,void 0,n.color,n.signalType);break;case"optStart":Fi(void 0,void 0,n.optText,n.signalType);break;case"altStart":case"else":Fi(void 0,void 0,n.altText,n.signalType);break;case"setAccTitle":xr(n.text);break;case"parStart":case"and":Fi(void 0,void 0,n.parText,n.signalType);break;case"criticalStart":Fi(void 0,void 0,n.criticalText,n.signalType);break;case"option":Fi(void 0,void 0,n.optionText,n.signalType);break;case"breakStart":Fi(void 0,void 0,n.breakText,n.signalType)}},setAccDescription:Ur,getAccDescription:pi};var Gu=[],To=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},zs=function(i,n){var l;l=function(){var d=document.querySelectorAll(i);d.length!==0&&(d[0].addEventListener("mouseover",function(){N1("actor"+n+"_popup")}),d[0].addEventListener("mouseout",function(){fs("actor"+n+"_popup")}))},Gu.push(l)},Af=function(i,n,l,d){var m=i.append("image");m.attr("x",n),m.attr("y",l);var w=(0,ei.N)(d);m.attr("xlink:href",w)},Mf=function(i,n,l,d){var m=i.append("use");m.attr("x",n),m.attr("y",l);var w=(0,ei.N)(d);m.attr("xlink:href","#"+w)},N1=function(i){var n=document.getElementById(i);n!=null&&(n.style.display="block")},fs=function(i){var n=document.getElementById(i);n!=null&&(n.style.display="none")},ds=function(i,n){var l=0,d=0,m=n.text.split(on.lineBreakRegex),w=[],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<m.length;N++){var B=m[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 G=q.append("tspan");G.attr("x",n.x),n.fill!==void 0&&G.attr("fill",n.fill),G.text(B)}else q.text(B);n.valign!==void 0&&n.textMargin!==void 0&&n.textMargin>0&&(d+=(q._groups||q)[0][0].getBBox().height,l=d),w.push(q)}return w},O1=function(i,n){var l=i.append("polygon");return l.attr("points",function(d,m,w,k,S){return d+","+m+" "+(d+w)+","+m+" "+(d+w)+","+(m+k-7)+" "+(d+w-8.4)+","+(m+k)+" "+d+","+(m+k)}(n.x,n.y,n.width,n.height)),l.attr("class","labelBox"),n.y=n.y+n.height/2,ds(i,n),l},Ka=-1,Ys=function(i,n){i.selectAll&&i.selectAll(".actor-line").attr("class","200").attr("y2",n-55)},Df=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}},Nf=function(){return{x:0,y:0,fill:"#EDF2AE",stroke:"#666",width:100,anchor:"start",height:100,rx:0,ry:0}},B1=function(){function i(m,w,k,S,N,B,q){d(w.append("text").attr("x",k+N/2).attr("y",S+B/2+5).style("text-anchor","middle").text(m),q)}function n(m,w,k,S,N,B,q,G){for(var K=G.actorFontSize,Q=G.actorFontFamily,xt=G.actorFontWeight,Ct=K&&K.replace?K.replace("px",""):K,Bt=m.split(on.lineBreakRegex),Ft=0;Ft<Bt.length;Ft++){var Lt=Ft*Ct-Ct*(Bt.length-1)/2,Et=w.append("text").attr("x",k+N/2).attr("y",S).style("text-anchor","middle").style("font-size",K).style("font-weight",xt).style("font-family",Q);Et.append("tspan").attr("x",k+N/2).attr("dy",Lt).text(Bt[Ft]),Et.attr("y",S+B/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),d(Et,q)}}function l(m,w,k,S,N,B,q,G){var K=w.append("switch"),Q=K.append("foreignObject").attr("x",k).attr("y",S).attr("width",N).attr("height",B).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(m),n(m,K,k,S,N,B,q,G),d(Q,q)}function d(m,w){for(var k in w)w.hasOwnProperty(k)&&m.attr(k,w[k])}return function(m){return m.textPlacement==="fo"?l:m.textPlacement==="old"?i:n}}(),Xu=function(){function i(m,w,k,S,N,B,q){d(w.append("text").attr("x",k).attr("y",S).style("text-anchor","start").text(m),q)}function n(m,w,k,S,N,B,q,G){for(var K=G.actorFontSize,Q=G.actorFontFamily,xt=G.actorFontWeight,Ct=m.split(on.lineBreakRegex),Bt=0;Bt<Ct.length;Bt++){var Ft=Bt*K-K*(Ct.length-1)/2,Lt=w.append("text").attr("x",k).attr("y",S).style("text-anchor","start").style("font-size",K).style("font-weight",xt).style("font-family",Q);Lt.append("tspan").attr("x",k).attr("dy",Ft).text(Ct[Bt]),Lt.attr("y",S+B/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),d(Lt,q)}}function l(m,w,k,S,N,B,q,G){var K=w.append("switch"),Q=K.append("foreignObject").attr("x",k).attr("y",S).attr("width",N).attr("height",B).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(m),n(m,K,k,S,0,B,q,G),d(Q,q)}function d(m,w){for(var k in w)w.hasOwnProperty(k)&&m.attr(k,w[k])}return function(m){return m.textPlacement==="fo"?l:m.textPlacement==="old"?i:n}}();const Pl=To,Zu=function(i,n,l){switch(n.type){case"actor":return function(d,m,w){var k=m.x+m.width/2;m.y===0&&(Ka++,d.append("line").attr("id","actor"+Ka).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=m.x,N.y=m.y,N.fill="#eaeaea",N.width=m.width,N.height=m.height,N.class="actor",N.rx=3,N.ry=3,S.append("line").attr("id","actor-man-torso"+Ka).attr("x1",k).attr("y1",m.y+25).attr("x2",k).attr("y2",m.y+45),S.append("line").attr("id","actor-man-arms"+Ka).attr("x1",k-18).attr("y1",m.y+33).attr("x2",k+18).attr("y2",m.y+33),S.append("line").attr("x1",k-18).attr("y1",m.y+60).attr("x2",k).attr("y2",m.y+45),S.append("line").attr("x1",k).attr("y1",m.y+45).attr("x2",k+16).attr("y2",m.y+60);var B=S.append("circle");B.attr("cx",m.x+m.width/2),B.attr("cy",m.y+10),B.attr("r",15),B.attr("width",m.width),B.attr("height",m.height);var q=S.node().getBBox();return m.height=q.height,B1(w)(m.description,S,N.x,N.y+35,N.width,N.height,{class:"actor"},w),m.height}(i,n,l);case"participant":return function(d,m,w){var k=m.x+m.width/2,S=d.append("g"),N=S;m.y===0&&(Ka++,N.append("line").attr("id","actor"+Ka).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"),m.actorCnt=Ka,m.links!=null&&(N.attr("id","root-"+Ka),zs("#root-"+Ka,Ka)));var B={x:0,y:0,fill:"#EDF2AE",stroke:"#666",width:100,anchor:"start",height:100,rx:0,ry:0},q="actor";m.properties!=null&&m.properties.class?q=m.properties.class:B.fill="#eaeaea",B.x=m.x,B.y=m.y,B.width=m.width,B.height=m.height,B.class=q,B.rx=3,B.ry=3;var G=To(N,B);if(m.rectData=B,m.properties!=null&&m.properties.icon){var K=m.properties.icon.trim();K.charAt(0)==="@"?Mf(N,B.x+B.width-20,B.y+10,K.substr(1)):Af(N,B.x+B.width-20,B.y+10,K)}B1(w)(m.description,N,B.x,B.y,B.width,B.height,{class:"actor"},w);var Q=m.height;if(G.node){var xt=G.node().getBBox();m.height=xt.height,Q=xt.height}return Q}(i,n,l)}},Of=function(i,n,l,d,m){if(n.links===void 0||n.links===null||Object.keys(n.links).length===0)return{height:0,width:0};var w=n.links,k=n.actorCnt,S=n.rectData,N="none";m&&(N="block !important");var B=i.append("g");B.attr("id","actor"+k+"_popup"),B.attr("class","actorPopupMenu"),B.attr("display",N),zs("#actor"+k+"_popup",k);var q="";S.class!==void 0&&(q=" "+S.class);var G=S.width>l?S.width:l,K=B.append("rect");if(K.attr("class","actorPopupMenuPanel"+q),K.attr("x",S.x),K.attr("y",S.height),K.attr("fill",S.fill),K.attr("stroke",S.stroke),K.attr("width",G),K.attr("height",S.height),K.attr("rx",S.rx),K.attr("ry",S.ry),w!=null){var Q=20;for(var xt in w){var Ct=B.append("a"),Bt=(0,ei.N)(w[xt]);Ct.attr("xlink:href",Bt),Ct.attr("target","_blank"),Xu(d)(xt,Ct,S.x+10,S.height+Q,G,20,{class:"actor"},d),Q+=30}}return K.attr("height",Q),{height:S.height+Q,width:G}},Bf=function(i){return i.append("g")},Lf=function(i,n,l,d,m){var w={x:0,y:0,fill:"#EDF2AE",stroke:"#666",width:100,anchor:"start",height:100,rx:0,ry:0},k=n.anchored;w.x=n.startx,w.y=n.starty,w.class="activation"+m%3,w.width=n.stopx-n.startx,w.height=l-n.starty,To(k,w)},Us=function(i,n,l,d){var m=d.boxMargin,w=d.boxTextMargin,k=d.labelBoxHeight,S=d.labelBoxWidth,N=d.messageFontFamily,B=d.messageFontSize,q=d.messageFontWeight,G=i.append("g"),K=function(Ct,Bt,Ft,Lt){return G.append("line").attr("x1",Ct).attr("y1",Bt).attr("x2",Ft).attr("y2",Lt).attr("class","loopLine")};K(n.startx,n.starty,n.stopx,n.starty),K(n.stopx,n.starty,n.stopx,n.stopy),K(n.startx,n.stopy,n.stopx,n.stopy),K(n.startx,n.starty,n.startx,n.stopy),n.sections!==void 0&&n.sections.forEach(function(Ct){K(n.startx,Ct.y,n.stopx,Ct.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=B,Q.fontWeight=q,Q.anchor="middle",Q.valign="middle",Q.tspan=!1,Q.width=S||50,Q.height=k||20,Q.textMargin=w,Q.class="labelText",O1(G,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+m+w,Q.anchor="middle",Q.valign="middle",Q.textMargin=w,Q.class="loopText",Q.fontFamily=N,Q.fontSize=B,Q.fontWeight=q,Q.wrap=!0;var xt=ds(G,Q);return n.sectionTitles!==void 0&&n.sectionTitles.forEach(function(Ct,Bt){if(Ct.message){Q.text=Ct.message,Q.x=n.startx+(n.stopx-n.startx)/2,Q.y=n.sections[Bt].y+m+w,Q.class="loopText",Q.anchor="middle",Q.valign="middle",Q.tspan=!1,Q.fontFamily=N,Q.fontSize=B,Q.fontWeight=q,Q.wrap=n.wrap,xt=ds(G,Q);var Ft=Math.round(xt.map(function(Lt){return(Lt._groups||Lt)[0][0].getBBox().height}).reduce(function(Lt,Et){return Lt+Et}));n.sections[Bt].height+=Ft-(m+w)}}),n.height=Math.round(n.stopy-n.starty),G},If=function(i,n){To(i,{x:n.startx,y:n.starty,width:n.stopx-n.startx,height:n.stopy-n.starty,fill:n.fill,class:"rect"}).lower()},L1=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")},Qu=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")},I1=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)},F1=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")},fa=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")},jl=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")},ps=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")},Ku=Df,Ff=Nf;ei.N;var fe={},ln={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,R1(Nt())},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 m=this,w=0;function k(S){return function(N){w++;var B=m.sequenceItems.length-w+1;m.updateVal(N,"starty",n-B*fe.boxMargin,Math.min),m.updateVal(N,"stopy",d+B*fe.boxMargin,Math.max),m.updateVal(ln.data,"startx",i-B*fe.boxMargin,Math.min),m.updateVal(ln.data,"stopx",l+B*fe.boxMargin,Math.max),S!=="activation"&&(m.updateVal(N,"startx",i-B*fe.boxMargin,Math.min),m.updateVal(N,"stopx",l+B*fe.boxMargin,Math.max),m.updateVal(ln.data,"starty",n-B*fe.boxMargin,Math.min),m.updateVal(ln.data,"stopy",d+B*fe.boxMargin,Math.max))}}this.sequenceItems.forEach(k()),this.activations.forEach(k("activation"))},insert:function(i,n,l,d){var m=Math.min(i,l),w=Math.max(i,l),k=Math.min(n,d),S=Math.max(n,d);this.updateVal(ln.data,"startx",m,Math.min),this.updateVal(ln.data,"starty",k,Math.min),this.updateVal(ln.data,"stopx",w,Math.max),this.updateVal(ln.data,"stopy",S,Math.max),this.updateBounds(m,k,w,S)},newActivation:function(i,n,l){var d=l[i.from.actor],m=zl(i.from.actor).length||0,w=d.x+d.width/2+(m-1)*fe.activationWidth/2;this.activations.push({startx:w,starty:this.verticalPos+2,stopx:w+fe.activationWidth,stopy:void 0,actor:i.from.actor,anchored:Bf(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:ln.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}}},$s=function(i){return{fontFamily:i.messageFontFamily,fontSize:i.messageFontSize,fontWeight:i.messageFontWeight}},Ws=function(i){return{fontFamily:i.noteFontFamily,fontSize:i.noteFontSize,fontWeight:i.noteFontWeight}},Ju=function(i){return{fontFamily:i.actorFontFamily,fontSize:i.actorFontSize,fontWeight:i.actorFontWeight}},Eo=function(i,n,l,d,m,w){if(m.hideUnusedParticipants===!0){var k=new Set;w.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,B=0,q=0;q<l.length;q++){var G=n[l[q]];G.width=G.width||fe.width,G.height=Math.max(G.height||fe.height,fe.height),G.margin=G.margin||fe.actorMargin,G.x=S+N,G.y=d;var K=Zu(i,G,fe);B=Math.max(B,K),ln.insert(G.x,d,G.x+G.width,G.height),S+=G.width,N+=G.margin,ln.models.addActor(G)}ln.bumpVerticalPos(B)},th=function(i,n,l,d){for(var m=0,w=0,k=0;k<l.length;k++){var S=n[l[k]],N=Rf(S),B=Of(i,S,N,fe,fe.forceMenus,d);B.height>m&&(m=B.height),B.width+S.x>w&&(w=B.width+S.x)}return{maxHeight:m,maxWidth:w}},R1=function(i){ee(fe,i),i.fontFamily&&(fe.actorFontFamily=fe.noteFontFamily=fe.messageFontFamily=i.fontFamily),i.fontSize&&(fe.actorFontSize=fe.noteFontSize=fe.messageFontSize=i.fontSize),i.fontWeight&&(fe.actorFontWeight=fe.noteFontWeight=fe.messageFontWeight=i.fontWeight)},zl=function(i){return ln.activations.filter(function(n){return n.actor===i})},P1=function(i,n){var l=n[i],d=zl(i);return[d.reduce(function(m,w){return Math.min(m,w.startx)},l.x+l.width/2),d.reduce(function(m,w){return Math.max(m,w.stopx)},l.x+l.width/2)]};function Ja(i,n,l,d,m){ln.bumpVerticalPos(l);var w=d;if(n.id&&n.message&&i[n.id]){var k=i[n.id].width,S=$s(fe);n.message=Vn.wrapLabel("[".concat(n.message,"]"),k-2*fe.wrapPadding,S),n.width=k,n.wrap=!0;var N=Vn.calculateTextDimensions(n.message,S),B=Math.max(N.height,fe.labelBoxHeight);w=d+B,g.debug("".concat(B," - ").concat(n.message))}m(n),ln.bumpVerticalPos(w)}var Rf=function(i){var n=0,l=Ju(fe);for(var d in i.links){var m=Vn.calculateTextDimensions(d,l).width+2*fe.wrapPadding+2*fe.boxMargin;n<m&&(n=m)}return n};const Hc={bounds:ln,drawActors:Eo,drawActorsPopup:th,setConf:R1,draw:function(i,n,l,d){fe=Nt().sequence;var m,w=Nt().securityLevel;w==="sandbox"&&(m=(0,T.select)("#i"+n));var k=w==="sandbox"?(0,T.select)(m.nodes()[0].contentDocument.body):(0,T.select)("body"),S=w==="sandbox"?m.nodes()[0].contentDocument:document;ln.init(),g.debug(d.db);var N=w==="sandbox"?k.select('[id="'.concat(n,'"]')):(0,T.select)('[id="'.concat(n,'"]')),B=d.db.getActors(),q=d.db.getActorKeys(),G=d.db.getMessages(),K=d.db.getDiagramTitle(),Q=function(te,ne,ce){var le={};return ne.forEach(function(Gt){if(te[Gt.to]&&te[Gt.from]){var oe=te[Gt.to];if(Gt.placement===ce.db.PLACEMENT.LEFTOF&&!oe.prevActor||Gt.placement===ce.db.PLACEMENT.RIGHTOF&&!oe.nextActor)return;var _e=Gt.placement!==void 0,we=!_e,Je=_e?Ws(fe):$s(fe),dn=Gt.wrap?Vn.wrapLabel(Gt.message,fe.width-2*fe.wrapPadding,Je):Gt.message,Me=Vn.calculateTextDimensions(dn,Je).width+2*fe.wrapPadding;we&&Gt.from===oe.nextActor?le[Gt.to]=Math.max(le[Gt.to]||0,Me):we&&Gt.from===oe.prevActor?le[Gt.from]=Math.max(le[Gt.from]||0,Me):we&&Gt.from===Gt.to?(le[Gt.from]=Math.max(le[Gt.from]||0,Me/2),le[Gt.to]=Math.max(le[Gt.to]||0,Me/2)):Gt.placement===ce.db.PLACEMENT.RIGHTOF?le[Gt.from]=Math.max(le[Gt.from]||0,Me):Gt.placement===ce.db.PLACEMENT.LEFTOF?le[oe.prevActor]=Math.max(le[oe.prevActor]||0,Me):Gt.placement===ce.db.PLACEMENT.OVER&&(oe.prevActor&&(le[oe.prevActor]=Math.max(le[oe.prevActor]||0,Me/2)),oe.nextActor&&(le[Gt.from]=Math.max(le[Gt.from]||0,Me/2)))}}),g.debug("maxMessageWidthPerActor:",le),le}(B,G,d);fe.height=function(te,ne){var ce=0;for(var le in Object.keys(te).forEach(function(we){var Je=te[we];Je.wrap&&(Je.description=Vn.wrapLabel(Je.description,fe.width-2*fe.wrapPadding,Ju(fe)));var dn=Vn.calculateTextDimensions(Je.description,Ju(fe));Je.width=Je.wrap?fe.width:Math.max(fe.width,dn.width+2*fe.wrapPadding),Je.height=Je.wrap?Math.max(dn.height,fe.height):fe.height,ce=Math.max(ce,Je.height)}),ne){var Gt=te[le];if(Gt){var oe=te[Gt.nextActor];if(oe){var _e=ne[le]+fe.actorMargin-Gt.width/2-oe.width/2;Gt.margin=Math.max(_e,fe.actorMargin)}}}return Math.max(ce,fe.height)}(B,Q),jl(N),fa(N),ps(N),Eo(N,B,q,0,fe,G);var xt=function(te,ne,ce,le){var Gt,oe,_e,we={},Je=[];return te.forEach(function(dn){switch(dn.id=Vn.random({length:10}),dn.type){case le.db.LINETYPE.LOOP_START:case le.db.LINETYPE.ALT_START:case le.db.LINETYPE.OPT_START:case le.db.LINETYPE.PAR_START:case le.db.LINETYPE.CRITICAL_START:case le.db.LINETYPE.BREAK_START:Je.push({id:dn.id,msg:dn.message,from:Number.MAX_SAFE_INTEGER,to:Number.MIN_SAFE_INTEGER,width:0});break;case le.db.LINETYPE.ALT_ELSE:case le.db.LINETYPE.PAR_AND:case le.db.LINETYPE.CRITICAL_OPTION:dn.message&&(Gt=Je.pop(),we[Gt.id]=Gt,we[dn.id]=Gt,Je.push(Gt));break;case le.db.LINETYPE.LOOP_END:case le.db.LINETYPE.ALT_END:case le.db.LINETYPE.OPT_END:case le.db.LINETYPE.PAR_END:case le.db.LINETYPE.CRITICAL_END:case le.db.LINETYPE.BREAK_END:Gt=Je.pop(),we[Gt.id]=Gt;break;case le.db.LINETYPE.ACTIVE_START:var Me=ne[dn.from?dn.from.actor:dn.to.actor],gn=zl(dn.from?dn.from.actor:dn.to.actor).length,wn=Me.x+Me.width/2+(gn-1)*fe.activationWidth/2,Ue={startx:wn,stopx:wn+fe.activationWidth,actor:dn.from.actor,enabled:!0};ln.activations.push(Ue);break;case le.db.LINETYPE.ACTIVE_END:var nn=ln.activations.map(function(tn){return tn.actor}).lastIndexOf(dn.from.actor);delete ln.activations.splice(nn,1)[0]}dn.placement!==void 0?(oe=function(tn,On,cr){var Xr=On[tn.from].x,Sr=On[tn.to].x,si=tn.wrap&&tn.message,Zr=Vn.calculateTextDimensions(si?Vn.wrapLabel(tn.message,fe.width,Ws(fe)):tn.message,Ws(fe)),br={width:si?fe.width:Math.max(fe.width,Zr.width+2*fe.noteMargin),height:0,startx:On[tn.from].x,stopx:0,starty:0,stopy:0,message:tn.message};return tn.placement===cr.db.PLACEMENT.RIGHTOF?(br.width=si?Math.max(fe.width,Zr.width):Math.max(On[tn.from].width/2+On[tn.to].width/2,Zr.width+2*fe.noteMargin),br.startx=Xr+(On[tn.from].width+fe.actorMargin)/2):tn.placement===cr.db.PLACEMENT.LEFTOF?(br.width=Math.max(si?fe.width:On[tn.from].width/2+On[tn.to].width/2,Zr.width+2*fe.noteMargin),br.startx=Xr-br.width+(On[tn.from].width-fe.actorMargin)/2):tn.to===tn.from?(Zr=Vn.calculateTextDimensions(si?Vn.wrapLabel(tn.message,Math.max(fe.width,On[tn.from].width),Ws(fe)):tn.message,Ws(fe)),br.width=si?Math.max(fe.width,On[tn.from].width):Math.max(On[tn.from].width,fe.width,Zr.width+2*fe.noteMargin),br.startx=Xr+(On[tn.from].width-br.width)/2):(br.width=Math.abs(Xr+On[tn.from].width/2-(Sr+On[tn.to].width/2))+fe.actorMargin,br.startx=Xr<Sr?Xr+On[tn.from].width/2-fe.actorMargin/2:Sr+On[tn.to].width/2-fe.actorMargin/2),si&&(br.message=Vn.wrapLabel(tn.message,br.width-2*fe.wrapPadding,Ws(fe))),g.debug("NM:[".concat(br.startx,",").concat(br.stopx,",").concat(br.starty,",").concat(br.stopy,":").concat(br.width,",").concat(br.height,"=").concat(tn.message,"]")),br}(dn,ne,le),dn.noteModel=oe,Je.forEach(function(tn){(Gt=tn).from=Math.min(Gt.from,oe.startx),Gt.to=Math.max(Gt.to,oe.startx+oe.width),Gt.width=Math.max(Gt.width,Math.abs(Gt.from-Gt.to))-fe.labelBoxWidth})):(_e=function(tn,On,cr){var Xr=!1;if([cr.db.LINETYPE.SOLID_OPEN,cr.db.LINETYPE.DOTTED_OPEN,cr.db.LINETYPE.SOLID,cr.db.LINETYPE.DOTTED,cr.db.LINETYPE.SOLID_CROSS,cr.db.LINETYPE.DOTTED_CROSS,cr.db.LINETYPE.SOLID_POINT,cr.db.LINETYPE.DOTTED_POINT].includes(tn.type)&&(Xr=!0),!Xr)return{};var Sr=P1(tn.from,On),si=P1(tn.to,On),Zr=Sr[0]<=si[0]?1:0,br=Sr[0]<si[0]?0:1,da=Sr.concat(si),ci=Math.abs(si[br]-Sr[Zr]);tn.wrap&&tn.message&&(tn.message=Vn.wrapLabel(tn.message,Math.max(ci+2*fe.wrapPadding,fe.width),$s(fe)));var Or=Vn.calculateTextDimensions(tn.message,$s(fe));return{width:Math.max(tn.wrap?0:Or.width+2*fe.wrapPadding,ci+2*fe.wrapPadding,fe.width),height:0,startx:Sr[Zr],stopx:si[br],starty:0,stopy:0,message:tn.message,type:tn.type,wrap:tn.wrap,fromBounds:Math.min.apply(null,da),toBounds:Math.max.apply(null,da)}}(dn,ne,le),dn.msgModel=_e,_e.startx&&_e.stopx&&Je.length>0&&Je.forEach(function(tn){if(Gt=tn,_e.startx===_e.stopx){var On=ne[dn.from],cr=ne[dn.to];Gt.from=Math.min(On.x-_e.width/2,On.x-On.width/2,Gt.from),Gt.to=Math.max(cr.x+_e.width/2,cr.x+On.width/2,Gt.to),Gt.width=Math.max(Gt.width,Math.abs(Gt.to-Gt.from))-fe.labelBoxWidth}else Gt.from=Math.min(_e.startx,Gt.from),Gt.to=Math.max(_e.stopx,Gt.to),Gt.width=Math.max(Gt.width,_e.width)-fe.labelBoxWidth}))}),ln.activations=[],g.debug("Loop type widths:",we),we}(G,B,0,d);L1(N),F1(N),Qu(N),I1(N);var Ct=1,Bt=1,Ft=Array();G.forEach(function(te){var ne,ce,le;switch(te.type){case d.db.LINETYPE.NOTE:ce=te.noteModel,function(oe,_e){ln.bumpVerticalPos(fe.boxMargin),_e.height=fe.boxMargin,_e.starty=ln.getVerticalPos();var we=Ff();we.x=_e.startx,we.y=_e.starty,we.width=_e.width||fe.width,we.class="note";var Je=oe.append("g"),dn=Pl(Je,we),Me=Ku();Me.x=_e.startx,Me.y=_e.starty,Me.width=we.width,Me.dy="1em",Me.text=_e.message,Me.class="noteText",Me.fontFamily=fe.noteFontFamily,Me.fontSize=fe.noteFontSize,Me.fontWeight=fe.noteFontWeight,Me.anchor=fe.noteAlign,Me.textMargin=fe.noteMargin,Me.valign="center";var gn=ds(Je,Me),wn=Math.round(gn.map(function(Ue){return(Ue._groups||Ue)[0][0].getBBox().height}).reduce(function(Ue,nn){return Ue+nn}));dn.attr("height",wn+2*fe.noteMargin),_e.height+=wn+2*fe.noteMargin,ln.bumpVerticalPos(wn+2*fe.noteMargin),_e.stopy=_e.starty+wn+2*fe.noteMargin,_e.stopx=_e.startx+we.width,ln.insert(_e.startx,_e.starty,_e.stopx,_e.stopy),ln.models.addNote(_e)}(N,ce);break;case d.db.LINETYPE.ACTIVE_START:ln.newActivation(te,N,B);break;case d.db.LINETYPE.ACTIVE_END:(function(oe,_e){var we=ln.endActivation(oe);we.starty+18>_e&&(we.starty=_e-6,_e+=12),Lf(N,we,_e,fe,zl(oe.from.actor).length),ln.insert(we.startx,_e-10,we.stopx,_e)})(te,ln.getVerticalPos());break;case d.db.LINETYPE.LOOP_START:Ja(xt,te,fe.boxMargin,fe.boxMargin+fe.boxTextMargin,function(oe){return ln.newLoop(oe)});break;case d.db.LINETYPE.LOOP_END:ne=ln.endLoop(),Us(N,ne,"loop",fe),ln.bumpVerticalPos(ne.stopy-ln.getVerticalPos()),ln.models.addLoop(ne);break;case d.db.LINETYPE.RECT_START:Ja(xt,te,fe.boxMargin,fe.boxMargin,function(oe){return ln.newLoop(void 0,oe.message)});break;case d.db.LINETYPE.RECT_END:ne=ln.endLoop(),If(N,ne),ln.models.addLoop(ne),ln.bumpVerticalPos(ne.stopy-ln.getVerticalPos());break;case d.db.LINETYPE.OPT_START:Ja(xt,te,fe.boxMargin,fe.boxMargin+fe.boxTextMargin,function(oe){return ln.newLoop(oe)});break;case d.db.LINETYPE.OPT_END:ne=ln.endLoop(),Us(N,ne,"opt",fe),ln.bumpVerticalPos(ne.stopy-ln.getVerticalPos()),ln.models.addLoop(ne);break;case d.db.LINETYPE.ALT_START:Ja(xt,te,fe.boxMargin,fe.boxMargin+fe.boxTextMargin,function(oe){return ln.newLoop(oe)});break;case d.db.LINETYPE.ALT_ELSE:Ja(xt,te,fe.boxMargin+fe.boxTextMargin,fe.boxMargin,function(oe){return ln.addSectionToLoop(oe)});break;case d.db.LINETYPE.ALT_END:ne=ln.endLoop(),Us(N,ne,"alt",fe),ln.bumpVerticalPos(ne.stopy-ln.getVerticalPos()),ln.models.addLoop(ne);break;case d.db.LINETYPE.PAR_START:Ja(xt,te,fe.boxMargin,fe.boxMargin+fe.boxTextMargin,function(oe){return ln.newLoop(oe)});break;case d.db.LINETYPE.PAR_AND:Ja(xt,te,fe.boxMargin+fe.boxTextMargin,fe.boxMargin,function(oe){return ln.addSectionToLoop(oe)});break;case d.db.LINETYPE.PAR_END:ne=ln.endLoop(),Us(N,ne,"par",fe),ln.bumpVerticalPos(ne.stopy-ln.getVerticalPos()),ln.models.addLoop(ne);break;case d.db.LINETYPE.AUTONUMBER:Ct=te.message.start||Ct,Bt=te.message.step||Bt,te.message.visible?d.db.enableSequenceNumbers():d.db.disableSequenceNumbers();break;case d.db.LINETYPE.CRITICAL_START:Ja(xt,te,fe.boxMargin,fe.boxMargin+fe.boxTextMargin,function(oe){return ln.newLoop(oe)});break;case d.db.LINETYPE.CRITICAL_OPTION:Ja(xt,te,fe.boxMargin+fe.boxTextMargin,fe.boxMargin,function(oe){return ln.addSectionToLoop(oe)});break;case d.db.LINETYPE.CRITICAL_END:ne=ln.endLoop(),Us(N,ne,"critical",fe),ln.bumpVerticalPos(ne.stopy-ln.getVerticalPos()),ln.models.addLoop(ne);break;case d.db.LINETYPE.BREAK_START:Ja(xt,te,fe.boxMargin,fe.boxMargin+fe.boxTextMargin,function(oe){return ln.newLoop(oe)});break;case d.db.LINETYPE.BREAK_END:ne=ln.endLoop(),Us(N,ne,"break",fe),ln.bumpVerticalPos(ne.stopy-ln.getVerticalPos()),ln.models.addLoop(ne);break;default:try{(le=te.msgModel).starty=ln.getVerticalPos(),le.sequenceIndex=Ct,le.sequenceVisible=d.db.showSequenceNumbers();var Gt=function(oe,_e){ln.bumpVerticalPos(10);var we,Je=_e.startx,dn=_e.stopx,Me=_e.message,gn=on.splitBreaks(Me).length,wn=Vn.calculateTextDimensions(Me,$s(fe)),Ue=wn.height/gn;_e.height+=Ue,ln.bumpVerticalPos(Ue);var nn=wn.height-10,tn=wn.width;if(Je===dn){we=ln.getVerticalPos()+nn,fe.rightAngles||(nn+=fe.boxMargin,we=ln.getVerticalPos()+nn),nn+=30;var On=Math.max(tn/2,fe.width/2);ln.insert(Je-On,ln.getVerticalPos()-10+nn,dn+On,ln.getVerticalPos()+30+nn)}else nn+=fe.boxMargin,we=ln.getVerticalPos()+nn,ln.insert(Je,we-10,dn,we);return ln.bumpVerticalPos(nn),_e.height+=nn,_e.stopy=_e.starty+_e.height,ln.insert(_e.fromBounds,_e.starty,_e.toBounds,_e.stopy),we}(0,le);Ft.push({messageModel:le,lineStarty:Gt}),ln.models.addMessage(le)}catch(oe){g.error("error while drawing message",oe)}}[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(te.type)&&(Ct+=Bt)}),Ft.forEach(function(te){return function(ne,ce,le,Gt){var oe=ce.startx,_e=ce.stopx,we=ce.starty,Je=ce.message,dn=ce.type,Me=ce.sequenceIndex,gn=ce.sequenceVisible,wn=Vn.calculateTextDimensions(Je,$s(fe)),Ue=Ku();Ue.x=oe,Ue.y=we+10,Ue.width=_e-oe,Ue.class="messageText",Ue.dy="1em",Ue.text=Je,Ue.fontFamily=fe.messageFontFamily,Ue.fontSize=fe.messageFontSize,Ue.fontWeight=fe.messageFontWeight,Ue.anchor=fe.messageAlign,Ue.valign="center",Ue.textMargin=fe.wrapPadding,Ue.tspan=!1,ds(ne,Ue);var nn,tn=wn.width;oe===_e?nn=fe.rightAngles?ne.append("path").attr("d","M ".concat(oe,",").concat(le," H ").concat(oe+Math.max(fe.width/2,tn/2)," V ").concat(le+25," H ").concat(oe)):ne.append("path").attr("d","M "+oe+","+le+" C "+(oe+60)+","+(le-10)+" "+(oe+60)+","+(le+30)+" "+oe+","+(le+20)):((nn=ne.append("line")).attr("x1",oe),nn.attr("y1",le),nn.attr("x2",_e),nn.attr("y2",le)),dn===Gt.db.LINETYPE.DOTTED||dn===Gt.db.LINETYPE.DOTTED_CROSS||dn===Gt.db.LINETYPE.DOTTED_POINT||dn===Gt.db.LINETYPE.DOTTED_OPEN?(nn.style("stroke-dasharray","3, 3"),nn.attr("class","messageLine1")):nn.attr("class","messageLine0");var On="";fe.arrowMarkerAbsolute&&(On=(On=(On=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search).replace(/\(/g,"\\(")).replace(/\)/g,"\\)")),nn.attr("stroke-width",2),nn.attr("stroke","none"),nn.style("fill","none"),dn!==Gt.db.LINETYPE.SOLID&&dn!==Gt.db.LINETYPE.DOTTED||nn.attr("marker-end","url("+On+"#arrowhead)"),dn!==Gt.db.LINETYPE.SOLID_POINT&&dn!==Gt.db.LINETYPE.DOTTED_POINT||nn.attr("marker-end","url("+On+"#filled-head)"),dn!==Gt.db.LINETYPE.SOLID_CROSS&&dn!==Gt.db.LINETYPE.DOTTED_CROSS||nn.attr("marker-end","url("+On+"#crosshead)"),(gn||fe.showSequenceNumbers)&&(nn.attr("marker-start","url("+On+"#sequencenumber)"),ne.append("text").attr("x",oe).attr("y",le+4).attr("font-family","sans-serif").attr("font-size","12px").attr("text-anchor","middle").attr("class","sequenceNumber").text(Me))}(N,te.messageModel,te.lineStarty,d)}),fe.mirrorActors&&(ln.bumpVerticalPos(2*fe.boxMargin),Eo(N,B,q,ln.getVerticalPos(),fe,G),ln.bumpVerticalPos(fe.boxMargin),Ys(N,ln.getVerticalPos()));var Lt=th(N,B,q,S),Et=ln.getBounds().bounds;g.debug("For line height fix Querying: #"+n+" .actor-line"),(0,T.selectAll)("#"+n+" .actor-line").attr("y2",Et.stopy);var _t=Et.stopy-Et.starty;_t<Lt.maxHeight&&(_t=Lt.maxHeight);var qt=_t+2*fe.diagramMarginY;fe.mirrorActors&&(qt=qt-fe.boxMargin+fe.bottomMarginAdj);var ve=Et.stopx-Et.startx;ve<Lt.maxWidth&&(ve=Lt.maxWidth);var de=ve+2*fe.diagramMarginX;K&&N.append("text").text(K).attr("x",(Et.stopx-Et.startx)/2-2*fe.diagramMarginX).attr("y",-25),Qi(N,0,de,fe.useMaxWidth);var je=K?40:0;N.attr("viewBox",Et.startx-fe.diagramMarginX+" -"+(fe.diagramMarginY+je)+" "+de+" "+(qt+je)),kr(d.db,N,n),g.debug("models:",ln.models)}};var Pf=p(3584),j1=p.n(Pf);function eh(i){return eh=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},eh(i)}var Yl=function(i){return JSON.parse(JSON.stringify(i))},Ul=[],z1=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 m=[],w=0,k=[];for(w=0;w<l.doc.length;w++)if(l.doc[w].type==="divider"){var S=Yl(l.doc[w]);S.doc=Yl(k),m.push(S),k=[]}else k.push(l.doc[w]);if(m.length>0&&k.length>0){var N={stmt:"state",id:dc(),type:"divider",doc:Yl(k)};m.push(Yl(N)),l.doc=m}l.doc.forEach(function(B){return i(l,B,!0)})}},$l={root:{relations:[],states:{},documents:{}}},Wi=$l.root,Wl=0,Vc=function(i,n,l,d,m){Wi.states[i]===void 0?Wi.states[i]={id:i,descriptions:[],type:n,doc:l,note:m}:(Wi.states[i].doc||(Wi.states[i].doc=l),Wi.states[i].type||(Wi.states[i].type=n)),d&&(g.info("Adding state ",i,d),typeof d=="string"&&U1(i,d.trim()),eh(d)==="object"&&d.forEach(function(w){return U1(i,w.trim())})),m&&(Wi.states[i].note=m,Wi.states[i].note.text=on.sanitizeText(Wi.states[i].note.text,Nt()))},nh=function(i){Wi=($l={root:{relations:[],states:{},documents:{}}}).root,Wi=$l.root,Wl=0,So=[],i||Kt()},Y1=function(i,n,l){var d=i,m=n,w="default",k="default";i==="[*]"&&(d="start"+ ++Wl,w="start"),n==="[*]"&&(m="end"+Wl,k="end"),Vc(d,w),Vc(m,k),Wi.relations.push({id1:d,id2:m,title:on.sanitizeText(l,Nt())})},U1=function(i,n){var l=Wi.states[i],d=n;d[0]===":"&&(d=d.substr(1).trim()),l.descriptions.push(on.sanitizeText(d,Nt()))},$1=0,So=[],W1="TB";const Co={parseDirective:function(i,n,l){zr.parseDirective(this,i,n,l)},getConfig:function(){return Nt().state},addState:Vc,clear:nh,getState:function(i){return Wi.states[i]},getStates:function(){return Wi.states},getRelations:function(){return Wi.relations},getClasses:function(){return So},getDirection:function(){return W1},addRelation:Y1,getDividerId:function(){return"divider-id-"+ ++$1},setDirection:function(i){W1=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(){g.info("Documents = ",$l)},getRootDoc:function(){return Ul},setRootDoc:function(i){g.info("Setting root doc",i),Ul=i},getRootDocV2:function(){return z1({id:"root"},{id:"root",doc:Ul},!0),{id:"root",doc:Ul}},extract:function(i){var n;n=i.doc?i.doc:i,g.info(n),nh(!0),g.info("Extract",n),n.forEach(function(l){l.stmt==="state"&&Vc(l.id,l.type,l.doc,l.description,l.note),l.stmt==="relation"&&Y1(l.state1.id,l.state2.id,l.description)})},trimColon:function(i){return i&&i[0]===":"?i.substr(1).trim():i.trim()},getAccTitle:Ir,setAccTitle:xr,getAccDescription:pi,setAccDescription:Ur};var q1={};function H1(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 va,V1=function(i,n,l){var d,m=Nt().state.padding,w=2*Nt().state.padding,k=i.node().getBBox(),S=k.width,N=k.x,B=i.append("text").attr("x",0).attr("y",Nt().state.titleShift).attr("font-size",Nt().state.fontSize).attr("class","state-title").text(n.id),q=B.node().getBBox().width+w,G=Math.max(q,S);G===S&&(G+=w);var K=i.node().getBBox();n.doc,d=N-m,q>S&&(d=(S-G)/2+m),Math.abs(N-K.x)<m&&q>S&&(d=N-(q-S)/2);var Q=1-Nt().state.textHeight;return i.insert("rect",":first-child").attr("x",d).attr("y",Q).attr("class",l?"alt-composit":"composit").attr("width",G).attr("height",K.height+Nt().state.textHeight+Nt().state.titleShift+1).attr("rx","0"),B.attr("x",d+m),q<=S&&B.attr("x",N+(G-w)/2-q/2+m),i.insert("rect",":first-child").attr("x",d).attr("y",Nt().state.titleShift-Nt().state.textHeight-Nt().state.padding).attr("width",G).attr("height",3*Nt().state.textHeight).attr("rx",Nt().state.radius),i.insert("rect",":first-child").attr("x",d).attr("y",Nt().state.titleShift-Nt().state.textHeight-Nt().state.padding).attr("width",G).attr("height",K.height+3+2*Nt().state.textHeight).attr("rx",Nt().state.radius),i},ql=function(i,n){n.attr("class","state-note");var l=n.append("rect").attr("x",0).attr("y",Nt().state.padding),d=function(k,S,N,B){var q=0,G=B.append("text");G.style("text-anchor","start"),G.attr("class","noteText");var K,Q=k.replace(/\r\n/g,"<br/>"),xt=(Q=Q.replace(/\n/g,"<br/>")).split(on.lineBreakRegex),Ct=1.25*Nt().state.noteMargin,Bt=function(Et,_t){var qt=typeof Symbol!="undefined"&&Et[Symbol.iterator]||Et["@@iterator"];if(!qt){if(Array.isArray(Et)||(qt=function(ce,le){if(ce){if(typeof ce=="string")return H1(ce,le);var Gt=Object.prototype.toString.call(ce).slice(8,-1);return Gt==="Object"&&ce.constructor&&(Gt=ce.constructor.name),Gt==="Map"||Gt==="Set"?Array.from(ce):Gt==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Gt)?H1(ce,le):void 0}}(Et))||_t&&Et&&typeof Et.length=="number"){qt&&(Et=qt);var ve=0,de=function(){};return{s:de,n:function(){return ve>=Et.length?{done:!0}:{done:!1,value:Et[ve++]}},e:function(ce){throw ce},f:de}}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 je,te=!0,ne=!1;return{s:function(){qt=qt.call(Et)},n:function(){var ce=qt.next();return te=ce.done,ce},e:function(ce){ne=!0,je=ce},f:function(){try{te||qt.return==null||qt.return()}finally{if(ne)throw je}}}}(xt);try{for(Bt.s();!(K=Bt.n()).done;){var Ft=K.value.trim();if(Ft.length>0){var Lt=G.append("tspan");Lt.text(Ft),Ct===0&&(Ct+=Lt.node().getBBox().height),q+=Ct,Lt.attr("x",0+Nt().state.noteMargin),Lt.attr("y",0+q+1.25*Nt().state.noteMargin)}}}catch(Et){Bt.e(Et)}finally{Bt.f()}return{textWidth:G.node().getBBox().width,textHeight:q}}(i,0,0,n.append("g")),m=d.textWidth,w=d.textHeight;return l.attr("height",w+2*Nt().state.noteMargin),l.attr("width",m+2*Nt().state.noteMargin),l},G1=function(i,n){var l=n.id,d={id:l,label:n.id,width:0,height:0},m=i.append("g").attr("id",l).attr("class","stateGroup");n.type==="start"&&function(S){S.append("circle").attr("class","start-state").attr("r",Nt().state.sizeUnit).attr("cx",Nt().state.padding+Nt().state.sizeUnit).attr("cy",Nt().state.padding+Nt().state.sizeUnit)}(m),n.type==="end"&&function(S){S.append("circle").attr("class","end-state-outer").attr("r",Nt().state.sizeUnit+Nt().state.miniPadding).attr("cx",Nt().state.padding+Nt().state.sizeUnit+Nt().state.miniPadding).attr("cy",Nt().state.padding+Nt().state.sizeUnit+Nt().state.miniPadding),S.append("circle").attr("class","end-state-inner").attr("r",Nt().state.sizeUnit).attr("cx",Nt().state.padding+Nt().state.sizeUnit+2).attr("cy",Nt().state.padding+Nt().state.sizeUnit+2)}(m),n.type!=="fork"&&n.type!=="join"||function(S,N){var B=Nt().state.forkWidth,q=Nt().state.forkHeight;if(N.parentId){var G=B;B=q,q=G}S.append("rect").style("stroke","black").style("fill","black").attr("width",B).attr("height",q).attr("x",Nt().state.padding).attr("y",Nt().state.padding)}(m,n),n.type==="note"&&ql(n.note.text,m),n.type==="divider"&&function(S){S.append("line").style("stroke","grey").style("stroke-dasharray","3").attr("x1",Nt().state.textHeight).attr("class","divider").attr("x2",2*Nt().state.textHeight).attr("y1",0).attr("y2",0)}(m),n.type==="default"&&n.descriptions.length===0&&function(S,N){var B=S.append("text").attr("x",2*Nt().state.padding).attr("y",Nt().state.textHeight+2*Nt().state.padding).attr("font-size",Nt().state.fontSize).attr("class","state-title").text(N.id).node().getBBox();S.insert("rect",":first-child").attr("x",Nt().state.padding).attr("y",Nt().state.padding).attr("width",B.width+2*Nt().state.padding).attr("height",B.height+2*Nt().state.padding).attr("rx",Nt().state.radius)}(m,n),n.type==="default"&&n.descriptions.length>0&&function(S,N){var B=S.append("text").attr("x",2*Nt().state.padding).attr("y",Nt().state.textHeight+1.3*Nt().state.padding).attr("font-size",Nt().state.fontSize).attr("class","state-title").text(N.descriptions[0]).node().getBBox(),q=B.height,G=S.append("text").attr("x",Nt().state.padding).attr("y",q+.4*Nt().state.padding+Nt().state.dividerMargin+Nt().state.textHeight).attr("class","state-description"),K=!0,Q=!0;N.descriptions.forEach(function(Ft){K||(function(Lt,Et,_t){var qt=Lt.append("tspan").attr("x",2*Nt().state.padding).text(Et);_t||qt.attr("dy",Nt().state.textHeight)}(G,Ft,Q),Q=!1),K=!1});var xt=S.append("line").attr("x1",Nt().state.padding).attr("y1",Nt().state.padding+q+Nt().state.dividerMargin/2).attr("y2",Nt().state.padding+q+Nt().state.dividerMargin/2).attr("class","descr-divider"),Ct=G.node().getBBox(),Bt=Math.max(Ct.width,B.width);xt.attr("x2",Bt+3*Nt().state.padding),S.insert("rect",":first-child").attr("x",Nt().state.padding).attr("y",Nt().state.padding).attr("width",Bt+2*Nt().state.padding).attr("height",Ct.height+q+2*Nt().state.padding).attr("rx",Nt().state.radius)}(m,n);var w,k=m.node().getBBox();return d.width=k.width+2*Nt().state.padding,d.height=k.height+2*Nt().state.padding,w=d,q1[l]=w,d},qs=0,rh={},ih=function i(n,l,d,m,w,k,S){var N,B=new(bi()).Graph({compound:!0,multigraph:!0}),q=!0;for(N=0;N<n.length;N++)if(n[N].stmt==="relation"){q=!1;break}d?B.setGraph({rankdir:"LR",multigraph:!0,compound:!0,ranker:"tight-tree",ranksep:q?1:va.edgeLengthFactor,nodeSep:q?1:50,isMultiGraph:!0}):B.setGraph({rankdir:"TB",multigraph:!0,compound:!0,ranksep:q?1:va.edgeLengthFactor,nodeSep:q?1:50,ranker:"tight-tree",isMultiGraph:!0}),B.setDefaultEdgeLabel(function(){return{}}),S.db.extract(n);for(var G=S.db.getStates(),K=S.db.getRelations(),Q=Object.keys(G),xt=0;xt<Q.length;xt++){var Ct=G[Q[xt]];d&&(Ct.parentId=d);var Bt=void 0;if(Ct.doc){var Ft=l.append("g").attr("id",Ct.id).attr("class","stateGroup");Bt=i(Ct.doc,Ft,Ct.id,!m,w,k,S);var Lt=(Ft=V1(Ft,Ct,m)).node().getBBox();Bt.width=Lt.width,Bt.height=Lt.height+va.padding/2,rh[Ct.id]={y:va.compositTitleSize}}else Bt=G1(l,Ct);if(Ct.note){var Et={descriptions:[],id:Ct.id+"-note",note:Ct.note,type:"note"},_t=G1(l,Et);Ct.note.position==="left of"?(B.setNode(Bt.id+"-note",_t),B.setNode(Bt.id,Bt)):(B.setNode(Bt.id,Bt),B.setNode(Bt.id+"-note",_t)),B.setParent(Bt.id,Bt.id+"-group"),B.setParent(Bt.id+"-note",Bt.id+"-group")}else B.setNode(Bt.id,Bt)}g.debug("Count=",B.nodeCount(),B);var qt=0;K.forEach(function(te){var ne;qt++,g.debug("Setting edge",te),B.setEdge(te.id1,te.id2,{relation:te,width:(ne=te.title,ne?ne.length*va.fontSizeFactor:1),height:va.labelHeight*on.getRows(te.title).length,labelpos:"c"},"id"+qt)}),Ss().layout(B),g.debug("Graph after layout",B.nodes());var ve=l.node();B.nodes().forEach(function(te){te!==void 0&&B.node(te)!==void 0?(g.warn("Node "+te+": "+JSON.stringify(B.node(te))),w.select("#"+ve.id+" #"+te).attr("transform","translate("+(B.node(te).x-B.node(te).width/2)+","+(B.node(te).y+(rh[te]?rh[te].y:0)-B.node(te).height/2)+" )"),w.select("#"+ve.id+" #"+te).attr("data-x-shift",B.node(te).x-B.node(te).width/2),k.querySelectorAll("#"+ve.id+" #"+te+" .divider").forEach(function(ne){var ce=ne.parentElement,le=0,Gt=0;ce&&(ce.parentElement&&(le=ce.parentElement.getBBox().width),Gt=parseInt(ce.getAttribute("data-x-shift"),10),Number.isNaN(Gt)&&(Gt=0)),ne.setAttribute("x1",0-Gt+8),ne.setAttribute("x2",le-Gt-8)})):g.debug("No Node "+te+": "+JSON.stringify(B.node(te)))});var de=ve.getBBox();B.edges().forEach(function(te){te!==void 0&&B.edge(te)!==void 0&&(g.debug("Edge "+te.v+" -> "+te.w+": "+JSON.stringify(B.edge(te))),function(ne,ce,le){ce.points=ce.points.filter(function(ci){return!Number.isNaN(ci.y)});var Gt=ce.points,oe=(0,T.line)().x(function(ci){return ci.x}).y(function(ci){return ci.y}).curve(T.curveBasis),_e=ne.append("path").attr("d",oe(Gt)).attr("id","edge"+qs).attr("class","transition"),we="";if(Nt().state.arrowMarkerAbsolute&&(we=(we=(we=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search).replace(/\(/g,"\\(")).replace(/\)/g,"\\)")),_e.attr("marker-end","url("+we+"#"+function(ci){switch(ci){case Co.relationType.AGGREGATION:return"aggregation";case Co.relationType.EXTENSION:return"extension";case Co.relationType.COMPOSITION:return"composition";case Co.relationType.DEPENDENCY:return"dependency"}}(Co.relationType.DEPENDENCY)+"End)"),le.title!==void 0){for(var Je=ne.append("g").attr("class","stateLabel"),dn=Vn.calcLabelPosition(ce.points),Me=dn.x,gn=dn.y,wn=on.getRows(le.title),Ue=0,nn=[],tn=0,On=0,cr=0;cr<=wn.length;cr++){var Xr=Je.append("text").attr("text-anchor","middle").text(wn[cr]).attr("x",Me).attr("y",gn+Ue),Sr=Xr.node().getBBox();if(tn=Math.max(tn,Sr.width),On=Math.min(On,Sr.x),g.info(Sr.x,Me,gn+Ue),Ue===0){var si=Xr.node().getBBox();Ue=si.height,g.info("Title height",Ue,gn)}nn.push(Xr)}var Zr=Ue*wn.length;if(wn.length>1){var br=(wn.length-1)*Ue*.5;nn.forEach(function(ci,Or){return ci.attr("y",gn+Or*Ue-br)}),Zr=Ue*wn.length}var da=Je.node().getBBox();Je.insert("rect",":first-child").attr("class","box").attr("x",Me-tn/2-Nt().state.padding/2).attr("y",gn-Zr/2-Nt().state.padding/2-3.5).attr("width",tn+Nt().state.padding).attr("height",Zr+Nt().state.padding),g.info(da)}qs++}(l,B.edge(te),B.edge(te).relation))}),de=ve.getBBox();var je={id:d||"root",label:d||"root",width:0,height:0};return je.width=de.width+2*va.padding,je.height=de.height+2*va.padding,g.debug("Doc rendered",je,B),je};const X1={setConf:function(){},draw:function(i,n,l,d){va=Nt().state;var m,w=Nt().securityLevel;w==="sandbox"&&(m=(0,T.select)("#i"+n));var k=w==="sandbox"?(0,T.select)(m.nodes()[0].contentDocument.body):(0,T.select)("body"),S=w==="sandbox"?m.nodes()[0].contentDocument:document;g.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(bi()).Graph({multigraph:!0,compound:!0,rankdir:"RL"}).setDefaultEdgeLabel(function(){return{}});var B=d.db.getRootDoc();ih(B,N,void 0,!1,k,S,d);var q=va.padding,G=N.node().getBBox(),K=G.width+2*q,Q=G.height+2*q;Qi(N,0,1.75*K,va.useMaxWidth),N.attr("viewBox","".concat(G.x-va.padding," ").concat(G.y-va.padding," ")+K+" "+Q),kr(d.db,N,n)}};var jf={},gr={},Ao=function(i,n,l,d){if(l.id!=="root"){var m="rect";l.start===!0&&(m="start"),l.start===!1&&(m="end"),l.type!=="default"&&(m=l.type),gr[l.id]||(gr[l.id]={id:l.id,shape:m,description:on.sanitizeText(l.id,Nt()),classes:"statediagram-state"}),l.description&&(Array.isArray(gr[l.id].description)?(gr[l.id].shape="rectWithTitle",gr[l.id].description.push(l.description)):gr[l.id].description.length>0?(gr[l.id].shape="rectWithTitle",gr[l.id].description===l.id?gr[l.id].description=[l.description]:gr[l.id].description=[gr[l.id].description,l.description]):(gr[l.id].shape="rect",gr[l.id].description=l.description),gr[l.id].description=on.sanitizeTextOrArray(gr[l.id].description,Nt())),gr[l.id].description.length===1&&gr[l.id].shape==="rectWithTitle"&&(gr[l.id].shape="rect"),!gr[l.id].type&&l.doc&&(g.info("Setting cluster for ",l.id,ah(l)),gr[l.id].type="group",gr[l.id].dir=ah(l),gr[l.id].shape=l.type==="divider"?"divider":"roundedWithTitle",gr[l.id].classes=gr[l.id].classes+" "+(d?"statediagram-cluster statediagram-cluster-alt":"statediagram-cluster"));var w={labelStyle:"",shape:gr[l.id].shape,labelText:gr[l.id].description,classes:gr[l.id].classes,style:"",id:l.id,dir:gr[l.id].dir,domId:"state-"+l.id+"-"+Xo,type:gr[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-"+Xo,domId:"state-"+l.id+"----note-"+Xo,type:gr[l.id].type,padding:15},S={labelStyle:"",shape:"noteGroup",labelText:l.note.text,classes:gr[l.id].classes,style:"",id:l.id+"----parent",domId:"state-"+l.id+"----parent-"+Xo,type:"group",padding:0};Xo++,i.setNode(l.id+"----parent",S),i.setNode(k.id,k),i.setNode(l.id,w),i.setParent(l.id,l.id+"----parent"),i.setParent(k.id,l.id+"----parent");var N=l.id,B=k.id;l.note.position==="left of"&&(N=k.id,B=l.id),i.setEdge(N,B,{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,w)}n&&n.id!=="root"&&(g.trace("Setting node ",l.id," to be child of its parent ",n.id),i.setParent(l.id,n.id)),l.doc&&(g.trace("Adding nodes children "),Z1(i,l,l.doc,!d))},Xo=0,Z1=function(i,n,l,d){g.trace("items",l),l.forEach(function(m){if(m.stmt==="state"||m.stmt==="default")Ao(i,n,m,d);else if(m.stmt==="relation"){Ao(i,n,m.state1,d),Ao(i,n,m.state2,d);var w={id:"edge"+Xo,arrowhead:"normal",arrowTypeEnd:"arrow_barb",style:"fill:none",labelStyle:"",label:on.sanitizeText(m.description,Nt()),arrowheadStyle:"fill: #333",labelpos:"c",labelType:"text",thickness:"normal",classes:"transition"},k=m.state1.id,S=m.state2.id;i.setEdge(k,S,w,Xo),Xo++}})},ah=function(i,n){var l=n||"TB";if(i.doc)for(var d=0;d<i.doc.length;d++){var m=i.doc[d];m.stmt==="dir"&&(l=m.value)}return l};const Q1={setConf:function(i){for(var n=Object.keys(i),l=0;l<n.length;l++)jf[n[l]]=i[n[l]]},getClasses:function(i,n){return g.trace("Extracting classes"),n.sb.clear(),n.parser.parse(i),n.sb.getClasses()},draw:function(i,n,l,d){g.info("Drawing state diagram (v2)",n),gr={};var m=d.db.getDirection();m===void 0&&(m="LR");var w=Nt().state,k=w.nodeSpacing||50,S=w.rankSpacing||50,N=Nt().securityLevel;g.info(d.db.getRootDocV2()),d.db.extract(d.db.getRootDocV2()),g.info(d.db.getRootDocV2());var B,q=new(bi()).Graph({multigraph:!0,compound:!0}).setGraph({rankdir:ah(d.db.getRootDocV2()),nodesep:k,ranksep:S,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});Ao(q,void 0,d.db.getRootDocV2(),!0),N==="sandbox"&&(B=(0,T.select)("#i"+n));var G=N==="sandbox"?(0,T.select)(B.nodes()[0].contentDocument.body):(0,T.select)("body"),K=(N==="sandbox"&&B.nodes()[0].contentDocument,G.select('[id="'.concat(n,'"]'))),Q=G.select("#"+n+" g");_l(Q,q,["barb"],"statediagram",n);var xt=K.node().getBBox(),Ct=xt.width+16,Bt=xt.height+16;K.attr("class","statediagram");var Ft=K.node().getBBox();Qi(K,0,Ct,w.useMaxWidth);var Lt="".concat(Ft.x-8," ").concat(Ft.y-8," ").concat(Ct," ").concat(Bt);g.debug("viewBox ".concat(Lt)),K.attr("viewBox",Lt);for(var Et=document.querySelectorAll('[id="'+n+'"] .edgeLabel .label'),_t=0;_t<Et.length;_t++){var qt=Et[_t],ve=qt.getBBox(),de=document.createElementNS("http://www.w3.org/2000/svg","rect");de.setAttribute("rx",0),de.setAttribute("ry",0),de.setAttribute("width",ve.width),de.setAttribute("height",ve.height),qt.insertBefore(de,qt.firstChild)}kr(d.db,K,n)}};function K1(i){return function(n){if(Array.isArray(n))return oh(n)}(i)||function(n){if(typeof Symbol!="undefined"&&n[Symbol.iterator]!=null||n["@@iterator"]!=null)return Array.from(n)}(i)||function(n,l){if(n){if(typeof n=="string")return oh(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)?oh(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 oh(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 Hs="",sh=[],Mo=[],gs=[],J1=function(){for(var i=!0,n=0;n<gs.length;n++)gs[n].processed,i=i&&gs[n].processed;return i};const t0={parseDirective:function(i,n,l){zr.parseDirective(this,i,n,l)},getConfig:function(){return Nt().journey},clear:function(){sh.length=0,Mo.length=0,Hs="",gs.length=0,Kt()},setDiagramTitle:wa,getDiagramTitle:dr,setAccTitle:xr,getAccTitle:Ir,setAccDescription:Ur,getAccDescription:pi,addSection:function(i){Hs=i,sh.push(i)},getSections:function(){return sh},getTasks:function(){for(var i=J1(),n=0;!i&&n<100;)i=J1(),n++;return Mo.push.apply(Mo,gs),Mo},addTask:function(i,n){var l=n.substr(1).split(":"),d=0,m=[];l.length===1?(d=Number(l[0]),m=[]):(d=Number(l[0]),m=l[1].split(","));var w=m.map(function(S){return S.trim()}),k={section:Hs,type:Hs,people:w,task:i,score:d};gs.push(k)},addTaskOrg:function(i){var n={section:Hs,type:Hs,description:i,task:i,classes:[]};Mo.push(n)},getActors:function(){return i=[],Mo.forEach(function(n){n.people&&i.push.apply(i,K1(n.people))}),K1(new Set(i)).sort();var i}};var e0=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},n0=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},r0=-1,i0=function(){function i(m,w,k,S,N,B,q,G){d(w.append("text").attr("x",k+N/2).attr("y",S+B/2+5).style("font-color",G).style("text-anchor","middle").text(m),q)}function n(m,w,k,S,N,B,q,G,K){for(var Q=G.taskFontSize,xt=G.taskFontFamily,Ct=m.split(/<br\s*\/?>/gi),Bt=0;Bt<Ct.length;Bt++){var Ft=Bt*Q-Q*(Ct.length-1)/2,Lt=w.append("text").attr("x",k+N/2).attr("y",S).attr("fill",K).style("text-anchor","middle").style("font-size",Q).style("font-family",xt);Lt.append("tspan").attr("x",k+N/2).attr("dy",Ft).text(Ct[Bt]),Lt.attr("y",S+B/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),d(Lt,q)}}function l(m,w,k,S,N,B,q,G){var K=w.append("switch"),Q=K.append("foreignObject").attr("x",k).attr("y",S).attr("width",N).attr("height",B).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(m),n(m,K,k,S,N,B,q,G),d(Q,q)}function d(m,w){for(var k in w)k in w&&m.attr(k,w[k])}return function(m){return m.textPlacement==="fo"?l:m.textPlacement==="old"?i:n}}();const ch=n0,zf=function(i,n,l){var d=i.append("g"),m={x:0,y:0,width:100,anchor:"start",height:100,rx:0,ry:0};m.x=n.x,m.y=n.y,m.fill=n.fill,m.width=l.width,m.height=l.height,m.class="journey-section section-type-"+n.num,m.rx=3,m.ry=3,e0(d,m),i0(l)(n.text,d,m.x,m.y,m.width,m.height,{class:"journey-section section-type-"+n.num},l,n.colour)},Yf=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 m=d.append("tspan");return m.attr("x",n.x+2*n.textMargin),m.text(l),d},Uf=function(i,n,l){var d,m,w,k=n.x+l.width/2,S=i.append("g");r0++,S.append("line").attr("id","task"+r0).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,m={cx:k,cy:300+30*(5-n.score),score:n.score},d.append("circle").attr("cx",m.cx).attr("cy",m.cy).attr("class","face").attr("r",15).attr("stroke-width",2).attr("overflow","visible"),(w=d.append("g")).append("circle").attr("cx",m.cx-5).attr("cy",m.cy-5).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666"),w.append("circle").attr("cx",m.cx+5).attr("cy",m.cy-5).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666"),m.score>3?function(q){var G=(0,T.arc)().startAngle(Math.PI/2).endAngle(Math.PI/2*3).innerRadius(7.5).outerRadius(6.8181818181818175);q.append("path").attr("class","mouth").attr("d",G).attr("transform","translate("+m.cx+","+(m.cy+2)+")")}(w):m.score<3?function(q){var G=(0,T.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",G).attr("transform","translate("+m.cx+","+(m.cy+7)+")")}(w):function(q){q.append("line").attr("class","mouth").attr("stroke",2).attr("x1",m.cx-5).attr("y1",m.cy+7).attr("x2",m.cx+5).attr("y2",m.cy+7).attr("class","mouth").attr("stroke-width","1px").attr("stroke","#666")}(w);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,e0(S,N);var B=n.x+14;n.people.forEach(function(q){var G=n.actors[q].color,K={cx:B,cy:n.y,r:7,fill:G,stroke:"#000",title:q,pos:n.actors[q].position};n0(S,K),B+=10}),i0(l)(n.task,S,N.x,N.y,N.width,N.height,{class:"task"},l,n.colour)};var Do={},Hl=Nt().journey,di=Nt().journey.leftMargin,Na={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 m=Nt().journey,w=this,k=0;this.sequenceItems.forEach(function(S){k++;var N=w.sequenceItems.length-k+1;w.updateVal(S,"starty",n-N*m.boxMargin,Math.min),w.updateVal(S,"stopy",d+N*m.boxMargin,Math.max),w.updateVal(Na.data,"startx",i-N*m.boxMargin,Math.min),w.updateVal(Na.data,"stopx",l+N*m.boxMargin,Math.max),w.updateVal(S,"startx",i-N*m.boxMargin,Math.min),w.updateVal(S,"stopx",l+N*m.boxMargin,Math.max),w.updateVal(Na.data,"starty",n-N*m.boxMargin,Math.min),w.updateVal(Na.data,"stopy",d+N*m.boxMargin,Math.max)})},insert:function(i,n,l,d){var m=Math.min(i,l),w=Math.max(i,l),k=Math.min(n,d),S=Math.max(n,d);this.updateVal(Na.data,"startx",m,Math.min),this.updateVal(Na.data,"starty",k,Math.min),this.updateVal(Na.data,"stopx",w,Math.max),this.updateVal(Na.data,"stopy",S,Math.max),this.updateBounds(m,k,w,S)},bumpVerticalPos:function(i){this.verticalPos=this.verticalPos+i,this.data.stopy=this.verticalPos},getVerticalPos:function(){return this.verticalPos},getBounds:function(){return this.data}},lh=Hl.sectionFills,Gc=Hl.sectionColours;const Xc={setConf:function(i){Object.keys(i).forEach(function(n){Hl[n]=i[n]})},draw:function(i,n,l,d){var m=Nt().journey;d.db.clear(),d.parser.parse(i+`
`);var w,k=Nt().securityLevel;k==="sandbox"&&(w=(0,T.select)("#i"+n));var S=k==="sandbox"?(0,T.select)(w.nodes()[0].contentDocument.body):(0,T.select)("body");Na.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 B=d.db.getTasks(),q=d.db.getDiagramTitle(),G=d.db.getActors();for(var K in Do)delete Do[K];var Q=0;G.forEach(function(Lt){Do[Lt]={color:m.actorColours[Q%m.actorColours.length],position:Q},Q++}),function(Lt){var Et=Nt().journey,_t=60;Object.keys(Do).forEach(function(qt){var ve=Do[qt].color,de={cx:20,cy:_t,r:7,fill:ve,stroke:"#000",pos:Do[qt].position};ch(Lt,de);var je={x:40,y:_t+7,fill:"#666",text:qt,textMargin:5|Et.boxTextMargin};Yf(Lt,je),_t+=20})}(N),Na.insert(0,0,di,50*Object.keys(Do).length),function(Lt,Et,_t){for(var qt=Nt().journey,ve="",de=_t+(2*qt.height+qt.diagramMarginY),je=0,te="#CCC",ne="black",ce=0,le=0;le<Et.length;le++){var Gt=Et[le];if(ve!==Gt.section){te=lh[je%lh.length],ce=je%lh.length,ne=Gc[je%Gc.length];var oe={x:le*qt.taskMargin+le*qt.width+di,y:50,text:Gt.section,fill:te,num:ce,colour:ne};zf(Lt,oe,qt),ve=Gt.section,je++}var _e=Gt.people.reduce(function(we,Je){return Do[Je]&&(we[Je]=Do[Je]),we},{});Gt.x=le*qt.taskMargin+le*qt.width+di,Gt.y=de,Gt.width=qt.diagramMarginX,Gt.height=qt.diagramMarginY,Gt.colour=ne,Gt.fill=te,Gt.num=ce,Gt.actors=_e,Uf(Lt,Gt,qt),Na.insert(Gt.x,Gt.y,Gt.x+Gt.width+qt.taskMargin,450)}}(N,B,0);var xt=Na.getBounds();q&&N.append("text").text(q).attr("x",di).attr("font-size","4ex").attr("font-weight","bold").attr("y",25);var Ct=xt.stopy-xt.starty+2*m.diagramMarginY,Bt=di+xt.stopx+2*m.diagramMarginX;Qi(N,0,Bt,m.useMaxWidth),N.append("line").attr("x1",di).attr("y1",4*m.height).attr("x2",Bt-di-4).attr("y2",4*m.height).attr("stroke-width",4).attr("stroke","black").attr("marker-end","url(#arrowhead)");var Ft=q?70:0;N.attr("viewBox","".concat(xt.startx," -25 ").concat(Bt," ").concat(Ct+Ft)),N.attr("preserveAspectRatio","xMinYMin meet"),N.attr("height",Ct+Ft+25),kr(d.db,N,n)}};var a0=p(9763),ea=p.n(a0),xi={c4:{db:ti,renderer:Ke,parser:mn(),init:function(i){Ke.setConf(i.c4)}},class:{db:la,renderer:hf,parser:a1(),init:function(i){i.class.arrowMarkerAbsolute=i.arrowMarkerAbsolute,la.clear()}},error:{db:{},renderer:_u,parser:{parser:{yy:{}},parse:function(){}},init:function(){}},classDiagram:{db:la,renderer:bu,parser:a1(),init:function(i){i.class.arrowMarkerAbsolute=i.arrowMarkerAbsolute,la.clear()}},er:{db:df,renderer:pf,parser:mf()},flowchart:{db:po,renderer:Al,parser:Du(),init:function(i){Al.setConf(i.flowchart),i.flowchart.arrowMarkerAbsolute=i.arrowMarkerAbsolute,po.clear(),po.setGen("gen-1")}},"flowchart-v2":{db:po,renderer:Wo,parser:Du(),init:function(i){Wo.setConf(i.flowchart),i.flowchart.arrowMarkerAbsolute=i.arrowMarkerAbsolute,po.clear(),po.setGen("gen-2")}},gantt:{db:Pu,renderer:Pc,parser:w1(),init:function(i){Pc.setConf(i.gantt)}},info:{db:za,renderer:zu,parser:Uu()},pie:{db:Za,renderer:Wu,parser:E1()},requirement:{db:Ya,renderer:wo,parser:Ll()},sequence:{db:D1,renderer:Hc,parser:Vu(),init:function(i){i.sequence.arrowMarkerAbsolute=i.arrowMarkerAbsolute,i.sequenceDiagram&&(Hc.setConf(Object.assign(i.sequence,i.sequenceDiagram)),console.error("`mermaid config.sequenceDiagram` has been renamed to `config.sequence`. Please update your mermaid config.")),D1.setWrap(i.wrap),Hc.setConf(i.sequence)}},state:{db:Co,renderer:X1,parser:j1(),init:function(i){i.class.arrowMarkerAbsolute=i.arrowMarkerAbsolute,Co.clear()}},stateDiagram:{db:Co,renderer:Q1,parser:j1(),init:function(i){i.class.arrowMarkerAbsolute=i.arrowMarkerAbsolute,Co.clear()}},journey:{db:t0,renderer:Xc,parser:ea(),init:function(i){Xc.setConf(i.journey),t0.clear()}}},Zo=function(){return xi};function o0(i,n){var l=Object.keys(i);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(i);n&&(d=d.filter(function(m){return Object.getOwnPropertyDescriptor(i,m).enumerable})),l.push.apply(l,d)}return l}function s0(i){for(var n=1;n<arguments.length;n++){var l=arguments[n]!=null?arguments[n]:{};n%2?o0(Object(l),!0).forEach(function(d){$f(i,d,l[d])}):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(l)):o0(Object(l)).forEach(function(d){Object.defineProperty(i,d,Object.getOwnPropertyDescriptor(l,d))})}return i}function $f(i,n,l){return n in i?Object.defineProperty(i,n,{value:l,enumerable:!0,configurable:!0,writable:!0}):i[n]=l,i}var Vl=Nt().gitGraph.mainBranchName,c0=Nt().gitGraph.mainBranchOrder,Ei={},qi=null,Gl={};Gl[Vl]={name:Vl,order:c0};var Si={};Si[Vl]=qi;var Ri=Vl,l0="LR",ys=0;function uh(){return pc({length:7})}var u0={},h0=function(i){if(i=on.sanitizeText(i,Nt()),Si[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=Si[Ri=i];qi=Ei[l]};function Zc(i,n,l){var d=i.indexOf(n);d===-1?i.push(l):i.splice(d,1,l)}function ms(i){var n=i.reduce(function(q,G){return q.seq>G.seq?q:G},i[0]),l="";i.forEach(function(q){l+=q===n?" *":" |"});var d,m,w,k=[l,n.id,n.seq];for(var S in Si)Si[S]===n.id&&k.push(S);if(g.debug(k.join(" ")),n.parents&&n.parents.length==2){var N=Ei[n.parents[0]];Zc(i,n,N),i.push(Ei[n.parents[1]])}else{if(n.parents.length==0)return;var B=Ei[n.parents];Zc(i,n,B)}d=i,m=function(q){return q.id},w=Object.create(null),ms(i=d.reduce(function(q,G){var K=m(G);return w[K]||(w[K]=!0,q.push(G)),q},[]))}var hh=function(){var i=Object.keys(Ei).map(function(n){return Ei[n]});return i.forEach(function(n){g.debug(n.id)}),i.sort(function(n,l){return n.seq-l.seq}),i},Qc={NORMAL:0,REVERSE:1,HIGHLIGHT:2,MERGE:3,CHERRY_PICK:4};const Vs={parseDirective:function(i,n,l){zr.parseDirective(this,i,n,l)},getConfig:function(){return Nt().gitGraph},setDirection:function(i){l0=i},setOptions:function(i){g.debug("options str",i),i=(i=i&&i.trim())||"{}";try{u0=JSON.parse(i)}catch(n){g.error("error while parsing gitGraph options",n.message)}},getOptions:function(){return u0},commit:function(i,n,l,d){g.debug("Entering commit:",i,n,l,d),n=on.sanitizeText(n,Nt()),i=on.sanitizeText(i,Nt()),d=on.sanitizeText(d,Nt());var m={id:n||ys+"-"+uh(),message:i,seq:ys++,type:l||Qc.NORMAL,tag:d||"",parents:qi==null?[]:[qi.id],branch:Ri};qi=m,Ei[m.id]=m,Si[Ri]=m.id,g.debug("in pushCommit "+m.id)},branch:function(i,n){if(i=on.sanitizeText(i,Nt()),Si[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}Si[i]=qi!=null?qi.id:null,Gl[i]={name:i,order:n?parseInt(n,10):null},h0(i),g.debug("in createBranch")},merge:function(i,n,l,d){i=on.sanitizeText(i,Nt()),n=on.sanitizeText(n,Nt());var m=Ei[Si[Ri]],w=Ei[Si[i]];if(Ri===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(m===void 0||!m){var S=new Error('Incorrect usage of "merge". Current branch ('+Ri+")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(Si[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(w===void 0||!w){var B=new Error('Incorrect usage of "merge". Branch to be merged ('+i+") has no commits");throw B.hash={text:"merge "+i,token:"merge "+i,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:['"commit"']},B}if(m===w){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&&Ei[n]!==void 0){var G=new Error('Incorrect usage of "merge". Commit with id:'+n+" already exists, use different custom Id");throw G.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]},G}var K={id:n||ys+"-"+uh(),message:"merged branch "+i+" into "+Ri,seq:ys++,parents:[qi==null?null:qi.id,Si[i]],branch:Ri,type:Qc.MERGE,customType:l,customId:!!n,tag:d||""};qi=K,Ei[K.id]=K,Si[Ri]=K.id,g.debug(Si),g.debug("in mergeBranch")},cherryPick:function(i,n){if(i=on.sanitizeText(i,Nt()),n=on.sanitizeText(n,Nt()),!i||Ei[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=Ei[i],m=d.branch;if(d.type===Qc.MERGE){var w=new Error('Incorrect usage of "cherryPick". Source commit should not be a merge commit');throw w.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"]},w}if(!n||Ei[n]===void 0){if(m===Ri){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=Ei[Si[Ri]];if(S===void 0||!S){var N=new Error('Incorrect usage of "cherry-pick". Current branch ('+Ri+")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 B={id:ys+"-"+uh(),message:"cherry-picked "+d+" into "+Ri,seq:ys++,parents:[qi==null?null:qi.id,d.id],branch:Ri,type:Qc.CHERRY_PICK,tag:"cherry-pick:"+d.id};qi=B,Ei[B.id]=B,Si[Ri]=B.id,g.debug(Si),g.debug("in cheeryPick")}},checkout:h0,prettyPrint:function(){g.debug(Ei),ms([hh()[0]])},clear:function(){Ei={},qi=null;var i=Nt().gitGraph.mainBranchName,n=Nt().gitGraph.mainBranchOrder;(Si={})[i]=null,(Gl={})[i]={name:i,order:n},Ri=i,ys=0,Kt()},getBranchesAsObjArray:function(){return Object.values(Gl).map(function(i,n){return i.order!==null?i:s0(s0({},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 Si},getCommits:function(){return Ei},getCommitsArray:hh,getCurrentBranch:function(){return Ri},getDirection:function(){return l0},getHead:function(){return qi},setAccTitle:xr,getAccTitle:Ir,getAccDescription:pi,setAccDescription:Ur,commitType:Qc};var Qo={},na={},bs={},Gs=[],vs=0,Kc=function(i,n,l){var d=Nt().gitGraph,m=i.append("g").attr("class","commit-bullets"),w=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 B=n[S],q=na[B.branch].pos,G=k+10;if(l){var K,Q=B.customType!==void 0&&B.customType!==""?B.customType:B.type;switch(Q){case 0:default:K="commit-normal";break;case 1:K="commit-reverse";break;case 2:K="commit-highlight";break;case 3:K="commit-merge";break;case 4:K="commit-cherry-pick"}if(Q===2){var xt=m.append("rect");xt.attr("x",G-10),xt.attr("y",q-10),xt.attr("height",20),xt.attr("width",20),xt.attr("class","commit ".concat(B.id," commit-highlight").concat(na[B.branch].index%8," ").concat(K,"-outer")),m.append("rect").attr("x",G-6).attr("y",q-6).attr("height",12).attr("width",12).attr("class","commit ".concat(B.id," commit").concat(na[B.branch].index%8," ").concat(K,"-inner"))}else if(Q===4)m.append("circle").attr("cx",G).attr("cy",q).attr("r",10).attr("class","commit ".concat(B.id," ").concat(K)),m.append("circle").attr("cx",G-3).attr("cy",q+2).attr("r",2.75).attr("fill","#fff").attr("class","commit ".concat(B.id," ").concat(K)),m.append("circle").attr("cx",G+3).attr("cy",q+2).attr("r",2.75).attr("fill","#fff").attr("class","commit ".concat(B.id," ").concat(K)),m.append("line").attr("x1",G+3).attr("y1",q+1).attr("x2",G).attr("y2",q-5).attr("stroke","#fff").attr("class","commit ".concat(B.id," ").concat(K)),m.append("line").attr("x1",G-3).attr("y1",q+1).attr("x2",G).attr("y2",q-5).attr("stroke","#fff").attr("class","commit ".concat(B.id," ").concat(K));else{var Ct=m.append("circle");if(Ct.attr("cx",G),Ct.attr("cy",q),Ct.attr("r",B.type===3?9:10),Ct.attr("class","commit ".concat(B.id," commit").concat(na[B.branch].index%8)),Q===3){var Bt=m.append("circle");Bt.attr("cx",G),Bt.attr("cy",q),Bt.attr("r",6),Bt.attr("class","commit ".concat(K," ").concat(B.id," commit").concat(na[B.branch].index%8))}Q===1&&m.append("path").attr("d","M ".concat(G-5,",").concat(q-5,"L").concat(G+5,",").concat(q+5,"M").concat(G-5,",").concat(q+5,"L").concat(G+5,",").concat(q-5)).attr("class","commit ".concat(K," ").concat(B.id," commit").concat(na[B.branch].index%8))}}if(bs[B.id]={x:k+10,y:q},l){if(B.type!==4&&(B.customId&&B.type===3||B.type!==3)&&d.showCommitLabel){var Ft=w.append("g"),Lt=Ft.insert("rect").attr("class","commit-label-bkg"),Et=Ft.append("text").attr("x",k).attr("y",q+25).attr("class","commit-label").text(B.id),_t=Et.node().getBBox();if(Lt.attr("x",k+10-_t.width/2-2).attr("y",q+13.5).attr("width",_t.width+4).attr("height",_t.height+4),Et.attr("x",k+10-_t.width/2),d.rotateCommitLabel){var qt=-7.5-(_t.width+10)/25*9.5,ve=10+_t.width/25*8.5;Ft.attr("transform","translate("+qt+", "+ve+") rotate(-45, "+k+", "+q+")")}}if(B.tag){var de=w.insert("polygon"),je=w.append("circle"),te=w.append("text").attr("y",q-16).attr("class","tag-label").text(B.tag),ne=te.node().getBBox();te.attr("x",k+10-ne.width/2);var ce=ne.height/2,le=q-19.2;de.attr("class","tag-label-bkg").attr("points",`
`.concat(k-ne.width/2-2,",").concat(le+2,`
`).concat(k-ne.width/2-2,",").concat(le-2,`
`).concat(k+10-ne.width/2-4,",").concat(le-ce-2,`
`).concat(k+10+ne.width/2+4,",").concat(le-ce-2,`
`).concat(k+10+ne.width/2+4,",").concat(le+ce+2,`
`).concat(k+10-ne.width/2-4,",").concat(le+ce+2)),je.attr("cx",k-ne.width/2+2).attr("cy",le).attr("r",1.5).attr("class","tag-hole")}}(k+=50)>vs&&(vs=k)})},Xl=function i(n,l,d){var m=d||0,w=n+Math.abs(n-l)/2;if(m>5)return w;for(var k=!0,S=0;S<Gs.length;S++)Math.abs(Gs[S]-w)<10&&(k=!1);return k?(Gs.push(w),w):i(n,l-Math.abs(n-l)/5,m+1)};const f0={draw:function(i,n,l,d){na={},bs={},Qo={},vs=0,Gs=[];var m=Nt(),w=Nt().gitGraph;g.debug("in gitgraph renderer",i+`
`,"id:",n,l),Qo=d.db.getCommits();var k=d.db.getBranchesAsObjArray(),S=0;k.forEach(function(xt,Ct){na[xt.name]={pos:S,index:Ct},S+=50+(w.rotateCommitLabel?40:0)});var N=(0,T.select)('[id="'.concat(n,'"]'));kr(d.db,N,n),Kc(N,Qo,!1),w.showBranches&&function(xt,Ct){var Bt=Nt().gitGraph,Ft=xt.append("g");Ct.forEach(function(Lt,Et){var _t=Et%8,qt=na[Lt.name].pos,ve=Ft.append("line");ve.attr("x1",0),ve.attr("y1",qt),ve.attr("x2",vs),ve.attr("y2",qt),ve.attr("class","branch branch"+_t),Gs.push(qt);var de=function(ce){var le=document.createElementNS("http://www.w3.org/2000/svg","text"),Gt=[];Gt=typeof ce=="string"?ce.split(/\\n|\n|<br\s*\/?>/gi):Array.isArray(ce)?ce:[];for(var oe=0;oe<Gt.length;oe++){var _e=document.createElementNS("http://www.w3.org/2000/svg","tspan");_e.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),_e.setAttribute("dy","1em"),_e.setAttribute("x","0"),_e.setAttribute("class","row"),_e.textContent=Gt[oe].trim(),le.appendChild(_e)}return le}(Lt.name),je=Ft.insert("rect"),te=Ft.insert("g").attr("class","branchLabel").insert("g").attr("class","label branch-label"+_t);te.node().appendChild(de);var ne=de.getBBox();je.attr("class","branchLabelBkg label"+_t).attr("rx",4).attr("ry",4).attr("x",-ne.width-4-(Bt.rotateCommitLabel===!0?30:0)).attr("y",-ne.height/2+8).attr("width",ne.width+18).attr("height",ne.height+4),te.attr("transform","translate("+(-ne.width-14-(Bt.rotateCommitLabel===!0?30:0))+", "+(qt-ne.height/2-1)+")"),je.attr("transform","translate(-19, "+(qt-ne.height/2)+")")})}(N,k),function(xt,Ct){var Bt=xt.append("g").attr("class","commit-arrows");Object.keys(Ct).forEach(function(Ft,Lt){var Et=Ct[Ft];Et.parents&&Et.parents.length>0&&Et.parents.forEach(function(_t){(function(qt,ve,de,je){var te=Nt(),ne=bs[ve.id],ce=bs[de.id],le=function(gn,wn,Ue){return bs[wn.id],bs[gn.id],Object.keys(Ue).filter(function(nn){return Ue[nn].branch===wn.branch&&Ue[nn].seq>gn.seq&&Ue[nn].seq<wn.seq}).length>0}(ve,de,je);te.arrowMarkerAbsolute&&(window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search).replace(/\(/g,"\\(").replace(/\)/g,"\\)");var Gt,oe="",_e="",we=0,Je=0,dn=na[de.branch].index;if(le){oe="A 10 10, 0, 0, 0,",_e="A 10 10, 0, 0, 1,",we=10,Je=10,dn=na[de.branch].index;var Me=ne.y<ce.y?Xl(ne.y,ce.y):Xl(ce.y,ne.y);Gt=ne.y<ce.y?"M ".concat(ne.x," ").concat(ne.y," L ").concat(ne.x," ").concat(Me-we," ").concat(oe," ").concat(ne.x+Je," ").concat(Me," L ").concat(ce.x-we," ").concat(Me," ").concat(_e," ").concat(ce.x," ").concat(Me+Je," L ").concat(ce.x," ").concat(ce.y):"M ".concat(ne.x," ").concat(ne.y," L ").concat(ne.x," ").concat(Me+we," ").concat(_e," ").concat(ne.x+Je," ").concat(Me," L ").concat(ce.x-we," ").concat(Me," ").concat(oe," ").concat(ce.x," ").concat(Me-Je," L ").concat(ce.x," ").concat(ce.y)}else ne.y<ce.y&&(oe="A 20 20, 0, 0, 0,",we=20,Je=20,dn=na[de.branch].index,Gt="M ".concat(ne.x," ").concat(ne.y," L ").concat(ne.x," ").concat(ce.y-we," ").concat(oe," ").concat(ne.x+Je," ").concat(ce.y," L ").concat(ce.x," ").concat(ce.y)),ne.y>ce.y&&(oe="A 20 20, 0, 0, 0,",we=20,Je=20,dn=na[ve.branch].index,Gt="M ".concat(ne.x," ").concat(ne.y," L ").concat(ce.x-we," ").concat(ne.y," ").concat(oe," ").concat(ce.x," ").concat(ne.y-Je," L ").concat(ce.x," ").concat(ce.y)),ne.y===ce.y&&(dn=na[ve.branch].index,Gt="M ".concat(ne.x," ").concat(ne.y," L ").concat(ne.x," ").concat(ce.y-we," ").concat(oe," ").concat(ne.x+Je," ").concat(ce.y," L ").concat(ce.x," ").concat(ce.y));qt.append("path").attr("d",Gt).attr("class","arrow arrow"+dn%8)})(Bt,Ct[_t],Et,Ct)})})}(N,Qo),Kc(N,Qo,!0);var B=w.diagramPadding,q=N.node().getBBox(),G=q.width+2*B,K=q.height+2*B;Qi(N,0,G,m.useMaxWidth);var Q="".concat(q.x-B-(w.showBranches&&w.rotateCommitLabel===!0?30:0)," ").concat(q.y-B," ").concat(G," ").concat(K);N.attr("viewBox",Q)}};var d0=p(2553),p0=p.n(d0);const g0=function(i){return i.match(/^\s*gitGraph/)?"gitGraph":null},Zl=function(){var i,n,l,d,m,w;i="gitGraph",n=p0(),l=Vs,d=f0,m=void 0,w=g0,xi[i]={parser:n,db:l,renderer:d,init:m},function(k,S){Er[k]={detector:S}}(i,w)};function y0(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 Jc(i,n,l){return n in i?Object.defineProperty(i,n,{value:l,enumerable:!0,configurable:!0,writable:!0}):i[n]=l,i}var Zn=function(){function i(d){var m,w;(function(N,B){if(!(N instanceof B))throw new TypeError("Cannot call a class as a function")})(this,i),Jc(this,"type","graph"),Jc(this,"parser",void 0),Jc(this,"renderer",void 0),Jc(this,"db",void 0);var k=Zo(),S=Nt();this.txt=d,this.type=gi(d,S),g.debug("Type "+this.type),this.db=k[this.type].db,(m=(w=this.db).clear)===null||m===void 0||m.call(w),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),g.debug("Initialized diagram "+this.type,S)),this.txt=this.txt+`
`,this.parser.parser.yy.graphType=this.type,this.parser.parser.yy.parseError=function(N,B){throw{str:N,hash:B}},this.parser.parse(this.txt)}var n,l;return n=i,(l=[{key:"parse",value:function(d){var m=!1;try{d+=`
`,this.db.clear(),this.parser.parse(d)}catch(w){if(m=!0,!p.g.mermaid.parseError)throw w;w.str!=null?p.g.mermaid.parseError(w.str,w.hash):p.g.mermaid.parseError(w)}return!m}},{key:"getParser",value:function(){return this.parser}},{key:"getType",value:function(){return this.type}}])&&y0(n.prototype,l),Object.defineProperty(n,"prototype",{writable:!1}),i}();const Xs=Zn,er=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;
}
`)},ri=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;
}
`)},tl=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 ra={flowchart:ri,"flowchart-v2":ri,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:er,"classDiagram-v2":er,class:er,stateDiagram:tl,state:tl,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 Nr(i){return Nr=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},Nr(i)}var Ln=!1,ur=function(i){var n=i;return(n=(n=n.replace(/fl°°/g,function(){return"&#"})).replace(/fl°/g,function(){return"&"})).replace(/¶ß/g,function(){return";"})},to={};function Hi(i){Al.setConf(i.flowchart),Wo.setConf(i.flowchart),i.sequenceDiagram!==void 0&&Hc.setConf(ee(i.sequence,i.sequenceDiagram)),Hc.setConf(i.sequence),Pc.setConf(i.gantt),X1.setConf(i.state),Q1.setConf(i.state),Xc.setConf(i.journey),_u.setConf(i.class)}var Nn=Object.freeze({render:function(i,n,l,d){Ln||(Zl(),Ln=!0),Xn();var m=n.replace(/\r\n?/g,`
`),w=Vn.detectInit(m);w&&(mi(w),Lr(w));var k=Nt();g.debug(k),n.length>k.maxTextSize&&(m="graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa");var S,N,B=(0,T.select)("body");if(d!==void 0){if(k.securityLevel==="sandbox"){var q=(0,T.select)("body").append("iframe").attr("id","i"+i).attr("style","width: 100%; height: 100%;").attr("sandbox","");(B=(0,T.select)(q.nodes()[0].contentDocument.body)).node().style.margin=0}if(d.innerHTML="",k.securityLevel==="sandbox"){var G=(0,T.select)(d).append("iframe").attr("id","i"+i).attr("style","width: 100%; height: 100%;").attr("sandbox","");(B=(0,T.select)(G.nodes()[0].contentDocument.body)).node().style.margin=0}else B=(0,T.select)(d);B.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 K,Q=document.getElementById(i);if(Q&&Q.remove(),(K=k.securityLevel!=="sandbox"?document.querySelector("#d"+i):document.querySelector("#i"+i))&&K.remove(),k.securityLevel==="sandbox"){var xt=(0,T.select)("body").append("iframe").attr("id","i"+i).attr("style","width: 100%; height: 100%;").attr("sandbox","");(B=(0,T.select)(xt.nodes()[0].contentDocument.body)).node().style.margin=0}else B=(0,T.select)("body");B.append("div").attr("id","d"+i).append("svg").attr("id",i).attr("width","100%").attr("xmlns","http://www.w3.org/2000/svg").append("g")}m=m.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 _e=oe.substring(1,oe.length-1);return/^\+?\d+$/.test(_e)?"\uFB02\xB0\xB0"+_e+"\xB6\xDF":"\uFB02\xB0"+_e+"\xB6\xDF"});try{S=new Xs(m)}catch(oe){S=new Xs("error"),N=oe}var Ct=B.select("#d"+i).node(),Bt=S.type,Ft=Ct.firstChild,Lt=Ft.firstChild,Et="";if(k.themeCSS!==void 0&&(Et+=`
`.concat(k.themeCSS)),k.fontFamily!==void 0&&(Et+=`
:root { --mermaid-font-family: `.concat(k.fontFamily,"}")),k.altFontFamily!==void 0&&(Et+=`
:root { --mermaid-alt-font-family: `.concat(k.altFontFamily,"}")),Bt==="flowchart"||Bt==="flowchart-v2"||Bt==="graph"){var _t=Al.getClasses(m,S),qt=k.htmlLabels||k.flowchart.htmlLabels;for(var ve in _t)qt?(Et+=`
.`.concat(ve," > * { ").concat(_t[ve].styles.join(" !important; ")," !important; }"),Et+=`
.`.concat(ve," span { ").concat(_t[ve].styles.join(" !important; ")," !important; }")):(Et+=`
.`.concat(ve," path { ").concat(_t[ve].styles.join(" !important; ")," !important; }"),Et+=`
.`.concat(ve," rect { ").concat(_t[ve].styles.join(" !important; ")," !important; }"),Et+=`
.`.concat(ve," polygon { ").concat(_t[ve].styles.join(" !important; ")," !important; }"),Et+=`
.`.concat(ve," ellipse { ").concat(_t[ve].styles.join(" !important; ")," !important; }"),Et+=`
.`.concat(ve," circle { ").concat(_t[ve].styles.join(" !important; ")," !important; }"),_t[ve].textStyles&&(Et+=`
.`.concat(ve," tspan { ").concat(_t[ve].textStyles.join(" !important; ")," !important; }")))}var de=function(oe,_e){return Vt(kn("".concat(oe,"{").concat(_e,"}")),kt)}("#".concat(i),function(oe,_e,we){return` {
font-family: `.concat(we.fontFamily,`;
font-size: `).concat(we.fontSize,`;
fill: `).concat(we.textColor,`
}
/* Classes common for multiple diagrams */
.error-icon {
fill: `).concat(we.errorBkgColor,`;
}
.error-text {
fill: `).concat(we.errorTextColor,`;
stroke: `).concat(we.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(we.lineColor,`;
stroke: `).concat(we.lineColor,`;
}
.marker.cross {
stroke: `).concat(we.lineColor,`;
}
svg {
font-family: `).concat(we.fontFamily,`;
font-size: `).concat(we.fontSize,`;
}
`).concat(ra[oe](we),`
`).concat(_e,`
`)}(Bt,Et,k.themeVariables)),je=document.createElement("style");je.innerHTML="#".concat(i," ")+de,Ft.insertBefore(je,Lt);try{S.renderer.draw(m,i,se,S)}catch(oe){throw _u.draw(i,se),oe}B.select('[id="'.concat(i,'"]')).selectAll("foreignobject > *").attr("xmlns","http://www.w3.org/1999/xhtml");var te=B.select("#d"+i).node().innerHTML;if(g.debug("cnf.arrowMarkerAbsolute",k.arrowMarkerAbsolute),k.arrowMarkerAbsolute&&k.arrowMarkerAbsolute!=="false"||k.arrowMarkerAbsolute==="sandbox"||(te=te.replace(/marker-end="url\(.*?#/g,'marker-end="url(#',"g")),te=(te=ur(te)).replace(/<br>/g,"<br/>"),k.securityLevel==="sandbox"){var ne=B.select("#d"+i+" svg").node(),ce="100%";ne&&(ce=ne.viewBox.baseVal.height+"px"),te='<iframe style="width:'.concat("100%",";height:").concat(ce,';border:0;margin:0;" src="data:text/html;base64,').concat(btoa('<body style="margin:0">'+te+"</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"&&(te=Yr().sanitize(te,{ADD_TAGS:["foreignobject"],ADD_ATTR:["dominant-baseline"]}));if(l!==void 0)switch(Bt){case"flowchart":case"flowchart-v2":l(te,po.bindFunctions);break;case"gantt":l(te,Pu.bindFunctions);break;case"class":case"classDiagram":l(te,la.bindFunctions);break;default:l(te)}else g.debug("CB = undefined!");Gu.forEach(function(oe){oe()}),Gu=[];var le=k.securityLevel==="sandbox"?"#i"+i:"#d"+i,Gt=(0,T.select)(le).node();if(Gt!==null&&typeof Gt.remove=="function"&&(0,T.select)(le).node().remove(),N)throw N;return te},parse:function(i,n){Ln||(Zl(),Ln=!0);var l=!1;try{var d=n||new Xs(i);return d.db.clear(),d.parse(i)}catch(m){if(l=!0,!Zs.parseError)throw m;m.str!=null?Zs.parseError(m.str,m.hash):Zs.parseError(m)}return!l},parseDirective:function(i,n,l,d){try{if(n!==void 0)switch(n=n.trim(),l){case"open_directive":to={};break;case"type_directive":to.type=n.toLowerCase();break;case"arg_directive":to.args=JSON.parse(n);break;case"close_directive":(function(m,w,k){switch(g.debug("Directive type=".concat(w.type," with args:"),w.args),w.type){case"init":case"initialize":["config"].forEach(function(S){w.args[S]!==void 0&&(k==="flowchart-v2"&&(k="flowchart"),w.args[k]=w.args[S],delete w.args[S])}),g.debug("sanitize in handleDirective",w.args),mi(w.args),g.debug("sanitize in handleDirective (done)",w.args),Lr(w.args);break;case"wrap":case"nowrap":m&&m.setWrap&&m.setWrap(w.type==="wrap");break;case"themeCss":g.warn("themeCss encountered");break;default:g.warn("Unhandled directive: source: '%%{".concat(w.type,": ").concat(JSON.stringify(w.args?w.args:{}),"}%%"),w)}})(i,to,d),to=null}}catch(m){g.error("Error while rendering sequenceDiagram directive: ".concat(n," jison context: ").concat(l)),g.error(m.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=ee({},d)}(i),i!=null&&i.theme&&Rn[i.theme]?i.themeVariables=Rn[i.theme].getThemeVariables(i.themeVariables):i&&(i.themeVariables=Rn.default.getThemeVariables(i.themeVariables));var l=Nr(i)==="object"?function(d){return Bn=ee({},li),Bn=ee(Bn,d),d.theme&&Rn[d.theme]&&(Bn.themeVariables=Rn[d.theme].getThemeVariables(d.themeVariables)),Ar=yr(Bn,_r),Bn}(i):qr();Hi(l),E(l.logLevel),Ln||(Zl(),Ln=!0)},getConfig:Nt,setConfig:function(i){return ee(Ar,i),Nt()},getSiteConfig:qr,updateSiteConfig:function(i){return Bn=ee(Bn,i),yr(Bn,_r),Bn},reset:function(){Xn()},globalReset:function(){Xn(),Hi(Nt())},defaultConfig:li});E(Nt().logLevel),Xn(Nt());const zr=Nn;var fh=function(){var i,n,l=zr.getConfig();arguments.length>=2?(arguments[0]!==void 0&&(ki.sequenceConfig=arguments[0]),i=arguments[1]):i=arguments[0],typeof arguments[arguments.length-1]=="function"?(n=arguments[arguments.length-1],g.debug("Callback function found")):l.mermaid!==void 0&&(typeof l.mermaid.callback=="function"?(n=l.mermaid.callback,g.debug("Callback function found")):g.debug("No Callback function found")),i=i===void 0?document.querySelectorAll(".mermaid"):typeof i=="string"?document.querySelectorAll(i):i instanceof window.Node?[i]:i,g.debug("Start On Load before: "+ki.startOnLoad),ki.startOnLoad!==void 0&&(g.debug("Start On Load inner: "+ki.startOnLoad),zr.updateSiteConfig({startOnLoad:ki.startOnLoad})),ki.ganttConfig!==void 0&&zr.updateSiteConfig({gantt:ki.ganttConfig});for(var d,m=new Vn.initIdGenerator(l.deterministicIds,l.deterministicIDSeed),w=[],k=function(N){g.info("Rendering diagram: "+i[N].id,N);var B=i[N];if(B.getAttribute("data-processed"))return"continue";B.setAttribute("data-processed",!0);var q="mermaid-".concat(m.next());d=B.innerHTML,d=Vn.entityDecode(d).trim().replace(/<br\s*\/?>/gi,"<br/>");var G=Vn.detectInit(d);G&&g.debug("Detected early reinit: ",G);try{zr.render(q,d,function(K,Q){B.innerHTML=K,n!==void 0&&n(q),Q&&Q(B)},B)}catch(K){g.warn("Catching Error (bootstrap)",K),typeof ki.parseError=="function"&&ki.parseError({error:K,str:K.str,hash:K.hash,message:K.str}),w.push({error:K,str:K.str,hash:K.hash,message:K.str})}},S=0;S<i.length;S++)k(S);if(w.length>0)throw w[0]},Ql=function(){ki.startOnLoad?zr.getConfig().startOnLoad&&ki.init():ki.startOnLoad===void 0&&(g.debug("In start, no config"),zr.getConfig().startOnLoad&&ki.init())};typeof document!="undefined"&&window.addEventListener("load",function(){Ql()},!1);var ki={startOnLoad:!0,htmlLabels:!0,diagrams:{},mermaidAPI:zr,parse:zr!=null?zr.parse:null,render:zr!=null?zr.render:null,init:function(){try{fh.apply(void 0,arguments)}catch(i){g.warn("Syntax Error rendering"),g.warn(i.str)}},initThrowsErrors:fh,initialize:function(i){i.mermaid!==void 0&&(i.mermaid.startOnLoad!==void 0&&(ki.startOnLoad=i.mermaid.startOnLoad),i.mermaid.htmlLabels!==void 0&&(ki.htmlLabels=i.mermaid.htmlLabels!=="false"&&i.mermaid.htmlLabels!==!1)),zr.initialize(i)},contentLoaded:Ql,setParseErrorHandler:function(i){ki.parseError=i}};const Zs=ki},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(_,g,E,A){var T=_.append("marker").attr("id",g).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(T,E[A+"Style"]),E[A+"Class"]&&T.attr("class",E[A+"Class"])}M.exports={default:u,normal:u,vee:function(_,g,E,A){var T=_.append("marker").attr("id",g).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(T,E[A+"Style"]),E[A+"Class"]&&T.attr("class",E[A+"Class"])},undirected:function(_,g,E,A){var T=_.append("marker").attr("id",g).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(T,E[A+"Style"]),E[A+"Class"]&&T.attr("class",E[A+"Class"])}}},5632:(M,z,p)=>{var b=p(8355),u=p(4322),_=p(1322);M.exports=function(g,E){var A,T=E.nodes().filter(function(O){return b.isSubgraph(E,O)}),F=g.selectAll("g.cluster").data(T,function(O){return O});return F.selectAll("*").remove(),F.enter().append("g").attr("class","cluster").attr("id",function(O){return E.node(O).id}).style("opacity",0),F=g.selectAll("g.cluster"),b.applyTransition(F,E).style("opacity",1),F.each(function(O){var P=E.node(O),V=u.select(this);u.select(this).append("rect");var J=V.append("g").attr("class","label");_(J,P,P.clusterLabelPos)}),F.selectAll("rect").each(function(O){var P=E.node(O),V=u.select(this);b.applyStyle(V,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),g=p(4322);M.exports=function(E,A){var T,F=E.selectAll("g.edgeLabel").data(A.edges(),function(O){return _.edgeToId(O)}).classed("update",!0);return F.exit().remove(),F.enter().append("g").classed("edgeLabel",!0).style("opacity",0),(F=E.selectAll("g.edgeLabel")).each(function(O){var P=g.select(this);P.select(".label").remove();var V=A.edge(O),J=u(P,A.edge(O),0,0).classed("label",!0),tt=J.node().getBBox();V.labelId&&J.attr("id",V.labelId),b.has(V,"width")||(V.width=tt.width),b.has(V,"height")||(V.height=tt.height)}),T=F.exit?F.exit():F.selectAll(null),_.applyTransition(T,A).style("opacity",0).remove(),F}},940:(M,z,p)=>{var b=p(1034),u=p(3042),_=p(8355),g=p(4322);function E(A,T){var F=(g.line||g.svg.line)().x(function(O){return O.x}).y(function(O){return O.y});return(F.curve||F.interpolate)(A.curve),F(T)}M.exports=function(A,T,F){var O=A.selectAll("g.edgePath").data(T.edges(),function(J){return _.edgeToId(J)}).classed("update",!0),P=function(J,tt){var ht=J.enter().append("g").attr("class","edgePath").style("opacity",0);return ht.append("path").attr("class","path").attr("d",function(et){var wt=tt.edge(et),at=tt.node(et.v).elem;return E(wt,b.range(wt.points.length).map(function(){return vt=(ut=at).getBBox(),{x:(Qt=ut.ownerSVGElement.getScreenCTM().inverse().multiply(ut.getScreenCTM()).translate(vt.width/2,vt.height/2)).e,y:Qt.f};var ut,vt,Qt}))}),ht.append("defs"),ht}(O,T);(function(J,tt){var ht=J.exit();_.applyTransition(ht,tt).style("opacity",0).remove()})(O,T);var V=O.merge!==void 0?O.merge(P):O;return _.applyTransition(V,T).style("opacity",1),V.each(function(J){var tt=g.select(this),ht=T.edge(J);ht.elem=this,ht.id&&tt.attr("id",ht.id),_.applyClass(tt,ht.class,(tt.classed("update")?"update ":"")+"edgePath")}),V.selectAll("path.path").each(function(J){var tt=T.edge(J);tt.arrowheadId=b.uniqueId("arrowhead");var ht=g.select(this).attr("marker-end",function(){return"url("+(et=location.href,wt=tt.arrowheadId,et.split("#")[0]+"#"+wt+")");var et,wt}).style("fill","none");_.applyTransition(ht,T).attr("d",function(et){return function(wt,at){var ut=wt.edge(at),vt=wt.node(at.v),Qt=wt.node(at.w),Vt=ut.points.slice(1,ut.points.length-1);return Vt.unshift(u(vt,Vt[0])),Vt.push(u(Qt,Vt[Vt.length-1])),E(ut,Vt)}(T,et)}),_.applyStyle(ht,tt.style)}),V.selectAll("defs *").remove(),V.selectAll("defs").each(function(J){var tt=T.edge(J);(0,F[tt.arrowhead])(g.select(this),tt.arrowheadId,tt,"arrowhead")}),V}},607:(M,z,p)=>{var b=p(1034),u=p(1322),_=p(8355),g=p(4322);M.exports=function(E,A,T){var F,O=A.nodes().filter(function(V){return!_.isSubgraph(A,V)}),P=E.selectAll("g.node").data(O,function(V){return V}).classed("update",!0);return P.exit().remove(),P.enter().append("g").attr("class","node").style("opacity",0),(P=E.selectAll("g.node")).each(function(V){var J=A.node(V),tt=g.select(this);_.applyClass(tt,J.class,(tt.classed("update")?"update ":"")+"node"),tt.select("g.label").remove();var ht=tt.append("g").attr("class","label"),et=u(ht,J),wt=T[J.shape],at=b.pick(et.node().getBBox(),"width","height");J.elem=this,J.id&&tt.attr("id",J.id),J.labelId&&ht.attr("id",J.labelId),b.has(J,"width")&&(at.width=J.width),b.has(J,"height")&&(at.height=J.height),at.width+=J.paddingLeft+J.paddingRight,at.height+=J.paddingTop+J.paddingBottom,ht.attr("transform","translate("+(J.paddingLeft-J.paddingRight)/2+","+(J.paddingTop-J.paddingBottom)/2+")");var ut=g.select(this);ut.select(".label-container").remove();var vt=wt(ut,at,J).classed("label-container",!0);_.applyStyle(vt,J.style);var Qt=vt.node().getBBox();J.width=Qt.width,J.height=Qt.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(u){}b||(b=window.d3),M.exports=b},6478:(M,z,p)=>{var b;try{b=p(681)}catch(u){}b||(b=window.dagre),M.exports=b},6614:(M,z,p)=>{var b;try{b=p(8282)}catch(u){}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,_,g){return b(u,_,_,g)}},3260:M=>{M.exports=function(z,p,b,u){var _=z.x,g=z.y,E=_-u.x,A=g-u.y,T=Math.sqrt(p*p*A*A+b*b*E*E),F=Math.abs(p*b*E/T);u.x<_&&(F=-F);var O=Math.abs(p*b*A/T);return u.y<g&&(O=-O),{x:_+F,y:g+O}}},6808:M=>{function z(p,b){return p*b>0}M.exports=function(p,b,u,_){var g,E,A,T,F,O,P,V,J,tt,ht,et,wt;if(g=b.y-p.y,A=p.x-b.x,F=b.x*p.y-p.x*b.y,J=g*u.x+A*u.y+F,tt=g*_.x+A*_.y+F,!(J!==0&&tt!==0&&z(J,tt)||(E=_.y-u.y,T=u.x-_.x,O=_.x*u.y-u.x*_.y,P=E*p.x+T*p.y+O,V=E*b.x+T*b.y+O,P!==0&&V!==0&&z(P,V)||(ht=g*T-E*A)==0)))return et=Math.abs(ht/2),{x:(wt=A*O-T*F)<0?(wt-et)/ht:(wt+et)/ht,y:(wt=E*F-g*O)<0?(wt-et)/ht:(wt+et)/ht}}},3042:M=>{M.exports=function(z,p){return z.intersect(p)}},5337:(M,z,p)=>{var b=p(6808);M.exports=function(u,_,g){var E=u.x,A=u.y,T=[],F=Number.POSITIVE_INFINITY,O=Number.POSITIVE_INFINITY;_.forEach(function(wt){F=Math.min(F,wt.x),O=Math.min(O,wt.y)});for(var P=E-u.width/2-F,V=A-u.height/2-O,J=0;J<_.length;J++){var tt=_[J],ht=_[J<_.length-1?J+1:0],et=b(u,g,{x:P+tt.x,y:V+tt.y},{x:P+ht.x,y:V+ht.y});et&&T.push(et)}return T.length?(T.length>1&&T.sort(function(wt,at){var ut=wt.x-g.x,vt=wt.y-g.y,Qt=Math.sqrt(ut*ut+vt*vt),Vt=at.x-g.x,kt=at.y-g.y,It=Math.sqrt(Vt*Vt+kt*kt);return Qt<It?-1:Qt===It?0:1}),T[0]):(console.log("NO INTERSECTION FOUND, RETURN NODE CENTER",u),u)}},8049:M=>{M.exports=function(z,p){var b,u,_=z.x,g=z.y,E=p.x-_,A=p.y-g,T=z.width/2,F=z.height/2;return Math.abs(A)*T>Math.abs(E)*F?(A<0&&(F=-F),b=A===0?0:F*E/A,u=F):(E<0&&(T=-T),b=T,u=E===0?0:T*A/E),{x:_+b,y:g+u}}},8284:(M,z,p)=>{var b=p(8355);M.exports=function(u,_){var g=u.append("foreignObject").attr("width","100000"),E=g.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 T=E.node().getBoundingClientRect();return g.attr("width",T.width).attr("height",T.height),g}},1322:(M,z,p)=>{var b=p(7318),u=p(8284),_=p(8287);M.exports=function(g,E,A){var T=E.label,F=g.append("g");E.labelType==="svg"?_(F,E):typeof T!="string"||E.labelType==="html"?u(F,E):b(F,E);var O,P=F.node().getBBox();switch(A){case"top":O=-E.height/2;break;case"bottom":O=E.height/2-P.height;break;default:O=-P.height/2}return F.attr("transform","translate("+-P.width/2+","+O+")"),F}},8287:(M,z,p)=>{var b=p(8355);M.exports=function(u,_){var g=u;return g.node().appendChild(_.label),b.applyStyle(g,_.labelStyle),g}},7318:(M,z,p)=>{var b=p(8355);M.exports=function(u,_){for(var g=u.append("text"),E=function(T){for(var F,O="",P=!1,V=0;V<T.length;++V)F=T[V],P?(O+=F==="n"?`
`:F,P=!1):F==="\\"?P=!0:O+=F;return O}(_.label).split(`
`),A=0;A<E.length;A++)g.append("tspan").attr("xml:space","preserve").attr("dy","1em").attr("x","1").text(E[A]);return b.applyStyle(g,_.labelStyle),g}},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(u){}b||(b=window._),M.exports=b},6381:(M,z,p)=>{var b=p(8355),u=p(4322);M.exports=function(_,g){var E=_.filter(function(){return!u.select(this).classed("update")});function A(T){var F=g.node(T);return"translate("+F.x+","+F.y+")"}E.attr("transform",A),b.applyTransition(_,g).style("opacity",1).attr("transform",A),b.applyTransition(E.selectAll("rect"),g).attr("width",function(T){return g.node(T).width}).attr("height",function(T){return g.node(T).height}).attr("x",function(T){return-g.node(T).width/2}).attr("y",function(T){return-g.node(T).height/2})}},4577:(M,z,p)=>{var b=p(8355),u=p(4322),_=p(1034);M.exports=function(g,E){function A(T){var F=E.edge(T);return _.has(F,"x")?"translate("+F.x+","+F.y+")":""}g.filter(function(){return!u.select(this).classed("update")}).attr("transform",A),b.applyTransition(g,E).style("opacity",1).attr("transform",A)}},4849:(M,z,p)=>{var b=p(8355),u=p(4322);M.exports=function(_,g){function E(A){var T=g.node(A);return"translate("+T.x+","+T.y+")"}_.filter(function(){return!u.select(this).classed("update")}).attr("transform",E),b.applyTransition(_,g).style("opacity",1).attr("transform",E)}},5787:(M,z,p)=>{var b=p(1034),u=p(4322),_=p(6478).layout;M.exports=function(){var T=p(607),F=p(5632),O=p(6315),P=p(940),V=p(4849),J=p(4577),tt=p(6381),ht=p(4418),et=p(9144),wt=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,g),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"),Qt=A(vt,"clusters"),Vt=A(vt,"edgePaths"),kt=O(A(vt,"edgeLabels"),ut),It=T(A(vt,"nodes"),ut,ht);_(ut),V(It,ut),J(kt,ut),P(Vt,ut,et);var Tt=F(Qt,ut);tt(Tt,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 wt.createNodes=function(at){return arguments.length?(T=at,wt):T},wt.createClusters=function(at){return arguments.length?(F=at,wt):F},wt.createEdgeLabels=function(at){return arguments.length?(O=at,wt):O},wt.createEdgePaths=function(at){return arguments.length?(P=at,wt):P},wt.shapes=function(at){return arguments.length?(ht=at,wt):ht},wt.arrows=function(at){return arguments.length?(et=at,wt):et},wt};var g={paddingLeft:10,paddingRight:10,paddingTop:10,paddingBottom:10,rx:0,ry:0,shape:"rect"},E={arrowhead:"normal",curve:u.curveLinear};function A(T,F){var O=T.select("g."+F);return O.empty()&&(O=T.append("g").attr("class",F)),O}},4418:(M,z,p)=>{var b=p(8049),u=p(3260),_=p(6587),g=p(5337);M.exports={rect:function(E,A,T){var F=E.insert("rect",":first-child").attr("rx",T.rx).attr("ry",T.ry).attr("x",-A.width/2).attr("y",-A.height/2).attr("width",A.width).attr("height",A.height);return T.intersect=function(O){return b(T,O)},F},ellipse:function(E,A,T){var F=A.width/2,O=A.height/2,P=E.insert("ellipse",":first-child").attr("x",-A.width/2).attr("y",-A.height/2).attr("rx",F).attr("ry",O);return T.intersect=function(V){return u(T,F,O,V)},P},circle:function(E,A,T){var F=Math.max(A.width,A.height)/2,O=E.insert("circle",":first-child").attr("x",-A.width/2).attr("y",-A.height/2).attr("r",F);return T.intersect=function(P){return _(T,F,P)},O},diamond:function(E,A,T){var F=A.width*Math.SQRT2/2,O=A.height*Math.SQRT2/2,P=[{x:0,y:-O},{x:-F,y:0},{x:0,y:O},{x:F,y:0}],V=E.insert("polygon",":first-child").attr("points",P.map(function(J){return J.x+","+J.y}).join(" "));return T.intersect=function(J){return g(T,P,J)},V}}},8355:(M,z,p)=>{var b=p(1034);M.exports={isSubgraph:function(g,E){return!!g.children(E).length},edgeToId:function(g){return _(g.v)+":"+_(g.w)+":"+_(g.name)},applyStyle:function(g,E){E&&g.attr("style",E)},applyClass:function(g,E,A){E&&g.attr("class",E).attr("class",A+" "+g.attr("class"))},applyTransition:function(g,E){var A=E.graph();if(b.isPlainObject(A)){var T=A.transition;if(b.isFunction(T))return T(g)}return g}};var u=/:/g;function _(g){return g?String(g).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 g=_.graph().acyclicer==="greedy"?u(_,function(E){return function(A){return E.edge(A).weight}}(_)):function(E){var A=[],T={},F={};return b.forEach(E.nodes(),function O(P){b.has(F,P)||(F[P]=!0,T[P]=!0,b.forEach(E.outEdges(P),function(V){b.has(T,V.w)?A.push(V):O(V.w)}),delete T[P])}),A}(_);b.forEach(g,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(g){var E=_.edge(g);if(E.reversed){_.removeEdge(g);var A=E.forwardName;delete E.reversed,delete E.forwardName,_.setEdge(g.w,g.v,E,A)}})}}},1133:(M,z,p)=>{var b=p(8436),u=p(1138);function _(g,E,A,T,F,O){var P={width:0,height:0,rank:O,borderType:E},V=F[E][O-1],J=u.addDummyNode(g,"border",P,A);F[E][O]=J,g.setParent(J,T),V&&g.setEdge(V,J,{weight:1})}M.exports=function(g){b.forEach(g.children(),function E(A){var T=g.children(A),F=g.node(A);if(T.length&&b.forEach(T,E),b.has(F,"minRank")){F.borderLeft=[],F.borderRight=[];for(var O=F.minRank,P=F.maxRank+1;O<P;++O)_(g,"borderLeft","_bl",A,F,O),_(g,"borderRight","_br",A,F,O)}})}},3258:(M,z,p)=>{var b=p(8436);function u(A){b.forEach(A.nodes(),function(T){_(A.node(T))}),b.forEach(A.edges(),function(T){_(A.edge(T))})}function _(A){var T=A.width;A.width=A.height,A.height=T}function g(A){A.y=-A.y}function E(A){var T=A.x;A.x=A.y,A.y=T}M.exports={adjust:function(A){var T=A.graph().rankdir.toLowerCase();T!=="lr"&&T!=="rl"||u(A)},undo:function(A){var T=A.graph().rankdir.toLowerCase();T!=="bt"&&T!=="rl"||function(F){b.forEach(F.nodes(),function(O){g(F.node(O))}),b.forEach(F.edges(),function(O){var P=F.edge(O);b.forEach(P.points,g),b.has(P,"y")&&g(P)})}(A),T!=="lr"&&T!=="rl"||(function(F){b.forEach(F.nodes(),function(O){E(F.node(O))}),b.forEach(F.edges(),function(O){var P=F.edge(O);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,g=_._prev;g!==_;)u.push(JSON.stringify(g,b)),g=g._prev;return"["+u.join(", ")+"]"}},7570:(M,z,p)=>{var b=p(8436),u=p(1138),_=p(574).Graph;M.exports={debugOrdering:function(g){var E=u.buildLayerMatrix(g),A=new _({compound:!0,multigraph:!0}).setGraph({});return b.forEach(g.nodes(),function(T){A.setNode(T,{label:T}),A.setParent(T,"layer"+g.node(T).rank)}),b.forEach(g.edges(),function(T){A.setEdge(T.v,T.w,{},T.name)}),b.forEach(E,function(T,F){var O="layer"+F;A.setNode(O,{rank:"same"}),b.reduce(T,function(P,V){return A.setEdge(P,V,{style:"invis"}),V})}),A}}},574:(M,z,p)=>{var b;try{b=p(8282)}catch(u){}b||(b=window.graphlib),M.exports=b},4079:(M,z,p)=>{var b=p(8436),u=p(574).Graph,_=p(7822);M.exports=function(T,F){if(T.nodeCount()<=1)return[];var O=function(V,J){var tt=new u,ht=0,et=0;b.forEach(V.nodes(),function(ut){tt.setNode(ut,{v:ut,in:0,out:0})}),b.forEach(V.edges(),function(ut){var vt=tt.edge(ut.v,ut.w)||0,Qt=J(ut),Vt=vt+Qt;tt.setEdge(ut.v,ut.w,Vt),et=Math.max(et,tt.node(ut.v).out+=Qt),ht=Math.max(ht,tt.node(ut.w).in+=Qt)});var wt=b.range(et+ht+3).map(function(){return new _}),at=ht+1;return b.forEach(tt.nodes(),function(ut){A(wt,at,tt.node(ut))}),{graph:tt,buckets:wt,zeroIdx:at}}(T,F||g),P=function(V,J,tt){for(var ht,et=[],wt=J[J.length-1],at=J[0];V.nodeCount();){for(;ht=at.dequeue();)E(V,J,tt,ht);for(;ht=wt.dequeue();)E(V,J,tt,ht);if(V.nodeCount()){for(var ut=J.length-2;ut>0;--ut)if(ht=J[ut].dequeue()){et=et.concat(E(V,J,tt,ht,!0));break}}}return et}(O.graph,O.buckets,O.zeroIdx);return b.flatten(b.map(P,function(V){return T.outEdges(V.v,V.w)}),!0)};var g=b.constant(1);function E(T,F,O,P,V){var J=V?[]:void 0;return b.forEach(T.inEdges(P.v),function(tt){var ht=T.edge(tt),et=T.node(tt.v);V&&J.push({v:tt.v,w:tt.w}),et.out-=ht,A(F,O,et)}),b.forEach(T.outEdges(P.v),function(tt){var ht=T.edge(tt),et=tt.w,wt=T.node(et);wt.in-=ht,A(F,O,wt)}),T.removeNode(P.v),J}function A(T,F,O){O.out?O.in?T[O.out-O.in+F].enqueue(O):T[T.length-1].enqueue(O):T[0].enqueue(O)}},8123:(M,z,p)=>{var b=p(8436),u=p(2188),_=p(5995),g=p(8093),E=p(1138).normalizeRanks,A=p(4219),T=p(1138).removeEmptyRanks,F=p(2981),O=p(1133),P=p(3258),V=p(3408),J=p(7873),tt=p(1138),ht=p(574).Graph;M.exports=function(mt,X){var ot=X&&X.debugTiming?tt.time:tt.notime;ot("layout",function(){var j=ot(" buildLayoutGraph",function(){return function(yt){var Y=new ht({multigraph:!0,compound:!0}),bt=Tt(yt.graph());return Y.setGraph(b.merge({},wt,It(bt,et),b.pick(bt,at))),b.forEach(yt.nodes(),function(At){var Ut=Tt(yt.node(At));Y.setNode(At,b.defaults(It(Ut,ut),vt)),Y.setParent(At,yt.parent(At))}),b.forEach(yt.edges(),function(At){var Ut=Tt(yt.edge(At));Y.setEdge(At,b.merge({},Vt,It(Ut,Qt),b.pick(Ut,kt)))}),Y}(mt)});ot(" runLayout",function(){(function(yt,Y){Y(" makeSpaceForEdgeLabels",function(){(function(bt){var At=bt.graph();At.ranksep/=2,b.forEach(bt.edges(),function(Ut){var me=bt.edge(Ut);me.minlen*=2,me.labelpos.toLowerCase()!=="c"&&(At.rankdir==="TB"||At.rankdir==="BT"?me.width+=me.labeloffset:me.height+=me.labeloffset)})})(yt)}),Y(" removeSelfEdges",function(){(function(bt){b.forEach(bt.edges(),function(At){if(At.v===At.w){var Ut=bt.node(At.v);Ut.selfEdges||(Ut.selfEdges=[]),Ut.selfEdges.push({e:At,label:bt.edge(At)}),bt.removeEdge(At)}})})(yt)}),Y(" acyclic",function(){u.run(yt)}),Y(" nestingGraph.run",function(){F.run(yt)}),Y(" rank",function(){g(tt.asNonCompoundGraph(yt))}),Y(" injectEdgeLabelProxies",function(){(function(bt){b.forEach(bt.edges(),function(At){var Ut=bt.edge(At);if(Ut.width&&Ut.height){var me=bt.node(At.v),Ye={rank:(bt.node(At.w).rank-me.rank)/2+me.rank,e:At};tt.addDummyNode(bt,"edge-proxy",Ye,"_ep")}})})(yt)}),Y(" removeEmptyRanks",function(){T(yt)}),Y(" nestingGraph.cleanup",function(){F.cleanup(yt)}),Y(" normalizeRanks",function(){E(yt)}),Y(" assignRankMinMax",function(){(function(bt){var At=0;b.forEach(bt.nodes(),function(Ut){var me=bt.node(Ut);me.borderTop&&(me.minRank=bt.node(me.borderTop).rank,me.maxRank=bt.node(me.borderBottom).rank,At=b.max(At,me.maxRank))}),bt.graph().maxRank=At})(yt)}),Y(" removeEdgeLabelProxies",function(){(function(bt){b.forEach(bt.nodes(),function(At){var Ut=bt.node(At);Ut.dummy==="edge-proxy"&&(bt.edge(Ut.e).labelRank=Ut.rank,bt.removeNode(At))})})(yt)}),Y(" normalize.run",function(){_.run(yt)}),Y(" parentDummyChains",function(){A(yt)}),Y(" addBorderSegments",function(){O(yt)}),Y(" order",function(){V(yt)}),Y(" insertSelfEdges",function(){(function(bt){var At=tt.buildLayerMatrix(bt);b.forEach(At,function(Ut){var me=0;b.forEach(Ut,function(Ye,ke){var pe=bt.node(Ye);pe.order=ke+me,b.forEach(pe.selfEdges,function(xe){tt.addDummyNode(bt,"selfedge",{width:xe.label.width,height:xe.label.height,rank:pe.rank,order:ke+ ++me,e:xe.e,label:xe.label},"_se")}),delete pe.selfEdges})})})(yt)}),Y(" adjustCoordinateSystem",function(){P.adjust(yt)}),Y(" position",function(){J(yt)}),Y(" positionSelfEdges",function(){(function(bt){b.forEach(bt.nodes(),function(At){var Ut=bt.node(At);if(Ut.dummy==="selfedge"){var me=bt.node(Ut.e.v),Ye=me.x+me.width/2,ke=me.y,pe=Ut.x-Ye,xe=me.height/2;bt.setEdge(Ut.e,Ut.label),bt.removeNode(At),Ut.label.points=[{x:Ye+2*pe/3,y:ke-xe},{x:Ye+5*pe/6,y:ke-xe},{x:Ye+pe,y:ke},{x:Ye+5*pe/6,y:ke+xe},{x:Ye+2*pe/3,y:ke+xe}],Ut.label.x=Ut.x,Ut.label.y=Ut.y}})})(yt)}),Y(" removeBorderNodes",function(){(function(bt){b.forEach(bt.nodes(),function(At){if(bt.children(At).length){var Ut=bt.node(At),me=bt.node(Ut.borderTop),Ye=bt.node(Ut.borderBottom),ke=bt.node(b.last(Ut.borderLeft)),pe=bt.node(b.last(Ut.borderRight));Ut.width=Math.abs(pe.x-ke.x),Ut.height=Math.abs(Ye.y-me.y),Ut.x=ke.x+Ut.width/2,Ut.y=me.y+Ut.height/2}}),b.forEach(bt.nodes(),function(At){bt.node(At).dummy==="border"&&bt.removeNode(At)})})(yt)}),Y(" normalize.undo",function(){_.undo(yt)}),Y(" fixupEdgeLabelCoords",function(){(function(bt){b.forEach(bt.edges(),function(At){var Ut=bt.edge(At);if(b.has(Ut,"x"))switch(Ut.labelpos!=="l"&&Ut.labelpos!=="r"||(Ut.width-=Ut.labeloffset),Ut.labelpos){case"l":Ut.x-=Ut.width/2+Ut.labeloffset;break;case"r":Ut.x+=Ut.width/2+Ut.labeloffset}})})(yt)}),Y(" undoCoordinateSystem",function(){P.undo(yt)}),Y(" translateGraph",function(){(function(bt){var At=Number.POSITIVE_INFINITY,Ut=0,me=Number.POSITIVE_INFINITY,Ye=0,ke=bt.graph(),pe=ke.marginx||0,xe=ke.marginy||0;function Ae(Ne){var be=Ne.x,kn=Ne.y,he=Ne.width,Ze=Ne.height;At=Math.min(At,be-he/2),Ut=Math.max(Ut,be+he/2),me=Math.min(me,kn-Ze/2),Ye=Math.max(Ye,kn+Ze/2)}b.forEach(bt.nodes(),function(Ne){Ae(bt.node(Ne))}),b.forEach(bt.edges(),function(Ne){var be=bt.edge(Ne);b.has(be,"x")&&Ae(be)}),At-=pe,me-=xe,b.forEach(bt.nodes(),function(Ne){var be=bt.node(Ne);be.x-=At,be.y-=me}),b.forEach(bt.edges(),function(Ne){var be=bt.edge(Ne);b.forEach(be.points,function(kn){kn.x-=At,kn.y-=me}),b.has(be,"x")&&(be.x-=At),b.has(be,"y")&&(be.y-=me)}),ke.width=Ut-At+pe,ke.height=Ye-me+xe})(yt)}),Y(" assignNodeIntersects",function(){(function(bt){b.forEach(bt.edges(),function(At){var Ut,me,Ye=bt.edge(At),ke=bt.node(At.v),pe=bt.node(At.w);Ye.points?(Ut=Ye.points[0],me=Ye.points[Ye.points.length-1]):(Ye.points=[],Ut=pe,me=ke),Ye.points.unshift(tt.intersectRect(ke,Ut)),Ye.points.push(tt.intersectRect(pe,me))})})(yt)}),Y(" reversePoints",function(){(function(bt){b.forEach(bt.edges(),function(At){var Ut=bt.edge(At);Ut.reversed&&Ut.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 At=yt.node(bt),Ut=Y.node(bt);At&&(At.x=Ut.x,At.y=Ut.y,Y.children(bt).length&&(At.width=Ut.width,At.height=Ut.height))}),b.forEach(yt.edges(),function(bt){var At=yt.edge(bt),Ut=Y.edge(bt);At.points=Ut.points,b.has(Ut,"x")&&(At.x=Ut.x,At.y=Ut.y)}),yt.graph().width=Y.graph().width,yt.graph().height=Y.graph().height})(mt,j)})})};var et=["nodesep","edgesep","ranksep","marginx","marginy"],wt={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},at=["acyclicer","ranker","rankdir","align"],ut=["width","height"],vt={width:0,height:0},Qt=["minlen","weight","width","height","labeloffset"],Vt={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},kt=["labelpos"];function It(mt,X){return b.mapValues(b.pick(mt,X),Number)}function Tt(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(u){}b||(b=window._),M.exports=b},2981:(M,z,p)=>{var b=p(8436),u=p(1138);function _(g,E,A,T,F,O,P){var V=g.children(P);if(V.length){var J=u.addBorderNode(g,"_bt"),tt=u.addBorderNode(g,"_bb"),ht=g.node(P);g.setParent(J,P),ht.borderTop=J,g.setParent(tt,P),ht.borderBottom=tt,b.forEach(V,function(et){_(g,E,A,T,F,O,et);var wt=g.node(et),at=wt.borderTop?wt.borderTop:et,ut=wt.borderBottom?wt.borderBottom:et,vt=wt.borderTop?T:2*T,Qt=at!==ut?1:F-O[P]+1;g.setEdge(J,at,{weight:vt,minlen:Qt,nestingEdge:!0}),g.setEdge(ut,tt,{weight:vt,minlen:Qt,nestingEdge:!0})}),g.parent(P)||g.setEdge(E,J,{weight:0,minlen:F+O[P]})}else P!==E&&g.setEdge(E,P,{weight:0,minlen:A})}M.exports={run:function(g){var E=u.addDummyNode(g,"root",{},"_root"),A=function(P){var V={};function J(tt,ht){var et=P.children(tt);et&&et.length&&b.forEach(et,function(wt){J(wt,ht+1)}),V[tt]=ht}return b.forEach(P.children(),function(tt){J(tt,1)}),V}(g),T=b.max(b.values(A))-1,F=2*T+1;g.graph().nestingRoot=E,b.forEach(g.edges(),function(P){g.edge(P).minlen*=F});var O=function(P){return b.reduce(P.edges(),function(V,J){return V+P.edge(J).weight},0)}(g)+1;b.forEach(g.children(),function(P){_(g,E,F,O,T,A,P)}),g.graph().nodeRankFactor=F},cleanup:function(g){var E=g.graph();g.removeNode(E.nestingRoot),delete E.nestingRoot,b.forEach(g.edges(),function(A){g.edge(A).nestingEdge&&g.removeEdge(A)})}}},5995:(M,z,p)=>{var b=p(8436),u=p(1138);M.exports={run:function(_){_.graph().dummyChains=[],b.forEach(_.edges(),function(g){(function(E,A){var T,F,O,P=A.v,V=E.node(P).rank,J=A.w,tt=E.node(J).rank,ht=A.name,et=E.edge(A),wt=et.labelRank;if(tt!==V+1){for(E.removeEdge(A),O=0,++V;V<tt;++O,++V)et.points=[],F={width:0,height:0,edgeLabel:et,edgeObj:A,rank:V},T=u.addDummyNode(E,"edge",F,"_d"),V===wt&&(F.width=et.width,F.height=et.height,F.dummy="edge-label",F.labelpos=et.labelpos),E.setEdge(P,T,{weight:et.weight},ht),O===0&&E.graph().dummyChains.push(T),P=T;E.setEdge(P,J,{weight:et.weight},ht)}})(_,g)})},undo:function(_){b.forEach(_.graph().dummyChains,function(g){var E,A=_.node(g),T=A.edgeLabel;for(_.setEdge(A.edgeObj,T);A.dummy;)E=_.successors(g)[0],_.removeNode(g),T.points.push({x:A.x,y:A.y}),A.dummy==="edge-label"&&(T.x=A.x,T.y=A.y,T.width=A.width,T.height=A.height),g=E,A=_.node(g)})}}},5093:(M,z,p)=>{var b=p(8436);M.exports=function(u,_,g){var E,A={};b.forEach(g,function(T){for(var F,O,P=u.parent(T);P;){if((F=u.parent(P))?(O=A[F],A[F]=P):(O=E,E=P),O&&O!==P)return void _.setEdge(O,P);P=F}})}},5439:(M,z,p)=>{var b=p(8436);M.exports=function(u,_){return b.map(_,function(g){var E=u.inEdges(g);if(E.length){var A=b.reduce(E,function(T,F){var O=u.edge(F),P=u.node(F.v);return{sum:T.sum+O.weight*P.order,weight:T.weight+O.weight}},{sum:0,weight:0});return{v:g,barycenter:A.sum/A.weight,weight:A.weight}}return{v:g}})}},3128:(M,z,p)=>{var b=p(8436),u=p(574).Graph;M.exports=function(_,g,E){var A=function(F){for(var O;F.hasNode(O=b.uniqueId("_root")););return O}(_),T=new u({compound:!0}).setGraph({root:A}).setDefaultNodeLabel(function(F){return _.node(F)});return b.forEach(_.nodes(),function(F){var O=_.node(F),P=_.parent(F);(O.rank===g||O.minRank<=g&&g<=O.maxRank)&&(T.setNode(F),T.setParent(F,P||A),b.forEach(_[E](F),function(V){var J=V.v===F?V.w:V.v,tt=T.edge(J,F),ht=b.isUndefined(tt)?0:tt.weight;T.setEdge(J,F,{weight:_.edge(V).weight+ht})}),b.has(O,"minRank")&&T.setNode(F,{borderLeft:O.borderLeft[g],borderRight:O.borderRight[g]}))}),T}},6630:(M,z,p)=>{var b=p(8436);function u(_,g,E){for(var A=b.zipObject(E,b.map(E,function(J,tt){return tt})),T=b.flatten(b.map(g,function(J){return b.sortBy(b.map(_.outEdges(J),function(tt){return{pos:A[tt.w],weight:_.edge(tt).weight}}),"pos")}),!0),F=1;F<E.length;)F<<=1;var O=2*F-1;F-=1;var P=b.map(new Array(O),function(){return 0}),V=0;return b.forEach(T.forEach(function(J){var tt=J.pos+F;P[tt]+=J.weight;for(var ht=0;tt>0;)tt%2&&(ht+=P[tt+1]),P[tt=tt-1>>1]+=J.weight;V+=J.weight*ht})),V}M.exports=function(_,g){for(var E=0,A=1;A<g.length;++A)E+=u(_,g[A-1],g[A]);return E}},3408:(M,z,p)=>{var b=p(8436),u=p(2588),_=p(6630),g=p(1026),E=p(3128),A=p(5093),T=p(574).Graph,F=p(1138);function O(J,tt,ht){return b.map(tt,function(et){return E(J,et,ht)})}function P(J,tt){var ht=new T;b.forEach(J,function(et){var wt=et.graph().root,at=g(et,wt,ht,tt);b.forEach(at.vs,function(ut,vt){et.node(ut).order=vt}),A(et,ht,at.vs)})}function V(J,tt){b.forEach(tt,function(ht){b.forEach(ht,function(et,wt){J.node(et).order=wt})})}M.exports=function(J){var tt=F.maxRank(J),ht=O(J,b.range(1,tt+1),"inEdges"),et=O(J,b.range(tt-1,-1,-1),"outEdges"),wt=u(J);V(J,wt);for(var at,ut=Number.POSITIVE_INFINITY,vt=0,Qt=0;Qt<4;++vt,++Qt){P(vt%2?ht:et,vt%4>=2),wt=F.buildLayerMatrix(J);var Vt=_(J,wt);Vt<ut&&(Qt=0,at=b.cloneDeep(wt),ut=Vt)}V(J,at)}},2588:(M,z,p)=>{var b=p(8436);M.exports=function(u){var _={},g=b.filter(u.nodes(),function(F){return!u.children(F).length}),E=b.max(b.map(g,function(F){return u.node(F).rank})),A=b.map(b.range(E+1),function(){return[]}),T=b.sortBy(g,function(F){return u.node(F).rank});return b.forEach(T,function F(O){if(!b.has(_,O)){_[O]=!0;var P=u.node(O);A[P.rank].push(O),b.forEach(u.successors(O),F)}}),A}},9567:(M,z,p)=>{var b=p(8436);M.exports=function(u,_){var g={};return b.forEach(u,function(E,A){var T=g[E.v]={indegree:0,in:[],out:[],vs:[E.v],i:A};b.isUndefined(E.barycenter)||(T.barycenter=E.barycenter,T.weight=E.weight)}),b.forEach(_.edges(),function(E){var A=g[E.v],T=g[E.w];b.isUndefined(A)||b.isUndefined(T)||(T.indegree++,A.out.push(g[E.w]))}),function(E){var A=[];function T(P){return function(V){var J,tt,ht,et;V.merged||(b.isUndefined(V.barycenter)||b.isUndefined(P.barycenter)||V.barycenter>=P.barycenter)&&(tt=V,ht=0,et=0,(J=P).weight&&(ht+=J.barycenter*J.weight,et+=J.weight),tt.weight&&(ht+=tt.barycenter*tt.weight,et+=tt.weight),J.vs=tt.vs.concat(J.vs),J.barycenter=ht/et,J.weight=et,J.i=Math.min(tt.i,J.i),tt.merged=!0)}}function F(P){return function(V){V.in.push(P),--V.indegree==0&&E.push(V)}}for(;E.length;){var O=E.pop();A.push(O),b.forEach(O.in.reverse(),T(O)),b.forEach(O.out,F(O))}return b.map(b.filter(A,function(P){return!P.merged}),function(P){return b.pick(P,["vs","i","barycenter","weight"])})}(b.filter(g,function(E){return!E.indegree}))}},1026:(M,z,p)=>{var b=p(8436),u=p(5439),_=p(9567),g=p(7304);M.exports=function E(A,T,F,O){var P=A.children(T),V=A.node(T),J=V?V.borderLeft:void 0,tt=V?V.borderRight:void 0,ht={};J&&(P=b.filter(P,function(Qt){return Qt!==J&&Qt!==tt}));var et=u(A,P);b.forEach(et,function(Qt){if(A.children(Qt.v).length){var Vt=E(A,Qt.v,F,O);ht[Qt.v]=Vt,b.has(Vt,"barycenter")&&(kt=Qt,It=Vt,b.isUndefined(kt.barycenter)?(kt.barycenter=It.barycenter,kt.weight=It.weight):(kt.barycenter=(kt.barycenter*kt.weight+It.barycenter*It.weight)/(kt.weight+It.weight),kt.weight+=It.weight))}var kt,It});var wt=_(et,F);(function(Qt,Vt){b.forEach(Qt,function(kt){kt.vs=b.flatten(kt.vs.map(function(It){return Vt[It]?Vt[It].vs:It}),!0)})})(wt,ht);var at=g(wt,O);if(J&&(at.vs=b.flatten([J,at.vs,tt],!0),A.predecessors(J).length)){var ut=A.node(A.predecessors(J)[0]),vt=A.node(A.predecessors(tt)[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 _(g,E,A){for(var T;E.length&&(T=b.last(E)).i<=A;)E.pop(),g.push(T.vs),A++;return A}M.exports=function(g,E){var A,T=u.partition(g,function(et){return b.has(et,"barycenter")}),F=T.lhs,O=b.sortBy(T.rhs,function(et){return-et.i}),P=[],V=0,J=0,tt=0;F.sort((A=!!E,function(et,wt){return et.barycenter<wt.barycenter?-1:et.barycenter>wt.barycenter?1:A?wt.i-et.i:et.i-wt.i})),tt=_(P,O,tt),b.forEach(F,function(et){tt+=et.vs.length,P.push(et.vs),V+=et.barycenter*et.weight,J+=et.weight,tt=_(P,O,tt)});var ht={vs:b.flatten(P,!0)};return J&&(ht.barycenter=V/J,ht.weight=J),ht}},4219:(M,z,p)=>{var b=p(8436);M.exports=function(u){var _=function(g){var E={},A=0;return b.forEach(g.children(),function T(F){var O=A;b.forEach(g.children(F),T),E[F]={low:O,lim:A++}}),E}(u);b.forEach(u.graph().dummyChains,function(g){for(var E=u.node(g),A=E.edgeObj,T=function(tt,ht,et,wt){var at,ut,vt=[],Qt=[],Vt=Math.min(ht[et].low,ht[wt].low),kt=Math.max(ht[et].lim,ht[wt].lim);at=et;do at=tt.parent(at),vt.push(at);while(at&&(ht[at].low>Vt||kt>ht[at].lim));for(ut=at,at=wt;(at=tt.parent(at))!==ut;)Qt.push(at);return{path:vt.concat(Qt.reverse()),lca:ut}}(u,_,A.v,A.w),F=T.path,O=T.lca,P=0,V=F[P],J=!0;g!==A.w;){if(E=u.node(g),J){for(;(V=F[P])!==O&&u.node(V).maxRank<E.rank;)P++;V===O&&(J=!1)}if(!J){for(;P<F.length-1&&u.node(V=F[P+1]).minRank<=E.rank;)P++;V=F[P]}u.setParent(g,V),g=u.successors(g)[0]}})}},3573:(M,z,p)=>{var b=p(8436),u=p(574).Graph,_=p(1138);function g(tt,ht){var et={};return b.reduce(ht,function(wt,at){var ut=0,vt=0,Qt=wt.length,Vt=b.last(at);return b.forEach(at,function(kt,It){var Tt=function(X,ot){if(X.node(ot).dummy)return b.find(X.predecessors(ot),function(j){return X.node(j).dummy})}(tt,kt),mt=Tt?tt.node(Tt).order:Qt;(Tt||kt===Vt)&&(b.forEach(at.slice(vt,It+1),function(X){b.forEach(tt.predecessors(X),function(ot){var j=tt.node(ot),yt=j.order;!(yt<ut||mt<yt)||j.dummy&&tt.node(X).dummy||A(et,ot,X)})}),vt=It+1,ut=mt)}),at}),et}function E(tt,ht){var et={};function wt(at,ut,vt,Qt,Vt){var kt;b.forEach(b.range(ut,vt),function(It){kt=at[It],tt.node(kt).dummy&&b.forEach(tt.predecessors(kt),function(Tt){var mt=tt.node(Tt);mt.dummy&&(mt.order<Qt||mt.order>Vt)&&A(et,Tt,kt)})})}return b.reduce(ht,function(at,ut){var vt,Qt=-1,Vt=0;return b.forEach(ut,function(kt,It){if(tt.node(kt).dummy==="border"){var Tt=tt.predecessors(kt);Tt.length&&(vt=tt.node(Tt[0]).order,wt(ut,Vt,It,Qt,vt),Vt=It,Qt=vt)}wt(ut,Vt,ut.length,vt,at.length)}),ut}),et}function A(tt,ht,et){if(ht>et){var wt=ht;ht=et,et=wt}var at=tt[ht];at||(tt[ht]=at={}),at[et]=!0}function T(tt,ht,et){if(ht>et){var wt=ht;ht=et,et=wt}return b.has(tt[ht],et)}function F(tt,ht,et,wt){var at={},ut={},vt={};return b.forEach(ht,function(Qt){b.forEach(Qt,function(Vt,kt){at[Vt]=Vt,ut[Vt]=Vt,vt[Vt]=kt})}),b.forEach(ht,function(Qt){var Vt=-1;b.forEach(Qt,function(kt){var It=wt(kt);if(It.length){It=b.sortBy(It,function(j){return vt[j]});for(var Tt=(It.length-1)/2,mt=Math.floor(Tt),X=Math.ceil(Tt);mt<=X;++mt){var ot=It[mt];ut[kt]===kt&&Vt<vt[ot]&&!T(et,kt,ot)&&(ut[ot]=kt,ut[kt]=at[kt]=at[ot],Vt=vt[ot])}}})}),{root:at,align:ut}}function O(tt,ht,et,wt,at){var ut={},vt=function(kt,It,Tt,mt){var X=new u,ot=kt.graph(),j=function(yt,Y,bt){return function(At,Ut,me){var Ye,ke=At.node(Ut),pe=At.node(me),xe=0;if(xe+=ke.width/2,b.has(ke,"labelpos"))switch(ke.labelpos.toLowerCase()){case"l":Ye=-ke.width/2;break;case"r":Ye=ke.width/2}if(Ye&&(xe+=bt?Ye:-Ye),Ye=0,xe+=(ke.dummy?Y:yt)/2,xe+=(pe.dummy?Y:yt)/2,xe+=pe.width/2,b.has(pe,"labelpos"))switch(pe.labelpos.toLowerCase()){case"l":Ye=pe.width/2;break;case"r":Ye=-pe.width/2}return Ye&&(xe+=bt?Ye:-Ye),Ye=0,xe}}(ot.nodesep,ot.edgesep,mt);return b.forEach(It,function(yt){var Y;b.forEach(yt,function(bt){var At=Tt[bt];if(X.setNode(At),Y){var Ut=Tt[Y],me=X.edge(Ut,At);X.setEdge(Ut,At,Math.max(j(kt,bt,Y),me||0))}Y=bt})}),X}(tt,ht,et,at),Qt=at?"borderLeft":"borderRight";function Vt(kt,It){for(var Tt=vt.nodes(),mt=Tt.pop(),X={};mt;)X[mt]?kt(mt):(X[mt]=!0,Tt.push(mt),Tt=Tt.concat(It(mt))),mt=Tt.pop()}return Vt(function(kt){ut[kt]=vt.inEdges(kt).reduce(function(It,Tt){return Math.max(It,ut[Tt.v]+vt.edge(Tt))},0)},vt.predecessors.bind(vt)),Vt(function(kt){var It=vt.outEdges(kt).reduce(function(mt,X){return Math.min(mt,ut[X.w]-vt.edge(X))},Number.POSITIVE_INFINITY),Tt=tt.node(kt);It!==Number.POSITIVE_INFINITY&&Tt.borderType!==Qt&&(ut[kt]=Math.max(ut[kt],It))},vt.successors.bind(vt)),b.forEach(wt,function(kt){ut[kt]=ut[et[kt]]}),ut}function P(tt,ht){return b.minBy(b.values(ht),function(et){var wt=Number.NEGATIVE_INFINITY,at=Number.POSITIVE_INFINITY;return b.forIn(et,function(ut,vt){var Qt=function(Vt,kt){return Vt.node(kt).width}(tt,vt)/2;wt=Math.max(ut+Qt,wt),at=Math.min(ut-Qt,at)}),wt-at})}function V(tt,ht){var et=b.values(ht),wt=b.min(et),at=b.max(et);b.forEach(["u","d"],function(ut){b.forEach(["l","r"],function(vt){var Qt,Vt=ut+vt,kt=tt[Vt];if(kt!==ht){var It=b.values(kt);(Qt=vt==="l"?wt-b.min(It):at-b.max(It))&&(tt[Vt]=b.mapValues(kt,function(Tt){return Tt+Qt}))}})})}function J(tt,ht){return b.mapValues(tt.ul,function(et,wt){if(ht)return tt[ht.toLowerCase()][wt];var at=b.sortBy(b.map(tt,wt));return(at[1]+at[2])/2})}M.exports={positionX:function(tt){var ht,et=_.buildLayerMatrix(tt),wt=b.merge(g(tt,et),E(tt,et)),at={};b.forEach(["u","d"],function(vt){ht=vt==="u"?et:b.values(et).reverse(),b.forEach(["l","r"],function(Qt){Qt==="r"&&(ht=b.map(ht,function(Tt){return b.values(Tt).reverse()}));var Vt=(vt==="u"?tt.predecessors:tt.successors).bind(tt),kt=F(0,ht,wt,Vt),It=O(tt,ht,kt.root,kt.align,Qt==="r");Qt==="r"&&(It=b.mapValues(It,function(Tt){return-Tt})),at[vt+Qt]=It})});var ut=P(tt,at);return V(at,ut),J(at,tt.graph().align)},findType1Conflicts:g,findType2Conflicts:E,addConflict:A,hasConflict:T,verticalAlignment:F,horizontalCompaction:O,alignCoordinates:V,findSmallestWidthAlignment:P,balance:J}},7873:(M,z,p)=>{var b=p(8436),u=p(1138),_=p(3573).positionX;M.exports=function(g){(function(E){var A=u.buildLayerMatrix(E),T=E.graph().ranksep,F=0;b.forEach(A,function(O){var P=b.max(b.map(O,function(V){return E.node(V).height}));b.forEach(O,function(V){E.node(V).y=F+P/2}),F+=P+T})})(g=u.asNonCompoundGraph(g)),b.forEach(_(g),function(E,A){g.node(A).x=E})}},300:(M,z,p)=>{var b=p(8436),u=p(574).Graph,_=p(6681).slack;function g(T,F){return b.forEach(T.nodes(),function O(P){b.forEach(F.nodeEdges(P),function(V){var J=V.v,tt=P===J?V.w:J;T.hasNode(tt)||_(F,V)||(T.setNode(tt,{}),T.setEdge(P,tt,{}),O(tt))})}),T.nodeCount()}function E(T,F){return b.minBy(F.edges(),function(O){if(T.hasNode(O.v)!==T.hasNode(O.w))return _(F,O)})}function A(T,F,O){b.forEach(T.nodes(),function(P){F.node(P).rank+=O})}M.exports=function(T){var F,O,P=new u({directed:!1}),V=T.nodes()[0],J=T.nodeCount();for(P.setNode(V,{});g(P,T)<J;)F=E(P,T),O=P.hasNode(F.v)?_(T,F):-_(T,F),A(P,T,O);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":g(E)}};var g=b},2472:(M,z,p)=>{var b=p(8436),u=p(300),_=p(6681).slack,g=p(6681).longestPath,E=p(574).alg.preorder,A=p(574).alg.postorder,T=p(1138).simplify;function F(at){at=T(at),g(at);var ut,vt=u(at);for(V(vt),O(vt,at);ut=tt(vt);)et(vt,at,ut,ht(vt,at,ut))}function O(at,ut){var vt=A(at,at.nodes());vt=vt.slice(0,vt.length-1),b.forEach(vt,function(Qt){(function(Vt,kt,It){var Tt=Vt.node(It).parent;Vt.edge(It,Tt).cutvalue=P(Vt,kt,It)})(at,ut,Qt)})}function P(at,ut,vt){var Qt=at.node(vt).parent,Vt=!0,kt=ut.edge(vt,Qt),It=0;return kt||(Vt=!1,kt=ut.edge(Qt,vt)),It=kt.weight,b.forEach(ut.nodeEdges(vt),function(Tt){var mt,X,ot=Tt.v===vt,j=ot?Tt.w:Tt.v;if(j!==Qt){var yt=ot===Vt,Y=ut.edge(Tt).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 V(at,ut){arguments.length<2&&(ut=at.nodes()[0]),J(at,{},1,ut)}function J(at,ut,vt,Qt,Vt){var kt=vt,It=at.node(Qt);return ut[Qt]=!0,b.forEach(at.neighbors(Qt),function(Tt){b.has(ut,Tt)||(vt=J(at,ut,vt,Tt,Qt))}),It.low=kt,It.lim=vt++,Vt?It.parent=Vt:delete It.parent,vt}function tt(at){return b.find(at.edges(),function(ut){return at.edge(ut).cutvalue<0})}function ht(at,ut,vt){var Qt=vt.v,Vt=vt.w;ut.hasEdge(Qt,Vt)||(Qt=vt.w,Vt=vt.v);var kt=at.node(Qt),It=at.node(Vt),Tt=kt,mt=!1;kt.lim>It.lim&&(Tt=It,mt=!0);var X=b.filter(ut.edges(),function(ot){return mt===wt(0,at.node(ot.v),Tt)&&mt!==wt(0,at.node(ot.w),Tt)});return b.minBy(X,function(ot){return _(ut,ot)})}function et(at,ut,vt,Qt){var Vt=vt.v,kt=vt.w;at.removeEdge(Vt,kt),at.setEdge(Qt.v,Qt.w,{}),V(at),O(at,ut),function(It,Tt){var mt=b.find(It.nodes(),function(ot){return!Tt.node(ot).parent}),X=E(It,mt);X=X.slice(1),b.forEach(X,function(ot){var j=It.node(ot).parent,yt=Tt.edge(ot,j),Y=!1;yt||(yt=Tt.edge(j,ot),Y=!0),Tt.node(ot).rank=Tt.node(j).rank+(Y?yt.minlen:-yt.minlen)})}(at,ut)}function wt(at,ut,vt){return vt.low<=ut.lim&&ut.lim<=vt.lim}M.exports=F,F.initLowLimValues=V,F.initCutValues=O,F.calcCutValue=P,F.leaveEdge=tt,F.enterEdge=ht,F.exchangeEdges=et},6681:(M,z,p)=>{var b=p(8436);M.exports={longestPath:function(u){var _={};b.forEach(u.sources(),function g(E){var A=u.node(E);if(b.has(_,E))return A.rank;_[E]=!0;var T=b.min(b.map(u.outEdges(E),function(F){return g(F.w)-u.edge(F).minlen}));return T!==Number.POSITIVE_INFINITY&&T!=null||(T=0),A.rank=T})},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,T,F){var O;do O=b.uniqueId(F);while(E.hasNode(O));return T.dummy=A,E.setNode(O,T),O}function g(E){return b.max(b.map(E.nodes(),function(A){var T=E.node(A).rank;if(!b.isUndefined(T))return T}))}M.exports={addDummyNode:_,simplify:function(E){var A=new u().setGraph(E.graph());return b.forEach(E.nodes(),function(T){A.setNode(T,E.node(T))}),b.forEach(E.edges(),function(T){var F=A.edge(T.v,T.w)||{weight:0,minlen:1},O=E.edge(T);A.setEdge(T.v,T.w,{weight:F.weight+O.weight,minlen:Math.max(F.minlen,O.minlen)})}),A},asNonCompoundGraph:function(E){var A=new u({multigraph:E.isMultigraph()}).setGraph(E.graph());return b.forEach(E.nodes(),function(T){E.children(T).length||A.setNode(T,E.node(T))}),b.forEach(E.edges(),function(T){A.setEdge(T,E.edge(T))}),A},successorWeights:function(E){var A=b.map(E.nodes(),function(T){var F={};return b.forEach(E.outEdges(T),function(O){F[O.w]=(F[O.w]||0)+E.edge(O).weight}),F});return b.zipObject(E.nodes(),A)},predecessorWeights:function(E){var A=b.map(E.nodes(),function(T){var F={};return b.forEach(E.inEdges(T),function(O){F[O.v]=(F[O.v]||0)+E.edge(O).weight}),F});return b.zipObject(E.nodes(),A)},intersectRect:function(E,A){var T,F,O=E.x,P=E.y,V=A.x-O,J=A.y-P,tt=E.width/2,ht=E.height/2;if(!V&&!J)throw new Error("Not possible to find intersection inside of the rectangle");return Math.abs(J)*tt>Math.abs(V)*ht?(J<0&&(ht=-ht),T=ht*V/J,F=ht):(V<0&&(tt=-tt),T=tt,F=tt*J/V),{x:O+T,y:P+F}},buildLayerMatrix:function(E){var A=b.map(b.range(g(E)+1),function(){return[]});return b.forEach(E.nodes(),function(T){var F=E.node(T),O=F.rank;b.isUndefined(O)||(A[O][F.order]=T)}),A},normalizeRanks:function(E){var A=b.min(b.map(E.nodes(),function(T){return E.node(T).rank}));b.forEach(E.nodes(),function(T){var F=E.node(T);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})),T=[];b.forEach(E.nodes(),function(P){var V=E.node(P).rank-A;T[V]||(T[V]=[]),T[V].push(P)});var F=0,O=E.graph().nodeRankFactor;b.forEach(T,function(P,V){b.isUndefined(P)&&V%O!=0?--F:F&&b.forEach(P,function(J){E.node(J).rank+=F})})},addBorderNode:function(E,A,T,F){var O={width:0,height:0};return arguments.length>=4&&(O.rank=T,O.order=F),_(E,"border",O,A)},maxRank:g,partition:function(E,A){var T={lhs:[],rhs:[]};return b.forEach(E,function(F){A(F)?T.lhs.push(F):T.rhs.push(F)}),T},time:function(E,A){var T=b.now();try{return A()}finally{console.log(E+" time: "+(b.now()-T)+"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(Dt){return typeof Dt}:function(Dt){return Dt&&typeof Symbol=="function"&&Dt.constructor===Symbol&&Dt!==Symbol.prototype?"symbol":typeof Dt},z(ft)}function p(ft,Dt){return p=Object.setPrototypeOf||function(ue,Oe){return ue.__proto__=Oe,ue},p(ft,Dt)}function b(){if(typeof Reflect=="undefined"||!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(ft){return!1}}function u(ft,Dt,ue){return u=b()?Reflect.construct:function(Oe,en,$e){var cn=[null];cn.push.apply(cn,en);var Fe=new(Function.bind.apply(Oe,cn));return $e&&p(Fe,$e.prototype),Fe},u.apply(null,arguments)}function _(ft){return function(Dt){if(Array.isArray(Dt))return g(Dt)}(ft)||function(Dt){if(typeof Symbol!="undefined"&&Dt[Symbol.iterator]!=null||Dt["@@iterator"]!=null)return Array.from(Dt)}(ft)||function(Dt,ue){if(Dt){if(typeof Dt=="string")return g(Dt,ue);var Oe=Object.prototype.toString.call(Dt).slice(8,-1);return Oe==="Object"&&Dt.constructor&&(Oe=Dt.constructor.name),Oe==="Map"||Oe==="Set"?Array.from(Dt):Oe==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Oe)?g(Dt,ue):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 g(ft,Dt){(Dt==null||Dt>ft.length)&&(Dt=ft.length);for(var ue=0,Oe=new Array(Dt);ue<Dt;ue++)Oe[ue]=ft[ue];return Oe}var E=Object.hasOwnProperty,A=Object.setPrototypeOf,T=Object.isFrozen,F=Object.getPrototypeOf,O=Object.getOwnPropertyDescriptor,P=Object.freeze,V=Object.seal,J=Object.create,tt=typeof Reflect!="undefined"&&Reflect,ht=tt.apply,et=tt.construct;ht||(ht=function(ft,Dt,ue){return ft.apply(Dt,ue)}),P||(P=function(ft){return ft}),V||(V=function(ft){return ft}),et||(et=function(ft,Dt){return u(ft,_(Dt))});var wt,at=ot(Array.prototype.forEach),ut=ot(Array.prototype.pop),vt=ot(Array.prototype.push),Qt=ot(String.prototype.toLowerCase),Vt=ot(String.prototype.match),kt=ot(String.prototype.replace),It=ot(String.prototype.indexOf),Tt=ot(String.prototype.trim),mt=ot(RegExp.prototype.test),X=(wt=TypeError,function(){for(var ft=arguments.length,Dt=new Array(ft),ue=0;ue<ft;ue++)Dt[ue]=arguments[ue];return et(wt,Dt)});function ot(ft){return function(Dt){for(var ue=arguments.length,Oe=new Array(ue>1?ue-1:0),en=1;en<ue;en++)Oe[en-1]=arguments[en];return ht(ft,Dt,Oe)}}function j(ft,Dt,ue){ue=ue||Qt,A&&A(ft,null);for(var Oe=Dt.length;Oe--;){var en=Dt[Oe];if(typeof en=="string"){var $e=ue(en);$e!==en&&(T(Dt)||(Dt[Oe]=$e),en=$e)}ft[en]=!0}return ft}function yt(ft){var Dt,ue=J(null);for(Dt in ft)ht(E,ft,[Dt])&&(ue[Dt]=ft[Dt]);return ue}function Y(ft,Dt){for(;ft!==null;){var ue=O(ft,Dt);if(ue){if(ue.get)return ot(ue.get);if(typeof ue.value=="function")return ot(ue.value)}ft=F(ft)}return function(Oe){return console.warn("fallback value for",Oe),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"]),At=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"]),Ut=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"]),me=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"]),Ye=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"]),ke=P(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),pe=P(["#text"]),xe=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"]),Ne=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"]),be=P(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),kn=V(/\{\{[\w\W]*|[\w\W]*\}\}/gm),he=V(/<%[\w\W]*|[\w\W]*%>/gm),Ze=V(/^data-[\-\w.\u00B7-\uFFFF]/),re=V(/^aria-[\-\w]+$/),Xt=V(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),se=V(/^(?:\w+script|data):/i),St=V(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),ee=V(/^html$/i),st=function(){return typeof window=="undefined"?null:window},dt=function(ft,Dt){if(z(ft)!=="object"||typeof ft.createPolicy!="function")return null;var ue=null,Oe="data-tt-policy-suffix";Dt.currentScript&&Dt.currentScript.hasAttribute(Oe)&&(ue=Dt.currentScript.getAttribute(Oe));var en="dompurify"+(ue?"#"+ue:"");try{return ft.createPolicy(en,{createHTML:function($e){return $e},createScriptURL:function($e){return $e}})}catch($e){return console.warn("TrustedTypes policy "+en+" could not be created."),null}};return function ft(){var Dt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:st(),ue=function(Ht){return ft(Ht)};if(ue.version="2.4.0",ue.removed=[],!Dt||!Dt.document||Dt.document.nodeType!==9)return ue.isSupported=!1,ue;var Oe=Dt.document,en=Dt.document,$e=Dt.DocumentFragment,cn=Dt.HTMLTemplateElement,Fe=Dt.Node,Ee=Dt.Element,Be=Dt.NodeFilter,Le=Dt.NamedNodeMap,ge=Le===void 0?Dt.NamedNodeMap||Dt.MozNamedAttrMap:Le,ie=Dt.HTMLFormElement,An=Dt.DOMParser,Ie=Dt.trustedTypes,un=Ee.prototype,ze=Y(un,"cloneNode"),pn=Y(un,"nextSibling"),tr=Y(un,"childNodes"),Dn=Y(un,"parentNode");if(typeof cn=="function"){var Tn=en.createElement("template");Tn.content&&Tn.content.ownerDocument&&(en=Tn.content.ownerDocument)}var De=dt(Ie,Oe),Qe=De?De.createHTML(""):"",Ge=en,Se=Ge.implementation,vn=Ge.createNodeIterator,Mt=Ge.createDocumentFragment,vr=Ge.getElementsByTagName,zt=Oe.importNode,Wn={};try{Wn=yt(en).documentMode?en.documentMode:{}}catch(Ht){}var jn={};ue.isSupported=typeof Dn=="function"&&Se&&Se.createHTMLDocument!==void 0&&Wn!==9;var Hn,Mn,Gn=kn,Rn=he,En=Ze,Pn=re,zn=se,Yn=St,ya=Xt,Br=null,Tr=j({},[].concat(_(bt),_(At),_(Ut),_(Ye),_(pe))),Sn=null,li=j({},[].concat(_(xe),_(Ae),_(Ne),_(be))),Bn=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,Ar=null,yr=!0,qr=!0,Nt=!1,Mr=!1,Lr=!1,Xn=!1,Qr=!1,Yr=!1,Pr=!1,Kr=!1,ka=!0,hr=!1,aa="user-content-",oa=!0,Li=!1,an={},Qn=null,on=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"]),rn=null,rr=j({},["audio","video","img","source","image","track"]),$t=null,Ci=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",Ir="http://www.w3.org/1999/xhtml",Ur=Ir,pi=!1,wa=["application/xhtml+xml","text/html"],dr="text/html",_n=null,sa=en.createElement("form"),In=function(Ht){return Ht instanceof RegExp||Ht instanceof Function},wi=function(Ht){_n&&_n===Ht||(Ht&&z(Ht)==="object"||(Ht={}),Ht=yt(Ht),Hn=Hn=wa.indexOf(Ht.PARSER_MEDIA_TYPE)===-1?dr:Ht.PARSER_MEDIA_TYPE,Mn=Hn==="application/xhtml+xml"?function(We){return We}:Qt,Br="ALLOWED_TAGS"in Ht?j({},Ht.ALLOWED_TAGS,Mn):Tr,Sn="ALLOWED_ATTR"in Ht?j({},Ht.ALLOWED_ATTR,Mn):li,$t="ADD_URI_SAFE_ATTR"in Ht?j(yt(Ci),Ht.ADD_URI_SAFE_ATTR,Mn):Ci,rn="ADD_DATA_URI_TAGS"in Ht?j(yt(rr),Ht.ADD_DATA_URI_TAGS,Mn):rr,Qn="FORBID_CONTENTS"in Ht?j({},Ht.FORBID_CONTENTS,Mn):on,_r="FORBID_TAGS"in Ht?j({},Ht.FORBID_TAGS,Mn):{},Ar="FORBID_ATTR"in Ht?j({},Ht.FORBID_ATTR,Mn):{},an="USE_PROFILES"in Ht&&Ht.USE_PROFILES,yr=Ht.ALLOW_ARIA_ATTR!==!1,qr=Ht.ALLOW_DATA_ATTR!==!1,Nt=Ht.ALLOW_UNKNOWN_PROTOCOLS||!1,Mr=Ht.SAFE_FOR_TEMPLATES||!1,Lr=Ht.WHOLE_DOCUMENT||!1,Yr=Ht.RETURN_DOM||!1,Pr=Ht.RETURN_DOM_FRAGMENT||!1,Kr=Ht.RETURN_TRUSTED_TYPE||!1,Qr=Ht.FORCE_BODY||!1,ka=Ht.SANITIZE_DOM!==!1,hr=Ht.SANITIZE_NAMED_PROPS||!1,oa=Ht.KEEP_CONTENT!==!1,Li=Ht.IN_PLACE||!1,ya=Ht.ALLOWED_URI_REGEXP||ya,Ur=Ht.NAMESPACE||Ir,Ht.CUSTOM_ELEMENT_HANDLING&&In(Ht.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Bn.tagNameCheck=Ht.CUSTOM_ELEMENT_HANDLING.tagNameCheck),Ht.CUSTOM_ELEMENT_HANDLING&&In(Ht.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Bn.attributeNameCheck=Ht.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),Ht.CUSTOM_ELEMENT_HANDLING&&typeof Ht.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(Bn.allowCustomizedBuiltInElements=Ht.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Mr&&(qr=!1),Pr&&(Yr=!0),an&&(Br=j({},_(pe)),Sn=[],an.html===!0&&(j(Br,bt),j(Sn,xe)),an.svg===!0&&(j(Br,At),j(Sn,Ae),j(Sn,be)),an.svgFilters===!0&&(j(Br,Ut),j(Sn,Ae),j(Sn,be)),an.mathMl===!0&&(j(Br,Ye),j(Sn,Ne),j(Sn,be))),Ht.ADD_TAGS&&(Br===Tr&&(Br=yt(Br)),j(Br,Ht.ADD_TAGS,Mn)),Ht.ADD_ATTR&&(Sn===li&&(Sn=yt(Sn)),j(Sn,Ht.ADD_ATTR,Mn)),Ht.ADD_URI_SAFE_ATTR&&j($t,Ht.ADD_URI_SAFE_ATTR,Mn),Ht.FORBID_CONTENTS&&(Qn===on&&(Qn=yt(Qn)),j(Qn,Ht.FORBID_CONTENTS,Mn)),oa&&(Br["#text"]=!0),Lr&&j(Br,["html","head","body"]),Br.table&&(j(Br,["tbody"]),delete _r.tbody),P&&P(Ht),_n=Ht)},ui=j({},["mi","mo","mn","ms","mtext"]),Ii=j({},["foreignobject","desc","title","annotation-xml"]),fr=j({},["title","style","font","a","script"]),Jr=j({},At);j(Jr,Ut),j(Jr,me);var Hr=j({},Ye);j(Hr,ke);var Vr=function(Ht){var We=Dn(Ht);We&&We.tagName||(We={namespaceURI:Ir,tagName:"template"});var mn=Qt(Ht.tagName),or=Qt(We.tagName);return Ht.namespaceURI===xr?We.namespaceURI===Ir?mn==="svg":We.namespaceURI===Kt?mn==="svg"&&(or==="annotation-xml"||ui[or]):Boolean(Jr[mn]):Ht.namespaceURI===Kt?We.namespaceURI===Ir?mn==="math":We.namespaceURI===xr?mn==="math"&&Ii[or]:Boolean(Hr[mn]):Ht.namespaceURI===Ir&&!(We.namespaceURI===xr&&!Ii[or])&&!(We.namespaceURI===Kt&&!ui[or])&&!Hr[mn]&&(fr[mn]||!Jr[mn])},ii=function(Ht){vt(ue.removed,{element:Ht});try{Ht.parentNode.removeChild(Ht)}catch(We){try{Ht.outerHTML=Qe}catch(mn){Ht.remove()}}},Ai=function(Ht,We){try{vt(ue.removed,{attribute:We.getAttributeNode(Ht),from:We})}catch(mn){vt(ue.removed,{attribute:null,from:We})}if(We.removeAttribute(Ht),Ht==="is"&&!Sn[Ht])if(Yr||Pr)try{ii(We)}catch(mn){}else try{We.setAttribute(Ht,"")}catch(mn){}},Gr=function(Ht){var We,mn;if(Qr)Ht="<remove></remove>"+Ht;else{var or=Vt(Ht,/^[\r\n\t ]+/);mn=or&&or[0]}Hn==="application/xhtml+xml"&&(Ht='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+Ht+"</body></html>");var hi=De?De.createHTML(Ht):Ht;if(Ur===Ir)try{We=new An().parseFromString(hi,Hn)}catch(gi){}if(!We||!We.documentElement){We=Se.createDocument(Ur,"template",null);try{We.documentElement.innerHTML=pi?"":hi}catch(gi){}}var Er=We.body||We.documentElement;return Ht&&mn&&Er.insertBefore(en.createTextNode(mn),Er.childNodes[0]||null),Ur===Ir?vr.call(We,Lr?"html":"body")[0]:Lr?We.documentElement:Er},Ta=function(Ht){return vn.call(Ht.ownerDocument||Ht,Ht,Be.SHOW_ELEMENT|Be.SHOW_COMMENT|Be.SHOW_TEXT,null,!1)},Ia=function(Ht){return Ht instanceof ie&&(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"},ti=function(Ht,We,mn){jn[Ht]&&at(jn[Ht],function(or){or.call(ue,We,mn,_n)})},ei=function(Ht){var We;if(ti("beforeSanitizeElements",Ht,null),Ia(Ht)||mt(/[\u0080-\uFFFF]/,Ht.nodeName))return ii(Ht),!0;var mn=Mn(Ht.nodeName);if(ti("uponSanitizeElement",Ht,{tagName:mn,allowedTags:Br}),Ht.hasChildNodes()&&!pr(Ht.firstElementChild)&&(!pr(Ht.content)||!pr(Ht.content.firstElementChild))&&mt(/<[/\w]/g,Ht.innerHTML)&&mt(/<[/\w]/g,Ht.textContent)||mn==="select"&&mt(/<template/i,Ht.innerHTML))return ii(Ht),!0;if(!Br[mn]||_r[mn]){if(!_r[mn]&&Wa(mn)&&(Bn.tagNameCheck instanceof RegExp&&mt(Bn.tagNameCheck,mn)||Bn.tagNameCheck instanceof Function&&Bn.tagNameCheck(mn)))return!1;if(oa&&!Qn[mn]){var or=Dn(Ht)||Ht.parentNode,hi=tr(Ht)||Ht.childNodes;if(hi&&or)for(var Er=hi.length-1;Er>=0;--Er)or.insertBefore(ze(hi[Er],!0),pn(Ht))}return ii(Ht),!0}return Ht instanceof Ee&&!Vr(Ht)?(ii(Ht),!0):mn!=="noscript"&&mn!=="noembed"||!mt(/<\/no(script|embed)/i,Ht.innerHTML)?(Mr&&Ht.nodeType===3&&(We=Ht.textContent,We=kt(We,Gn," "),We=kt(We,Rn," "),Ht.textContent!==We&&(vt(ue.removed,{element:Ht.cloneNode()}),Ht.textContent=We)),ti("afterSanitizeElements",Ht,null),!1):(ii(Ht),!0)},Lo=function(Ht,We,mn){if(ka&&(We==="id"||We==="name")&&(mn in en||mn in sa))return!1;if(!(qr&&!Ar[We]&&mt(En,We))){if(!(yr&&mt(Pn,We))){if(!Sn[We]||Ar[We]){if(!(Wa(Ht)&&(Bn.tagNameCheck instanceof RegExp&&mt(Bn.tagNameCheck,Ht)||Bn.tagNameCheck instanceof Function&&Bn.tagNameCheck(Ht))&&(Bn.attributeNameCheck instanceof RegExp&&mt(Bn.attributeNameCheck,We)||Bn.attributeNameCheck instanceof Function&&Bn.attributeNameCheck(We))||We==="is"&&Bn.allowCustomizedBuiltInElements&&(Bn.tagNameCheck instanceof RegExp&&mt(Bn.tagNameCheck,mn)||Bn.tagNameCheck instanceof Function&&Bn.tagNameCheck(mn))))return!1}else if(!$t[We]){if(!mt(ya,kt(mn,Yn,""))){if((We!=="src"&&We!=="xlink:href"&&We!=="href"||Ht==="script"||It(mn,"data:")!==0||!rn[Ht])&&!(Nt&&!mt(zn,kt(mn,Yn,"")))){if(mn)return!1}}}}}return!0},Wa=function(Ht){return Ht.indexOf("-")>0},ca=function(Ht){var We,mn,or,hi;ti("beforeSanitizeAttributes",Ht,null);var Er=Ht.attributes;if(Er){var gi={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Sn};for(hi=Er.length;hi--;){var Fa=We=Er[hi],yi=Fa.name,Mi=Fa.namespaceURI;if(mn=yi==="value"?We.value:Tt(We.value),or=Mn(yi),gi.attrName=or,gi.attrValue=mn,gi.keepAttr=!0,gi.forceKeepAttr=void 0,ti("uponSanitizeAttribute",Ht,gi),mn=gi.attrValue,!gi.forceKeepAttr&&(Ai(yi,Ht),gi.keepAttr))if(mt(/\/>/i,mn))Ai(yi,Ht);else{Mr&&(mn=kt(mn,Gn," "),mn=kt(mn,Rn," "));var Io=Mn(Ht.nodeName);if(Lo(Io,or,mn)){if(!hr||or!=="id"&&or!=="name"||(Ai(yi,Ht),mn=aa+mn),De&&z(Ie)==="object"&&typeof Ie.getAttributeType=="function"&&!Mi)switch(Ie.getAttributeType(Io,or)){case"TrustedHTML":mn=De.createHTML(mn);break;case"TrustedScriptURL":mn=De.createScriptURL(mn)}try{Mi?Ht.setAttributeNS(Mi,yi,mn):Ht.setAttribute(yi,mn),ut(ue.removed)}catch(hc){}}}}ti("afterSanitizeAttributes",Ht,null)}},uc=function Ht(We){var mn,or=Ta(We);for(ti("beforeSanitizeShadowDOM",We,null);mn=or.nextNode();)ti("uponSanitizeShadowNode",mn,null),ei(mn)||(mn.content instanceof $e&&Ht(mn.content),ca(mn));ti("afterSanitizeShadowDOM",We,null)};return ue.sanitize=function(Ht){var We,mn,or,hi,Er,gi=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if((pi=!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(!ue.isSupported){if(z(Dt.toStaticHTML)==="object"||typeof Dt.toStaticHTML=="function"){if(typeof Ht=="string")return Dt.toStaticHTML(Ht);if(pr(Ht))return Dt.toStaticHTML(Ht.outerHTML)}return Ht}if(Xn||wi(gi),ue.removed=[],typeof Ht=="string"&&(Li=!1),Li){if(Ht.nodeName){var Fa=Mn(Ht.nodeName);if(!Br[Fa]||_r[Fa])throw X("root node is forbidden and cannot be sanitized in-place")}}else if(Ht instanceof Fe)(mn=(We=Gr("<!---->")).ownerDocument.importNode(Ht,!0)).nodeType===1&&mn.nodeName==="BODY"||mn.nodeName==="HTML"?We=mn:We.appendChild(mn);else{if(!Yr&&!Mr&&!Lr&&Ht.indexOf("<")===-1)return De&&Kr?De.createHTML(Ht):Ht;if(!(We=Gr(Ht)))return Yr?null:Kr?Qe:""}We&&Qr&&ii(We.firstChild);for(var yi=Ta(Li?Ht:We);or=yi.nextNode();)or.nodeType===3&&or===hi||ei(or)||(or.content instanceof $e&&uc(or.content),ca(or),hi=or);if(hi=null,Li)return Ht;if(Yr){if(Pr)for(Er=Mt.call(We.ownerDocument);We.firstChild;)Er.appendChild(We.firstChild);else Er=We;return Sn.shadowroot&&(Er=zt.call(Oe,Er,!0)),Er}var Mi=Lr?We.outerHTML:We.innerHTML;return Lr&&Br["!doctype"]&&We.ownerDocument&&We.ownerDocument.doctype&&We.ownerDocument.doctype.name&&mt(ee,We.ownerDocument.doctype.name)&&(Mi="<!DOCTYPE "+We.ownerDocument.doctype.name+`>
`+Mi),Mr&&(Mi=kt(Mi,Gn," "),Mi=kt(Mi,Rn," ")),De&&Kr?De.createHTML(Mi):Mi},ue.setConfig=function(Ht){wi(Ht),Xn=!0},ue.clearConfig=function(){_n=null,Xn=!1},ue.isValidAttribute=function(Ht,We,mn){_n||wi({});var or=Mn(Ht),hi=Mn(We);return Lo(or,hi,mn)},ue.addHook=function(Ht,We){typeof We=="function"&&(jn[Ht]=jn[Ht]||[],vt(jn[Ht],We))},ue.removeHook=function(Ht){if(jn[Ht])return ut(jn[Ht])},ue.removeHooks=function(Ht){jn[Ht]&&(jn[Ht]=[])},ue.removeAllHooks=function(){jn={}},ue}()}()},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 _,g={},E=[];function A(T){b.has(g,T)||(g[T]=!0,_.push(T),b.each(u.successors(T),A),b.each(u.predecessors(T),A))}return b.each(u.nodes(),function(T){_=[],A(T),_.length&&E.push(_)}),E}},3984:(M,z,p)=>{var b=p(9126);function u(_,g,E,A,T,F){b.has(A,g)||(A[g]=!0,E||F.push(g),b.each(T(g),function(O){u(_,O,E,A,T,F)}),E&&F.push(g))}M.exports=function(_,g,E){b.isArray(g)||(g=[g]);var A=(_.isDirected()?_.successors:_.neighbors).bind(_),T=[],F={};return b.each(g,function(O){if(!_.hasNode(O))throw new Error("Graph does not have node: "+O);u(_,O,E==="post",F,A,T)}),T}},4847:(M,z,p)=>{var b=p(3763),u=p(9126);M.exports=function(_,g,E){return u.transform(_.nodes(),function(A,T){A[T]=b(_,T,g,E)},{})}},3763:(M,z,p)=>{var b=p(9126),u=p(9675);M.exports=function(g,E,A,T){return function(F,O,P,V){var J,tt,ht={},et=new u,wt=function(at){var ut=at.v!==J?at.v:at.w,vt=ht[ut],Qt=P(at),Vt=tt.distance+Qt;if(Qt<0)throw new Error("dijkstra does not allow negative edge weights. Bad edge: "+at+" Weight: "+Qt);Vt<vt.distance&&(vt.distance=Vt,vt.predecessor=J,et.decrease(ut,Vt))};for(F.nodes().forEach(function(at){var ut=at===O?0:Number.POSITIVE_INFINITY;ht[at]={distance:ut},et.add(at,ut)});et.size()>0&&(J=et.removeMin(),(tt=ht[J]).distance!==Number.POSITIVE_INFINITY);)V(J).forEach(wt);return ht}(g,String(E),A||_,T||function(F){return g.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(g){return g.length>1||g.length===1&&_.hasEdge(g[0],g[0])})}},8924:(M,z,p)=>{var b=p(9126);M.exports=function(_,g,E){return function(A,T,F){var O={},P=A.nodes();return P.forEach(function(V){O[V]={},O[V][V]={distance:0},P.forEach(function(J){V!==J&&(O[V][J]={distance:Number.POSITIVE_INFINITY})}),F(V).forEach(function(J){var tt=J.v===V?J.w:J.v,ht=T(J);O[V][tt]={distance:ht,predecessor:V}})}),P.forEach(function(V){var J=O[V];P.forEach(function(tt){var ht=O[tt];P.forEach(function(et){var wt=ht[V],at=J[et],ut=ht[et],vt=wt.distance+at.distance;vt<ut.distance&&(ut.distance=vt,ut.predecessor=at.predecessor)})})}),O}(_,g||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(g,E){var A,T=new u,F={},O=new _;function P(J){var tt=J.v===A?J.w:J.v,ht=O.priority(tt);if(ht!==void 0){var et=E(J);et<ht&&(F[tt]=A,O.decrease(tt,et))}}if(g.nodeCount()===0)return T;b.each(g.nodes(),function(J){O.add(J,Number.POSITIVE_INFINITY),T.setNode(J)}),O.decrease(g.nodes()[0],0);for(var V=!1;O.size()>0;){if(A=O.removeMin(),b.has(F,A))T.setEdge(A,F[A]);else{if(V)throw new Error("Input graph is not connected: "+g);V=!0}g.nodeEdges(A).forEach(P)}return T}},5023:(M,z,p)=>{var b=p(9126);M.exports=function(u){var _=0,g=[],E={},A=[];function T(F){var O=E[F]={onStack:!0,lowlink:_,index:_++};if(g.push(F),u.successors(F).forEach(function(J){b.has(E,J)?E[J].onStack&&(O.lowlink=Math.min(O.lowlink,E[J].index)):(T(J),O.lowlink=Math.min(O.lowlink,E[J].lowlink))}),O.lowlink===O.index){var P,V=[];do P=g.pop(),E[P].onStack=!1,V.push(P);while(F!==P);A.push(V)}}return u.nodes().forEach(function(F){b.has(E,F)||T(F)}),A}},2166:(M,z,p)=>{var b=p(9126);function u(g){var E={},A={},T=[];if(b.each(g.sinks(),function F(O){if(b.has(A,O))throw new _;b.has(E,O)||(A[O]=!0,E[O]=!0,b.each(g.predecessors(O),F),delete A[O],T.push(O))}),b.size(E)!==g.nodeCount())throw new _;return T}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 g=this._keyIndices[_];if(g!==void 0)return this._arr[g].priority},u.prototype.min=function(){if(this.size()===0)throw new Error("Queue underflow");return this._arr[0].key},u.prototype.add=function(_,g){var E=this._keyIndices;if(_=String(_),!b.has(E,_)){var A=this._arr,T=A.length;return E[_]=T,A.push({key:_,priority:g}),this._decrease(T),!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(_,g){var E=this._keyIndices[_];if(g>this._arr[E].priority)throw new Error("New priority is greater than current priority. Key: "+_+" Old: "+this._arr[E].priority+" New: "+g);this._arr[E].priority=g,this._decrease(E)},u.prototype._heapify=function(_){var g=this._arr,E=2*_,A=E+1,T=_;E<g.length&&(T=g[E].priority<g[T].priority?E:T,A<g.length&&(T=g[A].priority<g[T].priority?A:T),T!==_&&(this._swap(_,T),this._heapify(T)))},u.prototype._decrease=function(_){for(var g,E=this._arr,A=E[_].priority;_!==0&&!(E[g=_>>1].priority<A);)this._swap(_,g),_=g},u.prototype._swap=function(_,g){var E=this._arr,A=this._keyIndices,T=E[_],F=E[g];E[_]=F,E[g]=T,A[F.key]=_,A[T.key]=g}},771:(M,z,p)=>{var b=p(9126);M.exports=_;var u="\0";function _(O){this._isDirected=!b.has(O,"directed")||O.directed,this._isMultigraph=!!b.has(O,"multigraph")&&O.multigraph,this._isCompound=!!b.has(O,"compound")&&O.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 g(O,P){O[P]?O[P]++:O[P]=1}function E(O,P){--O[P]||delete O[P]}function A(O,P,V,J){var tt=""+P,ht=""+V;if(!O&&tt>ht){var et=tt;tt=ht,ht=et}return tt+""+ht+""+(b.isUndefined(J)?"\0":J)}function T(O,P,V,J){var tt=""+P,ht=""+V;if(!O&&tt>ht){var et=tt;tt=ht,ht=et}var wt={v:tt,w:ht};return J&&(wt.name=J),wt}function F(O,P){return A(O,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(O){return this._label=O,this},_.prototype.graph=function(){return this._label},_.prototype.setDefaultNodeLabel=function(O){return b.isFunction(O)||(O=b.constant(O)),this._defaultNodeLabelFn=O,this},_.prototype.nodeCount=function(){return this._nodeCount},_.prototype.nodes=function(){return b.keys(this._nodes)},_.prototype.sources=function(){var O=this;return b.filter(this.nodes(),function(P){return b.isEmpty(O._in[P])})},_.prototype.sinks=function(){var O=this;return b.filter(this.nodes(),function(P){return b.isEmpty(O._out[P])})},_.prototype.setNodes=function(O,P){var V=arguments,J=this;return b.each(O,function(tt){V.length>1?J.setNode(tt,P):J.setNode(tt)}),this},_.prototype.setNode=function(O,P){return b.has(this._nodes,O)?(arguments.length>1&&(this._nodes[O]=P),this):(this._nodes[O]=arguments.length>1?P:this._defaultNodeLabelFn(O),this._isCompound&&(this._parent[O]=u,this._children[O]={},this._children["\0"][O]=!0),this._in[O]={},this._preds[O]={},this._out[O]={},this._sucs[O]={},++this._nodeCount,this)},_.prototype.node=function(O){return this._nodes[O]},_.prototype.hasNode=function(O){return b.has(this._nodes,O)},_.prototype.removeNode=function(O){var P=this;if(b.has(this._nodes,O)){var V=function(J){P.removeEdge(P._edgeObjs[J])};delete this._nodes[O],this._isCompound&&(this._removeFromParentsChildList(O),delete this._parent[O],b.each(this.children(O),function(J){P.setParent(J)}),delete this._children[O]),b.each(b.keys(this._in[O]),V),delete this._in[O],delete this._preds[O],b.each(b.keys(this._out[O]),V),delete this._out[O],delete this._sucs[O],--this._nodeCount}return this},_.prototype.setParent=function(O,P){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(b.isUndefined(P))P=u;else{for(var V=P+="";!b.isUndefined(V);V=this.parent(V))if(V===O)throw new Error("Setting "+P+" as parent of "+O+" would create a cycle");this.setNode(P)}return this.setNode(O),this._removeFromParentsChildList(O),this._parent[O]=P,this._children[P][O]=!0,this},_.prototype._removeFromParentsChildList=function(O){delete this._children[this._parent[O]][O]},_.prototype.parent=function(O){if(this._isCompound){var P=this._parent[O];if(P!==u)return P}},_.prototype.children=function(O){if(b.isUndefined(O)&&(O=u),this._isCompound){var P=this._children[O];if(P)return b.keys(P)}else{if(O===u)return this.nodes();if(this.hasNode(O))return[]}},_.prototype.predecessors=function(O){var P=this._preds[O];if(P)return b.keys(P)},_.prototype.successors=function(O){var P=this._sucs[O];if(P)return b.keys(P)},_.prototype.neighbors=function(O){var P=this.predecessors(O);if(P)return b.union(P,this.successors(O))},_.prototype.isLeaf=function(O){return(this.isDirected()?this.successors(O):this.neighbors(O)).length===0},_.prototype.filterNodes=function(O){var P=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});P.setGraph(this.graph());var V=this;b.each(this._nodes,function(ht,et){O(et)&&P.setNode(et,ht)}),b.each(this._edgeObjs,function(ht){P.hasNode(ht.v)&&P.hasNode(ht.w)&&P.setEdge(ht,V.edge(ht))});var J={};function tt(ht){var et=V.parent(ht);return et===void 0||P.hasNode(et)?(J[ht]=et,et):et in J?J[et]:tt(et)}return this._isCompound&&b.each(P.nodes(),function(ht){P.setParent(ht,tt(ht))}),P},_.prototype.setDefaultEdgeLabel=function(O){return b.isFunction(O)||(O=b.constant(O)),this._defaultEdgeLabelFn=O,this},_.prototype.edgeCount=function(){return this._edgeCount},_.prototype.edges=function(){return b.values(this._edgeObjs)},_.prototype.setPath=function(O,P){var V=this,J=arguments;return b.reduce(O,function(tt,ht){return J.length>1?V.setEdge(tt,ht,P):V.setEdge(tt,ht),ht}),this},_.prototype.setEdge=function(){var O,P,V,J,tt=!1,ht=arguments[0];typeof ht=="object"&&ht!==null&&"v"in ht?(O=ht.v,P=ht.w,V=ht.name,arguments.length===2&&(J=arguments[1],tt=!0)):(O=ht,P=arguments[1],V=arguments[3],arguments.length>2&&(J=arguments[2],tt=!0)),O=""+O,P=""+P,b.isUndefined(V)||(V=""+V);var et=A(this._isDirected,O,P,V);if(b.has(this._edgeLabels,et))return tt&&(this._edgeLabels[et]=J),this;if(!b.isUndefined(V)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(O),this.setNode(P),this._edgeLabels[et]=tt?J:this._defaultEdgeLabelFn(O,P,V);var wt=T(this._isDirected,O,P,V);return O=wt.v,P=wt.w,Object.freeze(wt),this._edgeObjs[et]=wt,g(this._preds[P],O),g(this._sucs[O],P),this._in[P][et]=wt,this._out[O][et]=wt,this._edgeCount++,this},_.prototype.edge=function(O,P,V){var J=arguments.length===1?F(this._isDirected,arguments[0]):A(this._isDirected,O,P,V);return this._edgeLabels[J]},_.prototype.hasEdge=function(O,P,V){var J=arguments.length===1?F(this._isDirected,arguments[0]):A(this._isDirected,O,P,V);return b.has(this._edgeLabels,J)},_.prototype.removeEdge=function(O,P,V){var J=arguments.length===1?F(this._isDirected,arguments[0]):A(this._isDirected,O,P,V),tt=this._edgeObjs[J];return tt&&(O=tt.v,P=tt.w,delete this._edgeLabels[J],delete this._edgeObjs[J],E(this._preds[P],O),E(this._sucs[O],P),delete this._in[P][J],delete this._out[O][J],this._edgeCount--),this},_.prototype.inEdges=function(O,P){var V=this._in[O];if(V){var J=b.values(V);return P?b.filter(J,function(tt){return tt.v===P}):J}},_.prototype.outEdges=function(O,P){var V=this._out[O];if(V){var J=b.values(V);return P?b.filter(J,function(tt){return tt.w===P}):J}},_.prototype.nodeEdges=function(O,P){var V=this.inEdges(O,P);if(V)return V.concat(this.outEdges(O,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 T=E.node(A),F=E.parent(A),O={v:A};return b.isUndefined(T)||(O.value=T),b.isUndefined(F)||(O.parent=F),O})}function g(E){return b.map(E.edges(),function(A){var T=E.edge(A),F={v:A.v,w:A.w};return b.isUndefined(A.name)||(F.name=A.name),b.isUndefined(T)||(F.value=T),F})}M.exports={write:function(E){var A={options:{directed:E.isDirected(),multigraph:E.isMultigraph(),compound:E.isCompound()},nodes:_(E),edges:g(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(T){A.setNode(T.v,T.value),T.parent&&A.setParent(T.v,T.parent)}),b.each(E.edges,function(T){A.setEdge({v:T.v,w:T.w,name:T.name},T.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(u){}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),g=p(1327),E=p(1866);function A(T){var F=-1,O=T==null?0:T.length;for(this.clear();++F<O;){var P=T[F];this.set(P[0],P[1])}}A.prototype.clear=b,A.prototype.delete=u,A.prototype.get=_,A.prototype.has=g,A.prototype.set=E,M.exports=A},8407:(M,z,p)=>{var b=p(7040),u=p(4125),_=p(2117),g=p(7518),E=p(4705);function A(T){var F=-1,O=T==null?0:T.length;for(this.clear();++F<O;){var P=T[F];this.set(P[0],P[1])}}A.prototype.clear=b,A.prototype.delete=u,A.prototype.get=_,A.prototype.has=g,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),g=p(9916),E=p(5265);function A(T){var F=-1,O=T==null?0:T.length;for(this.clear();++F<O;){var P=T[F];this.set(P[0],P[1])}}A.prototype.clear=b,A.prototype.delete=u,A.prototype.get=_,A.prototype.has=g,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 g(E){var A=-1,T=E==null?0:E.length;for(this.__data__=new b;++A<T;)this.add(E[A])}g.prototype.add=g.prototype.push=u,g.prototype.has=_,M.exports=g},6384:(M,z,p)=>{var b=p(8407),u=p(7465),_=p(3779),g=p(7599),E=p(4758),A=p(4309);function T(F){var O=this.__data__=new b(F);this.size=O.size}T.prototype.clear=u,T.prototype.delete=_,T.prototype.get=g,T.prototype.has=E,T.prototype.set=A,M.exports=T},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,g=[];++b<u;){var E=z[b];p(E,b,z)&&(g[_++]=E)}return g}},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),g=p(4144),E=p(5776),A=p(6719),T=Object.prototype.hasOwnProperty;M.exports=function(F,O){var P=_(F),V=!P&&u(F),J=!P&&!V&&g(F),tt=!P&&!V&&!J&&A(F),ht=P||V||J||tt,et=ht?b(F.length,String):[],wt=et.length;for(var at in F)!O&&!T.call(F,at)||ht&&(at=="length"||J&&(at=="offset"||at=="parent")||tt&&(at=="buffer"||at=="byteLength"||at=="byteOffset")||E(at,wt))||et.push(at);return et}},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,g=z==null?0:z.length;for(u&&g&&(b=z[++_]);++_<g;)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(_,g,E){(E!==void 0&&!u(_[g],E)||E===void 0&&!(g in _))&&b(_,g,E)}},4865:(M,z,p)=>{var b=p(9465),u=p(7813),_=Object.prototype.hasOwnProperty;M.exports=function(g,E,A){var T=g[E];_.call(g,E)&&u(T,A)&&(A!==void 0||E in g)||b(g,E,A)}},8470:(M,z,p)=>{var b=p(7813);M.exports=function(u,_){for(var g=u.length;g--;)if(b(u[g][0],_))return g;return-1}},4037:(M,z,p)=>{var b=p(8363),u=p(3674);M.exports=function(_,g){return _&&b(g,u(g),_)}},3886:(M,z,p)=>{var b=p(8363),u=p(1704);M.exports=function(_,g){return _&&b(g,u(g),_)}},9465:(M,z,p)=>{var b=p(8777);M.exports=function(u,_,g){_=="__proto__"&&b?b(u,_,{configurable:!0,enumerable:!0,value:g,writable:!0}):u[_]=g}},5990:(M,z,p)=>{var b=p(6384),u=p(7412),_=p(4865),g=p(4037),E=p(3886),A=p(4626),T=p(278),F=p(8805),O=p(1911),P=p(8234),V=p(6904),J=p(4160),tt=p(3824),ht=p(9148),et=p(8517),wt=p(1469),at=p(4144),ut=p(6688),vt=p(3218),Qt=p(2928),Vt=p(3674),kt=p(1704),It="[object Arguments]",Tt="[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[Tt]=X["[object WeakMap]"]=!1,M.exports=function ot(j,yt,Y,bt,At,Ut){var me,Ye=1&yt,ke=2&yt,pe=4&yt;if(Y&&(me=At?Y(j,bt,At,Ut):Y(j)),me!==void 0)return me;if(!vt(j))return j;var xe=wt(j);if(xe){if(me=tt(j),!Ye)return T(j,me)}else{var Ae=J(j),Ne=Ae==Tt||Ae=="[object GeneratorFunction]";if(at(j))return A(j,Ye);if(Ae==mt||Ae==It||Ne&&!At){if(me=ke||Ne?{}:et(j),!Ye)return ke?O(j,E(me,j)):F(j,g(me,j))}else{if(!X[Ae])return At?j:{};me=ht(j,Ae,Ye)}}Ut||(Ut=new b);var be=Ut.get(j);if(be)return be;Ut.set(j,me),Qt(j)?j.forEach(function(he){me.add(ot(he,yt,Y,he,j,Ut))}):ut(j)&&j.forEach(function(he,Ze){me.set(Ze,ot(he,yt,Y,Ze,j,Ut))});var kn=xe?void 0:(pe?ke?V:P:ke?kt:Vt)(j);return u(kn||j,function(he,Ze){kn&&(he=j[Ze=he]),_(me,Ze,ot(he,yt,Y,Ze,j,Ut))}),me}},3118:(M,z,p)=>{var b=p(3218),u=Object.create,_=function(){function g(){}return function(E){if(!b(E))return{};if(u)return u(E);g.prototype=E;var A=new g;return g.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,_,g){for(var E=-1,A=u.length;++E<A;){var T=u[E],F=_(T);if(F!=null&&(O===void 0?F==F&&!b(F):g(F,O)))var O=F,P=T}return P}},760:(M,z,p)=>{var b=p(9881);M.exports=function(u,_){var g=[];return b(u,function(E,A,T){_(E,A,T)&&g.push(E)}),g}},1848:M=>{M.exports=function(z,p,b,u){for(var _=z.length,g=b+(u?1:-1);u?g--:++g<_;)if(p(z[g],g,z))return g;return-1}},1078:(M,z,p)=>{var b=p(2488),u=p(7285);M.exports=function _(g,E,A,T,F){var O=-1,P=g.length;for(A||(A=u),F||(F=[]);++O<P;){var V=g[O];E>0&&A(V)?E>1?_(V,E-1,A,T,F):b(F,V):T||(F[F.length]=V)}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(_,g){return _&&b(_,g,u)}},7786:(M,z,p)=>{var b=p(1811),u=p(327);M.exports=function(_,g){for(var E=0,A=(g=b(g,_)).length;_!=null&&E<A;)_=_[u(g[E++])];return E&&E==A?_:void 0}},8866:(M,z,p)=>{var b=p(2488),u=p(1469);M.exports=function(_,g,E){var A=g(_);return u(_)?A:b(A,E(_))}},4239:(M,z,p)=>{var b=p(2705),u=p(9607),_=p(2333),g=b?b.toStringTag:void 0;M.exports=function(E){return E==null?E===void 0?"[object Undefined]":"[object Null]":g&&g 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(g,E,A){return E==E?_(g,E,A):b(g,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 _(g,E,A,T,F){return g===E||(g==null||E==null||!u(g)&&!u(E)?g!=g&&E!=E:b(g,E,A,T,_,F))}},2492:(M,z,p)=>{var b=p(6384),u=p(7114),_=p(8351),g=p(6096),E=p(4160),A=p(1469),T=p(4144),F=p(6719),O="[object Arguments]",P="[object Array]",V="[object Object]",J=Object.prototype.hasOwnProperty;M.exports=function(tt,ht,et,wt,at,ut){var vt=A(tt),Qt=A(ht),Vt=vt?P:E(tt),kt=Qt?P:E(ht),It=(Vt=Vt==O?V:Vt)==V,Tt=(kt=kt==O?V:kt)==V,mt=Vt==kt;if(mt&&T(tt)){if(!T(ht))return!1;vt=!0,It=!1}if(mt&&!It)return ut||(ut=new b),vt||F(tt)?u(tt,ht,et,wt,at,ut):_(tt,ht,Vt,et,wt,at,ut);if(!(1&et)){var X=It&&J.call(tt,"__wrapped__"),ot=Tt&&J.call(ht,"__wrapped__");if(X||ot){var j=X?tt.value():tt,yt=ot?ht.value():ht;return ut||(ut=new b),at(j,yt,et,wt,ut)}}return!!mt&&(ut||(ut=new b),g(tt,ht,et,wt,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(_,g,E,A){var T=E.length,F=T,O=!A;if(_==null)return!F;for(_=Object(_);T--;){var P=E[T];if(O&&P[2]?P[1]!==_[P[0]]:!(P[0]in _))return!1}for(;++T<F;){var V=(P=E[T])[0],J=_[V],tt=P[1];if(O&&P[2]){if(J===void 0&&!(V in _))return!1}else{var ht=new b;if(A)var et=A(J,tt,V,_,g,ht);if(!(et===void 0?u(tt,J,3,A,ht):et))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),g=p(346),E=/^\[object .+?Constructor\]$/,A=Function.prototype,T=Object.prototype,F=A.toString,O=T.hasOwnProperty,P=RegExp("^"+F.call(O).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");M.exports=function(V){return!(!_(V)||u(V))&&(b(V)?P:E).test(g(V))}},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),g={};g["[object Float32Array]"]=g["[object Float64Array]"]=g["[object Int8Array]"]=g["[object Int16Array]"]=g["[object Int32Array]"]=g["[object Uint8Array]"]=g["[object Uint8ClampedArray]"]=g["[object Uint16Array]"]=g["[object Uint32Array]"]=!0,g["[object Arguments]"]=g["[object Array]"]=g["[object ArrayBuffer]"]=g["[object Boolean]"]=g["[object DataView]"]=g["[object Date]"]=g["[object Error]"]=g["[object Function]"]=g["[object Map]"]=g["[object Number]"]=g["[object Object]"]=g["[object RegExp]"]=g["[object Set]"]=g["[object String]"]=g["[object WeakMap]"]=!1,M.exports=function(E){return _(E)&&u(E.length)&&!!g[b(E)]}},7206:(M,z,p)=>{var b=p(1573),u=p(6432),_=p(6557),g=p(1469),E=p(9601);M.exports=function(A){return typeof A=="function"?A:A==null?_:typeof A=="object"?g(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(g){if(!b(g))return u(g);var E=[];for(var A in Object(g))_.call(g,A)&&A!="constructor"&&E.push(A);return E}},313:(M,z,p)=>{var b=p(3218),u=p(5726),_=p(3498),g=Object.prototype.hasOwnProperty;M.exports=function(E){if(!b(E))return _(E);var A=u(E),T=[];for(var F in E)(F!="constructor"||!A&&g.call(E,F))&&T.push(F);return T}},433:M=>{M.exports=function(z,p){return z<p}},9199:(M,z,p)=>{var b=p(9881),u=p(8612);M.exports=function(_,g){var E=-1,A=u(_)?Array(_.length):[];return b(_,function(T,F,O){A[++E]=g(T,F,O)}),A}},1573:(M,z,p)=>{var b=p(2958),u=p(1499),_=p(2634);M.exports=function(g){var E=u(g);return E.length==1&&E[0][2]?_(E[0][0],E[0][1]):function(A){return A===g||b(A,g,E)}}},6432:(M,z,p)=>{var b=p(939),u=p(7361),_=p(9095),g=p(5403),E=p(9162),A=p(2634),T=p(327);M.exports=function(F,O){return g(F)&&E(O)?A(T(F),O):function(P){var V=u(P,F);return V===void 0&&V===O?_(P,F):b(O,V,3)}}},2980:(M,z,p)=>{var b=p(6384),u=p(6556),_=p(8483),g=p(9783),E=p(3218),A=p(1704),T=p(6390);M.exports=function F(O,P,V,J,tt){O!==P&&_(P,function(ht,et){if(tt||(tt=new b),E(ht))g(O,P,et,V,F,J,tt);else{var wt=J?J(T(O,et),ht,et+"",O,P,tt):void 0;wt===void 0&&(wt=ht),u(O,et,wt)}},A)}},9783:(M,z,p)=>{var b=p(6556),u=p(4626),_=p(7133),g=p(278),E=p(8517),A=p(5694),T=p(1469),F=p(9246),O=p(4144),P=p(3560),V=p(3218),J=p(8630),tt=p(6719),ht=p(6390),et=p(3678);M.exports=function(wt,at,ut,vt,Qt,Vt,kt){var It=ht(wt,ut),Tt=ht(at,ut),mt=kt.get(Tt);if(mt)b(wt,ut,mt);else{var X=Vt?Vt(It,Tt,ut+"",wt,at,kt):void 0,ot=X===void 0;if(ot){var j=T(Tt),yt=!j&&O(Tt),Y=!j&&!yt&&tt(Tt);X=Tt,j||yt||Y?T(It)?X=It:F(It)?X=g(It):yt?(ot=!1,X=u(Tt,!0)):Y?(ot=!1,X=_(Tt,!0)):X=[]:J(Tt)||A(Tt)?(X=It,A(It)?X=et(It):V(It)&&!P(It)||(X=E(Tt))):ot=!1}ot&&(kt.set(Tt,X),Qt(X,Tt,vt,Vt,kt),kt.delete(Tt)),b(wt,ut,X)}}},9556:(M,z,p)=>{var b=p(9932),u=p(7786),_=p(7206),g=p(9199),E=p(1131),A=p(1717),T=p(5022),F=p(6557),O=p(1469);M.exports=function(P,V,J){V=V.length?b(V,function(et){return O(et)?function(wt){return u(wt,et.length===1?et[0]:et)}:et}):[F];var tt=-1;V=b(V,A(_));var ht=g(P,function(et,wt,at){return{criteria:b(V,function(ut){return ut(et)}),index:++tt,value:et}});return E(ht,function(et,wt){return T(et,wt,J)})}},5970:(M,z,p)=>{var b=p(3012),u=p(9095);M.exports=function(_,g){return b(_,g,function(E,A){return u(_,A)})}},3012:(M,z,p)=>{var b=p(7786),u=p(611),_=p(1811);M.exports=function(g,E,A){for(var T=-1,F=E.length,O={};++T<F;){var P=E[T],V=b(g,P);A(V,P)&&u(O,_(P,g),V)}return O}},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,_,g){for(var E=-1,A=p(z((u-b)/(_||1)),0),T=Array(A);A--;)T[g?A:++E]=b,b+=_;return T}},107:M=>{M.exports=function(z,p,b,u,_){return _(z,function(g,E,A){b=u?(u=!1,g):p(b,g,E,A)}),b}},5976:(M,z,p)=>{var b=p(6557),u=p(5357),_=p(61);M.exports=function(g,E){return _(u(g,E,b),g+"")}},611:(M,z,p)=>{var b=p(4865),u=p(1811),_=p(5776),g=p(3218),E=p(327);M.exports=function(A,T,F,O){if(!g(A))return A;for(var P=-1,V=(T=u(T,A)).length,J=V-1,tt=A;tt!=null&&++P<V;){var ht=E(T[P]),et=F;if(ht==="__proto__"||ht==="constructor"||ht==="prototype")return A;if(P!=J){var wt=tt[ht];(et=O?O(wt,ht,tt):void 0)===void 0&&(et=g(wt)?wt:_(T[P+1])?[]:{})}b(tt,ht,et),tt=tt[ht]}return A}},6560:(M,z,p)=>{var b=p(5703),u=p(8777),_=p(6557),g=u?function(E,A){return u(E,"toString",{configurable:!0,enumerable:!1,value:b(A),writable:!0})}:_;M.exports=g},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),g=p(3448),E=b?b.prototype:void 0,A=E?E.toString:void 0;M.exports=function T(F){if(typeof F=="string")return F;if(_(F))return u(F,T)+"";if(g(F))return A?A.call(F):"";var O=F+"";return O=="0"&&1/F==-1/0?"-0":O}},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),g=p(4757),E=p(3593),A=p(1814);M.exports=function(T,F,O){var P=-1,V=u,J=T.length,tt=!0,ht=[],et=ht;if(O)tt=!1,V=_;else if(J>=200){var wt=F?null:E(T);if(wt)return A(wt);tt=!1,V=g,et=new b}else et=F?[]:ht;t:for(;++P<J;){var at=T[P],ut=F?F(at):at;if(at=O||at!==0?at:0,tt&&ut==ut){for(var vt=et.length;vt--;)if(et[vt]===ut)continue t;F&&et.push(ut),ht.push(at)}else V(et,ut,O)||(et!==ht&&et.push(ut),ht.push(at))}return ht}},7415:(M,z,p)=>{var b=p(9932);M.exports=function(u,_){return b(_,function(g){return u[g]})}},1757:M=>{M.exports=function(z,p,b){for(var u=-1,_=z.length,g=p.length,E={};++u<_;){var A=u<g?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),g=p(9833);M.exports=function(E,A){return b(E)?E:u(E,A)?[E]:_(g(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,g=_&&_.exports===u?b.Buffer:void 0,E=g?g.allocUnsafe:void 0;M.exports=function(A,T){if(T)return A.slice();var F=A.length,O=E?E(F):new A.constructor(F);return A.copy(O),O}},7157:(M,z,p)=>{var b=p(4318);M.exports=function(u,_){var g=_?b(u.buffer):u.buffer;return new u.constructor(g,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(g){return _?Object(_.call(g)):{}}},7133:(M,z,p)=>{var b=p(4318);M.exports=function(u,_){var g=_?b(u.buffer):u.buffer;return new u.constructor(g,u.byteOffset,u.length)}},6393:(M,z,p)=>{var b=p(3448);M.exports=function(u,_){if(u!==_){var g=u!==void 0,E=u===null,A=u==u,T=b(u),F=_!==void 0,O=_===null,P=_==_,V=b(_);if(!O&&!V&&!T&&u>_||T&&F&&P&&!O&&!V||E&&F&&P||!g&&P||!A)return 1;if(!E&&!T&&!V&&u<_||V&&g&&A&&!E&&!T||O&&g&&A||!F&&A||!P)return-1}return 0}},5022:(M,z,p)=>{var b=p(6393);M.exports=function(u,_,g){for(var E=-1,A=u.criteria,T=_.criteria,F=A.length,O=g.length;++E<F;){var P=b(A[E],T[E]);if(P)return E>=O?P:P*(g[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(_,g,E,A){var T=!E;E||(E={});for(var F=-1,O=g.length;++F<O;){var P=g[F],V=A?A(E[P],_[P],P,E,_):void 0;V===void 0&&(V=_[P]),T?u(E,P,V):b(E,P,V)}return E}},8805:(M,z,p)=>{var b=p(8363),u=p(9551);M.exports=function(_,g){return b(_,u(_),g)}},1911:(M,z,p)=>{var b=p(8363),u=p(1442);M.exports=function(_,g){return b(_,u(_),g)}},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(g,E){var A=-1,T=E.length,F=T>1?E[T-1]:void 0,O=T>2?E[2]:void 0;for(F=_.length>3&&typeof F=="function"?(T--,F):void 0,O&&u(E[0],E[1],O)&&(F=T<3?void 0:F,T=1),g=Object(g);++A<T;){var P=E[A];P&&_(g,P,A,F)}return g})}},9291:(M,z,p)=>{var b=p(8612);M.exports=function(u,_){return function(g,E){if(g==null)return g;if(!b(g))return u(g,E);for(var A=g.length,T=_?A:-1,F=Object(g);(_?T--:++T<A)&&E(F[T],T,F)!==!1;);return g}}},5063:M=>{M.exports=function(z){return function(p,b,u){for(var _=-1,g=Object(p),E=u(p),A=E.length;A--;){var T=E[z?A:++_];if(b(g[T],T,g)===!1)break}return p}}},7740:(M,z,p)=>{var b=p(7206),u=p(8612),_=p(3674);M.exports=function(g){return function(E,A,T){var F=Object(E);if(!u(E)){var O=b(A,3);E=_(E),A=function(V){return O(F[V],V,F)}}var P=g(E,A,T);return P>-1?F[O?E[P]:P]:void 0}}},7445:(M,z,p)=>{var b=p(98),u=p(6612),_=p(8601);M.exports=function(g){return function(E,A,T){return T&&typeof T!="number"&&u(E,A,T)&&(A=T=void 0),E=_(E),A===void 0?(A=E,E=0):A=_(A),T=T===void 0?E<A?1:-1:_(T),b(E,A,T,g)}}},3593:(M,z,p)=>{var b=p(8525),u=p(308),_=p(1814),g=b&&1/_(new b([,-0]))[1]==1/0?function(E){return new b(E)}:u;M.exports=g},8777:(M,z,p)=>{var b=p(852),u=function(){try{var _=b(Object,"defineProperty");return _({},"",{}),_}catch(g){}}();M.exports=u},7114:(M,z,p)=>{var b=p(8668),u=p(2908),_=p(4757);M.exports=function(g,E,A,T,F,O){var P=1&A,V=g.length,J=E.length;if(V!=J&&!(P&&J>V))return!1;var tt=O.get(g),ht=O.get(E);if(tt&&ht)return tt==E&&ht==g;var et=-1,wt=!0,at=2&A?new b:void 0;for(O.set(g,E),O.set(E,g);++et<V;){var ut=g[et],vt=E[et];if(T)var Qt=P?T(vt,ut,et,E,g,O):T(ut,vt,et,g,E,O);if(Qt!==void 0){if(Qt)continue;wt=!1;break}if(at){if(!u(E,function(Vt,kt){if(!_(at,kt)&&(ut===Vt||F(ut,Vt,A,T,O)))return at.push(kt)})){wt=!1;break}}else if(ut!==vt&&!F(ut,vt,A,T,O)){wt=!1;break}}return O.delete(g),O.delete(E),wt}},8351:(M,z,p)=>{var b=p(2705),u=p(1149),_=p(7813),g=p(7114),E=p(8776),A=p(1814),T=b?b.prototype:void 0,F=T?T.valueOf:void 0;M.exports=function(O,P,V,J,tt,ht,et){switch(V){case"[object DataView]":if(O.byteLength!=P.byteLength||O.byteOffset!=P.byteOffset)return!1;O=O.buffer,P=P.buffer;case"[object ArrayBuffer]":return!(O.byteLength!=P.byteLength||!ht(new u(O),new u(P)));case"[object Boolean]":case"[object Date]":case"[object Number]":return _(+O,+P);case"[object Error]":return O.name==P.name&&O.message==P.message;case"[object RegExp]":case"[object String]":return O==P+"";case"[object Map]":var wt=E;case"[object Set]":var at=1&J;if(wt||(wt=A),O.size!=P.size&&!at)return!1;var ut=et.get(O);if(ut)return ut==P;J|=2,et.set(O,P);var vt=g(wt(O),wt(P),J,tt,ht,et);return et.delete(O),vt;case"[object Symbol]":if(F)return F.call(O)==F.call(P)}return!1}},6096:(M,z,p)=>{var b=p(8234),u=Object.prototype.hasOwnProperty;M.exports=function(_,g,E,A,T,F){var O=1&E,P=b(_),V=P.length;if(V!=b(g).length&&!O)return!1;for(var J=V;J--;){var tt=P[J];if(!(O?tt in g:u.call(g,tt)))return!1}var ht=F.get(_),et=F.get(g);if(ht&&et)return ht==g&&et==_;var wt=!0;F.set(_,g),F.set(g,_);for(var at=O;++J<V;){var ut=_[tt=P[J]],vt=g[tt];if(A)var Qt=O?A(vt,ut,tt,g,_,F):A(ut,vt,tt,_,g,F);if(!(Qt===void 0?ut===vt||T(ut,vt,E,A,F):Qt)){wt=!1;break}at||(at=tt=="constructor")}if(wt&&!at){var Vt=_.constructor,kt=g.constructor;Vt==kt||!("constructor"in _)||!("constructor"in g)||typeof Vt=="function"&&Vt instanceof Vt&&typeof kt=="function"&&kt instanceof kt||(wt=!1)}return F.delete(_),F.delete(g),wt}},9021:(M,z,p)=>{var b=p(5564),u=p(5357),_=p(61);M.exports=function(g){return _(u(g,void 0,b),g+"")}},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(g){return b(g,_,u)}},6904:(M,z,p)=>{var b=p(8866),u=p(1442),_=p(1704);M.exports=function(g){return b(g,_,u)}},5050:(M,z,p)=>{var b=p(7019);M.exports=function(u,_){var g=u.__data__;return b(_)?g[typeof _=="string"?"string":"hash"]:g.map}},1499:(M,z,p)=>{var b=p(9162),u=p(3674);M.exports=function(_){for(var g=u(_),E=g.length;E--;){var A=g[E],T=_[A];g[E]=[A,T,b(T)]}return g}},852:(M,z,p)=>{var b=p(8458),u=p(7801);M.exports=function(_,g){var E=u(_,g);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,g=u.toString,E=b?b.toStringTag:void 0;M.exports=function(A){var T=_.call(A,E),F=A[E];try{A[E]=void 0;var O=!0}catch(V){}var P=g.call(A);return O&&(T?A[E]=F:delete A[E]),P}},9551:(M,z,p)=>{var b=p(4963),u=p(479),_=Object.prototype.propertyIsEnumerable,g=Object.getOwnPropertySymbols,E=g?function(A){return A==null?[]:(A=Object(A),b(g(A),function(T){return _.call(A,T)}))}:u;M.exports=E},1442:(M,z,p)=>{var b=p(2488),u=p(5924),_=p(9551),g=p(479),E=Object.getOwnPropertySymbols?function(A){for(var T=[];A;)b(T,_(A)),A=u(A);return T}:g;M.exports=E},4160:(M,z,p)=>{var b=p(8552),u=p(7071),_=p(3818),g=p(8525),E=p(577),A=p(4239),T=p(346),F="[object Map]",O="[object Promise]",P="[object Set]",V="[object WeakMap]",J="[object DataView]",tt=T(b),ht=T(u),et=T(_),wt=T(g),at=T(E),ut=A;(b&&ut(new b(new ArrayBuffer(1)))!=J||u&&ut(new u)!=F||_&&ut(_.resolve())!=O||g&&ut(new g)!=P||E&&ut(new E)!=V)&&(ut=function(vt){var Qt=A(vt),Vt=Qt=="[object Object]"?vt.constructor:void 0,kt=Vt?T(Vt):"";if(kt)switch(kt){case tt:return J;case ht:return F;case et:return O;case wt:return P;case at:return V}return Qt}),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),g=p(5776),E=p(1780),A=p(327);M.exports=function(T,F,O){for(var P=-1,V=(F=b(F,T)).length,J=!1;++P<V;){var tt=A(F[P]);if(!(J=T!=null&&O(T,tt)))break;T=T[tt]}return J||++P!=V?J:!!(V=T==null?0:T.length)&&E(V)&&g(tt,V)&&(_(T)||u(T))}},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 g=this.__data__;if(b){var E=g[_];return E==="__lodash_hash_undefined__"?void 0:E}return u.call(g,_)?g[_]:void 0}},1327:(M,z,p)=>{var b=p(4536),u=Object.prototype.hasOwnProperty;M.exports=function(_){var g=this.__data__;return b?g[_]!==void 0:u.call(g,_)}},1866:(M,z,p)=>{var b=p(4536);M.exports=function(u,_){var g=this.__data__;return this.size+=this.has(u)?0:1,g[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),g=p(419),E=p(7133);M.exports=function(A,T,F){var O=A.constructor;switch(T){case"[object ArrayBuffer]":return b(A);case"[object Boolean]":case"[object Date]":return new O(+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 O;case"[object Number]":case"[object String]":return new O(A);case"[object RegExp]":return _(A);case"[object Symbol]":return g(A)}}},8517:(M,z,p)=>{var b=p(3118),u=p(5924),_=p(5726);M.exports=function(g){return typeof g.constructor!="function"||_(g)?{}:b(u(g))}},7285:(M,z,p)=>{var b=p(2705),u=p(5694),_=p(1469),g=b?b.isConcatSpreadable:void 0;M.exports=function(E){return _(E)||u(E)||!!(g&&E&&E[g])}},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),g=p(3218);M.exports=function(E,A,T){if(!g(T))return!1;var F=typeof A;return!!(F=="number"?u(T)&&_(A,T.length):F=="string"&&A in T)&&b(T[A],E)}},5403:(M,z,p)=>{var b=p(1469),u=p(3448),_=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,g=/^\w*$/;M.exports=function(E,A){if(b(E))return!1;var T=typeof E;return!(T!="number"&&T!="symbol"&&T!="boolean"&&E!=null&&!u(E))||g.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(g){return!!_&&_ in g}},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 g=this.__data__,E=b(g,_);return!(E<0||(E==g.length-1?g.pop():u.call(g,E,1),--this.size,0))}},2117:(M,z,p)=>{var b=p(8470);M.exports=function(u){var _=this.__data__,g=b(_,u);return g<0?void 0:_[g][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 g=this.__data__,E=b(g,u);return E<0?(++this.size,g.push([u,_])):g[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 g=b(this,u),E=g.size;return g.set(u,_),this.size+=g.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 g.size===500&&g.clear(),E}),g=_.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,g=_&&_.exports===u&&b.process,E=function(){try{return _&&_.require&&_.require("util").types||g&&g.binding&&g.binding("util")}catch(A){}}();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(_,g,E){return g=u(g===void 0?_.length-1:g,0),function(){for(var A=arguments,T=-1,F=u(A.length-g,0),O=Array(F);++T<F;)O[T]=A[g+T];T=-1;for(var P=Array(g+1);++T<g;)P[T]=A[T];return P[g]=E(O),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(),g=16-(_-u);if(u=_,g>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(g,E){var A=this.__data__;if(A instanceof b){var T=A.__data__;if(!u||T.length<199)return T.push([g,E]),this.size=++A.size,this;A=this.__data__=new _(T)}return A.set(g,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(g){return u(g)?_(g):b(g)}},5514:(M,z,p)=>{var b=p(4523),u=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,_=/\\(\\)?/g,g=b(function(E){var A=[];return E.charCodeAt(0)===46&&A.push(""),E.replace(u,function(T,F,O,P){A.push(O?P.replace(_,"$1"):F||T)}),A});M.exports=g},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(b){}try{return p+""}catch(b){}}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]",g="(?:"+z+"|"+p+")?",E="[\\ufe0e\\ufe0f]?",A=E+g+"(?:\\u200d(?:"+[b,u,_].join("|")+")"+E+g+")*",T="(?:"+[b+z+"?",z,u,_,"[\\ud800-\\udfff]"].join("|")+")",F=RegExp(p+"(?="+p+")|"+T+A,"g");M.exports=function(O){for(var P=F.lastIndex=0;F.test(O);)++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),g=p(1704),E=Object.prototype,A=E.hasOwnProperty,T=b(function(F,O){F=Object(F);var P=-1,V=O.length,J=V>2?O[2]:void 0;for(J&&_(O[0],O[1],J)&&(V=1);++P<V;)for(var tt=O[P],ht=g(tt),et=-1,wt=ht.length;++et<wt;){var at=ht[et],ut=F[at];(ut===void 0||u(ut,E[at])&&!A.call(F,at))&&(F[at]=tt[at])}return F});M.exports=T},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),g=p(1469);M.exports=function(E,A){return(g(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),g=Math.max;M.exports=function(E,A,T){var F=E==null?0:E.length;if(!F)return-1;var O=T==null?0:_(T);return O<0&&(O=g(F+O,0)),b(E,u(A,3),O)}},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),g=p(1469);M.exports=function(E,A){return(g(E)?b:u)(E,_(A))}},2620:(M,z,p)=>{var b=p(8483),u=p(4290),_=p(1704);M.exports=function(g,E){return g==null?g:b(g,u(E),_)}},7361:(M,z,p)=>{var b=p(7786);M.exports=function(u,_,g){var E=u==null?void 0:b(u,_);return E===void 0?g:E}},8721:(M,z,p)=>{var b=p(8565),u=p(222);M.exports=function(_,g){return _!=null&&u(_,g,b)}},9095:(M,z,p)=>{var b=p(13),u=p(222);M.exports=function(_,g){return _!=null&&u(_,g,b)}},6557:M=>{M.exports=function(z){return z}},5694:(M,z,p)=>{var b=p(9454),u=p(7005),_=Object.prototype,g=_.hasOwnProperty,E=_.propertyIsEnumerable,A=b(function(){return arguments}())?b:function(T){return u(T)&&g.call(T,"callee")&&!E.call(T,"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,g=_&&M&&!M.nodeType&&M,E=g&&g.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),g=p(1469),E=p(8612),A=p(4144),T=p(5726),F=p(6719),O=Object.prototype.hasOwnProperty;M.exports=function(P){if(P==null)return!0;if(E(P)&&(g(P)||typeof P=="string"||typeof P.splice=="function"||A(P)||F(P)||_(P)))return!P.length;var V=u(P);if(V=="[object Map]"||V=="[object Set]")return!P.size;if(T(P))return!b(P).length;for(var J in P)if(O.call(P,J))return!1;return!0}},3560:(M,z,p)=>{var b=p(4239),u=p(3218);M.exports=function(_){if(!u(_))return!1;var g=b(_);return g=="[object Function]"||g=="[object GeneratorFunction]"||g=="[object AsyncFunction]"||g=="[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),g=_&&_.isMap,E=g?u(g):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),g=Function.prototype,E=Object.prototype,A=g.toString,T=E.hasOwnProperty,F=A.call(Object);M.exports=function(O){if(!_(O)||b(O)!="[object Object]")return!1;var P=u(O);if(P===null)return!0;var V=T.call(P,"constructor")&&P.constructor;return typeof V=="function"&&V instanceof V&&A.call(V)==F}},2928:(M,z,p)=>{var b=p(9221),u=p(1717),_=p(1167),g=_&&_.isSet,E=g?u(g):b;M.exports=E},7037:(M,z,p)=>{var b=p(4239),u=p(1469),_=p(7005);M.exports=function(g){return typeof g=="string"||!u(g)&&_(g)&&b(g)=="[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),g=_&&_.isTypedArray,E=g?u(g):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(g){return _(g)?b(g):u(g)}},1704:(M,z,p)=>{var b=p(4636),u=p(313),_=p(8612);M.exports=function(g){return _(g)?b(g,!0):u(g)}},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),g=p(1469);M.exports=function(E,A){return(g(E)?b:_)(E,u(A,3))}},6604:(M,z,p)=>{var b=p(9465),u=p(7816),_=p(7206);M.exports=function(g,E){var A={};return E=_(E,3),u(g,function(T,F,O){b(A,F,E(T,F,O))}),A}},6162:(M,z,p)=>{var b=p(6029),u=p(3325),_=p(6557);M.exports=function(g){return g&&g.length?b(g,_,u):void 0}},8306:(M,z,p)=>{var b=p(3369);function u(_,g){if(typeof _!="function"||g!=null&&typeof g!="function")throw new TypeError("Expected a function");var E=function(){var A=arguments,T=g?g.apply(this,A):A[0],F=E.cache;if(F.has(T))return F.get(T);var O=_.apply(this,A);return E.cache=F.set(T,O)||F,O};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(_,g,E){b(_,g,E)});M.exports=u},3632:(M,z,p)=>{var b=p(6029),u=p(433),_=p(6557);M.exports=function(g){return g&&g.length?b(g,_,u):void 0}},2762:(M,z,p)=>{var b=p(6029),u=p(7206),_=p(433);M.exports=function(g,E){return g&&g.length?b(g,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(_,g){return _==null?{}:b(_,g)});M.exports=u},9601:(M,z,p)=>{var b=p(371),u=p(9152),_=p(5403),g=p(327);M.exports=function(E){return _(E)?b(g(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),g=p(107),E=p(1469);M.exports=function(A,T,F){var O=E(A)?b:g,P=arguments.length<3;return O(A,_(T,4),F,P,u)}},4238:(M,z,p)=>{var b=p(280),u=p(4160),_=p(8612),g=p(7037),E=p(8016);M.exports=function(A){if(A==null)return 0;if(_(A))return g(A)?E(A):A.length;var T=u(A);return T=="[object Map]"||T=="[object Set]"?A.size:b(A).length}},9734:(M,z,p)=>{var b=p(1078),u=p(9556),_=p(5976),g=p(6612),E=_(function(A,T){if(A==null)return[];var F=T.length;return F>1&&g(A,T[0],T[1])?T=[]:F>2&&g(T[0],T[1],T[2])&&(T=[T[0]]),u(A,b(T,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),g=_%1;return _==_?g?_-g:_:0}},4841:(M,z,p)=>{var b=p(7561),u=p(3218),_=p(3448),g=/^[-+]0x[0-9a-f]+$/i,E=/^0b[01]+$/i,A=/^0o[0-7]+$/i,T=parseInt;M.exports=function(F){if(typeof F=="number")return F;if(_(F))return NaN;if(u(F)){var O=typeof F.valueOf=="function"?F.valueOf():F;F=u(O)?O+"":O}if(typeof F!="string")return F===0?F:+F;F=b(F);var P=E.test(F);return P||A.test(F)?T(F.slice(2),P?2:8):g.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),g=p(7206),E=p(5924),A=p(1469),T=p(4144),F=p(3560),O=p(3218),P=p(6719);M.exports=function(V,J,tt){var ht=A(V),et=ht||T(V)||P(V);if(J=g(J,4),tt==null){var wt=V&&V.constructor;tt=et?ht?new wt:[]:O(V)&&F(wt)?u(E(V)):{}}return(et?b:_)(V,function(at,ut,vt){return J(tt,at,ut,vt)}),tt}},3386:(M,z,p)=>{var b=p(1078),u=p(5976),_=p(5652),g=p(9246),E=u(function(A){return _(b(A,1,g,!0))});M.exports=E},3955:(M,z,p)=>{var b=p(9833),u=0;M.exports=function(_){var g=++u;return b(_)+g}},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(_,g){return u(_||[],g||[],b)}},9234:()=>{},1748:(M,z,p)=>{var b={"./locale":9234,"./locale.js":9234};function u(g){var E=_(g);return p(E)}function _(g){if(!p.o(b,g)){var E=new Error("Cannot find module '"+g+"'");throw E.code="MODULE_NOT_FOUND",E}return b[g]}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 g(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 T(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 O(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 V(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 J(x,L,H,ct){return wa(x,L,H,ct,!0).utc()}function tt(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=tt(x),H=u.call(L.parsedDateParts,function(Zt){return Zt!=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 et(x){var L=J(NaN);return x!=null?V(tt(L),x):tt(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 wt=_.momentProperties=[];function at(x,L){var H,ct,Zt;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=tt(L)),A(L._locale)||(x._locale=L._locale),0<wt.length)for(H=0;H<wt.length;H++)A(Zt=L[ct=wt[H]])||(x[ct]=Zt);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 Qt(x){return x instanceof vt||x!=null&&x._isAMomentObject!=null}function Vt(x){return x<0?Math.ceil(x)||0:Math.floor(x)}function kt(x){var L=+x,H=0;return L!==0&&isFinite(L)&&(H=Vt(L)),H}function It(x,L,H){var ct,Zt=Math.min(x.length,L.length),Ce=Math.abs(x.length-L.length),Re=0;for(ct=0;ct<Zt;ct++)(H&&x[ct]!==L[ct]||!H&&kt(x[ct])!==kt(L[ct]))&&Re++;return Re+Ce}function Tt(x){_.suppressDeprecationWarnings===!1&&typeof console!="undefined"&&console.warn&&console.warn("Deprecation warning: "+x)}function mt(x,L){var H=!0;return V(function(){if(_.deprecationHandler!=null&&_.deprecationHandler(null,x),H){for(var ct,Zt=[],Ce=0;Ce<arguments.length;Ce++){if(ct="",typeof arguments[Ce]=="object"){for(var Re in ct+=`
[`+Ce+"] ",arguments[0])ct+=Re+": "+arguments[0][Re]+", ";ct=ct.slice(0,-2)}else ct=arguments[Ce];Zt.push(ct)}Tt(x+`
Arguments: `+Array.prototype.slice.call(Zt).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]||(Tt(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=V({},x);for(H in L)P(L,H)&&(E(x[H])&&E(L[H])?(ct[H]={},V(ct[H],x[H]),V(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]=V({},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 At={};function Ut(x,L){var H=x.toLowerCase();At[H]=At[H+"s"]=At[L]=x}function me(x){return typeof x=="string"?At[x]||At[x.toLowerCase()]:void 0}function Ye(x){var L,H,ct={};for(H in x)P(x,H)&&(L=me(H))&&(ct[L]=x[H]);return ct}var ke={};function pe(x,L){ke[x]=L}function xe(x,L,H){var ct=""+Math.abs(x),Zt=L-ct.length;return(0<=x?H?"+":"":"-")+Math.pow(10,Math.max(0,Zt)).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,Ne=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,be={},kn={};function he(x,L,H,ct){var Zt=ct;typeof ct=="string"&&(Zt=function(){return this[ct]()}),x&&(kn[x]=Zt),L&&(kn[L[0]]=function(){return xe(Zt.apply(this,arguments),L[1],L[2])}),H&&(kn[H]=function(){return this.localeData().ordinal(Zt.apply(this,arguments),x)})}function Ze(x,L){return x.isValid()?(L=re(L,x.localeData()),be[L]=be[L]||function(H){var ct,Zt,Ce,Re=H.match(Ae);for(ct=0,Zt=Re.length;ct<Zt;ct++)kn[Re[ct]]?Re[ct]=kn[Re[ct]]:Re[ct]=(Ce=Re[ct]).match(/\[[\s\S]/)?Ce.replace(/^\[|\]$/g,""):Ce.replace(/\\/g,"");return function(Xe){var Ke,hn="";for(Ke=0;Ke<Zt;Ke++)hn+=yt(Re[Ke])?Re[Ke].call(Xe,H):Re[Ke];return hn}}(L),be[L](x)):x.localeData().invalidDate()}function re(x,L){var H=5;function ct(Zt){return L.longDateFormat(Zt)||Zt}for(Ne.lastIndex=0;0<=H&&Ne.test(x);)x=x.replace(Ne,ct),Ne.lastIndex=0,H-=1;return x}var Xt=/\d/,se=/\d\d/,St=/\d{3}/,ee=/\d{4}/,st=/[+-]?\d{6}/,dt=/\d\d?/,ft=/\d\d\d\d?/,Dt=/\d\d\d\d\d\d?/,ue=/\d{1,3}/,Oe=/\d{1,4}/,en=/[+-]?\d{1,6}/,$e=/\d+/,cn=/[+-]?\d+/,Fe=/Z|[+-]\d\d:?\d\d/gi,Ee=/Z|[+-]\d\d(?::?\d\d)?/gi,Be=/[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,Le={};function ge(x,L,H){Le[x]=yt(L)?L:function(ct,Zt){return ct&&H?H:L}}function ie(x,L){return P(Le,x)?Le[x](L._strict,L._locale):new RegExp(An(x.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(H,ct,Zt,Ce,Re){return ct||Zt||Ce||Re})))}function An(x){return x.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var Ie={};function un(x,L){var H,ct=L;for(typeof x=="string"&&(x=[x]),T(L)&&(ct=function(Zt,Ce){Ce[L]=kt(Zt)}),H=0;H<x.length;H++)Ie[x[H]]=ct}function ze(x,L){un(x,function(H,ct,Zt,Ce){Zt._w=Zt._w||{},L(H,Zt._w,Zt,Ce)})}function pn(x){return tr(x)?366:365}function tr(x){return x%4==0&&x%100!=0||x%400==0}he("Y",0,0,function(){var x=this.year();return x<=9999?""+x:"+"+x}),he(0,["YY",2],0,function(){return this.year()%100}),he(0,["YYYY",4],0,"year"),he(0,["YYYYY",5],0,"year"),he(0,["YYYYYY",6,!0],0,"year"),Ut("year","y"),pe("year",1),ge("Y",cn),ge("YY",dt,se),ge("YYYY",Oe,ee),ge("YYYYY",en,st),ge("YYYYYY",en,st),un(["YYYYY","YYYYYY"],0),un("YYYY",function(x,L){L[0]=x.length===2?_.parseTwoDigitYear(x):kt(x)}),un("YY",function(x,L){L[0]=_.parseTwoDigitYear(x)}),un("Y",function(x,L){L[0]=parseInt(x,10)}),_.parseTwoDigitYear=function(x){return kt(x)+(68<kt(x)?1900:2e3)};var Dn,Tn=De("FullYear",!0);function De(x,L){return function(H){return H!=null?(Ge(this,x,H),_.updateOffset(this,L),this):Qe(this,x)}}function Qe(x,L){return x.isValid()?x._d["get"+(x._isUTC?"UTC":"")+L]():NaN}function Ge(x,L,H){x.isValid()&&!isNaN(H)&&(L==="FullYear"&&tr(x.year())&&x.month()===1&&x.date()===29?x._d["set"+(x._isUTC?"UTC":"")+L](H,x.month(),Se(H,x.month())):x._d["set"+(x._isUTC?"UTC":"")+L](H))}function Se(x,L){if(isNaN(x)||isNaN(L))return NaN;var H=(L%12+12)%12;return x+=(L-H)/12,H===1?tr(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},he("M",["MM",2],"Mo",function(){return this.month()+1}),he("MMM",0,0,function(x){return this.localeData().monthsShort(this,x)}),he("MMMM",0,0,function(x){return this.localeData().months(this,x)}),Ut("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)}),un(["M","MM"],function(x,L){L[1]=kt(x)-1}),un(["MMM","MMMM"],function(x,L,H,ct){var Zt=H._locale.monthsParse(x,ct,H._strict);Zt!=null?L[1]=Zt:tt(H).invalidMonth=x});var vn=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Mt="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 zt(x,L){var H;if(!x.isValid())return x;if(typeof L=="string"){if(/^\d+$/.test(L))L=kt(L);else if(!T(L=x.localeData().monthsParse(L)))return x}return H=Math.min(x.date(),Se(x.year(),L)),x._d["set"+(x._isUTC?"UTC":"")+"Month"](L,H),x}function Wn(x){return x!=null?(zt(this,x),_.updateOffset(this,!0),this):Qe(this,"Month")}var jn=Be,Hn=Be;function Mn(){function x(Re,Xe){return Xe.length-Re.length}var L,H,ct=[],Zt=[],Ce=[];for(L=0;L<12;L++)H=J([2e3,L]),ct.push(this.monthsShort(H,"")),Zt.push(this.months(H,"")),Ce.push(this.months(H,"")),Ce.push(this.monthsShort(H,""));for(ct.sort(x),Zt.sort(x),Ce.sort(x),L=0;L<12;L++)ct[L]=An(ct[L]),Zt[L]=An(Zt[L]);for(L=0;L<24;L++)Ce[L]=An(Ce[L]);this._monthsRegex=new RegExp("^("+Ce.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+Zt.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+ct.join("|")+")","i")}function Gn(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 Rn(x,L,H){var ct=7+L-H;return-(7+Gn(x,0,ct).getUTCDay()-L)%7+ct-1}function En(x,L,H,ct,Zt){var Ce,Re,Xe=1+7*(L-1)+(7+H-ct)%7+Rn(x,ct,Zt);return Re=Xe<=0?pn(Ce=x-1)+Xe:Xe>pn(x)?(Ce=x+1,Xe-pn(x)):(Ce=x,Xe),{year:Ce,dayOfYear:Re}}function Pn(x,L,H){var ct,Zt,Ce=Rn(x.year(),L,H),Re=Math.floor((x.dayOfYear()-Ce-1)/7)+1;return Re<1?ct=Re+zn(Zt=x.year()-1,L,H):Re>zn(x.year(),L,H)?(ct=Re-zn(x.year(),L,H),Zt=x.year()+1):(Zt=x.year(),ct=Re),{week:ct,year:Zt}}function zn(x,L,H){var ct=Rn(x,L,H),Zt=Rn(x+1,L,H);return(pn(x)-ct+Zt)/7}function Yn(x,L){return x.slice(L,7).concat(x.slice(0,L))}he("w",["ww",2],"wo","week"),he("W",["WW",2],"Wo","isoWeek"),Ut("week","w"),Ut("isoWeek","W"),pe("week",5),pe("isoWeek",5),ge("w",dt),ge("ww",dt,se),ge("W",dt),ge("WW",dt,se),ze(["w","ww","W","WW"],function(x,L,H,ct){L[ct.substr(0,1)]=kt(x)}),he("d",0,"do","day"),he("dd",0,0,function(x){return this.localeData().weekdaysMin(this,x)}),he("ddd",0,0,function(x){return this.localeData().weekdaysShort(this,x)}),he("dddd",0,0,function(x){return this.localeData().weekdays(this,x)}),he("e",0,0,"weekday"),he("E",0,0,"isoWeekday"),Ut("day","d"),Ut("weekday","e"),Ut("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)}),ze(["dd","ddd","dddd"],function(x,L,H,ct){var Zt=H._locale.weekdaysParse(x,ct,H._strict);Zt!=null?L.d=Zt:tt(H).invalidWeekday=x}),ze(["d","e","E"],function(x,L,H,ct){L[ct]=kt(x)});var ya="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Br="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Tr="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Sn=Be,li=Be,Bn=Be;function _r(){function x(bn,Un){return Un.length-bn.length}var L,H,ct,Zt,Ce,Re=[],Xe=[],Ke=[],hn=[];for(L=0;L<7;L++)H=J([2e3,1]).day(L),ct=this.weekdaysMin(H,""),Zt=this.weekdaysShort(H,""),Ce=this.weekdays(H,""),Re.push(ct),Xe.push(Zt),Ke.push(Ce),hn.push(ct),hn.push(Zt),hn.push(Ce);for(Re.sort(x),Xe.sort(x),Ke.sort(x),hn.sort(x),L=0;L<7;L++)Xe[L]=An(Xe[L]),Ke[L]=An(Ke[L]),hn[L]=An(hn[L]);this._weekdaysRegex=new RegExp("^("+hn.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+Ke.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+Xe.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+Re.join("|")+")","i")}function Ar(){return this.hours()%12||12}function yr(x,L){he(x,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),L)})}function qr(x,L){return L._meridiemParse}he("H",["HH",2],0,"hour"),he("h",["hh",2],0,Ar),he("k",["kk",2],0,function(){return this.hours()||24}),he("hmm",0,0,function(){return""+Ar.apply(this)+xe(this.minutes(),2)}),he("hmmss",0,0,function(){return""+Ar.apply(this)+xe(this.minutes(),2)+xe(this.seconds(),2)}),he("Hmm",0,0,function(){return""+this.hours()+xe(this.minutes(),2)}),he("Hmmss",0,0,function(){return""+this.hours()+xe(this.minutes(),2)+xe(this.seconds(),2)}),yr("a",!0),yr("A",!1),Ut("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",Dt),ge("Hmm",ft),ge("Hmmss",Dt),un(["H","HH"],3),un(["k","kk"],function(x,L,H){var ct=kt(x);L[3]=ct===24?0:ct}),un(["a","A"],function(x,L,H){H._isPm=H._locale.isPM(x),H._meridiem=x}),un(["h","hh"],function(x,L,H){L[3]=kt(x),tt(H).bigHour=!0}),un("hmm",function(x,L,H){var ct=x.length-2;L[3]=kt(x.substr(0,ct)),L[4]=kt(x.substr(ct)),tt(H).bigHour=!0}),un("hmmss",function(x,L,H){var ct=x.length-4,Zt=x.length-2;L[3]=kt(x.substr(0,ct)),L[4]=kt(x.substr(ct,2)),L[5]=kt(x.substr(Zt)),tt(H).bigHour=!0}),un("Hmm",function(x,L,H){var ct=x.length-2;L[3]=kt(x.substr(0,ct)),L[4]=kt(x.substr(ct))}),un("Hmmss",function(x,L,H){var ct=x.length-4,Zt=x.length-2;L[3]=kt(x.substr(0,ct)),L[4]=kt(x.substr(ct,2)),L[5]=kt(x.substr(Zt))});var Nt,Mr=De("Hours",!0),Lr={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:Mt,monthsShort:vr,week:{dow:0,doy:6},weekdays:ya,weekdaysMin:Tr,weekdaysShort:Br,meridiemParse:/[ap]\.?m?\.?/i},Xn={},Qr={};function Yr(x){return x&&x.toLowerCase().replace("_","-")}function Pr(x){var L=null;if(!Xn[x]&&M&&M.exports)try{L=Nt._abbr,p(1748)("./"+x),Kr(L)}catch(H){}return Xn[x]}function Kr(x,L){var H;return x&&((H=A(L)?hr(x):ka(x,L))?Nt=H:typeof console!="undefined"&&console.warn&&console.warn("Locale "+x+" not found. Did you forget to load it?")),Nt._abbr}function ka(x,L){if(L===null)return delete Xn[x],null;var H,ct=Lr;if(L.abbr=x,Xn[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=Xn[x]._config;else if(L.parentLocale!=null)if(Xn[L.parentLocale]!=null)ct=Xn[L.parentLocale]._config;else{if((H=Pr(L.parentLocale))==null)return Qr[L.parentLocale]||(Qr[L.parentLocale]=[]),Qr[L.parentLocale].push({name:x,config:L}),null;ct=H._config}return Xn[x]=new bt(Y(ct,L)),Qr[x]&&Qr[x].forEach(function(Zt){ka(Zt.name,Zt.config)}),Kr(x),Xn[x]}function hr(x){var L;if(x&&x._locale&&x._locale._abbr&&(x=x._locale._abbr),!x)return Nt;if(!g(x)){if(L=Pr(x))return L;x=[x]}return function(H){for(var ct,Zt,Ce,Re,Xe=0;Xe<H.length;){for(ct=(Re=Yr(H[Xe]).split("-")).length,Zt=(Zt=Yr(H[Xe+1]))?Zt.split("-"):null;0<ct;){if(Ce=Pr(Re.slice(0,ct).join("-")))return Ce;if(Zt&&Zt.length>=ct&&It(Re,Zt,!0)>=ct-1)break;ct--}Xe++}return Nt}(x)}function aa(x){var L,H=x._a;return H&&tt(x).overflow===-2&&(L=H[1]<0||11<H[1]?1:H[2]<1||H[2]>Se(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,tt(x)._overflowDayOfYear&&(L<0||2<L)&&(L=2),tt(x)._overflowWeeks&&L===-1&&(L=7),tt(x)._overflowWeekday&&L===-1&&(L=8),tt(x).overflow=L),x}function oa(x,L,H){return x!=null?x:L!=null?L:H}function Li(x){var L,H,ct,Zt,Ce,Re=[];if(!x._d){var Xe,Ke;for(Xe=x,Ke=new Date(_.now()),ct=Xe._useUTC?[Ke.getUTCFullYear(),Ke.getUTCMonth(),Ke.getUTCDate()]:[Ke.getFullYear(),Ke.getMonth(),Ke.getDate()],x._w&&x._a[2]==null&&x._a[1]==null&&function(hn){var bn,Un,fn,mr,sr,$r,ai,jr;if((bn=hn._w).GG!=null||bn.W!=null||bn.E!=null)sr=1,$r=4,Un=oa(bn.GG,hn._a[0],Pn(dr(),1,4).year),fn=oa(bn.W,1),((mr=oa(bn.E,1))<1||7<mr)&&(jr=!0);else{sr=hn._locale._week.dow,$r=hn._locale._week.doy;var Es=Pn(dr(),sr,$r);Un=oa(bn.gg,hn._a[0],Es.year),fn=oa(bn.w,Es.week),bn.d!=null?((mr=bn.d)<0||6<mr)&&(jr=!0):bn.e!=null?(mr=bn.e+sr,(bn.e<0||6<bn.e)&&(jr=!0)):mr=sr}fn<1||fn>zn(Un,sr,$r)?tt(hn)._overflowWeeks=!0:jr!=null?tt(hn)._overflowWeekday=!0:(ai=En(Un,fn,mr,sr,$r),hn._a[0]=ai.year,hn._dayOfYear=ai.dayOfYear)}(x),x._dayOfYear!=null&&(Ce=oa(x._a[0],ct[0]),(x._dayOfYear>pn(Ce)||x._dayOfYear===0)&&(tt(x)._overflowDayOfYear=!0),H=Gn(Ce,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]=Re[L]=ct[L];for(;L<7;L++)x._a[L]=Re[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?Gn:function(hn,bn,Un,fn,mr,sr,$r){var ai;return hn<100&&0<=hn?(ai=new Date(hn+400,bn,Un,fn,mr,sr,$r),isFinite(ai.getFullYear())&&ai.setFullYear(hn)):ai=new Date(hn,bn,Un,fn,mr,sr,$r),ai}).apply(null,Re),Zt=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!==Zt&&(tt(x).weekdayMismatch=!0)}}var an=/^\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)?)?$/,Qn=/^\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)?)?$/,on=/Z|[+-]\d\d(?::?\d\d)?/,rn=[["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}/]],rr=[["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/]],$t=/^\/?Date\((\-?\d+)/i;function Ci(x){var L,H,ct,Zt,Ce,Re,Xe=x._i,Ke=an.exec(Xe)||Qn.exec(Xe);if(Ke){for(tt(x).iso=!0,L=0,H=rn.length;L<H;L++)if(rn[L][1].exec(Ke[1])){Zt=rn[L][0],ct=rn[L][2]!==!1;break}if(Zt==null)return void(x._isValid=!1);if(Ke[3]){for(L=0,H=rr.length;L<H;L++)if(rr[L][1].exec(Ke[3])){Ce=(Ke[2]||" ")+rr[L][0];break}if(Ce==null)return void(x._isValid=!1)}if(!ct&&Ce!=null)return void(x._isValid=!1);if(Ke[4]){if(!on.exec(Ke[4]))return void(x._isValid=!1);Re="Z"}x._f=Zt+(Ce||"")+(Re||""),Ur(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 Ir(x){var L,H,ct,Zt=Kt.exec(x._i.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,""));if(Zt){var Ce=function(Re,Xe,Ke,hn,bn,Un){var fn=[function(mr){var sr=parseInt(mr,10);return sr<=49?2e3+sr:sr<=999?1900+sr:sr}(Re),vr.indexOf(Xe),parseInt(Ke,10),parseInt(hn,10),parseInt(bn,10)];return Un&&fn.push(parseInt(Un,10)),fn}(Zt[4],Zt[3],Zt[2],Zt[5],Zt[6],Zt[7]);if(H=Ce,ct=x,(L=Zt[1])&&Br.indexOf(L)!==new Date(H[0],H[1],H[2]).getDay()&&(tt(ct).weekdayMismatch=!0,!(ct._isValid=!1)))return;x._a=Ce,x._tzm=function(Re,Xe,Ke){if(Re)return xr[Re];if(Xe)return 0;var hn=parseInt(Ke,10),bn=hn%100;return(hn-bn)/100*60+bn}(Zt[8],Zt[9],Zt[10]),x._d=Gn.apply(null,x._a),x._d.setUTCMinutes(x._d.getUTCMinutes()-x._tzm),tt(x).rfc2822=!0}else x._isValid=!1}function Ur(x){if(x._f!==_.ISO_8601)if(x._f!==_.RFC_2822){x._a=[],tt(x).empty=!0;var L,H,ct,Zt,Ce,Re,Xe,Ke,hn=""+x._i,bn=hn.length,Un=0;for(ct=re(x._f,x._locale).match(Ae)||[],L=0;L<ct.length;L++)Zt=ct[L],(H=(hn.match(ie(Zt,x))||[])[0])&&(0<(Ce=hn.substr(0,hn.indexOf(H))).length&&tt(x).unusedInput.push(Ce),hn=hn.slice(hn.indexOf(H)+H.length),Un+=H.length),kn[Zt]?(H?tt(x).empty=!1:tt(x).unusedTokens.push(Zt),Re=Zt,Ke=x,(Xe=H)!=null&&P(Ie,Re)&&Ie[Re](Xe,Ke._a,Ke,Re)):x._strict&&!H&&tt(x).unusedTokens.push(Zt);tt(x).charsLeftOver=bn-Un,0<hn.length&&tt(x).unusedInput.push(hn),x._a[3]<=12&&tt(x).bigHour===!0&&0<x._a[3]&&(tt(x).bigHour=void 0),tt(x).parsedDateParts=x._a.slice(0),tt(x).meridiem=x._meridiem,x._a[3]=function(fn,mr,sr){var $r;return sr==null?mr:fn.meridiemHour!=null?fn.meridiemHour(mr,sr):(fn.isPM!=null&&(($r=fn.isPM(sr))&&mr<12&&(mr+=12),$r||mr!==12||(mr=0)),mr)}(x._locale,x._a[3],x._meridiem),Li(x),aa(x)}else Ir(x);else Ci(x)}function pi(x){var L,H,ct,Zt,Ce=x._i,Re=x._f;return x._locale=x._locale||hr(x._l),Ce===null||Re===void 0&&Ce===""?et({nullInput:!0}):(typeof Ce=="string"&&(x._i=Ce=x._locale.preparse(Ce)),Qt(Ce)?new vt(aa(Ce)):(F(Ce)?x._d=Ce:g(Re)?function(Xe){var Ke,hn,bn,Un,fn;if(Xe._f.length===0)return tt(Xe).invalidFormat=!0,Xe._d=new Date(NaN);for(Un=0;Un<Xe._f.length;Un++)fn=0,Ke=at({},Xe),Xe._useUTC!=null&&(Ke._useUTC=Xe._useUTC),Ke._f=Xe._f[Un],Ur(Ke),ht(Ke)&&(fn+=tt(Ke).charsLeftOver,fn+=10*tt(Ke).unusedTokens.length,tt(Ke).score=fn,(bn==null||fn<bn)&&(bn=fn,hn=Ke));V(Xe,hn||Ke)}(x):Re?Ur(x):A(H=(L=x)._i)?L._d=new Date(_.now()):F(H)?L._d=new Date(H.valueOf()):typeof H=="string"?(ct=L,(Zt=$t.exec(ct._i))===null?(Ci(ct),ct._isValid===!1&&(delete ct._isValid,Ir(ct),ct._isValid===!1&&(delete ct._isValid,_.createFromInputFallback(ct)))):ct._d=new Date(+Zt[1])):g(H)?(L._a=O(H.slice(0),function(Xe){return parseInt(Xe,10)}),Li(L)):E(H)?function(Xe){if(!Xe._d){var Ke=Ye(Xe._i);Xe._a=O([Ke.year,Ke.month,Ke.day||Ke.date,Ke.hour,Ke.minute,Ke.second,Ke.millisecond],function(hn){return hn&&parseInt(hn,10)}),Li(Xe)}}(L):T(H)?L._d=new Date(H):_.createFromInputFallback(L),ht(x)||(x._d=null),x))}function wa(x,L,H,ct,Zt){var Ce,Re={};return H!==!0&&H!==!1||(ct=H,H=void 0),(E(x)&&function(Xe){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(Xe).length===0;var Ke;for(Ke in Xe)if(Xe.hasOwnProperty(Ke))return!1;return!0}(x)||g(x)&&x.length===0)&&(x=void 0),Re._isAMomentObject=!0,Re._useUTC=Re._isUTC=Zt,Re._l=H,Re._i=x,Re._f=L,Re._strict=ct,(Ce=new vt(aa(pi(Re))))._nextDay&&(Ce.add(1,"d"),Ce._nextDay=void 0),Ce}function dr(x,L,H,ct){return wa(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 _n=mt("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var x=dr.apply(null,arguments);return this.isValid()&&x.isValid()?x<this?this:x:et()}),sa=mt("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var x=dr.apply(null,arguments);return this.isValid()&&x.isValid()?this<x?this:x:et()});function In(x,L){var H,ct;if(L.length===1&&g(L[0])&&(L=L[0]),!L.length)return dr();for(H=L[0],ct=1;ct<L.length;++ct)L[ct].isValid()&&!L[ct][x](H)||(H=L[ct]);return H}var wi=["year","quarter","month","week","day","hour","minute","second","millisecond"];function ui(x){var L=Ye(x),H=L.year||0,ct=L.quarter||0,Zt=L.month||0,Ce=L.week||L.isoWeek||0,Re=L.day||0,Xe=L.hour||0,Ke=L.minute||0,hn=L.second||0,bn=L.millisecond||0;this._isValid=function(Un){for(var fn in Un)if(Dn.call(wi,fn)===-1||Un[fn]!=null&&isNaN(Un[fn]))return!1;for(var mr=!1,sr=0;sr<wi.length;++sr)if(Un[wi[sr]]){if(mr)return!1;parseFloat(Un[wi[sr]])!==kt(Un[wi[sr]])&&(mr=!0)}return!0}(L),this._milliseconds=+bn+1e3*hn+6e4*Ke+1e3*Xe*60*60,this._days=+Re+7*Ce,this._months=+Zt+3*ct+12*H,this._data={},this._locale=hr(),this._bubble()}function Ii(x){return x instanceof ui}function fr(x){return x<0?-1*Math.round(-1*x):Math.round(x)}function Jr(x,L){he(x,0,0,function(){var H=this.utcOffset(),ct="+";return H<0&&(H=-H,ct="-"),ct+xe(~~(H/60),2)+L+xe(~~H%60,2)})}Jr("Z",":"),Jr("ZZ",""),ge("Z",Ee),ge("ZZ",Ee),un(["Z","ZZ"],function(x,L,H){H._useUTC=!0,H._tzm=Vr(Ee,x)});var Hr=/([\+\-]|\d\d)/gi;function Vr(x,L){var H=(L||"").match(x);if(H===null)return null;var ct=((H[H.length-1]||[])+"").match(Hr)||["-",0,0],Zt=60*ct[1]+kt(ct[2]);return Zt===0?0:ct[0]==="+"?Zt:-Zt}function ii(x,L){var H,ct;return L._isUTC?(H=L.clone(),ct=(Qt(x)||F(x)?x.valueOf():dr(x).valueOf())-H.valueOf(),H._d.setTime(H._d.valueOf()+ct),_.updateOffset(H,!1),H):dr(x).local()}function Ai(x){return 15*-Math.round(x._d.getTimezoneOffset()/15)}function Gr(){return!!this.isValid()&&this._isUTC&&this._offset===0}_.updateOffset=function(){};var Ta=/^(\-|\+)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/,Ia=/^(-|\+)?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,Zt,Ce=x,Re=null;return Ii(x)?Ce={ms:x._milliseconds,d:x._days,M:x._months}:T(x)?(Ce={},L?Ce[L]=x:Ce.milliseconds=x):(Re=Ta.exec(x))?(H=Re[1]==="-"?-1:1,Ce={y:0,d:kt(Re[2])*H,h:kt(Re[3])*H,m:kt(Re[4])*H,s:kt(Re[5])*H,ms:kt(fr(1e3*Re[6]))*H}):(Re=Ia.exec(x))?(H=Re[1]==="-"?-1:1,Ce={y:ti(Re[2],H),M:ti(Re[3],H),w:ti(Re[4],H),d:ti(Re[5],H),h:ti(Re[6],H),m:ti(Re[7],H),s:ti(Re[8],H)}):Ce==null?Ce={}:typeof Ce=="object"&&("from"in Ce||"to"in Ce)&&(Zt=function(Xe,Ke){var hn;return Xe.isValid()&&Ke.isValid()?(Ke=ii(Ke,Xe),Xe.isBefore(Ke)?hn=ei(Xe,Ke):((hn=ei(Ke,Xe)).milliseconds=-hn.milliseconds,hn.months=-hn.months),hn):{milliseconds:0,months:0}}(dr(Ce.from),dr(Ce.to)),(Ce={}).ms=Zt.milliseconds,Ce.M=Zt.months),ct=new ui(Ce),Ii(x)&&P(x,"_locale")&&(ct._locale=x._locale),ct}function ti(x,L){var H=x&&parseFloat(x.replace(",","."));return(isNaN(H)?0:H)*L}function ei(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 Lo(x,L){return function(H,ct){var Zt;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."),Zt=H,H=ct,ct=Zt),Wa(this,pr(H=typeof H=="string"?+H:H,ct),x),this}}function Wa(x,L,H,ct){var Zt=L._milliseconds,Ce=fr(L._days),Re=fr(L._months);x.isValid()&&(ct=ct==null||ct,Re&&zt(x,Qe(x,"Month")+Re*H),Ce&&Ge(x,"Date",Qe(x,"Date")+Ce*H),Zt&&x._d.setTime(x._d.valueOf()+Zt*H),ct&&_.updateOffset(x,Ce||Re))}pr.fn=ui.prototype,pr.invalid=function(){return pr(NaN)};var ca=Lo(1,"add"),uc=Lo(-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 We(x){var L;return x===void 0?this._locale._abbr:((L=hr(x))!=null&&(this._locale=L),this)}_.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",_.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var mn=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 or(){return this._locale}var hi=126227808e5;function Er(x,L){return(x%L+L)%L}function gi(x,L,H){return x<100&&0<=x?new Date(x+400,L,H)-hi:new Date(x,L,H).valueOf()}function Fa(x,L,H){return x<100&&0<=x?Date.UTC(x+400,L,H)-hi:Date.UTC(x,L,H)}function yi(x,L){he(0,[x,x.length],0,L)}function Mi(x,L,H,ct,Zt){var Ce;return x==null?Pn(this,ct,Zt).year:((Ce=zn(x,ct,Zt))<L&&(L=Ce),function(Re,Xe,Ke,hn,bn){var Un=En(Re,Xe,Ke,hn,bn),fn=Gn(Un.year,0,Un.dayOfYear);return this.year(fn.getUTCFullYear()),this.month(fn.getUTCMonth()),this.date(fn.getUTCDate()),this}.call(this,x,L,H,ct,Zt))}he(0,["gg",2],0,function(){return this.weekYear()%100}),he(0,["GG",2],0,function(){return this.isoWeekYear()%100}),yi("gggg","weekYear"),yi("ggggg","weekYear"),yi("GGGG","isoWeekYear"),yi("GGGGG","isoWeekYear"),Ut("weekYear","gg"),Ut("isoWeekYear","GG"),pe("weekYear",1),pe("isoWeekYear",1),ge("G",cn),ge("g",cn),ge("GG",dt,se),ge("gg",dt,se),ge("GGGG",Oe,ee),ge("gggg",Oe,ee),ge("GGGGG",en,st),ge("ggggg",en,st),ze(["gggg","ggggg","GGGG","GGGGG"],function(x,L,H,ct){L[ct.substr(0,2)]=kt(x)}),ze(["gg","GG"],function(x,L,H,ct){L[ct]=_.parseTwoDigitYear(x)}),he("Q",0,"Qo","quarter"),Ut("quarter","Q"),pe("quarter",7),ge("Q",Xt),un("Q",function(x,L){L[1]=3*(kt(x)-1)}),he("D",["DD",2],"Do","date"),Ut("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}),un(["D","DD"],2),un("Do",function(x,L){L[2]=kt(x.match(dt)[0])});var Io=De("Date",!0);he("DDD",["DDDD",3],"DDDo","dayOfYear"),Ut("dayOfYear","DDD"),pe("dayOfYear",4),ge("DDD",ue),ge("DDDD",St),un(["DDD","DDDD"],function(x,L,H){H._dayOfYear=kt(x)}),he("m",["mm",2],0,"minute"),Ut("minute","m"),pe("minute",14),ge("m",dt),ge("mm",dt,se),un(["m","mm"],4);var hc=De("Minutes",!1);he("s",["ss",2],0,"second"),Ut("second","s"),pe("second",15),ge("s",dt),ge("ss",dt,se),un(["s","ss"],5);var Ra,fc=De("Seconds",!1);for(he("S",0,0,function(){return~~(this.millisecond()/100)}),he(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),he(0,["SSS",3],0,"millisecond"),he(0,["SSSS",4],0,function(){return 10*this.millisecond()}),he(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),he(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),he(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),he(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),he(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),Ut("millisecond","ms"),pe("millisecond",16),ge("S",ue,Xt),ge("SS",ue,se),ge("SSS",ue,St),Ra="SSSS";Ra.length<=9;Ra+="S")ge(Ra,$e);function ks(x,L){L[6]=kt(1e3*("0."+x))}for(Ra="S";Ra.length<=9;Ra+="S")un(Ra,ks);var hu=De("Milliseconds",!1);he("z",0,0,"zoneAbbr"),he("zz",0,0,"zoneName");var sn=vt.prototype;function ul(x){return x}sn.add=ca,sn.calendar=function(x,L){var H=x||dr(),ct=ii(H,this).startOf("day"),Zt=_.calendarFormat(this,ct)||"sameElse",Ce=L&&(yt(L[Zt])?L[Zt].call(this,H):L[Zt]);return this.format(Ce||this.localeData().calendar(Zt,this,dr(H)))},sn.clone=function(){return new vt(this)},sn.diff=function(x,L,H){var ct,Zt,Ce;if(!this.isValid())return NaN;if(!(ct=ii(x,this)).isValid())return NaN;switch(Zt=6e4*(ct.utcOffset()-this.utcOffset()),L=me(L)){case"year":Ce=Ht(this,ct)/12;break;case"month":Ce=Ht(this,ct);break;case"quarter":Ce=Ht(this,ct)/3;break;case"second":Ce=(this-ct)/1e3;break;case"minute":Ce=(this-ct)/6e4;break;case"hour":Ce=(this-ct)/36e5;break;case"day":Ce=(this-ct-Zt)/864e5;break;case"week":Ce=(this-ct-Zt)/6048e5;break;default:Ce=this-ct}return H?Ce:Vt(Ce)},sn.endOf=function(x){var L;if((x=me(x))===void 0||x==="millisecond"||!this.isValid())return this;var H=this._isUTC?Fa:gi;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},sn.format=function(x){x||(x=this.isUtc()?_.defaultFormatUtc:_.defaultFormat);var L=Ze(this,x);return this.localeData().postformat(L)},sn.from=function(x,L){return this.isValid()&&(Qt(x)&&x.isValid()||dr(x).isValid())?pr({to:this,from:x}).locale(this.locale()).humanize(!L):this.localeData().invalidDate()},sn.fromNow=function(x){return this.from(dr(),x)},sn.to=function(x,L){return this.isValid()&&(Qt(x)&&x.isValid()||dr(x).isValid())?pr({from:this,to:x}).locale(this.locale()).humanize(!L):this.localeData().invalidDate()},sn.toNow=function(x){return this.to(dr(),x)},sn.get=function(x){return yt(this[x=me(x)])?this[x]():this},sn.invalidAt=function(){return tt(this).overflow},sn.isAfter=function(x,L){var H=Qt(x)?x:dr(x);return!(!this.isValid()||!H.isValid())&&((L=me(L)||"millisecond")==="millisecond"?this.valueOf()>H.valueOf():H.valueOf()<this.clone().startOf(L).valueOf())},sn.isBefore=function(x,L){var H=Qt(x)?x:dr(x);return!(!this.isValid()||!H.isValid())&&((L=me(L)||"millisecond")==="millisecond"?this.valueOf()<H.valueOf():this.clone().endOf(L).valueOf()<H.valueOf())},sn.isBetween=function(x,L,H,ct){var Zt=Qt(x)?x:dr(x),Ce=Qt(L)?L:dr(L);return!!(this.isValid()&&Zt.isValid()&&Ce.isValid())&&((ct=ct||"()")[0]==="("?this.isAfter(Zt,H):!this.isBefore(Zt,H))&&(ct[1]===")"?this.isBefore(Ce,H):!this.isAfter(Ce,H))},sn.isSame=function(x,L){var H,ct=Qt(x)?x:dr(x);return!(!this.isValid()||!ct.isValid())&&((L=me(L)||"millisecond")==="millisecond"?this.valueOf()===ct.valueOf():(H=ct.valueOf(),this.clone().startOf(L).valueOf()<=H&&H<=this.clone().endOf(L).valueOf()))},sn.isSameOrAfter=function(x,L){return this.isSame(x,L)||this.isAfter(x,L)},sn.isSameOrBefore=function(x,L){return this.isSame(x,L)||this.isBefore(x,L)},sn.isValid=function(){return ht(this)},sn.lang=mn,sn.locale=We,sn.localeData=or,sn.max=sa,sn.min=_n,sn.parsingFlags=function(){return V({},tt(this))},sn.set=function(x,L){if(typeof x=="object")for(var H=function(Zt){var Ce=[];for(var Re in Zt)Ce.push({unit:Re,priority:ke[Re]});return Ce.sort(function(Xe,Ke){return Xe.priority-Ke.priority}),Ce}(x=Ye(x)),ct=0;ct<H.length;ct++)this[H[ct].unit](x[H[ct].unit]);else if(yt(this[x=me(x)]))return this[x](L);return this},sn.startOf=function(x){var L;if((x=me(x))===void 0||x==="millisecond"||!this.isValid())return this;var H=this._isUTC?Fa:gi;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},sn.subtract=uc,sn.toArray=function(){var x=this;return[x.year(),x.month(),x.date(),x.hour(),x.minute(),x.second(),x.millisecond()]},sn.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()}},sn.toDate=function(){return new Date(this.valueOf())},sn.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()?Ze(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",Ze(H,"Z")):Ze(H,L?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},sn.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",Zt=L+'[")]';return this.format(H+ct+"-MM-DD[T]HH:mm:ss.SSS"+Zt)},sn.toJSON=function(){return this.isValid()?this.toISOString():null},sn.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},sn.unix=function(){return Math.floor(this.valueOf()/1e3)},sn.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},sn.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},sn.year=Tn,sn.isLeapYear=function(){return tr(this.year())},sn.weekYear=function(x){return Mi.call(this,x,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},sn.isoWeekYear=function(x){return Mi.call(this,x,this.isoWeek(),this.isoWeekday(),1,4)},sn.quarter=sn.quarters=function(x){return x==null?Math.ceil((this.month()+1)/3):this.month(3*(x-1)+this.month()%3)},sn.month=Wn,sn.daysInMonth=function(){return Se(this.year(),this.month())},sn.week=sn.weeks=function(x){var L=this.localeData().week(this);return x==null?L:this.add(7*(x-L),"d")},sn.isoWeek=sn.isoWeeks=function(x){var L=Pn(this,1,4).week;return x==null?L:this.add(7*(x-L),"d")},sn.weeksInYear=function(){var x=this.localeData()._week;return zn(this.year(),x.dow,x.doy)},sn.isoWeeksInYear=function(){return zn(this.year(),1,4)},sn.date=Io,sn.day=sn.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},sn.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")},sn.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)},sn.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")},sn.hour=sn.hours=Mr,sn.minute=sn.minutes=hc,sn.second=sn.seconds=fc,sn.millisecond=sn.milliseconds=hu,sn.utcOffset=function(x,L,H){var ct,Zt=this._offset||0;if(!this.isValid())return x!=null?this:NaN;if(x==null)return this._isUTC?Zt:Ai(this);if(typeof x=="string"){if((x=Vr(Ee,x))===null)return this}else Math.abs(x)<16&&!H&&(x*=60);return!this._isUTC&&L&&(ct=Ai(this)),this._offset=x,this._isUTC=!0,ct!=null&&this.add(ct,"m"),Zt!==x&&(!L||this._changeInProgress?Wa(this,pr(x-Zt,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,_.updateOffset(this,!0),this._changeInProgress=null)),this},sn.utc=function(x){return this.utcOffset(0,x)},sn.local=function(x){return this._isUTC&&(this.utcOffset(0,x),this._isUTC=!1,x&&this.subtract(Ai(this),"m")),this},sn.parseZone=function(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var x=Vr(Fe,this._i);x!=null?this.utcOffset(x):this.utcOffset(0,!0)}return this},sn.hasAlignedHourOffset=function(x){return!!this.isValid()&&(x=x?dr(x).utcOffset():0,(this.utcOffset()-x)%60==0)},sn.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},sn.isLocal=function(){return!!this.isValid()&&!this._isUTC},sn.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},sn.isUtc=Gr,sn.isUTC=Gr,sn.zoneAbbr=function(){return this._isUTC?"UTC":""},sn.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},sn.dates=mt("dates accessor is deprecated. Use date instead.",Io),sn.months=mt("months accessor is deprecated. Use month instead",Wn),sn.years=mt("years accessor is deprecated. Use year instead",Tn),sn.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()}),sn.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=pi(x))._a){var L=x._isUTC?J(x._a):dr(x._a);this._isDSTShifted=this.isValid()&&0<It(x._a,L.toArray())}else this._isDSTShifted=!1;return this._isDSTShifted});var Dr=bt.prototype;function so(x,L,H,ct){var Zt=hr(),Ce=J().set(ct,L);return Zt[H](Ce,x)}function ma(x,L,H){if(T(x)&&(L=x,x=void 0),x=x||"",L!=null)return so(x,L,H,"month");var ct,Zt=[];for(ct=0;ct<12;ct++)Zt[ct]=so(x,ct,H,"month");return Zt}function qa(x,L,H,ct){typeof x=="boolean"?T(L)&&(H=L,L=void 0):(L=x,x=!1,T(H=L)&&(H=L,L=void 0)),L=L||"";var Zt,Ce=hr(),Re=x?Ce._week.dow:0;if(H!=null)return so(L,(H+Re)%7,ct,"day");var Xe=[];for(Zt=0;Zt<7;Zt++)Xe[Zt]=so(L,(Zt+Re)%7,ct,"day");return Xe}Dr.calendar=function(x,L,H){var ct=this._calendar[x]||this._calendar.sameElse;return yt(ct)?ct.call(L,H):ct},Dr.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])},Dr.invalidDate=function(){return this._invalidDate},Dr.ordinal=function(x){return this._ordinal.replace("%d",x)},Dr.preparse=ul,Dr.postformat=ul,Dr.relativeTime=function(x,L,H,ct){var Zt=this._relativeTime[H];return yt(Zt)?Zt(x,L,H,ct):Zt.replace(/%d/i,x)},Dr.pastFuture=function(x,L){var H=this._relativeTime[0<x?"future":"past"];return yt(H)?H(L):H.replace(/%s/i,L)},Dr.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)},Dr.months=function(x,L){return x?g(this._months)?this._months[x.month()]:this._months[(this._months.isFormat||vn).test(L)?"format":"standalone"][x.month()]:g(this._months)?this._months:this._months.standalone},Dr.monthsShort=function(x,L){return x?g(this._monthsShort)?this._monthsShort[x.month()]:this._monthsShort[vn.test(L)?"format":"standalone"][x.month()]:g(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},Dr.monthsParse=function(x,L,H){var ct,Zt,Ce;if(this._monthsParseExact)return function(Re,Xe,Ke){var hn,bn,Un,fn=Re.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],hn=0;hn<12;++hn)Un=J([2e3,hn]),this._shortMonthsParse[hn]=this.monthsShort(Un,"").toLocaleLowerCase(),this._longMonthsParse[hn]=this.months(Un,"").toLocaleLowerCase();return Ke?Xe==="MMM"?(bn=Dn.call(this._shortMonthsParse,fn))!==-1?bn:null:(bn=Dn.call(this._longMonthsParse,fn))!==-1?bn:null:Xe==="MMM"?(bn=Dn.call(this._shortMonthsParse,fn))!==-1||(bn=Dn.call(this._longMonthsParse,fn))!==-1?bn:null:(bn=Dn.call(this._longMonthsParse,fn))!==-1||(bn=Dn.call(this._shortMonthsParse,fn))!==-1?bn:null}.call(this,x,L,H);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),ct=0;ct<12;ct++)if(Zt=J([2e3,ct]),H&&!this._longMonthsParse[ct]&&(this._longMonthsParse[ct]=new RegExp("^"+this.months(Zt,"").replace(".","")+"$","i"),this._shortMonthsParse[ct]=new RegExp("^"+this.monthsShort(Zt,"").replace(".","")+"$","i")),H||this._monthsParse[ct]||(Ce="^"+this.months(Zt,"")+"|^"+this.monthsShort(Zt,""),this._monthsParse[ct]=new RegExp(Ce.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},Dr.monthsRegex=function(x){return this._monthsParseExact?(P(this,"_monthsRegex")||Mn.call(this),x?this._monthsStrictRegex:this._monthsRegex):(P(this,"_monthsRegex")||(this._monthsRegex=Hn),this._monthsStrictRegex&&x?this._monthsStrictRegex:this._monthsRegex)},Dr.monthsShortRegex=function(x){return this._monthsParseExact?(P(this,"_monthsRegex")||Mn.call(this),x?this._monthsShortStrictRegex:this._monthsShortRegex):(P(this,"_monthsShortRegex")||(this._monthsShortRegex=jn),this._monthsShortStrictRegex&&x?this._monthsShortStrictRegex:this._monthsShortRegex)},Dr.week=function(x){return Pn(x,this._week.dow,this._week.doy).week},Dr.firstDayOfYear=function(){return this._week.doy},Dr.firstDayOfWeek=function(){return this._week.dow},Dr.weekdays=function(x,L){var H=g(this._weekdays)?this._weekdays:this._weekdays[x&&x!==!0&&this._weekdays.isFormat.test(L)?"format":"standalone"];return x===!0?Yn(H,this._week.dow):x?H[x.day()]:H},Dr.weekdaysMin=function(x){return x===!0?Yn(this._weekdaysMin,this._week.dow):x?this._weekdaysMin[x.day()]:this._weekdaysMin},Dr.weekdaysShort=function(x){return x===!0?Yn(this._weekdaysShort,this._week.dow):x?this._weekdaysShort[x.day()]:this._weekdaysShort},Dr.weekdaysParse=function(x,L,H){var ct,Zt,Ce;if(this._weekdaysParseExact)return function(Re,Xe,Ke){var hn,bn,Un,fn=Re.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],hn=0;hn<7;++hn)Un=J([2e3,1]).day(hn),this._minWeekdaysParse[hn]=this.weekdaysMin(Un,"").toLocaleLowerCase(),this._shortWeekdaysParse[hn]=this.weekdaysShort(Un,"").toLocaleLowerCase(),this._weekdaysParse[hn]=this.weekdays(Un,"").toLocaleLowerCase();return Ke?Xe==="dddd"?(bn=Dn.call(this._weekdaysParse,fn))!==-1?bn:null:Xe==="ddd"?(bn=Dn.call(this._shortWeekdaysParse,fn))!==-1?bn:null:(bn=Dn.call(this._minWeekdaysParse,fn))!==-1?bn:null:Xe==="dddd"?(bn=Dn.call(this._weekdaysParse,fn))!==-1||(bn=Dn.call(this._shortWeekdaysParse,fn))!==-1||(bn=Dn.call(this._minWeekdaysParse,fn))!==-1?bn:null:Xe==="ddd"?(bn=Dn.call(this._shortWeekdaysParse,fn))!==-1||(bn=Dn.call(this._weekdaysParse,fn))!==-1||(bn=Dn.call(this._minWeekdaysParse,fn))!==-1?bn:null:(bn=Dn.call(this._minWeekdaysParse,fn))!==-1||(bn=Dn.call(this._weekdaysParse,fn))!==-1||(bn=Dn.call(this._shortWeekdaysParse,fn))!==-1?bn:null}.call(this,x,L,H);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),ct=0;ct<7;ct++)if(Zt=J([2e3,1]).day(ct),H&&!this._fullWeekdaysParse[ct]&&(this._fullWeekdaysParse[ct]=new RegExp("^"+this.weekdays(Zt,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[ct]=new RegExp("^"+this.weekdaysShort(Zt,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[ct]=new RegExp("^"+this.weekdaysMin(Zt,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[ct]||(Ce="^"+this.weekdays(Zt,"")+"|^"+this.weekdaysShort(Zt,"")+"|^"+this.weekdaysMin(Zt,""),this._weekdaysParse[ct]=new RegExp(Ce.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},Dr.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)},Dr.weekdaysShortRegex=function(x){return this._weekdaysParseExact?(P(this,"_weekdaysRegex")||_r.call(this),x?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(P(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=li),this._weekdaysShortStrictRegex&&x?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},Dr.weekdaysMinRegex=function(x){return this._weekdaysParseExact?(P(this,"_weekdaysRegex")||_r.call(this),x?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(P(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Bn),this._weekdaysMinStrictRegex&&x?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},Dr.isPM=function(x){return(x+"").toLowerCase().charAt(0)==="p"},Dr.meridiem=function(x,L,H){return 11<x?H?"pm":"PM":H?"am":"AM"},Kr("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(x){var L=x%10;return x+(kt(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.",Kr),_.langData=mt("moment.langData is deprecated. Use moment.localeData instead.",hr);var Di=Math.abs;function Fo(x,L,H,ct){var Zt=pr(L,H);return x._milliseconds+=ct*Zt._milliseconds,x._days+=ct*Zt._days,x._months+=ct*Zt._months,x._bubble()}function dc(x){return x<0?Math.floor(x):Math.ceil(x)}function pc(x){return 4800*x/146097}function gc(x){return 146097*x/4800}function Ea(x){return function(){return this.as(x)}}var fu=Ea("ms"),yc=Ea("s"),Sa=Ea("m"),ws=Ea("h"),hl=Ea("d"),Qi=Ea("w"),Ro=Ea("M"),mi=Ea("Q"),rs=Ea("y");function Vn(x){return function(){return this.isValid()?this._data[x]:NaN}}var kr=Vn("milliseconds"),fl=Vn("seconds"),Po=Vn("minutes"),Ts=Vn("hours"),co=Vn("days"),lo=Vn("months"),uo=Vn("years"),zi=Math.round,Ni={ss:44,s:45,m:45,h:22,d:26,M:11},xn=Math.abs;function Ki(x){return(0<x)-(x<0)||+x}function ba(){if(!this.isValid())return this.localeData().invalidDate();var x,L,H=xn(this._milliseconds)/1e3,ct=xn(this._days),Zt=xn(this._months);L=Vt((x=Vt(H/60))/60),H%=60,x%=60;var Ce=Vt(Zt/12),Re=Zt%=12,Xe=ct,Ke=L,hn=x,bn=H?H.toFixed(3).replace(/\.?0+$/,""):"",Un=this.asSeconds();if(!Un)return"P0D";var fn=Un<0?"-":"",mr=Ki(this._months)!==Ki(Un)?"-":"",sr=Ki(this._days)!==Ki(Un)?"-":"",$r=Ki(this._milliseconds)!==Ki(Un)?"-":"";return fn+"P"+(Ce?mr+Ce+"Y":"")+(Re?mr+Re+"M":"")+(Xe?sr+Xe+"D":"")+(Ke||hn||bn?"T":"")+(Ke?$r+Ke+"H":"")+(hn?$r+hn+"M":"")+(bn?$r+bn+"S":"")}var Kn=ui.prototype;return Kn.isValid=function(){return this._isValid},Kn.abs=function(){var x=this._data;return this._milliseconds=Di(this._milliseconds),this._days=Di(this._days),this._months=Di(this._months),x.milliseconds=Di(x.milliseconds),x.seconds=Di(x.seconds),x.minutes=Di(x.minutes),x.hours=Di(x.hours),x.months=Di(x.months),x.years=Di(x.years),this},Kn.add=function(x,L){return Fo(this,x,L,1)},Kn.subtract=function(x,L){return Fo(this,x,L,-1)},Kn.as=function(x){if(!this.isValid())return NaN;var L,H,ct=this._milliseconds;if((x=me(x))==="month"||x==="quarter"||x==="year")switch(L=this._days+ct/864e5,H=this._months+pc(L),x){case"month":return H;case"quarter":return H/3;case"year":return H/12}else switch(L=this._days+Math.round(gc(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)}},Kn.asMilliseconds=fu,Kn.asSeconds=yc,Kn.asMinutes=Sa,Kn.asHours=ws,Kn.asDays=hl,Kn.asWeeks=Qi,Kn.asMonths=Ro,Kn.asQuarters=mi,Kn.asYears=rs,Kn.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*kt(this._months/12):NaN},Kn._bubble=function(){var x,L,H,ct,Zt,Ce=this._milliseconds,Re=this._days,Xe=this._months,Ke=this._data;return 0<=Ce&&0<=Re&&0<=Xe||Ce<=0&&Re<=0&&Xe<=0||(Ce+=864e5*dc(gc(Xe)+Re),Xe=Re=0),Ke.milliseconds=Ce%1e3,x=Vt(Ce/1e3),Ke.seconds=x%60,L=Vt(x/60),Ke.minutes=L%60,H=Vt(L/60),Ke.hours=H%24,Xe+=Zt=Vt(pc(Re+=Vt(H/24))),Re-=dc(gc(Zt)),ct=Vt(Xe/12),Xe%=12,Ke.days=Re,Ke.months=Xe,Ke.years=ct,this},Kn.clone=function(){return pr(this)},Kn.get=function(x){return x=me(x),this.isValid()?this[x+"s"]():NaN},Kn.milliseconds=kr,Kn.seconds=fl,Kn.minutes=Po,Kn.hours=Ts,Kn.days=co,Kn.weeks=function(){return Vt(this.days()/7)},Kn.months=lo,Kn.years=uo,Kn.humanize=function(x){if(!this.isValid())return this.localeData().invalidDate();var L,H,ct,Zt,Ce,Re,Xe,Ke,hn,bn,Un=this.localeData(),fn=(L=!x,H=Un,ct=pr(this).abs(),Zt=zi(ct.as("s")),Ce=zi(ct.as("m")),Re=zi(ct.as("h")),Xe=zi(ct.as("d")),Ke=zi(ct.as("M")),hn=zi(ct.as("y")),(bn=Zt<=Ni.ss&&["s",Zt]||Zt<Ni.s&&["ss",Zt]||Ce<=1&&["m"]||Ce<Ni.m&&["mm",Ce]||Re<=1&&["h"]||Re<Ni.h&&["hh",Re]||Xe<=1&&["d"]||Xe<Ni.d&&["dd",Xe]||Ke<=1&&["M"]||Ke<Ni.M&&["MM",Ke]||hn<=1&&["y"]||["yy",hn])[2]=L,bn[3]=0<+this,bn[4]=H,function(mr,sr,$r,ai,jr){return jr.relativeTime(sr||1,!!$r,mr,ai)}.apply(null,bn));return x&&(fn=Un.pastFuture(+this,fn)),Un.postformat(fn)},Kn.toISOString=ba,Kn.toString=ba,Kn.toJSON=ba,Kn.locale=We,Kn.localeData=or,Kn.toIsoString=mt("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",ba),Kn.lang=mn,he("X",0,0,"unix"),he("x",0,0,"valueOf"),ge("x",cn),ge("X",/[+-]?\d+(\.\d{1,3})?/),un("X",function(x,L,H){H._d=new Date(1e3*parseFloat(x,10))}),un("x",function(x,L,H){H._d=new Date(kt(x))}),_.version="2.24.0",b=dr,_.fn=sn,_.min=function(){return In("isBefore",[].slice.call(arguments,0))},_.max=function(){return In("isAfter",[].slice.call(arguments,0))},_.now=function(){return Date.now?Date.now():+new Date},_.utc=J,_.unix=function(x){return dr(1e3*x)},_.months=function(x,L){return ma(x,L,"months")},_.isDate=F,_.locale=Kr,_.invalid=et,_.duration=pr,_.isMoment=Qt,_.weekdays=function(x,L,H){return qa(x,L,H,"weekdays")},_.parseZone=function(){return dr.apply(null,arguments).parseZone()},_.localeData=hr,_.isDuration=Ii,_.monthsShort=function(x,L){return ma(x,L,"monthsShort")},_.weekdaysMin=function(x,L,H){return qa(x,L,H,"weekdaysMin")},_.defineLocale=ka,_.updateLocale=function(x,L){if(L!=null){var H,ct,Zt=Lr;(ct=Pr(x))!=null&&(Zt=ct._config),(H=new bt(L=Y(Zt,L))).parentLocale=Xn[x],Xn[x]=H,Kr(x)}else Xn[x]!=null&&(Xn[x].parentLocale!=null?Xn[x]=Xn[x].parentLocale:Xn[x]!=null&&delete Xn[x]);return Xn[x]},_.locales=function(){return X(Xn)},_.weekdaysShort=function(x,L,H){return qa(x,L,H,"weekdaysShort")},_.normalizeUnits=me,_.relativeTimeRounding=function(x){return x===void 0?zi:typeof x=="function"&&(zi=x,!0)},_.relativeTimeThreshold=function(x,L){return Ni[x]!==void 0&&(L===void 0?Ni[x]:(Ni[x]=L,x==="s"&&(Ni.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=sn,_.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 g,E="",A=0,T=-1,F=0,O=0;O<=u.length;++O){if(O<u.length)g=u.charCodeAt(O);else{if(g===47)break;g=47}if(g===47){if(!(T===O-1||F===1))if(T!==O-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("/"),T=O,F=0;continue}}else if(E.length===2||E.length===1){E="",A=0,T=O,F=0;continue}}_&&(E.length>0?E+="/..":E="..",A=2)}else E.length>0?E+="/"+u.slice(T+1,O):E=u.slice(T+1,O),A=O-T-1;T=O,F=0}else g===46&&F!==-1?++F:F=-1}return E}var b={resolve:function(){for(var u,_="",g=!1,E=arguments.length-1;E>=-1&&!g;E--){var A;E>=0?A=arguments[E]:(u===void 0&&(u=process.cwd()),A=u),z(A),A.length!==0&&(_=A+"/"+_,g=A.charCodeAt(0)===47)}return _=p(_,!g),g?_.length>0?"/"+_:"/":_.length>0?_:"."},normalize:function(u){if(z(u),u.length===0)return".";var _=u.charCodeAt(0)===47,g=u.charCodeAt(u.length-1)===47;return(u=p(u,!_)).length!==0||_||(u="."),u.length>0&&g&&(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 g=arguments[_];z(g),g.length>0&&(u===void 0?u=g:u+="/"+g)}return u===void 0?".":b.normalize(u)},relative:function(u,_){if(z(u),z(_),u===_||(u=b.resolve(u))===(_=b.resolve(_)))return"";for(var g=1;g<u.length&&u.charCodeAt(g)===47;++g);for(var E=u.length,A=E-g,T=1;T<_.length&&_.charCodeAt(T)===47;++T);for(var F=_.length-T,O=A<F?A:F,P=-1,V=0;V<=O;++V){if(V===O){if(F>O){if(_.charCodeAt(T+V)===47)return _.slice(T+V+1);if(V===0)return _.slice(T+V)}else A>O&&(u.charCodeAt(g+V)===47?P=V:V===0&&(P=0));break}var J=u.charCodeAt(g+V);if(J!==_.charCodeAt(T+V))break;J===47&&(P=V)}var tt="";for(V=g+P+1;V<=E;++V)V!==E&&u.charCodeAt(V)!==47||(tt.length===0?tt+="..":tt+="/..");return tt.length>0?tt+_.slice(T+P):(T+=P,_.charCodeAt(T)===47&&++T,_.slice(T))},_makeLong:function(u){return u},dirname:function(u){if(z(u),u.length===0)return".";for(var _=u.charCodeAt(0),g=_===47,E=-1,A=!0,T=u.length-1;T>=1;--T)if((_=u.charCodeAt(T))===47){if(!A){E=T;break}}else A=!1;return E===-1?g?"/":".":g&&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 g,E=0,A=-1,T=!0;if(_!==void 0&&_.length>0&&_.length<=u.length){if(_.length===u.length&&_===u)return"";var F=_.length-1,O=-1;for(g=u.length-1;g>=0;--g){var P=u.charCodeAt(g);if(P===47){if(!T){E=g+1;break}}else O===-1&&(T=!1,O=g+1),F>=0&&(P===_.charCodeAt(F)?--F==-1&&(A=g):(F=-1,A=O))}return E===A?A=O:A===-1&&(A=u.length),u.slice(E,A)}for(g=u.length-1;g>=0;--g)if(u.charCodeAt(g)===47){if(!T){E=g+1;break}}else A===-1&&(T=!1,A=g+1);return A===-1?"":u.slice(E,A)},extname:function(u){z(u);for(var _=-1,g=0,E=-1,A=!0,T=0,F=u.length-1;F>=0;--F){var O=u.charCodeAt(F);if(O!==47)E===-1&&(A=!1,E=F+1),O===46?_===-1?_=F:T!==1&&(T=1):_!==-1&&(T=-1);else if(!A){g=F+1;break}}return _===-1||E===-1||T===0||T===1&&_===E-1&&_===g+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(_,g){var E=g.dir||g.root,A=g.base||(g.name||"")+(g.ext||"");return E?E===g.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 g,E=u.charCodeAt(0),A=E===47;A?(_.root="/",g=1):g=0;for(var T=-1,F=0,O=-1,P=!0,V=u.length-1,J=0;V>=g;--V)if((E=u.charCodeAt(V))!==47)O===-1&&(P=!1,O=V+1),E===46?T===-1?T=V:J!==1&&(J=1):T!==-1&&(J=-1);else if(!P){F=V+1;break}return T===-1||O===-1||J===0||J===1&&T===O-1&&T===F+1?O!==-1&&(_.base=_.name=F===0&&A?u.slice(1,O):u.slice(F,O)):(F===0&&A?(_.name=u.slice(1,T),_.base=u.slice(1,O)):(_.name=u.slice(F,T),_.base=u.slice(F,O)),_.ext=u.slice(T,O)),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,y=s.length){if(f<y){if(r(h,h)!==0)return y;do{const v=f+y>>>1;a(s[v],h)<0?f=v+1:y=v}while(f<y)}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,y=s.length){const v=o(s,h,f,y-1);return v>f&&e(s[v-1],h)>-e(s[v],h)?v-1:v},right:function(s,h,f=0,y=s.length){if(f<y){if(r(h,h)!==0)return y;do{const v=f+y>>>1;a(s[v],h)<=0?f=v+1:y=v}while(f<y)}return f}}}function _(t){return t===null?NaN:+t}p.r(z),p.d(z,{Adder:()=>vt,Delaunay:()=>Xu,FormatSpecifier:()=>Qo,InternMap:()=>kt,InternSet:()=>It,Node:()=>nl,Voronoi:()=>O1,ZoomTransform:()=>ns,active:()=>vf,arc:()=>_v,area:()=>Xy,areaRadial:()=>Jy,ascending:()=>b,autoType:()=>Pf,axisBottom:()=>hr,axisLeft:()=>aa,axisRight:()=>ka,axisTop:()=>Kr,bin:()=>en,bisect:()=>F,bisectCenter:()=>T,bisectLeft:()=>A,bisectRight:()=>E,bisector:()=>u,blob:()=>K1,brush:()=>m1,brushSelection:()=>g1,brushX:()=>y1,brushY:()=>Al,buffer:()=>Hs,chord:()=>Lc,chordDirected:()=>Ou,chordTranspose:()=>Ic,cluster:()=>O3,color:()=>fn,contourDensity:()=>Cf,contours:()=>Il,count:()=>O,create:()=>cv,creator:()=>Fo,cross:()=>tt,csv:()=>t0,csvFormat:()=>fe,csvFormatBody:()=>ln,csvFormatRow:()=>Ws,csvFormatRows:()=>$s,csvFormatValue:()=>Ju,csvParse:()=>Ku,csvParseRows:()=>Ff,cubehelix:()=>Ya,cumsum:()=>ht,curveBasis:()=>jv,curveBasisClosed:()=>zv,curveBasisOpen:()=>Yv,curveBumpX:()=>Uv,curveBumpY:()=>$v,curveBundle:()=>Wv,curveCardinal:()=>qv,curveCardinalClosed:()=>Hv,curveCardinalOpen:()=>Vv,curveCatmullRom:()=>Gv,curveCatmullRomClosed:()=>Xv,curveCatmullRomOpen:()=>Zv,curveLinear:()=>tf,curveLinearClosed:()=>Qv,curveMonotoneX:()=>Kv,curveMonotoneY:()=>Jv,curveNatural:()=>t6,curveStep:()=>e6,curveStepAfter:()=>r6,curveStepBefore:()=>n6,descending:()=>et,deviation:()=>at,difference:()=>Br,disjoint:()=>Tr,dispatch:()=>rr,drag:()=>If,dragDisable:()=>lo,dragEnable:()=>uo,dsv:()=>J1,dsvFormat:()=>jl,easeBack:()=>gr,easeBackIn:()=>X1,easeBackInOut:()=>gr,easeBackOut:()=>jf,easeBounce:()=>qs,easeBounceIn:()=>G1,easeBounceInOut:()=>rh,easeBounceOut:()=>qs,easeCircle:()=>V1,easeCircleIn:()=>H1,easeCircleInOut:()=>V1,easeCircleOut:()=>va,easeCubic:()=>Ac,easeCubicIn:()=>Tu,easeCubicInOut:()=>Ac,easeCubicOut:()=>Eu,easeElastic:()=>Z1,easeElasticIn:()=>Xo,easeElasticInOut:()=>ah,easeElasticOut:()=>Z1,easeExp:()=>q1,easeExpIn:()=>W1,easeExpInOut:()=>q1,easeExpOut:()=>Co,easeLinear:()=>eh,easePoly:()=>Wl,easePolyIn:()=>$l,easePolyInOut:()=>Wl,easePolyOut:()=>Wi,easeQuad:()=>z1,easeQuadIn:()=>Yl,easeQuadInOut:()=>z1,easeQuadOut:()=>Ul,easeSin:()=>$1,easeSinIn:()=>Y1,easeSinInOut:()=>$1,easeSinOut:()=>U1,every:()=>Rn,extent:()=>ut,fcumsum:()=>Vt,filter:()=>Pn,flatGroup:()=>At,flatRollup:()=>Ut,forceCenter:()=>Do,forceCollide:()=>$f,forceLink:()=>Ei,forceManyBody:()=>ys,forceRadial:()=>uh,forceSimulation:()=>l0,forceX:()=>u0,forceY:()=>h0,format:()=>Kc,formatDefaultLocale:()=>g0,formatLocale:()=>p0,formatPrefix:()=>Xl,formatSpecifier:()=>Vs,fsum:()=>Qt,geoAlbers:()=>wp,geoAlbersUsa:()=>g3,geoArea:()=>wn,geoAzimuthalEqualArea:()=>y3,geoAzimuthalEqualAreaRaw:()=>yd,geoAzimuthalEquidistant:()=>m3,geoAzimuthalEquidistantRaw:()=>md,geoBounds:()=>Fm,geoCentroid:()=>Um,geoCircle:()=>$m,geoClipAntimeridian:()=>Xf,geoClipCircle:()=>H2,geoClipExtent:()=>Hm,geoClipRectangle:()=>k0,geoConicConformal:()=>v3,geoConicConformalRaw:()=>Sp,geoConicEqualArea:()=>O0,geoConicEqualAreaRaw:()=>kp,geoConicEquidistant:()=>x3,geoConicEquidistantRaw:()=>Cp,geoContains:()=>Km,geoDistance:()=>w0,geoEqualEarth:()=>k3,geoEqualEarthRaw:()=>bd,geoEquirectangular:()=>_3,geoEquirectangularRaw:()=>Eh,geoGnomonic:()=>w3,geoGnomonicRaw:()=>vd,geoGraticule:()=>np,geoGraticule10:()=>Jm,geoIdentity:()=>T3,geoInterpolate:()=>t3,geoLength:()=>V2,geoMercator:()=>b3,geoMercatorRaw:()=>Th,geoNaturalEarth1:()=>E3,geoNaturalEarth1Raw:()=>_d,geoOrthographic:()=>S3,geoOrthographicRaw:()=>xd,geoPath:()=>h3,geoProjection:()=>ts,geoProjectionMutator:()=>pd,geoRotation:()=>P2,geoStereographic:()=>C3,geoStereographicRaw:()=>kd,geoStream:()=>Q,geoTransform:()=>f3,geoTransverseMercator:()=>A3,geoTransverseMercatorRaw:()=>wd,gray:()=>T1,greatest:()=>vn,greatestIndex:()=>Mt,group:()=>yt,groupSort:()=>Ze,groups:()=>Y,hcl:()=>Is,hierarchy:()=>Td,histogram:()=>en,hsl:()=>bc,html:()=>Yf,image:()=>n0,index:()=>ke,indexes:()=>pe,interpolate:()=>Jn,interpolateArray:()=>hf,interpolateBasis:()=>Vh,interpolateBasisClosed:()=>bi,interpolateBlues:()=>$b,interpolateBrBG:()=>kb,interpolateBuGn:()=>Nb,interpolateBuPu:()=>Ob,interpolateCividis:()=>Xb,interpolateCool:()=>Kb,interpolateCubehelix:()=>c4,interpolateCubehelixDefault:()=>Zb,interpolateCubehelixLong:()=>Y0,interpolateDate:()=>Xh,interpolateDiscrete:()=>e4,interpolateGnBu:()=>Bb,interpolateGreens:()=>Wb,interpolateGreys:()=>qb,interpolateHcl:()=>o4,interpolateHclLong:()=>s4,interpolateHsl:()=>r4,interpolateHslLong:()=>i4,interpolateHue:()=>n4,interpolateInferno:()=>ov,interpolateLab:()=>a4,interpolateMagma:()=>av,interpolateNumber:()=>ua,interpolateNumberArray:()=>xc,interpolateObject:()=>Ji,interpolateOrRd:()=>Lb,interpolateOranges:()=>Gb,interpolatePRGn:()=>wb,interpolatePiYG:()=>Tb,interpolatePlasma:()=>sv,interpolatePuBu:()=>Fb,interpolatePuBuGn:()=>Ib,interpolatePuOr:()=>Eb,interpolatePuRd:()=>Rb,interpolatePurples:()=>Hb,interpolateRainbow:()=>Jb,interpolateRdBu:()=>Sb,interpolateRdGy:()=>Cb,interpolateRdPu:()=>Pb,interpolateRdYlBu:()=>Ab,interpolateRdYlGn:()=>Mb,interpolateReds:()=>Vb,interpolateRgb:()=>_c,interpolateRgbBasis:()=>gl,interpolateRgbBasisClosed:()=>uf,interpolateRound:()=>z0,interpolateSinebow:()=>nv,interpolateSpectral:()=>Db,interpolateString:()=>Pa,interpolateTransformCss:()=>n1,interpolateTransformSvg:()=>_l,interpolateTurbo:()=>rv,interpolateViridis:()=>iv,interpolateWarm:()=>Qb,interpolateYlGn:()=>zb,interpolateYlGnBu:()=>jb,interpolateYlOrBr:()=>Yb,interpolateYlOrRd:()=>Ub,interpolateZoom:()=>Hp,interrupt:()=>Ga,intersection:()=>Sn,interval:()=>v6,isoFormat:()=>y6,isoParse:()=>b6,json:()=>i0,lab:()=>jc,lch:()=>Bl,least:()=>Ge,leastIndex:()=>Se,line:()=>d2,lineRadial:()=>Ky,linkHorizontal:()=>Dv,linkRadial:()=>Ov,linkVertical:()=>Nv,local:()=>qy,map:()=>zn,matcher:()=>Ur,max:()=>$e,maxIndex:()=>An,mean:()=>Ie,median:()=>un,merge:()=>ze,min:()=>cn,minIndex:()=>pn,mode:()=>tr,namespace:()=>Gr,namespaces:()=>Ai,nice:()=>ue,now:()=>Ec,pack:()=>Y3,packEnclose:()=>Mp,packSiblings:()=>j3,pairs:()=>Dn,partition:()=>U3,path:()=>mo,permute:()=>Ne,pie:()=>Tv,piecewise:()=>Zp,pointRadial:()=>$h,pointer:()=>ha,pointers:()=>uv,polygonArea:()=>u4,polygonCentroid:()=>h4,polygonContains:()=>g4,polygonHull:()=>p4,polygonLength:()=>y4,precisionFixed:()=>Zl,precisionPrefix:()=>y0,precisionRound:()=>Jc,quadtree:()=>Gc,quantile:()=>Be,quantileSorted:()=>Le,quantize:()=>l4,quickselect:()=>Fe,radialArea:()=>Jy,radialLine:()=>Ky,randomBates:()=>_4,randomBernoulli:()=>w4,randomBeta:()=>tg,randomBinomial:()=>eg,randomCauchy:()=>E4,randomExponential:()=>x4,randomGamma:()=>Od,randomGeometric:()=>Jp,randomInt:()=>b4,randomIrwinHall:()=>Kp,randomLcg:()=>A4,randomLogNormal:()=>v4,randomLogistic:()=>S4,randomNormal:()=>Nd,randomPareto:()=>k4,randomPoisson:()=>C4,randomUniform:()=>m4,randomWeibull:()=>T4,range:()=>De,rank:()=>Qe,reduce:()=>Yn,reverse:()=>ya,rgb:()=>ai,ribbon:()=>Ls,ribbonArrow:()=>x1,rollup:()=>me,rollups:()=>Ye,scaleBand:()=>Id,scaleDiverging:()=>gy,scaleDivergingLog:()=>yy,scaleDivergingPow:()=>c2,scaleDivergingSqrt:()=>hb,scaleDivergingSymlog:()=>my,scaleIdentity:()=>sg,scaleImplicit:()=>Bd,scaleLinear:()=>og,scaleLog:()=>fg,scaleOrdinal:()=>Ld,scalePoint:()=>M4,scalePow:()=>Yd,scaleQuantile:()=>vg,scaleQuantize:()=>_g,scaleRadial:()=>bg,scaleSequential:()=>hy,scaleSequentialLog:()=>fy,scaleSequentialPow:()=>s2,scaleSequentialQuantile:()=>py,scaleSequentialSqrt:()=>ub,scaleSequentialSymlog:()=>dy,scaleSqrt:()=>R4,scaleSymlog:()=>gg,scaleThreshold:()=>xg,scaleTime:()=>cb,scaleUtc:()=>lb,scan:()=>vr,schemeAccent:()=>db,schemeBlues:()=>jy,schemeBrBG:()=>by,schemeBuGn:()=>Cy,schemeBuPu:()=>Ay,schemeCategory10:()=>fb,schemeDark2:()=>pb,schemeGnBu:()=>My,schemeGreens:()=>zy,schemeGreys:()=>Yy,schemeOrRd:()=>Dy,schemeOranges:()=>Wy,schemePRGn:()=>vy,schemePaired:()=>gb,schemePastel1:()=>yb,schemePastel2:()=>mb,schemePiYG:()=>_y,schemePuBu:()=>Oy,schemePuBuGn:()=>Ny,schemePuOr:()=>xy,schemePuRd:()=>By,schemePurples:()=>Uy,schemeRdBu:()=>ky,schemeRdGy:()=>wy,schemeRdPu:()=>Ly,schemeRdYlBu:()=>Ty,schemeRdYlGn:()=>Ey,schemeReds:()=>$y,schemeSet1:()=>bb,schemeSet2:()=>vb,schemeSet3:()=>_b,schemeSpectral:()=>Sy,schemeTableau10:()=>xb,schemeYlGn:()=>Fy,schemeYlGnBu:()=>Iy,schemeYlOrBr:()=>Ry,schemeYlOrRd:()=>Py,select:()=>kr,selectAll:()=>hv,selection:()=>Vn,selector:()=>Ci,selectorAll:()=>Ir,shuffle:()=>zt,shuffler:()=>Wn,some:()=>En,sort:()=>be,stack:()=>o6,stackOffsetDiverging:()=>c6,stackOffsetExpand:()=>s6,stackOffsetNone:()=>cu,stackOffsetSilhouette:()=>l6,stackOffsetWiggle:()=>u6,stackOrderAppearance:()=>wm,stackOrderAscending:()=>Tm,stackOrderDescending:()=>f6,stackOrderInsideOut:()=>d6,stackOrderNone:()=>lu,stackOrderReverse:()=>p6,stratify:()=>H3,style:()=>We,subset:()=>Ar,sum:()=>jn,superset:()=>Bn,svg:()=>Uf,symbol:()=>Pv,symbolCircle:()=>y2,symbolCross:()=>tm,symbolDiamond:()=>nm,symbolSquare:()=>am,symbolStar:()=>im,symbolTriangle:()=>om,symbolWye:()=>sm,symbols:()=>Rv,text:()=>Mo,thresholdFreedmanDiaconis:()=>ge,thresholdScott:()=>ie,thresholdSturges:()=>Oe,tickFormat:()=>ag,tickIncrement:()=>ft,tickStep:()=>Dt,ticks:()=>dt,timeDay:()=>Ih,timeDays:()=>Y4,timeFormat:()=>i2,timeFormatDefaultLocale:()=>uy,timeFormatLocale:()=>Gg,timeFriday:()=>Dg,timeFridays:()=>H4,timeHour:()=>Xd,timeHours:()=>z4,timeInterval:()=>Pi,timeMillisecond:()=>Vd,timeMilliseconds:()=>kg,timeMinute:()=>Gd,timeMinutes:()=>j4,timeMonday:()=>Fh,timeMondays:()=>U4,timeMonth:()=>Zd,timeMonths:()=>G4,timeParse:()=>Xg,timeSaturday:()=>Ng,timeSaturdays:()=>V4,timeSecond:()=>ec,timeSeconds:()=>Tg,timeSunday:()=>iu,timeSundays:()=>Og,timeThursday:()=>al,timeThursdays:()=>q4,timeTickInterval:()=>Vg,timeTicks:()=>Hg,timeTuesday:()=>Ag,timeTuesdays:()=>$4,timeWednesday:()=>Mg,timeWednesdays:()=>W4,timeWeek:()=>iu,timeWeeks:()=>Og,timeYear:()=>nc,timeYears:()=>X4,timeout:()=>bl,timer:()=>Yo,timerFlush:()=>As,transition:()=>os,transpose:()=>Hn,tree:()=>Z3,treemap:()=>Q3,treemapBinary:()=>K3,treemapDice:()=>Nh,treemapResquarify:()=>t4,treemapSlice:()=>j0,treemapSliceDice:()=>J3,treemapSquarify:()=>Wp,tsv:()=>e0,tsvFormat:()=>zl,tsvFormatBody:()=>P1,tsvFormatRow:()=>Rf,tsvFormatRows:()=>Ja,tsvFormatValue:()=>Hc,tsvParse:()=>th,tsvParseRows:()=>R1,union:()=>yr,utcDay:()=>Rh,utcDays:()=>K4,utcFormat:()=>q0,utcFriday:()=>jg,utcFridays:()=>r5,utcHour:()=>Jd,utcHours:()=>Q4,utcMillisecond:()=>Vd,utcMilliseconds:()=>kg,utcMinute:()=>Kd,utcMinutes:()=>Z4,utcMonday:()=>Ph,utcMondays:()=>J4,utcMonth:()=>t2,utcMonths:()=>a5,utcParse:()=>a2,utcSaturday:()=>zg,utcSaturdays:()=>i5,utcSecond:()=>ec,utcSeconds:()=>Tg,utcSunday:()=>au,utcSundays:()=>Yg,utcThursday:()=>sl,utcThursdays:()=>n5,utcTickInterval:()=>qg,utcTicks:()=>Wg,utcTuesday:()=>Rg,utcTuesdays:()=>t5,utcWednesday:()=>Pg,utcWednesdays:()=>e5,utcWeek:()=>au,utcWeeks:()=>Yg,utcYear:()=>rc,utcYears:()=>o5,variance:()=>wt,window:()=>Wa,xml:()=>zf,zip:()=>Gn,zoom:()=>S6,zoomIdentity:()=>cf,zoomTransform:()=>Cm});const g=u(b),E=g.right,A=g.left,T=u(_).center,F=E;function O(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 V(t){return!(t>0)}function J(t){return typeof t!="object"||"length"in t?t:Array.from(t)}function tt(...t){const e=typeof t[t.length-1]=="function"&&function(h){return f=>h(...f)}(t.pop()),r=(t=t.map(J)).map(P),a=t.length-1,o=new Array(a+1).fill(0),s=[];if(a<0||r.some(V))return s;for(;;){s.push(o.map((f,y)=>t[y][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 et(t,e){return t==null||e==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function wt(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=wt(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 Qt(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 Vt(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 kt 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(Tt(this,e))}has(e){return super.has(Tt(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(Tt(this,e))}add(e){return super.add(mt(this,e))}delete(e){return super.delete(X(this,e))}}function Tt({_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 At(t,...e){return bt(Y(t,...e),e)}function Ut(t,e,...r){return bt(Ye(t,e,...r),r)}function me(t,e,...r){return Ae(t,j,e,r)}function Ye(t,e,...r){return Ae(t,Array.from,e,r)}function ke(t,...e){return Ae(t,j,xe,e)}function pe(t,...e){return Ae(t,Array.from,xe,e)}function xe(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 kt,y=a[h++];let v=-1;for(const C of s){const I=y(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 Ne(t,e){return Array.from(e,r=>t[r])}function be(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=he(h[o],h[s]);if(f)return f}})):(r=t.map(r),a.sort((o,s)=>he(r[o],r[s]))),Ne(t,a)}return t.sort(kn(r))}function kn(t=b){if(t===b)return he;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 he(t,e){return(t==null||!(t>=t))-(e==null||!(e>=e))||(t<e?-1:t>e?1:0)}function Ze(t,e,r){return(e.length!==2?be(me(t,e,r),([a,o],[s,h])=>b(o,h)||b(a,s)):be(yt(t,r),([a,o],[s,h])=>e(o,h)||b(a,s))).map(([a])=>a)}var re=Array.prototype,Xt=re.slice;function se(t){return()=>t}re.map;var St=Math.sqrt(50),ee=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 y=Math.round(t/h),v=Math.round(e/h);for(y*h<t&&++y,v*h>e&&--v,s=new Array(o=v-y+1);++f<o;)s[f]=(y+f)*h}else{h=-h;let y=Math.round(t*h),v=Math.round(e*h);for(y/h<t&&++y,v/h>e&&--v,s=new Array(o=v-y+1);++f<o;)s[f]=(y+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>=St?10:s>=ee?5:s>=st?2:1)*Math.pow(10,o):-Math.pow(10,-o)/(s>=St?10:s>=ee?5:s>=st?2:1)}function Dt(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>=St?o*=10:s>=ee?o*=5:s>=st&&(o*=2),e<t?-o:o}function ue(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 Oe(t){return Math.ceil(Math.log(O(t))/Math.LN2)+1}function en(){var t=j,e=ut,r=Oe;function a(o){Array.isArray(o)||(o=Array.from(o));var s,h,f=o.length,y=new Array(f);for(s=0;s<f;++s)y[s]=t(o[s],s,o);var v=e(y),C=v[0],I=v[1],D=r(y,C,I);if(!Array.isArray(D)){const $=I,W=+D;if(e===ut&&([C,I]=ue(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=y[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(Xt.call(o)):se(o),a):r},a}function $e(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 cn(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?he:kn(o);a>r;){if(a-r>600){const y=a-r+1,v=e-r+1,C=Math.log(y),I=.5*Math.exp(2*C/3),D=.5*Math.sqrt(C*I*(y-I)/y)*(v-y/2<0?-1:1);Fe(t,e,Math.max(r,Math.floor(e-v*I/y+D)),Math.min(a,Math.floor(e+(y-v)*I/y+D)),o)}const s=t[e];let h=r,f=a;for(Ee(t,r,e),o(t[a],s)>0&&Ee(t,r,a);h<f;){for(Ee(t,h,f),++h,--f;o(t[h],s)<0;)++h;for(;o(t[f],s)>0;)--f}o(t[r],s)===0?Ee(t,r,f):(++f,Ee(t,f,a)),f<=e&&(r=f+1),e<=f&&(a=f-1)}return t}function Ee(t,e,r){const a=t[e];t[e]=t[r],t[r]=a}function Be(t,e,r){if(t=Float64Array.from(function*(f,y){if(y===void 0)for(let v of f)v!=null&&(v=+v)>=v&&(yield v);else{let v=-1;for(let C of f)(C=y(C,++v,f))!=null&&(C=+C)>=C&&(yield C)}}(t,r)),a=t.length){if((e=+e)<=0||a<2)return cn(t);if(e>=1)return $e(t);var a,o=(a-1)*e,s=Math.floor(o),h=$e(Fe(t,s).subarray(0,s+1));return h+(cn(t.subarray(s+1))-h)*(o-s)}}function Le(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*(Be(t,.75)-Be(t,.25))*Math.pow(O(t),-1/3)))}function ie(t,e,r){return Math.ceil((r-e)/(3.5*at(t)*Math.pow(O(t),-1/3)))}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 un(t,e){return Be(t,.5,e)}function ze(t){return Array.from(function*(e){for(const r of e)yield*r}(t))}function pn(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 tr(t,e){const r=new kt;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 De(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 Qe(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,y)=>e(r[f],r[y]);let s,h;return Uint32Array.from(r,(f,y)=>y).sort(e===b?(f,y)=>he(r[f],r[y]):kn(o)).forEach((f,y)=>{const v=o(f,s===void 0?f:s);v>=0?((s===void 0||v>0)&&(s=f,h=y),a[f]=h):a[f]=NaN}),a}function Ge(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 Se(t,e=b){if(e.length===1)return pn(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 vn(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 Mt(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=Se(t,e);return r<0?void 0:r}const zt=Wn(Math.random);function Wn(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 jn(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 Hn(t){if(!(o=t.length))return[];for(var e=-1,r=cn(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 Gn(){return Hn(arguments)}function Rn(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 Pn(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 zn(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 Yn(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 ya(t){if(typeof t[Symbol.iterator]!="function")throw new TypeError("values is not iterable");return Array.from(t).reverse()}function Br(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(li);t:for(const r of t)for(const a of e)if(!a.has(r)){t.delete(r);continue t}return t}function li(t){return t instanceof It?t:new It(t)}function Bn(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 y=_r(h);if(a.add(y),Object.is(s,y))break}}return!0}function _r(t){return t!==null&&typeof t=="object"?t.valueOf():t}function Ar(t,e){return Bn(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 Nt=1e-6;function Mr(t){return"translate("+t+",0)"}function Lr(t){return"translate(0,"+t+")"}function Xn(t){return e=>+t(e)}function Qr(t,e){return e=Math.max(0,t.bandwidth()-2*e)/2,t.round()&&(e=Math.round(e)),r=>+t(r)+e}function Yr(){return!this.__axis}function Pr(t,e){var r=[],a=null,o=null,s=6,h=6,f=3,y=typeof window!="undefined"&&window.devicePixelRatio>1?0:.5,v=t===1||t===4?-1:1,C=t===4||t===2?"x":"y",I=t===1||t===3?Mr:Lr;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]+y,nt=+W[W.length-1]+y,rt=(e.bandwidth?Qr:Xn)(e.copy(),y),lt=R.selection?R.selection():R,pt=lt.selectAll(".domain").data([null]),Jt=lt.selectAll(".tick").data(Z,e).order(),ye=Jt.exit(),Yt=Jt.enter().append("g").attr("class","tick"),Rt=Jt.select("line"),Pt=Jt.select("text");pt=pt.merge(pt.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),Jt=Jt.merge(Yt),Rt=Rt.merge(Yt.append("line").attr("stroke","currentColor").attr(C+"2",v*s)),Pt=Pt.merge(Yt.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),Rt=Rt.transition(R),Pt=Pt.transition(R),ye=ye.transition(R).attr("opacity",Nt).attr("transform",function(jt){return isFinite(jt=rt(jt))?I(jt+y):this.getAttribute("transform")}),Yt.attr("opacity",Nt).attr("transform",function(jt){var gt=this.parentNode.__axis;return I((gt&&isFinite(gt=gt(jt))?gt:rt(jt))+y)})),ye.remove(),pt.attr("d",t===4||t===2?h?"M"+v*h+","+it+"H"+y+"V"+nt+"H"+v*h:"M"+y+","+it+"V"+nt:h?"M"+it+","+v*h+"V"+y+"H"+nt+"V"+v*h:"M"+it+","+y+"H"+nt),Jt.attr("opacity",1).attr("transform",function(jt){return I(rt(jt)+y)}),Rt.attr(C+"2",v*s),Pt.attr(C,v*$).text(U),lt.filter(Yr).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?(y=+R,D):y},D}function Kr(t){return Pr(1,t)}function ka(t){return Pr(2,t)}function hr(t){return Pr(3,t)}function aa(t){return Pr(4,t)}var oa={value:()=>{}};function Li(){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 an(a)}function an(t){this._=t}function Qn(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 on(t,e){for(var r,a=0,o=t.length;a<o;++a)if((r=t[a]).name===e)return r.value}function rn(t,e,r){for(var a=0,o=t.length;a<o;++a)if(t[a].name===e){t[a]=oa,t=t.slice(0,a).concat(t.slice(a+1));break}return r!=null&&t.push({name:e,value:r}),t}an.prototype=Li.prototype={constructor:an,on:function(t,e){var r,a=this._,o=Qn(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]=rn(a[r],t.name,e);else if(e==null)for(r in a)a[r]=rn(a[r],t.name,null);return this}for(;++s<h;)if((r=(t=o[s]).type)&&(r=on(a[r],t.name)))return r},copy:function(){var t={},e=this._;for(var r in e)t[r]=e[r].slice();return new an(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 rr=Li;function $t(){}function Ci(t){return t==null?$t:function(){return this.querySelector(t)}}function Kt(t){return t==null?[]:Array.isArray(t)?t:Array.from(t)}function xr(){return[]}function Ir(t){return t==null?xr:function(){return this.querySelectorAll(t)}}function Ur(t){return function(){return this.matches(t)}}function pi(t){return function(e){return e.matches(t)}}var wa=Array.prototype.find;function dr(){return this.firstElementChild}var _n=Array.prototype.filter;function sa(){return Array.from(this.children)}function In(t){return new Array(t.length)}function wi(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}function ui(t){return function(){return t}}function Ii(t,e,r,a,o,s){for(var h,f=0,y=e.length,v=s.length;f<v;++f)(h=e[f])?(h.__data__=s[f],a[f]=h):r[f]=new wi(t,s[f]);for(;f<y;++f)(h=e[f])&&(o[f]=h)}function fr(t,e,r,a,o,s,h){var f,y,v,C=new Map,I=e.length,D=s.length,R=new Array(I);for(f=0;f<I;++f)(y=e[f])&&(R[f]=v=h.call(y,y.__data__,f,e)+"",C.has(v)?o[f]=y:C.set(v,y));for(f=0;f<D;++f)v=h.call(t,s[f],f,s)+"",(y=C.get(v))?(a[f]=y,y.__data__=s[f],C.delete(v)):r[f]=new wi(t,s[f]);for(f=0;f<I;++f)(y=e[f])&&C.get(R[f])===y&&(o[f]=y)}function Jr(t){return t.__data__}function Hr(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}function Vr(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}wi.prototype={constructor:wi,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 ii="http://www.w3.org/1999/xhtml";const Ai={svg:"http://www.w3.org/2000/svg",xhtml:ii,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Gr(t){var e=t+="",r=e.indexOf(":");return r>=0&&(e=t.slice(0,r))!=="xmlns"&&(t=t.slice(r+1)),Ai.hasOwnProperty(e)?{space:Ai[e],local:t}:t}function Ta(t){return function(){this.removeAttribute(t)}}function Ia(t){return function(){this.removeAttributeNS(t.space,t.local)}}function pr(t,e){return function(){this.setAttribute(t,e)}}function ti(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function ei(t,e){return function(){var r=e.apply(this,arguments);r==null?this.removeAttribute(t):this.setAttribute(t,r)}}function Lo(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 Wa(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function ca(t){return function(){this.style.removeProperty(t)}}function uc(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 We(t,e){return t.style.getPropertyValue(e)||Wa(t).getComputedStyle(t,null).getPropertyValue(e)}function mn(t){return function(){delete this[t]}}function or(t,e){return function(){this[t]=e}}function hi(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 gi(t){return t.classList||new Fa(t)}function Fa(t){this._node=t,this._names=Er(t.getAttribute("class")||"")}function yi(t,e){for(var r=gi(t),a=-1,o=e.length;++a<o;)r.add(e[a])}function Mi(t,e){for(var r=gi(t),a=-1,o=e.length;++a<o;)r.remove(e[a])}function Io(t){return function(){yi(this,t)}}function hc(t){return function(){Mi(this,t)}}function Ra(t,e){return function(){(e.apply(this,arguments)?yi:Mi)(this,t)}}function fc(){this.textContent=""}function ks(t){return function(){this.textContent=t}}function hu(t){return function(){var e=t.apply(this,arguments);this.textContent=e==null?"":e}}function sn(){this.innerHTML=""}function ul(t){return function(){this.innerHTML=t}}function Dr(t){return function(){var e=t.apply(this,arguments);this.innerHTML=e==null?"":e}}function so(){this.nextSibling&&this.parentNode.appendChild(this)}function ma(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function qa(t){return function(){var e=this.ownerDocument,r=this.namespaceURI;return r===ii&&e.documentElement.namespaceURI===ii?e.createElement(t):e.createElementNS(r,t)}}function Di(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function Fo(t){var e=Gr(t);return(e.local?Di:qa)(e)}function dc(){return null}function pc(){var t=this.parentNode;t&&t.removeChild(this)}function gc(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function Ea(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function fu(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 yc(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 Sa(t,e,r){return function(){var a,o=this.__on,s=function(y){return function(v){y.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 ws(t,e,r){var a=Wa(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 hl(t,e){return function(){return ws(this,t,e)}}function Qi(t,e){return function(){return ws(this,t,e.apply(this,arguments))}}Fa.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 Ro=[null];function mi(t,e){this._groups=t,this._parents=e}function rs(){return new mi([[document.documentElement]],Ro)}mi.prototype=rs.prototype={constructor:mi,select:function(t){typeof t!="function"&&(t=Ci(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],y=f.length,v=a[o]=new Array(y),C=0;C<y;++C)(s=f[C])&&(h=t.call(s,s.__data__,C,f))&&("__data__"in s&&(h.__data__=s.__data__),v[C]=h);return new mi(a,this._parents)},selectAll:function(t){t=typeof t=="function"?function(C){return function(){return Kt(C.apply(this,arguments))}}(t):Ir(t);for(var e=this._groups,r=e.length,a=[],o=[],s=0;s<r;++s)for(var h,f=e[s],y=f.length,v=0;v<y;++v)(h=f[v])&&(a.push(t.call(h,h.__data__,v,f)),o.push(h));return new mi(a,o)},selectChild:function(t){return this.select(t==null?dr:function(e){return function(){return wa.call(this.children,e)}}(typeof t=="function"?t:pi(t)))},selectChildren:function(t){return this.selectAll(t==null?sa:function(e){return function(){return _n.call(this.children,e)}}(typeof t=="function"?t:pi(t)))},filter:function(t){typeof t!="function"&&(t=Ur(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,y=a[o]=[],v=0;v<f;++v)(s=h[v])&&t.call(s,s.__data__,v,h)&&y.push(s);return new mi(a,this._parents)},data:function(t,e){if(!arguments.length)return Array.from(this,Jr);var r=e?fr:Ii,a=this._parents,o=this._groups;typeof t!="function"&&(t=ui(t));for(var s=o.length,h=new Array(s),f=new Array(s),y=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=y[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 mi(h,a))._enter=f,h._exit=y,h},enter:function(){return new mi(this._enter||this._groups.map(In),this._parents)},exit:function(){return new mi(this._exit||this._groups.map(In),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),y=0;y<h;++y)for(var v,C=r[y],I=a[y],D=C.length,R=f[y]=new Array(D),Z=0;Z<D;++Z)(v=C[Z]||I[Z])&&(R[Z]=v);for(;y<o;++y)f[y]=r[y];return new mi(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=Vr);for(var r=this._groups,a=r.length,o=new Array(a),s=0;s<a;++s){for(var h,f=r[s],y=f.length,v=o[s]=new Array(y),C=0;C<y;++C)(h=f[C])&&(v[C]=h);v.sort(e)}return new mi(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=Gr(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?Ia:Ta:typeof e=="function"?r.local?Lo:ei:r.local?ti:pr)(r,e))},style:function(t,e,r){return arguments.length>1?this.each((e==null?ca:typeof e=="function"?Ht:uc)(t,e,r==null?"":r)):We(this.node(),t)},property:function(t,e){return arguments.length>1?this.each((e==null?mn:typeof e=="function"?hi:or)(t,e)):this.node()[t]},classed:function(t,e){var r=Er(t+"");if(arguments.length<2){for(var a=gi(this.node()),o=-1,s=r.length;++o<s;)if(!a.contains(r[o]))return!1;return!0}return this.each((typeof e=="function"?Ra:e?Io:hc)(r,e))},text:function(t){return arguments.length?this.each(t==null?fc:(typeof t=="function"?hu:ks)(t)):this.node().textContent},html:function(t){return arguments.length?this.each(t==null?sn:(typeof t=="function"?Dr:ul)(t)):this.node().innerHTML},raise:function(){return this.each(so)},lower:function(){return this.each(ma)},append:function(t){var e=typeof t=="function"?t:Fo(t);return this.select(function(){return this.appendChild(e.apply(this,arguments))})},insert:function(t,e){var r=typeof t=="function"?t:Fo(t),a=e==null?dc:typeof e=="function"?e:Ci(e);return this.select(function(){return this.insertBefore(r.apply(this,arguments),a.apply(this,arguments)||null)})},remove:function(){return this.each(pc)},clone:function(t){return this.select(t?Ea:gc)},datum:function(t){return arguments.length?this.property("__data__",t):this.node().__data__},on:function(t,e,r){var a,o,s=fu(t+""),h=s.length;if(!(arguments.length<2)){for(f=e?Sa:yc,a=0;a<h;++a)this.each(f(s[a],e,r));return this}var f=this.node().__on;if(f){for(var y,v=0,C=f.length;v<C;++v)for(a=0,y=f[v];a<h;++a)if((o=s[a]).type===y.type&&o.name===y.name)return y.value}},dispatch:function(t,e){return this.each((typeof e=="function"?Qi:hl)(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 Vn=rs;function kr(t){return typeof t=="string"?new mi([[document.querySelector(t)]],[document.documentElement]):new mi([[t]],Ro)}const fl={passive:!1},Po={capture:!0,passive:!1};function Ts(t){t.stopImmediatePropagation()}function co(t){t.preventDefault(),t.stopImmediatePropagation()}function lo(t){var e=t.document.documentElement,r=kr(t).on("dragstart.drag",co,Po);"onselectstart"in e?r.on("selectstart.drag",co,Po):(e.__noselect=e.style.MozUserSelect,e.style.MozUserSelect="none")}function uo(t,e){var r=t.document.documentElement,a=kr(t).on("dragstart.drag",null);e&&(a.on("click.drag",co,Po),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 zi(t,e,r){t.prototype=e.prototype=r,r.constructor=t}function Ni(t,e){var r=Object.create(t.prototype);for(var a in e)r[a]=e[a];return r}function xn(){}var Ki=.7,ba=1/Ki,Kn="\\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\\("+[Kn,Kn,Kn]+"\\)$"),Zt=new RegExp("^rgb\\("+[L,L,L]+"\\)$"),Ce=new RegExp("^rgba\\("+[Kn,Kn,Kn,x]+"\\)$"),Re=new RegExp("^rgba\\("+[L,L,L,x]+"\\)$"),Xe=new RegExp("^hsl\\("+[x,L,L]+"\\)$"),Ke=new RegExp("^hsla\\("+[x,L,L,x]+"\\)$"),hn={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 bn(){return this.rgb().formatHex()}function Un(){return this.rgb().formatRgb()}function fn(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 jr(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):r===8?sr(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):r===4?sr(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 jr(e[1],e[2],e[3],1):(e=Zt.exec(t))?new jr(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=Ce.exec(t))?sr(e[1],e[2],e[3],e[4]):(e=Re.exec(t))?sr(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=Xe.exec(t))?Hh(e[1],e[2]/100,e[3]/100,1):(e=Ke.exec(t))?Hh(e[1],e[2]/100,e[3]/100,e[4]):hn.hasOwnProperty(t)?mr(hn[t]):t==="transparent"?new jr(NaN,NaN,NaN,0):null}function mr(t){return new jr(t>>16&255,t>>8&255,255&t,1)}function sr(t,e,r,a){return a<=0&&(t=e=r=NaN),new jr(t,e,r,a)}function $r(t){return t instanceof xn||(t=fn(t)),t?new jr((t=t.rgb()).r,t.g,t.b,t.opacity):new jr}function ai(t,e,r,a){return arguments.length===1?$r(t):new jr(t,e,r,a==null?1:a)}function jr(t,e,r,a){this.r=+t,this.g=+e,this.b=+r,this.opacity=+a}function Es(){return"#"+mc(this.r)+mc(this.g)+mc(this.b)}function du(){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 mc(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function Hh(t,e,r,a){return a<=0?t=e=r=NaN:r<=0||r>=1?t=e=NaN:e<=0&&(t=NaN),new la(t,e,r,a)}function pu(t){if(t instanceof la)return new la(t.h,t.s,t.l,t.opacity);if(t instanceof xn||(t=fn(t)),!t)return new la;if(t instanceof la)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,y=(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/=y<.5?s+o:2-s-o,h*=60):f=y>0&&y<1?0:h,new la(h,f,y,t.opacity)}function bc(t,e,r,a){return arguments.length===1?pu(t):new la(t,e,r,a==null?1:a)}function la(t,e,r,a){this.h=+t,this.s=+e,this.l=+r,this.opacity=+a}function gu(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 Ss(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 Vh(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 Ss((r-a/e)*e,h,o,s,f)}}function bi(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 Ss((r-a/e)*e,o,s,h,f)}}zi(xn,fn,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:bn,formatHex:bn,formatHsl:function(){return pu(this).formatHsl()},formatRgb:Un,toString:Un}),zi(jr,ai,Ni(xn,{brighter:function(t){return t=t==null?ba:Math.pow(ba,t),new jr(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=t==null?Ki:Math.pow(Ki,t),new jr(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:Es,formatHex:Es,formatRgb:du,toString:du})),zi(la,bc,Ni(xn,{brighter:function(t){return t=t==null?ba:Math.pow(ba,t),new la(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=t==null?Ki:Math.pow(Ki,t),new la(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 jr(gu(t>=240?t-240:t+120,o,a),gu(t,o,a),gu(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 vc=t=>()=>t;function dl(t,e){return function(r){return t+r*e}}function pl(t,e){var r=e-t;return r?dl(t,r>180||r<-180?r-360*Math.round(r/360):r):vc(isNaN(t)?e:t)}function Oi(t,e){var r=e-t;return r?dl(t,r):vc(isNaN(t)?e:t)}const _c=function t(e){var r=function(o){return(o=+o)==1?Oi:function(s,h){return h-s?function(f,y,v){return f=Math.pow(f,v),y=Math.pow(y,v)-f,v=1/v,function(C){return Math.pow(f+C*y,v)}}(s,h,o):vc(isNaN(s)?h:s)}}(e);function a(o,s){var h=r((o=ai(o)).r,(s=ai(s)).r),f=r(o.g,s.g),y=r(o.b,s.b),v=Oi(o.opacity,s.opacity);return function(C){return o.r=h(C),o.g=f(C),o.b=y(C),o.opacity=v(C),o+""}}return a.gamma=t,a}(1);function yu(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=ai(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(y){return a.r=s(y),a.g=h(y),a.b=f(y),a+""}}}var gl=yu(Vh),uf=yu(bi);function xc(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 kc(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}function hf(t,e){return(kc(e)?xc:Gh)(t,e)}function Gh(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]=Jn(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 Xh(t,e){var r=new Date;return t=+t,e=+e,function(a){return r.setTime(t*(1-a)+e*a),r}}function ua(t,e){return t=+t,e=+e,function(r){return t*(1-r)+e*r}}function Ji(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]=Jn(t[r],e[r]):o[r]=e[r];return function(s){for(r in a)o[r]=a[r](s);return o}}var Bi=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,ni=new RegExp(Bi.source,"g");function Pa(t,e){var r,a,o,s=Bi.lastIndex=ni.lastIndex=0,h=-1,f=[],y=[];for(t+="",e+="";(r=Bi.exec(t))&&(a=ni.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,y.push({i:h,x:ua(r,a)})),s=ni.lastIndex;return s<e.length&&(o=e.slice(s),f[h]?f[h]+=o:f[++h]=o),f.length<2?y[0]?function(v){return function(C){return v(C)+""}}(y[0].x):function(v){return function(){return v}}(e):(e=y.length,function(v){for(var C,I=0;I<e;++I)f[(C=y[I]).i]=C.x(v);return f.join("")})}function Jn(t,e){var r,a=typeof e;return e==null||a==="boolean"?vc(e):(a==="number"?ua:a==="string"?(r=fn(e))?(e=r,_c):Pa:e instanceof fn?_c:e instanceof Date?Xh:kc(e)?xc:Array.isArray(e)?Gh:typeof e.valueOf!="function"&&typeof e.toString!="function"||isNaN(e)?Ji:ua)(t,e)}function Ca(t){let e;for(;e=t.sourceEvent;)t=e;return t}function ha(t,e){if(t=Ca(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 is,wc,Cs=0,jo=0,zo=0,yl=0,as=0,ml=0,Tc=typeof performance=="object"&&performance.now?performance:Date,Zh=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function Ec(){return as||(Zh(Qh),as=Tc.now()+ml)}function Qh(){as=0}function Sc(){this._call=this._time=this._next=null}function Yo(t,e,r){var a=new Sc;return a.restart(t,e,r),a}function As(){Ec(),++Cs;for(var t,e=is;e;)(t=as-e._time)>=0&&e._call.call(void 0,t),e=e._next;--Cs}function Ha(){as=(yl=Tc.now())+ml,Cs=jo=0;try{As()}finally{Cs=0,function(){for(var t,e,r=is,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:is=e);wc=t,Ms(a)}(),as=0}}function Uo(){var t=Tc.now(),e=t-yl;e>1e3&&(ml-=e,yl=t)}function Ms(t){Cs||(jo&&(jo=clearTimeout(jo)),t-as>24?(t<1/0&&(jo=setTimeout(Ha,t-Tc.now()-ml)),zo&&(zo=clearInterval(zo))):(zo||(yl=Tc.now(),zo=setInterval(Uo,1e3)),Cs=1,Zh(Ha)))}function bl(t,e,r){var a=new Sc;return e=e==null?0:+e,a.restart(o=>{a.stop(),t(o+e)},e,r),a}Sc.prototype=Yo.prototype={constructor:Sc,restart:function(t,e,r){if(typeof t!="function")throw new TypeError("callback is not a function");r=(r==null?Ec():+r)+(e==null?0:+e),this._next||wc===this||(wc?wc._next=this:is=this,wc=this),this._call=t,this._time=r,Ms()},stop:function(){this._call&&(this._call=null,this._time=1/0,Ms())}};var Kh=rr("start","end","cancel","interrupt"),Jh=[];function ho(t,e,r,a,o,s){var h=t.__transition;if(h){if(r in h)return}else t.__transition={};(function(f,y,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 bl(D);nt.state===4?(nt.state=6,nt.timer.stop(),nt.on.call("interrupt",f,f.__data__,nt.index,nt.group),delete I[$]):+$<y&&(nt.state=6,nt.timer.stop(),nt.on.call("cancel",f,f.__data__,nt.index,nt.group),delete I[$])}if(bl(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[y],I)return;delete f.__transition}I[y]=v,v.timer=Yo(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:Kh,tween:Jh,time:s.time,delay:s.delay,duration:s.duration,ease:s.ease,timer:null,state:0})}function vl(t,e){var r=Aa(t,e);if(r.state>0)throw new Error("too late; already scheduled");return r}function Va(t,e){var r=Aa(t,e);if(r.state>3)throw new Error("too late; already running");return r}function Aa(t,e){var r=t.__transition;if(!r||!(r=r[e]))throw new Error("transition not found");return r}function Ga(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 vi,t1=180/Math.PI,Ds={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function e1(t,e,r,a,o,s){var h,f,y;return(h=Math.sqrt(t*t+e*e))&&(t/=h,e/=h),(y=t*r+e*a)&&(r-=t*y,a-=e*y),(f=Math.sqrt(r*r+a*a))&&(r/=f,a/=f,y/=f),t*a<e*r&&(t=-t,e=-e,y=-y,h=-h),{translateX:o,translateY:s,rotate:Math.atan2(e,t)*t1,skewX:Math.atan(y)*t1,scaleX:h,scaleY:f}}function mu(t,e,r,a){function o(s){return s.length?s.pop()+" ":""}return function(s,h){var f=[],y=[];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:ua(v,I)},{i:U-2,x:ua(C,D)})}else(I||D)&&R.push("translate("+I+e+D+r)}(s.translateX,s.translateY,h.translateX,h.translateY,f,y),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:ua(v,C)})):C&&I.push(o(I)+"rotate("+C+a)}(s.rotate,h.rotate,f,y),function(v,C,I,D){v!==C?D.push({i:I.push(o(I)+"skewX(",null,a)-2,x:ua(v,C)}):C&&I.push(o(I)+"skewX("+C+a)}(s.skewX,h.skewX,f,y),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:ua(v,I)},{i:U-2,x:ua(C,D)})}else I===1&&D===1||R.push(o(R)+"scale("+I+","+D+")")}(s.scaleX,s.scaleY,h.scaleX,h.scaleY,f,y),s=h=null,function(v){for(var C,I=-1,D=y.length;++I<D;)f[(C=y[I]).i]=C.x(v);return f.join("")}}}var n1=mu(function(t){const e=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(t+"");return e.isIdentity?Ds:e1(e.a,e.b,e.c,e.d,e.e,e.f)},"px, ","px)","deg)"),_l=mu(function(t){return t==null?Ds:(vi||(vi=document.createElementNS("http://www.w3.org/2000/svg","g")),vi.setAttribute("transform",t),(t=vi.transform.baseVal.consolidate())?e1((t=t.matrix).a,t.b,t.c,t.d,t.e,t.f):Ds)},", ",")",")");function ff(t,e){var r,a;return function(){var o=Va(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 r1(t,e,r){var a,o;if(typeof r!="function")throw new Error;return function(){var s=Va(this,t),h=s.tween;if(h!==a){o=(a=h).slice();for(var f={name:e,value:r},y=0,v=o.length;y<v;++y)if(o[y].name===e){o[y]=f;break}y===v&&o.push(f)}s.tween=o}}function bu(t,e,r){var a=t._id;return t.each(function(){var o=Va(this,a);(o.value||(o.value={}))[e]=r.apply(this,arguments)}),function(o){return Aa(o,a).value[e]}}function i1(t,e){var r;return(typeof e=="number"?ua:e instanceof fn?_c:(r=fn(e))?(e=r,_c):Pa)(t,e)}function a1(t){return function(){this.removeAttribute(t)}}function Cc(t){return function(){this.removeAttributeNS(t.space,t.local)}}function vu(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 o1(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 df(t,e,r){var a,o,s;return function(){var h,f,y=r(this);if(y!=null)return(h=this.getAttribute(t))===(f=y+"")?null:h===a&&f===o?s:(o=f,s=e(a=h,y));this.removeAttribute(t)}}function fo(t,e,r){var a,o,s;return function(){var h,f,y=r(this);if(y!=null)return(h=this.getAttributeNS(t.space,t.local))===(f=y+"")?null:h===a&&f===o?s:(o=f,s=e(a=h,y));this.removeAttributeNS(t.space,t.local)}}function $o(t,e){return function(r){this.setAttribute(t,e.call(this,r))}}function Fr(t,e){return function(r){this.setAttributeNS(t.space,t.local,e.call(this,r))}}function s1(t,e){var r,a;function o(){var s=e.apply(this,arguments);return s!==a&&(r=(a=s)&&Fr(t,s)),r}return o._value=e,o}function c1(t,e){var r,a;function o(){var s=e.apply(this,arguments);return s!==a&&(r=(a=s)&&$o(t,s)),r}return o._value=e,o}function pf(t,e){return function(){vl(this,t).delay=+e.apply(this,arguments)}}function gf(t,e){return e=+e,function(){vl(this,t).delay=e}}function _u(t,e){return function(){Va(this,t).duration=+e.apply(this,arguments)}}function yf(t,e){return e=+e,function(){Va(this,t).duration=e}}function mf(t,e){if(typeof e!="function")throw new Error;return function(){Va(this,t).ease=e}}function xu(t,e,r){var a,o,s=function(h){return(h+"").trim().split(/^|\s+/).every(function(f){var y=f.indexOf(".");return y>=0&&(f=f.slice(0,y)),!f||f==="start"})}(e)?vl:Va;return function(){var h=s(this,t),f=h.on;f!==a&&(o=(a=f).copy()).on(e,r),h.on=o}}var ku=Vn.prototype.constructor;function Xa(t){return function(){this.style.removeProperty(t)}}function xl(t,e,r){return function(a){this.style.setProperty(t,e.call(this,a),r)}}function bf(t,e,r){var a,o;function s(){var h=e.apply(this,arguments);return h!==o&&(a=(o=h)&&xl(t,h,r)),a}return s._value=e,s}function l1(t){return function(e){this.textContent=t.call(this,e)}}function wu(t){var e,r;function a(){var o=t.apply(this,arguments);return o!==r&&(e=(r=o)&&l1(o)),e}return a._value=t,a}var oi=0;function Yi(t,e,r,a){this._groups=t,this._parents=e,this._name=r,this._id=a}function os(t){return Vn().transition(t)}function ja(){return++oi}var Ma=Vn.prototype;function Tu(t){return t*t*t}function Eu(t){return--t*t*t+1}function Ac(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}Yi.prototype=os.prototype={constructor:Yi,select:function(t){var e=this._name,r=this._id;typeof t!="function"&&(t=Ci(t));for(var a=this._groups,o=a.length,s=new Array(o),h=0;h<o;++h)for(var f,y,v=a[h],C=v.length,I=s[h]=new Array(C),D=0;D<C;++D)(f=v[D])&&(y=t.call(f,f.__data__,D,v))&&("__data__"in f&&(y.__data__=f.__data__),I[D]=y,ho(I[D],e,r,D,I,Aa(f,r)));return new Yi(s,this._parents,e,r)},selectAll:function(t){var e=this._name,r=this._id;typeof t!="function"&&(t=Ir(t));for(var a=this._groups,o=a.length,s=[],h=[],f=0;f<o;++f)for(var y,v=a[f],C=v.length,I=0;I<C;++I)if(y=v[I]){for(var D,R=t.call(y,y.__data__,I,v),Z=Aa(y,r),U=0,$=R.length;U<$;++U)(D=R[U])&&ho(D,e,r,U,R,Z);s.push(R),h.push(y)}return new Yi(s,h,e,r)},selectChild:Ma.selectChild,selectChildren:Ma.selectChildren,filter:function(t){typeof t!="function"&&(t=Ur(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,y=a[o]=[],v=0;v<f;++v)(s=h[v])&&t.call(s,s.__data__,v,h)&&y.push(s);return new Yi(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 y,v=e[f],C=r[f],I=v.length,D=h[f]=new Array(I),R=0;R<I;++R)(y=v[R]||C[R])&&(D[R]=y);for(;f<a;++f)h[f]=e[f];return new Yi(h,this._parents,this._name,this._id)},selection:function(){return new ku(this._groups,this._parents)},transition:function(){for(var t=this._name,e=this._id,r=ja(),a=this._groups,o=a.length,s=0;s<o;++s)for(var h,f=a[s],y=f.length,v=0;v<y;++v)if(h=f[v]){var C=Aa(h,e);ho(h,t,r,v,f,{time:C.time+C.delay+C.duration,delay:0,duration:C.duration,ease:C.ease})}return new Yi(a,this._parents,t,r)},call:Ma.call,nodes:Ma.nodes,node:Ma.node,size:Ma.size,empty:Ma.empty,each:Ma.each,on:function(t,e){var r=this._id;return arguments.length<2?Aa(this.node(),r).on.on(t):this.each(xu(r,t,e))},attr:function(t,e){var r=Gr(t),a=r==="transform"?_l:i1;return this.attrTween(t,typeof e=="function"?(r.local?fo:df)(r,a,bu(this,"attr."+t,e)):e==null?(r.local?Cc:a1)(r):(r.local?o1:vu)(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=Gr(t);return this.tween(r,(a.local?s1:c1)(a,e))},style:function(t,e,r){var a=(t+="")=="transform"?n1:i1;return e==null?this.styleTween(t,function(o,s){var h,f,y;return function(){var v=We(this,o),C=(this.style.removeProperty(o),We(this,o));return v===C?null:v===h&&C===f?y:y=s(h=v,f=C)}}(t,a)).on("end.style."+t,Xa(t)):typeof e=="function"?this.styleTween(t,function(o,s,h){var f,y,v;return function(){var C=We(this,o),I=h(this),D=I+"";return I==null&&(this.style.removeProperty(o),D=I=We(this,o)),C===D?null:C===f&&D===y?v:(y=D,v=s(f=C,I))}}(t,a,bu(this,"style."+t,e))).each(function(o,s){var h,f,y,v,C="style."+s,I="end."+C;return function(){var D=Va(this,o),R=D.on,Z=D.value[C]==null?v||(v=Xa(s)):void 0;R===h&&y===Z||(f=(h=R).copy()).on(I,y=Z),D.on=f}}(this._id,t)):this.styleTween(t,function(o,s,h){var f,y,v=h+"";return function(){var C=We(this,o);return C===v?null:C===f?y:y=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,bf(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}}(bu(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,wu(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=Aa(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?ff:r1)(r,t,e))},delay:function(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?pf:gf)(e,t)):Aa(this.node(),e).delay},duration:function(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?_u:yf)(e,t)):Aa(this.node(),e).duration},ease:function(t){var e=this._id;return arguments.length?this.each(mf(e,t)):Aa(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;Va(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},y={value:function(){--o==0&&s()}};r.each(function(){var v=Va(this,a),C=v.on;C!==t&&((e=(t=C).copy())._.cancel.push(f),e._.interrupt.push(f),e._.end.push(y)),v.on=e}),o===0&&s()})},[Symbol.iterator]:Ma[Symbol.iterator]};var kl={time:null,delay:0,duration:250,ease:Ac};function wl(t,e){for(var r;!(r=t.__transition)||!(r=r[e]);)if(!(t=t.parentNode))throw new Error(`transition ${e} not found`);return r}Vn.prototype.interrupt=function(t){return this.each(function(){Ga(this,t)})},Vn.prototype.transition=function(t){var e,r;t instanceof Yi?(e=t._id,t=t._name):(e=ja(),(r=kl).time=Ec(),t=t==null?null:t+"");for(var a=this._groups,o=a.length,s=0;s<o;++s)for(var h,f=a[s],y=f.length,v=0;v<y;++v)(h=f[v])&&ho(h,t,e,v,f,r||wl(h,e));return new Yi(a,this._parents,t,e)};var Tl=[null];function vf(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 Yi([[t]],Tl,e,+a)}return null}const Mc=t=>()=>t;function u1(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 _f(t){t.stopImmediatePropagation()}function Dc(t){t.preventDefault(),t.stopImmediatePropagation()}var Su={name:"drag"},Cu={name:"space"},ss={name:"handle"},cs={name:"center"};const{abs:po,max:Ui,min:Rr}=Math;function h1(t){return[+t[0],+t[1]]}function El(t){return[h1(t[0]),h1(t[1])]}var Sl={name:"x",handles:["w","e"].map(Nc),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]]}},Cl={name:"y",handles:["n","s"].map(Nc),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]]}},xf={name:"xy",handles:["n","w","e","s","nw","ne","sw","se"].map(Nc),input:function(t){return t==null?null:El(t)},output:function(t){return t}},go={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"},f1={e:"w",w:"e",nw:"ne",ne:"nw",se:"sw",sw:"se"},d1={n:"s",s:"n",nw:"sw",ne:"se",se:"ne",sw:"nw"},kf={overlay:1,selection:1,n:null,e:1,s:null,w:-1,nw:-1,ne:1,se:1,sw:-1},wf={overlay:1,selection:1,n:-1,e:null,s:1,w:null,nw:-1,ne:-1,se:1,sw:1};function Nc(t){return{type:t}}function Tf(t){return!t.ctrlKey&&!t.button}function Ef(){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 yo(){return navigator.maxTouchPoints||"ontouchstart"in this}function Au(t){for(;!t.__brush;)if(!(t=t.parentNode))return;return t.__brush}function p1(t){return t[0][0]===t[1][0]||t[0][1]===t[1][1]}function g1(t){var e=t.__brush;return e?e.dim.output(e.selection):null}function y1(){return Ml(Sl)}function Al(){return Ml(Cl)}function m1(){return Ml(xf)}function Ml(t){var e,r=Ef,a=Tf,o=yo,s=!0,h=rr("start","brush","end"),f=6;function y($){var W=$.property("__brush",U).selectAll(".overlay").data([Nc("overlay")]);W.enter().append("rect").attr("class","overlay").attr("pointer-events","all").attr("cursor",go.overlay).merge(W).each(function(){var nt=Au(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([Nc("selection")]).enter().append("rect").attr("class","selection").attr("cursor",go.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 go[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=Au(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,Yt,Rt,Pt,jt=this,gt=$.target.__data__.type,Ot=(s&&$.metaKey?gt="overlay":gt)==="selection"?Su:s&&$.altKey?cs:ss,Wt=t===Cl?null:kf[gt],ae=t===Sl?null:wf[gt],Te=Au(jt),Pe=Te.extent,He=Te.selection,yn=Pe[0][0],Ve=Pe[0][1],$n=Pe[1][0],qn=Pe[1][1],Cn=0,Fn=0,wr=Wt&&ae&&s&&$.shiftKey,ar=Array.from($.touches||[$],lr=>{const ji=lr.identifier;return(lr=ha(lr,jt)).point0=lr.slice(),lr.identifier=ji,lr});Ga(jt);var Ba=C(jt,arguments,!0).beforestart();if(gt==="overlay"){He&&(Yt=!0);const lr=[ar[0],ar[1]||ar[0]];Te.selection=He=[[W=t===Cl?yn:Rr(lr[0][0],lr[1][0]),nt=t===Sl?Ve:Rr(lr[0][1],lr[1][1])],[lt=t===Cl?$n:Ui(lr[0][0],lr[1][0]),Jt=t===Sl?qn:Ui(lr[0][1],lr[1][1])]],ar.length>1&&ll($)}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 cc=kr(jt).attr("pointer-events","none"),Bo=cc.selectAll(".overlay").attr("cursor",go[gt]);if($.touches)Ba.moved=Mm,Ba.ended=Dm;else{var uu=kr($.view).on("mousemove.brush",Mm,!0).on("mouseup.brush",Dm,!0);s&&uu.on("keydown.brush",C6,!0).on("keyup.brush",A6,!0),lo($.view)}v.call(jt),Ba.start($,Ot.name)}function Mm(lr){for(const ji of lr.changedTouches||[lr])for(const qh of ar)qh.identifier===ji.identifier&&(qh.cur=ha(ji,jt));if(wr&&!Rt&&!Pt&&ar.length===1){const ji=ar[0];po(ji.cur[0]-ji[0])>po(ji.cur[1]-ji[1])?Pt=!0:Rt=!0}for(const ji of ar)ji.cur&&(ji[0]=ji.cur[0],ji[1]=ji.cur[1]);Yt=!0,Dc(lr),ll(lr)}function ll(lr){const ji=ar[0],qh=ji.point0;var lc;switch(Cn=ji[0]-qh[0],Fn=ji[1]-qh[1],Ot){case Cu:case Su:Wt&&(Cn=Ui(yn-W,Rr($n-lt,Cn)),it=W+Cn,pt=lt+Cn),ae&&(Fn=Ui(Ve-nt,Rr(qn-Jt,Fn)),rt=nt+Fn,ye=Jt+Fn);break;case ss:ar[1]?(Wt&&(it=Ui(yn,Rr($n,ar[0][0])),pt=Ui(yn,Rr($n,ar[1][0])),Wt=1),ae&&(rt=Ui(Ve,Rr(qn,ar[0][1])),ye=Ui(Ve,Rr(qn,ar[1][1])),ae=1)):(Wt<0?(Cn=Ui(yn-W,Rr($n-W,Cn)),it=W+Cn,pt=lt):Wt>0&&(Cn=Ui(yn-lt,Rr($n-lt,Cn)),it=W,pt=lt+Cn),ae<0?(Fn=Ui(Ve-nt,Rr(qn-nt,Fn)),rt=nt+Fn,ye=Jt):ae>0&&(Fn=Ui(Ve-Jt,Rr(qn-Jt,Fn)),rt=nt,ye=Jt+Fn));break;case cs:Wt&&(it=Ui(yn,Rr($n,W-Cn*Wt)),pt=Ui(yn,Rr($n,lt+Cn*Wt))),ae&&(rt=Ui(Ve,Rr(qn,nt-Fn*ae)),ye=Ui(Ve,Rr(qn,Jt+Fn*ae)))}pt<it&&(Wt*=-1,lc=W,W=lt,lt=lc,lc=it,it=pt,pt=lc,gt in f1&&Bo.attr("cursor",go[gt=f1[gt]])),ye<rt&&(ae*=-1,lc=nt,nt=Jt,Jt=lc,lc=rt,rt=ye,ye=lc,gt in d1&&Bo.attr("cursor",go[gt=d1[gt]])),Te.selection&&(He=Te.selection),Rt&&(it=He[0][0],pt=He[1][0]),Pt&&(rt=He[0][1],ye=He[1][1]),He[0][0]===it&&He[0][1]===rt&&He[1][0]===pt&&He[1][1]===ye||(Te.selection=[[it,rt],[pt,ye]],v.call(jt),Ba.brush(lr,Ot.name))}function Dm(lr){if(_f(lr),lr.touches){if(lr.touches.length)return;e&&clearTimeout(e),e=setTimeout(function(){e=null},500)}else uo(lr.view,Yt),uu.on("keydown.brush keyup.brush mousemove.brush mouseup.brush",null);cc.attr("pointer-events","all"),Bo.attr("cursor",go.overlay),Te.selection&&(He=Te.selection),p1(He)&&(Te.selection=null,v.call(jt)),Ba.end(lr,Ot.name)}function C6(lr){switch(lr.keyCode){case 16:wr=Wt&&ae;break;case 18:Ot===ss&&(Wt&&(lt=pt-Cn*Wt,W=it+Cn*Wt),ae&&(Jt=ye-Fn*ae,nt=rt+Fn*ae),Ot=cs,ll(lr));break;case 32:Ot!==ss&&Ot!==cs||(Wt<0?lt=pt-Cn:Wt>0&&(W=it-Cn),ae<0?Jt=ye-Fn:ae>0&&(nt=rt-Fn),Ot=Cu,Bo.attr("cursor",go.selection),ll(lr));break;default:return}Dc(lr)}function A6(lr){switch(lr.keyCode){case 16:wr&&(Rt=Pt=wr=!1,ll(lr));break;case 18:Ot===cs&&(Wt<0?lt=pt:Wt>0&&(W=it),ae<0?Jt=ye:ae>0&&(nt=rt),Ot=ss,ll(lr));break;case 32:Ot===Cu&&(lr.altKey?(Wt&&(lt=pt-Cn*Wt,W=it+Cn*Wt),ae&&(Jt=ye-Fn*ae,nt=rt+Fn*ae),Ot=cs):(Wt<0?lt=pt:Wt>0&&(W=it),ae<0?Jt=ye:ae>0&&(nt=rt),Ot=ss),Bo.attr("cursor",go[gt]),ll(lr));break;default:return}Dc(lr)}}function R($){C(this,arguments).moved($)}function Z($){C(this,arguments).ended($)}function U(){var $=this.__brush||{selection:null};return $.extent=El(r.apply(this,arguments)),$.dim=t,$}return y.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=Jn(pt,Jt);function Yt(Rt){rt.selection=Rt===1&&Jt===null?null:ye(Rt),v.call(nt),lt.brush()}return pt!==null&&Jt!==null?Yt:Yt(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();Ga(nt),lt.selection=pt===null?null:pt,v.call(nt),Jt.start(it).brush(it).end(it)})},y.clear=function($,W){y.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 u1($,{sourceEvent:W,target:y,selection:t.output(this.state.selection),mode:it,dispatch:h}),nt)}},y.extent=function($){return arguments.length?(r=typeof $=="function"?$:Mc(El($)),y):r},y.filter=function($){return arguments.length?(a=typeof $=="function"?$:Mc(!!$),y):a},y.touchable=function($){return arguments.length?(o=typeof $=="function"?$:Mc(!!$),y):o},y.handleSize=function($){return arguments.length?(f=+$,y):f},y.keyModifiers=function($){return arguments.length?(s=!!$,y):s},y.on=function(){var $=h.on.apply(h,arguments);return $===h?y:$},y}var Mu=Math.abs,Wo=Math.cos,Ns=Math.sin,Du=Math.PI,Os=Du/2,Dl=2*Du,Oc=Math.max,Da=1e-12;function Bc(t,e){return Array.from({length:e-t},(r,a)=>t+a)}function Nu(t){return function(e,r){return t(e.source.value+e.target.value,r.source.value+r.target.value)}}function Lc(){return Fc(!1,!1)}function Ic(){return Fc(!1,!0)}function Ou(){return Fc(!0,!1)}function Fc(t,e){var r=0,a=null,o=null,s=null;function h(f){var y,v=f.length,C=new Array(v),I=Bc(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]=$}y=(Z=Oc(0,Dl-r*v)/Z)?r:Dl/v;{let U=0;a&&I.sort(($,W)=>a(C[$],C[W]));for(const $ of I){const W=U;if(t){const it=Bc(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=Bc(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+=y}}return(D=Object.values(D)).groups=R,s?D.sort(s):D}return h.padAngle=function(f){return arguments.length?(r=Oc(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=Nu(f))._=f,h):s&&s._},h}const Rc=Math.PI,qo=2*Rc,Ho=1e-6,Nl=qo-Ho;function ls(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function Ol(){return new ls}ls.prototype=Ol.prototype={constructor:ls,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,y=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>Ho)if(Math.abs(C*f-y*v)>Ho&&o){var D=r-s,R=a-h,Z=f*f+y*y,U=D*D+R*R,$=Math.sqrt(Z),W=Math.sqrt(I),it=o*Math.tan((Rc-Math.acos((Z+I-U)/(2*$*W)))/2),nt=it/W,rt=it/$;Math.abs(nt-1)>Ho&&(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*y)}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),y=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"+y+","+v:(Math.abs(this._x1-y)>Ho||Math.abs(this._y1-v)>Ho)&&(this._+="L"+y+","+v),r&&(I<0&&(I=I%qo+qo),I>Nl?this._+="A"+r+","+r+",0,1,"+C+","+(t-h)+","+(e-f)+"A"+r+","+r+",0,1,"+C+","+(this._x1=y)+","+(this._y1=v):I>Ho&&(this._+="A"+r+","+r+",0,"+ +(I>=Rc)+","+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 mo=Ol;var b1=Array.prototype.slice;function Vo(t){return function(){return t}}function Sf(t){return t.source}function Bu(t){return t.target}function Lu(t){return t.radius}function v1(t){return t.startAngle}function _1(t){return t.endAngle}function Bs(){return 0}function _i(){return 10}function Iu(t){var e=Sf,r=Bu,a=Lu,o=Lu,s=v1,h=_1,f=Bs,y=null;function v(){var C,I=e.apply(this,arguments),D=r.apply(this,arguments),R=f.apply(this,arguments)/2,Z=b1.call(arguments),U=+a.apply(this,(Z[0]=I,Z)),$=s.apply(this,Z)-Os,W=h.apply(this,Z)-Os,it=+o.apply(this,(Z[0]=D,Z)),nt=s.apply(this,Z)-Os,rt=h.apply(this,Z)-Os;if(y||(y=C=mo()),R>Da&&(Mu(W-$)>2*R+Da?W>$?($+=R,W-=R):($-=R,W+=R):$=W=($+W)/2,Mu(rt-nt)>2*R+Da?rt>nt?(nt+=R,rt-=R):(nt-=R,rt+=R):nt=rt=(nt+rt)/2),y.moveTo(U*Wo($),U*Ns($)),y.arc(0,0,U,$,W),$!==nt||W!==rt)if(t){var lt=+t.apply(this,arguments),pt=it-lt,Jt=(nt+rt)/2;y.quadraticCurveTo(0,0,pt*Wo(nt),pt*Ns(nt)),y.lineTo(it*Wo(Jt),it*Ns(Jt)),y.lineTo(pt*Wo(rt),pt*Ns(rt))}else y.quadraticCurveTo(0,0,it*Wo(nt),it*Ns(nt)),y.arc(0,0,it,nt,rt);if(y.quadraticCurveTo(0,0,U*Wo($),U*Ns($)),y.closePath(),C)return y=null,C+""||null}return t&&(v.headRadius=function(C){return arguments.length?(t=typeof C=="function"?C:Vo(+C),v):t}),v.radius=function(C){return arguments.length?(a=o=typeof C=="function"?C:Vo(+C),v):a},v.sourceRadius=function(C){return arguments.length?(a=typeof C=="function"?C:Vo(+C),v):a},v.targetRadius=function(C){return arguments.length?(o=typeof C=="function"?C:Vo(+C),v):o},v.startAngle=function(C){return arguments.length?(s=typeof C=="function"?C:Vo(+C),v):s},v.endAngle=function(C){return arguments.length?(h=typeof C=="function"?C:Vo(+C),v):h},v.padAngle=function(C){return arguments.length?(f=typeof C=="function"?C:Vo(+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?(y=C==null?null:C,v):y},v}function Ls(){return Iu()}function x1(){return Iu(_i)}const Fu=Math.PI/180,Ru=180/Math.PI,Pu=.96422,ju=.82521,bo=4/29,Pc=6/29,k1=3*Pc*Pc;function w1(t){if(t instanceof za)return new za(t.l,t.a,t.b,t.opacity);if(t instanceof Za)return vo(t);t instanceof jr||(t=$r(t));var e,r,a=$u(t.r),o=$u(t.g),s=$u(t.b),h=zu((.2225045*a+.7168786*o+.0606169*s)/1);return a===o&&o===s?e=r=h:(e=zu((.4360747*a+.3850649*o+.1430804*s)/Pu),r=zu((.0139322*a+.0971045*o+.7141733*s)/ju)),new za(116*h-16,500*(e-h),200*(h-r),t.opacity)}function T1(t,e){return new za(t,0,0,e==null?1:e)}function jc(t,e,r,a){return arguments.length===1?w1(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 zu(t){return t>.008856451679035631?Math.pow(t,1/3):t/k1+bo}function Yu(t){return t>Pc?t*t*t:k1*(t-bo)}function Uu(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function $u(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function E1(t){if(t instanceof Za)return new Za(t.h,t.c,t.l,t.opacity);if(t instanceof za||(t=w1(t)),t.a===0&&t.b===0)return new Za(NaN,0<t.l&&t.l<100?0:NaN,t.l,t.opacity);var e=Math.atan2(t.b,t.a)*Ru;return new Za(e<0?e+360:e,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}function Bl(t,e,r,a){return arguments.length===1?E1(t):new Za(r,e,t,a==null?1:a)}function Is(t,e,r,a){return arguments.length===1?E1(t):new Za(t,e,r,a==null?1:a)}function Za(t,e,r,a){this.h=+t,this.c=+e,this.l=+r,this.opacity=+a}function vo(t){if(isNaN(t.h))return new za(t.l,0,0,t.opacity);var e=t.h*Fu;return new za(t.l,Math.cos(e)*t.c,Math.sin(e)*t.c,t.opacity)}zi(za,jc,Ni(xn,{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 jr(Uu(3.1338561*(e=Pu*Yu(e))-1.6168667*(t=1*Yu(t))-.4906146*(r=ju*Yu(r))),Uu(-.9787684*e+1.9161415*t+.033454*r),Uu(.0719453*e-.2289914*t+1.4052427*r),this.opacity)}})),zi(Za,Is,Ni(xn,{brighter:function(t){return new Za(this.h,this.c,this.l+18*(t==null?1:t),this.opacity)},darker:function(t){return new Za(this.h,this.c,this.l-18*(t==null?1:t),this.opacity)},rgb:function(){return vo(this).rgb()}}));var Qa=-.14861,Wu=1.78277,qu=-.29227,Ll=-.90649,us=1.97294,ta=us*Ll,Fs=us*Wu,_o=Wu*qu-Ll*Qa;function zc(t){if(t instanceof xo)return new xo(t.h,t.s,t.l,t.opacity);t instanceof jr||(t=$r(t));var e=t.r/255,r=t.g/255,a=t.b/255,o=(_o*a+ta*e-Fs*r)/(_o+ta-Fs),s=a-o,h=(us*(r-o)-qu*s)/Ll,f=Math.sqrt(h*h+s*s)/(us*o*(1-o)),y=f?Math.atan2(h,s)*Ru-120:NaN;return new xo(y<0?y+360:y,f,o,t.opacity)}function Ya(t,e,r,a){return arguments.length===1?zc(t):new xo(t,e,r,a==null?1:a)}function xo(t,e,r,a){this.h=+t,this.s=+e,this.l=+r,this.opacity=+a}zi(xo,Ya,Ni(xn,{brighter:function(t){return t=t==null?ba:Math.pow(ba,t),new xo(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=t==null?Ki:Math.pow(Ki,t),new xo(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=isNaN(this.h)?0:(this.h+120)*Fu,e=+this.l,r=isNaN(this.s)?0:this.s*e*(1-e),a=Math.cos(t),o=Math.sin(t);return new jr(255*(e+r*(Qa*a+Wu*o)),255*(e+r*(qu*a+Ll*o)),255*(e+r*(us*a)),this.opacity)}}));var S1=Array.prototype.slice;function fi(t,e){return t-e}const ko=t=>()=>t;function C1(t,e){for(var r,a=-1,o=e.length;++a<o;)if(r=A1(t,e[a]))return r;return 0}function A1(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 y=t[s],v=y[0],C=y[1],I=t[f],D=I[0],R=I[1];if(M1(y,I,e))return 0;C>a!=R>a&&r<(D-v)*(a-C)/(R-C)+v&&(o=-o)}return o}function M1(t,e,r){var a,o,s,h;return function(f,y,v){return(y[0]-f[0])*(v[1]-f[1])==(v[0]-f[0])*(y[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 Rs(){}var wo=[[],[[[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 Il(){var t=1,e=1,r=Oe,a=f;function o(y){var v=r(y);if(Array.isArray(v))v=v.slice().sort(fi);else{const C=ut(y),I=Dt(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(y,C))}function s(y,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,wo[it<<1].forEach(Jt);++U<t-1;)W=it,it=D[U+1]>=R,wo[W|it<<1].forEach(Jt);for(wo[it<<0].forEach(Jt);++$<e-1;){for(U=-1,it=D[$*t+t]>=R,nt=D[$*t]>=R,wo[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,wo[W|it<<1|nt<<2|rt<<3].forEach(Jt);wo[it|nt<<3].forEach(Jt)}for(U=-1,nt=D[$*t]>=R,wo[nt<<2].forEach(Jt);++U<t-1;)rt=nt,nt=D[$*t+U+1]>=R,wo[nt<<2|rt<<3].forEach(Jt);function Jt(ye){var Yt,Rt,Pt=[ye[0][0]+U,ye[0][1]+$],jt=[ye[1][0]+U,ye[1][1]+$],gt=h(Pt),Ot=h(jt);(Yt=pt[gt])?(Rt=lt[Ot])?(delete pt[Yt.end],delete lt[Rt.start],Yt===Rt?(Yt.ring.push(jt),Z(Yt.ring)):lt[Yt.start]=pt[Rt.end]={start:Yt.start,end:Rt.end,ring:Yt.ring.concat(Rt.ring)}):(delete pt[Yt.end],Yt.ring.push(jt),pt[Yt.end=Ot]=Yt):(Yt=lt[Ot])?(Rt=pt[gt])?(delete lt[Yt.start],delete pt[Rt.end],Yt===Rt?(Yt.ring.push(jt),Z(Yt.ring)):lt[Rt.start]=pt[Yt.end]={start:Rt.start,end:Yt.end,ring:Rt.ring.concat(Yt.ring)}):(delete lt[Yt.start],Yt.ring.unshift(Pt),lt[Yt.start=gt]=Yt):lt[gt]=pt[Ot]={start:gt,end:Ot,ring:[Pt,jt]}}wo[nt<<3].forEach(Jt)}(y,v,function(D){a(D,y,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(C1((R=C[Z])[0],D)!==-1)return void R.push(D)}),{type:"MultiPolygon",value:v,coordinates:C}}function h(y){return 2*y[0]+y[1]*(t+1)*4}function f(y,v,C){y.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(y){if(!arguments.length)return[t,e];var v=Math.floor(y[0]),C=Math.floor(y[1]);if(!(v>=0&&C>=0))throw new Error("invalid size");return t=v,e=C,o},o.thresholds=function(y){return arguments.length?(r=typeof y=="function"?y:Array.isArray(y)?ko(S1.call(y)):ko(y),o):r},o.smooth=function(y){return arguments.length?(a=y?f:Rs,o):a===f},o}function Hu(t,e,r){for(var a=t.width,o=t.height,s=1+(r<<1),h=0;h<o;++h)for(var f=0,y=0;f<a+r;++f)f<a&&(y+=t.data[f+h*a]),f>=r&&(f>=s&&(y-=t.data[f-s+h*a]),e.data[f-r+h*a]=y/Math.min(f+1,a-1+s-f,s))}function Vu(t,e,r){for(var a=t.width,o=t.height,s=1+(r<<1),h=0;h<a;++h)for(var f=0,y=0;f<o+r;++f)f<o&&(y+=t.data[h+f*a]),f>=r&&(f>=s&&(y-=t.data[h+(f-s)*a]),e.data[h+(f-r)*a]=y/Math.min(f+1,o-1+s-f,s))}function Yc(t){return t[0]}function Go(t){return t[1]}function Ua(){return 1}function Cf(){var t=Yc,e=Go,r=Ua,a=960,o=500,s=20,h=2,f=3*s,y=a+2*f>>h,v=o+2*f>>h,C=ko(20);function I(W){var it=new Float32Array(y*v),nt=new Float32Array(y*v),rt=Math.pow(2,-h);W.forEach(function(Jt,ye,Yt){var Rt=(t(Jt,ye,Yt)+f)*rt,Pt=(e(Jt,ye,Yt)+f)*rt,jt=+r(Jt,ye,Yt);if(Rt>=0&&Rt<y&&Pt>=0&&Pt<v){var gt=Math.floor(Rt),Ot=Math.floor(Pt),Wt=Rt-gt-.5,ae=Pt-Ot-.5;it[gt+Ot*y]+=(1-Wt)*(1-ae)*jt,it[gt+1+Ot*y]+=Wt*(1-ae)*jt,it[gt+1+(Ot+1)*y]+=Wt*ae*jt,it[gt+(Ot+1)*y]+=(1-Wt)*ae*jt}}),Hu({width:y,height:v,data:it},{width:y,height:v,data:nt},s>>h),Vu({width:y,height:v,data:nt},{width:y,height:v,data:it},s>>h),Hu({width:y,height:v,data:it},{width:y,height:v,data:nt},s>>h),Vu({width:y,height:v,data:nt},{width:y,height:v,data:it},s>>h),Hu({width:y,height:v,data:it},{width:y,height:v,data:nt},s>>h),Vu({width:y,height:v,data:nt},{width:y,height:v,data:it},s>>h);var lt=C(it);if(!Array.isArray(lt)){var pt=$e(it);lt=Dt(0,pt,lt),(lt=De(0,Math.floor(pt/lt)*lt,lt)).shift()}return Il().thresholds(lt).size([y,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 y=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:ko(+W),I):t},I.y=function(W){return arguments.length?(e=typeof W=="function"?W:ko(+W),I):e},I.weight=function(W){return arguments.length?(r=typeof W=="function"?W:ko(+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)?ko(S1.call(W)):ko(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 Ti=134217729;function Uc(t,e,r,a,o){let s,h,f,y,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,y=h-s,f=s-(h-y)+(v-y),v=e[++I]):(h=s+C,y=h-s,f=s-(h-y)+(C-y),C=a[++D]),s=h,f!==0&&(o[R++]=f);for(;I<t;)h=s+v,y=h-s,f=s-(h-y)+(v-y),v=e[++I],s=h,f!==0&&(o[R++]=f);for(;D<r;)h=s+C,y=h-s,f=s-(h-y)+(C-y),C=a[++D],s=h,f!==0&&(o[R++]=f);return s===0&&R!==0||(o[R++]=s),R}function qe(t){return new Float64Array(t)}const Fi=qe(4),Ps=qe(8),hs=qe(12),js=qe(16),$i=qe(4);function $c(t,e,r,a,o,s){const h=(e-s)*(r-o),f=(t-o)*(a-s),y=h-f;if(h===0||f===0||h>0!=f>0)return y;const v=Math.abs(h+f);return Math.abs(y)>=33306690738754716e-32*v?y:-function(C,I,D,R,Z,U,$){let W,it,nt,rt,lt,pt,Jt,ye,Yt,Rt,Pt,jt,gt,Ot,Wt,ae,Te,Pe;const He=C-Z,yn=D-Z,Ve=I-U,$n=R-U;Ot=He*$n,pt=Ti*He,Jt=pt-(pt-He),ye=He-Jt,pt=Ti*$n,Yt=pt-(pt-$n),Rt=$n-Yt,Wt=ye*Rt-(Ot-Jt*Yt-ye*Yt-Jt*Rt),ae=Ve*yn,pt=Ti*Ve,Jt=pt-(pt-Ve),ye=Ve-Jt,pt=Ti*yn,Yt=pt-(pt-yn),Rt=yn-Yt,Te=ye*Rt-(ae-Jt*Yt-ye*Yt-Jt*Rt),Pt=Wt-Te,lt=Wt-Pt,Fi[0]=Wt-(Pt+lt)+(lt-Te),jt=Ot+Pt,lt=jt-Ot,gt=Ot-(jt-lt)+(Pt-lt),Pt=gt-ae,lt=gt-Pt,Fi[1]=gt-(Pt+lt)+(lt-ae),Pe=jt+Pt,lt=Pe-jt,Fi[2]=jt-(Pe-lt)+(Pt-lt),Fi[3]=Pe;let qn=function(Ba,cc){let Bo=cc[0];for(let uu=1;uu<4;uu++)Bo+=cc[uu];return Bo}(0,Fi),Cn=22204460492503146e-32*$;if(qn>=Cn||-qn>=Cn||(lt=C-He,W=C-(He+lt)+(lt-Z),lt=D-yn,nt=D-(yn+lt)+(lt-Z),lt=I-Ve,it=I-(Ve+lt)+(lt-U),lt=R-$n,rt=R-($n+lt)+(lt-U),W===0&&it===0&&nt===0&&rt===0)||(Cn=11093356479670487e-47*$+33306690738754706e-32*Math.abs(qn),qn+=He*rt+$n*W-(Ve*nt+yn*it),qn>=Cn||-qn>=Cn))return qn;Ot=W*$n,pt=Ti*W,Jt=pt-(pt-W),ye=W-Jt,pt=Ti*$n,Yt=pt-(pt-$n),Rt=$n-Yt,Wt=ye*Rt-(Ot-Jt*Yt-ye*Yt-Jt*Rt),ae=it*yn,pt=Ti*it,Jt=pt-(pt-it),ye=it-Jt,pt=Ti*yn,Yt=pt-(pt-yn),Rt=yn-Yt,Te=ye*Rt-(ae-Jt*Yt-ye*Yt-Jt*Rt),Pt=Wt-Te,lt=Wt-Pt,$i[0]=Wt-(Pt+lt)+(lt-Te),jt=Ot+Pt,lt=jt-Ot,gt=Ot-(jt-lt)+(Pt-lt),Pt=gt-ae,lt=gt-Pt,$i[1]=gt-(Pt+lt)+(lt-ae),Pe=jt+Pt,lt=Pe-jt,$i[2]=jt-(Pe-lt)+(Pt-lt),$i[3]=Pe;const Fn=Uc(4,Fi,4,$i,Ps);Ot=He*rt,pt=Ti*He,Jt=pt-(pt-He),ye=He-Jt,pt=Ti*rt,Yt=pt-(pt-rt),Rt=rt-Yt,Wt=ye*Rt-(Ot-Jt*Yt-ye*Yt-Jt*Rt),ae=Ve*nt,pt=Ti*Ve,Jt=pt-(pt-Ve),ye=Ve-Jt,pt=Ti*nt,Yt=pt-(pt-nt),Rt=nt-Yt,Te=ye*Rt-(ae-Jt*Yt-ye*Yt-Jt*Rt),Pt=Wt-Te,lt=Wt-Pt,$i[0]=Wt-(Pt+lt)+(lt-Te),jt=Ot+Pt,lt=jt-Ot,gt=Ot-(jt-lt)+(Pt-lt),Pt=gt-ae,lt=gt-Pt,$i[1]=gt-(Pt+lt)+(lt-ae),Pe=jt+Pt,lt=Pe-jt,$i[2]=jt-(Pe-lt)+(Pt-lt),$i[3]=Pe;const wr=Uc(Fn,Ps,4,$i,hs);Ot=W*rt,pt=Ti*W,Jt=pt-(pt-W),ye=W-Jt,pt=Ti*rt,Yt=pt-(pt-rt),Rt=rt-Yt,Wt=ye*Rt-(Ot-Jt*Yt-ye*Yt-Jt*Rt),ae=it*nt,pt=Ti*it,Jt=pt-(pt-it),ye=it-Jt,pt=Ti*nt,Yt=pt-(pt-nt),Rt=nt-Yt,Te=ye*Rt-(ae-Jt*Yt-ye*Yt-Jt*Rt),Pt=Wt-Te,lt=Wt-Pt,$i[0]=Wt-(Pt+lt)+(lt-Te),jt=Ot+Pt,lt=jt-Ot,gt=Ot-(jt-lt)+(Pt-lt),Pt=gt-ae,lt=gt-Pt,$i[1]=gt-(Pt+lt)+(lt-ae),Pe=jt+Pt,lt=Pe-jt,$i[2]=jt-(Pe-lt)+(Pt-lt),$i[3]=Pe;const ar=Uc(wr,hs,4,$i,js);return js[ar-1]}(t,e,r,a,o,s,v)}qe(4),qe(4),qe(4),qe(4),qe(4),qe(4),qe(4),qe(4),qe(4),qe(8),qe(8),qe(8),qe(4),qe(8),qe(8),qe(8),qe(12),qe(192),qe(192),qe(4),qe(4),qe(4),qe(4),qe(4),qe(4),qe(4),qe(4),qe(8),qe(8),qe(8),qe(8),qe(8),qe(8),qe(8),qe(8),qe(8),qe(4),qe(4),qe(4),qe(8),qe(16),qe(16),qe(16),qe(32),qe(32),qe(48),qe(64),qe(1152),qe(1152),qe(4),qe(4),qe(4),qe(4),qe(4),qe(4),qe(4),qe(4),qe(4),qe(4),qe(24),qe(24),qe(24),qe(24),qe(24),qe(24),qe(24),qe(24),qe(24),qe(24),qe(1152),qe(1152),qe(1152),qe(1152),qe(1152),qe(2304),qe(2304),qe(3456),qe(5760),qe(8),qe(8),qe(8),qe(16),qe(24),qe(48),qe(48),qe(96),qe(192),qe(384),qe(384),qe(384),qe(768),qe(96),qe(96),qe(96),qe(1152);const Fl=Math.pow(2,-52),Wc=new Uint32Array(512);class qc{static from(e,r=Af,a=Mf){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 qc(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,y=1/0,v=-1/0,C=-1/0;for(let Rt=0;Rt<h;Rt++){const Pt=e[2*Rt],jt=e[2*Rt+1];Pt<f&&(f=Pt),jt<y&&(y=jt),Pt>v&&(v=Pt),jt>C&&(C=jt),this._ids[Rt]=Rt}const I=(f+v)/2,D=(y+C)/2;let R,Z,U,$=1/0;for(let Rt=0;Rt<h;Rt++){const Pt=Rl(I,D,e[2*Rt],e[2*Rt+1]);Pt<$&&(R=Rt,$=Pt)}const W=e[2*R],it=e[2*R+1];$=1/0;for(let Rt=0;Rt<h;Rt++){if(Rt===R)continue;const Pt=Rl(W,it,e[2*Rt],e[2*Rt+1]);Pt<$&&Pt>0&&(Z=Rt,$=Pt)}let nt=e[2*Z],rt=e[2*Z+1],lt=1/0;for(let Rt=0;Rt<h;Rt++){if(Rt===R||Rt===Z)continue;const Pt=Gu(W,it,nt,rt,e[2*Rt],e[2*Rt+1]);Pt<lt&&(U=Rt,lt=Pt)}let pt=e[2*U],Jt=e[2*U+1];if(lt===1/0){for(let jt=0;jt<h;jt++)this._dists[jt]=e[2*jt]-e[0]||e[2*jt+1]-e[1];To(this._ids,this._dists,0,h-1);const Rt=new Uint32Array(h);let Pt=0;for(let jt=0,gt=-1/0;jt<h;jt++){const Ot=this._ids[jt];this._dists[Ot]>gt&&(Rt[Pt++]=Ot,gt=this._dists[Ot])}return this.hull=Rt.subarray(0,Pt),this.triangles=new Uint32Array(0),void(this.halfedges=new Uint32Array(0))}if($c(W,it,nt,rt,pt,Jt)<0){const Rt=Z,Pt=nt,jt=rt;Z=U,nt=pt,rt=Jt,U=Rt,pt=Pt,Jt=jt}const ye=function(Rt,Pt,jt,gt,Ot,Wt){const ae=jt-Rt,Te=gt-Pt,Pe=Ot-Rt,He=Wt-Pt,yn=ae*ae+Te*Te,Ve=Pe*Pe+He*He,$n=.5/(ae*He-Te*Pe);return{x:Rt+(He*yn-Te*Ve)*$n,y:Pt+(ae*Ve-Pe*yn)*$n}}(W,it,nt,rt,pt,Jt);this._cx=ye.x,this._cy=ye.y;for(let Rt=0;Rt<h;Rt++)this._dists[Rt]=Rl(e[2*Rt],e[2*Rt+1],ye.x,ye.y);To(this._ids,this._dists,0,h-1),this._hullStart=R;let Yt=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 Rt,Pt,jt=0;jt<this._ids.length;jt++){const gt=this._ids[jt],Ot=e[2*gt],Wt=e[2*gt+1];if(jt>0&&Math.abs(Ot-Rt)<=Fl&&Math.abs(Wt-Pt)<=Fl||(Rt=Ot,Pt=Wt,gt===R||gt===Z||gt===U))continue;let ae=0;for(let Ve=0,$n=this._hashKey(Ot,Wt);Ve<this._hashSize&&(ae=s[($n+Ve)%this._hashSize],ae===-1||ae===a[ae]);Ve++);ae=r[ae];let Te,Pe=ae;for(;Te=a[Pe],$c(Ot,Wt,e[2*Pe],e[2*Pe+1],e[2*Te],e[2*Te+1])>=0;)if(Pe=Te,Pe===ae){Pe=-1;break}if(Pe===-1)continue;let He=this._addTriangle(Pe,gt,a[Pe],-1,-1,o[Pe]);o[gt]=this._legalize(He+2),o[Pe]=He,Yt++;let yn=a[Pe];for(;Te=a[yn],$c(Ot,Wt,e[2*yn],e[2*yn+1],e[2*Te],e[2*Te+1])<0;)He=this._addTriangle(yn,gt,Te,o[gt],-1,o[yn]),o[gt]=this._legalize(He+2),a[yn]=yn,Yt--,yn=Te;if(Pe===ae)for(;Te=r[Pe],$c(Ot,Wt,e[2*Te],e[2*Te+1],e[2*Pe],e[2*Pe+1])<0;)He=this._addTriangle(Te,gt,Pe,-1,o[Pe],o[Te]),this._legalize(He+2),o[Te]=He,a[Pe]=Pe,Yt--,Pe=Te;this._hullStart=r[gt]=Pe,a[Pe]=r[yn]=gt,a[gt]=yn,s[this._hashKey(Ot,Wt)]=gt,s[this._hashKey(e[2*Pe],e[2*Pe+1])]=Pe}this.hull=new Uint32Array(Yt);for(let Rt=0,Pt=this._hullStart;Rt<Yt;Rt++)this.hull[Rt]=Pt,Pt=a[Pt];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],y=e-e%3;if(h=y+(e+2)%3,f===-1){if(s===0)break;e=Wc[--s];continue}const v=f-f%3,C=y+(e+1)%3,I=v+(f+2)%3,D=r[h],R=r[e],Z=r[C],U=r[I];if(D1(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<Wc.length&&(Wc[s++]=W)}else{if(s===0)break;e=Wc[--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 Rl(t,e,r,a){const o=t-r,s=e-a;return o*o+s*s}function D1(t,e,r,a,o,s,h,f){const y=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 y*(I*U-Z*R)-v*(C*U-Z*D)+(y*y+v*v)*(C*R-I*D)<0}function Gu(t,e,r,a,o,s){const h=r-t,f=a-e,y=o-t,v=s-e,C=h*h+f*f,I=y*y+v*v,D=.5/(h*v-f*y),R=(v*C-f*I)*D,Z=(h*I-y*C)*D;return R*R+Z*Z}function To(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;zs(t,r+a>>1,o),e[t[r]]>e[t[a]]&&zs(t,r,a),e[t[o]]>e[t[a]]&&zs(t,o,a),e[t[r]]>e[t[o]]&&zs(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;zs(t,o,s)}t[r+1]=t[s],t[s]=h,a-o+1>=s-r?(To(t,e,o,a),To(t,e,r,s-1)):(To(t,e,r,s-1),To(t,e,o,a))}}function zs(t,e,r){const a=t[e];t[e]=t[r],t[r]=a}function Af(t){return t[0]}function Mf(t){return t[1]}const N1=1e-6;class fs{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)>N1||Math.abs(this._y1-s)>N1)&&(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 ds{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 O1{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],Yt=e[rt],Rt=e[rt+1],Pt=Jt-lt,jt=ye-pt,gt=Yt-lt,Ot=Rt-pt,Wt=2*(Pt*Ot-jt*gt);if(Math.abs(Wt)<1e-9){let ae=1e9;const Te=2*a[0];ae*=Math.sign((e[Te]-lt)*Ot-(e[Te+1]-pt)*gt),R=(lt+Yt)/2-ae*Ot,Z=(pt+Rt)/2+ae*gt}else{const ae=1/Wt,Te=Pt*Pt+jt*jt,Pe=gt*gt+Ot*Ot;R=lt+(Ot*Te-jt*Pe)*ae,Z=pt+(Pt*Pe-gt*Te)*ae}s[$]=R,s[$+1]=Z}let h,f,y,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,y=D,C=4*v,I=e[2*v],D=e[2*v+1],o[h+2]=o[C]=y-D,o[h+3]=o[C+1]=I-f}render(e){const r=e==null?e=new fs: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 y,v=s[s.length-1];for(let C=0;C<s.length;++C){y=v,v=s[C];const I=2*Math.floor(o[v]/3),D=h[I],R=h[I+1],Z=4*y,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 fs: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 fs: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 ds;return this.renderCell(e,r),r.value()}_renderSegment(e,r,a,o,s){let h;const f=this._regioncode(e,r),y=this._regioncode(a,o);f===0&&y===0?(s.moveTo(e,r),s.lineTo(a,o)):(h=this._clipSegment(e,r,a,o,f,y))&&(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,y=o.length;f<y;f+=2)if(r[s]==o[f]&&r[s+1]==o[f+1]&&r[(s+2)%h]==o[(f+y-2)%y]&&r[(s+3)%h]==o[(f+y-1)%y]){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 y=h;do{const v=Math.floor(y/3);if(f.push(r[2*v],r[2*v+1]),y=y%3==2?y-2:y+1,s[y]!==e)break;y=o[y]}while(y!==h&&y!==-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,y=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,y?y.push(v,C):y=[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,y,y.length),y?y.push(U,$):y=[U,$]}f=D,D=this._edgecode(W,it),f&&D&&this._edge(e,f,D,y,y.length),y?y.push(W,it):y=[W,it]}if(y)f=D,D=this._edgecode(y[0],y[1]),f&&D&&this._edge(e,f,D,y,y.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 y}_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,y,v=s||h;8&v?(f=e+(a-e)*(this.ymax-r)/(o-r),y=this.ymax):4&v?(f=e+(a-e)*(this.ymin-r)/(o-r),y=this.ymin):2&v?(y=r+(o-r)*(this.xmax-e)/(a-e),f=this.xmax):(y=r+(o-r)*(this.xmin-e)/(a-e),f=this.xmin),s?(e=f,r=y,s=this._regioncode(e,r)):(a=f,o=y,h=this._regioncode(a,o))}}_clipInfinite(e,r,a,o,s,h){let f,y=Array.from(r);if((f=this._project(y[0],y[1],a,o))&&y.unshift(f[0],f[1]),(f=this._project(y[y.length-2],y[y.length-1],s,h))&&y.push(f[0],f[1]),y=this._clipFinite(e,y))for(let v,C=0,I=y.length,D=this._edgecode(y[I-2],y[I-1]);C<I;C+=2)v=D,D=this._edgecode(y[C],y[C+1]),v&&D&&(C=this._edge(e,v,D,y,C),I=y.length);else this.contains(e,(this.xmin+this.xmax)/2,(this.ymin+this.ymax)/2)&&(y=[this.xmin,this.ymin,this.xmax,this.ymin,this.xmax,this.ymax,this.xmin,this.ymax]);return y}_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,y=(h+4)%o.length;(o[h]===o[f]&&o[f]===o[y]||o[h+1]===o[f+1]&&o[f+1]===o[y+1])&&(o.splice(f,2),h-=2)}return s}_project(e,r,a,o){let s,h,f,y=1/0;if(o<0){if(r<=this.ymin)return null;(s=(this.ymin-r)/o)<y&&(f=this.ymin,h=e+(y=s)*a)}else if(o>0){if(r>=this.ymax)return null;(s=(this.ymax-r)/o)<y&&(f=this.ymax,h=e+(y=s)*a)}if(a>0){if(e>=this.xmax)return null;(s=(this.xmax-e)/a)<y&&(h=this.xmax,f=r+(y=s)*o)}else if(a<0){if(e<=this.xmin)return null;(s=(this.xmin-e)/a)<y&&(h=this.xmin,f=r+(y=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 Ka=2*Math.PI,Ys=Math.pow;function Df(t){return t[0]}function Nf(t){return t[1]}function B1(t,e,r){return[t+Math.sin(t+e)*r,e+Math.cos(t-e)*r]}class Xu{static from(e,r=Df,a=Nf,o){return new Xu("length"in e?function(s,h,f,y){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(y,D,I,s),C[2*I+1]=f.call(y,D,I,s)}return C}(e,r,a,o):Float64Array.from(function*(s,h,f,y){let v=0;for(const C of s)yield h.call(y,C,v,s),yield f.call(y,C,v,s),++v}(e,r,a,o)))}constructor(e){this._delaunator=new qc(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(y){const{triangles:v,coords:C}=y;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 y=this.collinear[0],v=this.collinear[this.collinear.length-1],C=[r[2*y],r[2*y+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=B1(r[2*D],r[2*D+1],I);r[2*D]=Z[0],r[2*D+1]=Z[1]}this._delaunator=new qc(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 y=0,v=a.length;y<v;++y){const C=s[y%3==2?y-2:y+1];a[y]!==-1&&h[C]!==-1||(h[C]=y)}for(let y=0,v=o.length;y<v;++y)f[o[y]]=y;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 O1(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 y=r[e];if(y===-1)return;let v=y,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!==y)}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:y,points:v}=this;if(o[e]===-1||!v.length)return(e+1)%(v.length>>1);let C=e,I=Ys(r-v[2*e],2)+Ys(a-v[2*e+1],2);const D=o[e];let R=D;do{let Z=y[R];const U=Ys(r-v[2*Z],2)+Ys(a-v[2*Z+1],2);if(U<I&&(I=U,C=Z),R=R%3==2?R-2:R+1,y[R]!==e)break;if(R=f[R],R===-1){if(R=s[(h[e]+1)%s.length],R!==Z&&Ys(r-v[2*R],2)+Ys(a-v[2*R+1],2)<I)return R;break}}while(R!==D);return C}render(e){const r=e==null?e=new fs:void 0,{points:a,halfedges:o,triangles:s}=this;for(let h=0,f=o.length;h<f;++h){const y=o[h];if(y<h)continue;const v=2*s[h],C=2*s[y];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 fs:void 0,{points:o}=this;for(let s=0,h=o.length;s<h;s+=2){const f=o[s],y=o[s+1];e.moveTo(f+r,y),e.arc(f,y,r,0,Ka)}return a&&a.value()}renderHull(e){const r=e==null?e=new fs: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 y=2*a[f];e.lineTo(o[y],o[y+1])}return e.closePath(),r&&r.value()}hullPolygon(){const e=new ds;return this.renderHull(e),e.value()}renderTriangle(e,r){const a=r==null?r=new fs:void 0,{points:o,triangles:s}=this,h=2*s[e*=3],f=2*s[e+1],y=2*s[e+2];return r.moveTo(o[h],o[h+1]),r.lineTo(o[f],o[f+1]),r.lineTo(o[y],o[y+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 ds;return this.renderTriangle(e,r),r.value()}}const Pl=t=>()=>t;function Zu(t,{sourceEvent:e,subject:r,target:a,identifier:o,active:s,x:h,y:f,dx:y,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:y,enumerable:!0,configurable:!0},dy:{value:v,enumerable:!0,configurable:!0},_:{value:C}})}function Of(t){return!t.ctrlKey&&!t.button}function Bf(){return this.parentNode}function Lf(t,e){return e==null?{x:t.x,y:t.y}:e}function Us(){return navigator.maxTouchPoints||"ontouchstart"in this}function If(){var t,e,r,a,o=Of,s=Bf,h=Lf,f=Us,y={},v=rr("start","drag","end"),C=0,I=0;function D(rt){rt.on("mousedown.drag",R).filter(f).on("touchstart.drag",$).on("touchmove.drag",W,fl).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,Po).on("mouseup.drag",U,Po),lo(rt.view),Ts(rt),r=!1,t=rt.clientX,e=rt.clientY,pt("start",rt))}}function Z(rt){if(co(rt),!r){var lt=rt.clientX-t,pt=rt.clientY-e;r=lt*lt+pt*pt>I}y.mouse("drag",rt)}function U(rt){kr(rt.view).on("mousemove.drag mouseup.drag",null),uo(rt.view,r),co(rt),y.mouse("end",rt)}function $(rt,lt){if(o.call(this,rt,lt)){var pt,Jt,ye=rt.changedTouches,Yt=s.call(this,rt,lt),Rt=ye.length;for(pt=0;pt<Rt;++pt)(Jt=nt(this,Yt,rt,lt,ye[pt].identifier,ye[pt]))&&(Ts(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=y[Jt[lt].identifier])&&(co(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=y[Jt[lt].identifier])&&(Ts(rt),pt("end",rt,Jt[lt]))}function nt(rt,lt,pt,Jt,ye,Yt){var Rt,Pt,jt,gt=v.copy(),Ot=ha(Yt||pt,lt);if((jt=h.call(rt,new Zu("beforestart",{sourceEvent:pt,target:D,identifier:ye,active:C,x:Ot[0],y:Ot[1],dx:0,dy:0,dispatch:gt}),Jt))!=null)return Rt=jt.x-Ot[0]||0,Pt=jt.y-Ot[1]||0,function Wt(ae,Te,Pe){var He,yn=Ot;switch(ae){case"start":y[ye]=Wt,He=C++;break;case"end":delete y[ye],--C;case"drag":Ot=ha(Pe||Te,lt),He=C}gt.call(ae,rt,new Zu(ae,{sourceEvent:Te,subject:jt,target:D,identifier:ye,active:He,x:Ot[0]+Rt,y:Ot[1]+Pt,dx:Ot[0]-yn[0],dy:Ot[1]-yn[1],dispatch:gt}),Jt)}}return D.filter=function(rt){return arguments.length?(o=typeof rt=="function"?rt:Pl(!!rt),D):o},D.container=function(rt){return arguments.length?(s=typeof rt=="function"?rt:Pl(rt),D):s},D.subject=function(rt){return arguments.length?(h=typeof rt=="function"?rt:Pl(rt),D):h},D.touchable=function(rt){return arguments.length?(f=typeof rt=="function"?rt:Pl(!!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}Zu.prototype.on=function(){var t=this._.on.apply(this._,arguments);return t===this._?this:t};var L1={},Qu={};function I1(t){return new Function("d","return {"+t.map(function(e,r){return JSON.stringify(e)+": d["+r+'] || ""'}).join(",")+"}")}function F1(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 fa(t,e){var r=t+"",a=r.length;return a<e?new Array(e-a+1).join(0)+r:r}function jl(t){var e=new RegExp('["'+t+`
\r]`),r=t.charCodeAt(0);function a(f,y){var v,C=[],I=f.length,D=0,R=0,Z=I<=0,U=!1;function $(){if(Z)return Qu;if(U)return U=!1,L1;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=$())!==Qu;){for(var W=[];v!==L1&&v!==Qu;)W.push(v),v=$();y&&(W=y(W,R++))==null||C.push(W)}return C}function o(f,y){return f.map(function(v){return y.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(y){var v=y.getUTCHours(),C=y.getUTCMinutes(),I=y.getUTCSeconds(),D=y.getUTCMilliseconds();return isNaN(y)?"Invalid Date":function(R){return R<0?"-"+fa(-R,6):R>9999?"+"+fa(R,6):fa(R,4)}(y.getUTCFullYear())+"-"+fa(y.getUTCMonth()+1,2)+"-"+fa(y.getUTCDate(),2)+(D?"T"+fa(v,2)+":"+fa(C,2)+":"+fa(I,2)+"."+fa(D,3)+"Z":I?"T"+fa(v,2)+":"+fa(C,2)+":"+fa(I,2)+"Z":C||v?"T"+fa(v,2)+":"+fa(C,2)+"Z":"")}(f):e.test(f+="")?'"'+f.replace(/"/g,'""')+'"':f}return{parse:function(f,y){var v,C,I=a(f,function(D,R){if(v)return v(D,R-1);C=D,v=y?function(Z,U){var $=I1(Z);return function(W,it){return U($(W),it,Z)}}(D,y):I1(D)});return I.columns=C||[],I},parseRows:a,format:function(f,y){return y==null&&(y=F1(f)),[y.map(h).join(t)].concat(o(f,y)).join(`
`)},formatBody:function(f,y){return y==null&&(y=F1(f)),o(f,y).join(`
`)},formatRows:function(f){return f.map(s).join(`
`)},formatRow:s,formatValue:h}}var ps=jl(","),Ku=ps.parse,Ff=ps.parseRows,fe=ps.format,ln=ps.formatBody,$s=ps.formatRows,Ws=ps.formatRow,Ju=ps.formatValue,Eo=jl(" "),th=Eo.parse,R1=Eo.parseRows,zl=Eo.format,P1=Eo.formatBody,Ja=Eo.formatRows,Rf=Eo.formatRow,Hc=Eo.formatValue;function Pf(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;j1&&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 j1=new Date("2019-01-01T00:00").getHours()||new Date("2019-07-01T00:00").getHours(),eh=t=>+t;function Yl(t){return t*t}function Ul(t){return t*(2-t)}function z1(t){return((t*=2)<=1?t*t:--t*(2-t)+1)/2}var $l=function t(e){function r(a){return Math.pow(a,e)}return e=+e,r.exponent=t,r}(3),Wi=function t(e){function r(a){return 1-Math.pow(1-a,e)}return e=+e,r.exponent=t,r}(3),Wl=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),Vc=Math.PI,nh=Vc/2;function Y1(t){return+t==1?1:1-Math.cos(t*nh)}function U1(t){return Math.sin(t*nh)}function $1(t){return(1-Math.cos(Vc*t))/2}function So(t){return 1.0009775171065494*(Math.pow(2,-10*t)-.0009765625)}function W1(t){return So(1-+t)}function Co(t){return 1-So(t)}function q1(t){return((t*=2)<=1?So(1-t):2-So(t-1))/2}function H1(t){return 1-Math.sqrt(1-t*t)}function va(t){return Math.sqrt(1- --t*t)}function V1(t){return((t*=2)<=1?1-Math.sqrt(1-t*t):Math.sqrt(1-(t-=2)*t)+1)/2}var ql=7.5625;function G1(t){return 1-qs(1-t)}function qs(t){return(t=+t)<.36363636363636365?ql*t*t:t<.7272727272727273?ql*(t-=.5454545454545454)*t+.75:t<.9090909090909091?ql*(t-=.8181818181818182)*t+.9375:ql*(t-=.9545454545454546)*t+.984375}function rh(t){return((t*=2)<=1?1-qs(1-t):qs(t-1)+1)/2}var ih=1.70158,X1=function t(e){function r(a){return(a=+a)*a*(e*(a-1)+a)}return e=+e,r.overshoot=t,r}(ih),jf=function t(e){function r(a){return--a*a*((a+1)*e+a)+1}return e=+e,r.overshoot=t,r}(ih),gr=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}(ih),Ao=2*Math.PI,Xo=function t(e,r){var a=Math.asin(1/(e=Math.max(1,e)))*(r/=Ao);function o(s){return e*So(- --s)*Math.sin((a-s)/r)}return o.amplitude=function(s){return t(s,r*Ao)},o.period=function(s){return t(e,s)},o}(1,.3),Z1=function t(e,r){var a=Math.asin(1/(e=Math.max(1,e)))*(r/=Ao);function o(s){return 1-e*So(s=+s)*Math.sin((s+a)/r)}return o.amplitude=function(s){return t(s,r*Ao)},o.period=function(s){return t(e,s)},o}(1,.3),ah=function t(e,r){var a=Math.asin(1/(e=Math.max(1,e)))*(r/=Ao);function o(s){return((s=2*s-1)<0?e*So(-s)*Math.sin((a-s)/r):2-e*So(s)*Math.sin((a+s)/r))/2}return o.amplitude=function(s){return t(s,r*Ao)},o.period=function(s){return t(e,s)},o}(1,.3);function Q1(t){if(!t.ok)throw new Error(t.status+" "+t.statusText);return t.blob()}function K1(t,e){return fetch(t,e).then(Q1)}function oh(t){if(!t.ok)throw new Error(t.status+" "+t.statusText);return t.arrayBuffer()}function Hs(t,e){return fetch(t,e).then(oh)}function sh(t){if(!t.ok)throw new Error(t.status+" "+t.statusText);return t.text()}function Mo(t,e){return fetch(t,e).then(sh)}function gs(t){return function(e,r,a){return arguments.length===2&&typeof r=="function"&&(a=r,r=void 0),Mo(e,r).then(function(o){return t(o,a)})}}function J1(t,e,r,a){arguments.length===3&&typeof r=="function"&&(a=r,r=void 0);var o=jl(t);return Mo(e,r).then(function(s){return o.parse(s,a)})}var t0=gs(Ku),e0=gs(th);function n0(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 r0(t){if(!t.ok)throw new Error(t.status+" "+t.statusText);if(t.status!==204&&t.status!==205)return t.json()}function i0(t,e){return fetch(t,e).then(r0)}function ch(t){return(e,r)=>Mo(e,r).then(a=>new DOMParser().parseFromString(a,t))}const zf=ch("application/xml");var Yf=ch("text/html"),Uf=ch("image/svg+xml");function Do(t,e){var r,a=1;function o(){var s,h,f=r.length,y=0,v=0;for(s=0;s<f;++s)y+=(h=r[s]).x,v+=h.y;for(y=(y/f-t)*a,v=(v/f-e)*a,s=0;s<f;++s)(h=r[s]).x-=y,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 Hl(t,e,r,a){if(isNaN(e)||isNaN(r))return t;var o,s,h,f,y,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),y=+t._y.call(null,R.data),e===f&&r===y)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=(y>=h)<<1|f>=s));return o[D]=R,o[I]=Z,t}function di(t,e,r,a,o){this.node=t,this.x0=e,this.y0=r,this.x1=a,this.y1=o}function Na(t){return t[0]}function lh(t){return t[1]}function Gc(t,e,r){var a=new Xc(e==null?Na:e,r==null?lh:r,NaN,NaN,NaN,NaN);return t==null?a:a.addAll(t)}function Xc(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 a0(t){for(var e={data:t.data},r=e;t=t.next;)r=r.next={data:t.data};return e}var ea=Gc.prototype=Xc.prototype;function xi(t){return function(){return t}}function Zo(t){return 1e-6*(t()-.5)}function o0(t){return t.x+t.vx}function s0(t){return t.y+t.vy}function $f(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=Gc(e,o0,s0).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,Yt=nt.r,Rt=Z+Yt;if(!ye)return rt>D+Rt||pt<D-Rt||lt>R+Rt||Jt<R-Rt;if(ye.index>I.index){var Pt=D-ye.x-ye.vx,jt=R-ye.y-ye.vy,gt=Pt*Pt+jt*jt;gt<Rt*Rt&&(Pt===0&&(gt+=(Pt=Zo(a))*Pt),jt===0&&(gt+=(jt=Zo(a))*jt),gt=(Rt-(gt=Math.sqrt(gt)))/gt*o,I.vx+=(Pt*=gt)*(Rt=(Yt*=Yt)/(U+Yt)),I.vy+=(jt*=gt)*Rt,ye.vx-=Pt*(Rt=1-Rt),ye.vy-=jt*Rt)}}}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 y(){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=xi(t==null?1:+t)),h.initialize=function(v,C){e=v,a=C,y()},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:xi(+v),y(),h):t},h}function Vl(t){return t.index}function c0(t,e){var r=t.get(e);if(!r)throw new Error("node not found: "+e);return r}function Ei(t){var e,r,a,o,s,h,f=Vl,y=function(U){return 1/Math.min(o[U.source.index],o[U.target.index])},v=xi(30),C=1;function I(U){for(var $=0,W=t.length;$<C;++$)for(var it,nt,rt,lt,pt,Jt,ye,Yt=0;Yt<W;++Yt)nt=(it=t[Yt]).source,lt=(rt=it.target).x+rt.vx-nt.x-nt.vx||Zo(h),pt=rt.y+rt.vy-nt.y-nt.vy||Zo(h),lt*=Jt=((Jt=Math.sqrt(lt*lt+pt*pt))-r[Yt])/Jt*U*e[Yt],pt*=Jt,rt.vx-=lt*(ye=s[Yt]),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=c0(nt,$.source)),typeof $.target!="object"&&($.target=c0(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]=+y(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?(y=typeof U=="function"?U:xi(+U),R(),I):y},I.distance=function(U){return arguments.length?(v=typeof U=="function"?U:xi(+U),Z(),I):v},I}ea.copy=function(){var t,e,r=new Xc(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=a0(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]=a0(e));return r},ea.add=function(t){const e=+this._x.call(null,t),r=+this._y.call(null,t);return Hl(this.cover(e,r),e,r,t)},ea.addAll=function(t){var e,r,a,o,s=t.length,h=new Array(s),f=new Array(s),y=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<y&&(y=a),a>C&&(C=a),o<v&&(v=o),o>I&&(I=o));if(y>C||v>I)return this;for(this.cover(y,v).cover(C,I),r=0;r<s;++r)Hl(this,h[r],f[r],t[r]);return this},ea.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,y=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,y*=2,f){case 0:o=r+y,s=a+y;break;case 1:r=o-y,s=a+y;break;case 2:o=r+y,a=s-y;break;case 3:r=o-y,a=s-y}this._root&&this._root.length&&(this._root=v)}return this._x0=r,this._y0=a,this._x1=o,this._y1=s,this},ea.data=function(){var t=[];return this.visit(function(e){if(!e.length)do t.push(e.data);while(e=e.next)}),t},ea.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]]},ea.find=function(t,e,r){var a,o,s,h,f,y,v,C=this._x0,I=this._y0,D=this._x1,R=this._y1,Z=[],U=this._root;for(U&&Z.push(new di(U,C,I,D,R)),r==null?r=1/0:(C=t-r,I=e-r,D=t+r,R=e+r,r*=r);y=Z.pop();)if(!(!(U=y.node)||(o=y.x0)>D||(s=y.y0)>R||(h=y.x1)<C||(f=y.y1)<I))if(U.length){var $=(o+h)/2,W=(s+f)/2;Z.push(new di(U[3],$,W,h,f),new di(U[2],o,W,$,f),new di(U[1],$,s,h,W),new di(U[0],o,s,$,W)),(v=(e>=W)<<1|t>=$)&&(y=Z[Z.length-1],Z[Z.length-1]=Z[Z.length-1-v],Z[Z.length-1-v]=y)}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},ea.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,y,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>=(y=(U+W)/2))?U=y:W=y,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)},ea.removeAll=function(t){for(var e=0,r=t.length;e<r;++e)this.remove(t[e]);return this},ea.root=function(){return this._root},ea.size=function(){var t=0;return this.visit(function(e){if(!e.length)do++t;while(e=e.next)}),t},ea.visit=function(t){var e,r,a,o,s,h,f=[],y=this._root;for(y&&f.push(new di(y,this._x0,this._y0,this._x1,this._y1));e=f.pop();)if(!t(y=e.node,a=e.x0,o=e.y0,s=e.x1,h=e.y1)&&y.length){var v=(a+s)/2,C=(o+h)/2;(r=y[3])&&f.push(new di(r,v,C,s,h)),(r=y[2])&&f.push(new di(r,a,C,v,h)),(r=y[1])&&f.push(new di(r,v,o,s,C)),(r=y[0])&&f.push(new di(r,a,o,v,C))}return this},ea.visitAfter=function(t){var e,r=[],a=[];for(this._root&&r.push(new di(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,y=e.x1,v=e.y1,C=(h+y)/2,I=(f+v)/2;(s=o[0])&&r.push(new di(s,h,f,C,I)),(s=o[1])&&r.push(new di(s,C,f,y,I)),(s=o[2])&&r.push(new di(s,h,I,C,v)),(s=o[3])&&r.push(new di(s,C,I,y,v))}a.push(e)}for(;e=a.pop();)t(e.node,e.x0,e.y0,e.x1,e.y1);return this},ea.x=function(t){return arguments.length?(this._x=t,this):this._x},ea.y=function(t){return arguments.length?(this._y=t,this):this._y};const qi=4294967296;function Gl(t){return t.x}function Si(t){return t.y}var Ri=Math.PI*(3-Math.sqrt(5));function l0(t){var e,r=1,a=.001,o=1-Math.pow(a,1/300),s=0,h=.6,f=new Map,y=Yo(I),v=rr("tick","end"),C=function(){let U=1;return()=>(U=(1664525*U+1013904223)%qi)/qi}();function I(){D(),v.call("tick",e),r<a&&(y.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=$*Ri;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 y.restart(I),e},stop:function(){return y.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 ys(){var t,e,r,a,o,s=xi(-30),h=1,f=1/0,y=.81;function v(R){var Z,U=t.length,$=Gc(t,Gl,Si).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/y<rt)return rt<f&&(W===0&&(rt+=(W=Zo(r))*W),it===0&&(rt+=(it=Zo(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=Zo(r))*W),it===0&&(rt+=(it=Zo(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:xi(+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?(y=R*R,v):Math.sqrt(y)},v}function uh(t,e,r){var a,o,s,h=xi(.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 y(){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=xi(+t)),e==null&&(e=0),r==null&&(r=0),f.initialize=function(v){a=v,y()},f.strength=function(v){return arguments.length?(h=typeof v=="function"?v:xi(+v),y(),f):h},f.radius=function(v){return arguments.length?(t=typeof v=="function"?v:xi(+v),y(),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 u0(t){var e,r,a,o=xi(.1);function s(f){for(var y,v=0,C=e.length;v<C;++v)(y=e[v]).vx+=(a[v]-y.x)*r[v]*f}function h(){if(e){var f,y=e.length;for(r=new Array(y),a=new Array(y),f=0;f<y;++f)r[f]=isNaN(a[f]=+t(e[f],f,e))?0:+o(e[f],f,e)}}return typeof t!="function"&&(t=xi(t==null?0:+t)),s.initialize=function(f){e=f,h()},s.strength=function(f){return arguments.length?(o=typeof f=="function"?f:xi(+f),h(),s):o},s.x=function(f){return arguments.length?(t=typeof f=="function"?f:xi(+f),h(),s):t},s}function h0(t){var e,r,a,o=xi(.1);function s(f){for(var y,v=0,C=e.length;v<C;++v)(y=e[v]).vy+=(a[v]-y.y)*r[v]*f}function h(){if(e){var f,y=e.length;for(r=new Array(y),a=new Array(y),f=0;f<y;++f)r[f]=isNaN(a[f]=+t(e[f],f,e))?0:+o(e[f],f,e)}}return typeof t!="function"&&(t=xi(t==null?0:+t)),s.initialize=function(f){e=f,h()},s.strength=function(f){return arguments.length?(o=typeof f=="function"?f:xi(+f),h(),s):o},s.y=function(f){return arguments.length?(t=typeof f=="function"?f:xi(+f),h(),s):t},s}function Zc(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 ms(t){return(t=Zc(Math.abs(t)))?t[1]:NaN}var hh,Qc=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Vs(t){if(!(e=Qc.exec(t)))throw new Error("invalid format: "+t);var e;return new Qo({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 Qo(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 na(t,e){var r=Zc(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")}Vs.prototype=Qo.prototype,Qo.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 bs={"%":(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)=>na(100*t,e),r:na,s:function(t,e){var r=Zc(t,e);if(!r)return t+"";var a=r[0],o=r[1],s=o-(hh=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")+Zc(t,Math.max(0,e+s-1))[0]},X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function Gs(t){return t}var vs,Kc,Xl,f0=Array.prototype.map,d0=["y","z","a","f","p","n","\xB5","m","","k","M","G","T","P","E","Z","Y"];function p0(t){var e,r,a=t.grouping===void 0||t.thousands===void 0?Gs:(e=f0.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?Gs:function(D){return function(R){return R.replace(/[0-9]/g,function(Z){return D[+Z]})}}(f0.call(t.numerals,String)),y=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=Vs(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"):bs[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)?y:"",Yt=bs[pt],Rt=/[defgprs%]/.test(pt);function Pt(jt){var gt,Ot,Wt,ae=Jt,Te=ye;if(pt==="c")Te=Yt(jt)+Te,jt="";else{var Pe=(jt=+jt)<0||1/jt<0;if(jt=isNaN(jt)?C:Yt(Math.abs(jt),rt),lt&&(jt=function(Ve){t:for(var $n,qn=Ve.length,Cn=1,Fn=-1;Cn<qn;++Cn)switch(Ve[Cn]){case".":Fn=$n=Cn;break;case"0":Fn===0&&(Fn=Cn),$n=Cn;break;default:if(!+Ve[Cn])break t;Fn>0&&(Fn=0)}return Fn>0?Ve.slice(0,Fn)+Ve.slice($n+1):Ve}(jt)),Pe&&+jt==0&&U!=="+"&&(Pe=!1),ae=(Pe?U==="("?U:v:U==="-"||U==="("?"":U)+ae,Te=(pt==="s"?d0[8+hh/3]:"")+Te+(Pe&&U==="("?")":""),Rt){for(gt=-1,Ot=jt.length;++gt<Ot;)if(48>(Wt=jt.charCodeAt(gt))||Wt>57){Te=(Wt===46?h+jt.slice(gt+1):jt.slice(gt))+Te,jt=jt.slice(0,gt);break}}}nt&&!W&&(jt=a(jt,1/0));var He=ae.length+jt.length+Te.length,yn=He<it?new Array(it-He+1).join(R):"";switch(nt&&W&&(jt=a(yn+jt,yn.length?it-Te.length:1/0),yn=""),Z){case"<":jt=ae+jt+Te+yn;break;case"=":jt=ae+yn+jt+Te;break;case"^":jt=yn.slice(0,He=yn.length>>1)+ae+jt+Te+yn.slice(He);break;default:jt=yn+ae+jt+Te}return f(jt)}return rt=rt===void 0?6:/[gprs]/.test(pt)?Math.max(1,Math.min(21,rt)):Math.max(0,Math.min(20,rt)),Pt.toString=function(){return D+""},Pt}return{format:I,formatPrefix:function(D,R){var Z=I(((D=Vs(D)).type="f",D)),U=3*Math.max(-8,Math.min(8,Math.floor(ms(R)/3))),$=Math.pow(10,-U),W=d0[8+U/3];return function(it){return Z($*it)+W}}}}function g0(t){return vs=p0(t),Kc=vs.format,Xl=vs.formatPrefix,vs}function Zl(t){return Math.max(0,-ms(Math.abs(t)))}function y0(t,e){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(ms(e)/3)))-ms(Math.abs(t)))}function Jc(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,ms(e)-ms(t))+1}g0({thousands:",",grouping:[3],currency:["$",""]});var Zn=1e-6,Xs=1e-12,er=Math.PI,ri=er/2,tl=er/4,ra=2*er,Nr=180/er,Ln=er/180,ur=Math.abs,to=Math.atan,Hi=Math.atan2,Nn=Math.cos,zr=Math.ceil,fh=Math.exp,Ql=Math.hypot,ki=Math.log,Zs=Math.pow,i=Math.sin,n=Math.sign||function(t){return t>0?1:t<0?-1:0},l=Math.sqrt,d=Math.tan;function m(t){return t>1?0:t<-1?er:Math.acos(t)}function w(t){return t>1?ri:t<-1?-ri:Math.asin(t)}function k(t){return(t=i(t/2))*t}function S(){}function N(t,e){t&&q.hasOwnProperty(t.type)&&q[t.type](t,e)}var B={Feature:function(t,e){N(t.geometry,e)},FeatureCollection:function(t,e){for(var r=t.features,a=-1,o=r.length;++a<o;)N(r[a].geometry,e)}},q={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){G(t.coordinates,e,0)},MultiLineString:function(t,e){for(var r=t.coordinates,a=-1,o=r.length;++a<o;)G(r[a],e,0)},Polygon:function(t,e){K(t.coordinates,e)},MultiPolygon:function(t,e){for(var r=t.coordinates,a=-1,o=r.length;++a<o;)K(r[a],e)},GeometryCollection:function(t,e){for(var r=t.geometries,a=-1,o=r.length;++a<o;)N(r[a],e)}};function G(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 K(t,e){var r=-1,a=t.length;for(e.polygonStart();++r<a;)G(t[r],e,1);e.polygonEnd()}function Q(t,e){t&&B.hasOwnProperty(t.type)?B[t.type](t,e):N(t,e)}var xt,Ct,Bt,Ft,Lt,Et,_t,qt,ve,de,je,te,ne,ce,le,Gt,oe=new vt,_e=new vt,we={point:S,lineStart:S,lineEnd:S,polygonStart:function(){oe=new vt,we.lineStart=Je,we.lineEnd=dn},polygonEnd:function(){var t=+oe;_e.add(t<0?ra+t:t),this.lineStart=this.lineEnd=this.point=S},sphere:function(){_e.add(ra)}};function Je(){we.point=Me}function dn(){gn(xt,Ct)}function Me(t,e){we.point=gn,xt=t,Ct=e,Bt=t*=Ln,Ft=Nn(e=(e*=Ln)/2+tl),Lt=i(e)}function gn(t,e){var r=(t*=Ln)-Bt,a=r>=0?1:-1,o=a*r,s=Nn(e=(e*=Ln)/2+tl),h=i(e),f=Lt*h,y=Ft*s+f*Nn(o),v=f*a*i(o);oe.add(Hi(v,y)),Bt=t,Ft=s,Lt=h}function wn(t){return _e=new vt,Q(t,we),2*_e}function Ue(t){return[Hi(t[1],t[0]),w(t[2])]}function nn(t){var e=t[0],r=t[1],a=Nn(r);return[a*Nn(e),a*i(e),i(r)]}function tn(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function On(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 cr(t,e){t[0]+=e[0],t[1]+=e[1],t[2]+=e[2]}function Xr(t,e){return[t[0]*e,t[1]*e,t[2]*e]}function Sr(t){var e=l(t[0]*t[0]+t[1]*t[1]+t[2]*t[2]);t[0]/=e,t[1]/=e,t[2]/=e}var si,Zr,br,da,ci,Or,Oa,_a,Qs,_s,eo,no,dh,Vi,Gi,Xi,ro={point:Kl,lineStart:A2,lineEnd:M2,polygonStart:function(){ro.point=D2,ro.lineStart=Bm,ro.lineEnd=Lm,ce=new vt,we.polygonStart()},polygonEnd:function(){we.polygonEnd(),ro.point=Kl,ro.lineStart=A2,ro.lineEnd=M2,oe<0?(Et=-(qt=180),_t=-(ve=90)):ce>Zn?ve=90:ce<-1e-6&&(_t=-90),Gt[0]=Et,Gt[1]=qt},sphere:function(){Et=-(qt=180),_t=-(ve=90)}};function Kl(t,e){le.push(Gt=[Et=t,qt=t]),e<_t&&(_t=e),e>ve&&(ve=e)}function C2(t,e){var r=nn([t*Ln,e*Ln]);if(ne){var a=On(ne,r),o=On([a[1],-a[0],0],a);Sr(o),o=Ue(o);var s,h=t-de,f=h>0?1:-1,y=o[0]*Nr*f,v=ur(h)>180;v^(f*de<y&&y<f*t)?(s=o[1]*Nr)>ve&&(ve=s):v^(f*de<(y=(y+360)%360-180)&&y<f*t)?(s=-o[1]*Nr)<_t&&(_t=s):(e<_t&&(_t=e),e>ve&&(ve=e)),v?t<de?$a(Et,t)>$a(Et,qt)&&(qt=t):$a(t,qt)>$a(Et,qt)&&(Et=t):qt>=Et?(t<Et&&(Et=t),t>qt&&(qt=t)):t>de?$a(Et,t)>$a(Et,qt)&&(qt=t):$a(t,qt)>$a(Et,qt)&&(Et=t)}else le.push(Gt=[Et=t,qt=t]);e<_t&&(_t=e),e>ve&&(ve=e),ne=r,de=t}function A2(){ro.point=C2}function M2(){Gt[0]=Et,Gt[1]=qt,ro.point=Kl,ne=null}function D2(t,e){if(ne){var r=t-de;ce.add(ur(r)>180?r+(r>0?360:-360):r)}else je=t,te=e;we.point(t,e),C2(t,e)}function Bm(){we.lineStart()}function Lm(){D2(je,te),we.lineEnd(),ur(ce)>Zn&&(Et=-(qt=180)),Gt[0]=Et,Gt[1]=qt,ne=null}function $a(t,e){return(e-=t)<0?e+360:e}function Im(t,e){return t[0]-e[0]}function N2(t,e){return t[0]<=t[1]?t[0]<=e&&e<=t[1]:e<t[0]||t[1]<e}function Fm(t){var e,r,a,o,s,h,f;if(ve=qt=-(Et=_t=1/0),le=[],Q(t,ro),r=le.length){for(le.sort(Im),e=1,s=[a=le[0]];e<r;++e)N2(a,(o=le[e])[0])||N2(a,o[1])?($a(a[0],o[1])>$a(a[0],a[1])&&(a[1]=o[1]),$a(o[0],a[1])>$a(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=$a(a[1],o[0]))>h&&(h=f,Et=o[0],qt=a[1])}return le=Gt=null,Et===1/0||_t===1/0?[[NaN,NaN],[NaN,NaN]]:[[Et,_t],[qt,ve]]}var No={sphere:S,point:Wf,lineStart:O2,lineEnd:B2,polygonStart:function(){No.lineStart=jm,No.lineEnd=zm},polygonEnd:function(){No.lineStart=O2,No.lineEnd=B2}};function Wf(t,e){t*=Ln;var r=Nn(e*=Ln);ph(r*Nn(t),r*i(t),i(e))}function ph(t,e,r){++si,br+=(t-br)/si,da+=(e-da)/si,ci+=(r-ci)/si}function O2(){No.point=Rm}function Rm(t,e){t*=Ln;var r=Nn(e*=Ln);Vi=r*Nn(t),Gi=r*i(t),Xi=i(e),No.point=Pm,ph(Vi,Gi,Xi)}function Pm(t,e){t*=Ln;var r=Nn(e*=Ln),a=r*Nn(t),o=r*i(t),s=i(e),h=Hi(l((h=Gi*s-Xi*o)*h+(h=Xi*a-Vi*s)*h+(h=Vi*o-Gi*a)*h),Vi*a+Gi*o+Xi*s);Zr+=h,Or+=h*(Vi+(Vi=a)),Oa+=h*(Gi+(Gi=o)),_a+=h*(Xi+(Xi=s)),ph(Vi,Gi,Xi)}function B2(){No.point=Wf}function jm(){No.point=Ym}function zm(){L2(no,dh),No.point=Wf}function Ym(t,e){no=t,dh=e,t*=Ln,e*=Ln,No.point=L2;var r=Nn(e);Vi=r*Nn(t),Gi=r*i(t),Xi=i(e),ph(Vi,Gi,Xi)}function L2(t,e){t*=Ln;var r=Nn(e*=Ln),a=r*Nn(t),o=r*i(t),s=i(e),h=Gi*s-Xi*o,f=Xi*a-Vi*s,y=Vi*o-Gi*a,v=Ql(h,f,y),C=w(v),I=v&&-C/v;Qs.add(I*h),_s.add(I*f),eo.add(I*y),Zr+=C,Or+=C*(Vi+(Vi=a)),Oa+=C*(Gi+(Gi=o)),_a+=C*(Xi+(Xi=s)),ph(Vi,Gi,Xi)}function Um(t){si=Zr=br=da=ci=Or=Oa=_a=0,Qs=new vt,_s=new vt,eo=new vt,Q(t,No);var e=+Qs,r=+_s,a=+eo,o=Ql(e,r,a);return o<Xs&&(e=Or,r=Oa,a=_a,Zr<Zn&&(e=br,r=da,a=ci),(o=Ql(e,r,a))<Xs)?[NaN,NaN]:[Hi(r,e)*Nr,w(a/o)*Nr]}function Jl(t){return function(){return t}}function qf(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 Hf(t,e){return[ur(t)>er?t+Math.round(-t/ra)*ra:t,e]}function Vf(t,e,r){return(t%=ra)?e||r?qf(F2(t),R2(e,r)):F2(t):e||r?R2(e,r):Hf}function I2(t){return function(e,r){return[(e+=t)>er?e-ra:e<-er?e+ra:e,r]}}function F2(t){var e=I2(t);return e.invert=I2(-t),e}function R2(t,e){var r=Nn(t),a=i(t),o=Nn(e),s=i(e);function h(f,y){var v=Nn(y),C=Nn(f)*v,I=i(f)*v,D=i(y),R=D*r+C*a;return[Hi(I*o-R*s,C*r-D*a),w(R*o+I*s)]}return h.invert=function(f,y){var v=Nn(y),C=Nn(f)*v,I=i(f)*v,D=i(y),R=D*o-I*s;return[Hi(I*o+D*s,C*r+R*a),w(R*r-C*a)]},h}function P2(t){function e(r){return(r=t(r[0]*Ln,r[1]*Ln))[0]*=Nr,r[1]*=Nr,r}return t=Vf(t[0]*Ln,t[1]*Ln,t.length>2?t[2]*Ln:0),e.invert=function(r){return(r=t.invert(r[0]*Ln,r[1]*Ln))[0]*=Nr,r[1]*=Nr,r},e}function j2(t,e,r,a,o,s){if(r){var h=Nn(e),f=i(e),y=a*r;o==null?(o=e+a*ra,s=e-y/2):(o=z2(h,o),s=z2(h,s),(a>0?o<s:o>s)&&(o+=a*ra));for(var v,C=o;a>0?C>s:C<s;C-=y)v=Ue([h,-f*Nn(C),-f*i(C)]),t.point(v[0],v[1])}}function z2(t,e){(e=nn(e))[0]-=t,Sr(e);var r=m(-e[1]);return((-e[2]<0?-r:r)+ra-Zn)%ra}function $m(){var t,e,r=Jl([0,0]),a=Jl(90),o=Jl(6),s={point:function(f,y){t.push(f=e(f,y)),f[0]*=Nr,f[1]*=Nr}};function h(){var f=r.apply(this,arguments),y=a.apply(this,arguments)*Ln,v=o.apply(this,arguments)*Ln;return t=[],e=Vf(-f[0]*Ln,-f[1]*Ln,0).invert,j2(s,y,v,1),f={type:"Polygon",coordinates:[t]},t=e=null,f}return h.center=function(f){return arguments.length?(r=typeof f=="function"?f:Jl([+f[0],+f[1]]),h):r},h.radius=function(f){return arguments.length?(a=typeof f=="function"?f:Jl(+f),h):a},h.precision=function(f){return arguments.length?(o=typeof f=="function"?f:Jl(+f),h):o},h}function Y2(){var t,e=[];return{point:function(r,a,o){t.push([r,a,o])},lineStart:function(){e.push(t=[])},lineEnd:S,rejoin:function(){e.length>1&&e.push(e.pop().concat(e.shift()))},result:function(){var r=e;return e=[],t=null,r}}}function m0(t,e){return ur(t[0]-e[0])<Zn&&ur(t[1]-e[1])<Zn}function b0(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 U2(t,e,r,a,o){var s,h,f=[],y=[];if(t.forEach(function(Z){if(!((U=Z.length-1)<=0)){var U,$,W=Z[0],it=Z[U];if(m0(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 b0(W,Z,null,!0)),y.push($.o=new b0(W,null,$,!1)),f.push($=new b0(it,Z,null,!1)),y.push($.o=new b0(it,null,$,!0))}}),f.length){for(y.sort(e),$2(f),$2(y),s=0,h=y.length;s<h;++s)y[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 $2(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 Gf(t){return ur(t[0])<=er?t[0]:n(t[0])*((ur(t[0])+er)%ra-er)}function W2(t,e){var r=Gf(e),a=e[1],o=i(a),s=[i(r),-Nn(r),0],h=0,f=0,y=new vt;o===1?a=ri+Zn:o===-1&&(a=-ri-Zn);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=Gf(R),U=R[1]/2+tl,$=i(U),W=Nn(U),it=0;it<D;++it,Z=rt,$=pt,W=Jt,R=nt){var nt=I[it],rt=Gf(nt),lt=nt[1]/2+tl,pt=i(lt),Jt=Nn(lt),ye=rt-Z,Yt=ye>=0?1:-1,Rt=Yt*ye,Pt=Rt>er,jt=$*pt;if(y.add(Hi(jt*Yt*i(Rt),W*Jt+jt*Nn(Rt))),h+=Pt?ye+Yt*ra:ye,Pt^Z>=r^rt>=r){var gt=On(nn(R),nn(nt));Sr(gt);var Ot=On(s,gt);Sr(Ot);var Wt=(Pt^ye>=0?-1:1)*w(Ot[2]);(a>Wt||a===Wt&&(gt[0]||gt[1]))&&(f+=Pt^ye>=0?1:-1)}}return(h<-1e-6||h<Zn&&y<-1e-12)^1&f}function q2(t,e,r,a){return function(o){var s,h,f,y=e(o),v=Y2(),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=ze(h);var rt=W2(s,a);h.length?(I||(o.polygonStart(),I=!0),U2(h,qm,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){y.point(rt,lt)}function U(){D.point=Z,y.lineStart()}function $(){D.point=R,y.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(),Yt=v.result(),Rt=Yt.length;if(f.pop(),s.push(f),f=null,Rt)if(1&ye){if((lt=(pt=Yt[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 Rt>1&&2&ye&&Yt.push(Yt.pop().concat(Yt.shift())),h.push(Yt.filter(Wm))}return D}}function Wm(t){return t.length>1}function qm(t,e){return((t=t.x)[0]<0?t[1]-ri-Zn:ri-t[1])-((e=e.x)[0]<0?e[1]-ri-Zn:ri-e[1])}Hf.invert=Hf;const Xf=q2(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?er:-er,y=ur(s-r);ur(y-er)<Zn?(t.point(r,a=(a+h)/2>0?ri:-ri),t.point(o,a),t.lineEnd(),t.lineStart(),t.point(f,a),t.point(s,a),e=0):o!==f&&y>=er&&(ur(r-o)<Zn&&(r-=o*Zn),ur(s-f)<Zn&&(s-=f*Zn),a=function(v,C,I,D){var R,Z,U=i(v-I);return ur(U)>Zn?to((i(C)*(Z=Nn(D))*i(I)-i(D)*(R=Nn(C))*i(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*ri,a.point(-er,o),a.point(0,o),a.point(er,o),a.point(er,0),a.point(er,-o),a.point(0,-o),a.point(-er,-o),a.point(-er,0),a.point(-er,o);else if(ur(t[0]-e[0])>Zn){var s=t[0]<e[0]?er:-er;o=r*s/2,a.point(-s,o),a.point(0,o),a.point(s,o)}else a.point(e[0],e[1])},[-er,-ri]);function H2(t){var e=Nn(t),r=6*Ln,a=e>0,o=ur(e)>Zn;function s(y,v){return Nn(y)*Nn(v)>e}function h(y,v,C){var I=[1,0,0],D=On(nn(y),nn(v)),R=tn(D,D),Z=D[0],U=R-Z*Z;if(!U)return!C&&y;var $=e*R/U,W=-e*Z/U,it=On(I,D),nt=Xr(I,$);cr(nt,Xr(D,W));var rt=it,lt=tn(nt,rt),pt=tn(rt,rt),Jt=lt*lt-pt*(tn(nt,nt)-1);if(!(Jt<0)){var ye=l(Jt),Yt=Xr(rt,(-lt-ye)/pt);if(cr(Yt,nt),Yt=Ue(Yt),!C)return Yt;var Rt,Pt=y[0],jt=v[0],gt=y[1],Ot=v[1];jt<Pt&&(Rt=Pt,Pt=jt,jt=Rt);var Wt=jt-Pt,ae=ur(Wt-er)<Zn;if(!ae&&Ot<gt&&(Rt=gt,gt=Ot,Ot=Rt),ae||Wt<Zn?ae?gt+Ot>0^Yt[1]<(ur(Yt[0]-Pt)<Zn?gt:Ot):gt<=Yt[1]&&Yt[1]<=Ot:Wt>er^(Pt<=Yt[0]&&Yt[0]<=jt)){var Te=Xr(rt,(-lt+ye)/pt);return cr(Te,nt),[Yt,Ue(Te)]}}}function f(y,v){var C=a?t:er-t,I=0;return y<-C?I|=1:y>C&&(I|=2),v<-C?I|=4:v>C&&(I|=8),I}return q2(s,function(y){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?er:-er),U):0;if(!v&&(D=I=it)&&y.lineStart(),it!==I&&(!($=h(v,W))||m0(v,$)||m0(W,$))&&(W[2]=1),it!==I)R=0,it?(y.lineStart(),$=h(W,v),y.point($[0],$[1])):($=h(v,W),y.point($[0],$[1],2),y.lineEnd()),v=$;else if(o&&v&&a^it){var rt;nt&C||!(rt=h(W,v,!0))||(R=0,a?(y.lineStart(),y.point(rt[0][0],rt[0][1]),y.point(rt[1][0],rt[1][1]),y.lineEnd()):(y.point(rt[1][0],rt[1][1]),y.lineEnd(),y.lineStart(),y.point(rt[0][0],rt[0][1],3)))}!it||v&&m0(v,W)||y.point(W[0],W[1]),v=W,I=it,C=nt},lineEnd:function(){I&&y.lineEnd(),v=null},clean:function(){return R|(D&&I)<<1}}},function(y,v,C,I){j2(I,t,r,C,y,v)},a?[0,-t]:[-er,t-er])}var Zf,Qf,v0,_0,gh=1e9,x0=-gh;function k0(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))||y(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 ur(v[0]-t)<Zn?C>0?0:3:ur(v[0]-r)<Zn?C>0?2:1:ur(v[1]-e)<Zn?C>0?1:0:C>0?3:2}function f(v,C){return y(v.x,C.x)}function y(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=Y2(),Jt={point:ye,lineStart:function(){Jt.point=Yt,I&&I.push(D=[]),nt=!0,it=!1,$=W=NaN},lineEnd:function(){C&&(Yt(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 Rt=function(){for(var gt=0,Ot=0,Wt=I.length;Ot<Wt;++Ot)for(var ae,Te,Pe=I[Ot],He=1,yn=Pe.length,Ve=Pe[0],$n=Ve[0],qn=Ve[1];He<yn;++He)ae=$n,Te=qn,$n=(Ve=Pe[He])[0],qn=Ve[1],Te<=a?qn>a&&($n-ae)*(a-Te)>(qn-Te)*(t-ae)&&++gt:qn<=a&&($n-ae)*(a-Te)<(qn-Te)*(t-ae)&&--gt;return gt}(),Pt=rt&&Rt,jt=(C=ze(C)).length;(Pt||jt)&&(v.polygonStart(),Pt&&(v.lineStart(),s(null,null,1,v),v.lineEnd()),jt&&U2(C,f,Rt,s,v),v.polygonEnd()),lt=v,C=I=D=null}};function ye(Rt,Pt){o(Rt,Pt)&&lt.point(Rt,Pt)}function Yt(Rt,Pt){var jt=o(Rt,Pt);if(I&&D.push([Rt,Pt]),nt)R=Rt,Z=Pt,U=jt,nt=!1,jt&&(lt.lineStart(),lt.point(Rt,Pt));else if(jt&&it)lt.point(Rt,Pt);else{var gt=[$=Math.max(x0,Math.min(gh,$)),W=Math.max(x0,Math.min(gh,W))],Ot=[Rt=Math.max(x0,Math.min(gh,Rt)),Pt=Math.max(x0,Math.min(gh,Pt))];(function(Wt,ae,Te,Pe,He,yn){var Ve,$n=Wt[0],qn=Wt[1],Cn=0,Fn=1,wr=ae[0]-$n,ar=ae[1]-qn;if(Ve=Te-$n,wr||!(Ve>0)){if(Ve/=wr,wr<0){if(Ve<Cn)return;Ve<Fn&&(Fn=Ve)}else if(wr>0){if(Ve>Fn)return;Ve>Cn&&(Cn=Ve)}if(Ve=He-$n,wr||!(Ve<0)){if(Ve/=wr,wr<0){if(Ve>Fn)return;Ve>Cn&&(Cn=Ve)}else if(wr>0){if(Ve<Cn)return;Ve<Fn&&(Fn=Ve)}if(Ve=Pe-qn,ar||!(Ve>0)){if(Ve/=ar,ar<0){if(Ve<Cn)return;Ve<Fn&&(Fn=Ve)}else if(ar>0){if(Ve>Fn)return;Ve>Cn&&(Cn=Ve)}if(Ve=yn-qn,ar||!(Ve<0)){if(Ve/=ar,ar<0){if(Ve>Fn)return;Ve>Cn&&(Cn=Ve)}else if(ar>0){if(Ve<Cn)return;Ve<Fn&&(Fn=Ve)}return Cn>0&&(Wt[0]=$n+Cn*wr,Wt[1]=qn+Cn*ar),Fn<1&&(ae[0]=$n+Fn*wr,ae[1]=qn+Fn*ar),!0}}}}})(gt,Ot,t,e,r,a)?(it||(lt.lineStart(),lt.point(gt[0],gt[1])),lt.point(Ot[0],Ot[1]),jt||lt.lineEnd(),rt=!1):jt&&(lt.lineStart(),lt.point(Rt,Pt),rt=!1)}$=Rt,W=Pt,it=jt}return Jt}}function Hm(){var t,e,r,a=0,o=0,s=960,h=500;return r={stream:function(f){return t&&e===f?t:t=k0(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 tu={sphere:S,point:S,lineStart:function(){tu.point=Gm,tu.lineEnd=Vm},lineEnd:S,polygonStart:S,polygonEnd:S};function Vm(){tu.point=tu.lineEnd=S}function Gm(t,e){Qf=t*=Ln,v0=i(e*=Ln),_0=Nn(e),tu.point=Xm}function Xm(t,e){t*=Ln;var r=i(e*=Ln),a=Nn(e),o=ur(t-Qf),s=Nn(o),h=a*i(o),f=_0*r-v0*a*s,y=v0*r+_0*a*s;Zf.add(Hi(l(h*h+f*f),y)),Qf=t,v0=r,_0=a}function V2(t){return Zf=new vt,Q(t,tu),+Zf}var Kf=[null,null],Zm={type:"LineString",coordinates:Kf};function w0(t,e){return Kf[0]=t,Kf[1]=e,V2(Zm)}var G2={Feature:function(t,e){return T0(t.geometry,e)},FeatureCollection:function(t,e){for(var r=t.features,a=-1,o=r.length;++a<o;)if(T0(r[a].geometry,e))return!0;return!1}},X2={Sphere:function(){return!0},Point:function(t,e){return Z2(t.coordinates,e)},MultiPoint:function(t,e){for(var r=t.coordinates,a=-1,o=r.length;++a<o;)if(Z2(r[a],e))return!0;return!1},LineString:function(t,e){return Q2(t.coordinates,e)},MultiLineString:function(t,e){for(var r=t.coordinates,a=-1,o=r.length;++a<o;)if(Q2(r[a],e))return!0;return!1},Polygon:function(t,e){return K2(t.coordinates,e)},MultiPolygon:function(t,e){for(var r=t.coordinates,a=-1,o=r.length;++a<o;)if(K2(r[a],e))return!0;return!1},GeometryCollection:function(t,e){for(var r=t.geometries,a=-1,o=r.length;++a<o;)if(T0(r[a],e))return!0;return!1}};function T0(t,e){return!(!t||!X2.hasOwnProperty(t.type))&&X2[t.type](t,e)}function Z2(t,e){return w0(t,e)===0}function Q2(t,e){for(var r,a,o,s=0,h=t.length;s<h;s++){if((a=w0(t[s],e))===0||s>0&&(o=w0(t[s],t[s-1]))>0&&r<=o&&a<=o&&(r+a-o)*(1-Math.pow((r-a)/o,2))<Xs*o)return!0;r=a}return!1}function K2(t,e){return!!W2(t.map(Qm),J2(e))}function Qm(t){return(t=t.map(J2)).pop(),t}function J2(t){return[t[0]*Ln,t[1]*Ln]}function Km(t,e){return(t&&G2.hasOwnProperty(t.type)?G2[t.type]:T0)(t,e)}function tp(t,e,r){var a=De(t,e-Zn,r).concat(e);return function(o){return a.map(function(s){return[o,s]})}}function ep(t,e,r){var a=De(t,e-Zn,r).concat(e);return function(o){return a.map(function(s){return[s,o]})}}function np(){var t,e,r,a,o,s,h,f,y,v,C,I,D=10,R=D,Z=90,U=360,$=2.5;function W(){return{type:"MultiLineString",coordinates:it()}}function it(){return De(zr(a/Z)*Z,r,Z).map(C).concat(De(zr(f/U)*U,h,U).map(I)).concat(De(zr(e/D)*D,t,D).filter(function(nt){return ur(nt%Z)>Zn}).map(y)).concat(De(zr(s/R)*R,o,R).filter(function(nt){return ur(nt%U)>Zn}).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,y=tp(s,o,90),v=ep(e,t,$),C=tp(f,h,90),I=ep(a,r,$),W):$},W.extentMajor([[-180,-89.999999],[180,89.999999]]).extentMinor([[-180,-80.000001],[180,80.000001]])}function Jm(){return np()()}function t3(t,e){var r=t[0]*Ln,a=t[1]*Ln,o=e[0]*Ln,s=e[1]*Ln,h=Nn(a),f=i(a),y=Nn(s),v=i(s),C=h*Nn(r),I=h*i(r),D=y*Nn(o),R=y*i(o),Z=2*w(l(k(s-a)+h*y*k(o-r))),U=i(Z),$=Z?function(W){var it=i(W*=Z)/U,nt=i(Z-W)/U,rt=nt*C+it*D,lt=nt*I+it*R,pt=nt*f+it*v;return[Hi(lt,rt)*Nr,Hi(pt,l(rt*rt+lt*lt))*Nr]}:function(){return[r*Nr,a*Nr]};return $.distance=Z,$}const yh=t=>t;var rp,ip,Jf,td,ed=new vt,nd=new vt,Ks={point:S,lineStart:S,lineEnd:S,polygonStart:function(){Ks.lineStart=e3,Ks.lineEnd=r3},polygonEnd:function(){Ks.lineStart=Ks.lineEnd=Ks.point=S,ed.add(ur(nd)),nd=new vt},result:function(){var t=ed/2;return ed=new vt,t}};function e3(){Ks.point=n3}function n3(t,e){Ks.point=ap,rp=Jf=t,ip=td=e}function ap(t,e){nd.add(td*t-Jf*e),Jf=t,td=e}function r3(){ap(rp,ip)}const op=Ks;var eu=1/0,E0=eu,mh=-eu,S0=mh,i3={point:function(t,e){t<eu&&(eu=t),t>mh&&(mh=t),e<E0&&(E0=e),e>S0&&(S0=e)},lineStart:S,lineEnd:S,polygonStart:S,polygonEnd:S,result:function(){var t=[[eu,E0],[mh,S0]];return mh=S0=-(E0=eu=1/0),t}};const C0=i3;var sp,cp,Ko,Jo,rd=0,id=0,bh=0,A0=0,M0=0,nu=0,ad=0,od=0,vh=0,Oo={point:el,lineStart:lp,lineEnd:up,polygonStart:function(){Oo.lineStart=s3,Oo.lineEnd=c3},polygonEnd:function(){Oo.point=el,Oo.lineStart=lp,Oo.lineEnd=up},result:function(){var t=vh?[ad/vh,od/vh]:nu?[A0/nu,M0/nu]:bh?[rd/bh,id/bh]:[NaN,NaN];return rd=id=bh=A0=M0=nu=ad=od=vh=0,t}};function el(t,e){rd+=t,id+=e,++bh}function lp(){Oo.point=a3}function a3(t,e){Oo.point=o3,el(Ko=t,Jo=e)}function o3(t,e){var r=t-Ko,a=e-Jo,o=l(r*r+a*a);A0+=o*(Ko+t)/2,M0+=o*(Jo+e)/2,nu+=o,el(Ko=t,Jo=e)}function up(){Oo.point=el}function s3(){Oo.point=l3}function c3(){hp(sp,cp)}function l3(t,e){Oo.point=hp,el(sp=Ko=t,cp=Jo=e)}function hp(t,e){var r=t-Ko,a=e-Jo,o=l(r*r+a*a);A0+=o*(Ko+t)/2,M0+=o*(Jo+e)/2,nu+=o,ad+=(o=Jo*t-Ko*e)*(Ko+t),od+=o*(Jo+e),vh+=3*o,el(Ko=t,Jo=e)}const fp=Oo;function dp(t){this._context=t}dp.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,ra)}},result:S};var sd,pp,gp,_h,xh,cd=new vt,D0={point:S,lineStart:function(){D0.point=u3},lineEnd:function(){sd&&yp(pp,gp),D0.point=S},polygonStart:function(){sd=!0},polygonEnd:function(){sd=null},result:function(){var t=+cd;return cd=new vt,t}};function u3(t,e){D0.point=yp,pp=_h=t,gp=xh=e}function yp(t,e){_h-=t,xh-=e,cd.add(l(_h*_h+xh*xh)),_h=t,xh=e}const mp=D0;function bp(){this._string=[]}function vp(t){return"m0,"+t+"a"+t+","+t+" 0 1,1 0,"+-2*t+"a"+t+","+t+" 0 1,1 0,"+2*t+"z"}function h3(t,e){var r,a,o=4.5;function s(h){return h&&(typeof o=="function"&&a.pointRadius(+o.apply(this,arguments)),Q(h,r(a))),a.result()}return s.area=function(h){return Q(h,r(op)),op.result()},s.measure=function(h){return Q(h,r(mp)),mp.result()},s.bounds=function(h){return Q(h,r(C0)),C0.result()},s.centroid=function(h){return Q(h,r(fp)),fp.result()},s.projection=function(h){return arguments.length?(r=h==null?(t=null,yh):(t=h).stream,s):t},s.context=function(h){return arguments.length?(a=h==null?(e=null,new bp):new dp(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 f3(t){return{stream:kh(t)}}function kh(t){return function(e){var r=new ld;for(var a in t)r[a]=t[a];return r.stream=e,r}}function ld(){}function ud(t,e,r){var a=t.clipExtent&&t.clipExtent();return t.scale(150).translate([0,0]),a!=null&&t.clipExtent(null),Q(r,t.stream(C0)),e(C0.result()),a!=null&&t.clipExtent(a),t}function N0(t,e,r){return ud(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,y=+e[0][1]+(s-h*(a[1][1]+a[0][1]))/2;t.scale(150*h).translate([f,y])},r)}function hd(t,e,r){return N0(t,[[0,0],e],r)}function fd(t,e,r){return ud(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 dd(t,e,r){return ud(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)}bp.prototype={_radius:4.5,_circle:vp(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=vp(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}},ld.prototype={constructor:ld,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 d3=Nn(30*Ln);function _p(t,e){return+e?function(r,a){function o(s,h,f,y,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=y+Z,Jt=v+U,ye=C+$,Yt=l(pt*pt+Jt*Jt+ye*ye),Rt=w(ye/=Yt),Pt=ur(ur(ye)-1)<Zn||ur(f-R)<Zn?(f+R)/2:Hi(Jt,pt),jt=r(Pt,Rt),gt=jt[0],Ot=jt[1],Wt=gt-s,ae=Ot-h,Te=rt*Wt-nt*ae;(Te*Te/lt>a||ur((nt*Wt+rt*ae)/lt-.5)>.3||y*Z+v*U+C*$<d3)&&(o(s,h,f,y,v,C,gt,Ot,Pt,pt/=Yt,Jt/=Yt,ye,W,it),it.point(gt,Ot),o(gt,Ot,Pt,pt,Jt,ye,I,D,R,Z,U,$,W,it))}}return function(s){var h,f,y,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(Rt,Pt){Rt=r(Rt,Pt),s.point(Rt[0],Rt[1])}function rt(){R=NaN,it.point=lt,s.lineStart()}function lt(Rt,Pt){var jt=nn([Rt,Pt]),gt=r(Rt,Pt);o(R,Z,D,U,$,W,R=gt[0],Z=gt[1],D=Rt,U=jt[0],$=jt[1],W=jt[2],16,s),s.point(R,Z)}function pt(){it.point=nt,s.lineEnd()}function Jt(){rt(),it.point=ye,it.lineEnd=Yt}function ye(Rt,Pt){lt(h=Rt,Pt),f=R,y=Z,v=U,C=$,I=W,it.point=lt}function Yt(){o(R,Z,D,U,$,W,f,y,h,v,C,I,16,s),it.lineEnd=pt,pt()}return it}}(t,e):function(r){return kh({point:function(a,o){a=r(a,o),this.stream.point(a[0],a[1])}})}(t)}var p3=kh({point:function(t,e){this.stream.point(t*Ln,e*Ln)}});function xp(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=Nn(s),f=i(s),y=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[y*(U*=a)-v*($*=o)+e,r-v*U-y*$]}return Z.invert=function(U,$){return[a*(C*U-I*$+D),o*(R-I*U-C*$)]},Z}function ts(t){return pd(function(){return t})()}function pd(t){var e,r,a,o,s,h,f,y,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=Xf,ye=null,Yt=yh,Rt=.5;function Pt(Wt){return y(Wt[0]*Ln,Wt[1]*Ln)}function jt(Wt){return(Wt=y.invert(Wt[0],Wt[1]))&&[Wt[0]*Nr,Wt[1]*Nr]}function gt(){var Wt=xp(I,0,0,rt,lt,nt).apply(null,e(Z,U)),ae=xp(I,D-Wt[0],R-Wt[1],rt,lt,nt);return r=Vf($,W,it),f=qf(e,ae),y=qf(r,f),h=_p(f,Rt),Ot()}function Ot(){return v=C=null,Pt}return Pt.stream=function(Wt){return v&&C===Wt?v:v=p3(function(ae){return kh({point:function(Te,Pe){var He=ae(Te,Pe);return this.stream.point(He[0],He[1])}})}(r)(Jt(h(Yt(C=Wt)))))},Pt.preclip=function(Wt){return arguments.length?(Jt=Wt,pt=void 0,Ot()):Jt},Pt.postclip=function(Wt){return arguments.length?(Yt=Wt,ye=a=o=s=null,Ot()):Yt},Pt.clipAngle=function(Wt){return arguments.length?(Jt=+Wt?H2(pt=Wt*Ln):(pt=null,Xf),Ot()):pt*Nr},Pt.clipExtent=function(Wt){return arguments.length?(Yt=Wt==null?(ye=a=o=s=null,yh):k0(ye=+Wt[0][0],a=+Wt[0][1],o=+Wt[1][0],s=+Wt[1][1]),Ot()):ye==null?null:[[ye,a],[o,s]]},Pt.scale=function(Wt){return arguments.length?(I=+Wt,gt()):I},Pt.translate=function(Wt){return arguments.length?(D=+Wt[0],R=+Wt[1],gt()):[D,R]},Pt.center=function(Wt){return arguments.length?(Z=Wt[0]%360*Ln,U=Wt[1]%360*Ln,gt()):[Z*Nr,U*Nr]},Pt.rotate=function(Wt){return arguments.length?($=Wt[0]%360*Ln,W=Wt[1]%360*Ln,it=Wt.length>2?Wt[2]%360*Ln:0,gt()):[$*Nr,W*Nr,it*Nr]},Pt.angle=function(Wt){return arguments.length?(nt=Wt%360*Ln,gt()):nt*Nr},Pt.reflectX=function(Wt){return arguments.length?(rt=Wt?-1:1,gt()):rt<0},Pt.reflectY=function(Wt){return arguments.length?(lt=Wt?-1:1,gt()):lt<0},Pt.precision=function(Wt){return arguments.length?(h=_p(f,Rt=Wt*Wt),Ot()):l(Rt)},Pt.fitExtent=function(Wt,ae){return N0(Pt,Wt,ae)},Pt.fitSize=function(Wt,ae){return hd(Pt,Wt,ae)},Pt.fitWidth=function(Wt,ae){return fd(Pt,Wt,ae)},Pt.fitHeight=function(Wt,ae){return dd(Pt,Wt,ae)},function(){return e=t.apply(this,arguments),Pt.invert=e.invert&&jt,gt()}}function gd(t){var e=0,r=er/3,a=pd(t),o=a(e,r);return o.parallels=function(s){return arguments.length?a(e=s[0]*Ln,r=s[1]*Ln):[e*Nr,r*Nr]},o}function kp(t,e){var r=i(t),a=(r+i(e))/2;if(ur(a)<Zn)return function(f){var y=Nn(f);function v(C,I){return[C*y,i(I)/y]}return v.invert=function(C,I){return[C/y,w(I*y)]},v}(t);var o=1+r*(2*a-r),s=l(o)/a;function h(f,y){var v=l(o-2*a*i(y))/a;return[v*i(f*=a),s-v*Nn(f)]}return h.invert=function(f,y){var v=s-y,C=Hi(f,ur(v))*n(v);return v*a<0&&(C-=er*n(f)*n(v)),[C/a,w((o-(f*f+v*v)*a*a)/(2*a))]},h}function O0(){return gd(kp).scale(155.424).center([0,33.6442])}function wp(){return O0().parallels([29.5,45.5]).scale(1070).translate([480,250]).rotate([96,0]).center([-.6,38.7])}function g3(){var t,e,r,a,o,s,h=wp(),f=O0().rotate([154,0]).center([-2,58.5]).parallels([55,65]),y=O0().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?y:h).invert(D)},C.stream=function(D){return t&&e===D?t:(R=[h.stream(e=D),f.stream(D),y.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),y.precision(D),I()):h.precision()},C.scale=function(D){return arguments.length?(h.scale(D),f.scale(.35*D),y.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+Zn,U+.12*R+Zn],[Z-.214*R-Zn,U+.234*R-Zn]]).stream(v),o=y.translate([Z-.205*R,U+.212*R]).clipExtent([[Z-.214*R+Zn,U+.166*R+Zn],[Z-.115*R-Zn,U+.234*R-Zn]]).stream(v),I()},C.fitExtent=function(D,R){return N0(C,D,R)},C.fitSize=function(D,R){return hd(C,D,R)},C.fitWidth=function(D,R){return fd(C,D,R)},C.fitHeight=function(D,R){return dd(C,D,R)},C.scale(1070)}function Tp(t){return function(e,r){var a=Nn(e),o=Nn(r),s=t(a*o);return s===1/0?[2,0]:[s*o*i(e),s*i(r)]}}function wh(t){return function(e,r){var a=l(e*e+r*r),o=t(a),s=i(o),h=Nn(o);return[Hi(e*s,a*h),w(a&&r*s/a)]}}var yd=Tp(function(t){return l(2/(1+t))});function y3(){return ts(yd).scale(124.75).clipAngle(179.999)}yd.invert=wh(function(t){return 2*w(t/2)});var md=Tp(function(t){return(t=m(t))&&t/i(t)});function m3(){return ts(md).scale(79.4188).clipAngle(179.999)}function Th(t,e){return[t,ki(d((ri+e)/2))]}function b3(){return Ep(Th).scale(961/ra)}function Ep(t){var e,r,a,o=ts(t),s=o.center,h=o.scale,f=o.translate,y=o.clipExtent,v=null;function C(){var I=er*h(),D=o(P2(o.rotate()).invert([0,0]));return y(v==null?[[D[0]-I,D[1]-I],[D[0]+I,D[1]+I]]:t===Th?[[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 B0(t){return d((ri+t)/2)}function Sp(t,e){var r=Nn(t),a=t===e?i(t):ki(r/Nn(e))/ki(B0(e)/B0(t)),o=r*Zs(B0(t),a)/a;if(!a)return Th;function s(h,f){o>0?f<-ri+Zn&&(f=-ri+Zn):f>ri-Zn&&(f=ri-Zn);var y=o/Zs(B0(f),a);return[y*i(a*h),o-y*Nn(a*h)]}return s.invert=function(h,f){var y=o-f,v=n(a)*l(h*h+y*y),C=Hi(h,ur(y))*n(y);return y*a<0&&(C-=er*n(h)*n(y)),[C/a,2*to(Zs(o/v,1/a))-ri]},s}function v3(){return gd(Sp).scale(109.5).parallels([30,30])}function Eh(t,e){return[t,e]}function _3(){return ts(Eh).scale(152.63)}function Cp(t,e){var r=Nn(t),a=t===e?i(t):(r-Nn(e))/(e-t),o=r/a+t;if(ur(a)<Zn)return Eh;function s(h,f){var y=o-f,v=a*h;return[y*i(v),o-y*Nn(v)]}return s.invert=function(h,f){var y=o-f,v=Hi(h,ur(y))*n(y);return y*a<0&&(v-=er*n(h)*n(y)),[v/a,o-n(a)*l(h*h+y*y)]},s}function x3(){return gd(Cp).scale(131.154).center([0,13.9389])}md.invert=wh(function(t){return t}),Th.invert=function(t,e){return[t,2*to(fh(e))-ri]},Eh.invert=Eh;var Sh=1.340264,Ch=-.081106,Ah=893e-6,Mh=.003796,L0=l(3)/2;function bd(t,e){var r=w(L0*i(e)),a=r*r,o=a*a*a;return[t*Nn(r)/(L0*(Sh+3*Ch*a+o*(7*Ah+9*Mh*a))),r*(Sh+Ch*a+o*(Ah+Mh*a))]}function k3(){return ts(bd).scale(177.158)}function vd(t,e){var r=Nn(e),a=Nn(t)*r;return[r*i(t)/a,i(e)/a]}function w3(){return ts(vd).scale(144.049).clipAngle(60)}function T3(){var t,e,r,a,o,s,h,f=1,y=0,v=0,C=1,I=1,D=0,R=null,Z=1,U=1,$=kh({point:function(rt,lt){var pt=nt([rt,lt]);this.stream.point(pt[0],pt[1])}}),W=yh;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+y,pt+v]}return nt.invert=function(rt){var lt=rt[0]-y,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,yh):k0(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?(y=+rt[0],v=+rt[1],it()):[y,v]},nt.angle=function(rt){return arguments.length?(e=i(D=rt%360*Ln),t=Nn(D),it()):D*Nr},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 N0(nt,rt,lt)},nt.fitSize=function(rt,lt){return hd(nt,rt,lt)},nt.fitWidth=function(rt,lt){return fd(nt,rt,lt)},nt.fitHeight=function(rt,lt){return dd(nt,rt,lt)},nt}function _d(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 E3(){return ts(_d).scale(175.295)}function xd(t,e){return[Nn(e)*i(t),i(e)]}function S3(){return ts(xd).scale(249.5).clipAngle(90.000001)}function kd(t,e){var r=Nn(e),a=1+Nn(t)*r;return[r*i(t)/a,i(e)/a]}function C3(){return ts(kd).scale(250).clipAngle(142)}function wd(t,e){return[ki(d((ri+e)/2)),-t]}function A3(){var t=Ep(wd),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 M3(t,e){return t.parent===e.parent?1:2}function D3(t,e){return t+e.x}function N3(t,e){return Math.max(t,e.y)}function O3(){var t=M3,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(D3,0)/Z.length}(R),D.y=function(Z){return 1+Z.reduce(N3,0)}(R)):(D.x=h?f+=t(D,h):0,D.y=0,h=D)});var y=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=y.x-t(y,v)/2,I=v.x+t(v,y)/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 B3(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 Td(t,e){t instanceof Map?(t=[void 0,t],e===void 0&&(e=I3)):e===void 0&&(e=L3);for(var r,a,o,s,h,f=new nl(t),y=[f];r=y.pop();)if((o=e(r.data))&&(h=(o=Array.from(o)).length))for(r.children=o,s=h-1;s>=0;--s)y.push(a=o[s]=new nl(o[s])),a.parent=r,a.depth=r.depth+1;return f.eachBefore(Ap)}function L3(t){return t.children}function I3(t){return Array.isArray(t)?t[1]:null}function F3(t){t.data.value!==void 0&&(t.value=t.data.value),t.data=t.data.data}function Ap(t){var e=0;do t.height=e;while((t=t.parent)&&t.height<++e)}function nl(t){this.data=t,this.depth=this.height=0,this.parent=null}function Mp(t){for(var e,r,a=0,o=(t=function(h){for(var f,y,v=h.length;v;)y=Math.random()*v--|0,f=h[v],h[v]=h[y],h[y]=f;return h}(Array.from(t))).length,s=[];a<o;)e=t[a],r&&Dp(r,e)?++a:(r=P3(s=R3(s,e)),a=0);return r}function R3(t,e){var r,a;if(Ed(e,t))return[e];for(r=0;r<t.length;++r)if(I0(e,t[r])&&Ed(Dh(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(I0(Dh(t[r],t[a]),e)&&I0(Dh(t[r],e),t[a])&&I0(Dh(t[a],e),t[r])&&Ed(Np(t[r],t[a],e),t))return[t[r],t[a],e];throw new Error}function I0(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 Dp(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 Ed(t,e){for(var r=0;r<e.length;++r)if(!Dp(t,e[r]))return!1;return!0}function P3(t){switch(t.length){case 1:return{x:(e=t[0]).x,y:e.y,r:e.r};case 2:return Dh(t[0],t[1]);case 3:return Np(t[0],t[1],t[2])}var e}function Dh(t,e){var r=t.x,a=t.y,o=t.r,s=e.x,h=e.y,f=e.r,y=s-r,v=h-a,C=f-o,I=Math.sqrt(y*y+v*v);return{x:(r+s+y/I*C)/2,y:(a+h+v/I*C)/2,r:(I+o+f)/2}}function Np(t,e,r){var a=t.x,o=t.y,s=t.r,h=e.x,f=e.y,y=e.r,v=r.x,C=r.y,I=r.r,D=a-h,R=a-v,Z=o-f,U=o-C,$=y-s,W=I-s,it=a*a+o*o-s*s,nt=it-h*h-f*f+y*y,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,Yt=(D*W-R*$)/lt,Rt=Jt*Jt+Yt*Yt-1,Pt=2*(s+pt*Jt+ye*Yt),jt=pt*pt+ye*ye-s*s,gt=-(Rt?(Pt+Math.sqrt(Pt*Pt-4*Rt*jt))/(2*Rt):jt/Pt);return{x:a+pt+Jt*gt,y:o+ye+Yt*gt,r:gt}}function Op(t,e,r){var a,o,s,h,f=t.x-e.x,y=t.y-e.y,v=f*f+y*y;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*y,r.y=t.y-a*y+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*y,r.y=e.y+a*y+s*f)):(r.x=e.x+r.r,r.y=e.y)}function Bp(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 Lp(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 F0(t){this._=t,this.next=null,this.previous=null}function Ip(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,y,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;Op(a,r,o=t[2]),r=new F0(r),a=new F0(a),o=new F0(o),r.next=o.previous=a,a.next=r.previous=o,o.next=a.previous=r;t:for(y=3;y<s;++y){Op(r._,a._,o=t[y]),o=new F0(o),v=a.next,C=r.previous,I=a._.r,D=r._.r;do if(I<=D){if(Bp(v._,o._)){a=v,r.next=a,a.previous=r,--y;continue t}I+=v._.r,v=v.next}else{if(Bp(C._,o._)){(r=C).next=a,a.previous=r,--y;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=Lp(r);(o=o.next)!==a;)(f=Lp(o))<h&&(r=o,h=f);a=r.next}for(r=[a._],o=a;(o=o.next)!==a;)r.push(o._);for(o=Mp(r),y=0;y<s;++y)(r=t[y]).x-=o.x,r.y-=o.y;return o.r}function j3(t){return Ip(t),t}function R0(t){return t==null?null:Fp(t)}function Fp(t){if(typeof t!="function")throw new Error;return t}function rl(){return 0}function ru(t){return function(){return t}}function z3(t){return Math.sqrt(t.value)}function Y3(){var t=null,e=1,r=1,a=rl;function o(s){return s.x=e/2,s.y=r/2,t?s.eachBefore(Rp(t)).eachAfter(Sd(a,.5)).eachBefore(Pp(1)):s.eachBefore(Rp(z3)).eachAfter(Sd(rl,1)).eachAfter(Sd(a,s.r/Math.min(e,r))).eachBefore(Pp(Math.min(e,r)/(2*s.r))),s}return o.radius=function(s){return arguments.length?(t=R0(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:ru(+s),o):a},o}function Rp(t){return function(e){e.children||(e.r=Math.max(0,+t(e)||0))}}function Sd(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=Ip(a),f)for(o=0;o<h;++o)a[o].r-=f;r.r=s+f}}}function Pp(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 jp(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 Nh(t,e,r,a,o){for(var s,h=t.children,f=-1,y=h.length,v=t.value&&(a-e)/t.value;++f<y;)(s=h[f]).y0=r,s.y1=o,s.x0=e,s.x1=e+=s.value*v}function U3(){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,y){return function(v){v.children&&Nh(v,v.x0,f*(v.depth+1)/y,v.x1,f*(v.depth+2)/y);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(jp),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}bd.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*(Sh+Ch*o+s*(Ah+Mh*o))-e)/(Sh+3*Ch*o+s*(7*Ah+9*Mh*o)))*a)*o*o,!(ur(r)<Xs));++h);return[L0*t*(Sh+3*Ch*o+s*(7*Ah+9*Mh*o))/Nn(a),w(i(a)/L0)]},vd.invert=wh(to),_d.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-.005916*11*h)))}while(ur(r)>Zn&&--o>0);return[t/(.8707+(s=a*a)*(s*(s*s*s*(.003971-.001529*s)-.013791)-.131979)),a]},xd.invert=wh(w),kd.invert=wh(function(t){return 2*to(t)}),wd.invert=function(t,e){return[-e,2*to(fh(t))-ri]},nl.prototype=Td.prototype={constructor:nl,count:function(){return this.eachAfter(B3)},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=[],y=-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,++y,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(),y=h.ancestors(),v=null;for(s=f.pop(),h=y.pop();s===h;)v=s,s=f.pop(),h=y.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 Td(this).eachBefore(F3)},[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 $3={depth:-1},zp={},Cd={};function W3(t){return t.id}function q3(t){return t.parentId}function H3(){var t,e=W3,r=q3;function a(o){var s,h,f,y,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 Ad(pt,Jt-1)&&!Ad(pt,Jt-2)&&(pt=pt.slice(0,-1)),pt[0]==="/"?pt:`/${pt}`}(t(rt,lt,o))),it=W.map(Yp),nt=new Set(W).add("");for(const rt of it)nt.has(rt)||(nt.add(rt),W.push(rt),it.push(Yp(rt)),R.push(Cd));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 nl(h),(I=Z(h,f,o))!=null&&(I+="")&&(D=C.id=I,$.set(D,$.has(D)?zp: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===zp)throw new Error("ambiguous: "+I);v.children?v.children.push(C):v.children=[C],C.parent=v}else{if(y)throw new Error("multiple roots");y=C}if(!y)throw new Error("no root");if(t!=null){for(;y.data===Cd&&y.children.length===1;)y=y.children[0],--s;for(let W=R.length-1;W>=0&&(C=R[W],C.data===Cd);--W)C.data=null}if(y.parent=$3,y.eachBefore(function(W){W.depth=W.parent.depth+1,--s}).eachBefore(Ap),y.parent=null,s>0)throw new Error("cycle");return y}return a.id=function(o){return arguments.length?(e=R0(o),a):e},a.parentId=function(o){return arguments.length?(r=R0(o),a):r},a.path=function(o){return arguments.length?(t=R0(o),a):t},a}function Yp(t){let e=t.length;if(e<2)return"";for(;--e>1&&!Ad(t,e););return t.slice(0,e)}function Ad(t,e){if(t[e]==="/"){let r=0;for(;e>0&&t[--e]==="\\";)++r;if((1&r)==0)return!0}return!1}function V3(t,e){return t.parent===e.parent?1:2}function Md(t){var e=t.children;return e?e[0]:t.t}function Dd(t){var e=t.children;return e?e[e.length-1]:t.t}function G3(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 X3(t,e,r){return t.a.parent===e.parent?t.a:r}function P0(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 Z3(){var t=V3,e=1,r=1,a=null;function o(y){var v=function(W){for(var it,nt,rt,lt,pt,Jt=new P0(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 P0(rt[lt],lt)),nt.parent=it;return(Jt.parent=new P0(null,0)).children=[Jt],Jt}(y);if(v.eachAfter(s),v.parent.m=-v.z,v.eachBefore(h),a)y.eachBefore(f);else{var C=y,I=y,D=y;y.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);y.eachBefore(function(W){W.x=(W.x+Z)*U,W.y=W.depth*$})}return y}function s(y){var v=y.children,C=y.parent.children,I=y.i?C[y.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)})(y);var D=(v[0].z+v[v.length-1].z)/2;I?(y.z=I.z+t(y._,I._),y.m=y.z-D):y.z=D}else I&&(y.z=I.z+t(y._,I._));y.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=Dd(nt),W=Md(W),nt&&W;)rt=Md(rt),(it=Dd(it)).a=R,($=nt.z+Jt-W.z-lt+t(nt._,W._))>0&&(G3(X3(nt,R,U),R,$),lt+=$,pt+=$),Jt+=nt.m,lt+=W.m,ye+=rt.m,pt+=it.m;nt&&!Dd(it)&&(it.t=nt,it.m+=Jt-pt),W&&!Md(rt)&&(rt.t=W,rt.m+=lt-ye,U=R)}return U}(y,I,y.parent.A||C[0])}function h(y){y._.x=y.z+y.parent.m,y.m+=y.parent.m}function f(y){y.x*=e,y.y=y.depth*r}return o.separation=function(y){return arguments.length?(t=y,o):t},o.size=function(y){return arguments.length?(a=!1,e=+y[0],r=+y[1],o):a?null:[e,r]},o.nodeSize=function(y){return arguments.length?(a=!0,e=+y[0],r=+y[1],o):a?[e,r]:null},o}function j0(t,e,r,a,o){for(var s,h=t.children,f=-1,y=h.length,v=t.value&&(o-r)/t.value;++f<y;)(s=h[f]).x0=e,s.x1=a,s.y0=r,s.y1=r+=s.value*v}P0.prototype=Object.create(nl.prototype);var Up=(1+Math.sqrt(5))/2;function $p(t,e,r,a,o,s){for(var h,f,y,v,C,I,D,R,Z,U,$,W=[],it=e.children,nt=0,rt=0,lt=it.length,pt=e.value;nt<lt;){y=o-r,v=s-a;do C=it[rt++].value;while(!C&&rt<lt);for(I=D=C,$=C*C*(U=Math.max(v/y,y/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:y<v,children:it.slice(nt,rt)}),h.dice?Nh(h,r,a,o,pt?a+=v*C/pt:s):j0(h,r,a,pt?r+=y*C/pt:o,s),pt-=C,nt=rt}return W}const Wp=function t(e){function r(a,o,s,h,f){$p(e,a,o,s,h,f)}return r.ratio=function(a){return t((a=+a)>1?a:1)},r}(Up);function Q3(){var t=Wp,e=!1,r=1,a=1,o=[0],s=rl,h=rl,f=rl,y=rl,v=rl;function C(D){return D.x0=D.y0=0,D.x1=r,D.y1=a,D.eachBefore(I),o=[0],e&&D.eachBefore(jp),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-=y(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=Fp(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:ru(+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:ru(+D),C):h},C.paddingRight=function(D){return arguments.length?(f=typeof D=="function"?D:ru(+D),C):f},C.paddingBottom=function(D){return arguments.length?(y=typeof D=="function"?D:ru(+D),C):y},C.paddingLeft=function(D){return arguments.length?(v=typeof D=="function"?D:ru(+D),C):v},C}function K3(t,e,r,a,o){var s,h,f=t.children,y=f.length,v=new Array(y+1);for(v[0]=h=s=0;s<y;++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,Yt=R-ye;if($-Z>W-U){var Rt=R?(Z*Yt+$*ye)/R:$;C(I,lt,ye,Z,U,Rt,W),C(lt,D,Yt,Rt,U,$,W)}else{var Pt=R?(U*Yt+W*ye)/R:W;C(I,lt,ye,Z,U,$,Pt),C(lt,D,Yt,Z,Pt,$,W)}})(0,y,t.value,e,r,a,o)}function J3(t,e,r,a,o){(1&t.depth?j0:Nh)(t,e,r,a,o)}const t4=function t(e){function r(a,o,s,h,f){if((y=a._squarify)&&y.ratio===e)for(var y,v,C,I,D,R=-1,Z=y.length,U=a.value;++R<Z;){for(C=(v=y[R]).children,I=v.value=0,D=C.length;I<D;++I)v.value+=C[I].value;v.dice?Nh(v,o,s,h,U?s+=(f-s)*v.value/U:f):j0(v,o,s,U?o+=(h-o)*v.value/U:h,f),U-=v.value}else a._squarify=y=$p(e,a,o,s,h,f),y.ratio=e}return r.ratio=function(a){return t((a=+a)>1?a:1)},r}(Up);function e4(t){var e=t.length;return function(r){return t[Math.max(0,Math.min(e-1,Math.floor(r*e)))]}}function n4(t,e){var r=pl(+t,+e);return function(a){var o=r(a);return o-360*Math.floor(o/360)}}function z0(t,e){return t=+t,e=+e,function(r){return Math.round(t*(1-r)+e*r)}}function qp(t){return((t=Math.exp(t))+1/t)/2}const Hp=function t(e,r,a){function o(s,h){var f,y,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)y=Math.log(Z/I)/e,f=function(Jt){return[v+Jt*U,C+Jt*$,I*Math.exp(e*Jt*y)]};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);y=(pt-lt)/e,f=function(Jt){var ye,Yt=Jt*y,Rt=qp(lt),Pt=I/(r*it)*(Rt*(ye=e*Yt+lt,((ye=Math.exp(2*ye))-1)/(ye+1))-function(jt){return((jt=Math.exp(jt))-1/jt)/2}(lt));return[v+Pt*U,C+Pt*$,I*Rt/qp(e*Yt+lt)]}}return f.duration=1e3*y*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 Vp(t){return function(e,r){var a=t((e=bc(e)).h,(r=bc(r)).h),o=Oi(e.s,r.s),s=Oi(e.l,r.l),h=Oi(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 r4=Vp(pl);var i4=Vp(Oi);function a4(t,e){var r=Oi((t=jc(t)).l,(e=jc(e)).l),a=Oi(t.a,e.a),o=Oi(t.b,e.b),s=Oi(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 Gp(t){return function(e,r){var a=t((e=Is(e)).h,(r=Is(r)).h),o=Oi(e.c,r.c),s=Oi(e.l,r.l),h=Oi(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 o4=Gp(pl);var s4=Gp(Oi);function Xp(t){return function e(r){function a(o,s){var h=t((o=Ya(o)).h,(s=Ya(s)).h),f=Oi(o.s,s.s),y=Oi(o.l,s.l),v=Oi(o.opacity,s.opacity);return function(C){return o.h=h(C),o.s=f(C),o.l=y(Math.pow(C,r)),o.opacity=v(C),o+""}}return r=+r,a.gamma=e,a}(1)}const c4=Xp(pl);var Y0=Xp(Oi);function Zp(t,e){e===void 0&&(e=t,t=Jn);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 l4(t,e){for(var r=new Array(e),a=0;a<e;++a)r[a]=t(a/(e-1));return r}function u4(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 h4(t){for(var e,r,a=-1,o=t.length,s=0,h=0,f=t[o-1],y=0;++a<o;)e=f,f=t[a],y+=r=e[0]*f[1]-f[0]*e[1],s+=(e[0]+f[0])*r,h+=(e[1]+f[1])*r;return[s/(y*=3),h/y]}function f4(t,e,r){return(e[0]-t[0])*(r[1]-t[1])-(e[1]-t[1])*(r[0]-t[0])}function d4(t,e){return t[0]-e[0]||t[1]-e[1]}function Qp(t){const e=t.length,r=[0,1];let a,o=2;for(a=2;a<e;++a){for(;o>1&&f4(t[r[o-2]],t[r[o-1]],t[a])<=0;)--o;r[o++]=a}return r.slice(0,o)}function p4(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(d4),e=0;e<r;++e)o[e]=[a[e][0],-a[e][1]];var s=Qp(a),h=Qp(o),f=h[0]===s[0],y=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-y;++e)v.push(t[a[h[e]][2]]);return v}function g4(t,e){for(var r,a,o=t.length,s=t[o-1],h=e[0],f=e[1],y=s[0],v=s[1],C=!1,I=0;I<o;++I)r=(s=t[I])[0],(a=s[1])>f!=v>f&&h<(y-r)*(f-a)/(v-a)+r&&(C=!C),y=r,v=a;return C}function y4(t){for(var e,r,a=-1,o=t.length,s=t[o-1],h=s[0],f=s[1],y=0;++a<o;)e=h,r=f,e-=h=(s=t[a])[0],r-=f=s[1],y+=Math.hypot(e,r);return y}const ia=Math.random,m4=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}(ia),b4=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}(ia),Nd=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}(ia),v4=function t(e){var r=Nd.source(e);function a(){var o=r.apply(this,arguments);return function(){return Math.exp(o())}}return a.source=t,a}(ia),Kp=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}(ia),_4=function t(e){var r=Kp.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}(ia),x4=function t(e){function r(a){return function(){return-Math.log1p(-e())/a}}return r.source=t,r}(ia),k4=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}(ia),w4=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}(ia),Jp=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}(ia),Od=function t(e){var r=Nd.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)),y=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*y()*s}}return a.source=t,a}(ia),tg=function t(e){var r=Od.source(e);function a(o,s){var h=r(o),f=r(s);return function(){var y=h();return y===0?0:y/(y+f())}}return a.source=t,a}(ia),eg=function t(e){var r=Jp.source(e),a=tg.source(e);function o(s,h){return s=+s,(h=+h)>=1?()=>s:h<=0?()=>0:function(){for(var f=0,y=s,v=h;y*v>16&&y*(1-v)>16;){var C=Math.floor((y+1)*v),I=a(C,y-C+1)();I<=v?(f+=C,y-=C,v=(v-I)/(1-I)):(y=C-1,v/=I)}for(var D=v<.5,R=r(D?v:1-v),Z=R(),U=0;Z<=y;++U)Z+=R();return f+(D?U:y-U)}}return o.source=t,o}(ia),T4=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}(ia),E4=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}(ia),S4=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}(ia),C4=function t(e){var r=Od.source(e),a=eg.source(e);function o(s){return function(){for(var h=0,f=s;f>16;){var y=Math.floor(.875*f),v=r(y)();if(v>f)return h+a(y-1,f/v)();h+=y,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}(ia),ng=1/4294967296;function A4(t=Math.random()){let e=0|(0<=t&&t<1?t/ng:Math.abs(t));return()=>(e=1664525*e+1013904223|0,ng*(e>>>0))}function io(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t)}return this}function xs(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 Bd=Symbol("implicit");function Ld(){var t=new kt,e=[],r=[],a=Bd;function o(s){let h=t.get(s);if(h===void 0){if(a!==Bd)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 kt;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 Ld(e,r).unknown(a)},io.apply(o,arguments),o}function Id(){var t,e,r=Ld().unknown(void 0),a=r.domain,o=r.range,s=0,h=1,f=!1,y=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-y+2*v),f&&(t=Math.floor(t)),Z+=(U-Z-t*(D-y))*C,e=t*(1-y),f&&(Z=Math.round(Z),e=Math.round(e));var $=De(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?(y=Math.min(1,v=+D),I()):y},r.paddingInner=function(D){return arguments.length?(y=Math.min(1,D),I()):y},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 Id(a(),[s,h]).round(f).paddingInner(y).paddingOuter(v).align(C)},io.apply(I(),arguments)}function rg(t){var e=t.copy;return t.padding=t.paddingOuter,delete t.paddingInner,delete t.paddingOuter,t.copy=function(){return rg(e())},t}function M4(){return rg(Id.apply(null,arguments).paddingInner(1))}function U0(t){return+t}var ig=[0,1];function xa(t){return t}function Fd(t,e){return(e-=t=+t)?function(a){return(a-t)/e}:(r=isNaN(e)?NaN:.5,function(){return r});var r}function D4(t,e,r){var a=t[0],o=t[1],s=e[0],h=e[1];return o<a?(a=Fd(o,a),s=r(h,s)):(a=Fd(a,o),s=r(s,h)),function(f){return s(a(f))}}function N4(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]=Fd(t[h],t[h+1]),s[h]=r(e[h],e[h+1]);return function(f){var y=F(t,f,1,a)-1;return s[y](o[y](f))}}function Oh(t,e){return e.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function $0(){var t,e,r,a,o,s,h=ig,f=ig,y=Jn,v=xa;function C(){var D,R,Z,U=Math.min(h.length,f.length);return v!==xa&&(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?N4:D4,o=s=null,I}function I(D){return D==null||isNaN(D=+D)?r:(o||(o=a(h.map(t),f,y)))(t(v(D)))}return I.invert=function(D){return v(e((s||(s=a(f,h.map(t),ua)))(D)))},I.domain=function(D){return arguments.length?(h=Array.from(D,U0),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),y=z0,C()},I.clamp=function(D){return arguments.length?(v=!!D||xa,C()):v!==xa},I.interpolate=function(D){return arguments.length?(y=D,C()):y},I.unknown=function(D){return arguments.length?(r=D,I):r},function(D,R){return t=D,e=R,C()}}function Rd(){return $0()(xa,xa)}function ag(t,e,r,a){var o,s=Dt(t,e,r);switch((a=Vs(a==null?",f":a)).type){case"s":var h=Math.max(Math.abs(t),Math.abs(e));return a.precision!=null||isNaN(o=y0(s,h))||(a.precision=o),Xl(a,h);case"":case"e":case"g":case"p":case"r":a.precision!=null||isNaN(o=Jc(s,Math.max(Math.abs(t),Math.abs(e))))||(a.precision=o-(a.type==="e"));break;case"f":case"%":a.precision!=null||isNaN(o=Zl(s))||(a.precision=o-2*(a.type==="%"))}return Kc(a)}function Js(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 ag(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,y=s[h],v=s[f],C=10;for(v<y&&(o=y,y=v,v=o,o=h,h=f,f=o);C-- >0;){if((o=ft(y,v,r))===a)return s[h]=y,s[f]=v,e(s);if(o>0)y=Math.floor(y/o)*o,v=Math.ceil(v/o)*o;else{if(!(o<0))break;y=Math.ceil(y*o)/o,v=Math.floor(v*o)/o}a=o}return t},t}function og(){var t=Rd();return t.copy=function(){return Oh(t,og())},io.apply(t,arguments),Js(t)}function sg(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,U0),r):t.slice()},r.unknown=function(a){return arguments.length?(e=a,r):e},r.copy=function(){return sg(t).unknown(e)},t=arguments.length?Array.from(t,U0):[0,1],Js(r)}function cg(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 lg(t){return Math.log(t)}function ug(t){return Math.exp(t)}function O4(t){return-Math.log(-t)}function B4(t){return-Math.exp(-t)}function L4(t){return isFinite(t)?+("1e"+t):t<0?0:t}function hg(t){return(e,r)=>-t(-e,r)}function Pd(t){const e=t(lg,ug),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),y=>Math.log(y)/f)}(s),o=function(f){return f===10?L4:f===Math.E?Math.exp:y=>Math.pow(f,y)}(s),r()[0]<0?(a=hg(a),o=hg(o),t(O4,B4)):t(lg,ug),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 y=r();let v=y[0],C=y[y.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,y)=>{if(f==null&&(f=10),y==null&&(y=s===10?"s":","),typeof y!="function"&&(s%1||(y=Vs(y)).precision!=null||(y.trim=!0),y=Kc(y)),f===1/0)return y;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?y(C):""}},e.nice=()=>r(cg(r(),{floor:f=>o(Math.floor(a(f))),ceil:f=>o(Math.ceil(a(f)))})),e}function fg(){const t=Pd($0()).domain([1,10]);return t.copy=()=>Oh(t,fg()).base(t.base()),io.apply(t,arguments),t}function dg(t){return function(e){return Math.sign(e)*Math.log1p(Math.abs(e/t))}}function pg(t){return function(e){return Math.sign(e)*Math.expm1(Math.abs(e))*t}}function jd(t){var e=1,r=t(dg(e),pg(e));return r.constant=function(a){return arguments.length?t(dg(e=+a),pg(e)):e},Js(r)}function gg(){var t=jd($0());return t.copy=function(){return Oh(t,gg()).constant(t.constant())},io.apply(t,arguments)}function yg(t){return function(e){return e<0?-Math.pow(-e,t):Math.pow(e,t)}}function I4(t){return t<0?-Math.sqrt(-t):Math.sqrt(t)}function F4(t){return t<0?-t*t:t*t}function zd(t){var e=t(xa,xa),r=1;function a(){return r===1?t(xa,xa):r===.5?t(I4,F4):t(yg(r),yg(1/r))}return e.exponent=function(o){return arguments.length?(r=+o,a()):r},Js(e)}function Yd(){var t=zd($0());return t.copy=function(){return Oh(t,Yd()).exponent(t.exponent())},io.apply(t,arguments),t}function R4(){return Yd.apply(null,arguments).exponent(.5)}function mg(t){return Math.sign(t)*t*t}function P4(t){return Math.sign(t)*Math.sqrt(Math.abs(t))}function bg(){var t,e=Rd(),r=[0,1],a=!1;function o(s){var h=P4(e(s));return isNaN(h)?t:a?Math.round(h):h}return o.invert=function(s){return e.invert(mg(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,U0)).map(mg)),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 bg(e.domain(),r).round(a).clamp(e.clamp()).unknown(t)},io.apply(o,arguments),Js(o)}function vg(){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]=Le(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 vg().domain(e).range(r).unknown(t)},io.apply(s,arguments)}function _g(){var t,e=0,r=1,a=1,o=[.5],s=[0,1];function h(y){return y!=null&&y<=y?s[F(o,y,0,a)]:t}function f(){var y=-1;for(o=new Array(a);++y<a;)o[y]=((y+1)*r-(y-a)*e)/(a+1);return h}return h.domain=function(y){return arguments.length?([e,r]=y,e=+e,r=+r,f()):[e,r]},h.range=function(y){return arguments.length?(a=(s=Array.from(y)).length-1,f()):s.slice()},h.invertExtent=function(y){var v=s.indexOf(y);return v<0?[NaN,NaN]:v<1?[e,o[0]]:v>=a?[o[a-1],r]:[o[v-1],o[v]]},h.unknown=function(y){return arguments.length&&(t=y),h},h.thresholds=function(){return o.slice()},h.copy=function(){return _g().domain([e,r]).range(s).unknown(t)},io.apply(Js(h),arguments)}function xg(){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 xg().domain(e).range(r).unknown(t)},io.apply(o,arguments)}const Bh=1e3,tc=6e4,Lh=36e5,Ud=864e5,$d=6048e5,Wd=31536e6;var qd=new Date,Hd=new Date;function Pi(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 y,v=[];if(s=o.ceil(s),f=f==null?1:Math.floor(f),!(s<h&&f>0))return v;do v.push(y=new Date(+s)),e(s,f),t(s);while(y<s&&s<h);return v},o.filter=function(s){return Pi(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 qd.setTime(+s),Hd.setTime(+h),t(qd),t(Hd),Math.floor(r(qd,Hd))},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 W0=Pi(function(){},function(t,e){t.setTime(+t+e)},function(t,e){return e-t});W0.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?Pi(function(e){e.setTime(Math.floor(e/t)*t)},function(e,r){e.setTime(+e+r*t)},function(e,r){return(r-e)/t}):W0:null};const Vd=W0;var kg=W0.range,wg=Pi(function(t){t.setTime(t-t.getMilliseconds())},function(t,e){t.setTime(+t+e*Bh)},function(t,e){return(e-t)/Bh},function(t){return t.getUTCSeconds()});const ec=wg;var Tg=wg.range,Eg=Pi(function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*Bh)},function(t,e){t.setTime(+t+e*tc)},function(t,e){return(e-t)/tc},function(t){return t.getMinutes()});const Gd=Eg;var j4=Eg.range,Sg=Pi(function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*Bh-t.getMinutes()*tc)},function(t,e){t.setTime(+t+e*Lh)},function(t,e){return(e-t)/Lh},function(t){return t.getHours()});const Xd=Sg;var z4=Sg.range,Cg=Pi(t=>t.setHours(0,0,0,0),(t,e)=>t.setDate(t.getDate()+e),(t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*tc)/Ud,t=>t.getDate()-1);const Ih=Cg;var Y4=Cg.range;function il(t){return Pi(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())*tc)/$d})}var iu=il(0),Fh=il(1),Ag=il(2),Mg=il(3),al=il(4),Dg=il(5),Ng=il(6),Og=iu.range,U4=Fh.range,$4=Ag.range,W4=Mg.range,q4=al.range,H4=Dg.range,V4=Ng.range,Bg=Pi(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 Zd=Bg;var G4=Bg.range,Qd=Pi(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()});Qd.every=function(t){return isFinite(t=Math.floor(t))&&t>0?Pi(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 nc=Qd;var X4=Qd.range,Lg=Pi(function(t){t.setUTCSeconds(0,0)},function(t,e){t.setTime(+t+e*tc)},function(t,e){return(e-t)/tc},function(t){return t.getUTCMinutes()});const Kd=Lg;var Z4=Lg.range,Ig=Pi(function(t){t.setUTCMinutes(0,0,0)},function(t,e){t.setTime(+t+e*Lh)},function(t,e){return(e-t)/Lh},function(t){return t.getUTCHours()});const Jd=Ig;var Q4=Ig.range,Fg=Pi(function(t){t.setUTCHours(0,0,0,0)},function(t,e){t.setUTCDate(t.getUTCDate()+e)},function(t,e){return(e-t)/Ud},function(t){return t.getUTCDate()-1});const Rh=Fg;var K4=Fg.range;function ol(t){return Pi(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)/$d})}var au=ol(0),Ph=ol(1),Rg=ol(2),Pg=ol(3),sl=ol(4),jg=ol(5),zg=ol(6),Yg=au.range,J4=Ph.range,t5=Rg.range,e5=Pg.range,n5=sl.range,r5=jg.range,i5=zg.range,Ug=Pi(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 t2=Ug;var a5=Ug.range,e2=Pi(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()});e2.every=function(t){return isFinite(t=Math.floor(t))&&t>0?Pi(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 rc=e2;var o5=e2.range;function $g(t,e,r,a,o,s){const h=[[ec,1,Bh],[ec,5,5e3],[ec,15,15e3],[ec,30,3e4],[s,1,tc],[s,5,3e5],[s,15,9e5],[s,30,18e5],[o,1,Lh],[o,3,108e5],[o,6,216e5],[o,12,432e5],[a,1,Ud],[a,2,1728e5],[r,1,$d],[e,1,2592e6],[e,3,7776e6],[t,1,Wd]];function f(y,v,C){const I=Math.abs(v-y)/C,D=u(([,,U])=>U).right(h,I);if(D===h.length)return t.every(Dt(y/Wd,v/Wd,C));if(D===0)return Vd.every(Math.max(Dt(y,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(y,v,C){const I=v<y;I&&([y,v]=[v,y]);const D=C&&typeof C.range=="function"?C:f(y,v,C),R=D?D.range(y,+v+1):[];return I?R.reverse():R},f]}const[Wg,qg]=$g(rc,t2,au,Rh,Jd,Kd),[Hg,Vg]=$g(nc,Zd,iu,Ih,Xd,Gd);function n2(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 r2(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 jh(t,e,r){return{y:t,m:e,d:r,H:0,M:0,S:0,L:0}}function Gg(t){var e=t.dateTime,r=t.date,a=t.time,o=t.periods,s=t.days,h=t.shortDays,f=t.months,y=t.shortMonths,v=zh(o),C=Yh(o),I=zh(s),D=Yh(s),R=zh(h),Z=Yh(h),U=zh(f),$=Yh(f),W=zh(y),it=Yh(y),nt={a:function(Yt){return h[Yt.getDay()]},A:function(Yt){return s[Yt.getDay()]},b:function(Yt){return y[Yt.getMonth()]},B:function(Yt){return f[Yt.getMonth()]},c:null,d:ey,e:ey,f:M5,g:j5,G:Y5,H:S5,I:C5,j:A5,L:ny,m:D5,M:N5,p:function(Yt){return o[+(Yt.getHours()>=12)]},q:function(Yt){return 1+~~(Yt.getMonth()/3)},Q:cy,s:ly,S:O5,u:B5,U:L5,V:I5,w:F5,W:R5,x:null,X:null,y:P5,Y:z5,Z:U5,"%":sy},rt={a:function(Yt){return h[Yt.getUTCDay()]},A:function(Yt){return s[Yt.getUTCDay()]},b:function(Yt){return y[Yt.getUTCMonth()]},B:function(Yt){return f[Yt.getUTCMonth()]},c:null,d:iy,e:iy,f:H5,g:nb,G:ib,H:$5,I:W5,j:q5,L:ay,m:V5,M:G5,p:function(Yt){return o[+(Yt.getUTCHours()>=12)]},q:function(Yt){return 1+~~(Yt.getUTCMonth()/3)},Q:cy,s:ly,S:X5,u:Z5,U:Q5,V:K5,w:J5,W:tb,x:null,X:null,y:eb,Y:rb,Z:ab,"%":sy},lt={a:function(Yt,Rt,Pt){var jt=R.exec(Rt.slice(Pt));return jt?(Yt.w=Z.get(jt[0].toLowerCase()),Pt+jt[0].length):-1},A:function(Yt,Rt,Pt){var jt=I.exec(Rt.slice(Pt));return jt?(Yt.w=D.get(jt[0].toLowerCase()),Pt+jt[0].length):-1},b:function(Yt,Rt,Pt){var jt=W.exec(Rt.slice(Pt));return jt?(Yt.m=it.get(jt[0].toLowerCase()),Pt+jt[0].length):-1},B:function(Yt,Rt,Pt){var jt=U.exec(Rt.slice(Pt));return jt?(Yt.m=$.get(jt[0].toLowerCase()),Pt+jt[0].length):-1},c:function(Yt,Rt,Pt){return ye(Yt,e,Rt,Pt)},d:Jg,e:Jg,f:k5,g:Kg,G:Qg,H:ty,I:ty,j:b5,L:x5,m:m5,M:v5,p:function(Yt,Rt,Pt){var jt=v.exec(Rt.slice(Pt));return jt?(Yt.p=C.get(jt[0].toLowerCase()),Pt+jt[0].length):-1},q:y5,Q:T5,s:E5,S:_5,u:h5,U:f5,V:d5,w:u5,W:p5,x:function(Yt,Rt,Pt){return ye(Yt,r,Rt,Pt)},X:function(Yt,Rt,Pt){return ye(Yt,a,Rt,Pt)},y:Kg,Y:Qg,Z:g5,"%":w5};function pt(Yt,Rt){return function(Pt){var jt,gt,Ot,Wt=[],ae=-1,Te=0,Pe=Yt.length;for(Pt instanceof Date||(Pt=new Date(+Pt));++ae<Pe;)Yt.charCodeAt(ae)===37&&(Wt.push(Yt.slice(Te,ae)),(gt=Zg[jt=Yt.charAt(++ae)])!=null?jt=Yt.charAt(++ae):gt=jt==="e"?" ":"0",(Ot=Rt[jt])&&(jt=Ot(Pt,gt)),Wt.push(jt),Te=ae+1);return Wt.push(Yt.slice(Te,ae)),Wt.join("")}}function Jt(Yt,Rt){return function(Pt){var jt,gt,Ot=jh(1900,void 0,1);if(ye(Ot,Yt,Pt+="",0)!=Pt.length)return null;if("Q"in Ot)return new Date(Ot.Q);if("s"in Ot)return new Date(1e3*Ot.s+("L"in Ot?Ot.L:0));if(Rt&&!("Z"in Ot)&&(Ot.Z=0),"p"in Ot&&(Ot.H=Ot.H%12+12*Ot.p),Ot.m===void 0&&(Ot.m="q"in Ot?Ot.q:0),"V"in Ot){if(Ot.V<1||Ot.V>53)return null;"w"in Ot||(Ot.w=1),"Z"in Ot?(gt=(jt=r2(jh(Ot.y,0,1))).getUTCDay(),jt=gt>4||gt===0?Ph.ceil(jt):Ph(jt),jt=Rh.offset(jt,7*(Ot.V-1)),Ot.y=jt.getUTCFullYear(),Ot.m=jt.getUTCMonth(),Ot.d=jt.getUTCDate()+(Ot.w+6)%7):(gt=(jt=n2(jh(Ot.y,0,1))).getDay(),jt=gt>4||gt===0?Fh.ceil(jt):Fh(jt),jt=Ih.offset(jt,7*(Ot.V-1)),Ot.y=jt.getFullYear(),Ot.m=jt.getMonth(),Ot.d=jt.getDate()+(Ot.w+6)%7)}else("W"in Ot||"U"in Ot)&&("w"in Ot||(Ot.w="u"in Ot?Ot.u%7:"W"in Ot?1:0),gt="Z"in Ot?r2(jh(Ot.y,0,1)).getUTCDay():n2(jh(Ot.y,0,1)).getDay(),Ot.m=0,Ot.d="W"in Ot?(Ot.w+6)%7+7*Ot.W-(gt+5)%7:Ot.w+7*Ot.U-(gt+6)%7);return"Z"in Ot?(Ot.H+=Ot.Z/100|0,Ot.M+=Ot.Z%100,r2(Ot)):n2(Ot)}}function ye(Yt,Rt,Pt,jt){for(var gt,Ot,Wt=0,ae=Rt.length,Te=Pt.length;Wt<ae;){if(jt>=Te)return-1;if((gt=Rt.charCodeAt(Wt++))===37){if(gt=Rt.charAt(Wt++),!(Ot=lt[gt in Zg?Rt.charAt(Wt++):gt])||(jt=Ot(Yt,Pt,jt))<0)return-1}else if(gt!=Pt.charCodeAt(jt++))return-1}return jt}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(Yt){var Rt=pt(Yt+="",nt);return Rt.toString=function(){return Yt},Rt},parse:function(Yt){var Rt=Jt(Yt+="",!1);return Rt.toString=function(){return Yt},Rt},utcFormat:function(Yt){var Rt=pt(Yt+="",rt);return Rt.toString=function(){return Yt},Rt},utcParse:function(Yt){var Rt=Jt(Yt+="",!0);return Rt.toString=function(){return Yt},Rt}}}var ou,i2,Xg,q0,a2,Zg={"-":"",_:" ",0:"0"},Zi=/^\s*\d+/,s5=/^%/,c5=/[\\^$*+?|[\]().{}]/g;function Cr(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 l5(t){return t.replace(c5,"\\$&")}function zh(t){return new RegExp("^(?:"+t.map(l5).join("|")+")","i")}function Yh(t){return new Map(t.map((e,r)=>[e.toLowerCase(),r]))}function u5(t,e,r){var a=Zi.exec(e.slice(r,r+1));return a?(t.w=+a[0],r+a[0].length):-1}function h5(t,e,r){var a=Zi.exec(e.slice(r,r+1));return a?(t.u=+a[0],r+a[0].length):-1}function f5(t,e,r){var a=Zi.exec(e.slice(r,r+2));return a?(t.U=+a[0],r+a[0].length):-1}function d5(t,e,r){var a=Zi.exec(e.slice(r,r+2));return a?(t.V=+a[0],r+a[0].length):-1}function p5(t,e,r){var a=Zi.exec(e.slice(r,r+2));return a?(t.W=+a[0],r+a[0].length):-1}function Qg(t,e,r){var a=Zi.exec(e.slice(r,r+4));return a?(t.y=+a[0],r+a[0].length):-1}function Kg(t,e,r){var a=Zi.exec(e.slice(r,r+2));return a?(t.y=+a[0]+(+a[0]>68?1900:2e3),r+a[0].length):-1}function g5(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 y5(t,e,r){var a=Zi.exec(e.slice(r,r+1));return a?(t.q=3*a[0]-3,r+a[0].length):-1}function m5(t,e,r){var a=Zi.exec(e.slice(r,r+2));return a?(t.m=a[0]-1,r+a[0].length):-1}function Jg(t,e,r){var a=Zi.exec(e.slice(r,r+2));return a?(t.d=+a[0],r+a[0].length):-1}function b5(t,e,r){var a=Zi.exec(e.slice(r,r+3));return a?(t.m=0,t.d=+a[0],r+a[0].length):-1}function ty(t,e,r){var a=Zi.exec(e.slice(r,r+2));return a?(t.H=+a[0],r+a[0].length):-1}function v5(t,e,r){var a=Zi.exec(e.slice(r,r+2));return a?(t.M=+a[0],r+a[0].length):-1}function _5(t,e,r){var a=Zi.exec(e.slice(r,r+2));return a?(t.S=+a[0],r+a[0].length):-1}function x5(t,e,r){var a=Zi.exec(e.slice(r,r+3));return a?(t.L=+a[0],r+a[0].length):-1}function k5(t,e,r){var a=Zi.exec(e.slice(r,r+6));return a?(t.L=Math.floor(a[0]/1e3),r+a[0].length):-1}function w5(t,e,r){var a=s5.exec(e.slice(r,r+1));return a?r+a[0].length:-1}function T5(t,e,r){var a=Zi.exec(e.slice(r));return a?(t.Q=+a[0],r+a[0].length):-1}function E5(t,e,r){var a=Zi.exec(e.slice(r));return a?(t.s=+a[0],r+a[0].length):-1}function ey(t,e){return Cr(t.getDate(),e,2)}function S5(t,e){return Cr(t.getHours(),e,2)}function C5(t,e){return Cr(t.getHours()%12||12,e,2)}function A5(t,e){return Cr(1+Ih.count(nc(t),t),e,3)}function ny(t,e){return Cr(t.getMilliseconds(),e,3)}function M5(t,e){return ny(t,e)+"000"}function D5(t,e){return Cr(t.getMonth()+1,e,2)}function N5(t,e){return Cr(t.getMinutes(),e,2)}function O5(t,e){return Cr(t.getSeconds(),e,2)}function B5(t){var e=t.getDay();return e===0?7:e}function L5(t,e){return Cr(iu.count(nc(t)-1,t),e,2)}function ry(t){var e=t.getDay();return e>=4||e===0?al(t):al.ceil(t)}function I5(t,e){return t=ry(t),Cr(al.count(nc(t),t)+(nc(t).getDay()===4),e,2)}function F5(t){return t.getDay()}function R5(t,e){return Cr(Fh.count(nc(t)-1,t),e,2)}function P5(t,e){return Cr(t.getFullYear()%100,e,2)}function j5(t,e){return Cr((t=ry(t)).getFullYear()%100,e,2)}function z5(t,e){return Cr(t.getFullYear()%1e4,e,4)}function Y5(t,e){var r=t.getDay();return Cr((t=r>=4||r===0?al(t):al.ceil(t)).getFullYear()%1e4,e,4)}function U5(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+Cr(e/60|0,"0",2)+Cr(e%60,"0",2)}function iy(t,e){return Cr(t.getUTCDate(),e,2)}function $5(t,e){return Cr(t.getUTCHours(),e,2)}function W5(t,e){return Cr(t.getUTCHours()%12||12,e,2)}function q5(t,e){return Cr(1+Rh.count(rc(t),t),e,3)}function ay(t,e){return Cr(t.getUTCMilliseconds(),e,3)}function H5(t,e){return ay(t,e)+"000"}function V5(t,e){return Cr(t.getUTCMonth()+1,e,2)}function G5(t,e){return Cr(t.getUTCMinutes(),e,2)}function X5(t,e){return Cr(t.getUTCSeconds(),e,2)}function Z5(t){var e=t.getUTCDay();return e===0?7:e}function Q5(t,e){return Cr(au.count(rc(t)-1,t),e,2)}function oy(t){var e=t.getUTCDay();return e>=4||e===0?sl(t):sl.ceil(t)}function K5(t,e){return t=oy(t),Cr(sl.count(rc(t),t)+(rc(t).getUTCDay()===4),e,2)}function J5(t){return t.getUTCDay()}function tb(t,e){return Cr(Ph.count(rc(t)-1,t),e,2)}function eb(t,e){return Cr(t.getUTCFullYear()%100,e,2)}function nb(t,e){return Cr((t=oy(t)).getUTCFullYear()%100,e,2)}function rb(t,e){return Cr(t.getUTCFullYear()%1e4,e,4)}function ib(t,e){var r=t.getUTCDay();return Cr((t=r>=4||r===0?sl(t):sl.ceil(t)).getUTCFullYear()%1e4,e,4)}function ab(){return"+0000"}function sy(){return"%"}function cy(t){return+t}function ly(t){return Math.floor(+t/1e3)}function uy(t){return ou=Gg(t),i2=ou.format,Xg=ou.parse,q0=ou.utcFormat,a2=ou.utcParse,ou}function ob(t){return new Date(t)}function sb(t){return t instanceof Date?+t:+new Date(+t)}function o2(t,e,r,a,o,s,h,f,y,v){var C=Rd(),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(y(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,sb)):D().map(ob)},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(cg(Jt,pt)):C},C.copy=function(){return Oh(C,o2(t,e,r,a,o,s,h,f,y,v))},C}function cb(){return io.apply(o2(Hg,Vg,nc,Zd,iu,Ih,Xd,Gd,ec,i2).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function lb(){return io.apply(o2(Wg,qg,rc,t2,au,Rh,Jd,Kd,ec,q0).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function H0(){var t,e,r,a,o,s=0,h=1,f=xa,y=!1;function v(I){return I==null||isNaN(I=+I)?o:f(r===0?.5:(I=(a(I)-t)*r,y?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?(y=!!I,v):y},v.interpolator=function(I){return arguments.length?(f=I,v):f},v.range=C(Jn),v.rangeRound=C(z0),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 ic(t,e){return e.domain(t.domain()).interpolator(t.interpolator()).clamp(t.clamp()).unknown(t.unknown())}function hy(){var t=Js(H0()(xa));return t.copy=function(){return ic(t,hy())},xs.apply(t,arguments)}function fy(){var t=Pd(H0()).domain([1,10]);return t.copy=function(){return ic(t,fy()).base(t.base())},xs.apply(t,arguments)}function dy(){var t=jd(H0());return t.copy=function(){return ic(t,dy()).constant(t.constant())},xs.apply(t,arguments)}function s2(){var t=zd(H0());return t.copy=function(){return ic(t,s2()).exponent(t.exponent())},xs.apply(t,arguments)}function ub(){return s2.apply(null,arguments).exponent(.5)}function py(){var t=[],e=xa;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)=>Be(t,s/a))},r.copy=function(){return py(e).domain(t)},xs.apply(r,arguments)}function V0(){var t,e,r,a,o,s,h,f=0,y=.5,v=1,C=1,I=xa,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=Zp(U,[W,it,nt]),R):[I(0),I(.5),I(1)]}}return R.domain=function(U){return arguments.length?([f,y,v]=U,t=s(f=+f),e=s(y=+y),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,y,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(Jn),R.rangeRound=Z(z0),R.unknown=function(U){return arguments.length?(h=U,R):h},function(U){return s=U,t=U(f),e=U(y),r=U(v),a=t===e?0:.5/(e-t),o=e===r?0:.5/(r-e),C=e<t?-1:1,R}}function gy(){var t=Js(V0()(xa));return t.copy=function(){return ic(t,gy())},xs.apply(t,arguments)}function yy(){var t=Pd(V0()).domain([.1,1,10]);return t.copy=function(){return ic(t,yy()).base(t.base())},xs.apply(t,arguments)}function my(){var t=jd(V0());return t.copy=function(){return ic(t,my()).constant(t.constant())},xs.apply(t,arguments)}function c2(){var t=zd(V0());return t.copy=function(){return ic(t,c2()).exponent(t.exponent())},xs.apply(t,arguments)}function hb(){return c2.apply(null,arguments).exponent(.5)}function ir(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}uy({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 fb=ir("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf"),db=ir("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666"),pb=ir("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666"),gb=ir("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928"),yb=ir("fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2"),mb=ir("b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc"),bb=ir("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999"),vb=ir("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3"),_b=ir("8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f"),xb=ir("4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab"),Wr=t=>gl(t[t.length-1]);var by=new Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e","8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(ir);const kb=Wr(by);var vy=new Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837","40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map(ir);const wb=Wr(vy);var _y=new Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419","8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map(ir);const Tb=Wr(_y);var xy=new Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map(ir);const Eb=Wr(xy);var ky=new Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(ir);const Sb=Wr(ky);var wy=new Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040","ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map(ir);const Cb=Wr(wy);var Ty=new Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4","d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map(ir);const Ab=Wr(Ty);var Ey=new Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850","d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(ir);const Mb=Wr(Ey);var Sy=new Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd","9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(ir);const Db=Wr(Sy);var Cy=new Array(3).concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map(ir);const Nb=Wr(Cy);var Ay=new Array(3).concat("e0ecf49ebcda8856a7","edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map(ir);const Ob=Wr(Ay);var My=new Array(3).concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map(ir);const Bb=Wr(My);var Dy=new Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map(ir);const Lb=Wr(Dy);var Ny=new Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map(ir);const Ib=Wr(Ny);var Oy=new Array(3).concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map(ir);const Fb=Wr(Oy);var By=new Array(3).concat("e7e1efc994c7dd1c77","f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map(ir);const Rb=Wr(By);var Ly=new Array(3).concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map(ir);const Pb=Wr(Ly);var Iy=new Array(3).concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map(ir);const jb=Wr(Iy);var Fy=new Array(3).concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837","ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map(ir);const zb=Wr(Fy);var Ry=new Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map(ir);const Yb=Wr(Ry);var Py=new Array(3).concat("ffeda0feb24cf03b20","ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map(ir);const Ub=Wr(Py);var jy=new Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(ir);const $b=Wr(jy);var zy=new Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(ir);const Wb=Wr(zy);var Yy=new Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525","f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(ir);const qb=Wr(Yy);var Uy=new Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(ir);const Hb=Wr(Uy);var $y=new Array(3).concat("fee0d2fc9272de2d26","fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(ir);const Vb=Wr($y);var Wy=new Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(ir);const Gb=Wr(Wy);function Xb(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 Zb=Y0(Ya(300,.5,0),Ya(-240,.5,1));var Qb=Y0(Ya(-100,.75,.35),Ya(80,1.5,.8)),Kb=Y0(Ya(260,.75,.35),Ya(80,1.5,.8)),G0=Ya();function Jb(t){(t<0||t>1)&&(t-=Math.floor(t));var e=Math.abs(t-.5);return G0.h=360*t-100,G0.s=1.5-1.5*e,G0.l=.8-.9*e,G0+""}var X0=ai(),tv=Math.PI/3,ev=2*Math.PI/3;function nv(t){var e;return t=(.5-t)*Math.PI,X0.r=255*(e=Math.sin(t))*e,X0.g=255*(e=Math.sin(t+tv))*e,X0.b=255*(e=Math.sin(t+ev))*e,X0+""}function rv(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 Z0(t){var e=t.length;return function(r){return t[Math.max(0,Math.min(e-1,Math.floor(r*e)))]}}const iv=Z0(ir("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725"));var av=Z0(ir("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf")),ov=Z0(ir("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4")),sv=Z0(ir("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"));function cv(t){return kr(Fo(t).call(document.documentElement))}var lv=0;function qy(){return new l2}function l2(){this._="@"+(++lv).toString(36)}function uv(t,e){return t.target&&(t=Ca(t),e===void 0&&(e=t.currentTarget),t=t.touches||[t]),Array.from(t,r=>ha(r,e))}function hv(t){return typeof t=="string"?new mi([document.querySelectorAll(t)],[document.documentElement]):new mi([Kt(t)],Ro)}function nr(t){return function(){return t}}l2.prototype=qy.prototype={constructor:l2,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 Hy=Math.abs,pa=Math.atan2,cl=Math.cos,fv=Math.max,u2=Math.min,es=Math.sin,su=Math.sqrt,ga=1e-12,ac=Math.PI,Q0=ac/2,oc=2*ac;function dv(t){return t>1?0:t<-1?ac:Math.acos(t)}function Vy(t){return t>=1?Q0:t<=-1?-Q0:Math.asin(t)}function pv(t){return t.innerRadius}function gv(t){return t.outerRadius}function yv(t){return t.startAngle}function mv(t){return t.endAngle}function bv(t){return t&&t.padAngle}function vv(t,e,r,a,o,s,h,f){var y=r-t,v=a-e,C=h-o,I=f-s,D=I*y-C*v;if(!(D*D<ga))return[t+(D=(C*(e-s)-I*(t-o))/D)*y,e+D*v]}function K0(t,e,r,a,o,s,h){var f=t-r,y=e-a,v=(h?s:-s)/su(f*f+y*y),C=v*y,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)*su(fv(0,lt*lt*rt-pt*pt)),ye=(pt*nt-it*Jt)/rt,Yt=(-pt*it-nt*Jt)/rt,Rt=(pt*nt+it*Jt)/rt,Pt=(-pt*it+nt*Jt)/rt,jt=ye-$,gt=Yt-W,Ot=Rt-$,Wt=Pt-W;return jt*jt+gt*gt>Ot*Ot+Wt*Wt&&(ye=Rt,Yt=Pt),{cx:ye,cy:Yt,x01:-C,y01:-I,x11:ye*(o/lt-1),y11:Yt*(o/lt-1)}}function _v(){var t=pv,e=gv,r=nr(0),a=null,o=yv,s=mv,h=bv,f=null;function y(){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=Hy(Z-R),$=Z>R;if(f||(f=v=mo()),D<I&&(C=D,D=I,I=C),D>ga)if(U>oc-ga)f.moveTo(D*cl(R),D*es(R)),f.arc(0,0,D,R,Z,!$),I>ga&&(f.moveTo(I*cl(Z),I*es(Z)),f.arc(0,0,I,Z,R,$));else{var W,it,nt=R,rt=Z,lt=R,pt=Z,Jt=U,ye=U,Yt=h.apply(this,arguments)/2,Rt=Yt>ga&&(a?+a.apply(this,arguments):su(I*I+D*D)),Pt=u2(Hy(D-I)/2,+r.apply(this,arguments)),jt=Pt,gt=Pt;if(Rt>ga){var Ot=Vy(Rt/I*es(Yt)),Wt=Vy(Rt/D*es(Yt));(Jt-=2*Ot)>ga?(lt+=Ot*=$?1:-1,pt-=Ot):(Jt=0,lt=pt=(R+Z)/2),(ye-=2*Wt)>ga?(nt+=Wt*=$?1:-1,rt-=Wt):(ye=0,nt=rt=(R+Z)/2)}var ae=D*cl(nt),Te=D*es(nt),Pe=I*cl(pt),He=I*es(pt);if(Pt>ga){var yn,Ve=D*cl(rt),$n=D*es(rt),qn=I*cl(lt),Cn=I*es(lt);if(U<ac&&(yn=vv(ae,Te,qn,Cn,Ve,$n,Pe,He))){var Fn=ae-yn[0],wr=Te-yn[1],ar=Ve-yn[0],Ba=$n-yn[1],cc=1/es(dv((Fn*ar+wr*Ba)/(su(Fn*Fn+wr*wr)*su(ar*ar+Ba*Ba)))/2),Bo=su(yn[0]*yn[0]+yn[1]*yn[1]);jt=u2(Pt,(I-Bo)/(cc-1)),gt=u2(Pt,(D-Bo)/(cc+1))}}ye>ga?gt>ga?(W=K0(qn,Cn,ae,Te,D,gt,$),it=K0(Ve,$n,Pe,He,D,gt,$),f.moveTo(W.cx+W.x01,W.cy+W.y01),gt<Pt?f.arc(W.cx,W.cy,gt,pa(W.y01,W.x01),pa(it.y01,it.x01),!$):(f.arc(W.cx,W.cy,gt,pa(W.y01,W.x01),pa(W.y11,W.x11),!$),f.arc(0,0,D,pa(W.cy+W.y11,W.cx+W.x11),pa(it.cy+it.y11,it.cx+it.x11),!$),f.arc(it.cx,it.cy,gt,pa(it.y11,it.x11),pa(it.y01,it.x01),!$))):(f.moveTo(ae,Te),f.arc(0,0,D,nt,rt,!$)):f.moveTo(ae,Te),I>ga&&Jt>ga?jt>ga?(W=K0(Pe,He,Ve,$n,I,-jt,$),it=K0(ae,Te,qn,Cn,I,-jt,$),f.lineTo(W.cx+W.x01,W.cy+W.y01),jt<Pt?f.arc(W.cx,W.cy,jt,pa(W.y01,W.x01),pa(it.y01,it.x01),!$):(f.arc(W.cx,W.cy,jt,pa(W.y01,W.x01),pa(W.y11,W.x11),!$),f.arc(0,0,I,pa(W.cy+W.y11,W.cx+W.x11),pa(it.cy+it.y11,it.cx+it.x11),$),f.arc(it.cx,it.cy,jt,pa(it.y11,it.x11),pa(it.y01,it.x01),!$))):f.arc(0,0,I,pt,lt,$):f.lineTo(Pe,He)}else f.moveTo(0,0);if(f.closePath(),v)return f=null,v+""||null}return y.centroid=function(){var v=(+t.apply(this,arguments)+ +e.apply(this,arguments))/2,C=(+o.apply(this,arguments)+ +s.apply(this,arguments))/2-ac/2;return[cl(C)*v,es(C)*v]},y.innerRadius=function(v){return arguments.length?(t=typeof v=="function"?v:nr(+v),y):t},y.outerRadius=function(v){return arguments.length?(e=typeof v=="function"?v:nr(+v),y):e},y.cornerRadius=function(v){return arguments.length?(r=typeof v=="function"?v:nr(+v),y):r},y.padRadius=function(v){return arguments.length?(a=v==null?null:typeof v=="function"?v:nr(+v),y):a},y.startAngle=function(v){return arguments.length?(o=typeof v=="function"?v:nr(+v),y):o},y.endAngle=function(v){return arguments.length?(s=typeof v=="function"?v:nr(+v),y):s},y.padAngle=function(v){return arguments.length?(h=typeof v=="function"?v:nr(+v),y):h},y.context=function(v){return arguments.length?(f=v==null?null:v,y):f},y}var xv=Array.prototype.slice;function J0(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}function Gy(t){this._context=t}function tf(t){return new Gy(t)}function h2(t){return t[0]}function f2(t){return t[1]}function d2(t,e){var r=nr(!0),a=null,o=tf,s=null;function h(f){var y,v,C,I=(f=J0(f)).length,D=!1;for(a==null&&(s=o(C=mo())),y=0;y<=I;++y)!(y<I&&r(v=f[y],y,f))===D&&((D=!D)?s.lineStart():s.lineEnd()),D&&s.point(+t(v,y,f),+e(v,y,f));if(C)return s=null,C+""||null}return t=typeof t=="function"?t:t===void 0?h2:nr(t),e=typeof e=="function"?e:e===void 0?f2:nr(e),h.x=function(f){return arguments.length?(t=typeof f=="function"?f:nr(+f),h):t},h.y=function(f){return arguments.length?(e=typeof f=="function"?f:nr(+f),h):e},h.defined=function(f){return arguments.length?(r=typeof f=="function"?f:nr(!!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 Xy(t,e,r){var a=null,o=nr(!0),s=null,h=tf,f=null;function y(C){var I,D,R,Z,U,$=(C=J0(C)).length,W=!1,it=new Array($),nt=new Array($);for(s==null&&(f=h(U=mo())),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 d2().defined(o).curve(h).context(s)}return t=typeof t=="function"?t:t===void 0?h2:nr(+t),e=typeof e=="function"?e:nr(e===void 0?0:+e),r=typeof r=="function"?r:r===void 0?f2:nr(+r),y.x=function(C){return arguments.length?(t=typeof C=="function"?C:nr(+C),a=null,y):t},y.x0=function(C){return arguments.length?(t=typeof C=="function"?C:nr(+C),y):t},y.x1=function(C){return arguments.length?(a=C==null?null:typeof C=="function"?C:nr(+C),y):a},y.y=function(C){return arguments.length?(e=typeof C=="function"?C:nr(+C),r=null,y):e},y.y0=function(C){return arguments.length?(e=typeof C=="function"?C:nr(+C),y):e},y.y1=function(C){return arguments.length?(r=C==null?null:typeof C=="function"?C:nr(+C),y):r},y.lineX0=y.lineY0=function(){return v().x(t).y(e)},y.lineY1=function(){return v().x(t).y(r)},y.lineX1=function(){return v().x(a).y(e)},y.defined=function(C){return arguments.length?(o=typeof C=="function"?C:nr(!!C),y):o},y.curve=function(C){return arguments.length?(h=C,s!=null&&(f=h(s)),y):h},y.context=function(C){return arguments.length?(C==null?s=f=null:f=h(s=C),y):s},y}function kv(t,e){return e<t?-1:e>t?1:e>=t?0:NaN}function wv(t){return t}function Tv(){var t=wv,e=kv,r=null,a=nr(0),o=nr(oc),s=nr(0);function h(f){var y,v,C,I,D,R=(f=J0(f)).length,Z=0,U=new Array(R),$=new Array(R),W=+a.apply(this,arguments),it=Math.min(oc,Math.max(-oc,o.apply(this,arguments)-W)),nt=Math.min(Math.abs(it)/R,s.apply(this,arguments)),rt=nt*(it<0?-1:1);for(y=0;y<R;++y)(D=$[U[y]=y]=+t(f[y],y,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])}),y=0,C=Z?(it-R*rt)/Z:0;y<R;++y,W=I)v=U[y],I=W+((D=$[v])>0?D*C:0)+rt,$[v]={data:f[v],index:y,value:D,startAngle:W,endAngle:I,padAngle:nt};return $}return h.value=function(f){return arguments.length?(t=typeof f=="function"?f:nr(+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:nr(+f),h):a},h.endAngle=function(f){return arguments.length?(o=typeof f=="function"?f:nr(+f),h):o},h.padAngle=function(f){return arguments.length?(s=typeof f=="function"?f:nr(+f),h):s},h}Gy.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 Zy=p2(tf);function Qy(t){this._curve=t}function p2(t){function e(r){return new Qy(t(r))}return e._curve=t,e}function Uh(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(p2(r)):e()._curve},t}function Ky(){return Uh(d2().curve(Zy))}function Jy(){var t=Xy().curve(Zy),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 Uh(r())},delete t.lineX0,t.lineEndAngle=function(){return Uh(a())},delete t.lineX1,t.lineInnerRadius=function(){return Uh(o())},delete t.lineY0,t.lineOuterRadius=function(){return Uh(s())},delete t.lineY1,t.curve=function(h){return arguments.length?e(p2(h)):e()._curve},t}function $h(t,e){return[(e=+e)*Math.cos(t-=Math.PI/2),e*Math.sin(t)]}function Ev(t){return t.source}function Sv(t){return t.target}function g2(t){var e=Ev,r=Sv,a=h2,o=f2,s=null;function h(){var f,y=xv.call(arguments),v=e.apply(this,y),C=r.apply(this,y);if(s||(s=f=mo()),t(s,+a.apply(this,(y[0]=v,y)),+o.apply(this,y),+a.apply(this,(y[0]=C,y)),+o.apply(this,y)),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:nr(+f),h):a},h.y=function(f){return arguments.length?(o=typeof f=="function"?f:nr(+f),h):o},h.context=function(f){return arguments.length?(s=f==null?null:f,h):s},h}function Cv(t,e,r,a,o){t.moveTo(e,r),t.bezierCurveTo(e=(e+a)/2,r,e,o,a,o)}function Av(t,e,r,a,o){t.moveTo(e,r),t.bezierCurveTo(e,r=(r+o)/2,a,r,a,o)}function Mv(t,e,r,a,o){var s=$h(e,r),h=$h(e,r=(r+o)/2),f=$h(a,r),y=$h(a,o);t.moveTo(s[0],s[1]),t.bezierCurveTo(h[0],h[1],f[0],f[1],y[0],y[1])}function Dv(){return g2(Cv)}function Nv(){return g2(Av)}function Ov(){var t=g2(Mv);return t.angle=t.x,delete t.x,t.radius=t.y,delete t.y,t}Qy.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 y2={draw:function(t,e){var r=Math.sqrt(e/ac);t.moveTo(r,0),t.arc(0,0,r,0,oc)}},tm={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 em=Math.sqrt(1/3),Bv=2*em;const nm={draw:function(t,e){var r=Math.sqrt(e/Bv),a=r*em;t.moveTo(0,-r),t.lineTo(a,0),t.lineTo(0,r),t.lineTo(-a,0),t.closePath()}};var rm=Math.sin(ac/10)/Math.sin(7*ac/10),Lv=Math.sin(oc/10)*rm,Iv=-Math.cos(oc/10)*rm;const im={draw:function(t,e){var r=Math.sqrt(.8908130915292852*e),a=Lv*r,o=Iv*r;t.moveTo(0,-r),t.lineTo(a,o);for(var s=1;s<5;++s){var h=oc*s/5,f=Math.cos(h),y=Math.sin(h);t.lineTo(y*r,-f*r),t.lineTo(f*a-y*o,y*a+f*o)}t.closePath()}},am={draw:function(t,e){var r=Math.sqrt(e),a=-r/2;t.rect(a,a,r,r)}};var m2=Math.sqrt(3);const om={draw:function(t,e){var r=-Math.sqrt(e/(3*m2));t.moveTo(0,2*r),t.lineTo(-m2*r,-r),t.lineTo(m2*r,-r),t.closePath()}};var ao=-.5,oo=Math.sqrt(3)/2,b2=1/Math.sqrt(12),Fv=3*(b2/2+1);const sm={draw:function(t,e){var r=Math.sqrt(e/Fv),a=r/2,o=r*b2,s=a,h=r*b2+r,f=-s,y=h;t.moveTo(a,o),t.lineTo(s,h),t.lineTo(f,y),t.lineTo(ao*a-oo*o,oo*a+ao*o),t.lineTo(ao*s-oo*h,oo*s+ao*h),t.lineTo(ao*f-oo*y,oo*f+ao*y),t.lineTo(ao*a+oo*o,ao*o-oo*a),t.lineTo(ao*s+oo*h,ao*h-oo*s),t.lineTo(ao*f+oo*y,ao*y-oo*f),t.closePath()}};var Rv=[y2,tm,nm,am,im,om,sm];function Pv(t,e){var r=null;function a(){var o;if(r||(r=o=mo()),t.apply(this,arguments).draw(r,+e.apply(this,arguments)),o)return r=null,o+""||null}return t=typeof t=="function"?t:nr(t||y2),e=typeof e=="function"?e:nr(e===void 0?64:+e),a.type=function(o){return arguments.length?(t=typeof o=="function"?o:nr(o),a):t},a.size=function(o){return arguments.length?(e=typeof o=="function"?o:nr(+o),a):e},a.context=function(o){return arguments.length?(r=o==null?null:o,a):r},a}function sc(){}function ef(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 nf(t){this._context=t}function jv(t){return new nf(t)}function cm(t){this._context=t}function zv(t){return new cm(t)}function lm(t){this._context=t}function Yv(t){return new lm(t)}nf.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:ef(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:ef(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},cm.prototype={areaStart:sc,areaEnd:sc,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:ef(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},lm.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:ef(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};class um{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 Uv(t){return new um(t,!0)}function $v(t){return new um(t,!1)}function hm(t,e){this._basis=new nf(t),this._beta=e}hm.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,y=-1;++y<=r;)a=y/r,this._basis.point(this._beta*t[y]+(1-this._beta)*(o+a*h),this._beta*e[y]+(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 Wv=function t(e){function r(a){return e===1?new nf(a):new hm(a,e)}return r.beta=function(a){return t(+a)},r}(.85);function rf(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 v2(t,e){this._context=t,this._k=(1-e)/6}v2.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:rf(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:rf(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 qv=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:sc,areaEnd:sc,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:rf(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 Hv=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){this._context=t,this._k=(1-e)/6}x2.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:rf(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 Vv=function t(e){function r(a){return new x2(a,e)}return r.tension=function(a){return t(+a)},r}(0);function k2(t,e,r){var a=t._x1,o=t._y1,s=t._x2,h=t._y2;if(t._l01_a>ga){var f=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,y=3*t._l01_a*(t._l01_a+t._l12_a);a=(a*f-t._x0*t._l12_2a+t._x2*t._l01_2a)/y,o=(o*f-t._y0*t._l12_2a+t._y2*t._l01_2a)/y}if(t._l23_a>ga){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 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(){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:k2(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 Gv=function t(e){function r(a){return e?new fm(a,e):new v2(a,0)}return r.alpha=function(a){return t(+a)},r}(.5);function dm(t,e){this._context=t,this._alpha=e}dm.prototype={areaStart:sc,areaEnd:sc,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:k2(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 Xv=function t(e){function r(a){return e?new dm(a,e):new _2(a,0)}return r.alpha=function(a){return t(+a)},r}(.5);function pm(t,e){this._context=t,this._alpha=e}pm.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:k2(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 Zv=function t(e){function r(a){return e?new pm(a,e):new x2(a,0)}return r.alpha=function(a){return t(+a)},r}(.5);function gm(t){this._context=t}function Qv(t){return new gm(t)}function ym(t){return t<0?-1:1}function mm(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(ym(s)+ym(h))*Math.min(Math.abs(s),Math.abs(h),.5*Math.abs(f))||0}function bm(t,e){var r=t._x1-t._x0;return r?(3*(t._y1-t._y0)/r-e)/2:e}function w2(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 af(t){this._context=t}function vm(t){this._context=new _m(t)}function _m(t){this._context=t}function Kv(t){return new af(t)}function Jv(t){return new vm(t)}function xm(t){this._context=t}function km(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 t6(t){return new xm(t)}function of(t,e){this._context=t,this._t=e}function e6(t){return new of(t,.5)}function n6(t){return new of(t,0)}function r6(t){return new of(t,1)}function cu(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 lu(t){for(var e=t.length,r=new Array(e);--e>=0;)r[e]=e;return r}function i6(t,e){return t[e]}function a6(t){const e=[];return e.key=t,e}function o6(){var t=nr([]),e=lu,r=cu,a=i6;function o(s){var h,f,y=Array.from(t.apply(this,arguments),a6),v=y.length,C=-1;for(const I of s)for(h=0,++C;h<v;++h)(y[h][C]=[0,+a(I,y[h].key,C,s)]).data=I;for(h=0,f=J0(e(y));h<v;++h)y[f[h]].index=h;return r(y,f),y}return o.keys=function(s){return arguments.length?(t=typeof s=="function"?s:nr(Array.from(s)),o):t},o.value=function(s){return arguments.length?(a=typeof s=="function"?s:nr(+s),o):a},o.order=function(s){return arguments.length?(e=s==null?lu:typeof s=="function"?s:nr(Array.from(s)),o):e},o.offset=function(s){return arguments.length?(r=s==null?cu:s,o):r},o}function s6(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}cu(t,e)}}function c6(t,e){if((f=t.length)>0)for(var r,a,o,s,h,f,y=0,v=t[e[0]].length;y<v;++y)for(s=h=0,r=0;r<f;++r)(o=(a=t[e[r]][y])[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 l6(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}cu(t,e)}}function u6(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,y=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)}y+=I,v+=D*I}r[h-1][1]+=r[h-1][0]=s,y&&(s-=v/y)}r[h-1][1]+=r[h-1][0]=s,cu(t,e)}}function wm(t){var e=t.map(h6);return lu(t).sort(function(r,a){return e[r]-e[a]})}function h6(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 Tm(t){var e=t.map(Em);return lu(t).sort(function(r,a){return e[r]-e[a]})}function Em(t){for(var e,r=0,a=-1,o=t.length;++a<o;)(e=+t[a][1])&&(r+=e);return r}function f6(t){return Tm(t).reverse()}function d6(t){var e,r,a=t.length,o=t.map(Em),s=wm(t),h=0,f=0,y=[],v=[];for(e=0;e<a;++e)r=s[e],h<f?(h+=o[r],y.push(r)):(f+=o[r],v.push(r));return v.reverse().concat(y)}function p6(t){return lu(t).reverse()}gm.prototype={areaStart:sc,areaEnd:sc,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))}},af.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:w2(this,this._t0,bm(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,w2(this,bm(this,r=mm(this,t,e)),r);break;default:w2(this,this._t0,r=mm(this,t,e))}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=r}}},(vm.prototype=Object.create(af.prototype)).point=function(t,e){af.prototype.point.call(this,e,t)},_m.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)}},xm.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=km(t),o=km(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)}},of.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 Sm="%Y-%m-%dT%H:%M:%S.%LZ",g6=Date.prototype.toISOString?function(t){return t.toISOString()}:q0(Sm);const y6=g6;var m6=+new Date("2000-01-01T00:00:00.000Z")?function(t){var e=new Date(t);return isNaN(e)?null:e}:a2(Sm);const b6=m6;function v6(t,e,r){var a=new Sc,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?Ec():+f,a._restart(function y(v){v+=o,a._restart(y,o+=h,f),s(v)},h,f)},a.restart(t,e,r),a)}const sf=t=>()=>t;function _6(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 ns(t,e,r){this.k=t,this.x=e,this.y=r}ns.prototype={constructor:ns,scale:function(t){return t===1?this:new ns(this.k*t,this.x,this.y)},translate:function(t,e){return t===0&e===0?this:new ns(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 cf=new ns(1,0,0);function Cm(t){for(;!t.__zoom;)if(!(t=t.parentNode))return cf;return t.__zoom}function T2(t){t.stopImmediatePropagation()}function Wh(t){t.preventDefault(),t.stopImmediatePropagation()}function x6(t){return!(t.ctrlKey&&t.type!=="wheel"||t.button)}function k6(){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 Am(){return this.__zoom||cf}function w6(t){return-t.deltaY*(t.deltaMode===1?.05:t.deltaMode?1:.002)*(t.ctrlKey?10:1)}function T6(){return navigator.maxTouchPoints||"ontouchstart"in this}function E6(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 S6(){var t,e,r,a=x6,o=k6,s=E6,h=w6,f=T6,y=[0,1/0],v=[[-1/0,-1/0],[1/0,1/0]],C=250,I=Hp,D=rr("start","zoom","end"),R=500,Z=0,U=10;function $(gt){gt.property("__zoom",Am).on("wheel.zoom",Jt,{passive:!1}).on("mousedown.zoom",ye).on("dblclick.zoom",Yt).filter(f).on("touchstart.zoom",Rt).on("touchmove.zoom",Pt).on("touchend.zoom touchcancel.zoom",jt).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function W(gt,Ot){return(Ot=Math.max(y[0],Math.min(y[1],Ot)))===gt.k?gt:new ns(Ot,gt.x,gt.y)}function it(gt,Ot,Wt){var ae=Ot[0]-Wt[0]*gt.k,Te=Ot[1]-Wt[1]*gt.k;return ae===gt.x&&Te===gt.y?gt:new ns(gt.k,ae,Te)}function nt(gt){return[(+gt[0][0]+ +gt[1][0])/2,(+gt[0][1]+ +gt[1][1])/2]}function rt(gt,Ot,Wt,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 Te=this,Pe=arguments,He=lt(Te,Pe).event(ae),yn=o.apply(Te,Pe),Ve=Wt==null?nt(yn):typeof Wt=="function"?Wt.apply(Te,Pe):Wt,$n=Math.max(yn[1][0]-yn[0][0],yn[1][1]-yn[0][1]),qn=Te.__zoom,Cn=typeof Ot=="function"?Ot.apply(Te,Pe):Ot,Fn=I(qn.invert(Ve).concat($n/qn.k),Cn.invert(Ve).concat($n/Cn.k));return function(wr){if(wr===1)wr=Cn;else{var ar=Fn(wr),Ba=$n/ar[2];wr=new ns(Ba,Ve[0]-ar[0]*Ba,Ve[1]-ar[1]*Ba)}He.zoom(null,wr)}})}function lt(gt,Ot,Wt){return!Wt&&gt.__zooming||new pt(gt,Ot)}function pt(gt,Ot){this.that=gt,this.args=Ot,this.active=0,this.sourceEvent=null,this.extent=o.apply(gt,Ot),this.taps=0}function Jt(gt,...Ot){if(a.apply(this,arguments)){var Wt=lt(this,Ot).event(gt),ae=this.__zoom,Te=Math.max(y[0],Math.min(y[1],ae.k*Math.pow(2,h.apply(this,arguments)))),Pe=ha(gt);if(Wt.wheel)Wt.mouse[0][0]===Pe[0]&&Wt.mouse[0][1]===Pe[1]||(Wt.mouse[1]=ae.invert(Wt.mouse[0]=Pe)),clearTimeout(Wt.wheel);else{if(ae.k===Te)return;Wt.mouse=[Pe,ae.invert(Pe)],Ga(this),Wt.start()}Wh(gt),Wt.wheel=setTimeout(He,150),Wt.zoom("mouse",s(it(W(ae,Te),Wt.mouse[0],Wt.mouse[1]),Wt.extent,v))}function He(){Wt.wheel=null,Wt.end()}}function ye(gt,...Ot){if(!r&&a.apply(this,arguments)){var Wt=gt.currentTarget,ae=lt(this,Ot,!0).event(gt),Te=kr(gt.view).on("mousemove.zoom",Ve,!0).on("mouseup.zoom",$n,!0),Pe=ha(gt,Wt),He=gt.clientX,yn=gt.clientY;lo(gt.view),T2(gt),ae.mouse=[Pe,this.__zoom.invert(Pe)],Ga(this),ae.start()}function Ve(qn){if(Wh(qn),!ae.moved){var Cn=qn.clientX-He,Fn=qn.clientY-yn;ae.moved=Cn*Cn+Fn*Fn>Z}ae.event(qn).zoom("mouse",s(it(ae.that.__zoom,ae.mouse[0]=ha(qn,Wt),ae.mouse[1]),ae.extent,v))}function $n(qn){Te.on("mousemove.zoom mouseup.zoom",null),uo(qn.view,ae.moved),Wh(qn),ae.event(qn).end()}}function Yt(gt,...Ot){if(a.apply(this,arguments)){var Wt=this.__zoom,ae=ha(gt.changedTouches?gt.changedTouches[0]:gt,this),Te=Wt.invert(ae),Pe=Wt.k*(gt.shiftKey?.5:2),He=s(it(W(Wt,Pe),ae,Te),o.apply(this,Ot),v);Wh(gt),C>0?kr(this).transition().duration(C).call(rt,He,ae,gt):kr(this).call($.transform,He,ae,gt)}}function Rt(gt,...Ot){if(a.apply(this,arguments)){var Wt,ae,Te,Pe,He=gt.touches,yn=He.length,Ve=lt(this,Ot,gt.changedTouches.length===yn).event(gt);for(T2(gt),ae=0;ae<yn;++ae)Pe=[Pe=ha(Te=He[ae],this),this.__zoom.invert(Pe),Te.identifier],Ve.touch0?Ve.touch1||Ve.touch0[2]===Pe[2]||(Ve.touch1=Pe,Ve.taps=0):(Ve.touch0=Pe,Wt=!0,Ve.taps=1+!!t);t&&(t=clearTimeout(t)),Wt&&(Ve.taps<2&&(e=Pe[0],t=setTimeout(function(){t=null},R)),Ga(this),Ve.start())}}function Pt(gt,...Ot){if(this.__zooming){var Wt,ae,Te,Pe,He=lt(this,Ot).event(gt),yn=gt.changedTouches,Ve=yn.length;for(Wh(gt),Wt=0;Wt<Ve;++Wt)Te=ha(ae=yn[Wt],this),He.touch0&&He.touch0[2]===ae.identifier?He.touch0[0]=Te:He.touch1&&He.touch1[2]===ae.identifier&&(He.touch1[0]=Te);if(ae=He.that.__zoom,He.touch1){var $n=He.touch0[0],qn=He.touch0[1],Cn=He.touch1[0],Fn=He.touch1[1],wr=(wr=Cn[0]-$n[0])*wr+(wr=Cn[1]-$n[1])*wr,ar=(ar=Fn[0]-qn[0])*ar+(ar=Fn[1]-qn[1])*ar;ae=W(ae,Math.sqrt(wr/ar)),Te=[($n[0]+Cn[0])/2,($n[1]+Cn[1])/2],Pe=[(qn[0]+Fn[0])/2,(qn[1]+Fn[1])/2]}else{if(!He.touch0)return;Te=He.touch0[0],Pe=He.touch0[1]}He.zoom("touch",s(it(ae,Te,Pe),He.extent,v))}}function jt(gt,...Ot){if(this.__zooming){var Wt,ae,Te=lt(this,Ot).event(gt),Pe=gt.changedTouches,He=Pe.length;for(T2(gt),r&&clearTimeout(r),r=setTimeout(function(){r=null},R),Wt=0;Wt<He;++Wt)ae=Pe[Wt],Te.touch0&&Te.touch0[2]===ae.identifier?delete Te.touch0:Te.touch1&&Te.touch1[2]===ae.identifier&&delete Te.touch1;if(Te.touch1&&!Te.touch0&&(Te.touch0=Te.touch1,delete Te.touch1),Te.touch0)Te.touch0[1]=this.__zoom.invert(Te.touch0[0]);else if(Te.end(),Te.taps===2&&(ae=ha(ae,this),Math.hypot(e[0]-ae[0],e[1]-ae[1])<U)){var yn=kr(this).on("dblclick.zoom");yn&&yn.apply(this,arguments)}}}return $.transform=function(gt,Ot,Wt,ae){var Te=gt.selection?gt.selection():gt;Te.property("__zoom",Am),gt!==Te?rt(gt,Ot,Wt,ae):Te.interrupt().each(function(){lt(this,arguments).event(ae).start().zoom(null,typeof Ot=="function"?Ot.apply(this,arguments):Ot).end()})},$.scaleBy=function(gt,Ot,Wt,ae){$.scaleTo(gt,function(){var Te=this.__zoom.k,Pe=typeof Ot=="function"?Ot.apply(this,arguments):Ot;return Te*Pe},Wt,ae)},$.scaleTo=function(gt,Ot,Wt,ae){$.transform(gt,function(){var Te=o.apply(this,arguments),Pe=this.__zoom,He=Wt==null?nt(Te):typeof Wt=="function"?Wt.apply(this,arguments):Wt,yn=Pe.invert(He),Ve=typeof Ot=="function"?Ot.apply(this,arguments):Ot;return s(it(W(Pe,Ve),He,yn),Te,v)},Wt,ae)},$.translateBy=function(gt,Ot,Wt,ae){$.transform(gt,function(){return s(this.__zoom.translate(typeof Ot=="function"?Ot.apply(this,arguments):Ot,typeof Wt=="function"?Wt.apply(this,arguments):Wt),o.apply(this,arguments),v)},null,ae)},$.translateTo=function(gt,Ot,Wt,ae,Te){$.transform(gt,function(){var Pe=o.apply(this,arguments),He=this.__zoom,yn=ae==null?nt(Pe):typeof ae=="function"?ae.apply(this,arguments):ae;return s(cf.translate(yn[0],yn[1]).scale(He.k).translate(typeof Ot=="function"?-Ot.apply(this,arguments):-Ot,typeof Wt=="function"?-Wt.apply(this,arguments):-Wt),Pe,v)},ae,Te)},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,Ot){return this.mouse&&gt!=="mouse"&&(this.mouse[1]=Ot.invert(this.mouse[0])),this.touch0&&gt!=="touch"&&(this.touch0[1]=Ot.invert(this.touch0[0])),this.touch1&&gt!=="touch"&&(this.touch1[1]=Ot.invert(this.touch1[0])),this.that.__zoom=Ot,this.emit("zoom"),this},end:function(){return--this.active==0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(gt){var Ot=kr(this.that).datum();D.call(gt,this.that,new _6(gt,{sourceEvent:this.sourceEvent,target:$,type:gt,transform:this.that.__zoom,dispatch:D}),Ot)}},$.wheelDelta=function(gt){return arguments.length?(h=typeof gt=="function"?gt:sf(+gt),$):h},$.filter=function(gt){return arguments.length?(a=typeof gt=="function"?gt:sf(!!gt),$):a},$.touchable=function(gt){return arguments.length?(f=typeof gt=="function"?gt:sf(!!gt),$):f},$.extent=function(gt){return arguments.length?(o=typeof gt=="function"?gt:sf([[+gt[0][0],+gt[0][1]],[+gt[1][0],+gt[1][1]]]),$):o},$.scaleExtent=function(gt){return arguments.length?(y[0]=+gt[0],y[1]=+gt[1],$):[y[0],y[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},$}Cm.prototype=ns.prototype}},lf={};function La(M){var z=lf[M];if(z!==void 0)return z.exports;var p=lf[M]={id:M,loaded:!1,exports:{}};return Nm[M].call(p.exports,p,p.exports,La),p.loaded=!0,p.exports}La.c=lf,La.n=M=>{var z=M&&M.__esModule?()=>M.default:()=>M;return La.d(z,{a:z}),z},La.d=(M,z)=>{for(var p in z)La.o(z,p)&&!La.o(M,p)&&Object.defineProperty(M,p,{enumerable:!0,get:z[p]})},La.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch(M){if(typeof window=="object")return window}}(),La.o=(M,z)=>Object.prototype.hasOwnProperty.call(M,z),La.r=M=>{typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(M,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(M,"__esModule",{value:!0})},La.nmd=M=>(M.paths=[],M.children||(M.children=[]),M);var Om=La(La.s=6187).Z}}]);