@juki-team/base-ui 1.5.1 → 1.5.3

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 (126) hide show
  1. package/README.md +17 -7
  2. package/dist/esm/ArrowForwardIcon-D6Jfdilm.js +1 -0
  3. package/dist/esm/{BarChart-D74BtmuY.js → BarChart-D6H2EH3B.js} +1 -1
  4. package/dist/esm/{CartesianChart-CW5O6vne.js → CartesianChart-_EyixekW.js} +1 -1
  5. package/dist/esm/{ChangePasswordModal-BjmZ4w-n.js → ChangePasswordModal-DP68K_jG.js} +1 -1
  6. package/dist/esm/{CodeEditor-DHSwOQl_.js → CodeEditor-CPsmXl7i.js} +1 -1
  7. package/dist/esm/{CodeViewer-BgcqqnsU.js → CodeViewer-DIncRhD1.js} +1 -1
  8. package/dist/esm/{Collapse-CJGjLO29.js → Collapse-Bn9-0z3I.js} +1 -1
  9. package/dist/esm/{DataGrid-B2ZsmTQN.js → DataGrid-CzZsh4gG.js} +1 -1
  10. package/dist/esm/{DataViewer-C7cqe5jJ.js → DataViewer-CSIcp1dE.js} +1 -1
  11. package/dist/esm/{DrawerView-CBLVa95i.js → DrawerView-D-MEVHS0.js} +1 -1
  12. package/dist/esm/{ExcalidrawButton-Gtzt3GBc.js → ExcalidrawButton-CL_vPewV.js} +1 -1
  13. package/dist/esm/{GraphvizViewer-Dyqijdc9.js → GraphvizViewer-BfJg604I.js} +1 -1
  14. package/dist/esm/{ImageLoaderCropper-DhWDuHK1.js → ImageLoaderCropper-BjHykYfo.js} +1 -1
  15. package/dist/esm/{InputCellPhoneNumber-BgKCDHLv.js → InputCellPhoneNumber-CAi0AXMP.js} +1 -1
  16. package/dist/esm/{InputColor-DeeYpvdA.js → InputColor-Ch5Do1U-.js} +1 -1
  17. package/dist/esm/{LineChart-D2VT5Aos.js → LineChart-BL9HlHkG.js} +1 -1
  18. package/dist/esm/{LoaderLayer-D9O7WqFD.js → LoaderLayer-CXFK-kAz.js} +1 -1
  19. package/dist/esm/{MdMath-PFhigRVS.js → MdMath-DwyNLKE_.js} +1 -1
  20. package/dist/esm/{MdMathEditor-CNn23WdZ.js → MdMathEditor-D0f1McYj.js} +1 -1
  21. package/dist/esm/{Popover-kYKitQai.js → Popover-DPn39FUa.js} +1 -1
  22. package/dist/esm/ReplyIcon-Dd5U6wGZ.js +1 -0
  23. package/dist/esm/{SettingsIcon-Dk27Vz1G.js → SettingsIcon-BCDZw0HR.js} +1 -1
  24. package/dist/esm/{SlideDeck-DMd0LgxX.js → SlideDeck-et5M4lE-.js} +1 -1
  25. package/dist/esm/{TableEyeIcon-D74isCSR.js → TableEyeIcon-CDLbQapU.js} +1 -1
  26. package/dist/esm/{TableOfContents-zzI7FQbW.js → TableOfContents-CLrH5fjb.js} +1 -1
  27. package/dist/esm/{Tooltip-B8AobPsl.js → Tooltip-CEgmNtFX.js} +1 -1
  28. package/dist/esm/{UserCodeEditor-CbgpE94F.js → UserCodeEditor-DlHeWLUu.js} +2 -2
  29. package/dist/esm/{VirtualizedRowsFixed-Cau69yw0.js → VirtualizedRowsFixed-8Wk8DRYc.js} +1 -1
  30. package/dist/esm/{WorksheetAsSlides-cYn12ViE.js → WorksheetAsSlides-X5Ljvk2t.js} +1 -1
  31. package/dist/esm/{WorksheetBodies-oAHNxEoL.js → WorksheetBodies-pHyqSVPy.js} +1 -1
  32. package/dist/esm/{WorksheetContents-m3z1cSCO.js → WorksheetContents-ByjM-HNk.js} +1 -1
  33. package/dist/esm/{WorksheetEditor-DL9l5iCM.js → WorksheetEditor-Dq3apeLg.js} +1 -1
  34. package/dist/esm/{WorksheetNode-D6tMtEqC.js → WorksheetNode-Chf37TwI.js} +1 -1
  35. package/dist/esm/{WorksheetViewer-tctJbZIu.js → WorksheetViewer-B-slMCYv.js} +1 -1
  36. package/dist/esm/{architecture-YZFGNWBL-rccIGhXm.js → architecture-YZFGNWBL-B4qRp-MK.js} +1 -1
  37. package/dist/esm/{architectureDiagram-Q4EWVU46-D4BxMEG7.js → architectureDiagram-Q4EWVU46-MfdUMKWh.js} +1 -1
  38. package/dist/esm/{blockDiagram-DXYQGD6D-z0-_xhoI.js → blockDiagram-DXYQGD6D-B53ncWj8.js} +1 -1
  39. package/dist/esm/{c4Diagram-AHTNJAMY-BoabvxgU.js → c4Diagram-AHTNJAMY-FdREycKs.js} +1 -1
  40. package/dist/esm/channel-D_ARZf1V.js +1 -0
  41. package/dist/esm/{chunk-4BX2VUAB-BD59bCvh.js → chunk-4BX2VUAB-Dc1mlsfk.js} +1 -1
  42. package/dist/esm/{chunk-4TB4RGXK-bRIvkE2u.js → chunk-4TB4RGXK-DpY00B8-.js} +1 -1
  43. package/dist/esm/{chunk-55IACEB6-B9SJqSMu.js → chunk-55IACEB6-Csh8qgjO.js} +1 -1
  44. package/dist/esm/{chunk-EDXVE4YY-DO0UVobI.js → chunk-EDXVE4YY-DCPe-NtF.js} +1 -1
  45. package/dist/esm/{chunk-FMBD7UC4-B0l_pK7G.js → chunk-FMBD7UC4-DAo4g5fP.js} +1 -1
  46. package/dist/esm/{chunk-OYMX7WX6-ChpTvaWt.js → chunk-OYMX7WX6-C7RHHgRc.js} +1 -1
  47. package/dist/esm/{chunk-QZHKN3VN-9SrlxM-A.js → chunk-QZHKN3VN-CUifo-Cb.js} +1 -1
  48. package/dist/esm/{chunk-YZCP3GAM-B9nB-mZv.js → chunk-YZCP3GAM-DELqvesl.js} +1 -1
  49. package/dist/esm/classDiagram-6PBFFD2Q-B7_Zpqtq.js +1 -0
  50. package/dist/esm/classDiagram-v2-HSJHXN6E-B7_Zpqtq.js +1 -0
  51. package/dist/esm/clone-DZNciEx8.js +1 -0
  52. package/dist/esm/{commons-B_OozOv-.js → commons-D9Mh1s5L.js} +1 -1
  53. package/dist/esm/constants.js +1 -1
  54. package/dist/esm/{cose-bilkent-S5V4N54A-DOOhcKZn.js → cose-bilkent-S5V4N54A-BOV94ldj.js} +1 -1
  55. package/dist/esm/{dagre-KV5264BT-DNQuzBru.js → dagre-KV5264BT-BfFz9a4k.js} +1 -1
  56. package/dist/esm/{diagram-5BDNPKRD-BuDsbwIH.js → diagram-5BDNPKRD-I9IS2ANw.js} +1 -1
  57. package/dist/esm/{diagram-G4DWMVQ6-Dqe6ehne.js → diagram-G4DWMVQ6-BXU7Dvs-.js} +1 -1
  58. package/dist/esm/{diagram-MMDJMWI5-DutUl44V.js → diagram-MMDJMWI5-Csk96FFg.js} +1 -1
  59. package/dist/esm/{diagram-TYMM5635-Dg8R_BVT.js → diagram-TYMM5635-DPvqrKRl.js} +1 -1
  60. package/dist/esm/{erDiagram-SMLLAGMA-Z9rnwC7z.js → erDiagram-SMLLAGMA-Dc1SOwcN.js} +1 -1
  61. package/dist/esm/{flowDiagram-DWJPFMVM-DlD4QYIw.js → flowDiagram-DWJPFMVM-Ck8eEuPh.js} +1 -1
  62. package/dist/esm/{ganttDiagram-T4ZO3ILL-DCyjcGXR.js → ganttDiagram-T4ZO3ILL-D5DV1RYK.js} +1 -1
  63. package/dist/esm/gitGraph-7Q5UKJZL-AWq1Wmi2.js +1 -0
  64. package/dist/esm/{gitGraphDiagram-UUTBAWPF-CdYpB5kl.js → gitGraphDiagram-UUTBAWPF-BWpwlfSt.js} +1 -1
  65. package/dist/esm/{graph-BuAvWT_r.js → graph-DcE5swO6.js} +1 -1
  66. package/dist/esm/helpers.js +1 -1
  67. package/dist/esm/{index-BoA3EjMr.js → index-33u6FCUW.js} +1 -1
  68. package/dist/esm/{index-DVFv6Eth.js → index-BVw40LAx.js} +1 -1
  69. package/dist/esm/index-TeLD_8PN.js +1 -0
  70. package/dist/esm/{index-CODLgwqm.js → index-o2jBRnrQ.js} +1 -1
  71. package/dist/esm/{index-Cj5SSv5l.js → index-tAJiDyYy.js} +1 -1
  72. package/dist/esm/info-OMHHGYJF-CDJfFYlp.js +1 -0
  73. package/dist/esm/{infoDiagram-42DDH7IO-Ce56qzjb.js → infoDiagram-42DDH7IO-aiwYT7Xb.js} +1 -1
  74. package/dist/esm/{ishikawaDiagram-UXIWVN3A-Cc0AgO_R.js → ishikawaDiagram-UXIWVN3A-adhn2Hxg.js} +1 -1
  75. package/dist/esm/{journeyDiagram-VCZTEJTY-BQAuB_0y.js → journeyDiagram-VCZTEJTY-w8F4Ngn_.js} +1 -1
  76. package/dist/esm/{kanban-definition-6JOO6SKY-CFfdKxrM.js → kanban-definition-6JOO6SKY-BUy-pXA5.js} +1 -1
  77. package/dist/esm/{layout-C9Uq7X58.js → layout-LXPx6gJv.js} +1 -1
  78. package/dist/esm/main.js +1 -1
  79. package/dist/esm/{mermaid-parser.core-B9BVFPAN.js → mermaid-parser.core-_V3e3eig.js} +1 -1
  80. package/dist/esm/{mermaid.core-Ch6a1N6x.js → mermaid.core-C89m9NSM.js} +1 -1
  81. package/dist/esm/{mindmap-definition-QFDTVHPH-BwtZAHVe.js → mindmap-definition-QFDTVHPH-DQor9UlS.js} +1 -1
  82. package/dist/esm/packet-4T2RLAQJ-DGgnF4xi.js +1 -0
  83. package/dist/esm/pie-ZZUOXDRM-jgrNXYlk.js +1 -0
  84. package/dist/esm/{pieDiagram-DEJITSTG-ChBY2XYY.js → pieDiagram-DEJITSTG-CFXV-DSu.js} +1 -1
  85. package/dist/esm/{quadrantDiagram-34T5L4WZ-CRGLfMnt.js → quadrantDiagram-34T5L4WZ-C5PWeOxe.js} +1 -1
  86. package/dist/esm/radar-PYXPWWZC-ZVxMZ3XM.js +1 -0
  87. package/dist/esm/{requirementDiagram-MS252O5E-qmbcV6Kf.js → requirementDiagram-MS252O5E-CAFUQ1SL.js} +1 -1
  88. package/dist/esm/{sankeyDiagram-XADWPNL6-DaL42Ehn.js → sankeyDiagram-XADWPNL6-D63_orrT.js} +1 -1
  89. package/dist/esm/{sequenceDiagram-FGHM5R23-D28F9BbZ.js → sequenceDiagram-FGHM5R23-DjI8jxRK.js} +1 -1
  90. package/dist/esm/server.js +1 -1
  91. package/dist/esm/{settings-BIQ7IqJl.js → settings-BONQQsPx.js} +1 -1
  92. package/dist/esm/settings.js +1 -1
  93. package/dist/esm/{stateDiagram-FHFEXIEX-RgoWlW1V.js → stateDiagram-FHFEXIEX-BeDx2Idm.js} +1 -1
  94. package/dist/esm/stateDiagram-v2-QKLJ7IA2-BSzNVn1D.js +1 -0
  95. package/dist/esm/{timeline-definition-GMOUNBTQ-BcOvpU4t.js → timeline-definition-GMOUNBTQ-BRHpffn4.js} +1 -1
  96. package/dist/esm/treeView-SZITEDCU-CMK4b3Hd.js +1 -0
  97. package/dist/esm/treemap-W4RFUUIX-DjdwA0Jd.js +1 -0
  98. package/dist/esm/{types-DI2OON_b.js → types-CsXckO56.js} +1 -1
  99. package/dist/esm/{vennDiagram-DHZGUBPP-CZrtDTUB.js → vennDiagram-DHZGUBPP-Cauja-PK.js} +1 -1
  100. package/dist/esm/wardley-RL74JXVD-DiOshmTl.js +1 -0
  101. package/dist/esm/{wardleyDiagram-NUSXRM2D-vlFiIB8t.js → wardleyDiagram-NUSXRM2D-CSY5_Vpk.js} +1 -1
  102. package/dist/esm/{websocket-CxbYBjHT.js → websocket-C4G3j9Rm.js} +1 -1
  103. package/dist/esm/{xychartDiagram-5P7HB3ND-DsCQdXVH.js → xychartDiagram-5P7HB3ND-Bkd1VEMW.js} +1 -1
  104. package/dist/module-types/src/components/molecules/TabsInline/TabsInlineButton.d.ts +1 -1
  105. package/dist/module-types/src/components/molecules/TabsInline/TabsInlineButtonLoader.d.ts +1 -1
  106. package/dist/module-types/src/components/molecules/TabsInline/utils.d.ts +3 -0
  107. package/dist/module-types/src/components/templates/UserViewLayout/ProfileSubmissions.d.ts +1 -1
  108. package/dist/module-types/src/components/templates/UserViewLayout/types.d.ts +1 -0
  109. package/package.json +2 -2
  110. package/src/styles/components/atoms/_tabs-inline.scss +12 -0
  111. package/dist/esm/ArrowForwardIcon-B6qJaqxW.js +0 -1
  112. package/dist/esm/ReplyIcon-CPGYEALJ.js +0 -1
  113. package/dist/esm/channel-B33C1-lx.js +0 -1
  114. package/dist/esm/classDiagram-6PBFFD2Q-BsMMZhRG.js +0 -1
  115. package/dist/esm/classDiagram-v2-HSJHXN6E-BsMMZhRG.js +0 -1
  116. package/dist/esm/clone-BDf6Yet-.js +0 -1
  117. package/dist/esm/gitGraph-7Q5UKJZL-B-fw09HA.js +0 -1
  118. package/dist/esm/index-rYUgz1LC.js +0 -1
  119. package/dist/esm/info-OMHHGYJF-fbv9Xw4D.js +0 -1
  120. package/dist/esm/packet-4T2RLAQJ-BGTrXSHu.js +0 -1
  121. package/dist/esm/pie-ZZUOXDRM-Dx3xGYkv.js +0 -1
  122. package/dist/esm/radar-PYXPWWZC-BYId5clz.js +0 -1
  123. package/dist/esm/stateDiagram-v2-QKLJ7IA2-DuyT41He.js +0 -1
  124. package/dist/esm/treeView-SZITEDCU-BjLEV1yZ.js +0 -1
  125. package/dist/esm/treemap-W4RFUUIX-Cuo2Y8dN.js +0 -1
  126. package/dist/esm/wardley-RL74JXVD-d0LkVT8_.js +0 -1
@@ -1 +1 @@
1
- import{g as t}from"./chunk-FMBD7UC4-B0l_pK7G.js";import{c as e}from"./chunk-YZCP3GAM-B9nB-mZv.js";import{g as s}from"./chunk-55IACEB6-B9SJqSMu.js";import{s as i}from"./chunk-EDXVE4YY-DO0UVobI.js";import{_ as n,l as a,c as r,p as u,r as l,u as o,d as c,b as h,a as d,s as p,g as A,q as y,t as g,k as m,z as C,y as b,i as E,S as k}from"./mermaid.core-Ch6a1N6x.js";import{p as f}from"./purify.es-DBOWJxv3.js";var T=function(){var t=n(function(t,e,s,i){for(s=s||{},i=t.length;i--;s[t[i]]=e);return s},"o"),e=[1,18],s=[1,19],i=[1,20],a=[1,41],r=[1,26],u=[1,42],l=[1,24],o=[1,25],c=[1,32],h=[1,33],d=[1,34],p=[1,45],A=[1,35],y=[1,36],g=[1,37],m=[1,38],C=[1,27],b=[1,28],E=[1,29],k=[1,30],f=[1,31],T=[1,44],F=[1,46],D=[1,43],B=[1,47],_=[1,9],S=[1,8,9],$=[1,58],N=[1,59],L=[1,60],x=[1,61],I=[1,62],O=[1,63],v=[1,64],w=[1,8,9,41],R=[1,77],M=[1,8,9,12,13,22,39,41,44,46,68,69,70,71,72,73,74,79,81],P=[1,8,9,12,13,18,20,22,39,41,44,46,47,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,102],j=[1,120],K=[1,116],W=[1,112],X=[1,118],Q=[1,113],q=[1,114],H=[1,115],V=[1,117],J=[1,119],Z=[22,50,60,61,82,86,87,88,89,90],tt=[1,8,9,39,41,44,46],et=[1,8,9,22],st=[1,150],it=[1,8,9,61],nt=[1,8,9,22,50,60,61,82,86,87,88,89,90],at={trace:n(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,ANNOTATION_START:46,ANNOTATION_END:47,CLASS:48,emptyBody:49,SPACE: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:"ANNOTATION_START",47:"ANNOTATION_END",48:"CLASS",50:"SPACE",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],[40,1],[40,2],[40,3],[24,1],[24,3],[24,4],[24,3],[24,6],[24,4],[24,7],[24,6],[43,2],[43,3],[49,0],[49,2],[49,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:n(function(t,e,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 106: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][0],a[u-1][1]);break;case 35:i.addClassesToNamespace(a[u-4],a[u-1][0],a[u-1][1]);break;case 36:this.$=a[u],i.addNamespace(a[u]);break;case 37:this.$=[[a[u]],[]];break;case 38:this.$=[[a[u-1]],[]];break;case 39:a[u][0].unshift(a[u-2]),this.$=a[u];break;case 40:this.$=[[],[a[u]]];break;case 41:this.$=[[],[a[u-1]]];break;case 42:a[u][1].unshift(a[u-2]),this.$=a[u];break;case 44:i.setCssClass(a[u-2],a[u]);break;case 45:i.addMembers(a[u-3],a[u-1]);break;case 47:i.setCssClass(a[u-5],a[u-3]),i.addMembers(a[u-5],a[u-1]);break;case 48:i.addAnnotation(a[u-3],a[u-1]);break;case 49:i.addAnnotation(a[u-6],a[u-4]),i.addMembers(a[u-6],a[u-1]);break;case 50:i.addAnnotation(a[u-5],a[u-3]);break;case 51:this.$=a[u],i.addClass(a[u]);break;case 52:this.$=a[u-1],i.addClass(a[u-1]),i.setClassLabel(a[u-1],a[u]);break;case 56:i.addAnnotation(a[u],a[u-2]);break;case 57:case 70:case 103:this.$=[a[u]];break;case 58:a[u].push(a[u-1]),this.$=a[u];break;case 59:case 61:case 62:break;case 60:i.addMember(a[u-1],i.cleanupLabel(a[u]));break;case 63:this.$={id1:a[u-2],id2:a[u],relation:a[u-1],relationTitle1:"none",relationTitle2:"none"};break;case 64:this.$={id1:a[u-3],id2:a[u],relation:a[u-1],relationTitle1:a[u-2],relationTitle2:"none"};break;case 65:this.$={id1:a[u-3],id2:a[u],relation:a[u-2],relationTitle1:"none",relationTitle2:a[u-1]};break;case 66:this.$={id1:a[u-4],id2:a[u],relation:a[u-2],relationTitle1:a[u-3],relationTitle2:a[u-1]};break;case 67:this.$=i.addNote(a[u],a[u-1]);break;case 68:this.$=i.addNote(a[u]);break;case 69:this.$=a[u-2],i.defineClass(a[u-1],a[u]);break;case 71:this.$=a[u-2].concat([a[u]]);break;case 72:i.setDirection("TB");break;case 73:i.setDirection("BT");break;case 74:i.setDirection("RL");break;case 75:i.setDirection("LR");break;case 76:this.$={type1:a[u-2],type2:a[u],lineType:a[u-1]};break;case 77:this.$={type1:"none",type2:a[u],lineType:a[u-1]};break;case 78:this.$={type1:a[u-1],type2:"none",lineType:a[u]};break;case 79:this.$={type1:"none",type2:"none",lineType:a[u]};break;case 80:this.$=i.relationType.AGGREGATION;break;case 81:this.$=i.relationType.EXTENSION;break;case 82:this.$=i.relationType.COMPOSITION;break;case 83:this.$=i.relationType.DEPENDENCY;break;case 84:this.$=i.relationType.LOLLIPOP;break;case 85:this.$=i.lineType.LINE;break;case 86:this.$=i.lineType.DOTTED_LINE;break;case 87:case 93:this.$=a[u-2],i.setClickEvent(a[u-1],a[u]);break;case 88:case 94:this.$=a[u-3],i.setClickEvent(a[u-2],a[u-1]),i.setTooltip(a[u-2],a[u]);break;case 89:this.$=a[u-2],i.setLink(a[u-1],a[u]);break;case 90:this.$=a[u-3],i.setLink(a[u-2],a[u-1],a[u]);break;case 91:this.$=a[u-3],i.setLink(a[u-2],a[u-1]),i.setTooltip(a[u-2],a[u]);break;case 92:this.$=a[u-4],i.setLink(a[u-3],a[u-2],a[u]),i.setTooltip(a[u-3],a[u-1]);break;case 95:this.$=a[u-3],i.setClickEvent(a[u-2],a[u-1],a[u]);break;case 96:this.$=a[u-4],i.setClickEvent(a[u-3],a[u-2],a[u-1]),i.setTooltip(a[u-3],a[u]);break;case 97:this.$=a[u-3],i.setLink(a[u-2],a[u]);break;case 98:this.$=a[u-4],i.setLink(a[u-3],a[u-1],a[u]);break;case 99:this.$=a[u-4],i.setLink(a[u-3],a[u-1]),i.setTooltip(a[u-3],a[u]);break;case 100:this.$=a[u-5],i.setLink(a[u-4],a[u-2],a[u]),i.setTooltip(a[u-4],a[u-1]);break;case 101:this.$=a[u-2],i.setCssStyle(a[u-1],a[u]);break;case 102:i.setCssClass(a[u-1],a[u]);break;case 104: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:e,35:s,37:i,38:22,42:a,43:23,46:r,48:u,51:l,52:o,54:c,56:h,57:d,60:p,62:A,63:y,64:g,65:m,75:C,76:b,78:E,82:k,83:f,86:T,100:F,102:D,103:B},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,3]},t(_,[2,5],{8:[1,48]}),{8:[1,49]},t(S,[2,19],{22:[1,50]}),t(S,[2,21]),t(S,[2,22]),t(S,[2,23]),t(S,[2,24]),t(S,[2,25]),t(S,[2,26]),t(S,[2,27]),t(S,[2,28]),t(S,[2,29]),t(S,[2,30]),{34:[1,51]},{36:[1,52]},t(S,[2,33]),t(S,[2,59],{53:53,66:56,67:57,13:[1,54],22:[1,55],68:$,69:N,70:L,71:x,72:I,73:O,74:v}),{39:[1,65]},t(w,[2,43],{39:[1,67],44:[1,66],46:[1,68]}),t(S,[2,61]),t(S,[2,62]),{16:69,60:p,86:T,100:F,102:D},{16:39,17:40,19:70,60:p,86:T,100:F,102:D,103:B},{16:39,17:40,19:71,60:p,86:T,100:F,102:D,103:B},{16:39,17:40,19:72,60:p,86:T,100:F,102:D,103:B},{60:[1,73]},{13:[1,74]},{16:39,17:40,19:75,60:p,86:T,100:F,102:D,103:B},{13:R,55:76},{58:78,60:[1,79]},t(S,[2,72]),t(S,[2,73]),t(S,[2,74]),t(S,[2,75]),t(M,[2,13],{16:39,17:40,19:81,18:[1,80],20:[1,82],60:p,86:T,100:F,102:D,103:B}),t(M,[2,15],{20:[1,83]}),{15:84,16:85,17:86,60:p,86:T,100:F,102:D,103:B},{16:39,17:40,19:87,60:p,86:T,100:F,102:D,103:B},t(P,[2,129]),t(P,[2,130]),t(P,[2,131]),t(P,[2,132]),t([1,8,9,12,13,20,22,39,41,44,46,68,69,70,71,72,73,74,79,81],[2,133]),t(_,[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:88,33:e,35:s,37:i,42:a,46:r,48:u,51:l,52:o,54:c,56:h,57:d,60:p,62:A,63:y,64:g,65:m,75:C,76:b,78:E,82:k,83:f,86:T,100:F,102:D,103:B}),{5:89,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:e,35:s,37:i,38:22,42:a,43:23,46:r,48:u,51:l,52:o,54:c,56:h,57:d,60:p,62:A,63:y,64:g,65:m,75:C,76:b,78:E,82:k,83:f,86:T,100:F,102:D,103:B},t(S,[2,20]),t(S,[2,31]),t(S,[2,32]),{13:[1,91],16:39,17:40,19:90,60:p,86:T,100:F,102:D,103:B},{53:92,66:56,67:57,68:$,69:N,70:L,71:x,72:I,73:O,74:v},t(S,[2,60]),{67:93,73:O,74:v},t(G,[2,79],{66:94,68:$,69:N,70:L,71:x,72:I}),t(U,[2,80]),t(U,[2,81]),t(U,[2,82]),t(U,[2,83]),t(U,[2,84]),t(z,[2,85]),t(z,[2,86]),{8:[1,96],24:97,30:98,40:95,43:23,48:u,54:c,56:h},{16:99,60:p,86:T,100:F,102:D},{41:[1,101],45:100,51:Y},{16:103,60:p,86:T,100:F,102:D},{47:[1,104]},{13:[1,105]},{13:[1,106]},{79:[1,107],81:[1,108]},{22:j,50:K,59:109,60:W,82:X,84:110,85:111,86:Q,87:q,88:H,89:V,90:J},{60:[1,121]},{13:R,55:122},t(w,[2,68]),t(w,[2,134]),{22:j,50:K,59:123,60:W,61:[1,124],82:X,84:110,85:111,86:Q,87:q,88:H,89:V,90:J},t(Z,[2,70]),{16:39,17:40,19:125,60:p,86:T,100:F,102:D,103:B},t(M,[2,16]),t(M,[2,17]),t(M,[2,18]),{39:[2,36]},{15:127,16:85,17:86,18:[1,126],39:[2,9],60:p,86:T,100:F,102:D,103:B},{39:[2,10]},t(tt,[2,51],{11:128,12:[1,129]}),t(_,[2,7]),{9:[1,130]},t(et,[2,63]),{16:39,17:40,19:131,60:p,86:T,100:F,102:D,103:B},{13:[1,133],16:39,17:40,19:132,60:p,86:T,100:F,102:D,103:B},t(G,[2,78],{66:134,68:$,69:N,70:L,71:x,72:I}),t(G,[2,77]),{41:[1,135]},{24:97,30:98,40:136,43:23,48:u,54:c,56:h},{8:[1,137],41:[2,37]},{8:[1,138],41:[2,40]},t(w,[2,44],{39:[1,139]}),{41:[1,140]},t(w,[2,46]),{41:[2,57],45:141,51:Y},{47:[1,142]},{16:39,17:40,19:143,60:p,86:T,100:F,102:D,103:B},t(S,[2,87],{13:[1,144]}),t(S,[2,89],{13:[1,146],77:[1,145]}),t(S,[2,93],{13:[1,147],80:[1,148]}),{13:[1,149]},t(S,[2,101],{61:st}),t(it,[2,103],{85:151,22:j,50:K,60:W,82:X,86:Q,87:q,88:H,89:V,90:J}),t(nt,[2,105]),t(nt,[2,107]),t(nt,[2,108]),t(nt,[2,109]),t(nt,[2,110]),t(nt,[2,111]),t(nt,[2,112]),t(nt,[2,113]),t(nt,[2,114]),t(nt,[2,115]),t(S,[2,102]),t(w,[2,67]),t(S,[2,69],{61:st}),{60:[1,152]},t(M,[2,14]),{15:153,16:85,17:86,60:p,86:T,100:F,102:D,103:B},{39:[2,12]},t(tt,[2,52]),{13:[1,154]},{1:[2,4]},t(et,[2,65]),t(et,[2,64]),{16:39,17:40,19:155,60:p,86:T,100:F,102:D,103:B},t(G,[2,76]),t(S,[2,34]),{41:[1,156]},{24:97,30:98,40:157,41:[2,38],43:23,48:u,54:c,56:h},{24:97,30:98,40:158,41:[2,41],43:23,48:u,54:c,56:h},{45:159,51:Y},t(w,[2,45]),{41:[2,58]},t(w,[2,48],{39:[1,160]}),t(S,[2,56]),t(S,[2,88]),t(S,[2,90]),t(S,[2,91],{77:[1,161]}),t(S,[2,94]),t(S,[2,95],{13:[1,162]}),t(S,[2,97],{13:[1,164],77:[1,163]}),{22:j,50:K,60:W,82:X,84:165,85:111,86:Q,87:q,88:H,89:V,90:J},t(nt,[2,106]),t(Z,[2,71]),{39:[2,11]},{14:[1,166]},t(et,[2,66]),t(S,[2,35]),{41:[2,39]},{41:[2,42]},{41:[1,167]},{41:[1,169],45:168,51:Y},t(S,[2,92]),t(S,[2,96]),t(S,[2,98]),t(S,[2,99],{77:[1,170]}),t(it,[2,104],{85:151,22:j,50:K,60:W,82:X,86:Q,87:q,88:H,89:V,90:J}),t(tt,[2,8]),t(w,[2,47]),{41:[1,171]},t(w,[2,50]),t(S,[2,100]),t(w,[2,49])],defaultActions:{2:[2,1],3:[2,2],4:[2,3],84:[2,36],86:[2,10],127:[2,12],130:[2,4],141:[2,58],153:[2,11],157:[2,39],158:[2,42]},parseError:n(function(t,e){if(!e.recoverable){var s=new Error(t);throw s.hash=e,s}this.trace(t)},"parseError"),parse:n(function(t){var e=this,s=[0],i=[],a=[null],r=[],u=this.table,l="",o=0,c=0,h=r.slice.call(arguments,1),d=Object.create(this.lexer),p={yy:{}};for(var A in this.yy)Object.prototype.hasOwnProperty.call(this.yy,A)&&(p.yy[A]=this.yy[A]);d.setInput(t,p.yy),p.yy.lexer=d,p.yy.parser=this,void 0===d.yylloc&&(d.yylloc={});var y=d.yylloc;r.push(y);var g=d.options&&d.options.ranges;function m(){var t;return"number"!=typeof(t=i.pop()||d.lex()||1)&&(t instanceof Array&&(t=(i=t).pop()),t=e.symbols_[t]||t),t}"function"==typeof p.yy.parseError?this.parseError=p.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError,n(function(t){s.length=s.length-2*t,a.length=a.length-t,r.length=r.length-t},"popStack"),n(m,"lex");for(var C,b,E,k,f,T,F,D,B={};;){if(b=s[s.length-1],this.defaultActions[b]?E=this.defaultActions[b]:(null==C&&(C=m()),E=u[b]&&u[b][C]),void 0===E||!E.length||!E[0]){var _="";for(f in D=[],u[b])this.terminals_[f]&&f>2&&D.push("'"+this.terminals_[f]+"'");_=d.showPosition?"Parse error on line "+(o+1)+":\n"+d.showPosition()+"\nExpecting "+D.join(", ")+", got '"+(this.terminals_[C]||C)+"'":"Parse error on line "+(o+1)+": Unexpected "+(1==C?"end of input":"'"+(this.terminals_[C]||C)+"'"),this.parseError(_,{text:d.match,token:this.terminals_[C]||C,line:d.yylineno,loc:y,expected:D})}if(E[0]instanceof Array&&E.length>1)throw new Error("Parse Error: multiple actions possible at state: "+b+", token: "+C);switch(E[0]){case 1:s.push(C),a.push(d.yytext),r.push(d.yylloc),s.push(E[1]),C=null,c=d.yyleng,l=d.yytext,o=d.yylineno,y=d.yylloc;break;case 2:if(T=this.productions_[E[1]][1],B.$=a[a.length-T],B._$={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},g&&(B._$.range=[r[r.length-(T||1)].range[0],r[r.length-1].range[1]]),void 0!==(k=this.performAction.apply(B,[l,c,o,p.yy,E[1],a,r].concat(h))))return k;T&&(s=s.slice(0,-1*T*2),a=a.slice(0,-1*T),r=r.slice(0,-1*T)),s.push(this.productions_[E[1]][0]),a.push(B.$),r.push(B._$),F=u[s[s.length-2]][s[s.length-1]],s.push(F);break;case 3:return!0}}return!0},"parse")},rt=function(){return{EOF:1,parseError:n(function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},"parseError"),setInput:n(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:n(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:n(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:n(function(){return this._more=!0,this},"more"),reject:n(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:n(function(t){this.unput(this.match.slice(t))},"less"),pastInput:n(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:n(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:n(function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},"showPosition"),test_match:n(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 a in n)this[a]=n[a];return!1}return!1},"test_match"),next:n(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(),a=0;a<n.length;a++)if((s=this._input.match(this.rules[n[a]]))&&(!e||s[0].length>e[0].length)){if(e=s,i=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(s,n[a])))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:n(function(){var t=this.next();return t||this.lex()},"lex"),begin:n(function(t){this.conditionStack.push(t)},"begin"),popState:n(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:n(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:n(function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},"topState"),pushState:n(function(t){this.begin(t)},"pushState"),stateStackSize:n(function(){return this.conditionStack.length},"stateStackSize"),options:{},performAction:n(function(t,e,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"),48;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 46;case 56:return 47;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 50;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 ut(){this.yy={}}return at.lexer=rt,n(ut,"Parser"),ut.prototype=at,at.Parser=ut,new ut}();T.parser=T;var F=T,D=["#","+","~","-",""],B=class{static{n(this,"ClassMember")}constructor(t,e){this.memberType=e,this.visibility="",this.classifier="",this.text="";const s=E(t,r());this.parseMember(s)}getDisplayDetails(){let t=this.visibility+k(this.id);"method"===this.memberType&&(t+=`(${k(this.parameters.trim())})`,this.returnType&&(t+=" : "+k(this.returnType))),t=t.trim();return{displayText:t,cssStyle:this.parseClassifier()}}parseMember(t){let e="";if("method"===this.memberType){const s=/([#+~-])?(.+)\((.*)\)([\s$*])?(.*)([$*])?/.exec(t);if(s){const t=s[1]?s[1].trim():"";if(D.includes(t)&&(this.visibility=t),this.id=s[2],this.parameters=s[3]?s[3].trim():"",e=s[4]?s[4].trim():"",this.returnType=s[5]?s[5].trim():"",""===e){const t=this.returnType.substring(this.returnType.length-1);/[$*]/.exec(t)&&(e=t,this.returnType=this.returnType.substring(0,this.returnType.length-1))}}}else{const s=t.length,i=t.substring(0,1),n=t.substring(s-1);D.includes(i)&&(this.visibility=i),/[$*]/.exec(n)&&(e=n),this.id=t.substring(""===this.visibility?0:1,""===e?s:s-1)}this.classifier=e,this.id=this.id.startsWith(" ")?" "+this.id.trim():this.id.trim();const s=`${this.visibility?"\\"+this.visibility:""}${k(this.id)}${"method"===this.memberType?`(${k(this.parameters)})${this.returnType?" : "+k(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""}}},_="classId-",S=0,$=n(t=>m.sanitizeText(t,r()),"sanitizeText"),N=class{constructor(){this.relations=[],this.classes=new Map,this.styleClasses=new Map,this.notes=new Map,this.interfaces=[],this.namespaces=new Map,this.namespaceCounter=0,this.diagramId="",this.functions=[],this.lineType={LINE:0,DOTTED_LINE:1},this.relationType={AGGREGATION:0,EXTENSION:1,COMPOSITION:2,DEPENDENCY:3,LOLLIPOP:4},this.setupToolTips=n(t=>{const s=e();c(t).select("svg").selectAll("g").filter(function(){return null!==c(this).attr("title")}).on("mouseover",t=>{const e=c(t.currentTarget),i=e.attr("title");if(!i)return;const n=t.currentTarget.getBoundingClientRect();s.transition().duration(200).style("opacity",".9"),s.html(f.sanitize(i)).style("left",`${window.scrollX+n.left+n.width/2}px`).style("top",`${window.scrollY+n.bottom+4}px`),e.classed("hover",!0)}).on("mouseout",t=>{s.transition().duration(500).style("opacity",0),c(t.currentTarget).classed("hover",!1)})},"setupToolTips"),this.direction="TB",this.setAccTitle=h,this.getAccTitle=d,this.setAccDescription=p,this.getAccDescription=A,this.setDiagramTitle=y,this.getDiagramTitle=g,this.getConfig=n(()=>r().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)}static{n(this,"ClassDB")}splitClassNameAndType(t){const e=m.sanitizeText(t,r());let s="",i=e;if(e.indexOf("~")>0){const t=e.split("~");i=$(t[0]),s=$(t[1])}return{className:i,type:s}}setClassLabel(t,e){const s=m.sanitizeText(t,r());e&&(e=$(e));const{className:i}=this.splitClassNameAndType(s);this.classes.get(i).label=e,this.classes.get(i).text=`${e}${this.classes.get(i).type?`<${this.classes.get(i).type}>`:""}`}addClass(t){const e=m.sanitizeText(t,r()),{className:s,type:i}=this.splitClassNameAndType(e);if(this.classes.has(s))return;const n=m.sanitizeText(s,r());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:_+n+"-"+S}),S++}addInterface(t,e){const s={id:`interface${this.interfaces.length}`,label:t,classId:e};this.interfaces.push(s)}setDiagramId(t){this.diagramId=t}lookUpDomId(t){const e=m.sanitizeText(t,r());if(this.classes.has(e)){const t=this.classes.get(e).domId;return this.diagramId?`${this.diagramId}-${t}`:t}throw new Error("Class not found: "+e)}clear(){this.relations=[],this.classes=new Map,this.notes=new Map,this.interfaces=[],this.functions=[],this.functions.push(this.setupToolTips.bind(this)),this.namespaces=new Map,this.namespaceCounter=0,this.diagramId="",this.direction="TB",C()}getClass(t){return this.classes.get(t)}getClasses(){return this.classes}getRelations(){return this.relations}getNote(t){const e="number"==typeof t?`note${t}`:t;return this.notes.get(e)}getNotes(){return this.notes}addRelation(t){a.debug("Adding relation: "+JSON.stringify(t));const e=[this.relationType.LOLLIPOP,this.relationType.AGGREGATION,this.relationType.COMPOSITION,this.relationType.DEPENDENCY,this.relationType.EXTENSION];t.relation.type1!==this.relationType.LOLLIPOP||e.includes(t.relation.type2)?t.relation.type2!==this.relationType.LOLLIPOP||e.includes(t.relation.type1)?(this.addClass(t.id1),this.addClass(t.id2)):(this.addClass(t.id1),this.addInterface(t.id2,t.id1),t.id2="interface"+(this.interfaces.length-1)):(this.addClass(t.id2),this.addInterface(t.id1,t.id2),t.id1="interface"+(this.interfaces.length-1)),t.id1=this.splitClassNameAndType(t.id1).className,t.id2=this.splitClassNameAndType(t.id2).className,t.relationTitle1=m.sanitizeText(t.relationTitle1.trim(),r()),t.relationTitle2=m.sanitizeText(t.relationTitle2.trim(),r()),this.relations.push(t)}addAnnotation(t,e){const s=this.splitClassNameAndType(t).className;this.classes.get(s).annotations.push(e)}addMember(t,e){this.addClass(t);const s=this.splitClassNameAndType(t).className,i=this.classes.get(s);if("string"==typeof e){const t=e.trim();t.startsWith("<<")&&t.endsWith(">>")?i.annotations.push($(t.substring(2,t.length-2))):t.indexOf(")")>0?i.methods.push(new B(t,"method")):t&&i.members.push(new B(t,"attribute"))}}addMembers(t,e){Array.isArray(e)&&(e.reverse(),e.forEach(e=>this.addMember(t,e)))}addNote(t,e){const s=this.notes.size,i={id:`note${s}`,class:e,text:t,index:s};return this.notes.set(i.id,i),i.id}cleanupLabel(t){return t.startsWith(":")&&(t=t.substring(1)),$(t.trim())}setCssClass(t,e){t.split(",").forEach(t=>{let s=t;/\d/.exec(t[0])&&(s=_+s);const i=this.classes.get(s);i&&(i.cssClasses+=" "+e)})}defineClass(t,e){for(const s of t){let t=this.styleClasses.get(s);void 0===t&&(t={id:s,styles:[],textStyles:[]},this.styleClasses.set(s,t)),e&&e.forEach(e=>{if(/color/.exec(e)){const s=e.replace("fill","bgFill");t.textStyles.push(s)}t.styles.push(e)}),this.classes.forEach(t=>{t.cssClasses.includes(s)&&t.styles.push(...e.flatMap(t=>t.split(",")))})}}setTooltip(t,e){t.split(",").forEach(t=>{void 0!==e&&(this.classes.get(t).tooltip=$(e))})}getTooltip(t,e){return e&&this.namespaces.has(e)?this.namespaces.get(e).classes.get(t).tooltip:this.classes.get(t).tooltip}setLink(t,e,s){const i=r();t.split(",").forEach(t=>{let n=t;/\d/.exec(t[0])&&(n=_+n);const a=this.classes.get(n);a&&(a.link=o.formatUrl(e,i),"sandbox"===i.securityLevel?a.linkTarget="_top":a.linkTarget="string"==typeof s?$(s):"_blank")}),this.setCssClass(t,"clickable")}setClickEvent(t,e,s){t.split(",").forEach(t=>{this.setClickFunc(t,e,s),this.classes.get(t).haveCallback=!0}),this.setCssClass(t,"clickable")}setClickFunc(t,e,s){const i=m.sanitizeText(t,r());if("loose"!==r().securityLevel)return;if(void 0===e)return;const n=i;if(this.classes.has(n)){let t=[];if("string"==typeof s){t=s.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let e=0;e<t.length;e++){let s=t[e].trim();s.startsWith('"')&&s.endsWith('"')&&(s=s.substr(1,s.length-2)),t[e]=s}}0===t.length&&t.push(n),this.functions.push(()=>{const s=this.lookUpDomId(n),i=document.querySelector(`[id="${s}"]`);null!==i&&i.addEventListener("click",()=>{o.runFunc(e,...t)},!1)})}}bindFunctions(t){this.functions.forEach(e=>{e(t)})}escapeHtml(t){return t.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;")}getDirection(){return this.direction}setDirection(t){this.direction=t}addNamespace(t){this.namespaces.has(t)||(this.namespaces.set(t,{id:t,classes:new Map,notes:new Map,children:new Map,domId:_+t+"-"+this.namespaceCounter}),this.namespaceCounter++)}getNamespace(t){return this.namespaces.get(t)}getNamespaces(){return this.namespaces}addClassesToNamespace(t,e,s){if(this.namespaces.has(t)){for(const s of e){const{className:e}=this.splitClassNameAndType(s),i=this.getClass(e);i.parent=t,this.namespaces.get(t).classes.set(e,i)}for(const e of s){const s=this.getNote(e);s.parent=t,this.namespaces.get(t).notes.set(e,s)}}}setCssStyle(t,e){const s=this.classes.get(t);if(e&&s)for(const t of e)t.includes(",")?s.styles.push(...t.split(",")):s.styles.push(t)}getArrowMarker(t){let e;switch(t){case 0:e="aggregation";break;case 1:e="extension";break;case 2:e="composition";break;case 3:e="dependency";break;case 4:e="lollipop";break;default:e="none"}return e}getData(){const t=[],e=[],s=r();for(const e of this.namespaces.values()){const i={id:e.id,label:e.id,isGroup:!0,padding:s.class.padding??16,shape:"rect",cssStyles:[],look:s.look};t.push(i)}for(const e of this.classes.values()){const i={...e,type:void 0,isGroup:!1,parentId:e.parent,look:s.look};t.push(i)}for(const i of this.notes.values()){const n={id:i.id,label:i.text,isGroup:!1,shape:"note",padding:s.class.padding??6,cssStyles:["text-align: left","white-space: nowrap",`fill: ${s.themeVariables.noteBkgColor}`,`stroke: ${s.themeVariables.noteBorderColor}`],look:s.look,parentId:i.parent,labelType:"markdown"};t.push(n);const a=this.classes.get(i.class)?.id;if(a){const t={id:`edgeNote${i.index}`,start:i.id,end:a,type:"normal",thickness:"normal",classes:"relation",arrowTypeStart:"none",arrowTypeEnd:"none",arrowheadStyle:"",labelStyle:[""],style:["fill: none"],pattern:"dotted",look:s.look};e.push(t)}}for(const e of this.interfaces){const i={id:e.id,label:e.label,isGroup:!1,shape:"rect",cssStyles:["opacity: 0;"],look:s.look};t.push(i)}let i=0;for(const t of this.relations){i++;const n={id:b(t.id1,t.id2,{prefix:"id",counter:i}),start:t.id1,end:t.id2,type:"normal",label:t.title,labelpos:"c",thickness:"normal",classes:"relation",arrowTypeStart:this.getArrowMarker(t.relation.type1),arrowTypeEnd:this.getArrowMarker(t.relation.type2),startLabelRight:"none"===t.relationTitle1?"":t.relationTitle1,endLabelLeft:"none"===t.relationTitle2?"":t.relationTitle2,arrowheadStyle:"",labelStyle:["display: inline-block"],style:t.style||"",pattern:1==t.relation.lineType?"dashed":"solid",look:s.look,labelType:"markdown"};e.push(n)}return{nodes:t,edges:e,other:{},config:s,direction:this.getDirection()}}},L=n(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 .cluster-label text {\n fill: ${e.titleColor};\n }\n .cluster-label span {\n color: ${e.titleColor};\n }\n .cluster-label span p {\n background-color: transparent;\n }\n\n .cluster rect {\n fill: ${e.clusterBkg};\n stroke: ${e.clusterBorder};\n stroke-width: 1px;\n }\n\n .cluster text {\n fill: ${e.titleColor};\n }\n\n .cluster span {\n color: ${e.titleColor};\n }\n\n.nodeLabel, .edgeLabel {\n color: ${e.classText};\n}\n\n.noteLabel .nodeLabel, .noteLabel .edgeLabel {\n color: ${e.noteTextColor};\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: ${e.strokeWidth};\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: ${e.strokeWidth};\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[id$="-compositionStart"], .composition {\n fill: ${e.lineColor} !important;\n stroke: ${e.lineColor} !important;\n stroke-width: 1;\n}\n\n[id$="-compositionEnd"], .composition {\n fill: ${e.lineColor} !important;\n stroke: ${e.lineColor} !important;\n stroke-width: 1;\n}\n\n[id$="-dependencyStart"], .dependency {\n fill: ${e.lineColor} !important;\n stroke: ${e.lineColor} !important;\n stroke-width: 1;\n}\n\n[id$="-dependencyEnd"], .dependency {\n fill: ${e.lineColor} !important;\n stroke: ${e.lineColor} !important;\n stroke-width: 1;\n}\n\n[id$="-extensionStart"], .extension {\n fill: transparent !important;\n stroke: ${e.lineColor} !important;\n stroke-width: 1;\n}\n\n[id$="-extensionEnd"], .extension {\n fill: transparent !important;\n stroke: ${e.lineColor} !important;\n stroke-width: 1;\n}\n\n[id$="-aggregationStart"], .aggregation {\n fill: transparent !important;\n stroke: ${e.lineColor} !important;\n stroke-width: 1;\n}\n\n[id$="-aggregationEnd"], .aggregation {\n fill: transparent !important;\n stroke: ${e.lineColor} !important;\n stroke-width: 1;\n}\n\n[id$="-lollipopStart"], .lollipop {\n fill: ${e.mainBkg} !important;\n stroke: ${e.lineColor} !important;\n stroke-width: 1;\n}\n\n[id$="-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\n.edgeLabel[data-look="neo"] {\n background-color: ${e.edgeLabelBackground};\n p {\n background-color: ${e.edgeLabelBackground};\n }\n rect {\n opacity: 0.5;\n background-color: ${e.edgeLabelBackground};\n fill: ${e.edgeLabelBackground};\n }\n text-align: center;\n}\n ${t()}\n`,"getStyles"),x=n((t,e="TB")=>{if(!t.doc)return e;let s=e;for(const e of t.doc)"dir"===e.stmt&&(s=e.value);return s},"getDir"),I={getClasses:n(function(t,e){return e.db.getClasses()},"getClasses"),draw:n(async function(t,e,n,c){a.info("REF0:"),a.info("Drawing class diagram (v3)",e);const{securityLevel:h,state:d,layout:p}=r();c.db.setDiagramId(e);const A=c.db.getData(),y=s(e,h);A.type=c.type,A.layoutAlgorithm=u(p),A.nodeSpacing=d?.nodeSpacing||50,A.rankSpacing=d?.rankSpacing||50,A.markers=["aggregation","extension","composition","dependency","lollipop"],A.diagramId=e,await l(A,y);o.insertTitle(y,"classDiagramTitleText",d?.titleTopMargin??25,c.db.getDiagramTitle()),i(y,8,"classDiagram",d?.useMaxWidth??!0)},"draw"),getDir:x};export{N as C,F as a,I as c,L as s};
1
+ import{g as t}from"./chunk-FMBD7UC4-DAo4g5fP.js";import{c as e}from"./chunk-YZCP3GAM-DELqvesl.js";import{g as s}from"./chunk-55IACEB6-Csh8qgjO.js";import{s as i}from"./chunk-EDXVE4YY-DCPe-NtF.js";import{_ as n,l as a,c as r,p as u,r as l,u as o,d as c,b as h,a as d,s as p,g as A,q as y,t as g,k as m,z as C,y as b,i as E,S as k}from"./mermaid.core-C89m9NSM.js";import{p as f}from"./purify.es-DBOWJxv3.js";var T=function(){var t=n(function(t,e,s,i){for(s=s||{},i=t.length;i--;s[t[i]]=e);return s},"o"),e=[1,18],s=[1,19],i=[1,20],a=[1,41],r=[1,26],u=[1,42],l=[1,24],o=[1,25],c=[1,32],h=[1,33],d=[1,34],p=[1,45],A=[1,35],y=[1,36],g=[1,37],m=[1,38],C=[1,27],b=[1,28],E=[1,29],k=[1,30],f=[1,31],T=[1,44],F=[1,46],D=[1,43],B=[1,47],_=[1,9],S=[1,8,9],$=[1,58],N=[1,59],L=[1,60],x=[1,61],I=[1,62],O=[1,63],v=[1,64],w=[1,8,9,41],R=[1,77],M=[1,8,9,12,13,22,39,41,44,46,68,69,70,71,72,73,74,79,81],P=[1,8,9,12,13,18,20,22,39,41,44,46,47,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,102],j=[1,120],K=[1,116],W=[1,112],X=[1,118],Q=[1,113],q=[1,114],H=[1,115],V=[1,117],J=[1,119],Z=[22,50,60,61,82,86,87,88,89,90],tt=[1,8,9,39,41,44,46],et=[1,8,9,22],st=[1,150],it=[1,8,9,61],nt=[1,8,9,22,50,60,61,82,86,87,88,89,90],at={trace:n(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,ANNOTATION_START:46,ANNOTATION_END:47,CLASS:48,emptyBody:49,SPACE: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:"ANNOTATION_START",47:"ANNOTATION_END",48:"CLASS",50:"SPACE",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],[40,1],[40,2],[40,3],[24,1],[24,3],[24,4],[24,3],[24,6],[24,4],[24,7],[24,6],[43,2],[43,3],[49,0],[49,2],[49,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:n(function(t,e,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 106: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][0],a[u-1][1]);break;case 35:i.addClassesToNamespace(a[u-4],a[u-1][0],a[u-1][1]);break;case 36:this.$=a[u],i.addNamespace(a[u]);break;case 37:this.$=[[a[u]],[]];break;case 38:this.$=[[a[u-1]],[]];break;case 39:a[u][0].unshift(a[u-2]),this.$=a[u];break;case 40:this.$=[[],[a[u]]];break;case 41:this.$=[[],[a[u-1]]];break;case 42:a[u][1].unshift(a[u-2]),this.$=a[u];break;case 44:i.setCssClass(a[u-2],a[u]);break;case 45:i.addMembers(a[u-3],a[u-1]);break;case 47:i.setCssClass(a[u-5],a[u-3]),i.addMembers(a[u-5],a[u-1]);break;case 48:i.addAnnotation(a[u-3],a[u-1]);break;case 49:i.addAnnotation(a[u-6],a[u-4]),i.addMembers(a[u-6],a[u-1]);break;case 50:i.addAnnotation(a[u-5],a[u-3]);break;case 51:this.$=a[u],i.addClass(a[u]);break;case 52:this.$=a[u-1],i.addClass(a[u-1]),i.setClassLabel(a[u-1],a[u]);break;case 56:i.addAnnotation(a[u],a[u-2]);break;case 57:case 70:case 103:this.$=[a[u]];break;case 58:a[u].push(a[u-1]),this.$=a[u];break;case 59:case 61:case 62:break;case 60:i.addMember(a[u-1],i.cleanupLabel(a[u]));break;case 63:this.$={id1:a[u-2],id2:a[u],relation:a[u-1],relationTitle1:"none",relationTitle2:"none"};break;case 64:this.$={id1:a[u-3],id2:a[u],relation:a[u-1],relationTitle1:a[u-2],relationTitle2:"none"};break;case 65:this.$={id1:a[u-3],id2:a[u],relation:a[u-2],relationTitle1:"none",relationTitle2:a[u-1]};break;case 66:this.$={id1:a[u-4],id2:a[u],relation:a[u-2],relationTitle1:a[u-3],relationTitle2:a[u-1]};break;case 67:this.$=i.addNote(a[u],a[u-1]);break;case 68:this.$=i.addNote(a[u]);break;case 69:this.$=a[u-2],i.defineClass(a[u-1],a[u]);break;case 71:this.$=a[u-2].concat([a[u]]);break;case 72:i.setDirection("TB");break;case 73:i.setDirection("BT");break;case 74:i.setDirection("RL");break;case 75:i.setDirection("LR");break;case 76:this.$={type1:a[u-2],type2:a[u],lineType:a[u-1]};break;case 77:this.$={type1:"none",type2:a[u],lineType:a[u-1]};break;case 78:this.$={type1:a[u-1],type2:"none",lineType:a[u]};break;case 79:this.$={type1:"none",type2:"none",lineType:a[u]};break;case 80:this.$=i.relationType.AGGREGATION;break;case 81:this.$=i.relationType.EXTENSION;break;case 82:this.$=i.relationType.COMPOSITION;break;case 83:this.$=i.relationType.DEPENDENCY;break;case 84:this.$=i.relationType.LOLLIPOP;break;case 85:this.$=i.lineType.LINE;break;case 86:this.$=i.lineType.DOTTED_LINE;break;case 87:case 93:this.$=a[u-2],i.setClickEvent(a[u-1],a[u]);break;case 88:case 94:this.$=a[u-3],i.setClickEvent(a[u-2],a[u-1]),i.setTooltip(a[u-2],a[u]);break;case 89:this.$=a[u-2],i.setLink(a[u-1],a[u]);break;case 90:this.$=a[u-3],i.setLink(a[u-2],a[u-1],a[u]);break;case 91:this.$=a[u-3],i.setLink(a[u-2],a[u-1]),i.setTooltip(a[u-2],a[u]);break;case 92:this.$=a[u-4],i.setLink(a[u-3],a[u-2],a[u]),i.setTooltip(a[u-3],a[u-1]);break;case 95:this.$=a[u-3],i.setClickEvent(a[u-2],a[u-1],a[u]);break;case 96:this.$=a[u-4],i.setClickEvent(a[u-3],a[u-2],a[u-1]),i.setTooltip(a[u-3],a[u]);break;case 97:this.$=a[u-3],i.setLink(a[u-2],a[u]);break;case 98:this.$=a[u-4],i.setLink(a[u-3],a[u-1],a[u]);break;case 99:this.$=a[u-4],i.setLink(a[u-3],a[u-1]),i.setTooltip(a[u-3],a[u]);break;case 100:this.$=a[u-5],i.setLink(a[u-4],a[u-2],a[u]),i.setTooltip(a[u-4],a[u-1]);break;case 101:this.$=a[u-2],i.setCssStyle(a[u-1],a[u]);break;case 102:i.setCssClass(a[u-1],a[u]);break;case 104: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:e,35:s,37:i,38:22,42:a,43:23,46:r,48:u,51:l,52:o,54:c,56:h,57:d,60:p,62:A,63:y,64:g,65:m,75:C,76:b,78:E,82:k,83:f,86:T,100:F,102:D,103:B},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,3]},t(_,[2,5],{8:[1,48]}),{8:[1,49]},t(S,[2,19],{22:[1,50]}),t(S,[2,21]),t(S,[2,22]),t(S,[2,23]),t(S,[2,24]),t(S,[2,25]),t(S,[2,26]),t(S,[2,27]),t(S,[2,28]),t(S,[2,29]),t(S,[2,30]),{34:[1,51]},{36:[1,52]},t(S,[2,33]),t(S,[2,59],{53:53,66:56,67:57,13:[1,54],22:[1,55],68:$,69:N,70:L,71:x,72:I,73:O,74:v}),{39:[1,65]},t(w,[2,43],{39:[1,67],44:[1,66],46:[1,68]}),t(S,[2,61]),t(S,[2,62]),{16:69,60:p,86:T,100:F,102:D},{16:39,17:40,19:70,60:p,86:T,100:F,102:D,103:B},{16:39,17:40,19:71,60:p,86:T,100:F,102:D,103:B},{16:39,17:40,19:72,60:p,86:T,100:F,102:D,103:B},{60:[1,73]},{13:[1,74]},{16:39,17:40,19:75,60:p,86:T,100:F,102:D,103:B},{13:R,55:76},{58:78,60:[1,79]},t(S,[2,72]),t(S,[2,73]),t(S,[2,74]),t(S,[2,75]),t(M,[2,13],{16:39,17:40,19:81,18:[1,80],20:[1,82],60:p,86:T,100:F,102:D,103:B}),t(M,[2,15],{20:[1,83]}),{15:84,16:85,17:86,60:p,86:T,100:F,102:D,103:B},{16:39,17:40,19:87,60:p,86:T,100:F,102:D,103:B},t(P,[2,129]),t(P,[2,130]),t(P,[2,131]),t(P,[2,132]),t([1,8,9,12,13,20,22,39,41,44,46,68,69,70,71,72,73,74,79,81],[2,133]),t(_,[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:88,33:e,35:s,37:i,42:a,46:r,48:u,51:l,52:o,54:c,56:h,57:d,60:p,62:A,63:y,64:g,65:m,75:C,76:b,78:E,82:k,83:f,86:T,100:F,102:D,103:B}),{5:89,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:e,35:s,37:i,38:22,42:a,43:23,46:r,48:u,51:l,52:o,54:c,56:h,57:d,60:p,62:A,63:y,64:g,65:m,75:C,76:b,78:E,82:k,83:f,86:T,100:F,102:D,103:B},t(S,[2,20]),t(S,[2,31]),t(S,[2,32]),{13:[1,91],16:39,17:40,19:90,60:p,86:T,100:F,102:D,103:B},{53:92,66:56,67:57,68:$,69:N,70:L,71:x,72:I,73:O,74:v},t(S,[2,60]),{67:93,73:O,74:v},t(G,[2,79],{66:94,68:$,69:N,70:L,71:x,72:I}),t(U,[2,80]),t(U,[2,81]),t(U,[2,82]),t(U,[2,83]),t(U,[2,84]),t(z,[2,85]),t(z,[2,86]),{8:[1,96],24:97,30:98,40:95,43:23,48:u,54:c,56:h},{16:99,60:p,86:T,100:F,102:D},{41:[1,101],45:100,51:Y},{16:103,60:p,86:T,100:F,102:D},{47:[1,104]},{13:[1,105]},{13:[1,106]},{79:[1,107],81:[1,108]},{22:j,50:K,59:109,60:W,82:X,84:110,85:111,86:Q,87:q,88:H,89:V,90:J},{60:[1,121]},{13:R,55:122},t(w,[2,68]),t(w,[2,134]),{22:j,50:K,59:123,60:W,61:[1,124],82:X,84:110,85:111,86:Q,87:q,88:H,89:V,90:J},t(Z,[2,70]),{16:39,17:40,19:125,60:p,86:T,100:F,102:D,103:B},t(M,[2,16]),t(M,[2,17]),t(M,[2,18]),{39:[2,36]},{15:127,16:85,17:86,18:[1,126],39:[2,9],60:p,86:T,100:F,102:D,103:B},{39:[2,10]},t(tt,[2,51],{11:128,12:[1,129]}),t(_,[2,7]),{9:[1,130]},t(et,[2,63]),{16:39,17:40,19:131,60:p,86:T,100:F,102:D,103:B},{13:[1,133],16:39,17:40,19:132,60:p,86:T,100:F,102:D,103:B},t(G,[2,78],{66:134,68:$,69:N,70:L,71:x,72:I}),t(G,[2,77]),{41:[1,135]},{24:97,30:98,40:136,43:23,48:u,54:c,56:h},{8:[1,137],41:[2,37]},{8:[1,138],41:[2,40]},t(w,[2,44],{39:[1,139]}),{41:[1,140]},t(w,[2,46]),{41:[2,57],45:141,51:Y},{47:[1,142]},{16:39,17:40,19:143,60:p,86:T,100:F,102:D,103:B},t(S,[2,87],{13:[1,144]}),t(S,[2,89],{13:[1,146],77:[1,145]}),t(S,[2,93],{13:[1,147],80:[1,148]}),{13:[1,149]},t(S,[2,101],{61:st}),t(it,[2,103],{85:151,22:j,50:K,60:W,82:X,86:Q,87:q,88:H,89:V,90:J}),t(nt,[2,105]),t(nt,[2,107]),t(nt,[2,108]),t(nt,[2,109]),t(nt,[2,110]),t(nt,[2,111]),t(nt,[2,112]),t(nt,[2,113]),t(nt,[2,114]),t(nt,[2,115]),t(S,[2,102]),t(w,[2,67]),t(S,[2,69],{61:st}),{60:[1,152]},t(M,[2,14]),{15:153,16:85,17:86,60:p,86:T,100:F,102:D,103:B},{39:[2,12]},t(tt,[2,52]),{13:[1,154]},{1:[2,4]},t(et,[2,65]),t(et,[2,64]),{16:39,17:40,19:155,60:p,86:T,100:F,102:D,103:B},t(G,[2,76]),t(S,[2,34]),{41:[1,156]},{24:97,30:98,40:157,41:[2,38],43:23,48:u,54:c,56:h},{24:97,30:98,40:158,41:[2,41],43:23,48:u,54:c,56:h},{45:159,51:Y},t(w,[2,45]),{41:[2,58]},t(w,[2,48],{39:[1,160]}),t(S,[2,56]),t(S,[2,88]),t(S,[2,90]),t(S,[2,91],{77:[1,161]}),t(S,[2,94]),t(S,[2,95],{13:[1,162]}),t(S,[2,97],{13:[1,164],77:[1,163]}),{22:j,50:K,60:W,82:X,84:165,85:111,86:Q,87:q,88:H,89:V,90:J},t(nt,[2,106]),t(Z,[2,71]),{39:[2,11]},{14:[1,166]},t(et,[2,66]),t(S,[2,35]),{41:[2,39]},{41:[2,42]},{41:[1,167]},{41:[1,169],45:168,51:Y},t(S,[2,92]),t(S,[2,96]),t(S,[2,98]),t(S,[2,99],{77:[1,170]}),t(it,[2,104],{85:151,22:j,50:K,60:W,82:X,86:Q,87:q,88:H,89:V,90:J}),t(tt,[2,8]),t(w,[2,47]),{41:[1,171]},t(w,[2,50]),t(S,[2,100]),t(w,[2,49])],defaultActions:{2:[2,1],3:[2,2],4:[2,3],84:[2,36],86:[2,10],127:[2,12],130:[2,4],141:[2,58],153:[2,11],157:[2,39],158:[2,42]},parseError:n(function(t,e){if(!e.recoverable){var s=new Error(t);throw s.hash=e,s}this.trace(t)},"parseError"),parse:n(function(t){var e=this,s=[0],i=[],a=[null],r=[],u=this.table,l="",o=0,c=0,h=r.slice.call(arguments,1),d=Object.create(this.lexer),p={yy:{}};for(var A in this.yy)Object.prototype.hasOwnProperty.call(this.yy,A)&&(p.yy[A]=this.yy[A]);d.setInput(t,p.yy),p.yy.lexer=d,p.yy.parser=this,void 0===d.yylloc&&(d.yylloc={});var y=d.yylloc;r.push(y);var g=d.options&&d.options.ranges;function m(){var t;return"number"!=typeof(t=i.pop()||d.lex()||1)&&(t instanceof Array&&(t=(i=t).pop()),t=e.symbols_[t]||t),t}"function"==typeof p.yy.parseError?this.parseError=p.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError,n(function(t){s.length=s.length-2*t,a.length=a.length-t,r.length=r.length-t},"popStack"),n(m,"lex");for(var C,b,E,k,f,T,F,D,B={};;){if(b=s[s.length-1],this.defaultActions[b]?E=this.defaultActions[b]:(null==C&&(C=m()),E=u[b]&&u[b][C]),void 0===E||!E.length||!E[0]){var _="";for(f in D=[],u[b])this.terminals_[f]&&f>2&&D.push("'"+this.terminals_[f]+"'");_=d.showPosition?"Parse error on line "+(o+1)+":\n"+d.showPosition()+"\nExpecting "+D.join(", ")+", got '"+(this.terminals_[C]||C)+"'":"Parse error on line "+(o+1)+": Unexpected "+(1==C?"end of input":"'"+(this.terminals_[C]||C)+"'"),this.parseError(_,{text:d.match,token:this.terminals_[C]||C,line:d.yylineno,loc:y,expected:D})}if(E[0]instanceof Array&&E.length>1)throw new Error("Parse Error: multiple actions possible at state: "+b+", token: "+C);switch(E[0]){case 1:s.push(C),a.push(d.yytext),r.push(d.yylloc),s.push(E[1]),C=null,c=d.yyleng,l=d.yytext,o=d.yylineno,y=d.yylloc;break;case 2:if(T=this.productions_[E[1]][1],B.$=a[a.length-T],B._$={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},g&&(B._$.range=[r[r.length-(T||1)].range[0],r[r.length-1].range[1]]),void 0!==(k=this.performAction.apply(B,[l,c,o,p.yy,E[1],a,r].concat(h))))return k;T&&(s=s.slice(0,-1*T*2),a=a.slice(0,-1*T),r=r.slice(0,-1*T)),s.push(this.productions_[E[1]][0]),a.push(B.$),r.push(B._$),F=u[s[s.length-2]][s[s.length-1]],s.push(F);break;case 3:return!0}}return!0},"parse")},rt=function(){return{EOF:1,parseError:n(function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},"parseError"),setInput:n(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:n(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:n(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:n(function(){return this._more=!0,this},"more"),reject:n(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:n(function(t){this.unput(this.match.slice(t))},"less"),pastInput:n(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:n(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:n(function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},"showPosition"),test_match:n(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 a in n)this[a]=n[a];return!1}return!1},"test_match"),next:n(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(),a=0;a<n.length;a++)if((s=this._input.match(this.rules[n[a]]))&&(!e||s[0].length>e[0].length)){if(e=s,i=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(s,n[a])))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:n(function(){var t=this.next();return t||this.lex()},"lex"),begin:n(function(t){this.conditionStack.push(t)},"begin"),popState:n(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:n(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:n(function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},"topState"),pushState:n(function(t){this.begin(t)},"pushState"),stateStackSize:n(function(){return this.conditionStack.length},"stateStackSize"),options:{},performAction:n(function(t,e,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"),48;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 46;case 56:return 47;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 50;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 ut(){this.yy={}}return at.lexer=rt,n(ut,"Parser"),ut.prototype=at,at.Parser=ut,new ut}();T.parser=T;var F=T,D=["#","+","~","-",""],B=class{static{n(this,"ClassMember")}constructor(t,e){this.memberType=e,this.visibility="",this.classifier="",this.text="";const s=E(t,r());this.parseMember(s)}getDisplayDetails(){let t=this.visibility+k(this.id);"method"===this.memberType&&(t+=`(${k(this.parameters.trim())})`,this.returnType&&(t+=" : "+k(this.returnType))),t=t.trim();return{displayText:t,cssStyle:this.parseClassifier()}}parseMember(t){let e="";if("method"===this.memberType){const s=/([#+~-])?(.+)\((.*)\)([\s$*])?(.*)([$*])?/.exec(t);if(s){const t=s[1]?s[1].trim():"";if(D.includes(t)&&(this.visibility=t),this.id=s[2],this.parameters=s[3]?s[3].trim():"",e=s[4]?s[4].trim():"",this.returnType=s[5]?s[5].trim():"",""===e){const t=this.returnType.substring(this.returnType.length-1);/[$*]/.exec(t)&&(e=t,this.returnType=this.returnType.substring(0,this.returnType.length-1))}}}else{const s=t.length,i=t.substring(0,1),n=t.substring(s-1);D.includes(i)&&(this.visibility=i),/[$*]/.exec(n)&&(e=n),this.id=t.substring(""===this.visibility?0:1,""===e?s:s-1)}this.classifier=e,this.id=this.id.startsWith(" ")?" "+this.id.trim():this.id.trim();const s=`${this.visibility?"\\"+this.visibility:""}${k(this.id)}${"method"===this.memberType?`(${k(this.parameters)})${this.returnType?" : "+k(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""}}},_="classId-",S=0,$=n(t=>m.sanitizeText(t,r()),"sanitizeText"),N=class{constructor(){this.relations=[],this.classes=new Map,this.styleClasses=new Map,this.notes=new Map,this.interfaces=[],this.namespaces=new Map,this.namespaceCounter=0,this.diagramId="",this.functions=[],this.lineType={LINE:0,DOTTED_LINE:1},this.relationType={AGGREGATION:0,EXTENSION:1,COMPOSITION:2,DEPENDENCY:3,LOLLIPOP:4},this.setupToolTips=n(t=>{const s=e();c(t).select("svg").selectAll("g").filter(function(){return null!==c(this).attr("title")}).on("mouseover",t=>{const e=c(t.currentTarget),i=e.attr("title");if(!i)return;const n=t.currentTarget.getBoundingClientRect();s.transition().duration(200).style("opacity",".9"),s.html(f.sanitize(i)).style("left",`${window.scrollX+n.left+n.width/2}px`).style("top",`${window.scrollY+n.bottom+4}px`),e.classed("hover",!0)}).on("mouseout",t=>{s.transition().duration(500).style("opacity",0),c(t.currentTarget).classed("hover",!1)})},"setupToolTips"),this.direction="TB",this.setAccTitle=h,this.getAccTitle=d,this.setAccDescription=p,this.getAccDescription=A,this.setDiagramTitle=y,this.getDiagramTitle=g,this.getConfig=n(()=>r().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)}static{n(this,"ClassDB")}splitClassNameAndType(t){const e=m.sanitizeText(t,r());let s="",i=e;if(e.indexOf("~")>0){const t=e.split("~");i=$(t[0]),s=$(t[1])}return{className:i,type:s}}setClassLabel(t,e){const s=m.sanitizeText(t,r());e&&(e=$(e));const{className:i}=this.splitClassNameAndType(s);this.classes.get(i).label=e,this.classes.get(i).text=`${e}${this.classes.get(i).type?`<${this.classes.get(i).type}>`:""}`}addClass(t){const e=m.sanitizeText(t,r()),{className:s,type:i}=this.splitClassNameAndType(e);if(this.classes.has(s))return;const n=m.sanitizeText(s,r());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:_+n+"-"+S}),S++}addInterface(t,e){const s={id:`interface${this.interfaces.length}`,label:t,classId:e};this.interfaces.push(s)}setDiagramId(t){this.diagramId=t}lookUpDomId(t){const e=m.sanitizeText(t,r());if(this.classes.has(e)){const t=this.classes.get(e).domId;return this.diagramId?`${this.diagramId}-${t}`:t}throw new Error("Class not found: "+e)}clear(){this.relations=[],this.classes=new Map,this.notes=new Map,this.interfaces=[],this.functions=[],this.functions.push(this.setupToolTips.bind(this)),this.namespaces=new Map,this.namespaceCounter=0,this.diagramId="",this.direction="TB",C()}getClass(t){return this.classes.get(t)}getClasses(){return this.classes}getRelations(){return this.relations}getNote(t){const e="number"==typeof t?`note${t}`:t;return this.notes.get(e)}getNotes(){return this.notes}addRelation(t){a.debug("Adding relation: "+JSON.stringify(t));const e=[this.relationType.LOLLIPOP,this.relationType.AGGREGATION,this.relationType.COMPOSITION,this.relationType.DEPENDENCY,this.relationType.EXTENSION];t.relation.type1!==this.relationType.LOLLIPOP||e.includes(t.relation.type2)?t.relation.type2!==this.relationType.LOLLIPOP||e.includes(t.relation.type1)?(this.addClass(t.id1),this.addClass(t.id2)):(this.addClass(t.id1),this.addInterface(t.id2,t.id1),t.id2="interface"+(this.interfaces.length-1)):(this.addClass(t.id2),this.addInterface(t.id1,t.id2),t.id1="interface"+(this.interfaces.length-1)),t.id1=this.splitClassNameAndType(t.id1).className,t.id2=this.splitClassNameAndType(t.id2).className,t.relationTitle1=m.sanitizeText(t.relationTitle1.trim(),r()),t.relationTitle2=m.sanitizeText(t.relationTitle2.trim(),r()),this.relations.push(t)}addAnnotation(t,e){const s=this.splitClassNameAndType(t).className;this.classes.get(s).annotations.push(e)}addMember(t,e){this.addClass(t);const s=this.splitClassNameAndType(t).className,i=this.classes.get(s);if("string"==typeof e){const t=e.trim();t.startsWith("<<")&&t.endsWith(">>")?i.annotations.push($(t.substring(2,t.length-2))):t.indexOf(")")>0?i.methods.push(new B(t,"method")):t&&i.members.push(new B(t,"attribute"))}}addMembers(t,e){Array.isArray(e)&&(e.reverse(),e.forEach(e=>this.addMember(t,e)))}addNote(t,e){const s=this.notes.size,i={id:`note${s}`,class:e,text:t,index:s};return this.notes.set(i.id,i),i.id}cleanupLabel(t){return t.startsWith(":")&&(t=t.substring(1)),$(t.trim())}setCssClass(t,e){t.split(",").forEach(t=>{let s=t;/\d/.exec(t[0])&&(s=_+s);const i=this.classes.get(s);i&&(i.cssClasses+=" "+e)})}defineClass(t,e){for(const s of t){let t=this.styleClasses.get(s);void 0===t&&(t={id:s,styles:[],textStyles:[]},this.styleClasses.set(s,t)),e&&e.forEach(e=>{if(/color/.exec(e)){const s=e.replace("fill","bgFill");t.textStyles.push(s)}t.styles.push(e)}),this.classes.forEach(t=>{t.cssClasses.includes(s)&&t.styles.push(...e.flatMap(t=>t.split(",")))})}}setTooltip(t,e){t.split(",").forEach(t=>{void 0!==e&&(this.classes.get(t).tooltip=$(e))})}getTooltip(t,e){return e&&this.namespaces.has(e)?this.namespaces.get(e).classes.get(t).tooltip:this.classes.get(t).tooltip}setLink(t,e,s){const i=r();t.split(",").forEach(t=>{let n=t;/\d/.exec(t[0])&&(n=_+n);const a=this.classes.get(n);a&&(a.link=o.formatUrl(e,i),"sandbox"===i.securityLevel?a.linkTarget="_top":a.linkTarget="string"==typeof s?$(s):"_blank")}),this.setCssClass(t,"clickable")}setClickEvent(t,e,s){t.split(",").forEach(t=>{this.setClickFunc(t,e,s),this.classes.get(t).haveCallback=!0}),this.setCssClass(t,"clickable")}setClickFunc(t,e,s){const i=m.sanitizeText(t,r());if("loose"!==r().securityLevel)return;if(void 0===e)return;const n=i;if(this.classes.has(n)){let t=[];if("string"==typeof s){t=s.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let e=0;e<t.length;e++){let s=t[e].trim();s.startsWith('"')&&s.endsWith('"')&&(s=s.substr(1,s.length-2)),t[e]=s}}0===t.length&&t.push(n),this.functions.push(()=>{const s=this.lookUpDomId(n),i=document.querySelector(`[id="${s}"]`);null!==i&&i.addEventListener("click",()=>{o.runFunc(e,...t)},!1)})}}bindFunctions(t){this.functions.forEach(e=>{e(t)})}escapeHtml(t){return t.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;")}getDirection(){return this.direction}setDirection(t){this.direction=t}addNamespace(t){this.namespaces.has(t)||(this.namespaces.set(t,{id:t,classes:new Map,notes:new Map,children:new Map,domId:_+t+"-"+this.namespaceCounter}),this.namespaceCounter++)}getNamespace(t){return this.namespaces.get(t)}getNamespaces(){return this.namespaces}addClassesToNamespace(t,e,s){if(this.namespaces.has(t)){for(const s of e){const{className:e}=this.splitClassNameAndType(s),i=this.getClass(e);i.parent=t,this.namespaces.get(t).classes.set(e,i)}for(const e of s){const s=this.getNote(e);s.parent=t,this.namespaces.get(t).notes.set(e,s)}}}setCssStyle(t,e){const s=this.classes.get(t);if(e&&s)for(const t of e)t.includes(",")?s.styles.push(...t.split(",")):s.styles.push(t)}getArrowMarker(t){let e;switch(t){case 0:e="aggregation";break;case 1:e="extension";break;case 2:e="composition";break;case 3:e="dependency";break;case 4:e="lollipop";break;default:e="none"}return e}getData(){const t=[],e=[],s=r();for(const e of this.namespaces.values()){const i={id:e.id,label:e.id,isGroup:!0,padding:s.class.padding??16,shape:"rect",cssStyles:[],look:s.look};t.push(i)}for(const e of this.classes.values()){const i={...e,type:void 0,isGroup:!1,parentId:e.parent,look:s.look};t.push(i)}for(const i of this.notes.values()){const n={id:i.id,label:i.text,isGroup:!1,shape:"note",padding:s.class.padding??6,cssStyles:["text-align: left","white-space: nowrap",`fill: ${s.themeVariables.noteBkgColor}`,`stroke: ${s.themeVariables.noteBorderColor}`],look:s.look,parentId:i.parent,labelType:"markdown"};t.push(n);const a=this.classes.get(i.class)?.id;if(a){const t={id:`edgeNote${i.index}`,start:i.id,end:a,type:"normal",thickness:"normal",classes:"relation",arrowTypeStart:"none",arrowTypeEnd:"none",arrowheadStyle:"",labelStyle:[""],style:["fill: none"],pattern:"dotted",look:s.look};e.push(t)}}for(const e of this.interfaces){const i={id:e.id,label:e.label,isGroup:!1,shape:"rect",cssStyles:["opacity: 0;"],look:s.look};t.push(i)}let i=0;for(const t of this.relations){i++;const n={id:b(t.id1,t.id2,{prefix:"id",counter:i}),start:t.id1,end:t.id2,type:"normal",label:t.title,labelpos:"c",thickness:"normal",classes:"relation",arrowTypeStart:this.getArrowMarker(t.relation.type1),arrowTypeEnd:this.getArrowMarker(t.relation.type2),startLabelRight:"none"===t.relationTitle1?"":t.relationTitle1,endLabelLeft:"none"===t.relationTitle2?"":t.relationTitle2,arrowheadStyle:"",labelStyle:["display: inline-block"],style:t.style||"",pattern:1==t.relation.lineType?"dashed":"solid",look:s.look,labelType:"markdown"};e.push(n)}return{nodes:t,edges:e,other:{},config:s,direction:this.getDirection()}}},L=n(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 .cluster-label text {\n fill: ${e.titleColor};\n }\n .cluster-label span {\n color: ${e.titleColor};\n }\n .cluster-label span p {\n background-color: transparent;\n }\n\n .cluster rect {\n fill: ${e.clusterBkg};\n stroke: ${e.clusterBorder};\n stroke-width: 1px;\n }\n\n .cluster text {\n fill: ${e.titleColor};\n }\n\n .cluster span {\n color: ${e.titleColor};\n }\n\n.nodeLabel, .edgeLabel {\n color: ${e.classText};\n}\n\n.noteLabel .nodeLabel, .noteLabel .edgeLabel {\n color: ${e.noteTextColor};\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: ${e.strokeWidth};\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: ${e.strokeWidth};\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[id$="-compositionStart"], .composition {\n fill: ${e.lineColor} !important;\n stroke: ${e.lineColor} !important;\n stroke-width: 1;\n}\n\n[id$="-compositionEnd"], .composition {\n fill: ${e.lineColor} !important;\n stroke: ${e.lineColor} !important;\n stroke-width: 1;\n}\n\n[id$="-dependencyStart"], .dependency {\n fill: ${e.lineColor} !important;\n stroke: ${e.lineColor} !important;\n stroke-width: 1;\n}\n\n[id$="-dependencyEnd"], .dependency {\n fill: ${e.lineColor} !important;\n stroke: ${e.lineColor} !important;\n stroke-width: 1;\n}\n\n[id$="-extensionStart"], .extension {\n fill: transparent !important;\n stroke: ${e.lineColor} !important;\n stroke-width: 1;\n}\n\n[id$="-extensionEnd"], .extension {\n fill: transparent !important;\n stroke: ${e.lineColor} !important;\n stroke-width: 1;\n}\n\n[id$="-aggregationStart"], .aggregation {\n fill: transparent !important;\n stroke: ${e.lineColor} !important;\n stroke-width: 1;\n}\n\n[id$="-aggregationEnd"], .aggregation {\n fill: transparent !important;\n stroke: ${e.lineColor} !important;\n stroke-width: 1;\n}\n\n[id$="-lollipopStart"], .lollipop {\n fill: ${e.mainBkg} !important;\n stroke: ${e.lineColor} !important;\n stroke-width: 1;\n}\n\n[id$="-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\n.edgeLabel[data-look="neo"] {\n background-color: ${e.edgeLabelBackground};\n p {\n background-color: ${e.edgeLabelBackground};\n }\n rect {\n opacity: 0.5;\n background-color: ${e.edgeLabelBackground};\n fill: ${e.edgeLabelBackground};\n }\n text-align: center;\n}\n ${t()}\n`,"getStyles"),x=n((t,e="TB")=>{if(!t.doc)return e;let s=e;for(const e of t.doc)"dir"===e.stmt&&(s=e.value);return s},"getDir"),I={getClasses:n(function(t,e){return e.db.getClasses()},"getClasses"),draw:n(async function(t,e,n,c){a.info("REF0:"),a.info("Drawing class diagram (v3)",e);const{securityLevel:h,state:d,layout:p}=r();c.db.setDiagramId(e);const A=c.db.getData(),y=s(e,h);A.type=c.type,A.layoutAlgorithm=u(p),A.nodeSpacing=d?.nodeSpacing||50,A.rankSpacing=d?.rankSpacing||50,A.markers=["aggregation","extension","composition","dependency","lollipop"],A.diagramId=e,await l(A,y);o.insertTitle(y,"classDiagramTitleText",d?.titleTopMargin??25,c.db.getDiagramTitle()),i(y,8,"classDiagram",d?.useMaxWidth??!0)},"draw"),getDir:x};export{N as C,F as a,I as c,L as s};
@@ -1 +1 @@
1
- import{_ as e,d as o}from"./mermaid.core-Ch6a1N6x.js";var t=e((e,t)=>{let a;"sandbox"===t&&(a=o("#i"+e));return o("sandbox"===t?a.nodes()[0].contentDocument.body:"body").select(`[id="${e}"]`)},"getDiagramElement");export{t as g};
1
+ import{_ as e,d as o}from"./mermaid.core-C89m9NSM.js";var t=e((e,t)=>{let a;"sandbox"===t&&(a=o("#i"+e));return o("sandbox"===t?a.nodes()[0].contentDocument.body:"body").select(`[id="${e}"]`)},"getDiagramElement");export{t as g};
@@ -1 +1 @@
1
- import{_ as t,e,l as i}from"./mermaid.core-Ch6a1N6x.js";var o=t((t,o,r,s)=>{t.attr("class",r);const{width:d,height:n,x:c,y:g}=a(t,o);e(t,n,d,s);const w=h(c,g,d,n,o);t.attr("viewBox",w),i.debug(`viewBox configured: ${w} with padding: ${o}`)},"setupViewPortForSVG"),a=t((t,e)=>{const i=t.node()?.getBBox()||{width:0,height:0,x:0,y:0};return{width:i.width+2*e,height:i.height+2*e,x:i.x,y:i.y}},"calculateDimensionsWithPadding"),h=t((t,e,i,o,a)=>`${t-a} ${e-a} ${i} ${o}`,"createViewBox");export{o as s};
1
+ import{_ as t,e,l as i}from"./mermaid.core-C89m9NSM.js";var o=t((t,o,r,s)=>{t.attr("class",r);const{width:d,height:n,x:c,y:g}=a(t,o);e(t,n,d,s);const w=h(c,g,d,n,o);t.attr("viewBox",w),i.debug(`viewBox configured: ${w} with padding: ${o}`)},"setupViewPortForSVG"),a=t((t,e)=>{const i=t.node()?.getBBox()||{width:0,height:0,x:0,y:0};return{width:i.width+2*e,height:i.height+2*e,x:i.x,y:i.y}},"calculateDimensionsWithPadding"),h=t((t,e,i,o,a)=>`${t-a} ${e-a} ${i} ${o}`,"createViewBox");export{o as s};
@@ -1 +1 @@
1
- import{_ as n}from"./mermaid.core-Ch6a1N6x.js";var e=n(()=>"\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");export{e as g};
1
+ import{_ as n}from"./mermaid.core-C89m9NSM.js";var e=n(()=>"\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");export{e as g};
@@ -1 +1 @@
1
- import{g as t}from"./chunk-55IACEB6-B9SJqSMu.js";import{s as e}from"./chunk-EDXVE4YY-DO0UVobI.js";import{_ as s,l as i,c as n,r,u as o,a,b as c,g as l,s as h,q as d,t as u,T as p,k as y,z as g}from"./mermaid.core-Ch6a1N6x.js";var f=function(){var t=s(function(t,e,s,i){for(s=s||{},i=t.length;i--;s[t[i]]=e);return s},"o"),e=[1,2],i=[1,3],n=[1,4],r=[2,4],o=[1,9],a=[1,11],c=[1,16],l=[1,17],h=[1,18],d=[1,19],u=[1,33],p=[1,20],y=[1,21],g=[1,22],f=[1,23],m=[1,24],S=[1,26],k=[1,27],b=[1,28],_=[1,29],T=[1,30],E=[1,31],$=[1,32],C=[1,35],D=[1,36],x=[1,37],v=[1,38],I=[1,34],A=[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:s(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:s(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 c=r[a],l=r[a-2].trim();if(r[a].match(":")){var h=r[a].split(":");c=h[0],l=[l,h[1]]}this.$={stmt:"state",id:c,type:"default",description:l};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:i,6:n},{1:[3]},{3:5,4:e,5:i,6:n},{3:6,4:e,5:i,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:c,17:l,19:h,22:d,24:u,25:p,26:y,27:g,28:f,29:m,32:25,33:S,35:k,37:b,38:_,41:T,45:E,48:$,51:C,52:D,53:x,54:v,57:I},t(A,[2,5]),{9:39,10:12,11:13,12:14,13:15,16:c,17:l,19:h,22:d,24:u,25:p,26:y,27:g,28:f,29:m,32:25,33:S,35:k,37:b,38:_,41:T,45:E,48:$,51:C,52:D,53:x,54:v,57:I},t(A,[2,7]),t(A,[2,8]),t(A,[2,9]),t(A,[2,10]),t(A,[2,11]),t(A,[2,12],{14:[1,40],15:[1,41]}),t(A,[2,16]),{18:[1,42]},t(A,[2,18],{20:[1,43]}),{23:[1,44]},t(A,[2,22]),t(A,[2,23]),t(A,[2,24]),t(A,[2,25]),{30:45,31:[1,46],59:[1,47],60:[1,48]},t(A,[2,28]),{34:[1,49]},{36:[1,50]},t(A,[2,31]),{13:51,24:u,57:I},{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(A,[2,38]),t(A,[2,39]),t(A,[2,40]),t(A,[2,41]),t(A,[2,6]),t(A,[2,13]),{13:58,24:u,57:I},t(A,[2,17]),t(w,r,{7:59}),{24:[1,60]},{24:[1,61]},{23:[1,62]},{24:[2,48]},{24:[2,49]},t(A,[2,29]),t(A,[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(A,[2,14],{14:[1,71]}),{4:o,5:a,8:8,9:10,10:12,11:13,12:14,13:15,16:c,17:l,19:h,21:[1,72],22:d,24:u,25:p,26:y,27:g,28:f,29:m,32:25,33:S,35:k,37:b,38:_,41:T,45:E,48:$,51:C,52:D,53:x,54:v,57:I},t(A,[2,20],{20:[1,73]}),{31:[1,74]},{24:[1,75]},{39:[1,76]},{39:[1,77]},t(A,[2,34]),t(A,[2,35]),t(A,[2,36]),t(A,[2,37]),t(L,[2,46]),t(L,[2,47]),t(A,[2,15]),t(A,[2,19]),t(w,r,{7:78}),t(A,[2,26]),t(A,[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:c,17:l,19:h,21:[1,81],22:d,24:u,25:p,26:y,27:g,28:f,29:m,32:25,33:S,35:k,37:b,38:_,41:T,45:E,48:$,51:C,52:D,53:x,54:v,57:I},t(A,[2,32]),t(A,[2,33]),t(A,[2,21])],defaultActions:{5:[2,1],6:[2,2],47:[2,48],48:[2,49]},parseError:s(function(t,e){if(!e.recoverable){var s=new Error(t);throw s.hash=e,s}this.trace(t)},"parseError"),parse:s(function(t){var e=this,i=[0],n=[],r=[null],o=[],a=this.table,c="",l=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 f=u.options&&u.options.ranges;function m(){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,s(function(t){i.length=i.length-2*t,r.length=r.length-t,o.length=o.length-t},"popStack"),s(m,"lex");for(var S,k,b,_,T,E,$,C,D={};;){if(k=i[i.length-1],this.defaultActions[k]?b=this.defaultActions[k]:(null==S&&(S=m()),b=a[k]&&a[k][S]),void 0===b||!b.length||!b[0]){var x="";for(T in C=[],a[k])this.terminals_[T]&&T>2&&C.push("'"+this.terminals_[T]+"'");x=u.showPosition?"Parse error on line "+(l+1)+":\n"+u.showPosition()+"\nExpecting "+C.join(", ")+", got '"+(this.terminals_[S]||S)+"'":"Parse error on line "+(l+1)+": Unexpected "+(1==S?"end of input":"'"+(this.terminals_[S]||S)+"'"),this.parseError(x,{text:u.match,token:this.terminals_[S]||S,line:u.yylineno,loc:g,expected:C})}if(b[0]instanceof Array&&b.length>1)throw new Error("Parse Error: multiple actions possible at state: "+k+", token: "+S);switch(b[0]){case 1:i.push(S),r.push(u.yytext),o.push(u.yylloc),i.push(b[1]),S=null,h=u.yyleng,c=u.yytext,l=u.yylineno,g=u.yylloc;break;case 2:if(E=this.productions_[b[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},f&&(D._$.range=[o[o.length-(E||1)].range[0],o[o.length-1].range[1]]),void 0!==(_=this.performAction.apply(D,[c,h,l,p.yy,b[1],r,o].concat(d))))return _;E&&(i=i.slice(0,-1*E*2),r=r.slice(0,-1*E),o=o.slice(0,-1*E)),i.push(this.productions_[b[1]][0]),r.push(D.$),o.push(D._$),$=a[i[i.length-2]][i[i.length-1]],i.push($);break;case 3:return!0}}return!0},"parse")},O=function(){return{EOF:1,parseError:s(function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},"parseError"),setInput:s(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:s(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:s(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:s(function(){return this._more=!0,this},"more"),reject:s(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:s(function(t){this.unput(this.match.slice(t))},"less"),pastInput:s(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:s(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:s(function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},"showPosition"),test_match:s(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:s(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:s(function(){var t=this.next();return t||this.lex()},"lex"),begin:s(function(t){this.conditionStack.push(t)},"begin"),popState:s(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:s(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:s(function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},"topState"),pushState:s(function(t){this.begin(t)},"pushState"),stateStackSize:s(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:s(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;]|:[^:\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,79],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,s(R,"Parser"),R.prototype=N,N.Parser=R,new R}();f.parser=f;var m=f,S="state",k="root",b="relation",_="default",T="divider",E="fill:none",$="fill: #333",C="markdown",D="normal",x="rect",v="rectWithTitle",I="divider",A="roundedWithTitle",L="statediagram",w=`${L}-state`,N="transition",O=`${N} note-edge`,R=`${L}-note`,B=`${L}-cluster`,F=`${L}-cluster-alt`,P="parent",Y="note",G="----",j=`${G}${Y}`,z=`${G}${P}`,W=s((t,e="TB")=>{if(!t.doc)return e;let s=e;for(const e of t.doc)"dir"===e.stmt&&(s=e.value);return s},"getDir"),M={getClasses:s(function(t,e){return e.db.getClasses()},"getClasses"),draw:s(async function(s,a,c,l){i.info("REF0:"),i.info("Drawing state diagram (v2)",a);const{securityLevel:h,state:d,layout:u}=n();l.db.extract(l.db.getRootDocV2());const p=l.db.getData(),y=t(a,h);p.type=l.type,p.layoutAlgorithm=u,p.nodeSpacing=d?.nodeSpacing||50,p.rankSpacing=d?.rankSpacing||50;"neo"===n().look?p.markers=["barbNeo"]:p.markers=["barb"],p.diagramId=a,await r(p,y);try{("function"==typeof l.db.getLinks?l.db.getLinks():new Map).forEach((t,e)=>{const s="string"==typeof e?e:"string"==typeof e?.id?e.id:"";if(!s)return void i.warn("⚠️ Invalid or missing stateId from key:",JSON.stringify(e));const n=y.node()?.querySelectorAll("g");let r;if(n?.forEach(t=>{const e=t.textContent?.trim();e===s&&(r=t)}),!r)return void i.warn("⚠️ Could not find node matching text:",s);const o=r.parentNode;if(!o)return void i.warn("⚠️ Node has no parent, cannot wrap:",s);const a=document.createElementNS("http://www.w3.org/2000/svg","a"),c=t.url.replace(/^"+|"+$/g,"");if(a.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",c),a.setAttribute("target","_blank"),t.tooltip){const e=t.tooltip.replace(/^"+|"+$/g,"");a.setAttribute("title",e)}o.replaceChild(a,r),a.appendChild(r),i.info("🔗 Wrapped node in <a> tag for:",s,t.url)})}catch(t){i.error("❌ Error injecting clickable links:",t)}o.insertTitle(y,"statediagramTitleText",d?.titleTopMargin??25,l.db.getDiagramTitle()),e(y,8,L,d?.useMaxWidth??!0)},"draw"),getDir:W},U=new Map,X=0;function H(t="",e=0,s="",i=G){return`state-${t}${null!==s&&s.length>0?`${i}${s}`:""}-${e}`}s(H,"stateDomId");var V=s((t,e,s,r,o,a,c,l)=>{i.trace("items",e),e.forEach(e=>{switch(e.stmt){case S:case _:Z(t,e,s,r,o,a,c,l);break;case b:{Z(t,e.state1,s,r,o,a,c,l),Z(t,e.state2,s,r,o,a,c,l);const i="neo"===c,h={id:"edge"+X,start:e.state1.id,end:e.state2.id,arrowhead:"normal",arrowTypeEnd:i?"arrow_barb_neo":"arrow_barb",style:E,labelStyle:"",label:y.sanitizeText(e.description??"",n()),arrowheadStyle:$,labelpos:"c",labelType:C,thickness:D,classes:N,look:c};o.push(h),X++}}})},"setupDoc"),J=s((t,e="TB")=>{let s=e;if(t.doc)for(const e of t.doc)"dir"===e.stmt&&(s=e.value);return s},"getDir");function K(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 q(t){return t?.classes?.join(" ")??""}function Q(t){return t?.styles??[]}s(K,"insertOrUpdateNode"),s(q,"getClassesFromDbInfo"),s(Q,"getStylesFromDbInfo");var Z=s((t,e,s,r,o,a,c,l)=>{const h=e.id,d=s.get(h),u=q(d),p=Q(d),g=n();if(i.info("dataFetcher parsedItem",e,d,p),"root"!==h){let s=x;!0===e.start?s="stateStart":!1===e.start&&(s="stateEnd"),e.type!==_&&(s=e.type),U.get(h)||U.set(h,{id:h,shape:s,description:y.sanitizeText(h,g),cssClasses:`${u} ${w}`,cssStyles:p});const n=U.get(h);e.description&&(Array.isArray(n.description)?(n.shape=v,n.description.push(e.description)):n.description?.length&&n.description.length>0?(n.shape=v,n.description===h?n.description=[e.description]:n.description=[n.description,e.description]):(n.shape=x,n.description=e.description),n.description=y.sanitizeTextOrArray(n.description,g)),1===n.description?.length&&n.shape===v&&("group"===n.type?n.shape=A:n.shape=x),!n.type&&e.doc&&(i.info("Setting cluster for XCX",h,J(e)),n.type="group",n.isGroup=!0,n.dir=J(e),n.shape=e.type===T?I:A,n.cssClasses=`${n.cssClasses} ${B} ${a?F:""}`);const d={labelStyle:"",shape:n.shape,label:n.description,cssClasses:n.cssClasses,cssCompiledStyles:[],cssStyles:n.cssStyles,id:h,dir:n.dir,domId:H(h,X),type:n.type,isGroup:"group"===n.type,padding:8,rx:10,ry:10,look:c,labelType:"markdown"};if(d.shape===I&&(d.label=""),t&&"root"!==t.id&&(i.trace("Setting node ",h," to be child of its parent ",t.id),d.parentId=t.id),d.centerLabel=!0,e.note){const t={labelStyle:"",shape:"note",label:e.note.text,labelType:"markdown",cssClasses:R,cssStyles:[],cssCompiledStyles:[],id:h+j+"-"+X,domId:H(h,X,Y),type:n.type,isGroup:"group"===n.type,padding:g.flowchart?.padding,look:c,position:e.note.position},s=h+z,i={labelStyle:"",shape:"noteGroup",label:e.note.text,cssClasses:n.cssClasses,cssStyles:[],id:h+z,domId:H(h,X,P),type:"group",isGroup:!0,padding:16,look:c,position:e.note.position};X++,i.id=s,t.parentId=s,K(r,i,l),K(r,t,l),K(r,d,l);let a=h,u=t.id;"left of"===e.note.position&&(a=t.id,u=h),o.push({id:a+"-"+u,start:a,end:u,arrowhead:"none",arrowTypeEnd:"",style:E,labelStyle:"",classes:O,arrowheadStyle:$,labelpos:"c",labelType:C,thickness:D,look:c})}else K(r,d,l)}e.doc&&(i.trace("Adding nodes children "),V(e,e.doc,s,r,o,!a,c,l))},"dataFetcher"),tt=s(()=>{U.clear(),X=0},"reset"),et="[*]",st="start",it="[*]",nt="end",rt="color",ot="fill",at="bgFill",ct=",",lt=s(()=>new Map,"newClassesList"),ht=s(()=>({relations:[],states:new Map,documents:{}}),"newDoc"),dt=s(t=>JSON.parse(JSON.stringify(t)),"clone"),ut=class{constructor(t){this.version=t,this.nodes=[],this.edges=[],this.rootDoc=[],this.classes=lt(),this.documents={root:ht()},this.currentDocument=this.documents.root,this.startEndCount=0,this.dividerCnt=0,this.links=new Map,this.getAccTitle=a,this.setAccTitle=c,this.getAccDescription=l,this.setAccDescription=h,this.setDiagramTitle=d,this.getDiagramTitle=u,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)}static{s(this,"StateDB")}static{this.relationType={AGGREGATION:0,EXTENSION:1,COMPOSITION:2,DEPENDENCY:3}}extract(t){this.clear(!0);for(const e of Array.isArray(t)?t:t.doc)switch(e.stmt){case S:this.addState(e.id.trim(),e.type,e.doc,e.description,e.note);break;case b:this.addRelation(e.state1,e.state2,e.description);break;case"classDef":this.addStyleClass(e.id.trim(),e.classes);break;case"style":this.handleStyleDef(e);break;case"applyClass":this.setCssClass(e.id.trim(),e.styleClass);break;case"click":this.addLink(e.id,e.url,e.tooltip)}const e=this.getStates(),s=n();tt(),Z(void 0,this.getRootDocV2(),e,this.nodes,this.edges,!0,s.look,this.classes);for(const t of this.nodes)if(Array.isArray(t.label)){if(t.description=t.label.slice(1),t.isGroup&&t.description.length>0)throw new Error(`Group nodes can only have label. Remove the additional description for node [${t.id}]`);t.label=t.label[0]}}handleStyleDef(t){const e=t.id.trim().split(","),s=t.styleClass.split(",");for(const t of e){let e=this.getState(t);if(!e){const s=t.trim();this.addState(s),e=this.getState(s)}e&&(e.styles=s.map(t=>t.replace(/;/g,"")?.trim()))}}setRootDoc(t){i.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===b)return this.docTranslator(t,e.state1,!0),void this.docTranslator(t,e.state2,!1);if(e.stmt===S&&(e.id===et?(e.id=t.id+(s?"_start":"_end"),e.start=s):e.id=e.id.trim()),e.stmt!==k&&e.stmt!==S||!e.doc)return;const i=[];let n=[];for(const t of e.doc)if(t.type===T){const e=dt(t);e.doc=dt(n),i.push(e),n=[]}else n.push(t);if(i.length>0&&n.length>0){const t={stmt:S,id:p(),type:"divider",doc:dt(n)};i.push(dt(t)),e.doc=i}e.doc.forEach(t=>this.docTranslator(e,t,!0))}getRootDocV2(){return this.docTranslator({id:k,stmt:k},{id:k,stmt:k,doc:this.rootDoc},!0),{id:k,doc:this.rootDoc}}addState(t,e=_,s=void 0,r=void 0,o=void 0,a=void 0,c=void 0,l=void 0){const h=t?.trim();if(this.currentDocument.states.has(h)){const t=this.currentDocument.states.get(h);if(!t)throw new Error(`State not found: ${h}`);t.doc||(t.doc=s),t.type||(t.type=e)}else i.info("Adding state ",h,r),this.currentDocument.states.set(h,{stmt:S,id:h,descriptions:[],type:e,doc:s,note:o,classes:[],styles:[],textStyles:[]});if(r){i.info("Setting state description",h,r);(Array.isArray(r)?r:[r]).forEach(t=>this.addDescription(h,t.trim()))}if(o){const t=this.currentDocument.states.get(h);if(!t)throw new Error(`State not found: ${h}`);t.note=o,t.note.text=y.sanitizeText(t.note.text,n())}if(a){i.info("Setting state classes",h,a);(Array.isArray(a)?a:[a]).forEach(t=>this.setCssClass(h,t.trim()))}if(c){i.info("Setting state styles",h,c);(Array.isArray(c)?c:[c]).forEach(t=>this.setStyle(h,t.trim()))}if(l){i.info("Setting state styles",h,c);(Array.isArray(l)?l:[l]).forEach(t=>this.setTextStyle(h,t.trim()))}}clear(t){this.nodes=[],this.edges=[],this.documents={root:ht()},this.currentDocument=this.documents.root,this.startEndCount=0,this.classes=lt(),t||(this.links=new Map,g())}getState(t){return this.currentDocument.states.get(t)}getStates(){return this.currentDocument.states}logDocuments(){i.info("Documents = ",this.documents)}getRelations(){return this.currentDocument.relations}addLink(t,e,s){this.links.set(t,{url:e,tooltip:s}),i.warn("Adding link",t,e,s)}getLinks(){return this.links}startIdIfNeeded(t=""){return t===et?(this.startEndCount++,`${st}${this.startEndCount}`):t}startTypeIfNeeded(t="",e=_){return t===et?st:e}endIdIfNeeded(t=""){return t===it?(this.startEndCount++,`${nt}${this.startEndCount}`):t}endTypeIfNeeded(t="",e=_){return t===it?nt:e}addRelationObjs(t,e,s=""){const i=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(i,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:i,id2:o,relationTitle:y.sanitizeText(s,n())})}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 i=this.startIdIfNeeded(t.trim()),r=this.startTypeIfNeeded(t),o=this.endIdIfNeeded(e.trim()),a=this.endTypeIfNeeded(e);this.addState(i,r),this.addState(o,a),this.currentDocument.relations.push({id1:i,id2:o,relationTitle:s?y.sanitizeText(s,n()):void 0})}}addDescription(t,e){const s=this.currentDocument.states.get(t),i=e.startsWith(":")?e.replace(":","").trim():e;s?.descriptions?.push(y.sanitizeText(i,n()))}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(ct).forEach(t=>{const e=t.replace(/([^;]*);/,"$1").trim();if(RegExp(rt).exec(t)){const t=e.replace(ot,at).replace(rt,ot);s.textStyles.push(t)}s.styles.push(e)})}getClasses(){return this.classes}setCssClass(t,e){t.split(",").forEach(t=>{let s=this.getState(t);if(!s){const e=t.trim();this.addState(e),s=this.getState(e)}s?.classes?.push(e)})}setStyle(t,e){this.getState(t)?.styles?.push(e)}setTextStyle(t,e){this.getState(t)?.textStyles?.push(e)}getDirectionStatement(){return this.rootDoc.find(t=>"dir"===t.stmt)}getDirection(){return this.getDirectionStatement()?.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=n();return{nodes:this.nodes,edges:this.edges,other:{},config:t,direction:W(this.getRootDocV2())}}getConfig(){return n().state}},pt=s(t=>`\ndefs [id$="-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: ${t.strokeWidth||1};\n}\n\n.transition {\n stroke: ${t.transitionColor};\n stroke-width: ${t.strokeWidth||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: ${t.strokeWidth||1}px;\n}\n.node polygon {\n fill: ${t.mainBkg};\n stroke: ${t.stateBorder||t.nodeBorder};;\n stroke-width: ${t.strokeWidth||1}px;\n}\n[id$="-barbEnd"] {\n fill: ${t.lineColor};\n}\n\n.statediagram-cluster rect {\n fill: ${t.compositeTitleBackground};\n stroke: ${t.stateBorder||t.nodeBorder};\n stroke-width: ${t.strokeWidth||1}px;\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[id$="-dependencyStart"], [id$="-dependencyEnd"] {\n fill: ${t.lineColor};\n stroke: ${t.lineColor};\n stroke-width: ${t.strokeWidth||1};\n}\n\n.statediagramTitleText {\n text-anchor: middle;\n font-size: 18px;\n fill: ${t.textColor};\n}\n\n[data-look="neo"].statediagram-cluster rect {\n fill: ${t.mainBkg};\n stroke: ${t.useGradient?"url("+t.svgId+"-gradient)":t.stateBorder||t.nodeBorder};\n stroke-width: ${t.strokeWidth??1};\n}\n[data-look="neo"].statediagram-cluster rect.outer {\n rx: ${t.radius}px;\n ry: ${t.radius}px;\n filter: ${t.dropShadow?t.dropShadow.replace("url(#drop-shadow)",`url(${t.svgId}-drop-shadow)`):"none"}\n}\n`,"getStyles");export{ut as S,m as a,M as b,pt as s};
1
+ import{g as t}from"./chunk-55IACEB6-Csh8qgjO.js";import{s as e}from"./chunk-EDXVE4YY-DCPe-NtF.js";import{_ as s,l as i,c as n,r,u as o,a,b as c,g as l,s as h,q as d,t as u,T as p,k as y,z as g}from"./mermaid.core-C89m9NSM.js";var f=function(){var t=s(function(t,e,s,i){for(s=s||{},i=t.length;i--;s[t[i]]=e);return s},"o"),e=[1,2],i=[1,3],n=[1,4],r=[2,4],o=[1,9],a=[1,11],c=[1,16],l=[1,17],h=[1,18],d=[1,19],u=[1,33],p=[1,20],y=[1,21],g=[1,22],f=[1,23],m=[1,24],S=[1,26],k=[1,27],b=[1,28],_=[1,29],T=[1,30],E=[1,31],$=[1,32],C=[1,35],D=[1,36],x=[1,37],v=[1,38],I=[1,34],A=[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:s(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:s(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 c=r[a],l=r[a-2].trim();if(r[a].match(":")){var h=r[a].split(":");c=h[0],l=[l,h[1]]}this.$={stmt:"state",id:c,type:"default",description:l};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:i,6:n},{1:[3]},{3:5,4:e,5:i,6:n},{3:6,4:e,5:i,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:c,17:l,19:h,22:d,24:u,25:p,26:y,27:g,28:f,29:m,32:25,33:S,35:k,37:b,38:_,41:T,45:E,48:$,51:C,52:D,53:x,54:v,57:I},t(A,[2,5]),{9:39,10:12,11:13,12:14,13:15,16:c,17:l,19:h,22:d,24:u,25:p,26:y,27:g,28:f,29:m,32:25,33:S,35:k,37:b,38:_,41:T,45:E,48:$,51:C,52:D,53:x,54:v,57:I},t(A,[2,7]),t(A,[2,8]),t(A,[2,9]),t(A,[2,10]),t(A,[2,11]),t(A,[2,12],{14:[1,40],15:[1,41]}),t(A,[2,16]),{18:[1,42]},t(A,[2,18],{20:[1,43]}),{23:[1,44]},t(A,[2,22]),t(A,[2,23]),t(A,[2,24]),t(A,[2,25]),{30:45,31:[1,46],59:[1,47],60:[1,48]},t(A,[2,28]),{34:[1,49]},{36:[1,50]},t(A,[2,31]),{13:51,24:u,57:I},{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(A,[2,38]),t(A,[2,39]),t(A,[2,40]),t(A,[2,41]),t(A,[2,6]),t(A,[2,13]),{13:58,24:u,57:I},t(A,[2,17]),t(w,r,{7:59}),{24:[1,60]},{24:[1,61]},{23:[1,62]},{24:[2,48]},{24:[2,49]},t(A,[2,29]),t(A,[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(A,[2,14],{14:[1,71]}),{4:o,5:a,8:8,9:10,10:12,11:13,12:14,13:15,16:c,17:l,19:h,21:[1,72],22:d,24:u,25:p,26:y,27:g,28:f,29:m,32:25,33:S,35:k,37:b,38:_,41:T,45:E,48:$,51:C,52:D,53:x,54:v,57:I},t(A,[2,20],{20:[1,73]}),{31:[1,74]},{24:[1,75]},{39:[1,76]},{39:[1,77]},t(A,[2,34]),t(A,[2,35]),t(A,[2,36]),t(A,[2,37]),t(L,[2,46]),t(L,[2,47]),t(A,[2,15]),t(A,[2,19]),t(w,r,{7:78}),t(A,[2,26]),t(A,[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:c,17:l,19:h,21:[1,81],22:d,24:u,25:p,26:y,27:g,28:f,29:m,32:25,33:S,35:k,37:b,38:_,41:T,45:E,48:$,51:C,52:D,53:x,54:v,57:I},t(A,[2,32]),t(A,[2,33]),t(A,[2,21])],defaultActions:{5:[2,1],6:[2,2],47:[2,48],48:[2,49]},parseError:s(function(t,e){if(!e.recoverable){var s=new Error(t);throw s.hash=e,s}this.trace(t)},"parseError"),parse:s(function(t){var e=this,i=[0],n=[],r=[null],o=[],a=this.table,c="",l=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 f=u.options&&u.options.ranges;function m(){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,s(function(t){i.length=i.length-2*t,r.length=r.length-t,o.length=o.length-t},"popStack"),s(m,"lex");for(var S,k,b,_,T,E,$,C,D={};;){if(k=i[i.length-1],this.defaultActions[k]?b=this.defaultActions[k]:(null==S&&(S=m()),b=a[k]&&a[k][S]),void 0===b||!b.length||!b[0]){var x="";for(T in C=[],a[k])this.terminals_[T]&&T>2&&C.push("'"+this.terminals_[T]+"'");x=u.showPosition?"Parse error on line "+(l+1)+":\n"+u.showPosition()+"\nExpecting "+C.join(", ")+", got '"+(this.terminals_[S]||S)+"'":"Parse error on line "+(l+1)+": Unexpected "+(1==S?"end of input":"'"+(this.terminals_[S]||S)+"'"),this.parseError(x,{text:u.match,token:this.terminals_[S]||S,line:u.yylineno,loc:g,expected:C})}if(b[0]instanceof Array&&b.length>1)throw new Error("Parse Error: multiple actions possible at state: "+k+", token: "+S);switch(b[0]){case 1:i.push(S),r.push(u.yytext),o.push(u.yylloc),i.push(b[1]),S=null,h=u.yyleng,c=u.yytext,l=u.yylineno,g=u.yylloc;break;case 2:if(E=this.productions_[b[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},f&&(D._$.range=[o[o.length-(E||1)].range[0],o[o.length-1].range[1]]),void 0!==(_=this.performAction.apply(D,[c,h,l,p.yy,b[1],r,o].concat(d))))return _;E&&(i=i.slice(0,-1*E*2),r=r.slice(0,-1*E),o=o.slice(0,-1*E)),i.push(this.productions_[b[1]][0]),r.push(D.$),o.push(D._$),$=a[i[i.length-2]][i[i.length-1]],i.push($);break;case 3:return!0}}return!0},"parse")},O=function(){return{EOF:1,parseError:s(function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},"parseError"),setInput:s(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:s(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:s(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:s(function(){return this._more=!0,this},"more"),reject:s(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:s(function(t){this.unput(this.match.slice(t))},"less"),pastInput:s(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:s(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:s(function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},"showPosition"),test_match:s(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:s(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:s(function(){var t=this.next();return t||this.lex()},"lex"),begin:s(function(t){this.conditionStack.push(t)},"begin"),popState:s(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:s(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:s(function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},"topState"),pushState:s(function(t){this.begin(t)},"pushState"),stateStackSize:s(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:s(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;]|:[^:\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,79],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,s(R,"Parser"),R.prototype=N,N.Parser=R,new R}();f.parser=f;var m=f,S="state",k="root",b="relation",_="default",T="divider",E="fill:none",$="fill: #333",C="markdown",D="normal",x="rect",v="rectWithTitle",I="divider",A="roundedWithTitle",L="statediagram",w=`${L}-state`,N="transition",O=`${N} note-edge`,R=`${L}-note`,B=`${L}-cluster`,F=`${L}-cluster-alt`,P="parent",Y="note",G="----",j=`${G}${Y}`,z=`${G}${P}`,W=s((t,e="TB")=>{if(!t.doc)return e;let s=e;for(const e of t.doc)"dir"===e.stmt&&(s=e.value);return s},"getDir"),M={getClasses:s(function(t,e){return e.db.getClasses()},"getClasses"),draw:s(async function(s,a,c,l){i.info("REF0:"),i.info("Drawing state diagram (v2)",a);const{securityLevel:h,state:d,layout:u}=n();l.db.extract(l.db.getRootDocV2());const p=l.db.getData(),y=t(a,h);p.type=l.type,p.layoutAlgorithm=u,p.nodeSpacing=d?.nodeSpacing||50,p.rankSpacing=d?.rankSpacing||50;"neo"===n().look?p.markers=["barbNeo"]:p.markers=["barb"],p.diagramId=a,await r(p,y);try{("function"==typeof l.db.getLinks?l.db.getLinks():new Map).forEach((t,e)=>{const s="string"==typeof e?e:"string"==typeof e?.id?e.id:"";if(!s)return void i.warn("⚠️ Invalid or missing stateId from key:",JSON.stringify(e));const n=y.node()?.querySelectorAll("g");let r;if(n?.forEach(t=>{const e=t.textContent?.trim();e===s&&(r=t)}),!r)return void i.warn("⚠️ Could not find node matching text:",s);const o=r.parentNode;if(!o)return void i.warn("⚠️ Node has no parent, cannot wrap:",s);const a=document.createElementNS("http://www.w3.org/2000/svg","a"),c=t.url.replace(/^"+|"+$/g,"");if(a.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",c),a.setAttribute("target","_blank"),t.tooltip){const e=t.tooltip.replace(/^"+|"+$/g,"");a.setAttribute("title",e)}o.replaceChild(a,r),a.appendChild(r),i.info("🔗 Wrapped node in <a> tag for:",s,t.url)})}catch(t){i.error("❌ Error injecting clickable links:",t)}o.insertTitle(y,"statediagramTitleText",d?.titleTopMargin??25,l.db.getDiagramTitle()),e(y,8,L,d?.useMaxWidth??!0)},"draw"),getDir:W},U=new Map,X=0;function H(t="",e=0,s="",i=G){return`state-${t}${null!==s&&s.length>0?`${i}${s}`:""}-${e}`}s(H,"stateDomId");var V=s((t,e,s,r,o,a,c,l)=>{i.trace("items",e),e.forEach(e=>{switch(e.stmt){case S:case _:Z(t,e,s,r,o,a,c,l);break;case b:{Z(t,e.state1,s,r,o,a,c,l),Z(t,e.state2,s,r,o,a,c,l);const i="neo"===c,h={id:"edge"+X,start:e.state1.id,end:e.state2.id,arrowhead:"normal",arrowTypeEnd:i?"arrow_barb_neo":"arrow_barb",style:E,labelStyle:"",label:y.sanitizeText(e.description??"",n()),arrowheadStyle:$,labelpos:"c",labelType:C,thickness:D,classes:N,look:c};o.push(h),X++}}})},"setupDoc"),J=s((t,e="TB")=>{let s=e;if(t.doc)for(const e of t.doc)"dir"===e.stmt&&(s=e.value);return s},"getDir");function K(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 q(t){return t?.classes?.join(" ")??""}function Q(t){return t?.styles??[]}s(K,"insertOrUpdateNode"),s(q,"getClassesFromDbInfo"),s(Q,"getStylesFromDbInfo");var Z=s((t,e,s,r,o,a,c,l)=>{const h=e.id,d=s.get(h),u=q(d),p=Q(d),g=n();if(i.info("dataFetcher parsedItem",e,d,p),"root"!==h){let s=x;!0===e.start?s="stateStart":!1===e.start&&(s="stateEnd"),e.type!==_&&(s=e.type),U.get(h)||U.set(h,{id:h,shape:s,description:y.sanitizeText(h,g),cssClasses:`${u} ${w}`,cssStyles:p});const n=U.get(h);e.description&&(Array.isArray(n.description)?(n.shape=v,n.description.push(e.description)):n.description?.length&&n.description.length>0?(n.shape=v,n.description===h?n.description=[e.description]:n.description=[n.description,e.description]):(n.shape=x,n.description=e.description),n.description=y.sanitizeTextOrArray(n.description,g)),1===n.description?.length&&n.shape===v&&("group"===n.type?n.shape=A:n.shape=x),!n.type&&e.doc&&(i.info("Setting cluster for XCX",h,J(e)),n.type="group",n.isGroup=!0,n.dir=J(e),n.shape=e.type===T?I:A,n.cssClasses=`${n.cssClasses} ${B} ${a?F:""}`);const d={labelStyle:"",shape:n.shape,label:n.description,cssClasses:n.cssClasses,cssCompiledStyles:[],cssStyles:n.cssStyles,id:h,dir:n.dir,domId:H(h,X),type:n.type,isGroup:"group"===n.type,padding:8,rx:10,ry:10,look:c,labelType:"markdown"};if(d.shape===I&&(d.label=""),t&&"root"!==t.id&&(i.trace("Setting node ",h," to be child of its parent ",t.id),d.parentId=t.id),d.centerLabel=!0,e.note){const t={labelStyle:"",shape:"note",label:e.note.text,labelType:"markdown",cssClasses:R,cssStyles:[],cssCompiledStyles:[],id:h+j+"-"+X,domId:H(h,X,Y),type:n.type,isGroup:"group"===n.type,padding:g.flowchart?.padding,look:c,position:e.note.position},s=h+z,i={labelStyle:"",shape:"noteGroup",label:e.note.text,cssClasses:n.cssClasses,cssStyles:[],id:h+z,domId:H(h,X,P),type:"group",isGroup:!0,padding:16,look:c,position:e.note.position};X++,i.id=s,t.parentId=s,K(r,i,l),K(r,t,l),K(r,d,l);let a=h,u=t.id;"left of"===e.note.position&&(a=t.id,u=h),o.push({id:a+"-"+u,start:a,end:u,arrowhead:"none",arrowTypeEnd:"",style:E,labelStyle:"",classes:O,arrowheadStyle:$,labelpos:"c",labelType:C,thickness:D,look:c})}else K(r,d,l)}e.doc&&(i.trace("Adding nodes children "),V(e,e.doc,s,r,o,!a,c,l))},"dataFetcher"),tt=s(()=>{U.clear(),X=0},"reset"),et="[*]",st="start",it="[*]",nt="end",rt="color",ot="fill",at="bgFill",ct=",",lt=s(()=>new Map,"newClassesList"),ht=s(()=>({relations:[],states:new Map,documents:{}}),"newDoc"),dt=s(t=>JSON.parse(JSON.stringify(t)),"clone"),ut=class{constructor(t){this.version=t,this.nodes=[],this.edges=[],this.rootDoc=[],this.classes=lt(),this.documents={root:ht()},this.currentDocument=this.documents.root,this.startEndCount=0,this.dividerCnt=0,this.links=new Map,this.getAccTitle=a,this.setAccTitle=c,this.getAccDescription=l,this.setAccDescription=h,this.setDiagramTitle=d,this.getDiagramTitle=u,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)}static{s(this,"StateDB")}static{this.relationType={AGGREGATION:0,EXTENSION:1,COMPOSITION:2,DEPENDENCY:3}}extract(t){this.clear(!0);for(const e of Array.isArray(t)?t:t.doc)switch(e.stmt){case S:this.addState(e.id.trim(),e.type,e.doc,e.description,e.note);break;case b:this.addRelation(e.state1,e.state2,e.description);break;case"classDef":this.addStyleClass(e.id.trim(),e.classes);break;case"style":this.handleStyleDef(e);break;case"applyClass":this.setCssClass(e.id.trim(),e.styleClass);break;case"click":this.addLink(e.id,e.url,e.tooltip)}const e=this.getStates(),s=n();tt(),Z(void 0,this.getRootDocV2(),e,this.nodes,this.edges,!0,s.look,this.classes);for(const t of this.nodes)if(Array.isArray(t.label)){if(t.description=t.label.slice(1),t.isGroup&&t.description.length>0)throw new Error(`Group nodes can only have label. Remove the additional description for node [${t.id}]`);t.label=t.label[0]}}handleStyleDef(t){const e=t.id.trim().split(","),s=t.styleClass.split(",");for(const t of e){let e=this.getState(t);if(!e){const s=t.trim();this.addState(s),e=this.getState(s)}e&&(e.styles=s.map(t=>t.replace(/;/g,"")?.trim()))}}setRootDoc(t){i.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===b)return this.docTranslator(t,e.state1,!0),void this.docTranslator(t,e.state2,!1);if(e.stmt===S&&(e.id===et?(e.id=t.id+(s?"_start":"_end"),e.start=s):e.id=e.id.trim()),e.stmt!==k&&e.stmt!==S||!e.doc)return;const i=[];let n=[];for(const t of e.doc)if(t.type===T){const e=dt(t);e.doc=dt(n),i.push(e),n=[]}else n.push(t);if(i.length>0&&n.length>0){const t={stmt:S,id:p(),type:"divider",doc:dt(n)};i.push(dt(t)),e.doc=i}e.doc.forEach(t=>this.docTranslator(e,t,!0))}getRootDocV2(){return this.docTranslator({id:k,stmt:k},{id:k,stmt:k,doc:this.rootDoc},!0),{id:k,doc:this.rootDoc}}addState(t,e=_,s=void 0,r=void 0,o=void 0,a=void 0,c=void 0,l=void 0){const h=t?.trim();if(this.currentDocument.states.has(h)){const t=this.currentDocument.states.get(h);if(!t)throw new Error(`State not found: ${h}`);t.doc||(t.doc=s),t.type||(t.type=e)}else i.info("Adding state ",h,r),this.currentDocument.states.set(h,{stmt:S,id:h,descriptions:[],type:e,doc:s,note:o,classes:[],styles:[],textStyles:[]});if(r){i.info("Setting state description",h,r);(Array.isArray(r)?r:[r]).forEach(t=>this.addDescription(h,t.trim()))}if(o){const t=this.currentDocument.states.get(h);if(!t)throw new Error(`State not found: ${h}`);t.note=o,t.note.text=y.sanitizeText(t.note.text,n())}if(a){i.info("Setting state classes",h,a);(Array.isArray(a)?a:[a]).forEach(t=>this.setCssClass(h,t.trim()))}if(c){i.info("Setting state styles",h,c);(Array.isArray(c)?c:[c]).forEach(t=>this.setStyle(h,t.trim()))}if(l){i.info("Setting state styles",h,c);(Array.isArray(l)?l:[l]).forEach(t=>this.setTextStyle(h,t.trim()))}}clear(t){this.nodes=[],this.edges=[],this.documents={root:ht()},this.currentDocument=this.documents.root,this.startEndCount=0,this.classes=lt(),t||(this.links=new Map,g())}getState(t){return this.currentDocument.states.get(t)}getStates(){return this.currentDocument.states}logDocuments(){i.info("Documents = ",this.documents)}getRelations(){return this.currentDocument.relations}addLink(t,e,s){this.links.set(t,{url:e,tooltip:s}),i.warn("Adding link",t,e,s)}getLinks(){return this.links}startIdIfNeeded(t=""){return t===et?(this.startEndCount++,`${st}${this.startEndCount}`):t}startTypeIfNeeded(t="",e=_){return t===et?st:e}endIdIfNeeded(t=""){return t===it?(this.startEndCount++,`${nt}${this.startEndCount}`):t}endTypeIfNeeded(t="",e=_){return t===it?nt:e}addRelationObjs(t,e,s=""){const i=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(i,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:i,id2:o,relationTitle:y.sanitizeText(s,n())})}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 i=this.startIdIfNeeded(t.trim()),r=this.startTypeIfNeeded(t),o=this.endIdIfNeeded(e.trim()),a=this.endTypeIfNeeded(e);this.addState(i,r),this.addState(o,a),this.currentDocument.relations.push({id1:i,id2:o,relationTitle:s?y.sanitizeText(s,n()):void 0})}}addDescription(t,e){const s=this.currentDocument.states.get(t),i=e.startsWith(":")?e.replace(":","").trim():e;s?.descriptions?.push(y.sanitizeText(i,n()))}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(ct).forEach(t=>{const e=t.replace(/([^;]*);/,"$1").trim();if(RegExp(rt).exec(t)){const t=e.replace(ot,at).replace(rt,ot);s.textStyles.push(t)}s.styles.push(e)})}getClasses(){return this.classes}setCssClass(t,e){t.split(",").forEach(t=>{let s=this.getState(t);if(!s){const e=t.trim();this.addState(e),s=this.getState(e)}s?.classes?.push(e)})}setStyle(t,e){this.getState(t)?.styles?.push(e)}setTextStyle(t,e){this.getState(t)?.textStyles?.push(e)}getDirectionStatement(){return this.rootDoc.find(t=>"dir"===t.stmt)}getDirection(){return this.getDirectionStatement()?.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=n();return{nodes:this.nodes,edges:this.edges,other:{},config:t,direction:W(this.getRootDocV2())}}getConfig(){return n().state}},pt=s(t=>`\ndefs [id$="-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: ${t.strokeWidth||1};\n}\n\n.transition {\n stroke: ${t.transitionColor};\n stroke-width: ${t.strokeWidth||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: ${t.strokeWidth||1}px;\n}\n.node polygon {\n fill: ${t.mainBkg};\n stroke: ${t.stateBorder||t.nodeBorder};;\n stroke-width: ${t.strokeWidth||1}px;\n}\n[id$="-barbEnd"] {\n fill: ${t.lineColor};\n}\n\n.statediagram-cluster rect {\n fill: ${t.compositeTitleBackground};\n stroke: ${t.stateBorder||t.nodeBorder};\n stroke-width: ${t.strokeWidth||1}px;\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[id$="-dependencyStart"], [id$="-dependencyEnd"] {\n fill: ${t.lineColor};\n stroke: ${t.lineColor};\n stroke-width: ${t.strokeWidth||1};\n}\n\n.statediagramTitleText {\n text-anchor: middle;\n font-size: 18px;\n fill: ${t.textColor};\n}\n\n[data-look="neo"].statediagram-cluster rect {\n fill: ${t.mainBkg};\n stroke: ${t.useGradient?"url("+t.svgId+"-gradient)":t.stateBorder||t.nodeBorder};\n stroke-width: ${t.strokeWidth??1};\n}\n[data-look="neo"].statediagram-cluster rect.outer {\n rx: ${t.radius}px;\n ry: ${t.radius}px;\n filter: ${t.dropShadow?t.dropShadow.replace("url(#drop-shadow)",`url(${t.svgId}-drop-shadow)`):"none"}\n}\n`,"getStyles");export{ut as S,m as a,M as b,pt as s};
@@ -1 +1 @@
1
- import{_ as t}from"./mermaid.core-Ch6a1N6x.js";var i=class{constructor(t){this.init=t,this.records=this.init()}static{t(this,"ImperativeState")}reset(){this.records=this.init()}};export{i as I};
1
+ import{_ as t}from"./mermaid.core-C89m9NSM.js";var i=class{constructor(t){this.init=t,this.records=this.init()}static{t(this,"ImperativeState")}reset(){this.records=this.init()}};export{i as I};
@@ -1 +1 @@
1
- import{_ as t,d as a,n as r,j as e}from"./mermaid.core-Ch6a1N6x.js";var s=t((t,a)=>{const r=t.append("rect");if(r.attr("x",a.x),r.attr("y",a.y),r.attr("fill",a.fill),r.attr("stroke",a.stroke),r.attr("width",a.width),r.attr("height",a.height),a.name&&r.attr("name",a.name),a.rx&&r.attr("rx",a.rx),a.ry&&r.attr("ry",a.ry),void 0!==a.attrs)for(const t in a.attrs)r.attr(t,a.attrs[t]);return a.class&&r.attr("class",a.class),r},"drawRect"),n=t((t,a)=>{const r={x:a.startx,y:a.starty,width:a.stopx-a.startx,height:a.stopy-a.starty,fill:a.fill,stroke:a.stroke,class:"rect"};s(t,r).lower()},"drawBackgroundRect"),o=t((t,a)=>{const e=a.text.replace(r," "),s=t.append("text");s.attr("x",a.x),s.attr("y",a.y),s.attr("class","legend"),s.style("text-anchor",a.anchor),a.class&&s.attr("class",a.class);const n=s.append("tspan");return n.attr("x",a.x+2*a.textMargin),n.text(e),s},"drawText"),i=t((t,a,r,s)=>{const n=t.append("image");n.attr("x",a),n.attr("y",r);const o=e.sanitizeUrl(s);n.attr("xlink:href",o)},"drawImage"),l=t((t,a,r,s)=>{const n=t.append("use");n.attr("x",a),n.attr("y",r);const o=e.sanitizeUrl(s);n.attr("xlink:href",`#${o}`)},"drawEmbeddedImage"),d=t(()=>({x:0,y:0,width:100,height:100,fill:"#EDF2AE",stroke:"#666",anchor:"start",rx:0,ry:0}),"getNoteRect"),x=t(()=>({x:0,y:0,width:100,height:100,"text-anchor":"start",style:"#666",textMargin:0,rx:0,ry:0,tspan:!0}),"getTextObj"),c=t(()=>{let t=a(".mermaidTooltip");return t.empty()&&(t=a("body").append("div").attr("class","mermaidTooltip").style("opacity",0).style("position","absolute").style("text-align","center").style("max-width","200px").style("padding","2px").style("font-size","12px").style("background","#ffffde").style("border","1px solid #333").style("border-radius","2px").style("pointer-events","none").style("z-index","100")),t},"createTooltip");export{n as a,x as b,c,s as d,l as e,i as f,d as g,o as h};
1
+ import{_ as t,d as a,n as r,j as e}from"./mermaid.core-C89m9NSM.js";var s=t((t,a)=>{const r=t.append("rect");if(r.attr("x",a.x),r.attr("y",a.y),r.attr("fill",a.fill),r.attr("stroke",a.stroke),r.attr("width",a.width),r.attr("height",a.height),a.name&&r.attr("name",a.name),a.rx&&r.attr("rx",a.rx),a.ry&&r.attr("ry",a.ry),void 0!==a.attrs)for(const t in a.attrs)r.attr(t,a.attrs[t]);return a.class&&r.attr("class",a.class),r},"drawRect"),n=t((t,a)=>{const r={x:a.startx,y:a.starty,width:a.stopx-a.startx,height:a.stopy-a.starty,fill:a.fill,stroke:a.stroke,class:"rect"};s(t,r).lower()},"drawBackgroundRect"),o=t((t,a)=>{const e=a.text.replace(r," "),s=t.append("text");s.attr("x",a.x),s.attr("y",a.y),s.attr("class","legend"),s.style("text-anchor",a.anchor),a.class&&s.attr("class",a.class);const n=s.append("tspan");return n.attr("x",a.x+2*a.textMargin),n.text(e),s},"drawText"),i=t((t,a,r,s)=>{const n=t.append("image");n.attr("x",a),n.attr("y",r);const o=e.sanitizeUrl(s);n.attr("xlink:href",o)},"drawImage"),l=t((t,a,r,s)=>{const n=t.append("use");n.attr("x",a),n.attr("y",r);const o=e.sanitizeUrl(s);n.attr("xlink:href",`#${o}`)},"drawEmbeddedImage"),d=t(()=>({x:0,y:0,width:100,height:100,fill:"#EDF2AE",stroke:"#666",anchor:"start",rx:0,ry:0}),"getNoteRect"),x=t(()=>({x:0,y:0,width:100,height:100,"text-anchor":"start",style:"#666",textMargin:0,rx:0,ry:0,tspan:!0}),"getTextObj"),c=t(()=>{let t=a(".mermaidTooltip");return t.empty()&&(t=a("body").append("div").attr("class","mermaidTooltip").style("opacity",0).style("position","absolute").style("text-align","center").style("max-width","200px").style("padding","2px").style("font-size","12px").style("background","#ffffde").style("border","1px solid #333").style("border-radius","2px").style("pointer-events","none").style("z-index","100")),t},"createTooltip");export{n as a,x as b,c,s as d,l as e,i as f,d as g,o as h};
@@ -0,0 +1 @@
1
+ import{s as r,c as s,a as t,C as o}from"./chunk-4TB4RGXK-DpY00B8-.js";import{_ as i}from"./mermaid.core-C89m9NSM.js";import"./chunk-FMBD7UC4-DAo4g5fP.js";import"./chunk-YZCP3GAM-DELqvesl.js";import"./chunk-55IACEB6-Csh8qgjO.js";import"./chunk-EDXVE4YY-DCPe-NtF.js";import"./purify.es-DBOWJxv3.js";import"./index-TeLD_8PN.js";import"react/jsx-runtime";import"react";import"./enums.js";import"./commons-D9Mh1s5L.js";import"./settings-BONQQsPx.js";import"./constants.js";import"./LoaderLayer-CXFK-kAz.js";import"./websocket-C4G3j9Rm.js";import"./index-o2jBRnrQ.js";import"motion/react";import"react-dom";import"swr";import"@ably/spaces";import"@ably/spaces/react";import"ably";import"ably/liveobjects";import"ably/react";import"@ably/spaces/dist/mjs/react";import"./string-LeDn2fkG.js";import"./memoize-CPUrcYQl.js";var m={parser:t,get db(){return new o},renderer:s,styles:r,init:i(r=>{r.class||(r.class={}),r.class.arrowMarkerAbsolute=r.arrowMarkerAbsolute},"init")};export{m as diagram};
@@ -0,0 +1 @@
1
+ import{s as r,c as s,a as t,C as o}from"./chunk-4TB4RGXK-DpY00B8-.js";import{_ as i}from"./mermaid.core-C89m9NSM.js";import"./chunk-FMBD7UC4-DAo4g5fP.js";import"./chunk-YZCP3GAM-DELqvesl.js";import"./chunk-55IACEB6-Csh8qgjO.js";import"./chunk-EDXVE4YY-DCPe-NtF.js";import"./purify.es-DBOWJxv3.js";import"./index-TeLD_8PN.js";import"react/jsx-runtime";import"react";import"./enums.js";import"./commons-D9Mh1s5L.js";import"./settings-BONQQsPx.js";import"./constants.js";import"./LoaderLayer-CXFK-kAz.js";import"./websocket-C4G3j9Rm.js";import"./index-o2jBRnrQ.js";import"motion/react";import"react-dom";import"swr";import"@ably/spaces";import"@ably/spaces/react";import"ably";import"ably/liveobjects";import"ably/react";import"@ably/spaces/dist/mjs/react";import"./string-LeDn2fkG.js";import"./memoize-CPUrcYQl.js";var m={parser:t,get db(){return new o},renderer:s,styles:r,init:i(r=>{r.class||(r.class={}),r.class.arrowMarkerAbsolute=r.arrowMarkerAbsolute},"init")};export{m as diagram};
@@ -0,0 +1 @@
1
+ import{b as r}from"./graph-DcE5swO6.js";function o(o){return r(o,4)}export{o as c};
@@ -1 +1 @@
1
- import{f as e,s as t,N as n}from"./settings-BIQ7IqJl.js";import{isValidElement as o,Children as s,cloneElement as r}from"react";let c=null;const i=async()=>(c||(e("loading XLSX..."),c=await import("./xlsx-XBWnafwQ.js")),c),a=e=>{if(!e)return"";if("string"==typeof e||"number"==typeof e)return e+"";if(Array.isArray(e))return e.map(a).join("");if(o(e)&&e.props.children){const t=e.props.children;return Array.isArray(t)?t.map(a).join(""):a(t)}return""};function l(){return"undefined"!=typeof window}const f=(e,t)=>{if("undefined"!=typeof document&&l()){const n=document.createElement("a");n.style.display="none",n.setAttribute("href",e),n.setAttribute("download",t),n.setAttribute("target","_blank"),document.body.appendChild(n),n.click(),document.body.removeChild(n),setTimeout(()=>{l()&&window.URL.revokeObjectURL(e)},100)}};function p(e,t="file"){if(l()){const n=new Blob([e],{type:e.type||"application/octet-stream"}),o=window.URL.createObjectURL(n);f(o,t)}}async function u(e,t){if("undefined"!=typeof document){const n=await fetch(e);if(!n.ok)throw new Error(`HTTP error! Status: ${n.status}`);const o=await n.blob(),s=URL.createObjectURL(o),r=document.createElement("a");r.href=s,r.download=t,r.dispatchEvent(new MouseEvent("click")),URL.revokeObjectURL(s)}}const y=(e,t="file.csv")=>{p(new Blob([e.map(e=>e.join(",")).join("\n")],{type:"text/csv"}),t)},d=async(e,t="file.xlsx")=>{const{utils:n}=await i(),o=n.book_new();o.Props={Title:t,Subject:t,Author:"Juki",CreatedDate:new Date};for(const{name:t,autofilter:s,cols:r,rows:c,styles:i}of e){const e={s:{c:1e7,r:1e7},e:{c:0,r:0}};o.SheetNames.push(t),o.Sheets[t]={},o.Sheets[t]["!rows"]=[],Object.entries(c).forEach(([s,r])=>{const c=+s;r.height&&(o.Sheets[t]["!rows"][c]={hpx:r.height}),Object.entries(r.cells).forEach(([s,r])=>{const a=+s;e.s.r>c&&(e.s.r=c),e.s.c>a&&(e.s.c=a),e.e.r<c&&(e.e.r=c),e.e.c<a&&(e.e.c=a);const l={v:r.text,t:"s"};if(null==l.v)return;const f=n.encode_cell({c:a,r:c});if("number"==typeof l.v?l.t="n":"boolean"==typeof l.v?l.t="b":(l.v,Date),l.s={},"string"==typeof l.v&&l.v.includes("\n")&&(l.s.alignment={wrapText:!0}),"number"==typeof r.style&&i?.[r.style]){const e=i[r.style].bgcolor;"string"==typeof e&&(l.s.fill={fgColor:{rgb:e.replace("#","")}});const t=i[r.style].color;"string"==typeof t&&(l.s.font||(l.s.font={}),l.s.font.color={rgb:t.replace("#","")}),i[r.style].font?.bold&&(l.s.font||(l.s.font={}),l.s.font.bold=!0);const n=i[r.style].align;"string"==typeof n&&(l.s.alignment||(l.s.alignment={}),l.s.alignment.horizontal=n);const o=i[r.style].valign;"string"==typeof o&&(l.s.alignment||(l.s.alignment={}),l.s.alignment.vertical=o)}o.Sheets[t][f]=l})}),e.s.c<1e7&&(o.Sheets[t]["!ref"]=n.encode_range(e)),s?.ref&&(o.Sheets[t]["!autofilter"]={ref:s?.ref}),o.Sheets[t]["!cols"]||(o.Sheets[t]["!cols"]=[]),Object.entries(r||{}).forEach(([e,n])=>{const s=+e;o.Sheets[t]["!cols"][s]||(o.Sheets[t]["!cols"][s]={}),n.width&&(o.Sheets[t]["!cols"][s].wpx=n.width)})}return o},h=async(e,n="file.xlsx")=>{const o=await d(e,n),{write:s}=await i(),r=s(o,{bookType:"xlsx",type:"binary"});p(new Blob([t(r)],{type:"application/octet-stream"}),n)},b=(e,t)=>"function"==typeof e?e(t):s.map(e,e=>e?r(e,t):e),m=(e,t,n,o,s,r,c,i,a,l,f,p,u,y,d)=>{let h="";return[e,t,n,o,s,r,c,i,a,l,f,p,u,y,d].forEach(e=>{if(e)if("string"==typeof e)h+=(h?" ":"")+e;else for(const t in e)e[t]&&(h+=(h?" ":"")+t)}),h},w=(e,t)=>e===t||Array.isArray(e)&&e.includes(t);function g(e){return new Promise(t=>{e.toBlob(t)})}const v=e=>e.current?.scrollWidth>e.current?.clientWidth;function j(){return"production"!==n}const S=e=>{if(l()){const t=window.open(e,"_blank","noopener,noreferrer");t&&(t.opener=null)}},x=e=>e.trim().replace(/\/+/g,"/").replace(/^\/+/,"").replace(/\/+$/,"");export{y as a,f as b,m as c,p as d,h as e,u as f,a as g,i as h,l as i,j,v as k,w as l,x as n,S as o,b as r,d as s,g as t};
1
+ import{f as e,s as t,N as n}from"./settings-BONQQsPx.js";import{isValidElement as o,Children as s,cloneElement as r}from"react";let c=null;const i=async()=>(c||(e("loading XLSX..."),c=await import("./xlsx-XBWnafwQ.js")),c),a=e=>{if(!e)return"";if("string"==typeof e||"number"==typeof e)return e+"";if(Array.isArray(e))return e.map(a).join("");if(o(e)&&e.props.children){const t=e.props.children;return Array.isArray(t)?t.map(a).join(""):a(t)}return""};function l(){return"undefined"!=typeof window}const f=(e,t)=>{if("undefined"!=typeof document&&l()){const n=document.createElement("a");n.style.display="none",n.setAttribute("href",e),n.setAttribute("download",t),n.setAttribute("target","_blank"),document.body.appendChild(n),n.click(),document.body.removeChild(n),setTimeout(()=>{l()&&window.URL.revokeObjectURL(e)},100)}};function p(e,t="file"){if(l()){const n=new Blob([e],{type:e.type||"application/octet-stream"}),o=window.URL.createObjectURL(n);f(o,t)}}async function u(e,t){if("undefined"!=typeof document){const n=await fetch(e);if(!n.ok)throw new Error(`HTTP error! Status: ${n.status}`);const o=await n.blob(),s=URL.createObjectURL(o),r=document.createElement("a");r.href=s,r.download=t,r.dispatchEvent(new MouseEvent("click")),URL.revokeObjectURL(s)}}const y=(e,t="file.csv")=>{p(new Blob([e.map(e=>e.join(",")).join("\n")],{type:"text/csv"}),t)},d=async(e,t="file.xlsx")=>{const{utils:n}=await i(),o=n.book_new();o.Props={Title:t,Subject:t,Author:"Juki",CreatedDate:new Date};for(const{name:t,autofilter:s,cols:r,rows:c,styles:i}of e){const e={s:{c:1e7,r:1e7},e:{c:0,r:0}};o.SheetNames.push(t),o.Sheets[t]={},o.Sheets[t]["!rows"]=[],Object.entries(c).forEach(([s,r])=>{const c=+s;r.height&&(o.Sheets[t]["!rows"][c]={hpx:r.height}),Object.entries(r.cells).forEach(([s,r])=>{const a=+s;e.s.r>c&&(e.s.r=c),e.s.c>a&&(e.s.c=a),e.e.r<c&&(e.e.r=c),e.e.c<a&&(e.e.c=a);const l={v:r.text,t:"s"};if(null==l.v)return;const f=n.encode_cell({c:a,r:c});if("number"==typeof l.v?l.t="n":"boolean"==typeof l.v?l.t="b":(l.v,Date),l.s={},"string"==typeof l.v&&l.v.includes("\n")&&(l.s.alignment={wrapText:!0}),"number"==typeof r.style&&i?.[r.style]){const e=i[r.style].bgcolor;"string"==typeof e&&(l.s.fill={fgColor:{rgb:e.replace("#","")}});const t=i[r.style].color;"string"==typeof t&&(l.s.font||(l.s.font={}),l.s.font.color={rgb:t.replace("#","")}),i[r.style].font?.bold&&(l.s.font||(l.s.font={}),l.s.font.bold=!0);const n=i[r.style].align;"string"==typeof n&&(l.s.alignment||(l.s.alignment={}),l.s.alignment.horizontal=n);const o=i[r.style].valign;"string"==typeof o&&(l.s.alignment||(l.s.alignment={}),l.s.alignment.vertical=o)}o.Sheets[t][f]=l})}),e.s.c<1e7&&(o.Sheets[t]["!ref"]=n.encode_range(e)),s?.ref&&(o.Sheets[t]["!autofilter"]={ref:s?.ref}),o.Sheets[t]["!cols"]||(o.Sheets[t]["!cols"]=[]),Object.entries(r||{}).forEach(([e,n])=>{const s=+e;o.Sheets[t]["!cols"][s]||(o.Sheets[t]["!cols"][s]={}),n.width&&(o.Sheets[t]["!cols"][s].wpx=n.width)})}return o},h=async(e,n="file.xlsx")=>{const o=await d(e,n),{write:s}=await i(),r=s(o,{bookType:"xlsx",type:"binary"});p(new Blob([t(r)],{type:"application/octet-stream"}),n)},b=(e,t)=>"function"==typeof e?e(t):s.map(e,e=>e?r(e,t):e),m=(e,t,n,o,s,r,c,i,a,l,f,p,u,y,d)=>{let h="";return[e,t,n,o,s,r,c,i,a,l,f,p,u,y,d].forEach(e=>{if(e)if("string"==typeof e)h+=(h?" ":"")+e;else for(const t in e)e[t]&&(h+=(h?" ":"")+t)}),h},w=(e,t)=>e===t||Array.isArray(e)&&e.includes(t);function g(e){return new Promise(t=>{e.toBlob(t)})}const v=e=>e.current?.scrollWidth>e.current?.clientWidth;function j(){return"production"!==n}const S=e=>{if(l()){const t=window.open(e,"_blank","noopener,noreferrer");t&&(t.opener=null)}},x=e=>e.trim().replace(/\/+/g,"/").replace(/^\/+/,"").replace(/\/+$/,"");export{y as a,f as b,m as c,p as d,h as e,u as f,a as g,i as h,l as i,j,v as k,w as l,x as n,S as o,b as r,d as s,g as t};
@@ -1 +1 @@
1
- import{W as t,v as o,R as a,Q as r,D as s,P as i,M as n,b as l,T as g,L as c,C as E,E as p}from"./settings-BIQ7IqJl.js";export{A as ABLY_LOG_LEVEL,J as JUKI_SERVICE_V2_URL,d as JUKI_TOKEN_NAME,N as NODE_ENV,e as SWR_CONFIG}from"./settings-BIQ7IqJl.js";import{QueryParamKey as _}from"./enums.js";const m=320,I=()=>({id:o(),type:t.JK_MD,title:"",points:0,content:""}),h=()=>({id:o(),type:t.CODE_EDITOR,title:"",points:0,files:{},testCases:{},languages:a,height:0}),T=()=>({id:o(),type:t.GRAPH,title:"",points:0,dots:[b]}),C=()=>({id:o(),type:t.QUIZ_PROBLEM,title:"",points:0,problemKey:"",height:0,languages:a}),u=()=>({id:o(),type:t.QUIZ_OPTIONS,title:"",points:0,description:"",options:[],multiple:!1,scoringMode:r.TOTAL}),L=()=>({id:o(),type:t.LIST,title:"",points:0,header:"# header of list",content:[{id:o(),type:t.JK_MD,title:"",points:0,content:"First content of list"}],children:[]}),b='digraph graph_name {\n bgcolor="transparent"\n a -> b;\n b -> c;\n a -> d;\n d -> c;\n a -> c;\n}',y=s.map(e=>e.substring(0,2)),O=8,R=[],P={},S=/^[a-z0-9\-_]+$/i,D=/^(?=.*\d)(?=.*[a-z])(?=.*[A-Z])[\w~@#$%^&*+=`|{}:;!.?"()-_]{8,}$/,M={name:"",imageUrl:"",contactEmail:"contact@juki.app",contactCellPhoneNumber:"+519 79153358",contactTelegram:"https://t.me/OscarGauss",key:"",codeEditorRunEnabled:!0,styles:{[g.LIGHT]:{body:{backgroundColor:"",backgroundColorHighlight:"",textColor:"",textColorHighlight:"",textColorHighlightInset:"",accentColor:"",accentColorInset:""},navbar:{textColor:"",backgroundColor:"",accentColor:"",logoTheme:g.LIGHT}},[g.DARK]:{body:{backgroundColor:"",backgroundColorHighlight:"",textColor:"",textColorHighlight:"",textColorHighlightInset:"",accentColor:"",accentColorInset:""},navbar:{textColor:"",backgroundColor:"",accentColor:"",logoTheme:g.DARK}}}},k={refreshRate:200,refreshMode:"debounce"},H="America/La_Paz",G={nickname:"",imageUrl:"https://images.juki.pub/c/juki-image-profile.svg",settings:{[i.LANGUAGE]:c.ES,[i.THEME]:g.LIGHT,[i.DATA_VIEW_MODE]:l.ROWS,[i.MENU_VIEW_MODE]:n.VERTICAL,[i.NEWSLETTER_SUBSCRIPTION]:!0,[i.TIME_ZONE]:H,[i.FONT_SIZE]:16},permissions:{...p},isLogged:!1,sessionId:"",company:{key:""}},V=[25,50,100],x={getPageQueryParam:e=>(e?e+".":e)+_.PAGE_TABLE,getPageSizeQueryParam:e=>(e?e+".":e)+_.PAGE_SIZE_TABLE,getSortQueryParam:e=>(e?e+".":e)+_.SORT_TABLE,getFilterQueryParam:e=>(e?e+".":e)+_.FILTER_TABLE,getViewModeQueryParam:e=>(e?e+".":e)+_.VIEW_MODE_TABLE,getShowFilterDrawerQueryParam:e=>(e?e+".":e)+_.SHOW_FILTER_DRAWER,getVisiblesQueryParam:e=>(e?e+".":e)+_.VISIBLES},Q=[1,2,3,4,8],U=[8,10,12,14,16,18,20,22,24,28,30,32,34,36,38,40,42],f=Object.values(E);export{S as ALPHANUMERIC_DASH_UNDERSCORE_REGEX,U as CODE_EDIT0R_FONT_SIZES,Q as CODE_EDIT0R_TAB_SIZES,f as CODE_EDITOR_PROGRAMMING_LANGUAGES,y as DAYS_2,x as DEFAULT_DATA_VIEWER_PROPS,b as DEFAULT_GRAPH,H as DEFAULT_TIME_ZONE,R as EMPTY_ARRAY,h as EMPTY_CODE_EDITOR_SHEET,M as EMPTY_COMPANY,T as EMPTY_GRAPH_SHEET,I as EMPTY_JK_MD_SHEET,L as EMPTY_LIST_SHEET,P as EMPTY_OBJECT,u as EMPTY_QUIZ_OPTIONS_SHEET,C as EMPTY_QUIZ_PROBLEM_SHEET,G as EMPTY_USER,D as LEAST_ONE_UPPERCASE_LOWERCASE_NUMBER_REGEX,V as PAGE_SIZE_OPTIONS,k as RESIZE_DETECTOR_PROPS,O as SCROLL_WIDTH,m as WORKSHEET_CODE_EDITOR_MIN_HEIGHT};
1
+ import{W as t,v as o,R as a,Q as r,D as s,P as i,M as n,b as l,T as g,L as c,C as E,E as p}from"./settings-BONQQsPx.js";export{A as ABLY_LOG_LEVEL,J as JUKI_SERVICE_V2_URL,d as JUKI_TOKEN_NAME,N as NODE_ENV,e as SWR_CONFIG}from"./settings-BONQQsPx.js";import{QueryParamKey as _}from"./enums.js";const m=320,I=()=>({id:o(),type:t.JK_MD,title:"",points:0,content:""}),h=()=>({id:o(),type:t.CODE_EDITOR,title:"",points:0,files:{},testCases:{},languages:a,height:0}),T=()=>({id:o(),type:t.GRAPH,title:"",points:0,dots:[b]}),C=()=>({id:o(),type:t.QUIZ_PROBLEM,title:"",points:0,problemKey:"",height:0,languages:a}),u=()=>({id:o(),type:t.QUIZ_OPTIONS,title:"",points:0,description:"",options:[],multiple:!1,scoringMode:r.TOTAL}),L=()=>({id:o(),type:t.LIST,title:"",points:0,header:"# header of list",content:[{id:o(),type:t.JK_MD,title:"",points:0,content:"First content of list"}],children:[]}),b='digraph graph_name {\n bgcolor="transparent"\n a -> b;\n b -> c;\n a -> d;\n d -> c;\n a -> c;\n}',y=s.map(e=>e.substring(0,2)),O=8,R=[],P={},S=/^[a-z0-9\-_]+$/i,D=/^(?=.*\d)(?=.*[a-z])(?=.*[A-Z])[\w~@#$%^&*+=`|{}:;!.?"()-_]{8,}$/,M={name:"",imageUrl:"",contactEmail:"contact@juki.app",contactCellPhoneNumber:"+519 79153358",contactTelegram:"https://t.me/OscarGauss",key:"",codeEditorRunEnabled:!0,styles:{[g.LIGHT]:{body:{backgroundColor:"",backgroundColorHighlight:"",textColor:"",textColorHighlight:"",textColorHighlightInset:"",accentColor:"",accentColorInset:""},navbar:{textColor:"",backgroundColor:"",accentColor:"",logoTheme:g.LIGHT}},[g.DARK]:{body:{backgroundColor:"",backgroundColorHighlight:"",textColor:"",textColorHighlight:"",textColorHighlightInset:"",accentColor:"",accentColorInset:""},navbar:{textColor:"",backgroundColor:"",accentColor:"",logoTheme:g.DARK}}}},k={refreshRate:200,refreshMode:"debounce"},H="America/La_Paz",G={nickname:"",imageUrl:"https://images.juki.pub/c/juki-image-profile.svg",settings:{[i.LANGUAGE]:c.ES,[i.THEME]:g.LIGHT,[i.DATA_VIEW_MODE]:l.ROWS,[i.MENU_VIEW_MODE]:n.VERTICAL,[i.NEWSLETTER_SUBSCRIPTION]:!0,[i.TIME_ZONE]:H,[i.FONT_SIZE]:16},permissions:{...p},isLogged:!1,sessionId:"",company:{key:""}},V=[25,50,100],x={getPageQueryParam:e=>(e?e+".":e)+_.PAGE_TABLE,getPageSizeQueryParam:e=>(e?e+".":e)+_.PAGE_SIZE_TABLE,getSortQueryParam:e=>(e?e+".":e)+_.SORT_TABLE,getFilterQueryParam:e=>(e?e+".":e)+_.FILTER_TABLE,getViewModeQueryParam:e=>(e?e+".":e)+_.VIEW_MODE_TABLE,getShowFilterDrawerQueryParam:e=>(e?e+".":e)+_.SHOW_FILTER_DRAWER,getVisiblesQueryParam:e=>(e?e+".":e)+_.VISIBLES},Q=[1,2,3,4,8],U=[8,10,12,14,16,18,20,22,24,28,30,32,34,36,38,40,42],f=Object.values(E);export{S as ALPHANUMERIC_DASH_UNDERSCORE_REGEX,U as CODE_EDIT0R_FONT_SIZES,Q as CODE_EDIT0R_TAB_SIZES,f as CODE_EDITOR_PROGRAMMING_LANGUAGES,y as DAYS_2,x as DEFAULT_DATA_VIEWER_PROPS,b as DEFAULT_GRAPH,H as DEFAULT_TIME_ZONE,R as EMPTY_ARRAY,h as EMPTY_CODE_EDITOR_SHEET,M as EMPTY_COMPANY,T as EMPTY_GRAPH_SHEET,I as EMPTY_JK_MD_SHEET,L as EMPTY_LIST_SHEET,P as EMPTY_OBJECT,u as EMPTY_QUIZ_OPTIONS_SHEET,C as EMPTY_QUIZ_PROBLEM_SHEET,G as EMPTY_USER,D as LEAST_ONE_UPPERCASE_LOWERCASE_NUMBER_REGEX,V as PAGE_SIZE_OPTIONS,k as RESIZE_DETECTOR_PROPS,O as SCROLL_WIDTH,m as WORKSHEET_CODE_EDITOR_MIN_HEIGHT};