@spteck/react-controls-v2 2.2.2 → 2.2.5

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 (111) hide show
  1. package/dist/{_arrayEach-CnIMt1eB.js → _arrayEach-CqFZfCII.js} +2 -2
  2. package/dist/{_arrayEach-vx8gLv03.cjs → _arrayEach-D4zuu96h.cjs} +2 -2
  3. package/dist/{arc-fdHOvWdS.cjs → arc-DVsLnFmY.cjs} +2 -2
  4. package/dist/{arc-DPTV8xm_.js → arc-aQvhbW8i.js} +2 -2
  5. package/dist/architecture-7HQA4BMR-B7-h10Im.js +6 -0
  6. package/dist/{architecture-7HQA4BMR-DwCjpO72.cjs → architecture-7HQA4BMR-XjppxKRg.cjs} +2 -2
  7. package/dist/{architectureDiagram-VXUJARFQ-B5yGOjRk.js → architectureDiagram-VXUJARFQ-D6Nz1iJf.js} +4 -4
  8. package/dist/{architectureDiagram-VXUJARFQ-C7K57uon.cjs → architectureDiagram-VXUJARFQ-DIlvBP7n.cjs} +2 -2
  9. package/dist/{blockDiagram-VD42YOAC-B9MtQVc8.js → blockDiagram-VD42YOAC-COTmdEYf.js} +5 -5
  10. package/dist/{blockDiagram-VD42YOAC-CXUX1_9K.cjs → blockDiagram-VD42YOAC-eoa5Tjmi.cjs} +2 -2
  11. package/dist/{c4Diagram-YG6GDRKO-CKFTKCbq.js → c4Diagram-YG6GDRKO-DZUAZkaf.js} +3 -3
  12. package/dist/{c4Diagram-YG6GDRKO-0rSYap-S.cjs → c4Diagram-YG6GDRKO-D_8NNIZj.cjs} +2 -2
  13. package/dist/channel-B1SMUhi0.cjs +2 -0
  14. package/dist/{channel-CJ2FoHig.js → channel-CStgee6z.js} +2 -2
  15. package/dist/{chunk-4BX2VUAB-ghaW5jSQ.js → chunk-4BX2VUAB-BMIPlysy.js} +2 -2
  16. package/dist/{chunk-4BX2VUAB-DJlF8TIZ.cjs → chunk-4BX2VUAB-TOFCWNSm.cjs} +2 -2
  17. package/dist/{chunk-55IACEB6-__yJgpDO.js → chunk-55IACEB6-CVM8RfF8.js} +2 -2
  18. package/dist/{chunk-55IACEB6-9B1z6QHL.cjs → chunk-55IACEB6-Du1XS8Uq.cjs} +2 -2
  19. package/dist/{chunk-B4BG7PRW-NVucxzRs.js → chunk-B4BG7PRW-CrL0RwBf.js} +5 -5
  20. package/dist/{chunk-B4BG7PRW-Dbzu88Oo.cjs → chunk-B4BG7PRW-DEwHKt7v.cjs} +2 -2
  21. package/dist/{chunk-DI55MBZ5-e__JA50C.cjs → chunk-DI55MBZ5-BWCTxXqE.cjs} +2 -2
  22. package/dist/{chunk-DI55MBZ5-Bun58OTZ.js → chunk-DI55MBZ5-Dcfk7rkk.js} +4 -4
  23. package/dist/{chunk-FMBD7UC4-DulgQOWY.js → chunk-FMBD7UC4-B5kmDdIm.js} +2 -2
  24. package/dist/{chunk-FMBD7UC4-Pi8Fs7F6.cjs → chunk-FMBD7UC4-DMErx-lW.cjs} +2 -2
  25. package/dist/{chunk-QN33PNHL-DcHwlyDo.cjs → chunk-QN33PNHL-CkT5TAcW.cjs} +2 -2
  26. package/dist/{chunk-QN33PNHL-DA_6jplh.js → chunk-QN33PNHL-DbaaoJ4j.js} +2 -2
  27. package/dist/{chunk-QZHKN3VN-C5x9oEL1.js → chunk-QZHKN3VN-BsktB_nO.js} +2 -2
  28. package/dist/{chunk-QZHKN3VN-BfGBK4_s.cjs → chunk-QZHKN3VN-CMS4Eu2L.cjs} +2 -2
  29. package/dist/{chunk-TZMSLE5B-Bj2-6aT8.js → chunk-TZMSLE5B-CbhkmL3S.js} +2 -2
  30. package/dist/{chunk-TZMSLE5B-BCBp8EeB.cjs → chunk-TZMSLE5B-lGq5Y0nP.cjs} +2 -2
  31. package/dist/{classDiagram-2ON5EDUG-BGUaVc1W.cjs → classDiagram-2ON5EDUG-ChI1HQhB.cjs} +2 -2
  32. package/dist/{classDiagram-2ON5EDUG-BcR1HP9z.js → classDiagram-2ON5EDUG-CtIswLAU.js} +3 -3
  33. package/dist/{classDiagram-v2-WZHVMYZB-BGUaVc1W.cjs → classDiagram-v2-WZHVMYZB-ChI1HQhB.cjs} +2 -2
  34. package/dist/{classDiagram-v2-WZHVMYZB-BcR1HP9z.js → classDiagram-v2-WZHVMYZB-CtIswLAU.js} +3 -3
  35. package/dist/components/fluentUIProvider/FluentUIProvider.d.ts +1 -0
  36. package/dist/{cose-bilkent-S5V4N54A-BcLbJZT7.cjs → cose-bilkent-S5V4N54A-CC01Tkem.cjs} +2 -2
  37. package/dist/{cose-bilkent-S5V4N54A-CtEV3dGx.js → cose-bilkent-S5V4N54A-DzADNsjH.js} +2 -2
  38. package/dist/{dagre-6UL2VRFP-FmOJGmX_.cjs → dagre-6UL2VRFP-CDYaaqiU.cjs} +2 -2
  39. package/dist/{dagre-6UL2VRFP-BZ9apxkx.js → dagre-6UL2VRFP-ybWMcc5w.js} +2 -2
  40. package/dist/{diagram-PSM6KHXK-_wkJk__z.js → diagram-PSM6KHXK-CbgHTYSR.js} +5 -5
  41. package/dist/{diagram-PSM6KHXK-BZxXJahR.cjs → diagram-PSM6KHXK-DqhM0iw7.cjs} +2 -2
  42. package/dist/{diagram-QEK2KX5R-YQAU79Lo.js → diagram-QEK2KX5R-CNed7b76.js} +4 -4
  43. package/dist/{diagram-QEK2KX5R-NQiK3YZe.cjs → diagram-QEK2KX5R-UQaqb5nU.cjs} +2 -2
  44. package/dist/{diagram-S2PKOQOG-D8jaJbP8.js → diagram-S2PKOQOG-BYSFHhaj.js} +4 -4
  45. package/dist/{diagram-S2PKOQOG-Cob2HIrt.cjs → diagram-S2PKOQOG-OdSmYpDj.cjs} +2 -2
  46. package/dist/{erDiagram-Q2GNP2WA-DAzex-RZ.cjs → erDiagram-Q2GNP2WA-D6Xk9c-u.cjs} +2 -2
  47. package/dist/{erDiagram-Q2GNP2WA-syuB6Tgc.js → erDiagram-Q2GNP2WA-l9zKKI29.js} +5 -5
  48. package/dist/{flowDiagram-NV44I4VS-DOcXDmk8.cjs → flowDiagram-NV44I4VS-B-5P4uRf.cjs} +2 -2
  49. package/dist/{flowDiagram-NV44I4VS-CXJA5Xu7.js → flowDiagram-NV44I4VS-qlSwOj8Q.js} +6 -6
  50. package/dist/{ganttDiagram-JELNMOA3-oeOE4Au1.cjs → ganttDiagram-JELNMOA3-BvXDYjE1.cjs} +2 -2
  51. package/dist/{ganttDiagram-JELNMOA3-BodaBsjX.js → ganttDiagram-JELNMOA3-i4-qMitb.js} +3 -3
  52. package/dist/{gitGraph-G5XIXVHT-bEuOx0_B.cjs → gitGraph-G5XIXVHT-BdOKVbYt.cjs} +2 -2
  53. package/dist/gitGraph-G5XIXVHT-o_QJiZO1.js +6 -0
  54. package/dist/{gitGraphDiagram-V2S2FVAM-B5dByD3_.js → gitGraphDiagram-V2S2FVAM-BFlWQFzy.js} +5 -5
  55. package/dist/{gitGraphDiagram-V2S2FVAM-D4G2FRg-.cjs → gitGraphDiagram-V2S2FVAM-DStoHbQA.cjs} +2 -2
  56. package/dist/{index-DkoeCnje.cjs → index-D7xz2-Uy.cjs} +4 -4
  57. package/dist/{index-CP55uT1-.js → index-H1wV1Hpq.js} +173 -151
  58. package/dist/index.cjs +1 -1
  59. package/dist/index.d.ts +2 -0
  60. package/dist/index.js +122 -121
  61. package/dist/info-VBDWY6EO-C4My0e3p.js +6 -0
  62. package/dist/{info-VBDWY6EO-CIQZzC1h.cjs → info-VBDWY6EO-D_RrmivC.cjs} +2 -2
  63. package/dist/{infoDiagram-HS3SLOUP-BCGLBWdb.js → infoDiagram-HS3SLOUP-BZK0euSr.js} +3 -3
  64. package/dist/{infoDiagram-HS3SLOUP-l61UBAGu.cjs → infoDiagram-HS3SLOUP-BnevWU-I.cjs} +2 -2
  65. package/dist/{journeyDiagram-XKPGCS4Q-DDFQr_sf.cjs → journeyDiagram-XKPGCS4Q-BODApzJb.cjs} +2 -2
  66. package/dist/{journeyDiagram-XKPGCS4Q-CngaMpvw.js → journeyDiagram-XKPGCS4Q-itaMgi9U.js} +5 -5
  67. package/dist/{kanban-definition-3W4ZIXB7-Yh2cXBd5.cjs → kanban-definition-3W4ZIXB7-BY1oKhQF.cjs} +2 -2
  68. package/dist/{kanban-definition-3W4ZIXB7-DE64tG2k.js → kanban-definition-3W4ZIXB7-DX8gChMt.js} +3 -3
  69. package/dist/{linear-R5bATomY.js → linear-Pcf3i3zp.js} +2 -2
  70. package/dist/{linear-CytTXQM2.cjs → linear-cXEFiojf.cjs} +2 -2
  71. package/dist/{maplibre-gl-D9TSGNCf.cjs → maplibre-gl-BdoOI0bI.cjs} +2 -2
  72. package/dist/{maplibre-gl-DwyiD0x9.js → maplibre-gl-KdF6druQ.js} +2 -2
  73. package/dist/{mermaid-parser.core-BbdofhA6.js → mermaid-parser.core-B7B_q9yz.js} +10 -10
  74. package/dist/{mermaid-parser.core-C4ChZJz4.cjs → mermaid-parser.core-Dr6wdKdo.cjs} +2 -2
  75. package/dist/{mindmap-definition-VGOIOE7T-BonbrEly.cjs → mindmap-definition-VGOIOE7T-BWtHcwxS.cjs} +2 -2
  76. package/dist/{mindmap-definition-VGOIOE7T-C8FL7caj.js → mindmap-definition-VGOIOE7T-DB1ivc4U.js} +4 -4
  77. package/dist/{packet-DYOGHKS2-64UpspMA.cjs → packet-DYOGHKS2-Bc88puEA.cjs} +2 -2
  78. package/dist/packet-DYOGHKS2-C_QHQq0u.js +6 -0
  79. package/dist/{pie-VRWISCQL-B_5_SIgL.cjs → pie-VRWISCQL-BDZOt1dn.cjs} +2 -2
  80. package/dist/pie-VRWISCQL-DHWh56U-.js +6 -0
  81. package/dist/{pieDiagram-ADFJNKIX-C8b4kPLp.cjs → pieDiagram-ADFJNKIX-BExkCjtp.cjs} +2 -2
  82. package/dist/{pieDiagram-ADFJNKIX-CQjh4P80.js → pieDiagram-ADFJNKIX-rHRiRGIK.js} +5 -5
  83. package/dist/{quadrantDiagram-AYHSOK5B-BiLBDCHf.js → quadrantDiagram-AYHSOK5B-CkVTfka1.js} +3 -3
  84. package/dist/{quadrantDiagram-AYHSOK5B-Bb99yQJL.cjs → quadrantDiagram-AYHSOK5B-Dn_KGYm_.cjs} +2 -2
  85. package/dist/{radar-ZZBFDIW7-DC8bA3_e.cjs → radar-ZZBFDIW7-CN4CW1Sn.cjs} +2 -2
  86. package/dist/radar-ZZBFDIW7-HmbC_3ms.js +6 -0
  87. package/dist/{requirementDiagram-UZGBJVZJ-BeLfR5tA.cjs → requirementDiagram-UZGBJVZJ-Cnr0krQo.cjs} +2 -2
  88. package/dist/{requirementDiagram-UZGBJVZJ-D6hcN5kf.js → requirementDiagram-UZGBJVZJ-DjP_ZBLH.js} +4 -4
  89. package/dist/{sankeyDiagram-TZEHDZUN-7K2pggbF.js → sankeyDiagram-TZEHDZUN-anjZuu_D.js} +2 -2
  90. package/dist/{sankeyDiagram-TZEHDZUN-T1lqY3ke.cjs → sankeyDiagram-TZEHDZUN-hSdLQwtC.cjs} +2 -2
  91. package/dist/{sequenceDiagram-WL72ISMW-DymCRly8.js → sequenceDiagram-WL72ISMW-CVybpZao.js} +4 -4
  92. package/dist/{sequenceDiagram-WL72ISMW-CaSRrEHR.cjs → sequenceDiagram-WL72ISMW-DmCBPiOU.cjs} +2 -2
  93. package/dist/{stateDiagram-FKZM4ZOC-B3uhYYpW.js → stateDiagram-FKZM4ZOC-CkrSnJVo.js} +3 -3
  94. package/dist/{stateDiagram-FKZM4ZOC-BETxyYxX.cjs → stateDiagram-FKZM4ZOC-Dkv9EsDA.cjs} +2 -2
  95. package/dist/{stateDiagram-v2-4FDKWEC3-B4AjT1wB.cjs → stateDiagram-v2-4FDKWEC3-ClwE0oA4.cjs} +2 -2
  96. package/dist/{stateDiagram-v2-4FDKWEC3-BuiA8K0X.js → stateDiagram-v2-4FDKWEC3-Cqvjxhmg.js} +3 -3
  97. package/dist/{timeline-definition-IT6M3QCI-DNROY61n.js → timeline-definition-IT6M3QCI-BVqV4KxZ.js} +3 -3
  98. package/dist/{timeline-definition-IT6M3QCI-CsJvwNrg.cjs → timeline-definition-IT6M3QCI-C-NbrBWK.cjs} +2 -2
  99. package/dist/treemap-GDKQZRPO-CGArjxOL.js +6 -0
  100. package/dist/{treemap-GDKQZRPO-Dj3L_VQH.cjs → treemap-GDKQZRPO-DPSTeBWV.cjs} +2 -2
  101. package/dist/{xychartDiagram-PRI3JC2R-D7UaoGaC.js → xychartDiagram-PRI3JC2R-ByRfiz5K.js} +3 -3
  102. package/dist/{xychartDiagram-PRI3JC2R-CXT2FhOm.cjs → xychartDiagram-PRI3JC2R-ClwDpfOS.cjs} +2 -2
  103. package/package.json +1 -1
  104. package/dist/architecture-7HQA4BMR-BAUhgjE2.js +0 -6
  105. package/dist/channel-DjKs64mj.cjs +0 -2
  106. package/dist/gitGraph-G5XIXVHT-BAoUh2t9.js +0 -6
  107. package/dist/info-VBDWY6EO-CCtIeR-l.js +0 -6
  108. package/dist/packet-DYOGHKS2-DCndr5Wp.js +0 -6
  109. package/dist/pie-VRWISCQL-BbSFz_Jh.js +0 -6
  110. package/dist/radar-ZZBFDIW7-DpGZ3D_F.js +0 -6
  111. package/dist/treemap-GDKQZRPO-DbPXSmw-.js +0 -6
@@ -1,2 +1,2 @@
1
- "use strict";var e,t;const s=require("./chunk-FMBD7UC4-Pi8Fs7F6.cjs"),i=require("./chunk-55IACEB6-9B1z6QHL.cjs"),n=require("./chunk-QN33PNHL-DcHwlyDo.cjs"),a=require("./index-DkoeCnje.cjs");var r=function(){var e=a.__name(function(e,t,s,i){for(s=s||{},i=e.length;i--;s[e[i]]=t);return s},"o"),t=[1,18],s=[1,19],i=[1,20],n=[1,41],r=[1,42],u=[1,26],l=[1,24],o=[1,25],c=[1,32],h=[1,33],p=[1,34],d=[1,45],A=[1,35],y=[1,36],m=[1,37],g=[1,38],C=[1,27],b=[1,28],f=[1,29],E=[1,30],_=[1,31],T=[1,44],k=[1,46],F=[1,43],D=[1,47],B=[1,9],S=[1,8,9],N=[1,58],L=[1,59],$=[1,60],x=[1,61],I=[1,62],v=[1,63],O=[1,64],w=[1,8,9,41],R=[1,76],P=[1,8,9,12,13,22,39,41,44,68,69,70,71,72,73,74,79,81],M=[1,8,9,12,13,18,20,22,39,41,44,50,60,68,69,70,71,72,73,74,79,81,86,100,102,103],G=[13,60,86,100,102,103],U=[13,60,73,74,86,100,102,103],z=[13,60,68,69,70,71,72,86,100,102,103],Y=[1,100],K=[1,117],j=[1,113],W=[1,109],Q=[1,115],X=[1,110],q=[1,111],H=[1,112],V=[1,114],J=[1,116],Z=[22,48,60,61,82,86,87,88,89,90],ee=[1,8,9,39,41,44],te=[1,8,9,22],se=[1,145],ie=[1,8,9,61],ne=[1,8,9,22,48,60,61,82,86,87,88,89,90],ae={trace:a.__name(function(){},"trace"),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,classLiteralName:17,DOT:18,className:19,GENERICTYPE:20,relationStatement:21,LABEL:22,namespaceStatement:23,classStatement:24,memberStatement:25,annotationStatement:26,clickStatement:27,styleStatement:28,cssClassStatement:29,noteStatement:30,classDefStatement:31,direction:32,acc_title:33,acc_title_value:34,acc_descr:35,acc_descr_value:36,acc_descr_multiline_value:37,namespaceIdentifier:38,STRUCT_START:39,classStatements:40,STRUCT_STOP:41,NAMESPACE:42,classIdentifier:43,STYLE_SEPARATOR:44,members:45,CLASS:46,emptyBody:47,SPACE:48,ANNOTATION_START:49,ANNOTATION_END:50,MEMBER:51,SEPARATOR:52,relation:53,NOTE_FOR:54,noteText:55,NOTE:56,CLASSDEF:57,classList:58,stylesOpt:59,ALPHA:60,COMMA:61,direction_tb:62,direction_bt:63,direction_rl:64,direction_lr:65,relationType:66,lineType:67,AGGREGATION:68,EXTENSION:69,COMPOSITION:70,DEPENDENCY:71,LOLLIPOP:72,LINE:73,DOTTED_LINE:74,CALLBACK:75,LINK:76,LINK_TARGET:77,CLICK:78,CALLBACK_NAME:79,CALLBACK_ARGS:80,HREF:81,STYLE:82,CSSCLASS:83,style:84,styleComponent:85,NUM:86,COLON:87,UNIT:88,BRKT:89,PCT:90,commentToken:91,textToken:92,graphCodeTokens:93,textNoTagsToken:94,TAGSTART:95,TAGEND:96,"==":97,"--":98,DEFAULT:99,MINUS:100,keywords:101,UNICODE_TEXT:102,BQUOTE_STR:103,$accept:0,$end:1},terminals_:{2:"error",7:"CLASS_DIAGRAM",8:"NEWLINE",9:"EOF",12:"SQS",13:"STR",14:"SQE",18:"DOT",20:"GENERICTYPE",22:"LABEL",33:"acc_title",34:"acc_title_value",35:"acc_descr",36:"acc_descr_value",37:"acc_descr_multiline_value",39:"STRUCT_START",41:"STRUCT_STOP",42:"NAMESPACE",44:"STYLE_SEPARATOR",46:"CLASS",48:"SPACE",49:"ANNOTATION_START",50:"ANNOTATION_END",51:"MEMBER",52:"SEPARATOR",54:"NOTE_FOR",56:"NOTE",57:"CLASSDEF",60:"ALPHA",61:"COMMA",62:"direction_tb",63:"direction_bt",64:"direction_rl",65:"direction_lr",68:"AGGREGATION",69:"EXTENSION",70:"COMPOSITION",71:"DEPENDENCY",72:"LOLLIPOP",73:"LINE",74:"DOTTED_LINE",75:"CALLBACK",76:"LINK",77:"LINK_TARGET",78:"CLICK",79:"CALLBACK_NAME",80:"CALLBACK_ARGS",81:"HREF",82:"STYLE",83:"CSSCLASS",86:"NUM",87:"COLON",88:"UNIT",89:"BRKT",90:"PCT",93:"graphCodeTokens",95:"TAGSTART",96:"TAGEND",97:"==",98:"--",99:"DEFAULT",100:"MINUS",101:"keywords",102:"UNICODE_TEXT",103:"BQUOTE_STR"},productions_:[0,[3,1],[3,1],[4,1],[6,4],[5,1],[5,2],[5,3],[11,3],[15,1],[15,1],[15,3],[15,2],[19,1],[19,3],[19,1],[19,2],[19,2],[19,2],[10,1],[10,2],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,2],[10,2],[10,1],[23,4],[23,5],[38,2],[40,1],[40,2],[40,3],[24,1],[24,3],[24,4],[24,3],[24,6],[43,2],[43,3],[47,0],[47,2],[47,2],[26,4],[45,1],[45,2],[25,1],[25,2],[25,1],[25,1],[21,3],[21,4],[21,4],[21,5],[30,3],[30,2],[31,3],[58,1],[58,3],[32,1],[32,1],[32,1],[32,1],[53,3],[53,2],[53,2],[53,1],[66,1],[66,1],[66,1],[66,1],[66,1],[67,1],[67,1],[27,3],[27,4],[27,3],[27,4],[27,4],[27,5],[27,3],[27,4],[27,4],[27,5],[27,4],[27,5],[27,5],[27,6],[28,3],[29,3],[59,1],[59,3],[84,1],[84,2],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[91,1],[91,1],[92,1],[92,1],[92,1],[92,1],[92,1],[92,1],[92,1],[94,1],[94,1],[94,1],[94,1],[16,1],[16,1],[16,1],[16,1],[17,1],[55,1]],performAction:a.__name(function(e,t,s,i,n,a,r){var u=a.length-1;switch(n){case 8:this.$=a[u-1];break;case 9:case 10:case 13:case 15:this.$=a[u];break;case 11:case 14:this.$=a[u-2]+"."+a[u];break;case 12:case 16:case 100:this.$=a[u-1]+a[u];break;case 17:case 18:this.$=a[u-1]+"~"+a[u]+"~";break;case 19:i.addRelation(a[u]);break;case 20:a[u-1].title=i.cleanupLabel(a[u]),i.addRelation(a[u-1]);break;case 31:this.$=a[u].trim(),i.setAccTitle(this.$);break;case 32:case 33:this.$=a[u].trim(),i.setAccDescription(this.$);break;case 34:i.addClassesToNamespace(a[u-3],a[u-1]);break;case 35:i.addClassesToNamespace(a[u-4],a[u-1]);break;case 36:this.$=a[u],i.addNamespace(a[u]);break;case 37:case 51:case 64:case 97:this.$=[a[u]];break;case 38:this.$=[a[u-1]];break;case 39:a[u].unshift(a[u-2]),this.$=a[u];break;case 41:i.setCssClass(a[u-2],a[u]);break;case 42:i.addMembers(a[u-3],a[u-1]);break;case 44:i.setCssClass(a[u-5],a[u-3]),i.addMembers(a[u-5],a[u-1]);break;case 45:this.$=a[u],i.addClass(a[u]);break;case 46:this.$=a[u-1],i.addClass(a[u-1]),i.setClassLabel(a[u-1],a[u]);break;case 50:i.addAnnotation(a[u],a[u-2]);break;case 52:a[u].push(a[u-1]),this.$=a[u];break;case 53:case 55:case 56:break;case 54:i.addMember(a[u-1],i.cleanupLabel(a[u]));break;case 57:this.$={id1:a[u-2],id2:a[u],relation:a[u-1],relationTitle1:"none",relationTitle2:"none"};break;case 58:this.$={id1:a[u-3],id2:a[u],relation:a[u-1],relationTitle1:a[u-2],relationTitle2:"none"};break;case 59:this.$={id1:a[u-3],id2:a[u],relation:a[u-2],relationTitle1:"none",relationTitle2:a[u-1]};break;case 60:this.$={id1:a[u-4],id2:a[u],relation:a[u-2],relationTitle1:a[u-3],relationTitle2:a[u-1]};break;case 61:i.addNote(a[u],a[u-1]);break;case 62:i.addNote(a[u]);break;case 63:this.$=a[u-2],i.defineClass(a[u-1],a[u]);break;case 65:this.$=a[u-2].concat([a[u]]);break;case 66:i.setDirection("TB");break;case 67:i.setDirection("BT");break;case 68:i.setDirection("RL");break;case 69:i.setDirection("LR");break;case 70:this.$={type1:a[u-2],type2:a[u],lineType:a[u-1]};break;case 71:this.$={type1:"none",type2:a[u],lineType:a[u-1]};break;case 72:this.$={type1:a[u-1],type2:"none",lineType:a[u]};break;case 73:this.$={type1:"none",type2:"none",lineType:a[u]};break;case 74:this.$=i.relationType.AGGREGATION;break;case 75:this.$=i.relationType.EXTENSION;break;case 76:this.$=i.relationType.COMPOSITION;break;case 77:this.$=i.relationType.DEPENDENCY;break;case 78:this.$=i.relationType.LOLLIPOP;break;case 79:this.$=i.lineType.LINE;break;case 80:this.$=i.lineType.DOTTED_LINE;break;case 81:case 87:this.$=a[u-2],i.setClickEvent(a[u-1],a[u]);break;case 82:case 88:this.$=a[u-3],i.setClickEvent(a[u-2],a[u-1]),i.setTooltip(a[u-2],a[u]);break;case 83:this.$=a[u-2],i.setLink(a[u-1],a[u]);break;case 84:this.$=a[u-3],i.setLink(a[u-2],a[u-1],a[u]);break;case 85:this.$=a[u-3],i.setLink(a[u-2],a[u-1]),i.setTooltip(a[u-2],a[u]);break;case 86:this.$=a[u-4],i.setLink(a[u-3],a[u-2],a[u]),i.setTooltip(a[u-3],a[u-1]);break;case 89:this.$=a[u-3],i.setClickEvent(a[u-2],a[u-1],a[u]);break;case 90:this.$=a[u-4],i.setClickEvent(a[u-3],a[u-2],a[u-1]),i.setTooltip(a[u-3],a[u]);break;case 91:this.$=a[u-3],i.setLink(a[u-2],a[u]);break;case 92:this.$=a[u-4],i.setLink(a[u-3],a[u-1],a[u]);break;case 93:this.$=a[u-4],i.setLink(a[u-3],a[u-1]),i.setTooltip(a[u-3],a[u]);break;case 94:this.$=a[u-5],i.setLink(a[u-4],a[u-2],a[u]),i.setTooltip(a[u-4],a[u-1]);break;case 95:this.$=a[u-2],i.setCssStyle(a[u-1],a[u]);break;case 96:i.setCssClass(a[u-1],a[u]);break;case 98:a[u-2].push(a[u]),this.$=a[u-2]}},"anonymous"),table:[{3:1,4:2,5:3,6:4,7:[1,6],10:5,16:39,17:40,19:21,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:t,35:s,37:i,38:22,42:n,43:23,46:r,49:u,51:l,52:o,54:c,56:h,57:p,60:d,62:A,63:y,64:m,65:g,75:C,76:b,78:f,82:E,83:_,86:T,100:k,102:F,103:D},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,3]},e(B,[2,5],{8:[1,48]}),{8:[1,49]},e(S,[2,19],{22:[1,50]}),e(S,[2,21]),e(S,[2,22]),e(S,[2,23]),e(S,[2,24]),e(S,[2,25]),e(S,[2,26]),e(S,[2,27]),e(S,[2,28]),e(S,[2,29]),e(S,[2,30]),{34:[1,51]},{36:[1,52]},e(S,[2,33]),e(S,[2,53],{53:53,66:56,67:57,13:[1,54],22:[1,55],68:N,69:L,70:$,71:x,72:I,73:v,74:O}),{39:[1,65]},e(w,[2,40],{39:[1,67],44:[1,66]}),e(S,[2,55]),e(S,[2,56]),{16:68,60:d,86:T,100:k,102:F},{16:39,17:40,19:69,60:d,86:T,100:k,102:F,103:D},{16:39,17:40,19:70,60:d,86:T,100:k,102:F,103:D},{16:39,17:40,19:71,60:d,86:T,100:k,102:F,103:D},{60:[1,72]},{13:[1,73]},{16:39,17:40,19:74,60:d,86:T,100:k,102:F,103:D},{13:R,55:75},{58:77,60:[1,78]},e(S,[2,66]),e(S,[2,67]),e(S,[2,68]),e(S,[2,69]),e(P,[2,13],{16:39,17:40,19:80,18:[1,79],20:[1,81],60:d,86:T,100:k,102:F,103:D}),e(P,[2,15],{20:[1,82]}),{15:83,16:84,17:85,60:d,86:T,100:k,102:F,103:D},{16:39,17:40,19:86,60:d,86:T,100:k,102:F,103:D},e(M,[2,123]),e(M,[2,124]),e(M,[2,125]),e(M,[2,126]),e([1,8,9,12,13,20,22,39,41,44,68,69,70,71,72,73,74,79,81],[2,127]),e(B,[2,6],{10:5,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,19:21,38:22,43:23,16:39,17:40,5:87,33:t,35:s,37:i,42:n,46:r,49:u,51:l,52:o,54:c,56:h,57:p,60:d,62:A,63:y,64:m,65:g,75:C,76:b,78:f,82:E,83:_,86:T,100:k,102:F,103:D}),{5:88,10:5,16:39,17:40,19:21,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:t,35:s,37:i,38:22,42:n,43:23,46:r,49:u,51:l,52:o,54:c,56:h,57:p,60:d,62:A,63:y,64:m,65:g,75:C,76:b,78:f,82:E,83:_,86:T,100:k,102:F,103:D},e(S,[2,20]),e(S,[2,31]),e(S,[2,32]),{13:[1,90],16:39,17:40,19:89,60:d,86:T,100:k,102:F,103:D},{53:91,66:56,67:57,68:N,69:L,70:$,71:x,72:I,73:v,74:O},e(S,[2,54]),{67:92,73:v,74:O},e(G,[2,73],{66:93,68:N,69:L,70:$,71:x,72:I}),e(U,[2,74]),e(U,[2,75]),e(U,[2,76]),e(U,[2,77]),e(U,[2,78]),e(z,[2,79]),e(z,[2,80]),{8:[1,95],24:96,40:94,43:23,46:r},{16:97,60:d,86:T,100:k,102:F},{41:[1,99],45:98,51:Y},{50:[1,101]},{13:[1,102]},{13:[1,103]},{79:[1,104],81:[1,105]},{22:K,48:j,59:106,60:W,82:Q,84:107,85:108,86:X,87:q,88:H,89:V,90:J},{60:[1,118]},{13:R,55:119},e(S,[2,62]),e(S,[2,128]),{22:K,48:j,59:120,60:W,61:[1,121],82:Q,84:107,85:108,86:X,87:q,88:H,89:V,90:J},e(Z,[2,64]),{16:39,17:40,19:122,60:d,86:T,100:k,102:F,103:D},e(P,[2,16]),e(P,[2,17]),e(P,[2,18]),{39:[2,36]},{15:124,16:84,17:85,18:[1,123],39:[2,9],60:d,86:T,100:k,102:F,103:D},{39:[2,10]},e(ee,[2,45],{11:125,12:[1,126]}),e(B,[2,7]),{9:[1,127]},e(te,[2,57]),{16:39,17:40,19:128,60:d,86:T,100:k,102:F,103:D},{13:[1,130],16:39,17:40,19:129,60:d,86:T,100:k,102:F,103:D},e(G,[2,72],{66:131,68:N,69:L,70:$,71:x,72:I}),e(G,[2,71]),{41:[1,132]},{24:96,40:133,43:23,46:r},{8:[1,134],41:[2,37]},e(w,[2,41],{39:[1,135]}),{41:[1,136]},e(w,[2,43]),{41:[2,51],45:137,51:Y},{16:39,17:40,19:138,60:d,86:T,100:k,102:F,103:D},e(S,[2,81],{13:[1,139]}),e(S,[2,83],{13:[1,141],77:[1,140]}),e(S,[2,87],{13:[1,142],80:[1,143]}),{13:[1,144]},e(S,[2,95],{61:se}),e(ie,[2,97],{85:146,22:K,48:j,60:W,82:Q,86:X,87:q,88:H,89:V,90:J}),e(ne,[2,99]),e(ne,[2,101]),e(ne,[2,102]),e(ne,[2,103]),e(ne,[2,104]),e(ne,[2,105]),e(ne,[2,106]),e(ne,[2,107]),e(ne,[2,108]),e(ne,[2,109]),e(S,[2,96]),e(S,[2,61]),e(S,[2,63],{61:se}),{60:[1,147]},e(P,[2,14]),{15:148,16:84,17:85,60:d,86:T,100:k,102:F,103:D},{39:[2,12]},e(ee,[2,46]),{13:[1,149]},{1:[2,4]},e(te,[2,59]),e(te,[2,58]),{16:39,17:40,19:150,60:d,86:T,100:k,102:F,103:D},e(G,[2,70]),e(S,[2,34]),{41:[1,151]},{24:96,40:152,41:[2,38],43:23,46:r},{45:153,51:Y},e(w,[2,42]),{41:[2,52]},e(S,[2,50]),e(S,[2,82]),e(S,[2,84]),e(S,[2,85],{77:[1,154]}),e(S,[2,88]),e(S,[2,89],{13:[1,155]}),e(S,[2,91],{13:[1,157],77:[1,156]}),{22:K,48:j,60:W,82:Q,84:158,85:108,86:X,87:q,88:H,89:V,90:J},e(ne,[2,100]),e(Z,[2,65]),{39:[2,11]},{14:[1,159]},e(te,[2,60]),e(S,[2,35]),{41:[2,39]},{41:[1,160]},e(S,[2,86]),e(S,[2,90]),e(S,[2,92]),e(S,[2,93],{77:[1,161]}),e(ie,[2,98],{85:146,22:K,48:j,60:W,82:Q,86:X,87:q,88:H,89:V,90:J}),e(ee,[2,8]),e(w,[2,44]),e(S,[2,94])],defaultActions:{2:[2,1],3:[2,2],4:[2,3],83:[2,36],85:[2,10],124:[2,12],127:[2,4],137:[2,52],148:[2,11],152:[2,39]},parseError:a.__name(function(e,t){if(!t.recoverable){var s=new Error(e);throw s.hash=t,s}this.trace(e)},"parseError"),parse:a.__name(function(e){var t=this,s=[0],i=[],n=[null],r=[],u=this.table,l="",o=0,c=0,h=r.slice.call(arguments,1),p=Object.create(this.lexer),d={yy:{}};for(var A in this.yy)Object.prototype.hasOwnProperty.call(this.yy,A)&&(d.yy[A]=this.yy[A]);p.setInput(e,d.yy),d.yy.lexer=p,d.yy.parser=this,void 0===p.yylloc&&(p.yylloc={});var y=p.yylloc;r.push(y);var m=p.options&&p.options.ranges;function g(){var e;return"number"!=typeof(e=i.pop()||p.lex()||1)&&(e instanceof Array&&(e=(i=e).pop()),e=t.symbols_[e]||e),e}"function"==typeof d.yy.parseError?this.parseError=d.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError,a.__name(function(e){s.length=s.length-2*e,n.length=n.length-e,r.length=r.length-e},"popStack"),a.__name(g,"lex");for(var C,b,f,E,_,T,k,F,D={};;){if(b=s[s.length-1],this.defaultActions[b]?f=this.defaultActions[b]:(null==C&&(C=g()),f=u[b]&&u[b][C]),void 0===f||!f.length||!f[0]){var B="";for(_ in F=[],u[b])this.terminals_[_]&&_>2&&F.push("'"+this.terminals_[_]+"'");B=p.showPosition?"Parse error on line "+(o+1)+":\n"+p.showPosition()+"\nExpecting "+F.join(", ")+", got '"+(this.terminals_[C]||C)+"'":"Parse error on line "+(o+1)+": Unexpected "+(1==C?"end of input":"'"+(this.terminals_[C]||C)+"'"),this.parseError(B,{text:p.match,token:this.terminals_[C]||C,line:p.yylineno,loc:y,expected:F})}if(f[0]instanceof Array&&f.length>1)throw new Error("Parse Error: multiple actions possible at state: "+b+", token: "+C);switch(f[0]){case 1:s.push(C),n.push(p.yytext),r.push(p.yylloc),s.push(f[1]),C=null,c=p.yyleng,l=p.yytext,o=p.yylineno,y=p.yylloc;break;case 2:if(T=this.productions_[f[1]][1],D.$=n[n.length-T],D._$={first_line:r[r.length-(T||1)].first_line,last_line:r[r.length-1].last_line,first_column:r[r.length-(T||1)].first_column,last_column:r[r.length-1].last_column},m&&(D._$.range=[r[r.length-(T||1)].range[0],r[r.length-1].range[1]]),void 0!==(E=this.performAction.apply(D,[l,c,o,d.yy,f[1],n,r].concat(h))))return E;T&&(s=s.slice(0,-1*T*2),n=n.slice(0,-1*T),r=r.slice(0,-1*T)),s.push(this.productions_[f[1]][0]),n.push(D.$),r.push(D._$),k=u[s[s.length-2]][s[s.length-1]],s.push(k);break;case 3:return!0}}return!0},"parse")},re=function(){return{EOF:1,parseError:a.__name(function(e,t){if(!this.yy.parser)throw new Error(e);this.yy.parser.parseError(e,t)},"parseError"),setInput:a.__name(function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:a.__name(function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},"input"),unput:a.__name(function(e){var t=e.length,s=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var i=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),s.length-1&&(this.yylineno-=s.length-1);var n=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:s?(s.length===i.length?this.yylloc.first_column:0)+i[i.length-s.length].length-s[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[n[0],n[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},"unput"),more:a.__name(function(){return this._more=!0,this},"more"),reject:a.__name(function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},"reject"),less:a.__name(function(e){this.unput(this.match.slice(e))},"less"),pastInput:a.__name(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?"...":"")+e.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:a.__name(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:a.__name(function(){var e=this.pastInput(),t=new Array(e.length+1).join("-");return e+this.upcomingInput()+"\n"+t+"^"},"showPosition"),test_match:a.__name(function(e,t){var s,i,n;if(this.options.backtrack_lexer&&(n={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&&(n.yylloc.range=this.yylloc.range.slice(0))),(i=e[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=i.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:i?i[i.length-1].length-i[i.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,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(e[0].length),this.matched+=e[0],s=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),s)return s;if(this._backtrack){for(var a in n)this[a]=n[a];return!1}return!1},"test_match"),next:a.__name(function(){if(this.done)return this.EOF;var e,t,s,i;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var n=this._currentRules(),a=0;a<n.length;a++)if((s=this._input.match(this.rules[n[a]]))&&(!t||s[0].length>t[0].length)){if(t=s,i=a,this.options.backtrack_lexer){if(!1!==(e=this.test_match(s,n[a])))return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?!1!==(e=this.test_match(t,n[i]))&&e:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:a.__name(function(){var e=this.next();return e||this.lex()},"lex"),begin:a.__name(function(e){this.conditionStack.push(e)},"begin"),popState:a.__name(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:a.__name(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:a.__name(function(e){return(e=this.conditionStack.length-1-Math.abs(e||0))>=0?this.conditionStack[e]:"INITIAL"},"topState"),pushState:a.__name(function(e){this.begin(e)},"pushState"),stateStackSize:a.__name(function(){return this.conditionStack.length},"stateStackSize"),options:{},performAction:a.__name(function(e,t,s,i){switch(s){case 0:return 62;case 1:return 63;case 2:return 64;case 3:return 65;case 4:case 5:case 14:case 31:case 36:case 40:case 47:break;case 6:return this.begin("acc_title"),33;case 7:return this.popState(),"acc_title_value";case 8:return this.begin("acc_descr"),35;case 9:return this.popState(),"acc_descr_value";case 10:this.begin("acc_descr_multiline");break;case 11:case 19:case 22:case 24:case 58:case 61:this.popState();break;case 12:return"acc_descr_multiline_value";case 13:case 35:return 8;case 15:case 16:return 7;case 17:case 37:case 45:return"EDGE_STATE";case 18:this.begin("callback_name");break;case 20:this.popState(),this.begin("callback_args");break;case 21:return 79;case 23:return 80;case 25:return"STR";case 26:this.begin("string");break;case 27:return 82;case 28:return 57;case 29:return this.begin("namespace"),42;case 30:case 39:return this.popState(),8;case 32:return this.begin("namespace-body"),39;case 33:case 43:return this.popState(),41;case 34:case 44:return"EOF_IN_STRUCT";case 38:return this.begin("class"),46;case 41:return this.popState(),this.popState(),41;case 42:return this.begin("class-body"),39;case 46:return"OPEN_IN_STRUCT";case 48:return"MEMBER";case 49:return 83;case 50:return 75;case 51:return 76;case 52:return 78;case 53:return 54;case 54:return 56;case 55:return 49;case 56:return 50;case 57:return 81;case 59:return"GENERICTYPE";case 60:this.begin("generic");break;case 62:return"BQUOTE_STR";case 63:this.begin("bqstring");break;case 64:case 65:case 66:case 67:return 77;case 68:case 69:return 69;case 70:case 71:return 71;case 72:return 70;case 73:return 68;case 74:return 72;case 75:return 73;case 76:return 74;case 77:return 22;case 78:return 44;case 79:return 100;case 80:return 18;case 81:return"PLUS";case 82:return 87;case 83:return 61;case 84:case 85:return 89;case 86:return 90;case 87:case 88:return"EQUALS";case 89:return 60;case 90:return 12;case 91:return 14;case 92:return"PUNCTUATION";case 93:return 86;case 94:return 102;case 95:case 96:return 48;case 97:return 9}},"anonymous"),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)/,/^(?:classDef\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,33,34,35,36,37,38,49,50,51,52,53,54,55,56,57,60,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,86,87,88,89,90,91,92,93,94,95,97],inclusive:!1},namespace:{rules:[26,29,30,31,32,49,50,51,52,53,54,55,56,57,60,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,86,87,88,89,90,91,92,93,94,95,97],inclusive:!1},"class-body":{rules:[26,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,60,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,86,87,88,89,90,91,92,93,94,95,97],inclusive:!1},class:{rules:[26,39,40,41,42,49,50,51,52,53,54,55,56,57,60,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,86,87,88,89,90,91,92,93,94,95,97],inclusive:!1},acc_descr_multiline:{rules:[11,12,26,49,50,51,52,53,54,55,56,57,60,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,86,87,88,89,90,91,92,93,94,95,97],inclusive:!1},acc_descr:{rules:[9,26,49,50,51,52,53,54,55,56,57,60,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,86,87,88,89,90,91,92,93,94,95,97],inclusive:!1},acc_title:{rules:[7,26,49,50,51,52,53,54,55,56,57,60,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,86,87,88,89,90,91,92,93,94,95,97],inclusive:!1},callback_args:{rules:[22,23,26,49,50,51,52,53,54,55,56,57,60,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,86,87,88,89,90,91,92,93,94,95,97],inclusive:!1},callback_name:{rules:[19,20,21,26,49,50,51,52,53,54,55,56,57,60,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,86,87,88,89,90,91,92,93,94,95,97],inclusive:!1},href:{rules:[26,49,50,51,52,53,54,55,56,57,60,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,86,87,88,89,90,91,92,93,94,95,97],inclusive:!1},struct:{rules:[26,49,50,51,52,53,54,55,56,57,60,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,86,87,88,89,90,91,92,93,94,95,97],inclusive:!1},generic:{rules:[26,49,50,51,52,53,54,55,56,57,58,59,60,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,86,87,88,89,90,91,92,93,94,95,97],inclusive:!1},bqstring:{rules:[26,49,50,51,52,53,54,55,56,57,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,86,87,88,89,90,91,92,93,94,95,97],inclusive:!1},string:{rules:[24,25,26,49,50,51,52,53,54,55,56,57,60,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,86,87,88,89,90,91,92,93,94,95,97],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,8,10,13,14,15,16,17,18,26,27,28,29,38,49,50,51,52,53,54,55,56,57,60,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97],inclusive:!0}}}}();function ue(){this.yy={}}return ae.lexer=re,a.__name(ue,"Parser"),ue.prototype=ae,ae.Parser=ue,new ue}();r.parser=r;var u=r,l=["#","+","~","-",""],o=(e=class{constructor(e,t){this.memberType=t,this.visibility="",this.classifier="",this.text="";const s=a.sanitizeText(e,a.getConfig2());this.parseMember(s)}getDisplayDetails(){let e=this.visibility+a.parseGenericTypes(this.id);"method"===this.memberType&&(e+=`(${a.parseGenericTypes(this.parameters.trim())})`,this.returnType&&(e+=" : "+a.parseGenericTypes(this.returnType))),e=e.trim();return{displayText:e,cssStyle:this.parseClassifier()}}parseMember(e){let t="";if("method"===this.memberType){const s=/([#+~-])?(.+)\((.*)\)([\s$*])?(.*)([$*])?/.exec(e);if(s){const e=s[1]?s[1].trim():"";if(l.includes(e)&&(this.visibility=e),this.id=s[2],this.parameters=s[3]?s[3].trim():"",t=s[4]?s[4].trim():"",this.returnType=s[5]?s[5].trim():"",""===t){const e=this.returnType.substring(this.returnType.length-1);/[$*]/.exec(e)&&(t=e,this.returnType=this.returnType.substring(0,this.returnType.length-1))}}}else{const s=e.length,i=e.substring(0,1),n=e.substring(s-1);l.includes(i)&&(this.visibility=i),/[$*]/.exec(n)&&(t=n),this.id=e.substring(""===this.visibility?0:1,""===t?s:s-1)}this.classifier=t,this.id=this.id.startsWith(" ")?" "+this.id.trim():this.id.trim();const s=`${this.visibility?"\\"+this.visibility:""}${a.parseGenericTypes(this.id)}${"method"===this.memberType?`(${a.parseGenericTypes(this.parameters)})${this.returnType?" : "+a.parseGenericTypes(this.returnType):""}`:""}`;this.text=s.replaceAll("<","&lt;").replaceAll(">","&gt;"),this.text.startsWith("\\&lt;")&&(this.text=this.text.replace("\\&lt;","~"))}parseClassifier(){switch(this.classifier){case"*":return"font-style:italic;";case"$":return"text-decoration:underline;";default:return""}}},a.__name(e,"ClassMember"),e),c="classId-",h=0,p=a.__name(e=>a.common_default.sanitizeText(e,a.getConfig2()),"sanitizeText"),d=(t=class{constructor(){this.relations=[],this.classes=new Map,this.styleClasses=new Map,this.notes=[],this.interfaces=[],this.namespaces=new Map,this.namespaceCounter=0,this.functions=[],this.lineType={LINE:0,DOTTED_LINE:1},this.relationType={AGGREGATION:0,EXTENSION:1,COMPOSITION:2,DEPENDENCY:3,LOLLIPOP:4},this.setupToolTips=a.__name(e=>{let t=a.select(".mermaidTooltip");null===(t._groups||t)[0][0]&&(t=a.select("body").append("div").attr("class","mermaidTooltip").style("opacity",0));a.select(e).select("svg").selectAll("g.node").on("mouseover",e=>{const s=a.select(e.currentTarget);if(null===s.attr("title"))return;const i=this.getBoundingClientRect();t.transition().duration(200).style("opacity",".9"),t.text(s.attr("title")).style("left",window.scrollX+i.left+(i.right-i.left)/2+"px").style("top",window.scrollY+i.top-14+document.body.scrollTop+"px"),t.html(t.html().replace(/&lt;br\/&gt;/g,"<br/>")),s.classed("hover",!0)}).on("mouseout",e=>{t.transition().duration(500).style("opacity",0);a.select(e.currentTarget).classed("hover",!1)})},"setupToolTips"),this.direction="TB",this.setAccTitle=a.setAccTitle,this.getAccTitle=a.getAccTitle,this.setAccDescription=a.setAccDescription,this.getAccDescription=a.getAccDescription,this.setDiagramTitle=a.setDiagramTitle,this.getDiagramTitle=a.getDiagramTitle,this.getConfig=a.__name(()=>a.getConfig2().class,"getConfig"),this.functions.push(this.setupToolTips.bind(this)),this.clear(),this.addRelation=this.addRelation.bind(this),this.addClassesToNamespace=this.addClassesToNamespace.bind(this),this.addNamespace=this.addNamespace.bind(this),this.setCssClass=this.setCssClass.bind(this),this.addMembers=this.addMembers.bind(this),this.addClass=this.addClass.bind(this),this.setClassLabel=this.setClassLabel.bind(this),this.addAnnotation=this.addAnnotation.bind(this),this.addMember=this.addMember.bind(this),this.cleanupLabel=this.cleanupLabel.bind(this),this.addNote=this.addNote.bind(this),this.defineClass=this.defineClass.bind(this),this.setDirection=this.setDirection.bind(this),this.setLink=this.setLink.bind(this),this.bindFunctions=this.bindFunctions.bind(this),this.clear=this.clear.bind(this),this.setTooltip=this.setTooltip.bind(this),this.setClickEvent=this.setClickEvent.bind(this),this.setCssStyle=this.setCssStyle.bind(this)}splitClassNameAndType(e){const t=a.common_default.sanitizeText(e,a.getConfig2());let s="",i=t;if(t.indexOf("~")>0){const e=t.split("~");i=p(e[0]),s=p(e[1])}return{className:i,type:s}}setClassLabel(e,t){const s=a.common_default.sanitizeText(e,a.getConfig2());t&&(t=p(t));const{className:i}=this.splitClassNameAndType(s);this.classes.get(i).label=t,this.classes.get(i).text=`${t}${this.classes.get(i).type?`<${this.classes.get(i).type}>`:""}`}addClass(e){const t=a.common_default.sanitizeText(e,a.getConfig2()),{className:s,type:i}=this.splitClassNameAndType(t);if(this.classes.has(s))return;const n=a.common_default.sanitizeText(s,a.getConfig2());this.classes.set(n,{id:n,type:i,label:n,text:`${n}${i?`&lt;${i}&gt;`:""}`,shape:"classBox",cssClasses:"default",methods:[],members:[],annotations:[],styles:[],domId:c+n+"-"+h}),h++}addInterface(e,t){const s={id:`interface${this.interfaces.length}`,label:e,classId:t};this.interfaces.push(s)}lookUpDomId(e){const t=a.common_default.sanitizeText(e,a.getConfig2());if(this.classes.has(t))return this.classes.get(t).domId;throw new Error("Class not found: "+t)}clear(){this.relations=[],this.classes=new Map,this.notes=[],this.interfaces=[],this.functions=[],this.functions.push(this.setupToolTips.bind(this)),this.namespaces=new Map,this.namespaceCounter=0,this.direction="TB",a.clear()}getClass(e){return this.classes.get(e)}getClasses(){return this.classes}getRelations(){return this.relations}getNotes(){return this.notes}addRelation(e){a.log.debug("Adding relation: "+JSON.stringify(e));const t=[this.relationType.LOLLIPOP,this.relationType.AGGREGATION,this.relationType.COMPOSITION,this.relationType.DEPENDENCY,this.relationType.EXTENSION];e.relation.type1!==this.relationType.LOLLIPOP||t.includes(e.relation.type2)?e.relation.type2!==this.relationType.LOLLIPOP||t.includes(e.relation.type1)?(this.addClass(e.id1),this.addClass(e.id2)):(this.addClass(e.id1),this.addInterface(e.id2,e.id1),e.id2="interface"+(this.interfaces.length-1)):(this.addClass(e.id2),this.addInterface(e.id1,e.id2),e.id1="interface"+(this.interfaces.length-1)),e.id1=this.splitClassNameAndType(e.id1).className,e.id2=this.splitClassNameAndType(e.id2).className,e.relationTitle1=a.common_default.sanitizeText(e.relationTitle1.trim(),a.getConfig2()),e.relationTitle2=a.common_default.sanitizeText(e.relationTitle2.trim(),a.getConfig2()),this.relations.push(e)}addAnnotation(e,t){const s=this.splitClassNameAndType(e).className;this.classes.get(s).annotations.push(t)}addMember(e,t){this.addClass(e);const s=this.splitClassNameAndType(e).className,i=this.classes.get(s);if("string"==typeof t){const e=t.trim();e.startsWith("<<")&&e.endsWith(">>")?i.annotations.push(p(e.substring(2,e.length-2))):e.indexOf(")")>0?i.methods.push(new o(e,"method")):e&&i.members.push(new o(e,"attribute"))}}addMembers(e,t){Array.isArray(t)&&(t.reverse(),t.forEach(t=>this.addMember(e,t)))}addNote(e,t){const s={id:`note${this.notes.length}`,class:t,text:e};this.notes.push(s)}cleanupLabel(e){return e.startsWith(":")&&(e=e.substring(1)),p(e.trim())}setCssClass(e,t){e.split(",").forEach(e=>{let s=e;/\d/.exec(e[0])&&(s=c+s);const i=this.classes.get(s);i&&(i.cssClasses+=" "+t)})}defineClass(e,t){for(const s of e){let e=this.styleClasses.get(s);void 0===e&&(e={id:s,styles:[],textStyles:[]},this.styleClasses.set(s,e)),t&&t.forEach(t=>{if(/color/.exec(t)){const s=t.replace("fill","bgFill");e.textStyles.push(s)}e.styles.push(t)}),this.classes.forEach(e=>{e.cssClasses.includes(s)&&e.styles.push(...t.flatMap(e=>e.split(",")))})}}setTooltip(e,t){e.split(",").forEach(e=>{void 0!==t&&(this.classes.get(e).tooltip=p(t))})}getTooltip(e,t){return t&&this.namespaces.has(t)?this.namespaces.get(t).classes.get(e).tooltip:this.classes.get(e).tooltip}setLink(e,t,s){const i=a.getConfig2();e.split(",").forEach(e=>{let n=e;/\d/.exec(e[0])&&(n=c+n);const r=this.classes.get(n);r&&(r.link=a.utils_default.formatUrl(t,i),"sandbox"===i.securityLevel?r.linkTarget="_top":r.linkTarget="string"==typeof s?p(s):"_blank")}),this.setCssClass(e,"clickable")}setClickEvent(e,t,s){e.split(",").forEach(e=>{this.setClickFunc(e,t,s),this.classes.get(e).haveCallback=!0}),this.setCssClass(e,"clickable")}setClickFunc(e,t,s){const i=a.common_default.sanitizeText(e,a.getConfig2());if("loose"!==a.getConfig2().securityLevel)return;if(void 0===t)return;const n=i;if(this.classes.has(n)){const e=this.lookUpDomId(n);let i=[];if("string"==typeof s){i=s.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let e=0;e<i.length;e++){let t=i[e].trim();t.startsWith('"')&&t.endsWith('"')&&(t=t.substr(1,t.length-2)),i[e]=t}}0===i.length&&i.push(e),this.functions.push(()=>{const s=document.querySelector(`[id="${e}"]`);null!==s&&s.addEventListener("click",()=>{a.utils_default.runFunc(t,...i)},!1)})}}bindFunctions(e){this.functions.forEach(t=>{t(e)})}getDirection(){return this.direction}setDirection(e){this.direction=e}addNamespace(e){this.namespaces.has(e)||(this.namespaces.set(e,{id:e,classes:new Map,children:{},domId:c+e+"-"+this.namespaceCounter}),this.namespaceCounter++)}getNamespace(e){return this.namespaces.get(e)}getNamespaces(){return this.namespaces}addClassesToNamespace(e,t){if(this.namespaces.has(e))for(const s of t){const{className:t}=this.splitClassNameAndType(s);this.classes.get(t).parent=e,this.namespaces.get(e).classes.set(t,this.classes.get(t))}}setCssStyle(e,t){const s=this.classes.get(e);if(t&&s)for(const i of t)i.includes(",")?s.styles.push(...i.split(",")):s.styles.push(i)}getArrowMarker(e){let t;switch(e){case 0:t="aggregation";break;case 1:t="extension";break;case 2:t="composition";break;case 3:t="dependency";break;case 4:t="lollipop";break;default:t="none"}return t}getData(){var e;const t=[],s=[],i=a.getConfig2();for(const a of this.namespaces.keys()){const e=this.namespaces.get(a);if(e){const s={id:e.id,label:e.id,isGroup:!0,padding:i.class.padding??16,shape:"rect",cssStyles:["fill: none","stroke: black"],look:i.look};t.push(s)}}for(const a of this.classes.keys()){const e=this.classes.get(a);if(e){const s=e;s.parentId=e.parent,s.look=i.look,t.push(s)}}let n=0;for(const a of this.notes){n++;const r={id:a.id,label:a.text,isGroup:!1,shape:"note",padding:i.class.padding??6,cssStyles:["text-align: left","white-space: nowrap",`fill: ${i.themeVariables.noteBkgColor}`,`stroke: ${i.themeVariables.noteBorderColor}`],look:i.look};t.push(r);const u=(null==(e=this.classes.get(a.class))?void 0:e.id)??"";if(u){const e={id:`edgeNote${n}`,start:a.id,end:u,type:"normal",thickness:"normal",classes:"relation",arrowTypeStart:"none",arrowTypeEnd:"none",arrowheadStyle:"",labelStyle:[""],style:["fill: none"],pattern:"dotted",look:i.look};s.push(e)}}for(const a of this.interfaces){const e={id:a.id,label:a.label,isGroup:!1,shape:"rect",cssStyles:["opacity: 0;"],look:i.look};t.push(e)}n=0;for(const r of this.relations){n++;const e={id:a.getEdgeId(r.id1,r.id2,{prefix:"id",counter:n}),start:r.id1,end:r.id2,type:"normal",label:r.title,labelpos:"c",thickness:"normal",classes:"relation",arrowTypeStart:this.getArrowMarker(r.relation.type1),arrowTypeEnd:this.getArrowMarker(r.relation.type2),startLabelRight:"none"===r.relationTitle1?"":r.relationTitle1,endLabelLeft:"none"===r.relationTitle2?"":r.relationTitle2,arrowheadStyle:"",labelStyle:["display: inline-block"],style:r.style||"",pattern:1==r.relation.lineType?"dashed":"solid",look:i.look};s.push(e)}return{nodes:t,edges:s,other:{},config:i,direction:this.getDirection()}}},a.__name(t,"ClassDB"),t),A=a.__name(e=>`g.classGroup text {\n fill: ${e.nodeBorder||e.classText};\n stroke: none;\n font-family: ${e.fontFamily};\n font-size: 10px;\n\n .title {\n font-weight: bolder;\n }\n\n}\n\n.nodeLabel, .edgeLabel {\n color: ${e.classText};\n}\n.edgeLabel .label rect {\n fill: ${e.mainBkg};\n}\n.label text {\n fill: ${e.classText};\n}\n\n.labelBkg {\n background: ${e.mainBkg};\n}\n.edgeLabel .label span {\n background: ${e.mainBkg};\n}\n\n.classTitle {\n font-weight: bolder;\n}\n.node rect,\n .node circle,\n .node ellipse,\n .node polygon,\n .node path {\n fill: ${e.mainBkg};\n stroke: ${e.nodeBorder};\n stroke-width: 1px;\n }\n\n\n.divider {\n stroke: ${e.nodeBorder};\n stroke-width: 1;\n}\n\ng.clickable {\n cursor: pointer;\n}\n\ng.classGroup rect {\n fill: ${e.mainBkg};\n stroke: ${e.nodeBorder};\n}\n\ng.classGroup line {\n stroke: ${e.nodeBorder};\n stroke-width: 1;\n}\n\n.classLabel .box {\n stroke: none;\n stroke-width: 0;\n fill: ${e.mainBkg};\n opacity: 0.5;\n}\n\n.classLabel .label {\n fill: ${e.nodeBorder};\n font-size: 10px;\n}\n\n.relation {\n stroke: ${e.lineColor};\n stroke-width: 1;\n fill: none;\n}\n\n.dashed-line{\n stroke-dasharray: 3;\n}\n\n.dotted-line{\n stroke-dasharray: 1 2;\n}\n\n#compositionStart, .composition {\n fill: ${e.lineColor} !important;\n stroke: ${e.lineColor} !important;\n stroke-width: 1;\n}\n\n#compositionEnd, .composition {\n fill: ${e.lineColor} !important;\n stroke: ${e.lineColor} !important;\n stroke-width: 1;\n}\n\n#dependencyStart, .dependency {\n fill: ${e.lineColor} !important;\n stroke: ${e.lineColor} !important;\n stroke-width: 1;\n}\n\n#dependencyStart, .dependency {\n fill: ${e.lineColor} !important;\n stroke: ${e.lineColor} !important;\n stroke-width: 1;\n}\n\n#extensionStart, .extension {\n fill: transparent !important;\n stroke: ${e.lineColor} !important;\n stroke-width: 1;\n}\n\n#extensionEnd, .extension {\n fill: transparent !important;\n stroke: ${e.lineColor} !important;\n stroke-width: 1;\n}\n\n#aggregationStart, .aggregation {\n fill: transparent !important;\n stroke: ${e.lineColor} !important;\n stroke-width: 1;\n}\n\n#aggregationEnd, .aggregation {\n fill: transparent !important;\n stroke: ${e.lineColor} !important;\n stroke-width: 1;\n}\n\n#lollipopStart, .lollipop {\n fill: ${e.mainBkg} !important;\n stroke: ${e.lineColor} !important;\n stroke-width: 1;\n}\n\n#lollipopEnd, .lollipop {\n fill: ${e.mainBkg} !important;\n stroke: ${e.lineColor} !important;\n stroke-width: 1;\n}\n\n.edgeTerminals {\n font-size: 11px;\n line-height: initial;\n}\n\n.classTitleText {\n text-anchor: middle;\n font-size: 18px;\n fill: ${e.textColor};\n}\n ${s.getIconStyles()}\n`,"getStyles"),y=a.__name((e,t="TB")=>{if(!e.doc)return t;let s=t;for(const i of e.doc)"dir"===i.stmt&&(s=i.value);return s},"getDir"),m={getClasses:a.__name(function(e,t){return t.db.getClasses()},"getClasses"),draw:a.__name(async function(e,t,s,r){a.log.info("REF0:"),a.log.info("Drawing class diagram (v3)",t);const{securityLevel:u,state:l,layout:o}=a.getConfig2(),c=r.db.getData(),h=i.getDiagramElement(t,u);c.type=r.type,c.layoutAlgorithm=a.getRegisteredLayoutAlgorithm(o),c.nodeSpacing=(null==l?void 0:l.nodeSpacing)||50,c.rankSpacing=(null==l?void 0:l.rankSpacing)||50,c.markers=["aggregation","extension","composition","dependency","lollipop"],c.diagramId=t,await a.render(c,h);a.utils_default.insertTitle(h,"classDiagramTitleText",(null==l?void 0:l.titleTopMargin)??25,r.db.getDiagramTitle()),n.setupViewPortForSVG(h,8,"classDiagram",(null==l?void 0:l.useMaxWidth)??!0)},"draw"),getDir:y};exports.ClassDB=d,exports.classDiagram_default=u,exports.classRenderer_v3_unified_default=m,exports.styles_default=A;
2
- //# sourceMappingURL=chunk-B4BG7PRW-Dbzu88Oo.cjs.map
1
+ "use strict";var e,t;const s=require("./chunk-FMBD7UC4-DMErx-lW.cjs"),i=require("./chunk-55IACEB6-Du1XS8Uq.cjs"),n=require("./chunk-QN33PNHL-CkT5TAcW.cjs"),a=require("./index-D7xz2-Uy.cjs");var r=function(){var e=a.__name(function(e,t,s,i){for(s=s||{},i=e.length;i--;s[e[i]]=t);return s},"o"),t=[1,18],s=[1,19],i=[1,20],n=[1,41],r=[1,42],u=[1,26],l=[1,24],o=[1,25],c=[1,32],h=[1,33],p=[1,34],d=[1,45],A=[1,35],y=[1,36],m=[1,37],g=[1,38],C=[1,27],b=[1,28],f=[1,29],E=[1,30],_=[1,31],T=[1,44],k=[1,46],F=[1,43],D=[1,47],B=[1,9],S=[1,8,9],N=[1,58],L=[1,59],$=[1,60],x=[1,61],I=[1,62],v=[1,63],O=[1,64],w=[1,8,9,41],R=[1,76],P=[1,8,9,12,13,22,39,41,44,68,69,70,71,72,73,74,79,81],M=[1,8,9,12,13,18,20,22,39,41,44,50,60,68,69,70,71,72,73,74,79,81,86,100,102,103],G=[13,60,86,100,102,103],U=[13,60,73,74,86,100,102,103],z=[13,60,68,69,70,71,72,86,100,102,103],Y=[1,100],K=[1,117],j=[1,113],W=[1,109],Q=[1,115],X=[1,110],q=[1,111],H=[1,112],V=[1,114],J=[1,116],Z=[22,48,60,61,82,86,87,88,89,90],ee=[1,8,9,39,41,44],te=[1,8,9,22],se=[1,145],ie=[1,8,9,61],ne=[1,8,9,22,48,60,61,82,86,87,88,89,90],ae={trace:a.__name(function(){},"trace"),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,classLiteralName:17,DOT:18,className:19,GENERICTYPE:20,relationStatement:21,LABEL:22,namespaceStatement:23,classStatement:24,memberStatement:25,annotationStatement:26,clickStatement:27,styleStatement:28,cssClassStatement:29,noteStatement:30,classDefStatement:31,direction:32,acc_title:33,acc_title_value:34,acc_descr:35,acc_descr_value:36,acc_descr_multiline_value:37,namespaceIdentifier:38,STRUCT_START:39,classStatements:40,STRUCT_STOP:41,NAMESPACE:42,classIdentifier:43,STYLE_SEPARATOR:44,members:45,CLASS:46,emptyBody:47,SPACE:48,ANNOTATION_START:49,ANNOTATION_END:50,MEMBER:51,SEPARATOR:52,relation:53,NOTE_FOR:54,noteText:55,NOTE:56,CLASSDEF:57,classList:58,stylesOpt:59,ALPHA:60,COMMA:61,direction_tb:62,direction_bt:63,direction_rl:64,direction_lr:65,relationType:66,lineType:67,AGGREGATION:68,EXTENSION:69,COMPOSITION:70,DEPENDENCY:71,LOLLIPOP:72,LINE:73,DOTTED_LINE:74,CALLBACK:75,LINK:76,LINK_TARGET:77,CLICK:78,CALLBACK_NAME:79,CALLBACK_ARGS:80,HREF:81,STYLE:82,CSSCLASS:83,style:84,styleComponent:85,NUM:86,COLON:87,UNIT:88,BRKT:89,PCT:90,commentToken:91,textToken:92,graphCodeTokens:93,textNoTagsToken:94,TAGSTART:95,TAGEND:96,"==":97,"--":98,DEFAULT:99,MINUS:100,keywords:101,UNICODE_TEXT:102,BQUOTE_STR:103,$accept:0,$end:1},terminals_:{2:"error",7:"CLASS_DIAGRAM",8:"NEWLINE",9:"EOF",12:"SQS",13:"STR",14:"SQE",18:"DOT",20:"GENERICTYPE",22:"LABEL",33:"acc_title",34:"acc_title_value",35:"acc_descr",36:"acc_descr_value",37:"acc_descr_multiline_value",39:"STRUCT_START",41:"STRUCT_STOP",42:"NAMESPACE",44:"STYLE_SEPARATOR",46:"CLASS",48:"SPACE",49:"ANNOTATION_START",50:"ANNOTATION_END",51:"MEMBER",52:"SEPARATOR",54:"NOTE_FOR",56:"NOTE",57:"CLASSDEF",60:"ALPHA",61:"COMMA",62:"direction_tb",63:"direction_bt",64:"direction_rl",65:"direction_lr",68:"AGGREGATION",69:"EXTENSION",70:"COMPOSITION",71:"DEPENDENCY",72:"LOLLIPOP",73:"LINE",74:"DOTTED_LINE",75:"CALLBACK",76:"LINK",77:"LINK_TARGET",78:"CLICK",79:"CALLBACK_NAME",80:"CALLBACK_ARGS",81:"HREF",82:"STYLE",83:"CSSCLASS",86:"NUM",87:"COLON",88:"UNIT",89:"BRKT",90:"PCT",93:"graphCodeTokens",95:"TAGSTART",96:"TAGEND",97:"==",98:"--",99:"DEFAULT",100:"MINUS",101:"keywords",102:"UNICODE_TEXT",103:"BQUOTE_STR"},productions_:[0,[3,1],[3,1],[4,1],[6,4],[5,1],[5,2],[5,3],[11,3],[15,1],[15,1],[15,3],[15,2],[19,1],[19,3],[19,1],[19,2],[19,2],[19,2],[10,1],[10,2],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,2],[10,2],[10,1],[23,4],[23,5],[38,2],[40,1],[40,2],[40,3],[24,1],[24,3],[24,4],[24,3],[24,6],[43,2],[43,3],[47,0],[47,2],[47,2],[26,4],[45,1],[45,2],[25,1],[25,2],[25,1],[25,1],[21,3],[21,4],[21,4],[21,5],[30,3],[30,2],[31,3],[58,1],[58,3],[32,1],[32,1],[32,1],[32,1],[53,3],[53,2],[53,2],[53,1],[66,1],[66,1],[66,1],[66,1],[66,1],[67,1],[67,1],[27,3],[27,4],[27,3],[27,4],[27,4],[27,5],[27,3],[27,4],[27,4],[27,5],[27,4],[27,5],[27,5],[27,6],[28,3],[29,3],[59,1],[59,3],[84,1],[84,2],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[91,1],[91,1],[92,1],[92,1],[92,1],[92,1],[92,1],[92,1],[92,1],[94,1],[94,1],[94,1],[94,1],[16,1],[16,1],[16,1],[16,1],[17,1],[55,1]],performAction:a.__name(function(e,t,s,i,n,a,r){var u=a.length-1;switch(n){case 8:this.$=a[u-1];break;case 9:case 10:case 13:case 15:this.$=a[u];break;case 11:case 14:this.$=a[u-2]+"."+a[u];break;case 12:case 16:case 100:this.$=a[u-1]+a[u];break;case 17:case 18:this.$=a[u-1]+"~"+a[u]+"~";break;case 19:i.addRelation(a[u]);break;case 20:a[u-1].title=i.cleanupLabel(a[u]),i.addRelation(a[u-1]);break;case 31:this.$=a[u].trim(),i.setAccTitle(this.$);break;case 32:case 33:this.$=a[u].trim(),i.setAccDescription(this.$);break;case 34:i.addClassesToNamespace(a[u-3],a[u-1]);break;case 35:i.addClassesToNamespace(a[u-4],a[u-1]);break;case 36:this.$=a[u],i.addNamespace(a[u]);break;case 37:case 51:case 64:case 97:this.$=[a[u]];break;case 38:this.$=[a[u-1]];break;case 39:a[u].unshift(a[u-2]),this.$=a[u];break;case 41:i.setCssClass(a[u-2],a[u]);break;case 42:i.addMembers(a[u-3],a[u-1]);break;case 44:i.setCssClass(a[u-5],a[u-3]),i.addMembers(a[u-5],a[u-1]);break;case 45:this.$=a[u],i.addClass(a[u]);break;case 46:this.$=a[u-1],i.addClass(a[u-1]),i.setClassLabel(a[u-1],a[u]);break;case 50:i.addAnnotation(a[u],a[u-2]);break;case 52:a[u].push(a[u-1]),this.$=a[u];break;case 53:case 55:case 56:break;case 54:i.addMember(a[u-1],i.cleanupLabel(a[u]));break;case 57:this.$={id1:a[u-2],id2:a[u],relation:a[u-1],relationTitle1:"none",relationTitle2:"none"};break;case 58:this.$={id1:a[u-3],id2:a[u],relation:a[u-1],relationTitle1:a[u-2],relationTitle2:"none"};break;case 59:this.$={id1:a[u-3],id2:a[u],relation:a[u-2],relationTitle1:"none",relationTitle2:a[u-1]};break;case 60:this.$={id1:a[u-4],id2:a[u],relation:a[u-2],relationTitle1:a[u-3],relationTitle2:a[u-1]};break;case 61:i.addNote(a[u],a[u-1]);break;case 62:i.addNote(a[u]);break;case 63:this.$=a[u-2],i.defineClass(a[u-1],a[u]);break;case 65:this.$=a[u-2].concat([a[u]]);break;case 66:i.setDirection("TB");break;case 67:i.setDirection("BT");break;case 68:i.setDirection("RL");break;case 69:i.setDirection("LR");break;case 70:this.$={type1:a[u-2],type2:a[u],lineType:a[u-1]};break;case 71:this.$={type1:"none",type2:a[u],lineType:a[u-1]};break;case 72:this.$={type1:a[u-1],type2:"none",lineType:a[u]};break;case 73:this.$={type1:"none",type2:"none",lineType:a[u]};break;case 74:this.$=i.relationType.AGGREGATION;break;case 75:this.$=i.relationType.EXTENSION;break;case 76:this.$=i.relationType.COMPOSITION;break;case 77:this.$=i.relationType.DEPENDENCY;break;case 78:this.$=i.relationType.LOLLIPOP;break;case 79:this.$=i.lineType.LINE;break;case 80:this.$=i.lineType.DOTTED_LINE;break;case 81:case 87:this.$=a[u-2],i.setClickEvent(a[u-1],a[u]);break;case 82:case 88:this.$=a[u-3],i.setClickEvent(a[u-2],a[u-1]),i.setTooltip(a[u-2],a[u]);break;case 83:this.$=a[u-2],i.setLink(a[u-1],a[u]);break;case 84:this.$=a[u-3],i.setLink(a[u-2],a[u-1],a[u]);break;case 85:this.$=a[u-3],i.setLink(a[u-2],a[u-1]),i.setTooltip(a[u-2],a[u]);break;case 86:this.$=a[u-4],i.setLink(a[u-3],a[u-2],a[u]),i.setTooltip(a[u-3],a[u-1]);break;case 89:this.$=a[u-3],i.setClickEvent(a[u-2],a[u-1],a[u]);break;case 90:this.$=a[u-4],i.setClickEvent(a[u-3],a[u-2],a[u-1]),i.setTooltip(a[u-3],a[u]);break;case 91:this.$=a[u-3],i.setLink(a[u-2],a[u]);break;case 92:this.$=a[u-4],i.setLink(a[u-3],a[u-1],a[u]);break;case 93:this.$=a[u-4],i.setLink(a[u-3],a[u-1]),i.setTooltip(a[u-3],a[u]);break;case 94:this.$=a[u-5],i.setLink(a[u-4],a[u-2],a[u]),i.setTooltip(a[u-4],a[u-1]);break;case 95:this.$=a[u-2],i.setCssStyle(a[u-1],a[u]);break;case 96:i.setCssClass(a[u-1],a[u]);break;case 98:a[u-2].push(a[u]),this.$=a[u-2]}},"anonymous"),table:[{3:1,4:2,5:3,6:4,7:[1,6],10:5,16:39,17:40,19:21,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:t,35:s,37:i,38:22,42:n,43:23,46:r,49:u,51:l,52:o,54:c,56:h,57:p,60:d,62:A,63:y,64:m,65:g,75:C,76:b,78:f,82:E,83:_,86:T,100:k,102:F,103:D},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,3]},e(B,[2,5],{8:[1,48]}),{8:[1,49]},e(S,[2,19],{22:[1,50]}),e(S,[2,21]),e(S,[2,22]),e(S,[2,23]),e(S,[2,24]),e(S,[2,25]),e(S,[2,26]),e(S,[2,27]),e(S,[2,28]),e(S,[2,29]),e(S,[2,30]),{34:[1,51]},{36:[1,52]},e(S,[2,33]),e(S,[2,53],{53:53,66:56,67:57,13:[1,54],22:[1,55],68:N,69:L,70:$,71:x,72:I,73:v,74:O}),{39:[1,65]},e(w,[2,40],{39:[1,67],44:[1,66]}),e(S,[2,55]),e(S,[2,56]),{16:68,60:d,86:T,100:k,102:F},{16:39,17:40,19:69,60:d,86:T,100:k,102:F,103:D},{16:39,17:40,19:70,60:d,86:T,100:k,102:F,103:D},{16:39,17:40,19:71,60:d,86:T,100:k,102:F,103:D},{60:[1,72]},{13:[1,73]},{16:39,17:40,19:74,60:d,86:T,100:k,102:F,103:D},{13:R,55:75},{58:77,60:[1,78]},e(S,[2,66]),e(S,[2,67]),e(S,[2,68]),e(S,[2,69]),e(P,[2,13],{16:39,17:40,19:80,18:[1,79],20:[1,81],60:d,86:T,100:k,102:F,103:D}),e(P,[2,15],{20:[1,82]}),{15:83,16:84,17:85,60:d,86:T,100:k,102:F,103:D},{16:39,17:40,19:86,60:d,86:T,100:k,102:F,103:D},e(M,[2,123]),e(M,[2,124]),e(M,[2,125]),e(M,[2,126]),e([1,8,9,12,13,20,22,39,41,44,68,69,70,71,72,73,74,79,81],[2,127]),e(B,[2,6],{10:5,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,19:21,38:22,43:23,16:39,17:40,5:87,33:t,35:s,37:i,42:n,46:r,49:u,51:l,52:o,54:c,56:h,57:p,60:d,62:A,63:y,64:m,65:g,75:C,76:b,78:f,82:E,83:_,86:T,100:k,102:F,103:D}),{5:88,10:5,16:39,17:40,19:21,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:t,35:s,37:i,38:22,42:n,43:23,46:r,49:u,51:l,52:o,54:c,56:h,57:p,60:d,62:A,63:y,64:m,65:g,75:C,76:b,78:f,82:E,83:_,86:T,100:k,102:F,103:D},e(S,[2,20]),e(S,[2,31]),e(S,[2,32]),{13:[1,90],16:39,17:40,19:89,60:d,86:T,100:k,102:F,103:D},{53:91,66:56,67:57,68:N,69:L,70:$,71:x,72:I,73:v,74:O},e(S,[2,54]),{67:92,73:v,74:O},e(G,[2,73],{66:93,68:N,69:L,70:$,71:x,72:I}),e(U,[2,74]),e(U,[2,75]),e(U,[2,76]),e(U,[2,77]),e(U,[2,78]),e(z,[2,79]),e(z,[2,80]),{8:[1,95],24:96,40:94,43:23,46:r},{16:97,60:d,86:T,100:k,102:F},{41:[1,99],45:98,51:Y},{50:[1,101]},{13:[1,102]},{13:[1,103]},{79:[1,104],81:[1,105]},{22:K,48:j,59:106,60:W,82:Q,84:107,85:108,86:X,87:q,88:H,89:V,90:J},{60:[1,118]},{13:R,55:119},e(S,[2,62]),e(S,[2,128]),{22:K,48:j,59:120,60:W,61:[1,121],82:Q,84:107,85:108,86:X,87:q,88:H,89:V,90:J},e(Z,[2,64]),{16:39,17:40,19:122,60:d,86:T,100:k,102:F,103:D},e(P,[2,16]),e(P,[2,17]),e(P,[2,18]),{39:[2,36]},{15:124,16:84,17:85,18:[1,123],39:[2,9],60:d,86:T,100:k,102:F,103:D},{39:[2,10]},e(ee,[2,45],{11:125,12:[1,126]}),e(B,[2,7]),{9:[1,127]},e(te,[2,57]),{16:39,17:40,19:128,60:d,86:T,100:k,102:F,103:D},{13:[1,130],16:39,17:40,19:129,60:d,86:T,100:k,102:F,103:D},e(G,[2,72],{66:131,68:N,69:L,70:$,71:x,72:I}),e(G,[2,71]),{41:[1,132]},{24:96,40:133,43:23,46:r},{8:[1,134],41:[2,37]},e(w,[2,41],{39:[1,135]}),{41:[1,136]},e(w,[2,43]),{41:[2,51],45:137,51:Y},{16:39,17:40,19:138,60:d,86:T,100:k,102:F,103:D},e(S,[2,81],{13:[1,139]}),e(S,[2,83],{13:[1,141],77:[1,140]}),e(S,[2,87],{13:[1,142],80:[1,143]}),{13:[1,144]},e(S,[2,95],{61:se}),e(ie,[2,97],{85:146,22:K,48:j,60:W,82:Q,86:X,87:q,88:H,89:V,90:J}),e(ne,[2,99]),e(ne,[2,101]),e(ne,[2,102]),e(ne,[2,103]),e(ne,[2,104]),e(ne,[2,105]),e(ne,[2,106]),e(ne,[2,107]),e(ne,[2,108]),e(ne,[2,109]),e(S,[2,96]),e(S,[2,61]),e(S,[2,63],{61:se}),{60:[1,147]},e(P,[2,14]),{15:148,16:84,17:85,60:d,86:T,100:k,102:F,103:D},{39:[2,12]},e(ee,[2,46]),{13:[1,149]},{1:[2,4]},e(te,[2,59]),e(te,[2,58]),{16:39,17:40,19:150,60:d,86:T,100:k,102:F,103:D},e(G,[2,70]),e(S,[2,34]),{41:[1,151]},{24:96,40:152,41:[2,38],43:23,46:r},{45:153,51:Y},e(w,[2,42]),{41:[2,52]},e(S,[2,50]),e(S,[2,82]),e(S,[2,84]),e(S,[2,85],{77:[1,154]}),e(S,[2,88]),e(S,[2,89],{13:[1,155]}),e(S,[2,91],{13:[1,157],77:[1,156]}),{22:K,48:j,60:W,82:Q,84:158,85:108,86:X,87:q,88:H,89:V,90:J},e(ne,[2,100]),e(Z,[2,65]),{39:[2,11]},{14:[1,159]},e(te,[2,60]),e(S,[2,35]),{41:[2,39]},{41:[1,160]},e(S,[2,86]),e(S,[2,90]),e(S,[2,92]),e(S,[2,93],{77:[1,161]}),e(ie,[2,98],{85:146,22:K,48:j,60:W,82:Q,86:X,87:q,88:H,89:V,90:J}),e(ee,[2,8]),e(w,[2,44]),e(S,[2,94])],defaultActions:{2:[2,1],3:[2,2],4:[2,3],83:[2,36],85:[2,10],124:[2,12],127:[2,4],137:[2,52],148:[2,11],152:[2,39]},parseError:a.__name(function(e,t){if(!t.recoverable){var s=new Error(e);throw s.hash=t,s}this.trace(e)},"parseError"),parse:a.__name(function(e){var t=this,s=[0],i=[],n=[null],r=[],u=this.table,l="",o=0,c=0,h=r.slice.call(arguments,1),p=Object.create(this.lexer),d={yy:{}};for(var A in this.yy)Object.prototype.hasOwnProperty.call(this.yy,A)&&(d.yy[A]=this.yy[A]);p.setInput(e,d.yy),d.yy.lexer=p,d.yy.parser=this,void 0===p.yylloc&&(p.yylloc={});var y=p.yylloc;r.push(y);var m=p.options&&p.options.ranges;function g(){var e;return"number"!=typeof(e=i.pop()||p.lex()||1)&&(e instanceof Array&&(e=(i=e).pop()),e=t.symbols_[e]||e),e}"function"==typeof d.yy.parseError?this.parseError=d.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError,a.__name(function(e){s.length=s.length-2*e,n.length=n.length-e,r.length=r.length-e},"popStack"),a.__name(g,"lex");for(var C,b,f,E,_,T,k,F,D={};;){if(b=s[s.length-1],this.defaultActions[b]?f=this.defaultActions[b]:(null==C&&(C=g()),f=u[b]&&u[b][C]),void 0===f||!f.length||!f[0]){var B="";for(_ in F=[],u[b])this.terminals_[_]&&_>2&&F.push("'"+this.terminals_[_]+"'");B=p.showPosition?"Parse error on line "+(o+1)+":\n"+p.showPosition()+"\nExpecting "+F.join(", ")+", got '"+(this.terminals_[C]||C)+"'":"Parse error on line "+(o+1)+": Unexpected "+(1==C?"end of input":"'"+(this.terminals_[C]||C)+"'"),this.parseError(B,{text:p.match,token:this.terminals_[C]||C,line:p.yylineno,loc:y,expected:F})}if(f[0]instanceof Array&&f.length>1)throw new Error("Parse Error: multiple actions possible at state: "+b+", token: "+C);switch(f[0]){case 1:s.push(C),n.push(p.yytext),r.push(p.yylloc),s.push(f[1]),C=null,c=p.yyleng,l=p.yytext,o=p.yylineno,y=p.yylloc;break;case 2:if(T=this.productions_[f[1]][1],D.$=n[n.length-T],D._$={first_line:r[r.length-(T||1)].first_line,last_line:r[r.length-1].last_line,first_column:r[r.length-(T||1)].first_column,last_column:r[r.length-1].last_column},m&&(D._$.range=[r[r.length-(T||1)].range[0],r[r.length-1].range[1]]),void 0!==(E=this.performAction.apply(D,[l,c,o,d.yy,f[1],n,r].concat(h))))return E;T&&(s=s.slice(0,-1*T*2),n=n.slice(0,-1*T),r=r.slice(0,-1*T)),s.push(this.productions_[f[1]][0]),n.push(D.$),r.push(D._$),k=u[s[s.length-2]][s[s.length-1]],s.push(k);break;case 3:return!0}}return!0},"parse")},re=function(){return{EOF:1,parseError:a.__name(function(e,t){if(!this.yy.parser)throw new Error(e);this.yy.parser.parseError(e,t)},"parseError"),setInput:a.__name(function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:a.__name(function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},"input"),unput:a.__name(function(e){var t=e.length,s=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var i=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),s.length-1&&(this.yylineno-=s.length-1);var n=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:s?(s.length===i.length?this.yylloc.first_column:0)+i[i.length-s.length].length-s[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[n[0],n[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},"unput"),more:a.__name(function(){return this._more=!0,this},"more"),reject:a.__name(function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},"reject"),less:a.__name(function(e){this.unput(this.match.slice(e))},"less"),pastInput:a.__name(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?"...":"")+e.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:a.__name(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:a.__name(function(){var e=this.pastInput(),t=new Array(e.length+1).join("-");return e+this.upcomingInput()+"\n"+t+"^"},"showPosition"),test_match:a.__name(function(e,t){var s,i,n;if(this.options.backtrack_lexer&&(n={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&&(n.yylloc.range=this.yylloc.range.slice(0))),(i=e[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=i.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:i?i[i.length-1].length-i[i.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,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(e[0].length),this.matched+=e[0],s=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),s)return s;if(this._backtrack){for(var a in n)this[a]=n[a];return!1}return!1},"test_match"),next:a.__name(function(){if(this.done)return this.EOF;var e,t,s,i;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var n=this._currentRules(),a=0;a<n.length;a++)if((s=this._input.match(this.rules[n[a]]))&&(!t||s[0].length>t[0].length)){if(t=s,i=a,this.options.backtrack_lexer){if(!1!==(e=this.test_match(s,n[a])))return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?!1!==(e=this.test_match(t,n[i]))&&e:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:a.__name(function(){var e=this.next();return e||this.lex()},"lex"),begin:a.__name(function(e){this.conditionStack.push(e)},"begin"),popState:a.__name(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:a.__name(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:a.__name(function(e){return(e=this.conditionStack.length-1-Math.abs(e||0))>=0?this.conditionStack[e]:"INITIAL"},"topState"),pushState:a.__name(function(e){this.begin(e)},"pushState"),stateStackSize:a.__name(function(){return this.conditionStack.length},"stateStackSize"),options:{},performAction:a.__name(function(e,t,s,i){switch(s){case 0:return 62;case 1:return 63;case 2:return 64;case 3:return 65;case 4:case 5:case 14:case 31:case 36:case 40:case 47:break;case 6:return this.begin("acc_title"),33;case 7:return this.popState(),"acc_title_value";case 8:return this.begin("acc_descr"),35;case 9:return this.popState(),"acc_descr_value";case 10:this.begin("acc_descr_multiline");break;case 11:case 19:case 22:case 24:case 58:case 61:this.popState();break;case 12:return"acc_descr_multiline_value";case 13:case 35:return 8;case 15:case 16:return 7;case 17:case 37:case 45:return"EDGE_STATE";case 18:this.begin("callback_name");break;case 20:this.popState(),this.begin("callback_args");break;case 21:return 79;case 23:return 80;case 25:return"STR";case 26:this.begin("string");break;case 27:return 82;case 28:return 57;case 29:return this.begin("namespace"),42;case 30:case 39:return this.popState(),8;case 32:return this.begin("namespace-body"),39;case 33:case 43:return this.popState(),41;case 34:case 44:return"EOF_IN_STRUCT";case 38:return this.begin("class"),46;case 41:return this.popState(),this.popState(),41;case 42:return this.begin("class-body"),39;case 46:return"OPEN_IN_STRUCT";case 48:return"MEMBER";case 49:return 83;case 50:return 75;case 51:return 76;case 52:return 78;case 53:return 54;case 54:return 56;case 55:return 49;case 56:return 50;case 57:return 81;case 59:return"GENERICTYPE";case 60:this.begin("generic");break;case 62:return"BQUOTE_STR";case 63:this.begin("bqstring");break;case 64:case 65:case 66:case 67:return 77;case 68:case 69:return 69;case 70:case 71:return 71;case 72:return 70;case 73:return 68;case 74:return 72;case 75:return 73;case 76:return 74;case 77:return 22;case 78:return 44;case 79:return 100;case 80:return 18;case 81:return"PLUS";case 82:return 87;case 83:return 61;case 84:case 85:return 89;case 86:return 90;case 87:case 88:return"EQUALS";case 89:return 60;case 90:return 12;case 91:return 14;case 92:return"PUNCTUATION";case 93:return 86;case 94:return 102;case 95:case 96:return 48;case 97:return 9}},"anonymous"),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)/,/^(?:classDef\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,33,34,35,36,37,38,49,50,51,52,53,54,55,56,57,60,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,86,87,88,89,90,91,92,93,94,95,97],inclusive:!1},namespace:{rules:[26,29,30,31,32,49,50,51,52,53,54,55,56,57,60,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,86,87,88,89,90,91,92,93,94,95,97],inclusive:!1},"class-body":{rules:[26,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,60,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,86,87,88,89,90,91,92,93,94,95,97],inclusive:!1},class:{rules:[26,39,40,41,42,49,50,51,52,53,54,55,56,57,60,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,86,87,88,89,90,91,92,93,94,95,97],inclusive:!1},acc_descr_multiline:{rules:[11,12,26,49,50,51,52,53,54,55,56,57,60,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,86,87,88,89,90,91,92,93,94,95,97],inclusive:!1},acc_descr:{rules:[9,26,49,50,51,52,53,54,55,56,57,60,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,86,87,88,89,90,91,92,93,94,95,97],inclusive:!1},acc_title:{rules:[7,26,49,50,51,52,53,54,55,56,57,60,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,86,87,88,89,90,91,92,93,94,95,97],inclusive:!1},callback_args:{rules:[22,23,26,49,50,51,52,53,54,55,56,57,60,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,86,87,88,89,90,91,92,93,94,95,97],inclusive:!1},callback_name:{rules:[19,20,21,26,49,50,51,52,53,54,55,56,57,60,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,86,87,88,89,90,91,92,93,94,95,97],inclusive:!1},href:{rules:[26,49,50,51,52,53,54,55,56,57,60,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,86,87,88,89,90,91,92,93,94,95,97],inclusive:!1},struct:{rules:[26,49,50,51,52,53,54,55,56,57,60,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,86,87,88,89,90,91,92,93,94,95,97],inclusive:!1},generic:{rules:[26,49,50,51,52,53,54,55,56,57,58,59,60,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,86,87,88,89,90,91,92,93,94,95,97],inclusive:!1},bqstring:{rules:[26,49,50,51,52,53,54,55,56,57,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,86,87,88,89,90,91,92,93,94,95,97],inclusive:!1},string:{rules:[24,25,26,49,50,51,52,53,54,55,56,57,60,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,86,87,88,89,90,91,92,93,94,95,97],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,8,10,13,14,15,16,17,18,26,27,28,29,38,49,50,51,52,53,54,55,56,57,60,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97],inclusive:!0}}}}();function ue(){this.yy={}}return ae.lexer=re,a.__name(ue,"Parser"),ue.prototype=ae,ae.Parser=ue,new ue}();r.parser=r;var u=r,l=["#","+","~","-",""],o=(e=class{constructor(e,t){this.memberType=t,this.visibility="",this.classifier="",this.text="";const s=a.sanitizeText(e,a.getConfig2());this.parseMember(s)}getDisplayDetails(){let e=this.visibility+a.parseGenericTypes(this.id);"method"===this.memberType&&(e+=`(${a.parseGenericTypes(this.parameters.trim())})`,this.returnType&&(e+=" : "+a.parseGenericTypes(this.returnType))),e=e.trim();return{displayText:e,cssStyle:this.parseClassifier()}}parseMember(e){let t="";if("method"===this.memberType){const s=/([#+~-])?(.+)\((.*)\)([\s$*])?(.*)([$*])?/.exec(e);if(s){const e=s[1]?s[1].trim():"";if(l.includes(e)&&(this.visibility=e),this.id=s[2],this.parameters=s[3]?s[3].trim():"",t=s[4]?s[4].trim():"",this.returnType=s[5]?s[5].trim():"",""===t){const e=this.returnType.substring(this.returnType.length-1);/[$*]/.exec(e)&&(t=e,this.returnType=this.returnType.substring(0,this.returnType.length-1))}}}else{const s=e.length,i=e.substring(0,1),n=e.substring(s-1);l.includes(i)&&(this.visibility=i),/[$*]/.exec(n)&&(t=n),this.id=e.substring(""===this.visibility?0:1,""===t?s:s-1)}this.classifier=t,this.id=this.id.startsWith(" ")?" "+this.id.trim():this.id.trim();const s=`${this.visibility?"\\"+this.visibility:""}${a.parseGenericTypes(this.id)}${"method"===this.memberType?`(${a.parseGenericTypes(this.parameters)})${this.returnType?" : "+a.parseGenericTypes(this.returnType):""}`:""}`;this.text=s.replaceAll("<","&lt;").replaceAll(">","&gt;"),this.text.startsWith("\\&lt;")&&(this.text=this.text.replace("\\&lt;","~"))}parseClassifier(){switch(this.classifier){case"*":return"font-style:italic;";case"$":return"text-decoration:underline;";default:return""}}},a.__name(e,"ClassMember"),e),c="classId-",h=0,p=a.__name(e=>a.common_default.sanitizeText(e,a.getConfig2()),"sanitizeText"),d=(t=class{constructor(){this.relations=[],this.classes=new Map,this.styleClasses=new Map,this.notes=[],this.interfaces=[],this.namespaces=new Map,this.namespaceCounter=0,this.functions=[],this.lineType={LINE:0,DOTTED_LINE:1},this.relationType={AGGREGATION:0,EXTENSION:1,COMPOSITION:2,DEPENDENCY:3,LOLLIPOP:4},this.setupToolTips=a.__name(e=>{let t=a.select(".mermaidTooltip");null===(t._groups||t)[0][0]&&(t=a.select("body").append("div").attr("class","mermaidTooltip").style("opacity",0));a.select(e).select("svg").selectAll("g.node").on("mouseover",e=>{const s=a.select(e.currentTarget);if(null===s.attr("title"))return;const i=this.getBoundingClientRect();t.transition().duration(200).style("opacity",".9"),t.text(s.attr("title")).style("left",window.scrollX+i.left+(i.right-i.left)/2+"px").style("top",window.scrollY+i.top-14+document.body.scrollTop+"px"),t.html(t.html().replace(/&lt;br\/&gt;/g,"<br/>")),s.classed("hover",!0)}).on("mouseout",e=>{t.transition().duration(500).style("opacity",0);a.select(e.currentTarget).classed("hover",!1)})},"setupToolTips"),this.direction="TB",this.setAccTitle=a.setAccTitle,this.getAccTitle=a.getAccTitle,this.setAccDescription=a.setAccDescription,this.getAccDescription=a.getAccDescription,this.setDiagramTitle=a.setDiagramTitle,this.getDiagramTitle=a.getDiagramTitle,this.getConfig=a.__name(()=>a.getConfig2().class,"getConfig"),this.functions.push(this.setupToolTips.bind(this)),this.clear(),this.addRelation=this.addRelation.bind(this),this.addClassesToNamespace=this.addClassesToNamespace.bind(this),this.addNamespace=this.addNamespace.bind(this),this.setCssClass=this.setCssClass.bind(this),this.addMembers=this.addMembers.bind(this),this.addClass=this.addClass.bind(this),this.setClassLabel=this.setClassLabel.bind(this),this.addAnnotation=this.addAnnotation.bind(this),this.addMember=this.addMember.bind(this),this.cleanupLabel=this.cleanupLabel.bind(this),this.addNote=this.addNote.bind(this),this.defineClass=this.defineClass.bind(this),this.setDirection=this.setDirection.bind(this),this.setLink=this.setLink.bind(this),this.bindFunctions=this.bindFunctions.bind(this),this.clear=this.clear.bind(this),this.setTooltip=this.setTooltip.bind(this),this.setClickEvent=this.setClickEvent.bind(this),this.setCssStyle=this.setCssStyle.bind(this)}splitClassNameAndType(e){const t=a.common_default.sanitizeText(e,a.getConfig2());let s="",i=t;if(t.indexOf("~")>0){const e=t.split("~");i=p(e[0]),s=p(e[1])}return{className:i,type:s}}setClassLabel(e,t){const s=a.common_default.sanitizeText(e,a.getConfig2());t&&(t=p(t));const{className:i}=this.splitClassNameAndType(s);this.classes.get(i).label=t,this.classes.get(i).text=`${t}${this.classes.get(i).type?`<${this.classes.get(i).type}>`:""}`}addClass(e){const t=a.common_default.sanitizeText(e,a.getConfig2()),{className:s,type:i}=this.splitClassNameAndType(t);if(this.classes.has(s))return;const n=a.common_default.sanitizeText(s,a.getConfig2());this.classes.set(n,{id:n,type:i,label:n,text:`${n}${i?`&lt;${i}&gt;`:""}`,shape:"classBox",cssClasses:"default",methods:[],members:[],annotations:[],styles:[],domId:c+n+"-"+h}),h++}addInterface(e,t){const s={id:`interface${this.interfaces.length}`,label:e,classId:t};this.interfaces.push(s)}lookUpDomId(e){const t=a.common_default.sanitizeText(e,a.getConfig2());if(this.classes.has(t))return this.classes.get(t).domId;throw new Error("Class not found: "+t)}clear(){this.relations=[],this.classes=new Map,this.notes=[],this.interfaces=[],this.functions=[],this.functions.push(this.setupToolTips.bind(this)),this.namespaces=new Map,this.namespaceCounter=0,this.direction="TB",a.clear()}getClass(e){return this.classes.get(e)}getClasses(){return this.classes}getRelations(){return this.relations}getNotes(){return this.notes}addRelation(e){a.log.debug("Adding relation: "+JSON.stringify(e));const t=[this.relationType.LOLLIPOP,this.relationType.AGGREGATION,this.relationType.COMPOSITION,this.relationType.DEPENDENCY,this.relationType.EXTENSION];e.relation.type1!==this.relationType.LOLLIPOP||t.includes(e.relation.type2)?e.relation.type2!==this.relationType.LOLLIPOP||t.includes(e.relation.type1)?(this.addClass(e.id1),this.addClass(e.id2)):(this.addClass(e.id1),this.addInterface(e.id2,e.id1),e.id2="interface"+(this.interfaces.length-1)):(this.addClass(e.id2),this.addInterface(e.id1,e.id2),e.id1="interface"+(this.interfaces.length-1)),e.id1=this.splitClassNameAndType(e.id1).className,e.id2=this.splitClassNameAndType(e.id2).className,e.relationTitle1=a.common_default.sanitizeText(e.relationTitle1.trim(),a.getConfig2()),e.relationTitle2=a.common_default.sanitizeText(e.relationTitle2.trim(),a.getConfig2()),this.relations.push(e)}addAnnotation(e,t){const s=this.splitClassNameAndType(e).className;this.classes.get(s).annotations.push(t)}addMember(e,t){this.addClass(e);const s=this.splitClassNameAndType(e).className,i=this.classes.get(s);if("string"==typeof t){const e=t.trim();e.startsWith("<<")&&e.endsWith(">>")?i.annotations.push(p(e.substring(2,e.length-2))):e.indexOf(")")>0?i.methods.push(new o(e,"method")):e&&i.members.push(new o(e,"attribute"))}}addMembers(e,t){Array.isArray(t)&&(t.reverse(),t.forEach(t=>this.addMember(e,t)))}addNote(e,t){const s={id:`note${this.notes.length}`,class:t,text:e};this.notes.push(s)}cleanupLabel(e){return e.startsWith(":")&&(e=e.substring(1)),p(e.trim())}setCssClass(e,t){e.split(",").forEach(e=>{let s=e;/\d/.exec(e[0])&&(s=c+s);const i=this.classes.get(s);i&&(i.cssClasses+=" "+t)})}defineClass(e,t){for(const s of e){let e=this.styleClasses.get(s);void 0===e&&(e={id:s,styles:[],textStyles:[]},this.styleClasses.set(s,e)),t&&t.forEach(t=>{if(/color/.exec(t)){const s=t.replace("fill","bgFill");e.textStyles.push(s)}e.styles.push(t)}),this.classes.forEach(e=>{e.cssClasses.includes(s)&&e.styles.push(...t.flatMap(e=>e.split(",")))})}}setTooltip(e,t){e.split(",").forEach(e=>{void 0!==t&&(this.classes.get(e).tooltip=p(t))})}getTooltip(e,t){return t&&this.namespaces.has(t)?this.namespaces.get(t).classes.get(e).tooltip:this.classes.get(e).tooltip}setLink(e,t,s){const i=a.getConfig2();e.split(",").forEach(e=>{let n=e;/\d/.exec(e[0])&&(n=c+n);const r=this.classes.get(n);r&&(r.link=a.utils_default.formatUrl(t,i),"sandbox"===i.securityLevel?r.linkTarget="_top":r.linkTarget="string"==typeof s?p(s):"_blank")}),this.setCssClass(e,"clickable")}setClickEvent(e,t,s){e.split(",").forEach(e=>{this.setClickFunc(e,t,s),this.classes.get(e).haveCallback=!0}),this.setCssClass(e,"clickable")}setClickFunc(e,t,s){const i=a.common_default.sanitizeText(e,a.getConfig2());if("loose"!==a.getConfig2().securityLevel)return;if(void 0===t)return;const n=i;if(this.classes.has(n)){const e=this.lookUpDomId(n);let i=[];if("string"==typeof s){i=s.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let e=0;e<i.length;e++){let t=i[e].trim();t.startsWith('"')&&t.endsWith('"')&&(t=t.substr(1,t.length-2)),i[e]=t}}0===i.length&&i.push(e),this.functions.push(()=>{const s=document.querySelector(`[id="${e}"]`);null!==s&&s.addEventListener("click",()=>{a.utils_default.runFunc(t,...i)},!1)})}}bindFunctions(e){this.functions.forEach(t=>{t(e)})}getDirection(){return this.direction}setDirection(e){this.direction=e}addNamespace(e){this.namespaces.has(e)||(this.namespaces.set(e,{id:e,classes:new Map,children:{},domId:c+e+"-"+this.namespaceCounter}),this.namespaceCounter++)}getNamespace(e){return this.namespaces.get(e)}getNamespaces(){return this.namespaces}addClassesToNamespace(e,t){if(this.namespaces.has(e))for(const s of t){const{className:t}=this.splitClassNameAndType(s);this.classes.get(t).parent=e,this.namespaces.get(e).classes.set(t,this.classes.get(t))}}setCssStyle(e,t){const s=this.classes.get(e);if(t&&s)for(const i of t)i.includes(",")?s.styles.push(...i.split(",")):s.styles.push(i)}getArrowMarker(e){let t;switch(e){case 0:t="aggregation";break;case 1:t="extension";break;case 2:t="composition";break;case 3:t="dependency";break;case 4:t="lollipop";break;default:t="none"}return t}getData(){var e;const t=[],s=[],i=a.getConfig2();for(const a of this.namespaces.keys()){const e=this.namespaces.get(a);if(e){const s={id:e.id,label:e.id,isGroup:!0,padding:i.class.padding??16,shape:"rect",cssStyles:["fill: none","stroke: black"],look:i.look};t.push(s)}}for(const a of this.classes.keys()){const e=this.classes.get(a);if(e){const s=e;s.parentId=e.parent,s.look=i.look,t.push(s)}}let n=0;for(const a of this.notes){n++;const r={id:a.id,label:a.text,isGroup:!1,shape:"note",padding:i.class.padding??6,cssStyles:["text-align: left","white-space: nowrap",`fill: ${i.themeVariables.noteBkgColor}`,`stroke: ${i.themeVariables.noteBorderColor}`],look:i.look};t.push(r);const u=(null==(e=this.classes.get(a.class))?void 0:e.id)??"";if(u){const e={id:`edgeNote${n}`,start:a.id,end:u,type:"normal",thickness:"normal",classes:"relation",arrowTypeStart:"none",arrowTypeEnd:"none",arrowheadStyle:"",labelStyle:[""],style:["fill: none"],pattern:"dotted",look:i.look};s.push(e)}}for(const a of this.interfaces){const e={id:a.id,label:a.label,isGroup:!1,shape:"rect",cssStyles:["opacity: 0;"],look:i.look};t.push(e)}n=0;for(const r of this.relations){n++;const e={id:a.getEdgeId(r.id1,r.id2,{prefix:"id",counter:n}),start:r.id1,end:r.id2,type:"normal",label:r.title,labelpos:"c",thickness:"normal",classes:"relation",arrowTypeStart:this.getArrowMarker(r.relation.type1),arrowTypeEnd:this.getArrowMarker(r.relation.type2),startLabelRight:"none"===r.relationTitle1?"":r.relationTitle1,endLabelLeft:"none"===r.relationTitle2?"":r.relationTitle2,arrowheadStyle:"",labelStyle:["display: inline-block"],style:r.style||"",pattern:1==r.relation.lineType?"dashed":"solid",look:i.look};s.push(e)}return{nodes:t,edges:s,other:{},config:i,direction:this.getDirection()}}},a.__name(t,"ClassDB"),t),A=a.__name(e=>`g.classGroup text {\n fill: ${e.nodeBorder||e.classText};\n stroke: none;\n font-family: ${e.fontFamily};\n font-size: 10px;\n\n .title {\n font-weight: bolder;\n }\n\n}\n\n.nodeLabel, .edgeLabel {\n color: ${e.classText};\n}\n.edgeLabel .label rect {\n fill: ${e.mainBkg};\n}\n.label text {\n fill: ${e.classText};\n}\n\n.labelBkg {\n background: ${e.mainBkg};\n}\n.edgeLabel .label span {\n background: ${e.mainBkg};\n}\n\n.classTitle {\n font-weight: bolder;\n}\n.node rect,\n .node circle,\n .node ellipse,\n .node polygon,\n .node path {\n fill: ${e.mainBkg};\n stroke: ${e.nodeBorder};\n stroke-width: 1px;\n }\n\n\n.divider {\n stroke: ${e.nodeBorder};\n stroke-width: 1;\n}\n\ng.clickable {\n cursor: pointer;\n}\n\ng.classGroup rect {\n fill: ${e.mainBkg};\n stroke: ${e.nodeBorder};\n}\n\ng.classGroup line {\n stroke: ${e.nodeBorder};\n stroke-width: 1;\n}\n\n.classLabel .box {\n stroke: none;\n stroke-width: 0;\n fill: ${e.mainBkg};\n opacity: 0.5;\n}\n\n.classLabel .label {\n fill: ${e.nodeBorder};\n font-size: 10px;\n}\n\n.relation {\n stroke: ${e.lineColor};\n stroke-width: 1;\n fill: none;\n}\n\n.dashed-line{\n stroke-dasharray: 3;\n}\n\n.dotted-line{\n stroke-dasharray: 1 2;\n}\n\n#compositionStart, .composition {\n fill: ${e.lineColor} !important;\n stroke: ${e.lineColor} !important;\n stroke-width: 1;\n}\n\n#compositionEnd, .composition {\n fill: ${e.lineColor} !important;\n stroke: ${e.lineColor} !important;\n stroke-width: 1;\n}\n\n#dependencyStart, .dependency {\n fill: ${e.lineColor} !important;\n stroke: ${e.lineColor} !important;\n stroke-width: 1;\n}\n\n#dependencyStart, .dependency {\n fill: ${e.lineColor} !important;\n stroke: ${e.lineColor} !important;\n stroke-width: 1;\n}\n\n#extensionStart, .extension {\n fill: transparent !important;\n stroke: ${e.lineColor} !important;\n stroke-width: 1;\n}\n\n#extensionEnd, .extension {\n fill: transparent !important;\n stroke: ${e.lineColor} !important;\n stroke-width: 1;\n}\n\n#aggregationStart, .aggregation {\n fill: transparent !important;\n stroke: ${e.lineColor} !important;\n stroke-width: 1;\n}\n\n#aggregationEnd, .aggregation {\n fill: transparent !important;\n stroke: ${e.lineColor} !important;\n stroke-width: 1;\n}\n\n#lollipopStart, .lollipop {\n fill: ${e.mainBkg} !important;\n stroke: ${e.lineColor} !important;\n stroke-width: 1;\n}\n\n#lollipopEnd, .lollipop {\n fill: ${e.mainBkg} !important;\n stroke: ${e.lineColor} !important;\n stroke-width: 1;\n}\n\n.edgeTerminals {\n font-size: 11px;\n line-height: initial;\n}\n\n.classTitleText {\n text-anchor: middle;\n font-size: 18px;\n fill: ${e.textColor};\n}\n ${s.getIconStyles()}\n`,"getStyles"),y=a.__name((e,t="TB")=>{if(!e.doc)return t;let s=t;for(const i of e.doc)"dir"===i.stmt&&(s=i.value);return s},"getDir"),m={getClasses:a.__name(function(e,t){return t.db.getClasses()},"getClasses"),draw:a.__name(async function(e,t,s,r){a.log.info("REF0:"),a.log.info("Drawing class diagram (v3)",t);const{securityLevel:u,state:l,layout:o}=a.getConfig2(),c=r.db.getData(),h=i.getDiagramElement(t,u);c.type=r.type,c.layoutAlgorithm=a.getRegisteredLayoutAlgorithm(o),c.nodeSpacing=(null==l?void 0:l.nodeSpacing)||50,c.rankSpacing=(null==l?void 0:l.rankSpacing)||50,c.markers=["aggregation","extension","composition","dependency","lollipop"],c.diagramId=t,await a.render(c,h);a.utils_default.insertTitle(h,"classDiagramTitleText",(null==l?void 0:l.titleTopMargin)??25,r.db.getDiagramTitle()),n.setupViewPortForSVG(h,8,"classDiagram",(null==l?void 0:l.useMaxWidth)??!0)},"draw"),getDir:y};exports.ClassDB=d,exports.classDiagram_default=u,exports.classRenderer_v3_unified_default=m,exports.styles_default=A;
2
+ //# sourceMappingURL=chunk-B4BG7PRW-DEwHKt7v.cjs.map
@@ -1,2 +1,2 @@
1
- "use strict";var t;const e=require("./chunk-55IACEB6-9B1z6QHL.cjs"),s=require("./chunk-QN33PNHL-DcHwlyDo.cjs"),i=require("./index-DkoeCnje.cjs");var n=function(){var t=i.__name(function(t,e,s,i){for(s=s||{},i=t.length;i--;s[t[i]]=e);return s},"o"),e=[1,2],s=[1,3],n=[1,4],r=[2,4],o=[1,9],a=[1,11],l=[1,16],c=[1,17],h=[1,18],d=[1,19],u=[1,33],p=[1,20],y=[1,21],g=[1,22],m=[1,23],f=[1,24],_=[1,26],S=[1,27],T=[1,28],k=[1,29],b=[1,30],E=[1,31],v=[1,32],C=[1,35],D=[1,36],x=[1,37],$=[1,38],A=[1,34],I=[1,4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],L=[1,4,5,14,15,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,39,40,41,45,48,51,52,53,54,57],w=[4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],N={trace:i.__name(function(){},"trace"),yy:{},symbols_:{error:2,start:3,SPACE:4,NL:5,SD:6,document:7,line:8,statement:9,classDefStatement:10,styleStatement:11,cssClassStatement:12,idStatement:13,DESCR:14,"--\x3e":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:29,notePosition:30,NOTE_TEXT:31,direction:32,acc_title:33,acc_title_value:34,acc_descr:35,acc_descr_value:36,acc_descr_multiline_value:37,CLICK:38,STRING:39,HREF:40,classDef:41,CLASSDEF_ID:42,CLASSDEF_STYLEOPTS:43,DEFAULT:44,style:45,STYLE_IDS:46,STYLEDEF_STYLEOPTS:47,class:48,CLASSENTITY_IDS:49,STYLECLASS:50,direction_tb:51,direction_bt:52,direction_rl:53,direction_lr:54,eol:55,";":56,EDGE_STATE:57,STYLE_SEPARATOR:58,left_of:59,right_of:60,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NL",6:"SD",14:"DESCR",15:"--\x3e",16:"HIDE_EMPTY",17:"scale",18:"WIDTH",19:"COMPOSIT_STATE",20:"STRUCT_START",21:"STRUCT_STOP",22:"STATE_DESCR",23:"AS",24:"ID",25:"FORK",26:"JOIN",27:"CHOICE",28:"CONCURRENT",29:"note",31:"NOTE_TEXT",33:"acc_title",34:"acc_title_value",35:"acc_descr",36:"acc_descr_value",37:"acc_descr_multiline_value",38:"CLICK",39:"STRING",40:"HREF",41:"classDef",42:"CLASSDEF_ID",43:"CLASSDEF_STYLEOPTS",44:"DEFAULT",45:"style",46:"STYLE_IDS",47:"STYLEDEF_STYLEOPTS",48:"class",49:"CLASSENTITY_IDS",50:"STYLECLASS",51:"direction_tb",52:"direction_bt",53:"direction_rl",54:"direction_lr",56:";",57:"EDGE_STATE",58:"STYLE_SEPARATOR",59:"left_of",60:"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,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],[9,5],[9,5],[10,3],[10,3],[11,3],[12,3],[32,1],[32,1],[32,1],[32,1],[55,1],[55,1],[13,1],[13,1],[13,3],[13,3],[30,1],[30,1]],performAction:i.__name(function(t,e,s,i,n,r,o){var a=r.length-1;switch(n){case 3:return i.setRootDoc(r[a]),r[a];case 4:this.$=[];break;case 5:"nl"!=r[a]&&(r[a-1].push(r[a]),this.$=r[a-1]);break;case 6:case 7:case 12:this.$=r[a];break;case 8:this.$="nl";break;case 13:const t=r[a-1];t.description=i.trimColon(r[a]),this.$=t;break;case 14:this.$={stmt:"relation",state1:r[a-2],state2:r[a]};break;case 15:const e=i.trimColon(r[a]);this.$={stmt:"relation",state1:r[a-3],state2:r[a-1],description:e};break;case 19:this.$={stmt:"state",id:r[a-3],type:"default",description:"",doc:r[a-1]};break;case 20:var l=r[a],c=r[a-2].trim();if(r[a].match(":")){var h=r[a].split(":");l=h[0],c=[c,h[1]]}this.$={stmt:"state",id:l,type:"default",description:c};break;case 21:this.$={stmt:"state",id:r[a-3],type:"default",description:r[a-5],doc:r[a-1]};break;case 22:this.$={stmt:"state",id:r[a],type:"fork"};break;case 23:this.$={stmt:"state",id:r[a],type:"join"};break;case 24:this.$={stmt:"state",id:r[a],type:"choice"};break;case 25:this.$={stmt:"state",id:i.getDividerId(),type:"divider"};break;case 26:this.$={stmt:"state",id:r[a-1].trim(),note:{position:r[a-2].trim(),text:r[a].trim()}};break;case 29:this.$=r[a].trim(),i.setAccTitle(this.$);break;case 30:case 31:this.$=r[a].trim(),i.setAccDescription(this.$);break;case 32:this.$={stmt:"click",id:r[a-3],url:r[a-2],tooltip:r[a-1]};break;case 33:this.$={stmt:"click",id:r[a-3],url:r[a-1],tooltip:""};break;case 34:case 35:this.$={stmt:"classDef",id:r[a-1].trim(),classes:r[a].trim()};break;case 36:this.$={stmt:"style",id:r[a-1].trim(),styleClass:r[a].trim()};break;case 37:this.$={stmt:"applyClass",id:r[a-1].trim(),styleClass:r[a].trim()};break;case 38:i.setDirection("TB"),this.$={stmt:"dir",value:"TB"};break;case 39:i.setDirection("BT"),this.$={stmt:"dir",value:"BT"};break;case 40:i.setDirection("RL"),this.$={stmt:"dir",value:"RL"};break;case 41:i.setDirection("LR"),this.$={stmt:"dir",value:"LR"};break;case 44:case 45:this.$={stmt:"state",id:r[a].trim(),type:"default",description:""};break;case 46:case 47:this.$={stmt:"state",id:r[a-2].trim(),classes:[r[a].trim()],type:"default",description:""}}},"anonymous"),table:[{3:1,4:e,5:s,6:n},{1:[3]},{3:5,4:e,5:s,6:n},{3:6,4:e,5:s,6:n},t([1,4,5,16,17,19,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],r,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:o,5:a,8:8,9:10,10:12,11:13,12:14,13:15,16:l,17:c,19:h,22:d,24:u,25:p,26:y,27:g,28:m,29:f,32:25,33:_,35:S,37:T,38:k,41:b,45:E,48:v,51:C,52:D,53:x,54:$,57:A},t(I,[2,5]),{9:39,10:12,11:13,12:14,13:15,16:l,17:c,19:h,22:d,24:u,25:p,26:y,27:g,28:m,29:f,32:25,33:_,35:S,37:T,38:k,41:b,45:E,48:v,51:C,52:D,53:x,54:$,57:A},t(I,[2,7]),t(I,[2,8]),t(I,[2,9]),t(I,[2,10]),t(I,[2,11]),t(I,[2,12],{14:[1,40],15:[1,41]}),t(I,[2,16]),{18:[1,42]},t(I,[2,18],{20:[1,43]}),{23:[1,44]},t(I,[2,22]),t(I,[2,23]),t(I,[2,24]),t(I,[2,25]),{30:45,31:[1,46],59:[1,47],60:[1,48]},t(I,[2,28]),{34:[1,49]},{36:[1,50]},t(I,[2,31]),{13:51,24:u,57:A},{42:[1,52],44:[1,53]},{46:[1,54]},{49:[1,55]},t(L,[2,44],{58:[1,56]}),t(L,[2,45],{58:[1,57]}),t(I,[2,38]),t(I,[2,39]),t(I,[2,40]),t(I,[2,41]),t(I,[2,6]),t(I,[2,13]),{13:58,24:u,57:A},t(I,[2,17]),t(w,r,{7:59}),{24:[1,60]},{24:[1,61]},{23:[1,62]},{24:[2,48]},{24:[2,49]},t(I,[2,29]),t(I,[2,30]),{39:[1,63],40:[1,64]},{43:[1,65]},{43:[1,66]},{47:[1,67]},{50:[1,68]},{24:[1,69]},{24:[1,70]},t(I,[2,14],{14:[1,71]}),{4:o,5:a,8:8,9:10,10:12,11:13,12:14,13:15,16:l,17:c,19:h,21:[1,72],22:d,24:u,25:p,26:y,27:g,28:m,29:f,32:25,33:_,35:S,37:T,38:k,41:b,45:E,48:v,51:C,52:D,53:x,54:$,57:A},t(I,[2,20],{20:[1,73]}),{31:[1,74]},{24:[1,75]},{39:[1,76]},{39:[1,77]},t(I,[2,34]),t(I,[2,35]),t(I,[2,36]),t(I,[2,37]),t(L,[2,46]),t(L,[2,47]),t(I,[2,15]),t(I,[2,19]),t(w,r,{7:78}),t(I,[2,26]),t(I,[2,27]),{5:[1,79]},{5:[1,80]},{4:o,5:a,8:8,9:10,10:12,11:13,12:14,13:15,16:l,17:c,19:h,21:[1,81],22:d,24:u,25:p,26:y,27:g,28:m,29:f,32:25,33:_,35:S,37:T,38:k,41:b,45:E,48:v,51:C,52:D,53:x,54:$,57:A},t(I,[2,32]),t(I,[2,33]),t(I,[2,21])],defaultActions:{5:[2,1],6:[2,2],47:[2,48],48:[2,49]},parseError:i.__name(function(t,e){if(!e.recoverable){var s=new Error(t);throw s.hash=e,s}this.trace(t)},"parseError"),parse:i.__name(function(t){var e=this,s=[0],n=[],r=[null],o=[],a=this.table,l="",c=0,h=0,d=o.slice.call(arguments,1),u=Object.create(this.lexer),p={yy:{}};for(var y in this.yy)Object.prototype.hasOwnProperty.call(this.yy,y)&&(p.yy[y]=this.yy[y]);u.setInput(t,p.yy),p.yy.lexer=u,p.yy.parser=this,void 0===u.yylloc&&(u.yylloc={});var g=u.yylloc;o.push(g);var m=u.options&&u.options.ranges;function f(){var t;return"number"!=typeof(t=n.pop()||u.lex()||1)&&(t instanceof Array&&(t=(n=t).pop()),t=e.symbols_[t]||t),t}"function"==typeof p.yy.parseError?this.parseError=p.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError,i.__name(function(t){s.length=s.length-2*t,r.length=r.length-t,o.length=o.length-t},"popStack"),i.__name(f,"lex");for(var _,S,T,k,b,E,v,C,D={};;){if(S=s[s.length-1],this.defaultActions[S]?T=this.defaultActions[S]:(null==_&&(_=f()),T=a[S]&&a[S][_]),void 0===T||!T.length||!T[0]){var x="";for(b in C=[],a[S])this.terminals_[b]&&b>2&&C.push("'"+this.terminals_[b]+"'");x=u.showPosition?"Parse error on line "+(c+1)+":\n"+u.showPosition()+"\nExpecting "+C.join(", ")+", got '"+(this.terminals_[_]||_)+"'":"Parse error on line "+(c+1)+": Unexpected "+(1==_?"end of input":"'"+(this.terminals_[_]||_)+"'"),this.parseError(x,{text:u.match,token:this.terminals_[_]||_,line:u.yylineno,loc:g,expected:C})}if(T[0]instanceof Array&&T.length>1)throw new Error("Parse Error: multiple actions possible at state: "+S+", token: "+_);switch(T[0]){case 1:s.push(_),r.push(u.yytext),o.push(u.yylloc),s.push(T[1]),_=null,h=u.yyleng,l=u.yytext,c=u.yylineno,g=u.yylloc;break;case 2:if(E=this.productions_[T[1]][1],D.$=r[r.length-E],D._$={first_line:o[o.length-(E||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(E||1)].first_column,last_column:o[o.length-1].last_column},m&&(D._$.range=[o[o.length-(E||1)].range[0],o[o.length-1].range[1]]),void 0!==(k=this.performAction.apply(D,[l,h,c,p.yy,T[1],r,o].concat(d))))return k;E&&(s=s.slice(0,-1*E*2),r=r.slice(0,-1*E),o=o.slice(0,-1*E)),s.push(this.productions_[T[1]][0]),r.push(D.$),o.push(D._$),v=a[s[s.length-2]][s[s.length-1]],s.push(v);break;case 3:return!0}}return!0},"parse")},O=function(){return{EOF:1,parseError:i.__name(function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},"parseError"),setInput:i.__name(function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:i.__name(function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},"input"),unput:i.__name(function(t){var e=t.length,s=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var i=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),s.length-1&&(this.yylineno-=s.length-1);var n=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:s?(s.length===i.length?this.yylloc.first_column:0)+i[i.length-s.length].length-s[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[n[0],n[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},"unput"),more:i.__name(function(){return this._more=!0,this},"more"),reject:i.__name(function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},"reject"),less:i.__name(function(t){this.unput(this.match.slice(t))},"less"),pastInput:i.__name(function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:i.__name(function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:i.__name(function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},"showPosition"),test_match:i.__name(function(t,e){var s,i,n;if(this.options.backtrack_lexer&&(n={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&&(n.yylloc.range=this.yylloc.range.slice(0))),(i=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=i.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:i?i[i.length-1].length-i[i.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],s=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),s)return s;if(this._backtrack){for(var r in n)this[r]=n[r];return!1}return!1},"test_match"),next:i.__name(function(){if(this.done)return this.EOF;var t,e,s,i;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var n=this._currentRules(),r=0;r<n.length;r++)if((s=this._input.match(this.rules[n[r]]))&&(!e||s[0].length>e[0].length)){if(e=s,i=r,this.options.backtrack_lexer){if(!1!==(t=this.test_match(s,n[r])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,n[i]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:i.__name(function(){var t=this.next();return t||this.lex()},"lex"),begin:i.__name(function(t){this.conditionStack.push(t)},"begin"),popState:i.__name(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:i.__name(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:i.__name(function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},"topState"),pushState:i.__name(function(t){this.begin(t)},"pushState"),stateStackSize:i.__name(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:i.__name(function(t,e,s,i){switch(s){case 0:return 38;case 1:return 40;case 2:return 39;case 3:return 44;case 4:case 45:return 51;case 5:case 46:return 52;case 6:case 47:return 53;case 7:case 48:return 54;case 8:case 9:case 11:case 12:case 13:case 14:case 57:case 59:case 65:break;case 10:case 80:return 5;case 15:case 35:return this.pushState("SCALE"),17;case 16:case 36:return 18;case 17:case 23:case 37:case 52:case 55:this.popState();break;case 18:return this.begin("acc_title"),33;case 19:return this.popState(),"acc_title_value";case 20:return this.begin("acc_descr"),35;case 21:return this.popState(),"acc_descr_value";case 22:this.begin("acc_descr_multiline");break;case 24:return"acc_descr_multiline_value";case 25:return this.pushState("CLASSDEF"),41;case 26:return this.popState(),this.pushState("CLASSDEFID"),"DEFAULT_CLASSDEF_ID";case 27:return this.popState(),this.pushState("CLASSDEFID"),42;case 28:return this.popState(),43;case 29:return this.pushState("CLASS"),48;case 30:return this.popState(),this.pushState("CLASS_STYLE"),49;case 31:return this.popState(),50;case 32:return this.pushState("STYLE"),45;case 33:return this.popState(),this.pushState("STYLEDEF_STYLES"),46;case 34:return this.popState(),47;case 38:this.pushState("STATE");break;case 39:case 42:return this.popState(),e.yytext=e.yytext.slice(0,-8).trim(),25;case 40:case 43:return this.popState(),e.yytext=e.yytext.slice(0,-8).trim(),26;case 41:case 44:return this.popState(),e.yytext=e.yytext.slice(0,-10).trim(),27;case 49:this.pushState("STATE_STRING");break;case 50:return this.pushState("STATE_ID"),"AS";case 51:case 67:return this.popState(),"ID";case 53:return"STATE_DESCR";case 54:return 19;case 56:return this.popState(),this.pushState("struct"),20;case 58:return this.popState(),21;case 60:return this.begin("NOTE"),29;case 61:return this.popState(),this.pushState("NOTE_ID"),59;case 62:return this.popState(),this.pushState("NOTE_ID"),60;case 63:this.popState(),this.pushState("FLOATING_NOTE");break;case 64:return this.popState(),this.pushState("FLOATING_NOTE_ID"),"AS";case 66:return"NOTE_TEXT";case 68:return this.popState(),this.pushState("NOTE_TEXT"),24;case 69:return this.popState(),e.yytext=e.yytext.substr(2).trim(),31;case 70:return this.popState(),e.yytext=e.yytext.slice(0,-8).trim(),31;case 71:case 72:return 6;case 73:return 16;case 74:return 57;case 75:return 24;case 76:return e.yytext=e.yytext.trim(),14;case 77:return 15;case 78:return 28;case 79:return 58;case 81:return"INVALID"}},"anonymous"),rules:[/^(?:click\b)/i,/^(?:href\b)/i,/^(?:"[^"]*")/i,/^(?: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,/^(?:style\s+)/i,/^(?:[\w,]+\s+)/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:[12,13],inclusive:!1},struct:{rules:[12,13,25,29,32,38,45,46,47,48,57,58,59,60,74,75,76,77,78],inclusive:!1},FLOATING_NOTE_ID:{rules:[67],inclusive:!1},FLOATING_NOTE:{rules:[64,65,66],inclusive:!1},NOTE_TEXT:{rules:[69,70],inclusive:!1},NOTE_ID:{rules:[68],inclusive:!1},NOTE:{rules:[61,62,63],inclusive:!1},STYLEDEF_STYLEOPTS:{rules:[],inclusive:!1},STYLEDEF_STYLES:{rules:[34],inclusive:!1},STYLE_IDS:{rules:[],inclusive:!1},STYLE:{rules:[33],inclusive:!1},CLASS_STYLE:{rules:[31],inclusive:!1},CLASS:{rules:[30],inclusive:!1},CLASSDEFID:{rules:[28],inclusive:!1},CLASSDEF:{rules:[26,27],inclusive:!1},acc_descr_multiline:{rules:[23,24],inclusive:!1},acc_descr:{rules:[21],inclusive:!1},acc_title:{rules:[19],inclusive:!1},SCALE:{rules:[16,17,36,37],inclusive:!1},ALIAS:{rules:[],inclusive:!1},STATE_ID:{rules:[51],inclusive:!1},STATE_STRING:{rules:[52,53],inclusive:!1},FORK_STATE:{rules:[],inclusive:!1},STATE:{rules:[12,13,39,40,41,42,43,44,49,50,54,55,56],inclusive:!1},ID:{rules:[12,13],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,10,11,13,14,15,18,20,22,25,29,32,35,38,56,60,71,72,73,74,75,76,77,79,80,81],inclusive:!0}}}}();function R(){this.yy={}}return N.lexer=O,i.__name(R,"Parser"),R.prototype=N,N.Parser=R,new R}();n.parser=n;var r=n,o="state",a="root",l="relation",c="default",h="divider",d="fill:none",u="fill: #333",p="text",y="normal",g="rect",m="rectWithTitle",f="divider",_="roundedWithTitle",S="statediagram",T=`${S}-state`,k="transition",b=`${k} note-edge`,E=`${S}-note`,v=`${S}-cluster`,C=`${S}-cluster-alt`,D="parent",x="note",$="----",A=`${$}${x}`,I=`${$}${D}`,L=i.__name((t,e="TB")=>{if(!t.doc)return e;let s=e;for(const i of t.doc)"dir"===i.stmt&&(s=i.value);return s},"getDir"),w={getClasses:i.__name(function(t,e){return e.db.getClasses()},"getClasses"),draw:i.__name(async function(t,n,r,o){i.log.info("REF0:"),i.log.info("Drawing state diagram (v2)",n);const{securityLevel:a,state:l,layout:c}=i.getConfig2();o.db.extract(o.db.getRootDocV2());const h=o.db.getData(),d=e.getDiagramElement(n,a);h.type=o.type,h.layoutAlgorithm=c,h.nodeSpacing=(null==l?void 0:l.nodeSpacing)||50,h.rankSpacing=(null==l?void 0:l.rankSpacing)||50,h.markers=["barb"],h.diagramId=n,await i.render(h,d);try{("function"==typeof o.db.getLinks?o.db.getLinks():new Map).forEach((t,e)=>{var s;const n="string"==typeof e?e:"string"==typeof(null==e?void 0:e.id)?e.id:"";if(!n)return void i.log.warn("⚠️ Invalid or missing stateId from key:",JSON.stringify(e));const r=null==(s=d.node())?void 0:s.querySelectorAll("g");let o;if(null==r||r.forEach(t=>{var e;(null==(e=t.textContent)?void 0:e.trim())===n&&(o=t)}),!o)return void i.log.warn("⚠️ Could not find node matching text:",n);const a=o.parentNode;if(!a)return void i.log.warn("⚠️ Node has no parent, cannot wrap:",n);const l=document.createElementNS("http://www.w3.org/2000/svg","a"),c=t.url.replace(/^"+|"+$/g,"");if(l.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",c),l.setAttribute("target","_blank"),t.tooltip){const e=t.tooltip.replace(/^"+|"+$/g,"");l.setAttribute("title",e)}a.replaceChild(l,o),l.appendChild(o),i.log.info("🔗 Wrapped node in <a> tag for:",n,t.url)})}catch(u){i.log.error("❌ Error injecting clickable links:",u)}i.utils_default.insertTitle(d,"statediagramTitleText",(null==l?void 0:l.titleTopMargin)??25,o.db.getDiagramTitle()),s.setupViewPortForSVG(d,8,S,(null==l?void 0:l.useMaxWidth)??!0)},"draw"),getDir:L},N=new Map,O=0;function R(t="",e=0,s="",i=$){return`state-${t}${null!==s&&s.length>0?`${i}${s}`:""}-${e}`}i.__name(R,"stateDomId");var B=i.__name((t,e,s,n,r,a,h,g)=>{i.log.trace("items",e),e.forEach(e=>{switch(e.stmt){case o:case c:j(t,e,s,n,r,a,h,g);break;case l:{j(t,e.state1,s,n,r,a,h,g),j(t,e.state2,s,n,r,a,h,g);const o={id:"edge"+O,start:e.state1.id,end:e.state2.id,arrowhead:"normal",arrowTypeEnd:"arrow_barb",style:d,labelStyle:"",label:i.common_default.sanitizeText(e.description??"",i.getConfig2()),arrowheadStyle:u,labelpos:"c",labelType:p,thickness:y,classes:k,look:h};r.push(o),O++}}})},"setupDoc"),F=i.__name((t,e="TB")=>{let s=e;if(t.doc)for(const i of t.doc)"dir"===i.stmt&&(s=i.value);return s},"getDir");function P(t,e,s){if(!e.id||"</join></fork>"===e.id||"</choice>"===e.id)return;e.cssClasses&&(Array.isArray(e.cssCompiledStyles)||(e.cssCompiledStyles=[]),e.cssClasses.split(" ").forEach(t=>{const i=s.get(t);i&&(e.cssCompiledStyles=[...e.cssCompiledStyles??[],...i.styles])}));const i=t.find(t=>t.id===e.id);i?Object.assign(i,e):t.push(e)}function Y(t){var e;return(null==(e=null==t?void 0:t.classes)?void 0:e.join(" "))??""}function G(t){return(null==t?void 0:t.styles)??[]}i.__name(P,"insertOrUpdateNode"),i.__name(Y,"getClassesFromDbInfo"),i.__name(G,"getStylesFromDbInfo");var j=i.__name((t,e,s,n,r,o,a,l)=>{var S,k,$;const L=e.id,w=s.get(L),j=Y(w),z=G(w),M=i.getConfig2();if(i.log.info("dataFetcher parsedItem",e,w,z),"root"!==L){let s=g;!0===e.start?s="stateStart":!1===e.start&&(s="stateEnd"),e.type!==c&&(s=e.type),N.get(L)||N.set(L,{id:L,shape:s,description:i.common_default.sanitizeText(L,M),cssClasses:`${j} ${T}`,cssStyles:z});const w=N.get(L);e.description&&(Array.isArray(w.description)?(w.shape=m,w.description.push(e.description)):(null==(S=w.description)?void 0:S.length)&&w.description.length>0?(w.shape=m,w.description===L?w.description=[e.description]:w.description=[w.description,e.description]):(w.shape=g,w.description=e.description),w.description=i.common_default.sanitizeTextOrArray(w.description,M)),1===(null==(k=w.description)?void 0:k.length)&&w.shape===m&&("group"===w.type?w.shape=_:w.shape=g),!w.type&&e.doc&&(i.log.info("Setting cluster for XCX",L,F(e)),w.type="group",w.isGroup=!0,w.dir=F(e),w.shape=e.type===h?f:_,w.cssClasses=`${w.cssClasses} ${v} ${o?C:""}`);const B={labelStyle:"",shape:w.shape,label:w.description,cssClasses:w.cssClasses,cssCompiledStyles:[],cssStyles:w.cssStyles,id:L,dir:w.dir,domId:R(L,O),type:w.type,isGroup:"group"===w.type,padding:8,rx:10,ry:10,look:a};if(B.shape===f&&(B.label=""),t&&"root"!==t.id&&(i.log.trace("Setting node ",L," to be child of its parent ",t.id),B.parentId=t.id),B.centerLabel=!0,e.note){const t={labelStyle:"",shape:"note",label:e.note.text,cssClasses:E,cssStyles:[],cssCompiledStyles:[],id:L+A+"-"+O,domId:R(L,O,x),type:w.type,isGroup:"group"===w.type,padding:null==($=M.flowchart)?void 0:$.padding,look:a,position:e.note.position},s=L+I,i={labelStyle:"",shape:"noteGroup",label:e.note.text,cssClasses:w.cssClasses,cssStyles:[],id:L+I,domId:R(L,O,D),type:"group",isGroup:!0,padding:16,look:a,position:e.note.position};O++,i.id=s,t.parentId=s,P(n,i,l),P(n,t,l),P(n,B,l);let o=L,c=t.id;"left of"===e.note.position&&(o=t.id,c=L),r.push({id:o+"-"+c,start:o,end:c,arrowhead:"none",arrowTypeEnd:"",style:d,labelStyle:"",classes:b,arrowheadStyle:u,labelpos:"c",labelType:p,thickness:y,look:a})}else P(n,B,l)}e.doc&&(i.log.trace("Adding nodes children "),B(e,e.doc,s,n,r,!o,a,l))},"dataFetcher"),z=i.__name(()=>{N.clear(),O=0},"reset"),M="[*]",U="start",H="[*]",W="end",X="color",V="fill",J="bgFill",K=",",q=i.__name(()=>new Map,"newClassesList"),Q=i.__name(()=>({relations:[],states:new Map,documents:{}}),"newDoc"),Z=i.__name(t=>JSON.parse(JSON.stringify(t)),"clone"),tt=(t=class{constructor(t){this.version=t,this.nodes=[],this.edges=[],this.rootDoc=[],this.classes=q(),this.documents={root:Q()},this.currentDocument=this.documents.root,this.startEndCount=0,this.dividerCnt=0,this.links=new Map,this.getAccTitle=i.getAccTitle,this.setAccTitle=i.setAccTitle,this.getAccDescription=i.getAccDescription,this.setAccDescription=i.setAccDescription,this.setDiagramTitle=i.setDiagramTitle,this.getDiagramTitle=i.getDiagramTitle,this.clear(),this.setRootDoc=this.setRootDoc.bind(this),this.getDividerId=this.getDividerId.bind(this),this.setDirection=this.setDirection.bind(this),this.trimColon=this.trimColon.bind(this)}extract(t){this.clear(!0);for(const i of Array.isArray(t)?t:t.doc)switch(i.stmt){case o:this.addState(i.id.trim(),i.type,i.doc,i.description,i.note);break;case l:this.addRelation(i.state1,i.state2,i.description);break;case"classDef":this.addStyleClass(i.id.trim(),i.classes);break;case"style":this.handleStyleDef(i);break;case"applyClass":this.setCssClass(i.id.trim(),i.styleClass);break;case"click":this.addLink(i.id,i.url,i.tooltip)}const e=this.getStates(),s=i.getConfig2();z(),j(void 0,this.getRootDocV2(),e,this.nodes,this.edges,!0,s.look,this.classes);for(const i of this.nodes)if(Array.isArray(i.label)){if(i.description=i.label.slice(1),i.isGroup&&i.description.length>0)throw new Error(`Group nodes can only have label. Remove the additional description for node [${i.id}]`);i.label=i.label[0]}}handleStyleDef(t){const e=t.id.trim().split(","),s=t.styleClass.split(",");for(const i of e){let t=this.getState(i);if(!t){const e=i.trim();this.addState(e),t=this.getState(e)}t&&(t.styles=s.map(t=>{var e;return null==(e=t.replace(/;/g,""))?void 0:e.trim()}))}}setRootDoc(t){i.log.info("Setting root doc",t),this.rootDoc=t,1===this.version?this.extract(t):this.extract(this.getRootDocV2())}docTranslator(t,e,s){if(e.stmt===l)return this.docTranslator(t,e.state1,!0),void this.docTranslator(t,e.state2,!1);if(e.stmt===o&&(e.id===M?(e.id=t.id+(s?"_start":"_end"),e.start=s):e.id=e.id.trim()),e.stmt!==a&&e.stmt!==o||!e.doc)return;const n=[];let r=[];for(const i of e.doc)if(i.type===h){const t=Z(i);t.doc=Z(r),n.push(t),r=[]}else r.push(i);if(n.length>0&&r.length>0){const t={stmt:o,id:i.generateId(),type:"divider",doc:Z(r)};n.push(Z(t)),e.doc=n}e.doc.forEach(t=>this.docTranslator(e,t,!0))}getRootDocV2(){return this.docTranslator({id:a,stmt:a},{id:a,stmt:a,doc:this.rootDoc},!0),{id:a,doc:this.rootDoc}}addState(t,e=c,s=void 0,n=void 0,r=void 0,a=void 0,l=void 0,h=void 0){const d=null==t?void 0:t.trim();if(this.currentDocument.states.has(d)){const t=this.currentDocument.states.get(d);if(!t)throw new Error(`State not found: ${d}`);t.doc||(t.doc=s),t.type||(t.type=e)}else i.log.info("Adding state ",d,n),this.currentDocument.states.set(d,{stmt:o,id:d,descriptions:[],type:e,doc:s,note:r,classes:[],styles:[],textStyles:[]});if(n){i.log.info("Setting state description",d,n);(Array.isArray(n)?n:[n]).forEach(t=>this.addDescription(d,t.trim()))}if(r){const t=this.currentDocument.states.get(d);if(!t)throw new Error(`State not found: ${d}`);t.note=r,t.note.text=i.common_default.sanitizeText(t.note.text,i.getConfig2())}if(a){i.log.info("Setting state classes",d,a);(Array.isArray(a)?a:[a]).forEach(t=>this.setCssClass(d,t.trim()))}if(l){i.log.info("Setting state styles",d,l);(Array.isArray(l)?l:[l]).forEach(t=>this.setStyle(d,t.trim()))}if(h){i.log.info("Setting state styles",d,l);(Array.isArray(h)?h:[h]).forEach(t=>this.setTextStyle(d,t.trim()))}}clear(t){this.nodes=[],this.edges=[],this.documents={root:Q()},this.currentDocument=this.documents.root,this.startEndCount=0,this.classes=q(),t||(this.links=new Map,i.clear())}getState(t){return this.currentDocument.states.get(t)}getStates(){return this.currentDocument.states}logDocuments(){i.log.info("Documents = ",this.documents)}getRelations(){return this.currentDocument.relations}addLink(t,e,s){this.links.set(t,{url:e,tooltip:s}),i.log.warn("Adding link",t,e,s)}getLinks(){return this.links}startIdIfNeeded(t=""){return t===M?(this.startEndCount++,`${U}${this.startEndCount}`):t}startTypeIfNeeded(t="",e=c){return t===M?U:e}endIdIfNeeded(t=""){return t===H?(this.startEndCount++,`${W}${this.startEndCount}`):t}endTypeIfNeeded(t="",e=c){return t===H?W:e}addRelationObjs(t,e,s=""){const n=this.startIdIfNeeded(t.id.trim()),r=this.startTypeIfNeeded(t.id.trim(),t.type),o=this.startIdIfNeeded(e.id.trim()),a=this.startTypeIfNeeded(e.id.trim(),e.type);this.addState(n,r,t.doc,t.description,t.note,t.classes,t.styles,t.textStyles),this.addState(o,a,e.doc,e.description,e.note,e.classes,e.styles,e.textStyles),this.currentDocument.relations.push({id1:n,id2:o,relationTitle:i.common_default.sanitizeText(s,i.getConfig2())})}addRelation(t,e,s){if("object"==typeof t&&"object"==typeof e)this.addRelationObjs(t,e,s);else if("string"==typeof t&&"string"==typeof e){const n=this.startIdIfNeeded(t.trim()),r=this.startTypeIfNeeded(t),o=this.endIdIfNeeded(e.trim()),a=this.endTypeIfNeeded(e);this.addState(n,r),this.addState(o,a),this.currentDocument.relations.push({id1:n,id2:o,relationTitle:s?i.common_default.sanitizeText(s,i.getConfig2()):void 0})}}addDescription(t,e){var s;const n=this.currentDocument.states.get(t),r=e.startsWith(":")?e.replace(":","").trim():e;null==(s=null==n?void 0:n.descriptions)||s.push(i.common_default.sanitizeText(r,i.getConfig2()))}cleanupLabel(t){return t.startsWith(":")?t.slice(2).trim():t.trim()}getDividerId(){return this.dividerCnt++,`divider-id-${this.dividerCnt}`}addStyleClass(t,e=""){this.classes.has(t)||this.classes.set(t,{id:t,styles:[],textStyles:[]});const s=this.classes.get(t);e&&s&&e.split(K).forEach(t=>{const e=t.replace(/([^;]*);/,"$1").trim();if(RegExp(X).exec(t)){const t=e.replace(V,J).replace(X,V);s.textStyles.push(t)}s.styles.push(e)})}getClasses(){return this.classes}setCssClass(t,e){t.split(",").forEach(t=>{var s;let i=this.getState(t);if(!i){const e=t.trim();this.addState(e),i=this.getState(e)}null==(s=null==i?void 0:i.classes)||s.push(e)})}setStyle(t,e){var s,i;null==(i=null==(s=this.getState(t))?void 0:s.styles)||i.push(e)}setTextStyle(t,e){var s,i;null==(i=null==(s=this.getState(t))?void 0:s.textStyles)||i.push(e)}getDirectionStatement(){return this.rootDoc.find(t=>"dir"===t.stmt)}getDirection(){var t;return(null==(t=this.getDirectionStatement())?void 0:t.value)??"TB"}setDirection(t){const e=this.getDirectionStatement();e?e.value=t:this.rootDoc.unshift({stmt:"dir",value:t})}trimColon(t){return t.startsWith(":")?t.slice(1).trim():t.trim()}getData(){const t=i.getConfig2();return{nodes:this.nodes,edges:this.edges,other:{},config:t,direction:L(this.getRootDocV2())}}getConfig(){return i.getConfig2().state}},i.__name(t,"StateDB"),t.relationType={AGGREGATION:0,EXTENSION:1,COMPOSITION:2,DEPENDENCY:3},t),et=i.__name(t=>`\ndefs #statediagram-barbEnd {\n fill: ${t.transitionColor};\n stroke: ${t.transitionColor};\n }\ng.stateGroup text {\n fill: ${t.nodeBorder};\n stroke: none;\n font-size: 10px;\n}\ng.stateGroup text {\n fill: ${t.textColor};\n stroke: none;\n font-size: 10px;\n\n}\ng.stateGroup .state-title {\n font-weight: bolder;\n fill: ${t.stateLabelColor};\n}\n\ng.stateGroup rect {\n fill: ${t.mainBkg};\n stroke: ${t.nodeBorder};\n}\n\ng.stateGroup line {\n stroke: ${t.lineColor};\n stroke-width: 1;\n}\n\n.transition {\n stroke: ${t.transitionColor};\n stroke-width: 1;\n fill: none;\n}\n\n.stateGroup .composit {\n fill: ${t.background};\n border-bottom: 1px\n}\n\n.stateGroup .alt-composit {\n fill: #e0e0e0;\n border-bottom: 1px\n}\n\n.state-note {\n stroke: ${t.noteBorderColor};\n fill: ${t.noteBkgColor};\n\n text {\n fill: ${t.noteTextColor};\n stroke: none;\n font-size: 10px;\n }\n}\n\n.stateLabel .box {\n stroke: none;\n stroke-width: 0;\n fill: ${t.mainBkg};\n opacity: 0.5;\n}\n\n.edgeLabel .label rect {\n fill: ${t.labelBackgroundColor};\n opacity: 0.5;\n}\n.edgeLabel {\n background-color: ${t.edgeLabelBackground};\n p {\n background-color: ${t.edgeLabelBackground};\n }\n rect {\n opacity: 0.5;\n background-color: ${t.edgeLabelBackground};\n fill: ${t.edgeLabelBackground};\n }\n text-align: center;\n}\n.edgeLabel .label text {\n fill: ${t.transitionLabelColor||t.tertiaryTextColor};\n}\n.label div .edgeLabel {\n color: ${t.transitionLabelColor||t.tertiaryTextColor};\n}\n\n.stateLabel text {\n fill: ${t.stateLabelColor};\n font-size: 10px;\n font-weight: bold;\n}\n\n.node circle.state-start {\n fill: ${t.specialStateColor};\n stroke: ${t.specialStateColor};\n}\n\n.node .fork-join {\n fill: ${t.specialStateColor};\n stroke: ${t.specialStateColor};\n}\n\n.node circle.state-end {\n fill: ${t.innerEndBackground};\n stroke: ${t.background};\n stroke-width: 1.5\n}\n.end-state-inner {\n fill: ${t.compositeBackground||t.background};\n // stroke: ${t.background};\n stroke-width: 1.5\n}\n\n.node rect {\n fill: ${t.stateBkg||t.mainBkg};\n stroke: ${t.stateBorder||t.nodeBorder};\n stroke-width: 1px;\n}\n.node polygon {\n fill: ${t.mainBkg};\n stroke: ${t.stateBorder||t.nodeBorder};;\n stroke-width: 1px;\n}\n#statediagram-barbEnd {\n fill: ${t.lineColor};\n}\n\n.statediagram-cluster rect {\n fill: ${t.compositeTitleBackground};\n stroke: ${t.stateBorder||t.nodeBorder};\n stroke-width: 1px;\n}\n\n.cluster-label, .nodeLabel {\n color: ${t.stateLabelColor};\n // line-height: 1;\n}\n\n.statediagram-cluster rect.outer {\n rx: 5px;\n ry: 5px;\n}\n.statediagram-state .divider {\n stroke: ${t.stateBorder||t.nodeBorder};\n}\n\n.statediagram-state .title-state {\n rx: 5px;\n ry: 5px;\n}\n.statediagram-cluster.statediagram-cluster .inner {\n fill: ${t.compositeBackground||t.background};\n}\n.statediagram-cluster.statediagram-cluster-alt .inner {\n fill: ${t.altBackground?t.altBackground:"#efefef"};\n}\n\n.statediagram-cluster .inner {\n rx:0;\n ry:0;\n}\n\n.statediagram-state rect.basic {\n rx: 5px;\n ry: 5px;\n}\n.statediagram-state rect.divider {\n stroke-dasharray: 10,10;\n fill: ${t.altBackground?t.altBackground:"#efefef"};\n}\n\n.note-edge {\n stroke-dasharray: 5;\n}\n\n.statediagram-note rect {\n fill: ${t.noteBkgColor};\n stroke: ${t.noteBorderColor};\n stroke-width: 1px;\n rx: 0;\n ry: 0;\n}\n.statediagram-note rect {\n fill: ${t.noteBkgColor};\n stroke: ${t.noteBorderColor};\n stroke-width: 1px;\n rx: 0;\n ry: 0;\n}\n\n.statediagram-note text {\n fill: ${t.noteTextColor};\n}\n\n.statediagram-note .nodeLabel {\n color: ${t.noteTextColor};\n}\n.statediagram .edgeLabel {\n color: red; // ${t.noteTextColor};\n}\n\n#dependencyStart, #dependencyEnd {\n fill: ${t.lineColor};\n stroke: ${t.lineColor};\n stroke-width: 1;\n}\n\n.statediagramTitleText {\n text-anchor: middle;\n font-size: 18px;\n fill: ${t.textColor};\n}\n`,"getStyles");exports.StateDB=tt,exports.stateDiagram_default=r,exports.stateRenderer_v3_unified_default=w,exports.styles_default=et;
2
- //# sourceMappingURL=chunk-DI55MBZ5-e__JA50C.cjs.map
1
+ "use strict";var t;const e=require("./chunk-55IACEB6-Du1XS8Uq.cjs"),s=require("./chunk-QN33PNHL-CkT5TAcW.cjs"),i=require("./index-D7xz2-Uy.cjs");var n=function(){var t=i.__name(function(t,e,s,i){for(s=s||{},i=t.length;i--;s[t[i]]=e);return s},"o"),e=[1,2],s=[1,3],n=[1,4],r=[2,4],o=[1,9],a=[1,11],l=[1,16],c=[1,17],h=[1,18],d=[1,19],u=[1,33],p=[1,20],y=[1,21],g=[1,22],m=[1,23],f=[1,24],_=[1,26],S=[1,27],T=[1,28],k=[1,29],b=[1,30],E=[1,31],v=[1,32],C=[1,35],D=[1,36],x=[1,37],$=[1,38],A=[1,34],I=[1,4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],L=[1,4,5,14,15,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,39,40,41,45,48,51,52,53,54,57],w=[4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],N={trace:i.__name(function(){},"trace"),yy:{},symbols_:{error:2,start:3,SPACE:4,NL:5,SD:6,document:7,line:8,statement:9,classDefStatement:10,styleStatement:11,cssClassStatement:12,idStatement:13,DESCR:14,"--\x3e":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:29,notePosition:30,NOTE_TEXT:31,direction:32,acc_title:33,acc_title_value:34,acc_descr:35,acc_descr_value:36,acc_descr_multiline_value:37,CLICK:38,STRING:39,HREF:40,classDef:41,CLASSDEF_ID:42,CLASSDEF_STYLEOPTS:43,DEFAULT:44,style:45,STYLE_IDS:46,STYLEDEF_STYLEOPTS:47,class:48,CLASSENTITY_IDS:49,STYLECLASS:50,direction_tb:51,direction_bt:52,direction_rl:53,direction_lr:54,eol:55,";":56,EDGE_STATE:57,STYLE_SEPARATOR:58,left_of:59,right_of:60,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NL",6:"SD",14:"DESCR",15:"--\x3e",16:"HIDE_EMPTY",17:"scale",18:"WIDTH",19:"COMPOSIT_STATE",20:"STRUCT_START",21:"STRUCT_STOP",22:"STATE_DESCR",23:"AS",24:"ID",25:"FORK",26:"JOIN",27:"CHOICE",28:"CONCURRENT",29:"note",31:"NOTE_TEXT",33:"acc_title",34:"acc_title_value",35:"acc_descr",36:"acc_descr_value",37:"acc_descr_multiline_value",38:"CLICK",39:"STRING",40:"HREF",41:"classDef",42:"CLASSDEF_ID",43:"CLASSDEF_STYLEOPTS",44:"DEFAULT",45:"style",46:"STYLE_IDS",47:"STYLEDEF_STYLEOPTS",48:"class",49:"CLASSENTITY_IDS",50:"STYLECLASS",51:"direction_tb",52:"direction_bt",53:"direction_rl",54:"direction_lr",56:";",57:"EDGE_STATE",58:"STYLE_SEPARATOR",59:"left_of",60:"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,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],[9,5],[9,5],[10,3],[10,3],[11,3],[12,3],[32,1],[32,1],[32,1],[32,1],[55,1],[55,1],[13,1],[13,1],[13,3],[13,3],[30,1],[30,1]],performAction:i.__name(function(t,e,s,i,n,r,o){var a=r.length-1;switch(n){case 3:return i.setRootDoc(r[a]),r[a];case 4:this.$=[];break;case 5:"nl"!=r[a]&&(r[a-1].push(r[a]),this.$=r[a-1]);break;case 6:case 7:case 12:this.$=r[a];break;case 8:this.$="nl";break;case 13:const t=r[a-1];t.description=i.trimColon(r[a]),this.$=t;break;case 14:this.$={stmt:"relation",state1:r[a-2],state2:r[a]};break;case 15:const e=i.trimColon(r[a]);this.$={stmt:"relation",state1:r[a-3],state2:r[a-1],description:e};break;case 19:this.$={stmt:"state",id:r[a-3],type:"default",description:"",doc:r[a-1]};break;case 20:var l=r[a],c=r[a-2].trim();if(r[a].match(":")){var h=r[a].split(":");l=h[0],c=[c,h[1]]}this.$={stmt:"state",id:l,type:"default",description:c};break;case 21:this.$={stmt:"state",id:r[a-3],type:"default",description:r[a-5],doc:r[a-1]};break;case 22:this.$={stmt:"state",id:r[a],type:"fork"};break;case 23:this.$={stmt:"state",id:r[a],type:"join"};break;case 24:this.$={stmt:"state",id:r[a],type:"choice"};break;case 25:this.$={stmt:"state",id:i.getDividerId(),type:"divider"};break;case 26:this.$={stmt:"state",id:r[a-1].trim(),note:{position:r[a-2].trim(),text:r[a].trim()}};break;case 29:this.$=r[a].trim(),i.setAccTitle(this.$);break;case 30:case 31:this.$=r[a].trim(),i.setAccDescription(this.$);break;case 32:this.$={stmt:"click",id:r[a-3],url:r[a-2],tooltip:r[a-1]};break;case 33:this.$={stmt:"click",id:r[a-3],url:r[a-1],tooltip:""};break;case 34:case 35:this.$={stmt:"classDef",id:r[a-1].trim(),classes:r[a].trim()};break;case 36:this.$={stmt:"style",id:r[a-1].trim(),styleClass:r[a].trim()};break;case 37:this.$={stmt:"applyClass",id:r[a-1].trim(),styleClass:r[a].trim()};break;case 38:i.setDirection("TB"),this.$={stmt:"dir",value:"TB"};break;case 39:i.setDirection("BT"),this.$={stmt:"dir",value:"BT"};break;case 40:i.setDirection("RL"),this.$={stmt:"dir",value:"RL"};break;case 41:i.setDirection("LR"),this.$={stmt:"dir",value:"LR"};break;case 44:case 45:this.$={stmt:"state",id:r[a].trim(),type:"default",description:""};break;case 46:case 47:this.$={stmt:"state",id:r[a-2].trim(),classes:[r[a].trim()],type:"default",description:""}}},"anonymous"),table:[{3:1,4:e,5:s,6:n},{1:[3]},{3:5,4:e,5:s,6:n},{3:6,4:e,5:s,6:n},t([1,4,5,16,17,19,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],r,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:o,5:a,8:8,9:10,10:12,11:13,12:14,13:15,16:l,17:c,19:h,22:d,24:u,25:p,26:y,27:g,28:m,29:f,32:25,33:_,35:S,37:T,38:k,41:b,45:E,48:v,51:C,52:D,53:x,54:$,57:A},t(I,[2,5]),{9:39,10:12,11:13,12:14,13:15,16:l,17:c,19:h,22:d,24:u,25:p,26:y,27:g,28:m,29:f,32:25,33:_,35:S,37:T,38:k,41:b,45:E,48:v,51:C,52:D,53:x,54:$,57:A},t(I,[2,7]),t(I,[2,8]),t(I,[2,9]),t(I,[2,10]),t(I,[2,11]),t(I,[2,12],{14:[1,40],15:[1,41]}),t(I,[2,16]),{18:[1,42]},t(I,[2,18],{20:[1,43]}),{23:[1,44]},t(I,[2,22]),t(I,[2,23]),t(I,[2,24]),t(I,[2,25]),{30:45,31:[1,46],59:[1,47],60:[1,48]},t(I,[2,28]),{34:[1,49]},{36:[1,50]},t(I,[2,31]),{13:51,24:u,57:A},{42:[1,52],44:[1,53]},{46:[1,54]},{49:[1,55]},t(L,[2,44],{58:[1,56]}),t(L,[2,45],{58:[1,57]}),t(I,[2,38]),t(I,[2,39]),t(I,[2,40]),t(I,[2,41]),t(I,[2,6]),t(I,[2,13]),{13:58,24:u,57:A},t(I,[2,17]),t(w,r,{7:59}),{24:[1,60]},{24:[1,61]},{23:[1,62]},{24:[2,48]},{24:[2,49]},t(I,[2,29]),t(I,[2,30]),{39:[1,63],40:[1,64]},{43:[1,65]},{43:[1,66]},{47:[1,67]},{50:[1,68]},{24:[1,69]},{24:[1,70]},t(I,[2,14],{14:[1,71]}),{4:o,5:a,8:8,9:10,10:12,11:13,12:14,13:15,16:l,17:c,19:h,21:[1,72],22:d,24:u,25:p,26:y,27:g,28:m,29:f,32:25,33:_,35:S,37:T,38:k,41:b,45:E,48:v,51:C,52:D,53:x,54:$,57:A},t(I,[2,20],{20:[1,73]}),{31:[1,74]},{24:[1,75]},{39:[1,76]},{39:[1,77]},t(I,[2,34]),t(I,[2,35]),t(I,[2,36]),t(I,[2,37]),t(L,[2,46]),t(L,[2,47]),t(I,[2,15]),t(I,[2,19]),t(w,r,{7:78}),t(I,[2,26]),t(I,[2,27]),{5:[1,79]},{5:[1,80]},{4:o,5:a,8:8,9:10,10:12,11:13,12:14,13:15,16:l,17:c,19:h,21:[1,81],22:d,24:u,25:p,26:y,27:g,28:m,29:f,32:25,33:_,35:S,37:T,38:k,41:b,45:E,48:v,51:C,52:D,53:x,54:$,57:A},t(I,[2,32]),t(I,[2,33]),t(I,[2,21])],defaultActions:{5:[2,1],6:[2,2],47:[2,48],48:[2,49]},parseError:i.__name(function(t,e){if(!e.recoverable){var s=new Error(t);throw s.hash=e,s}this.trace(t)},"parseError"),parse:i.__name(function(t){var e=this,s=[0],n=[],r=[null],o=[],a=this.table,l="",c=0,h=0,d=o.slice.call(arguments,1),u=Object.create(this.lexer),p={yy:{}};for(var y in this.yy)Object.prototype.hasOwnProperty.call(this.yy,y)&&(p.yy[y]=this.yy[y]);u.setInput(t,p.yy),p.yy.lexer=u,p.yy.parser=this,void 0===u.yylloc&&(u.yylloc={});var g=u.yylloc;o.push(g);var m=u.options&&u.options.ranges;function f(){var t;return"number"!=typeof(t=n.pop()||u.lex()||1)&&(t instanceof Array&&(t=(n=t).pop()),t=e.symbols_[t]||t),t}"function"==typeof p.yy.parseError?this.parseError=p.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError,i.__name(function(t){s.length=s.length-2*t,r.length=r.length-t,o.length=o.length-t},"popStack"),i.__name(f,"lex");for(var _,S,T,k,b,E,v,C,D={};;){if(S=s[s.length-1],this.defaultActions[S]?T=this.defaultActions[S]:(null==_&&(_=f()),T=a[S]&&a[S][_]),void 0===T||!T.length||!T[0]){var x="";for(b in C=[],a[S])this.terminals_[b]&&b>2&&C.push("'"+this.terminals_[b]+"'");x=u.showPosition?"Parse error on line "+(c+1)+":\n"+u.showPosition()+"\nExpecting "+C.join(", ")+", got '"+(this.terminals_[_]||_)+"'":"Parse error on line "+(c+1)+": Unexpected "+(1==_?"end of input":"'"+(this.terminals_[_]||_)+"'"),this.parseError(x,{text:u.match,token:this.terminals_[_]||_,line:u.yylineno,loc:g,expected:C})}if(T[0]instanceof Array&&T.length>1)throw new Error("Parse Error: multiple actions possible at state: "+S+", token: "+_);switch(T[0]){case 1:s.push(_),r.push(u.yytext),o.push(u.yylloc),s.push(T[1]),_=null,h=u.yyleng,l=u.yytext,c=u.yylineno,g=u.yylloc;break;case 2:if(E=this.productions_[T[1]][1],D.$=r[r.length-E],D._$={first_line:o[o.length-(E||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(E||1)].first_column,last_column:o[o.length-1].last_column},m&&(D._$.range=[o[o.length-(E||1)].range[0],o[o.length-1].range[1]]),void 0!==(k=this.performAction.apply(D,[l,h,c,p.yy,T[1],r,o].concat(d))))return k;E&&(s=s.slice(0,-1*E*2),r=r.slice(0,-1*E),o=o.slice(0,-1*E)),s.push(this.productions_[T[1]][0]),r.push(D.$),o.push(D._$),v=a[s[s.length-2]][s[s.length-1]],s.push(v);break;case 3:return!0}}return!0},"parse")},O=function(){return{EOF:1,parseError:i.__name(function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},"parseError"),setInput:i.__name(function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:i.__name(function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},"input"),unput:i.__name(function(t){var e=t.length,s=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var i=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),s.length-1&&(this.yylineno-=s.length-1);var n=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:s?(s.length===i.length?this.yylloc.first_column:0)+i[i.length-s.length].length-s[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[n[0],n[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},"unput"),more:i.__name(function(){return this._more=!0,this},"more"),reject:i.__name(function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},"reject"),less:i.__name(function(t){this.unput(this.match.slice(t))},"less"),pastInput:i.__name(function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:i.__name(function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:i.__name(function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},"showPosition"),test_match:i.__name(function(t,e){var s,i,n;if(this.options.backtrack_lexer&&(n={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&&(n.yylloc.range=this.yylloc.range.slice(0))),(i=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=i.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:i?i[i.length-1].length-i[i.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],s=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),s)return s;if(this._backtrack){for(var r in n)this[r]=n[r];return!1}return!1},"test_match"),next:i.__name(function(){if(this.done)return this.EOF;var t,e,s,i;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var n=this._currentRules(),r=0;r<n.length;r++)if((s=this._input.match(this.rules[n[r]]))&&(!e||s[0].length>e[0].length)){if(e=s,i=r,this.options.backtrack_lexer){if(!1!==(t=this.test_match(s,n[r])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,n[i]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:i.__name(function(){var t=this.next();return t||this.lex()},"lex"),begin:i.__name(function(t){this.conditionStack.push(t)},"begin"),popState:i.__name(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:i.__name(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:i.__name(function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},"topState"),pushState:i.__name(function(t){this.begin(t)},"pushState"),stateStackSize:i.__name(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:i.__name(function(t,e,s,i){switch(s){case 0:return 38;case 1:return 40;case 2:return 39;case 3:return 44;case 4:case 45:return 51;case 5:case 46:return 52;case 6:case 47:return 53;case 7:case 48:return 54;case 8:case 9:case 11:case 12:case 13:case 14:case 57:case 59:case 65:break;case 10:case 80:return 5;case 15:case 35:return this.pushState("SCALE"),17;case 16:case 36:return 18;case 17:case 23:case 37:case 52:case 55:this.popState();break;case 18:return this.begin("acc_title"),33;case 19:return this.popState(),"acc_title_value";case 20:return this.begin("acc_descr"),35;case 21:return this.popState(),"acc_descr_value";case 22:this.begin("acc_descr_multiline");break;case 24:return"acc_descr_multiline_value";case 25:return this.pushState("CLASSDEF"),41;case 26:return this.popState(),this.pushState("CLASSDEFID"),"DEFAULT_CLASSDEF_ID";case 27:return this.popState(),this.pushState("CLASSDEFID"),42;case 28:return this.popState(),43;case 29:return this.pushState("CLASS"),48;case 30:return this.popState(),this.pushState("CLASS_STYLE"),49;case 31:return this.popState(),50;case 32:return this.pushState("STYLE"),45;case 33:return this.popState(),this.pushState("STYLEDEF_STYLES"),46;case 34:return this.popState(),47;case 38:this.pushState("STATE");break;case 39:case 42:return this.popState(),e.yytext=e.yytext.slice(0,-8).trim(),25;case 40:case 43:return this.popState(),e.yytext=e.yytext.slice(0,-8).trim(),26;case 41:case 44:return this.popState(),e.yytext=e.yytext.slice(0,-10).trim(),27;case 49:this.pushState("STATE_STRING");break;case 50:return this.pushState("STATE_ID"),"AS";case 51:case 67:return this.popState(),"ID";case 53:return"STATE_DESCR";case 54:return 19;case 56:return this.popState(),this.pushState("struct"),20;case 58:return this.popState(),21;case 60:return this.begin("NOTE"),29;case 61:return this.popState(),this.pushState("NOTE_ID"),59;case 62:return this.popState(),this.pushState("NOTE_ID"),60;case 63:this.popState(),this.pushState("FLOATING_NOTE");break;case 64:return this.popState(),this.pushState("FLOATING_NOTE_ID"),"AS";case 66:return"NOTE_TEXT";case 68:return this.popState(),this.pushState("NOTE_TEXT"),24;case 69:return this.popState(),e.yytext=e.yytext.substr(2).trim(),31;case 70:return this.popState(),e.yytext=e.yytext.slice(0,-8).trim(),31;case 71:case 72:return 6;case 73:return 16;case 74:return 57;case 75:return 24;case 76:return e.yytext=e.yytext.trim(),14;case 77:return 15;case 78:return 28;case 79:return 58;case 81:return"INVALID"}},"anonymous"),rules:[/^(?:click\b)/i,/^(?:href\b)/i,/^(?:"[^"]*")/i,/^(?: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,/^(?:style\s+)/i,/^(?:[\w,]+\s+)/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:[12,13],inclusive:!1},struct:{rules:[12,13,25,29,32,38,45,46,47,48,57,58,59,60,74,75,76,77,78],inclusive:!1},FLOATING_NOTE_ID:{rules:[67],inclusive:!1},FLOATING_NOTE:{rules:[64,65,66],inclusive:!1},NOTE_TEXT:{rules:[69,70],inclusive:!1},NOTE_ID:{rules:[68],inclusive:!1},NOTE:{rules:[61,62,63],inclusive:!1},STYLEDEF_STYLEOPTS:{rules:[],inclusive:!1},STYLEDEF_STYLES:{rules:[34],inclusive:!1},STYLE_IDS:{rules:[],inclusive:!1},STYLE:{rules:[33],inclusive:!1},CLASS_STYLE:{rules:[31],inclusive:!1},CLASS:{rules:[30],inclusive:!1},CLASSDEFID:{rules:[28],inclusive:!1},CLASSDEF:{rules:[26,27],inclusive:!1},acc_descr_multiline:{rules:[23,24],inclusive:!1},acc_descr:{rules:[21],inclusive:!1},acc_title:{rules:[19],inclusive:!1},SCALE:{rules:[16,17,36,37],inclusive:!1},ALIAS:{rules:[],inclusive:!1},STATE_ID:{rules:[51],inclusive:!1},STATE_STRING:{rules:[52,53],inclusive:!1},FORK_STATE:{rules:[],inclusive:!1},STATE:{rules:[12,13,39,40,41,42,43,44,49,50,54,55,56],inclusive:!1},ID:{rules:[12,13],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,10,11,13,14,15,18,20,22,25,29,32,35,38,56,60,71,72,73,74,75,76,77,79,80,81],inclusive:!0}}}}();function R(){this.yy={}}return N.lexer=O,i.__name(R,"Parser"),R.prototype=N,N.Parser=R,new R}();n.parser=n;var r=n,o="state",a="root",l="relation",c="default",h="divider",d="fill:none",u="fill: #333",p="text",y="normal",g="rect",m="rectWithTitle",f="divider",_="roundedWithTitle",S="statediagram",T=`${S}-state`,k="transition",b=`${k} note-edge`,E=`${S}-note`,v=`${S}-cluster`,C=`${S}-cluster-alt`,D="parent",x="note",$="----",A=`${$}${x}`,I=`${$}${D}`,L=i.__name((t,e="TB")=>{if(!t.doc)return e;let s=e;for(const i of t.doc)"dir"===i.stmt&&(s=i.value);return s},"getDir"),w={getClasses:i.__name(function(t,e){return e.db.getClasses()},"getClasses"),draw:i.__name(async function(t,n,r,o){i.log.info("REF0:"),i.log.info("Drawing state diagram (v2)",n);const{securityLevel:a,state:l,layout:c}=i.getConfig2();o.db.extract(o.db.getRootDocV2());const h=o.db.getData(),d=e.getDiagramElement(n,a);h.type=o.type,h.layoutAlgorithm=c,h.nodeSpacing=(null==l?void 0:l.nodeSpacing)||50,h.rankSpacing=(null==l?void 0:l.rankSpacing)||50,h.markers=["barb"],h.diagramId=n,await i.render(h,d);try{("function"==typeof o.db.getLinks?o.db.getLinks():new Map).forEach((t,e)=>{var s;const n="string"==typeof e?e:"string"==typeof(null==e?void 0:e.id)?e.id:"";if(!n)return void i.log.warn("⚠️ Invalid or missing stateId from key:",JSON.stringify(e));const r=null==(s=d.node())?void 0:s.querySelectorAll("g");let o;if(null==r||r.forEach(t=>{var e;(null==(e=t.textContent)?void 0:e.trim())===n&&(o=t)}),!o)return void i.log.warn("⚠️ Could not find node matching text:",n);const a=o.parentNode;if(!a)return void i.log.warn("⚠️ Node has no parent, cannot wrap:",n);const l=document.createElementNS("http://www.w3.org/2000/svg","a"),c=t.url.replace(/^"+|"+$/g,"");if(l.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",c),l.setAttribute("target","_blank"),t.tooltip){const e=t.tooltip.replace(/^"+|"+$/g,"");l.setAttribute("title",e)}a.replaceChild(l,o),l.appendChild(o),i.log.info("🔗 Wrapped node in <a> tag for:",n,t.url)})}catch(u){i.log.error("❌ Error injecting clickable links:",u)}i.utils_default.insertTitle(d,"statediagramTitleText",(null==l?void 0:l.titleTopMargin)??25,o.db.getDiagramTitle()),s.setupViewPortForSVG(d,8,S,(null==l?void 0:l.useMaxWidth)??!0)},"draw"),getDir:L},N=new Map,O=0;function R(t="",e=0,s="",i=$){return`state-${t}${null!==s&&s.length>0?`${i}${s}`:""}-${e}`}i.__name(R,"stateDomId");var B=i.__name((t,e,s,n,r,a,h,g)=>{i.log.trace("items",e),e.forEach(e=>{switch(e.stmt){case o:case c:j(t,e,s,n,r,a,h,g);break;case l:{j(t,e.state1,s,n,r,a,h,g),j(t,e.state2,s,n,r,a,h,g);const o={id:"edge"+O,start:e.state1.id,end:e.state2.id,arrowhead:"normal",arrowTypeEnd:"arrow_barb",style:d,labelStyle:"",label:i.common_default.sanitizeText(e.description??"",i.getConfig2()),arrowheadStyle:u,labelpos:"c",labelType:p,thickness:y,classes:k,look:h};r.push(o),O++}}})},"setupDoc"),F=i.__name((t,e="TB")=>{let s=e;if(t.doc)for(const i of t.doc)"dir"===i.stmt&&(s=i.value);return s},"getDir");function P(t,e,s){if(!e.id||"</join></fork>"===e.id||"</choice>"===e.id)return;e.cssClasses&&(Array.isArray(e.cssCompiledStyles)||(e.cssCompiledStyles=[]),e.cssClasses.split(" ").forEach(t=>{const i=s.get(t);i&&(e.cssCompiledStyles=[...e.cssCompiledStyles??[],...i.styles])}));const i=t.find(t=>t.id===e.id);i?Object.assign(i,e):t.push(e)}function Y(t){var e;return(null==(e=null==t?void 0:t.classes)?void 0:e.join(" "))??""}function G(t){return(null==t?void 0:t.styles)??[]}i.__name(P,"insertOrUpdateNode"),i.__name(Y,"getClassesFromDbInfo"),i.__name(G,"getStylesFromDbInfo");var j=i.__name((t,e,s,n,r,o,a,l)=>{var S,k,$;const L=e.id,w=s.get(L),j=Y(w),z=G(w),M=i.getConfig2();if(i.log.info("dataFetcher parsedItem",e,w,z),"root"!==L){let s=g;!0===e.start?s="stateStart":!1===e.start&&(s="stateEnd"),e.type!==c&&(s=e.type),N.get(L)||N.set(L,{id:L,shape:s,description:i.common_default.sanitizeText(L,M),cssClasses:`${j} ${T}`,cssStyles:z});const w=N.get(L);e.description&&(Array.isArray(w.description)?(w.shape=m,w.description.push(e.description)):(null==(S=w.description)?void 0:S.length)&&w.description.length>0?(w.shape=m,w.description===L?w.description=[e.description]:w.description=[w.description,e.description]):(w.shape=g,w.description=e.description),w.description=i.common_default.sanitizeTextOrArray(w.description,M)),1===(null==(k=w.description)?void 0:k.length)&&w.shape===m&&("group"===w.type?w.shape=_:w.shape=g),!w.type&&e.doc&&(i.log.info("Setting cluster for XCX",L,F(e)),w.type="group",w.isGroup=!0,w.dir=F(e),w.shape=e.type===h?f:_,w.cssClasses=`${w.cssClasses} ${v} ${o?C:""}`);const B={labelStyle:"",shape:w.shape,label:w.description,cssClasses:w.cssClasses,cssCompiledStyles:[],cssStyles:w.cssStyles,id:L,dir:w.dir,domId:R(L,O),type:w.type,isGroup:"group"===w.type,padding:8,rx:10,ry:10,look:a};if(B.shape===f&&(B.label=""),t&&"root"!==t.id&&(i.log.trace("Setting node ",L," to be child of its parent ",t.id),B.parentId=t.id),B.centerLabel=!0,e.note){const t={labelStyle:"",shape:"note",label:e.note.text,cssClasses:E,cssStyles:[],cssCompiledStyles:[],id:L+A+"-"+O,domId:R(L,O,x),type:w.type,isGroup:"group"===w.type,padding:null==($=M.flowchart)?void 0:$.padding,look:a,position:e.note.position},s=L+I,i={labelStyle:"",shape:"noteGroup",label:e.note.text,cssClasses:w.cssClasses,cssStyles:[],id:L+I,domId:R(L,O,D),type:"group",isGroup:!0,padding:16,look:a,position:e.note.position};O++,i.id=s,t.parentId=s,P(n,i,l),P(n,t,l),P(n,B,l);let o=L,c=t.id;"left of"===e.note.position&&(o=t.id,c=L),r.push({id:o+"-"+c,start:o,end:c,arrowhead:"none",arrowTypeEnd:"",style:d,labelStyle:"",classes:b,arrowheadStyle:u,labelpos:"c",labelType:p,thickness:y,look:a})}else P(n,B,l)}e.doc&&(i.log.trace("Adding nodes children "),B(e,e.doc,s,n,r,!o,a,l))},"dataFetcher"),z=i.__name(()=>{N.clear(),O=0},"reset"),M="[*]",U="start",H="[*]",W="end",X="color",V="fill",J="bgFill",K=",",q=i.__name(()=>new Map,"newClassesList"),Q=i.__name(()=>({relations:[],states:new Map,documents:{}}),"newDoc"),Z=i.__name(t=>JSON.parse(JSON.stringify(t)),"clone"),tt=(t=class{constructor(t){this.version=t,this.nodes=[],this.edges=[],this.rootDoc=[],this.classes=q(),this.documents={root:Q()},this.currentDocument=this.documents.root,this.startEndCount=0,this.dividerCnt=0,this.links=new Map,this.getAccTitle=i.getAccTitle,this.setAccTitle=i.setAccTitle,this.getAccDescription=i.getAccDescription,this.setAccDescription=i.setAccDescription,this.setDiagramTitle=i.setDiagramTitle,this.getDiagramTitle=i.getDiagramTitle,this.clear(),this.setRootDoc=this.setRootDoc.bind(this),this.getDividerId=this.getDividerId.bind(this),this.setDirection=this.setDirection.bind(this),this.trimColon=this.trimColon.bind(this)}extract(t){this.clear(!0);for(const i of Array.isArray(t)?t:t.doc)switch(i.stmt){case o:this.addState(i.id.trim(),i.type,i.doc,i.description,i.note);break;case l:this.addRelation(i.state1,i.state2,i.description);break;case"classDef":this.addStyleClass(i.id.trim(),i.classes);break;case"style":this.handleStyleDef(i);break;case"applyClass":this.setCssClass(i.id.trim(),i.styleClass);break;case"click":this.addLink(i.id,i.url,i.tooltip)}const e=this.getStates(),s=i.getConfig2();z(),j(void 0,this.getRootDocV2(),e,this.nodes,this.edges,!0,s.look,this.classes);for(const i of this.nodes)if(Array.isArray(i.label)){if(i.description=i.label.slice(1),i.isGroup&&i.description.length>0)throw new Error(`Group nodes can only have label. Remove the additional description for node [${i.id}]`);i.label=i.label[0]}}handleStyleDef(t){const e=t.id.trim().split(","),s=t.styleClass.split(",");for(const i of e){let t=this.getState(i);if(!t){const e=i.trim();this.addState(e),t=this.getState(e)}t&&(t.styles=s.map(t=>{var e;return null==(e=t.replace(/;/g,""))?void 0:e.trim()}))}}setRootDoc(t){i.log.info("Setting root doc",t),this.rootDoc=t,1===this.version?this.extract(t):this.extract(this.getRootDocV2())}docTranslator(t,e,s){if(e.stmt===l)return this.docTranslator(t,e.state1,!0),void this.docTranslator(t,e.state2,!1);if(e.stmt===o&&(e.id===M?(e.id=t.id+(s?"_start":"_end"),e.start=s):e.id=e.id.trim()),e.stmt!==a&&e.stmt!==o||!e.doc)return;const n=[];let r=[];for(const i of e.doc)if(i.type===h){const t=Z(i);t.doc=Z(r),n.push(t),r=[]}else r.push(i);if(n.length>0&&r.length>0){const t={stmt:o,id:i.generateId(),type:"divider",doc:Z(r)};n.push(Z(t)),e.doc=n}e.doc.forEach(t=>this.docTranslator(e,t,!0))}getRootDocV2(){return this.docTranslator({id:a,stmt:a},{id:a,stmt:a,doc:this.rootDoc},!0),{id:a,doc:this.rootDoc}}addState(t,e=c,s=void 0,n=void 0,r=void 0,a=void 0,l=void 0,h=void 0){const d=null==t?void 0:t.trim();if(this.currentDocument.states.has(d)){const t=this.currentDocument.states.get(d);if(!t)throw new Error(`State not found: ${d}`);t.doc||(t.doc=s),t.type||(t.type=e)}else i.log.info("Adding state ",d,n),this.currentDocument.states.set(d,{stmt:o,id:d,descriptions:[],type:e,doc:s,note:r,classes:[],styles:[],textStyles:[]});if(n){i.log.info("Setting state description",d,n);(Array.isArray(n)?n:[n]).forEach(t=>this.addDescription(d,t.trim()))}if(r){const t=this.currentDocument.states.get(d);if(!t)throw new Error(`State not found: ${d}`);t.note=r,t.note.text=i.common_default.sanitizeText(t.note.text,i.getConfig2())}if(a){i.log.info("Setting state classes",d,a);(Array.isArray(a)?a:[a]).forEach(t=>this.setCssClass(d,t.trim()))}if(l){i.log.info("Setting state styles",d,l);(Array.isArray(l)?l:[l]).forEach(t=>this.setStyle(d,t.trim()))}if(h){i.log.info("Setting state styles",d,l);(Array.isArray(h)?h:[h]).forEach(t=>this.setTextStyle(d,t.trim()))}}clear(t){this.nodes=[],this.edges=[],this.documents={root:Q()},this.currentDocument=this.documents.root,this.startEndCount=0,this.classes=q(),t||(this.links=new Map,i.clear())}getState(t){return this.currentDocument.states.get(t)}getStates(){return this.currentDocument.states}logDocuments(){i.log.info("Documents = ",this.documents)}getRelations(){return this.currentDocument.relations}addLink(t,e,s){this.links.set(t,{url:e,tooltip:s}),i.log.warn("Adding link",t,e,s)}getLinks(){return this.links}startIdIfNeeded(t=""){return t===M?(this.startEndCount++,`${U}${this.startEndCount}`):t}startTypeIfNeeded(t="",e=c){return t===M?U:e}endIdIfNeeded(t=""){return t===H?(this.startEndCount++,`${W}${this.startEndCount}`):t}endTypeIfNeeded(t="",e=c){return t===H?W:e}addRelationObjs(t,e,s=""){const n=this.startIdIfNeeded(t.id.trim()),r=this.startTypeIfNeeded(t.id.trim(),t.type),o=this.startIdIfNeeded(e.id.trim()),a=this.startTypeIfNeeded(e.id.trim(),e.type);this.addState(n,r,t.doc,t.description,t.note,t.classes,t.styles,t.textStyles),this.addState(o,a,e.doc,e.description,e.note,e.classes,e.styles,e.textStyles),this.currentDocument.relations.push({id1:n,id2:o,relationTitle:i.common_default.sanitizeText(s,i.getConfig2())})}addRelation(t,e,s){if("object"==typeof t&&"object"==typeof e)this.addRelationObjs(t,e,s);else if("string"==typeof t&&"string"==typeof e){const n=this.startIdIfNeeded(t.trim()),r=this.startTypeIfNeeded(t),o=this.endIdIfNeeded(e.trim()),a=this.endTypeIfNeeded(e);this.addState(n,r),this.addState(o,a),this.currentDocument.relations.push({id1:n,id2:o,relationTitle:s?i.common_default.sanitizeText(s,i.getConfig2()):void 0})}}addDescription(t,e){var s;const n=this.currentDocument.states.get(t),r=e.startsWith(":")?e.replace(":","").trim():e;null==(s=null==n?void 0:n.descriptions)||s.push(i.common_default.sanitizeText(r,i.getConfig2()))}cleanupLabel(t){return t.startsWith(":")?t.slice(2).trim():t.trim()}getDividerId(){return this.dividerCnt++,`divider-id-${this.dividerCnt}`}addStyleClass(t,e=""){this.classes.has(t)||this.classes.set(t,{id:t,styles:[],textStyles:[]});const s=this.classes.get(t);e&&s&&e.split(K).forEach(t=>{const e=t.replace(/([^;]*);/,"$1").trim();if(RegExp(X).exec(t)){const t=e.replace(V,J).replace(X,V);s.textStyles.push(t)}s.styles.push(e)})}getClasses(){return this.classes}setCssClass(t,e){t.split(",").forEach(t=>{var s;let i=this.getState(t);if(!i){const e=t.trim();this.addState(e),i=this.getState(e)}null==(s=null==i?void 0:i.classes)||s.push(e)})}setStyle(t,e){var s,i;null==(i=null==(s=this.getState(t))?void 0:s.styles)||i.push(e)}setTextStyle(t,e){var s,i;null==(i=null==(s=this.getState(t))?void 0:s.textStyles)||i.push(e)}getDirectionStatement(){return this.rootDoc.find(t=>"dir"===t.stmt)}getDirection(){var t;return(null==(t=this.getDirectionStatement())?void 0:t.value)??"TB"}setDirection(t){const e=this.getDirectionStatement();e?e.value=t:this.rootDoc.unshift({stmt:"dir",value:t})}trimColon(t){return t.startsWith(":")?t.slice(1).trim():t.trim()}getData(){const t=i.getConfig2();return{nodes:this.nodes,edges:this.edges,other:{},config:t,direction:L(this.getRootDocV2())}}getConfig(){return i.getConfig2().state}},i.__name(t,"StateDB"),t.relationType={AGGREGATION:0,EXTENSION:1,COMPOSITION:2,DEPENDENCY:3},t),et=i.__name(t=>`\ndefs #statediagram-barbEnd {\n fill: ${t.transitionColor};\n stroke: ${t.transitionColor};\n }\ng.stateGroup text {\n fill: ${t.nodeBorder};\n stroke: none;\n font-size: 10px;\n}\ng.stateGroup text {\n fill: ${t.textColor};\n stroke: none;\n font-size: 10px;\n\n}\ng.stateGroup .state-title {\n font-weight: bolder;\n fill: ${t.stateLabelColor};\n}\n\ng.stateGroup rect {\n fill: ${t.mainBkg};\n stroke: ${t.nodeBorder};\n}\n\ng.stateGroup line {\n stroke: ${t.lineColor};\n stroke-width: 1;\n}\n\n.transition {\n stroke: ${t.transitionColor};\n stroke-width: 1;\n fill: none;\n}\n\n.stateGroup .composit {\n fill: ${t.background};\n border-bottom: 1px\n}\n\n.stateGroup .alt-composit {\n fill: #e0e0e0;\n border-bottom: 1px\n}\n\n.state-note {\n stroke: ${t.noteBorderColor};\n fill: ${t.noteBkgColor};\n\n text {\n fill: ${t.noteTextColor};\n stroke: none;\n font-size: 10px;\n }\n}\n\n.stateLabel .box {\n stroke: none;\n stroke-width: 0;\n fill: ${t.mainBkg};\n opacity: 0.5;\n}\n\n.edgeLabel .label rect {\n fill: ${t.labelBackgroundColor};\n opacity: 0.5;\n}\n.edgeLabel {\n background-color: ${t.edgeLabelBackground};\n p {\n background-color: ${t.edgeLabelBackground};\n }\n rect {\n opacity: 0.5;\n background-color: ${t.edgeLabelBackground};\n fill: ${t.edgeLabelBackground};\n }\n text-align: center;\n}\n.edgeLabel .label text {\n fill: ${t.transitionLabelColor||t.tertiaryTextColor};\n}\n.label div .edgeLabel {\n color: ${t.transitionLabelColor||t.tertiaryTextColor};\n}\n\n.stateLabel text {\n fill: ${t.stateLabelColor};\n font-size: 10px;\n font-weight: bold;\n}\n\n.node circle.state-start {\n fill: ${t.specialStateColor};\n stroke: ${t.specialStateColor};\n}\n\n.node .fork-join {\n fill: ${t.specialStateColor};\n stroke: ${t.specialStateColor};\n}\n\n.node circle.state-end {\n fill: ${t.innerEndBackground};\n stroke: ${t.background};\n stroke-width: 1.5\n}\n.end-state-inner {\n fill: ${t.compositeBackground||t.background};\n // stroke: ${t.background};\n stroke-width: 1.5\n}\n\n.node rect {\n fill: ${t.stateBkg||t.mainBkg};\n stroke: ${t.stateBorder||t.nodeBorder};\n stroke-width: 1px;\n}\n.node polygon {\n fill: ${t.mainBkg};\n stroke: ${t.stateBorder||t.nodeBorder};;\n stroke-width: 1px;\n}\n#statediagram-barbEnd {\n fill: ${t.lineColor};\n}\n\n.statediagram-cluster rect {\n fill: ${t.compositeTitleBackground};\n stroke: ${t.stateBorder||t.nodeBorder};\n stroke-width: 1px;\n}\n\n.cluster-label, .nodeLabel {\n color: ${t.stateLabelColor};\n // line-height: 1;\n}\n\n.statediagram-cluster rect.outer {\n rx: 5px;\n ry: 5px;\n}\n.statediagram-state .divider {\n stroke: ${t.stateBorder||t.nodeBorder};\n}\n\n.statediagram-state .title-state {\n rx: 5px;\n ry: 5px;\n}\n.statediagram-cluster.statediagram-cluster .inner {\n fill: ${t.compositeBackground||t.background};\n}\n.statediagram-cluster.statediagram-cluster-alt .inner {\n fill: ${t.altBackground?t.altBackground:"#efefef"};\n}\n\n.statediagram-cluster .inner {\n rx:0;\n ry:0;\n}\n\n.statediagram-state rect.basic {\n rx: 5px;\n ry: 5px;\n}\n.statediagram-state rect.divider {\n stroke-dasharray: 10,10;\n fill: ${t.altBackground?t.altBackground:"#efefef"};\n}\n\n.note-edge {\n stroke-dasharray: 5;\n}\n\n.statediagram-note rect {\n fill: ${t.noteBkgColor};\n stroke: ${t.noteBorderColor};\n stroke-width: 1px;\n rx: 0;\n ry: 0;\n}\n.statediagram-note rect {\n fill: ${t.noteBkgColor};\n stroke: ${t.noteBorderColor};\n stroke-width: 1px;\n rx: 0;\n ry: 0;\n}\n\n.statediagram-note text {\n fill: ${t.noteTextColor};\n}\n\n.statediagram-note .nodeLabel {\n color: ${t.noteTextColor};\n}\n.statediagram .edgeLabel {\n color: red; // ${t.noteTextColor};\n}\n\n#dependencyStart, #dependencyEnd {\n fill: ${t.lineColor};\n stroke: ${t.lineColor};\n stroke-width: 1;\n}\n\n.statediagramTitleText {\n text-anchor: middle;\n font-size: 18px;\n fill: ${t.textColor};\n}\n`,"getStyles");exports.StateDB=tt,exports.stateDiagram_default=r,exports.stateRenderer_v3_unified_default=w,exports.styles_default=et;
2
+ //# sourceMappingURL=chunk-DI55MBZ5-BWCTxXqE.cjs.map
@@ -1,7 +1,7 @@
1
1
  var _a;
2
- import { g as getDiagramElement } from "./chunk-55IACEB6-__yJgpDO.js";
3
- import { s as setupViewPortForSVG } from "./chunk-QN33PNHL-DA_6jplh.js";
4
- import { _ as __name, l as log, c as getConfig2, r as render, u as utils_default, a as getAccTitle, b as setAccTitle, g as getAccDescription, s as setAccDescription, q as setDiagramTitle, t as getDiagramTitle, ab as generateId, k as common_default, z as clear } from "./index-CP55uT1-.js";
2
+ import { g as getDiagramElement } from "./chunk-55IACEB6-CVM8RfF8.js";
3
+ import { s as setupViewPortForSVG } from "./chunk-QN33PNHL-DbaaoJ4j.js";
4
+ import { _ as __name, l as log, c as getConfig2, r as render, u as utils_default, a as getAccTitle, b as setAccTitle, g as getAccDescription, s as setAccDescription, q as setDiagramTitle, t as getDiagramTitle, ab as generateId, k as common_default, z as clear } from "./index-H1wV1Hpq.js";
5
5
  var parser = function() {
6
6
  var o = /* @__PURE__ */ __name(function(k, v, o2, l) {
7
7
  for (o2 = o2 || {}, l = k.length; l--; o2[k[l]] = v) ;
@@ -1925,4 +1925,4 @@ export {
1925
1925
  stateRenderer_v3_unified_default as b,
1926
1926
  styles_default as s
1927
1927
  };
1928
- //# sourceMappingURL=chunk-DI55MBZ5-Bun58OTZ.js.map
1928
+ //# sourceMappingURL=chunk-DI55MBZ5-Dcfk7rkk.js.map
@@ -1,4 +1,4 @@
1
- import { _ as __name } from "./index-CP55uT1-.js";
1
+ import { _ as __name } from "./index-H1wV1Hpq.js";
2
2
  var getIconStyles = /* @__PURE__ */ __name(() => `
3
3
  /* Font Awesome icon styling - consolidated */
4
4
  .label-icon {
@@ -17,4 +17,4 @@ var getIconStyles = /* @__PURE__ */ __name(() => `
17
17
  export {
18
18
  getIconStyles as g
19
19
  };
20
- //# sourceMappingURL=chunk-FMBD7UC4-DulgQOWY.js.map
20
+ //# sourceMappingURL=chunk-FMBD7UC4-B5kmDdIm.js.map
@@ -1,2 +1,2 @@
1
- "use strict";var e=require("./index-DkoeCnje.cjs").__name(()=>"\n /* Font Awesome icon styling - consolidated */\n .label-icon {\n display: inline-block;\n height: 1em;\n overflow: visible;\n vertical-align: -0.125em;\n }\n \n .node .label-icon path {\n fill: currentColor;\n stroke: revert;\n stroke-width: revert;\n }\n","getIconStyles");exports.getIconStyles=e;
2
- //# sourceMappingURL=chunk-FMBD7UC4-Pi8Fs7F6.cjs.map
1
+ "use strict";var e=require("./index-D7xz2-Uy.cjs").__name(()=>"\n /* Font Awesome icon styling - consolidated */\n .label-icon {\n display: inline-block;\n height: 1em;\n overflow: visible;\n vertical-align: -0.125em;\n }\n \n .node .label-icon path {\n fill: currentColor;\n stroke: revert;\n stroke-width: revert;\n }\n","getIconStyles");exports.getIconStyles=e;
2
+ //# sourceMappingURL=chunk-FMBD7UC4-DMErx-lW.cjs.map
@@ -1,2 +1,2 @@
1
- "use strict";const e=require("./index-DkoeCnje.cjs");var t=e.__name((t,n,r,h)=>{t.attr("class",r);const{width:s,height:a,x:d,y:c}=i(t,n);e.configureSvgSize(t,a,s,h);const g=o(d,c,s,a,n);t.attr("viewBox",g),e.log.debug(`viewBox configured: ${g} with padding: ${n}`)},"setupViewPortForSVG"),i=e.__name((e,t)=>{var i;const o=(null==(i=e.node())?void 0:i.getBBox())||{width:0,height:0,x:0,y:0};return{width:o.width+2*t,height:o.height+2*t,x:o.x,y:o.y}},"calculateDimensionsWithPadding"),o=e.__name((e,t,i,o,n)=>`${e-n} ${t-n} ${i} ${o}`,"createViewBox");exports.setupViewPortForSVG=t;
2
- //# sourceMappingURL=chunk-QN33PNHL-DcHwlyDo.cjs.map
1
+ "use strict";const e=require("./index-D7xz2-Uy.cjs");var t=e.__name((t,n,r,h)=>{t.attr("class",r);const{width:s,height:a,x:d,y:c}=i(t,n);e.configureSvgSize(t,a,s,h);const g=o(d,c,s,a,n);t.attr("viewBox",g),e.log.debug(`viewBox configured: ${g} with padding: ${n}`)},"setupViewPortForSVG"),i=e.__name((e,t)=>{var i;const o=(null==(i=e.node())?void 0:i.getBBox())||{width:0,height:0,x:0,y:0};return{width:o.width+2*t,height:o.height+2*t,x:o.x,y:o.y}},"calculateDimensionsWithPadding"),o=e.__name((e,t,i,o,n)=>`${e-n} ${t-n} ${i} ${o}`,"createViewBox");exports.setupViewPortForSVG=t;
2
+ //# sourceMappingURL=chunk-QN33PNHL-CkT5TAcW.cjs.map
@@ -1,4 +1,4 @@
1
- import { _ as __name, e as configureSvgSize, l as log } from "./index-CP55uT1-.js";
1
+ import { _ as __name, e as configureSvgSize, l as log } from "./index-H1wV1Hpq.js";
2
2
  var setupViewPortForSVG = /* @__PURE__ */ __name((svg, padding, cssDiagram, useMaxWidth) => {
3
3
  svg.attr("class", cssDiagram);
4
4
  const { width, height, x, y } = calculateDimensionsWithPadding(svg, padding);
@@ -23,4 +23,4 @@ var createViewBox = /* @__PURE__ */ __name((x, y, width, height, padding) => {
23
23
  export {
24
24
  setupViewPortForSVG as s
25
25
  };
26
- //# sourceMappingURL=chunk-QN33PNHL-DA_6jplh.js.map
26
+ //# sourceMappingURL=chunk-QN33PNHL-DbaaoJ4j.js.map
@@ -1,5 +1,5 @@
1
1
  var _a;
2
- import { _ as __name } from "./index-CP55uT1-.js";
2
+ import { _ as __name } from "./index-H1wV1Hpq.js";
3
3
  var ImperativeState = (_a = class {
4
4
  /**
5
5
  * @param init - Function that creates the default state.
@@ -15,4 +15,4 @@ var ImperativeState = (_a = class {
15
15
  export {
16
16
  ImperativeState as I
17
17
  };
18
- //# sourceMappingURL=chunk-QZHKN3VN-C5x9oEL1.js.map
18
+ //# sourceMappingURL=chunk-QZHKN3VN-BsktB_nO.js.map
@@ -1,2 +1,2 @@
1
- "use strict";var t;const e=require("./index-DkoeCnje.cjs");var i=(t=class{constructor(t){this.init=t,this.records=this.init()}reset(){this.records=this.init()}},e.__name(t,"ImperativeState"),t);exports.ImperativeState=i;
2
- //# sourceMappingURL=chunk-QZHKN3VN-BfGBK4_s.cjs.map
1
+ "use strict";var t;const e=require("./index-D7xz2-Uy.cjs");var i=(t=class{constructor(t){this.init=t,this.records=this.init()}reset(){this.records=this.init()}},e.__name(t,"ImperativeState"),t);exports.ImperativeState=i;
2
+ //# sourceMappingURL=chunk-QZHKN3VN-CMS4Eu2L.cjs.map
@@ -1,4 +1,4 @@
1
- import { _ as __name, n as lineBreakRegex, j as sanitizeUrl_1 } from "./index-CP55uT1-.js";
1
+ import { _ as __name, n as lineBreakRegex, j as sanitizeUrl_1 } from "./index-H1wV1Hpq.js";
2
2
  var drawRect = /* @__PURE__ */ __name((element, rectData) => {
3
3
  const rectElement = element.append("rect");
4
4
  rectElement.attr("x", rectData.x);
@@ -106,4 +106,4 @@ export {
106
106
  drawText as f,
107
107
  getNoteRect as g
108
108
  };
109
- //# sourceMappingURL=chunk-TZMSLE5B-Bj2-6aT8.js.map
109
+ //# sourceMappingURL=chunk-TZMSLE5B-CbhkmL3S.js.map
@@ -1,2 +1,2 @@
1
- "use strict";const t=require("./index-DkoeCnje.cjs");var r=t.__name((t,r)=>{const e=t.append("rect");if(e.attr("x",r.x),e.attr("y",r.y),e.attr("fill",r.fill),e.attr("stroke",r.stroke),e.attr("width",r.width),e.attr("height",r.height),r.name&&e.attr("name",r.name),r.rx&&e.attr("rx",r.rx),r.ry&&e.attr("ry",r.ry),void 0!==r.attrs)for(const a in r.attrs)e.attr(a,r.attrs[a]);return r.class&&e.attr("class",r.class),e},"drawRect"),e=t.__name((t,e)=>{const a={x:e.startx,y:e.starty,width:e.stopx-e.startx,height:e.stopy-e.starty,fill:e.fill,stroke:e.stroke,class:"rect"};r(t,a).lower()},"drawBackgroundRect"),a=t.__name((r,e)=>{const a=e.text.replace(t.lineBreakRegex," "),s=r.append("text");s.attr("x",e.x),s.attr("y",e.y),s.attr("class","legend"),s.style("text-anchor",e.anchor),e.class&&s.attr("class",e.class);const n=s.append("tspan");return n.attr("x",e.x+2*e.textMargin),n.text(a),s},"drawText"),s=t.__name((r,e,a,s)=>{const n=r.append("image");n.attr("x",e),n.attr("y",a);const x=t.sanitizeUrl_1(s);n.attr("xlink:href",x)},"drawImage"),n=t.__name((r,e,a,s)=>{const n=r.append("use");n.attr("x",e),n.attr("y",a);const x=t.sanitizeUrl_1(s);n.attr("xlink:href",`#${x}`)},"drawEmbeddedImage"),x=t.__name(()=>({x:0,y:0,width:100,height:100,fill:"#EDF2AE",stroke:"#666",anchor:"start",rx:0,ry:0}),"getNoteRect"),c=t.__name(()=>({x:0,y:0,width:100,height:100,"text-anchor":"start",style:"#666",textMargin:0,rx:0,ry:0,tspan:!0}),"getTextObj");exports.drawBackgroundRect=e,exports.drawEmbeddedImage=n,exports.drawImage=s,exports.drawRect=r,exports.drawText=a,exports.getNoteRect=x,exports.getTextObj=c;
2
- //# sourceMappingURL=chunk-TZMSLE5B-BCBp8EeB.cjs.map
1
+ "use strict";const t=require("./index-D7xz2-Uy.cjs");var r=t.__name((t,r)=>{const e=t.append("rect");if(e.attr("x",r.x),e.attr("y",r.y),e.attr("fill",r.fill),e.attr("stroke",r.stroke),e.attr("width",r.width),e.attr("height",r.height),r.name&&e.attr("name",r.name),r.rx&&e.attr("rx",r.rx),r.ry&&e.attr("ry",r.ry),void 0!==r.attrs)for(const a in r.attrs)e.attr(a,r.attrs[a]);return r.class&&e.attr("class",r.class),e},"drawRect"),e=t.__name((t,e)=>{const a={x:e.startx,y:e.starty,width:e.stopx-e.startx,height:e.stopy-e.starty,fill:e.fill,stroke:e.stroke,class:"rect"};r(t,a).lower()},"drawBackgroundRect"),a=t.__name((r,e)=>{const a=e.text.replace(t.lineBreakRegex," "),s=r.append("text");s.attr("x",e.x),s.attr("y",e.y),s.attr("class","legend"),s.style("text-anchor",e.anchor),e.class&&s.attr("class",e.class);const n=s.append("tspan");return n.attr("x",e.x+2*e.textMargin),n.text(a),s},"drawText"),s=t.__name((r,e,a,s)=>{const n=r.append("image");n.attr("x",e),n.attr("y",a);const x=t.sanitizeUrl_1(s);n.attr("xlink:href",x)},"drawImage"),n=t.__name((r,e,a,s)=>{const n=r.append("use");n.attr("x",e),n.attr("y",a);const x=t.sanitizeUrl_1(s);n.attr("xlink:href",`#${x}`)},"drawEmbeddedImage"),x=t.__name(()=>({x:0,y:0,width:100,height:100,fill:"#EDF2AE",stroke:"#666",anchor:"start",rx:0,ry:0}),"getNoteRect"),c=t.__name(()=>({x:0,y:0,width:100,height:100,"text-anchor":"start",style:"#666",textMargin:0,rx:0,ry:0,tspan:!0}),"getTextObj");exports.drawBackgroundRect=e,exports.drawEmbeddedImage=n,exports.drawImage=s,exports.drawRect=r,exports.drawText=a,exports.getNoteRect=x,exports.getTextObj=c;
2
+ //# sourceMappingURL=chunk-TZMSLE5B-lGq5Y0nP.cjs.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./chunk-B4BG7PRW-Dbzu88Oo.cjs"),r=require("./index-DkoeCnje.cjs");var s={parser:e.classDiagram_default,get db(){return new e.ClassDB},renderer:e.classRenderer_v3_unified_default,styles:e.styles_default,init:r.__name(e=>{e.class||(e.class={}),e.class.arrowMarkerAbsolute=e.arrowMarkerAbsolute},"init")};exports.diagram=s;
2
- //# sourceMappingURL=classDiagram-2ON5EDUG-BGUaVc1W.cjs.map
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./chunk-B4BG7PRW-DEwHKt7v.cjs"),r=require("./index-D7xz2-Uy.cjs");var s={parser:e.classDiagram_default,get db(){return new e.ClassDB},renderer:e.classRenderer_v3_unified_default,styles:e.styles_default,init:r.__name(e=>{e.class||(e.class={}),e.class.arrowMarkerAbsolute=e.arrowMarkerAbsolute},"init")};exports.diagram=s;
2
+ //# sourceMappingURL=classDiagram-2ON5EDUG-ChI1HQhB.cjs.map
@@ -1,5 +1,5 @@
1
- import { s as styles_default, c as classRenderer_v3_unified_default, a as classDiagram_default, C as ClassDB } from "./chunk-B4BG7PRW-NVucxzRs.js";
2
- import { _ as __name } from "./index-CP55uT1-.js";
1
+ import { s as styles_default, c as classRenderer_v3_unified_default, a as classDiagram_default, C as ClassDB } from "./chunk-B4BG7PRW-CrL0RwBf.js";
2
+ import { _ as __name } from "./index-H1wV1Hpq.js";
3
3
  var diagram = {
4
4
  parser: classDiagram_default,
5
5
  get db() {
@@ -17,4 +17,4 @@ var diagram = {
17
17
  export {
18
18
  diagram
19
19
  };
20
- //# sourceMappingURL=classDiagram-2ON5EDUG-BcR1HP9z.js.map
20
+ //# sourceMappingURL=classDiagram-2ON5EDUG-CtIswLAU.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./chunk-B4BG7PRW-Dbzu88Oo.cjs"),r=require("./index-DkoeCnje.cjs");var s={parser:e.classDiagram_default,get db(){return new e.ClassDB},renderer:e.classRenderer_v3_unified_default,styles:e.styles_default,init:r.__name(e=>{e.class||(e.class={}),e.class.arrowMarkerAbsolute=e.arrowMarkerAbsolute},"init")};exports.diagram=s;
2
- //# sourceMappingURL=classDiagram-v2-WZHVMYZB-BGUaVc1W.cjs.map
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./chunk-B4BG7PRW-DEwHKt7v.cjs"),r=require("./index-D7xz2-Uy.cjs");var s={parser:e.classDiagram_default,get db(){return new e.ClassDB},renderer:e.classRenderer_v3_unified_default,styles:e.styles_default,init:r.__name(e=>{e.class||(e.class={}),e.class.arrowMarkerAbsolute=e.arrowMarkerAbsolute},"init")};exports.diagram=s;
2
+ //# sourceMappingURL=classDiagram-v2-WZHVMYZB-ChI1HQhB.cjs.map
@@ -1,5 +1,5 @@
1
- import { s as styles_default, c as classRenderer_v3_unified_default, a as classDiagram_default, C as ClassDB } from "./chunk-B4BG7PRW-NVucxzRs.js";
2
- import { _ as __name } from "./index-CP55uT1-.js";
1
+ import { s as styles_default, c as classRenderer_v3_unified_default, a as classDiagram_default, C as ClassDB } from "./chunk-B4BG7PRW-CrL0RwBf.js";
2
+ import { _ as __name } from "./index-H1wV1Hpq.js";
3
3
  var diagram = {
4
4
  parser: classDiagram_default,
5
5
  get db() {
@@ -17,4 +17,4 @@ var diagram = {
17
17
  export {
18
18
  diagram
19
19
  };
20
- //# sourceMappingURL=classDiagram-v2-WZHVMYZB-BcR1HP9z.js.map
20
+ //# sourceMappingURL=classDiagram-v2-WZHVMYZB-CtIswLAU.js.map