Files
mermaid-live-editor/_app/immutable/chunks/util-afcbbd18.js
T
2022-06-08 08:48:12 +00:00

1232 lines
1.1 MiB
Plaintext

var J6=Object.defineProperty,tx=Object.defineProperties;var ex=Object.getOwnPropertyDescriptors;var x6=Object.getOwnPropertySymbols;var nx=Object.prototype.hasOwnProperty,rx=Object.prototype.propertyIsEnumerable;var w6=(S,O,p)=>O in S?J6(S,O,{enumerable:!0,configurable:!0,writable:!0,value:p}):S[O]=p,X_=(S,O)=>{for(var p in O||(O={}))nx.call(O,p)&&w6(S,p,O[p]);if(x6)for(var p of x6(O))rx.call(O,p)&&w6(S,p,O[p]);return S},Z_=(S,O)=>tx(S,ex(O));import{S as ix,i as ax,s as ox,e as k6,c as T6,a as C6,d as Q_,b as Cb,Y as Eb,g as sx,J as cx,E as E6,N as ux,v as lx,a5 as hx,Q as S6,O as J_}from"./index-b06f7db9.js";import{w as ey,d as fx}from"./preload-helper-29d322af.js";import{c as K_,p as i6,a as a6,h as t6,i as B6,j as dx,k as px,m as gx,b as yx,n as mx}from"./state-3a19ae0b.js";const vx=ey(void 0);/*! For license information please see mermaid.esm.min.mjs.LICENSE.txt */var bx={1362:(S,O,p)=>{S=p.nmd(S);var v=function(){var f=function(wt,pe,mt,It){for(mt=mt||{},It=wt.length;It--;mt[wt[It]]=pe);return mt},k=[1,3],y=[1,7],C=[1,8],A=[1,9],M=[1,10],R=[1,13],B=[1,12],Y=[1,16,25],G=[1,20],Q=[1,31],K=[1,32],gt=[1,33],tt=[1,35],Lt=[1,38],at=[1,36],vt=[1,37],At=[1,39],Zt=[1,40],zt=[1,41],xt=[1,42],jt=[1,45],Bt=[1,46],lt=[1,47],et=[1,48],st=[16,25],$=[1,62],Dt=[1,63],z=[1,64],Kt=[1,65],_t=[1,66],ae=[1,67],Ee=[16,25,32,44,45,53,56,57,58,59,60,61,66,68],Pe=[16,25,30,32,44,45,49,53,56,57,58,59,60,61,66,68,83,84,85,86],le=[5,8,9,10,11,16,19,23,25],oe=[53,83,84,85,86],he=[53,60,61,83,84,85,86],be=[53,56,57,58,59,83,84,85,86],Ne=[16,25,32],de=[1,99],Se={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,LINE:60,DOTTED_LINE:61,CALLBACK:62,LINK:63,LINK_TARGET:64,CLICK:65,CALLBACK_NAME:66,CALLBACK_ARGS:67,HREF:68,CSSCLASS:69,commentToken:70,textToken:71,graphCodeTokens:72,textNoTagsToken:73,TAGSTART:74,TAGEND:75,"==":76,"--":77,PCT:78,DEFAULT:79,SPACE:80,MINUS:81,keywords:82,UNICODE_TEXT:83,NUM:84,ALPHA:85,BQUOTE_STR:86,$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:"LINE",61:"DOTTED_LINE",62:"CALLBACK",63:"LINK",64:"LINK_TARGET",65:"CLICK",66:"CALLBACK_NAME",67:"CALLBACK_ARGS",68:"HREF",69:"CSSCLASS",72:"graphCodeTokens",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"},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],[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],[70,1],[70,1],[71,1],[71,1],[71,1],[71,1],[71,1],[71,1],[71,1],[73,1],[73,1],[73,1],[73,1],[28,1],[28,1],[28,1],[29,1]],performAction:function(wt,pe,mt,It,St,nt,ue){var Rt=nt.length-1;switch(St){case 5:It.setDirection("TB");break;case 6:It.setDirection("BT");break;case 7:It.setDirection("RL");break;case 8:It.setDirection("LR");break;case 12:It.parseDirective("%%{","open_directive");break;case 13:It.parseDirective(nt[Rt],"type_directive");break;case 14:nt[Rt]=nt[Rt].trim().replace(/'/g,'"'),It.parseDirective(nt[Rt],"arg_directive");break;case 15:It.parseDirective("}%%","close_directive","class");break;case 20:case 21:this.$=nt[Rt];break;case 22:this.$=nt[Rt-1]+nt[Rt];break;case 23:case 24:this.$=nt[Rt-1]+"~"+nt[Rt];break;case 25:It.addRelation(nt[Rt]);break;case 26:nt[Rt-1].title=It.cleanupLabel(nt[Rt]),It.addRelation(nt[Rt-1]);break;case 34:this.$=nt[Rt].trim(),It.setTitle(this.$);break;case 35:case 36:this.$=nt[Rt].trim(),It.setAccDescription(this.$);break;case 37:It.addClass(nt[Rt]);break;case 38:It.addClass(nt[Rt-2]),It.setCssClass(nt[Rt-2],nt[Rt]);break;case 39:It.addClass(nt[Rt-3]),It.addMembers(nt[Rt-3],nt[Rt-1]);break;case 40:It.addClass(nt[Rt-5]),It.setCssClass(nt[Rt-5],nt[Rt-3]),It.addMembers(nt[Rt-5],nt[Rt-1]);break;case 41:It.addAnnotation(nt[Rt],nt[Rt-2]);break;case 42:this.$=[nt[Rt]];break;case 43:nt[Rt].push(nt[Rt-1]),this.$=nt[Rt];break;case 44:case 46:case 47:break;case 45:It.addMember(nt[Rt-1],It.cleanupLabel(nt[Rt]));break;case 48:this.$={id1:nt[Rt-2],id2:nt[Rt],relation:nt[Rt-1],relationTitle1:"none",relationTitle2:"none"};break;case 49:this.$={id1:nt[Rt-3],id2:nt[Rt],relation:nt[Rt-1],relationTitle1:nt[Rt-2],relationTitle2:"none"};break;case 50:this.$={id1:nt[Rt-3],id2:nt[Rt],relation:nt[Rt-2],relationTitle1:"none",relationTitle2:nt[Rt-1]};break;case 51:this.$={id1:nt[Rt-4],id2:nt[Rt],relation:nt[Rt-2],relationTitle1:nt[Rt-3],relationTitle2:nt[Rt-1]};break;case 52:this.$={type1:nt[Rt-2],type2:nt[Rt],lineType:nt[Rt-1]};break;case 53:this.$={type1:"none",type2:nt[Rt],lineType:nt[Rt-1]};break;case 54:this.$={type1:nt[Rt-1],type2:"none",lineType:nt[Rt]};break;case 55:this.$={type1:"none",type2:"none",lineType:nt[Rt]};break;case 56:this.$=It.relationType.AGGREGATION;break;case 57:this.$=It.relationType.EXTENSION;break;case 58:this.$=It.relationType.COMPOSITION;break;case 59:this.$=It.relationType.DEPENDENCY;break;case 60:this.$=It.lineType.LINE;break;case 61:this.$=It.lineType.DOTTED_LINE;break;case 62:case 68:this.$=nt[Rt-2],It.setClickEvent(nt[Rt-1],nt[Rt]);break;case 63:case 69:this.$=nt[Rt-3],It.setClickEvent(nt[Rt-2],nt[Rt-1]),It.setTooltip(nt[Rt-2],nt[Rt]);break;case 64:case 72:this.$=nt[Rt-2],It.setLink(nt[Rt-1],nt[Rt]);break;case 65:case 73:this.$=nt[Rt-3],It.setLink(nt[Rt-2],nt[Rt-1],nt[Rt]);break;case 66:case 74:this.$=nt[Rt-3],It.setLink(nt[Rt-2],nt[Rt-1]),It.setTooltip(nt[Rt-2],nt[Rt]);break;case 67:case 75:this.$=nt[Rt-4],It.setLink(nt[Rt-3],nt[Rt-2],nt[Rt]),It.setTooltip(nt[Rt-3],nt[Rt-1]);break;case 70:this.$=nt[Rt-3],It.setClickEvent(nt[Rt-2],nt[Rt-1],nt[Rt]);break;case 71:this.$=nt[Rt-4],It.setClickEvent(nt[Rt-3],nt[Rt-2],nt[Rt-1]),It.setTooltip(nt[Rt-3],nt[Rt]);break;case 76:It.setCssClass(nt[Rt-1],nt[Rt])}},table:[{3:1,4:2,5:k,6:4,7:5,8:y,9:C,10:A,11:M,12:6,13:11,19:R,23:B},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,3]},{3:14,4:2,5:k,6:4,7:5,8:y,9:C,10:A,11:M,12:6,13:11,19:R,23:B},{1:[2,9]},f(Y,[2,5]),f(Y,[2,6]),f(Y,[2,7]),f(Y,[2,8]),{14:15,20:[1,16]},{16:[1,17]},{20:[2,12]},{1:[2,4]},{15:18,17:[1,19],22:G},f([17,22],[2,13]),{6:30,7:29,8:y,9:C,10:A,11:M,13:11,19:R,24:21,26:22,27:34,28:43,29:44,31:23,33:24,34:25,35:26,36:27,37:28,38:Q,40:K,42:gt,43:tt,48:Lt,50:at,51:vt,62:At,63:Zt,65:zt,69:xt,83:jt,84:Bt,85:lt,86:et},{16:[1,49]},{18:50,21:[1,51]},{16:[2,15]},{25:[1,52]},{16:[1,53],25:[2,17]},f(st,[2,25],{32:[1,54]}),f(st,[2,27]),f(st,[2,28]),f(st,[2,29]),f(st,[2,30]),f(st,[2,31]),f(st,[2,32]),f(st,[2,33]),{39:[1,55]},{41:[1,56]},f(st,[2,36]),f(st,[2,44],{52:57,54:60,55:61,32:[1,59],53:[1,58],56:$,57:Dt,58:z,59:Kt,60:_t,61:ae}),{27:68,28:43,29:44,83:jt,84:Bt,85:lt,86:et},f(st,[2,46]),f(st,[2,47]),{28:69,83:jt,84:Bt,85:lt},{27:70,28:43,29:44,83:jt,84:Bt,85:lt,86:et},{27:71,28:43,29:44,83:jt,84:Bt,85:lt,86:et},{27:72,28:43,29:44,83:jt,84:Bt,85:lt,86:et},{53:[1,73]},f(Ee,[2,20],{28:43,29:44,27:74,30:[1,75],83:jt,84:Bt,85:lt,86:et}),f(Ee,[2,21],{30:[1,76]}),f(Pe,[2,90]),f(Pe,[2,91]),f(Pe,[2,92]),f([16,25,30,32,44,45,53,56,57,58,59,60,61,66,68],[2,93]),f(le,[2,10]),{15:77,22:G},{22:[2,14]},{1:[2,16]},{6:30,7:29,8:y,9:C,10:A,11:M,13:11,19:R,24:78,25:[2,18],26:22,27:34,28:43,29:44,31:23,33:24,34:25,35:26,36:27,37:28,38:Q,40:K,42:gt,43:tt,48:Lt,50:at,51:vt,62:At,63:Zt,65:zt,69:xt,83:jt,84:Bt,85:lt,86:et},f(st,[2,26]),f(st,[2,34]),f(st,[2,35]),{27:79,28:43,29:44,53:[1,80],83:jt,84:Bt,85:lt,86:et},{52:81,54:60,55:61,56:$,57:Dt,58:z,59:Kt,60:_t,61:ae},f(st,[2,45]),{55:82,60:_t,61:ae},f(oe,[2,55],{54:83,56:$,57:Dt,58:z,59:Kt}),f(he,[2,56]),f(he,[2,57]),f(he,[2,58]),f(he,[2,59]),f(be,[2,60]),f(be,[2,61]),f(st,[2,37],{44:[1,84],45:[1,85]}),{49:[1,86]},{53:[1,87]},{53:[1,88]},{66:[1,89],68:[1,90]},{28:91,83:jt,84:Bt,85:lt},f(Ee,[2,22]),f(Ee,[2,23]),f(Ee,[2,24]),{16:[1,92]},{25:[2,19]},f(Ne,[2,48]),{27:93,28:43,29:44,83:jt,84:Bt,85:lt,86:et},{27:94,28:43,29:44,53:[1,95],83:jt,84:Bt,85:lt,86:et},f(oe,[2,54],{54:96,56:$,57:Dt,58:z,59:Kt}),f(oe,[2,53]),{28:97,83:jt,84:Bt,85:lt},{46:98,50:de},{27:100,28:43,29:44,83:jt,84:Bt,85:lt,86:et},f(st,[2,62],{53:[1,101]}),f(st,[2,64],{53:[1,103],64:[1,102]}),f(st,[2,68],{53:[1,104],67:[1,105]}),f(st,[2,72],{53:[1,107],64:[1,106]}),f(st,[2,76]),f(le,[2,11]),f(Ne,[2,50]),f(Ne,[2,49]),{27:108,28:43,29:44,83:jt,84:Bt,85:lt,86:et},f(oe,[2,52]),f(st,[2,38],{45:[1,109]}),{47:[1,110]},{46:111,47:[2,42],50:de},f(st,[2,41]),f(st,[2,63]),f(st,[2,65]),f(st,[2,66],{64:[1,112]}),f(st,[2,69]),f(st,[2,70],{53:[1,113]}),f(st,[2,73]),f(st,[2,74],{64:[1,114]}),f(Ne,[2,51]),{46:115,50:de},f(st,[2,39]),{47:[2,43]},f(st,[2,67]),f(st,[2,71]),f(st,[2,75]),{47:[1,116]},f(st,[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],78:[2,19],111:[2,43]},parseError:function(wt,pe){if(!pe.recoverable){var mt=new Error(wt);throw mt.hash=pe,mt}this.trace(wt)},parse:function(wt){var pe=this,mt=[0],It=[],St=[null],nt=[],ue=this.table,Rt="",dn=0,De=0,Ue=0,Ve=2,Je=1,en=nt.slice.call(arguments,1),Ae=Object.create(this.lexer),qe={yy:{}};for(var rn in this.yy)Object.prototype.hasOwnProperty.call(this.yy,rn)&&(qe.yy[rn]=this.yy[rn]);Ae.setInput(wt,qe.yy),qe.yy.lexer=Ae,qe.yy.parser=this,Ae.yylloc===void 0&&(Ae.yylloc={});var je=Ae.yylloc;nt.push(je);var xe=Ae.options&&Ae.options.ranges;function Ze(){var gn;return typeof(gn=It.pop()||Ae.lex()||Je)!="number"&&(gn instanceof Array&&(gn=(It=gn).pop()),gn=pe.symbols_[gn]||gn),gn}typeof qe.yy.parseError=="function"?this.parseError=qe.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var pn,Qn,Xe,nn,Sr,Dr,yn,An,fn,wn={};;){if(Xe=mt[mt.length-1],this.defaultActions[Xe]?nn=this.defaultActions[Xe]:(pn==null&&(pn=Ze()),nn=ue[Xe]&&ue[Xe][pn]),nn===void 0||!nn.length||!nn[0]){var Dn="";for(Dr in fn=[],ue[Xe])this.terminals_[Dr]&&Dr>Ve&&fn.push("'"+this.terminals_[Dr]+"'");Dn=Ae.showPosition?"Parse error on line "+(dn+1)+`:
`+Ae.showPosition()+`
Expecting `+fn.join(", ")+", got '"+(this.terminals_[pn]||pn)+"'":"Parse error on line "+(dn+1)+": Unexpected "+(pn==Je?"end of input":"'"+(this.terminals_[pn]||pn)+"'"),this.parseError(Dn,{text:Ae.match,token:this.terminals_[pn]||pn,line:Ae.yylineno,loc:je,expected:fn})}if(nn[0]instanceof Array&&nn.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Xe+", token: "+pn);switch(nn[0]){case 1:mt.push(pn),St.push(Ae.yytext),nt.push(Ae.yylloc),mt.push(nn[1]),pn=null,Qn?(pn=Qn,Qn=null):(De=Ae.yyleng,Rt=Ae.yytext,dn=Ae.yylineno,je=Ae.yylloc,Ue>0);break;case 2:if(yn=this.productions_[nn[1]][1],wn.$=St[St.length-yn],wn._$={first_line:nt[nt.length-(yn||1)].first_line,last_line:nt[nt.length-1].last_line,first_column:nt[nt.length-(yn||1)].first_column,last_column:nt[nt.length-1].last_column},xe&&(wn._$.range=[nt[nt.length-(yn||1)].range[0],nt[nt.length-1].range[1]]),(Sr=this.performAction.apply(wn,[Rt,De,dn,qe.yy,nn[1],St,nt].concat(en)))!==void 0)return Sr;yn&&(mt=mt.slice(0,-1*yn*2),St=St.slice(0,-1*yn),nt=nt.slice(0,-1*yn)),mt.push(this.productions_[nn[1]][0]),St.push(wn.$),nt.push(wn._$),An=ue[mt[mt.length-2]][mt[mt.length-1]],mt.push(An);break;case 3:return!0}}return!0}},te={EOF:1,parseError:function(wt,pe){if(!this.yy.parser)throw new Error(wt);this.yy.parser.parseError(wt,pe)},setInput:function(wt,pe){return this.yy=pe||this.yy||{},this._input=wt,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var wt=this._input[0];return this.yytext+=wt,this.yyleng++,this.offset++,this.match+=wt,this.matched+=wt,wt.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),wt},unput:function(wt){var pe=wt.length,mt=wt.split(/(?:\r\n?|\n)/g);this._input=wt+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-pe),this.offset-=pe;var It=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 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:mt?(mt.length===It.length?this.yylloc.first_column:0)+It[It.length-mt.length].length-mt[0].length:this.yylloc.first_column-pe},this.options.ranges&&(this.yylloc.range=[St[0],St[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(wt){this.unput(this.match.slice(wt))},pastInput:function(){var wt=this.matched.substr(0,this.matched.length-this.match.length);return(wt.length>20?"...":"")+wt.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var wt=this.match;return wt.length<20&&(wt+=this._input.substr(0,20-wt.length)),(wt.substr(0,20)+(wt.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var wt=this.pastInput(),pe=new Array(wt.length+1).join("-");return wt+this.upcomingInput()+`
`+pe+"^"},test_match:function(wt,pe){var mt,It,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))),(It=wt[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=It.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:It?It[It.length-1].length-It[It.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+wt[0].length},this.yytext+=wt[0],this.match+=wt[0],this.matches=wt,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(wt[0].length),this.matched+=wt[0],mt=this.performAction.call(this,this.yy,this,pe,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),mt)return mt;if(this._backtrack){for(var nt in St)this[nt]=St[nt];return!1}return!1},next:function(){if(this.done)return this.EOF;var wt,pe,mt,It;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var St=this._currentRules(),nt=0;nt<St.length;nt++)if((mt=this._input.match(this.rules[St[nt]]))&&(!pe||mt[0].length>pe[0].length)){if(pe=mt,It=nt,this.options.backtrack_lexer){if((wt=this.test_match(mt,St[nt]))!==!1)return wt;if(this._backtrack){pe=!1;continue}return!1}if(!this.options.flex)break}return pe?(wt=this.test_match(pe,St[It]))!==!1&&wt:this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(wt){this.conditionStack.push(wt)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(wt){return(wt=this.conditionStack.length-1-Math.abs(wt||0))>=0?this.conditionStack[wt]:"INITIAL"},pushState:function(wt){this.begin(wt)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(wt,pe,mt,It){switch(mt){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 26: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 36:case 39:case 42:case 45:case 48:case 51: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"EOF_IN_STRUCT";case 24:return"OPEN_IN_STRUCT";case 25:return this.popState(),47;case 27:return"MEMBER";case 28:return 43;case 29:return 69;case 30:return 62;case 31:return 63;case 32:return 65;case 33:return 48;case 34:return 49;case 35:this.begin("generic");break;case 37:return"GENERICTYPE";case 38:this.begin("string");break;case 40:return"STR";case 41:this.begin("bqstring");break;case 43:return"BQUOTE_STR";case 44:this.begin("href");break;case 46:return 68;case 47:this.begin("callback_name");break;case 49:this.popState(),this.begin("callback_args");break;case 50:return 66;case 52:return 67;case 53:case 54:case 55:case 56:return 64;case 57:case 58:return 57;case 59:case 60:return 59;case 61:return 58;case 62:return 56;case 63:return 60;case 64:return 61;case 65:return 32;case 66:return 44;case 67:return 81;case 68:return"DOT";case 69:return"PLUS";case 70:return 78;case 71:case 72:return"EQUALS";case 73:return 85;case 74:return"PUNCTUATION";case 75:return 84;case 76:return 83;case 77:return 80;case 78: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)/,/^(?:--)/,/^(?:\.\.)/,/^(?::{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:[51,52],inclusive:!1},callback_name:{rules:[48,49,50],inclusive:!1},href:{rules:[45,46],inclusive:!1},struct:{rules:[23,24,25,26,27],inclusive:!1},generic:{rules:[36,37],inclusive:!1},bqstring:{rules:[42,43],inclusive:!1},string:{rules:[39,40],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,9,10,11,13,15,18,19,20,21,22,28,29,30,31,32,33,34,35,38,41,44,47,53,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],inclusive:!0}}};function _e(){this.yy={}}return Se.lexer=te,_e.prototype=Se,Se.Parser=_e,new _e}();O.parser=v,O.Parser=v.Parser,O.parse=function(){return v.parse.apply(v,arguments)},O.main=function(f){f[1]||(console.log("Usage: "+f[0]+" FILE"),process.exit(1));var k=p(8218).readFileSync(p(6470).normalize(f[1]),"utf8");return O.parser.parse(k)},p.c[p.s]===S&&O.main(process.argv.slice(1))},5890:(S,O,p)=>{S=p.nmd(S);var v=function(){var f=function(lt,et,st,$){for(st=st||{},$=lt.length;$--;st[lt[$]]=et);return st},k=[1,2],y=[1,5],C=[6,9,11,23,25,27,29,30,48],A=[1,17],M=[1,18],R=[1,19],B=[1,20],Y=[1,21],G=[1,24],Q=[1,29],K=[1,30],gt=[1,31],tt=[1,32],Lt=[1,44],at=[30,45,46],vt=[4,6,9,11,23,25,27,29,30,48],At=[41,42,43,44],Zt=[22,36],zt=[1,62],xt={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,attribute:31,attributeType:32,attributeName:33,attributeKeyType:34,attributeComment:35,ATTRIBUTE_WORD:36,ATTRIBUTE_KEY:37,COMMENT:38,cardinality:39,relType:40,ZERO_OR_ONE:41,ZERO_OR_MORE:42,ONE_OR_MORE:43,ONLY_ONE:44,NON_IDENTIFYING:45,IDENTIFYING:46,WORD:47,open_directive:48,type_directive:49,arg_directive:50,close_directive:51,$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",36:"ATTRIBUTE_WORD",37:"ATTRIBUTE_KEY",38:"COMMENT",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"},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],[21,1],[21,2],[31,2],[31,3],[31,3],[31,4],[32,1],[33,1],[34,1],[35,1],[18,3],[39,1],[39,1],[39,1],[39,1],[40,1],[40,1],[19,1],[19,1],[12,1],[13,1],[16,1],[14,1]],performAction:function(lt,et,st,$,Dt,z,Kt){var _t=z.length-1;switch(Dt){case 1:break;case 3:case 7:case 8:this.$=[];break;case 4:z[_t-1].push(z[_t]),this.$=z[_t-1];break;case 5:case 6:case 20:case 27:case 28:case 29:case 39:this.$=z[_t];break;case 12:$.addEntity(z[_t-4]),$.addEntity(z[_t-2]),$.addRelationship(z[_t-4],z[_t],z[_t-2],z[_t-3]);break;case 13:$.addEntity(z[_t-3]),$.addAttributes(z[_t-3],z[_t-1]);break;case 14:$.addEntity(z[_t-2]);break;case 15:$.addEntity(z[_t]);break;case 16:case 17:this.$=z[_t].trim(),$.setTitle(this.$);break;case 18:case 19:this.$=z[_t].trim(),$.setAccDescription(this.$);break;case 21:this.$=[z[_t]];break;case 22:z[_t].push(z[_t-1]),this.$=z[_t];break;case 23:this.$={attributeType:z[_t-1],attributeName:z[_t]};break;case 24:this.$={attributeType:z[_t-2],attributeName:z[_t-1],attributeKeyType:z[_t]};break;case 25:this.$={attributeType:z[_t-2],attributeName:z[_t-1],attributeComment:z[_t]};break;case 26:this.$={attributeType:z[_t-3],attributeName:z[_t-2],attributeKeyType:z[_t-1],attributeComment:z[_t]};break;case 30:case 38:this.$=z[_t].replace(/"/g,"");break;case 31:this.$={cardA:z[_t],relType:z[_t-1],cardB:z[_t-2]};break;case 32:this.$=$.Cardinality.ZERO_OR_ONE;break;case 33:this.$=$.Cardinality.ZERO_OR_MORE;break;case 34:this.$=$.Cardinality.ONE_OR_MORE;break;case 35:this.$=$.Cardinality.ONLY_ONE;break;case 36:this.$=$.Identification.NON_IDENTIFYING;break;case 37:this.$=$.Identification.IDENTIFYING;break;case 40:$.parseDirective("%%{","open_directive");break;case 41:$.parseDirective(z[_t],"type_directive");break;case 42:z[_t]=z[_t].trim().replace(/'/g,'"'),$.parseDirective(z[_t],"arg_directive");break;case 43:$.parseDirective("}%%","close_directive","er")}},table:[{3:1,4:k,7:3,12:4,48:y},{1:[3]},f(C,[2,3],{5:6}),{3:7,4:k,7:3,12:4,48:y},{13:8,49:[1,9]},{49:[2,40]},{6:[1,10],7:15,8:11,9:[1,12],10:13,11:[1,14],12:4,17:16,23:A,25:M,27:R,29:B,30:Y,48:y},{1:[2,2]},{14:22,15:[1,23],51:G},f([15,51],[2,41]),f(C,[2,8],{1:[2,1]}),f(C,[2,4]),{7:15,10:25,12:4,17:16,23:A,25:M,27:R,29:B,30:Y,48:y},f(C,[2,6]),f(C,[2,7]),f(C,[2,11]),f(C,[2,15],{18:26,39:28,20:[1,27],41:Q,42:K,43:gt,44:tt}),{24:[1,33]},{26:[1,34]},{28:[1,35]},f(C,[2,19]),f([6,9,11,15,20,23,25,27,29,30,41,42,43,44,48],[2,20]),{11:[1,36]},{16:37,50:[1,38]},{11:[2,43]},f(C,[2,5]),{17:39,30:Y},{21:40,22:[1,41],31:42,32:43,36:Lt},{40:45,45:[1,46],46:[1,47]},f(at,[2,32]),f(at,[2,33]),f(at,[2,34]),f(at,[2,35]),f(C,[2,16]),f(C,[2,17]),f(C,[2,18]),f(vt,[2,9]),{14:48,51:G},{51:[2,42]},{15:[1,49]},{22:[1,50]},f(C,[2,14]),{21:51,22:[2,21],31:42,32:43,36:Lt},{33:52,36:[1,53]},{36:[2,27]},{39:54,41:Q,42:K,43:gt,44:tt},f(At,[2,36]),f(At,[2,37]),{11:[1,55]},{19:56,30:[1,58],47:[1,57]},f(C,[2,13]),{22:[2,22]},f(Zt,[2,23],{34:59,35:60,37:[1,61],38:zt}),f([22,36,37,38],[2,28]),{30:[2,31]},f(vt,[2,10]),f(C,[2,12]),f(C,[2,38]),f(C,[2,39]),f(Zt,[2,24],{35:63,38:zt}),f(Zt,[2,25]),f([22,36,38],[2,29]),f(Zt,[2,30]),f(Zt,[2,26])],defaultActions:{5:[2,40],7:[2,2],24:[2,43],38:[2,42],44:[2,27],51:[2,22],54:[2,31]},parseError:function(lt,et){if(!et.recoverable){var st=new Error(lt);throw st.hash=et,st}this.trace(lt)},parse:function(lt){var et=this,st=[0],$=[],Dt=[null],z=[],Kt=this.table,_t="",ae=0,Ee=0,Pe=0,le=2,oe=1,he=z.slice.call(arguments,1),be=Object.create(this.lexer),Ne={yy:{}};for(var de in this.yy)Object.prototype.hasOwnProperty.call(this.yy,de)&&(Ne.yy[de]=this.yy[de]);be.setInput(lt,Ne.yy),Ne.yy.lexer=be,Ne.yy.parser=this,be.yylloc===void 0&&(be.yylloc={});var Se=be.yylloc;z.push(Se);var te=be.options&&be.options.ranges;function _e(){var Ve;return typeof(Ve=$.pop()||be.lex()||oe)!="number"&&(Ve instanceof Array&&(Ve=($=Ve).pop()),Ve=et.symbols_[Ve]||Ve),Ve}typeof Ne.yy.parseError=="function"?this.parseError=Ne.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var wt,pe,mt,It,St,nt,ue,Rt,dn,De={};;){if(mt=st[st.length-1],this.defaultActions[mt]?It=this.defaultActions[mt]:(wt==null&&(wt=_e()),It=Kt[mt]&&Kt[mt][wt]),It===void 0||!It.length||!It[0]){var Ue="";for(nt in dn=[],Kt[mt])this.terminals_[nt]&&nt>le&&dn.push("'"+this.terminals_[nt]+"'");Ue=be.showPosition?"Parse error on line "+(ae+1)+`:
`+be.showPosition()+`
Expecting `+dn.join(", ")+", got '"+(this.terminals_[wt]||wt)+"'":"Parse error on line "+(ae+1)+": Unexpected "+(wt==oe?"end of input":"'"+(this.terminals_[wt]||wt)+"'"),this.parseError(Ue,{text:be.match,token:this.terminals_[wt]||wt,line:be.yylineno,loc:Se,expected:dn})}if(It[0]instanceof Array&&It.length>1)throw new Error("Parse Error: multiple actions possible at state: "+mt+", token: "+wt);switch(It[0]){case 1:st.push(wt),Dt.push(be.yytext),z.push(be.yylloc),st.push(It[1]),wt=null,pe?(wt=pe,pe=null):(Ee=be.yyleng,_t=be.yytext,ae=be.yylineno,Se=be.yylloc,Pe>0);break;case 2:if(ue=this.productions_[It[1]][1],De.$=Dt[Dt.length-ue],De._$={first_line:z[z.length-(ue||1)].first_line,last_line:z[z.length-1].last_line,first_column:z[z.length-(ue||1)].first_column,last_column:z[z.length-1].last_column},te&&(De._$.range=[z[z.length-(ue||1)].range[0],z[z.length-1].range[1]]),(St=this.performAction.apply(De,[_t,Ee,ae,Ne.yy,It[1],Dt,z].concat(he)))!==void 0)return St;ue&&(st=st.slice(0,-1*ue*2),Dt=Dt.slice(0,-1*ue),z=z.slice(0,-1*ue)),st.push(this.productions_[It[1]][0]),Dt.push(De.$),z.push(De._$),Rt=Kt[st[st.length-2]][st[st.length-1]],st.push(Rt);break;case 3:return!0}}return!0}},jt={EOF:1,parseError:function(lt,et){if(!this.yy.parser)throw new Error(lt);this.yy.parser.parseError(lt,et)},setInput:function(lt,et){return this.yy=et||this.yy||{},this._input=lt,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 lt=this._input[0];return this.yytext+=lt,this.yyleng++,this.offset++,this.match+=lt,this.matched+=lt,lt.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),lt},unput:function(lt){var et=lt.length,st=lt.split(/(?:\r\n?|\n)/g);this._input=lt+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-et),this.offset-=et;var $=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 Dt=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===$.length?this.yylloc.first_column:0)+$[$.length-st.length].length-st[0].length:this.yylloc.first_column-et},this.options.ranges&&(this.yylloc.range=[Dt[0],Dt[0]+this.yyleng-et]),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(lt){this.unput(this.match.slice(lt))},pastInput:function(){var lt=this.matched.substr(0,this.matched.length-this.match.length);return(lt.length>20?"...":"")+lt.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var lt=this.match;return lt.length<20&&(lt+=this._input.substr(0,20-lt.length)),(lt.substr(0,20)+(lt.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var lt=this.pastInput(),et=new Array(lt.length+1).join("-");return lt+this.upcomingInput()+`
`+et+"^"},test_match:function(lt,et){var st,$,Dt;if(this.options.backtrack_lexer&&(Dt={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&&(Dt.yylloc.range=this.yylloc.range.slice(0))),($=lt[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=$.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:$?$[$.length-1].length-$[$.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+lt[0].length},this.yytext+=lt[0],this.match+=lt[0],this.matches=lt,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(lt[0].length),this.matched+=lt[0],st=this.performAction.call(this,this.yy,this,et,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),st)return st;if(this._backtrack){for(var z in Dt)this[z]=Dt[z];return!1}return!1},next:function(){if(this.done)return this.EOF;var lt,et,st,$;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var Dt=this._currentRules(),z=0;z<Dt.length;z++)if((st=this._input.match(this.rules[Dt[z]]))&&(!et||st[0].length>et[0].length)){if(et=st,$=z,this.options.backtrack_lexer){if((lt=this.test_match(st,Dt[z]))!==!1)return lt;if(this._backtrack){et=!1;continue}return!1}if(!this.options.flex)break}return et?(lt=this.test_match(et,Dt[$]))!==!1&&lt: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(lt){this.conditionStack.push(lt)},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(lt){return(lt=this.conditionStack.length-1-Math.abs(lt||0))>=0?this.conditionStack[lt]:"INITIAL"},pushState:function(lt){this.begin(lt)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(lt,et,st,$){switch(st){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"),48;case 8:return this.begin("type_directive"),49;case 9:return this.popState(),this.begin("arg_directive"),15;case 10:return this.popState(),this.popState(),51;case 11:return 50;case 12:case 13:case 15:case 20:case 24:break;case 14:return 11;case 16:return 9;case 17:return 47;case 18:return 4;case 19:return this.begin("block"),20;case 21:return 37;case 22:return 36;case 23:return 38;case 25:return this.popState(),22;case 26:case 39:return et.yytext[0];case 27:case 31:return 41;case 28:case 32:return 42;case 29:case 33:return 43;case 30:return 44;case 34:case 36:case 37:return 45;case 35:return 46;case 38:return 30;case 40: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,/^(?:(?:PK)|(?:FK))/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],inclusive:!1},INITIAL:{rules:[0,2,4,7,12,13,14,15,16,17,18,19,27,28,29,30,31,32,33,34,35,36,37,38,39,40],inclusive:!0}}};function Bt(){this.yy={}}return xt.lexer=jt,Bt.prototype=xt,xt.Parser=Bt,new Bt}();O.parser=v,O.Parser=v.Parser,O.parse=function(){return v.parse.apply(v,arguments)},O.main=function(f){f[1]||(console.log("Usage: "+f[0]+" FILE"),process.exit(1));var k=p(8009).readFileSync(p(6470).normalize(f[1]),"utf8");return O.parser.parse(k)},p.c[p.s]===S&&O.main(process.argv.slice(1))},3602:(S,O,p)=>{S=p.nmd(S);var v=function(){var f=function(un,On,we,Be){for(we=we||{},Be=un.length;Be--;we[un[Be]]=On);return we},k=[1,9],y=[1,7],C=[1,6],A=[1,8],M=[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],R=[2,10],B=[1,20],Y=[1,21],G=[1,22],Q=[1,23],K=[1,30],gt=[1,32],tt=[1,33],Lt=[1,34],at=[1,62],vt=[1,48],At=[1,52],Zt=[1,36],zt=[1,37],xt=[1,38],jt=[1,39],Bt=[1,40],lt=[1,56],et=[1,63],st=[1,51],$=[1,53],Dt=[1,55],z=[1,59],Kt=[1,60],_t=[1,41],ae=[1,42],Ee=[1,43],Pe=[1,44],le=[1,61],oe=[1,50],he=[1,54],be=[1,57],Ne=[1,58],de=[1,49],Se=[1,66],te=[1,71],_e=[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],wt=[1,75],pe=[1,74],mt=[1,76],It=[20,21,23,81,82],St=[1,99],nt=[1,104],ue=[1,107],Rt=[1,108],dn=[1,101],De=[1,106],Ue=[1,109],Ve=[1,102],Je=[1,114],en=[1,113],Ae=[1,103],qe=[1,105],rn=[1,110],je=[1,111],xe=[1,112],Ze=[1,115],pn=[20,21,22,23,81,82],Qn=[20,21,22,23,53,81,82],Xe=[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],nn=[20,21,23],Sr=[20,21,23,52,66,67,81,82,91,95,105,106,109,111,112,122,123,124,125,126,127],Dr=[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],yn=[52,66,67,91,95,105,106,109,111,112,122,123,124,125,126,127],An=[1,149],fn=[1,157],wn=[1,158],Dn=[1,159],gn=[1,160],Yn=[1,144],Ln=[1,145],Pr=[1,141],Wn=[1,152],Xn=[1,153],Kn=[1,154],Mn=[1,155],Un=[1,156],Bn=[1,161],vn=[1,162],Vn=[1,147],sn=[1,150],Pn=[1,146],mn=[1,143],Ca=[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],uo=[1,165],Fi=[20,21,22,23,26,52,66,67,91,105,106,109,111,112,122,123,124,125,126,127],Fn=[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],ua=[12,21,22,24],Pi=[22,106],Lr=[1,250],ti=[1,245],Zr=[1,246],Qr=[1,254],jr=[1,251],fi=[1,248],di=[1,247],cr=[1,249],Yr=[1,252],ei=[1,253],Kr=[1,255],Ti=[1,273],Ha=[20,21,23,106],Er=[20,21,22,23,66,67,86,102,105,106,109,110,111,112,113],Wa={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(un,On,we,Be,sr,Ut,Ea){var Gt=Ut.length-1;switch(sr){case 5:Be.parseDirective("%%{","open_directive");break;case 6:Be.parseDirective(Ut[Gt],"type_directive");break;case 7:Ut[Gt]=Ut[Gt].trim().replace(/'/g,'"'),Be.parseDirective(Ut[Gt],"arg_directive");break;case 8:Be.parseDirective("}%%","close_directive","flowchart");break;case 10:case 36:case 37:case 38:case 39:case 40:this.$=[];break;case 11:Ut[Gt]!==[]&&Ut[Gt-1].push(Ut[Gt]),this.$=Ut[Gt-1];break;case 12:case 82:case 84:case 96:case 152:case 154:case 155:case 78:case 150:this.$=Ut[Gt];break;case 19:Be.setDirection("TB"),this.$="TB";break;case 20:Be.setDirection(Ut[Gt-1]),this.$=Ut[Gt-1];break;case 35:this.$=Ut[Gt-1].nodes;break;case 41:this.$=Be.addSubGraph(Ut[Gt-6],Ut[Gt-1],Ut[Gt-4]);break;case 42:this.$=Be.addSubGraph(Ut[Gt-3],Ut[Gt-1],Ut[Gt-3]);break;case 43:this.$=Be.addSubGraph(void 0,Ut[Gt-1],void 0);break;case 45:this.$=Ut[Gt].trim(),Be.setTitle(this.$);break;case 46:case 47:this.$=Ut[Gt].trim(),Be.setAccDescription(this.$);break;case 51:Be.addLink(Ut[Gt-2].stmt,Ut[Gt],Ut[Gt-1]),this.$={stmt:Ut[Gt],nodes:Ut[Gt].concat(Ut[Gt-2].nodes)};break;case 52:Be.addLink(Ut[Gt-3].stmt,Ut[Gt-1],Ut[Gt-2]),this.$={stmt:Ut[Gt-1],nodes:Ut[Gt-1].concat(Ut[Gt-3].nodes)};break;case 53:this.$={stmt:Ut[Gt-1],nodes:Ut[Gt-1]};break;case 54:this.$={stmt:Ut[Gt],nodes:Ut[Gt]};break;case 55:case 123:case 125:this.$=[Ut[Gt]];break;case 56:this.$=Ut[Gt-4].concat(Ut[Gt]);break;case 57:this.$=[Ut[Gt-2]],Be.setClass(Ut[Gt-2],Ut[Gt]);break;case 58:this.$=Ut[Gt-3],Be.addVertex(Ut[Gt-3],Ut[Gt-1],"square");break;case 59:this.$=Ut[Gt-3],Be.addVertex(Ut[Gt-3],Ut[Gt-1],"doublecircle");break;case 60:this.$=Ut[Gt-5],Be.addVertex(Ut[Gt-5],Ut[Gt-2],"circle");break;case 61:this.$=Ut[Gt-3],Be.addVertex(Ut[Gt-3],Ut[Gt-1],"ellipse");break;case 62:this.$=Ut[Gt-3],Be.addVertex(Ut[Gt-3],Ut[Gt-1],"stadium");break;case 63:this.$=Ut[Gt-3],Be.addVertex(Ut[Gt-3],Ut[Gt-1],"subroutine");break;case 64:this.$=Ut[Gt-7],Be.addVertex(Ut[Gt-7],Ut[Gt-1],"rect",void 0,void 0,void 0,Object.fromEntries([[Ut[Gt-5],Ut[Gt-3]]]));break;case 65:this.$=Ut[Gt-3],Be.addVertex(Ut[Gt-3],Ut[Gt-1],"cylinder");break;case 66:this.$=Ut[Gt-3],Be.addVertex(Ut[Gt-3],Ut[Gt-1],"round");break;case 67:this.$=Ut[Gt-3],Be.addVertex(Ut[Gt-3],Ut[Gt-1],"diamond");break;case 68:this.$=Ut[Gt-5],Be.addVertex(Ut[Gt-5],Ut[Gt-2],"hexagon");break;case 69:this.$=Ut[Gt-3],Be.addVertex(Ut[Gt-3],Ut[Gt-1],"odd");break;case 70:this.$=Ut[Gt-3],Be.addVertex(Ut[Gt-3],Ut[Gt-1],"trapezoid");break;case 71:this.$=Ut[Gt-3],Be.addVertex(Ut[Gt-3],Ut[Gt-1],"inv_trapezoid");break;case 72:this.$=Ut[Gt-3],Be.addVertex(Ut[Gt-3],Ut[Gt-1],"lean_right");break;case 73:this.$=Ut[Gt-3],Be.addVertex(Ut[Gt-3],Ut[Gt-1],"lean_left");break;case 74:this.$=Ut[Gt],Be.addVertex(Ut[Gt]);break;case 75:Ut[Gt-1].text=Ut[Gt],this.$=Ut[Gt-1];break;case 76:case 77:Ut[Gt-2].text=Ut[Gt-1],this.$=Ut[Gt-2];break;case 79:var zr=Be.destructLink(Ut[Gt],Ut[Gt-2]);this.$={type:zr.type,stroke:zr.stroke,length:zr.length,text:Ut[Gt-1]};break;case 80:zr=Be.destructLink(Ut[Gt]),this.$={type:zr.type,stroke:zr.stroke,length:zr.length};break;case 81:this.$=Ut[Gt-1];break;case 83:case 97:case 153:case 151:this.$=Ut[Gt-1]+""+Ut[Gt];break;case 98:case 99:this.$=Ut[Gt-4],Be.addClass(Ut[Gt-2],Ut[Gt]);break;case 100:this.$=Ut[Gt-4],Be.setClass(Ut[Gt-2],Ut[Gt]);break;case 101:case 109:this.$=Ut[Gt-1],Be.setClickEvent(Ut[Gt-1],Ut[Gt]);break;case 102:case 110:this.$=Ut[Gt-3],Be.setClickEvent(Ut[Gt-3],Ut[Gt-2]),Be.setTooltip(Ut[Gt-3],Ut[Gt]);break;case 103:this.$=Ut[Gt-2],Be.setClickEvent(Ut[Gt-2],Ut[Gt-1],Ut[Gt]);break;case 104:this.$=Ut[Gt-4],Be.setClickEvent(Ut[Gt-4],Ut[Gt-3],Ut[Gt-2]),Be.setTooltip(Ut[Gt-4],Ut[Gt]);break;case 105:case 111:this.$=Ut[Gt-1],Be.setLink(Ut[Gt-1],Ut[Gt]);break;case 106:case 112:this.$=Ut[Gt-3],Be.setLink(Ut[Gt-3],Ut[Gt-2]),Be.setTooltip(Ut[Gt-3],Ut[Gt]);break;case 107:case 113:this.$=Ut[Gt-3],Be.setLink(Ut[Gt-3],Ut[Gt-2],Ut[Gt]);break;case 108:case 114:this.$=Ut[Gt-5],Be.setLink(Ut[Gt-5],Ut[Gt-4],Ut[Gt]),Be.setTooltip(Ut[Gt-5],Ut[Gt-2]);break;case 115:this.$=Ut[Gt-4],Be.addVertex(Ut[Gt-2],void 0,void 0,Ut[Gt]);break;case 116:case 118:this.$=Ut[Gt-4],Be.updateLink(Ut[Gt-2],Ut[Gt]);break;case 117:this.$=Ut[Gt-4],Be.updateLink([Ut[Gt-2]],Ut[Gt]);break;case 119:this.$=Ut[Gt-8],Be.updateLinkInterpolate([Ut[Gt-6]],Ut[Gt-2]),Be.updateLink([Ut[Gt-6]],Ut[Gt]);break;case 120:this.$=Ut[Gt-8],Be.updateLinkInterpolate(Ut[Gt-6],Ut[Gt-2]),Be.updateLink(Ut[Gt-6],Ut[Gt]);break;case 121:this.$=Ut[Gt-6],Be.updateLinkInterpolate([Ut[Gt-4]],Ut[Gt]);break;case 122:this.$=Ut[Gt-6],Be.updateLinkInterpolate(Ut[Gt-4],Ut[Gt]);break;case 124:case 126:Ut[Gt-2].push(Ut[Gt]),this.$=Ut[Gt-2];break;case 128:this.$=Ut[Gt-1]+Ut[Gt];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:k,16:4,21:y,22:C,24:A},{1:[3]},{1:[2,1]},{3:10,4:2,5:3,6:5,12:k,16:4,21:y,22:C,24:A},f(M,R,{17:11}),{7:12,13:[1,13]},{16:14,21:y,22:C,24:A},{16:15,21:y,22:C,24:A},{25:[1,16],26:[1,17]},{13:[2,5]},{1:[2,2]},{1:[2,9],18:18,19:19,20:B,21:Y,22:G,23:Q,32:24,33:25,34:26,35:27,36:28,37:29,38:K,43:31,44:gt,46:tt,48:Lt,50:35,51:45,52:at,54:46,66:vt,67:At,86:Zt,87:zt,88:xt,89:jt,90:Bt,91:lt,95:et,105:st,106:$,109:Dt,111:z,112:Kt,116:47,118:_t,119:ae,120:Ee,121:Pe,122:le,123:oe,124:he,125:be,126:Ne,127:de},{8:64,10:[1,65],15:Se},f([10,15],[2,6]),f(M,[2,17]),f(M,[2,18]),f(M,[2,19]),{20:[1,68],21:[1,69],22:te,27:67,30:70},f(_e,[2,11]),f(_e,[2,12]),f(_e,[2,13]),f(_e,[2,14]),f(_e,[2,15]),f(_e,[2,16]),{9:72,20:wt,21:pe,23:mt,49:73,78:77,81:[1,78],82:[1,79]},{9:80,20:wt,21:pe,23:mt},{9:81,20:wt,21:pe,23:mt},{9:82,20:wt,21:pe,23:mt},{9:83,20:wt,21:pe,23:mt},{9:84,20:wt,21:pe,23:mt},{9:86,20:wt,21:pe,22:[1,85],23:mt},f(_e,[2,44]),{45:[1,87]},{47:[1,88]},f(_e,[2,47]),f(It,[2,54],{30:89,22:te}),{22:[1,90]},{22:[1,91]},{22:[1,92]},{22:[1,93]},{26:St,52:nt,66:ue,67:Rt,84:[1,97],91:dn,97:96,98:[1,94],100:[1,95],105:De,106:Ue,109:Ve,111:Je,112:en,115:100,117:98,122:Ae,123:qe,124:rn,125:je,126:xe,127:Ze},f(_e,[2,158]),f(_e,[2,159]),f(_e,[2,160]),f(_e,[2,161]),f(pn,[2,55],{53:[1,116]}),f(Qn,[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:vt,67:At,69:[1,124],71:[1,125],73:[1,126],74:[1,127],76:[1,128],91:lt,95:et,105:st,106:$,109:Dt,111:z,112:Kt,122:le,123:oe,124:he,125:be,126:Ne,127:de}),f(Xe,[2,150]),f(Xe,[2,175]),f(Xe,[2,176]),f(Xe,[2,177]),f(Xe,[2,178]),f(Xe,[2,179]),f(Xe,[2,180]),f(Xe,[2,181]),f(Xe,[2,182]),f(Xe,[2,183]),f(Xe,[2,184]),f(Xe,[2,185]),f(Xe,[2,186]),f(Xe,[2,187]),f(Xe,[2,188]),f(Xe,[2,189]),f(Xe,[2,190]),{9:130,20:wt,21:pe,23:mt},{11:131,14:[1,132]},f(nn,[2,8]),f(M,[2,20]),f(M,[2,26]),f(M,[2,27]),{21:[1,133]},f(Sr,[2,34],{30:134,22:te}),f(_e,[2,35]),{50:135,51:45,52:at,54:46,66:vt,67:At,91:lt,95:et,105:st,106:$,109:Dt,111:z,112:Kt,116:47,122:le,123:oe,124:he,125:be,126:Ne,127:de},f(Dr,[2,48]),f(Dr,[2,49]),f(Dr,[2,50]),f(yn,[2,78],{79:136,68:[1,138],80:[1,137]}),{22:An,24:fn,26:wn,38:Dn,39:139,42:gn,52:nt,66:ue,67:Rt,73:Yn,81:Ln,83:140,84:Pr,85:151,86:Wn,87:Xn,88:Kn,89:Mn,90:Un,91:Bn,92:vn,94:142,95:Vn,105:De,106:Ue,109:sn,111:Je,112:en,113:Pn,114:mn,115:148,122:Ae,123:qe,124:rn,125:je,126:xe,127:Ze},f([52,66,67,68,80,91,95,105,106,109,111,112,122,123,124,125,126,127],[2,80]),f(_e,[2,36]),f(_e,[2,37]),f(_e,[2,38]),f(_e,[2,39]),f(_e,[2,40]),{22:An,24:fn,26:wn,38:Dn,39:163,42:gn,52:nt,66:ue,67:Rt,73:Yn,81:Ln,83:140,84:Pr,85:151,86:Wn,87:Xn,88:Kn,89:Mn,90:Un,91:Bn,92:vn,94:142,95:Vn,105:De,106:Ue,109:sn,111:Je,112:en,113:Pn,114:mn,115:148,122:Ae,123:qe,124:rn,125:je,126:xe,127:Ze},f(Ca,R,{17:164}),f(_e,[2,45]),f(_e,[2,46]),f(It,[2,53],{52:uo}),{26:St,52:nt,66:ue,67:Rt,91:dn,97:166,102:[1,167],105:De,106:Ue,109:Ve,111:Je,112:en,115:100,117:98,122:Ae,123:qe,124:rn,125:je,126:xe,127:Ze},{95:[1,168],103:169,105:[1,170]},{26:St,52:nt,66:ue,67:Rt,91:dn,95:[1,171],97:172,105:De,106:Ue,109:Ve,111:Je,112:en,115:100,117:98,122:Ae,123:qe,124:rn,125:je,126:xe,127:Ze},{26:St,52:nt,66:ue,67:Rt,91:dn,97:173,105:De,106:Ue,109:Ve,111:Je,112:en,115:100,117:98,122:Ae,123:qe,124:rn,125:je,126:xe,127:Ze},f(nn,[2,101],{22:[1,174],99:[1,175]}),f(nn,[2,105],{22:[1,176]}),f(nn,[2,109],{115:100,117:178,22:[1,177],26:St,52:nt,66:ue,67:Rt,91:dn,105:De,106:Ue,109:Ve,111:Je,112:en,122:Ae,123:qe,124:rn,125:je,126:xe,127:Ze}),f(nn,[2,111],{22:[1,179]}),f(Fi,[2,152]),f(Fi,[2,154]),f(Fi,[2,155]),f(Fi,[2,156]),f(Fi,[2,157]),f(Fn,[2,162]),f(Fn,[2,163]),f(Fn,[2,164]),f(Fn,[2,165]),f(Fn,[2,166]),f(Fn,[2,167]),f(Fn,[2,168]),f(Fn,[2,169]),f(Fn,[2,170]),f(Fn,[2,171]),f(Fn,[2,172]),f(Fn,[2,173]),f(Fn,[2,174]),{52:at,54:180,66:vt,67:At,91:lt,95:et,105:st,106:$,109:Dt,111:z,112:Kt,116:47,122:le,123:oe,124:he,125:be,126:Ne,127:de},{22:An,24:fn,26:wn,38:Dn,39:181,42:gn,52:nt,66:ue,67:Rt,73:Yn,81:Ln,83:140,84:Pr,85:151,86:Wn,87:Xn,88:Kn,89:Mn,90:Un,91:Bn,92:vn,94:142,95:Vn,105:De,106:Ue,109:sn,111:Je,112:en,113:Pn,114:mn,115:148,122:Ae,123:qe,124:rn,125:je,126:xe,127:Ze},{22:An,24:fn,26:wn,38:Dn,39:182,42:gn,52:nt,66:ue,67:Rt,73:Yn,81:Ln,83:140,84:Pr,85:151,86:Wn,87:Xn,88:Kn,89:Mn,90:Un,91:Bn,92:vn,94:142,95:Vn,105:De,106:Ue,109:sn,111:Je,112:en,113:Pn,114:mn,115:148,122:Ae,123:qe,124:rn,125:je,126:xe,127:Ze},{22:An,24:fn,26:wn,38:Dn,39:184,42:gn,52:nt,57:[1,183],66:ue,67:Rt,73:Yn,81:Ln,83:140,84:Pr,85:151,86:Wn,87:Xn,88:Kn,89:Mn,90:Un,91:Bn,92:vn,94:142,95:Vn,105:De,106:Ue,109:sn,111:Je,112:en,113:Pn,114:mn,115:148,122:Ae,123:qe,124:rn,125:je,126:xe,127:Ze},{22:An,24:fn,26:wn,38:Dn,39:185,42:gn,52:nt,66:ue,67:Rt,73:Yn,81:Ln,83:140,84:Pr,85:151,86:Wn,87:Xn,88:Kn,89:Mn,90:Un,91:Bn,92:vn,94:142,95:Vn,105:De,106:Ue,109:sn,111:Je,112:en,113:Pn,114:mn,115:148,122:Ae,123:qe,124:rn,125:je,126:xe,127:Ze},{22:An,24:fn,26:wn,38:Dn,39:186,42:gn,52:nt,66:ue,67:Rt,73:Yn,81:Ln,83:140,84:Pr,85:151,86:Wn,87:Xn,88:Kn,89:Mn,90:Un,91:Bn,92:vn,94:142,95:Vn,105:De,106:Ue,109:sn,111:Je,112:en,113:Pn,114:mn,115:148,122:Ae,123:qe,124:rn,125:je,126:xe,127:Ze},{22:An,24:fn,26:wn,38:Dn,39:187,42:gn,52:nt,66:ue,67:Rt,73:Yn,81:Ln,83:140,84:Pr,85:151,86:Wn,87:Xn,88:Kn,89:Mn,90:Un,91:Bn,92:vn,94:142,95:Vn,105:De,106:Ue,109:sn,111:Je,112:en,113:Pn,114:mn,115:148,122:Ae,123:qe,124:rn,125:je,126:xe,127:Ze},{66:[1,188]},{22:An,24:fn,26:wn,38:Dn,39:189,42:gn,52:nt,66:ue,67:Rt,73:Yn,81:Ln,83:140,84:Pr,85:151,86:Wn,87:Xn,88:Kn,89:Mn,90:Un,91:Bn,92:vn,94:142,95:Vn,105:De,106:Ue,109:sn,111:Je,112:en,113:Pn,114:mn,115:148,122:Ae,123:qe,124:rn,125:je,126:xe,127:Ze},{22:An,24:fn,26:wn,38:Dn,39:190,42:gn,52:nt,66:ue,67:Rt,71:[1,191],73:Yn,81:Ln,83:140,84:Pr,85:151,86:Wn,87:Xn,88:Kn,89:Mn,90:Un,91:Bn,92:vn,94:142,95:Vn,105:De,106:Ue,109:sn,111:Je,112:en,113:Pn,114:mn,115:148,122:Ae,123:qe,124:rn,125:je,126:xe,127:Ze},{22:An,24:fn,26:wn,38:Dn,39:192,42:gn,52:nt,66:ue,67:Rt,73:Yn,81:Ln,83:140,84:Pr,85:151,86:Wn,87:Xn,88:Kn,89:Mn,90:Un,91:Bn,92:vn,94:142,95:Vn,105:De,106:Ue,109:sn,111:Je,112:en,113:Pn,114:mn,115:148,122:Ae,123:qe,124:rn,125:je,126:xe,127:Ze},{22:An,24:fn,26:wn,38:Dn,39:193,42:gn,52:nt,66:ue,67:Rt,73:Yn,81:Ln,83:140,84:Pr,85:151,86:Wn,87:Xn,88:Kn,89:Mn,90:Un,91:Bn,92:vn,94:142,95:Vn,105:De,106:Ue,109:sn,111:Je,112:en,113:Pn,114:mn,115:148,122:Ae,123:qe,124:rn,125:je,126:xe,127:Ze},{22:An,24:fn,26:wn,38:Dn,39:194,42:gn,52:nt,66:ue,67:Rt,73:Yn,81:Ln,83:140,84:Pr,85:151,86:Wn,87:Xn,88:Kn,89:Mn,90:Un,91:Bn,92:vn,94:142,95:Vn,105:De,106:Ue,109:sn,111:Je,112:en,113:Pn,114:mn,115:148,122:Ae,123:qe,124:rn,125:je,126:xe,127:Ze},f(Xe,[2,151]),f(ua,[2,3]),{8:195,15:Se},{15:[2,7]},f(M,[2,28]),f(Sr,[2,33]),f(It,[2,51],{30:196,22:te}),f(yn,[2,75],{22:[1,197]}),{22:[1,198]},{22:An,24:fn,26:wn,38:Dn,39:199,42:gn,52:nt,66:ue,67:Rt,73:Yn,81:Ln,83:140,84:Pr,85:151,86:Wn,87:Xn,88:Kn,89:Mn,90:Un,91:Bn,92:vn,94:142,95:Vn,105:De,106:Ue,109:sn,111:Je,112:en,113:Pn,114:mn,115:148,122:Ae,123:qe,124:rn,125:je,126:xe,127:Ze},{22:An,24:fn,26:wn,38:Dn,42:gn,52:nt,66:ue,67:Rt,73:Yn,81:Ln,82:[1,200],83:201,85:151,86:Wn,87:Xn,88:Kn,89:Mn,90:Un,91:Bn,92:vn,94:142,95:Vn,105:De,106:Ue,109:sn,111:Je,112:en,113:Pn,114:mn,115:148,122:Ae,123:qe,124:rn,125:je,126:xe,127:Ze},f(Fn,[2,82]),f(Fn,[2,84]),f(Fn,[2,140]),f(Fn,[2,141]),f(Fn,[2,142]),f(Fn,[2,143]),f(Fn,[2,144]),f(Fn,[2,145]),f(Fn,[2,146]),f(Fn,[2,147]),f(Fn,[2,148]),f(Fn,[2,149]),f(Fn,[2,85]),f(Fn,[2,86]),f(Fn,[2,87]),f(Fn,[2,88]),f(Fn,[2,89]),f(Fn,[2,90]),f(Fn,[2,91]),f(Fn,[2,92]),f(Fn,[2,93]),f(Fn,[2,94]),f(Fn,[2,95]),{9:203,20:wt,21:pe,22:An,23:mt,24:fn,26:wn,38:Dn,40:[1,202],42:gn,52:nt,66:ue,67:Rt,73:Yn,81:Ln,83:201,85:151,86:Wn,87:Xn,88:Kn,89:Mn,90:Un,91:Bn,92:vn,94:142,95:Vn,105:De,106:Ue,109:sn,111:Je,112:en,113:Pn,114:mn,115:148,122:Ae,123:qe,124:rn,125:je,126:xe,127:Ze},{18:18,19:19,20:B,21:Y,22:G,23:Q,32:24,33:25,34:26,35:27,36:28,37:29,38:K,42:[1,204],43:31,44:gt,46:tt,48:Lt,50:35,51:45,52:at,54:46,66:vt,67:At,86:Zt,87:zt,88:xt,89:jt,90:Bt,91:lt,95:et,105:st,106:$,109:Dt,111:z,112:Kt,116:47,118:_t,119:ae,120:Ee,121:Pe,122:le,123:oe,124:he,125:be,126:Ne,127:de},{22:te,30:205},{22:[1,206],26:St,52:nt,66:ue,67:Rt,91:dn,105:De,106:Ue,109:Ve,111:Je,112:en,115:100,117:178,122:Ae,123:qe,124:rn,125:je,126:xe,127:Ze},{22:[1,207]},{22:[1,208]},{22:[1,209],106:[1,210]},f(Pi,[2,123]),{22:[1,211]},{22:[1,212],26:St,52:nt,66:ue,67:Rt,91:dn,105:De,106:Ue,109:Ve,111:Je,112:en,115:100,117:178,122:Ae,123:qe,124:rn,125:je,126:xe,127:Ze},{22:[1,213],26:St,52:nt,66:ue,67:Rt,91:dn,105:De,106:Ue,109:Ve,111:Je,112:en,115:100,117:178,122:Ae,123:qe,124:rn,125:je,126:xe,127:Ze},{84:[1,214]},f(nn,[2,103],{22:[1,215]}),{84:[1,216],101:[1,217]},{84:[1,218]},f(Fi,[2,153]),{84:[1,219],101:[1,220]},f(pn,[2,57],{116:129,52:at,66:vt,67:At,91:lt,95:et,105:st,106:$,109:Dt,111:z,112:Kt,122:le,123:oe,124:he,125:be,126:Ne,127:de}),{22:An,24:fn,26:wn,38:Dn,41:[1,221],42:gn,52:nt,66:ue,67:Rt,73:Yn,81:Ln,83:201,85:151,86:Wn,87:Xn,88:Kn,89:Mn,90:Un,91:Bn,92:vn,94:142,95:Vn,105:De,106:Ue,109:sn,111:Je,112:en,113:Pn,114:mn,115:148,122:Ae,123:qe,124:rn,125:je,126:xe,127:Ze},{22:An,24:fn,26:wn,38:Dn,42:gn,52:nt,56:[1,222],66:ue,67:Rt,73:Yn,81:Ln,83:201,85:151,86:Wn,87:Xn,88:Kn,89:Mn,90:Un,91:Bn,92:vn,94:142,95:Vn,105:De,106:Ue,109:sn,111:Je,112:en,113:Pn,114:mn,115:148,122:Ae,123:qe,124:rn,125:je,126:xe,127:Ze},{22:An,24:fn,26:wn,38:Dn,39:223,42:gn,52:nt,66:ue,67:Rt,73:Yn,81:Ln,83:140,84:Pr,85:151,86:Wn,87:Xn,88:Kn,89:Mn,90:Un,91:Bn,92:vn,94:142,95:Vn,105:De,106:Ue,109:sn,111:Je,112:en,113:Pn,114:mn,115:148,122:Ae,123:qe,124:rn,125:je,126:xe,127:Ze},{22:An,24:fn,26:wn,38:Dn,42:gn,52:nt,58:[1,224],66:ue,67:Rt,73:Yn,81:Ln,83:201,85:151,86:Wn,87:Xn,88:Kn,89:Mn,90:Un,91:Bn,92:vn,94:142,95:Vn,105:De,106:Ue,109:sn,111:Je,112:en,113:Pn,114:mn,115:148,122:Ae,123:qe,124:rn,125:je,126:xe,127:Ze},{22:An,24:fn,26:wn,38:Dn,42:gn,52:nt,60:[1,225],66:ue,67:Rt,73:Yn,81:Ln,83:201,85:151,86:Wn,87:Xn,88:Kn,89:Mn,90:Un,91:Bn,92:vn,94:142,95:Vn,105:De,106:Ue,109:sn,111:Je,112:en,113:Pn,114:mn,115:148,122:Ae,123:qe,124:rn,125:je,126:xe,127:Ze},{22:An,24:fn,26:wn,38:Dn,42:gn,52:nt,62:[1,226],66:ue,67:Rt,73:Yn,81:Ln,83:201,85:151,86:Wn,87:Xn,88:Kn,89:Mn,90:Un,91:Bn,92:vn,94:142,95:Vn,105:De,106:Ue,109:sn,111:Je,112:en,113:Pn,114:mn,115:148,122:Ae,123:qe,124:rn,125:je,126:xe,127:Ze},{22:An,24:fn,26:wn,38:Dn,42:gn,52:nt,64:[1,227],66:ue,67:Rt,73:Yn,81:Ln,83:201,85:151,86:Wn,87:Xn,88:Kn,89:Mn,90:Un,91:Bn,92:vn,94:142,95:Vn,105:De,106:Ue,109:sn,111:Je,112:en,113:Pn,114:mn,115:148,122:Ae,123:qe,124:rn,125:je,126:xe,127:Ze},{67:[1,228]},{22:An,24:fn,26:wn,38:Dn,42:gn,52:nt,66:ue,67:Rt,70:[1,229],73:Yn,81:Ln,83:201,85:151,86:Wn,87:Xn,88:Kn,89:Mn,90:Un,91:Bn,92:vn,94:142,95:Vn,105:De,106:Ue,109:sn,111:Je,112:en,113:Pn,114:mn,115:148,122:Ae,123:qe,124:rn,125:je,126:xe,127:Ze},{22:An,24:fn,26:wn,38:Dn,42:gn,52:nt,66:ue,67:Rt,72:[1,230],73:Yn,81:Ln,83:201,85:151,86:Wn,87:Xn,88:Kn,89:Mn,90:Un,91:Bn,92:vn,94:142,95:Vn,105:De,106:Ue,109:sn,111:Je,112:en,113:Pn,114:mn,115:148,122:Ae,123:qe,124:rn,125:je,126:xe,127:Ze},{22:An,24:fn,26:wn,38:Dn,39:231,42:gn,52:nt,66:ue,67:Rt,73:Yn,81:Ln,83:140,84:Pr,85:151,86:Wn,87:Xn,88:Kn,89:Mn,90:Un,91:Bn,92:vn,94:142,95:Vn,105:De,106:Ue,109:sn,111:Je,112:en,113:Pn,114:mn,115:148,122:Ae,123:qe,124:rn,125:je,126:xe,127:Ze},{22:An,24:fn,26:wn,38:Dn,41:[1,232],42:gn,52:nt,66:ue,67:Rt,73:Yn,81:Ln,83:201,85:151,86:Wn,87:Xn,88:Kn,89:Mn,90:Un,91:Bn,92:vn,94:142,95:Vn,105:De,106:Ue,109:sn,111:Je,112:en,113:Pn,114:mn,115:148,122:Ae,123:qe,124:rn,125:je,126:xe,127:Ze},{22:An,24:fn,26:wn,38:Dn,42:gn,52:nt,66:ue,67:Rt,73:Yn,75:[1,233],77:[1,234],81:Ln,83:201,85:151,86:Wn,87:Xn,88:Kn,89:Mn,90:Un,91:Bn,92:vn,94:142,95:Vn,105:De,106:Ue,109:sn,111:Je,112:en,113:Pn,114:mn,115:148,122:Ae,123:qe,124:rn,125:je,126:xe,127:Ze},{22:An,24:fn,26:wn,38:Dn,42:gn,52:nt,66:ue,67:Rt,73:Yn,75:[1,236],77:[1,235],81:Ln,83:201,85:151,86:Wn,87:Xn,88:Kn,89:Mn,90:Un,91:Bn,92:vn,94:142,95:Vn,105:De,106:Ue,109:sn,111:Je,112:en,113:Pn,114:mn,115:148,122:Ae,123:qe,124:rn,125:je,126:xe,127:Ze},{9:237,20:wt,21:pe,23:mt},f(It,[2,52],{52:uo}),f(yn,[2,77]),f(yn,[2,76]),{22:An,24:fn,26:wn,38:Dn,42:gn,52:nt,66:ue,67:Rt,68:[1,238],73:Yn,81:Ln,83:201,85:151,86:Wn,87:Xn,88:Kn,89:Mn,90:Un,91:Bn,92:vn,94:142,95:Vn,105:De,106:Ue,109:sn,111:Je,112:en,113:Pn,114:mn,115:148,122:Ae,123:qe,124:rn,125:je,126:xe,127:Ze},f(yn,[2,79]),f(Fn,[2,83]),{22:An,24:fn,26:wn,38:Dn,39:239,42:gn,52:nt,66:ue,67:Rt,73:Yn,81:Ln,83:140,84:Pr,85:151,86:Wn,87:Xn,88:Kn,89:Mn,90:Un,91:Bn,92:vn,94:142,95:Vn,105:De,106:Ue,109:sn,111:Je,112:en,113:Pn,114:mn,115:148,122:Ae,123:qe,124:rn,125:je,126:xe,127:Ze},f(Ca,R,{17:240}),f(_e,[2,43]),{51:241,52:at,54:46,66:vt,67:At,91:lt,95:et,105:st,106:$,109:Dt,111:z,112:Kt,116:47,122:le,123:oe,124:he,125:be,126:Ne,127:de},{22:Lr,66:ti,67:Zr,86:Qr,96:242,102:jr,105:fi,107:243,108:244,109:di,110:cr,111:Yr,112:ei,113:Kr},{22:Lr,66:ti,67:Zr,86:Qr,96:256,102:jr,105:fi,107:243,108:244,109:di,110:cr,111:Yr,112:ei,113:Kr},{22:Lr,66:ti,67:Zr,86:Qr,96:257,102:jr,104:[1,258],105:fi,107:243,108:244,109:di,110:cr,111:Yr,112:ei,113:Kr},{22:Lr,66:ti,67:Zr,86:Qr,96:259,102:jr,104:[1,260],105:fi,107:243,108:244,109:di,110:cr,111:Yr,112:ei,113:Kr},{105:[1,261]},{22:Lr,66:ti,67:Zr,86:Qr,96:262,102:jr,105:fi,107:243,108:244,109:di,110:cr,111:Yr,112:ei,113:Kr},{22:Lr,66:ti,67:Zr,86:Qr,96:263,102:jr,105:fi,107:243,108:244,109:di,110:cr,111:Yr,112:ei,113:Kr},{26:St,52:nt,66:ue,67:Rt,91:dn,97:264,105:De,106:Ue,109:Ve,111:Je,112:en,115:100,117:98,122:Ae,123:qe,124:rn,125:je,126:xe,127:Ze},f(nn,[2,102]),{84:[1,265]},f(nn,[2,106],{22:[1,266]}),f(nn,[2,107]),f(nn,[2,110]),f(nn,[2,112],{22:[1,267]}),f(nn,[2,113]),f(Qn,[2,58]),f(Qn,[2,59]),{22:An,24:fn,26:wn,38:Dn,42:gn,52:nt,58:[1,268],66:ue,67:Rt,73:Yn,81:Ln,83:201,85:151,86:Wn,87:Xn,88:Kn,89:Mn,90:Un,91:Bn,92:vn,94:142,95:Vn,105:De,106:Ue,109:sn,111:Je,112:en,113:Pn,114:mn,115:148,122:Ae,123:qe,124:rn,125:je,126:xe,127:Ze},f(Qn,[2,66]),f(Qn,[2,61]),f(Qn,[2,62]),f(Qn,[2,63]),{66:[1,269]},f(Qn,[2,65]),f(Qn,[2,67]),{22:An,24:fn,26:wn,38:Dn,42:gn,52:nt,66:ue,67:Rt,72:[1,270],73:Yn,81:Ln,83:201,85:151,86:Wn,87:Xn,88:Kn,89:Mn,90:Un,91:Bn,92:vn,94:142,95:Vn,105:De,106:Ue,109:sn,111:Je,112:en,113:Pn,114:mn,115:148,122:Ae,123:qe,124:rn,125:je,126:xe,127:Ze},f(Qn,[2,69]),f(Qn,[2,70]),f(Qn,[2,72]),f(Qn,[2,71]),f(Qn,[2,73]),f(ua,[2,4]),f([22,52,66,67,91,95,105,106,109,111,112,122,123,124,125,126,127],[2,81]),{22:An,24:fn,26:wn,38:Dn,41:[1,271],42:gn,52:nt,66:ue,67:Rt,73:Yn,81:Ln,83:201,85:151,86:Wn,87:Xn,88:Kn,89:Mn,90:Un,91:Bn,92:vn,94:142,95:Vn,105:De,106:Ue,109:sn,111:Je,112:en,113:Pn,114:mn,115:148,122:Ae,123:qe,124:rn,125:je,126:xe,127:Ze},{18:18,19:19,20:B,21:Y,22:G,23:Q,32:24,33:25,34:26,35:27,36:28,37:29,38:K,42:[1,272],43:31,44:gt,46:tt,48:Lt,50:35,51:45,52:at,54:46,66:vt,67:At,86:Zt,87:zt,88:xt,89:jt,90:Bt,91:lt,95:et,105:st,106:$,109:Dt,111:z,112:Kt,116:47,118:_t,119:ae,120:Ee,121:Pe,122:le,123:oe,124:he,125:be,126:Ne,127:de},f(pn,[2,56]),f(nn,[2,115],{106:Ti}),f(Ha,[2,125],{108:274,22:Lr,66:ti,67:Zr,86:Qr,102:jr,105:fi,109:di,110:cr,111:Yr,112:ei,113:Kr}),f(Er,[2,127]),f(Er,[2,129]),f(Er,[2,130]),f(Er,[2,131]),f(Er,[2,132]),f(Er,[2,133]),f(Er,[2,134]),f(Er,[2,135]),f(Er,[2,136]),f(Er,[2,137]),f(Er,[2,138]),f(Er,[2,139]),f(nn,[2,116],{106:Ti}),f(nn,[2,117],{106:Ti}),{22:[1,275]},f(nn,[2,118],{106:Ti}),{22:[1,276]},f(Pi,[2,124]),f(nn,[2,98],{106:Ti}),f(nn,[2,99],{106:Ti}),f(nn,[2,100],{115:100,117:178,26:St,52:nt,66:ue,67:Rt,91:dn,105:De,106:Ue,109:Ve,111:Je,112:en,122:Ae,123:qe,124:rn,125:je,126:xe,127:Ze}),f(nn,[2,104]),{101:[1,277]},{101:[1,278]},{58:[1,279]},{68:[1,280]},{72:[1,281]},{9:282,20:wt,21:pe,23:mt},f(_e,[2,42]),{22:Lr,66:ti,67:Zr,86:Qr,102:jr,105:fi,107:283,108:244,109:di,110:cr,111:Yr,112:ei,113:Kr},f(Er,[2,128]),{26:St,52:nt,66:ue,67:Rt,91:dn,97:284,105:De,106:Ue,109:Ve,111:Je,112:en,115:100,117:98,122:Ae,123:qe,124:rn,125:je,126:xe,127:Ze},{26:St,52:nt,66:ue,67:Rt,91:dn,97:285,105:De,106:Ue,109:Ve,111:Je,112:en,115:100,117:98,122:Ae,123:qe,124:rn,125:je,126:xe,127:Ze},f(nn,[2,108]),f(nn,[2,114]),f(Qn,[2,60]),{22:An,24:fn,26:wn,38:Dn,39:286,42:gn,52:nt,66:ue,67:Rt,73:Yn,81:Ln,83:140,84:Pr,85:151,86:Wn,87:Xn,88:Kn,89:Mn,90:Un,91:Bn,92:vn,94:142,95:Vn,105:De,106:Ue,109:sn,111:Je,112:en,113:Pn,114:mn,115:148,122:Ae,123:qe,124:rn,125:je,126:xe,127:Ze},f(Qn,[2,68]),f(Ca,R,{17:287}),f(Ha,[2,126],{108:274,22:Lr,66:ti,67:Zr,86:Qr,102:jr,105:fi,109:di,110:cr,111:Yr,112:ei,113:Kr}),f(nn,[2,121],{115:100,117:178,22:[1,288],26:St,52:nt,66:ue,67:Rt,91:dn,105:De,106:Ue,109:Ve,111:Je,112:en,122:Ae,123:qe,124:rn,125:je,126:xe,127:Ze}),f(nn,[2,122],{115:100,117:178,22:[1,289],26:St,52:nt,66:ue,67:Rt,91:dn,105:De,106:Ue,109:Ve,111:Je,112:en,122:Ae,123:qe,124:rn,125:je,126:xe,127:Ze}),{22:An,24:fn,26:wn,38:Dn,41:[1,290],42:gn,52:nt,66:ue,67:Rt,73:Yn,81:Ln,83:201,85:151,86:Wn,87:Xn,88:Kn,89:Mn,90:Un,91:Bn,92:vn,94:142,95:Vn,105:De,106:Ue,109:sn,111:Je,112:en,113:Pn,114:mn,115:148,122:Ae,123:qe,124:rn,125:je,126:xe,127:Ze},{18:18,19:19,20:B,21:Y,22:G,23:Q,32:24,33:25,34:26,35:27,36:28,37:29,38:K,42:[1,291],43:31,44:gt,46:tt,48:Lt,50:35,51:45,52:at,54:46,66:vt,67:At,86:Zt,87:zt,88:xt,89:jt,90:Bt,91:lt,95:et,105:st,106:$,109:Dt,111:z,112:Kt,116:47,118:_t,119:ae,120:Ee,121:Pe,122:le,123:oe,124:he,125:be,126:Ne,127:de},{22:Lr,66:ti,67:Zr,86:Qr,96:292,102:jr,105:fi,107:243,108:244,109:di,110:cr,111:Yr,112:ei,113:Kr},{22:Lr,66:ti,67:Zr,86:Qr,96:293,102:jr,105:fi,107:243,108:244,109:di,110:cr,111:Yr,112:ei,113:Kr},f(Qn,[2,64]),f(_e,[2,41]),f(nn,[2,119],{106:Ti}),f(nn,[2,120],{106:Ti})],defaultActions:{2:[2,1],9:[2,5],10:[2,2],132:[2,7]},parseError:function(un,On){if(!On.recoverable){var we=new Error(un);throw we.hash=On,we}this.trace(un)},parse:function(un){var On=this,we=[0],Be=[],sr=[null],Ut=[],Ea=this.table,Gt="",zr=0,Zo=0,Qo=0,Ko=2,lo=1,zn=Ut.slice.call(arguments,1),Ar=Object.create(this.lexer),pi={yy:{}};for(var $r in this.yy)Object.prototype.hasOwnProperty.call(this.yy,$r)&&(pi.yy[$r]=this.yy[$r]);Ar.setInput(un,pi.yy),pi.yy.lexer=Ar,pi.yy.parser=this,Ar.yylloc===void 0&&(Ar.yylloc={});var Hr=Ar.yylloc;Ut.push(Hr);var Si=Ar.options&&Ar.options.ranges;function ji(){var Ie;return typeof(Ie=Be.pop()||Ar.lex()||lo)!="number"&&(Ie instanceof Array&&(Ie=(Be=Ie).pop()),Ie=On.symbols_[Ie]||Ie),Ie}typeof pi.yy.parseError=="function"?this.parseError=pi.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var Mr,ni,gi,pr,Xi,Yi,si,Ga,Ai,Ft={};;){if(gi=we[we.length-1],this.defaultActions[gi]?pr=this.defaultActions[gi]:(Mr==null&&(Mr=ji()),pr=Ea[gi]&&Ea[gi][Mr]),pr===void 0||!pr.length||!pr[0]){var $e="";for(Yi in Ai=[],Ea[gi])this.terminals_[Yi]&&Yi>Ko&&Ai.push("'"+this.terminals_[Yi]+"'");$e=Ar.showPosition?"Parse error on line "+(zr+1)+`:
`+Ar.showPosition()+`
Expecting `+Ai.join(", ")+", got '"+(this.terminals_[Mr]||Mr)+"'":"Parse error on line "+(zr+1)+": Unexpected "+(Mr==lo?"end of input":"'"+(this.terminals_[Mr]||Mr)+"'"),this.parseError($e,{text:Ar.match,token:this.terminals_[Mr]||Mr,line:Ar.yylineno,loc:Hr,expected:Ai})}if(pr[0]instanceof Array&&pr.length>1)throw new Error("Parse Error: multiple actions possible at state: "+gi+", token: "+Mr);switch(pr[0]){case 1:we.push(Mr),sr.push(Ar.yytext),Ut.push(Ar.yylloc),we.push(pr[1]),Mr=null,ni?(Mr=ni,ni=null):(Zo=Ar.yyleng,Gt=Ar.yytext,zr=Ar.yylineno,Hr=Ar.yylloc,Qo>0);break;case 2:if(si=this.productions_[pr[1]][1],Ft.$=sr[sr.length-si],Ft._$={first_line:Ut[Ut.length-(si||1)].first_line,last_line:Ut[Ut.length-1].last_line,first_column:Ut[Ut.length-(si||1)].first_column,last_column:Ut[Ut.length-1].last_column},Si&&(Ft._$.range=[Ut[Ut.length-(si||1)].range[0],Ut[Ut.length-1].range[1]]),(Xi=this.performAction.apply(Ft,[Gt,Zo,zr,pi.yy,pr[1],sr,Ut].concat(zn)))!==void 0)return Xi;si&&(we=we.slice(0,-1*si*2),sr=sr.slice(0,-1*si),Ut=Ut.slice(0,-1*si)),we.push(this.productions_[pr[1]][0]),sr.push(Ft.$),Ut.push(Ft._$),Ga=Ea[we[we.length-2]][we[we.length-1]],we.push(Ga);break;case 3:return!0}}return!0}},Va={EOF:1,parseError:function(un,On){if(!this.yy.parser)throw new Error(un);this.yy.parser.parseError(un,On)},setInput:function(un,On){return this.yy=On||this.yy||{},this._input=un,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 un=this._input[0];return this.yytext+=un,this.yyleng++,this.offset++,this.match+=un,this.matched+=un,un.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),un},unput:function(un){var On=un.length,we=un.split(/(?:\r\n?|\n)/g);this._input=un+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-On),this.offset-=On;var Be=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),we.length-1&&(this.yylineno-=we.length-1);var sr=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:we?(we.length===Be.length?this.yylloc.first_column:0)+Be[Be.length-we.length].length-we[0].length:this.yylloc.first_column-On},this.options.ranges&&(this.yylloc.range=[sr[0],sr[0]+this.yyleng-On]),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(un){this.unput(this.match.slice(un))},pastInput:function(){var un=this.matched.substr(0,this.matched.length-this.match.length);return(un.length>20?"...":"")+un.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var un=this.match;return un.length<20&&(un+=this._input.substr(0,20-un.length)),(un.substr(0,20)+(un.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var un=this.pastInput(),On=new Array(un.length+1).join("-");return un+this.upcomingInput()+`
`+On+"^"},test_match:function(un,On){var we,Be,sr;if(this.options.backtrack_lexer&&(sr={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&&(sr.yylloc.range=this.yylloc.range.slice(0))),(Be=un[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=Be.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:Be?Be[Be.length-1].length-Be[Be.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+un[0].length},this.yytext+=un[0],this.match+=un[0],this.matches=un,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(un[0].length),this.matched+=un[0],we=this.performAction.call(this,this.yy,this,On,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),we)return we;if(this._backtrack){for(var Ut in sr)this[Ut]=sr[Ut];return!1}return!1},next:function(){if(this.done)return this.EOF;var un,On,we,Be;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var sr=this._currentRules(),Ut=0;Ut<sr.length;Ut++)if((we=this._input.match(this.rules[sr[Ut]]))&&(!On||we[0].length>On[0].length)){if(On=we,Be=Ut,this.options.backtrack_lexer){if((un=this.test_match(we,sr[Ut]))!==!1)return un;if(this._backtrack){On=!1;continue}return!1}if(!this.options.flex)break}return On?(un=this.test_match(On,sr[Be]))!==!1&&un: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(un){this.conditionStack.push(un)},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(un){return(un=this.conditionStack.length-1-Math.abs(un||0))>=0?this.conditionStack[un]:"INITIAL"},pushState:function(un){this.begin(un)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(un,On,we,Be){switch(we){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 un.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 ra(){this.yy={}}return Wa.lexer=Va,ra.prototype=Wa,Wa.Parser=ra,new ra}();O.parser=v,O.Parser=v.Parser,O.parse=function(){return v.parse.apply(v,arguments)},O.main=function(f){f[1]||(console.log("Usage: "+f[0]+" FILE"),process.exit(1));var k=p(5354).readFileSync(p(6470).normalize(f[1]),"utf8");return O.parser.parse(k)},p.c[p.s]===S&&O.main(process.argv.slice(1))},9959:(S,O,p)=>{S=p.nmd(S);var v=function(){var f=function(lt,et,st,$){for(st=st||{},$=lt.length;$--;st[lt[$]]=et);return st},k=[1,3],y=[1,5],C=[7,9,11,12,13,14,15,16,17,18,19,20,22,24,25,27,34,39],A=[1,15],M=[1,16],R=[1,17],B=[1,18],Y=[1,19],G=[1,20],Q=[1,21],K=[1,22],gt=[1,23],tt=[1,24],Lt=[1,25],at=[1,26],vt=[1,28],At=[1,30],Zt=[1,33],zt=[5,7,9,11,12,13,14,15,16,17,18,19,20,22,24,25,27,34,39],xt={trace:function(){},yy:{},symbols_:{error:2,start:3,directive:4,gantt:5,document:6,EOF:7,line:8,SPACE:9,statement:10,NL:11,dateFormat:12,inclusiveEndDates:13,topAxis:14,axisFormat:15,excludes:16,includes:17,todayMarker:18,title:19,acc_title:20,acc_title_value:21,acc_descr:22,acc_descr_value:23,acc_descr_multiline_value:24,section:25,clickStatement:26,taskTxt:27,taskData:28,openDirective:29,typeDirective:30,closeDirective:31,":":32,argDirective:33,click:34,callbackname:35,callbackargs:36,href:37,clickStatementDebug:38,open_directive:39,type_directive:40,arg_directive:41,close_directive:42,$accept:0,$end:1},terminals_:{2:"error",5:"gantt",7:"EOF",9:"SPACE",11:"NL",12:"dateFormat",13:"inclusiveEndDates",14:"topAxis",15:"axisFormat",16:"excludes",17:"includes",18:"todayMarker",19:"title",20:"acc_title",21:"acc_title_value",22:"acc_descr",23:"acc_descr_value",24:"acc_descr_multiline_value",25:"section",27:"taskTxt",28:"taskData",32:":",34:"click",35:"callbackname",36:"callbackargs",37:"href",39:"open_directive",40:"type_directive",41:"arg_directive",42:"close_directive"},productions_:[0,[3,2],[3,3],[6,0],[6,2],[8,2],[8,1],[8,1],[8,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,2],[10,2],[10,1],[10,1],[10,1],[10,2],[10,1],[4,4],[4,6],[26,2],[26,3],[26,3],[26,4],[26,3],[26,4],[26,2],[38,2],[38,3],[38,3],[38,4],[38,3],[38,4],[38,2],[29,1],[30,1],[33,1],[31,1]],performAction:function(lt,et,st,$,Dt,z,Kt){var _t=z.length-1;switch(Dt){case 2:return z[_t-1];case 3:case 7:case 8:this.$=[];break;case 4:z[_t-1].push(z[_t]),this.$=z[_t-1];break;case 5:case 6:this.$=z[_t];break;case 9:$.setDateFormat(z[_t].substr(11)),this.$=z[_t].substr(11);break;case 10:$.enableInclusiveEndDates(),this.$=z[_t].substr(18);break;case 11:$.TopAxis(),this.$=z[_t].substr(8);break;case 12:$.setAxisFormat(z[_t].substr(11)),this.$=z[_t].substr(11);break;case 13:$.setExcludes(z[_t].substr(9)),this.$=z[_t].substr(9);break;case 14:$.setIncludes(z[_t].substr(9)),this.$=z[_t].substr(9);break;case 15:$.setTodayMarker(z[_t].substr(12)),this.$=z[_t].substr(12);break;case 16:$.setTitle(z[_t].substr(6)),this.$=z[_t].substr(6);break;case 17:this.$=z[_t].trim(),$.setTitle(this.$);break;case 18:case 19:this.$=z[_t].trim(),$.setAccDescription(this.$);break;case 20:$.addSection(z[_t].substr(8)),this.$=z[_t].substr(8);break;case 22:$.addTask(z[_t-1],z[_t]),this.$="task";break;case 26:this.$=z[_t-1],$.setClickEvent(z[_t-1],z[_t],null);break;case 27:this.$=z[_t-2],$.setClickEvent(z[_t-2],z[_t-1],z[_t]);break;case 28:this.$=z[_t-2],$.setClickEvent(z[_t-2],z[_t-1],null),$.setLink(z[_t-2],z[_t]);break;case 29:this.$=z[_t-3],$.setClickEvent(z[_t-3],z[_t-2],z[_t-1]),$.setLink(z[_t-3],z[_t]);break;case 30:this.$=z[_t-2],$.setClickEvent(z[_t-2],z[_t],null),$.setLink(z[_t-2],z[_t-1]);break;case 31:this.$=z[_t-3],$.setClickEvent(z[_t-3],z[_t-1],z[_t]),$.setLink(z[_t-3],z[_t-2]);break;case 32:this.$=z[_t-1],$.setLink(z[_t-1],z[_t]);break;case 33:case 39:this.$=z[_t-1]+" "+z[_t];break;case 34:case 35:case 37:this.$=z[_t-2]+" "+z[_t-1]+" "+z[_t];break;case 36:case 38:this.$=z[_t-3]+" "+z[_t-2]+" "+z[_t-1]+" "+z[_t];break;case 40:$.parseDirective("%%{","open_directive");break;case 41:$.parseDirective(z[_t],"type_directive");break;case 42:z[_t]=z[_t].trim().replace(/'/g,'"'),$.parseDirective(z[_t],"arg_directive");break;case 43:$.parseDirective("}%%","close_directive","gantt")}},table:[{3:1,4:2,5:k,29:4,39:y},{1:[3]},{3:6,4:2,5:k,29:4,39:y},f(C,[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:M,14:R,15:B,16:Y,17:G,18:Q,19:K,20:gt,22:tt,24:Lt,25:at,26:27,27:vt,29:4,34:At,39:y},{31:31,32:[1,32],42:Zt},f([32,42],[2,41]),f(C,[2,8],{1:[2,2]}),f(C,[2,4]),{4:29,10:34,12:A,13:M,14:R,15:B,16:Y,17:G,18:Q,19:K,20:gt,22:tt,24:Lt,25:at,26:27,27:vt,29:4,34:At,39:y},f(C,[2,6]),f(C,[2,7]),f(C,[2,9]),f(C,[2,10]),f(C,[2,11]),f(C,[2,12]),f(C,[2,13]),f(C,[2,14]),f(C,[2,15]),f(C,[2,16]),{21:[1,35]},{23:[1,36]},f(C,[2,19]),f(C,[2,20]),f(C,[2,21]),{28:[1,37]},f(C,[2,23]),{35:[1,38],37:[1,39]},{11:[1,40]},{33:41,41:[1,42]},{11:[2,43]},f(C,[2,5]),f(C,[2,17]),f(C,[2,18]),f(C,[2,22]),f(C,[2,26],{36:[1,43],37:[1,44]}),f(C,[2,32],{35:[1,45]}),f(zt,[2,24]),{31:46,42:Zt},{42:[2,42]},f(C,[2,27],{37:[1,47]}),f(C,[2,28]),f(C,[2,30],{36:[1,48]}),{11:[1,49]},f(C,[2,29]),f(C,[2,31]),f(zt,[2,25])],defaultActions:{5:[2,40],6:[2,1],33:[2,43],42:[2,42]},parseError:function(lt,et){if(!et.recoverable){var st=new Error(lt);throw st.hash=et,st}this.trace(lt)},parse:function(lt){var et=this,st=[0],$=[],Dt=[null],z=[],Kt=this.table,_t="",ae=0,Ee=0,Pe=0,le=2,oe=1,he=z.slice.call(arguments,1),be=Object.create(this.lexer),Ne={yy:{}};for(var de in this.yy)Object.prototype.hasOwnProperty.call(this.yy,de)&&(Ne.yy[de]=this.yy[de]);be.setInput(lt,Ne.yy),Ne.yy.lexer=be,Ne.yy.parser=this,be.yylloc===void 0&&(be.yylloc={});var Se=be.yylloc;z.push(Se);var te=be.options&&be.options.ranges;function _e(){var Ve;return typeof(Ve=$.pop()||be.lex()||oe)!="number"&&(Ve instanceof Array&&(Ve=($=Ve).pop()),Ve=et.symbols_[Ve]||Ve),Ve}typeof Ne.yy.parseError=="function"?this.parseError=Ne.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var wt,pe,mt,It,St,nt,ue,Rt,dn,De={};;){if(mt=st[st.length-1],this.defaultActions[mt]?It=this.defaultActions[mt]:(wt==null&&(wt=_e()),It=Kt[mt]&&Kt[mt][wt]),It===void 0||!It.length||!It[0]){var Ue="";for(nt in dn=[],Kt[mt])this.terminals_[nt]&&nt>le&&dn.push("'"+this.terminals_[nt]+"'");Ue=be.showPosition?"Parse error on line "+(ae+1)+`:
`+be.showPosition()+`
Expecting `+dn.join(", ")+", got '"+(this.terminals_[wt]||wt)+"'":"Parse error on line "+(ae+1)+": Unexpected "+(wt==oe?"end of input":"'"+(this.terminals_[wt]||wt)+"'"),this.parseError(Ue,{text:be.match,token:this.terminals_[wt]||wt,line:be.yylineno,loc:Se,expected:dn})}if(It[0]instanceof Array&&It.length>1)throw new Error("Parse Error: multiple actions possible at state: "+mt+", token: "+wt);switch(It[0]){case 1:st.push(wt),Dt.push(be.yytext),z.push(be.yylloc),st.push(It[1]),wt=null,pe?(wt=pe,pe=null):(Ee=be.yyleng,_t=be.yytext,ae=be.yylineno,Se=be.yylloc,Pe>0);break;case 2:if(ue=this.productions_[It[1]][1],De.$=Dt[Dt.length-ue],De._$={first_line:z[z.length-(ue||1)].first_line,last_line:z[z.length-1].last_line,first_column:z[z.length-(ue||1)].first_column,last_column:z[z.length-1].last_column},te&&(De._$.range=[z[z.length-(ue||1)].range[0],z[z.length-1].range[1]]),(St=this.performAction.apply(De,[_t,Ee,ae,Ne.yy,It[1],Dt,z].concat(he)))!==void 0)return St;ue&&(st=st.slice(0,-1*ue*2),Dt=Dt.slice(0,-1*ue),z=z.slice(0,-1*ue)),st.push(this.productions_[It[1]][0]),Dt.push(De.$),z.push(De._$),Rt=Kt[st[st.length-2]][st[st.length-1]],st.push(Rt);break;case 3:return!0}}return!0}},jt={EOF:1,parseError:function(lt,et){if(!this.yy.parser)throw new Error(lt);this.yy.parser.parseError(lt,et)},setInput:function(lt,et){return this.yy=et||this.yy||{},this._input=lt,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 lt=this._input[0];return this.yytext+=lt,this.yyleng++,this.offset++,this.match+=lt,this.matched+=lt,lt.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),lt},unput:function(lt){var et=lt.length,st=lt.split(/(?:\r\n?|\n)/g);this._input=lt+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-et),this.offset-=et;var $=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 Dt=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===$.length?this.yylloc.first_column:0)+$[$.length-st.length].length-st[0].length:this.yylloc.first_column-et},this.options.ranges&&(this.yylloc.range=[Dt[0],Dt[0]+this.yyleng-et]),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(lt){this.unput(this.match.slice(lt))},pastInput:function(){var lt=this.matched.substr(0,this.matched.length-this.match.length);return(lt.length>20?"...":"")+lt.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var lt=this.match;return lt.length<20&&(lt+=this._input.substr(0,20-lt.length)),(lt.substr(0,20)+(lt.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var lt=this.pastInput(),et=new Array(lt.length+1).join("-");return lt+this.upcomingInput()+`
`+et+"^"},test_match:function(lt,et){var st,$,Dt;if(this.options.backtrack_lexer&&(Dt={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&&(Dt.yylloc.range=this.yylloc.range.slice(0))),($=lt[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=$.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:$?$[$.length-1].length-$[$.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+lt[0].length},this.yytext+=lt[0],this.match+=lt[0],this.matches=lt,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(lt[0].length),this.matched+=lt[0],st=this.performAction.call(this,this.yy,this,et,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),st)return st;if(this._backtrack){for(var z in Dt)this[z]=Dt[z];return!1}return!1},next:function(){if(this.done)return this.EOF;var lt,et,st,$;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var Dt=this._currentRules(),z=0;z<Dt.length;z++)if((st=this._input.match(this.rules[Dt[z]]))&&(!et||st[0].length>et[0].length)){if(et=st,$=z,this.options.backtrack_lexer){if((lt=this.test_match(st,Dt[z]))!==!1)return lt;if(this._backtrack){et=!1;continue}return!1}if(!this.options.flex)break}return et?(lt=this.test_match(et,Dt[$]))!==!1&&lt: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(lt){this.conditionStack.push(lt)},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(lt){return(lt=this.conditionStack.length-1-Math.abs(lt||0))>=0?this.conditionStack[lt]:"INITIAL"},pushState:function(lt){this.begin(lt)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(lt,et,st,$){switch(st){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 Bt(){this.yy={}}return xt.lexer=jt,Bt.prototype=xt,xt.Parser=Bt,new Bt}();O.parser=v,O.Parser=v.Parser,O.parse=function(){return v.parse.apply(v,arguments)},O.main=function(f){f[1]||(console.log("Usage: "+f[0]+" FILE"),process.exit(1));var k=p(6878).readFileSync(p(6470).normalize(f[1]),"utf8");return O.parser.parse(k)},p.c[p.s]===S&&O.main(process.argv.slice(1))},2553:(S,O,p)=>{S=p.nmd(S);var v=function(){var f=function(jt,Bt,lt,et){for(lt=lt||{},et=jt.length;et--;lt[jt[et]]=Bt);return lt},k=[1,4],y=[1,7],C=[1,5],A=[1,9],M=[1,6],R=[2,6],B=[1,16],Y=[6,8,14,19,21,23,24,26,28,31,34,47,51],G=[8,14,19,21,23,24,26,28,31,34],Q=[8,13,14,19,21,23,24,26,28,31,34],K=[1,26],gt=[6,8,14,47,51],tt=[8,14,51],Lt=[1,61],at=[1,62],vt=[1,63],At=[8,14,32,38,39,51],Zt={trace:function(){},yy:{},symbols_:{error:2,start:3,eol:4,directive:5,GG:6,document:7,EOF:8,":":9,DIR:10,options:11,body:12,OPT:13,NL:14,line:15,statement:16,commitStatement:17,mergeStatement:18,acc_title:19,acc_title_value:20,acc_descr:21,acc_descr_value:22,acc_descr_multiline_value:23,section:24,branchStatement:25,CHECKOUT:26,ID:27,BRANCH:28,ORDER:29,NUM:30,MERGE:31,COMMIT_TAG:32,STR:33,COMMIT:34,commit_arg:35,COMMIT_TYPE:36,commitType:37,COMMIT_ID:38,COMMIT_MSG:39,NORMAL:40,REVERSE:41,HIGHLIGHT:42,openDirective:43,typeDirective:44,closeDirective:45,argDirective:46,open_directive:47,type_directive:48,arg_directive:49,close_directive:50,";":51,$accept:0,$end:1},terminals_:{2:"error",6:"GG",8:"EOF",9:":",10:"DIR",13:"OPT",14:"NL",19:"acc_title",20:"acc_title_value",21:"acc_descr",22:"acc_descr_value",23:"acc_descr_multiline_value",24:"section",26:"CHECKOUT",27:"ID",28:"BRANCH",29:"ORDER",30:"NUM",31:"MERGE",32:"COMMIT_TAG",33:"STR",34:"COMMIT",36:"COMMIT_TYPE",38:"COMMIT_ID",39:"COMMIT_MSG",40:"NORMAL",41:"REVERSE",42:"HIGHLIGHT",47:"open_directive",48:"type_directive",49:"arg_directive",50:"close_directive",51:";"},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,2],[16,2],[16,1],[16,1],[16,1],[16,2],[25,2],[25,4],[18,2],[18,4],[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],[35,0],[35,1],[37,1],[37,1],[37,1],[5,3],[5,5],[43,1],[44,1],[46,1],[45,1],[4,1],[4,1],[4,1]],performAction:function(jt,Bt,lt,et,st,$,Dt){var z=$.length-1;switch(st){case 3:return $[z];case 4:return $[z-1];case 5:return et.setDirection($[z-3]),$[z-1];case 7:et.setOptions($[z-1]),this.$=$[z];break;case 8:$[z-1]+=$[z],this.$=$[z-1];break;case 10:this.$=[];break;case 11:$[z-1].push($[z]),this.$=$[z-1];break;case 12:this.$=$[z-1];break;case 16:this.$=$[z].trim(),et.setTitle(this.$);break;case 17:case 18:this.$=$[z].trim(),et.setAccDescription(this.$);break;case 19:et.addSection($[z].substr(8)),this.$=$[z].substr(8);break;case 21:et.checkout($[z]);break;case 22:et.branch($[z]);break;case 23:et.branch($[z-2],$[z]);break;case 24:et.merge($[z]);break;case 25:et.merge($[z-2],$[z]);break;case 26:et.commit($[z]);break;case 27:et.commit("","",et.commitType.NORMAL,$[z]);break;case 28:et.commit("","",$[z],"");break;case 29:et.commit("","",$[z],$[z-2]);break;case 30:et.commit("","",$[z-2],$[z]);break;case 31:et.commit("",$[z],et.commitType.NORMAL,"");break;case 32:et.commit("",$[z-2],et.commitType.NORMAL,$[z]);break;case 33:et.commit("",$[z],et.commitType.NORMAL,$[z-2]);break;case 34:et.commit("",$[z-2],$[z],"");break;case 35:et.commit("",$[z],$[z-2],"");break;case 36:et.commit("",$[z-4],$[z-2],$[z]);break;case 37:et.commit("",$[z-4],$[z],$[z-2]);break;case 38:et.commit("",$[z-2],$[z-4],$[z]);break;case 39:et.commit("",$[z],$[z-4],$[z-2]);break;case 40:et.commit("",$[z],$[z-2],$[z-4]);break;case 41:et.commit("",$[z-2],$[z],$[z-4]);break;case 42:et.commit($[z],"",et.commitType.NORMAL,"");break;case 43:et.commit($[z],"",et.commitType.NORMAL,$[z-2]);break;case 44:et.commit($[z-2],"",et.commitType.NORMAL,$[z]);break;case 45:et.commit($[z-2],"",$[z],"");break;case 46:et.commit($[z],"",$[z-2],"");break;case 47:et.commit($[z],$[z-2],et.commitType.NORMAL,"");break;case 48:et.commit($[z-2],$[z],et.commitType.NORMAL,"");break;case 49:et.commit($[z-4],"",$[z-2],$[z]);break;case 50:et.commit($[z-4],"",$[z],$[z-2]);break;case 51:et.commit($[z-2],"",$[z-4],$[z]);break;case 52:et.commit($[z],"",$[z-4],$[z-2]);break;case 53:et.commit($[z],"",$[z-2],$[z-4]);break;case 54:et.commit($[z-2],"",$[z],$[z-4]);break;case 55:et.commit($[z-4],$[z],$[z-2],"");break;case 56:et.commit($[z-4],$[z-2],$[z],"");break;case 57:et.commit($[z-2],$[z],$[z-4],"");break;case 58:et.commit($[z],$[z-2],$[z-4],"");break;case 59:et.commit($[z],$[z-4],$[z-2],"");break;case 60:et.commit($[z-2],$[z-4],$[z],"");break;case 61:et.commit($[z-4],$[z],et.commitType.NORMAL,$[z-2]);break;case 62:et.commit($[z-4],$[z-2],et.commitType.NORMAL,$[z]);break;case 63:et.commit($[z-2],$[z],et.commitType.NORMAL,$[z-4]);break;case 64:et.commit($[z],$[z-2],et.commitType.NORMAL,$[z-4]);break;case 65:et.commit($[z],$[z-4],et.commitType.NORMAL,$[z-2]);break;case 66:et.commit($[z-2],$[z-4],et.commitType.NORMAL,$[z]);break;case 67:et.commit($[z-6],$[z-4],$[z-2],$[z]);break;case 68:et.commit($[z-6],$[z-4],$[z],$[z-2]);break;case 69:et.commit($[z-6],$[z-2],$[z-4],$[z]);break;case 70:et.commit($[z-6],$[z],$[z-4],$[z-2]);break;case 71:et.commit($[z-6],$[z-2],$[z],$[z-4]);break;case 72:et.commit($[z-6],$[z],$[z-2],$[z-4]);break;case 73:et.commit($[z-4],$[z-6],$[z-2],$[z]);break;case 74:et.commit($[z-4],$[z-6],$[z],$[z-2]);break;case 75:et.commit($[z-2],$[z-6],$[z-4],$[z]);break;case 76:et.commit($[z],$[z-6],$[z-4],$[z-2]);break;case 77:et.commit($[z-2],$[z-6],$[z],$[z-4]);break;case 78:et.commit($[z],$[z-6],$[z-2],$[z-4]);break;case 79:et.commit($[z],$[z-4],$[z-2],$[z-6]);break;case 80:et.commit($[z-2],$[z-4],$[z],$[z-6]);break;case 81:et.commit($[z],$[z-2],$[z-4],$[z-6]);break;case 82:et.commit($[z-2],$[z],$[z-4],$[z-6]);break;case 83:et.commit($[z-4],$[z-2],$[z],$[z-6]);break;case 84:et.commit($[z-4],$[z],$[z-2],$[z-6]);break;case 85:et.commit($[z-2],$[z-4],$[z-6],$[z]);break;case 86:et.commit($[z],$[z-4],$[z-6],$[z-2]);break;case 87:et.commit($[z-2],$[z],$[z-6],$[z-4]);break;case 88:et.commit($[z],$[z-2],$[z-6],$[z-4]);break;case 89:et.commit($[z-4],$[z-2],$[z-6],$[z]);break;case 90:et.commit($[z-4],$[z],$[z-6],$[z-2]);break;case 91:this.$="";break;case 92:this.$=$[z];break;case 93:this.$=et.commitType.NORMAL;break;case 94:this.$=et.commitType.REVERSE;break;case 95:this.$=et.commitType.HIGHLIGHT;break;case 98:et.parseDirective("%%{","open_directive");break;case 99:et.parseDirective($[z],"type_directive");break;case 100:$[z]=$[z].trim().replace(/'/g,'"'),et.parseDirective($[z],"arg_directive");break;case 101:et.parseDirective("}%%","close_directive","gitGraph")}},table:[{3:1,4:2,5:3,6:k,8:y,14:C,43:8,47:A,51:M},{1:[3]},{3:10,4:2,5:3,6:k,8:y,14:C,43:8,47:A,51:M},{3:11,4:2,5:3,6:k,8:y,14:C,43:8,47:A,51:M},{7:12,8:R,9:[1,13],10:[1,14],11:15,14:B},f(Y,[2,102]),f(Y,[2,103]),f(Y,[2,104]),{44:17,48:[1,18]},{48:[2,98]},{1:[2,1]},{1:[2,2]},{8:[1,19]},{7:20,8:R,11:15,14:B},{9:[1,21]},f(G,[2,10],{12:22,13:[1,23]}),f(Q,[2,9]),{9:[1,25],45:24,50:K},f([9,50],[2,99]),{1:[2,3]},{8:[1,27]},{7:28,8:R,11:15,14:B},{8:[2,7],14:[1,31],15:29,16:30,17:32,18:33,19:[1,34],21:[1,35],23:[1,36],24:[1,37],25:38,26:[1,39],28:[1,42],31:[1,41],34:[1,40]},f(Q,[2,8]),f(gt,[2,96]),{46:43,49:[1,44]},f(gt,[2,101]),{1:[2,4]},{8:[1,45]},f(G,[2,11]),{4:46,8:y,14:C,51:M},f(G,[2,13]),f(tt,[2,14]),f(tt,[2,15]),{20:[1,47]},{22:[1,48]},f(tt,[2,18]),f(tt,[2,19]),f(tt,[2,20]),{27:[1,49]},f(tt,[2,91],{35:50,32:[1,51],33:[1,55],36:[1,52],38:[1,53],39:[1,54]}),{27:[1,56]},{27:[1,57]},{45:58,50:K},{50:[2,100]},{1:[2,5]},f(G,[2,12]),f(tt,[2,16]),f(tt,[2,17]),f(tt,[2,21]),f(tt,[2,26]),{33:[1,59]},{37:60,40:Lt,41:at,42:vt},{33:[1,64]},{33:[1,65]},f(tt,[2,92]),f(tt,[2,24],{32:[1,66]}),f(tt,[2,22],{29:[1,67]}),f(gt,[2,97]),f(tt,[2,27],{36:[1,68],38:[1,69],39:[1,70]}),f(tt,[2,28],{32:[1,71],38:[1,72],39:[1,73]}),f(At,[2,93]),f(At,[2,94]),f(At,[2,95]),f(tt,[2,31],{32:[1,74],36:[1,75],39:[1,76]}),f(tt,[2,42],{32:[1,77],36:[1,78],38:[1,79]}),{33:[1,80]},{30:[1,81]},{37:82,40:Lt,41:at,42:vt},{33:[1,83]},{33:[1,84]},{33:[1,85]},{33:[1,86]},{33:[1,87]},{33:[1,88]},{37:89,40:Lt,41:at,42:vt},{33:[1,90]},{33:[1,91]},{37:92,40:Lt,41:at,42:vt},{33:[1,93]},f(tt,[2,25]),f(tt,[2,23]),f(tt,[2,29],{38:[1,94],39:[1,95]}),f(tt,[2,33],{36:[1,96],39:[1,97]}),f(tt,[2,43],{36:[1,98],38:[1,99]}),f(tt,[2,30],{38:[1,100],39:[1,101]}),f(tt,[2,35],{32:[1,102],39:[1,103]}),f(tt,[2,46],{32:[1,104],38:[1,105]}),f(tt,[2,32],{36:[1,106],39:[1,107]}),f(tt,[2,34],{32:[1,108],39:[1,109]}),f(tt,[2,47],{32:[1,111],36:[1,110]}),f(tt,[2,44],{36:[1,112],38:[1,113]}),f(tt,[2,45],{32:[1,114],38:[1,115]}),f(tt,[2,48],{32:[1,117],36:[1,116]}),{33:[1,118]},{33:[1,119]},{37:120,40:Lt,41:at,42:vt},{33:[1,121]},{37:122,40:Lt,41:at,42:vt},{33:[1,123]},{33:[1,124]},{33:[1,125]},{33:[1,126]},{33:[1,127]},{33:[1,128]},{33:[1,129]},{37:130,40:Lt,41:at,42:vt},{33:[1,131]},{33:[1,132]},{33:[1,133]},{37:134,40:Lt,41:at,42:vt},{33:[1,135]},{37:136,40:Lt,41:at,42:vt},{33:[1,137]},{33:[1,138]},{33:[1,139]},{37:140,40:Lt,41:at,42:vt},{33:[1,141]},f(tt,[2,40],{39:[1,142]}),f(tt,[2,53],{38:[1,143]}),f(tt,[2,41],{39:[1,144]}),f(tt,[2,64],{36:[1,145]}),f(tt,[2,54],{38:[1,146]}),f(tt,[2,63],{36:[1,147]}),f(tt,[2,39],{39:[1,148]}),f(tt,[2,52],{38:[1,149]}),f(tt,[2,38],{39:[1,150]}),f(tt,[2,58],{32:[1,151]}),f(tt,[2,51],{38:[1,152]}),f(tt,[2,57],{32:[1,153]}),f(tt,[2,37],{39:[1,154]}),f(tt,[2,65],{36:[1,155]}),f(tt,[2,36],{39:[1,156]}),f(tt,[2,59],{32:[1,157]}),f(tt,[2,60],{32:[1,158]}),f(tt,[2,66],{36:[1,159]}),f(tt,[2,50],{38:[1,160]}),f(tt,[2,61],{36:[1,161]}),f(tt,[2,49],{38:[1,162]}),f(tt,[2,55],{32:[1,163]}),f(tt,[2,56],{32:[1,164]}),f(tt,[2,62],{36:[1,165]}),{33:[1,166]},{33:[1,167]},{33:[1,168]},{37:169,40:Lt,41:at,42:vt},{33:[1,170]},{37:171,40:Lt,41:at,42:vt},{33:[1,172]},{33:[1,173]},{33:[1,174]},{33:[1,175]},{33:[1,176]},{33:[1,177]},{33:[1,178]},{37:179,40:Lt,41:at,42:vt},{33:[1,180]},{33:[1,181]},{33:[1,182]},{37:183,40:Lt,41:at,42:vt},{33:[1,184]},{37:185,40:Lt,41:at,42:vt},{33:[1,186]},{33:[1,187]},{33:[1,188]},{37:189,40:Lt,41:at,42:vt},f(tt,[2,81]),f(tt,[2,82]),f(tt,[2,79]),f(tt,[2,80]),f(tt,[2,84]),f(tt,[2,83]),f(tt,[2,88]),f(tt,[2,87]),f(tt,[2,86]),f(tt,[2,85]),f(tt,[2,90]),f(tt,[2,89]),f(tt,[2,78]),f(tt,[2,77]),f(tt,[2,76]),f(tt,[2,75]),f(tt,[2,73]),f(tt,[2,74]),f(tt,[2,72]),f(tt,[2,71]),f(tt,[2,70]),f(tt,[2,69]),f(tt,[2,67]),f(tt,[2,68])],defaultActions:{9:[2,98],10:[2,1],11:[2,2],19:[2,3],27:[2,4],44:[2,100],45:[2,5]},parseError:function(jt,Bt){if(!Bt.recoverable){var lt=new Error(jt);throw lt.hash=Bt,lt}this.trace(jt)},parse:function(jt){var Bt=this,lt=[0],et=[],st=[null],$=[],Dt=this.table,z="",Kt=0,_t=0,ae=0,Ee=2,Pe=1,le=$.slice.call(arguments,1),oe=Object.create(this.lexer),he={yy:{}};for(var be in this.yy)Object.prototype.hasOwnProperty.call(this.yy,be)&&(he.yy[be]=this.yy[be]);oe.setInput(jt,he.yy),he.yy.lexer=oe,he.yy.parser=this,oe.yylloc===void 0&&(oe.yylloc={});var Ne=oe.yylloc;$.push(Ne);var de=oe.options&&oe.options.ranges;function Se(){var De;return typeof(De=et.pop()||oe.lex()||Pe)!="number"&&(De instanceof Array&&(De=(et=De).pop()),De=Bt.symbols_[De]||De),De}typeof he.yy.parseError=="function"?this.parseError=he.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var te,_e,wt,pe,mt,It,St,nt,ue,Rt={};;){if(wt=lt[lt.length-1],this.defaultActions[wt]?pe=this.defaultActions[wt]:(te==null&&(te=Se()),pe=Dt[wt]&&Dt[wt][te]),pe===void 0||!pe.length||!pe[0]){var dn="";for(It in ue=[],Dt[wt])this.terminals_[It]&&It>Ee&&ue.push("'"+this.terminals_[It]+"'");dn=oe.showPosition?"Parse error on line "+(Kt+1)+`:
`+oe.showPosition()+`
Expecting `+ue.join(", ")+", got '"+(this.terminals_[te]||te)+"'":"Parse error on line "+(Kt+1)+": Unexpected "+(te==Pe?"end of input":"'"+(this.terminals_[te]||te)+"'"),this.parseError(dn,{text:oe.match,token:this.terminals_[te]||te,line:oe.yylineno,loc:Ne,expected:ue})}if(pe[0]instanceof Array&&pe.length>1)throw new Error("Parse Error: multiple actions possible at state: "+wt+", token: "+te);switch(pe[0]){case 1:lt.push(te),st.push(oe.yytext),$.push(oe.yylloc),lt.push(pe[1]),te=null,_e?(te=_e,_e=null):(_t=oe.yyleng,z=oe.yytext,Kt=oe.yylineno,Ne=oe.yylloc,ae>0);break;case 2:if(St=this.productions_[pe[1]][1],Rt.$=st[st.length-St],Rt._$={first_line:$[$.length-(St||1)].first_line,last_line:$[$.length-1].last_line,first_column:$[$.length-(St||1)].first_column,last_column:$[$.length-1].last_column},de&&(Rt._$.range=[$[$.length-(St||1)].range[0],$[$.length-1].range[1]]),(mt=this.performAction.apply(Rt,[z,_t,Kt,he.yy,pe[1],st,$].concat(le)))!==void 0)return mt;St&&(lt=lt.slice(0,-1*St*2),st=st.slice(0,-1*St),$=$.slice(0,-1*St)),lt.push(this.productions_[pe[1]][0]),st.push(Rt.$),$.push(Rt._$),nt=Dt[lt[lt.length-2]][lt[lt.length-1]],lt.push(nt);break;case 3:return!0}}return!0}},zt={EOF:1,parseError:function(jt,Bt){if(!this.yy.parser)throw new Error(jt);this.yy.parser.parseError(jt,Bt)},setInput:function(jt,Bt){return this.yy=Bt||this.yy||{},this._input=jt,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 jt=this._input[0];return this.yytext+=jt,this.yyleng++,this.offset++,this.match+=jt,this.matched+=jt,jt.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),jt},unput:function(jt){var Bt=jt.length,lt=jt.split(/(?:\r\n?|\n)/g);this._input=jt+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-Bt),this.offset-=Bt;var et=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),lt.length-1&&(this.yylineno-=lt.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:lt?(lt.length===et.length?this.yylloc.first_column:0)+et[et.length-lt.length].length-lt[0].length:this.yylloc.first_column-Bt},this.options.ranges&&(this.yylloc.range=[st[0],st[0]+this.yyleng-Bt]),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(jt){this.unput(this.match.slice(jt))},pastInput:function(){var jt=this.matched.substr(0,this.matched.length-this.match.length);return(jt.length>20?"...":"")+jt.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var jt=this.match;return jt.length<20&&(jt+=this._input.substr(0,20-jt.length)),(jt.substr(0,20)+(jt.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var jt=this.pastInput(),Bt=new Array(jt.length+1).join("-");return jt+this.upcomingInput()+`
`+Bt+"^"},test_match:function(jt,Bt){var lt,et,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))),(et=jt[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=et.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:et?et[et.length-1].length-et[et.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+jt[0].length},this.yytext+=jt[0],this.match+=jt[0],this.matches=jt,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(jt[0].length),this.matched+=jt[0],lt=this.performAction.call(this,this.yy,this,Bt,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),lt)return lt;if(this._backtrack){for(var $ in st)this[$]=st[$];return!1}return!1},next:function(){if(this.done)return this.EOF;var jt,Bt,lt,et;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var st=this._currentRules(),$=0;$<st.length;$++)if((lt=this._input.match(this.rules[st[$]]))&&(!Bt||lt[0].length>Bt[0].length)){if(Bt=lt,et=$,this.options.backtrack_lexer){if((jt=this.test_match(lt,st[$]))!==!1)return jt;if(this._backtrack){Bt=!1;continue}return!1}if(!this.options.flex)break}return Bt?(jt=this.test_match(Bt,st[et]))!==!1&&jt: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(jt){this.conditionStack.push(jt)},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(jt){return(jt=this.conditionStack.length-1-Math.abs(jt||0))>=0?this.conditionStack[jt]:"INITIAL"},pushState:function(jt){this.begin(jt)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(jt,Bt,lt,et){switch(lt){case 0:return this.begin("open_directive"),47;case 1:return this.begin("type_directive"),48;case 2:return this.popState(),this.begin("arg_directive"),9;case 3:return this.popState(),this.popState(),50;case 4:return 49;case 5:return this.begin("acc_title"),19;case 6:return this.popState(),"acc_title_value";case 7:return this.begin("acc_descr"),21;case 8:return this.popState(),"acc_descr_value";case 9:this.begin("acc_descr_multiline");break;case 10:case 34:case 37: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 34;case 18:return 38;case 19:return 36;case 20:return 39;case 21:return 40;case 22:return 41;case 23:return 42;case 24:return 32;case 25:return 28;case 26:return 29;case 27:return 31;case 28:return 26;case 29:case 30:return 10;case 31:return 9;case 32:return"CARET";case 33:this.begin("options");break;case 35:return 13;case 36:this.begin("string");break;case 38:return 33;case 39:return 30;case 40:return 27;case 41: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,/^(?: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:[34,35],inclusive:!1},string:{rules:[37,38],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,36,39,40,41],inclusive:!0}}};function xt(){this.yy={}}return Zt.lexer=zt,xt.prototype=Zt,Zt.Parser=xt,new xt}();O.parser=v,O.Parser=v.Parser,O.parse=function(){return v.parse.apply(v,arguments)},O.main=function(f){f[1]||(console.log("Usage: "+f[0]+" FILE"),process.exit(1));var k=p(8183).readFileSync(p(6470).normalize(f[1]),"utf8");return O.parser.parse(k)},p.c[p.s]===S&&O.main(process.argv.slice(1))},6765:(S,O,p)=>{S=p.nmd(S);var v=function(){var f=function(M,R,B,Y){for(B=B||{},Y=M.length;Y--;B[M[Y]]=R);return B},k=[6,9,10],y={trace:function(){},yy:{},symbols_:{error:2,start:3,info:4,document:5,EOF:6,line:7,statement:8,NL:9,showInfo:10,$accept:0,$end:1},terminals_:{2:"error",4:"info",6:"EOF",9:"NL",10:"showInfo"},productions_:[0,[3,3],[5,0],[5,2],[7,1],[7,1],[8,1]],performAction:function(M,R,B,Y,G,Q,K){switch(Q.length,G){case 1:return Y;case 4:break;case 6:Y.setInfo(!0)}},table:[{3:1,4:[1,2]},{1:[3]},f(k,[2,2],{5:3}),{6:[1,4],7:5,8:6,9:[1,7],10:[1,8]},{1:[2,1]},f(k,[2,3]),f(k,[2,4]),f(k,[2,5]),f(k,[2,6])],defaultActions:{4:[2,1]},parseError:function(M,R){if(!R.recoverable){var B=new Error(M);throw B.hash=R,B}this.trace(M)},parse:function(M){var R=this,B=[0],Y=[],G=[null],Q=[],K=this.table,gt="",tt=0,Lt=0,at=0,vt=2,At=1,Zt=Q.slice.call(arguments,1),zt=Object.create(this.lexer),xt={yy:{}};for(var jt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,jt)&&(xt.yy[jt]=this.yy[jt]);zt.setInput(M,xt.yy),xt.yy.lexer=zt,xt.yy.parser=this,zt.yylloc===void 0&&(zt.yylloc={});var Bt=zt.yylloc;Q.push(Bt);var lt=zt.options&&zt.options.ranges;function et(){var he;return typeof(he=Y.pop()||zt.lex()||At)!="number"&&(he instanceof Array&&(he=(Y=he).pop()),he=R.symbols_[he]||he),he}typeof xt.yy.parseError=="function"?this.parseError=xt.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var st,$,Dt,z,Kt,_t,ae,Ee,Pe,le={};;){if(Dt=B[B.length-1],this.defaultActions[Dt]?z=this.defaultActions[Dt]:(st==null&&(st=et()),z=K[Dt]&&K[Dt][st]),z===void 0||!z.length||!z[0]){var oe="";for(_t in Pe=[],K[Dt])this.terminals_[_t]&&_t>vt&&Pe.push("'"+this.terminals_[_t]+"'");oe=zt.showPosition?"Parse error on line "+(tt+1)+`:
`+zt.showPosition()+`
Expecting `+Pe.join(", ")+", got '"+(this.terminals_[st]||st)+"'":"Parse error on line "+(tt+1)+": Unexpected "+(st==At?"end of input":"'"+(this.terminals_[st]||st)+"'"),this.parseError(oe,{text:zt.match,token:this.terminals_[st]||st,line:zt.yylineno,loc:Bt,expected:Pe})}if(z[0]instanceof Array&&z.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Dt+", token: "+st);switch(z[0]){case 1:B.push(st),G.push(zt.yytext),Q.push(zt.yylloc),B.push(z[1]),st=null,$?(st=$,$=null):(Lt=zt.yyleng,gt=zt.yytext,tt=zt.yylineno,Bt=zt.yylloc,at>0);break;case 2:if(ae=this.productions_[z[1]][1],le.$=G[G.length-ae],le._$={first_line:Q[Q.length-(ae||1)].first_line,last_line:Q[Q.length-1].last_line,first_column:Q[Q.length-(ae||1)].first_column,last_column:Q[Q.length-1].last_column},lt&&(le._$.range=[Q[Q.length-(ae||1)].range[0],Q[Q.length-1].range[1]]),(Kt=this.performAction.apply(le,[gt,Lt,tt,xt.yy,z[1],G,Q].concat(Zt)))!==void 0)return Kt;ae&&(B=B.slice(0,-1*ae*2),G=G.slice(0,-1*ae),Q=Q.slice(0,-1*ae)),B.push(this.productions_[z[1]][0]),G.push(le.$),Q.push(le._$),Ee=K[B[B.length-2]][B[B.length-1]],B.push(Ee);break;case 3:return!0}}return!0}},C={EOF:1,parseError:function(M,R){if(!this.yy.parser)throw new Error(M);this.yy.parser.parseError(M,R)},setInput:function(M,R){return this.yy=R||this.yy||{},this._input=M,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 M=this._input[0];return this.yytext+=M,this.yyleng++,this.offset++,this.match+=M,this.matched+=M,M.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),M},unput:function(M){var R=M.length,B=M.split(/(?:\r\n?|\n)/g);this._input=M+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-R),this.offset-=R;var Y=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),B.length-1&&(this.yylineno-=B.length-1);var G=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:B?(B.length===Y.length?this.yylloc.first_column:0)+Y[Y.length-B.length].length-B[0].length:this.yylloc.first_column-R},this.options.ranges&&(this.yylloc.range=[G[0],G[0]+this.yyleng-R]),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(M){this.unput(this.match.slice(M))},pastInput:function(){var M=this.matched.substr(0,this.matched.length-this.match.length);return(M.length>20?"...":"")+M.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var M=this.match;return M.length<20&&(M+=this._input.substr(0,20-M.length)),(M.substr(0,20)+(M.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var M=this.pastInput(),R=new Array(M.length+1).join("-");return M+this.upcomingInput()+`
`+R+"^"},test_match:function(M,R){var B,Y,G;if(this.options.backtrack_lexer&&(G={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(G.yylloc.range=this.yylloc.range.slice(0))),(Y=M[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=Y.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:Y?Y[Y.length-1].length-Y[Y.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+M[0].length},this.yytext+=M[0],this.match+=M[0],this.matches=M,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(M[0].length),this.matched+=M[0],B=this.performAction.call(this,this.yy,this,R,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),B)return B;if(this._backtrack){for(var Q in G)this[Q]=G[Q];return!1}return!1},next:function(){if(this.done)return this.EOF;var M,R,B,Y;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var G=this._currentRules(),Q=0;Q<G.length;Q++)if((B=this._input.match(this.rules[G[Q]]))&&(!R||B[0].length>R[0].length)){if(R=B,Y=Q,this.options.backtrack_lexer){if((M=this.test_match(B,G[Q]))!==!1)return M;if(this._backtrack){R=!1;continue}return!1}if(!this.options.flex)break}return R?(M=this.test_match(R,G[Y]))!==!1&&M: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(M){this.conditionStack.push(M)},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(M){return(M=this.conditionStack.length-1-Math.abs(M||0))>=0?this.conditionStack[M]:"INITIAL"},pushState:function(M){this.begin(M)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(M,R,B,Y){switch(B){case 0:return 4;case 1:return 9;case 2:return"space";case 3:return 10;case 4:return 6;case 5:return"TXT"}},rules:[/^(?:info\b)/i,/^(?:[\s\n\r]+)/i,/^(?:[\s]+)/i,/^(?:showInfo\b)/i,/^(?:$)/i,/^(?:.)/i],conditions:{INITIAL:{rules:[0,1,2,3,4,5],inclusive:!0}}};function A(){this.yy={}}return y.lexer=C,A.prototype=y,y.Parser=A,new A}();O.parser=v,O.Parser=v.Parser,O.parse=function(){return v.parse.apply(v,arguments)},O.main=function(f){f[1]||(console.log("Usage: "+f[0]+" FILE"),process.exit(1));var k=p(1428).readFileSync(p(6470).normalize(f[1]),"utf8");return O.parser.parse(k)},p.c[p.s]===S&&O.main(process.argv.slice(1))},7062:(S,O,p)=>{S=p.nmd(S);var v=function(){var f=function(Bt,lt,et,st){for(et=et||{},st=Bt.length;st--;et[Bt[st]]=lt);return et},k=[1,4],y=[1,5],C=[1,6],A=[1,7],M=[1,9],R=[1,11,13,15,17,19,20,26,27,28,29],B=[2,5],Y=[1,6,11,13,15,17,19,20,26,27,28,29],G=[26,27,28],Q=[2,8],K=[1,18],gt=[1,19],tt=[1,20],Lt=[1,21],at=[1,22],vt=[1,23],At=[1,28],Zt=[6,26,27,28,29],zt={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(Bt,lt,et,st,$,Dt,z){var Kt=Dt.length-1;switch($){case 4:st.setShowData(!0);break;case 7:this.$=Dt[Kt-1];break;case 9:st.addSection(Dt[Kt-1],st.cleanupValue(Dt[Kt]));break;case 10:this.$=Dt[Kt].trim(),st.setPieTitle(this.$);break;case 11:this.$=Dt[Kt].trim(),st.setTitle(this.$);break;case 12:case 13:this.$=Dt[Kt].trim(),st.setAccDescription(this.$);break;case 14:st.addSection(Dt[Kt].substr(8)),this.$=Dt[Kt].substr(8);break;case 21:st.parseDirective("%%{","open_directive");break;case 22:st.parseDirective(Dt[Kt],"type_directive");break;case 23:Dt[Kt]=Dt[Kt].trim().replace(/'/g,'"'),st.parseDirective(Dt[Kt],"arg_directive");break;case 24:st.parseDirective("}%%","close_directive","pie")}},table:[{3:1,4:2,5:3,6:k,21:8,26:y,27:C,28:A,29:M},{1:[3]},{3:10,4:2,5:3,6:k,21:8,26:y,27:C,28:A,29:M},{3:11,4:2,5:3,6:k,21:8,26:y,27:C,28:A,29:M},f(R,B,{7:12,8:[1,13]}),f(Y,[2,18]),f(Y,[2,19]),f(Y,[2,20]),{22:14,30:[1,15]},{30:[2,21]},{1:[2,1]},{1:[2,2]},f(G,Q,{21:8,9:16,10:17,5:24,1:[2,3],11:K,13:gt,15:tt,17:Lt,19:at,20:vt,29:M}),f(R,B,{7:25}),{23:26,24:[1,27],32:At},f([24,32],[2,22]),f(R,[2,6]),{4:29,26:y,27:C,28:A},{12:[1,30]},{14:[1,31]},{16:[1,32]},{18:[1,33]},f(G,[2,13]),f(G,[2,14]),f(G,[2,15]),f(G,Q,{21:8,9:16,10:17,5:24,1:[2,4],11:K,13:gt,15:tt,17:Lt,19:at,20:vt,29:M}),f(Zt,[2,16]),{25:34,31:[1,35]},f(Zt,[2,24]),f(R,[2,7]),f(G,[2,9]),f(G,[2,10]),f(G,[2,11]),f(G,[2,12]),{23:36,32:At},{32:[2,23]},f(Zt,[2,17])],defaultActions:{9:[2,21],10:[2,1],11:[2,2],35:[2,23]},parseError:function(Bt,lt){if(!lt.recoverable){var et=new Error(Bt);throw et.hash=lt,et}this.trace(Bt)},parse:function(Bt){var lt=this,et=[0],st=[],$=[null],Dt=[],z=this.table,Kt="",_t=0,ae=0,Ee=0,Pe=2,le=1,oe=Dt.slice.call(arguments,1),he=Object.create(this.lexer),be={yy:{}};for(var Ne in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Ne)&&(be.yy[Ne]=this.yy[Ne]);he.setInput(Bt,be.yy),be.yy.lexer=he,be.yy.parser=this,he.yylloc===void 0&&(he.yylloc={});var de=he.yylloc;Dt.push(de);var Se=he.options&&he.options.ranges;function te(){var Ue;return typeof(Ue=st.pop()||he.lex()||le)!="number"&&(Ue instanceof Array&&(Ue=(st=Ue).pop()),Ue=lt.symbols_[Ue]||Ue),Ue}typeof be.yy.parseError=="function"?this.parseError=be.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var _e,wt,pe,mt,It,St,nt,ue,Rt,dn={};;){if(pe=et[et.length-1],this.defaultActions[pe]?mt=this.defaultActions[pe]:(_e==null&&(_e=te()),mt=z[pe]&&z[pe][_e]),mt===void 0||!mt.length||!mt[0]){var De="";for(St in Rt=[],z[pe])this.terminals_[St]&&St>Pe&&Rt.push("'"+this.terminals_[St]+"'");De=he.showPosition?"Parse error on line "+(_t+1)+`:
`+he.showPosition()+`
Expecting `+Rt.join(", ")+", got '"+(this.terminals_[_e]||_e)+"'":"Parse error on line "+(_t+1)+": Unexpected "+(_e==le?"end of input":"'"+(this.terminals_[_e]||_e)+"'"),this.parseError(De,{text:he.match,token:this.terminals_[_e]||_e,line:he.yylineno,loc:de,expected:Rt})}if(mt[0]instanceof Array&&mt.length>1)throw new Error("Parse Error: multiple actions possible at state: "+pe+", token: "+_e);switch(mt[0]){case 1:et.push(_e),$.push(he.yytext),Dt.push(he.yylloc),et.push(mt[1]),_e=null,wt?(_e=wt,wt=null):(ae=he.yyleng,Kt=he.yytext,_t=he.yylineno,de=he.yylloc,Ee>0);break;case 2:if(nt=this.productions_[mt[1]][1],dn.$=$[$.length-nt],dn._$={first_line:Dt[Dt.length-(nt||1)].first_line,last_line:Dt[Dt.length-1].last_line,first_column:Dt[Dt.length-(nt||1)].first_column,last_column:Dt[Dt.length-1].last_column},Se&&(dn._$.range=[Dt[Dt.length-(nt||1)].range[0],Dt[Dt.length-1].range[1]]),(It=this.performAction.apply(dn,[Kt,ae,_t,be.yy,mt[1],$,Dt].concat(oe)))!==void 0)return It;nt&&(et=et.slice(0,-1*nt*2),$=$.slice(0,-1*nt),Dt=Dt.slice(0,-1*nt)),et.push(this.productions_[mt[1]][0]),$.push(dn.$),Dt.push(dn._$),ue=z[et[et.length-2]][et[et.length-1]],et.push(ue);break;case 3:return!0}}return!0}},xt={EOF:1,parseError:function(Bt,lt){if(!this.yy.parser)throw new Error(Bt);this.yy.parser.parseError(Bt,lt)},setInput:function(Bt,lt){return this.yy=lt||this.yy||{},this._input=Bt,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 Bt=this._input[0];return this.yytext+=Bt,this.yyleng++,this.offset++,this.match+=Bt,this.matched+=Bt,Bt.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),Bt},unput:function(Bt){var lt=Bt.length,et=Bt.split(/(?:\r\n?|\n)/g);this._input=Bt+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-lt),this.offset-=lt;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),et.length-1&&(this.yylineno-=et.length-1);var $=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:et?(et.length===st.length?this.yylloc.first_column:0)+st[st.length-et.length].length-et[0].length:this.yylloc.first_column-lt},this.options.ranges&&(this.yylloc.range=[$[0],$[0]+this.yyleng-lt]),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(Bt){this.unput(this.match.slice(Bt))},pastInput:function(){var Bt=this.matched.substr(0,this.matched.length-this.match.length);return(Bt.length>20?"...":"")+Bt.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var Bt=this.match;return Bt.length<20&&(Bt+=this._input.substr(0,20-Bt.length)),(Bt.substr(0,20)+(Bt.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var Bt=this.pastInput(),lt=new Array(Bt.length+1).join("-");return Bt+this.upcomingInput()+`
`+lt+"^"},test_match:function(Bt,lt){var et,st,$;if(this.options.backtrack_lexer&&($={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&&($.yylloc.range=this.yylloc.range.slice(0))),(st=Bt[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+Bt[0].length},this.yytext+=Bt[0],this.match+=Bt[0],this.matches=Bt,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(Bt[0].length),this.matched+=Bt[0],et=this.performAction.call(this,this.yy,this,lt,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),et)return et;if(this._backtrack){for(var Dt in $)this[Dt]=$[Dt];return!1}return!1},next:function(){if(this.done)return this.EOF;var Bt,lt,et,st;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var $=this._currentRules(),Dt=0;Dt<$.length;Dt++)if((et=this._input.match(this.rules[$[Dt]]))&&(!lt||et[0].length>lt[0].length)){if(lt=et,st=Dt,this.options.backtrack_lexer){if((Bt=this.test_match(et,$[Dt]))!==!1)return Bt;if(this._backtrack){lt=!1;continue}return!1}if(!this.options.flex)break}return lt?(Bt=this.test_match(lt,$[st]))!==!1&&Bt: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(Bt){this.conditionStack.push(Bt)},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(Bt){return(Bt=this.conditionStack.length-1-Math.abs(Bt||0))>=0?this.conditionStack[Bt]:"INITIAL"},pushState:function(Bt){this.begin(Bt)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(Bt,lt,et,st){switch(et){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 jt(){this.yy={}}return zt.lexer=xt,jt.prototype=zt,zt.Parser=jt,new jt}();O.parser=v,O.Parser=v.Parser,O.parse=function(){return v.parse.apply(v,arguments)},O.main=function(f){f[1]||(console.log("Usage: "+f[0]+" FILE"),process.exit(1));var k=p(4551).readFileSync(p(6470).normalize(f[1]),"utf8");return O.parser.parse(k)},p.c[p.s]===S&&O.main(process.argv.slice(1))},3176:(S,O,p)=>{S=p.nmd(S);var v=function(){var f=function(wt,pe,mt,It){for(mt=mt||{},It=wt.length;It--;mt[wt[It]]=pe);return mt},k=[1,3],y=[1,5],C=[1,6],A=[1,7],M=[1,8],R=[5,6,8,14,16,18,19,40,41,42,43,44,45,53,71,72],B=[1,22],Y=[2,13],G=[1,26],Q=[1,27],K=[1,28],gt=[1,29],tt=[1,30],Lt=[1,31],at=[1,24],vt=[1,32],At=[1,33],Zt=[1,36],zt=[71,72],xt=[5,8,14,16,18,19,40,41,42,43,44,45,53,60,62,71,72],jt=[1,56],Bt=[1,57],lt=[1,58],et=[1,59],st=[1,60],$=[1,61],Dt=[1,62],z=[62,63],Kt=[1,74],_t=[1,70],ae=[1,71],Ee=[1,72],Pe=[1,73],le=[1,75],oe=[1,79],he=[1,80],be=[1,77],Ne=[1,78],de=[5,8,14,16,18,19,40,41,42,43,44,45,53,71,72],Se={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(wt,pe,mt,It,St,nt,ue){var Rt=nt.length-1;switch(St){case 6:this.$=nt[Rt].trim(),It.setTitle(this.$);break;case 7:case 8:this.$=nt[Rt].trim(),It.setAccDescription(this.$);break;case 9:It.parseDirective("%%{","open_directive");break;case 10:It.parseDirective(nt[Rt],"type_directive");break;case 11:nt[Rt]=nt[Rt].trim().replace(/'/g,'"'),It.parseDirective(nt[Rt],"arg_directive");break;case 12:It.parseDirective("}%%","close_directive","pie");break;case 13:this.$=[];break;case 19:It.addRequirement(nt[Rt-3],nt[Rt-4]);break;case 20:It.setNewReqId(nt[Rt-2]);break;case 21:It.setNewReqText(nt[Rt-2]);break;case 22:It.setNewReqRisk(nt[Rt-2]);break;case 23:It.setNewReqVerifyMethod(nt[Rt-2]);break;case 26:this.$=It.RequirementType.REQUIREMENT;break;case 27:this.$=It.RequirementType.FUNCTIONAL_REQUIREMENT;break;case 28:this.$=It.RequirementType.INTERFACE_REQUIREMENT;break;case 29:this.$=It.RequirementType.PERFORMANCE_REQUIREMENT;break;case 30:this.$=It.RequirementType.PHYSICAL_REQUIREMENT;break;case 31:this.$=It.RequirementType.DESIGN_CONSTRAINT;break;case 32:this.$=It.RiskLevel.LOW_RISK;break;case 33:this.$=It.RiskLevel.MED_RISK;break;case 34:this.$=It.RiskLevel.HIGH_RISK;break;case 35:this.$=It.VerifyType.VERIFY_ANALYSIS;break;case 36:this.$=It.VerifyType.VERIFY_DEMONSTRATION;break;case 37:this.$=It.VerifyType.VERIFY_INSPECTION;break;case 38:this.$=It.VerifyType.VERIFY_TEST;break;case 39:It.addElement(nt[Rt-3]);break;case 40:It.setNewElementType(nt[Rt-2]);break;case 41:It.setNewElementDocRef(nt[Rt-2]);break;case 44:It.addRelationship(nt[Rt-2],nt[Rt],nt[Rt-4]);break;case 45:It.addRelationship(nt[Rt-2],nt[Rt-4],nt[Rt]);break;case 46:this.$=It.Relationships.CONTAINS;break;case 47:this.$=It.Relationships.COPIES;break;case 48:this.$=It.Relationships.DERIVES;break;case 49:this.$=It.Relationships.SATISFIES;break;case 50:this.$=It.Relationships.VERIFIES;break;case 51:this.$=It.Relationships.REFINES;break;case 52:this.$=It.Relationships.TRACES}},table:[{3:1,4:2,6:k,9:4,14:y,16:C,18:A,19:M},{1:[3]},{3:10,4:2,5:[1,9],6:k,9:4,14:y,16:C,18:A,19:M},{5:[1,11]},{10:12,20:[1,13]},{15:[1,14]},{17:[1,15]},f(R,[2,8]),{20:[2,9]},{3:16,4:2,6:k,9:4,14:y,16:C,18:A,19:M},{1:[2,2]},{4:21,5:B,7:17,8:Y,9:4,14:y,16:C,18:A,19:M,23:18,24:19,25:20,26:23,32:25,40:G,41:Q,42:K,43:gt,44:tt,45:Lt,53:at,71:vt,72:At},{11:34,12:[1,35],22:Zt},f([12,22],[2,10]),f(R,[2,6]),f(R,[2,7]),{1:[2,1]},{8:[1,37]},{4:21,5:B,7:38,8:Y,9:4,14:y,16:C,18:A,19:M,23:18,24:19,25:20,26:23,32:25,40:G,41:Q,42:K,43:gt,44:tt,45:Lt,53:at,71:vt,72:At},{4:21,5:B,7:39,8:Y,9:4,14:y,16:C,18:A,19:M,23:18,24:19,25:20,26:23,32:25,40:G,41:Q,42:K,43:gt,44:tt,45:Lt,53:at,71:vt,72:At},{4:21,5:B,7:40,8:Y,9:4,14:y,16:C,18:A,19:M,23:18,24:19,25:20,26:23,32:25,40:G,41:Q,42:K,43:gt,44:tt,45:Lt,53:at,71:vt,72:At},{4:21,5:B,7:41,8:Y,9:4,14:y,16:C,18:A,19:M,23:18,24:19,25:20,26:23,32:25,40:G,41:Q,42:K,43:gt,44:tt,45:Lt,53:at,71:vt,72:At},{4:21,5:B,7:42,8:Y,9:4,14:y,16:C,18:A,19:M,23:18,24:19,25:20,26:23,32:25,40:G,41:Q,42:K,43:gt,44:tt,45:Lt,53:at,71:vt,72:At},{27:43,71:[1,44],72:[1,45]},{54:46,71:[1,47],72:[1,48]},{60:[1,49],62:[1,50]},f(zt,[2,26]),f(zt,[2,27]),f(zt,[2,28]),f(zt,[2,29]),f(zt,[2,30]),f(zt,[2,31]),f(xt,[2,55]),f(xt,[2,56]),f(R,[2,4]),{13:51,21:[1,52]},f(R,[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:jt,65:Bt,66:lt,67:et,68:st,69:$,70:Dt},{61:63,64:jt,65:Bt,66:lt,67:et,68:st,69:$,70:Dt},{11:64,22:Zt},{22:[2,11]},{5:[1,65]},{5:[1,66]},{62:[1,67]},f(z,[2,46]),f(z,[2,47]),f(z,[2,48]),f(z,[2,49]),f(z,[2,50]),f(z,[2,51]),f(z,[2,52]),{63:[1,68]},f(R,[2,5]),{5:Kt,29:69,30:_t,33:ae,35:Ee,37:Pe,39:le},{5:oe,39:he,55:76,56:be,58:Ne},{32:81,71:vt,72:At},{32:82,71:vt,72:At},f(de,[2,19]),{31:[1,83]},{31:[1,84]},{31:[1,85]},{31:[1,86]},{5:Kt,29:87,30:_t,33:ae,35:Ee,37:Pe,39:le},f(de,[2,25]),f(de,[2,39]),{31:[1,88]},{31:[1,89]},{5:oe,39:he,55:90,56:be,58:Ne},f(de,[2,43]),f(de,[2,44]),f(de,[2,45]),{32:91,71:vt,72:At},{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]},f(de,[2,24]),{57:104,71:[1,105],72:[1,106]},{59:107,71:[1,108],72:[1,109]},f(de,[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:Kt,29:116,30:_t,33:ae,35:Ee,37:Pe,39:le},{5:Kt,29:117,30:_t,33:ae,35:Ee,37:Pe,39:le},{5:Kt,29:118,30:_t,33:ae,35:Ee,37:Pe,39:le},{5:Kt,29:119,30:_t,33:ae,35:Ee,37:Pe,39:le},{5:oe,39:he,55:120,56:be,58:Ne},{5:oe,39:he,55:121,56:be,58:Ne},f(de,[2,20]),f(de,[2,21]),f(de,[2,22]),f(de,[2,23]),f(de,[2,40]),f(de,[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(wt,pe){if(!pe.recoverable){var mt=new Error(wt);throw mt.hash=pe,mt}this.trace(wt)},parse:function(wt){var pe=this,mt=[0],It=[],St=[null],nt=[],ue=this.table,Rt="",dn=0,De=0,Ue=0,Ve=2,Je=1,en=nt.slice.call(arguments,1),Ae=Object.create(this.lexer),qe={yy:{}};for(var rn in this.yy)Object.prototype.hasOwnProperty.call(this.yy,rn)&&(qe.yy[rn]=this.yy[rn]);Ae.setInput(wt,qe.yy),qe.yy.lexer=Ae,qe.yy.parser=this,Ae.yylloc===void 0&&(Ae.yylloc={});var je=Ae.yylloc;nt.push(je);var xe=Ae.options&&Ae.options.ranges;function Ze(){var gn;return typeof(gn=It.pop()||Ae.lex()||Je)!="number"&&(gn instanceof Array&&(gn=(It=gn).pop()),gn=pe.symbols_[gn]||gn),gn}typeof qe.yy.parseError=="function"?this.parseError=qe.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var pn,Qn,Xe,nn,Sr,Dr,yn,An,fn,wn={};;){if(Xe=mt[mt.length-1],this.defaultActions[Xe]?nn=this.defaultActions[Xe]:(pn==null&&(pn=Ze()),nn=ue[Xe]&&ue[Xe][pn]),nn===void 0||!nn.length||!nn[0]){var Dn="";for(Dr in fn=[],ue[Xe])this.terminals_[Dr]&&Dr>Ve&&fn.push("'"+this.terminals_[Dr]+"'");Dn=Ae.showPosition?"Parse error on line "+(dn+1)+`:
`+Ae.showPosition()+`
Expecting `+fn.join(", ")+", got '"+(this.terminals_[pn]||pn)+"'":"Parse error on line "+(dn+1)+": Unexpected "+(pn==Je?"end of input":"'"+(this.terminals_[pn]||pn)+"'"),this.parseError(Dn,{text:Ae.match,token:this.terminals_[pn]||pn,line:Ae.yylineno,loc:je,expected:fn})}if(nn[0]instanceof Array&&nn.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Xe+", token: "+pn);switch(nn[0]){case 1:mt.push(pn),St.push(Ae.yytext),nt.push(Ae.yylloc),mt.push(nn[1]),pn=null,Qn?(pn=Qn,Qn=null):(De=Ae.yyleng,Rt=Ae.yytext,dn=Ae.yylineno,je=Ae.yylloc,Ue>0);break;case 2:if(yn=this.productions_[nn[1]][1],wn.$=St[St.length-yn],wn._$={first_line:nt[nt.length-(yn||1)].first_line,last_line:nt[nt.length-1].last_line,first_column:nt[nt.length-(yn||1)].first_column,last_column:nt[nt.length-1].last_column},xe&&(wn._$.range=[nt[nt.length-(yn||1)].range[0],nt[nt.length-1].range[1]]),(Sr=this.performAction.apply(wn,[Rt,De,dn,qe.yy,nn[1],St,nt].concat(en)))!==void 0)return Sr;yn&&(mt=mt.slice(0,-1*yn*2),St=St.slice(0,-1*yn),nt=nt.slice(0,-1*yn)),mt.push(this.productions_[nn[1]][0]),St.push(wn.$),nt.push(wn._$),An=ue[mt[mt.length-2]][mt[mt.length-1]],mt.push(An);break;case 3:return!0}}return!0}},te={EOF:1,parseError:function(wt,pe){if(!this.yy.parser)throw new Error(wt);this.yy.parser.parseError(wt,pe)},setInput:function(wt,pe){return this.yy=pe||this.yy||{},this._input=wt,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var wt=this._input[0];return this.yytext+=wt,this.yyleng++,this.offset++,this.match+=wt,this.matched+=wt,wt.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),wt},unput:function(wt){var pe=wt.length,mt=wt.split(/(?:\r\n?|\n)/g);this._input=wt+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-pe),this.offset-=pe;var It=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 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:mt?(mt.length===It.length?this.yylloc.first_column:0)+It[It.length-mt.length].length-mt[0].length:this.yylloc.first_column-pe},this.options.ranges&&(this.yylloc.range=[St[0],St[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(wt){this.unput(this.match.slice(wt))},pastInput:function(){var wt=this.matched.substr(0,this.matched.length-this.match.length);return(wt.length>20?"...":"")+wt.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var wt=this.match;return wt.length<20&&(wt+=this._input.substr(0,20-wt.length)),(wt.substr(0,20)+(wt.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var wt=this.pastInput(),pe=new Array(wt.length+1).join("-");return wt+this.upcomingInput()+`
`+pe+"^"},test_match:function(wt,pe){var mt,It,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))),(It=wt[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=It.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:It?It[It.length-1].length-It[It.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+wt[0].length},this.yytext+=wt[0],this.match+=wt[0],this.matches=wt,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(wt[0].length),this.matched+=wt[0],mt=this.performAction.call(this,this.yy,this,pe,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),mt)return mt;if(this._backtrack){for(var nt in St)this[nt]=St[nt];return!1}return!1},next:function(){if(this.done)return this.EOF;var wt,pe,mt,It;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var St=this._currentRules(),nt=0;nt<St.length;nt++)if((mt=this._input.match(this.rules[St[nt]]))&&(!pe||mt[0].length>pe[0].length)){if(pe=mt,It=nt,this.options.backtrack_lexer){if((wt=this.test_match(mt,St[nt]))!==!1)return wt;if(this._backtrack){pe=!1;continue}return!1}if(!this.options.flex)break}return pe?(wt=this.test_match(pe,St[It]))!==!1&&wt:this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(wt){this.conditionStack.push(wt)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(wt){return(wt=this.conditionStack.length-1-Math.abs(wt||0))>=0?this.conditionStack[wt]:"INITIAL"},pushState:function(wt){this.begin(wt)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(wt,pe,mt,It){switch(mt){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 pe.yytext=pe.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 _e(){this.yy={}}return Se.lexer=te,_e.prototype=Se,Se.Parser=_e,new _e}();O.parser=v,O.Parser=v.Parser,O.parse=function(){return v.parse.apply(v,arguments)},O.main=function(f){f[1]||(console.log("Usage: "+f[0]+" FILE"),process.exit(1));var k=p(8800).readFileSync(p(6470).normalize(f[1]),"utf8");return O.parser.parse(k)},p.c[p.s]===S&&O.main(process.argv.slice(1))},6876:(S,O,p)=>{S=p.nmd(S);var v=function(){var f=function(Se,te,_e,wt){for(_e=_e||{},wt=Se.length;wt--;_e[Se[wt]]=te);return _e},k=[1,2],y=[1,3],C=[1,5],A=[1,7],M=[2,5],R=[1,15],B=[1,17],Y=[1,18],G=[1,19],Q=[1,21],K=[1,22],gt=[1,23],tt=[1,29],Lt=[1,30],at=[1,31],vt=[1,32],At=[1,33],Zt=[1,34],zt=[1,35],xt=[1,36],jt=[1,37],Bt=[1,38],lt=[1,41],et=[1,42],st=[1,43],$=[1,44],Dt=[1,45],z=[1,46],Kt=[1,49],_t=[1,4,5,16,20,22,25,26,32,33,34,36,38,39,40,41,42,43,45,47,48,49,54,55,56,57,65,75],ae=[4,5,16,20,22,25,26,32,33,34,36,38,39,40,41,42,43,45,49,54,55,56,57,65,75],Ee=[4,5,16,20,22,25,26,32,33,34,36,38,39,40,41,42,43,45,48,49,54,55,56,57,65,75],Pe=[4,5,16,20,22,25,26,32,33,34,36,38,39,40,41,42,43,45,47,49,54,55,56,57,65,75],le=[63,64,65],oe=[1,114],he=[1,4,5,7,16,20,22,25,26,32,33,34,36,38,39,40,41,42,43,45,47,48,49,54,55,56,57,65,75],be={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,and:47,else:48,note:49,placement:50,text2:51,over:52,actor_pair:53,links:54,link:55,properties:56,details:57,spaceList:58,",":59,left_of:60,right_of:61,signaltype:62,"+":63,"-":64,ACTOR:65,SOLID_OPEN_ARROW:66,DOTTED_OPEN_ARROW:67,SOLID_ARROW:68,DOTTED_ARROW:69,SOLID_CROSS:70,DOTTED_CROSS:71,SOLID_POINT:72,DOTTED_POINT:73,TXT:74,open_directive:75,type_directive:76,arg_directive:77,close_directive:78,$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:"and",48:"else",49:"note",52:"over",54:"links",55:"link",56:"properties",57:"details",59:",",60:"left_of",61:"right_of",63:"+",64:"-",65:"ACTOR",66:"SOLID_OPEN_ARROW",67:"DOTTED_OPEN_ARROW",68:"SOLID_ARROW",69:"DOTTED_ARROW",70:"SOLID_CROSS",71:"DOTTED_CROSS",72:"SOLID_POINT",73:"DOTTED_POINT",74:"TXT",75:"open_directive",76:"type_directive",77:"arg_directive",78:"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,1],[46,1],[46,4],[44,1],[44,4],[27,4],[27,4],[28,3],[29,3],[30,3],[31,3],[58,2],[58,1],[53,3],[53,1],[50,1],[50,1],[21,5],[21,5],[21,4],[17,1],[62,1],[62,1],[62,1],[62,1],[62,1],[62,1],[62,1],[62,1],[51,1],[11,1],[12,1],[15,1],[13,1]],performAction:function(Se,te,_e,wt,pe,mt,It){var St=mt.length-1;switch(pe){case 4:return wt.apply(mt[St]),mt[St];case 5:case 9:this.$=[];break;case 6:mt[St-1].push(mt[St]),this.$=mt[St-1];break;case 7:case 8:case 52:this.$=mt[St];break;case 12:mt[St-3].type="addParticipant",mt[St-3].description=wt.parseMessage(mt[St-1]),this.$=mt[St-3];break;case 13:mt[St-1].type="addParticipant",this.$=mt[St-1];break;case 14:mt[St-3].type="addActor",mt[St-3].description=wt.parseMessage(mt[St-1]),this.$=mt[St-3];break;case 15:mt[St-1].type="addActor",this.$=mt[St-1];break;case 17:this.$={type:"sequenceIndex",sequenceIndex:Number(mt[St-2]),sequenceIndexStep:Number(mt[St-1]),sequenceVisible:!0,signalType:wt.LINETYPE.AUTONUMBER};break;case 18:this.$={type:"sequenceIndex",sequenceIndex:Number(mt[St-1]),sequenceIndexStep:1,sequenceVisible:!0,signalType:wt.LINETYPE.AUTONUMBER};break;case 19:this.$={type:"sequenceIndex",sequenceVisible:!1,signalType:wt.LINETYPE.AUTONUMBER};break;case 20:this.$={type:"sequenceIndex",sequenceVisible:!0,signalType:wt.LINETYPE.AUTONUMBER};break;case 21:this.$={type:"activeStart",signalType:wt.LINETYPE.ACTIVE_START,actor:mt[St-1]};break;case 22:this.$={type:"activeEnd",signalType:wt.LINETYPE.ACTIVE_END,actor:mt[St-1]};break;case 28:wt.setDiagramTitle(mt[St].substring(6)),this.$=mt[St].substring(6);break;case 29:wt.setDiagramTitle(mt[St].substring(7)),this.$=mt[St].substring(7);break;case 30:this.$=mt[St].trim(),wt.setTitle(this.$);break;case 31:case 32:this.$=mt[St].trim(),wt.setAccDescription(this.$);break;case 33:mt[St-1].unshift({type:"loopStart",loopText:wt.parseMessage(mt[St-2]),signalType:wt.LINETYPE.LOOP_START}),mt[St-1].push({type:"loopEnd",loopText:mt[St-2],signalType:wt.LINETYPE.LOOP_END}),this.$=mt[St-1];break;case 34:mt[St-1].unshift({type:"rectStart",color:wt.parseMessage(mt[St-2]),signalType:wt.LINETYPE.RECT_START}),mt[St-1].push({type:"rectEnd",color:wt.parseMessage(mt[St-2]),signalType:wt.LINETYPE.RECT_END}),this.$=mt[St-1];break;case 35:mt[St-1].unshift({type:"optStart",optText:wt.parseMessage(mt[St-2]),signalType:wt.LINETYPE.OPT_START}),mt[St-1].push({type:"optEnd",optText:wt.parseMessage(mt[St-2]),signalType:wt.LINETYPE.OPT_END}),this.$=mt[St-1];break;case 36:mt[St-1].unshift({type:"altStart",altText:wt.parseMessage(mt[St-2]),signalType:wt.LINETYPE.ALT_START}),mt[St-1].push({type:"altEnd",signalType:wt.LINETYPE.ALT_END}),this.$=mt[St-1];break;case 37:mt[St-1].unshift({type:"parStart",parText:wt.parseMessage(mt[St-2]),signalType:wt.LINETYPE.PAR_START}),mt[St-1].push({type:"parEnd",signalType:wt.LINETYPE.PAR_END}),this.$=mt[St-1];break;case 40:this.$=mt[St-3].concat([{type:"and",parText:wt.parseMessage(mt[St-1]),signalType:wt.LINETYPE.PAR_AND},mt[St]]);break;case 42:this.$=mt[St-3].concat([{type:"else",altText:wt.parseMessage(mt[St-1]),signalType:wt.LINETYPE.ALT_ELSE},mt[St]]);break;case 43:this.$=[mt[St-1],{type:"addNote",placement:mt[St-2],actor:mt[St-1].actor,text:mt[St]}];break;case 44:mt[St-2]=[].concat(mt[St-1],mt[St-1]).slice(0,2),mt[St-2][0]=mt[St-2][0].actor,mt[St-2][1]=mt[St-2][1].actor,this.$=[mt[St-1],{type:"addNote",placement:wt.PLACEMENT.OVER,actor:mt[St-2].slice(0,2),text:mt[St]}];break;case 45:this.$=[mt[St-1],{type:"addLinks",actor:mt[St-1].actor,text:mt[St]}];break;case 46:this.$=[mt[St-1],{type:"addALink",actor:mt[St-1].actor,text:mt[St]}];break;case 47:this.$=[mt[St-1],{type:"addProperties",actor:mt[St-1].actor,text:mt[St]}];break;case 48:this.$=[mt[St-1],{type:"addDetails",actor:mt[St-1].actor,text:mt[St]}];break;case 51:this.$=[mt[St-2],mt[St]];break;case 53:this.$=wt.PLACEMENT.LEFTOF;break;case 54:this.$=wt.PLACEMENT.RIGHTOF;break;case 55:this.$=[mt[St-4],mt[St-1],{type:"addMessage",from:mt[St-4].actor,to:mt[St-1].actor,signalType:mt[St-3],msg:mt[St]},{type:"activeStart",signalType:wt.LINETYPE.ACTIVE_START,actor:mt[St-1]}];break;case 56:this.$=[mt[St-4],mt[St-1],{type:"addMessage",from:mt[St-4].actor,to:mt[St-1].actor,signalType:mt[St-3],msg:mt[St]},{type:"activeEnd",signalType:wt.LINETYPE.ACTIVE_END,actor:mt[St-4]}];break;case 57:this.$=[mt[St-3],mt[St-1],{type:"addMessage",from:mt[St-3].actor,to:mt[St-1].actor,signalType:mt[St-2],msg:mt[St]}];break;case 58:this.$={type:"addParticipant",actor:mt[St]};break;case 59:this.$=wt.LINETYPE.SOLID_OPEN;break;case 60:this.$=wt.LINETYPE.DOTTED_OPEN;break;case 61:this.$=wt.LINETYPE.SOLID;break;case 62:this.$=wt.LINETYPE.DOTTED;break;case 63:this.$=wt.LINETYPE.SOLID_CROSS;break;case 64:this.$=wt.LINETYPE.DOTTED_CROSS;break;case 65:this.$=wt.LINETYPE.SOLID_POINT;break;case 66:this.$=wt.LINETYPE.DOTTED_POINT;break;case 67:this.$=wt.parseMessage(mt[St].trim().substring(1));break;case 68:wt.parseDirective("%%{","open_directive");break;case 69:wt.parseDirective(mt[St],"type_directive");break;case 70:mt[St]=mt[St].trim().replace(/'/g,'"'),wt.parseDirective(mt[St],"arg_directive");break;case 71:wt.parseDirective("}%%","close_directive","sequence")}},table:[{3:1,4:k,5:y,6:4,7:C,11:6,75:A},{1:[3]},{3:8,4:k,5:y,6:4,7:C,11:6,75:A},{3:9,4:k,5:y,6:4,7:C,11:6,75:A},{3:10,4:k,5:y,6:4,7:C,11:6,75:A},f([1,4,5,16,20,22,25,26,32,33,34,36,38,39,41,42,43,45,49,54,55,56,57,65,75],M,{8:11}),{12:12,76:[1,13]},{76:[2,68]},{1:[2,1]},{1:[2,2]},{1:[2,3]},{1:[2,4],4:R,5:B,6:39,9:14,10:16,11:6,16:Y,17:40,20:G,21:20,22:Q,25:K,26:gt,27:24,28:25,29:26,30:27,31:28,32:tt,33:Lt,34:at,36:vt,38:At,39:Zt,41:zt,42:xt,43:jt,45:Bt,49:lt,54:et,55:st,56:$,57:Dt,65:z,75:A},{13:47,14:[1,48],78:Kt},f([14,78],[2,69]),f(_t,[2,6]),{6:39,10:50,11:6,16:Y,17:40,20:G,21:20,22:Q,25:K,26:gt,27:24,28:25,29:26,30:27,31:28,32:tt,33:Lt,34:at,36:vt,38:At,39:Zt,41:zt,42:xt,43:jt,45:Bt,49:lt,54:et,55:st,56:$,57:Dt,65:z,75:A},f(_t,[2,8]),f(_t,[2,9]),{17:51,65:z},{17:52,65:z},{5:[1,53]},{5:[1,56],23:[1,54],24:[1,55]},{17:57,65:z},{17:58,65:z},{5:[1,59]},{5:[1,60]},{5:[1,61]},{5:[1,62]},{5:[1,63]},f(_t,[2,28]),f(_t,[2,29]),{35:[1,64]},{37:[1,65]},f(_t,[2,32]),{19:[1,66]},{19:[1,67]},{19:[1,68]},{19:[1,69]},{19:[1,70]},f(_t,[2,38]),{62:71,66:[1,72],67:[1,73],68:[1,74],69:[1,75],70:[1,76],71:[1,77],72:[1,78],73:[1,79]},{50:80,52:[1,81],60:[1,82],61:[1,83]},{17:84,65:z},{17:85,65:z},{17:86,65:z},{17:87,65:z},f([5,18,59,66,67,68,69,70,71,72,73,74],[2,58]),{5:[1,88]},{15:89,77:[1,90]},{5:[2,71]},f(_t,[2,7]),{5:[1,92],18:[1,91]},{5:[1,94],18:[1,93]},f(_t,[2,16]),{5:[1,96],23:[1,95]},{5:[1,97]},f(_t,[2,20]),{5:[1,98]},{5:[1,99]},f(_t,[2,23]),f(_t,[2,24]),f(_t,[2,25]),f(_t,[2,26]),f(_t,[2,27]),f(_t,[2,30]),f(_t,[2,31]),f(ae,M,{8:100}),f(ae,M,{8:101}),f(ae,M,{8:102}),f(Ee,M,{44:103,8:104}),f(Pe,M,{46:105,8:106}),{17:109,63:[1,107],64:[1,108],65:z},f(le,[2,59]),f(le,[2,60]),f(le,[2,61]),f(le,[2,62]),f(le,[2,63]),f(le,[2,64]),f(le,[2,65]),f(le,[2,66]),{17:110,65:z},{17:112,53:111,65:z},{65:[2,53]},{65:[2,54]},{51:113,74:oe},{51:115,74:oe},{51:116,74:oe},{51:117,74:oe},f(he,[2,10]),{13:118,78:Kt},{78:[2,70]},{19:[1,119]},f(_t,[2,13]),{19:[1,120]},f(_t,[2,15]),{5:[1,121]},f(_t,[2,18]),f(_t,[2,19]),f(_t,[2,21]),f(_t,[2,22]),{4:R,5:B,6:39,9:14,10:16,11:6,16:Y,17:40,20:G,21:20,22:Q,25:K,26:gt,27:24,28:25,29:26,30:27,31:28,32:tt,33:Lt,34:at,36:vt,38:At,39:Zt,40:[1,122],41:zt,42:xt,43:jt,45:Bt,49:lt,54:et,55:st,56:$,57:Dt,65:z,75:A},{4:R,5:B,6:39,9:14,10:16,11:6,16:Y,17:40,20:G,21:20,22:Q,25:K,26:gt,27:24,28:25,29:26,30:27,31:28,32:tt,33:Lt,34:at,36:vt,38:At,39:Zt,40:[1,123],41:zt,42:xt,43:jt,45:Bt,49:lt,54:et,55:st,56:$,57:Dt,65:z,75:A},{4:R,5:B,6:39,9:14,10:16,11:6,16:Y,17:40,20:G,21:20,22:Q,25:K,26:gt,27:24,28:25,29:26,30:27,31:28,32:tt,33:Lt,34:at,36:vt,38:At,39:Zt,40:[1,124],41:zt,42:xt,43:jt,45:Bt,49:lt,54:et,55:st,56:$,57:Dt,65:z,75:A},{40:[1,125]},{4:R,5:B,6:39,9:14,10:16,11:6,16:Y,17:40,20:G,21:20,22:Q,25:K,26:gt,27:24,28:25,29:26,30:27,31:28,32:tt,33:Lt,34:at,36:vt,38:At,39:Zt,40:[2,41],41:zt,42:xt,43:jt,45:Bt,48:[1,126],49:lt,54:et,55:st,56:$,57:Dt,65:z,75:A},{40:[1,127]},{4:R,5:B,6:39,9:14,10:16,11:6,16:Y,17:40,20:G,21:20,22:Q,25:K,26:gt,27:24,28:25,29:26,30:27,31:28,32:tt,33:Lt,34:at,36:vt,38:At,39:Zt,40:[2,39],41:zt,42:xt,43:jt,45:Bt,47:[1,128],49:lt,54:et,55:st,56:$,57:Dt,65:z,75:A},{17:129,65:z},{17:130,65:z},{51:131,74:oe},{51:132,74:oe},{51:133,74:oe},{59:[1,134],74:[2,52]},{5:[2,45]},{5:[2,67]},{5:[2,46]},{5:[2,47]},{5:[2,48]},{5:[1,135]},{5:[1,136]},{5:[1,137]},f(_t,[2,17]),f(_t,[2,33]),f(_t,[2,34]),f(_t,[2,35]),f(_t,[2,36]),{19:[1,138]},f(_t,[2,37]),{19:[1,139]},{51:140,74:oe},{51:141,74:oe},{5:[2,57]},{5:[2,43]},{5:[2,44]},{17:142,65:z},f(he,[2,11]),f(_t,[2,12]),f(_t,[2,14]),f(Ee,M,{8:104,44:143}),f(Pe,M,{8:106,46:144}),{5:[2,55]},{5:[2,56]},{74:[2,51]},{40:[2,42]},{40:[2,40]}],defaultActions:{7:[2,68],8:[2,1],9:[2,2],10:[2,3],49:[2,71],82:[2,53],83:[2,54],90:[2,70],113:[2,45],114:[2,67],115:[2,46],116:[2,47],117:[2,48],131:[2,57],132:[2,43],133:[2,44],140:[2,55],141:[2,56],142:[2,51],143:[2,42],144:[2,40]},parseError:function(Se,te){if(!te.recoverable){var _e=new Error(Se);throw _e.hash=te,_e}this.trace(Se)},parse:function(Se){var te=this,_e=[0],wt=[],pe=[null],mt=[],It=this.table,St="",nt=0,ue=0,Rt=0,dn=2,De=1,Ue=mt.slice.call(arguments,1),Ve=Object.create(this.lexer),Je={yy:{}};for(var en in this.yy)Object.prototype.hasOwnProperty.call(this.yy,en)&&(Je.yy[en]=this.yy[en]);Ve.setInput(Se,Je.yy),Je.yy.lexer=Ve,Je.yy.parser=this,Ve.yylloc===void 0&&(Ve.yylloc={});var Ae=Ve.yylloc;mt.push(Ae);var qe=Ve.options&&Ve.options.ranges;function rn(){var fn;return typeof(fn=wt.pop()||Ve.lex()||De)!="number"&&(fn instanceof Array&&(fn=(wt=fn).pop()),fn=te.symbols_[fn]||fn),fn}typeof Je.yy.parseError=="function"?this.parseError=Je.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var je,xe,Ze,pn,Qn,Xe,nn,Sr,Dr,yn={};;){if(Ze=_e[_e.length-1],this.defaultActions[Ze]?pn=this.defaultActions[Ze]:(je==null&&(je=rn()),pn=It[Ze]&&It[Ze][je]),pn===void 0||!pn.length||!pn[0]){var An="";for(Xe in Dr=[],It[Ze])this.terminals_[Xe]&&Xe>dn&&Dr.push("'"+this.terminals_[Xe]+"'");An=Ve.showPosition?"Parse error on line "+(nt+1)+`:
`+Ve.showPosition()+`
Expecting `+Dr.join(", ")+", got '"+(this.terminals_[je]||je)+"'":"Parse error on line "+(nt+1)+": Unexpected "+(je==De?"end of input":"'"+(this.terminals_[je]||je)+"'"),this.parseError(An,{text:Ve.match,token:this.terminals_[je]||je,line:Ve.yylineno,loc:Ae,expected:Dr})}if(pn[0]instanceof Array&&pn.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Ze+", token: "+je);switch(pn[0]){case 1:_e.push(je),pe.push(Ve.yytext),mt.push(Ve.yylloc),_e.push(pn[1]),je=null,xe?(je=xe,xe=null):(ue=Ve.yyleng,St=Ve.yytext,nt=Ve.yylineno,Ae=Ve.yylloc,Rt>0);break;case 2:if(nn=this.productions_[pn[1]][1],yn.$=pe[pe.length-nn],yn._$={first_line:mt[mt.length-(nn||1)].first_line,last_line:mt[mt.length-1].last_line,first_column:mt[mt.length-(nn||1)].first_column,last_column:mt[mt.length-1].last_column},qe&&(yn._$.range=[mt[mt.length-(nn||1)].range[0],mt[mt.length-1].range[1]]),(Qn=this.performAction.apply(yn,[St,ue,nt,Je.yy,pn[1],pe,mt].concat(Ue)))!==void 0)return Qn;nn&&(_e=_e.slice(0,-1*nn*2),pe=pe.slice(0,-1*nn),mt=mt.slice(0,-1*nn)),_e.push(this.productions_[pn[1]][0]),pe.push(yn.$),mt.push(yn._$),Sr=It[_e[_e.length-2]][_e[_e.length-1]],_e.push(Sr);break;case 3:return!0}}return!0}},Ne={EOF:1,parseError:function(Se,te){if(!this.yy.parser)throw new Error(Se);this.yy.parser.parseError(Se,te)},setInput:function(Se,te){return this.yy=te||this.yy||{},this._input=Se,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 Se=this._input[0];return this.yytext+=Se,this.yyleng++,this.offset++,this.match+=Se,this.matched+=Se,Se.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),Se},unput:function(Se){var te=Se.length,_e=Se.split(/(?:\r\n?|\n)/g);this._input=Se+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-te),this.offset-=te;var wt=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),_e.length-1&&(this.yylineno-=_e.length-1);var pe=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:_e?(_e.length===wt.length?this.yylloc.first_column:0)+wt[wt.length-_e.length].length-_e[0].length:this.yylloc.first_column-te},this.options.ranges&&(this.yylloc.range=[pe[0],pe[0]+this.yyleng-te]),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(Se){this.unput(this.match.slice(Se))},pastInput:function(){var Se=this.matched.substr(0,this.matched.length-this.match.length);return(Se.length>20?"...":"")+Se.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var Se=this.match;return Se.length<20&&(Se+=this._input.substr(0,20-Se.length)),(Se.substr(0,20)+(Se.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var Se=this.pastInput(),te=new Array(Se.length+1).join("-");return Se+this.upcomingInput()+`
`+te+"^"},test_match:function(Se,te){var _e,wt,pe;if(this.options.backtrack_lexer&&(pe={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&&(pe.yylloc.range=this.yylloc.range.slice(0))),(wt=Se[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=wt.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:wt?wt[wt.length-1].length-wt[wt.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+Se[0].length},this.yytext+=Se[0],this.match+=Se[0],this.matches=Se,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(Se[0].length),this.matched+=Se[0],_e=this.performAction.call(this,this.yy,this,te,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),_e)return _e;if(this._backtrack){for(var mt in pe)this[mt]=pe[mt];return!1}return!1},next:function(){if(this.done)return this.EOF;var Se,te,_e,wt;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var pe=this._currentRules(),mt=0;mt<pe.length;mt++)if((_e=this._input.match(this.rules[pe[mt]]))&&(!te||_e[0].length>te[0].length)){if(te=_e,wt=mt,this.options.backtrack_lexer){if((Se=this.test_match(_e,pe[mt]))!==!1)return Se;if(this._backtrack){te=!1;continue}return!1}if(!this.options.flex)break}return te?(Se=this.test_match(te,pe[wt]))!==!1&&Se: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(Se){this.conditionStack.push(Se)},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(Se){return(Se=this.conditionStack.length-1-Math.abs(Se||0))>=0?this.conditionStack[Se]:"INITIAL"},pushState:function(Se){this.begin(Se)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(Se,te,_e,wt){switch(_e){case 0:return this.begin("open_directive"),75;case 1:return this.begin("type_directive"),76;case 2:return this.popState(),this.begin("arg_directive"),14;case 3:return this.popState(),this.popState(),78;case 4:return 77;case 5:case 49:case 62: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 te.yytext=te.yytext.trim(),this.begin("ALIAS"),65;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"),48;case 22:return this.begin("LINE"),45;case 23:return this.begin("LINE"),47;case 24:return this.popState(),19;case 25:return 40;case 26:return 60;case 27:return 61;case 28:return 54;case 29:return 55;case 30:return 56;case 31:return 57;case 32:return 52;case 33:return 49;case 34:return this.begin("ID"),25;case 35:return this.begin("ID"),26;case 36:return 32;case 37:return 33;case 38:return this.begin("acc_title"),34;case 39:return this.popState(),"acc_title_value";case 40:return this.begin("acc_descr"),36;case 41:return this.popState(),"acc_descr_value";case 42:this.begin("acc_descr_multiline");break;case 43:this.popState();break;case 44:return"acc_descr_multiline_value";case 45:return 7;case 46:return 22;case 47:return 24;case 48:return 59;case 50:return te.yytext=te.yytext.trim(),65;case 51:return 68;case 52:return 69;case 53:return 66;case 54:return 67;case 55:return 70;case 56:return 71;case 57:return 72;case 58:return 73;case 59:return 74;case 60:return 63;case 61:return 64;case 63: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,/^(?:(?:[:]?(?: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:[43,44],inclusive:!1},acc_descr:{rules:[41],inclusive:!1},acc_title:{rules:[39],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,24],inclusive:!1},INITIAL:{rules:[0,5,6,8,9,10,11,12,13,17,18,19,20,21,22,23,25,26,27,28,29,30,31,32,33,34,35,36,37,38,40,42,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63],inclusive:!0}}};function de(){this.yy={}}return be.lexer=Ne,de.prototype=be,be.Parser=de,new de}();O.parser=v,O.Parser=v.Parser,O.parse=function(){return v.parse.apply(v,arguments)},O.main=function(f){f[1]||(console.log("Usage: "+f[0]+" FILE"),process.exit(1));var k=p(1993).readFileSync(p(6470).normalize(f[1]),"utf8");return O.parser.parse(k)},p.c[p.s]===S&&O.main(process.argv.slice(1))},3584:(S,O,p)=>{S=p.nmd(S);var v=function(){var f=function(le,oe,he,be){for(he=he||{},be=le.length;be--;he[le[be]]=oe);return he},k=[1,2],y=[1,3],C=[1,5],A=[1,7],M=[2,5],R=[1,15],B=[1,17],Y=[1,19],G=[1,20],Q=[1,21],K=[1,22],gt=[1,33],tt=[1,23],Lt=[1,24],at=[1,25],vt=[1,26],At=[1,27],Zt=[1,30],zt=[1,31],xt=[1,32],jt=[1,35],Bt=[1,36],lt=[1,37],et=[1,38],st=[1,34],$=[1,41],Dt=[1,4,5,14,15,17,19,20,22,23,24,25,26,27,31,33,35,41,42,43,44,47,50],z=[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],Kt=[1,4,5,7,14,15,17,19,20,22,23,24,25,26,27,31,33,35,41,42,43,44,47,50],_t=[4,5,14,15,17,19,20,22,23,24,25,26,27,31,33,35,41,42,43,44,47,50],ae={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(le,oe,he,be,Ne,de,Se){var te=de.length-1;switch(Ne){case 4:return be.setRootDoc(de[te]),de[te];case 5:this.$=[];break;case 6:de[te]!="nl"&&(de[te-1].push(de[te]),this.$=de[te-1]);break;case 7:case 8:case 39:case 40:this.$=de[te];break;case 9:this.$="nl";break;case 10:this.$={stmt:"state",id:de[te],type:"default",description:""};break;case 11:this.$={stmt:"state",id:de[te-1],type:"default",description:be.trimColon(de[te])};break;case 12:this.$={stmt:"relation",state1:{stmt:"state",id:de[te-2],type:"default",description:""},state2:{stmt:"state",id:de[te],type:"default",description:""}};break;case 13:this.$={stmt:"relation",state1:{stmt:"state",id:de[te-3],type:"default",description:""},state2:{stmt:"state",id:de[te-1],type:"default",description:""},description:de[te].substr(1).trim()};break;case 17:this.$={stmt:"state",id:de[te-3],type:"default",description:"",doc:de[te-1]};break;case 18:var _e=de[te],wt=de[te-2].trim();if(de[te].match(":")){var pe=de[te].split(":");_e=pe[0],wt=[wt,pe[1]]}this.$={stmt:"state",id:_e,type:"default",description:wt};break;case 19:this.$={stmt:"state",id:de[te-3],type:"default",description:de[te-5],doc:de[te-1]};break;case 20:this.$={stmt:"state",id:de[te],type:"fork"};break;case 21:this.$={stmt:"state",id:de[te],type:"join"};break;case 22:this.$={stmt:"state",id:de[te],type:"choice"};break;case 23:this.$={stmt:"state",id:be.getDividerId(),type:"divider"};break;case 24:this.$={stmt:"state",id:de[te-1].trim(),note:{position:de[te-2].trim(),text:de[te].trim()}};break;case 28:this.$=de[te].trim(),be.setTitle(this.$);break;case 29:case 30:this.$=de[te].trim(),be.setAccDescription(this.$);break;case 33:be.setDirection("TB"),this.$={stmt:"dir",value:"TB"};break;case 34:be.setDirection("BT"),this.$={stmt:"dir",value:"BT"};break;case 35:be.setDirection("RL"),this.$={stmt:"dir",value:"RL"};break;case 36:be.setDirection("LR"),this.$={stmt:"dir",value:"LR"};break;case 43:be.parseDirective("%%{","open_directive");break;case 44:be.parseDirective(de[te],"type_directive");break;case 45:de[te]=de[te].trim().replace(/'/g,'"'),be.parseDirective(de[te],"arg_directive");break;case 46:be.parseDirective("}%%","close_directive","state")}},table:[{3:1,4:k,5:y,6:4,7:C,36:6,50:A},{1:[3]},{3:8,4:k,5:y,6:4,7:C,36:6,50:A},{3:9,4:k,5:y,6:4,7:C,36:6,50:A},{3:10,4:k,5:y,6:4,7:C,36:6,50:A},f([1,4,5,14,15,17,20,22,23,24,25,26,27,31,33,35,41,42,43,44,47,50],M,{8:11}),{37:12,51:[1,13]},{51:[2,43]},{1:[2,1]},{1:[2,2]},{1:[2,3]},{1:[2,4],4:R,5:B,6:28,9:14,10:16,11:18,14:Y,15:G,17:Q,20:K,22:gt,23:tt,24:Lt,25:at,26:vt,27:At,30:29,31:Zt,33:zt,35:xt,36:6,41:jt,42:Bt,43:lt,44:et,47:st,50:A},{38:39,39:[1,40],53:$},f([39,53],[2,44]),f(Dt,[2,6]),{6:28,10:42,11:18,14:Y,15:G,17:Q,20:K,22:gt,23:tt,24:Lt,25:at,26:vt,27:At,30:29,31:Zt,33:zt,35:xt,36:6,41:jt,42:Bt,43:lt,44:et,47:st,50:A},f(Dt,[2,8]),f(Dt,[2,9]),f(Dt,[2,10],{12:[1,43],13:[1,44]}),f(Dt,[2,14]),{16:[1,45]},f(Dt,[2,16],{18:[1,46]}),{21:[1,47]},f(Dt,[2,20]),f(Dt,[2,21]),f(Dt,[2,22]),f(Dt,[2,23]),{28:48,29:[1,49],48:[1,50],49:[1,51]},f(Dt,[2,26]),f(Dt,[2,27]),{32:[1,52]},{34:[1,53]},f(Dt,[2,30]),f(z,[2,39]),f(z,[2,40]),f(Dt,[2,33]),f(Dt,[2,34]),f(Dt,[2,35]),f(Dt,[2,36]),f(Kt,[2,31]),{40:54,52:[1,55]},f(Kt,[2,46]),f(Dt,[2,7]),f(Dt,[2,11]),{11:56,22:gt,47:st},f(Dt,[2,15]),f(_t,M,{8:57}),{22:[1,58]},{22:[1,59]},{21:[1,60]},{22:[2,41]},{22:[2,42]},f(Dt,[2,28]),f(Dt,[2,29]),{38:61,53:$},{53:[2,45]},f(Dt,[2,12],{12:[1,62]}),{4:R,5:B,6:28,9:14,10:16,11:18,14:Y,15:G,17:Q,19:[1,63],20:K,22:gt,23:tt,24:Lt,25:at,26:vt,27:At,30:29,31:Zt,33:zt,35:xt,36:6,41:jt,42:Bt,43:lt,44:et,47:st,50:A},f(Dt,[2,18],{18:[1,64]}),{29:[1,65]},{22:[1,66]},f(Kt,[2,32]),f(Dt,[2,13]),f(Dt,[2,17]),f(_t,M,{8:67}),f(Dt,[2,24]),f(Dt,[2,25]),{4:R,5:B,6:28,9:14,10:16,11:18,14:Y,15:G,17:Q,19:[1,68],20:K,22:gt,23:tt,24:Lt,25:at,26:vt,27:At,30:29,31:Zt,33:zt,35:xt,36:6,41:jt,42:Bt,43:lt,44:et,47:st,50:A},f(Dt,[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(le,oe){if(!oe.recoverable){var he=new Error(le);throw he.hash=oe,he}this.trace(le)},parse:function(le){var oe=this,he=[0],be=[],Ne=[null],de=[],Se=this.table,te="",_e=0,wt=0,pe=0,mt=2,It=1,St=de.slice.call(arguments,1),nt=Object.create(this.lexer),ue={yy:{}};for(var Rt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Rt)&&(ue.yy[Rt]=this.yy[Rt]);nt.setInput(le,ue.yy),ue.yy.lexer=nt,ue.yy.parser=this,nt.yylloc===void 0&&(nt.yylloc={});var dn=nt.yylloc;de.push(dn);var De=nt.options&&nt.options.ranges;function Ue(){var Xe;return typeof(Xe=be.pop()||nt.lex()||It)!="number"&&(Xe instanceof Array&&(Xe=(be=Xe).pop()),Xe=oe.symbols_[Xe]||Xe),Xe}typeof ue.yy.parseError=="function"?this.parseError=ue.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var Ve,Je,en,Ae,qe,rn,je,xe,Ze,pn={};;){if(en=he[he.length-1],this.defaultActions[en]?Ae=this.defaultActions[en]:(Ve==null&&(Ve=Ue()),Ae=Se[en]&&Se[en][Ve]),Ae===void 0||!Ae.length||!Ae[0]){var Qn="";for(rn in Ze=[],Se[en])this.terminals_[rn]&&rn>mt&&Ze.push("'"+this.terminals_[rn]+"'");Qn=nt.showPosition?"Parse error on line "+(_e+1)+`:
`+nt.showPosition()+`
Expecting `+Ze.join(", ")+", got '"+(this.terminals_[Ve]||Ve)+"'":"Parse error on line "+(_e+1)+": Unexpected "+(Ve==It?"end of input":"'"+(this.terminals_[Ve]||Ve)+"'"),this.parseError(Qn,{text:nt.match,token:this.terminals_[Ve]||Ve,line:nt.yylineno,loc:dn,expected:Ze})}if(Ae[0]instanceof Array&&Ae.length>1)throw new Error("Parse Error: multiple actions possible at state: "+en+", token: "+Ve);switch(Ae[0]){case 1:he.push(Ve),Ne.push(nt.yytext),de.push(nt.yylloc),he.push(Ae[1]),Ve=null,Je?(Ve=Je,Je=null):(wt=nt.yyleng,te=nt.yytext,_e=nt.yylineno,dn=nt.yylloc,pe>0);break;case 2:if(je=this.productions_[Ae[1]][1],pn.$=Ne[Ne.length-je],pn._$={first_line:de[de.length-(je||1)].first_line,last_line:de[de.length-1].last_line,first_column:de[de.length-(je||1)].first_column,last_column:de[de.length-1].last_column},De&&(pn._$.range=[de[de.length-(je||1)].range[0],de[de.length-1].range[1]]),(qe=this.performAction.apply(pn,[te,wt,_e,ue.yy,Ae[1],Ne,de].concat(St)))!==void 0)return qe;je&&(he=he.slice(0,-1*je*2),Ne=Ne.slice(0,-1*je),de=de.slice(0,-1*je)),he.push(this.productions_[Ae[1]][0]),Ne.push(pn.$),de.push(pn._$),xe=Se[he[he.length-2]][he[he.length-1]],he.push(xe);break;case 3:return!0}}return!0}},Ee={EOF:1,parseError:function(le,oe){if(!this.yy.parser)throw new Error(le);this.yy.parser.parseError(le,oe)},setInput:function(le,oe){return this.yy=oe||this.yy||{},this._input=le,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 le=this._input[0];return this.yytext+=le,this.yyleng++,this.offset++,this.match+=le,this.matched+=le,le.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),le},unput:function(le){var oe=le.length,he=le.split(/(?:\r\n?|\n)/g);this._input=le+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-oe),this.offset-=oe;var be=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),he.length-1&&(this.yylineno-=he.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:he?(he.length===be.length?this.yylloc.first_column:0)+be[be.length-he.length].length-he[0].length:this.yylloc.first_column-oe},this.options.ranges&&(this.yylloc.range=[Ne[0],Ne[0]+this.yyleng-oe]),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(le){this.unput(this.match.slice(le))},pastInput:function(){var le=this.matched.substr(0,this.matched.length-this.match.length);return(le.length>20?"...":"")+le.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var le=this.match;return le.length<20&&(le+=this._input.substr(0,20-le.length)),(le.substr(0,20)+(le.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var le=this.pastInput(),oe=new Array(le.length+1).join("-");return le+this.upcomingInput()+`
`+oe+"^"},test_match:function(le,oe){var he,be,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))),(be=le[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=be.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:be?be[be.length-1].length-be[be.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+le[0].length},this.yytext+=le[0],this.match+=le[0],this.matches=le,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(le[0].length),this.matched+=le[0],he=this.performAction.call(this,this.yy,this,oe,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),he)return he;if(this._backtrack){for(var de in Ne)this[de]=Ne[de];return!1}return!1},next:function(){if(this.done)return this.EOF;var le,oe,he,be;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var Ne=this._currentRules(),de=0;de<Ne.length;de++)if((he=this._input.match(this.rules[Ne[de]]))&&(!oe||he[0].length>oe[0].length)){if(oe=he,be=de,this.options.backtrack_lexer){if((le=this.test_match(he,Ne[de]))!==!1)return le;if(this._backtrack){oe=!1;continue}return!1}if(!this.options.flex)break}return oe?(le=this.test_match(oe,Ne[be]))!==!1&&le: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(le){this.conditionStack.push(le)},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(le){return(le=this.conditionStack.length-1-Math.abs(le||0))>=0?this.conditionStack[le]:"INITIAL"},pushState:function(le){this.begin(le)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(le,oe,he,be){switch(he){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(),oe.yytext=oe.yytext.slice(0,-8).trim(),23;case 28:case 31:return this.popState(),oe.yytext=oe.yytext.slice(0,-8).trim(),24;case 29:case 32:return this.popState(),oe.yytext=oe.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(),oe.yytext=oe.yytext.substr(2).trim(),29;case 57:return this.popState(),oe.yytext=oe.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 oe.yytext=oe.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 Pe(){this.yy={}}return ae.lexer=Ee,Pe.prototype=ae,ae.Parser=Pe,new Pe}();O.parser=v,O.Parser=v.Parser,O.parse=function(){return v.parse.apply(v,arguments)},O.main=function(f){f[1]||(console.log("Usage: "+f[0]+" FILE"),process.exit(1));var k=p(3069).readFileSync(p(6470).normalize(f[1]),"utf8");return O.parser.parse(k)},p.c[p.s]===S&&O.main(process.argv.slice(1))},9763:(S,O,p)=>{S=p.nmd(S);var v=function(){var f=function(at,vt,At,Zt){for(At=At||{},Zt=at.length;Zt--;At[at[Zt]]=vt);return At},k=[1,2],y=[1,5],C=[6,9,11,17,18,20,22,23,24,26],A=[1,15],M=[1,16],R=[1,17],B=[1,18],Y=[1,19],G=[1,20],Q=[1,24],K=[4,6,9,11,17,18,20,22,23,24,26],gt={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,vt,At,Zt,zt,xt,jt){var Bt=xt.length-1;switch(zt){case 1:return xt[Bt-1];case 3:case 7:case 8:this.$=[];break;case 4:xt[Bt-1].push(xt[Bt]),this.$=xt[Bt-1];break;case 5:case 6:this.$=xt[Bt];break;case 11:Zt.setTitle(xt[Bt].substr(6)),this.$=xt[Bt].substr(6);break;case 12:this.$=xt[Bt].trim(),Zt.setTitle(this.$);break;case 13:case 14:this.$=xt[Bt].trim(),Zt.setAccDescription(this.$);break;case 15:Zt.addSection(xt[Bt].substr(8)),this.$=xt[Bt].substr(8);break;case 16:Zt.addTask(xt[Bt-1],xt[Bt]),this.$="task";break;case 18:Zt.parseDirective("%%{","open_directive");break;case 19:Zt.parseDirective(xt[Bt],"type_directive");break;case 20:xt[Bt]=xt[Bt].trim().replace(/'/g,'"'),Zt.parseDirective(xt[Bt],"arg_directive");break;case 21:Zt.parseDirective("}%%","close_directive","journey")}},table:[{3:1,4:k,7:3,12:4,26:y},{1:[3]},f(C,[2,3],{5:6}),{3:7,4:k,7:3,12:4,26:y},{13:8,27:[1,9]},{27:[2,18]},{6:[1,10],7:21,8:11,9:[1,12],10:13,11:[1,14],12:4,17:A,18:M,20:R,22:B,23:Y,24:G,26:y},{1:[2,2]},{14:22,15:[1,23],29:Q},f([15,29],[2,19]),f(C,[2,8],{1:[2,1]}),f(C,[2,4]),{7:21,10:25,12:4,17:A,18:M,20:R,22:B,23:Y,24:G,26:y},f(C,[2,6]),f(C,[2,7]),f(C,[2,11]),{19:[1,26]},{21:[1,27]},f(C,[2,14]),f(C,[2,15]),{25:[1,28]},f(C,[2,17]),{11:[1,29]},{16:30,28:[1,31]},{11:[2,21]},f(C,[2,5]),f(C,[2,12]),f(C,[2,13]),f(C,[2,16]),f(K,[2,9]),{14:32,29:Q},{29:[2,20]},{11:[1,33]},f(K,[2,10])],defaultActions:{5:[2,18],7:[2,2],24:[2,21],31:[2,20]},parseError:function(at,vt){if(!vt.recoverable){var At=new Error(at);throw At.hash=vt,At}this.trace(at)},parse:function(at){var vt=this,At=[0],Zt=[],zt=[null],xt=[],jt=this.table,Bt="",lt=0,et=0,st=0,$=2,Dt=1,z=xt.slice.call(arguments,1),Kt=Object.create(this.lexer),_t={yy:{}};for(var ae in this.yy)Object.prototype.hasOwnProperty.call(this.yy,ae)&&(_t.yy[ae]=this.yy[ae]);Kt.setInput(at,_t.yy),_t.yy.lexer=Kt,_t.yy.parser=this,Kt.yylloc===void 0&&(Kt.yylloc={});var Ee=Kt.yylloc;xt.push(Ee);var Pe=Kt.options&&Kt.options.ranges;function le(){var It;return typeof(It=Zt.pop()||Kt.lex()||Dt)!="number"&&(It instanceof Array&&(It=(Zt=It).pop()),It=vt.symbols_[It]||It),It}typeof _t.yy.parseError=="function"?this.parseError=_t.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var oe,he,be,Ne,de,Se,te,_e,wt,pe={};;){if(be=At[At.length-1],this.defaultActions[be]?Ne=this.defaultActions[be]:(oe==null&&(oe=le()),Ne=jt[be]&&jt[be][oe]),Ne===void 0||!Ne.length||!Ne[0]){var mt="";for(Se in wt=[],jt[be])this.terminals_[Se]&&Se>$&&wt.push("'"+this.terminals_[Se]+"'");mt=Kt.showPosition?"Parse error on line "+(lt+1)+`:
`+Kt.showPosition()+`
Expecting `+wt.join(", ")+", got '"+(this.terminals_[oe]||oe)+"'":"Parse error on line "+(lt+1)+": Unexpected "+(oe==Dt?"end of input":"'"+(this.terminals_[oe]||oe)+"'"),this.parseError(mt,{text:Kt.match,token:this.terminals_[oe]||oe,line:Kt.yylineno,loc:Ee,expected:wt})}if(Ne[0]instanceof Array&&Ne.length>1)throw new Error("Parse Error: multiple actions possible at state: "+be+", token: "+oe);switch(Ne[0]){case 1:At.push(oe),zt.push(Kt.yytext),xt.push(Kt.yylloc),At.push(Ne[1]),oe=null,he?(oe=he,he=null):(et=Kt.yyleng,Bt=Kt.yytext,lt=Kt.yylineno,Ee=Kt.yylloc,st>0);break;case 2:if(te=this.productions_[Ne[1]][1],pe.$=zt[zt.length-te],pe._$={first_line:xt[xt.length-(te||1)].first_line,last_line:xt[xt.length-1].last_line,first_column:xt[xt.length-(te||1)].first_column,last_column:xt[xt.length-1].last_column},Pe&&(pe._$.range=[xt[xt.length-(te||1)].range[0],xt[xt.length-1].range[1]]),(de=this.performAction.apply(pe,[Bt,et,lt,_t.yy,Ne[1],zt,xt].concat(z)))!==void 0)return de;te&&(At=At.slice(0,-1*te*2),zt=zt.slice(0,-1*te),xt=xt.slice(0,-1*te)),At.push(this.productions_[Ne[1]][0]),zt.push(pe.$),xt.push(pe._$),_e=jt[At[At.length-2]][At[At.length-1]],At.push(_e);break;case 3:return!0}}return!0}},tt={EOF:1,parseError:function(at,vt){if(!this.yy.parser)throw new Error(at);this.yy.parser.parseError(at,vt)},setInput:function(at,vt){return this.yy=vt||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 vt=at.length,At=at.split(/(?:\r\n?|\n)/g);this._input=at+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-vt),this.offset-=vt;var Zt=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),At.length-1&&(this.yylineno-=At.length-1);var zt=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:At?(At.length===Zt.length?this.yylloc.first_column:0)+Zt[Zt.length-At.length].length-At[0].length:this.yylloc.first_column-vt},this.options.ranges&&(this.yylloc.range=[zt[0],zt[0]+this.yyleng-vt]),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(),vt=new Array(at.length+1).join("-");return at+this.upcomingInput()+`
`+vt+"^"},test_match:function(at,vt){var At,Zt,zt;if(this.options.backtrack_lexer&&(zt={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&&(zt.yylloc.range=this.yylloc.range.slice(0))),(Zt=at[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=Zt.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:Zt?Zt[Zt.length-1].length-Zt[Zt.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+at[0].length},this.yytext+=at[0],this.match+=at[0],this.matches=at,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(at[0].length),this.matched+=at[0],At=this.performAction.call(this,this.yy,this,vt,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),At)return At;if(this._backtrack){for(var xt in zt)this[xt]=zt[xt];return!1}return!1},next:function(){if(this.done)return this.EOF;var at,vt,At,Zt;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var zt=this._currentRules(),xt=0;xt<zt.length;xt++)if((At=this._input.match(this.rules[zt[xt]]))&&(!vt||At[0].length>vt[0].length)){if(vt=At,Zt=xt,this.options.backtrack_lexer){if((at=this.test_match(At,zt[xt]))!==!1)return at;if(this._backtrack){vt=!1;continue}return!1}if(!this.options.flex)break}return vt?(at=this.test_match(vt,zt[Zt]))!==!1&&at:this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(at){this.conditionStack.push(at)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(at){return(at=this.conditionStack.length-1-Math.abs(at||0))>=0?this.conditionStack[at]:"INITIAL"},pushState:function(at){this.begin(at)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(at,vt,At,Zt){switch(At){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 Lt(){this.yy={}}return gt.lexer=tt,Lt.prototype=gt,gt.Parser=Lt,new Lt}();O.parser=v,O.Parser=v.Parser,O.parse=function(){return v.parse.apply(v,arguments)},O.main=function(f){f[1]||(console.log("Usage: "+f[0]+" FILE"),process.exit(1));var k=p(9143).readFileSync(p(6470).normalize(f[1]),"utf8");return O.parser.parse(k)},p.c[p.s]===S&&O.main(process.argv.slice(1))},7967:(S,O)=>{O.N=void 0;var p=/^([^\w]*)(javascript|data|vbscript)/im,v=/&#(\w+)(^\w|;)?/g,f=/[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim,k=/^([^:]+):/gm,y=[".","/"];O.N=function(C){var A,M=(A=C||"",A.replace(v,function(Y,G){return String.fromCharCode(G)})).replace(f,"").trim();if(!M)return"about:blank";if(function(Y){return y.indexOf(Y[0])>-1}(M))return M;var R=M.match(k);if(!R)return M;var B=R[0];return p.test(B)?"about:blank":M}},3841:S=>{S.exports=function(O,p){return O.intersect(p)}},8968:(S,O,p)=>{p.d(O,{Z:()=>K6});var v=p(1941),f=p.n(v),k={debug:1,info:2,warn:3,error:4,fatal:5},y={debug:function(){},info:function(){},warn:function(){},error:function(){},fatal:function(){}},C=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"fatal";isNaN(t)&&(t=t.toLowerCase(),k[t]!==void 0&&(t=k[t])),y.trace=function(){},y.debug=function(){},y.info=function(){},y.warn=function(){},y.error=function(){},y.fatal=function(){},t<=k.fatal&&(y.fatal=console.error?console.error.bind(console,A("FATAL"),"color: orange"):console.log.bind(console,"\x1B[35m",A("FATAL"))),t<=k.error&&(y.error=console.error?console.error.bind(console,A("ERROR"),"color: orange"):console.log.bind(console,"\x1B[31m",A("ERROR"))),t<=k.warn&&(y.warn=console.warn?console.warn.bind(console,A("WARN"),"color: orange"):console.log.bind(console,"\x1B[33m",A("WARN"))),t<=k.info&&(y.info=console.info?console.info.bind(console,A("INFO"),"color: lightblue"):console.log.bind(console,"\x1B[34m",A("INFO"))),t<=k.debug&&(y.debug=console.debug?console.debug.bind(console,A("DEBUG"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",A("DEBUG")))},A=function(t){var e=f()().format("ss.SSS");return"%c".concat(e," : ").concat(t," : ")};function M(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 c of t)(c=e(c,++a,t))!=null&&(r<c||r===void 0&&c>=c)&&(r=c)}return r}function R(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 c of t)(c=e(c,++a,t))!=null&&(r>c||r===void 0&&c>=c)&&(r=c)}return r}function B(t){return t}var Y=1e-6;function G(t){return"translate("+t+",0)"}function Q(t){return"translate(0,"+t+")"}function K(t){return e=>+t(e)}function gt(t,e){return e=Math.max(0,t.bandwidth()-2*e)/2,t.round()&&(e=Math.round(e)),r=>+t(r)+e}function tt(){return!this.__axis}function Lt(t,e){var r=[],a=null,c=null,u=6,h=6,g=3,x=typeof window!="undefined"&&window.devicePixelRatio>1?0:.5,_=t===1||t===4?-1:1,N=t===4||t===2?"x":"y",F=t===1||t===3?G:Q;function P(H){var ct=a==null?e.ticks?e.ticks.apply(e,r):e.domain():a,J=c==null?e.tickFormat?e.tickFormat.apply(e,r):B:c,yt=Math.max(u,0)+g,ft=e.range(),kt=+ft[0]+x,Tt=+ft[ft.length-1]+x,qt=(e.bandwidth?gt:K)(e.copy(),x),ee=H.selection?H.selection():H,Ot=ee.selectAll(".domain").data([null]),Xt=ee.selectAll(".tick").data(ct,e).order(),Ht=Xt.exit(),Et=Xt.enter().append("g").attr("class","tick"),Mt=Xt.select("line"),bt=Xt.select("text");Ot=Ot.merge(Ot.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),Xt=Xt.merge(Et),Mt=Mt.merge(Et.append("line").attr("stroke","currentColor").attr(N+"2",_*u)),bt=bt.merge(Et.append("text").attr("fill","currentColor").attr(N,_*yt).attr("dy",t===1?"0em":t===3?"0.71em":"0.32em")),H!==ee&&(Ot=Ot.transition(H),Xt=Xt.transition(H),Mt=Mt.transition(H),bt=bt.transition(H),Ht=Ht.transition(H).attr("opacity",Y).attr("transform",function(ut){return isFinite(ut=qt(ut))?F(ut+x):this.getAttribute("transform")}),Et.attr("opacity",Y).attr("transform",function(ut){var Nt=this.parentNode.__axis;return F((Nt&&isFinite(Nt=Nt(ut))?Nt:qt(ut))+x)})),Ht.remove(),Ot.attr("d",t===4||t===2?h?"M"+_*h+","+kt+"H"+x+"V"+Tt+"H"+_*h:"M"+x+","+kt+"V"+Tt:h?"M"+kt+","+_*h+"V"+x+"H"+Tt+"V"+_*h:"M"+kt+","+x+"H"+Tt),Xt.attr("opacity",1).attr("transform",function(ut){return F(qt(ut)+x)}),Mt.attr(N+"2",_*u),bt.attr(N,_*yt).text(J),ee.filter(tt).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",t===2?"start":t===4?"end":"middle"),ee.each(function(){this.__axis=qt})}return P.scale=function(H){return arguments.length?(e=H,P):e},P.ticks=function(){return r=Array.from(arguments),P},P.tickArguments=function(H){return arguments.length?(r=H==null?[]:Array.from(H),P):r.slice()},P.tickValues=function(H){return arguments.length?(a=H==null?null:Array.from(H),P):a&&a.slice()},P.tickFormat=function(H){return arguments.length?(c=H,P):c},P.tickSize=function(H){return arguments.length?(u=h=+H,P):u},P.tickSizeInner=function(H){return arguments.length?(u=+H,P):u},P.tickSizeOuter=function(H){return arguments.length?(h=+H,P):h},P.tickPadding=function(H){return arguments.length?(g=+H,P):g},P.offset=function(H){return arguments.length?(x=+H,P):x},P}function at(){}function vt(t){return t==null?at:function(){return this.querySelector(t)}}function At(t){return t==null?[]:Array.isArray(t)?t:Array.from(t)}function Zt(){return[]}function zt(t){return t==null?Zt:function(){return this.querySelectorAll(t)}}function xt(t){return function(){return this.matches(t)}}function jt(t){return function(e){return e.matches(t)}}var Bt=Array.prototype.find;function lt(){return this.firstElementChild}var et=Array.prototype.filter;function st(){return Array.from(this.children)}function $(t){return new Array(t.length)}function Dt(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}function z(t){return function(){return t}}function Kt(t,e,r,a,c,u){for(var h,g=0,x=e.length,_=u.length;g<_;++g)(h=e[g])?(h.__data__=u[g],a[g]=h):r[g]=new Dt(t,u[g]);for(;g<x;++g)(h=e[g])&&(c[g]=h)}function _t(t,e,r,a,c,u,h){var g,x,_,N=new Map,F=e.length,P=u.length,H=new Array(F);for(g=0;g<F;++g)(x=e[g])&&(H[g]=_=h.call(x,x.__data__,g,e)+"",N.has(_)?c[g]=x:N.set(_,x));for(g=0;g<P;++g)_=h.call(t,u[g],g,u)+"",(x=N.get(_))?(a[g]=x,x.__data__=u[g],N.delete(_)):r[g]=new Dt(t,u[g]);for(g=0;g<F;++g)(x=e[g])&&N.get(H[g])===x&&(c[g]=x)}function ae(t){return t.__data__}function Ee(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}function Pe(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}Dt.prototype={constructor:Dt,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 le="http://www.w3.org/1999/xhtml";const oe={svg:"http://www.w3.org/2000/svg",xhtml:le,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function he(t){var e=t+="",r=e.indexOf(":");return r>=0&&(e=t.slice(0,r))!=="xmlns"&&(t=t.slice(r+1)),oe.hasOwnProperty(e)?{space:oe[e],local:t}:t}function be(t){return function(){this.removeAttribute(t)}}function Ne(t){return function(){this.removeAttributeNS(t.space,t.local)}}function de(t,e){return function(){this.setAttribute(t,e)}}function Se(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function te(t,e){return function(){var r=e.apply(this,arguments);r==null?this.removeAttribute(t):this.setAttribute(t,r)}}function _e(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 wt(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function pe(t){return function(){this.style.removeProperty(t)}}function mt(t,e,r){return function(){this.style.setProperty(t,e,r)}}function It(t,e,r){return function(){var a=e.apply(this,arguments);a==null?this.style.removeProperty(t):this.style.setProperty(t,a,r)}}function St(t,e){return t.style.getPropertyValue(e)||wt(t).getComputedStyle(t,null).getPropertyValue(e)}function nt(t){return function(){delete this[t]}}function ue(t,e){return function(){this[t]=e}}function Rt(t,e){return function(){var r=e.apply(this,arguments);r==null?delete this[t]:this[t]=r}}function dn(t){return t.trim().split(/^|\s+/)}function De(t){return t.classList||new Ue(t)}function Ue(t){this._node=t,this._names=dn(t.getAttribute("class")||"")}function Ve(t,e){for(var r=De(t),a=-1,c=e.length;++a<c;)r.add(e[a])}function Je(t,e){for(var r=De(t),a=-1,c=e.length;++a<c;)r.remove(e[a])}function en(t){return function(){Ve(this,t)}}function Ae(t){return function(){Je(this,t)}}function qe(t,e){return function(){(e.apply(this,arguments)?Ve:Je)(this,t)}}function rn(){this.textContent=""}function je(t){return function(){this.textContent=t}}function xe(t){return function(){var e=t.apply(this,arguments);this.textContent=e==null?"":e}}function Ze(){this.innerHTML=""}function pn(t){return function(){this.innerHTML=t}}function Qn(t){return function(){var e=t.apply(this,arguments);this.innerHTML=e==null?"":e}}function Xe(){this.nextSibling&&this.parentNode.appendChild(this)}function nn(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Sr(t){return function(){var e=this.ownerDocument,r=this.namespaceURI;return r===le&&e.documentElement.namespaceURI===le?e.createElement(t):e.createElementNS(r,t)}}function Dr(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function yn(t){var e=he(t);return(e.local?Dr:Sr)(e)}function An(){return null}function fn(){var t=this.parentNode;t&&t.removeChild(this)}function wn(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function Dn(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function gn(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 Yn(t){return function(){var e=this.__on;if(e){for(var r,a=0,c=-1,u=e.length;a<u;++a)r=e[a],t.type&&r.type!==t.type||r.name!==t.name?e[++c]=r:this.removeEventListener(r.type,r.listener,r.options);++c?e.length=c:delete this.__on}}}function Ln(t,e,r){return function(){var a,c=this.__on,u=function(x){return function(_){x.call(this,_,this.__data__)}}(e);if(c){for(var h=0,g=c.length;h<g;++h)if((a=c[h]).type===t.type&&a.name===t.name)return this.removeEventListener(a.type,a.listener,a.options),this.addEventListener(a.type,a.listener=u,a.options=r),void(a.value=e)}this.addEventListener(t.type,u,r),a={type:t.type,name:t.name,value:e,listener:u,options:r},c?c.push(a):this.__on=[a]}}function Pr(t,e,r){var a=wt(t),c=a.CustomEvent;typeof c=="function"?c=new c(e,r):(c=a.document.createEvent("Event"),r?(c.initEvent(e,r.bubbles,r.cancelable),c.detail=r.detail):c.initEvent(e,!1,!1)),t.dispatchEvent(c)}function Wn(t,e){return function(){return Pr(this,t,e)}}function Xn(t,e){return function(){return Pr(this,t,e.apply(this,arguments))}}Ue.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 Kn=[null];function Mn(t,e){this._groups=t,this._parents=e}function Un(){return new Mn([[document.documentElement]],Kn)}Mn.prototype=Un.prototype={constructor:Mn,select:function(t){typeof t!="function"&&(t=vt(t));for(var e=this._groups,r=e.length,a=new Array(r),c=0;c<r;++c)for(var u,h,g=e[c],x=g.length,_=a[c]=new Array(x),N=0;N<x;++N)(u=g[N])&&(h=t.call(u,u.__data__,N,g))&&("__data__"in u&&(h.__data__=u.__data__),_[N]=h);return new Mn(a,this._parents)},selectAll:function(t){t=typeof t=="function"?function(N){return function(){return At(N.apply(this,arguments))}}(t):zt(t);for(var e=this._groups,r=e.length,a=[],c=[],u=0;u<r;++u)for(var h,g=e[u],x=g.length,_=0;_<x;++_)(h=g[_])&&(a.push(t.call(h,h.__data__,_,g)),c.push(h));return new Mn(a,c)},selectChild:function(t){return this.select(t==null?lt:function(e){return function(){return Bt.call(this.children,e)}}(typeof t=="function"?t:jt(t)))},selectChildren:function(t){return this.selectAll(t==null?st:function(e){return function(){return et.call(this.children,e)}}(typeof t=="function"?t:jt(t)))},filter:function(t){typeof t!="function"&&(t=xt(t));for(var e=this._groups,r=e.length,a=new Array(r),c=0;c<r;++c)for(var u,h=e[c],g=h.length,x=a[c]=[],_=0;_<g;++_)(u=h[_])&&t.call(u,u.__data__,_,h)&&x.push(u);return new Mn(a,this._parents)},data:function(t,e){if(!arguments.length)return Array.from(this,ae);var r=e?_t:Kt,a=this._parents,c=this._groups;typeof t!="function"&&(t=z(t));for(var u=c.length,h=new Array(u),g=new Array(u),x=new Array(u),_=0;_<u;++_){var N=a[_],F=c[_],P=F.length,H=Ee(t.call(N,N&&N.__data__,_,a)),ct=H.length,J=g[_]=new Array(ct),yt=h[_]=new Array(ct),ft=x[_]=new Array(P);r(N,F,J,yt,ft,H,e);for(var kt,Tt,qt=0,ee=0;qt<ct;++qt)if(kt=J[qt]){for(qt>=ee&&(ee=qt+1);!(Tt=yt[ee])&&++ee<ct;);kt._next=Tt||null}}return(h=new Mn(h,a))._enter=g,h._exit=x,h},enter:function(){return new Mn(this._enter||this._groups.map($),this._parents)},exit:function(){return new Mn(this._exit||this._groups.map($),this._parents)},join:function(t,e,r){var a=this.enter(),c=this,u=this.exit();return typeof t=="function"?(a=t(a))&&(a=a.selection()):a=a.append(t+""),e!=null&&(c=e(c))&&(c=c.selection()),r==null?u.remove():r(u),a&&c?a.merge(c).order():c},merge:function(t){for(var e=t.selection?t.selection():t,r=this._groups,a=e._groups,c=r.length,u=a.length,h=Math.min(c,u),g=new Array(c),x=0;x<h;++x)for(var _,N=r[x],F=a[x],P=N.length,H=g[x]=new Array(P),ct=0;ct<P;++ct)(_=N[ct]||F[ct])&&(H[ct]=_);for(;x<c;++x)g[x]=r[x];return new Mn(g,this._parents)},selection:function(){return this},order:function(){for(var t=this._groups,e=-1,r=t.length;++e<r;)for(var a,c=t[e],u=c.length-1,h=c[u];--u>=0;)(a=c[u])&&(h&&4^a.compareDocumentPosition(h)&&h.parentNode.insertBefore(a,h),h=a);return this},sort:function(t){function e(F,P){return F&&P?t(F.__data__,P.__data__):!F-!P}t||(t=Pe);for(var r=this._groups,a=r.length,c=new Array(a),u=0;u<a;++u){for(var h,g=r[u],x=g.length,_=c[u]=new Array(x),N=0;N<x;++N)(h=g[N])&&(_[N]=h);_.sort(e)}return new Mn(c,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],c=0,u=a.length;c<u;++c){var h=a[c];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 c,u=e[r],h=0,g=u.length;h<g;++h)(c=u[h])&&t.call(c,c.__data__,h,u);return this},attr:function(t,e){var r=he(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?Ne:be:typeof e=="function"?r.local?_e:te:r.local?Se:de)(r,e))},style:function(t,e,r){return arguments.length>1?this.each((e==null?pe:typeof e=="function"?It:mt)(t,e,r==null?"":r)):St(this.node(),t)},property:function(t,e){return arguments.length>1?this.each((e==null?nt:typeof e=="function"?Rt:ue)(t,e)):this.node()[t]},classed:function(t,e){var r=dn(t+"");if(arguments.length<2){for(var a=De(this.node()),c=-1,u=r.length;++c<u;)if(!a.contains(r[c]))return!1;return!0}return this.each((typeof e=="function"?qe:e?en:Ae)(r,e))},text:function(t){return arguments.length?this.each(t==null?rn:(typeof t=="function"?xe:je)(t)):this.node().textContent},html:function(t){return arguments.length?this.each(t==null?Ze:(typeof t=="function"?Qn:pn)(t)):this.node().innerHTML},raise:function(){return this.each(Xe)},lower:function(){return this.each(nn)},append:function(t){var e=typeof t=="function"?t:yn(t);return this.select(function(){return this.appendChild(e.apply(this,arguments))})},insert:function(t,e){var r=typeof t=="function"?t:yn(t),a=e==null?An:typeof e=="function"?e:vt(e);return this.select(function(){return this.insertBefore(r.apply(this,arguments),a.apply(this,arguments)||null)})},remove:function(){return this.each(fn)},clone:function(t){return this.select(t?Dn:wn)},datum:function(t){return arguments.length?this.property("__data__",t):this.node().__data__},on:function(t,e,r){var a,c,u=gn(t+""),h=u.length;if(!(arguments.length<2)){for(g=e?Ln:Yn,a=0;a<h;++a)this.each(g(u[a],e,r));return this}var g=this.node().__on;if(g){for(var x,_=0,N=g.length;_<N;++_)for(a=0,x=g[_];a<h;++a)if((c=u[a]).type===x.type&&c.name===x.name)return x.value}},dispatch:function(t,e){return this.each((typeof e=="function"?Xn:Wn)(t,e))},[Symbol.iterator]:function*(){for(var t=this._groups,e=0,r=t.length;e<r;++e)for(var a,c=t[e],u=0,h=c.length;u<h;++u)(a=c[u])&&(yield a)}};const Bn=Un;var vn={value:()=>{}};function Vn(){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 sn(a)}function sn(t){this._=t}function Pn(t,e){return t.trim().split(/^|\s+/).map(function(r){var a="",c=r.indexOf(".");if(c>=0&&(a=r.slice(c+1),r=r.slice(0,c)),r&&!e.hasOwnProperty(r))throw new Error("unknown type: "+r);return{type:r,name:a}})}function mn(t,e){for(var r,a=0,c=t.length;a<c;++a)if((r=t[a]).name===e)return r.value}function Ca(t,e,r){for(var a=0,c=t.length;a<c;++a)if(t[a].name===e){t[a]=vn,t=t.slice(0,a).concat(t.slice(a+1));break}return r!=null&&t.push({name:e,value:r}),t}sn.prototype=Vn.prototype={constructor:sn,on:function(t,e){var r,a=this._,c=Pn(t+"",a),u=-1,h=c.length;if(!(arguments.length<2)){if(e!=null&&typeof e!="function")throw new Error("invalid callback: "+e);for(;++u<h;)if(r=(t=c[u]).type)a[r]=Ca(a[r],t.name,e);else if(e==null)for(r in a)a[r]=Ca(a[r],t.name,null);return this}for(;++u<h;)if((r=(t=c[u]).type)&&(r=mn(a[r],t.name)))return r},copy:function(){var t={},e=this._;for(var r in e)t[r]=e[r].slice();return new sn(t)},call:function(t,e){if((r=arguments.length-2)>0)for(var r,a,c=new Array(r),u=0;u<r;++u)c[u]=arguments[u+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(u=0,r=(a=this._[t]).length;u<r;++u)a[u].value.apply(e,c)},apply:function(t,e,r){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var a=this._[t],c=0,u=a.length;c<u;++c)a[c].value.apply(e,r)}};const uo=Vn;var Fi,Fn,ua=0,Pi=0,Lr=0,ti=0,Zr=0,Qr=0,jr=typeof performance=="object"&&performance.now?performance:Date,fi=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function di(){return Zr||(fi(cr),Zr=jr.now()+Qr)}function cr(){Zr=0}function Yr(){this._call=this._time=this._next=null}function ei(t,e,r){var a=new Yr;return a.restart(t,e,r),a}function Kr(){Zr=(ti=jr.now())+Qr,ua=Pi=0;try{(function(){di(),++ua;for(var t,e=Fi;e;)(t=Zr-e._time)>=0&&e._call.call(void 0,t),e=e._next;--ua})()}finally{ua=0,function(){for(var t,e,r=Fi,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:Fi=e);Fn=t,Ha(a)}(),Zr=0}}function Ti(){var t=jr.now(),e=t-ti;e>1e3&&(Qr-=e,ti=t)}function Ha(t){ua||(Pi&&(Pi=clearTimeout(Pi)),t-Zr>24?(t<1/0&&(Pi=setTimeout(Kr,t-jr.now()-Qr)),Lr&&(Lr=clearInterval(Lr))):(Lr||(ti=jr.now(),Lr=setInterval(Ti,1e3)),ua=1,fi(Kr)))}function Er(t,e,r){var a=new Yr;return e=e==null?0:+e,a.restart(c=>{a.stop(),t(c+e)},e,r),a}Yr.prototype=ei.prototype={constructor:Yr,restart:function(t,e,r){if(typeof t!="function")throw new TypeError("callback is not a function");r=(r==null?di():+r)+(e==null?0:+e),this._next||Fn===this||(Fn?Fn._next=this:Fi=this,Fn=this),this._call=t,this._time=r,Ha()},stop:function(){this._call&&(this._call=null,this._time=1/0,Ha())}};var Wa=uo("start","end","cancel","interrupt"),Va=[];function ra(t,e,r,a,c,u){var h=t.__transition;if(h){if(r in h)return}else t.__transition={};(function(g,x,_){var N,F=g.__transition;function P(J){var yt,ft,kt,Tt;if(_.state!==1)return ct();for(yt in F)if((Tt=F[yt]).name===_.name){if(Tt.state===3)return Er(P);Tt.state===4?(Tt.state=6,Tt.timer.stop(),Tt.on.call("interrupt",g,g.__data__,Tt.index,Tt.group),delete F[yt]):+yt<x&&(Tt.state=6,Tt.timer.stop(),Tt.on.call("cancel",g,g.__data__,Tt.index,Tt.group),delete F[yt])}if(Er(function(){_.state===3&&(_.state=4,_.timer.restart(H,_.delay,_.time),H(J))}),_.state=2,_.on.call("start",g,g.__data__,_.index,_.group),_.state===2){for(_.state=3,N=new Array(kt=_.tween.length),yt=0,ft=-1;yt<kt;++yt)(Tt=_.tween[yt].value.call(g,g.__data__,_.index,_.group))&&(N[++ft]=Tt);N.length=ft+1}}function H(J){for(var yt=J<_.duration?_.ease.call(null,J/_.duration):(_.timer.restart(ct),_.state=5,1),ft=-1,kt=N.length;++ft<kt;)N[ft].call(g,yt);_.state===5&&(_.on.call("end",g,g.__data__,_.index,_.group),ct())}function ct(){for(var J in _.state=6,_.timer.stop(),delete F[x],F)return;delete g.__transition}F[x]=_,_.timer=ei(function(J){_.state=1,_.timer.restart(P,_.delay,_.time),_.delay<=J&&P(J-_.delay)},0,_.time)})(t,r,{name:e,index:a,group:c,on:Wa,tween:Va,time:u.time,delay:u.delay,duration:u.duration,ease:u.ease,timer:null,state:0})}function un(t,e){var r=we(t,e);if(r.state>0)throw new Error("too late; already scheduled");return r}function On(t,e){var r=we(t,e);if(r.state>3)throw new Error("too late; already running");return r}function we(t,e){var r=t.__transition;if(!r||!(r=r[e]))throw new Error("transition not found");return r}function Be(t,e){return t=+t,e=+e,function(r){return t*(1-r)+e*r}}var sr,Ut=180/Math.PI,Ea={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function Gt(t,e,r,a,c,u){var h,g,x;return(h=Math.sqrt(t*t+e*e))&&(t/=h,e/=h),(x=t*r+e*a)&&(r-=t*x,a-=e*x),(g=Math.sqrt(r*r+a*a))&&(r/=g,a/=g,x/=g),t*a<e*r&&(t=-t,e=-e,x=-x,h=-h),{translateX:c,translateY:u,rotate:Math.atan2(e,t)*Ut,skewX:Math.atan(x)*Ut,scaleX:h,scaleY:g}}function zr(t,e,r,a){function c(u){return u.length?u.pop()+" ":""}return function(u,h){var g=[],x=[];return u=t(u),h=t(h),function(_,N,F,P,H,ct){if(_!==F||N!==P){var J=H.push("translate(",null,e,null,r);ct.push({i:J-4,x:Be(_,F)},{i:J-2,x:Be(N,P)})}else(F||P)&&H.push("translate("+F+e+P+r)}(u.translateX,u.translateY,h.translateX,h.translateY,g,x),function(_,N,F,P){_!==N?(_-N>180?N+=360:N-_>180&&(_+=360),P.push({i:F.push(c(F)+"rotate(",null,a)-2,x:Be(_,N)})):N&&F.push(c(F)+"rotate("+N+a)}(u.rotate,h.rotate,g,x),function(_,N,F,P){_!==N?P.push({i:F.push(c(F)+"skewX(",null,a)-2,x:Be(_,N)}):N&&F.push(c(F)+"skewX("+N+a)}(u.skewX,h.skewX,g,x),function(_,N,F,P,H,ct){if(_!==F||N!==P){var J=H.push(c(H)+"scale(",null,",",null,")");ct.push({i:J-4,x:Be(_,F)},{i:J-2,x:Be(N,P)})}else F===1&&P===1||H.push(c(H)+"scale("+F+","+P+")")}(u.scaleX,u.scaleY,h.scaleX,h.scaleY,g,x),u=h=null,function(_){for(var N,F=-1,P=x.length;++F<P;)g[(N=x[F]).i]=N.x(_);return g.join("")}}}var Zo=zr(function(t){const e=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(t+"");return e.isIdentity?Ea:Gt(e.a,e.b,e.c,e.d,e.e,e.f)},"px, ","px)","deg)"),Qo=zr(function(t){return t==null?Ea:(sr||(sr=document.createElementNS("http://www.w3.org/2000/svg","g")),sr.setAttribute("transform",t),(t=sr.transform.baseVal.consolidate())?Gt((t=t.matrix).a,t.b,t.c,t.d,t.e,t.f):Ea)},", ",")",")");function Ko(t,e){var r,a;return function(){var c=On(this,t),u=c.tween;if(u!==r){for(var h=0,g=(a=r=u).length;h<g;++h)if(a[h].name===e){(a=a.slice()).splice(h,1);break}}c.tween=a}}function lo(t,e,r){var a,c;if(typeof r!="function")throw new Error;return function(){var u=On(this,t),h=u.tween;if(h!==a){c=(a=h).slice();for(var g={name:e,value:r},x=0,_=c.length;x<_;++x)if(c[x].name===e){c[x]=g;break}x===_&&c.push(g)}u.tween=c}}function zn(t,e,r){var a=t._id;return t.each(function(){var c=On(this,a);(c.value||(c.value={}))[e]=r.apply(this,arguments)}),function(c){return we(c,a).value[e]}}function Ar(t,e,r){t.prototype=e.prototype=r,r.constructor=t}function pi(t,e){var r=Object.create(t.prototype);for(var a in e)r[a]=e[a];return r}function $r(){}var Hr=.7,Si=1/Hr,ji="\\s*([+-]?\\d+)\\s*",Mr="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",ni="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",gi=/^#([0-9a-f]{3,8})$/,pr=new RegExp("^rgb\\("+[ji,ji,ji]+"\\)$"),Xi=new RegExp("^rgb\\("+[ni,ni,ni]+"\\)$"),Yi=new RegExp("^rgba\\("+[ji,ji,ji,Mr]+"\\)$"),si=new RegExp("^rgba\\("+[ni,ni,ni,Mr]+"\\)$"),Ga=new RegExp("^hsl\\("+[Mr,ni,ni]+"\\)$"),Ai=new RegExp("^hsla\\("+[Mr,ni,ni,Mr]+"\\)$"),Ft={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 $e(){return this.rgb().formatHex()}function Ie(){return this.rgb().formatRgb()}function hr(t){var e,r;return t=(t+"").trim().toLowerCase(),(e=gi.exec(t))?(r=e[1].length,e=parseInt(e[1],16),r===6?Br(e):r===3?new Jr(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):r===8?ci(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):r===4?ci(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=pr.exec(t))?new Jr(e[1],e[2],e[3],1):(e=Xi.exec(t))?new Jr(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=Yi.exec(t))?ci(e[1],e[2],e[3],e[4]):(e=si.exec(t))?ci(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=Ga.exec(t))?ho(e[1],e[2]/100,e[3]/100,1):(e=Ai.exec(t))?ho(e[1],e[2]/100,e[3]/100,e[4]):Ft.hasOwnProperty(t)?Br(Ft[t]):t==="transparent"?new Jr(NaN,NaN,NaN,0):null}function Br(t){return new Jr(t>>16&255,t>>8&255,255&t,1)}function ci(t,e,r,a){return a<=0&&(t=e=r=NaN),new Jr(t,e,r,a)}function yi(t){return t instanceof $r||(t=hr(t)),t?new Jr((t=t.rgb()).r,t.g,t.b,t.opacity):new Jr}function Sa(t,e,r,a){return arguments.length===1?yi(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 zi(){return"#"+cc(this.r)+cc(this.g)+cc(this.b)}function Aa(){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 cc(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function ho(t,e,r,a){return a<=0?t=e=r=NaN:r<=0||r>=1?t=e=NaN:e<=0&&(t=NaN),new Ui(t,e,r,a)}function Uc(t){if(t instanceof Ui)return new Ui(t.h,t.s,t.l,t.opacity);if(t instanceof $r||(t=hr(t)),!t)return new Ui;if(t instanceof Ui)return t;var e=(t=t.rgb()).r/255,r=t.g/255,a=t.b/255,c=Math.min(e,r,a),u=Math.max(e,r,a),h=NaN,g=u-c,x=(u+c)/2;return g?(h=e===u?(r-a)/g+6*(r<a):r===u?(a-e)/g+2:(e-r)/g+4,g/=x<.5?u+c:2-u-c,h*=60):g=x>0&&x<1?0:h,new Ui(h,g,x,t.opacity)}function Ui(t,e,r,a){this.h=+t,this.s=+e,this.l=+r,this.opacity=+a}function ri(t,e,r){return 255*(t<60?e+(r-e)*t/60:t<180?r:t<240?e+(r-e)*(240-t)/60:e)}Ar($r,hr,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:$e,formatHex:$e,formatHsl:function(){return Uc(this).formatHsl()},formatRgb:Ie,toString:Ie}),Ar(Jr,Sa,pi($r,{brighter:function(t){return t=t==null?Si:Math.pow(Si,t),new Jr(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=t==null?Hr:Math.pow(Hr,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:zi,formatHex:zi,formatRgb:Aa,toString:Aa})),Ar(Ui,function(t,e,r,a){return arguments.length===1?Uc(t):new Ui(t,e,r,a==null?1:a)},pi($r,{brighter:function(t){return t=t==null?Si:Math.pow(Si,t),new Ui(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=t==null?Hr:Math.pow(Hr,t),new Ui(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,c=2*r-a;return new Jr(ri(t>=240?t-240:t+120,c,a),ri(t,c,a),ri(t<120?t+240:t-120,c,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 Mu=t=>()=>t;function Nu(t,e){var r=e-t;return r?function(a,c){return function(u){return a+u*c}}(t,r):Mu(isNaN(t)?e:t)}const Du=function t(e){var r=function(c){return(c=+c)==1?Nu:function(u,h){return h-u?function(g,x,_){return g=Math.pow(g,_),x=Math.pow(x,_)-g,_=1/_,function(N){return Math.pow(g+N*x,_)}}(u,h,c):Mu(isNaN(u)?h:u)}}(e);function a(c,u){var h=r((c=Sa(c)).r,(u=Sa(u)).r),g=r(c.g,u.g),x=r(c.b,u.b),_=Nu(c.opacity,u.opacity);return function(N){return c.r=h(N),c.g=g(N),c.b=x(N),c.opacity=_(N),c+""}}return a.gamma=t,a}(1);var Xa=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Lu=new RegExp(Xa.source,"g");function Bu(t,e){var r,a,c,u=Xa.lastIndex=Lu.lastIndex=0,h=-1,g=[],x=[];for(t+="",e+="";(r=Xa.exec(t))&&(a=Lu.exec(e));)(c=a.index)>u&&(c=e.slice(u,c),g[h]?g[h]+=c:g[++h]=c),(r=r[0])===(a=a[0])?g[h]?g[h]+=a:g[++h]=a:(g[++h]=null,x.push({i:h,x:Be(r,a)})),u=Lu.lastIndex;return u<e.length&&(c=e.slice(u),g[h]?g[h]+=c:g[++h]=c),g.length<2?x[0]?function(_){return function(N){return _(N)+""}}(x[0].x):function(_){return function(){return _}}(e):(e=x.length,function(_){for(var N,F=0;F<e;++F)g[(N=x[F]).i]=N.x(_);return g.join("")})}function Za(t,e){var r;return(typeof e=="number"?Be:e instanceof hr?Du:(r=hr(e))?(e=r,Du):Bu)(t,e)}function Ye(t){return function(){this.removeAttribute(t)}}function Zl(t){return function(){this.removeAttributeNS(t.space,t.local)}}function Or(t,e,r){var a,c,u=r+"";return function(){var h=this.getAttribute(t);return h===u?null:h===a?c:c=e(a=h,r)}}function qc(t,e,r){var a,c,u=r+"";return function(){var h=this.getAttributeNS(t.space,t.local);return h===u?null:h===a?c:c=e(a=h,r)}}function $c(t,e,r){var a,c,u;return function(){var h,g,x=r(this);if(x!=null)return(h=this.getAttribute(t))===(g=x+"")?null:h===a&&g===c?u:(c=g,u=e(a=h,x));this.removeAttribute(t)}}function Ou(t,e,r){var a,c,u;return function(){var h,g,x=r(this);if(x!=null)return(h=this.getAttributeNS(t.space,t.local))===(g=x+"")?null:h===a&&g===c?u:(c=g,u=e(a=h,x));this.removeAttributeNS(t.space,t.local)}}function Ma(t,e){return function(r){this.setAttribute(t,e.call(this,r))}}function mi(t,e){return function(r){this.setAttributeNS(t.space,t.local,e.call(this,r))}}function uc(t,e){var r,a;function c(){var u=e.apply(this,arguments);return u!==a&&(r=(a=u)&&mi(t,u)),r}return c._value=e,c}function Ql(t,e){var r,a;function c(){var u=e.apply(this,arguments);return u!==a&&(r=(a=u)&&Ma(t,u)),r}return c._value=e,c}function Iu(t,e){return function(){un(this,t).delay=+e.apply(this,arguments)}}function ko(t,e){return e=+e,function(){un(this,t).delay=e}}function Kl(t,e){return function(){On(this,t).duration=+e.apply(this,arguments)}}function H1(t,e){return e=+e,function(){On(this,t).duration=e}}function k0(t,e){if(typeof e!="function")throw new Error;return function(){On(this,t).ease=e}}function W1(t,e,r){var a,c,u=function(h){return(h+"").trim().split(/^|\s+/).every(function(g){var x=g.indexOf(".");return x>=0&&(g=g.slice(0,x)),!g||g==="start"})}(e)?un:On;return function(){var h=u(this,t),g=h.on;g!==a&&(c=(a=g).copy()).on(e,r),h.on=c}}var V1=Bn.prototype.constructor;function la(t){return function(){this.style.removeProperty(t)}}function G1(t,e,r){return function(a){this.style.setProperty(t,e.call(this,a),r)}}function Jl(t,e,r){var a,c;function u(){var h=e.apply(this,arguments);return h!==c&&(a=(c=h)&&G1(t,h,r)),a}return u._value=e,u}function th(t){return function(e){this.textContent=t.call(this,e)}}function To(t){var e,r;function a(){var c=t.apply(this,arguments);return c!==r&&(e=(r=c)&&th(c)),e}return a._value=t,a}var Hc=0;function Qa(t,e,r,a){this._groups=t,this._parents=e,this._name=r,this._id=a}function Wc(){return++Hc}var ha=Bn.prototype;Qa.prototype={constructor:Qa,select:function(t){var e=this._name,r=this._id;typeof t!="function"&&(t=vt(t));for(var a=this._groups,c=a.length,u=new Array(c),h=0;h<c;++h)for(var g,x,_=a[h],N=_.length,F=u[h]=new Array(N),P=0;P<N;++P)(g=_[P])&&(x=t.call(g,g.__data__,P,_))&&("__data__"in g&&(x.__data__=g.__data__),F[P]=x,ra(F[P],e,r,P,F,we(g,r)));return new Qa(u,this._parents,e,r)},selectAll:function(t){var e=this._name,r=this._id;typeof t!="function"&&(t=zt(t));for(var a=this._groups,c=a.length,u=[],h=[],g=0;g<c;++g)for(var x,_=a[g],N=_.length,F=0;F<N;++F)if(x=_[F]){for(var P,H=t.call(x,x.__data__,F,_),ct=we(x,r),J=0,yt=H.length;J<yt;++J)(P=H[J])&&ra(P,e,r,J,H,ct);u.push(H),h.push(x)}return new Qa(u,h,e,r)},selectChild:ha.selectChild,selectChildren:ha.selectChildren,filter:function(t){typeof t!="function"&&(t=xt(t));for(var e=this._groups,r=e.length,a=new Array(r),c=0;c<r;++c)for(var u,h=e[c],g=h.length,x=a[c]=[],_=0;_<g;++_)(u=h[_])&&t.call(u,u.__data__,_,h)&&x.push(u);return new Qa(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,c=r.length,u=Math.min(a,c),h=new Array(a),g=0;g<u;++g)for(var x,_=e[g],N=r[g],F=_.length,P=h[g]=new Array(F),H=0;H<F;++H)(x=_[H]||N[H])&&(P[H]=x);for(;g<a;++g)h[g]=e[g];return new Qa(h,this._parents,this._name,this._id)},selection:function(){return new V1(this._groups,this._parents)},transition:function(){for(var t=this._name,e=this._id,r=Wc(),a=this._groups,c=a.length,u=0;u<c;++u)for(var h,g=a[u],x=g.length,_=0;_<x;++_)if(h=g[_]){var N=we(h,e);ra(h,t,r,_,g,{time:N.time+N.delay+N.duration,delay:0,duration:N.duration,ease:N.ease})}return new Qa(a,this._parents,t,r)},call:ha.call,nodes:ha.nodes,node:ha.node,size:ha.size,empty:ha.empty,each:ha.each,on:function(t,e){var r=this._id;return arguments.length<2?we(this.node(),r).on.on(t):this.each(W1(r,t,e))},attr:function(t,e){var r=he(t),a=r==="transform"?Qo:Za;return this.attrTween(t,typeof e=="function"?(r.local?Ou:$c)(r,a,zn(this,"attr."+t,e)):e==null?(r.local?Zl:Ye)(r):(r.local?qc:Or)(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=he(t);return this.tween(r,(a.local?uc:Ql)(a,e))},style:function(t,e,r){var a=(t+="")=="transform"?Zo:Za;return e==null?this.styleTween(t,function(c,u){var h,g,x;return function(){var _=St(this,c),N=(this.style.removeProperty(c),St(this,c));return _===N?null:_===h&&N===g?x:x=u(h=_,g=N)}}(t,a)).on("end.style."+t,la(t)):typeof e=="function"?this.styleTween(t,function(c,u,h){var g,x,_;return function(){var N=St(this,c),F=h(this),P=F+"";return F==null&&(this.style.removeProperty(c),P=F=St(this,c)),N===P?null:N===g&&P===x?_:(x=P,_=u(g=N,F))}}(t,a,zn(this,"style."+t,e))).each(function(c,u){var h,g,x,_,N="style."+u,F="end."+N;return function(){var P=On(this,c),H=P.on,ct=P.value[N]==null?_||(_=la(u)):void 0;H===h&&x===ct||(g=(h=H).copy()).on(F,x=ct),P.on=g}}(this._id,t)):this.styleTween(t,function(c,u,h){var g,x,_=h+"";return function(){var N=St(this,c);return N===_?null:N===g?x:x=u(g=N,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,Jl(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}}(zn(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,To(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,c=we(this.node(),r).tween,u=0,h=c.length;u<h;++u)if((a=c[u]).name===t)return a.value;return null}return this.each((e==null?Ko:lo)(r,t,e))},delay:function(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?Iu:ko)(e,t)):we(this.node(),e).delay},duration:function(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?Kl:H1)(e,t)):we(this.node(),e).duration},ease:function(t){var e=this._id;return arguments.length?this.each(k0(e,t)):we(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;On(this,e).ease=a}}(this._id,t))},end:function(){var t,e,r=this,a=r._id,c=r.size();return new Promise(function(u,h){var g={value:h},x={value:function(){--c==0&&u()}};r.each(function(){var _=On(this,a),N=_.on;N!==t&&((e=(t=N).copy())._.cancel.push(g),e._.interrupt.push(g),e._.end.push(x)),_.on=e}),c===0&&u()})},[Symbol.iterator]:ha[Symbol.iterator]};var As={time:null,delay:0,duration:250,ease:function(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}};function Ru(t,e){for(var r;!(r=t.__transition)||!(r=r[e]);)if(!(t=t.parentNode))throw new Error(`transition ${e} not found`);return r}Bn.prototype.interrupt=function(t){return this.each(function(){(function(e,r){var a,c,u,h=e.__transition,g=!0;if(h){for(u in r=r==null?null:r+"",h)(a=h[u]).name===r?(c=a.state>2&&a.state<5,a.state=6,a.timer.stop(),a.on.call(c?"interrupt":"cancel",e,e.__data__,a.index,a.group),delete h[u]):g=!1;g&&delete e.__transition}})(this,t)})},Bn.prototype.transition=function(t){var e,r;t instanceof Qa?(e=t._id,t=t._name):(e=Wc(),(r=As).time=di(),t=t==null?null:t+"");for(var a=this._groups,c=a.length,u=0;u<c;++u)for(var h,g=a[u],x=g.length,_=0;_<x;++_)(h=g[_])&&ra(h,t,e,_,g,r||Ru(h,e));return new Qa(a,this._parents,t,e)};function Co(t,e,r){t.prototype=e.prototype=r,r.constructor=t}function qi(t,e){var r=Object.create(t.prototype);for(var a in e)r[a]=e[a];return r}function ui(){}var Ka=.7,Na=1/Ka,Zi="\\s*([+-]?\\d+)\\s*",Zn="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",T="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",I=/^#([0-9a-f]{3,8})$/,X=new RegExp("^rgb\\("+[Zi,Zi,Zi]+"\\)$"),ot=new RegExp("^rgb\\("+[T,T,T]+"\\)$"),Wt=new RegExp("^rgba\\("+[Zi,Zi,Zi,Zn]+"\\)$"),fe=new RegExp("^rgba\\("+[T,T,T,Zn]+"\\)$"),Te=new RegExp("^hsl\\("+[Zn,T,T]+"\\)$"),Le=new RegExp("^hsla\\("+[Zn,T,T,Zn]+"\\)$"),Oe={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 ze(){return this.rgb().formatHex()}function Qe(){return this.rgb().formatRgb()}function En(t){var e,r;return t=(t+"").trim().toLowerCase(),(e=I.exec(t))?(r=e[1].length,e=parseInt(e[1],16),r===6?xn(e):r===3?new ur(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):r===8?fr(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):r===4?fr(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=X.exec(t))?new ur(e[1],e[2],e[3],1):(e=ot.exec(t))?new ur(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=Wt.exec(t))?fr(e[1],e[2],e[3],e[4]):(e=fe.exec(t))?fr(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=Te.exec(t))?T0(e[1],e[2]/100,e[3]/100,1):(e=Le.exec(t))?T0(e[1],e[2]/100,e[3]/100,e[4]):Oe.hasOwnProperty(t)?xn(Oe[t]):t==="transparent"?new ur(NaN,NaN,NaN,0):null}function xn(t){return new ur(t>>16&255,t>>8&255,255&t,1)}function fr(t,e,r,a){return a<=0&&(t=e=r=NaN),new ur(t,e,r,a)}function gr(t){return t instanceof ui||(t=En(t)),t?new ur((t=t.rgb()).r,t.g,t.b,t.opacity):new ur}function Ir(t,e,r,a){return arguments.length===1?gr(t):new ur(t,e,r,a==null?1:a)}function ur(t,e,r,a){this.r=+t,this.g=+e,this.b=+r,this.opacity=+a}function fa(){return"#"+eh(this.r)+eh(this.g)+eh(this.b)}function Ms(){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 eh(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function T0(t,e,r,a){return a<=0?t=e=r=NaN:r<=0||r>=1?t=e=NaN:e<=0&&(t=NaN),new Eo(t,e,r,a)}function nh(t){if(t instanceof Eo)return new Eo(t.h,t.s,t.l,t.opacity);if(t instanceof ui||(t=En(t)),!t)return new Eo;if(t instanceof Eo)return t;var e=(t=t.rgb()).r/255,r=t.g/255,a=t.b/255,c=Math.min(e,r,a),u=Math.max(e,r,a),h=NaN,g=u-c,x=(u+c)/2;return g?(h=e===u?(r-a)/g+6*(r<a):r===u?(a-e)/g+2:(e-r)/g+4,g/=x<.5?u+c:2-u-c,h*=60):g=x>0&&x<1?0:h,new Eo(h,g,x,t.opacity)}function Eo(t,e,r,a){this.h=+t,this.s=+e,this.l=+r,this.opacity=+a}function rh(t,e,r){return 255*(t<60?e+(r-e)*t/60:t<180?r:t<240?e+(r-e)*(240-t)/60:e)}Co(ui,En,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:ze,formatHex:ze,formatHsl:function(){return nh(this).formatHsl()},formatRgb:Qe,toString:Qe}),Co(ur,Ir,qi(ui,{brighter:function(t){return t=t==null?Na:Math.pow(Na,t),new ur(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=t==null?Ka:Math.pow(Ka,t),new ur(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:fa,formatHex:fa,formatRgb:Ms,toString:Ms})),Co(Eo,function(t,e,r,a){return arguments.length===1?nh(t):new Eo(t,e,r,a==null?1:a)},qi(ui,{brighter:function(t){return t=t==null?Na:Math.pow(Na,t),new Eo(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=t==null?Ka:Math.pow(Ka,t),new Eo(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,c=2*r-a;return new ur(rh(t>=240?t-240:t+120,c,a),rh(t,c,a),rh(t<120?t+240:t-120,c,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 ny=Math.PI/180,ry=180/Math.PI,C0=.96422,E0=.82521,iy=4/29,S0=6/29,X1=3*S0*S0;function A0(t){if(t instanceof Jo)return new Jo(t.l,t.a,t.b,t.opacity);if(t instanceof Ns)return ay(t);t instanceof ur||(t=gr(t));var e,r,a=L0(t.r),c=L0(t.g),u=L0(t.b),h=M0((.2225045*a+.7168786*c+.0606169*u)/1);return a===c&&c===u?e=r=h:(e=M0((.4360747*a+.3850649*c+.1430804*u)/C0),r=M0((.0139322*a+.0971045*c+.7141733*u)/E0)),new Jo(116*h-16,500*(e-h),200*(h-r),t.opacity)}function Jo(t,e,r,a){this.l=+t,this.a=+e,this.b=+r,this.opacity=+a}function M0(t){return t>.008856451679035631?Math.pow(t,1/3):t/X1+iy}function N0(t){return t>S0?t*t*t:X1*(t-iy)}function D0(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function L0(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function Db(t){if(t instanceof Ns)return new Ns(t.h,t.c,t.l,t.opacity);if(t instanceof Jo||(t=A0(t)),t.a===0&&t.b===0)return new Ns(NaN,0<t.l&&t.l<100?0:NaN,t.l,t.opacity);var e=Math.atan2(t.b,t.a)*ry;return new Ns(e<0?e+360:e,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}function B0(t,e,r,a){return arguments.length===1?Db(t):new Ns(t,e,r,a==null?1:a)}function Ns(t,e,r,a){this.h=+t,this.c=+e,this.l=+r,this.opacity=+a}function ay(t){if(isNaN(t.h))return new Jo(t.l,0,0,t.opacity);var e=t.h*ny;return new Jo(t.l,Math.cos(e)*t.c,Math.sin(e)*t.c,t.opacity)}Co(Jo,function(t,e,r,a){return arguments.length===1?A0(t):new Jo(t,e,r,a==null?1:a)},qi(ui,{brighter:function(t){return new Jo(this.l+18*(t==null?1:t),this.a,this.b,this.opacity)},darker:function(t){return new Jo(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 ur(D0(3.1338561*(e=C0*N0(e))-1.6168667*(t=1*N0(t))-.4906146*(r=E0*N0(r))),D0(-.9787684*e+1.9161415*t+.033454*r),D0(.0719453*e-.2289914*t+1.4052427*r),this.opacity)}})),Co(Ns,B0,qi(ui,{brighter:function(t){return new Ns(this.h,this.c,this.l+18*(t==null?1:t),this.opacity)},darker:function(t){return new Ns(this.h,this.c,this.l-18*(t==null?1:t),this.opacity)},rgb:function(){return ay(this).rgb()}}));const O0=t=>()=>t;function oy(t,e){return function(r){return t+r*e}}function ih(t,e){var r=e-t;return r?oy(t,r):O0(isNaN(t)?e:t)}function Lb(t){return function(e,r){var a=t((e=B0(e)).h,(r=B0(r)).h),c=ih(e.c,r.c),u=ih(e.l,r.l),h=ih(e.opacity,r.opacity);return function(g){return e.h=a(g),e.c=c(g),e.l=u(g),e.opacity=h(g),e+""}}}const Bb=Lb(function(t,e){var r=e-t;return r?oy(t,r>180||r<-180?r-360*Math.round(r/360):r):O0(isNaN(t)?e:t)});var I0=Math.sqrt(50),R0=Math.sqrt(10),F0=Math.sqrt(2);function P0(t,e,r){var a=(e-t)/Math.max(0,r),c=Math.floor(Math.log(a)/Math.LN10),u=a/Math.pow(10,c);return c>=0?(u>=I0?10:u>=R0?5:u>=F0?2:1)*Math.pow(10,c):-Math.pow(10,-c)/(u>=I0?10:u>=R0?5:u>=F0?2:1)}function j0(t,e,r){var a=Math.abs(e-t)/Math.max(0,r),c=Math.pow(10,Math.floor(Math.log(a)/Math.LN10)),u=a/c;return u>=I0?c*=10:u>=R0?c*=5:u>=F0&&(c*=2),e<t?-c:c}function Y0(t,e){return t==null||e==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function z0(t){let e=t,r=t,a=t;function c(u,h,g=0,x=u.length){if(g<x){if(r(h,h)!==0)return x;do{const _=g+x>>>1;a(u[_],h)<0?g=_+1:x=_}while(g<x)}return g}return t.length!==2&&(e=(u,h)=>t(u)-h,r=Y0,a=(u,h)=>Y0(t(u),h)),{left:c,center:function(u,h,g=0,x=u.length){const _=c(u,h,g,x-1);return _>g&&e(u[_-1],h)>-e(u[_],h)?_-1:_},right:function(u,h,g=0,x=u.length){if(g<x){if(r(h,h)!==0)return x;do{const _=g+x>>>1;a(u[_],h)<=0?g=_+1:x=_}while(g<x)}return g}}}const Ob=z0(Y0),Ib=Ob.right,ts=(z0(function(t){return t===null?NaN:+t}).center,Ib);function Z1(t,e,r){t.prototype=e.prototype=r,r.constructor=t}function U0(t,e){var r=Object.create(t.prototype);for(var a in e)r[a]=e[a];return r}function es(){}var Q1=.7,K1=1.4285714285714286,lc="\\s*([+-]?\\d+)\\s*",Vc="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",ns="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Rb=/^#([0-9a-f]{3,8})$/,Fb=new RegExp("^rgb\\("+[lc,lc,lc]+"\\)$"),q0=new RegExp("^rgb\\("+[ns,ns,ns]+"\\)$"),Pb=new RegExp("^rgba\\("+[lc,lc,lc,Vc]+"\\)$"),sy=new RegExp("^rgba\\("+[ns,ns,ns,Vc]+"\\)$"),$0=new RegExp("^hsl\\("+[Vc,ns,ns]+"\\)$"),cy=new RegExp("^hsla\\("+[Vc,ns,ns,Vc]+"\\)$"),J1={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 Gc(){return this.rgb().formatHex()}function Xc(){return this.rgb().formatRgb()}function Fu(t){var e,r;return t=(t+"").trim().toLowerCase(),(e=Rb.exec(t))?(r=e[1].length,e=parseInt(e[1],16),r===6?tf(e):r===3?new Ja(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):r===8?ef(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):r===4?ef(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=Fb.exec(t))?new Ja(e[1],e[2],e[3],1):(e=q0.exec(t))?new Ja(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=Pb.exec(t))?ef(e[1],e[2],e[3],e[4]):(e=sy.exec(t))?ef(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=$0.exec(t))?uy(e[1],e[2]/100,e[3]/100,1):(e=cy.exec(t))?uy(e[1],e[2]/100,e[3]/100,e[4]):J1.hasOwnProperty(t)?tf(J1[t]):t==="transparent"?new Ja(NaN,NaN,NaN,0):null}function tf(t){return new Ja(t>>16&255,t>>8&255,255&t,1)}function ef(t,e,r,a){return a<=0&&(t=e=r=NaN),new Ja(t,e,r,a)}function nf(t){return t instanceof es||(t=Fu(t)),t?new Ja((t=t.rgb()).r,t.g,t.b,t.opacity):new Ja}function Pu(t,e,r,a){return arguments.length===1?nf(t):new Ja(t,e,r,a==null?1:a)}function Ja(t,e,r,a){this.r=+t,this.g=+e,this.b=+r,this.opacity=+a}function rs(){return"#"+rf(this.r)+rf(this.g)+rf(this.b)}function H0(){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 rf(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function uy(t,e,r,a){return a<=0?t=e=r=NaN:r<=0||r>=1?t=e=NaN:e<=0&&(t=NaN),new Da(t,e,r,a)}function ly(t){if(t instanceof Da)return new Da(t.h,t.s,t.l,t.opacity);if(t instanceof es||(t=Fu(t)),!t)return new Da;if(t instanceof Da)return t;var e=(t=t.rgb()).r/255,r=t.g/255,a=t.b/255,c=Math.min(e,r,a),u=Math.max(e,r,a),h=NaN,g=u-c,x=(u+c)/2;return g?(h=e===u?(r-a)/g+6*(r<a):r===u?(a-e)/g+2:(e-r)/g+4,g/=x<.5?u+c:2-u-c,h*=60):g=x>0&&x<1?0:h,new Da(h,g,x,t.opacity)}function Da(t,e,r,a){this.h=+t,this.s=+e,this.l=+r,this.opacity=+a}function W0(t,e,r){return 255*(t<60?e+(r-e)*t/60:t<180?r:t<240?e+(r-e)*(240-t)/60:e)}Z1(es,Fu,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:Gc,formatHex:Gc,formatHsl:function(){return ly(this).formatHsl()},formatRgb:Xc,toString:Xc}),Z1(Ja,Pu,U0(es,{brighter:function(t){return t=t==null?K1:Math.pow(K1,t),new Ja(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=t==null?Q1:Math.pow(Q1,t),new Ja(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:rs,formatHex:rs,formatRgb:H0,toString:H0})),Z1(Da,function(t,e,r,a){return arguments.length===1?ly(t):new Da(t,e,r,a==null?1:a)},U0(es,{brighter:function(t){return t=t==null?K1:Math.pow(K1,t),new Da(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=t==null?Q1:Math.pow(Q1,t),new Da(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,c=2*r-a;return new Ja(W0(t>=240?t-240:t+120,c,a),W0(t,c,a),W0(t<120?t+240:t-120,c,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 V0=t=>()=>t;function hy(t,e){var r=e-t;return r?function(a,c){return function(u){return a+u*c}}(t,r):V0(isNaN(t)?e:t)}const af=function t(e){var r=function(c){return(c=+c)==1?hy:function(u,h){return h-u?function(g,x,_){return g=Math.pow(g,_),x=Math.pow(x,_)-g,_=1/_,function(N){return Math.pow(g+N*x,_)}}(u,h,c):V0(isNaN(u)?h:u)}}(e);function a(c,u){var h=r((c=Pu(c)).r,(u=Pu(u)).r),g=r(c.g,u.g),x=r(c.b,u.b),_=hy(c.opacity,u.opacity);return function(N){return c.r=h(N),c.g=g(N),c.b=x(N),c.opacity=_(N),c+""}}return a.gamma=t,a}(1);function jb(t,e){var r,a=e?e.length:0,c=t?Math.min(a,t.length):0,u=new Array(c),h=new Array(a);for(r=0;r<c;++r)u[r]=sf(t[r],e[r]);for(;r<a;++r)h[r]=e[r];return function(g){for(r=0;r<c;++r)h[r]=u[r](g);return h}}function Yb(t,e){var r=new Date;return t=+t,e=+e,function(a){return r.setTime(t*(1-a)+e*a),r}}function of(t,e){return t=+t,e=+e,function(r){return t*(1-r)+e*r}}function zb(t,e){var r,a={},c={};for(r in t!==null&&typeof t=="object"||(t={}),e!==null&&typeof e=="object"||(e={}),e)r in t?a[r]=sf(t[r],e[r]):c[r]=e[r];return function(u){for(r in a)c[r]=a[r](u);return c}}var G0=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,ah=new RegExp(G0.source,"g");function fy(t,e){var r,a,c,u=G0.lastIndex=ah.lastIndex=0,h=-1,g=[],x=[];for(t+="",e+="";(r=G0.exec(t))&&(a=ah.exec(e));)(c=a.index)>u&&(c=e.slice(u,c),g[h]?g[h]+=c:g[++h]=c),(r=r[0])===(a=a[0])?g[h]?g[h]+=a:g[++h]=a:(g[++h]=null,x.push({i:h,x:of(r,a)})),u=ah.lastIndex;return u<e.length&&(c=e.slice(u),g[h]?g[h]+=c:g[++h]=c),g.length<2?x[0]?function(_){return function(N){return _(N)+""}}(x[0].x):function(_){return function(){return _}}(e):(e=x.length,function(_){for(var N,F=0;F<e;++F)g[(N=x[F]).i]=N.x(_);return g.join("")})}function dy(t,e){e||(e=[]);var r,a=t?Math.min(e.length,t.length):0,c=e.slice();return function(u){for(r=0;r<a;++r)c[r]=t[r]*(1-u)+e[r]*u;return c}}function sf(t,e){var r,a,c=typeof e;return e==null||c==="boolean"?V0(e):(c==="number"?of:c==="string"?(r=Fu(e))?(e=r,af):fy:e instanceof Fu?af:e instanceof Date?Yb:(a=e,!ArrayBuffer.isView(a)||a instanceof DataView?Array.isArray(e)?jb:typeof e.valueOf!="function"&&typeof e.toString!="function"||isNaN(e)?zb:of:dy))(t,e)}function cf(t,e){return t=+t,e=+e,function(r){return Math.round(t*(1-r)+e*r)}}function py(t){return+t}var X0=[0,1];function ju(t){return t}function Z0(t,e){return(e-=t=+t)?function(a){return(a-t)/e}:(r=isNaN(e)?NaN:.5,function(){return r});var r}function Ub(t,e,r){var a=t[0],c=t[1],u=e[0],h=e[1];return c<a?(a=Z0(c,a),u=r(h,u)):(a=Z0(a,c),u=r(u,h)),function(g){return u(a(g))}}function Q0(t,e,r){var a=Math.min(t.length,e.length)-1,c=new Array(a),u=new Array(a),h=-1;for(t[a]<t[0]&&(t=t.slice().reverse(),e=e.slice().reverse());++h<a;)c[h]=Z0(t[h],t[h+1]),u[h]=r(e[h],e[h+1]);return function(g){var x=ts(t,g,1,a)-1;return u[x](c[x](g))}}function uf(t,e){return e.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function lf(){return function(){var t,e,r,a,c,u,h=X0,g=X0,x=sf,_=ju;function N(){var P,H,ct,J=Math.min(h.length,g.length);return _!==ju&&(P=h[0],H=h[J-1],P>H&&(ct=P,P=H,H=ct),_=function(yt){return Math.max(P,Math.min(H,yt))}),a=J>2?Q0:Ub,c=u=null,F}function F(P){return P==null||isNaN(P=+P)?r:(c||(c=a(h.map(t),g,x)))(t(_(P)))}return F.invert=function(P){return _(e((u||(u=a(g,h.map(t),of)))(P)))},F.domain=function(P){return arguments.length?(h=Array.from(P,py),N()):h.slice()},F.range=function(P){return arguments.length?(g=Array.from(P),N()):g.slice()},F.rangeRound=function(P){return g=Array.from(P),x=cf,N()},F.clamp=function(P){return arguments.length?(_=!!P||ju,N()):_!==ju},F.interpolate=function(P){return arguments.length?(x=P,N()):x},F.unknown=function(P){return arguments.length?(r=P,F):r},function(P,H){return t=P,e=H,N()}}()(ju,ju)}function Ds(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t)}return this}var gy,K0=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function oh(t){if(!(e=K0.exec(t)))throw new Error("invalid format: "+t);var e;return new Ls({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 Ls(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 hf(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 Yu(t){return(t=hf(Math.abs(t)))?t[1]:NaN}function yy(t,e){var r=hf(t,e);if(!r)return t+"";var a=r[0],c=r[1];return c<0?"0."+new Array(-c).join("0")+a:a.length>c+1?a.slice(0,c+1)+"."+a.slice(c+1):a+new Array(c-a.length+2).join("0")}oh.prototype=Ls.prototype,Ls.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 my={"%":(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)=>yy(100*t,e),r:yy,s:function(t,e){var r=hf(t,e);if(!r)return t+"";var a=r[0],c=r[1],u=c-(gy=3*Math.max(-8,Math.min(8,Math.floor(c/3))))+1,h=a.length;return u===h?a:u>h?a+new Array(u-h+1).join("0"):u>0?a.slice(0,u)+"."+a.slice(u):"0."+new Array(1-u).join("0")+hf(t,Math.max(0,e+u-1))[0]},X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function vy(t){return t}var J0,to,sh,tp=Array.prototype.map,Bs=["y","z","a","f","p","n","\xB5","m","","k","M","G","T","P","E","Z","Y"];function qb(t){var e=t.domain;return t.ticks=function(r){var a=e();return function(c,u,h){var g,x,_,N,F=-1;if(h=+h,(c=+c)==(u=+u)&&h>0)return[c];if((g=u<c)&&(x=c,c=u,u=x),(N=P0(c,u,h))===0||!isFinite(N))return[];if(N>0){let P=Math.round(c/N),H=Math.round(u/N);for(P*N<c&&++P,H*N>u&&--H,_=new Array(x=H-P+1);++F<x;)_[F]=(P+F)*N}else{N=-N;let P=Math.round(c*N),H=Math.round(u*N);for(P/N<c&&++P,H/N>u&&--H,_=new Array(x=H-P+1);++F<x;)_[F]=(P+F)/N}return g&&_.reverse(),_}(a[0],a[a.length-1],r==null?10:r)},t.tickFormat=function(r,a){var c=e();return function(u,h,g,x){var _,N=j0(u,h,g);switch((x=oh(x==null?",f":x)).type){case"s":var F=Math.max(Math.abs(u),Math.abs(h));return x.precision!=null||isNaN(_=function(P,H){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(Yu(H)/3)))-Yu(Math.abs(P)))}(N,F))||(x.precision=_),sh(x,F);case"":case"e":case"g":case"p":case"r":x.precision!=null||isNaN(_=function(P,H){return P=Math.abs(P),H=Math.abs(H)-P,Math.max(0,Yu(H)-Yu(P))+1}(N,Math.max(Math.abs(u),Math.abs(h))))||(x.precision=_-(x.type==="e"));break;case"f":case"%":x.precision!=null||isNaN(_=function(P){return Math.max(0,-Yu(Math.abs(P)))}(N))||(x.precision=_-2*(x.type==="%"))}return to(x)}(c[0],c[c.length-1],r==null?10:r,a)},t.nice=function(r){r==null&&(r=10);var a,c,u=e(),h=0,g=u.length-1,x=u[h],_=u[g],N=10;for(_<x&&(c=x,x=_,_=c,c=h,h=g,g=c);N-- >0;){if((c=P0(x,_,r))===a)return u[h]=x,u[g]=_,e(u);if(c>0)x=Math.floor(x/c)*c,_=Math.ceil(_/c)*c;else{if(!(c<0))break;x=Math.ceil(x*c)/c,_=Math.floor(_*c)/c}a=c}return t},t}function by(){var t=lf();return t.copy=function(){return uf(t,by())},Ds.apply(t,arguments),qb(t)}J0=function(t){var e,r,a=t.grouping===void 0||t.thousands===void 0?vy:(e=tp.call(t.grouping,Number),r=t.thousands+"",function(P,H){for(var ct=P.length,J=[],yt=0,ft=e[0],kt=0;ct>0&&ft>0&&(kt+ft+1>H&&(ft=Math.max(1,H-kt)),J.push(P.substring(ct-=ft,ct+ft)),!((kt+=ft+1)>H));)ft=e[yt=(yt+1)%e.length];return J.reverse().join(r)}),c=t.currency===void 0?"":t.currency[0]+"",u=t.currency===void 0?"":t.currency[1]+"",h=t.decimal===void 0?".":t.decimal+"",g=t.numerals===void 0?vy:function(P){return function(H){return H.replace(/[0-9]/g,function(ct){return P[+ct]})}}(tp.call(t.numerals,String)),x=t.percent===void 0?"%":t.percent+"",_=t.minus===void 0?"\u2212":t.minus+"",N=t.nan===void 0?"NaN":t.nan+"";function F(P){var H=(P=oh(P)).fill,ct=P.align,J=P.sign,yt=P.symbol,ft=P.zero,kt=P.width,Tt=P.comma,qt=P.precision,ee=P.trim,Ot=P.type;Ot==="n"?(Tt=!0,Ot="g"):my[Ot]||(qt===void 0&&(qt=12),ee=!0,Ot="g"),(ft||H==="0"&&ct==="=")&&(ft=!0,H="0",ct="=");var Xt=yt==="$"?c:yt==="#"&&/[boxX]/.test(Ot)?"0"+Ot.toLowerCase():"",Ht=yt==="$"?u:/[%p]/.test(Ot)?x:"",Et=my[Ot],Mt=/[defgprs%]/.test(Ot);function bt(ut){var Nt,pt,me,ye=Xt,re=Ht;if(Ot==="c")re=Et(ut)+re,ut="";else{var Ce=(ut=+ut)<0||1/ut<0;if(ut=isNaN(ut)?N:Et(Math.abs(ut),qt),ee&&(ut=function(ge){t:for(var He,Ge=ge.length,an=1,cn=-1;an<Ge;++an)switch(ge[an]){case".":cn=He=an;break;case"0":cn===0&&(cn=an),He=an;break;default:if(!+ge[an])break t;cn>0&&(cn=0)}return cn>0?ge.slice(0,cn)+ge.slice(He+1):ge}(ut)),Ce&&+ut==0&&J!=="+"&&(Ce=!1),ye=(Ce?J==="("?J:_:J==="-"||J==="("?"":J)+ye,re=(Ot==="s"?Bs[8+gy/3]:"")+re+(Ce&&J==="("?")":""),Mt){for(Nt=-1,pt=ut.length;++Nt<pt;)if(48>(me=ut.charCodeAt(Nt))||me>57){re=(me===46?h+ut.slice(Nt+1):ut.slice(Nt))+re,ut=ut.slice(0,Nt);break}}}Tt&&!ft&&(ut=a(ut,1/0));var se=ye.length+ut.length+re.length,ve=se<kt?new Array(kt-se+1).join(H):"";switch(Tt&&ft&&(ut=a(ve+ut,ve.length?kt-re.length:1/0),ve=""),ct){case"<":ut=ye+ut+re+ve;break;case"=":ut=ye+ve+ut+re;break;case"^":ut=ve.slice(0,se=ve.length>>1)+ye+ut+re+ve.slice(se);break;default:ut=ve+ye+ut+re}return g(ut)}return qt=qt===void 0?6:/[gprs]/.test(Ot)?Math.max(1,Math.min(21,qt)):Math.max(0,Math.min(20,qt)),bt.toString=function(){return P+""},bt}return{format:F,formatPrefix:function(P,H){var ct=F(((P=oh(P)).type="f",P)),J=3*Math.max(-8,Math.min(8,Math.floor(Yu(H)/3))),yt=Math.pow(10,-J),ft=Bs[8+J/3];return function(kt){return ct(yt*kt)+ft}}}}({thousands:",",grouping:[3],currency:["$",""]}),to=J0.format,sh=J0.formatPrefix;class _y extends Map{constructor(e,r=xy){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:r}}),e!=null)for(const[a,c]of e)this.set(a,c)}get(e){return super.get(ep(this,e))}has(e){return super.has(ep(this,e))}set(e,r){return super.set(function({_intern:a,_key:c},u){const h=c(u);return a.has(h)?a.get(h):(a.set(h,u),u)}(this,e),r)}delete(e){return super.delete(function({_intern:r,_key:a},c){const u=a(c);return r.has(u)&&(c=r.get(u),r.delete(u)),c}(this,e))}}function ep({_intern:t,_key:e},r){const a=e(r);return t.has(a)?t.get(a):r}function xy(t){return t!==null&&typeof t=="object"?t.valueOf():t}const ch=Symbol("implicit");function hc(){var t=new _y,e=[],r=[],a=ch;function c(u){let h=t.get(u);if(h===void 0){if(a!==ch)return a;t.set(u,h=e.push(u)-1)}return r[h%r.length]}return c.domain=function(u){if(!arguments.length)return e.slice();e=[],t=new _y;for(const h of u)t.has(h)||t.set(h,e.push(h)-1);return c},c.range=function(u){return arguments.length?(r=Array.from(u),c):r.slice()},c.unknown=function(u){return arguments.length?(a=u,c):a},c.copy=function(){return hc(e,r).unknown(a)},Ds.apply(c,arguments),c}const zu=1e3,fc=6e4,uh=36e5,np=864e5,rp=6048e5,ff=31536e6;var df=new Date,pf=new Date;function Mi(t,e,r,a){function c(u){return t(u=arguments.length===0?new Date:new Date(+u)),u}return c.floor=function(u){return t(u=new Date(+u)),u},c.ceil=function(u){return t(u=new Date(u-1)),e(u,1),t(u),u},c.round=function(u){var h=c(u),g=c.ceil(u);return u-h<g-u?h:g},c.offset=function(u,h){return e(u=new Date(+u),h==null?1:Math.floor(h)),u},c.range=function(u,h,g){var x,_=[];if(u=c.ceil(u),g=g==null?1:Math.floor(g),!(u<h&&g>0))return _;do _.push(x=new Date(+u)),e(u,g),t(u);while(x<u&&u<h);return _},c.filter=function(u){return Mi(function(h){if(h>=h)for(;t(h),!u(h);)h.setTime(h-1)},function(h,g){if(h>=h)if(g<0)for(;++g<=0;)for(;e(h,-1),!u(h););else for(;--g>=0;)for(;e(h,1),!u(h););})},r&&(c.count=function(u,h){return df.setTime(+u),pf.setTime(+h),t(df),t(pf),Math.floor(r(df,pf))},c.every=function(u){return u=Math.floor(u),isFinite(u)&&u>0?u>1?c.filter(a?function(h){return a(h)%u==0}:function(h){return c.count(0,h)%u==0}):c:null}),c}var gf=Mi(function(){},function(t,e){t.setTime(+t+e)},function(t,e){return e-t});gf.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?Mi(function(e){e.setTime(Math.floor(e/t)*t)},function(e,r){e.setTime(+e+r*t)},function(e,r){return(r-e)/t}):gf:null};const ip=gf;var wy=Mi(function(t){t.setTime(t-t.getMilliseconds())},function(t,e){t.setTime(+t+e*zu)},function(t,e){return(e-t)/zu},function(t){return t.getUTCSeconds()});const Uu=wy;var $b=Mi(function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*zu)},function(t,e){t.setTime(+t+e*fc)},function(t,e){return(e-t)/fc},function(t){return t.getMinutes()});const lh=$b;var So=Mi(function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*zu-t.getMinutes()*fc)},function(t,e){t.setTime(+t+e*uh)},function(t,e){return(e-t)/uh},function(t){return t.getHours()});const yf=So;var ap=Mi(t=>t.setHours(0,0,0,0),(t,e)=>t.setDate(t.getDate()+e),(t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*fc)/np,t=>t.getDate()-1);const qu=ap;function Os(t){return Mi(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())*fc)/rp})}var mf=Os(0),op=Os(1);Os(2),Os(3);var dc=Os(4);Os(5),Os(6);var is=Mi(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 sp=is;var cp=Mi(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()});cp.every=function(t){return isFinite(t=Math.floor(t))&&t>0?Mi(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 Is=cp;Mi(function(t){t.setUTCSeconds(0,0)},function(t,e){t.setTime(+t+e*fc)},function(t,e){return(e-t)/fc},function(t){return t.getUTCMinutes()}),Mi(function(t){t.setUTCMinutes(0,0,0)},function(t,e){t.setTime(+t+e*uh)},function(t,e){return(e-t)/uh},function(t){return t.getUTCHours()});var up=Mi(function(t){t.setUTCHours(0,0,0,0)},function(t,e){t.setUTCDate(t.getUTCDate()+e)},function(t,e){return(e-t)/np},function(t){return t.getUTCDate()-1});const hh=up;function Ao(t){return Mi(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)/rp})}var ky=Ao(0),vf=Ao(1);Ao(2),Ao(3);var $u=Ao(4);Ao(5),Ao(6),Mi(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()});var Ty=Mi(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()});Ty.every=function(t){return isFinite(t=Math.floor(t))&&t>0?Mi(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 da=Ty;function Zc(t,e,r,a,c,u){const h=[[Uu,1,zu],[Uu,5,5e3],[Uu,15,15e3],[Uu,30,3e4],[u,1,fc],[u,5,3e5],[u,15,9e5],[u,30,18e5],[c,1,uh],[c,3,108e5],[c,6,216e5],[c,12,432e5],[a,1,np],[a,2,1728e5],[r,1,rp],[e,1,2592e6],[e,3,7776e6],[t,1,ff]];function g(x,_,N){const F=Math.abs(_-x)/N,P=z0(([,,J])=>J).right(h,F);if(P===h.length)return t.every(j0(x/ff,_/ff,N));if(P===0)return ip.every(Math.max(j0(x,_,N),1));const[H,ct]=h[F/h[P-1][2]<h[P][2]/F?P-1:P];return H.every(ct)}return[function(x,_,N){const F=_<x;F&&([x,_]=[_,x]);const P=N&&typeof N.range=="function"?N:g(x,_,N),H=P?P.range(x,+_+1):[];return F?H.reverse():H},g]}const[Cy,Hb]=Zc(Is,sp,mf,qu,yf,lh);function as(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 lp(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 fh(t,e,r){return{y:t,m:e,d:r,H:0,M:0,S:0,L:0}}var dh,Ey,os={"-":"",_:" ",0:"0"},Ni=/^\s*\d+/,hp=/^%/,fp=/[\\^$*+?|[\]().{}]/g;function wr(t,e,r){var a=t<0?"-":"",c=(a?-t:t)+"",u=c.length;return a+(u<r?new Array(r-u+1).join(e)+c:c)}function Wb(t){return t.replace(fp,"\\$&")}function ph(t){return new RegExp("^(?:"+t.map(Wb).join("|")+")","i")}function gh(t){return new Map(t.map((e,r)=>[e.toLowerCase(),r]))}function bf(t,e,r){var a=Ni.exec(e.slice(r,r+1));return a?(t.w=+a[0],r+a[0].length):-1}function dp(t,e,r){var a=Ni.exec(e.slice(r,r+1));return a?(t.u=+a[0],r+a[0].length):-1}function Vb(t,e,r){var a=Ni.exec(e.slice(r,r+2));return a?(t.U=+a[0],r+a[0].length):-1}function Gb(t,e,r){var a=Ni.exec(e.slice(r,r+2));return a?(t.V=+a[0],r+a[0].length):-1}function Xb(t,e,r){var a=Ni.exec(e.slice(r,r+2));return a?(t.W=+a[0],r+a[0].length):-1}function Sy(t,e,r){var a=Ni.exec(e.slice(r,r+4));return a?(t.y=+a[0],r+a[0].length):-1}function Ay(t,e,r){var a=Ni.exec(e.slice(r,r+2));return a?(t.y=+a[0]+(+a[0]>68?1900:2e3),r+a[0].length):-1}function My(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 pp(t,e,r){var a=Ni.exec(e.slice(r,r+1));return a?(t.q=3*a[0]-3,r+a[0].length):-1}function Ny(t,e,r){var a=Ni.exec(e.slice(r,r+2));return a?(t.m=a[0]-1,r+a[0].length):-1}function gp(t,e,r){var a=Ni.exec(e.slice(r,r+2));return a?(t.d=+a[0],r+a[0].length):-1}function La(t,e,r){var a=Ni.exec(e.slice(r,r+3));return a?(t.m=0,t.d=+a[0],r+a[0].length):-1}function yh(t,e,r){var a=Ni.exec(e.slice(r,r+2));return a?(t.H=+a[0],r+a[0].length):-1}function Qc(t,e,r){var a=Ni.exec(e.slice(r,r+2));return a?(t.M=+a[0],r+a[0].length):-1}function Dy(t,e,r){var a=Ni.exec(e.slice(r,r+2));return a?(t.S=+a[0],r+a[0].length):-1}function Zb(t,e,r){var a=Ni.exec(e.slice(r,r+3));return a?(t.L=+a[0],r+a[0].length):-1}function Qb(t,e,r){var a=Ni.exec(e.slice(r,r+6));return a?(t.L=Math.floor(a[0]/1e3),r+a[0].length):-1}function Kb(t,e,r){var a=hp.exec(e.slice(r,r+1));return a?r+a[0].length:-1}function Jb(t,e,r){var a=Ni.exec(e.slice(r));return a?(t.Q=+a[0],r+a[0].length):-1}function t4(t,e,r){var a=Ni.exec(e.slice(r));return a?(t.s=+a[0],r+a[0].length):-1}function Ly(t,e){return wr(t.getDate(),e,2)}function Kc(t,e){return wr(t.getHours(),e,2)}function By(t,e){return wr(t.getHours()%12||12,e,2)}function e4(t,e){return wr(1+qu.count(Is(t),t),e,3)}function Oy(t,e){return wr(t.getMilliseconds(),e,3)}function n4(t,e){return Oy(t,e)+"000"}function r4(t,e){return wr(t.getMonth()+1,e,2)}function i4(t,e){return wr(t.getMinutes(),e,2)}function a4(t,e){return wr(t.getSeconds(),e,2)}function o4(t){var e=t.getDay();return e===0?7:e}function s4(t,e){return wr(mf.count(Is(t)-1,t),e,2)}function Iy(t){var e=t.getDay();return e>=4||e===0?dc(t):dc.ceil(t)}function c4(t,e){return t=Iy(t),wr(dc.count(Is(t),t)+(Is(t).getDay()===4),e,2)}function u4(t){return t.getDay()}function Ry(t,e){return wr(op.count(Is(t)-1,t),e,2)}function l4(t,e){return wr(t.getFullYear()%100,e,2)}function h4(t,e){return wr((t=Iy(t)).getFullYear()%100,e,2)}function Fy(t,e){return wr(t.getFullYear()%1e4,e,4)}function Py(t,e){var r=t.getDay();return wr((t=r>=4||r===0?dc(t):dc.ceil(t)).getFullYear()%1e4,e,4)}function jy(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+wr(e/60|0,"0",2)+wr(e%60,"0",2)}function Yy(t,e){return wr(t.getUTCDate(),e,2)}function f4(t,e){return wr(t.getUTCHours(),e,2)}function zy(t,e){return wr(t.getUTCHours()%12||12,e,2)}function pc(t,e){return wr(1+hh.count(da(t),t),e,3)}function Uy(t,e){return wr(t.getUTCMilliseconds(),e,3)}function d4(t,e){return Uy(t,e)+"000"}function qy(t,e){return wr(t.getUTCMonth()+1,e,2)}function p4(t,e){return wr(t.getUTCMinutes(),e,2)}function g4(t,e){return wr(t.getUTCSeconds(),e,2)}function $y(t){var e=t.getUTCDay();return e===0?7:e}function _f(t,e){return wr(ky.count(da(t)-1,t),e,2)}function Hy(t){var e=t.getUTCDay();return e>=4||e===0?$u(t):$u.ceil(t)}function mh(t,e){return t=Hy(t),wr($u.count(da(t),t)+(da(t).getUTCDay()===4),e,2)}function y4(t){return t.getUTCDay()}function yp(t,e){return wr(vf.count(da(t)-1,t),e,2)}function m4(t,e){return wr(t.getUTCFullYear()%100,e,2)}function v4(t,e){return wr((t=Hy(t)).getUTCFullYear()%100,e,2)}function Wy(t,e){return wr(t.getUTCFullYear()%1e4,e,4)}function Hu(t,e){var r=t.getUTCDay();return wr((t=r>=4||r===0?$u(t):$u.ceil(t)).getUTCFullYear()%1e4,e,4)}function b4(){return"+0000"}function mp(){return"%"}function Vy(t){return+t}function Gy(t){return Math.floor(+t/1e3)}function _4(t){return new Date(t)}function x4(t){return t instanceof Date?+t:+new Date(+t)}function Xy(t,e,r,a,c,u,h,g,x,_){var N=lf(),F=N.invert,P=N.domain,H=_(".%L"),ct=_(":%S"),J=_("%I:%M"),yt=_("%I %p"),ft=_("%a %d"),kt=_("%b %d"),Tt=_("%B"),qt=_("%Y");function ee(Ot){return(x(Ot)<Ot?H:g(Ot)<Ot?ct:h(Ot)<Ot?J:u(Ot)<Ot?yt:a(Ot)<Ot?c(Ot)<Ot?ft:kt:r(Ot)<Ot?Tt:qt)(Ot)}return N.invert=function(Ot){return new Date(F(Ot))},N.domain=function(Ot){return arguments.length?P(Array.from(Ot,x4)):P().map(_4)},N.ticks=function(Ot){var Xt=P();return t(Xt[0],Xt[Xt.length-1],Ot==null?10:Ot)},N.tickFormat=function(Ot,Xt){return Xt==null?ee:_(Xt)},N.nice=function(Ot){var Xt=P();return Ot&&typeof Ot.range=="function"||(Ot=e(Xt[0],Xt[Xt.length-1],Ot==null?10:Ot)),Ot?P(function(Ht,Et){var Mt,bt=0,ut=(Ht=Ht.slice()).length-1,Nt=Ht[bt],pt=Ht[ut];return pt<Nt&&(Mt=bt,bt=ut,ut=Mt,Mt=Nt,Nt=pt,pt=Mt),Ht[bt]=Et.floor(Nt),Ht[ut]=Et.ceil(pt),Ht}(Xt,Ot)):N},N.copy=function(){return uf(N,Xy(t,e,r,a,c,u,h,g,x,_))},N}function w4(){}function Wu(t){return t==null?w4:function(){return this.querySelector(t)}}function vp(t){return t==null?[]:Array.isArray(t)?t:Array.from(t)}function k4(){return[]}function Zy(t){return t==null?k4:function(){return this.querySelectorAll(t)}}function Qy(t){return function(){return this.matches(t)}}function Ky(t){return function(e){return e.matches(t)}}dh=function(t){var e=t.dateTime,r=t.date,a=t.time,c=t.periods,u=t.days,h=t.shortDays,g=t.months,x=t.shortMonths,_=ph(c),N=gh(c),F=ph(u),P=gh(u),H=ph(h),ct=gh(h),J=ph(g),yt=gh(g),ft=ph(x),kt=gh(x),Tt={a:function(Et){return h[Et.getDay()]},A:function(Et){return u[Et.getDay()]},b:function(Et){return x[Et.getMonth()]},B:function(Et){return g[Et.getMonth()]},c:null,d:Ly,e:Ly,f:n4,g:h4,G:Py,H:Kc,I:By,j:e4,L:Oy,m:r4,M:i4,p:function(Et){return c[+(Et.getHours()>=12)]},q:function(Et){return 1+~~(Et.getMonth()/3)},Q:Vy,s:Gy,S:a4,u:o4,U:s4,V:c4,w:u4,W:Ry,x:null,X:null,y:l4,Y:Fy,Z:jy,"%":mp},qt={a:function(Et){return h[Et.getUTCDay()]},A:function(Et){return u[Et.getUTCDay()]},b:function(Et){return x[Et.getUTCMonth()]},B:function(Et){return g[Et.getUTCMonth()]},c:null,d:Yy,e:Yy,f:d4,g:v4,G:Hu,H:f4,I:zy,j:pc,L:Uy,m:qy,M:p4,p:function(Et){return c[+(Et.getUTCHours()>=12)]},q:function(Et){return 1+~~(Et.getUTCMonth()/3)},Q:Vy,s:Gy,S:g4,u:$y,U:_f,V:mh,w:y4,W:yp,x:null,X:null,y:m4,Y:Wy,Z:b4,"%":mp},ee={a:function(Et,Mt,bt){var ut=H.exec(Mt.slice(bt));return ut?(Et.w=ct.get(ut[0].toLowerCase()),bt+ut[0].length):-1},A:function(Et,Mt,bt){var ut=F.exec(Mt.slice(bt));return ut?(Et.w=P.get(ut[0].toLowerCase()),bt+ut[0].length):-1},b:function(Et,Mt,bt){var ut=ft.exec(Mt.slice(bt));return ut?(Et.m=kt.get(ut[0].toLowerCase()),bt+ut[0].length):-1},B:function(Et,Mt,bt){var ut=J.exec(Mt.slice(bt));return ut?(Et.m=yt.get(ut[0].toLowerCase()),bt+ut[0].length):-1},c:function(Et,Mt,bt){return Ht(Et,e,Mt,bt)},d:gp,e:gp,f:Qb,g:Ay,G:Sy,H:yh,I:yh,j:La,L:Zb,m:Ny,M:Qc,p:function(Et,Mt,bt){var ut=_.exec(Mt.slice(bt));return ut?(Et.p=N.get(ut[0].toLowerCase()),bt+ut[0].length):-1},q:pp,Q:Jb,s:t4,S:Dy,u:dp,U:Vb,V:Gb,w:bf,W:Xb,x:function(Et,Mt,bt){return Ht(Et,r,Mt,bt)},X:function(Et,Mt,bt){return Ht(Et,a,Mt,bt)},y:Ay,Y:Sy,Z:My,"%":Kb};function Ot(Et,Mt){return function(bt){var ut,Nt,pt,me=[],ye=-1,re=0,Ce=Et.length;for(bt instanceof Date||(bt=new Date(+bt));++ye<Ce;)Et.charCodeAt(ye)===37&&(me.push(Et.slice(re,ye)),(Nt=os[ut=Et.charAt(++ye)])!=null?ut=Et.charAt(++ye):Nt=ut==="e"?" ":"0",(pt=Mt[ut])&&(ut=pt(bt,Nt)),me.push(ut),re=ye+1);return me.push(Et.slice(re,ye)),me.join("")}}function Xt(Et,Mt){return function(bt){var ut,Nt,pt=fh(1900,void 0,1);if(Ht(pt,Et,bt+="",0)!=bt.length)return null;if("Q"in pt)return new Date(pt.Q);if("s"in pt)return new Date(1e3*pt.s+("L"in pt?pt.L:0));if(Mt&&!("Z"in pt)&&(pt.Z=0),"p"in pt&&(pt.H=pt.H%12+12*pt.p),pt.m===void 0&&(pt.m="q"in pt?pt.q:0),"V"in pt){if(pt.V<1||pt.V>53)return null;"w"in pt||(pt.w=1),"Z"in pt?(Nt=(ut=lp(fh(pt.y,0,1))).getUTCDay(),ut=Nt>4||Nt===0?vf.ceil(ut):vf(ut),ut=hh.offset(ut,7*(pt.V-1)),pt.y=ut.getUTCFullYear(),pt.m=ut.getUTCMonth(),pt.d=ut.getUTCDate()+(pt.w+6)%7):(Nt=(ut=as(fh(pt.y,0,1))).getDay(),ut=Nt>4||Nt===0?op.ceil(ut):op(ut),ut=qu.offset(ut,7*(pt.V-1)),pt.y=ut.getFullYear(),pt.m=ut.getMonth(),pt.d=ut.getDate()+(pt.w+6)%7)}else("W"in pt||"U"in pt)&&("w"in pt||(pt.w="u"in pt?pt.u%7:"W"in pt?1:0),Nt="Z"in pt?lp(fh(pt.y,0,1)).getUTCDay():as(fh(pt.y,0,1)).getDay(),pt.m=0,pt.d="W"in pt?(pt.w+6)%7+7*pt.W-(Nt+5)%7:pt.w+7*pt.U-(Nt+6)%7);return"Z"in pt?(pt.H+=pt.Z/100|0,pt.M+=pt.Z%100,lp(pt)):as(pt)}}function Ht(Et,Mt,bt,ut){for(var Nt,pt,me=0,ye=Mt.length,re=bt.length;me<ye;){if(ut>=re)return-1;if((Nt=Mt.charCodeAt(me++))===37){if(Nt=Mt.charAt(me++),!(pt=ee[Nt in os?Mt.charAt(me++):Nt])||(ut=pt(Et,bt,ut))<0)return-1}else if(Nt!=bt.charCodeAt(ut++))return-1}return ut}return Tt.x=Ot(r,Tt),Tt.X=Ot(a,Tt),Tt.c=Ot(e,Tt),qt.x=Ot(r,qt),qt.X=Ot(a,qt),qt.c=Ot(e,qt),{format:function(Et){var Mt=Ot(Et+="",Tt);return Mt.toString=function(){return Et},Mt},parse:function(Et){var Mt=Xt(Et+="",!1);return Mt.toString=function(){return Et},Mt},utcFormat:function(Et){var Mt=Ot(Et+="",qt);return Mt.toString=function(){return Et},Mt},utcParse:function(Et){var Mt=Xt(Et+="",!0);return Mt.toString=function(){return Et},Mt}}}({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"]}),Ey=dh.format,dh.parse,dh.utcFormat,dh.utcParse;var T4=Array.prototype.find;function C4(){return this.firstElementChild}var bp=Array.prototype.filter;function E4(){return Array.from(this.children)}function Jy(t){return new Array(t.length)}function xf(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}function S4(t){return function(){return t}}function Di(t,e,r,a,c,u){for(var h,g=0,x=e.length,_=u.length;g<_;++g)(h=e[g])?(h.__data__=u[g],a[g]=h):r[g]=new xf(t,u[g]);for(;g<x;++g)(h=e[g])&&(c[g]=h)}function gc(t,e,r,a,c,u,h){var g,x,_,N=new Map,F=e.length,P=u.length,H=new Array(F);for(g=0;g<F;++g)(x=e[g])&&(H[g]=_=h.call(x,x.__data__,g,e)+"",N.has(_)?c[g]=x:N.set(_,x));for(g=0;g<P;++g)_=h.call(t,u[g],g,u)+"",(x=N.get(_))?(a[g]=x,x.__data__=u[g],N.delete(_)):r[g]=new xf(t,u[g]);for(g=0;g<F;++g)(x=e[g])&&N.get(H[g])===x&&(c[g]=x)}function tm(t){return t.__data__}function pa(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}function A4(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}xf.prototype={constructor:xf,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 _p="http://www.w3.org/1999/xhtml";const vh={svg:"http://www.w3.org/2000/svg",xhtml:_p,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Vu(t){var e=t+="",r=e.indexOf(":");return r>=0&&(e=t.slice(0,r))!=="xmlns"&&(t=t.slice(r+1)),vh.hasOwnProperty(e)?{space:vh[e],local:t}:t}function em(t){return function(){this.removeAttribute(t)}}function ga(t){return function(){this.removeAttributeNS(t.space,t.local)}}function M4(t,e){return function(){this.setAttribute(t,e)}}function N4(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function D4(t,e){return function(){var r=e.apply(this,arguments);r==null?this.removeAttribute(t):this.setAttribute(t,r)}}function L4(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 xp(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function B4(t){return function(){this.style.removeProperty(t)}}function O4(t,e,r){return function(){this.style.setProperty(t,e,r)}}function I4(t,e,r){return function(){var a=e.apply(this,arguments);a==null?this.style.removeProperty(t):this.style.setProperty(t,a,r)}}function Gu(t,e){return t.style.getPropertyValue(e)||xp(t).getComputedStyle(t,null).getPropertyValue(e)}function R4(t){return function(){delete this[t]}}function F4(t,e){return function(){this[t]=e}}function P4(t,e){return function(){var r=e.apply(this,arguments);r==null?delete this[t]:this[t]=r}}function nm(t){return t.trim().split(/^|\s+/)}function wp(t){return t.classList||new bh(t)}function bh(t){this._node=t,this._names=nm(t.getAttribute("class")||"")}function Jc(t,e){for(var r=wp(t),a=-1,c=e.length;++a<c;)r.add(e[a])}function kp(t,e){for(var r=wp(t),a=-1,c=e.length;++a<c;)r.remove(e[a])}function j4(t){return function(){Jc(this,t)}}function _h(t){return function(){kp(this,t)}}function wf(t,e){return function(){(e.apply(this,arguments)?Jc:kp)(this,t)}}function rm(){this.textContent=""}function im(t){return function(){this.textContent=t}}function am(t){return function(){var e=t.apply(this,arguments);this.textContent=e==null?"":e}}function kf(){this.innerHTML=""}function Tf(t){return function(){this.innerHTML=t}}function Tp(t){return function(){var e=t.apply(this,arguments);this.innerHTML=e==null?"":e}}function om(){this.nextSibling&&this.parentNode.appendChild(this)}function sm(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function cm(t){return function(){var e=this.ownerDocument,r=this.namespaceURI;return r===_p&&e.documentElement.namespaceURI===_p?e.createElement(t):e.createElementNS(r,t)}}function um(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function Cp(t){var e=Vu(t);return(e.local?um:cm)(e)}function lm(){return null}function hm(){var t=this.parentNode;t&&t.removeChild(this)}function yc(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function Cf(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function Ef(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 fm(t){return function(){var e=this.__on;if(e){for(var r,a=0,c=-1,u=e.length;a<u;++a)r=e[a],t.type&&r.type!==t.type||r.name!==t.name?e[++c]=r:this.removeEventListener(r.type,r.listener,r.options);++c?e.length=c:delete this.__on}}}function $n(t,e,r){return function(){var a,c=this.__on,u=function(x){return function(_){x.call(this,_,this.__data__)}}(e);if(c){for(var h=0,g=c.length;h<g;++h)if((a=c[h]).type===t.type&&a.name===t.name)return this.removeEventListener(a.type,a.listener,a.options),this.addEventListener(a.type,a.listener=u,a.options=r),void(a.value=e)}this.addEventListener(t.type,u,r),a={type:t.type,name:t.name,value:e,listener:u,options:r},c?c.push(a):this.__on=[a]}}function xh(t,e,r){var a=xp(t),c=a.CustomEvent;typeof c=="function"?c=new c(e,r):(c=a.document.createEvent("Event"),r?(c.initEvent(e,r.bubbles,r.cancelable),c.detail=r.detail):c.initEvent(e,!1,!1)),t.dispatchEvent(c)}function or(t,e){return function(){return xh(this,t,e)}}function li(t,e){return function(){return xh(this,t,e.apply(this,arguments))}}bh.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 Xu=[null];function Rr(t,e){this._groups=t,this._parents=e}function Ur(){return new Rr([[document.documentElement]],Xu)}Rr.prototype=Ur.prototype={constructor:Rr,select:function(t){typeof t!="function"&&(t=Wu(t));for(var e=this._groups,r=e.length,a=new Array(r),c=0;c<r;++c)for(var u,h,g=e[c],x=g.length,_=a[c]=new Array(x),N=0;N<x;++N)(u=g[N])&&(h=t.call(u,u.__data__,N,g))&&("__data__"in u&&(h.__data__=u.__data__),_[N]=h);return new Rr(a,this._parents)},selectAll:function(t){t=typeof t=="function"?function(N){return function(){return vp(N.apply(this,arguments))}}(t):Zy(t);for(var e=this._groups,r=e.length,a=[],c=[],u=0;u<r;++u)for(var h,g=e[u],x=g.length,_=0;_<x;++_)(h=g[_])&&(a.push(t.call(h,h.__data__,_,g)),c.push(h));return new Rr(a,c)},selectChild:function(t){return this.select(t==null?C4:function(e){return function(){return T4.call(this.children,e)}}(typeof t=="function"?t:Ky(t)))},selectChildren:function(t){return this.selectAll(t==null?E4:function(e){return function(){return bp.call(this.children,e)}}(typeof t=="function"?t:Ky(t)))},filter:function(t){typeof t!="function"&&(t=Qy(t));for(var e=this._groups,r=e.length,a=new Array(r),c=0;c<r;++c)for(var u,h=e[c],g=h.length,x=a[c]=[],_=0;_<g;++_)(u=h[_])&&t.call(u,u.__data__,_,h)&&x.push(u);return new Rr(a,this._parents)},data:function(t,e){if(!arguments.length)return Array.from(this,tm);var r=e?gc:Di,a=this._parents,c=this._groups;typeof t!="function"&&(t=S4(t));for(var u=c.length,h=new Array(u),g=new Array(u),x=new Array(u),_=0;_<u;++_){var N=a[_],F=c[_],P=F.length,H=pa(t.call(N,N&&N.__data__,_,a)),ct=H.length,J=g[_]=new Array(ct),yt=h[_]=new Array(ct),ft=x[_]=new Array(P);r(N,F,J,yt,ft,H,e);for(var kt,Tt,qt=0,ee=0;qt<ct;++qt)if(kt=J[qt]){for(qt>=ee&&(ee=qt+1);!(Tt=yt[ee])&&++ee<ct;);kt._next=Tt||null}}return(h=new Rr(h,a))._enter=g,h._exit=x,h},enter:function(){return new Rr(this._enter||this._groups.map(Jy),this._parents)},exit:function(){return new Rr(this._exit||this._groups.map(Jy),this._parents)},join:function(t,e,r){var a=this.enter(),c=this,u=this.exit();return typeof t=="function"?(a=t(a))&&(a=a.selection()):a=a.append(t+""),e!=null&&(c=e(c))&&(c=c.selection()),r==null?u.remove():r(u),a&&c?a.merge(c).order():c},merge:function(t){for(var e=t.selection?t.selection():t,r=this._groups,a=e._groups,c=r.length,u=a.length,h=Math.min(c,u),g=new Array(c),x=0;x<h;++x)for(var _,N=r[x],F=a[x],P=N.length,H=g[x]=new Array(P),ct=0;ct<P;++ct)(_=N[ct]||F[ct])&&(H[ct]=_);for(;x<c;++x)g[x]=r[x];return new Rr(g,this._parents)},selection:function(){return this},order:function(){for(var t=this._groups,e=-1,r=t.length;++e<r;)for(var a,c=t[e],u=c.length-1,h=c[u];--u>=0;)(a=c[u])&&(h&&4^a.compareDocumentPosition(h)&&h.parentNode.insertBefore(a,h),h=a);return this},sort:function(t){function e(F,P){return F&&P?t(F.__data__,P.__data__):!F-!P}t||(t=A4);for(var r=this._groups,a=r.length,c=new Array(a),u=0;u<a;++u){for(var h,g=r[u],x=g.length,_=c[u]=new Array(x),N=0;N<x;++N)(h=g[N])&&(_[N]=h);_.sort(e)}return new Rr(c,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],c=0,u=a.length;c<u;++c){var h=a[c];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 c,u=e[r],h=0,g=u.length;h<g;++h)(c=u[h])&&t.call(c,c.__data__,h,u);return this},attr:function(t,e){var r=Vu(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?ga:em:typeof e=="function"?r.local?L4:D4:r.local?N4:M4)(r,e))},style:function(t,e,r){return arguments.length>1?this.each((e==null?B4:typeof e=="function"?I4:O4)(t,e,r==null?"":r)):Gu(this.node(),t)},property:function(t,e){return arguments.length>1?this.each((e==null?R4:typeof e=="function"?P4:F4)(t,e)):this.node()[t]},classed:function(t,e){var r=nm(t+"");if(arguments.length<2){for(var a=wp(this.node()),c=-1,u=r.length;++c<u;)if(!a.contains(r[c]))return!1;return!0}return this.each((typeof e=="function"?wf:e?j4:_h)(r,e))},text:function(t){return arguments.length?this.each(t==null?rm:(typeof t=="function"?am:im)(t)):this.node().textContent},html:function(t){return arguments.length?this.each(t==null?kf:(typeof t=="function"?Tp:Tf)(t)):this.node().innerHTML},raise:function(){return this.each(om)},lower:function(){return this.each(sm)},append:function(t){var e=typeof t=="function"?t:Cp(t);return this.select(function(){return this.appendChild(e.apply(this,arguments))})},insert:function(t,e){var r=typeof t=="function"?t:Cp(t),a=e==null?lm:typeof e=="function"?e:Wu(e);return this.select(function(){return this.insertBefore(r.apply(this,arguments),a.apply(this,arguments)||null)})},remove:function(){return this.each(hm)},clone:function(t){return this.select(t?Cf:yc)},datum:function(t){return arguments.length?this.property("__data__",t):this.node().__data__},on:function(t,e,r){var a,c,u=Ef(t+""),h=u.length;if(!(arguments.length<2)){for(g=e?$n:fm,a=0;a<h;++a)this.each(g(u[a],e,r));return this}var g=this.node().__on;if(g){for(var x,_=0,N=g.length;_<N;++_)for(a=0,x=g[_];a<h;++a)if((c=u[a]).type===x.type&&c.name===x.name)return x.value}},dispatch:function(t,e){return this.each((typeof e=="function"?li:or)(t,e))},[Symbol.iterator]:function*(){for(var t=this._groups,e=0,r=t.length;e<r;++e)for(var a,c=t[e],u=0,h=c.length;u<h;++u)(a=c[u])&&(yield a)}};const Cn=Ur;function Me(t){return typeof t=="string"?new Rr([[document.querySelector(t)]],[document.documentElement]):new Rr([[t]],Xu)}function mc(t){return typeof t=="string"?new Rr([document.querySelectorAll(t)],[document.documentElement]):new Rr([vp(t)],Xu)}const Qi=Math.PI,bn=2*Qi,ss=1e-6,dm=bn-ss;function Zu(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function Sf(){return new Zu}Zu.prototype=Sf.prototype={constructor:Zu,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,c,u){this._+="C"+ +t+","+ +e+","+ +r+","+ +a+","+(this._x1=+c)+","+(this._y1=+u)},arcTo:function(t,e,r,a,c){t=+t,e=+e,r=+r,a=+a,c=+c;var u=this._x1,h=this._y1,g=r-t,x=a-e,_=u-t,N=h-e,F=_*_+N*N;if(c<0)throw new Error("negative radius: "+c);if(this._x1===null)this._+="M"+(this._x1=t)+","+(this._y1=e);else if(F>ss)if(Math.abs(N*g-x*_)>ss&&c){var P=r-u,H=a-h,ct=g*g+x*x,J=P*P+H*H,yt=Math.sqrt(ct),ft=Math.sqrt(F),kt=c*Math.tan((Qi-Math.acos((ct+F-J)/(2*yt*ft)))/2),Tt=kt/ft,qt=kt/yt;Math.abs(Tt-1)>ss&&(this._+="L"+(t+Tt*_)+","+(e+Tt*N)),this._+="A"+c+","+c+",0,0,"+ +(N*P>_*H)+","+(this._x1=t+qt*g)+","+(this._y1=e+qt*x)}else this._+="L"+(this._x1=t)+","+(this._y1=e)},arc:function(t,e,r,a,c,u){t=+t,e=+e,u=!!u;var h=(r=+r)*Math.cos(a),g=r*Math.sin(a),x=t+h,_=e+g,N=1^u,F=u?a-c:c-a;if(r<0)throw new Error("negative radius: "+r);this._x1===null?this._+="M"+x+","+_:(Math.abs(this._x1-x)>ss||Math.abs(this._y1-_)>ss)&&(this._+="L"+x+","+_),r&&(F<0&&(F=F%bn+bn),F>dm?this._+="A"+r+","+r+",0,1,"+N+","+(t-h)+","+(e-g)+"A"+r+","+r+",0,1,"+N+","+(this._x1=x)+","+(this._y1=_):F>ss&&(this._+="A"+r+","+r+",0,"+ +(F>=Qi)+","+N+","+(this._x1=t+r*Math.cos(c))+","+(this._y1=e+r*Math.sin(c))))},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 ln=Sf;function kr(t){return function(){return t}}var vi=Math.abs,$i=Math.atan2,vc=Math.cos,ya=Math.max,Af=Math.min,Tr=Math.sin,Rs=Math.sqrt,ma=1e-12,Qu=Math.PI,Ku=Qu/2,wh=2*Qu;function Mo(t){return t>1?0:t<-1?Qu:Math.acos(t)}function Ep(t){return t>=1?Ku:t<=-1?-Ku:Math.asin(t)}function pm(t){return t.innerRadius}function Sp(t){return t.outerRadius}function Ap(t){return t.startAngle}function Mp(t){return t.endAngle}function Mf(t){return t&&t.padAngle}function Nf(t,e,r,a,c,u,h,g){var x=r-t,_=a-e,N=h-c,F=g-u,P=F*x-N*_;if(!(P*P<ma))return[t+(P=(N*(e-u)-F*(t-c))/P)*x,e+P*_]}function eo(t,e,r,a,c,u,h){var g=t-r,x=e-a,_=(h?u:-u)/Rs(g*g+x*x),N=_*x,F=-_*g,P=t+N,H=e+F,ct=r+N,J=a+F,yt=(P+ct)/2,ft=(H+J)/2,kt=ct-P,Tt=J-H,qt=kt*kt+Tt*Tt,ee=c-u,Ot=P*J-ct*H,Xt=(Tt<0?-1:1)*Rs(ya(0,ee*ee*qt-Ot*Ot)),Ht=(Ot*Tt-kt*Xt)/qt,Et=(-Ot*kt-Tt*Xt)/qt,Mt=(Ot*Tt+kt*Xt)/qt,bt=(-Ot*kt+Tt*Xt)/qt,ut=Ht-yt,Nt=Et-ft,pt=Mt-yt,me=bt-ft;return ut*ut+Nt*Nt>pt*pt+me*me&&(Ht=Mt,Et=bt),{cx:Ht,cy:Et,x01:-N,y01:-F,x11:Ht*(c/ee-1),y11:Et*(c/ee-1)}}function Np(){var t=pm,e=Sp,r=kr(0),a=null,c=Ap,u=Mp,h=Mf,g=null;function x(){var _,N,F=+t.apply(this,arguments),P=+e.apply(this,arguments),H=c.apply(this,arguments)-Ku,ct=u.apply(this,arguments)-Ku,J=vi(ct-H),yt=ct>H;if(g||(g=_=ln()),P<F&&(N=P,P=F,F=N),P>ma)if(J>wh-ma)g.moveTo(P*vc(H),P*Tr(H)),g.arc(0,0,P,H,ct,!yt),F>ma&&(g.moveTo(F*vc(ct),F*Tr(ct)),g.arc(0,0,F,ct,H,yt));else{var ft,kt,Tt=H,qt=ct,ee=H,Ot=ct,Xt=J,Ht=J,Et=h.apply(this,arguments)/2,Mt=Et>ma&&(a?+a.apply(this,arguments):Rs(F*F+P*P)),bt=Af(vi(P-F)/2,+r.apply(this,arguments)),ut=bt,Nt=bt;if(Mt>ma){var pt=Ep(Mt/F*Tr(Et)),me=Ep(Mt/P*Tr(Et));(Xt-=2*pt)>ma?(ee+=pt*=yt?1:-1,Ot-=pt):(Xt=0,ee=Ot=(H+ct)/2),(Ht-=2*me)>ma?(Tt+=me*=yt?1:-1,qt-=me):(Ht=0,Tt=qt=(H+ct)/2)}var ye=P*vc(Tt),re=P*Tr(Tt),Ce=F*vc(Ot),se=F*Tr(Ot);if(bt>ma){var ve,ge=P*vc(qt),He=P*Tr(qt),Ge=F*vc(ee),an=F*Tr(ee);if(J<Qu&&(ve=Nf(ye,re,Ge,an,ge,He,Ce,se))){var cn=ye-ve[0],We=re-ve[1],lr=ge-ve[0],_r=He-ve[1],qn=1/Tr(Mo((cn*lr+We*_r)/(Rs(cn*cn+We*We)*Rs(lr*lr+_r*_r)))/2),Xr=Rs(ve[0]*ve[0]+ve[1]*ve[1]);ut=Af(bt,(F-Xr)/(qn-1)),Nt=Af(bt,(P-Xr)/(qn+1))}}Ht>ma?Nt>ma?(ft=eo(Ge,an,ye,re,P,Nt,yt),kt=eo(ge,He,Ce,se,P,Nt,yt),g.moveTo(ft.cx+ft.x01,ft.cy+ft.y01),Nt<bt?g.arc(ft.cx,ft.cy,Nt,$i(ft.y01,ft.x01),$i(kt.y01,kt.x01),!yt):(g.arc(ft.cx,ft.cy,Nt,$i(ft.y01,ft.x01),$i(ft.y11,ft.x11),!yt),g.arc(0,0,P,$i(ft.cy+ft.y11,ft.cx+ft.x11),$i(kt.cy+kt.y11,kt.cx+kt.x11),!yt),g.arc(kt.cx,kt.cy,Nt,$i(kt.y11,kt.x11),$i(kt.y01,kt.x01),!yt))):(g.moveTo(ye,re),g.arc(0,0,P,Tt,qt,!yt)):g.moveTo(ye,re),F>ma&&Xt>ma?ut>ma?(ft=eo(Ce,se,ge,He,F,-ut,yt),kt=eo(ye,re,Ge,an,F,-ut,yt),g.lineTo(ft.cx+ft.x01,ft.cy+ft.y01),ut<bt?g.arc(ft.cx,ft.cy,ut,$i(ft.y01,ft.x01),$i(kt.y01,kt.x01),!yt):(g.arc(ft.cx,ft.cy,ut,$i(ft.y01,ft.x01),$i(ft.y11,ft.x11),!yt),g.arc(0,0,F,$i(ft.cy+ft.y11,ft.cx+ft.x11),$i(kt.cy+kt.y11,kt.cx+kt.x11),yt),g.arc(kt.cx,kt.cy,ut,$i(kt.y11,kt.x11),$i(kt.y01,kt.x01),!yt))):g.arc(0,0,F,Ot,ee,yt):g.lineTo(Ce,se)}else g.moveTo(0,0);if(g.closePath(),_)return g=null,_+""||null}return x.centroid=function(){var _=(+t.apply(this,arguments)+ +e.apply(this,arguments))/2,N=(+c.apply(this,arguments)+ +u.apply(this,arguments))/2-Qu/2;return[vc(N)*_,Tr(N)*_]},x.innerRadius=function(_){return arguments.length?(t=typeof _=="function"?_:kr(+_),x):t},x.outerRadius=function(_){return arguments.length?(e=typeof _=="function"?_:kr(+_),x):e},x.cornerRadius=function(_){return arguments.length?(r=typeof _=="function"?_:kr(+_),x):r},x.padRadius=function(_){return arguments.length?(a=_==null?null:typeof _=="function"?_:kr(+_),x):a},x.startAngle=function(_){return arguments.length?(c=typeof _=="function"?_:kr(+_),x):c},x.endAngle=function(_){return arguments.length?(u=typeof _=="function"?_:kr(+_),x):u},x.padAngle=function(_){return arguments.length?(h=typeof _=="function"?_:kr(+_),x):h},x.context=function(_){return arguments.length?(g=_==null?null:_,x):g},x}function gm(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}function ym(t){this._context=t}function fo(t){return new ym(t)}function Y4(t){return t[0]}function Df(t){return t[1]}function No(t,e){var r=kr(!0),a=null,c=fo,u=null;function h(g){var x,_,N,F=(g=gm(g)).length,P=!1;for(a==null&&(u=c(N=ln())),x=0;x<=F;++x)!(x<F&&r(_=g[x],x,g))===P&&((P=!P)?u.lineStart():u.lineEnd()),P&&u.point(+t(_,x,g),+e(_,x,g));if(N)return u=null,N+""||null}return t=typeof t=="function"?t:t===void 0?Y4:kr(t),e=typeof e=="function"?e:e===void 0?Df:kr(e),h.x=function(g){return arguments.length?(t=typeof g=="function"?g:kr(+g),h):t},h.y=function(g){return arguments.length?(e=typeof g=="function"?g:kr(+g),h):e},h.defined=function(g){return arguments.length?(r=typeof g=="function"?g:kr(!!g),h):r},h.curve=function(g){return arguments.length?(c=g,a!=null&&(u=c(a)),h):c},h.context=function(g){return arguments.length?(g==null?a=u=null:u=c(a=g),h):a},h}function Lf(t,e){return e<t?-1:e>t?1:e>=t?0:NaN}function Ju(t){return t}function tl(){}function tu(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 kh(t){this._context=t}function Wr(t){return new kh(t)}function va(t){this._context=t}function ai(t){this._context=t}function Ba(t){this._context=t}function bc(t){return t<0?-1:1}function Dp(t,e,r){var a=t._x1-t._x0,c=e-t._x1,u=(t._y1-t._y0)/(a||c<0&&-0),h=(r-t._y1)/(c||a<0&&-0),g=(u*c+h*a)/(a+c);return(bc(u)+bc(h))*Math.min(Math.abs(u),Math.abs(h),.5*Math.abs(g))||0}function Lp(t,e){var r=t._x1-t._x0;return r?(3*(t._y1-t._y0)/r-e)/2:e}function _c(t,e,r){var a=t._x0,c=t._y0,u=t._x1,h=t._y1,g=(u-a)/3;t._context.bezierCurveTo(a+g,c+g*e,u-g,h-g*r,u,h)}function Do(t){this._context=t}function cs(t){this._context=new el(t)}function el(t){this._context=t}function Th(t){this._context=t}function Ch(t){var e,r,a=t.length-1,c=new Array(a),u=new Array(a),h=new Array(a);for(c[0]=0,u[0]=2,h[0]=t[0]+2*t[1],e=1;e<a-1;++e)c[e]=1,u[e]=4,h[e]=4*t[e]+2*t[e+1];for(c[a-1]=2,u[a-1]=7,h[a-1]=8*t[a-1]+t[a],e=1;e<a;++e)r=c[e]/u[e-1],u[e]-=r,h[e]-=r*h[e-1];for(c[a-1]=h[a-1]/u[a-1],e=a-2;e>=0;--e)c[e]=(h[e]-c[e+1])/u[e];for(u[a-1]=(t[a]+c[a-1])/2,e=0;e<a-1;++e)u[e]=2*t[e+1]-c[e+1];return[c,u]}function eu(t,e){this._context=t,this._t=e}ym.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)}}},kh.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:tu(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:tu(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},va.prototype={areaStart:tl,areaEnd:tl,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:tu(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},ai.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:tu(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},Ba.prototype={areaStart:tl,areaEnd:tl,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))}},Do.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:_c(this,this._t0,Lp(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,_c(this,Lp(this,r=Dp(this,t,e)),r);break;default:_c(this,this._t0,r=Dp(this,t,e))}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=r}}},(cs.prototype=Object.create(Do.prototype)).point=function(t,e){Do.prototype.point.call(this,e,t)},el.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,c,u){this._context.bezierCurveTo(e,t,a,r,u,c)}},Th.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=Ch(t),c=Ch(e),u=0,h=1;h<r;++u,++h)this._context.bezierCurveTo(a[0][u],c[0][u],a[1][u],c[1][u],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)}},eu.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 nl=new Date,rl=new Date;function po(t,e,r,a){function c(u){return t(u=arguments.length===0?new Date:new Date(+u)),u}return c.floor=function(u){return t(u=new Date(+u)),u},c.ceil=function(u){return t(u=new Date(u-1)),e(u,1),t(u),u},c.round=function(u){var h=c(u),g=c.ceil(u);return u-h<g-u?h:g},c.offset=function(u,h){return e(u=new Date(+u),h==null?1:Math.floor(h)),u},c.range=function(u,h,g){var x,_=[];if(u=c.ceil(u),g=g==null?1:Math.floor(g),!(u<h&&g>0))return _;do _.push(x=new Date(+u)),e(u,g),t(u);while(x<u&&u<h);return _},c.filter=function(u){return po(function(h){if(h>=h)for(;t(h),!u(h);)h.setTime(h-1)},function(h,g){if(h>=h)if(g<0)for(;++g<=0;)for(;e(h,-1),!u(h););else for(;--g>=0;)for(;e(h,1),!u(h););})},r&&(c.count=function(u,h){return nl.setTime(+u),rl.setTime(+h),t(nl),t(rl),Math.floor(r(nl,rl))},c.every=function(u){return u=Math.floor(u),isFinite(u)&&u>0?u>1?c.filter(a?function(h){return a(h)%u==0}:function(h){return c.count(0,h)%u==0}):c:null}),c}const Eh=864e5,Bf=6048e5;function Fs(t){return po(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)/Bf})}var Bp=Fs(0),Of=Fs(1);Fs(2),Fs(3);var il=Fs(4);Fs(5),Fs(6);var ba=po(function(t){t.setUTCHours(0,0,0,0)},function(t,e){t.setUTCDate(t.getUTCDate()+e)},function(t,e){return(e-t)/Eh},function(t){return t.getUTCDate()-1});const ia=ba;function bi(t){return po(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-6e4*(r.getTimezoneOffset()-e.getTimezoneOffset()))/Bf})}var Sh=bi(0),Lo=bi(1);bi(2),bi(3);var nu=bi(4);bi(5),bi(6);var mm=po(t=>t.setHours(0,0,0,0),(t,e)=>t.setDate(t.getDate()+e),(t,e)=>(e-t-6e4*(e.getTimezoneOffset()-t.getTimezoneOffset()))/Eh,t=>t.getDate()-1);const Op=mm;var Ip=po(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()});Ip.every=function(t){return isFinite(t=Math.floor(t))&&t>0?po(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 al=Ip;var vm=po(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()});vm.every=function(t){return isFinite(t=Math.floor(t))&&t>0?po(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 Ah=vm;function _a(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 Rp(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 ol(t,e,r){return{y:t,m:e,d:r,H:0,M:0,S:0,L:0}}var Mh,no,If={"-":"",_:" ",0:"0"},hi=/^\s*\d+/,bm=/^%/,z4=/[\\^$*+?|[\]().{}]/g;function Cr(t,e,r){var a=t<0?"-":"",c=(a?-t:t)+"",u=c.length;return a+(u<r?new Array(r-u+1).join(e)+c:c)}function _m(t){return t.replace(z4,"\\$&")}function Nh(t){return new RegExp("^(?:"+t.map(_m).join("|")+")","i")}function Dh(t){return new Map(t.map((e,r)=>[e.toLowerCase(),r]))}function U4(t,e,r){var a=hi.exec(e.slice(r,r+1));return a?(t.w=+a[0],r+a[0].length):-1}function xm(t,e,r){var a=hi.exec(e.slice(r,r+1));return a?(t.u=+a[0],r+a[0].length):-1}function q4(t,e,r){var a=hi.exec(e.slice(r,r+2));return a?(t.U=+a[0],r+a[0].length):-1}function sl(t,e,r){var a=hi.exec(e.slice(r,r+2));return a?(t.V=+a[0],r+a[0].length):-1}function Fp(t,e,r){var a=hi.exec(e.slice(r,r+2));return a?(t.W=+a[0],r+a[0].length):-1}function Rf(t,e,r){var a=hi.exec(e.slice(r,r+4));return a?(t.y=+a[0],r+a[0].length):-1}function Ff(t,e,r){var a=hi.exec(e.slice(r,r+2));return a?(t.y=+a[0]+(+a[0]>68?1900:2e3),r+a[0].length):-1}function wm(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 km(t,e,r){var a=hi.exec(e.slice(r,r+1));return a?(t.q=3*a[0]-3,r+a[0].length):-1}function Tm(t,e,r){var a=hi.exec(e.slice(r,r+2));return a?(t.m=a[0]-1,r+a[0].length):-1}function Pp(t,e,r){var a=hi.exec(e.slice(r,r+2));return a?(t.d=+a[0],r+a[0].length):-1}function Cm(t,e,r){var a=hi.exec(e.slice(r,r+3));return a?(t.m=0,t.d=+a[0],r+a[0].length):-1}function jp(t,e,r){var a=hi.exec(e.slice(r,r+2));return a?(t.H=+a[0],r+a[0].length):-1}function $4(t,e,r){var a=hi.exec(e.slice(r,r+2));return a?(t.M=+a[0],r+a[0].length):-1}function Em(t,e,r){var a=hi.exec(e.slice(r,r+2));return a?(t.S=+a[0],r+a[0].length):-1}function Pf(t,e,r){var a=hi.exec(e.slice(r,r+3));return a?(t.L=+a[0],r+a[0].length):-1}function jf(t,e,r){var a=hi.exec(e.slice(r,r+6));return a?(t.L=Math.floor(a[0]/1e3),r+a[0].length):-1}function Sm(t,e,r){var a=bm.exec(e.slice(r,r+1));return a?r+a[0].length:-1}function Am(t,e,r){var a=hi.exec(e.slice(r));return a?(t.Q=+a[0],r+a[0].length):-1}function Yp(t,e,r){var a=hi.exec(e.slice(r));return a?(t.s=+a[0],r+a[0].length):-1}function Yf(t,e){return Cr(t.getDate(),e,2)}function Mm(t,e){return Cr(t.getHours(),e,2)}function Nm(t,e){return Cr(t.getHours()%12||12,e,2)}function H4(t,e){return Cr(1+Op.count(al(t),t),e,3)}function Dm(t,e){return Cr(t.getMilliseconds(),e,3)}function zp(t,e){return Dm(t,e)+"000"}function Lm(t,e){return Cr(t.getMonth()+1,e,2)}function Lh(t,e){return Cr(t.getMinutes(),e,2)}function zf(t,e){return Cr(t.getSeconds(),e,2)}function Uf(t){var e=t.getDay();return e===0?7:e}function W4(t,e){return Cr(Sh.count(al(t)-1,t),e,2)}function qf(t){var e=t.getDay();return e>=4||e===0?nu(t):nu.ceil(t)}function $f(t,e){return t=qf(t),Cr(nu.count(al(t),t)+(al(t).getDay()===4),e,2)}function Hf(t){return t.getDay()}function Up(t,e){return Cr(Lo.count(al(t)-1,t),e,2)}function cl(t,e){return Cr(t.getFullYear()%100,e,2)}function V4(t,e){return Cr((t=qf(t)).getFullYear()%100,e,2)}function G4(t,e){return Cr(t.getFullYear()%1e4,e,4)}function X4(t,e){var r=t.getDay();return Cr((t=r>=4||r===0?nu(t):nu.ceil(t)).getFullYear()%1e4,e,4)}function Bm(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+Cr(e/60|0,"0",2)+Cr(e%60,"0",2)}function Wf(t,e){return Cr(t.getUTCDate(),e,2)}function Z4(t,e){return Cr(t.getUTCHours(),e,2)}function Vf(t,e){return Cr(t.getUTCHours()%12||12,e,2)}function Om(t,e){return Cr(1+ia.count(Ah(t),t),e,3)}function qp(t,e){return Cr(t.getUTCMilliseconds(),e,3)}function Gf(t,e){return qp(t,e)+"000"}function Im(t,e){return Cr(t.getUTCMonth()+1,e,2)}function Rm(t,e){return Cr(t.getUTCMinutes(),e,2)}function Fm(t,e){return Cr(t.getUTCSeconds(),e,2)}function Q4(t){var e=t.getUTCDay();return e===0?7:e}function Pm(t,e){return Cr(Bp.count(Ah(t)-1,t),e,2)}function jm(t){var e=t.getUTCDay();return e>=4||e===0?il(t):il.ceil(t)}function Ym(t,e){return t=jm(t),Cr(il.count(Ah(t),t)+(Ah(t).getUTCDay()===4),e,2)}function zm(t){return t.getUTCDay()}function Um(t,e){return Cr(Of.count(Ah(t)-1,t),e,2)}function K4(t,e){return Cr(t.getUTCFullYear()%100,e,2)}function J4(t,e){return Cr((t=jm(t)).getUTCFullYear()%100,e,2)}function Bh(t,e){return Cr(t.getUTCFullYear()%1e4,e,4)}function qm(t,e){var r=t.getUTCDay();return Cr((t=r>=4||r===0?il(t):il.ceil(t)).getUTCFullYear()%1e4,e,4)}function $m(){return"+0000"}function Xf(){return"%"}function Zf(t){return+t}function Qf(t){return Math.floor(+t/1e3)}Mh=function(t){var e=t.dateTime,r=t.date,a=t.time,c=t.periods,u=t.days,h=t.shortDays,g=t.months,x=t.shortMonths,_=Nh(c),N=Dh(c),F=Nh(u),P=Dh(u),H=Nh(h),ct=Dh(h),J=Nh(g),yt=Dh(g),ft=Nh(x),kt=Dh(x),Tt={a:function(Et){return h[Et.getDay()]},A:function(Et){return u[Et.getDay()]},b:function(Et){return x[Et.getMonth()]},B:function(Et){return g[Et.getMonth()]},c:null,d:Yf,e:Yf,f:zp,g:V4,G:X4,H:Mm,I:Nm,j:H4,L:Dm,m:Lm,M:Lh,p:function(Et){return c[+(Et.getHours()>=12)]},q:function(Et){return 1+~~(Et.getMonth()/3)},Q:Zf,s:Qf,S:zf,u:Uf,U:W4,V:$f,w:Hf,W:Up,x:null,X:null,y:cl,Y:G4,Z:Bm,"%":Xf},qt={a:function(Et){return h[Et.getUTCDay()]},A:function(Et){return u[Et.getUTCDay()]},b:function(Et){return x[Et.getUTCMonth()]},B:function(Et){return g[Et.getUTCMonth()]},c:null,d:Wf,e:Wf,f:Gf,g:J4,G:qm,H:Z4,I:Vf,j:Om,L:qp,m:Im,M:Rm,p:function(Et){return c[+(Et.getUTCHours()>=12)]},q:function(Et){return 1+~~(Et.getUTCMonth()/3)},Q:Zf,s:Qf,S:Fm,u:Q4,U:Pm,V:Ym,w:zm,W:Um,x:null,X:null,y:K4,Y:Bh,Z:$m,"%":Xf},ee={a:function(Et,Mt,bt){var ut=H.exec(Mt.slice(bt));return ut?(Et.w=ct.get(ut[0].toLowerCase()),bt+ut[0].length):-1},A:function(Et,Mt,bt){var ut=F.exec(Mt.slice(bt));return ut?(Et.w=P.get(ut[0].toLowerCase()),bt+ut[0].length):-1},b:function(Et,Mt,bt){var ut=ft.exec(Mt.slice(bt));return ut?(Et.m=kt.get(ut[0].toLowerCase()),bt+ut[0].length):-1},B:function(Et,Mt,bt){var ut=J.exec(Mt.slice(bt));return ut?(Et.m=yt.get(ut[0].toLowerCase()),bt+ut[0].length):-1},c:function(Et,Mt,bt){return Ht(Et,e,Mt,bt)},d:Pp,e:Pp,f:jf,g:Ff,G:Rf,H:jp,I:jp,j:Cm,L:Pf,m:Tm,M:$4,p:function(Et,Mt,bt){var ut=_.exec(Mt.slice(bt));return ut?(Et.p=N.get(ut[0].toLowerCase()),bt+ut[0].length):-1},q:km,Q:Am,s:Yp,S:Em,u:xm,U:q4,V:sl,w:U4,W:Fp,x:function(Et,Mt,bt){return Ht(Et,r,Mt,bt)},X:function(Et,Mt,bt){return Ht(Et,a,Mt,bt)},y:Ff,Y:Rf,Z:wm,"%":Sm};function Ot(Et,Mt){return function(bt){var ut,Nt,pt,me=[],ye=-1,re=0,Ce=Et.length;for(bt instanceof Date||(bt=new Date(+bt));++ye<Ce;)Et.charCodeAt(ye)===37&&(me.push(Et.slice(re,ye)),(Nt=If[ut=Et.charAt(++ye)])!=null?ut=Et.charAt(++ye):Nt=ut==="e"?" ":"0",(pt=Mt[ut])&&(ut=pt(bt,Nt)),me.push(ut),re=ye+1);return me.push(Et.slice(re,ye)),me.join("")}}function Xt(Et,Mt){return function(bt){var ut,Nt,pt=ol(1900,void 0,1);if(Ht(pt,Et,bt+="",0)!=bt.length)return null;if("Q"in pt)return new Date(pt.Q);if("s"in pt)return new Date(1e3*pt.s+("L"in pt?pt.L:0));if(Mt&&!("Z"in pt)&&(pt.Z=0),"p"in pt&&(pt.H=pt.H%12+12*pt.p),pt.m===void 0&&(pt.m="q"in pt?pt.q:0),"V"in pt){if(pt.V<1||pt.V>53)return null;"w"in pt||(pt.w=1),"Z"in pt?(Nt=(ut=Rp(ol(pt.y,0,1))).getUTCDay(),ut=Nt>4||Nt===0?Of.ceil(ut):Of(ut),ut=ia.offset(ut,7*(pt.V-1)),pt.y=ut.getUTCFullYear(),pt.m=ut.getUTCMonth(),pt.d=ut.getUTCDate()+(pt.w+6)%7):(Nt=(ut=_a(ol(pt.y,0,1))).getDay(),ut=Nt>4||Nt===0?Lo.ceil(ut):Lo(ut),ut=Op.offset(ut,7*(pt.V-1)),pt.y=ut.getFullYear(),pt.m=ut.getMonth(),pt.d=ut.getDate()+(pt.w+6)%7)}else("W"in pt||"U"in pt)&&("w"in pt||(pt.w="u"in pt?pt.u%7:"W"in pt?1:0),Nt="Z"in pt?Rp(ol(pt.y,0,1)).getUTCDay():_a(ol(pt.y,0,1)).getDay(),pt.m=0,pt.d="W"in pt?(pt.w+6)%7+7*pt.W-(Nt+5)%7:pt.w+7*pt.U-(Nt+6)%7);return"Z"in pt?(pt.H+=pt.Z/100|0,pt.M+=pt.Z%100,Rp(pt)):_a(pt)}}function Ht(Et,Mt,bt,ut){for(var Nt,pt,me=0,ye=Mt.length,re=bt.length;me<ye;){if(ut>=re)return-1;if((Nt=Mt.charCodeAt(me++))===37){if(Nt=Mt.charAt(me++),!(pt=ee[Nt in If?Mt.charAt(me++):Nt])||(ut=pt(Et,bt,ut))<0)return-1}else if(Nt!=bt.charCodeAt(ut++))return-1}return ut}return Tt.x=Ot(r,Tt),Tt.X=Ot(a,Tt),Tt.c=Ot(e,Tt),qt.x=Ot(r,qt),qt.X=Ot(a,qt),qt.c=Ot(e,qt),{format:function(Et){var Mt=Ot(Et+="",Tt);return Mt.toString=function(){return Et},Mt},parse:function(Et){var Mt=Xt(Et+="",!1);return Mt.toString=function(){return Et},Mt},utcFormat:function(Et){var Mt=Ot(Et+="",qt);return Mt.toString=function(){return Et},Mt},utcParse:function(Et){var Mt=Xt(Et+="",!0);return Mt.toString=function(){return Et},Mt}}}({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"]}),no=Mh.format,Mh.parse,Mh.utcFormat,Mh.utcParse;var $p={value:()=>{}};function Ps(){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 Kf(a)}function Kf(t){this._=t}function t5(t,e){return t.trim().split(/^|\s+/).map(function(r){var a="",c=r.indexOf(".");if(c>=0&&(a=r.slice(c+1),r=r.slice(0,c)),r&&!e.hasOwnProperty(r))throw new Error("unknown type: "+r);return{type:r,name:a}})}function Hm(t,e){for(var r,a=0,c=t.length;a<c;++a)if((r=t[a]).name===e)return r.value}function Wm(t,e,r){for(var a=0,c=t.length;a<c;++a)if(t[a].name===e){t[a]=$p,t=t.slice(0,a).concat(t.slice(a+1));break}return r!=null&&t.push({name:e,value:r}),t}Kf.prototype=Ps.prototype={constructor:Kf,on:function(t,e){var r,a=this._,c=t5(t+"",a),u=-1,h=c.length;if(!(arguments.length<2)){if(e!=null&&typeof e!="function")throw new Error("invalid callback: "+e);for(;++u<h;)if(r=(t=c[u]).type)a[r]=Wm(a[r],t.name,e);else if(e==null)for(r in a)a[r]=Wm(a[r],t.name,null);return this}for(;++u<h;)if((r=(t=c[u]).type)&&(r=Hm(a[r],t.name)))return r},copy:function(){var t={},e=this._;for(var r in e)t[r]=e[r].slice();return new Kf(t)},call:function(t,e){if((r=arguments.length-2)>0)for(var r,a,c=new Array(r),u=0;u<r;++u)c[u]=arguments[u+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(u=0,r=(a=this._[t]).length;u<r;++u)a[u].value.apply(e,c)},apply:function(t,e,r){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var a=this._[t],c=0,u=a.length;c<u;++c)a[c].value.apply(e,r)}};const Vm=Ps;var js,xc,us=0,wc=0,Oh=0,ru=0,kc=0,Ih=0,Oa=typeof performance=="object"&&performance.now?performance:Date,Bo=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function Rh(){return kc||(Bo(Hp),kc=Oa.now()+Ih)}function Hp(){kc=0}function Tc(){this._call=this._time=this._next=null}function Fh(t,e,r){var a=new Tc;return a.restart(t,e,r),a}function Ph(){kc=(ru=Oa.now())+Ih,us=wc=0;try{(function(){Rh(),++us;for(var t,e=js;e;)(t=kc-e._time)>=0&&e._call.call(void 0,t),e=e._next;--us})()}finally{us=0,function(){for(var t,e,r=js,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:js=e);xc=t,jh(a)}(),kc=0}}function ul(){var t=Oa.now(),e=t-ru;e>1e3&&(Ih-=e,ru=t)}function jh(t){us||(wc&&(wc=clearTimeout(wc)),t-kc>24?(t<1/0&&(wc=setTimeout(Ph,t-Oa.now()-Ih)),Oh&&(Oh=clearInterval(Oh))):(Oh||(ru=Oa.now(),Oh=setInterval(ul,1e3)),us=1,Bo(Ph)))}function Jf(t,e,r){var a=new Tc;return e=e==null?0:+e,a.restart(c=>{a.stop(),t(c+e)},e,r),a}Tc.prototype=Fh.prototype={constructor:Tc,restart:function(t,e,r){if(typeof t!="function")throw new TypeError("callback is not a function");r=(r==null?Rh():+r)+(e==null?0:+e),this._next||xc===this||(xc?xc._next=this:js=this,xc=this),this._call=t,this._time=r,jh()},stop:function(){this._call&&(this._call=null,this._time=1/0,jh())}};var Yh=Vm("start","end","cancel","interrupt"),Oo=[];function ls(t,e,r,a,c,u){var h=t.__transition;if(h){if(r in h)return}else t.__transition={};(function(g,x,_){var N,F=g.__transition;function P(J){var yt,ft,kt,Tt;if(_.state!==1)return ct();for(yt in F)if((Tt=F[yt]).name===_.name){if(Tt.state===3)return Jf(P);Tt.state===4?(Tt.state=6,Tt.timer.stop(),Tt.on.call("interrupt",g,g.__data__,Tt.index,Tt.group),delete F[yt]):+yt<x&&(Tt.state=6,Tt.timer.stop(),Tt.on.call("cancel",g,g.__data__,Tt.index,Tt.group),delete F[yt])}if(Jf(function(){_.state===3&&(_.state=4,_.timer.restart(H,_.delay,_.time),H(J))}),_.state=2,_.on.call("start",g,g.__data__,_.index,_.group),_.state===2){for(_.state=3,N=new Array(kt=_.tween.length),yt=0,ft=-1;yt<kt;++yt)(Tt=_.tween[yt].value.call(g,g.__data__,_.index,_.group))&&(N[++ft]=Tt);N.length=ft+1}}function H(J){for(var yt=J<_.duration?_.ease.call(null,J/_.duration):(_.timer.restart(ct),_.state=5,1),ft=-1,kt=N.length;++ft<kt;)N[ft].call(g,yt);_.state===5&&(_.on.call("end",g,g.__data__,_.index,_.group),ct())}function ct(){for(var J in _.state=6,_.timer.stop(),delete F[x],F)return;delete g.__transition}F[x]=_,_.timer=Fh(function(J){_.state=1,_.timer.restart(P,_.delay,_.time),_.delay<=J&&P(J-_.delay)},0,_.time)})(t,r,{name:e,index:a,group:c,on:Yh,tween:Oo,time:u.time,delay:u.delay,duration:u.duration,ease:u.ease,timer:null,state:0})}function td(t,e){var r=Io(t,e);if(r.state>0)throw new Error("too late; already scheduled");return r}function hs(t,e){var r=Io(t,e);if(r.state>3)throw new Error("too late; already running");return r}function Io(t,e){var r=t.__transition;if(!r||!(r=r[e]))throw new Error("transition not found");return r}function Ys(t,e){return t=+t,e=+e,function(r){return t*(1-r)+e*r}}var ed,Gm=180/Math.PI,Wp={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function Vp(t,e,r,a,c,u){var h,g,x;return(h=Math.sqrt(t*t+e*e))&&(t/=h,e/=h),(x=t*r+e*a)&&(r-=t*x,a-=e*x),(g=Math.sqrt(r*r+a*a))&&(r/=g,a/=g,x/=g),t*a<e*r&&(t=-t,e=-e,x=-x,h=-h),{translateX:c,translateY:u,rotate:Math.atan2(e,t)*Gm,skewX:Math.atan(x)*Gm,scaleX:h,scaleY:g}}function Gp(t,e,r,a){function c(u){return u.length?u.pop()+" ":""}return function(u,h){var g=[],x=[];return u=t(u),h=t(h),function(_,N,F,P,H,ct){if(_!==F||N!==P){var J=H.push("translate(",null,e,null,r);ct.push({i:J-4,x:Ys(_,F)},{i:J-2,x:Ys(N,P)})}else(F||P)&&H.push("translate("+F+e+P+r)}(u.translateX,u.translateY,h.translateX,h.translateY,g,x),function(_,N,F,P){_!==N?(_-N>180?N+=360:N-_>180&&(_+=360),P.push({i:F.push(c(F)+"rotate(",null,a)-2,x:Ys(_,N)})):N&&F.push(c(F)+"rotate("+N+a)}(u.rotate,h.rotate,g,x),function(_,N,F,P){_!==N?P.push({i:F.push(c(F)+"skewX(",null,a)-2,x:Ys(_,N)}):N&&F.push(c(F)+"skewX("+N+a)}(u.skewX,h.skewX,g,x),function(_,N,F,P,H,ct){if(_!==F||N!==P){var J=H.push(c(H)+"scale(",null,",",null,")");ct.push({i:J-4,x:Ys(_,F)},{i:J-2,x:Ys(N,P)})}else F===1&&P===1||H.push(c(H)+"scale("+F+","+P+")")}(u.scaleX,u.scaleY,h.scaleX,h.scaleY,g,x),u=h=null,function(_){for(var N,F=-1,P=x.length;++F<P;)g[(N=x[F]).i]=N.x(_);return g.join("")}}}var Xm=Gp(function(t){const e=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(t+"");return e.isIdentity?Wp:Vp(e.a,e.b,e.c,e.d,e.e,e.f)},"px, ","px)","deg)"),Xp=Gp(function(t){return t==null?Wp:(ed||(ed=document.createElementNS("http://www.w3.org/2000/svg","g")),ed.setAttribute("transform",t),(t=ed.transform.baseVal.consolidate())?Vp((t=t.matrix).a,t.b,t.c,t.d,t.e,t.f):Wp)},", ",")",")");function Zm(t,e){var r,a;return function(){var c=hs(this,t),u=c.tween;if(u!==r){for(var h=0,g=(a=r=u).length;h<g;++h)if(a[h].name===e){(a=a.slice()).splice(h,1);break}}c.tween=a}}function Qm(t,e,r){var a,c;if(typeof r!="function")throw new Error;return function(){var u=hs(this,t),h=u.tween;if(h!==a){c=(a=h).slice();for(var g={name:e,value:r},x=0,_=c.length;x<_;++x)if(c[x].name===e){c[x]=g;break}x===_&&c.push(g)}u.tween=c}}function iu(t,e,r){var a=t._id;return t.each(function(){var c=hs(this,a);(c.value||(c.value={}))[e]=r.apply(this,arguments)}),function(c){return Io(c,a).value[e]}}const ll=function t(e){var r=function(c){return(c=+c)==1?ih:function(u,h){return h-u?function(g,x,_){return g=Math.pow(g,_),x=Math.pow(x,_)-g,_=1/_,function(N){return Math.pow(g+N*x,_)}}(u,h,c):O0(isNaN(u)?h:u)}}(e);function a(c,u){var h=r((c=Ir(c)).r,(u=Ir(u)).r),g=r(c.g,u.g),x=r(c.b,u.b),_=ih(c.opacity,u.opacity);return function(N){return c.r=h(N),c.g=g(N),c.b=x(N),c.opacity=_(N),c+""}}return a.gamma=t,a}(1);var zh=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,hl=new RegExp(zh.source,"g");function e5(t,e){var r,a,c,u=zh.lastIndex=hl.lastIndex=0,h=-1,g=[],x=[];for(t+="",e+="";(r=zh.exec(t))&&(a=hl.exec(e));)(c=a.index)>u&&(c=e.slice(u,c),g[h]?g[h]+=c:g[++h]=c),(r=r[0])===(a=a[0])?g[h]?g[h]+=a:g[++h]=a:(g[++h]=null,x.push({i:h,x:Ys(r,a)})),u=hl.lastIndex;return u<e.length&&(c=e.slice(u),g[h]?g[h]+=c:g[++h]=c),g.length<2?x[0]?function(_){return function(N){return _(N)+""}}(x[0].x):function(_){return function(){return _}}(e):(e=x.length,function(_){for(var N,F=0;F<e;++F)g[(N=x[F]).i]=N.x(_);return g.join("")})}function Zp(t,e){var r;return(typeof e=="number"?Ys:e instanceof En?ll:(r=En(e))?(e=r,ll):e5)(t,e)}function Km(t){return function(){this.removeAttribute(t)}}function Jm(t){return function(){this.removeAttributeNS(t.space,t.local)}}function tv(t,e,r){var a,c,u=r+"";return function(){var h=this.getAttribute(t);return h===u?null:h===a?c:c=e(a=h,r)}}function n5(t,e,r){var a,c,u=r+"";return function(){var h=this.getAttributeNS(t.space,t.local);return h===u?null:h===a?c:c=e(a=h,r)}}function r5(t,e,r){var a,c,u;return function(){var h,g,x=r(this);if(x!=null)return(h=this.getAttribute(t))===(g=x+"")?null:h===a&&g===c?u:(c=g,u=e(a=h,x));this.removeAttribute(t)}}function Uh(t,e,r){var a,c,u;return function(){var h,g,x=r(this);if(x!=null)return(h=this.getAttributeNS(t.space,t.local))===(g=x+"")?null:h===a&&g===c?u:(c=g,u=e(a=h,x));this.removeAttributeNS(t.space,t.local)}}function Qp(t,e){return function(r){this.setAttribute(t,e.call(this,r))}}function Kp(t,e){return function(r){this.setAttributeNS(t.space,t.local,e.call(this,r))}}function nd(t,e){var r,a;function c(){var u=e.apply(this,arguments);return u!==a&&(r=(a=u)&&Kp(t,u)),r}return c._value=e,c}function Jp(t,e){var r,a;function c(){var u=e.apply(this,arguments);return u!==a&&(r=(a=u)&&Qp(t,u)),r}return c._value=e,c}function tg(t,e){return function(){td(this,t).delay=+e.apply(this,arguments)}}function eg(t,e){return e=+e,function(){td(this,t).delay=e}}function i5(t,e){return function(){hs(this,t).duration=+e.apply(this,arguments)}}function ev(t,e){return e=+e,function(){hs(this,t).duration=e}}function a5(t,e){if(typeof e!="function")throw new Error;return function(){hs(this,t).ease=e}}function o5(t,e,r){var a,c,u=function(h){return(h+"").trim().split(/^|\s+/).every(function(g){var x=g.indexOf(".");return x>=0&&(g=g.slice(0,x)),!g||g==="start"})}(e)?td:hs;return function(){var h=u(this,t),g=h.on;g!==a&&(c=(a=g).copy()).on(e,r),h.on=c}}var nv=Cn.prototype.constructor;function Ro(t){return function(){this.style.removeProperty(t)}}function ng(t,e,r){return function(a){this.style.setProperty(t,e.call(this,a),r)}}function rg(t,e,r){var a,c;function u(){var h=e.apply(this,arguments);return h!==c&&(a=(c=h)&&ng(t,h,r)),a}return u._value=e,u}function rv(t){return function(e){this.textContent=t.call(this,e)}}function rd(t){var e,r;function a(){var c=t.apply(this,arguments);return c!==r&&(e=(r=c)&&rv(c)),e}return a._value=t,a}var iv=0;function zs(t,e,r,a){this._groups=t,this._parents=e,this._name=r,this._id=a}function ig(){return++iv}var ro=Cn.prototype;zs.prototype={constructor:zs,select:function(t){var e=this._name,r=this._id;typeof t!="function"&&(t=Wu(t));for(var a=this._groups,c=a.length,u=new Array(c),h=0;h<c;++h)for(var g,x,_=a[h],N=_.length,F=u[h]=new Array(N),P=0;P<N;++P)(g=_[P])&&(x=t.call(g,g.__data__,P,_))&&("__data__"in g&&(x.__data__=g.__data__),F[P]=x,ls(F[P],e,r,P,F,Io(g,r)));return new zs(u,this._parents,e,r)},selectAll:function(t){var e=this._name,r=this._id;typeof t!="function"&&(t=Zy(t));for(var a=this._groups,c=a.length,u=[],h=[],g=0;g<c;++g)for(var x,_=a[g],N=_.length,F=0;F<N;++F)if(x=_[F]){for(var P,H=t.call(x,x.__data__,F,_),ct=Io(x,r),J=0,yt=H.length;J<yt;++J)(P=H[J])&&ls(P,e,r,J,H,ct);u.push(H),h.push(x)}return new zs(u,h,e,r)},selectChild:ro.selectChild,selectChildren:ro.selectChildren,filter:function(t){typeof t!="function"&&(t=Qy(t));for(var e=this._groups,r=e.length,a=new Array(r),c=0;c<r;++c)for(var u,h=e[c],g=h.length,x=a[c]=[],_=0;_<g;++_)(u=h[_])&&t.call(u,u.__data__,_,h)&&x.push(u);return new zs(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,c=r.length,u=Math.min(a,c),h=new Array(a),g=0;g<u;++g)for(var x,_=e[g],N=r[g],F=_.length,P=h[g]=new Array(F),H=0;H<F;++H)(x=_[H]||N[H])&&(P[H]=x);for(;g<a;++g)h[g]=e[g];return new zs(h,this._parents,this._name,this._id)},selection:function(){return new nv(this._groups,this._parents)},transition:function(){for(var t=this._name,e=this._id,r=ig(),a=this._groups,c=a.length,u=0;u<c;++u)for(var h,g=a[u],x=g.length,_=0;_<x;++_)if(h=g[_]){var N=Io(h,e);ls(h,t,r,_,g,{time:N.time+N.delay+N.duration,delay:0,duration:N.duration,ease:N.ease})}return new zs(a,this._parents,t,r)},call:ro.call,nodes:ro.nodes,node:ro.node,size:ro.size,empty:ro.empty,each:ro.each,on:function(t,e){var r=this._id;return arguments.length<2?Io(this.node(),r).on.on(t):this.each(o5(r,t,e))},attr:function(t,e){var r=Vu(t),a=r==="transform"?Xp:Zp;return this.attrTween(t,typeof e=="function"?(r.local?Uh:r5)(r,a,iu(this,"attr."+t,e)):e==null?(r.local?Jm:Km)(r):(r.local?n5:tv)(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=Vu(t);return this.tween(r,(a.local?nd:Jp)(a,e))},style:function(t,e,r){var a=(t+="")=="transform"?Xm:Zp;return e==null?this.styleTween(t,function(c,u){var h,g,x;return function(){var _=Gu(this,c),N=(this.style.removeProperty(c),Gu(this,c));return _===N?null:_===h&&N===g?x:x=u(h=_,g=N)}}(t,a)).on("end.style."+t,Ro(t)):typeof e=="function"?this.styleTween(t,function(c,u,h){var g,x,_;return function(){var N=Gu(this,c),F=h(this),P=F+"";return F==null&&(this.style.removeProperty(c),P=F=Gu(this,c)),N===P?null:N===g&&P===x?_:(x=P,_=u(g=N,F))}}(t,a,iu(this,"style."+t,e))).each(function(c,u){var h,g,x,_,N="style."+u,F="end."+N;return function(){var P=hs(this,c),H=P.on,ct=P.value[N]==null?_||(_=Ro(u)):void 0;H===h&&x===ct||(g=(h=H).copy()).on(F,x=ct),P.on=g}}(this._id,t)):this.styleTween(t,function(c,u,h){var g,x,_=h+"";return function(){var N=Gu(this,c);return N===_?null:N===g?x:x=u(g=N,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,rg(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}}(iu(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,rd(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,c=Io(this.node(),r).tween,u=0,h=c.length;u<h;++u)if((a=c[u]).name===t)return a.value;return null}return this.each((e==null?Zm:Qm)(r,t,e))},delay:function(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?tg:eg)(e,t)):Io(this.node(),e).delay},duration:function(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?i5:ev)(e,t)):Io(this.node(),e).duration},ease:function(t){var e=this._id;return arguments.length?this.each(a5(e,t)):Io(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;hs(this,e).ease=a}}(this._id,t))},end:function(){var t,e,r=this,a=r._id,c=r.size();return new Promise(function(u,h){var g={value:h},x={value:function(){--c==0&&u()}};r.each(function(){var _=hs(this,a),N=_.on;N!==t&&((e=(t=N).copy())._.cancel.push(g),e._.interrupt.push(g),e._.end.push(x)),_.on=e}),c===0&&u()})},[Symbol.iterator]:ro[Symbol.iterator]};var ag={time:null,delay:0,duration:250,ease:function(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}};function s5(t,e){for(var r;!(r=t.__transition)||!(r=r[e]);)if(!(t=t.parentNode))throw new Error(`transition ${e} not found`);return r}function og(){}function sg(t){return t==null?og:function(){return this.querySelector(t)}}function qh(t){return t==null?[]:Array.isArray(t)?t:Array.from(t)}function c5(){return[]}function cg(t){return t==null?c5:function(){return this.querySelectorAll(t)}}function $h(t){return function(){return this.matches(t)}}function ug(t){return function(e){return e.matches(t)}}Cn.prototype.interrupt=function(t){return this.each(function(){(function(e,r){var a,c,u,h=e.__transition,g=!0;if(h){for(u in r=r==null?null:r+"",h)(a=h[u]).name===r?(c=a.state>2&&a.state<5,a.state=6,a.timer.stop(),a.on.call(c?"interrupt":"cancel",e,e.__data__,a.index,a.group),delete h[u]):g=!1;g&&delete e.__transition}})(this,t)})},Cn.prototype.transition=function(t){var e,r;t instanceof zs?(e=t._id,t=t._name):(e=ig(),(r=ag).time=Rh(),t=t==null?null:t+"");for(var a=this._groups,c=a.length,u=0;u<c;++u)for(var h,g=a[u],x=g.length,_=0;_<x;++_)(h=g[_])&&ls(h,t,e,_,g,r||s5(h,e));return new zs(a,this._parents,t,e)};var u5=Array.prototype.find;function Hh(){return this.firstElementChild}var l5=Array.prototype.filter;function av(){return Array.from(this.children)}function ov(t){return new Array(t.length)}function Cc(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}function Wh(t){return function(){return t}}function Vh(t,e,r,a,c,u){for(var h,g=0,x=e.length,_=u.length;g<_;++g)(h=e[g])?(h.__data__=u[g],a[g]=h):r[g]=new Cc(t,u[g]);for(;g<x;++g)(h=e[g])&&(c[g]=h)}function Gh(t,e,r,a,c,u,h){var g,x,_,N=new Map,F=e.length,P=u.length,H=new Array(F);for(g=0;g<F;++g)(x=e[g])&&(H[g]=_=h.call(x,x.__data__,g,e)+"",N.has(_)?c[g]=x:N.set(_,x));for(g=0;g<P;++g)_=h.call(t,u[g],g,u)+"",(x=N.get(_))?(a[g]=x,x.__data__=u[g],N.delete(_)):r[g]=new Cc(t,u[g]);for(g=0;g<F;++g)(x=e[g])&&N.get(H[g])===x&&(c[g]=x)}function id(t){return t.__data__}function lg(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}function h5(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}Cc.prototype={constructor:Cc,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 Xh="http://www.w3.org/1999/xhtml";const sv={svg:"http://www.w3.org/2000/svg",xhtml:Xh,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function ad(t){var e=t+="",r=e.indexOf(":");return r>=0&&(e=t.slice(0,r))!=="xmlns"&&(t=t.slice(r+1)),sv.hasOwnProperty(e)?{space:sv[e],local:t}:t}function hg(t){return function(){this.removeAttribute(t)}}function f5(t){return function(){this.removeAttributeNS(t.space,t.local)}}function fg(t,e){return function(){this.setAttribute(t,e)}}function d5(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function dg(t,e){return function(){var r=e.apply(this,arguments);r==null?this.removeAttribute(t):this.setAttribute(t,r)}}function p5(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 od(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function g5(t){return function(){this.style.removeProperty(t)}}function y5(t,e,r){return function(){this.style.setProperty(t,e,r)}}function m5(t,e,r){return function(){var a=e.apply(this,arguments);a==null?this.style.removeProperty(t):this.style.setProperty(t,a,r)}}function fl(t,e){return t.style.getPropertyValue(e)||od(t).getComputedStyle(t,null).getPropertyValue(e)}function v5(t){return function(){delete this[t]}}function b5(t,e){return function(){this[t]=e}}function pg(t,e){return function(){var r=e.apply(this,arguments);r==null?delete this[t]:this[t]=r}}function cv(t){return t.trim().split(/^|\s+/)}function gg(t){return t.classList||new yg(t)}function yg(t){this._node=t,this._names=cv(t.getAttribute("class")||"")}function au(t,e){for(var r=gg(t),a=-1,c=e.length;++a<c;)r.add(e[a])}function uv(t,e){for(var r=gg(t),a=-1,c=e.length;++a<c;)r.remove(e[a])}function lv(t){return function(){au(this,t)}}function _5(t){return function(){uv(this,t)}}function sd(t,e){return function(){(e.apply(this,arguments)?au:uv)(this,t)}}function hv(){this.textContent=""}function mg(t){return function(){this.textContent=t}}function x5(t){return function(){var e=t.apply(this,arguments);this.textContent=e==null?"":e}}function Zh(){this.innerHTML=""}function fv(t){return function(){this.innerHTML=t}}function dv(t){return function(){var e=t.apply(this,arguments);this.innerHTML=e==null?"":e}}function pv(){this.nextSibling&&this.parentNode.appendChild(this)}function gv(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function cd(t){return function(){var e=this.ownerDocument,r=this.namespaceURI;return r===Xh&&e.documentElement.namespaceURI===Xh?e.createElement(t):e.createElementNS(r,t)}}function yv(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function mv(t){var e=ad(t);return(e.local?yv:cd)(e)}function w5(){return null}function ud(){var t=this.parentNode;t&&t.removeChild(this)}function ou(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function dl(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function k5(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 T5(t){return function(){var e=this.__on;if(e){for(var r,a=0,c=-1,u=e.length;a<u;++a)r=e[a],t.type&&r.type!==t.type||r.name!==t.name?e[++c]=r:this.removeEventListener(r.type,r.listener,r.options);++c?e.length=c:delete this.__on}}}function vv(t,e,r){return function(){var a,c=this.__on,u=function(x){return function(_){x.call(this,_,this.__data__)}}(e);if(c){for(var h=0,g=c.length;h<g;++h)if((a=c[h]).type===t.type&&a.name===t.name)return this.removeEventListener(a.type,a.listener,a.options),this.addEventListener(a.type,a.listener=u,a.options=r),void(a.value=e)}this.addEventListener(t.type,u,r),a={type:t.type,name:t.name,value:e,listener:u,options:r},c?c.push(a):this.__on=[a]}}function ld(t,e,r){var a=od(t),c=a.CustomEvent;typeof c=="function"?c=new c(e,r):(c=a.document.createEvent("Event"),r?(c.initEvent(e,r.bubbles,r.cancelable),c.detail=r.detail):c.initEvent(e,!1,!1)),t.dispatchEvent(c)}function bv(t,e){return function(){return ld(this,t,e)}}function _v(t,e){return function(){return ld(this,t,e.apply(this,arguments))}}yg.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 Qh=[null];function Fo(t,e){this._groups=t,this._parents=e}function xv(){return new Fo([[document.documentElement]],Qh)}Fo.prototype=xv.prototype={constructor:Fo,select:function(t){typeof t!="function"&&(t=sg(t));for(var e=this._groups,r=e.length,a=new Array(r),c=0;c<r;++c)for(var u,h,g=e[c],x=g.length,_=a[c]=new Array(x),N=0;N<x;++N)(u=g[N])&&(h=t.call(u,u.__data__,N,g))&&("__data__"in u&&(h.__data__=u.__data__),_[N]=h);return new Fo(a,this._parents)},selectAll:function(t){t=typeof t=="function"?function(N){return function(){return qh(N.apply(this,arguments))}}(t):cg(t);for(var e=this._groups,r=e.length,a=[],c=[],u=0;u<r;++u)for(var h,g=e[u],x=g.length,_=0;_<x;++_)(h=g[_])&&(a.push(t.call(h,h.__data__,_,g)),c.push(h));return new Fo(a,c)},selectChild:function(t){return this.select(t==null?Hh:function(e){return function(){return u5.call(this.children,e)}}(typeof t=="function"?t:ug(t)))},selectChildren:function(t){return this.selectAll(t==null?av:function(e){return function(){return l5.call(this.children,e)}}(typeof t=="function"?t:ug(t)))},filter:function(t){typeof t!="function"&&(t=$h(t));for(var e=this._groups,r=e.length,a=new Array(r),c=0;c<r;++c)for(var u,h=e[c],g=h.length,x=a[c]=[],_=0;_<g;++_)(u=h[_])&&t.call(u,u.__data__,_,h)&&x.push(u);return new Fo(a,this._parents)},data:function(t,e){if(!arguments.length)return Array.from(this,id);var r=e?Gh:Vh,a=this._parents,c=this._groups;typeof t!="function"&&(t=Wh(t));for(var u=c.length,h=new Array(u),g=new Array(u),x=new Array(u),_=0;_<u;++_){var N=a[_],F=c[_],P=F.length,H=lg(t.call(N,N&&N.__data__,_,a)),ct=H.length,J=g[_]=new Array(ct),yt=h[_]=new Array(ct),ft=x[_]=new Array(P);r(N,F,J,yt,ft,H,e);for(var kt,Tt,qt=0,ee=0;qt<ct;++qt)if(kt=J[qt]){for(qt>=ee&&(ee=qt+1);!(Tt=yt[ee])&&++ee<ct;);kt._next=Tt||null}}return(h=new Fo(h,a))._enter=g,h._exit=x,h},enter:function(){return new Fo(this._enter||this._groups.map(ov),this._parents)},exit:function(){return new Fo(this._exit||this._groups.map(ov),this._parents)},join:function(t,e,r){var a=this.enter(),c=this,u=this.exit();return typeof t=="function"?(a=t(a))&&(a=a.selection()):a=a.append(t+""),e!=null&&(c=e(c))&&(c=c.selection()),r==null?u.remove():r(u),a&&c?a.merge(c).order():c},merge:function(t){for(var e=t.selection?t.selection():t,r=this._groups,a=e._groups,c=r.length,u=a.length,h=Math.min(c,u),g=new Array(c),x=0;x<h;++x)for(var _,N=r[x],F=a[x],P=N.length,H=g[x]=new Array(P),ct=0;ct<P;++ct)(_=N[ct]||F[ct])&&(H[ct]=_);for(;x<c;++x)g[x]=r[x];return new Fo(g,this._parents)},selection:function(){return this},order:function(){for(var t=this._groups,e=-1,r=t.length;++e<r;)for(var a,c=t[e],u=c.length-1,h=c[u];--u>=0;)(a=c[u])&&(h&&4^a.compareDocumentPosition(h)&&h.parentNode.insertBefore(a,h),h=a);return this},sort:function(t){function e(F,P){return F&&P?t(F.__data__,P.__data__):!F-!P}t||(t=h5);for(var r=this._groups,a=r.length,c=new Array(a),u=0;u<a;++u){for(var h,g=r[u],x=g.length,_=c[u]=new Array(x),N=0;N<x;++N)(h=g[N])&&(_[N]=h);_.sort(e)}return new Fo(c,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],c=0,u=a.length;c<u;++c){var h=a[c];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 c,u=e[r],h=0,g=u.length;h<g;++h)(c=u[h])&&t.call(c,c.__data__,h,u);return this},attr:function(t,e){var r=ad(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?f5:hg:typeof e=="function"?r.local?p5:dg:r.local?d5:fg)(r,e))},style:function(t,e,r){return arguments.length>1?this.each((e==null?g5:typeof e=="function"?m5:y5)(t,e,r==null?"":r)):fl(this.node(),t)},property:function(t,e){return arguments.length>1?this.each((e==null?v5:typeof e=="function"?pg:b5)(t,e)):this.node()[t]},classed:function(t,e){var r=cv(t+"");if(arguments.length<2){for(var a=gg(this.node()),c=-1,u=r.length;++c<u;)if(!a.contains(r[c]))return!1;return!0}return this.each((typeof e=="function"?sd:e?lv:_5)(r,e))},text:function(t){return arguments.length?this.each(t==null?hv:(typeof t=="function"?x5:mg)(t)):this.node().textContent},html:function(t){return arguments.length?this.each(t==null?Zh:(typeof t=="function"?dv:fv)(t)):this.node().innerHTML},raise:function(){return this.each(pv)},lower:function(){return this.each(gv)},append:function(t){var e=typeof t=="function"?t:mv(t);return this.select(function(){return this.appendChild(e.apply(this,arguments))})},insert:function(t,e){var r=typeof t=="function"?t:mv(t),a=e==null?w5:typeof e=="function"?e:sg(e);return this.select(function(){return this.insertBefore(r.apply(this,arguments),a.apply(this,arguments)||null)})},remove:function(){return this.each(ud)},clone:function(t){return this.select(t?dl:ou)},datum:function(t){return arguments.length?this.property("__data__",t):this.node().__data__},on:function(t,e,r){var a,c,u=k5(t+""),h=u.length;if(!(arguments.length<2)){for(g=e?vv:T5,a=0;a<h;++a)this.each(g(u[a],e,r));return this}var g=this.node().__on;if(g){for(var x,_=0,N=g.length;_<N;++_)for(a=0,x=g[_];a<h;++a)if((c=u[a]).type===x.type&&c.name===x.name)return x.value}},dispatch:function(t,e){return this.each((typeof e=="function"?_v:bv)(t,e))},[Symbol.iterator]:function*(){for(var t=this._groups,e=0,r=t.length;e<r;++e)for(var a,c=t[e],u=0,h=c.length;u<h;++u)(a=c[u])&&(yield a)}};const Kh=xv;var C5={value:()=>{}};function wv(){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 hd(a)}function hd(t){this._=t}function E5(t,e){return t.trim().split(/^|\s+/).map(function(r){var a="",c=r.indexOf(".");if(c>=0&&(a=r.slice(c+1),r=r.slice(0,c)),r&&!e.hasOwnProperty(r))throw new Error("unknown type: "+r);return{type:r,name:a}})}function vg(t,e){for(var r,a=0,c=t.length;a<c;++a)if((r=t[a]).name===e)return r.value}function fd(t,e,r){for(var a=0,c=t.length;a<c;++a)if(t[a].name===e){t[a]=C5,t=t.slice(0,a).concat(t.slice(a+1));break}return r!=null&&t.push({name:e,value:r}),t}hd.prototype=wv.prototype={constructor:hd,on:function(t,e){var r,a=this._,c=E5(t+"",a),u=-1,h=c.length;if(!(arguments.length<2)){if(e!=null&&typeof e!="function")throw new Error("invalid callback: "+e);for(;++u<h;)if(r=(t=c[u]).type)a[r]=fd(a[r],t.name,e);else if(e==null)for(r in a)a[r]=fd(a[r],t.name,null);return this}for(;++u<h;)if((r=(t=c[u]).type)&&(r=vg(a[r],t.name)))return r},copy:function(){var t={},e=this._;for(var r in e)t[r]=e[r].slice();return new hd(t)},call:function(t,e){if((r=arguments.length-2)>0)for(var r,a,c=new Array(r),u=0;u<r;++u)c[u]=arguments[u+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(u=0,r=(a=this._[t]).length;u<r;++u)a[u].value.apply(e,c)},apply:function(t,e,r){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var a=this._[t],c=0,u=a.length;c<u;++c)a[c].value.apply(e,r)}};const S5=wv;var dd,Ec,pl=0,Sc=0,gl=0,Jh=0,Ac=0,pd=0,t1=typeof performance=="object"&&performance.now?performance:Date,kv=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function bg(){return Ac||(kv(A5),Ac=t1.now()+pd)}function A5(){Ac=0}function gd(){this._call=this._time=this._next=null}function _g(t,e,r){var a=new gd;return a.restart(t,e,r),a}function yl(){Ac=(Jh=t1.now())+pd,pl=Sc=0;try{(function(){bg(),++pl;for(var t,e=dd;e;)(t=Ac-e._time)>=0&&e._call.call(void 0,t),e=e._next;--pl})()}finally{pl=0,function(){for(var t,e,r=dd,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:dd=e);Ec=t,yd(a)}(),Ac=0}}function Tv(){var t=t1.now(),e=t-Jh;e>1e3&&(pd-=e,Jh=t)}function yd(t){pl||(Sc&&(Sc=clearTimeout(Sc)),t-Ac>24?(t<1/0&&(Sc=setTimeout(yl,t-t1.now()-pd)),gl&&(gl=clearInterval(gl))):(gl||(Jh=t1.now(),gl=setInterval(Tv,1e3)),pl=1,kv(yl)))}function xg(t,e,r){var a=new gd;return e=e==null?0:+e,a.restart(c=>{a.stop(),t(c+e)},e,r),a}gd.prototype=_g.prototype={constructor:gd,restart:function(t,e,r){if(typeof t!="function")throw new TypeError("callback is not a function");r=(r==null?bg():+r)+(e==null?0:+e),this._next||Ec===this||(Ec?Ec._next=this:dd=this,Ec=this),this._call=t,this._time=r,yd()},stop:function(){this._call&&(this._call=null,this._time=1/0,yd())}};var M5=S5("start","end","cancel","interrupt"),N5=[];function md(t,e,r,a,c,u){var h=t.__transition;if(h){if(r in h)return}else t.__transition={};(function(g,x,_){var N,F=g.__transition;function P(J){var yt,ft,kt,Tt;if(_.state!==1)return ct();for(yt in F)if((Tt=F[yt]).name===_.name){if(Tt.state===3)return xg(P);Tt.state===4?(Tt.state=6,Tt.timer.stop(),Tt.on.call("interrupt",g,g.__data__,Tt.index,Tt.group),delete F[yt]):+yt<x&&(Tt.state=6,Tt.timer.stop(),Tt.on.call("cancel",g,g.__data__,Tt.index,Tt.group),delete F[yt])}if(xg(function(){_.state===3&&(_.state=4,_.timer.restart(H,_.delay,_.time),H(J))}),_.state=2,_.on.call("start",g,g.__data__,_.index,_.group),_.state===2){for(_.state=3,N=new Array(kt=_.tween.length),yt=0,ft=-1;yt<kt;++yt)(Tt=_.tween[yt].value.call(g,g.__data__,_.index,_.group))&&(N[++ft]=Tt);N.length=ft+1}}function H(J){for(var yt=J<_.duration?_.ease.call(null,J/_.duration):(_.timer.restart(ct),_.state=5,1),ft=-1,kt=N.length;++ft<kt;)N[ft].call(g,yt);_.state===5&&(_.on.call("end",g,g.__data__,_.index,_.group),ct())}function ct(){for(var J in _.state=6,_.timer.stop(),delete F[x],F)return;delete g.__transition}F[x]=_,_.timer=_g(function(J){_.state=1,_.timer.restart(P,_.delay,_.time),_.delay<=J&&P(J-_.delay)},0,_.time)})(t,r,{name:e,index:a,group:c,on:M5,tween:N5,time:u.time,delay:u.delay,duration:u.duration,ease:u.ease,timer:null,state:0})}function vd(t,e){var r=Po(t,e);if(r.state>0)throw new Error("too late; already scheduled");return r}function fs(t,e){var r=Po(t,e);if(r.state>3)throw new Error("too late; already running");return r}function Po(t,e){var r=t.__transition;if(!r||!(r=r[e]))throw new Error("transition not found");return r}function Us(t,e){return t=+t,e=+e,function(r){return t*(1-r)+e*r}}var bd,e1=180/Math.PI,wg={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function Cv(t,e,r,a,c,u){var h,g,x;return(h=Math.sqrt(t*t+e*e))&&(t/=h,e/=h),(x=t*r+e*a)&&(r-=t*x,a-=e*x),(g=Math.sqrt(r*r+a*a))&&(r/=g,a/=g,x/=g),t*a<e*r&&(t=-t,e=-e,x=-x,h=-h),{translateX:c,translateY:u,rotate:Math.atan2(e,t)*e1,skewX:Math.atan(x)*e1,scaleX:h,scaleY:g}}function Ev(t,e,r,a){function c(u){return u.length?u.pop()+" ":""}return function(u,h){var g=[],x=[];return u=t(u),h=t(h),function(_,N,F,P,H,ct){if(_!==F||N!==P){var J=H.push("translate(",null,e,null,r);ct.push({i:J-4,x:Us(_,F)},{i:J-2,x:Us(N,P)})}else(F||P)&&H.push("translate("+F+e+P+r)}(u.translateX,u.translateY,h.translateX,h.translateY,g,x),function(_,N,F,P){_!==N?(_-N>180?N+=360:N-_>180&&(_+=360),P.push({i:F.push(c(F)+"rotate(",null,a)-2,x:Us(_,N)})):N&&F.push(c(F)+"rotate("+N+a)}(u.rotate,h.rotate,g,x),function(_,N,F,P){_!==N?P.push({i:F.push(c(F)+"skewX(",null,a)-2,x:Us(_,N)}):N&&F.push(c(F)+"skewX("+N+a)}(u.skewX,h.skewX,g,x),function(_,N,F,P,H,ct){if(_!==F||N!==P){var J=H.push(c(H)+"scale(",null,",",null,")");ct.push({i:J-4,x:Us(_,F)},{i:J-2,x:Us(N,P)})}else F===1&&P===1||H.push(c(H)+"scale("+F+","+P+")")}(u.scaleX,u.scaleY,h.scaleX,h.scaleY,g,x),u=h=null,function(_){for(var N,F=-1,P=x.length;++F<P;)g[(N=x[F]).i]=N.x(_);return g.join("")}}}var D5=Ev(function(t){const e=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(t+"");return e.isIdentity?wg:Cv(e.a,e.b,e.c,e.d,e.e,e.f)},"px, ","px)","deg)"),L5=Ev(function(t){return t==null?wg:(bd||(bd=document.createElementNS("http://www.w3.org/2000/svg","g")),bd.setAttribute("transform",t),(t=bd.transform.baseVal.consolidate())?Cv((t=t.matrix).a,t.b,t.c,t.d,t.e,t.f):wg)},", ",")",")");function B5(t,e){var r,a;return function(){var c=fs(this,t),u=c.tween;if(u!==r){for(var h=0,g=(a=r=u).length;h<g;++h)if(a[h].name===e){(a=a.slice()).splice(h,1);break}}c.tween=a}}function Sv(t,e,r){var a,c;if(typeof r!="function")throw new Error;return function(){var u=fs(this,t),h=u.tween;if(h!==a){c=(a=h).slice();for(var g={name:e,value:r},x=0,_=c.length;x<_;++x)if(c[x].name===e){c[x]=g;break}x===_&&c.push(g)}u.tween=c}}function kg(t,e,r){var a=t._id;return t.each(function(){var c=fs(this,a);(c.value||(c.value={}))[e]=r.apply(this,arguments)}),function(c){return Po(c,a).value[e]}}function Tg(t,e,r){t.prototype=e.prototype=r,r.constructor=t}function Av(t,e){var r=Object.create(t.prototype);for(var a in e)r[a]=e[a];return r}function ds(){}var _d=.7,n1=1.4285714285714286,ml="\\s*([+-]?\\d+)\\s*",vl="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",ps="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",O5=/^#([0-9a-f]{3,8})$/,jo=new RegExp("^rgb\\("+[ml,ml,ml]+"\\)$"),qs=new RegExp("^rgb\\("+[ps,ps,ps]+"\\)$"),Mv=new RegExp("^rgba\\("+[ml,ml,ml,vl]+"\\)$"),xd=new RegExp("^rgba\\("+[ps,ps,ps,vl]+"\\)$"),su=new RegExp("^hsl\\("+[vl,ps,ps]+"\\)$"),Cg=new RegExp("^hsla\\("+[vl,ps,ps,vl]+"\\)$"),wd={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 kd(){return this.rgb().formatHex()}function Eg(){return this.rgb().formatRgb()}function r1(t){var e,r;return t=(t+"").trim().toLowerCase(),(e=O5.exec(t))?(r=e[1].length,e=parseInt(e[1],16),r===6?Td(e):r===3?new Ia(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):r===8?i1(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):r===4?i1(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=jo.exec(t))?new Ia(e[1],e[2],e[3],1):(e=qs.exec(t))?new Ia(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=Mv.exec(t))?i1(e[1],e[2],e[3],e[4]):(e=xd.exec(t))?i1(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=su.exec(t))?o1(e[1],e[2]/100,e[3]/100,1):(e=Cg.exec(t))?o1(e[1],e[2]/100,e[3]/100,e[4]):wd.hasOwnProperty(t)?Td(wd[t]):t==="transparent"?new Ia(NaN,NaN,NaN,0):null}function Td(t){return new Ia(t>>16&255,t>>8&255,255&t,1)}function i1(t,e,r,a){return a<=0&&(t=e=r=NaN),new Ia(t,e,r,a)}function Ki(t){return t instanceof ds||(t=r1(t)),t?new Ia((t=t.rgb()).r,t.g,t.b,t.opacity):new Ia}function a1(t,e,r,a){return arguments.length===1?Ki(t):new Ia(t,e,r,a==null?1:a)}function Ia(t,e,r,a){this.r=+t,this.g=+e,this.b=+r,this.opacity=+a}function Nv(){return"#"+cu(this.r)+cu(this.g)+cu(this.b)}function Dv(){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 cu(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function o1(t,e,r,a){return a<=0?t=e=r=NaN:r<=0||r>=1?t=e=NaN:e<=0&&(t=NaN),new Yo(t,e,r,a)}function Sg(t){if(t instanceof Yo)return new Yo(t.h,t.s,t.l,t.opacity);if(t instanceof ds||(t=r1(t)),!t)return new Yo;if(t instanceof Yo)return t;var e=(t=t.rgb()).r/255,r=t.g/255,a=t.b/255,c=Math.min(e,r,a),u=Math.max(e,r,a),h=NaN,g=u-c,x=(u+c)/2;return g?(h=e===u?(r-a)/g+6*(r<a):r===u?(a-e)/g+2:(e-r)/g+4,g/=x<.5?u+c:2-u-c,h*=60):g=x>0&&x<1?0:h,new Yo(h,g,x,t.opacity)}function Yo(t,e,r,a){this.h=+t,this.s=+e,this.l=+r,this.opacity=+a}function $s(t,e,r){return 255*(t<60?e+(r-e)*t/60:t<180?r:t<240?e+(r-e)*(240-t)/60:e)}Tg(ds,r1,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:kd,formatHex:kd,formatHsl:function(){return Sg(this).formatHsl()},formatRgb:Eg,toString:Eg}),Tg(Ia,a1,Av(ds,{brighter:function(t){return t=t==null?n1:Math.pow(n1,t),new Ia(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=t==null?_d:Math.pow(_d,t),new Ia(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:Nv,formatHex:Nv,formatRgb:Dv,toString:Dv})),Tg(Yo,function(t,e,r,a){return arguments.length===1?Sg(t):new Yo(t,e,r,a==null?1:a)},Av(ds,{brighter:function(t){return t=t==null?n1:Math.pow(n1,t),new Yo(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=t==null?_d:Math.pow(_d,t),new Yo(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,c=2*r-a;return new Ia($s(t>=240?t-240:t+120,c,a),$s(t,c,a),$s(t<120?t+240:t-120,c,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 Ag=t=>()=>t;function Mg(t,e){var r=e-t;return r?function(a,c){return function(u){return a+u*c}}(t,r):Ag(isNaN(t)?e:t)}const Ng=function t(e){var r=function(c){return(c=+c)==1?Mg:function(u,h){return h-u?function(g,x,_){return g=Math.pow(g,_),x=Math.pow(x,_)-g,_=1/_,function(N){return Math.pow(g+N*x,_)}}(u,h,c):Ag(isNaN(u)?h:u)}}(e);function a(c,u){var h=r((c=a1(c)).r,(u=a1(u)).r),g=r(c.g,u.g),x=r(c.b,u.b),_=Mg(c.opacity,u.opacity);return function(N){return c.r=h(N),c.g=g(N),c.b=x(N),c.opacity=_(N),c+""}}return a.gamma=t,a}(1);var Cd=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Ed=new RegExp(Cd.source,"g");function I5(t,e){var r,a,c,u=Cd.lastIndex=Ed.lastIndex=0,h=-1,g=[],x=[];for(t+="",e+="";(r=Cd.exec(t))&&(a=Ed.exec(e));)(c=a.index)>u&&(c=e.slice(u,c),g[h]?g[h]+=c:g[++h]=c),(r=r[0])===(a=a[0])?g[h]?g[h]+=a:g[++h]=a:(g[++h]=null,x.push({i:h,x:Us(r,a)})),u=Ed.lastIndex;return u<e.length&&(c=e.slice(u),g[h]?g[h]+=c:g[++h]=c),g.length<2?x[0]?function(_){return function(N){return _(N)+""}}(x[0].x):function(_){return function(){return _}}(e):(e=x.length,function(_){for(var N,F=0;F<e;++F)g[(N=x[F]).i]=N.x(_);return g.join("")})}function Lv(t,e){var r;return(typeof e=="number"?Us:e instanceof r1?Ng:(r=r1(e))?(e=r,Ng):I5)(t,e)}function R5(t){return function(){this.removeAttribute(t)}}function Bv(t){return function(){this.removeAttributeNS(t.space,t.local)}}function Dg(t,e,r){var a,c,u=r+"";return function(){var h=this.getAttribute(t);return h===u?null:h===a?c:c=e(a=h,r)}}function Ov(t,e,r){var a,c,u=r+"";return function(){var h=this.getAttributeNS(t.space,t.local);return h===u?null:h===a?c:c=e(a=h,r)}}function Iv(t,e,r){var a,c,u;return function(){var h,g,x=r(this);if(x!=null)return(h=this.getAttribute(t))===(g=x+"")?null:h===a&&g===c?u:(c=g,u=e(a=h,x));this.removeAttribute(t)}}function Rv(t,e,r){var a,c,u;return function(){var h,g,x=r(this);if(x!=null)return(h=this.getAttributeNS(t.space,t.local))===(g=x+"")?null:h===a&&g===c?u:(c=g,u=e(a=h,x));this.removeAttributeNS(t.space,t.local)}}function Lg(t,e){return function(r){this.setAttribute(t,e.call(this,r))}}function Fv(t,e){return function(r){this.setAttributeNS(t.space,t.local,e.call(this,r))}}function Pv(t,e){var r,a;function c(){var u=e.apply(this,arguments);return u!==a&&(r=(a=u)&&Fv(t,u)),r}return c._value=e,c}function F5(t,e){var r,a;function c(){var u=e.apply(this,arguments);return u!==a&&(r=(a=u)&&Lg(t,u)),r}return c._value=e,c}function P5(t,e){return function(){vd(this,t).delay=+e.apply(this,arguments)}}function Bg(t,e){return e=+e,function(){vd(this,t).delay=e}}function Og(t,e){return function(){fs(this,t).duration=+e.apply(this,arguments)}}function j5(t,e){return e=+e,function(){fs(this,t).duration=e}}function jv(t,e){if(typeof e!="function")throw new Error;return function(){fs(this,t).ease=e}}function Yv(t,e,r){var a,c,u=function(h){return(h+"").trim().split(/^|\s+/).every(function(g){var x=g.indexOf(".");return x>=0&&(g=g.slice(0,x)),!g||g==="start"})}(e)?vd:fs;return function(){var h=u(this,t),g=h.on;g!==a&&(c=(a=g).copy()).on(e,r),h.on=c}}var zv=Kh.prototype.constructor;function Sd(t){return function(){this.style.removeProperty(t)}}function Ig(t,e,r){return function(a){this.style.setProperty(t,e.call(this,a),r)}}function Li(t,e,r){var a,c;function u(){var h=e.apply(this,arguments);return h!==c&&(a=(c=h)&&Ig(t,h,r)),a}return u._value=e,u}function Rg(t){return function(e){this.textContent=t.call(this,e)}}function uu(t){var e,r;function a(){var c=t.apply(this,arguments);return c!==r&&(e=(r=c)&&Rg(c)),e}return a._value=t,a}var Y5=0;function gs(t,e,r,a){this._groups=t,this._parents=e,this._name=r,this._id=a}function Fg(){return++Y5}var Hs=Kh.prototype;gs.prototype={constructor:gs,select:function(t){var e=this._name,r=this._id;typeof t!="function"&&(t=sg(t));for(var a=this._groups,c=a.length,u=new Array(c),h=0;h<c;++h)for(var g,x,_=a[h],N=_.length,F=u[h]=new Array(N),P=0;P<N;++P)(g=_[P])&&(x=t.call(g,g.__data__,P,_))&&("__data__"in g&&(x.__data__=g.__data__),F[P]=x,md(F[P],e,r,P,F,Po(g,r)));return new gs(u,this._parents,e,r)},selectAll:function(t){var e=this._name,r=this._id;typeof t!="function"&&(t=cg(t));for(var a=this._groups,c=a.length,u=[],h=[],g=0;g<c;++g)for(var x,_=a[g],N=_.length,F=0;F<N;++F)if(x=_[F]){for(var P,H=t.call(x,x.__data__,F,_),ct=Po(x,r),J=0,yt=H.length;J<yt;++J)(P=H[J])&&md(P,e,r,J,H,ct);u.push(H),h.push(x)}return new gs(u,h,e,r)},selectChild:Hs.selectChild,selectChildren:Hs.selectChildren,filter:function(t){typeof t!="function"&&(t=$h(t));for(var e=this._groups,r=e.length,a=new Array(r),c=0;c<r;++c)for(var u,h=e[c],g=h.length,x=a[c]=[],_=0;_<g;++_)(u=h[_])&&t.call(u,u.__data__,_,h)&&x.push(u);return new gs(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,c=r.length,u=Math.min(a,c),h=new Array(a),g=0;g<u;++g)for(var x,_=e[g],N=r[g],F=_.length,P=h[g]=new Array(F),H=0;H<F;++H)(x=_[H]||N[H])&&(P[H]=x);for(;g<a;++g)h[g]=e[g];return new gs(h,this._parents,this._name,this._id)},selection:function(){return new zv(this._groups,this._parents)},transition:function(){for(var t=this._name,e=this._id,r=Fg(),a=this._groups,c=a.length,u=0;u<c;++u)for(var h,g=a[u],x=g.length,_=0;_<x;++_)if(h=g[_]){var N=Po(h,e);md(h,t,r,_,g,{time:N.time+N.delay+N.duration,delay:0,duration:N.duration,ease:N.ease})}return new gs(a,this._parents,t,r)},call:Hs.call,nodes:Hs.nodes,node:Hs.node,size:Hs.size,empty:Hs.empty,each:Hs.each,on:function(t,e){var r=this._id;return arguments.length<2?Po(this.node(),r).on.on(t):this.each(Yv(r,t,e))},attr:function(t,e){var r=ad(t),a=r==="transform"?L5:Lv;return this.attrTween(t,typeof e=="function"?(r.local?Rv:Iv)(r,a,kg(this,"attr."+t,e)):e==null?(r.local?Bv:R5)(r):(r.local?Ov:Dg)(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=ad(t);return this.tween(r,(a.local?Pv:F5)(a,e))},style:function(t,e,r){var a=(t+="")=="transform"?D5:Lv;return e==null?this.styleTween(t,function(c,u){var h,g,x;return function(){var _=fl(this,c),N=(this.style.removeProperty(c),fl(this,c));return _===N?null:_===h&&N===g?x:x=u(h=_,g=N)}}(t,a)).on("end.style."+t,Sd(t)):typeof e=="function"?this.styleTween(t,function(c,u,h){var g,x,_;return function(){var N=fl(this,c),F=h(this),P=F+"";return F==null&&(this.style.removeProperty(c),P=F=fl(this,c)),N===P?null:N===g&&P===x?_:(x=P,_=u(g=N,F))}}(t,a,kg(this,"style."+t,e))).each(function(c,u){var h,g,x,_,N="style."+u,F="end."+N;return function(){var P=fs(this,c),H=P.on,ct=P.value[N]==null?_||(_=Sd(u)):void 0;H===h&&x===ct||(g=(h=H).copy()).on(F,x=ct),P.on=g}}(this._id,t)):this.styleTween(t,function(c,u,h){var g,x,_=h+"";return function(){var N=fl(this,c);return N===_?null:N===g?x:x=u(g=N,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,Li(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}}(kg(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,uu(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,c=Po(this.node(),r).tween,u=0,h=c.length;u<h;++u)if((a=c[u]).name===t)return a.value;return null}return this.each((e==null?B5:Sv)(r,t,e))},delay:function(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?P5:Bg)(e,t)):Po(this.node(),e).delay},duration:function(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?Og:j5)(e,t)):Po(this.node(),e).duration},ease:function(t){var e=this._id;return arguments.length?this.each(jv(e,t)):Po(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;fs(this,e).ease=a}}(this._id,t))},end:function(){var t,e,r=this,a=r._id,c=r.size();return new Promise(function(u,h){var g={value:h},x={value:function(){--c==0&&u()}};r.each(function(){var _=fs(this,a),N=_.on;N!==t&&((e=(t=N).copy())._.cancel.push(g),e._.interrupt.push(g),e._.end.push(x)),_.on=e}),c===0&&u()})},[Symbol.iterator]:Hs[Symbol.iterator]};var Ad={time:null,delay:0,duration:250,ease:function(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}};function lu(t,e){for(var r;!(r=t.__transition)||!(r=r[e]);)if(!(t=t.parentNode))throw new Error(`transition ${e} not found`);return r}Kh.prototype.interrupt=function(t){return this.each(function(){(function(e,r){var a,c,u,h=e.__transition,g=!0;if(h){for(u in r=r==null?null:r+"",h)(a=h[u]).name===r?(c=a.state>2&&a.state<5,a.state=6,a.timer.stop(),a.on.call(c?"interrupt":"cancel",e,e.__data__,a.index,a.group),delete h[u]):g=!1;g&&delete e.__transition}})(this,t)})},Kh.prototype.transition=function(t){var e,r;t instanceof gs?(e=t._id,t=t._name):(e=Fg(),(r=Ad).time=bg(),t=t==null?null:t+"");for(var a=this._groups,c=a.length,u=0;u<c;++u)for(var h,g=a[u],x=g.length,_=0;_<x;++_)(h=g[_])&&md(h,t,e,_,g,r||lu(h,e));return new gs(a,this._parents,t,e)};var s1="comm",Pg="rule",jg="decl",hu=Math.abs,fu=String.fromCharCode;function bl(t){return t.trim()}function Md(t,e,r){return t.replace(e,r)}function Uv(t,e){return t.indexOf(e)}function Ws(t,e){return 0|t.charCodeAt(e)}function _l(t,e,r){return t.slice(e,r)}function Vs(t){return t.length}function Yg(t){return t.length}function Nd(t,e){return e.push(t),t}function zg(t,e){for(var r="",a=Yg(t),c=0;c<a;c++)r+=e(t[c],c,t,e)||"";return r}function z5(t,e,r,a){switch(t.type){case"@import":case jg:return t.return=t.return||t.value;case s1:return"";case"@keyframes":return t.return=t.value+"{"+zg(t.children,a)+"}";case Pg:t.value=t.props.join(",")}return Vs(r=zg(t.children,a))?t.return=t.value+"{"+r+"}":""}var Dd=1,xl=1,qv=0,io=0,oi=0,wl="";function Ld(t,e,r,a,c,u,h){return{value:t,root:e,parent:r,type:a,props:c,children:u,line:Dd,column:xl,length:h,return:""}}function $v(){return oi=io>0?Ws(wl,--io):0,xl--,oi===10&&(xl=1,Dd--),oi}function zo(){return oi=io<qv?Ws(wl,io++):0,xl++,oi===10&&(xl=1,Dd++),oi}function Mc(){return Ws(wl,io)}function c1(){return io}function Bd(t,e){return _l(wl,t,e)}function Od(t){switch(t){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 kl(t){return bl(Bd(io-1,Tl(t===91?t+2:t===40?t+1:t)))}function Hv(t){for(;(oi=Mc())&&oi<33;)zo();return Od(t)>2||Od(oi)>3?"":" "}function Id(t,e){for(;--e&&zo()&&!(oi<48||oi>102||oi>57&&oi<65||oi>70&&oi<97););return Bd(t,c1()+(e<6&&Mc()==32&&zo()==32))}function Tl(t){for(;zo();)switch(oi){case t:return io;case 34:case 39:t!==34&&t!==39&&Tl(oi);break;case 40:t===41&&Tl(t);break;case 92:zo()}return io}function Wv(t,e){for(;zo()&&t+oi!==57&&(t+oi!==84||Mc()!==47););return"/*"+Bd(e,io-1)+"*"+fu(t===47?t:zo())}function du(t){for(;!Od(Mc());)zo();return Bd(t,io)}function u1(t){return function(e){return wl="",e}(Nc("",null,null,null,[""],t=function(e){return Dd=xl=1,qv=Vs(wl=e),io=0,[]}(t),0,[0],t))}function Nc(t,e,r,a,c,u,h,g,x){for(var _=0,N=0,F=h,P=0,H=0,ct=0,J=1,yt=1,ft=1,kt=0,Tt="",qt=c,ee=u,Ot=a,Xt=Tt;yt;)switch(ct=kt,kt=zo()){case 40:if(ct!=108&&Xt.charCodeAt(F-1)==58){Uv(Xt+=Md(kl(kt),"&","&\f"),"&\f")!=-1&&(ft=-1);break}case 34:case 39:case 91:Xt+=kl(kt);break;case 9:case 10:case 13:case 32:Xt+=Hv(ct);break;case 92:Xt+=Id(c1()-1,7);continue;case 47:switch(Mc()){case 42:case 47:Nd(Vv(Wv(zo(),c1()),e,r),x);break;default:Xt+="/"}break;case 123*J:g[_++]=Vs(Xt)*ft;case 125*J:case 59:case 0:switch(kt){case 0:case 125:yt=0;case 59+N:H>0&&Vs(Xt)-F&&Nd(H>32?Dc(Xt+";",a,r,F-1):Dc(Md(Xt," ","")+";",a,r,F-2),x);break;case 59:Xt+=";";default:if(Nd(Ot=Ug(Xt,e,r,_,N,c,g,Tt,qt=[],ee=[],F),u),kt===123)if(N===0)Nc(Xt,e,Ot,Ot,qt,u,F,g,ee);else switch(P){case 100:case 109:case 115:Nc(t,Ot,Ot,a&&Nd(Ug(t,Ot,Ot,0,0,c,g,Tt,c,qt=[],F),ee),c,ee,F,g,a?qt:ee);break;default:Nc(Xt,Ot,Ot,Ot,[""],ee,0,g,ee)}}_=N=H=0,J=ft=1,Tt=Xt="",F=h;break;case 58:F=1+Vs(Xt),H=ct;default:if(J<1){if(kt==123)--J;else if(kt==125&&J++==0&&$v()==125)continue}switch(Xt+=fu(kt),kt*J){case 38:ft=N>0?1:(Xt+="\f",-1);break;case 44:g[_++]=(Vs(Xt)-1)*ft,ft=1;break;case 64:Mc()===45&&(Xt+=kl(zo())),P=Mc(),N=F=Vs(Tt=Xt+=du(c1())),kt++;break;case 45:ct===45&&Vs(Xt)==2&&(J=0)}}return u}function Ug(t,e,r,a,c,u,h,g,x,_,N){for(var F=c-1,P=c===0?u:[""],H=Yg(P),ct=0,J=0,yt=0;ct<a;++ct)for(var ft=0,kt=_l(t,F+1,F=hu(J=h[ct])),Tt=t;ft<H;++ft)(Tt=bl(J>0?P[ft]+" "+kt:Md(kt,/&\f/g,P[ft])))&&(x[yt++]=Tt);return Ld(t,e,r,c===0?Pg:g,x,_,N)}function Vv(t,e,r){return Ld(t,e,r,s1,fu(oi),_l(t,2,-2),0)}function Dc(t,e,r,a){return Ld(t,e,r,jg,_l(t,0,a),_l(t,a+1,-1),a)}const qg="9.1.1";var pu=p(7967),Gv=p(7856),$g=p.n(Gv),Xv=function(t){var e=t.replace(/\\u[\dA-F]{4}/gi,function(r){return String.fromCharCode(parseInt(r.replace(/\\u/g,""),16))});return e=(e=(e=e.replace(/\\x([0-9a-f]{2})/gi,function(r,a){return String.fromCharCode(parseInt(a,16))})).replace(/\\[\d\d\d]{3}/gi,function(r){return String.fromCharCode(parseInt(r.replace(/\\/g,""),8))})).replace(/\\[\d\d\d]{2}/gi,function(r){return String.fromCharCode(parseInt(r.replace(/\\/g,""),8))})},Zv=function(t){for(var e="",r=0;r>=0;){if(!((r=t.indexOf("<script"))>=0)){e+=t,r=-1;break}e+=t.substr(0,r),(r=(t=t.substr(r+1)).indexOf("<\/script>"))>=0&&(r+=9,t=t.substr(r))}var a=Xv(e);return(a=(a=(a=(a=a.replaceAll(/script>/gi,"#")).replaceAll(/javascript:/gi,"#")).replaceAll(/javascript&colon/gi,"#")).replaceAll(/onerror=/gi,"onerror:")).replaceAll(/<iframe/gi,"")},Qv=function(t,e){var r=t,a=!0;if(!e.flowchart||e.flowchart.htmlLabels!==!1&&e.flowchart.htmlLabels!=="false"||(a=!1),a){var c=e.securityLevel;c==="antiscript"||c==="strict"?r=Zv(r):c!=="loose"&&(r=(r=(r=l1(r)).replace(/</g,"&lt;").replace(/>/g,"&gt;")).replace(/=/g,"&equals;"),r=Kv(r))}return r},Gs=function(t,e){return t&&(e.dompurifyConfig?$g().sanitize(Qv(t,e),e.dompurifyConfig):$g().sanitize(Qv(t,e)))},Rd=/<br\s*\/?>/gi,Kv=function(t){return t.replace(/#br#/g,"<br/>")},l1=function(t){return t.replace(Rd,"#br#")},Ji=function(t){return t!=="false"&&t!==!1};const Jn={getRows:function(t){if(!t)return 1;var e=l1(t);return(e=e.replace(/\\n/g,"#br#")).split("#br#")},sanitizeText:Gs,sanitizeTextOrArray:function(t,e){return typeof t=="string"?Gs(t,e):t.flat().map(function(r){return Gs(r,e)})},hasBreaks:function(t){return Rd.test(t)},splitBreaks:function(t){return t.split(Rd)},lineBreakRegex:Rd,removeScript:Zv,getUrl:function(t){var e="";return t&&(e=(e=(e=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search).replace(/\(/g,"\\(")).replace(/\)/g,"\\)")),e},evaluate:Ji,removeEscapes:Xv},ys={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:t=>t>=255?255:t<0?0:t,g:t=>t>=255?255:t<0?0:t,b:t=>t>=255?255:t<0?0:t,h:t=>t%360,s:t=>t>=100?100:t<0?0:t,l:t=>t>=100?100:t<0?0:t,a:t=>t>=1?1:t<0?0:t},toLinear:t=>{const e=t/255;return t>.03928?Math.pow((e+.055)/1.055,2.4):e/12.92},hue2rgb:(t,e,r)=>(r<0&&(r+=1),r>1&&(r-=1),r<1/6?t+6*(e-t)*r:r<.5?e:r<2/3?t+(e-t)*(2/3-r)*6:t),hsl2rgb:({h:t,s:e,l:r},a)=>{if(!e)return 2.55*r;t/=360,e/=100;const c=(r/=100)<.5?r*(1+e):r+e-r*e,u=2*r-c;switch(a){case"r":return 255*ys.hue2rgb(u,c,t+1/3);case"g":return 255*ys.hue2rgb(u,c,t);case"b":return 255*ys.hue2rgb(u,c,t-1/3)}},rgb2hsl:({r:t,g:e,b:r},a)=>{t/=255,e/=255,r/=255;const c=Math.max(t,e,r),u=Math.min(t,e,r),h=(c+u)/2;if(a==="l")return 100*h;if(c===u)return 0;const g=c-u;if(a==="s")return 100*(h>.5?g/(2-c-u):g/(c+u));switch(c){case t:return 60*((e-r)/g+(e<r?6:0));case e:return 60*((r-t)/g+2);case r:return 60*((t-e)/g+4);default:return-1}}},U5={clamp:(t,e,r)=>e>r?Math.min(e,Math.max(r,t)):Math.min(r,Math.max(e,t)),round:t=>Math.round(1e10*t)/1e10},Hg={dec2hex:t=>{const e=Math.round(t).toString(16);return e.length>1?e:`0${e}`}},Gn={channel:ys,lang:U5,unit:Hg},go={};for(let t=0;t<=255;t++)go[t]=Gn.unit.dec2hex(t);const h1=new class{constructor(t,e){this.color=e,this.changed=!1,this.data=t,this.type=new class{constructor(){this.type=0}get(){return this.type}set(r){if(this.type&&this.type!==r)throw new Error("Cannot change both RGB and HSL channels at the same time");this.type=r}reset(){this.type=0}is(r){return this.type===r}}}set(t,e){return this.color=e,this.changed=!1,this.data=t,this.type.type=0,this}_ensureHSL(){const t=this.data,{h:e,s:r,l:a}=t;e===void 0&&(t.h=Gn.channel.rgb2hsl(t,"h")),r===void 0&&(t.s=Gn.channel.rgb2hsl(t,"s")),a===void 0&&(t.l=Gn.channel.rgb2hsl(t,"l"))}_ensureRGB(){const t=this.data,{r:e,g:r,b:a}=t;e===void 0&&(t.r=Gn.channel.hsl2rgb(t,"r")),r===void 0&&(t.g=Gn.channel.hsl2rgb(t,"g")),a===void 0&&(t.b=Gn.channel.hsl2rgb(t,"b"))}get r(){const t=this.data,e=t.r;return this.type.is(2)||e===void 0?(this._ensureHSL(),Gn.channel.hsl2rgb(t,"r")):e}get g(){const t=this.data,e=t.g;return this.type.is(2)||e===void 0?(this._ensureHSL(),Gn.channel.hsl2rgb(t,"g")):e}get b(){const t=this.data,e=t.b;return this.type.is(2)||e===void 0?(this._ensureHSL(),Gn.channel.hsl2rgb(t,"b")):e}get h(){const t=this.data,e=t.h;return this.type.is(1)||e===void 0?(this._ensureRGB(),Gn.channel.rgb2hsl(t,"h")):e}get s(){const t=this.data,e=t.s;return this.type.is(1)||e===void 0?(this._ensureRGB(),Gn.channel.rgb2hsl(t,"s")):e}get l(){const t=this.data,e=t.l;return this.type.is(1)||e===void 0?(this._ensureRGB(),Gn.channel.rgb2hsl(t,"l")):e}get a(){return this.data.a}set r(t){this.type.set(1),this.changed=!0,this.data.r=t}set g(t){this.type.set(1),this.changed=!0,this.data.g=t}set b(t){this.type.set(1),this.changed=!0,this.data.b=t}set h(t){this.type.set(2),this.changed=!0,this.data.h=t}set s(t){this.type.set(2),this.changed=!0,this.data.s=t}set l(t){this.type.set(2),this.changed=!0,this.data.l=t}set a(t){this.changed=!0,this.data.a=t}}({r:0,g:0,b:0,a:0},"transparent"),gu={re:/^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,parse:t=>{if(t.charCodeAt(0)!==35)return;const e=t.match(gu.re);if(!e)return;const r=e[1],a=parseInt(r,16),c=r.length,u=c%4==0,h=c>4,g=h?1:17,x=h?8:4,_=u?0:-1,N=h?255:15;return h1.set({r:(a>>x*(_+3)&N)*g,g:(a>>x*(_+2)&N)*g,b:(a>>x*(_+1)&N)*g,a:u?(a&N)*g/255:1},t)},stringify:t=>{const{r:e,g:r,b:a,a:c}=t;return c<1?`#${go[Math.round(e)]}${go[Math.round(r)]}${go[Math.round(a)]}${go[Math.round(255*c)]}`:`#${go[Math.round(e)]}${go[Math.round(r)]}${go[Math.round(a)]}`}},yu=gu,f1={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:t=>{const e=t.match(f1.hueRe);if(e){const[,r,a]=e;switch(a){case"grad":return Gn.channel.clamp.h(.9*parseFloat(r));case"rad":return Gn.channel.clamp.h(180*parseFloat(r)/Math.PI);case"turn":return Gn.channel.clamp.h(360*parseFloat(r))}}return Gn.channel.clamp.h(parseFloat(t))},parse:t=>{const e=t.charCodeAt(0);if(e!==104&&e!==72)return;const r=t.match(f1.re);if(!r)return;const[,a,c,u,h,g]=r;return h1.set({h:f1._hue2deg(a),s:Gn.channel.clamp.s(parseFloat(c)),l:Gn.channel.clamp.l(parseFloat(u)),a:h?Gn.channel.clamp.a(g?parseFloat(h)/100:parseFloat(h)):1},t)},stringify:t=>{const{h:e,s:r,l:a,a:c}=t;return c<1?`hsla(${Gn.lang.round(e)}, ${Gn.lang.round(r)}%, ${Gn.lang.round(a)}%, ${c})`:`hsl(${Gn.lang.round(e)}, ${Gn.lang.round(r)}%, ${Gn.lang.round(a)}%)`}},mu=f1,Cl={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:t=>{t=t.toLowerCase();const e=Cl.colors[t];if(e)return yu.parse(e)},stringify:t=>{const e=yu.stringify(t);for(const r in Cl.colors)if(Cl.colors[r]===e)return r}},Wg=Cl,Bi={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:t=>{const e=t.charCodeAt(0);if(e!==114&&e!==82)return;const r=t.match(Bi.re);if(!r)return;const[,a,c,u,h,g,x,_,N]=r;return h1.set({r:Gn.channel.clamp.r(c?2.55*parseFloat(a):parseFloat(a)),g:Gn.channel.clamp.g(h?2.55*parseFloat(u):parseFloat(u)),b:Gn.channel.clamp.b(x?2.55*parseFloat(g):parseFloat(g)),a:_?Gn.channel.clamp.a(N?parseFloat(_)/100:parseFloat(_)):1},t)},stringify:t=>{const{r:e,g:r,b:a,a:c}=t;return c<1?`rgba(${Gn.lang.round(e)}, ${Gn.lang.round(r)}, ${Gn.lang.round(a)}, ${Gn.lang.round(c)})`:`rgb(${Gn.lang.round(e)}, ${Gn.lang.round(r)}, ${Gn.lang.round(a)})`}},Fd=Bi,q5={format:{keyword:Wg,hex:yu,rgb:Fd,rgba:Fd,hsl:mu,hsla:mu},parse:t=>{if(typeof t!="string")return t;const e=yu.parse(t)||Fd.parse(t)||mu.parse(t)||Wg.parse(t);if(e)return e;throw new Error(`Unsupported color format: "${t}"`)},stringify:t=>!t.changed&&t.color?t.color:t.type.is(2)||t.data.r===void 0?mu.stringify(t):t.a<1||!Number.isInteger(t.r)||!Number.isInteger(t.g)||!Number.isInteger(t.b)?Fd.stringify(t):yu.stringify(t)},ir=q5,Jv=(t,e)=>{const r=ir.parse(t);for(const a in e)r[a]=Gn.channel.clamp[a](e[a]);return ir.stringify(r)},Re=(t,e)=>{const r=ir.parse(t),a={};for(const c in e)e[c]&&(a[c]=r[c]+e[c]);return Jv(t,a)},Xs=(t,e,r=0,a=1)=>{if(typeof t!="number")return Jv(t,{a:e});const c=h1.set({r:Gn.channel.clamp.r(t),g:Gn.channel.clamp.g(e),b:Gn.channel.clamp.b(r),a:Gn.channel.clamp.a(a)});return ir.stringify(c)},hn=(t,e=100)=>{const r=ir.parse(t);return r.r=255-r.r,r.g=255-r.g,r.b=255-r.b,((a,c,u=50)=>{const{r:h,g,b:x,a:_}=ir.parse(a),{r:N,g:F,b:P,a:H}=ir.parse(c),ct=u/100,J=2*ct-1,yt=_-H,ft=((J*yt==-1?J:(J+yt)/(1+J*yt))+1)/2,kt=1-ft;return Xs(h*ft+N*kt,g*ft+F*kt,x*ft+P*kt,_*ct+H*(1-ct))})(r,t,e)},t3=(t,e,r)=>{const a=ir.parse(t),c=a[e],u=Gn.channel.clamp[e](c+r);return c!==u&&(a[e]=u),ir.stringify(a)},vr=(t,e)=>t3(t,"l",-e),Hn=(t,e)=>t3(t,"l",e);var xa=function(t,e){return Re(t,e?{s:-40,l:10}:{s:-40,l:-10})};function Pd(t){return Pd=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Pd(t)}function e3(t,e){for(var r=0;r<e.length;r++){var a=e[r];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}var $5=function(){function t(){(function(a,c){if(!(a instanceof c))throw new TypeError("Cannot call a class as a function")})(this,t),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 e,r;return e=t,r=[{key:"updateColors",value:function(){this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#333"),this.secondaryColor=this.secondaryColor||Re(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||Re(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||xa(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||xa(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||xa(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||xa(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||hn(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||hn(this.tertiaryColor),this.lineColor=this.lineColor||hn(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?vr(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||vr(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||hn(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||Hn(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.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||this.tertiaryColor,this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||this.primaryColor,this.fillType1=this.fillType1||this.secondaryColor,this.fillType2=this.fillType2||Re(this.primaryColor,{h:64}),this.fillType3=this.fillType3||Re(this.secondaryColor,{h:64}),this.fillType4=this.fillType4||Re(this.primaryColor,{h:-64}),this.fillType5=this.fillType5||Re(this.secondaryColor,{h:-64}),this.fillType6=this.fillType6||Re(this.primaryColor,{h:128}),this.fillType7=this.fillType7||Re(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||this.tertiaryColor,this.pie4=this.pie4||Re(this.primaryColor,{l:-10}),this.pie5=this.pie5||Re(this.secondaryColor,{l:-10}),this.pie6=this.pie6||Re(this.tertiaryColor,{l:-10}),this.pie7=this.pie7||Re(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||Re(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||Re(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||Re(this.primaryColor,{h:60,l:-20}),this.pie11=this.pie11||Re(this.primaryColor,{h:-60,l:-20}),this.pie12=this.pie12||Re(this.primaryColor,{h:120,l:-10}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOpacity=this.pieOpacity||"0.7",this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||this.primaryBorderColor,this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?vr(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||Re(this.primaryColor,{h:-30}),this.git4=this.git4||Re(this.primaryColor,{h:-60}),this.git5=this.git5||Re(this.primaryColor,{h:-90}),this.git6=this.git6||Re(this.primaryColor,{h:60}),this.git7=this.git7||Re(this.primaryColor,{h:120}),this.darkMode?(this.git0=Hn(this.git0,25),this.git1=Hn(this.git1,25),this.git2=Hn(this.git2,25),this.git3=Hn(this.git3,25),this.git4=Hn(this.git4,25),this.git5=Hn(this.git5,25),this.git6=Hn(this.git6,25),this.git7=Hn(this.git7,25)):(this.git0=vr(this.git0,25),this.git1=vr(this.git1,25),this.git2=vr(this.git2,25),this.git3=vr(this.git3,25),this.git4=vr(this.git4,25),this.git5=vr(this.git5,25),this.git6=vr(this.git6,25),this.git7=vr(this.git7,25)),this.gitInv0=this.gitInv0||hn(this.git0),this.gitInv1=this.gitInv1||hn(this.git1),this.gitInv2=this.gitInv2||hn(this.git2),this.gitInv3=this.gitInv3||hn(this.git3),this.gitInv4=this.gitInv4||hn(this.git4),this.gitInv5=this.gitInv5||hn(this.git5),this.gitInv6=this.gitInv6||hn(this.git6),this.gitInv7=this.gitInv7||hn(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.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor}},{key:"calculate",value:function(a){var c=this;if(Pd(a)==="object"){var u=Object.keys(a);u.forEach(function(h){c[h]=a[h]}),this.updateColors(),u.forEach(function(h){c[h]=a[h]})}else this.updateColors()}}],r&&e3(e.prototype,r),Object.defineProperty(e,"prototype",{writable:!1}),t}();function Vg(t){return Vg=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Vg(t)}function H5(t,e){for(var r=0;r<e.length;r++){var a=e[r];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}var n3=function(){function t(){(function(a,c){if(!(a instanceof c))throw new TypeError("Cannot call a class as a function")})(this,t),this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=Hn(this.primaryColor,16),this.tertiaryColor=Re(this.primaryColor,{h:-160}),this.primaryBorderColor=hn(this.background),this.secondaryBorderColor=xa(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=xa(this.tertiaryColor,this.darkMode),this.primaryTextColor=hn(this.primaryColor),this.secondaryTextColor=hn(this.secondaryColor),this.tertiaryTextColor=hn(this.tertiaryColor),this.lineColor=hn(this.background),this.textColor=hn(this.background),this.mainBkg="#1f2020",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=Hn(hn("#323D47"),10),this.lineColor="calculated",this.border1="#81B1DB",this.border2=Xs(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=vr("#EAE8D9",30),this.altSectionBkgColor="calculated",this.sectionBkgColor2="#EAE8D9",this.taskBorderColor=Xs(255,255,255,70),this.taskBkgColor="calculated",this.taskTextColor="calculated",this.taskTextLightColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor=Xs(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.labelColor="calculated",this.errorBkgColor="#a44141",this.errorTextColor="#ddd"}var e,r;return e=t,r=[{key:"updateColors",value:function(){this.secondBkg=Hn(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=Hn(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=Hn(this.mainBkg,23),this.taskTextColor=this.darkTextColor,this.taskTextLightColor=this.mainContrastColor,this.taskTextOutsideColor=this.taskTextLightColor,this.gridColor=this.mainContrastColor,this.doneTaskBkgColor=this.mainContrastColor,this.taskTextDarkColor=this.darkTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#555",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.primaryBorderColor,this.specialStateColor="#f4f4f4",this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=Re(this.primaryColor,{h:64}),this.fillType3=Re(this.secondaryColor,{h:64}),this.fillType4=Re(this.primaryColor,{h:-64}),this.fillType5=Re(this.secondaryColor,{h:-64}),this.fillType6=Re(this.primaryColor,{h:128}),this.fillType7=Re(this.secondaryColor,{h:128}),this.pie1=this.pie1||"#0b0000",this.pie2=this.pie2||"#4d1037",this.pie3=this.pie3||"#3f5258",this.pie4=this.pie4||"#4f2f1b",this.pie5=this.pie5||"#6e0a0a",this.pie6=this.pie6||"#3b0048",this.pie7=this.pie7||"#995a01",this.pie8=this.pie8||"#154706",this.pie9=this.pie9||"#161722",this.pie10=this.pie10||"#00296f",this.pie11=this.pie11||"#01629c",this.pie12=this.pie12||"#010029",this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOpacity=this.pieOpacity||"0.7",this.classText=this.primaryTextColor,this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||this.primaryBorderColor,this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?vr(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=Hn(this.secondaryColor,20),this.git1=Hn(this.pie2||this.secondaryColor,20),this.git2=Hn(this.pie3||this.tertiaryColor,20),this.git3=Hn(this.pie4||Re(this.primaryColor,{h:-30}),20),this.git4=Hn(this.pie5||Re(this.primaryColor,{h:-60}),20),this.git5=Hn(this.pie6||Re(this.primaryColor,{h:-90}),10),this.git6=Hn(this.pie7||Re(this.primaryColor,{h:60}),10),this.git7=Hn(this.pie8||Re(this.primaryColor,{h:120}),20),this.gitInv0=this.gitInv0||hn(this.git0),this.gitInv1=this.gitInv1||hn(this.git1),this.gitInv2=this.gitInv2||hn(this.git2),this.gitInv3=this.gitInv3||hn(this.git3),this.gitInv4=this.gitInv4||hn(this.git4),this.gitInv5=this.gitInv5||hn(this.git5),this.gitInv6=this.gitInv6||hn(this.git6),this.gitInv7=this.gitInv7||hn(this.git7),this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor}},{key:"calculate",value:function(a){var c=this;if(Vg(a)==="object"){var u=Object.keys(a);u.forEach(function(h){c[h]=a[h]}),this.updateColors(),u.forEach(function(h){c[h]=a[h]})}else this.updateColors()}}],r&&H5(e.prototype,r),Object.defineProperty(e,"prototype",{writable:!1}),t}();function Gg(t){return Gg=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Gg(t)}function r3(t,e){for(var r=0;r<e.length;r++){var a=e[r];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}var W5=function(){function t(){(function(a,c){if(!(a instanceof c))throw new TypeError("Cannot call a class as a function")})(this,t),this.background="#f4f4f4",this.primaryColor="#ECECFF",this.secondaryColor=Re(this.primaryColor,{h:120}),this.secondaryColor="#ffffde",this.tertiaryColor=Re(this.primaryColor,{h:-160}),this.primaryBorderColor=xa(this.primaryColor,this.darkMode),this.secondaryBorderColor=xa(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=xa(this.tertiaryColor,this.darkMode),this.primaryTextColor=hn(this.primaryColor),this.secondaryTextColor=hn(this.secondaryColor),this.tertiaryTextColor=hn(this.tertiaryColor),this.lineColor=hn(this.background),this.textColor=hn(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=Xs(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.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222",this.updateColors()}var e,r;return e=t,r=[{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=Hn(this.border1,23),this.actorBkg=this.mainBkg,this.labelBoxBkgColor=this.actorBkg,this.signalColor=this.textColor,this.signalTextColor=this.textColor,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.actorTextColor,this.loopTextColor=this.actorTextColor,this.noteBorderColor=this.border2,this.noteTextColor=this.actorTextColor,this.taskTextColor=this.taskTextLightColor,this.taskTextOutsideColor=this.taskTextDarkColor,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.specialStateColor=this.lineColor,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.classText=this.primaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=Re(this.primaryColor,{h:64}),this.fillType3=Re(this.secondaryColor,{h:64}),this.fillType4=Re(this.primaryColor,{h:-64}),this.fillType5=Re(this.secondaryColor,{h:-64}),this.fillType6=Re(this.primaryColor,{h:128}),this.fillType7=Re(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||Re(this.tertiaryColor,{l:-40}),this.pie4=this.pie4||Re(this.primaryColor,{l:-10}),this.pie5=this.pie5||Re(this.secondaryColor,{l:-30}),this.pie6=this.pie6||Re(this.tertiaryColor,{l:-20}),this.pie7=this.pie7||Re(this.primaryColor,{h:60,l:-20}),this.pie8=this.pie8||Re(this.primaryColor,{h:-60,l:-40}),this.pie9=this.pie9||Re(this.primaryColor,{h:120,l:-40}),this.pie10=this.pie10||Re(this.primaryColor,{h:60,l:-40}),this.pie11=this.pie11||Re(this.primaryColor,{h:-90,l:-40}),this.pie12=this.pie12||Re(this.primaryColor,{h:120,l:-30}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOpacity=this.pieOpacity||"0.7",this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||this.primaryBorderColor,this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||this.labelBackground,this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||Re(this.primaryColor,{h:-30}),this.git4=this.git4||Re(this.primaryColor,{h:-60}),this.git5=this.git5||Re(this.primaryColor,{h:-90}),this.git6=this.git6||Re(this.primaryColor,{h:60}),this.git7=this.git7||Re(this.primaryColor,{h:120}),this.darkMode?(this.git0=Hn(this.git0,25),this.git1=Hn(this.git1,25),this.git2=Hn(this.git2,25),this.git3=Hn(this.git3,25),this.git4=Hn(this.git4,25),this.git5=Hn(this.git5,25),this.git6=Hn(this.git6,25),this.git7=Hn(this.git7,25)):(this.git0=vr(this.git0,25),this.git1=vr(this.git1,25),this.git2=vr(this.git2,25),this.git3=vr(this.git3,25),this.git4=vr(this.git4,25),this.git5=vr(this.git5,25),this.git6=vr(this.git6,25),this.git7=vr(this.git7,25)),this.gitInv0=this.gitInv0||vr(hn(this.git0),25),this.gitInv1=this.gitInv1||hn(this.git1),this.gitInv2=this.gitInv2||hn(this.git2),this.gitInv3=this.gitInv3||hn(this.git3),this.gitInv4=this.gitInv4||hn(this.git4),this.gitInv5=this.gitInv5||hn(this.git5),this.gitInv6=this.gitInv6||hn(this.git6),this.gitInv7=this.gitInv7||hn(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||hn(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||hn(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.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor}},{key:"calculate",value:function(a){var c=this;if(Gg(a)==="object"){var u=Object.keys(a);u.forEach(function(h){c[h]=a[h]}),this.updateColors(),u.forEach(function(h){c[h]=a[h]})}else this.updateColors()}}],r&&r3(e.prototype,r),Object.defineProperty(e,"prototype",{writable:!1}),t}();function Xg(t){return Xg=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Xg(t)}function V5(t,e){for(var r=0;r<e.length;r++){var a=e[r];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}var G5=function(){function t(){(function(a,c){if(!(a instanceof c))throw new TypeError("Cannot call a class as a function")})(this,t),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=Hn("#cde498",10),this.primaryBorderColor=xa(this.primaryColor,this.darkMode),this.secondaryBorderColor=xa(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=xa(this.tertiaryColor,this.darkMode),this.primaryTextColor=hn(this.primaryColor),this.secondaryTextColor=hn(this.secondaryColor),this.tertiaryTextColor=hn(this.primaryColor),this.lineColor=hn(this.background),this.textColor=hn(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.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222"}var e,r;return e=t,r=[{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=vr(this.mainBkg,20),this.actorBkg=this.mainBkg,this.labelBoxBkgColor=this.actorBkg,this.labelTextColor=this.actorTextColor,this.loopTextColor=this.actorTextColor,this.noteBorderColor=this.border2,this.noteTextColor=this.actorTextColor,this.taskBorderColor=this.border1,this.taskTextColor=this.taskTextLightColor,this.taskTextOutsideColor=this.taskTextDarkColor,this.activeTaskBorderColor=this.taskBorderColor,this.activeTaskBkgColor=this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.primaryBorderColor,this.specialStateColor=this.lineColor,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.classText=this.primaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=Re(this.primaryColor,{h:64}),this.fillType3=Re(this.secondaryColor,{h:64}),this.fillType4=Re(this.primaryColor,{h:-64}),this.fillType5=Re(this.secondaryColor,{h:-64}),this.fillType6=Re(this.primaryColor,{h:128}),this.fillType7=Re(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||this.tertiaryColor,this.pie4=this.pie4||Re(this.primaryColor,{l:-30}),this.pie5=this.pie5||Re(this.secondaryColor,{l:-30}),this.pie6=this.pie6||Re(this.tertiaryColor,{h:40,l:-40}),this.pie7=this.pie7||Re(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||Re(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||Re(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||Re(this.primaryColor,{h:60,l:-50}),this.pie11=this.pie11||Re(this.primaryColor,{h:-60,l:-50}),this.pie12=this.pie12||Re(this.primaryColor,{h:120,l:-50}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOpacity=this.pieOpacity||"0.7",this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||this.primaryBorderColor,this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||this.edgeLabelBackground,this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||Re(this.primaryColor,{h:-30}),this.git4=this.git4||Re(this.primaryColor,{h:-60}),this.git5=this.git5||Re(this.primaryColor,{h:-90}),this.git6=this.git6||Re(this.primaryColor,{h:60}),this.git7=this.git7||Re(this.primaryColor,{h:120}),this.darkMode?(this.git0=Hn(this.git0,25),this.git1=Hn(this.git1,25),this.git2=Hn(this.git2,25),this.git3=Hn(this.git3,25),this.git4=Hn(this.git4,25),this.git5=Hn(this.git5,25),this.git6=Hn(this.git6,25),this.git7=Hn(this.git7,25)):(this.git0=vr(this.git0,25),this.git1=vr(this.git1,25),this.git2=vr(this.git2,25),this.git3=vr(this.git3,25),this.git4=vr(this.git4,25),this.git5=vr(this.git5,25),this.git6=vr(this.git6,25),this.git7=vr(this.git7,25)),this.gitInv0=this.gitInv0||hn(this.git0),this.gitInv1=this.gitInv1||hn(this.git1),this.gitInv2=this.gitInv2||hn(this.git2),this.gitInv3=this.gitInv3||hn(this.git3),this.gitInv4=this.gitInv4||hn(this.git4),this.gitInv5=this.gitInv5||hn(this.git5),this.gitInv6=this.gitInv6||hn(this.git6),this.gitInv7=this.gitInv7||hn(this.git7),this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor}},{key:"calculate",value:function(a){var c=this;if(Xg(a)==="object"){var u=Object.keys(a);u.forEach(function(h){c[h]=a[h]}),this.updateColors(),u.forEach(function(h){c[h]=a[h]})}else this.updateColors()}}],r&&V5(e.prototype,r),Object.defineProperty(e,"prototype",{writable:!1}),t}();function Zg(t){return Zg=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Zg(t)}function X5(t,e){for(var r=0;r<e.length;r++){var a=e[r];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}var Z5=function(){function t(){(function(a,c){if(!(a instanceof c))throw new TypeError("Cannot call a class as a function")})(this,t),this.primaryColor="#eee",this.contrast="#707070",this.secondaryColor=Hn(this.contrast,55),this.background="#ffffff",this.tertiaryColor=Re(this.primaryColor,{h:-160}),this.primaryBorderColor=xa(this.primaryColor,this.darkMode),this.secondaryBorderColor=xa(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=xa(this.tertiaryColor,this.darkMode),this.primaryTextColor=hn(this.primaryColor),this.secondaryTextColor=hn(this.secondaryColor),this.tertiaryTextColor=hn(this.tertiaryColor),this.lineColor=hn(this.background),this.textColor=hn(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.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222"}var e,r;return e=t,r=[{key:"updateColors",value:function(){this.secondBkg=Hn(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=Hn(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=Hn(this.contrast,30),this.sectionBkgColor2=Hn(this.contrast,30),this.taskBorderColor=vr(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=Hn(this.border1,30),this.doneTaskBkgColor=this.done,this.doneTaskBorderColor=this.lineColor,this.critBkgColor=this.critical,this.critBorderColor=vr(this.critBkgColor,10),this.todayLineColor=this.critBkgColor,this.transitionColor=this.transitionColor||"#000",this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f4f4f4",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.stateBorder=this.stateBorder||"#000",this.innerEndBackground=this.primaryBorderColor,this.specialStateColor="#222",this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.classText=this.primaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=Re(this.primaryColor,{h:64}),this.fillType3=Re(this.secondaryColor,{h:64}),this.fillType4=Re(this.primaryColor,{h:-64}),this.fillType5=Re(this.secondaryColor,{h:-64}),this.fillType6=Re(this.primaryColor,{h:128}),this.fillType7=Re(this.secondaryColor,{h:128}),this.pie1=this.pie1||"#F4F4F4",this.pie2=this.pie2||"#555",this.pie3=this.pie3||"#BBB",this.pie4=this.pie4||"#777",this.pie5=this.pie5||"#999",this.pie6=this.pie6||"#DDD",this.pie7=this.pie7||"#FFF",this.pie8=this.pie8||"#DDD",this.pie9=this.pie9||"#BBB",this.pie10=this.pie10||"#999",this.pie11=this.pie11||"#777",this.pie12=this.pie12||"#555",this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOpacity=this.pieOpacity||"0.7",this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||this.primaryBorderColor,this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||this.edgeLabelBackground,this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=vr(this.pie1,25)||this.primaryColor,this.git1=this.pie2||this.secondaryColor,this.git2=this.pie3||this.tertiaryColor,this.git3=this.pie4||Re(this.primaryColor,{h:-30}),this.git4=this.pie5||Re(this.primaryColor,{h:-60}),this.git5=this.pie6||Re(this.primaryColor,{h:-90}),this.git6=this.pie7||Re(this.primaryColor,{h:60}),this.git7=this.pie8||Re(this.primaryColor,{h:120}),this.gitInv0=this.gitInv0||hn(this.git0),this.gitInv1=this.gitInv1||hn(this.git1),this.gitInv2=this.gitInv2||hn(this.git2),this.gitInv3=this.gitInv3||hn(this.git3),this.gitInv4=this.gitInv4||hn(this.git4),this.gitInv5=this.gitInv5||hn(this.git5),this.gitInv6=this.gitInv6||hn(this.git6),this.gitInv7=this.gitInv7||hn(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.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor}},{key:"calculate",value:function(a){var c=this;if(Zg(a)==="object"){var u=Object.keys(a);u.forEach(function(h){c[h]=a[h]}),this.updateColors(),u.forEach(function(h){c[h]=a[h]})}else this.updateColors()}}],r&&X5(e.prototype,r),Object.defineProperty(e,"prototype",{writable:!1}),t}();const Zs={base:{getThemeVariables:function(t){var e=new $5;return e.calculate(t),e}},dark:{getThemeVariables:function(t){var e=new n3;return e.calculate(t),e}},default:{getThemeVariables:function(t){var e=new W5;return e.calculate(t),e}},forest:{getThemeVariables:function(t){var e=new G5;return e.calculate(t),e}},neutral:{getThemeVariables:function(t){var e=new Z5;return e.calculate(t),e}}};function Qg(t){return function(e){if(Array.isArray(e))return Kg(e)}(t)||function(e){if(typeof Symbol!="undefined"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}(t)||function(e,r){if(e){if(typeof e=="string")return Kg(e,r);var a=Object.prototype.toString.call(e).slice(8,-1);return a==="Object"&&e.constructor&&(a=e.constructor.name),a==="Map"||a==="Set"?Array.from(e):a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?Kg(e,r):void 0}}(t)||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 Kg(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,a=new Array(e);r<e;r++)a[r]=t[r];return a}function Jg(t){return Jg=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Jg(t)}var vu={theme:"default",themeVariables:Zs.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,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}};vu.class.arrowMarkerAbsolute=vu.arrowMarkerAbsolute,vu.gitGraph.arrowMarkerAbsolute=vu.arrowMarkerAbsolute;var Q5=function t(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return Object.keys(e).reduce(function(a,c){return Array.isArray(e[c])?a:Jg(e[c])==="object"&&e[c]!==null?[].concat(Qg(a),[r+c],Qg(t(e[c],""))):[].concat(Qg(a),[r+c])},[])}(vu,"");const K5=vu;var J5=void 0;function t_(t,e){for(var r=0;r<e.length;r++){var a=e[r];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}function i3(t,e){var r=typeof Symbol!="undefined"&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=a3(t))||e&&t&&typeof t.length=="number"){r&&(t=r);var a=0,c=function(){};return{s:c,n:function(){return a>=t.length?{done:!0}:{done:!1,value:t[a++]}},e:function(x){throw x},f:c}}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 u,h=!0,g=!1;return{s:function(){r=r.call(t)},n:function(){var x=r.next();return h=x.done,x},e:function(x){g=!0,u=x},f:function(){try{h||r.return==null||r.return()}finally{if(g)throw u}}}}function yo(t){return yo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},yo(t)}function t2(t){return function(e){if(Array.isArray(e))return e2(e)}(t)||function(e){if(typeof Symbol!="undefined"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}(t)||a3(t)||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 a3(t,e){if(t){if(typeof t=="string")return e2(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set"?Array.from(t):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?e2(t,e):void 0}}function e2(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,a=new Array(e);r<e;r++)a[r]=t[r];return a}var jd,e_={curveBasis:Wr,curveBasisClosed:function(t){return new va(t)},curveBasisOpen:function(t){return new ai(t)},curveLinear:fo,curveLinearClosed:function(t){return new Ba(t)},curveMonotoneX:function(t){return new Do(t)},curveMonotoneY:function(t){return new cs(t)},curveNatural:function(t){return new Th(t)},curveStep:function(t){return new eu(t,.5)},curveStepAfter:function(t){return new eu(t,1)},curveStepBefore:function(t){return new eu(t,0)}},Yd=/[%]{2}[{]\s*(?:(?:(\w+)\s*:|(\w+))\s*(?:(?:(\w+))|((?:(?![}][%]{2}).|\r?\n)*))?\s*)(?:[}][%]{2})?/gi,n_=/\s*(?:(?:(\w+)(?=:):|(\w+))\s*(?:(?:(\w+))|((?:(?![}][%]{2}).|\r?\n)*))?\s*)(?:[}][%]{2})?/gi,r_=/\s*%%.*\n/gm,o3=function(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;try{var r=new RegExp("[%]{2}(?![{]".concat(n_.source,`)(?=[}][%]{2}).*
`),"ig");t=t.trim().replace(r,"").replace(/'/gm,'"'),y.debug("Detecting diagram directive".concat(e!==null?" type:"+e:""," based on the text:").concat(t));for(var a,c=[];(a=Yd.exec(t))!==null;)if(a.index===Yd.lastIndex&&Yd.lastIndex++,a&&!e||e&&a[1]&&a[1].match(e)||e&&a[2]&&a[2].match(e)){var u=a[1]?a[1]:a[2],h=a[3]?a[3].trim():a[4]?JSON.parse(a[4].trim()):null;c.push({type:u,args:h})}return c.length===0&&c.push({type:t,args:null}),c.length===1?c[0]:c}catch(g){return y.error("ERROR: ".concat(g.message,` - Unable to parse directive
`).concat(e!==null?" type:"+e:""," based on the text:").concat(t)),{type:null,args:null}}},n2=function(t,e){return(t=t.replace(Yd,"").replace(r_,`
`)).match(/^\s*sequenceDiagram/)?"sequence":t.match(/^\s*gantt/)?"gantt":t.match(/^\s*classDiagram-v2/)?"classDiagram":t.match(/^\s*classDiagram/)?e&&e.class&&e.class.defaultRenderer==="dagre-wrapper"?"classDiagram":"class":t.match(/^\s*stateDiagram-v2/)?"stateDiagram":t.match(/^\s*stateDiagram/)?e&&e.class&&e.state.defaultRenderer==="dagre-wrapper"?"stateDiagram":"state":t.match(/^\s*gitGraph/)?"gitGraph":t.match(/^\s*flowchart/)?"flowchart-v2":t.match(/^\s*info/)?"info":t.match(/^\s*pie/)?"pie":t.match(/^\s*erDiagram/)?"er":t.match(/^\s*journey/)?"journey":t.match(/^\s*requirement/)||t.match(/^\s*requirementDiagram/)?"requirement":e&&e.flowchart&&e.flowchart.defaultRenderer==="dagre-wrapper"?"flowchart-v2":"flowchart"},zd=function(t,e){var r={};return function(){for(var a=arguments.length,c=new Array(a),u=0;u<a;u++)c[u]=arguments[u];var h=e?e.apply(J5,c):c[0];if(h in r)return r[h];var g=t.apply(void 0,c);return r[h]=g,g}},ms=function(t,e){if(!t)return e;var r="curve".concat(t.charAt(0).toUpperCase()+t.slice(1));return e_[r]||e},El=function(t,e){return t&&e?Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2)):0},Qs=function(t){for(var e="",r="",a=0;a<t.length;a++)t[a]!==void 0&&(t[a].startsWith("color:")||t[a].startsWith("text-align:")?r=r+t[a]+";":e=e+t[a]+";");return{style:e,labelStyle:r}},s3=0,c3=function(){return s3++,"id-"+Math.random().toString(36).substr(2,12)+"-"+s3},u3=function(t){return function(e){for(var r="",a="0123456789abcdef",c=a.length,u=0;u<e;u++)r+=a.charAt(Math.floor(Math.random()*c));return r}(t.length)},Hi=function t(e,r,a){var c=Object.assign({depth:2,clobber:!1},a),u=c.depth,h=c.clobber;return Array.isArray(r)&&!Array.isArray(e)?(r.forEach(function(g){return t(e,g,a)}),e):Array.isArray(r)&&Array.isArray(e)?(r.forEach(function(g){e.indexOf(g)===-1&&e.push(g)}),e):e===void 0||u<=0?e!=null&&yo(e)==="object"&&yo(r)==="object"?Object.assign(e,r):r:(r!==void 0&&yo(e)==="object"&&yo(r)==="object"&&Object.keys(r).forEach(function(g){yo(r[g])!=="object"||e[g]!==void 0&&yo(e[g])!=="object"?(h||yo(e[g])!=="object"&&yo(r[g])!=="object")&&(e[g]=r[g]):(e[g]===void 0&&(e[g]=Array.isArray(r[g])?[]:{}),e[g]=t(e[g],r[g],{depth:u-1,clobber:h}))}),e)},i_=function(t,e){var r=e.text.replace(Jn.lineBreakRegex," "),a=t.append("text");a.attr("x",e.x),a.attr("y",e.y),a.style("text-anchor",e.anchor),a.style("font-family",e.fontFamily),a.style("font-size",e.fontSize),a.style("font-weight",e.fontWeight),a.attr("fill",e.fill),e.class!==void 0&&a.attr("class",e.class);var c=a.append("tspan");return c.attr("x",e.x+2*e.textMargin),c.attr("fill",e.fill),c.text(r),a},a_=zd(function(t,e,r){if(!t||(r=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",joinWith:"<br/>"},r),Jn.lineBreakRegex.test(t)))return t;var a=t.split(" "),c=[],u="";return a.forEach(function(h,g){var x=Ud("".concat(h," "),r),_=Ud(u,r);if(x>e){var N=l3(h,e,"-",r),F=N.hyphenatedStrings,P=N.remainingWord;c.push.apply(c,[u].concat(t2(F))),u=P}else _+x>=e?(c.push(u),u=h):u=[u,h].filter(Boolean).join(" ");g+1===a.length&&c.push(u)}),c.filter(function(h){return h!==""}).join(r.joinWith)},function(t,e,r){return"".concat(t,"-").concat(e,"-").concat(r.fontSize,"-").concat(r.fontWeight,"-").concat(r.fontFamily,"-").concat(r.joinWith)}),l3=zd(function(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"-",a=arguments.length>3?arguments[3]:void 0;a=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:0},a);var c=t.split(""),u=[],h="";return c.forEach(function(g,x){var _="".concat(h).concat(g);if(Ud(_,a)>=e){var N=x+1,F=c.length===N,P="".concat(_).concat(r);u.push(F?_:P),h=""}else h=_}),{hyphenatedStrings:u,remainingWord:h}},function(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"-",a=arguments.length>3?arguments[3]:void 0;return"".concat(t,"-").concat(e,"-").concat(r,"-").concat(a.fontSize,"-").concat(a.fontWeight,"-").concat(a.fontFamily)}),Ud=function(t,e){return e=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial"},e),r2(t,e).width},r2=zd(function(t,e){var r=e=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial"},e),a=r.fontSize,c=r.fontFamily,u=r.fontWeight;if(!t)return{width:0,height:0};var h=["sans-serif",c],g=t.split(Jn.lineBreakRegex),x=[],_=Me("body");if(!_.remove)return{width:0,height:0,lineHeight:0};for(var N=_.append("svg"),F=0,P=h;F<P.length;F++){var H,ct=P[F],J=0,yt={width:0,height:0,lineHeight:0},ft=i3(g);try{for(ft.s();!(H=ft.n()).done;){var kt=H.value,Tt={x:0,y:0,fill:void 0,anchor:"start",style:"#666",width:100,height:100,textMargin:0,rx:0,ry:0,valign:void 0};Tt.text=kt;var qt=i_(N,Tt).style("font-size",a).style("font-weight",u).style("font-family",ct),ee=(qt._groups||qt)[0][0].getBBox();yt.width=Math.round(Math.max(yt.width,ee.width)),J=Math.round(ee.height),yt.height+=J,yt.lineHeight=Math.round(Math.max(yt.lineHeight,J))}}catch(Ot){ft.e(Ot)}finally{ft.f()}x.push(yt)}return N.remove(),x[isNaN(x[1].height)||isNaN(x[1].width)||isNaN(x[1].lineHeight)||x[0].height>x[1].height&&x[0].width>x[1].width&&x[0].lineHeight>x[1].lineHeight?0:1]},function(t,e){return"".concat(t,"-").concat(e.fontSize,"-").concat(e.fontWeight,"-").concat(e.fontFamily)}),h3=function(t,e,r){var a=new Map;return a.set("height",t),r?(a.set("width","100%"),a.set("style","max-width: ".concat(e,"px;"))):a.set("width",e),a},Ra=function(t,e,r,a){(function(c,u){var h,g=i3(u);try{for(g.s();!(h=g.n()).done;){var x=h.value;c.attr(x[0],x[1])}}catch(_){g.e(_)}finally{g.f()}})(t,h3(e,r,a))},qd=function t(e){y.debug("directiveSanitizer called with",e),yo(e)==="object"&&(e.length?e.forEach(function(r){return t(r)}):Object.keys(e).forEach(function(r){y.debug("Checking key",r),r.indexOf("__")===0&&(y.debug("sanitize deleting __ option",r),delete e[r]),r.indexOf("proto")>=0&&(y.debug("sanitize deleting proto option",r),delete e[r]),r.indexOf("constr")>=0&&(y.debug("sanitize deleting constr option",r),delete e[r]),r.indexOf("themeCSS")>=0&&(y.debug("sanitizing themeCss option"),e[r]=f3(e[r])),Q5.indexOf(r)<0?(y.debug("sanitize deleting option",r),delete e[r]):yo(e[r])==="object"&&(y.debug("sanitize deleting object",r),t(e[r]))}))},f3=function(t){return(t.match(/\{/g)||[]).length!==(t.match(/\}/g)||[]).length?"{ /* ERROR: Unbalanced CSS */ }":t};const tr={assignWithDepth:Hi,wrapLabel:a_,calculateTextHeight:function(t,e){return e=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:15},e),r2(t,e).height},calculateTextWidth:Ud,calculateTextDimensions:r2,calculateSvgSizeAttrs:h3,configureSvgSize:Ra,detectInit:function(t,e){var r=o3(t,/(?:init\b)|(?:initialize\b)/),a={};if(Array.isArray(r)){var c=r.map(function(h){return h.args});qd(c),a=Hi(a,t2(c))}else a=r.args;if(a){var u=n2(t,e);["config"].forEach(function(h){a[h]!==void 0&&(u==="flowchart-v2"&&(u="flowchart"),a[u]=a[h],delete a[h])})}return a},detectDirective:o3,detectType:n2,isSubstringInArray:function(t,e){for(var r=0;r<e.length;r++)if(e[r].match(t))return r;return-1},interpolateToCurve:ms,calcLabelPosition:function(t){return function(e){var r,a=0;e.forEach(function(h){a+=El(h,r),r=h});var c=a/2,u=void 0;return r=void 0,e.forEach(function(h){if(r&&!u){var g=El(h,r);if(g<c)c-=g;else{var x=c/g;x<=0&&(u=r),x>=1&&(u={x:h.x,y:h.y}),x>0&&x<1&&(u={x:(1-x)*r.x+x*h.x,y:(1-x)*r.y+x*h.y})}}r=h}),u}(t)},calcCardinalityPosition:function(t,e,r){var a;y.info("our points",e),e[0]!==r&&(e=e.reverse()),e.forEach(function(_){El(_,a),a=_});var c,u=25;a=void 0,e.forEach(function(_){if(a&&!c){var N=El(_,a);if(N<u)u-=N;else{var F=u/N;F<=0&&(c=a),F>=1&&(c={x:_.x,y:_.y}),F>0&&F<1&&(c={x:(1-F)*a.x+F*_.x,y:(1-F)*a.y+F*_.y})}}a=_});var h=t?10:5,g=Math.atan2(e[0].y-c.y,e[0].x-c.x),x={x:0,y:0};return x.x=Math.sin(g)*h+(e[0].x+c.x)/2,x.y=-Math.cos(g)*h+(e[0].y+c.y)/2,x},calcTerminalLabelPosition:function(t,e,r){var a,c=JSON.parse(JSON.stringify(r));y.info("our points",c),e!=="start_left"&&e!=="start_right"&&(c=c.reverse()),c.forEach(function(N){El(N,a),a=N});var u,h=25+t;a=void 0,c.forEach(function(N){if(a&&!u){var F=El(N,a);if(F<h)h-=F;else{var P=h/F;P<=0&&(u=a),P>=1&&(u={x:N.x,y:N.y}),P>0&&P<1&&(u={x:(1-P)*a.x+P*N.x,y:(1-P)*a.y+P*N.y})}}a=N});var g=10+.5*t,x=Math.atan2(c[0].y-u.y,c[0].x-u.x),_={x:0,y:0};return _.x=Math.sin(x)*g+(c[0].x+u.x)/2,_.y=-Math.cos(x)*g+(c[0].y+u.y)/2,e==="start_left"&&(_.x=Math.sin(x+Math.PI)*g+(c[0].x+u.x)/2,_.y=-Math.cos(x+Math.PI)*g+(c[0].y+u.y)/2),e==="end_right"&&(_.x=Math.sin(x-Math.PI)*g+(c[0].x+u.x)/2-5,_.y=-Math.cos(x-Math.PI)*g+(c[0].y+u.y)/2-5),e==="end_left"&&(_.x=Math.sin(x)*g+(c[0].x+u.x)/2-5,_.y=-Math.cos(x)*g+(c[0].y+u.y)/2-5),_},formatUrl:function(t,e){var r=t.trim();if(r)return e.securityLevel!=="loose"?(0,pu.N)(r):r},getStylesFromArray:Qs,generateId:c3,random:u3,memoize:zd,runFunc:function(t){for(var e,r=t.split("."),a=r.length-1,c=r[a],u=window,h=0;h<a;h++)if(!(u=u[r[h]]))return;for(var g=arguments.length,x=new Array(g>1?g-1:0),_=1;_<g;_++)x[_-1]=arguments[_];(e=u)[c].apply(e,x)},entityDecode:function(t){return jd=jd||document.createElement("div"),t=escape(t).replace(/%26/g,"&").replace(/%23/g,"#").replace(/%3B/g,";"),jd.innerHTML=t,unescape(jd.textContent)},initIdGeneratior:function(){function t(a,c){(function(u,h){if(!(u instanceof h))throw new TypeError("Cannot call a class as a function")})(this,t),this.deterministic=a,this.seed=c,this.count=c?c.length:0}var e,r;return e=t,(r=[{key:"next",value:function(){return this.deterministic?this.count++:Date.now()}}])&&t_(e.prototype,r),Object.defineProperty(e,"prototype",{writable:!1}),t}(),directiveSanitizer:qd,sanitizeCss:f3};function i2(t){return i2=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i2(t)}var a2,Sl=Object.freeze(K5),Oi=Hi({},Sl),Al=[],Ml=Hi({},Sl),$d=function(t,e){for(var r=Hi({},t),a={},c=0;c<e.length;c++){var u=e[c];o_(u),a=Hi(a,u)}if(r=Hi(r,a),a.theme&&Zs[a.theme]){var h=Hi({},a2),g=Hi(h.themeVariables||{},a.themeVariables);r.themeVariables=Zs[r.theme].getThemeVariables(g)}return Ml=r,r},d3=function(){return Hi({},Oi)},$t=function(){return Hi({},Ml)},o_=function t(e){Object.keys(Oi.secure).forEach(function(r){e[Oi.secure[r]]!==void 0&&(y.debug("Denied attempt to modify a secure key ".concat(Oi.secure[r]),e[Oi.secure[r]]),delete e[Oi.secure[r]])}),Object.keys(e).forEach(function(r){r.indexOf("__")===0&&delete e[r]}),Object.keys(e).forEach(function(r){typeof e[r]=="string"&&(e[r].indexOf("<")>-1||e[r].indexOf(">")>-1||e[r].indexOf("url(data:")>-1)&&delete e[r],i2(e[r])==="object"&&t(e[r])})},o2=function(t){t.fontFamily&&(t.themeVariables&&t.themeVariables.fontFamily||(t.themeVariables={fontFamily:t.fontFamily})),Al.push(t),$d(Oi,Al)},d1=function(){$d(Oi,Al=[])},s2="",Hd="",c2=function(t){return Gs(t,$t())},vs=function(){s2="",Hd=""},mo=function(t){s2=c2(t).replace(/^\s+/g,"")},Uo=function(){return s2},bs=function(t){Hd=c2(t).replace(/\n\s+/g,`
`)},_s=function(){return Hd};function Nl(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,a=new Array(e);r<e;r++)a[r]=t[r];return a}var xs="classid-",Wd=[],Ci={},u2=0,Dl=[],p1=function(t){return Jn.sanitizeText(t,$t())},Ll=function(t){var e="",r=t;if(t.indexOf("~")>0){var a=t.split("~");r=a[0],e=Jn.sanitizeText(a[1],$t())}return{className:r,type:e}},Bl=function(t){var e=Ll(t);Ci[e.className]===void 0&&(Ci[e.className]={id:e.className,type:e.type,cssClasses:[],methods:[],members:[],annotations:[],domId:xs+e.className+"-"+u2},u2++)},g1=function(t){for(var e=Object.keys(Ci),r=0;r<e.length;r++)if(Ci[e[r]].id===t)return Ci[e[r]].domId},l2=function(t,e){console.log(t,e);var r=Ll(t).className,a=Ci[r];if(typeof e=="string"){var c=e.trim();c.startsWith("<<")&&c.endsWith(">>")?a.annotations.push(p1(c.substring(2,c.length-2))):c.indexOf(")")>0?a.methods.push(p1(c)):c&&a.members.push(p1(c))}},Vd=function(t,e){t.split(",").forEach(function(r){var a=r;r[0].match(/\d/)&&(a=xs+a),Ci[a]!==void 0&&Ci[a].cssClasses.push(e)})},h2=function(t,e,r){var a=$t(),c=t,u=g1(c);if(a.securityLevel==="loose"&&e!==void 0&&Ci[c]!==void 0){var h=[];if(typeof r=="string"){h=r.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(var g=0;g<h.length;g++){var x=h[g].trim();x.charAt(0)==='"'&&x.charAt(x.length-1)==='"'&&(x=x.substr(1,x.length-2)),h[g]=x}}h.length===0&&h.push(u),Dl.push(function(){var _=document.querySelector('[id="'.concat(u,'"]'));_!==null&&_.addEventListener("click",function(){var N;tr.runFunc.apply(tr,[e].concat(function(F){if(Array.isArray(F))return Nl(F)}(N=h)||function(F){if(typeof Symbol!="undefined"&&F[Symbol.iterator]!=null||F["@@iterator"]!=null)return Array.from(F)}(N)||function(F,P){if(F){if(typeof F=="string")return Nl(F,P);var H=Object.prototype.toString.call(F).slice(8,-1);return H==="Object"&&F.constructor&&(H=F.constructor.name),H==="Map"||H==="Set"?Array.from(F):H==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(H)?Nl(F,P):void 0}}(N)||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)})}},y1={AGGREGATION:0,EXTENSION:1,COMPOSITION:2,DEPENDENCY:3},er=function(t){var e=Me(".mermaidTooltip");(e._groups||e)[0][0]===null&&(e=Me("body").append("div").attr("class","mermaidTooltip").style("opacity",0)),Me(t).select("svg").selectAll("g.node").on("mouseover",function(){var r=Me(this);if(r.attr("title")!==null){var a=this.getBoundingClientRect();e.transition().duration(200).style("opacity",".9"),e.text(r.attr("title")).style("left",window.scrollX+a.left+(a.right-a.left)/2+"px").style("top",window.scrollY+a.top-14+document.body.scrollTop+"px"),r.classed("hover",!0)}}).on("mouseout",function(){e.transition().duration(500).style("opacity",0),Me(this).classed("hover",!1)})};Dl.push(er);var p3="TB";const ws={parseDirective:function(t,e,r){Gi.parseDirective(this,t,e,r)},setTitle:mo,getTitle:Uo,getAccDescription:_s,setAccDescription:bs,getConfig:function(){return $t().class},addClass:Bl,bindFunctions:function(t){Dl.forEach(function(e){e(t)})},clear:function(){Wd=[],Ci={},(Dl=[]).push(er),vs()},getClass:function(t){return Ci[t]},getClasses:function(){return Ci},addAnnotation:function(t,e){var r=Ll(t).className;Ci[r].annotations.push(e)},getRelations:function(){return Wd},addRelation:function(t){y.debug("Adding relation: "+JSON.stringify(t)),Bl(t.id1),Bl(t.id2),t.id1=Ll(t.id1).className,t.id2=Ll(t.id2).className,t.relationTitle1=Jn.sanitizeText(t.relationTitle1.trim(),$t()),t.relationTitle2=Jn.sanitizeText(t.relationTitle2.trim(),$t()),Wd.push(t)},getDirection:function(){return p3},setDirection:function(t){p3=t},addMember:l2,addMembers:function(t,e){Array.isArray(e)&&(e.reverse(),e.forEach(function(r){return l2(t,r)}))},cleanupLabel:function(t){return t.substring(0,1)===":"?Jn.sanitizeText(t.substr(1).trim(),$t()):p1(t.trim())},lineType:{LINE:0,DOTTED_LINE:1},relationType:y1,setClickEvent:function(t,e,r){t.split(",").forEach(function(a){h2(a,e,r),Ci[a].haveCallback=!0}),Vd(t,"clickable")},setCssClass:Vd,setLink:function(t,e,r){var a=$t();t.split(",").forEach(function(c){var u=c;c[0].match(/\d/)&&(u=xs+u),Ci[u]!==void 0&&(Ci[u].link=tr.formatUrl(e,a),a.securityLevel==="sandbox"?Ci[u].linkTarget="_top":Ci[u].linkTarget=typeof r=="string"?p1(r):"_blank")}),Vd(t,"clickable")},setTooltip:function(t,e){var r=$t();t.split(",").forEach(function(a){e!==void 0&&(Ci[a].tooltip=Jn.sanitizeText(e,r))})},lookUpDomId:g1};var s_=p(681),m1=p.n(s_),c_=p(8282),Ii=p.n(c_),Lc=p(1362),u_=p.n(Lc),g3=0,f2=function(t){var e=t.match(/^(\+|-|~|#)?(\w+)(~\w+~|\[\])?\s+(\w+) *(\*|\$)?$/),r=t.match(/^([+|\-|~|#])?(\w+) *\( *(.*)\) *(\*|\$)? *(\w*[~|[\]]*\s*\w*~?)$/);return e&&!r?Vr(e):r?y3(r):l_(t)},Vr=function(t){var e="",r="";try{var a=t[1]?t[1].trim():"",c=t[2]?t[2].trim():"",u=t[3]?Ol(t[3].trim()):"",h=t[4]?t[4].trim():"",g=t[5]?t[5].trim():"";r=a+c+u+" "+h,e=Gd(g)}catch{r=t}return{displayText:r,cssStyle:e}},y3=function(t){var e="",r="";try{var a=t[1]?t[1].trim():"",c=t[2]?t[2].trim():"",u=t[3]?Ol(t[3].trim()):"",h=t[4]?t[4].trim():"";r=a+c+"("+u+")"+(t[5]?" : "+Ol(t[5]).trim():""),e=Gd(h)}catch{r=t}return{displayText:r,cssStyle:e}},l_=function(t){var e="",r="",a="",c=t.indexOf("("),u=t.indexOf(")");if(c>1&&u>c&&u<=t.length){var h="",g="",x=t.substring(0,1);x.match(/\w/)?g=t.substring(0,c).trim():(x.match(/\+|-|~|#/)&&(h=x),g=t.substring(1,c).trim());var _=t.substring(c+1,u),N=t.substring(u+1,1);r=Gd(N),e=h+g+"("+Ol(_.trim())+")",u<0&&(a=t.substring(u+2).trim())!==""&&(a=" : "+Ol(a))}else e=Ol(t);return{displayText:e,cssStyle:r}},d2=function(t,e,r,a){var c=f2(e),u=t.append("tspan").attr("x",a.padding).text(c.displayText);c.cssStyle!==""&&u.attr("style",c.cssStyle),r||u.attr("dy",a.textHeight)},Ol=function t(e){var r=e;return e.indexOf("~")!=-1?t(r=(r=r.replace("~","<")).replace("~",">")):r},Gd=function(t){switch(t){case"*":return"font-style:italic;";case"$":return"text-decoration:underline;";default:return""}};const h_=function(t,e,r){y.info("Rendering class "+e);var a,c=e.id,u={id:c,label:e.id,width:0,height:0},h=t.append("g").attr("id",g1(c)).attr("class","classGroup");a=e.link?h.append("svg:a").attr("xlink:href",e.link).attr("target",e.linkTarget).append("text").attr("y",r.textHeight+r.padding).attr("x",0):h.append("text").attr("y",r.textHeight+r.padding).attr("x",0);var g=!0;e.annotations.forEach(function(Tt){var qt=a.append("tspan").text("\xAB"+Tt+"\xBB");g||qt.attr("dy",r.textHeight),g=!1});var x=e.id;e.type!==void 0&&e.type!==""&&(x+="<"+e.type+">");var _=a.append("tspan").text(x).attr("class","title");g||_.attr("dy",r.textHeight);var N=a.node().getBBox().height,F=h.append("line").attr("x1",0).attr("y1",r.padding+N+r.dividerMargin/2).attr("y2",r.padding+N+r.dividerMargin/2),P=h.append("text").attr("x",r.padding).attr("y",N+r.dividerMargin+r.textHeight).attr("fill","white").attr("class","classText");g=!0,e.members.forEach(function(Tt){d2(P,Tt,g,r),g=!1});var H=P.node().getBBox(),ct=h.append("line").attr("x1",0).attr("y1",r.padding+N+r.dividerMargin+H.height).attr("y2",r.padding+N+r.dividerMargin+H.height),J=h.append("text").attr("x",r.padding).attr("y",N+2*r.dividerMargin+H.height+r.textHeight).attr("fill","white").attr("class","classText");g=!0,e.methods.forEach(function(Tt){d2(J,Tt,g,r),g=!1});var yt=h.node().getBBox(),ft=" ";e.cssClasses.length>0&&(ft+=e.cssClasses.join(" "));var kt=h.insert("rect",":first-child").attr("x",0).attr("y",0).attr("width",yt.width+2*r.padding).attr("height",yt.height+r.padding+.5*r.dividerMargin).attr("class",ft).node().getBBox().width;return a.node().childNodes.forEach(function(Tt){Tt.setAttribute("x",(kt-Tt.getBBox().width)/2)}),e.tooltip&&a.insert("title").text(e.tooltip),F.attr("x2",kt),ct.attr("x2",kt),u.width=kt,u.height=yt.height+r.padding+.5*r.dividerMargin,u};function Fa(t,e,r){if(e.insert!==void 0){var a=t.getTitle(),c=t.getAccDescription();e.attr("role","img").attr("aria-labelledby","chart-title-"+r+" chart-desc-"+r),e.insert("desc",":first-child").attr("id","chart-desc-"+r).text(c),e.insert("title",":first-child").attr("id","chart-title-"+r).text(a)}}Lc.parser.yy=ws;var p2={},v1={dividerMargin:10,padding:5,textHeight:10},Xd=function(t){var e=Object.entries(p2).find(function(r){return r[1].label===t});if(e)return e[0]};const g2=function(t){Object.keys(t).forEach(function(e){v1[e]=t[e]})},f_=function(t,e){p2={},Lc.parser.yy.clear(),Lc.parser.parse(t),y.info("Rendering diagram "+t);var r,a=$t().securityLevel;a==="sandbox"&&(r=Me("#i"+e));var c,u=Me(a==="sandbox"?r.nodes()[0].contentDocument.body:"body"),h=(a==="sandbox"&&r.nodes()[0].contentDocument,u.select("[id='".concat(e,"']")));h.attr("xmlns:xlink","http://www.w3.org/1999/xlink"),(c=h).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"),c.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"),c.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"),c.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"),c.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"),c.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"),c.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"),c.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 g=new(Ii()).Graph({multigraph:!0});g.setGraph({isMultiGraph:!0}),g.setDefaultEdgeLabel(function(){return{}});for(var x=ws.getClasses(),_=Object.keys(x),N=0;N<_.length;N++){var F=x[_[N]],P=h_(h,F,v1);p2[P.id]=P,g.setNode(P.id,P),y.info("Org height: "+P.height)}ws.getRelations().forEach(function(ft){y.info("tjoho"+Xd(ft.id1)+Xd(ft.id2)+JSON.stringify(ft)),g.setEdge(Xd(ft.id1),Xd(ft.id2),{relation:ft},ft.title||"DEFAULT")}),m1().layout(g),g.nodes().forEach(function(ft){ft!==void 0&&g.node(ft)!==void 0&&(y.debug("Node "+ft+": "+JSON.stringify(g.node(ft))),u.select("#"+g1(ft)).attr("transform","translate("+(g.node(ft).x-g.node(ft).width/2)+","+(g.node(ft).y-g.node(ft).height/2)+" )"))}),g.edges().forEach(function(ft){ft!==void 0&&g.edge(ft)!==void 0&&(y.debug("Edge "+ft.v+" -> "+ft.w+": "+JSON.stringify(g.edge(ft))),function(kt,Tt,qt,ee){var Ot=function(an){switch(an){case y1.AGGREGATION:return"aggregation";case y1.EXTENSION:return"extension";case y1.COMPOSITION:return"composition";case y1.DEPENDENCY:return"dependency"}};Tt.points=Tt.points.filter(function(an){return!Number.isNaN(an.y)});var Xt,Ht,Et=Tt.points,Mt=No().x(function(an){return an.x}).y(function(an){return an.y}).curve(Wr),bt=kt.append("path").attr("d",Mt(Et)).attr("id","edge"+g3).attr("class","relation"),ut="";ee.arrowMarkerAbsolute&&(ut=(ut=(ut=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search).replace(/\(/g,"\\(")).replace(/\)/g,"\\)")),qt.relation.lineType==1&&bt.attr("class","relation dashed-line"),qt.relation.type1!=="none"&&bt.attr("marker-start","url("+ut+"#"+Ot(qt.relation.type1)+"Start)"),qt.relation.type2!=="none"&&bt.attr("marker-end","url("+ut+"#"+Ot(qt.relation.type2)+"End)");var Nt,pt,me,ye,re=Tt.points.length,Ce=tr.calcLabelPosition(Tt.points);if(Xt=Ce.x,Ht=Ce.y,re%2!=0&&re>1){var se=tr.calcCardinalityPosition(qt.relation.type1!=="none",Tt.points,Tt.points[0]),ve=tr.calcCardinalityPosition(qt.relation.type2!=="none",Tt.points,Tt.points[re-1]);y.debug("cardinality_1_point "+JSON.stringify(se)),y.debug("cardinality_2_point "+JSON.stringify(ve)),Nt=se.x,pt=se.y,me=ve.x,ye=ve.y}if(qt.title!==void 0){var ge=kt.append("g").attr("class","classLabel"),He=ge.append("text").attr("class","label").attr("x",Xt).attr("y",Ht).attr("fill","red").attr("text-anchor","middle").text(qt.title);window.label=He;var Ge=He.node().getBBox();ge.insert("rect",":first-child").attr("class","box").attr("x",Ge.x-ee.padding/2).attr("y",Ge.y-ee.padding/2).attr("width",Ge.width+ee.padding).attr("height",Ge.height+ee.padding)}y.info("Rendering relation "+JSON.stringify(qt)),qt.relationTitle1!==void 0&&qt.relationTitle1!=="none"&&kt.append("g").attr("class","cardinality").append("text").attr("class","type1").attr("x",Nt).attr("y",pt).attr("fill","black").attr("font-size","6").text(qt.relationTitle1),qt.relationTitle2!==void 0&&qt.relationTitle2!=="none"&&kt.append("g").attr("class","cardinality").append("text").attr("class","type2").attr("x",me).attr("y",ye).attr("fill","black").attr("font-size","6").text(qt.relationTitle2),g3++}(h,g.edge(ft),g.edge(ft).relation,v1))});var H=h.node().getBBox(),ct=H.width+40,J=H.height+40;Ra(h,J,ct,v1.useMaxWidth);var yt="".concat(H.x-20," ").concat(H.y-20," ").concat(ct," ").concat(J);y.debug("viewBox ".concat(yt)),h.attr("viewBox",yt),Fa(Lc.parser.yy,h,e)};var m3={extension:function(t,e,r){y.trace("Making markers for ",r),t.append("defs").append("marker").attr("id",e+"-extensionStart").attr("class","marker extension "+e).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"),t.append("defs").append("marker").attr("id",e+"-extensionEnd").attr("class","marker extension "+e).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(t,e){t.append("defs").append("marker").attr("id",e+"-compositionStart").attr("class","marker composition "+e).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"),t.append("defs").append("marker").attr("id",e+"-compositionEnd").attr("class","marker composition "+e).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(t,e){t.append("defs").append("marker").attr("id",e+"-aggregationStart").attr("class","marker aggregation "+e).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"),t.append("defs").append("marker").attr("id",e+"-aggregationEnd").attr("class","marker aggregation "+e).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(t,e){t.append("defs").append("marker").attr("id",e+"-dependencyStart").attr("class","marker dependency "+e).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"),t.append("defs").append("marker").attr("id",e+"-dependencyEnd").attr("class","marker dependency "+e).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")},point:function(t,e){t.append("marker").attr("id",e+"-pointEnd").attr("class","marker "+e).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"),t.append("marker").attr("id",e+"-pointStart").attr("class","marker "+e).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(t,e){t.append("marker").attr("id",e+"-circleEnd").attr("class","marker "+e).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"),t.append("marker").attr("id",e+"-circleStart").attr("class","marker "+e).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(t,e){t.append("marker").attr("id",e+"-crossEnd").attr("class","marker cross "+e).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"),t.append("marker").attr("id",e+"-crossStart").attr("class","marker cross "+e).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(t,e){t.append("defs").append("marker").attr("id",e+"-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 d_=function(t,e,r,a){e.forEach(function(c){m3[c](t,r,a)})};function Zd(t){return Zd=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Zd(t)}const Pa=function(t,e,r,a){var c,u,h,g,x,_,N=t||"";if(Zd(N)==="object"&&(N=N[0]),Ji($t().flowchart.htmlLabels))return N=N.replace(/\\n|\n/g,"<br />"),y.info("vertexText"+N),c={isNode:a,label:N.replace(/fa[lrsb]?:fa-[\w-]+/g,function(J){return"<i class='".concat(J.replace(":"," "),"'></i>")}),labelStyle:e.replace("fill:","color:")},h=Me(document.createElementNS("http://www.w3.org/2000/svg","foreignObject")),g=h.append("xhtml:div"),x=c.label,_=c.isNode?"nodeLabel":"edgeLabel",g.html('<span class="'+_+'" '+(c.labelStyle?'style="'+c.labelStyle+'"':"")+">"+x+"</span>"),(u=c.labelStyle)&&g.attr("style",u),g.style("display","inline-block"),g.style("white-space","nowrap"),g.attr("xmlns","http://www.w3.org/1999/xhtml"),h.node();var F=document.createElementNS("http://www.w3.org/2000/svg","text");F.setAttribute("style",e.replace("color:","fill:"));var P=[];P=typeof N=="string"?N.split(/\\n|\n|<br\s*\/?>/gi):Array.isArray(N)?N:[];for(var H=0;H<P.length;H++){var ct=document.createElementNS("http://www.w3.org/2000/svg","tspan");ct.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),ct.setAttribute("dy","1em"),ct.setAttribute("x","0"),r?ct.setAttribute("class","title-row"):ct.setAttribute("class","row"),ct.textContent=P[H].trim(),F.appendChild(ct)}return F};var aa=function(t,e,r,a){var c;c=r||"node default";var u=t.insert("g").attr("class",c).attr("id",e.domId||e.id),h=u.insert("g").attr("class","label").attr("style",e.labelStyle),g=typeof e.labelText=="string"?e.labelText:e.labelText[0],x=h.node().appendChild(Pa(Gs(v6(g),$t()),e.labelStyle,!1,a)),_=x.getBBox();if(Ji($t().flowchart.htmlLabels)){var N=x.children[0],F=Me(x);_=N.getBoundingClientRect(),F.attr("width",_.width),F.attr("height",_.height)}var P=e.padding/2;return h.attr("transform","translate("+-_.width/2+", "+-_.height/2+")"),{shapeSvg:u,bbox:_,halfPadding:P,label:h}},Ei=function(t,e){var r=e.node().getBBox();t.width=r.width,t.height=r.height};function ks(t,e,r,a){return t.insert("polygon",":first-child").attr("points",a.map(function(c){return c.x+","+c.y}).join(" ")).attr("class","label-container").attr("transform","translate("+-e/2+","+r/2+")")}var br={},vo={},v3={},b1=function(t,e){return y.trace("In isDecendant",e," ",t," = ",vo[e].indexOf(t)>=0),vo[e].indexOf(t)>=0},p_=function t(e,r,a,c){y.warn("Copying children of ",e,"root",c,"data",r.node(e),c);var u=r.children(e)||[];e!==c&&u.push(e),y.warn("Copying (nodes) clusterId",e,"nodes",u),u.forEach(function(h){if(r.children(h).length>0)t(h,r,a,c);else{var g=r.node(h);y.info("cp ",h," to ",c," with parent ",e),a.setNode(h,g),c!==r.parent(h)&&(y.warn("Setting parent",h,r.parent(h)),a.setParent(h,r.parent(h))),e!==c&&h!==e?(y.debug("Setting parent",h,e),a.setParent(h,e)):(y.info("In copy ",e,"root",c,"data",r.node(e),c),y.debug("Not Setting parent for node=",h,"cluster!==rootId",e!==c,"node!==clusterId",h!==e));var x=r.edges(h);y.debug("Copying Edges",x),x.forEach(function(_){y.info("Edge",_);var N=r.edge(_.v,_.w,_.name);y.info("Edge data",N,c);try{(function(F,P){return y.info("Decendants of ",P," is ",vo[P]),y.info("Edge is ",F),F.v!==P&&F.w!==P&&(vo[P]?(y.info("Here "),vo[P].indexOf(F.v)>=0||!!b1(F.v,P)||!!b1(F.w,P)||vo[P].indexOf(F.w)>=0):(y.debug("Tilt, ",P,",not in decendants"),!1))})(_,c)?(y.info("Copying as ",_.v,_.w,N,_.name),a.setEdge(_.v,_.w,N,_.name),y.info("newGraph edges ",a.edges(),a.edge(a.edges()[0]))):y.info("Skipping copy of edge ",_.v,"-->",_.w," rootId: ",c," clusterId:",e)}catch(F){y.error(F)}})}y.debug("Removing node",h),r.removeNode(h)})},b3=function t(e,r){for(var a=r.children(e),c=[].concat(a),u=0;u<a.length;u++)v3[a[u]]=e,c=c.concat(t(a[u],r));return c},Qd=function t(e,r){y.trace("Searching",e);var a=r.children(e);if(y.trace("Searching children of id ",e,a),a.length<1)return y.trace("This is a valid node",e),e;for(var c=0;c<a.length;c++){var u=t(a[c],r);if(u)return y.trace("Found replacement for",e," => ",u),u}},y2=function(t){return br[t]&&br[t].externalConnections&&br[t]?br[t].id:t},g_=function(t,e){!t||e>10?y.debug("Opting out, no graph "):(y.debug("Opting in, graph "),t.nodes().forEach(function(r){t.children(r).length>0&&(y.warn("Cluster identified",r," Replacement id in edges: ",Qd(r,t)),vo[r]=b3(r,t),br[r]={id:Qd(r,t),clusterData:t.node(r)})}),t.nodes().forEach(function(r){var a=t.children(r),c=t.edges();a.length>0?(y.debug("Cluster identified",r,vo),c.forEach(function(u){u.v!==r&&u.w!==r&&b1(u.v,r)^b1(u.w,r)&&(y.warn("Edge: ",u," leaves cluster ",r),y.warn("Decendants of XXX ",r,": ",vo[r]),br[r].externalConnections=!0)})):y.debug("Not a cluster ",r,vo)}),t.edges().forEach(function(r){var a=t.edge(r);y.warn("Edge "+r.v+" -> "+r.w+": "+JSON.stringify(r)),y.warn("Edge "+r.v+" -> "+r.w+": "+JSON.stringify(t.edge(r)));var c=r.v,u=r.w;y.warn("Fix XXX",br,"ids:",r.v,r.w,"Translateing: ",br[r.v]," --- ",br[r.w]),(br[r.v]||br[r.w])&&(y.warn("Fixing and trixing - removing XXX",r.v,r.w,r.name),c=y2(r.v),u=y2(r.w),t.removeEdge(r.v,r.w,r.name),c!==r.v&&(a.fromCluster=r.v),u!==r.w&&(a.toCluster=r.w),y.warn("Fix Replacing with XXX",c,u,r.name),t.setEdge(c,u,a,r.name))}),y.warn("Adjusted Graph",Ii().json.write(t)),_3(t,0),y.trace(br))},_3=function t(e,r){if(y.warn("extractor - ",r,Ii().json.write(e),e.children("D")),r>10)y.error("Bailing out");else{for(var a=e.nodes(),c=!1,u=0;u<a.length;u++){var h=a[u],g=e.children(h);c=c||g.length>0}if(c){y.debug("Nodes = ",a,r);for(var x=0;x<a.length;x++){var _=a[x];if(y.debug("Extracting node",_,br,br[_]&&!br[_].externalConnections,!e.parent(_),e.node(_),e.children("D")," Depth ",r),br[_])if(!br[_].externalConnections&&e.children(_)&&e.children(_).length>0){y.warn("Cluster without external connections, without a parent and with children",_,r);var N=e.graph().rankdir==="TB"?"LR":"TB";br[_]&&br[_].clusterData&&br[_].clusterData.dir&&(N=br[_].clusterData.dir,y.warn("Fixing dir",br[_].clusterData.dir,N));var F=new(Ii()).Graph({multigraph:!0,compound:!0}).setGraph({rankdir:N,nodesep:50,ranksep:50,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});y.warn("Old graph before copy",Ii().json.write(e)),p_(_,e,F,_),e.setNode(_,{clusterNode:!0,id:_,clusterData:br[_].clusterData,labelText:br[_].labelText,graph:F}),y.warn("New graph after copy node: (",_,")",Ii().json.write(F)),y.debug("Old graph after copy",Ii().json.write(e))}else y.warn("Cluster ** ",_," **not meeting the criteria !externalConnections:",!br[_].externalConnections," no parent: ",!e.parent(_)," children ",e.children(_)&&e.children(_).length>0,e.children("D"),r),y.debug(br);else y.debug("Not a cluster",_,r)}a=e.nodes(),y.warn("New list of nodes",a);for(var P=0;P<a.length;P++){var H=a[P],ct=e.node(H);y.warn(" Now next level",H,ct),ct.clusterNode&&t(ct.graph,r+1)}}else y.debug("Done, no node has children",e.nodes())}},y_=function t(e,r){if(r.length===0)return[];var a=Object.assign(r);return r.forEach(function(c){var u=e.children(c),h=t(e,u);a=a.concat(h)}),a},x3=function(t){return y_(t,t.children())},m_=p(3841);const w3=function(t,e,r,a){var c=t.x,u=t.y,h=c-a.x,g=u-a.y,x=Math.sqrt(e*e*g*g+r*r*h*h),_=Math.abs(e*r*h/x);a.x<c&&(_=-_);var N=Math.abs(e*r*g/x);return a.y<u&&(N=-N),{x:c+_,y:u+N}};function k3(t,e){return t*e>0}const T3=function(t,e,r,a){var c,u,h,g,x,_,N,F,P,H,ct,J,yt;if(c=e.y-t.y,h=t.x-e.x,x=e.x*t.y-t.x*e.y,P=c*r.x+h*r.y+x,H=c*a.x+h*a.y+x,!(P!==0&&H!==0&&k3(P,H)||(u=a.y-r.y,g=r.x-a.x,_=a.x*r.y-r.x*a.y,N=u*t.x+g*t.y+_,F=u*e.x+g*e.y+_,N!==0&&F!==0&&k3(N,F)||(ct=c*g-u*h)==0)))return J=Math.abs(ct/2),{x:(yt=h*_-g*x)<0?(yt-J)/ct:(yt+J)/ct,y:(yt=u*x-c*_)<0?(yt-J)/ct:(yt+J)/ct}},_1=function(t,e){var r,a,c=t.x,u=t.y,h=e.x-c,g=e.y-u,x=t.width/2,_=t.height/2;return Math.abs(g)*x>Math.abs(h)*_?(g<0&&(_=-_),r=g===0?0:_*h/g,a=_):(h<0&&(x=-x),r=x,a=h===0?0:x*g/h),{x:c+r,y:u+a}},Il=(p.n(m_)(),function(t,e,r){return w3(t,e,e,r)}),Ks=function(t,e,r){var a=t.x,c=t.y,u=[],h=Number.POSITIVE_INFINITY,g=Number.POSITIVE_INFINITY;typeof e.forEach=="function"?e.forEach(function(ct){h=Math.min(h,ct.x),g=Math.min(g,ct.y)}):(h=Math.min(h,e.x),g=Math.min(g,e.y));for(var x=a-t.width/2-h,_=c-t.height/2-g,N=0;N<e.length;N++){var F=e[N],P=e[N<e.length-1?N+1:0],H=T3(t,r,{x:x+F.x,y:_+F.y},{x:x+P.x,y:_+P.y});H&&u.push(H)}return u.length?(u.length>1&&u.sort(function(ct,J){var yt=ct.x-r.x,ft=ct.y-r.y,kt=Math.sqrt(yt*yt+ft*ft),Tt=J.x-r.x,qt=J.y-r.y,ee=Math.sqrt(Tt*Tt+qt*qt);return kt<ee?-1:kt===ee?0:1}),u[0]):t},Bc=_1;function Kd(t){return Kd=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Kd(t)}var m2=function(t,e,r){var a=t.insert("g").attr("class","node default").attr("id",e.domId||e.id),c=70,u=10;r==="LR"&&(c=10,u=70);var h=a.append("rect").attr("x",-1*c/2).attr("y",-1*u/2).attr("width",c).attr("height",u).attr("class","fork-join");return Ei(e,h),e.height=e.height+e.padding/2,e.width=e.width+e.padding/2,e.intersect=function(g){return Bc(e,g)},a},C3={question:function(t,e){var r=aa(t,e,void 0,!0),a=r.shapeSvg,c=r.bbox,u=c.width+e.padding+(c.height+e.padding),h=[{x:u/2,y:0},{x:u,y:-u/2},{x:u/2,y:-u},{x:0,y:-u/2}];y.info("Question main (Circle)");var g=ks(a,u,u,h);return g.attr("style",e.style),Ei(e,g),e.intersect=function(x){return y.warn("Intersect called"),Ks(e,h,x)},a},rect:function(t,e){var r=aa(t,e,"node "+e.classes,!0),a=r.shapeSvg,c=r.bbox,u=r.halfPadding;y.trace("Classes = ",e.classes);var h=a.insert("rect",":first-child"),g=c.width+e.padding,x=c.height+e.padding;if(h.attr("class","basic label-container").attr("style",e.style).attr("rx",e.rx).attr("ry",e.ry).attr("x",-c.width/2-u).attr("y",-c.height/2-u).attr("width",g).attr("height",x),e.props){var _=new Set(Object.keys(e.props));e.props.borders&&(function(N,F,P,H){var ct=[],J=function(ft){ct.push(ft),ct.push(0)},yt=function(ft){ct.push(0),ct.push(ft)};F.includes("t")?(y.debug("add top border"),J(P)):yt(P),F.includes("r")?(y.debug("add right border"),J(H)):yt(H),F.includes("b")?(y.debug("add bottom border"),J(P)):yt(P),F.includes("l")?(y.debug("add left border"),J(H)):yt(H),N.attr("stroke-dasharray",ct.join(" "))}(h,e.props.borders,g,x),_.delete("borders")),_.forEach(function(N){y.warn("Unknown node property ".concat(N))})}return Ei(e,h),e.intersect=function(N){return Bc(e,N)},a},rectWithTitle:function(t,e){var r;r=e.classes?"node "+e.classes:"node default";var a,c=t.insert("g").attr("class",r).attr("id",e.domId||e.id),u=c.insert("rect",":first-child"),h=c.insert("line"),g=c.insert("g").attr("class","label"),x=e.labelText.flat?e.labelText.flat():e.labelText;a=Kd(x)==="object"?x[0]:x,y.info("Label text abc79",a,x,Kd(x)==="object");var _=g.node().appendChild(Pa(a,e.labelStyle,!0,!0)),N={width:0,height:0};if(Ji($t().flowchart.htmlLabels)){var F=_.children[0],P=Me(_);N=F.getBoundingClientRect(),P.attr("width",N.width),P.attr("height",N.height)}y.info("Text 2",x);var H=x.slice(1,x.length),ct=_.getBBox(),J=g.node().appendChild(Pa(H.join?H.join("<br/>"):H,e.labelStyle,!0,!0));if(Ji($t().flowchart.htmlLabels)){var yt=J.children[0],ft=Me(J);N=yt.getBoundingClientRect(),ft.attr("width",N.width),ft.attr("height",N.height)}var kt=e.padding/2;return Me(J).attr("transform","translate( "+(N.width>ct.width?0:(ct.width-N.width)/2)+", "+(ct.height+kt+5)+")"),Me(_).attr("transform","translate( "+(N.width<ct.width?0:-(ct.width-N.width)/2)+", 0)"),N=g.node().getBBox(),g.attr("transform","translate("+-N.width/2+", "+(-N.height/2-kt+3)+")"),u.attr("class","outer title-state").attr("x",-N.width/2-kt).attr("y",-N.height/2-kt).attr("width",N.width+e.padding).attr("height",N.height+e.padding),h.attr("class","divider").attr("x1",-N.width/2-kt).attr("x2",N.width/2+kt).attr("y1",-N.height/2-kt+ct.height+kt).attr("y2",-N.height/2-kt+ct.height+kt),Ei(e,u),e.intersect=function(Tt){return Bc(e,Tt)},c},choice:function(t,e){var r=t.insert("g").attr("class","node default").attr("id",e.domId||e.id);return r.insert("polygon",":first-child").attr("points",[{x:0,y:14},{x:14,y:0},{x:0,y:-14},{x:-14,y:0}].map(function(a){return a.x+","+a.y}).join(" ")).attr("class","state-start").attr("r",7).attr("width",28).attr("height",28),e.width=28,e.height=28,e.intersect=function(a){return Il(e,14,a)},r},circle:function(t,e){var r=aa(t,e,void 0,!0),a=r.shapeSvg,c=r.bbox,u=r.halfPadding,h=a.insert("circle",":first-child");return h.attr("style",e.style).attr("rx",e.rx).attr("ry",e.ry).attr("r",c.width/2+u).attr("width",c.width+e.padding).attr("height",c.height+e.padding),y.info("Circle main"),Ei(e,h),e.intersect=function(g){return y.info("Circle intersect",e,c.width/2+u,g),Il(e,c.width/2+u,g)},a},doublecircle:function(t,e){var r=aa(t,e,void 0,!0),a=r.shapeSvg,c=r.bbox,u=r.halfPadding,h=a.insert("g",":first-child"),g=h.insert("circle"),x=h.insert("circle");return g.attr("style",e.style).attr("rx",e.rx).attr("ry",e.ry).attr("r",c.width/2+u+5).attr("width",c.width+e.padding+10).attr("height",c.height+e.padding+10),x.attr("style",e.style).attr("rx",e.rx).attr("ry",e.ry).attr("r",c.width/2+u).attr("width",c.width+e.padding).attr("height",c.height+e.padding),y.info("DoubleCircle main"),Ei(e,g),e.intersect=function(_){return y.info("DoubleCircle intersect",e,c.width/2+u+5,_),Il(e,c.width/2+u+5,_)},a},stadium:function(t,e){var r=aa(t,e,void 0,!0),a=r.shapeSvg,c=r.bbox,u=c.height+e.padding,h=c.width+u/4+e.padding,g=a.insert("rect",":first-child").attr("style",e.style).attr("rx",u/2).attr("ry",u/2).attr("x",-h/2).attr("y",-u/2).attr("width",h).attr("height",u);return Ei(e,g),e.intersect=function(x){return Bc(e,x)},a},hexagon:function(t,e){var r=aa(t,e,void 0,!0),a=r.shapeSvg,c=r.bbox,u=c.height+e.padding,h=u/4,g=c.width+2*h+e.padding,x=[{x:h,y:0},{x:g-h,y:0},{x:g,y:-u/2},{x:g-h,y:-u},{x:h,y:-u},{x:0,y:-u/2}],_=ks(a,g,u,x);return _.attr("style",e.style),Ei(e,_),e.intersect=function(N){return Ks(e,x,N)},a},rect_left_inv_arrow:function(t,e){var r=aa(t,e,void 0,!0),a=r.shapeSvg,c=r.bbox,u=c.width+e.padding,h=c.height+e.padding,g=[{x:-h/2,y:0},{x:u,y:0},{x:u,y:-h},{x:-h/2,y:-h},{x:0,y:-h/2}];return ks(a,u,h,g).attr("style",e.style),e.width=u+h,e.height=h,e.intersect=function(x){return Ks(e,g,x)},a},lean_right:function(t,e){var r=aa(t,e,void 0,!0),a=r.shapeSvg,c=r.bbox,u=c.width+e.padding,h=c.height+e.padding,g=[{x:-2*h/6,y:0},{x:u-h/6,y:0},{x:u+2*h/6,y:-h},{x:h/6,y:-h}],x=ks(a,u,h,g);return x.attr("style",e.style),Ei(e,x),e.intersect=function(_){return Ks(e,g,_)},a},lean_left:function(t,e){var r=aa(t,e,void 0,!0),a=r.shapeSvg,c=r.bbox,u=c.width+e.padding,h=c.height+e.padding,g=[{x:2*h/6,y:0},{x:u+h/6,y:0},{x:u-2*h/6,y:-h},{x:-h/6,y:-h}],x=ks(a,u,h,g);return x.attr("style",e.style),Ei(e,x),e.intersect=function(_){return Ks(e,g,_)},a},trapezoid:function(t,e){var r=aa(t,e,void 0,!0),a=r.shapeSvg,c=r.bbox,u=c.width+e.padding,h=c.height+e.padding,g=[{x:-2*h/6,y:0},{x:u+2*h/6,y:0},{x:u-h/6,y:-h},{x:h/6,y:-h}],x=ks(a,u,h,g);return x.attr("style",e.style),Ei(e,x),e.intersect=function(_){return Ks(e,g,_)},a},inv_trapezoid:function(t,e){var r=aa(t,e,void 0,!0),a=r.shapeSvg,c=r.bbox,u=c.width+e.padding,h=c.height+e.padding,g=[{x:h/6,y:0},{x:u-h/6,y:0},{x:u+2*h/6,y:-h},{x:-2*h/6,y:-h}],x=ks(a,u,h,g);return x.attr("style",e.style),Ei(e,x),e.intersect=function(_){return Ks(e,g,_)},a},rect_right_inv_arrow:function(t,e){var r=aa(t,e,void 0,!0),a=r.shapeSvg,c=r.bbox,u=c.width+e.padding,h=c.height+e.padding,g=[{x:0,y:0},{x:u+h/2,y:0},{x:u,y:-h/2},{x:u+h/2,y:-h},{x:0,y:-h}],x=ks(a,u,h,g);return x.attr("style",e.style),Ei(e,x),e.intersect=function(_){return Ks(e,g,_)},a},cylinder:function(t,e){var r=aa(t,e,void 0,!0),a=r.shapeSvg,c=r.bbox,u=c.width+e.padding,h=u/2,g=h/(2.5+u/50),x=c.height+g+e.padding,_="M 0,"+g+" a "+h+","+g+" 0,0,0 "+u+" 0 a "+h+","+g+" 0,0,0 "+-u+" 0 l 0,"+x+" a "+h+","+g+" 0,0,0 "+u+" 0 l 0,"+-x,N=a.attr("label-offset-y",g).insert("path",":first-child").attr("style",e.style).attr("d",_).attr("transform","translate("+-u/2+","+-(x/2+g)+")");return Ei(e,N),e.intersect=function(F){var P=Bc(e,F),H=P.x-e.x;if(h!=0&&(Math.abs(H)<e.width/2||Math.abs(H)==e.width/2&&Math.abs(P.y-e.y)>e.height/2-g)){var ct=g*g*(1-H*H/(h*h));ct!=0&&(ct=Math.sqrt(ct)),ct=g-ct,F.y-e.y>0&&(ct=-ct),P.y+=ct}return P},a},start:function(t,e){var r=t.insert("g").attr("class","node default").attr("id",e.domId||e.id),a=r.insert("circle",":first-child");return a.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14),Ei(e,a),e.intersect=function(c){return Il(e,7,c)},r},end:function(t,e){var r=t.insert("g").attr("class","node default").attr("id",e.domId||e.id),a=r.insert("circle",":first-child"),c=r.insert("circle",":first-child");return c.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14),a.attr("class","state-end").attr("r",5).attr("width",10).attr("height",10),Ei(e,c),e.intersect=function(u){return Il(e,7,u)},r},note:function(t,e){var r=aa(t,e,"node "+e.classes,!0),a=r.shapeSvg,c=r.bbox,u=r.halfPadding;y.info("Classes = ",e.classes);var h=a.insert("rect",":first-child");return h.attr("rx",e.rx).attr("ry",e.ry).attr("x",-c.width/2-u).attr("y",-c.height/2-u).attr("width",c.width+e.padding).attr("height",c.height+e.padding),Ei(e,h),e.intersect=function(g){return Bc(e,g)},a},subroutine:function(t,e){var r=aa(t,e,void 0,!0),a=r.shapeSvg,c=r.bbox,u=c.width+e.padding,h=c.height+e.padding,g=[{x:0,y:0},{x:u,y:0},{x:u,y:-h},{x:0,y:-h},{x:0,y:0},{x:-8,y:0},{x:u+8,y:0},{x:u+8,y:-h},{x:-8,y:-h},{x:-8,y:0}],x=ks(a,u,h,g);return x.attr("style",e.style),Ei(e,x),e.intersect=function(_){return Ks(e,g,_)},a},fork:m2,join:m2,class_box:function(t,e){var r,a=e.padding/2;r=e.classes?"node "+e.classes:"node default";var c=t.insert("g").attr("class",r).attr("id",e.domId||e.id),u=c.insert("rect",":first-child"),h=c.insert("line"),g=c.insert("line"),x=0,_=4,N=c.insert("g").attr("class","label"),F=0,P=e.classData.annotations&&e.classData.annotations[0],H=e.classData.annotations[0]?"\xAB"+e.classData.annotations[0]+"\xBB":"",ct=N.node().appendChild(Pa(H,e.labelStyle,!0,!0)),J=ct.getBBox();if(Ji($t().flowchart.htmlLabels)){var yt=ct.children[0],ft=Me(ct);J=yt.getBoundingClientRect(),ft.attr("width",J.width),ft.attr("height",J.height)}e.classData.annotations[0]&&(_+=J.height+4,x+=J.width);var kt=e.classData.id;e.classData.type!==void 0&&e.classData.type!==""&&($t().flowchart.htmlLabels?kt+="&lt;"+e.classData.type+"&gt;":kt+="<"+e.classData.type+">");var Tt=N.node().appendChild(Pa(kt,e.labelStyle,!0,!0));Me(Tt).attr("class","classTitle");var qt=Tt.getBBox();if(Ji($t().flowchart.htmlLabels)){var ee=Tt.children[0],Ot=Me(Tt);qt=ee.getBoundingClientRect(),Ot.attr("width",qt.width),Ot.attr("height",qt.height)}_+=qt.height+4,qt.width>x&&(x=qt.width);var Xt=[];e.classData.members.forEach(function(bt){var ut=f2(bt),Nt=ut.displayText;$t().flowchart.htmlLabels&&(Nt=Nt.replace(/</g,"&lt;").replace(/>/g,"&gt;"));var pt=N.node().appendChild(Pa(Nt,ut.cssStyle?ut.cssStyle:e.labelStyle,!0,!0)),me=pt.getBBox();if(Ji($t().flowchart.htmlLabels)){var ye=pt.children[0],re=Me(pt);me=ye.getBoundingClientRect(),re.attr("width",me.width),re.attr("height",me.height)}me.width>x&&(x=me.width),_+=me.height+4,Xt.push(pt)}),_+=8;var Ht=[];if(e.classData.methods.forEach(function(bt){var ut=f2(bt),Nt=ut.displayText;$t().flowchart.htmlLabels&&(Nt=Nt.replace(/</g,"&lt;").replace(/>/g,"&gt;"));var pt=N.node().appendChild(Pa(Nt,ut.cssStyle?ut.cssStyle:e.labelStyle,!0,!0)),me=pt.getBBox();if(Ji($t().flowchart.htmlLabels)){var ye=pt.children[0],re=Me(pt);me=ye.getBoundingClientRect(),re.attr("width",me.width),re.attr("height",me.height)}me.width>x&&(x=me.width),_+=me.height+4,Ht.push(pt)}),_+=8,P){var Et=(x-J.width)/2;Me(ct).attr("transform","translate( "+(-1*x/2+Et)+", "+-1*_/2+")"),F=J.height+4}var Mt=(x-qt.width)/2;return Me(Tt).attr("transform","translate( "+(-1*x/2+Mt)+", "+(-1*_/2+F)+")"),F+=qt.height+4,h.attr("class","divider").attr("x1",-x/2-a).attr("x2",x/2+a).attr("y1",-_/2-a+8+F).attr("y2",-_/2-a+8+F),F+=8,Xt.forEach(function(bt){Me(bt).attr("transform","translate( "+-x/2+", "+(-1*_/2+F+4)+")"),F+=qt.height+4}),F+=8,g.attr("class","divider").attr("x1",-x/2-a).attr("x2",x/2+a).attr("y1",-_/2-a+8+F).attr("y2",-_/2-a+8+F),F+=8,Ht.forEach(function(bt){Me(bt).attr("transform","translate( "+-x/2+", "+(-1*_/2+F)+")"),F+=qt.height+4}),u.attr("class","outer title-state").attr("x",-x/2-a).attr("y",-_/2-a).attr("width",x+e.padding).attr("height",_+e.padding),Ei(e,u),e.intersect=function(bt){return Bc(e,bt)},c}},bu={},E3=function(t){var e=bu[t.id];y.trace("Transforming node",t.diff,t,"translate("+(t.x-t.width/2-5)+", "+t.width/2+")");var r=t.diff||0;return t.clusterNode?e.attr("transform","translate("+(t.x+r-t.width/2)+", "+(t.y-t.height/2-8)+")"):e.attr("transform","translate("+t.x+", "+t.y+")"),r},S3={rect:function(t,e){y.trace("Creating subgraph rect for ",e.id,e);var r=t.insert("g").attr("class","cluster"+(e.class?" "+e.class:"")).attr("id",e.id),a=r.insert("rect",":first-child"),c=r.insert("g").attr("class","cluster-label"),u=c.node().appendChild(Pa(e.labelText,e.labelStyle,void 0,!0)),h=u.getBBox();if(Ji($t().flowchart.htmlLabels)){var g=u.children[0],x=Me(u);h=g.getBoundingClientRect(),x.attr("width",h.width),x.attr("height",h.height)}var _=0*e.padding,N=_/2,F=e.width<=h.width+_?h.width+_:e.width;e.width<=h.width+_?e.diff=(h.width-e.width)/2:e.diff=-e.padding/2,y.trace("Data ",e,JSON.stringify(e)),a.attr("style",e.style).attr("rx",e.rx).attr("ry",e.ry).attr("x",e.x-F/2).attr("y",e.y-e.height/2-N).attr("width",F).attr("height",e.height+_),c.attr("transform","translate("+(e.x-h.width/2)+", "+(e.y-e.height/2+e.padding/3)+")");var P=a.node().getBBox();return e.width=P.width,e.height=P.height,e.intersect=function(H){return _1(e,H)},r},roundedWithTitle:function(t,e){var r=t.insert("g").attr("class",e.classes).attr("id",e.id),a=r.insert("rect",":first-child"),c=r.insert("g").attr("class","cluster-label"),u=r.append("rect"),h=c.node().appendChild(Pa(e.labelText,e.labelStyle,void 0,!0)),g=h.getBBox();if(Ji($t().flowchart.htmlLabels)){var x=h.children[0],_=Me(h);g=x.getBoundingClientRect(),_.attr("width",g.width),_.attr("height",g.height)}g=h.getBBox();var N=0*e.padding,F=N/2,P=e.width<=g.width+e.padding?g.width+e.padding:e.width;e.width<=g.width+e.padding?e.diff=(g.width+0*e.padding-e.width)/2:e.diff=-e.padding/2,a.attr("class","outer").attr("x",e.x-P/2-F).attr("y",e.y-e.height/2-F).attr("width",P+N).attr("height",e.height+N),u.attr("class","inner").attr("x",e.x-P/2-F).attr("y",e.y-e.height/2-F+g.height-1).attr("width",P+N).attr("height",e.height+N-g.height-3),c.attr("transform","translate("+(e.x-g.width/2)+", "+(e.y-e.height/2-e.padding/3+(Ji($t().flowchart.htmlLabels)?5:3))+")");var H=a.node().getBBox();return e.height=H.height,e.intersect=function(ct){return _1(e,ct)},r},noteGroup:function(t,e){var r=t.insert("g").attr("class","note-cluster").attr("id",e.id),a=r.insert("rect",":first-child"),c=0*e.padding,u=c/2;a.attr("rx",e.rx).attr("ry",e.ry).attr("x",e.x-e.width/2-u).attr("y",e.y-e.height/2-u).attr("width",e.width+c).attr("height",e.height+c).attr("fill","none");var h=a.node().getBBox();return e.width=h.width,e.height=h.height,e.intersect=function(g){return _1(e,g)},r},divider:function(t,e){var r=t.insert("g").attr("class",e.classes).attr("id",e.id),a=r.insert("rect",":first-child"),c=0*e.padding,u=c/2;a.attr("class","divider").attr("x",e.x-e.width/2-u).attr("y",e.y-e.height/2).attr("width",e.width+c).attr("height",e.height+c);var h=a.node().getBBox();return e.width=h.width,e.height=h.height,e.diff=-e.padding/2,e.intersect=function(g){return _1(e,g)},r}},A3={},x1={},ta={},M3=function(t,e){var r=Pa(e.label,e.labelStyle),a=t.insert("g").attr("class","edgeLabel"),c=a.insert("g").attr("class","label");c.node().appendChild(r);var u,h=r.getBBox();if(Ji($t().flowchart.htmlLabels)){var g=r.children[0],x=Me(r);h=g.getBoundingClientRect(),x.attr("width",h.width),x.attr("height",h.height)}if(c.attr("transform","translate("+-h.width/2+", "+-h.height/2+")"),x1[e.id]=a,e.width=h.width,e.height=h.height,e.startLabelLeft){var _=Pa(e.startLabelLeft,e.labelStyle),N=t.insert("g").attr("class","edgeTerminals"),F=N.insert("g").attr("class","inner");u=F.node().appendChild(_);var P=_.getBBox();F.attr("transform","translate("+-P.width/2+", "+-P.height/2+")"),ta[e.id]||(ta[e.id]={}),ta[e.id].startLeft=N,Jd(u,e.startLabelLeft)}if(e.startLabelRight){var H=Pa(e.startLabelRight,e.labelStyle),ct=t.insert("g").attr("class","edgeTerminals"),J=ct.insert("g").attr("class","inner");u=ct.node().appendChild(H),J.node().appendChild(H);var yt=H.getBBox();J.attr("transform","translate("+-yt.width/2+", "+-yt.height/2+")"),ta[e.id]||(ta[e.id]={}),ta[e.id].startRight=ct,Jd(u,e.startLabelRight)}if(e.endLabelLeft){var ft=Pa(e.endLabelLeft,e.labelStyle),kt=t.insert("g").attr("class","edgeTerminals"),Tt=kt.insert("g").attr("class","inner");u=Tt.node().appendChild(ft);var qt=ft.getBBox();Tt.attr("transform","translate("+-qt.width/2+", "+-qt.height/2+")"),kt.node().appendChild(ft),ta[e.id]||(ta[e.id]={}),ta[e.id].endLeft=kt,Jd(u,e.endLabelLeft)}if(e.endLabelRight){var ee=Pa(e.endLabelRight,e.labelStyle),Ot=t.insert("g").attr("class","edgeTerminals"),Xt=Ot.insert("g").attr("class","inner");u=Xt.node().appendChild(ee);var Ht=ee.getBBox();Xt.attr("transform","translate("+-Ht.width/2+", "+-Ht.height/2+")"),Ot.node().appendChild(ee),ta[e.id]||(ta[e.id]={}),ta[e.id].endRight=Ot,Jd(u,e.endLabelRight)}};function Jd(t,e){$t().flowchart.htmlLabels&&t&&(t.style.width=9*e.length+"px",t.style.height="12px")}var N3=function(t,e){y.info("Moving label abc78 ",t.id,t.label,x1[t.id]);var r=e.updatedPath?e.updatedPath:e.originalPath;if(t.label){var a=x1[t.id],c=t.x,u=t.y;if(r){var h=tr.calcLabelPosition(r);y.info("Moving label from (",c,",",u,") to (",h.x,",",h.y,") abc78")}a.attr("transform","translate("+c+", "+u+")")}if(t.startLabelLeft){var g=ta[t.id].startLeft,x=t.x,_=t.y;if(r){var N=tr.calcTerminalLabelPosition(t.arrowTypeStart?10:0,"start_left",r);x=N.x,_=N.y}g.attr("transform","translate("+x+", "+_+")")}if(t.startLabelRight){var F=ta[t.id].startRight,P=t.x,H=t.y;if(r){var ct=tr.calcTerminalLabelPosition(t.arrowTypeStart?10:0,"start_right",r);P=ct.x,H=ct.y}F.attr("transform","translate("+P+", "+H+")")}if(t.endLabelLeft){var J=ta[t.id].endLeft,yt=t.x,ft=t.y;if(r){var kt=tr.calcTerminalLabelPosition(t.arrowTypeEnd?10:0,"end_left",r);yt=kt.x,ft=kt.y}J.attr("transform","translate("+yt+", "+ft+")")}if(t.endLabelRight){var Tt=ta[t.id].endRight,qt=t.x,ee=t.y;if(r){var Ot=tr.calcTerminalLabelPosition(t.arrowTypeEnd?10:0,"end_right",r);qt=Ot.x,ee=Ot.y}Tt.attr("transform","translate("+qt+", "+ee+")")}},D3=function(t,e){y.warn("abc88 cutPathAtIntersect",t,e);var r=[],a=t[0],c=!1;return t.forEach(function(u){if(y.info("abc88 checking point",u,e),function(x,_){var N=x.x,F=x.y,P=Math.abs(_.x-N),H=Math.abs(_.y-F),ct=x.width/2,J=x.height/2;return P>=ct||H>=J}(e,u)||c)y.warn("abc88 outside",u,a),a=u,c||r.push(u);else{var h=function(x,_,N){y.warn(`intersection calc abc89:
outsidePoint: `.concat(JSON.stringify(_),`
insidePoint : `).concat(JSON.stringify(N),`
node : x:`).concat(x.x," y:").concat(x.y," w:").concat(x.width," h:").concat(x.height));var F=x.x,P=x.y,H=Math.abs(F-N.x),ct=x.width/2,J=N.x<_.x?ct-H:ct+H,yt=x.height/2,ft=Math.abs(_.y-N.y),kt=Math.abs(_.x-N.x);if(Math.abs(P-_.y)*ct>Math.abs(F-_.x)*yt){var Tt=N.y<_.y?_.y-yt-P:P-yt-_.y;J=kt*Tt/ft;var qt={x:N.x<_.x?N.x+J:N.x-kt+J,y:N.y<_.y?N.y+ft-Tt:N.y-ft+Tt};return J===0&&(qt.x=_.x,qt.y=_.y),kt===0&&(qt.x=_.x),ft===0&&(qt.y=_.y),y.warn("abc89 topp/bott calc, Q ".concat(ft,", q ").concat(Tt,", R ").concat(kt,", r ").concat(J),qt),qt}var ee=ft*(J=N.x<_.x?_.x-ct-F:F-ct-_.x)/kt,Ot=N.x<_.x?N.x+kt-J:N.x-kt+J,Xt=N.y<_.y?N.y+ee:N.y-ee;return y.warn("sides calc abc89, Q ".concat(ft,", q ").concat(ee,", R ").concat(kt,", r ").concat(J),{_x:Ot,_y:Xt}),J===0&&(Ot=_.x,Xt=_.y),kt===0&&(Ot=_.x),ft===0&&(Xt=_.y),{x:Ot,y:Xt}}(e,a,u);y.warn("abc88 inside",u,a,h),y.warn("abc88 intersection",h);var g=!1;r.forEach(function(x){g=g||x.x===h.x&&x.y===h.y}),r.find(function(x){return x.x===h.x&&x.y===h.y})?y.warn("abc88 no intersect",h,r):r.push(h),c=!0}}),y.warn("abc88 returning points",r),r},L3=function t(e,r,a,c){y.info("Graph in recursive render: XXX",Ii().json.write(r),c);var u=r.graph().rankdir;y.trace("Dir in recursive render - dir:",u);var h=e.insert("g").attr("class","root");r.nodes()?y.info("Recursive render XXX",r.nodes()):y.info("No nodes found for",r),r.edges().length>0&&y.trace("Recursive edges",r.edge(r.edges()[0]));var g=h.insert("g").attr("class","clusters"),x=h.insert("g").attr("class","edgePaths"),_=h.insert("g").attr("class","edgeLabels"),N=h.insert("g").attr("class","nodes");r.nodes().forEach(function(P){var H=r.node(P);if(c!==void 0){var ct=JSON.parse(JSON.stringify(c.clusterData));y.info("Setting data for cluster XXX (",P,") ",ct,c),r.setNode(c.id,ct),r.parent(P)||(y.trace("Setting parent",P,c.id),r.setParent(P,c.id,ct))}if(y.info("(Insert) Node XXX"+P+": "+JSON.stringify(r.node(P))),H&&H.clusterNode){y.info("Cluster identified",P,H.width,r.node(P));var J=t(N,H.graph,a,r.node(P)),yt=J.elem;Ei(H,yt),H.diff=J.diff||0,y.info("Node bounds (abc123)",P,H,H.width,H.x,H.y),function(ft,kt){bu[kt.id]=ft}(yt,H),y.warn("Recursive render complete ",yt,H)}else r.children(P).length>0?(y.info("Cluster - the non recursive path XXX",P,H.id,H,r),y.info(Qd(H.id,r)),br[H.id]={id:Qd(H.id,r),node:H}):(y.info("Node - the non recursive path",P,H.id,H),function(ft,kt,Tt){var qt,ee,Ot;kt.link?($t().securityLevel==="sandbox"?Ot="_top":kt.linkTarget&&(Ot=kt.linkTarget||"_blank"),qt=ft.insert("svg:a").attr("xlink:href",kt.link).attr("target",Ot),ee=C3[kt.shape](qt,kt,Tt)):qt=ee=C3[kt.shape](ft,kt,Tt),kt.tooltip&&ee.attr("title",kt.tooltip),kt.class&&ee.attr("class","node default "+kt.class),bu[kt.id]=qt,kt.haveCallback&&bu[kt.id].attr("class",bu[kt.id].attr("class")+" clickable")}(N,r.node(P),u))}),r.edges().forEach(function(P){var H=r.edge(P.v,P.w,P.name);y.info("Edge "+P.v+" -> "+P.w+": "+JSON.stringify(P)),y.info("Edge "+P.v+" -> "+P.w+": ",P," ",JSON.stringify(r.edge(P))),y.info("Fix",br,"ids:",P.v,P.w,"Translateing: ",br[P.v],br[P.w]),M3(_,H)}),r.edges().forEach(function(P){y.info("Edge "+P.v+" -> "+P.w+": "+JSON.stringify(P))}),y.info("#############################################"),y.info("### Layout ###"),y.info("#############################################"),y.info(r),m1().layout(r),y.info("Graph after layout:",Ii().json.write(r));var F=0;return x3(r).forEach(function(P){var H=r.node(P);y.info("Position "+P+": "+JSON.stringify(r.node(P))),y.info("Position "+P+": ("+H.x,","+H.y,") width: ",H.width," height: ",H.height),H&&H.clusterNode?E3(H):r.children(P).length>0?(function(ct,J){y.trace("Inserting cluster");var yt=J.shape||"rect";A3[J.id]=S3[yt](ct,J)}(g,H),br[H.id].node=H):E3(H)}),r.edges().forEach(function(P){var H=r.edge(P);y.info("Edge "+P.v+" -> "+P.w+": "+JSON.stringify(H),H);var ct=function(J,yt,ft,kt,Tt,qt){var ee=ft.points,Ot=!1,Xt=qt.node(yt.v),Ht=qt.node(yt.w);y.info("abc88 InsertEdge: ",ft),Ht.intersect&&Xt.intersect&&((ee=ee.slice(1,ft.points.length-1)).unshift(Xt.intersect(ee[0])),y.info("Last point",ee[ee.length-1],Ht,Ht.intersect(ee[ee.length-1])),ee.push(Ht.intersect(ee[ee.length-1]))),ft.toCluster&&(y.info("to cluster abc88",kt[ft.toCluster]),ee=D3(ft.points,kt[ft.toCluster].node),Ot=!0),ft.fromCluster&&(y.info("from cluster abc88",kt[ft.fromCluster]),ee=D3(ee.reverse(),kt[ft.fromCluster].node).reverse(),Ot=!0);var Et,Mt=ee.filter(function(ye){return!Number.isNaN(ye.y)});Et=(Tt==="graph"||Tt==="flowchart")&&ft.curve||Wr;var bt,ut=No().x(function(ye){return ye.x}).y(function(ye){return ye.y}).curve(Et);switch(ft.thickness){case"normal":bt="edge-thickness-normal";break;case"thick":bt="edge-thickness-thick";break;default:bt=""}switch(ft.pattern){case"solid":bt+=" edge-pattern-solid";break;case"dotted":bt+=" edge-pattern-dotted";break;case"dashed":bt+=" edge-pattern-dashed"}var Nt=J.append("path").attr("d",ut(Mt)).attr("id",ft.id).attr("class"," "+bt+(ft.classes?" "+ft.classes:"")).attr("style",ft.style),pt="";switch($t().state.arrowMarkerAbsolute&&(pt=(pt=(pt=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search).replace(/\(/g,"\\(")).replace(/\)/g,"\\)")),y.info("arrowTypeStart",ft.arrowTypeStart),y.info("arrowTypeEnd",ft.arrowTypeEnd),ft.arrowTypeStart){case"arrow_cross":Nt.attr("marker-start","url("+pt+"#"+Tt+"-crossStart)");break;case"arrow_point":Nt.attr("marker-start","url("+pt+"#"+Tt+"-pointStart)");break;case"arrow_barb":Nt.attr("marker-start","url("+pt+"#"+Tt+"-barbStart)");break;case"arrow_circle":Nt.attr("marker-start","url("+pt+"#"+Tt+"-circleStart)");break;case"aggregation":Nt.attr("marker-start","url("+pt+"#"+Tt+"-aggregationStart)");break;case"extension":Nt.attr("marker-start","url("+pt+"#"+Tt+"-extensionStart)");break;case"composition":Nt.attr("marker-start","url("+pt+"#"+Tt+"-compositionStart)");break;case"dependency":Nt.attr("marker-start","url("+pt+"#"+Tt+"-dependencyStart)")}switch(ft.arrowTypeEnd){case"arrow_cross":Nt.attr("marker-end","url("+pt+"#"+Tt+"-crossEnd)");break;case"arrow_point":Nt.attr("marker-end","url("+pt+"#"+Tt+"-pointEnd)");break;case"arrow_barb":Nt.attr("marker-end","url("+pt+"#"+Tt+"-barbEnd)");break;case"arrow_circle":Nt.attr("marker-end","url("+pt+"#"+Tt+"-circleEnd)");break;case"aggregation":Nt.attr("marker-end","url("+pt+"#"+Tt+"-aggregationEnd)");break;case"extension":Nt.attr("marker-end","url("+pt+"#"+Tt+"-extensionEnd)");break;case"composition":Nt.attr("marker-end","url("+pt+"#"+Tt+"-compositionEnd)");break;case"dependency":Nt.attr("marker-end","url("+pt+"#"+Tt+"-dependencyEnd)")}var me={};return Ot&&(me.updatedPath=ee),me.originalPath=ft.points,me}(x,P,H,br,a,r);N3(H,ct)}),r.nodes().forEach(function(P){var H=r.node(P);y.info(P,H.type,H.diff),H.type==="group"&&(F=H.diff)}),{elem:h,diff:F}},v2=function(t,e,r,a,c){d_(t,r,a,c),bu={},x1={},ta={},A3={},vo={},v3={},br={},y.warn("Graph at first:",Ii().json.write(e)),g_(e),y.warn("Graph after:",Ii().json.write(e)),L3(t,e,a)};Lc.parser.yy=ws;var B3={dividerMargin:10,padding:5,textHeight:10};function O3(t){var e;switch(t){case 0:e="aggregation";break;case 1:e="extension";break;case 2:e="composition";break;case 3:e="dependency";break;default:e="none"}return e}var w1={},b2=[],k1=function(t){return w1[t]===void 0&&(w1[t]={attributes:[]},y.info("Added new entity :",t)),w1[t]};const ja={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(t,e,r){Gi.parseDirective(this,t,e,r)},getConfig:function(){return $t().er},addEntity:k1,addAttributes:function(t,e){var r,a=k1(t);for(r=e.length-1;r>=0;r--)a.attributes.push(e[r]),y.debug("Added attribute ",e[r].attributeName)},getEntities:function(){return w1},addRelationship:function(t,e,r,a){var c={entityA:t,roleA:e,entityB:r,relSpec:a};b2.push(c),y.debug("Added new relationship :",c)},getRelationships:function(){return b2},clear:function(){w1={},b2=[],vs()},setTitle:mo,getTitle:Uo,setAccDescription:bs,getAccDescription:_s};var t0=p(5890),I3=p.n(t0),Js={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 Oc=Js;var Gr={},T1=function(t){return(t.entityA+t.roleA+t.entityB).replace(/\s/g,"")},R3=0;const F3=function(t){for(var e=Object.keys(t),r=0;r<e.length;r++)Gr[e[r]]=t[e[r]]},v_=function(t,e){y.info("Drawing ER diagram"),ja.clear();var r=I3().parser;r.yy=ja;var a,c=$t().securityLevel;c==="sandbox"&&(a=Me("#i"+e));var u=Me(c==="sandbox"?a.nodes()[0].contentDocument.body:"body");c==="sandbox"&&a.nodes()[0].contentDocument;try{r.parse(t)}catch{y.debug("Parsing failed")}var h,g=u.select("[id='".concat(e,"']"));(function(ct,J){var yt;ct.append("defs").append("marker").attr("id",Js.ONLY_ONE_START).attr("refX",0).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("stroke",J.stroke).attr("fill","none").attr("d","M9,0 L9,18 M15,0 L15,18"),ct.append("defs").append("marker").attr("id",Js.ONLY_ONE_END).attr("refX",18).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("stroke",J.stroke).attr("fill","none").attr("d","M3,0 L3,18 M9,0 L9,18"),(yt=ct.append("defs").append("marker").attr("id",Js.ZERO_OR_ONE_START).attr("refX",0).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto")).append("circle").attr("stroke",J.stroke).attr("fill","white").attr("cx",21).attr("cy",9).attr("r",6),yt.append("path").attr("stroke",J.stroke).attr("fill","none").attr("d","M9,0 L9,18"),(yt=ct.append("defs").append("marker").attr("id",Js.ZERO_OR_ONE_END).attr("refX",30).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto")).append("circle").attr("stroke",J.stroke).attr("fill","white").attr("cx",9).attr("cy",9).attr("r",6),yt.append("path").attr("stroke",J.stroke).attr("fill","none").attr("d","M21,0 L21,18"),ct.append("defs").append("marker").attr("id",Js.ONE_OR_MORE_START).attr("refX",18).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("stroke",J.stroke).attr("fill","none").attr("d","M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27"),ct.append("defs").append("marker").attr("id",Js.ONE_OR_MORE_END).attr("refX",27).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("stroke",J.stroke).attr("fill","none").attr("d","M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18"),(yt=ct.append("defs").append("marker").attr("id",Js.ZERO_OR_MORE_START).attr("refX",18).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto")).append("circle").attr("stroke",J.stroke).attr("fill","white").attr("cx",48).attr("cy",18).attr("r",6),yt.append("path").attr("stroke",J.stroke).attr("fill","none").attr("d","M0,18 Q18,0 36,18 Q18,36 0,18"),(yt=ct.append("defs").append("marker").attr("id",Js.ZERO_OR_MORE_END).attr("refX",39).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto")).append("circle").attr("stroke",J.stroke).attr("fill","white").attr("cx",9).attr("cy",18).attr("r",6),yt.append("path").attr("stroke",J.stroke).attr("fill","none").attr("d","M21,18 Q39,0 57,18 Q39,36 21,18")})(g,Gr),h=new(Ii()).Graph({multigraph:!0,directed:!0,compound:!1}).setGraph({rankdir:Gr.layoutDirection,marginx:20,marginy:20,nodesep:100,edgesep:100,ranksep:100}).setDefaultEdgeLabel(function(){return{}});var x=function(ct,J,yt){var ft;return Object.keys(J).forEach(function(kt){var Tt=ct.append("g").attr("id",kt);ft=ft===void 0?kt:ft;var qt="entity-"+kt,ee=Tt.append("text").attr("class","er entityLabel").attr("id",qt).attr("x",0).attr("y",0).attr("dominant-baseline","middle").attr("text-anchor","middle").attr("style","font-family: "+$t().fontFamily+"; font-size: "+Gr.fontSize+"px").text(kt),Ot=function(Mt,bt,ut){var Nt=Gr.entityPadding/3,pt=Gr.entityPadding/3,me=.85*Gr.fontSize,ye=bt.node().getBBox(),re=[],Ce=!1,se=!1,ve=0,ge=0,He=0,Ge=0,an=ye.height+2*Nt,cn=1;ut.forEach(function(_n){_n.attributeKeyType!==void 0&&(Ce=!0),_n.attributeComment!==void 0&&(se=!0)}),ut.forEach(function(_n){var jn="".concat(bt.node().id,"-attr-").concat(cn),xr=0,$a=Mt.append("text").attr("class","er entityLabel").attr("id","".concat(jn,"-type")).attr("x",0).attr("y",0).attr("dominant-baseline","middle").attr("text-anchor","left").attr("style","font-family: "+$t().fontFamily+"; font-size: "+me+"px").text(_n.attributeType),Ta=Mt.append("text").attr("class","er entityLabel").attr("id","".concat(jn,"-name")).attr("x",0).attr("y",0).attr("dominant-baseline","middle").attr("text-anchor","left").attr("style","font-family: "+$t().fontFamily+"; font-size: "+me+"px").text(_n.attributeName),rr={};rr.tn=$a,rr.nn=Ta;var Rn=$a.node().getBBox(),co=Ta.node().getBBox();if(ve=Math.max(ve,Rn.width),ge=Math.max(ge,co.width),xr=Math.max(Rn.height,co.height),Ce){var wo=Mt.append("text").attr("class","er entityLabel").attr("id","".concat(jn,"-key")).attr("x",0).attr("y",0).attr("dominant-baseline","middle").attr("text-anchor","left").attr("style","font-family: "+$t().fontFamily+"; font-size: "+me+"px").text(_n.attributeKeyType||"");rr.kn=wo;var Go=wo.node().getBBox();He=Math.max(He,Go.width),xr=Math.max(xr,Go.height)}if(se){var ki=Mt.append("text").attr("class","er entityLabel").attr("id","".concat(jn,"-comment")).attr("x",0).attr("y",0).attr("dominant-baseline","middle").attr("text-anchor","left").attr("style","font-family: "+$t().fontFamily+"; font-size: "+me+"px").text(_n.attributeComment||"");rr.cn=ki;var $1=ki.node().getBBox();Ge=Math.max(Ge,$1.width),xr=Math.max(xr,$1.height)}rr.height=xr,re.push(rr),an+=xr+2*Nt,cn+=1});var We=4;Ce&&(We+=2),se&&(We+=2);var lr=ve+ge+He+Ge,_r={width:Math.max(Gr.minEntityWidth,Math.max(ye.width+2*Gr.entityPadding,lr+pt*We)),height:ut.length>0?an:Math.max(Gr.minEntityHeight,ye.height+2*Gr.entityPadding)};if(ut.length>0){var qn=Math.max(0,(_r.width-lr-pt*We)/(We/2));bt.attr("transform","translate("+_r.width/2+","+(Nt+ye.height/2)+")");var Xr=ye.height+2*Nt,mr="attributeBoxOdd";re.forEach(function(_n){var jn=Xr+Nt+_n.height/2;_n.tn.attr("transform","translate("+pt+","+jn+")");var xr=Mt.insert("rect","#"+_n.tn.node().id).attr("class","er ".concat(mr)).attr("fill",Gr.fill).attr("fill-opacity","100%").attr("stroke",Gr.stroke).attr("x",0).attr("y",Xr).attr("width",ve+2*pt+qn).attr("height",_n.height+2*Nt),$a=parseFloat(xr.attr("x"))+parseFloat(xr.attr("width"));_n.nn.attr("transform","translate("+($a+pt)+","+jn+")");var Ta=Mt.insert("rect","#"+_n.nn.node().id).attr("class","er ".concat(mr)).attr("fill",Gr.fill).attr("fill-opacity","100%").attr("stroke",Gr.stroke).attr("x",$a).attr("y",Xr).attr("width",ge+2*pt+qn).attr("height",_n.height+2*Nt),rr=parseFloat(Ta.attr("x"))+parseFloat(Ta.attr("width"));if(Ce){_n.kn.attr("transform","translate("+(rr+pt)+","+jn+")");var Rn=Mt.insert("rect","#"+_n.kn.node().id).attr("class","er ".concat(mr)).attr("fill",Gr.fill).attr("fill-opacity","100%").attr("stroke",Gr.stroke).attr("x",rr).attr("y",Xr).attr("width",He+2*pt+qn).attr("height",_n.height+2*Nt);rr=parseFloat(Rn.attr("x"))+parseFloat(Rn.attr("width"))}se&&(_n.cn.attr("transform","translate("+(rr+pt)+","+jn+")"),Mt.insert("rect","#"+_n.cn.node().id).attr("class","er ".concat(mr)).attr("fill",Gr.fill).attr("fill-opacity","100%").attr("stroke",Gr.stroke).attr("x",rr).attr("y",Xr).attr("width",Ge+2*pt+qn).attr("height",_n.height+2*Nt)),Xr+=_n.height+2*Nt,mr=mr=="attributeBoxOdd"?"attributeBoxEven":"attributeBoxOdd"})}else _r.height=Math.max(Gr.minEntityHeight,an),bt.attr("transform","translate("+_r.width/2+","+_r.height/2+")");return _r}(Tt,ee,J[kt].attributes),Xt=Ot.width,Ht=Ot.height,Et=Tt.insert("rect","#"+qt).attr("class","er entityBox").attr("fill",Gr.fill).attr("fill-opacity","100%").attr("stroke",Gr.stroke).attr("x",0).attr("y",0).attr("width",Xt).attr("height",Ht).node().getBBox();yt.setNode(kt,{width:Et.width,height:Et.height,shape:"rect",id:kt})}),ft}(g,ja.getEntities(),h),_=function(ct,J){return ct.forEach(function(yt){J.setEdge(yt.entityA,yt.entityB,{relationship:yt},T1(yt))}),ct}(ja.getRelationships(),h);m1().layout(h),function(ct,J){J.nodes().forEach(function(yt){yt!==void 0&&J.node(yt)!==void 0&&ct.select("#"+yt).attr("transform","translate("+(J.node(yt).x-J.node(yt).width/2)+","+(J.node(yt).y-J.node(yt).height/2)+" )")})}(g,h),_.forEach(function(ct){(function(J,yt,ft,kt){R3++;var Tt=ft.edge(yt.entityA,yt.entityB,T1(yt)),qt=No().x(function(bt){return bt.x}).y(function(bt){return bt.y}).curve(Wr),ee=J.insert("path","#"+kt).attr("class","er relationshipLine").attr("d",qt(Tt.points)).attr("stroke",Gr.stroke).attr("fill","none");yt.relSpec.relType===ja.Identification.NON_IDENTIFYING&&ee.attr("stroke-dasharray","8,8");var Ot="";switch(Gr.arrowMarkerAbsolute&&(Ot=(Ot=(Ot=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search).replace(/\(/g,"\\(")).replace(/\)/g,"\\)")),yt.relSpec.cardA){case ja.Cardinality.ZERO_OR_ONE:ee.attr("marker-end","url("+Ot+"#"+Oc.ZERO_OR_ONE_END+")");break;case ja.Cardinality.ZERO_OR_MORE:ee.attr("marker-end","url("+Ot+"#"+Oc.ZERO_OR_MORE_END+")");break;case ja.Cardinality.ONE_OR_MORE:ee.attr("marker-end","url("+Ot+"#"+Oc.ONE_OR_MORE_END+")");break;case ja.Cardinality.ONLY_ONE:ee.attr("marker-end","url("+Ot+"#"+Oc.ONLY_ONE_END+")")}switch(yt.relSpec.cardB){case ja.Cardinality.ZERO_OR_ONE:ee.attr("marker-start","url("+Ot+"#"+Oc.ZERO_OR_ONE_START+")");break;case ja.Cardinality.ZERO_OR_MORE:ee.attr("marker-start","url("+Ot+"#"+Oc.ZERO_OR_MORE_START+")");break;case ja.Cardinality.ONE_OR_MORE:ee.attr("marker-start","url("+Ot+"#"+Oc.ONE_OR_MORE_START+")");break;case ja.Cardinality.ONLY_ONE:ee.attr("marker-start","url("+Ot+"#"+Oc.ONLY_ONE_START+")")}var Xt=ee.node().getTotalLength(),Ht=ee.node().getPointAtLength(.5*Xt),Et="rel"+R3,Mt=J.append("text").attr("class","er relationshipLabel").attr("id",Et).attr("x",Ht.x).attr("y",Ht.y).attr("text-anchor","middle").attr("dominant-baseline","middle").attr("style","font-family: "+$t().fontFamily+"; font-size: "+Gr.fontSize+"px").text(yt.roleA).node().getBBox();J.insert("rect","#"+Et).attr("class","er relationshipLabelBox").attr("x",Ht.x-Mt.width/2).attr("y",Ht.y-Mt.height/2).attr("width",Mt.width).attr("height",Mt.height).attr("fill","white").attr("fill-opacity","85%")})(g,ct,h,x)});var N=Gr.diagramPadding,F=g.node().getBBox(),P=F.width+2*N,H=F.height+2*N;Ra(g,H,P,Gr.useMaxWidth),g.attr("viewBox","".concat(F.x-N," ").concat(F.y-N," ").concat(P," ").concat(H)),Fa(r.yy,g,e)};function _2(t){return _2=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_2(t)}function x2(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,a=new Array(e);r<e;r++)a[r]=t[r];return a}var tc,C1,w2="flowchart-",P3=0,k2=$t(),kn={},Ic=[],_i=[],oa=[],e0={},E1={},bo=0,Rc=!0,Ri=[],qo=function(t){return Jn.sanitizeText(t,k2)},_u=function(t){for(var e=Object.keys(kn),r=0;r<e.length;r++)if(kn[e[r]].id===t)return kn[e[r]].domId;return t},Fc=function(t,e,r,a){var c={start:t,end:e,type:void 0,text:""};(a=r.text)!==void 0&&(c.text=qo(a.trim()),c.text[0]==='"'&&c.text[c.text.length-1]==='"'&&(c.text=c.text.substring(1,c.text.length-1))),r!==void 0&&(c.type=r.type,c.stroke=r.stroke,c.length=r.length),Ic.push(c)},T2=function(t,e){t.split(",").forEach(function(r){var a=r;kn[a]!==void 0&&kn[a].classes.push(e),e0[a]!==void 0&&e0[a].classes.push(e)})},C2=function(t){var e=Me(".mermaidTooltip");(e._groups||e)[0][0]===null&&(e=Me("body").append("div").attr("class","mermaidTooltip").style("opacity",0)),Me(t).select("svg").selectAll("g.node").on("mouseover",function(){var r=Me(this);if(r.attr("title")!==null){var a=this.getBoundingClientRect();e.transition().duration(200).style("opacity",".9"),e.text(r.attr("title")).style("left",window.scrollX+a.left+(a.right-a.left)/2+"px").style("top",window.scrollY+a.top-14+document.body.scrollTop+"px"),r.classed("hover",!0)}}).on("mouseout",function(){e.transition().duration(500).style("opacity",0),Me(this).classed("hover",!1)})};Ri.push(C2);var b_=function(t){for(var e=0;e<oa.length;e++)if(oa[e].id===t)return e;return-1},E2=-1,j3=[],__=function t(e,r){var a=oa[r].nodes;if(!((E2+=1)>2e3)){if(j3[E2]=r,oa[r].id===e)return{result:!0,count:0};for(var c=0,u=1;c<a.length;){var h=b_(a[c]);if(h>=0){var g=t(e,h);if(g.result)return{result:!0,count:u+g.count};u+=g.count}c+=1}return{result:!1,count:u}}},Y3=function(t,e){var r=!1;return t.forEach(function(a){a.nodes.indexOf(e)>=0&&(r=!0)}),r},z3=function(t,e){var r=[];return t.nodes.forEach(function(a,c){Y3(e,a)||r.push(t.nodes[c])}),{nodes:r}};const nr={parseDirective:function(t,e,r){Gi.parseDirective(this,t,e,r)},defaultConfig:function(){return Sl.flowchart},setTitle:mo,getTitle:Uo,getAccDescription:_s,setAccDescription:bs,addVertex:function(t,e,r,a,c,u){var h,g=arguments.length>6&&arguments[6]!==void 0?arguments[6]:{},x=t;x!==void 0&&x.trim().length!==0&&(kn[x]===void 0&&(kn[x]={id:x,domId:w2+x+"-"+P3,styles:[],classes:[]}),P3++,e!==void 0?(k2=$t(),(h=qo(e.trim()))[0]==='"'&&h[h.length-1]==='"'&&(h=h.substring(1,h.length-1)),kn[x].text=h):kn[x].text===void 0&&(kn[x].text=t),r!==void 0&&(kn[x].type=r),a!=null&&a.forEach(function(_){kn[x].styles.push(_)}),c!=null&&c.forEach(function(_){kn[x].classes.push(_)}),u!==void 0&&(kn[x].dir=u),kn[x].props=g)},lookUpDomId:_u,addLink:function(t,e,r,a){var c,u;for(c=0;c<t.length;c++)for(u=0;u<e.length;u++)Fc(t[c],e[u],r,a)},updateLinkInterpolate:function(t,e){t.forEach(function(r){r==="default"?Ic.defaultInterpolate=e:Ic[r].interpolate=e})},updateLink:function(t,e){t.forEach(function(r){r==="default"?Ic.defaultStyle=e:(tr.isSubstringInArray("fill",e)===-1&&e.push("fill:none"),Ic[r].style=e)})},addClass:function(t,e){_i[t]===void 0&&(_i[t]={id:t,styles:[],textStyles:[]}),e!=null&&e.forEach(function(r){if(r.match("color")){var a=r.replace("fill","bgFill").replace("color","fill");_i[t].textStyles.push(a)}_i[t].styles.push(r)})},setDirection:function(t){(tc=t).match(/.*</)&&(tc="RL"),tc.match(/.*\^/)&&(tc="BT"),tc.match(/.*>/)&&(tc="LR"),tc.match(/.*v/)&&(tc="TB")},setClass:T2,setTooltip:function(t,e){t.split(",").forEach(function(r){e!==void 0&&(E1[C1==="gen-1"?_u(r):r]=qo(e))})},getTooltip:function(t){return E1[t]},setClickEvent:function(t,e,r){t.split(",").forEach(function(a){(function(c,u,h){var g=_u(c);if($t().securityLevel==="loose"&&u!==void 0){var x=[];if(typeof h=="string"){x=h.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(var _=0;_<x.length;_++){var N=x[_].trim();N.charAt(0)==='"'&&N.charAt(N.length-1)==='"'&&(N=N.substr(1,N.length-2)),x[_]=N}}x.length===0&&x.push(c),kn[c]!==void 0&&(kn[c].haveCallback=!0,Ri.push(function(){var F=document.querySelector('[id="'.concat(g,'"]'));F!==null&&F.addEventListener("click",function(){var P;tr.runFunc.apply(tr,[u].concat(function(H){if(Array.isArray(H))return x2(H)}(P=x)||function(H){if(typeof Symbol!="undefined"&&H[Symbol.iterator]!=null||H["@@iterator"]!=null)return Array.from(H)}(P)||function(H,ct){if(H){if(typeof H=="string")return x2(H,ct);var J=Object.prototype.toString.call(H).slice(8,-1);return J==="Object"&&H.constructor&&(J=H.constructor.name),J==="Map"||J==="Set"?Array.from(H):J==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(J)?x2(H,ct):void 0}}(P)||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)}))}})(a,e,r)}),T2(t,"clickable")},setLink:function(t,e,r){t.split(",").forEach(function(a){kn[a]!==void 0&&(kn[a].link=tr.formatUrl(e,k2),kn[a].linkTarget=r)}),T2(t,"clickable")},bindFunctions:function(t){Ri.forEach(function(e){e(t)})},getDirection:function(){return tc.trim()},getVertices:function(){return kn},getEdges:function(){return Ic},getClasses:function(){return _i},clear:function(t){kn={},_i={},Ic=[],(Ri=[]).push(C2),oa=[],e0={},bo=0,E1=[],Rc=!0,C1=t||"gen-1",vs()},setGen:function(t){C1=t||"gen-1"},defaultStyle:function(){return"fill:#ffa;stroke: #f66; stroke-width: 3px; stroke-dasharray: 5, 5;fill:#ffa;stroke: #666;"},addSubGraph:function(t,e,r){var a=t.trim(),c=r;t===r&&r.match(/\s/)&&(a=void 0);var u=[],h=function(F){var P,H={boolean:{},number:{},string:{}},ct=[],J=F.filter(function(yt){var ft=_2(yt);return yt.stmt&&yt.stmt==="dir"?(P=yt.value,!1):yt.trim()!==""&&(ft in H?!H[ft].hasOwnProperty(yt)&&(H[ft][yt]=!0):!(ct.indexOf(yt)>=0)&&ct.push(yt))});return{nodeList:J,dir:P}}(u.concat.apply(u,e)),g=h.nodeList,x=h.dir;if(u=g,C1==="gen-1"){y.warn("LOOKING UP");for(var _=0;_<u.length;_++)u[_]=_u(u[_])}a=a||"subGraph"+bo,c=qo(c=c||""),bo+=1;var N={id:a,nodes:u,title:c.trim(),classes:[],dir:x};return y.info("Adding",N.id,N.nodes,N.dir),N.nodes=z3(N,oa).nodes,oa.push(N),e0[a]=N,a},getDepthFirstPos:function(t){return j3[t]},indexNodes:function(){E2=-1,oa.length>0&&__("none",oa.length-1)},getSubGraphs:function(){return oa},destructLink:function(t,e){var r,a=function(c){var u=c.trim(),h=u.slice(0,-1),g="arrow_open";switch(u.slice(-1)){case"x":g="arrow_cross",u[0]==="x"&&(g="double_"+g,h=h.slice(1));break;case">":g="arrow_point",u[0]==="<"&&(g="double_"+g,h=h.slice(1));break;case"o":g="arrow_circle",u[0]==="o"&&(g="double_"+g,h=h.slice(1))}var x="normal",_=h.length-1;h[0]==="="&&(x="thick");var N=function(F,P){for(var H=P.length,ct=0,J=0;J<H;++J)P[J]==="."&&++ct;return ct}(0,h);return N&&(x="dotted",_=N),{type:g,stroke:x,length:_}}(t);if(e){if(r=function(c){var u=c.trim(),h="arrow_open";switch(u[0]){case"<":h="arrow_point",u=u.slice(1);break;case"x":h="arrow_cross",u=u.slice(1);break;case"o":h="arrow_circle",u=u.slice(1)}var g="normal";return u.indexOf("=")!==-1&&(g="thick"),u.indexOf(".")!==-1&&(g="dotted"),{type:h,stroke:g}}(e),r.stroke!==a.stroke)return{type:"INVALID",stroke:"INVALID"};if(r.type==="arrow_open")r.type=a.type;else{if(r.type!==a.type)return{type:"INVALID",stroke:"INVALID"};r.type="double_"+r.type}return r.type==="double_arrow"&&(r.type="double_arrow_point"),r.length=a.length,r}return a},lex:{firstGraph:function(){return!!Rc&&(Rc=!1,!0)}},exists:Y3,makeUniq:z3};var x_=p(3602),S1=p.n(x_),n0=p(4949),wa=p.n(n0),S2=p(8284),r0=p.n(S2);function U3(t,e,r){var a=.9*(e.width+e.height),c=[{x:a/2,y:0},{x:a,y:-a/2},{x:a/2,y:-a},{x:0,y:-a/2}],u=$o(t,a,a,c);return r.intersect=function(h){return wa().intersect.polygon(r,c,h)},u}function w_(t,e,r){var a=e.height,c=a/4,u=e.width+2*c,h=[{x:c,y:0},{x:u-c,y:0},{x:u,y:-a/2},{x:u-c,y:-a},{x:c,y:-a},{x:0,y:-a/2}],g=$o(t,u,a,h);return r.intersect=function(x){return wa().intersect.polygon(r,h,x)},g}function k_(t,e,r){var a=e.width,c=e.height,u=[{x:-c/2,y:0},{x:a,y:0},{x:a,y:-c},{x:-c/2,y:-c},{x:0,y:-c/2}],h=$o(t,a,c,u);return r.intersect=function(g){return wa().intersect.polygon(r,u,g)},h}function T_(t,e,r){var a=e.width,c=e.height,u=[{x:-2*c/6,y:0},{x:a-c/6,y:0},{x:a+2*c/6,y:-c},{x:c/6,y:-c}],h=$o(t,a,c,u);return r.intersect=function(g){return wa().intersect.polygon(r,u,g)},h}function q3(t,e,r){var a=e.width,c=e.height,u=[{x:2*c/6,y:0},{x:a+c/6,y:0},{x:a-2*c/6,y:-c},{x:-c/6,y:-c}],h=$o(t,a,c,u);return r.intersect=function(g){return wa().intersect.polygon(r,u,g)},h}function $3(t,e,r){var a=e.width,c=e.height,u=[{x:-2*c/6,y:0},{x:a+2*c/6,y:0},{x:a-c/6,y:-c},{x:c/6,y:-c}],h=$o(t,a,c,u);return r.intersect=function(g){return wa().intersect.polygon(r,u,g)},h}function A2(t,e,r){var a=e.width,c=e.height,u=[{x:c/6,y:0},{x:a-c/6,y:0},{x:a+2*c/6,y:-c},{x:-2*c/6,y:-c}],h=$o(t,a,c,u);return r.intersect=function(g){return wa().intersect.polygon(r,u,g)},h}function A1(t,e,r){var a=e.width,c=e.height,u=[{x:0,y:0},{x:a+c/2,y:0},{x:a,y:-c/2},{x:a+c/2,y:-c},{x:0,y:-c}],h=$o(t,a,c,u);return r.intersect=function(g){return wa().intersect.polygon(r,u,g)},h}function H3(t,e,r){var a=e.height,c=e.width+a/4,u=t.insert("rect",":first-child").attr("rx",a/2).attr("ry",a/2).attr("x",-c/2).attr("y",-a/2).attr("width",c).attr("height",a);return r.intersect=function(h){return wa().intersect.rect(r,h)},u}function W3(t,e,r){var a=e.width,c=e.height,u=[{x:0,y:0},{x:a,y:0},{x:a,y:-c},{x:0,y:-c},{x:0,y:0},{x:-8,y:0},{x:a+8,y:0},{x:a+8,y:-c},{x:-8,y:-c},{x:-8,y:0}],h=$o(t,a,c,u);return r.intersect=function(g){return wa().intersect.polygon(r,u,g)},h}function M1(t,e,r){var a=e.width,c=a/2,u=c/(2.5+a/50),h=e.height+u,g="M 0,"+u+" a "+c+","+u+" 0,0,0 "+a+" 0 a "+c+","+u+" 0,0,0 "+-a+" 0 l 0,"+h+" a "+c+","+u+" 0,0,0 "+a+" 0 l 0,"+-h,x=t.attr("label-offset-y",u).insert("path",":first-child").attr("d",g).attr("transform","translate("+-a/2+","+-(h/2+u)+")");return r.intersect=function(_){var N=wa().intersect.rect(r,_),F=N.x-r.x;if(c!=0&&(Math.abs(F)<r.width/2||Math.abs(F)==r.width/2&&Math.abs(N.y-r.y)>r.height/2-u)){var P=u*u*(1-F*F/(c*c));P!=0&&(P=Math.sqrt(P)),P=u-P,_.y-r.y>0&&(P=-P),N.y+=P}return N},x}function $o(t,e,r,a){return t.insert("polygon",":first-child").attr("points",a.map(function(c){return c.x+","+c.y}).join(" ")).attr("transform","translate("+-e/2+","+r/2+")")}const C_=function(t){t.shapes().question=U3,t.shapes().hexagon=w_,t.shapes().stadium=H3,t.shapes().subroutine=W3,t.shapes().cylinder=M1,t.shapes().rect_left_inv_arrow=k_,t.shapes().lean_right=T_,t.shapes().lean_left=q3,t.shapes().trapezoid=$3,t.shapes().inv_trapezoid=A2,t.shapes().rect_right_inv_arrow=A1};var V3={};const i0=function(t){for(var e=Object.keys(t),r=0;r<e.length;r++)V3[e[r]]=t[e[r]]},E_=function(t,e){y.info("Drawing flowchart"),nr.clear(),nr.setGen("gen-1");var r=S1().parser;r.yy=nr;var a,c=$t().securityLevel;c==="sandbox"&&(a=Me("#i"+e));var u=Me(c==="sandbox"?a.nodes()[0].contentDocument.body:"body"),h=c==="sandbox"?a.nodes()[0].contentDocument:document;r.parse(t);var g=nr.getDirection();g===void 0&&(g="TD");for(var x,_=$t().flowchart,N=_.nodeSpacing||50,F=_.rankSpacing||50,P=new(Ii()).Graph({multigraph:!0,compound:!0}).setGraph({rankdir:g,nodesep:N,ranksep:F,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}}),H=nr.getSubGraphs(),ct=H.length-1;ct>=0;ct--)x=H[ct],nr.addVertex(x.id,x.title,"group",void 0,x.classes);var J=nr.getVertices();y.warn("Get vertices",J);var yt=nr.getEdges(),ft=0;for(ft=H.length-1;ft>=0;ft--){x=H[ft],mc("cluster").append("text");for(var kt=0;kt<x.nodes.length;kt++)y.warn("Setting subgraph",x.nodes[kt],nr.lookUpDomId(x.nodes[kt]),nr.lookUpDomId(x.id)),P.setParent(nr.lookUpDomId(x.nodes[kt]),nr.lookUpDomId(x.id))}(function(Ge,an,cn,We,lr){$t().securityLevel;var _r=We?We.select('[id="'.concat(cn,'"]')):Me('[id="'.concat(cn,'"]')),qn=lr||document;Object.keys(Ge).forEach(function(Xr){var mr=Ge[Xr],_n="default";mr.classes.length>0&&(_n=mr.classes.join(" "));var jn,xr=Qs(mr.styles),$a=mr.text!==void 0?mr.text:mr.id;if(Ji($t().flowchart.htmlLabels)){var Ta={label:$a.replace(/fa[lrsb]?:fa-[\w-]+/g,function($1){return"<i class='".concat($1.replace(":"," "),"'></i>")})};(jn=r0()(_r,Ta).node()).parentNode.removeChild(jn)}else{var rr=qn.createElementNS("http://www.w3.org/2000/svg","text");rr.setAttribute("style",xr.labelStyle.replace("color:","fill:"));for(var Rn=$a.split(Jn.lineBreakRegex),co=0;co<Rn.length;co++){var wo=qn.createElementNS("http://www.w3.org/2000/svg","tspan");wo.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),wo.setAttribute("dy","1em"),wo.setAttribute("x","1"),wo.textContent=Rn[co],rr.appendChild(wo)}jn=rr}var Go=0,ki="";switch(mr.type){case"round":Go=5,ki="rect";break;case"square":case"group":default:ki="rect";break;case"diamond":ki="question";break;case"hexagon":ki="hexagon";break;case"odd":case"odd_right":ki="rect_left_inv_arrow";break;case"lean_right":ki="lean_right";break;case"lean_left":ki="lean_left";break;case"trapezoid":ki="trapezoid";break;case"inv_trapezoid":ki="inv_trapezoid";break;case"circle":ki="circle";break;case"ellipse":ki="ellipse";break;case"stadium":ki="stadium";break;case"subroutine":ki="subroutine";break;case"cylinder":ki="cylinder"}y.warn("Adding node",mr.id,mr.domId),an.setNode(nr.lookUpDomId(mr.id),{labelType:"svg",labelStyle:xr.labelStyle,shape:ki,label:jn,rx:Go,ry:Go,class:_n,style:xr.style,id:nr.lookUpDomId(mr.id)})})})(J,P,e,u,h),function(Ge,an){var cn,We,lr=0;if(Ge.defaultStyle!==void 0){var _r=Qs(Ge.defaultStyle);cn=_r.style,We=_r.labelStyle}Ge.forEach(function(qn){lr++;var Xr="L-"+qn.start+"-"+qn.end,mr="LS-"+qn.start,_n="LE-"+qn.end,jn={};qn.type==="arrow_open"?jn.arrowhead="none":jn.arrowhead="normal";var xr="",$a="";if(qn.style!==void 0){var Ta=Qs(qn.style);xr=Ta.style,$a=Ta.labelStyle}else switch(qn.stroke){case"normal":xr="fill:none",cn!==void 0&&(xr=cn),We!==void 0&&($a=We);break;case"dotted":xr="fill:none;stroke-width:2px;stroke-dasharray:3;";break;case"thick":xr=" stroke-width: 3.5px;fill:none"}jn.style=xr,jn.labelStyle=$a,qn.interpolate!==void 0?jn.curve=ms(qn.interpolate,fo):Ge.defaultInterpolate!==void 0?jn.curve=ms(Ge.defaultInterpolate,fo):jn.curve=ms(V3.curve,fo),qn.text===void 0?qn.style!==void 0&&(jn.arrowheadStyle="fill: #333"):(jn.arrowheadStyle="fill: #333",jn.labelpos="c",Ji($t().flowchart.htmlLabels)?(jn.labelType="html",jn.label='<span id="L-'.concat(Xr,'" class="edgeLabel L-').concat(mr,"' L-").concat(_n,'" style="').concat(jn.labelStyle,'">').concat(qn.text.replace(/fa[lrsb]?:fa-[\w-]+/g,function(rr){return"<i class='".concat(rr.replace(":"," "),"'></i>")}),"</span>")):(jn.labelType="text",jn.label=qn.text.replace(Jn.lineBreakRegex,`
`),qn.style===void 0&&(jn.style=jn.style||"stroke: #333; stroke-width: 1.5px;fill:none"),jn.labelStyle=jn.labelStyle.replace("color:","fill:"))),jn.id=Xr,jn.class=mr+" "+_n,jn.minlen=qn.length||1,an.setEdge(nr.lookUpDomId(qn.start),nr.lookUpDomId(qn.end),jn,lr)})}(yt,P);var Tt=new(wa()).render;C_(Tt),Tt.arrows().none=function(Ge,an,cn,We){var lr=Ge.append("marker").attr("id",an).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");wa().util.applyStyle(lr,cn[We+"Style"])},Tt.arrows().normal=function(Ge,an){Ge.append("marker").attr("id",an).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=u.select('[id="'.concat(e,'"]'));qt.attr("xmlns:xlink","http://www.w3.org/1999/xlink"),y.warn(P),Fa(r.yy,qt,e);var ee=u.select("#"+e+" g");Tt(ee,P),ee.selectAll("g.node").attr("title",function(){return nr.getTooltip(this.id)});var Ot=_.diagramPadding,Xt=qt.node().getBBox(),Ht=Xt.width+2*Ot,Et=Xt.height+2*Ot;Ra(qt,Et,Ht,_.useMaxWidth);var Mt="".concat(Xt.x-Ot," ").concat(Xt.y-Ot," ").concat(Ht," ").concat(Et);for(y.debug("viewBox ".concat(Mt)),qt.attr("viewBox",Mt),nr.indexNodes("subGraph"+ft),ft=0;ft<H.length;ft++)if((x=H[ft]).title!=="undefined"){var bt=h.querySelectorAll("#"+e+' [id="'+nr.lookUpDomId(x.id)+'"] rect'),ut=h.querySelectorAll("#"+e+' [id="'+nr.lookUpDomId(x.id)+'"]'),Nt=bt[0].x.baseVal.value,pt=bt[0].y.baseVal.value,me=bt[0].width.baseVal.value,ye=Me(ut[0]).select(".label");ye.attr("transform","translate(".concat(Nt+me/2,", ").concat(pt+14,")")),ye.attr("id",e+"Text");for(var re=0;re<x.classes.length;re++)ut[0].classList.add(x.classes[re])}Ji(_.htmlLabels);for(var Ce=h.querySelectorAll('[id="'+e+'"] .edgeLabel .label'),se=0;se<Ce.length;se++){var ve=Ce[se],ge=ve.getBBox(),He=h.createElementNS("http://www.w3.org/2000/svg","rect");He.setAttribute("rx",0),He.setAttribute("ry",0),He.setAttribute("width",ge.width),He.setAttribute("height",ge.height),ve.insertBefore(He,ve.firstChild)}Object.keys(J).forEach(function(Ge){var an=J[Ge];if(an.link){var cn=u.select("#"+e+' [id="'+nr.lookUpDomId(Ge)+'"]');if(cn){var We=h.createElementNS("http://www.w3.org/2000/svg","a");We.setAttributeNS("http://www.w3.org/2000/svg","class",an.classes.join(" ")),We.setAttributeNS("http://www.w3.org/2000/svg","href",an.link),We.setAttributeNS("http://www.w3.org/2000/svg","rel","noopener"),c==="sandbox"?We.setAttributeNS("http://www.w3.org/2000/svg","target","_top"):an.linkTarget&&We.setAttributeNS("http://www.w3.org/2000/svg","target",an.linkTarget);var lr=cn.insert(function(){return We},":first-child"),_r=cn.select(".label-container");_r&&lr.append(function(){return _r.node()});var qn=cn.select(".label");qn&&lr.append(function(){return qn.node()})}}})};var G3={};const X3=function(t){for(var e=Object.keys(t),r=0;r<e.length;r++)G3[e[r]]=t[e[r]]},S_=function(t,e){y.info("Drawing flowchart"),nr.clear(),nr.setGen("gen-2");var r=S1().parser;r.yy=nr,r.parse(t);var a=nr.getDirection();a===void 0&&(a="TD");var c,u=$t().flowchart,h=u.nodeSpacing||50,g=u.rankSpacing||50,x=$t().securityLevel;x==="sandbox"&&(c=Me("#i"+e));var _,N=Me(x==="sandbox"?c.nodes()[0].contentDocument.body:"body"),F=x==="sandbox"?c.nodes()[0].contentDocument:document,P=new(Ii()).Graph({multigraph:!0,compound:!0}).setGraph({rankdir:a,nodesep:h,ranksep:g,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}}),H=nr.getSubGraphs();y.info("Subgraphs - ",H);for(var ct=H.length-1;ct>=0;ct--)_=H[ct],y.info("Subgraph - ",_),nr.addVertex(_.id,_.title,"group",void 0,_.classes,_.dir);var J=nr.getVertices(),yt=nr.getEdges();y.info(yt);var ft=0;for(ft=H.length-1;ft>=0;ft--){_=H[ft],mc("cluster").append("text");for(var kt=0;kt<_.nodes.length;kt++)y.info("Setting up subgraphs",_.nodes[kt],_.id),P.setParent(_.nodes[kt],_.id)}(function(pt,me,ye,re,Ce){var se=re.select('[id="'.concat(ye,'"]'));Object.keys(pt).forEach(function(ve){var ge=pt[ve],He="default";ge.classes.length>0&&(He=ge.classes.join(" "));var Ge,an=Qs(ge.styles),cn=ge.text!==void 0?ge.text:ge.id;if(Ji($t().flowchart.htmlLabels)){var We={label:cn.replace(/fa[lrsb]?:fa-[\w-]+/g,function(jn){return"<i class='".concat(jn.replace(":"," "),"'></i>")})};(Ge=r0()(se,We).node()).parentNode.removeChild(Ge)}else{var lr=Ce.createElementNS("http://www.w3.org/2000/svg","text");lr.setAttribute("style",an.labelStyle.replace("color:","fill:"));for(var _r=cn.split(Jn.lineBreakRegex),qn=0;qn<_r.length;qn++){var Xr=Ce.createElementNS("http://www.w3.org/2000/svg","tspan");Xr.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),Xr.setAttribute("dy","1em"),Xr.setAttribute("x","1"),Xr.textContent=_r[qn],lr.appendChild(Xr)}Ge=lr}var mr=0,_n="";switch(ge.type){case"round":mr=5,_n="rect";break;case"square":case"group":default:_n="rect";break;case"diamond":_n="question";break;case"hexagon":_n="hexagon";break;case"odd":case"odd_right":_n="rect_left_inv_arrow";break;case"lean_right":_n="lean_right";break;case"lean_left":_n="lean_left";break;case"trapezoid":_n="trapezoid";break;case"inv_trapezoid":_n="inv_trapezoid";break;case"circle":_n="circle";break;case"ellipse":_n="ellipse";break;case"stadium":_n="stadium";break;case"subroutine":_n="subroutine";break;case"cylinder":_n="cylinder";break;case"doublecircle":_n="doublecircle"}me.setNode(ge.id,{labelStyle:an.labelStyle,shape:_n,labelText:cn,rx:mr,ry:mr,class:He,style:an.style,id:ge.id,link:ge.link,linkTarget:ge.linkTarget,tooltip:nr.getTooltip(ge.id)||"",domId:nr.lookUpDomId(ge.id),haveCallback:ge.haveCallback,width:ge.type==="group"?500:void 0,dir:ge.dir,type:ge.type,props:ge.props,padding:$t().flowchart.padding}),y.info("setNode",{labelStyle:an.labelStyle,shape:_n,labelText:cn,rx:mr,ry:mr,class:He,style:an.style,id:ge.id,domId:nr.lookUpDomId(ge.id),width:ge.type==="group"?500:void 0,type:ge.type,dir:ge.dir,props:ge.props,padding:$t().flowchart.padding})})})(J,P,e,N,F),function(pt,me){y.info("abc78 edges = ",pt);var ye,re,Ce=0,se={};if(pt.defaultStyle!==void 0){var ve=Qs(pt.defaultStyle);ye=ve.style,re=ve.labelStyle}pt.forEach(function(ge){Ce++;var He="L-"+ge.start+"-"+ge.end;se[He]===void 0?(se[He]=0,y.info("abc78 new entry",He,se[He])):(se[He]++,y.info("abc78 new entry",He,se[He]));var Ge=He+"-"+se[He];y.info("abc78 new link id to be used is",He,Ge,se[He]);var an="LS-"+ge.start,cn="LE-"+ge.end,We={style:"",labelStyle:""};switch(We.minlen=ge.length||1,ge.type==="arrow_open"?We.arrowhead="none":We.arrowhead="normal",We.arrowTypeStart="arrow_open",We.arrowTypeEnd="arrow_open",ge.type){case"double_arrow_cross":We.arrowTypeStart="arrow_cross";case"arrow_cross":We.arrowTypeEnd="arrow_cross";break;case"double_arrow_point":We.arrowTypeStart="arrow_point";case"arrow_point":We.arrowTypeEnd="arrow_point";break;case"double_arrow_circle":We.arrowTypeStart="arrow_circle";case"arrow_circle":We.arrowTypeEnd="arrow_circle"}var lr="",_r="";switch(ge.stroke){case"normal":lr="fill:none;",ye!==void 0&&(lr=ye),re!==void 0&&(_r=re),We.thickness="normal",We.pattern="solid";break;case"dotted":We.thickness="normal",We.pattern="dotted",We.style="fill:none;stroke-width:2px;stroke-dasharray:3;";break;case"thick":We.thickness="thick",We.pattern="solid",We.style="stroke-width: 3.5px;fill:none;"}if(ge.style!==void 0){var qn=Qs(ge.style);lr=qn.style,_r=qn.labelStyle}We.style=We.style+=lr,We.labelStyle=We.labelStyle+=_r,ge.interpolate!==void 0?We.curve=ms(ge.interpolate,fo):pt.defaultInterpolate!==void 0?We.curve=ms(pt.defaultInterpolate,fo):We.curve=ms(G3.curve,fo),ge.text===void 0?ge.style!==void 0&&(We.arrowheadStyle="fill: #333"):(We.arrowheadStyle="fill: #333",We.labelpos="c"),We.labelType="text",We.label=ge.text.replace(Jn.lineBreakRegex,`
`),ge.style===void 0&&(We.style=We.style||"stroke: #333; stroke-width: 1.5px;fill:none;"),We.labelStyle=We.labelStyle.replace("color:","fill:"),We.id=Ge,We.classes="flowchart-link "+an+" "+cn,me.setEdge(ge.start,ge.end,We,Ce)})}(yt,P);var Tt=N.select('[id="'.concat(e,'"]'));Tt.attr("xmlns:xlink","http://www.w3.org/1999/xlink"),Fa(r.yy,Tt,e);var qt=N.select("#"+e+" g");v2(qt,P,["point","circle","cross"],"flowchart",e);var ee=u.diagramPadding,Ot=Tt.node().getBBox(),Xt=Ot.width+2*ee,Ht=Ot.height+2*ee;if(y.debug("new ViewBox 0 0 ".concat(Xt," ").concat(Ht),"translate(".concat(ee-P._label.marginx,", ").concat(ee-P._label.marginy,")")),Ra(Tt,Ht,Xt,u.useMaxWidth),Tt.attr("viewBox","0 0 ".concat(Xt," ").concat(Ht)),Tt.select("g").attr("transform","translate(".concat(ee-P._label.marginx,", ").concat(ee-Ot.y,")")),nr.indexNodes("subGraph"+ft),!u.htmlLabels)for(var Et=F.querySelectorAll('[id="'+e+'"] .edgeLabel .label'),Mt=0;Mt<Et.length;Mt++){var bt=Et[Mt],ut=bt.getBBox(),Nt=F.createElementNS("http://www.w3.org/2000/svg","rect");Nt.setAttribute("rx",0),Nt.setAttribute("ry",0),Nt.setAttribute("width",ut.width),Nt.setAttribute("height",ut.height),bt.insertBefore(Nt,bt.firstChild)}Object.keys(J).forEach(function(pt){var me=J[pt];if(me.link){var ye=Me("#"+e+' [id="'+pt+'"]');if(ye){var re=F.createElementNS("http://www.w3.org/2000/svg","a");re.setAttributeNS("http://www.w3.org/2000/svg","class",me.classes.join(" ")),re.setAttributeNS("http://www.w3.org/2000/svg","href",me.link),re.setAttributeNS("http://www.w3.org/2000/svg","rel","noopener"),x==="sandbox"?re.setAttributeNS("http://www.w3.org/2000/svg","target","_top"):me.linkTarget&&re.setAttributeNS("http://www.w3.org/2000/svg","target",me.linkTarget);var Ce=ye.insert(function(){return re},":first-child"),se=ye.select(".label-container");se&&Ce.append(function(){return se.node()});var ve=ye.select(".label");ve&&Ce.append(function(){return ve.node()})}}})};function M2(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,a=new Array(e);r<e;r++)a[r]=t[r];return a}var N2,Rl,Ho="",a0="",D2="",Fl=[],Pl=[],L2={},B2=[],o0=[],xu="",s0=["active","done","crit","milestone"],N1=[],sa=!1,Ya=!1,D1=0,Z3=function(t,e,r,a){return!(a.indexOf(t.format(e.trim()))>=0)&&(t.isoWeekday()>=6&&r.indexOf("weekends")>=0||r.indexOf(t.format("dddd").toLowerCase())>=0||r.indexOf(t.format(e.trim()))>=0)},O2=function(t,e,r,a){if(r.length&&!t.manualEndTime){var c=f()(t.startTime,e,!0);c.add(1,"d");var u=f()(t.endTime,e,!0),h=A_(c,u,e,r,a);t.endTime=u.toDate(),t.renderEndTime=h}},A_=function(t,e,r,a,c){for(var u=!1,h=null;t<=e;)u||(h=e.toDate()),(u=Z3(t,r,a,c))&&e.add(1,"d"),t.add(1,"d");return h},I2=function(t,e,r){r=r.trim();var a=/^after\s+([\d\w- ]+)/.exec(r.trim());if(a!==null){var c=null;if(a[1].split(" ").forEach(function(g){var x=wu(g);x!==void 0&&(c?x.endTime>c.endTime&&(c=x):c=x)}),c)return c.endTime;var u=new Date;return u.setHours(0,0,0,0),u}var h=f()(r,e.trim(),!0);return h.isValid()?h.toDate():(y.debug("Invalid date:"+r),y.debug("With date format:"+e.trim()),new Date)},ec=function(t,e){if(t!==null)switch(t[2]){case"s":e.add(t[1],"seconds");break;case"m":e.add(t[1],"minutes");break;case"h":e.add(t[1],"hours");break;case"d":e.add(t[1],"days");break;case"w":e.add(t[1],"weeks")}return e.toDate()},L1=function(t,e,r,a){a=a||!1,r=r.trim();var c=f()(r,e.trim(),!0);return c.isValid()?(a&&c.add(1,"d"),c.toDate()):ec(/^([\d]+)([wdhms])/.exec(r.trim()),f()(t))},B1=0,jl=function(t){return t===void 0?"task"+(B1+=1):t},xi=[],Q3={},wu=function(t){var e=Q3[t];return xi[e]},K3=function(){for(var t=function(a){var c=xi[a],u="";switch(xi[a].raw.startTime.type){case"prevTaskEnd":var h=wu(c.prevTaskId);c.startTime=h.endTime;break;case"getStartDate":(u=I2(0,Ho,xi[a].raw.startTime.startData))&&(xi[a].startTime=u)}return xi[a].startTime&&(xi[a].endTime=L1(xi[a].startTime,Ho,xi[a].raw.endTime.data,sa),xi[a].endTime&&(xi[a].processed=!0,xi[a].manualEndTime=f()(xi[a].raw.endTime.data,"YYYY-MM-DD",!0).isValid(),O2(xi[a],Ho,Pl,Fl))),xi[a].processed},e=!0,r=0;r<xi.length;r++)t(r),e=e&&xi[r].processed;return e},R2=function(t,e){t.split(",").forEach(function(r){var a=wu(r);a!==void 0&&a.classes.push(e)})},J3=function(t,e){N1.push(function(){var r=document.querySelector('[id="'.concat(t,'"]'));r!==null&&r.addEventListener("click",function(){e()})}),N1.push(function(){var r=document.querySelector('[id="'.concat(t,'-text"]'));r!==null&&r.addEventListener("click",function(){e()})})};const nc={parseDirective:function(t,e,r){Gi.parseDirective(this,t,e,r)},getConfig:function(){return $t().gantt},clear:function(){B2=[],o0=[],xu="",N1=[],B1=0,N2=void 0,Rl=void 0,xi=[],Ho="",a0="",D2="",Fl=[],Pl=[],sa=!1,Ya=!1,D1=0,L2={},vs()},setDateFormat:function(t){Ho=t},getDateFormat:function(){return Ho},enableInclusiveEndDates:function(){sa=!0},endDatesAreInclusive:function(){return sa},enableTopAxis:function(){Ya=!0},topAxisEnabled:function(){return Ya},setAxisFormat:function(t){a0=t},getAxisFormat:function(){return a0},setTodayMarker:function(t){D2=t},getTodayMarker:function(){return D2},setTitle:mo,getTitle:Uo,setAccDescription:bs,getAccDescription:_s,addSection:function(t){xu=t,B2.push(t)},getSections:function(){return B2},getTasks:function(){for(var t=K3(),e=0;!t&&e<10;)t=K3(),e++;return o0=xi},addTask:function(t,e){var r={section:xu,type:xu,processed:!1,manualEndTime:!1,renderEndTime:null,raw:{data:e},task:t,classes:[]},a=function(u,h){var g=(h.substr(0,1)===":"?h.substr(1,h.length):h).split(","),x={};c0(g,x,s0);for(var _=0;_<g.length;_++)g[_]=g[_].trim();switch(g.length){case 1:x.id=jl(),x.startTime={type:"prevTaskEnd",id:u},x.endTime={data:g[0]};break;case 2:x.id=jl(),x.startTime={type:"getStartDate",startData:g[0]},x.endTime={data:g[1]};break;case 3:x.id=jl(g[0]),x.startTime={type:"getStartDate",startData:g[1]},x.endTime={data:g[2]}}return x}(Rl,e);r.raw.startTime=a.startTime,r.raw.endTime=a.endTime,r.id=a.id,r.prevTaskId=Rl,r.active=a.active,r.done=a.done,r.crit=a.crit,r.milestone=a.milestone,r.order=D1,D1++;var c=xi.push(r);Rl=r.id,Q3[r.id]=c-1},findTaskById:wu,addTaskOrg:function(t,e){var r={section:xu,type:xu,description:t,task:t,classes:[]},a=function(c,u){var h=(u.substr(0,1)===":"?u.substr(1,u.length):u).split(","),g={};c0(h,g,s0);for(var x=0;x<h.length;x++)h[x]=h[x].trim();var _="";switch(h.length){case 1:g.id=jl(),g.startTime=c.endTime,_=h[0];break;case 2:g.id=jl(),g.startTime=I2(0,Ho,h[0]),_=h[1];break;case 3:g.id=jl(h[0]),g.startTime=I2(0,Ho,h[1]),_=h[2]}return _&&(g.endTime=L1(g.startTime,Ho,_,sa),g.manualEndTime=f()(_,"YYYY-MM-DD",!0).isValid(),O2(g,Ho,Pl,Fl)),g}(N2,e);r.startTime=a.startTime,r.endTime=a.endTime,r.id=a.id,r.active=a.active,r.done=a.done,r.crit=a.crit,r.milestone=a.milestone,N2=r,o0.push(r)},setIncludes:function(t){Fl=t.toLowerCase().split(/[\s,]+/)},getIncludes:function(){return Fl},setExcludes:function(t){Pl=t.toLowerCase().split(/[\s,]+/)},getExcludes:function(){return Pl},setClickEvent:function(t,e,r){t.split(",").forEach(function(a){(function(c,u,h){if($t().securityLevel==="loose"&&u!==void 0){var g=[];if(typeof h=="string"){g=h.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(var x=0;x<g.length;x++){var _=g[x].trim();_.charAt(0)==='"'&&_.charAt(_.length-1)==='"'&&(_=_.substr(1,_.length-2)),g[x]=_}}g.length===0&&g.push(c),wu(c)!==void 0&&J3(c,function(){var N;tr.runFunc.apply(tr,[u].concat(function(F){if(Array.isArray(F))return M2(F)}(N=g)||function(F){if(typeof Symbol!="undefined"&&F[Symbol.iterator]!=null||F["@@iterator"]!=null)return Array.from(F)}(N)||function(F,P){if(F){if(typeof F=="string")return M2(F,P);var H=Object.prototype.toString.call(F).slice(8,-1);return H==="Object"&&F.constructor&&(H=F.constructor.name),H==="Map"||H==="Set"?Array.from(F):H==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(H)?M2(F,P):void 0}}(N)||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.`)}()))})}})(a,e,r)}),R2(t,"clickable")},setLink:function(t,e){var r=e;$t().securityLevel!=="loose"&&(r=(0,pu.N)(e)),t.split(",").forEach(function(a){wu(a)!==void 0&&(J3(a,function(){window.open(r,"_self")}),L2[a]=r)}),R2(t,"clickable")},getLinks:function(){return L2},bindFunctions:function(t){N1.forEach(function(e){e(t)})},durationToDate:ec,isInvalidDate:Z3};function c0(t,e,r){for(var a=!0;a;)a=!1,r.forEach(function(c){var u=new RegExp("^\\s*"+c+"\\s*$");t[0].match(u)&&(e[c]=!0,t.shift(1),a=!0)})}var Pc,ka=p(9959),M_=p.n(ka);ka.parser.yy=nc;const F2=function(t,e){var r=$t().gantt;ka.parser.yy.clear(),ka.parser.parse(t);var a,c=$t().securityLevel;c==="sandbox"&&(a=Me("#i"+e));var u=Me(c==="sandbox"?a.nodes()[0].contentDocument.body:"body"),h=c==="sandbox"?a.nodes()[0].contentDocument:document,g=h.getElementById(e);(Pc=g.parentElement.offsetWidth)===void 0&&(Pc=1200),r.useWidth!==void 0&&(Pc=r.useWidth);var x=ka.parser.yy.getTasks(),_=x.length*(r.barHeight+r.barGap)+2*r.topPadding;g.setAttribute("viewBox","0 0 "+Pc+" "+_);for(var N=u.select('[id="'.concat(e,'"]')),F=function(){return Ds.apply(Xy(Cy,Hb,Is,sp,mf,qu,yf,lh,Uu,Ey).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}().domain([R(x,function(J){return J.startTime}),M(x,function(J){return J.endTime})]).rangeRound([0,Pc-r.leftPadding-r.rightPadding]),P=[],H=0;H<x.length;H++)P.push(x[H].type);var ct=P;P=function(J){for(var yt={},ft=[],kt=0,Tt=J.length;kt<Tt;++kt)Object.prototype.hasOwnProperty.call(yt,J[kt])||(yt[J[kt]]=!0,ft.push(J[kt]));return ft}(P),x.sort(function(J,yt){var ft=J.startTime,kt=yt.startTime,Tt=0;return ft>kt?Tt=1:ft<kt&&(Tt=-1),Tt}),function(J,yt,ft){var kt=r.barHeight,Tt=kt+r.barGap,qt=r.topPadding,ee=r.leftPadding;by().domain([0,P.length]).range(["#00B9FA","#F95002"]).interpolate(Bb),function(Ot,Xt,Ht,Et,Mt,bt,ut,Nt){var pt=bt.reduce(function(ve,ge){var He=ge.startTime;return ve?Math.min(ve,He):He},0),me=bt.reduce(function(ve,ge){var He=ge.endTime;return ve?Math.max(ve,He):He},0),ye=ka.parser.yy.getDateFormat();if(pt&&me){for(var re=[],Ce=null,se=f()(pt);se.valueOf()<=me;)ka.parser.yy.isInvalidDate(se,ye,ut,Nt)?Ce?Ce.end=se.clone():Ce={start:se.clone(),end:se.clone()}:Ce&&(re.push(Ce),Ce=null),se.add(1,"d");N.append("g").selectAll("rect").data(re).enter().append("rect").attr("id",function(ve){return"exclude-"+ve.start.format("YYYY-MM-DD")}).attr("x",function(ve){return F(ve.start)+Ht}).attr("y",r.gridLineStartPadding).attr("width",function(ve){var ge=ve.end.clone().add(1,"day");return F(ge)-F(ve.start)}).attr("height",Mt-Xt-r.gridLineStartPadding).attr("transform-origin",function(ve,ge){return(F(ve.start)+Ht+.5*(F(ve.end)-F(ve.start))).toString()+"px "+(ge*Ot+.5*Mt).toString()+"px"}).attr("class","exclude-range")}}(Tt,qt,ee,0,ft,J,ka.parser.yy.getExcludes(),ka.parser.yy.getIncludes()),function(Ot,Xt,Ht,Et){var Mt,bt=(Mt=F,Lt(3,Mt)).tickSize(-Et+Xt+r.gridLineStartPadding).tickFormat(no(ka.parser.yy.getAxisFormat()||r.axisFormat||"%Y-%m-%d"));if(N.append("g").attr("class","grid").attr("transform","translate("+Ot+", "+(Et-50)+")").call(bt).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10).attr("dy","1em"),nc.topAxisEnabled()||r.topAxis){var ut=function(Nt){return Lt(1,Nt)}(F).tickSize(-Et+Xt+r.gridLineStartPadding).tickFormat(no(ka.parser.yy.getAxisFormat()||r.axisFormat||"%Y-%m-%d"));N.append("g").attr("class","grid").attr("transform","translate("+Ot+", "+Xt+")").call(ut).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10)}}(ee,qt,0,ft),function(Ot,Xt,Ht,Et,Mt,bt,ut){N.append("g").selectAll("rect").data(Ot).enter().append("rect").attr("x",0).attr("y",function(re,Ce){return re.order*Xt+Ht-2}).attr("width",function(){return ut-r.rightPadding/2}).attr("height",Xt).attr("class",function(re){for(var Ce=0;Ce<P.length;Ce++)if(re.type===P[Ce])return"section section"+Ce%r.numberSectionStyles;return"section section0"});var Nt=N.append("g").selectAll("rect").data(Ot).enter(),pt=nc.getLinks();if(Nt.append("rect").attr("id",function(re){return re.id}).attr("rx",3).attr("ry",3).attr("x",function(re){return re.milestone?F(re.startTime)+Et+.5*(F(re.endTime)-F(re.startTime))-.5*Mt:F(re.startTime)+Et}).attr("y",function(re,Ce){return re.order*Xt+Ht}).attr("width",function(re){return re.milestone?Mt:F(re.renderEndTime||re.endTime)-F(re.startTime)}).attr("height",Mt).attr("transform-origin",function(re,Ce){return Ce=re.order,(F(re.startTime)+Et+.5*(F(re.endTime)-F(re.startTime))).toString()+"px "+(Ce*Xt+Ht+.5*Mt).toString()+"px"}).attr("class",function(re){var Ce="";re.classes.length>0&&(Ce=re.classes.join(" "));for(var se=0,ve=0;ve<P.length;ve++)re.type===P[ve]&&(se=ve%r.numberSectionStyles);var ge="";return re.active?re.crit?ge+=" activeCrit":ge=" active":re.done?ge=re.crit?" doneCrit":" done":re.crit&&(ge+=" crit"),ge.length===0&&(ge=" task"),re.milestone&&(ge=" milestone "+ge),"task"+(ge+=se)+" "+Ce}),Nt.append("text").attr("id",function(re){return re.id+"-text"}).text(function(re){return re.task}).attr("font-size",r.fontSize).attr("x",function(re){var Ce=F(re.startTime),se=F(re.renderEndTime||re.endTime);re.milestone&&(Ce+=.5*(F(re.endTime)-F(re.startTime))-.5*Mt),re.milestone&&(se=Ce+Mt);var ve=this.getBBox().width;return ve>se-Ce?se+ve+1.5*r.leftPadding>ut?Ce+Et-5:se+Et+5:(se-Ce)/2+Ce+Et}).attr("y",function(re,Ce){return re.order*Xt+r.barHeight/2+(r.fontSize/2-2)+Ht}).attr("text-height",Mt).attr("class",function(re){var Ce=F(re.startTime),se=F(re.endTime);re.milestone&&(se=Ce+Mt);var ve=this.getBBox().width,ge="";re.classes.length>0&&(ge=re.classes.join(" "));for(var He=0,Ge=0;Ge<P.length;Ge++)re.type===P[Ge]&&(He=Ge%r.numberSectionStyles);var an="";return re.active&&(an=re.crit?"activeCritText"+He:"activeText"+He),re.done?an=re.crit?an+" doneCritText"+He:an+" doneText"+He:re.crit&&(an=an+" critText"+He),re.milestone&&(an+=" milestoneText"),ve>se-Ce?se+ve+1.5*r.leftPadding>ut?ge+" taskTextOutsideLeft taskTextOutside"+He+" "+an:ge+" taskTextOutsideRight taskTextOutside"+He+" "+an+" width-"+ve:ge+" taskText taskText"+He+" "+an+" width-"+ve}),$t().securityLevel==="sandbox"){var me;me=Me("#i"+e),Me(me.nodes()[0].contentDocument.body);var ye=me.nodes()[0].contentDocument;Nt.filter(function(re){return pt[re.id]!==void 0}).each(function(re){var Ce=ye.querySelector("#"+re.id),se=ye.querySelector("#"+re.id+"-text"),ve=Ce.parentNode,ge=ye.createElement("a");ge.setAttribute("xlink:href",pt[re.id]),ge.setAttribute("target","_top"),ve.appendChild(ge),ge.appendChild(Ce),ge.appendChild(se)})}}(J,Tt,qt,ee,kt,0,yt),function(Ot,Xt){for(var Ht=[],Et=0,Mt=0;Mt<P.length;Mt++)Ht[Mt]=[P[Mt],(bt=P[Mt],ut=ct,function(Nt){for(var pt=Nt.length,me={};pt;)me[Nt[--pt]]=(me[Nt[pt]]||0)+1;return me}(ut)[bt]||0)];var bt,ut;N.append("g").selectAll("text").data(Ht).enter().append(function(Nt){var pt=Nt[0].split(Jn.lineBreakRegex),me=-(pt.length-1)/2,ye=h.createElementNS("http://www.w3.org/2000/svg","text");ye.setAttribute("dy",me+"em");for(var re=0;re<pt.length;re++){var Ce=h.createElementNS("http://www.w3.org/2000/svg","tspan");Ce.setAttribute("alignment-baseline","central"),Ce.setAttribute("x","10"),re>0&&Ce.setAttribute("dy","1em"),Ce.textContent=pt[re],ye.appendChild(Ce)}return ye}).attr("x",10).attr("y",function(Nt,pt){if(!(pt>0))return Nt[1]*Ot/2+Xt;for(var me=0;me<pt;me++)return Et+=Ht[pt-1][1],Nt[1]*Ot/2+Et*Ot+Xt}).attr("font-size",r.sectionFontSize).attr("font-size",r.sectionFontSize).attr("class",function(Nt){for(var pt=0;pt<P.length;pt++)if(Nt[0]===P[pt])return"sectionTitle sectionTitle"+pt%r.numberSectionStyles;return"sectionTitle"})}(Tt,qt),function(Ot,Xt,Ht,Et){var Mt=nc.getTodayMarker();if(Mt!=="off"){var bt=N.append("g").attr("class","today"),ut=new Date,Nt=bt.append("line");Nt.attr("x1",F(ut)+Ot).attr("x2",F(ut)+Ot).attr("y1",r.titleTopMargin).attr("y2",Et-r.titleTopMargin).attr("class","today"),Mt!==""&&Nt.attr("style",Mt.replace(/,/g,";"))}}(ee,0,0,ft)}(x,Pc,_),Ra(N,_,Pc,r.useMaxWidth),N.append("text").text(ka.parser.yy.getTitle()).attr("x",Pc/2).attr("y",r.titleTopMargin).attr("class","titleText"),Fa(ka.parser.yy,N,e)};function tb(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(c){return Object.getOwnPropertyDescriptor(t,c).enumerable})),r.push.apply(r,a)}return r}function u0(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?tb(Object(r),!0).forEach(function(a){eb(t,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):tb(Object(r)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(r,a))})}return t}function eb(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var l0=$t().gitGraph.mainBranchName,nb=$t().gitGraph.mainBranchOrder,ao={},oo=null,h0={};h0[l0]={name:l0,order:nb};var ea={};ea[l0]=oo;var Wo=l0,P2="LR",Yl=0;function j2(){return u3({length:7})}var f0={},O1=function(t){if(t=Jn.sanitizeText(t,$t()),ea[t]===void 0){var e=new Error('Trying to checkout branch which is not yet created. (Help try using "branch '+t+'")');throw e.hash={text:"checkout "+t,token:"checkout "+t,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:['"branch '+t+'"']},e}var r=ea[Wo=t];oo=ao[r]};function Y2(t,e,r){var a=t.indexOf(e);a===-1?t.push(r):t.splice(a,1,r)}function z2(t){var e=t.reduce(function(N,F){return N.seq>F.seq?N:F},t[0]),r="";t.forEach(function(N){r+=N===e?" *":" |"});var a,c,u,h=[r,e.id,e.seq];for(var g in ea)ea[g]===e.id&&h.push(g);if(y.debug(h.join(" ")),e.parents&&e.parents.length==2){var x=ao[e.parents[0]];Y2(t,e,x),t.push(ao[e.parents[1]])}else{if(e.parents.length==0)return;var _=ao[e.parents];Y2(t,e,_)}a=t,c=function(N){return N.id},u=Object.create(null),z2(t=a.reduce(function(N,F){var P=c(F);return u[P]||(u[P]=!0,N.push(F)),N},[]))}var rb=function(){var t=Object.keys(ao).map(function(e){return ao[e]});return t.forEach(function(e){y.debug(e.id)}),t.sort(function(e,r){return e.seq-r.seq}),t},U2={NORMAL:0,REVERSE:1,HIGHLIGHT:2,MERGE:3};const ku={parseDirective:function(t,e,r){Gi.parseDirective(this,t,e,r)},getConfig:function(){return $t().gitGraph},setDirection:function(t){P2=t},setOptions:function(t){y.debug("options str",t),t=(t=t&&t.trim())||"{}";try{f0=JSON.parse(t)}catch(e){y.error("error while parsing gitGraph options",e.message)}},getOptions:function(){return f0},commit:function(t,e,r,a){y.debug("Entering commit:",t,e,r,a),e=Jn.sanitizeText(e,$t()),t=Jn.sanitizeText(t,$t()),a=Jn.sanitizeText(a,$t());var c={id:e||Yl+"-"+j2(),message:t,seq:Yl++,type:r||U2.NORMAL,tag:a||"",parents:oo==null?[]:[oo.id],branch:Wo};oo=c,ao[c.id]=c,ea[Wo]=c.id,y.debug("in pushCommit "+c.id)},branch:function(t,e){if(t=Jn.sanitizeText(t,$t()),ea[t]!==void 0){var r=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 '+t+'")');throw r.hash={text:"branch "+t,token:"branch "+t,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:['"checkout '+t+'"']},r}ea[t]=oo!=null?oo.id:null,h0[t]={name:t,order:e?parseInt(e,10):null},O1(t),y.debug("in createBranch")},merge:function(t,e){t=Jn.sanitizeText(t,$t());var r=ao[ea[Wo]],a=ao[ea[t]];if(Wo===t){var c=new Error('Incorrect usage of "merge". Cannot merge a branch to itself');throw c.hash={text:"merge "+t,token:"merge "+t,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["branch abc"]},c}if(r===void 0||!r){var u=new Error('Incorrect usage of "merge". Current branch ('+Wo+")has no commits");throw u.hash={text:"merge "+t,token:"merge "+t,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["commit"]},u}if(ea[t]===void 0){var h=new Error('Incorrect usage of "merge". Branch to be merged ('+t+") does not exist");throw h.hash={text:"merge "+t,token:"merge "+t,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["branch "+t]},h}if(a===void 0||!a){var g=new Error('Incorrect usage of "merge". Branch to be merged ('+t+") has no commits");throw g.hash={text:"merge "+t,token:"merge "+t,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:['"commit"']},g}if(r===a){var x=new Error('Incorrect usage of "merge". Both branches have same head');throw x.hash={text:"merge "+t,token:"merge "+t,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["branch abc"]},x}var _={id:Yl+"-"+j2(),message:"merged branch "+t+" into "+Wo,seq:Yl++,parents:[oo==null?null:oo.id,ea[t]],branch:Wo,type:U2.MERGE,tag:e||""};oo=_,ao[_.id]=_,ea[Wo]=_.id,y.debug(ea),y.debug("in mergeBranch")},checkout:O1,prettyPrint:function(){y.debug(ao),z2([rb()[0]])},clear:function(){ao={},oo=null;var t=$t().gitGraph.mainBranchName,e=$t().gitGraph.mainBranchOrder;(ea={})[t]=null,(h0={})[t]={name:t,order:e},Wo=t,Yl=0,vs()},getBranchesAsObjArray:function(){return Object.values(h0).map(function(t,e){return t.order!==null?t:u0(u0({},t),{},{order:parseFloat("0.".concat(e),10)})}).sort(function(t,e){return t.order-e.order}).map(function(t){return{name:t.name}})},getBranches:function(){return ea},getCommits:function(){return ao},getCommitsArray:rb,getCurrentBranch:function(){return Wo},getDirection:function(){return P2},getHead:function(){return oo},setTitle:mo,getTitle:Uo,getAccDescription:_s,setAccDescription:bs,commitType:U2};var ib=p(2553),ab=p.n(ib),jc={},za={},zl={},I1=[],rc=0,Tu=function(t,e,r){var a=$t().gitGraph,c=t.append("g").attr("class","commit-bullets"),u=t.append("g").attr("class","commit-labels"),h=0;Object.keys(e).sort(function(g,x){return e[g].seq-e[x].seq}).forEach(function(g,x){var _=e[g],N=za[_.branch].pos,F=h+10;if(r){var P;switch(_.type){case 0:default:P="commit-normal";break;case 1:P="commit-reverse";break;case 2:P="commit-highlight";break;case 3:P="commit-merge"}if(_.type===2){var H=c.append("rect");H.attr("x",F-10),H.attr("y",N-10),H.attr("height",20),H.attr("width",20),H.attr("class","commit "+_.id+" commit-highlight"+za[_.branch].index+" "+P+"-outer"),c.append("rect").attr("x",F-6).attr("y",N-6).attr("height",12).attr("width",12).attr("class","commit "+_.id+" commit"+za[_.branch].index+" "+P+"-inner")}else{var ct=c.append("circle");if(ct.attr("cx",F),ct.attr("cy",N),ct.attr("r",_.type===3?9:10),ct.attr("class","commit "+_.id+" commit"+za[_.branch].index),_.type===3){var J=c.append("circle");J.attr("cx",F),J.attr("cy",N),J.attr("r",6),J.attr("class","commit "+P+" "+_.id+" commit"+za[_.branch].index)}_.type===1&&c.append("path").attr("d","M ".concat(F-5,",").concat(N-5,"L").concat(F+5,",").concat(N+5,"M").concat(F-5,",").concat(N+5,"L").concat(F+5,",").concat(N-5)).attr("class","commit "+P+" "+_.id+" commit"+za[_.branch].index)}}if(zl[_.id]={x:h+10,y:N},r){if(_.type!==3&&a.showCommitLabel){var yt=u.insert("rect").attr("class","commit-label-bkg"),ft=u.append("text").attr("x",h).attr("y",N+25).attr("class","commit-label").text(_.id),kt=ft.node().getBBox();yt.attr("x",h+10-kt.width/2-2).attr("y",N+13.5).attr("width",kt.width+4).attr("height",kt.height+4),ft.attr("x",h+10-kt.width/2)}if(_.tag){var Tt=u.insert("polygon"),qt=u.append("circle"),ee=u.append("text").attr("y",N-16).attr("class","tag-label").text(_.tag),Ot=ee.node().getBBox();ee.attr("x",h+10-Ot.width/2);var Xt=Ot.height/2,Ht=N-19.2;Tt.attr("class","tag-label-bkg").attr("points",`
`.concat(h-Ot.width/2-2,",").concat(Ht+2,`
`).concat(h-Ot.width/2-2,",").concat(Ht-2,`
`).concat(h+10-Ot.width/2-4,",").concat(Ht-Xt-2,`
`).concat(h+10+Ot.width/2+4,",").concat(Ht-Xt-2,`
`).concat(h+10+Ot.width/2+4,",").concat(Ht+Xt+2,`
`).concat(h+10-Ot.width/2-4,",").concat(Ht+Xt+2)),qt.attr("cx",h-Ot.width/2+2).attr("cy",Ht).attr("r",1.5).attr("class","tag-hole")}}(h+=50)>rc&&(rc=h)})},ob=function t(e,r,a){var c=a||0,u=e+Math.abs(e-r)/2;if(c>5)return u;for(var h=!0,g=0;g<I1.length;g++)Math.abs(I1[g]-u)<10&&(h=!1);return h?(I1.push(u),u):t(e,r-Math.abs(e-r)/5,c)};const N_=function(t,e,r){za={},zl={},jc={},rc=0,I1=[];var a=$t(),c=$t().gitGraph,u=ab().parser;u.yy=ku,u.yy.clear(),y.debug("in gitgraph renderer",t+`
`,"id:",e,r),u.parse(t+`
`),ku.getDirection(),jc=ku.getCommits();var h=ku.getBranchesAsObjArray(),g=0;h.forEach(function(ct,J){za[ct.name]={pos:g,index:J},g+=50});var x=Me('[id="'.concat(e,'"]'));Fa(u.yy,x,e),Tu(x,jc,!1),c.showBranches&&function(ct,J){$t().gitGraph;var yt=ct.append("g");J.forEach(function(ft,kt){var Tt=za[ft.name].pos,qt=yt.append("line");qt.attr("x1",0),qt.attr("y1",Tt),qt.attr("x2",rc),qt.attr("y2",Tt),qt.attr("class","branch branch"+kt),I1.push(Tt);var ee=function(Et){var Mt=document.createElementNS("http://www.w3.org/2000/svg","text"),bt=[];bt=typeof Et=="string"?Et.split(/\\n|\n|<br\s*\/?>/gi):Array.isArray(Et)?Et:[];for(var ut=0;ut<bt.length;ut++){var Nt=document.createElementNS("http://www.w3.org/2000/svg","tspan");Nt.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),Nt.setAttribute("dy","1em"),Nt.setAttribute("x","0"),Nt.setAttribute("class","row"),Nt.textContent=bt[ut].trim(),Mt.appendChild(Nt)}return Mt}(ft.name),Ot=yt.insert("rect"),Xt=yt.insert("g").attr("class","branchLabel").insert("g").attr("class","label branch-label"+kt);Xt.node().appendChild(ee);var Ht=ee.getBBox();Ot.attr("class","branchLabelBkg label"+kt).attr("rx",4).attr("ry",4).attr("x",-Ht.width-4).attr("y",-Ht.height/2+8).attr("width",Ht.width+18).attr("height",Ht.height+4),Xt.attr("transform","translate("+(-Ht.width-14)+", "+(Tt-Ht.height/2-1)+")"),Ot.attr("transform","translate(-19, "+(Tt-Ht.height/2)+")")})}(x,h),function(ct,J){var yt=ct.append("g").attr("class","commit-arrows");Object.keys(J).forEach(function(ft,kt){var Tt=J[ft];Tt.parents&&Tt.parents.length>0&&Tt.parents.forEach(function(qt){(function(ee,Ot,Xt,Ht){var Et=$t(),Mt=zl[Ot.id],bt=zl[Xt.id],ut=function(ve,ge,He){return zl[ge.id],zl[ve.id],Object.keys(He).filter(function(Ge){return He[Ge].branch===ge.branch&&He[Ge].seq>ve.seq&&He[Ge].seq<ge.seq}).length>0}(Ot,Xt,Ht);Et.arrowMarkerAbsolute&&(window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search).replace(/\(/g,"\\(").replace(/\)/g,"\\)");var Nt,pt="",me="",ye=0,re=0,Ce=za[Xt.branch].index;if(ut){pt="A 10 10, 0, 0, 0,",me="A 10 10, 0, 0, 1,",ye=10,re=10,Ce=za[Xt.branch].index;var se=Mt.y<bt.y?ob(Mt.y,bt.y):ob(bt.y,Mt.y);Nt=Mt.y<bt.y?"M ".concat(Mt.x," ").concat(Mt.y," L ").concat(Mt.x," ").concat(se-ye," ").concat(pt," ").concat(Mt.x+re," ").concat(se," L ").concat(bt.x-ye," ").concat(se," ").concat(me," ").concat(bt.x," ").concat(se+re," L ").concat(bt.x," ").concat(bt.y):"M ".concat(Mt.x," ").concat(Mt.y," L ").concat(Mt.x," ").concat(se+ye," ").concat(me," ").concat(Mt.x+re," ").concat(se," L ").concat(bt.x-ye," ").concat(se," ").concat(pt," ").concat(bt.x," ").concat(se-re," L ").concat(bt.x," ").concat(bt.y)}else Mt.y<bt.y&&(pt="A 20 20, 0, 0, 0,",ye=20,re=20,Ce=za[Xt.branch].index,Nt="M ".concat(Mt.x," ").concat(Mt.y," L ").concat(Mt.x," ").concat(bt.y-ye," ").concat(pt," ").concat(Mt.x+re," ").concat(bt.y," L ").concat(bt.x," ").concat(bt.y)),Mt.y>bt.y&&(pt="A 20 20, 0, 0, 0,",ye=20,re=20,Ce=za[Ot.branch].index,Nt="M ".concat(Mt.x," ").concat(Mt.y," L ").concat(bt.x-ye," ").concat(Mt.y," ").concat(pt," ").concat(bt.x," ").concat(Mt.y-re," L ").concat(bt.x," ").concat(bt.y)),Mt.y===bt.y&&(Ce=za[Ot.branch].index,Nt="M ".concat(Mt.x," ").concat(Mt.y," L ").concat(Mt.x," ").concat(bt.y-ye," ").concat(pt," ").concat(Mt.x+re," ").concat(bt.y," L ").concat(bt.x," ").concat(bt.y));ee.append("path").attr("d",Nt).attr("class","arrow arrow"+Ce)})(yt,J[qt],Tt,J)})})}(x,jc),Tu(x,jc,!0);var _=c.diagramPadding,N=x.node().getBBox(),F=N.width+2*_,P=N.height+2*_;Ra(x,P,F,a.useMaxWidth);var H="".concat(N.x-_," ").concat(N.y-_," ").concat(F," ").concat(P);x.attr("viewBox",H)};var sb="",cb=!1;const ub={setMessage:function(t){y.debug("Setting message to: "+t),sb=t},getMessage:function(){return sb},setInfo:function(t){cb=t},getInfo:function(){return cb}};var D_=p(6765),q2=p.n(D_),L_={};const $2=function(t){Object.keys(t).forEach(function(e){L_[e]=t[e]})};var lb=p(7062),hb=p.n(lb),d0={},H2="",p0=!1;const W2={parseDirective:function(t,e,r){Gi.parseDirective(this,t,e,r)},getConfig:function(){return $t().pie},addSection:function(t,e){t=Jn.sanitizeText(t,$t()),d0[t]===void 0&&(d0[t]=e,y.debug("Added new section :",t))},getSections:function(){return d0},cleanupValue:function(t){return t.substring(0,1)===":"&&(t=t.substring(1).trim()),Number(t.trim())},clear:function(){d0={},H2="",p0=!1,vs()},setTitle:mo,getTitle:Uo,setPieTitle:function(t){var e=Jn.sanitizeText(t,$t());H2=e},getPieTitle:function(){return H2},setShowData:function(t){p0=t},getShowData:function(){return p0},getAccDescription:_s,setAccDescription:bs};var Yc,ic=$t();const B_=function(t,e){try{ic=$t();var r=hb().parser;r.yy=W2,y.debug(`Rendering info diagram
`+t);var a,c=$t().securityLevel;c==="sandbox"&&(a=Me("#i"+e));var u=Me(c==="sandbox"?a.nodes()[0].contentDocument.body:"body"),h=c==="sandbox"?a.nodes()[0].contentDocument:document;r.yy.clear(),r.parse(t),y.debug("Parsed info diagram");var g=h.getElementById(e);(Yc=g.parentElement.offsetWidth)===void 0&&(Yc=1200),ic.useWidth!==void 0&&(Yc=ic.useWidth),ic.pie.useWidth!==void 0&&(Yc=ic.pie.useWidth);var x=u.select("#"+e);Ra(x,450,Yc,ic.pie.useMaxWidth),Fa(r.yy,x,e),g.setAttribute("viewBox","0 0 "+Yc+" 450");var _=Math.min(Yc,450)/2-40,N=x.append("g").attr("transform","translate("+Yc/2+",225)"),F=W2.getSections(),P=0;Object.keys(F).forEach(function(qt){P+=F[qt]});var H=ic.themeVariables,ct=[H.pie1,H.pie2,H.pie3,H.pie4,H.pie5,H.pie6,H.pie7,H.pie8,H.pie9,H.pie10,H.pie11,H.pie12],J=hc().range(ct),yt=function(){var qt=Ju,ee=Lf,Ot=null,Xt=kr(0),Ht=kr(wh),Et=kr(0);function Mt(bt){var ut,Nt,pt,me,ye,re=(bt=gm(bt)).length,Ce=0,se=new Array(re),ve=new Array(re),ge=+Xt.apply(this,arguments),He=Math.min(wh,Math.max(-wh,Ht.apply(this,arguments)-ge)),Ge=Math.min(Math.abs(He)/re,Et.apply(this,arguments)),an=Ge*(He<0?-1:1);for(ut=0;ut<re;++ut)(ye=ve[se[ut]=ut]=+qt(bt[ut],ut,bt))>0&&(Ce+=ye);for(ee!=null?se.sort(function(cn,We){return ee(ve[cn],ve[We])}):Ot!=null&&se.sort(function(cn,We){return Ot(bt[cn],bt[We])}),ut=0,pt=Ce?(He-re*an)/Ce:0;ut<re;++ut,ge=me)Nt=se[ut],me=ge+((ye=ve[Nt])>0?ye*pt:0)+an,ve[Nt]={data:bt[Nt],index:ut,value:ye,startAngle:ge,endAngle:me,padAngle:Ge};return ve}return Mt.value=function(bt){return arguments.length?(qt=typeof bt=="function"?bt:kr(+bt),Mt):qt},Mt.sortValues=function(bt){return arguments.length?(ee=bt,Ot=null,Mt):ee},Mt.sort=function(bt){return arguments.length?(Ot=bt,ee=null,Mt):Ot},Mt.startAngle=function(bt){return arguments.length?(Xt=typeof bt=="function"?bt:kr(+bt),Mt):Xt},Mt.endAngle=function(bt){return arguments.length?(Ht=typeof bt=="function"?bt:kr(+bt),Mt):Ht},Mt.padAngle=function(bt){return arguments.length?(Et=typeof bt=="function"?bt:kr(+bt),Mt):Et},Mt}().value(function(qt){return qt[1]}),ft=yt(Object.entries(F)),kt=Np().innerRadius(0).outerRadius(_);N.selectAll("mySlices").data(ft).enter().append("path").attr("d",kt).attr("fill",function(qt){return J(qt.data[0])}).attr("class","pieCircle"),N.selectAll("mySlices").data(ft).enter().append("text").text(function(qt){return(qt.data[1]/P*100).toFixed(0)+"%"}).attr("transform",function(qt){return"translate("+kt.centroid(qt)+")"}).style("text-anchor","middle").attr("class","slice"),N.append("text").text(r.yy.getPieTitle()).attr("x",0).attr("y",-200).attr("class","pieTitleText");var Tt=N.selectAll(".legend").data(J.domain()).enter().append("g").attr("class","legend").attr("transform",function(qt,ee){return"translate(216,"+(22*ee-22*J.domain().length/2)+")"});Tt.append("rect").attr("width",18).attr("height",18).style("fill",J).style("stroke",J),Tt.data(ft).append("text").attr("x",22).attr("y",14).text(function(qt){return r.yy.getShowData()||ic.showData||ic.pie.showData?qt.data[0]+" ["+qt.data[1]+"]":qt.data[0]})}catch(qt){y.error("Error while rendering info diagram"),y.error(qt)}};var R1=p(3176),fb=p.n(R1),V2=[],Ua={},Cu={},Vo={},ac={};const Ts={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(t,e,r){Gi.parseDirective(this,t,e,r)},getConfig:function(){return $t().req},addRequirement:function(t,e){return Cu[t]===void 0&&(Cu[t]={name:t,type:e,id:Ua.id,text:Ua.text,risk:Ua.risk,verifyMethod:Ua.verifyMethod}),Ua={},Cu[t]},getRequirements:function(){return Cu},setNewReqId:function(t){Ua!==void 0&&(Ua.id=t)},setNewReqText:function(t){Ua!==void 0&&(Ua.text=t)},setNewReqRisk:function(t){Ua!==void 0&&(Ua.risk=t)},setNewReqVerifyMethod:function(t){Ua!==void 0&&(Ua.verifyMethod=t)},setTitle:mo,getTitle:Uo,setAccDescription:bs,getAccDescription:_s,addElement:function(t){return ac[t]===void 0&&(ac[t]={name:t,type:Vo.type,docRef:Vo.docRef},y.info("Added new requirement: ",t)),Vo={},ac[t]},getElements:function(){return ac},setNewElementType:function(t){Vo!==void 0&&(Vo.type=t)},setNewElementDocRef:function(t){Vo!==void 0&&(Vo.docRef=t)},addRelationship:function(t,e,r){V2.push({type:t,src:e,dst:r})},getRelationships:function(){return V2},clear:function(){V2=[],Ua={},Cu={},Vo={},ac={},vs()}};var g0={CONTAINS:"contains",ARROW:"arrow"};const db=g0;var ii={},Ul=0,F1=function(t,e){return t.insert("rect","#"+e).attr("class","req reqBox").attr("x",0).attr("y",0).attr("width",ii.rect_min_width+"px").attr("height",ii.rect_min_height+"px")},pb=function(t,e,r){var a=ii.rect_min_width/2,c=t.append("text").attr("class","req reqLabel reqTitle").attr("id",e).attr("x",a).attr("y",ii.rect_padding).attr("dominant-baseline","hanging"),u=0;r.forEach(function(g){u==0?c.append("tspan").attr("text-anchor","middle").attr("x",ii.rect_min_width/2).attr("dy",0).text(g):c.append("tspan").attr("text-anchor","middle").attr("x",ii.rect_min_width/2).attr("dy",.75*ii.line_height).text(g),u++});var h=1.5*ii.rect_padding+u*ii.line_height*.75;return t.append("line").attr("class","req-title-line").attr("x1","0").attr("x2",ii.rect_min_width).attr("y1",h).attr("y2",h),{titleNode:c,y:h}},gb=function(t,e,r,a){var c=t.append("text").attr("class","req reqLabel").attr("id",e).attr("x",ii.rect_padding).attr("y",a).attr("dominant-baseline","hanging"),u=0,h=[];return r.forEach(function(g){for(var x=g.length;x>30&&u<3;){var _=g.substring(0,30);x=(g=g.substring(30,g.length)).length,h[h.length]=_,u++}if(u==3){var N=h[h.length-1];h[h.length-1]=N.substring(0,N.length-4)+"..."}else h[h.length]=g;u=0}),h.forEach(function(g){c.append("tspan").attr("x",ii.rect_padding).attr("dy",ii.line_height).text(g)}),c},ql=function(t){return t.replace(/\s/g,"").replace(/\./g,"_")};const G2=function(t){if(t!==void 0)for(var e=Object.keys(t),r=0;r<e.length;r++)ii[e[r]]=t[e[r]]},O_=function(t,e){R1.parser.yy=Ts,R1.parser.yy.clear(),R1.parser.parse(t);var r,a=$t().securityLevel;a==="sandbox"&&(r=Me("#i"+e));var c=Me(a==="sandbox"?r.nodes()[0].contentDocument.body:"body"),u=(a==="sandbox"&&r.nodes()[0].contentDocument,c.select("[id='".concat(e,"']")));(function(ct,J){var yt=ct.append("defs").append("marker").attr("id",g0.CONTAINS+"_line_ending").attr("refX",0).attr("refY",J.line_height/2).attr("markerWidth",J.line_height).attr("markerHeight",J.line_height).attr("orient","auto").append("g");yt.append("circle").attr("cx",J.line_height/2).attr("cy",J.line_height/2).attr("r",J.line_height/2).attr("fill","none"),yt.append("line").attr("x1",0).attr("x2",J.line_height).attr("y1",J.line_height/2).attr("y2",J.line_height/2).attr("stroke-width",1),yt.append("line").attr("y1",0).attr("y2",J.line_height).attr("x1",J.line_height/2).attr("x2",J.line_height/2).attr("stroke-width",1),ct.append("defs").append("marker").attr("id",g0.ARROW+"_line_ending").attr("refX",J.line_height).attr("refY",.5*J.line_height).attr("markerWidth",J.line_height).attr("markerHeight",J.line_height).attr("orient","auto").append("path").attr("d",`M0,0
L`.concat(J.line_height,",").concat(J.line_height/2,`
M`).concat(J.line_height,",").concat(J.line_height/2,`
L0,`).concat(J.line_height)).attr("stroke-width",1)})(u,ii);var h=new(Ii()).Graph({multigraph:!1,compound:!1,directed:!0}).setGraph({rankdir:ii.layoutDirection,marginx:20,marginy:20,nodesep:100,edgesep:100,ranksep:100}).setDefaultEdgeLabel(function(){return{}}),g=Ts.getRequirements(),x=Ts.getElements(),_=Ts.getRelationships();(function(ct,J,yt){Object.keys(ct).forEach(function(ft){var kt=ct[ft];ft=ql(ft),y.info("Added new requirement: ",ft);var Tt=yt.append("g").attr("id",ft),qt=F1(Tt,"req-"+ft),ee=pb(Tt,ft+"_title",["<<".concat(kt.type,">>"),"".concat(kt.name)]);gb(Tt,ft+"_body",["Id: ".concat(kt.id),"Text: ".concat(kt.text),"Risk: ".concat(kt.risk),"Verification: ".concat(kt.verifyMethod)],ee.y);var Ot=qt.node().getBBox();J.setNode(ft,{width:Ot.width,height:Ot.height,shape:"rect",id:ft})})})(g,h,u),function(ct,J,yt){Object.keys(ct).forEach(function(ft){var kt=ct[ft],Tt=ql(ft),qt=yt.append("g").attr("id",Tt),ee="element-"+Tt,Ot=F1(qt,ee),Xt=pb(qt,ee+"_title",["<<Element>>","".concat(ft)]);gb(qt,ee+"_body",["Type: ".concat(kt.type||"Not Specified"),"Doc Ref: ".concat(kt.docRef||"None")],Xt.y);var Ht=Ot.node().getBBox();J.setNode(Tt,{width:Ht.width,height:Ht.height,shape:"rect",id:Tt})})}(x,h,u),function(ct,J){ct.forEach(function(yt){var ft=ql(yt.src),kt=ql(yt.dst);J.setEdge(ft,kt,{relationship:yt})})}(_,h),m1().layout(h),function(ct,J){J.nodes().forEach(function(yt){yt!==void 0&&J.node(yt)!==void 0&&(ct.select("#"+yt),ct.select("#"+yt).attr("transform","translate("+(J.node(yt).x-J.node(yt).width/2)+","+(J.node(yt).y-J.node(yt).height/2)+" )"))})}(u,h),_.forEach(function(ct){(function(J,yt,ft,kt){var Tt=ft.edge(ql(yt.src),ql(yt.dst)),qt=No().x(function(Ot){return Ot.x}).y(function(Ot){return Ot.y}),ee=J.insert("path","#"+kt).attr("class","er relationshipLine").attr("d",qt(Tt.points)).attr("fill","none");yt.type==Ts.Relationships.CONTAINS?ee.attr("marker-start","url("+Jn.getUrl(ii.arrowMarkerAbsolute)+"#"+yt.type+"_line_ending)"):(ee.attr("stroke-dasharray","10,7"),ee.attr("marker-end","url("+Jn.getUrl(ii.arrowMarkerAbsolute)+"#"+db.ARROW+"_line_ending)")),function(Ot,Xt,Ht,Et){var Mt=Xt.node().getTotalLength(),bt=Xt.node().getPointAtLength(.5*Mt),ut="rel"+Ul;Ul++;var Nt=Ot.append("text").attr("class","req relationshipLabel").attr("id",ut).attr("x",bt.x).attr("y",bt.y).attr("text-anchor","middle").attr("dominant-baseline","middle").text(Et).node().getBBox();Ot.insert("rect","#"+ut).attr("class","req reqLabelBox").attr("x",bt.x-Nt.width/2).attr("y",bt.y-Nt.height/2).attr("width",Nt.width).attr("height",Nt.height).attr("fill","white").attr("fill-opacity","85%")}(J,ee,0,"<<".concat(yt.type,">>"))})(u,ct,h,e)});var N=ii.rect_padding,F=u.node().getBBox(),P=F.width+2*N,H=F.height+2*N;Ra(u,H,P,ii.useMaxWidth),u.attr("viewBox","".concat(F.x-N," ").concat(F.y-N," ").concat(P," ").concat(H)),Fa(R1.parser.yy,u,e)};var tn=p(6876),yb=p.n(tn),P1=void 0,so={},ca=[],y0="",m0=!1,X2=!1,j1=function(t,e,r,a){var c=so[t];c&&e===c.name&&r==null||(r!=null&&r.text!=null||(r={text:e,wrap:null,type:a}),a!=null&&r.text!=null||(r={text:e,wrap:null,type:a}),so[t]={name:e,description:r.text,wrap:r.wrap===void 0&&Hl()||!!r.wrap,prevActor:P1,links:{},properties:{},actorCnt:null,rectData:null,type:a||"participant"},P1&&so[P1]&&(so[P1].nextActor=t),P1=t)},I_=function(t){var e,r=0;for(e=0;e<ca.length;e++)ca[e].type===Cs.ACTIVE_START&&ca[e].from.actor===t&&r++,ca[e].type===Cs.ACTIVE_END&&ca[e].from.actor===t&&r--;return r},oc=function(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{text:void 0,wrap:void 0},a=arguments.length>3?arguments[3]:void 0;if(a===Cs.ACTIVE_END){var c=I_(t.actor);if(c<1){var u=new Error("Trying to inactivate an inactive participant ("+t.actor+")");throw u.hash={text:"->>-",token:"->>-",line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["'ACTIVE_PARTICIPANT'"]},u}}return ca.push({from:t,to:e,message:r.text,wrap:r.wrap===void 0&&Hl()||!!r.wrap,type:a}),!0},$l=function(t){return so[t]},Hl=function(){return X2},Cs={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},qa=function(t,e,r){r.text,r.wrap===void 0&&Hl()||r.wrap;var a=[].concat(t,t);ca.push({from:a[0],to:a[1],message:r.text,wrap:r.wrap===void 0&&Hl()||!!r.wrap,type:Cs.NOTE,placement:e})},Wl=function(t,e){var r=$l(t);try{var a=Gs(e.text,$t());a=(a=a.replace(/&amp;/g,"&")).replace(/&equals;/g,"="),Wi(r,JSON.parse(a))}catch(c){y.error("error while parsing actor link text",c)}};function Wi(t,e){if(t.links==null)t.links=e;else for(var r in e)t.links[r]=e[r]}var Fr=function(t,e){var r=$l(t);try{var a=Gs(e.text,$t());mb(r,JSON.parse(a))}catch(c){y.error("error while parsing actor properties text",c)}};function mb(t,e){if(t.properties==null)t.properties=e;else for(var r in e)t.properties[r]=e[r]}var vb=function(t,e){var r=$l(t),a=document.getElementById(e.text);try{var c=a.innerHTML,u=JSON.parse(c);u.properties&&mb(r,u.properties),u.links&&Wi(r,u.links)}catch(h){y.error("error while parsing actor details text",h)}};const Z2={addActor:j1,addMessage:function(t,e,r,a){ca.push({from:t,to:e,message:r.text,wrap:r.wrap===void 0&&Hl()||!!r.wrap,answer:a})},addSignal:oc,addLinks:Wl,addDetails:vb,addProperties:Fr,autoWrap:Hl,setWrap:function(t){X2=t},enableSequenceNumbers:function(){m0=!0},disableSequenceNumbers:function(){m0=!1},showSequenceNumbers:function(){return m0},getMessages:function(){return ca},getActors:function(){return so},getActor:$l,getActorKeys:function(){return Object.keys(so)},getActorProperty:function(t,e){if(t!==void 0&&t.properties!==void 0)return t.properties[e]},getTitle:Uo,getDiagramTitle:function(){return y0},parseDirective:function(t,e,r){Gi.parseDirective(this,t,e,r)},getConfig:function(){return $t().sequence},clear:function(){so={},ca=[],m0=!1,y0="",vs()},parseMessage:function(t){var e=t.trim(),r={text:e.replace(/^[:]?(?:no)?wrap:/,"").trim(),wrap:e.match(/^[:]?wrap:/)!==null||e.match(/^[:]?nowrap:/)===null&&void 0};return y.debug("parseMessage:",r),r},LINETYPE:Cs,ARROWTYPE:{FILLED:0,OPEN:1},PLACEMENT:{LEFTOF:0,RIGHTOF:1,OVER:2},addNote:qa,setTitle:mo,setDiagramTitle:function(t){var e=Gs(t,$t());y0=e},apply:function t(e){if(e instanceof Array)e.forEach(function(r){t(r)});else switch(e.type){case"sequenceIndex":ca.push({from:void 0,to:void 0,message:{start:e.sequenceIndex,step:e.sequenceIndexStep,visible:e.sequenceVisible},wrap:!1,type:e.signalType});break;case"addParticipant":j1(e.actor,e.actor,e.description,"participant");break;case"addActor":j1(e.actor,e.actor,e.description,"actor");break;case"activeStart":case"activeEnd":oc(e.actor,void 0,void 0,e.signalType);break;case"addNote":qa(e.actor,e.placement,e.text);break;case"addLinks":Wl(e.actor,e.text);break;case"addALink":(function(r,a){var c=$l(r);try{var u={},h=Gs(a.text,$t()),g=h.indexOf("@"),x=(h=(h=h.replace(/&amp;/g,"&")).replace(/&equals;/g,"=")).slice(0,g-1).trim(),_=h.slice(g+1).trim();u[x]=_,Wi(c,u)}catch(N){y.error("error while parsing actor link text",N)}})(e.actor,e.text);break;case"addProperties":Fr(e.actor,e.text);break;case"addDetails":vb(e.actor,e.text);break;case"addMessage":oc(e.from,e.to,e.msg,e.signalType);break;case"loopStart":oc(void 0,void 0,e.loopText,e.signalType);break;case"loopEnd":case"rectEnd":case"optEnd":case"altEnd":case"parEnd":oc(void 0,void 0,void 0,e.signalType);break;case"rectStart":oc(void 0,void 0,e.color,e.signalType);break;case"optStart":oc(void 0,void 0,e.optText,e.signalType);break;case"altStart":case"else":oc(void 0,void 0,e.altText,e.signalType);break;case"setTitle":mo(e.text);break;case"parStart":case"and":oc(void 0,void 0,e.parText,e.signalType)}},setAccDescription:bs,getAccDescription:_s};var Y1=[],v0=function(t,e){var r=t.append("rect");return r.attr("x",e.x),r.attr("y",e.y),r.attr("fill",e.fill),r.attr("stroke",e.stroke),r.attr("width",e.width),r.attr("height",e.height),r.attr("rx",e.rx),r.attr("ry",e.ry),e.class!==void 0&&r.attr("class",e.class),r},z1=function(t,e){var r;r=function(){var a=document.querySelectorAll(t);a.length!==0&&(a[0].addEventListener("mouseover",function(){b0("actor"+e+"_popup")}),a[0].addEventListener("mouseout",function(){bb("actor"+e+"_popup")}))},Y1.push(r)},R_=function(t,e,r,a){var c=t.append("image");c.attr("x",e),c.attr("y",r);var u=(0,pu.N)(a);c.attr("xlink:href",u)},sc=function(t,e,r,a){var c=t.append("use");c.attr("x",e),c.attr("y",r);var u=(0,pu.N)(a);c.attr("xlink:href","#"+u)},b0=function(t){var e=document.getElementById(t);e!=null&&(e.style.display="block")},bb=function(t){var e=document.getElementById(t);e!=null&&(e.style.display="none")},Eu=function(t,e){var r=0,a=0,c=e.text.split(Jn.lineBreakRegex),u=[],h=0,g=function(){return e.y};if(e.valign!==void 0&&e.textMargin!==void 0&&e.textMargin>0)switch(e.valign){case"top":case"start":g=function(){return Math.round(e.y+e.textMargin)};break;case"middle":case"center":g=function(){return Math.round(e.y+(r+a+e.textMargin)/2)};break;case"bottom":case"end":g=function(){return Math.round(e.y+(r+a+2*e.textMargin)-e.textMargin)}}if(e.anchor!==void 0&&e.textMargin!==void 0&&e.width!==void 0)switch(e.anchor){case"left":case"start":e.x=Math.round(e.x+e.textMargin),e.anchor="start",e.dominantBaseline="text-after-edge",e.alignmentBaseline="middle";break;case"middle":case"center":e.x=Math.round(e.x+e.width/2),e.anchor="middle",e.dominantBaseline="middle",e.alignmentBaseline="middle";break;case"right":case"end":e.x=Math.round(e.x+e.width-e.textMargin),e.anchor="end",e.dominantBaseline="text-before-edge",e.alignmentBaseline="middle"}for(var x=0;x<c.length;x++){var _=c[x];e.textMargin!==void 0&&e.textMargin===0&&e.fontSize!==void 0&&(h=x*e.fontSize);var N=t.append("text");if(N.attr("x",e.x),N.attr("y",g()),e.anchor!==void 0&&N.attr("text-anchor",e.anchor).attr("dominant-baseline",e.dominantBaseline).attr("alignment-baseline",e.alignmentBaseline),e.fontFamily!==void 0&&N.style("font-family",e.fontFamily),e.fontSize!==void 0&&N.style("font-size",e.fontSize),e.fontWeight!==void 0&&N.style("font-weight",e.fontWeight),e.fill!==void 0&&N.attr("fill",e.fill),e.class!==void 0&&N.attr("class",e.class),e.dy!==void 0?N.attr("dy",e.dy):h!==0&&N.attr("dy",h),e.tspan){var F=N.append("tspan");F.attr("x",e.x),e.fill!==void 0&&F.attr("fill",e.fill),F.text(_)}else N.text(_);e.valign!==void 0&&e.textMargin!==void 0&&e.textMargin>0&&(a+=(N._groups||N)[0][0].getBBox().height,r=a),u.push(N)}return u},U1=function(t,e){var r=t.append("polygon");return r.attr("points",function(a,c,u,h,g){return a+","+c+" "+(a+u)+","+c+" "+(a+u)+","+(c+h-7)+" "+(a+u-8.4)+","+(c+h)+" "+a+","+(c+h)}(e.x,e.y,e.width,e.height)),r.attr("class","labelBox"),e.y=e.y+e.height/2,Eu(t,e),r},Es=-1,F_=function(t,e){t.selectAll&&t.selectAll(".actor-line").attr("class","200").attr("y2",e-55)},_b=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}},P_=function(){return{x:0,y:0,fill:"#EDF2AE",stroke:"#666",width:100,anchor:"start",height:100,rx:0,ry:0}},xb=function(){function t(c,u,h,g,x,_,N){a(u.append("text").attr("x",h+x/2).attr("y",g+_/2+5).style("text-anchor","middle").text(c),N)}function e(c,u,h,g,x,_,N,F){for(var P=F.actorFontSize,H=F.actorFontFamily,ct=F.actorFontWeight,J=c.split(Jn.lineBreakRegex),yt=0;yt<J.length;yt++){var ft=yt*P-P*(J.length-1)/2,kt=u.append("text").attr("x",h+x/2).attr("y",g).style("text-anchor","middle").style("font-size",P).style("font-weight",ct).style("font-family",H);kt.append("tspan").attr("x",h+x/2).attr("dy",ft).text(J[yt]),kt.attr("y",g+_/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),a(kt,N)}}function r(c,u,h,g,x,_,N,F){var P=u.append("switch"),H=P.append("foreignObject").attr("x",h).attr("y",g).attr("width",x).attr("height",_).append("xhtml:div").style("display","table").style("height","100%").style("width","100%");H.append("div").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(c),e(c,P,h,g,x,_,N,F),a(H,N)}function a(c,u){for(var h in u)u.hasOwnProperty(h)&&c.attr(h,u[h])}return function(c){return c.textPlacement==="fo"?r:c.textPlacement==="old"?t:e}}(),j_=function(){function t(c,u,h,g,x,_,N){a(u.append("text").attr("x",h).attr("y",g).style("text-anchor","start").text(c),N)}function e(c,u,h,g,x,_,N,F){for(var P=F.actorFontSize,H=F.actorFontFamily,ct=F.actorFontWeight,J=c.split(Jn.lineBreakRegex),yt=0;yt<J.length;yt++){var ft=yt*P-P*(J.length-1)/2,kt=u.append("text").attr("x",h).attr("y",g).style("text-anchor","start").style("font-size",P).style("font-weight",ct).style("font-family",H);kt.append("tspan").attr("x",h).attr("dy",ft).text(J[yt]),kt.attr("y",g+_/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),a(kt,N)}}function r(c,u,h,g,x,_,N,F){var P=u.append("switch"),H=P.append("foreignObject").attr("x",h).attr("y",g).attr("width",x).attr("height",_).append("xhtml:div").style("display","table").style("height","100%").style("width","100%");H.append("div").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(c),e(c,P,h,g,0,_,N,F),a(H,N)}function a(c,u){for(var h in u)u.hasOwnProperty(h)&&c.attr(h,u[h])}return function(c){return c.textPlacement==="fo"?r:c.textPlacement==="old"?t:e}}();const Y_=v0,n=function(t,e,r){switch(e.type){case"actor":return function(a,c,u){var h=c.x+c.width/2;c.y===0&&(Es++,a.append("line").attr("id","actor"+Es).attr("x1",h).attr("y1",80).attr("x2",h).attr("y2",2e3).attr("class","actor-line").attr("stroke-width","0.5px").attr("stroke","#999"));var g=a.append("g");g.attr("class","actor-man");var x={x:0,y:0,fill:"#EDF2AE",stroke:"#666",width:100,anchor:"start",height:100,rx:0,ry:0};x.x=c.x,x.y=c.y,x.fill="#eaeaea",x.width=c.width,x.height=c.height,x.class="actor",x.rx=3,x.ry=3,g.append("line").attr("id","actor-man-torso"+Es).attr("x1",h).attr("y1",c.y+25).attr("x2",h).attr("y2",c.y+45),g.append("line").attr("id","actor-man-arms"+Es).attr("x1",h-18).attr("y1",c.y+33).attr("x2",h+18).attr("y2",c.y+33),g.append("line").attr("x1",h-18).attr("y1",c.y+60).attr("x2",h).attr("y2",c.y+45),g.append("line").attr("x1",h).attr("y1",c.y+45).attr("x2",h+16).attr("y2",c.y+60);var _=g.append("circle");_.attr("cx",c.x+c.width/2),_.attr("cy",c.y+10),_.attr("r",15),_.attr("width",c.width),_.attr("height",c.height);var N=g.node().getBBox();return c.height=N.height,xb(u)(c.description,g,x.x,x.y+35,x.width,x.height,{class:"actor"},u),c.height}(t,e,r);case"participant":return function(a,c,u){var h=c.x+c.width/2,g=a.append("g"),x=g;c.y===0&&(Es++,x.append("line").attr("id","actor"+Es).attr("x1",h).attr("y1",5).attr("x2",h).attr("y2",2e3).attr("class","actor-line").attr("stroke-width","0.5px").attr("stroke","#999"),x=g.append("g"),c.actorCnt=Es,c.links!=null&&(x.attr("id","root-"+Es),z1("#root-"+Es,Es)));var _={x:0,y:0,fill:"#EDF2AE",stroke:"#666",width:100,anchor:"start",height:100,rx:0,ry:0},N="actor";c.properties!=null&&c.properties.class?N=c.properties.class:_.fill="#eaeaea",_.x=c.x,_.y=c.y,_.width=c.width,_.height=c.height,_.class=N,_.rx=3,_.ry=3;var F=v0(x,_);if(c.rectData=_,c.properties!=null&&c.properties.icon){var P=c.properties.icon.trim();P.charAt(0)==="@"?sc(x,_.x+_.width-20,_.y+10,P.substr(1)):R_(x,_.x+_.width-20,_.y+10,P)}xb(u)(c.description,x,_.x,_.y,_.width,_.height,{class:"actor"},u);var H=c.height;if(F.node){var ct=F.node().getBBox();c.height=ct.height,H=ct.height}return H}(t,e,r)}},i=function(t,e,r,a,c){if(e.links===void 0||e.links===null||Object.keys(e.links).length===0)return{height:0,width:0};var u=e.links,h=e.actorCnt,g=e.rectData,x="none";c&&(x="block !important");var _=t.append("g");_.attr("id","actor"+h+"_popup"),_.attr("class","actorPopupMenu"),_.attr("display",x),z1("#actor"+h+"_popup",h);var N="";g.class!==void 0&&(N=" "+g.class);var F=g.width>r?g.width:r,P=_.append("rect");if(P.attr("class","actorPopupMenuPanel"+N),P.attr("x",g.x),P.attr("y",g.height),P.attr("fill",g.fill),P.attr("stroke",g.stroke),P.attr("width",F),P.attr("height",g.height),P.attr("rx",g.rx),P.attr("ry",g.ry),u!=null){var H=20;for(var ct in u){var J=_.append("a"),yt=(0,pu.N)(u[ct]);J.attr("xlink:href",yt),J.attr("target","_blank"),j_(a)(ct,J,g.x+10,g.height+H,F,20,{class:"actor"},a),H+=30}}return P.attr("height",H),{height:g.height+H,width:F}},o=function(t){return t.append("g")},s=function(t,e,r,a,c){var u={x:0,y:0,fill:"#EDF2AE",stroke:"#666",width:100,anchor:"start",height:100,rx:0,ry:0},h=e.anchored;u.x=e.startx,u.y=e.starty,u.class="activation"+c%3,u.width=e.stopx-e.startx,u.height=r-e.starty,v0(h,u)},l=function(t,e,r,a){var c=a.boxMargin,u=a.boxTextMargin,h=a.labelBoxHeight,g=a.labelBoxWidth,x=a.messageFontFamily,_=a.messageFontSize,N=a.messageFontWeight,F=t.append("g"),P=function(J,yt,ft,kt){return F.append("line").attr("x1",J).attr("y1",yt).attr("x2",ft).attr("y2",kt).attr("class","loopLine")};P(e.startx,e.starty,e.stopx,e.starty),P(e.stopx,e.starty,e.stopx,e.stopy),P(e.startx,e.stopy,e.stopx,e.stopy),P(e.startx,e.starty,e.startx,e.stopy),e.sections!==void 0&&e.sections.forEach(function(J){P(e.startx,J.y,e.stopx,J.y).style("stroke-dasharray","3, 3")});var H={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};H.text=r,H.x=e.startx,H.y=e.starty,H.fontFamily=x,H.fontSize=_,H.fontWeight=N,H.anchor="middle",H.valign="middle",H.tspan=!1,H.width=g||50,H.height=h||20,H.textMargin=u,H.class="labelText",U1(F,H),(H={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=e.title,H.x=e.startx+g/2+(e.stopx-e.startx)/2,H.y=e.starty+c+u,H.anchor="middle",H.valign="middle",H.textMargin=u,H.class="loopText",H.fontFamily=x,H.fontSize=_,H.fontWeight=N,H.wrap=!0;var ct=Eu(F,H);return e.sectionTitles!==void 0&&e.sectionTitles.forEach(function(J,yt){if(J.message){H.text=J.message,H.x=e.startx+(e.stopx-e.startx)/2,H.y=e.sections[yt].y+c+u,H.class="loopText",H.anchor="middle",H.valign="middle",H.tspan=!1,H.fontFamily=x,H.fontSize=_,H.fontWeight=N,H.wrap=e.wrap,ct=Eu(F,H);var ft=Math.round(ct.map(function(kt){return(kt._groups||kt)[0][0].getBBox().height}).reduce(function(kt,Tt){return kt+Tt}));e.sections[yt].height+=ft-(c+u)}}),e.height=Math.round(e.stopy-e.starty),F},d=function(t,e){v0(t,{x:e.startx,y:e.starty,width:e.stopx-e.startx,height:e.stopy-e.starty,fill:e.fill,class:"rect"}).lower()},b=function(t){t.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")},m=function(t){t.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")},w=function(t){t.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)},E=function(t){var e=t.append("defs").append("marker").attr("id","crosshead").attr("markerWidth",15).attr("markerHeight",8).attr("orient","auto").attr("refX",16).attr("refY",4);e.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"),e.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")},L=function(t){t.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")},j=function(t){t.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")},D=function(t){t.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")},q=_b,W=P_;pu.N,tn.parser.yy=Z2;var U={},V={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(t){return t.height||0}))+(this.loops.length===0?0:this.loops.map(function(t){return t.height||0}).reduce(function(t,e){return t+e}))+(this.messages.length===0?0:this.messages.map(function(t){return t.height||0}).reduce(function(t,e){return t+e}))+(this.notes.length===0?0:this.notes.map(function(t){return t.height||0}).reduce(function(t,e){return t+e}))},clear:function(){this.actors=[],this.loops=[],this.messages=[],this.notes=[]},addActor:function(t){this.actors.push(t)},addLoop:function(t){this.loops.push(t)},addMessage:function(t){this.messages.push(t)},addNote:function(t){this.notes.push(t)},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,Vt(tn.parser.yy.getConfig())},updateVal:function(t,e,r,a){t[e]===void 0?t[e]=r:t[e]=a(r,t[e])},updateBounds:function(t,e,r,a){var c=this,u=0;function h(g){return function(x){u++;var _=c.sequenceItems.length-u+1;c.updateVal(x,"starty",e-_*U.boxMargin,Math.min),c.updateVal(x,"stopy",a+_*U.boxMargin,Math.max),c.updateVal(V.data,"startx",t-_*U.boxMargin,Math.min),c.updateVal(V.data,"stopx",r+_*U.boxMargin,Math.max),g!=="activation"&&(c.updateVal(x,"startx",t-_*U.boxMargin,Math.min),c.updateVal(x,"stopx",r+_*U.boxMargin,Math.max),c.updateVal(V.data,"starty",e-_*U.boxMargin,Math.min),c.updateVal(V.data,"stopy",a+_*U.boxMargin,Math.max))}}this.sequenceItems.forEach(h()),this.activations.forEach(h("activation"))},insert:function(t,e,r,a){var c=Math.min(t,r),u=Math.max(t,r),h=Math.min(e,a),g=Math.max(e,a);this.updateVal(V.data,"startx",c,Math.min),this.updateVal(V.data,"starty",h,Math.min),this.updateVal(V.data,"stopx",u,Math.max),this.updateVal(V.data,"stopy",g,Math.max),this.updateBounds(c,h,u,g)},newActivation:function(t,e,r){var a=r[t.from.actor],c=Jt(t.from.actor).length||0,u=a.x+a.width/2+(c-1)*U.activationWidth/2;this.activations.push({startx:u,starty:this.verticalPos+2,stopx:u+U.activationWidth,stopy:void 0,actor:t.from.actor,anchored:o(e)})},endActivation:function(t){var e=this.activations.map(function(r){return r.actor}).lastIndexOf(t.from.actor);return this.activations.splice(e,1)[0]},createLoop:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{message:void 0,wrap:!1,width:void 0},e=arguments.length>1?arguments[1]:void 0;return{startx:void 0,starty:this.verticalPos,stopx:void 0,stopy:void 0,title:t.message,wrap:t.wrap,width:t.width,height:0,fill:e}},newLoop:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{message:void 0,wrap:!1,width:void 0},e=arguments.length>1?arguments[1]:void 0;this.sequenceItems.push(this.createLoop(t,e))},endLoop:function(){return this.sequenceItems.pop()},addSectionToLoop:function(t){var e=this.sequenceItems.pop();e.sections=e.sections||[],e.sectionTitles=e.sectionTitles||[],e.sections.push({y:V.getVerticalPos(),height:0}),e.sectionTitles.push(t),this.sequenceItems.push(e)},bumpVerticalPos:function(t){this.verticalPos=this.verticalPos+t,this.data.stopy=this.verticalPos},getVerticalPos:function(){return this.verticalPos},getBounds:function(){return{bounds:this.data,models:this.models}}},Z=function(t){return{fontFamily:t.messageFontFamily,fontSize:t.messageFontSize,fontWeight:t.messageFontWeight}},it=function(t){return{fontFamily:t.noteFontFamily,fontSize:t.noteFontSize,fontWeight:t.noteFontWeight}},rt=function(t){return{fontFamily:t.actorFontFamily,fontSize:t.actorFontSize,fontWeight:t.actorFontWeight}},dt=function(t,e,r,a,c,u){if(c.hideUnusedParticipants===!0){var h=new Set;u.forEach(function(H){h.add(H.from),h.add(H.to)}),r=r.filter(function(H){return h.has(H)})}for(var g=0,x=0,_=0,N=0;N<r.length;N++){var F=e[r[N]];F.width=F.width||U.width,F.height=Math.max(F.height||U.height,U.height),F.margin=F.margin||U.actorMargin,F.x=g+x,F.y=a;var P=n(t,F,U);_=Math.max(_,P),V.insert(F.x,a,F.x+F.width,F.height),g+=F.width,x+=F.margin,V.models.addActor(F)}V.bumpVerticalPos(_)},Pt=function(t,e,r,a){for(var c=0,u=0,h=0;h<r.length;h++){var g=e[r[h]],x=ce(g),_=i(t,g,x,U,U.forceMenus);_.height>c&&(c=_.height),_.width+g.x>u&&(u=_.width+g.x)}return{maxHeight:c,maxWidth:u}},Vt=function(t){Hi(U,t),t.fontFamily&&(U.actorFontFamily=U.noteFontFamily=U.messageFontFamily=t.fontFamily),t.fontSize&&(U.actorFontSize=U.noteFontSize=U.messageFontSize=t.fontSize),t.fontWeight&&(U.actorFontWeight=U.noteFontWeight=U.messageFontWeight=t.fontWeight)},Jt=function(t){return V.activations.filter(function(e){return e.actor===t})},ke=function(t,e){var r=e[t],a=Jt(t);return[a.reduce(function(c,u){return Math.min(c,u.startx)},r.x+r.width/2),a.reduce(function(c,u){return Math.max(c,u.stopx)},r.x+r.width/2)]};function Yt(t,e,r,a,c){V.bumpVerticalPos(r);var u=a;if(e.id&&e.message&&t[e.id]){var h=t[e.id].width,g=Z(U);e.message=tr.wrapLabel("[".concat(e.message,"]"),h-2*U.wrapPadding,g),e.width=h,e.wrap=!0;var x=tr.calculateTextDimensions(e.message,g),_=Math.max(x.height,U.labelBoxHeight);u=a+_,y.debug("".concat(_," - ").concat(e.message))}c(e),V.bumpVerticalPos(u)}var ce=function(t){var e=0,r=rt(U);for(var a in t.links){var c=tr.calculateTextDimensions(a,r).width+2*U.wrapPadding+2*U.boxMargin;e<c&&(e=c)}return e};const ht={bounds:V,drawActors:dt,drawActorsPopup:Pt,setConf:Vt,draw:function(t,e){U=$t().sequence;var r,a=$t().securityLevel;a==="sandbox"&&(r=Me("#i"+e));var c=Me(a==="sandbox"?r.nodes()[0].contentDocument.body:"body");a==="sandbox"&&r.nodes()[0].contentDocument,tn.parser.yy.clear(),tn.parser.yy.setWrap(U.wrap),tn.parser.parse(t+`
`),V.init(),y.debug("C:".concat(JSON.stringify(U,null,2)));var u=a==="sandbox"?c.select('[id="'.concat(e,'"]')):Me('[id="'.concat(e,'"]')),h=tn.parser.yy.getActors(),g=tn.parser.yy.getActorKeys(),x=tn.parser.yy.getMessages(),_=tn.parser.yy.getDiagramTitle(),N=function(Ot,Xt){var Ht={};return Xt.forEach(function(Et){if(Ot[Et.to]&&Ot[Et.from]){var Mt=Ot[Et.to];if(Et.placement===tn.parser.yy.PLACEMENT.LEFTOF&&!Mt.prevActor||Et.placement===tn.parser.yy.PLACEMENT.RIGHTOF&&!Mt.nextActor)return;var bt=Et.placement!==void 0,ut=!bt,Nt=bt?it(U):Z(U),pt=Et.wrap?tr.wrapLabel(Et.message,U.width-2*U.wrapPadding,Nt):Et.message,me=tr.calculateTextDimensions(pt,Nt).width+2*U.wrapPadding;ut&&Et.from===Mt.nextActor?Ht[Et.to]=Math.max(Ht[Et.to]||0,me):ut&&Et.from===Mt.prevActor?Ht[Et.from]=Math.max(Ht[Et.from]||0,me):ut&&Et.from===Et.to?(Ht[Et.from]=Math.max(Ht[Et.from]||0,me/2),Ht[Et.to]=Math.max(Ht[Et.to]||0,me/2)):Et.placement===tn.parser.yy.PLACEMENT.RIGHTOF?Ht[Et.from]=Math.max(Ht[Et.from]||0,me):Et.placement===tn.parser.yy.PLACEMENT.LEFTOF?Ht[Mt.prevActor]=Math.max(Ht[Mt.prevActor]||0,me):Et.placement===tn.parser.yy.PLACEMENT.OVER&&(Mt.prevActor&&(Ht[Mt.prevActor]=Math.max(Ht[Mt.prevActor]||0,me/2)),Mt.nextActor&&(Ht[Et.from]=Math.max(Ht[Et.from]||0,me/2)))}}),y.debug("maxMessageWidthPerActor:",Ht),Ht}(h,x);U.height=function(Ot,Xt){var Ht=0;for(var Et in Object.keys(Ot).forEach(function(Nt){var pt=Ot[Nt];pt.wrap&&(pt.description=tr.wrapLabel(pt.description,U.width-2*U.wrapPadding,rt(U)));var me=tr.calculateTextDimensions(pt.description,rt(U));pt.width=pt.wrap?U.width:Math.max(U.width,me.width+2*U.wrapPadding),pt.height=pt.wrap?Math.max(me.height,U.height):U.height,Ht=Math.max(Ht,pt.height)}),Xt){var Mt=Ot[Et];if(Mt){var bt=Ot[Mt.nextActor];if(bt){var ut=Xt[Et]+U.actorMargin-Mt.width/2-bt.width/2;Mt.margin=Math.max(ut,U.actorMargin)}}}return Math.max(Ht,U.height)}(h,N),j(u),L(u),D(u),dt(u,h,g,0,U,x);var F=function(Ot,Xt){var Ht,Et,Mt,bt={},ut=[];return Ot.forEach(function(Nt){switch(Nt.id=tr.random({length:10}),Nt.type){case tn.parser.yy.LINETYPE.LOOP_START:case tn.parser.yy.LINETYPE.ALT_START:case tn.parser.yy.LINETYPE.OPT_START:case tn.parser.yy.LINETYPE.PAR_START:ut.push({id:Nt.id,msg:Nt.message,from:Number.MAX_SAFE_INTEGER,to:Number.MIN_SAFE_INTEGER,width:0});break;case tn.parser.yy.LINETYPE.ALT_ELSE:case tn.parser.yy.LINETYPE.PAR_AND:Nt.message&&(Ht=ut.pop(),bt[Ht.id]=Ht,bt[Nt.id]=Ht,ut.push(Ht));break;case tn.parser.yy.LINETYPE.LOOP_END:case tn.parser.yy.LINETYPE.ALT_END:case tn.parser.yy.LINETYPE.OPT_END:case tn.parser.yy.LINETYPE.PAR_END:Ht=ut.pop(),bt[Ht.id]=Ht;break;case tn.parser.yy.LINETYPE.ACTIVE_START:var pt=Xt[Nt.from?Nt.from.actor:Nt.to.actor],me=Jt(Nt.from?Nt.from.actor:Nt.to.actor).length,ye=pt.x+pt.width/2+(me-1)*U.activationWidth/2,re={startx:ye,stopx:ye+U.activationWidth,actor:Nt.from.actor,enabled:!0};V.activations.push(re);break;case tn.parser.yy.LINETYPE.ACTIVE_END:var Ce=V.activations.map(function(se){return se.actor}).lastIndexOf(Nt.from.actor);delete V.activations.splice(Ce,1)[0]}Nt.placement!==void 0?(Et=function(se,ve){var ge=ve[se.from].x,He=ve[se.to].x,Ge=se.wrap&&se.message,an=tr.calculateTextDimensions(Ge?tr.wrapLabel(se.message,U.width,it(U)):se.message,it(U)),cn={width:Ge?U.width:Math.max(U.width,an.width+2*U.noteMargin),height:0,startx:ve[se.from].x,stopx:0,starty:0,stopy:0,message:se.message};return se.placement===tn.parser.yy.PLACEMENT.RIGHTOF?(cn.width=Ge?Math.max(U.width,an.width):Math.max(ve[se.from].width/2+ve[se.to].width/2,an.width+2*U.noteMargin),cn.startx=ge+(ve[se.from].width+U.actorMargin)/2):se.placement===tn.parser.yy.PLACEMENT.LEFTOF?(cn.width=Math.max(Ge?U.width:ve[se.from].width/2+ve[se.to].width/2,an.width+2*U.noteMargin),cn.startx=ge-cn.width+(ve[se.from].width-U.actorMargin)/2):se.to===se.from?(an=tr.calculateTextDimensions(Ge?tr.wrapLabel(se.message,Math.max(U.width,ve[se.from].width),it(U)):se.message,it(U)),cn.width=Ge?Math.max(U.width,ve[se.from].width):Math.max(ve[se.from].width,U.width,an.width+2*U.noteMargin),cn.startx=ge+(ve[se.from].width-cn.width)/2):(cn.width=Math.abs(ge+ve[se.from].width/2-(He+ve[se.to].width/2))+U.actorMargin,cn.startx=ge<He?ge+ve[se.from].width/2-U.actorMargin/2:He+ve[se.to].width/2-U.actorMargin/2),Ge&&(cn.message=tr.wrapLabel(se.message,cn.width-2*U.wrapPadding,it(U))),y.debug("NM:[".concat(cn.startx,",").concat(cn.stopx,",").concat(cn.starty,",").concat(cn.stopy,":").concat(cn.width,",").concat(cn.height,"=").concat(se.message,"]")),cn}(Nt,Xt),Nt.noteModel=Et,ut.forEach(function(se){(Ht=se).from=Math.min(Ht.from,Et.startx),Ht.to=Math.max(Ht.to,Et.startx+Et.width),Ht.width=Math.max(Ht.width,Math.abs(Ht.from-Ht.to))-U.labelBoxWidth})):(Mt=function(se,ve){var ge=!1;if([tn.parser.yy.LINETYPE.SOLID_OPEN,tn.parser.yy.LINETYPE.DOTTED_OPEN,tn.parser.yy.LINETYPE.SOLID,tn.parser.yy.LINETYPE.DOTTED,tn.parser.yy.LINETYPE.SOLID_CROSS,tn.parser.yy.LINETYPE.DOTTED_CROSS,tn.parser.yy.LINETYPE.SOLID_POINT,tn.parser.yy.LINETYPE.DOTTED_POINT].includes(se.type)&&(ge=!0),!ge)return{};var He=ke(se.from,ve),Ge=ke(se.to,ve),an=He[0]<=Ge[0]?1:0,cn=He[0]<Ge[0]?0:1,We=He.concat(Ge),lr=Math.abs(Ge[cn]-He[an]);se.wrap&&se.message&&(se.message=tr.wrapLabel(se.message,Math.max(lr+2*U.wrapPadding,U.width),Z(U)));var _r=tr.calculateTextDimensions(se.message,Z(U));return{width:Math.max(se.wrap?0:_r.width+2*U.wrapPadding,lr+2*U.wrapPadding,U.width),height:0,startx:He[an],stopx:Ge[cn],starty:0,stopy:0,message:se.message,type:se.type,wrap:se.wrap,fromBounds:Math.min.apply(null,We),toBounds:Math.max.apply(null,We)}}(Nt,Xt),Nt.msgModel=Mt,Mt.startx&&Mt.stopx&&ut.length>0&&ut.forEach(function(se){if(Ht=se,Mt.startx===Mt.stopx){var ve=Xt[Nt.from],ge=Xt[Nt.to];Ht.from=Math.min(ve.x-Mt.width/2,ve.x-ve.width/2,Ht.from),Ht.to=Math.max(ge.x+Mt.width/2,ge.x+ve.width/2,Ht.to),Ht.width=Math.max(Ht.width,Math.abs(Ht.to-Ht.from))-U.labelBoxWidth}else Ht.from=Math.min(Mt.startx,Ht.from),Ht.to=Math.max(Mt.stopx,Ht.to),Ht.width=Math.max(Ht.width,Mt.width)-U.labelBoxWidth}))}),V.activations=[],y.debug("Loop type widths:",bt),bt}(x,h);b(u),E(u),m(u),w(u);var P=1,H=1,ct=Array();x.forEach(function(Ot){var Xt,Ht,Et;switch(Ot.type){case tn.parser.yy.LINETYPE.NOTE:Ht=Ot.noteModel,function(bt,ut){V.bumpVerticalPos(U.boxMargin),ut.height=U.boxMargin,ut.starty=V.getVerticalPos();var Nt=W();Nt.x=ut.startx,Nt.y=ut.starty,Nt.width=ut.width||U.width,Nt.class="note";var pt=bt.append("g"),me=Y_(pt,Nt),ye=q();ye.x=ut.startx,ye.y=ut.starty,ye.width=Nt.width,ye.dy="1em",ye.text=ut.message,ye.class="noteText",ye.fontFamily=U.noteFontFamily,ye.fontSize=U.noteFontSize,ye.fontWeight=U.noteFontWeight,ye.anchor=U.noteAlign,ye.textMargin=U.noteMargin,ye.valign=U.noteAlign;var re=Eu(pt,ye),Ce=Math.round(re.map(function(se){return(se._groups||se)[0][0].getBBox().height}).reduce(function(se,ve){return se+ve}));me.attr("height",Ce+2*U.noteMargin),ut.height+=Ce+2*U.noteMargin,V.bumpVerticalPos(Ce+2*U.noteMargin),ut.stopy=ut.starty+Ce+2*U.noteMargin,ut.stopx=ut.startx+Nt.width,V.insert(ut.startx,ut.starty,ut.stopx,ut.stopy),V.models.addNote(ut)}(u,Ht);break;case tn.parser.yy.LINETYPE.ACTIVE_START:V.newActivation(Ot,u,h);break;case tn.parser.yy.LINETYPE.ACTIVE_END:(function(bt,ut){var Nt=V.endActivation(bt);Nt.starty+18>ut&&(Nt.starty=ut-6,ut+=12),s(u,Nt,ut,U,Jt(bt.from.actor).length),V.insert(Nt.startx,ut-10,Nt.stopx,ut)})(Ot,V.getVerticalPos());break;case tn.parser.yy.LINETYPE.LOOP_START:Yt(F,Ot,U.boxMargin,U.boxMargin+U.boxTextMargin,function(bt){return V.newLoop(bt)});break;case tn.parser.yy.LINETYPE.LOOP_END:Xt=V.endLoop(),l(u,Xt,"loop",U),V.bumpVerticalPos(Xt.stopy-V.getVerticalPos()),V.models.addLoop(Xt);break;case tn.parser.yy.LINETYPE.RECT_START:Yt(F,Ot,U.boxMargin,U.boxMargin,function(bt){return V.newLoop(void 0,bt.message)});break;case tn.parser.yy.LINETYPE.RECT_END:Xt=V.endLoop(),d(u,Xt),V.models.addLoop(Xt),V.bumpVerticalPos(Xt.stopy-V.getVerticalPos());break;case tn.parser.yy.LINETYPE.OPT_START:Yt(F,Ot,U.boxMargin,U.boxMargin+U.boxTextMargin,function(bt){return V.newLoop(bt)});break;case tn.parser.yy.LINETYPE.OPT_END:Xt=V.endLoop(),l(u,Xt,"opt",U),V.bumpVerticalPos(Xt.stopy-V.getVerticalPos()),V.models.addLoop(Xt);break;case tn.parser.yy.LINETYPE.ALT_START:Yt(F,Ot,U.boxMargin,U.boxMargin+U.boxTextMargin,function(bt){return V.newLoop(bt)});break;case tn.parser.yy.LINETYPE.ALT_ELSE:Yt(F,Ot,U.boxMargin+U.boxTextMargin,U.boxMargin,function(bt){return V.addSectionToLoop(bt)});break;case tn.parser.yy.LINETYPE.ALT_END:Xt=V.endLoop(),l(u,Xt,"alt",U),V.bumpVerticalPos(Xt.stopy-V.getVerticalPos()),V.models.addLoop(Xt);break;case tn.parser.yy.LINETYPE.PAR_START:Yt(F,Ot,U.boxMargin,U.boxMargin+U.boxTextMargin,function(bt){return V.newLoop(bt)});break;case tn.parser.yy.LINETYPE.PAR_AND:Yt(F,Ot,U.boxMargin+U.boxTextMargin,U.boxMargin,function(bt){return V.addSectionToLoop(bt)});break;case tn.parser.yy.LINETYPE.PAR_END:Xt=V.endLoop(),l(u,Xt,"par",U),V.bumpVerticalPos(Xt.stopy-V.getVerticalPos()),V.models.addLoop(Xt);break;case tn.parser.yy.LINETYPE.AUTONUMBER:P=Ot.message.start||P,H=Ot.message.step||H,Ot.message.visible?tn.parser.yy.enableSequenceNumbers():tn.parser.yy.disableSequenceNumbers();break;default:try{(Et=Ot.msgModel).starty=V.getVerticalPos(),Et.sequenceIndex=P,Et.sequenceVisible=tn.parser.yy.showSequenceNumbers();var Mt=function(bt,ut){V.bumpVerticalPos(10);var Nt,pt=ut.startx,me=ut.stopx,ye=ut.message,re=Jn.splitBreaks(ye).length,Ce=tr.calculateTextDimensions(ye,Z(U)),se=Ce.height/re;ut.height+=se,V.bumpVerticalPos(se);var ve=Ce.height-10,ge=Ce.width;if(pt===me){Nt=V.getVerticalPos()+ve,U.rightAngles||(ve+=U.boxMargin,Nt=V.getVerticalPos()+ve),ve+=30;var He=Math.max(ge/2,U.width/2);V.insert(pt-He,V.getVerticalPos()-10+ve,me+He,V.getVerticalPos()+30+ve)}else ve+=U.boxMargin,Nt=V.getVerticalPos()+ve,V.insert(pt,Nt-10,me,Nt);return V.bumpVerticalPos(ve),ut.height+=ve,ut.stopy=ut.starty+ut.height,V.insert(ut.fromBounds,ut.starty,ut.toBounds,ut.stopy),Nt}(0,Et);ct.push({messageModel:Et,lineStarty:Mt}),V.models.addMessage(Et)}catch(bt){y.error("error while drawing message",bt)}}[tn.parser.yy.LINETYPE.SOLID_OPEN,tn.parser.yy.LINETYPE.DOTTED_OPEN,tn.parser.yy.LINETYPE.SOLID,tn.parser.yy.LINETYPE.DOTTED,tn.parser.yy.LINETYPE.SOLID_CROSS,tn.parser.yy.LINETYPE.DOTTED_CROSS,tn.parser.yy.LINETYPE.SOLID_POINT,tn.parser.yy.LINETYPE.DOTTED_POINT].includes(Ot.type)&&(P+=H)}),ct.forEach(function(Ot){return function(Xt,Ht,Et){var Mt=Ht.startx,bt=Ht.stopx,ut=Ht.starty,Nt=Ht.message,pt=Ht.type,me=Ht.sequenceIndex,ye=Ht.sequenceVisible,re=tr.calculateTextDimensions(Nt,Z(U)),Ce=q();Ce.x=Mt,Ce.y=ut+10,Ce.width=bt-Mt,Ce.class="messageText",Ce.dy="1em",Ce.text=Nt,Ce.fontFamily=U.messageFontFamily,Ce.fontSize=U.messageFontSize,Ce.fontWeight=U.messageFontWeight,Ce.anchor=U.messageAlign,Ce.valign=U.messageAlign,Ce.textMargin=U.wrapPadding,Ce.tspan=!1,Eu(Xt,Ce);var se,ve=re.width;Mt===bt?se=U.rightAngles?Xt.append("path").attr("d","M ".concat(Mt,",").concat(Et," H ").concat(Mt+Math.max(U.width/2,ve/2)," V ").concat(Et+25," H ").concat(Mt)):Xt.append("path").attr("d","M "+Mt+","+Et+" C "+(Mt+60)+","+(Et-10)+" "+(Mt+60)+","+(Et+30)+" "+Mt+","+(Et+20)):((se=Xt.append("line")).attr("x1",Mt),se.attr("y1",Et),se.attr("x2",bt),se.attr("y2",Et)),pt===tn.parser.yy.LINETYPE.DOTTED||pt===tn.parser.yy.LINETYPE.DOTTED_CROSS||pt===tn.parser.yy.LINETYPE.DOTTED_POINT||pt===tn.parser.yy.LINETYPE.DOTTED_OPEN?(se.style("stroke-dasharray","3, 3"),se.attr("class","messageLine1")):se.attr("class","messageLine0");var ge="";U.arrowMarkerAbsolute&&(ge=(ge=(ge=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search).replace(/\(/g,"\\(")).replace(/\)/g,"\\)")),se.attr("stroke-width",2),se.attr("stroke","none"),se.style("fill","none"),pt!==tn.parser.yy.LINETYPE.SOLID&&pt!==tn.parser.yy.LINETYPE.DOTTED||se.attr("marker-end","url("+ge+"#arrowhead)"),pt!==tn.parser.yy.LINETYPE.SOLID_POINT&&pt!==tn.parser.yy.LINETYPE.DOTTED_POINT||se.attr("marker-end","url("+ge+"#filled-head)"),pt!==tn.parser.yy.LINETYPE.SOLID_CROSS&&pt!==tn.parser.yy.LINETYPE.DOTTED_CROSS||se.attr("marker-end","url("+ge+"#crosshead)"),(ye||U.showSequenceNumbers)&&(se.attr("marker-start","url("+ge+"#sequencenumber)"),Xt.append("text").attr("x",Mt).attr("y",Et+4).attr("font-family","sans-serif").attr("font-size","12px").attr("text-anchor","middle").attr("textLength","16px").attr("class","sequenceNumber").text(me))}(u,Ot.messageModel,Ot.lineStarty)}),U.mirrorActors&&(V.bumpVerticalPos(2*U.boxMargin),dt(u,h,g,V.getVerticalPos(),U,x),V.bumpVerticalPos(U.boxMargin),F_(u,V.getVerticalPos()));var J=Pt(u,h,g),yt=V.getBounds().bounds;y.debug("For line height fix Querying: #"+e+" .actor-line"),mc("#"+e+" .actor-line").attr("y2",yt.stopy);var ft=yt.stopy-yt.starty;ft<J.maxHeight&&(ft=J.maxHeight);var kt=ft+2*U.diagramMarginY;U.mirrorActors&&(kt=kt-U.boxMargin+U.bottomMarginAdj);var Tt=yt.stopx-yt.startx;Tt<J.maxWidth&&(Tt=J.maxWidth);var qt=Tt+2*U.diagramMarginX;_&&u.append("text").text(_).attr("x",(yt.stopx-yt.startx)/2-2*U.diagramMarginX).attr("y",-25),Ra(u,kt,qt,U.useMaxWidth);var ee=_?40:0;u.attr("viewBox",yt.startx-U.diagramMarginX+" -"+(U.diagramMarginY+ee)+" "+qt+" "+(kt+ee)),Fa(tn.parser.yy,u,e),y.debug("models:",V.models)}};var Ct=p(3584),ne=p.n(Ct);function Qt(t){return Qt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Qt(t)}var ie=function(t){return JSON.parse(JSON.stringify(t))},Fe=[],Ke=function t(e,r,a){if(r.stmt==="relation")t(e,r.state1,!0),t(e,r.state2,!1);else if(r.stmt==="state"&&r.id==="[*]"&&(r.id=a?e.id+"_start":e.id+"_end",r.start=a),r.doc){var c=[],u=0,h=[];for(u=0;u<r.doc.length;u++)if(r.doc[u].type==="divider"){var g=ie(r.doc[u]);g.doc=ie(h),c.push(g),h=[]}else h.push(r.doc[u]);if(c.length>0&&h.length>0){var x={stmt:"state",id:c3(),type:"divider",doc:ie(h)};c.push(ie(x)),r.doc=c}r.doc.forEach(function(_){return t(r,_,!0)})}},Tn={root:{relations:[],states:{},documents:{}}},Sn=Tn.root,ar=0,on=function(t,e,r,a,c){Sn.states[t]===void 0?Sn.states[t]={id:t,descriptions:[],type:e,doc:r,note:c}:(Sn.states[t].doc||(Sn.states[t].doc=r),Sn.states[t].type||(Sn.states[t].type=e)),a&&(y.info("Adding state ",t,a),typeof a=="string"&&Nn(t,a.trim()),Qt(a)==="object"&&a.forEach(function(u){return Nn(t,u.trim())})),c&&(Sn.states[t].note=c,Sn.states[t].note.text=Jn.sanitizeText(Sn.states[t].note.text,$t()))},yr=function(){Sn=(Tn={root:{relations:[],states:{},documents:{}}}).root,Sn=Tn.root,ar=0,Vi=[],vs()},In=function(t,e,r){var a=t,c=e,u="default",h="default";t==="[*]"&&(a="start"+ ++ar,u="start"),e==="[*]"&&(c="end"+ar,h="end"),on(a,u),on(c,h),Sn.relations.push({id1:a,id2:c,title:Jn.sanitizeText(r,$t())})},Nn=function(t,e){var r=Sn.states[t],a=e;a[0]===":"&&(a=a.substr(1).trim()),r.descriptions.push(Jn.sanitizeText(a,$t()))},dr=0,Vi=[],wi="TB";const qr={parseDirective:function(t,e,r){Gi.parseDirective(this,t,e,r)},getConfig:function(){return $t().state},addState:on,clear:yr,getState:function(t){return Sn.states[t]},getStates:function(){return Sn.states},getRelations:function(){return Sn.relations},getClasses:function(){return Vi},getDirection:function(){return wi},addRelation:In,getDividerId:function(){return"divider-id-"+ ++dr},setDirection:function(t){wi=t},cleanupLabel:function(t){return t.substring(0,1)===":"?t.substr(2).trim():t.trim()},lineType:{LINE:0,DOTTED_LINE:1},relationType:{AGGREGATION:0,EXTENSION:1,COMPOSITION:2,DEPENDENCY:3},logDocuments:function(){y.info("Documents = ",Tn)},getRootDoc:function(){return Fe},setRootDoc:function(t){y.info("Setting root doc",t),Fe=t},getRootDocV2:function(){return Ke({id:"root"},{id:"root",doc:Fe},!0),{id:"root",doc:Fe}},extract:function(t){var e;e=t.doc?t.doc:t,y.info(e),yr(),y.info("Extract",e),e.forEach(function(r){r.stmt==="state"&&on(r.id,r.type,r.doc,r.description,r.note),r.stmt==="relation"&&In(r.state1.id,r.state2.id,r.description)})},trimColon:function(t){return t&&t[0]===":"?t.substr(1).trim():t.trim()},getTitle:Uo,setTitle:mo,getAccDescription:_s,setAccDescription:bs};var zc={};function Vl(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,a=new Array(e);r<e;r++)a[r]=t[r];return a}var na,wb=function(t,e,r){var a,c=$t().state.padding,u=2*$t().state.padding,h=t.node().getBBox(),g=h.width,x=h.x,_=t.append("text").attr("x",0).attr("y",$t().state.titleShift).attr("font-size",$t().state.fontSize).attr("class","state-title").text(e.id),N=_.node().getBBox().width+u,F=Math.max(N,g);F===g&&(F+=u);var P=t.node().getBBox();e.doc,a=x-c,N>g&&(a=(g-F)/2+c),Math.abs(x-P.x)<c&&N>g&&(a=x-(N-g)/2);var H=1-$t().state.textHeight;return t.insert("rect",":first-child").attr("x",a).attr("y",H).attr("class",r?"alt-composit":"composit").attr("width",F).attr("height",P.height+$t().state.textHeight+$t().state.titleShift+1).attr("rx","0"),_.attr("x",a+c),N<=g&&_.attr("x",x+(F-u)/2-N/2+c),t.insert("rect",":first-child").attr("x",a).attr("y",$t().state.titleShift-$t().state.textHeight-$t().state.padding).attr("width",F).attr("height",3*$t().state.textHeight).attr("rx",$t().state.radius),t.insert("rect",":first-child").attr("x",a).attr("y",$t().state.titleShift-$t().state.textHeight-$t().state.padding).attr("width",F).attr("height",P.height+3+2*$t().state.textHeight).attr("rx",$t().state.radius),t},kb=function(t,e){e.attr("class","state-note");var r=e.append("rect").attr("x",0).attr("y",$t().state.padding),a=function(h,g,x,_){var N=0,F=_.append("text");F.style("text-anchor","start"),F.attr("class","noteText");var P,H=h.replace(/\r\n/g,"<br/>"),ct=(H=H.replace(/\n/g,"<br/>")).split(Jn.lineBreakRegex),J=1.25*$t().state.noteMargin,yt=function(Tt,qt){var ee=typeof Symbol!="undefined"&&Tt[Symbol.iterator]||Tt["@@iterator"];if(!ee){if(Array.isArray(Tt)||(ee=function(bt,ut){if(bt){if(typeof bt=="string")return Vl(bt,ut);var Nt=Object.prototype.toString.call(bt).slice(8,-1);return Nt==="Object"&&bt.constructor&&(Nt=bt.constructor.name),Nt==="Map"||Nt==="Set"?Array.from(bt):Nt==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Nt)?Vl(bt,ut):void 0}}(Tt))||qt&&Tt&&typeof Tt.length=="number"){ee&&(Tt=ee);var Ot=0,Xt=function(){};return{s:Xt,n:function(){return Ot>=Tt.length?{done:!0}:{done:!1,value:Tt[Ot++]}},e:function(bt){throw bt},f:Xt}}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 Ht,Et=!0,Mt=!1;return{s:function(){ee=ee.call(Tt)},n:function(){var bt=ee.next();return Et=bt.done,bt},e:function(bt){Mt=!0,Ht=bt},f:function(){try{Et||ee.return==null||ee.return()}finally{if(Mt)throw Ht}}}}(ct);try{for(yt.s();!(P=yt.n()).done;){var ft=P.value.trim();if(ft.length>0){var kt=F.append("tspan");kt.text(ft),J===0&&(J+=kt.node().getBBox().height),N+=J,kt.attr("x",0+$t().state.noteMargin),kt.attr("y",0+N+1.25*$t().state.noteMargin)}}}catch(Tt){yt.e(Tt)}finally{yt.f()}return{textWidth:F.node().getBBox().width,textHeight:N}}(t,0,0,e.append("g")),c=a.textWidth,u=a.textHeight;return r.attr("height",u+2*$t().state.noteMargin),r.attr("width",c+2*$t().state.noteMargin),r},Su=function(t,e){var r=e.id,a={id:r,label:e.id,width:0,height:0},c=t.append("g").attr("id",r).attr("class","stateGroup");e.type==="start"&&function(g){g.append("circle").attr("class","start-state").attr("r",$t().state.sizeUnit).attr("cx",$t().state.padding+$t().state.sizeUnit).attr("cy",$t().state.padding+$t().state.sizeUnit)}(c),e.type==="end"&&function(g){g.append("circle").attr("class","end-state-outer").attr("r",$t().state.sizeUnit+$t().state.miniPadding).attr("cx",$t().state.padding+$t().state.sizeUnit+$t().state.miniPadding).attr("cy",$t().state.padding+$t().state.sizeUnit+$t().state.miniPadding),g.append("circle").attr("class","end-state-inner").attr("r",$t().state.sizeUnit).attr("cx",$t().state.padding+$t().state.sizeUnit+2).attr("cy",$t().state.padding+$t().state.sizeUnit+2)}(c),e.type!=="fork"&&e.type!=="join"||function(g,x){var _=$t().state.forkWidth,N=$t().state.forkHeight;if(x.parentId){var F=_;_=N,N=F}g.append("rect").style("stroke","black").style("fill","black").attr("width",_).attr("height",N).attr("x",$t().state.padding).attr("y",$t().state.padding)}(c,e),e.type==="note"&&kb(e.note.text,c),e.type==="divider"&&function(g){g.append("line").style("stroke","grey").style("stroke-dasharray","3").attr("x1",$t().state.textHeight).attr("class","divider").attr("x2",2*$t().state.textHeight).attr("y1",0).attr("y2",0)}(c),e.type==="default"&&e.descriptions.length===0&&function(g,x){var _=g.append("text").attr("x",2*$t().state.padding).attr("y",$t().state.textHeight+2*$t().state.padding).attr("font-size",$t().state.fontSize).attr("class","state-title").text(x.id).node().getBBox();g.insert("rect",":first-child").attr("x",$t().state.padding).attr("y",$t().state.padding).attr("width",_.width+2*$t().state.padding).attr("height",_.height+2*$t().state.padding).attr("rx",$t().state.radius)}(c,e),e.type==="default"&&e.descriptions.length>0&&function(g,x){var _=g.append("text").attr("x",2*$t().state.padding).attr("y",$t().state.textHeight+1.3*$t().state.padding).attr("font-size",$t().state.fontSize).attr("class","state-title").text(x.descriptions[0]).node().getBBox(),N=_.height,F=g.append("text").attr("x",$t().state.padding).attr("y",N+.4*$t().state.padding+$t().state.dividerMargin+$t().state.textHeight).attr("class","state-description"),P=!0,H=!0;x.descriptions.forEach(function(ft){P||(function(kt,Tt,qt){var ee=kt.append("tspan").attr("x",2*$t().state.padding).text(Tt);qt||ee.attr("dy",$t().state.textHeight)}(F,ft,H),H=!1),P=!1});var ct=g.append("line").attr("x1",$t().state.padding).attr("y1",$t().state.padding+N+$t().state.dividerMargin/2).attr("y2",$t().state.padding+N+$t().state.dividerMargin/2).attr("class","descr-divider"),J=F.node().getBBox(),yt=Math.max(J.width,_.width);ct.attr("x2",yt+3*$t().state.padding),g.insert("rect",":first-child").attr("x",$t().state.padding).attr("y",$t().state.padding).attr("width",yt+2*$t().state.padding).attr("height",J.height+N+2*$t().state.padding).attr("rx",$t().state.radius)}(c,e);var u,h=c.node().getBBox();return a.width=h.width+2*$t().state.padding,a.height=h.height+2*$t().state.padding,u=a,zc[r]=u,a},Q2=0;Ct.parser.yy=qr;var K2={},z_=function t(e,r,a,c,u,h){var g,x=new(Ii()).Graph({compound:!0,multigraph:!0}),_=!0;for(g=0;g<e.length;g++)if(e[g].stmt==="relation"){_=!1;break}a?x.setGraph({rankdir:"LR",multigraph:!0,compound:!0,ranker:"tight-tree",ranksep:_?1:na.edgeLengthFactor,nodeSep:_?1:50,isMultiGraph:!0}):x.setGraph({rankdir:"TB",multigraph:!0,compound:!0,ranksep:_?1:na.edgeLengthFactor,nodeSep:_?1:50,ranker:"tight-tree",isMultiGraph:!0}),x.setDefaultEdgeLabel(function(){return{}}),qr.extract(e);for(var N=qr.getStates(),F=qr.getRelations(),P=Object.keys(N),H=0;H<P.length;H++){var ct=N[P[H]];a&&(ct.parentId=a);var J=void 0;if(ct.doc){var yt=r.append("g").attr("id",ct.id).attr("class","stateGroup");J=t(ct.doc,yt,ct.id,!c,u,h);var ft=(yt=wb(yt,ct,c)).node().getBBox();J.width=ft.width,J.height=ft.height+na.padding/2,K2[ct.id]={y:na.compositTitleSize}}else J=Su(r,ct);if(ct.note){var kt={descriptions:[],id:ct.id+"-note",note:ct.note,type:"note"},Tt=Su(r,kt);ct.note.position==="left of"?(x.setNode(J.id+"-note",Tt),x.setNode(J.id,J)):(x.setNode(J.id,J),x.setNode(J.id+"-note",Tt)),x.setParent(J.id,J.id+"-group"),x.setParent(J.id+"-note",J.id+"-group")}else x.setNode(J.id,J)}y.debug("Count=",x.nodeCount(),x);var qt=0;F.forEach(function(Ht){var Et;qt++,y.debug("Setting edge",Ht),x.setEdge(Ht.id1,Ht.id2,{relation:Ht,width:(Et=Ht.title,Et?Et.length*na.fontSizeFactor:1),height:na.labelHeight*Jn.getRows(Ht.title).length,labelpos:"c"},"id"+qt)}),m1().layout(x),y.debug("Graph after layout",x.nodes());var ee=r.node();x.nodes().forEach(function(Ht){Ht!==void 0&&x.node(Ht)!==void 0?(y.warn("Node "+Ht+": "+JSON.stringify(x.node(Ht))),u.select("#"+ee.id+" #"+Ht).attr("transform","translate("+(x.node(Ht).x-x.node(Ht).width/2)+","+(x.node(Ht).y+(K2[Ht]?K2[Ht].y:0)-x.node(Ht).height/2)+" )"),u.select("#"+ee.id+" #"+Ht).attr("data-x-shift",x.node(Ht).x-x.node(Ht).width/2),h.querySelectorAll("#"+ee.id+" #"+Ht+" .divider").forEach(function(Et){var Mt=Et.parentElement,bt=0,ut=0;Mt&&(Mt.parentElement&&(bt=Mt.parentElement.getBBox().width),ut=parseInt(Mt.getAttribute("data-x-shift"),10),Number.isNaN(ut)&&(ut=0)),Et.setAttribute("x1",0-ut+8),Et.setAttribute("x2",bt-ut-8)})):y.debug("No Node "+Ht+": "+JSON.stringify(x.node(Ht)))});var Ot=ee.getBBox();x.edges().forEach(function(Ht){Ht!==void 0&&x.edge(Ht)!==void 0&&(y.debug("Edge "+Ht.v+" -> "+Ht.w+": "+JSON.stringify(x.edge(Ht))),function(Et,Mt,bt){Mt.points=Mt.points.filter(function(_n){return!Number.isNaN(_n.y)});var ut=Mt.points,Nt=No().x(function(_n){return _n.x}).y(function(_n){return _n.y}).curve(Wr),pt=Et.append("path").attr("d",Nt(ut)).attr("id","edge"+Q2).attr("class","transition"),me="";if($t().state.arrowMarkerAbsolute&&(me=(me=(me=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search).replace(/\(/g,"\\(")).replace(/\)/g,"\\)")),pt.attr("marker-end","url("+me+"#"+function(_n){switch(_n){case qr.relationType.AGGREGATION:return"aggregation";case qr.relationType.EXTENSION:return"extension";case qr.relationType.COMPOSITION:return"composition";case qr.relationType.DEPENDENCY:return"dependency"}}(qr.relationType.DEPENDENCY)+"End)"),bt.title!==void 0){for(var ye=Et.append("g").attr("class","stateLabel"),re=tr.calcLabelPosition(Mt.points),Ce=re.x,se=re.y,ve=Jn.getRows(bt.title),ge=0,He=[],Ge=0,an=0,cn=0;cn<=ve.length;cn++){var We=ye.append("text").attr("text-anchor","middle").text(ve[cn]).attr("x",Ce).attr("y",se+ge),lr=We.node().getBBox();if(Ge=Math.max(Ge,lr.width),an=Math.min(an,lr.x),y.info(lr.x,Ce,se+ge),ge===0){var _r=We.node().getBBox();ge=_r.height,y.info("Title height",ge,se)}He.push(We)}var qn=ge*ve.length;if(ve.length>1){var Xr=(ve.length-1)*ge*.5;He.forEach(function(_n,jn){return _n.attr("y",se+jn*ge-Xr)}),qn=ge*ve.length}var mr=ye.node().getBBox();ye.insert("rect",":first-child").attr("class","box").attr("x",Ce-Ge/2-$t().state.padding/2).attr("y",se-qn/2-$t().state.padding/2-3.5).attr("width",Ge+$t().state.padding).attr("height",qn+$t().state.padding),y.info(mr)}Q2++}(r,x.edge(Ht),x.edge(Ht).relation))}),Ot=ee.getBBox();var Xt={id:a||"root",label:a||"root",width:0,height:0};return Xt.width=Ot.width+2*na.padding,Xt.height=Ot.height+2*na.padding,y.debug("Doc rendered",Xt,x),Xt};const _o=function(t,e){na=$t().state;var r,a=$t().securityLevel;a==="sandbox"&&(r=Me("#i"+e));var c=Me(a==="sandbox"?r.nodes()[0].contentDocument.body:"body"),u=a==="sandbox"?r.nodes()[0].contentDocument:document;Ct.parser.yy.clear(),Ct.parser.parse(t),y.debug("Rendering diagram "+t);var h=c.select("[id='".concat(e,"']"));h.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(Ii()).Graph({multigraph:!0,compound:!0,rankdir:"RL"}).setDefaultEdgeLabel(function(){return{}});var g=qr.getRootDoc();z_(g,h,void 0,!1,c,u);var x=na.padding,_=h.node().getBBox(),N=_.width+2*x,F=_.height+2*x;Ra(h,F,1.75*N,na.useMaxWidth),h.attr("viewBox","".concat(_.x-na.padding," ").concat(_.y-na.padding," ")+N+" "+F),Fa(Ct.parser.yy,h,e)};var Y6={},Nr={},Tb=function(t,e,r,a){if(r.id!=="root"){var c="rect";r.start===!0&&(c="start"),r.start===!1&&(c="end"),r.type!=="default"&&(c=r.type),Nr[r.id]||(Nr[r.id]={id:r.id,shape:c,description:Jn.sanitizeText(r.id,$t()),classes:"statediagram-state"}),r.description&&(Array.isArray(Nr[r.id].description)?(Nr[r.id].shape="rectWithTitle",Nr[r.id].description.push(r.description)):Nr[r.id].description.length>0?(Nr[r.id].shape="rectWithTitle",Nr[r.id].description===r.id?Nr[r.id].description=[r.description]:Nr[r.id].description=[Nr[r.id].description,r.description]):(Nr[r.id].shape="rect",Nr[r.id].description=r.description),Nr[r.id].description=Jn.sanitizeTextOrArray(Nr[r.id].description,$t())),Nr[r.id].description.length===1&&Nr[r.id].shape==="rectWithTitle"&&(Nr[r.id].shape="rect"),!Nr[r.id].type&&r.doc&&(y.info("Setting cluster for ",r.id,U_(r)),Nr[r.id].type="group",Nr[r.id].dir=U_(r),Nr[r.id].shape=r.type==="divider"?"divider":"roundedWithTitle",Nr[r.id].classes=Nr[r.id].classes+" "+(a?"statediagram-cluster statediagram-cluster-alt":"statediagram-cluster"));var u={labelStyle:"",shape:Nr[r.id].shape,labelText:Nr[r.id].description,classes:Nr[r.id].classes,style:"",id:r.id,dir:Nr[r.id].dir,domId:"state-"+r.id+"-"+Gl,type:Nr[r.id].type,padding:15};if(r.note){var h={labelStyle:"",shape:"note",labelText:r.note.text,classes:"statediagram-note",style:"",id:r.id+"----note-"+Gl,domId:"state-"+r.id+"----note-"+Gl,type:Nr[r.id].type,padding:15},g={labelStyle:"",shape:"noteGroup",labelText:r.note.text,classes:Nr[r.id].classes,style:"",id:r.id+"----parent",domId:"state-"+r.id+"----parent-"+Gl,type:"group",padding:0};Gl++,t.setNode(r.id+"----parent",g),t.setNode(h.id,h),t.setNode(r.id,u),t.setParent(r.id,r.id+"----parent"),t.setParent(h.id,r.id+"----parent");var x=r.id,_=h.id;r.note.position==="left of"&&(x=h.id,_=r.id),t.setEdge(x,_,{arrowhead:"none",arrowType:"",style:"fill:none",labelStyle:"",classes:"transition note-edge",arrowheadStyle:"fill: #333",labelpos:"c",labelType:"text",thickness:"normal"})}else t.setNode(r.id,u)}e&&e.id!=="root"&&(y.trace("Setting node ",r.id," to be child of its parent ",e.id),t.setParent(r.id,e.id)),r.doc&&(y.trace("Adding nodes children "),z6(t,r,r.doc,!a))},Gl=0,z6=function(t,e,r,a){y.trace("items",r),r.forEach(function(c){if(c.stmt==="state"||c.stmt==="default")Tb(t,e,c,a);else if(c.stmt==="relation"){Tb(t,e,c.state1,a),Tb(t,e,c.state2,a);var u={id:"edge"+Gl,arrowhead:"normal",arrowTypeEnd:"arrow_barb",style:"fill:none",labelStyle:"",label:Jn.sanitizeText(c.description,$t()),arrowheadStyle:"fill: #333",labelpos:"c",labelType:"text",thickness:"normal",classes:"transition"},h=c.state1.id,g=c.state2.id;t.setEdge(h,g,u,Gl),Gl++}})},U_=function(t,e){var r=e||"TB";if(t.doc)for(var a=0;a<t.doc.length;a++){var c=t.doc[a];c.stmt==="dir"&&(r=c.value)}return r};const o6=function(t){for(var e=Object.keys(t),r=0;r<e.length;r++)Y6[e[r]]=t[e[r]]};function s6(t){return function(e){if(Array.isArray(e))return q_(e)}(t)||function(e){if(typeof Symbol!="undefined"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}(t)||function(e,r){if(e){if(typeof e=="string")return q_(e,r);var a=Object.prototype.toString.call(e).slice(8,-1);return a==="Object"&&e.constructor&&(a=e.constructor.name),a==="Map"||a==="Set"?Array.from(e):a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?q_(e,r):void 0}}(t)||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 q_(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,a=new Array(e);r<e;r++)a[r]=t[r];return a}var _0="",$_=[],x0=[],w0=[],c6=function(){for(var t=!0,e=0;e<w0.length;e++)w0[e].processed,t=t&&w0[e].processed;return t};const u6={parseDirective:function(t,e,r){Gi.parseDirective(this,t,e,r)},getConfig:function(){return $t().journey},clear:function(){$_.length=0,x0.length=0,_0="",w0.length=0,vs()},setTitle:mo,getTitle:Uo,setAccDescription:bs,getAccDescription:_s,addSection:function(t){_0=t,$_.push(t)},getSections:function(){return $_},getTasks:function(){for(var t=c6(),e=0;!t&&e<100;)t=c6(),e++;return x0.push.apply(x0,w0),x0},addTask:function(t,e){var r=e.substr(1).split(":"),a=0,c=[];r.length===1?(a=Number(r[0]),c=[]):(a=Number(r[0]),c=r[1].split(","));var u=c.map(function(g){return g.trim()}),h={section:_0,type:_0,people:u,task:t,score:a};w0.push(h)},addTaskOrg:function(t){var e={section:_0,type:_0,description:t,task:t,classes:[]};x0.push(e)},getActors:function(){return t=[],x0.forEach(function(e){e.people&&t.push.apply(t,s6(e.people))}),s6(new Set(t)).sort();var t}};var Xl=p(9763),U6=p.n(Xl),l6=function(t,e){var r=t.append("rect");return r.attr("x",e.x),r.attr("y",e.y),r.attr("fill",e.fill),r.attr("stroke",e.stroke),r.attr("width",e.width),r.attr("height",e.height),r.attr("rx",e.rx),r.attr("ry",e.ry),e.class!==void 0&&r.attr("class",e.class),r},h6=function(t,e){var r=t.append("circle");return r.attr("cx",e.cx),r.attr("cy",e.cy),r.attr("class","actor-"+e.pos),r.attr("fill",e.fill),r.attr("stroke",e.stroke),r.attr("r",e.r),r.class!==void 0&&r.attr("class",r.class),e.title!==void 0&&r.append("title").text(e.title),r},f6=-1,d6=function(){function t(c,u,h,g,x,_,N,F){a(u.append("text").attr("x",h+x/2).attr("y",g+_/2+5).style("font-color",F).style("text-anchor","middle").text(c),N)}function e(c,u,h,g,x,_,N,F,P){for(var H=F.taskFontSize,ct=F.taskFontFamily,J=c.split(/<br\s*\/?>/gi),yt=0;yt<J.length;yt++){var ft=yt*H-H*(J.length-1)/2,kt=u.append("text").attr("x",h+x/2).attr("y",g).attr("fill",P).style("text-anchor","middle").style("font-size",H).style("font-family",ct);kt.append("tspan").attr("x",h+x/2).attr("dy",ft).text(J[yt]),kt.attr("y",g+_/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),a(kt,N)}}function r(c,u,h,g,x,_,N,F){var P=u.append("switch"),H=P.append("foreignObject").attr("x",h).attr("y",g).attr("width",x).attr("height",_).attr("position","fixed").append("xhtml:div").style("display","table").style("height","100%").style("width","100%");H.append("div").attr("class","label").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(c),e(c,P,h,g,x,_,N,F),a(H,N)}function a(c,u){for(var h in u)h in u&&c.attr(h,u[h])}return function(c){return c.textPlacement==="fo"?r:c.textPlacement==="old"?t:e}}();const q6=h6,$6=function(t,e,r){var a=t.append("g"),c={x:0,y:0,width:100,anchor:"start",height:100,rx:0,ry:0};c.x=e.x,c.y=e.y,c.fill=e.fill,c.width=r.width,c.height=r.height,c.class="journey-section section-type-"+e.num,c.rx=3,c.ry=3,l6(a,c),d6(r)(e.text,a,c.x,c.y,c.width,c.height,{class:"journey-section section-type-"+e.num},r,e.colour)},H6=function(t,e){var r=e.text.replace(/<br\s*\/?>/gi," "),a=t.append("text");a.attr("x",e.x),a.attr("y",e.y),a.attr("class","legend"),a.style("text-anchor",e.anchor),e.class!==void 0&&a.attr("class",e.class);var c=a.append("tspan");return c.attr("x",e.x+2*e.textMargin),c.text(r),a},W6=function(t,e,r){var a,c,u,h=e.x+r.width/2,g=t.append("g");f6++,g.append("line").attr("id","task"+f6).attr("x1",h).attr("y1",e.y).attr("x2",h).attr("y2",450).attr("class","task-line").attr("stroke-width","1px").attr("stroke-dasharray","4 2").attr("stroke","#666"),a=g,c={cx:h,cy:300+30*(5-e.score),score:e.score},a.append("circle").attr("cx",c.cx).attr("cy",c.cy).attr("class","face").attr("r",15).attr("stroke-width",2).attr("overflow","visible"),(u=a.append("g")).append("circle").attr("cx",c.cx-5).attr("cy",c.cy-5).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666"),u.append("circle").attr("cx",c.cx+5).attr("cy",c.cy-5).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666"),c.score>3?function(N){var F=Np().startAngle(Math.PI/2).endAngle(Math.PI/2*3).innerRadius(7.5).outerRadius(6.8181818181818175);N.append("path").attr("class","mouth").attr("d",F).attr("transform","translate("+c.cx+","+(c.cy+2)+")")}(u):c.score<3?function(N){var F=Np().startAngle(3*Math.PI/2).endAngle(Math.PI/2*5).innerRadius(7.5).outerRadius(6.8181818181818175);N.append("path").attr("class","mouth").attr("d",F).attr("transform","translate("+c.cx+","+(c.cy+7)+")")}(u):function(N){N.append("line").attr("class","mouth").attr("stroke",2).attr("x1",c.cx-5).attr("y1",c.cy+7).attr("x2",c.cx+5).attr("y2",c.cy+7).attr("class","mouth").attr("stroke-width","1px").attr("stroke","#666")}(u);var x={x:0,y:0,width:100,anchor:"start",height:100,rx:0,ry:0};x.x=e.x,x.y=e.y,x.fill=e.fill,x.width=r.width,x.height=r.height,x.class="task task-type-"+e.num,x.rx=3,x.ry=3,l6(g,x);var _=e.x+14;e.people.forEach(function(N){var F=e.actors[N].color,P={cx:_,cy:e.y,r:7,fill:F,stroke:"#000",title:N,pos:e.actors[N].position};h6(g,P),_+=10}),d6(r)(e.task,g,x.x,x.y,x.width,x.height,{class:"task"},r,e.colour)};Xl.parser.yy=u6;var Au={},H_=$t().journey,q1=$t().journey.leftMargin,Ss={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(t,e,r,a){t[e]===void 0?t[e]=r:t[e]=a(r,t[e])},updateBounds:function(t,e,r,a){var c=$t().journey,u=this,h=0;this.sequenceItems.forEach(function(g){h++;var x=u.sequenceItems.length-h+1;u.updateVal(g,"starty",e-x*c.boxMargin,Math.min),u.updateVal(g,"stopy",a+x*c.boxMargin,Math.max),u.updateVal(Ss.data,"startx",t-x*c.boxMargin,Math.min),u.updateVal(Ss.data,"stopx",r+x*c.boxMargin,Math.max),u.updateVal(g,"startx",t-x*c.boxMargin,Math.min),u.updateVal(g,"stopx",r+x*c.boxMargin,Math.max),u.updateVal(Ss.data,"starty",e-x*c.boxMargin,Math.min),u.updateVal(Ss.data,"stopy",a+x*c.boxMargin,Math.max)})},insert:function(t,e,r,a){var c=Math.min(t,r),u=Math.max(t,r),h=Math.min(e,a),g=Math.max(e,a);this.updateVal(Ss.data,"startx",c,Math.min),this.updateVal(Ss.data,"starty",h,Math.min),this.updateVal(Ss.data,"stopx",u,Math.max),this.updateVal(Ss.data,"stopy",g,Math.max),this.updateBounds(c,h,u,g)},bumpVerticalPos:function(t){this.verticalPos=this.verticalPos+t,this.data.stopy=this.verticalPos},getVerticalPos:function(){return this.verticalPos},getBounds:function(){return this.data}},W_=H_.sectionFills,p6=H_.sectionColours;const g6=function(t){Object.keys(t).forEach(function(e){H_[e]=t[e]})},V6=function(t,e){var r=$t().journey;Xl.parser.yy.clear(),Xl.parser.parse(t+`
`);var a,c=$t().securityLevel;c==="sandbox"&&(a=Me("#i"+e));var u=Me(c==="sandbox"?a.nodes()[0].contentDocument.body:"body");c==="sandbox"&&a.nodes()[0].contentDocument,Ss.init();var h=u.select("#"+e);h.attr("xmlns:xlink","http://www.w3.org/1999/xlink"),h.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 g=Xl.parser.yy.getTasks(),x=Xl.parser.yy.getTitle(),_=Xl.parser.yy.getActors();for(var N in Au)delete Au[N];var F=0;_.forEach(function(yt){Au[yt]={color:r.actorColours[F%r.actorColours.length],position:F},F++}),function(yt){var ft=$t().journey,kt=60;Object.keys(Au).forEach(function(Tt){var qt=Au[Tt].color,ee={cx:20,cy:kt,r:7,fill:qt,stroke:"#000",pos:Au[Tt].position};q6(yt,ee);var Ot={x:40,y:kt+7,fill:"#666",text:Tt,textMargin:5|ft.boxTextMargin};H6(yt,Ot),kt+=20})}(h),Ss.insert(0,0,q1,50*Object.keys(Au).length),function(yt,ft,kt){for(var Tt=$t().journey,qt="",ee=kt+(2*Tt.height+Tt.diagramMarginY),Ot=0,Xt="#CCC",Ht="black",Et=0,Mt=0;Mt<ft.length;Mt++){var bt=ft[Mt];if(qt!==bt.section){Xt=W_[Ot%W_.length],Et=Ot%W_.length,Ht=p6[Ot%p6.length];var ut={x:Mt*Tt.taskMargin+Mt*Tt.width+q1,y:50,text:bt.section,fill:Xt,num:Et,colour:Ht};$6(yt,ut,Tt),qt=bt.section,Ot++}var Nt=bt.people.reduce(function(pt,me){return Au[me]&&(pt[me]=Au[me]),pt},{});bt.x=Mt*Tt.taskMargin+Mt*Tt.width+q1,bt.y=ee,bt.width=Tt.diagramMarginX,bt.height=Tt.diagramMarginY,bt.colour=Ht,bt.fill=Xt,bt.num=Et,bt.actors=Nt,W6(yt,bt,Tt),Ss.insert(bt.x,bt.y,bt.x+bt.width+Tt.taskMargin,450)}}(h,g,0);var P=Ss.getBounds();x&&h.append("text").text(x).attr("x",q1).attr("font-size","4ex").attr("font-weight","bold").attr("y",25);var H=P.stopy-P.starty+2*r.diagramMarginY,ct=q1+P.stopx+2*r.diagramMarginX;Ra(h,H,ct,r.useMaxWidth),h.append("line").attr("x1",q1).attr("y1",4*r.height).attr("x2",ct-q1-4).attr("y2",4*r.height).attr("stroke-width",4).attr("stroke","black").attr("marker-end","url(#arrowhead)");var J=x?70:0;h.attr("viewBox","".concat(P.startx," -25 ").concat(ct," ").concat(H+J)),h.attr("preserveAspectRatio","xMinYMin meet"),h.attr("height",H+J+25),Fa(Xl.parser.yy,h,e)};var G6={};const V_=function(t){return`g.classGroup text {
fill: `.concat(t.nodeBorder,`;
fill: `).concat(t.classText,`;
stroke: none;
font-family: `).concat(t.fontFamily,`;
font-size: 10px;
.title {
font-weight: bolder;
}
}
.nodeLabel, .edgeLabel {
color: `).concat(t.classText,`;
}
.edgeLabel .label rect {
fill: `).concat(t.mainBkg,`;
}
.label text {
fill: `).concat(t.classText,`;
}
.edgeLabel .label span {
background: `).concat(t.mainBkg,`;
}
.classTitle {
font-weight: bolder;
}
.node rect,
.node circle,
.node ellipse,
.node polygon,
.node path {
fill: `).concat(t.mainBkg,`;
stroke: `).concat(t.nodeBorder,`;
stroke-width: 1px;
}
.divider {
stroke: `).concat(t.nodeBorder,`;
stroke: 1;
}
g.clickable {
cursor: pointer;
}
g.classGroup rect {
fill: `).concat(t.mainBkg,`;
stroke: `).concat(t.nodeBorder,`;
}
g.classGroup line {
stroke: `).concat(t.nodeBorder,`;
stroke-width: 1;
}
.classLabel .box {
stroke: none;
stroke-width: 0;
fill: `).concat(t.mainBkg,`;
opacity: 0.5;
}
.classLabel .label {
fill: `).concat(t.nodeBorder,`;
font-size: 10px;
}
.relation {
stroke: `).concat(t.lineColor,`;
stroke-width: 1;
fill: none;
}
.dashed-line{
stroke-dasharray: 3;
}
#compositionStart, .composition {
fill: `).concat(t.lineColor,` !important;
stroke: `).concat(t.lineColor,` !important;
stroke-width: 1;
}
#compositionEnd, .composition {
fill: `).concat(t.lineColor,` !important;
stroke: `).concat(t.lineColor,` !important;
stroke-width: 1;
}
#dependencyStart, .dependency {
fill: `).concat(t.lineColor,` !important;
stroke: `).concat(t.lineColor,` !important;
stroke-width: 1;
}
#dependencyStart, .dependency {
fill: `).concat(t.lineColor,` !important;
stroke: `).concat(t.lineColor,` !important;
stroke-width: 1;
}
#extensionStart, .extension {
fill: `).concat(t.lineColor,` !important;
stroke: `).concat(t.lineColor,` !important;
stroke-width: 1;
}
#extensionEnd, .extension {
fill: `).concat(t.lineColor,` !important;
stroke: `).concat(t.lineColor,` !important;
stroke-width: 1;
}
#aggregationStart, .aggregation {
fill: `).concat(t.mainBkg,` !important;
stroke: `).concat(t.lineColor,` !important;
stroke-width: 1;
}
#aggregationEnd, .aggregation {
fill: `).concat(t.mainBkg,` !important;
stroke: `).concat(t.lineColor,` !important;
stroke-width: 1;
}
.edgeTerminals {
font-size: 11px;
}
`)},y6=function(t){return`.label {
font-family: `.concat(t.fontFamily,`;
color: `).concat(t.nodeTextColor||t.textColor,`;
}
.cluster-label text {
fill: `).concat(t.titleColor,`;
}
.cluster-label span {
color: `).concat(t.titleColor,`;
}
.label text,span {
fill: `).concat(t.nodeTextColor||t.textColor,`;
color: `).concat(t.nodeTextColor||t.textColor,`;
}
.node rect,
.node circle,
.node ellipse,
.node polygon,
.node path {
fill: `).concat(t.mainBkg,`;
stroke: `).concat(t.nodeBorder,`;
stroke-width: 1px;
}
.node .label {
text-align: center;
}
.node.clickable {
cursor: pointer;
}
.arrowheadPath {
fill: `).concat(t.arrowheadColor,`;
}
.edgePath .path {
stroke: `).concat(t.lineColor,`;
stroke-width: 2.0px;
}
.flowchart-link {
stroke: `).concat(t.lineColor,`;
fill: none;
}
.edgeLabel {
background-color: `).concat(t.edgeLabelBackground,`;
rect {
opacity: 0.5;
background-color: `).concat(t.edgeLabelBackground,`;
fill: `).concat(t.edgeLabelBackground,`;
}
text-align: center;
}
.cluster rect {
fill: `).concat(t.clusterBkg,`;
stroke: `).concat(t.clusterBorder,`;
stroke-width: 1px;
}
.cluster text {
fill: `).concat(t.titleColor,`;
}
.cluster span {
color: `).concat(t.titleColor,`;
}
/* .cluster div {
color: `).concat(t.titleColor,`;
} */
div.mermaidTooltip {
position: absolute;
text-align: center;
max-width: 200px;
padding: 2px;
font-family: `).concat(t.fontFamily,`;
font-size: 12px;
background: `).concat(t.tertiaryColor,`;
border: 1px solid `).concat(t.border2,`;
border-radius: 2px;
pointer-events: none;
z-index: 100;
}
`)},m6=function(t){return`
defs #statediagram-barbEnd {
fill: `.concat(t.transitionColor,`;
stroke: `).concat(t.transitionColor,`;
}
g.stateGroup text {
fill: `).concat(t.nodeBorder,`;
stroke: none;
font-size: 10px;
}
g.stateGroup text {
fill: `).concat(t.textColor,`;
stroke: none;
font-size: 10px;
}
g.stateGroup .state-title {
font-weight: bolder;
fill: `).concat(t.stateLabelColor,`;
}
g.stateGroup rect {
fill: `).concat(t.mainBkg,`;
stroke: `).concat(t.nodeBorder,`;
}
g.stateGroup line {
stroke: `).concat(t.lineColor,`;
stroke-width: 1;
}
.transition {
stroke: `).concat(t.transitionColor,`;
stroke-width: 1;
fill: none;
}
.stateGroup .composit {
fill: `).concat(t.background,`;
border-bottom: 1px
}
.stateGroup .alt-composit {
fill: #e0e0e0;
border-bottom: 1px
}
.state-note {
stroke: `).concat(t.noteBorderColor,`;
fill: `).concat(t.noteBkgColor,`;
text {
fill: `).concat(t.noteTextColor,`;
stroke: none;
font-size: 10px;
}
}
.stateLabel .box {
stroke: none;
stroke-width: 0;
fill: `).concat(t.mainBkg,`;
opacity: 0.5;
}
.edgeLabel .label rect {
fill: `).concat(t.labelBackgroundColor,`;
opacity: 0.5;
}
.edgeLabel .label text {
fill: `).concat(t.transitionLabelColor||t.tertiaryTextColor,`;
}
.label div .edgeLabel {
color: `).concat(t.transitionLabelColor||t.tertiaryTextColor,`;
}
.stateLabel text {
fill: `).concat(t.stateLabelColor,`;
font-size: 10px;
font-weight: bold;
}
.node circle.state-start {
fill: `).concat(t.specialStateColor,`;
stroke: `).concat(t.specialStateColor,`;
}
.node .fork-join {
fill: `).concat(t.specialStateColor,`;
stroke: `).concat(t.specialStateColor,`;
}
.node circle.state-end {
fill: `).concat(t.innerEndBackground,`;
stroke: `).concat(t.background,`;
stroke-width: 1.5
}
.end-state-inner {
fill: `).concat(t.compositeBackground||t.background,`;
// stroke: `).concat(t.background,`;
stroke-width: 1.5
}
.node rect {
fill: `).concat(t.stateBkg||t.mainBkg,`;
stroke: `).concat(t.stateBorder||t.nodeBorder,`;
stroke-width: 1px;
}
.node polygon {
fill: `).concat(t.mainBkg,`;
stroke: `).concat(t.stateBorder||t.nodeBorder,`;;
stroke-width: 1px;
}
#statediagram-barbEnd {
fill: `).concat(t.lineColor,`;
}
.statediagram-cluster rect {
fill: `).concat(t.compositeTitleBackground,`;
stroke: `).concat(t.stateBorder||t.nodeBorder,`;
stroke-width: 1px;
}
.cluster-label, .nodeLabel {
color: `).concat(t.stateLabelColor,`;
}
.statediagram-cluster rect.outer {
rx: 5px;
ry: 5px;
}
.statediagram-state .divider {
stroke: `).concat(t.stateBorder||t.nodeBorder,`;
}
.statediagram-state .title-state {
rx: 5px;
ry: 5px;
}
.statediagram-cluster.statediagram-cluster .inner {
fill: `).concat(t.compositeBackground||t.background,`;
}
.statediagram-cluster.statediagram-cluster-alt .inner {
fill: `).concat(t.altBackground?t.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(t.altBackground?t.altBackground:"#efefef",`;
}
.note-edge {
stroke-dasharray: 5;
}
.statediagram-note rect {
fill: `).concat(t.noteBkgColor,`;
stroke: `).concat(t.noteBorderColor,`;
stroke-width: 1px;
rx: 0;
ry: 0;
}
.statediagram-note rect {
fill: `).concat(t.noteBkgColor,`;
stroke: `).concat(t.noteBorderColor,`;
stroke-width: 1px;
rx: 0;
ry: 0;
}
.statediagram-note text {
fill: `).concat(t.noteTextColor,`;
}
.statediagram-note .nodeLabel {
color: `).concat(t.noteTextColor,`;
}
.statediagram .edgeLabel {
color: red; // `).concat(t.noteTextColor,`;
}
#dependencyStart, #dependencyEnd {
fill: `).concat(t.lineColor,`;
stroke: `).concat(t.lineColor,`;
stroke-width: 1;
}
`)};var X6={flowchart:y6,"flowchart-v2":y6,sequence:function(t){return`.actor {
stroke: `.concat(t.actorBorder,`;
fill: `).concat(t.actorBkg,`;
}
text.actor > tspan {
fill: `).concat(t.actorTextColor,`;
stroke: none;
}
.actor-line {
stroke: `).concat(t.actorLineColor,`;
}
.messageLine0 {
stroke-width: 1.5;
stroke-dasharray: none;
stroke: `).concat(t.signalColor,`;
}
.messageLine1 {
stroke-width: 1.5;
stroke-dasharray: 2, 2;
stroke: `).concat(t.signalColor,`;
}
#arrowhead path {
fill: `).concat(t.signalColor,`;
stroke: `).concat(t.signalColor,`;
}
.sequenceNumber {
fill: `).concat(t.sequenceNumberColor,`;
}
#sequencenumber {
fill: `).concat(t.signalColor,`;
}
#crosshead path {
fill: `).concat(t.signalColor,`;
stroke: `).concat(t.signalColor,`;
}
.messageText {
fill: `).concat(t.signalTextColor,`;
stroke: `).concat(t.signalTextColor,`;
}
.labelBox {
stroke: `).concat(t.labelBoxBorderColor,`;
fill: `).concat(t.labelBoxBkgColor,`;
}
.labelText, .labelText > tspan {
fill: `).concat(t.labelTextColor,`;
stroke: none;
}
.loopText, .loopText > tspan {
fill: `).concat(t.loopTextColor,`;
stroke: none;
}
.loopLine {
stroke-width: 2px;
stroke-dasharray: 2, 2;
stroke: `).concat(t.labelBoxBorderColor,`;
fill: `).concat(t.labelBoxBorderColor,`;
}
.note {
//stroke: #decc93;
stroke: `).concat(t.noteBorderColor,`;
fill: `).concat(t.noteBkgColor,`;
}
.noteText, .noteText > tspan {
fill: `).concat(t.noteTextColor,`;
stroke: none;
}
.activation0 {
fill: `).concat(t.activationBkgColor,`;
stroke: `).concat(t.activationBorderColor,`;
}
.activation1 {
fill: `).concat(t.activationBkgColor,`;
stroke: `).concat(t.activationBorderColor,`;
}
.activation2 {
fill: `).concat(t.activationBkgColor,`;
stroke: `).concat(t.activationBorderColor,`;
}
.actorPopupMenu {
position: absolute;
}
.actorPopupMenuPanel {
position: absolute;
fill: `).concat(t.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(t.actorBorder,`;
fill: `).concat(t.actorBkg,`;
}
.actor-man circle, line {
stroke: `).concat(t.actorBorder,`;
fill: `).concat(t.actorBkg,`;
stroke-width: 2px;
}
`)},gantt:function(t){return`
.mermaid-main-font {
font-family: "trebuchet ms", verdana, arial, sans-serif;
font-family: var(--mermaid-font-family);
}
.exclude-range {
fill: `.concat(t.excludeBkgColor,`;
}
.section {
stroke: none;
opacity: 0.2;
}
.section0 {
fill: `).concat(t.sectionBkgColor,`;
}
.section2 {
fill: `).concat(t.sectionBkgColor2,`;
}
.section1,
.section3 {
fill: `).concat(t.altSectionBkgColor,`;
opacity: 0.2;
}
.sectionTitle0 {
fill: `).concat(t.titleColor,`;
}
.sectionTitle1 {
fill: `).concat(t.titleColor,`;
}
.sectionTitle2 {
fill: `).concat(t.titleColor,`;
}
.sectionTitle3 {
fill: `).concat(t.titleColor,`;
}
.sectionTitle {
text-anchor: start;
// font-size: `).concat(t.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(t.gridColor,`;
opacity: 0.8;
shape-rendering: crispEdges;
text {
font-family: `).concat(t.fontFamily,`;
fill: `).concat(t.textColor,`;
}
}
.grid path {
stroke-width: 0;
}
/* Today line */
.today {
fill: none;
stroke: `).concat(t.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(t.ganttFontSize,`;
// }
.taskTextOutsideRight {
fill: `).concat(t.taskTextDarkColor,`;
text-anchor: start;
// font-size: `).concat(t.ganttFontSize,`;
font-family: 'trebuchet ms', verdana, arial, sans-serif;
font-family: var(--mermaid-font-family);
}
.taskTextOutsideLeft {
fill: `).concat(t.taskTextDarkColor,`;
text-anchor: end;
// font-size: `).concat(t.ganttFontSize,`;
}
/* Special case clickable */
.task.clickable {
cursor: pointer;
}
.taskText.clickable {
cursor: pointer;
fill: `).concat(t.taskTextClickableColor,` !important;
font-weight: bold;
}
.taskTextOutsideLeft.clickable {
cursor: pointer;
fill: `).concat(t.taskTextClickableColor,` !important;
font-weight: bold;
}
.taskTextOutsideRight.clickable {
cursor: pointer;
fill: `).concat(t.taskTextClickableColor,` !important;
font-weight: bold;
}
/* Specific task settings for the sections*/
.taskText0,
.taskText1,
.taskText2,
.taskText3 {
fill: `).concat(t.taskTextColor,`;
}
.task0,
.task1,
.task2,
.task3 {
fill: `).concat(t.taskBkgColor,`;
stroke: `).concat(t.taskBorderColor,`;
}
.taskTextOutside0,
.taskTextOutside2
{
fill: `).concat(t.taskTextOutsideColor,`;
}
.taskTextOutside1,
.taskTextOutside3 {
fill: `).concat(t.taskTextOutsideColor,`;
}
/* Active task */
.active0,
.active1,
.active2,
.active3 {
fill: `).concat(t.activeTaskBkgColor,`;
stroke: `).concat(t.activeTaskBorderColor,`;
}
.activeText0,
.activeText1,
.activeText2,
.activeText3 {
fill: `).concat(t.taskTextDarkColor,` !important;
}
/* Completed task */
.done0,
.done1,
.done2,
.done3 {
stroke: `).concat(t.doneTaskBorderColor,`;
fill: `).concat(t.doneTaskBkgColor,`;
stroke-width: 2;
}
.doneText0,
.doneText1,
.doneText2,
.doneText3 {
fill: `).concat(t.taskTextDarkColor,` !important;
}
/* Tasks on the critical line */
.crit0,
.crit1,
.crit2,
.crit3 {
stroke: `).concat(t.critBorderColor,`;
fill: `).concat(t.critBkgColor,`;
stroke-width: 2;
}
.activeCrit0,
.activeCrit1,
.activeCrit2,
.activeCrit3 {
stroke: `).concat(t.critBorderColor,`;
fill: `).concat(t.activeTaskBkgColor,`;
stroke-width: 2;
}
.doneCrit0,
.doneCrit1,
.doneCrit2,
.doneCrit3 {
stroke: `).concat(t.critBorderColor,`;
fill: `).concat(t.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(t.taskTextDarkColor,` !important;
}
.activeCritText0,
.activeCritText1,
.activeCritText2,
.activeCritText3 {
fill: `).concat(t.taskTextDarkColor,` !important;
}
.titleText {
text-anchor: middle;
font-size: 18px;
fill: `).concat(t.textColor,` ;
font-family: 'trebuchet ms', verdana, arial, sans-serif;
font-family: var(--mermaid-font-family);
}
`)},classDiagram:V_,"classDiagram-v2":V_,class:V_,stateDiagram:m6,state:m6,gitGraph:function(t){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(e){return`
.branch-label`.concat(e," { fill: ").concat(t["gitBranchLabel"+e],`; }
.commit`).concat(e," { stroke: ").concat(t["git"+e],"; fill: ").concat(t["git"+e],`; }
.commit-highlight`).concat(e," { stroke: ").concat(t["gitInv"+e],"; fill: ").concat(t["gitInv"+e],`; }
.label`).concat(e," { fill: ").concat(t["git"+e],`; }
.arrow`).concat(e," { stroke: ").concat(t["git"+e],`; }
`)}).join(`
`),`
.branch {
stroke-width: 1;
stroke: `).concat(t.lineColor,`;
stroke-dasharray: 2;
}
.commit-label { font-size: 10px; fill: `).concat(t.commitLabelColor,`;}
.commit-label-bkg { font-size: 10px; fill: `).concat(t.commitLabelBackground,`; opacity: 0.5; }
.tag-label { font-size: 10px; fill: `).concat(t.tagLabelColor,`;}
.tag-label-bkg { fill: `).concat(t.tagLabelBackground,"; stroke: ").concat(t.tagLabelBorder,`; }
.tag-hole { fill: `).concat(t.textColor,`; }
.commit-merge {
stroke: `).concat(t.primaryColor,`;
fill: `).concat(t.primaryColor,`;
}
.commit-reverse {
stroke: `).concat(t.primaryColor,`;
fill: `).concat(t.primaryColor,`;
stroke-width: 3;
}
.commit-highlight-outer {
}
.commit-highlight-inner {
stroke: `).concat(t.primaryColor,`;
fill: `).concat(t.primaryColor,`;
}
.arrow { stroke-width: 8; stroke-linecap: round; fill: none}
}
`)},info:function(){return""},pie:function(t){return`
.pieCircle{
stroke: `.concat(t.pieStrokeColor,`;
stroke-width : `).concat(t.pieStrokeWidth,`;
opacity : `).concat(t.pieOpacity,`;
}
.pieTitleText {
text-anchor: middle;
font-size: `).concat(t.pieTitleTextSize,`;
fill: `).concat(t.pieTitleTextColor,`;
font-family: `).concat(t.fontFamily,`;
}
.slice {
font-family: `).concat(t.fontFamily,`;
fill: `).concat(t.pieSectionTextColor,`;
font-size:`).concat(t.pieSectionTextSize,`;
// fill: white;
}
.legend text {
fill: `).concat(t.pieLegendTextColor,`;
font-family: `).concat(t.fontFamily,`;
font-size: `).concat(t.pieLegendTextSize,`;
}
`)},er:function(t){return`
.entityBox {
fill: `.concat(t.mainBkg,`;
stroke: `).concat(t.nodeBorder,`;
}
.attributeBoxOdd {
fill: #ffffff;
stroke: `).concat(t.nodeBorder,`;
}
.attributeBoxEven {
fill: #f2f2f2;
stroke: `).concat(t.nodeBorder,`;
}
.relationshipLabelBox {
fill: `).concat(t.tertiaryColor,`;
opacity: 0.7;
background-color: `).concat(t.tertiaryColor,`;
rect {
opacity: 0.5;
}
}
.relationshipLine {
stroke: `).concat(t.lineColor,`;
}
`)},journey:function(t){return`.label {
font-family: 'trebuchet ms', verdana, arial, sans-serif;
font-family: var(--mermaid-font-family);
color: `.concat(t.textColor,`;
}
.mouth {
stroke: #666;
}
line {
stroke: `).concat(t.textColor,`
}
.legend {
fill: `).concat(t.textColor,`;
}
.label text {
fill: #333;
}
.label {
color: `).concat(t.textColor,`
}
.face {
`).concat(t.faceColor?"fill: ".concat(t.faceColor):"fill: #FFF8DC",`;
stroke: #999;
}
.node rect,
.node circle,
.node ellipse,
.node polygon,
.node path {
fill: `).concat(t.mainBkg,`;
stroke: `).concat(t.nodeBorder,`;
stroke-width: 1px;
}
.node .label {
text-align: center;
}
.node.clickable {
cursor: pointer;
}
.arrowheadPath {
fill: `).concat(t.arrowheadColor,`;
}
.edgePath .path {
stroke: `).concat(t.lineColor,`;
stroke-width: 1.5px;
}
.flowchart-link {
stroke: `).concat(t.lineColor,`;
fill: none;
}
.edgeLabel {
background-color: `).concat(t.edgeLabelBackground,`;
rect {
opacity: 0.5;
}
text-align: center;
}
.cluster rect {
}
.cluster text {
fill: `).concat(t.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(t.tertiaryColor,`;
border: 1px solid `).concat(t.border2,`;
border-radius: 2px;
pointer-events: none;
z-index: 100;
}
.task-type-0, .section-type-0 {
`).concat(t.fillType0?"fill: ".concat(t.fillType0):"",`;
}
.task-type-1, .section-type-1 {
`).concat(t.fillType0?"fill: ".concat(t.fillType1):"",`;
}
.task-type-2, .section-type-2 {
`).concat(t.fillType0?"fill: ".concat(t.fillType2):"",`;
}
.task-type-3, .section-type-3 {
`).concat(t.fillType0?"fill: ".concat(t.fillType3):"",`;
}
.task-type-4, .section-type-4 {
`).concat(t.fillType0?"fill: ".concat(t.fillType4):"",`;
}
.task-type-5, .section-type-5 {
`).concat(t.fillType0?"fill: ".concat(t.fillType5):"",`;
}
.task-type-6, .section-type-6 {
`).concat(t.fillType0?"fill: ".concat(t.fillType6):"",`;
}
.task-type-7, .section-type-7 {
`).concat(t.fillType0?"fill: ".concat(t.fillType7):"",`;
}
.actor-0 {
`).concat(t.actor0?"fill: ".concat(t.actor0):"",`;
}
.actor-1 {
`).concat(t.actor1?"fill: ".concat(t.actor1):"",`;
}
.actor-2 {
`).concat(t.actor2?"fill: ".concat(t.actor2):"",`;
}
.actor-3 {
`).concat(t.actor3?"fill: ".concat(t.actor3):"",`;
}
.actor-4 {
`).concat(t.actor4?"fill: ".concat(t.actor4):"",`;
}
.actor-5 {
`).concat(t.actor5?"fill: ".concat(t.actor5):"",`;
}
}
`)},requirement:function(t){return`
marker {
fill: `.concat(t.relationColor,`;
stroke: `).concat(t.relationColor,`;
}
marker.cross {
stroke: `).concat(t.lineColor,`;
}
svg {
font-family: `).concat(t.fontFamily,`;
font-size: `).concat(t.fontSize,`;
}
.reqBox {
fill: `).concat(t.requirementBackground,`;
fill-opacity: 100%;
stroke: `).concat(t.requirementBorderColor,`;
stroke-width: `).concat(t.requirementBorderSize,`;
}
.reqTitle, .reqLabel{
fill: `).concat(t.requirementTextColor,`;
}
.reqLabelBox {
fill: `).concat(t.relationLabelBackground,`;
fill-opacity: 100%;
}
.req-title-line {
stroke: `).concat(t.requirementBorderColor,`;
stroke-width: `).concat(t.requirementBorderSize,`;
}
.relationshipLine {
stroke: `).concat(t.relationColor,`;
stroke-width: 1;
}
.relationshipLabel {
fill: `).concat(t.relationLabelColor,`;
}
`)}};function G_(t){return G_=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},G_(t)}var v6=function(t){var e=t;return(e=(e=e.replace(/fl°°/g,function(){return"&#"})).replace(/fl°/g,function(){return"&"})).replace(/¶ß/g,function(){return";"})},J2={};function b6(t){var e;i0(t.flowchart),X3(t.flowchart),t.sequenceDiagram!==void 0&&ht.setConf(Hi(t.sequence,t.sequenceDiagram)),ht.setConf(t.sequence),t.gantt,g2(t.class),t.state,o6(t.state),$2(t.class),F3(t.er),g6(t.journey),G2(t.requirement),e=t.class,Object.keys(e).forEach(function(r){G6[r]=e[r]})}var Z6=Object.freeze({render:function(t,e,r,a){d1();var c=e.replace(/\r\n?/g,`
`),u=tr.detectInit(c);u&&(qd(u),o2(u));var h=$t();y.debug(h),e.length>h.maxTextSize&&(c="graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa");var g=Me("body");if(a!==void 0){if(h.securityLevel==="sandbox"){var x=Me("body").append("iframe").attr("id","i"+t).attr("style","width: 100%; height: 100%;").attr("sandbox","");(g=Me(x.nodes()[0].contentDocument.body)).node().style.margin=0}if(a.innerHTML="",h.securityLevel==="sandbox"){var _=Me(a).append("iframe").attr("id","i"+t).attr("style","width: 100%; height: 100%;").attr("sandbox","");(g=Me(_.nodes()[0].contentDocument.body)).node().style.margin=0}else g=Me(a);g.append("div").attr("id","d"+t).attr("style","font-family: "+h.fontFamily).append("svg").attr("id",t).attr("width","100%").attr("xmlns","http://www.w3.org/2000/svg").append("g")}else{var N,F=document.getElementById(t);if(F&&F.remove(),(N=h.securityLevel!=="sandbox"?document.querySelector("#d"+t):document.querySelector("#i"+t))&&N.remove(),h.securityLevel==="sandbox"){var P=Me("body").append("iframe").attr("id","i"+t).attr("style","width: 100%; height: 100%;").attr("sandbox","");(g=Me(P.nodes()[0].contentDocument.body)).node().style.margin=0}else g=Me("body");g.append("div").attr("id","d"+t).append("svg").attr("id",t).attr("width","100%").attr("xmlns","http://www.w3.org/2000/svg").append("g")}c=c.replace(/style.*:\S*#.*;/g,function(ut){return ut.substring(0,ut.length-1)}).replace(/classDef.*:\S*#.*;/g,function(ut){return ut.substring(0,ut.length-1)}).replace(/#\w+;/g,function(ut){var Nt=ut.substring(1,ut.length-1);return/^\+?\d+$/.test(Nt)?"\uFB02\xB0\xB0"+Nt+"\xB6\xDF":"\uFB02\xB0"+Nt+"\xB6\xDF"});var H=g.select("#d"+t).node(),ct=tr.detectType(c,h),J=H.firstChild,yt=J.firstChild,ft="";if(h.themeCSS!==void 0&&(ft+=`
`.concat(h.themeCSS)),h.fontFamily!==void 0&&(ft+=`
:root { --mermaid-font-family: `.concat(h.fontFamily,"}")),h.altFontFamily!==void 0&&(ft+=`
:root { --mermaid-alt-font-family: `.concat(h.altFontFamily,"}")),ct==="flowchart"||ct==="flowchart-v2"||ct==="graph"){var kt=function(ut){y.info("Extracting classes"),nr.clear();try{var Nt=S1().parser;return Nt.yy=nr,Nt.parse(ut),nr.getClasses()}catch{return}}(c),Tt=h.htmlLabels||h.flowchart.htmlLabels;for(var qt in kt)Tt?(ft+=`
.`.concat(qt," > * { ").concat(kt[qt].styles.join(" !important; ")," !important; }"),ft+=`
.`.concat(qt," span { ").concat(kt[qt].styles.join(" !important; ")," !important; }")):(ft+=`
.`.concat(qt," path { ").concat(kt[qt].styles.join(" !important; ")," !important; }"),ft+=`
.`.concat(qt," rect { ").concat(kt[qt].styles.join(" !important; ")," !important; }"),ft+=`
.`.concat(qt," polygon { ").concat(kt[qt].styles.join(" !important; ")," !important; }"),ft+=`
.`.concat(qt," ellipse { ").concat(kt[qt].styles.join(" !important; ")," !important; }"),ft+=`
.`.concat(qt," circle { ").concat(kt[qt].styles.join(" !important; ")," !important; }"),kt[qt].textStyles&&(ft+=`
.`.concat(qt," tspan { ").concat(kt[qt].textStyles.join(" !important; ")," !important; }")))}var ee=function(ut,Nt){return zg(u1("".concat(ut,"{").concat(Nt,"}")),z5)}("#".concat(t),function(ut,Nt,pt){return` {
font-family: `.concat(pt.fontFamily,`;
font-size: `).concat(pt.fontSize,`;
fill: `).concat(pt.textColor,`
}
/* Classes common for multiple diagrams */
.error-icon {
fill: `).concat(pt.errorBkgColor,`;
}
.error-text {
fill: `).concat(pt.errorTextColor,`;
stroke: `).concat(pt.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(pt.lineColor,`;
stroke: `).concat(pt.lineColor,`;
}
.marker.cross {
stroke: `).concat(pt.lineColor,`;
}
svg {
font-family: `).concat(pt.fontFamily,`;
font-size: `).concat(pt.fontSize,`;
}
`).concat(X6[ut](pt),`
`).concat(Nt,`
`)}(ct,ft,h.themeVariables)),Ot=document.createElement("style");Ot.innerHTML="#".concat(t," ")+ee,J.insertBefore(Ot,yt);try{switch(ct){case"gitGraph":N_(c,t,!1);break;case"flowchart":h.flowchart.arrowMarkerAbsolute=h.arrowMarkerAbsolute,i0(h.flowchart),E_(c,t);break;case"flowchart-v2":h.flowchart.arrowMarkerAbsolute=h.arrowMarkerAbsolute,X3(h.flowchart),S_(c,t);break;case"sequence":h.sequence.arrowMarkerAbsolute=h.arrowMarkerAbsolute,h.sequenceDiagram?(ht.setConf(Object.assign(h.sequence,h.sequenceDiagram)),console.error("`mermaid config.sequenceDiagram` has been renamed to `config.sequence`. Please update your mermaid config.")):ht.setConf(h.sequence),ht.draw(c,t);break;case"gantt":h.gantt.arrowMarkerAbsolute=h.arrowMarkerAbsolute,h.gantt,F2(c,t);break;case"class":h.class.arrowMarkerAbsolute=h.arrowMarkerAbsolute,g2(h.class),f_(c,t);break;case"classDiagram":h.class.arrowMarkerAbsolute=h.arrowMarkerAbsolute,function(ut){Object.keys(ut).forEach(function(Nt){B3[Nt]=ut[Nt]})}(h.class),function(ut,Nt){y.info("Drawing class - ",Nt),ws.clear(),Lc.parser.parse(ut);var pt=$t().flowchart,me=$t().securityLevel;y.info("config:",pt);var ye,re=pt.nodeSpacing||50,Ce=pt.rankSpacing||50,se=new(Ii()).Graph({multigraph:!0,compound:!0}).setGraph({rankdir:ws.getDirection(),nodesep:re,ranksep:Ce,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}}),ve=ws.getClasses(),ge=ws.getRelations();y.info(ge),function(xr,$a){var Ta=Object.keys(xr);y.info("keys:",Ta),y.info(xr),Ta.forEach(function(rr){var Rn=xr[rr],co="";Rn.cssClasses.length>0&&(co=co+" "+Rn.cssClasses.join(" "));var wo,Go,ki={labelStyle:""},$1=Rn.text!==void 0?Rn.text:Rn.id;Rn.type,Go="class_box",$a.setNode(Rn.id,{labelStyle:ki.labelStyle,shape:Go,labelText:(wo=$1,Jn.sanitizeText(wo,$t())),classData:Rn,rx:0,ry:0,class:co,style:ki.style,id:Rn.id,domId:Rn.domId,haveCallback:Rn.haveCallback,link:Rn.link,width:Rn.type==="group"?500:void 0,type:Rn.type,padding:$t().flowchart.padding}),y.info("setNode",{labelStyle:ki.labelStyle,shape:Go,labelText:$1,rx:0,ry:0,class:co,style:ki.style,id:Rn.id,width:Rn.type==="group"?500:void 0,type:Rn.type,padding:$t().flowchart.padding})})}(ve,se),function(xr,$a){var Ta=0;xr.forEach(function(rr){Ta++;var Rn={classes:"relation"};Rn.pattern=rr.relation.lineType==1?"dashed":"solid",Rn.id="id"+Ta,rr.type==="arrow_open"?Rn.arrowhead="none":Rn.arrowhead="normal",y.info(Rn,rr),Rn.startLabelRight=rr.relationTitle1==="none"?"":rr.relationTitle1,Rn.endLabelLeft=rr.relationTitle2==="none"?"":rr.relationTitle2,Rn.arrowTypeStart=O3(rr.relation.type1),Rn.arrowTypeEnd=O3(rr.relation.type2);var co="",wo="";if(rr.style!==void 0){var Go=Qs(rr.style);co=Go.style,wo=Go.labelStyle}else co="fill:none";Rn.style=co,Rn.labelStyle=wo,rr.interpolate!==void 0?Rn.curve=ms(rr.interpolate,fo):xr.defaultInterpolate!==void 0?Rn.curve=ms(xr.defaultInterpolate,fo):Rn.curve=ms(B3.curve,fo),rr.text=rr.title,rr.text===void 0?rr.style!==void 0&&(Rn.arrowheadStyle="fill: #333"):(Rn.arrowheadStyle="fill: #333",Rn.labelpos="c",$t().flowchart.htmlLabels?(Rn.labelType="html",Rn.label='<span class="edgeLabel">'+rr.text+"</span>"):(Rn.labelType="text",Rn.label=rr.text.replace(Jn.lineBreakRegex,`
`),rr.style===void 0&&(Rn.style=Rn.style||"stroke: #333; stroke-width: 1.5px;fill:none"),Rn.labelStyle=Rn.labelStyle.replace("color:","fill:"))),$a.setEdge(rr.id1,rr.id2,Rn,Ta)})}(ge,se),me==="sandbox"&&(ye=Me("#i"+Nt));var He=Me(me==="sandbox"?ye.nodes()[0].contentDocument.body:"body"),Ge=He.select('[id="'.concat(Nt,'"]'));Ge.attr("xmlns:xlink","http://www.w3.org/1999/xlink");var an=He.select("#"+Nt+" g");v2(an,se,["aggregation","extension","composition","dependency"],"classDiagram",Nt);var cn=Ge.node().getBBox(),We=cn.width+16,lr=cn.height+16;if(y.debug("new ViewBox 0 0 ".concat(We," ").concat(lr),"translate(".concat(8-se._label.marginx,", ").concat(8-se._label.marginy,")")),Ra(Ge,lr,We,pt.useMaxWidth),Ge.attr("viewBox","0 0 ".concat(We," ").concat(lr)),Ge.select("g").attr("transform","translate(".concat(8-se._label.marginx,", ").concat(8-cn.y,")")),!pt.htmlLabels)for(var _r=me==="sandbox"?ye.nodes()[0].contentDocument:document,qn=_r.querySelectorAll('[id="'+Nt+'"] .edgeLabel .label'),Xr=0;Xr<qn.length;Xr++){var mr=qn[Xr],_n=mr.getBBox(),jn=_r.createElementNS("http://www.w3.org/2000/svg","rect");jn.setAttribute("rx",0),jn.setAttribute("ry",0),jn.setAttribute("width",_n.width),jn.setAttribute("height",_n.height),mr.insertBefore(jn,mr.firstChild)}Fa(Lc.parser.yy,Ge,Nt)}(c,t);break;case"state":h.class.arrowMarkerAbsolute=h.arrowMarkerAbsolute,h.state,_o(c,t);break;case"stateDiagram":h.class.arrowMarkerAbsolute=h.arrowMarkerAbsolute,o6(h.state),function(ut,Nt){y.info("Drawing state diagram (v2)",Nt),qr.clear(),Nr={};var pt=ne().parser;pt.yy=qr,pt.parse(ut);var me=qr.getDirection();me===void 0&&(me="LR");var ye=$t().state,re=ye.nodeSpacing||50,Ce=ye.rankSpacing||50,se=$t().securityLevel;y.info(qr.getRootDocV2()),qr.extract(qr.getRootDocV2()),y.info(qr.getRootDocV2());var ve,ge=new(Ii()).Graph({multigraph:!0,compound:!0}).setGraph({rankdir:U_(qr.getRootDocV2()),nodesep:re,ranksep:Ce,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});Tb(ge,void 0,qr.getRootDocV2(),!0),se==="sandbox"&&(ve=Me("#i"+Nt));var He=Me(se==="sandbox"?ve.nodes()[0].contentDocument.body:"body"),Ge=(se==="sandbox"&&ve.nodes()[0].contentDocument,He.select('[id="'.concat(Nt,'"]'))),an=He.select("#"+Nt+" g");v2(an,ge,["barb"],"statediagram",Nt);var cn=Ge.node().getBBox(),We=cn.width+16,lr=cn.height+16;Ge.attr("class","statediagram");var _r=Ge.node().getBBox();Ra(Ge,lr,1.75*We,ye.useMaxWidth);var qn="".concat(_r.x-8," ").concat(_r.y-8," ").concat(We," ").concat(lr);y.debug("viewBox ".concat(qn)),Ge.attr("viewBox",qn);for(var Xr=document.querySelectorAll('[id="'+Nt+'"] .edgeLabel .label'),mr=0;mr<Xr.length;mr++){var _n=Xr[mr],jn=_n.getBBox(),xr=document.createElementNS("http://www.w3.org/2000/svg","rect");xr.setAttribute("rx",0),xr.setAttribute("ry",0),xr.setAttribute("width",jn.width),xr.setAttribute("height",jn.height),_n.insertBefore(xr,_n.firstChild)}Fa(pt.yy,Ge,Nt)}(c,t);break;case"info":h.class.arrowMarkerAbsolute=h.arrowMarkerAbsolute,$2(h.class),function(ut,Nt,pt){try{var me=q2().parser;me.yy=ub,y.debug(`Renering info diagram
`+ut);var ye,re=$t().securityLevel;re==="sandbox"&&(ye=Me("#i"+Nt));var Ce=Me(re==="sandbox"?ye.nodes()[0].contentDocument.body:"body");re==="sandbox"&&ye.nodes()[0].contentDocument,me.parse(ut),y.debug("Parsed info diagram");var se=Ce.select("#"+Nt);se.append("g").append("text").attr("x",100).attr("y",40).attr("class","version").attr("font-size","32px").style("text-anchor","middle").text("v "+pt),se.attr("height",100),se.attr("width",400)}catch(ve){y.error("Error while rendering info diagram"),y.error(ve.message)}}(c,t,qg);break;case"pie":B_(c,t);break;case"er":F3(h.er),v_(c,t);break;case"journey":g6(h.journey),V6(c,t);break;case"requirement":G2(h.requirement),O_(c,t)}}catch(ut){throw function(Nt,pt){try{y.debug(`Renering svg for syntax error
`);var me=Me("#"+Nt),ye=me.append("g");ye.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"),ye.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"),ye.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"),ye.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"),ye.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"),ye.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"),ye.append("text").attr("class","error-text").attr("x",1240).attr("y",250).attr("font-size","150px").style("text-anchor","middle").text("Syntax error in graph"),ye.append("text").attr("class","error-text").attr("x",1050).attr("y",400).attr("font-size","100px").style("text-anchor","middle").text("mermaid version "+pt),me.attr("height",100),me.attr("width",400),me.attr("viewBox","768 0 512 512")}catch(re){y.error("Error while rendering info diagram"),y.error(re.message)}}(t,qg),ut}g.select('[id="'.concat(t,'"]')).selectAll("foreignobject > *").attr("xmlns","http://www.w3.org/1999/xhtml");var Xt=g.select("#d"+t).node().innerHTML;if(y.debug("cnf.arrowMarkerAbsolute",h.arrowMarkerAbsolute),h.arrowMarkerAbsolute&&h.arrowMarkerAbsolute!=="false"||h.arrowMarkerAbsolute==="sandbox"||(Xt=Xt.replace(/marker-end="url\(.*?#/g,'marker-end="url(#',"g")),Xt=(Xt=v6(Xt)).replace(/<br>/g,"<br/>"),h.securityLevel==="sandbox"){var Ht=g.select("#d"+t+" svg").node(),Et="100%";Ht&&(Et=Ht.viewBox.baseVal.height+"px"),Xt='<iframe style="width:'.concat("100%",";height:").concat(Et,';border:0;margin:0;" src="data:text/html;base64,').concat(btoa('<body style="margin:0">'+Xt+"</body>"),`" sandbox="allow-top-navigation-by-user-activation allow-popups">
The \u201Ciframe\u201D tag is not supported by your browser.
</iframe>`)}else h.securityLevel!=="loose"&&(Xt=$g().sanitize(Xt,{ADD_TAGS:["foreignobject"],ADD_ATTR:["dominant-baseline"]}));if(r!==void 0)switch(ct){case"flowchart":case"flowchart-v2":r(Xt,nr.bindFunctions);break;case"gantt":r(Xt,nc.bindFunctions);break;case"class":case"classDiagram":r(Xt,ws.bindFunctions);break;default:r(Xt)}else y.debug("CB = undefined!");Y1.forEach(function(ut){ut()}),Y1=[];var Mt=h.securityLevel==="sandbox"?"#i"+t:"#d"+t,bt=Me(Mt).node();return bt!==null&&typeof bt.remove=="function"&&Me(Mt).node().remove(),Xt},parse:function(t){t+=`
`;var e=$t(),r=tr.detectInit(t,e);r&&y.info("reinit ",r);var a,c=tr.detectType(t,e);switch(y.debug("Type "+c),c){case"gitGraph":ku.clear(),(a=ab()).parser.yy=ku;break;case"flowchart":case"flowchart-v2":nr.clear(),(a=S1()).parser.yy=nr;break;case"sequence":Z2.clear(),(a=yb()).parser.yy=Z2;break;case"gantt":(a=M_()).parser.yy=nc;break;case"class":case"classDiagram":(a=u_()).parser.yy=ws;break;case"state":case"stateDiagram":(a=ne()).parser.yy=qr;break;case"info":y.debug("info info info"),(a=q2()).parser.yy=ub;break;case"pie":y.debug("pie"),(a=hb()).parser.yy=W2;break;case"er":y.debug("er"),(a=I3()).parser.yy=ja;break;case"journey":y.debug("Journey"),(a=U6()).parser.yy=u6;break;case"requirement":case"requirementDiagram":y.debug("RequirementDiagram"),(a=fb()).parser.yy=Ts}return a.parser.yy.graphType=c,a.parser.yy.parseError=function(u,h){throw{str:u,hash:h}},a.parse(t),a},parseDirective:function(t,e,r,a){try{if(e!==void 0)switch(e=e.trim(),r){case"open_directive":J2={};break;case"type_directive":J2.type=e.toLowerCase();break;case"arg_directive":J2.args=JSON.parse(e);break;case"close_directive":(function(c,u,h){switch(y.debug("Directive type=".concat(u.type," with args:"),u.args),u.type){case"init":case"initialize":["config"].forEach(function(g){u.args[g]!==void 0&&(h==="flowchart-v2"&&(h="flowchart"),u.args[h]=u.args[g],delete u.args[g])}),y.debug("sanitize in handleDirective",u.args),qd(u.args),y.debug("sanitize in handleDirective (done)",u.args),u.args,o2(u.args);break;case"wrap":case"nowrap":c&&c.setWrap&&c.setWrap(u.type==="wrap");break;case"themeCss":y.warn("themeCss encountered");break;default:y.warn("Unhandled directive: source: '%%{".concat(u.type,": ").concat(JSON.stringify(u.args?u.args:{}),"}%%"),u)}})(t,J2,a),J2=null}}catch(c){y.error("Error while rendering sequenceDiagram directive: ".concat(e," jison context: ").concat(r)),y.error(c.message)}},initialize:function(t){t&&t.fontFamily&&(t.themeVariables&&t.themeVariables.fontFamily||(t.themeVariables={fontFamily:t.fontFamily})),function(r){a2=Hi({},r)}(t),t&&t.theme&&Zs[t.theme]?t.themeVariables=Zs[t.theme].getThemeVariables(t.themeVariables):t&&(t.themeVariables=Zs.default.getThemeVariables(t.themeVariables));var e=G_(t)==="object"?function(r){return Oi=Hi({},Sl),Oi=Hi(Oi,r),r.theme&&Zs[r.theme]&&(Oi.themeVariables=Zs[r.theme].getThemeVariables(r.themeVariables)),Ml=$d(Oi,Al),Oi}(t):d3();b6(e),C(e.logLevel)},reinitialize:function(){},getConfig:$t,setConfig:function(t){return Hi(Ml,t),$t()},getSiteConfig:d3,updateSiteConfig:function(t){return Oi=Hi(Oi,t),$d(Oi,Al),Oi},reset:function(){d1()},globalReset:function(){d1(),b6($t())},defaultConfig:Sl});C($t().logLevel),d1($t());const Gi=Z6;var Q6=function(){var t,e,r=Gi.getConfig();arguments.length>=2?(arguments[0]!==void 0&&(xo.sequenceConfig=arguments[0]),t=arguments[1]):t=arguments[0],typeof arguments[arguments.length-1]=="function"?(e=arguments[arguments.length-1],y.debug("Callback function found")):r.mermaid!==void 0&&(typeof r.mermaid.callback=="function"?(e=r.mermaid.callback,y.debug("Callback function found")):y.debug("No Callback function found")),t=t===void 0?document.querySelectorAll(".mermaid"):typeof t=="string"?document.querySelectorAll(t):t instanceof window.Node?[t]:t,y.debug("Start On Load before: "+xo.startOnLoad),xo.startOnLoad!==void 0&&(y.debug("Start On Load inner: "+xo.startOnLoad),Gi.updateSiteConfig({startOnLoad:xo.startOnLoad})),xo.ganttConfig!==void 0&&Gi.updateSiteConfig({gantt:xo.ganttConfig});for(var a,c=new tr.initIdGeneratior(r.deterministicIds,r.deterministicIDSeed),u=function(g){var x=t[g];if(x.getAttribute("data-processed"))return"continue";x.setAttribute("data-processed",!0);var _="mermaid-".concat(c.next());a=x.innerHTML,a=tr.entityDecode(a).trim().replace(/<br\s*\/?>/gi,"<br/>");var N=tr.detectInit(a);N&&y.debug("Detected early reinit: ",N),Gi.render(_,a,function(F,P){x.innerHTML=F,e!==void 0&&e(_),P&&P(x)},x)},h=0;h<t.length;h++)u(h)},_6=function(){xo.startOnLoad?Gi.getConfig().startOnLoad&&xo.init():xo.startOnLoad===void 0&&(y.debug("In start, no config"),Gi.getConfig().startOnLoad&&xo.init())};typeof document!="undefined"&&window.addEventListener("load",function(){_6()},!1);var xo={startOnLoad:!0,htmlLabels:!0,mermaidAPI:Gi,parse:Gi.parse,render:Gi.render,init:function(){try{Q6.apply(void 0,arguments)}catch(t){y.warn("Syntax Error rendering"),y.warn(t),this.parseError&&this.parseError(t)}},initialize:function(t){t.mermaid!==void 0&&(t.mermaid.startOnLoad!==void 0&&(xo.startOnLoad=t.mermaid.startOnLoad),t.mermaid.htmlLabels!==void 0&&(xo.htmlLabels=t.mermaid.htmlLabels!=="false"&&t.mermaid.htmlLabels!==!1)),Gi.initialize(t)},contentLoaded:_6};const K6=xo},4949:(S,O,p)=>{S.exports={graphlib:p(6614),dagre:p(1463),intersect:p(8114),render:p(5787),util:p(8355),version:p(5689)}},9144:(S,O,p)=>{var v=p(8355);function f(k,y,C,A){var M=k.append("marker").attr("id",y).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","strokeWidth").attr("markerWidth",8).attr("markerHeight",6).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").style("stroke-width",1).style("stroke-dasharray","1,0");v.applyStyle(M,C[A+"Style"]),C[A+"Class"]&&M.attr("class",C[A+"Class"])}S.exports={default:f,normal:f,vee:function(k,y,C,A){var M=k.append("marker").attr("id",y).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","strokeWidth").attr("markerWidth",8).attr("markerHeight",6).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 L 4 5 z").style("stroke-width",1).style("stroke-dasharray","1,0");v.applyStyle(M,C[A+"Style"]),C[A+"Class"]&&M.attr("class",C[A+"Class"])},undirected:function(k,y,C,A){var M=k.append("marker").attr("id",y).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","strokeWidth").attr("markerWidth",8).attr("markerHeight",6).attr("orient","auto").append("path").attr("d","M 0 5 L 10 5").style("stroke-width",1).style("stroke-dasharray","1,0");v.applyStyle(M,C[A+"Style"]),C[A+"Class"]&&M.attr("class",C[A+"Class"])}}},5632:(S,O,p)=>{var v=p(8355),f=p(4322),k=p(1322);S.exports=function(y,C){var A,M=C.nodes().filter(function(B){return v.isSubgraph(C,B)}),R=y.selectAll("g.cluster").data(M,function(B){return B});return R.selectAll("*").remove(),R.enter().append("g").attr("class","cluster").attr("id",function(B){return C.node(B).id}).style("opacity",0),R=y.selectAll("g.cluster"),v.applyTransition(R,C).style("opacity",1),R.each(function(B){var Y=C.node(B),G=f.select(this);f.select(this).append("rect");var Q=G.append("g").attr("class","label");k(Q,Y,Y.clusterLabelPos)}),R.selectAll("rect").each(function(B){var Y=C.node(B),G=f.select(this);v.applyStyle(G,Y.style)}),A=R.exit?R.exit():R.selectAll(null),v.applyTransition(A,C).style("opacity",0).remove(),R}},6315:(S,O,p)=>{var v=p(1034),f=p(1322),k=p(8355),y=p(4322);S.exports=function(C,A){var M,R=C.selectAll("g.edgeLabel").data(A.edges(),function(B){return k.edgeToId(B)}).classed("update",!0);return R.exit().remove(),R.enter().append("g").classed("edgeLabel",!0).style("opacity",0),(R=C.selectAll("g.edgeLabel")).each(function(B){var Y=y.select(this);Y.select(".label").remove();var G=A.edge(B),Q=f(Y,A.edge(B),0,0).classed("label",!0),K=Q.node().getBBox();G.labelId&&Q.attr("id",G.labelId),v.has(G,"width")||(G.width=K.width),v.has(G,"height")||(G.height=K.height)}),M=R.exit?R.exit():R.selectAll(null),k.applyTransition(M,A).style("opacity",0).remove(),R}},940:(S,O,p)=>{var v=p(1034),f=p(3042),k=p(8355),y=p(4322);function C(A,M){var R=(y.line||y.svg.line)().x(function(B){return B.x}).y(function(B){return B.y});return(R.curve||R.interpolate)(A.curve),R(M)}S.exports=function(A,M,R){var B=A.selectAll("g.edgePath").data(M.edges(),function(Q){return k.edgeToId(Q)}).classed("update",!0),Y=function(Q,K){var gt=Q.enter().append("g").attr("class","edgePath").style("opacity",0);return gt.append("path").attr("class","path").attr("d",function(tt){var Lt=K.edge(tt),at=K.node(tt.v).elem;return C(Lt,v.range(Lt.points.length).map(function(){return At=(vt=at).getBBox(),{x:(Zt=vt.ownerSVGElement.getScreenCTM().inverse().multiply(vt.getScreenCTM()).translate(At.width/2,At.height/2)).e,y:Zt.f};var vt,At,Zt}))}),gt.append("defs"),gt}(B,M);(function(Q,K){var gt=Q.exit();k.applyTransition(gt,K).style("opacity",0).remove()})(B,M);var G=B.merge!==void 0?B.merge(Y):B;return k.applyTransition(G,M).style("opacity",1),G.each(function(Q){var K=y.select(this),gt=M.edge(Q);gt.elem=this,gt.id&&K.attr("id",gt.id),k.applyClass(K,gt.class,(K.classed("update")?"update ":"")+"edgePath")}),G.selectAll("path.path").each(function(Q){var K=M.edge(Q);K.arrowheadId=v.uniqueId("arrowhead");var gt=y.select(this).attr("marker-end",function(){return"url("+(tt=location.href,Lt=K.arrowheadId,tt.split("#")[0]+"#"+Lt+")");var tt,Lt}).style("fill","none");k.applyTransition(gt,M).attr("d",function(tt){return function(Lt,at){var vt=Lt.edge(at),At=Lt.node(at.v),Zt=Lt.node(at.w),zt=vt.points.slice(1,vt.points.length-1);return zt.unshift(f(At,zt[0])),zt.push(f(Zt,zt[zt.length-1])),C(vt,zt)}(M,tt)}),k.applyStyle(gt,K.style)}),G.selectAll("defs *").remove(),G.selectAll("defs").each(function(Q){var K=M.edge(Q);(0,R[K.arrowhead])(y.select(this),K.arrowheadId,K,"arrowhead")}),G}},607:(S,O,p)=>{var v=p(1034),f=p(1322),k=p(8355),y=p(4322);S.exports=function(C,A,M){var R,B=A.nodes().filter(function(G){return!k.isSubgraph(A,G)}),Y=C.selectAll("g.node").data(B,function(G){return G}).classed("update",!0);return Y.exit().remove(),Y.enter().append("g").attr("class","node").style("opacity",0),(Y=C.selectAll("g.node")).each(function(G){var Q=A.node(G),K=y.select(this);k.applyClass(K,Q.class,(K.classed("update")?"update ":"")+"node"),K.select("g.label").remove();var gt=K.append("g").attr("class","label"),tt=f(gt,Q),Lt=M[Q.shape],at=v.pick(tt.node().getBBox(),"width","height");Q.elem=this,Q.id&&K.attr("id",Q.id),Q.labelId&&gt.attr("id",Q.labelId),v.has(Q,"width")&&(at.width=Q.width),v.has(Q,"height")&&(at.height=Q.height),at.width+=Q.paddingLeft+Q.paddingRight,at.height+=Q.paddingTop+Q.paddingBottom,gt.attr("transform","translate("+(Q.paddingLeft-Q.paddingRight)/2+","+(Q.paddingTop-Q.paddingBottom)/2+")");var vt=y.select(this);vt.select(".label-container").remove();var At=Lt(vt,at,Q).classed("label-container",!0);k.applyStyle(At,Q.style);var Zt=At.node().getBBox();Q.width=Zt.width,Q.height=Zt.height}),R=Y.exit?Y.exit():Y.selectAll(null),k.applyTransition(R,A).style("opacity",0).remove(),Y}},4322:(S,O,p)=>{var v;if(!v)try{v=p(7188)}catch{}v||(v=window.d3),S.exports=v},1463:(S,O,p)=>{var v;try{v=p(681)}catch{}v||(v=window.dagre),S.exports=v},6614:(S,O,p)=>{var v;try{v=p(8282)}catch{}v||(v=window.graphlib),S.exports=v},8114:(S,O,p)=>{S.exports={node:p(3042),circle:p(6587),ellipse:p(3260),polygon:p(5337),rect:p(8049)}},6587:(S,O,p)=>{var v=p(3260);S.exports=function(f,k,y){return v(f,k,k,y)}},3260:S=>{S.exports=function(O,p,v,f){var k=O.x,y=O.y,C=k-f.x,A=y-f.y,M=Math.sqrt(p*p*A*A+v*v*C*C),R=Math.abs(p*v*C/M);f.x<k&&(R=-R);var B=Math.abs(p*v*A/M);return f.y<y&&(B=-B),{x:k+R,y:y+B}}},6808:S=>{function O(p,v){return p*v>0}S.exports=function(p,v,f,k){var y,C,A,M,R,B,Y,G,Q,K,gt,tt,Lt;if(y=v.y-p.y,A=p.x-v.x,R=v.x*p.y-p.x*v.y,Q=y*f.x+A*f.y+R,K=y*k.x+A*k.y+R,!(Q!==0&&K!==0&&O(Q,K)||(C=k.y-f.y,M=f.x-k.x,B=k.x*f.y-f.x*k.y,Y=C*p.x+M*p.y+B,G=C*v.x+M*v.y+B,Y!==0&&G!==0&&O(Y,G)||(gt=y*M-C*A)==0)))return tt=Math.abs(gt/2),{x:(Lt=A*B-M*R)<0?(Lt-tt)/gt:(Lt+tt)/gt,y:(Lt=C*R-y*B)<0?(Lt-tt)/gt:(Lt+tt)/gt}}},3042:S=>{S.exports=function(O,p){return O.intersect(p)}},5337:(S,O,p)=>{var v=p(6808);S.exports=function(f,k,y){var C=f.x,A=f.y,M=[],R=Number.POSITIVE_INFINITY,B=Number.POSITIVE_INFINITY;k.forEach(function(Lt){R=Math.min(R,Lt.x),B=Math.min(B,Lt.y)});for(var Y=C-f.width/2-R,G=A-f.height/2-B,Q=0;Q<k.length;Q++){var K=k[Q],gt=k[Q<k.length-1?Q+1:0],tt=v(f,y,{x:Y+K.x,y:G+K.y},{x:Y+gt.x,y:G+gt.y});tt&&M.push(tt)}return M.length?(M.length>1&&M.sort(function(Lt,at){var vt=Lt.x-y.x,At=Lt.y-y.y,Zt=Math.sqrt(vt*vt+At*At),zt=at.x-y.x,xt=at.y-y.y,jt=Math.sqrt(zt*zt+xt*xt);return Zt<jt?-1:Zt===jt?0:1}),M[0]):(console.log("NO INTERSECTION FOUND, RETURN NODE CENTER",f),f)}},8049:S=>{S.exports=function(O,p){var v,f,k=O.x,y=O.y,C=p.x-k,A=p.y-y,M=O.width/2,R=O.height/2;return Math.abs(A)*M>Math.abs(C)*R?(A<0&&(R=-R),v=A===0?0:R*C/A,f=R):(C<0&&(M=-M),v=M,f=C===0?0:M*A/C),{x:k+v,y:y+f}}},8284:(S,O,p)=>{var v=p(8355);S.exports=function(f,k){var y=f.append("foreignObject").attr("width","100000"),C=y.append("xhtml:div");C.attr("xmlns","http://www.w3.org/1999/xhtml");var A=k.label;switch(typeof A){case"function":C.insert(A);break;case"object":C.insert(function(){return A});break;default:C.html(A)}v.applyStyle(C,k.labelStyle),C.style("display","inline-block"),C.style("white-space","nowrap");var M=C.node().getBoundingClientRect();return y.attr("width",M.width).attr("height",M.height),y}},1322:(S,O,p)=>{var v=p(7318),f=p(8284),k=p(8287);S.exports=function(y,C,A){var M=C.label,R=y.append("g");C.labelType==="svg"?k(R,C):typeof M!="string"||C.labelType==="html"?f(R,C):v(R,C);var B,Y=R.node().getBBox();switch(A){case"top":B=-C.height/2;break;case"bottom":B=C.height/2-Y.height;break;default:B=-Y.height/2}return R.attr("transform","translate("+-Y.width/2+","+B+")"),R}},8287:(S,O,p)=>{var v=p(8355);S.exports=function(f,k){var y=f;return y.node().appendChild(k.label),v.applyStyle(y,k.labelStyle),y}},7318:(S,O,p)=>{var v=p(8355);S.exports=function(f,k){for(var y=f.append("text"),C=function(M){for(var R,B="",Y=!1,G=0;G<M.length;++G)R=M[G],Y?(B+=R==="n"?`
`:R,Y=!1):R==="\\"?Y=!0:B+=R;return B}(k.label).split(`
`),A=0;A<C.length;A++)y.append("tspan").attr("xml:space","preserve").attr("dy","1em").attr("x","1").text(C[A]);return v.applyStyle(y,k.labelStyle),y}},1034:(S,O,p)=>{var v;try{v={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{}v||(v=window._),S.exports=v},6381:(S,O,p)=>{var v=p(8355),f=p(4322);S.exports=function(k,y){var C=k.filter(function(){return!f.select(this).classed("update")});function A(M){var R=y.node(M);return"translate("+R.x+","+R.y+")"}C.attr("transform",A),v.applyTransition(k,y).style("opacity",1).attr("transform",A),v.applyTransition(C.selectAll("rect"),y).attr("width",function(M){return y.node(M).width}).attr("height",function(M){return y.node(M).height}).attr("x",function(M){return-y.node(M).width/2}).attr("y",function(M){return-y.node(M).height/2})}},4577:(S,O,p)=>{var v=p(8355),f=p(4322),k=p(1034);S.exports=function(y,C){function A(M){var R=C.edge(M);return k.has(R,"x")?"translate("+R.x+","+R.y+")":""}y.filter(function(){return!f.select(this).classed("update")}).attr("transform",A),v.applyTransition(y,C).style("opacity",1).attr("transform",A)}},4849:(S,O,p)=>{var v=p(8355),f=p(4322);S.exports=function(k,y){function C(A){var M=y.node(A);return"translate("+M.x+","+M.y+")"}k.filter(function(){return!f.select(this).classed("update")}).attr("transform",C),v.applyTransition(k,y).style("opacity",1).attr("transform",C)}},5787:(S,O,p)=>{var v=p(1034),f=p(4322),k=p(1463).layout;S.exports=function(){var M=p(607),R=p(5632),B=p(6315),Y=p(940),G=p(4849),Q=p(4577),K=p(6381),gt=p(4418),tt=p(9144),Lt=function(at,vt){(function(lt){lt.nodes().forEach(function(et){var st=lt.node(et);v.has(st,"label")||lt.children(et).length||(st.label=et),v.has(st,"paddingX")&&v.defaults(st,{paddingLeft:st.paddingX,paddingRight:st.paddingX}),v.has(st,"paddingY")&&v.defaults(st,{paddingTop:st.paddingY,paddingBottom:st.paddingY}),v.has(st,"padding")&&v.defaults(st,{paddingLeft:st.padding,paddingRight:st.padding,paddingTop:st.padding,paddingBottom:st.padding}),v.defaults(st,y),v.each(["paddingLeft","paddingRight","paddingTop","paddingBottom"],function($){st[$]=Number(st[$])}),v.has(st,"width")&&(st._prevWidth=st.width),v.has(st,"height")&&(st._prevHeight=st.height)}),lt.edges().forEach(function(et){var st=lt.edge(et);v.has(st,"label")||(st.label=""),v.defaults(st,C)})})(vt);var At=A(at,"output"),Zt=A(At,"clusters"),zt=A(At,"edgePaths"),xt=B(A(At,"edgeLabels"),vt),jt=M(A(At,"nodes"),vt,gt);k(vt),G(jt,vt),Q(xt,vt),Y(zt,vt,tt);var Bt=R(Zt,vt);K(Bt,vt),function(lt){v.each(lt.nodes(),function(et){var st=lt.node(et);v.has(st,"_prevWidth")?st.width=st._prevWidth:delete st.width,v.has(st,"_prevHeight")?st.height=st._prevHeight:delete st.height,delete st._prevWidth,delete st._prevHeight})}(vt)};return Lt.createNodes=function(at){return arguments.length?(M=at,Lt):M},Lt.createClusters=function(at){return arguments.length?(R=at,Lt):R},Lt.createEdgeLabels=function(at){return arguments.length?(B=at,Lt):B},Lt.createEdgePaths=function(at){return arguments.length?(Y=at,Lt):Y},Lt.shapes=function(at){return arguments.length?(gt=at,Lt):gt},Lt.arrows=function(at){return arguments.length?(tt=at,Lt):tt},Lt};var y={paddingLeft:10,paddingRight:10,paddingTop:10,paddingBottom:10,rx:0,ry:0,shape:"rect"},C={arrowhead:"normal",curve:f.curveLinear};function A(M,R){var B=M.select("g."+R);return B.empty()&&(B=M.append("g").attr("class",R)),B}},4418:(S,O,p)=>{var v=p(8049),f=p(3260),k=p(6587),y=p(5337);S.exports={rect:function(C,A,M){var R=C.insert("rect",":first-child").attr("rx",M.rx).attr("ry",M.ry).attr("x",-A.width/2).attr("y",-A.height/2).attr("width",A.width).attr("height",A.height);return M.intersect=function(B){return v(M,B)},R},ellipse:function(C,A,M){var R=A.width/2,B=A.height/2,Y=C.insert("ellipse",":first-child").attr("x",-A.width/2).attr("y",-A.height/2).attr("rx",R).attr("ry",B);return M.intersect=function(G){return f(M,R,B,G)},Y},circle:function(C,A,M){var R=Math.max(A.width,A.height)/2,B=C.insert("circle",":first-child").attr("x",-A.width/2).attr("y",-A.height/2).attr("r",R);return M.intersect=function(Y){return k(M,R,Y)},B},diamond:function(C,A,M){var R=A.width*Math.SQRT2/2,B=A.height*Math.SQRT2/2,Y=[{x:0,y:-B},{x:-R,y:0},{x:0,y:B},{x:R,y:0}],G=C.insert("polygon",":first-child").attr("points",Y.map(function(Q){return Q.x+","+Q.y}).join(" "));return M.intersect=function(Q){return y(M,Y,Q)},G}}},8355:(S,O,p)=>{var v=p(1034);S.exports={isSubgraph:function(y,C){return!!y.children(C).length},edgeToId:function(y){return k(y.v)+":"+k(y.w)+":"+k(y.name)},applyStyle:function(y,C){C&&y.attr("style",C)},applyClass:function(y,C,A){C&&y.attr("class",C).attr("class",A+" "+y.attr("class"))},applyTransition:function(y,C){var A=C.graph();if(v.isPlainObject(A)){var M=A.transition;if(v.isFunction(M))return M(y)}return y}};var f=/:/g;function k(y){return y?String(y).replace(f,"\\:"):""}},5689:S=>{S.exports="0.6.4"},7188:(S,O,p)=>{p.r(O),p.d(O,{FormatSpecifier:()=>wf,active:()=>Fb,arc:()=>x_,area:()=>U3,areaRadial:()=>W3,ascending:()=>f,autoType:()=>o4,axisBottom:()=>Ve,axisLeft:()=>Je,axisRight:()=>Ue,axisTop:()=>De,bisect:()=>M,bisectLeft:()=>A,bisectRight:()=>C,bisector:()=>k,blob:()=>_4,brush:()=>G0,brushSelection:()=>Yb,brushX:()=>of,brushY:()=>zb,buffer:()=>Xy,chord:()=>Z0,clientPoint:()=>Wc,cluster:()=>v5,color:()=>Aa,contourDensity:()=>gh,contours:()=>Ni,create:()=>x2,creator:()=>Er,cross:()=>Y,csv:()=>Zy,csvFormat:()=>Qb,csvFormatBody:()=>Kb,csvFormatRow:()=>t4,csvFormatRows:()=>Jb,csvFormatValue:()=>Ly,csvParse:()=>Dy,csvParseRows:()=>Zb,cubehelix:()=>da,curveBasis:()=>jl,curveBasisClosed:()=>Q3,curveBasisOpen:()=>K3,curveBundle:()=>J3,curveCardinal:()=>Pc,curveCardinalClosed:()=>M_,curveCardinalOpen:()=>tb,curveCatmullRom:()=>l0,curveCatmullRomClosed:()=>ao,curveCatmullRomOpen:()=>h0,curveLinear:()=>n0,curveLinearClosed:()=>Wo,curveMonotoneX:()=>rb,curveMonotoneY:()=>U2,curveNatural:()=>ab,curveStep:()=>za,curveStepAfter:()=>I1,curveStepBefore:()=>zl,customEvent:()=>zr,descending:()=>G,deviation:()=>gt,dispatch:()=>Ze,drag:()=>Ay,dragDisable:()=>ji,dragEnable:()=>Mr,dsv:()=>k4,dsvFormat:()=>yh,easeBack:()=>Wy,easeBackIn:()=>m4,easeBackInOut:()=>Wy,easeBackOut:()=>v4,easeBounce:()=>mh,easeBounceIn:()=>Hy,easeBounceInOut:()=>y4,easeBounceOut:()=>mh,easeCircle:()=>$y,easeCircleIn:()=>p4,easeCircleInOut:()=>$y,easeCircleOut:()=>g4,easeCubic:()=>lc,easeCubicIn:()=>Q1,easeCubicInOut:()=>lc,easeCubicOut:()=>K1,easeElastic:()=>mp,easeElasticIn:()=>b4,easeElasticInOut:()=>Vy,easeElasticOut:()=>mp,easeExp:()=>qy,easeExpIn:()=>Uy,easeExpInOut:()=>qy,easeExpOut:()=>d4,easeLinear:()=>Iy,easePoly:()=>Fy,easePolyIn:()=>l4,easePolyInOut:()=>Fy,easePolyOut:()=>h4,easeQuad:()=>Ry,easeQuadIn:()=>c4,easeQuadInOut:()=>Ry,easeQuadOut:()=>u4,easeSin:()=>zy,easeSinIn:()=>Yy,easeSinInOut:()=>zy,easeSinOut:()=>f4,entries:()=>rp,event:()=>we,extent:()=>tt,forceCenter:()=>S4,forceCollide:()=>D4,forceLink:()=>B4,forceManyBody:()=>F4,forceRadial:()=>P4,forceSimulation:()=>R4,forceX:()=>nm,forceY:()=>wp,format:()=>Tf,formatDefaultLocale:()=>um,formatLocale:()=>cm,formatPrefix:()=>Tp,formatSpecifier:()=>_h,geoAlbers:()=>iv,geoAlbersUsa:()=>zs,geoArea:()=>Y4,geoAzimuthalEqualArea:()=>s5,geoAzimuthalEqualAreaRaw:()=>ag,geoAzimuthalEquidistant:()=>sg,geoAzimuthalEquidistantRaw:()=>og,geoBounds:()=>Mh,geoCentroid:()=>q4,geoCircle:()=>$4,geoClipAntimeridian:()=>zp,geoClipCircle:()=>Lm,geoClipExtent:()=>W4,geoClipRectangle:()=>Uf,geoConicConformal:()=>u5,geoConicConformalRaw:()=>ug,geoConicEqualArea:()=>rd,geoConicEqualAreaRaw:()=>rv,geoConicEquidistant:()=>ov,geoConicEquidistantRaw:()=>av,geoContains:()=>jm,geoDistance:()=>Vf,geoEqualEarth:()=>h5,geoEqualEarthRaw:()=>lg,geoEquirectangular:()=>l5,geoEquirectangularRaw:()=>Hh,geoGnomonic:()=>sv,geoGnomonicRaw:()=>Xh,geoGraticule:()=>Um,geoGraticule10:()=>K4,geoIdentity:()=>ad,geoInterpolate:()=>J4,geoLength:()=>Bm,geoMercator:()=>c5,geoMercatorRaw:()=>qh,geoNaturalEarth1:()=>f5,geoNaturalEarth1Raw:()=>hg,geoOrthographic:()=>d5,geoOrthographicRaw:()=>fg,geoPath:()=>n5,geoProjection:()=>Ro,geoProjectionMutator:()=>ng,geoRotation:()=>Pp,geoStereographic:()=>p5,geoStereographicRaw:()=>dg,geoStream:()=>Mo,geoTransform:()=>r5,geoTransverseMercator:()=>g5,geoTransverseMercatorRaw:()=>od,gray:()=>$b,hcl:()=>dc,hierarchy:()=>pg,histogram:()=>Dt,hsl:()=>Bu,html:()=>Jy,image:()=>Ky,interpolate:()=>Hc,interpolateArray:()=>k0,interpolateBasis:()=>Or,interpolateBasisClosed:()=>qc,interpolateBlues:()=>E3,interpolateBrBG:()=>l_,interpolateBuGn:()=>br,interpolateBuPu:()=>v3,interpolateCividis:()=>B3,interpolateCool:()=>b2,interpolateCubehelix:()=>bd,interpolateCubehelixDefault:()=>O3,interpolateCubehelixLong:()=>e1,interpolateDate:()=>V1,interpolateDiscrete:()=>A5,interpolateGnBu:()=>p_,interpolateGreens:()=>A3,interpolateGreys:()=>ta,interpolateHcl:()=>fs,interpolateHclLong:()=>Po,interpolateHsl:()=>M5,interpolateHslLong:()=>N5,interpolateHue:()=>gd,interpolateInferno:()=>v_,interpolateLab:()=>md,interpolateMagma:()=>F3,interpolateNumber:()=>la,interpolateNumberArray:()=>Kl,interpolateObject:()=>G1,interpolateOrRd:()=>Qd,interpolateOranges:()=>v2,interpolatePRGn:()=>Ol,interpolatePiYG:()=>h_,interpolatePlasma:()=>_2,interpolatePuBu:()=>y_,interpolatePuBuGn:()=>g_,interpolatePuOr:()=>p2,interpolatePuRd:()=>m_,interpolatePurples:()=>Jd,interpolateRainbow:()=>ja,interpolateRdBu:()=>Xd,interpolateRdGy:()=>f_,interpolateRdPu:()=>k3,interpolateRdYlBu:()=>d_,interpolateRdYlGn:()=>Pa,interpolateReds:()=>D3,interpolateRgb:()=>uc,interpolateRgbBasis:()=>Iu,interpolateRgbBasisClosed:()=>ko,interpolateRound:()=>_g,interpolateSinebow:()=>Oc,interpolateSpectral:()=>Ei,interpolateString:()=>To,interpolateTransformCss:()=>C0,interpolateTransformSvg:()=>E0,interpolateTurbo:()=>Gr,interpolateViridis:()=>R3,interpolateWarm:()=>w1,interpolateYlGn:()=>Ks,interpolateYlGnBu:()=>_1,interpolateYlOrBr:()=>Kd,interpolateYlOrRd:()=>C3,interpolateZoom:()=>yd,interrupt:()=>fa,interval:()=>R1,isoFormat:()=>Yc,isoParse:()=>B_,json:()=>C4,keys:()=>uh,lab:()=>lh,lch:()=>op,line:()=>r0,lineRadial:()=>H3,linkHorizontal:()=>S_,linkRadial:()=>N2,linkVertical:()=>M2,local:()=>C1,map:()=>Bs,matcher:()=>Sr,max:()=>ae,mean:()=>Ee,median:()=>Pe,merge:()=>le,min:()=>oe,mouse:()=>As,namespace:()=>Yn,namespaces:()=>gn,nest:()=>qb,now:()=>X,pack:()=>T5,packEnclose:()=>lv,packSiblings:()=>mv,pairs:()=>R,partition:()=>Fo,path:()=>Ls,permute:()=>he,pie:()=>T_,piecewise:()=>wg,pointRadial:()=>M1,polygonArea:()=>Ev,polygonCentroid:()=>D5,polygonContains:()=>Tg,polygonHull:()=>kg,polygonLength:()=>Av,precisionFixed:()=>Cp,precisionPrefix:()=>lm,precisionRound:()=>hm,quadtree:()=>vh,quantile:()=>z,quantize:()=>Cv,radialArea:()=>W3,radialLine:()=>H3,randomBates:()=>ps,randomExponential:()=>O5,randomIrwinHall:()=>vl,randomLogNormal:()=>ml,randomNormal:()=>n1,randomUniform:()=>_d,range:()=>zt,rgb:()=>Ui,ribbon:()=>J0,scaleBand:()=>kd,scaleDiverging:()=>g1,scaleDivergingLog:()=>l2,scaleDivergingPow:()=>h2,scaleDivergingSqrt:()=>y1,scaleDivergingSymlog:()=>Vd,scaleIdentity:()=>Mg,scaleImplicit:()=>Cg,scaleLinear:()=>Ag,scaleLog:()=>Ov,scaleOrdinal:()=>wd,scalePoint:()=>r1,scalePow:()=>Og,scaleQuantile:()=>jv,scaleQuantize:()=>Yv,scaleSequential:()=>Wd,scaleSequentialLog:()=>Ci,scaleSequentialPow:()=>Dl,scaleSequentialQuantile:()=>Ll,scaleSequentialSqrt:()=>p1,scaleSequentialSymlog:()=>u2,scaleSqrt:()=>j5,scaleSymlog:()=>Fv,scaleThreshold:()=>zv,scaleTime:()=>o_,scaleUtc:()=>_s,scan:()=>be,schemeAccent:()=>ws,schemeBlues:()=>bu,schemeBrBG:()=>y3,schemeBuGn:()=>ks,schemeBuPu:()=>vo,schemeCategory10:()=>p3,schemeDark2:()=>s_,schemeGnBu:()=>b1,schemeGreens:()=>S3,schemeGreys:()=>x1,schemeOrRd:()=>b3,schemeOranges:()=>L3,schemePRGn:()=>d2,schemePaired:()=>m1,schemePastel1:()=>c_,schemePastel2:()=>Ii,schemePiYG:()=>Gd,schemePuBu:()=>_3,schemePuBuGn:()=>y2,schemePuOr:()=>Fa,schemePuRd:()=>x3,schemePurples:()=>M3,schemeRdBu:()=>v1,schemeRdGy:()=>g2,schemeRdPu:()=>w3,schemeRdYlBu:()=>m3,schemeRdYlGn:()=>Zd,schemeReds:()=>N3,schemeSet1:()=>Lc,schemeSet2:()=>u_,schemeSet3:()=>g3,schemeSpectral:()=>aa,schemeTableau10:()=>f2,schemeYlGn:()=>Il,schemeYlGnBu:()=>T3,schemeYlOrBr:()=>Bc,schemeYlOrRd:()=>m2,select:()=>$r,selectAll:()=>P3,selection:()=>pi,selector:()=>Qn,selectorAll:()=>nn,set:()=>fc,shuffle:()=>Ne,stack:()=>N_,stackOffsetDiverging:()=>cb,stackOffsetExpand:()=>sb,stackOffsetNone:()=>rc,stackOffsetSilhouette:()=>ub,stackOffsetWiggle:()=>D_,stackOrderAppearance:()=>q2,stackOrderAscending:()=>$2,stackOrderDescending:()=>hb,stackOrderInsideOut:()=>d0,stackOrderNone:()=>Tu,stackOrderReverse:()=>H2,stratify:()=>hd,style:()=>sn,sum:()=>de,svg:()=>xf,symbol:()=>I2,symbolCircle:()=>Rl,symbolCross:()=>Ho,symbolDiamond:()=>Fl,symbolSquare:()=>xu,symbolStar:()=>o0,symbolTriangle:()=>N1,symbolWye:()=>O2,symbols:()=>A_,text:()=>Wu,thresholdFreedmanDiaconis:()=>Kt,thresholdScott:()=>_t,thresholdSturges:()=>$,tickFormat:()=>Yo,tickIncrement:()=>et,tickStep:()=>st,ticks:()=>lt,timeDay:()=>oi,timeDays:()=>wl,timeFormat:()=>yu,timeFormatDefaultLocale:()=>Al,timeFormatLocale:()=>h1,timeFriday:()=>_l,timeFridays:()=>xl,timeHour:()=>$v,timeHours:()=>zo,timeInterval:()=>Li,timeMillisecond:()=>Tl,timeMilliseconds:()=>Wv,timeMinute:()=>c1,timeMinutes:()=>Bd,timeMonday:()=>bl,timeMondays:()=>Nd,timeMonth:()=>Fg,timeMonths:()=>Hs,timeParse:()=>f1,timeSaturday:()=>Vs,timeSaturdays:()=>qv,timeSecond:()=>kl,timeSeconds:()=>Hv,timeSunday:()=>fu,timeSundays:()=>Yg,timeThursday:()=>Ws,timeThursdays:()=>Dd,timeTuesday:()=>Md,timeTuesdays:()=>zg,timeWednesday:()=>Uv,timeWednesdays:()=>z5,timeWeek:()=>fu,timeWeeks:()=>Yg,timeYear:()=>uu,timeYears:()=>Y5,timeout:()=>Qe,timer:()=>fe,timerFlush:()=>Te,touch:()=>ha,touches:()=>k2,transition:()=>Z1,transpose:()=>Se,tree:()=>pl,treemap:()=>pd,treemapBinary:()=>t1,treemapDice:()=>Qh,treemapResquarify:()=>bg,treemapSlice:()=>Sc,treemapSliceDice:()=>kv,treemapSquarify:()=>Ac,tsv:()=>Qy,tsvFormat:()=>Oy,tsvFormatBody:()=>n4,tsvFormatRow:()=>i4,tsvFormatRows:()=>r4,tsvFormatValue:()=>a4,tsvParse:()=>By,tsvParseRows:()=>e4,utcDay:()=>l1,utcDays:()=>Ji,utcFormat:()=>mu,utcFriday:()=>qg,utcFridays:()=>Gs,utcHour:()=>c2,utcHours:()=>vs,utcMillisecond:()=>Tl,utcMilliseconds:()=>Wv,utcMinute:()=>Uo,utcMinutes:()=>bs,utcMonday:()=>Nc,utcMondays:()=>$g,utcMonth:()=>d1,utcMonths:()=>s2,utcParse:()=>Cl,utcSaturday:()=>pu,utcSaturdays:()=>Rd,utcSecond:()=>kl,utcSeconds:()=>Hv,utcSunday:()=>u1,utcSundays:()=>Gv,utcThursday:()=>Dc,utcThursdays:()=>Qv,utcTuesday:()=>Ug,utcTuesdays:()=>Xv,utcWednesday:()=>Vv,utcWednesdays:()=>Zv,utcWeek:()=>u1,utcWeeks:()=>Gv,utcYear:()=>ys,utcYears:()=>U5,values:()=>np,variance:()=>K,version:()=>v,voronoi:()=>v0,window:()=>Un,xml:()=>E4,zip:()=>_e,zoom:()=>Y_,zoomIdentity:()=>b0,zoomTransform:()=>bb});var v="5.16.0";function f(n,i){return n<i?-1:n>i?1:n>=i?0:NaN}function k(n){var i;return n.length===1&&(i=n,n=function(o,s){return f(i(o),s)}),{left:function(o,s,l,d){for(l==null&&(l=0),d==null&&(d=o.length);l<d;){var b=l+d>>>1;n(o[b],s)<0?l=b+1:d=b}return l},right:function(o,s,l,d){for(l==null&&(l=0),d==null&&(d=o.length);l<d;){var b=l+d>>>1;n(o[b],s)>0?d=b:l=b+1}return l}}}var y=k(f),C=y.right,A=y.left;const M=C;function R(n,i){i==null&&(i=B);for(var o=0,s=n.length-1,l=n[0],d=new Array(s<0?0:s);o<s;)d[o]=i(l,l=n[++o]);return d}function B(n,i){return[n,i]}function Y(n,i,o){var s,l,d,b,m=n.length,w=i.length,E=new Array(m*w);for(o==null&&(o=B),s=d=0;s<m;++s)for(b=n[s],l=0;l<w;++l,++d)E[d]=o(b,i[l]);return E}function G(n,i){return i<n?-1:i>n?1:i>=n?0:NaN}function Q(n){return n===null?NaN:+n}function K(n,i){var o,s,l=n.length,d=0,b=-1,m=0,w=0;if(i==null)for(;++b<l;)isNaN(o=Q(n[b]))||(w+=(s=o-m)*(o-(m+=s/++d)));else for(;++b<l;)isNaN(o=Q(i(n[b],b,n)))||(w+=(s=o-m)*(o-(m+=s/++d)));if(d>1)return w/(d-1)}function gt(n,i){var o=K(n,i);return o&&Math.sqrt(o)}function tt(n,i){var o,s,l,d=n.length,b=-1;if(i==null){for(;++b<d;)if((o=n[b])!=null&&o>=o)for(s=l=o;++b<d;)(o=n[b])!=null&&(s>o&&(s=o),l<o&&(l=o))}else for(;++b<d;)if((o=i(n[b],b,n))!=null&&o>=o)for(s=l=o;++b<d;)(o=i(n[b],b,n))!=null&&(s>o&&(s=o),l<o&&(l=o));return[s,l]}var Lt=Array.prototype,at=Lt.slice,vt=Lt.map;function At(n){return function(){return n}}function Zt(n){return n}function zt(n,i,o){n=+n,i=+i,o=(l=arguments.length)<2?(i=n,n=0,1):l<3?1:+o;for(var s=-1,l=0|Math.max(0,Math.ceil((i-n)/o)),d=new Array(l);++s<l;)d[s]=n+s*o;return d}var xt=Math.sqrt(50),jt=Math.sqrt(10),Bt=Math.sqrt(2);function lt(n,i,o){var s,l,d,b,m=-1;if(o=+o,(n=+n)==(i=+i)&&o>0)return[n];if((s=i<n)&&(l=n,n=i,i=l),(b=et(n,i,o))===0||!isFinite(b))return[];if(b>0)for(n=Math.ceil(n/b),i=Math.floor(i/b),d=new Array(l=Math.ceil(i-n+1));++m<l;)d[m]=(n+m)*b;else for(n=Math.floor(n*b),i=Math.ceil(i*b),d=new Array(l=Math.ceil(n-i+1));++m<l;)d[m]=(n-m)/b;return s&&d.reverse(),d}function et(n,i,o){var s=(i-n)/Math.max(0,o),l=Math.floor(Math.log(s)/Math.LN10),d=s/Math.pow(10,l);return l>=0?(d>=xt?10:d>=jt?5:d>=Bt?2:1)*Math.pow(10,l):-Math.pow(10,-l)/(d>=xt?10:d>=jt?5:d>=Bt?2:1)}function st(n,i,o){var s=Math.abs(i-n)/Math.max(0,o),l=Math.pow(10,Math.floor(Math.log(s)/Math.LN10)),d=s/l;return d>=xt?l*=10:d>=jt?l*=5:d>=Bt&&(l*=2),i<n?-l:l}function $(n){return Math.ceil(Math.log(n.length)/Math.LN2)+1}function Dt(){var n=Zt,i=tt,o=$;function s(l){var d,b,m=l.length,w=new Array(m);for(d=0;d<m;++d)w[d]=n(l[d],d,l);var E=i(w),L=E[0],j=E[1],D=o(w,L,j);Array.isArray(D)||(D=st(L,j,D),D=zt(Math.ceil(L/D)*D,j,D));for(var q=D.length;D[0]<=L;)D.shift(),--q;for(;D[q-1]>j;)D.pop(),--q;var W,U=new Array(q+1);for(d=0;d<=q;++d)(W=U[d]=[]).x0=d>0?D[d-1]:L,W.x1=d<q?D[d]:j;for(d=0;d<m;++d)L<=(b=w[d])&&b<=j&&U[M(D,b,0,q)].push(l[d]);return U}return s.value=function(l){return arguments.length?(n=typeof l=="function"?l:At(l),s):n},s.domain=function(l){return arguments.length?(i=typeof l=="function"?l:At([l[0],l[1]]),s):i},s.thresholds=function(l){return arguments.length?(o=typeof l=="function"?l:Array.isArray(l)?At(at.call(l)):At(l),s):o},s}function z(n,i,o){if(o==null&&(o=Q),s=n.length){if((i=+i)<=0||s<2)return+o(n[0],0,n);if(i>=1)return+o(n[s-1],s-1,n);var s,l=(s-1)*i,d=Math.floor(l),b=+o(n[d],d,n);return b+(+o(n[d+1],d+1,n)-b)*(l-d)}}function Kt(n,i,o){return n=vt.call(n,Q).sort(f),Math.ceil((o-i)/(2*(z(n,.75)-z(n,.25))*Math.pow(n.length,-1/3)))}function _t(n,i,o){return Math.ceil((o-i)/(3.5*gt(n)*Math.pow(n.length,-1/3)))}function ae(n,i){var o,s,l=n.length,d=-1;if(i==null){for(;++d<l;)if((o=n[d])!=null&&o>=o)for(s=o;++d<l;)(o=n[d])!=null&&o>s&&(s=o)}else for(;++d<l;)if((o=i(n[d],d,n))!=null&&o>=o)for(s=o;++d<l;)(o=i(n[d],d,n))!=null&&o>s&&(s=o);return s}function Ee(n,i){var o,s=n.length,l=s,d=-1,b=0;if(i==null)for(;++d<s;)isNaN(o=Q(n[d]))?--l:b+=o;else for(;++d<s;)isNaN(o=Q(i(n[d],d,n)))?--l:b+=o;if(l)return b/l}function Pe(n,i){var o,s=n.length,l=-1,d=[];if(i==null)for(;++l<s;)isNaN(o=Q(n[l]))||d.push(o);else for(;++l<s;)isNaN(o=Q(i(n[l],l,n)))||d.push(o);return z(d.sort(f),.5)}function le(n){for(var i,o,s,l=n.length,d=-1,b=0;++d<l;)b+=n[d].length;for(o=new Array(b);--l>=0;)for(i=(s=n[l]).length;--i>=0;)o[--b]=s[i];return o}function oe(n,i){var o,s,l=n.length,d=-1;if(i==null){for(;++d<l;)if((o=n[d])!=null&&o>=o)for(s=o;++d<l;)(o=n[d])!=null&&s>o&&(s=o)}else for(;++d<l;)if((o=i(n[d],d,n))!=null&&o>=o)for(s=o;++d<l;)(o=i(n[d],d,n))!=null&&s>o&&(s=o);return s}function he(n,i){for(var o=i.length,s=new Array(o);o--;)s[o]=n[i[o]];return s}function be(n,i){if(o=n.length){var o,s,l=0,d=0,b=n[d];for(i==null&&(i=f);++l<o;)(i(s=n[l],b)<0||i(b,b)!==0)&&(b=s,d=l);return i(b,b)===0?d:void 0}}function Ne(n,i,o){for(var s,l,d=(o==null?n.length:o)-(i=i==null?0:+i);d;)l=Math.random()*d--|0,s=n[d+i],n[d+i]=n[l+i],n[l+i]=s;return n}function de(n,i){var o,s=n.length,l=-1,d=0;if(i==null)for(;++l<s;)(o=+n[l])&&(d+=o);else for(;++l<s;)(o=+i(n[l],l,n))&&(d+=o);return d}function Se(n){if(!(l=n.length))return[];for(var i=-1,o=oe(n,te),s=new Array(o);++i<o;)for(var l,d=-1,b=s[i]=new Array(l);++d<l;)b[d]=n[d][i];return s}function te(n){return n.length}function _e(){return Se(arguments)}var wt=Array.prototype.slice;function pe(n){return n}var mt=1e-6;function It(n){return"translate("+(n+.5)+",0)"}function St(n){return"translate(0,"+(n+.5)+")"}function nt(n){return function(i){return+n(i)}}function ue(n){var i=Math.max(0,n.bandwidth()-1)/2;return n.round()&&(i=Math.round(i)),function(o){return+n(o)+i}}function Rt(){return!this.__axis}function dn(n,i){var o=[],s=null,l=null,d=6,b=6,m=3,w=n===1||n===4?-1:1,E=n===4||n===2?"x":"y",L=n===1||n===3?It:St;function j(D){var q=s==null?i.ticks?i.ticks.apply(i,o):i.domain():s,W=l==null?i.tickFormat?i.tickFormat.apply(i,o):pe:l,U=Math.max(d,0)+m,V=i.range(),Z=+V[0]+.5,it=+V[V.length-1]+.5,rt=(i.bandwidth?ue:nt)(i.copy()),dt=D.selection?D.selection():D,Pt=dt.selectAll(".domain").data([null]),Vt=dt.selectAll(".tick").data(q,i).order(),Jt=Vt.exit(),ke=Vt.enter().append("g").attr("class","tick"),Yt=Vt.select("line"),ce=Vt.select("text");Pt=Pt.merge(Pt.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),Vt=Vt.merge(ke),Yt=Yt.merge(ke.append("line").attr("stroke","currentColor").attr(E+"2",w*d)),ce=ce.merge(ke.append("text").attr("fill","currentColor").attr(E,w*U).attr("dy",n===1?"0em":n===3?"0.71em":"0.32em")),D!==dt&&(Pt=Pt.transition(D),Vt=Vt.transition(D),Yt=Yt.transition(D),ce=ce.transition(D),Jt=Jt.transition(D).attr("opacity",mt).attr("transform",function(ht){return isFinite(ht=rt(ht))?L(ht):this.getAttribute("transform")}),ke.attr("opacity",mt).attr("transform",function(ht){var Ct=this.parentNode.__axis;return L(Ct&&isFinite(Ct=Ct(ht))?Ct:rt(ht))})),Jt.remove(),Pt.attr("d",n===4||n==2?b?"M"+w*b+","+Z+"H0.5V"+it+"H"+w*b:"M0.5,"+Z+"V"+it:b?"M"+Z+","+w*b+"V0.5H"+it+"V"+w*b:"M"+Z+",0.5H"+it),Vt.attr("opacity",1).attr("transform",function(ht){return L(rt(ht))}),Yt.attr(E+"2",w*d),ce.attr(E,w*U).text(W),dt.filter(Rt).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",n===2?"start":n===4?"end":"middle"),dt.each(function(){this.__axis=rt})}return j.scale=function(D){return arguments.length?(i=D,j):i},j.ticks=function(){return o=wt.call(arguments),j},j.tickArguments=function(D){return arguments.length?(o=D==null?[]:wt.call(D),j):o.slice()},j.tickValues=function(D){return arguments.length?(s=D==null?null:wt.call(D),j):s&&s.slice()},j.tickFormat=function(D){return arguments.length?(l=D,j):l},j.tickSize=function(D){return arguments.length?(d=b=+D,j):d},j.tickSizeInner=function(D){return arguments.length?(d=+D,j):d},j.tickSizeOuter=function(D){return arguments.length?(b=+D,j):b},j.tickPadding=function(D){return arguments.length?(m=+D,j):m},j}function De(n){return dn(1,n)}function Ue(n){return dn(2,n)}function Ve(n){return dn(3,n)}function Je(n){return dn(4,n)}var en={value:function(){}};function Ae(){for(var n,i=0,o=arguments.length,s={};i<o;++i){if(!(n=arguments[i]+"")||n in s||/[\s.]/.test(n))throw new Error("illegal type: "+n);s[n]=[]}return new qe(s)}function qe(n){this._=n}function rn(n,i){return n.trim().split(/^|\s+/).map(function(o){var s="",l=o.indexOf(".");if(l>=0&&(s=o.slice(l+1),o=o.slice(0,l)),o&&!i.hasOwnProperty(o))throw new Error("unknown type: "+o);return{type:o,name:s}})}function je(n,i){for(var o,s=0,l=n.length;s<l;++s)if((o=n[s]).name===i)return o.value}function xe(n,i,o){for(var s=0,l=n.length;s<l;++s)if(n[s].name===i){n[s]=en,n=n.slice(0,s).concat(n.slice(s+1));break}return o!=null&&n.push({name:i,value:o}),n}qe.prototype=Ae.prototype={constructor:qe,on:function(n,i){var o,s=this._,l=rn(n+"",s),d=-1,b=l.length;if(!(arguments.length<2)){if(i!=null&&typeof i!="function")throw new Error("invalid callback: "+i);for(;++d<b;)if(o=(n=l[d]).type)s[o]=xe(s[o],n.name,i);else if(i==null)for(o in s)s[o]=xe(s[o],n.name,null);return this}for(;++d<b;)if((o=(n=l[d]).type)&&(o=je(s[o],n.name)))return o},copy:function(){var n={},i=this._;for(var o in i)n[o]=i[o].slice();return new qe(n)},call:function(n,i){if((o=arguments.length-2)>0)for(var o,s,l=new Array(o),d=0;d<o;++d)l[d]=arguments[d+2];if(!this._.hasOwnProperty(n))throw new Error("unknown type: "+n);for(d=0,o=(s=this._[n]).length;d<o;++d)s[d].value.apply(i,l)},apply:function(n,i,o){if(!this._.hasOwnProperty(n))throw new Error("unknown type: "+n);for(var s=this._[n],l=0,d=s.length;l<d;++l)s[l].value.apply(i,o)}};const Ze=Ae;function pn(){}function Qn(n){return n==null?pn:function(){return this.querySelector(n)}}function Xe(){return[]}function nn(n){return n==null?Xe:function(){return this.querySelectorAll(n)}}function Sr(n){return function(){return this.matches(n)}}function Dr(n){return new Array(n.length)}function yn(n,i){this.ownerDocument=n.ownerDocument,this.namespaceURI=n.namespaceURI,this._next=null,this._parent=n,this.__data__=i}function An(n,i,o,s,l,d){for(var b,m=0,w=i.length,E=d.length;m<E;++m)(b=i[m])?(b.__data__=d[m],s[m]=b):o[m]=new yn(n,d[m]);for(;m<w;++m)(b=i[m])&&(l[m]=b)}function fn(n,i,o,s,l,d,b){var m,w,E,L={},j=i.length,D=d.length,q=new Array(j);for(m=0;m<j;++m)(w=i[m])&&(q[m]=E="$"+b.call(w,w.__data__,m,i),E in L?l[m]=w:L[E]=w);for(m=0;m<D;++m)(w=L[E="$"+b.call(n,d[m],m,d)])?(s[m]=w,w.__data__=d[m],L[E]=null):o[m]=new yn(n,d[m]);for(m=0;m<j;++m)(w=i[m])&&L[q[m]]===w&&(l[m]=w)}function wn(n,i){return n<i?-1:n>i?1:n>=i?0:NaN}yn.prototype={constructor:yn,appendChild:function(n){return this._parent.insertBefore(n,this._next)},insertBefore:function(n,i){return this._parent.insertBefore(n,i)},querySelector:function(n){return this._parent.querySelector(n)},querySelectorAll:function(n){return this._parent.querySelectorAll(n)}};var Dn="http://www.w3.org/1999/xhtml";const gn={svg:"http://www.w3.org/2000/svg",xhtml:Dn,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Yn(n){var i=n+="",o=i.indexOf(":");return o>=0&&(i=n.slice(0,o))!=="xmlns"&&(n=n.slice(o+1)),gn.hasOwnProperty(i)?{space:gn[i],local:n}:n}function Ln(n){return function(){this.removeAttribute(n)}}function Pr(n){return function(){this.removeAttributeNS(n.space,n.local)}}function Wn(n,i){return function(){this.setAttribute(n,i)}}function Xn(n,i){return function(){this.setAttributeNS(n.space,n.local,i)}}function Kn(n,i){return function(){var o=i.apply(this,arguments);o==null?this.removeAttribute(n):this.setAttribute(n,o)}}function Mn(n,i){return function(){var o=i.apply(this,arguments);o==null?this.removeAttributeNS(n.space,n.local):this.setAttributeNS(n.space,n.local,o)}}function Un(n){return n.ownerDocument&&n.ownerDocument.defaultView||n.document&&n||n.defaultView}function Bn(n){return function(){this.style.removeProperty(n)}}function vn(n,i,o){return function(){this.style.setProperty(n,i,o)}}function Vn(n,i,o){return function(){var s=i.apply(this,arguments);s==null?this.style.removeProperty(n):this.style.setProperty(n,s,o)}}function sn(n,i){return n.style.getPropertyValue(i)||Un(n).getComputedStyle(n,null).getPropertyValue(i)}function Pn(n){return function(){delete this[n]}}function mn(n,i){return function(){this[n]=i}}function Ca(n,i){return function(){var o=i.apply(this,arguments);o==null?delete this[n]:this[n]=o}}function uo(n){return n.trim().split(/^|\s+/)}function Fi(n){return n.classList||new Fn(n)}function Fn(n){this._node=n,this._names=uo(n.getAttribute("class")||"")}function ua(n,i){for(var o=Fi(n),s=-1,l=i.length;++s<l;)o.add(i[s])}function Pi(n,i){for(var o=Fi(n),s=-1,l=i.length;++s<l;)o.remove(i[s])}function Lr(n){return function(){ua(this,n)}}function ti(n){return function(){Pi(this,n)}}function Zr(n,i){return function(){(i.apply(this,arguments)?ua:Pi)(this,n)}}function Qr(){this.textContent=""}function jr(n){return function(){this.textContent=n}}function fi(n){return function(){var i=n.apply(this,arguments);this.textContent=i==null?"":i}}function di(){this.innerHTML=""}function cr(n){return function(){this.innerHTML=n}}function Yr(n){return function(){var i=n.apply(this,arguments);this.innerHTML=i==null?"":i}}function ei(){this.nextSibling&&this.parentNode.appendChild(this)}function Kr(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Ti(n){return function(){var i=this.ownerDocument,o=this.namespaceURI;return o===Dn&&i.documentElement.namespaceURI===Dn?i.createElement(n):i.createElementNS(o,n)}}function Ha(n){return function(){return this.ownerDocument.createElementNS(n.space,n.local)}}function Er(n){var i=Yn(n);return(i.local?Ha:Ti)(i)}function Wa(){return null}function Va(){var n=this.parentNode;n&&n.removeChild(this)}function ra(){var n=this.cloneNode(!1),i=this.parentNode;return i?i.insertBefore(n,this.nextSibling):n}function un(){var n=this.cloneNode(!0),i=this.parentNode;return i?i.insertBefore(n,this.nextSibling):n}Fn.prototype={add:function(n){this._names.indexOf(n)<0&&(this._names.push(n),this._node.setAttribute("class",this._names.join(" ")))},remove:function(n){var i=this._names.indexOf(n);i>=0&&(this._names.splice(i,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(n){return this._names.indexOf(n)>=0}};var On={},we=null;function Be(n,i,o){return n=sr(n,i,o),function(s){var l=s.relatedTarget;l&&(l===this||8&l.compareDocumentPosition(this))||n.call(this,s)}}function sr(n,i,o){return function(s){var l=we;we=s;try{n.call(this,this.__data__,i,o)}finally{we=l}}}function Ut(n){return n.trim().split(/^|\s+/).map(function(i){var o="",s=i.indexOf(".");return s>=0&&(o=i.slice(s+1),i=i.slice(0,s)),{type:i,name:o}})}function Ea(n){return function(){var i=this.__on;if(i){for(var o,s=0,l=-1,d=i.length;s<d;++s)o=i[s],n.type&&o.type!==n.type||o.name!==n.name?i[++l]=o:this.removeEventListener(o.type,o.listener,o.capture);++l?i.length=l:delete this.__on}}}function Gt(n,i,o){var s=On.hasOwnProperty(n.type)?Be:sr;return function(l,d,b){var m,w=this.__on,E=s(i,d,b);if(w){for(var L=0,j=w.length;L<j;++L)if((m=w[L]).type===n.type&&m.name===n.name)return this.removeEventListener(m.type,m.listener,m.capture),this.addEventListener(m.type,m.listener=E,m.capture=o),void(m.value=i)}this.addEventListener(n.type,E,o),m={type:n.type,name:n.name,value:i,listener:E,capture:o},w?w.push(m):this.__on=[m]}}function zr(n,i,o,s){var l=we;n.sourceEvent=we,we=n;try{return i.apply(o,s)}finally{we=l}}function Zo(n,i,o){var s=Un(n),l=s.CustomEvent;typeof l=="function"?l=new l(i,o):(l=s.document.createEvent("Event"),o?(l.initEvent(i,o.bubbles,o.cancelable),l.detail=o.detail):l.initEvent(i,!1,!1)),n.dispatchEvent(l)}function Qo(n,i){return function(){return Zo(this,n,i)}}function Ko(n,i){return function(){return Zo(this,n,i.apply(this,arguments))}}typeof document!="undefined"&&("onmouseenter"in document.documentElement||(On={mouseenter:"mouseover",mouseleave:"mouseout"}));var lo=[null];function zn(n,i){this._groups=n,this._parents=i}function Ar(){return new zn([[document.documentElement]],lo)}zn.prototype=Ar.prototype={constructor:zn,select:function(n){typeof n!="function"&&(n=Qn(n));for(var i=this._groups,o=i.length,s=new Array(o),l=0;l<o;++l)for(var d,b,m=i[l],w=m.length,E=s[l]=new Array(w),L=0;L<w;++L)(d=m[L])&&(b=n.call(d,d.__data__,L,m))&&("__data__"in d&&(b.__data__=d.__data__),E[L]=b);return new zn(s,this._parents)},selectAll:function(n){typeof n!="function"&&(n=nn(n));for(var i=this._groups,o=i.length,s=[],l=[],d=0;d<o;++d)for(var b,m=i[d],w=m.length,E=0;E<w;++E)(b=m[E])&&(s.push(n.call(b,b.__data__,E,m)),l.push(b));return new zn(s,l)},filter:function(n){typeof n!="function"&&(n=Sr(n));for(var i=this._groups,o=i.length,s=new Array(o),l=0;l<o;++l)for(var d,b=i[l],m=b.length,w=s[l]=[],E=0;E<m;++E)(d=b[E])&&n.call(d,d.__data__,E,b)&&w.push(d);return new zn(s,this._parents)},data:function(n,i){if(!n)return W=new Array(this.size()),L=-1,this.each(function(Vt){W[++L]=Vt}),W;var o,s=i?fn:An,l=this._parents,d=this._groups;typeof n!="function"&&(o=n,n=function(){return o});for(var b=d.length,m=new Array(b),w=new Array(b),E=new Array(b),L=0;L<b;++L){var j=l[L],D=d[L],q=D.length,W=n.call(j,j&&j.__data__,L,l),U=W.length,V=w[L]=new Array(U),Z=m[L]=new Array(U);s(j,D,V,Z,E[L]=new Array(q),W,i);for(var it,rt,dt=0,Pt=0;dt<U;++dt)if(it=V[dt]){for(dt>=Pt&&(Pt=dt+1);!(rt=Z[Pt])&&++Pt<U;);it._next=rt||null}}return(m=new zn(m,l))._enter=w,m._exit=E,m},enter:function(){return new zn(this._enter||this._groups.map(Dr),this._parents)},exit:function(){return new zn(this._exit||this._groups.map(Dr),this._parents)},join:function(n,i,o){var s=this.enter(),l=this,d=this.exit();return s=typeof n=="function"?n(s):s.append(n+""),i!=null&&(l=i(l)),o==null?d.remove():o(d),s&&l?s.merge(l).order():l},merge:function(n){for(var i=this._groups,o=n._groups,s=i.length,l=o.length,d=Math.min(s,l),b=new Array(s),m=0;m<d;++m)for(var w,E=i[m],L=o[m],j=E.length,D=b[m]=new Array(j),q=0;q<j;++q)(w=E[q]||L[q])&&(D[q]=w);for(;m<s;++m)b[m]=i[m];return new zn(b,this._parents)},order:function(){for(var n=this._groups,i=-1,o=n.length;++i<o;)for(var s,l=n[i],d=l.length-1,b=l[d];--d>=0;)(s=l[d])&&(b&&4^s.compareDocumentPosition(b)&&b.parentNode.insertBefore(s,b),b=s);return this},sort:function(n){function i(j,D){return j&&D?n(j.__data__,D.__data__):!j-!D}n||(n=wn);for(var o=this._groups,s=o.length,l=new Array(s),d=0;d<s;++d){for(var b,m=o[d],w=m.length,E=l[d]=new Array(w),L=0;L<w;++L)(b=m[L])&&(E[L]=b);E.sort(i)}return new zn(l,this._parents).order()},call:function(){var n=arguments[0];return arguments[0]=this,n.apply(null,arguments),this},nodes:function(){var n=new Array(this.size()),i=-1;return this.each(function(){n[++i]=this}),n},node:function(){for(var n=this._groups,i=0,o=n.length;i<o;++i)for(var s=n[i],l=0,d=s.length;l<d;++l){var b=s[l];if(b)return b}return null},size:function(){var n=0;return this.each(function(){++n}),n},empty:function(){return!this.node()},each:function(n){for(var i=this._groups,o=0,s=i.length;o<s;++o)for(var l,d=i[o],b=0,m=d.length;b<m;++b)(l=d[b])&&n.call(l,l.__data__,b,d);return this},attr:function(n,i){var o=Yn(n);if(arguments.length<2){var s=this.node();return o.local?s.getAttributeNS(o.space,o.local):s.getAttribute(o)}return this.each((i==null?o.local?Pr:Ln:typeof i=="function"?o.local?Mn:Kn:o.local?Xn:Wn)(o,i))},style:function(n,i,o){return arguments.length>1?this.each((i==null?Bn:typeof i=="function"?Vn:vn)(n,i,o==null?"":o)):sn(this.node(),n)},property:function(n,i){return arguments.length>1?this.each((i==null?Pn:typeof i=="function"?Ca:mn)(n,i)):this.node()[n]},classed:function(n,i){var o=uo(n+"");if(arguments.length<2){for(var s=Fi(this.node()),l=-1,d=o.length;++l<d;)if(!s.contains(o[l]))return!1;return!0}return this.each((typeof i=="function"?Zr:i?Lr:ti)(o,i))},text:function(n){return arguments.length?this.each(n==null?Qr:(typeof n=="function"?fi:jr)(n)):this.node().textContent},html:function(n){return arguments.length?this.each(n==null?di:(typeof n=="function"?Yr:cr)(n)):this.node().innerHTML},raise:function(){return this.each(ei)},lower:function(){return this.each(Kr)},append:function(n){var i=typeof n=="function"?n:Er(n);return this.select(function(){return this.appendChild(i.apply(this,arguments))})},insert:function(n,i){var o=typeof n=="function"?n:Er(n),s=i==null?Wa:typeof i=="function"?i:Qn(i);return this.select(function(){return this.insertBefore(o.apply(this,arguments),s.apply(this,arguments)||null)})},remove:function(){return this.each(Va)},clone:function(n){return this.select(n?un:ra)},datum:function(n){return arguments.length?this.property("__data__",n):this.node().__data__},on:function(n,i,o){var s,l,d=Ut(n+""),b=d.length;if(!(arguments.length<2)){for(m=i?Gt:Ea,o==null&&(o=!1),s=0;s<b;++s)this.each(m(d[s],i,o));return this}var m=this.node().__on;if(m){for(var w,E=0,L=m.length;E<L;++E)for(s=0,w=m[E];s<b;++s)if((l=d[s]).type===w.type&&l.name===w.name)return w.value}},dispatch:function(n,i){return this.each((typeof i=="function"?Ko:Qo)(n,i))}};const pi=Ar;function $r(n){return typeof n=="string"?new zn([[document.querySelector(n)]],[document.documentElement]):new zn([[n]],lo)}function Hr(){we.stopImmediatePropagation()}function Si(){we.preventDefault(),we.stopImmediatePropagation()}function ji(n){var i=n.document.documentElement,o=$r(n).on("dragstart.drag",Si,!0);"onselectstart"in i?o.on("selectstart.drag",Si,!0):(i.__noselect=i.style.MozUserSelect,i.style.MozUserSelect="none")}function Mr(n,i){var o=n.document.documentElement,s=$r(n).on("dragstart.drag",null);i&&(s.on("click.drag",Si,!0),setTimeout(function(){s.on("click.drag",null)},0)),"onselectstart"in o?s.on("selectstart.drag",null):(o.style.MozUserSelect=o.__noselect,delete o.__noselect)}function ni(n,i,o){n.prototype=i.prototype=o,o.constructor=n}function gi(n,i){var o=Object.create(n.prototype);for(var s in i)o[s]=i[s];return o}function pr(){}var Xi=.7,Yi=1/Xi,si="\\s*([+-]?\\d+)\\s*",Ga="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",Ai="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Ft=/^#([0-9a-f]{3,8})$/,$e=new RegExp("^rgb\\("+[si,si,si]+"\\)$"),Ie=new RegExp("^rgb\\("+[Ai,Ai,Ai]+"\\)$"),hr=new RegExp("^rgba\\("+[si,si,si,Ga]+"\\)$"),Br=new RegExp("^rgba\\("+[Ai,Ai,Ai,Ga]+"\\)$"),ci=new RegExp("^hsl\\("+[Ga,Ai,Ai]+"\\)$"),yi=new RegExp("^hsla\\("+[Ga,Ai,Ai,Ga]+"\\)$"),Sa={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 Jr(){return this.rgb().formatHex()}function zi(){return this.rgb().formatRgb()}function Aa(n){var i,o;return n=(n+"").trim().toLowerCase(),(i=Ft.exec(n))?(o=i[1].length,i=parseInt(i[1],16),o===6?cc(i):o===3?new ri(i>>8&15|i>>4&240,i>>4&15|240&i,(15&i)<<4|15&i,1):o===8?ho(i>>24&255,i>>16&255,i>>8&255,(255&i)/255):o===4?ho(i>>12&15|i>>8&240,i>>8&15|i>>4&240,i>>4&15|240&i,((15&i)<<4|15&i)/255):null):(i=$e.exec(n))?new ri(i[1],i[2],i[3],1):(i=Ie.exec(n))?new ri(255*i[1]/100,255*i[2]/100,255*i[3]/100,1):(i=hr.exec(n))?ho(i[1],i[2],i[3],i[4]):(i=Br.exec(n))?ho(255*i[1]/100,255*i[2]/100,255*i[3]/100,i[4]):(i=ci.exec(n))?Xa(i[1],i[2]/100,i[3]/100,1):(i=yi.exec(n))?Xa(i[1],i[2]/100,i[3]/100,i[4]):Sa.hasOwnProperty(n)?cc(Sa[n]):n==="transparent"?new ri(NaN,NaN,NaN,0):null}function cc(n){return new ri(n>>16&255,n>>8&255,255&n,1)}function ho(n,i,o,s){return s<=0&&(n=i=o=NaN),new ri(n,i,o,s)}function Uc(n){return n instanceof pr||(n=Aa(n)),n?new ri((n=n.rgb()).r,n.g,n.b,n.opacity):new ri}function Ui(n,i,o,s){return arguments.length===1?Uc(n):new ri(n,i,o,s==null?1:s)}function ri(n,i,o,s){this.r=+n,this.g=+i,this.b=+o,this.opacity=+s}function Mu(){return"#"+Du(this.r)+Du(this.g)+Du(this.b)}function Nu(){var n=this.opacity;return((n=isNaN(n)?1:Math.max(0,Math.min(1,n)))===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))+(n===1?")":", "+n+")")}function Du(n){return((n=Math.max(0,Math.min(255,Math.round(n)||0)))<16?"0":"")+n.toString(16)}function Xa(n,i,o,s){return s<=0?n=i=o=NaN:o<=0||o>=1?n=i=NaN:i<=0&&(n=NaN),new Za(n,i,o,s)}function Lu(n){if(n instanceof Za)return new Za(n.h,n.s,n.l,n.opacity);if(n instanceof pr||(n=Aa(n)),!n)return new Za;if(n instanceof Za)return n;var i=(n=n.rgb()).r/255,o=n.g/255,s=n.b/255,l=Math.min(i,o,s),d=Math.max(i,o,s),b=NaN,m=d-l,w=(d+l)/2;return m?(b=i===d?(o-s)/m+6*(o<s):o===d?(s-i)/m+2:(i-o)/m+4,m/=w<.5?d+l:2-d-l,b*=60):m=w>0&&w<1?0:b,new Za(b,m,w,n.opacity)}function Bu(n,i,o,s){return arguments.length===1?Lu(n):new Za(n,i,o,s==null?1:s)}function Za(n,i,o,s){this.h=+n,this.s=+i,this.l=+o,this.opacity=+s}function Ye(n,i,o){return 255*(n<60?i+(o-i)*n/60:n<180?o:n<240?i+(o-i)*(240-n)/60:i)}function Zl(n,i,o,s,l){var d=n*n,b=d*n;return((1-3*n+3*d-b)*i+(4-6*d+3*b)*o+(1+3*n+3*d-3*b)*s+b*l)/6}function Or(n){var i=n.length-1;return function(o){var s=o<=0?o=0:o>=1?(o=1,i-1):Math.floor(o*i),l=n[s],d=n[s+1],b=s>0?n[s-1]:2*l-d,m=s<i-1?n[s+2]:2*d-l;return Zl((o-s/i)*i,b,l,d,m)}}function qc(n){var i=n.length;return function(o){var s=Math.floor(((o%=1)<0?++o:o)*i),l=n[(s+i-1)%i],d=n[s%i],b=n[(s+1)%i],m=n[(s+2)%i];return Zl((o-s/i)*i,l,d,b,m)}}function $c(n){return function(){return n}}function Ou(n,i){return function(o){return n+o*i}}function Ma(n,i){var o=i-n;return o?Ou(n,o>180||o<-180?o-360*Math.round(o/360):o):$c(isNaN(n)?i:n)}function mi(n,i){var o=i-n;return o?Ou(n,o):$c(isNaN(n)?i:n)}ni(pr,Aa,{copy:function(n){return Object.assign(new this.constructor,this,n)},displayable:function(){return this.rgb().displayable()},hex:Jr,formatHex:Jr,formatHsl:function(){return Lu(this).formatHsl()},formatRgb:zi,toString:zi}),ni(ri,Ui,gi(pr,{brighter:function(n){return n=n==null?Yi:Math.pow(Yi,n),new ri(this.r*n,this.g*n,this.b*n,this.opacity)},darker:function(n){return n=n==null?Xi:Math.pow(Xi,n),new ri(this.r*n,this.g*n,this.b*n,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:Mu,formatHex:Mu,formatRgb:Nu,toString:Nu})),ni(Za,Bu,gi(pr,{brighter:function(n){return n=n==null?Yi:Math.pow(Yi,n),new Za(this.h,this.s,this.l*n,this.opacity)},darker:function(n){return n=n==null?Xi:Math.pow(Xi,n),new Za(this.h,this.s,this.l*n,this.opacity)},rgb:function(){var n=this.h%360+360*(this.h<0),i=isNaN(n)||isNaN(this.s)?0:this.s,o=this.l,s=o+(o<.5?o:1-o)*i,l=2*o-s;return new ri(Ye(n>=240?n-240:n+120,l,s),Ye(n,l,s),Ye(n<120?n+240:n-120,l,s),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 n=this.opacity;return((n=isNaN(n)?1:Math.max(0,Math.min(1,n)))===1?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(n===1?")":", "+n+")")}}));const uc=function n(i){var o=function(l){return(l=+l)==1?mi:function(d,b){return b-d?function(m,w,E){return m=Math.pow(m,E),w=Math.pow(w,E)-m,E=1/E,function(L){return Math.pow(m+L*w,E)}}(d,b,l):$c(isNaN(d)?b:d)}}(i);function s(l,d){var b=o((l=Ui(l)).r,(d=Ui(d)).r),m=o(l.g,d.g),w=o(l.b,d.b),E=mi(l.opacity,d.opacity);return function(L){return l.r=b(L),l.g=m(L),l.b=w(L),l.opacity=E(L),l+""}}return s.gamma=n,s}(1);function Ql(n){return function(i){var o,s,l=i.length,d=new Array(l),b=new Array(l),m=new Array(l);for(o=0;o<l;++o)s=Ui(i[o]),d[o]=s.r||0,b[o]=s.g||0,m[o]=s.b||0;return d=n(d),b=n(b),m=n(m),s.opacity=1,function(w){return s.r=d(w),s.g=b(w),s.b=m(w),s+""}}}var Iu=Ql(Or),ko=Ql(qc);function Kl(n,i){i||(i=[]);var o,s=n?Math.min(i.length,n.length):0,l=i.slice();return function(d){for(o=0;o<s;++o)l[o]=n[o]*(1-d)+i[o]*d;return l}}function H1(n){return ArrayBuffer.isView(n)&&!(n instanceof DataView)}function k0(n,i){return(H1(i)?Kl:W1)(n,i)}function W1(n,i){var o,s=i?i.length:0,l=n?Math.min(s,n.length):0,d=new Array(l),b=new Array(s);for(o=0;o<l;++o)d[o]=Hc(n[o],i[o]);for(;o<s;++o)b[o]=i[o];return function(m){for(o=0;o<l;++o)b[o]=d[o](m);return b}}function V1(n,i){var o=new Date;return n=+n,i=+i,function(s){return o.setTime(n*(1-s)+i*s),o}}function la(n,i){return n=+n,i=+i,function(o){return n*(1-o)+i*o}}function G1(n,i){var o,s={},l={};for(o in n!==null&&typeof n=="object"||(n={}),i!==null&&typeof i=="object"||(i={}),i)o in n?s[o]=Hc(n[o],i[o]):l[o]=i[o];return function(d){for(o in s)l[o]=s[o](d);return l}}var Jl=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,th=new RegExp(Jl.source,"g");function To(n,i){var o,s,l,d=Jl.lastIndex=th.lastIndex=0,b=-1,m=[],w=[];for(n+="",i+="";(o=Jl.exec(n))&&(s=th.exec(i));)(l=s.index)>d&&(l=i.slice(d,l),m[b]?m[b]+=l:m[++b]=l),(o=o[0])===(s=s[0])?m[b]?m[b]+=s:m[++b]=s:(m[++b]=null,w.push({i:b,x:la(o,s)})),d=th.lastIndex;return d<i.length&&(l=i.slice(d),m[b]?m[b]+=l:m[++b]=l),m.length<2?w[0]?function(E){return function(L){return E(L)+""}}(w[0].x):function(E){return function(){return E}}(i):(i=w.length,function(E){for(var L,j=0;j<i;++j)m[(L=w[j]).i]=L.x(E);return m.join("")})}function Hc(n,i){var o,s=typeof i;return i==null||s==="boolean"?$c(i):(s==="number"?la:s==="string"?(o=Aa(i))?(i=o,uc):To:i instanceof Aa?uc:i instanceof Date?V1:H1(i)?Kl:Array.isArray(i)?W1:typeof i.valueOf!="function"&&typeof i.toString!="function"||isNaN(i)?G1:la)(n,i)}function Qa(){for(var n,i=we;n=i.sourceEvent;)i=n;return i}function Wc(n,i){var o=n.ownerSVGElement||n;if(o.createSVGPoint){var s=o.createSVGPoint();return s.x=i.clientX,s.y=i.clientY,[(s=s.matrixTransform(n.getScreenCTM().inverse())).x,s.y]}var l=n.getBoundingClientRect();return[i.clientX-l.left-n.clientLeft,i.clientY-l.top-n.clientTop]}function ha(n,i,o){arguments.length<3&&(o=i,i=Qa().changedTouches);for(var s,l=0,d=i?i.length:0;l<d;++l)if((s=i[l]).identifier===o)return Wc(n,s);return null}function As(n){var i=Qa();return i.changedTouches&&(i=i.changedTouches[0]),Wc(n,i)}var Ru,Co,qi=0,ui=0,Ka=0,Na=0,Zi=0,Zn=0,T=typeof performance=="object"&&performance.now?performance:Date,I=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(n){setTimeout(n,17)};function X(){return Zi||(I(ot),Zi=T.now()+Zn)}function ot(){Zi=0}function Wt(){this._call=this._time=this._next=null}function fe(n,i,o){var s=new Wt;return s.restart(n,i,o),s}function Te(){X(),++qi;for(var n,i=Ru;i;)(n=Zi-i._time)>=0&&i._call.call(null,n),i=i._next;--qi}function Le(){Zi=(Na=T.now())+Zn,qi=ui=0;try{Te()}finally{qi=0,function(){for(var n,i,o=Ru,s=1/0;o;)o._call?(s>o._time&&(s=o._time),n=o,o=o._next):(i=o._next,o._next=null,o=n?n._next=i:Ru=i);Co=n,ze(s)}(),Zi=0}}function Oe(){var n=T.now(),i=n-Na;i>1e3&&(Zn-=i,Na=n)}function ze(n){qi||(ui&&(ui=clearTimeout(ui)),n-Zi>24?(n<1/0&&(ui=setTimeout(Le,n-T.now()-Zn)),Ka&&(Ka=clearInterval(Ka))):(Ka||(Na=T.now(),Ka=setInterval(Oe,1e3)),qi=1,I(Le)))}function Qe(n,i,o){var s=new Wt;return i=i==null?0:+i,s.restart(function(l){s.stop(),n(l+i)},i,o),s}Wt.prototype=fe.prototype={constructor:Wt,restart:function(n,i,o){if(typeof n!="function")throw new TypeError("callback is not a function");o=(o==null?X():+o)+(i==null?0:+i),this._next||Co===this||(Co?Co._next=this:Ru=this,Co=this),this._call=n,this._time=o,ze()},stop:function(){this._call&&(this._call=null,this._time=1/0,ze())}};var En=Ze("start","end","cancel","interrupt"),xn=[];function fr(n,i,o,s,l,d){var b=n.__transition;if(b){if(o in b)return}else n.__transition={};(function(m,w,E){var L,j=m.__transition;function D(U){var V,Z,it,rt;if(E.state!==1)return W();for(V in j)if((rt=j[V]).name===E.name){if(rt.state===3)return Qe(D);rt.state===4?(rt.state=6,rt.timer.stop(),rt.on.call("interrupt",m,m.__data__,rt.index,rt.group),delete j[V]):+V<w&&(rt.state=6,rt.timer.stop(),rt.on.call("cancel",m,m.__data__,rt.index,rt.group),delete j[V])}if(Qe(function(){E.state===3&&(E.state=4,E.timer.restart(q,E.delay,E.time),q(U))}),E.state=2,E.on.call("start",m,m.__data__,E.index,E.group),E.state===2){for(E.state=3,L=new Array(it=E.tween.length),V=0,Z=-1;V<it;++V)(rt=E.tween[V].value.call(m,m.__data__,E.index,E.group))&&(L[++Z]=rt);L.length=Z+1}}function q(U){for(var V=U<E.duration?E.ease.call(null,U/E.duration):(E.timer.restart(W),E.state=5,1),Z=-1,it=L.length;++Z<it;)L[Z].call(m,V);E.state===5&&(E.on.call("end",m,m.__data__,E.index,E.group),W())}function W(){for(var U in E.state=6,E.timer.stop(),delete j[w],j)return;delete m.__transition}j[w]=E,E.timer=fe(function(U){E.state=1,E.timer.restart(D,E.delay,E.time),E.delay<=U&&D(U-E.delay)},0,E.time)})(n,o,{name:i,index:s,group:l,on:En,tween:xn,time:d.time,delay:d.delay,duration:d.duration,ease:d.ease,timer:null,state:0})}function gr(n,i){var o=ur(n,i);if(o.state>0)throw new Error("too late; already scheduled");return o}function Ir(n,i){var o=ur(n,i);if(o.state>3)throw new Error("too late; already running");return o}function ur(n,i){var o=n.__transition;if(!o||!(o=o[i]))throw new Error("transition not found");return o}function fa(n,i){var o,s,l,d=n.__transition,b=!0;if(d){for(l in i=i==null?null:i+"",d)(o=d[l]).name===i?(s=o.state>2&&o.state<5,o.state=6,o.timer.stop(),o.on.call(s?"interrupt":"cancel",n,n.__data__,o.index,o.group),delete d[l]):b=!1;b&&delete n.__transition}}var Ms,eh,T0,nh,Eo=180/Math.PI,rh={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function ny(n,i,o,s,l,d){var b,m,w;return(b=Math.sqrt(n*n+i*i))&&(n/=b,i/=b),(w=n*o+i*s)&&(o-=n*w,s-=i*w),(m=Math.sqrt(o*o+s*s))&&(o/=m,s/=m,w/=m),n*s<i*o&&(n=-n,i=-i,w=-w,b=-b),{translateX:l,translateY:d,rotate:Math.atan2(i,n)*Eo,skewX:Math.atan(w)*Eo,scaleX:b,scaleY:m}}function ry(n,i,o,s){function l(d){return d.length?d.pop()+" ":""}return function(d,b){var m=[],w=[];return d=n(d),b=n(b),function(E,L,j,D,q,W){if(E!==j||L!==D){var U=q.push("translate(",null,i,null,o);W.push({i:U-4,x:la(E,j)},{i:U-2,x:la(L,D)})}else(j||D)&&q.push("translate("+j+i+D+o)}(d.translateX,d.translateY,b.translateX,b.translateY,m,w),function(E,L,j,D){E!==L?(E-L>180?L+=360:L-E>180&&(E+=360),D.push({i:j.push(l(j)+"rotate(",null,s)-2,x:la(E,L)})):L&&j.push(l(j)+"rotate("+L+s)}(d.rotate,b.rotate,m,w),function(E,L,j,D){E!==L?D.push({i:j.push(l(j)+"skewX(",null,s)-2,x:la(E,L)}):L&&j.push(l(j)+"skewX("+L+s)}(d.skewX,b.skewX,m,w),function(E,L,j,D,q,W){if(E!==j||L!==D){var U=q.push(l(q)+"scale(",null,",",null,")");W.push({i:U-4,x:la(E,j)},{i:U-2,x:la(L,D)})}else j===1&&D===1||q.push(l(q)+"scale("+j+","+D+")")}(d.scaleX,d.scaleY,b.scaleX,b.scaleY,m,w),d=b=null,function(E){for(var L,j=-1,D=w.length;++j<D;)m[(L=w[j]).i]=L.x(E);return m.join("")}}}var C0=ry(function(n){return n==="none"?rh:(Ms||(Ms=document.createElement("DIV"),eh=document.documentElement,T0=document.defaultView),Ms.style.transform=n,n=T0.getComputedStyle(eh.appendChild(Ms),null).getPropertyValue("transform"),eh.removeChild(Ms),ny(+(n=n.slice(7,-1).split(","))[0],+n[1],+n[2],+n[3],+n[4],+n[5]))},"px, ","px)","deg)"),E0=ry(function(n){return n==null?rh:(nh||(nh=document.createElementNS("http://www.w3.org/2000/svg","g")),nh.setAttribute("transform",n),(n=nh.transform.baseVal.consolidate())?ny((n=n.matrix).a,n.b,n.c,n.d,n.e,n.f):rh)},", ",")",")");function iy(n,i){var o,s;return function(){var l=Ir(this,n),d=l.tween;if(d!==o){for(var b=0,m=(s=o=d).length;b<m;++b)if(s[b].name===i){(s=s.slice()).splice(b,1);break}}l.tween=s}}function S0(n,i,o){var s,l;if(typeof o!="function")throw new Error;return function(){var d=Ir(this,n),b=d.tween;if(b!==s){l=(s=b).slice();for(var m={name:i,value:o},w=0,E=l.length;w<E;++w)if(l[w].name===i){l[w]=m;break}w===E&&l.push(m)}d.tween=l}}function X1(n,i,o){var s=n._id;return n.each(function(){var l=Ir(this,s);(l.value||(l.value={}))[i]=o.apply(this,arguments)}),function(l){return ur(l,s).value[i]}}function A0(n,i){var o;return(typeof i=="number"?la:i instanceof Aa?uc:(o=Aa(i))?(i=o,uc):To)(n,i)}function Jo(n){return function(){this.removeAttribute(n)}}function M0(n){return function(){this.removeAttributeNS(n.space,n.local)}}function N0(n,i,o){var s,l,d=o+"";return function(){var b=this.getAttribute(n);return b===d?null:b===s?l:l=i(s=b,o)}}function D0(n,i,o){var s,l,d=o+"";return function(){var b=this.getAttributeNS(n.space,n.local);return b===d?null:b===s?l:l=i(s=b,o)}}function L0(n,i,o){var s,l,d;return function(){var b,m,w=o(this);if(w!=null)return(b=this.getAttribute(n))===(m=w+"")?null:b===s&&m===l?d:(l=m,d=i(s=b,w));this.removeAttribute(n)}}function Db(n,i,o){var s,l,d;return function(){var b,m,w=o(this);if(w!=null)return(b=this.getAttributeNS(n.space,n.local))===(m=w+"")?null:b===s&&m===l?d:(l=m,d=i(s=b,w));this.removeAttributeNS(n.space,n.local)}}function B0(n,i){return function(o){this.setAttribute(n,i.call(this,o))}}function Ns(n,i){return function(o){this.setAttributeNS(n.space,n.local,i.call(this,o))}}function ay(n,i){var o,s;function l(){var d=i.apply(this,arguments);return d!==s&&(o=(s=d)&&Ns(n,d)),o}return l._value=i,l}function O0(n,i){var o,s;function l(){var d=i.apply(this,arguments);return d!==s&&(o=(s=d)&&B0(n,d)),o}return l._value=i,l}function oy(n,i){return function(){gr(this,n).delay=+i.apply(this,arguments)}}function ih(n,i){return i=+i,function(){gr(this,n).delay=i}}function Lb(n,i){return function(){Ir(this,n).duration=+i.apply(this,arguments)}}function Bb(n,i){return i=+i,function(){Ir(this,n).duration=i}}function I0(n,i){if(typeof i!="function")throw new Error;return function(){Ir(this,n).ease=i}}function R0(n,i,o){var s,l,d=function(b){return(b+"").trim().split(/^|\s+/).every(function(m){var w=m.indexOf(".");return w>=0&&(m=m.slice(0,w)),!m||m==="start"})}(i)?gr:Ir;return function(){var b=d(this,n),m=b.on;m!==s&&(l=(s=m).copy()).on(i,o),b.on=l}}var F0=pi.prototype.constructor;function P0(n){return function(){this.style.removeProperty(n)}}function j0(n,i,o){return function(s){this.style.setProperty(n,i.call(this,s),o)}}function Y0(n,i,o){var s,l;function d(){var b=i.apply(this,arguments);return b!==l&&(s=(l=b)&&j0(n,b,o)),s}return d._value=i,d}function z0(n){return function(i){this.textContent=n.call(this,i)}}function Ob(n){var i,o;function s(){var l=n.apply(this,arguments);return l!==o&&(i=(o=l)&&z0(l)),i}return s._value=n,s}var Ib=0;function ts(n,i,o,s){this._groups=n,this._parents=i,this._name=o,this._id=s}function Z1(n){return pi().transition(n)}function U0(){return++Ib}var es=pi.prototype;function Q1(n){return n*n*n}function K1(n){return--n*n*n+1}function lc(n){return((n*=2)<=1?n*n*n:(n-=2)*n*n+2)/2}ts.prototype=Z1.prototype={constructor:ts,select:function(n){var i=this._name,o=this._id;typeof n!="function"&&(n=Qn(n));for(var s=this._groups,l=s.length,d=new Array(l),b=0;b<l;++b)for(var m,w,E=s[b],L=E.length,j=d[b]=new Array(L),D=0;D<L;++D)(m=E[D])&&(w=n.call(m,m.__data__,D,E))&&("__data__"in m&&(w.__data__=m.__data__),j[D]=w,fr(j[D],i,o,D,j,ur(m,o)));return new ts(d,this._parents,i,o)},selectAll:function(n){var i=this._name,o=this._id;typeof n!="function"&&(n=nn(n));for(var s=this._groups,l=s.length,d=[],b=[],m=0;m<l;++m)for(var w,E=s[m],L=E.length,j=0;j<L;++j)if(w=E[j]){for(var D,q=n.call(w,w.__data__,j,E),W=ur(w,o),U=0,V=q.length;U<V;++U)(D=q[U])&&fr(D,i,o,U,q,W);d.push(q),b.push(w)}return new ts(d,b,i,o)},filter:function(n){typeof n!="function"&&(n=Sr(n));for(var i=this._groups,o=i.length,s=new Array(o),l=0;l<o;++l)for(var d,b=i[l],m=b.length,w=s[l]=[],E=0;E<m;++E)(d=b[E])&&n.call(d,d.__data__,E,b)&&w.push(d);return new ts(s,this._parents,this._name,this._id)},merge:function(n){if(n._id!==this._id)throw new Error;for(var i=this._groups,o=n._groups,s=i.length,l=o.length,d=Math.min(s,l),b=new Array(s),m=0;m<d;++m)for(var w,E=i[m],L=o[m],j=E.length,D=b[m]=new Array(j),q=0;q<j;++q)(w=E[q]||L[q])&&(D[q]=w);for(;m<s;++m)b[m]=i[m];return new ts(b,this._parents,this._name,this._id)},selection:function(){return new F0(this._groups,this._parents)},transition:function(){for(var n=this._name,i=this._id,o=U0(),s=this._groups,l=s.length,d=0;d<l;++d)for(var b,m=s[d],w=m.length,E=0;E<w;++E)if(b=m[E]){var L=ur(b,i);fr(b,n,o,E,m,{time:L.time+L.delay+L.duration,delay:0,duration:L.duration,ease:L.ease})}return new ts(s,this._parents,n,o)},call:es.call,nodes:es.nodes,node:es.node,size:es.size,empty:es.empty,each:es.each,on:function(n,i){var o=this._id;return arguments.length<2?ur(this.node(),o).on.on(n):this.each(R0(o,n,i))},attr:function(n,i){var o=Yn(n),s=o==="transform"?E0:A0;return this.attrTween(n,typeof i=="function"?(o.local?Db:L0)(o,s,X1(this,"attr."+n,i)):i==null?(o.local?M0:Jo)(o):(o.local?D0:N0)(o,s,i))},attrTween:function(n,i){var o="attr."+n;if(arguments.length<2)return(o=this.tween(o))&&o._value;if(i==null)return this.tween(o,null);if(typeof i!="function")throw new Error;var s=Yn(n);return this.tween(o,(s.local?ay:O0)(s,i))},style:function(n,i,o){var s=(n+="")=="transform"?C0:A0;return i==null?this.styleTween(n,function(l,d){var b,m,w;return function(){var E=sn(this,l),L=(this.style.removeProperty(l),sn(this,l));return E===L?null:E===b&&L===m?w:w=d(b=E,m=L)}}(n,s)).on("end.style."+n,P0(n)):typeof i=="function"?this.styleTween(n,function(l,d,b){var m,w,E;return function(){var L=sn(this,l),j=b(this),D=j+"";return j==null&&(this.style.removeProperty(l),D=j=sn(this,l)),L===D?null:L===m&&D===w?E:(w=D,E=d(m=L,j))}}(n,s,X1(this,"style."+n,i))).each(function(l,d){var b,m,w,E,L="style."+d,j="end."+L;return function(){var D=Ir(this,l),q=D.on,W=D.value[L]==null?E||(E=P0(d)):void 0;q===b&&w===W||(m=(b=q).copy()).on(j,w=W),D.on=m}}(this._id,n)):this.styleTween(n,function(l,d,b){var m,w,E=b+"";return function(){var L=sn(this,l);return L===E?null:L===m?w:w=d(m=L,b)}}(n,s,i),o).on("end.style."+n,null)},styleTween:function(n,i,o){var s="style."+(n+="");if(arguments.length<2)return(s=this.tween(s))&&s._value;if(i==null)return this.tween(s,null);if(typeof i!="function")throw new Error;return this.tween(s,Y0(n,i,o==null?"":o))},text:function(n){return this.tween("text",typeof n=="function"?function(i){return function(){var o=i(this);this.textContent=o==null?"":o}}(X1(this,"text",n)):function(i){return function(){this.textContent=i}}(n==null?"":n+""))},textTween:function(n){var i="text";if(arguments.length<1)return(i=this.tween(i))&&i._value;if(n==null)return this.tween(i,null);if(typeof n!="function")throw new Error;return this.tween(i,Ob(n))},remove:function(){return this.on("end.remove",function(n){return function(){var i=this.parentNode;for(var o in this.__transition)if(+o!==n)return;i&&i.removeChild(this)}}(this._id))},tween:function(n,i){var o=this._id;if(n+="",arguments.length<2){for(var s,l=ur(this.node(),o).tween,d=0,b=l.length;d<b;++d)if((s=l[d]).name===n)return s.value;return null}return this.each((i==null?iy:S0)(o,n,i))},delay:function(n){var i=this._id;return arguments.length?this.each((typeof n=="function"?oy:ih)(i,n)):ur(this.node(),i).delay},duration:function(n){var i=this._id;return arguments.length?this.each((typeof n=="function"?Lb:Bb)(i,n)):ur(this.node(),i).duration},ease:function(n){var i=this._id;return arguments.length?this.each(I0(i,n)):ur(this.node(),i).ease},end:function(){var n,i,o=this,s=o._id,l=o.size();return new Promise(function(d,b){var m={value:b},w={value:function(){--l==0&&d()}};o.each(function(){var E=Ir(this,s),L=E.on;L!==n&&((i=(n=L).copy())._.cancel.push(m),i._.interrupt.push(m),i._.end.push(w)),E.on=i})})}};var Vc={time:null,delay:0,duration:250,ease:lc};function ns(n,i){for(var o;!(o=n.__transition)||!(o=o[i]);)if(!(n=n.parentNode))return Vc.time=X(),Vc;return o}pi.prototype.interrupt=function(n){return this.each(function(){fa(this,n)})},pi.prototype.transition=function(n){var i,o;n instanceof ts?(i=n._id,n=n._name):(i=U0(),(o=Vc).time=X(),n=n==null?null:n+"");for(var s=this._groups,l=s.length,d=0;d<l;++d)for(var b,m=s[d],w=m.length,E=0;E<w;++E)(b=m[E])&&fr(b,n,i,E,m,o||ns(b,i));return new ts(s,this._parents,n,i)};var Rb=[null];function Fb(n,i){var o,s,l=n.__transition;if(l){for(s in i=i==null?null:i+"",l)if((o=l[s]).state>1&&o.name===i)return new ts([[n]],Rb,i,+s)}return null}function q0(n){return function(){return n}}function Pb(n,i,o){this.target=n,this.type=i,this.selection=o}function sy(){we.stopImmediatePropagation()}function $0(){we.preventDefault(),we.stopImmediatePropagation()}var cy={name:"drag"},J1={name:"space"},Gc={name:"handle"},Xc={name:"center"};function Fu(n){return[+n[0],+n[1]]}function tf(n){return[Fu(n[0]),Fu(n[1])]}function ef(n){return function(i){return ha(i,we.touches,n)}}var nf={name:"x",handles:["w","e"].map(Da),input:function(n,i){return n==null?null:[[+n[0],i[0][1]],[+n[1],i[1][1]]]},output:function(n){return n&&[n[0][0],n[1][0]]}},Pu={name:"y",handles:["n","s"].map(Da),input:function(n,i){return n==null?null:[[i[0][0],+n[0]],[i[1][0],+n[1]]]},output:function(n){return n&&[n[0][1],n[1][1]]}},Ja={name:"xy",handles:["n","w","e","s","nw","ne","sw","se"].map(Da),input:function(n){return n==null?null:tf(n)},output:function(n){return n}},rs={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"},H0={e:"w",w:"e",nw:"ne",ne:"nw",se:"sw",sw:"se"},rf={n:"s",s:"n",nw:"sw",ne:"se",se:"ne",sw:"nw"},uy={overlay:1,selection:1,n:null,e:1,s:null,w:-1,nw:-1,ne:1,se:1,sw:-1},ly={overlay:1,selection:1,n:-1,e:null,s:1,w:null,nw:-1,ne:-1,se:1,sw:1};function Da(n){return{type:n}}function W0(){return!we.ctrlKey&&!we.button}function V0(){var n=this.ownerSVGElement||this;return n.hasAttribute("viewBox")?[[(n=n.viewBox.baseVal).x,n.y],[n.x+n.width,n.y+n.height]]:[[0,0],[n.width.baseVal.value,n.height.baseVal.value]]}function hy(){return navigator.maxTouchPoints||"ontouchstart"in this}function af(n){for(;!n.__brush;)if(!(n=n.parentNode))return;return n.__brush}function jb(n){return n[0][0]===n[1][0]||n[0][1]===n[1][1]}function Yb(n){var i=n.__brush;return i?i.dim.output(i.selection):null}function of(){return ah(nf)}function zb(){return ah(Pu)}function G0(){return ah(Ja)}function ah(n){var i,o=V0,s=W0,l=hy,d=!0,b=Ze("start","brush","end"),m=6;function w(V){var Z=V.property("__brush",U).selectAll(".overlay").data([Da("overlay")]);Z.enter().append("rect").attr("class","overlay").attr("pointer-events","all").attr("cursor",rs.overlay).merge(Z).each(function(){var rt=af(this).extent;$r(this).attr("x",rt[0][0]).attr("y",rt[0][1]).attr("width",rt[1][0]-rt[0][0]).attr("height",rt[1][1]-rt[0][1])}),V.selectAll(".selection").data([Da("selection")]).enter().append("rect").attr("class","selection").attr("cursor",rs.selection).attr("fill","#777").attr("fill-opacity",.3).attr("stroke","#fff").attr("shape-rendering","crispEdges");var it=V.selectAll(".handle").data(n.handles,function(rt){return rt.type});it.exit().remove(),it.enter().append("rect").attr("class",function(rt){return"handle handle--"+rt.type}).attr("cursor",function(rt){return rs[rt.type]}),V.each(E).attr("fill","none").attr("pointer-events","all").on("mousedown.brush",D).filter(l).on("touchstart.brush",D).on("touchmove.brush",q).on("touchend.brush touchcancel.brush",W).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function E(){var V=$r(this),Z=af(this).selection;Z?(V.selectAll(".selection").style("display",null).attr("x",Z[0][0]).attr("y",Z[0][1]).attr("width",Z[1][0]-Z[0][0]).attr("height",Z[1][1]-Z[0][1]),V.selectAll(".handle").style("display",null).attr("x",function(it){return it.type[it.type.length-1]==="e"?Z[1][0]-m/2:Z[0][0]-m/2}).attr("y",function(it){return it.type[0]==="s"?Z[1][1]-m/2:Z[0][1]-m/2}).attr("width",function(it){return it.type==="n"||it.type==="s"?Z[1][0]-Z[0][0]+m:m}).attr("height",function(it){return it.type==="e"||it.type==="w"?Z[1][1]-Z[0][1]+m:m})):V.selectAll(".selection,.handle").style("display","none").attr("x",null).attr("y",null).attr("width",null).attr("height",null)}function L(V,Z,it){var rt=V.__brush.emitter;return!rt||it&&rt.clean?new j(V,Z,it):rt}function j(V,Z,it){this.that=V,this.args=Z,this.state=V.__brush,this.active=0,this.clean=it}function D(){if((!i||we.touches)&&s.apply(this,arguments)){var V,Z,it,rt,dt,Pt,Vt,Jt,ke,Yt,ce,ht=this,Ct=we.target.__data__.type,ne=(d&&we.metaKey?Ct="overlay":Ct)==="selection"?cy:d&&we.altKey?Xc:Gc,Qt=n===Pu?null:uy[Ct],ie=n===nf?null:ly[Ct],Fe=af(ht),Ke=Fe.extent,Tn=Fe.selection,Sn=Ke[0][0],ar=Ke[0][1],on=Ke[1][0],yr=Ke[1][1],In=0,Nn=0,dr=Qt&&ie&&d&&we.shiftKey,Vi=we.touches?ef(we.changedTouches[0].identifier):As,wi=Vi(ht),qr=wi,zc=L(ht,arguments,!0).beforestart();Ct==="overlay"?(Tn&&(ke=!0),Fe.selection=Tn=[[V=n===Pu?Sn:wi[0],it=n===nf?ar:wi[1]],[dt=n===Pu?on:V,Vt=n===nf?yr:it]]):(V=Tn[0][0],it=Tn[0][1],dt=Tn[1][0],Vt=Tn[1][1]),Z=V,rt=it,Pt=dt,Jt=Vt;var Vl=$r(ht).attr("pointer-events","none"),na=Vl.selectAll(".overlay").attr("cursor",rs[Ct]);if(we.touches)zc.moved=kb,zc.ended=Q2;else{var wb=$r(we.view).on("mousemove.brush",kb,!0).on("mouseup.brush",Q2,!0);d&&wb.on("keydown.brush",K2,!0).on("keyup.brush",z_,!0),ji(we.view)}sy(),fa(ht),E.call(ht),zc.start()}function kb(){var _o=Vi(ht);!dr||Yt||ce||(Math.abs(_o[0]-qr[0])>Math.abs(_o[1]-qr[1])?ce=!0:Yt=!0),qr=_o,ke=!0,$0(),Su()}function Su(){var _o;switch(In=qr[0]-wi[0],Nn=qr[1]-wi[1],ne){case J1:case cy:Qt&&(In=Math.max(Sn-V,Math.min(on-dt,In)),Z=V+In,Pt=dt+In),ie&&(Nn=Math.max(ar-it,Math.min(yr-Vt,Nn)),rt=it+Nn,Jt=Vt+Nn);break;case Gc:Qt<0?(In=Math.max(Sn-V,Math.min(on-V,In)),Z=V+In,Pt=dt):Qt>0&&(In=Math.max(Sn-dt,Math.min(on-dt,In)),Z=V,Pt=dt+In),ie<0?(Nn=Math.max(ar-it,Math.min(yr-it,Nn)),rt=it+Nn,Jt=Vt):ie>0&&(Nn=Math.max(ar-Vt,Math.min(yr-Vt,Nn)),rt=it,Jt=Vt+Nn);break;case Xc:Qt&&(Z=Math.max(Sn,Math.min(on,V-In*Qt)),Pt=Math.max(Sn,Math.min(on,dt+In*Qt))),ie&&(rt=Math.max(ar,Math.min(yr,it-Nn*ie)),Jt=Math.max(ar,Math.min(yr,Vt+Nn*ie)))}Pt<Z&&(Qt*=-1,_o=V,V=dt,dt=_o,_o=Z,Z=Pt,Pt=_o,Ct in H0&&na.attr("cursor",rs[Ct=H0[Ct]])),Jt<rt&&(ie*=-1,_o=it,it=Vt,Vt=_o,_o=rt,rt=Jt,Jt=_o,Ct in rf&&na.attr("cursor",rs[Ct=rf[Ct]])),Fe.selection&&(Tn=Fe.selection),Yt&&(Z=Tn[0][0],Pt=Tn[1][0]),ce&&(rt=Tn[0][1],Jt=Tn[1][1]),Tn[0][0]===Z&&Tn[0][1]===rt&&Tn[1][0]===Pt&&Tn[1][1]===Jt||(Fe.selection=[[Z,rt],[Pt,Jt]],E.call(ht),zc.brush())}function Q2(){if(sy(),we.touches){if(we.touches.length)return;i&&clearTimeout(i),i=setTimeout(function(){i=null},500)}else Mr(we.view,ke),wb.on("keydown.brush keyup.brush mousemove.brush mouseup.brush",null);Vl.attr("pointer-events","all"),na.attr("cursor",rs.overlay),Fe.selection&&(Tn=Fe.selection),jb(Tn)&&(Fe.selection=null,E.call(ht)),zc.end()}function K2(){switch(we.keyCode){case 16:dr=Qt&&ie;break;case 18:ne===Gc&&(Qt&&(dt=Pt-In*Qt,V=Z+In*Qt),ie&&(Vt=Jt-Nn*ie,it=rt+Nn*ie),ne=Xc,Su());break;case 32:ne!==Gc&&ne!==Xc||(Qt<0?dt=Pt-In:Qt>0&&(V=Z-In),ie<0?Vt=Jt-Nn:ie>0&&(it=rt-Nn),ne=J1,na.attr("cursor",rs.selection),Su());break;default:return}$0()}function z_(){switch(we.keyCode){case 16:dr&&(Yt=ce=dr=!1,Su());break;case 18:ne===Xc&&(Qt<0?dt=Pt:Qt>0&&(V=Z),ie<0?Vt=Jt:ie>0&&(it=rt),ne=Gc,Su());break;case 32:ne===J1&&(we.altKey?(Qt&&(dt=Pt-In*Qt,V=Z+In*Qt),ie&&(Vt=Jt-Nn*ie,it=rt+Nn*ie),ne=Xc):(Qt<0?dt=Pt:Qt>0&&(V=Z),ie<0?Vt=Jt:ie>0&&(it=rt),ne=Gc),na.attr("cursor",rs[Ct]),Su());break;default:return}$0()}}function q(){L(this,arguments).moved()}function W(){L(this,arguments).ended()}function U(){var V=this.__brush||{selection:null};return V.extent=tf(o.apply(this,arguments)),V.dim=n,V}return w.move=function(V,Z){V.selection?V.on("start.brush",function(){L(this,arguments).beforestart().start()}).on("interrupt.brush end.brush",function(){L(this,arguments).end()}).tween("brush",function(){var it=this,rt=it.__brush,dt=L(it,arguments),Pt=rt.selection,Vt=n.input(typeof Z=="function"?Z.apply(this,arguments):Z,rt.extent),Jt=Hc(Pt,Vt);function ke(Yt){rt.selection=Yt===1&&Vt===null?null:Jt(Yt),E.call(it),dt.brush()}return Pt!==null&&Vt!==null?ke:ke(1)}):V.each(function(){var it=this,rt=arguments,dt=it.__brush,Pt=n.input(typeof Z=="function"?Z.apply(it,rt):Z,dt.extent),Vt=L(it,rt).beforestart();fa(it),dt.selection=Pt===null?null:Pt,E.call(it),Vt.start().brush().end()})},w.clear=function(V){w.move(V,null)},j.prototype={beforestart:function(){return++this.active==1&&(this.state.emitter=this,this.starting=!0),this},start:function(){return this.starting?(this.starting=!1,this.emit("start")):this.emit("brush"),this},brush:function(){return this.emit("brush"),this},end:function(){return--this.active==0&&(delete this.state.emitter,this.emit("end")),this},emit:function(V){zr(new Pb(w,V,n.output(this.state.selection)),b.apply,b,[V,this.that,this.args])}},w.extent=function(V){return arguments.length?(o=typeof V=="function"?V:q0(tf(V)),w):o},w.filter=function(V){return arguments.length?(s=typeof V=="function"?V:q0(!!V),w):s},w.touchable=function(V){return arguments.length?(l=typeof V=="function"?V:q0(!!V),w):l},w.handleSize=function(V){return arguments.length?(m=+V,w):m},w.keyModifiers=function(V){return arguments.length?(d=!!V,w):d},w.on=function(){var V=b.on.apply(b,arguments);return V===b?w:V},w}var fy=Math.cos,dy=Math.sin,sf=Math.PI,cf=sf/2,py=2*sf,X0=Math.max;function ju(n){return function(i,o){return n(i.source.value+i.target.value,o.source.value+o.target.value)}}function Z0(){var n=0,i=null,o=null,s=null;function l(d){var b,m,w,E,L,j,D=d.length,q=[],W=zt(D),U=[],V=[],Z=V.groups=new Array(D),it=new Array(D*D);for(b=0,L=-1;++L<D;){for(m=0,j=-1;++j<D;)m+=d[L][j];q.push(m),U.push(zt(D)),b+=m}for(i&&W.sort(function(ce,ht){return i(q[ce],q[ht])}),o&&U.forEach(function(ce,ht){ce.sort(function(Ct,ne){return o(d[ht][Ct],d[ht][ne])})}),E=(b=X0(0,py-n*D)/b)?n:py/D,m=0,L=-1;++L<D;){for(w=m,j=-1;++j<D;){var rt=W[L],dt=U[rt][j],Pt=d[rt][dt],Vt=m,Jt=m+=Pt*b;it[dt*D+rt]={index:rt,subindex:dt,startAngle:Vt,endAngle:Jt,value:Pt}}Z[rt]={index:rt,startAngle:w,endAngle:m,value:q[rt]},m+=E}for(L=-1;++L<D;)for(j=L-1;++j<D;){var ke=it[j*D+L],Yt=it[L*D+j];(ke.value||Yt.value)&&V.push(ke.value<Yt.value?{source:Yt,target:ke}:{source:ke,target:Yt})}return s?V.sort(s):V}return l.padAngle=function(d){return arguments.length?(n=X0(0,d),l):n},l.sortGroups=function(d){return arguments.length?(i=d,l):i},l.sortSubgroups=function(d){return arguments.length?(o=d,l):o},l.sortChords=function(d){return arguments.length?(d==null?s=null:(s=ju(d))._=d,l):s&&s._},l}var Ub=Array.prototype.slice;function Q0(n){return function(){return n}}var uf=Math.PI,lf=2*uf,Ds=1e-6,gy=lf-Ds;function K0(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function oh(){return new K0}K0.prototype=oh.prototype={constructor:K0,moveTo:function(n,i){this._+="M"+(this._x0=this._x1=+n)+","+(this._y0=this._y1=+i)},closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(n,i){this._+="L"+(this._x1=+n)+","+(this._y1=+i)},quadraticCurveTo:function(n,i,o,s){this._+="Q"+ +n+","+ +i+","+(this._x1=+o)+","+(this._y1=+s)},bezierCurveTo:function(n,i,o,s,l,d){this._+="C"+ +n+","+ +i+","+ +o+","+ +s+","+(this._x1=+l)+","+(this._y1=+d)},arcTo:function(n,i,o,s,l){n=+n,i=+i,o=+o,s=+s,l=+l;var d=this._x1,b=this._y1,m=o-n,w=s-i,E=d-n,L=b-i,j=E*E+L*L;if(l<0)throw new Error("negative radius: "+l);if(this._x1===null)this._+="M"+(this._x1=n)+","+(this._y1=i);else if(j>Ds)if(Math.abs(L*m-w*E)>Ds&&l){var D=o-d,q=s-b,W=m*m+w*w,U=D*D+q*q,V=Math.sqrt(W),Z=Math.sqrt(j),it=l*Math.tan((uf-Math.acos((W+j-U)/(2*V*Z)))/2),rt=it/Z,dt=it/V;Math.abs(rt-1)>Ds&&(this._+="L"+(n+rt*E)+","+(i+rt*L)),this._+="A"+l+","+l+",0,0,"+ +(L*D>E*q)+","+(this._x1=n+dt*m)+","+(this._y1=i+dt*w)}else this._+="L"+(this._x1=n)+","+(this._y1=i)},arc:function(n,i,o,s,l,d){n=+n,i=+i,d=!!d;var b=(o=+o)*Math.cos(s),m=o*Math.sin(s),w=n+b,E=i+m,L=1^d,j=d?s-l:l-s;if(o<0)throw new Error("negative radius: "+o);this._x1===null?this._+="M"+w+","+E:(Math.abs(this._x1-w)>Ds||Math.abs(this._y1-E)>Ds)&&(this._+="L"+w+","+E),o&&(j<0&&(j=j%lf+lf),j>gy?this._+="A"+o+","+o+",0,1,"+L+","+(n-b)+","+(i-m)+"A"+o+","+o+",0,1,"+L+","+(this._x1=w)+","+(this._y1=E):j>Ds&&(this._+="A"+o+","+o+",0,"+ +(j>=uf)+","+L+","+(this._x1=n+o*Math.cos(l))+","+(this._y1=i+o*Math.sin(l))))},rect:function(n,i,o,s){this._+="M"+(this._x0=this._x1=+n)+","+(this._y0=this._y1=+i)+"h"+ +o+"v"+ +s+"h"+-o+"Z"},toString:function(){return this._}};const Ls=oh;function hf(n){return n.source}function Yu(n){return n.target}function yy(n){return n.radius}function my(n){return n.startAngle}function vy(n){return n.endAngle}function J0(){var n=hf,i=Yu,o=yy,s=my,l=vy,d=null;function b(){var m,w=Ub.call(arguments),E=n.apply(this,w),L=i.apply(this,w),j=+o.apply(this,(w[0]=E,w)),D=s.apply(this,w)-cf,q=l.apply(this,w)-cf,W=j*fy(D),U=j*dy(D),V=+o.apply(this,(w[0]=L,w)),Z=s.apply(this,w)-cf,it=l.apply(this,w)-cf;if(d||(d=m=Ls()),d.moveTo(W,U),d.arc(0,0,j,D,q),D===Z&&q===it||(d.quadraticCurveTo(0,0,V*fy(Z),V*dy(Z)),d.arc(0,0,V,Z,it)),d.quadraticCurveTo(0,0,W,U),d.closePath(),m)return d=null,m+""||null}return b.radius=function(m){return arguments.length?(o=typeof m=="function"?m:Q0(+m),b):o},b.startAngle=function(m){return arguments.length?(s=typeof m=="function"?m:Q0(+m),b):s},b.endAngle=function(m){return arguments.length?(l=typeof m=="function"?m:Q0(+m),b):l},b.source=function(m){return arguments.length?(n=m,b):n},b.target=function(m){return arguments.length?(i=m,b):i},b.context=function(m){return arguments.length?(d=m==null?null:m,b):d},b}var to="$";function sh(){}function tp(n,i){var o=new sh;if(n instanceof sh)n.each(function(m,w){o.set(w,m)});else if(Array.isArray(n)){var s,l=-1,d=n.length;if(i==null)for(;++l<d;)o.set(l,n[l]);else for(;++l<d;)o.set(i(s=n[l],l,n),s)}else if(n)for(var b in n)o.set(b,n[b]);return o}sh.prototype=tp.prototype={constructor:sh,has:function(n){return to+n in this},get:function(n){return this[to+n]},set:function(n,i){return this[to+n]=i,this},remove:function(n){var i=to+n;return i in this&&delete this[i]},clear:function(){for(var n in this)n[0]===to&&delete this[n]},keys:function(){var n=[];for(var i in this)i[0]===to&&n.push(i.slice(1));return n},values:function(){var n=[];for(var i in this)i[0]===to&&n.push(this[i]);return n},entries:function(){var n=[];for(var i in this)i[0]===to&&n.push({key:i.slice(1),value:this[i]});return n},size:function(){var n=0;for(var i in this)i[0]===to&&++n;return n},empty:function(){for(var n in this)if(n[0]===to)return!1;return!0},each:function(n){for(var i in this)i[0]===to&&n(this[i],i.slice(1),this)}};const Bs=tp;function qb(){var n,i,o,s=[],l=[];function d(m,w,E,L){if(w>=s.length)return n!=null&&m.sort(n),i!=null?i(m):m;for(var j,D,q,W=-1,U=m.length,V=s[w++],Z=Bs(),it=E();++W<U;)(q=Z.get(j=V(D=m[W])+""))?q.push(D):Z.set(j,[D]);return Z.each(function(rt,dt){L(it,dt,d(rt,w,E,L))}),it}function b(m,w){if(++w>s.length)return m;var E,L=l[w-1];return i!=null&&w>=s.length?E=m.entries():(E=[],m.each(function(j,D){E.push({key:D,values:b(j,w)})})),L!=null?E.sort(function(j,D){return L(j.key,D.key)}):E}return o={object:function(m){return d(m,0,by,_y)},map:function(m){return d(m,0,ep,xy)},entries:function(m){return b(d(m,0,ep,xy),0)},key:function(m){return s.push(m),o},sortKeys:function(m){return l[s.length-1]=m,o},sortValues:function(m){return n=m,o},rollup:function(m){return i=m,o}}}function by(){return{}}function _y(n,i,o){n[i]=o}function ep(){return Bs()}function xy(n,i,o){n.set(i,o)}function ch(){}var hc=Bs.prototype;function zu(n,i){var o=new ch;if(n instanceof ch)n.each(function(d){o.add(d)});else if(n){var s=-1,l=n.length;if(i==null)for(;++s<l;)o.add(n[s]);else for(;++s<l;)o.add(i(n[s],s,n))}return o}ch.prototype=zu.prototype={constructor:ch,has:hc.has,add:function(n){return this[to+(n+="")]=n,this},remove:hc.remove,clear:hc.clear,values:hc.keys,size:hc.size,empty:hc.empty,each:hc.each};const fc=zu;function uh(n){var i=[];for(var o in n)i.push(o);return i}function np(n){var i=[];for(var o in n)i.push(n[o]);return i}function rp(n){var i=[];for(var o in n)i.push({key:o,value:n[o]});return i}var ff=Math.PI/180,df=180/Math.PI,pf=.96422,Mi=.82521,gf=4/29,ip=6/29,wy=3*ip*ip;function Uu(n){if(n instanceof So)return new So(n.l,n.a,n.b,n.opacity);if(n instanceof is)return sp(n);n instanceof ri||(n=Uc(n));var i,o,s=Os(n.r),l=Os(n.g),d=Os(n.b),b=yf((.2225045*s+.7168786*l+.0606169*d)/1);return s===l&&l===d?i=o=b:(i=yf((.4360747*s+.3850649*l+.1430804*d)/pf),o=yf((.0139322*s+.0971045*l+.7141733*d)/Mi)),new So(116*b-16,500*(i-b),200*(b-o),n.opacity)}function $b(n,i){return new So(n,0,0,i==null?1:i)}function lh(n,i,o,s){return arguments.length===1?Uu(n):new So(n,i,o,s==null?1:s)}function So(n,i,o,s){this.l=+n,this.a=+i,this.b=+o,this.opacity=+s}function yf(n){return n>.008856451679035631?Math.pow(n,1/3):n/wy+gf}function ap(n){return n>ip?n*n*n:wy*(n-gf)}function qu(n){return 255*(n<=.0031308?12.92*n:1.055*Math.pow(n,1/2.4)-.055)}function Os(n){return(n/=255)<=.04045?n/12.92:Math.pow((n+.055)/1.055,2.4)}function mf(n){if(n instanceof is)return new is(n.h,n.c,n.l,n.opacity);if(n instanceof So||(n=Uu(n)),n.a===0&&n.b===0)return new is(NaN,0<n.l&&n.l<100?0:NaN,n.l,n.opacity);var i=Math.atan2(n.b,n.a)*df;return new is(i<0?i+360:i,Math.sqrt(n.a*n.a+n.b*n.b),n.l,n.opacity)}function op(n,i,o,s){return arguments.length===1?mf(n):new is(o,i,n,s==null?1:s)}function dc(n,i,o,s){return arguments.length===1?mf(n):new is(n,i,o,s==null?1:s)}function is(n,i,o,s){this.h=+n,this.c=+i,this.l=+o,this.opacity=+s}function sp(n){if(isNaN(n.h))return new So(n.l,0,0,n.opacity);var i=n.h*ff;return new So(n.l,Math.cos(i)*n.c,Math.sin(i)*n.c,n.opacity)}ni(So,lh,gi(pr,{brighter:function(n){return new So(this.l+18*(n==null?1:n),this.a,this.b,this.opacity)},darker:function(n){return new So(this.l-18*(n==null?1:n),this.a,this.b,this.opacity)},rgb:function(){var n=(this.l+16)/116,i=isNaN(this.a)?n:n+this.a/500,o=isNaN(this.b)?n:n-this.b/200;return new ri(qu(3.1338561*(i=pf*ap(i))-1.6168667*(n=1*ap(n))-.4906146*(o=Mi*ap(o))),qu(-.9787684*i+1.9161415*n+.033454*o),qu(.0719453*i-.2289914*n+1.4052427*o),this.opacity)}})),ni(is,dc,gi(pr,{brighter:function(n){return new is(this.h,this.c,this.l+18*(n==null?1:n),this.opacity)},darker:function(n){return new is(this.h,this.c,this.l-18*(n==null?1:n),this.opacity)},rgb:function(){return sp(this).rgb()}}));var cp=-.14861,Is=1.78277,up=-.29227,hh=-.90649,Ao=1.97294,ky=Ao*hh,vf=Ao*Is,$u=Is*up-hh*cp;function Ty(n){if(n instanceof Zc)return new Zc(n.h,n.s,n.l,n.opacity);n instanceof ri||(n=Uc(n));var i=n.r/255,o=n.g/255,s=n.b/255,l=($u*s+ky*i-vf*o)/($u+ky-vf),d=s-l,b=(Ao*(o-l)-up*d)/hh,m=Math.sqrt(b*b+d*d)/(Ao*l*(1-l)),w=m?Math.atan2(b,d)*df-120:NaN;return new Zc(w<0?w+360:w,m,l,n.opacity)}function da(n,i,o,s){return arguments.length===1?Ty(n):new Zc(n,i,o,s==null?1:s)}function Zc(n,i,o,s){this.h=+n,this.s=+i,this.l=+o,this.opacity=+s}ni(Zc,da,gi(pr,{brighter:function(n){return n=n==null?Yi:Math.pow(Yi,n),new Zc(this.h,this.s,this.l*n,this.opacity)},darker:function(n){return n=n==null?Xi:Math.pow(Xi,n),new Zc(this.h,this.s,this.l*n,this.opacity)},rgb:function(){var n=isNaN(this.h)?0:(this.h+120)*ff,i=+this.l,o=isNaN(this.s)?0:this.s*i*(1-i),s=Math.cos(n),l=Math.sin(n);return new ri(255*(i+o*(cp*s+Is*l)),255*(i+o*(up*s+hh*l)),255*(i+o*(Ao*s)),this.opacity)}}));var Cy=Array.prototype.slice;function Hb(n,i){return n-i}function as(n){return function(){return n}}function lp(n,i){for(var o,s=-1,l=i.length;++s<l;)if(o=fh(n,i[s]))return o;return 0}function fh(n,i){for(var o=i[0],s=i[1],l=-1,d=0,b=n.length,m=b-1;d<b;m=d++){var w=n[d],E=w[0],L=w[1],j=n[m],D=j[0],q=j[1];if(dh(w,j,i))return 0;L>s!=q>s&&o<(D-E)*(s-L)/(q-L)+E&&(l=-l)}return l}function dh(n,i,o){var s,l,d,b;return function(m,w,E){return(w[0]-m[0])*(E[1]-m[1])==(E[0]-m[0])*(w[1]-m[1])}(n,i,o)&&(l=n[s=+(n[0]===i[0])],d=o[s],b=i[s],l<=d&&d<=b||b<=d&&d<=l)}function Ey(){}var os=[[],[[[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 Ni(){var n=1,i=1,o=$,s=m;function l(w){var E=o(w);if(Array.isArray(E))E=E.slice().sort(Hb);else{var L=tt(w),j=L[0],D=L[1];E=st(j,D,E),E=zt(Math.floor(j/E)*E,Math.floor(D/E)*E,E)}return E.map(function(q){return d(w,q)})}function d(w,E){var L=[],j=[];return function(D,q,W){var U,V,Z,it,rt,dt,Pt=new Array,Vt=new Array;for(U=V=-1,it=D[0]>=q,os[it<<1].forEach(Jt);++U<n-1;)Z=it,it=D[U+1]>=q,os[Z|it<<1].forEach(Jt);for(os[it<<0].forEach(Jt);++V<i-1;){for(U=-1,it=D[V*n+n]>=q,rt=D[V*n]>=q,os[it<<1|rt<<2].forEach(Jt);++U<n-1;)Z=it,it=D[V*n+n+U+1]>=q,dt=rt,rt=D[V*n+U+1]>=q,os[Z|it<<1|rt<<2|dt<<3].forEach(Jt);os[it|rt<<3].forEach(Jt)}for(U=-1,rt=D[V*n]>=q,os[rt<<2].forEach(Jt);++U<n-1;)dt=rt,rt=D[V*n+U+1]>=q,os[rt<<2|dt<<3].forEach(Jt);function Jt(ke){var Yt,ce,ht=[ke[0][0]+U,ke[0][1]+V],Ct=[ke[1][0]+U,ke[1][1]+V],ne=b(ht),Qt=b(Ct);(Yt=Vt[ne])?(ce=Pt[Qt])?(delete Vt[Yt.end],delete Pt[ce.start],Yt===ce?(Yt.ring.push(Ct),W(Yt.ring)):Pt[Yt.start]=Vt[ce.end]={start:Yt.start,end:ce.end,ring:Yt.ring.concat(ce.ring)}):(delete Vt[Yt.end],Yt.ring.push(Ct),Vt[Yt.end=Qt]=Yt):(Yt=Pt[Qt])?(ce=Vt[ne])?(delete Pt[Yt.start],delete Vt[ce.end],Yt===ce?(Yt.ring.push(Ct),W(Yt.ring)):Pt[ce.start]=Vt[Yt.end]={start:ce.start,end:Yt.end,ring:ce.ring.concat(Yt.ring)}):(delete Pt[Yt.start],Yt.ring.unshift(ht),Pt[Yt.start=ne]=Yt):Pt[ne]=Vt[Qt]={start:ne,end:Qt,ring:[ht,Ct]}}os[rt<<3].forEach(Jt)}(w,E,function(D){s(D,w,E),function(q){for(var W=0,U=q.length,V=q[U-1][1]*q[0][0]-q[U-1][0]*q[0][1];++W<U;)V+=q[W-1][1]*q[W][0]-q[W-1][0]*q[W][1];return V}(D)>0?L.push([D]):j.push(D)}),j.forEach(function(D){for(var q,W=0,U=L.length;W<U;++W)if(lp((q=L[W])[0],D)!==-1)return void q.push(D)}),{type:"MultiPolygon",value:E,coordinates:L}}function b(w){return 2*w[0]+w[1]*(n+1)*4}function m(w,E,L){w.forEach(function(j){var D,q=j[0],W=j[1],U=0|q,V=0|W,Z=E[V*n+U];q>0&&q<n&&U===q&&(D=E[V*n+U-1],j[0]=q+(L-D)/(Z-D)-.5),W>0&&W<i&&V===W&&(D=E[(V-1)*n+U],j[1]=W+(L-D)/(Z-D)-.5)})}return l.contour=d,l.size=function(w){if(!arguments.length)return[n,i];var E=Math.ceil(w[0]),L=Math.ceil(w[1]);if(!(E>0&&L>0))throw new Error("invalid size");return n=E,i=L,l},l.thresholds=function(w){return arguments.length?(o=typeof w=="function"?w:Array.isArray(w)?as(Cy.call(w)):as(w),l):o},l.smooth=function(w){return arguments.length?(s=w?m:Ey,l):s===m},l}function hp(n,i,o){for(var s=n.width,l=n.height,d=1+(o<<1),b=0;b<l;++b)for(var m=0,w=0;m<s+o;++m)m<s&&(w+=n.data[m+b*s]),m>=o&&(m>=d&&(w-=n.data[m-d+b*s]),i.data[m-o+b*s]=w/Math.min(m+1,s-1+d-m,d))}function fp(n,i,o){for(var s=n.width,l=n.height,d=1+(o<<1),b=0;b<s;++b)for(var m=0,w=0;m<l+o;++m)m<l&&(w+=n.data[b+m*s]),m>=o&&(m>=d&&(w-=n.data[b+(m-d)*s]),i.data[b+(m-o)*s]=w/Math.min(m+1,l-1+d-m,d))}function wr(n){return n[0]}function Wb(n){return n[1]}function ph(){return 1}function gh(){var n=wr,i=Wb,o=ph,s=960,l=500,d=20,b=2,m=3*d,w=s+2*m>>b,E=l+2*m>>b,L=as(20);function j(Z){var it=new Float32Array(w*E),rt=new Float32Array(w*E);Z.forEach(function(Vt,Jt,ke){var Yt=+n(Vt,Jt,ke)+m>>b,ce=+i(Vt,Jt,ke)+m>>b,ht=+o(Vt,Jt,ke);Yt>=0&&Yt<w&&ce>=0&&ce<E&&(it[Yt+ce*w]+=ht)}),hp({width:w,height:E,data:it},{width:w,height:E,data:rt},d>>b),fp({width:w,height:E,data:rt},{width:w,height:E,data:it},d>>b),hp({width:w,height:E,data:it},{width:w,height:E,data:rt},d>>b),fp({width:w,height:E,data:rt},{width:w,height:E,data:it},d>>b),hp({width:w,height:E,data:it},{width:w,height:E,data:rt},d>>b),fp({width:w,height:E,data:rt},{width:w,height:E,data:it},d>>b);var dt=L(it);if(!Array.isArray(dt)){var Pt=ae(it);dt=st(0,Pt,dt),(dt=zt(0,Math.floor(Pt/dt)*dt,dt)).shift()}return Ni().thresholds(dt).size([w,E])(it).map(D)}function D(Z){return Z.value*=Math.pow(2,-2*b),Z.coordinates.forEach(q),Z}function q(Z){Z.forEach(W)}function W(Z){Z.forEach(U)}function U(Z){Z[0]=Z[0]*Math.pow(2,b)-m,Z[1]=Z[1]*Math.pow(2,b)-m}function V(){return w=s+2*(m=3*d)>>b,E=l+2*m>>b,j}return j.x=function(Z){return arguments.length?(n=typeof Z=="function"?Z:as(+Z),j):n},j.y=function(Z){return arguments.length?(i=typeof Z=="function"?Z:as(+Z),j):i},j.weight=function(Z){return arguments.length?(o=typeof Z=="function"?Z:as(+Z),j):o},j.size=function(Z){if(!arguments.length)return[s,l];var it=Math.ceil(Z[0]),rt=Math.ceil(Z[1]);if(!(it>=0||it>=0))throw new Error("invalid size");return s=it,l=rt,V()},j.cellSize=function(Z){if(!arguments.length)return 1<<b;if(!((Z=+Z)>=1))throw new Error("invalid cell size");return b=Math.floor(Math.log(Z)/Math.LN2),V()},j.thresholds=function(Z){return arguments.length?(L=typeof Z=="function"?Z:Array.isArray(Z)?as(Cy.call(Z)):as(Z),j):L},j.bandwidth=function(Z){if(!arguments.length)return Math.sqrt(d*(d+1));if(!((Z=+Z)>=0))throw new Error("invalid bandwidth");return d=Math.round((Math.sqrt(4*Z*Z+1)-1)/2),V()},j}function bf(n){return function(){return n}}function dp(n,i,o,s,l,d,b,m,w,E){this.target=n,this.type=i,this.subject=o,this.identifier=s,this.active=l,this.x=d,this.y=b,this.dx=m,this.dy=w,this._=E}function Vb(){return!we.ctrlKey&&!we.button}function Gb(){return this.parentNode}function Xb(n){return n==null?{x:we.x,y:we.y}:n}function Sy(){return navigator.maxTouchPoints||"ontouchstart"in this}function Ay(){var n,i,o,s,l=Vb,d=Gb,b=Xb,m=Sy,w={},E=Ze("start","drag","end"),L=0,j=0;function D(dt){dt.on("mousedown.drag",q).filter(m).on("touchstart.drag",V).on("touchmove.drag",Z).on("touchend.drag touchcancel.drag",it).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function q(){if(!s&&l.apply(this,arguments)){var dt=rt("mouse",d.apply(this,arguments),As,this,arguments);dt&&($r(we.view).on("mousemove.drag",W,!0).on("mouseup.drag",U,!0),ji(we.view),Hr(),o=!1,n=we.clientX,i=we.clientY,dt("start"))}}function W(){if(Si(),!o){var dt=we.clientX-n,Pt=we.clientY-i;o=dt*dt+Pt*Pt>j}w.mouse("drag")}function U(){$r(we.view).on("mousemove.drag mouseup.drag",null),Mr(we.view,o),Si(),w.mouse("end")}function V(){if(l.apply(this,arguments)){var dt,Pt,Vt=we.changedTouches,Jt=d.apply(this,arguments),ke=Vt.length;for(dt=0;dt<ke;++dt)(Pt=rt(Vt[dt].identifier,Jt,ha,this,arguments))&&(Hr(),Pt("start"))}}function Z(){var dt,Pt,Vt=we.changedTouches,Jt=Vt.length;for(dt=0;dt<Jt;++dt)(Pt=w[Vt[dt].identifier])&&(Si(),Pt("drag"))}function it(){var dt,Pt,Vt=we.changedTouches,Jt=Vt.length;for(s&&clearTimeout(s),s=setTimeout(function(){s=null},500),dt=0;dt<Jt;++dt)(Pt=w[Vt[dt].identifier])&&(Hr(),Pt("end"))}function rt(dt,Pt,Vt,Jt,ke){var Yt,ce,ht,Ct=Vt(Pt,dt),ne=E.copy();if(zr(new dp(D,"beforestart",Yt,dt,L,Ct[0],Ct[1],0,0,ne),function(){return(we.subject=Yt=b.apply(Jt,ke))!=null&&(ce=Yt.x-Ct[0]||0,ht=Yt.y-Ct[1]||0,!0)}))return function Qt(ie){var Fe,Ke=Ct;switch(ie){case"start":w[dt]=Qt,Fe=L++;break;case"end":delete w[dt],--L;case"drag":Ct=Vt(Pt,dt),Fe=L}zr(new dp(D,ie,Yt,dt,Fe,Ct[0]+ce,Ct[1]+ht,Ct[0]-Ke[0],Ct[1]-Ke[1],ne),ne.apply,ne,[ie,Jt,ke])}}return D.filter=function(dt){return arguments.length?(l=typeof dt=="function"?dt:bf(!!dt),D):l},D.container=function(dt){return arguments.length?(d=typeof dt=="function"?dt:bf(dt),D):d},D.subject=function(dt){return arguments.length?(b=typeof dt=="function"?dt:bf(dt),D):b},D.touchable=function(dt){return arguments.length?(m=typeof dt=="function"?dt:bf(!!dt),D):m},D.on=function(){var dt=E.on.apply(E,arguments);return dt===E?D:dt},D.clickDistance=function(dt){return arguments.length?(j=(dt=+dt)*dt,D):Math.sqrt(j)},D}dp.prototype.on=function(){var n=this._.on.apply(this._,arguments);return n===this._?this:n};var My={},pp={};function Ny(n){return new Function("d","return {"+n.map(function(i,o){return JSON.stringify(i)+": d["+o+'] || ""'}).join(",")+"}")}function gp(n){var i=Object.create(null),o=[];return n.forEach(function(s){for(var l in s)l in i||o.push(i[l]=l)}),o}function La(n,i){var o=n+"",s=o.length;return s<i?new Array(i-s+1).join(0)+o:o}function yh(n){var i=new RegExp('["'+n+`
\r]`),o=n.charCodeAt(0);function s(m,w){var E,L=[],j=m.length,D=0,q=0,W=j<=0,U=!1;function V(){if(W)return pp;if(U)return U=!1,My;var it,rt,dt=D;if(m.charCodeAt(dt)===34){for(;D++<j&&m.charCodeAt(D)!==34||m.charCodeAt(++D)===34;);return(it=D)>=j?W=!0:(rt=m.charCodeAt(D++))===10?U=!0:rt===13&&(U=!0,m.charCodeAt(D)===10&&++D),m.slice(dt+1,it-1).replace(/""/g,'"')}for(;D<j;){if((rt=m.charCodeAt(it=D++))===10)U=!0;else if(rt===13)U=!0,m.charCodeAt(D)===10&&++D;else if(rt!==o)continue;return m.slice(dt,it)}return W=!0,m.slice(dt,j)}for(m.charCodeAt(j-1)===10&&--j,m.charCodeAt(j-1)===13&&--j;(E=V())!==pp;){for(var Z=[];E!==My&&E!==pp;)Z.push(E),E=V();w&&(Z=w(Z,q++))==null||L.push(Z)}return L}function l(m,w){return m.map(function(E){return w.map(function(L){return b(E[L])}).join(n)})}function d(m){return m.map(b).join(n)}function b(m){return m==null?"":m instanceof Date?function(w){var E=w.getUTCHours(),L=w.getUTCMinutes(),j=w.getUTCSeconds(),D=w.getUTCMilliseconds();return isNaN(w)?"Invalid Date":function(q){return q<0?"-"+La(-q,6):q>9999?"+"+La(q,6):La(q,4)}(w.getUTCFullYear())+"-"+La(w.getUTCMonth()+1,2)+"-"+La(w.getUTCDate(),2)+(D?"T"+La(E,2)+":"+La(L,2)+":"+La(j,2)+"."+La(D,3)+"Z":j?"T"+La(E,2)+":"+La(L,2)+":"+La(j,2)+"Z":L||E?"T"+La(E,2)+":"+La(L,2)+"Z":"")}(m):i.test(m+="")?'"'+m.replace(/"/g,'""')+'"':m}return{parse:function(m,w){var E,L,j=s(m,function(D,q){if(E)return E(D,q-1);L=D,E=w?function(W,U){var V=Ny(W);return function(Z,it){return U(V(Z),it,W)}}(D,w):Ny(D)});return j.columns=L||[],j},parseRows:s,format:function(m,w){return w==null&&(w=gp(m)),[w.map(b).join(n)].concat(l(m,w)).join(`
`)},formatBody:function(m,w){return w==null&&(w=gp(m)),l(m,w).join(`
`)},formatRows:function(m){return m.map(d).join(`
`)},formatRow:d,formatValue:b}}var Qc=yh(","),Dy=Qc.parse,Zb=Qc.parseRows,Qb=Qc.format,Kb=Qc.formatBody,Jb=Qc.formatRows,t4=Qc.formatRow,Ly=Qc.formatValue,Kc=yh(" "),By=Kc.parse,e4=Kc.parseRows,Oy=Kc.format,n4=Kc.formatBody,r4=Kc.formatRows,i4=Kc.formatRow,a4=Kc.formatValue;function o4(n){for(var i in n){var o,s,l=n[i].trim();if(l)if(l==="true")l=!0;else if(l==="false")l=!1;else if(l==="NaN")l=NaN;else if(isNaN(o=+l)){if(!(s=l.match(/^([-+]\d{2})?\d{4}(-\d{2}(-\d{2})?)?(T\d{2}:\d{2}(:\d{2}(\.\d{3})?)?(Z|[-+]\d{2}:\d{2})?)?$/)))continue;s4&&s[4]&&!s[7]&&(l=l.replace(/-/g,"/").replace(/T/," ")),l=new Date(l)}else l=o;else l=null;n[i]=l}return n}var s4=new Date("2019-01-01T00:00").getHours()||new Date("2019-07-01T00:00").getHours();function Iy(n){return+n}function c4(n){return n*n}function u4(n){return n*(2-n)}function Ry(n){return((n*=2)<=1?n*n:--n*(2-n)+1)/2}var l4=function n(i){function o(s){return Math.pow(s,i)}return i=+i,o.exponent=n,o}(3),h4=function n(i){function o(s){return 1-Math.pow(1-s,i)}return i=+i,o.exponent=n,o}(3),Fy=function n(i){function o(s){return((s*=2)<=1?Math.pow(s,i):2-Math.pow(2-s,i))/2}return i=+i,o.exponent=n,o}(3),Py=Math.PI,jy=Py/2;function Yy(n){return+n==1?1:1-Math.cos(n*jy)}function f4(n){return Math.sin(n*jy)}function zy(n){return(1-Math.cos(Py*n))/2}function pc(n){return 1.0009775171065494*(Math.pow(2,-10*n)-.0009765625)}function Uy(n){return pc(1-+n)}function d4(n){return 1-pc(n)}function qy(n){return((n*=2)<=1?pc(1-n):2-pc(n-1))/2}function p4(n){return 1-Math.sqrt(1-n*n)}function g4(n){return Math.sqrt(1- --n*n)}function $y(n){return((n*=2)<=1?1-Math.sqrt(1-n*n):Math.sqrt(1-(n-=2)*n)+1)/2}var _f=7.5625;function Hy(n){return 1-mh(1-n)}function mh(n){return(n=+n)<.36363636363636365?_f*n*n:n<.7272727272727273?_f*(n-=.5454545454545454)*n+.75:n<.9090909090909091?_f*(n-=.8181818181818182)*n+.9375:_f*(n-=.9545454545454546)*n+.984375}function y4(n){return((n*=2)<=1?1-mh(1-n):mh(n-1)+1)/2}var yp=1.70158,m4=function n(i){function o(s){return(s=+s)*s*(i*(s-1)+s)}return i=+i,o.overshoot=n,o}(yp),v4=function n(i){function o(s){return--s*s*((s+1)*i+s)+1}return i=+i,o.overshoot=n,o}(yp),Wy=function n(i){function o(s){return((s*=2)<1?s*s*((i+1)*s-i):(s-=2)*s*((i+1)*s+i)+2)/2}return i=+i,o.overshoot=n,o}(yp),Hu=2*Math.PI,b4=function n(i,o){var s=Math.asin(1/(i=Math.max(1,i)))*(o/=Hu);function l(d){return i*pc(- --d)*Math.sin((s-d)/o)}return l.amplitude=function(d){return n(d,o*Hu)},l.period=function(d){return n(i,d)},l}(1,.3),mp=function n(i,o){var s=Math.asin(1/(i=Math.max(1,i)))*(o/=Hu);function l(d){return 1-i*pc(d=+d)*Math.sin((d+s)/o)}return l.amplitude=function(d){return n(d,o*Hu)},l.period=function(d){return n(i,d)},l}(1,.3),Vy=function n(i,o){var s=Math.asin(1/(i=Math.max(1,i)))*(o/=Hu);function l(d){return((d=2*d-1)<0?i*pc(-d)*Math.sin((s-d)/o):2-i*pc(d)*Math.sin((s+d)/o))/2}return l.amplitude=function(d){return n(d,o*Hu)},l.period=function(d){return n(i,d)},l}(1,.3);function Gy(n){if(!n.ok)throw new Error(n.status+" "+n.statusText);return n.blob()}function _4(n,i){return fetch(n,i).then(Gy)}function x4(n){if(!n.ok)throw new Error(n.status+" "+n.statusText);return n.arrayBuffer()}function Xy(n,i){return fetch(n,i).then(x4)}function w4(n){if(!n.ok)throw new Error(n.status+" "+n.statusText);return n.text()}function Wu(n,i){return fetch(n,i).then(w4)}function vp(n){return function(i,o,s){return arguments.length===2&&typeof o=="function"&&(s=o,o=void 0),Wu(i,o).then(function(l){return n(l,s)})}}function k4(n,i,o,s){arguments.length===3&&typeof o=="function"&&(s=o,o=void 0);var l=yh(n);return Wu(i,o).then(function(d){return l.parse(d,s)})}var Zy=vp(Dy),Qy=vp(By);function Ky(n,i){return new Promise(function(o,s){var l=new Image;for(var d in i)l[d]=i[d];l.onerror=s,l.onload=function(){o(l)},l.src=n})}function T4(n){if(!n.ok)throw new Error(n.status+" "+n.statusText);if(n.status!==204&&n.status!==205)return n.json()}function C4(n,i){return fetch(n,i).then(T4)}function bp(n){return function(i,o){return Wu(i,o).then(function(s){return new DOMParser().parseFromString(s,n)})}}const E4=bp("application/xml");var Jy=bp("text/html"),xf=bp("image/svg+xml");function S4(n,i){var o;function s(){var l,d,b=o.length,m=0,w=0;for(l=0;l<b;++l)m+=(d=o[l]).x,w+=d.y;for(m=m/b-n,w=w/b-i,l=0;l<b;++l)(d=o[l]).x-=m,d.y-=w}return n==null&&(n=0),i==null&&(i=0),s.initialize=function(l){o=l},s.x=function(l){return arguments.length?(n=+l,s):n},s.y=function(l){return arguments.length?(i=+l,s):i},s}function Di(n){return function(){return n}}function gc(){return 1e-6*(Math.random()-.5)}function tm(n,i,o,s){if(isNaN(i)||isNaN(o))return n;var l,d,b,m,w,E,L,j,D,q=n._root,W={data:s},U=n._x0,V=n._y0,Z=n._x1,it=n._y1;if(!q)return n._root=W,n;for(;q.length;)if((E=i>=(d=(U+Z)/2))?U=d:Z=d,(L=o>=(b=(V+it)/2))?V=b:it=b,l=q,!(q=q[j=L<<1|E]))return l[j]=W,n;if(m=+n._x.call(null,q.data),w=+n._y.call(null,q.data),i===m&&o===w)return W.next=q,l?l[j]=W:n._root=W,n;do l=l?l[j]=new Array(4):n._root=new Array(4),(E=i>=(d=(U+Z)/2))?U=d:Z=d,(L=o>=(b=(V+it)/2))?V=b:it=b;while((j=L<<1|E)==(D=(w>=b)<<1|m>=d));return l[D]=q,l[j]=W,n}function pa(n,i,o,s,l){this.node=n,this.x0=i,this.y0=o,this.x1=s,this.y1=l}function A4(n){return n[0]}function _p(n){return n[1]}function vh(n,i,o){var s=new Vu(i==null?A4:i,o==null?_p:o,NaN,NaN,NaN,NaN);return n==null?s:s.addAll(n)}function Vu(n,i,o,s,l,d){this._x=n,this._y=i,this._x0=o,this._y0=s,this._x1=l,this._y1=d,this._root=void 0}function em(n){for(var i={data:n.data},o=i;n=n.next;)o=o.next={data:n.data};return i}var ga=vh.prototype=Vu.prototype;function M4(n){return n.x+n.vx}function N4(n){return n.y+n.vy}function D4(n){var i,o,s=1,l=1;function d(){for(var w,E,L,j,D,q,W,U=i.length,V=0;V<l;++V)for(E=vh(i,M4,N4).visitAfter(b),w=0;w<U;++w)L=i[w],q=o[L.index],W=q*q,j=L.x+L.vx,D=L.y+L.vy,E.visit(Z);function Z(it,rt,dt,Pt,Vt){var Jt=it.data,ke=it.r,Yt=q+ke;if(!Jt)return rt>j+Yt||Pt<j-Yt||dt>D+Yt||Vt<D-Yt;if(Jt.index>L.index){var ce=j-Jt.x-Jt.vx,ht=D-Jt.y-Jt.vy,Ct=ce*ce+ht*ht;Ct<Yt*Yt&&(ce===0&&(Ct+=(ce=gc())*ce),ht===0&&(Ct+=(ht=gc())*ht),Ct=(Yt-(Ct=Math.sqrt(Ct)))/Ct*s,L.vx+=(ce*=Ct)*(Yt=(ke*=ke)/(W+ke)),L.vy+=(ht*=Ct)*Yt,Jt.vx-=ce*(Yt=1-Yt),Jt.vy-=ht*Yt)}}}function b(w){if(w.data)return w.r=o[w.data.index];for(var E=w.r=0;E<4;++E)w[E]&&w[E].r>w.r&&(w.r=w[E].r)}function m(){if(i){var w,E,L=i.length;for(o=new Array(L),w=0;w<L;++w)E=i[w],o[E.index]=+n(E,w,i)}}return typeof n!="function"&&(n=Di(n==null?1:+n)),d.initialize=function(w){i=w,m()},d.iterations=function(w){return arguments.length?(l=+w,d):l},d.strength=function(w){return arguments.length?(s=+w,d):s},d.radius=function(w){return arguments.length?(n=typeof w=="function"?w:Di(+w),m(),d):n},d}function L4(n){return n.index}function xp(n,i){var o=n.get(i);if(!o)throw new Error("missing: "+i);return o}function B4(n){var i,o,s,l,d,b=L4,m=function(W){return 1/Math.min(l[W.source.index],l[W.target.index])},w=Di(30),E=1;function L(W){for(var U=0,V=n.length;U<E;++U)for(var Z,it,rt,dt,Pt,Vt,Jt,ke=0;ke<V;++ke)it=(Z=n[ke]).source,dt=(rt=Z.target).x+rt.vx-it.x-it.vx||gc(),Pt=rt.y+rt.vy-it.y-it.vy||gc(),dt*=Vt=((Vt=Math.sqrt(dt*dt+Pt*Pt))-o[ke])/Vt*W*i[ke],Pt*=Vt,rt.vx-=dt*(Jt=d[ke]),rt.vy-=Pt*Jt,it.vx+=dt*(Jt=1-Jt),it.vy+=Pt*Jt}function j(){if(s){var W,U,V=s.length,Z=n.length,it=Bs(s,b);for(W=0,l=new Array(V);W<Z;++W)(U=n[W]).index=W,typeof U.source!="object"&&(U.source=xp(it,U.source)),typeof U.target!="object"&&(U.target=xp(it,U.target)),l[U.source.index]=(l[U.source.index]||0)+1,l[U.target.index]=(l[U.target.index]||0)+1;for(W=0,d=new Array(Z);W<Z;++W)U=n[W],d[W]=l[U.source.index]/(l[U.source.index]+l[U.target.index]);i=new Array(Z),D(),o=new Array(Z),q()}}function D(){if(s)for(var W=0,U=n.length;W<U;++W)i[W]=+m(n[W],W,n)}function q(){if(s)for(var W=0,U=n.length;W<U;++W)o[W]=+w(n[W],W,n)}return n==null&&(n=[]),L.initialize=function(W){s=W,j()},L.links=function(W){return arguments.length?(n=W,j(),L):n},L.id=function(W){return arguments.length?(b=W,L):b},L.iterations=function(W){return arguments.length?(E=+W,L):E},L.strength=function(W){return arguments.length?(m=typeof W=="function"?W:Di(+W),D(),L):m},L.distance=function(W){return arguments.length?(w=typeof W=="function"?W:Di(+W),q(),L):w},L}function O4(n){return n.x}function I4(n){return n.y}ga.copy=function(){var n,i,o=new Vu(this._x,this._y,this._x0,this._y0,this._x1,this._y1),s=this._root;if(!s)return o;if(!s.length)return o._root=em(s),o;for(n=[{source:s,target:o._root=new Array(4)}];s=n.pop();)for(var l=0;l<4;++l)(i=s.source[l])&&(i.length?n.push({source:i,target:s.target[l]=new Array(4)}):s.target[l]=em(i));return o},ga.add=function(n){var i=+this._x.call(null,n),o=+this._y.call(null,n);return tm(this.cover(i,o),i,o,n)},ga.addAll=function(n){var i,o,s,l,d=n.length,b=new Array(d),m=new Array(d),w=1/0,E=1/0,L=-1/0,j=-1/0;for(o=0;o<d;++o)isNaN(s=+this._x.call(null,i=n[o]))||isNaN(l=+this._y.call(null,i))||(b[o]=s,m[o]=l,s<w&&(w=s),s>L&&(L=s),l<E&&(E=l),l>j&&(j=l));if(w>L||E>j)return this;for(this.cover(w,E).cover(L,j),o=0;o<d;++o)tm(this,b[o],m[o],n[o]);return this},ga.cover=function(n,i){if(isNaN(n=+n)||isNaN(i=+i))return this;var o=this._x0,s=this._y0,l=this._x1,d=this._y1;if(isNaN(o))l=(o=Math.floor(n))+1,d=(s=Math.floor(i))+1;else{for(var b,m,w=l-o,E=this._root;o>n||n>=l||s>i||i>=d;)switch(m=(i<s)<<1|n<o,(b=new Array(4))[m]=E,E=b,w*=2,m){case 0:l=o+w,d=s+w;break;case 1:o=l-w,d=s+w;break;case 2:l=o+w,s=d-w;break;case 3:o=l-w,s=d-w}this._root&&this._root.length&&(this._root=E)}return this._x0=o,this._y0=s,this._x1=l,this._y1=d,this},ga.data=function(){var n=[];return this.visit(function(i){if(!i.length)do n.push(i.data);while(i=i.next)}),n},ga.extent=function(n){return arguments.length?this.cover(+n[0][0],+n[0][1]).cover(+n[1][0],+n[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]},ga.find=function(n,i,o){var s,l,d,b,m,w,E,L=this._x0,j=this._y0,D=this._x1,q=this._y1,W=[],U=this._root;for(U&&W.push(new pa(U,L,j,D,q)),o==null?o=1/0:(L=n-o,j=i-o,D=n+o,q=i+o,o*=o);w=W.pop();)if(!(!(U=w.node)||(l=w.x0)>D||(d=w.y0)>q||(b=w.x1)<L||(m=w.y1)<j))if(U.length){var V=(l+b)/2,Z=(d+m)/2;W.push(new pa(U[3],V,Z,b,m),new pa(U[2],l,Z,V,m),new pa(U[1],V,d,b,Z),new pa(U[0],l,d,V,Z)),(E=(i>=Z)<<1|n>=V)&&(w=W[W.length-1],W[W.length-1]=W[W.length-1-E],W[W.length-1-E]=w)}else{var it=n-+this._x.call(null,U.data),rt=i-+this._y.call(null,U.data),dt=it*it+rt*rt;if(dt<o){var Pt=Math.sqrt(o=dt);L=n-Pt,j=i-Pt,D=n+Pt,q=i+Pt,s=U.data}}return s},ga.remove=function(n){if(isNaN(d=+this._x.call(null,n))||isNaN(b=+this._y.call(null,n)))return this;var i,o,s,l,d,b,m,w,E,L,j,D,q=this._root,W=this._x0,U=this._y0,V=this._x1,Z=this._y1;if(!q)return this;if(q.length)for(;;){if((E=d>=(m=(W+V)/2))?W=m:V=m,(L=b>=(w=(U+Z)/2))?U=w:Z=w,i=q,!(q=q[j=L<<1|E]))return this;if(!q.length)break;(i[j+1&3]||i[j+2&3]||i[j+3&3])&&(o=i,D=j)}for(;q.data!==n;)if(s=q,!(q=q.next))return this;return(l=q.next)&&delete q.next,s?(l?s.next=l:delete s.next,this):i?(l?i[j]=l:delete i[j],(q=i[0]||i[1]||i[2]||i[3])&&q===(i[3]||i[2]||i[1]||i[0])&&!q.length&&(o?o[D]=q:this._root=q),this):(this._root=l,this)},ga.removeAll=function(n){for(var i=0,o=n.length;i<o;++i)this.remove(n[i]);return this},ga.root=function(){return this._root},ga.size=function(){var n=0;return this.visit(function(i){if(!i.length)do++n;while(i=i.next)}),n},ga.visit=function(n){var i,o,s,l,d,b,m=[],w=this._root;for(w&&m.push(new pa(w,this._x0,this._y0,this._x1,this._y1));i=m.pop();)if(!n(w=i.node,s=i.x0,l=i.y0,d=i.x1,b=i.y1)&&w.length){var E=(s+d)/2,L=(l+b)/2;(o=w[3])&&m.push(new pa(o,E,L,d,b)),(o=w[2])&&m.push(new pa(o,s,L,E,b)),(o=w[1])&&m.push(new pa(o,E,l,d,L)),(o=w[0])&&m.push(new pa(o,s,l,E,L))}return this},ga.visitAfter=function(n){var i,o=[],s=[];for(this._root&&o.push(new pa(this._root,this._x0,this._y0,this._x1,this._y1));i=o.pop();){var l=i.node;if(l.length){var d,b=i.x0,m=i.y0,w=i.x1,E=i.y1,L=(b+w)/2,j=(m+E)/2;(d=l[0])&&o.push(new pa(d,b,m,L,j)),(d=l[1])&&o.push(new pa(d,L,m,w,j)),(d=l[2])&&o.push(new pa(d,b,j,L,E)),(d=l[3])&&o.push(new pa(d,L,j,w,E))}s.push(i)}for(;i=s.pop();)n(i.node,i.x0,i.y0,i.x1,i.y1);return this},ga.x=function(n){return arguments.length?(this._x=n,this):this._x},ga.y=function(n){return arguments.length?(this._y=n,this):this._y};var Gu=Math.PI*(3-Math.sqrt(5));function R4(n){var i,o=1,s=.001,l=1-Math.pow(s,1/300),d=0,b=.6,m=Bs(),w=fe(L),E=Ze("tick","end");function L(){j(),E.call("tick",i),o<s&&(w.stop(),E.call("end",i))}function j(W){var U,V,Z=n.length;W===void 0&&(W=1);for(var it=0;it<W;++it)for(o+=(d-o)*l,m.each(function(rt){rt(o)}),U=0;U<Z;++U)(V=n[U]).fx==null?V.x+=V.vx*=b:(V.x=V.fx,V.vx=0),V.fy==null?V.y+=V.vy*=b:(V.y=V.fy,V.vy=0);return i}function D(){for(var W,U=0,V=n.length;U<V;++U){if((W=n[U]).index=U,W.fx!=null&&(W.x=W.fx),W.fy!=null&&(W.y=W.fy),isNaN(W.x)||isNaN(W.y)){var Z=10*Math.sqrt(U),it=U*Gu;W.x=Z*Math.cos(it),W.y=Z*Math.sin(it)}(isNaN(W.vx)||isNaN(W.vy))&&(W.vx=W.vy=0)}}function q(W){return W.initialize&&W.initialize(n),W}return n==null&&(n=[]),D(),i={tick:j,restart:function(){return w.restart(L),i},stop:function(){return w.stop(),i},nodes:function(W){return arguments.length?(n=W,D(),m.each(q),i):n},alpha:function(W){return arguments.length?(o=+W,i):o},alphaMin:function(W){return arguments.length?(s=+W,i):s},alphaDecay:function(W){return arguments.length?(l=+W,i):+l},alphaTarget:function(W){return arguments.length?(d=+W,i):d},velocityDecay:function(W){return arguments.length?(b=1-W,i):1-b},force:function(W,U){return arguments.length>1?(U==null?m.remove(W):m.set(W,q(U)),i):m.get(W)},find:function(W,U,V){var Z,it,rt,dt,Pt,Vt=0,Jt=n.length;for(V==null?V=1/0:V*=V,Vt=0;Vt<Jt;++Vt)(rt=(Z=W-(dt=n[Vt]).x)*Z+(it=U-dt.y)*it)<V&&(Pt=dt,V=rt);return Pt},on:function(W,U){return arguments.length>1?(E.on(W,U),i):E.on(W)}}}function F4(){var n,i,o,s,l=Di(-30),d=1,b=1/0,m=.81;function w(D){var q,W=n.length,U=vh(n,O4,I4).visitAfter(L);for(o=D,q=0;q<W;++q)i=n[q],U.visit(j)}function E(){if(n){var D,q,W=n.length;for(s=new Array(W),D=0;D<W;++D)q=n[D],s[q.index]=+l(q,D,n)}}function L(D){var q,W,U,V,Z,it=0,rt=0;if(D.length){for(U=V=Z=0;Z<4;++Z)(q=D[Z])&&(W=Math.abs(q.value))&&(it+=q.value,rt+=W,U+=W*q.x,V+=W*q.y);D.x=U/rt,D.y=V/rt}else{(q=D).x=q.data.x,q.y=q.data.y;do it+=s[q.data.index];while(q=q.next)}D.value=it}function j(D,q,W,U){if(!D.value)return!0;var V=D.x-i.x,Z=D.y-i.y,it=U-q,rt=V*V+Z*Z;if(it*it/m<rt)return rt<b&&(V===0&&(rt+=(V=gc())*V),Z===0&&(rt+=(Z=gc())*Z),rt<d&&(rt=Math.sqrt(d*rt)),i.vx+=V*D.value*o/rt,i.vy+=Z*D.value*o/rt),!0;if(!(D.length||rt>=b)){(D.data!==i||D.next)&&(V===0&&(rt+=(V=gc())*V),Z===0&&(rt+=(Z=gc())*Z),rt<d&&(rt=Math.sqrt(d*rt)));do D.data!==i&&(it=s[D.data.index]*o/rt,i.vx+=V*it,i.vy+=Z*it);while(D=D.next)}}return w.initialize=function(D){n=D,E()},w.strength=function(D){return arguments.length?(l=typeof D=="function"?D:Di(+D),E(),w):l},w.distanceMin=function(D){return arguments.length?(d=D*D,w):Math.sqrt(d)},w.distanceMax=function(D){return arguments.length?(b=D*D,w):Math.sqrt(b)},w.theta=function(D){return arguments.length?(m=D*D,w):Math.sqrt(m)},w}function P4(n,i,o){var s,l,d,b=Di(.1);function m(E){for(var L=0,j=s.length;L<j;++L){var D=s[L],q=D.x-i||1e-6,W=D.y-o||1e-6,U=Math.sqrt(q*q+W*W),V=(d[L]-U)*l[L]*E/U;D.vx+=q*V,D.vy+=W*V}}function w(){if(s){var E,L=s.length;for(l=new Array(L),d=new Array(L),E=0;E<L;++E)d[E]=+n(s[E],E,s),l[E]=isNaN(d[E])?0:+b(s[E],E,s)}}return typeof n!="function"&&(n=Di(+n)),i==null&&(i=0),o==null&&(o=0),m.initialize=function(E){s=E,w()},m.strength=function(E){return arguments.length?(b=typeof E=="function"?E:Di(+E),w(),m):b},m.radius=function(E){return arguments.length?(n=typeof E=="function"?E:Di(+E),w(),m):n},m.x=function(E){return arguments.length?(i=+E,m):i},m.y=function(E){return arguments.length?(o=+E,m):o},m}function nm(n){var i,o,s,l=Di(.1);function d(m){for(var w,E=0,L=i.length;E<L;++E)(w=i[E]).vx+=(s[E]-w.x)*o[E]*m}function b(){if(i){var m,w=i.length;for(o=new Array(w),s=new Array(w),m=0;m<w;++m)o[m]=isNaN(s[m]=+n(i[m],m,i))?0:+l(i[m],m,i)}}return typeof n!="function"&&(n=Di(n==null?0:+n)),d.initialize=function(m){i=m,b()},d.strength=function(m){return arguments.length?(l=typeof m=="function"?m:Di(+m),b(),d):l},d.x=function(m){return arguments.length?(n=typeof m=="function"?m:Di(+m),b(),d):n},d}function wp(n){var i,o,s,l=Di(.1);function d(m){for(var w,E=0,L=i.length;E<L;++E)(w=i[E]).vy+=(s[E]-w.y)*o[E]*m}function b(){if(i){var m,w=i.length;for(o=new Array(w),s=new Array(w),m=0;m<w;++m)o[m]=isNaN(s[m]=+n(i[m],m,i))?0:+l(i[m],m,i)}}return typeof n!="function"&&(n=Di(n==null?0:+n)),d.initialize=function(m){i=m,b()},d.strength=function(m){return arguments.length?(l=typeof m=="function"?m:Di(+m),b(),d):l},d.y=function(m){return arguments.length?(n=typeof m=="function"?m:Di(+m),b(),d):n},d}function bh(n,i){if((o=(n=i?n.toExponential(i-1):n.toExponential()).indexOf("e"))<0)return null;var o,s=n.slice(0,o);return[s.length>1?s[0]+s.slice(2):s,+n.slice(o+1)]}function Jc(n){return(n=bh(Math.abs(n)))?n[1]:NaN}var kp,j4=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function _h(n){if(!(i=j4.exec(n)))throw new Error("invalid format: "+n);var i;return new wf({fill:i[1],align:i[2],sign:i[3],symbol:i[4],zero:i[5],width:i[6],comma:i[7],precision:i[8]&&i[8].slice(1),trim:i[9],type:i[10]})}function wf(n){this.fill=n.fill===void 0?" ":n.fill+"",this.align=n.align===void 0?">":n.align+"",this.sign=n.sign===void 0?"-":n.sign+"",this.symbol=n.symbol===void 0?"":n.symbol+"",this.zero=!!n.zero,this.width=n.width===void 0?void 0:+n.width,this.comma=!!n.comma,this.precision=n.precision===void 0?void 0:+n.precision,this.trim=!!n.trim,this.type=n.type===void 0?"":n.type+""}function rm(n,i){var o=bh(n,i);if(!o)return n+"";var s=o[0],l=o[1];return l<0?"0."+new Array(-l).join("0")+s:s.length>l+1?s.slice(0,l+1)+"."+s.slice(l+1):s+new Array(l-s.length+2).join("0")}_h.prototype=wf.prototype,wf.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 im={"%":function(n,i){return(100*n).toFixed(i)},b:function(n){return Math.round(n).toString(2)},c:function(n){return n+""},d:function(n){return Math.abs(n=Math.round(n))>=1e21?n.toLocaleString("en").replace(/,/g,""):n.toString(10)},e:function(n,i){return n.toExponential(i)},f:function(n,i){return n.toFixed(i)},g:function(n,i){return n.toPrecision(i)},o:function(n){return Math.round(n).toString(8)},p:function(n,i){return rm(100*n,i)},r:rm,s:function(n,i){var o=bh(n,i);if(!o)return n+"";var s=o[0],l=o[1],d=l-(kp=3*Math.max(-8,Math.min(8,Math.floor(l/3))))+1,b=s.length;return d===b?s:d>b?s+new Array(d-b+1).join("0"):d>0?s.slice(0,d)+"."+s.slice(d):"0."+new Array(1-d).join("0")+bh(n,Math.max(0,i+d-1))[0]},X:function(n){return Math.round(n).toString(16).toUpperCase()},x:function(n){return Math.round(n).toString(16)}};function am(n){return n}var kf,Tf,Tp,om=Array.prototype.map,sm=["y","z","a","f","p","n","\xB5","m","","k","M","G","T","P","E","Z","Y"];function cm(n){var i,o,s=n.grouping===void 0||n.thousands===void 0?am:(i=om.call(n.grouping,Number),o=n.thousands+"",function(D,q){for(var W=D.length,U=[],V=0,Z=i[0],it=0;W>0&&Z>0&&(it+Z+1>q&&(Z=Math.max(1,q-it)),U.push(D.substring(W-=Z,W+Z)),!((it+=Z+1)>q));)Z=i[V=(V+1)%i.length];return U.reverse().join(o)}),l=n.currency===void 0?"":n.currency[0]+"",d=n.currency===void 0?"":n.currency[1]+"",b=n.decimal===void 0?".":n.decimal+"",m=n.numerals===void 0?am:function(D){return function(q){return q.replace(/[0-9]/g,function(W){return D[+W]})}}(om.call(n.numerals,String)),w=n.percent===void 0?"%":n.percent+"",E=n.minus===void 0?"-":n.minus+"",L=n.nan===void 0?"NaN":n.nan+"";function j(D){var q=(D=_h(D)).fill,W=D.align,U=D.sign,V=D.symbol,Z=D.zero,it=D.width,rt=D.comma,dt=D.precision,Pt=D.trim,Vt=D.type;Vt==="n"?(rt=!0,Vt="g"):im[Vt]||(dt===void 0&&(dt=12),Pt=!0,Vt="g"),(Z||q==="0"&&W==="=")&&(Z=!0,q="0",W="=");var Jt=V==="$"?l:V==="#"&&/[boxX]/.test(Vt)?"0"+Vt.toLowerCase():"",ke=V==="$"?d:/[%p]/.test(Vt)?w:"",Yt=im[Vt],ce=/[defgprs%]/.test(Vt);function ht(Ct){var ne,Qt,ie,Fe=Jt,Ke=ke;if(Vt==="c")Ke=Yt(Ct)+Ke,Ct="";else{var Tn=(Ct=+Ct)<0||1/Ct<0;if(Ct=isNaN(Ct)?L:Yt(Math.abs(Ct),dt),Pt&&(Ct=function(on){t:for(var yr,In=on.length,Nn=1,dr=-1;Nn<In;++Nn)switch(on[Nn]){case".":dr=yr=Nn;break;case"0":dr===0&&(dr=Nn),yr=Nn;break;default:if(!+on[Nn])break t;dr>0&&(dr=0)}return dr>0?on.slice(0,dr)+on.slice(yr+1):on}(Ct)),Tn&&+Ct==0&&U!=="+"&&(Tn=!1),Fe=(Tn?U==="("?U:E:U==="-"||U==="("?"":U)+Fe,Ke=(Vt==="s"?sm[8+kp/3]:"")+Ke+(Tn&&U==="("?")":""),ce){for(ne=-1,Qt=Ct.length;++ne<Qt;)if(48>(ie=Ct.charCodeAt(ne))||ie>57){Ke=(ie===46?b+Ct.slice(ne+1):Ct.slice(ne))+Ke,Ct=Ct.slice(0,ne);break}}}rt&&!Z&&(Ct=s(Ct,1/0));var Sn=Fe.length+Ct.length+Ke.length,ar=Sn<it?new Array(it-Sn+1).join(q):"";switch(rt&&Z&&(Ct=s(ar+Ct,ar.length?it-Ke.length:1/0),ar=""),W){case"<":Ct=Fe+Ct+Ke+ar;break;case"=":Ct=Fe+ar+Ct+Ke;break;case"^":Ct=ar.slice(0,Sn=ar.length>>1)+Fe+Ct+Ke+ar.slice(Sn);break;default:Ct=ar+Fe+Ct+Ke}return m(Ct)}return dt=dt===void 0?6:/[gprs]/.test(Vt)?Math.max(1,Math.min(21,dt)):Math.max(0,Math.min(20,dt)),ht.toString=function(){return D+""},ht}return{format:j,formatPrefix:function(D,q){var W=j(((D=_h(D)).type="f",D)),U=3*Math.max(-8,Math.min(8,Math.floor(Jc(q)/3))),V=Math.pow(10,-U),Z=sm[8+U/3];return function(it){return W(V*it)+Z}}}}function um(n){return kf=cm(n),Tf=kf.format,Tp=kf.formatPrefix,kf}function Cp(n){return Math.max(0,-Jc(Math.abs(n)))}function lm(n,i){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(Jc(i)/3)))-Jc(Math.abs(n)))}function hm(n,i){return n=Math.abs(n),i=Math.abs(i)-n,Math.max(0,Jc(i)-Jc(n))+1}function yc(){return new Cf}function Cf(){this.reset()}um({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"}),Cf.prototype={constructor:Cf,reset:function(){this.s=this.t=0},add:function(n){fm(Ef,n,this.t),fm(this,Ef.s,this.s),this.s?this.t+=Ef.t:this.s=Ef.t},valueOf:function(){return this.s}};var Ef=new Cf;function fm(n,i,o){var s=n.s=i+o,l=s-i,d=s-l;n.t=i-d+(o-l)}var $n=1e-6,xh=1e-12,or=Math.PI,li=or/2,Xu=or/4,Rr=2*or,Ur=180/or,Cn=or/180,Me=Math.abs,mc=Math.atan,Qi=Math.atan2,bn=Math.cos,ss=Math.ceil,dm=Math.exp,Zu=Math.log,Sf=Math.pow,ln=Math.sin,kr=Math.sign||function(n){return n>0?1:n<0?-1:0},vi=Math.sqrt,$i=Math.tan;function vc(n){return n>1?0:n<-1?or:Math.acos(n)}function ya(n){return n>1?li:n<-1?-li:Math.asin(n)}function Af(n){return(n=ln(n/2))*n}function Tr(){}function Rs(n,i){n&&Qu.hasOwnProperty(n.type)&&Qu[n.type](n,i)}var ma={Feature:function(n,i){Rs(n.geometry,i)},FeatureCollection:function(n,i){for(var o=n.features,s=-1,l=o.length;++s<l;)Rs(o[s].geometry,i)}},Qu={Sphere:function(n,i){i.sphere()},Point:function(n,i){n=n.coordinates,i.point(n[0],n[1],n[2])},MultiPoint:function(n,i){for(var o=n.coordinates,s=-1,l=o.length;++s<l;)n=o[s],i.point(n[0],n[1],n[2])},LineString:function(n,i){Ku(n.coordinates,i,0)},MultiLineString:function(n,i){for(var o=n.coordinates,s=-1,l=o.length;++s<l;)Ku(o[s],i,0)},Polygon:function(n,i){wh(n.coordinates,i)},MultiPolygon:function(n,i){for(var o=n.coordinates,s=-1,l=o.length;++s<l;)wh(o[s],i)},GeometryCollection:function(n,i){for(var o=n.geometries,s=-1,l=o.length;++s<l;)Rs(o[s],i)}};function Ku(n,i,o){var s,l=-1,d=n.length-o;for(i.lineStart();++l<d;)s=n[l],i.point(s[0],s[1],s[2]);i.lineEnd()}function wh(n,i){var o=-1,s=n.length;for(i.polygonStart();++o<s;)Ku(n[o],i,1);i.polygonEnd()}function Mo(n,i){n&&ma.hasOwnProperty(n.type)?ma[n.type](n,i):Rs(n,i)}var Ep,pm,Sp,Ap,Mp,Mf=yc(),Nf=yc(),eo={point:Tr,lineStart:Tr,lineEnd:Tr,polygonStart:function(){Mf.reset(),eo.lineStart=Np,eo.lineEnd=gm},polygonEnd:function(){var n=+Mf;Nf.add(n<0?Rr+n:n),this.lineStart=this.lineEnd=this.point=Tr},sphere:function(){Nf.add(Rr)}};function Np(){eo.point=ym}function gm(){fo(Ep,pm)}function ym(n,i){eo.point=fo,Ep=n,pm=i,Sp=n*=Cn,Ap=bn(i=(i*=Cn)/2+Xu),Mp=ln(i)}function fo(n,i){var o=(n*=Cn)-Sp,s=o>=0?1:-1,l=s*o,d=bn(i=(i*=Cn)/2+Xu),b=ln(i),m=Mp*b,w=Ap*d+m*bn(l),E=m*s*ln(l);Mf.add(Qi(E,w)),Sp=n,Ap=d,Mp=b}function Y4(n){return Nf.reset(),Mo(n,eo),2*Nf}function Df(n){return[Qi(n[1],n[0]),ya(n[2])]}function No(n){var i=n[0],o=n[1],s=bn(o);return[s*bn(i),s*ln(i),ln(o)]}function Lf(n,i){return n[0]*i[0]+n[1]*i[1]+n[2]*i[2]}function Ju(n,i){return[n[1]*i[2]-n[2]*i[1],n[2]*i[0]-n[0]*i[2],n[0]*i[1]-n[1]*i[0]]}function tl(n,i){n[0]+=i[0],n[1]+=i[1],n[2]+=i[2]}function tu(n,i){return[n[0]*i,n[1]*i,n[2]*i]}function kh(n){var i=vi(n[0]*n[0]+n[1]*n[1]+n[2]*n[2]);n[0]/=i,n[1]/=i,n[2]/=i}var Wr,va,ai,Ba,bc,Dp,Lp,_c,Do,cs,el,Th,Ch,eu,nl,rl,po,Eh,Bf,Fs,Bp,Of,il,ba,ia,bi,Sh=yc(),Lo={point:nu,lineStart:Op,lineEnd:Ip,polygonStart:function(){Lo.point=al,Lo.lineStart=vm,Lo.lineEnd=Ah,Sh.reset(),eo.polygonStart()},polygonEnd:function(){eo.polygonEnd(),Lo.point=nu,Lo.lineStart=Op,Lo.lineEnd=Ip,Mf<0?(Wr=-(ai=180),va=-(Ba=90)):Sh>$n?Ba=90:Sh<-1e-6&&(va=-90),cs[0]=Wr,cs[1]=ai},sphere:function(){Wr=-(ai=180),va=-(Ba=90)}};function nu(n,i){Do.push(cs=[Wr=n,ai=n]),i<va&&(va=i),i>Ba&&(Ba=i)}function mm(n,i){var o=No([n*Cn,i*Cn]);if(_c){var s=Ju(_c,o),l=Ju([s[1],-s[0],0],s);kh(l),l=Df(l);var d,b=n-bc,m=b>0?1:-1,w=l[0]*Ur*m,E=Me(b)>180;E^(m*bc<w&&w<m*n)?(d=l[1]*Ur)>Ba&&(Ba=d):E^(m*bc<(w=(w+360)%360-180)&&w<m*n)?(d=-l[1]*Ur)<va&&(va=d):(i<va&&(va=i),i>Ba&&(Ba=i)),E?n<bc?_a(Wr,n)>_a(Wr,ai)&&(ai=n):_a(n,ai)>_a(Wr,ai)&&(Wr=n):ai>=Wr?(n<Wr&&(Wr=n),n>ai&&(ai=n)):n>bc?_a(Wr,n)>_a(Wr,ai)&&(ai=n):_a(n,ai)>_a(Wr,ai)&&(Wr=n)}else Do.push(cs=[Wr=n,ai=n]);i<va&&(va=i),i>Ba&&(Ba=i),_c=o,bc=n}function Op(){Lo.point=mm}function Ip(){cs[0]=Wr,cs[1]=ai,Lo.point=nu,_c=null}function al(n,i){if(_c){var o=n-bc;Sh.add(Me(o)>180?o+(o>0?360:-360):o)}else Dp=n,Lp=i;eo.point(n,i),mm(n,i)}function vm(){eo.lineStart()}function Ah(){al(Dp,Lp),eo.lineEnd(),Me(Sh)>$n&&(Wr=-(ai=180)),cs[0]=Wr,cs[1]=ai,_c=null}function _a(n,i){return(i-=n)<0?i+360:i}function Rp(n,i){return n[0]-i[0]}function ol(n,i){return n[0]<=n[1]?n[0]<=i&&i<=n[1]:i<n[0]||n[1]<i}function Mh(n){var i,o,s,l,d,b,m;if(Ba=ai=-(Wr=va=1/0),Do=[],Mo(n,Lo),o=Do.length){for(Do.sort(Rp),i=1,d=[s=Do[0]];i<o;++i)ol(s,(l=Do[i])[0])||ol(s,l[1])?(_a(s[0],l[1])>_a(s[0],s[1])&&(s[1]=l[1]),_a(l[0],s[1])>_a(s[0],s[1])&&(s[0]=l[0])):d.push(s=l);for(b=-1/0,i=0,s=d[o=d.length-1];i<=o;s=l,++i)l=d[i],(m=_a(s[1],l[0]))>b&&(b=m,Wr=l[0],ai=s[1])}return Do=cs=null,Wr===1/0||va===1/0?[[NaN,NaN],[NaN,NaN]]:[[Wr,va],[ai,Ba]]}var no={sphere:Tr,point:If,lineStart:bm,lineEnd:_m,polygonStart:function(){no.lineStart=Nh,no.lineEnd=Dh},polygonEnd:function(){no.lineStart=bm,no.lineEnd=_m}};function If(n,i){n*=Cn;var o=bn(i*=Cn);hi(o*bn(n),o*ln(n),ln(i))}function hi(n,i,o){++el,Ch+=(n-Ch)/el,eu+=(i-eu)/el,nl+=(o-nl)/el}function bm(){no.point=z4}function z4(n,i){n*=Cn;var o=bn(i*=Cn);ba=o*bn(n),ia=o*ln(n),bi=ln(i),no.point=Cr,hi(ba,ia,bi)}function Cr(n,i){n*=Cn;var o=bn(i*=Cn),s=o*bn(n),l=o*ln(n),d=ln(i),b=Qi(vi((b=ia*d-bi*l)*b+(b=bi*s-ba*d)*b+(b=ba*l-ia*s)*b),ba*s+ia*l+bi*d);Th+=b,rl+=b*(ba+(ba=s)),po+=b*(ia+(ia=l)),Eh+=b*(bi+(bi=d)),hi(ba,ia,bi)}function _m(){no.point=If}function Nh(){no.point=U4}function Dh(){xm(Of,il),no.point=If}function U4(n,i){Of=n,il=i,n*=Cn,i*=Cn,no.point=xm;var o=bn(i);ba=o*bn(n),ia=o*ln(n),bi=ln(i),hi(ba,ia,bi)}function xm(n,i){n*=Cn;var o=bn(i*=Cn),s=o*bn(n),l=o*ln(n),d=ln(i),b=ia*d-bi*l,m=bi*s-ba*d,w=ba*l-ia*s,E=vi(b*b+m*m+w*w),L=ya(E),j=E&&-L/E;Bf+=j*b,Fs+=j*m,Bp+=j*w,Th+=L,rl+=L*(ba+(ba=s)),po+=L*(ia+(ia=l)),Eh+=L*(bi+(bi=d)),hi(ba,ia,bi)}function q4(n){el=Th=Ch=eu=nl=rl=po=Eh=Bf=Fs=Bp=0,Mo(n,no);var i=Bf,o=Fs,s=Bp,l=i*i+o*o+s*s;return l<xh&&(i=rl,o=po,s=Eh,Th<$n&&(i=Ch,o=eu,s=nl),(l=i*i+o*o+s*s)<xh)?[NaN,NaN]:[Qi(o,i)*Ur,ya(s/vi(l))*Ur]}function sl(n){return function(){return n}}function Fp(n,i){function o(s,l){return s=n(s,l),i(s[0],s[1])}return n.invert&&i.invert&&(o.invert=function(s,l){return(s=i.invert(s,l))&&n.invert(s[0],s[1])}),o}function Rf(n,i){return[Me(n)>or?n+Math.round(-n/Rr)*Rr:n,i]}function Ff(n,i,o){return(n%=Rr)?i||o?Fp(km(n),Tm(i,o)):km(n):i||o?Tm(i,o):Rf}function wm(n){return function(i,o){return[(i+=n)>or?i-Rr:i<-or?i+Rr:i,o]}}function km(n){var i=wm(n);return i.invert=wm(-n),i}function Tm(n,i){var o=bn(n),s=ln(n),l=bn(i),d=ln(i);function b(m,w){var E=bn(w),L=bn(m)*E,j=ln(m)*E,D=ln(w),q=D*o+L*s;return[Qi(j*l-q*d,L*o-D*s),ya(q*l+j*d)]}return b.invert=function(m,w){var E=bn(w),L=bn(m)*E,j=ln(m)*E,D=ln(w),q=D*l-j*d;return[Qi(j*l+D*d,L*o+q*s),ya(q*o-L*s)]},b}function Pp(n){function i(o){return(o=n(o[0]*Cn,o[1]*Cn))[0]*=Ur,o[1]*=Ur,o}return n=Ff(n[0]*Cn,n[1]*Cn,n.length>2?n[2]*Cn:0),i.invert=function(o){return(o=n.invert(o[0]*Cn,o[1]*Cn))[0]*=Ur,o[1]*=Ur,o},i}function Cm(n,i,o,s,l,d){if(o){var b=bn(i),m=ln(i),w=s*o;l==null?(l=i+s*Rr,d=i-w/2):(l=jp(b,l),d=jp(b,d),(s>0?l<d:l>d)&&(l+=s*Rr));for(var E,L=l;s>0?L>d:L<d;L-=w)E=Df([b,-m*bn(L),-m*ln(L)]),n.point(E[0],E[1])}}function jp(n,i){(i=No(i))[0]-=n,kh(i);var o=vc(-i[1]);return((-i[2]<0?-o:o)+Rr-$n)%Rr}function $4(){var n,i,o=sl([0,0]),s=sl(90),l=sl(6),d={point:function(m,w){n.push(m=i(m,w)),m[0]*=Ur,m[1]*=Ur}};function b(){var m=o.apply(this,arguments),w=s.apply(this,arguments)*Cn,E=l.apply(this,arguments)*Cn;return n=[],i=Ff(-m[0]*Cn,-m[1]*Cn,0).invert,Cm(d,w,E,1),m={type:"Polygon",coordinates:[n]},n=i=null,m}return b.center=function(m){return arguments.length?(o=typeof m=="function"?m:sl([+m[0],+m[1]]),b):o},b.radius=function(m){return arguments.length?(s=typeof m=="function"?m:sl(+m),b):s},b.precision=function(m){return arguments.length?(l=typeof m=="function"?m:sl(+m),b):l},b}function Em(){var n,i=[];return{point:function(o,s,l){n.push([o,s,l])},lineStart:function(){i.push(n=[])},lineEnd:Tr,rejoin:function(){i.length>1&&i.push(i.pop().concat(i.shift()))},result:function(){var o=i;return i=[],n=null,o}}}function Pf(n,i){return Me(n[0]-i[0])<$n&&Me(n[1]-i[1])<$n}function jf(n,i,o,s){this.x=n,this.z=i,this.o=o,this.e=s,this.v=!1,this.n=this.p=null}function Sm(n,i,o,s,l){var d,b,m=[],w=[];if(n.forEach(function(W){if(!((U=W.length-1)<=0)){var U,V,Z=W[0],it=W[U];if(Pf(Z,it)){if(!Z[2]&&!it[2]){for(l.lineStart(),d=0;d<U;++d)l.point((Z=W[d])[0],Z[1]);return void l.lineEnd()}it[0]+=2e-6}m.push(V=new jf(Z,W,null,!0)),w.push(V.o=new jf(Z,null,V,!1)),m.push(V=new jf(it,W,null,!1)),w.push(V.o=new jf(it,null,V,!0))}}),m.length){for(w.sort(i),Am(m),Am(w),d=0,b=w.length;d<b;++d)w[d].e=o=!o;for(var E,L,j=m[0];;){for(var D=j,q=!0;D.v;)if((D=D.n)===j)return;E=D.z,l.lineStart();do{if(D.v=D.o.v=!0,D.e){if(q)for(d=0,b=E.length;d<b;++d)l.point((L=E[d])[0],L[1]);else s(D.x,D.n.x,1,l);D=D.n}else{if(q)for(E=D.p.z,d=E.length-1;d>=0;--d)l.point((L=E[d])[0],L[1]);else s(D.x,D.p.x,-1,l);D=D.p}E=(D=D.o).z,q=!q}while(!D.v);l.lineEnd()}}}function Am(n){if(i=n.length){for(var i,o,s=0,l=n[0];++s<i;)l.n=o=n[s],o.p=l,l=o;l.n=o=n[0],o.p=l}}Rf.invert=Rf;var Yp=yc();function Yf(n){return Me(n[0])<=or?n[0]:kr(n[0])*((Me(n[0])+or)%Rr-or)}function Mm(n,i){var o=Yf(i),s=i[1],l=ln(s),d=[ln(o),-bn(o),0],b=0,m=0;Yp.reset(),l===1?s=li+$n:l===-1&&(s=-li-$n);for(var w=0,E=n.length;w<E;++w)if(j=(L=n[w]).length)for(var L,j,D=L[j-1],q=Yf(D),W=D[1]/2+Xu,U=ln(W),V=bn(W),Z=0;Z<j;++Z,q=rt,U=Pt,V=Vt,D=it){var it=L[Z],rt=Yf(it),dt=it[1]/2+Xu,Pt=ln(dt),Vt=bn(dt),Jt=rt-q,ke=Jt>=0?1:-1,Yt=ke*Jt,ce=Yt>or,ht=U*Pt;if(Yp.add(Qi(ht*ke*ln(Yt),V*Vt+ht*bn(Yt))),b+=ce?Jt+ke*Rr:Jt,ce^q>=o^rt>=o){var Ct=Ju(No(D),No(it));kh(Ct);var ne=Ju(d,Ct);kh(ne);var Qt=(ce^Jt>=0?-1:1)*ya(ne[2]);(s>Qt||s===Qt&&(Ct[0]||Ct[1]))&&(m+=ce^Jt>=0?1:-1)}}return(b<-1e-6||b<$n&&Yp<-1e-6)^1&m}function Nm(n,i,o,s){return function(l){var d,b,m,w=i(l),E=Em(),L=i(E),j=!1,D={point:q,lineStart:U,lineEnd:V,polygonStart:function(){D.point=Z,D.lineStart=it,D.lineEnd=rt,b=[],d=[]},polygonEnd:function(){D.point=q,D.lineStart=U,D.lineEnd=V,b=le(b);var dt=Mm(d,s);b.length?(j||(l.polygonStart(),j=!0),Sm(b,Dm,dt,o,l)):dt&&(j||(l.polygonStart(),j=!0),l.lineStart(),o(null,null,1,l),l.lineEnd()),j&&(l.polygonEnd(),j=!1),b=d=null},sphere:function(){l.polygonStart(),l.lineStart(),o(null,null,1,l),l.lineEnd(),l.polygonEnd()}};function q(dt,Pt){n(dt,Pt)&&l.point(dt,Pt)}function W(dt,Pt){w.point(dt,Pt)}function U(){D.point=W,w.lineStart()}function V(){D.point=q,w.lineEnd()}function Z(dt,Pt){m.push([dt,Pt]),L.point(dt,Pt)}function it(){L.lineStart(),m=[]}function rt(){Z(m[0][0],m[0][1]),L.lineEnd();var dt,Pt,Vt,Jt,ke=L.clean(),Yt=E.result(),ce=Yt.length;if(m.pop(),d.push(m),m=null,ce)if(1&ke){if((Pt=(Vt=Yt[0]).length-1)>0){for(j||(l.polygonStart(),j=!0),l.lineStart(),dt=0;dt<Pt;++dt)l.point((Jt=Vt[dt])[0],Jt[1]);l.lineEnd()}}else ce>1&&2&ke&&Yt.push(Yt.pop().concat(Yt.shift())),b.push(Yt.filter(H4))}return D}}function H4(n){return n.length>1}function Dm(n,i){return((n=n.x)[0]<0?n[1]-li-$n:li-n[1])-((i=i.x)[0]<0?i[1]-li-$n:li-i[1])}const zp=Nm(function(){return!0},function(n){var i,o=NaN,s=NaN,l=NaN;return{lineStart:function(){n.lineStart(),i=1},point:function(d,b){var m=d>0?or:-or,w=Me(d-o);Me(w-or)<$n?(n.point(o,s=(s+b)/2>0?li:-li),n.point(l,s),n.lineEnd(),n.lineStart(),n.point(m,s),n.point(d,s),i=0):l!==m&&w>=or&&(Me(o-l)<$n&&(o-=l*$n),Me(d-m)<$n&&(d-=m*$n),s=function(E,L,j,D){var q,W,U=ln(E-j);return Me(U)>$n?mc((ln(L)*(W=bn(D))*ln(j)-ln(D)*(q=bn(L))*ln(E))/(q*W*U)):(L+D)/2}(o,s,d,b),n.point(l,s),n.lineEnd(),n.lineStart(),n.point(m,s),i=0),n.point(o=d,s=b),l=m},lineEnd:function(){n.lineEnd(),o=s=NaN},clean:function(){return 2-i}}},function(n,i,o,s){var l;if(n==null)l=o*li,s.point(-or,l),s.point(0,l),s.point(or,l),s.point(or,0),s.point(or,-l),s.point(0,-l),s.point(-or,-l),s.point(-or,0),s.point(-or,l);else if(Me(n[0]-i[0])>$n){var d=n[0]<i[0]?or:-or;l=o*d/2,s.point(-d,l),s.point(0,l),s.point(d,l)}else s.point(i[0],i[1])},[-or,-li]);function Lm(n){var i=bn(n),o=6*Cn,s=i>0,l=Me(i)>$n;function d(w,E){return bn(w)*bn(E)>i}function b(w,E,L){var j=[1,0,0],D=Ju(No(w),No(E)),q=Lf(D,D),W=D[0],U=q-W*W;if(!U)return!L&&w;var V=i*q/U,Z=-i*W/U,it=Ju(j,D),rt=tu(j,V);tl(rt,tu(D,Z));var dt=it,Pt=Lf(rt,dt),Vt=Lf(dt,dt),Jt=Pt*Pt-Vt*(Lf(rt,rt)-1);if(!(Jt<0)){var ke=vi(Jt),Yt=tu(dt,(-Pt-ke)/Vt);if(tl(Yt,rt),Yt=Df(Yt),!L)return Yt;var ce,ht=w[0],Ct=E[0],ne=w[1],Qt=E[1];Ct<ht&&(ce=ht,ht=Ct,Ct=ce);var ie=Ct-ht,Fe=Me(ie-or)<$n;if(!Fe&&Qt<ne&&(ce=ne,ne=Qt,Qt=ce),Fe||ie<$n?Fe?ne+Qt>0^Yt[1]<(Me(Yt[0]-ht)<$n?ne:Qt):ne<=Yt[1]&&Yt[1]<=Qt:ie>or^(ht<=Yt[0]&&Yt[0]<=Ct)){var Ke=tu(dt,(-Pt+ke)/Vt);return tl(Ke,rt),[Yt,Df(Ke)]}}}function m(w,E){var L=s?n:or-n,j=0;return w<-L?j|=1:w>L&&(j|=2),E<-L?j|=4:E>L&&(j|=8),j}return Nm(d,function(w){var E,L,j,D,q;return{lineStart:function(){D=j=!1,q=1},point:function(W,U){var V,Z=[W,U],it=d(W,U),rt=s?it?0:m(W,U):it?m(W+(W<0?or:-or),U):0;if(!E&&(D=j=it)&&w.lineStart(),it!==j&&(!(V=b(E,Z))||Pf(E,V)||Pf(Z,V))&&(Z[2]=1),it!==j)q=0,it?(w.lineStart(),V=b(Z,E),w.point(V[0],V[1])):(V=b(E,Z),w.point(V[0],V[1],2),w.lineEnd()),E=V;else if(l&&E&&s^it){var dt;rt&L||!(dt=b(Z,E,!0))||(q=0,s?(w.lineStart(),w.point(dt[0][0],dt[0][1]),w.point(dt[1][0],dt[1][1]),w.lineEnd()):(w.point(dt[1][0],dt[1][1]),w.lineEnd(),w.lineStart(),w.point(dt[0][0],dt[0][1],3)))}!it||E&&Pf(E,Z)||w.point(Z[0],Z[1]),E=Z,j=it,L=rt},lineEnd:function(){j&&w.lineEnd(),E=null},clean:function(){return q|(D&&j)<<1}}},function(w,E,L,j){Cm(j,n,o,L,w,E)},s?[0,-n]:[-or,n-or])}var Lh=1e9,zf=-Lh;function Uf(n,i,o,s){function l(E,L){return n<=E&&E<=o&&i<=L&&L<=s}function d(E,L,j,D){var q=0,W=0;if(E==null||(q=b(E,j))!==(W=b(L,j))||w(E,L)<0^j>0)do D.point(q===0||q===3?n:o,q>1?s:i);while((q=(q+j+4)%4)!==W);else D.point(L[0],L[1])}function b(E,L){return Me(E[0]-n)<$n?L>0?0:3:Me(E[0]-o)<$n?L>0?2:1:Me(E[1]-i)<$n?L>0?1:0:L>0?3:2}function m(E,L){return w(E.x,L.x)}function w(E,L){var j=b(E,1),D=b(L,1);return j!==D?j-D:j===0?L[1]-E[1]:j===1?E[0]-L[0]:j===2?E[1]-L[1]:L[0]-E[0]}return function(E){var L,j,D,q,W,U,V,Z,it,rt,dt,Pt=E,Vt=Em(),Jt={point:ke,lineStart:function(){Jt.point=Yt,j&&j.push(D=[]),rt=!0,it=!1,V=Z=NaN},lineEnd:function(){L&&(Yt(q,W),U&&it&&Vt.rejoin(),L.push(Vt.result())),Jt.point=ke,it&&Pt.lineEnd()},polygonStart:function(){Pt=Vt,L=[],j=[],dt=!0},polygonEnd:function(){var ce=function(){for(var ne=0,Qt=0,ie=j.length;Qt<ie;++Qt)for(var Fe,Ke,Tn=j[Qt],Sn=1,ar=Tn.length,on=Tn[0],yr=on[0],In=on[1];Sn<ar;++Sn)Fe=yr,Ke=In,yr=(on=Tn[Sn])[0],In=on[1],Ke<=s?In>s&&(yr-Fe)*(s-Ke)>(In-Ke)*(n-Fe)&&++ne:In<=s&&(yr-Fe)*(s-Ke)<(In-Ke)*(n-Fe)&&--ne;return ne}(),ht=dt&&ce,Ct=(L=le(L)).length;(ht||Ct)&&(E.polygonStart(),ht&&(E.lineStart(),d(null,null,1,E),E.lineEnd()),Ct&&Sm(L,m,ce,d,E),E.polygonEnd()),Pt=E,L=j=D=null}};function ke(ce,ht){l(ce,ht)&&Pt.point(ce,ht)}function Yt(ce,ht){var Ct=l(ce,ht);if(j&&D.push([ce,ht]),rt)q=ce,W=ht,U=Ct,rt=!1,Ct&&(Pt.lineStart(),Pt.point(ce,ht));else if(Ct&&it)Pt.point(ce,ht);else{var ne=[V=Math.max(zf,Math.min(Lh,V)),Z=Math.max(zf,Math.min(Lh,Z))],Qt=[ce=Math.max(zf,Math.min(Lh,ce)),ht=Math.max(zf,Math.min(Lh,ht))];(function(ie,Fe,Ke,Tn,Sn,ar){var on,yr=ie[0],In=ie[1],Nn=0,dr=1,Vi=Fe[0]-yr,wi=Fe[1]-In;if(on=Ke-yr,Vi||!(on>0)){if(on/=Vi,Vi<0){if(on<Nn)return;on<dr&&(dr=on)}else if(Vi>0){if(on>dr)return;on>Nn&&(Nn=on)}if(on=Sn-yr,Vi||!(on<0)){if(on/=Vi,Vi<0){if(on>dr)return;on>Nn&&(Nn=on)}else if(Vi>0){if(on<Nn)return;on<dr&&(dr=on)}if(on=Tn-In,wi||!(on>0)){if(on/=wi,wi<0){if(on<Nn)return;on<dr&&(dr=on)}else if(wi>0){if(on>dr)return;on>Nn&&(Nn=on)}if(on=ar-In,wi||!(on<0)){if(on/=wi,wi<0){if(on>dr)return;on>Nn&&(Nn=on)}else if(wi>0){if(on<Nn)return;on<dr&&(dr=on)}return Nn>0&&(ie[0]=yr+Nn*Vi,ie[1]=In+Nn*wi),dr<1&&(Fe[0]=yr+dr*Vi,Fe[1]=In+dr*wi),!0}}}}})(ne,Qt,n,i,o,s)?(it||(Pt.lineStart(),Pt.point(ne[0],ne[1])),Pt.point(Qt[0],Qt[1]),Ct||Pt.lineEnd(),dt=!1):Ct&&(Pt.lineStart(),Pt.point(ce,ht),dt=!1)}V=ce,Z=ht,it=Ct}return Jt}}function W4(){var n,i,o,s=0,l=0,d=960,b=500;return o={stream:function(m){return n&&i===m?n:n=Uf(s,l,d,b)(i=m)},extent:function(m){return arguments.length?(s=+m[0][0],l=+m[0][1],d=+m[1][0],b=+m[1][1],n=i=null,o):[[s,l],[d,b]]}}}var qf,$f,Hf,Up=yc(),cl={sphere:Tr,point:Tr,lineStart:function(){cl.point=G4,cl.lineEnd=V4},lineEnd:Tr,polygonStart:Tr,polygonEnd:Tr};function V4(){cl.point=cl.lineEnd=Tr}function G4(n,i){qf=n*=Cn,$f=ln(i*=Cn),Hf=bn(i),cl.point=X4}function X4(n,i){n*=Cn;var o=ln(i*=Cn),s=bn(i),l=Me(n-qf),d=bn(l),b=s*ln(l),m=Hf*o-$f*s*d,w=$f*o+Hf*s*d;Up.add(Qi(vi(b*b+m*m),w)),qf=n,$f=o,Hf=s}function Bm(n){return Up.reset(),Mo(n,cl),+Up}var Wf=[null,null],Z4={type:"LineString",coordinates:Wf};function Vf(n,i){return Wf[0]=n,Wf[1]=i,Bm(Z4)}var Om={Feature:function(n,i){return Gf(n.geometry,i)},FeatureCollection:function(n,i){for(var o=n.features,s=-1,l=o.length;++s<l;)if(Gf(o[s].geometry,i))return!0;return!1}},qp={Sphere:function(){return!0},Point:function(n,i){return Im(n.coordinates,i)},MultiPoint:function(n,i){for(var o=n.coordinates,s=-1,l=o.length;++s<l;)if(Im(o[s],i))return!0;return!1},LineString:function(n,i){return Rm(n.coordinates,i)},MultiLineString:function(n,i){for(var o=n.coordinates,s=-1,l=o.length;++s<l;)if(Rm(o[s],i))return!0;return!1},Polygon:function(n,i){return Fm(n.coordinates,i)},MultiPolygon:function(n,i){for(var o=n.coordinates,s=-1,l=o.length;++s<l;)if(Fm(o[s],i))return!0;return!1},GeometryCollection:function(n,i){for(var o=n.geometries,s=-1,l=o.length;++s<l;)if(Gf(o[s],i))return!0;return!1}};function Gf(n,i){return!(!n||!qp.hasOwnProperty(n.type))&&qp[n.type](n,i)}function Im(n,i){return Vf(n,i)===0}function Rm(n,i){for(var o,s,l,d=0,b=n.length;d<b;d++){if((s=Vf(n[d],i))===0||d>0&&(l=Vf(n[d],n[d-1]))>0&&o<=l&&s<=l&&(o+s-l)*(1-Math.pow((o-s)/l,2))<xh*l)return!0;o=s}return!1}function Fm(n,i){return!!Mm(n.map(Q4),Pm(i))}function Q4(n){return(n=n.map(Pm)).pop(),n}function Pm(n){return[n[0]*Cn,n[1]*Cn]}function jm(n,i){return(n&&Om.hasOwnProperty(n.type)?Om[n.type]:Gf)(n,i)}function Ym(n,i,o){var s=zt(n,i-$n,o).concat(i);return function(l){return s.map(function(d){return[l,d]})}}function zm(n,i,o){var s=zt(n,i-$n,o).concat(i);return function(l){return s.map(function(d){return[d,l]})}}function Um(){var n,i,o,s,l,d,b,m,w,E,L,j,D=10,q=D,W=90,U=360,V=2.5;function Z(){return{type:"MultiLineString",coordinates:it()}}function it(){return zt(ss(s/W)*W,o,W).map(L).concat(zt(ss(m/U)*U,b,U).map(j)).concat(zt(ss(i/D)*D,n,D).filter(function(rt){return Me(rt%W)>$n}).map(w)).concat(zt(ss(d/q)*q,l,q).filter(function(rt){return Me(rt%U)>$n}).map(E))}return Z.lines=function(){return it().map(function(rt){return{type:"LineString",coordinates:rt}})},Z.outline=function(){return{type:"Polygon",coordinates:[L(s).concat(j(b).slice(1),L(o).reverse().slice(1),j(m).reverse().slice(1))]}},Z.extent=function(rt){return arguments.length?Z.extentMajor(rt).extentMinor(rt):Z.extentMinor()},Z.extentMajor=function(rt){return arguments.length?(s=+rt[0][0],o=+rt[1][0],m=+rt[0][1],b=+rt[1][1],s>o&&(rt=s,s=o,o=rt),m>b&&(rt=m,m=b,b=rt),Z.precision(V)):[[s,m],[o,b]]},Z.extentMinor=function(rt){return arguments.length?(i=+rt[0][0],n=+rt[1][0],d=+rt[0][1],l=+rt[1][1],i>n&&(rt=i,i=n,n=rt),d>l&&(rt=d,d=l,l=rt),Z.precision(V)):[[i,d],[n,l]]},Z.step=function(rt){return arguments.length?Z.stepMajor(rt).stepMinor(rt):Z.stepMinor()},Z.stepMajor=function(rt){return arguments.length?(W=+rt[0],U=+rt[1],Z):[W,U]},Z.stepMinor=function(rt){return arguments.length?(D=+rt[0],q=+rt[1],Z):[D,q]},Z.precision=function(rt){return arguments.length?(V=+rt,w=Ym(d,l,90),E=zm(i,n,V),L=Ym(m,b,90),j=zm(s,o,V),Z):V},Z.extentMajor([[-180,-89.999999],[180,89.999999]]).extentMinor([[-180,-80.000001],[180,80.000001]])}function K4(){return Um()()}function J4(n,i){var o=n[0]*Cn,s=n[1]*Cn,l=i[0]*Cn,d=i[1]*Cn,b=bn(s),m=ln(s),w=bn(d),E=ln(d),L=b*bn(o),j=b*ln(o),D=w*bn(l),q=w*ln(l),W=2*ya(vi(Af(d-s)+b*w*Af(l-o))),U=ln(W),V=W?function(Z){var it=ln(Z*=W)/U,rt=ln(W-Z)/U,dt=rt*L+it*D,Pt=rt*j+it*q,Vt=rt*m+it*E;return[Qi(Pt,dt)*Ur,Qi(Vt,vi(dt*dt+Pt*Pt))*Ur]}:function(){return[o*Ur,s*Ur]};return V.distance=W,V}function Bh(n){return n}var qm,$m,Xf,Zf,Qf=yc(),$p=yc(),Ps={point:Tr,lineStart:Tr,lineEnd:Tr,polygonStart:function(){Ps.lineStart=Kf,Ps.lineEnd=Wm},polygonEnd:function(){Ps.lineStart=Ps.lineEnd=Ps.point=Tr,Qf.add(Me($p)),$p.reset()},result:function(){var n=Qf/2;return Qf.reset(),n}};function Kf(){Ps.point=t5}function t5(n,i){Ps.point=Hm,qm=Xf=n,$m=Zf=i}function Hm(n,i){$p.add(Zf*n-Xf*i),Xf=n,Zf=i}function Wm(){Hm(qm,$m)}const Vm=Ps;var js=1/0,xc=js,us=-js,wc=us,Oh={point:function(n,i){n<js&&(js=n),n>us&&(us=n),i<xc&&(xc=i),i>wc&&(wc=i)},lineStart:Tr,lineEnd:Tr,polygonStart:Tr,polygonEnd:Tr,result:function(){var n=[[js,xc],[us,wc]];return us=wc=-(xc=js=1/0),n}};const ru=Oh;var kc,Ih,Oa,Bo,Rh=0,Hp=0,Tc=0,Fh=0,Ph=0,ul=0,jh=0,Jf=0,Yh=0,Oo={point:ls,lineStart:td,lineEnd:Ys,polygonStart:function(){Oo.lineStart=ed,Oo.lineEnd=Gm},polygonEnd:function(){Oo.point=ls,Oo.lineStart=td,Oo.lineEnd=Ys},result:function(){var n=Yh?[jh/Yh,Jf/Yh]:ul?[Fh/ul,Ph/ul]:Tc?[Rh/Tc,Hp/Tc]:[NaN,NaN];return Rh=Hp=Tc=Fh=Ph=ul=jh=Jf=Yh=0,n}};function ls(n,i){Rh+=n,Hp+=i,++Tc}function td(){Oo.point=hs}function hs(n,i){Oo.point=Io,ls(Oa=n,Bo=i)}function Io(n,i){var o=n-Oa,s=i-Bo,l=vi(o*o+s*s);Fh+=l*(Oa+n)/2,Ph+=l*(Bo+i)/2,ul+=l,ls(Oa=n,Bo=i)}function Ys(){Oo.point=ls}function ed(){Oo.point=Wp}function Gm(){Vp(kc,Ih)}function Wp(n,i){Oo.point=Vp,ls(kc=Oa=n,Ih=Bo=i)}function Vp(n,i){var o=n-Oa,s=i-Bo,l=vi(o*o+s*s);Fh+=l*(Oa+n)/2,Ph+=l*(Bo+i)/2,ul+=l,jh+=(l=Bo*n-Oa*i)*(Oa+n),Jf+=l*(Bo+i),Yh+=3*l,ls(Oa=n,Bo=i)}const Gp=Oo;function Xm(n){this._context=n}Xm.prototype={_radius:4.5,pointRadius:function(n){return this._radius=n,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(n,i){switch(this._point){case 0:this._context.moveTo(n,i),this._point=1;break;case 1:this._context.lineTo(n,i);break;default:this._context.moveTo(n+this._radius,i),this._context.arc(n,i,this._radius,0,Rr)}},result:Tr};var Xp,Zm,Qm,iu,ll,zh=yc(),hl={point:Tr,lineStart:function(){hl.point=e5},lineEnd:function(){Xp&&Zp(Zm,Qm),hl.point=Tr},polygonStart:function(){Xp=!0},polygonEnd:function(){Xp=null},result:function(){var n=+zh;return zh.reset(),n}};function e5(n,i){hl.point=Zp,Zm=iu=n,Qm=ll=i}function Zp(n,i){iu-=n,ll-=i,zh.add(vi(iu*iu+ll*ll)),iu=n,ll=i}const Km=hl;function Jm(){this._string=[]}function tv(n){return"m0,"+n+"a"+n+","+n+" 0 1,1 0,"+-2*n+"a"+n+","+n+" 0 1,1 0,"+2*n+"z"}function n5(n,i){var o,s,l=4.5;function d(b){return b&&(typeof l=="function"&&s.pointRadius(+l.apply(this,arguments)),Mo(b,o(s))),s.result()}return d.area=function(b){return Mo(b,o(Vm)),Vm.result()},d.measure=function(b){return Mo(b,o(Km)),Km.result()},d.bounds=function(b){return Mo(b,o(ru)),ru.result()},d.centroid=function(b){return Mo(b,o(Gp)),Gp.result()},d.projection=function(b){return arguments.length?(o=b==null?(n=null,Bh):(n=b).stream,d):n},d.context=function(b){return arguments.length?(s=b==null?(i=null,new Jm):new Xm(i=b),typeof l!="function"&&s.pointRadius(l),d):i},d.pointRadius=function(b){return arguments.length?(l=typeof b=="function"?b:(s.pointRadius(+b),+b),d):l},d.projection(n).context(i)}function r5(n){return{stream:Uh(n)}}function Uh(n){return function(i){var o=new Qp;for(var s in n)o[s]=n[s];return o.stream=i,o}}function Qp(){}function Kp(n,i,o){var s=n.clipExtent&&n.clipExtent();return n.scale(150).translate([0,0]),s!=null&&n.clipExtent(null),Mo(o,n.stream(ru)),i(ru.result()),s!=null&&n.clipExtent(s),n}function nd(n,i,o){return Kp(n,function(s){var l=i[1][0]-i[0][0],d=i[1][1]-i[0][1],b=Math.min(l/(s[1][0]-s[0][0]),d/(s[1][1]-s[0][1])),m=+i[0][0]+(l-b*(s[1][0]+s[0][0]))/2,w=+i[0][1]+(d-b*(s[1][1]+s[0][1]))/2;n.scale(150*b).translate([m,w])},o)}function Jp(n,i,o){return nd(n,[[0,0],i],o)}function tg(n,i,o){return Kp(n,function(s){var l=+i,d=l/(s[1][0]-s[0][0]),b=(l-d*(s[1][0]+s[0][0]))/2,m=-d*s[0][1];n.scale(150*d).translate([b,m])},o)}function eg(n,i,o){return Kp(n,function(s){var l=+i,d=l/(s[1][1]-s[0][1]),b=-d*s[0][0],m=(l-d*(s[1][1]+s[0][1]))/2;n.scale(150*d).translate([b,m])},o)}Jm.prototype={_radius:4.5,_circle:tv(4.5),pointRadius:function(n){return(n=+n)!==this._radius&&(this._radius=n,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(n,i){switch(this._point){case 0:this._string.push("M",n,",",i),this._point=1;break;case 1:this._string.push("L",n,",",i);break;default:this._circle==null&&(this._circle=tv(this._radius)),this._string.push("M",n,",",i,this._circle)}},result:function(){if(this._string.length){var n=this._string.join("");return this._string=[],n}return null}},Qp.prototype={constructor:Qp,point:function(n,i){this.stream.point(n,i)},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 i5=bn(30*Cn);function ev(n,i){return+i?function(o,s){function l(d,b,m,w,E,L,j,D,q,W,U,V,Z,it){var rt=j-d,dt=D-b,Pt=rt*rt+dt*dt;if(Pt>4*s&&Z--){var Vt=w+W,Jt=E+U,ke=L+V,Yt=vi(Vt*Vt+Jt*Jt+ke*ke),ce=ya(ke/=Yt),ht=Me(Me(ke)-1)<$n||Me(m-q)<$n?(m+q)/2:Qi(Jt,Vt),Ct=o(ht,ce),ne=Ct[0],Qt=Ct[1],ie=ne-d,Fe=Qt-b,Ke=dt*ie-rt*Fe;(Ke*Ke/Pt>s||Me((rt*ie+dt*Fe)/Pt-.5)>.3||w*W+E*U+L*V<i5)&&(l(d,b,m,w,E,L,ne,Qt,ht,Vt/=Yt,Jt/=Yt,ke,Z,it),it.point(ne,Qt),l(ne,Qt,ht,Vt,Jt,ke,j,D,q,W,U,V,Z,it))}}return function(d){var b,m,w,E,L,j,D,q,W,U,V,Z,it={point:rt,lineStart:dt,lineEnd:Vt,polygonStart:function(){d.polygonStart(),it.lineStart=Jt},polygonEnd:function(){d.polygonEnd(),it.lineStart=dt}};function rt(ce,ht){ce=o(ce,ht),d.point(ce[0],ce[1])}function dt(){q=NaN,it.point=Pt,d.lineStart()}function Pt(ce,ht){var Ct=No([ce,ht]),ne=o(ce,ht);l(q,W,D,U,V,Z,q=ne[0],W=ne[1],D=ce,U=Ct[0],V=Ct[1],Z=Ct[2],16,d),d.point(q,W)}function Vt(){it.point=rt,d.lineEnd()}function Jt(){dt(),it.point=ke,it.lineEnd=Yt}function ke(ce,ht){Pt(b=ce,ht),m=q,w=W,E=U,L=V,j=Z,it.point=Pt}function Yt(){l(q,W,D,U,V,Z,m,w,b,E,L,j,16,d),it.lineEnd=Vt,Vt()}return it}}(n,i):function(o){return Uh({point:function(s,l){s=o(s,l),this.stream.point(s[0],s[1])}})}(n)}var a5=Uh({point:function(n,i){this.stream.point(n*Cn,i*Cn)}});function o5(n,i,o,s,l){function d(b,m){return[i+n*(b*=s),o-n*(m*=l)]}return d.invert=function(b,m){return[(b-i)/n*s,(o-m)/n*l]},d}function nv(n,i,o,s,l,d){var b=bn(d),m=ln(d),w=b*n,E=m*n,L=b/n,j=m/n,D=(m*o-b*i)/n,q=(m*i+b*o)/n;function W(U,V){return[w*(U*=s)-E*(V*=l)+i,o-E*U-w*V]}return W.invert=function(U,V){return[s*(L*U-j*V+D),l*(q-j*U-L*V)]},W}function Ro(n){return ng(function(){return n})()}function ng(n){var i,o,s,l,d,b,m,w,E,L,j=150,D=480,q=250,W=0,U=0,V=0,Z=0,it=0,rt=0,dt=1,Pt=1,Vt=null,Jt=zp,ke=null,Yt=Bh,ce=.5;function ht(ie){return w(ie[0]*Cn,ie[1]*Cn)}function Ct(ie){return(ie=w.invert(ie[0],ie[1]))&&[ie[0]*Ur,ie[1]*Ur]}function ne(){var ie=nv(j,0,0,dt,Pt,rt).apply(null,i(W,U)),Fe=(rt?nv:o5)(j,D-ie[0],q-ie[1],dt,Pt,rt);return o=Ff(V,Z,it),m=Fp(i,Fe),w=Fp(o,m),b=ev(m,ce),Qt()}function Qt(){return E=L=null,ht}return ht.stream=function(ie){return E&&L===ie?E:E=a5(function(Fe){return Uh({point:function(Ke,Tn){var Sn=Fe(Ke,Tn);return this.stream.point(Sn[0],Sn[1])}})}(o)(Jt(b(Yt(L=ie)))))},ht.preclip=function(ie){return arguments.length?(Jt=ie,Vt=void 0,Qt()):Jt},ht.postclip=function(ie){return arguments.length?(Yt=ie,ke=s=l=d=null,Qt()):Yt},ht.clipAngle=function(ie){return arguments.length?(Jt=+ie?Lm(Vt=ie*Cn):(Vt=null,zp),Qt()):Vt*Ur},ht.clipExtent=function(ie){return arguments.length?(Yt=ie==null?(ke=s=l=d=null,Bh):Uf(ke=+ie[0][0],s=+ie[0][1],l=+ie[1][0],d=+ie[1][1]),Qt()):ke==null?null:[[ke,s],[l,d]]},ht.scale=function(ie){return arguments.length?(j=+ie,ne()):j},ht.translate=function(ie){return arguments.length?(D=+ie[0],q=+ie[1],ne()):[D,q]},ht.center=function(ie){return arguments.length?(W=ie[0]%360*Cn,U=ie[1]%360*Cn,ne()):[W*Ur,U*Ur]},ht.rotate=function(ie){return arguments.length?(V=ie[0]%360*Cn,Z=ie[1]%360*Cn,it=ie.length>2?ie[2]%360*Cn:0,ne()):[V*Ur,Z*Ur,it*Ur]},ht.angle=function(ie){return arguments.length?(rt=ie%360*Cn,ne()):rt*Ur},ht.reflectX=function(ie){return arguments.length?(dt=ie?-1:1,ne()):dt<0},ht.reflectY=function(ie){return arguments.length?(Pt=ie?-1:1,ne()):Pt<0},ht.precision=function(ie){return arguments.length?(b=ev(m,ce=ie*ie),Qt()):vi(ce)},ht.fitExtent=function(ie,Fe){return nd(ht,ie,Fe)},ht.fitSize=function(ie,Fe){return Jp(ht,ie,Fe)},ht.fitWidth=function(ie,Fe){return tg(ht,ie,Fe)},ht.fitHeight=function(ie,Fe){return eg(ht,ie,Fe)},function(){return i=n.apply(this,arguments),ht.invert=i.invert&&Ct,ne()}}function rg(n){var i=0,o=or/3,s=ng(n),l=s(i,o);return l.parallels=function(d){return arguments.length?s(i=d[0]*Cn,o=d[1]*Cn):[i*Ur,o*Ur]},l}function rv(n,i){var o=ln(n),s=(o+ln(i))/2;if(Me(s)<$n)return function(m){var w=bn(m);function E(L,j){return[L*w,ln(j)/w]}return E.invert=function(L,j){return[L/w,ya(j*w)]},E}(n);var l=1+o*(2*s-o),d=vi(l)/s;function b(m,w){var E=vi(l-2*s*ln(w))/s;return[E*ln(m*=s),d-E*bn(m)]}return b.invert=function(m,w){var E=d-w,L=Qi(m,Me(E))*kr(E);return E*s<0&&(L-=or*kr(m)*kr(E)),[L/s,ya((l-(m*m+E*E)*s*s)/(2*s))]},b}function rd(){return rg(rv).scale(155.424).center([0,33.6442])}function iv(){return rd().parallels([29.5,45.5]).scale(1070).translate([480,250]).rotate([96,0]).center([-.6,38.7])}function zs(){var n,i,o,s,l,d,b=iv(),m=rd().rotate([154,0]).center([-2,58.5]).parallels([55,65]),w=rd().rotate([157,0]).center([-3,19.9]).parallels([8,18]),E={point:function(D,q){d=[D,q]}};function L(D){var q=D[0],W=D[1];return d=null,o.point(q,W),d||(s.point(q,W),d)||(l.point(q,W),d)}function j(){return n=i=null,L}return L.invert=function(D){var q=b.scale(),W=b.translate(),U=(D[0]-W[0])/q,V=(D[1]-W[1])/q;return(V>=.12&&V<.234&&U>=-.425&&U<-.214?m:V>=.166&&V<.234&&U>=-.214&&U<-.115?w:b).invert(D)},L.stream=function(D){return n&&i===D?n:(q=[b.stream(i=D),m.stream(D),w.stream(D)],W=q.length,n={point:function(U,V){for(var Z=-1;++Z<W;)q[Z].point(U,V)},sphere:function(){for(var U=-1;++U<W;)q[U].sphere()},lineStart:function(){for(var U=-1;++U<W;)q[U].lineStart()},lineEnd:function(){for(var U=-1;++U<W;)q[U].lineEnd()},polygonStart:function(){for(var U=-1;++U<W;)q[U].polygonStart()},polygonEnd:function(){for(var U=-1;++U<W;)q[U].polygonEnd()}});var q,W},L.precision=function(D){return arguments.length?(b.precision(D),m.precision(D),w.precision(D),j()):b.precision()},L.scale=function(D){return arguments.length?(b.scale(D),m.scale(.35*D),w.scale(D),L.translate(b.translate())):b.scale()},L.translate=function(D){if(!arguments.length)return b.translate();var q=b.scale(),W=+D[0],U=+D[1];return o=b.translate(D).clipExtent([[W-.455*q,U-.238*q],[W+.455*q,U+.238*q]]).stream(E),s=m.translate([W-.307*q,U+.201*q]).clipExtent([[W-.425*q+$n,U+.12*q+$n],[W-.214*q-$n,U+.234*q-$n]]).stream(E),l=w.translate([W-.205*q,U+.212*q]).clipExtent([[W-.214*q+$n,U+.166*q+$n],[W-.115*q-$n,U+.234*q-$n]]).stream(E),j()},L.fitExtent=function(D,q){return nd(L,D,q)},L.fitSize=function(D,q){return Jp(L,D,q)},L.fitWidth=function(D,q){return tg(L,D,q)},L.fitHeight=function(D,q){return eg(L,D,q)},L.scale(1070)}function ig(n){return function(i,o){var s=bn(i),l=bn(o),d=n(s*l);return[d*l*ln(i),d*ln(o)]}}function ro(n){return function(i,o){var s=vi(i*i+o*o),l=n(s),d=ln(l),b=bn(l);return[Qi(i*d,s*b),ya(s&&o*d/s)]}}var ag=ig(function(n){return vi(2/(1+n))});function s5(){return Ro(ag).scale(124.75).clipAngle(179.999)}ag.invert=ro(function(n){return 2*ya(n/2)});var og=ig(function(n){return(n=vc(n))&&n/ln(n)});function sg(){return Ro(og).scale(79.4188).clipAngle(179.999)}function qh(n,i){return[n,Zu($i((li+i)/2))]}function c5(){return cg(qh).scale(961/Rr)}function cg(n){var i,o,s,l=Ro(n),d=l.center,b=l.scale,m=l.translate,w=l.clipExtent,E=null;function L(){var j=or*b(),D=l(Pp(l.rotate()).invert([0,0]));return w(E==null?[[D[0]-j,D[1]-j],[D[0]+j,D[1]+j]]:n===qh?[[Math.max(D[0]-j,E),i],[Math.min(D[0]+j,o),s]]:[[E,Math.max(D[1]-j,i)],[o,Math.min(D[1]+j,s)]])}return l.scale=function(j){return arguments.length?(b(j),L()):b()},l.translate=function(j){return arguments.length?(m(j),L()):m()},l.center=function(j){return arguments.length?(d(j),L()):d()},l.clipExtent=function(j){return arguments.length?(j==null?E=i=o=s=null:(E=+j[0][0],i=+j[0][1],o=+j[1][0],s=+j[1][1]),L()):E==null?null:[[E,i],[o,s]]},L()}function $h(n){return $i((li+n)/2)}function ug(n,i){var o=bn(n),s=n===i?ln(n):Zu(o/bn(i))/Zu($h(i)/$h(n)),l=o*Sf($h(n),s)/s;if(!s)return qh;function d(b,m){l>0?m<-li+$n&&(m=-li+$n):m>li-$n&&(m=li-$n);var w=l/Sf($h(m),s);return[w*ln(s*b),l-w*bn(s*b)]}return d.invert=function(b,m){var w=l-m,E=kr(s)*vi(b*b+w*w),L=Qi(b,Me(w))*kr(w);return w*s<0&&(L-=or*kr(b)*kr(w)),[L/s,2*mc(Sf(l/E,1/s))-li]},d}function u5(){return rg(ug).scale(109.5).parallels([30,30])}function Hh(n,i){return[n,i]}function l5(){return Ro(Hh).scale(152.63)}function av(n,i){var o=bn(n),s=n===i?ln(n):(o-bn(i))/(i-n),l=o/s+n;if(Me(s)<$n)return Hh;function d(b,m){var w=l-m,E=s*b;return[w*ln(E),l-w*bn(E)]}return d.invert=function(b,m){var w=l-m,E=Qi(b,Me(w))*kr(w);return w*s<0&&(E-=or*kr(b)*kr(w)),[E/s,l-kr(s)*vi(b*b+w*w)]},d}function ov(){return rg(av).scale(131.154).center([0,13.9389])}og.invert=ro(function(n){return n}),qh.invert=function(n,i){return[n,2*mc(dm(i))-li]},Hh.invert=Hh;var Cc=1.340264,Wh=-.081106,Vh=893e-6,Gh=.003796,id=vi(3)/2;function lg(n,i){var o=ya(id*ln(i)),s=o*o,l=s*s*s;return[n*bn(o)/(id*(Cc+3*Wh*s+l*(7*Vh+9*Gh*s))),o*(Cc+Wh*s+l*(Vh+Gh*s))]}function h5(){return Ro(lg).scale(177.158)}function Xh(n,i){var o=bn(i),s=bn(n)*o;return[o*ln(n)/s,ln(i)/s]}function sv(){return Ro(Xh).scale(144.049).clipAngle(60)}function ad(){var n,i,o,s,l,d,b,m=1,w=0,E=0,L=1,j=1,D=0,q=null,W=1,U=1,V=Uh({point:function(dt,Pt){var Vt=rt([dt,Pt]);this.stream.point(Vt[0],Vt[1])}}),Z=Bh;function it(){return W=m*L,U=m*j,d=b=null,rt}function rt(dt){var Pt=dt[0]*W,Vt=dt[1]*U;if(D){var Jt=Vt*n-Pt*i;Pt=Pt*n+Vt*i,Vt=Jt}return[Pt+w,Vt+E]}return rt.invert=function(dt){var Pt=dt[0]-w,Vt=dt[1]-E;if(D){var Jt=Vt*n+Pt*i;Pt=Pt*n-Vt*i,Vt=Jt}return[Pt/W,Vt/U]},rt.stream=function(dt){return d&&b===dt?d:d=V(Z(b=dt))},rt.postclip=function(dt){return arguments.length?(Z=dt,q=o=s=l=null,it()):Z},rt.clipExtent=function(dt){return arguments.length?(Z=dt==null?(q=o=s=l=null,Bh):Uf(q=+dt[0][0],o=+dt[0][1],s=+dt[1][0],l=+dt[1][1]),it()):q==null?null:[[q,o],[s,l]]},rt.scale=function(dt){return arguments.length?(m=+dt,it()):m},rt.translate=function(dt){return arguments.length?(w=+dt[0],E=+dt[1],it()):[w,E]},rt.angle=function(dt){return arguments.length?(i=ln(D=dt%360*Cn),n=bn(D),it()):D*Ur},rt.reflectX=function(dt){return arguments.length?(L=dt?-1:1,it()):L<0},rt.reflectY=function(dt){return arguments.length?(j=dt?-1:1,it()):j<0},rt.fitExtent=function(dt,Pt){return nd(rt,dt,Pt)},rt.fitSize=function(dt,Pt){return Jp(rt,dt,Pt)},rt.fitWidth=function(dt,Pt){return tg(rt,dt,Pt)},rt.fitHeight=function(dt,Pt){return eg(rt,dt,Pt)},rt}function hg(n,i){var o=i*i,s=o*o;return[n*(.8707-.131979*o+s*(s*(.003971*o-.001529*s)-.013791)),i*(1.007226+o*(.015085+s*(.028874*o-.044475-.005916*s)))]}function f5(){return Ro(hg).scale(175.295)}function fg(n,i){return[bn(i)*ln(n),ln(i)]}function d5(){return Ro(fg).scale(249.5).clipAngle(90.000001)}function dg(n,i){var o=bn(i),s=1+bn(n)*o;return[o*ln(n)/s,ln(i)/s]}function p5(){return Ro(dg).scale(250).clipAngle(142)}function od(n,i){return[Zu($i((li+i)/2)),-n]}function g5(){var n=cg(od),i=n.center,o=n.rotate;return n.center=function(s){return arguments.length?i([-s[1],s[0]]):[(s=i())[1],-s[0]]},n.rotate=function(s){return arguments.length?o([s[0],s[1],s.length>2?s[2]+90:90]):[(s=o())[0],s[1],s[2]-90]},o([0,0,90]).scale(159.155)}function y5(n,i){return n.parent===i.parent?1:2}function m5(n,i){return n+i.x}function fl(n,i){return Math.max(n,i.y)}function v5(){var n=y5,i=1,o=1,s=!1;function l(d){var b,m=0;d.eachAfter(function(D){var q=D.children;q?(D.x=function(W){return W.reduce(m5,0)/W.length}(q),D.y=function(W){return 1+W.reduce(fl,0)}(q)):(D.x=b?m+=n(D,b):0,D.y=0,b=D)});var w=function(D){for(var q;q=D.children;)D=q[0];return D}(d),E=function(D){for(var q;q=D.children;)D=q[q.length-1];return D}(d),L=w.x-n(w,E)/2,j=E.x+n(E,w)/2;return d.eachAfter(s?function(D){D.x=(D.x-d.x)*i,D.y=(d.y-D.y)*o}:function(D){D.x=(D.x-L)/(j-L)*i,D.y=(1-(d.y?D.y/d.y:1))*o})}return l.separation=function(d){return arguments.length?(n=d,l):n},l.size=function(d){return arguments.length?(s=!1,i=+d[0],o=+d[1],l):s?null:[i,o]},l.nodeSize=function(d){return arguments.length?(s=!0,i=+d[0],o=+d[1],l):s?[i,o]:null},l}function b5(n){var i=0,o=n.children,s=o&&o.length;if(s)for(;--s>=0;)i+=o[s].value;else i=1;n.value=i}function pg(n,i){var o,s,l,d,b,m=new au(n),w=+n.value&&(m.value=n.value),E=[m];for(i==null&&(i=cv);o=E.pop();)if(w&&(o.value=+o.data.value),(l=i(o.data))&&(b=l.length))for(o.children=new Array(b),d=b-1;d>=0;--d)E.push(s=o.children[d]=new au(l[d])),s.parent=o,s.depth=o.depth+1;return m.eachBefore(yg)}function cv(n){return n.children}function gg(n){n.data=n.data.data}function yg(n){var i=0;do n.height=i;while((n=n.parent)&&n.height<++i)}function au(n){this.data=n,this.depth=this.height=0,this.parent=null}lg.invert=function(n,i){for(var o,s=i,l=s*s,d=l*l*l,b=0;b<12&&(d=(l=(s-=o=(s*(Cc+Wh*l+d*(Vh+Gh*l))-i)/(Cc+3*Wh*l+d*(7*Vh+9*Gh*l)))*s)*l*l,!(Me(o)<xh));++b);return[id*n*(Cc+3*Wh*l+d*(7*Vh+9*Gh*l))/bn(s),ya(ln(s)/id)]},Xh.invert=ro(mc),hg.invert=function(n,i){var o,s=i,l=25;do{var d=s*s,b=d*d;s-=o=(s*(1.007226+d*(.015085+b*(.028874*d-.044475-.005916*b)))-i)/(1.007226+d*(.045255+b*(.259866*d-.311325-.005916*11*b)))}while(Me(o)>$n&&--l>0);return[n/(.8707+(d=s*s)*(d*(d*d*d*(.003971-.001529*d)-.013791)-.131979)),s]},fg.invert=ro(ya),dg.invert=ro(function(n){return 2*mc(n)}),od.invert=function(n,i){return[-i,2*mc(dm(n))-li]},au.prototype=pg.prototype={constructor:au,count:function(){return this.eachAfter(b5)},each:function(n){var i,o,s,l,d=this,b=[d];do for(i=b.reverse(),b=[];d=i.pop();)if(n(d),o=d.children)for(s=0,l=o.length;s<l;++s)b.push(o[s]);while(b.length);return this},eachAfter:function(n){for(var i,o,s,l=this,d=[l],b=[];l=d.pop();)if(b.push(l),i=l.children)for(o=0,s=i.length;o<s;++o)d.push(i[o]);for(;l=b.pop();)n(l);return this},eachBefore:function(n){for(var i,o,s=this,l=[s];s=l.pop();)if(n(s),i=s.children)for(o=i.length-1;o>=0;--o)l.push(i[o]);return this},sum:function(n){return this.eachAfter(function(i){for(var o=+n(i.data)||0,s=i.children,l=s&&s.length;--l>=0;)o+=s[l].value;i.value=o})},sort:function(n){return this.eachBefore(function(i){i.children&&i.children.sort(n)})},path:function(n){for(var i=this,o=function(d,b){if(d===b)return d;var m=d.ancestors(),w=b.ancestors(),E=null;for(d=m.pop(),b=w.pop();d===b;)E=d,d=m.pop(),b=w.pop();return E}(i,n),s=[i];i!==o;)i=i.parent,s.push(i);for(var l=s.length;n!==o;)s.splice(l,0,n),n=n.parent;return s},ancestors:function(){for(var n=this,i=[n];n=n.parent;)i.push(n);return i},descendants:function(){var n=[];return this.each(function(i){n.push(i)}),n},leaves:function(){var n=[];return this.eachBefore(function(i){i.children||n.push(i)}),n},links:function(){var n=this,i=[];return n.each(function(o){o!==n&&i.push({source:o.parent,target:o})}),i},copy:function(){return pg(this).eachBefore(gg)}};var uv=Array.prototype.slice;function lv(n){for(var i,o,s=0,l=(n=function(b){for(var m,w,E=b.length;E;)w=Math.random()*E--|0,m=b[E],b[E]=b[w],b[w]=m;return b}(uv.call(n))).length,d=[];s<l;)i=n[s],o&&hv(o,i)?++s:(o=x5(d=_5(d,i)),s=0);return o}function _5(n,i){var o,s;if(mg(i,n))return[i];for(o=0;o<n.length;++o)if(sd(i,n[o])&&mg(Zh(n[o],i),n))return[n[o],i];for(o=0;o<n.length-1;++o)for(s=o+1;s<n.length;++s)if(sd(Zh(n[o],n[s]),i)&&sd(Zh(n[o],i),n[s])&&sd(Zh(n[s],i),n[o])&&mg(fv(n[o],n[s],i),n))return[n[o],n[s],i];throw new Error}function sd(n,i){var o=n.r-i.r,s=i.x-n.x,l=i.y-n.y;return o<0||o*o<s*s+l*l}function hv(n,i){var o=n.r-i.r+1e-6,s=i.x-n.x,l=i.y-n.y;return o>0&&o*o>s*s+l*l}function mg(n,i){for(var o=0;o<i.length;++o)if(!hv(n,i[o]))return!1;return!0}function x5(n){switch(n.length){case 1:return function(i){return{x:i.x,y:i.y,r:i.r}}(n[0]);case 2:return Zh(n[0],n[1]);case 3:return fv(n[0],n[1],n[2])}}function Zh(n,i){var o=n.x,s=n.y,l=n.r,d=i.x,b=i.y,m=i.r,w=d-o,E=b-s,L=m-l,j=Math.sqrt(w*w+E*E);return{x:(o+d+w/j*L)/2,y:(s+b+E/j*L)/2,r:(j+l+m)/2}}function fv(n,i,o){var s=n.x,l=n.y,d=n.r,b=i.x,m=i.y,w=i.r,E=o.x,L=o.y,j=o.r,D=s-b,q=s-E,W=l-m,U=l-L,V=w-d,Z=j-d,it=s*s+l*l-d*d,rt=it-b*b-m*m+w*w,dt=it-E*E-L*L+j*j,Pt=q*W-D*U,Vt=(W*dt-U*rt)/(2*Pt)-s,Jt=(U*V-W*Z)/Pt,ke=(q*rt-D*dt)/(2*Pt)-l,Yt=(D*Z-q*V)/Pt,ce=Jt*Jt+Yt*Yt-1,ht=2*(d+Vt*Jt+ke*Yt),Ct=Vt*Vt+ke*ke-d*d,ne=-(ce?(ht+Math.sqrt(ht*ht-4*ce*Ct))/(2*ce):Ct/ht);return{x:s+Vt+Jt*ne,y:l+ke+Yt*ne,r:ne}}function dv(n,i,o){var s,l,d,b,m=n.x-i.x,w=n.y-i.y,E=m*m+w*w;E?(l=i.r+o.r,l*=l,b=n.r+o.r,l>(b*=b)?(s=(E+b-l)/(2*E),d=Math.sqrt(Math.max(0,b/E-s*s)),o.x=n.x-s*m-d*w,o.y=n.y-s*w+d*m):(s=(E+l-b)/(2*E),d=Math.sqrt(Math.max(0,l/E-s*s)),o.x=i.x+s*m-d*w,o.y=i.y+s*w+d*m)):(o.x=i.x+o.r,o.y=i.y)}function pv(n,i){var o=n.r+i.r-1e-6,s=i.x-n.x,l=i.y-n.y;return o>0&&o*o>s*s+l*l}function gv(n){var i=n._,o=n.next._,s=i.r+o.r,l=(i.x*o.r+o.x*i.r)/s,d=(i.y*o.r+o.y*i.r)/s;return l*l+d*d}function cd(n){this._=n,this.next=null,this.previous=null}function yv(n){if(!(l=n.length))return 0;var i,o,s,l,d,b,m,w,E,L,j;if((i=n[0]).x=0,i.y=0,!(l>1))return i.r;if(o=n[1],i.x=-o.r,o.x=i.r,o.y=0,!(l>2))return i.r+o.r;dv(o,i,s=n[2]),i=new cd(i),o=new cd(o),s=new cd(s),i.next=s.previous=o,o.next=i.previous=s,s.next=o.previous=i;t:for(m=3;m<l;++m){dv(i._,o._,s=n[m]),s=new cd(s),w=o.next,E=i.previous,L=o._.r,j=i._.r;do if(L<=j){if(pv(w._,s._)){o=w,i.next=o,o.previous=i,--m;continue t}L+=w._.r,w=w.next}else{if(pv(E._,s._)){(i=E).next=o,o.previous=i,--m;continue t}j+=E._.r,E=E.previous}while(w!==E.next);for(s.previous=i,s.next=o,i.next=o.previous=o=s,d=gv(i);(s=s.next)!==o;)(b=gv(s))<d&&(i=s,d=b);o=i.next}for(i=[o._],s=o;(s=s.next)!==o;)i.push(s._);for(s=lv(i),m=0;m<l;++m)(i=n[m]).x-=s.x,i.y-=s.y;return s.r}function mv(n){return yv(n),n}function w5(n){return n==null?null:ud(n)}function ud(n){if(typeof n!="function")throw new Error;return n}function ou(){return 0}function dl(n){return function(){return n}}function k5(n){return Math.sqrt(n.value)}function T5(){var n=null,i=1,o=1,s=ou;function l(d){return d.x=i/2,d.y=o/2,n?d.eachBefore(vv(n)).eachAfter(ld(s,.5)).eachBefore(bv(1)):d.eachBefore(vv(k5)).eachAfter(ld(ou,1)).eachAfter(ld(s,d.r/Math.min(i,o))).eachBefore(bv(Math.min(i,o)/(2*d.r))),d}return l.radius=function(d){return arguments.length?(n=w5(d),l):n},l.size=function(d){return arguments.length?(i=+d[0],o=+d[1],l):[i,o]},l.padding=function(d){return arguments.length?(s=typeof d=="function"?d:dl(+d),l):s},l}function vv(n){return function(i){i.children||(i.r=Math.max(0,+n(i)||0))}}function ld(n,i){return function(o){if(s=o.children){var s,l,d,b=s.length,m=n(o)*i||0;if(m)for(l=0;l<b;++l)s[l].r+=m;if(d=yv(s),m)for(l=0;l<b;++l)s[l].r-=m;o.r=d+m}}}function bv(n){return function(i){var o=i.parent;i.r*=n,o&&(i.x=o.x+n*i.x,i.y=o.y+n*i.y)}}function _v(n){n.x0=Math.round(n.x0),n.y0=Math.round(n.y0),n.x1=Math.round(n.x1),n.y1=Math.round(n.y1)}function Qh(n,i,o,s,l){for(var d,b=n.children,m=-1,w=b.length,E=n.value&&(s-i)/n.value;++m<w;)(d=b[m]).y0=o,d.y1=l,d.x0=i,d.x1=i+=d.value*E}function Fo(){var n=1,i=1,o=0,s=!1;function l(d){var b=d.height+1;return d.x0=d.y0=o,d.x1=n,d.y1=i/b,d.eachBefore(function(m,w){return function(E){E.children&&Qh(E,E.x0,m*(E.depth+1)/w,E.x1,m*(E.depth+2)/w);var L=E.x0,j=E.y0,D=E.x1-o,q=E.y1-o;D<L&&(L=D=(L+D)/2),q<j&&(j=q=(j+q)/2),E.x0=L,E.y0=j,E.x1=D,E.y1=q}}(i,b)),s&&d.eachBefore(_v),d}return l.round=function(d){return arguments.length?(s=!!d,l):s},l.size=function(d){return arguments.length?(n=+d[0],i=+d[1],l):[n,i]},l.padding=function(d){return arguments.length?(o=+d,l):o},l}var xv={depth:-1},Kh={};function C5(n){return n.id}function wv(n){return n.parentId}function hd(){var n=C5,i=wv;function o(s){var l,d,b,m,w,E,L,j=s.length,D=new Array(j),q={};for(d=0;d<j;++d)l=s[d],w=D[d]=new au(l),(E=n(l,d,s))!=null&&(E+="")&&(q[L="$"+(w.id=E)]=L in q?Kh:w);for(d=0;d<j;++d)if(w=D[d],(E=i(s[d],d,s))!=null&&(E+="")){if(!(m=q["$"+E]))throw new Error("missing: "+E);if(m===Kh)throw new Error("ambiguous: "+E);m.children?m.children.push(w):m.children=[w],w.parent=m}else{if(b)throw new Error("multiple roots");b=w}if(!b)throw new Error("no root");if(b.parent=xv,b.eachBefore(function(W){W.depth=W.parent.depth+1,--j}).eachBefore(yg),b.parent=null,j>0)throw new Error("cycle");return b}return o.id=function(s){return arguments.length?(n=ud(s),o):n},o.parentId=function(s){return arguments.length?(i=ud(s),o):i},o}function E5(n,i){return n.parent===i.parent?1:2}function vg(n){var i=n.children;return i?i[0]:n.t}function fd(n){var i=n.children;return i?i[i.length-1]:n.t}function S5(n,i,o){var s=o/(i.i-n.i);i.c-=s,i.s+=o,n.c+=s,i.z+=o,i.m+=o}function dd(n,i,o){return n.a.parent===i.parent?n.a:o}function Ec(n,i){this._=n,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=i}function pl(){var n=E5,i=1,o=1,s=null;function l(w){var E=function(Z){for(var it,rt,dt,Pt,Vt,Jt=new Ec(Z,0),ke=[Jt];it=ke.pop();)if(dt=it._.children)for(it.children=new Array(Vt=dt.length),Pt=Vt-1;Pt>=0;--Pt)ke.push(rt=it.children[Pt]=new Ec(dt[Pt],Pt)),rt.parent=it;return(Jt.parent=new Ec(null,0)).children=[Jt],Jt}(w);if(E.eachAfter(d),E.parent.m=-E.z,E.eachBefore(b),s)w.eachBefore(m);else{var L=w,j=w,D=w;w.eachBefore(function(Z){Z.x<L.x&&(L=Z),Z.x>j.x&&(j=Z),Z.depth>D.depth&&(D=Z)});var q=L===j?1:n(L,j)/2,W=q-L.x,U=i/(j.x+q+W),V=o/(D.depth||1);w.eachBefore(function(Z){Z.x=(Z.x+W)*U,Z.y=Z.depth*V})}return w}function d(w){var E=w.children,L=w.parent.children,j=w.i?L[w.i-1]:null;if(E){(function(q){for(var W,U=0,V=0,Z=q.children,it=Z.length;--it>=0;)(W=Z[it]).z+=U,W.m+=U,U+=W.s+(V+=W.c)})(w);var D=(E[0].z+E[E.length-1].z)/2;j?(w.z=j.z+n(w._,j._),w.m=w.z-D):w.z=D}else j&&(w.z=j.z+n(w._,j._));w.parent.A=function(q,W,U){if(W){for(var V,Z=q,it=q,rt=W,dt=Z.parent.children[0],Pt=Z.m,Vt=it.m,Jt=rt.m,ke=dt.m;rt=fd(rt),Z=vg(Z),rt&&Z;)dt=vg(dt),(it=fd(it)).a=q,(V=rt.z+Jt-Z.z-Pt+n(rt._,Z._))>0&&(S5(dd(rt,q,U),q,V),Pt+=V,Vt+=V),Jt+=rt.m,Pt+=Z.m,ke+=dt.m,Vt+=it.m;rt&&!fd(it)&&(it.t=rt,it.m+=Jt-Vt),Z&&!vg(dt)&&(dt.t=Z,dt.m+=Pt-ke,U=q)}return U}(w,j,w.parent.A||L[0])}function b(w){w._.x=w.z+w.parent.m,w.m+=w.parent.m}function m(w){w.x*=i,w.y=w.depth*o}return l.separation=function(w){return arguments.length?(n=w,l):n},l.size=function(w){return arguments.length?(s=!1,i=+w[0],o=+w[1],l):s?null:[i,o]},l.nodeSize=function(w){return arguments.length?(s=!0,i=+w[0],o=+w[1],l):s?[i,o]:null},l}function Sc(n,i,o,s,l){for(var d,b=n.children,m=-1,w=b.length,E=n.value&&(l-o)/n.value;++m<w;)(d=b[m]).x0=i,d.x1=s,d.y0=o,d.y1=o+=d.value*E}Ec.prototype=Object.create(au.prototype);var gl=(1+Math.sqrt(5))/2;function Jh(n,i,o,s,l,d){for(var b,m,w,E,L,j,D,q,W,U,V,Z=[],it=i.children,rt=0,dt=0,Pt=it.length,Vt=i.value;rt<Pt;){w=l-o,E=d-s;do L=it[dt++].value;while(!L&&dt<Pt);for(j=D=L,V=L*L*(U=Math.max(E/w,w/E)/(Vt*n)),W=Math.max(D/V,V/j);dt<Pt;++dt){if(L+=m=it[dt].value,m<j&&(j=m),m>D&&(D=m),V=L*L*U,(q=Math.max(D/V,V/j))>W){L-=m;break}W=q}Z.push(b={value:L,dice:w<E,children:it.slice(rt,dt)}),b.dice?Qh(b,o,s,l,Vt?s+=E*L/Vt:d):Sc(b,o,s,Vt?o+=w*L/Vt:l,d),Vt-=L,rt=dt}return Z}const Ac=function n(i){function o(s,l,d,b,m){Jh(i,s,l,d,b,m)}return o.ratio=function(s){return n((s=+s)>1?s:1)},o}(gl);function pd(){var n=Ac,i=!1,o=1,s=1,l=[0],d=ou,b=ou,m=ou,w=ou,E=ou;function L(D){return D.x0=D.y0=0,D.x1=o,D.y1=s,D.eachBefore(j),l=[0],i&&D.eachBefore(_v),D}function j(D){var q=l[D.depth],W=D.x0+q,U=D.y0+q,V=D.x1-q,Z=D.y1-q;V<W&&(W=V=(W+V)/2),Z<U&&(U=Z=(U+Z)/2),D.x0=W,D.y0=U,D.x1=V,D.y1=Z,D.children&&(q=l[D.depth+1]=d(D)/2,W+=E(D)-q,U+=b(D)-q,(V-=m(D)-q)<W&&(W=V=(W+V)/2),(Z-=w(D)-q)<U&&(U=Z=(U+Z)/2),n(D,W,U,V,Z))}return L.round=function(D){return arguments.length?(i=!!D,L):i},L.size=function(D){return arguments.length?(o=+D[0],s=+D[1],L):[o,s]},L.tile=function(D){return arguments.length?(n=ud(D),L):n},L.padding=function(D){return arguments.length?L.paddingInner(D).paddingOuter(D):L.paddingInner()},L.paddingInner=function(D){return arguments.length?(d=typeof D=="function"?D:dl(+D),L):d},L.paddingOuter=function(D){return arguments.length?L.paddingTop(D).paddingRight(D).paddingBottom(D).paddingLeft(D):L.paddingTop()},L.paddingTop=function(D){return arguments.length?(b=typeof D=="function"?D:dl(+D),L):b},L.paddingRight=function(D){return arguments.length?(m=typeof D=="function"?D:dl(+D),L):m},L.paddingBottom=function(D){return arguments.length?(w=typeof D=="function"?D:dl(+D),L):w},L.paddingLeft=function(D){return arguments.length?(E=typeof D=="function"?D:dl(+D),L):E},L}function t1(n,i,o,s,l){var d,b,m=n.children,w=m.length,E=new Array(w+1);for(E[0]=b=d=0;d<w;++d)E[d+1]=b+=m[d].value;(function L(j,D,q,W,U,V,Z){if(j>=D-1){var it=m[j];return it.x0=W,it.y0=U,it.x1=V,void(it.y1=Z)}for(var rt=E[j],dt=q/2+rt,Pt=j+1,Vt=D-1;Pt<Vt;){var Jt=Pt+Vt>>>1;E[Jt]<dt?Pt=Jt+1:Vt=Jt}dt-E[Pt-1]<E[Pt]-dt&&j+1<Pt&&--Pt;var ke=E[Pt]-rt,Yt=q-ke;if(V-W>Z-U){var ce=(W*Yt+V*ke)/q;L(j,Pt,ke,W,U,ce,Z),L(Pt,D,Yt,ce,U,V,Z)}else{var ht=(U*Yt+Z*ke)/q;L(j,Pt,ke,W,U,V,ht),L(Pt,D,Yt,W,ht,V,Z)}})(0,w,n.value,i,o,s,l)}function kv(n,i,o,s,l){(1&n.depth?Sc:Qh)(n,i,o,s,l)}const bg=function n(i){function o(s,l,d,b,m){if((w=s._squarify)&&w.ratio===i)for(var w,E,L,j,D,q=-1,W=w.length,U=s.value;++q<W;){for(L=(E=w[q]).children,j=E.value=0,D=L.length;j<D;++j)E.value+=L[j].value;E.dice?Qh(E,l,d,b,d+=(m-d)*E.value/U):Sc(E,l,d,l+=(b-l)*E.value/U,m),U-=E.value}else s._squarify=w=Jh(i,s,l,d,b,m),w.ratio=i}return o.ratio=function(s){return n((s=+s)>1?s:1)},o}(gl);function A5(n){var i=n.length;return function(o){return n[Math.max(0,Math.min(i-1,Math.floor(o*i)))]}}function gd(n,i){var o=Ma(+n,+i);return function(s){var l=o(s);return l-360*Math.floor(l/360)}}function _g(n,i){return n=+n,i=+i,function(o){return Math.round(n*(1-o)+i*o)}}var yl=Math.SQRT2;function Tv(n){return((n=Math.exp(n))+1/n)/2}function yd(n,i){var o,s,l=n[0],d=n[1],b=n[2],m=i[0],w=i[1],E=i[2],L=m-l,j=w-d,D=L*L+j*j;if(D<1e-12)s=Math.log(E/b)/yl,o=function(it){return[l+it*L,d+it*j,b*Math.exp(yl*it*s)]};else{var q=Math.sqrt(D),W=(E*E-b*b+4*D)/(2*b*2*q),U=(E*E-b*b-4*D)/(2*E*2*q),V=Math.log(Math.sqrt(W*W+1)-W),Z=Math.log(Math.sqrt(U*U+1)-U);s=(Z-V)/yl,o=function(it){var rt,dt=it*s,Pt=Tv(V),Vt=b/(2*q)*(Pt*(rt=yl*dt+V,((rt=Math.exp(2*rt))-1)/(rt+1))-function(Jt){return((Jt=Math.exp(Jt))-1/Jt)/2}(V));return[l+Vt*L,d+Vt*j,b*Pt/Tv(yl*dt+V)]}}return o.duration=1e3*s,o}function xg(n){return function(i,o){var s=n((i=Bu(i)).h,(o=Bu(o)).h),l=mi(i.s,o.s),d=mi(i.l,o.l),b=mi(i.opacity,o.opacity);return function(m){return i.h=s(m),i.s=l(m),i.l=d(m),i.opacity=b(m),i+""}}}const M5=xg(Ma);var N5=xg(mi);function md(n,i){var o=mi((n=lh(n)).l,(i=lh(i)).l),s=mi(n.a,i.a),l=mi(n.b,i.b),d=mi(n.opacity,i.opacity);return function(b){return n.l=o(b),n.a=s(b),n.b=l(b),n.opacity=d(b),n+""}}function vd(n){return function(i,o){var s=n((i=dc(i)).h,(o=dc(o)).h),l=mi(i.c,o.c),d=mi(i.l,o.l),b=mi(i.opacity,o.opacity);return function(m){return i.h=s(m),i.c=l(m),i.l=d(m),i.opacity=b(m),i+""}}}const fs=vd(Ma);var Po=vd(mi);function Us(n){return function i(o){function s(l,d){var b=n((l=da(l)).h,(d=da(d)).h),m=mi(l.s,d.s),w=mi(l.l,d.l),E=mi(l.opacity,d.opacity);return function(L){return l.h=b(L),l.s=m(L),l.l=w(Math.pow(L,o)),l.opacity=E(L),l+""}}return o=+o,s.gamma=i,s}(1)}const bd=Us(Ma);var e1=Us(mi);function wg(n,i){for(var o=0,s=i.length-1,l=i[0],d=new Array(s<0?0:s);o<s;)d[o]=n(l,l=i[++o]);return function(b){var m=Math.max(0,Math.min(s-1,Math.floor(b*=s)));return d[m](b-m)}}function Cv(n,i){for(var o=new Array(i),s=0;s<i;++s)o[s]=n(s/(i-1));return o}function Ev(n){for(var i,o=-1,s=n.length,l=n[s-1],d=0;++o<s;)i=l,l=n[o],d+=i[1]*l[0]-i[0]*l[1];return d/2}function D5(n){for(var i,o,s=-1,l=n.length,d=0,b=0,m=n[l-1],w=0;++s<l;)i=m,m=n[s],w+=o=i[0]*m[1]-m[0]*i[1],d+=(i[0]+m[0])*o,b+=(i[1]+m[1])*o;return[d/(w*=3),b/w]}function L5(n,i,o){return(i[0]-n[0])*(o[1]-n[1])-(i[1]-n[1])*(o[0]-n[0])}function B5(n,i){return n[0]-i[0]||n[1]-i[1]}function Sv(n){for(var i=n.length,o=[0,1],s=2,l=2;l<i;++l){for(;s>1&&L5(n[o[s-2]],n[o[s-1]],n[l])<=0;)--s;o[s++]=l}return o.slice(0,s)}function kg(n){if((o=n.length)<3)return null;var i,o,s=new Array(o),l=new Array(o);for(i=0;i<o;++i)s[i]=[+n[i][0],+n[i][1],i];for(s.sort(B5),i=0;i<o;++i)l[i]=[s[i][0],-s[i][1]];var d=Sv(s),b=Sv(l),m=b[0]===d[0],w=b[b.length-1]===d[d.length-1],E=[];for(i=d.length-1;i>=0;--i)E.push(n[s[d[i]][2]]);for(i=+m;i<b.length-w;++i)E.push(n[s[b[i]][2]]);return E}function Tg(n,i){for(var o,s,l=n.length,d=n[l-1],b=i[0],m=i[1],w=d[0],E=d[1],L=!1,j=0;j<l;++j)o=(d=n[j])[0],(s=d[1])>m!=E>m&&b<(w-o)*(m-s)/(E-s)+o&&(L=!L),w=o,E=s;return L}function Av(n){for(var i,o,s=-1,l=n.length,d=n[l-1],b=d[0],m=d[1],w=0;++s<l;)i=b,o=m,i-=b=(d=n[s])[0],o-=m=d[1],w+=Math.sqrt(i*i+o*o);return w}function ds(){return Math.random()}const _d=function n(i){function o(s,l){return s=s==null?0:+s,l=l==null?1:+l,arguments.length===1?(l=s,s=0):l-=s,function(){return i()*l+s}}return o.source=n,o}(ds),n1=function n(i){function o(s,l){var d,b;return s=s==null?0:+s,l=l==null?1:+l,function(){var m;if(d!=null)m=d,d=null;else do d=2*i()-1,m=2*i()-1,b=d*d+m*m;while(!b||b>1);return s+l*m*Math.sqrt(-2*Math.log(b)/b)}}return o.source=n,o}(ds),ml=function n(i){function o(){var s=n1.source(i).apply(this,arguments);return function(){return Math.exp(s())}}return o.source=n,o}(ds),vl=function n(i){function o(s){return function(){for(var l=0,d=0;d<s;++d)l+=i();return l}}return o.source=n,o}(ds),ps=function n(i){function o(s){var l=vl.source(i)(s);return function(){return l()/s}}return o.source=n,o}(ds),O5=function n(i){function o(s){return function(){return-Math.log(1-i())/s}}return o.source=n,o}(ds);function jo(n,i){switch(arguments.length){case 0:break;case 1:this.range(n);break;default:this.range(i).domain(n)}return this}function qs(n,i){switch(arguments.length){case 0:break;case 1:this.interpolator(n);break;default:this.interpolator(i).domain(n)}return this}var Mv=Array.prototype,xd=Mv.map,su=Mv.slice,Cg={name:"implicit"};function wd(){var n=Bs(),i=[],o=[],s=Cg;function l(d){var b=d+"",m=n.get(b);if(!m){if(s!==Cg)return s;n.set(b,m=i.push(d))}return o[(m-1)%o.length]}return l.domain=function(d){if(!arguments.length)return i.slice();i=[],n=Bs();for(var b,m,w=-1,E=d.length;++w<E;)n.has(m=(b=d[w])+"")||n.set(m,i.push(b));return l},l.range=function(d){return arguments.length?(o=su.call(d),l):o.slice()},l.unknown=function(d){return arguments.length?(s=d,l):s},l.copy=function(){return wd(i,o).unknown(s)},jo.apply(l,arguments),l}function kd(){var n,i,o=wd().unknown(void 0),s=o.domain,l=o.range,d=[0,1],b=!1,m=0,w=0,E=.5;function L(){var j=s().length,D=d[1]<d[0],q=d[D-0],W=d[1-D];n=(W-q)/Math.max(1,j-m+2*w),b&&(n=Math.floor(n)),q+=(W-q-n*(j-m))*E,i=n*(1-m),b&&(q=Math.round(q),i=Math.round(i));var U=zt(j).map(function(V){return q+n*V});return l(D?U.reverse():U)}return delete o.unknown,o.domain=function(j){return arguments.length?(s(j),L()):s()},o.range=function(j){return arguments.length?(d=[+j[0],+j[1]],L()):d.slice()},o.rangeRound=function(j){return d=[+j[0],+j[1]],b=!0,L()},o.bandwidth=function(){return i},o.step=function(){return n},o.round=function(j){return arguments.length?(b=!!j,L()):b},o.padding=function(j){return arguments.length?(m=Math.min(1,w=+j),L()):m},o.paddingInner=function(j){return arguments.length?(m=Math.min(1,j),L()):m},o.paddingOuter=function(j){return arguments.length?(w=+j,L()):w},o.align=function(j){return arguments.length?(E=Math.max(0,Math.min(1,j)),L()):E},o.copy=function(){return kd(s(),d).round(b).paddingInner(m).paddingOuter(w).align(E)},jo.apply(L(),arguments)}function Eg(n){var i=n.copy;return n.padding=n.paddingOuter,delete n.paddingInner,delete n.paddingOuter,n.copy=function(){return Eg(i())},n}function r1(){return Eg(kd.apply(null,arguments).paddingInner(1))}function Td(n){return+n}var i1=[0,1];function Ki(n){return n}function a1(n,i){return(i-=n=+n)?function(s){return(s-n)/i}:(o=isNaN(i)?NaN:.5,function(){return o});var o}function Ia(n){var i,o=n[0],s=n[n.length-1];return o>s&&(i=o,o=s,s=i),function(l){return Math.max(o,Math.min(s,l))}}function Nv(n,i,o){var s=n[0],l=n[1],d=i[0],b=i[1];return l<s?(s=a1(l,s),d=o(b,d)):(s=a1(s,l),d=o(d,b)),function(m){return d(s(m))}}function Dv(n,i,o){var s=Math.min(n.length,i.length)-1,l=new Array(s),d=new Array(s),b=-1;for(n[s]<n[0]&&(n=n.slice().reverse(),i=i.slice().reverse());++b<s;)l[b]=a1(n[b],n[b+1]),d[b]=o(i[b],i[b+1]);return function(m){var w=M(n,m,1,s)-1;return d[w](l[w](m))}}function cu(n,i){return i.domain(n.domain()).range(n.range()).interpolate(n.interpolate()).clamp(n.clamp()).unknown(n.unknown())}function o1(){var n,i,o,s,l,d,b=i1,m=i1,w=Hc,E=Ki;function L(){return s=Math.min(b.length,m.length)>2?Dv:Nv,l=d=null,j}function j(D){return isNaN(D=+D)?o:(l||(l=s(b.map(n),m,w)))(n(E(D)))}return j.invert=function(D){return E(i((d||(d=s(m,b.map(n),la)))(D)))},j.domain=function(D){return arguments.length?(b=xd.call(D,Td),E===Ki||(E=Ia(b)),L()):b.slice()},j.range=function(D){return arguments.length?(m=su.call(D),L()):m.slice()},j.rangeRound=function(D){return m=su.call(D),w=_g,L()},j.clamp=function(D){return arguments.length?(E=D?Ia(b):Ki,j):E!==Ki},j.interpolate=function(D){return arguments.length?(w=D,L()):w},j.unknown=function(D){return arguments.length?(o=D,j):o},function(D,q){return n=D,i=q,L()}}function Sg(n,i){return o1()(n,i)}function Yo(n,i,o,s){var l,d=st(n,i,o);switch((s=_h(s==null?",f":s)).type){case"s":var b=Math.max(Math.abs(n),Math.abs(i));return s.precision!=null||isNaN(l=lm(d,b))||(s.precision=l),Tp(s,b);case"":case"e":case"g":case"p":case"r":s.precision!=null||isNaN(l=hm(d,Math.max(Math.abs(n),Math.abs(i))))||(s.precision=l-(s.type==="e"));break;case"f":case"%":s.precision!=null||isNaN(l=Cp(d))||(s.precision=l-2*(s.type==="%"))}return Tf(s)}function $s(n){var i=n.domain;return n.ticks=function(o){var s=i();return lt(s[0],s[s.length-1],o==null?10:o)},n.tickFormat=function(o,s){var l=i();return Yo(l[0],l[l.length-1],o==null?10:o,s)},n.nice=function(o){o==null&&(o=10);var s,l=i(),d=0,b=l.length-1,m=l[d],w=l[b];return w<m&&(s=m,m=w,w=s,s=d,d=b,b=s),(s=et(m,w,o))>0?s=et(m=Math.floor(m/s)*s,w=Math.ceil(w/s)*s,o):s<0&&(s=et(m=Math.ceil(m*s)/s,w=Math.floor(w*s)/s,o)),s>0?(l[d]=Math.floor(m/s)*s,l[b]=Math.ceil(w/s)*s,i(l)):s<0&&(l[d]=Math.ceil(m*s)/s,l[b]=Math.floor(w*s)/s,i(l)),n},n}function Ag(){var n=Sg(Ki,Ki);return n.copy=function(){return cu(n,Ag())},jo.apply(n,arguments),$s(n)}function Mg(n){var i;function o(s){return isNaN(s=+s)?i:s}return o.invert=o,o.domain=o.range=function(s){return arguments.length?(n=xd.call(s,Td),o):n.slice()},o.unknown=function(s){return arguments.length?(i=s,o):i},o.copy=function(){return Mg(n).unknown(i)},n=arguments.length?xd.call(n,Td):[0,1],$s(o)}function Ng(n,i){var o,s=0,l=(n=n.slice()).length-1,d=n[s],b=n[l];return b<d&&(o=s,s=l,l=o,o=d,d=b,b=o),n[s]=i.floor(d),n[l]=i.ceil(b),n}function Cd(n){return Math.log(n)}function Ed(n){return Math.exp(n)}function I5(n){return-Math.log(-n)}function Lv(n){return-Math.exp(-n)}function R5(n){return isFinite(n)?+("1e"+n):n<0?0:n}function Bv(n){return function(i){return-n(-i)}}function Dg(n){var i,o,s=n(Cd,Ed),l=s.domain,d=10;function b(){return i=function(m){return m===Math.E?Math.log:m===10&&Math.log10||m===2&&Math.log2||(m=Math.log(m),function(w){return Math.log(w)/m})}(d),o=function(m){return m===10?R5:m===Math.E?Math.exp:function(w){return Math.pow(m,w)}}(d),l()[0]<0?(i=Bv(i),o=Bv(o),n(I5,Lv)):n(Cd,Ed),s}return s.base=function(m){return arguments.length?(d=+m,b()):d},s.domain=function(m){return arguments.length?(l(m),b()):l()},s.ticks=function(m){var w,E=l(),L=E[0],j=E[E.length-1];(w=j<L)&&(U=L,L=j,j=U);var D,q,W,U=i(L),V=i(j),Z=m==null?10:+m,it=[];if(!(d%1)&&V-U<Z){if(U=Math.round(U)-1,V=Math.round(V)+1,L>0){for(;U<V;++U)for(q=1,D=o(U);q<d;++q)if(!((W=D*q)<L)){if(W>j)break;it.push(W)}}else for(;U<V;++U)for(q=d-1,D=o(U);q>=1;--q)if(!((W=D*q)<L)){if(W>j)break;it.push(W)}}else it=lt(U,V,Math.min(V-U,Z)).map(o);return w?it.reverse():it},s.tickFormat=function(m,w){if(w==null&&(w=d===10?".0e":","),typeof w!="function"&&(w=Tf(w)),m===1/0)return w;m==null&&(m=10);var E=Math.max(1,d*m/s.ticks().length);return function(L){var j=L/o(Math.round(i(L)));return j*d<d-.5&&(j*=d),j<=E?w(L):""}},s.nice=function(){return l(Ng(l(),{floor:function(m){return o(Math.floor(i(m)))},ceil:function(m){return o(Math.ceil(i(m)))}}))},s}function Ov(){var n=Dg(o1()).domain([1,10]);return n.copy=function(){return cu(n,Ov()).base(n.base())},jo.apply(n,arguments),n}function Iv(n){return function(i){return Math.sign(i)*Math.log1p(Math.abs(i/n))}}function Rv(n){return function(i){return Math.sign(i)*Math.expm1(Math.abs(i))*n}}function Lg(n){var i=1,o=n(Iv(i),Rv(i));return o.constant=function(s){return arguments.length?n(Iv(i=+s),Rv(i)):i},$s(o)}function Fv(){var n=Lg(o1());return n.copy=function(){return cu(n,Fv()).constant(n.constant())},jo.apply(n,arguments)}function Pv(n){return function(i){return i<0?-Math.pow(-i,n):Math.pow(i,n)}}function F5(n){return n<0?-Math.sqrt(-n):Math.sqrt(n)}function P5(n){return n<0?-n*n:n*n}function Bg(n){var i=n(Ki,Ki),o=1;function s(){return o===1?n(Ki,Ki):o===.5?n(F5,P5):n(Pv(o),Pv(1/o))}return i.exponent=function(l){return arguments.length?(o=+l,s()):o},$s(i)}function Og(){var n=Bg(o1());return n.copy=function(){return cu(n,Og()).exponent(n.exponent())},jo.apply(n,arguments),n}function j5(){return Og.apply(null,arguments).exponent(.5)}function jv(){var n,i=[],o=[],s=[];function l(){var b=0,m=Math.max(1,o.length);for(s=new Array(m-1);++b<m;)s[b-1]=z(i,b/m);return d}function d(b){return isNaN(b=+b)?n:o[M(s,b)]}return d.invertExtent=function(b){var m=o.indexOf(b);return m<0?[NaN,NaN]:[m>0?s[m-1]:i[0],m<s.length?s[m]:i[i.length-1]]},d.domain=function(b){if(!arguments.length)return i.slice();i=[];for(var m,w=0,E=b.length;w<E;++w)(m=b[w])==null||isNaN(m=+m)||i.push(m);return i.sort(f),l()},d.range=function(b){return arguments.length?(o=su.call(b),l()):o.slice()},d.unknown=function(b){return arguments.length?(n=b,d):n},d.quantiles=function(){return s.slice()},d.copy=function(){return jv().domain(i).range(o).unknown(n)},jo.apply(d,arguments)}function Yv(){var n,i=0,o=1,s=1,l=[.5],d=[0,1];function b(w){return w<=w?d[M(l,w,0,s)]:n}function m(){var w=-1;for(l=new Array(s);++w<s;)l[w]=((w+1)*o-(w-s)*i)/(s+1);return b}return b.domain=function(w){return arguments.length?(i=+w[0],o=+w[1],m()):[i,o]},b.range=function(w){return arguments.length?(s=(d=su.call(w)).length-1,m()):d.slice()},b.invertExtent=function(w){var E=d.indexOf(w);return E<0?[NaN,NaN]:E<1?[i,l[0]]:E>=s?[l[s-1],o]:[l[E-1],l[E]]},b.unknown=function(w){return arguments.length&&(n=w),b},b.thresholds=function(){return l.slice()},b.copy=function(){return Yv().domain([i,o]).range(d).unknown(n)},jo.apply($s(b),arguments)}function zv(){var n,i=[.5],o=[0,1],s=1;function l(d){return d<=d?o[M(i,d,0,s)]:n}return l.domain=function(d){return arguments.length?(i=su.call(d),s=Math.min(i.length,o.length-1),l):i.slice()},l.range=function(d){return arguments.length?(o=su.call(d),s=Math.min(i.length,o.length-1),l):o.slice()},l.invertExtent=function(d){var b=o.indexOf(d);return[i[b-1],i[b]]},l.unknown=function(d){return arguments.length?(n=d,l):n},l.copy=function(){return zv().domain(i).range(o).unknown(n)},jo.apply(l,arguments)}var Sd=new Date,Ig=new Date;function Li(n,i,o,s){function l(d){return n(d=arguments.length===0?new Date:new Date(+d)),d}return l.floor=function(d){return n(d=new Date(+d)),d},l.ceil=function(d){return n(d=new Date(d-1)),i(d,1),n(d),d},l.round=function(d){var b=l(d),m=l.ceil(d);return d-b<m-d?b:m},l.offset=function(d,b){return i(d=new Date(+d),b==null?1:Math.floor(b)),d},l.range=function(d,b,m){var w,E=[];if(d=l.ceil(d),m=m==null?1:Math.floor(m),!(d<b&&m>0))return E;do E.push(w=new Date(+d)),i(d,m),n(d);while(w<d&&d<b);return E},l.filter=function(d){return Li(function(b){if(b>=b)for(;n(b),!d(b);)b.setTime(b-1)},function(b,m){if(b>=b)if(m<0)for(;++m<=0;)for(;i(b,-1),!d(b););else for(;--m>=0;)for(;i(b,1),!d(b););})},o&&(l.count=function(d,b){return Sd.setTime(+d),Ig.setTime(+b),n(Sd),n(Ig),Math.floor(o(Sd,Ig))},l.every=function(d){return d=Math.floor(d),isFinite(d)&&d>0?d>1?l.filter(s?function(b){return s(b)%d==0}:function(b){return l.count(0,b)%d==0}):l:null}),l}var Rg=Li(function(n){n.setMonth(0,1),n.setHours(0,0,0,0)},function(n,i){n.setFullYear(n.getFullYear()+i)},function(n,i){return i.getFullYear()-n.getFullYear()},function(n){return n.getFullYear()});Rg.every=function(n){return isFinite(n=Math.floor(n))&&n>0?Li(function(i){i.setFullYear(Math.floor(i.getFullYear()/n)*n),i.setMonth(0,1),i.setHours(0,0,0,0)},function(i,o){i.setFullYear(i.getFullYear()+o*n)}):null};const uu=Rg;var Y5=Rg.range,gs=Li(function(n){n.setDate(1),n.setHours(0,0,0,0)},function(n,i){n.setMonth(n.getMonth()+i)},function(n,i){return i.getMonth()-n.getMonth()+12*(i.getFullYear()-n.getFullYear())},function(n){return n.getMonth()});const Fg=gs;var Hs=gs.range,Ad=1e3,lu=6e4,s1=36e5,Pg=864e5,jg=6048e5;function hu(n){return Li(function(i){i.setDate(i.getDate()-(i.getDay()+7-n)%7),i.setHours(0,0,0,0)},function(i,o){i.setDate(i.getDate()+7*o)},function(i,o){return(o-i-(o.getTimezoneOffset()-i.getTimezoneOffset())*lu)/jg})}var fu=hu(0),bl=hu(1),Md=hu(2),Uv=hu(3),Ws=hu(4),_l=hu(5),Vs=hu(6),Yg=fu.range,Nd=bl.range,zg=Md.range,z5=Uv.range,Dd=Ws.range,xl=_l.range,qv=Vs.range,io=Li(function(n){n.setHours(0,0,0,0)},function(n,i){n.setDate(n.getDate()+i)},function(n,i){return(i-n-(i.getTimezoneOffset()-n.getTimezoneOffset())*lu)/Pg},function(n){return n.getDate()-1});const oi=io;var wl=io.range,Ld=Li(function(n){n.setTime(n-n.getMilliseconds()-n.getSeconds()*Ad-n.getMinutes()*lu)},function(n,i){n.setTime(+n+i*s1)},function(n,i){return(i-n)/s1},function(n){return n.getHours()});const $v=Ld;var zo=Ld.range,Mc=Li(function(n){n.setTime(n-n.getMilliseconds()-n.getSeconds()*Ad)},function(n,i){n.setTime(+n+i*lu)},function(n,i){return(i-n)/lu},function(n){return n.getMinutes()});const c1=Mc;var Bd=Mc.range,Od=Li(function(n){n.setTime(n-n.getMilliseconds())},function(n,i){n.setTime(+n+i*Ad)},function(n,i){return(i-n)/Ad},function(n){return n.getUTCSeconds()});const kl=Od;var Hv=Od.range,Id=Li(function(){},function(n,i){n.setTime(+n+i)},function(n,i){return i-n});Id.every=function(n){return n=Math.floor(n),isFinite(n)&&n>0?n>1?Li(function(i){i.setTime(Math.floor(i/n)*n)},function(i,o){i.setTime(+i+o*n)},function(i,o){return(o-i)/n}):Id:null};const Tl=Id;var Wv=Id.range;function du(n){return Li(function(i){i.setUTCDate(i.getUTCDate()-(i.getUTCDay()+7-n)%7),i.setUTCHours(0,0,0,0)},function(i,o){i.setUTCDate(i.getUTCDate()+7*o)},function(i,o){return(o-i)/jg})}var u1=du(0),Nc=du(1),Ug=du(2),Vv=du(3),Dc=du(4),qg=du(5),pu=du(6),Gv=u1.range,$g=Nc.range,Xv=Ug.range,Zv=Vv.range,Qv=Dc.range,Gs=qg.range,Rd=pu.range,Kv=Li(function(n){n.setUTCHours(0,0,0,0)},function(n,i){n.setUTCDate(n.getUTCDate()+i)},function(n,i){return(i-n)/Pg},function(n){return n.getUTCDate()-1});const l1=Kv;var Ji=Kv.range,Jn=Li(function(n){n.setUTCMonth(0,1),n.setUTCHours(0,0,0,0)},function(n,i){n.setUTCFullYear(n.getUTCFullYear()+i)},function(n,i){return i.getUTCFullYear()-n.getUTCFullYear()},function(n){return n.getUTCFullYear()});Jn.every=function(n){return isFinite(n=Math.floor(n))&&n>0?Li(function(i){i.setUTCFullYear(Math.floor(i.getUTCFullYear()/n)*n),i.setUTCMonth(0,1),i.setUTCHours(0,0,0,0)},function(i,o){i.setUTCFullYear(i.getUTCFullYear()+o*n)}):null};const ys=Jn;var U5=Jn.range;function Hg(n){if(0<=n.y&&n.y<100){var i=new Date(-1,n.m,n.d,n.H,n.M,n.S,n.L);return i.setFullYear(n.y),i}return new Date(n.y,n.m,n.d,n.H,n.M,n.S,n.L)}function Gn(n){if(0<=n.y&&n.y<100){var i=new Date(Date.UTC(-1,n.m,n.d,n.H,n.M,n.S,n.L));return i.setUTCFullYear(n.y),i}return new Date(Date.UTC(n.y,n.m,n.d,n.H,n.M,n.S,n.L))}function go(n,i,o){return{y:n,m:i,d:o,H:0,M:0,S:0,L:0}}function h1(n){var i=n.dateTime,o=n.date,s=n.time,l=n.periods,d=n.days,b=n.shortDays,m=n.months,w=n.shortMonths,E=Re(l),L=Xs(l),j=Re(d),D=Xs(d),q=Re(b),W=Xs(b),U=Re(m),V=Xs(m),Z=Re(w),it=Xs(w),rt={a:function(Yt){return b[Yt.getDay()]},A:function(Yt){return d[Yt.getDay()]},b:function(Yt){return w[Yt.getMonth()]},B:function(Yt){return m[Yt.getMonth()]},c:null,d:Zs,e:Zs,f:Q5,g:Yd,G:r_,H:Qg,I:Kg,j:Jg,L:vu,m:K5,M:J5,p:function(Yt){return l[+(Yt.getHours()>=12)]},q:function(Yt){return 1+~~(Yt.getMonth()/3)},Q:Sl,s:Oi,S:t_,u:i3,U:yo,V:a3,w:e2,W:jd,x:null,X:null,y:e_,Y:n_,Z:o3,"%":a2},dt={a:function(Yt){return b[Yt.getUTCDay()]},A:function(Yt){return d[Yt.getUTCDay()]},b:function(Yt){return w[Yt.getUTCMonth()]},B:function(Yt){return m[Yt.getUTCMonth()]},c:null,d:n2,e:n2,f:s3,g:qd,G:tr,H:zd,I:ms,j:El,L:Qs,m:c3,M:u3,p:function(Yt){return l[+(Yt.getUTCHours()>=12)]},q:function(Yt){return 1+~~(Yt.getUTCMonth()/3)},Q:Sl,s:Oi,S:Hi,u:i_,U:a_,V:Ud,w:r2,W:h3,x:null,X:null,y:Ra,Y:f3,Z:i2,"%":a2},Pt={a:function(Yt,ce,ht){var Ct=q.exec(ce.slice(ht));return Ct?(Yt.w=W[Ct[0].toLowerCase()],ht+Ct[0].length):-1},A:function(Yt,ce,ht){var Ct=j.exec(ce.slice(ht));return Ct?(Yt.w=D[Ct[0].toLowerCase()],ht+Ct[0].length):-1},b:function(Yt,ce,ht){var Ct=Z.exec(ce.slice(ht));return Ct?(Yt.m=it[Ct[0].toLowerCase()],ht+Ct[0].length):-1},B:function(Yt,ce,ht){var Ct=U.exec(ce.slice(ht));return Ct?(Yt.m=V[Ct[0].toLowerCase()],ht+Ct[0].length):-1},c:function(Yt,ce,ht){return ke(Yt,i,ce,ht)},d:n3,e:n3,f:G5,g:e3,G:Pd,H:r3,I:r3,j:Gg,L:V5,m:H5,M:W5,p:function(Yt,ce,ht){var Ct=E.exec(ce.slice(ht));return Ct?(Yt.p=L[Ct[0].toLowerCase()],ht+Ct[0].length):-1},q:Vg,Q:X5,s:Z5,S:Xg,u:t3,U:vr,V:Hn,w:hn,W:xa,x:function(Yt,ce,ht){return ke(Yt,o,ce,ht)},X:function(Yt,ce,ht){return ke(Yt,s,ce,ht)},y:e3,Y:Pd,Z:$5,"%":Zg};function Vt(Yt,ce){return function(ht){var Ct,ne,Qt,ie=[],Fe=-1,Ke=0,Tn=Yt.length;for(ht instanceof Date||(ht=new Date(+ht));++Fe<Tn;)Yt.charCodeAt(Fe)===37&&(ie.push(Yt.slice(Ke,Fe)),(ne=Wg[Ct=Yt.charAt(++Fe)])!=null?Ct=Yt.charAt(++Fe):ne=Ct==="e"?" ":"0",(Qt=ce[Ct])&&(Ct=Qt(ht,ne)),ie.push(Ct),Ke=Fe+1);return ie.push(Yt.slice(Ke,Fe)),ie.join("")}}function Jt(Yt,ce){return function(ht){var Ct,ne,Qt=go(1900,void 0,1);if(ke(Qt,Yt,ht+="",0)!=ht.length)return null;if("Q"in Qt)return new Date(Qt.Q);if("s"in Qt)return new Date(1e3*Qt.s+("L"in Qt?Qt.L:0));if(ce&&!("Z"in Qt)&&(Qt.Z=0),"p"in Qt&&(Qt.H=Qt.H%12+12*Qt.p),Qt.m===void 0&&(Qt.m="q"in Qt?Qt.q:0),"V"in Qt){if(Qt.V<1||Qt.V>53)return null;"w"in Qt||(Qt.w=1),"Z"in Qt?(ne=(Ct=Gn(go(Qt.y,0,1))).getUTCDay(),Ct=ne>4||ne===0?Nc.ceil(Ct):Nc(Ct),Ct=l1.offset(Ct,7*(Qt.V-1)),Qt.y=Ct.getUTCFullYear(),Qt.m=Ct.getUTCMonth(),Qt.d=Ct.getUTCDate()+(Qt.w+6)%7):(ne=(Ct=Hg(go(Qt.y,0,1))).getDay(),Ct=ne>4||ne===0?bl.ceil(Ct):bl(Ct),Ct=oi.offset(Ct,7*(Qt.V-1)),Qt.y=Ct.getFullYear(),Qt.m=Ct.getMonth(),Qt.d=Ct.getDate()+(Qt.w+6)%7)}else("W"in Qt||"U"in Qt)&&("w"in Qt||(Qt.w="u"in Qt?Qt.u%7:"W"in Qt?1:0),ne="Z"in Qt?Gn(go(Qt.y,0,1)).getUTCDay():Hg(go(Qt.y,0,1)).getDay(),Qt.m=0,Qt.d="W"in Qt?(Qt.w+6)%7+7*Qt.W-(ne+5)%7:Qt.w+7*Qt.U-(ne+6)%7);return"Z"in Qt?(Qt.H+=Qt.Z/100|0,Qt.M+=Qt.Z%100,Gn(Qt)):Hg(Qt)}}function ke(Yt,ce,ht,Ct){for(var ne,Qt,ie=0,Fe=ce.length,Ke=ht.length;ie<Fe;){if(Ct>=Ke)return-1;if((ne=ce.charCodeAt(ie++))===37){if(ne=ce.charAt(ie++),!(Qt=Pt[ne in Wg?ce.charAt(ie++):ne])||(Ct=Qt(Yt,ht,Ct))<0)return-1}else if(ne!=ht.charCodeAt(Ct++))return-1}return Ct}return rt.x=Vt(o,rt),rt.X=Vt(s,rt),rt.c=Vt(i,rt),dt.x=Vt(o,dt),dt.X=Vt(s,dt),dt.c=Vt(i,dt),{format:function(Yt){var ce=Vt(Yt+="",rt);return ce.toString=function(){return Yt},ce},parse:function(Yt){var ce=Jt(Yt+="",!1);return ce.toString=function(){return Yt},ce},utcFormat:function(Yt){var ce=Vt(Yt+="",dt);return ce.toString=function(){return Yt},ce},utcParse:function(Yt){var ce=Jt(Yt+="",!0);return ce.toString=function(){return Yt},ce}}}var gu,yu,f1,mu,Cl,Wg={"-":"",_:" ",0:"0"},Bi=/^\s*\d+/,Fd=/^%/,q5=/[\\^$*+?|[\]().{}]/g;function ir(n,i,o){var s=n<0?"-":"",l=(s?-n:n)+"",d=l.length;return s+(d<o?new Array(o-d+1).join(i)+l:l)}function Jv(n){return n.replace(q5,"\\$&")}function Re(n){return new RegExp("^(?:"+n.map(Jv).join("|")+")","i")}function Xs(n){for(var i={},o=-1,s=n.length;++o<s;)i[n[o].toLowerCase()]=o;return i}function hn(n,i,o){var s=Bi.exec(i.slice(o,o+1));return s?(n.w=+s[0],o+s[0].length):-1}function t3(n,i,o){var s=Bi.exec(i.slice(o,o+1));return s?(n.u=+s[0],o+s[0].length):-1}function vr(n,i,o){var s=Bi.exec(i.slice(o,o+2));return s?(n.U=+s[0],o+s[0].length):-1}function Hn(n,i,o){var s=Bi.exec(i.slice(o,o+2));return s?(n.V=+s[0],o+s[0].length):-1}function xa(n,i,o){var s=Bi.exec(i.slice(o,o+2));return s?(n.W=+s[0],o+s[0].length):-1}function Pd(n,i,o){var s=Bi.exec(i.slice(o,o+4));return s?(n.y=+s[0],o+s[0].length):-1}function e3(n,i,o){var s=Bi.exec(i.slice(o,o+2));return s?(n.y=+s[0]+(+s[0]>68?1900:2e3),o+s[0].length):-1}function $5(n,i,o){var s=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(i.slice(o,o+6));return s?(n.Z=s[1]?0:-(s[2]+(s[3]||"00")),o+s[0].length):-1}function Vg(n,i,o){var s=Bi.exec(i.slice(o,o+1));return s?(n.q=3*s[0]-3,o+s[0].length):-1}function H5(n,i,o){var s=Bi.exec(i.slice(o,o+2));return s?(n.m=s[0]-1,o+s[0].length):-1}function n3(n,i,o){var s=Bi.exec(i.slice(o,o+2));return s?(n.d=+s[0],o+s[0].length):-1}function Gg(n,i,o){var s=Bi.exec(i.slice(o,o+3));return s?(n.m=0,n.d=+s[0],o+s[0].length):-1}function r3(n,i,o){var s=Bi.exec(i.slice(o,o+2));return s?(n.H=+s[0],o+s[0].length):-1}function W5(n,i,o){var s=Bi.exec(i.slice(o,o+2));return s?(n.M=+s[0],o+s[0].length):-1}function Xg(n,i,o){var s=Bi.exec(i.slice(o,o+2));return s?(n.S=+s[0],o+s[0].length):-1}function V5(n,i,o){var s=Bi.exec(i.slice(o,o+3));return s?(n.L=+s[0],o+s[0].length):-1}function G5(n,i,o){var s=Bi.exec(i.slice(o,o+6));return s?(n.L=Math.floor(s[0]/1e3),o+s[0].length):-1}function Zg(n,i,o){var s=Fd.exec(i.slice(o,o+1));return s?o+s[0].length:-1}function X5(n,i,o){var s=Bi.exec(i.slice(o));return s?(n.Q=+s[0],o+s[0].length):-1}function Z5(n,i,o){var s=Bi.exec(i.slice(o));return s?(n.s=+s[0],o+s[0].length):-1}function Zs(n,i){return ir(n.getDate(),i,2)}function Qg(n,i){return ir(n.getHours(),i,2)}function Kg(n,i){return ir(n.getHours()%12||12,i,2)}function Jg(n,i){return ir(1+oi.count(uu(n),n),i,3)}function vu(n,i){return ir(n.getMilliseconds(),i,3)}function Q5(n,i){return vu(n,i)+"000"}function K5(n,i){return ir(n.getMonth()+1,i,2)}function J5(n,i){return ir(n.getMinutes(),i,2)}function t_(n,i){return ir(n.getSeconds(),i,2)}function i3(n){var i=n.getDay();return i===0?7:i}function yo(n,i){return ir(fu.count(uu(n)-1,n),i,2)}function t2(n){var i=n.getDay();return i>=4||i===0?Ws(n):Ws.ceil(n)}function a3(n,i){return n=t2(n),ir(Ws.count(uu(n),n)+(uu(n).getDay()===4),i,2)}function e2(n){return n.getDay()}function jd(n,i){return ir(bl.count(uu(n)-1,n),i,2)}function e_(n,i){return ir(n.getFullYear()%100,i,2)}function Yd(n,i){return ir((n=t2(n)).getFullYear()%100,i,2)}function n_(n,i){return ir(n.getFullYear()%1e4,i,4)}function r_(n,i){var o=n.getDay();return ir((n=o>=4||o===0?Ws(n):Ws.ceil(n)).getFullYear()%1e4,i,4)}function o3(n){var i=n.getTimezoneOffset();return(i>0?"-":(i*=-1,"+"))+ir(i/60|0,"0",2)+ir(i%60,"0",2)}function n2(n,i){return ir(n.getUTCDate(),i,2)}function zd(n,i){return ir(n.getUTCHours(),i,2)}function ms(n,i){return ir(n.getUTCHours()%12||12,i,2)}function El(n,i){return ir(1+l1.count(ys(n),n),i,3)}function Qs(n,i){return ir(n.getUTCMilliseconds(),i,3)}function s3(n,i){return Qs(n,i)+"000"}function c3(n,i){return ir(n.getUTCMonth()+1,i,2)}function u3(n,i){return ir(n.getUTCMinutes(),i,2)}function Hi(n,i){return ir(n.getUTCSeconds(),i,2)}function i_(n){var i=n.getUTCDay();return i===0?7:i}function a_(n,i){return ir(u1.count(ys(n)-1,n),i,2)}function l3(n){var i=n.getUTCDay();return i>=4||i===0?Dc(n):Dc.ceil(n)}function Ud(n,i){return n=l3(n),ir(Dc.count(ys(n),n)+(ys(n).getUTCDay()===4),i,2)}function r2(n){return n.getUTCDay()}function h3(n,i){return ir(Nc.count(ys(n)-1,n),i,2)}function Ra(n,i){return ir(n.getUTCFullYear()%100,i,2)}function qd(n,i){return ir((n=l3(n)).getUTCFullYear()%100,i,2)}function f3(n,i){return ir(n.getUTCFullYear()%1e4,i,4)}function tr(n,i){var o=n.getUTCDay();return ir((n=o>=4||o===0?Dc(n):Dc.ceil(n)).getUTCFullYear()%1e4,i,4)}function i2(){return"+0000"}function a2(){return"%"}function Sl(n){return+n}function Oi(n){return Math.floor(+n/1e3)}function Al(n){return gu=h1(n),yu=gu.format,f1=gu.parse,mu=gu.utcFormat,Cl=gu.utcParse,gu}Al({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"]});var Ml=31536e6;function $d(n){return new Date(n)}function d3(n){return n instanceof Date?+n:+new Date(+n)}function $t(n,i,o,s,l,d,b,m,w){var E=Sg(Ki,Ki),L=E.invert,j=E.domain,D=w(".%L"),q=w(":%S"),W=w("%I:%M"),U=w("%I %p"),V=w("%a %d"),Z=w("%b %d"),it=w("%B"),rt=w("%Y"),dt=[[b,1,1e3],[b,5,5e3],[b,15,15e3],[b,30,3e4],[d,1,6e4],[d,5,3e5],[d,15,9e5],[d,30,18e5],[l,1,36e5],[l,3,108e5],[l,6,216e5],[l,12,432e5],[s,1,864e5],[s,2,1728e5],[o,1,6048e5],[i,1,2592e6],[i,3,7776e6],[n,1,Ml]];function Pt(Jt){return(b(Jt)<Jt?D:d(Jt)<Jt?q:l(Jt)<Jt?W:s(Jt)<Jt?U:i(Jt)<Jt?o(Jt)<Jt?V:Z:n(Jt)<Jt?it:rt)(Jt)}function Vt(Jt,ke,Yt,ce){if(Jt==null&&(Jt=10),typeof Jt=="number"){var ht=Math.abs(Yt-ke)/Jt,Ct=k(function(ne){return ne[2]}).right(dt,ht);Ct===dt.length?(ce=st(ke/Ml,Yt/Ml,Jt),Jt=n):Ct?(ce=(Ct=dt[ht/dt[Ct-1][2]<dt[Ct][2]/ht?Ct-1:Ct])[1],Jt=Ct[0]):(ce=Math.max(st(ke,Yt,Jt),1),Jt=m)}return ce==null?Jt:Jt.every(ce)}return E.invert=function(Jt){return new Date(L(Jt))},E.domain=function(Jt){return arguments.length?j(xd.call(Jt,d3)):j().map($d)},E.ticks=function(Jt,ke){var Yt,ce=j(),ht=ce[0],Ct=ce[ce.length-1],ne=Ct<ht;return ne&&(Yt=ht,ht=Ct,Ct=Yt),Yt=(Yt=Vt(Jt,ht,Ct,ke))?Yt.range(ht,Ct+1):[],ne?Yt.reverse():Yt},E.tickFormat=function(Jt,ke){return ke==null?Pt:w(ke)},E.nice=function(Jt,ke){var Yt=j();return(Jt=Vt(Jt,Yt[0],Yt[Yt.length-1],ke))?j(Ng(Yt,Jt)):E},E.copy=function(){return cu(E,$t(n,i,o,s,l,d,b,m,w))},E}function o_(){return jo.apply($t(uu,Fg,fu,oi,$v,c1,kl,Tl,yu).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}var o2=Li(function(n){n.setUTCDate(1),n.setUTCHours(0,0,0,0)},function(n,i){n.setUTCMonth(n.getUTCMonth()+i)},function(n,i){return i.getUTCMonth()-n.getUTCMonth()+12*(i.getUTCFullYear()-n.getUTCFullYear())},function(n){return n.getUTCMonth()});const d1=o2;var s2=o2.range,Hd=Li(function(n){n.setUTCMinutes(0,0,0)},function(n,i){n.setTime(+n+i*s1)},function(n,i){return(i-n)/s1},function(n){return n.getUTCHours()});const c2=Hd;var vs=Hd.range,mo=Li(function(n){n.setUTCSeconds(0,0)},function(n,i){n.setTime(+n+i*lu)},function(n,i){return(i-n)/lu},function(n){return n.getUTCMinutes()});const Uo=mo;var bs=mo.range;function _s(){return jo.apply($t(ys,d1,u1,l1,c2,Uo,kl,Tl,mu).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function Nl(){var n,i,o,s,l,d=0,b=1,m=Ki,w=!1;function E(L){return isNaN(L=+L)?l:m(o===0?.5:(L=(s(L)-n)*o,w?Math.max(0,Math.min(1,L)):L))}return E.domain=function(L){return arguments.length?(n=s(d=+L[0]),i=s(b=+L[1]),o=n===i?0:1/(i-n),E):[d,b]},E.clamp=function(L){return arguments.length?(w=!!L,E):w},E.interpolator=function(L){return arguments.length?(m=L,E):m},E.unknown=function(L){return arguments.length?(l=L,E):l},function(L){return s=L,n=L(d),i=L(b),o=n===i?0:1/(i-n),E}}function xs(n,i){return i.domain(n.domain()).interpolator(n.interpolator()).clamp(n.clamp()).unknown(n.unknown())}function Wd(){var n=$s(Nl()(Ki));return n.copy=function(){return xs(n,Wd())},qs.apply(n,arguments)}function Ci(){var n=Dg(Nl()).domain([1,10]);return n.copy=function(){return xs(n,Ci()).base(n.base())},qs.apply(n,arguments)}function u2(){var n=Lg(Nl());return n.copy=function(){return xs(n,u2()).constant(n.constant())},qs.apply(n,arguments)}function Dl(){var n=Bg(Nl());return n.copy=function(){return xs(n,Dl()).exponent(n.exponent())},qs.apply(n,arguments)}function p1(){return Dl.apply(null,arguments).exponent(.5)}function Ll(){var n=[],i=Ki;function o(s){if(!isNaN(s=+s))return i((M(n,s)-1)/(n.length-1))}return o.domain=function(s){if(!arguments.length)return n.slice();n=[];for(var l,d=0,b=s.length;d<b;++d)(l=s[d])==null||isNaN(l=+l)||n.push(l);return n.sort(f),o},o.interpolator=function(s){return arguments.length?(i=s,o):i},o.copy=function(){return Ll(i).domain(n)},qs.apply(o,arguments)}function Bl(){var n,i,o,s,l,d,b,m=0,w=.5,E=1,L=Ki,j=!1;function D(q){return isNaN(q=+q)?b:(q=.5+((q=+d(q))-i)*(q<i?s:l),L(j?Math.max(0,Math.min(1,q)):q))}return D.domain=function(q){return arguments.length?(n=d(m=+q[0]),i=d(w=+q[1]),o=d(E=+q[2]),s=n===i?0:.5/(i-n),l=i===o?0:.5/(o-i),D):[m,w,E]},D.clamp=function(q){return arguments.length?(j=!!q,D):j},D.interpolator=function(q){return arguments.length?(L=q,D):L},D.unknown=function(q){return arguments.length?(b=q,D):b},function(q){return d=q,n=q(m),i=q(w),o=q(E),s=n===i?0:.5/(i-n),l=i===o?0:.5/(o-i),D}}function g1(){var n=$s(Bl()(Ki));return n.copy=function(){return xs(n,g1())},qs.apply(n,arguments)}function l2(){var n=Dg(Bl()).domain([.1,1,10]);return n.copy=function(){return xs(n,l2()).base(n.base())},qs.apply(n,arguments)}function Vd(){var n=Lg(Bl());return n.copy=function(){return xs(n,Vd()).constant(n.constant())},qs.apply(n,arguments)}function h2(){var n=Bg(Bl());return n.copy=function(){return xs(n,h2()).exponent(n.exponent())},qs.apply(n,arguments)}function y1(){return h2.apply(null,arguments).exponent(.5)}function er(n){for(var i=n.length/6|0,o=new Array(i),s=0;s<i;)o[s]="#"+n.slice(6*s,6*++s);return o}const p3=er("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf"),ws=er("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666"),s_=er("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666"),m1=er("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928"),c_=er("fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2"),Ii=er("b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc"),Lc=er("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999"),u_=er("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3"),g3=er("8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f"),f2=er("4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab");function Vr(n){return Iu(n[n.length-1])}var y3=new Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e","8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(er);const l_=Vr(y3);var d2=new Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837","40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map(er);const Ol=Vr(d2);var Gd=new Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419","8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map(er);const h_=Vr(Gd);var Fa=new Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map(er);const p2=Vr(Fa);var v1=new Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(er);const Xd=Vr(v1);var g2=new Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040","ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map(er);const f_=Vr(g2);var m3=new Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4","d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map(er);const d_=Vr(m3);var Zd=new Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850","d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(er);const Pa=Vr(Zd);var aa=new Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd","9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(er);const Ei=Vr(aa);var ks=new Array(3).concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map(er);const br=Vr(ks);var vo=new Array(3).concat("e0ecf49ebcda8856a7","edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map(er);const v3=Vr(vo);var b1=new Array(3).concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map(er);const p_=Vr(b1);var b3=new Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map(er);const Qd=Vr(b3);var y2=new Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map(er);const g_=Vr(y2);var _3=new Array(3).concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map(er);const y_=Vr(_3);var x3=new Array(3).concat("e7e1efc994c7dd1c77","f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map(er);const m_=Vr(x3);var w3=new Array(3).concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map(er);const k3=Vr(w3);var T3=new Array(3).concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map(er);const _1=Vr(T3);var Il=new Array(3).concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837","ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map(er);const Ks=Vr(Il);var Bc=new Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map(er);const Kd=Vr(Bc);var m2=new Array(3).concat("ffeda0feb24cf03b20","ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map(er);const C3=Vr(m2);var bu=new Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(er);const E3=Vr(bu);var S3=new Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(er);const A3=Vr(S3);var x1=new Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525","f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(er);const ta=Vr(x1);var M3=new Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(er);const Jd=Vr(M3);var N3=new Array(3).concat("fee0d2fc9272de2d26","fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(er);const D3=Vr(N3);var L3=new Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(er);const v2=Vr(L3);function B3(n){return n=Math.max(0,Math.min(1,n)),"rgb("+Math.max(0,Math.min(255,Math.round(-4.54-n*(35.34-n*(2381.73-n*(6402.7-n*(7024.72-2710.57*n)))))))+", "+Math.max(0,Math.min(255,Math.round(32.49+n*(170.73+n*(52.82-n*(131.46-n*(176.58-67.37*n)))))))+", "+Math.max(0,Math.min(255,Math.round(81.24+n*(442.36-n*(2482.43-n*(6167.24-n*(6614.94-2475.67*n)))))))+")"}const O3=e1(da(300,.5,0),da(-240,.5,1));var w1=e1(da(-100,.75,.35),da(80,1.5,.8)),b2=e1(da(260,.75,.35),da(80,1.5,.8)),k1=da();function ja(n){(n<0||n>1)&&(n-=Math.floor(n));var i=Math.abs(n-.5);return k1.h=360*n-100,k1.s=1.5-1.5*i,k1.l=.8-.9*i,k1+""}var t0=Ui(),I3=Math.PI/3,Js=2*Math.PI/3;function Oc(n){var i;return n=(.5-n)*Math.PI,t0.r=255*(i=Math.sin(n))*i,t0.g=255*(i=Math.sin(n+I3))*i,t0.b=255*(i=Math.sin(n+Js))*i,t0+""}function Gr(n){return n=Math.max(0,Math.min(1,n)),"rgb("+Math.max(0,Math.min(255,Math.round(34.61+n*(1172.33-n*(10793.56-n*(33300.12-n*(38394.49-14825.05*n)))))))+", "+Math.max(0,Math.min(255,Math.round(23.31+n*(557.33+n*(1225.33-n*(3574.96-n*(1073.77+707.56*n)))))))+", "+Math.max(0,Math.min(255,Math.round(27.2+n*(3211.1-n*(15327.97-n*(27814-n*(22569.18-6838.66*n)))))))+")"}function T1(n){var i=n.length;return function(o){return n[Math.max(0,Math.min(i-1,Math.floor(o*i)))]}}const R3=T1(er("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725"));var F3=T1(er("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf")),v_=T1(er("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4")),_2=T1(er("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"));function x2(n){return $r(Er(n).call(document.documentElement))}var tc=0;function C1(){return new w2}function w2(){this._="@"+(++tc).toString(36)}function P3(n){return typeof n=="string"?new zn([document.querySelectorAll(n)],[document.documentElement]):new zn([n==null?[]:n],lo)}function k2(n,i){i==null&&(i=Qa().touches);for(var o=0,s=i?i.length:0,l=new Array(s);o<s;++o)l[o]=Wc(n,i[o]);return l}function kn(n){return function(){return n}}w2.prototype=C1.prototype={constructor:w2,get:function(n){for(var i=this._;!(i in n);)if(!(n=n.parentNode))return;return n[i]},set:function(n,i){return n[this._]=i},remove:function(n){return this._ in n&&delete n[this._]},toString:function(){return this._}};var Ic=Math.abs,_i=Math.atan2,oa=Math.cos,e0=Math.max,E1=Math.min,bo=Math.sin,Rc=Math.sqrt,Ri=1e-12,qo=Math.PI,_u=qo/2,Fc=2*qo;function T2(n){return n>1?0:n<-1?qo:Math.acos(n)}function C2(n){return n>=1?_u:n<=-1?-_u:Math.asin(n)}function b_(n){return n.innerRadius}function E2(n){return n.outerRadius}function j3(n){return n.startAngle}function __(n){return n.endAngle}function Y3(n){return n&&n.padAngle}function z3(n,i,o,s,l,d,b,m){var w=o-n,E=s-i,L=b-l,j=m-d,D=j*w-L*E;if(!(D*D<Ri))return[n+(D=(L*(i-d)-j*(n-l))/D)*w,i+D*E]}function nr(n,i,o,s,l,d,b){var m=n-o,w=i-s,E=(b?d:-d)/Rc(m*m+w*w),L=E*w,j=-E*m,D=n+L,q=i+j,W=o+L,U=s+j,V=(D+W)/2,Z=(q+U)/2,it=W-D,rt=U-q,dt=it*it+rt*rt,Pt=l-d,Vt=D*U-W*q,Jt=(rt<0?-1:1)*Rc(e0(0,Pt*Pt*dt-Vt*Vt)),ke=(Vt*rt-it*Jt)/dt,Yt=(-Vt*it-rt*Jt)/dt,ce=(Vt*rt+it*Jt)/dt,ht=(-Vt*it+rt*Jt)/dt,Ct=ke-V,ne=Yt-Z,Qt=ce-V,ie=ht-Z;return Ct*Ct+ne*ne>Qt*Qt+ie*ie&&(ke=ce,Yt=ht),{cx:ke,cy:Yt,x01:-L,y01:-j,x11:ke*(l/Pt-1),y11:Yt*(l/Pt-1)}}function x_(){var n=b_,i=E2,o=kn(0),s=null,l=j3,d=__,b=Y3,m=null;function w(){var E,L,j=+n.apply(this,arguments),D=+i.apply(this,arguments),q=l.apply(this,arguments)-_u,W=d.apply(this,arguments)-_u,U=Ic(W-q),V=W>q;if(m||(m=E=Ls()),D<j&&(L=D,D=j,j=L),D>Ri)if(U>Fc-Ri)m.moveTo(D*oa(q),D*bo(q)),m.arc(0,0,D,q,W,!V),j>Ri&&(m.moveTo(j*oa(W),j*bo(W)),m.arc(0,0,j,W,q,V));else{var Z,it,rt=q,dt=W,Pt=q,Vt=W,Jt=U,ke=U,Yt=b.apply(this,arguments)/2,ce=Yt>Ri&&(s?+s.apply(this,arguments):Rc(j*j+D*D)),ht=E1(Ic(D-j)/2,+o.apply(this,arguments)),Ct=ht,ne=ht;if(ce>Ri){var Qt=C2(ce/j*bo(Yt)),ie=C2(ce/D*bo(Yt));(Jt-=2*Qt)>Ri?(Pt+=Qt*=V?1:-1,Vt-=Qt):(Jt=0,Pt=Vt=(q+W)/2),(ke-=2*ie)>Ri?(rt+=ie*=V?1:-1,dt-=ie):(ke=0,rt=dt=(q+W)/2)}var Fe=D*oa(rt),Ke=D*bo(rt),Tn=j*oa(Vt),Sn=j*bo(Vt);if(ht>Ri){var ar,on=D*oa(dt),yr=D*bo(dt),In=j*oa(Pt),Nn=j*bo(Pt);if(U<qo&&(ar=z3(Fe,Ke,In,Nn,on,yr,Tn,Sn))){var dr=Fe-ar[0],Vi=Ke-ar[1],wi=on-ar[0],qr=yr-ar[1],zc=1/bo(T2((dr*wi+Vi*qr)/(Rc(dr*dr+Vi*Vi)*Rc(wi*wi+qr*qr)))/2),Vl=Rc(ar[0]*ar[0]+ar[1]*ar[1]);Ct=E1(ht,(j-Vl)/(zc-1)),ne=E1(ht,(D-Vl)/(zc+1))}}ke>Ri?ne>Ri?(Z=nr(In,Nn,Fe,Ke,D,ne,V),it=nr(on,yr,Tn,Sn,D,ne,V),m.moveTo(Z.cx+Z.x01,Z.cy+Z.y01),ne<ht?m.arc(Z.cx,Z.cy,ne,_i(Z.y01,Z.x01),_i(it.y01,it.x01),!V):(m.arc(Z.cx,Z.cy,ne,_i(Z.y01,Z.x01),_i(Z.y11,Z.x11),!V),m.arc(0,0,D,_i(Z.cy+Z.y11,Z.cx+Z.x11),_i(it.cy+it.y11,it.cx+it.x11),!V),m.arc(it.cx,it.cy,ne,_i(it.y11,it.x11),_i(it.y01,it.x01),!V))):(m.moveTo(Fe,Ke),m.arc(0,0,D,rt,dt,!V)):m.moveTo(Fe,Ke),j>Ri&&Jt>Ri?Ct>Ri?(Z=nr(Tn,Sn,on,yr,j,-Ct,V),it=nr(Fe,Ke,In,Nn,j,-Ct,V),m.lineTo(Z.cx+Z.x01,Z.cy+Z.y01),Ct<ht?m.arc(Z.cx,Z.cy,Ct,_i(Z.y01,Z.x01),_i(it.y01,it.x01),!V):(m.arc(Z.cx,Z.cy,Ct,_i(Z.y01,Z.x01),_i(Z.y11,Z.x11),!V),m.arc(0,0,j,_i(Z.cy+Z.y11,Z.cx+Z.x11),_i(it.cy+it.y11,it.cx+it.x11),V),m.arc(it.cx,it.cy,Ct,_i(it.y11,it.x11),_i(it.y01,it.x01),!V))):m.arc(0,0,j,Vt,Pt,V):m.lineTo(Tn,Sn)}else m.moveTo(0,0);if(m.closePath(),E)return m=null,E+""||null}return w.centroid=function(){var E=(+n.apply(this,arguments)+ +i.apply(this,arguments))/2,L=(+l.apply(this,arguments)+ +d.apply(this,arguments))/2-qo/2;return[oa(L)*E,bo(L)*E]},w.innerRadius=function(E){return arguments.length?(n=typeof E=="function"?E:kn(+E),w):n},w.outerRadius=function(E){return arguments.length?(i=typeof E=="function"?E:kn(+E),w):i},w.cornerRadius=function(E){return arguments.length?(o=typeof E=="function"?E:kn(+E),w):o},w.padRadius=function(E){return arguments.length?(s=E==null?null:typeof E=="function"?E:kn(+E),w):s},w.startAngle=function(E){return arguments.length?(l=typeof E=="function"?E:kn(+E),w):l},w.endAngle=function(E){return arguments.length?(d=typeof E=="function"?E:kn(+E),w):d},w.padAngle=function(E){return arguments.length?(b=typeof E=="function"?E:kn(+E),w):b},w.context=function(E){return arguments.length?(m=E==null?null:E,w):m},w}function S1(n){this._context=n}function n0(n){return new S1(n)}function wa(n){return n[0]}function S2(n){return n[1]}function r0(){var n=wa,i=S2,o=kn(!0),s=null,l=n0,d=null;function b(m){var w,E,L,j=m.length,D=!1;for(s==null&&(d=l(L=Ls())),w=0;w<=j;++w)!(w<j&&o(E=m[w],w,m))===D&&((D=!D)?d.lineStart():d.lineEnd()),D&&d.point(+n(E,w,m),+i(E,w,m));if(L)return d=null,L+""||null}return b.x=function(m){return arguments.length?(n=typeof m=="function"?m:kn(+m),b):n},b.y=function(m){return arguments.length?(i=typeof m=="function"?m:kn(+m),b):i},b.defined=function(m){return arguments.length?(o=typeof m=="function"?m:kn(!!m),b):o},b.curve=function(m){return arguments.length?(l=m,s!=null&&(d=l(s)),b):l},b.context=function(m){return arguments.length?(m==null?s=d=null:d=l(s=m),b):s},b}function U3(){var n=wa,i=null,o=kn(0),s=S2,l=kn(!0),d=null,b=n0,m=null;function w(L){var j,D,q,W,U,V=L.length,Z=!1,it=new Array(V),rt=new Array(V);for(d==null&&(m=b(U=Ls())),j=0;j<=V;++j){if(!(j<V&&l(W=L[j],j,L))===Z)if(Z=!Z)D=j,m.areaStart(),m.lineStart();else{for(m.lineEnd(),m.lineStart(),q=j-1;q>=D;--q)m.point(it[q],rt[q]);m.lineEnd(),m.areaEnd()}Z&&(it[j]=+n(W,j,L),rt[j]=+o(W,j,L),m.point(i?+i(W,j,L):it[j],s?+s(W,j,L):rt[j]))}if(U)return m=null,U+""||null}function E(){return r0().defined(l).curve(b).context(d)}return w.x=function(L){return arguments.length?(n=typeof L=="function"?L:kn(+L),i=null,w):n},w.x0=function(L){return arguments.length?(n=typeof L=="function"?L:kn(+L),w):n},w.x1=function(L){return arguments.length?(i=L==null?null:typeof L=="function"?L:kn(+L),w):i},w.y=function(L){return arguments.length?(o=typeof L=="function"?L:kn(+L),s=null,w):o},w.y0=function(L){return arguments.length?(o=typeof L=="function"?L:kn(+L),w):o},w.y1=function(L){return arguments.length?(s=L==null?null:typeof L=="function"?L:kn(+L),w):s},w.lineX0=w.lineY0=function(){return E().x(n).y(o)},w.lineY1=function(){return E().x(n).y(s)},w.lineX1=function(){return E().x(i).y(o)},w.defined=function(L){return arguments.length?(l=typeof L=="function"?L:kn(!!L),w):l},w.curve=function(L){return arguments.length?(b=L,d!=null&&(m=b(d)),w):b},w.context=function(L){return arguments.length?(L==null?d=m=null:m=b(d=L),w):d},w}function w_(n,i){return i<n?-1:i>n?1:i>=n?0:NaN}function k_(n){return n}function T_(){var n=k_,i=w_,o=null,s=kn(0),l=kn(Fc),d=kn(0);function b(m){var w,E,L,j,D,q=m.length,W=0,U=new Array(q),V=new Array(q),Z=+s.apply(this,arguments),it=Math.min(Fc,Math.max(-Fc,l.apply(this,arguments)-Z)),rt=Math.min(Math.abs(it)/q,d.apply(this,arguments)),dt=rt*(it<0?-1:1);for(w=0;w<q;++w)(D=V[U[w]=w]=+n(m[w],w,m))>0&&(W+=D);for(i!=null?U.sort(function(Pt,Vt){return i(V[Pt],V[Vt])}):o!=null&&U.sort(function(Pt,Vt){return o(m[Pt],m[Vt])}),w=0,L=W?(it-q*dt)/W:0;w<q;++w,Z=j)E=U[w],j=Z+((D=V[E])>0?D*L:0)+dt,V[E]={data:m[E],index:w,value:D,startAngle:Z,endAngle:j,padAngle:rt};return V}return b.value=function(m){return arguments.length?(n=typeof m=="function"?m:kn(+m),b):n},b.sortValues=function(m){return arguments.length?(i=m,o=null,b):i},b.sort=function(m){return arguments.length?(o=m,i=null,b):o},b.startAngle=function(m){return arguments.length?(s=typeof m=="function"?m:kn(+m),b):s},b.endAngle=function(m){return arguments.length?(l=typeof m=="function"?m:kn(+m),b):l},b.padAngle=function(m){return arguments.length?(d=typeof m=="function"?m:kn(+m),b):d},b}S1.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(n,i){switch(n=+n,i=+i,this._point){case 0:this._point=1,this._line?this._context.lineTo(n,i):this._context.moveTo(n,i);break;case 1:this._point=2;default:this._context.lineTo(n,i)}}};var q3=A2(n0);function $3(n){this._curve=n}function A2(n){function i(o){return new $3(n(o))}return i._curve=n,i}function A1(n){var i=n.curve;return n.angle=n.x,delete n.x,n.radius=n.y,delete n.y,n.curve=function(o){return arguments.length?i(A2(o)):i()._curve},n}function H3(){return A1(r0().curve(q3))}function W3(){var n=U3().curve(q3),i=n.curve,o=n.lineX0,s=n.lineX1,l=n.lineY0,d=n.lineY1;return n.angle=n.x,delete n.x,n.startAngle=n.x0,delete n.x0,n.endAngle=n.x1,delete n.x1,n.radius=n.y,delete n.y,n.innerRadius=n.y0,delete n.y0,n.outerRadius=n.y1,delete n.y1,n.lineStartAngle=function(){return A1(o())},delete n.lineX0,n.lineEndAngle=function(){return A1(s())},delete n.lineX1,n.lineInnerRadius=function(){return A1(l())},delete n.lineY0,n.lineOuterRadius=function(){return A1(d())},delete n.lineY1,n.curve=function(b){return arguments.length?i(A2(b)):i()._curve},n}function M1(n,i){return[(i=+i)*Math.cos(n-=Math.PI/2),i*Math.sin(n)]}$3.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(n,i){this._curve.point(i*Math.sin(n),i*-Math.cos(n))}};var $o=Array.prototype.slice;function C_(n){return n.source}function V3(n){return n.target}function i0(n){var i=C_,o=V3,s=wa,l=S2,d=null;function b(){var m,w=$o.call(arguments),E=i.apply(this,w),L=o.apply(this,w);if(d||(d=m=Ls()),n(d,+s.apply(this,(w[0]=E,w)),+l.apply(this,w),+s.apply(this,(w[0]=L,w)),+l.apply(this,w)),m)return d=null,m+""||null}return b.source=function(m){return arguments.length?(i=m,b):i},b.target=function(m){return arguments.length?(o=m,b):o},b.x=function(m){return arguments.length?(s=typeof m=="function"?m:kn(+m),b):s},b.y=function(m){return arguments.length?(l=typeof m=="function"?m:kn(+m),b):l},b.context=function(m){return arguments.length?(d=m==null?null:m,b):d},b}function E_(n,i,o,s,l){n.moveTo(i,o),n.bezierCurveTo(i=(i+s)/2,o,i,l,s,l)}function G3(n,i,o,s,l){n.moveTo(i,o),n.bezierCurveTo(i,o=(o+l)/2,s,o,s,l)}function X3(n,i,o,s,l){var d=M1(i,o),b=M1(i,o=(o+l)/2),m=M1(s,o),w=M1(s,l);n.moveTo(d[0],d[1]),n.bezierCurveTo(b[0],b[1],m[0],m[1],w[0],w[1])}function S_(){return i0(E_)}function M2(){return i0(G3)}function N2(){var n=i0(X3);return n.angle=n.x,delete n.x,n.radius=n.y,delete n.y,n}const Rl={draw:function(n,i){var o=Math.sqrt(i/qo);n.moveTo(o,0),n.arc(0,0,o,0,Fc)}},Ho={draw:function(n,i){var o=Math.sqrt(i/5)/2;n.moveTo(-3*o,-o),n.lineTo(-o,-o),n.lineTo(-o,-3*o),n.lineTo(o,-3*o),n.lineTo(o,-o),n.lineTo(3*o,-o),n.lineTo(3*o,o),n.lineTo(o,o),n.lineTo(o,3*o),n.lineTo(-o,3*o),n.lineTo(-o,o),n.lineTo(-3*o,o),n.closePath()}};var a0=Math.sqrt(1/3),D2=2*a0;const Fl={draw:function(n,i){var o=Math.sqrt(i/D2),s=o*a0;n.moveTo(0,-o),n.lineTo(s,0),n.lineTo(0,o),n.lineTo(-s,0),n.closePath()}};var Pl=Math.sin(qo/10)/Math.sin(7*qo/10),L2=Math.sin(Fc/10)*Pl,B2=-Math.cos(Fc/10)*Pl;const o0={draw:function(n,i){var o=Math.sqrt(.8908130915292852*i),s=L2*o,l=B2*o;n.moveTo(0,-o),n.lineTo(s,l);for(var d=1;d<5;++d){var b=Fc*d/5,m=Math.cos(b),w=Math.sin(b);n.lineTo(w*o,-m*o),n.lineTo(m*s-w*l,w*s+m*l)}n.closePath()}},xu={draw:function(n,i){var o=Math.sqrt(i),s=-o/2;n.rect(s,s,o,o)}};var s0=Math.sqrt(3);const N1={draw:function(n,i){var o=-Math.sqrt(i/(3*s0));n.moveTo(0,2*o),n.lineTo(-s0*o,-o),n.lineTo(s0*o,-o),n.closePath()}};var sa=-.5,Ya=Math.sqrt(3)/2,D1=1/Math.sqrt(12),Z3=3*(D1/2+1);const O2={draw:function(n,i){var o=Math.sqrt(i/Z3),s=o/2,l=o*D1,d=s,b=o*D1+o,m=-d,w=b;n.moveTo(s,l),n.lineTo(d,b),n.lineTo(m,w),n.lineTo(sa*s-Ya*l,Ya*s+sa*l),n.lineTo(sa*d-Ya*b,Ya*d+sa*b),n.lineTo(sa*m-Ya*w,Ya*m+sa*w),n.lineTo(sa*s+Ya*l,sa*l-Ya*s),n.lineTo(sa*d+Ya*b,sa*b-Ya*d),n.lineTo(sa*m+Ya*w,sa*w-Ya*m),n.closePath()}};var A_=[Rl,Ho,Fl,xu,o0,N1,O2];function I2(){var n=kn(Rl),i=kn(64),o=null;function s(){var l;if(o||(o=l=Ls()),n.apply(this,arguments).draw(o,+i.apply(this,arguments)),l)return o=null,l+""||null}return s.type=function(l){return arguments.length?(n=typeof l=="function"?l:kn(l),s):n},s.size=function(l){return arguments.length?(i=typeof l=="function"?l:kn(+l),s):i},s.context=function(l){return arguments.length?(o=l==null?null:l,s):o},s}function ec(){}function L1(n,i,o){n._context.bezierCurveTo((2*n._x0+n._x1)/3,(2*n._y0+n._y1)/3,(n._x0+2*n._x1)/3,(n._y0+2*n._y1)/3,(n._x0+4*n._x1+i)/6,(n._y0+4*n._y1+o)/6)}function B1(n){this._context=n}function jl(n){return new B1(n)}function xi(n){this._context=n}function Q3(n){return new xi(n)}function wu(n){this._context=n}function K3(n){return new wu(n)}function R2(n,i){this._basis=new B1(n),this._beta=i}B1.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:L1(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(n,i){switch(n=+n,i=+i,this._point){case 0:this._point=1,this._line?this._context.lineTo(n,i):this._context.moveTo(n,i);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:L1(this,n,i)}this._x0=this._x1,this._x1=n,this._y0=this._y1,this._y1=i}},xi.prototype={areaStart:ec,areaEnd:ec,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(n,i){switch(n=+n,i=+i,this._point){case 0:this._point=1,this._x2=n,this._y2=i;break;case 1:this._point=2,this._x3=n,this._y3=i;break;case 2:this._point=3,this._x4=n,this._y4=i,this._context.moveTo((this._x0+4*this._x1+n)/6,(this._y0+4*this._y1+i)/6);break;default:L1(this,n,i)}this._x0=this._x1,this._x1=n,this._y0=this._y1,this._y1=i}},wu.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(n,i){switch(n=+n,i=+i,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var o=(this._x0+4*this._x1+n)/6,s=(this._y0+4*this._y1+i)/6;this._line?this._context.lineTo(o,s):this._context.moveTo(o,s);break;case 3:this._point=4;default:L1(this,n,i)}this._x0=this._x1,this._x1=n,this._y0=this._y1,this._y1=i}},R2.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var n=this._x,i=this._y,o=n.length-1;if(o>0)for(var s,l=n[0],d=i[0],b=n[o]-l,m=i[o]-d,w=-1;++w<=o;)s=w/o,this._basis.point(this._beta*n[w]+(1-this._beta)*(l+s*b),this._beta*i[w]+(1-this._beta)*(d+s*m));this._x=this._y=null,this._basis.lineEnd()},point:function(n,i){this._x.push(+n),this._y.push(+i)}};const J3=function n(i){function o(s){return i===1?new B1(s):new R2(s,i)}return o.beta=function(s){return n(+s)},o}(.85);function nc(n,i,o){n._context.bezierCurveTo(n._x1+n._k*(n._x2-n._x0),n._y1+n._k*(n._y2-n._y0),n._x2+n._k*(n._x1-i),n._y2+n._k*(n._y1-o),n._x2,n._y2)}function c0(n,i){this._context=n,this._k=(1-i)/6}c0.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:nc(this,this._x1,this._y1)}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(n,i){switch(n=+n,i=+i,this._point){case 0:this._point=1,this._line?this._context.lineTo(n,i):this._context.moveTo(n,i);break;case 1:this._point=2,this._x1=n,this._y1=i;break;case 2:this._point=3;default:nc(this,n,i)}this._x0=this._x1,this._x1=this._x2,this._x2=n,this._y0=this._y1,this._y1=this._y2,this._y2=i}};const Pc=function n(i){function o(s){return new c0(s,i)}return o.tension=function(s){return n(+s)},o}(0);function ka(n,i){this._context=n,this._k=(1-i)/6}ka.prototype={areaStart:ec,areaEnd:ec,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(n,i){switch(n=+n,i=+i,this._point){case 0:this._point=1,this._x3=n,this._y3=i;break;case 1:this._point=2,this._context.moveTo(this._x4=n,this._y4=i);break;case 2:this._point=3,this._x5=n,this._y5=i;break;default:nc(this,n,i)}this._x0=this._x1,this._x1=this._x2,this._x2=n,this._y0=this._y1,this._y1=this._y2,this._y2=i}};const M_=function n(i){function o(s){return new ka(s,i)}return o.tension=function(s){return n(+s)},o}(0);function F2(n,i){this._context=n,this._k=(1-i)/6}F2.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(n,i){switch(n=+n,i=+i,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:nc(this,n,i)}this._x0=this._x1,this._x1=this._x2,this._x2=n,this._y0=this._y1,this._y1=this._y2,this._y2=i}};const tb=function n(i){function o(s){return new F2(s,i)}return o.tension=function(s){return n(+s)},o}(0);function u0(n,i,o){var s=n._x1,l=n._y1,d=n._x2,b=n._y2;if(n._l01_a>Ri){var m=2*n._l01_2a+3*n._l01_a*n._l12_a+n._l12_2a,w=3*n._l01_a*(n._l01_a+n._l12_a);s=(s*m-n._x0*n._l12_2a+n._x2*n._l01_2a)/w,l=(l*m-n._y0*n._l12_2a+n._y2*n._l01_2a)/w}if(n._l23_a>Ri){var E=2*n._l23_2a+3*n._l23_a*n._l12_a+n._l12_2a,L=3*n._l23_a*(n._l23_a+n._l12_a);d=(d*E+n._x1*n._l23_2a-i*n._l12_2a)/L,b=(b*E+n._y1*n._l23_2a-o*n._l12_2a)/L}n._context.bezierCurveTo(s,l,d,b,n._x2,n._y2)}function eb(n,i){this._context=n,this._alpha=i}eb.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(n,i){if(n=+n,i=+i,this._point){var o=this._x2-n,s=this._y2-i;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(o*o+s*s,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(n,i):this._context.moveTo(n,i);break;case 1:this._point=2;break;case 2:this._point=3;default:u0(this,n,i)}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=n,this._y0=this._y1,this._y1=this._y2,this._y2=i}};const l0=function n(i){function o(s){return i?new eb(s,i):new c0(s,0)}return o.alpha=function(s){return n(+s)},o}(.5);function nb(n,i){this._context=n,this._alpha=i}nb.prototype={areaStart:ec,areaEnd:ec,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(n,i){if(n=+n,i=+i,this._point){var o=this._x2-n,s=this._y2-i;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(o*o+s*s,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=n,this._y3=i;break;case 1:this._point=2,this._context.moveTo(this._x4=n,this._y4=i);break;case 2:this._point=3,this._x5=n,this._y5=i;break;default:u0(this,n,i)}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=n,this._y0=this._y1,this._y1=this._y2,this._y2=i}};const ao=function n(i){function o(s){return i?new nb(s,i):new ka(s,0)}return o.alpha=function(s){return n(+s)},o}(.5);function oo(n,i){this._context=n,this._alpha=i}oo.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(n,i){if(n=+n,i=+i,this._point){var o=this._x2-n,s=this._y2-i;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(o*o+s*s,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:u0(this,n,i)}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=n,this._y0=this._y1,this._y1=this._y2,this._y2=i}};const h0=function n(i){function o(s){return i?new oo(s,i):new F2(s,0)}return o.alpha=function(s){return n(+s)},o}(.5);function ea(n){this._context=n}function Wo(n){return new ea(n)}function P2(n){return n<0?-1:1}function Yl(n,i,o){var s=n._x1-n._x0,l=i-n._x1,d=(n._y1-n._y0)/(s||l<0&&-0),b=(o-n._y1)/(l||s<0&&-0),m=(d*l+b*s)/(s+l);return(P2(d)+P2(b))*Math.min(Math.abs(d),Math.abs(b),.5*Math.abs(m))||0}function j2(n,i){var o=n._x1-n._x0;return o?(3*(n._y1-n._y0)/o-i)/2:i}function f0(n,i,o){var s=n._x0,l=n._y0,d=n._x1,b=n._y1,m=(d-s)/3;n._context.bezierCurveTo(s+m,l+m*i,d-m,b-m*o,d,b)}function O1(n){this._context=n}function Y2(n){this._context=new z2(n)}function z2(n){this._context=n}function rb(n){return new O1(n)}function U2(n){return new Y2(n)}function ku(n){this._context=n}function ib(n){var i,o,s=n.length-1,l=new Array(s),d=new Array(s),b=new Array(s);for(l[0]=0,d[0]=2,b[0]=n[0]+2*n[1],i=1;i<s-1;++i)l[i]=1,d[i]=4,b[i]=4*n[i]+2*n[i+1];for(l[s-1]=2,d[s-1]=7,b[s-1]=8*n[s-1]+n[s],i=1;i<s;++i)o=l[i]/d[i-1],d[i]-=o,b[i]-=o*b[i-1];for(l[s-1]=b[s-1]/d[s-1],i=s-2;i>=0;--i)l[i]=(b[i]-l[i+1])/d[i];for(d[s-1]=(n[s]+l[s-1])/2,i=0;i<s-1;++i)d[i]=2*n[i+1]-l[i+1];return[l,d]}function ab(n){return new ku(n)}function jc(n,i){this._context=n,this._t=i}function za(n){return new jc(n,.5)}function zl(n){return new jc(n,0)}function I1(n){return new jc(n,1)}function rc(n,i){if((l=n.length)>1)for(var o,s,l,d=1,b=n[i[0]],m=b.length;d<l;++d)for(s=b,b=n[i[d]],o=0;o<m;++o)b[o][1]+=b[o][0]=isNaN(s[o][1])?s[o][0]:s[o][1]}function Tu(n){for(var i=n.length,o=new Array(i);--i>=0;)o[i]=i;return o}function ob(n,i){return n[i]}function N_(){var n=kn([]),i=Tu,o=rc,s=ob;function l(d){var b,m,w=n.apply(this,arguments),E=d.length,L=w.length,j=new Array(L);for(b=0;b<L;++b){for(var D,q=w[b],W=j[b]=new Array(E),U=0;U<E;++U)W[U]=D=[0,+s(d[U],q,U,d)],D.data=d[U];W.key=q}for(b=0,m=i(j);b<L;++b)j[m[b]].index=b;return o(j,m),j}return l.keys=function(d){return arguments.length?(n=typeof d=="function"?d:kn($o.call(d)),l):n},l.value=function(d){return arguments.length?(s=typeof d=="function"?d:kn(+d),l):s},l.order=function(d){return arguments.length?(i=d==null?Tu:typeof d=="function"?d:kn($o.call(d)),l):i},l.offset=function(d){return arguments.length?(o=d==null?rc:d,l):o},l}function sb(n,i){if((s=n.length)>0){for(var o,s,l,d=0,b=n[0].length;d<b;++d){for(l=o=0;o<s;++o)l+=n[o][d][1]||0;if(l)for(o=0;o<s;++o)n[o][d][1]/=l}rc(n,i)}}function cb(n,i){if((m=n.length)>0)for(var o,s,l,d,b,m,w=0,E=n[i[0]].length;w<E;++w)for(d=b=0,o=0;o<m;++o)(l=(s=n[i[o]][w])[1]-s[0])>0?(s[0]=d,s[1]=d+=l):l<0?(s[1]=b,s[0]=b+=l):(s[0]=0,s[1]=l)}function ub(n,i){if((o=n.length)>0){for(var o,s=0,l=n[i[0]],d=l.length;s<d;++s){for(var b=0,m=0;b<o;++b)m+=n[b][s][1]||0;l[s][1]+=l[s][0]=-m/2}rc(n,i)}}function D_(n,i){if((l=n.length)>0&&(s=(o=n[i[0]]).length)>0){for(var o,s,l,d=0,b=1;b<s;++b){for(var m=0,w=0,E=0;m<l;++m){for(var L=n[i[m]],j=L[b][1]||0,D=(j-(L[b-1][1]||0))/2,q=0;q<m;++q){var W=n[i[q]];D+=(W[b][1]||0)-(W[b-1][1]||0)}w+=j,E+=D*j}o[b-1][1]+=o[b-1][0]=d,w&&(d-=E/w)}o[b-1][1]+=o[b-1][0]=d,rc(n,i)}}function q2(n){var i=n.map(L_);return Tu(n).sort(function(o,s){return i[o]-i[s]})}function L_(n){for(var i,o=-1,s=0,l=n.length,d=-1/0;++o<l;)(i=+n[o][1])>d&&(d=i,s=o);return s}function $2(n){var i=n.map(lb);return Tu(n).sort(function(o,s){return i[o]-i[s]})}function lb(n){for(var i,o=0,s=-1,l=n.length;++s<l;)(i=+n[s][1])&&(o+=i);return o}function hb(n){return $2(n).reverse()}function d0(n){var i,o,s=n.length,l=n.map(lb),d=q2(n),b=0,m=0,w=[],E=[];for(i=0;i<s;++i)o=d[i],b<m?(b+=l[o],w.push(o)):(m+=l[o],E.push(o));return E.reverse().concat(w)}function H2(n){return Tu(n).reverse()}ea.prototype={areaStart:ec,areaEnd:ec,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(n,i){n=+n,i=+i,this._point?this._context.lineTo(n,i):(this._point=1,this._context.moveTo(n,i))}},O1.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:f0(this,this._t0,j2(this,this._t0))}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(n,i){var o=NaN;if(i=+i,(n=+n)!==this._x1||i!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(n,i):this._context.moveTo(n,i);break;case 1:this._point=2;break;case 2:this._point=3,f0(this,j2(this,o=Yl(this,n,i)),o);break;default:f0(this,this._t0,o=Yl(this,n,i))}this._x0=this._x1,this._x1=n,this._y0=this._y1,this._y1=i,this._t0=o}}},(Y2.prototype=Object.create(O1.prototype)).point=function(n,i){O1.prototype.point.call(this,i,n)},z2.prototype={moveTo:function(n,i){this._context.moveTo(i,n)},closePath:function(){this._context.closePath()},lineTo:function(n,i){this._context.lineTo(i,n)},bezierCurveTo:function(n,i,o,s,l,d){this._context.bezierCurveTo(i,n,s,o,d,l)}},ku.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var n=this._x,i=this._y,o=n.length;if(o)if(this._line?this._context.lineTo(n[0],i[0]):this._context.moveTo(n[0],i[0]),o===2)this._context.lineTo(n[1],i[1]);else for(var s=ib(n),l=ib(i),d=0,b=1;b<o;++d,++b)this._context.bezierCurveTo(s[0][d],l[0][d],s[1][d],l[1][d],n[b],i[b]);(this._line||this._line!==0&&o===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(n,i){this._x.push(+n),this._y.push(+i)}},jc.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(n,i){switch(n=+n,i=+i,this._point){case 0:this._point=1,this._line?this._context.lineTo(n,i):this._context.moveTo(n,i);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,i),this._context.lineTo(n,i);else{var o=this._x*(1-this._t)+n*this._t;this._context.lineTo(o,this._y),this._context.lineTo(o,i)}}this._x=n,this._y=i}};var p0="%Y-%m-%dT%H:%M:%S.%LZ",W2=Date.prototype.toISOString?function(n){return n.toISOString()}:mu(p0);const Yc=W2;var ic=+new Date("2000-01-01T00:00:00.000Z")?function(n){var i=new Date(n);return isNaN(i)?null:i}:Cl(p0);const B_=ic;function R1(n,i,o){var s=new Wt,l=i;return i==null?(s.restart(n,i,o),s):(i=+i,o=o==null?X():+o,s.restart(function d(b){b+=l,s.restart(d,l+=i,o),n(b)},i,o),s)}function fb(n){return function(){return n}}function V2(n){return n[0]}function Ua(n){return n[1]}function Cu(){this._=null}function Vo(n){n.U=n.C=n.L=n.R=n.P=n.N=null}function ac(n,i){var o=i,s=i.R,l=o.U;l?l.L===o?l.L=s:l.R=s:n._=s,s.U=l,o.U=s,o.R=s.L,o.R&&(o.R.U=o),s.L=o}function Ts(n,i){var o=i,s=i.L,l=o.U;l?l.L===o?l.L=s:l.R=s:n._=s,s.U=l,o.U=s,o.L=s.R,o.L&&(o.L.U=o),s.R=o}function g0(n){for(;n.L;)n=n.L;return n}Cu.prototype={constructor:Cu,insert:function(n,i){var o,s,l;if(n){if(i.P=n,i.N=n.N,n.N&&(n.N.P=i),n.N=i,n.R){for(n=n.R;n.L;)n=n.L;n.L=i}else n.R=i;o=n}else this._?(n=g0(this._),i.P=null,i.N=n,n.P=n.L=i,o=n):(i.P=i.N=null,this._=i,o=null);for(i.L=i.R=null,i.U=o,i.C=!0,n=i;o&&o.C;)o===(s=o.U).L?(l=s.R)&&l.C?(o.C=l.C=!1,s.C=!0,n=s):(n===o.R&&(ac(this,o),o=(n=o).U),o.C=!1,s.C=!0,Ts(this,s)):(l=s.L)&&l.C?(o.C=l.C=!1,s.C=!0,n=s):(n===o.L&&(Ts(this,o),o=(n=o).U),o.C=!1,s.C=!0,ac(this,s)),o=n.U;this._.C=!1},remove:function(n){n.N&&(n.N.P=n.P),n.P&&(n.P.N=n.N),n.N=n.P=null;var i,o,s,l=n.U,d=n.L,b=n.R;if(o=d?b?g0(b):d:b,l?l.L===n?l.L=o:l.R=o:this._=o,d&&b?(s=o.C,o.C=n.C,o.L=d,d.U=o,o!==b?(l=o.U,o.U=n.U,n=o.R,l.L=n,o.R=b,b.U=o):(o.U=l,l=o,n=o.R)):(s=n.C,n=o),n&&(n.U=l),!s)if(n&&n.C)n.C=!1;else{do{if(n===this._)break;if(n===l.L){if((i=l.R).C&&(i.C=!1,l.C=!0,ac(this,l),i=l.R),i.L&&i.L.C||i.R&&i.R.C){i.R&&i.R.C||(i.L.C=!1,i.C=!0,Ts(this,i),i=l.R),i.C=l.C,l.C=i.R.C=!1,ac(this,l),n=this._;break}}else if((i=l.L).C&&(i.C=!1,l.C=!0,Ts(this,l),i=l.L),i.L&&i.L.C||i.R&&i.R.C){i.L&&i.L.C||(i.R.C=!1,i.C=!0,ac(this,i),i=l.L),i.C=l.C,l.C=i.L.C=!1,Ts(this,l),n=this._;break}i.C=!0,n=l,l=l.U}while(!n.C);n&&(n.C=!1)}}};const db=Cu;function ii(n,i,o,s){var l=[null,null],d=Wi.push(l)-1;return l.left=n,l.right=i,o&&F1(l,n,i,o),s&&F1(l,i,n,s),qa[n.index].halfedges.push(d),qa[i.index].halfedges.push(d),l}function Ul(n,i,o){var s=[i,o];return s.left=n,s}function F1(n,i,o,s){n[0]||n[1]?n.left===o?n[1]=s:n[0]=s:(n[0]=s,n.left=i,n.right=o)}function pb(n,i,o,s,l){var d,b=n[0],m=n[1],w=b[0],E=b[1],L=0,j=1,D=m[0]-w,q=m[1]-E;if(d=i-w,D||!(d>0)){if(d/=D,D<0){if(d<L)return;d<j&&(j=d)}else if(D>0){if(d>j)return;d>L&&(L=d)}if(d=s-w,D||!(d<0)){if(d/=D,D<0){if(d>j)return;d>L&&(L=d)}else if(D>0){if(d<L)return;d<j&&(j=d)}if(d=o-E,q||!(d>0)){if(d/=q,q<0){if(d<L)return;d<j&&(j=d)}else if(q>0){if(d>j)return;d>L&&(L=d)}if(d=l-E,q||!(d<0)){if(d/=q,q<0){if(d>j)return;d>L&&(L=d)}else if(q>0){if(d<L)return;d<j&&(j=d)}return!(L>0||j<1)||(L>0&&(n[0]=[w+L*D,E+L*q]),j<1&&(n[1]=[w+j*D,E+j*q]),!0)}}}}}function gb(n,i,o,s,l){var d=n[1];if(d)return!0;var b,m,w=n[0],E=n.left,L=n.right,j=E[0],D=E[1],q=L[0],W=L[1],U=(j+q)/2,V=(D+W)/2;if(W===D){if(U<i||U>=s)return;if(j>q){if(w){if(w[1]>=l)return}else w=[U,o];d=[U,l]}else{if(w){if(w[1]<o)return}else w=[U,l];d=[U,o]}}else if(m=V-(b=(j-q)/(W-D))*U,b<-1||b>1)if(j>q){if(w){if(w[1]>=l)return}else w=[(o-m)/b,o];d=[(l-m)/b,l]}else{if(w){if(w[1]<o)return}else w=[(l-m)/b,l];d=[(o-m)/b,o]}else if(D<W){if(w){if(w[0]>=s)return}else w=[i,b*i+m];d=[s,b*s+m]}else{if(w){if(w[0]<i)return}else w=[s,b*s+m];d=[i,b*i+m]}return n[0]=w,n[1]=d,!0}function ql(n,i){var o=n.site,s=i.left,l=i.right;return o===l&&(l=s,s=o),l?Math.atan2(l[1]-s[1],l[0]-s[0]):(o===s?(s=i[1],l=i[0]):(s=i[0],l=i[1]),Math.atan2(s[0]-l[0],l[1]-s[1]))}function G2(n,i){return i[+(i.left!==n.site)]}function O_(n,i){return i[+(i.left===n.site)]}var tn,yb=[];function P1(){Vo(this),this.x=this.y=this.arc=this.site=this.cy=null}function so(n){var i=n.P,o=n.N;if(i&&o){var s=i.site,l=n.site,d=o.site;if(s!==d){var b=l[0],m=l[1],w=s[0]-b,E=s[1]-m,L=d[0]-b,j=d[1]-m,D=2*(w*j-E*L);if(!(D>=-mb)){var q=w*w+E*E,W=L*L+j*j,U=(j*q-E*W)/D,V=(w*W-L*q)/D,Z=yb.pop()||new P1;Z.arc=n,Z.site=l,Z.x=U+b,Z.y=(Z.cy=V+m)+Math.sqrt(U*U+V*V),n.circle=Z;for(var it=null,rt=Wl._;rt;)if(Z.y<rt.y||Z.y===rt.y&&Z.x<=rt.x){if(!rt.L){it=rt.P;break}rt=rt.L}else{if(!rt.R){it=rt;break}rt=rt.R}Wl.insert(it,Z),it||(tn=Z)}}}}function ca(n){var i=n.circle;i&&(i.P||(tn=i.N),Wl.remove(i),yb.push(i),Vo(i),n.circle=null)}var y0=[];function m0(){Vo(this),this.edge=this.site=this.circle=null}function X2(n){var i=y0.pop()||new m0;return i.site=n,i}function j1(n){ca(n),Cs.remove(n),y0.push(n),Vo(n)}function I_(n){var i=n.circle,o=i.x,s=i.cy,l=[o,s],d=n.P,b=n.N,m=[n];j1(n);for(var w=d;w.circle&&Math.abs(o-w.circle.x)<Fr&&Math.abs(s-w.circle.cy)<Fr;)d=w.P,m.unshift(w),j1(w),w=d;m.unshift(w),ca(w);for(var E=b;E.circle&&Math.abs(o-E.circle.x)<Fr&&Math.abs(s-E.circle.cy)<Fr;)b=E.N,m.push(E),j1(E),E=b;m.push(E),ca(E);var L,j=m.length;for(L=1;L<j;++L)E=m[L],w=m[L-1],F1(E.edge,w.site,E.site,l);w=m[0],(E=m[j-1]).edge=ii(w.site,E.site,null,l),so(w),so(E)}function oc(n){for(var i,o,s,l,d=n[0],b=n[1],m=Cs._;m;)if((s=$l(m,b)-d)>Fr)m=m.L;else{if(!((l=d-Hl(m,b))>Fr)){s>-Fr?(i=m.P,o=m):l>-Fr?(i=m,o=m.N):i=o=m;break}if(!m.R){i=m;break}m=m.R}(function(Pt){qa[Pt.index]={site:Pt,halfedges:[]}})(n);var w=X2(n);if(Cs.insert(i,w),i||o){if(i===o)return ca(i),o=X2(i.site),Cs.insert(w,o),w.edge=o.edge=ii(i.site,w.site),so(i),void so(o);if(o){ca(i),ca(o);var E=i.site,L=E[0],j=E[1],D=n[0]-L,q=n[1]-j,W=o.site,U=W[0]-L,V=W[1]-j,Z=2*(D*V-q*U),it=D*D+q*q,rt=U*U+V*V,dt=[(V*it-q*rt)/Z+L,(D*rt-U*it)/Z+j];F1(o.edge,E,W,dt),w.edge=ii(E,n,null,dt),o.edge=ii(n,W,null,dt),so(i),so(o)}else w.edge=ii(i.site,w.site)}}function $l(n,i){var o=n.site,s=o[0],l=o[1],d=l-i;if(!d)return s;var b=n.P;if(!b)return-1/0;var m=(o=b.site)[0],w=o[1],E=w-i;if(!E)return m;var L=m-s,j=1/d-1/E,D=L/E;return j?(-D+Math.sqrt(D*D-2*j*(L*L/(-2*E)-w+E/2+l-d/2)))/j+s:(s+m)/2}function Hl(n,i){var o=n.N;if(o)return $l(o,i);var s=n.site;return s[1]===i?s[0]:1/0}var Cs,qa,Wl,Wi,Fr=1e-6,mb=1e-12;function vb(n,i,o){return(n[0]-o[0])*(i[1]-n[1])-(n[0]-i[0])*(o[1]-n[1])}function Z2(n,i){return i[1]-n[1]||i[0]-n[0]}function Y1(n,i){var o,s,l,d=n.sort(Z2).pop();for(Wi=[],qa=new Array(n.length),Cs=new db,Wl=new db;;)if(l=tn,d&&(!l||d[1]<l.y||d[1]===l.y&&d[0]<l.x))d[0]===o&&d[1]===s||(oc(d),o=d[0],s=d[1]),d=n.pop();else{if(!l)break;I_(l.arc)}if(function(){for(var L,j,D,q,W=0,U=qa.length;W<U;++W)if((L=qa[W])&&(q=(j=L.halfedges).length)){var V=new Array(q),Z=new Array(q);for(D=0;D<q;++D)V[D]=D,Z[D]=ql(L,Wi[j[D]]);for(V.sort(function(it,rt){return Z[rt]-Z[it]}),D=0;D<q;++D)Z[D]=j[V[D]];for(D=0;D<q;++D)j[D]=Z[D]}}(),i){var b=+i[0][0],m=+i[0][1],w=+i[1][0],E=+i[1][1];(function(L,j,D,q){for(var W,U=Wi.length;U--;)gb(W=Wi[U],L,j,D,q)&&pb(W,L,j,D,q)&&(Math.abs(W[0][0]-W[1][0])>Fr||Math.abs(W[0][1]-W[1][1])>Fr)||delete Wi[U]})(b,m,w,E),function(L,j,D,q){var W,U,V,Z,it,rt,dt,Pt,Vt,Jt,ke,Yt,ce=qa.length,ht=!0;for(W=0;W<ce;++W)if(U=qa[W]){for(V=U.site,Z=(it=U.halfedges).length;Z--;)Wi[it[Z]]||it.splice(Z,1);for(Z=0,rt=it.length;Z<rt;)ke=(Jt=O_(U,Wi[it[Z]]))[0],Yt=Jt[1],Pt=(dt=G2(U,Wi[it[++Z%rt]]))[0],Vt=dt[1],(Math.abs(ke-Pt)>Fr||Math.abs(Yt-Vt)>Fr)&&(it.splice(Z,0,Wi.push(Ul(V,Jt,Math.abs(ke-L)<Fr&&q-Yt>Fr?[L,Math.abs(Pt-L)<Fr?Vt:q]:Math.abs(Yt-q)<Fr&&D-ke>Fr?[Math.abs(Vt-q)<Fr?Pt:D,q]:Math.abs(ke-D)<Fr&&Yt-j>Fr?[D,Math.abs(Pt-D)<Fr?Vt:j]:Math.abs(Yt-j)<Fr&&ke-L>Fr?[Math.abs(Vt-j)<Fr?Pt:L,j]:null))-1),++rt);rt&&(ht=!1)}if(ht){var Ct,ne,Qt,ie=1/0;for(W=0,ht=null;W<ce;++W)(U=qa[W])&&(Qt=(Ct=(V=U.site)[0]-L)*Ct+(ne=V[1]-j)*ne)<ie&&(ie=Qt,ht=U);if(ht){var Fe=[L,j],Ke=[L,q],Tn=[D,q],Sn=[D,j];ht.halfedges.push(Wi.push(Ul(V=ht.site,Fe,Ke))-1,Wi.push(Ul(V,Ke,Tn))-1,Wi.push(Ul(V,Tn,Sn))-1,Wi.push(Ul(V,Sn,Fe))-1)}}for(W=0;W<ce;++W)(U=qa[W])&&(U.halfedges.length||delete qa[W])}(b,m,w,E)}this.edges=Wi,this.cells=qa,Cs=Wl=Wi=qa=null}function v0(){var n=V2,i=Ua,o=null;function s(l){return new Y1(l.map(function(d,b){var m=[Math.round(n(d,b,l)/Fr)*Fr,Math.round(i(d,b,l)/Fr)*Fr];return m.index=b,m.data=d,m}),o)}return s.polygons=function(l){return s(l).polygons()},s.links=function(l){return s(l).links()},s.triangles=function(l){return s(l).triangles()},s.x=function(l){return arguments.length?(n=typeof l=="function"?l:fb(+l),s):n},s.y=function(l){return arguments.length?(i=typeof l=="function"?l:fb(+l),s):i},s.extent=function(l){return arguments.length?(o=l==null?null:[[+l[0][0],+l[0][1]],[+l[1][0],+l[1][1]]],s):o&&[[o[0][0],o[0][1]],[o[1][0],o[1][1]]]},s.size=function(l){return arguments.length?(o=l==null?null:[[0,0],[+l[0],+l[1]]],s):o&&[o[1][0]-o[0][0],o[1][1]-o[0][1]]},s}function z1(n){return function(){return n}}function R_(n,i,o){this.target=n,this.type=i,this.transform=o}function sc(n,i,o){this.k=n,this.x=i,this.y=o}Y1.prototype={constructor:Y1,polygons:function(){var n=this.edges;return this.cells.map(function(i){var o=i.halfedges.map(function(s){return G2(i,n[s])});return o.data=i.site.data,o})},triangles:function(){var n=[],i=this.edges;return this.cells.forEach(function(o,s){if(d=(l=o.halfedges).length)for(var l,d,b,m=o.site,w=-1,E=i[l[d-1]],L=E.left===m?E.right:E.left;++w<d;)b=L,L=(E=i[l[w]]).left===m?E.right:E.left,b&&L&&s<b.index&&s<L.index&&vb(m,b,L)<0&&n.push([m.data,b.data,L.data])}),n},links:function(){return this.edges.filter(function(n){return n.right}).map(function(n){return{source:n.left.data,target:n.right.data}})},find:function(n,i,o){for(var s,l,d=this,b=d._found||0,m=d.cells.length;!(l=d.cells[b]);)if(++b>=m)return null;var w=n-l.site[0],E=i-l.site[1],L=w*w+E*E;do l=d.cells[s=b],b=null,l.halfedges.forEach(function(j){var D=d.edges[j],q=D.left;if(q!==l.site&&q||(q=D.right)){var W=n-q[0],U=i-q[1],V=W*W+U*U;V<L&&(L=V,b=q.index)}});while(b!==null);return d._found=s,o==null||L<=o*o?l.site:null}},sc.prototype={constructor:sc,scale:function(n){return n===1?this:new sc(this.k*n,this.x,this.y)},translate:function(n,i){return n===0&i===0?this:new sc(this.k,this.x+this.k*n,this.y+this.k*i)},apply:function(n){return[n[0]*this.k+this.x,n[1]*this.k+this.y]},applyX:function(n){return n*this.k+this.x},applyY:function(n){return n*this.k+this.y},invert:function(n){return[(n[0]-this.x)/this.k,(n[1]-this.y)/this.k]},invertX:function(n){return(n-this.x)/this.k},invertY:function(n){return(n-this.y)/this.k},rescaleX:function(n){return n.copy().domain(n.range().map(this.invertX,this).map(n.invert,n))},rescaleY:function(n){return n.copy().domain(n.range().map(this.invertY,this).map(n.invert,n))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var b0=new sc(1,0,0);function bb(n){for(;!n.__zoom;)if(!(n=n.parentNode))return b0;return n.__zoom}function Eu(){we.stopImmediatePropagation()}function U1(){we.preventDefault(),we.stopImmediatePropagation()}function Es(){return!we.ctrlKey&&!we.button}function F_(){var n=this;return n instanceof SVGElement?(n=n.ownerSVGElement||n).hasAttribute("viewBox")?[[(n=n.viewBox.baseVal).x,n.y],[n.x+n.width,n.y+n.height]]:[[0,0],[n.width.baseVal.value,n.height.baseVal.value]]:[[0,0],[n.clientWidth,n.clientHeight]]}function _b(){return this.__zoom||b0}function P_(){return-we.deltaY*(we.deltaMode===1?.05:we.deltaMode?1:.002)}function xb(){return navigator.maxTouchPoints||"ontouchstart"in this}function j_(n,i,o){var s=n.invertX(i[0][0])-o[0][0],l=n.invertX(i[1][0])-o[1][0],d=n.invertY(i[0][1])-o[0][1],b=n.invertY(i[1][1])-o[1][1];return n.translate(l>s?(s+l)/2:Math.min(0,s)||Math.max(0,l),b>d?(d+b)/2:Math.min(0,d)||Math.max(0,b))}function Y_(){var n,i,o=Es,s=F_,l=j_,d=P_,b=xb,m=[0,1/0],w=[[-1/0,-1/0],[1/0,1/0]],E=250,L=yd,j=Ze("start","zoom","end"),D=500,q=0;function W(ht){ht.property("__zoom",_b).on("wheel.zoom",Pt).on("mousedown.zoom",Vt).on("dblclick.zoom",Jt).filter(b).on("touchstart.zoom",ke).on("touchmove.zoom",Yt).on("touchend.zoom touchcancel.zoom",ce).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function U(ht,Ct){return(Ct=Math.max(m[0],Math.min(m[1],Ct)))===ht.k?ht:new sc(Ct,ht.x,ht.y)}function V(ht,Ct,ne){var Qt=Ct[0]-ne[0]*ht.k,ie=Ct[1]-ne[1]*ht.k;return Qt===ht.x&&ie===ht.y?ht:new sc(ht.k,Qt,ie)}function Z(ht){return[(+ht[0][0]+ +ht[1][0])/2,(+ht[0][1]+ +ht[1][1])/2]}function it(ht,Ct,ne){ht.on("start.zoom",function(){rt(this,arguments).start()}).on("interrupt.zoom end.zoom",function(){rt(this,arguments).end()}).tween("zoom",function(){var Qt=this,ie=arguments,Fe=rt(Qt,ie),Ke=s.apply(Qt,ie),Tn=ne==null?Z(Ke):typeof ne=="function"?ne.apply(Qt,ie):ne,Sn=Math.max(Ke[1][0]-Ke[0][0],Ke[1][1]-Ke[0][1]),ar=Qt.__zoom,on=typeof Ct=="function"?Ct.apply(Qt,ie):Ct,yr=L(ar.invert(Tn).concat(Sn/ar.k),on.invert(Tn).concat(Sn/on.k));return function(In){if(In===1)In=on;else{var Nn=yr(In),dr=Sn/Nn[2];In=new sc(dr,Tn[0]-Nn[0]*dr,Tn[1]-Nn[1]*dr)}Fe.zoom(null,In)}})}function rt(ht,Ct,ne){return!ne&&ht.__zooming||new dt(ht,Ct)}function dt(ht,Ct){this.that=ht,this.args=Ct,this.active=0,this.extent=s.apply(ht,Ct),this.taps=0}function Pt(){if(o.apply(this,arguments)){var ht=rt(this,arguments),Ct=this.__zoom,ne=Math.max(m[0],Math.min(m[1],Ct.k*Math.pow(2,d.apply(this,arguments)))),Qt=As(this);if(ht.wheel)ht.mouse[0][0]===Qt[0]&&ht.mouse[0][1]===Qt[1]||(ht.mouse[1]=Ct.invert(ht.mouse[0]=Qt)),clearTimeout(ht.wheel);else{if(Ct.k===ne)return;ht.mouse=[Qt,Ct.invert(Qt)],fa(this),ht.start()}U1(),ht.wheel=setTimeout(ie,150),ht.zoom("mouse",l(V(U(Ct,ne),ht.mouse[0],ht.mouse[1]),ht.extent,w))}function ie(){ht.wheel=null,ht.end()}}function Vt(){if(!i&&o.apply(this,arguments)){var ht=rt(this,arguments,!0),Ct=$r(we.view).on("mousemove.zoom",Fe,!0).on("mouseup.zoom",Ke,!0),ne=As(this),Qt=we.clientX,ie=we.clientY;ji(we.view),Eu(),ht.mouse=[ne,this.__zoom.invert(ne)],fa(this),ht.start()}function Fe(){if(U1(),!ht.moved){var Tn=we.clientX-Qt,Sn=we.clientY-ie;ht.moved=Tn*Tn+Sn*Sn>q}ht.zoom("mouse",l(V(ht.that.__zoom,ht.mouse[0]=As(ht.that),ht.mouse[1]),ht.extent,w))}function Ke(){Ct.on("mousemove.zoom mouseup.zoom",null),Mr(we.view,ht.moved),U1(),ht.end()}}function Jt(){if(o.apply(this,arguments)){var ht=this.__zoom,Ct=As(this),ne=ht.invert(Ct),Qt=ht.k*(we.shiftKey?.5:2),ie=l(V(U(ht,Qt),Ct,ne),s.apply(this,arguments),w);U1(),E>0?$r(this).transition().duration(E).call(it,ie,Ct):$r(this).call(W.transform,ie)}}function ke(){if(o.apply(this,arguments)){var ht,Ct,ne,Qt,ie=we.touches,Fe=ie.length,Ke=rt(this,arguments,we.changedTouches.length===Fe);for(Eu(),Ct=0;Ct<Fe;++Ct)Qt=[Qt=ha(this,ie,(ne=ie[Ct]).identifier),this.__zoom.invert(Qt),ne.identifier],Ke.touch0?Ke.touch1||Ke.touch0[2]===Qt[2]||(Ke.touch1=Qt,Ke.taps=0):(Ke.touch0=Qt,ht=!0,Ke.taps=1+!!n);n&&(n=clearTimeout(n)),ht&&(Ke.taps<2&&(n=setTimeout(function(){n=null},D)),fa(this),Ke.start())}}function Yt(){if(this.__zooming){var ht,Ct,ne,Qt,ie=rt(this,arguments),Fe=we.changedTouches,Ke=Fe.length;for(U1(),n&&(n=clearTimeout(n)),ie.taps=0,ht=0;ht<Ke;++ht)ne=ha(this,Fe,(Ct=Fe[ht]).identifier),ie.touch0&&ie.touch0[2]===Ct.identifier?ie.touch0[0]=ne:ie.touch1&&ie.touch1[2]===Ct.identifier&&(ie.touch1[0]=ne);if(Ct=ie.that.__zoom,ie.touch1){var Tn=ie.touch0[0],Sn=ie.touch0[1],ar=ie.touch1[0],on=ie.touch1[1],yr=(yr=ar[0]-Tn[0])*yr+(yr=ar[1]-Tn[1])*yr,In=(In=on[0]-Sn[0])*In+(In=on[1]-Sn[1])*In;Ct=U(Ct,Math.sqrt(yr/In)),ne=[(Tn[0]+ar[0])/2,(Tn[1]+ar[1])/2],Qt=[(Sn[0]+on[0])/2,(Sn[1]+on[1])/2]}else{if(!ie.touch0)return;ne=ie.touch0[0],Qt=ie.touch0[1]}ie.zoom("touch",l(V(Ct,ne,Qt),ie.extent,w))}}function ce(){if(this.__zooming){var ht,Ct,ne=rt(this,arguments),Qt=we.changedTouches,ie=Qt.length;for(Eu(),i&&clearTimeout(i),i=setTimeout(function(){i=null},D),ht=0;ht<ie;++ht)Ct=Qt[ht],ne.touch0&&ne.touch0[2]===Ct.identifier?delete ne.touch0:ne.touch1&&ne.touch1[2]===Ct.identifier&&delete ne.touch1;if(ne.touch1&&!ne.touch0&&(ne.touch0=ne.touch1,delete ne.touch1),ne.touch0)ne.touch0[1]=this.__zoom.invert(ne.touch0[0]);else if(ne.end(),ne.taps===2){var Fe=$r(this).on("dblclick.zoom");Fe&&Fe.apply(this,arguments)}}}return W.transform=function(ht,Ct,ne){var Qt=ht.selection?ht.selection():ht;Qt.property("__zoom",_b),ht!==Qt?it(ht,Ct,ne):Qt.interrupt().each(function(){rt(this,arguments).start().zoom(null,typeof Ct=="function"?Ct.apply(this,arguments):Ct).end()})},W.scaleBy=function(ht,Ct,ne){W.scaleTo(ht,function(){var Qt=this.__zoom.k,ie=typeof Ct=="function"?Ct.apply(this,arguments):Ct;return Qt*ie},ne)},W.scaleTo=function(ht,Ct,ne){W.transform(ht,function(){var Qt=s.apply(this,arguments),ie=this.__zoom,Fe=ne==null?Z(Qt):typeof ne=="function"?ne.apply(this,arguments):ne,Ke=ie.invert(Fe),Tn=typeof Ct=="function"?Ct.apply(this,arguments):Ct;return l(V(U(ie,Tn),Fe,Ke),Qt,w)},ne)},W.translateBy=function(ht,Ct,ne){W.transform(ht,function(){return l(this.__zoom.translate(typeof Ct=="function"?Ct.apply(this,arguments):Ct,typeof ne=="function"?ne.apply(this,arguments):ne),s.apply(this,arguments),w)})},W.translateTo=function(ht,Ct,ne,Qt){W.transform(ht,function(){var ie=s.apply(this,arguments),Fe=this.__zoom,Ke=Qt==null?Z(ie):typeof Qt=="function"?Qt.apply(this,arguments):Qt;return l(b0.translate(Ke[0],Ke[1]).scale(Fe.k).translate(typeof Ct=="function"?-Ct.apply(this,arguments):-Ct,typeof ne=="function"?-ne.apply(this,arguments):-ne),ie,w)},Qt)},dt.prototype={start:function(){return++this.active==1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(ht,Ct){return this.mouse&&ht!=="mouse"&&(this.mouse[1]=Ct.invert(this.mouse[0])),this.touch0&&ht!=="touch"&&(this.touch0[1]=Ct.invert(this.touch0[0])),this.touch1&&ht!=="touch"&&(this.touch1[1]=Ct.invert(this.touch1[0])),this.that.__zoom=Ct,this.emit("zoom"),this},end:function(){return--this.active==0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(ht){zr(new R_(W,ht,this.that.__zoom),j.apply,j,[ht,this.that,this.args])}},W.wheelDelta=function(ht){return arguments.length?(d=typeof ht=="function"?ht:z1(+ht),W):d},W.filter=function(ht){return arguments.length?(o=typeof ht=="function"?ht:z1(!!ht),W):o},W.touchable=function(ht){return arguments.length?(b=typeof ht=="function"?ht:z1(!!ht),W):b},W.extent=function(ht){return arguments.length?(s=typeof ht=="function"?ht:z1([[+ht[0][0],+ht[0][1]],[+ht[1][0],+ht[1][1]]]),W):s},W.scaleExtent=function(ht){return arguments.length?(m[0]=+ht[0],m[1]=+ht[1],W):[m[0],m[1]]},W.translateExtent=function(ht){return arguments.length?(w[0][0]=+ht[0][0],w[1][0]=+ht[1][0],w[0][1]=+ht[0][1],w[1][1]=+ht[1][1],W):[[w[0][0],w[0][1]],[w[1][0],w[1][1]]]},W.constrain=function(ht){return arguments.length?(l=ht,W):l},W.duration=function(ht){return arguments.length?(E=+ht,W):E},W.interpolate=function(ht){return arguments.length?(L=ht,W):L},W.on=function(){var ht=j.on.apply(j,arguments);return ht===j?W:ht},W.clickDistance=function(ht){return arguments.length?(q=(ht=+ht)*ht,W):Math.sqrt(q)},W}bb.prototype=sc.prototype},681:(S,O,p)=>{S.exports={graphlib:p(574),layout:p(8123),debug:p(7570),util:{time:p(1138).time,notime:p(1138).notime},version:p(8177)}},2188:(S,O,p)=>{var v=p(8436),f=p(4079);S.exports={run:function(k){var y=k.graph().acyclicer==="greedy"?f(k,function(C){return function(A){return C.edge(A).weight}}(k)):function(C){var A=[],M={},R={};return v.forEach(C.nodes(),function B(Y){v.has(R,Y)||(R[Y]=!0,M[Y]=!0,v.forEach(C.outEdges(Y),function(G){v.has(M,G.w)?A.push(G):B(G.w)}),delete M[Y])}),A}(k);v.forEach(y,function(C){var A=k.edge(C);k.removeEdge(C),A.forwardName=C.name,A.reversed=!0,k.setEdge(C.w,C.v,A,v.uniqueId("rev"))})},undo:function(k){v.forEach(k.edges(),function(y){var C=k.edge(y);if(C.reversed){k.removeEdge(y);var A=C.forwardName;delete C.reversed,delete C.forwardName,k.setEdge(y.w,y.v,C,A)}})}}},1133:(S,O,p)=>{var v=p(8436),f=p(1138);function k(y,C,A,M,R,B){var Y={width:0,height:0,rank:B,borderType:C},G=R[C][B-1],Q=f.addDummyNode(y,"border",Y,A);R[C][B]=Q,y.setParent(Q,M),G&&y.setEdge(G,Q,{weight:1})}S.exports=function(y){v.forEach(y.children(),function C(A){var M=y.children(A),R=y.node(A);if(M.length&&v.forEach(M,C),v.has(R,"minRank")){R.borderLeft=[],R.borderRight=[];for(var B=R.minRank,Y=R.maxRank+1;B<Y;++B)k(y,"borderLeft","_bl",A,R,B),k(y,"borderRight","_br",A,R,B)}})}},3258:(S,O,p)=>{var v=p(8436);function f(A){v.forEach(A.nodes(),function(M){k(A.node(M))}),v.forEach(A.edges(),function(M){k(A.edge(M))})}function k(A){var M=A.width;A.width=A.height,A.height=M}function y(A){A.y=-A.y}function C(A){var M=A.x;A.x=A.y,A.y=M}S.exports={adjust:function(A){var M=A.graph().rankdir.toLowerCase();M!=="lr"&&M!=="rl"||f(A)},undo:function(A){var M=A.graph().rankdir.toLowerCase();M!=="bt"&&M!=="rl"||function(R){v.forEach(R.nodes(),function(B){y(R.node(B))}),v.forEach(R.edges(),function(B){var Y=R.edge(B);v.forEach(Y.points,y),v.has(Y,"y")&&y(Y)})}(A),M!=="lr"&&M!=="rl"||(function(R){v.forEach(R.nodes(),function(B){C(R.node(B))}),v.forEach(R.edges(),function(B){var Y=R.edge(B);v.forEach(Y.points,C),v.has(Y,"x")&&C(Y)})}(A),f(A))}}},7822:S=>{function O(){var f={};f._next=f._prev=f,this._sentinel=f}function p(f){f._prev._next=f._next,f._next._prev=f._prev,delete f._next,delete f._prev}function v(f,k){if(f!=="_next"&&f!=="_prev")return k}S.exports=O,O.prototype.dequeue=function(){var f=this._sentinel,k=f._prev;if(k!==f)return p(k),k},O.prototype.enqueue=function(f){var k=this._sentinel;f._prev&&f._next&&p(f),f._next=k._next,k._next._prev=f,k._next=f,f._prev=k},O.prototype.toString=function(){for(var f=[],k=this._sentinel,y=k._prev;y!==k;)f.push(JSON.stringify(y,v)),y=y._prev;return"["+f.join(", ")+"]"}},7570:(S,O,p)=>{var v=p(8436),f=p(1138),k=p(574).Graph;S.exports={debugOrdering:function(y){var C=f.buildLayerMatrix(y),A=new k({compound:!0,multigraph:!0}).setGraph({});return v.forEach(y.nodes(),function(M){A.setNode(M,{label:M}),A.setParent(M,"layer"+y.node(M).rank)}),v.forEach(y.edges(),function(M){A.setEdge(M.v,M.w,{},M.name)}),v.forEach(C,function(M,R){var B="layer"+R;A.setNode(B,{rank:"same"}),v.reduce(M,function(Y,G){return A.setEdge(Y,G,{style:"invis"}),G})}),A}}},574:(S,O,p)=>{var v;try{v=p(8282)}catch{}v||(v=window.graphlib),S.exports=v},4079:(S,O,p)=>{var v=p(8436),f=p(574).Graph,k=p(7822);S.exports=function(M,R){if(M.nodeCount()<=1)return[];var B=function(G,Q){var K=new f,gt=0,tt=0;v.forEach(G.nodes(),function(vt){K.setNode(vt,{v:vt,in:0,out:0})}),v.forEach(G.edges(),function(vt){var At=K.edge(vt.v,vt.w)||0,Zt=Q(vt),zt=At+Zt;K.setEdge(vt.v,vt.w,zt),tt=Math.max(tt,K.node(vt.v).out+=Zt),gt=Math.max(gt,K.node(vt.w).in+=Zt)});var Lt=v.range(tt+gt+3).map(function(){return new k}),at=gt+1;return v.forEach(K.nodes(),function(vt){A(Lt,at,K.node(vt))}),{graph:K,buckets:Lt,zeroIdx:at}}(M,R||y),Y=function(G,Q,K){for(var gt,tt=[],Lt=Q[Q.length-1],at=Q[0];G.nodeCount();){for(;gt=at.dequeue();)C(G,Q,K,gt);for(;gt=Lt.dequeue();)C(G,Q,K,gt);if(G.nodeCount()){for(var vt=Q.length-2;vt>0;--vt)if(gt=Q[vt].dequeue()){tt=tt.concat(C(G,Q,K,gt,!0));break}}}return tt}(B.graph,B.buckets,B.zeroIdx);return v.flatten(v.map(Y,function(G){return M.outEdges(G.v,G.w)}),!0)};var y=v.constant(1);function C(M,R,B,Y,G){var Q=G?[]:void 0;return v.forEach(M.inEdges(Y.v),function(K){var gt=M.edge(K),tt=M.node(K.v);G&&Q.push({v:K.v,w:K.w}),tt.out-=gt,A(R,B,tt)}),v.forEach(M.outEdges(Y.v),function(K){var gt=M.edge(K),tt=K.w,Lt=M.node(tt);Lt.in-=gt,A(R,B,Lt)}),M.removeNode(Y.v),Q}function A(M,R,B){B.out?B.in?M[B.out-B.in+R].enqueue(B):M[M.length-1].enqueue(B):M[0].enqueue(B)}},8123:(S,O,p)=>{var v=p(8436),f=p(2188),k=p(5995),y=p(8093),C=p(1138).normalizeRanks,A=p(4219),M=p(1138).removeEmptyRanks,R=p(2981),B=p(1133),Y=p(3258),G=p(3408),Q=p(7873),K=p(1138),gt=p(574).Graph;S.exports=function(lt,et){var st=et&&et.debugTiming?K.time:K.notime;st("layout",function(){var $=st(" buildLayoutGraph",function(){return function(Dt){var z=new gt({multigraph:!0,compound:!0}),Kt=Bt(Dt.graph());return z.setGraph(v.merge({},Lt,jt(Kt,tt),v.pick(Kt,at))),v.forEach(Dt.nodes(),function(_t){var ae=Bt(Dt.node(_t));z.setNode(_t,v.defaults(jt(ae,vt),At)),z.setParent(_t,Dt.parent(_t))}),v.forEach(Dt.edges(),function(_t){var ae=Bt(Dt.edge(_t));z.setEdge(_t,v.merge({},zt,jt(ae,Zt),v.pick(ae,xt)))}),z}(lt)});st(" runLayout",function(){(function(Dt,z){z(" makeSpaceForEdgeLabels",function(){(function(Kt){var _t=Kt.graph();_t.ranksep/=2,v.forEach(Kt.edges(),function(ae){var Ee=Kt.edge(ae);Ee.minlen*=2,Ee.labelpos.toLowerCase()!=="c"&&(_t.rankdir==="TB"||_t.rankdir==="BT"?Ee.width+=Ee.labeloffset:Ee.height+=Ee.labeloffset)})})(Dt)}),z(" removeSelfEdges",function(){(function(Kt){v.forEach(Kt.edges(),function(_t){if(_t.v===_t.w){var ae=Kt.node(_t.v);ae.selfEdges||(ae.selfEdges=[]),ae.selfEdges.push({e:_t,label:Kt.edge(_t)}),Kt.removeEdge(_t)}})})(Dt)}),z(" acyclic",function(){f.run(Dt)}),z(" nestingGraph.run",function(){R.run(Dt)}),z(" rank",function(){y(K.asNonCompoundGraph(Dt))}),z(" injectEdgeLabelProxies",function(){(function(Kt){v.forEach(Kt.edges(),function(_t){var ae=Kt.edge(_t);if(ae.width&&ae.height){var Ee=Kt.node(_t.v),Pe={rank:(Kt.node(_t.w).rank-Ee.rank)/2+Ee.rank,e:_t};K.addDummyNode(Kt,"edge-proxy",Pe,"_ep")}})})(Dt)}),z(" removeEmptyRanks",function(){M(Dt)}),z(" nestingGraph.cleanup",function(){R.cleanup(Dt)}),z(" normalizeRanks",function(){C(Dt)}),z(" assignRankMinMax",function(){(function(Kt){var _t=0;v.forEach(Kt.nodes(),function(ae){var Ee=Kt.node(ae);Ee.borderTop&&(Ee.minRank=Kt.node(Ee.borderTop).rank,Ee.maxRank=Kt.node(Ee.borderBottom).rank,_t=v.max(_t,Ee.maxRank))}),Kt.graph().maxRank=_t})(Dt)}),z(" removeEdgeLabelProxies",function(){(function(Kt){v.forEach(Kt.nodes(),function(_t){var ae=Kt.node(_t);ae.dummy==="edge-proxy"&&(Kt.edge(ae.e).labelRank=ae.rank,Kt.removeNode(_t))})})(Dt)}),z(" normalize.run",function(){k.run(Dt)}),z(" parentDummyChains",function(){A(Dt)}),z(" addBorderSegments",function(){B(Dt)}),z(" order",function(){G(Dt)}),z(" insertSelfEdges",function(){(function(Kt){var _t=K.buildLayerMatrix(Kt);v.forEach(_t,function(ae){var Ee=0;v.forEach(ae,function(Pe,le){var oe=Kt.node(Pe);oe.order=le+Ee,v.forEach(oe.selfEdges,function(he){K.addDummyNode(Kt,"selfedge",{width:he.label.width,height:he.label.height,rank:oe.rank,order:le+ ++Ee,e:he.e,label:he.label},"_se")}),delete oe.selfEdges})})})(Dt)}),z(" adjustCoordinateSystem",function(){Y.adjust(Dt)}),z(" position",function(){Q(Dt)}),z(" positionSelfEdges",function(){(function(Kt){v.forEach(Kt.nodes(),function(_t){var ae=Kt.node(_t);if(ae.dummy==="selfedge"){var Ee=Kt.node(ae.e.v),Pe=Ee.x+Ee.width/2,le=Ee.y,oe=ae.x-Pe,he=Ee.height/2;Kt.setEdge(ae.e,ae.label),Kt.removeNode(_t),ae.label.points=[{x:Pe+2*oe/3,y:le-he},{x:Pe+5*oe/6,y:le-he},{x:Pe+oe,y:le},{x:Pe+5*oe/6,y:le+he},{x:Pe+2*oe/3,y:le+he}],ae.label.x=ae.x,ae.label.y=ae.y}})})(Dt)}),z(" removeBorderNodes",function(){(function(Kt){v.forEach(Kt.nodes(),function(_t){if(Kt.children(_t).length){var ae=Kt.node(_t),Ee=Kt.node(ae.borderTop),Pe=Kt.node(ae.borderBottom),le=Kt.node(v.last(ae.borderLeft)),oe=Kt.node(v.last(ae.borderRight));ae.width=Math.abs(oe.x-le.x),ae.height=Math.abs(Pe.y-Ee.y),ae.x=le.x+ae.width/2,ae.y=Ee.y+ae.height/2}}),v.forEach(Kt.nodes(),function(_t){Kt.node(_t).dummy==="border"&&Kt.removeNode(_t)})})(Dt)}),z(" normalize.undo",function(){k.undo(Dt)}),z(" fixupEdgeLabelCoords",function(){(function(Kt){v.forEach(Kt.edges(),function(_t){var ae=Kt.edge(_t);if(v.has(ae,"x"))switch(ae.labelpos!=="l"&&ae.labelpos!=="r"||(ae.width-=ae.labeloffset),ae.labelpos){case"l":ae.x-=ae.width/2+ae.labeloffset;break;case"r":ae.x+=ae.width/2+ae.labeloffset}})})(Dt)}),z(" undoCoordinateSystem",function(){Y.undo(Dt)}),z(" translateGraph",function(){(function(Kt){var _t=Number.POSITIVE_INFINITY,ae=0,Ee=Number.POSITIVE_INFINITY,Pe=0,le=Kt.graph(),oe=le.marginx||0,he=le.marginy||0;function be(Ne){var de=Ne.x,Se=Ne.y,te=Ne.width,_e=Ne.height;_t=Math.min(_t,de-te/2),ae=Math.max(ae,de+te/2),Ee=Math.min(Ee,Se-_e/2),Pe=Math.max(Pe,Se+_e/2)}v.forEach(Kt.nodes(),function(Ne){be(Kt.node(Ne))}),v.forEach(Kt.edges(),function(Ne){var de=Kt.edge(Ne);v.has(de,"x")&&be(de)}),_t-=oe,Ee-=he,v.forEach(Kt.nodes(),function(Ne){var de=Kt.node(Ne);de.x-=_t,de.y-=Ee}),v.forEach(Kt.edges(),function(Ne){var de=Kt.edge(Ne);v.forEach(de.points,function(Se){Se.x-=_t,Se.y-=Ee}),v.has(de,"x")&&(de.x-=_t),v.has(de,"y")&&(de.y-=Ee)}),le.width=ae-_t+oe,le.height=Pe-Ee+he})(Dt)}),z(" assignNodeIntersects",function(){(function(Kt){v.forEach(Kt.edges(),function(_t){var ae,Ee,Pe=Kt.edge(_t),le=Kt.node(_t.v),oe=Kt.node(_t.w);Pe.points?(ae=Pe.points[0],Ee=Pe.points[Pe.points.length-1]):(Pe.points=[],ae=oe,Ee=le),Pe.points.unshift(K.intersectRect(le,ae)),Pe.points.push(K.intersectRect(oe,Ee))})})(Dt)}),z(" reversePoints",function(){(function(Kt){v.forEach(Kt.edges(),function(_t){var ae=Kt.edge(_t);ae.reversed&&ae.points.reverse()})})(Dt)}),z(" acyclic.undo",function(){f.undo(Dt)})})($,st)}),st(" updateInputGraph",function(){(function(Dt,z){v.forEach(Dt.nodes(),function(Kt){var _t=Dt.node(Kt),ae=z.node(Kt);_t&&(_t.x=ae.x,_t.y=ae.y,z.children(Kt).length&&(_t.width=ae.width,_t.height=ae.height))}),v.forEach(Dt.edges(),function(Kt){var _t=Dt.edge(Kt),ae=z.edge(Kt);_t.points=ae.points,v.has(ae,"x")&&(_t.x=ae.x,_t.y=ae.y)}),Dt.graph().width=z.graph().width,Dt.graph().height=z.graph().height})(lt,$)})})};var tt=["nodesep","edgesep","ranksep","marginx","marginy"],Lt={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},at=["acyclicer","ranker","rankdir","align"],vt=["width","height"],At={width:0,height:0},Zt=["minlen","weight","width","height","labeloffset"],zt={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},xt=["labelpos"];function jt(lt,et){return v.mapValues(v.pick(lt,et),Number)}function Bt(lt){var et={};return v.forEach(lt,function(st,$){et[$.toLowerCase()]=st}),et}},8436:(S,O,p)=>{var v;try{v={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{}v||(v=window._),S.exports=v},2981:(S,O,p)=>{var v=p(8436),f=p(1138);function k(y,C,A,M,R,B,Y){var G=y.children(Y);if(G.length){var Q=f.addBorderNode(y,"_bt"),K=f.addBorderNode(y,"_bb"),gt=y.node(Y);y.setParent(Q,Y),gt.borderTop=Q,y.setParent(K,Y),gt.borderBottom=K,v.forEach(G,function(tt){k(y,C,A,M,R,B,tt);var Lt=y.node(tt),at=Lt.borderTop?Lt.borderTop:tt,vt=Lt.borderBottom?Lt.borderBottom:tt,At=Lt.borderTop?M:2*M,Zt=at!==vt?1:R-B[Y]+1;y.setEdge(Q,at,{weight:At,minlen:Zt,nestingEdge:!0}),y.setEdge(vt,K,{weight:At,minlen:Zt,nestingEdge:!0})}),y.parent(Y)||y.setEdge(C,Q,{weight:0,minlen:R+B[Y]})}else Y!==C&&y.setEdge(C,Y,{weight:0,minlen:A})}S.exports={run:function(y){var C=f.addDummyNode(y,"root",{},"_root"),A=function(Y){var G={};function Q(K,gt){var tt=Y.children(K);tt&&tt.length&&v.forEach(tt,function(Lt){Q(Lt,gt+1)}),G[K]=gt}return v.forEach(Y.children(),function(K){Q(K,1)}),G}(y),M=v.max(v.values(A))-1,R=2*M+1;y.graph().nestingRoot=C,v.forEach(y.edges(),function(Y){y.edge(Y).minlen*=R});var B=function(Y){return v.reduce(Y.edges(),function(G,Q){return G+Y.edge(Q).weight},0)}(y)+1;v.forEach(y.children(),function(Y){k(y,C,R,B,M,A,Y)}),y.graph().nodeRankFactor=R},cleanup:function(y){var C=y.graph();y.removeNode(C.nestingRoot),delete C.nestingRoot,v.forEach(y.edges(),function(A){y.edge(A).nestingEdge&&y.removeEdge(A)})}}},5995:(S,O,p)=>{var v=p(8436),f=p(1138);S.exports={run:function(k){k.graph().dummyChains=[],v.forEach(k.edges(),function(y){(function(C,A){var M,R,B,Y=A.v,G=C.node(Y).rank,Q=A.w,K=C.node(Q).rank,gt=A.name,tt=C.edge(A),Lt=tt.labelRank;if(K!==G+1){for(C.removeEdge(A),B=0,++G;G<K;++B,++G)tt.points=[],R={width:0,height:0,edgeLabel:tt,edgeObj:A,rank:G},M=f.addDummyNode(C,"edge",R,"_d"),G===Lt&&(R.width=tt.width,R.height=tt.height,R.dummy="edge-label",R.labelpos=tt.labelpos),C.setEdge(Y,M,{weight:tt.weight},gt),B===0&&C.graph().dummyChains.push(M),Y=M;C.setEdge(Y,Q,{weight:tt.weight},gt)}})(k,y)})},undo:function(k){v.forEach(k.graph().dummyChains,function(y){var C,A=k.node(y),M=A.edgeLabel;for(k.setEdge(A.edgeObj,M);A.dummy;)C=k.successors(y)[0],k.removeNode(y),M.points.push({x:A.x,y:A.y}),A.dummy==="edge-label"&&(M.x=A.x,M.y=A.y,M.width=A.width,M.height=A.height),y=C,A=k.node(y)})}}},5093:(S,O,p)=>{var v=p(8436);S.exports=function(f,k,y){var C,A={};v.forEach(y,function(M){for(var R,B,Y=f.parent(M);Y;){if((R=f.parent(Y))?(B=A[R],A[R]=Y):(B=C,C=Y),B&&B!==Y)return void k.setEdge(B,Y);Y=R}})}},5439:(S,O,p)=>{var v=p(8436);S.exports=function(f,k){return v.map(k,function(y){var C=f.inEdges(y);if(C.length){var A=v.reduce(C,function(M,R){var B=f.edge(R),Y=f.node(R.v);return{sum:M.sum+B.weight*Y.order,weight:M.weight+B.weight}},{sum:0,weight:0});return{v:y,barycenter:A.sum/A.weight,weight:A.weight}}return{v:y}})}},3128:(S,O,p)=>{var v=p(8436),f=p(574).Graph;S.exports=function(k,y,C){var A=function(R){for(var B;R.hasNode(B=v.uniqueId("_root")););return B}(k),M=new f({compound:!0}).setGraph({root:A}).setDefaultNodeLabel(function(R){return k.node(R)});return v.forEach(k.nodes(),function(R){var B=k.node(R),Y=k.parent(R);(B.rank===y||B.minRank<=y&&y<=B.maxRank)&&(M.setNode(R),M.setParent(R,Y||A),v.forEach(k[C](R),function(G){var Q=G.v===R?G.w:G.v,K=M.edge(Q,R),gt=v.isUndefined(K)?0:K.weight;M.setEdge(Q,R,{weight:k.edge(G).weight+gt})}),v.has(B,"minRank")&&M.setNode(R,{borderLeft:B.borderLeft[y],borderRight:B.borderRight[y]}))}),M}},6630:(S,O,p)=>{var v=p(8436);function f(k,y,C){for(var A=v.zipObject(C,v.map(C,function(Q,K){return K})),M=v.flatten(v.map(y,function(Q){return v.sortBy(v.map(k.outEdges(Q),function(K){return{pos:A[K.w],weight:k.edge(K).weight}}),"pos")}),!0),R=1;R<C.length;)R<<=1;var B=2*R-1;R-=1;var Y=v.map(new Array(B),function(){return 0}),G=0;return v.forEach(M.forEach(function(Q){var K=Q.pos+R;Y[K]+=Q.weight;for(var gt=0;K>0;)K%2&&(gt+=Y[K+1]),Y[K=K-1>>1]+=Q.weight;G+=Q.weight*gt})),G}S.exports=function(k,y){for(var C=0,A=1;A<y.length;++A)C+=f(k,y[A-1],y[A]);return C}},3408:(S,O,p)=>{var v=p(8436),f=p(2588),k=p(6630),y=p(1026),C=p(3128),A=p(5093),M=p(574).Graph,R=p(1138);function B(Q,K,gt){return v.map(K,function(tt){return C(Q,tt,gt)})}function Y(Q,K){var gt=new M;v.forEach(Q,function(tt){var Lt=tt.graph().root,at=y(tt,Lt,gt,K);v.forEach(at.vs,function(vt,At){tt.node(vt).order=At}),A(tt,gt,at.vs)})}function G(Q,K){v.forEach(K,function(gt){v.forEach(gt,function(tt,Lt){Q.node(tt).order=Lt})})}S.exports=function(Q){var K=R.maxRank(Q),gt=B(Q,v.range(1,K+1),"inEdges"),tt=B(Q,v.range(K-1,-1,-1),"outEdges"),Lt=f(Q);G(Q,Lt);for(var at,vt=Number.POSITIVE_INFINITY,At=0,Zt=0;Zt<4;++At,++Zt){Y(At%2?gt:tt,At%4>=2),Lt=R.buildLayerMatrix(Q);var zt=k(Q,Lt);zt<vt&&(Zt=0,at=v.cloneDeep(Lt),vt=zt)}G(Q,at)}},2588:(S,O,p)=>{var v=p(8436);S.exports=function(f){var k={},y=v.filter(f.nodes(),function(R){return!f.children(R).length}),C=v.max(v.map(y,function(R){return f.node(R).rank})),A=v.map(v.range(C+1),function(){return[]}),M=v.sortBy(y,function(R){return f.node(R).rank});return v.forEach(M,function R(B){if(!v.has(k,B)){k[B]=!0;var Y=f.node(B);A[Y.rank].push(B),v.forEach(f.successors(B),R)}}),A}},9567:(S,O,p)=>{var v=p(8436);S.exports=function(f,k){var y={};return v.forEach(f,function(C,A){var M=y[C.v]={indegree:0,in:[],out:[],vs:[C.v],i:A};v.isUndefined(C.barycenter)||(M.barycenter=C.barycenter,M.weight=C.weight)}),v.forEach(k.edges(),function(C){var A=y[C.v],M=y[C.w];v.isUndefined(A)||v.isUndefined(M)||(M.indegree++,A.out.push(y[C.w]))}),function(C){var A=[];function M(Y){return function(G){var Q,K,gt,tt;G.merged||(v.isUndefined(G.barycenter)||v.isUndefined(Y.barycenter)||G.barycenter>=Y.barycenter)&&(K=G,gt=0,tt=0,(Q=Y).weight&&(gt+=Q.barycenter*Q.weight,tt+=Q.weight),K.weight&&(gt+=K.barycenter*K.weight,tt+=K.weight),Q.vs=K.vs.concat(Q.vs),Q.barycenter=gt/tt,Q.weight=tt,Q.i=Math.min(K.i,Q.i),K.merged=!0)}}function R(Y){return function(G){G.in.push(Y),--G.indegree==0&&C.push(G)}}for(;C.length;){var B=C.pop();A.push(B),v.forEach(B.in.reverse(),M(B)),v.forEach(B.out,R(B))}return v.map(v.filter(A,function(Y){return!Y.merged}),function(Y){return v.pick(Y,["vs","i","barycenter","weight"])})}(v.filter(y,function(C){return!C.indegree}))}},1026:(S,O,p)=>{var v=p(8436),f=p(5439),k=p(9567),y=p(7304);S.exports=function C(A,M,R,B){var Y=A.children(M),G=A.node(M),Q=G?G.borderLeft:void 0,K=G?G.borderRight:void 0,gt={};Q&&(Y=v.filter(Y,function(Zt){return Zt!==Q&&Zt!==K}));var tt=f(A,Y);v.forEach(tt,function(Zt){if(A.children(Zt.v).length){var zt=C(A,Zt.v,R,B);gt[Zt.v]=zt,v.has(zt,"barycenter")&&(xt=Zt,jt=zt,v.isUndefined(xt.barycenter)?(xt.barycenter=jt.barycenter,xt.weight=jt.weight):(xt.barycenter=(xt.barycenter*xt.weight+jt.barycenter*jt.weight)/(xt.weight+jt.weight),xt.weight+=jt.weight))}var xt,jt});var Lt=k(tt,R);(function(Zt,zt){v.forEach(Zt,function(xt){xt.vs=v.flatten(xt.vs.map(function(jt){return zt[jt]?zt[jt].vs:jt}),!0)})})(Lt,gt);var at=y(Lt,B);if(Q&&(at.vs=v.flatten([Q,at.vs,K],!0),A.predecessors(Q).length)){var vt=A.node(A.predecessors(Q)[0]),At=A.node(A.predecessors(K)[0]);v.has(at,"barycenter")||(at.barycenter=0,at.weight=0),at.barycenter=(at.barycenter*at.weight+vt.order+At.order)/(at.weight+2),at.weight+=2}return at}},7304:(S,O,p)=>{var v=p(8436),f=p(1138);function k(y,C,A){for(var M;C.length&&(M=v.last(C)).i<=A;)C.pop(),y.push(M.vs),A++;return A}S.exports=function(y,C){var A,M=f.partition(y,function(tt){return v.has(tt,"barycenter")}),R=M.lhs,B=v.sortBy(M.rhs,function(tt){return-tt.i}),Y=[],G=0,Q=0,K=0;R.sort((A=!!C,function(tt,Lt){return tt.barycenter<Lt.barycenter?-1:tt.barycenter>Lt.barycenter?1:A?Lt.i-tt.i:tt.i-Lt.i})),K=k(Y,B,K),v.forEach(R,function(tt){K+=tt.vs.length,Y.push(tt.vs),G+=tt.barycenter*tt.weight,Q+=tt.weight,K=k(Y,B,K)});var gt={vs:v.flatten(Y,!0)};return Q&&(gt.barycenter=G/Q,gt.weight=Q),gt}},4219:(S,O,p)=>{var v=p(8436);S.exports=function(f){var k=function(y){var C={},A=0;return v.forEach(y.children(),function M(R){var B=A;v.forEach(y.children(R),M),C[R]={low:B,lim:A++}}),C}(f);v.forEach(f.graph().dummyChains,function(y){for(var C=f.node(y),A=C.edgeObj,M=function(K,gt,tt,Lt){var at,vt,At=[],Zt=[],zt=Math.min(gt[tt].low,gt[Lt].low),xt=Math.max(gt[tt].lim,gt[Lt].lim);at=tt;do at=K.parent(at),At.push(at);while(at&&(gt[at].low>zt||xt>gt[at].lim));for(vt=at,at=Lt;(at=K.parent(at))!==vt;)Zt.push(at);return{path:At.concat(Zt.reverse()),lca:vt}}(f,k,A.v,A.w),R=M.path,B=M.lca,Y=0,G=R[Y],Q=!0;y!==A.w;){if(C=f.node(y),Q){for(;(G=R[Y])!==B&&f.node(G).maxRank<C.rank;)Y++;G===B&&(Q=!1)}if(!Q){for(;Y<R.length-1&&f.node(G=R[Y+1]).minRank<=C.rank;)Y++;G=R[Y]}f.setParent(y,G),y=f.successors(y)[0]}})}},3573:(S,O,p)=>{var v=p(8436),f=p(574).Graph,k=p(1138);function y(K,gt){var tt={};return v.reduce(gt,function(Lt,at){var vt=0,At=0,Zt=Lt.length,zt=v.last(at);return v.forEach(at,function(xt,jt){var Bt=function(et,st){if(et.node(st).dummy)return v.find(et.predecessors(st),function($){return et.node($).dummy})}(K,xt),lt=Bt?K.node(Bt).order:Zt;(Bt||xt===zt)&&(v.forEach(at.slice(At,jt+1),function(et){v.forEach(K.predecessors(et),function(st){var $=K.node(st),Dt=$.order;!(Dt<vt||lt<Dt)||$.dummy&&K.node(et).dummy||A(tt,st,et)})}),At=jt+1,vt=lt)}),at}),tt}function C(K,gt){var tt={};function Lt(at,vt,At,Zt,zt){var xt;v.forEach(v.range(vt,At),function(jt){xt=at[jt],K.node(xt).dummy&&v.forEach(K.predecessors(xt),function(Bt){var lt=K.node(Bt);lt.dummy&&(lt.order<Zt||lt.order>zt)&&A(tt,Bt,xt)})})}return v.reduce(gt,function(at,vt){var At,Zt=-1,zt=0;return v.forEach(vt,function(xt,jt){if(K.node(xt).dummy==="border"){var Bt=K.predecessors(xt);Bt.length&&(At=K.node(Bt[0]).order,Lt(vt,zt,jt,Zt,At),zt=jt,Zt=At)}Lt(vt,zt,vt.length,At,at.length)}),vt}),tt}function A(K,gt,tt){if(gt>tt){var Lt=gt;gt=tt,tt=Lt}var at=K[gt];at||(K[gt]=at={}),at[tt]=!0}function M(K,gt,tt){if(gt>tt){var Lt=gt;gt=tt,tt=Lt}return v.has(K[gt],tt)}function R(K,gt,tt,Lt){var at={},vt={},At={};return v.forEach(gt,function(Zt){v.forEach(Zt,function(zt,xt){at[zt]=zt,vt[zt]=zt,At[zt]=xt})}),v.forEach(gt,function(Zt){var zt=-1;v.forEach(Zt,function(xt){var jt=Lt(xt);if(jt.length){jt=v.sortBy(jt,function($){return At[$]});for(var Bt=(jt.length-1)/2,lt=Math.floor(Bt),et=Math.ceil(Bt);lt<=et;++lt){var st=jt[lt];vt[xt]===xt&&zt<At[st]&&!M(tt,xt,st)&&(vt[st]=xt,vt[xt]=at[xt]=at[st],zt=At[st])}}})}),{root:at,align:vt}}function B(K,gt,tt,Lt,at){var vt={},At=function(xt,jt,Bt,lt){var et=new f,st=xt.graph(),$=function(Dt,z,Kt){return function(_t,ae,Ee){var Pe,le=_t.node(ae),oe=_t.node(Ee),he=0;if(he+=le.width/2,v.has(le,"labelpos"))switch(le.labelpos.toLowerCase()){case"l":Pe=-le.width/2;break;case"r":Pe=le.width/2}if(Pe&&(he+=Kt?Pe:-Pe),Pe=0,he+=(le.dummy?z:Dt)/2,he+=(oe.dummy?z:Dt)/2,he+=oe.width/2,v.has(oe,"labelpos"))switch(oe.labelpos.toLowerCase()){case"l":Pe=oe.width/2;break;case"r":Pe=-oe.width/2}return Pe&&(he+=Kt?Pe:-Pe),Pe=0,he}}(st.nodesep,st.edgesep,lt);return v.forEach(jt,function(Dt){var z;v.forEach(Dt,function(Kt){var _t=Bt[Kt];if(et.setNode(_t),z){var ae=Bt[z],Ee=et.edge(ae,_t);et.setEdge(ae,_t,Math.max($(xt,Kt,z),Ee||0))}z=Kt})}),et}(K,gt,tt,at),Zt=at?"borderLeft":"borderRight";function zt(xt,jt){for(var Bt=At.nodes(),lt=Bt.pop(),et={};lt;)et[lt]?xt(lt):(et[lt]=!0,Bt.push(lt),Bt=Bt.concat(jt(lt))),lt=Bt.pop()}return zt(function(xt){vt[xt]=At.inEdges(xt).reduce(function(jt,Bt){return Math.max(jt,vt[Bt.v]+At.edge(Bt))},0)},At.predecessors.bind(At)),zt(function(xt){var jt=At.outEdges(xt).reduce(function(lt,et){return Math.min(lt,vt[et.w]-At.edge(et))},Number.POSITIVE_INFINITY),Bt=K.node(xt);jt!==Number.POSITIVE_INFINITY&&Bt.borderType!==Zt&&(vt[xt]=Math.max(vt[xt],jt))},At.successors.bind(At)),v.forEach(Lt,function(xt){vt[xt]=vt[tt[xt]]}),vt}function Y(K,gt){return v.minBy(v.values(gt),function(tt){var Lt=Number.NEGATIVE_INFINITY,at=Number.POSITIVE_INFINITY;return v.forIn(tt,function(vt,At){var Zt=function(zt,xt){return zt.node(xt).width}(K,At)/2;Lt=Math.max(vt+Zt,Lt),at=Math.min(vt-Zt,at)}),Lt-at})}function G(K,gt){var tt=v.values(gt),Lt=v.min(tt),at=v.max(tt);v.forEach(["u","d"],function(vt){v.forEach(["l","r"],function(At){var Zt,zt=vt+At,xt=K[zt];if(xt!==gt){var jt=v.values(xt);(Zt=At==="l"?Lt-v.min(jt):at-v.max(jt))&&(K[zt]=v.mapValues(xt,function(Bt){return Bt+Zt}))}})})}function Q(K,gt){return v.mapValues(K.ul,function(tt,Lt){if(gt)return K[gt.toLowerCase()][Lt];var at=v.sortBy(v.map(K,Lt));return(at[1]+at[2])/2})}S.exports={positionX:function(K){var gt,tt=k.buildLayerMatrix(K),Lt=v.merge(y(K,tt),C(K,tt)),at={};v.forEach(["u","d"],function(At){gt=At==="u"?tt:v.values(tt).reverse(),v.forEach(["l","r"],function(Zt){Zt==="r"&&(gt=v.map(gt,function(Bt){return v.values(Bt).reverse()}));var zt=(At==="u"?K.predecessors:K.successors).bind(K),xt=R(0,gt,Lt,zt),jt=B(K,gt,xt.root,xt.align,Zt==="r");Zt==="r"&&(jt=v.mapValues(jt,function(Bt){return-Bt})),at[At+Zt]=jt})});var vt=Y(K,at);return G(at,vt),Q(at,K.graph().align)},findType1Conflicts:y,findType2Conflicts:C,addConflict:A,hasConflict:M,verticalAlignment:R,horizontalCompaction:B,alignCoordinates:G,findSmallestWidthAlignment:Y,balance:Q}},7873:(S,O,p)=>{var v=p(8436),f=p(1138),k=p(3573).positionX;S.exports=function(y){(function(C){var A=f.buildLayerMatrix(C),M=C.graph().ranksep,R=0;v.forEach(A,function(B){var Y=v.max(v.map(B,function(G){return C.node(G).height}));v.forEach(B,function(G){C.node(G).y=R+Y/2}),R+=Y+M})})(y=f.asNonCompoundGraph(y)),v.forEach(k(y),function(C,A){y.node(A).x=C})}},300:(S,O,p)=>{var v=p(8436),f=p(574).Graph,k=p(6681).slack;function y(M,R){return v.forEach(M.nodes(),function B(Y){v.forEach(R.nodeEdges(Y),function(G){var Q=G.v,K=Y===Q?G.w:Q;M.hasNode(K)||k(R,G)||(M.setNode(K,{}),M.setEdge(Y,K,{}),B(K))})}),M.nodeCount()}function C(M,R){return v.minBy(R.edges(),function(B){if(M.hasNode(B.v)!==M.hasNode(B.w))return k(R,B)})}function A(M,R,B){v.forEach(M.nodes(),function(Y){R.node(Y).rank+=B})}S.exports=function(M){var R,B,Y=new f({directed:!1}),G=M.nodes()[0],Q=M.nodeCount();for(Y.setNode(G,{});y(Y,M)<Q;)R=C(Y,M),B=Y.hasNode(R.v)?k(M,R):-k(M,R),A(Y,M,B);return Y}},8093:(S,O,p)=>{var v=p(6681).longestPath,f=p(300),k=p(2472);S.exports=function(C){switch(C.graph().ranker){case"network-simplex":default:(function(A){k(A)})(C);break;case"tight-tree":(function(A){v(A),f(A)})(C);break;case"longest-path":y(C)}};var y=v},2472:(S,O,p)=>{var v=p(8436),f=p(300),k=p(6681).slack,y=p(6681).longestPath,C=p(574).alg.preorder,A=p(574).alg.postorder,M=p(1138).simplify;function R(at){at=M(at),y(at);var vt,At=f(at);for(G(At),B(At,at);vt=K(At);)tt(At,at,vt,gt(At,at,vt))}function B(at,vt){var At=A(at,at.nodes());At=At.slice(0,At.length-1),v.forEach(At,function(Zt){(function(zt,xt,jt){var Bt=zt.node(jt).parent;zt.edge(jt,Bt).cutvalue=Y(zt,xt,jt)})(at,vt,Zt)})}function Y(at,vt,At){var Zt=at.node(At).parent,zt=!0,xt=vt.edge(At,Zt),jt=0;return xt||(zt=!1,xt=vt.edge(Zt,At)),jt=xt.weight,v.forEach(vt.nodeEdges(At),function(Bt){var lt,et,st=Bt.v===At,$=st?Bt.w:Bt.v;if($!==Zt){var Dt=st===zt,z=vt.edge(Bt).weight;if(jt+=Dt?z:-z,lt=At,et=$,at.hasEdge(lt,et)){var Kt=at.edge(At,$).cutvalue;jt+=Dt?-Kt:Kt}}}),jt}function G(at,vt){arguments.length<2&&(vt=at.nodes()[0]),Q(at,{},1,vt)}function Q(at,vt,At,Zt,zt){var xt=At,jt=at.node(Zt);return vt[Zt]=!0,v.forEach(at.neighbors(Zt),function(Bt){v.has(vt,Bt)||(At=Q(at,vt,At,Bt,Zt))}),jt.low=xt,jt.lim=At++,zt?jt.parent=zt:delete jt.parent,At}function K(at){return v.find(at.edges(),function(vt){return at.edge(vt).cutvalue<0})}function gt(at,vt,At){var Zt=At.v,zt=At.w;vt.hasEdge(Zt,zt)||(Zt=At.w,zt=At.v);var xt=at.node(Zt),jt=at.node(zt),Bt=xt,lt=!1;xt.lim>jt.lim&&(Bt=jt,lt=!0);var et=v.filter(vt.edges(),function(st){return lt===Lt(0,at.node(st.v),Bt)&&lt!==Lt(0,at.node(st.w),Bt)});return v.minBy(et,function(st){return k(vt,st)})}function tt(at,vt,At,Zt){var zt=At.v,xt=At.w;at.removeEdge(zt,xt),at.setEdge(Zt.v,Zt.w,{}),G(at),B(at,vt),function(jt,Bt){var lt=v.find(jt.nodes(),function(st){return!Bt.node(st).parent}),et=C(jt,lt);et=et.slice(1),v.forEach(et,function(st){var $=jt.node(st).parent,Dt=Bt.edge(st,$),z=!1;Dt||(Dt=Bt.edge($,st),z=!0),Bt.node(st).rank=Bt.node($).rank+(z?Dt.minlen:-Dt.minlen)})}(at,vt)}function Lt(at,vt,At){return At.low<=vt.lim&&vt.lim<=At.lim}S.exports=R,R.initLowLimValues=G,R.initCutValues=B,R.calcCutValue=Y,R.leaveEdge=K,R.enterEdge=gt,R.exchangeEdges=tt},6681:(S,O,p)=>{var v=p(8436);S.exports={longestPath:function(f){var k={};v.forEach(f.sources(),function y(C){var A=f.node(C);if(v.has(k,C))return A.rank;k[C]=!0;var M=v.min(v.map(f.outEdges(C),function(R){return y(R.w)-f.edge(R).minlen}));return M!==Number.POSITIVE_INFINITY&&M!=null||(M=0),A.rank=M})},slack:function(f,k){return f.node(k.w).rank-f.node(k.v).rank-f.edge(k).minlen}}},1138:(S,O,p)=>{var v=p(8436),f=p(574).Graph;function k(C,A,M,R){var B;do B=v.uniqueId(R);while(C.hasNode(B));return M.dummy=A,C.setNode(B,M),B}function y(C){return v.max(v.map(C.nodes(),function(A){var M=C.node(A).rank;if(!v.isUndefined(M))return M}))}S.exports={addDummyNode:k,simplify:function(C){var A=new f().setGraph(C.graph());return v.forEach(C.nodes(),function(M){A.setNode(M,C.node(M))}),v.forEach(C.edges(),function(M){var R=A.edge(M.v,M.w)||{weight:0,minlen:1},B=C.edge(M);A.setEdge(M.v,M.w,{weight:R.weight+B.weight,minlen:Math.max(R.minlen,B.minlen)})}),A},asNonCompoundGraph:function(C){var A=new f({multigraph:C.isMultigraph()}).setGraph(C.graph());return v.forEach(C.nodes(),function(M){C.children(M).length||A.setNode(M,C.node(M))}),v.forEach(C.edges(),function(M){A.setEdge(M,C.edge(M))}),A},successorWeights:function(C){var A=v.map(C.nodes(),function(M){var R={};return v.forEach(C.outEdges(M),function(B){R[B.w]=(R[B.w]||0)+C.edge(B).weight}),R});return v.zipObject(C.nodes(),A)},predecessorWeights:function(C){var A=v.map(C.nodes(),function(M){var R={};return v.forEach(C.inEdges(M),function(B){R[B.v]=(R[B.v]||0)+C.edge(B).weight}),R});return v.zipObject(C.nodes(),A)},intersectRect:function(C,A){var M,R,B=C.x,Y=C.y,G=A.x-B,Q=A.y-Y,K=C.width/2,gt=C.height/2;if(!G&&!Q)throw new Error("Not possible to find intersection inside of the rectangle");return Math.abs(Q)*K>Math.abs(G)*gt?(Q<0&&(gt=-gt),M=gt*G/Q,R=gt):(G<0&&(K=-K),M=K,R=K*Q/G),{x:B+M,y:Y+R}},buildLayerMatrix:function(C){var A=v.map(v.range(y(C)+1),function(){return[]});return v.forEach(C.nodes(),function(M){var R=C.node(M),B=R.rank;v.isUndefined(B)||(A[B][R.order]=M)}),A},normalizeRanks:function(C){var A=v.min(v.map(C.nodes(),function(M){return C.node(M).rank}));v.forEach(C.nodes(),function(M){var R=C.node(M);v.has(R,"rank")&&(R.rank-=A)})},removeEmptyRanks:function(C){var A=v.min(v.map(C.nodes(),function(Y){return C.node(Y).rank})),M=[];v.forEach(C.nodes(),function(Y){var G=C.node(Y).rank-A;M[G]||(M[G]=[]),M[G].push(Y)});var R=0,B=C.graph().nodeRankFactor;v.forEach(M,function(Y,G){v.isUndefined(Y)&&G%B!=0?--R:R&&v.forEach(Y,function(Q){C.node(Q).rank+=R})})},addBorderNode:function(C,A,M,R){var B={width:0,height:0};return arguments.length>=4&&(B.rank=M,B.order=R),k(C,"border",B,A)},maxRank:y,partition:function(C,A){var M={lhs:[],rhs:[]};return v.forEach(C,function(R){A(R)?M.lhs.push(R):M.rhs.push(R)}),M},time:function(C,A){var M=v.now();try{return A()}finally{console.log(C+" time: "+(v.now()-M)+"ms")}},notime:function(C,A){return A()}}},8177:S=>{S.exports="0.8.5"},7856:function(S){S.exports=function(){var O=Object.hasOwnProperty,p=Object.setPrototypeOf,v=Object.isFrozen,f=Object.getPrototypeOf,k=Object.getOwnPropertyDescriptor,y=Object.freeze,C=Object.seal,A=Object.create,M=typeof Reflect!="undefined"&&Reflect,R=M.apply,B=M.construct;R||(R=function(It,St,nt){return It.apply(St,nt)}),y||(y=function(It){return It}),C||(C=function(It){return It}),B||(B=function(It,St){return new(Function.prototype.bind.apply(It,[null].concat(function(nt){if(Array.isArray(nt)){for(var ue=0,Rt=Array(nt.length);ue<nt.length;ue++)Rt[ue]=nt[ue];return Rt}return Array.from(nt)}(St))))});var Y,G=zt(Array.prototype.forEach),Q=zt(Array.prototype.pop),K=zt(Array.prototype.push),gt=zt(String.prototype.toLowerCase),tt=zt(String.prototype.match),Lt=zt(String.prototype.replace),at=zt(String.prototype.indexOf),vt=zt(String.prototype.trim),At=zt(RegExp.prototype.test),Zt=(Y=TypeError,function(){for(var It=arguments.length,St=Array(It),nt=0;nt<It;nt++)St[nt]=arguments[nt];return B(Y,St)});function zt(It){return function(St){for(var nt=arguments.length,ue=Array(nt>1?nt-1:0),Rt=1;Rt<nt;Rt++)ue[Rt-1]=arguments[Rt];return R(It,St,ue)}}function xt(It,St){p&&p(It,null);for(var nt=St.length;nt--;){var ue=St[nt];if(typeof ue=="string"){var Rt=gt(ue);Rt!==ue&&(v(St)||(St[nt]=Rt),ue=Rt)}It[ue]=!0}return It}function jt(It){var St=A(null),nt=void 0;for(nt in It)R(O,It,[nt])&&(St[nt]=It[nt]);return St}function Bt(It,St){for(;It!==null;){var nt=k(It,St);if(nt){if(nt.get)return zt(nt.get);if(typeof nt.value=="function")return zt(nt.value)}It=f(It)}return function(ue){return console.warn("fallback value for",ue),null}}var lt=y(["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"]),et=y(["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"]),st=y(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),$=y(["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"]),Dt=y(["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"]),z=y(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Kt=y(["#text"]),_t=y(["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=y(["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"]),Ee=y(["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"]),Pe=y(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),le=C(/\{\{[\s\S]*|[\s\S]*\}\}/gm),oe=C(/<%[\s\S]*|[\s\S]*%>/gm),he=C(/^data-[\-\w.\u00B7-\uFFFF]/),be=C(/^aria-[\-\w]+$/),Ne=C(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),de=C(/^(?:\w+script|data):/i),Se=C(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),te=C(/^html$/i),_e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(It){return typeof It}:function(It){return It&&typeof Symbol=="function"&&It.constructor===Symbol&&It!==Symbol.prototype?"symbol":typeof It};function wt(It){if(Array.isArray(It)){for(var St=0,nt=Array(It.length);St<It.length;St++)nt[St]=It[St];return nt}return Array.from(It)}var pe=function(){return typeof window=="undefined"?null:window},mt=function(It,St){if((It===void 0?"undefined":_e(It))!=="object"||typeof It.createPolicy!="function")return null;var nt=null,ue="data-tt-policy-suffix";St.currentScript&&St.currentScript.hasAttribute(ue)&&(nt=St.currentScript.getAttribute(ue));var Rt="dompurify"+(nt?"#"+nt:"");try{return It.createPolicy(Rt,{createHTML:function(dn){return dn}})}catch{return console.warn("TrustedTypes policy "+Rt+" could not be created."),null}};return function It(){var St=arguments.length>0&&arguments[0]!==void 0?arguments[0]:pe(),nt=function(Ft){return It(Ft)};if(nt.version="2.3.6",nt.removed=[],!St||!St.document||St.document.nodeType!==9)return nt.isSupported=!1,nt;var ue=St.document,Rt=St.document,dn=St.DocumentFragment,De=St.HTMLTemplateElement,Ue=St.Node,Ve=St.Element,Je=St.NodeFilter,en=St.NamedNodeMap,Ae=en===void 0?St.NamedNodeMap||St.MozNamedAttrMap:en,qe=St.HTMLFormElement,rn=St.DOMParser,je=St.trustedTypes,xe=Ve.prototype,Ze=Bt(xe,"cloneNode"),pn=Bt(xe,"nextSibling"),Qn=Bt(xe,"childNodes"),Xe=Bt(xe,"parentNode");if(typeof De=="function"){var nn=Rt.createElement("template");nn.content&&nn.content.ownerDocument&&(Rt=nn.content.ownerDocument)}var Sr=mt(je,ue),Dr=Sr?Sr.createHTML(""):"",yn=Rt,An=yn.implementation,fn=yn.createNodeIterator,wn=yn.createDocumentFragment,Dn=yn.getElementsByTagName,gn=ue.importNode,Yn={};try{Yn=jt(Rt).documentMode?Rt.documentMode:{}}catch{}var Ln={};nt.isSupported=typeof Xe=="function"&&An&&An.createHTMLDocument!==void 0&&Yn!==9;var Pr=le,Wn=oe,Xn=he,Kn=be,Mn=de,Un=Se,Bn=Ne,vn=null,Vn=xt({},[].concat(wt(lt),wt(et),wt(st),wt(Dt),wt(Kt))),sn=null,Pn=xt({},[].concat(wt(_t),wt(ae),wt(Ee),wt(Pe))),mn=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}})),Ca=null,uo=null,Fi=!0,Fn=!0,ua=!1,Pi=!1,Lr=!1,ti=!1,Zr=!1,Qr=!1,jr=!1,fi=!1,di=!0,cr=!0,Yr=!1,ei={},Kr=null,Ti=xt({},["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"]),Ha=null,Er=xt({},["audio","video","img","source","image","track"]),Wa=null,Va=xt({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),ra="http://www.w3.org/1998/Math/MathML",un="http://www.w3.org/2000/svg",On="http://www.w3.org/1999/xhtml",we=On,Be=!1,sr=void 0,Ut=["application/xhtml+xml","text/html"],Ea="text/html",Gt=void 0,zr=null,Zo=Rt.createElement("form"),Qo=function(Ft){return Ft instanceof RegExp||Ft instanceof Function},Ko=function(Ft){zr&&zr===Ft||(Ft&&(Ft===void 0?"undefined":_e(Ft))==="object"||(Ft={}),Ft=jt(Ft),vn="ALLOWED_TAGS"in Ft?xt({},Ft.ALLOWED_TAGS):Vn,sn="ALLOWED_ATTR"in Ft?xt({},Ft.ALLOWED_ATTR):Pn,Wa="ADD_URI_SAFE_ATTR"in Ft?xt(jt(Va),Ft.ADD_URI_SAFE_ATTR):Va,Ha="ADD_DATA_URI_TAGS"in Ft?xt(jt(Er),Ft.ADD_DATA_URI_TAGS):Er,Kr="FORBID_CONTENTS"in Ft?xt({},Ft.FORBID_CONTENTS):Ti,Ca="FORBID_TAGS"in Ft?xt({},Ft.FORBID_TAGS):{},uo="FORBID_ATTR"in Ft?xt({},Ft.FORBID_ATTR):{},ei="USE_PROFILES"in Ft&&Ft.USE_PROFILES,Fi=Ft.ALLOW_ARIA_ATTR!==!1,Fn=Ft.ALLOW_DATA_ATTR!==!1,ua=Ft.ALLOW_UNKNOWN_PROTOCOLS||!1,Pi=Ft.SAFE_FOR_TEMPLATES||!1,Lr=Ft.WHOLE_DOCUMENT||!1,Qr=Ft.RETURN_DOM||!1,jr=Ft.RETURN_DOM_FRAGMENT||!1,fi=Ft.RETURN_TRUSTED_TYPE||!1,Zr=Ft.FORCE_BODY||!1,di=Ft.SANITIZE_DOM!==!1,cr=Ft.KEEP_CONTENT!==!1,Yr=Ft.IN_PLACE||!1,Bn=Ft.ALLOWED_URI_REGEXP||Bn,we=Ft.NAMESPACE||On,Ft.CUSTOM_ELEMENT_HANDLING&&Qo(Ft.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(mn.tagNameCheck=Ft.CUSTOM_ELEMENT_HANDLING.tagNameCheck),Ft.CUSTOM_ELEMENT_HANDLING&&Qo(Ft.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(mn.attributeNameCheck=Ft.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),Ft.CUSTOM_ELEMENT_HANDLING&&typeof Ft.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(mn.allowCustomizedBuiltInElements=Ft.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),sr=sr=Ut.indexOf(Ft.PARSER_MEDIA_TYPE)===-1?Ea:Ft.PARSER_MEDIA_TYPE,Gt=sr==="application/xhtml+xml"?function($e){return $e}:gt,Pi&&(Fn=!1),jr&&(Qr=!0),ei&&(vn=xt({},[].concat(wt(Kt))),sn=[],ei.html===!0&&(xt(vn,lt),xt(sn,_t)),ei.svg===!0&&(xt(vn,et),xt(sn,ae),xt(sn,Pe)),ei.svgFilters===!0&&(xt(vn,st),xt(sn,ae),xt(sn,Pe)),ei.mathMl===!0&&(xt(vn,Dt),xt(sn,Ee),xt(sn,Pe))),Ft.ADD_TAGS&&(vn===Vn&&(vn=jt(vn)),xt(vn,Ft.ADD_TAGS)),Ft.ADD_ATTR&&(sn===Pn&&(sn=jt(sn)),xt(sn,Ft.ADD_ATTR)),Ft.ADD_URI_SAFE_ATTR&&xt(Wa,Ft.ADD_URI_SAFE_ATTR),Ft.FORBID_CONTENTS&&(Kr===Ti&&(Kr=jt(Kr)),xt(Kr,Ft.FORBID_CONTENTS)),cr&&(vn["#text"]=!0),Lr&&xt(vn,["html","head","body"]),vn.table&&(xt(vn,["tbody"]),delete Ca.tbody),y&&y(Ft),zr=Ft)},lo=xt({},["mi","mo","mn","ms","mtext"]),zn=xt({},["foreignobject","desc","title","annotation-xml"]),Ar=xt({},et);xt(Ar,st),xt(Ar,$);var pi=xt({},Dt);xt(pi,z);var $r=function(Ft){var $e=Xe(Ft);$e&&$e.tagName||($e={namespaceURI:On,tagName:"template"});var Ie=gt(Ft.tagName),hr=gt($e.tagName);if(Ft.namespaceURI===un)return $e.namespaceURI===On?Ie==="svg":$e.namespaceURI===ra?Ie==="svg"&&(hr==="annotation-xml"||lo[hr]):Boolean(Ar[Ie]);if(Ft.namespaceURI===ra)return $e.namespaceURI===On?Ie==="math":$e.namespaceURI===un?Ie==="math"&&zn[hr]:Boolean(pi[Ie]);if(Ft.namespaceURI===On){if($e.namespaceURI===un&&!zn[hr]||$e.namespaceURI===ra&&!lo[hr])return!1;var Br=xt({},["title","style","font","a","script"]);return!pi[Ie]&&(Br[Ie]||!Ar[Ie])}return!1},Hr=function(Ft){K(nt.removed,{element:Ft});try{Ft.parentNode.removeChild(Ft)}catch{try{Ft.outerHTML=Dr}catch{Ft.remove()}}},Si=function(Ft,$e){try{K(nt.removed,{attribute:$e.getAttributeNode(Ft),from:$e})}catch{K(nt.removed,{attribute:null,from:$e})}if($e.removeAttribute(Ft),Ft==="is"&&!sn[Ft])if(Qr||jr)try{Hr($e)}catch{}else try{$e.setAttribute(Ft,"")}catch{}},ji=function(Ft){var $e=void 0,Ie=void 0;if(Zr)Ft="<remove></remove>"+Ft;else{var hr=tt(Ft,/^[\r\n\t ]+/);Ie=hr&&hr[0]}sr==="application/xhtml+xml"&&(Ft='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+Ft+"</body></html>");var Br=Sr?Sr.createHTML(Ft):Ft;if(we===On)try{$e=new rn().parseFromString(Br,sr)}catch{}if(!$e||!$e.documentElement){$e=An.createDocument(we,"template",null);try{$e.documentElement.innerHTML=Be?"":Br}catch{}}var ci=$e.body||$e.documentElement;return Ft&&Ie&&ci.insertBefore(Rt.createTextNode(Ie),ci.childNodes[0]||null),we===On?Dn.call($e,Lr?"html":"body")[0]:Lr?$e.documentElement:ci},Mr=function(Ft){return fn.call(Ft.ownerDocument||Ft,Ft,Je.SHOW_ELEMENT|Je.SHOW_COMMENT|Je.SHOW_TEXT,null,!1)},ni=function(Ft){return Ft instanceof qe&&(typeof Ft.nodeName!="string"||typeof Ft.textContent!="string"||typeof Ft.removeChild!="function"||!(Ft.attributes instanceof Ae)||typeof Ft.removeAttribute!="function"||typeof Ft.setAttribute!="function"||typeof Ft.namespaceURI!="string"||typeof Ft.insertBefore!="function")},gi=function(Ft){return(Ue===void 0?"undefined":_e(Ue))==="object"?Ft instanceof Ue:Ft&&(Ft===void 0?"undefined":_e(Ft))==="object"&&typeof Ft.nodeType=="number"&&typeof Ft.nodeName=="string"},pr=function(Ft,$e,Ie){Ln[Ft]&&G(Ln[Ft],function(hr){hr.call(nt,$e,Ie,zr)})},Xi=function(Ft){var $e=void 0;if(pr("beforeSanitizeElements",Ft,null),ni(Ft)||tt(Ft.nodeName,/[\u0080-\uFFFF]/))return Hr(Ft),!0;var Ie=Gt(Ft.nodeName);if(pr("uponSanitizeElement",Ft,{tagName:Ie,allowedTags:vn}),!gi(Ft.firstElementChild)&&(!gi(Ft.content)||!gi(Ft.content.firstElementChild))&&At(/<[/\w]/g,Ft.innerHTML)&&At(/<[/\w]/g,Ft.textContent)||Ie==="select"&&At(/<template/i,Ft.innerHTML))return Hr(Ft),!0;if(!vn[Ie]||Ca[Ie]){if(!Ca[Ie]&&si(Ie)&&(mn.tagNameCheck instanceof RegExp&&At(mn.tagNameCheck,Ie)||mn.tagNameCheck instanceof Function&&mn.tagNameCheck(Ie)))return!1;if(cr&&!Kr[Ie]){var hr=Xe(Ft)||Ft.parentNode,Br=Qn(Ft)||Ft.childNodes;if(Br&&hr)for(var ci=Br.length-1;ci>=0;--ci)hr.insertBefore(Ze(Br[ci],!0),pn(Ft))}return Hr(Ft),!0}return Ft instanceof Ve&&!$r(Ft)?(Hr(Ft),!0):Ie!=="noscript"&&Ie!=="noembed"||!At(/<\/no(script|embed)/i,Ft.innerHTML)?(Pi&&Ft.nodeType===3&&($e=Ft.textContent,$e=Lt($e,Pr," "),$e=Lt($e,Wn," "),Ft.textContent!==$e&&(K(nt.removed,{element:Ft.cloneNode()}),Ft.textContent=$e)),pr("afterSanitizeElements",Ft,null),!1):(Hr(Ft),!0)},Yi=function(Ft,$e,Ie){if(di&&($e==="id"||$e==="name")&&(Ie in Rt||Ie in Zo))return!1;if(!(Fn&&!uo[$e]&&At(Xn,$e))){if(!(Fi&&At(Kn,$e))){if(!sn[$e]||uo[$e]){if(!(si(Ft)&&(mn.tagNameCheck instanceof RegExp&&At(mn.tagNameCheck,Ft)||mn.tagNameCheck instanceof Function&&mn.tagNameCheck(Ft))&&(mn.attributeNameCheck instanceof RegExp&&At(mn.attributeNameCheck,$e)||mn.attributeNameCheck instanceof Function&&mn.attributeNameCheck($e))||$e==="is"&&mn.allowCustomizedBuiltInElements&&(mn.tagNameCheck instanceof RegExp&&At(mn.tagNameCheck,Ie)||mn.tagNameCheck instanceof Function&&mn.tagNameCheck(Ie))))return!1}else if(!Wa[$e]){if(!At(Bn,Lt(Ie,Un,""))){if(($e!=="src"&&$e!=="xlink:href"&&$e!=="href"||Ft==="script"||at(Ie,"data:")!==0||!Ha[Ft])&&!(ua&&!At(Mn,Lt(Ie,Un,"")))){if(Ie)return!1}}}}}return!0},si=function(Ft){return Ft.indexOf("-")>0},Ga=function(Ft){var $e=void 0,Ie=void 0,hr=void 0,Br=void 0;pr("beforeSanitizeAttributes",Ft,null);var ci=Ft.attributes;if(ci){var yi={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:sn};for(Br=ci.length;Br--;){var Sa=$e=ci[Br],Jr=Sa.name,zi=Sa.namespaceURI;if(Ie=vt($e.value),hr=Gt(Jr),yi.attrName=hr,yi.attrValue=Ie,yi.keepAttr=!0,yi.forceKeepAttr=void 0,pr("uponSanitizeAttribute",Ft,yi),Ie=yi.attrValue,!yi.forceKeepAttr&&(Si(Jr,Ft),yi.keepAttr))if(At(/\/>/i,Ie))Si(Jr,Ft);else{Pi&&(Ie=Lt(Ie,Pr," "),Ie=Lt(Ie,Wn," "));var Aa=Gt(Ft.nodeName);if(Yi(Aa,hr,Ie))try{zi?Ft.setAttributeNS(zi,Jr,Ie):Ft.setAttribute(Jr,Ie),Q(nt.removed)}catch{}}}pr("afterSanitizeAttributes",Ft,null)}},Ai=function Ft($e){var Ie=void 0,hr=Mr($e);for(pr("beforeSanitizeShadowDOM",$e,null);Ie=hr.nextNode();)pr("uponSanitizeShadowNode",Ie,null),Xi(Ie)||(Ie.content instanceof dn&&Ft(Ie.content),Ga(Ie));pr("afterSanitizeShadowDOM",$e,null)};return nt.sanitize=function(Ft,$e){var Ie=void 0,hr=void 0,Br=void 0,ci=void 0,yi=void 0;if((Be=!Ft)&&(Ft="<!-->"),typeof Ft!="string"&&!gi(Ft)){if(typeof Ft.toString!="function")throw Zt("toString is not a function");if(typeof(Ft=Ft.toString())!="string")throw Zt("dirty is not a string, aborting")}if(!nt.isSupported){if(_e(St.toStaticHTML)==="object"||typeof St.toStaticHTML=="function"){if(typeof Ft=="string")return St.toStaticHTML(Ft);if(gi(Ft))return St.toStaticHTML(Ft.outerHTML)}return Ft}if(ti||Ko($e),nt.removed=[],typeof Ft=="string"&&(Yr=!1),Yr){if(Ft.nodeName){var Sa=Gt(Ft.nodeName);if(!vn[Sa]||Ca[Sa])throw Zt("root node is forbidden and cannot be sanitized in-place")}}else if(Ft instanceof Ue)(hr=(Ie=ji("<!---->")).ownerDocument.importNode(Ft,!0)).nodeType===1&&hr.nodeName==="BODY"||hr.nodeName==="HTML"?Ie=hr:Ie.appendChild(hr);else{if(!Qr&&!Pi&&!Lr&&Ft.indexOf("<")===-1)return Sr&&fi?Sr.createHTML(Ft):Ft;if(!(Ie=ji(Ft)))return Qr?null:fi?Dr:""}Ie&&Zr&&Hr(Ie.firstChild);for(var Jr=Mr(Yr?Ft:Ie);Br=Jr.nextNode();)Br.nodeType===3&&Br===ci||Xi(Br)||(Br.content instanceof dn&&Ai(Br.content),Ga(Br),ci=Br);if(ci=null,Yr)return Ft;if(Qr){if(jr)for(yi=wn.call(Ie.ownerDocument);Ie.firstChild;)yi.appendChild(Ie.firstChild);else yi=Ie;return sn.shadowroot&&(yi=gn.call(ue,yi,!0)),yi}var zi=Lr?Ie.outerHTML:Ie.innerHTML;return Lr&&vn["!doctype"]&&Ie.ownerDocument&&Ie.ownerDocument.doctype&&Ie.ownerDocument.doctype.name&&At(te,Ie.ownerDocument.doctype.name)&&(zi="<!DOCTYPE "+Ie.ownerDocument.doctype.name+`>
`+zi),Pi&&(zi=Lt(zi,Pr," "),zi=Lt(zi,Wn," ")),Sr&&fi?Sr.createHTML(zi):zi},nt.setConfig=function(Ft){Ko(Ft),ti=!0},nt.clearConfig=function(){zr=null,ti=!1},nt.isValidAttribute=function(Ft,$e,Ie){zr||Ko({});var hr=Gt(Ft),Br=Gt($e);return Yi(hr,Br,Ie)},nt.addHook=function(Ft,$e){typeof $e=="function"&&(Ln[Ft]=Ln[Ft]||[],K(Ln[Ft],$e))},nt.removeHook=function(Ft){Ln[Ft]&&Q(Ln[Ft])},nt.removeHooks=function(Ft){Ln[Ft]&&(Ln[Ft]=[])},nt.removeAllHooks=function(){Ln={}},nt}()}()},8282:(S,O,p)=>{var v=p(2354);S.exports={Graph:v.Graph,json:p(8974),alg:p(2440),version:v.version}},2842:(S,O,p)=>{var v=p(9126);S.exports=function(f){var k,y={},C=[];function A(M){v.has(y,M)||(y[M]=!0,k.push(M),v.each(f.successors(M),A),v.each(f.predecessors(M),A))}return v.each(f.nodes(),function(M){k=[],A(M),k.length&&C.push(k)}),C}},3984:(S,O,p)=>{var v=p(9126);function f(k,y,C,A,M,R){v.has(A,y)||(A[y]=!0,C||R.push(y),v.each(M(y),function(B){f(k,B,C,A,M,R)}),C&&R.push(y))}S.exports=function(k,y,C){v.isArray(y)||(y=[y]);var A=(k.isDirected()?k.successors:k.neighbors).bind(k),M=[],R={};return v.each(y,function(B){if(!k.hasNode(B))throw new Error("Graph does not have node: "+B);f(k,B,C==="post",R,A,M)}),M}},4847:(S,O,p)=>{var v=p(3763),f=p(9126);S.exports=function(k,y,C){return f.transform(k.nodes(),function(A,M){A[M]=v(k,M,y,C)},{})}},3763:(S,O,p)=>{var v=p(9126),f=p(9675);S.exports=function(y,C,A,M){return function(R,B,Y,G){var Q,K,gt={},tt=new f,Lt=function(at){var vt=at.v!==Q?at.v:at.w,At=gt[vt],Zt=Y(at),zt=K.distance+Zt;if(Zt<0)throw new Error("dijkstra does not allow negative edge weights. Bad edge: "+at+" Weight: "+Zt);zt<At.distance&&(At.distance=zt,At.predecessor=Q,tt.decrease(vt,zt))};for(R.nodes().forEach(function(at){var vt=at===B?0:Number.POSITIVE_INFINITY;gt[at]={distance:vt},tt.add(at,vt)});tt.size()>0&&(Q=tt.removeMin(),(K=gt[Q]).distance!==Number.POSITIVE_INFINITY);)G(Q).forEach(Lt);return gt}(y,String(C),A||k,M||function(R){return y.outEdges(R)})};var k=v.constant(1)},9096:(S,O,p)=>{var v=p(9126),f=p(5023);S.exports=function(k){return v.filter(f(k),function(y){return y.length>1||y.length===1&&k.hasEdge(y[0],y[0])})}},8924:(S,O,p)=>{var v=p(9126);S.exports=function(k,y,C){return function(A,M,R){var B={},Y=A.nodes();return Y.forEach(function(G){B[G]={},B[G][G]={distance:0},Y.forEach(function(Q){G!==Q&&(B[G][Q]={distance:Number.POSITIVE_INFINITY})}),R(G).forEach(function(Q){var K=Q.v===G?Q.w:Q.v,gt=M(Q);B[G][K]={distance:gt,predecessor:G}})}),Y.forEach(function(G){var Q=B[G];Y.forEach(function(K){var gt=B[K];Y.forEach(function(tt){var Lt=gt[G],at=Q[tt],vt=gt[tt],At=Lt.distance+at.distance;At<vt.distance&&(vt.distance=At,vt.predecessor=at.predecessor)})})}),B}(k,y||f,C||function(A){return k.outEdges(A)})};var f=v.constant(1)},2440:(S,O,p)=>{S.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:(S,O,p)=>{var v=p(2166);S.exports=function(f){try{v(f)}catch(k){if(k instanceof v.CycleException)return!1;throw k}return!0}},8828:(S,O,p)=>{var v=p(3984);S.exports=function(f,k){return v(f,k,"post")}},2648:(S,O,p)=>{var v=p(3984);S.exports=function(f,k){return v(f,k,"pre")}},514:(S,O,p)=>{var v=p(9126),f=p(771),k=p(9675);S.exports=function(y,C){var A,M=new f,R={},B=new k;function Y(Q){var K=Q.v===A?Q.w:Q.v,gt=B.priority(K);if(gt!==void 0){var tt=C(Q);tt<gt&&(R[K]=A,B.decrease(K,tt))}}if(y.nodeCount()===0)return M;v.each(y.nodes(),function(Q){B.add(Q,Number.POSITIVE_INFINITY),M.setNode(Q)}),B.decrease(y.nodes()[0],0);for(var G=!1;B.size()>0;){if(A=B.removeMin(),v.has(R,A))M.setEdge(A,R[A]);else{if(G)throw new Error("Input graph is not connected: "+y);G=!0}y.nodeEdges(A).forEach(Y)}return M}},5023:(S,O,p)=>{var v=p(9126);S.exports=function(f){var k=0,y=[],C={},A=[];function M(R){var B=C[R]={onStack:!0,lowlink:k,index:k++};if(y.push(R),f.successors(R).forEach(function(Q){v.has(C,Q)?C[Q].onStack&&(B.lowlink=Math.min(B.lowlink,C[Q].index)):(M(Q),B.lowlink=Math.min(B.lowlink,C[Q].lowlink))}),B.lowlink===B.index){var Y,G=[];do Y=y.pop(),C[Y].onStack=!1,G.push(Y);while(R!==Y);A.push(G)}}return f.nodes().forEach(function(R){v.has(C,R)||M(R)}),A}},2166:(S,O,p)=>{var v=p(9126);function f(y){var C={},A={},M=[];if(v.each(y.sinks(),function R(B){if(v.has(A,B))throw new k;v.has(C,B)||(A[B]=!0,C[B]=!0,v.each(y.predecessors(B),R),delete A[B],M.push(B))}),v.size(C)!==y.nodeCount())throw new k;return M}function k(){}S.exports=f,f.CycleException=k,k.prototype=new Error},9675:(S,O,p)=>{var v=p(9126);function f(){this._arr=[],this._keyIndices={}}S.exports=f,f.prototype.size=function(){return this._arr.length},f.prototype.keys=function(){return this._arr.map(function(k){return k.key})},f.prototype.has=function(k){return v.has(this._keyIndices,k)},f.prototype.priority=function(k){var y=this._keyIndices[k];if(y!==void 0)return this._arr[y].priority},f.prototype.min=function(){if(this.size()===0)throw new Error("Queue underflow");return this._arr[0].key},f.prototype.add=function(k,y){var C=this._keyIndices;if(k=String(k),!v.has(C,k)){var A=this._arr,M=A.length;return C[k]=M,A.push({key:k,priority:y}),this._decrease(M),!0}return!1},f.prototype.removeMin=function(){this._swap(0,this._arr.length-1);var k=this._arr.pop();return delete this._keyIndices[k.key],this._heapify(0),k.key},f.prototype.decrease=function(k,y){var C=this._keyIndices[k];if(y>this._arr[C].priority)throw new Error("New priority is greater than current priority. Key: "+k+" Old: "+this._arr[C].priority+" New: "+y);this._arr[C].priority=y,this._decrease(C)},f.prototype._heapify=function(k){var y=this._arr,C=2*k,A=C+1,M=k;C<y.length&&(M=y[C].priority<y[M].priority?C:M,A<y.length&&(M=y[A].priority<y[M].priority?A:M),M!==k&&(this._swap(k,M),this._heapify(M)))},f.prototype._decrease=function(k){for(var y,C=this._arr,A=C[k].priority;k!==0&&!(C[y=k>>1].priority<A);)this._swap(k,y),k=y},f.prototype._swap=function(k,y){var C=this._arr,A=this._keyIndices,M=C[k],R=C[y];C[k]=R,C[y]=M,A[R.key]=k,A[M.key]=y}},771:(S,O,p)=>{var v=p(9126);S.exports=k;var f="\0";function k(B){this._isDirected=!v.has(B,"directed")||B.directed,this._isMultigraph=!!v.has(B,"multigraph")&&B.multigraph,this._isCompound=!!v.has(B,"compound")&&B.compound,this._label=void 0,this._defaultNodeLabelFn=v.constant(void 0),this._defaultEdgeLabelFn=v.constant(void 0),this._nodes={},this._isCompound&&(this._parent={},this._children={},this._children["\0"]={}),this._in={},this._preds={},this._out={},this._sucs={},this._edgeObjs={},this._edgeLabels={}}function y(B,Y){B[Y]?B[Y]++:B[Y]=1}function C(B,Y){--B[Y]||delete B[Y]}function A(B,Y,G,Q){var K=""+Y,gt=""+G;if(!B&&K>gt){var tt=K;K=gt,gt=tt}return K+""+gt+""+(v.isUndefined(Q)?"\0":Q)}function M(B,Y,G,Q){var K=""+Y,gt=""+G;if(!B&&K>gt){var tt=K;K=gt,gt=tt}var Lt={v:K,w:gt};return Q&&(Lt.name=Q),Lt}function R(B,Y){return A(B,Y.v,Y.w,Y.name)}k.prototype._nodeCount=0,k.prototype._edgeCount=0,k.prototype.isDirected=function(){return this._isDirected},k.prototype.isMultigraph=function(){return this._isMultigraph},k.prototype.isCompound=function(){return this._isCompound},k.prototype.setGraph=function(B){return this._label=B,this},k.prototype.graph=function(){return this._label},k.prototype.setDefaultNodeLabel=function(B){return v.isFunction(B)||(B=v.constant(B)),this._defaultNodeLabelFn=B,this},k.prototype.nodeCount=function(){return this._nodeCount},k.prototype.nodes=function(){return v.keys(this._nodes)},k.prototype.sources=function(){var B=this;return v.filter(this.nodes(),function(Y){return v.isEmpty(B._in[Y])})},k.prototype.sinks=function(){var B=this;return v.filter(this.nodes(),function(Y){return v.isEmpty(B._out[Y])})},k.prototype.setNodes=function(B,Y){var G=arguments,Q=this;return v.each(B,function(K){G.length>1?Q.setNode(K,Y):Q.setNode(K)}),this},k.prototype.setNode=function(B,Y){return v.has(this._nodes,B)?(arguments.length>1&&(this._nodes[B]=Y),this):(this._nodes[B]=arguments.length>1?Y:this._defaultNodeLabelFn(B),this._isCompound&&(this._parent[B]=f,this._children[B]={},this._children["\0"][B]=!0),this._in[B]={},this._preds[B]={},this._out[B]={},this._sucs[B]={},++this._nodeCount,this)},k.prototype.node=function(B){return this._nodes[B]},k.prototype.hasNode=function(B){return v.has(this._nodes,B)},k.prototype.removeNode=function(B){var Y=this;if(v.has(this._nodes,B)){var G=function(Q){Y.removeEdge(Y._edgeObjs[Q])};delete this._nodes[B],this._isCompound&&(this._removeFromParentsChildList(B),delete this._parent[B],v.each(this.children(B),function(Q){Y.setParent(Q)}),delete this._children[B]),v.each(v.keys(this._in[B]),G),delete this._in[B],delete this._preds[B],v.each(v.keys(this._out[B]),G),delete this._out[B],delete this._sucs[B],--this._nodeCount}return this},k.prototype.setParent=function(B,Y){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(v.isUndefined(Y))Y=f;else{for(var G=Y+="";!v.isUndefined(G);G=this.parent(G))if(G===B)throw new Error("Setting "+Y+" as parent of "+B+" would create a cycle");this.setNode(Y)}return this.setNode(B),this._removeFromParentsChildList(B),this._parent[B]=Y,this._children[Y][B]=!0,this},k.prototype._removeFromParentsChildList=function(B){delete this._children[this._parent[B]][B]},k.prototype.parent=function(B){if(this._isCompound){var Y=this._parent[B];if(Y!==f)return Y}},k.prototype.children=function(B){if(v.isUndefined(B)&&(B=f),this._isCompound){var Y=this._children[B];if(Y)return v.keys(Y)}else{if(B===f)return this.nodes();if(this.hasNode(B))return[]}},k.prototype.predecessors=function(B){var Y=this._preds[B];if(Y)return v.keys(Y)},k.prototype.successors=function(B){var Y=this._sucs[B];if(Y)return v.keys(Y)},k.prototype.neighbors=function(B){var Y=this.predecessors(B);if(Y)return v.union(Y,this.successors(B))},k.prototype.isLeaf=function(B){return(this.isDirected()?this.successors(B):this.neighbors(B)).length===0},k.prototype.filterNodes=function(B){var Y=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});Y.setGraph(this.graph());var G=this;v.each(this._nodes,function(gt,tt){B(tt)&&Y.setNode(tt,gt)}),v.each(this._edgeObjs,function(gt){Y.hasNode(gt.v)&&Y.hasNode(gt.w)&&Y.setEdge(gt,G.edge(gt))});var Q={};function K(gt){var tt=G.parent(gt);return tt===void 0||Y.hasNode(tt)?(Q[gt]=tt,tt):tt in Q?Q[tt]:K(tt)}return this._isCompound&&v.each(Y.nodes(),function(gt){Y.setParent(gt,K(gt))}),Y},k.prototype.setDefaultEdgeLabel=function(B){return v.isFunction(B)||(B=v.constant(B)),this._defaultEdgeLabelFn=B,this},k.prototype.edgeCount=function(){return this._edgeCount},k.prototype.edges=function(){return v.values(this._edgeObjs)},k.prototype.setPath=function(B,Y){var G=this,Q=arguments;return v.reduce(B,function(K,gt){return Q.length>1?G.setEdge(K,gt,Y):G.setEdge(K,gt),gt}),this},k.prototype.setEdge=function(){var B,Y,G,Q,K=!1,gt=arguments[0];typeof gt=="object"&&gt!==null&&"v"in gt?(B=gt.v,Y=gt.w,G=gt.name,arguments.length===2&&(Q=arguments[1],K=!0)):(B=gt,Y=arguments[1],G=arguments[3],arguments.length>2&&(Q=arguments[2],K=!0)),B=""+B,Y=""+Y,v.isUndefined(G)||(G=""+G);var tt=A(this._isDirected,B,Y,G);if(v.has(this._edgeLabels,tt))return K&&(this._edgeLabels[tt]=Q),this;if(!v.isUndefined(G)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(B),this.setNode(Y),this._edgeLabels[tt]=K?Q:this._defaultEdgeLabelFn(B,Y,G);var Lt=M(this._isDirected,B,Y,G);return B=Lt.v,Y=Lt.w,Object.freeze(Lt),this._edgeObjs[tt]=Lt,y(this._preds[Y],B),y(this._sucs[B],Y),this._in[Y][tt]=Lt,this._out[B][tt]=Lt,this._edgeCount++,this},k.prototype.edge=function(B,Y,G){var Q=arguments.length===1?R(this._isDirected,arguments[0]):A(this._isDirected,B,Y,G);return this._edgeLabels[Q]},k.prototype.hasEdge=function(B,Y,G){var Q=arguments.length===1?R(this._isDirected,arguments[0]):A(this._isDirected,B,Y,G);return v.has(this._edgeLabels,Q)},k.prototype.removeEdge=function(B,Y,G){var Q=arguments.length===1?R(this._isDirected,arguments[0]):A(this._isDirected,B,Y,G),K=this._edgeObjs[Q];return K&&(B=K.v,Y=K.w,delete this._edgeLabels[Q],delete this._edgeObjs[Q],C(this._preds[Y],B),C(this._sucs[B],Y),delete this._in[Y][Q],delete this._out[B][Q],this._edgeCount--),this},k.prototype.inEdges=function(B,Y){var G=this._in[B];if(G){var Q=v.values(G);return Y?v.filter(Q,function(K){return K.v===Y}):Q}},k.prototype.outEdges=function(B,Y){var G=this._out[B];if(G){var Q=v.values(G);return Y?v.filter(Q,function(K){return K.w===Y}):Q}},k.prototype.nodeEdges=function(B,Y){var G=this.inEdges(B,Y);if(G)return G.concat(this.outEdges(B,Y))}},2354:(S,O,p)=>{S.exports={Graph:p(771),version:p(9631)}},8974:(S,O,p)=>{var v=p(9126),f=p(771);function k(C){return v.map(C.nodes(),function(A){var M=C.node(A),R=C.parent(A),B={v:A};return v.isUndefined(M)||(B.value=M),v.isUndefined(R)||(B.parent=R),B})}function y(C){return v.map(C.edges(),function(A){var M=C.edge(A),R={v:A.v,w:A.w};return v.isUndefined(A.name)||(R.name=A.name),v.isUndefined(M)||(R.value=M),R})}S.exports={write:function(C){var A={options:{directed:C.isDirected(),multigraph:C.isMultigraph(),compound:C.isCompound()},nodes:k(C),edges:y(C)};return v.isUndefined(C.graph())||(A.value=v.clone(C.graph())),A},read:function(C){var A=new f(C.options).setGraph(C.value);return v.each(C.nodes,function(M){A.setNode(M.v,M.value),M.parent&&A.setParent(M.v,M.parent)}),v.each(C.edges,function(M){A.setEdge({v:M.v,w:M.w,name:M.name},M.value)}),A}}},9126:(S,O,p)=>{var v;try{v={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{}v||(v=window._),S.exports=v},9631:S=>{S.exports="2.1.8"},8552:(S,O,p)=>{var v=p(852)(p(5639),"DataView");S.exports=v},1989:(S,O,p)=>{var v=p(1789),f=p(401),k=p(7667),y=p(1327),C=p(1866);function A(M){var R=-1,B=M==null?0:M.length;for(this.clear();++R<B;){var Y=M[R];this.set(Y[0],Y[1])}}A.prototype.clear=v,A.prototype.delete=f,A.prototype.get=k,A.prototype.has=y,A.prototype.set=C,S.exports=A},8407:(S,O,p)=>{var v=p(7040),f=p(4125),k=p(2117),y=p(7518),C=p(4705);function A(M){var R=-1,B=M==null?0:M.length;for(this.clear();++R<B;){var Y=M[R];this.set(Y[0],Y[1])}}A.prototype.clear=v,A.prototype.delete=f,A.prototype.get=k,A.prototype.has=y,A.prototype.set=C,S.exports=A},7071:(S,O,p)=>{var v=p(852)(p(5639),"Map");S.exports=v},3369:(S,O,p)=>{var v=p(4785),f=p(1285),k=p(6e3),y=p(9916),C=p(5265);function A(M){var R=-1,B=M==null?0:M.length;for(this.clear();++R<B;){var Y=M[R];this.set(Y[0],Y[1])}}A.prototype.clear=v,A.prototype.delete=f,A.prototype.get=k,A.prototype.has=y,A.prototype.set=C,S.exports=A},3818:(S,O,p)=>{var v=p(852)(p(5639),"Promise");S.exports=v},8525:(S,O,p)=>{var v=p(852)(p(5639),"Set");S.exports=v},8668:(S,O,p)=>{var v=p(3369),f=p(619),k=p(2385);function y(C){var A=-1,M=C==null?0:C.length;for(this.__data__=new v;++A<M;)this.add(C[A])}y.prototype.add=y.prototype.push=f,y.prototype.has=k,S.exports=y},6384:(S,O,p)=>{var v=p(8407),f=p(7465),k=p(3779),y=p(7599),C=p(4758),A=p(4309);function M(R){var B=this.__data__=new v(R);this.size=B.size}M.prototype.clear=f,M.prototype.delete=k,M.prototype.get=y,M.prototype.has=C,M.prototype.set=A,S.exports=M},2705:(S,O,p)=>{var v=p(5639).Symbol;S.exports=v},1149:(S,O,p)=>{var v=p(5639).Uint8Array;S.exports=v},577:(S,O,p)=>{var v=p(852)(p(5639),"WeakMap");S.exports=v},6874:S=>{S.exports=function(O,p,v){switch(v.length){case 0:return O.call(p);case 1:return O.call(p,v[0]);case 2:return O.call(p,v[0],v[1]);case 3:return O.call(p,v[0],v[1],v[2])}return O.apply(p,v)}},7412:S=>{S.exports=function(O,p){for(var v=-1,f=O==null?0:O.length;++v<f&&p(O[v],v,O)!==!1;);return O}},4963:S=>{S.exports=function(O,p){for(var v=-1,f=O==null?0:O.length,k=0,y=[];++v<f;){var C=O[v];p(C,v,O)&&(y[k++]=C)}return y}},7443:(S,O,p)=>{var v=p(2118);S.exports=function(f,k){return!(f==null||!f.length)&&v(f,k,0)>-1}},1196:S=>{S.exports=function(O,p,v){for(var f=-1,k=O==null?0:O.length;++f<k;)if(v(p,O[f]))return!0;return!1}},4636:(S,O,p)=>{var v=p(2545),f=p(5694),k=p(1469),y=p(4144),C=p(5776),A=p(6719),M=Object.prototype.hasOwnProperty;S.exports=function(R,B){var Y=k(R),G=!Y&&f(R),Q=!Y&&!G&&y(R),K=!Y&&!G&&!Q&&A(R),gt=Y||G||Q||K,tt=gt?v(R.length,String):[],Lt=tt.length;for(var at in R)!B&&!M.call(R,at)||gt&&(at=="length"||Q&&(at=="offset"||at=="parent")||K&&(at=="buffer"||at=="byteLength"||at=="byteOffset")||C(at,Lt))||tt.push(at);return tt}},9932:S=>{S.exports=function(O,p){for(var v=-1,f=O==null?0:O.length,k=Array(f);++v<f;)k[v]=p(O[v],v,O);return k}},2488:S=>{S.exports=function(O,p){for(var v=-1,f=p.length,k=O.length;++v<f;)O[k+v]=p[v];return O}},2663:S=>{S.exports=function(O,p,v,f){var k=-1,y=O==null?0:O.length;for(f&&y&&(v=O[++k]);++k<y;)v=p(v,O[k],k,O);return v}},2908:S=>{S.exports=function(O,p){for(var v=-1,f=O==null?0:O.length;++v<f;)if(p(O[v],v,O))return!0;return!1}},8983:(S,O,p)=>{var v=p(371)("length");S.exports=v},6556:(S,O,p)=>{var v=p(9465),f=p(7813);S.exports=function(k,y,C){(C!==void 0&&!f(k[y],C)||C===void 0&&!(y in k))&&v(k,y,C)}},4865:(S,O,p)=>{var v=p(9465),f=p(7813),k=Object.prototype.hasOwnProperty;S.exports=function(y,C,A){var M=y[C];k.call(y,C)&&f(M,A)&&(A!==void 0||C in y)||v(y,C,A)}},8470:(S,O,p)=>{var v=p(7813);S.exports=function(f,k){for(var y=f.length;y--;)if(v(f[y][0],k))return y;return-1}},4037:(S,O,p)=>{var v=p(8363),f=p(3674);S.exports=function(k,y){return k&&v(y,f(y),k)}},3886:(S,O,p)=>{var v=p(8363),f=p(1704);S.exports=function(k,y){return k&&v(y,f(y),k)}},9465:(S,O,p)=>{var v=p(8777);S.exports=function(f,k,y){k=="__proto__"&&v?v(f,k,{configurable:!0,enumerable:!0,value:y,writable:!0}):f[k]=y}},5990:(S,O,p)=>{var v=p(6384),f=p(7412),k=p(4865),y=p(4037),C=p(3886),A=p(4626),M=p(278),R=p(8805),B=p(1911),Y=p(8234),G=p(6904),Q=p(4160),K=p(3824),gt=p(9148),tt=p(8517),Lt=p(1469),at=p(4144),vt=p(6688),At=p(3218),Zt=p(2928),zt=p(3674),xt=p(1704),jt="[object Arguments]",Bt="[object Function]",lt="[object Object]",et={};et[jt]=et["[object Array]"]=et["[object ArrayBuffer]"]=et["[object DataView]"]=et["[object Boolean]"]=et["[object Date]"]=et["[object Float32Array]"]=et["[object Float64Array]"]=et["[object Int8Array]"]=et["[object Int16Array]"]=et["[object Int32Array]"]=et["[object Map]"]=et["[object Number]"]=et[lt]=et["[object RegExp]"]=et["[object Set]"]=et["[object String]"]=et["[object Symbol]"]=et["[object Uint8Array]"]=et["[object Uint8ClampedArray]"]=et["[object Uint16Array]"]=et["[object Uint32Array]"]=!0,et["[object Error]"]=et[Bt]=et["[object WeakMap]"]=!1,S.exports=function st($,Dt,z,Kt,_t,ae){var Ee,Pe=1&Dt,le=2&Dt,oe=4&Dt;if(z&&(Ee=_t?z($,Kt,_t,ae):z($)),Ee!==void 0)return Ee;if(!At($))return $;var he=Lt($);if(he){if(Ee=K($),!Pe)return M($,Ee)}else{var be=Q($),Ne=be==Bt||be=="[object GeneratorFunction]";if(at($))return A($,Pe);if(be==lt||be==jt||Ne&&!_t){if(Ee=le||Ne?{}:tt($),!Pe)return le?B($,C(Ee,$)):R($,y(Ee,$))}else{if(!et[be])return _t?$:{};Ee=gt($,be,Pe)}}ae||(ae=new v);var de=ae.get($);if(de)return de;ae.set($,Ee),Zt($)?$.forEach(function(te){Ee.add(st(te,Dt,z,te,$,ae))}):vt($)&&$.forEach(function(te,_e){Ee.set(_e,st(te,Dt,z,_e,$,ae))});var Se=he?void 0:(oe?le?G:Y:le?xt:zt)($);return f(Se||$,function(te,_e){Se&&(te=$[_e=te]),k(Ee,_e,st(te,Dt,z,_e,$,ae))}),Ee}},3118:(S,O,p)=>{var v=p(3218),f=Object.create,k=function(){function y(){}return function(C){if(!v(C))return{};if(f)return f(C);y.prototype=C;var A=new y;return y.prototype=void 0,A}}();S.exports=k},9881:(S,O,p)=>{var v=p(7816),f=p(9291)(v);S.exports=f},6029:(S,O,p)=>{var v=p(3448);S.exports=function(f,k,y){for(var C=-1,A=f.length;++C<A;){var M=f[C],R=k(M);if(R!=null&&(B===void 0?R==R&&!v(R):y(R,B)))var B=R,Y=M}return Y}},760:(S,O,p)=>{var v=p(9881);S.exports=function(f,k){var y=[];return v(f,function(C,A,M){k(C,A,M)&&y.push(C)}),y}},1848:S=>{S.exports=function(O,p,v,f){for(var k=O.length,y=v+(f?1:-1);f?y--:++y<k;)if(p(O[y],y,O))return y;return-1}},1078:(S,O,p)=>{var v=p(2488),f=p(7285);S.exports=function k(y,C,A,M,R){var B=-1,Y=y.length;for(A||(A=f),R||(R=[]);++B<Y;){var G=y[B];C>0&&A(G)?C>1?k(G,C-1,A,M,R):v(R,G):M||(R[R.length]=G)}return R}},8483:(S,O,p)=>{var v=p(5063)();S.exports=v},7816:(S,O,p)=>{var v=p(8483),f=p(3674);S.exports=function(k,y){return k&&v(k,y,f)}},7786:(S,O,p)=>{var v=p(1811),f=p(327);S.exports=function(k,y){for(var C=0,A=(y=v(y,k)).length;k!=null&&C<A;)k=k[f(y[C++])];return C&&C==A?k:void 0}},8866:(S,O,p)=>{var v=p(2488),f=p(1469);S.exports=function(k,y,C){var A=y(k);return f(k)?A:v(A,C(k))}},4239:(S,O,p)=>{var v=p(2705),f=p(9607),k=p(2333),y=v?v.toStringTag:void 0;S.exports=function(C){return C==null?C===void 0?"[object Undefined]":"[object Null]":y&&y in Object(C)?f(C):k(C)}},3325:S=>{S.exports=function(O,p){return O>p}},8565:S=>{var O=Object.prototype.hasOwnProperty;S.exports=function(p,v){return p!=null&&O.call(p,v)}},13:S=>{S.exports=function(O,p){return O!=null&&p in Object(O)}},2118:(S,O,p)=>{var v=p(1848),f=p(2722),k=p(2351);S.exports=function(y,C,A){return C==C?k(y,C,A):v(y,f,A)}},9454:(S,O,p)=>{var v=p(4239),f=p(7005);S.exports=function(k){return f(k)&&v(k)=="[object Arguments]"}},939:(S,O,p)=>{var v=p(2492),f=p(7005);S.exports=function k(y,C,A,M,R){return y===C||(y==null||C==null||!f(y)&&!f(C)?y!=y&&C!=C:v(y,C,A,M,k,R))}},2492:(S,O,p)=>{var v=p(6384),f=p(7114),k=p(8351),y=p(6096),C=p(4160),A=p(1469),M=p(4144),R=p(6719),B="[object Arguments]",Y="[object Array]",G="[object Object]",Q=Object.prototype.hasOwnProperty;S.exports=function(K,gt,tt,Lt,at,vt){var At=A(K),Zt=A(gt),zt=At?Y:C(K),xt=Zt?Y:C(gt),jt=(zt=zt==B?G:zt)==G,Bt=(xt=xt==B?G:xt)==G,lt=zt==xt;if(lt&&M(K)){if(!M(gt))return!1;At=!0,jt=!1}if(lt&&!jt)return vt||(vt=new v),At||R(K)?f(K,gt,tt,Lt,at,vt):k(K,gt,zt,tt,Lt,at,vt);if(!(1&tt)){var et=jt&&Q.call(K,"__wrapped__"),st=Bt&&Q.call(gt,"__wrapped__");if(et||st){var $=et?K.value():K,Dt=st?gt.value():gt;return vt||(vt=new v),at($,Dt,tt,Lt,vt)}}return!!lt&&(vt||(vt=new v),y(K,gt,tt,Lt,at,vt))}},5588:(S,O,p)=>{var v=p(4160),f=p(7005);S.exports=function(k){return f(k)&&v(k)=="[object Map]"}},2958:(S,O,p)=>{var v=p(6384),f=p(939);S.exports=function(k,y,C,A){var M=C.length,R=M,B=!A;if(k==null)return!R;for(k=Object(k);M--;){var Y=C[M];if(B&&Y[2]?Y[1]!==k[Y[0]]:!(Y[0]in k))return!1}for(;++M<R;){var G=(Y=C[M])[0],Q=k[G],K=Y[1];if(B&&Y[2]){if(Q===void 0&&!(G in k))return!1}else{var gt=new v;if(A)var tt=A(Q,K,G,k,y,gt);if(!(tt===void 0?f(K,Q,3,A,gt):tt))return!1}}return!0}},2722:S=>{S.exports=function(O){return O!=O}},8458:(S,O,p)=>{var v=p(3560),f=p(5346),k=p(3218),y=p(346),C=/^\[object .+?Constructor\]$/,A=Function.prototype,M=Object.prototype,R=A.toString,B=M.hasOwnProperty,Y=RegExp("^"+R.call(B).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");S.exports=function(G){return!(!k(G)||f(G))&&(v(G)?Y:C).test(y(G))}},9221:(S,O,p)=>{var v=p(4160),f=p(7005);S.exports=function(k){return f(k)&&v(k)=="[object Set]"}},8749:(S,O,p)=>{var v=p(4239),f=p(1780),k=p(7005),y={};y["[object Float32Array]"]=y["[object Float64Array]"]=y["[object Int8Array]"]=y["[object Int16Array]"]=y["[object Int32Array]"]=y["[object Uint8Array]"]=y["[object Uint8ClampedArray]"]=y["[object Uint16Array]"]=y["[object Uint32Array]"]=!0,y["[object Arguments]"]=y["[object Array]"]=y["[object ArrayBuffer]"]=y["[object Boolean]"]=y["[object DataView]"]=y["[object Date]"]=y["[object Error]"]=y["[object Function]"]=y["[object Map]"]=y["[object Number]"]=y["[object Object]"]=y["[object RegExp]"]=y["[object Set]"]=y["[object String]"]=y["[object WeakMap]"]=!1,S.exports=function(C){return k(C)&&f(C.length)&&!!y[v(C)]}},7206:(S,O,p)=>{var v=p(1573),f=p(6432),k=p(6557),y=p(1469),C=p(9601);S.exports=function(A){return typeof A=="function"?A:A==null?k:typeof A=="object"?y(A)?f(A[0],A[1]):v(A):C(A)}},280:(S,O,p)=>{var v=p(5726),f=p(6916),k=Object.prototype.hasOwnProperty;S.exports=function(y){if(!v(y))return f(y);var C=[];for(var A in Object(y))k.call(y,A)&&A!="constructor"&&C.push(A);return C}},313:(S,O,p)=>{var v=p(3218),f=p(5726),k=p(3498),y=Object.prototype.hasOwnProperty;S.exports=function(C){if(!v(C))return k(C);var A=f(C),M=[];for(var R in C)(R!="constructor"||!A&&y.call(C,R))&&M.push(R);return M}},433:S=>{S.exports=function(O,p){return O<p}},9199:(S,O,p)=>{var v=p(9881),f=p(8612);S.exports=function(k,y){var C=-1,A=f(k)?Array(k.length):[];return v(k,function(M,R,B){A[++C]=y(M,R,B)}),A}},1573:(S,O,p)=>{var v=p(2958),f=p(1499),k=p(2634);S.exports=function(y){var C=f(y);return C.length==1&&C[0][2]?k(C[0][0],C[0][1]):function(A){return A===y||v(A,y,C)}}},6432:(S,O,p)=>{var v=p(939),f=p(7361),k=p(9095),y=p(5403),C=p(9162),A=p(2634),M=p(327);S.exports=function(R,B){return y(R)&&C(B)?A(M(R),B):function(Y){var G=f(Y,R);return G===void 0&&G===B?k(Y,R):v(B,G,3)}}},2980:(S,O,p)=>{var v=p(6384),f=p(6556),k=p(8483),y=p(9783),C=p(3218),A=p(1704),M=p(6390);S.exports=function R(B,Y,G,Q,K){B!==Y&&k(Y,function(gt,tt){if(K||(K=new v),C(gt))y(B,Y,tt,G,R,Q,K);else{var Lt=Q?Q(M(B,tt),gt,tt+"",B,Y,K):void 0;Lt===void 0&&(Lt=gt),f(B,tt,Lt)}},A)}},9783:(S,O,p)=>{var v=p(6556),f=p(4626),k=p(7133),y=p(278),C=p(8517),A=p(5694),M=p(1469),R=p(9246),B=p(4144),Y=p(3560),G=p(3218),Q=p(8630),K=p(6719),gt=p(6390),tt=p(3678);S.exports=function(Lt,at,vt,At,Zt,zt,xt){var jt=gt(Lt,vt),Bt=gt(at,vt),lt=xt.get(Bt);if(lt)v(Lt,vt,lt);else{var et=zt?zt(jt,Bt,vt+"",Lt,at,xt):void 0,st=et===void 0;if(st){var $=M(Bt),Dt=!$&&B(Bt),z=!$&&!Dt&&K(Bt);et=Bt,$||Dt||z?M(jt)?et=jt:R(jt)?et=y(jt):Dt?(st=!1,et=f(Bt,!0)):z?(st=!1,et=k(Bt,!0)):et=[]:Q(Bt)||A(Bt)?(et=jt,A(jt)?et=tt(jt):G(jt)&&!Y(jt)||(et=C(Bt))):st=!1}st&&(xt.set(Bt,et),Zt(et,Bt,At,zt,xt),xt.delete(Bt)),v(Lt,vt,et)}}},9556:(S,O,p)=>{var v=p(9932),f=p(7786),k=p(7206),y=p(9199),C=p(1131),A=p(1717),M=p(5022),R=p(6557),B=p(1469);S.exports=function(Y,G,Q){G=G.length?v(G,function(tt){return B(tt)?function(Lt){return f(Lt,tt.length===1?tt[0]:tt)}:tt}):[R];var K=-1;G=v(G,A(k));var gt=y(Y,function(tt,Lt,at){return{criteria:v(G,function(vt){return vt(tt)}),index:++K,value:tt}});return C(gt,function(tt,Lt){return M(tt,Lt,Q)})}},5970:(S,O,p)=>{var v=p(3012),f=p(9095);S.exports=function(k,y){return v(k,y,function(C,A){return f(k,A)})}},3012:(S,O,p)=>{var v=p(7786),f=p(611),k=p(1811);S.exports=function(y,C,A){for(var M=-1,R=C.length,B={};++M<R;){var Y=C[M],G=v(y,Y);A(G,Y)&&f(B,k(Y,y),G)}return B}},371:S=>{S.exports=function(O){return function(p){return p==null?void 0:p[O]}}},9152:(S,O,p)=>{var v=p(7786);S.exports=function(f){return function(k){return v(k,f)}}},98:S=>{var O=Math.ceil,p=Math.max;S.exports=function(v,f,k,y){for(var C=-1,A=p(O((f-v)/(k||1)),0),M=Array(A);A--;)M[y?A:++C]=v,v+=k;return M}},107:S=>{S.exports=function(O,p,v,f,k){return k(O,function(y,C,A){v=f?(f=!1,y):p(v,y,C,A)}),v}},5976:(S,O,p)=>{var v=p(6557),f=p(5357),k=p(61);S.exports=function(y,C){return k(f(y,C,v),y+"")}},611:(S,O,p)=>{var v=p(4865),f=p(1811),k=p(5776),y=p(3218),C=p(327);S.exports=function(A,M,R,B){if(!y(A))return A;for(var Y=-1,G=(M=f(M,A)).length,Q=G-1,K=A;K!=null&&++Y<G;){var gt=C(M[Y]),tt=R;if(gt==="__proto__"||gt==="constructor"||gt==="prototype")return A;if(Y!=Q){var Lt=K[gt];(tt=B?B(Lt,gt,K):void 0)===void 0&&(tt=y(Lt)?Lt:k(M[Y+1])?[]:{})}v(K,gt,tt),K=K[gt]}return A}},6560:(S,O,p)=>{var v=p(5703),f=p(8777),k=p(6557),y=f?function(C,A){return f(C,"toString",{configurable:!0,enumerable:!1,value:v(A),writable:!0})}:k;S.exports=y},1131:S=>{S.exports=function(O,p){var v=O.length;for(O.sort(p);v--;)O[v]=O[v].value;return O}},2545:S=>{S.exports=function(O,p){for(var v=-1,f=Array(O);++v<O;)f[v]=p(v);return f}},531:(S,O,p)=>{var v=p(2705),f=p(9932),k=p(1469),y=p(3448),C=v?v.prototype:void 0,A=C?C.toString:void 0;S.exports=function M(R){if(typeof R=="string")return R;if(k(R))return f(R,M)+"";if(y(R))return A?A.call(R):"";var B=R+"";return B=="0"&&1/R==-1/0?"-0":B}},7561:(S,O,p)=>{var v=p(7990),f=/^\s+/;S.exports=function(k){return k&&k.slice(0,v(k)+1).replace(f,"")}},1717:S=>{S.exports=function(O){return function(p){return O(p)}}},5652:(S,O,p)=>{var v=p(8668),f=p(7443),k=p(1196),y=p(4757),C=p(3593),A=p(1814);S.exports=function(M,R,B){var Y=-1,G=f,Q=M.length,K=!0,gt=[],tt=gt;if(B)K=!1,G=k;else if(Q>=200){var Lt=R?null:C(M);if(Lt)return A(Lt);K=!1,G=y,tt=new v}else tt=R?[]:gt;t:for(;++Y<Q;){var at=M[Y],vt=R?R(at):at;if(at=B||at!==0?at:0,K&&vt==vt){for(var At=tt.length;At--;)if(tt[At]===vt)continue t;R&&tt.push(vt),gt.push(at)}else G(tt,vt,B)||(tt!==gt&&tt.push(vt),gt.push(at))}return gt}},7415:(S,O,p)=>{var v=p(9932);S.exports=function(f,k){return v(k,function(y){return f[y]})}},1757:S=>{S.exports=function(O,p,v){for(var f=-1,k=O.length,y=p.length,C={};++f<k;){var A=f<y?p[f]:void 0;v(C,O[f],A)}return C}},4757:S=>{S.exports=function(O,p){return O.has(p)}},4290:(S,O,p)=>{var v=p(6557);S.exports=function(f){return typeof f=="function"?f:v}},1811:(S,O,p)=>{var v=p(1469),f=p(5403),k=p(5514),y=p(9833);S.exports=function(C,A){return v(C)?C:f(C,A)?[C]:k(y(C))}},4318:(S,O,p)=>{var v=p(1149);S.exports=function(f){var k=new f.constructor(f.byteLength);return new v(k).set(new v(f)),k}},4626:(S,O,p)=>{S=p.nmd(S);var v=p(5639),f=O&&!O.nodeType&&O,k=f&&S&&!S.nodeType&&S,y=k&&k.exports===f?v.Buffer:void 0,C=y?y.allocUnsafe:void 0;S.exports=function(A,M){if(M)return A.slice();var R=A.length,B=C?C(R):new A.constructor(R);return A.copy(B),B}},7157:(S,O,p)=>{var v=p(4318);S.exports=function(f,k){var y=k?v(f.buffer):f.buffer;return new f.constructor(y,f.byteOffset,f.byteLength)}},3147:S=>{var O=/\w*$/;S.exports=function(p){var v=new p.constructor(p.source,O.exec(p));return v.lastIndex=p.lastIndex,v}},419:(S,O,p)=>{var v=p(2705),f=v?v.prototype:void 0,k=f?f.valueOf:void 0;S.exports=function(y){return k?Object(k.call(y)):{}}},7133:(S,O,p)=>{var v=p(4318);S.exports=function(f,k){var y=k?v(f.buffer):f.buffer;return new f.constructor(y,f.byteOffset,f.length)}},6393:(S,O,p)=>{var v=p(3448);S.exports=function(f,k){if(f!==k){var y=f!==void 0,C=f===null,A=f==f,M=v(f),R=k!==void 0,B=k===null,Y=k==k,G=v(k);if(!B&&!G&&!M&&f>k||M&&R&&Y&&!B&&!G||C&&R&&Y||!y&&Y||!A)return 1;if(!C&&!M&&!G&&f<k||G&&y&&A&&!C&&!M||B&&y&&A||!R&&A||!Y)return-1}return 0}},5022:(S,O,p)=>{var v=p(6393);S.exports=function(f,k,y){for(var C=-1,A=f.criteria,M=k.criteria,R=A.length,B=y.length;++C<R;){var Y=v(A[C],M[C]);if(Y)return C>=B?Y:Y*(y[C]=="desc"?-1:1)}return f.index-k.index}},278:S=>{S.exports=function(O,p){var v=-1,f=O.length;for(p||(p=Array(f));++v<f;)p[v]=O[v];return p}},8363:(S,O,p)=>{var v=p(4865),f=p(9465);S.exports=function(k,y,C,A){var M=!C;C||(C={});for(var R=-1,B=y.length;++R<B;){var Y=y[R],G=A?A(C[Y],k[Y],Y,C,k):void 0;G===void 0&&(G=k[Y]),M?f(C,Y,G):v(C,Y,G)}return C}},8805:(S,O,p)=>{var v=p(8363),f=p(9551);S.exports=function(k,y){return v(k,f(k),y)}},1911:(S,O,p)=>{var v=p(8363),f=p(1442);S.exports=function(k,y){return v(k,f(k),y)}},4429:(S,O,p)=>{var v=p(5639)["__core-js_shared__"];S.exports=v},1750:(S,O,p)=>{var v=p(5976),f=p(6612);S.exports=function(k){return v(function(y,C){var A=-1,M=C.length,R=M>1?C[M-1]:void 0,B=M>2?C[2]:void 0;for(R=k.length>3&&typeof R=="function"?(M--,R):void 0,B&&f(C[0],C[1],B)&&(R=M<3?void 0:R,M=1),y=Object(y);++A<M;){var Y=C[A];Y&&k(y,Y,A,R)}return y})}},9291:(S,O,p)=>{var v=p(8612);S.exports=function(f,k){return function(y,C){if(y==null)return y;if(!v(y))return f(y,C);for(var A=y.length,M=k?A:-1,R=Object(y);(k?M--:++M<A)&&C(R[M],M,R)!==!1;);return y}}},5063:S=>{S.exports=function(O){return function(p,v,f){for(var k=-1,y=Object(p),C=f(p),A=C.length;A--;){var M=C[O?A:++k];if(v(y[M],M,y)===!1)break}return p}}},7740:(S,O,p)=>{var v=p(7206),f=p(8612),k=p(3674);S.exports=function(y){return function(C,A,M){var R=Object(C);if(!f(C)){var B=v(A,3);C=k(C),A=function(G){return B(R[G],G,R)}}var Y=y(C,A,M);return Y>-1?R[B?C[Y]:Y]:void 0}}},7445:(S,O,p)=>{var v=p(98),f=p(6612),k=p(8601);S.exports=function(y){return function(C,A,M){return M&&typeof M!="number"&&f(C,A,M)&&(A=M=void 0),C=k(C),A===void 0?(A=C,C=0):A=k(A),M=M===void 0?C<A?1:-1:k(M),v(C,A,M,y)}}},3593:(S,O,p)=>{var v=p(8525),f=p(308),k=p(1814),y=v&&1/k(new v([,-0]))[1]==1/0?function(C){return new v(C)}:f;S.exports=y},8777:(S,O,p)=>{var v=p(852),f=function(){try{var k=v(Object,"defineProperty");return k({},"",{}),k}catch{}}();S.exports=f},7114:(S,O,p)=>{var v=p(8668),f=p(2908),k=p(4757);S.exports=function(y,C,A,M,R,B){var Y=1&A,G=y.length,Q=C.length;if(G!=Q&&!(Y&&Q>G))return!1;var K=B.get(y),gt=B.get(C);if(K&&gt)return K==C&&gt==y;var tt=-1,Lt=!0,at=2&A?new v:void 0;for(B.set(y,C),B.set(C,y);++tt<G;){var vt=y[tt],At=C[tt];if(M)var Zt=Y?M(At,vt,tt,C,y,B):M(vt,At,tt,y,C,B);if(Zt!==void 0){if(Zt)continue;Lt=!1;break}if(at){if(!f(C,function(zt,xt){if(!k(at,xt)&&(vt===zt||R(vt,zt,A,M,B)))return at.push(xt)})){Lt=!1;break}}else if(vt!==At&&!R(vt,At,A,M,B)){Lt=!1;break}}return B.delete(y),B.delete(C),Lt}},8351:(S,O,p)=>{var v=p(2705),f=p(1149),k=p(7813),y=p(7114),C=p(8776),A=p(1814),M=v?v.prototype:void 0,R=M?M.valueOf:void 0;S.exports=function(B,Y,G,Q,K,gt,tt){switch(G){case"[object DataView]":if(B.byteLength!=Y.byteLength||B.byteOffset!=Y.byteOffset)return!1;B=B.buffer,Y=Y.buffer;case"[object ArrayBuffer]":return!(B.byteLength!=Y.byteLength||!gt(new f(B),new f(Y)));case"[object Boolean]":case"[object Date]":case"[object Number]":return k(+B,+Y);case"[object Error]":return B.name==Y.name&&B.message==Y.message;case"[object RegExp]":case"[object String]":return B==Y+"";case"[object Map]":var Lt=C;case"[object Set]":var at=1&Q;if(Lt||(Lt=A),B.size!=Y.size&&!at)return!1;var vt=tt.get(B);if(vt)return vt==Y;Q|=2,tt.set(B,Y);var At=y(Lt(B),Lt(Y),Q,K,gt,tt);return tt.delete(B),At;case"[object Symbol]":if(R)return R.call(B)==R.call(Y)}return!1}},6096:(S,O,p)=>{var v=p(8234),f=Object.prototype.hasOwnProperty;S.exports=function(k,y,C,A,M,R){var B=1&C,Y=v(k),G=Y.length;if(G!=v(y).length&&!B)return!1;for(var Q=G;Q--;){var K=Y[Q];if(!(B?K in y:f.call(y,K)))return!1}var gt=R.get(k),tt=R.get(y);if(gt&&tt)return gt==y&&tt==k;var Lt=!0;R.set(k,y),R.set(y,k);for(var at=B;++Q<G;){var vt=k[K=Y[Q]],At=y[K];if(A)var Zt=B?A(At,vt,K,y,k,R):A(vt,At,K,k,y,R);if(!(Zt===void 0?vt===At||M(vt,At,C,A,R):Zt)){Lt=!1;break}at||(at=K=="constructor")}if(Lt&&!at){var zt=k.constructor,xt=y.constructor;zt==xt||!("constructor"in k)||!("constructor"in y)||typeof zt=="function"&&zt instanceof zt&&typeof xt=="function"&&xt instanceof xt||(Lt=!1)}return R.delete(k),R.delete(y),Lt}},9021:(S,O,p)=>{var v=p(5564),f=p(5357),k=p(61);S.exports=function(y){return k(f(y,void 0,v),y+"")}},1957:(S,O,p)=>{var v=typeof p.g=="object"&&p.g&&p.g.Object===Object&&p.g;S.exports=v},8234:(S,O,p)=>{var v=p(8866),f=p(9551),k=p(3674);S.exports=function(y){return v(y,k,f)}},6904:(S,O,p)=>{var v=p(8866),f=p(1442),k=p(1704);S.exports=function(y){return v(y,k,f)}},5050:(S,O,p)=>{var v=p(7019);S.exports=function(f,k){var y=f.__data__;return v(k)?y[typeof k=="string"?"string":"hash"]:y.map}},1499:(S,O,p)=>{var v=p(9162),f=p(3674);S.exports=function(k){for(var y=f(k),C=y.length;C--;){var A=y[C],M=k[A];y[C]=[A,M,v(M)]}return y}},852:(S,O,p)=>{var v=p(8458),f=p(7801);S.exports=function(k,y){var C=f(k,y);return v(C)?C:void 0}},5924:(S,O,p)=>{var v=p(5569)(Object.getPrototypeOf,Object);S.exports=v},9607:(S,O,p)=>{var v=p(2705),f=Object.prototype,k=f.hasOwnProperty,y=f.toString,C=v?v.toStringTag:void 0;S.exports=function(A){var M=k.call(A,C),R=A[C];try{A[C]=void 0;var B=!0}catch{}var Y=y.call(A);return B&&(M?A[C]=R:delete A[C]),Y}},9551:(S,O,p)=>{var v=p(4963),f=p(479),k=Object.prototype.propertyIsEnumerable,y=Object.getOwnPropertySymbols,C=y?function(A){return A==null?[]:(A=Object(A),v(y(A),function(M){return k.call(A,M)}))}:f;S.exports=C},1442:(S,O,p)=>{var v=p(2488),f=p(5924),k=p(9551),y=p(479),C=Object.getOwnPropertySymbols?function(A){for(var M=[];A;)v(M,k(A)),A=f(A);return M}:y;S.exports=C},4160:(S,O,p)=>{var v=p(8552),f=p(7071),k=p(3818),y=p(8525),C=p(577),A=p(4239),M=p(346),R="[object Map]",B="[object Promise]",Y="[object Set]",G="[object WeakMap]",Q="[object DataView]",K=M(v),gt=M(f),tt=M(k),Lt=M(y),at=M(C),vt=A;(v&&vt(new v(new ArrayBuffer(1)))!=Q||f&&vt(new f)!=R||k&&vt(k.resolve())!=B||y&&vt(new y)!=Y||C&&vt(new C)!=G)&&(vt=function(At){var Zt=A(At),zt=Zt=="[object Object]"?At.constructor:void 0,xt=zt?M(zt):"";if(xt)switch(xt){case K:return Q;case gt:return R;case tt:return B;case Lt:return Y;case at:return G}return Zt}),S.exports=vt},7801:S=>{S.exports=function(O,p){return O==null?void 0:O[p]}},222:(S,O,p)=>{var v=p(1811),f=p(5694),k=p(1469),y=p(5776),C=p(1780),A=p(327);S.exports=function(M,R,B){for(var Y=-1,G=(R=v(R,M)).length,Q=!1;++Y<G;){var K=A(R[Y]);if(!(Q=M!=null&&B(M,K)))break;M=M[K]}return Q||++Y!=G?Q:!!(G=M==null?0:M.length)&&C(G)&&y(K,G)&&(k(M)||f(M))}},2689:S=>{var O=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");S.exports=function(p){return O.test(p)}},1789:(S,O,p)=>{var v=p(4536);S.exports=function(){this.__data__=v?v(null):{},this.size=0}},401:S=>{S.exports=function(O){var p=this.has(O)&&delete this.__data__[O];return this.size-=p?1:0,p}},7667:(S,O,p)=>{var v=p(4536),f=Object.prototype.hasOwnProperty;S.exports=function(k){var y=this.__data__;if(v){var C=y[k];return C==="__lodash_hash_undefined__"?void 0:C}return f.call(y,k)?y[k]:void 0}},1327:(S,O,p)=>{var v=p(4536),f=Object.prototype.hasOwnProperty;S.exports=function(k){var y=this.__data__;return v?y[k]!==void 0:f.call(y,k)}},1866:(S,O,p)=>{var v=p(4536);S.exports=function(f,k){var y=this.__data__;return this.size+=this.has(f)?0:1,y[f]=v&&k===void 0?"__lodash_hash_undefined__":k,this}},3824:S=>{var O=Object.prototype.hasOwnProperty;S.exports=function(p){var v=p.length,f=new p.constructor(v);return v&&typeof p[0]=="string"&&O.call(p,"index")&&(f.index=p.index,f.input=p.input),f}},9148:(S,O,p)=>{var v=p(4318),f=p(7157),k=p(3147),y=p(419),C=p(7133);S.exports=function(A,M,R){var B=A.constructor;switch(M){case"[object ArrayBuffer]":return v(A);case"[object Boolean]":case"[object Date]":return new B(+A);case"[object DataView]":return f(A,R);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 C(A,R);case"[object Map]":case"[object Set]":return new B;case"[object Number]":case"[object String]":return new B(A);case"[object RegExp]":return k(A);case"[object Symbol]":return y(A)}}},8517:(S,O,p)=>{var v=p(3118),f=p(5924),k=p(5726);S.exports=function(y){return typeof y.constructor!="function"||k(y)?{}:v(f(y))}},7285:(S,O,p)=>{var v=p(2705),f=p(5694),k=p(1469),y=v?v.isConcatSpreadable:void 0;S.exports=function(C){return k(C)||f(C)||!!(y&&C&&C[y])}},5776:S=>{var O=/^(?:0|[1-9]\d*)$/;S.exports=function(p,v){var f=typeof p;return!!(v=v==null?9007199254740991:v)&&(f=="number"||f!="symbol"&&O.test(p))&&p>-1&&p%1==0&&p<v}},6612:(S,O,p)=>{var v=p(7813),f=p(8612),k=p(5776),y=p(3218);S.exports=function(C,A,M){if(!y(M))return!1;var R=typeof A;return!!(R=="number"?f(M)&&k(A,M.length):R=="string"&&A in M)&&v(M[A],C)}},5403:(S,O,p)=>{var v=p(1469),f=p(3448),k=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,y=/^\w*$/;S.exports=function(C,A){if(v(C))return!1;var M=typeof C;return!(M!="number"&&M!="symbol"&&M!="boolean"&&C!=null&&!f(C))||y.test(C)||!k.test(C)||A!=null&&C in Object(A)}},7019:S=>{S.exports=function(O){var p=typeof O;return p=="string"||p=="number"||p=="symbol"||p=="boolean"?O!=="__proto__":O===null}},5346:(S,O,p)=>{var v,f=p(4429),k=(v=/[^.]+$/.exec(f&&f.keys&&f.keys.IE_PROTO||""))?"Symbol(src)_1."+v:"";S.exports=function(y){return!!k&&k in y}},5726:S=>{var O=Object.prototype;S.exports=function(p){var v=p&&p.constructor;return p===(typeof v=="function"&&v.prototype||O)}},9162:(S,O,p)=>{var v=p(3218);S.exports=function(f){return f==f&&!v(f)}},7040:S=>{S.exports=function(){this.__data__=[],this.size=0}},4125:(S,O,p)=>{var v=p(8470),f=Array.prototype.splice;S.exports=function(k){var y=this.__data__,C=v(y,k);return!(C<0||(C==y.length-1?y.pop():f.call(y,C,1),--this.size,0))}},2117:(S,O,p)=>{var v=p(8470);S.exports=function(f){var k=this.__data__,y=v(k,f);return y<0?void 0:k[y][1]}},7518:(S,O,p)=>{var v=p(8470);S.exports=function(f){return v(this.__data__,f)>-1}},4705:(S,O,p)=>{var v=p(8470);S.exports=function(f,k){var y=this.__data__,C=v(y,f);return C<0?(++this.size,y.push([f,k])):y[C][1]=k,this}},4785:(S,O,p)=>{var v=p(1989),f=p(8407),k=p(7071);S.exports=function(){this.size=0,this.__data__={hash:new v,map:new(k||f),string:new v}}},1285:(S,O,p)=>{var v=p(5050);S.exports=function(f){var k=v(this,f).delete(f);return this.size-=k?1:0,k}},6e3:(S,O,p)=>{var v=p(5050);S.exports=function(f){return v(this,f).get(f)}},9916:(S,O,p)=>{var v=p(5050);S.exports=function(f){return v(this,f).has(f)}},5265:(S,O,p)=>{var v=p(5050);S.exports=function(f,k){var y=v(this,f),C=y.size;return y.set(f,k),this.size+=y.size==C?0:1,this}},8776:S=>{S.exports=function(O){var p=-1,v=Array(O.size);return O.forEach(function(f,k){v[++p]=[k,f]}),v}},2634:S=>{S.exports=function(O,p){return function(v){return v!=null&&v[O]===p&&(p!==void 0||O in Object(v))}}},4523:(S,O,p)=>{var v=p(8306);S.exports=function(f){var k=v(f,function(C){return y.size===500&&y.clear(),C}),y=k.cache;return k}},4536:(S,O,p)=>{var v=p(852)(Object,"create");S.exports=v},6916:(S,O,p)=>{var v=p(5569)(Object.keys,Object);S.exports=v},3498:S=>{S.exports=function(O){var p=[];if(O!=null)for(var v in Object(O))p.push(v);return p}},1167:(S,O,p)=>{S=p.nmd(S);var v=p(1957),f=O&&!O.nodeType&&O,k=f&&S&&!S.nodeType&&S,y=k&&k.exports===f&&v.process,C=function(){try{return k&&k.require&&k.require("util").types||y&&y.binding&&y.binding("util")}catch{}}();S.exports=C},2333:S=>{var O=Object.prototype.toString;S.exports=function(p){return O.call(p)}},5569:S=>{S.exports=function(O,p){return function(v){return O(p(v))}}},5357:(S,O,p)=>{var v=p(6874),f=Math.max;S.exports=function(k,y,C){return y=f(y===void 0?k.length-1:y,0),function(){for(var A=arguments,M=-1,R=f(A.length-y,0),B=Array(R);++M<R;)B[M]=A[y+M];M=-1;for(var Y=Array(y+1);++M<y;)Y[M]=A[M];return Y[y]=C(B),v(k,this,Y)}}},5639:(S,O,p)=>{var v=p(1957),f=typeof self=="object"&&self&&self.Object===Object&&self,k=v||f||Function("return this")();S.exports=k},6390:S=>{S.exports=function(O,p){if((p!=="constructor"||typeof O[p]!="function")&&p!="__proto__")return O[p]}},619:S=>{S.exports=function(O){return this.__data__.set(O,"__lodash_hash_undefined__"),this}},2385:S=>{S.exports=function(O){return this.__data__.has(O)}},1814:S=>{S.exports=function(O){var p=-1,v=Array(O.size);return O.forEach(function(f){v[++p]=f}),v}},61:(S,O,p)=>{var v=p(6560),f=p(1275)(v);S.exports=f},1275:S=>{var O=Date.now;S.exports=function(p){var v=0,f=0;return function(){var k=O(),y=16-(k-f);if(f=k,y>0){if(++v>=800)return arguments[0]}else v=0;return p.apply(void 0,arguments)}}},7465:(S,O,p)=>{var v=p(8407);S.exports=function(){this.__data__=new v,this.size=0}},3779:S=>{S.exports=function(O){var p=this.__data__,v=p.delete(O);return this.size=p.size,v}},7599:S=>{S.exports=function(O){return this.__data__.get(O)}},4758:S=>{S.exports=function(O){return this.__data__.has(O)}},4309:(S,O,p)=>{var v=p(8407),f=p(7071),k=p(3369);S.exports=function(y,C){var A=this.__data__;if(A instanceof v){var M=A.__data__;if(!f||M.length<199)return M.push([y,C]),this.size=++A.size,this;A=this.__data__=new k(M)}return A.set(y,C),this.size=A.size,this}},2351:S=>{S.exports=function(O,p,v){for(var f=v-1,k=O.length;++f<k;)if(O[f]===p)return f;return-1}},8016:(S,O,p)=>{var v=p(8983),f=p(2689),k=p(1903);S.exports=function(y){return f(y)?k(y):v(y)}},5514:(S,O,p)=>{var v=p(4523),f=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,k=/\\(\\)?/g,y=v(function(C){var A=[];return C.charCodeAt(0)===46&&A.push(""),C.replace(f,function(M,R,B,Y){A.push(B?Y.replace(k,"$1"):R||M)}),A});S.exports=y},327:(S,O,p)=>{var v=p(3448);S.exports=function(f){if(typeof f=="string"||v(f))return f;var k=f+"";return k=="0"&&1/f==-1/0?"-0":k}},346:S=>{var O=Function.prototype.toString;S.exports=function(p){if(p!=null){try{return O.call(p)}catch{}try{return p+""}catch{}}return""}},7990:S=>{var O=/\s/;S.exports=function(p){for(var v=p.length;v--&&O.test(p.charAt(v)););return v}},1903:S=>{var O="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",p="\\ud83c[\\udffb-\\udfff]",v="[^\\ud800-\\udfff]",f="(?:\\ud83c[\\udde6-\\uddff]){2}",k="[\\ud800-\\udbff][\\udc00-\\udfff]",y="(?:"+O+"|"+p+")?",C="[\\ufe0e\\ufe0f]?",A=C+y+"(?:\\u200d(?:"+[v,f,k].join("|")+")"+C+y+")*",M="(?:"+[v+O+"?",O,f,k,"[\\ud800-\\udfff]"].join("|")+")",R=RegExp(p+"(?="+p+")|"+M+A,"g");S.exports=function(B){for(var Y=R.lastIndex=0;R.test(B);)++Y;return Y}},6678:(S,O,p)=>{var v=p(5990);S.exports=function(f){return v(f,4)}},361:(S,O,p)=>{var v=p(5990);S.exports=function(f){return v(f,5)}},5703:S=>{S.exports=function(O){return function(){return O}}},1747:(S,O,p)=>{var v=p(5976),f=p(7813),k=p(6612),y=p(1704),C=Object.prototype,A=C.hasOwnProperty,M=v(function(R,B){R=Object(R);var Y=-1,G=B.length,Q=G>2?B[2]:void 0;for(Q&&k(B[0],B[1],Q)&&(G=1);++Y<G;)for(var K=B[Y],gt=y(K),tt=-1,Lt=gt.length;++tt<Lt;){var at=gt[tt],vt=R[at];(vt===void 0||f(vt,C[at])&&!A.call(R,at))&&(R[at]=K[at])}return R});S.exports=M},6073:(S,O,p)=>{S.exports=p(4486)},7813:S=>{S.exports=function(O,p){return O===p||O!=O&&p!=p}},3105:(S,O,p)=>{var v=p(4963),f=p(760),k=p(7206),y=p(1469);S.exports=function(C,A){return(y(C)?v:f)(C,k(A,3))}},3311:(S,O,p)=>{var v=p(7740)(p(998));S.exports=v},998:(S,O,p)=>{var v=p(1848),f=p(7206),k=p(554),y=Math.max;S.exports=function(C,A,M){var R=C==null?0:C.length;if(!R)return-1;var B=M==null?0:k(M);return B<0&&(B=y(R+B,0)),v(C,f(A,3),B)}},5564:(S,O,p)=>{var v=p(1078);S.exports=function(f){return f!=null&&f.length?v(f,1):[]}},4486:(S,O,p)=>{var v=p(7412),f=p(9881),k=p(4290),y=p(1469);S.exports=function(C,A){return(y(C)?v:f)(C,k(A))}},2620:(S,O,p)=>{var v=p(8483),f=p(4290),k=p(1704);S.exports=function(y,C){return y==null?y:v(y,f(C),k)}},7361:(S,O,p)=>{var v=p(7786);S.exports=function(f,k,y){var C=f==null?void 0:v(f,k);return C===void 0?y:C}},8721:(S,O,p)=>{var v=p(8565),f=p(222);S.exports=function(k,y){return k!=null&&f(k,y,v)}},9095:(S,O,p)=>{var v=p(13),f=p(222);S.exports=function(k,y){return k!=null&&f(k,y,v)}},6557:S=>{S.exports=function(O){return O}},5694:(S,O,p)=>{var v=p(9454),f=p(7005),k=Object.prototype,y=k.hasOwnProperty,C=k.propertyIsEnumerable,A=v(function(){return arguments}())?v:function(M){return f(M)&&y.call(M,"callee")&&!C.call(M,"callee")};S.exports=A},1469:S=>{var O=Array.isArray;S.exports=O},8612:(S,O,p)=>{var v=p(3560),f=p(1780);S.exports=function(k){return k!=null&&f(k.length)&&!v(k)}},9246:(S,O,p)=>{var v=p(8612),f=p(7005);S.exports=function(k){return f(k)&&v(k)}},4144:(S,O,p)=>{S=p.nmd(S);var v=p(5639),f=p(5062),k=O&&!O.nodeType&&O,y=k&&S&&!S.nodeType&&S,C=y&&y.exports===k?v.Buffer:void 0,A=(C?C.isBuffer:void 0)||f;S.exports=A},1609:(S,O,p)=>{var v=p(280),f=p(4160),k=p(5694),y=p(1469),C=p(8612),A=p(4144),M=p(5726),R=p(6719),B=Object.prototype.hasOwnProperty;S.exports=function(Y){if(Y==null)return!0;if(C(Y)&&(y(Y)||typeof Y=="string"||typeof Y.splice=="function"||A(Y)||R(Y)||k(Y)))return!Y.length;var G=f(Y);if(G=="[object Map]"||G=="[object Set]")return!Y.size;if(M(Y))return!v(Y).length;for(var Q in Y)if(B.call(Y,Q))return!1;return!0}},3560:(S,O,p)=>{var v=p(4239),f=p(3218);S.exports=function(k){if(!f(k))return!1;var y=v(k);return y=="[object Function]"||y=="[object GeneratorFunction]"||y=="[object AsyncFunction]"||y=="[object Proxy]"}},1780:S=>{S.exports=function(O){return typeof O=="number"&&O>-1&&O%1==0&&O<=9007199254740991}},6688:(S,O,p)=>{var v=p(5588),f=p(1717),k=p(1167),y=k&&k.isMap,C=y?f(y):v;S.exports=C},3218:S=>{S.exports=function(O){var p=typeof O;return O!=null&&(p=="object"||p=="function")}},7005:S=>{S.exports=function(O){return O!=null&&typeof O=="object"}},8630:(S,O,p)=>{var v=p(4239),f=p(5924),k=p(7005),y=Function.prototype,C=Object.prototype,A=y.toString,M=C.hasOwnProperty,R=A.call(Object);S.exports=function(B){if(!k(B)||v(B)!="[object Object]")return!1;var Y=f(B);if(Y===null)return!0;var G=M.call(Y,"constructor")&&Y.constructor;return typeof G=="function"&&G instanceof G&&A.call(G)==R}},2928:(S,O,p)=>{var v=p(9221),f=p(1717),k=p(1167),y=k&&k.isSet,C=y?f(y):v;S.exports=C},7037:(S,O,p)=>{var v=p(4239),f=p(1469),k=p(7005);S.exports=function(y){return typeof y=="string"||!f(y)&&k(y)&&v(y)=="[object String]"}},3448:(S,O,p)=>{var v=p(4239),f=p(7005);S.exports=function(k){return typeof k=="symbol"||f(k)&&v(k)=="[object Symbol]"}},6719:(S,O,p)=>{var v=p(8749),f=p(1717),k=p(1167),y=k&&k.isTypedArray,C=y?f(y):v;S.exports=C},2353:S=>{S.exports=function(O){return O===void 0}},3674:(S,O,p)=>{var v=p(4636),f=p(280),k=p(8612);S.exports=function(y){return k(y)?v(y):f(y)}},1704:(S,O,p)=>{var v=p(4636),f=p(313),k=p(8612);S.exports=function(y){return k(y)?v(y,!0):f(y)}},928:S=>{S.exports=function(O){var p=O==null?0:O.length;return p?O[p-1]:void 0}},5161:(S,O,p)=>{var v=p(9932),f=p(7206),k=p(9199),y=p(1469);S.exports=function(C,A){return(y(C)?v:k)(C,f(A,3))}},6604:(S,O,p)=>{var v=p(9465),f=p(7816),k=p(7206);S.exports=function(y,C){var A={};return C=k(C,3),f(y,function(M,R,B){v(A,R,C(M,R,B))}),A}},6162:(S,O,p)=>{var v=p(6029),f=p(3325),k=p(6557);S.exports=function(y){return y&&y.length?v(y,k,f):void 0}},8306:(S,O,p)=>{var v=p(3369);function f(k,y){if(typeof k!="function"||y!=null&&typeof y!="function")throw new TypeError("Expected a function");var C=function(){var A=arguments,M=y?y.apply(this,A):A[0],R=C.cache;if(R.has(M))return R.get(M);var B=k.apply(this,A);return C.cache=R.set(M,B)||R,B};return C.cache=new(f.Cache||v),C}f.Cache=v,S.exports=f},3857:(S,O,p)=>{var v=p(2980),f=p(1750)(function(k,y,C){v(k,y,C)});S.exports=f},3632:(S,O,p)=>{var v=p(6029),f=p(433),k=p(6557);S.exports=function(y){return y&&y.length?v(y,k,f):void 0}},2762:(S,O,p)=>{var v=p(6029),f=p(7206),k=p(433);S.exports=function(y,C){return y&&y.length?v(y,f(C,2),k):void 0}},308:S=>{S.exports=function(){}},7771:(S,O,p)=>{var v=p(5639);S.exports=function(){return v.Date.now()}},9722:(S,O,p)=>{var v=p(5970),f=p(9021)(function(k,y){return k==null?{}:v(k,y)});S.exports=f},9601:(S,O,p)=>{var v=p(371),f=p(9152),k=p(5403),y=p(327);S.exports=function(C){return k(C)?v(y(C)):f(C)}},6026:(S,O,p)=>{var v=p(7445)();S.exports=v},4061:(S,O,p)=>{var v=p(2663),f=p(9881),k=p(7206),y=p(107),C=p(1469);S.exports=function(A,M,R){var B=C(A)?v:y,Y=arguments.length<3;return B(A,k(M,4),R,Y,f)}},4238:(S,O,p)=>{var v=p(280),f=p(4160),k=p(8612),y=p(7037),C=p(8016);S.exports=function(A){if(A==null)return 0;if(k(A))return y(A)?C(A):A.length;var M=f(A);return M=="[object Map]"||M=="[object Set]"?A.size:v(A).length}},9734:(S,O,p)=>{var v=p(1078),f=p(9556),k=p(5976),y=p(6612),C=k(function(A,M){if(A==null)return[];var R=M.length;return R>1&&y(A,M[0],M[1])?M=[]:R>2&&y(M[0],M[1],M[2])&&(M=[M[0]]),f(A,v(M,1),[])});S.exports=C},479:S=>{S.exports=function(){return[]}},5062:S=>{S.exports=function(){return!1}},8601:(S,O,p)=>{var v=p(4841);S.exports=function(f){return f?(f=v(f))===1/0||f===-1/0?17976931348623157e292*(f<0?-1:1):f==f?f:0:f===0?f:0}},554:(S,O,p)=>{var v=p(8601);S.exports=function(f){var k=v(f),y=k%1;return k==k?y?k-y:k:0}},4841:(S,O,p)=>{var v=p(7561),f=p(3218),k=p(3448),y=/^[-+]0x[0-9a-f]+$/i,C=/^0b[01]+$/i,A=/^0o[0-7]+$/i,M=parseInt;S.exports=function(R){if(typeof R=="number")return R;if(k(R))return NaN;if(f(R)){var B=typeof R.valueOf=="function"?R.valueOf():R;R=f(B)?B+"":B}if(typeof R!="string")return R===0?R:+R;R=v(R);var Y=C.test(R);return Y||A.test(R)?M(R.slice(2),Y?2:8):y.test(R)?NaN:+R}},3678:(S,O,p)=>{var v=p(8363),f=p(1704);S.exports=function(k){return v(k,f(k))}},9833:(S,O,p)=>{var v=p(531);S.exports=function(f){return f==null?"":v(f)}},8718:(S,O,p)=>{var v=p(7412),f=p(3118),k=p(7816),y=p(7206),C=p(5924),A=p(1469),M=p(4144),R=p(3560),B=p(3218),Y=p(6719);S.exports=function(G,Q,K){var gt=A(G),tt=gt||M(G)||Y(G);if(Q=y(Q,4),K==null){var Lt=G&&G.constructor;K=tt?gt?new Lt:[]:B(G)&&R(Lt)?f(C(G)):{}}return(tt?v:k)(G,function(at,vt,At){return Q(K,at,vt,At)}),K}},3386:(S,O,p)=>{var v=p(1078),f=p(5976),k=p(5652),y=p(9246),C=f(function(A){return k(v(A,1,y,!0))});S.exports=C},3955:(S,O,p)=>{var v=p(9833),f=0;S.exports=function(k){var y=++f;return v(k)+y}},2628:(S,O,p)=>{var v=p(7415),f=p(3674);S.exports=function(k){return k==null?[]:v(k,f(k))}},7287:(S,O,p)=>{var v=p(4865),f=p(1757);S.exports=function(k,y){return f(k||[],y||[],v)}},9234:()=>{},1748:(S,O,p)=>{var v={"./locale":9234,"./locale.js":9234};function f(y){var C=k(y);return p(C)}function k(y){if(!p.o(v,y)){var C=new Error("Cannot find module '"+y+"'");throw C.code="MODULE_NOT_FOUND",C}return v[y]}f.keys=function(){return Object.keys(v)},f.resolve=k,S.exports=f,f.id=1748},1941:function(S,O,p){(S=p.nmd(S)).exports=function(){var v,f;function k(){return v.apply(null,arguments)}function y(T){return T instanceof Array||Object.prototype.toString.call(T)==="[object Array]"}function C(T){return T!=null&&Object.prototype.toString.call(T)==="[object Object]"}function A(T){return T===void 0}function M(T){return typeof T=="number"||Object.prototype.toString.call(T)==="[object Number]"}function R(T){return T instanceof Date||Object.prototype.toString.call(T)==="[object Date]"}function B(T,I){var X,ot=[];for(X=0;X<T.length;++X)ot.push(I(T[X],X));return ot}function Y(T,I){return Object.prototype.hasOwnProperty.call(T,I)}function G(T,I){for(var X in I)Y(I,X)&&(T[X]=I[X]);return Y(I,"toString")&&(T.toString=I.toString),Y(I,"valueOf")&&(T.valueOf=I.valueOf),T}function Q(T,I,X,ot){return lo(T,I,X,ot,!0).utc()}function K(T){return T._pf==null&&(T._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}),T._pf}function gt(T){if(T._isValid==null){var I=K(T),X=f.call(I.parsedDateParts,function(Wt){return Wt!=null}),ot=!isNaN(T._d.getTime())&&I.overflow<0&&!I.empty&&!I.invalidMonth&&!I.invalidWeekday&&!I.weekdayMismatch&&!I.nullInput&&!I.invalidFormat&&!I.userInvalidated&&(!I.meridiem||I.meridiem&&X);if(T._strict&&(ot=ot&&I.charsLeftOver===0&&I.unusedTokens.length===0&&I.bigHour===void 0),Object.isFrozen!=null&&Object.isFrozen(T))return ot;T._isValid=ot}return T._isValid}function tt(T){var I=Q(NaN);return T!=null?G(K(I),T):K(I).userInvalidated=!0,I}f=Array.prototype.some?Array.prototype.some:function(T){for(var I=Object(this),X=I.length>>>0,ot=0;ot<X;ot++)if(ot in I&&T.call(this,I[ot],ot,I))return!0;return!1};var Lt=k.momentProperties=[];function at(T,I){var X,ot,Wt;if(A(I._isAMomentObject)||(T._isAMomentObject=I._isAMomentObject),A(I._i)||(T._i=I._i),A(I._f)||(T._f=I._f),A(I._l)||(T._l=I._l),A(I._strict)||(T._strict=I._strict),A(I._tzm)||(T._tzm=I._tzm),A(I._isUTC)||(T._isUTC=I._isUTC),A(I._offset)||(T._offset=I._offset),A(I._pf)||(T._pf=K(I)),A(I._locale)||(T._locale=I._locale),0<Lt.length)for(X=0;X<Lt.length;X++)A(Wt=I[ot=Lt[X]])||(T[ot]=Wt);return T}var vt=!1;function At(T){at(this,T),this._d=new Date(T._d!=null?T._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),vt===!1&&(vt=!0,k.updateOffset(this),vt=!1)}function Zt(T){return T instanceof At||T!=null&&T._isAMomentObject!=null}function zt(T){return T<0?Math.ceil(T)||0:Math.floor(T)}function xt(T){var I=+T,X=0;return I!==0&&isFinite(I)&&(X=zt(I)),X}function jt(T,I,X){var ot,Wt=Math.min(T.length,I.length),fe=Math.abs(T.length-I.length),Te=0;for(ot=0;ot<Wt;ot++)(X&&T[ot]!==I[ot]||!X&&xt(T[ot])!==xt(I[ot]))&&Te++;return Te+fe}function Bt(T){k.suppressDeprecationWarnings===!1&&typeof console!="undefined"&&console.warn&&console.warn("Deprecation warning: "+T)}function lt(T,I){var X=!0;return G(function(){if(k.deprecationHandler!=null&&k.deprecationHandler(null,T),X){for(var ot,Wt=[],fe=0;fe<arguments.length;fe++){if(ot="",typeof arguments[fe]=="object"){for(var Te in ot+=`
[`+fe+"] ",arguments[0])ot+=Te+": "+arguments[0][Te]+", ";ot=ot.slice(0,-2)}else ot=arguments[fe];Wt.push(ot)}Bt(T+`
Arguments: `+Array.prototype.slice.call(Wt).join("")+`
`+new Error().stack),X=!1}return I.apply(this,arguments)},I)}var et,st={};function $(T,I){k.deprecationHandler!=null&&k.deprecationHandler(T,I),st[T]||(Bt(I),st[T]=!0)}function Dt(T){return T instanceof Function||Object.prototype.toString.call(T)==="[object Function]"}function z(T,I){var X,ot=G({},T);for(X in I)Y(I,X)&&(C(T[X])&&C(I[X])?(ot[X]={},G(ot[X],T[X]),G(ot[X],I[X])):I[X]!=null?ot[X]=I[X]:delete ot[X]);for(X in T)Y(T,X)&&!Y(I,X)&&C(T[X])&&(ot[X]=G({},ot[X]));return ot}function Kt(T){T!=null&&this.set(T)}k.suppressDeprecationWarnings=!1,k.deprecationHandler=null,et=Object.keys?Object.keys:function(T){var I,X=[];for(I in T)Y(T,I)&&X.push(I);return X};var _t={};function ae(T,I){var X=T.toLowerCase();_t[X]=_t[X+"s"]=_t[I]=T}function Ee(T){return typeof T=="string"?_t[T]||_t[T.toLowerCase()]:void 0}function Pe(T){var I,X,ot={};for(X in T)Y(T,X)&&(I=Ee(X))&&(ot[I]=T[X]);return ot}var le={};function oe(T,I){le[T]=I}function he(T,I,X){var ot=""+Math.abs(T),Wt=I-ot.length;return(0<=T?X?"+":"":"-")+Math.pow(10,Math.max(0,Wt)).toString().substr(1)+ot}var be=/(\[[^\[]*\])|(\\)?([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,de={},Se={};function te(T,I,X,ot){var Wt=ot;typeof ot=="string"&&(Wt=function(){return this[ot]()}),T&&(Se[T]=Wt),I&&(Se[I[0]]=function(){return he(Wt.apply(this,arguments),I[1],I[2])}),X&&(Se[X]=function(){return this.localeData().ordinal(Wt.apply(this,arguments),T)})}function _e(T,I){return T.isValid()?(I=wt(I,T.localeData()),de[I]=de[I]||function(X){var ot,Wt,fe,Te=X.match(be);for(ot=0,Wt=Te.length;ot<Wt;ot++)Se[Te[ot]]?Te[ot]=Se[Te[ot]]:Te[ot]=(fe=Te[ot]).match(/\[[\s\S]/)?fe.replace(/^\[|\]$/g,""):fe.replace(/\\/g,"");return function(Le){var Oe,ze="";for(Oe=0;Oe<Wt;Oe++)ze+=Dt(Te[Oe])?Te[Oe].call(Le,X):Te[Oe];return ze}}(I),de[I](T)):T.localeData().invalidDate()}function wt(T,I){var X=5;function ot(Wt){return I.longDateFormat(Wt)||Wt}for(Ne.lastIndex=0;0<=X&&Ne.test(T);)T=T.replace(Ne,ot),Ne.lastIndex=0,X-=1;return T}var pe=/\d/,mt=/\d\d/,It=/\d{3}/,St=/\d{4}/,nt=/[+-]?\d{6}/,ue=/\d\d?/,Rt=/\d\d\d\d?/,dn=/\d\d\d\d\d\d?/,De=/\d{1,3}/,Ue=/\d{1,4}/,Ve=/[+-]?\d{1,6}/,Je=/\d+/,en=/[+-]?\d+/,Ae=/Z|[+-]\d\d:?\d\d/gi,qe=/Z|[+-]\d\d(?::?\d\d)?/gi,rn=/[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,je={};function xe(T,I,X){je[T]=Dt(I)?I:function(ot,Wt){return ot&&X?X:I}}function Ze(T,I){return Y(je,T)?je[T](I._strict,I._locale):new RegExp(pn(T.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(X,ot,Wt,fe,Te){return ot||Wt||fe||Te})))}function pn(T){return T.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var Qn={};function Xe(T,I){var X,ot=I;for(typeof T=="string"&&(T=[T]),M(I)&&(ot=function(Wt,fe){fe[I]=xt(Wt)}),X=0;X<T.length;X++)Qn[T[X]]=ot}function nn(T,I){Xe(T,function(X,ot,Wt,fe){Wt._w=Wt._w||{},I(X,Wt._w,Wt,fe)})}function Sr(T){return Dr(T)?366:365}function Dr(T){return T%4==0&&T%100!=0||T%400==0}te("Y",0,0,function(){var T=this.year();return T<=9999?""+T:"+"+T}),te(0,["YY",2],0,function(){return this.year()%100}),te(0,["YYYY",4],0,"year"),te(0,["YYYYY",5],0,"year"),te(0,["YYYYYY",6,!0],0,"year"),ae("year","y"),oe("year",1),xe("Y",en),xe("YY",ue,mt),xe("YYYY",Ue,St),xe("YYYYY",Ve,nt),xe("YYYYYY",Ve,nt),Xe(["YYYYY","YYYYYY"],0),Xe("YYYY",function(T,I){I[0]=T.length===2?k.parseTwoDigitYear(T):xt(T)}),Xe("YY",function(T,I){I[0]=k.parseTwoDigitYear(T)}),Xe("Y",function(T,I){I[0]=parseInt(T,10)}),k.parseTwoDigitYear=function(T){return xt(T)+(68<xt(T)?1900:2e3)};var yn,An=fn("FullYear",!0);function fn(T,I){return function(X){return X!=null?(Dn(this,T,X),k.updateOffset(this,I),this):wn(this,T)}}function wn(T,I){return T.isValid()?T._d["get"+(T._isUTC?"UTC":"")+I]():NaN}function Dn(T,I,X){T.isValid()&&!isNaN(X)&&(I==="FullYear"&&Dr(T.year())&&T.month()===1&&T.date()===29?T._d["set"+(T._isUTC?"UTC":"")+I](X,T.month(),gn(X,T.month())):T._d["set"+(T._isUTC?"UTC":"")+I](X))}function gn(T,I){if(isNaN(T)||isNaN(I))return NaN;var X=(I%12+12)%12;return T+=(I-X)/12,X===1?Dr(T)?29:28:31-X%7%2}yn=Array.prototype.indexOf?Array.prototype.indexOf:function(T){var I;for(I=0;I<this.length;++I)if(this[I]===T)return I;return-1},te("M",["MM",2],"Mo",function(){return this.month()+1}),te("MMM",0,0,function(T){return this.localeData().monthsShort(this,T)}),te("MMMM",0,0,function(T){return this.localeData().months(this,T)}),ae("month","M"),oe("month",8),xe("M",ue),xe("MM",ue,mt),xe("MMM",function(T,I){return I.monthsShortRegex(T)}),xe("MMMM",function(T,I){return I.monthsRegex(T)}),Xe(["M","MM"],function(T,I){I[1]=xt(T)-1}),Xe(["MMM","MMMM"],function(T,I,X,ot){var Wt=X._locale.monthsParse(T,ot,X._strict);Wt!=null?I[1]=Wt:K(X).invalidMonth=T});var Yn=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Ln="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Pr="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_");function Wn(T,I){var X;if(!T.isValid())return T;if(typeof I=="string"){if(/^\d+$/.test(I))I=xt(I);else if(!M(I=T.localeData().monthsParse(I)))return T}return X=Math.min(T.date(),gn(T.year(),I)),T._d["set"+(T._isUTC?"UTC":"")+"Month"](I,X),T}function Xn(T){return T!=null?(Wn(this,T),k.updateOffset(this,!0),this):wn(this,"Month")}var Kn=rn,Mn=rn;function Un(){function T(Te,Le){return Le.length-Te.length}var I,X,ot=[],Wt=[],fe=[];for(I=0;I<12;I++)X=Q([2e3,I]),ot.push(this.monthsShort(X,"")),Wt.push(this.months(X,"")),fe.push(this.months(X,"")),fe.push(this.monthsShort(X,""));for(ot.sort(T),Wt.sort(T),fe.sort(T),I=0;I<12;I++)ot[I]=pn(ot[I]),Wt[I]=pn(Wt[I]);for(I=0;I<24;I++)fe[I]=pn(fe[I]);this._monthsRegex=new RegExp("^("+fe.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+Wt.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+ot.join("|")+")","i")}function Bn(T){var I;if(T<100&&0<=T){var X=Array.prototype.slice.call(arguments);X[0]=T+400,I=new Date(Date.UTC.apply(null,X)),isFinite(I.getUTCFullYear())&&I.setUTCFullYear(T)}else I=new Date(Date.UTC.apply(null,arguments));return I}function vn(T,I,X){var ot=7+I-X;return-(7+Bn(T,0,ot).getUTCDay()-I)%7+ot-1}function Vn(T,I,X,ot,Wt){var fe,Te,Le=1+7*(I-1)+(7+X-ot)%7+vn(T,ot,Wt);return Te=Le<=0?Sr(fe=T-1)+Le:Le>Sr(T)?(fe=T+1,Le-Sr(T)):(fe=T,Le),{year:fe,dayOfYear:Te}}function sn(T,I,X){var ot,Wt,fe=vn(T.year(),I,X),Te=Math.floor((T.dayOfYear()-fe-1)/7)+1;return Te<1?ot=Te+Pn(Wt=T.year()-1,I,X):Te>Pn(T.year(),I,X)?(ot=Te-Pn(T.year(),I,X),Wt=T.year()+1):(Wt=T.year(),ot=Te),{week:ot,year:Wt}}function Pn(T,I,X){var ot=vn(T,I,X),Wt=vn(T+1,I,X);return(Sr(T)-ot+Wt)/7}function mn(T,I){return T.slice(I,7).concat(T.slice(0,I))}te("w",["ww",2],"wo","week"),te("W",["WW",2],"Wo","isoWeek"),ae("week","w"),ae("isoWeek","W"),oe("week",5),oe("isoWeek",5),xe("w",ue),xe("ww",ue,mt),xe("W",ue),xe("WW",ue,mt),nn(["w","ww","W","WW"],function(T,I,X,ot){I[ot.substr(0,1)]=xt(T)}),te("d",0,"do","day"),te("dd",0,0,function(T){return this.localeData().weekdaysMin(this,T)}),te("ddd",0,0,function(T){return this.localeData().weekdaysShort(this,T)}),te("dddd",0,0,function(T){return this.localeData().weekdays(this,T)}),te("e",0,0,"weekday"),te("E",0,0,"isoWeekday"),ae("day","d"),ae("weekday","e"),ae("isoWeekday","E"),oe("day",11),oe("weekday",11),oe("isoWeekday",11),xe("d",ue),xe("e",ue),xe("E",ue),xe("dd",function(T,I){return I.weekdaysMinRegex(T)}),xe("ddd",function(T,I){return I.weekdaysShortRegex(T)}),xe("dddd",function(T,I){return I.weekdaysRegex(T)}),nn(["dd","ddd","dddd"],function(T,I,X,ot){var Wt=X._locale.weekdaysParse(T,ot,X._strict);Wt!=null?I.d=Wt:K(X).invalidWeekday=T}),nn(["d","e","E"],function(T,I,X,ot){I[ot]=xt(T)});var Ca="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),uo="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Fi="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Fn=rn,ua=rn,Pi=rn;function Lr(){function T(Qe,En){return En.length-Qe.length}var I,X,ot,Wt,fe,Te=[],Le=[],Oe=[],ze=[];for(I=0;I<7;I++)X=Q([2e3,1]).day(I),ot=this.weekdaysMin(X,""),Wt=this.weekdaysShort(X,""),fe=this.weekdays(X,""),Te.push(ot),Le.push(Wt),Oe.push(fe),ze.push(ot),ze.push(Wt),ze.push(fe);for(Te.sort(T),Le.sort(T),Oe.sort(T),ze.sort(T),I=0;I<7;I++)Le[I]=pn(Le[I]),Oe[I]=pn(Oe[I]),ze[I]=pn(ze[I]);this._weekdaysRegex=new RegExp("^("+ze.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+Oe.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+Le.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+Te.join("|")+")","i")}function ti(){return this.hours()%12||12}function Zr(T,I){te(T,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),I)})}function Qr(T,I){return I._meridiemParse}te("H",["HH",2],0,"hour"),te("h",["hh",2],0,ti),te("k",["kk",2],0,function(){return this.hours()||24}),te("hmm",0,0,function(){return""+ti.apply(this)+he(this.minutes(),2)}),te("hmmss",0,0,function(){return""+ti.apply(this)+he(this.minutes(),2)+he(this.seconds(),2)}),te("Hmm",0,0,function(){return""+this.hours()+he(this.minutes(),2)}),te("Hmmss",0,0,function(){return""+this.hours()+he(this.minutes(),2)+he(this.seconds(),2)}),Zr("a",!0),Zr("A",!1),ae("hour","h"),oe("hour",13),xe("a",Qr),xe("A",Qr),xe("H",ue),xe("h",ue),xe("k",ue),xe("HH",ue,mt),xe("hh",ue,mt),xe("kk",ue,mt),xe("hmm",Rt),xe("hmmss",dn),xe("Hmm",Rt),xe("Hmmss",dn),Xe(["H","HH"],3),Xe(["k","kk"],function(T,I,X){var ot=xt(T);I[3]=ot===24?0:ot}),Xe(["a","A"],function(T,I,X){X._isPm=X._locale.isPM(T),X._meridiem=T}),Xe(["h","hh"],function(T,I,X){I[3]=xt(T),K(X).bigHour=!0}),Xe("hmm",function(T,I,X){var ot=T.length-2;I[3]=xt(T.substr(0,ot)),I[4]=xt(T.substr(ot)),K(X).bigHour=!0}),Xe("hmmss",function(T,I,X){var ot=T.length-4,Wt=T.length-2;I[3]=xt(T.substr(0,ot)),I[4]=xt(T.substr(ot,2)),I[5]=xt(T.substr(Wt)),K(X).bigHour=!0}),Xe("Hmm",function(T,I,X){var ot=T.length-2;I[3]=xt(T.substr(0,ot)),I[4]=xt(T.substr(ot))}),Xe("Hmmss",function(T,I,X){var ot=T.length-4,Wt=T.length-2;I[3]=xt(T.substr(0,ot)),I[4]=xt(T.substr(ot,2)),I[5]=xt(T.substr(Wt))});var jr,fi=fn("Hours",!0),di={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:Ln,monthsShort:Pr,week:{dow:0,doy:6},weekdays:Ca,weekdaysMin:Fi,weekdaysShort:uo,meridiemParse:/[ap]\.?m?\.?/i},cr={},Yr={};function ei(T){return T&&T.toLowerCase().replace("_","-")}function Kr(T){var I=null;if(!cr[T]&&S&&S.exports)try{I=jr._abbr,p(1748)("./"+T),Ti(I)}catch{}return cr[T]}function Ti(T,I){var X;return T&&((X=A(I)?Er(T):Ha(T,I))?jr=X:typeof console!="undefined"&&console.warn&&console.warn("Locale "+T+" not found. Did you forget to load it?")),jr._abbr}function Ha(T,I){if(I===null)return delete cr[T],null;var X,ot=di;if(I.abbr=T,cr[T]!=null)$("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."),ot=cr[T]._config;else if(I.parentLocale!=null)if(cr[I.parentLocale]!=null)ot=cr[I.parentLocale]._config;else{if((X=Kr(I.parentLocale))==null)return Yr[I.parentLocale]||(Yr[I.parentLocale]=[]),Yr[I.parentLocale].push({name:T,config:I}),null;ot=X._config}return cr[T]=new Kt(z(ot,I)),Yr[T]&&Yr[T].forEach(function(Wt){Ha(Wt.name,Wt.config)}),Ti(T),cr[T]}function Er(T){var I;if(T&&T._locale&&T._locale._abbr&&(T=T._locale._abbr),!T)return jr;if(!y(T)){if(I=Kr(T))return I;T=[T]}return function(X){for(var ot,Wt,fe,Te,Le=0;Le<X.length;){for(ot=(Te=ei(X[Le]).split("-")).length,Wt=(Wt=ei(X[Le+1]))?Wt.split("-"):null;0<ot;){if(fe=Kr(Te.slice(0,ot).join("-")))return fe;if(Wt&&Wt.length>=ot&&jt(Te,Wt,!0)>=ot-1)break;ot--}Le++}return jr}(T)}function Wa(T){var I,X=T._a;return X&&K(T).overflow===-2&&(I=X[1]<0||11<X[1]?1:X[2]<1||X[2]>gn(X[0],X[1])?2:X[3]<0||24<X[3]||X[3]===24&&(X[4]!==0||X[5]!==0||X[6]!==0)?3:X[4]<0||59<X[4]?4:X[5]<0||59<X[5]?5:X[6]<0||999<X[6]?6:-1,K(T)._overflowDayOfYear&&(I<0||2<I)&&(I=2),K(T)._overflowWeeks&&I===-1&&(I=7),K(T)._overflowWeekday&&I===-1&&(I=8),K(T).overflow=I),T}function Va(T,I,X){return T!=null?T:I!=null?I:X}function ra(T){var I,X,ot,Wt,fe,Te=[];if(!T._d){var Le,Oe;for(Le=T,Oe=new Date(k.now()),ot=Le._useUTC?[Oe.getUTCFullYear(),Oe.getUTCMonth(),Oe.getUTCDate()]:[Oe.getFullYear(),Oe.getMonth(),Oe.getDate()],T._w&&T._a[2]==null&&T._a[1]==null&&function(ze){var Qe,En,xn,fr,gr,Ir,ur,fa;if((Qe=ze._w).GG!=null||Qe.W!=null||Qe.E!=null)gr=1,Ir=4,En=Va(Qe.GG,ze._a[0],sn(zn(),1,4).year),xn=Va(Qe.W,1),((fr=Va(Qe.E,1))<1||7<fr)&&(fa=!0);else{gr=ze._locale._week.dow,Ir=ze._locale._week.doy;var Ms=sn(zn(),gr,Ir);En=Va(Qe.gg,ze._a[0],Ms.year),xn=Va(Qe.w,Ms.week),Qe.d!=null?((fr=Qe.d)<0||6<fr)&&(fa=!0):Qe.e!=null?(fr=Qe.e+gr,(Qe.e<0||6<Qe.e)&&(fa=!0)):fr=gr}xn<1||xn>Pn(En,gr,Ir)?K(ze)._overflowWeeks=!0:fa!=null?K(ze)._overflowWeekday=!0:(ur=Vn(En,xn,fr,gr,Ir),ze._a[0]=ur.year,ze._dayOfYear=ur.dayOfYear)}(T),T._dayOfYear!=null&&(fe=Va(T._a[0],ot[0]),(T._dayOfYear>Sr(fe)||T._dayOfYear===0)&&(K(T)._overflowDayOfYear=!0),X=Bn(fe,0,T._dayOfYear),T._a[1]=X.getUTCMonth(),T._a[2]=X.getUTCDate()),I=0;I<3&&T._a[I]==null;++I)T._a[I]=Te[I]=ot[I];for(;I<7;I++)T._a[I]=Te[I]=T._a[I]==null?I===2?1:0:T._a[I];T._a[3]===24&&T._a[4]===0&&T._a[5]===0&&T._a[6]===0&&(T._nextDay=!0,T._a[3]=0),T._d=(T._useUTC?Bn:function(ze,Qe,En,xn,fr,gr,Ir){var ur;return ze<100&&0<=ze?(ur=new Date(ze+400,Qe,En,xn,fr,gr,Ir),isFinite(ur.getFullYear())&&ur.setFullYear(ze)):ur=new Date(ze,Qe,En,xn,fr,gr,Ir),ur}).apply(null,Te),Wt=T._useUTC?T._d.getUTCDay():T._d.getDay(),T._tzm!=null&&T._d.setUTCMinutes(T._d.getUTCMinutes()-T._tzm),T._nextDay&&(T._a[3]=24),T._w&&T._w.d!==void 0&&T._w.d!==Wt&&(K(T).weekdayMismatch=!0)}}var un=/^\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=/^\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)?)?$/,we=/Z|[+-]\d\d(?::?\d\d)?/,Be=[["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}/]],sr=[["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/]],Ut=/^\/?Date\((\-?\d+)/i;function Ea(T){var I,X,ot,Wt,fe,Te,Le=T._i,Oe=un.exec(Le)||On.exec(Le);if(Oe){for(K(T).iso=!0,I=0,X=Be.length;I<X;I++)if(Be[I][1].exec(Oe[1])){Wt=Be[I][0],ot=Be[I][2]!==!1;break}if(Wt==null)return void(T._isValid=!1);if(Oe[3]){for(I=0,X=sr.length;I<X;I++)if(sr[I][1].exec(Oe[3])){fe=(Oe[2]||" ")+sr[I][0];break}if(fe==null)return void(T._isValid=!1)}if(!ot&&fe!=null)return void(T._isValid=!1);if(Oe[4]){if(!we.exec(Oe[4]))return void(T._isValid=!1);Te="Z"}T._f=Wt+(fe||"")+(Te||""),Qo(T)}else T._isValid=!1}var Gt=/^(?:(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}))$/,zr={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Zo(T){var I,X,ot,Wt=Gt.exec(T._i.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,""));if(Wt){var fe=function(Te,Le,Oe,ze,Qe,En){var xn=[function(fr){var gr=parseInt(fr,10);return gr<=49?2e3+gr:gr<=999?1900+gr:gr}(Te),Pr.indexOf(Le),parseInt(Oe,10),parseInt(ze,10),parseInt(Qe,10)];return En&&xn.push(parseInt(En,10)),xn}(Wt[4],Wt[3],Wt[2],Wt[5],Wt[6],Wt[7]);if(X=fe,ot=T,(I=Wt[1])&&uo.indexOf(I)!==new Date(X[0],X[1],X[2]).getDay()&&(K(ot).weekdayMismatch=!0,!(ot._isValid=!1)))return;T._a=fe,T._tzm=function(Te,Le,Oe){if(Te)return zr[Te];if(Le)return 0;var ze=parseInt(Oe,10),Qe=ze%100;return(ze-Qe)/100*60+Qe}(Wt[8],Wt[9],Wt[10]),T._d=Bn.apply(null,T._a),T._d.setUTCMinutes(T._d.getUTCMinutes()-T._tzm),K(T).rfc2822=!0}else T._isValid=!1}function Qo(T){if(T._f!==k.ISO_8601)if(T._f!==k.RFC_2822){T._a=[],K(T).empty=!0;var I,X,ot,Wt,fe,Te,Le,Oe,ze=""+T._i,Qe=ze.length,En=0;for(ot=wt(T._f,T._locale).match(be)||[],I=0;I<ot.length;I++)Wt=ot[I],(X=(ze.match(Ze(Wt,T))||[])[0])&&(0<(fe=ze.substr(0,ze.indexOf(X))).length&&K(T).unusedInput.push(fe),ze=ze.slice(ze.indexOf(X)+X.length),En+=X.length),Se[Wt]?(X?K(T).empty=!1:K(T).unusedTokens.push(Wt),Te=Wt,Oe=T,(Le=X)!=null&&Y(Qn,Te)&&Qn[Te](Le,Oe._a,Oe,Te)):T._strict&&!X&&K(T).unusedTokens.push(Wt);K(T).charsLeftOver=Qe-En,0<ze.length&&K(T).unusedInput.push(ze),T._a[3]<=12&&K(T).bigHour===!0&&0<T._a[3]&&(K(T).bigHour=void 0),K(T).parsedDateParts=T._a.slice(0),K(T).meridiem=T._meridiem,T._a[3]=function(xn,fr,gr){var Ir;return gr==null?fr:xn.meridiemHour!=null?xn.meridiemHour(fr,gr):(xn.isPM!=null&&((Ir=xn.isPM(gr))&&fr<12&&(fr+=12),Ir||fr!==12||(fr=0)),fr)}(T._locale,T._a[3],T._meridiem),ra(T),Wa(T)}else Zo(T);else Ea(T)}function Ko(T){var I,X,ot,Wt,fe=T._i,Te=T._f;return T._locale=T._locale||Er(T._l),fe===null||Te===void 0&&fe===""?tt({nullInput:!0}):(typeof fe=="string"&&(T._i=fe=T._locale.preparse(fe)),Zt(fe)?new At(Wa(fe)):(R(fe)?T._d=fe:y(Te)?function(Le){var Oe,ze,Qe,En,xn;if(Le._f.length===0)return K(Le).invalidFormat=!0,Le._d=new Date(NaN);for(En=0;En<Le._f.length;En++)xn=0,Oe=at({},Le),Le._useUTC!=null&&(Oe._useUTC=Le._useUTC),Oe._f=Le._f[En],Qo(Oe),gt(Oe)&&(xn+=K(Oe).charsLeftOver,xn+=10*K(Oe).unusedTokens.length,K(Oe).score=xn,(Qe==null||xn<Qe)&&(Qe=xn,ze=Oe));G(Le,ze||Oe)}(T):Te?Qo(T):A(X=(I=T)._i)?I._d=new Date(k.now()):R(X)?I._d=new Date(X.valueOf()):typeof X=="string"?(ot=I,(Wt=Ut.exec(ot._i))===null?(Ea(ot),ot._isValid===!1&&(delete ot._isValid,Zo(ot),ot._isValid===!1&&(delete ot._isValid,k.createFromInputFallback(ot)))):ot._d=new Date(+Wt[1])):y(X)?(I._a=B(X.slice(0),function(Le){return parseInt(Le,10)}),ra(I)):C(X)?function(Le){if(!Le._d){var Oe=Pe(Le._i);Le._a=B([Oe.year,Oe.month,Oe.day||Oe.date,Oe.hour,Oe.minute,Oe.second,Oe.millisecond],function(ze){return ze&&parseInt(ze,10)}),ra(Le)}}(I):M(X)?I._d=new Date(X):k.createFromInputFallback(I),gt(T)||(T._d=null),T))}function lo(T,I,X,ot,Wt){var fe,Te={};return X!==!0&&X!==!1||(ot=X,X=void 0),(C(T)&&function(Le){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(Le).length===0;var Oe;for(Oe in Le)if(Le.hasOwnProperty(Oe))return!1;return!0}(T)||y(T)&&T.length===0)&&(T=void 0),Te._isAMomentObject=!0,Te._useUTC=Te._isUTC=Wt,Te._l=X,Te._i=T,Te._f=I,Te._strict=ot,(fe=new At(Wa(Ko(Te))))._nextDay&&(fe.add(1,"d"),fe._nextDay=void 0),fe}function zn(T,I,X,ot){return lo(T,I,X,ot,!1)}k.createFromInputFallback=lt("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(T){T._d=new Date(T._i+(T._useUTC?" UTC":""))}),k.ISO_8601=function(){},k.RFC_2822=function(){};var Ar=lt("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var T=zn.apply(null,arguments);return this.isValid()&&T.isValid()?T<this?this:T:tt()}),pi=lt("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var T=zn.apply(null,arguments);return this.isValid()&&T.isValid()?this<T?this:T:tt()});function $r(T,I){var X,ot;if(I.length===1&&y(I[0])&&(I=I[0]),!I.length)return zn();for(X=I[0],ot=1;ot<I.length;++ot)I[ot].isValid()&&!I[ot][T](X)||(X=I[ot]);return X}var Hr=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Si(T){var I=Pe(T),X=I.year||0,ot=I.quarter||0,Wt=I.month||0,fe=I.week||I.isoWeek||0,Te=I.day||0,Le=I.hour||0,Oe=I.minute||0,ze=I.second||0,Qe=I.millisecond||0;this._isValid=function(En){for(var xn in En)if(yn.call(Hr,xn)===-1||En[xn]!=null&&isNaN(En[xn]))return!1;for(var fr=!1,gr=0;gr<Hr.length;++gr)if(En[Hr[gr]]){if(fr)return!1;parseFloat(En[Hr[gr]])!==xt(En[Hr[gr]])&&(fr=!0)}return!0}(I),this._milliseconds=+Qe+1e3*ze+6e4*Oe+1e3*Le*60*60,this._days=+Te+7*fe,this._months=+Wt+3*ot+12*X,this._data={},this._locale=Er(),this._bubble()}function ji(T){return T instanceof Si}function Mr(T){return T<0?-1*Math.round(-1*T):Math.round(T)}function ni(T,I){te(T,0,0,function(){var X=this.utcOffset(),ot="+";return X<0&&(X=-X,ot="-"),ot+he(~~(X/60),2)+I+he(~~X%60,2)})}ni("Z",":"),ni("ZZ",""),xe("Z",qe),xe("ZZ",qe),Xe(["Z","ZZ"],function(T,I,X){X._useUTC=!0,X._tzm=pr(qe,T)});var gi=/([\+\-]|\d\d)/gi;function pr(T,I){var X=(I||"").match(T);if(X===null)return null;var ot=((X[X.length-1]||[])+"").match(gi)||["-",0,0],Wt=60*ot[1]+xt(ot[2]);return Wt===0?0:ot[0]==="+"?Wt:-Wt}function Xi(T,I){var X,ot;return I._isUTC?(X=I.clone(),ot=(Zt(T)||R(T)?T.valueOf():zn(T).valueOf())-X.valueOf(),X._d.setTime(X._d.valueOf()+ot),k.updateOffset(X,!1),X):zn(T).local()}function Yi(T){return 15*-Math.round(T._d.getTimezoneOffset()/15)}function si(){return!!this.isValid()&&this._isUTC&&this._offset===0}k.updateOffset=function(){};var Ga=/^(\-|\+)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/,Ai=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Ft(T,I){var X,ot,Wt,fe=T,Te=null;return ji(T)?fe={ms:T._milliseconds,d:T._days,M:T._months}:M(T)?(fe={},I?fe[I]=T:fe.milliseconds=T):(Te=Ga.exec(T))?(X=Te[1]==="-"?-1:1,fe={y:0,d:xt(Te[2])*X,h:xt(Te[3])*X,m:xt(Te[4])*X,s:xt(Te[5])*X,ms:xt(Mr(1e3*Te[6]))*X}):(Te=Ai.exec(T))?(X=Te[1]==="-"?-1:1,fe={y:$e(Te[2],X),M:$e(Te[3],X),w:$e(Te[4],X),d:$e(Te[5],X),h:$e(Te[6],X),m:$e(Te[7],X),s:$e(Te[8],X)}):fe==null?fe={}:typeof fe=="object"&&("from"in fe||"to"in fe)&&(Wt=function(Le,Oe){var ze;return Le.isValid()&&Oe.isValid()?(Oe=Xi(Oe,Le),Le.isBefore(Oe)?ze=Ie(Le,Oe):((ze=Ie(Oe,Le)).milliseconds=-ze.milliseconds,ze.months=-ze.months),ze):{milliseconds:0,months:0}}(zn(fe.from),zn(fe.to)),(fe={}).ms=Wt.milliseconds,fe.M=Wt.months),ot=new Si(fe),ji(T)&&Y(T,"_locale")&&(ot._locale=T._locale),ot}function $e(T,I){var X=T&&parseFloat(T.replace(",","."));return(isNaN(X)?0:X)*I}function Ie(T,I){var X={};return X.months=I.month()-T.month()+12*(I.year()-T.year()),T.clone().add(X.months,"M").isAfter(I)&&--X.months,X.milliseconds=+I-+T.clone().add(X.months,"M"),X}function hr(T,I){return function(X,ot){var Wt;return ot===null||isNaN(+ot)||($(I,"moment()."+I+"(period, number) is deprecated. Please use moment()."+I+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),Wt=X,X=ot,ot=Wt),Br(this,Ft(X=typeof X=="string"?+X:X,ot),T),this}}function Br(T,I,X,ot){var Wt=I._milliseconds,fe=Mr(I._days),Te=Mr(I._months);T.isValid()&&(ot=ot==null||ot,Te&&Wn(T,wn(T,"Month")+Te*X),fe&&Dn(T,"Date",wn(T,"Date")+fe*X),Wt&&T._d.setTime(T._d.valueOf()+Wt*X),ot&&k.updateOffset(T,fe||Te))}Ft.fn=Si.prototype,Ft.invalid=function(){return Ft(NaN)};var ci=hr(1,"add"),yi=hr(-1,"subtract");function Sa(T,I){var X=12*(I.year()-T.year())+(I.month()-T.month()),ot=T.clone().add(X,"months");return-(X+(I-ot<0?(I-ot)/(ot-T.clone().add(X-1,"months")):(I-ot)/(T.clone().add(X+1,"months")-ot)))||0}function Jr(T){var I;return T===void 0?this._locale._abbr:((I=Er(T))!=null&&(this._locale=I),this)}k.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",k.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var zi=lt("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(T){return T===void 0?this.localeData():this.locale(T)});function Aa(){return this._locale}var cc=126227808e5;function ho(T,I){return(T%I+I)%I}function Uc(T,I,X){return T<100&&0<=T?new Date(T+400,I,X)-cc:new Date(T,I,X).valueOf()}function Ui(T,I,X){return T<100&&0<=T?Date.UTC(T+400,I,X)-cc:Date.UTC(T,I,X)}function ri(T,I){te(0,[T,T.length],0,I)}function Mu(T,I,X,ot,Wt){var fe;return T==null?sn(this,ot,Wt).year:((fe=Pn(T,ot,Wt))<I&&(I=fe),function(Te,Le,Oe,ze,Qe){var En=Vn(Te,Le,Oe,ze,Qe),xn=Bn(En.year,0,En.dayOfYear);return this.year(xn.getUTCFullYear()),this.month(xn.getUTCMonth()),this.date(xn.getUTCDate()),this}.call(this,T,I,X,ot,Wt))}te(0,["gg",2],0,function(){return this.weekYear()%100}),te(0,["GG",2],0,function(){return this.isoWeekYear()%100}),ri("gggg","weekYear"),ri("ggggg","weekYear"),ri("GGGG","isoWeekYear"),ri("GGGGG","isoWeekYear"),ae("weekYear","gg"),ae("isoWeekYear","GG"),oe("weekYear",1),oe("isoWeekYear",1),xe("G",en),xe("g",en),xe("GG",ue,mt),xe("gg",ue,mt),xe("GGGG",Ue,St),xe("gggg",Ue,St),xe("GGGGG",Ve,nt),xe("ggggg",Ve,nt),nn(["gggg","ggggg","GGGG","GGGGG"],function(T,I,X,ot){I[ot.substr(0,2)]=xt(T)}),nn(["gg","GG"],function(T,I,X,ot){I[ot]=k.parseTwoDigitYear(T)}),te("Q",0,"Qo","quarter"),ae("quarter","Q"),oe("quarter",7),xe("Q",pe),Xe("Q",function(T,I){I[1]=3*(xt(T)-1)}),te("D",["DD",2],"Do","date"),ae("date","D"),oe("date",9),xe("D",ue),xe("DD",ue,mt),xe("Do",function(T,I){return T?I._dayOfMonthOrdinalParse||I._ordinalParse:I._dayOfMonthOrdinalParseLenient}),Xe(["D","DD"],2),Xe("Do",function(T,I){I[2]=xt(T.match(ue)[0])});var Nu=fn("Date",!0);te("DDD",["DDDD",3],"DDDo","dayOfYear"),ae("dayOfYear","DDD"),oe("dayOfYear",4),xe("DDD",De),xe("DDDD",It),Xe(["DDD","DDDD"],function(T,I,X){X._dayOfYear=xt(T)}),te("m",["mm",2],0,"minute"),ae("minute","m"),oe("minute",14),xe("m",ue),xe("mm",ue,mt),Xe(["m","mm"],4);var Du=fn("Minutes",!1);te("s",["ss",2],0,"second"),ae("second","s"),oe("second",15),xe("s",ue),xe("ss",ue,mt),Xe(["s","ss"],5);var Xa,Lu=fn("Seconds",!1);for(te("S",0,0,function(){return~~(this.millisecond()/100)}),te(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),te(0,["SSS",3],0,"millisecond"),te(0,["SSSS",4],0,function(){return 10*this.millisecond()}),te(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),te(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),te(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),te(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),te(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),ae("millisecond","ms"),oe("millisecond",16),xe("S",De,pe),xe("SS",De,mt),xe("SSS",De,It),Xa="SSSS";Xa.length<=9;Xa+="S")xe(Xa,Je);function Bu(T,I){I[6]=xt(1e3*("0."+T))}for(Xa="S";Xa.length<=9;Xa+="S")Xe(Xa,Bu);var Za=fn("Milliseconds",!1);te("z",0,0,"zoneAbbr"),te("zz",0,0,"zoneName");var Ye=At.prototype;function Zl(T){return T}Ye.add=ci,Ye.calendar=function(T,I){var X=T||zn(),ot=Xi(X,this).startOf("day"),Wt=k.calendarFormat(this,ot)||"sameElse",fe=I&&(Dt(I[Wt])?I[Wt].call(this,X):I[Wt]);return this.format(fe||this.localeData().calendar(Wt,this,zn(X)))},Ye.clone=function(){return new At(this)},Ye.diff=function(T,I,X){var ot,Wt,fe;if(!this.isValid())return NaN;if(!(ot=Xi(T,this)).isValid())return NaN;switch(Wt=6e4*(ot.utcOffset()-this.utcOffset()),I=Ee(I)){case"year":fe=Sa(this,ot)/12;break;case"month":fe=Sa(this,ot);break;case"quarter":fe=Sa(this,ot)/3;break;case"second":fe=(this-ot)/1e3;break;case"minute":fe=(this-ot)/6e4;break;case"hour":fe=(this-ot)/36e5;break;case"day":fe=(this-ot-Wt)/864e5;break;case"week":fe=(this-ot-Wt)/6048e5;break;default:fe=this-ot}return X?fe:zt(fe)},Ye.endOf=function(T){var I;if((T=Ee(T))===void 0||T==="millisecond"||!this.isValid())return this;var X=this._isUTC?Ui:Uc;switch(T){case"year":I=X(this.year()+1,0,1)-1;break;case"quarter":I=X(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":I=X(this.year(),this.month()+1,1)-1;break;case"week":I=X(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":I=X(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":I=X(this.year(),this.month(),this.date()+1)-1;break;case"hour":I=this._d.valueOf(),I+=36e5-ho(I+(this._isUTC?0:6e4*this.utcOffset()),36e5)-1;break;case"minute":I=this._d.valueOf(),I+=6e4-ho(I,6e4)-1;break;case"second":I=this._d.valueOf(),I+=1e3-ho(I,1e3)-1}return this._d.setTime(I),k.updateOffset(this,!0),this},Ye.format=function(T){T||(T=this.isUtc()?k.defaultFormatUtc:k.defaultFormat);var I=_e(this,T);return this.localeData().postformat(I)},Ye.from=function(T,I){return this.isValid()&&(Zt(T)&&T.isValid()||zn(T).isValid())?Ft({to:this,from:T}).locale(this.locale()).humanize(!I):this.localeData().invalidDate()},Ye.fromNow=function(T){return this.from(zn(),T)},Ye.to=function(T,I){return this.isValid()&&(Zt(T)&&T.isValid()||zn(T).isValid())?Ft({from:this,to:T}).locale(this.locale()).humanize(!I):this.localeData().invalidDate()},Ye.toNow=function(T){return this.to(zn(),T)},Ye.get=function(T){return Dt(this[T=Ee(T)])?this[T]():this},Ye.invalidAt=function(){return K(this).overflow},Ye.isAfter=function(T,I){var X=Zt(T)?T:zn(T);return!(!this.isValid()||!X.isValid())&&((I=Ee(I)||"millisecond")==="millisecond"?this.valueOf()>X.valueOf():X.valueOf()<this.clone().startOf(I).valueOf())},Ye.isBefore=function(T,I){var X=Zt(T)?T:zn(T);return!(!this.isValid()||!X.isValid())&&((I=Ee(I)||"millisecond")==="millisecond"?this.valueOf()<X.valueOf():this.clone().endOf(I).valueOf()<X.valueOf())},Ye.isBetween=function(T,I,X,ot){var Wt=Zt(T)?T:zn(T),fe=Zt(I)?I:zn(I);return!!(this.isValid()&&Wt.isValid()&&fe.isValid())&&((ot=ot||"()")[0]==="("?this.isAfter(Wt,X):!this.isBefore(Wt,X))&&(ot[1]===")"?this.isBefore(fe,X):!this.isAfter(fe,X))},Ye.isSame=function(T,I){var X,ot=Zt(T)?T:zn(T);return!(!this.isValid()||!ot.isValid())&&((I=Ee(I)||"millisecond")==="millisecond"?this.valueOf()===ot.valueOf():(X=ot.valueOf(),this.clone().startOf(I).valueOf()<=X&&X<=this.clone().endOf(I).valueOf()))},Ye.isSameOrAfter=function(T,I){return this.isSame(T,I)||this.isAfter(T,I)},Ye.isSameOrBefore=function(T,I){return this.isSame(T,I)||this.isBefore(T,I)},Ye.isValid=function(){return gt(this)},Ye.lang=zi,Ye.locale=Jr,Ye.localeData=Aa,Ye.max=pi,Ye.min=Ar,Ye.parsingFlags=function(){return G({},K(this))},Ye.set=function(T,I){if(typeof T=="object")for(var X=function(Wt){var fe=[];for(var Te in Wt)fe.push({unit:Te,priority:le[Te]});return fe.sort(function(Le,Oe){return Le.priority-Oe.priority}),fe}(T=Pe(T)),ot=0;ot<X.length;ot++)this[X[ot].unit](T[X[ot].unit]);else if(Dt(this[T=Ee(T)]))return this[T](I);return this},Ye.startOf=function(T){var I;if((T=Ee(T))===void 0||T==="millisecond"||!this.isValid())return this;var X=this._isUTC?Ui:Uc;switch(T){case"year":I=X(this.year(),0,1);break;case"quarter":I=X(this.year(),this.month()-this.month()%3,1);break;case"month":I=X(this.year(),this.month(),1);break;case"week":I=X(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":I=X(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":I=X(this.year(),this.month(),this.date());break;case"hour":I=this._d.valueOf(),I-=ho(I+(this._isUTC?0:6e4*this.utcOffset()),36e5);break;case"minute":I=this._d.valueOf(),I-=ho(I,6e4);break;case"second":I=this._d.valueOf(),I-=ho(I,1e3)}return this._d.setTime(I),k.updateOffset(this,!0),this},Ye.subtract=yi,Ye.toArray=function(){var T=this;return[T.year(),T.month(),T.date(),T.hour(),T.minute(),T.second(),T.millisecond()]},Ye.toObject=function(){var T=this;return{years:T.year(),months:T.month(),date:T.date(),hours:T.hours(),minutes:T.minutes(),seconds:T.seconds(),milliseconds:T.milliseconds()}},Ye.toDate=function(){return new Date(this.valueOf())},Ye.toISOString=function(T){if(!this.isValid())return null;var I=T!==!0,X=I?this.clone().utc():this;return X.year()<0||9999<X.year()?_e(X,I?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):Dt(Date.prototype.toISOString)?I?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",_e(X,"Z")):_e(X,I?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},Ye.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var T="moment",I="";this.isLocal()||(T=this.utcOffset()===0?"moment.utc":"moment.parseZone",I="Z");var X="["+T+'("]',ot=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",Wt=I+'[")]';return this.format(X+ot+"-MM-DD[T]HH:mm:ss.SSS"+Wt)},Ye.toJSON=function(){return this.isValid()?this.toISOString():null},Ye.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},Ye.unix=function(){return Math.floor(this.valueOf()/1e3)},Ye.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},Ye.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},Ye.year=An,Ye.isLeapYear=function(){return Dr(this.year())},Ye.weekYear=function(T){return Mu.call(this,T,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},Ye.isoWeekYear=function(T){return Mu.call(this,T,this.isoWeek(),this.isoWeekday(),1,4)},Ye.quarter=Ye.quarters=function(T){return T==null?Math.ceil((this.month()+1)/3):this.month(3*(T-1)+this.month()%3)},Ye.month=Xn,Ye.daysInMonth=function(){return gn(this.year(),this.month())},Ye.week=Ye.weeks=function(T){var I=this.localeData().week(this);return T==null?I:this.add(7*(T-I),"d")},Ye.isoWeek=Ye.isoWeeks=function(T){var I=sn(this,1,4).week;return T==null?I:this.add(7*(T-I),"d")},Ye.weeksInYear=function(){var T=this.localeData()._week;return Pn(this.year(),T.dow,T.doy)},Ye.isoWeeksInYear=function(){return Pn(this.year(),1,4)},Ye.date=Nu,Ye.day=Ye.days=function(T){if(!this.isValid())return T!=null?this:NaN;var I,X,ot=this._isUTC?this._d.getUTCDay():this._d.getDay();return T!=null?(I=T,X=this.localeData(),T=typeof I!="string"?I:isNaN(I)?typeof(I=X.weekdaysParse(I))=="number"?I:null:parseInt(I,10),this.add(T-ot,"d")):ot},Ye.weekday=function(T){if(!this.isValid())return T!=null?this:NaN;var I=(this.day()+7-this.localeData()._week.dow)%7;return T==null?I:this.add(T-I,"d")},Ye.isoWeekday=function(T){if(!this.isValid())return T!=null?this:NaN;if(T==null)return this.day()||7;var I,X,ot=(I=T,X=this.localeData(),typeof I=="string"?X.weekdaysParse(I)%7||7:isNaN(I)?null:I);return this.day(this.day()%7?ot:ot-7)},Ye.dayOfYear=function(T){var I=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return T==null?I:this.add(T-I,"d")},Ye.hour=Ye.hours=fi,Ye.minute=Ye.minutes=Du,Ye.second=Ye.seconds=Lu,Ye.millisecond=Ye.milliseconds=Za,Ye.utcOffset=function(T,I,X){var ot,Wt=this._offset||0;if(!this.isValid())return T!=null?this:NaN;if(T==null)return this._isUTC?Wt:Yi(this);if(typeof T=="string"){if((T=pr(qe,T))===null)return this}else Math.abs(T)<16&&!X&&(T*=60);return!this._isUTC&&I&&(ot=Yi(this)),this._offset=T,this._isUTC=!0,ot!=null&&this.add(ot,"m"),Wt!==T&&(!I||this._changeInProgress?Br(this,Ft(T-Wt,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,k.updateOffset(this,!0),this._changeInProgress=null)),this},Ye.utc=function(T){return this.utcOffset(0,T)},Ye.local=function(T){return this._isUTC&&(this.utcOffset(0,T),this._isUTC=!1,T&&this.subtract(Yi(this),"m")),this},Ye.parseZone=function(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var T=pr(Ae,this._i);T!=null?this.utcOffset(T):this.utcOffset(0,!0)}return this},Ye.hasAlignedHourOffset=function(T){return!!this.isValid()&&(T=T?zn(T).utcOffset():0,(this.utcOffset()-T)%60==0)},Ye.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},Ye.isLocal=function(){return!!this.isValid()&&!this._isUTC},Ye.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},Ye.isUtc=si,Ye.isUTC=si,Ye.zoneAbbr=function(){return this._isUTC?"UTC":""},Ye.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},Ye.dates=lt("dates accessor is deprecated. Use date instead.",Nu),Ye.months=lt("months accessor is deprecated. Use month instead",Xn),Ye.years=lt("years accessor is deprecated. Use year instead",An),Ye.zone=lt("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function(T,I){return T!=null?(typeof T!="string"&&(T=-T),this.utcOffset(T,I),this):-this.utcOffset()}),Ye.isDSTShifted=lt("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){if(!A(this._isDSTShifted))return this._isDSTShifted;var T={};if(at(T,this),(T=Ko(T))._a){var I=T._isUTC?Q(T._a):zn(T._a);this._isDSTShifted=this.isValid()&&0<jt(T._a,I.toArray())}else this._isDSTShifted=!1;return this._isDSTShifted});var Or=Kt.prototype;function qc(T,I,X,ot){var Wt=Er(),fe=Q().set(ot,I);return Wt[X](fe,T)}function $c(T,I,X){if(M(T)&&(I=T,T=void 0),T=T||"",I!=null)return qc(T,I,X,"month");var ot,Wt=[];for(ot=0;ot<12;ot++)Wt[ot]=qc(T,ot,X,"month");return Wt}function Ou(T,I,X,ot){typeof T=="boolean"?M(I)&&(X=I,I=void 0):(I=T,T=!1,M(X=I)&&(X=I,I=void 0)),I=I||"";var Wt,fe=Er(),Te=T?fe._week.dow:0;if(X!=null)return qc(I,(X+Te)%7,ot,"day");var Le=[];for(Wt=0;Wt<7;Wt++)Le[Wt]=qc(I,(Wt+Te)%7,ot,"day");return Le}Or.calendar=function(T,I,X){var ot=this._calendar[T]||this._calendar.sameElse;return Dt(ot)?ot.call(I,X):ot},Or.longDateFormat=function(T){var I=this._longDateFormat[T],X=this._longDateFormat[T.toUpperCase()];return I||!X?I:(this._longDateFormat[T]=X.replace(/MMMM|MM|DD|dddd/g,function(ot){return ot.slice(1)}),this._longDateFormat[T])},Or.invalidDate=function(){return this._invalidDate},Or.ordinal=function(T){return this._ordinal.replace("%d",T)},Or.preparse=Zl,Or.postformat=Zl,Or.relativeTime=function(T,I,X,ot){var Wt=this._relativeTime[X];return Dt(Wt)?Wt(T,I,X,ot):Wt.replace(/%d/i,T)},Or.pastFuture=function(T,I){var X=this._relativeTime[0<T?"future":"past"];return Dt(X)?X(I):X.replace(/%s/i,I)},Or.set=function(T){var I,X;for(X in T)Dt(I=T[X])?this[X]=I:this["_"+X]=I;this._config=T,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},Or.months=function(T,I){return T?y(this._months)?this._months[T.month()]:this._months[(this._months.isFormat||Yn).test(I)?"format":"standalone"][T.month()]:y(this._months)?this._months:this._months.standalone},Or.monthsShort=function(T,I){return T?y(this._monthsShort)?this._monthsShort[T.month()]:this._monthsShort[Yn.test(I)?"format":"standalone"][T.month()]:y(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},Or.monthsParse=function(T,I,X){var ot,Wt,fe;if(this._monthsParseExact)return function(Te,Le,Oe){var ze,Qe,En,xn=Te.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],ze=0;ze<12;++ze)En=Q([2e3,ze]),this._shortMonthsParse[ze]=this.monthsShort(En,"").toLocaleLowerCase(),this._longMonthsParse[ze]=this.months(En,"").toLocaleLowerCase();return Oe?Le==="MMM"?(Qe=yn.call(this._shortMonthsParse,xn))!==-1?Qe:null:(Qe=yn.call(this._longMonthsParse,xn))!==-1?Qe:null:Le==="MMM"?(Qe=yn.call(this._shortMonthsParse,xn))!==-1||(Qe=yn.call(this._longMonthsParse,xn))!==-1?Qe:null:(Qe=yn.call(this._longMonthsParse,xn))!==-1||(Qe=yn.call(this._shortMonthsParse,xn))!==-1?Qe:null}.call(this,T,I,X);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),ot=0;ot<12;ot++)if(Wt=Q([2e3,ot]),X&&!this._longMonthsParse[ot]&&(this._longMonthsParse[ot]=new RegExp("^"+this.months(Wt,"").replace(".","")+"$","i"),this._shortMonthsParse[ot]=new RegExp("^"+this.monthsShort(Wt,"").replace(".","")+"$","i")),X||this._monthsParse[ot]||(fe="^"+this.months(Wt,"")+"|^"+this.monthsShort(Wt,""),this._monthsParse[ot]=new RegExp(fe.replace(".",""),"i")),X&&I==="MMMM"&&this._longMonthsParse[ot].test(T)||X&&I==="MMM"&&this._shortMonthsParse[ot].test(T)||!X&&this._monthsParse[ot].test(T))return ot},Or.monthsRegex=function(T){return this._monthsParseExact?(Y(this,"_monthsRegex")||Un.call(this),T?this._monthsStrictRegex:this._monthsRegex):(Y(this,"_monthsRegex")||(this._monthsRegex=Mn),this._monthsStrictRegex&&T?this._monthsStrictRegex:this._monthsRegex)},Or.monthsShortRegex=function(T){return this._monthsParseExact?(Y(this,"_monthsRegex")||Un.call(this),T?this._monthsShortStrictRegex:this._monthsShortRegex):(Y(this,"_monthsShortRegex")||(this._monthsShortRegex=Kn),this._monthsShortStrictRegex&&T?this._monthsShortStrictRegex:this._monthsShortRegex)},Or.week=function(T){return sn(T,this._week.dow,this._week.doy).week},Or.firstDayOfYear=function(){return this._week.doy},Or.firstDayOfWeek=function(){return this._week.dow},Or.weekdays=function(T,I){var X=y(this._weekdays)?this._weekdays:this._weekdays[T&&T!==!0&&this._weekdays.isFormat.test(I)?"format":"standalone"];return T===!0?mn(X,this._week.dow):T?X[T.day()]:X},Or.weekdaysMin=function(T){return T===!0?mn(this._weekdaysMin,this._week.dow):T?this._weekdaysMin[T.day()]:this._weekdaysMin},Or.weekdaysShort=function(T){return T===!0?mn(this._weekdaysShort,this._week.dow):T?this._weekdaysShort[T.day()]:this._weekdaysShort},Or.weekdaysParse=function(T,I,X){var ot,Wt,fe;if(this._weekdaysParseExact)return function(Te,Le,Oe){var ze,Qe,En,xn=Te.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],ze=0;ze<7;++ze)En=Q([2e3,1]).day(ze),this._minWeekdaysParse[ze]=this.weekdaysMin(En,"").toLocaleLowerCase(),this._shortWeekdaysParse[ze]=this.weekdaysShort(En,"").toLocaleLowerCase(),this._weekdaysParse[ze]=this.weekdays(En,"").toLocaleLowerCase();return Oe?Le==="dddd"?(Qe=yn.call(this._weekdaysParse,xn))!==-1?Qe:null:Le==="ddd"?(Qe=yn.call(this._shortWeekdaysParse,xn))!==-1?Qe:null:(Qe=yn.call(this._minWeekdaysParse,xn))!==-1?Qe:null:Le==="dddd"?(Qe=yn.call(this._weekdaysParse,xn))!==-1||(Qe=yn.call(this._shortWeekdaysParse,xn))!==-1||(Qe=yn.call(this._minWeekdaysParse,xn))!==-1?Qe:null:Le==="ddd"?(Qe=yn.call(this._shortWeekdaysParse,xn))!==-1||(Qe=yn.call(this._weekdaysParse,xn))!==-1||(Qe=yn.call(this._minWeekdaysParse,xn))!==-1?Qe:null:(Qe=yn.call(this._minWeekdaysParse,xn))!==-1||(Qe=yn.call(this._weekdaysParse,xn))!==-1||(Qe=yn.call(this._shortWeekdaysParse,xn))!==-1?Qe:null}.call(this,T,I,X);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),ot=0;ot<7;ot++)if(Wt=Q([2e3,1]).day(ot),X&&!this._fullWeekdaysParse[ot]&&(this._fullWeekdaysParse[ot]=new RegExp("^"+this.weekdays(Wt,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[ot]=new RegExp("^"+this.weekdaysShort(Wt,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[ot]=new RegExp("^"+this.weekdaysMin(Wt,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[ot]||(fe="^"+this.weekdays(Wt,"")+"|^"+this.weekdaysShort(Wt,"")+"|^"+this.weekdaysMin(Wt,""),this._weekdaysParse[ot]=new RegExp(fe.replace(".",""),"i")),X&&I==="dddd"&&this._fullWeekdaysParse[ot].test(T)||X&&I==="ddd"&&this._shortWeekdaysParse[ot].test(T)||X&&I==="dd"&&this._minWeekdaysParse[ot].test(T)||!X&&this._weekdaysParse[ot].test(T))return ot},Or.weekdaysRegex=function(T){return this._weekdaysParseExact?(Y(this,"_weekdaysRegex")||Lr.call(this),T?this._weekdaysStrictRegex:this._weekdaysRegex):(Y(this,"_weekdaysRegex")||(this._weekdaysRegex=Fn),this._weekdaysStrictRegex&&T?this._weekdaysStrictRegex:this._weekdaysRegex)},Or.weekdaysShortRegex=function(T){return this._weekdaysParseExact?(Y(this,"_weekdaysRegex")||Lr.call(this),T?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(Y(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=ua),this._weekdaysShortStrictRegex&&T?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},Or.weekdaysMinRegex=function(T){return this._weekdaysParseExact?(Y(this,"_weekdaysRegex")||Lr.call(this),T?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(Y(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Pi),this._weekdaysMinStrictRegex&&T?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},Or.isPM=function(T){return(T+"").toLowerCase().charAt(0)==="p"},Or.meridiem=function(T,I,X){return 11<T?X?"pm":"PM":X?"am":"AM"},Ti("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(T){var I=T%10;return T+(xt(T%100/10)===1?"th":I===1?"st":I===2?"nd":I===3?"rd":"th")}}),k.lang=lt("moment.lang is deprecated. Use moment.locale instead.",Ti),k.langData=lt("moment.langData is deprecated. Use moment.localeData instead.",Er);var Ma=Math.abs;function mi(T,I,X,ot){var Wt=Ft(I,X);return T._milliseconds+=ot*Wt._milliseconds,T._days+=ot*Wt._days,T._months+=ot*Wt._months,T._bubble()}function uc(T){return T<0?Math.floor(T):Math.ceil(T)}function Ql(T){return 4800*T/146097}function Iu(T){return 146097*T/4800}function ko(T){return function(){return this.as(T)}}var Kl=ko("ms"),H1=ko("s"),k0=ko("m"),W1=ko("h"),V1=ko("d"),la=ko("w"),G1=ko("M"),Jl=ko("Q"),th=ko("y");function To(T){return function(){return this.isValid()?this._data[T]:NaN}}var Hc=To("milliseconds"),Qa=To("seconds"),Wc=To("minutes"),ha=To("hours"),As=To("days"),Ru=To("months"),Co=To("years"),qi=Math.round,ui={ss:44,s:45,m:45,h:22,d:26,M:11},Ka=Math.abs;function Na(T){return(0<T)-(T<0)||+T}function Zi(){if(!this.isValid())return this.localeData().invalidDate();var T,I,X=Ka(this._milliseconds)/1e3,ot=Ka(this._days),Wt=Ka(this._months);I=zt((T=zt(X/60))/60),X%=60,T%=60;var fe=zt(Wt/12),Te=Wt%=12,Le=ot,Oe=I,ze=T,Qe=X?X.toFixed(3).replace(/\.?0+$/,""):"",En=this.asSeconds();if(!En)return"P0D";var xn=En<0?"-":"",fr=Na(this._months)!==Na(En)?"-":"",gr=Na(this._days)!==Na(En)?"-":"",Ir=Na(this._milliseconds)!==Na(En)?"-":"";return xn+"P"+(fe?fr+fe+"Y":"")+(Te?fr+Te+"M":"")+(Le?gr+Le+"D":"")+(Oe||ze||Qe?"T":"")+(Oe?Ir+Oe+"H":"")+(ze?Ir+ze+"M":"")+(Qe?Ir+Qe+"S":"")}var Zn=Si.prototype;return Zn.isValid=function(){return this._isValid},Zn.abs=function(){var T=this._data;return this._milliseconds=Ma(this._milliseconds),this._days=Ma(this._days),this._months=Ma(this._months),T.milliseconds=Ma(T.milliseconds),T.seconds=Ma(T.seconds),T.minutes=Ma(T.minutes),T.hours=Ma(T.hours),T.months=Ma(T.months),T.years=Ma(T.years),this},Zn.add=function(T,I){return mi(this,T,I,1)},Zn.subtract=function(T,I){return mi(this,T,I,-1)},Zn.as=function(T){if(!this.isValid())return NaN;var I,X,ot=this._milliseconds;if((T=Ee(T))==="month"||T==="quarter"||T==="year")switch(I=this._days+ot/864e5,X=this._months+Ql(I),T){case"month":return X;case"quarter":return X/3;case"year":return X/12}else switch(I=this._days+Math.round(Iu(this._months)),T){case"week":return I/7+ot/6048e5;case"day":return I+ot/864e5;case"hour":return 24*I+ot/36e5;case"minute":return 1440*I+ot/6e4;case"second":return 86400*I+ot/1e3;case"millisecond":return Math.floor(864e5*I)+ot;default:throw new Error("Unknown unit "+T)}},Zn.asMilliseconds=Kl,Zn.asSeconds=H1,Zn.asMinutes=k0,Zn.asHours=W1,Zn.asDays=V1,Zn.asWeeks=la,Zn.asMonths=G1,Zn.asQuarters=Jl,Zn.asYears=th,Zn.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*xt(this._months/12):NaN},Zn._bubble=function(){var T,I,X,ot,Wt,fe=this._milliseconds,Te=this._days,Le=this._months,Oe=this._data;return 0<=fe&&0<=Te&&0<=Le||fe<=0&&Te<=0&&Le<=0||(fe+=864e5*uc(Iu(Le)+Te),Le=Te=0),Oe.milliseconds=fe%1e3,T=zt(fe/1e3),Oe.seconds=T%60,I=zt(T/60),Oe.minutes=I%60,X=zt(I/60),Oe.hours=X%24,Le+=Wt=zt(Ql(Te+=zt(X/24))),Te-=uc(Iu(Wt)),ot=zt(Le/12),Le%=12,Oe.days=Te,Oe.months=Le,Oe.years=ot,this},Zn.clone=function(){return Ft(this)},Zn.get=function(T){return T=Ee(T),this.isValid()?this[T+"s"]():NaN},Zn.milliseconds=Hc,Zn.seconds=Qa,Zn.minutes=Wc,Zn.hours=ha,Zn.days=As,Zn.weeks=function(){return zt(this.days()/7)},Zn.months=Ru,Zn.years=Co,Zn.humanize=function(T){if(!this.isValid())return this.localeData().invalidDate();var I,X,ot,Wt,fe,Te,Le,Oe,ze,Qe,En=this.localeData(),xn=(I=!T,X=En,ot=Ft(this).abs(),Wt=qi(ot.as("s")),fe=qi(ot.as("m")),Te=qi(ot.as("h")),Le=qi(ot.as("d")),Oe=qi(ot.as("M")),ze=qi(ot.as("y")),(Qe=Wt<=ui.ss&&["s",Wt]||Wt<ui.s&&["ss",Wt]||fe<=1&&["m"]||fe<ui.m&&["mm",fe]||Te<=1&&["h"]||Te<ui.h&&["hh",Te]||Le<=1&&["d"]||Le<ui.d&&["dd",Le]||Oe<=1&&["M"]||Oe<ui.M&&["MM",Oe]||ze<=1&&["y"]||["yy",ze])[2]=I,Qe[3]=0<+this,Qe[4]=X,function(fr,gr,Ir,ur,fa){return fa.relativeTime(gr||1,!!Ir,fr,ur)}.apply(null,Qe));return T&&(xn=En.pastFuture(+this,xn)),En.postformat(xn)},Zn.toISOString=Zi,Zn.toString=Zi,Zn.toJSON=Zi,Zn.locale=Jr,Zn.localeData=Aa,Zn.toIsoString=lt("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Zi),Zn.lang=zi,te("X",0,0,"unix"),te("x",0,0,"valueOf"),xe("x",en),xe("X",/[+-]?\d+(\.\d{1,3})?/),Xe("X",function(T,I,X){X._d=new Date(1e3*parseFloat(T,10))}),Xe("x",function(T,I,X){X._d=new Date(xt(T))}),k.version="2.24.0",v=zn,k.fn=Ye,k.min=function(){return $r("isBefore",[].slice.call(arguments,0))},k.max=function(){return $r("isAfter",[].slice.call(arguments,0))},k.now=function(){return Date.now?Date.now():+new Date},k.utc=Q,k.unix=function(T){return zn(1e3*T)},k.months=function(T,I){return $c(T,I,"months")},k.isDate=R,k.locale=Ti,k.invalid=tt,k.duration=Ft,k.isMoment=Zt,k.weekdays=function(T,I,X){return Ou(T,I,X,"weekdays")},k.parseZone=function(){return zn.apply(null,arguments).parseZone()},k.localeData=Er,k.isDuration=ji,k.monthsShort=function(T,I){return $c(T,I,"monthsShort")},k.weekdaysMin=function(T,I,X){return Ou(T,I,X,"weekdaysMin")},k.defineLocale=Ha,k.updateLocale=function(T,I){if(I!=null){var X,ot,Wt=di;(ot=Kr(T))!=null&&(Wt=ot._config),(X=new Kt(I=z(Wt,I))).parentLocale=cr[T],cr[T]=X,Ti(T)}else cr[T]!=null&&(cr[T].parentLocale!=null?cr[T]=cr[T].parentLocale:cr[T]!=null&&delete cr[T]);return cr[T]},k.locales=function(){return et(cr)},k.weekdaysShort=function(T,I,X){return Ou(T,I,X,"weekdaysShort")},k.normalizeUnits=Ee,k.relativeTimeRounding=function(T){return T===void 0?qi:typeof T=="function"&&(qi=T,!0)},k.relativeTimeThreshold=function(T,I){return ui[T]!==void 0&&(I===void 0?ui[T]:(ui[T]=I,T==="s"&&(ui.ss=I-1),!0))},k.calendarFormat=function(T,I){var X=T.diff(I,"days",!0);return X<-6?"sameElse":X<-1?"lastWeek":X<0?"lastDay":X<1?"sameDay":X<2?"nextDay":X<7?"nextWeek":"sameElse"},k.prototype=Ye,k.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"},k}()},6470:S=>{function O(f){if(typeof f!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(f))}function p(f,k){for(var y,C="",A=0,M=-1,R=0,B=0;B<=f.length;++B){if(B<f.length)y=f.charCodeAt(B);else{if(y===47)break;y=47}if(y===47){if(!(M===B-1||R===1))if(M!==B-1&&R===2){if(C.length<2||A!==2||C.charCodeAt(C.length-1)!==46||C.charCodeAt(C.length-2)!==46){if(C.length>2){var Y=C.lastIndexOf("/");if(Y!==C.length-1){Y===-1?(C="",A=0):A=(C=C.slice(0,Y)).length-1-C.lastIndexOf("/"),M=B,R=0;continue}}else if(C.length===2||C.length===1){C="",A=0,M=B,R=0;continue}}k&&(C.length>0?C+="/..":C="..",A=2)}else C.length>0?C+="/"+f.slice(M+1,B):C=f.slice(M+1,B),A=B-M-1;M=B,R=0}else y===46&&R!==-1?++R:R=-1}return C}var v={resolve:function(){for(var f,k="",y=!1,C=arguments.length-1;C>=-1&&!y;C--){var A;C>=0?A=arguments[C]:(f===void 0&&(f=process.cwd()),A=f),O(A),A.length!==0&&(k=A+"/"+k,y=A.charCodeAt(0)===47)}return k=p(k,!y),y?k.length>0?"/"+k:"/":k.length>0?k:"."},normalize:function(f){if(O(f),f.length===0)return".";var k=f.charCodeAt(0)===47,y=f.charCodeAt(f.length-1)===47;return(f=p(f,!k)).length!==0||k||(f="."),f.length>0&&y&&(f+="/"),k?"/"+f:f},isAbsolute:function(f){return O(f),f.length>0&&f.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var f,k=0;k<arguments.length;++k){var y=arguments[k];O(y),y.length>0&&(f===void 0?f=y:f+="/"+y)}return f===void 0?".":v.normalize(f)},relative:function(f,k){if(O(f),O(k),f===k||(f=v.resolve(f))===(k=v.resolve(k)))return"";for(var y=1;y<f.length&&f.charCodeAt(y)===47;++y);for(var C=f.length,A=C-y,M=1;M<k.length&&k.charCodeAt(M)===47;++M);for(var R=k.length-M,B=A<R?A:R,Y=-1,G=0;G<=B;++G){if(G===B){if(R>B){if(k.charCodeAt(M+G)===47)return k.slice(M+G+1);if(G===0)return k.slice(M+G)}else A>B&&(f.charCodeAt(y+G)===47?Y=G:G===0&&(Y=0));break}var Q=f.charCodeAt(y+G);if(Q!==k.charCodeAt(M+G))break;Q===47&&(Y=G)}var K="";for(G=y+Y+1;G<=C;++G)G!==C&&f.charCodeAt(G)!==47||(K.length===0?K+="..":K+="/..");return K.length>0?K+k.slice(M+Y):(M+=Y,k.charCodeAt(M)===47&&++M,k.slice(M))},_makeLong:function(f){return f},dirname:function(f){if(O(f),f.length===0)return".";for(var k=f.charCodeAt(0),y=k===47,C=-1,A=!0,M=f.length-1;M>=1;--M)if((k=f.charCodeAt(M))===47){if(!A){C=M;break}}else A=!1;return C===-1?y?"/":".":y&&C===1?"//":f.slice(0,C)},basename:function(f,k){if(k!==void 0&&typeof k!="string")throw new TypeError('"ext" argument must be a string');O(f);var y,C=0,A=-1,M=!0;if(k!==void 0&&k.length>0&&k.length<=f.length){if(k.length===f.length&&k===f)return"";var R=k.length-1,B=-1;for(y=f.length-1;y>=0;--y){var Y=f.charCodeAt(y);if(Y===47){if(!M){C=y+1;break}}else B===-1&&(M=!1,B=y+1),R>=0&&(Y===k.charCodeAt(R)?--R==-1&&(A=y):(R=-1,A=B))}return C===A?A=B:A===-1&&(A=f.length),f.slice(C,A)}for(y=f.length-1;y>=0;--y)if(f.charCodeAt(y)===47){if(!M){C=y+1;break}}else A===-1&&(M=!1,A=y+1);return A===-1?"":f.slice(C,A)},extname:function(f){O(f);for(var k=-1,y=0,C=-1,A=!0,M=0,R=f.length-1;R>=0;--R){var B=f.charCodeAt(R);if(B!==47)C===-1&&(A=!1,C=R+1),B===46?k===-1?k=R:M!==1&&(M=1):k!==-1&&(M=-1);else if(!A){y=R+1;break}}return k===-1||C===-1||M===0||M===1&&k===C-1&&k===y+1?"":f.slice(k,C)},format:function(f){if(f===null||typeof f!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof f);return function(k,y){var C=y.dir||y.root,A=y.base||(y.name||"")+(y.ext||"");return C?C===y.root?C+A:C+"/"+A:A}(0,f)},parse:function(f){O(f);var k={root:"",dir:"",base:"",ext:"",name:""};if(f.length===0)return k;var y,C=f.charCodeAt(0),A=C===47;A?(k.root="/",y=1):y=0;for(var M=-1,R=0,B=-1,Y=!0,G=f.length-1,Q=0;G>=y;--G)if((C=f.charCodeAt(G))!==47)B===-1&&(Y=!1,B=G+1),C===46?M===-1?M=G:Q!==1&&(Q=1):M!==-1&&(Q=-1);else if(!Y){R=G+1;break}return M===-1||B===-1||Q===0||Q===1&&M===B-1&&M===R+1?B!==-1&&(k.base=k.name=R===0&&A?f.slice(1,B):f.slice(R,B)):(R===0&&A?(k.name=f.slice(1,M),k.base=f.slice(1,B)):(k.name=f.slice(R,M),k.base=f.slice(R,B)),k.ext=f.slice(M,B)),R>0?k.dir=f.slice(0,R-1):A&&(k.dir="/"),k},sep:"/",delimiter:":",win32:null,posix:null};v.posix=v,S.exports=v},8218:()=>{},8009:()=>{},5354:()=>{},6878:()=>{},8183:()=>{},1428:()=>{},4551:()=>{},8800:()=>{},1993:()=>{},3069:()=>{},9143:()=>{}},e6={};function Xo(S){var O=e6[S];if(O!==void 0)return O.exports;var p=e6[S]={id:S,loaded:!1,exports:{}};return bx[S].call(p.exports,p,p.exports,Xo),p.loaded=!0,p.exports}Xo.c=e6,Xo.n=S=>{var O=S&&S.__esModule?()=>S.default:()=>S;return Xo.d(O,{a:O}),O},Xo.d=(S,O)=>{for(var p in O)Xo.o(O,p)&&!Xo.o(S,p)&&Object.defineProperty(S,p,{enumerable:!0,get:O[p]})},Xo.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch{if(typeof window=="object")return window}}(),Xo.o=(S,O)=>Object.prototype.hasOwnProperty.call(S,O),Xo.r=S=>{typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(S,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(S,"__esModule",{value:!0})},Xo.nmd=S=>(S.paths=[],S.children||(S.children=[]),S);var A6=Xo(Xo.s=8968).Z;function _x(S){let O,p;return{c(){O=k6("div"),p=k6("div"),this.h()},l(v){O=T6(v,"DIV",{id:!0,class:!0});var f=C6(O);p=T6(f,"DIV",{id:!0,class:!0}),C6(p).forEach(Q_),f.forEach(Q_),this.h()},h(){Cb(p,"id","container"),Cb(p,"class","flex-1 overflow-auto"),Cb(O,"id","view"),Cb(O,"class","p-2 svelte-5ndy2s"),Eb(O,"error",S[2]),Eb(O,"outOfSync",S[3])},m(v,f){sx(v,O,f),cx(O,p),S[4](p),S[5](O)},p(v,[f]){f&4&&Eb(O,"error",v[2]),f&8&&Eb(O,"outOfSync",v[3])},i:E6,o:E6,d(v){v&&Q_(O),S[4](null),S[5](null)}}}function xx(S,O,p){let v;ux(S,K_,G=>p(9,v=G));let f="",k="",y,C,A=!1,M=!1,R=!0;lx(()=>{K_.subscribe(G=>{try{if(y&&G&&(G.updateDiagram||G.autoSync)){if(G.autoSync||hx(K_,v.updateDiagram=!1,v),p(3,M=!1),R=!0,f===G.code&&k===G.mermaid)return;f=G.code,k=G.mermaid;const Q=C.parentElement.scrollTop;delete y.dataset.processed,A6.initialize(Object.assign({},JSON.parse(G.mermaid))),A6.render("graph-div",f,K=>{p(0,y.innerHTML=K,y)}),p(1,C.parentElement.scrollTop=Q,C),p(2,A=!1)}else R?R=!1:p(3,M=!0)}catch(Q){console.log("view fail",Q),p(2,A=!0)}}),vx.subscribe(G=>{typeof G=="undefined"?p(2,A=!1):(p(2,A=!0),console.log("Error: ",G))})});function B(G){S6[G?"unshift":"push"](()=>{y=G,p(0,y)})}function Y(G){S6[G?"unshift":"push"](()=>{C=G,p(1,C)})}return[y,C,A,M,B,Y]}class Fx extends ix{constructor(O){super();ax(this,O,xx,_x,ox,{})}}var Sb=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},ty={},O6={};(function(S){var O=Sb&&Sb.__values||function(v){var f=typeof Symbol=="function"&&Symbol.iterator,k=f&&v[f],y=0;if(k)return k.call(v);if(v&&typeof v.length=="number")return{next:function(){return v&&y>=v.length&&(v=void 0),{value:v&&v[y++],done:!v}}};throw new TypeError(f?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(S,"__esModule",{value:!0}),S.getWordsByCategory=S.wordList=void 0,S.wordList={noun:[{word:"accountant",categories:["profession"]},{word:"ability",categories:["thing"]},{word:"accident",categories:["thing"]},{word:"account",categories:["thing"]},{word:"action",categories:["thing"]},{word:"activity",categories:["thing"]},{word:"actor",categories:["profession"]},{word:"ad",categories:["media"]},{word:"addition",categories:["thing"]},{word:"address",categories:["thing"]},{word:"adult",categories:["people"]},{word:"advantage",categories:["thing"]},{word:"advertisement",categories:["media"]},{word:"afternoon",categories:["time"]},{word:"agency",categories:["thing"]},{word:"agent",categories:["people"]},{word:"air",categories:["thing"]},{word:"airline",categories:["transportation"]},{word:"airplane",categories:["transportation"]},{word:"airport",categories:["transportation","place"]},{word:"alarm",categories:["thing"]},{word:"alligator",categories:["animals"]},{word:"ambulance",categories:["health"]},{word:"analyst",categories:["profession"]},{word:"angle",categories:["thing"]},{word:"animal",categories:["animals"]},{word:"answer",categories:["thing"]},{word:"apartment",categories:["place"]},{word:"apple",categories:["food"]},{word:"application",categories:["thing"]},{word:"appointment",categories:["thing"]},{word:"architect",categories:["profession"]},{word:"argument",categories:["thing"]},{word:"area",categories:["thing"]},{word:"arm",categories:["thing"]},{word:"army",categories:["thing"]},{word:"art",categories:["thing"]},{word:"article",categories:["thing"]},{word:"artist",categories:["profession"]},{word:"australia",categories:["place"]},{word:"author",categories:["profession"]},{word:"autumn",categories:["time"]},{word:"baby",categories:["people","family"]},{word:"baker",categories:["profession"]},{word:"balloon",categories:["thing"]},{word:"banana",categories:["food"]},{word:"barista",categories:["profession"]},{word:"battery",categories:["thing"]},{word:"beach",categories:["place"]},{word:"bear",categories:["animals"]},{word:"beard",categories:["thing"]},{word:"bed",categories:["thing"]},{word:"belgium",categories:["place"]},{word:"bird",categories:["animals"]},{word:"bit",categories:["thing","technology"]},{word:"book",categories:["thing","education"]},{word:"boots",categories:["thing"]},{word:"boy",categories:["people"]},{word:"branch",categories:["thing"]},{word:"breakfast",categories:["thing"]},{word:"brother",categories:["family"]},{word:"businessperson",categories:["people","business"]},{word:"butcher",categories:["profession"]},{word:"byte",categories:["thing","technology"]},{word:"camera",categories:["thing"]},{word:"candle",categories:["thing"]},{word:"car",categories:["transportation"]},{word:"caravan",categories:["transportation"]},{word:"carpenter",categories:["profession"]},{word:"carpet",categories:["thing"]},{word:"cartoon",categories:["media"]},{word:"cat",categories:["animals"]},{word:"chef",categories:["profession"]},{word:"child",categories:["people","family"]},{word:"china",categories:["place"]},{word:"church",categories:["religion"]},{word:"city",categories:["place"]},{word:"coat",categories:["thing"]},{word:"coffeeshop",categories:["place"]},{word:"computer",categories:["thing","technology"]},{word:"continent",categories:["place"]},{word:"controller",categories:["thing","technology"]},{word:"country",categories:["place"]},{word:"cpu",categories:["thing","technology"]},{word:"crayon",categories:["thing"]},{word:"cricket",categories:["animals"]},{word:"crowd",categories:["people"]},{word:"daughter",categories:["family"]},{word:"dawn",categories:["time"]},{word:"daybreak",categories:["time"]},{word:"death",categories:["thing"]},{word:"denmark",categories:["place"]},{word:"dentist",categories:["profession"]},{word:"diamond",categories:["thing"]},{word:"dinner",categories:["food"]},{word:"disease",categories:["thing"]},{word:"doctor",categories:["profession"]},{word:"dog",categories:["animals"]},{word:"dream",categories:["thing"]},{word:"dress",categories:["thing"]},{word:"dusk",categories:["time"]},{word:"easter",categories:["religion"]},{word:"egg",categories:["food"]},{word:"eggplant",categories:["food"]},{word:"egypt",categories:["place"]},{word:"electrician",categories:["profession"]},{word:"elephant",categories:["animals"]},{word:"energy",categories:["thing"]},{word:"engine",categories:["transportation"]},{word:"engineer",categories:["profession"]},{word:"england",categories:["place"]},{word:"eve",categories:["time"]},{word:"evening",categories:["time"]},{word:"eventide",categories:["time"]},{word:"exabyte",categories:["thing","technology"]},{word:"eye",categories:["thing"]},{word:"fall",categories:["time"]},{word:"family",categories:["family"]},{word:"farmer",categories:["profession"]},{word:"father",categories:["people","family"]},{word:"finland",categories:["place"]},{word:"fireman",categories:["profession"]},{word:"fish",categories:["animals"]},{word:"flag",categories:["thing"]},{word:"florist",categories:["profession"]},{word:"flower",categories:["thing"]},{word:"football",categories:["sports"]},{word:"forest",categories:["place"]},{word:"fountain",categories:["thing"]},{word:"france",categories:["place"]},{word:"furniture",categories:["thing"]},{word:"garage",categories:["place"]},{word:"garden",categories:["food"]},{word:"gas",categories:["transportation"]},{word:"ghost",categories:["thing"]},{word:"gigabyte",categories:["thing","technology"]},{word:"girl",categories:["people"]},{word:"glass",categories:["thing"]},{word:"gold",categories:["thing"]},{word:"gpu",categories:["thing","technology"]},{word:"grandmother",categories:["people","family"]},{word:"grass",categories:["thing"]},{word:"greece",categories:["place"]},{word:"guitar",categories:["thing"]},{word:"hair",categories:["thing"]},{word:"hairdresser",categories:["profession"]},{word:"hamburger",categories:["food"]},{word:"helicopter",categories:["transportation"]},{word:"helmet",categories:["thing"]},{word:"holiday",categories:["thing"]},{word:"honey",categories:["food"]},{word:"horse",categories:["animals"]},{word:"hospital",categories:["place"]},{word:"house",categories:["place"]},{word:"hydrogen",categories:["science"]},{word:"ice",categories:["science"]},{word:"insect",categories:["animals"]},{word:"insurance",categories:["thing"]},{word:"intern",categories:["profession"]},{word:"iron",categories:["science"]},{word:"island",categories:["place"]},{word:"jackal",categories:["animals"]},{word:"jelly",categories:["food"]},{word:"jewellery",categories:["thing"]},{word:"jordan",categories:["place"]},{word:"journalist",categories:["profession"]},{word:"joystick",categories:["thing","technology"]},{word:"judge",categories:["profession"]},{word:"juice",categories:["food"]},{word:"kangaroo",categories:["animals"]},{word:"keyboard",categories:["thing","technology"]},{word:"kilobyte",categories:["thing","technology"]},{word:"king",categories:["people"]},{word:"kitchen",categories:["place"]},{word:"kite",categories:["thing"]},{word:"knife",categories:["thing"]},{word:"lamp",categories:["thing"]},{word:"laptop",categories:["thing","technology"]},{word:"lawyer",categories:["profession"]},{word:"leather",categories:["thing"]},{word:"librarian",categories:["profession"]},{word:"library",categories:["place"]},{word:"lifeguard",categories:["profession"]},{word:"lighter",categories:["thing"]},{word:"lion",categories:["animals"]},{word:"lizard",categories:["animals"]},{word:"lock",categories:["thing"]},{word:"london",categories:["place"]},{word:"lunch",categories:["food"]},{word:"machine",categories:["science"]},{word:"magazine",categories:["media"]},{word:"magician",categories:["people"]},{word:"man",categories:["people"]},{word:"manchester",categories:["place"]},{word:"market",categories:["place"]},{word:"match",categories:["thing"]},{word:"mechanic",categories:["profession"]},{word:"megabyte",categories:["thing","technology"]},{word:"memory",categories:["thing","technology"]},{word:"microphone",categories:["thing"]},{word:"midnight",categories:["time"]},{word:"minister",categories:["people","religion"]},{word:"monitor",categories:["thing","technology"]},{word:"monkey",categories:["animals"]},{word:"morn",categories:["time"]},{word:"morning",categories:["time"]},{word:"mother",categories:["people","family"]},{word:"motherboard",categories:["thing","technology"]},{word:"motorcycle",categories:["transportation"]},{word:"mouse",categories:["thing","technology","animals"]},{word:"musician",categories:["profession"]},{word:"nail",categories:["thing"]},{word:"napkin",categories:["thing"]},{word:"needle",categories:["thing"]},{word:"nest",categories:["thing"]},{word:"nigeria",categories:["place"]},{word:"night",categories:["time"]},{word:"nightfall",categories:["time"]},{word:"noon",categories:["time"]},{word:"notebook",categories:["thing"]},{word:"nurse",categories:["profession"]},{word:"ocean",categories:["place"]},{word:"oil",categories:["thing"]},{word:"optician",categories:["profession"]},{word:"orange",categories:["food"]},{word:"oxygen",categories:["science"]},{word:"oyster",categories:["animals"]},{word:"pager",categories:["thing","technology"]},{word:"painter",categories:["profession"]},{word:"painting",categories:["media"]},{word:"park",categories:["place"]},{word:"parrot",categories:["animals"]},{word:"pencil",categories:["thing","education"]},{word:"petabyte",categories:["thing","technology"]},{word:"pharmacist",categories:["profession"]},{word:"photographer",categories:["profession"]},{word:"piano",categories:["thing"]},{word:"pillow",categories:["thing"]},{word:"pilot",categories:["profession"]},{word:"pizza",categories:["food"]},{word:"planet",categories:["science"]},{word:"plastic",categories:["thing"]},{word:"plumber",categories:["profession"]},{word:"policeman",categories:["profession"]},{word:"portugal",categories:["place"]},{word:"postman",categories:["profession"]},{word:"potato",categories:["food"]},{word:"printer",categories:["thing","technology"]},{word:"processor",categories:["thing","technology"]},{word:"psychiatrist",categories:["profession"]},{word:"queen",categories:["people"]},{word:"quill",categories:["thing"]},{word:"rain",categories:["thing"]},{word:"rainbow",categories:["science"]},{word:"raincoat",categories:["thing"]},{word:"ram",categories:["thing","technology"]},{word:"receptionist",categories:["profession"]},{word:"refrigerator",categories:["food"]},{word:"restaurant",categories:["place"]},{word:"river",categories:["thing"]},{word:"rocket",categories:["science"]},{word:"room",categories:["place"]},{word:"rose",categories:["thing"]},{word:"russia",categories:["place"]},{word:"salesclerk",categories:["people","business"]},{word:"salesmen",categories:["profession"]},{word:"sandwich",categories:["food"]},{word:"school",categories:["education"]},{word:"scientist",categories:["profession"]},{word:"scooter",categories:["transportation"]},{word:"secretary",categories:["profession"]},{word:"shampoo",categories:["thing"]},{word:"shoe",categories:["thing"]},{word:"smartphone",categories:["thing","technology"]},{word:"soccer",categories:["sports"]},{word:"solstice",categories:["time"]},{word:"spoon",categories:["thing"]},{word:"spring",categories:["time"]},{word:"state",categories:["place"]},{word:"stone",categories:["thing"]},{word:"student",categories:["people","education"]},{word:"sugar",categories:["food"]},{word:"summer",categories:["time"]},{word:"sundown",categories:["time"]},{word:"sunset",categories:["time"]},{word:"sweden",categories:["place"]},{word:"table",categories:["thing"]},{word:"tailor",categories:["profession"]},{word:"teacher",categories:["people","education","profession"]},{word:"teenager",categories:["people","family"]},{word:"telephone",categories:["thing"]},{word:"television",categories:["media"]},{word:"tent",categories:["thing"]},{word:"terabyte",categories:["thing","technology"]},{word:"thailand",categories:["place"]},{word:"tiger",categories:["animals"]},{word:"toddler",categories:["people","family"]},{word:"tomato",categories:["food"]},{word:"toothbrush",categories:["thing"]},{word:"traffic",categories:["thing"]},{word:"train",categories:["transportation"]},{word:"translator",categories:["profession"]},{word:"truck",categories:["thing","transportation"]},{word:"twilight",categories:["time"]},{word:"uganda",categories:["place"]},{word:"umbrella",categories:["thing"]},{word:"van",categories:["transportation"]},{word:"vase",categories:["thing"]},{word:"vegetable",categories:["food"]},{word:"vr",categories:["thing","technology"]},{word:"vulture",categories:["animals"]},{word:"waiter",categories:["profession"]},{word:"waitress",categories:["profession"]},{word:"wall",categories:["thing"]},{word:"whale",categories:["animals"]},{word:"window",categories:["thing"]},{word:"winter",categories:["time"]},{word:"wire",categories:["thing"]},{word:"wolf",categories:["animals"]},{word:"woman",categories:["people"]},{word:"xylophone",categories:["thing"]},{word:"yacht",categories:["transportation"]},{word:"yak",categories:["animals"]},{word:"yottabyte",categories:["thing","technology"]},{word:"zebra",categories:["animals"]},{word:"zettabyte",categories:["thing","technology"]},{word:"zoo",categories:["animals"]}],adjective:[{word:"abandoned",categories:["condition"]},{word:"abiding",categories:["personality"]},{word:"able",categories:["condition"]},{word:"abrasive",categories:["condition","personality"]},{word:"abnormal",categories:["condition"]},{word:"absurd",categories:["condition"]},{word:"abundant",categories:["quantity"]},{word:"acceptable",categories:["condition"]},{word:"acidic",categories:["taste"]},{word:"acoustic",categories:["sounds"]},{word:"acrid",categories:["condition"]},{word:"adamant",categories:["personality"]},{word:"adorable",categories:["personality"]},{word:"adventurous",categories:["personality"]},{word:"aggressive",categories:["personality"]},{word:"agitated",categories:["personality"]},{word:"agreeable",categories:["personality"]},{word:"alert",categories:["condition"]},{word:"alive",categories:["condition"]},{word:"aloof",categories:["personality"]},{word:"ambitious",categories:["personality"]},{word:"ancient",categories:["time"]},{word:"angry",categories:["personality"]},{word:"annoyed",categories:["personality"]},{word:"antsy",categories:["personality"]},{word:"anxious",categories:["personality"]},{word:"appalling",categories:["personality"]},{word:"appetizing",categories:["taste"]},{word:"apprehensive",categories:["personality"]},{word:"arrogant",categories:["personality"]},{word:"ashamed",categories:["personality"]},{word:"astonishing",categories:["personality"]},{word:"attractive",categories:["appearance"]},{word:"average",categories:["appearance"]},{word:"bad",categories:["condition"]},{word:"bald",categories:["appearance"]},{word:"bashful",categories:["personality"]},{word:"beautiful",categories:["appearance"]},{word:"beefy",categories:["appearance"]},{word:"belligerent",categories:["personality"]},{word:"bent",categories:["condition"]},{word:"better",categories:["condition"]},{word:"best",categories:["condition"]},{word:"better",categories:["condition"]},{word:"bewildered",categories:["personality"]},{word:"big",categories:["size"]},{word:"billions",categories:["quantity"]},{word:"billowy",categories:["appearance"]},{word:"bitter",categories:["taste"]},{word:"black",categories:["color"]},{word:"bland",categories:["taste"]},{word:"blue",categories:["color"]},{word:"blushing",categories:["appearance"]},{word:"bored",categories:["personality"]},{word:"boring",categories:["personality"]},{word:"boundless",categories:["personality"]},{word:"brainy",categories:["personality"]},{word:"brash",categories:["personality"]},{word:"brave",categories:["personality"]},{word:"breezy",categories:["touch"]},{word:"brief",categories:["time"]},{word:"bright",categories:["appearance"]},{word:"broad",categories:["shapes"]},{word:"broken",categories:["condition"]},{word:"brown",categories:["color"]},{word:"bulky",categories:["appearance"]},{word:"bumpy",categories:["touch"]},{word:"burly",categories:["appearance"]},{word:"busy",categories:["personality"]},{word:"cagey",categories:["personality"]},{word:"calm",categories:["personality"]},{word:"callous",categories:["personality"]},{word:"careful",categories:["condition"]},{word:"chilly",categories:["touch"]},{word:"chubby",categories:["appearance"]},{word:"clean",categories:["appearance"]},{word:"clever",categories:["condition"]},{word:"clumsy",categories:["personality"]},{word:"cold",categories:["touch"]},{word:"colossal",categories:["size"]},{word:"cool",categories:["touch"]},{word:"crashing",categories:["sounds"]},{word:"creamy",categories:["taste"]},{word:"crooked",categories:["shapes"]},{word:"cuddly",categories:["touch"]},{word:"curved",categories:["shapes"]},{word:"damaged",categories:["touch"]},{word:"damp",categories:["touch"]},{word:"dazzling",categories:["appearance"]},{word:"dead",categories:["condition"]},{word:"deafening",categories:["sounds"]},{word:"deep",categories:["shapes"]},{word:"defeated",categories:["personality"]},{word:"delicious",categories:["taste"]},{word:"delightful",categories:["personality"]},{word:"dirty",categories:["touch"]},{word:"disgusting",categories:["taste"]},{word:"drab",categories:["appearance"]},{word:"dry",categories:["touch"]},{word:"eager",categories:["personality"]},{word:"early",categories:["time"]},{word:"easy",categories:["condition"]},{word:"echoing",categories:["sounds"]},{word:"elegant",categories:["appearance"]},{word:"embarrassed",categories:["personality"]},{word:"enough",categories:["quantity"]},{word:"faint",categories:["sounds"]},{word:"faithful",categories:["personality"]},{word:"famous",categories:["condition"]},{word:"fancy",categories:["appearance"]},{word:"fast",categories:["time"]},{word:"fat",categories:["size"]},{word:"few",categories:["quantity"]},{word:"fierce",categories:["personality"]},{word:"fit",categories:["appearance"]},{word:"flabby",categories:["appearance"]},{word:"flaky",categories:["touch"]},{word:"flat",categories:["shapes"]},{word:"fluffy",categories:["touch"]},{word:"freezing",categories:["touch"]},{word:"fresh",categories:["taste"]},{word:"full",categories:["quantity"]},{word:"future",categories:["time"]},{word:"gentle",categories:["personality"]},{word:"gifted",categories:["condition"]},{word:"gigantic",categories:["size"]},{word:"glamorous",categories:["appearance"]},{word:"gorgeous",categories:["appearance"]},{word:"gray",categories:["color"]},{word:"greasy",categories:["touch","taste"]},{word:"great",categories:["size"]},{word:"green",categories:["color"]},{word:"grumpy",categories:["personality"]},{word:"hallowed",categories:["condition"]},{word:"handsome",categories:["appearance"]},{word:"happy",categories:["personality"]},{word:"harsh",categories:["sounds"]},{word:"helpful",categories:["condition"]},{word:"helpless",categories:["personality"]},{word:"high",categories:["shapes"]},{word:"hissing",categories:["sounds"]},{word:"hollow",categories:["shapes"]},{word:"hot",categories:["touch","taste"]},{word:"howling",categories:["sounds"]},{word:"huge",categories:["size"]},{word:"hundreds",categories:["quantity"]},{word:"icy",categories:["touch"]},{word:"immense",categories:["size"]},{word:"important",categories:["condition"]},{word:"incalculable",categories:["quantity"]},{word:"inexpensive",categories:["condition"]},{word:"itchy",categories:["personality"]},{word:"jealous",categories:["personality"]},{word:"jolly",categories:["personality"]},{word:"juicy",categories:["taste"]},{word:"kind",categories:["personality"]},{word:"large",categories:["size"]},{word:"late",categories:["time"]},{word:"lazy",categories:["personality"]},{word:"lemon",categories:["color"]},{word:"limited",categories:["quantity"]},{word:"little",categories:["size","quantity"]},{word:"lively",categories:["personality"]},{word:"long",categories:["time","appearance"]},{word:"loose",categories:["touch"]},{word:"loud",categories:["sounds"]},{word:"low",categories:["shapes"]},{word:"magnificent",categories:["appearance"]},{word:"mammoth",categories:["size"]},{word:"mango",categories:["color"]},{word:"many",categories:["quantity"]},{word:"massive",categories:["size"]},{word:"mealy",categories:["condition"]},{word:"melodic",categories:["sounds"]},{word:"melted",categories:["touch"]},{word:"microscopic",categories:["size"]},{word:"millions",categories:["quantity"]},{word:"miniature",categories:["size"]},{word:"modern",categories:["time"]},{word:"moldy",categories:["taste"]},{word:"most",categories:["quantity"]},{word:"muscular",categories:["appearance"]},{word:"mushy",categories:["condition"]},{word:"mysterious",categories:["personality"]},{word:"narrow",categories:["shapes"]},{word:"nervous",categories:["personality"]},{word:"nice",categories:["personality"]},{word:"noisy",categories:["sounds"]},{word:"numerous",categories:["quantity"]},{word:"nutritious",categories:["taste"]},{word:"nutty",categories:["taste"]},{word:"obedient",categories:["personality"]},{word:"obnoxious",categories:["personality"]},{word:"odd",categories:["condition"]},{word:"old",categories:["time"]},{word:"orange",categories:["color"]},{word:"panicky",categories:["personality"]},{word:"petite",categories:["size"]},{word:"pitiful",categories:["personality"]},{word:"plain",categories:["appearance"]},{word:"plump",categories:["appearance"]},{word:"polite",categories:["personality"]},{word:"poor",categories:["condition"]},{word:"powerful",categories:["condition"]},{word:"prehistoric",categories:["time"]},{word:"prickly",categories:["touch"]},{word:"proud",categories:["personality"]},{word:"puny",categories:["size"]},{word:"purple",categories:["color"]},{word:"purring",categories:["sounds"]},{word:"putrid",categories:["taste"]},{word:"quaint",categories:["appearance"]},{word:"quick",categories:["time"]},{word:"quiet",categories:["sounds"]},{word:"rancid",categories:["taste"]},{word:"rapid",categories:["time"]},{word:"rapping",categories:["sounds"]},{word:"raspy",categories:["sounds"]},{word:"red",categories:["color"]},{word:"refined",categories:["shapes"]},{word:"repulsive",categories:["personality"]},{word:"rhythmic",categories:["sounds"]},{word:"rich",categories:["condition"]},{word:"ripe",categories:["taste"]},{word:"rotten",categories:["taste"]},{word:"rough",categories:["touch"]},{word:"round",categories:["shapes"]},{word:"salmon",categories:["color"]},{word:"salty",categories:["taste"]},{word:"savory",categories:["taste"]},{word:"scarce",categories:["quantity"]},{word:"scary",categories:["personality"]},{word:"scrawny",categories:["size"]},{word:"screeching",categories:["sounds"]},{word:"scruffy",categories:["appearance"]},{word:"shaggy",categories:["touch"]},{word:"shallow",categories:["shapes"]},{word:"shapely",categories:["appearance"]},{word:"sharp",categories:["touch"]},{word:"short",categories:["size","appearance","time"]},{word:"shrilling",categories:["sounds"]},{word:"shy",categories:["condition"]},{word:"silly",categories:["personality"]},{word:"skinny",categories:["appearance","shapes"]},{word:"slimy",categories:["touch"]},{word:"slow",categories:["time"]},{word:"small",categories:["size"]},{word:"some",categories:["quantity"]},{word:"sour",categories:["taste"]},{word:"sparse",categories:["quantity"]},{word:"spicy",categories:["taste"]},{word:"spoiled",categories:["taste"]},{word:"square",categories:["shapes"]},{word:"squeaking",categories:["sounds"]},{word:"stale",categories:["taste"]},{word:"steep",categories:["shapes"]},{word:"sticky",categories:["touch"]},{word:"stocky",categories:["appearance"]},{word:"straight",categories:["shapes"]},{word:"strong",categories:["touch"]},{word:"substantial",categories:["quantity"]},{word:"sweet",categories:["taste"]},{word:"swift",categories:["time"]},{word:"tall",categories:["size"]},{word:"tangy",categories:["taste"]},{word:"tart",categories:["taste"]},{word:"tasteless",categories:["taste"]},{word:"tasty",categories:["taste"]},{word:"teeny",categories:["size"]},{word:"tender",categories:["condition"]},{word:"thankful",categories:["personality"]},{word:"thoughtless",categories:["personality"]},{word:"thousands",categories:["quantity"]},{word:"thundering",categories:["sounds"]},{word:"tight",categories:["touch"]},{word:"tinkling",categories:["sounds"]},{word:"tiny",categories:["size"]},{word:"ugly",categories:["appearance"]},{word:"uneven",categories:["touch"]},{word:"unimportant",categories:["condition"]},{word:"uninterested",categories:["condition"]},{word:"unkempt",categories:["appearance"]},{word:"unsightly",categories:["appearance"]},{word:"uptight",categories:["personality"]},{word:"vast",categories:["condition"]},{word:"victorious",categories:["personality"]},{word:"wailing",categories:["sounds"]},{word:"warm",categories:["touch"]},{word:"weak",categories:["touch"]},{word:"wet",categories:["touch"]},{word:"whining",categories:["sounds"]},{word:"whispering",categories:["sounds"]},{word:"white",categories:["color"]},{word:"wide",categories:["shapes"]},{word:"witty",categories:["personality"]},{word:"wonderful",categories:["personality"]},{word:"wooden",categories:["touch"]},{word:"worried",categories:["personality"]},{word:"wrong",categories:["condition"]},{word:"yellow",categories:["color"]},{word:"young",categories:["time"]},{word:"yummy",categories:["taste"]},{word:"zealous",categories:["personality"]}]};function p(v,f){var k,y;f===void 0&&(f=[]);var C=new Set(f),A=[];try{for(var M=O(S.wordList[v]),R=M.next();!R.done;R=M.next()){var B=R.value;(f.length===0||B.categories.some(function(Y){return C.has(Y)}))&&A.push(B.word)}}catch(Y){k={error:Y}}finally{try{R&&!R.done&&(y=M.return)&&y.call(M)}finally{if(k)throw k.error}}return A}S.getWordsByCategory=p})(O6);var Ab=Sb&&Sb.__assign||function(){return Ab=Object.assign||function(S){for(var O,p=1,v=arguments.length;p<v;p++){O=arguments[p];for(var f in O)Object.prototype.hasOwnProperty.call(O,f)&&(S[f]=O[f])}return S},Ab.apply(this,arguments)};Object.defineProperty(ty,"__esModule",{value:!0});ty.totalUniqueSlugs=R6=ty.generateSlug=void 0;var n6=O6,I6=3;function wx(S,O){for(var p=S||I6,v={partsOfSpeech:F6(p),categories:{},format:"kebab"},f=Ab(Ab({},v),O),k=[],y=0;y<p;y++){var C=f.partsOfSpeech[y],A=n6.getWordsByCategory(f.partsOfSpeech[y],f.categories[C]),M=A[Math.floor(Math.random()*A.length)];k.push(M)}return kx(k,f.format)}var R6=ty.generateSlug=wx;function F6(S){for(var O=[],p=0;p<S-1;p++)O.push("adjective");return O.push("noun"),O}function kx(S,O){return O==="kebab"?S.join("-").toLowerCase():O==="camel"?S.map(function(p,v){return v===0?p.toLowerCase():p[0].toUpperCase()+p.slice(1).toLowerCase()}).join(""):O==="lower"?S.join(" ").toLowerCase():O==="sentence"?S.map(function(p,v){return v===0?p[0].toUpperCase()+p.slice(1).toLowerCase():p}).join(" "):S.map(function(p){return p[0].toUpperCase()+p.slice(1).toLowerCase()}).join(" ")}function Tx(S,O){for(var p,v,f=n6.getWordsByCategory("adjective",(p=O==null?void 0:O.categories)===null||p===void 0?void 0:p.adjective).length,k=n6.getWordsByCategory("noun",(v=O==null?void 0:O.categories)===null||v===void 0?void 0:v.noun).length,y={adjective:f,noun:k},C=S||I6,A=(O==null?void 0:O.partsOfSpeech)||F6(C),M=1,R=0;R<C;R++)M*=y[A[R]];return M}ty.totalUniqueSlugs=Tx;const Cx=30,r6=i6(ey("manual"),a6(),"autoHistoryMode"),Mb=i6(ey([]),a6(),"autoHistoryStore"),Nb=i6(ey([]),a6(),"manualHistoryStore"),P6=ey([]),Px=fx([r6,Mb,Nb,P6],([S,O,p,v],f)=>{f(S==="auto"?O:S==="manual"?p:S==="loader"?v:O)}),Ex=S=>{if(S.type==="loader"){P6.update(O=>[S,...O]);return}if(S.name=R6(2),S.type!=="auto"){Nb.update(O=>[S,...O]);return}Mb.update(O=>(O.length===Cx&&O.pop(),[S,...O]))},jx=S=>{(J_(r6)==="auto"?Mb:Nb).update(O=>(J_(r6)!=="loader"&&(O=O.filter(p=>S&&p.time!=S)),O))},Yx=S=>{const O=J_(S?Mb:Nb);return O.length>0?JSON.stringify(O[0].state):""},j6="code.mmd",M6="config.json",Sx=S=>j6 in S,N6=async S=>S.truncated?await(await fetch(S.raw_url)).text():S.content,Ax=async S=>{const[O,p,v,f]=S.split("github.com").pop().split("/"),{html_url:k,files:y,history:C}=await(await fetch(`https://api.github.com/gists/${v}${f?"/"+f:""}`)).json();if(Sx(y)){const A=await N6(y[j6]);let M;M6 in y&&(M=await N6(y[M6]));const R=C[0];return{url:`${k}/${R.version}`,code:A,config:M,author:R.user.login,time:new Date(R.committed_at).getTime(),version:R.version.slice(-7)}}else throw"Invalid gist provided"},D6=(S,O=S.url)=>{const p=Z_(X_({},t6),{code:S.code,loader:{type:"gist",config:{url:O}}});return S.config&&(p.mermaid=S.config),p},Mx=async S=>{try{const[O,p,v,f]=S.split("github.com").pop().split("/"),{history:k}=await(await fetch(`https://api.github.com/gists/${v}${f?"/"+f:""}`)).json(),y=[];for(const A of k){const M=await Ax(A.url).catch(()=>{});M&&y.push(M)}if(y.length===0)throw"Invalid gist provided";y.reverse();const C=D6(y.slice(-1).pop(),S);for(const A of y)Ex({state:D6(A),time:A.time,type:"loader",url:A.url,name:`${A.author} v${A.version}`});return C}catch(O){console.error(O)}},L6={gist:Mx},Nx=async()=>{const S=new URLSearchParams(window.location.search);let O=t6,p,v,f=!1;const k=S.get("code"),y=S.get("config");if(k&&(p=await(await fetch(k)).text(),f=!0),y?v=await(await fetch(y)).text():v=t6.mermaid,p)O={code:p,mermaid:v,loader:{type:"files",config:{codeURL:k,configURL:y}}};else for(const[C,A]of S.entries())if(C in L6)try{O=await L6[C](A),f=!0;break}catch(M){console.error(M)}f&&B6(Z_(X_({},O),{autoSync:!0,updateDiagram:!0,updateEditor:!0}))},Dx=()=>{mx(window.location.hash.slice(1))},Lx=()=>{B6({updateDiagram:!0})},zx=async()=>{var S;Dx(),await dx("Loading Gist...",Nx().catch(console.error)),Lx(),px(),await gx(),(S=yx)==null||S.page()};export{Fx as V,Px as a,Ex as b,jx as c,vx as e,Yx as g,r6 as h,zx as i,P6 as l,A6 as r,Lx as s};