@ashwin_droid/notion-stream 1.0.0 → 1.0.2
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.
- package/dist/{_baseUniq-DSwfPiGC.js → _baseUniq-D32sgNIc.js} +1 -1
- package/dist/{_baseUniq-CT-tc-CG.mjs → _baseUniq-DCnQIx8G.mjs} +51 -51
- package/dist/{arc-BBnIBs2j.js → arc-B0uBm0sN.js} +1 -1
- package/dist/{arc-DmoYXidQ.mjs → arc-OrNNmmBm.mjs} +1 -1
- package/dist/{architecture-U656AL7Q-C0ZB2O9M.js → architecture-U656AL7Q-CLYqYgyv.js} +1 -1
- package/dist/{architecture-U656AL7Q-CMPtJMZ-.mjs → architecture-U656AL7Q-seCMyeyz.mjs} +1 -1
- package/dist/architectureDiagram-VXUJARFQ-BGsDPmi_.js +36 -0
- package/dist/{architectureDiagram-VXUJARFQ-BYzpbF40.mjs → architectureDiagram-VXUJARFQ-BmPLNLcs.mjs} +1846 -1850
- package/dist/{blockDiagram-VD42YOAC-DPVTCHn5.mjs → blockDiagram-VD42YOAC-CXKvT-9-.mjs} +913 -922
- package/dist/blockDiagram-VD42YOAC-NQhzFvsO.js +122 -0
- package/dist/c4Diagram-YG6GDRKO-CMXx6pyB.js +10 -0
- package/dist/{c4Diagram-YG6GDRKO-C2Y4q08p.mjs → c4Diagram-YG6GDRKO-DAGMHESb.mjs} +169 -170
- package/dist/{channel-DVpqhnow.mjs → channel-BXGyzQA6.mjs} +1 -1
- package/dist/channel-Dw8BXC8D.js +1 -0
- package/dist/chunk-4BX2VUAB-MnK73C0-.js +1 -0
- package/dist/chunk-4BX2VUAB-ZaWvd3Xe.mjs +8 -0
- package/dist/{chunk-55IACEB6-P_FVKIbW.js → chunk-55IACEB6-B1EpdpVW.js} +1 -1
- package/dist/{chunk-55IACEB6-Du1Simcj.mjs → chunk-55IACEB6-iKbZBHA5.mjs} +1 -1
- package/dist/chunk-B4BG7PRW-Bo_sfBKL.js +165 -0
- package/dist/{chunk-B4BG7PRW-BUKsa2yH.mjs → chunk-B4BG7PRW-DgqSow4f.mjs} +251 -252
- package/dist/{chunk-DI55MBZ5-C9h0qLVI.mjs → chunk-DI55MBZ5-BAHL-2VJ.mjs} +444 -456
- package/dist/chunk-DI55MBZ5-BuuMLI1S.js +220 -0
- package/dist/{chunk-FMBD7UC4-C08-zA06.mjs → chunk-FMBD7UC4-BE8MbNLe.mjs} +1 -1
- package/dist/{chunk-FMBD7UC4-48-zdz-1.js → chunk-FMBD7UC4-Cs1BNv23.js} +1 -1
- package/dist/chunk-QN33PNHL-MX1ZMWu-.js +1 -0
- package/dist/chunk-QN33PNHL-ZaWv5vaA.mjs +19 -0
- package/dist/{chunk-QZHKN3VN-DbO6TJSK.mjs → chunk-QZHKN3VN-D2X7PBDi.mjs} +1 -1
- package/dist/{chunk-QZHKN3VN-Dy2264ui.js → chunk-QZHKN3VN-Db6mVb9M.js} +1 -1
- package/dist/{chunk-TZMSLE5B-BPmI9i6R.mjs → chunk-TZMSLE5B-AMFXF6mq.mjs} +20 -20
- package/dist/{chunk-TZMSLE5B-COENnLAZ.js → chunk-TZMSLE5B-CzjtACDr.js} +1 -1
- package/dist/{classDiagram-v2-WZHVMYZB-mzvV1Ifg.mjs → classDiagram-2ON5EDUG-CPwvtUDj.mjs} +2 -2
- package/dist/{classDiagram-2ON5EDUG-CFFwYK87.js → classDiagram-2ON5EDUG-UNrH9bQo.js} +1 -1
- package/dist/{classDiagram-2ON5EDUG-mzvV1Ifg.mjs → classDiagram-v2-WZHVMYZB-CPwvtUDj.mjs} +2 -2
- package/dist/{classDiagram-v2-WZHVMYZB-CFFwYK87.js → classDiagram-v2-WZHVMYZB-UNrH9bQo.js} +1 -1
- package/dist/{clone-KtLCwiKH.mjs → clone-CV4F8CSW.mjs} +1 -1
- package/dist/clone-HVsPHeK3.js +1 -0
- package/dist/{code-block-37QAKDTI-sxlq94xm.js → code-block-37QAKDTI-38K5Mxo2.js} +1 -1
- package/dist/{code-block-37QAKDTI-CmykMxjQ.mjs → code-block-37QAKDTI-Q-OOsw6q.mjs} +1 -1
- package/dist/cose-bilkent-S5V4N54A-1B77PywG.js +1 -0
- package/dist/{cose-bilkent-S5V4N54A-BXcldnso.mjs → cose-bilkent-S5V4N54A-greBbyuM.mjs} +592 -589
- package/dist/cytoscape.esm-CNUX3VTg.js +321 -0
- package/dist/{cytoscape.esm-ZmItrg9y.mjs → cytoscape.esm-Cvf3sx9F.mjs} +56 -83
- package/dist/dagre-6UL2VRFP-DEQXyXKh.js +4 -0
- package/dist/dagre-6UL2VRFP-DN5Inkgr.mjs +443 -0
- package/dist/diagram-PSM6KHXK-C7tjFZpr.js +24 -0
- package/dist/{diagram-PSM6KHXK-DIV3jw9d.mjs → diagram-PSM6KHXK-D-GS1fTc.mjs} +45 -48
- package/dist/{diagram-QEK2KX5R-Q0M2_YtR.mjs → diagram-QEK2KX5R-DJXBxeH4.mjs} +10 -14
- package/dist/diagram-QEK2KX5R-Doa8ooC_.js +43 -0
- package/dist/diagram-S2PKOQOG-BN04h93a.js +24 -0
- package/dist/{diagram-S2PKOQOG-_WGA6s2-.mjs → diagram-S2PKOQOG-BuPevKqw.mjs} +22 -23
- package/dist/erDiagram-Q2GNP2WA-AS2vnQKc.js +60 -0
- package/dist/{erDiagram-Q2GNP2WA-CW0D_QGb.mjs → erDiagram-Q2GNP2WA-DxOmvmqL.mjs} +77 -78
- package/dist/flowDiagram-NV44I4VS-BChiRwcp.js +162 -0
- package/dist/{flowDiagram-NV44I4VS-DVQ8Ntc4.mjs → flowDiagram-NV44I4VS-Cs_jC87H.mjs} +442 -449
- package/dist/{ganttDiagram-JELNMOA3-Bk-dX6qT.mjs → ganttDiagram-JELNMOA3-02b_-xyZ.mjs} +1049 -1041
- package/dist/ganttDiagram-JELNMOA3-BGy1b6TD.js +267 -0
- package/dist/{gitGraph-F6HP7TQM-CsdwxYUE.mjs → gitGraph-F6HP7TQM-BWm0SBV4.mjs} +1 -1
- package/dist/{gitGraph-F6HP7TQM-DvIgo2TM.js → gitGraph-F6HP7TQM-DVfckSNX.js} +1 -1
- package/dist/gitGraphDiagram-NY62KEGX-CfzoE07P.mjs +699 -0
- package/dist/gitGraphDiagram-NY62KEGX-Cm9ywQoW.js +65 -0
- package/dist/{graph-C_T4ZBuC.mjs → graph-DEu7-ZhH.mjs} +8 -8
- package/dist/{graph-BNpx6ebg.js → graph-Dw_87ii6.js} +1 -1
- package/dist/index-BwYOYPeK.js +670 -0
- package/dist/{index-oe4HpmeG.mjs → index-DH3CVXwD.mjs} +22541 -22646
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -1
- package/dist/index.mjs +3 -3
- package/dist/{info-NVLQJR56-BwFQRguW.js → info-NVLQJR56-BpKxONZx.js} +1 -1
- package/dist/info-NVLQJR56-MmJP3L6S.mjs +5 -0
- package/dist/{infoDiagram-WHAUD3N6-C-gzsm95.mjs → infoDiagram-WHAUD3N6-Bfsucvti.mjs} +2 -2
- package/dist/{infoDiagram-WHAUD3N6-CCb5k_S7.js → infoDiagram-WHAUD3N6-q-yX3_By.js} +1 -1
- package/dist/journeyDiagram-XKPGCS4Q-BqtyHvQF.js +139 -0
- package/dist/{journeyDiagram-XKPGCS4Q-DzkUL_YG.mjs → journeyDiagram-XKPGCS4Q-dFRLmnr-.mjs} +24 -26
- package/dist/kanban-definition-3W4ZIXB7-DeOl9Eme.mjs +719 -0
- package/dist/kanban-definition-3W4ZIXB7-DraMxv75.js +89 -0
- package/dist/{layout-CuWQnP5Y.js → layout-BKTUO8WZ.js} +1 -1
- package/dist/{layout-Cd98WJ7r.mjs → layout-CpL-hYTa.mjs} +22 -22
- package/dist/{linear-SU4e8MRt.mjs → linear-CLwIU3di.mjs} +20 -20
- package/dist/{linear-DFDw13y6.js → linear-DvM229Di.js} +1 -1
- package/dist/mermaid-4DMBBIKO-BpqXz0_U.mjs +4 -0
- package/dist/{mermaid-4DMBBIKO-BihEtyib.js → mermaid-4DMBBIKO-Cd15t2pT.js} +1 -1
- package/dist/mermaid-parser.core-BVlc9Lqd.js +128 -0
- package/dist/{mermaid-parser.core-C8Sxzqul.mjs → mermaid-parser.core-CLAapB2-.mjs} +3404 -3369
- package/dist/{min-C2k771MZ.mjs → min--ML-ONY_.mjs} +2 -2
- package/dist/{min-CppMRDFn.js → min-BQ4NUvNf.js} +1 -1
- package/dist/{mindmap-definition-VGOIOE7T-BUd354uH.mjs → mindmap-definition-VGOIOE7T-78K_EDCb.mjs} +170 -172
- package/dist/mindmap-definition-VGOIOE7T-ZHY70ZzV.js +68 -0
- package/dist/notion-stream.css +1 -0
- package/dist/{ordinal-C0oynhte.mjs → ordinal-B-KqvkJf.mjs} +1 -1
- package/dist/{packet-BFZMPI3H-Cz_A86d3.mjs → packet-BFZMPI3H-B34lFb6T.mjs} +1 -1
- package/dist/{packet-BFZMPI3H-CFx3kSkL.js → packet-BFZMPI3H-C9xcJQVN.js} +1 -1
- package/dist/{pie-7BOR55EZ-_1MqisBd.js → pie-7BOR55EZ-Bz_jfTd_.js} +1 -1
- package/dist/pie-7BOR55EZ-DW2Zgje5.mjs +5 -0
- package/dist/{pieDiagram-ADFJNKIX-Bg0_gu43.js → pieDiagram-ADFJNKIX-CKzchAXU.js} +2 -2
- package/dist/{pieDiagram-ADFJNKIX-lRs_rpwI.mjs → pieDiagram-ADFJNKIX-Ctp6QR7f.mjs} +21 -21
- package/dist/quadrantDiagram-AYHSOK5B-D2Rt32D2.js +7 -0
- package/dist/{quadrantDiagram-AYHSOK5B-D9kypJt6.mjs → quadrantDiagram-AYHSOK5B-D3U_Qicu.mjs} +230 -232
- package/dist/{radar-NHE76QYJ-B-PvZD0K.mjs → radar-NHE76QYJ-CO5ECFHq.mjs} +1 -1
- package/dist/{radar-NHE76QYJ-CdtC4C8F.js → radar-NHE76QYJ-DI4PJJjm.js} +1 -1
- package/dist/requirementDiagram-UZGBJVZJ-CSgb6U9N.js +64 -0
- package/dist/{requirementDiagram-UZGBJVZJ-B5ulaHjE.mjs → requirementDiagram-UZGBJVZJ-Da_yWSD1.mjs} +190 -192
- package/dist/sankeyDiagram-TZEHDZUN-C8jpBnM0.js +10 -0
- package/dist/{sankeyDiagram-TZEHDZUN-DprIPFbe.mjs → sankeyDiagram-TZEHDZUN-Dp3Eyl8Q.mjs} +189 -189
- package/dist/sequenceDiagram-WL72ISMW-BZJ7d_X4.js +145 -0
- package/dist/{sequenceDiagram-WL72ISMW-B4m4oag0.mjs → sequenceDiagram-WL72ISMW-yJKe02sV.mjs} +222 -229
- package/dist/{stateDiagram-FKZM4ZOC-BD4tnS-V.js → stateDiagram-FKZM4ZOC-Cfuygt_P.js} +1 -1
- package/dist/{stateDiagram-FKZM4ZOC-DjkdDbQ2.mjs → stateDiagram-FKZM4ZOC-z0IX85WL.mjs} +4 -4
- package/dist/{stateDiagram-v2-4FDKWEC3-AK86F3i6.mjs → stateDiagram-v2-4FDKWEC3-BDMFqSat.mjs} +2 -2
- package/dist/{stateDiagram-v2-4FDKWEC3-sybMoxOk.js → stateDiagram-v2-4FDKWEC3-BiriAQkj.js} +1 -1
- package/dist/{timeline-definition-IT6M3QCI-BFuQEeZP.mjs → timeline-definition-IT6M3QCI-BmEq-RM3.mjs} +217 -223
- package/dist/timeline-definition-IT6M3QCI-CBmpRgUM.js +61 -0
- package/dist/{treemap-KMMF4GRG-gtrnY16v.mjs → treemap-KMMF4GRG-IaHP18r_.mjs} +1 -1
- package/dist/{treemap-KMMF4GRG-DTnRa789.js → treemap-KMMF4GRG-qP0VzKwW.js} +1 -1
- package/dist/{xychartDiagram-PRI3JC2R-CjXiy6m0.mjs → xychartDiagram-PRI3JC2R-BSaI76KX.mjs} +7 -7
- package/dist/xychartDiagram-PRI3JC2R-CQgij0Fy.js +7 -0
- package/package.json +5 -5
- package/dist/architectureDiagram-VXUJARFQ-BPQoZmaM.js +0 -36
- package/dist/blockDiagram-VD42YOAC-Z3Fc3Bew.js +0 -122
- package/dist/c4Diagram-YG6GDRKO-LzDuCZ2V.js +0 -10
- package/dist/channel-6dUO0MQi.js +0 -1
- package/dist/chunk-4BX2VUAB-BwubFldI.js +0 -1
- package/dist/chunk-4BX2VUAB-DldMXCTt.mjs +0 -9
- package/dist/chunk-B4BG7PRW-CKX0VJ-S.js +0 -165
- package/dist/chunk-DI55MBZ5-CMq-O8k2.js +0 -220
- package/dist/chunk-QN33PNHL-B0sO38bZ.js +0 -1
- package/dist/chunk-QN33PNHL-B_PGnTkk.mjs +0 -20
- package/dist/clone-B0UaPT2Z.js +0 -1
- package/dist/cose-bilkent-S5V4N54A-BCaAPmuF.js +0 -1
- package/dist/cytoscape.esm-DkGgpG6d.js +0 -331
- package/dist/dagre-6UL2VRFP-By42zbLA.mjs +0 -446
- package/dist/dagre-6UL2VRFP-DCwfkcWi.js +0 -4
- package/dist/diagram-PSM6KHXK-hjXN9n1N.js +0 -24
- package/dist/diagram-QEK2KX5R-B04ODMim.js +0 -43
- package/dist/diagram-S2PKOQOG-BmCs4MZE.js +0 -24
- package/dist/erDiagram-Q2GNP2WA-4KtQUUuI.js +0 -60
- package/dist/flowDiagram-NV44I4VS-BwpfJE0U.js +0 -162
- package/dist/ganttDiagram-JELNMOA3-D7rI7u8B.js +0 -267
- package/dist/gitGraphDiagram-NY62KEGX-BDTsbSkO.mjs +0 -712
- package/dist/gitGraphDiagram-NY62KEGX-IQ8KriUw.js +0 -65
- package/dist/index-CkYZRBYn.js +0 -676
- package/dist/info-NVLQJR56-B5gDnSIT.mjs +0 -5
- package/dist/journeyDiagram-XKPGCS4Q-POnSekz9.js +0 -139
- package/dist/kanban-definition-3W4ZIXB7-BPr0_7wG.mjs +0 -720
- package/dist/kanban-definition-3W4ZIXB7-Bm064qrf.js +0 -89
- package/dist/mermaid-4DMBBIKO-DDxvQcE9.mjs +0 -4
- package/dist/mermaid-parser.core-BHAgLMGa.js +0 -128
- package/dist/mindmap-definition-VGOIOE7T-CV7bD4HY.js +0 -68
- package/dist/pie-7BOR55EZ-B0-atE_o.mjs +0 -5
- package/dist/quadrantDiagram-AYHSOK5B-B4gVakRV.js +0 -7
- package/dist/requirementDiagram-UZGBJVZJ-0zMPj-SD.js +0 -64
- package/dist/sankeyDiagram-TZEHDZUN-Cl8-L83T.js +0 -10
- package/dist/sequenceDiagram-WL72ISMW-DRQn7Fe4.js +0 -145
- package/dist/timeline-definition-IT6M3QCI-2X4dfyLj.js +0 -61
- package/dist/xychartDiagram-PRI3JC2R-BaFd1In8.js +0 -7
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const re=require("./chunk-55IACEB6-P_FVKIbW.js"),ae=require("./chunk-QN33PNHL-B0sO38bZ.js"),a=require("./index-CkYZRBYn.js"),_=[];for(let t=0;t<256;++t)_.push((t+256).toString(16).slice(1));function oe(t,e=0){return(_[t[e+0]]+_[t[e+1]]+_[t[e+2]]+_[t[e+3]]+"-"+_[t[e+4]]+_[t[e+5]]+"-"+_[t[e+6]]+_[t[e+7]]+"-"+_[t[e+8]]+_[t[e+9]]+"-"+_[t[e+10]]+_[t[e+11]]+_[t[e+12]]+_[t[e+13]]+_[t[e+14]]+_[t[e+15]]).toLowerCase()}let H;const ce=new Uint8Array(16);function le(){if(!H){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");H=crypto.getRandomValues.bind(crypto)}return H(ce)}const he=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),Z={randomUUID:he};function de(t,e,i){var u;if(Z.randomUUID&&!t)return Z.randomUUID();t=t||{};const l=t.random??((u=t.rng)==null?void 0:u.call(t))??le();if(l.length<16)throw new Error("Random bytes length must be >= 16");return l[6]=l[6]&15|64,l[8]=l[8]&63|128,oe(l)}var $=function(){var t=a.__name(function(v,s,n,o){for(n=n||{},o=v.length;o--;n[v[o]]=s);return n},"o"),e=[1,4],i=[1,13],l=[1,12],u=[1,15],h=[1,16],p=[1,20],m=[1,19],E=[6,7,8],b=[1,26],y=[1,24],R=[1,25],N=[6,7,11],W=[1,6,13,15,16,19,22],X=[1,33],q=[1,34],w=[1,6,7,11,13,15,16,19,22],B={trace:a.__name(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mindMap:4,spaceLines:5,SPACELINE:6,NL:7,MINDMAP:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,node:14,ICON:15,CLASS:16,nodeWithId:17,nodeWithoutId:18,NODE_DSTART:19,NODE_DESCR:20,NODE_DEND:21,NODE_ID:22,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"MINDMAP",11:"EOF",13:"SPACELIST",15:"ICON",16:"CLASS",19:"NODE_DSTART",20:"NODE_DESCR",21:"NODE_DEND",22:"NODE_ID"},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,2],[12,2],[12,2],[12,1],[12,1],[12,1],[12,1],[12,1],[14,1],[14,1],[18,3],[17,1],[17,4]],performAction:a.__name(function(s,n,o,c,g,r,A){var d=r.length-1;switch(g){case 6:case 7:return c;case 8:c.getLogger().trace("Stop NL ");break;case 9:c.getLogger().trace("Stop EOF ");break;case 11:c.getLogger().trace("Stop NL2 ");break;case 12:c.getLogger().trace("Stop EOF2 ");break;case 15:c.getLogger().info("Node: ",r[d].id),c.addNode(r[d-1].length,r[d].id,r[d].descr,r[d].type);break;case 16:c.getLogger().trace("Icon: ",r[d]),c.decorateNode({icon:r[d]});break;case 17:case 21:c.decorateNode({class:r[d]});break;case 18:c.getLogger().trace("SPACELIST");break;case 19:c.getLogger().trace("Node: ",r[d].id),c.addNode(0,r[d].id,r[d].descr,r[d].type);break;case 20:c.decorateNode({icon:r[d]});break;case 25:c.getLogger().trace("node found ..",r[d-2]),this.$={id:r[d-1],descr:r[d-1],type:c.getType(r[d-2],r[d])};break;case 26:this.$={id:r[d],descr:r[d],type:c.nodeType.DEFAULT};break;case 27:c.getLogger().trace("node found ..",r[d-3]),this.$={id:r[d-3],descr:r[d-1],type:c.getType(r[d-2],r[d])};break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:e},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:e},{6:i,7:[1,10],9:9,12:11,13:l,14:14,15:u,16:h,17:17,18:18,19:p,22:m},t(E,[2,3]),{1:[2,2]},t(E,[2,4]),t(E,[2,5]),{1:[2,6],6:i,12:21,13:l,14:14,15:u,16:h,17:17,18:18,19:p,22:m},{6:i,9:22,12:11,13:l,14:14,15:u,16:h,17:17,18:18,19:p,22:m},{6:b,7:y,10:23,11:R},t(N,[2,22],{17:17,18:18,14:27,15:[1,28],16:[1,29],19:p,22:m}),t(N,[2,18]),t(N,[2,19]),t(N,[2,20]),t(N,[2,21]),t(N,[2,23]),t(N,[2,24]),t(N,[2,26],{19:[1,30]}),{20:[1,31]},{6:b,7:y,10:32,11:R},{1:[2,7],6:i,12:21,13:l,14:14,15:u,16:h,17:17,18:18,19:p,22:m},t(W,[2,14],{7:X,11:q}),t(w,[2,8]),t(w,[2,9]),t(w,[2,10]),t(N,[2,15]),t(N,[2,16]),t(N,[2,17]),{20:[1,35]},{21:[1,36]},t(W,[2,13],{7:X,11:q}),t(w,[2,11]),t(w,[2,12]),{21:[1,37]},t(N,[2,25]),t(N,[2,27])],defaultActions:{2:[2,1],6:[2,2]},parseError:a.__name(function(s,n){if(n.recoverable)this.trace(s);else{var o=new Error(s);throw o.hash=n,o}},"parseError"),parse:a.__name(function(s){var n=this,o=[0],c=[],g=[null],r=[],A=this.table,d="",P=0,Y=0,te=2,Q=1,ne=r.slice.call(arguments,1),f=Object.create(this.lexer),T={yy:{}};for(var F in this.yy)Object.prototype.hasOwnProperty.call(this.yy,F)&&(T.yy[F]=this.yy[F]);f.setInput(s,T.yy),T.yy.lexer=f,T.yy.parser=this,typeof f.yylloc>"u"&&(f.yylloc={});var j=f.yylloc;r.push(j);var ie=f.options&&f.options.ranges;typeof T.yy.parseError=="function"?this.parseError=T.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function se(D){o.length=o.length-2*D,g.length=g.length-D,r.length=r.length-D}a.__name(se,"popStack");function J(){var D;return D=c.pop()||f.lex()||Q,typeof D!="number"&&(D instanceof Array&&(c=D,D=c.pop()),D=n.symbols_[D]||D),D}a.__name(J,"lex");for(var S,C,k,G,O={},M,L,K,V;;){if(C=o[o.length-1],this.defaultActions[C]?k=this.defaultActions[C]:((S===null||typeof S>"u")&&(S=J()),k=A[C]&&A[C][S]),typeof k>"u"||!k.length||!k[0]){var z="";V=[];for(M in A[C])this.terminals_[M]&&M>te&&V.push("'"+this.terminals_[M]+"'");f.showPosition?z="Parse error on line "+(P+1)+`:
|
|
2
|
-
`+f.showPosition()+`
|
|
3
|
-
Expecting `+V.join(", ")+", got '"+(this.terminals_[S]||S)+"'":z="Parse error on line "+(P+1)+": Unexpected "+(S==Q?"end of input":"'"+(this.terminals_[S]||S)+"'"),this.parseError(z,{text:f.match,token:this.terminals_[S]||S,line:f.yylineno,loc:j,expected:V})}if(k[0]instanceof Array&&k.length>1)throw new Error("Parse Error: multiple actions possible at state: "+C+", token: "+S);switch(k[0]){case 1:o.push(S),g.push(f.yytext),r.push(f.yylloc),o.push(k[1]),S=null,Y=f.yyleng,d=f.yytext,P=f.yylineno,j=f.yylloc;break;case 2:if(L=this.productions_[k[1]][1],O.$=g[g.length-L],O._$={first_line:r[r.length-(L||1)].first_line,last_line:r[r.length-1].last_line,first_column:r[r.length-(L||1)].first_column,last_column:r[r.length-1].last_column},ie&&(O._$.range=[r[r.length-(L||1)].range[0],r[r.length-1].range[1]]),G=this.performAction.apply(O,[d,Y,P,T.yy,k[1],g,r].concat(ne)),typeof G<"u")return G;L&&(o=o.slice(0,-1*L*2),g=g.slice(0,-1*L),r=r.slice(0,-1*L)),o.push(this.productions_[k[1]][0]),g.push(O.$),r.push(O._$),K=A[o[o.length-2]][o[o.length-1]],o.push(K);break;case 3:return!0}}return!0},"parse")},ee=function(){var v={EOF:1,parseError:a.__name(function(n,o){if(this.yy.parser)this.yy.parser.parseError(n,o);else throw new Error(n)},"parseError"),setInput:a.__name(function(s,n){return this.yy=n||this.yy||{},this._input=s,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:a.__name(function(){var s=this._input[0];this.yytext+=s,this.yyleng++,this.offset++,this.match+=s,this.matched+=s;var n=s.match(/(?:\r\n?|\n).*/g);return n?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),s},"input"),unput:a.__name(function(s){var n=s.length,o=s.split(/(?:\r\n?|\n)/g);this._input=s+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-n),this.offset-=n;var c=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),o.length-1&&(this.yylineno-=o.length-1);var g=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:o?(o.length===c.length?this.yylloc.first_column:0)+c[c.length-o.length].length-o[0].length:this.yylloc.first_column-n},this.options.ranges&&(this.yylloc.range=[g[0],g[0]+this.yyleng-n]),this.yyleng=this.yytext.length,this},"unput"),more:a.__name(function(){return this._more=!0,this},"more"),reject:a.__name(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
4
|
-
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:a.__name(function(s){this.unput(this.match.slice(s))},"less"),pastInput:a.__name(function(){var s=this.matched.substr(0,this.matched.length-this.match.length);return(s.length>20?"...":"")+s.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:a.__name(function(){var s=this.match;return s.length<20&&(s+=this._input.substr(0,20-s.length)),(s.substr(0,20)+(s.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:a.__name(function(){var s=this.pastInput(),n=new Array(s.length+1).join("-");return s+this.upcomingInput()+`
|
|
5
|
-
`+n+"^"},"showPosition"),test_match:a.__name(function(s,n){var o,c,g;if(this.options.backtrack_lexer&&(g={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(g.yylloc.range=this.yylloc.range.slice(0))),c=s[0].match(/(?:\r\n?|\n).*/g),c&&(this.yylineno+=c.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:c?c[c.length-1].length-c[c.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+s[0].length},this.yytext+=s[0],this.match+=s[0],this.matches=s,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(s[0].length),this.matched+=s[0],o=this.performAction.call(this,this.yy,this,n,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),o)return o;if(this._backtrack){for(var r in g)this[r]=g[r];return!1}return!1},"test_match"),next:a.__name(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var s,n,o,c;this._more||(this.yytext="",this.match="");for(var g=this._currentRules(),r=0;r<g.length;r++)if(o=this._input.match(this.rules[g[r]]),o&&(!n||o[0].length>n[0].length)){if(n=o,c=r,this.options.backtrack_lexer){if(s=this.test_match(o,g[r]),s!==!1)return s;if(this._backtrack){n=!1;continue}else return!1}else if(!this.options.flex)break}return n?(s=this.test_match(n,g[c]),s!==!1?s:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
|
6
|
-
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:a.__name(function(){var n=this.next();return n||this.lex()},"lex"),begin:a.__name(function(n){this.conditionStack.push(n)},"begin"),popState:a.__name(function(){var n=this.conditionStack.length-1;return n>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:a.__name(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:a.__name(function(n){return n=this.conditionStack.length-1-Math.abs(n||0),n>=0?this.conditionStack[n]:"INITIAL"},"topState"),pushState:a.__name(function(n){this.begin(n)},"pushState"),stateStackSize:a.__name(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:a.__name(function(n,o,c,g){switch(c){case 0:return n.getLogger().trace("Found comment",o.yytext),6;case 1:return 8;case 2:this.begin("CLASS");break;case 3:return this.popState(),16;case 4:this.popState();break;case 5:n.getLogger().trace("Begin icon"),this.begin("ICON");break;case 6:return n.getLogger().trace("SPACELINE"),6;case 7:return 7;case 8:return 15;case 9:n.getLogger().trace("end icon"),this.popState();break;case 10:return n.getLogger().trace("Exploding node"),this.begin("NODE"),19;case 11:return n.getLogger().trace("Cloud"),this.begin("NODE"),19;case 12:return n.getLogger().trace("Explosion Bang"),this.begin("NODE"),19;case 13:return n.getLogger().trace("Cloud Bang"),this.begin("NODE"),19;case 14:return this.begin("NODE"),19;case 15:return this.begin("NODE"),19;case 16:return this.begin("NODE"),19;case 17:return this.begin("NODE"),19;case 18:return 13;case 19:return 22;case 20:return 11;case 21:this.begin("NSTR2");break;case 22:return"NODE_DESCR";case 23:this.popState();break;case 24:n.getLogger().trace("Starting NSTR"),this.begin("NSTR");break;case 25:return n.getLogger().trace("description:",o.yytext),"NODE_DESCR";case 26:this.popState();break;case 27:return this.popState(),n.getLogger().trace("node end ))"),"NODE_DEND";case 28:return this.popState(),n.getLogger().trace("node end )"),"NODE_DEND";case 29:return this.popState(),n.getLogger().trace("node end ...",o.yytext),"NODE_DEND";case 30:return this.popState(),n.getLogger().trace("node end (("),"NODE_DEND";case 31:return this.popState(),n.getLogger().trace("node end (-"),"NODE_DEND";case 32:return this.popState(),n.getLogger().trace("node end (-"),"NODE_DEND";case 33:return this.popState(),n.getLogger().trace("node end (("),"NODE_DEND";case 34:return this.popState(),n.getLogger().trace("node end (("),"NODE_DEND";case 35:return n.getLogger().trace("Long description:",o.yytext),20;case 36:return n.getLogger().trace("Long description:",o.yytext),20}},"anonymous"),rules:[/^(?:\s*%%.*)/i,/^(?:mindmap\b)/i,/^(?::::)/i,/^(?:.+)/i,/^(?:\n)/i,/^(?:::icon\()/i,/^(?:[\s]+[\n])/i,/^(?:[\n]+)/i,/^(?:[^\)]+)/i,/^(?:\))/i,/^(?:-\))/i,/^(?:\(-)/i,/^(?:\)\))/i,/^(?:\))/i,/^(?:\(\()/i,/^(?:\{\{)/i,/^(?:\()/i,/^(?:\[)/i,/^(?:[\s]+)/i,/^(?:[^\(\[\n\)\{\}]+)/i,/^(?:$)/i,/^(?:["][`])/i,/^(?:[^`"]+)/i,/^(?:[`]["])/i,/^(?:["])/i,/^(?:[^"]+)/i,/^(?:["])/i,/^(?:[\)]\))/i,/^(?:[\)])/i,/^(?:[\]])/i,/^(?:\}\})/i,/^(?:\(-)/i,/^(?:-\))/i,/^(?:\(\()/i,/^(?:\()/i,/^(?:[^\)\]\(\}]+)/i,/^(?:.+(?!\(\())/i],conditions:{CLASS:{rules:[3,4],inclusive:!1},ICON:{rules:[8,9],inclusive:!1},NSTR2:{rules:[22,23],inclusive:!1},NSTR:{rules:[25,26],inclusive:!1},NODE:{rules:[21,24,27,28,29,30,31,32,33,34,35,36],inclusive:!1},INITIAL:{rules:[0,1,2,5,6,7,10,11,12,13,14,15,16,17,18,19,20],inclusive:!0}}};return v}();B.lexer=ee;function U(){this.yy={}}return a.__name(U,"Parser"),U.prototype=B,B.Parser=U,new U}();$.parser=$;var ge=$,x={DEFAULT:0,NO_BORDER:0,ROUNDED_RECT:1,RECT:2,CIRCLE:3,CLOUD:4,BANG:5,HEXAGON:6},I,ue=(I=class{constructor(){this.nodes=[],this.count=0,this.elements={},this.getLogger=this.getLogger.bind(this),this.nodeType=x,this.clear(),this.getType=this.getType.bind(this),this.getElementById=this.getElementById.bind(this),this.getParent=this.getParent.bind(this),this.getMindmap=this.getMindmap.bind(this),this.addNode=this.addNode.bind(this),this.decorateNode=this.decorateNode.bind(this)}clear(){this.nodes=[],this.count=0,this.elements={},this.baseLevel=void 0}getParent(e){for(let i=this.nodes.length-1;i>=0;i--)if(this.nodes[i].level<e)return this.nodes[i];return null}getMindmap(){return this.nodes.length>0?this.nodes[0]:null}addNode(e,i,l,u){var y,R;a.log.info("addNode",e,i,l,u);let h=!1;this.nodes.length===0?(this.baseLevel=e,e=0,h=!0):this.baseLevel!==void 0&&(e=e-this.baseLevel,h=!1);const p=a.getConfig2();let m=((y=p.mindmap)==null?void 0:y.padding)??a.defaultConfig_default.mindmap.padding;switch(u){case this.nodeType.ROUNDED_RECT:case this.nodeType.RECT:case this.nodeType.HEXAGON:m*=2;break}const E={id:this.count++,nodeId:a.sanitizeText(i,p),level:e,descr:a.sanitizeText(l,p),type:u,children:[],width:((R=p.mindmap)==null?void 0:R.maxNodeWidth)??a.defaultConfig_default.mindmap.maxNodeWidth,padding:m,isRoot:h},b=this.getParent(e);if(b)b.children.push(E),this.nodes.push(E);else if(h)this.nodes.push(E);else throw new Error(`There can be only one root. No parent could be found for ("${E.descr}")`)}getType(e,i){switch(a.log.debug("In get type",e,i),e){case"[":return this.nodeType.RECT;case"(":return i===")"?this.nodeType.ROUNDED_RECT:this.nodeType.CLOUD;case"((":return this.nodeType.CIRCLE;case")":return this.nodeType.CLOUD;case"))":return this.nodeType.BANG;case"{{":return this.nodeType.HEXAGON;default:return this.nodeType.DEFAULT}}setElementForId(e,i){this.elements[e]=i}getElementById(e){return this.elements[e]}decorateNode(e){if(!e)return;const i=a.getConfig2(),l=this.nodes[this.nodes.length-1];e.icon&&(l.icon=a.sanitizeText(e.icon,i)),e.class&&(l.class=a.sanitizeText(e.class,i))}type2Str(e){switch(e){case this.nodeType.DEFAULT:return"no-border";case this.nodeType.RECT:return"rect";case this.nodeType.ROUNDED_RECT:return"rounded-rect";case this.nodeType.CIRCLE:return"circle";case this.nodeType.CLOUD:return"cloud";case this.nodeType.BANG:return"bang";case this.nodeType.HEXAGON:return"hexgon";default:return"no-border"}}assignSections(e,i){if(e.level===0?e.section=void 0:e.section=i,e.children)for(const[l,u]of e.children.entries()){const h=e.level===0?l:i;this.assignSections(u,h)}}flattenNodes(e,i){const l=["mindmap-node"];e.isRoot===!0?l.push("section-root","section--1"):e.section!==void 0&&l.push(`section-${e.section}`),e.class&&l.push(e.class);const u=l.join(" "),h=a.__name(m=>{switch(m){case x.CIRCLE:return"mindmapCircle";case x.RECT:return"rect";case x.ROUNDED_RECT:return"rounded";case x.CLOUD:return"cloud";case x.BANG:return"bang";case x.HEXAGON:return"hexagon";case x.DEFAULT:return"defaultMindmapNode";case x.NO_BORDER:default:return"rect"}},"getShapeFromType"),p={id:e.id.toString(),domId:"node_"+e.id.toString(),label:e.descr,isGroup:!1,shape:h(e.type),width:e.width,height:e.height??0,padding:e.padding,cssClasses:u,cssStyles:[],look:"default",icon:e.icon,x:e.x,y:e.y,level:e.level,nodeId:e.nodeId,type:e.type,section:e.section};if(i.push(p),e.children)for(const m of e.children)this.flattenNodes(m,i)}generateEdges(e,i){if(e.children)for(const l of e.children){let u="edge";l.section!==void 0&&(u+=` section-edge-${l.section}`);const h=e.level+1;u+=` edge-depth-${h}`;const p={id:`edge_${e.id}_${l.id}`,start:e.id.toString(),end:l.id.toString(),type:"normal",curve:"basis",thickness:"normal",look:"default",classes:u,depth:e.level,section:l.section};i.push(p),this.generateEdges(l,i)}}getData(){const e=this.getMindmap(),i=a.getConfig2(),u=a.getUserDefinedConfig().layout!==void 0,h=i;if(u||(h.layout="cose-bilkent"),!e)return{nodes:[],edges:[],config:h};a.log.debug("getData: mindmapRoot",e,i),this.assignSections(e);const p=[],m=[];this.flattenNodes(e,p),this.generateEdges(e,m),a.log.debug(`getData: processed ${p.length} nodes and ${m.length} edges`);const E=new Map;for(const b of p)E.set(b.id,{shape:b.shape,width:b.width,height:b.height,padding:b.padding});return{nodes:p,edges:m,config:h,rootNode:e,markers:["point"],direction:"TB",nodeSpacing:50,rankSpacing:50,shapes:Object.fromEntries(E),type:"mindmap",diagramId:"mindmap-"+de()}}getLogger(){return a.log}},a.__name(I,"MindmapDB"),I),pe=a.__name(async(t,e,i,l)=>{var E,b;a.log.debug(`Rendering mindmap diagram
|
|
7
|
-
`+t);const u=l.db,h=u.getData(),p=re.getDiagramElement(e,h.config.securityLevel);h.type=l.type,h.layoutAlgorithm=a.getRegisteredLayoutAlgorithm(h.config.layout,{fallback:"cose-bilkent"}),h.diagramId=e,u.getMindmap()&&(h.nodes.forEach(y=>{y.shape==="rounded"?(y.radius=15,y.taper=15,y.stroke="none",y.width=0,y.padding=15):y.shape==="circle"?y.padding=10:y.shape==="rect"&&(y.width=0,y.padding=10)}),await a.render(h,p),ae.setupViewPortForSVG(p,((E=h.config.mindmap)==null?void 0:E.padding)??a.defaultConfig_default.mindmap.padding,"mindmapDiagram",((b=h.config.mindmap)==null?void 0:b.useMaxWidth)??a.defaultConfig_default.mindmap.useMaxWidth))},"draw"),fe={draw:pe},me=a.__name(t=>{let e="";for(let i=0;i<t.THEME_COLOR_LIMIT;i++)t["lineColor"+i]=t["lineColor"+i]||t["cScaleInv"+i],a.isDark(t["lineColor"+i])?t["lineColor"+i]=a.lighten(t["lineColor"+i],20):t["lineColor"+i]=a.darken(t["lineColor"+i],20);for(let i=0;i<t.THEME_COLOR_LIMIT;i++){const l=""+(17-3*i);e+=`
|
|
8
|
-
.section-${i-1} rect, .section-${i-1} path, .section-${i-1} circle, .section-${i-1} polygon, .section-${i-1} path {
|
|
9
|
-
fill: ${t["cScale"+i]};
|
|
10
|
-
}
|
|
11
|
-
.section-${i-1} text {
|
|
12
|
-
fill: ${t["cScaleLabel"+i]};
|
|
13
|
-
}
|
|
14
|
-
.node-icon-${i-1} {
|
|
15
|
-
font-size: 40px;
|
|
16
|
-
color: ${t["cScaleLabel"+i]};
|
|
17
|
-
}
|
|
18
|
-
.section-edge-${i-1}{
|
|
19
|
-
stroke: ${t["cScale"+i]};
|
|
20
|
-
}
|
|
21
|
-
.edge-depth-${i-1}{
|
|
22
|
-
stroke-width: ${l};
|
|
23
|
-
}
|
|
24
|
-
.section-${i-1} line {
|
|
25
|
-
stroke: ${t["cScaleInv"+i]} ;
|
|
26
|
-
stroke-width: 3;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
.disabled, .disabled circle, .disabled text {
|
|
30
|
-
fill: lightgray;
|
|
31
|
-
}
|
|
32
|
-
.disabled text {
|
|
33
|
-
fill: #efefef;
|
|
34
|
-
}
|
|
35
|
-
`}return e},"genSections"),ye=a.__name(t=>`
|
|
36
|
-
.edge {
|
|
37
|
-
stroke-width: 3;
|
|
38
|
-
}
|
|
39
|
-
${me(t)}
|
|
40
|
-
.section-root rect, .section-root path, .section-root circle, .section-root polygon {
|
|
41
|
-
fill: ${t.git0};
|
|
42
|
-
}
|
|
43
|
-
.section-root text {
|
|
44
|
-
fill: ${t.gitBranchLabel0};
|
|
45
|
-
}
|
|
46
|
-
.section-root span {
|
|
47
|
-
color: ${t.gitBranchLabel0};
|
|
48
|
-
}
|
|
49
|
-
.section-2 span {
|
|
50
|
-
color: ${t.gitBranchLabel0};
|
|
51
|
-
}
|
|
52
|
-
.icon-container {
|
|
53
|
-
height:100%;
|
|
54
|
-
display: flex;
|
|
55
|
-
justify-content: center;
|
|
56
|
-
align-items: center;
|
|
57
|
-
}
|
|
58
|
-
.edge {
|
|
59
|
-
fill: none;
|
|
60
|
-
}
|
|
61
|
-
.mindmap-node-label {
|
|
62
|
-
dy: 1em;
|
|
63
|
-
alignment-baseline: middle;
|
|
64
|
-
text-anchor: middle;
|
|
65
|
-
dominant-baseline: middle;
|
|
66
|
-
text-align: center;
|
|
67
|
-
}
|
|
68
|
-
`,"getStyles"),_e=ye,Ee={get db(){return new ue},renderer:fe,parser:ge,styles:_e};exports.diagram=Ee;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-CkYZRBYn.js"),Zt=require("./linear-DFDw13y6.js");var Et=function(){var t=e.__name(function(Y,l,o,g){for(o=o||{},g=Y.length;g--;o[Y[g]]=l);return o},"o"),s=[1,3],u=[1,4],h=[1,5],c=[1,6],p=[1,7],_=[1,4,5,10,12,13,14,18,25,35,37,39,41,42,48,50,51,52,53,54,55,56,57,60,61,63,64,65,66,67],b=[1,4,5,10,12,13,14,18,25,28,35,37,39,41,42,48,50,51,52,53,54,55,56,57,60,61,63,64,65,66,67],n=[55,56,57],A=[2,36],d=[1,37],y=[1,36],m=[1,38],T=[1,35],q=[1,43],f=[1,41],Q=[1,14],M=[1,23],j=[1,18],pt=[1,19],_t=[1,20],ht=[1,21],At=[1,22],dt=[1,24],ut=[1,25],ft=[1,26],xt=[1,27],i=[1,28],zt=[1,29],N=[1,32],W=[1,33],k=[1,34],F=[1,39],P=[1,40],C=[1,42],v=[1,44],O=[1,62],H=[1,61],L=[4,5,8,10,12,13,14,18,44,47,49,55,56,57,63,64,65,66,67],Vt=[1,65],It=[1,66],wt=[1,67],Bt=[1,68],Rt=[1,69],Nt=[1,70],Wt=[1,71],Ut=[1,72],Qt=[1,73],Ot=[1,74],Ht=[1,75],Xt=[1,76],V=[4,5,6,7,8,9,10,11,12,13,14,15,18],Z=[1,90],J=[1,91],$=[1,92],tt=[1,99],et=[1,93],at=[1,96],it=[1,94],nt=[1,95],st=[1,97],rt=[1,98],kt=[1,102],Mt=[10,55,56,57],B=[4,5,6,8,10,11,13,17,18,19,20,55,56,57],Ft={trace:e.__name(function(){},"trace"),yy:{},symbols_:{error:2,idStringToken:3,ALPHA:4,NUM:5,NODE_STRING:6,DOWN:7,MINUS:8,DEFAULT:9,COMMA:10,COLON:11,AMP:12,BRKT:13,MULT:14,UNICODE_TEXT:15,styleComponent:16,UNIT:17,SPACE:18,STYLE:19,PCT:20,idString:21,style:22,stylesOpt:23,classDefStatement:24,CLASSDEF:25,start:26,eol:27,QUADRANT:28,document:29,line:30,statement:31,axisDetails:32,quadrantDetails:33,points:34,title:35,title_value:36,acc_title:37,acc_title_value:38,acc_descr:39,acc_descr_value:40,acc_descr_multiline_value:41,section:42,text:43,point_start:44,point_x:45,point_y:46,class_name:47,"X-AXIS":48,"AXIS-TEXT-DELIMITER":49,"Y-AXIS":50,QUADRANT_1:51,QUADRANT_2:52,QUADRANT_3:53,QUADRANT_4:54,NEWLINE:55,SEMI:56,EOF:57,alphaNumToken:58,textNoTagsToken:59,STR:60,MD_STR:61,alphaNum:62,PUNCTUATION:63,PLUS:64,EQUALS:65,DOT:66,UNDERSCORE:67,$accept:0,$end:1},terminals_:{2:"error",4:"ALPHA",5:"NUM",6:"NODE_STRING",7:"DOWN",8:"MINUS",9:"DEFAULT",10:"COMMA",11:"COLON",12:"AMP",13:"BRKT",14:"MULT",15:"UNICODE_TEXT",17:"UNIT",18:"SPACE",19:"STYLE",20:"PCT",25:"CLASSDEF",28:"QUADRANT",35:"title",36:"title_value",37:"acc_title",38:"acc_title_value",39:"acc_descr",40:"acc_descr_value",41:"acc_descr_multiline_value",42:"section",44:"point_start",45:"point_x",46:"point_y",47:"class_name",48:"X-AXIS",49:"AXIS-TEXT-DELIMITER",50:"Y-AXIS",51:"QUADRANT_1",52:"QUADRANT_2",53:"QUADRANT_3",54:"QUADRANT_4",55:"NEWLINE",56:"SEMI",57:"EOF",60:"STR",61:"MD_STR",63:"PUNCTUATION",64:"PLUS",65:"EQUALS",66:"DOT",67:"UNDERSCORE"},productions_:[0,[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[21,1],[21,2],[22,1],[22,2],[23,1],[23,3],[24,5],[26,2],[26,2],[26,2],[29,0],[29,2],[30,2],[31,0],[31,1],[31,2],[31,1],[31,1],[31,1],[31,2],[31,2],[31,2],[31,1],[31,1],[34,4],[34,5],[34,5],[34,6],[32,4],[32,3],[32,2],[32,4],[32,3],[32,2],[33,2],[33,2],[33,2],[33,2],[27,1],[27,1],[27,1],[43,1],[43,2],[43,1],[43,1],[62,1],[62,2],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[59,1],[59,1],[59,1]],performAction:e.__name(function(l,o,g,x,S,a,gt){var r=a.length-1;switch(S){case 23:this.$=a[r];break;case 24:this.$=a[r-1]+""+a[r];break;case 26:this.$=a[r-1]+a[r];break;case 27:this.$=[a[r].trim()];break;case 28:a[r-2].push(a[r].trim()),this.$=a[r-2];break;case 29:this.$=a[r-4],x.addClass(a[r-2],a[r]);break;case 37:this.$=[];break;case 42:this.$=a[r].trim(),x.setDiagramTitle(this.$);break;case 43:this.$=a[r].trim(),x.setAccTitle(this.$);break;case 44:case 45:this.$=a[r].trim(),x.setAccDescription(this.$);break;case 46:x.addSection(a[r].substr(8)),this.$=a[r].substr(8);break;case 47:x.addPoint(a[r-3],"",a[r-1],a[r],[]);break;case 48:x.addPoint(a[r-4],a[r-3],a[r-1],a[r],[]);break;case 49:x.addPoint(a[r-4],"",a[r-2],a[r-1],a[r]);break;case 50:x.addPoint(a[r-5],a[r-4],a[r-2],a[r-1],a[r]);break;case 51:x.setXAxisLeftText(a[r-2]),x.setXAxisRightText(a[r]);break;case 52:a[r-1].text+=" ⟶ ",x.setXAxisLeftText(a[r-1]);break;case 53:x.setXAxisLeftText(a[r]);break;case 54:x.setYAxisBottomText(a[r-2]),x.setYAxisTopText(a[r]);break;case 55:a[r-1].text+=" ⟶ ",x.setYAxisBottomText(a[r-1]);break;case 56:x.setYAxisBottomText(a[r]);break;case 57:x.setQuadrant1Text(a[r]);break;case 58:x.setQuadrant2Text(a[r]);break;case 59:x.setQuadrant3Text(a[r]);break;case 60:x.setQuadrant4Text(a[r]);break;case 64:this.$={text:a[r],type:"text"};break;case 65:this.$={text:a[r-1].text+""+a[r],type:a[r-1].type};break;case 66:this.$={text:a[r],type:"text"};break;case 67:this.$={text:a[r],type:"markdown"};break;case 68:this.$=a[r];break;case 69:this.$=a[r-1]+""+a[r];break}},"anonymous"),table:[{18:s,26:1,27:2,28:u,55:h,56:c,57:p},{1:[3]},{18:s,26:8,27:2,28:u,55:h,56:c,57:p},{18:s,26:9,27:2,28:u,55:h,56:c,57:p},t(_,[2,33],{29:10}),t(b,[2,61]),t(b,[2,62]),t(b,[2,63]),{1:[2,30]},{1:[2,31]},t(n,A,{30:11,31:12,24:13,32:15,33:16,34:17,43:30,58:31,1:[2,32],4:d,5:y,10:m,12:T,13:q,14:f,18:Q,25:M,35:j,37:pt,39:_t,41:ht,42:At,48:dt,50:ut,51:ft,52:xt,53:i,54:zt,60:N,61:W,63:k,64:F,65:P,66:C,67:v}),t(_,[2,34]),{27:45,55:h,56:c,57:p},t(n,[2,37]),t(n,A,{24:13,32:15,33:16,34:17,43:30,58:31,31:46,4:d,5:y,10:m,12:T,13:q,14:f,18:Q,25:M,35:j,37:pt,39:_t,41:ht,42:At,48:dt,50:ut,51:ft,52:xt,53:i,54:zt,60:N,61:W,63:k,64:F,65:P,66:C,67:v}),t(n,[2,39]),t(n,[2,40]),t(n,[2,41]),{36:[1,47]},{38:[1,48]},{40:[1,49]},t(n,[2,45]),t(n,[2,46]),{18:[1,50]},{4:d,5:y,10:m,12:T,13:q,14:f,43:51,58:31,60:N,61:W,63:k,64:F,65:P,66:C,67:v},{4:d,5:y,10:m,12:T,13:q,14:f,43:52,58:31,60:N,61:W,63:k,64:F,65:P,66:C,67:v},{4:d,5:y,10:m,12:T,13:q,14:f,43:53,58:31,60:N,61:W,63:k,64:F,65:P,66:C,67:v},{4:d,5:y,10:m,12:T,13:q,14:f,43:54,58:31,60:N,61:W,63:k,64:F,65:P,66:C,67:v},{4:d,5:y,10:m,12:T,13:q,14:f,43:55,58:31,60:N,61:W,63:k,64:F,65:P,66:C,67:v},{4:d,5:y,10:m,12:T,13:q,14:f,43:56,58:31,60:N,61:W,63:k,64:F,65:P,66:C,67:v},{4:d,5:y,8:O,10:m,12:T,13:q,14:f,18:H,44:[1,57],47:[1,58],58:60,59:59,63:k,64:F,65:P,66:C,67:v},t(L,[2,64]),t(L,[2,66]),t(L,[2,67]),t(L,[2,70]),t(L,[2,71]),t(L,[2,72]),t(L,[2,73]),t(L,[2,74]),t(L,[2,75]),t(L,[2,76]),t(L,[2,77]),t(L,[2,78]),t(L,[2,79]),t(L,[2,80]),t(_,[2,35]),t(n,[2,38]),t(n,[2,42]),t(n,[2,43]),t(n,[2,44]),{3:64,4:Vt,5:It,6:wt,7:Bt,8:Rt,9:Nt,10:Wt,11:Ut,12:Qt,13:Ot,14:Ht,15:Xt,21:63},t(n,[2,53],{59:59,58:60,4:d,5:y,8:O,10:m,12:T,13:q,14:f,18:H,49:[1,77],63:k,64:F,65:P,66:C,67:v}),t(n,[2,56],{59:59,58:60,4:d,5:y,8:O,10:m,12:T,13:q,14:f,18:H,49:[1,78],63:k,64:F,65:P,66:C,67:v}),t(n,[2,57],{59:59,58:60,4:d,5:y,8:O,10:m,12:T,13:q,14:f,18:H,63:k,64:F,65:P,66:C,67:v}),t(n,[2,58],{59:59,58:60,4:d,5:y,8:O,10:m,12:T,13:q,14:f,18:H,63:k,64:F,65:P,66:C,67:v}),t(n,[2,59],{59:59,58:60,4:d,5:y,8:O,10:m,12:T,13:q,14:f,18:H,63:k,64:F,65:P,66:C,67:v}),t(n,[2,60],{59:59,58:60,4:d,5:y,8:O,10:m,12:T,13:q,14:f,18:H,63:k,64:F,65:P,66:C,67:v}),{45:[1,79]},{44:[1,80]},t(L,[2,65]),t(L,[2,81]),t(L,[2,82]),t(L,[2,83]),{3:82,4:Vt,5:It,6:wt,7:Bt,8:Rt,9:Nt,10:Wt,11:Ut,12:Qt,13:Ot,14:Ht,15:Xt,18:[1,81]},t(V,[2,23]),t(V,[2,1]),t(V,[2,2]),t(V,[2,3]),t(V,[2,4]),t(V,[2,5]),t(V,[2,6]),t(V,[2,7]),t(V,[2,8]),t(V,[2,9]),t(V,[2,10]),t(V,[2,11]),t(V,[2,12]),t(n,[2,52],{58:31,43:83,4:d,5:y,10:m,12:T,13:q,14:f,60:N,61:W,63:k,64:F,65:P,66:C,67:v}),t(n,[2,55],{58:31,43:84,4:d,5:y,10:m,12:T,13:q,14:f,60:N,61:W,63:k,64:F,65:P,66:C,67:v}),{46:[1,85]},{45:[1,86]},{4:Z,5:J,6:$,8:tt,11:et,13:at,16:89,17:it,18:nt,19:st,20:rt,22:88,23:87},t(V,[2,24]),t(n,[2,51],{59:59,58:60,4:d,5:y,8:O,10:m,12:T,13:q,14:f,18:H,63:k,64:F,65:P,66:C,67:v}),t(n,[2,54],{59:59,58:60,4:d,5:y,8:O,10:m,12:T,13:q,14:f,18:H,63:k,64:F,65:P,66:C,67:v}),t(n,[2,47],{22:88,16:89,23:100,4:Z,5:J,6:$,8:tt,11:et,13:at,17:it,18:nt,19:st,20:rt}),{46:[1,101]},t(n,[2,29],{10:kt}),t(Mt,[2,27],{16:103,4:Z,5:J,6:$,8:tt,11:et,13:at,17:it,18:nt,19:st,20:rt}),t(B,[2,25]),t(B,[2,13]),t(B,[2,14]),t(B,[2,15]),t(B,[2,16]),t(B,[2,17]),t(B,[2,18]),t(B,[2,19]),t(B,[2,20]),t(B,[2,21]),t(B,[2,22]),t(n,[2,49],{10:kt}),t(n,[2,48],{22:88,16:89,23:104,4:Z,5:J,6:$,8:tt,11:et,13:at,17:it,18:nt,19:st,20:rt}),{4:Z,5:J,6:$,8:tt,11:et,13:at,16:89,17:it,18:nt,19:st,20:rt,22:105},t(B,[2,26]),t(n,[2,50],{10:kt}),t(Mt,[2,28],{16:103,4:Z,5:J,6:$,8:tt,11:et,13:at,17:it,18:nt,19:st,20:rt})],defaultActions:{8:[2,30],9:[2,31]},parseError:e.__name(function(l,o){if(o.recoverable)this.trace(l);else{var g=new Error(l);throw g.hash=o,g}},"parseError"),parse:e.__name(function(l){var o=this,g=[0],x=[],S=[null],a=[],gt=this.table,r="",mt=0,Yt=0,xe=2,jt=1,ge=a.slice.call(arguments,1),E=Object.create(this.lexer),G={yy:{}};for(var Pt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Pt)&&(G.yy[Pt]=this.yy[Pt]);E.setInput(l,G.yy),G.yy.lexer=E,G.yy.parser=this,typeof E.yylloc>"u"&&(E.yylloc={});var Ct=E.yylloc;a.push(Ct);var pe=E.options&&E.options.ranges;typeof G.yy.parseError=="function"?this.parseError=G.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function _e(w){g.length=g.length-2*w,S.length=S.length-w,a.length=a.length-w}e.__name(_e,"popStack");function Gt(){var w;return w=x.pop()||E.lex()||jt,typeof w!="number"&&(w instanceof Array&&(x=w,w=x.pop()),w=o.symbols_[w]||w),w}e.__name(Gt,"lex");for(var I,K,R,vt,lt={},Tt,X,Kt,qt;;){if(K=g[g.length-1],this.defaultActions[K]?R=this.defaultActions[K]:((I===null||typeof I>"u")&&(I=Gt()),R=gt[K]&>[K][I]),typeof R>"u"||!R.length||!R[0]){var Lt="";qt=[];for(Tt in gt[K])this.terminals_[Tt]&&Tt>xe&&qt.push("'"+this.terminals_[Tt]+"'");E.showPosition?Lt="Parse error on line "+(mt+1)+`:
|
|
2
|
-
`+E.showPosition()+`
|
|
3
|
-
Expecting `+qt.join(", ")+", got '"+(this.terminals_[I]||I)+"'":Lt="Parse error on line "+(mt+1)+": Unexpected "+(I==jt?"end of input":"'"+(this.terminals_[I]||I)+"'"),this.parseError(Lt,{text:E.match,token:this.terminals_[I]||I,line:E.yylineno,loc:Ct,expected:qt})}if(R[0]instanceof Array&&R.length>1)throw new Error("Parse Error: multiple actions possible at state: "+K+", token: "+I);switch(R[0]){case 1:g.push(I),S.push(E.yytext),a.push(E.yylloc),g.push(R[1]),I=null,Yt=E.yyleng,r=E.yytext,mt=E.yylineno,Ct=E.yylloc;break;case 2:if(X=this.productions_[R[1]][1],lt.$=S[S.length-X],lt._$={first_line:a[a.length-(X||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(X||1)].first_column,last_column:a[a.length-1].last_column},pe&&(lt._$.range=[a[a.length-(X||1)].range[0],a[a.length-1].range[1]]),vt=this.performAction.apply(lt,[r,Yt,mt,G.yy,R[1],S,a].concat(ge)),typeof vt<"u")return vt;X&&(g=g.slice(0,-1*X*2),S=S.slice(0,-1*X),a=a.slice(0,-1*X)),g.push(this.productions_[R[1]][0]),S.push(lt.$),a.push(lt._$),Kt=gt[g[g.length-2]][g[g.length-1]],g.push(Kt);break;case 3:return!0}}return!0},"parse")},fe=function(){var Y={EOF:1,parseError:e.__name(function(o,g){if(this.yy.parser)this.yy.parser.parseError(o,g);else throw new Error(o)},"parseError"),setInput:e.__name(function(l,o){return this.yy=o||this.yy||{},this._input=l,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:e.__name(function(){var l=this._input[0];this.yytext+=l,this.yyleng++,this.offset++,this.match+=l,this.matched+=l;var o=l.match(/(?:\r\n?|\n).*/g);return o?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),l},"input"),unput:e.__name(function(l){var o=l.length,g=l.split(/(?:\r\n?|\n)/g);this._input=l+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-o),this.offset-=o;var x=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),g.length-1&&(this.yylineno-=g.length-1);var S=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:g?(g.length===x.length?this.yylloc.first_column:0)+x[x.length-g.length].length-g[0].length:this.yylloc.first_column-o},this.options.ranges&&(this.yylloc.range=[S[0],S[0]+this.yyleng-o]),this.yyleng=this.yytext.length,this},"unput"),more:e.__name(function(){return this._more=!0,this},"more"),reject:e.__name(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
4
|
-
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:e.__name(function(l){this.unput(this.match.slice(l))},"less"),pastInput:e.__name(function(){var l=this.matched.substr(0,this.matched.length-this.match.length);return(l.length>20?"...":"")+l.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:e.__name(function(){var l=this.match;return l.length<20&&(l+=this._input.substr(0,20-l.length)),(l.substr(0,20)+(l.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:e.__name(function(){var l=this.pastInput(),o=new Array(l.length+1).join("-");return l+this.upcomingInput()+`
|
|
5
|
-
`+o+"^"},"showPosition"),test_match:e.__name(function(l,o){var g,x,S;if(this.options.backtrack_lexer&&(S={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&&(S.yylloc.range=this.yylloc.range.slice(0))),x=l[0].match(/(?:\r\n?|\n).*/g),x&&(this.yylineno+=x.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:x?x[x.length-1].length-x[x.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+l[0].length},this.yytext+=l[0],this.match+=l[0],this.matches=l,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(l[0].length),this.matched+=l[0],g=this.performAction.call(this,this.yy,this,o,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),g)return g;if(this._backtrack){for(var a in S)this[a]=S[a];return!1}return!1},"test_match"),next:e.__name(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var l,o,g,x;this._more||(this.yytext="",this.match="");for(var S=this._currentRules(),a=0;a<S.length;a++)if(g=this._input.match(this.rules[S[a]]),g&&(!o||g[0].length>o[0].length)){if(o=g,x=a,this.options.backtrack_lexer){if(l=this.test_match(g,S[a]),l!==!1)return l;if(this._backtrack){o=!1;continue}else return!1}else if(!this.options.flex)break}return o?(l=this.test_match(o,S[x]),l!==!1?l:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
|
6
|
-
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:e.__name(function(){var o=this.next();return o||this.lex()},"lex"),begin:e.__name(function(o){this.conditionStack.push(o)},"begin"),popState:e.__name(function(){var o=this.conditionStack.length-1;return o>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:e.__name(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:e.__name(function(o){return o=this.conditionStack.length-1-Math.abs(o||0),o>=0?this.conditionStack[o]:"INITIAL"},"topState"),pushState:e.__name(function(o){this.begin(o)},"pushState"),stateStackSize:e.__name(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:e.__name(function(o,g,x,S){switch(x){case 0:break;case 1:break;case 2:return 55;case 3:break;case 4:return this.begin("title"),35;case 5:return this.popState(),"title_value";case 6:return this.begin("acc_title"),37;case 7:return this.popState(),"acc_title_value";case 8:return this.begin("acc_descr"),39;case 9:return this.popState(),"acc_descr_value";case 10:this.begin("acc_descr_multiline");break;case 11:this.popState();break;case 12:return"acc_descr_multiline_value";case 13:return 48;case 14:return 50;case 15:return 49;case 16:return 51;case 17:return 52;case 18:return 53;case 19:return 54;case 20:return 25;case 21:this.begin("md_string");break;case 22:return"MD_STR";case 23:this.popState();break;case 24:this.begin("string");break;case 25:this.popState();break;case 26:return"STR";case 27:this.begin("class_name");break;case 28:return this.popState(),47;case 29:return this.begin("point_start"),44;case 30:return this.begin("point_x"),45;case 31:this.popState();break;case 32:this.popState(),this.begin("point_y");break;case 33:return this.popState(),46;case 34:return 28;case 35:return 4;case 36:return 11;case 37:return 64;case 38:return 10;case 39:return 65;case 40:return 65;case 41:return 14;case 42:return 13;case 43:return 67;case 44:return 66;case 45:return 12;case 46:return 8;case 47:return 5;case 48:return 18;case 49:return 56;case 50:return 63;case 51:return 57}},"anonymous"),rules:[/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n\r]+)/i,/^(?:%%[^\n]*)/i,/^(?:title\b)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?: *x-axis *)/i,/^(?: *y-axis *)/i,/^(?: *--+> *)/i,/^(?: *quadrant-1 *)/i,/^(?: *quadrant-2 *)/i,/^(?: *quadrant-3 *)/i,/^(?: *quadrant-4 *)/i,/^(?:classDef\b)/i,/^(?:["][`])/i,/^(?:[^`"]+)/i,/^(?:[`]["])/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?::::)/i,/^(?:^\w+)/i,/^(?:\s*:\s*\[\s*)/i,/^(?:(1)|(0(.\d+)?))/i,/^(?:\s*\] *)/i,/^(?:\s*,\s*)/i,/^(?:(1)|(0(.\d+)?))/i,/^(?: *quadrantChart *)/i,/^(?:[A-Za-z]+)/i,/^(?::)/i,/^(?:\+)/i,/^(?:,)/i,/^(?:=)/i,/^(?:=)/i,/^(?:\*)/i,/^(?:#)/i,/^(?:[\_])/i,/^(?:\.)/i,/^(?:&)/i,/^(?:-)/i,/^(?:[0-9]+)/i,/^(?:\s)/i,/^(?:;)/i,/^(?:[!"#$%&'*+,-.`?\\_/])/i,/^(?:$)/i],conditions:{class_name:{rules:[28],inclusive:!1},point_y:{rules:[33],inclusive:!1},point_x:{rules:[32],inclusive:!1},point_start:{rules:[30,31],inclusive:!1},acc_descr_multiline:{rules:[11,12],inclusive:!1},acc_descr:{rules:[9],inclusive:!1},acc_title:{rules:[7],inclusive:!1},title:{rules:[5],inclusive:!1},md_string:{rules:[22,23],inclusive:!1},string:{rules:[25,26],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,6,8,10,13,14,15,16,17,18,19,20,21,24,27,29,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51],inclusive:!0}}};return Y}();Ft.lexer=fe;function yt(){this.yy={}}return e.__name(yt,"Parser"),yt.prototype=Ft,Ft.Parser=yt,new yt}();Et.parser=Et;var ye=Et,z=e.getThemeVariables3(),ot,me=(ot=class{constructor(){this.classes=new Map,this.config=this.getDefaultConfig(),this.themeConfig=this.getDefaultThemeConfig(),this.data=this.getDefaultData()}getDefaultData(){return{titleText:"",quadrant1Text:"",quadrant2Text:"",quadrant3Text:"",quadrant4Text:"",xAxisLeftText:"",xAxisRightText:"",yAxisBottomText:"",yAxisTopText:"",points:[]}}getDefaultConfig(){var s,u,h,c,p,_,b,n,A,d,y,m,T,q,f,Q,M,j;return{showXAxis:!0,showYAxis:!0,showTitle:!0,chartHeight:((s=e.defaultConfig_default.quadrantChart)==null?void 0:s.chartWidth)||500,chartWidth:((u=e.defaultConfig_default.quadrantChart)==null?void 0:u.chartHeight)||500,titlePadding:((h=e.defaultConfig_default.quadrantChart)==null?void 0:h.titlePadding)||10,titleFontSize:((c=e.defaultConfig_default.quadrantChart)==null?void 0:c.titleFontSize)||20,quadrantPadding:((p=e.defaultConfig_default.quadrantChart)==null?void 0:p.quadrantPadding)||5,xAxisLabelPadding:((_=e.defaultConfig_default.quadrantChart)==null?void 0:_.xAxisLabelPadding)||5,yAxisLabelPadding:((b=e.defaultConfig_default.quadrantChart)==null?void 0:b.yAxisLabelPadding)||5,xAxisLabelFontSize:((n=e.defaultConfig_default.quadrantChart)==null?void 0:n.xAxisLabelFontSize)||16,yAxisLabelFontSize:((A=e.defaultConfig_default.quadrantChart)==null?void 0:A.yAxisLabelFontSize)||16,quadrantLabelFontSize:((d=e.defaultConfig_default.quadrantChart)==null?void 0:d.quadrantLabelFontSize)||16,quadrantTextTopPadding:((y=e.defaultConfig_default.quadrantChart)==null?void 0:y.quadrantTextTopPadding)||5,pointTextPadding:((m=e.defaultConfig_default.quadrantChart)==null?void 0:m.pointTextPadding)||5,pointLabelFontSize:((T=e.defaultConfig_default.quadrantChart)==null?void 0:T.pointLabelFontSize)||12,pointRadius:((q=e.defaultConfig_default.quadrantChart)==null?void 0:q.pointRadius)||5,xAxisPosition:((f=e.defaultConfig_default.quadrantChart)==null?void 0:f.xAxisPosition)||"top",yAxisPosition:((Q=e.defaultConfig_default.quadrantChart)==null?void 0:Q.yAxisPosition)||"left",quadrantInternalBorderStrokeWidth:((M=e.defaultConfig_default.quadrantChart)==null?void 0:M.quadrantInternalBorderStrokeWidth)||1,quadrantExternalBorderStrokeWidth:((j=e.defaultConfig_default.quadrantChart)==null?void 0:j.quadrantExternalBorderStrokeWidth)||2}}getDefaultThemeConfig(){return{quadrant1Fill:z.quadrant1Fill,quadrant2Fill:z.quadrant2Fill,quadrant3Fill:z.quadrant3Fill,quadrant4Fill:z.quadrant4Fill,quadrant1TextFill:z.quadrant1TextFill,quadrant2TextFill:z.quadrant2TextFill,quadrant3TextFill:z.quadrant3TextFill,quadrant4TextFill:z.quadrant4TextFill,quadrantPointFill:z.quadrantPointFill,quadrantPointTextFill:z.quadrantPointTextFill,quadrantXAxisTextFill:z.quadrantXAxisTextFill,quadrantYAxisTextFill:z.quadrantYAxisTextFill,quadrantTitleFill:z.quadrantTitleFill,quadrantInternalBorderStrokeFill:z.quadrantInternalBorderStrokeFill,quadrantExternalBorderStrokeFill:z.quadrantExternalBorderStrokeFill}}clear(){this.config=this.getDefaultConfig(),this.themeConfig=this.getDefaultThemeConfig(),this.data=this.getDefaultData(),this.classes=new Map,e.log.info("clear called")}setData(s){this.data={...this.data,...s}}addPoints(s){this.data.points=[...s,...this.data.points]}addClass(s,u){this.classes.set(s,u)}setConfig(s){e.log.trace("setConfig called with: ",s),this.config={...this.config,...s}}setThemeConfig(s){e.log.trace("setThemeConfig called with: ",s),this.themeConfig={...this.themeConfig,...s}}calculateSpace(s,u,h,c){const p=this.config.xAxisLabelPadding*2+this.config.xAxisLabelFontSize,_={top:s==="top"&&u?p:0,bottom:s==="bottom"&&u?p:0},b=this.config.yAxisLabelPadding*2+this.config.yAxisLabelFontSize,n={left:this.config.yAxisPosition==="left"&&h?b:0,right:this.config.yAxisPosition==="right"&&h?b:0},A=this.config.titleFontSize+this.config.titlePadding*2,d={top:c?A:0},y=this.config.quadrantPadding+n.left,m=this.config.quadrantPadding+_.top+d.top,T=this.config.chartWidth-this.config.quadrantPadding*2-n.left-n.right,q=this.config.chartHeight-this.config.quadrantPadding*2-_.top-_.bottom-d.top,f=T/2,Q=q/2;return{xAxisSpace:_,yAxisSpace:n,titleSpace:d,quadrantSpace:{quadrantLeft:y,quadrantTop:m,quadrantWidth:T,quadrantHalfWidth:f,quadrantHeight:q,quadrantHalfHeight:Q}}}getAxisLabels(s,u,h,c){const{quadrantSpace:p,titleSpace:_}=c,{quadrantHalfHeight:b,quadrantHeight:n,quadrantLeft:A,quadrantHalfWidth:d,quadrantTop:y,quadrantWidth:m}=p,T=!!this.data.xAxisRightText,q=!!this.data.yAxisTopText,f=[];return this.data.xAxisLeftText&&u&&f.push({text:this.data.xAxisLeftText,fill:this.themeConfig.quadrantXAxisTextFill,x:A+(T?d/2:0),y:s==="top"?this.config.xAxisLabelPadding+_.top:this.config.xAxisLabelPadding+y+n+this.config.quadrantPadding,fontSize:this.config.xAxisLabelFontSize,verticalPos:T?"center":"left",horizontalPos:"top",rotation:0}),this.data.xAxisRightText&&u&&f.push({text:this.data.xAxisRightText,fill:this.themeConfig.quadrantXAxisTextFill,x:A+d+(T?d/2:0),y:s==="top"?this.config.xAxisLabelPadding+_.top:this.config.xAxisLabelPadding+y+n+this.config.quadrantPadding,fontSize:this.config.xAxisLabelFontSize,verticalPos:T?"center":"left",horizontalPos:"top",rotation:0}),this.data.yAxisBottomText&&h&&f.push({text:this.data.yAxisBottomText,fill:this.themeConfig.quadrantYAxisTextFill,x:this.config.yAxisPosition==="left"?this.config.yAxisLabelPadding:this.config.yAxisLabelPadding+A+m+this.config.quadrantPadding,y:y+n-(q?b/2:0),fontSize:this.config.yAxisLabelFontSize,verticalPos:q?"center":"left",horizontalPos:"top",rotation:-90}),this.data.yAxisTopText&&h&&f.push({text:this.data.yAxisTopText,fill:this.themeConfig.quadrantYAxisTextFill,x:this.config.yAxisPosition==="left"?this.config.yAxisLabelPadding:this.config.yAxisLabelPadding+A+m+this.config.quadrantPadding,y:y+b-(q?b/2:0),fontSize:this.config.yAxisLabelFontSize,verticalPos:q?"center":"left",horizontalPos:"top",rotation:-90}),f}getQuadrants(s){const{quadrantSpace:u}=s,{quadrantHalfHeight:h,quadrantLeft:c,quadrantHalfWidth:p,quadrantTop:_}=u,b=[{text:{text:this.data.quadrant1Text,fill:this.themeConfig.quadrant1TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:"center",horizontalPos:"middle",rotation:0},x:c+p,y:_,width:p,height:h,fill:this.themeConfig.quadrant1Fill},{text:{text:this.data.quadrant2Text,fill:this.themeConfig.quadrant2TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:"center",horizontalPos:"middle",rotation:0},x:c,y:_,width:p,height:h,fill:this.themeConfig.quadrant2Fill},{text:{text:this.data.quadrant3Text,fill:this.themeConfig.quadrant3TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:"center",horizontalPos:"middle",rotation:0},x:c,y:_+h,width:p,height:h,fill:this.themeConfig.quadrant3Fill},{text:{text:this.data.quadrant4Text,fill:this.themeConfig.quadrant4TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:"center",horizontalPos:"middle",rotation:0},x:c+p,y:_+h,width:p,height:h,fill:this.themeConfig.quadrant4Fill}];for(const n of b)n.text.x=n.x+n.width/2,this.data.points.length===0?(n.text.y=n.y+n.height/2,n.text.horizontalPos="middle"):(n.text.y=n.y+this.config.quadrantTextTopPadding,n.text.horizontalPos="top");return b}getQuadrantPoints(s){const{quadrantSpace:u}=s,{quadrantHeight:h,quadrantLeft:c,quadrantTop:p,quadrantWidth:_}=u,b=Zt.linear().domain([0,1]).range([c,_+c]),n=Zt.linear().domain([0,1]).range([h+p,p]);return this.data.points.map(d=>{const y=this.classes.get(d.className);return y&&(d={...y,...d}),{x:b(d.x),y:n(d.y),fill:d.color??this.themeConfig.quadrantPointFill,radius:d.radius??this.config.pointRadius,text:{text:d.text,fill:this.themeConfig.quadrantPointTextFill,x:b(d.x),y:n(d.y)+this.config.pointTextPadding,verticalPos:"center",horizontalPos:"top",fontSize:this.config.pointLabelFontSize,rotation:0},strokeColor:d.strokeColor??this.themeConfig.quadrantPointFill,strokeWidth:d.strokeWidth??"0px"}})}getBorders(s){const u=this.config.quadrantExternalBorderStrokeWidth/2,{quadrantSpace:h}=s,{quadrantHalfHeight:c,quadrantHeight:p,quadrantLeft:_,quadrantHalfWidth:b,quadrantTop:n,quadrantWidth:A}=h;return[{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:_-u,y1:n,x2:_+A+u,y2:n},{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:_+A,y1:n+u,x2:_+A,y2:n+p-u},{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:_-u,y1:n+p,x2:_+A+u,y2:n+p},{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:_,y1:n+u,x2:_,y2:n+p-u},{strokeFill:this.themeConfig.quadrantInternalBorderStrokeFill,strokeWidth:this.config.quadrantInternalBorderStrokeWidth,x1:_+b,y1:n+u,x2:_+b,y2:n+p-u},{strokeFill:this.themeConfig.quadrantInternalBorderStrokeFill,strokeWidth:this.config.quadrantInternalBorderStrokeWidth,x1:_+u,y1:n+c,x2:_+A-u,y2:n+c}]}getTitle(s){if(s)return{text:this.data.titleText,fill:this.themeConfig.quadrantTitleFill,fontSize:this.config.titleFontSize,horizontalPos:"top",verticalPos:"center",rotation:0,y:this.config.titlePadding,x:this.config.chartWidth/2}}build(){const s=this.config.showXAxis&&!!(this.data.xAxisLeftText||this.data.xAxisRightText),u=this.config.showYAxis&&!!(this.data.yAxisTopText||this.data.yAxisBottomText),h=this.config.showTitle&&!!this.data.titleText,c=this.data.points.length>0?"bottom":this.config.xAxisPosition,p=this.calculateSpace(c,s,u,h);return{points:this.getQuadrantPoints(p),quadrants:this.getQuadrants(p),axisLabels:this.getAxisLabels(c,s,u,p),borderLines:this.getBorders(p),title:this.getTitle(h)}}},e.__name(ot,"QuadrantBuilder"),ot),ct,bt=(ct=class extends Error{constructor(s,u,h){super(`value for ${s} ${u} is invalid, please use a valid ${h}`),this.name="InvalidStyleError"}},e.__name(ct,"InvalidStyleError"),ct);function Dt(t){return!/^#?([\dA-Fa-f]{6}|[\dA-Fa-f]{3})$/.test(t)}e.__name(Dt,"validateHexCode");function Jt(t){return!/^\d+$/.test(t)}e.__name(Jt,"validateNumber");function $t(t){return!/^\d+px$/.test(t)}e.__name($t,"validateSizeInPixels");var Te=e.getConfig2();function U(t){return e.sanitizeText(t.trim(),Te)}e.__name(U,"textSanitizer");var D=new me;function te(t){D.setData({quadrant1Text:U(t.text)})}e.__name(te,"setQuadrant1Text");function ee(t){D.setData({quadrant2Text:U(t.text)})}e.__name(ee,"setQuadrant2Text");function ae(t){D.setData({quadrant3Text:U(t.text)})}e.__name(ae,"setQuadrant3Text");function ie(t){D.setData({quadrant4Text:U(t.text)})}e.__name(ie,"setQuadrant4Text");function ne(t){D.setData({xAxisLeftText:U(t.text)})}e.__name(ne,"setXAxisLeftText");function se(t){D.setData({xAxisRightText:U(t.text)})}e.__name(se,"setXAxisRightText");function re(t){D.setData({yAxisTopText:U(t.text)})}e.__name(re,"setYAxisTopText");function le(t){D.setData({yAxisBottomText:U(t.text)})}e.__name(le,"setYAxisBottomText");function St(t){const s={};for(const u of t){const[h,c]=u.trim().split(/\s*:\s*/);if(h==="radius"){if(Jt(c))throw new bt(h,c,"number");s.radius=parseInt(c)}else if(h==="color"){if(Dt(c))throw new bt(h,c,"hex code");s.color=c}else if(h==="stroke-color"){if(Dt(c))throw new bt(h,c,"hex code");s.strokeColor=c}else if(h==="stroke-width"){if($t(c))throw new bt(h,c,"number of pixels (eg. 10px)");s.strokeWidth=c}else throw new Error(`style named ${h} is not supported.`)}return s}e.__name(St,"parseStyles");function oe(t,s,u,h,c){const p=St(c);D.addPoints([{x:u,y:h,text:U(t.text),className:s,...p}])}e.__name(oe,"addPoint");function ce(t,s){D.addClass(t,St(s))}e.__name(ce,"addClass");function he(t){D.setConfig({chartWidth:t})}e.__name(he,"setWidth");function de(t){D.setConfig({chartHeight:t})}e.__name(de,"setHeight");function ue(){const t=e.getConfig2(),{themeVariables:s,quadrantChart:u}=t;return u&&D.setConfig(u),D.setThemeConfig({quadrant1Fill:s.quadrant1Fill,quadrant2Fill:s.quadrant2Fill,quadrant3Fill:s.quadrant3Fill,quadrant4Fill:s.quadrant4Fill,quadrant1TextFill:s.quadrant1TextFill,quadrant2TextFill:s.quadrant2TextFill,quadrant3TextFill:s.quadrant3TextFill,quadrant4TextFill:s.quadrant4TextFill,quadrantPointFill:s.quadrantPointFill,quadrantPointTextFill:s.quadrantPointTextFill,quadrantXAxisTextFill:s.quadrantXAxisTextFill,quadrantYAxisTextFill:s.quadrantYAxisTextFill,quadrantExternalBorderStrokeFill:s.quadrantExternalBorderStrokeFill,quadrantInternalBorderStrokeFill:s.quadrantInternalBorderStrokeFill,quadrantTitleFill:s.quadrantTitleFill}),D.setData({titleText:e.getDiagramTitle()}),D.build()}e.__name(ue,"getQuadrantData");var qe=e.__name(function(){D.clear(),e.clear()},"clear"),be={setWidth:he,setHeight:de,setQuadrant1Text:te,setQuadrant2Text:ee,setQuadrant3Text:ae,setQuadrant4Text:ie,setXAxisLeftText:ne,setXAxisRightText:se,setYAxisTopText:re,setYAxisBottomText:le,parseStyles:St,addPoint:oe,addClass:ce,getQuadrantData:ue,clear:qe,setAccTitle:e.setAccTitle,getAccTitle:e.getAccTitle,setDiagramTitle:e.setDiagramTitle,getDiagramTitle:e.getDiagramTitle,getAccDescription:e.getAccDescription,setAccDescription:e.setAccDescription},Se=e.__name((t,s,u,h)=>{var ut,ft,xt;function c(i){return i==="top"?"hanging":"middle"}e.__name(c,"getDominantBaseLine");function p(i){return i==="left"?"start":"middle"}e.__name(p,"getTextAnchor");function _(i){return`translate(${i.x}, ${i.y}) rotate(${i.rotation||0})`}e.__name(_,"getTransformation");const b=e.getConfig2();e.log.debug(`Rendering quadrant chart
|
|
7
|
-
`+t);const n=b.securityLevel;let A;n==="sandbox"&&(A=e.select("#i"+s));const y=(n==="sandbox"?e.select(A.nodes()[0].contentDocument.body):e.select("body")).select(`[id="${s}"]`),m=y.append("g").attr("class","main"),T=((ut=b.quadrantChart)==null?void 0:ut.chartWidth)??500,q=((ft=b.quadrantChart)==null?void 0:ft.chartHeight)??500;e.configureSvgSize(y,q,T,((xt=b.quadrantChart)==null?void 0:xt.useMaxWidth)??!0),y.attr("viewBox","0 0 "+T+" "+q),h.db.setHeight(q),h.db.setWidth(T);const f=h.db.getQuadrantData(),Q=m.append("g").attr("class","quadrants"),M=m.append("g").attr("class","border"),j=m.append("g").attr("class","data-points"),pt=m.append("g").attr("class","labels"),_t=m.append("g").attr("class","title");f.title&&_t.append("text").attr("x",0).attr("y",0).attr("fill",f.title.fill).attr("font-size",f.title.fontSize).attr("dominant-baseline",c(f.title.horizontalPos)).attr("text-anchor",p(f.title.verticalPos)).attr("transform",_(f.title)).text(f.title.text),f.borderLines&&M.selectAll("line").data(f.borderLines).enter().append("line").attr("x1",i=>i.x1).attr("y1",i=>i.y1).attr("x2",i=>i.x2).attr("y2",i=>i.y2).style("stroke",i=>i.strokeFill).style("stroke-width",i=>i.strokeWidth);const ht=Q.selectAll("g.quadrant").data(f.quadrants).enter().append("g").attr("class","quadrant");ht.append("rect").attr("x",i=>i.x).attr("y",i=>i.y).attr("width",i=>i.width).attr("height",i=>i.height).attr("fill",i=>i.fill),ht.append("text").attr("x",0).attr("y",0).attr("fill",i=>i.text.fill).attr("font-size",i=>i.text.fontSize).attr("dominant-baseline",i=>c(i.text.horizontalPos)).attr("text-anchor",i=>p(i.text.verticalPos)).attr("transform",i=>_(i.text)).text(i=>i.text.text),pt.selectAll("g.label").data(f.axisLabels).enter().append("g").attr("class","label").append("text").attr("x",0).attr("y",0).text(i=>i.text).attr("fill",i=>i.fill).attr("font-size",i=>i.fontSize).attr("dominant-baseline",i=>c(i.horizontalPos)).attr("text-anchor",i=>p(i.verticalPos)).attr("transform",i=>_(i));const dt=j.selectAll("g.data-point").data(f.points).enter().append("g").attr("class","data-point");dt.append("circle").attr("cx",i=>i.x).attr("cy",i=>i.y).attr("r",i=>i.radius).attr("fill",i=>i.fill).attr("stroke",i=>i.strokeColor).attr("stroke-width",i=>i.strokeWidth),dt.append("text").attr("x",0).attr("y",0).text(i=>i.text.text).attr("fill",i=>i.text.fill).attr("font-size",i=>i.text.fontSize).attr("dominant-baseline",i=>c(i.text.horizontalPos)).attr("text-anchor",i=>p(i.text.verticalPos)).attr("transform",i=>_(i.text))},"draw"),Ae={draw:Se},ke={parser:ye,db:be,renderer:Ae,styles:e.__name(()=>"","styles")};exports.diagram=ke;
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const je=require("./chunk-55IACEB6-P_FVKIbW.js"),We=require("./chunk-QN33PNHL-B0sO38bZ.js"),r=require("./index-CkYZRBYn.js");var Ne=function(){var e=r.__name(function(P,i,n,c){for(n=n||{},c=P.length;c--;n[P[c]]=i);return n},"o"),l=[1,3],m=[1,4],h=[1,5],f=[1,6],o=[5,6,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,77,89,90],E=[1,22],p=[2,7],u=[1,26],_=[1,27],I=[1,28],k=[1,29],A=[1,33],C=[1,34],V=[1,35],v=[1,36],x=[1,37],L=[1,38],O=[1,24],D=[1,31],w=[1,32],M=[1,30],y=[1,39],g=[1,40],R=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,77,89,90],$=[1,61],X=[89,90],qe=[5,8,9,11,13,21,22,23,24,27,29,41,42,43,44,45,46,54,61,63,72,74,75,76,77,80,81,82,83,84,85,86,87,88,89,90],de=[27,29],Ae=[1,70],Ce=[1,71],Ve=[1,72],ve=[1,73],xe=[1,74],Le=[1,75],Oe=[1,76],ee=[1,83],U=[1,80],te=[1,84],se=[1,85],ie=[1,86],re=[1,87],ne=[1,88],ae=[1,89],le=[1,90],ce=[1,91],oe=[1,92],Ee=[5,8,9,11,13,21,22,23,24,27,41,42,43,44,45,46,54,72,74,75,76,77,80,81,82,83,84,85,86,87,88,89,90],Y=[63,64],De=[1,101],we=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,76,77,89,90],N=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,75,76,77,80,81,82,83,84,85,86,87,88,89,90],B=[1,110],Q=[1,106],H=[1,107],K=[1,108],j=[1,109],W=[1,111],he=[1,116],ue=[1,117],me=[1,114],fe=[1,115],Se={trace:r.__name(function(){},"trace"),yy:{},symbols_:{error:2,start:3,directive:4,NEWLINE:5,RD:6,diagram:7,EOF:8,acc_title:9,acc_title_value:10,acc_descr:11,acc_descr_value:12,acc_descr_multiline_value:13,requirementDef:14,elementDef:15,relationshipDef:16,direction:17,styleStatement:18,classDefStatement:19,classStatement:20,direction_tb:21,direction_bt:22,direction_rl:23,direction_lr:24,requirementType:25,requirementName:26,STRUCT_START:27,requirementBody:28,STYLE_SEPARATOR:29,idList:30,ID:31,COLONSEP:32,id:33,TEXT:34,text:35,RISK:36,riskLevel:37,VERIFYMTHD:38,verifyType:39,STRUCT_STOP:40,REQUIREMENT:41,FUNCTIONAL_REQUIREMENT:42,INTERFACE_REQUIREMENT:43,PERFORMANCE_REQUIREMENT:44,PHYSICAL_REQUIREMENT:45,DESIGN_CONSTRAINT:46,LOW_RISK:47,MED_RISK:48,HIGH_RISK:49,VERIFY_ANALYSIS:50,VERIFY_DEMONSTRATION:51,VERIFY_INSPECTION:52,VERIFY_TEST:53,ELEMENT:54,elementName:55,elementBody:56,TYPE:57,type:58,DOCREF:59,ref:60,END_ARROW_L:61,relationship:62,LINE:63,END_ARROW_R:64,CONTAINS:65,COPIES:66,DERIVES:67,SATISFIES:68,VERIFIES:69,REFINES:70,TRACES:71,CLASSDEF:72,stylesOpt:73,CLASS:74,ALPHA:75,COMMA:76,STYLE:77,style:78,styleComponent:79,NUM:80,COLON:81,UNIT:82,SPACE:83,BRKT:84,PCT:85,MINUS:86,LABEL:87,SEMICOLON:88,unqString:89,qString:90,$accept:0,$end:1},terminals_:{2:"error",5:"NEWLINE",6:"RD",8:"EOF",9:"acc_title",10:"acc_title_value",11:"acc_descr",12:"acc_descr_value",13:"acc_descr_multiline_value",21:"direction_tb",22:"direction_bt",23:"direction_rl",24:"direction_lr",27:"STRUCT_START",29:"STYLE_SEPARATOR",31:"ID",32:"COLONSEP",34:"TEXT",36:"RISK",38:"VERIFYMTHD",40:"STRUCT_STOP",41:"REQUIREMENT",42:"FUNCTIONAL_REQUIREMENT",43:"INTERFACE_REQUIREMENT",44:"PERFORMANCE_REQUIREMENT",45:"PHYSICAL_REQUIREMENT",46:"DESIGN_CONSTRAINT",47:"LOW_RISK",48:"MED_RISK",49:"HIGH_RISK",50:"VERIFY_ANALYSIS",51:"VERIFY_DEMONSTRATION",52:"VERIFY_INSPECTION",53:"VERIFY_TEST",54:"ELEMENT",57:"TYPE",59:"DOCREF",61:"END_ARROW_L",63:"LINE",64:"END_ARROW_R",65:"CONTAINS",66:"COPIES",67:"DERIVES",68:"SATISFIES",69:"VERIFIES",70:"REFINES",71:"TRACES",72:"CLASSDEF",74:"CLASS",75:"ALPHA",76:"COMMA",77:"STYLE",80:"NUM",81:"COLON",82:"UNIT",83:"SPACE",84:"BRKT",85:"PCT",86:"MINUS",87:"LABEL",88:"SEMICOLON",89:"unqString",90:"qString"},productions_:[0,[3,3],[3,2],[3,4],[4,2],[4,2],[4,1],[7,0],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[17,1],[17,1],[17,1],[17,1],[14,5],[14,7],[28,5],[28,5],[28,5],[28,5],[28,2],[28,1],[25,1],[25,1],[25,1],[25,1],[25,1],[25,1],[37,1],[37,1],[37,1],[39,1],[39,1],[39,1],[39,1],[15,5],[15,7],[56,5],[56,5],[56,2],[56,1],[16,5],[16,5],[62,1],[62,1],[62,1],[62,1],[62,1],[62,1],[62,1],[19,3],[20,3],[20,3],[30,1],[30,3],[30,1],[30,3],[18,3],[73,1],[73,3],[78,1],[78,2],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[26,1],[26,1],[33,1],[33,1],[35,1],[35,1],[55,1],[55,1],[58,1],[58,1],[60,1],[60,1]],performAction:r.__name(function(i,n,c,s,d,t,_e){var a=t.length-1;switch(d){case 4:this.$=t[a].trim(),s.setAccTitle(this.$);break;case 5:case 6:this.$=t[a].trim(),s.setAccDescription(this.$);break;case 7:this.$=[];break;case 17:s.setDirection("TB");break;case 18:s.setDirection("BT");break;case 19:s.setDirection("RL");break;case 20:s.setDirection("LR");break;case 21:s.addRequirement(t[a-3],t[a-4]);break;case 22:s.addRequirement(t[a-5],t[a-6]),s.setClass([t[a-5]],t[a-3]);break;case 23:s.setNewReqId(t[a-2]);break;case 24:s.setNewReqText(t[a-2]);break;case 25:s.setNewReqRisk(t[a-2]);break;case 26:s.setNewReqVerifyMethod(t[a-2]);break;case 29:this.$=s.RequirementType.REQUIREMENT;break;case 30:this.$=s.RequirementType.FUNCTIONAL_REQUIREMENT;break;case 31:this.$=s.RequirementType.INTERFACE_REQUIREMENT;break;case 32:this.$=s.RequirementType.PERFORMANCE_REQUIREMENT;break;case 33:this.$=s.RequirementType.PHYSICAL_REQUIREMENT;break;case 34:this.$=s.RequirementType.DESIGN_CONSTRAINT;break;case 35:this.$=s.RiskLevel.LOW_RISK;break;case 36:this.$=s.RiskLevel.MED_RISK;break;case 37:this.$=s.RiskLevel.HIGH_RISK;break;case 38:this.$=s.VerifyType.VERIFY_ANALYSIS;break;case 39:this.$=s.VerifyType.VERIFY_DEMONSTRATION;break;case 40:this.$=s.VerifyType.VERIFY_INSPECTION;break;case 41:this.$=s.VerifyType.VERIFY_TEST;break;case 42:s.addElement(t[a-3]);break;case 43:s.addElement(t[a-5]),s.setClass([t[a-5]],t[a-3]);break;case 44:s.setNewElementType(t[a-2]);break;case 45:s.setNewElementDocRef(t[a-2]);break;case 48:s.addRelationship(t[a-2],t[a],t[a-4]);break;case 49:s.addRelationship(t[a-2],t[a-4],t[a]);break;case 50:this.$=s.Relationships.CONTAINS;break;case 51:this.$=s.Relationships.COPIES;break;case 52:this.$=s.Relationships.DERIVES;break;case 53:this.$=s.Relationships.SATISFIES;break;case 54:this.$=s.Relationships.VERIFIES;break;case 55:this.$=s.Relationships.REFINES;break;case 56:this.$=s.Relationships.TRACES;break;case 57:this.$=t[a-2],s.defineClass(t[a-1],t[a]);break;case 58:s.setClass(t[a-1],t[a]);break;case 59:s.setClass([t[a-2]],t[a]);break;case 60:case 62:this.$=[t[a]];break;case 61:case 63:this.$=t[a-2].concat([t[a]]);break;case 64:this.$=t[a-2],s.setCssStyle(t[a-1],t[a]);break;case 65:this.$=[t[a]];break;case 66:t[a-2].push(t[a]),this.$=t[a-2];break;case 68:this.$=t[a-1]+t[a];break}},"anonymous"),table:[{3:1,4:2,6:l,9:m,11:h,13:f},{1:[3]},{3:8,4:2,5:[1,7],6:l,9:m,11:h,13:f},{5:[1,9]},{10:[1,10]},{12:[1,11]},e(o,[2,6]),{3:12,4:2,6:l,9:m,11:h,13:f},{1:[2,2]},{4:17,5:E,7:13,8:p,9:m,11:h,13:f,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:u,22:_,23:I,24:k,25:23,33:25,41:A,42:C,43:V,44:v,45:x,46:L,54:O,72:D,74:w,77:M,89:y,90:g},e(o,[2,4]),e(o,[2,5]),{1:[2,1]},{8:[1,41]},{4:17,5:E,7:42,8:p,9:m,11:h,13:f,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:u,22:_,23:I,24:k,25:23,33:25,41:A,42:C,43:V,44:v,45:x,46:L,54:O,72:D,74:w,77:M,89:y,90:g},{4:17,5:E,7:43,8:p,9:m,11:h,13:f,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:u,22:_,23:I,24:k,25:23,33:25,41:A,42:C,43:V,44:v,45:x,46:L,54:O,72:D,74:w,77:M,89:y,90:g},{4:17,5:E,7:44,8:p,9:m,11:h,13:f,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:u,22:_,23:I,24:k,25:23,33:25,41:A,42:C,43:V,44:v,45:x,46:L,54:O,72:D,74:w,77:M,89:y,90:g},{4:17,5:E,7:45,8:p,9:m,11:h,13:f,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:u,22:_,23:I,24:k,25:23,33:25,41:A,42:C,43:V,44:v,45:x,46:L,54:O,72:D,74:w,77:M,89:y,90:g},{4:17,5:E,7:46,8:p,9:m,11:h,13:f,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:u,22:_,23:I,24:k,25:23,33:25,41:A,42:C,43:V,44:v,45:x,46:L,54:O,72:D,74:w,77:M,89:y,90:g},{4:17,5:E,7:47,8:p,9:m,11:h,13:f,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:u,22:_,23:I,24:k,25:23,33:25,41:A,42:C,43:V,44:v,45:x,46:L,54:O,72:D,74:w,77:M,89:y,90:g},{4:17,5:E,7:48,8:p,9:m,11:h,13:f,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:u,22:_,23:I,24:k,25:23,33:25,41:A,42:C,43:V,44:v,45:x,46:L,54:O,72:D,74:w,77:M,89:y,90:g},{4:17,5:E,7:49,8:p,9:m,11:h,13:f,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:u,22:_,23:I,24:k,25:23,33:25,41:A,42:C,43:V,44:v,45:x,46:L,54:O,72:D,74:w,77:M,89:y,90:g},{4:17,5:E,7:50,8:p,9:m,11:h,13:f,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:u,22:_,23:I,24:k,25:23,33:25,41:A,42:C,43:V,44:v,45:x,46:L,54:O,72:D,74:w,77:M,89:y,90:g},{26:51,89:[1,52],90:[1,53]},{55:54,89:[1,55],90:[1,56]},{29:[1,59],61:[1,57],63:[1,58]},e(R,[2,17]),e(R,[2,18]),e(R,[2,19]),e(R,[2,20]),{30:60,33:62,75:$,89:y,90:g},{30:63,33:62,75:$,89:y,90:g},{30:64,33:62,75:$,89:y,90:g},e(X,[2,29]),e(X,[2,30]),e(X,[2,31]),e(X,[2,32]),e(X,[2,33]),e(X,[2,34]),e(qe,[2,81]),e(qe,[2,82]),{1:[2,3]},{8:[2,8]},{8:[2,9]},{8:[2,10]},{8:[2,11]},{8:[2,12]},{8:[2,13]},{8:[2,14]},{8:[2,15]},{8:[2,16]},{27:[1,65],29:[1,66]},e(de,[2,79]),e(de,[2,80]),{27:[1,67],29:[1,68]},e(de,[2,85]),e(de,[2,86]),{62:69,65:Ae,66:Ce,67:Ve,68:ve,69:xe,70:Le,71:Oe},{62:77,65:Ae,66:Ce,67:Ve,68:ve,69:xe,70:Le,71:Oe},{30:78,33:62,75:$,89:y,90:g},{73:79,75:ee,76:U,78:81,79:82,80:te,81:se,82:ie,83:re,84:ne,85:ae,86:le,87:ce,88:oe},e(Ee,[2,60]),e(Ee,[2,62]),{73:93,75:ee,76:U,78:81,79:82,80:te,81:se,82:ie,83:re,84:ne,85:ae,86:le,87:ce,88:oe},{30:94,33:62,75:$,76:U,89:y,90:g},{5:[1,95]},{30:96,33:62,75:$,89:y,90:g},{5:[1,97]},{30:98,33:62,75:$,89:y,90:g},{63:[1,99]},e(Y,[2,50]),e(Y,[2,51]),e(Y,[2,52]),e(Y,[2,53]),e(Y,[2,54]),e(Y,[2,55]),e(Y,[2,56]),{64:[1,100]},e(R,[2,59],{76:U}),e(R,[2,64],{76:De}),{33:103,75:[1,102],89:y,90:g},e(we,[2,65],{79:104,75:ee,80:te,81:se,82:ie,83:re,84:ne,85:ae,86:le,87:ce,88:oe}),e(N,[2,67]),e(N,[2,69]),e(N,[2,70]),e(N,[2,71]),e(N,[2,72]),e(N,[2,73]),e(N,[2,74]),e(N,[2,75]),e(N,[2,76]),e(N,[2,77]),e(N,[2,78]),e(R,[2,57],{76:De}),e(R,[2,58],{76:U}),{5:B,28:105,31:Q,34:H,36:K,38:j,40:W},{27:[1,112],76:U},{5:he,40:ue,56:113,57:me,59:fe},{27:[1,118],76:U},{33:119,89:y,90:g},{33:120,89:y,90:g},{75:ee,78:121,79:82,80:te,81:se,82:ie,83:re,84:ne,85:ae,86:le,87:ce,88:oe},e(Ee,[2,61]),e(Ee,[2,63]),e(N,[2,68]),e(R,[2,21]),{32:[1,122]},{32:[1,123]},{32:[1,124]},{32:[1,125]},{5:B,28:126,31:Q,34:H,36:K,38:j,40:W},e(R,[2,28]),{5:[1,127]},e(R,[2,42]),{32:[1,128]},{32:[1,129]},{5:he,40:ue,56:130,57:me,59:fe},e(R,[2,47]),{5:[1,131]},e(R,[2,48]),e(R,[2,49]),e(we,[2,66],{79:104,75:ee,80:te,81:se,82:ie,83:re,84:ne,85:ae,86:le,87:ce,88:oe}),{33:132,89:y,90:g},{35:133,89:[1,134],90:[1,135]},{37:136,47:[1,137],48:[1,138],49:[1,139]},{39:140,50:[1,141],51:[1,142],52:[1,143],53:[1,144]},e(R,[2,27]),{5:B,28:145,31:Q,34:H,36:K,38:j,40:W},{58:146,89:[1,147],90:[1,148]},{60:149,89:[1,150],90:[1,151]},e(R,[2,46]),{5:he,40:ue,56:152,57:me,59:fe},{5:[1,153]},{5:[1,154]},{5:[2,83]},{5:[2,84]},{5:[1,155]},{5:[2,35]},{5:[2,36]},{5:[2,37]},{5:[1,156]},{5:[2,38]},{5:[2,39]},{5:[2,40]},{5:[2,41]},e(R,[2,22]),{5:[1,157]},{5:[2,87]},{5:[2,88]},{5:[1,158]},{5:[2,89]},{5:[2,90]},e(R,[2,43]),{5:B,28:159,31:Q,34:H,36:K,38:j,40:W},{5:B,28:160,31:Q,34:H,36:K,38:j,40:W},{5:B,28:161,31:Q,34:H,36:K,38:j,40:W},{5:B,28:162,31:Q,34:H,36:K,38:j,40:W},{5:he,40:ue,56:163,57:me,59:fe},{5:he,40:ue,56:164,57:me,59:fe},e(R,[2,23]),e(R,[2,24]),e(R,[2,25]),e(R,[2,26]),e(R,[2,44]),e(R,[2,45])],defaultActions:{8:[2,2],12:[2,1],41:[2,3],42:[2,8],43:[2,9],44:[2,10],45:[2,11],46:[2,12],47:[2,13],48:[2,14],49:[2,15],50:[2,16],134:[2,83],135:[2,84],137:[2,35],138:[2,36],139:[2,37],141:[2,38],142:[2,39],143:[2,40],144:[2,41],147:[2,87],148:[2,88],150:[2,89],151:[2,90]},parseError:r.__name(function(i,n){if(n.recoverable)this.trace(i);else{var c=new Error(i);throw c.hash=n,c}},"parseError"),parse:r.__name(function(i){var n=this,c=[0],s=[],d=[null],t=[],_e=this.table,a="",Re=0,Me=0,Be=2,Fe=1,Qe=t.slice.call(arguments,1),S=Object.create(this.lexer),G={yy:{}};for(var Ie in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Ie)&&(G.yy[Ie]=this.yy[Ie]);S.setInput(i,G.yy),G.yy.lexer=S,G.yy.parser=this,typeof S.yylloc>"u"&&(S.yylloc={});var be=S.yylloc;t.push(be);var He=S.options&&S.options.ranges;typeof G.yy.parseError=="function"?this.parseError=G.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Ke(T){c.length=c.length-2*T,d.length=d.length-T,t.length=t.length-T}r.__name(Ke,"popStack");function Pe(){var T;return T=s.pop()||S.lex()||Fe,typeof T!="number"&&(T instanceof Array&&(s=T,T=s.pop()),T=n.symbols_[T]||T),T}r.__name(Pe,"lex");for(var b,z,q,Te,J={},ye,F,$e,ge;;){if(z=c[c.length-1],this.defaultActions[z]?q=this.defaultActions[z]:((b===null||typeof b>"u")&&(b=Pe()),q=_e[z]&&_e[z][b]),typeof q>"u"||!q.length||!q[0]){var ke="";ge=[];for(ye in _e[z])this.terminals_[ye]&&ye>Be&&ge.push("'"+this.terminals_[ye]+"'");S.showPosition?ke="Parse error on line "+(Re+1)+`:
|
|
2
|
-
`+S.showPosition()+`
|
|
3
|
-
Expecting `+ge.join(", ")+", got '"+(this.terminals_[b]||b)+"'":ke="Parse error on line "+(Re+1)+": Unexpected "+(b==Fe?"end of input":"'"+(this.terminals_[b]||b)+"'"),this.parseError(ke,{text:S.match,token:this.terminals_[b]||b,line:S.yylineno,loc:be,expected:ge})}if(q[0]instanceof Array&&q.length>1)throw new Error("Parse Error: multiple actions possible at state: "+z+", token: "+b);switch(q[0]){case 1:c.push(b),d.push(S.yytext),t.push(S.yylloc),c.push(q[1]),b=null,Me=S.yyleng,a=S.yytext,Re=S.yylineno,be=S.yylloc;break;case 2:if(F=this.productions_[q[1]][1],J.$=d[d.length-F],J._$={first_line:t[t.length-(F||1)].first_line,last_line:t[t.length-1].last_line,first_column:t[t.length-(F||1)].first_column,last_column:t[t.length-1].last_column},He&&(J._$.range=[t[t.length-(F||1)].range[0],t[t.length-1].range[1]]),Te=this.performAction.apply(J,[a,Me,Re,G.yy,q[1],d,t].concat(Qe)),typeof Te<"u")return Te;F&&(c=c.slice(0,-1*F*2),d=d.slice(0,-1*F),t=t.slice(0,-1*F)),c.push(this.productions_[q[1]][0]),d.push(J.$),t.push(J._$),$e=_e[c[c.length-2]][c[c.length-1]],c.push($e);break;case 3:return!0}}return!0},"parse")},Ye=function(){var P={EOF:1,parseError:r.__name(function(n,c){if(this.yy.parser)this.yy.parser.parseError(n,c);else throw new Error(n)},"parseError"),setInput:r.__name(function(i,n){return this.yy=n||this.yy||{},this._input=i,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:r.__name(function(){var i=this._input[0];this.yytext+=i,this.yyleng++,this.offset++,this.match+=i,this.matched+=i;var n=i.match(/(?:\r\n?|\n).*/g);return n?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),i},"input"),unput:r.__name(function(i){var n=i.length,c=i.split(/(?:\r\n?|\n)/g);this._input=i+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-n),this.offset-=n;var s=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),c.length-1&&(this.yylineno-=c.length-1);var d=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:c?(c.length===s.length?this.yylloc.first_column:0)+s[s.length-c.length].length-c[0].length:this.yylloc.first_column-n},this.options.ranges&&(this.yylloc.range=[d[0],d[0]+this.yyleng-n]),this.yyleng=this.yytext.length,this},"unput"),more:r.__name(function(){return this._more=!0,this},"more"),reject:r.__name(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
4
|
-
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:r.__name(function(i){this.unput(this.match.slice(i))},"less"),pastInput:r.__name(function(){var i=this.matched.substr(0,this.matched.length-this.match.length);return(i.length>20?"...":"")+i.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:r.__name(function(){var i=this.match;return i.length<20&&(i+=this._input.substr(0,20-i.length)),(i.substr(0,20)+(i.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:r.__name(function(){var i=this.pastInput(),n=new Array(i.length+1).join("-");return i+this.upcomingInput()+`
|
|
5
|
-
`+n+"^"},"showPosition"),test_match:r.__name(function(i,n){var c,s,d;if(this.options.backtrack_lexer&&(d={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&&(d.yylloc.range=this.yylloc.range.slice(0))),s=i[0].match(/(?:\r\n?|\n).*/g),s&&(this.yylineno+=s.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:s?s[s.length-1].length-s[s.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+i[0].length},this.yytext+=i[0],this.match+=i[0],this.matches=i,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(i[0].length),this.matched+=i[0],c=this.performAction.call(this,this.yy,this,n,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),c)return c;if(this._backtrack){for(var t in d)this[t]=d[t];return!1}return!1},"test_match"),next:r.__name(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var i,n,c,s;this._more||(this.yytext="",this.match="");for(var d=this._currentRules(),t=0;t<d.length;t++)if(c=this._input.match(this.rules[d[t]]),c&&(!n||c[0].length>n[0].length)){if(n=c,s=t,this.options.backtrack_lexer){if(i=this.test_match(c,d[t]),i!==!1)return i;if(this._backtrack){n=!1;continue}else return!1}else if(!this.options.flex)break}return n?(i=this.test_match(n,d[s]),i!==!1?i:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
|
6
|
-
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:r.__name(function(){var n=this.next();return n||this.lex()},"lex"),begin:r.__name(function(n){this.conditionStack.push(n)},"begin"),popState:r.__name(function(){var n=this.conditionStack.length-1;return n>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:r.__name(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:r.__name(function(n){return n=this.conditionStack.length-1-Math.abs(n||0),n>=0?this.conditionStack[n]:"INITIAL"},"topState"),pushState:r.__name(function(n){this.begin(n)},"pushState"),stateStackSize:r.__name(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:r.__name(function(n,c,s,d){switch(s){case 0:return"title";case 1:return this.begin("acc_title"),9;case 2:return this.popState(),"acc_title_value";case 3:return this.begin("acc_descr"),11;case 4:return this.popState(),"acc_descr_value";case 5:this.begin("acc_descr_multiline");break;case 6:this.popState();break;case 7:return"acc_descr_multiline_value";case 8:return 21;case 9:return 22;case 10:return 23;case 11:return 24;case 12:return 5;case 13:break;case 14:break;case 15:break;case 16:return 8;case 17:return 6;case 18:return 27;case 19:return 40;case 20:return 29;case 21:return 32;case 22:return 31;case 23:return 34;case 24:return 36;case 25:return 38;case 26:return 41;case 27:return 42;case 28:return 43;case 29:return 44;case 30:return 45;case 31:return 46;case 32:return 47;case 33:return 48;case 34:return 49;case 35:return 50;case 36:return 51;case 37:return 52;case 38:return 53;case 39:return 54;case 40:return 65;case 41:return 66;case 42:return 67;case 43:return 68;case 44:return 69;case 45:return 70;case 46:return 71;case 47:return 57;case 48:return 59;case 49:return this.begin("style"),77;case 50:return 75;case 51:return 81;case 52:return 88;case 53:return"PERCENT";case 54:return 86;case 55:return 84;case 56:break;case 57:this.begin("string");break;case 58:this.popState();break;case 59:return this.begin("style"),72;case 60:return this.begin("style"),74;case 61:return 61;case 62:return 64;case 63:return 63;case 64:this.begin("string");break;case 65:this.popState();break;case 66:return"qString";case 67:return c.yytext=c.yytext.trim(),89;case 68:return 75;case 69:return 80;case 70:return 76}},"anonymous"),rules:[/^(?:title\s[^#\n;]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:(\r?\n)+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:%[^\n]*)/i,/^(?:$)/i,/^(?:requirementDiagram\b)/i,/^(?:\{)/i,/^(?:\})/i,/^(?::{3})/i,/^(?::)/i,/^(?:id\b)/i,/^(?:text\b)/i,/^(?:risk\b)/i,/^(?:verifyMethod\b)/i,/^(?:requirement\b)/i,/^(?:functionalRequirement\b)/i,/^(?:interfaceRequirement\b)/i,/^(?:performanceRequirement\b)/i,/^(?:physicalRequirement\b)/i,/^(?:designConstraint\b)/i,/^(?:low\b)/i,/^(?:medium\b)/i,/^(?:high\b)/i,/^(?:analysis\b)/i,/^(?:demonstration\b)/i,/^(?:inspection\b)/i,/^(?:test\b)/i,/^(?:element\b)/i,/^(?:contains\b)/i,/^(?:copies\b)/i,/^(?:derives\b)/i,/^(?:satisfies\b)/i,/^(?:verifies\b)/i,/^(?:refines\b)/i,/^(?:traces\b)/i,/^(?:type\b)/i,/^(?:docref\b)/i,/^(?:style\b)/i,/^(?:\w+)/i,/^(?::)/i,/^(?:;)/i,/^(?:%)/i,/^(?:-)/i,/^(?:#)/i,/^(?: )/i,/^(?:["])/i,/^(?:\n)/i,/^(?:classDef\b)/i,/^(?:class\b)/i,/^(?:<-)/i,/^(?:->)/i,/^(?:-)/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[\w][^:,\r\n\{\<\>\-\=]*)/i,/^(?:\w+)/i,/^(?:[0-9]+)/i,/^(?:,)/i],conditions:{acc_descr_multiline:{rules:[6,7,68,69,70],inclusive:!1},acc_descr:{rules:[4,68,69,70],inclusive:!1},acc_title:{rules:[2,68,69,70],inclusive:!1},style:{rules:[50,51,52,53,54,55,56,57,58,68,69,70],inclusive:!1},unqString:{rules:[68,69,70],inclusive:!1},token:{rules:[68,69,70],inclusive:!1},string:{rules:[65,66,68,69,70],inclusive:!1},INITIAL:{rules:[0,1,3,5,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,59,60,61,62,63,64,67,68,69,70],inclusive:!0}}};return P}();Se.lexer=Ye;function pe(){this.yy={}}return r.__name(pe,"Parser"),pe.prototype=Se,Se.Parser=pe,new pe}();Ne.parser=Ne;var Ge=Ne,Z,ze=(Z=class{constructor(){this.relations=[],this.latestRequirement=this.getInitialRequirement(),this.requirements=new Map,this.latestElement=this.getInitialElement(),this.elements=new Map,this.classes=new Map,this.direction="TB",this.RequirementType={REQUIREMENT:"Requirement",FUNCTIONAL_REQUIREMENT:"Functional Requirement",INTERFACE_REQUIREMENT:"Interface Requirement",PERFORMANCE_REQUIREMENT:"Performance Requirement",PHYSICAL_REQUIREMENT:"Physical Requirement",DESIGN_CONSTRAINT:"Design Constraint"},this.RiskLevel={LOW_RISK:"Low",MED_RISK:"Medium",HIGH_RISK:"High"},this.VerifyType={VERIFY_ANALYSIS:"Analysis",VERIFY_DEMONSTRATION:"Demonstration",VERIFY_INSPECTION:"Inspection",VERIFY_TEST:"Test"},this.Relationships={CONTAINS:"contains",COPIES:"copies",DERIVES:"derives",SATISFIES:"satisfies",VERIFIES:"verifies",REFINES:"refines",TRACES:"traces"},this.setAccTitle=r.setAccTitle,this.getAccTitle=r.getAccTitle,this.setAccDescription=r.setAccDescription,this.getAccDescription=r.getAccDescription,this.setDiagramTitle=r.setDiagramTitle,this.getDiagramTitle=r.getDiagramTitle,this.getConfig=r.__name(()=>r.getConfig2().requirement,"getConfig"),this.clear(),this.setDirection=this.setDirection.bind(this),this.addRequirement=this.addRequirement.bind(this),this.setNewReqId=this.setNewReqId.bind(this),this.setNewReqRisk=this.setNewReqRisk.bind(this),this.setNewReqText=this.setNewReqText.bind(this),this.setNewReqVerifyMethod=this.setNewReqVerifyMethod.bind(this),this.addElement=this.addElement.bind(this),this.setNewElementType=this.setNewElementType.bind(this),this.setNewElementDocRef=this.setNewElementDocRef.bind(this),this.addRelationship=this.addRelationship.bind(this),this.setCssStyle=this.setCssStyle.bind(this),this.setClass=this.setClass.bind(this),this.defineClass=this.defineClass.bind(this),this.setAccTitle=this.setAccTitle.bind(this),this.setAccDescription=this.setAccDescription.bind(this)}getDirection(){return this.direction}setDirection(l){this.direction=l}resetLatestRequirement(){this.latestRequirement=this.getInitialRequirement()}resetLatestElement(){this.latestElement=this.getInitialElement()}getInitialRequirement(){return{requirementId:"",text:"",risk:"",verifyMethod:"",name:"",type:"",cssStyles:[],classes:["default"]}}getInitialElement(){return{name:"",type:"",docRef:"",cssStyles:[],classes:["default"]}}addRequirement(l,m){return this.requirements.has(l)||this.requirements.set(l,{name:l,type:m,requirementId:this.latestRequirement.requirementId,text:this.latestRequirement.text,risk:this.latestRequirement.risk,verifyMethod:this.latestRequirement.verifyMethod,cssStyles:[],classes:["default"]}),this.resetLatestRequirement(),this.requirements.get(l)}getRequirements(){return this.requirements}setNewReqId(l){this.latestRequirement!==void 0&&(this.latestRequirement.requirementId=l)}setNewReqText(l){this.latestRequirement!==void 0&&(this.latestRequirement.text=l)}setNewReqRisk(l){this.latestRequirement!==void 0&&(this.latestRequirement.risk=l)}setNewReqVerifyMethod(l){this.latestRequirement!==void 0&&(this.latestRequirement.verifyMethod=l)}addElement(l){return this.elements.has(l)||(this.elements.set(l,{name:l,type:this.latestElement.type,docRef:this.latestElement.docRef,cssStyles:[],classes:["default"]}),r.log.info("Added new element: ",l)),this.resetLatestElement(),this.elements.get(l)}getElements(){return this.elements}setNewElementType(l){this.latestElement!==void 0&&(this.latestElement.type=l)}setNewElementDocRef(l){this.latestElement!==void 0&&(this.latestElement.docRef=l)}addRelationship(l,m,h){this.relations.push({type:l,src:m,dst:h})}getRelationships(){return this.relations}clear(){this.relations=[],this.resetLatestRequirement(),this.requirements=new Map,this.resetLatestElement(),this.elements=new Map,this.classes=new Map,r.clear()}setCssStyle(l,m){for(const h of l){const f=this.requirements.get(h)??this.elements.get(h);if(!m||!f)return;for(const o of m)o.includes(",")?f.cssStyles.push(...o.split(",")):f.cssStyles.push(o)}}setClass(l,m){var h;for(const f of l){const o=this.requirements.get(f)??this.elements.get(f);if(o)for(const E of m){o.classes.push(E);const p=(h=this.classes.get(E))==null?void 0:h.styles;p&&o.cssStyles.push(...p)}}}defineClass(l,m){for(const h of l){let f=this.classes.get(h);f===void 0&&(f={id:h,styles:[],textStyles:[]},this.classes.set(h,f)),m&&m.forEach(function(o){if(/color/.exec(o)){const E=o.replace("fill","bgFill");f.textStyles.push(E)}f.styles.push(o)}),this.requirements.forEach(o=>{o.classes.includes(h)&&o.cssStyles.push(...m.flatMap(E=>E.split(",")))}),this.elements.forEach(o=>{o.classes.includes(h)&&o.cssStyles.push(...m.flatMap(E=>E.split(",")))})}}getClasses(){return this.classes}getData(){var f,o,E,p;const l=r.getConfig2(),m=[],h=[];for(const u of this.requirements.values()){const _=u;_.id=u.name,_.cssStyles=u.cssStyles,_.cssClasses=u.classes.join(" "),_.shape="requirementBox",_.look=l.look,m.push(_)}for(const u of this.elements.values()){const _=u;_.shape="requirementBox",_.look=l.look,_.id=u.name,_.cssStyles=u.cssStyles,_.cssClasses=u.classes.join(" "),m.push(_)}for(const u of this.relations){let _=0;const I=u.type===this.Relationships.CONTAINS,k={id:`${u.src}-${u.dst}-${_}`,start:((f=this.requirements.get(u.src))==null?void 0:f.name)??((o=this.elements.get(u.src))==null?void 0:o.name),end:((E=this.requirements.get(u.dst))==null?void 0:E.name)??((p=this.elements.get(u.dst))==null?void 0:p.name),label:`<<${u.type}>>`,classes:"relationshipLine",style:["fill:none",I?"":"stroke-dasharray: 10,7"],labelpos:"c",thickness:"normal",type:"normal",pattern:I?"normal":"dashed",arrowTypeStart:I?"requirement_contains":"",arrowTypeEnd:I?"":"requirement_arrow",look:l.look};h.push(k),_++}return{nodes:m,edges:h,other:{},config:l,direction:this.getDirection()}}},r.__name(Z,"RequirementDB"),Z),Xe=r.__name(e=>`
|
|
7
|
-
|
|
8
|
-
marker {
|
|
9
|
-
fill: ${e.relationColor};
|
|
10
|
-
stroke: ${e.relationColor};
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
marker.cross {
|
|
14
|
-
stroke: ${e.lineColor};
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
svg {
|
|
18
|
-
font-family: ${e.fontFamily};
|
|
19
|
-
font-size: ${e.fontSize};
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
.reqBox {
|
|
23
|
-
fill: ${e.requirementBackground};
|
|
24
|
-
fill-opacity: 1.0;
|
|
25
|
-
stroke: ${e.requirementBorderColor};
|
|
26
|
-
stroke-width: ${e.requirementBorderSize};
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
.reqTitle, .reqLabel{
|
|
30
|
-
fill: ${e.requirementTextColor};
|
|
31
|
-
}
|
|
32
|
-
.reqLabelBox {
|
|
33
|
-
fill: ${e.relationLabelBackground};
|
|
34
|
-
fill-opacity: 1.0;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
.req-title-line {
|
|
38
|
-
stroke: ${e.requirementBorderColor};
|
|
39
|
-
stroke-width: ${e.requirementBorderSize};
|
|
40
|
-
}
|
|
41
|
-
.relationshipLine {
|
|
42
|
-
stroke: ${e.relationColor};
|
|
43
|
-
stroke-width: 1;
|
|
44
|
-
}
|
|
45
|
-
.relationshipLabel {
|
|
46
|
-
fill: ${e.relationLabelColor};
|
|
47
|
-
}
|
|
48
|
-
.divider {
|
|
49
|
-
stroke: ${e.nodeBorder};
|
|
50
|
-
stroke-width: 1;
|
|
51
|
-
}
|
|
52
|
-
.label {
|
|
53
|
-
font-family: ${e.fontFamily};
|
|
54
|
-
color: ${e.nodeTextColor||e.textColor};
|
|
55
|
-
}
|
|
56
|
-
.label text,span {
|
|
57
|
-
fill: ${e.nodeTextColor||e.textColor};
|
|
58
|
-
color: ${e.nodeTextColor||e.textColor};
|
|
59
|
-
}
|
|
60
|
-
.labelBkg {
|
|
61
|
-
background-color: ${e.edgeLabelBackground};
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
`,"getStyles"),Je=Xe,Ue={};r.__export(Ue,{draw:()=>Ze});var Ze=r.__name(async function(e,l,m,h){r.log.info("REF0:"),r.log.info("Drawing requirement diagram (unified)",l);const{securityLevel:f,state:o,layout:E}=r.getConfig2(),p=h.db.getData(),u=je.getDiagramElement(l,f);p.type=h.type,p.layoutAlgorithm=r.getRegisteredLayoutAlgorithm(E),p.nodeSpacing=(o==null?void 0:o.nodeSpacing)??50,p.rankSpacing=(o==null?void 0:o.rankSpacing)??50,p.markers=["requirement_contains","requirement_arrow"],p.diagramId=l,await r.render(p,u);const _=8;r.utils_default.insertTitle(u,"requirementDiagramTitleText",(o==null?void 0:o.titleTopMargin)??25,h.db.getDiagramTitle()),We.setupViewPortForSVG(u,_,"requirementDiagram",(o==null?void 0:o.useMaxWidth)??!0)},"draw"),et={parser:Ge,get db(){return new ze},renderer:Ue,styles:Je};exports.diagram=et;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const f=require("./index-CkYZRBYn.js"),_t=require("./ordinal-CPpcdEvZ.js");function mt(t){for(var e=t.length/6|0,i=new Array(e),a=0;a<e;)i[a]="#"+t.slice(a*6,++a*6);return i}const kt=mt("4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab");function at(t,e){let i;if(e===void 0)for(const a of t)a!=null&&(i<a||i===void 0&&a>=a)&&(i=a);else{let a=-1;for(let h of t)(h=e(h,++a,t))!=null&&(i<h||i===void 0&&h>=h)&&(i=h)}return i}function dt(t,e){let i;if(e===void 0)for(const a of t)a!=null&&(i>a||i===void 0&&a>=a)&&(i=a);else{let a=-1;for(let h of t)(h=e(h,++a,t))!=null&&(i>h||i===void 0&&h>=h)&&(i=h)}return i}function et(t,e){let i=0;if(e===void 0)for(let a of t)(a=+a)&&(i+=a);else{let a=-1;for(let h of t)(h=+e(h,++a,t))&&(i+=h)}return i}function xt(t){return t.target.depth}function vt(t){return t.depth}function bt(t,e){return e-1-t.height}function gt(t,e){return t.sourceLinks.length?t.depth:e-1}function St(t){return t.targetLinks.length?t.depth:t.sourceLinks.length?dt(t.sourceLinks,xt)-1:0}function H(t){return function(){return t}}function lt(t,e){return X(t.source,e.source)||t.index-e.index}function ct(t,e){return X(t.target,e.target)||t.index-e.index}function X(t,e){return t.y0-e.y0}function nt(t){return t.value}function wt(t){return t.index}function Lt(t){return t.nodes}function Et(t){return t.links}function ut(t,e){const i=t.get(e);if(!i)throw new Error("missing: "+e);return i}function ht({nodes:t}){for(const e of t){let i=e.y0,a=i;for(const h of e.sourceLinks)h.y0=i+h.width/2,i+=h.width;for(const h of e.targetLinks)h.y1=a+h.width/2,a+=h.width}}function At(){let t=0,e=0,i=1,a=1,h=24,g=8,_,k=wt,r=gt,o,l,x=Lt,v=Et,d=6;function b(){const n={nodes:x.apply(null,arguments),links:v.apply(null,arguments)};return M(n),T(n),N(n),I(n),w(n),ht(n),n}b.update=function(n){return ht(n),n},b.nodeId=function(n){return arguments.length?(k=typeof n=="function"?n:H(n),b):k},b.nodeAlign=function(n){return arguments.length?(r=typeof n=="function"?n:H(n),b):r},b.nodeSort=function(n){return arguments.length?(o=n,b):o},b.nodeWidth=function(n){return arguments.length?(h=+n,b):h},b.nodePadding=function(n){return arguments.length?(g=_=+n,b):g},b.nodes=function(n){return arguments.length?(x=typeof n=="function"?n:H(n),b):x},b.links=function(n){return arguments.length?(v=typeof n=="function"?n:H(n),b):v},b.linkSort=function(n){return arguments.length?(l=n,b):l},b.size=function(n){return arguments.length?(t=e=0,i=+n[0],a=+n[1],b):[i-t,a-e]},b.extent=function(n){return arguments.length?(t=+n[0][0],i=+n[1][0],e=+n[0][1],a=+n[1][1],b):[[t,e],[i,a]]},b.iterations=function(n){return arguments.length?(d=+n,b):d};function M({nodes:n,links:y}){for(const[c,s]of n.entries())s.index=c,s.sourceLinks=[],s.targetLinks=[];const u=new Map(n.map((c,s)=>[k(c,s,n),c]));for(const[c,s]of y.entries()){s.index=c;let{source:m,target:S}=s;typeof m!="object"&&(m=s.source=ut(u,m)),typeof S!="object"&&(S=s.target=ut(u,S)),m.sourceLinks.push(s),S.targetLinks.push(s)}if(l!=null)for(const{sourceLinks:c,targetLinks:s}of n)c.sort(l),s.sort(l)}function T({nodes:n}){for(const y of n)y.value=y.fixedValue===void 0?Math.max(et(y.sourceLinks,nt),et(y.targetLinks,nt)):y.fixedValue}function N({nodes:n}){const y=n.length;let u=new Set(n),c=new Set,s=0;for(;u.size;){for(const m of u){m.depth=s;for(const{target:S}of m.sourceLinks)c.add(S)}if(++s>y)throw new Error("circular link");u=c,c=new Set}}function I({nodes:n}){const y=n.length;let u=new Set(n),c=new Set,s=0;for(;u.size;){for(const m of u){m.height=s;for(const{source:S}of m.targetLinks)c.add(S)}if(++s>y)throw new Error("circular link");u=c,c=new Set}}function $({nodes:n}){const y=at(n,s=>s.depth)+1,u=(i-t-h)/(y-1),c=new Array(y);for(const s of n){const m=Math.max(0,Math.min(y-1,Math.floor(r.call(null,s,y))));s.layer=m,s.x0=t+m*u,s.x1=s.x0+h,c[m]?c[m].push(s):c[m]=[s]}if(o)for(const s of c)s.sort(o);return c}function R(n){const y=dt(n,u=>(a-e-(u.length-1)*_)/et(u,nt));for(const u of n){let c=e;for(const s of u){s.y0=c,s.y1=c+s.value*y,c=s.y1+_;for(const m of s.sourceLinks)m.width=m.value*y}c=(a-c+_)/(u.length+1);for(let s=0;s<u.length;++s){const m=u[s];m.y0+=c*(s+1),m.y1+=c*(s+1)}A(u)}}function w(n){const y=$(n);_=Math.min(g,(a-e)/(at(y,u=>u.length)-1)),R(y);for(let u=0;u<d;++u){const c=Math.pow(.99,u),s=Math.max(1-c,(u+1)/d);B(y,c,s),C(y,c,s)}}function C(n,y,u){for(let c=1,s=n.length;c<s;++c){const m=n[c];for(const S of m){let L=0,F=0;for(const{source:q,value:tt}of S.targetLinks){let Y=tt*(S.layer-q.layer);L+=j(q,S)*Y,F+=Y}if(!(F>0))continue;let G=(L/F-S.y0)*y;S.y0+=G,S.y1+=G,E(S)}o===void 0&&m.sort(X),O(m,u)}}function B(n,y,u){for(let c=n.length,s=c-2;s>=0;--s){const m=n[s];for(const S of m){let L=0,F=0;for(const{target:q,value:tt}of S.sourceLinks){let Y=tt*(q.layer-S.layer);L+=P(S,q)*Y,F+=Y}if(!(F>0))continue;let G=(L/F-S.y0)*y;S.y0+=G,S.y1+=G,E(S)}o===void 0&&m.sort(X),O(m,u)}}function O(n,y){const u=n.length>>1,c=n[u];p(n,c.y0-_,u-1,y),D(n,c.y1+_,u+1,y),p(n,a,n.length-1,y),D(n,e,0,y)}function D(n,y,u,c){for(;u<n.length;++u){const s=n[u],m=(y-s.y0)*c;m>1e-6&&(s.y0+=m,s.y1+=m),y=s.y1+_}}function p(n,y,u,c){for(;u>=0;--u){const s=n[u],m=(s.y1-y)*c;m>1e-6&&(s.y0-=m,s.y1-=m),y=s.y0-_}}function E({sourceLinks:n,targetLinks:y}){if(l===void 0){for(const{source:{sourceLinks:u}}of y)u.sort(ct);for(const{target:{targetLinks:u}}of n)u.sort(lt)}}function A(n){if(l===void 0)for(const{sourceLinks:y,targetLinks:u}of n)y.sort(ct),u.sort(lt)}function j(n,y){let u=n.y0-(n.sourceLinks.length-1)*_/2;for(const{target:c,width:s}of n.sourceLinks){if(c===y)break;u+=s+_}for(const{source:c,width:s}of y.targetLinks){if(c===n)break;u-=s}return u}function P(n,y){let u=y.y0-(y.targetLinks.length-1)*_/2;for(const{source:c,width:s}of y.targetLinks){if(c===n)break;u+=s+_}for(const{target:c,width:s}of n.sourceLinks){if(c===y)break;u-=s}return u}return b}var it=Math.PI,rt=2*it,V=1e-6,Tt=rt-V;function st(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function pt(){return new st}st.prototype=pt.prototype={constructor:st,moveTo:function(t,e){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)},closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(t,e){this._+="L"+(this._x1=+t)+","+(this._y1=+e)},quadraticCurveTo:function(t,e,i,a){this._+="Q"+ +t+","+ +e+","+(this._x1=+i)+","+(this._y1=+a)},bezierCurveTo:function(t,e,i,a,h,g){this._+="C"+ +t+","+ +e+","+ +i+","+ +a+","+(this._x1=+h)+","+(this._y1=+g)},arcTo:function(t,e,i,a,h){t=+t,e=+e,i=+i,a=+a,h=+h;var g=this._x1,_=this._y1,k=i-t,r=a-e,o=g-t,l=_-e,x=o*o+l*l;if(h<0)throw new Error("negative radius: "+h);if(this._x1===null)this._+="M"+(this._x1=t)+","+(this._y1=e);else if(x>V)if(!(Math.abs(l*k-r*o)>V)||!h)this._+="L"+(this._x1=t)+","+(this._y1=e);else{var v=i-g,d=a-_,b=k*k+r*r,M=v*v+d*d,T=Math.sqrt(b),N=Math.sqrt(x),I=h*Math.tan((it-Math.acos((b+x-M)/(2*T*N)))/2),$=I/N,R=I/T;Math.abs($-1)>V&&(this._+="L"+(t+$*o)+","+(e+$*l)),this._+="A"+h+","+h+",0,0,"+ +(l*v>o*d)+","+(this._x1=t+R*k)+","+(this._y1=e+R*r)}},arc:function(t,e,i,a,h,g){t=+t,e=+e,i=+i,g=!!g;var _=i*Math.cos(a),k=i*Math.sin(a),r=t+_,o=e+k,l=1^g,x=g?a-h:h-a;if(i<0)throw new Error("negative radius: "+i);this._x1===null?this._+="M"+r+","+o:(Math.abs(this._x1-r)>V||Math.abs(this._y1-o)>V)&&(this._+="L"+r+","+o),i&&(x<0&&(x=x%rt+rt),x>Tt?this._+="A"+i+","+i+",0,1,"+l+","+(t-_)+","+(e-k)+"A"+i+","+i+",0,1,"+l+","+(this._x1=r)+","+(this._y1=o):x>V&&(this._+="A"+i+","+i+",0,"+ +(x>=it)+","+l+","+(this._x1=t+i*Math.cos(h))+","+(this._y1=e+i*Math.sin(h))))},rect:function(t,e,i,a){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)+"h"+ +i+"v"+ +a+"h"+-i+"Z"},toString:function(){return this._}};function ft(t){return function(){return t}}function Mt(t){return t[0]}function Nt(t){return t[1]}var Pt=Array.prototype.slice;function Ct(t){return t.source}function It(t){return t.target}function Ot(t){var e=Ct,i=It,a=Mt,h=Nt,g=null;function _(){var k,r=Pt.call(arguments),o=e.apply(this,r),l=i.apply(this,r);if(g||(g=k=pt()),t(g,+a.apply(this,(r[0]=o,r)),+h.apply(this,r),+a.apply(this,(r[0]=l,r)),+h.apply(this,r)),k)return g=null,k+""||null}return _.source=function(k){return arguments.length?(e=k,_):e},_.target=function(k){return arguments.length?(i=k,_):i},_.x=function(k){return arguments.length?(a=typeof k=="function"?k:ft(+k),_):a},_.y=function(k){return arguments.length?(h=typeof k=="function"?k:ft(+k),_):h},_.context=function(k){return arguments.length?(g=k??null,_):g},_}function Dt(t,e,i,a,h){t.moveTo(e,i),t.bezierCurveTo(e=(e+a)/2,i,e,h,a,h)}function $t(){return Ot(Dt)}function jt(t){return[t.source.x1,t.y0]}function zt(t){return[t.target.x0,t.y1]}function Bt(){return $t().source(jt).target(zt)}var ot=function(){var t=f.__name(function(k,r,o,l){for(o=o||{},l=k.length;l--;o[k[l]]=r);return o},"o"),e=[1,9],i=[1,10],a=[1,5,10,12],h={trace:f.__name(function(){},"trace"),yy:{},symbols_:{error:2,start:3,SANKEY:4,NEWLINE:5,csv:6,opt_eof:7,record:8,csv_tail:9,EOF:10,"field[source]":11,COMMA:12,"field[target]":13,"field[value]":14,field:15,escaped:16,non_escaped:17,DQUOTE:18,ESCAPED_TEXT:19,NON_ESCAPED_TEXT:20,$accept:0,$end:1},terminals_:{2:"error",4:"SANKEY",5:"NEWLINE",10:"EOF",11:"field[source]",12:"COMMA",13:"field[target]",14:"field[value]",18:"DQUOTE",19:"ESCAPED_TEXT",20:"NON_ESCAPED_TEXT"},productions_:[0,[3,4],[6,2],[9,2],[9,0],[7,1],[7,0],[8,5],[15,1],[15,1],[16,3],[17,1]],performAction:f.__name(function(r,o,l,x,v,d,b){var M=d.length-1;switch(v){case 7:const T=x.findOrCreateNode(d[M-4].trim().replaceAll('""','"')),N=x.findOrCreateNode(d[M-2].trim().replaceAll('""','"')),I=parseFloat(d[M].trim());x.addLink(T,N,I);break;case 8:case 9:case 11:this.$=d[M];break;case 10:this.$=d[M-1];break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},{5:[1,3]},{6:4,8:5,15:6,16:7,17:8,18:e,20:i},{1:[2,6],7:11,10:[1,12]},t(i,[2,4],{9:13,5:[1,14]}),{12:[1,15]},t(a,[2,8]),t(a,[2,9]),{19:[1,16]},t(a,[2,11]),{1:[2,1]},{1:[2,5]},t(i,[2,2]),{6:17,8:5,15:6,16:7,17:8,18:e,20:i},{15:18,16:7,17:8,18:e,20:i},{18:[1,19]},t(i,[2,3]),{12:[1,20]},t(a,[2,10]),{15:21,16:7,17:8,18:e,20:i},t([1,5,10],[2,7])],defaultActions:{11:[2,1],12:[2,5]},parseError:f.__name(function(r,o){if(o.recoverable)this.trace(r);else{var l=new Error(r);throw l.hash=o,l}},"parseError"),parse:f.__name(function(r){var o=this,l=[0],x=[],v=[null],d=[],b=this.table,M="",T=0,N=0,I=2,$=1,R=d.slice.call(arguments,1),w=Object.create(this.lexer),C={yy:{}};for(var B in this.yy)Object.prototype.hasOwnProperty.call(this.yy,B)&&(C.yy[B]=this.yy[B]);w.setInput(r,C.yy),C.yy.lexer=w,C.yy.parser=this,typeof w.yylloc>"u"&&(w.yylloc={});var O=w.yylloc;d.push(O);var D=w.options&&w.options.ranges;typeof C.yy.parseError=="function"?this.parseError=C.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function p(L){l.length=l.length-2*L,v.length=v.length-L,d.length=d.length-L}f.__name(p,"popStack");function E(){var L;return L=x.pop()||w.lex()||$,typeof L!="number"&&(L instanceof Array&&(x=L,L=x.pop()),L=o.symbols_[L]||L),L}f.__name(E,"lex");for(var A,j,P,n,y={},u,c,s,m;;){if(j=l[l.length-1],this.defaultActions[j]?P=this.defaultActions[j]:((A===null||typeof A>"u")&&(A=E()),P=b[j]&&b[j][A]),typeof P>"u"||!P.length||!P[0]){var S="";m=[];for(u in b[j])this.terminals_[u]&&u>I&&m.push("'"+this.terminals_[u]+"'");w.showPosition?S="Parse error on line "+(T+1)+`:
|
|
2
|
-
`+w.showPosition()+`
|
|
3
|
-
Expecting `+m.join(", ")+", got '"+(this.terminals_[A]||A)+"'":S="Parse error on line "+(T+1)+": Unexpected "+(A==$?"end of input":"'"+(this.terminals_[A]||A)+"'"),this.parseError(S,{text:w.match,token:this.terminals_[A]||A,line:w.yylineno,loc:O,expected:m})}if(P[0]instanceof Array&&P.length>1)throw new Error("Parse Error: multiple actions possible at state: "+j+", token: "+A);switch(P[0]){case 1:l.push(A),v.push(w.yytext),d.push(w.yylloc),l.push(P[1]),A=null,N=w.yyleng,M=w.yytext,T=w.yylineno,O=w.yylloc;break;case 2:if(c=this.productions_[P[1]][1],y.$=v[v.length-c],y._$={first_line:d[d.length-(c||1)].first_line,last_line:d[d.length-1].last_line,first_column:d[d.length-(c||1)].first_column,last_column:d[d.length-1].last_column},D&&(y._$.range=[d[d.length-(c||1)].range[0],d[d.length-1].range[1]]),n=this.performAction.apply(y,[M,N,T,C.yy,P[1],v,d].concat(R)),typeof n<"u")return n;c&&(l=l.slice(0,-1*c*2),v=v.slice(0,-1*c),d=d.slice(0,-1*c)),l.push(this.productions_[P[1]][0]),v.push(y.$),d.push(y._$),s=b[l[l.length-2]][l[l.length-1]],l.push(s);break;case 3:return!0}}return!0},"parse")},g=function(){var k={EOF:1,parseError:f.__name(function(o,l){if(this.yy.parser)this.yy.parser.parseError(o,l);else throw new Error(o)},"parseError"),setInput:f.__name(function(r,o){return this.yy=o||this.yy||{},this._input=r,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:f.__name(function(){var r=this._input[0];this.yytext+=r,this.yyleng++,this.offset++,this.match+=r,this.matched+=r;var o=r.match(/(?:\r\n?|\n).*/g);return o?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),r},"input"),unput:f.__name(function(r){var o=r.length,l=r.split(/(?:\r\n?|\n)/g);this._input=r+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-o),this.offset-=o;var x=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),l.length-1&&(this.yylineno-=l.length-1);var v=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:l?(l.length===x.length?this.yylloc.first_column:0)+x[x.length-l.length].length-l[0].length:this.yylloc.first_column-o},this.options.ranges&&(this.yylloc.range=[v[0],v[0]+this.yyleng-o]),this.yyleng=this.yytext.length,this},"unput"),more:f.__name(function(){return this._more=!0,this},"more"),reject:f.__name(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
4
|
-
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:f.__name(function(r){this.unput(this.match.slice(r))},"less"),pastInput:f.__name(function(){var r=this.matched.substr(0,this.matched.length-this.match.length);return(r.length>20?"...":"")+r.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:f.__name(function(){var r=this.match;return r.length<20&&(r+=this._input.substr(0,20-r.length)),(r.substr(0,20)+(r.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:f.__name(function(){var r=this.pastInput(),o=new Array(r.length+1).join("-");return r+this.upcomingInput()+`
|
|
5
|
-
`+o+"^"},"showPosition"),test_match:f.__name(function(r,o){var l,x,v;if(this.options.backtrack_lexer&&(v={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&&(v.yylloc.range=this.yylloc.range.slice(0))),x=r[0].match(/(?:\r\n?|\n).*/g),x&&(this.yylineno+=x.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:x?x[x.length-1].length-x[x.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+r[0].length},this.yytext+=r[0],this.match+=r[0],this.matches=r,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(r[0].length),this.matched+=r[0],l=this.performAction.call(this,this.yy,this,o,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),l)return l;if(this._backtrack){for(var d in v)this[d]=v[d];return!1}return!1},"test_match"),next:f.__name(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var r,o,l,x;this._more||(this.yytext="",this.match="");for(var v=this._currentRules(),d=0;d<v.length;d++)if(l=this._input.match(this.rules[v[d]]),l&&(!o||l[0].length>o[0].length)){if(o=l,x=d,this.options.backtrack_lexer){if(r=this.test_match(l,v[d]),r!==!1)return r;if(this._backtrack){o=!1;continue}else return!1}else if(!this.options.flex)break}return o?(r=this.test_match(o,v[x]),r!==!1?r:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
|
6
|
-
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:f.__name(function(){var o=this.next();return o||this.lex()},"lex"),begin:f.__name(function(o){this.conditionStack.push(o)},"begin"),popState:f.__name(function(){var o=this.conditionStack.length-1;return o>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:f.__name(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:f.__name(function(o){return o=this.conditionStack.length-1-Math.abs(o||0),o>=0?this.conditionStack[o]:"INITIAL"},"topState"),pushState:f.__name(function(o){this.begin(o)},"pushState"),stateStackSize:f.__name(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:f.__name(function(o,l,x,v){switch(x){case 0:return this.pushState("csv"),4;case 1:return this.pushState("csv"),4;case 2:return 10;case 3:return 5;case 4:return 12;case 5:return this.pushState("escaped_text"),18;case 6:return 20;case 7:return this.popState("escaped_text"),18;case 8:return 19}},"anonymous"),rules:[/^(?:sankey-beta\b)/i,/^(?:sankey\b)/i,/^(?:$)/i,/^(?:((\u000D\u000A)|(\u000A)))/i,/^(?:(\u002C))/i,/^(?:(\u0022))/i,/^(?:([\u0020-\u0021\u0023-\u002B\u002D-\u007E])*)/i,/^(?:(\u0022)(?!(\u0022)))/i,/^(?:(([\u0020-\u0021\u0023-\u002B\u002D-\u007E])|(\u002C)|(\u000D)|(\u000A)|(\u0022)(\u0022))*)/i],conditions:{csv:{rules:[2,3,4,5,6,7,8],inclusive:!1},escaped_text:{rules:[7,8],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,8],inclusive:!0}}};return k}();h.lexer=g;function _(){this.yy={}}return f.__name(_,"Parser"),_.prototype=h,h.Parser=_,new _}();ot.parser=ot;var Q=ot,Z=[],J=[],K=new Map,Rt=f.__name(()=>{Z=[],J=[],K=new Map,f.clear()},"clear"),W,Ft=(W=class{constructor(e,i,a=0){this.source=e,this.target=i,this.value=a}},f.__name(W,"SankeyLink"),W),Vt=f.__name((t,e,i)=>{Z.push(new Ft(t,e,i))},"addLink"),U,Wt=(U=class{constructor(e){this.ID=e}},f.__name(U,"SankeyNode"),U),Ut=f.__name(t=>{t=f.common_default.sanitizeText(t,f.getConfig2());let e=K.get(t);return e===void 0&&(e=new Wt(t),K.set(t,e),J.push(e)),e},"findOrCreateNode"),Gt=f.__name(()=>J,"getNodes"),qt=f.__name(()=>Z,"getLinks"),Yt=f.__name(()=>({nodes:J.map(t=>({id:t.ID})),links:Z.map(t=>({source:t.source.ID,target:t.target.ID,value:t.value}))}),"getGraph"),Ht={nodesMap:K,getConfig:f.__name(()=>f.getConfig2().sankey,"getConfig"),getNodes:Gt,getLinks:qt,getGraph:Yt,addLink:Vt,findOrCreateNode:Ut,getAccTitle:f.getAccTitle,setAccTitle:f.setAccTitle,getAccDescription:f.getAccDescription,setAccDescription:f.setAccDescription,getDiagramTitle:f.getDiagramTitle,setDiagramTitle:f.setDiagramTitle,clear:Rt},z,yt=(z=class{static next(e){return new z(e+ ++z.count)}constructor(e){this.id=e,this.href=`#${e}`}toString(){return"url("+this.href+")"}},f.__name(z,"Uid"),z.count=0,z),Xt={left:vt,right:bt,center:St,justify:gt},Qt=f.__name(function(t,e,i,a){const{securityLevel:h,sankey:g}=f.getConfig2(),_=f.defaultConfig2.sankey;let k;h==="sandbox"&&(k=f.select("#i"+e));const r=h==="sandbox"?f.select(k.nodes()[0].contentDocument.body):f.select("body"),o=h==="sandbox"?r.select(`[id="${e}"]`):f.select(`[id="${e}"]`),l=(g==null?void 0:g.width)??_.width,x=(g==null?void 0:g.height)??_.width,v=(g==null?void 0:g.useMaxWidth)??_.useMaxWidth,d=(g==null?void 0:g.nodeAlignment)??_.nodeAlignment,b=(g==null?void 0:g.prefix)??_.prefix,M=(g==null?void 0:g.suffix)??_.suffix,T=(g==null?void 0:g.showValues)??_.showValues,N=a.db.getGraph(),I=Xt[d];At().nodeId(p=>p.id).nodeWidth(10).nodePadding(10+(T?15:0)).nodeAlign(I).extent([[0,0],[l,x]])(N);const w=_t.ordinal(kt);o.append("g").attr("class","nodes").selectAll(".node").data(N.nodes).join("g").attr("class","node").attr("id",p=>(p.uid=yt.next("node-")).id).attr("transform",function(p){return"translate("+p.x0+","+p.y0+")"}).attr("x",p=>p.x0).attr("y",p=>p.y0).append("rect").attr("height",p=>p.y1-p.y0).attr("width",p=>p.x1-p.x0).attr("fill",p=>w(p.id));const C=f.__name(({id:p,value:E})=>T?`${p}
|
|
7
|
-
${b}${Math.round(E*100)/100}${M}`:p,"getText");o.append("g").attr("class","node-labels").attr("font-size",14).selectAll("text").data(N.nodes).join("text").attr("x",p=>p.x0<l/2?p.x1+6:p.x0-6).attr("y",p=>(p.y1+p.y0)/2).attr("dy",`${T?"0":"0.35"}em`).attr("text-anchor",p=>p.x0<l/2?"start":"end").text(C);const B=o.append("g").attr("class","links").attr("fill","none").attr("stroke-opacity",.5).selectAll(".link").data(N.links).join("g").attr("class","link").style("mix-blend-mode","multiply"),O=(g==null?void 0:g.linkColor)??"gradient";if(O==="gradient"){const p=B.append("linearGradient").attr("id",E=>(E.uid=yt.next("linearGradient-")).id).attr("gradientUnits","userSpaceOnUse").attr("x1",E=>E.source.x1).attr("x2",E=>E.target.x0);p.append("stop").attr("offset","0%").attr("stop-color",E=>w(E.source.id)),p.append("stop").attr("offset","100%").attr("stop-color",E=>w(E.target.id))}let D;switch(O){case"gradient":D=f.__name(p=>p.uid,"coloring");break;case"source":D=f.__name(p=>w(p.source.id),"coloring");break;case"target":D=f.__name(p=>w(p.target.id),"coloring");break;default:D=O}B.append("path").attr("d",Bt()).attr("stroke",D).attr("stroke-width",p=>Math.max(1,p.width)),f.setupGraphViewbox(void 0,o,0,v)},"draw"),Kt={draw:Qt},Zt=f.__name(t=>t.replaceAll(/^[^\S\n\r]+|[^\S\n\r]+$/g,"").replaceAll(/([\n\r])+/g,`
|
|
8
|
-
`).trim(),"prepareTextForParsing"),Jt=f.__name(t=>`.label {
|
|
9
|
-
font-family: ${t.fontFamily};
|
|
10
|
-
}`,"getStyles"),te=Jt,ee=Q.parse.bind(Q);Q.parse=t=>ee(Zt(t));var ne={styles:te,parser:Q,db:Ht,renderer:Kt};exports.diagram=ne;
|