orbitchat 2.1.6 → 2.1.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (49) hide show
  1. package/bin/orbitchat.js +11 -10
  2. package/dist/assets/{api-CK3k3ceJ.js → api-uEDUqkTi.js} +1 -1
  3. package/dist/assets/arc-m8RC5oDD-BT8qBEWK.js +1 -0
  4. package/dist/assets/{blockDiagram-c4efeb88-NvaZhZFT-B2z-bNEd.js → blockDiagram-c4efeb88-CZ2mpei3-DwC_8AXi.js} +7 -7
  5. package/dist/assets/{c4Diagram-c83219d4-gPr1eF38-BpklvzfC.js → c4Diagram-c83219d4-DL2EmCLj-Bb77Yjks.js} +2 -2
  6. package/dist/assets/channel-BKp1WYnX-BpupPR-0.js +1 -0
  7. package/dist/assets/classDiagram-beda092f-vKbJ2bcD-ByRiBo_z.js +2 -0
  8. package/dist/assets/classDiagram-v2-2358418a-BHXpn1Du-CsAMUMgi.js +2 -0
  9. package/dist/assets/clone-B1V2003j-DKfYfMmY.js +1 -0
  10. package/dist/assets/{createText-1719965b-D9Y3vUMn-UiwO3q8Q.js → createText-1719965b-C2-AT0ab-Ngc7i9D1.js} +2 -2
  11. package/dist/assets/edges-96097737-Zk-qG_8u-dmc-RUJc.js +4 -0
  12. package/dist/assets/{erDiagram-0228fc6a-BLw8FsIp-CkgJ5rpM.js → erDiagram-0228fc6a-B94anMjz-CVrsMLr0.js} +3 -3
  13. package/dist/assets/{flowDb-c6c81e3f-DXVkMlSE-DRQM6L-v.js → flowDb-c6c81e3f-CRRW-bQO-BYHCtAAr.js} +4 -4
  14. package/dist/assets/{flowDiagram-50d868cf-mkkB0hFd-CL_JosYM.js → flowDiagram-50d868cf-DPzQMhJv-CrArx2UT.js} +4 -4
  15. package/dist/assets/flowDiagram-v2-4f6560a1-Si9enBmB-CcZjaZir.js +1 -0
  16. package/dist/assets/{flowchart-elk-definition-6af322e1-D9IbjnSJ-DWoCBlEO.js → flowchart-elk-definition-6af322e1-CULhtvD--Bc4SZDEI.js} +1 -1
  17. package/dist/assets/{ganttDiagram-a2739b55-Cqs5_Zht-CyVqot_b.js → ganttDiagram-a2739b55-Bp8yOLEz-DMtD2BxT.js} +3 -3
  18. package/dist/assets/{gitGraphDiagram-82fe8481-txBzFn40-CZkxfaP2.js → gitGraphDiagram-82fe8481-BYtOQJl0-BxXpgB9C.js} +1 -1
  19. package/dist/assets/{graph-BZahQKIN-CTgzd5us.js → graph-BV6jB5rk-DcOA8BmL.js} +1 -1
  20. package/dist/assets/{index-CDwx2U7N.js → index-3H3i7ExC.js} +156 -156
  21. package/dist/assets/{index-5325376f-DsNDppci-BaFeDo3U.js → index-5325376f-DrY72DrM-BQxxLtiM.js} +1 -1
  22. package/dist/assets/index-DlFdZiHl-B3vsLXXB.js +134 -0
  23. package/dist/assets/{infoDiagram-8eee0895-SbmhgTjv-CCnN8bBn.js → infoDiagram-8eee0895-C6GFnrZ7-OKacvbId.js} +4 -4
  24. package/dist/assets/{journeyDiagram-c64418c1-C7AiwbKr-YZTGwLv1.js → journeyDiagram-c64418c1-daS1W8qe-BkJ9QLFM.js} +4 -4
  25. package/dist/assets/{layout-j-hMNqAM-C88IAVJC.js → layout-LXMv3mSS-CNNBHyhJ.js} +1 -1
  26. package/dist/assets/{mindmap-definition-8da855dc-B1WjnfxE-a9TK-xQN.js → mindmap-definition-8da855dc-DmNQYVT1-BsCbTj6n.js} +1 -1
  27. package/dist/assets/{pieDiagram-a8764435-zrkaw4r--BMPBVA0x.js → pieDiagram-a8764435-381urBY5-A6raAt-D.js} +5 -5
  28. package/dist/assets/{quadrantDiagram-1e28029f-C2Wa5n16-DwWDm6cx.js → quadrantDiagram-1e28029f-hgRmK2bX-CiuNGTtQ.js} +4 -4
  29. package/dist/assets/{requirementDiagram-08caed73-BtHxx079-zeP-18qR.js → requirementDiagram-08caed73-BB0Q-cI9-T9Fr-hSN.js} +1 -1
  30. package/dist/assets/{sankeyDiagram-a04cb91d-DXlmqTKB-BJu62Tg5.js → sankeyDiagram-a04cb91d-BpsipZNt-DeqT-JYz.js} +5 -5
  31. package/dist/assets/{sequenceDiagram-c5b8d532-BVQF3vcA-GR7-Xw8e.js → sequenceDiagram-c5b8d532-xoAvPcQJ-Dh_25-gi.js} +4 -4
  32. package/dist/assets/{stateDiagram-1ecb1508-Dybc3i2m-BMJzxrY5.js → stateDiagram-1ecb1508-b721R49K-DfgySJAt.js} +1 -1
  33. package/dist/assets/stateDiagram-v2-c2b004d7-BmSbrbqZ-BT-EqIcl.js +1 -0
  34. package/dist/assets/{styles-b4e223ce-BSiU4oYL-9ql-THae.js → styles-b4e223ce-TYmJC5IN-CyGeIEtW.js} +3 -3
  35. package/dist/assets/{styles-ca3715f6-DU7x0doE-B7zhH0Zm.js → styles-ca3715f6-CfJZu0Yn-Czxwj2Eo.js} +2 -2
  36. package/dist/assets/{styles-d45a18b0-B_CU21kM--NwLlmWK.js → styles-d45a18b0-DZ8oSYcV-KS40LPFU.js} +3 -3
  37. package/dist/assets/{svgDrawCommon-b86b1483-sbEe2n2v-CJw2W-Er.js → svgDrawCommon-b86b1483-CXPkN8HW-Dq40yjrO.js} +1 -1
  38. package/dist/assets/{timeline-definition-faaaa080-b82QCnJ9-CY85LKH1.js → timeline-definition-faaaa080-LDFf1jfb-CB8wN-VT.js} +6 -6
  39. package/dist/assets/{xychartDiagram-f5964ef8-BtRcO0uy-ylxrBreP.js → xychartDiagram-f5964ef8-DdhO5-Bp-B3w4U23E.js} +3 -3
  40. package/dist/index.html +1 -1
  41. package/package.json +2 -2
  42. package/dist/assets/arc-CvECY7sY-BAfm7gAl.js +0 -1
  43. package/dist/assets/channel-6PI3wNcc-1exBkyGg.js +0 -1
  44. package/dist/assets/classDiagram-beda092f-B8axaKGu-C7KpiekH.js +0 -2
  45. package/dist/assets/classDiagram-v2-2358418a-DPdf2DxR-CfXv0anP.js +0 -2
  46. package/dist/assets/clone-D01vUIhD-D0aslzw6.js +0 -1
  47. package/dist/assets/edges-96097737-Zc6U9nQz-Czq3--42.js +0 -4
  48. package/dist/assets/flowDiagram-v2-4f6560a1-BRIhxQ3y-BzGZQhJW.js +0 -1
  49. package/dist/assets/stateDiagram-v2-c2b004d7-Bp8rRkv2-Dm74LB8O.js +0 -1
@@ -1,9 +1,9 @@
1
- import{M as ut,L as nt,S as g,R as rt,D as at,N as lt,I as ot,p as $,u as He,O as ct,j as ht,G as At,V as Ie,F as G}from"./index-CDwx2U7N.js";var xe=function(){var e=function(S,n,o,i){for(o=o||{},i=S.length;i--;o[S[i]]=n);return o},u=[1,17],r=[1,18],a=[1,19],c=[1,39],p=[1,40],m=[1,25],D=[1,23],B=[1,24],Ae=[1,31],pe=[1,32],de=[1,33],ye=[1,34],Ee=[1,35],fe=[1,36],Ce=[1,26],me=[1,27],be=[1,28],ke=[1,29],d=[1,43],Fe=[1,30],y=[1,42],E=[1,44],f=[1,41],b=[1,45],ge=[1,9],l=[1,8,9],z=[1,56],K=[1,57],Y=[1,58],j=[1,59],Q=[1,60],Te=[1,61],De=[1,62],X=[1,8,9,39],Me=[1,74],P=[1,8,9,12,13,21,37,39,42,59,60,61,62,63,64,65,70,72],H=[1,8,9,12,13,19,21,37,39,42,46,59,60,61,62,63,64,65,70,72,74,80,95,97,98],W=[13,74,80,95,97,98],M=[13,64,65,74,80,95,97,98],Ge=[13,59,60,61,62,63,74,80,95,97,98],Be=[1,93],q=[1,110],V=[1,108],J=[1,102],Z=[1,103],ee=[1,104],te=[1,105],se=[1,106],ie=[1,107],ue=[1,109],_e=[1,8,9,37,39,42],ne=[1,8,9,21],Ue=[1,8,9,78],_=[1,8,9,21,73,74,78,80,81,82,83,84,85],Se={trace:function(){},yy:{},symbols_:{error:2,start:3,mermaidDoc:4,statements:5,graphConfig:6,CLASS_DIAGRAM:7,NEWLINE:8,EOF:9,statement:10,classLabel:11,SQS:12,STR:13,SQE:14,namespaceName:15,alphaNumToken:16,className:17,classLiteralName:18,GENERICTYPE:19,relationStatement:20,LABEL:21,namespaceStatement:22,classStatement:23,memberStatement:24,annotationStatement:25,clickStatement:26,styleStatement:27,cssClassStatement:28,noteStatement:29,direction:30,acc_title:31,acc_title_value:32,acc_descr:33,acc_descr_value:34,acc_descr_multiline_value:35,namespaceIdentifier:36,STRUCT_START:37,classStatements:38,STRUCT_STOP:39,NAMESPACE:40,classIdentifier:41,STYLE_SEPARATOR:42,members:43,CLASS:44,ANNOTATION_START:45,ANNOTATION_END:46,MEMBER:47,SEPARATOR:48,relation:49,NOTE_FOR:50,noteText:51,NOTE:52,direction_tb:53,direction_bt:54,direction_rl:55,direction_lr:56,relationType:57,lineType:58,AGGREGATION:59,EXTENSION:60,COMPOSITION:61,DEPENDENCY:62,LOLLIPOP:63,LINE:64,DOTTED_LINE:65,CALLBACK:66,LINK:67,LINK_TARGET:68,CLICK:69,CALLBACK_NAME:70,CALLBACK_ARGS:71,HREF:72,STYLE:73,ALPHA:74,stylesOpt:75,CSSCLASS:76,style:77,COMMA:78,styleComponent:79,NUM:80,COLON:81,UNIT:82,SPACE:83,BRKT:84,PCT:85,commentToken:86,textToken:87,graphCodeTokens:88,textNoTagsToken:89,TAGSTART:90,TAGEND:91,"==":92,"--":93,DEFAULT:94,MINUS:95,keywords:96,UNICODE_TEXT:97,BQUOTE_STR:98,$accept:0,$end:1},terminals_:{2:"error",7:"CLASS_DIAGRAM",8:"NEWLINE",9:"EOF",12:"SQS",13:"STR",14:"SQE",19:"GENERICTYPE",21:"LABEL",31:"acc_title",32:"acc_title_value",33:"acc_descr",34:"acc_descr_value",35:"acc_descr_multiline_value",37:"STRUCT_START",39:"STRUCT_STOP",40:"NAMESPACE",42:"STYLE_SEPARATOR",44:"CLASS",45:"ANNOTATION_START",46:"ANNOTATION_END",47:"MEMBER",48:"SEPARATOR",50:"NOTE_FOR",52:"NOTE",53:"direction_tb",54:"direction_bt",55:"direction_rl",56:"direction_lr",59:"AGGREGATION",60:"EXTENSION",61:"COMPOSITION",62:"DEPENDENCY",63:"LOLLIPOP",64:"LINE",65:"DOTTED_LINE",66:"CALLBACK",67:"LINK",68:"LINK_TARGET",69:"CLICK",70:"CALLBACK_NAME",71:"CALLBACK_ARGS",72:"HREF",73:"STYLE",74:"ALPHA",76:"CSSCLASS",78:"COMMA",80:"NUM",81:"COLON",82:"UNIT",83:"SPACE",84:"BRKT",85:"PCT",88:"graphCodeTokens",90:"TAGSTART",91:"TAGEND",92:"==",93:"--",94:"DEFAULT",95:"MINUS",96:"keywords",97:"UNICODE_TEXT",98:"BQUOTE_STR"},productions_:[0,[3,1],[3,1],[4,1],[6,4],[5,1],[5,2],[5,3],[11,3],[15,1],[15,2],[17,1],[17,1],[17,2],[17,2],[17,2],[10,1],[10,2],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,2],[10,2],[10,1],[22,4],[22,5],[36,2],[38,1],[38,2],[38,3],[23,1],[23,3],[23,4],[23,6],[41,2],[41,3],[25,4],[43,1],[43,2],[24,1],[24,2],[24,1],[24,1],[20,3],[20,4],[20,4],[20,5],[29,3],[29,2],[30,1],[30,1],[30,1],[30,1],[49,3],[49,2],[49,2],[49,1],[57,1],[57,1],[57,1],[57,1],[57,1],[58,1],[58,1],[26,3],[26,4],[26,3],[26,4],[26,4],[26,5],[26,3],[26,4],[26,4],[26,5],[26,4],[26,5],[26,5],[26,6],[27,3],[28,3],[75,1],[75,3],[77,1],[77,2],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[86,1],[86,1],[87,1],[87,1],[87,1],[87,1],[87,1],[87,1],[87,1],[89,1],[89,1],[89,1],[89,1],[16,1],[16,1],[16,1],[16,1],[18,1],[51,1]],performAction:function(S,n,o,i,h,t,k){var s=t.length-1;switch(h){case 8:this.$=t[s-1];break;case 9:case 11:case 12:this.$=t[s];break;case 10:case 13:this.$=t[s-1]+t[s];break;case 14:case 15:this.$=t[s-1]+"~"+t[s]+"~";break;case 16:i.addRelation(t[s]);break;case 17:t[s-1].title=i.cleanupLabel(t[s]),i.addRelation(t[s-1]);break;case 27:this.$=t[s].trim(),i.setAccTitle(this.$);break;case 28:case 29:this.$=t[s].trim(),i.setAccDescription(this.$);break;case 30:i.addClassesToNamespace(t[s-3],t[s-1]);break;case 31:i.addClassesToNamespace(t[s-4],t[s-1]);break;case 32:this.$=t[s],i.addNamespace(t[s]);break;case 33:this.$=[t[s]];break;case 34:this.$=[t[s-1]];break;case 35:t[s].unshift(t[s-2]),this.$=t[s];break;case 37:i.setCssClass(t[s-2],t[s]);break;case 38:i.addMembers(t[s-3],t[s-1]);break;case 39:i.setCssClass(t[s-5],t[s-3]),i.addMembers(t[s-5],t[s-1]);break;case 40:this.$=t[s],i.addClass(t[s]);break;case 41:this.$=t[s-1],i.addClass(t[s-1]),i.setClassLabel(t[s-1],t[s]);break;case 42:i.addAnnotation(t[s],t[s-2]);break;case 43:this.$=[t[s]];break;case 44:t[s].push(t[s-1]),this.$=t[s];break;case 45:break;case 46:i.addMember(t[s-1],i.cleanupLabel(t[s]));break;case 47:break;case 48:break;case 49:this.$={id1:t[s-2],id2:t[s],relation:t[s-1],relationTitle1:"none",relationTitle2:"none"};break;case 50:this.$={id1:t[s-3],id2:t[s],relation:t[s-1],relationTitle1:t[s-2],relationTitle2:"none"};break;case 51:this.$={id1:t[s-3],id2:t[s],relation:t[s-2],relationTitle1:"none",relationTitle2:t[s-1]};break;case 52:this.$={id1:t[s-4],id2:t[s],relation:t[s-2],relationTitle1:t[s-3],relationTitle2:t[s-1]};break;case 53:i.addNote(t[s],t[s-1]);break;case 54:i.addNote(t[s]);break;case 55:i.setDirection("TB");break;case 56:i.setDirection("BT");break;case 57:i.setDirection("RL");break;case 58:i.setDirection("LR");break;case 59:this.$={type1:t[s-2],type2:t[s],lineType:t[s-1]};break;case 60:this.$={type1:"none",type2:t[s],lineType:t[s-1]};break;case 61:this.$={type1:t[s-1],type2:"none",lineType:t[s]};break;case 62:this.$={type1:"none",type2:"none",lineType:t[s]};break;case 63:this.$=i.relationType.AGGREGATION;break;case 64:this.$=i.relationType.EXTENSION;break;case 65:this.$=i.relationType.COMPOSITION;break;case 66:this.$=i.relationType.DEPENDENCY;break;case 67:this.$=i.relationType.LOLLIPOP;break;case 68:this.$=i.lineType.LINE;break;case 69:this.$=i.lineType.DOTTED_LINE;break;case 70:case 76:this.$=t[s-2],i.setClickEvent(t[s-1],t[s]);break;case 71:case 77:this.$=t[s-3],i.setClickEvent(t[s-2],t[s-1]),i.setTooltip(t[s-2],t[s]);break;case 72:this.$=t[s-2],i.setLink(t[s-1],t[s]);break;case 73:this.$=t[s-3],i.setLink(t[s-2],t[s-1],t[s]);break;case 74:this.$=t[s-3],i.setLink(t[s-2],t[s-1]),i.setTooltip(t[s-2],t[s]);break;case 75:this.$=t[s-4],i.setLink(t[s-3],t[s-2],t[s]),i.setTooltip(t[s-3],t[s-1]);break;case 78:this.$=t[s-3],i.setClickEvent(t[s-2],t[s-1],t[s]);break;case 79:this.$=t[s-4],i.setClickEvent(t[s-3],t[s-2],t[s-1]),i.setTooltip(t[s-3],t[s]);break;case 80:this.$=t[s-3],i.setLink(t[s-2],t[s]);break;case 81:this.$=t[s-4],i.setLink(t[s-3],t[s-1],t[s]);break;case 82:this.$=t[s-4],i.setLink(t[s-3],t[s-1]),i.setTooltip(t[s-3],t[s]);break;case 83:this.$=t[s-5],i.setLink(t[s-4],t[s-2],t[s]),i.setTooltip(t[s-4],t[s-1]);break;case 84:this.$=t[s-2],i.setCssStyle(t[s-1],t[s]);break;case 85:i.setCssClass(t[s-1],t[s]);break;case 86:this.$=[t[s]];break;case 87:t[s-2].push(t[s]),this.$=t[s-2];break;case 89:this.$=t[s-1]+t[s];break}},table:[{3:1,4:2,5:3,6:4,7:[1,6],10:5,16:37,17:20,18:38,20:7,22:8,23:9,24:10,25:11,26:12,27:13,28:14,29:15,30:16,31:u,33:r,35:a,36:21,40:c,41:22,44:p,45:m,47:D,48:B,50:Ae,52:pe,53:de,54:ye,55:Ee,56:fe,66:Ce,67:me,69:be,73:ke,74:d,76:Fe,80:y,95:E,97:f,98:b},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,3]},e(ge,[2,5],{8:[1,46]}),{8:[1,47]},e(l,[2,16],{21:[1,48]}),e(l,[2,18]),e(l,[2,19]),e(l,[2,20]),e(l,[2,21]),e(l,[2,22]),e(l,[2,23]),e(l,[2,24]),e(l,[2,25]),e(l,[2,26]),{32:[1,49]},{34:[1,50]},e(l,[2,29]),e(l,[2,45],{49:51,57:54,58:55,13:[1,52],21:[1,53],59:z,60:K,61:Y,62:j,63:Q,64:Te,65:De}),{37:[1,63]},e(X,[2,36],{37:[1,65],42:[1,64]}),e(l,[2,47]),e(l,[2,48]),{16:66,74:d,80:y,95:E,97:f},{16:37,17:67,18:38,74:d,80:y,95:E,97:f,98:b},{16:37,17:68,18:38,74:d,80:y,95:E,97:f,98:b},{16:37,17:69,18:38,74:d,80:y,95:E,97:f,98:b},{74:[1,70]},{13:[1,71]},{16:37,17:72,18:38,74:d,80:y,95:E,97:f,98:b},{13:Me,51:73},e(l,[2,55]),e(l,[2,56]),e(l,[2,57]),e(l,[2,58]),e(P,[2,11],{16:37,18:38,17:75,19:[1,76],74:d,80:y,95:E,97:f,98:b}),e(P,[2,12],{19:[1,77]}),{15:78,16:79,74:d,80:y,95:E,97:f},{16:37,17:80,18:38,74:d,80:y,95:E,97:f,98:b},e(H,[2,112]),e(H,[2,113]),e(H,[2,114]),e(H,[2,115]),e([1,8,9,12,13,19,21,37,39,42,59,60,61,62,63,64,65,70,72],[2,116]),e(ge,[2,6],{10:5,20:7,22:8,23:9,24:10,25:11,26:12,27:13,28:14,29:15,30:16,17:20,36:21,41:22,16:37,18:38,5:81,31:u,33:r,35:a,40:c,44:p,45:m,47:D,48:B,50:Ae,52:pe,53:de,54:ye,55:Ee,56:fe,66:Ce,67:me,69:be,73:ke,74:d,76:Fe,80:y,95:E,97:f,98:b}),{5:82,10:5,16:37,17:20,18:38,20:7,22:8,23:9,24:10,25:11,26:12,27:13,28:14,29:15,30:16,31:u,33:r,35:a,36:21,40:c,41:22,44:p,45:m,47:D,48:B,50:Ae,52:pe,53:de,54:ye,55:Ee,56:fe,66:Ce,67:me,69:be,73:ke,74:d,76:Fe,80:y,95:E,97:f,98:b},e(l,[2,17]),e(l,[2,27]),e(l,[2,28]),{13:[1,84],16:37,17:83,18:38,74:d,80:y,95:E,97:f,98:b},{49:85,57:54,58:55,59:z,60:K,61:Y,62:j,63:Q,64:Te,65:De},e(l,[2,46]),{58:86,64:Te,65:De},e(W,[2,62],{57:87,59:z,60:K,61:Y,62:j,63:Q}),e(M,[2,63]),e(M,[2,64]),e(M,[2,65]),e(M,[2,66]),e(M,[2,67]),e(Ge,[2,68]),e(Ge,[2,69]),{8:[1,89],23:90,38:88,41:22,44:p},{16:91,74:d,80:y,95:E,97:f},{43:92,47:Be},{46:[1,94]},{13:[1,95]},{13:[1,96]},{70:[1,97],72:[1,98]},{21:q,73:V,74:J,75:99,77:100,79:101,80:Z,81:ee,82:te,83:se,84:ie,85:ue},{74:[1,111]},{13:Me,51:112},e(l,[2,54]),e(l,[2,117]),e(P,[2,13]),e(P,[2,14]),e(P,[2,15]),{37:[2,32]},{15:113,16:79,37:[2,9],74:d,80:y,95:E,97:f},e(_e,[2,40],{11:114,12:[1,115]}),e(ge,[2,7]),{9:[1,116]},e(ne,[2,49]),{16:37,17:117,18:38,74:d,80:y,95:E,97:f,98:b},{13:[1,119],16:37,17:118,18:38,74:d,80:y,95:E,97:f,98:b},e(W,[2,61],{57:120,59:z,60:K,61:Y,62:j,63:Q}),e(W,[2,60]),{39:[1,121]},{23:90,38:122,41:22,44:p},{8:[1,123],39:[2,33]},e(X,[2,37],{37:[1,124]}),{39:[1,125]},{39:[2,43],43:126,47:Be},{16:37,17:127,18:38,74:d,80:y,95:E,97:f,98:b},e(l,[2,70],{13:[1,128]}),e(l,[2,72],{13:[1,130],68:[1,129]}),e(l,[2,76],{13:[1,131],71:[1,132]}),{13:[1,133]},e(l,[2,84],{78:[1,134]}),e(Ue,[2,86],{79:135,21:q,73:V,74:J,80:Z,81:ee,82:te,83:se,84:ie,85:ue}),e(_,[2,88]),e(_,[2,90]),e(_,[2,91]),e(_,[2,92]),e(_,[2,93]),e(_,[2,94]),e(_,[2,95]),e(_,[2,96]),e(_,[2,97]),e(_,[2,98]),e(l,[2,85]),e(l,[2,53]),{37:[2,10]},e(_e,[2,41]),{13:[1,136]},{1:[2,4]},e(ne,[2,51]),e(ne,[2,50]),{16:37,17:137,18:38,74:d,80:y,95:E,97:f,98:b},e(W,[2,59]),e(l,[2,30]),{39:[1,138]},{23:90,38:139,39:[2,34],41:22,44:p},{43:140,47:Be},e(X,[2,38]),{39:[2,44]},e(l,[2,42]),e(l,[2,71]),e(l,[2,73]),e(l,[2,74],{68:[1,141]}),e(l,[2,77]),e(l,[2,78],{13:[1,142]}),e(l,[2,80],{13:[1,144],68:[1,143]}),{21:q,73:V,74:J,77:145,79:101,80:Z,81:ee,82:te,83:se,84:ie,85:ue},e(_,[2,89]),{14:[1,146]},e(ne,[2,52]),e(l,[2,31]),{39:[2,35]},{39:[1,147]},e(l,[2,75]),e(l,[2,79]),e(l,[2,81]),e(l,[2,82],{68:[1,148]}),e(Ue,[2,87],{79:135,21:q,73:V,74:J,80:Z,81:ee,82:te,83:se,84:ie,85:ue}),e(_e,[2,8]),e(X,[2,39]),e(l,[2,83])],defaultActions:{2:[2,1],3:[2,2],4:[2,3],78:[2,32],113:[2,10],116:[2,4],126:[2,44],139:[2,35]},parseError:function(S,n){if(n.recoverable)this.trace(S);else{var o=new Error(S);throw o.hash=n,o}},parse:function(S){var n=this,o=[0],i=[],h=[null],t=[],k=this.table,s="",re=0,ze=0,et=2,Ke=1,tt=t.slice.call(arguments,1),C=Object.create(this.lexer),O={yy:{}};for(var Le in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Le)&&(O.yy[Le]=this.yy[Le]);C.setInput(S,O.yy),O.yy.lexer=C,O.yy.parser=this,typeof C.yylloc>"u"&&(C.yylloc={});var $e=C.yylloc;t.push($e);var st=C.options&&C.options.ranges;typeof O.yy.parseError=="function"?this.parseError=O.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function it(){var L;return L=i.pop()||C.lex()||Ke,typeof L!="number"&&(L instanceof Array&&(i=L,L=i.pop()),L=n.symbols_[L]||L),L}for(var F,I,T,ve,w={},ae,N,Ye,le;;){if(I=o[o.length-1],this.defaultActions[I]?T=this.defaultActions[I]:((F===null||typeof F>"u")&&(F=it()),T=k[I]&&k[I][F]),typeof T>"u"||!T.length||!T[0]){var Oe="";le=[];for(ae in k[I])this.terminals_[ae]&&ae>et&&le.push("'"+this.terminals_[ae]+"'");C.showPosition?Oe="Parse error on line "+(re+1)+`:
1
+ import{j as ut,M as nt,E as g,D as rt,L as at,R as lt,N as ot,m as $,f as We,O as ct,I as ht,W as At,Z as Ie,F as G}from"./index-3H3i7ExC.js";var xe=function(){var e=function(S,n,o,i){for(o=o||{},i=S.length;i--;o[S[i]]=n);return o},u=[1,17],r=[1,18],a=[1,19],c=[1,39],p=[1,40],m=[1,25],D=[1,23],B=[1,24],Ae=[1,31],pe=[1,32],de=[1,33],ye=[1,34],Ee=[1,35],fe=[1,36],Ce=[1,26],me=[1,27],be=[1,28],ke=[1,29],d=[1,43],Fe=[1,30],y=[1,42],E=[1,44],f=[1,41],b=[1,45],ge=[1,9],l=[1,8,9],z=[1,56],K=[1,57],Y=[1,58],Q=[1,59],j=[1,60],Te=[1,61],De=[1,62],X=[1,8,9,39],Me=[1,74],P=[1,8,9,12,13,21,37,39,42,59,60,61,62,63,64,65,70,72],W=[1,8,9,12,13,19,21,37,39,42,46,59,60,61,62,63,64,65,70,72,74,80,95,97,98],H=[13,74,80,95,97,98],M=[13,64,65,74,80,95,97,98],Ge=[13,59,60,61,62,63,74,80,95,97,98],Be=[1,93],q=[1,110],Z=[1,108],J=[1,102],V=[1,103],ee=[1,104],te=[1,105],se=[1,106],ie=[1,107],ue=[1,109],_e=[1,8,9,37,39,42],ne=[1,8,9,21],Ue=[1,8,9,78],_=[1,8,9,21,73,74,78,80,81,82,83,84,85],Se={trace:function(){},yy:{},symbols_:{error:2,start:3,mermaidDoc:4,statements:5,graphConfig:6,CLASS_DIAGRAM:7,NEWLINE:8,EOF:9,statement:10,classLabel:11,SQS:12,STR:13,SQE:14,namespaceName:15,alphaNumToken:16,className:17,classLiteralName:18,GENERICTYPE:19,relationStatement:20,LABEL:21,namespaceStatement:22,classStatement:23,memberStatement:24,annotationStatement:25,clickStatement:26,styleStatement:27,cssClassStatement:28,noteStatement:29,direction:30,acc_title:31,acc_title_value:32,acc_descr:33,acc_descr_value:34,acc_descr_multiline_value:35,namespaceIdentifier:36,STRUCT_START:37,classStatements:38,STRUCT_STOP:39,NAMESPACE:40,classIdentifier:41,STYLE_SEPARATOR:42,members:43,CLASS:44,ANNOTATION_START:45,ANNOTATION_END:46,MEMBER:47,SEPARATOR:48,relation:49,NOTE_FOR:50,noteText:51,NOTE:52,direction_tb:53,direction_bt:54,direction_rl:55,direction_lr:56,relationType:57,lineType:58,AGGREGATION:59,EXTENSION:60,COMPOSITION:61,DEPENDENCY:62,LOLLIPOP:63,LINE:64,DOTTED_LINE:65,CALLBACK:66,LINK:67,LINK_TARGET:68,CLICK:69,CALLBACK_NAME:70,CALLBACK_ARGS:71,HREF:72,STYLE:73,ALPHA:74,stylesOpt:75,CSSCLASS:76,style:77,COMMA:78,styleComponent:79,NUM:80,COLON:81,UNIT:82,SPACE:83,BRKT:84,PCT:85,commentToken:86,textToken:87,graphCodeTokens:88,textNoTagsToken:89,TAGSTART:90,TAGEND:91,"==":92,"--":93,DEFAULT:94,MINUS:95,keywords:96,UNICODE_TEXT:97,BQUOTE_STR:98,$accept:0,$end:1},terminals_:{2:"error",7:"CLASS_DIAGRAM",8:"NEWLINE",9:"EOF",12:"SQS",13:"STR",14:"SQE",19:"GENERICTYPE",21:"LABEL",31:"acc_title",32:"acc_title_value",33:"acc_descr",34:"acc_descr_value",35:"acc_descr_multiline_value",37:"STRUCT_START",39:"STRUCT_STOP",40:"NAMESPACE",42:"STYLE_SEPARATOR",44:"CLASS",45:"ANNOTATION_START",46:"ANNOTATION_END",47:"MEMBER",48:"SEPARATOR",50:"NOTE_FOR",52:"NOTE",53:"direction_tb",54:"direction_bt",55:"direction_rl",56:"direction_lr",59:"AGGREGATION",60:"EXTENSION",61:"COMPOSITION",62:"DEPENDENCY",63:"LOLLIPOP",64:"LINE",65:"DOTTED_LINE",66:"CALLBACK",67:"LINK",68:"LINK_TARGET",69:"CLICK",70:"CALLBACK_NAME",71:"CALLBACK_ARGS",72:"HREF",73:"STYLE",74:"ALPHA",76:"CSSCLASS",78:"COMMA",80:"NUM",81:"COLON",82:"UNIT",83:"SPACE",84:"BRKT",85:"PCT",88:"graphCodeTokens",90:"TAGSTART",91:"TAGEND",92:"==",93:"--",94:"DEFAULT",95:"MINUS",96:"keywords",97:"UNICODE_TEXT",98:"BQUOTE_STR"},productions_:[0,[3,1],[3,1],[4,1],[6,4],[5,1],[5,2],[5,3],[11,3],[15,1],[15,2],[17,1],[17,1],[17,2],[17,2],[17,2],[10,1],[10,2],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,2],[10,2],[10,1],[22,4],[22,5],[36,2],[38,1],[38,2],[38,3],[23,1],[23,3],[23,4],[23,6],[41,2],[41,3],[25,4],[43,1],[43,2],[24,1],[24,2],[24,1],[24,1],[20,3],[20,4],[20,4],[20,5],[29,3],[29,2],[30,1],[30,1],[30,1],[30,1],[49,3],[49,2],[49,2],[49,1],[57,1],[57,1],[57,1],[57,1],[57,1],[58,1],[58,1],[26,3],[26,4],[26,3],[26,4],[26,4],[26,5],[26,3],[26,4],[26,4],[26,5],[26,4],[26,5],[26,5],[26,6],[27,3],[28,3],[75,1],[75,3],[77,1],[77,2],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[86,1],[86,1],[87,1],[87,1],[87,1],[87,1],[87,1],[87,1],[87,1],[89,1],[89,1],[89,1],[89,1],[16,1],[16,1],[16,1],[16,1],[18,1],[51,1]],performAction:function(S,n,o,i,h,t,k){var s=t.length-1;switch(h){case 8:this.$=t[s-1];break;case 9:case 11:case 12:this.$=t[s];break;case 10:case 13:this.$=t[s-1]+t[s];break;case 14:case 15:this.$=t[s-1]+"~"+t[s]+"~";break;case 16:i.addRelation(t[s]);break;case 17:t[s-1].title=i.cleanupLabel(t[s]),i.addRelation(t[s-1]);break;case 27:this.$=t[s].trim(),i.setAccTitle(this.$);break;case 28:case 29:this.$=t[s].trim(),i.setAccDescription(this.$);break;case 30:i.addClassesToNamespace(t[s-3],t[s-1]);break;case 31:i.addClassesToNamespace(t[s-4],t[s-1]);break;case 32:this.$=t[s],i.addNamespace(t[s]);break;case 33:this.$=[t[s]];break;case 34:this.$=[t[s-1]];break;case 35:t[s].unshift(t[s-2]),this.$=t[s];break;case 37:i.setCssClass(t[s-2],t[s]);break;case 38:i.addMembers(t[s-3],t[s-1]);break;case 39:i.setCssClass(t[s-5],t[s-3]),i.addMembers(t[s-5],t[s-1]);break;case 40:this.$=t[s],i.addClass(t[s]);break;case 41:this.$=t[s-1],i.addClass(t[s-1]),i.setClassLabel(t[s-1],t[s]);break;case 42:i.addAnnotation(t[s],t[s-2]);break;case 43:this.$=[t[s]];break;case 44:t[s].push(t[s-1]),this.$=t[s];break;case 45:break;case 46:i.addMember(t[s-1],i.cleanupLabel(t[s]));break;case 47:break;case 48:break;case 49:this.$={id1:t[s-2],id2:t[s],relation:t[s-1],relationTitle1:"none",relationTitle2:"none"};break;case 50:this.$={id1:t[s-3],id2:t[s],relation:t[s-1],relationTitle1:t[s-2],relationTitle2:"none"};break;case 51:this.$={id1:t[s-3],id2:t[s],relation:t[s-2],relationTitle1:"none",relationTitle2:t[s-1]};break;case 52:this.$={id1:t[s-4],id2:t[s],relation:t[s-2],relationTitle1:t[s-3],relationTitle2:t[s-1]};break;case 53:i.addNote(t[s],t[s-1]);break;case 54:i.addNote(t[s]);break;case 55:i.setDirection("TB");break;case 56:i.setDirection("BT");break;case 57:i.setDirection("RL");break;case 58:i.setDirection("LR");break;case 59:this.$={type1:t[s-2],type2:t[s],lineType:t[s-1]};break;case 60:this.$={type1:"none",type2:t[s],lineType:t[s-1]};break;case 61:this.$={type1:t[s-1],type2:"none",lineType:t[s]};break;case 62:this.$={type1:"none",type2:"none",lineType:t[s]};break;case 63:this.$=i.relationType.AGGREGATION;break;case 64:this.$=i.relationType.EXTENSION;break;case 65:this.$=i.relationType.COMPOSITION;break;case 66:this.$=i.relationType.DEPENDENCY;break;case 67:this.$=i.relationType.LOLLIPOP;break;case 68:this.$=i.lineType.LINE;break;case 69:this.$=i.lineType.DOTTED_LINE;break;case 70:case 76:this.$=t[s-2],i.setClickEvent(t[s-1],t[s]);break;case 71:case 77:this.$=t[s-3],i.setClickEvent(t[s-2],t[s-1]),i.setTooltip(t[s-2],t[s]);break;case 72:this.$=t[s-2],i.setLink(t[s-1],t[s]);break;case 73:this.$=t[s-3],i.setLink(t[s-2],t[s-1],t[s]);break;case 74:this.$=t[s-3],i.setLink(t[s-2],t[s-1]),i.setTooltip(t[s-2],t[s]);break;case 75:this.$=t[s-4],i.setLink(t[s-3],t[s-2],t[s]),i.setTooltip(t[s-3],t[s-1]);break;case 78:this.$=t[s-3],i.setClickEvent(t[s-2],t[s-1],t[s]);break;case 79:this.$=t[s-4],i.setClickEvent(t[s-3],t[s-2],t[s-1]),i.setTooltip(t[s-3],t[s]);break;case 80:this.$=t[s-3],i.setLink(t[s-2],t[s]);break;case 81:this.$=t[s-4],i.setLink(t[s-3],t[s-1],t[s]);break;case 82:this.$=t[s-4],i.setLink(t[s-3],t[s-1]),i.setTooltip(t[s-3],t[s]);break;case 83:this.$=t[s-5],i.setLink(t[s-4],t[s-2],t[s]),i.setTooltip(t[s-4],t[s-1]);break;case 84:this.$=t[s-2],i.setCssStyle(t[s-1],t[s]);break;case 85:i.setCssClass(t[s-1],t[s]);break;case 86:this.$=[t[s]];break;case 87:t[s-2].push(t[s]),this.$=t[s-2];break;case 89:this.$=t[s-1]+t[s];break}},table:[{3:1,4:2,5:3,6:4,7:[1,6],10:5,16:37,17:20,18:38,20:7,22:8,23:9,24:10,25:11,26:12,27:13,28:14,29:15,30:16,31:u,33:r,35:a,36:21,40:c,41:22,44:p,45:m,47:D,48:B,50:Ae,52:pe,53:de,54:ye,55:Ee,56:fe,66:Ce,67:me,69:be,73:ke,74:d,76:Fe,80:y,95:E,97:f,98:b},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,3]},e(ge,[2,5],{8:[1,46]}),{8:[1,47]},e(l,[2,16],{21:[1,48]}),e(l,[2,18]),e(l,[2,19]),e(l,[2,20]),e(l,[2,21]),e(l,[2,22]),e(l,[2,23]),e(l,[2,24]),e(l,[2,25]),e(l,[2,26]),{32:[1,49]},{34:[1,50]},e(l,[2,29]),e(l,[2,45],{49:51,57:54,58:55,13:[1,52],21:[1,53],59:z,60:K,61:Y,62:Q,63:j,64:Te,65:De}),{37:[1,63]},e(X,[2,36],{37:[1,65],42:[1,64]}),e(l,[2,47]),e(l,[2,48]),{16:66,74:d,80:y,95:E,97:f},{16:37,17:67,18:38,74:d,80:y,95:E,97:f,98:b},{16:37,17:68,18:38,74:d,80:y,95:E,97:f,98:b},{16:37,17:69,18:38,74:d,80:y,95:E,97:f,98:b},{74:[1,70]},{13:[1,71]},{16:37,17:72,18:38,74:d,80:y,95:E,97:f,98:b},{13:Me,51:73},e(l,[2,55]),e(l,[2,56]),e(l,[2,57]),e(l,[2,58]),e(P,[2,11],{16:37,18:38,17:75,19:[1,76],74:d,80:y,95:E,97:f,98:b}),e(P,[2,12],{19:[1,77]}),{15:78,16:79,74:d,80:y,95:E,97:f},{16:37,17:80,18:38,74:d,80:y,95:E,97:f,98:b},e(W,[2,112]),e(W,[2,113]),e(W,[2,114]),e(W,[2,115]),e([1,8,9,12,13,19,21,37,39,42,59,60,61,62,63,64,65,70,72],[2,116]),e(ge,[2,6],{10:5,20:7,22:8,23:9,24:10,25:11,26:12,27:13,28:14,29:15,30:16,17:20,36:21,41:22,16:37,18:38,5:81,31:u,33:r,35:a,40:c,44:p,45:m,47:D,48:B,50:Ae,52:pe,53:de,54:ye,55:Ee,56:fe,66:Ce,67:me,69:be,73:ke,74:d,76:Fe,80:y,95:E,97:f,98:b}),{5:82,10:5,16:37,17:20,18:38,20:7,22:8,23:9,24:10,25:11,26:12,27:13,28:14,29:15,30:16,31:u,33:r,35:a,36:21,40:c,41:22,44:p,45:m,47:D,48:B,50:Ae,52:pe,53:de,54:ye,55:Ee,56:fe,66:Ce,67:me,69:be,73:ke,74:d,76:Fe,80:y,95:E,97:f,98:b},e(l,[2,17]),e(l,[2,27]),e(l,[2,28]),{13:[1,84],16:37,17:83,18:38,74:d,80:y,95:E,97:f,98:b},{49:85,57:54,58:55,59:z,60:K,61:Y,62:Q,63:j,64:Te,65:De},e(l,[2,46]),{58:86,64:Te,65:De},e(H,[2,62],{57:87,59:z,60:K,61:Y,62:Q,63:j}),e(M,[2,63]),e(M,[2,64]),e(M,[2,65]),e(M,[2,66]),e(M,[2,67]),e(Ge,[2,68]),e(Ge,[2,69]),{8:[1,89],23:90,38:88,41:22,44:p},{16:91,74:d,80:y,95:E,97:f},{43:92,47:Be},{46:[1,94]},{13:[1,95]},{13:[1,96]},{70:[1,97],72:[1,98]},{21:q,73:Z,74:J,75:99,77:100,79:101,80:V,81:ee,82:te,83:se,84:ie,85:ue},{74:[1,111]},{13:Me,51:112},e(l,[2,54]),e(l,[2,117]),e(P,[2,13]),e(P,[2,14]),e(P,[2,15]),{37:[2,32]},{15:113,16:79,37:[2,9],74:d,80:y,95:E,97:f},e(_e,[2,40],{11:114,12:[1,115]}),e(ge,[2,7]),{9:[1,116]},e(ne,[2,49]),{16:37,17:117,18:38,74:d,80:y,95:E,97:f,98:b},{13:[1,119],16:37,17:118,18:38,74:d,80:y,95:E,97:f,98:b},e(H,[2,61],{57:120,59:z,60:K,61:Y,62:Q,63:j}),e(H,[2,60]),{39:[1,121]},{23:90,38:122,41:22,44:p},{8:[1,123],39:[2,33]},e(X,[2,37],{37:[1,124]}),{39:[1,125]},{39:[2,43],43:126,47:Be},{16:37,17:127,18:38,74:d,80:y,95:E,97:f,98:b},e(l,[2,70],{13:[1,128]}),e(l,[2,72],{13:[1,130],68:[1,129]}),e(l,[2,76],{13:[1,131],71:[1,132]}),{13:[1,133]},e(l,[2,84],{78:[1,134]}),e(Ue,[2,86],{79:135,21:q,73:Z,74:J,80:V,81:ee,82:te,83:se,84:ie,85:ue}),e(_,[2,88]),e(_,[2,90]),e(_,[2,91]),e(_,[2,92]),e(_,[2,93]),e(_,[2,94]),e(_,[2,95]),e(_,[2,96]),e(_,[2,97]),e(_,[2,98]),e(l,[2,85]),e(l,[2,53]),{37:[2,10]},e(_e,[2,41]),{13:[1,136]},{1:[2,4]},e(ne,[2,51]),e(ne,[2,50]),{16:37,17:137,18:38,74:d,80:y,95:E,97:f,98:b},e(H,[2,59]),e(l,[2,30]),{39:[1,138]},{23:90,38:139,39:[2,34],41:22,44:p},{43:140,47:Be},e(X,[2,38]),{39:[2,44]},e(l,[2,42]),e(l,[2,71]),e(l,[2,73]),e(l,[2,74],{68:[1,141]}),e(l,[2,77]),e(l,[2,78],{13:[1,142]}),e(l,[2,80],{13:[1,144],68:[1,143]}),{21:q,73:Z,74:J,77:145,79:101,80:V,81:ee,82:te,83:se,84:ie,85:ue},e(_,[2,89]),{14:[1,146]},e(ne,[2,52]),e(l,[2,31]),{39:[2,35]},{39:[1,147]},e(l,[2,75]),e(l,[2,79]),e(l,[2,81]),e(l,[2,82],{68:[1,148]}),e(Ue,[2,87],{79:135,21:q,73:Z,74:J,80:V,81:ee,82:te,83:se,84:ie,85:ue}),e(_e,[2,8]),e(X,[2,39]),e(l,[2,83])],defaultActions:{2:[2,1],3:[2,2],4:[2,3],78:[2,32],113:[2,10],116:[2,4],126:[2,44],139:[2,35]},parseError:function(S,n){if(n.recoverable)this.trace(S);else{var o=new Error(S);throw o.hash=n,o}},parse:function(S){var n=this,o=[0],i=[],h=[null],t=[],k=this.table,s="",re=0,ze=0,et=2,Ke=1,tt=t.slice.call(arguments,1),C=Object.create(this.lexer),O={yy:{}};for(var Le in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Le)&&(O.yy[Le]=this.yy[Le]);C.setInput(S,O.yy),O.yy.lexer=C,O.yy.parser=this,typeof C.yylloc>"u"&&(C.yylloc={});var $e=C.yylloc;t.push($e);var st=C.options&&C.options.ranges;typeof O.yy.parseError=="function"?this.parseError=O.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function it(){var L;return L=i.pop()||C.lex()||Ke,typeof L!="number"&&(L instanceof Array&&(i=L,L=i.pop()),L=n.symbols_[L]||L),L}for(var F,I,T,ve,w={},ae,N,Ye,le;;){if(I=o[o.length-1],this.defaultActions[I]?T=this.defaultActions[I]:((F===null||typeof F>"u")&&(F=it()),T=k[I]&&k[I][F]),typeof T>"u"||!T.length||!T[0]){var Oe="";le=[];for(ae in k[I])this.terminals_[ae]&&ae>et&&le.push("'"+this.terminals_[ae]+"'");C.showPosition?Oe="Parse error on line "+(re+1)+`:
2
2
  `+C.showPosition()+`
3
- Expecting `+le.join(", ")+", got '"+(this.terminals_[F]||F)+"'":Oe="Parse error on line "+(re+1)+": Unexpected "+(F==Ke?"end of input":"'"+(this.terminals_[F]||F)+"'"),this.parseError(Oe,{text:C.match,token:this.terminals_[F]||F,line:C.yylineno,loc:$e,expected:le})}if(T[0]instanceof Array&&T.length>1)throw new Error("Parse Error: multiple actions possible at state: "+I+", token: "+F);switch(T[0]){case 1:o.push(F),h.push(C.yytext),t.push(C.yylloc),o.push(T[1]),F=null,ze=C.yyleng,s=C.yytext,re=C.yylineno,$e=C.yylloc;break;case 2:if(N=this.productions_[T[1]][1],w.$=h[h.length-N],w._$={first_line:t[t.length-(N||1)].first_line,last_line:t[t.length-1].last_line,first_column:t[t.length-(N||1)].first_column,last_column:t[t.length-1].last_column},st&&(w._$.range=[t[t.length-(N||1)].range[0],t[t.length-1].range[1]]),ve=this.performAction.apply(w,[s,ze,re,O.yy,T[1],h,t].concat(tt)),typeof ve<"u")return ve;N&&(o=o.slice(0,-1*N*2),h=h.slice(0,-1*N),t=t.slice(0,-1*N)),o.push(this.productions_[T[1]][0]),h.push(w.$),t.push(w._$),Ye=k[o[o.length-2]][o[o.length-1]],o.push(Ye);break;case 3:return!0}}return!0}},Ze=function(){var S={EOF:1,parseError:function(n,o){if(this.yy.parser)this.yy.parser.parseError(n,o);else throw new Error(n)},setInput:function(n,o){return this.yy=o||this.yy||{},this._input=n,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 n=this._input[0];this.yytext+=n,this.yyleng++,this.offset++,this.match+=n,this.matched+=n;var o=n.match(/(?:\r\n?|\n).*/g);return o?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),n},unput:function(n){var o=n.length,i=n.split(/(?:\r\n?|\n)/g);this._input=n+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-o),this.offset-=o;var h=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 t=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===h.length?this.yylloc.first_column:0)+h[h.length-i.length].length-i[0].length:this.yylloc.first_column-o},this.options.ranges&&(this.yylloc.range=[t[0],t[0]+this.yyleng-o]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return 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).
3
+ Expecting `+le.join(", ")+", got '"+(this.terminals_[F]||F)+"'":Oe="Parse error on line "+(re+1)+": Unexpected "+(F==Ke?"end of input":"'"+(this.terminals_[F]||F)+"'"),this.parseError(Oe,{text:C.match,token:this.terminals_[F]||F,line:C.yylineno,loc:$e,expected:le})}if(T[0]instanceof Array&&T.length>1)throw new Error("Parse Error: multiple actions possible at state: "+I+", token: "+F);switch(T[0]){case 1:o.push(F),h.push(C.yytext),t.push(C.yylloc),o.push(T[1]),F=null,ze=C.yyleng,s=C.yytext,re=C.yylineno,$e=C.yylloc;break;case 2:if(N=this.productions_[T[1]][1],w.$=h[h.length-N],w._$={first_line:t[t.length-(N||1)].first_line,last_line:t[t.length-1].last_line,first_column:t[t.length-(N||1)].first_column,last_column:t[t.length-1].last_column},st&&(w._$.range=[t[t.length-(N||1)].range[0],t[t.length-1].range[1]]),ve=this.performAction.apply(w,[s,ze,re,O.yy,T[1],h,t].concat(tt)),typeof ve<"u")return ve;N&&(o=o.slice(0,-1*N*2),h=h.slice(0,-1*N),t=t.slice(0,-1*N)),o.push(this.productions_[T[1]][0]),h.push(w.$),t.push(w._$),Ye=k[o[o.length-2]][o[o.length-1]],o.push(Ye);break;case 3:return!0}}return!0}},Ve=function(){var S={EOF:1,parseError:function(n,o){if(this.yy.parser)this.yy.parser.parseError(n,o);else throw new Error(n)},setInput:function(n,o){return this.yy=o||this.yy||{},this._input=n,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 n=this._input[0];this.yytext+=n,this.yyleng++,this.offset++,this.match+=n,this.matched+=n;var o=n.match(/(?:\r\n?|\n).*/g);return o?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),n},unput:function(n){var o=n.length,i=n.split(/(?:\r\n?|\n)/g);this._input=n+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-o),this.offset-=o;var h=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 t=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===h.length?this.yylloc.first_column:0)+h[h.length-i.length].length-i[0].length:this.yylloc.first_column-o},this.options.ranges&&(this.yylloc.range=[t[0],t[0]+this.yyleng-o]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return 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).
4
4
  `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(n){this.unput(this.match.slice(n))},pastInput:function(){var n=this.matched.substr(0,this.matched.length-this.match.length);return(n.length>20?"...":"")+n.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var n=this.match;return n.length<20&&(n+=this._input.substr(0,20-n.length)),(n.substr(0,20)+(n.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var n=this.pastInput(),o=new Array(n.length+1).join("-");return n+this.upcomingInput()+`
5
5
  `+o+"^"},test_match:function(n,o){var i,h,t;if(this.options.backtrack_lexer&&(t={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&&(t.yylloc.range=this.yylloc.range.slice(0))),h=n[0].match(/(?:\r\n?|\n).*/g),h&&(this.yylineno+=h.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:h?h[h.length-1].length-h[h.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+n[0].length},this.yytext+=n[0],this.match+=n[0],this.matches=n,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(n[0].length),this.matched+=n[0],i=this.performAction.call(this,this.yy,this,o,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),i)return i;if(this._backtrack){for(var k in t)this[k]=t[k];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var n,o,i,h;this._more||(this.yytext="",this.match="");for(var t=this._currentRules(),k=0;k<t.length;k++)if(i=this._input.match(this.rules[t[k]]),i&&(!o||i[0].length>o[0].length)){if(o=i,h=k,this.options.backtrack_lexer){if(n=this.test_match(i,t[k]),n!==!1)return n;if(this._backtrack){o=!1;continue}else return!1}else if(!this.options.flex)break}return o?(n=this.test_match(o,t[h]),n!==!1?n:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
6
- `+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var n=this.next();return n||this.lex()},begin:function(n){this.conditionStack.push(n)},popState:function(){var n=this.conditionStack.length-1;return n>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(n){return n=this.conditionStack.length-1-Math.abs(n||0),n>=0?this.conditionStack[n]:"INITIAL"},pushState:function(n){this.begin(n)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(n,o,i,h){switch(i){case 0:return 53;case 1:return 54;case 2:return 55;case 3:return 56;case 4:break;case 5:break;case 6:return this.begin("acc_title"),31;case 7:return this.popState(),"acc_title_value";case 8:return this.begin("acc_descr"),33;case 9:return this.popState(),"acc_descr_value";case 10:this.begin("acc_descr_multiline");break;case 11:this.popState();break;case 12:return"acc_descr_multiline_value";case 13:return 8;case 14:break;case 15:return 7;case 16:return 7;case 17:return"EDGE_STATE";case 18:this.begin("callback_name");break;case 19:this.popState();break;case 20:this.popState(),this.begin("callback_args");break;case 21:return 70;case 22:this.popState();break;case 23:return 71;case 24:this.popState();break;case 25:return"STR";case 26:this.begin("string");break;case 27:return 73;case 28:return this.begin("namespace"),40;case 29:return this.popState(),8;case 30:break;case 31:return this.begin("namespace-body"),37;case 32:return this.popState(),39;case 33:return"EOF_IN_STRUCT";case 34:return 8;case 35:break;case 36:return"EDGE_STATE";case 37:return this.begin("class"),44;case 38:return this.popState(),8;case 39:break;case 40:return this.popState(),this.popState(),39;case 41:return this.begin("class-body"),37;case 42:return this.popState(),39;case 43:return"EOF_IN_STRUCT";case 44:return"EDGE_STATE";case 45:return"OPEN_IN_STRUCT";case 46:break;case 47:return"MEMBER";case 48:return 76;case 49:return 66;case 50:return 67;case 51:return 69;case 52:return 50;case 53:return 52;case 54:return 45;case 55:return 46;case 56:return 72;case 57:this.popState();break;case 58:return"GENERICTYPE";case 59:this.begin("generic");break;case 60:this.popState();break;case 61:return"BQUOTE_STR";case 62:this.begin("bqstring");break;case 63:return 68;case 64:return 68;case 65:return 68;case 66:return 68;case 67:return 60;case 68:return 60;case 69:return 62;case 70:return 62;case 71:return 61;case 72:return 59;case 73:return 63;case 74:return 64;case 75:return 65;case 76:return 21;case 77:return 42;case 78:return 95;case 79:return"DOT";case 80:return"PLUS";case 81:return 81;case 82:return 78;case 83:return 84;case 84:return 84;case 85:return 85;case 86:return"EQUALS";case 87:return"EQUALS";case 88:return 74;case 89:return 12;case 90:return 14;case 91:return"PUNCTUATION";case 92:return 80;case 93:return 97;case 94:return 83;case 95:return 83;case 96:return 9}},rules:[/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\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)/,/^(?:\[\*\])/,/^(?:call[\s]+)/,/^(?:\([\s]*\))/,/^(?:\()/,/^(?:[^(]*)/,/^(?:\))/,/^(?:[^)]*)/,/^(?:["])/,/^(?:[^"]*)/,/^(?:["])/,/^(?:style\b)/,/^(?:namespace\b)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:[{])/,/^(?:[}])/,/^(?:$)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:\[\*\])/,/^(?:class\b)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:[}])/,/^(?:[{])/,/^(?:[}])/,/^(?:$)/,/^(?:\[\*\])/,/^(?:[{])/,/^(?:[\n])/,/^(?:[^{}\n]*)/,/^(?:cssClass\b)/,/^(?:callback\b)/,/^(?:link\b)/,/^(?:click\b)/,/^(?:note for\b)/,/^(?:note\b)/,/^(?:<<)/,/^(?:>>)/,/^(?:href\b)/,/^(?:[~])/,/^(?:[^~]*)/,/^(?:~)/,/^(?:[`])/,/^(?:[^`]+)/,/^(?:[`])/,/^(?:_self\b)/,/^(?:_blank\b)/,/^(?:_parent\b)/,/^(?:_top\b)/,/^(?:\s*<\|)/,/^(?:\s*\|>)/,/^(?:\s*>)/,/^(?:\s*<)/,/^(?:\s*\*)/,/^(?:\s*o\b)/,/^(?:\s*\(\))/,/^(?:--)/,/^(?:\.\.)/,/^(?::{1}[^:\n;]+)/,/^(?::{3})/,/^(?:-)/,/^(?:\.)/,/^(?:\+)/,/^(?::)/,/^(?:,)/,/^(?:#)/,/^(?:#)/,/^(?:%)/,/^(?:=)/,/^(?:=)/,/^(?:\w+)/,/^(?:\[)/,/^(?:\])/,/^(?:[!"#$%&'*+,-.`?\\/])/,/^(?:[0-9]+)/,/^(?:[\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6]|[\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377]|[\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5]|[\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA]|[\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE]|[\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA]|[\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0]|[\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977]|[\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2]|[\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A]|[\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39]|[\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8]|[\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C]|[\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C]|[\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99]|[\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0]|[\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D]|[\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3]|[\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10]|[\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1]|[\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81]|[\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3]|[\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6]|[\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A]|[\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081]|[\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D]|[\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0]|[\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310]|[\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C]|[\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711]|[\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7]|[\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C]|[\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16]|[\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF]|[\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC]|[\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D]|[\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D]|[\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3]|[\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F]|[\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128]|[\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184]|[\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3]|[\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6]|[\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE]|[\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C]|[\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D]|[\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC]|[\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B]|[\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788]|[\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805]|[\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB]|[\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28]|[\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5]|[\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4]|[\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E]|[\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D]|[\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36]|[\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D]|[\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC]|[\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF]|[\uFFD2-\uFFD7\uFFDA-\uFFDC])/,/^(?:\s)/,/^(?:\s)/,/^(?:$)/],conditions:{"namespace-body":{rules:[26,32,33,34,35,36,37,48,49,50,51,52,53,54,55,56,59,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,85,86,87,88,89,90,91,92,93,94,96],inclusive:!1},namespace:{rules:[26,28,29,30,31,48,49,50,51,52,53,54,55,56,59,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,85,86,87,88,89,90,91,92,93,94,96],inclusive:!1},"class-body":{rules:[26,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,59,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,85,86,87,88,89,90,91,92,93,94,96],inclusive:!1},class:{rules:[26,38,39,40,41,48,49,50,51,52,53,54,55,56,59,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,85,86,87,88,89,90,91,92,93,94,96],inclusive:!1},acc_descr_multiline:{rules:[11,12,26,48,49,50,51,52,53,54,55,56,59,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,85,86,87,88,89,90,91,92,93,94,96],inclusive:!1},acc_descr:{rules:[9,26,48,49,50,51,52,53,54,55,56,59,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,85,86,87,88,89,90,91,92,93,94,96],inclusive:!1},acc_title:{rules:[7,26,48,49,50,51,52,53,54,55,56,59,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,85,86,87,88,89,90,91,92,93,94,96],inclusive:!1},callback_args:{rules:[22,23,26,48,49,50,51,52,53,54,55,56,59,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,85,86,87,88,89,90,91,92,93,94,96],inclusive:!1},callback_name:{rules:[19,20,21,26,48,49,50,51,52,53,54,55,56,59,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,85,86,87,88,89,90,91,92,93,94,96],inclusive:!1},href:{rules:[26,48,49,50,51,52,53,54,55,56,59,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,85,86,87,88,89,90,91,92,93,94,96],inclusive:!1},struct:{rules:[26,48,49,50,51,52,53,54,55,56,59,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,85,86,87,88,89,90,91,92,93,94,96],inclusive:!1},generic:{rules:[26,48,49,50,51,52,53,54,55,56,57,58,59,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,85,86,87,88,89,90,91,92,93,94,96],inclusive:!1},bqstring:{rules:[26,48,49,50,51,52,53,54,55,56,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,85,86,87,88,89,90,91,92,93,94,96],inclusive:!1},string:{rules:[24,25,26,48,49,50,51,52,53,54,55,56,59,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,85,86,87,88,89,90,91,92,93,94,96],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,8,10,13,14,15,16,17,18,26,27,28,37,48,49,50,51,52,53,54,55,56,59,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],inclusive:!0}}};return S}();Se.lexer=Ze;function Ne(){this.yy={}}return Ne.prototype=Se,Se.Parser=Ne,new Ne}();xe.parser=xe;const Ut=xe,je=["#","+","~","-",""];class Qe{constructor(u,r){this.memberType=r,this.visibility="",this.classifier="";const a=At(u,g());this.parseMember(a)}getDisplayDetails(){let u=this.visibility+Ie(this.id);this.memberType==="method"&&(u+=`(${Ie(this.parameters.trim())})`,this.returnType&&(u+=" : "+Ie(this.returnType))),u=u.trim();const r=this.parseClassifier();return{displayText:u,cssStyle:r}}parseMember(u){let r="";if(this.memberType==="method"){const a=/([#+~-])?(.+)\((.*)\)([\s$*])?(.*)([$*])?/,c=u.match(a);if(c){const p=c[1]?c[1].trim():"";if(je.includes(p)&&(this.visibility=p),this.id=c[2].trim(),this.parameters=c[3]?c[3].trim():"",r=c[4]?c[4].trim():"",this.returnType=c[5]?c[5].trim():"",r===""){const m=this.returnType.substring(this.returnType.length-1);m.match(/[$*]/)&&(r=m,this.returnType=this.returnType.substring(0,this.returnType.length-1))}}}else{const a=u.length,c=u.substring(0,1),p=u.substring(a-1);je.includes(c)&&(this.visibility=c),p.match(/[$*]/)&&(r=p),this.id=u.substring(this.visibility===""?0:1,r===""?a:a-1)}this.classifier=r}parseClassifier(){switch(this.classifier){case"*":return"font-style:italic;";case"$":return"text-decoration:underline;";default:return""}}}const he="classId-";let we=[],A={},oe=[],Xe=0,v={},Re=0,U=[];const x=e=>$.sanitizeText(e,g()),R=function(e){const u=$.sanitizeText(e,g());let r="",a=u;if(u.indexOf("~")>0){const c=u.split("~");a=x(c[0]),r=x(c[1])}return{className:a,type:r}},pt=function(e,u){const r=$.sanitizeText(e,g());u&&(u=x(u));const{className:a}=R(r);A[a].label=u},ce=function(e){const u=$.sanitizeText(e,g()),{className:r,type:a}=R(u);if(Object.hasOwn(A,r))return;const c=$.sanitizeText(r,g());A[c]={id:c,type:a,label:c,cssClasses:[],methods:[],members:[],annotations:[],styles:[],domId:he+c+"-"+Xe},Xe++},We=function(e){const u=$.sanitizeText(e,g());if(u in A)return A[u].domId;throw new Error("Class not found: "+u)},dt=function(){we=[],A={},oe=[],U=[],U.push(Ve),v={},Re=0,ht()},yt=function(e){return A[e]},Et=function(){return A},ft=function(){return we},Ct=function(){return oe},mt=function(e){ct.debug("Adding relation: "+JSON.stringify(e)),ce(e.id1),ce(e.id2),e.id1=R(e.id1).className,e.id2=R(e.id2).className,e.relationTitle1=$.sanitizeText(e.relationTitle1.trim(),g()),e.relationTitle2=$.sanitizeText(e.relationTitle2.trim(),g()),we.push(e)},bt=function(e,u){const r=R(e).className;A[r].annotations.push(u)},qe=function(e,u){ce(e);const r=R(e).className,a=A[r];if(typeof u=="string"){const c=u.trim();c.startsWith("<<")&&c.endsWith(">>")?a.annotations.push(x(c.substring(2,c.length-2))):c.indexOf(")")>0?a.methods.push(new Qe(c,"method")):c&&a.members.push(new Qe(c,"attribute"))}},kt=function(e,u){Array.isArray(u)&&(u.reverse(),u.forEach(r=>qe(e,r)))},Ft=function(e,u){const r={id:`note${oe.length}`,class:u,text:e};oe.push(r)},gt=function(e){return e.startsWith(":")&&(e=e.substring(1)),x(e.trim())},Pe=function(e,u){e.split(",").forEach(function(r){let a=r;r[0].match(/\d/)&&(a=he+a),A[a]!==void 0&&A[a].cssClasses.push(u)})},Tt=function(e,u){e.split(",").forEach(function(r){u!==void 0&&(A[r].tooltip=x(u))})},Dt=function(e,u){return u?v[u].classes[e].tooltip:A[e].tooltip},Bt=function(e,u,r){const a=g();e.split(",").forEach(function(c){let p=c;c[0].match(/\d/)&&(p=he+p),A[p]!==void 0&&(A[p].link=He.formatUrl(u,a),a.securityLevel==="sandbox"?A[p].linkTarget="_top":typeof r=="string"?A[p].linkTarget=x(r):A[p].linkTarget="_blank")}),Pe(e,"clickable")},_t=function(e,u,r){e.split(",").forEach(function(a){St(a,u,r),A[a].haveCallback=!0}),Pe(e,"clickable")},St=function(e,u,r){const a=$.sanitizeText(e,g());if(g().securityLevel!=="loose"||u===void 0)return;const c=a;if(A[c]!==void 0){const p=We(c);let m=[];if(typeof r=="string"){m=r.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let D=0;D<m.length;D++){let B=m[D].trim();B.charAt(0)==='"'&&B.charAt(B.length-1)==='"'&&(B=B.substr(1,B.length-2)),m[D]=B}}m.length===0&&m.push(p),U.push(function(){const D=document.querySelector(`[id="${p}"]`);D!==null&&D.addEventListener("click",function(){He.runFunc(u,...m)},!1)})}},Nt=function(e){U.forEach(function(u){u(e)})},Lt={LINE:0,DOTTED_LINE:1},$t={AGGREGATION:0,EXTENSION:1,COMPOSITION:2,DEPENDENCY:3,LOLLIPOP:4},Ve=function(e){let u=G(".mermaidTooltip");(u._groups||u)[0][0]===null&&(u=G("body").append("div").attr("class","mermaidTooltip").style("opacity",0)),G(e).select("svg").selectAll("g.node").on("mouseover",function(){const r=G(this);if(r.attr("title")===null)return;const a=this.getBoundingClientRect();u.transition().duration(200).style("opacity",".9"),u.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"),u.html(u.html().replace(/&lt;br\/&gt;/g,"<br/>")),r.classed("hover",!0)}).on("mouseout",function(){u.transition().duration(500).style("opacity",0),G(this).classed("hover",!1)})};U.push(Ve);let Je="TB";const vt=()=>Je,Ot=e=>{Je=e},It=function(e){v[e]===void 0&&(v[e]={id:e,classes:{},children:{},domId:he+e+"-"+Re},Re++)},xt=function(e){return v[e]},Rt=function(){return v},wt=function(e,u){if(v[e]!==void 0)for(const r of u){const{className:a}=R(r);A[a].parent=e,v[e].classes[a]=A[a]}},Pt=function(e,u){const r=A[e];if(!(!u||!r))for(const a of u)a.includes(",")?r.styles.push(...a.split(",")):r.styles.push(a)},zt={setAccTitle:ot,getAccTitle:lt,getAccDescription:at,setAccDescription:rt,getConfig:()=>g().class,addClass:ce,bindFunctions:Nt,clear:dt,getClass:yt,getClasses:Et,getNotes:Ct,addAnnotation:bt,addNote:Ft,getRelations:ft,addRelation:mt,getDirection:vt,setDirection:Ot,addMember:qe,addMembers:kt,cleanupLabel:gt,lineType:Lt,relationType:$t,setClickEvent:_t,setCssClass:Pe,setLink:Bt,getTooltip:Dt,setTooltip:Tt,lookUpDomId:We,setDiagramTitle:nt,getDiagramTitle:ut,setClassLabel:pt,addNamespace:It,addClassesToNamespace:wt,getNamespace:xt,getNamespaces:Rt,setCssStyle:Pt},Mt=e=>`g.classGroup text {
6
+ `+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var n=this.next();return n||this.lex()},begin:function(n){this.conditionStack.push(n)},popState:function(){var n=this.conditionStack.length-1;return n>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(n){return n=this.conditionStack.length-1-Math.abs(n||0),n>=0?this.conditionStack[n]:"INITIAL"},pushState:function(n){this.begin(n)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(n,o,i,h){switch(i){case 0:return 53;case 1:return 54;case 2:return 55;case 3:return 56;case 4:break;case 5:break;case 6:return this.begin("acc_title"),31;case 7:return this.popState(),"acc_title_value";case 8:return this.begin("acc_descr"),33;case 9:return this.popState(),"acc_descr_value";case 10:this.begin("acc_descr_multiline");break;case 11:this.popState();break;case 12:return"acc_descr_multiline_value";case 13:return 8;case 14:break;case 15:return 7;case 16:return 7;case 17:return"EDGE_STATE";case 18:this.begin("callback_name");break;case 19:this.popState();break;case 20:this.popState(),this.begin("callback_args");break;case 21:return 70;case 22:this.popState();break;case 23:return 71;case 24:this.popState();break;case 25:return"STR";case 26:this.begin("string");break;case 27:return 73;case 28:return this.begin("namespace"),40;case 29:return this.popState(),8;case 30:break;case 31:return this.begin("namespace-body"),37;case 32:return this.popState(),39;case 33:return"EOF_IN_STRUCT";case 34:return 8;case 35:break;case 36:return"EDGE_STATE";case 37:return this.begin("class"),44;case 38:return this.popState(),8;case 39:break;case 40:return this.popState(),this.popState(),39;case 41:return this.begin("class-body"),37;case 42:return this.popState(),39;case 43:return"EOF_IN_STRUCT";case 44:return"EDGE_STATE";case 45:return"OPEN_IN_STRUCT";case 46:break;case 47:return"MEMBER";case 48:return 76;case 49:return 66;case 50:return 67;case 51:return 69;case 52:return 50;case 53:return 52;case 54:return 45;case 55:return 46;case 56:return 72;case 57:this.popState();break;case 58:return"GENERICTYPE";case 59:this.begin("generic");break;case 60:this.popState();break;case 61:return"BQUOTE_STR";case 62:this.begin("bqstring");break;case 63:return 68;case 64:return 68;case 65:return 68;case 66:return 68;case 67:return 60;case 68:return 60;case 69:return 62;case 70:return 62;case 71:return 61;case 72:return 59;case 73:return 63;case 74:return 64;case 75:return 65;case 76:return 21;case 77:return 42;case 78:return 95;case 79:return"DOT";case 80:return"PLUS";case 81:return 81;case 82:return 78;case 83:return 84;case 84:return 84;case 85:return 85;case 86:return"EQUALS";case 87:return"EQUALS";case 88:return 74;case 89:return 12;case 90:return 14;case 91:return"PUNCTUATION";case 92:return 80;case 93:return 97;case 94:return 83;case 95:return 83;case 96:return 9}},rules:[/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\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)/,/^(?:\[\*\])/,/^(?:call[\s]+)/,/^(?:\([\s]*\))/,/^(?:\()/,/^(?:[^(]*)/,/^(?:\))/,/^(?:[^)]*)/,/^(?:["])/,/^(?:[^"]*)/,/^(?:["])/,/^(?:style\b)/,/^(?:namespace\b)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:[{])/,/^(?:[}])/,/^(?:$)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:\[\*\])/,/^(?:class\b)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:[}])/,/^(?:[{])/,/^(?:[}])/,/^(?:$)/,/^(?:\[\*\])/,/^(?:[{])/,/^(?:[\n])/,/^(?:[^{}\n]*)/,/^(?:cssClass\b)/,/^(?:callback\b)/,/^(?:link\b)/,/^(?:click\b)/,/^(?:note for\b)/,/^(?:note\b)/,/^(?:<<)/,/^(?:>>)/,/^(?:href\b)/,/^(?:[~])/,/^(?:[^~]*)/,/^(?:~)/,/^(?:[`])/,/^(?:[^`]+)/,/^(?:[`])/,/^(?:_self\b)/,/^(?:_blank\b)/,/^(?:_parent\b)/,/^(?:_top\b)/,/^(?:\s*<\|)/,/^(?:\s*\|>)/,/^(?:\s*>)/,/^(?:\s*<)/,/^(?:\s*\*)/,/^(?:\s*o\b)/,/^(?:\s*\(\))/,/^(?:--)/,/^(?:\.\.)/,/^(?::{1}[^:\n;]+)/,/^(?::{3})/,/^(?:-)/,/^(?:\.)/,/^(?:\+)/,/^(?::)/,/^(?:,)/,/^(?:#)/,/^(?:#)/,/^(?:%)/,/^(?:=)/,/^(?:=)/,/^(?:\w+)/,/^(?:\[)/,/^(?:\])/,/^(?:[!"#$%&'*+,-.`?\\/])/,/^(?:[0-9]+)/,/^(?:[\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6]|[\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377]|[\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5]|[\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA]|[\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE]|[\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA]|[\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0]|[\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977]|[\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2]|[\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A]|[\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39]|[\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8]|[\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C]|[\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C]|[\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99]|[\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0]|[\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D]|[\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3]|[\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10]|[\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1]|[\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81]|[\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3]|[\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6]|[\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A]|[\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081]|[\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D]|[\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0]|[\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310]|[\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C]|[\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711]|[\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7]|[\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C]|[\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16]|[\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF]|[\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC]|[\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D]|[\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D]|[\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3]|[\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F]|[\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128]|[\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184]|[\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3]|[\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6]|[\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE]|[\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C]|[\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D]|[\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC]|[\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B]|[\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788]|[\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805]|[\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB]|[\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28]|[\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5]|[\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4]|[\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E]|[\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D]|[\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36]|[\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D]|[\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC]|[\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF]|[\uFFD2-\uFFD7\uFFDA-\uFFDC])/,/^(?:\s)/,/^(?:\s)/,/^(?:$)/],conditions:{"namespace-body":{rules:[26,32,33,34,35,36,37,48,49,50,51,52,53,54,55,56,59,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,85,86,87,88,89,90,91,92,93,94,96],inclusive:!1},namespace:{rules:[26,28,29,30,31,48,49,50,51,52,53,54,55,56,59,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,85,86,87,88,89,90,91,92,93,94,96],inclusive:!1},"class-body":{rules:[26,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,59,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,85,86,87,88,89,90,91,92,93,94,96],inclusive:!1},class:{rules:[26,38,39,40,41,48,49,50,51,52,53,54,55,56,59,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,85,86,87,88,89,90,91,92,93,94,96],inclusive:!1},acc_descr_multiline:{rules:[11,12,26,48,49,50,51,52,53,54,55,56,59,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,85,86,87,88,89,90,91,92,93,94,96],inclusive:!1},acc_descr:{rules:[9,26,48,49,50,51,52,53,54,55,56,59,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,85,86,87,88,89,90,91,92,93,94,96],inclusive:!1},acc_title:{rules:[7,26,48,49,50,51,52,53,54,55,56,59,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,85,86,87,88,89,90,91,92,93,94,96],inclusive:!1},callback_args:{rules:[22,23,26,48,49,50,51,52,53,54,55,56,59,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,85,86,87,88,89,90,91,92,93,94,96],inclusive:!1},callback_name:{rules:[19,20,21,26,48,49,50,51,52,53,54,55,56,59,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,85,86,87,88,89,90,91,92,93,94,96],inclusive:!1},href:{rules:[26,48,49,50,51,52,53,54,55,56,59,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,85,86,87,88,89,90,91,92,93,94,96],inclusive:!1},struct:{rules:[26,48,49,50,51,52,53,54,55,56,59,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,85,86,87,88,89,90,91,92,93,94,96],inclusive:!1},generic:{rules:[26,48,49,50,51,52,53,54,55,56,57,58,59,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,85,86,87,88,89,90,91,92,93,94,96],inclusive:!1},bqstring:{rules:[26,48,49,50,51,52,53,54,55,56,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,85,86,87,88,89,90,91,92,93,94,96],inclusive:!1},string:{rules:[24,25,26,48,49,50,51,52,53,54,55,56,59,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,85,86,87,88,89,90,91,92,93,94,96],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,8,10,13,14,15,16,17,18,26,27,28,37,48,49,50,51,52,53,54,55,56,59,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],inclusive:!0}}};return S}();Se.lexer=Ve;function Ne(){this.yy={}}return Ne.prototype=Se,Se.Parser=Ne,new Ne}();xe.parser=xe;const Ut=xe,Qe=["#","+","~","-",""];class je{constructor(u,r){this.memberType=r,this.visibility="",this.classifier="";const a=At(u,g());this.parseMember(a)}getDisplayDetails(){let u=this.visibility+Ie(this.id);this.memberType==="method"&&(u+=`(${Ie(this.parameters.trim())})`,this.returnType&&(u+=" : "+Ie(this.returnType))),u=u.trim();const r=this.parseClassifier();return{displayText:u,cssStyle:r}}parseMember(u){let r="";if(this.memberType==="method"){const a=/([#+~-])?(.+)\((.*)\)([\s$*])?(.*)([$*])?/,c=u.match(a);if(c){const p=c[1]?c[1].trim():"";if(Qe.includes(p)&&(this.visibility=p),this.id=c[2].trim(),this.parameters=c[3]?c[3].trim():"",r=c[4]?c[4].trim():"",this.returnType=c[5]?c[5].trim():"",r===""){const m=this.returnType.substring(this.returnType.length-1);m.match(/[$*]/)&&(r=m,this.returnType=this.returnType.substring(0,this.returnType.length-1))}}}else{const a=u.length,c=u.substring(0,1),p=u.substring(a-1);Qe.includes(c)&&(this.visibility=c),p.match(/[$*]/)&&(r=p),this.id=u.substring(this.visibility===""?0:1,r===""?a:a-1)}this.classifier=r}parseClassifier(){switch(this.classifier){case"*":return"font-style:italic;";case"$":return"text-decoration:underline;";default:return""}}}const he="classId-";let we=[],A={},oe=[],Xe=0,v={},Re=0,U=[];const x=e=>$.sanitizeText(e,g()),R=function(e){const u=$.sanitizeText(e,g());let r="",a=u;if(u.indexOf("~")>0){const c=u.split("~");a=x(c[0]),r=x(c[1])}return{className:a,type:r}},pt=function(e,u){const r=$.sanitizeText(e,g());u&&(u=x(u));const{className:a}=R(r);A[a].label=u},ce=function(e){const u=$.sanitizeText(e,g()),{className:r,type:a}=R(u);if(Object.hasOwn(A,r))return;const c=$.sanitizeText(r,g());A[c]={id:c,type:a,label:c,cssClasses:[],methods:[],members:[],annotations:[],styles:[],domId:he+c+"-"+Xe},Xe++},He=function(e){const u=$.sanitizeText(e,g());if(u in A)return A[u].domId;throw new Error("Class not found: "+u)},dt=function(){we=[],A={},oe=[],U=[],U.push(Ze),v={},Re=0,ht()},yt=function(e){return A[e]},Et=function(){return A},ft=function(){return we},Ct=function(){return oe},mt=function(e){ct.debug("Adding relation: "+JSON.stringify(e)),ce(e.id1),ce(e.id2),e.id1=R(e.id1).className,e.id2=R(e.id2).className,e.relationTitle1=$.sanitizeText(e.relationTitle1.trim(),g()),e.relationTitle2=$.sanitizeText(e.relationTitle2.trim(),g()),we.push(e)},bt=function(e,u){const r=R(e).className;A[r].annotations.push(u)},qe=function(e,u){ce(e);const r=R(e).className,a=A[r];if(typeof u=="string"){const c=u.trim();c.startsWith("<<")&&c.endsWith(">>")?a.annotations.push(x(c.substring(2,c.length-2))):c.indexOf(")")>0?a.methods.push(new je(c,"method")):c&&a.members.push(new je(c,"attribute"))}},kt=function(e,u){Array.isArray(u)&&(u.reverse(),u.forEach(r=>qe(e,r)))},Ft=function(e,u){const r={id:`note${oe.length}`,class:u,text:e};oe.push(r)},gt=function(e){return e.startsWith(":")&&(e=e.substring(1)),x(e.trim())},Pe=function(e,u){e.split(",").forEach(function(r){let a=r;r[0].match(/\d/)&&(a=he+a),A[a]!==void 0&&A[a].cssClasses.push(u)})},Tt=function(e,u){e.split(",").forEach(function(r){u!==void 0&&(A[r].tooltip=x(u))})},Dt=function(e,u){return u?v[u].classes[e].tooltip:A[e].tooltip},Bt=function(e,u,r){const a=g();e.split(",").forEach(function(c){let p=c;c[0].match(/\d/)&&(p=he+p),A[p]!==void 0&&(A[p].link=We.formatUrl(u,a),a.securityLevel==="sandbox"?A[p].linkTarget="_top":typeof r=="string"?A[p].linkTarget=x(r):A[p].linkTarget="_blank")}),Pe(e,"clickable")},_t=function(e,u,r){e.split(",").forEach(function(a){St(a,u,r),A[a].haveCallback=!0}),Pe(e,"clickable")},St=function(e,u,r){const a=$.sanitizeText(e,g());if(g().securityLevel!=="loose"||u===void 0)return;const c=a;if(A[c]!==void 0){const p=He(c);let m=[];if(typeof r=="string"){m=r.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let D=0;D<m.length;D++){let B=m[D].trim();B.charAt(0)==='"'&&B.charAt(B.length-1)==='"'&&(B=B.substr(1,B.length-2)),m[D]=B}}m.length===0&&m.push(p),U.push(function(){const D=document.querySelector(`[id="${p}"]`);D!==null&&D.addEventListener("click",function(){We.runFunc(u,...m)},!1)})}},Nt=function(e){U.forEach(function(u){u(e)})},Lt={LINE:0,DOTTED_LINE:1},$t={AGGREGATION:0,EXTENSION:1,COMPOSITION:2,DEPENDENCY:3,LOLLIPOP:4},Ze=function(e){let u=G(".mermaidTooltip");(u._groups||u)[0][0]===null&&(u=G("body").append("div").attr("class","mermaidTooltip").style("opacity",0)),G(e).select("svg").selectAll("g.node").on("mouseover",function(){const r=G(this);if(r.attr("title")===null)return;const a=this.getBoundingClientRect();u.transition().duration(200).style("opacity",".9"),u.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"),u.html(u.html().replace(/&lt;br\/&gt;/g,"<br/>")),r.classed("hover",!0)}).on("mouseout",function(){u.transition().duration(500).style("opacity",0),G(this).classed("hover",!1)})};U.push(Ze);let Je="TB";const vt=()=>Je,Ot=e=>{Je=e},It=function(e){v[e]===void 0&&(v[e]={id:e,classes:{},children:{},domId:he+e+"-"+Re},Re++)},xt=function(e){return v[e]},Rt=function(){return v},wt=function(e,u){if(v[e]!==void 0)for(const r of u){const{className:a}=R(r);A[a].parent=e,v[e].classes[a]=A[a]}},Pt=function(e,u){const r=A[e];if(!(!u||!r))for(const a of u)a.includes(",")?r.styles.push(...a.split(",")):r.styles.push(a)},zt={setAccTitle:ot,getAccTitle:lt,getAccDescription:at,setAccDescription:rt,getConfig:()=>g().class,addClass:ce,bindFunctions:Nt,clear:dt,getClass:yt,getClasses:Et,getNotes:Ct,addAnnotation:bt,addNote:Ft,getRelations:ft,addRelation:mt,getDirection:vt,setDirection:Ot,addMember:qe,addMembers:kt,cleanupLabel:gt,lineType:Lt,relationType:$t,setClickEvent:_t,setCssClass:Pe,setLink:Bt,getTooltip:Dt,setTooltip:Tt,lookUpDomId:He,setDiagramTitle:nt,getDiagramTitle:ut,setClassLabel:pt,addNamespace:It,addClassesToNamespace:wt,getNamespace:xt,getNamespaces:Rt,setCssStyle:Pt},Mt=e=>`g.classGroup text {
7
7
  fill: ${e.nodeBorder||e.classText};
8
8
  stroke: none;
9
9
  font-family: ${e.fontFamily};
@@ -1,9 +1,9 @@
1
- import{M as Ut,L as zt,R as Mt,D as Ht,I as Xt,N as Jt,S as F,p as lt,O as $,j as Wt,ap as Kt}from"./index-CDwx2U7N.js";var mt=function(){var t=function(T,i,r,o){for(r=r||{},o=T.length;o--;r[T[o]]=i);return r},s=[1,2],n=[1,3],c=[1,4],p=[2,4],d=[1,9],y=[1,11],b=[1,15],u=[1,16],_=[1,17],G=[1,18],O=[1,30],j=[1,19],Y=[1,20],U=[1,21],z=[1,22],M=[1,23],H=[1,25],X=[1,26],J=[1,27],W=[1,28],K=[1,29],V=[1,32],q=[1,33],Q=[1,34],Z=[1,35],R=[1,31],l=[1,4,5,15,16,18,20,21,23,24,25,26,27,28,32,34,36,37,41,44,45,46,47,50],tt=[1,4,5,13,14,15,16,18,20,21,23,24,25,26,27,28,32,34,36,37,41,44,45,46,47,50],xt=[4,5,15,16,18,20,21,23,24,25,26,27,28,32,34,36,37,41,44,45,46,47,50],ct={trace:function(){},yy:{},symbols_:{error:2,start:3,SPACE:4,NL:5,SD:6,document:7,line:8,statement:9,classDefStatement:10,cssClassStatement:11,idStatement: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:28,notePosition:29,NOTE_TEXT:30,direction:31,acc_title:32,acc_title_value:33,acc_descr:34,acc_descr_value:35,acc_descr_multiline_value:36,classDef:37,CLASSDEF_ID:38,CLASSDEF_STYLEOPTS:39,DEFAULT:40,class:41,CLASSENTITY_IDS:42,STYLECLASS:43,direction_tb:44,direction_bt:45,direction_rl:46,direction_lr:47,eol:48,";":49,EDGE_STATE:50,STYLE_SEPARATOR:51,left_of:52,right_of:53,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NL",6:"SD",13:"DESCR",14:"-->",15:"HIDE_EMPTY",16:"scale",17:"WIDTH",18:"COMPOSIT_STATE",19:"STRUCT_START",20:"STRUCT_STOP",21:"STATE_DESCR",22:"AS",23:"ID",24:"FORK",25:"JOIN",26:"CHOICE",27:"CONCURRENT",28:"note",30:"NOTE_TEXT",32:"acc_title",33:"acc_title_value",34:"acc_descr",35:"acc_descr_value",36:"acc_descr_multiline_value",37:"classDef",38:"CLASSDEF_ID",39:"CLASSDEF_STYLEOPTS",40:"DEFAULT",41:"class",42:"CLASSENTITY_IDS",43:"STYLECLASS",44:"direction_tb",45:"direction_bt",46:"direction_rl",47:"direction_lr",49:";",50:"EDGE_STATE",51:"STYLE_SEPARATOR",52:"left_of",53:"right_of"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[9,1],[9,1],[9,1],[9,2],[9,3],[9,4],[9,1],[9,2],[9,1],[9,4],[9,3],[9,6],[9,1],[9,1],[9,1],[9,1],[9,4],[9,4],[9,1],[9,2],[9,2],[9,1],[10,3],[10,3],[11,3],[31,1],[31,1],[31,1],[31,1],[48,1],[48,1],[12,1],[12,1],[12,3],[12,3],[29,1],[29,1]],performAction:function(T,i,r,o,h,e,g){var a=e.length-1;switch(h){case 3:return o.setRootDoc(e[a]),e[a];case 4:this.$=[];break;case 5:e[a]!="nl"&&(e[a-1].push(e[a]),this.$=e[a-1]);break;case 6:case 7:this.$=e[a];break;case 8:this.$="nl";break;case 11:this.$=e[a];break;case 12:const N=e[a-1];N.description=o.trimColon(e[a]),this.$=N;break;case 13:this.$={stmt:"relation",state1:e[a-2],state2:e[a]};break;case 14:const ut=o.trimColon(e[a]);this.$={stmt:"relation",state1:e[a-3],state2:e[a-1],description:ut};break;case 18:this.$={stmt:"state",id:e[a-3],type:"default",description:"",doc:e[a-1]};break;case 19:var v=e[a],I=e[a-2].trim();if(e[a].match(":")){var et=e[a].split(":");v=et[0],I=[I,et[1]]}this.$={stmt:"state",id:v,type:"default",description:I};break;case 20:this.$={stmt:"state",id:e[a-3],type:"default",description:e[a-5],doc:e[a-1]};break;case 21:this.$={stmt:"state",id:e[a],type:"fork"};break;case 22:this.$={stmt:"state",id:e[a],type:"join"};break;case 23:this.$={stmt:"state",id:e[a],type:"choice"};break;case 24:this.$={stmt:"state",id:o.getDividerId(),type:"divider"};break;case 25:this.$={stmt:"state",id:e[a-1].trim(),note:{position:e[a-2].trim(),text:e[a].trim()}};break;case 28:this.$=e[a].trim(),o.setAccTitle(this.$);break;case 29:case 30:this.$=e[a].trim(),o.setAccDescription(this.$);break;case 31:case 32:this.$={stmt:"classDef",id:e[a-1].trim(),classes:e[a].trim()};break;case 33:this.$={stmt:"applyClass",id:e[a-1].trim(),styleClass:e[a].trim()};break;case 34:o.setDirection("TB"),this.$={stmt:"dir",value:"TB"};break;case 35:o.setDirection("BT"),this.$={stmt:"dir",value:"BT"};break;case 36:o.setDirection("RL"),this.$={stmt:"dir",value:"RL"};break;case 37:o.setDirection("LR"),this.$={stmt:"dir",value:"LR"};break;case 40:case 41:this.$={stmt:"state",id:e[a].trim(),type:"default",description:""};break;case 42:this.$={stmt:"state",id:e[a-2].trim(),classes:[e[a].trim()],type:"default",description:""};break;case 43:this.$={stmt:"state",id:e[a-2].trim(),classes:[e[a].trim()],type:"default",description:""};break}},table:[{3:1,4:s,5:n,6:c},{1:[3]},{3:5,4:s,5:n,6:c},{3:6,4:s,5:n,6:c},t([1,4,5,15,16,18,21,23,24,25,26,27,28,32,34,36,37,41,44,45,46,47,50],p,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:d,5:y,8:8,9:10,10:12,11:13,12:14,15:b,16:u,18:_,21:G,23:O,24:j,25:Y,26:U,27:z,28:M,31:24,32:H,34:X,36:J,37:W,41:K,44:V,45:q,46:Q,47:Z,50:R},t(l,[2,5]),{9:36,10:12,11:13,12:14,15:b,16:u,18:_,21:G,23:O,24:j,25:Y,26:U,27:z,28:M,31:24,32:H,34:X,36:J,37:W,41:K,44:V,45:q,46:Q,47:Z,50:R},t(l,[2,7]),t(l,[2,8]),t(l,[2,9]),t(l,[2,10]),t(l,[2,11],{13:[1,37],14:[1,38]}),t(l,[2,15]),{17:[1,39]},t(l,[2,17],{19:[1,40]}),{22:[1,41]},t(l,[2,21]),t(l,[2,22]),t(l,[2,23]),t(l,[2,24]),{29:42,30:[1,43],52:[1,44],53:[1,45]},t(l,[2,27]),{33:[1,46]},{35:[1,47]},t(l,[2,30]),{38:[1,48],40:[1,49]},{42:[1,50]},t(tt,[2,40],{51:[1,51]}),t(tt,[2,41],{51:[1,52]}),t(l,[2,34]),t(l,[2,35]),t(l,[2,36]),t(l,[2,37]),t(l,[2,6]),t(l,[2,12]),{12:53,23:O,50:R},t(l,[2,16]),t(xt,p,{7:54}),{23:[1,55]},{23:[1,56]},{22:[1,57]},{23:[2,44]},{23:[2,45]},t(l,[2,28]),t(l,[2,29]),{39:[1,58]},{39:[1,59]},{43:[1,60]},{23:[1,61]},{23:[1,62]},t(l,[2,13],{13:[1,63]}),{4:d,5:y,8:8,9:10,10:12,11:13,12:14,15:b,16:u,18:_,20:[1,64],21:G,23:O,24:j,25:Y,26:U,27:z,28:M,31:24,32:H,34:X,36:J,37:W,41:K,44:V,45:q,46:Q,47:Z,50:R},t(l,[2,19],{19:[1,65]}),{30:[1,66]},{23:[1,67]},t(l,[2,31]),t(l,[2,32]),t(l,[2,33]),t(tt,[2,42]),t(tt,[2,43]),t(l,[2,14]),t(l,[2,18]),t(xt,p,{7:68}),t(l,[2,25]),t(l,[2,26]),{4:d,5:y,8:8,9:10,10:12,11:13,12:14,15:b,16:u,18:_,20:[1,69],21:G,23:O,24:j,25:Y,26:U,27:z,28:M,31:24,32:H,34:X,36:J,37:W,41:K,44:V,45:q,46:Q,47:Z,50:R},t(l,[2,20])],defaultActions:{5:[2,1],6:[2,2],44:[2,44],45:[2,45]},parseError:function(T,i){if(i.recoverable)this.trace(T);else{var r=new Error(T);throw r.hash=i,r}},parse:function(T){var i=this,r=[0],o=[],h=[null],e=[],g=this.table,a="",v=0,I=0,et=2,N=1,ut=e.slice.call(arguments,1),f=Object.create(this.lexer),C={yy:{}};for(var dt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,dt)&&(C.yy[dt]=this.yy[dt]);f.setInput(T,C.yy),C.yy.lexer=f,C.yy.parser=this,typeof f.yylloc>"u"&&(f.yylloc={});var pt=f.yylloc;e.push(pt);var jt=f.options&&f.options.ranges;typeof C.yy.parseError=="function"?this.parseError=C.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Yt(){var x;return x=o.pop()||f.lex()||N,typeof x!="number"&&(x instanceof Array&&(o=x,x=o.pop()),x=i.symbols_[x]||x),x}for(var S,D,k,yt,L={},st,E,$t,it;;){if(D=r[r.length-1],this.defaultActions[D]?k=this.defaultActions[D]:((S===null||typeof S>"u")&&(S=Yt()),k=g[D]&&g[D][S]),typeof k>"u"||!k.length||!k[0]){var ft="";it=[];for(st in g[D])this.terminals_[st]&&st>et&&it.push("'"+this.terminals_[st]+"'");f.showPosition?ft="Parse error on line "+(v+1)+`:
1
+ import{j as Ut,M as zt,D as Mt,L as Ht,N as Xt,R as Jt,E as F,m as lt,O as $,I as Vt,ap as Kt}from"./index-3H3i7ExC.js";var mt=function(){var t=function(T,i,r,o){for(r=r||{},o=T.length;o--;r[T[o]]=i);return r},s=[1,2],n=[1,3],c=[1,4],p=[2,4],d=[1,9],y=[1,11],b=[1,15],u=[1,16],_=[1,17],G=[1,18],O=[1,30],j=[1,19],Y=[1,20],U=[1,21],z=[1,22],M=[1,23],H=[1,25],X=[1,26],J=[1,27],V=[1,28],K=[1,29],W=[1,32],q=[1,33],Q=[1,34],Z=[1,35],R=[1,31],l=[1,4,5,15,16,18,20,21,23,24,25,26,27,28,32,34,36,37,41,44,45,46,47,50],tt=[1,4,5,13,14,15,16,18,20,21,23,24,25,26,27,28,32,34,36,37,41,44,45,46,47,50],xt=[4,5,15,16,18,20,21,23,24,25,26,27,28,32,34,36,37,41,44,45,46,47,50],ct={trace:function(){},yy:{},symbols_:{error:2,start:3,SPACE:4,NL:5,SD:6,document:7,line:8,statement:9,classDefStatement:10,cssClassStatement:11,idStatement: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:28,notePosition:29,NOTE_TEXT:30,direction:31,acc_title:32,acc_title_value:33,acc_descr:34,acc_descr_value:35,acc_descr_multiline_value:36,classDef:37,CLASSDEF_ID:38,CLASSDEF_STYLEOPTS:39,DEFAULT:40,class:41,CLASSENTITY_IDS:42,STYLECLASS:43,direction_tb:44,direction_bt:45,direction_rl:46,direction_lr:47,eol:48,";":49,EDGE_STATE:50,STYLE_SEPARATOR:51,left_of:52,right_of:53,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NL",6:"SD",13:"DESCR",14:"-->",15:"HIDE_EMPTY",16:"scale",17:"WIDTH",18:"COMPOSIT_STATE",19:"STRUCT_START",20:"STRUCT_STOP",21:"STATE_DESCR",22:"AS",23:"ID",24:"FORK",25:"JOIN",26:"CHOICE",27:"CONCURRENT",28:"note",30:"NOTE_TEXT",32:"acc_title",33:"acc_title_value",34:"acc_descr",35:"acc_descr_value",36:"acc_descr_multiline_value",37:"classDef",38:"CLASSDEF_ID",39:"CLASSDEF_STYLEOPTS",40:"DEFAULT",41:"class",42:"CLASSENTITY_IDS",43:"STYLECLASS",44:"direction_tb",45:"direction_bt",46:"direction_rl",47:"direction_lr",49:";",50:"EDGE_STATE",51:"STYLE_SEPARATOR",52:"left_of",53:"right_of"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[9,1],[9,1],[9,1],[9,2],[9,3],[9,4],[9,1],[9,2],[9,1],[9,4],[9,3],[9,6],[9,1],[9,1],[9,1],[9,1],[9,4],[9,4],[9,1],[9,2],[9,2],[9,1],[10,3],[10,3],[11,3],[31,1],[31,1],[31,1],[31,1],[48,1],[48,1],[12,1],[12,1],[12,3],[12,3],[29,1],[29,1]],performAction:function(T,i,r,o,h,e,g){var a=e.length-1;switch(h){case 3:return o.setRootDoc(e[a]),e[a];case 4:this.$=[];break;case 5:e[a]!="nl"&&(e[a-1].push(e[a]),this.$=e[a-1]);break;case 6:case 7:this.$=e[a];break;case 8:this.$="nl";break;case 11:this.$=e[a];break;case 12:const N=e[a-1];N.description=o.trimColon(e[a]),this.$=N;break;case 13:this.$={stmt:"relation",state1:e[a-2],state2:e[a]};break;case 14:const ut=o.trimColon(e[a]);this.$={stmt:"relation",state1:e[a-3],state2:e[a-1],description:ut};break;case 18:this.$={stmt:"state",id:e[a-3],type:"default",description:"",doc:e[a-1]};break;case 19:var v=e[a],I=e[a-2].trim();if(e[a].match(":")){var et=e[a].split(":");v=et[0],I=[I,et[1]]}this.$={stmt:"state",id:v,type:"default",description:I};break;case 20:this.$={stmt:"state",id:e[a-3],type:"default",description:e[a-5],doc:e[a-1]};break;case 21:this.$={stmt:"state",id:e[a],type:"fork"};break;case 22:this.$={stmt:"state",id:e[a],type:"join"};break;case 23:this.$={stmt:"state",id:e[a],type:"choice"};break;case 24:this.$={stmt:"state",id:o.getDividerId(),type:"divider"};break;case 25:this.$={stmt:"state",id:e[a-1].trim(),note:{position:e[a-2].trim(),text:e[a].trim()}};break;case 28:this.$=e[a].trim(),o.setAccTitle(this.$);break;case 29:case 30:this.$=e[a].trim(),o.setAccDescription(this.$);break;case 31:case 32:this.$={stmt:"classDef",id:e[a-1].trim(),classes:e[a].trim()};break;case 33:this.$={stmt:"applyClass",id:e[a-1].trim(),styleClass:e[a].trim()};break;case 34:o.setDirection("TB"),this.$={stmt:"dir",value:"TB"};break;case 35:o.setDirection("BT"),this.$={stmt:"dir",value:"BT"};break;case 36:o.setDirection("RL"),this.$={stmt:"dir",value:"RL"};break;case 37:o.setDirection("LR"),this.$={stmt:"dir",value:"LR"};break;case 40:case 41:this.$={stmt:"state",id:e[a].trim(),type:"default",description:""};break;case 42:this.$={stmt:"state",id:e[a-2].trim(),classes:[e[a].trim()],type:"default",description:""};break;case 43:this.$={stmt:"state",id:e[a-2].trim(),classes:[e[a].trim()],type:"default",description:""};break}},table:[{3:1,4:s,5:n,6:c},{1:[3]},{3:5,4:s,5:n,6:c},{3:6,4:s,5:n,6:c},t([1,4,5,15,16,18,21,23,24,25,26,27,28,32,34,36,37,41,44,45,46,47,50],p,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:d,5:y,8:8,9:10,10:12,11:13,12:14,15:b,16:u,18:_,21:G,23:O,24:j,25:Y,26:U,27:z,28:M,31:24,32:H,34:X,36:J,37:V,41:K,44:W,45:q,46:Q,47:Z,50:R},t(l,[2,5]),{9:36,10:12,11:13,12:14,15:b,16:u,18:_,21:G,23:O,24:j,25:Y,26:U,27:z,28:M,31:24,32:H,34:X,36:J,37:V,41:K,44:W,45:q,46:Q,47:Z,50:R},t(l,[2,7]),t(l,[2,8]),t(l,[2,9]),t(l,[2,10]),t(l,[2,11],{13:[1,37],14:[1,38]}),t(l,[2,15]),{17:[1,39]},t(l,[2,17],{19:[1,40]}),{22:[1,41]},t(l,[2,21]),t(l,[2,22]),t(l,[2,23]),t(l,[2,24]),{29:42,30:[1,43],52:[1,44],53:[1,45]},t(l,[2,27]),{33:[1,46]},{35:[1,47]},t(l,[2,30]),{38:[1,48],40:[1,49]},{42:[1,50]},t(tt,[2,40],{51:[1,51]}),t(tt,[2,41],{51:[1,52]}),t(l,[2,34]),t(l,[2,35]),t(l,[2,36]),t(l,[2,37]),t(l,[2,6]),t(l,[2,12]),{12:53,23:O,50:R},t(l,[2,16]),t(xt,p,{7:54}),{23:[1,55]},{23:[1,56]},{22:[1,57]},{23:[2,44]},{23:[2,45]},t(l,[2,28]),t(l,[2,29]),{39:[1,58]},{39:[1,59]},{43:[1,60]},{23:[1,61]},{23:[1,62]},t(l,[2,13],{13:[1,63]}),{4:d,5:y,8:8,9:10,10:12,11:13,12:14,15:b,16:u,18:_,20:[1,64],21:G,23:O,24:j,25:Y,26:U,27:z,28:M,31:24,32:H,34:X,36:J,37:V,41:K,44:W,45:q,46:Q,47:Z,50:R},t(l,[2,19],{19:[1,65]}),{30:[1,66]},{23:[1,67]},t(l,[2,31]),t(l,[2,32]),t(l,[2,33]),t(tt,[2,42]),t(tt,[2,43]),t(l,[2,14]),t(l,[2,18]),t(xt,p,{7:68}),t(l,[2,25]),t(l,[2,26]),{4:d,5:y,8:8,9:10,10:12,11:13,12:14,15:b,16:u,18:_,20:[1,69],21:G,23:O,24:j,25:Y,26:U,27:z,28:M,31:24,32:H,34:X,36:J,37:V,41:K,44:W,45:q,46:Q,47:Z,50:R},t(l,[2,20])],defaultActions:{5:[2,1],6:[2,2],44:[2,44],45:[2,45]},parseError:function(T,i){if(i.recoverable)this.trace(T);else{var r=new Error(T);throw r.hash=i,r}},parse:function(T){var i=this,r=[0],o=[],h=[null],e=[],g=this.table,a="",v=0,I=0,et=2,N=1,ut=e.slice.call(arguments,1),f=Object.create(this.lexer),C={yy:{}};for(var dt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,dt)&&(C.yy[dt]=this.yy[dt]);f.setInput(T,C.yy),C.yy.lexer=f,C.yy.parser=this,typeof f.yylloc>"u"&&(f.yylloc={});var pt=f.yylloc;e.push(pt);var jt=f.options&&f.options.ranges;typeof C.yy.parseError=="function"?this.parseError=C.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Yt(){var x;return x=o.pop()||f.lex()||N,typeof x!="number"&&(x instanceof Array&&(o=x,x=o.pop()),x=i.symbols_[x]||x),x}for(var S,D,k,yt,L={},st,E,$t,it;;){if(D=r[r.length-1],this.defaultActions[D]?k=this.defaultActions[D]:((S===null||typeof S>"u")&&(S=Yt()),k=g[D]&&g[D][S]),typeof k>"u"||!k.length||!k[0]){var ft="";it=[];for(st in g[D])this.terminals_[st]&&st>et&&it.push("'"+this.terminals_[st]+"'");f.showPosition?ft="Parse error on line "+(v+1)+`:
2
2
  `+f.showPosition()+`
3
3
  Expecting `+it.join(", ")+", got '"+(this.terminals_[S]||S)+"'":ft="Parse error on line "+(v+1)+": Unexpected "+(S==N?"end of input":"'"+(this.terminals_[S]||S)+"'"),this.parseError(ft,{text:f.match,token:this.terminals_[S]||S,line:f.yylineno,loc:pt,expected:it})}if(k[0]instanceof Array&&k.length>1)throw new Error("Parse Error: multiple actions possible at state: "+D+", token: "+S);switch(k[0]){case 1:r.push(S),h.push(f.yytext),e.push(f.yylloc),r.push(k[1]),S=null,I=f.yyleng,a=f.yytext,v=f.yylineno,pt=f.yylloc;break;case 2:if(E=this.productions_[k[1]][1],L.$=h[h.length-E],L._$={first_line:e[e.length-(E||1)].first_line,last_line:e[e.length-1].last_line,first_column:e[e.length-(E||1)].first_column,last_column:e[e.length-1].last_column},jt&&(L._$.range=[e[e.length-(E||1)].range[0],e[e.length-1].range[1]]),yt=this.performAction.apply(L,[a,I,v,C.yy,k[1],h,e].concat(ut)),typeof yt<"u")return yt;E&&(r=r.slice(0,-1*E*2),h=h.slice(0,-1*E),e=e.slice(0,-1*E)),r.push(this.productions_[k[1]][0]),h.push(L.$),e.push(L._$),$t=g[r[r.length-2]][r[r.length-1]],r.push($t);break;case 3:return!0}}return!0}},Gt=function(){var T={EOF:1,parseError:function(i,r){if(this.yy.parser)this.yy.parser.parseError(i,r);else throw new Error(i)},setInput:function(i,r){return this.yy=r||this.yy||{},this._input=i,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 i=this._input[0];this.yytext+=i,this.yyleng++,this.offset++,this.match+=i,this.matched+=i;var r=i.match(/(?:\r\n?|\n).*/g);return r?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),i},unput:function(i){var r=i.length,o=i.split(/(?:\r\n?|\n)/g);this._input=i+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-r),this.offset-=r;var h=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),o.length-1&&(this.yylineno-=o.length-1);var e=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:o?(o.length===h.length?this.yylloc.first_column:0)+h[h.length-o.length].length-o[0].length:this.yylloc.first_column-r},this.options.ranges&&(this.yylloc.range=[e[0],e[0]+this.yyleng-r]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return 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).
4
4
  `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(i){this.unput(this.match.slice(i))},pastInput:function(){var i=this.matched.substr(0,this.matched.length-this.match.length);return(i.length>20?"...":"")+i.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var i=this.match;return i.length<20&&(i+=this._input.substr(0,20-i.length)),(i.substr(0,20)+(i.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var i=this.pastInput(),r=new Array(i.length+1).join("-");return i+this.upcomingInput()+`
5
5
  `+r+"^"},test_match:function(i,r){var o,h,e;if(this.options.backtrack_lexer&&(e={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&&(e.yylloc.range=this.yylloc.range.slice(0))),h=i[0].match(/(?:\r\n?|\n).*/g),h&&(this.yylineno+=h.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:h?h[h.length-1].length-h[h.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+i[0].length},this.yytext+=i[0],this.match+=i[0],this.matches=i,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(i[0].length),this.matched+=i[0],o=this.performAction.call(this,this.yy,this,r,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),o)return o;if(this._backtrack){for(var g in e)this[g]=e[g];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var i,r,o,h;this._more||(this.yytext="",this.match="");for(var e=this._currentRules(),g=0;g<e.length;g++)if(o=this._input.match(this.rules[e[g]]),o&&(!r||o[0].length>r[0].length)){if(r=o,h=g,this.options.backtrack_lexer){if(i=this.test_match(o,e[g]),i!==!1)return i;if(this._backtrack){r=!1;continue}else return!1}else if(!this.options.flex)break}return r?(i=this.test_match(r,e[h]),i!==!1?i:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
6
- `+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var i=this.next();return i||this.lex()},begin:function(i){this.conditionStack.push(i)},popState:function(){var i=this.conditionStack.length-1;return i>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(i){return i=this.conditionStack.length-1-Math.abs(i||0),i>=0?this.conditionStack[i]:"INITIAL"},pushState:function(i){this.begin(i)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(i,r,o,h){switch(o){case 0:return 40;case 1:return 44;case 2:return 45;case 3:return 46;case 4:return 47;case 5:break;case 6:break;case 7:return 5;case 8:break;case 9:break;case 10:break;case 11:break;case 12:return this.pushState("SCALE"),16;case 13:return 17;case 14:this.popState();break;case 15:return this.begin("acc_title"),32;case 16:return this.popState(),"acc_title_value";case 17:return this.begin("acc_descr"),34;case 18:return this.popState(),"acc_descr_value";case 19:this.begin("acc_descr_multiline");break;case 20:this.popState();break;case 21:return"acc_descr_multiline_value";case 22:return this.pushState("CLASSDEF"),37;case 23:return this.popState(),this.pushState("CLASSDEFID"),"DEFAULT_CLASSDEF_ID";case 24:return this.popState(),this.pushState("CLASSDEFID"),38;case 25:return this.popState(),39;case 26:return this.pushState("CLASS"),41;case 27:return this.popState(),this.pushState("CLASS_STYLE"),42;case 28:return this.popState(),43;case 29:return this.pushState("SCALE"),16;case 30:return 17;case 31:this.popState();break;case 32:this.pushState("STATE");break;case 33:return this.popState(),r.yytext=r.yytext.slice(0,-8).trim(),24;case 34:return this.popState(),r.yytext=r.yytext.slice(0,-8).trim(),25;case 35:return this.popState(),r.yytext=r.yytext.slice(0,-10).trim(),26;case 36:return this.popState(),r.yytext=r.yytext.slice(0,-8).trim(),24;case 37:return this.popState(),r.yytext=r.yytext.slice(0,-8).trim(),25;case 38:return this.popState(),r.yytext=r.yytext.slice(0,-10).trim(),26;case 39:return 44;case 40:return 45;case 41:return 46;case 42:return 47;case 43:this.pushState("STATE_STRING");break;case 44:return this.pushState("STATE_ID"),"AS";case 45:return this.popState(),"ID";case 46:this.popState();break;case 47:return"STATE_DESCR";case 48:return 18;case 49:this.popState();break;case 50:return this.popState(),this.pushState("struct"),19;case 51:break;case 52:return this.popState(),20;case 53:break;case 54:return this.begin("NOTE"),28;case 55:return this.popState(),this.pushState("NOTE_ID"),52;case 56:return this.popState(),this.pushState("NOTE_ID"),53;case 57:this.popState(),this.pushState("FLOATING_NOTE");break;case 58:return this.popState(),this.pushState("FLOATING_NOTE_ID"),"AS";case 59:break;case 60:return"NOTE_TEXT";case 61:return this.popState(),"ID";case 62:return this.popState(),this.pushState("NOTE_TEXT"),23;case 63:return this.popState(),r.yytext=r.yytext.substr(2).trim(),30;case 64:return this.popState(),r.yytext=r.yytext.slice(0,-8).trim(),30;case 65:return 6;case 66:return 6;case 67:return 15;case 68:return 50;case 69:return 23;case 70:return r.yytext=r.yytext.trim(),13;case 71:return 14;case 72:return 27;case 73:return 51;case 74:return 5;case 75:return"INVALID"}},rules:[/^(?:default\b)/i,/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\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,/^(?:classDef\s+)/i,/^(?:DEFAULT\s+)/i,/^(?:\w+\s+)/i,/^(?:[^\n]*)/i,/^(?:class\s+)/i,/^(?:(\w+)+((,\s*\w+)*))/i,/^(?:[^\n]*)/i,/^(?:scale\s+)/i,/^(?:\d+)/i,/^(?:\s+width\b)/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,/^(?:%%(?!\{)[^\n]*)/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,/^(?:.)/i],conditions:{LINE:{rules:[9,10],inclusive:!1},struct:{rules:[9,10,22,26,32,39,40,41,42,51,52,53,54,68,69,70,71,72],inclusive:!1},FLOATING_NOTE_ID:{rules:[61],inclusive:!1},FLOATING_NOTE:{rules:[58,59,60],inclusive:!1},NOTE_TEXT:{rules:[63,64],inclusive:!1},NOTE_ID:{rules:[62],inclusive:!1},NOTE:{rules:[55,56,57],inclusive:!1},CLASS_STYLE:{rules:[28],inclusive:!1},CLASS:{rules:[27],inclusive:!1},CLASSDEFID:{rules:[25],inclusive:!1},CLASSDEF:{rules:[23,24],inclusive:!1},acc_descr_multiline:{rules:[20,21],inclusive:!1},acc_descr:{rules:[18],inclusive:!1},acc_title:{rules:[16],inclusive:!1},SCALE:{rules:[13,14,30,31],inclusive:!1},ALIAS:{rules:[],inclusive:!1},STATE_ID:{rules:[45],inclusive:!1},STATE_STRING:{rules:[46,47],inclusive:!1},FORK_STATE:{rules:[],inclusive:!1},STATE:{rules:[9,10,33,34,35,36,37,38,43,44,48,49,50],inclusive:!1},ID:{rules:[9,10],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,8,10,11,12,15,17,19,22,26,29,32,50,54,65,66,67,68,69,70,71,73,74,75],inclusive:!0}}};return T}();ct.lexer=Gt;function ht(){this.yy={}}return ht.prototype=ct,ct.Parser=ht,new ht}();mt.parser=mt;const xe=mt,Vt="LR",$e="TB",gt="state",At="relation",qt="classDef",Qt="applyClass",Tt="default",Zt="divider",bt="[*]",It="start",Lt=bt,Ot="end",vt="color",Ct="fill",te="bgFill",ee=",";function Rt(){return{}}let Nt=Vt,at=[],B=Rt();const Bt=()=>({relations:[],states:{},documents:{}});let ot={root:Bt()},m=ot.root,w=0,Dt=0;const se={LINE:0,DOTTED_LINE:1},ie={AGGREGATION:0,EXTENSION:1,COMPOSITION:2,DEPENDENCY:3},rt=t=>JSON.parse(JSON.stringify(t)),re=t=>{$.info("Setting root doc",t),at=t},ne=()=>at,nt=(t,s,n)=>{if(s.stmt===At)nt(t,s.state1,!0),nt(t,s.state2,!1);else if(s.stmt===gt&&(s.id==="[*]"?(s.id=n?t.id+"_start":t.id+"_end",s.start=n):s.id=s.id.trim()),s.doc){const c=[];let p=[],d;for(d=0;d<s.doc.length;d++)if(s.doc[d].type===Zt){const y=rt(s.doc[d]);y.doc=rt(p),c.push(y),p=[]}else p.push(s.doc[d]);if(c.length>0&&p.length>0){const y={stmt:gt,id:Kt(),type:"divider",doc:rt(p)};c.push(rt(y)),s.doc=c}s.doc.forEach(y=>nt(s,y,!0))}},ae=()=>(nt({id:"root"},{id:"root",doc:at},!0),{id:"root",doc:at}),oe=t=>{let s;t.doc?s=t.doc:s=t,$.info(s),wt(!0),$.info("Extract",s),s.forEach(n=>{switch(n.stmt){case gt:A(n.id.trim(),n.type,n.doc,n.description,n.note,n.classes,n.styles,n.textStyles);break;case At:Pt(n.state1,n.state2,n.description);break;case qt:Ft(n.id.trim(),n.classes);break;case Qt:Et(n.id.trim(),n.styleClass);break}})},A=function(t,s=Tt,n=null,c=null,p=null,d=null,y=null,b=null){const u=t==null?void 0:t.trim();m.states[u]===void 0?($.info("Adding state ",u,c),m.states[u]={id:u,descriptions:[],type:s,doc:n,note:p,classes:[],styles:[],textStyles:[]}):(m.states[u].doc||(m.states[u].doc=n),m.states[u].type||(m.states[u].type=s)),c&&($.info("Setting state description",u,c),typeof c=="string"&&kt(u,c.trim()),typeof c=="object"&&c.forEach(_=>kt(u,_.trim()))),p&&(m.states[u].note=p,m.states[u].note.text=lt.sanitizeText(m.states[u].note.text,F())),d&&($.info("Setting state classes",u,d),(typeof d=="string"?[d]:d).forEach(_=>Et(u,_.trim()))),y&&($.info("Setting state styles",u,y),(typeof y=="string"?[y]:y).forEach(_=>ge(u,_.trim()))),b&&($.info("Setting state styles",u,y),(typeof b=="string"?[b]:b).forEach(_=>Se(u,_.trim())))},wt=function(t){ot={root:Bt()},m=ot.root,w=0,B=Rt(),t||Wt()},P=function(t){return m.states[t]},le=function(){return m.states},ce=function(){$.info("Documents = ",ot)},he=function(){return m.relations};function St(t=""){let s=t;return t===bt&&(w++,s=`${It}${w}`),s}function _t(t="",s=Tt){return t===bt?It:s}function ue(t=""){let s=t;return t===Lt&&(w++,s=`${Ot}${w}`),s}function de(t="",s=Tt){return t===Lt?Ot:s}function pe(t,s,n){let c=St(t.id.trim()),p=_t(t.id.trim(),t.type),d=St(s.id.trim()),y=_t(s.id.trim(),s.type);A(c,p,t.doc,t.description,t.note,t.classes,t.styles,t.textStyles),A(d,y,s.doc,s.description,s.note,s.classes,s.styles,s.textStyles),m.relations.push({id1:c,id2:d,relationTitle:lt.sanitizeText(n,F())})}const Pt=function(t,s,n){if(typeof t=="object")pe(t,s,n);else{const c=St(t.trim()),p=_t(t),d=ue(s.trim()),y=de(s);A(c,p),A(d,y),m.relations.push({id1:c,id2:d,title:lt.sanitizeText(n,F())})}},kt=function(t,s){const n=m.states[t],c=s.startsWith(":")?s.replace(":","").trim():s;n.descriptions.push(lt.sanitizeText(c,F()))},ye=function(t){return t.substring(0,1)===":"?t.substr(2).trim():t.trim()},fe=()=>(Dt++,"divider-id-"+Dt),Ft=function(t,s=""){B[t]===void 0&&(B[t]={id:t,styles:[],textStyles:[]});const n=B[t];s!=null&&s.split(ee).forEach(c=>{const p=c.replace(/([^;]*);/,"$1").trim();if(c.match(vt)){const d=p.replace(Ct,te).replace(vt,Ct);n.textStyles.push(d)}n.styles.push(p)})},me=function(){return B},Et=function(t,s){t.split(",").forEach(function(n){let c=P(n);if(c===void 0){const p=n.trim();A(p),c=P(p)}c.classes.push(s)})},ge=function(t,s){const n=P(t);n!==void 0&&n.textStyles.push(s)},Se=function(t,s){const n=P(t);n!==void 0&&n.textStyles.push(s)},_e=()=>Nt,ke=t=>{Nt=t},Te=t=>t&&t[0]===":"?t.substr(1).trim():t.trim(),ve={getConfig:()=>F().state,addState:A,clear:wt,getState:P,getStates:le,getRelations:he,getClasses:me,getDirection:_e,addRelation:Pt,getDividerId:fe,setDirection:ke,cleanupLabel:ye,lineType:se,relationType:ie,logDocuments:ce,getRootDoc:ne,setRootDoc:re,getRootDocV2:ae,extract:oe,trimColon:Te,getAccTitle:Jt,setAccTitle:Xt,getAccDescription:Ht,setAccDescription:Mt,addStyleClass:Ft,setCssClass:Et,addDescription:kt,setDiagramTitle:zt,getDiagramTitle:Ut},be=t=>`
6
+ `+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var i=this.next();return i||this.lex()},begin:function(i){this.conditionStack.push(i)},popState:function(){var i=this.conditionStack.length-1;return i>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(i){return i=this.conditionStack.length-1-Math.abs(i||0),i>=0?this.conditionStack[i]:"INITIAL"},pushState:function(i){this.begin(i)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(i,r,o,h){switch(o){case 0:return 40;case 1:return 44;case 2:return 45;case 3:return 46;case 4:return 47;case 5:break;case 6:break;case 7:return 5;case 8:break;case 9:break;case 10:break;case 11:break;case 12:return this.pushState("SCALE"),16;case 13:return 17;case 14:this.popState();break;case 15:return this.begin("acc_title"),32;case 16:return this.popState(),"acc_title_value";case 17:return this.begin("acc_descr"),34;case 18:return this.popState(),"acc_descr_value";case 19:this.begin("acc_descr_multiline");break;case 20:this.popState();break;case 21:return"acc_descr_multiline_value";case 22:return this.pushState("CLASSDEF"),37;case 23:return this.popState(),this.pushState("CLASSDEFID"),"DEFAULT_CLASSDEF_ID";case 24:return this.popState(),this.pushState("CLASSDEFID"),38;case 25:return this.popState(),39;case 26:return this.pushState("CLASS"),41;case 27:return this.popState(),this.pushState("CLASS_STYLE"),42;case 28:return this.popState(),43;case 29:return this.pushState("SCALE"),16;case 30:return 17;case 31:this.popState();break;case 32:this.pushState("STATE");break;case 33:return this.popState(),r.yytext=r.yytext.slice(0,-8).trim(),24;case 34:return this.popState(),r.yytext=r.yytext.slice(0,-8).trim(),25;case 35:return this.popState(),r.yytext=r.yytext.slice(0,-10).trim(),26;case 36:return this.popState(),r.yytext=r.yytext.slice(0,-8).trim(),24;case 37:return this.popState(),r.yytext=r.yytext.slice(0,-8).trim(),25;case 38:return this.popState(),r.yytext=r.yytext.slice(0,-10).trim(),26;case 39:return 44;case 40:return 45;case 41:return 46;case 42:return 47;case 43:this.pushState("STATE_STRING");break;case 44:return this.pushState("STATE_ID"),"AS";case 45:return this.popState(),"ID";case 46:this.popState();break;case 47:return"STATE_DESCR";case 48:return 18;case 49:this.popState();break;case 50:return this.popState(),this.pushState("struct"),19;case 51:break;case 52:return this.popState(),20;case 53:break;case 54:return this.begin("NOTE"),28;case 55:return this.popState(),this.pushState("NOTE_ID"),52;case 56:return this.popState(),this.pushState("NOTE_ID"),53;case 57:this.popState(),this.pushState("FLOATING_NOTE");break;case 58:return this.popState(),this.pushState("FLOATING_NOTE_ID"),"AS";case 59:break;case 60:return"NOTE_TEXT";case 61:return this.popState(),"ID";case 62:return this.popState(),this.pushState("NOTE_TEXT"),23;case 63:return this.popState(),r.yytext=r.yytext.substr(2).trim(),30;case 64:return this.popState(),r.yytext=r.yytext.slice(0,-8).trim(),30;case 65:return 6;case 66:return 6;case 67:return 15;case 68:return 50;case 69:return 23;case 70:return r.yytext=r.yytext.trim(),13;case 71:return 14;case 72:return 27;case 73:return 51;case 74:return 5;case 75:return"INVALID"}},rules:[/^(?:default\b)/i,/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\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,/^(?:classDef\s+)/i,/^(?:DEFAULT\s+)/i,/^(?:\w+\s+)/i,/^(?:[^\n]*)/i,/^(?:class\s+)/i,/^(?:(\w+)+((,\s*\w+)*))/i,/^(?:[^\n]*)/i,/^(?:scale\s+)/i,/^(?:\d+)/i,/^(?:\s+width\b)/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,/^(?:%%(?!\{)[^\n]*)/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,/^(?:.)/i],conditions:{LINE:{rules:[9,10],inclusive:!1},struct:{rules:[9,10,22,26,32,39,40,41,42,51,52,53,54,68,69,70,71,72],inclusive:!1},FLOATING_NOTE_ID:{rules:[61],inclusive:!1},FLOATING_NOTE:{rules:[58,59,60],inclusive:!1},NOTE_TEXT:{rules:[63,64],inclusive:!1},NOTE_ID:{rules:[62],inclusive:!1},NOTE:{rules:[55,56,57],inclusive:!1},CLASS_STYLE:{rules:[28],inclusive:!1},CLASS:{rules:[27],inclusive:!1},CLASSDEFID:{rules:[25],inclusive:!1},CLASSDEF:{rules:[23,24],inclusive:!1},acc_descr_multiline:{rules:[20,21],inclusive:!1},acc_descr:{rules:[18],inclusive:!1},acc_title:{rules:[16],inclusive:!1},SCALE:{rules:[13,14,30,31],inclusive:!1},ALIAS:{rules:[],inclusive:!1},STATE_ID:{rules:[45],inclusive:!1},STATE_STRING:{rules:[46,47],inclusive:!1},FORK_STATE:{rules:[],inclusive:!1},STATE:{rules:[9,10,33,34,35,36,37,38,43,44,48,49,50],inclusive:!1},ID:{rules:[9,10],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,8,10,11,12,15,17,19,22,26,29,32,50,54,65,66,67,68,69,70,71,73,74,75],inclusive:!0}}};return T}();ct.lexer=Gt;function ht(){this.yy={}}return ht.prototype=ct,ct.Parser=ht,new ht}();mt.parser=mt;const xe=mt,Wt="LR",$e="TB",gt="state",At="relation",qt="classDef",Qt="applyClass",Tt="default",Zt="divider",bt="[*]",It="start",Lt=bt,Ot="end",vt="color",Ct="fill",te="bgFill",ee=",";function Rt(){return{}}let Nt=Wt,at=[],B=Rt();const Bt=()=>({relations:[],states:{},documents:{}});let ot={root:Bt()},m=ot.root,w=0,Dt=0;const se={LINE:0,DOTTED_LINE:1},ie={AGGREGATION:0,EXTENSION:1,COMPOSITION:2,DEPENDENCY:3},rt=t=>JSON.parse(JSON.stringify(t)),re=t=>{$.info("Setting root doc",t),at=t},ne=()=>at,nt=(t,s,n)=>{if(s.stmt===At)nt(t,s.state1,!0),nt(t,s.state2,!1);else if(s.stmt===gt&&(s.id==="[*]"?(s.id=n?t.id+"_start":t.id+"_end",s.start=n):s.id=s.id.trim()),s.doc){const c=[];let p=[],d;for(d=0;d<s.doc.length;d++)if(s.doc[d].type===Zt){const y=rt(s.doc[d]);y.doc=rt(p),c.push(y),p=[]}else p.push(s.doc[d]);if(c.length>0&&p.length>0){const y={stmt:gt,id:Kt(),type:"divider",doc:rt(p)};c.push(rt(y)),s.doc=c}s.doc.forEach(y=>nt(s,y,!0))}},ae=()=>(nt({id:"root"},{id:"root",doc:at},!0),{id:"root",doc:at}),oe=t=>{let s;t.doc?s=t.doc:s=t,$.info(s),wt(!0),$.info("Extract",s),s.forEach(n=>{switch(n.stmt){case gt:A(n.id.trim(),n.type,n.doc,n.description,n.note,n.classes,n.styles,n.textStyles);break;case At:Pt(n.state1,n.state2,n.description);break;case qt:Ft(n.id.trim(),n.classes);break;case Qt:Et(n.id.trim(),n.styleClass);break}})},A=function(t,s=Tt,n=null,c=null,p=null,d=null,y=null,b=null){const u=t==null?void 0:t.trim();m.states[u]===void 0?($.info("Adding state ",u,c),m.states[u]={id:u,descriptions:[],type:s,doc:n,note:p,classes:[],styles:[],textStyles:[]}):(m.states[u].doc||(m.states[u].doc=n),m.states[u].type||(m.states[u].type=s)),c&&($.info("Setting state description",u,c),typeof c=="string"&&kt(u,c.trim()),typeof c=="object"&&c.forEach(_=>kt(u,_.trim()))),p&&(m.states[u].note=p,m.states[u].note.text=lt.sanitizeText(m.states[u].note.text,F())),d&&($.info("Setting state classes",u,d),(typeof d=="string"?[d]:d).forEach(_=>Et(u,_.trim()))),y&&($.info("Setting state styles",u,y),(typeof y=="string"?[y]:y).forEach(_=>ge(u,_.trim()))),b&&($.info("Setting state styles",u,y),(typeof b=="string"?[b]:b).forEach(_=>Se(u,_.trim())))},wt=function(t){ot={root:Bt()},m=ot.root,w=0,B=Rt(),t||Vt()},P=function(t){return m.states[t]},le=function(){return m.states},ce=function(){$.info("Documents = ",ot)},he=function(){return m.relations};function St(t=""){let s=t;return t===bt&&(w++,s=`${It}${w}`),s}function _t(t="",s=Tt){return t===bt?It:s}function ue(t=""){let s=t;return t===Lt&&(w++,s=`${Ot}${w}`),s}function de(t="",s=Tt){return t===Lt?Ot:s}function pe(t,s,n){let c=St(t.id.trim()),p=_t(t.id.trim(),t.type),d=St(s.id.trim()),y=_t(s.id.trim(),s.type);A(c,p,t.doc,t.description,t.note,t.classes,t.styles,t.textStyles),A(d,y,s.doc,s.description,s.note,s.classes,s.styles,s.textStyles),m.relations.push({id1:c,id2:d,relationTitle:lt.sanitizeText(n,F())})}const Pt=function(t,s,n){if(typeof t=="object")pe(t,s,n);else{const c=St(t.trim()),p=_t(t),d=ue(s.trim()),y=de(s);A(c,p),A(d,y),m.relations.push({id1:c,id2:d,title:lt.sanitizeText(n,F())})}},kt=function(t,s){const n=m.states[t],c=s.startsWith(":")?s.replace(":","").trim():s;n.descriptions.push(lt.sanitizeText(c,F()))},ye=function(t){return t.substring(0,1)===":"?t.substr(2).trim():t.trim()},fe=()=>(Dt++,"divider-id-"+Dt),Ft=function(t,s=""){B[t]===void 0&&(B[t]={id:t,styles:[],textStyles:[]});const n=B[t];s!=null&&s.split(ee).forEach(c=>{const p=c.replace(/([^;]*);/,"$1").trim();if(c.match(vt)){const d=p.replace(Ct,te).replace(vt,Ct);n.textStyles.push(d)}n.styles.push(p)})},me=function(){return B},Et=function(t,s){t.split(",").forEach(function(n){let c=P(n);if(c===void 0){const p=n.trim();A(p),c=P(p)}c.classes.push(s)})},ge=function(t,s){const n=P(t);n!==void 0&&n.textStyles.push(s)},Se=function(t,s){const n=P(t);n!==void 0&&n.textStyles.push(s)},_e=()=>Nt,ke=t=>{Nt=t},Te=t=>t&&t[0]===":"?t.substr(1).trim():t.trim(),ve={getConfig:()=>F().state,addState:A,clear:wt,getState:P,getStates:le,getRelations:he,getClasses:me,getDirection:_e,addRelation:Pt,getDividerId:fe,setDirection:ke,cleanupLabel:ye,lineType:se,relationType:ie,logDocuments:ce,getRootDoc:ne,setRootDoc:re,getRootDocV2:ae,extract:oe,trimColon:Te,getAccTitle:Jt,setAccTitle:Xt,getAccDescription:Ht,setAccDescription:Mt,addStyleClass:Ft,setCssClass:Et,addDescription:kt,setDiagramTitle:zt,getDiagramTitle:Ut},be=t=>`
7
7
  defs #statediagram-barbEnd {
8
8
  fill: ${t.transitionColor};
9
9
  stroke: ${t.transitionColor};
@@ -1,5 +1,5 @@
1
- import{o as q,O as g,S as v,F as _,u as G,k as M,b as A,c as C,d as E,g as j,p as I,v as V,h as z,i as R,Y as K,E as U,s as Y}from"./index-CDwx2U7N.js";import{K as J}from"./graph-BZahQKIN-CTgzd5us.js";import{b as W}from"./index-5325376f-DsNDppci-BaFeDo3U.js";import{t as X}from"./channel-6PI3wNcc-1exBkyGg.js";function Z(e){return typeof e=="string"?new z([document.querySelectorAll(e)],[document.documentElement]):new z([K(e)],R)}function de(e,o){return!!e.children(o).length}function pe(e){return B(e.v)+":"+B(e.w)+":"+B(e.name)}var H=/:/g;function B(e){return e?String(e).replace(H,"\\:"):""}function Q(e,o){o&&e.attr("style",o)}function be(e,o,c){o&&e.attr("class",o).attr("class",c+" "+e.attr("class"))}function we(e,o){var c=o.graph();if(U(c)){var l=c.transition;if(Y(l))return l(e)}return e}function ee(e,o){var c=e.append("foreignObject").attr("width","100000"),l=c.append("xhtml:div");l.attr("xmlns","http://www.w3.org/1999/xhtml");var i=o.label;switch(typeof i){case"function":l.insert(i);break;case"object":l.insert(function(){return i});break;default:l.html(i)}Q(l,o.labelStyle),l.style("display","inline-block"),l.style("white-space","nowrap");var p=l.node().getBoundingClientRect();return c.attr("width",p.width).attr("height",p.height),c}const O={},te=function(e){const o=Object.keys(e);for(const c of o)O[c]=e[c]},F=async function(e,o,c,l,i,p){const u=l.select(`[id="${c}"]`),n=Object.keys(e);for(const b of n){const r=e[b];let y="default";r.classes.length>0&&(y=r.classes.join(" ")),y=y+" flowchart-label";const f=A(r.styles);let t=r.text!==void 0?r.text:r.id,s;if(g.info("vertex",r,r.labelType),r.labelType==="markdown")g.info("vertex",r,r.labelType);else if(V(v().flowchart.htmlLabels))s=ee(u,{label:t}).node(),s.parentNode.removeChild(s);else{const k=i.createElementNS("http://www.w3.org/2000/svg","text");k.setAttribute("style",f.labelStyle.replace("color:","fill:"));const T=t.split(I.lineBreakRegex);for(const $ of T){const d=i.createElementNS("http://www.w3.org/2000/svg","tspan");d.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),d.setAttribute("dy","1em"),d.setAttribute("x","1"),d.textContent=$,k.appendChild(d)}s=k}let w=0,a="";switch(r.type){case"round":w=5,a="rect";break;case"square":a="rect";break;case"diamond":a="question";break;case"hexagon":a="hexagon";break;case"odd":a="rect_left_inv_arrow";break;case"lean_right":a="lean_right";break;case"lean_left":a="lean_left";break;case"trapezoid":a="trapezoid";break;case"inv_trapezoid":a="inv_trapezoid";break;case"odd_right":a="rect_left_inv_arrow";break;case"circle":a="circle";break;case"ellipse":a="ellipse";break;case"stadium":a="stadium";break;case"subroutine":a="subroutine";break;case"cylinder":a="cylinder";break;case"group":a="rect";break;case"doublecircle":a="doublecircle";break;default:a="rect"}const S=await j(t,v());o.setNode(r.id,{labelStyle:f.labelStyle,shape:a,labelText:S,labelType:r.labelType,rx:w,ry:w,class:y,style:f.style,id:r.id,link:r.link,linkTarget:r.linkTarget,tooltip:p.db.getTooltip(r.id)||"",domId:p.db.lookUpDomId(r.id),haveCallback:r.haveCallback,width:r.type==="group"?500:void 0,dir:r.dir,type:r.type,props:r.props,padding:v().flowchart.padding}),g.info("setNode",{labelStyle:f.labelStyle,labelType:r.labelType,shape:a,labelText:S,rx:w,ry:w,class:y,style:f.style,id:r.id,domId:p.db.lookUpDomId(r.id),width:r.type==="group"?500:void 0,type:r.type,dir:r.dir,props:r.props,padding:v().flowchart.padding})}},P=async function(e,o,c){g.info("abc78 edges = ",e);let l=0,i={},p,u;if(e.defaultStyle!==void 0){const n=A(e.defaultStyle);p=n.style,u=n.labelStyle}for(const n of e){l++;const b="L-"+n.start+"-"+n.end;i[b]===void 0?(i[b]=0,g.info("abc78 new entry",b,i[b])):(i[b]++,g.info("abc78 new entry",b,i[b]));let r=b+"-"+i[b];g.info("abc78 new link id to be used is",b,r,i[b]);const y="LS-"+n.start,f="LE-"+n.end,t={style:"",labelStyle:""};switch(t.minlen=n.length||1,n.type==="arrow_open"?t.arrowhead="none":t.arrowhead="normal",t.arrowTypeStart="arrow_open",t.arrowTypeEnd="arrow_open",n.type){case"double_arrow_cross":t.arrowTypeStart="arrow_cross";case"arrow_cross":t.arrowTypeEnd="arrow_cross";break;case"double_arrow_point":t.arrowTypeStart="arrow_point";case"arrow_point":t.arrowTypeEnd="arrow_point";break;case"double_arrow_circle":t.arrowTypeStart="arrow_circle";case"arrow_circle":t.arrowTypeEnd="arrow_circle";break}let s="",w="";switch(n.stroke){case"normal":s="fill:none;",p!==void 0&&(s=p),u!==void 0&&(w=u),t.thickness="normal",t.pattern="solid";break;case"dotted":t.thickness="normal",t.pattern="dotted",t.style="fill:none;stroke-width:2px;stroke-dasharray:3;";break;case"thick":t.thickness="thick",t.pattern="solid",t.style="stroke-width: 3.5px;fill:none;";break;case"invisible":t.thickness="invisible",t.pattern="solid",t.style="stroke-width: 0;fill:none;";break}if(n.style!==void 0){const a=A(n.style);s=a.style,w=a.labelStyle}t.style=t.style+=s,t.labelStyle=t.labelStyle+=w,n.interpolate!==void 0?t.curve=C(n.interpolate,E):e.defaultInterpolate!==void 0?t.curve=C(e.defaultInterpolate,E):t.curve=C(O.curve,E),n.text===void 0?n.style!==void 0&&(t.arrowheadStyle="fill: #333"):(t.arrowheadStyle="fill: #333",t.labelpos="c"),t.labelType=n.labelType,t.label=await j(n.text.replace(I.lineBreakRegex,`
2
- `),v()),n.style===void 0&&(t.style=t.style||"stroke: #333; stroke-width: 1.5px;fill:none;"),t.labelStyle=t.labelStyle.replace("color:","fill:"),t.id=r,t.classes="flowchart-link "+y+" "+f,o.setEdge(n.start,n.end,t,l)}},re=function(e,o){return o.db.getClasses()},oe=async function(e,o,c,l){g.info("Drawing flowchart");let i=l.db.getDirection();i===void 0&&(i="TD");const{securityLevel:p,flowchart:u}=v(),n=u.nodeSpacing||50,b=u.rankSpacing||50;let r;p==="sandbox"&&(r=_("#i"+o));const y=p==="sandbox"?_(r.nodes()[0].contentDocument.body):_("body"),f=p==="sandbox"?r.nodes()[0].contentDocument:document,t=new J({multigraph:!0,compound:!0}).setGraph({rankdir:i,nodesep:n,ranksep:b,marginx:0,marginy:0}).setDefaultEdgeLabel(function(){return{}});let s;const w=l.db.getSubGraphs();g.info("Subgraphs - ",w);for(let d=w.length-1;d>=0;d--)s=w[d],g.info("Subgraph - ",s),l.db.addVertex(s.id,{text:s.title,type:s.labelType},"group",void 0,s.classes,s.dir);const a=l.db.getVertices(),S=l.db.getEdges();g.info("Edges",S);let k=0;for(k=w.length-1;k>=0;k--){s=w[k],Z("cluster").append("text");for(let d=0;d<s.nodes.length;d++)g.info("Setting up subgraphs",s.nodes[d],s.id),t.setParent(s.nodes[d],s.id)}await F(a,t,o,y,f,l),await P(S,t);const T=y.select(`[id="${o}"]`),$=y.select("#"+o+" g");if(await W($,t,["point","circle","cross"],"flowchart",o),G.insertTitle(T,"flowchartTitleText",u.titleTopMargin,l.db.getDiagramTitle()),M(t,T,u.diagramPadding,u.useMaxWidth),l.db.indexNodes("subGraph"+k),!u.htmlLabels){const d=f.querySelectorAll('[id="'+o+'"] .edgeLabel .label');for(const x of d){const m=x.getBBox(),h=f.createElementNS("http://www.w3.org/2000/svg","rect");h.setAttribute("rx",0),h.setAttribute("ry",0),h.setAttribute("width",m.width),h.setAttribute("height",m.height),x.insertBefore(h,x.firstChild)}}Object.keys(a).forEach(function(d){const x=a[d];if(x.link){const m=_("#"+o+' [id="'+d+'"]');if(m){const h=f.createElementNS("http://www.w3.org/2000/svg","a");h.setAttributeNS("http://www.w3.org/2000/svg","class",x.classes.join(" ")),h.setAttributeNS("http://www.w3.org/2000/svg","href",x.link),h.setAttributeNS("http://www.w3.org/2000/svg","rel","noopener"),p==="sandbox"?h.setAttributeNS("http://www.w3.org/2000/svg","target","_top"):x.linkTarget&&h.setAttributeNS("http://www.w3.org/2000/svg","target",x.linkTarget);const L=m.insert(function(){return h},":first-child"),N=m.select(".label-container");N&&L.append(function(){return N.node()});const D=m.select(".label");D&&L.append(function(){return D.node()})}}})},ue={setConf:te,addVertices:F,addEdges:P,getClasses:re,draw:oe},le=(e,o)=>{const c=X,l=c(e,"r"),i=c(e,"g"),p=c(e,"b");return q(l,i,p,o)},ae=e=>`.label {
1
+ import{s as q,O as g,E as v,F as _,f as K,A as M,a as B,z as C,b as A,c as j,m as I,x as V,g as D,h as G,K as R,i as U,l as W}from"./index-3H3i7ExC.js";import{K as Q}from"./graph-BV6jB5rk-DcOA8BmL.js";import{b as X}from"./index-5325376f-DrY72DrM-BQxxLtiM.js";import{t as Z}from"./channel-BKp1WYnX-BpupPR-0.js";function H(e){return typeof e=="string"?new D([document.querySelectorAll(e)],[document.documentElement]):new D([R(e)],G)}function de(e,o){return!!e.children(o).length}function pe(e){return E(e.v)+":"+E(e.w)+":"+E(e.name)}var J=/:/g;function E(e){return e?String(e).replace(J,"\\:"):""}function Y(e,o){o&&e.attr("style",o)}function be(e,o,c){o&&e.attr("class",o).attr("class",c+" "+e.attr("class"))}function we(e,o){var c=o.graph();if(U(c)){var l=c.transition;if(W(l))return l(e)}return e}function ee(e,o){var c=e.append("foreignObject").attr("width","100000"),l=c.append("xhtml:div");l.attr("xmlns","http://www.w3.org/1999/xhtml");var i=o.label;switch(typeof i){case"function":l.insert(i);break;case"object":l.insert(function(){return i});break;default:l.html(i)}Y(l,o.labelStyle),l.style("display","inline-block"),l.style("white-space","nowrap");var p=l.node().getBoundingClientRect();return c.attr("width",p.width).attr("height",p.height),c}const O={},te=function(e){const o=Object.keys(e);for(const c of o)O[c]=e[c]},F=async function(e,o,c,l,i,p){const u=l.select(`[id="${c}"]`),n=Object.keys(e);for(const b of n){const r=e[b];let y="default";r.classes.length>0&&(y=r.classes.join(" ")),y=y+" flowchart-label";const f=B(r.styles);let t=r.text!==void 0?r.text:r.id,s;if(g.info("vertex",r,r.labelType),r.labelType==="markdown")g.info("vertex",r,r.labelType);else if(V(v().flowchart.htmlLabels))s=ee(u,{label:t}).node(),s.parentNode.removeChild(s);else{const k=i.createElementNS("http://www.w3.org/2000/svg","text");k.setAttribute("style",f.labelStyle.replace("color:","fill:"));const T=t.split(I.lineBreakRegex);for(const $ of T){const d=i.createElementNS("http://www.w3.org/2000/svg","tspan");d.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),d.setAttribute("dy","1em"),d.setAttribute("x","1"),d.textContent=$,k.appendChild(d)}s=k}let w=0,a="";switch(r.type){case"round":w=5,a="rect";break;case"square":a="rect";break;case"diamond":a="question";break;case"hexagon":a="hexagon";break;case"odd":a="rect_left_inv_arrow";break;case"lean_right":a="lean_right";break;case"lean_left":a="lean_left";break;case"trapezoid":a="trapezoid";break;case"inv_trapezoid":a="inv_trapezoid";break;case"odd_right":a="rect_left_inv_arrow";break;case"circle":a="circle";break;case"ellipse":a="ellipse";break;case"stadium":a="stadium";break;case"subroutine":a="subroutine";break;case"cylinder":a="cylinder";break;case"group":a="rect";break;case"doublecircle":a="doublecircle";break;default:a="rect"}const S=await j(t,v());o.setNode(r.id,{labelStyle:f.labelStyle,shape:a,labelText:S,labelType:r.labelType,rx:w,ry:w,class:y,style:f.style,id:r.id,link:r.link,linkTarget:r.linkTarget,tooltip:p.db.getTooltip(r.id)||"",domId:p.db.lookUpDomId(r.id),haveCallback:r.haveCallback,width:r.type==="group"?500:void 0,dir:r.dir,type:r.type,props:r.props,padding:v().flowchart.padding}),g.info("setNode",{labelStyle:f.labelStyle,labelType:r.labelType,shape:a,labelText:S,rx:w,ry:w,class:y,style:f.style,id:r.id,domId:p.db.lookUpDomId(r.id),width:r.type==="group"?500:void 0,type:r.type,dir:r.dir,props:r.props,padding:v().flowchart.padding})}},P=async function(e,o,c){g.info("abc78 edges = ",e);let l=0,i={},p,u;if(e.defaultStyle!==void 0){const n=B(e.defaultStyle);p=n.style,u=n.labelStyle}for(const n of e){l++;const b="L-"+n.start+"-"+n.end;i[b]===void 0?(i[b]=0,g.info("abc78 new entry",b,i[b])):(i[b]++,g.info("abc78 new entry",b,i[b]));let r=b+"-"+i[b];g.info("abc78 new link id to be used is",b,r,i[b]);const y="LS-"+n.start,f="LE-"+n.end,t={style:"",labelStyle:""};switch(t.minlen=n.length||1,n.type==="arrow_open"?t.arrowhead="none":t.arrowhead="normal",t.arrowTypeStart="arrow_open",t.arrowTypeEnd="arrow_open",n.type){case"double_arrow_cross":t.arrowTypeStart="arrow_cross";case"arrow_cross":t.arrowTypeEnd="arrow_cross";break;case"double_arrow_point":t.arrowTypeStart="arrow_point";case"arrow_point":t.arrowTypeEnd="arrow_point";break;case"double_arrow_circle":t.arrowTypeStart="arrow_circle";case"arrow_circle":t.arrowTypeEnd="arrow_circle";break}let s="",w="";switch(n.stroke){case"normal":s="fill:none;",p!==void 0&&(s=p),u!==void 0&&(w=u),t.thickness="normal",t.pattern="solid";break;case"dotted":t.thickness="normal",t.pattern="dotted",t.style="fill:none;stroke-width:2px;stroke-dasharray:3;";break;case"thick":t.thickness="thick",t.pattern="solid",t.style="stroke-width: 3.5px;fill:none;";break;case"invisible":t.thickness="invisible",t.pattern="solid",t.style="stroke-width: 0;fill:none;";break}if(n.style!==void 0){const a=B(n.style);s=a.style,w=a.labelStyle}t.style=t.style+=s,t.labelStyle=t.labelStyle+=w,n.interpolate!==void 0?t.curve=C(n.interpolate,A):e.defaultInterpolate!==void 0?t.curve=C(e.defaultInterpolate,A):t.curve=C(O.curve,A),n.text===void 0?n.style!==void 0&&(t.arrowheadStyle="fill: #333"):(t.arrowheadStyle="fill: #333",t.labelpos="c"),t.labelType=n.labelType,t.label=await j(n.text.replace(I.lineBreakRegex,`
2
+ `),v()),n.style===void 0&&(t.style=t.style||"stroke: #333; stroke-width: 1.5px;fill:none;"),t.labelStyle=t.labelStyle.replace("color:","fill:"),t.id=r,t.classes="flowchart-link "+y+" "+f,o.setEdge(n.start,n.end,t,l)}},re=function(e,o){return o.db.getClasses()},oe=async function(e,o,c,l){g.info("Drawing flowchart");let i=l.db.getDirection();i===void 0&&(i="TD");const{securityLevel:p,flowchart:u}=v(),n=u.nodeSpacing||50,b=u.rankSpacing||50;let r;p==="sandbox"&&(r=_("#i"+o));const y=p==="sandbox"?_(r.nodes()[0].contentDocument.body):_("body"),f=p==="sandbox"?r.nodes()[0].contentDocument:document,t=new Q({multigraph:!0,compound:!0}).setGraph({rankdir:i,nodesep:n,ranksep:b,marginx:0,marginy:0}).setDefaultEdgeLabel(function(){return{}});let s;const w=l.db.getSubGraphs();g.info("Subgraphs - ",w);for(let d=w.length-1;d>=0;d--)s=w[d],g.info("Subgraph - ",s),l.db.addVertex(s.id,{text:s.title,type:s.labelType},"group",void 0,s.classes,s.dir);const a=l.db.getVertices(),S=l.db.getEdges();g.info("Edges",S);let k=0;for(k=w.length-1;k>=0;k--){s=w[k],H("cluster").append("text");for(let d=0;d<s.nodes.length;d++)g.info("Setting up subgraphs",s.nodes[d],s.id),t.setParent(s.nodes[d],s.id)}await F(a,t,o,y,f,l),await P(S,t);const T=y.select(`[id="${o}"]`),$=y.select("#"+o+" g");if(await X($,t,["point","circle","cross"],"flowchart",o),K.insertTitle(T,"flowchartTitleText",u.titleTopMargin,l.db.getDiagramTitle()),M(t,T,u.diagramPadding,u.useMaxWidth),l.db.indexNodes("subGraph"+k),!u.htmlLabels){const d=f.querySelectorAll('[id="'+o+'"] .edgeLabel .label');for(const x of d){const m=x.getBBox(),h=f.createElementNS("http://www.w3.org/2000/svg","rect");h.setAttribute("rx",0),h.setAttribute("ry",0),h.setAttribute("width",m.width),h.setAttribute("height",m.height),x.insertBefore(h,x.firstChild)}}Object.keys(a).forEach(function(d){const x=a[d];if(x.link){const m=_("#"+o+' [id="'+d+'"]');if(m){const h=f.createElementNS("http://www.w3.org/2000/svg","a");h.setAttributeNS("http://www.w3.org/2000/svg","class",x.classes.join(" ")),h.setAttributeNS("http://www.w3.org/2000/svg","href",x.link),h.setAttributeNS("http://www.w3.org/2000/svg","rel","noopener"),p==="sandbox"?h.setAttributeNS("http://www.w3.org/2000/svg","target","_top"):x.linkTarget&&h.setAttributeNS("http://www.w3.org/2000/svg","target",x.linkTarget);const L=m.insert(function(){return h},":first-child"),N=m.select(".label-container");N&&L.append(function(){return N.node()});const z=m.select(".label");z&&L.append(function(){return z.node()})}}})},ue={setConf:te,addVertices:F,addEdges:P,getClasses:re,draw:oe},le=(e,o)=>{const c=Z,l=c(e,"r"),i=c(e,"g"),p=c(e,"b");return q(l,i,p,o)},ae=e=>`.label {
3
3
  font-family: ${e.fontFamily};
4
4
  color: ${e.nodeTextColor||e.textColor};
5
5
  }
@@ -113,4 +113,4 @@ import{o as q,O as g,S as v,F as _,u as G,k as M,b as A,c as C,d as E,g as j,p a
113
113
  font-size: 18px;
114
114
  fill: ${e.textColor};
115
115
  }
116
- `,fe=ae;export{Z,pe as b,Q as e,be as f,fe as h,de as p,ee as t,we as u,ue as w};
116
+ `,fe=ae;export{H as Z,pe as b,Y as e,be as f,fe as h,de as p,ee as t,we as u,ue as w};
@@ -1 +1 @@
1
- import{aH as o,T as i}from"./index-CDwx2U7N.js";const x=(e,t)=>{const r=e.append("rect");if(r.attr("x",t.x),r.attr("y",t.y),r.attr("fill",t.fill),r.attr("stroke",t.stroke),r.attr("width",t.width),r.attr("height",t.height),t.name&&r.attr("name",t.name),t.rx!==void 0&&r.attr("rx",t.rx),t.ry!==void 0&&r.attr("ry",t.ry),t.attrs!==void 0)for(const a in t.attrs)r.attr(a,t.attrs[a]);return t.class!==void 0&&r.attr("class",t.class),r},c=(e,t)=>{const r={x:t.startx,y:t.starty,width:t.stopx-t.startx,height:t.stopy-t.starty,fill:t.fill,stroke:t.stroke,class:"rect"};x(e,r).lower()},h=(e,t)=>{const r=t.text.replace(o," "),a=e.append("text");a.attr("x",t.x),a.attr("y",t.y),a.attr("class","legend"),a.style("text-anchor",t.anchor),t.class!==void 0&&a.attr("class",t.class);const s=a.append("tspan");return s.attr("x",t.x+t.textMargin*2),s.text(r),a},y=(e,t,r,a)=>{const s=e.append("image");s.attr("x",t),s.attr("y",r);const n=i.sanitizeUrl(a);s.attr("xlink:href",n)},p=(e,t,r,a)=>{const s=e.append("use");s.attr("x",t),s.attr("y",r);const n=i.sanitizeUrl(a);s.attr("xlink:href",`#${n}`)},d=()=>({x:0,y:0,width:100,height:100,fill:"#EDF2AE",stroke:"#666",anchor:"start",rx:0,ry:0}),f=()=>({x:0,y:0,width:100,height:100,"text-anchor":"start",style:"#666",textMargin:0,rx:0,ry:0,tspan:!0});export{h as d,f as g,y as h,x as l,d as p,c as x,p as y};
1
+ import{aH as o,T as i}from"./index-3H3i7ExC.js";const x=(e,t)=>{const r=e.append("rect");if(r.attr("x",t.x),r.attr("y",t.y),r.attr("fill",t.fill),r.attr("stroke",t.stroke),r.attr("width",t.width),r.attr("height",t.height),t.name&&r.attr("name",t.name),t.rx!==void 0&&r.attr("rx",t.rx),t.ry!==void 0&&r.attr("ry",t.ry),t.attrs!==void 0)for(const a in t.attrs)r.attr(a,t.attrs[a]);return t.class!==void 0&&r.attr("class",t.class),r},c=(e,t)=>{const r={x:t.startx,y:t.starty,width:t.stopx-t.startx,height:t.stopy-t.starty,fill:t.fill,stroke:t.stroke,class:"rect"};x(e,r).lower()},h=(e,t)=>{const r=t.text.replace(o," "),a=e.append("text");a.attr("x",t.x),a.attr("y",t.y),a.attr("class","legend"),a.style("text-anchor",t.anchor),t.class!==void 0&&a.attr("class",t.class);const s=a.append("tspan");return s.attr("x",t.x+t.textMargin*2),s.text(r),a},y=(e,t,r,a)=>{const s=e.append("image");s.attr("x",t),s.attr("y",r);const n=i.sanitizeUrl(a);s.attr("xlink:href",n)},p=(e,t,r,a)=>{const s=e.append("use");s.attr("x",t),s.attr("y",r);const n=i.sanitizeUrl(a);s.attr("xlink:href",`#${n}`)},d=()=>({x:0,y:0,width:100,height:100,fill:"#EDF2AE",stroke:"#666",anchor:"start",rx:0,ry:0}),f=()=>({x:0,y:0,width:100,height:100,"text-anchor":"start",style:"#666",textMargin:0,rx:0,ry:0,tspan:!0});export{h as d,f as g,y as h,x as l,d as p,c as x,p as y};
@@ -1,9 +1,9 @@
1
- import{aL as yt,aM as gt,aN as ft,S as mt,O as w,F as R,k as xt,aO as _t,j as kt}from"./index-CDwx2U7N.js";import{h as Z}from"./arc-CvECY7sY-BAfm7gAl.js";var Q=function(){var n=function(m,i,o,l){for(o=o||{},l=m.length;l--;o[m[l]]=i);return o},t=[6,8,10,11,12,14,16,17,20,21],e=[1,9],s=[1,10],r=[1,11],a=[1,12],h=[1,13],u=[1,16],y=[1,17],g={trace:function(){},yy:{},symbols_:{error:2,start:3,timeline:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,title:11,acc_title:12,acc_title_value:13,acc_descr:14,acc_descr_value:15,acc_descr_multiline_value:16,section:17,period_statement:18,event_statement:19,period:20,event:21,$accept:0,$end:1},terminals_:{2:"error",4:"timeline",6:"EOF",8:"SPACE",10:"NEWLINE",11:"title",12:"acc_title",13:"acc_title_value",14:"acc_descr",15:"acc_descr_value",16:"acc_descr_multiline_value",17:"section",20:"period",21:"event"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,1],[9,1],[18,1],[19,1]],performAction:function(m,i,o,l,d,c,x){var _=c.length-1;switch(d){case 1:return c[_-1];case 2:this.$=[];break;case 3:c[_-1].push(c[_]),this.$=c[_-1];break;case 4:case 5:this.$=c[_];break;case 6:case 7:this.$=[];break;case 8:l.getCommonDb().setDiagramTitle(c[_].substr(6)),this.$=c[_].substr(6);break;case 9:this.$=c[_].trim(),l.getCommonDb().setAccTitle(this.$);break;case 10:case 11:this.$=c[_].trim(),l.getCommonDb().setAccDescription(this.$);break;case 12:l.addSection(c[_].substr(8)),this.$=c[_].substr(8);break;case 15:l.addTask(c[_],0,""),this.$=c[_];break;case 16:l.addEvent(c[_].substr(2)),this.$=c[_];break}},table:[{3:1,4:[1,2]},{1:[3]},n(t,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:e,12:s,14:r,16:a,17:h,18:14,19:15,20:u,21:y},n(t,[2,7],{1:[2,1]}),n(t,[2,3]),{9:18,11:e,12:s,14:r,16:a,17:h,18:14,19:15,20:u,21:y},n(t,[2,5]),n(t,[2,6]),n(t,[2,8]),{13:[1,19]},{15:[1,20]},n(t,[2,11]),n(t,[2,12]),n(t,[2,13]),n(t,[2,14]),n(t,[2,15]),n(t,[2,16]),n(t,[2,4]),n(t,[2,9]),n(t,[2,10])],defaultActions:{},parseError:function(m,i){if(i.recoverable)this.trace(m);else{var o=new Error(m);throw o.hash=i,o}},parse:function(m){var i=this,o=[0],l=[],d=[null],c=[],x=this.table,_="",$=0,D=0,O=2,A=1,F=c.slice.call(arguments,1),f=Object.create(this.lexer),k={yy:{}};for(var E in this.yy)Object.prototype.hasOwnProperty.call(this.yy,E)&&(k.yy[E]=this.yy[E]);f.setInput(m,k.yy),k.yy.lexer=f,k.yy.parser=this,typeof f.yylloc>"u"&&(f.yylloc={});var I=f.yylloc;c.push(I);var z=f.options&&f.options.ranges;typeof k.yy.parseError=="function"?this.parseError=k.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function H(){var T;return T=l.pop()||f.lex()||A,typeof T!="number"&&(T instanceof Array&&(l=T,T=l.pop()),T=i.symbols_[T]||T),T}for(var v,C,S,U,L={},W,M,Y,B;;){if(C=o[o.length-1],this.defaultActions[C]?S=this.defaultActions[C]:((v===null||typeof v>"u")&&(v=H()),S=x[C]&&x[C][v]),typeof S>"u"||!S.length||!S[0]){var G="";B=[];for(W in x[C])this.terminals_[W]&&W>O&&B.push("'"+this.terminals_[W]+"'");f.showPosition?G="Parse error on line "+($+1)+`:
1
+ import{aL as yt,aM as gt,aN as ft,E as mt,O as w,F as R,A as xt,aO as _t,I as kt}from"./index-3H3i7ExC.js";import{h as Z}from"./arc-m8RC5oDD-BT8qBEWK.js";var X=function(){var n=function(m,i,o,l){for(o=o||{},l=m.length;l--;o[m[l]]=i);return o},t=[6,8,10,11,12,14,16,17,20,21],e=[1,9],s=[1,10],r=[1,11],a=[1,12],h=[1,13],u=[1,16],y=[1,17],g={trace:function(){},yy:{},symbols_:{error:2,start:3,timeline:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,title:11,acc_title:12,acc_title_value:13,acc_descr:14,acc_descr_value:15,acc_descr_multiline_value:16,section:17,period_statement:18,event_statement:19,period:20,event:21,$accept:0,$end:1},terminals_:{2:"error",4:"timeline",6:"EOF",8:"SPACE",10:"NEWLINE",11:"title",12:"acc_title",13:"acc_title_value",14:"acc_descr",15:"acc_descr_value",16:"acc_descr_multiline_value",17:"section",20:"period",21:"event"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,1],[9,1],[18,1],[19,1]],performAction:function(m,i,o,l,d,c,x){var _=c.length-1;switch(d){case 1:return c[_-1];case 2:this.$=[];break;case 3:c[_-1].push(c[_]),this.$=c[_-1];break;case 4:case 5:this.$=c[_];break;case 6:case 7:this.$=[];break;case 8:l.getCommonDb().setDiagramTitle(c[_].substr(6)),this.$=c[_].substr(6);break;case 9:this.$=c[_].trim(),l.getCommonDb().setAccTitle(this.$);break;case 10:case 11:this.$=c[_].trim(),l.getCommonDb().setAccDescription(this.$);break;case 12:l.addSection(c[_].substr(8)),this.$=c[_].substr(8);break;case 15:l.addTask(c[_],0,""),this.$=c[_];break;case 16:l.addEvent(c[_].substr(2)),this.$=c[_];break}},table:[{3:1,4:[1,2]},{1:[3]},n(t,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:e,12:s,14:r,16:a,17:h,18:14,19:15,20:u,21:y},n(t,[2,7],{1:[2,1]}),n(t,[2,3]),{9:18,11:e,12:s,14:r,16:a,17:h,18:14,19:15,20:u,21:y},n(t,[2,5]),n(t,[2,6]),n(t,[2,8]),{13:[1,19]},{15:[1,20]},n(t,[2,11]),n(t,[2,12]),n(t,[2,13]),n(t,[2,14]),n(t,[2,15]),n(t,[2,16]),n(t,[2,4]),n(t,[2,9]),n(t,[2,10])],defaultActions:{},parseError:function(m,i){if(i.recoverable)this.trace(m);else{var o=new Error(m);throw o.hash=i,o}},parse:function(m){var i=this,o=[0],l=[],d=[null],c=[],x=this.table,_="",$=0,B=0,O=2,A=1,D=c.slice.call(arguments,1),f=Object.create(this.lexer),k={yy:{}};for(var E in this.yy)Object.prototype.hasOwnProperty.call(this.yy,E)&&(k.yy[E]=this.yy[E]);f.setInput(m,k.yy),k.yy.lexer=f,k.yy.parser=this,typeof f.yylloc>"u"&&(f.yylloc={});var I=f.yylloc;c.push(I);var z=f.options&&f.options.ranges;typeof k.yy.parseError=="function"?this.parseError=k.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function H(){var T;return T=l.pop()||f.lex()||A,typeof T!="number"&&(T instanceof Array&&(l=T,T=l.pop()),T=i.symbols_[T]||T),T}for(var v,C,S,U,L={},F,M,Y,W;;){if(C=o[o.length-1],this.defaultActions[C]?S=this.defaultActions[C]:((v===null||typeof v>"u")&&(v=H()),S=x[C]&&x[C][v]),typeof S>"u"||!S.length||!S[0]){var G="";W=[];for(F in x[C])this.terminals_[F]&&F>O&&W.push("'"+this.terminals_[F]+"'");f.showPosition?G="Parse error on line "+($+1)+`:
2
2
  `+f.showPosition()+`
3
- Expecting `+B.join(", ")+", got '"+(this.terminals_[v]||v)+"'":G="Parse error on line "+($+1)+": Unexpected "+(v==A?"end of input":"'"+(this.terminals_[v]||v)+"'"),this.parseError(G,{text:f.match,token:this.terminals_[v]||v,line:f.yylineno,loc:I,expected:B})}if(S[0]instanceof Array&&S.length>1)throw new Error("Parse Error: multiple actions possible at state: "+C+", token: "+v);switch(S[0]){case 1:o.push(v),d.push(f.yytext),c.push(f.yylloc),o.push(S[1]),v=null,D=f.yyleng,_=f.yytext,$=f.yylineno,I=f.yylloc;break;case 2:if(M=this.productions_[S[1]][1],L.$=d[d.length-M],L._$={first_line:c[c.length-(M||1)].first_line,last_line:c[c.length-1].last_line,first_column:c[c.length-(M||1)].first_column,last_column:c[c.length-1].last_column},z&&(L._$.range=[c[c.length-(M||1)].range[0],c[c.length-1].range[1]]),U=this.performAction.apply(L,[_,D,$,k.yy,S[1],d,c].concat(F)),typeof U<"u")return U;M&&(o=o.slice(0,-1*M*2),d=d.slice(0,-1*M),c=c.slice(0,-1*M)),o.push(this.productions_[S[1]][0]),d.push(L.$),c.push(L._$),Y=x[o[o.length-2]][o[o.length-1]],o.push(Y);break;case 3:return!0}}return!0}},p=function(){var m={EOF:1,parseError:function(i,o){if(this.yy.parser)this.yy.parser.parseError(i,o);else throw new Error(i)},setInput:function(i,o){return this.yy=o||this.yy||{},this._input=i,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 i=this._input[0];this.yytext+=i,this.yyleng++,this.offset++,this.match+=i,this.matched+=i;var o=i.match(/(?:\r\n?|\n).*/g);return o?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),i},unput:function(i){var o=i.length,l=i.split(/(?:\r\n?|\n)/g);this._input=i+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-o),this.offset-=o;var d=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),l.length-1&&(this.yylineno-=l.length-1);var c=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:l?(l.length===d.length?this.yylloc.first_column:0)+d[d.length-l.length].length-l[0].length:this.yylloc.first_column-o},this.options.ranges&&(this.yylloc.range=[c[0],c[0]+this.yyleng-o]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return 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).
3
+ Expecting `+W.join(", ")+", got '"+(this.terminals_[v]||v)+"'":G="Parse error on line "+($+1)+": Unexpected "+(v==A?"end of input":"'"+(this.terminals_[v]||v)+"'"),this.parseError(G,{text:f.match,token:this.terminals_[v]||v,line:f.yylineno,loc:I,expected:W})}if(S[0]instanceof Array&&S.length>1)throw new Error("Parse Error: multiple actions possible at state: "+C+", token: "+v);switch(S[0]){case 1:o.push(v),d.push(f.yytext),c.push(f.yylloc),o.push(S[1]),v=null,B=f.yyleng,_=f.yytext,$=f.yylineno,I=f.yylloc;break;case 2:if(M=this.productions_[S[1]][1],L.$=d[d.length-M],L._$={first_line:c[c.length-(M||1)].first_line,last_line:c[c.length-1].last_line,first_column:c[c.length-(M||1)].first_column,last_column:c[c.length-1].last_column},z&&(L._$.range=[c[c.length-(M||1)].range[0],c[c.length-1].range[1]]),U=this.performAction.apply(L,[_,B,$,k.yy,S[1],d,c].concat(D)),typeof U<"u")return U;M&&(o=o.slice(0,-1*M*2),d=d.slice(0,-1*M),c=c.slice(0,-1*M)),o.push(this.productions_[S[1]][0]),d.push(L.$),c.push(L._$),Y=x[o[o.length-2]][o[o.length-1]],o.push(Y);break;case 3:return!0}}return!0}},p=function(){var m={EOF:1,parseError:function(i,o){if(this.yy.parser)this.yy.parser.parseError(i,o);else throw new Error(i)},setInput:function(i,o){return this.yy=o||this.yy||{},this._input=i,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 i=this._input[0];this.yytext+=i,this.yyleng++,this.offset++,this.match+=i,this.matched+=i;var o=i.match(/(?:\r\n?|\n).*/g);return o?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),i},unput:function(i){var o=i.length,l=i.split(/(?:\r\n?|\n)/g);this._input=i+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-o),this.offset-=o;var d=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),l.length-1&&(this.yylineno-=l.length-1);var c=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:l?(l.length===d.length?this.yylloc.first_column:0)+d[d.length-l.length].length-l[0].length:this.yylloc.first_column-o},this.options.ranges&&(this.yylloc.range=[c[0],c[0]+this.yyleng-o]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return 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).
4
4
  `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(i){this.unput(this.match.slice(i))},pastInput:function(){var i=this.matched.substr(0,this.matched.length-this.match.length);return(i.length>20?"...":"")+i.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var i=this.match;return i.length<20&&(i+=this._input.substr(0,20-i.length)),(i.substr(0,20)+(i.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var i=this.pastInput(),o=new Array(i.length+1).join("-");return i+this.upcomingInput()+`
5
5
  `+o+"^"},test_match:function(i,o){var l,d,c;if(this.options.backtrack_lexer&&(c={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&&(c.yylloc.range=this.yylloc.range.slice(0))),d=i[0].match(/(?:\r\n?|\n).*/g),d&&(this.yylineno+=d.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:d?d[d.length-1].length-d[d.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+i[0].length},this.yytext+=i[0],this.match+=i[0],this.matches=i,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(i[0].length),this.matched+=i[0],l=this.performAction.call(this,this.yy,this,o,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),l)return l;if(this._backtrack){for(var x in c)this[x]=c[x];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var i,o,l,d;this._more||(this.yytext="",this.match="");for(var c=this._currentRules(),x=0;x<c.length;x++)if(l=this._input.match(this.rules[c[x]]),l&&(!o||l[0].length>o[0].length)){if(o=l,d=x,this.options.backtrack_lexer){if(i=this.test_match(l,c[x]),i!==!1)return i;if(this._backtrack){o=!1;continue}else return!1}else if(!this.options.flex)break}return o?(i=this.test_match(o,c[d]),i!==!1?i:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
6
- `+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var i=this.next();return i||this.lex()},begin:function(i){this.conditionStack.push(i)},popState:function(){var i=this.conditionStack.length-1;return i>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(i){return i=this.conditionStack.length-1-Math.abs(i||0),i>=0?this.conditionStack[i]:"INITIAL"},pushState:function(i){this.begin(i)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(i,o,l,d){switch(l){case 0:break;case 1:break;case 2:return 10;case 3:break;case 4:break;case 5:return 4;case 6:return 11;case 7:return this.begin("acc_title"),12;case 8:return this.popState(),"acc_title_value";case 9:return this.begin("acc_descr"),14;case 10:return this.popState(),"acc_descr_value";case 11:this.begin("acc_descr_multiline");break;case 12:this.popState();break;case 13:return"acc_descr_multiline_value";case 14:return 17;case 15:return 21;case 16:return 20;case 17:return 6;case 18:return"INVALID"}},rules:[/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:timeline\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,/^(?::\s[^#:\n;]+)/i,/^(?:[^#:\n;]+)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[12,13],inclusive:!1},acc_descr:{rules:[10],inclusive:!1},acc_title:{rules:[8],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,9,11,14,15,16,17,18],inclusive:!0}}};return m}();g.lexer=p;function b(){this.yy={}}return b.prototype=g,g.Parser=b,new b}();Q.parser=Q;const bt=Q;let N="",nt=0;const X=[],V=[],j=[],it=()=>_t,rt=function(){X.length=0,V.length=0,N="",j.length=0,kt()},st=function(n){N=n,X.push(n)},at=function(){return X},ot=function(){let n=K();const t=100;let e=0;for(;!n&&e<t;)n=K(),e++;return V.push(...j),V},ct=function(n,t,e){const s={id:nt++,section:N,type:N,task:n,score:t||0,events:e?[e]:[]};j.push(s)},lt=function(n){j.find(t=>t.id===nt-1).events.push(n)},ht=function(n){const t={section:N,type:N,description:n,task:n,classes:[]};V.push(t)},K=function(){const n=function(e){return j[e].processed};let t=!0;for(const[e,s]of j.entries())n(e),t=t&&s.processed;return t},vt={clear:rt,getCommonDb:it,addSection:st,getSections:at,getTasks:ot,addTask:ct,addTaskOrg:ht,addEvent:lt},wt=Object.freeze(Object.defineProperty({__proto__:null,addEvent:lt,addSection:st,addTask:ct,addTaskOrg:ht,clear:rt,default:vt,getCommonDb:it,getSections:at,getTasks:ot},Symbol.toStringTag,{value:"Module"})),$t=12,q=function(n,t){const e=n.append("rect");return e.attr("x",t.x),e.attr("y",t.y),e.attr("fill",t.fill),e.attr("stroke",t.stroke),e.attr("width",t.width),e.attr("height",t.height),e.attr("rx",t.rx),e.attr("ry",t.ry),t.class!==void 0&&e.attr("class",t.class),e},St=function(n,t){const e=n.append("circle").attr("cx",t.cx).attr("cy",t.cy).attr("class","face").attr("r",15).attr("stroke-width",2).attr("overflow","visible"),s=n.append("g");s.append("circle").attr("cx",t.cx-15/3).attr("cy",t.cy-15/3).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666"),s.append("circle").attr("cx",t.cx+15/3).attr("cy",t.cy-15/3).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666");function r(u){const y=Z().startAngle(Math.PI/2).endAngle(3*(Math.PI/2)).innerRadius(7.5).outerRadius(6.8181818181818175);u.append("path").attr("class","mouth").attr("d",y).attr("transform","translate("+t.cx+","+(t.cy+2)+")")}function a(u){const y=Z().startAngle(3*Math.PI/2).endAngle(5*(Math.PI/2)).innerRadius(7.5).outerRadius(6.8181818181818175);u.append("path").attr("class","mouth").attr("d",y).attr("transform","translate("+t.cx+","+(t.cy+7)+")")}function h(u){u.append("line").attr("class","mouth").attr("stroke",2).attr("x1",t.cx-5).attr("y1",t.cy+7).attr("x2",t.cx+5).attr("y2",t.cy+7).attr("class","mouth").attr("stroke-width","1px").attr("stroke","#666")}return t.score>3?r(s):t.score<3?a(s):h(s),e},Et=function(n,t){const e=n.append("circle");return e.attr("cx",t.cx),e.attr("cy",t.cy),e.attr("class","actor-"+t.pos),e.attr("fill",t.fill),e.attr("stroke",t.stroke),e.attr("r",t.r),e.class!==void 0&&e.attr("class",e.class),t.title!==void 0&&e.append("title").text(t.title),e},dt=function(n,t){const e=t.text.replace(/<br\s*\/?>/gi," "),s=n.append("text");s.attr("x",t.x),s.attr("y",t.y),s.attr("class","legend"),s.style("text-anchor",t.anchor),t.class!==void 0&&s.attr("class",t.class);const r=s.append("tspan");return r.attr("x",t.x+t.textMargin*2),r.text(e),s},It=function(n,t){function e(r,a,h,u,y){return r+","+a+" "+(r+h)+","+a+" "+(r+h)+","+(a+u-y)+" "+(r+h-y*1.2)+","+(a+u)+" "+r+","+(a+u)}const s=n.append("polygon");s.attr("points",e(t.x,t.y,50,20,7)),s.attr("class","labelBox"),t.y=t.y+t.labelMargin,t.x=t.x+.5*t.labelMargin,dt(n,t)},Mt=function(n,t,e){const s=n.append("g"),r=J();r.x=t.x,r.y=t.y,r.fill=t.fill,r.width=e.width,r.height=e.height,r.class="journey-section section-type-"+t.num,r.rx=3,r.ry=3,q(s,r),ut(e)(t.text,s,r.x,r.y,r.width,r.height,{class:"journey-section section-type-"+t.num},e,t.colour)};let tt=-1;const Tt=function(n,t,e){const s=t.x+e.width/2,r=n.append("g");tt++,r.append("line").attr("id","task"+tt).attr("x1",s).attr("y1",t.y).attr("x2",s).attr("y2",450).attr("class","task-line").attr("stroke-width","1px").attr("stroke-dasharray","4 2").attr("stroke","#666"),St(r,{cx:s,cy:300+(5-t.score)*30,score:t.score});const a=J();a.x=t.x,a.y=t.y,a.fill=t.fill,a.width=e.width,a.height=e.height,a.class="task task-type-"+t.num,a.rx=3,a.ry=3,q(r,a),t.x+14,ut(e)(t.task,r,a.x,a.y,a.width,a.height,{class:"task"},e,t.colour)},At=function(n,t){q(n,{x:t.startx,y:t.starty,width:t.stopx-t.startx,height:t.stopy-t.starty,fill:t.fill,class:"rect"}).lower()},Ht=function(){return{x:0,y:0,fill:void 0,"text-anchor":"start",width:100,height:100,textMargin:0,rx:0,ry:0}},J=function(){return{x:0,y:0,width:100,anchor:"start",height:100,rx:0,ry:0}},ut=function(){function n(r,a,h,u,y,g,p,b){const m=a.append("text").attr("x",h+y/2).attr("y",u+g/2+5).style("font-color",b).style("text-anchor","middle").text(r);s(m,p)}function t(r,a,h,u,y,g,p,b,m){const{taskFontSize:i,taskFontFamily:o}=b,l=r.split(/<br\s*\/?>/gi);for(let d=0;d<l.length;d++){const c=d*i-i*(l.length-1)/2,x=a.append("text").attr("x",h+y/2).attr("y",u).attr("fill",m).style("text-anchor","middle").style("font-size",i).style("font-family",o);x.append("tspan").attr("x",h+y/2).attr("dy",c).text(l[d]),x.attr("y",u+g/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),s(x,p)}}function e(r,a,h,u,y,g,p,b){const m=a.append("switch"),i=m.append("foreignObject").attr("x",h).attr("y",u).attr("width",y).attr("height",g).attr("position","fixed").append("xhtml:div").style("display","table").style("height","100%").style("width","100%");i.append("div").attr("class","label").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(r),t(r,m,h,u,y,g,p,b),s(i,p)}function s(r,a){for(const h in a)h in a&&r.attr(h,a[h])}return function(r){return r.textPlacement==="fo"?e:r.textPlacement==="old"?n:t}}(),Ct=function(n){n.append("defs").append("marker").attr("id","arrowhead").attr("refX",5).attr("refY",2).attr("markerWidth",6).attr("markerHeight",4).attr("orient","auto").append("path").attr("d","M 0,0 V 4 L6,2 Z")};function pt(n,t){n.each(function(){var e=R(this),s=e.text().split(/(\s+|<br>)/).reverse(),r,a=[],h=1.1,u=e.attr("y"),y=parseFloat(e.attr("dy")),g=e.text(null).append("tspan").attr("x",0).attr("y",u).attr("dy",y+"em");for(let p=0;p<s.length;p++)r=s[s.length-1-p],a.push(r),g.text(a.join(" ").trim()),(g.node().getComputedTextLength()>t||r==="<br>")&&(a.pop(),g.text(a.join(" ").trim()),r==="<br>"?a=[""]:a=[r],g=e.append("tspan").attr("x",0).attr("y",u).attr("dy",h+"em").text(r))})}const Pt=function(n,t,e,s){const r=e%$t-1,a=n.append("g");t.section=r,a.attr("class",(t.class?t.class+" ":"")+"timeline-node "+("section-"+r));const h=a.append("g"),u=a.append("g"),y=u.append("text").text(t.descr).attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle").call(pt,t.width).node().getBBox(),g=s.fontSize&&s.fontSize.replace?s.fontSize.replace("px",""):s.fontSize;return t.height=y.height+g*1.1*.5+t.padding,t.height=Math.max(t.height,t.maxHeight),t.width=t.width+2*t.padding,u.attr("transform","translate("+t.width/2+", "+t.padding/2+")"),zt(h,t,r),t},Ot=function(n,t,e){const s=n.append("g"),r=s.append("text").text(t.descr).attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle").call(pt,t.width).node().getBBox(),a=e.fontSize&&e.fontSize.replace?e.fontSize.replace("px",""):e.fontSize;return s.remove(),r.height+a*1.1*.5+t.padding},zt=function(n,t,e){n.append("path").attr("id","node-"+t.id).attr("class","node-bkg node-"+t.type).attr("d",`M0 ${t.height-5} v${-t.height+10} q0,-5 5,-5 h${t.width-10} q5,0 5,5 v${t.height-5} H0 Z`),n.append("line").attr("class","node-line-"+e).attr("x1",0).attr("y1",t.height).attr("x2",t.width).attr("y2",t.height)},P={drawRect:q,drawCircle:Et,drawSection:Mt,drawText:dt,drawLabel:It,drawTask:Tt,drawBackgroundRect:At,getTextObj:Ht,getNoteRect:J,initGraphics:Ct,drawNode:Pt,getVirtualNodeHeight:Ot},Lt=function(n,t,e,s){var r,a;const h=mt(),u=h.leftMargin??50;w.debug("timeline",s.db);const y=h.securityLevel;let g;y==="sandbox"&&(g=R("#i"+t));const p=(y==="sandbox"?R(g.nodes()[0].contentDocument.body):R("body")).select("#"+t);p.append("g");const b=s.db.getTasks(),m=s.db.getCommonDb().getDiagramTitle();w.debug("task",b),P.initGraphics(p);const i=s.db.getSections();w.debug("sections",i);let o=0,l=0,d=0,c=0,x=50+u,_=50;c=50;let $=0,D=!0;i.forEach(function(f){const k={number:$,descr:f,section:$,width:150,padding:20,maxHeight:o},E=P.getVirtualNodeHeight(p,k,h);w.debug("sectionHeight before draw",E),o=Math.max(o,E+20)});let O=0,A=0;w.debug("tasks.length",b.length);for(const[f,k]of b.entries()){const E={number:f,descr:k,section:k.section,width:150,padding:20,maxHeight:l},I=P.getVirtualNodeHeight(p,E,h);w.debug("taskHeight before draw",I),l=Math.max(l,I+20),O=Math.max(O,k.events.length);let z=0;for(let H=0;H<k.events.length;H++){const v={descr:k.events[H],section:k.section,number:k.section,width:150,padding:20,maxHeight:50};z+=P.getVirtualNodeHeight(p,v,h)}A=Math.max(A,z)}w.debug("maxSectionHeight before draw",o),w.debug("maxTaskHeight before draw",l),i&&i.length>0?i.forEach(f=>{const k=b.filter(H=>H.section===f),E={number:$,descr:f,section:$,width:200*Math.max(k.length,1)-50,padding:20,maxHeight:o};w.debug("sectionNode",E);const I=p.append("g"),z=P.drawNode(I,E,$,h);w.debug("sectionNode output",z),I.attr("transform",`translate(${x}, ${c})`),_+=o+50,k.length>0&&et(p,k,$,x,_,l,h,O,A,o,!1),x+=200*Math.max(k.length,1),_=c,$++}):(D=!1,et(p,b,$,x,_,l,h,O,A,o,!0));const F=p.node().getBBox();w.debug("bounds",F),m&&p.append("text").text(m).attr("x",F.width/2-u).attr("font-size","4ex").attr("font-weight","bold").attr("y",20),d=D?o+l+150:l+100,p.append("g").attr("class","lineWrapper").append("line").attr("x1",u).attr("y1",d).attr("x2",F.width+3*u).attr("y2",d).attr("stroke-width",4).attr("stroke","black").attr("marker-end","url(#arrowhead)"),xt(void 0,p,((r=h.timeline)==null?void 0:r.padding)??50,((a=h.timeline)==null?void 0:a.useMaxWidth)??!1)},et=function(n,t,e,s,r,a,h,u,y,g,p){var b;for(const m of t){const i={descr:m.task,section:e,number:e,width:150,padding:20,maxHeight:a};w.debug("taskNode",i);const o=n.append("g").attr("class","taskWrapper"),l=P.drawNode(o,i,e,h).height;if(w.debug("taskHeight after draw",l),o.attr("transform",`translate(${s}, ${r})`),a=Math.max(a,l),m.events){const d=n.append("g").attr("class","lineWrapper");let c=a;r+=100,c=c+Nt(n,m.events,e,s,r,h),r-=100,d.append("line").attr("x1",s+190/2).attr("y1",r+a).attr("x2",s+190/2).attr("y2",r+a+(p?a:g)+y+120).attr("stroke-width",2).attr("stroke","black").attr("marker-end","url(#arrowhead)").attr("stroke-dasharray","5,5")}s=s+200,p&&!((b=h.timeline)!=null&&b.disableMulticolor)&&e++}r=r-10},Nt=function(n,t,e,s,r,a){let h=0;const u=r;r=r+100;for(const y of t){const g={descr:y,section:e,number:e,width:150,padding:20,maxHeight:50};w.debug("eventNode",g);const p=n.append("g").attr("class","eventWrapper"),b=P.drawNode(p,g,e,a).height;h=h+b,p.attr("transform",`translate(${s}, ${r})`),r=r+10+b}return r=u,h},jt={setConf:()=>{},draw:Lt},Dt=n=>{let t="";for(let e=0;e<n.THEME_COLOR_LIMIT;e++)n["lineColor"+e]=n["lineColor"+e]||n["cScaleInv"+e],yt(n["lineColor"+e])?n["lineColor"+e]=gt(n["lineColor"+e],20):n["lineColor"+e]=ft(n["lineColor"+e],20);for(let e=0;e<n.THEME_COLOR_LIMIT;e++){const s=""+(17-3*e);t+=`
6
+ `+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var i=this.next();return i||this.lex()},begin:function(i){this.conditionStack.push(i)},popState:function(){var i=this.conditionStack.length-1;return i>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(i){return i=this.conditionStack.length-1-Math.abs(i||0),i>=0?this.conditionStack[i]:"INITIAL"},pushState:function(i){this.begin(i)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(i,o,l,d){switch(l){case 0:break;case 1:break;case 2:return 10;case 3:break;case 4:break;case 5:return 4;case 6:return 11;case 7:return this.begin("acc_title"),12;case 8:return this.popState(),"acc_title_value";case 9:return this.begin("acc_descr"),14;case 10:return this.popState(),"acc_descr_value";case 11:this.begin("acc_descr_multiline");break;case 12:this.popState();break;case 13:return"acc_descr_multiline_value";case 14:return 17;case 15:return 21;case 16:return 20;case 17:return 6;case 18:return"INVALID"}},rules:[/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:timeline\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,/^(?::\s[^#:\n;]+)/i,/^(?:[^#:\n;]+)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[12,13],inclusive:!1},acc_descr:{rules:[10],inclusive:!1},acc_title:{rules:[8],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,9,11,14,15,16,17,18],inclusive:!0}}};return m}();g.lexer=p;function b(){this.yy={}}return b.prototype=g,g.Parser=b,new b}();X.parser=X;const bt=X;let N="",nt=0;const J=[],V=[],j=[],it=()=>_t,rt=function(){J.length=0,V.length=0,N="",j.length=0,kt()},st=function(n){N=n,J.push(n)},at=function(){return J},ot=function(){let n=K();const t=100;let e=0;for(;!n&&e<t;)n=K(),e++;return V.push(...j),V},ct=function(n,t,e){const s={id:nt++,section:N,type:N,task:n,score:t||0,events:e?[e]:[]};j.push(s)},lt=function(n){j.find(t=>t.id===nt-1).events.push(n)},ht=function(n){const t={section:N,type:N,description:n,task:n,classes:[]};V.push(t)},K=function(){const n=function(e){return j[e].processed};let t=!0;for(const[e,s]of j.entries())n(e),t=t&&s.processed;return t},vt={clear:rt,getCommonDb:it,addSection:st,getSections:at,getTasks:ot,addTask:ct,addTaskOrg:ht,addEvent:lt},wt=Object.freeze(Object.defineProperty({__proto__:null,addEvent:lt,addSection:st,addTask:ct,addTaskOrg:ht,clear:rt,default:vt,getCommonDb:it,getSections:at,getTasks:ot},Symbol.toStringTag,{value:"Module"})),$t=12,q=function(n,t){const e=n.append("rect");return e.attr("x",t.x),e.attr("y",t.y),e.attr("fill",t.fill),e.attr("stroke",t.stroke),e.attr("width",t.width),e.attr("height",t.height),e.attr("rx",t.rx),e.attr("ry",t.ry),t.class!==void 0&&e.attr("class",t.class),e},St=function(n,t){const e=n.append("circle").attr("cx",t.cx).attr("cy",t.cy).attr("class","face").attr("r",15).attr("stroke-width",2).attr("overflow","visible"),s=n.append("g");s.append("circle").attr("cx",t.cx-15/3).attr("cy",t.cy-15/3).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666"),s.append("circle").attr("cx",t.cx+15/3).attr("cy",t.cy-15/3).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666");function r(u){const y=Z().startAngle(Math.PI/2).endAngle(3*(Math.PI/2)).innerRadius(7.5).outerRadius(6.8181818181818175);u.append("path").attr("class","mouth").attr("d",y).attr("transform","translate("+t.cx+","+(t.cy+2)+")")}function a(u){const y=Z().startAngle(3*Math.PI/2).endAngle(5*(Math.PI/2)).innerRadius(7.5).outerRadius(6.8181818181818175);u.append("path").attr("class","mouth").attr("d",y).attr("transform","translate("+t.cx+","+(t.cy+7)+")")}function h(u){u.append("line").attr("class","mouth").attr("stroke",2).attr("x1",t.cx-5).attr("y1",t.cy+7).attr("x2",t.cx+5).attr("y2",t.cy+7).attr("class","mouth").attr("stroke-width","1px").attr("stroke","#666")}return t.score>3?r(s):t.score<3?a(s):h(s),e},Et=function(n,t){const e=n.append("circle");return e.attr("cx",t.cx),e.attr("cy",t.cy),e.attr("class","actor-"+t.pos),e.attr("fill",t.fill),e.attr("stroke",t.stroke),e.attr("r",t.r),e.class!==void 0&&e.attr("class",e.class),t.title!==void 0&&e.append("title").text(t.title),e},dt=function(n,t){const e=t.text.replace(/<br\s*\/?>/gi," "),s=n.append("text");s.attr("x",t.x),s.attr("y",t.y),s.attr("class","legend"),s.style("text-anchor",t.anchor),t.class!==void 0&&s.attr("class",t.class);const r=s.append("tspan");return r.attr("x",t.x+t.textMargin*2),r.text(e),s},It=function(n,t){function e(r,a,h,u,y){return r+","+a+" "+(r+h)+","+a+" "+(r+h)+","+(a+u-y)+" "+(r+h-y*1.2)+","+(a+u)+" "+r+","+(a+u)}const s=n.append("polygon");s.attr("points",e(t.x,t.y,50,20,7)),s.attr("class","labelBox"),t.y=t.y+t.labelMargin,t.x=t.x+.5*t.labelMargin,dt(n,t)},Mt=function(n,t,e){const s=n.append("g"),r=Q();r.x=t.x,r.y=t.y,r.fill=t.fill,r.width=e.width,r.height=e.height,r.class="journey-section section-type-"+t.num,r.rx=3,r.ry=3,q(s,r),ut(e)(t.text,s,r.x,r.y,r.width,r.height,{class:"journey-section section-type-"+t.num},e,t.colour)};let tt=-1;const Tt=function(n,t,e){const s=t.x+e.width/2,r=n.append("g");tt++,r.append("line").attr("id","task"+tt).attr("x1",s).attr("y1",t.y).attr("x2",s).attr("y2",450).attr("class","task-line").attr("stroke-width","1px").attr("stroke-dasharray","4 2").attr("stroke","#666"),St(r,{cx:s,cy:300+(5-t.score)*30,score:t.score});const a=Q();a.x=t.x,a.y=t.y,a.fill=t.fill,a.width=e.width,a.height=e.height,a.class="task task-type-"+t.num,a.rx=3,a.ry=3,q(r,a),t.x+14,ut(e)(t.task,r,a.x,a.y,a.width,a.height,{class:"task"},e,t.colour)},At=function(n,t){q(n,{x:t.startx,y:t.starty,width:t.stopx-t.startx,height:t.stopy-t.starty,fill:t.fill,class:"rect"}).lower()},Ht=function(){return{x:0,y:0,fill:void 0,"text-anchor":"start",width:100,height:100,textMargin:0,rx:0,ry:0}},Q=function(){return{x:0,y:0,width:100,anchor:"start",height:100,rx:0,ry:0}},ut=function(){function n(r,a,h,u,y,g,p,b){const m=a.append("text").attr("x",h+y/2).attr("y",u+g/2+5).style("font-color",b).style("text-anchor","middle").text(r);s(m,p)}function t(r,a,h,u,y,g,p,b,m){const{taskFontSize:i,taskFontFamily:o}=b,l=r.split(/<br\s*\/?>/gi);for(let d=0;d<l.length;d++){const c=d*i-i*(l.length-1)/2,x=a.append("text").attr("x",h+y/2).attr("y",u).attr("fill",m).style("text-anchor","middle").style("font-size",i).style("font-family",o);x.append("tspan").attr("x",h+y/2).attr("dy",c).text(l[d]),x.attr("y",u+g/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),s(x,p)}}function e(r,a,h,u,y,g,p,b){const m=a.append("switch"),i=m.append("foreignObject").attr("x",h).attr("y",u).attr("width",y).attr("height",g).attr("position","fixed").append("xhtml:div").style("display","table").style("height","100%").style("width","100%");i.append("div").attr("class","label").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(r),t(r,m,h,u,y,g,p,b),s(i,p)}function s(r,a){for(const h in a)h in a&&r.attr(h,a[h])}return function(r){return r.textPlacement==="fo"?e:r.textPlacement==="old"?n:t}}(),Ct=function(n){n.append("defs").append("marker").attr("id","arrowhead").attr("refX",5).attr("refY",2).attr("markerWidth",6).attr("markerHeight",4).attr("orient","auto").append("path").attr("d","M 0,0 V 4 L6,2 Z")};function pt(n,t){n.each(function(){var e=R(this),s=e.text().split(/(\s+|<br>)/).reverse(),r,a=[],h=1.1,u=e.attr("y"),y=parseFloat(e.attr("dy")),g=e.text(null).append("tspan").attr("x",0).attr("y",u).attr("dy",y+"em");for(let p=0;p<s.length;p++)r=s[s.length-1-p],a.push(r),g.text(a.join(" ").trim()),(g.node().getComputedTextLength()>t||r==="<br>")&&(a.pop(),g.text(a.join(" ").trim()),r==="<br>"?a=[""]:a=[r],g=e.append("tspan").attr("x",0).attr("y",u).attr("dy",h+"em").text(r))})}const Pt=function(n,t,e,s){const r=e%$t-1,a=n.append("g");t.section=r,a.attr("class",(t.class?t.class+" ":"")+"timeline-node "+("section-"+r));const h=a.append("g"),u=a.append("g"),y=u.append("text").text(t.descr).attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle").call(pt,t.width).node().getBBox(),g=s.fontSize&&s.fontSize.replace?s.fontSize.replace("px",""):s.fontSize;return t.height=y.height+g*1.1*.5+t.padding,t.height=Math.max(t.height,t.maxHeight),t.width=t.width+2*t.padding,u.attr("transform","translate("+t.width/2+", "+t.padding/2+")"),zt(h,t,r),t},Ot=function(n,t,e){const s=n.append("g"),r=s.append("text").text(t.descr).attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle").call(pt,t.width).node().getBBox(),a=e.fontSize&&e.fontSize.replace?e.fontSize.replace("px",""):e.fontSize;return s.remove(),r.height+a*1.1*.5+t.padding},zt=function(n,t,e){n.append("path").attr("id","node-"+t.id).attr("class","node-bkg node-"+t.type).attr("d",`M0 ${t.height-5} v${-t.height+10} q0,-5 5,-5 h${t.width-10} q5,0 5,5 v${t.height-5} H0 Z`),n.append("line").attr("class","node-line-"+e).attr("x1",0).attr("y1",t.height).attr("x2",t.width).attr("y2",t.height)},P={drawRect:q,drawCircle:Et,drawSection:Mt,drawText:dt,drawLabel:It,drawTask:Tt,drawBackgroundRect:At,getTextObj:Ht,getNoteRect:Q,initGraphics:Ct,drawNode:Pt,getVirtualNodeHeight:Ot},Lt=function(n,t,e,s){var r,a;const h=mt(),u=h.leftMargin??50;w.debug("timeline",s.db);const y=h.securityLevel;let g;y==="sandbox"&&(g=R("#i"+t));const p=(y==="sandbox"?R(g.nodes()[0].contentDocument.body):R("body")).select("#"+t);p.append("g");const b=s.db.getTasks(),m=s.db.getCommonDb().getDiagramTitle();w.debug("task",b),P.initGraphics(p);const i=s.db.getSections();w.debug("sections",i);let o=0,l=0,d=0,c=0,x=50+u,_=50;c=50;let $=0,B=!0;i.forEach(function(f){const k={number:$,descr:f,section:$,width:150,padding:20,maxHeight:o},E=P.getVirtualNodeHeight(p,k,h);w.debug("sectionHeight before draw",E),o=Math.max(o,E+20)});let O=0,A=0;w.debug("tasks.length",b.length);for(const[f,k]of b.entries()){const E={number:f,descr:k,section:k.section,width:150,padding:20,maxHeight:l},I=P.getVirtualNodeHeight(p,E,h);w.debug("taskHeight before draw",I),l=Math.max(l,I+20),O=Math.max(O,k.events.length);let z=0;for(let H=0;H<k.events.length;H++){const v={descr:k.events[H],section:k.section,number:k.section,width:150,padding:20,maxHeight:50};z+=P.getVirtualNodeHeight(p,v,h)}A=Math.max(A,z)}w.debug("maxSectionHeight before draw",o),w.debug("maxTaskHeight before draw",l),i&&i.length>0?i.forEach(f=>{const k=b.filter(H=>H.section===f),E={number:$,descr:f,section:$,width:200*Math.max(k.length,1)-50,padding:20,maxHeight:o};w.debug("sectionNode",E);const I=p.append("g"),z=P.drawNode(I,E,$,h);w.debug("sectionNode output",z),I.attr("transform",`translate(${x}, ${c})`),_+=o+50,k.length>0&&et(p,k,$,x,_,l,h,O,A,o,!1),x+=200*Math.max(k.length,1),_=c,$++}):(B=!1,et(p,b,$,x,_,l,h,O,A,o,!0));const D=p.node().getBBox();w.debug("bounds",D),m&&p.append("text").text(m).attr("x",D.width/2-u).attr("font-size","4ex").attr("font-weight","bold").attr("y",20),d=B?o+l+150:l+100,p.append("g").attr("class","lineWrapper").append("line").attr("x1",u).attr("y1",d).attr("x2",D.width+3*u).attr("y2",d).attr("stroke-width",4).attr("stroke","black").attr("marker-end","url(#arrowhead)"),xt(void 0,p,((r=h.timeline)==null?void 0:r.padding)??50,((a=h.timeline)==null?void 0:a.useMaxWidth)??!1)},et=function(n,t,e,s,r,a,h,u,y,g,p){var b;for(const m of t){const i={descr:m.task,section:e,number:e,width:150,padding:20,maxHeight:a};w.debug("taskNode",i);const o=n.append("g").attr("class","taskWrapper"),l=P.drawNode(o,i,e,h).height;if(w.debug("taskHeight after draw",l),o.attr("transform",`translate(${s}, ${r})`),a=Math.max(a,l),m.events){const d=n.append("g").attr("class","lineWrapper");let c=a;r+=100,c=c+Nt(n,m.events,e,s,r,h),r-=100,d.append("line").attr("x1",s+190/2).attr("y1",r+a).attr("x2",s+190/2).attr("y2",r+a+(p?a:g)+y+120).attr("stroke-width",2).attr("stroke","black").attr("marker-end","url(#arrowhead)").attr("stroke-dasharray","5,5")}s=s+200,p&&!((b=h.timeline)!=null&&b.disableMulticolor)&&e++}r=r-10},Nt=function(n,t,e,s,r,a){let h=0;const u=r;r=r+100;for(const y of t){const g={descr:y,section:e,number:e,width:150,padding:20,maxHeight:50};w.debug("eventNode",g);const p=n.append("g").attr("class","eventWrapper"),b=P.drawNode(p,g,e,a).height;h=h+b,p.attr("transform",`translate(${s}, ${r})`),r=r+10+b}return r=u,h},jt={setConf:()=>{},draw:Lt},Bt=n=>{let t="";for(let e=0;e<n.THEME_COLOR_LIMIT;e++)n["lineColor"+e]=n["lineColor"+e]||n["cScaleInv"+e],yt(n["lineColor"+e])?n["lineColor"+e]=gt(n["lineColor"+e],20):n["lineColor"+e]=ft(n["lineColor"+e],20);for(let e=0;e<n.THEME_COLOR_LIMIT;e++){const s=""+(17-3*e);t+=`
7
7
  .section-${e-1} rect, .section-${e-1} path, .section-${e-1} circle, .section-${e-1} path {
8
8
  fill: ${n["cScale"+e]};
9
9
  }
@@ -35,11 +35,11 @@ Expecting `+B.join(", ")+", got '"+(this.terminals_[v]||v)+"'":G="Parse error on
35
35
  .disabled text {
36
36
  fill: #efefef;
37
37
  }
38
- `}return t},Ft=n=>`
38
+ `}return t},Dt=n=>`
39
39
  .edge {
40
40
  stroke-width: 3;
41
41
  }
42
- ${Dt(n)}
42
+ ${Bt(n)}
43
43
  .section-root rect, .section-root path, .section-root circle {
44
44
  fill: ${n.git0};
45
45
  }
@@ -58,4 +58,4 @@ Expecting `+B.join(", ")+", got '"+(this.terminals_[v]||v)+"'":G="Parse error on
58
58
  .eventWrapper {
59
59
  filter: brightness(120%);
60
60
  }
61
- `,Wt=Ft,Vt={db:wt,renderer:jt,parser:bt,styles:Wt};export{Vt as diagram};
61
+ `,Ft=Dt,Vt={db:wt,renderer:jt,parser:bt,styles:Ft};export{Vt as diagram};