You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
venv/PyCharm 2025.2.1.1/plugins/python/jupyter-web/2152.js

1 line
88 KiB

"use strict";(self.webpackChunkjupyter_web=self.webpackChunkjupyter_web||[]).push([[2152],{2152:(Je,Ft,ot)=>{var yt;ot.r(Ft),ot.d(Ft,{diagram:()=>He});var X=ot(53420),st=ot(90152),ce=ot(91035),Y=ot(62477),a=ot(3685),Et=ot(31083),qt=ot(51336),Lt=function(){var e=(0,a.eW)(function(ht,_,k,I){for(k=k||{},I=ht.length;I--;k[ht[I]]=_);return k},"o"),t=[1,2],r=[1,3],c=[1,4],s=[2,4],i=[1,9],l=[1,11],h=[1,13],g=[1,14],n=[1,16],d=[1,17],y=[1,18],f=[1,24],E=[1,25],T=[1,26],w=[1,27],v=[1,28],N=[1,29],D=[1,30],R=[1,31],B=[1,32],O=[1,33],F=[1,34],q=[1,35],J=[1,36],z=[1,37],H=[1,38],U=[1,39],G=[1,41],W=[1,42],Q=[1,43],Z=[1,44],j=[1,45],A=[1,46],P=[1,4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,47,48,49,50,52,53,54,59,60,61,62,70],m=[4,5,16,50,52,53],L=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,50,52,53,54,59,60,61,62,70],at=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,49,50,52,53,54,59,60,61,62,70],tt=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,48,50,52,53,54,59,60,61,62,70],S=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,47,50,52,53,54,59,60,61,62,70],nt=[68,69,70],ct=[1,122],Rt={trace:(0,a.eW)(function(){},"trace"),yy:{},symbols_:{error:2,start:3,SPACE:4,NEWLINE:5,SD:6,document:7,line:8,statement:9,box_section:10,box_line:11,participant_statement:12,create:13,box:14,restOfLine:15,end:16,signal:17,autonumber:18,NUM:19,off:20,activate:21,actor:22,deactivate:23,note_statement:24,links_statement:25,link_statement:26,properties_statement:27,details_statement:28,title:29,legacy_title:30,acc_title:31,acc_title_value:32,acc_descr:33,acc_descr_value:34,acc_descr_multiline_value:35,loop:36,rect:37,opt:38,alt:39,else_sections:40,par:41,par_sections:42,par_over:43,critical:44,option_sections:45,break:46,option:47,and:48,else:49,participant:50,AS:51,participant_actor:52,destroy:53,note:54,placement:55,text2:56,over:57,actor_pair:58,links:59,link:60,properties:61,details:62,spaceList:63,",":64,left_of:65,right_of:66,signaltype:67,"+":68,"-":69,ACTOR:70,SOLID_OPEN_ARROW:71,DOTTED_OPEN_ARROW:72,SOLID_ARROW:73,BIDIRECTIONAL_SOLID_ARROW:74,DOTTED_ARROW:75,BIDIRECTIONAL_DOTTED_ARROW:76,SOLID_CROSS:77,DOTTED_CROSS:78,SOLID_POINT:79,DOTTED_POINT:80,TXT:81,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NEWLINE",6:"SD",13:"create",14:"box",15:"restOfLine",16:"end",18:"autonumber",19:"NUM",20:"off",21:"activate",23:"deactivate",29:"title",30:"legacy_title",31:"acc_title",32:"acc_title_value",33:"acc_descr",34:"acc_descr_value",35:"acc_descr_multiline_value",36:"loop",37:"rect",38:"opt",39:"alt",41:"par",43:"par_over",44:"critical",46:"break",47:"option",48:"and",49:"else",50:"participant",51:"AS",52:"participant_actor",53:"destroy",54:"note",57:"over",59:"links",60:"link",61:"properties",62:"details",64:",",65:"left_of",66:"right_of",68:"+",69:"-",70:"ACTOR",71:"SOLID_OPEN_ARROW",72:"DOTTED_OPEN_ARROW",73:"SOLID_ARROW",74:"BIDIRECTIONAL_SOLID_ARROW",75:"DOTTED_ARROW",76:"BIDIRECTIONAL_DOTTED_ARROW",77:"SOLID_CROSS",78:"DOTTED_CROSS",79:"SOLID_POINT",80:"DOTTED_POINT",81:"TXT"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[10,0],[10,2],[11,2],[11,1],[11,1],[9,1],[9,2],[9,4],[9,2],[9,4],[9,3],[9,3],[9,2],[9,3],[9,3],[9,2],[9,2],[9,2],[9,2],[9,2],[9,1],[9,1],[9,2],[9,2],[9,1],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[45,1],[45,4],[42,1],[42,4],[40,1],[40,4],[12,5],[12,3],[12,5],[12,3],[12,3],[24,4],[24,4],[25,3],[26,3],[27,3],[28,3],[63,2],[63,1],[58,3],[58,1],[55,1],[55,1],[17,5],[17,5],[17,4],[22,1],[67,1],[67,1],[67,1],[67,1],[67,1],[67,1],[67,1],[67,1],[67,1],[67,1],[56,1]],performAction:(0,a.eW)(function(_,k,I,b,M,p,bt){var u=p.length-1;switch(M){case 3:return b.apply(p[u]),p[u];case 4:case 9:case 8:case 13:this.$=[];break;case 5:case 10:p[u-1].push(p[u]),this.$=p[u-1];break;case 6:case 7:case 11:case 12:case 62:this.$=p[u];break;case 15:p[u].type="createParticipant",this.$=p[u];break;case 16:p[u-1].unshift({type:"boxStart",boxData:b.parseBoxData(p[u-2])}),p[u-1].push({type:"boxEnd",boxText:p[u-2]}),this.$=p[u-1];break;case 18:this.$={type:"sequenceIndex",sequenceIndex:Number(p[u-2]),sequenceIndexStep:Number(p[u-1]),sequenceVisible:!0,signalType:b.LINETYPE.AUTONUMBER};break;case 19:this.$={type:"sequenceIndex",sequenceIndex:Number(p[u-1]),sequenceIndexStep:1,sequenceVisible:!0,signalType:b.LINETYPE.AUTONUMBER};break;case 20:this.$={type:"sequenceIndex",sequenceVisible:!1,signalType:b.LINETYPE.AUTONUMBER};break;case 21:this.$={type:"sequenceIndex",sequenceVisible:!0,signalType:b.LINETYPE.AUTONUMBER};break;case 22:this.$={type:"activeStart",signalType:b.LINETYPE.ACTIVE_START,actor:p[u-1].actor};break;case 23:this.$={type:"activeEnd",signalType:b.LINETYPE.ACTIVE_END,actor:p[u-1].actor};break;case 29:b.setDiagramTitle(p[u].substring(6)),this.$=p[u].substring(6);break;case 30:b.setDiagramTitle(p[u].substring(7)),this.$=p[u].substring(7);break;case 31:this.$=p[u].trim(),b.setAccTitle(this.$);break;case 32:case 33:this.$=p[u].trim(),b.setAccDescription(this.$);break;case 34:p[u-1].unshift({type:"loopStart",loopText:b.parseMessage(p[u-2]),signalType:b.LINETYPE.LOOP_START}),p[u-1].push({type:"loopEnd",loopText:p[u-2],signalType:b.LINETYPE.LOOP_END}),this.$=p[u-1];break;case 35:p[u-1].unshift({type:"rectStart",color:b.parseMessage(p[u-2]),signalType:b.LINETYPE.RECT_START}),p[u-1].push({type:"rectEnd",color:b.parseMessage(p[u-2]),signalType:b.LINETYPE.RECT_END}),this.$=p[u-1];break;case 36:p[u-1].unshift({type:"optStart",optText:b.parseMessage(p[u-2]),signalType:b.LINETYPE.OPT_START}),p[u-1].push({type:"optEnd",optText:b.parseMessage(p[u-2]),signalType:b.LINETYPE.OPT_END}),this.$=p[u-1];break;case 37:p[u-1].unshift({type:"altStart",altText:b.parseMessage(p[u-2]),signalType:b.LINETYPE.ALT_START}),p[u-1].push({type:"altEnd",signalType:b.LINETYPE.ALT_END}),this.$=p[u-1];break;case 38:p[u-1].unshift({type:"parStart",parText:b.parseMessage(p[u-2]),signalType:b.LINETYPE.PAR_START}),p[u-1].push({type:"parEnd",signalType:b.LINETYPE.PAR_END}),this.$=p[u-1];break;case 39:p[u-1].unshift({type:"parStart",parText:b.parseMessage(p[u-2]),signalType:b.LINETYPE.PAR_OVER_START}),p[u-1].push({type:"parEnd",signalType:b.LINETYPE.PAR_END}),this.$=p[u-1];break;case 40:p[u-1].unshift({type:"criticalStart",criticalText:b.parseMessage(p[u-2]),signalType:b.LINETYPE.CRITICAL_START}),p[u-1].push({type:"criticalEnd",signalType:b.LINETYPE.CRITICAL_END}),this.$=p[u-1];break;case 41:p[u-1].unshift({type:"breakStart",breakText:b.parseMessage(p[u-2]),signalType:b.LINETYPE.BREAK_START}),p[u-1].push({type:"breakEnd",optText:b.parseMessage(p[u-2]),signalType:b.LINETYPE.BREAK_END}),this.$=p[u-1];break;case 43:this.$=p[u-3].concat([{type:"option",optionText:b.parseMessage(p[u-1]),signalType:b.LINETYPE.CRITICAL_OPTION},p[u]]);break;case 45:this.$=p[u-3].concat([{type:"and",parText:b.parseMessage(p[u-1]),signalType:b.LINETYPE.PAR_AND},p[u]]);break;case 47:this.$=p[u-3].concat([{type:"else",altText:b.parseMessage(p[u-1]),signalType:b.LINETYPE.ALT_ELSE},p[u]]);break;case 48:p[u-3].draw="participant",p[u-3].type="addParticipant",p[u-3].description=b.parseMessage(p[u-1]),this.$=p[u-3];break;case 49:p[u-1].draw="participant",p[u-1].type="addParticipant",this.$=p[u-1];break;case 50:p[u-3].draw="actor",p[u-3].type="addParticipant",p[u-3].description=b.parseMessage(p[u-1]),this.$=p[u-3];break;case 51:p[u-1].draw="actor",p[u-1].type="addParticipant",this.$=p[u-1];break;case 52:p[u-1].type="destroyParticipant",this.$=p[u-1];break;case 53:this.$=[p[u-1],{type:"addNote",placement:p[u-2],actor:p[u-1].actor,text:p[u]}];break;case 54:p[u-2]=[].concat(p[u-1],p[u-1]).slice(0,2),p[u-2][0]=p[u-2][0].actor,p[u-2][1]=p[u-2][1].actor,this.$=[p[u-1],{type:"addNote",placement:b.PLACEMENT.OVER,actor:p[u-2].slice(0,2),text:p[u]}];break;case 55:this.$=[p[u-1],{type:"addLinks",actor:p[u-1].actor,text:p[u]}];break;case 56:this.$=[p[u-1],{type:"addALink",actor:p[u-1].actor,text:p[u]}];break;case 57:this.$=[p[u-1],{type:"addProperties",actor:p[u-1].actor,text:p[u]}];break;case 58:this.$=[p[u-1],{type:"addDetails",actor:p[u-1].actor,text:p[u]}];break;case 61:this.$=[p[u-2],p[u]];break;case 63:this.$=b.PLACEMENT.LEFTOF;break;case 64:this.$=b.PLACEMENT.RIGHTOF;break;case 65:this.$=[p[u-4],p[u-1],{type:"addMessage",from:p[u-4].actor,to:p[u-1].actor,signalType:p[u-3],msg:p[u],activate:!0},{type:"activeStart",signalType:b.LINETYPE.ACTIVE_START,actor:p[u-1].actor}];break;case 66:this.$=[p[u-4],p[u-1],{type:"addMessage",from:p[u-4].actor,to:p[u-1].actor,signalType:p[u-3],msg:p[u]},{type:"activeEnd",signalType:b.LINETYPE.ACTIVE_END,actor:p[u-4].actor}];break;case 67:this.$=[p[u-3],p[u-1],{type:"addMessage",from:p[u-3].actor,to:p[u-1].actor,signalType:p[u-2],msg:p[u]}];break;case 68:this.$={type:"addParticipant",actor:p[u]};break;case 69:this.$=b.LINETYPE.SOLID_OPEN;break;case 70:this.$=b.LINETYPE.DOTTED_OPEN;break;case 71:this.$=b.LINETYPE.SOLID;break;case 72:this.$=b.LINETYPE.BIDIRECTIONAL_SOLID;break;case 73:this.$=b.LINETYPE.DOTTED;break;case 74:this.$=b.LINETYPE.BIDIRECTIONAL_DOTTED;break;case 75:this.$=b.LINETYPE.SOLID_CROSS;break;case 76:this.$=b.LINETYPE.DOTTED_CROSS;break;case 77:this.$=b.LINETYPE.SOLID_POINT;break;case 78:this.$=b.LINETYPE.DOTTED_POINT;break;case 79:this.$=b.parseMessage(p[u].trim().substring(1))}},"anonymous"),table:[{3:1,4:t,5:r,6:c},{1:[3]},{3:5,4:t,5:r,6:c},{3:6,4:t,5:r,6:c},e([1,4,5,13,14,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,50,52,53,54,59,60,61,62,70],s,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:i,5:l,8:8,9:10,12:12,13:h,14:g,17:15,18:n,21:d,22:40,23:y,24:19,25:20,26:21,27:22,28:23,29:f,30:E,31:T,33:w,35:v,36:N,37:D,38:R,39:B,41:O,43:F,44:q,46:J,50:z,52:H,53:U,54:G,59:W,60:Q,61:Z,62:j,70:A},e(P,[2,5]),{9:47,12:12,13:h,14:g,17:15,18:n,21:d,22:40,23:y,24:19,25:20,26:21,27:22,28:23,29:f,30:E,31:T,33:w,35:v,36:N,37:D,38:R,39:B,41:O,43:F,44:q,46:J,50:z,52:H,53:U,54:G,59:W,60:Q,61:Z,62:j,70:A},e(P,[2,7]),e(P,[2,8]),e(P,[2,14]),{12:48,50:z,52:H,53:U},{15:[1,49]},{5:[1,50]},{5:[1,53],19:[1,51],20:[1,52]},{22:54,70:A},{22:55,70:A},{5:[1,56]},{5:[1,57]},{5:[1,58]},{5:[1,59]},{5:[1,60]},e(P,[2,29]),e(P,[2,30]),{32:[1,61]},{34:[1,62]},e(P,[2,33]),{15:[1,63]},{15:[1,64]},{15:[1,65]},{15:[1,66]},{15:[1,67]},{15:[1,68]},{15:[1,69]},{15:[1,70]},{22:71,70:A},{22:72,70:A},{22:73,70:A},{67:74,71:[1,75],72:[1,76],73:[1,77],74:[1,78],75:[1,79],76:[1,80],77:[1,81],78:[1,82],79:[1,83],80:[1,84]},{55:85,57:[1,86],65:[1,87],66:[1,88]},{22:89,70:A},{22:90,70:A},{22:91,70:A},{22:92,70:A},e([5,51,64,71,72,73,74,75,76,77,78,79,80,81],[2,68]),e(P,[2,6]),e(P,[2,15]),e(m,[2,9],{10:93}),e(P,[2,17]),{5:[1,95],19:[1,94]},{5:[1,96]},e(P,[2,21]),{5:[1,97]},{5:[1,98]},e(P,[2,24]),e(P,[2,25]),e(P,[2,26]),e(P,[2,27]),e(P,[2,28]),e(P,[2,31]),e(P,[2,32]),e(L,s,{7:99}),e(L,s,{7:100}),e(L,s,{7:101}),e(at,s,{40:102,7:103}),e(tt,s,{42:104,7:105}),e(tt,s,{7:105,42:106}),e(S,s,{45:107,7:108}),e(L,s,{7:109}),{5:[1,111],51:[1,110]},{5:[1,113],51:[1,112]},{5:[1,114]},{22:117,68:[1,115],69:[1,116],70:A},e(nt,[2,69]),e(nt,[2,70]),e(nt,[2,71]),e(nt,[2,72]),e(nt,[2,73]),e(nt,[2,74]),e(nt,[2,75]),e(nt,[2,76]),e(nt,[2,77]),e(nt,[2,78]),{22:118,70:A},{22:120,58:119,70:A},{70:[2,63]},{70:[2,64]},{56:121,81:ct},{56:123,81:ct},{56:124,81:ct},{56:125,81:ct},{4:[1,128],5:[1,130],11:127,12:129,16:[1,126],50:z,52:H,53:U},{5:[1,131]},e(P,[2,19]),e(P,[2,20]),e(P,[2,22]),e(P,[2,23]),{4:i,5:l,8:8,9:10,12:12,13:h,14:g,16:[1,132],17:15,18:n,21:d,22:40,23:y,24:19,25:20,26:21,27:22,28:23,29:f,30:E,31:T,33:w,35:v,36:N,37:D,38:R,39:B,41:O,43:F,44:q,46:J,50:z,52:H,53:U,54:G,59:W,60:Q,61:Z,62:j,70:A},{4:i,5:l,8:8,9:10,12:12,13:h,14:g,16:[1,133],17:15,18:n,21:d,22:40,23:y,24:19,25:20,26:21,27:22,28:23,29:f,30:E,31:T,33:w,35:v,36:N,37:D,38:R,39:B,41:O,43:F,44:q,46:J,50:z,52:H,53:U,54:G,59:W,60:Q,61:Z,62:j,70:A},{4:i,5:l,8:8,9:10,12:12,13:h,14:g,16:[1,134],17:15,18:n,21:d,22:40,23:y,24:19,25:20,26:21,27:22,28:23,29:f,30:E,31:T,33:w,35:v,36:N,37:D,38:R,39:B,41:O,43:F,44:q,46:J,50:z,52:H,53:U,54:G,59:W,60:Q,61:Z,62:j,70:A},{16:[1,135]},{4:i,5:l,8:8,9:10,12:12,13:h,14:g,16:[2,46],17:15,18:n,21:d,22:40,23:y,24:19,25:20,26:21,27:22,28:23,29:f,30:E,31:T,33:w,35:v,36:N,37:D,38:R,39:B,41:O,43:F,44:q,46:J,49:[1,136],50:z,52:H,53:U,54:G,59:W,60:Q,61:Z,62:j,70:A},{16:[1,137]},{4:i,5:l,8:8,9:10,12:12,13:h,14:g,16:[2,44],17:15,18:n,21:d,22:40,23:y,24:19,25:20,26:21,27:22,28:23,29:f,30:E,31:T,33:w,35:v,36:N,37:D,38:R,39:B,41:O,43:F,44:q,46:J,48:[1,138],50:z,52:H,53:U,54:G,59:W,60:Q,61:Z,62:j,70:A},{16:[1,139]},{16:[1,140]},{4:i,5:l,8:8,9:10,12:12,13:h,14:g,16:[2,42],17:15,18:n,21:d,22:40,23:y,24:19,25:20,26:21,27:22,28:23,29:f,30:E,31:T,33:w,35:v,36:N,37:D,38:R,39:B,41:O,43:F,44:q,46:J,47:[1,141],50:z,52:H,53:U,54:G,59:W,60:Q,61:Z,62:j,70:A},{4:i,5:l,8:8,9:10,12:12,13:h,14:g,16:[1,142],17:15,18:n,21:d,22:40,23:y,24:19,25:20,26:21,27:22,28:23,29:f,30:E,31:T,33:w,35:v,36:N,37:D,38:R,39:B,41:O,43:F,44:q,46:J,50:z,52:H,53:U,54:G,59:W,60:Q,61:Z,62:j,70:A},{15:[1,143]},e(P,[2,49]),{15:[1,144]},e(P,[2,51]),e(P,[2,52]),{22:145,70:A},{22:146,70:A},{56:147,81:ct},{56:148,81:ct},{56:149,81:ct},{64:[1,150],81:[2,62]},{5:[2,55]},{5:[2,79]},{5:[2,56]},{5:[2,57]},{5:[2,58]},e(P,[2,16]),e(m,[2,10]),{12:151,50:z,52:H,53:U},e(m,[2,12]),e(m,[2,13]),e(P,[2,18]),e(P,[2,34]),e(P,[2,35]),e(P,[2,36]),e(P,[2,37]),{15:[1,152]},e(P,[2,38]),{15:[1,153]},e(P,[2,39]),e(P,[2,40]),{15:[1,154]},e(P,[2,41]),{5:[1,155]},{5:[1,156]},{56:157,81:ct},{56:158,81:ct},{5:[2,67]},{5:[2,53]},{5:[2,54]},{22:159,70:A},e(m,[2,11]),e(at,s,{7:103,40:160}),e(tt,s,{7:105,42:161}),e(S,s,{7:108,45:162}),e(P,[2,48]),e(P,[2,50]),{5:[2,65]},{5:[2,66]},{81:[2,61]},{16:[2,47]},{16:[2,45]},{16:[2,43]}],defaultActions:{5:[2,1],6:[2,2],87:[2,63],88:[2,64],121:[2,55],122:[2,79],123:[2,56],124:[2,57],125:[2,58],147:[2,67],148:[2,53],149:[2,54],157:[2,65],158:[2,66],159:[2,61],160:[2,47],161:[2,45],162:[2,43]},parseError:(0,a.eW)(function(_,k){if(!k.recoverable){var I=new Error(_);throw I.hash=k,I}this.trace(_)},"parseError"),parse:(0,a.eW)(function(_){var k=this,I=[0],b=[],M=[null],p=[],bt=this.table,u="",vt=0,re=0,ae=0,Ke=2,ie=1,Ge=p.slice.call(arguments,1),V=Object.create(this.lexer),ut={yy:{}};for(var Ot in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Ot)&&(ut.yy[Ot]=this.yy[Ot]);V.setInput(_,ut.yy),ut.yy.lexer=V,ut.yy.parser=this,typeof V.yylloc>"u"&&(V.yylloc={});var Yt=V.yylloc;p.push(Yt);var Ze=V.options&&V.options.ranges;function Xe($){I.length=I.length-2*$,M.length=M.length-$,p.length=p.length-$}function ne(){var $;return"number"!=typeof($=b.pop()||V.lex()||ie)&&($ instanceof Array&&($=(b=$).pop()),$=k.symbols_[$]||$),$}"function"==typeof ut.yy.parseError?this.parseError=ut.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError,(0,a.eW)(Xe,"popStack"),(0,a.eW)(ne,"lex");for(var K,Ct,gt,et,Bt,kt,lt,oe,It,Tt={};;){if(gt=I[I.length-1],this.defaultActions[gt]?et=this.defaultActions[gt]:((null===K||typeof K>"u")&&(K=ne()),et=bt[gt]&&bt[gt][K]),typeof et>"u"||!et.length||!et[0]){var Vt="";for(kt in It=[],bt[gt])this.terminals_[kt]&&kt>Ke&&It.push("'"+this.terminals_[kt]+"'");Vt=V.showPosition?"Parse error on line "+(vt+1)+":\n"+V.showPosition()+"\nExpecting "+It.join(", ")+", got '"+(this.terminals_[K]||K)+"'":"Parse error on line "+(vt+1)+": Unexpected "+(K==ie?"end of input":"'"+(this.terminals_[K]||K)+"'"),this.parseError(Vt,{text:V.match,token:this.terminals_[K]||K,line:V.yylineno,loc:Yt,expected:It})}if(et[0]instanceof Array&&et.length>1)throw new Error("Parse Error: multiple actions possible at state: "+gt+", token: "+K);switch(et[0]){case 1:I.push(K),M.push(V.yytext),p.push(V.yylloc),I.push(et[1]),K=null,Ct?(K=Ct,Ct=null):(re=V.yyleng,u=V.yytext,vt=V.yylineno,Yt=V.yylloc,ae>0&&ae--);break;case 2:if(lt=this.productions_[et[1]][1],Tt.$=M[M.length-lt],Tt._$={first_line:p[p.length-(lt||1)].first_line,last_line:p[p.length-1].last_line,first_column:p[p.length-(lt||1)].first_column,last_column:p[p.length-1].last_column},Ze&&(Tt._$.range=[p[p.length-(lt||1)].range[0],p[p.length-1].range[1]]),typeof(Bt=this.performAction.apply(Tt,[u,re,vt,ut.yy,et[1],M,p].concat(Ge)))<"u")return Bt;lt&&(I=I.slice(0,-1*lt*2),M=M.slice(0,-1*lt),p=p.slice(0,-1*lt)),I.push(this.productions_[et[1]][0]),M.push(Tt.$),p.push(Tt._$),oe=bt[I[I.length-2]][I[I.length-1]],I.push(oe);break;case 3:return!0}}return!0},"parse")},Ue=function(){return{EOF:1,parseError:(0,a.eW)(function(k,I){if(!this.yy.parser)throw new Error(k);this.yy.parser.parseError(k,I)},"parseError"),setInput:(0,a.eW)(function(_,k){return this.yy=k||this.yy||{},this._input=_,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},"setInput"),input:(0,a.eW)(function(){var _=this._input[0];return this.yytext+=_,this.yyleng++,this.offset++,this.match+=_,this.matched+=_,_.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),_},"input"),unput:(0,a.eW)(function(_){var k=_.length,I=_.split(/(?:\r\n?|\n)/g);this._input=_+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-k),this.offset-=k;var b=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),I.length-1&&(this.yylineno-=I.length-1);var M=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:I?(I.length===b.length?this.yylloc.first_column:0)+b[b.length-I.length].length-I[0].length:this.yylloc.first_column-k},this.options.ranges&&(this.yylloc.range=[M[0],M[0]+this.yyleng-k]),this.yyleng=this.yytext.length,this},"unput"),more:(0,a.eW)(function(){return this._more=!0,this},"more"),reject:(0,a.eW)(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).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},"reject"),less:(0,a.eW)(function(_){this.unput(this.match.slice(_))},"less"),pastInput:(0,a.eW)(function(){var _=this.matched.substr(0,this.matched.length-this.match.length);return(_.length>20?"...":"")+_.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:(0,a.eW)(function(){var _=this.match;return _.length<20&&(_+=this._input.substr(0,20-_.length)),(_.substr(0,20)+(_.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:(0,a.eW)(function(){var _=this.pastInput(),k=new Array(_.length+1).join("-");return _+this.upcomingInput()+"\n"+k+"^"},"showPosition"),test_match:(0,a.eW)(function(_,k){var I,b,M;if(this.options.backtrack_lexer&&(M={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&&(M.yylloc.range=this.yylloc.range.slice(0))),(b=_[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=b.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:b?b[b.length-1].length-b[b.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+_[0].length},this.yytext+=_[0],this.match+=_[0],this.matches=_,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(_[0].length),this.matched+=_[0],I=this.performAction.call(this,this.yy,this,k,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),I)return I;if(this._backtrack){for(var p in M)this[p]=M[p];return!1}return!1},"test_match"),next:(0,a.eW)(function(){if(this.done)return this.EOF;var _,k,I,b;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var M=this._currentRules(),p=0;p<M.length;p++)if((I=this._input.match(this.rules[M[p]]))&&(!k||I[0].length>k[0].length)){if(k=I,b=p,this.options.backtrack_lexer){if(!1!==(_=this.test_match(I,M[p])))return _;if(this._backtrack){k=!1;continue}return!1}if(!this.options.flex)break}return k?!1!==(_=this.test_match(k,M[b]))&&_:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:(0,a.eW)(function(){return this.next()||this.lex()},"lex"),begin:(0,a.eW)(function(k){this.conditionStack.push(k)},"begin"),popState:(0,a.eW)(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:(0,a.eW)(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:(0,a.eW)(function(k){return(k=this.conditionStack.length-1-Math.abs(k||0))>=0?this.conditionStack[k]:"INITIAL"},"topState"),pushState:(0,a.eW)(function(k){this.begin(k)},"pushState"),stateStackSize:(0,a.eW)(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:(0,a.eW)(function(k,I,b,M){switch(b){case 0:case 51:case 66:return 5;case 1:case 2:case 3:case 4:case 5:break;case 6:return 19;case 7:return this.begin("LINE"),14;case 8:return this.begin("ID"),50;case 9:return this.begin("ID"),52;case 10:return 13;case 11:return this.begin("ID"),53;case 12:return I.yytext=I.yytext.trim(),this.begin("ALIAS"),70;case 13:return this.popState(),this.popState(),this.begin("LINE"),51;case 14:return this.popState(),this.popState(),5;case 15:return this.begin("LINE"),36;case 16:return this.begin("LINE"),37;case 17:return this.begin("LINE"),38;case 18:return this.begin("LINE"),39;case 19:return this.begin("LINE"),49;case 20:return this.begin("LINE"),41;case 21:return this.begin("LINE"),43;case 22:return this.begin("LINE"),48;case 23:return this.begin("LINE"),44;case 24:return this.begin("LINE"),47;case 25:return this.begin("LINE"),46;case 26:return this.popState(),15;case 27:return 16;case 28:return 65;case 29:return 66;case 30:return 59;case 31:return 60;case 32:return 61;case 33:return 62;case 34:return 57;case 35:return 54;case 36:return this.begin("ID"),21;case 37:return this.begin("ID"),23;case 38:return 29;case 39:return 30;case 40:return this.begin("acc_title"),31;case 41:return this.popState(),"acc_title_value";case 42:return this.begin("acc_descr"),33;case 43:return this.popState(),"acc_descr_value";case 44:this.begin("acc_descr_multiline");break;case 45:this.popState();break;case 46:return"acc_descr_multiline_value";case 47:return 6;case 48:return 18;case 49:return 20;case 50:return 64;case 52:return I.yytext=I.yytext.trim(),70;case 53:return 73;case 54:return 74;case 55:return 75;case 56:return 76;case 57:return 71;case 58:return 72;case 59:return 77;case 60:return 78;case 61:return 79;case 62:return 80;case 63:return 81;case 64:return 68;case 65:return 69;case 67:return"INVALID"}},"anonymous"),rules:[/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:((?!\n)\s)+)/i,/^(?:#[^\n]*)/i,/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[0-9]+(?=[ \n]+))/i,/^(?:box\b)/i,/^(?:participant\b)/i,/^(?:actor\b)/i,/^(?:create\b)/i,/^(?:destroy\b)/i,/^(?:[^\<->\->:\n,;]+?([\-]*[^\<->\->:\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,/^(?:par_over\b)/i,/^(?:and\b)/i,/^(?:critical\b)/i,/^(?:option\b)/i,/^(?:break\b)/i,/^(?:(?:[:]?(?:no)?wrap)?[^#\n;]*)/i,/^(?:end\b)/i,/^(?:left of\b)/i,/^(?:right of\b)/i,/^(?:links\b)/i,/^(?:link\b)/i,/^(?:properties\b)/i,/^(?:details\b)/i,/^(?:over\b)/i,/^(?:note\b)/i,/^(?:activate\b)/i,/^(?:deactivate\b)/i,/^(?:title\s[^#\n;]+)/i,/^(?:title:\s[^#\n;]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:sequenceDiagram\b)/i,/^(?:autonumber\b)/i,/^(?:off\b)/i,/^(?:,)/i,/^(?:;)/i,/^(?:[^\+\<->\->:\n,;]+((?!(-x|--x|-\)|--\)))[\-]*[^\+\<->\->:\n,;]+)*)/i,/^(?:->>)/i,/^(?:<<->>)/i,/^(?:-->>)/i,/^(?:<<-->>)/i,/^(?:->)/i,/^(?:-->)/i,/^(?:-[x])/i,/^(?:--[x])/i,/^(?:-[\)])/i,/^(?:--[\)])/i,/^(?::(?:(?:no)?wrap)?[^#\n;]+)/i,/^(?:\+)/i,/^(?:-)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[45,46],inclusive:!1},acc_descr:{rules:[43],inclusive:!1},acc_title:{rules:[41],inclusive:!1},ID:{rules:[2,3,12],inclusive:!1},ALIAS:{rules:[2,3,13,14],inclusive:!1},LINE:{rules:[2,3,26],inclusive:!1},INITIAL:{rules:[0,1,3,4,5,6,7,8,9,10,11,15,16,17,18,19,20,21,22,23,24,25,27,28,29,30,31,32,33,34,35,36,37,38,39,40,42,44,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67],inclusive:!0}}}}();function wt(){this.yy={}}return Rt.lexer=Ue,(0,a.eW)(wt,"Parser"),wt.prototype=Rt,Rt.Parser=wt,new wt}();Lt.parser=Lt;var le=Lt,he={SOLID:0,DOTTED:1,NOTE:2,SOLID_CROSS:3,DOTTED_CROSS:4,SOLID_OPEN:5,DOTTED_OPEN:6,LOOP_START:10,LOOP_END:11,ALT_START:12,ALT_ELSE:13,ALT_END:14,OPT_START:15,OPT_END:16,ACTIVE_START:17,ACTIVE_END:18,PAR_START:19,PAR_AND:20,PAR_END:21,RECT_START:22,RECT_END:23,SOLID_POINT:24,DOTTED_POINT:25,AUTONUMBER:26,CRITICAL_START:27,CRITICAL_OPTION:28,CRITICAL_END:29,BREAK_START:30,BREAK_END:31,PAR_OVER_START:32,BIDIRECTIONAL_SOLID:33,BIDIRECTIONAL_DOTTED:34},de={FILLED:0,OPEN:1},pe={LEFTOF:0,RIGHTOF:1,OVER:2},ue=(yt=class{constructor(){this.state=new ce.A(()=>({prevActor:void 0,actors:new Map,createdActors:new Map,destroyedActors:new Map,boxes:[],messages:[],notes:[],sequenceNumbersEnabled:!1,wrapEnabled:void 0,currentBox:void 0,lastCreated:void 0,lastDestroyed:void 0})),this.setAccTitle=a.GN,this.setAccDescription=a.U$,this.setDiagramTitle=a.g2,this.getAccTitle=a.eu,this.getAccDescription=a.Mx,this.getDiagramTitle=a.Kr,this.apply=this.apply.bind(this),this.parseBoxData=this.parseBoxData.bind(this),this.parseMessage=this.parseMessage.bind(this),this.clear(),this.setWrap((0,a.nV)().wrap),this.LINETYPE=he,this.ARROWTYPE=de,this.PLACEMENT=pe}addBox(t){this.state.records.boxes.push({name:t.text,wrap:t.wrap??this.autoWrap(),fill:t.color,actorKeys:[]}),this.state.records.currentBox=this.state.records.boxes.slice(-1)[0]}addActor(t,r,c,s){let i=this.state.records.currentBox;const l=this.state.records.actors.get(t);if(l){if(this.state.records.currentBox&&l.box&&this.state.records.currentBox!==l.box)throw new Error(`A same participant should only be defined in one Box: ${l.name} can't be in '${l.box.name}' and in '${this.state.records.currentBox.name}' at the same time.`);if(i=l.box?l.box:this.state.records.currentBox,l.box=i,l&&r===l.name&&null==c)return}if(null==c?.text&&(c={text:r,type:s}),(null==s||null==c.text)&&(c={text:r,type:s}),this.state.records.actors.set(t,{box:i,name:r,description:c.text,wrap:c.wrap??this.autoWrap(),prevActor:this.state.records.prevActor,links:{},properties:{},actorCnt:null,rectData:null,type:s??"participant"}),this.state.records.prevActor){const h=this.state.records.actors.get(this.state.records.prevActor);h&&(h.nextActor=t)}this.state.records.currentBox&&this.state.records.currentBox.actorKeys.push(t),this.state.records.prevActor=t}activationCount(t){let r,c=0;if(!t)return 0;for(r=0;r<this.state.records.messages.length;r++)this.state.records.messages[r].type===this.LINETYPE.ACTIVE_START&&this.state.records.messages[r].from===t&&c++,this.state.records.messages[r].type===this.LINETYPE.ACTIVE_END&&this.state.records.messages[r].from===t&&c--;return c}addMessage(t,r,c,s){this.state.records.messages.push({id:this.state.records.messages.length.toString(),from:t,to:r,message:c.text,wrap:c.wrap??this.autoWrap(),answer:s})}addSignal(t,r,c,s,i=!1){if(s===this.LINETYPE.ACTIVE_END&&this.activationCount(t??"")<1){const h=new Error("Trying to inactivate an inactive participant ("+t+")");throw h.hash={text:"->>-",token:"->>-",line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["'ACTIVE_PARTICIPANT'"]},h}return this.state.records.messages.push({id:this.state.records.messages.length.toString(),from:t,to:r,message:c?.text??"",wrap:c?.wrap??this.autoWrap(),type:s,activate:i}),!0}hasAtLeastOneBox(){return this.state.records.boxes.length>0}hasAtLeastOneBoxWithTitle(){return this.state.records.boxes.some(t=>t.name)}getMessages(){return this.state.records.messages}getBoxes(){return this.state.records.boxes}getActors(){return this.state.records.actors}getCreatedActors(){return this.state.records.createdActors}getDestroyedActors(){return this.state.records.destroyedActors}getActor(t){return this.state.records.actors.get(t)}getActorKeys(){return[...this.state.records.actors.keys()]}enableSequenceNumbers(){this.state.records.sequenceNumbersEnabled=!0}disableSequenceNumbers(){this.state.records.sequenceNumbersEnabled=!1}showSequenceNumbers(){return this.state.records.sequenceNumbersEnabled}setWrap(t){this.state.records.wrapEnabled=t}extractWrap(t){if(void 0===t)return{};t=t.trim();const r=null!==/^:?wrap:/.exec(t)||null===/^:?nowrap:/.exec(t)&&void 0;return{cleanedText:(void 0===r?t:t.replace(/^:?(?:no)?wrap:/,"")).trim(),wrap:r}}autoWrap(){return void 0!==this.state.records.wrapEnabled?this.state.records.wrapEnabled:(0,a.nV)().sequence?.wrap??!1}clear(){this.state.reset(),(0,a.ZH)()}parseMessage(t){const r=t.trim(),{wrap:c,cleanedText:s}=this.extractWrap(r),i={text:s,wrap:c};return a.cM.debug(`parseMessage: ${JSON.stringify(i)}`),i}parseBoxData(t){const r=/^((?:rgba?|hsla?)\s*\(.*\)|\w*)(.*)$/.exec(t);let c=r?.[1]?r[1].trim():"transparent",s=r?.[2]?r[2].trim():void 0;if(window?.CSS)window.CSS.supports("color",c)||(c="transparent",s=t.trim());else{const h=(new Option).style;h.color=c,h.color!==c&&(c="transparent",s=t.trim())}const{wrap:i,cleanedText:l}=this.extractWrap(s);return{text:l?(0,a.oO)(l,(0,a.nV)()):void 0,color:c,wrap:i}}addNote(t,r,c){const s={actor:t,placement:r,message:c.text,wrap:c.wrap??this.autoWrap()},i=[].concat(t,t);this.state.records.notes.push(s),this.state.records.messages.push({id:this.state.records.messages.length.toString(),from:i[0],to:i[1],message:c.text,wrap:c.wrap??this.autoWrap(),type:this.LINETYPE.NOTE,placement:r})}addLinks(t,r){const c=this.getActor(t);try{let s=(0,a.oO)(r.text,(0,a.nV)());s=s.replace(/&equals;/g,"="),s=s.replace(/&amp;/g,"&");const i=JSON.parse(s);this.insertLinks(c,i)}catch(s){a.cM.error("error while parsing actor link text",s)}}addALink(t,r){const c=this.getActor(t);try{const s={};let i=(0,a.oO)(r.text,(0,a.nV)());const l=i.indexOf("@");i=i.replace(/&equals;/g,"="),i=i.replace(/&amp;/g,"&");const h=i.slice(0,l-1).trim(),g=i.slice(l+1).trim();s[h]=g,this.insertLinks(c,s)}catch(s){a.cM.error("error while parsing actor link text",s)}}insertLinks(t,r){if(null==t.links)t.links=r;else for(const c in r)t.links[c]=r[c]}addProperties(t,r){const c=this.getActor(t);try{const s=(0,a.oO)(r.text,(0,a.nV)()),i=JSON.parse(s);this.insertProperties(c,i)}catch(s){a.cM.error("error while parsing actor properties text",s)}}insertProperties(t,r){if(null==t.properties)t.properties=r;else for(const c in r)t.properties[c]=r[c]}boxEnd(){this.state.records.currentBox=void 0}addDetails(t,r){const c=this.getActor(t),s=document.getElementById(r.text);try{const i=s.innerHTML,l=JSON.parse(i);l.properties&&this.insertProperties(c,l.properties),l.links&&this.insertLinks(c,l.links)}catch(i){a.cM.error("error while parsing actor details text",i)}}getActorProperty(t,r){if(void 0!==t?.properties)return t.properties[r]}apply(t){if(Array.isArray(t))t.forEach(r=>{this.apply(r)});else switch(t.type){case"sequenceIndex":this.state.records.messages.push({id:this.state.records.messages.length.toString(),from:void 0,to:void 0,message:{start:t.sequenceIndex,step:t.sequenceIndexStep,visible:t.sequenceVisible},wrap:!1,type:t.signalType});break;case"addParticipant":this.addActor(t.actor,t.actor,t.description,t.draw);break;case"createParticipant":if(this.state.records.actors.has(t.actor))throw new Error("It is not possible to have actors with the same id, even if one is destroyed before the next is created. Use 'AS' aliases to simulate the behavior");this.state.records.lastCreated=t.actor,this.addActor(t.actor,t.actor,t.description,t.draw),this.state.records.createdActors.set(t.actor,this.state.records.messages.length);break;case"destroyParticipant":this.state.records.lastDestroyed=t.actor,this.state.records.destroyedActors.set(t.actor,this.state.records.messages.length);break;case"activeStart":case"activeEnd":this.addSignal(t.actor,void 0,void 0,t.signalType);break;case"addNote":this.addNote(t.actor,t.placement,t.text);break;case"addLinks":this.addLinks(t.actor,t.text);break;case"addALink":this.addALink(t.actor,t.text);break;case"addProperties":this.addProperties(t.actor,t.text);break;case"addDetails":this.addDetails(t.actor,t.text);break;case"addMessage":if(this.state.records.lastCreated){if(t.to!==this.state.records.lastCreated)throw new Error("The created participant "+this.state.records.lastCreated.name+" does not have an associated creating message after its declaration. Please check the sequence diagram.");this.state.records.lastCreated=void 0}else if(this.state.records.lastDestroyed){if(t.to!==this.state.records.lastDestroyed&&t.from!==this.state.records.lastDestroyed)throw new Error("The destroyed participant "+this.state.records.lastDestroyed.name+" does not have an associated destroying message after its declaration. Please check the sequence diagram.");this.state.records.lastDestroyed=void 0}this.addSignal(t.from,t.to,t.msg,t.signalType,t.activate);break;case"boxStart":this.addBox(t.boxData);break;case"boxEnd":this.boxEnd();break;case"loopStart":this.addSignal(void 0,void 0,t.loopText,t.signalType);break;case"loopEnd":case"rectEnd":case"optEnd":case"altEnd":case"parEnd":case"criticalEnd":case"breakEnd":this.addSignal(void 0,void 0,void 0,t.signalType);break;case"rectStart":this.addSignal(void 0,void 0,t.color,t.signalType);break;case"optStart":this.addSignal(void 0,void 0,t.optText,t.signalType);break;case"altStart":case"else":this.addSignal(void 0,void 0,t.altText,t.signalType);break;case"setAccTitle":(0,a.GN)(t.text);break;case"parStart":case"and":this.addSignal(void 0,void 0,t.parText,t.signalType);break;case"criticalStart":this.addSignal(void 0,void 0,t.criticalText,t.signalType);break;case"option":this.addSignal(void 0,void 0,t.optionText,t.signalType);break;case"breakStart":this.addSignal(void 0,void 0,t.breakText,t.signalType)}}getConfig(){return(0,a.nV)().sequence}},__name(yt,"SequenceDB"),yt),fe=(0,a.eW)(e=>`.actor {\n stroke: ${e.actorBorder};\n fill: ${e.actorBkg};\n }\n\n text.actor > tspan {\n fill: ${e.actorTextColor};\n stroke: none;\n }\n\n .actor-line {\n stroke: ${e.actorLineColor};\n }\n\n .messageLine0 {\n stroke-width: 1.5;\n stroke-dasharray: none;\n stroke: ${e.signalColor};\n }\n\n .messageLine1 {\n stroke-width: 1.5;\n stroke-dasharray: 2, 2;\n stroke: ${e.signalColor};\n }\n\n #arrowhead path {\n fill: ${e.signalColor};\n stroke: ${e.signalColor};\n }\n\n .sequenceNumber {\n fill: ${e.sequenceNumberColor};\n }\n\n #sequencenumber {\n fill: ${e.signalColor};\n }\n\n #crosshead path {\n fill: ${e.signalColor};\n stroke: ${e.signalColor};\n }\n\n .messageText {\n fill: ${e.signalTextColor};\n stroke: none;\n }\n\n .labelBox {\n stroke: ${e.labelBoxBorderColor};\n fill: ${e.labelBoxBkgColor};\n }\n\n .labelText, .labelText > tspan {\n fill: ${e.labelTextColor};\n stroke: none;\n }\n\n .loopText, .loopText > tspan {\n fill: ${e.loopTextColor};\n stroke: none;\n }\n\n .loopLine {\n stroke-width: 2px;\n stroke-dasharray: 2, 2;\n stroke: ${e.labelBoxBorderColor};\n fill: ${e.labelBoxBorderColor};\n }\n\n .note {\n //stroke: #decc93;\n stroke: ${e.noteBorderColor};\n fill: ${e.noteBkgColor};\n }\n\n .noteText, .noteText > tspan {\n fill: ${e.noteTextColor};\n stroke: none;\n }\n\n .activation0 {\n fill: ${e.activationBkgColor};\n stroke: ${e.activationBorderColor};\n }\n\n .activation1 {\n fill: ${e.activationBkgColor};\n stroke: ${e.activationBorderColor};\n }\n\n .activation2 {\n fill: ${e.activationBkgColor};\n stroke: ${e.activationBorderColor};\n }\n\n .actorPopupMenu {\n position: absolute;\n }\n\n .actorPopupMenuPanel {\n position: absolute;\n fill: ${e.actorBkg};\n box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);\n filter: drop-shadow(3px 5px 2px rgb(0 0 0 / 0.4));\n}\n .actor-man line {\n stroke: ${e.actorBorder};\n fill: ${e.actorBkg};\n }\n .actor-man circle, line {\n stroke: ${e.actorBorder};\n fill: ${e.actorBkg};\n stroke-width: 2px;\n }\n`,"getStyles"),zt="actor-top",Ht="actor-bottom",Ut="actor-man",Pt=(0,a.eW)(function(e,t){return(0,st.Mu)(e,t)},"drawRect"),Te=(0,a.eW)(function(e,t,r,c,s){if(void 0===t.links||null===t.links||0===Object.keys(t.links).length)return{height:0,width:0};const i=t.links,l=t.actorCnt,h=t.rectData;var g="none";s&&(g="block !important");const n=e.append("g");n.attr("id","actor"+l+"_popup"),n.attr("class","actorPopupMenu"),n.attr("display",g);var d="";void 0!==h.class&&(d=" "+h.class);let y=h.width>r?h.width:r;const f=n.append("rect");if(f.attr("class","actorPopupMenuPanel"+d),f.attr("x",h.x),f.attr("y",h.height),f.attr("fill",h.fill),f.attr("stroke",h.stroke),f.attr("width",y),f.attr("height",h.height),f.attr("rx",h.rx),f.attr("ry",h.ry),null!=i){var E=20;for(let v in i){var T=n.append("a"),w=(0,qt.N)(i[v]);T.attr("xlink:href",w),T.attr("target","_blank"),De(c)(v,T,h.x+10,h.height+E,y,20,{class:"actor"},c),E+=30}}return f.attr("height",E),{height:h.height+E,width:y}},"drawPopup"),ye=(0,a.eW)(function(e){return"var pu = document.getElementById('"+e+"'); if (pu != null) { pu.style.display = pu.style.display == 'block' ? 'none' : 'block'; }"},"popupMenuToggle"),mt=(0,a.eW)(function(){var e=(0,X.Z)(function*(t,r,c=null){let s=t.append("foreignObject");const i=yield(0,a.uT)(r.text,(0,a.iE)()),h=s.append("xhtml:div").attr("style","width: fit-content;").attr("xmlns","http://www.w3.org/1999/xhtml").html(i).node().getBoundingClientRect();if(s.attr("height",Math.round(h.height)).attr("width",Math.round(h.width)),"noteText"===r.class){const g=t.node().firstChild;g.setAttribute("height",h.height+2*r.textMargin);const n=g.getBBox();s.attr("x",Math.round(n.x+n.width/2-h.width/2)).attr("y",Math.round(n.y+n.height/2-h.height/2))}else if(c){let{startx:g,stopx:n,starty:d}=c;if(g>n){const y=g;g=n,n=y}s.attr("x",Math.round(g+Math.abs(g-n)/2-h.width/2)),"loopText"===r.class?s.attr("y",Math.round(d)):s.attr("y",Math.round(d-h.height))}return[s]});return function(t,r){return e.apply(this,arguments)}}(),"drawKatex"),ft=(0,a.eW)(function(e,t){let r=0,c=0;const s=t.text.split(a.SY.lineBreakRegex),[i,l]=(0,Y.VG)(t.fontSize);let h=[],g=0,n=(0,a.eW)(()=>t.y,"yfunc");if(void 0!==t.valign&&void 0!==t.textMargin&&t.textMargin>0)switch(t.valign){case"top":case"start":n=(0,a.eW)(()=>Math.round(t.y+t.textMargin),"yfunc");break;case"middle":case"center":n=(0,a.eW)(()=>Math.round(t.y+(r+c+t.textMargin)/2),"yfunc");break;case"bottom":case"end":n=(0,a.eW)(()=>Math.round(t.y+(r+c+2*t.textMargin)-t.textMargin),"yfunc")}if(void 0!==t.anchor&&void 0!==t.textMargin&&void 0!==t.width)switch(t.anchor){case"left":case"start":t.x=Math.round(t.x+t.textMargin),t.anchor="start",t.dominantBaseline="middle",t.alignmentBaseline="middle";break;case"middle":case"center":t.x=Math.round(t.x+t.width/2),t.anchor="middle",t.dominantBaseline="middle",t.alignmentBaseline="middle";break;case"right":case"end":t.x=Math.round(t.x+t.width-t.textMargin),t.anchor="end",t.dominantBaseline="middle",t.alignmentBaseline="middle"}for(let[d,y]of s.entries()){void 0!==t.textMargin&&0===t.textMargin&&void 0!==i&&(g=d*i);const f=e.append("text");f.attr("x",t.x),f.attr("y",n()),void 0!==t.anchor&&f.attr("text-anchor",t.anchor).attr("dominant-baseline",t.dominantBaseline).attr("alignment-baseline",t.alignmentBaseline),void 0!==t.fontFamily&&f.style("font-family",t.fontFamily),void 0!==l&&f.style("font-size",l),void 0!==t.fontWeight&&f.style("font-weight",t.fontWeight),void 0!==t.fill&&f.attr("fill",t.fill),void 0!==t.class&&f.attr("class",t.class),void 0!==t.dy?f.attr("dy",t.dy):0!==g&&f.attr("dy",g);const E=y||Y.$m;if(t.tspan){const T=f.append("tspan");T.attr("x",t.x),void 0!==t.fill&&T.attr("fill",t.fill),T.text(E)}else f.text(E);void 0!==t.valign&&void 0!==t.textMargin&&t.textMargin>0&&(c+=(f._groups||f)[0][0].getBBox().height,r=c),h.push(f)}return h},"drawText"),Kt=(0,a.eW)(function(e,t){function r(s,i,l,h,g){return s+","+i+" "+(s+l)+","+i+" "+(s+l)+","+(i+h-g)+" "+(s+l-1.2*g)+","+(i+h)+" "+s+","+(i+h)}(0,a.eW)(r,"genPoints");const c=e.append("polygon");return c.attr("points",r(t.x,t.y,t.width,t.height,7)),c.attr("class","labelBox"),t.y=t.y+t.height/2,ft(e,t),c},"drawLabel"),it=-1,Gt=(0,a.eW)((e,t,r,c)=>{!e.select||r.forEach(s=>{const i=t.get(s),l=e.select("#actor"+i.actorCnt);!c.mirrorActors&&i.stopy?l.attr("y2",i.stopy+i.height/2):c.mirrorActors&&l.attr("y2",i.stopy)})},"fixLifeLineHeights"),be=(0,a.eW)(function(e,t,r,c){const s=c?t.stopy:t.starty,i=t.x+t.width/2,l=s+t.height,h=e.append("g").lower();var g=h;c||(it++,Object.keys(t.links||{}).length&&!r.forceMenus&&g.attr("onclick",ye(`actor${it}_popup`)).attr("cursor","pointer"),g.append("line").attr("id","actor"+it).attr("x1",i).attr("y1",l).attr("x2",i).attr("y2",2e3).attr("class","actor-line 200").attr("stroke-width","0.5px").attr("stroke","#999").attr("name",t.name),g=h.append("g"),t.actorCnt=it,null!=t.links&&g.attr("id","root-"+it));const n=(0,st.kc)();var d="actor";t.properties?.class?d=t.properties.class:n.fill="#eaeaea",d+=c?` ${Ht}`:` ${zt}`,n.x=t.x,n.y=s,n.width=t.width,n.height=t.height,n.class=d,n.rx=3,n.ry=3,n.name=t.name;const y=Pt(g,n);if(t.rectData=n,t.properties?.icon){const E=t.properties.icon.trim();"@"===E.charAt(0)?(0,st.rB)(g,n.x+n.width-20,n.y+10,E.substr(1)):(0,st.AE)(g,n.x+n.width-20,n.y+10,E)}At(r,(0,a.l0)(t.description))(t.description,g,n.x,n.y,n.width,n.height,{class:"actor actor-box"},r);let f=t.height;if(y.node){const E=y.node().getBBox();t.height=E.height,f=E.height}return f},"drawActorTypeParticipant"),Ee=(0,a.eW)(function(e,t,r,c){const s=c?t.stopy:t.starty,i=t.x+t.width/2,l=s+80,h=e.append("g").lower();c||(it++,h.append("line").attr("id","actor"+it).attr("x1",i).attr("y1",l).attr("x2",i).attr("y2",2e3).attr("class","actor-line 200").attr("stroke-width","0.5px").attr("stroke","#999").attr("name",t.name),t.actorCnt=it);const g=e.append("g");let n=Ut;n+=c?` ${Ht}`:` ${zt}`,g.attr("class",n),g.attr("name",t.name);const d=(0,st.kc)();d.x=t.x,d.y=s,d.fill="#eaeaea",d.width=t.width,d.height=t.height,d.class="actor",d.rx=3,d.ry=3,g.append("line").attr("id","actor-man-torso"+it).attr("x1",i).attr("y1",s+25).attr("x2",i).attr("y2",s+45),g.append("line").attr("id","actor-man-arms"+it).attr("x1",i-18).attr("y1",s+33).attr("x2",i+18).attr("y2",s+33),g.append("line").attr("x1",i-18).attr("y1",s+60).attr("x2",i).attr("y2",s+45),g.append("line").attr("x1",i).attr("y1",s+45).attr("x2",i+18-2).attr("y2",s+60);const y=g.append("circle");y.attr("cx",t.x+t.width/2),y.attr("cy",s+10),y.attr("r",15),y.attr("width",t.width),y.attr("height",t.height);const f=g.node().getBBox();return t.height=f.height,At(r,(0,a.l0)(t.description))(t.description,g,d.x,d.y+35,d.width,d.height,{class:`actor ${Ut}`},r),t.height},"drawActorTypeActor"),me=(0,a.eW)(function(){var e=(0,X.Z)(function*(t,r,c,s){switch(r.type){case"actor":return yield Ee(t,r,c,s);case"participant":return yield be(t,r,c,s)}});return function(t,r,c,s){return e.apply(this,arguments)}}(),"drawActor"),_e=(0,a.eW)(function(e,t,r){const s=e.append("g");Zt(s,t),t.name&&At(r)(t.name,s,t.x,t.y+(t.textMaxHeight||0)/2,t.width,0,{class:"text"},r),s.lower()},"drawBox"),we=(0,a.eW)(function(e){return e.append("g")},"anchorElement"),ve=(0,a.eW)(function(e,t,r,c,s){const i=(0,st.kc)(),l=t.anchored;i.x=t.startx,i.y=t.starty,i.class="activation"+s%3,i.width=t.stopx-t.startx,i.height=r-t.starty,Pt(l,i)},"drawActivation"),ke=(0,a.eW)(function(){var e=(0,X.Z)(function*(t,r,c,s){const{boxMargin:i,boxTextMargin:l,labelBoxHeight:h,labelBoxWidth:g,messageFontFamily:n,messageFontSize:d,messageFontWeight:y}=s,f=t.append("g"),E=(0,a.eW)(function(v,N,D,R){return f.append("line").attr("x1",v).attr("y1",N).attr("x2",D).attr("y2",R).attr("class","loopLine")},"drawLoopLine");E(r.startx,r.starty,r.stopx,r.starty),E(r.stopx,r.starty,r.stopx,r.stopy),E(r.startx,r.stopy,r.stopx,r.stopy),E(r.startx,r.starty,r.startx,r.stopy),void 0!==r.sections&&r.sections.forEach(function(v){E(r.startx,v.y,r.stopx,v.y).style("stroke-dasharray","3, 3")});let T=(0,st.AD)();T.text=c,T.x=r.startx,T.y=r.starty,T.fontFamily=n,T.fontSize=d,T.fontWeight=y,T.anchor="middle",T.valign="middle",T.tspan=!1,T.width=g||50,T.height=h||20,T.textMargin=l,T.class="labelText",Kt(f,T),T=Xt(),T.text=r.title,T.x=r.startx+g/2+(r.stopx-r.startx)/2,T.y=r.starty+i+l,T.anchor="middle",T.valign="middle",T.textMargin=l,T.class="loopText",T.fontFamily=n,T.fontSize=d,T.fontWeight=y,T.wrap=!0;let w=(0,a.l0)(T.text)?yield mt(f,T,r):ft(f,T);if(void 0!==r.sectionTitles)for(const[v,N]of Object.entries(r.sectionTitles))if(N.message){T.text=N.message,T.x=r.startx+(r.stopx-r.startx)/2,T.y=r.sections[v].y+i+l,T.class="loopText",T.anchor="middle",T.valign="middle",T.tspan=!1,T.fontFamily=n,T.fontSize=d,T.fontWeight=y,T.wrap=r.wrap,(0,a.l0)(T.text)?(r.starty=r.sections[v].y,yield mt(f,T,r)):ft(f,T);let D=Math.round(w.map(R=>(R._groups||R)[0][0].getBBox().height).reduce((R,B)=>R+B));r.sections[v].height+=D-(i+l)}return r.height=Math.round(r.stopy-r.starty),f});return function(t,r,c,s){return e.apply(this,arguments)}}(),"drawLoop"),Zt=(0,a.eW)(function(e,t){(0,st.O)(e,t)},"drawBackgroundRect"),Ie=(0,a.eW)(function(e){e.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")},"insertDatabaseIcon"),Le=(0,a.eW)(function(e){e.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")},"insertComputerIcon"),Pe=(0,a.eW)(function(e){e.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")},"insertClockIcon"),Ae=(0,a.eW)(function(e){e.append("defs").append("marker").attr("id","arrowhead").attr("refX",7.9).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto-start-reverse").append("path").attr("d","M -1 0 L 10 5 L 0 10 z")},"insertArrowHead"),Se=(0,a.eW)(function(e){e.append("defs").append("marker").attr("id","filled-head").attr("refX",15.5).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")},"insertArrowFilledHead"),Ne=(0,a.eW)(function(e){e.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)},"insertSequenceNumber"),Me=(0,a.eW)(function(e){e.append("defs").append("marker").attr("id","crosshead").attr("markerWidth",15).attr("markerHeight",8).attr("orient","auto").attr("refX",4).attr("refY",4.5).append("path").attr("fill","none").attr("stroke","#000000").style("stroke-dasharray","0, 0").attr("stroke-width","1pt").attr("d","M 1,2 L 6,7 M 6,2 L 1,7")},"insertArrowCrossHead"),Xt=(0,a.eW)(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}},"getTextObj"),We=(0,a.eW)(function(){return{x:0,y:0,fill:"#EDF2AE",stroke:"#666",width:100,anchor:"start",height:100,rx:0,ry:0}},"getNoteRect"),At=function(){function e(l,h,g,n,d,y,f){i(h.append("text").attr("x",g+d/2).attr("y",n+y/2+5).style("text-anchor","middle").text(l),f)}function t(l,h,g,n,d,y,f,E){const{actorFontSize:T,actorFontFamily:w,actorFontWeight:v}=E,[N,D]=(0,Y.VG)(T),R=l.split(a.SY.lineBreakRegex);for(let B=0;B<R.length;B++){const O=B*N-N*(R.length-1)/2,F=h.append("text").attr("x",g+d/2).attr("y",n).style("text-anchor","middle").style("font-size",D).style("font-weight",v).style("font-family",w);F.append("tspan").attr("x",g+d/2).attr("dy",O).text(R[B]),F.attr("y",n+y/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),i(F,f)}}function r(l,h,g,n,d,y,f,E){const T=h.append("switch"),v=T.append("foreignObject").attr("x",g).attr("y",n).attr("width",d).attr("height",y).append("xhtml:div").style("display","table").style("height","100%").style("width","100%");v.append("div").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(l),t(l,T,g,n,d,y,f,E),i(v,f)}function c(l,h,g,n,d,y,f,E){return s.apply(this,arguments)}function s(){return(s=(0,X.Z)(function*(l,h,g,n,d,y,f,E){const T=yield(0,a.nH)(l,(0,a.iE)()),w=h.append("switch"),N=w.append("foreignObject").attr("x",g+d/2-T.width/2).attr("y",n+y/2-T.height/2).attr("width",T.width).attr("height",T.height).append("xhtml:div").style("height","100%").style("width","100%");N.append("div").style("text-align","center").style("vertical-align","middle").html(yield(0,a.uT)(l,(0,a.iE)())),t(l,w,g,n,d,y,f,E),i(N,f)})).apply(this,arguments)}function i(l,h){for(const g in h)h.hasOwnProperty(g)&&l.attr(g,h[g])}return(0,a.eW)(e,"byText"),(0,a.eW)(t,"byTspan"),(0,a.eW)(r,"byFo"),(0,a.eW)(c,"byKatex"),(0,a.eW)(i,"_setTextAttrs"),function(l,h=!1){return h?c:"fo"===l.textPlacement?r:"old"===l.textPlacement?e:t}}(),De=function(){function e(s,i,l,h,g,n,d){c(i.append("text").attr("x",l).attr("y",h).style("text-anchor","start").text(s),d)}function t(s,i,l,h,g,n,d,y){const{actorFontSize:f,actorFontFamily:E,actorFontWeight:T}=y,w=s.split(a.SY.lineBreakRegex);for(let v=0;v<w.length;v++){const N=v*f-f*(w.length-1)/2,D=i.append("text").attr("x",l).attr("y",h).style("text-anchor","start").style("font-size",f).style("font-weight",T).style("font-family",E);D.append("tspan").attr("x",l).attr("dy",N).text(w[v]),D.attr("y",h+n/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),c(D,d)}}function r(s,i,l,h,g,n,d,y){const f=i.append("switch"),T=f.append("foreignObject").attr("x",l).attr("y",h).attr("width",g).attr("height",n).append("xhtml:div").style("display","table").style("height","100%").style("width","100%");T.append("div").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(s),t(s,f,l,h,0,n,d,y),c(T,d)}function c(s,i){for(const l in i)i.hasOwnProperty(l)&&s.attr(l,i[l])}return(0,a.eW)(e,"byText"),(0,a.eW)(t,"byTspan"),(0,a.eW)(r,"byFo"),(0,a.eW)(c,"_setTextAttrs"),function(s){return"fo"===s.textPlacement?r:"old"===s.textPlacement?e:t}}(),C={drawRect:Pt,drawText:ft,drawLabel:Kt,drawActor:me,drawBox:_e,drawPopup:Te,anchorElement:we,drawActivation:ve,drawLoop:ke,drawBackgroundRect:Zt,insertArrowHead:Ae,insertArrowFilledHead:Se,insertSequenceNumber:Ne,insertArrowCrossHead:Me,insertDatabaseIcon:Ie,insertComputerIcon:Le,insertClockIcon:Pe,getTextObj:Xt,getNoteRect:We,fixLifeLineHeights:Gt,sanitizeUrl:qt.N},o={},x={data:{startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},verticalPos:0,sequenceItems:[],activations:[],models:{getHeight:(0,a.eW)(function(){return Math.max.apply(null,0===this.actors.length?[0]:this.actors.map(e=>e.height||0))+(0===this.loops.length?0:this.loops.map(e=>e.height||0).reduce((e,t)=>e+t))+(0===this.messages.length?0:this.messages.map(e=>e.height||0).reduce((e,t)=>e+t))+(0===this.notes.length?0:this.notes.map(e=>e.height||0).reduce((e,t)=>e+t))},"getHeight"),clear:(0,a.eW)(function(){this.actors=[],this.boxes=[],this.loops=[],this.messages=[],this.notes=[]},"clear"),addBox:(0,a.eW)(function(e){this.boxes.push(e)},"addBox"),addActor:(0,a.eW)(function(e){this.actors.push(e)},"addActor"),addLoop:(0,a.eW)(function(e){this.loops.push(e)},"addLoop"),addMessage:(0,a.eW)(function(e){this.messages.push(e)},"addMessage"),addNote:(0,a.eW)(function(e){this.notes.push(e)},"addNote"),lastActor:(0,a.eW)(function(){return this.actors[this.actors.length-1]},"lastActor"),lastLoop:(0,a.eW)(function(){return this.loops[this.loops.length-1]},"lastLoop"),lastMessage:(0,a.eW)(function(){return this.messages[this.messages.length-1]},"lastMessage"),lastNote:(0,a.eW)(function(){return this.notes[this.notes.length-1]},"lastNote"),actors:[],boxes:[],loops:[],messages:[],notes:[]},init:(0,a.eW)(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,jt((0,a.nV)())},"init"),updateVal:(0,a.eW)(function(e,t,r,c){void 0===e[t]?e[t]=r:e[t]=c(r,e[t])},"updateVal"),updateBounds:(0,a.eW)(function(e,t,r,c){const s=this;let i=0;function l(h){return(0,a.eW)(function(n){i++;const d=s.sequenceItems.length-i+1;s.updateVal(n,"starty",t-d*o.boxMargin,Math.min),s.updateVal(n,"stopy",c+d*o.boxMargin,Math.max),s.updateVal(x.data,"startx",e-d*o.boxMargin,Math.min),s.updateVal(x.data,"stopx",r+d*o.boxMargin,Math.max),"activation"!==h&&(s.updateVal(n,"startx",e-d*o.boxMargin,Math.min),s.updateVal(n,"stopx",r+d*o.boxMargin,Math.max),s.updateVal(x.data,"starty",t-d*o.boxMargin,Math.min),s.updateVal(x.data,"stopy",c+d*o.boxMargin,Math.max))},"updateItemBounds")}(0,a.eW)(l,"updateFn"),this.sequenceItems.forEach(l()),this.activations.forEach(l("activation"))},"updateBounds"),insert:(0,a.eW)(function(e,t,r,c){const s=a.SY.getMin(e,r),i=a.SY.getMax(e,r),l=a.SY.getMin(t,c),h=a.SY.getMax(t,c);this.updateVal(x.data,"startx",s,Math.min),this.updateVal(x.data,"starty",l,Math.min),this.updateVal(x.data,"stopx",i,Math.max),this.updateVal(x.data,"stopy",h,Math.max),this.updateBounds(s,l,i,h)},"insert"),newActivation:(0,a.eW)(function(e,t,r){const c=r.get(e.from),s=_t(e.from).length||0,i=c.x+c.width/2+(s-1)*o.activationWidth/2;this.activations.push({startx:i,starty:this.verticalPos+2,stopx:i+o.activationWidth,stopy:void 0,actor:e.from,anchored:C.anchorElement(t)})},"newActivation"),endActivation:(0,a.eW)(function(e){const t=this.activations.map(function(r){return r.actor}).lastIndexOf(e.from);return this.activations.splice(t,1)[0]},"endActivation"),createLoop:(0,a.eW)(function(e={message:void 0,wrap:!1,width:void 0},t){return{startx:void 0,starty:this.verticalPos,stopx:void 0,stopy:void 0,title:e.message,wrap:e.wrap,width:e.width,height:0,fill:t}},"createLoop"),newLoop:(0,a.eW)(function(e={message:void 0,wrap:!1,width:void 0},t){this.sequenceItems.push(this.createLoop(e,t))},"newLoop"),endLoop:(0,a.eW)(function(){return this.sequenceItems.pop()},"endLoop"),isLoopOverlap:(0,a.eW)(function(){return!!this.sequenceItems.length&&this.sequenceItems[this.sequenceItems.length-1].overlap},"isLoopOverlap"),addSectionToLoop:(0,a.eW)(function(e){const t=this.sequenceItems.pop();t.sections=t.sections||[],t.sectionTitles=t.sectionTitles||[],t.sections.push({y:x.getVerticalPos(),height:0}),t.sectionTitles.push(e),this.sequenceItems.push(t)},"addSectionToLoop"),saveVerticalPos:(0,a.eW)(function(){this.isLoopOverlap()&&(this.savedVerticalPos=this.verticalPos)},"saveVerticalPos"),resetVerticalPos:(0,a.eW)(function(){this.isLoopOverlap()&&(this.verticalPos=this.savedVerticalPos)},"resetVerticalPos"),bumpVerticalPos:(0,a.eW)(function(e){this.verticalPos=this.verticalPos+e,this.data.stopy=a.SY.getMax(this.data.stopy,this.verticalPos)},"bumpVerticalPos"),getVerticalPos:(0,a.eW)(function(){return this.verticalPos},"getVerticalPos"),getBounds:(0,a.eW)(function(){return{bounds:this.data,models:this.models}},"getBounds")},Re=(0,a.eW)(function(){var e=(0,X.Z)(function*(t,r){x.bumpVerticalPos(o.boxMargin),r.height=o.boxMargin,r.starty=x.getVerticalPos();const c=(0,st.kc)();c.x=r.startx,c.y=r.starty,c.width=r.width||o.width,c.class="note";const s=t.append("g"),i=C.drawRect(s,c),l=(0,st.AD)();l.x=r.startx,l.y=r.starty,l.width=c.width,l.dy="1em",l.text=r.message,l.class="noteText",l.fontFamily=o.noteFontFamily,l.fontSize=o.noteFontSize,l.fontWeight=o.noteFontWeight,l.anchor=o.noteAlign,l.textMargin=o.noteMargin,l.valign="center";const h=(0,a.l0)(l.text)?yield mt(s,l):ft(s,l),g=Math.round(h.map(n=>(n._groups||n)[0][0].getBBox().height).reduce((n,d)=>n+d));i.attr("height",g+2*o.noteMargin),r.height+=g+2*o.noteMargin,x.bumpVerticalPos(g+2*o.noteMargin),r.stopy=r.starty+g+2*o.noteMargin,r.stopx=r.startx+c.width,x.insert(r.startx,r.starty,r.stopx,r.stopy),x.models.addNote(r)});return function(t,r){return e.apply(this,arguments)}}(),"drawNote"),pt=(0,a.eW)(e=>({fontFamily:e.messageFontFamily,fontSize:e.messageFontSize,fontWeight:e.messageFontWeight}),"messageFont"),xt=(0,a.eW)(e=>({fontFamily:e.noteFontFamily,fontSize:e.noteFontSize,fontWeight:e.noteFontWeight}),"noteFont"),St=(0,a.eW)(e=>({fontFamily:e.actorFontFamily,fontSize:e.actorFontSize,fontWeight:e.actorFontWeight}),"actorFont");function Jt(e,t){return Nt.apply(this,arguments)}function Nt(){return(Nt=(0,X.Z)(function*(e,t){x.bumpVerticalPos(10);const{startx:r,stopx:c,message:s}=t,i=a.SY.splitBreaks(s).length,l=(0,a.l0)(s),h=l?yield(0,a.nH)(s,(0,a.nV)()):Y.w8.calculateTextDimensions(s,pt(o));if(!l){const y=h.height/i;t.height+=y,x.bumpVerticalPos(y)}let g,n=h.height-10;const d=h.width;if(r===c){g=x.getVerticalPos()+n,o.rightAngles||(n+=o.boxMargin,g=x.getVerticalPos()+n),n+=30;const y=a.SY.getMax(d/2,o.width/2);x.insert(r-y,x.getVerticalPos()-10+n,c+y,x.getVerticalPos()+30+n)}else n+=o.boxMargin,g=x.getVerticalPos()+n,x.insert(r,g-10,c,g);return x.bumpVerticalPos(n),t.height+=n,t.stopy=t.starty+t.height,x.insert(t.fromBounds,t.starty,t.toBounds,t.stopy),g})).apply(this,arguments)}(0,a.eW)(Jt,"boundMessage");var Oe=(0,a.eW)(function(){var e=(0,X.Z)(function*(t,r,c,s){const{startx:i,stopx:l,starty:h,message:g,type:n,sequenceIndex:d,sequenceVisible:y}=r,f=Y.w8.calculateTextDimensions(g,pt(o)),E=(0,st.AD)();E.x=i,E.y=h+10,E.width=l-i,E.class="messageText",E.dy="1em",E.text=g,E.fontFamily=o.messageFontFamily,E.fontSize=o.messageFontSize,E.fontWeight=o.messageFontWeight,E.anchor=o.messageAlign,E.valign="center",E.textMargin=o.wrapPadding,E.tspan=!1,(0,a.l0)(E.text)?yield mt(t,E,{startx:i,stopx:l,starty:c}):ft(t,E);const T=f.width;let w;i===l?w=o.rightAngles?t.append("path").attr("d",`M ${i},${c} H ${i+a.SY.getMax(o.width/2,T/2)} V ${c+25} H ${i}`):t.append("path").attr("d","M "+i+","+c+" C "+(i+60)+","+(c-10)+" "+(i+60)+","+(c+30)+" "+i+","+(c+20)):(w=t.append("line"),w.attr("x1",i),w.attr("y1",c),w.attr("x2",l),w.attr("y2",c)),n===s.db.LINETYPE.DOTTED||n===s.db.LINETYPE.DOTTED_CROSS||n===s.db.LINETYPE.DOTTED_POINT||n===s.db.LINETYPE.DOTTED_OPEN||n===s.db.LINETYPE.BIDIRECTIONAL_DOTTED?(w.style("stroke-dasharray","3, 3"),w.attr("class","messageLine1")):w.attr("class","messageLine0");let v="";o.arrowMarkerAbsolute&&(v=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,v=v.replace(/\(/g,"\\("),v=v.replace(/\)/g,"\\)")),w.attr("stroke-width",2),w.attr("stroke","none"),w.style("fill","none"),(n===s.db.LINETYPE.SOLID||n===s.db.LINETYPE.DOTTED)&&w.attr("marker-end","url("+v+"#arrowhead)"),(n===s.db.LINETYPE.BIDIRECTIONAL_SOLID||n===s.db.LINETYPE.BIDIRECTIONAL_DOTTED)&&(w.attr("marker-start","url("+v+"#arrowhead)"),w.attr("marker-end","url("+v+"#arrowhead)")),(n===s.db.LINETYPE.SOLID_POINT||n===s.db.LINETYPE.DOTTED_POINT)&&w.attr("marker-end","url("+v+"#filled-head)"),(n===s.db.LINETYPE.SOLID_CROSS||n===s.db.LINETYPE.DOTTED_CROSS)&&w.attr("marker-end","url("+v+"#crosshead)"),(y||o.showSequenceNumbers)&&(w.attr("marker-start","url("+v+"#sequencenumber)"),t.append("text").attr("x",i).attr("y",c+4).attr("font-family","sans-serif").attr("font-size","12px").attr("text-anchor","middle").attr("class","sequenceNumber").text(d))});return function(t,r,c,s){return e.apply(this,arguments)}}(),"drawMessage"),Ye=(0,a.eW)(function(e,t,r,c,s,i,l){let n,h=0,g=0,d=0;for(const y of c){const f=t.get(y),E=f.box;n&&n!=E&&(l||x.models.addBox(n),g+=o.boxMargin+n.margin),E&&E!=n&&(l||(E.x=h+g,E.y=s),g+=E.margin),f.width=f.width||o.width,f.height=a.SY.getMax(f.height||o.height,o.height),f.margin=f.margin||o.actorMargin,d=a.SY.getMax(d,f.height),r.get(f.name)&&(g+=f.width/2),f.x=h+g,f.starty=x.getVerticalPos(),x.insert(f.x,s,f.x+f.width,f.height),h+=f.width+g,f.box&&(f.box.width=h+E.margin-f.box.x),g=f.margin,n=f.box,x.models.addActor(f)}n&&!l&&x.models.addBox(n),x.bumpVerticalPos(d)},"addActorRenderingData"),Mt=(0,a.eW)(function(){var e=(0,X.Z)(function*(t,r,c,s){if(s){let i=0;x.bumpVerticalPos(2*o.boxMargin);for(const l of c){const h=r.get(l);h.stopy||(h.stopy=x.getVerticalPos());const g=yield C.drawActor(t,h,o,!0);i=a.SY.getMax(i,g)}x.bumpVerticalPos(i+o.boxMargin)}else for(const i of c){const l=r.get(i);yield C.drawActor(t,l,o,!1)}});return function(t,r,c,s){return e.apply(this,arguments)}}(),"drawActors"),Qt=(0,a.eW)(function(e,t,r,c){let s=0,i=0;for(const l of r){const h=t.get(l),g=Be(h),n=C.drawPopup(e,h,g,o,o.forceMenus,c);n.height>s&&(s=n.height),n.width+h.x>i&&(i=n.width+h.x)}return{maxHeight:s,maxWidth:i}},"drawActorsPopup"),jt=(0,a.eW)(function(e){(0,a.Yc)(o,e),e.fontFamily&&(o.actorFontFamily=o.noteFontFamily=o.messageFontFamily=e.fontFamily),e.fontSize&&(o.actorFontSize=o.noteFontSize=o.messageFontSize=e.fontSize),e.fontWeight&&(o.actorFontWeight=o.noteFontWeight=o.messageFontWeight=e.fontWeight)},"setConf"),_t=(0,a.eW)(function(e){return x.activations.filter(function(t){return t.actor===e})},"actorActivations"),$t=(0,a.eW)(function(e,t){const r=t.get(e),c=_t(e);return[c.reduce(function(l,h){return a.SY.getMin(l,h.startx)},r.x+r.width/2-1),c.reduce(function(l,h){return a.SY.getMax(l,h.stopx)},r.x+r.width/2+1)]},"activationBounds");function rt(e,t,r,c,s){x.bumpVerticalPos(r);let i=c;if(t.id&&t.message&&e[t.id]){const l=e[t.id].width,h=pt(o);t.message=Y.w8.wrapLabel(`[${t.message}]`,l-2*o.wrapPadding,h),t.width=l,t.wrap=!0;const g=Y.w8.calculateTextDimensions(t.message,h),n=a.SY.getMax(g.height,o.labelBoxHeight);i=c+n,a.cM.debug(`${n} - ${t.message}`)}s(t),x.bumpVerticalPos(i)}function te(e,t,r,c,s,i,l){function h(n,d){n.x<s.get(e.from).x?(x.insert(t.stopx-d,t.starty,t.startx,t.stopy+n.height/2+o.noteMargin),t.stopx=t.stopx+d):(x.insert(t.startx,t.starty,t.stopx+d,t.stopy+n.height/2+o.noteMargin),t.stopx=t.stopx-d)}function g(n,d){n.x<s.get(e.to).x?(x.insert(t.startx-d,t.starty,t.stopx,t.stopy+n.height/2+o.noteMargin),t.startx=t.startx+d):(x.insert(t.stopx,t.starty,t.startx+d,t.stopy+n.height/2+o.noteMargin),t.startx=t.startx-d)}if((0,a.eW)(h,"receiverAdjustment"),(0,a.eW)(g,"senderAdjustment"),i.get(e.to)==c){const n=s.get(e.to);h(n,"actor"==n.type?21:n.width/2+3),n.starty=r-n.height/2,x.bumpVerticalPos(n.height/2)}else if(l.get(e.from)==c){const n=s.get(e.from);if(o.mirrorActors){g(n,"actor"==n.type?18:n.width/2)}n.stopy=r-n.height/2,x.bumpVerticalPos(n.height/2)}else if(l.get(e.to)==c){const n=s.get(e.to);if(o.mirrorActors){h(n,"actor"==n.type?21:n.width/2+3)}n.stopy=r-n.height/2,x.bumpVerticalPos(n.height/2)}}(0,a.eW)(rt,"adjustLoopHeightForWrap"),(0,a.eW)(te,"adjustCreatedDestroyedData");var Ce=(0,a.eW)(function(){var e=(0,X.Z)(function*(t,r,c,s){const{securityLevel:i,sequence:l}=(0,a.nV)();let h;o=l,"sandbox"===i&&(h=(0,Et.Ys)("#i"+r));const g="sandbox"===i?(0,Et.Ys)(h.nodes()[0].contentDocument.body):(0,Et.Ys)("body"),n="sandbox"===i?h.nodes()[0].contentDocument:document;x.init(),a.cM.debug(s.db);const d="sandbox"===i?g.select(`[id="${r}"]`):(0,Et.Ys)(`[id="${r}"]`),y=s.db.getActors(),f=s.db.getCreatedActors(),E=s.db.getDestroyedActors(),T=s.db.getBoxes();let w=s.db.getActorKeys();const v=s.db.getMessages(),N=s.db.getDiagramTitle(),D=s.db.hasAtLeastOneBox(),R=s.db.hasAtLeastOneBoxWithTitle(),B=yield ee(y,v,s);if(o.height=yield se(y,B,T),C.insertComputerIcon(d),C.insertDatabaseIcon(d),C.insertClockIcon(d),D&&(x.bumpVerticalPos(o.boxMargin),R&&x.bumpVerticalPos(T[0].textMaxHeight)),!0===o.hideUnusedParticipants){const m=new Set;v.forEach(L=>{m.add(L.from),m.add(L.to)}),w=w.filter(L=>m.has(L))}Ye(d,y,f,w,0,v,!1);const O=yield qe(v,y,B,s);function F(m,L){const at=x.endActivation(m);at.starty+18>L&&(at.starty=L-6,L+=12),C.drawActivation(d,at,L,o,_t(m.from).length),x.insert(at.startx,L-10,at.stopx,L)}C.insertArrowHead(d),C.insertArrowCrossHead(d),C.insertArrowFilledHead(d),C.insertSequenceNumber(d),(0,a.eW)(F,"activeEnd");let q=1,J=1;const z=[],H=[];let U=0;for(const m of v){let L,at,tt;switch(m.type){case s.db.LINETYPE.NOTE:x.resetVerticalPos(),at=m.noteModel,yield Re(d,at);break;case s.db.LINETYPE.ACTIVE_START:x.newActivation(m,d,y);break;case s.db.LINETYPE.ACTIVE_END:F(m,x.getVerticalPos());break;case s.db.LINETYPE.LOOP_START:rt(O,m,o.boxMargin,o.boxMargin+o.boxTextMargin,S=>x.newLoop(S));break;case s.db.LINETYPE.LOOP_END:L=x.endLoop(),yield C.drawLoop(d,L,"loop",o),x.bumpVerticalPos(L.stopy-x.getVerticalPos()),x.models.addLoop(L);break;case s.db.LINETYPE.RECT_START:rt(O,m,o.boxMargin,o.boxMargin,S=>x.newLoop(void 0,S.message));break;case s.db.LINETYPE.RECT_END:L=x.endLoop(),H.push(L),x.models.addLoop(L),x.bumpVerticalPos(L.stopy-x.getVerticalPos());break;case s.db.LINETYPE.OPT_START:rt(O,m,o.boxMargin,o.boxMargin+o.boxTextMargin,S=>x.newLoop(S));break;case s.db.LINETYPE.OPT_END:L=x.endLoop(),yield C.drawLoop(d,L,"opt",o),x.bumpVerticalPos(L.stopy-x.getVerticalPos()),x.models.addLoop(L);break;case s.db.LINETYPE.ALT_START:rt(O,m,o.boxMargin,o.boxMargin+o.boxTextMargin,S=>x.newLoop(S));break;case s.db.LINETYPE.ALT_ELSE:rt(O,m,o.boxMargin+o.boxTextMargin,o.boxMargin,S=>x.addSectionToLoop(S));break;case s.db.LINETYPE.ALT_END:L=x.endLoop(),yield C.drawLoop(d,L,"alt",o),x.bumpVerticalPos(L.stopy-x.getVerticalPos()),x.models.addLoop(L);break;case s.db.LINETYPE.PAR_START:case s.db.LINETYPE.PAR_OVER_START:rt(O,m,o.boxMargin,o.boxMargin+o.boxTextMargin,S=>x.newLoop(S)),x.saveVerticalPos();break;case s.db.LINETYPE.PAR_AND:rt(O,m,o.boxMargin+o.boxTextMargin,o.boxMargin,S=>x.addSectionToLoop(S));break;case s.db.LINETYPE.PAR_END:L=x.endLoop(),yield C.drawLoop(d,L,"par",o),x.bumpVerticalPos(L.stopy-x.getVerticalPos()),x.models.addLoop(L);break;case s.db.LINETYPE.AUTONUMBER:q=m.message.start||q,J=m.message.step||J,m.message.visible?s.db.enableSequenceNumbers():s.db.disableSequenceNumbers();break;case s.db.LINETYPE.CRITICAL_START:rt(O,m,o.boxMargin,o.boxMargin+o.boxTextMargin,S=>x.newLoop(S));break;case s.db.LINETYPE.CRITICAL_OPTION:rt(O,m,o.boxMargin+o.boxTextMargin,o.boxMargin,S=>x.addSectionToLoop(S));break;case s.db.LINETYPE.CRITICAL_END:L=x.endLoop(),yield C.drawLoop(d,L,"critical",o),x.bumpVerticalPos(L.stopy-x.getVerticalPos()),x.models.addLoop(L);break;case s.db.LINETYPE.BREAK_START:rt(O,m,o.boxMargin,o.boxMargin+o.boxTextMargin,S=>x.newLoop(S));break;case s.db.LINETYPE.BREAK_END:L=x.endLoop(),yield C.drawLoop(d,L,"break",o),x.bumpVerticalPos(L.stopy-x.getVerticalPos()),x.models.addLoop(L);break;default:try{tt=m.msgModel,tt.starty=x.getVerticalPos(),tt.sequenceIndex=q,tt.sequenceVisible=s.db.showSequenceNumbers();const S=yield Jt(d,tt);te(m,tt,S,U,y,f,E),z.push({messageModel:tt,lineStartY:S}),x.models.addMessage(tt)}catch(S){a.cM.error("error while drawing message",S)}}[s.db.LINETYPE.SOLID_OPEN,s.db.LINETYPE.DOTTED_OPEN,s.db.LINETYPE.SOLID,s.db.LINETYPE.DOTTED,s.db.LINETYPE.SOLID_CROSS,s.db.LINETYPE.DOTTED_CROSS,s.db.LINETYPE.SOLID_POINT,s.db.LINETYPE.DOTTED_POINT,s.db.LINETYPE.BIDIRECTIONAL_SOLID,s.db.LINETYPE.BIDIRECTIONAL_DOTTED].includes(m.type)&&(q+=J),U++}a.cM.debug("createdActors",f),a.cM.debug("destroyedActors",E),yield Mt(d,y,w,!1);for(const m of z)yield Oe(d,m.messageModel,m.lineStartY,s);o.mirrorActors&&(yield Mt(d,y,w,!0)),H.forEach(m=>C.drawBackgroundRect(d,m)),Gt(d,y,w,o);for(const m of x.models.boxes)m.height=x.getVerticalPos()-m.y,x.insert(m.x,m.y,m.x+m.width,m.height),m.startx=m.x,m.starty=m.y,m.stopx=m.startx+m.width,m.stopy=m.starty+m.height,m.stroke="rgb(0,0,0, 0.5)",C.drawBox(d,m,o);D&&x.bumpVerticalPos(o.boxMargin);const G=Qt(d,y,w,n),{bounds:W}=x.getBounds();void 0===W.startx&&(W.startx=0),void 0===W.starty&&(W.starty=0),void 0===W.stopx&&(W.stopx=0),void 0===W.stopy&&(W.stopy=0);let Q=W.stopy-W.starty;Q<G.maxHeight&&(Q=G.maxHeight);let Z=Q+2*o.diagramMarginY;o.mirrorActors&&(Z=Z-o.boxMargin+o.bottomMarginAdj);let j=W.stopx-W.startx;j<G.maxWidth&&(j=G.maxWidth);const A=j+2*o.diagramMarginX;N&&d.append("text").text(N).attr("x",(W.stopx-W.startx)/2-2*o.diagramMarginX).attr("y",-25),(0,a.v2)(d,Z,A,o.useMaxWidth);const P=N?40:0;d.attr("viewBox",W.startx-o.diagramMarginX+" -"+(o.diagramMarginY+P)+" "+A+" "+(Z+P)),a.cM.debug("models:",x.models)});return function(t,r,c,s){return e.apply(this,arguments)}}(),"draw");function ee(e,t,r){return Wt.apply(this,arguments)}function Wt(){return(Wt=(0,X.Z)(function*(e,t,r){const c={};for(const s of t)if(e.get(s.to)&&e.get(s.from)){const i=e.get(s.to);if(s.placement===r.db.PLACEMENT.LEFTOF&&!i.prevActor||s.placement===r.db.PLACEMENT.RIGHTOF&&!i.nextActor)continue;const l=void 0!==s.placement,h=!l,g=l?xt(o):pt(o),n=s.wrap?Y.w8.wrapLabel(s.message,o.width-2*o.wrapPadding,g):s.message,y=((0,a.l0)(n)?yield(0,a.nH)(s.message,(0,a.nV)()):Y.w8.calculateTextDimensions(n,g)).width+2*o.wrapPadding;h&&s.from===i.nextActor?c[s.to]=a.SY.getMax(c[s.to]||0,y):h&&s.from===i.prevActor?c[s.from]=a.SY.getMax(c[s.from]||0,y):h&&s.from===s.to?(c[s.from]=a.SY.getMax(c[s.from]||0,y/2),c[s.to]=a.SY.getMax(c[s.to]||0,y/2)):s.placement===r.db.PLACEMENT.RIGHTOF?c[s.from]=a.SY.getMax(c[s.from]||0,y):s.placement===r.db.PLACEMENT.LEFTOF?c[i.prevActor]=a.SY.getMax(c[i.prevActor]||0,y):s.placement===r.db.PLACEMENT.OVER&&(i.prevActor&&(c[i.prevActor]=a.SY.getMax(c[i.prevActor]||0,y/2)),i.nextActor&&(c[s.from]=a.SY.getMax(c[s.from]||0,y/2)))}return a.cM.debug("maxMessageWidthPerActor:",c),c})).apply(this,arguments)}(0,a.eW)(ee,"getMaxMessageWidthPerActor");var Be=(0,a.eW)(function(e){let t=0;const r=St(o);for(const c in e.links){const i=Y.w8.calculateTextDimensions(c,r).width+2*o.wrapPadding+2*o.boxMargin;t<i&&(t=i)}return t},"getRequiredPopupWidth");function se(e,t,r){return Dt.apply(this,arguments)}function Dt(){return(Dt=(0,X.Z)(function*(e,t,r){let c=0;for(const i of e.keys()){const l=e.get(i);l.wrap&&(l.description=Y.w8.wrapLabel(l.description,o.width-2*o.wrapPadding,St(o)));const h=(0,a.l0)(l.description)?yield(0,a.nH)(l.description,(0,a.nV)()):Y.w8.calculateTextDimensions(l.description,St(o));l.width=l.wrap?o.width:a.SY.getMax(o.width,h.width+2*o.wrapPadding),l.height=l.wrap?a.SY.getMax(h.height,o.height):o.height,c=a.SY.getMax(c,l.height)}for(const i in t){const l=e.get(i);if(!l)continue;const h=e.get(l.nextActor);if(!h){const y=t[i]+o.actorMargin-l.width/2;l.margin=a.SY.getMax(y,o.actorMargin);continue}const n=t[i]+o.actorMargin-l.width/2-h.width/2;l.margin=a.SY.getMax(n,o.actorMargin)}let s=0;return r.forEach(i=>{const l=pt(o);let h=i.actorKeys.reduce((d,y)=>d+(e.get(y).width+(e.get(y).margin||0)),0);h-=2*o.boxTextMargin,i.wrap&&(i.name=Y.w8.wrapLabel(i.name,h-2*o.wrapPadding,l));const g=Y.w8.calculateTextDimensions(i.name,l);s=a.SY.getMax(g.height,s);const n=a.SY.getMax(h,g.width+2*o.wrapPadding);if(i.margin=o.boxTextMargin,h<n){const d=(n-h)/2;i.margin+=d}}),r.forEach(i=>i.textMaxHeight=s),a.SY.getMax(c,o.height)})).apply(this,arguments)}(0,a.eW)(se,"calculateActorMargins");var Ve=(0,a.eW)(function(){var e=(0,X.Z)(function*(t,r,c){const s=r.get(t.from),i=r.get(t.to),l=s.x,h=i.x,g=t.wrap&&t.message;let n=(0,a.l0)(t.message)?yield(0,a.nH)(t.message,(0,a.nV)()):Y.w8.calculateTextDimensions(g?Y.w8.wrapLabel(t.message,o.width,xt(o)):t.message,xt(o));const d={width:g?o.width:a.SY.getMax(o.width,n.width+2*o.noteMargin),height:0,startx:s.x,stopx:0,starty:0,stopy:0,message:t.message};return t.placement===c.db.PLACEMENT.RIGHTOF?(d.width=g?a.SY.getMax(o.width,n.width):a.SY.getMax(s.width/2+i.width/2,n.width+2*o.noteMargin),d.startx=l+(s.width+o.actorMargin)/2):t.placement===c.db.PLACEMENT.LEFTOF?(d.width=g?a.SY.getMax(o.width,n.width+2*o.noteMargin):a.SY.getMax(s.width/2+i.width/2,n.width+2*o.noteMargin),d.startx=l-d.width+(s.width-o.actorMargin)/2):t.to===t.from?(n=Y.w8.calculateTextDimensions(g?Y.w8.wrapLabel(t.message,a.SY.getMax(o.width,s.width),xt(o)):t.message,xt(o)),d.width=g?a.SY.getMax(o.width,s.width):a.SY.getMax(s.width,o.width,n.width+2*o.noteMargin),d.startx=l+(s.width-d.width)/2):(d.width=Math.abs(l+s.width/2-(h+i.width/2))+o.actorMargin,d.startx=l<h?l+s.width/2-o.actorMargin/2:h+i.width/2-o.actorMargin/2),g&&(d.message=Y.w8.wrapLabel(t.message,d.width-2*o.wrapPadding,xt(o))),a.cM.debug(`NM:[${d.startx},${d.stopx},${d.starty},${d.stopy}:${d.width},${d.height}=${t.message}]`),d});return function(t,r,c){return e.apply(this,arguments)}}(),"buildNoteModel"),Fe=(0,a.eW)(function(e,t,r){if(![r.db.LINETYPE.SOLID_OPEN,r.db.LINETYPE.DOTTED_OPEN,r.db.LINETYPE.SOLID,r.db.LINETYPE.DOTTED,r.db.LINETYPE.SOLID_CROSS,r.db.LINETYPE.DOTTED_CROSS,r.db.LINETYPE.SOLID_POINT,r.db.LINETYPE.DOTTED_POINT,r.db.LINETYPE.BIDIRECTIONAL_SOLID,r.db.LINETYPE.BIDIRECTIONAL_DOTTED].includes(e.type))return{};const[c,s]=$t(e.from,t),[i,l]=$t(e.to,t),h=c<=i;let g=h?s:c,n=h?i:l;const d=Math.abs(i-l)>2,y=(0,a.eW)(w=>h?-w:w,"adjustValue");e.from===e.to?n=g:(e.activate&&!d&&(n+=y(o.activationWidth/2-1)),[r.db.LINETYPE.SOLID_OPEN,r.db.LINETYPE.DOTTED_OPEN].includes(e.type)||(n+=y(3)),[r.db.LINETYPE.BIDIRECTIONAL_SOLID,r.db.LINETYPE.BIDIRECTIONAL_DOTTED].includes(e.type)&&(g-=y(3)));const f=[c,s,i,l],E=Math.abs(g-n);e.wrap&&e.message&&(e.message=Y.w8.wrapLabel(e.message,a.SY.getMax(E+2*o.wrapPadding,o.width),pt(o)));const T=Y.w8.calculateTextDimensions(e.message,pt(o));return{width:a.SY.getMax(e.wrap?0:T.width+2*o.wrapPadding,E+2*o.wrapPadding,o.width),height:0,startx:g,stopx:n,starty:0,stopy:0,message:e.message,type:e.type,wrap:e.wrap,fromBounds:Math.min.apply(null,f),toBounds:Math.max.apply(null,f)}},"buildMessageModel"),qe=(0,a.eW)(function(){var e=(0,X.Z)(function*(t,r,c,s){const i={},l=[];let h,g,n;for(const d of t){switch(d.type){case s.db.LINETYPE.LOOP_START:case s.db.LINETYPE.ALT_START:case s.db.LINETYPE.OPT_START:case s.db.LINETYPE.PAR_START:case s.db.LINETYPE.PAR_OVER_START:case s.db.LINETYPE.CRITICAL_START:case s.db.LINETYPE.BREAK_START:l.push({id:d.id,msg:d.message,from:Number.MAX_SAFE_INTEGER,to:Number.MIN_SAFE_INTEGER,width:0});break;case s.db.LINETYPE.ALT_ELSE:case s.db.LINETYPE.PAR_AND:case s.db.LINETYPE.CRITICAL_OPTION:d.message&&(h=l.pop(),i[h.id]=h,i[d.id]=h,l.push(h));break;case s.db.LINETYPE.LOOP_END:case s.db.LINETYPE.ALT_END:case s.db.LINETYPE.OPT_END:case s.db.LINETYPE.PAR_END:case s.db.LINETYPE.CRITICAL_END:case s.db.LINETYPE.BREAK_END:h=l.pop(),i[h.id]=h;break;case s.db.LINETYPE.ACTIVE_START:{const f=r.get(d.from?d.from:d.to.actor),E=_t(d.from?d.from:d.to.actor).length,T=f.x+f.width/2+(E-1)*o.activationWidth/2,w={startx:T,stopx:T+o.activationWidth,actor:d.from,enabled:!0};x.activations.push(w)}break;case s.db.LINETYPE.ACTIVE_END:{const f=x.activations.map(E=>E.actor).lastIndexOf(d.from);x.activations.splice(f,1).splice(0,1)}}void 0!==d.placement?(g=yield Ve(d,r,s),d.noteModel=g,l.forEach(f=>{h=f,h.from=a.SY.getMin(h.from,g.startx),h.to=a.SY.getMax(h.to,g.startx+g.width),h.width=a.SY.getMax(h.width,Math.abs(h.from-h.to))-o.labelBoxWidth})):(n=Fe(d,r,s),d.msgModel=n,n.startx&&n.stopx&&l.length>0&&l.forEach(f=>{if(h=f,n.startx===n.stopx){const E=r.get(d.from),T=r.get(d.to);h.from=a.SY.getMin(E.x-n.width/2,E.x-E.width/2,h.from),h.to=a.SY.getMax(T.x+n.width/2,T.x+E.width/2,h.to),h.width=a.SY.getMax(h.width,Math.abs(h.to-h.from))-o.labelBoxWidth}else h.from=a.SY.getMin(n.startx,h.from),h.to=a.SY.getMax(n.stopx,h.to),h.width=a.SY.getMax(h.width,n.width)-o.labelBoxWidth}))}return x.activations=[],a.cM.debug("Loop type widths:",i),i});return function(t,r,c,s){return e.apply(this,arguments)}}(),"calculateLoopBounds"),He={parser:le,get db(){return new ue},renderer:{bounds:x,drawActors:Mt,drawActorsPopup:Qt,setConf:jt,draw:Ce},styles:fe,init:(0,a.eW)(e=>{e.sequence||(e.sequence={}),e.wrap&&(e.sequence.wrap=e.wrap,(0,a.Y4)({sequence:{wrap:e.wrap}}))},"init")}}}]);