@scalar/agent-chat 0.2.3 → 0.2.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (262) hide show
  1. package/LICENSE +21 -0
  2. package/dist/App.vue.d.ts +3 -2
  3. package/dist/App.vue.d.ts.map +1 -1
  4. package/dist/App.vue.js +32 -0
  5. package/dist/App.vue2.js +4 -0
  6. package/dist/Chat.vue.d.ts.map +1 -1
  7. package/dist/Chat.vue.js +23 -0
  8. package/dist/Chat.vue2.js +4 -0
  9. package/dist/_virtual/_plugin-vue_export-helper.js +9 -0
  10. package/dist/api.d.ts +50 -0
  11. package/dist/api.d.ts.map +1 -0
  12. package/dist/api.js +68 -0
  13. package/dist/components/ApprovalSection.vue.d.ts.map +1 -1
  14. package/dist/components/ApprovalSection.vue.js +7 -0
  15. package/dist/components/ApprovalSection.vue2.js +42 -0
  16. package/dist/components/AuthenticationProvided.vue.d.ts +3 -0
  17. package/dist/components/AuthenticationProvided.vue.d.ts.map +1 -0
  18. package/dist/components/AuthenticationProvided.vue.js +13 -0
  19. package/dist/components/AuthenticationRequired.vue.d.ts +3 -0
  20. package/dist/components/AuthenticationRequired.vue.d.ts.map +1 -0
  21. package/dist/components/AuthenticationRequired.vue.js +13 -0
  22. package/dist/components/AutosendPaused.vue.d.ts.map +1 -1
  23. package/dist/components/AutosendPaused.vue.js +13 -0
  24. package/dist/components/ContextItem.vue.d.ts.map +1 -1
  25. package/dist/components/ContextItem.vue.js +7 -0
  26. package/dist/components/ContextItem.vue2.js +19 -0
  27. package/dist/components/ErrorMessage.vue.d.ts +2 -1
  28. package/dist/components/ErrorMessage.vue.d.ts.map +1 -1
  29. package/dist/components/ErrorMessage.vue.js +7 -0
  30. package/dist/components/ErrorMessage.vue2.js +22 -0
  31. package/dist/components/LoadingMiniOpenAPIDoc.vue.d.ts.map +1 -1
  32. package/dist/components/LoadingMiniOpenAPIDoc.vue.js +14 -0
  33. package/dist/components/LoadingOpenAPISpecsSummary.vue.d.ts.map +1 -1
  34. package/dist/components/LoadingOpenAPISpecsSummary.vue.js +14 -0
  35. package/dist/components/Logo.vue.d.ts.map +1 -1
  36. package/dist/components/Logo.vue.js +23 -0
  37. package/dist/components/PaymentSection.vue.d.ts.map +1 -1
  38. package/dist/components/PaymentSection.vue.js +7 -0
  39. package/dist/components/PaymentSection.vue2.js +34 -0
  40. package/dist/components/RequestApproved.vue.d.ts.map +1 -1
  41. package/dist/components/RequestApproved.vue.js +13 -0
  42. package/dist/components/RequestFailed.vue.d.ts.map +1 -1
  43. package/dist/components/RequestFailed.vue.js +24 -0
  44. package/dist/components/RequestPreview.vue.d.ts +1 -1
  45. package/dist/components/RequestPreview.vue.d.ts.map +1 -1
  46. package/dist/components/RequestPreview.vue.js +7 -0
  47. package/dist/components/RequestPreview.vue2.js +123 -0
  48. package/dist/components/RequestRejected.vue.d.ts.map +1 -1
  49. package/dist/components/RequestRejected.vue.js +22 -0
  50. package/dist/components/RequestSuccess.vue.d.ts.map +1 -1
  51. package/dist/components/RequestSuccess.vue.js +13 -0
  52. package/dist/components/ResponseBody/ResponseBody.vue.d.ts +1 -1
  53. package/dist/components/ResponseBody/ResponseBody.vue.d.ts.map +1 -1
  54. package/dist/components/ResponseBody/ResponseBody.vue.js +41 -0
  55. package/dist/components/ResponseBody/ResponseBody.vue2.js +4 -0
  56. package/dist/components/ResponseBody/ResponseBodyInfo.vue.d.ts.map +1 -1
  57. package/dist/components/ResponseBody/ResponseBodyInfo.vue.js +14 -0
  58. package/dist/components/ResponseBody/ResponseBodyPreview.vue.d.ts +1 -1
  59. package/dist/components/ResponseBody/ResponseBodyPreview.vue.d.ts.map +1 -1
  60. package/dist/components/ResponseBody/ResponseBodyPreview.vue.js +7 -0
  61. package/dist/components/ResponseBody/ResponseBodyPreview.vue2.js +65 -0
  62. package/dist/components/ResponseBody/ResponseBodyRaw.vue.d.ts.map +1 -1
  63. package/dist/components/ResponseBody/ResponseBodyRaw.vue.js +20 -0
  64. package/dist/components/ResponseBody/ResponseBodyRaw.vue2.js +4 -0
  65. package/dist/components/ResponseBody/ResponseBodyToggle.vue.d.ts +2 -2
  66. package/dist/components/ResponseBody/ResponseBodyToggle.vue.d.ts.map +1 -1
  67. package/dist/components/ResponseBody/ResponseBodyToggle.vue.js +26 -0
  68. package/dist/components/ResponseBody/ResponseBodyToggle.vue2.js +4 -0
  69. package/dist/components/ResponseBody/helpers/media-types.js +130 -0
  70. package/dist/components/ResponseBody/helpers/process-response-body.d.ts +1 -1
  71. package/dist/components/ResponseBody/helpers/process-response-body.d.ts.map +1 -1
  72. package/dist/components/ResponseBody/helpers/process-response-body.js +33 -0
  73. package/dist/components/SearchPopover.vue.d.ts +2 -2
  74. package/dist/components/SearchPopover.vue.d.ts.map +1 -1
  75. package/dist/components/SearchPopover.vue.js +7 -0
  76. package/dist/components/SearchPopover.vue2.js +67 -0
  77. package/dist/components/SendingRequest.vue.d.ts.map +1 -1
  78. package/dist/components/SendingRequest.vue.js +24 -0
  79. package/dist/components/Suggestion.vue.d.ts.map +1 -1
  80. package/dist/components/TestRequestButton.vue.d.ts.map +1 -1
  81. package/dist/components/{Endpoint.vue.d.ts → UploadSection.vue.d.ts} +3 -5
  82. package/dist/components/UploadSection.vue.d.ts.map +1 -0
  83. package/dist/components/UploadSection.vue.js +7 -0
  84. package/dist/components/UploadSection.vue2.js +62 -0
  85. package/dist/entities/prompt/constants.d.ts +2 -0
  86. package/dist/entities/prompt/constants.d.ts.map +1 -0
  87. package/dist/entities/prompt/constants.js +4 -0
  88. package/dist/entities/registry/document.d.ts +21 -0
  89. package/dist/entities/registry/document.d.ts.map +1 -0
  90. package/dist/entities/registry/document.js +12 -0
  91. package/dist/entities/tools/ask-for-authentication.d.ts +7 -0
  92. package/dist/entities/tools/ask-for-authentication.d.ts.map +1 -0
  93. package/dist/entities/tools/ask-for-authentication.js +8 -0
  94. package/dist/entities/tools/constants.d.ts +2 -0
  95. package/dist/entities/tools/constants.d.ts.map +1 -0
  96. package/dist/entities/tools/constants.js +4 -0
  97. package/dist/entities/tools/execute-request.d.ts +42 -0
  98. package/dist/entities/tools/execute-request.d.ts.map +1 -0
  99. package/dist/entities/tools/execute-request.js +11 -0
  100. package/dist/entities/tools/get-mini-openapi-spec.d.ts +12 -0
  101. package/dist/entities/tools/get-mini-openapi-spec.d.ts.map +1 -0
  102. package/dist/entities/tools/get-mini-openapi-spec.js +8 -0
  103. package/dist/entities/tools/get-openapi-spec-summary.d.ts +10 -0
  104. package/dist/entities/tools/get-openapi-spec-summary.d.ts.map +1 -0
  105. package/dist/entities/tools/get-openapi-spec-summary.js +4 -0
  106. package/dist/helpers.d.ts +20 -12
  107. package/dist/helpers.d.ts.map +1 -1
  108. package/dist/helpers.js +115 -0
  109. package/dist/hooks/{useChatApprovals.d.ts → use-chat-approvals.d.ts} +1 -1
  110. package/dist/hooks/use-chat-approvals.d.ts.map +1 -0
  111. package/dist/hooks/use-chat-approvals.js +21 -0
  112. package/dist/hooks/use-chat-error.d.ts +14 -0
  113. package/dist/hooks/use-chat-error.d.ts.map +1 -0
  114. package/dist/hooks/use-chat-error.js +23 -0
  115. package/dist/hooks/use-chat-pending-client-tool-parts.d.ts +19 -0
  116. package/dist/hooks/use-chat-pending-client-tool-parts.d.ts.map +1 -0
  117. package/dist/hooks/use-chat-pending-client-tool-parts.js +12 -0
  118. package/dist/hooks/{useChatScroll.d.ts → use-chat-scroll.d.ts} +1 -1
  119. package/dist/hooks/use-chat-scroll.d.ts.map +1 -0
  120. package/dist/hooks/use-chat-scroll.js +16 -0
  121. package/dist/hooks/{useSearch.d.ts → use-search.d.ts} +11 -11
  122. package/dist/hooks/use-search.d.ts.map +1 -0
  123. package/dist/hooks/use-search.js +25 -0
  124. package/dist/hooks/use-term-and-conditions.d.ts +6 -0
  125. package/dist/hooks/use-term-and-conditions.d.ts.map +1 -0
  126. package/dist/hooks/use-term-and-conditions.js +16 -0
  127. package/dist/hooks/use-upload-tmp-document.d.ts +19 -0
  128. package/dist/hooks/use-upload-tmp-document.d.ts.map +1 -0
  129. package/dist/hooks/use-upload-tmp-document.js +64 -0
  130. package/dist/index.d.ts +2 -1
  131. package/dist/index.d.ts.map +1 -1
  132. package/dist/index.js +2 -1
  133. package/dist/package.json +35 -23
  134. package/dist/registry/add-documents-to-store.d.ts +6 -6
  135. package/dist/registry/add-documents-to-store.d.ts.map +1 -1
  136. package/dist/registry/add-documents-to-store.js +39 -0
  137. package/dist/registry/create-document-name.d.ts +2 -0
  138. package/dist/registry/create-document-name.d.ts.map +1 -0
  139. package/dist/registry/create-document-name.js +6 -0
  140. package/dist/state/state.d.ts +20 -8
  141. package/dist/state/state.d.ts.map +1 -1
  142. package/dist/state/state.js +110 -0
  143. package/dist/style.css +1 -1
  144. package/dist/types.d.ts +2 -0
  145. package/dist/types.d.ts.map +1 -0
  146. package/dist/views/Chat/Chat.vue.d.ts.map +1 -1
  147. package/dist/views/Chat/Chat.vue.js +7 -0
  148. package/dist/views/Chat/Chat.vue2.js +77 -0
  149. package/dist/views/Chat/Messages/AskForAuthentication.vue.d.ts +10 -0
  150. package/dist/views/Chat/Messages/AskForAuthentication.vue.d.ts.map +1 -0
  151. package/dist/views/Chat/Messages/AskForAuthentication.vue.js +7 -0
  152. package/dist/views/Chat/Messages/AskForAuthentication.vue2.js +89 -0
  153. package/dist/views/Chat/Messages/ExecuteRequestTool.vue.d.ts +2 -2
  154. package/dist/views/Chat/Messages/ExecuteRequestTool.vue.d.ts.map +1 -1
  155. package/dist/views/Chat/Messages/ExecuteRequestTool.vue.js +7 -0
  156. package/dist/views/Chat/Messages/ExecuteRequestTool.vue2.js +23 -0
  157. package/dist/views/Chat/Messages/GetMiniOpenAPIDocTool.vue.d.ts +2 -2
  158. package/dist/views/Chat/Messages/GetMiniOpenAPIDocTool.vue.d.ts.map +1 -1
  159. package/dist/views/Chat/Messages/GetMiniOpenAPIDocTool.vue.js +7 -0
  160. package/dist/views/Chat/Messages/GetMiniOpenAPIDocTool.vue2.js +56 -0
  161. package/dist/views/Chat/Messages/GetOpenAPISpecsSummary.vue.d.ts +2 -2
  162. package/dist/views/Chat/Messages/GetOpenAPISpecsSummary.vue.d.ts.map +1 -1
  163. package/dist/views/Chat/Messages/GetOpenAPISpecsSummary.vue.js +26 -0
  164. package/dist/views/Chat/Messages/GetOpenAPISpecsSummary.vue2.js +4 -0
  165. package/dist/views/Chat/Messages/Text.vue.d.ts.map +1 -1
  166. package/dist/views/Chat/Messages/Text.vue.js +16 -0
  167. package/dist/views/Chat/Messages/Text.vue2.js +4 -0
  168. package/dist/views/Layout.vue.d.ts.map +1 -1
  169. package/dist/views/Layout.vue.js +7 -0
  170. package/dist/views/Layout.vue2.js +23 -0
  171. package/dist/views/PromptForm.vue.d.ts.map +1 -1
  172. package/dist/views/PromptForm.vue.js +7 -0
  173. package/dist/views/PromptForm.vue2.js +212 -0
  174. package/dist/views/Settings/Auth.vue.d.ts.map +1 -1
  175. package/dist/views/Settings/Auth.vue.js +67 -0
  176. package/dist/views/Settings/Auth.vue2.js +4 -0
  177. package/dist/views/Settings/DocSettings.vue.d.ts.map +1 -1
  178. package/dist/views/Settings/DocSettings.vue.js +7 -0
  179. package/dist/views/Settings/DocSettings.vue2.js +43 -0
  180. package/dist/views/Settings/Settings.vue.d.ts.map +1 -1
  181. package/dist/views/Settings/Settings.vue.js +8 -0
  182. package/dist/views/Settings/Settings.vue2.js +67 -0
  183. package/dist/views/Start.vue.d.ts.map +1 -1
  184. package/dist/views/Start.vue.js +7 -0
  185. package/dist/views/Start.vue2.js +41 -0
  186. package/package.json +53 -7
  187. package/dist/Tooltip-Cm82QgNj.js +0 -575
  188. package/dist/__vite-optional-peer-dep_stream-markdown_markstream-vue_false-sdjmOmXd.js +0 -5
  189. package/dist/__vite-optional-peer-dep_stream-monaco_markstream-vue_false-HdL4xm5U.js +0 -5
  190. package/dist/__vite-optional-peer-dep_vue-i18n_markstream-vue_false-B9Pwe5kz.js +0 -5
  191. package/dist/_basePickBy-hHD8tMGb.js +0 -151
  192. package/dist/_baseUniq-DTF1wuF6.js +0 -614
  193. package/dist/arc-Dw2RQerU.js +0 -83
  194. package/dist/architecture-U656AL7Q-B00Z9eXr.js +0 -36
  195. package/dist/architectureDiagram-VXUJARFQ-BtOffFaM.js +0 -4662
  196. package/dist/blockDiagram-VD42YOAC-BUqFMMQe.js +0 -2261
  197. package/dist/c4Diagram-YG6GDRKO-NrM1YcpG.js +0 -1579
  198. package/dist/channel-105myCGU.js +0 -5
  199. package/dist/chunk-4BX2VUAB-TAxJli7C.js +0 -8
  200. package/dist/chunk-55IACEB6-VXFJ4bz5.js +0 -8
  201. package/dist/chunk-B4BG7PRW-CZDQpfj5.js +0 -1375
  202. package/dist/chunk-DI55MBZ5-D3l7TA-E.js +0 -1370
  203. package/dist/chunk-FMBD7UC4-BMXFm8I3.js +0 -19
  204. package/dist/chunk-QN33PNHL-BOUpbpWp.js +0 -19
  205. package/dist/chunk-QZHKN3VN-C-TEEx05.js +0 -15
  206. package/dist/chunk-TZMSLE5B-BUiROKNR.js +0 -64
  207. package/dist/classDiagram-2ON5EDUG-HQET4ybK.js +0 -16
  208. package/dist/classDiagram-v2-WZHVMYZB-HQET4ybK.js +0 -16
  209. package/dist/clone-CIIO71O9.js +0 -8
  210. package/dist/components/Endpoint.vue.d.ts.map +0 -1
  211. package/dist/cose-bilkent-S5V4N54A-CMsF4n-5.js +0 -2609
  212. package/dist/cytoscape.esm-DfdJODL8.js +0 -18735
  213. package/dist/dagre-6UL2VRFP-DqzdQ6Qg.js +0 -444
  214. package/dist/defaultLocale-BEa-49Qz.js +0 -171
  215. package/dist/diagram-PSM6KHXK-1xyGntw2.js +0 -531
  216. package/dist/diagram-QEK2KX5R-DdZdlAm1.js +0 -217
  217. package/dist/diagram-S2PKOQOG-C80Eo2jp.js +0 -142
  218. package/dist/erDiagram-Q2GNP2WA-DFVRrMXT.js +0 -841
  219. package/dist/flowDiagram-NV44I4VS-D9QK_qqB.js +0 -1620
  220. package/dist/ganttDiagram-LVOFAZNH-Bo1NTkeQ.js +0 -2506
  221. package/dist/gitGraph-F6HP7TQM-C5hdgcgO.js +0 -27
  222. package/dist/gitGraphDiagram-NY62KEGX-BZqnqZh6.js +0 -699
  223. package/dist/graph-Dth4IhEK.js +0 -247
  224. package/dist/hooks/useChatApprovals.d.ts.map +0 -1
  225. package/dist/hooks/useChatOperationBlocks.d.ts +0 -3
  226. package/dist/hooks/useChatOperationBlocks.d.ts.map +0 -1
  227. package/dist/hooks/useChatScroll.d.ts.map +0 -1
  228. package/dist/hooks/useSearch.d.ts.map +0 -1
  229. package/dist/index-BOvT43H8.js +0 -111780
  230. package/dist/index2-B36B-gt0.js +0 -69
  231. package/dist/index3-CtIyYUnG.js +0 -70
  232. package/dist/index4-Dzz91Ao2.js +0 -537
  233. package/dist/index5-Bmz0gMSP.js +0 -590
  234. package/dist/index6-DMB3qTSV.js +0 -196
  235. package/dist/info-NVLQJR56-azt5obk5.js +0 -27
  236. package/dist/infoDiagram-ER5ION4S-DD4Jtctm.js +0 -24
  237. package/dist/infographic_markstream-vue_false-BfsmcXxk.js +0 -5
  238. package/dist/init-DjUOC4st.js +0 -16
  239. package/dist/journeyDiagram-XKPGCS4Q-CXL6UO0r.js +0 -834
  240. package/dist/kanban-definition-3W4ZIXB7-B57do5Wg.js +0 -719
  241. package/dist/katex-SsTUIUTC.js +0 -11688
  242. package/dist/layout-7TCY8eA2.js +0 -1332
  243. package/dist/linear-DSm5i91N.js +0 -625
  244. package/dist/mermaid-parser.core-CUQWpAMM.js +0 -12746
  245. package/dist/mermaid.core-QjuzH7xx.js +0 -14164
  246. package/dist/mhchem-XHl7cef5.js +0 -2306
  247. package/dist/mindmap-definition-VGOIOE7T-DAQyGNAM.js +0 -784
  248. package/dist/ordinal-DfAQgscy.js +0 -61
  249. package/dist/packet-BFZMPI3H-CixuxAEA.js +0 -27
  250. package/dist/pie-7BOR55EZ-D3cgnzR1.js +0 -32
  251. package/dist/pieDiagram-ADFJNKIX-BqxgYwrL.js +0 -161
  252. package/dist/quadrantDiagram-AYHSOK5B-CQ4v-9Hh.js +0 -1022
  253. package/dist/radar-NHE76QYJ-DhV0Od_M.js +0 -27
  254. package/dist/requirementDiagram-UZGBJVZJ-ncWNAgFi.js +0 -850
  255. package/dist/safeRaf-I3a3-dyJ.js +0 -10
  256. package/dist/sankeyDiagram-TZEHDZUN-yCR2_cH5.js +0 -810
  257. package/dist/sequenceDiagram-WL72ISMW-DZ7wqFyd.js +0 -2511
  258. package/dist/stateDiagram-FKZM4ZOC-Dra68Tzi.js +0 -263
  259. package/dist/stateDiagram-v2-4FDKWEC3-CARbPECD.js +0 -16
  260. package/dist/timeline-definition-IT6M3QCI-DEbG9QIM.js +0 -795
  261. package/dist/treemap-KMMF4GRG-CQbPsyWe.js +0 -81
  262. package/dist/xychartDiagram-PRI3JC2R-C94Pu8hL.js +0 -1340
@@ -1,1620 +0,0 @@
1
- import { g as qt } from "./chunk-FMBD7UC4-BMXFm8I3.js";
2
- import { _ as m, n as Ot, l as $, c as b1, d as E1, o as Ht, r as Xt, u as it, b as Qt, s as Jt, p as Zt, a as $t, g as te, q as ee, k as se, t as ie, J as re, v as ae, x as st, y as ne, z as ue, A as oe } from "./mermaid.core-QjuzH7xx.js";
3
- import { g as le } from "./chunk-55IACEB6-VXFJ4bz5.js";
4
- import { s as ce } from "./chunk-QN33PNHL-BOUpbpWp.js";
5
- import { c as he } from "./channel-105myCGU.js";
6
- var de = "flowchart-", G1, pe = (G1 = class {
7
- // cspell:ignore funs
8
- constructor() {
9
- this.vertexCounter = 0, this.config = b1(), this.vertices = /* @__PURE__ */ new Map(), this.edges = [], this.classes = /* @__PURE__ */ new Map(), this.subGraphs = [], this.subGraphLookup = /* @__PURE__ */ new Map(), this.tooltips = /* @__PURE__ */ new Map(), this.subCount = 0, this.firstGraphFlag = !0, this.secCount = -1, this.posCrossRef = [], this.funs = [], this.setAccTitle = Qt, this.setAccDescription = Jt, this.setDiagramTitle = Zt, this.getAccTitle = $t, this.getAccDescription = te, this.getDiagramTitle = ee, this.funs.push(this.setupToolTips.bind(this)), this.addVertex = this.addVertex.bind(this), this.firstGraph = this.firstGraph.bind(this), this.setDirection = this.setDirection.bind(this), this.addSubGraph = this.addSubGraph.bind(this), this.addLink = this.addLink.bind(this), this.setLink = this.setLink.bind(this), this.updateLink = this.updateLink.bind(this), this.addClass = this.addClass.bind(this), this.setClass = this.setClass.bind(this), this.destructLink = this.destructLink.bind(this), this.setClickEvent = this.setClickEvent.bind(this), this.setTooltip = this.setTooltip.bind(this), this.updateLinkInterpolate = this.updateLinkInterpolate.bind(this), this.setClickFun = this.setClickFun.bind(this), this.bindFunctions = this.bindFunctions.bind(this), this.lex = {
10
- firstGraph: this.firstGraph.bind(this)
11
- }, this.clear(), this.setGen("gen-2");
12
- }
13
- sanitizeText(i) {
14
- return se.sanitizeText(i, this.config);
15
- }
16
- /**
17
- * Function to lookup domId from id in the graph definition.
18
- *
19
- * @param id - id of the node
20
- */
21
- lookUpDomId(i) {
22
- for (const r of this.vertices.values())
23
- if (r.id === i)
24
- return r.domId;
25
- return i;
26
- }
27
- /**
28
- * Function called by parser when a node definition has been found
29
- */
30
- addVertex(i, r, a, n, l, g, c = {}, b) {
31
- if (!i || i.trim().length === 0)
32
- return;
33
- let u;
34
- if (b !== void 0) {
35
- let k;
36
- b.includes(`
37
- `) ? k = b + `
38
- ` : k = `{
39
- ` + b + `
40
- }`, u = ie(k, { schema: re });
41
- }
42
- const A = this.edges.find((k) => k.id === i);
43
- if (A) {
44
- const k = u;
45
- k?.animate !== void 0 && (A.animate = k.animate), k?.animation !== void 0 && (A.animation = k.animation), k?.curve !== void 0 && (A.interpolate = k.curve);
46
- return;
47
- }
48
- let y, f = this.vertices.get(i);
49
- if (f === void 0 && (f = {
50
- id: i,
51
- labelType: "text",
52
- domId: de + i + "-" + this.vertexCounter,
53
- styles: [],
54
- classes: []
55
- }, this.vertices.set(i, f)), this.vertexCounter++, r !== void 0 ? (this.config = b1(), y = this.sanitizeText(r.text.trim()), f.labelType = r.type, y.startsWith('"') && y.endsWith('"') && (y = y.substring(1, y.length - 1)), f.text = y) : f.text === void 0 && (f.text = i), a !== void 0 && (f.type = a), n?.forEach((k) => {
56
- f.styles.push(k);
57
- }), l?.forEach((k) => {
58
- f.classes.push(k);
59
- }), g !== void 0 && (f.dir = g), f.props === void 0 ? f.props = c : c !== void 0 && Object.assign(f.props, c), u !== void 0) {
60
- if (u.shape) {
61
- if (u.shape !== u.shape.toLowerCase() || u.shape.includes("_"))
62
- throw new Error(`No such shape: ${u.shape}. Shape names should be lowercase.`);
63
- if (!ae(u.shape))
64
- throw new Error(`No such shape: ${u.shape}.`);
65
- f.type = u?.shape;
66
- }
67
- u?.label && (f.text = u?.label), u?.icon && (f.icon = u?.icon, !u.label?.trim() && f.text === i && (f.text = "")), u?.form && (f.form = u?.form), u?.pos && (f.pos = u?.pos), u?.img && (f.img = u?.img, !u.label?.trim() && f.text === i && (f.text = "")), u?.constraint && (f.constraint = u.constraint), u.w && (f.assetWidth = Number(u.w)), u.h && (f.assetHeight = Number(u.h));
68
- }
69
- }
70
- /**
71
- * Function called by parser when a link/edge definition has been found
72
- *
73
- */
74
- addSingleLink(i, r, a, n) {
75
- const c = {
76
- start: i,
77
- end: r,
78
- type: void 0,
79
- text: "",
80
- labelType: "text",
81
- classes: [],
82
- isUserDefinedId: !1,
83
- interpolate: this.edges.defaultInterpolate
84
- };
85
- $.info("abc78 Got edge...", c);
86
- const b = a.text;
87
- if (b !== void 0 && (c.text = this.sanitizeText(b.text.trim()), c.text.startsWith('"') && c.text.endsWith('"') && (c.text = c.text.substring(1, c.text.length - 1)), c.labelType = b.type), a !== void 0 && (c.type = a.type, c.stroke = a.stroke, c.length = a.length > 10 ? 10 : a.length), n && !this.edges.some((u) => u.id === n))
88
- c.id = n, c.isUserDefinedId = !0;
89
- else {
90
- const u = this.edges.filter((A) => A.start === c.start && A.end === c.end);
91
- u.length === 0 ? c.id = st(c.start, c.end, { counter: 0, prefix: "L" }) : c.id = st(c.start, c.end, {
92
- counter: u.length + 1,
93
- prefix: "L"
94
- });
95
- }
96
- if (this.edges.length < (this.config.maxEdges ?? 500))
97
- $.info("Pushing edge..."), this.edges.push(c);
98
- else
99
- throw new Error(
100
- `Edge limit exceeded. ${this.edges.length} edges found, but the limit is ${this.config.maxEdges}.
101
-
102
- Initialize mermaid with maxEdges set to a higher number to allow more edges.
103
- You cannot set this config via configuration inside the diagram as it is a secure config.
104
- You have to call mermaid.initialize.`
105
- );
106
- }
107
- isLinkData(i) {
108
- return i !== null && typeof i == "object" && "id" in i && typeof i.id == "string";
109
- }
110
- addLink(i, r, a) {
111
- const n = this.isLinkData(a) ? a.id.replace("@", "") : void 0;
112
- $.info("addLink", i, r, n);
113
- for (const l of i)
114
- for (const g of r) {
115
- const c = l === i[i.length - 1], b = g === r[0];
116
- c && b ? this.addSingleLink(l, g, a, n) : this.addSingleLink(l, g, a, void 0);
117
- }
118
- }
119
- /**
120
- * Updates a link's line interpolation algorithm
121
- */
122
- updateLinkInterpolate(i, r) {
123
- i.forEach((a) => {
124
- a === "default" ? this.edges.defaultInterpolate = r : this.edges[a].interpolate = r;
125
- });
126
- }
127
- /**
128
- * Updates a link with a style
129
- *
130
- */
131
- updateLink(i, r) {
132
- i.forEach((a) => {
133
- if (typeof a == "number" && a >= this.edges.length)
134
- throw new Error(
135
- `The index ${a} for linkStyle is out of bounds. Valid indices for linkStyle are between 0 and ${this.edges.length - 1}. (Help: Ensure that the index is within the range of existing edges.)`
136
- );
137
- a === "default" ? this.edges.defaultStyle = r : (this.edges[a].style = r, (this.edges[a]?.style?.length ?? 0) > 0 && !this.edges[a]?.style?.some((n) => n?.startsWith("fill")) && this.edges[a]?.style?.push("fill:none"));
138
- });
139
- }
140
- addClass(i, r) {
141
- const a = r.join().replace(/\\,/g, "§§§").replace(/,/g, ";").replace(/§§§/g, ",").split(";");
142
- i.split(",").forEach((n) => {
143
- let l = this.classes.get(n);
144
- l === void 0 && (l = { id: n, styles: [], textStyles: [] }, this.classes.set(n, l)), a?.forEach((g) => {
145
- if (/color/.exec(g)) {
146
- const c = g.replace("fill", "bgFill");
147
- l.textStyles.push(c);
148
- }
149
- l.styles.push(g);
150
- });
151
- });
152
- }
153
- /**
154
- * Called by parser when a graph definition is found, stores the direction of the chart.
155
- *
156
- */
157
- setDirection(i) {
158
- this.direction = i.trim(), /.*</.exec(this.direction) && (this.direction = "RL"), /.*\^/.exec(this.direction) && (this.direction = "BT"), /.*>/.exec(this.direction) && (this.direction = "LR"), /.*v/.exec(this.direction) && (this.direction = "TB"), this.direction === "TD" && (this.direction = "TB");
159
- }
160
- /**
161
- * Called by parser when a special node is found, e.g. a clickable element.
162
- *
163
- * @param ids - Comma separated list of ids
164
- * @param className - Class to add
165
- */
166
- setClass(i, r) {
167
- for (const a of i.split(",")) {
168
- const n = this.vertices.get(a);
169
- n && n.classes.push(r);
170
- const l = this.edges.find((c) => c.id === a);
171
- l && l.classes.push(r);
172
- const g = this.subGraphLookup.get(a);
173
- g && g.classes.push(r);
174
- }
175
- }
176
- setTooltip(i, r) {
177
- if (r !== void 0) {
178
- r = this.sanitizeText(r);
179
- for (const a of i.split(","))
180
- this.tooltips.set(this.version === "gen-1" ? this.lookUpDomId(a) : a, r);
181
- }
182
- }
183
- setClickFun(i, r, a) {
184
- const n = this.lookUpDomId(i);
185
- if (b1().securityLevel !== "loose" || r === void 0)
186
- return;
187
- let l = [];
188
- if (typeof a == "string") {
189
- l = a.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);
190
- for (let c = 0; c < l.length; c++) {
191
- let b = l[c].trim();
192
- b.startsWith('"') && b.endsWith('"') && (b = b.substr(1, b.length - 2)), l[c] = b;
193
- }
194
- }
195
- l.length === 0 && l.push(i);
196
- const g = this.vertices.get(i);
197
- g && (g.haveCallback = !0, this.funs.push(() => {
198
- const c = document.querySelector(`[id="${n}"]`);
199
- c !== null && c.addEventListener(
200
- "click",
201
- () => {
202
- it.runFunc(r, ...l);
203
- },
204
- !1
205
- );
206
- }));
207
- }
208
- /**
209
- * Called by parser when a link is found. Adds the URL to the vertex data.
210
- *
211
- * @param ids - Comma separated list of ids
212
- * @param linkStr - URL to create a link for
213
- * @param target - Target attribute for the link
214
- */
215
- setLink(i, r, a) {
216
- i.split(",").forEach((n) => {
217
- const l = this.vertices.get(n);
218
- l !== void 0 && (l.link = it.formatUrl(r, this.config), l.linkTarget = a);
219
- }), this.setClass(i, "clickable");
220
- }
221
- getTooltip(i) {
222
- return this.tooltips.get(i);
223
- }
224
- /**
225
- * Called by parser when a click definition is found. Registers an event handler.
226
- *
227
- * @param ids - Comma separated list of ids
228
- * @param functionName - Function to be called on click
229
- * @param functionArgs - Arguments to be passed to the function
230
- */
231
- setClickEvent(i, r, a) {
232
- i.split(",").forEach((n) => {
233
- this.setClickFun(n, r, a);
234
- }), this.setClass(i, "clickable");
235
- }
236
- bindFunctions(i) {
237
- this.funs.forEach((r) => {
238
- r(i);
239
- });
240
- }
241
- getDirection() {
242
- return this.direction?.trim();
243
- }
244
- /**
245
- * Retrieval function for fetching the found nodes after parsing has completed.
246
- *
247
- */
248
- getVertices() {
249
- return this.vertices;
250
- }
251
- /**
252
- * Retrieval function for fetching the found links after parsing has completed.
253
- *
254
- */
255
- getEdges() {
256
- return this.edges;
257
- }
258
- /**
259
- * Retrieval function for fetching the found class definitions after parsing has completed.
260
- *
261
- */
262
- getClasses() {
263
- return this.classes;
264
- }
265
- setupToolTips(i) {
266
- let r = E1(".mermaidTooltip");
267
- (r._groups || r)[0][0] === null && (r = E1("body").append("div").attr("class", "mermaidTooltip").style("opacity", 0)), E1(i).select("svg").selectAll("g.node").on("mouseover", (l) => {
268
- const g = E1(l.currentTarget);
269
- if (g.attr("title") === null)
270
- return;
271
- const b = l.currentTarget?.getBoundingClientRect();
272
- r.transition().duration(200).style("opacity", ".9"), r.text(g.attr("title")).style("left", window.scrollX + b.left + (b.right - b.left) / 2 + "px").style("top", window.scrollY + b.bottom + "px"), r.html(r.html().replace(/&lt;br\/&gt;/g, "<br/>")), g.classed("hover", !0);
273
- }).on("mouseout", (l) => {
274
- r.transition().duration(500).style("opacity", 0), E1(l.currentTarget).classed("hover", !1);
275
- });
276
- }
277
- /**
278
- * Clears the internal graph db so that a new graph can be parsed.
279
- *
280
- */
281
- clear(i = "gen-2") {
282
- this.vertices = /* @__PURE__ */ new Map(), this.classes = /* @__PURE__ */ new Map(), this.edges = [], this.funs = [this.setupToolTips.bind(this)], this.subGraphs = [], this.subGraphLookup = /* @__PURE__ */ new Map(), this.subCount = 0, this.tooltips = /* @__PURE__ */ new Map(), this.firstGraphFlag = !0, this.version = i, this.config = b1(), ne();
283
- }
284
- setGen(i) {
285
- this.version = i || "gen-2";
286
- }
287
- defaultStyle() {
288
- return "fill:#ffa;stroke: #f66; stroke-width: 3px; stroke-dasharray: 5, 5;fill:#ffa;stroke: #666;";
289
- }
290
- addSubGraph(i, r, a) {
291
- let n = i.text.trim(), l = a.text;
292
- i === a && /\s/.exec(a.text) && (n = void 0);
293
- const c = (/* @__PURE__ */ m((f) => {
294
- const k = { boolean: {}, number: {}, string: {} }, x = [];
295
- let T;
296
- return { nodeList: f.filter(function(W) {
297
- const J = typeof W;
298
- return W.stmt && W.stmt === "dir" ? (T = W.value, !1) : W.trim() === "" ? !1 : J in k ? k[J].hasOwnProperty(W) ? !1 : k[J][W] = !0 : x.includes(W) ? !1 : x.push(W);
299
- }), dir: T };
300
- }, "uniq"))(r.flat()), b = c.nodeList;
301
- let u = c.dir;
302
- const A = b1().flowchart ?? {};
303
- if (u = u ?? (A.inheritDir ? this.getDirection() ?? b1().direction ?? void 0 : void 0), this.version === "gen-1")
304
- for (let f = 0; f < b.length; f++)
305
- b[f] = this.lookUpDomId(b[f]);
306
- n = n ?? "subGraph" + this.subCount, l = l || "", l = this.sanitizeText(l), this.subCount = this.subCount + 1;
307
- const y = {
308
- id: n,
309
- nodes: b,
310
- title: l.trim(),
311
- classes: [],
312
- dir: u,
313
- labelType: a.type
314
- };
315
- return $.info("Adding", y.id, y.nodes, y.dir), y.nodes = this.makeUniq(y, this.subGraphs).nodes, this.subGraphs.push(y), this.subGraphLookup.set(n, y), n;
316
- }
317
- getPosForId(i) {
318
- for (const [r, a] of this.subGraphs.entries())
319
- if (a.id === i)
320
- return r;
321
- return -1;
322
- }
323
- indexNodes2(i, r) {
324
- const a = this.subGraphs[r].nodes;
325
- if (this.secCount = this.secCount + 1, this.secCount > 2e3)
326
- return {
327
- result: !1,
328
- count: 0
329
- };
330
- if (this.posCrossRef[this.secCount] = r, this.subGraphs[r].id === i)
331
- return {
332
- result: !0,
333
- count: 0
334
- };
335
- let n = 0, l = 1;
336
- for (; n < a.length; ) {
337
- const g = this.getPosForId(a[n]);
338
- if (g >= 0) {
339
- const c = this.indexNodes2(i, g);
340
- if (c.result)
341
- return {
342
- result: !0,
343
- count: l + c.count
344
- };
345
- l = l + c.count;
346
- }
347
- n = n + 1;
348
- }
349
- return {
350
- result: !1,
351
- count: l
352
- };
353
- }
354
- getDepthFirstPos(i) {
355
- return this.posCrossRef[i];
356
- }
357
- indexNodes() {
358
- this.secCount = -1, this.subGraphs.length > 0 && this.indexNodes2("none", this.subGraphs.length - 1);
359
- }
360
- getSubGraphs() {
361
- return this.subGraphs;
362
- }
363
- firstGraph() {
364
- return this.firstGraphFlag ? (this.firstGraphFlag = !1, !0) : !1;
365
- }
366
- destructStartLink(i) {
367
- let r = i.trim(), a = "arrow_open";
368
- switch (r[0]) {
369
- case "<":
370
- a = "arrow_point", r = r.slice(1);
371
- break;
372
- case "x":
373
- a = "arrow_cross", r = r.slice(1);
374
- break;
375
- case "o":
376
- a = "arrow_circle", r = r.slice(1);
377
- break;
378
- }
379
- let n = "normal";
380
- return r.includes("=") && (n = "thick"), r.includes(".") && (n = "dotted"), { type: a, stroke: n };
381
- }
382
- countChar(i, r) {
383
- const a = r.length;
384
- let n = 0;
385
- for (let l = 0; l < a; ++l)
386
- r[l] === i && ++n;
387
- return n;
388
- }
389
- destructEndLink(i) {
390
- const r = i.trim();
391
- let a = r.slice(0, -1), n = "arrow_open";
392
- switch (r.slice(-1)) {
393
- case "x":
394
- n = "arrow_cross", r.startsWith("x") && (n = "double_" + n, a = a.slice(1));
395
- break;
396
- case ">":
397
- n = "arrow_point", r.startsWith("<") && (n = "double_" + n, a = a.slice(1));
398
- break;
399
- case "o":
400
- n = "arrow_circle", r.startsWith("o") && (n = "double_" + n, a = a.slice(1));
401
- break;
402
- }
403
- let l = "normal", g = a.length - 1;
404
- a.startsWith("=") && (l = "thick"), a.startsWith("~") && (l = "invisible");
405
- const c = this.countChar(".", a);
406
- return c && (l = "dotted", g = c), { type: n, stroke: l, length: g };
407
- }
408
- destructLink(i, r) {
409
- const a = this.destructEndLink(i);
410
- let n;
411
- if (r) {
412
- if (n = this.destructStartLink(r), n.stroke !== a.stroke)
413
- return { type: "INVALID", stroke: "INVALID" };
414
- if (n.type === "arrow_open")
415
- n.type = a.type;
416
- else {
417
- if (n.type !== a.type)
418
- return { type: "INVALID", stroke: "INVALID" };
419
- n.type = "double_" + n.type;
420
- }
421
- return n.type === "double_arrow" && (n.type = "double_arrow_point"), n.length = a.length, n;
422
- }
423
- return a;
424
- }
425
- // Todo optimizer this by caching existing nodes
426
- exists(i, r) {
427
- for (const a of i)
428
- if (a.nodes.includes(r))
429
- return !0;
430
- return !1;
431
- }
432
- /**
433
- * Deletes an id from all subgraphs
434
- *
435
- */
436
- makeUniq(i, r) {
437
- const a = [];
438
- return i.nodes.forEach((n, l) => {
439
- this.exists(r, n) || a.push(i.nodes[l]);
440
- }), { nodes: a };
441
- }
442
- getTypeFromVertex(i) {
443
- if (i.img)
444
- return "imageSquare";
445
- if (i.icon)
446
- return i.form === "circle" ? "iconCircle" : i.form === "square" ? "iconSquare" : i.form === "rounded" ? "iconRounded" : "icon";
447
- switch (i.type) {
448
- case "square":
449
- case void 0:
450
- return "squareRect";
451
- case "round":
452
- return "roundedRect";
453
- case "ellipse":
454
- return "ellipse";
455
- default:
456
- return i.type;
457
- }
458
- }
459
- findNode(i, r) {
460
- return i.find((a) => a.id === r);
461
- }
462
- destructEdgeType(i) {
463
- let r = "none", a = "arrow_point";
464
- switch (i) {
465
- case "arrow_point":
466
- case "arrow_circle":
467
- case "arrow_cross":
468
- a = i;
469
- break;
470
- case "double_arrow_point":
471
- case "double_arrow_circle":
472
- case "double_arrow_cross":
473
- r = i.replace("double_", ""), a = r;
474
- break;
475
- }
476
- return { arrowTypeStart: r, arrowTypeEnd: a };
477
- }
478
- addNodeFromVertex(i, r, a, n, l, g) {
479
- const c = a.get(i.id), b = n.get(i.id) ?? !1, u = this.findNode(r, i.id);
480
- if (u)
481
- u.cssStyles = i.styles, u.cssCompiledStyles = this.getCompiledStyles(i.classes), u.cssClasses = i.classes.join(" ");
482
- else {
483
- const A = {
484
- id: i.id,
485
- label: i.text,
486
- labelStyle: "",
487
- parentId: c,
488
- padding: l.flowchart?.padding || 8,
489
- cssStyles: i.styles,
490
- cssCompiledStyles: this.getCompiledStyles(["default", "node", ...i.classes]),
491
- cssClasses: "default " + i.classes.join(" "),
492
- dir: i.dir,
493
- domId: i.domId,
494
- look: g,
495
- link: i.link,
496
- linkTarget: i.linkTarget,
497
- tooltip: this.getTooltip(i.id),
498
- icon: i.icon,
499
- pos: i.pos,
500
- img: i.img,
501
- assetWidth: i.assetWidth,
502
- assetHeight: i.assetHeight,
503
- constraint: i.constraint
504
- };
505
- b ? r.push({
506
- ...A,
507
- isGroup: !0,
508
- shape: "rect"
509
- }) : r.push({
510
- ...A,
511
- isGroup: !1,
512
- shape: this.getTypeFromVertex(i)
513
- });
514
- }
515
- }
516
- getCompiledStyles(i) {
517
- let r = [];
518
- for (const a of i) {
519
- const n = this.classes.get(a);
520
- n?.styles && (r = [...r, ...n.styles ?? []].map((l) => l.trim())), n?.textStyles && (r = [...r, ...n.textStyles ?? []].map((l) => l.trim()));
521
- }
522
- return r;
523
- }
524
- getData() {
525
- const i = b1(), r = [], a = [], n = this.getSubGraphs(), l = /* @__PURE__ */ new Map(), g = /* @__PURE__ */ new Map();
526
- for (let u = n.length - 1; u >= 0; u--) {
527
- const A = n[u];
528
- A.nodes.length > 0 && g.set(A.id, !0);
529
- for (const y of A.nodes)
530
- l.set(y, A.id);
531
- }
532
- for (let u = n.length - 1; u >= 0; u--) {
533
- const A = n[u];
534
- r.push({
535
- id: A.id,
536
- label: A.title,
537
- labelStyle: "",
538
- parentId: l.get(A.id),
539
- padding: 8,
540
- cssCompiledStyles: this.getCompiledStyles(A.classes),
541
- cssClasses: A.classes.join(" "),
542
- shape: "rect",
543
- dir: A.dir,
544
- isGroup: !0,
545
- look: i.look
546
- });
547
- }
548
- this.getVertices().forEach((u) => {
549
- this.addNodeFromVertex(u, r, l, g, i, i.look || "classic");
550
- });
551
- const b = this.getEdges();
552
- return b.forEach((u, A) => {
553
- const { arrowTypeStart: y, arrowTypeEnd: f } = this.destructEdgeType(u.type), k = [...b.defaultStyle ?? []];
554
- u.style && k.push(...u.style);
555
- const x = {
556
- id: st(u.start, u.end, { counter: A, prefix: "L" }, u.id),
557
- isUserDefinedId: u.isUserDefinedId,
558
- start: u.start,
559
- end: u.end,
560
- type: u.type ?? "normal",
561
- label: u.text,
562
- labelpos: "c",
563
- thickness: u.stroke,
564
- minlen: u.length,
565
- classes: u?.stroke === "invisible" ? "" : "edge-thickness-normal edge-pattern-solid flowchart-link",
566
- arrowTypeStart: u?.stroke === "invisible" || u?.type === "arrow_open" ? "none" : y,
567
- arrowTypeEnd: u?.stroke === "invisible" || u?.type === "arrow_open" ? "none" : f,
568
- arrowheadStyle: "fill: #333",
569
- cssCompiledStyles: this.getCompiledStyles(u.classes),
570
- labelStyle: k,
571
- style: k,
572
- pattern: u.stroke,
573
- look: i.look,
574
- animate: u.animate,
575
- animation: u.animation,
576
- curve: u.interpolate || this.edges.defaultInterpolate || i.flowchart?.curve
577
- };
578
- a.push(x);
579
- }), { nodes: r, edges: a, other: {}, config: i };
580
- }
581
- defaultConfig() {
582
- return ue.flowchart;
583
- }
584
- }, m(G1, "FlowDB"), G1), fe = /* @__PURE__ */ m(function(s, i) {
585
- return i.db.getClasses();
586
- }, "getClasses"), ge = /* @__PURE__ */ m(async function(s, i, r, a) {
587
- $.info("REF0:"), $.info("Drawing state diagram (v2)", i);
588
- const { securityLevel: n, flowchart: l, layout: g } = b1();
589
- let c;
590
- n === "sandbox" && (c = E1("#i" + i));
591
- const b = n === "sandbox" ? c.nodes()[0].contentDocument : document;
592
- $.debug("Before getData: ");
593
- const u = a.db.getData();
594
- $.debug("Data: ", u);
595
- const A = le(i, n), y = a.db.getDirection();
596
- u.type = a.type, u.layoutAlgorithm = Ht(g), u.layoutAlgorithm === "dagre" && g === "elk" && $.warn(
597
- "flowchart-elk was moved to an external package in Mermaid v11. Please refer [release notes](https://github.com/mermaid-js/mermaid/releases/tag/v11.0.0) for more details. This diagram will be rendered using `dagre` layout as a fallback."
598
- ), u.direction = y, u.nodeSpacing = l?.nodeSpacing || 50, u.rankSpacing = l?.rankSpacing || 50, u.markers = ["point", "circle", "cross"], u.diagramId = i, $.debug("REF1:", u), await Xt(u, A);
599
- const f = u.config.flowchart?.diagramPadding ?? 8;
600
- it.insertTitle(
601
- A,
602
- "flowchartTitleText",
603
- l?.titleTopMargin || 0,
604
- a.db.getDiagramTitle()
605
- ), ce(A, f, "flowchart", l?.useMaxWidth || !1);
606
- for (const k of u.nodes) {
607
- const x = E1(`#${i} [id="${k.id}"]`);
608
- if (!x || !k.link)
609
- continue;
610
- const T = b.createElementNS("http://www.w3.org/2000/svg", "a");
611
- T.setAttributeNS("http://www.w3.org/2000/svg", "class", k.cssClasses), T.setAttributeNS("http://www.w3.org/2000/svg", "rel", "noopener"), n === "sandbox" ? T.setAttributeNS("http://www.w3.org/2000/svg", "target", "_top") : k.linkTarget && T.setAttributeNS("http://www.w3.org/2000/svg", "target", k.linkTarget);
612
- const d1 = x.insert(function() {
613
- return T;
614
- }, ":first-child"), W = x.select(".label-container");
615
- W && d1.append(function() {
616
- return W.node();
617
- });
618
- const J = x.select(".label");
619
- J && d1.append(function() {
620
- return J.node();
621
- });
622
- }
623
- }, "draw"), be = {
624
- getClasses: fe,
625
- draw: ge
626
- }, rt = (function() {
627
- var s = /* @__PURE__ */ m(function(g1, h, d, p) {
628
- for (d = d || {}, p = g1.length; p--; d[g1[p]] = h) ;
629
- return d;
630
- }, "o"), i = [1, 4], r = [1, 3], a = [1, 5], n = [1, 8, 9, 10, 11, 27, 34, 36, 38, 44, 60, 84, 85, 86, 87, 88, 89, 102, 105, 106, 109, 111, 114, 115, 116, 121, 122, 123, 124], l = [2, 2], g = [1, 13], c = [1, 14], b = [1, 15], u = [1, 16], A = [1, 23], y = [1, 25], f = [1, 26], k = [1, 27], x = [1, 49], T = [1, 48], d1 = [1, 29], W = [1, 30], J = [1, 31], O1 = [1, 32], M1 = [1, 33], V = [1, 44], w = [1, 46], I = [1, 42], R = [1, 47], N = [1, 43], G = [1, 50], P = [1, 45], O = [1, 51], M = [1, 52], U1 = [1, 34], W1 = [1, 35], z1 = [1, 36], j1 = [1, 37], p1 = [1, 57], F = [1, 8, 9, 10, 11, 27, 32, 34, 36, 38, 44, 60, 84, 85, 86, 87, 88, 89, 102, 105, 106, 109, 111, 114, 115, 116, 121, 122, 123, 124], t1 = [1, 61], e1 = [1, 60], s1 = [1, 62], C1 = [8, 9, 11, 75, 77, 78], at = [1, 78], D1 = [1, 91], S1 = [1, 96], x1 = [1, 95], T1 = [1, 92], y1 = [1, 88], F1 = [1, 94], _1 = [1, 90], B1 = [1, 97], v1 = [1, 93], L1 = [1, 98], V1 = [1, 89], A1 = [8, 9, 10, 11, 40, 75, 77, 78], z = [8, 9, 10, 11, 40, 46, 75, 77, 78], q = [8, 9, 10, 11, 29, 40, 44, 46, 48, 50, 52, 54, 56, 58, 60, 63, 65, 67, 68, 70, 75, 77, 78, 89, 102, 105, 106, 109, 111, 114, 115, 116], nt = [8, 9, 11, 44, 60, 75, 77, 78, 89, 102, 105, 106, 109, 111, 114, 115, 116], w1 = [44, 60, 89, 102, 105, 106, 109, 111, 114, 115, 116], ut = [1, 121], ot = [1, 122], K1 = [1, 124], Y1 = [1, 123], lt = [44, 60, 62, 74, 89, 102, 105, 106, 109, 111, 114, 115, 116], ct = [1, 133], ht = [1, 147], dt = [1, 148], pt = [1, 149], ft = [1, 150], gt = [1, 135], bt = [1, 137], At = [1, 141], kt = [1, 142], mt = [1, 143], Et = [1, 144], Ct = [1, 145], Dt = [1, 146], St = [1, 151], xt = [1, 152], Tt = [1, 131], yt = [1, 132], Ft = [1, 139], _t = [1, 134], Bt = [1, 138], vt = [1, 136], Q1 = [8, 9, 10, 11, 27, 32, 34, 36, 38, 44, 60, 84, 85, 86, 87, 88, 89, 102, 105, 106, 109, 111, 114, 115, 116, 121, 122, 123, 124], Lt = [1, 154], Vt = [1, 156], v = [8, 9, 11], H = [8, 9, 10, 11, 14, 44, 60, 89, 105, 106, 109, 111, 114, 115, 116], E = [1, 176], j = [1, 172], K = [1, 173], C = [1, 177], D = [1, 174], S = [1, 175], I1 = [77, 116, 119], _ = [8, 9, 10, 11, 12, 14, 27, 29, 32, 44, 60, 75, 84, 85, 86, 87, 88, 89, 90, 105, 109, 111, 114, 115, 116], wt = [10, 106], f1 = [31, 49, 51, 53, 55, 57, 62, 64, 66, 67, 69, 71, 116, 117, 118], i1 = [1, 247], r1 = [1, 245], a1 = [1, 249], n1 = [1, 243], u1 = [1, 244], o1 = [1, 246], l1 = [1, 248], c1 = [1, 250], R1 = [1, 268], It = [8, 9, 11, 106], Z = [8, 9, 10, 11, 60, 84, 105, 106, 109, 110, 111, 112], J1 = {
631
- trace: /* @__PURE__ */ m(function() {
632
- }, "trace"),
633
- yy: {},
634
- symbols_: { error: 2, start: 3, graphConfig: 4, document: 5, line: 6, statement: 7, SEMI: 8, NEWLINE: 9, SPACE: 10, EOF: 11, GRAPH: 12, NODIR: 13, DIR: 14, FirstStmtSeparator: 15, ending: 16, endToken: 17, spaceList: 18, spaceListNewline: 19, vertexStatement: 20, separator: 21, styleStatement: 22, linkStyleStatement: 23, classDefStatement: 24, classStatement: 25, clickStatement: 26, subgraph: 27, textNoTags: 28, SQS: 29, text: 30, SQE: 31, end: 32, direction: 33, acc_title: 34, acc_title_value: 35, acc_descr: 36, acc_descr_value: 37, acc_descr_multiline_value: 38, shapeData: 39, SHAPE_DATA: 40, link: 41, node: 42, styledVertex: 43, AMP: 44, vertex: 45, STYLE_SEPARATOR: 46, idString: 47, DOUBLECIRCLESTART: 48, DOUBLECIRCLEEND: 49, PS: 50, PE: 51, "(-": 52, "-)": 53, STADIUMSTART: 54, STADIUMEND: 55, SUBROUTINESTART: 56, SUBROUTINEEND: 57, VERTEX_WITH_PROPS_START: 58, "NODE_STRING[field]": 59, COLON: 60, "NODE_STRING[value]": 61, PIPE: 62, CYLINDERSTART: 63, CYLINDEREND: 64, DIAMOND_START: 65, DIAMOND_STOP: 66, TAGEND: 67, TRAPSTART: 68, TRAPEND: 69, INVTRAPSTART: 70, INVTRAPEND: 71, linkStatement: 72, arrowText: 73, TESTSTR: 74, START_LINK: 75, edgeText: 76, LINK: 77, LINK_ID: 78, edgeTextToken: 79, STR: 80, MD_STR: 81, textToken: 82, keywords: 83, STYLE: 84, LINKSTYLE: 85, CLASSDEF: 86, CLASS: 87, CLICK: 88, DOWN: 89, UP: 90, textNoTagsToken: 91, stylesOpt: 92, "idString[vertex]": 93, "idString[class]": 94, CALLBACKNAME: 95, CALLBACKARGS: 96, HREF: 97, LINK_TARGET: 98, "STR[link]": 99, "STR[tooltip]": 100, alphaNum: 101, DEFAULT: 102, numList: 103, INTERPOLATE: 104, NUM: 105, COMMA: 106, style: 107, styleComponent: 108, NODE_STRING: 109, UNIT: 110, BRKT: 111, PCT: 112, idStringToken: 113, MINUS: 114, MULT: 115, UNICODE_TEXT: 116, TEXT: 117, TAGSTART: 118, EDGE_TEXT: 119, alphaNumToken: 120, direction_tb: 121, direction_bt: 122, direction_rl: 123, direction_lr: 124, $accept: 0, $end: 1 },
635
- terminals_: { 2: "error", 8: "SEMI", 9: "NEWLINE", 10: "SPACE", 11: "EOF", 12: "GRAPH", 13: "NODIR", 14: "DIR", 27: "subgraph", 29: "SQS", 31: "SQE", 32: "end", 34: "acc_title", 35: "acc_title_value", 36: "acc_descr", 37: "acc_descr_value", 38: "acc_descr_multiline_value", 40: "SHAPE_DATA", 44: "AMP", 46: "STYLE_SEPARATOR", 48: "DOUBLECIRCLESTART", 49: "DOUBLECIRCLEEND", 50: "PS", 51: "PE", 52: "(-", 53: "-)", 54: "STADIUMSTART", 55: "STADIUMEND", 56: "SUBROUTINESTART", 57: "SUBROUTINEEND", 58: "VERTEX_WITH_PROPS_START", 59: "NODE_STRING[field]", 60: "COLON", 61: "NODE_STRING[value]", 62: "PIPE", 63: "CYLINDERSTART", 64: "CYLINDEREND", 65: "DIAMOND_START", 66: "DIAMOND_STOP", 67: "TAGEND", 68: "TRAPSTART", 69: "TRAPEND", 70: "INVTRAPSTART", 71: "INVTRAPEND", 74: "TESTSTR", 75: "START_LINK", 77: "LINK", 78: "LINK_ID", 80: "STR", 81: "MD_STR", 84: "STYLE", 85: "LINKSTYLE", 86: "CLASSDEF", 87: "CLASS", 88: "CLICK", 89: "DOWN", 90: "UP", 93: "idString[vertex]", 94: "idString[class]", 95: "CALLBACKNAME", 96: "CALLBACKARGS", 97: "HREF", 98: "LINK_TARGET", 99: "STR[link]", 100: "STR[tooltip]", 102: "DEFAULT", 104: "INTERPOLATE", 105: "NUM", 106: "COMMA", 109: "NODE_STRING", 110: "UNIT", 111: "BRKT", 112: "PCT", 114: "MINUS", 115: "MULT", 116: "UNICODE_TEXT", 117: "TEXT", 118: "TAGSTART", 119: "EDGE_TEXT", 121: "direction_tb", 122: "direction_bt", 123: "direction_rl", 124: "direction_lr" },
636
- productions_: [0, [3, 2], [5, 0], [5, 2], [6, 1], [6, 1], [6, 1], [6, 1], [6, 1], [4, 2], [4, 2], [4, 2], [4, 3], [16, 2], [16, 1], [17, 1], [17, 1], [17, 1], [15, 1], [15, 1], [15, 2], [19, 2], [19, 2], [19, 1], [19, 1], [18, 2], [18, 1], [7, 2], [7, 2], [7, 2], [7, 2], [7, 2], [7, 2], [7, 9], [7, 6], [7, 4], [7, 1], [7, 2], [7, 2], [7, 1], [21, 1], [21, 1], [21, 1], [39, 2], [39, 1], [20, 4], [20, 3], [20, 4], [20, 2], [20, 2], [20, 1], [42, 1], [42, 6], [42, 5], [43, 1], [43, 3], [45, 4], [45, 4], [45, 6], [45, 4], [45, 4], [45, 4], [45, 8], [45, 4], [45, 4], [45, 4], [45, 6], [45, 4], [45, 4], [45, 4], [45, 4], [45, 4], [45, 1], [41, 2], [41, 3], [41, 3], [41, 1], [41, 3], [41, 4], [76, 1], [76, 2], [76, 1], [76, 1], [72, 1], [72, 2], [73, 3], [30, 1], [30, 2], [30, 1], [30, 1], [83, 1], [83, 1], [83, 1], [83, 1], [83, 1], [83, 1], [83, 1], [83, 1], [83, 1], [83, 1], [83, 1], [28, 1], [28, 2], [28, 1], [28, 1], [24, 5], [25, 5], [26, 2], [26, 4], [26, 3], [26, 5], [26, 3], [26, 5], [26, 5], [26, 7], [26, 2], [26, 4], [26, 2], [26, 4], [26, 4], [26, 6], [22, 5], [23, 5], [23, 5], [23, 9], [23, 9], [23, 7], [23, 7], [103, 1], [103, 3], [92, 1], [92, 3], [107, 1], [107, 2], [108, 1], [108, 1], [108, 1], [108, 1], [108, 1], [108, 1], [108, 1], [108, 1], [113, 1], [113, 1], [113, 1], [113, 1], [113, 1], [113, 1], [113, 1], [113, 1], [113, 1], [113, 1], [113, 1], [82, 1], [82, 1], [82, 1], [82, 1], [91, 1], [91, 1], [91, 1], [91, 1], [91, 1], [91, 1], [91, 1], [91, 1], [91, 1], [91, 1], [91, 1], [79, 1], [79, 1], [120, 1], [120, 1], [120, 1], [120, 1], [120, 1], [120, 1], [120, 1], [120, 1], [120, 1], [120, 1], [120, 1], [47, 1], [47, 2], [101, 1], [101, 2], [33, 1], [33, 1], [33, 1], [33, 1]],
637
- performAction: /* @__PURE__ */ m(function(h, d, p, o, B, t, P1) {
638
- var e = t.length - 1;
639
- switch (B) {
640
- case 2:
641
- this.$ = [];
642
- break;
643
- case 3:
644
- (!Array.isArray(t[e]) || t[e].length > 0) && t[e - 1].push(t[e]), this.$ = t[e - 1];
645
- break;
646
- case 4:
647
- case 183:
648
- this.$ = t[e];
649
- break;
650
- case 11:
651
- o.setDirection("TB"), this.$ = "TB";
652
- break;
653
- case 12:
654
- o.setDirection(t[e - 1]), this.$ = t[e - 1];
655
- break;
656
- case 27:
657
- this.$ = t[e - 1].nodes;
658
- break;
659
- case 28:
660
- case 29:
661
- case 30:
662
- case 31:
663
- case 32:
664
- this.$ = [];
665
- break;
666
- case 33:
667
- this.$ = o.addSubGraph(t[e - 6], t[e - 1], t[e - 4]);
668
- break;
669
- case 34:
670
- this.$ = o.addSubGraph(t[e - 3], t[e - 1], t[e - 3]);
671
- break;
672
- case 35:
673
- this.$ = o.addSubGraph(void 0, t[e - 1], void 0);
674
- break;
675
- case 37:
676
- this.$ = t[e].trim(), o.setAccTitle(this.$);
677
- break;
678
- case 38:
679
- case 39:
680
- this.$ = t[e].trim(), o.setAccDescription(this.$);
681
- break;
682
- case 43:
683
- this.$ = t[e - 1] + t[e];
684
- break;
685
- case 44:
686
- this.$ = t[e];
687
- break;
688
- case 45:
689
- o.addVertex(t[e - 1][t[e - 1].length - 1], void 0, void 0, void 0, void 0, void 0, void 0, t[e]), o.addLink(t[e - 3].stmt, t[e - 1], t[e - 2]), this.$ = { stmt: t[e - 1], nodes: t[e - 1].concat(t[e - 3].nodes) };
690
- break;
691
- case 46:
692
- o.addLink(t[e - 2].stmt, t[e], t[e - 1]), this.$ = { stmt: t[e], nodes: t[e].concat(t[e - 2].nodes) };
693
- break;
694
- case 47:
695
- o.addLink(t[e - 3].stmt, t[e - 1], t[e - 2]), this.$ = { stmt: t[e - 1], nodes: t[e - 1].concat(t[e - 3].nodes) };
696
- break;
697
- case 48:
698
- this.$ = { stmt: t[e - 1], nodes: t[e - 1] };
699
- break;
700
- case 49:
701
- o.addVertex(t[e - 1][t[e - 1].length - 1], void 0, void 0, void 0, void 0, void 0, void 0, t[e]), this.$ = { stmt: t[e - 1], nodes: t[e - 1], shapeData: t[e] };
702
- break;
703
- case 50:
704
- this.$ = { stmt: t[e], nodes: t[e] };
705
- break;
706
- case 51:
707
- this.$ = [t[e]];
708
- break;
709
- case 52:
710
- o.addVertex(t[e - 5][t[e - 5].length - 1], void 0, void 0, void 0, void 0, void 0, void 0, t[e - 4]), this.$ = t[e - 5].concat(t[e]);
711
- break;
712
- case 53:
713
- this.$ = t[e - 4].concat(t[e]);
714
- break;
715
- case 54:
716
- this.$ = t[e];
717
- break;
718
- case 55:
719
- this.$ = t[e - 2], o.setClass(t[e - 2], t[e]);
720
- break;
721
- case 56:
722
- this.$ = t[e - 3], o.addVertex(t[e - 3], t[e - 1], "square");
723
- break;
724
- case 57:
725
- this.$ = t[e - 3], o.addVertex(t[e - 3], t[e - 1], "doublecircle");
726
- break;
727
- case 58:
728
- this.$ = t[e - 5], o.addVertex(t[e - 5], t[e - 2], "circle");
729
- break;
730
- case 59:
731
- this.$ = t[e - 3], o.addVertex(t[e - 3], t[e - 1], "ellipse");
732
- break;
733
- case 60:
734
- this.$ = t[e - 3], o.addVertex(t[e - 3], t[e - 1], "stadium");
735
- break;
736
- case 61:
737
- this.$ = t[e - 3], o.addVertex(t[e - 3], t[e - 1], "subroutine");
738
- break;
739
- case 62:
740
- this.$ = t[e - 7], o.addVertex(t[e - 7], t[e - 1], "rect", void 0, void 0, void 0, Object.fromEntries([[t[e - 5], t[e - 3]]]));
741
- break;
742
- case 63:
743
- this.$ = t[e - 3], o.addVertex(t[e - 3], t[e - 1], "cylinder");
744
- break;
745
- case 64:
746
- this.$ = t[e - 3], o.addVertex(t[e - 3], t[e - 1], "round");
747
- break;
748
- case 65:
749
- this.$ = t[e - 3], o.addVertex(t[e - 3], t[e - 1], "diamond");
750
- break;
751
- case 66:
752
- this.$ = t[e - 5], o.addVertex(t[e - 5], t[e - 2], "hexagon");
753
- break;
754
- case 67:
755
- this.$ = t[e - 3], o.addVertex(t[e - 3], t[e - 1], "odd");
756
- break;
757
- case 68:
758
- this.$ = t[e - 3], o.addVertex(t[e - 3], t[e - 1], "trapezoid");
759
- break;
760
- case 69:
761
- this.$ = t[e - 3], o.addVertex(t[e - 3], t[e - 1], "inv_trapezoid");
762
- break;
763
- case 70:
764
- this.$ = t[e - 3], o.addVertex(t[e - 3], t[e - 1], "lean_right");
765
- break;
766
- case 71:
767
- this.$ = t[e - 3], o.addVertex(t[e - 3], t[e - 1], "lean_left");
768
- break;
769
- case 72:
770
- this.$ = t[e], o.addVertex(t[e]);
771
- break;
772
- case 73:
773
- t[e - 1].text = t[e], this.$ = t[e - 1];
774
- break;
775
- case 74:
776
- case 75:
777
- t[e - 2].text = t[e - 1], this.$ = t[e - 2];
778
- break;
779
- case 76:
780
- this.$ = t[e];
781
- break;
782
- case 77:
783
- var L = o.destructLink(t[e], t[e - 2]);
784
- this.$ = { type: L.type, stroke: L.stroke, length: L.length, text: t[e - 1] };
785
- break;
786
- case 78:
787
- var L = o.destructLink(t[e], t[e - 2]);
788
- this.$ = { type: L.type, stroke: L.stroke, length: L.length, text: t[e - 1], id: t[e - 3] };
789
- break;
790
- case 79:
791
- this.$ = { text: t[e], type: "text" };
792
- break;
793
- case 80:
794
- this.$ = { text: t[e - 1].text + "" + t[e], type: t[e - 1].type };
795
- break;
796
- case 81:
797
- this.$ = { text: t[e], type: "string" };
798
- break;
799
- case 82:
800
- this.$ = { text: t[e], type: "markdown" };
801
- break;
802
- case 83:
803
- var L = o.destructLink(t[e]);
804
- this.$ = { type: L.type, stroke: L.stroke, length: L.length };
805
- break;
806
- case 84:
807
- var L = o.destructLink(t[e]);
808
- this.$ = { type: L.type, stroke: L.stroke, length: L.length, id: t[e - 1] };
809
- break;
810
- case 85:
811
- this.$ = t[e - 1];
812
- break;
813
- case 86:
814
- this.$ = { text: t[e], type: "text" };
815
- break;
816
- case 87:
817
- this.$ = { text: t[e - 1].text + "" + t[e], type: t[e - 1].type };
818
- break;
819
- case 88:
820
- this.$ = { text: t[e], type: "string" };
821
- break;
822
- case 89:
823
- case 104:
824
- this.$ = { text: t[e], type: "markdown" };
825
- break;
826
- case 101:
827
- this.$ = { text: t[e], type: "text" };
828
- break;
829
- case 102:
830
- this.$ = { text: t[e - 1].text + "" + t[e], type: t[e - 1].type };
831
- break;
832
- case 103:
833
- this.$ = { text: t[e], type: "text" };
834
- break;
835
- case 105:
836
- this.$ = t[e - 4], o.addClass(t[e - 2], t[e]);
837
- break;
838
- case 106:
839
- this.$ = t[e - 4], o.setClass(t[e - 2], t[e]);
840
- break;
841
- case 107:
842
- case 115:
843
- this.$ = t[e - 1], o.setClickEvent(t[e - 1], t[e]);
844
- break;
845
- case 108:
846
- case 116:
847
- this.$ = t[e - 3], o.setClickEvent(t[e - 3], t[e - 2]), o.setTooltip(t[e - 3], t[e]);
848
- break;
849
- case 109:
850
- this.$ = t[e - 2], o.setClickEvent(t[e - 2], t[e - 1], t[e]);
851
- break;
852
- case 110:
853
- this.$ = t[e - 4], o.setClickEvent(t[e - 4], t[e - 3], t[e - 2]), o.setTooltip(t[e - 4], t[e]);
854
- break;
855
- case 111:
856
- this.$ = t[e - 2], o.setLink(t[e - 2], t[e]);
857
- break;
858
- case 112:
859
- this.$ = t[e - 4], o.setLink(t[e - 4], t[e - 2]), o.setTooltip(t[e - 4], t[e]);
860
- break;
861
- case 113:
862
- this.$ = t[e - 4], o.setLink(t[e - 4], t[e - 2], t[e]);
863
- break;
864
- case 114:
865
- this.$ = t[e - 6], o.setLink(t[e - 6], t[e - 4], t[e]), o.setTooltip(t[e - 6], t[e - 2]);
866
- break;
867
- case 117:
868
- this.$ = t[e - 1], o.setLink(t[e - 1], t[e]);
869
- break;
870
- case 118:
871
- this.$ = t[e - 3], o.setLink(t[e - 3], t[e - 2]), o.setTooltip(t[e - 3], t[e]);
872
- break;
873
- case 119:
874
- this.$ = t[e - 3], o.setLink(t[e - 3], t[e - 2], t[e]);
875
- break;
876
- case 120:
877
- this.$ = t[e - 5], o.setLink(t[e - 5], t[e - 4], t[e]), o.setTooltip(t[e - 5], t[e - 2]);
878
- break;
879
- case 121:
880
- this.$ = t[e - 4], o.addVertex(t[e - 2], void 0, void 0, t[e]);
881
- break;
882
- case 122:
883
- this.$ = t[e - 4], o.updateLink([t[e - 2]], t[e]);
884
- break;
885
- case 123:
886
- this.$ = t[e - 4], o.updateLink(t[e - 2], t[e]);
887
- break;
888
- case 124:
889
- this.$ = t[e - 8], o.updateLinkInterpolate([t[e - 6]], t[e - 2]), o.updateLink([t[e - 6]], t[e]);
890
- break;
891
- case 125:
892
- this.$ = t[e - 8], o.updateLinkInterpolate(t[e - 6], t[e - 2]), o.updateLink(t[e - 6], t[e]);
893
- break;
894
- case 126:
895
- this.$ = t[e - 6], o.updateLinkInterpolate([t[e - 4]], t[e]);
896
- break;
897
- case 127:
898
- this.$ = t[e - 6], o.updateLinkInterpolate(t[e - 4], t[e]);
899
- break;
900
- case 128:
901
- case 130:
902
- this.$ = [t[e]];
903
- break;
904
- case 129:
905
- case 131:
906
- t[e - 2].push(t[e]), this.$ = t[e - 2];
907
- break;
908
- case 133:
909
- this.$ = t[e - 1] + t[e];
910
- break;
911
- case 181:
912
- this.$ = t[e];
913
- break;
914
- case 182:
915
- this.$ = t[e - 1] + "" + t[e];
916
- break;
917
- case 184:
918
- this.$ = t[e - 1] + "" + t[e];
919
- break;
920
- case 185:
921
- this.$ = { stmt: "dir", value: "TB" };
922
- break;
923
- case 186:
924
- this.$ = { stmt: "dir", value: "BT" };
925
- break;
926
- case 187:
927
- this.$ = { stmt: "dir", value: "RL" };
928
- break;
929
- case 188:
930
- this.$ = { stmt: "dir", value: "LR" };
931
- break;
932
- }
933
- }, "anonymous"),
934
- table: [{ 3: 1, 4: 2, 9: i, 10: r, 12: a }, { 1: [3] }, s(n, l, { 5: 6 }), { 4: 7, 9: i, 10: r, 12: a }, { 4: 8, 9: i, 10: r, 12: a }, { 13: [1, 9], 14: [1, 10] }, { 1: [2, 1], 6: 11, 7: 12, 8: g, 9: c, 10: b, 11: u, 20: 17, 22: 18, 23: 19, 24: 20, 25: 21, 26: 22, 27: A, 33: 24, 34: y, 36: f, 38: k, 42: 28, 43: 38, 44: x, 45: 39, 47: 40, 60: T, 84: d1, 85: W, 86: J, 87: O1, 88: M1, 89: V, 102: w, 105: I, 106: R, 109: N, 111: G, 113: 41, 114: P, 115: O, 116: M, 121: U1, 122: W1, 123: z1, 124: j1 }, s(n, [2, 9]), s(n, [2, 10]), s(n, [2, 11]), { 8: [1, 54], 9: [1, 55], 10: p1, 15: 53, 18: 56 }, s(F, [2, 3]), s(F, [2, 4]), s(F, [2, 5]), s(F, [2, 6]), s(F, [2, 7]), s(F, [2, 8]), { 8: t1, 9: e1, 11: s1, 21: 58, 41: 59, 72: 63, 75: [1, 64], 77: [1, 66], 78: [1, 65] }, { 8: t1, 9: e1, 11: s1, 21: 67 }, { 8: t1, 9: e1, 11: s1, 21: 68 }, { 8: t1, 9: e1, 11: s1, 21: 69 }, { 8: t1, 9: e1, 11: s1, 21: 70 }, { 8: t1, 9: e1, 11: s1, 21: 71 }, { 8: t1, 9: e1, 10: [1, 72], 11: s1, 21: 73 }, s(F, [2, 36]), { 35: [1, 74] }, { 37: [1, 75] }, s(F, [2, 39]), s(C1, [2, 50], { 18: 76, 39: 77, 10: p1, 40: at }), { 10: [1, 79] }, { 10: [1, 80] }, { 10: [1, 81] }, { 10: [1, 82] }, { 14: D1, 44: S1, 60: x1, 80: [1, 86], 89: T1, 95: [1, 83], 97: [1, 84], 101: 85, 105: y1, 106: F1, 109: _1, 111: B1, 114: v1, 115: L1, 116: V1, 120: 87 }, s(F, [2, 185]), s(F, [2, 186]), s(F, [2, 187]), s(F, [2, 188]), s(A1, [2, 51]), s(A1, [2, 54], { 46: [1, 99] }), s(z, [2, 72], { 113: 112, 29: [1, 100], 44: x, 48: [1, 101], 50: [1, 102], 52: [1, 103], 54: [1, 104], 56: [1, 105], 58: [1, 106], 60: T, 63: [1, 107], 65: [1, 108], 67: [1, 109], 68: [1, 110], 70: [1, 111], 89: V, 102: w, 105: I, 106: R, 109: N, 111: G, 114: P, 115: O, 116: M }), s(q, [2, 181]), s(q, [2, 142]), s(q, [2, 143]), s(q, [2, 144]), s(q, [2, 145]), s(q, [2, 146]), s(q, [2, 147]), s(q, [2, 148]), s(q, [2, 149]), s(q, [2, 150]), s(q, [2, 151]), s(q, [2, 152]), s(n, [2, 12]), s(n, [2, 18]), s(n, [2, 19]), { 9: [1, 113] }, s(nt, [2, 26], { 18: 114, 10: p1 }), s(F, [2, 27]), { 42: 115, 43: 38, 44: x, 45: 39, 47: 40, 60: T, 89: V, 102: w, 105: I, 106: R, 109: N, 111: G, 113: 41, 114: P, 115: O, 116: M }, s(F, [2, 40]), s(F, [2, 41]), s(F, [2, 42]), s(w1, [2, 76], { 73: 116, 62: [1, 118], 74: [1, 117] }), { 76: 119, 79: 120, 80: ut, 81: ot, 116: K1, 119: Y1 }, { 75: [1, 125], 77: [1, 126] }, s(lt, [2, 83]), s(F, [2, 28]), s(F, [2, 29]), s(F, [2, 30]), s(F, [2, 31]), s(F, [2, 32]), { 10: ct, 12: ht, 14: dt, 27: pt, 28: 127, 32: ft, 44: gt, 60: bt, 75: At, 80: [1, 129], 81: [1, 130], 83: 140, 84: kt, 85: mt, 86: Et, 87: Ct, 88: Dt, 89: St, 90: xt, 91: 128, 105: Tt, 109: yt, 111: Ft, 114: _t, 115: Bt, 116: vt }, s(Q1, l, { 5: 153 }), s(F, [2, 37]), s(F, [2, 38]), s(C1, [2, 48], { 44: Lt }), s(C1, [2, 49], { 18: 155, 10: p1, 40: Vt }), s(A1, [2, 44]), { 44: x, 47: 157, 60: T, 89: V, 102: w, 105: I, 106: R, 109: N, 111: G, 113: 41, 114: P, 115: O, 116: M }, { 102: [1, 158], 103: 159, 105: [1, 160] }, { 44: x, 47: 161, 60: T, 89: V, 102: w, 105: I, 106: R, 109: N, 111: G, 113: 41, 114: P, 115: O, 116: M }, { 44: x, 47: 162, 60: T, 89: V, 102: w, 105: I, 106: R, 109: N, 111: G, 113: 41, 114: P, 115: O, 116: M }, s(v, [2, 107], { 10: [1, 163], 96: [1, 164] }), { 80: [1, 165] }, s(v, [2, 115], { 120: 167, 10: [1, 166], 14: D1, 44: S1, 60: x1, 89: T1, 105: y1, 106: F1, 109: _1, 111: B1, 114: v1, 115: L1, 116: V1 }), s(v, [2, 117], { 10: [1, 168] }), s(H, [2, 183]), s(H, [2, 170]), s(H, [2, 171]), s(H, [2, 172]), s(H, [2, 173]), s(H, [2, 174]), s(H, [2, 175]), s(H, [2, 176]), s(H, [2, 177]), s(H, [2, 178]), s(H, [2, 179]), s(H, [2, 180]), { 44: x, 47: 169, 60: T, 89: V, 102: w, 105: I, 106: R, 109: N, 111: G, 113: 41, 114: P, 115: O, 116: M }, { 30: 170, 67: E, 80: j, 81: K, 82: 171, 116: C, 117: D, 118: S }, { 30: 178, 67: E, 80: j, 81: K, 82: 171, 116: C, 117: D, 118: S }, { 30: 180, 50: [1, 179], 67: E, 80: j, 81: K, 82: 171, 116: C, 117: D, 118: S }, { 30: 181, 67: E, 80: j, 81: K, 82: 171, 116: C, 117: D, 118: S }, { 30: 182, 67: E, 80: j, 81: K, 82: 171, 116: C, 117: D, 118: S }, { 30: 183, 67: E, 80: j, 81: K, 82: 171, 116: C, 117: D, 118: S }, { 109: [1, 184] }, { 30: 185, 67: E, 80: j, 81: K, 82: 171, 116: C, 117: D, 118: S }, { 30: 186, 65: [1, 187], 67: E, 80: j, 81: K, 82: 171, 116: C, 117: D, 118: S }, { 30: 188, 67: E, 80: j, 81: K, 82: 171, 116: C, 117: D, 118: S }, { 30: 189, 67: E, 80: j, 81: K, 82: 171, 116: C, 117: D, 118: S }, { 30: 190, 67: E, 80: j, 81: K, 82: 171, 116: C, 117: D, 118: S }, s(q, [2, 182]), s(n, [2, 20]), s(nt, [2, 25]), s(C1, [2, 46], { 39: 191, 18: 192, 10: p1, 40: at }), s(w1, [2, 73], { 10: [1, 193] }), { 10: [1, 194] }, { 30: 195, 67: E, 80: j, 81: K, 82: 171, 116: C, 117: D, 118: S }, { 77: [1, 196], 79: 197, 116: K1, 119: Y1 }, s(I1, [2, 79]), s(I1, [2, 81]), s(I1, [2, 82]), s(I1, [2, 168]), s(I1, [2, 169]), { 76: 198, 79: 120, 80: ut, 81: ot, 116: K1, 119: Y1 }, s(lt, [2, 84]), { 8: t1, 9: e1, 10: ct, 11: s1, 12: ht, 14: dt, 21: 200, 27: pt, 29: [1, 199], 32: ft, 44: gt, 60: bt, 75: At, 83: 140, 84: kt, 85: mt, 86: Et, 87: Ct, 88: Dt, 89: St, 90: xt, 91: 201, 105: Tt, 109: yt, 111: Ft, 114: _t, 115: Bt, 116: vt }, s(_, [2, 101]), s(_, [2, 103]), s(_, [2, 104]), s(_, [2, 157]), s(_, [2, 158]), s(_, [2, 159]), s(_, [2, 160]), s(_, [2, 161]), s(_, [2, 162]), s(_, [2, 163]), s(_, [2, 164]), s(_, [2, 165]), s(_, [2, 166]), s(_, [2, 167]), s(_, [2, 90]), s(_, [2, 91]), s(_, [2, 92]), s(_, [2, 93]), s(_, [2, 94]), s(_, [2, 95]), s(_, [2, 96]), s(_, [2, 97]), s(_, [2, 98]), s(_, [2, 99]), s(_, [2, 100]), { 6: 11, 7: 12, 8: g, 9: c, 10: b, 11: u, 20: 17, 22: 18, 23: 19, 24: 20, 25: 21, 26: 22, 27: A, 32: [1, 202], 33: 24, 34: y, 36: f, 38: k, 42: 28, 43: 38, 44: x, 45: 39, 47: 40, 60: T, 84: d1, 85: W, 86: J, 87: O1, 88: M1, 89: V, 102: w, 105: I, 106: R, 109: N, 111: G, 113: 41, 114: P, 115: O, 116: M, 121: U1, 122: W1, 123: z1, 124: j1 }, { 10: p1, 18: 203 }, { 44: [1, 204] }, s(A1, [2, 43]), { 10: [1, 205], 44: x, 60: T, 89: V, 102: w, 105: I, 106: R, 109: N, 111: G, 113: 112, 114: P, 115: O, 116: M }, { 10: [1, 206] }, { 10: [1, 207], 106: [1, 208] }, s(wt, [2, 128]), { 10: [1, 209], 44: x, 60: T, 89: V, 102: w, 105: I, 106: R, 109: N, 111: G, 113: 112, 114: P, 115: O, 116: M }, { 10: [1, 210], 44: x, 60: T, 89: V, 102: w, 105: I, 106: R, 109: N, 111: G, 113: 112, 114: P, 115: O, 116: M }, { 80: [1, 211] }, s(v, [2, 109], { 10: [1, 212] }), s(v, [2, 111], { 10: [1, 213] }), { 80: [1, 214] }, s(H, [2, 184]), { 80: [1, 215], 98: [1, 216] }, s(A1, [2, 55], { 113: 112, 44: x, 60: T, 89: V, 102: w, 105: I, 106: R, 109: N, 111: G, 114: P, 115: O, 116: M }), { 31: [1, 217], 67: E, 82: 218, 116: C, 117: D, 118: S }, s(f1, [2, 86]), s(f1, [2, 88]), s(f1, [2, 89]), s(f1, [2, 153]), s(f1, [2, 154]), s(f1, [2, 155]), s(f1, [2, 156]), { 49: [1, 219], 67: E, 82: 218, 116: C, 117: D, 118: S }, { 30: 220, 67: E, 80: j, 81: K, 82: 171, 116: C, 117: D, 118: S }, { 51: [1, 221], 67: E, 82: 218, 116: C, 117: D, 118: S }, { 53: [1, 222], 67: E, 82: 218, 116: C, 117: D, 118: S }, { 55: [1, 223], 67: E, 82: 218, 116: C, 117: D, 118: S }, { 57: [1, 224], 67: E, 82: 218, 116: C, 117: D, 118: S }, { 60: [1, 225] }, { 64: [1, 226], 67: E, 82: 218, 116: C, 117: D, 118: S }, { 66: [1, 227], 67: E, 82: 218, 116: C, 117: D, 118: S }, { 30: 228, 67: E, 80: j, 81: K, 82: 171, 116: C, 117: D, 118: S }, { 31: [1, 229], 67: E, 82: 218, 116: C, 117: D, 118: S }, { 67: E, 69: [1, 230], 71: [1, 231], 82: 218, 116: C, 117: D, 118: S }, { 67: E, 69: [1, 233], 71: [1, 232], 82: 218, 116: C, 117: D, 118: S }, s(C1, [2, 45], { 18: 155, 10: p1, 40: Vt }), s(C1, [2, 47], { 44: Lt }), s(w1, [2, 75]), s(w1, [2, 74]), { 62: [1, 234], 67: E, 82: 218, 116: C, 117: D, 118: S }, s(w1, [2, 77]), s(I1, [2, 80]), { 77: [1, 235], 79: 197, 116: K1, 119: Y1 }, { 30: 236, 67: E, 80: j, 81: K, 82: 171, 116: C, 117: D, 118: S }, s(Q1, l, { 5: 237 }), s(_, [2, 102]), s(F, [2, 35]), { 43: 238, 44: x, 45: 39, 47: 40, 60: T, 89: V, 102: w, 105: I, 106: R, 109: N, 111: G, 113: 41, 114: P, 115: O, 116: M }, { 10: p1, 18: 239 }, { 10: i1, 60: r1, 84: a1, 92: 240, 105: n1, 107: 241, 108: 242, 109: u1, 110: o1, 111: l1, 112: c1 }, { 10: i1, 60: r1, 84: a1, 92: 251, 104: [1, 252], 105: n1, 107: 241, 108: 242, 109: u1, 110: o1, 111: l1, 112: c1 }, { 10: i1, 60: r1, 84: a1, 92: 253, 104: [1, 254], 105: n1, 107: 241, 108: 242, 109: u1, 110: o1, 111: l1, 112: c1 }, { 105: [1, 255] }, { 10: i1, 60: r1, 84: a1, 92: 256, 105: n1, 107: 241, 108: 242, 109: u1, 110: o1, 111: l1, 112: c1 }, { 44: x, 47: 257, 60: T, 89: V, 102: w, 105: I, 106: R, 109: N, 111: G, 113: 41, 114: P, 115: O, 116: M }, s(v, [2, 108]), { 80: [1, 258] }, { 80: [1, 259], 98: [1, 260] }, s(v, [2, 116]), s(v, [2, 118], { 10: [1, 261] }), s(v, [2, 119]), s(z, [2, 56]), s(f1, [2, 87]), s(z, [2, 57]), { 51: [1, 262], 67: E, 82: 218, 116: C, 117: D, 118: S }, s(z, [2, 64]), s(z, [2, 59]), s(z, [2, 60]), s(z, [2, 61]), { 109: [1, 263] }, s(z, [2, 63]), s(z, [2, 65]), { 66: [1, 264], 67: E, 82: 218, 116: C, 117: D, 118: S }, s(z, [2, 67]), s(z, [2, 68]), s(z, [2, 70]), s(z, [2, 69]), s(z, [2, 71]), s([10, 44, 60, 89, 102, 105, 106, 109, 111, 114, 115, 116], [2, 85]), s(w1, [2, 78]), { 31: [1, 265], 67: E, 82: 218, 116: C, 117: D, 118: S }, { 6: 11, 7: 12, 8: g, 9: c, 10: b, 11: u, 20: 17, 22: 18, 23: 19, 24: 20, 25: 21, 26: 22, 27: A, 32: [1, 266], 33: 24, 34: y, 36: f, 38: k, 42: 28, 43: 38, 44: x, 45: 39, 47: 40, 60: T, 84: d1, 85: W, 86: J, 87: O1, 88: M1, 89: V, 102: w, 105: I, 106: R, 109: N, 111: G, 113: 41, 114: P, 115: O, 116: M, 121: U1, 122: W1, 123: z1, 124: j1 }, s(A1, [2, 53]), { 43: 267, 44: x, 45: 39, 47: 40, 60: T, 89: V, 102: w, 105: I, 106: R, 109: N, 111: G, 113: 41, 114: P, 115: O, 116: M }, s(v, [2, 121], { 106: R1 }), s(It, [2, 130], { 108: 269, 10: i1, 60: r1, 84: a1, 105: n1, 109: u1, 110: o1, 111: l1, 112: c1 }), s(Z, [2, 132]), s(Z, [2, 134]), s(Z, [2, 135]), s(Z, [2, 136]), s(Z, [2, 137]), s(Z, [2, 138]), s(Z, [2, 139]), s(Z, [2, 140]), s(Z, [2, 141]), s(v, [2, 122], { 106: R1 }), { 10: [1, 270] }, s(v, [2, 123], { 106: R1 }), { 10: [1, 271] }, s(wt, [2, 129]), s(v, [2, 105], { 106: R1 }), s(v, [2, 106], { 113: 112, 44: x, 60: T, 89: V, 102: w, 105: I, 106: R, 109: N, 111: G, 114: P, 115: O, 116: M }), s(v, [2, 110]), s(v, [2, 112], { 10: [1, 272] }), s(v, [2, 113]), { 98: [1, 273] }, { 51: [1, 274] }, { 62: [1, 275] }, { 66: [1, 276] }, { 8: t1, 9: e1, 11: s1, 21: 277 }, s(F, [2, 34]), s(A1, [2, 52]), { 10: i1, 60: r1, 84: a1, 105: n1, 107: 278, 108: 242, 109: u1, 110: o1, 111: l1, 112: c1 }, s(Z, [2, 133]), { 14: D1, 44: S1, 60: x1, 89: T1, 101: 279, 105: y1, 106: F1, 109: _1, 111: B1, 114: v1, 115: L1, 116: V1, 120: 87 }, { 14: D1, 44: S1, 60: x1, 89: T1, 101: 280, 105: y1, 106: F1, 109: _1, 111: B1, 114: v1, 115: L1, 116: V1, 120: 87 }, { 98: [1, 281] }, s(v, [2, 120]), s(z, [2, 58]), { 30: 282, 67: E, 80: j, 81: K, 82: 171, 116: C, 117: D, 118: S }, s(z, [2, 66]), s(Q1, l, { 5: 283 }), s(It, [2, 131], { 108: 269, 10: i1, 60: r1, 84: a1, 105: n1, 109: u1, 110: o1, 111: l1, 112: c1 }), s(v, [2, 126], { 120: 167, 10: [1, 284], 14: D1, 44: S1, 60: x1, 89: T1, 105: y1, 106: F1, 109: _1, 111: B1, 114: v1, 115: L1, 116: V1 }), s(v, [2, 127], { 120: 167, 10: [1, 285], 14: D1, 44: S1, 60: x1, 89: T1, 105: y1, 106: F1, 109: _1, 111: B1, 114: v1, 115: L1, 116: V1 }), s(v, [2, 114]), { 31: [1, 286], 67: E, 82: 218, 116: C, 117: D, 118: S }, { 6: 11, 7: 12, 8: g, 9: c, 10: b, 11: u, 20: 17, 22: 18, 23: 19, 24: 20, 25: 21, 26: 22, 27: A, 32: [1, 287], 33: 24, 34: y, 36: f, 38: k, 42: 28, 43: 38, 44: x, 45: 39, 47: 40, 60: T, 84: d1, 85: W, 86: J, 87: O1, 88: M1, 89: V, 102: w, 105: I, 106: R, 109: N, 111: G, 113: 41, 114: P, 115: O, 116: M, 121: U1, 122: W1, 123: z1, 124: j1 }, { 10: i1, 60: r1, 84: a1, 92: 288, 105: n1, 107: 241, 108: 242, 109: u1, 110: o1, 111: l1, 112: c1 }, { 10: i1, 60: r1, 84: a1, 92: 289, 105: n1, 107: 241, 108: 242, 109: u1, 110: o1, 111: l1, 112: c1 }, s(z, [2, 62]), s(F, [2, 33]), s(v, [2, 124], { 106: R1 }), s(v, [2, 125], { 106: R1 })],
935
- defaultActions: {},
936
- parseError: /* @__PURE__ */ m(function(h, d) {
937
- if (d.recoverable)
938
- this.trace(h);
939
- else {
940
- var p = new Error(h);
941
- throw p.hash = d, p;
942
- }
943
- }, "parseError"),
944
- parse: /* @__PURE__ */ m(function(h) {
945
- var d = this, p = [0], o = [], B = [null], t = [], P1 = this.table, e = "", L = 0, Rt = 0, zt = 2, Nt = 1, jt = t.slice.call(arguments, 1), U = Object.create(this.lexer), k1 = { yy: {} };
946
- for (var Z1 in this.yy)
947
- Object.prototype.hasOwnProperty.call(this.yy, Z1) && (k1.yy[Z1] = this.yy[Z1]);
948
- U.setInput(h, k1.yy), k1.yy.lexer = U, k1.yy.parser = this, typeof U.yylloc > "u" && (U.yylloc = {});
949
- var $1 = U.yylloc;
950
- t.push($1);
951
- var Kt = U.options && U.options.ranges;
952
- typeof k1.yy.parseError == "function" ? this.parseError = k1.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
953
- function Yt(X) {
954
- p.length = p.length - 2 * X, B.length = B.length - X, t.length = t.length - X;
955
- }
956
- m(Yt, "popStack");
957
- function Gt() {
958
- var X;
959
- return X = o.pop() || U.lex() || Nt, typeof X != "number" && (X instanceof Array && (o = X, X = o.pop()), X = d.symbols_[X] || X), X;
960
- }
961
- m(Gt, "lex");
962
- for (var Y, m1, Q, tt, N1 = {}, H1, h1, Pt, X1; ; ) {
963
- if (m1 = p[p.length - 1], this.defaultActions[m1] ? Q = this.defaultActions[m1] : ((Y === null || typeof Y > "u") && (Y = Gt()), Q = P1[m1] && P1[m1][Y]), typeof Q > "u" || !Q.length || !Q[0]) {
964
- var et = "";
965
- X1 = [];
966
- for (H1 in P1[m1])
967
- this.terminals_[H1] && H1 > zt && X1.push("'" + this.terminals_[H1] + "'");
968
- U.showPosition ? et = "Parse error on line " + (L + 1) + `:
969
- ` + U.showPosition() + `
970
- Expecting ` + X1.join(", ") + ", got '" + (this.terminals_[Y] || Y) + "'" : et = "Parse error on line " + (L + 1) + ": Unexpected " + (Y == Nt ? "end of input" : "'" + (this.terminals_[Y] || Y) + "'"), this.parseError(et, {
971
- text: U.match,
972
- token: this.terminals_[Y] || Y,
973
- line: U.yylineno,
974
- loc: $1,
975
- expected: X1
976
- });
977
- }
978
- if (Q[0] instanceof Array && Q.length > 1)
979
- throw new Error("Parse Error: multiple actions possible at state: " + m1 + ", token: " + Y);
980
- switch (Q[0]) {
981
- case 1:
982
- p.push(Y), B.push(U.yytext), t.push(U.yylloc), p.push(Q[1]), Y = null, Rt = U.yyleng, e = U.yytext, L = U.yylineno, $1 = U.yylloc;
983
- break;
984
- case 2:
985
- if (h1 = this.productions_[Q[1]][1], N1.$ = B[B.length - h1], N1._$ = {
986
- first_line: t[t.length - (h1 || 1)].first_line,
987
- last_line: t[t.length - 1].last_line,
988
- first_column: t[t.length - (h1 || 1)].first_column,
989
- last_column: t[t.length - 1].last_column
990
- }, Kt && (N1._$.range = [
991
- t[t.length - (h1 || 1)].range[0],
992
- t[t.length - 1].range[1]
993
- ]), tt = this.performAction.apply(N1, [
994
- e,
995
- Rt,
996
- L,
997
- k1.yy,
998
- Q[1],
999
- B,
1000
- t
1001
- ].concat(jt)), typeof tt < "u")
1002
- return tt;
1003
- h1 && (p = p.slice(0, -1 * h1 * 2), B = B.slice(0, -1 * h1), t = t.slice(0, -1 * h1)), p.push(this.productions_[Q[1]][0]), B.push(N1.$), t.push(N1._$), Pt = P1[p[p.length - 2]][p[p.length - 1]], p.push(Pt);
1004
- break;
1005
- case 3:
1006
- return !0;
1007
- }
1008
- }
1009
- return !0;
1010
- }, "parse")
1011
- }, Wt = /* @__PURE__ */ (function() {
1012
- var g1 = {
1013
- EOF: 1,
1014
- parseError: /* @__PURE__ */ m(function(d, p) {
1015
- if (this.yy.parser)
1016
- this.yy.parser.parseError(d, p);
1017
- else
1018
- throw new Error(d);
1019
- }, "parseError"),
1020
- // resets the lexer, sets new input
1021
- setInput: /* @__PURE__ */ m(function(h, d) {
1022
- return this.yy = d || this.yy || {}, this._input = h, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
1023
- first_line: 1,
1024
- first_column: 0,
1025
- last_line: 1,
1026
- last_column: 0
1027
- }, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
1028
- }, "setInput"),
1029
- // consumes and returns one char from the input
1030
- input: /* @__PURE__ */ m(function() {
1031
- var h = this._input[0];
1032
- this.yytext += h, this.yyleng++, this.offset++, this.match += h, this.matched += h;
1033
- var d = h.match(/(?:\r\n?|\n).*/g);
1034
- return d ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), h;
1035
- }, "input"),
1036
- // unshifts one char (or a string) into the input
1037
- unput: /* @__PURE__ */ m(function(h) {
1038
- var d = h.length, p = h.split(/(?:\r\n?|\n)/g);
1039
- this._input = h + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - d), this.offset -= d;
1040
- var o = this.match.split(/(?:\r\n?|\n)/g);
1041
- this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), p.length - 1 && (this.yylineno -= p.length - 1);
1042
- var B = this.yylloc.range;
1043
- return this.yylloc = {
1044
- first_line: this.yylloc.first_line,
1045
- last_line: this.yylineno + 1,
1046
- first_column: this.yylloc.first_column,
1047
- last_column: p ? (p.length === o.length ? this.yylloc.first_column : 0) + o[o.length - p.length].length - p[0].length : this.yylloc.first_column - d
1048
- }, this.options.ranges && (this.yylloc.range = [B[0], B[0] + this.yyleng - d]), this.yyleng = this.yytext.length, this;
1049
- }, "unput"),
1050
- // When called from action, caches matched text and appends it on next action
1051
- more: /* @__PURE__ */ m(function() {
1052
- return this._more = !0, this;
1053
- }, "more"),
1054
- // When called from action, signals the lexer that this rule fails to match the input, so the next matching rule (regex) should be tested instead.
1055
- reject: /* @__PURE__ */ m(function() {
1056
- if (this.options.backtrack_lexer)
1057
- this._backtrack = !0;
1058
- else
1059
- 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).
1060
- ` + this.showPosition(), {
1061
- text: "",
1062
- token: null,
1063
- line: this.yylineno
1064
- });
1065
- return this;
1066
- }, "reject"),
1067
- // retain first n characters of the match
1068
- less: /* @__PURE__ */ m(function(h) {
1069
- this.unput(this.match.slice(h));
1070
- }, "less"),
1071
- // displays already matched input, i.e. for error messages
1072
- pastInput: /* @__PURE__ */ m(function() {
1073
- var h = this.matched.substr(0, this.matched.length - this.match.length);
1074
- return (h.length > 20 ? "..." : "") + h.substr(-20).replace(/\n/g, "");
1075
- }, "pastInput"),
1076
- // displays upcoming input, i.e. for error messages
1077
- upcomingInput: /* @__PURE__ */ m(function() {
1078
- var h = this.match;
1079
- return h.length < 20 && (h += this._input.substr(0, 20 - h.length)), (h.substr(0, 20) + (h.length > 20 ? "..." : "")).replace(/\n/g, "");
1080
- }, "upcomingInput"),
1081
- // displays the character position where the lexing error occurred, i.e. for error messages
1082
- showPosition: /* @__PURE__ */ m(function() {
1083
- var h = this.pastInput(), d = new Array(h.length + 1).join("-");
1084
- return h + this.upcomingInput() + `
1085
- ` + d + "^";
1086
- }, "showPosition"),
1087
- // test the lexed token: return FALSE when not a match, otherwise return token
1088
- test_match: /* @__PURE__ */ m(function(h, d) {
1089
- var p, o, B;
1090
- if (this.options.backtrack_lexer && (B = {
1091
- yylineno: this.yylineno,
1092
- yylloc: {
1093
- first_line: this.yylloc.first_line,
1094
- last_line: this.last_line,
1095
- first_column: this.yylloc.first_column,
1096
- last_column: this.yylloc.last_column
1097
- },
1098
- yytext: this.yytext,
1099
- match: this.match,
1100
- matches: this.matches,
1101
- matched: this.matched,
1102
- yyleng: this.yyleng,
1103
- offset: this.offset,
1104
- _more: this._more,
1105
- _input: this._input,
1106
- yy: this.yy,
1107
- conditionStack: this.conditionStack.slice(0),
1108
- done: this.done
1109
- }, this.options.ranges && (B.yylloc.range = this.yylloc.range.slice(0))), o = h[0].match(/(?:\r\n?|\n).*/g), o && (this.yylineno += o.length), this.yylloc = {
1110
- first_line: this.yylloc.last_line,
1111
- last_line: this.yylineno + 1,
1112
- first_column: this.yylloc.last_column,
1113
- last_column: o ? o[o.length - 1].length - o[o.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + h[0].length
1114
- }, this.yytext += h[0], this.match += h[0], this.matches = h, 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(h[0].length), this.matched += h[0], p = this.performAction.call(this, this.yy, this, d, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), p)
1115
- return p;
1116
- if (this._backtrack) {
1117
- for (var t in B)
1118
- this[t] = B[t];
1119
- return !1;
1120
- }
1121
- return !1;
1122
- }, "test_match"),
1123
- // return next match in input
1124
- next: /* @__PURE__ */ m(function() {
1125
- if (this.done)
1126
- return this.EOF;
1127
- this._input || (this.done = !0);
1128
- var h, d, p, o;
1129
- this._more || (this.yytext = "", this.match = "");
1130
- for (var B = this._currentRules(), t = 0; t < B.length; t++)
1131
- if (p = this._input.match(this.rules[B[t]]), p && (!d || p[0].length > d[0].length)) {
1132
- if (d = p, o = t, this.options.backtrack_lexer) {
1133
- if (h = this.test_match(p, B[t]), h !== !1)
1134
- return h;
1135
- if (this._backtrack) {
1136
- d = !1;
1137
- continue;
1138
- } else
1139
- return !1;
1140
- } else if (!this.options.flex)
1141
- break;
1142
- }
1143
- return d ? (h = this.test_match(d, B[o]), h !== !1 ? h : !1) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
1144
- ` + this.showPosition(), {
1145
- text: "",
1146
- token: null,
1147
- line: this.yylineno
1148
- });
1149
- }, "next"),
1150
- // return next match that has a token
1151
- lex: /* @__PURE__ */ m(function() {
1152
- var d = this.next();
1153
- return d || this.lex();
1154
- }, "lex"),
1155
- // activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
1156
- begin: /* @__PURE__ */ m(function(d) {
1157
- this.conditionStack.push(d);
1158
- }, "begin"),
1159
- // pop the previously active lexer condition state off the condition stack
1160
- popState: /* @__PURE__ */ m(function() {
1161
- var d = this.conditionStack.length - 1;
1162
- return d > 0 ? this.conditionStack.pop() : this.conditionStack[0];
1163
- }, "popState"),
1164
- // produce the lexer rule set which is active for the currently active lexer condition state
1165
- _currentRules: /* @__PURE__ */ m(function() {
1166
- return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
1167
- }, "_currentRules"),
1168
- // return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
1169
- topState: /* @__PURE__ */ m(function(d) {
1170
- return d = this.conditionStack.length - 1 - Math.abs(d || 0), d >= 0 ? this.conditionStack[d] : "INITIAL";
1171
- }, "topState"),
1172
- // alias for begin(condition)
1173
- pushState: /* @__PURE__ */ m(function(d) {
1174
- this.begin(d);
1175
- }, "pushState"),
1176
- // return the number of states currently on the stack
1177
- stateStackSize: /* @__PURE__ */ m(function() {
1178
- return this.conditionStack.length;
1179
- }, "stateStackSize"),
1180
- options: {},
1181
- performAction: /* @__PURE__ */ m(function(d, p, o, B) {
1182
- switch (o) {
1183
- case 0:
1184
- return this.begin("acc_title"), 34;
1185
- case 1:
1186
- return this.popState(), "acc_title_value";
1187
- case 2:
1188
- return this.begin("acc_descr"), 36;
1189
- case 3:
1190
- return this.popState(), "acc_descr_value";
1191
- case 4:
1192
- this.begin("acc_descr_multiline");
1193
- break;
1194
- case 5:
1195
- this.popState();
1196
- break;
1197
- case 6:
1198
- return "acc_descr_multiline_value";
1199
- case 7:
1200
- return this.pushState("shapeData"), p.yytext = "", 40;
1201
- case 8:
1202
- return this.pushState("shapeDataStr"), 40;
1203
- case 9:
1204
- return this.popState(), 40;
1205
- case 10:
1206
- const t = /\n\s*/g;
1207
- return p.yytext = p.yytext.replace(t, "<br/>"), 40;
1208
- case 11:
1209
- return 40;
1210
- case 12:
1211
- this.popState();
1212
- break;
1213
- case 13:
1214
- this.begin("callbackname");
1215
- break;
1216
- case 14:
1217
- this.popState();
1218
- break;
1219
- case 15:
1220
- this.popState(), this.begin("callbackargs");
1221
- break;
1222
- case 16:
1223
- return 95;
1224
- case 17:
1225
- this.popState();
1226
- break;
1227
- case 18:
1228
- return 96;
1229
- case 19:
1230
- return "MD_STR";
1231
- case 20:
1232
- this.popState();
1233
- break;
1234
- case 21:
1235
- this.begin("md_string");
1236
- break;
1237
- case 22:
1238
- return "STR";
1239
- case 23:
1240
- this.popState();
1241
- break;
1242
- case 24:
1243
- this.pushState("string");
1244
- break;
1245
- case 25:
1246
- return 84;
1247
- case 26:
1248
- return 102;
1249
- case 27:
1250
- return 85;
1251
- case 28:
1252
- return 104;
1253
- case 29:
1254
- return 86;
1255
- case 30:
1256
- return 87;
1257
- case 31:
1258
- return 97;
1259
- case 32:
1260
- this.begin("click");
1261
- break;
1262
- case 33:
1263
- this.popState();
1264
- break;
1265
- case 34:
1266
- return 88;
1267
- case 35:
1268
- return d.lex.firstGraph() && this.begin("dir"), 12;
1269
- case 36:
1270
- return d.lex.firstGraph() && this.begin("dir"), 12;
1271
- case 37:
1272
- return d.lex.firstGraph() && this.begin("dir"), 12;
1273
- case 38:
1274
- return 27;
1275
- case 39:
1276
- return 32;
1277
- case 40:
1278
- return 98;
1279
- case 41:
1280
- return 98;
1281
- case 42:
1282
- return 98;
1283
- case 43:
1284
- return 98;
1285
- case 44:
1286
- return this.popState(), 13;
1287
- case 45:
1288
- return this.popState(), 14;
1289
- case 46:
1290
- return this.popState(), 14;
1291
- case 47:
1292
- return this.popState(), 14;
1293
- case 48:
1294
- return this.popState(), 14;
1295
- case 49:
1296
- return this.popState(), 14;
1297
- case 50:
1298
- return this.popState(), 14;
1299
- case 51:
1300
- return this.popState(), 14;
1301
- case 52:
1302
- return this.popState(), 14;
1303
- case 53:
1304
- return this.popState(), 14;
1305
- case 54:
1306
- return this.popState(), 14;
1307
- case 55:
1308
- return 121;
1309
- case 56:
1310
- return 122;
1311
- case 57:
1312
- return 123;
1313
- case 58:
1314
- return 124;
1315
- case 59:
1316
- return 78;
1317
- case 60:
1318
- return 105;
1319
- case 61:
1320
- return 111;
1321
- case 62:
1322
- return 46;
1323
- case 63:
1324
- return 60;
1325
- case 64:
1326
- return 44;
1327
- case 65:
1328
- return 8;
1329
- case 66:
1330
- return 106;
1331
- case 67:
1332
- return 115;
1333
- case 68:
1334
- return this.popState(), 77;
1335
- case 69:
1336
- return this.pushState("edgeText"), 75;
1337
- case 70:
1338
- return 119;
1339
- case 71:
1340
- return this.popState(), 77;
1341
- case 72:
1342
- return this.pushState("thickEdgeText"), 75;
1343
- case 73:
1344
- return 119;
1345
- case 74:
1346
- return this.popState(), 77;
1347
- case 75:
1348
- return this.pushState("dottedEdgeText"), 75;
1349
- case 76:
1350
- return 119;
1351
- case 77:
1352
- return 77;
1353
- case 78:
1354
- return this.popState(), 53;
1355
- case 79:
1356
- return "TEXT";
1357
- case 80:
1358
- return this.pushState("ellipseText"), 52;
1359
- case 81:
1360
- return this.popState(), 55;
1361
- case 82:
1362
- return this.pushState("text"), 54;
1363
- case 83:
1364
- return this.popState(), 57;
1365
- case 84:
1366
- return this.pushState("text"), 56;
1367
- case 85:
1368
- return 58;
1369
- case 86:
1370
- return this.pushState("text"), 67;
1371
- case 87:
1372
- return this.popState(), 64;
1373
- case 88:
1374
- return this.pushState("text"), 63;
1375
- case 89:
1376
- return this.popState(), 49;
1377
- case 90:
1378
- return this.pushState("text"), 48;
1379
- case 91:
1380
- return this.popState(), 69;
1381
- case 92:
1382
- return this.popState(), 71;
1383
- case 93:
1384
- return 117;
1385
- case 94:
1386
- return this.pushState("trapText"), 68;
1387
- case 95:
1388
- return this.pushState("trapText"), 70;
1389
- case 96:
1390
- return 118;
1391
- case 97:
1392
- return 67;
1393
- case 98:
1394
- return 90;
1395
- case 99:
1396
- return "SEP";
1397
- case 100:
1398
- return 89;
1399
- case 101:
1400
- return 115;
1401
- case 102:
1402
- return 111;
1403
- case 103:
1404
- return 44;
1405
- case 104:
1406
- return 109;
1407
- case 105:
1408
- return 114;
1409
- case 106:
1410
- return 116;
1411
- case 107:
1412
- return this.popState(), 62;
1413
- case 108:
1414
- return this.pushState("text"), 62;
1415
- case 109:
1416
- return this.popState(), 51;
1417
- case 110:
1418
- return this.pushState("text"), 50;
1419
- case 111:
1420
- return this.popState(), 31;
1421
- case 112:
1422
- return this.pushState("text"), 29;
1423
- case 113:
1424
- return this.popState(), 66;
1425
- case 114:
1426
- return this.pushState("text"), 65;
1427
- case 115:
1428
- return "TEXT";
1429
- case 116:
1430
- return "QUOTE";
1431
- case 117:
1432
- return 9;
1433
- case 118:
1434
- return 10;
1435
- case 119:
1436
- return 11;
1437
- }
1438
- }, "anonymous"),
1439
- rules: [/^(?:accTitle\s*:\s*)/, /^(?:(?!\n||)*[^\n]*)/, /^(?:accDescr\s*:\s*)/, /^(?:(?!\n||)*[^\n]*)/, /^(?:accDescr\s*\{\s*)/, /^(?:[\}])/, /^(?:[^\}]*)/, /^(?:@\{)/, /^(?:["])/, /^(?:["])/, /^(?:[^\"]+)/, /^(?:[^}^"]+)/, /^(?:\})/, /^(?:call[\s]+)/, /^(?:\([\s]*\))/, /^(?:\()/, /^(?:[^(]*)/, /^(?:\))/, /^(?:[^)]*)/, /^(?:[^`"]+)/, /^(?:[`]["])/, /^(?:["][`])/, /^(?:[^"]+)/, /^(?:["])/, /^(?:["])/, /^(?:style\b)/, /^(?:default\b)/, /^(?:linkStyle\b)/, /^(?:interpolate\b)/, /^(?:classDef\b)/, /^(?:class\b)/, /^(?:href[\s])/, /^(?:click[\s]+)/, /^(?:[\s\n])/, /^(?:[^\s\n]*)/, /^(?:flowchart-elk\b)/, /^(?:graph\b)/, /^(?:flowchart\b)/, /^(?:subgraph\b)/, /^(?:end\b\s*)/, /^(?:_self\b)/, /^(?:_blank\b)/, /^(?:_parent\b)/, /^(?:_top\b)/, /^(?:(\r?\n)*\s*\n)/, /^(?:\s*LR\b)/, /^(?:\s*RL\b)/, /^(?:\s*TB\b)/, /^(?:\s*BT\b)/, /^(?:\s*TD\b)/, /^(?:\s*BR\b)/, /^(?:\s*<)/, /^(?:\s*>)/, /^(?:\s*\^)/, /^(?:\s*v\b)/, /^(?:.*direction\s+TB[^\n]*)/, /^(?:.*direction\s+BT[^\n]*)/, /^(?:.*direction\s+RL[^\n]*)/, /^(?:.*direction\s+LR[^\n]*)/, /^(?:[^\s\"]+@(?=[^\{\"]))/, /^(?:[0-9]+)/, /^(?:#)/, /^(?::::)/, /^(?::)/, /^(?:&)/, /^(?:;)/, /^(?:,)/, /^(?:\*)/, /^(?:\s*[xo<]?--+[-xo>]\s*)/, /^(?:\s*[xo<]?--\s*)/, /^(?:[^-]|-(?!-)+)/, /^(?:\s*[xo<]?==+[=xo>]\s*)/, /^(?:\s*[xo<]?==\s*)/, /^(?:[^=]|=(?!))/, /^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/, /^(?:\s*[xo<]?-\.\s*)/, /^(?:[^\.]|\.(?!))/, /^(?:\s*~~[\~]+\s*)/, /^(?:[-/\)][\)])/, /^(?:[^\(\)\[\]\{\}]|!\)+)/, /^(?:\(-)/, /^(?:\]\))/, /^(?:\(\[)/, /^(?:\]\])/, /^(?:\[\[)/, /^(?:\[\|)/, /^(?:>)/, /^(?:\)\])/, /^(?:\[\()/, /^(?:\)\)\))/, /^(?:\(\(\()/, /^(?:[\\(?=\])][\]])/, /^(?:\/(?=\])\])/, /^(?:\/(?!\])|\\(?!\])|[^\\\[\]\(\)\{\}\/]+)/, /^(?:\[\/)/, /^(?:\[\\)/, /^(?:<)/, /^(?:>)/, /^(?:\^)/, /^(?:\\\|)/, /^(?:v\b)/, /^(?:\*)/, /^(?:#)/, /^(?:&)/, /^(?:([A-Za-z0-9!"\#$%&'*+\.`?\\_\/]|-(?=[^\>\-\.])|(?!))+)/, /^(?:-)/, /^(?:[\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6]|[\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377]|[\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5]|[\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA]|[\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE]|[\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA]|[\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0]|[\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977]|[\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2]|[\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A]|[\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39]|[\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8]|[\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C]|[\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C]|[\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99]|[\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0]|[\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D]|[\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3]|[\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10]|[\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1]|[\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81]|[\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3]|[\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6]|[\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A]|[\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081]|[\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D]|[\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0]|[\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310]|[\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C]|[\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711]|[\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7]|[\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C]|[\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16]|[\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF]|[\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC]|[\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D]|[\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D]|[\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3]|[\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F]|[\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128]|[\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184]|[\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3]|[\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6]|[\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE]|[\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C]|[\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D]|[\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC]|[\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B]|[\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788]|[\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805]|[\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB]|[\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28]|[\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5]|[\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4]|[\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E]|[\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D]|[\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36]|[\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D]|[\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC]|[\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF]|[\uFFD2-\uFFD7\uFFDA-\uFFDC])/, /^(?:\|)/, /^(?:\|)/, /^(?:\))/, /^(?:\()/, /^(?:\])/, /^(?:\[)/, /^(?:(\}))/, /^(?:\{)/, /^(?:[^\[\]\(\)\{\}\|\"]+)/, /^(?:")/, /^(?:(\r?\n)+)/, /^(?:\s)/, /^(?:$)/],
1440
- conditions: { shapeDataEndBracket: { rules: [21, 24, 77, 80, 82, 84, 88, 90, 94, 95, 108, 110, 112, 114], inclusive: !1 }, shapeDataStr: { rules: [9, 10, 21, 24, 77, 80, 82, 84, 88, 90, 94, 95, 108, 110, 112, 114], inclusive: !1 }, shapeData: { rules: [8, 11, 12, 21, 24, 77, 80, 82, 84, 88, 90, 94, 95, 108, 110, 112, 114], inclusive: !1 }, callbackargs: { rules: [17, 18, 21, 24, 77, 80, 82, 84, 88, 90, 94, 95, 108, 110, 112, 114], inclusive: !1 }, callbackname: { rules: [14, 15, 16, 21, 24, 77, 80, 82, 84, 88, 90, 94, 95, 108, 110, 112, 114], inclusive: !1 }, href: { rules: [21, 24, 77, 80, 82, 84, 88, 90, 94, 95, 108, 110, 112, 114], inclusive: !1 }, click: { rules: [21, 24, 33, 34, 77, 80, 82, 84, 88, 90, 94, 95, 108, 110, 112, 114], inclusive: !1 }, dottedEdgeText: { rules: [21, 24, 74, 76, 77, 80, 82, 84, 88, 90, 94, 95, 108, 110, 112, 114], inclusive: !1 }, thickEdgeText: { rules: [21, 24, 71, 73, 77, 80, 82, 84, 88, 90, 94, 95, 108, 110, 112, 114], inclusive: !1 }, edgeText: { rules: [21, 24, 68, 70, 77, 80, 82, 84, 88, 90, 94, 95, 108, 110, 112, 114], inclusive: !1 }, trapText: { rules: [21, 24, 77, 80, 82, 84, 88, 90, 91, 92, 93, 94, 95, 108, 110, 112, 114], inclusive: !1 }, ellipseText: { rules: [21, 24, 77, 78, 79, 80, 82, 84, 88, 90, 94, 95, 108, 110, 112, 114], inclusive: !1 }, text: { rules: [21, 24, 77, 80, 81, 82, 83, 84, 87, 88, 89, 90, 94, 95, 107, 108, 109, 110, 111, 112, 113, 114, 115], inclusive: !1 }, vertex: { rules: [21, 24, 77, 80, 82, 84, 88, 90, 94, 95, 108, 110, 112, 114], inclusive: !1 }, dir: { rules: [21, 24, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 77, 80, 82, 84, 88, 90, 94, 95, 108, 110, 112, 114], inclusive: !1 }, acc_descr_multiline: { rules: [5, 6, 21, 24, 77, 80, 82, 84, 88, 90, 94, 95, 108, 110, 112, 114], inclusive: !1 }, acc_descr: { rules: [3, 21, 24, 77, 80, 82, 84, 88, 90, 94, 95, 108, 110, 112, 114], inclusive: !1 }, acc_title: { rules: [1, 21, 24, 77, 80, 82, 84, 88, 90, 94, 95, 108, 110, 112, 114], inclusive: !1 }, md_string: { rules: [19, 20, 21, 24, 77, 80, 82, 84, 88, 90, 94, 95, 108, 110, 112, 114], inclusive: !1 }, string: { rules: [21, 22, 23, 24, 77, 80, 82, 84, 88, 90, 94, 95, 108, 110, 112, 114], inclusive: !1 }, INITIAL: { rules: [0, 2, 4, 7, 13, 21, 24, 25, 26, 27, 28, 29, 30, 31, 32, 35, 36, 37, 38, 39, 40, 41, 42, 43, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 71, 72, 74, 75, 77, 80, 82, 84, 85, 86, 88, 90, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 108, 110, 112, 114, 116, 117, 118, 119], inclusive: !0 } }
1441
- };
1442
- return g1;
1443
- })();
1444
- J1.lexer = Wt;
1445
- function q1() {
1446
- this.yy = {};
1447
- }
1448
- return m(q1, "Parser"), q1.prototype = J1, J1.Parser = q1, new q1();
1449
- })();
1450
- rt.parser = rt;
1451
- var Mt = rt, Ut = Object.assign({}, Mt);
1452
- Ut.parse = (s) => {
1453
- const i = s.replace(/}\s*\n/g, `}
1454
- `);
1455
- return Mt.parse(i);
1456
- };
1457
- var Ae = Ut, ke = /* @__PURE__ */ m((s, i) => {
1458
- const r = he, a = r(s, "r"), n = r(s, "g"), l = r(s, "b");
1459
- return oe(a, n, l, i);
1460
- }, "fade"), me = /* @__PURE__ */ m((s) => `.label {
1461
- font-family: ${s.fontFamily};
1462
- color: ${s.nodeTextColor || s.textColor};
1463
- }
1464
- .cluster-label text {
1465
- fill: ${s.titleColor};
1466
- }
1467
- .cluster-label span {
1468
- color: ${s.titleColor};
1469
- }
1470
- .cluster-label span p {
1471
- background-color: transparent;
1472
- }
1473
-
1474
- .label text,span {
1475
- fill: ${s.nodeTextColor || s.textColor};
1476
- color: ${s.nodeTextColor || s.textColor};
1477
- }
1478
-
1479
- .node rect,
1480
- .node circle,
1481
- .node ellipse,
1482
- .node polygon,
1483
- .node path {
1484
- fill: ${s.mainBkg};
1485
- stroke: ${s.nodeBorder};
1486
- stroke-width: 1px;
1487
- }
1488
- .rough-node .label text , .node .label text, .image-shape .label, .icon-shape .label {
1489
- text-anchor: middle;
1490
- }
1491
- // .flowchart-label .text-outer-tspan {
1492
- // text-anchor: middle;
1493
- // }
1494
- // .flowchart-label .text-inner-tspan {
1495
- // text-anchor: start;
1496
- // }
1497
-
1498
- .node .katex path {
1499
- fill: #000;
1500
- stroke: #000;
1501
- stroke-width: 1px;
1502
- }
1503
-
1504
- .rough-node .label,.node .label, .image-shape .label, .icon-shape .label {
1505
- text-align: center;
1506
- }
1507
- .node.clickable {
1508
- cursor: pointer;
1509
- }
1510
-
1511
-
1512
- .root .anchor path {
1513
- fill: ${s.lineColor} !important;
1514
- stroke-width: 0;
1515
- stroke: ${s.lineColor};
1516
- }
1517
-
1518
- .arrowheadPath {
1519
- fill: ${s.arrowheadColor};
1520
- }
1521
-
1522
- .edgePath .path {
1523
- stroke: ${s.lineColor};
1524
- stroke-width: 2.0px;
1525
- }
1526
-
1527
- .flowchart-link {
1528
- stroke: ${s.lineColor};
1529
- fill: none;
1530
- }
1531
-
1532
- .edgeLabel {
1533
- background-color: ${s.edgeLabelBackground};
1534
- p {
1535
- background-color: ${s.edgeLabelBackground};
1536
- }
1537
- rect {
1538
- opacity: 0.5;
1539
- background-color: ${s.edgeLabelBackground};
1540
- fill: ${s.edgeLabelBackground};
1541
- }
1542
- text-align: center;
1543
- }
1544
-
1545
- /* For html labels only */
1546
- .labelBkg {
1547
- background-color: ${ke(s.edgeLabelBackground, 0.5)};
1548
- // background-color:
1549
- }
1550
-
1551
- .cluster rect {
1552
- fill: ${s.clusterBkg};
1553
- stroke: ${s.clusterBorder};
1554
- stroke-width: 1px;
1555
- }
1556
-
1557
- .cluster text {
1558
- fill: ${s.titleColor};
1559
- }
1560
-
1561
- .cluster span {
1562
- color: ${s.titleColor};
1563
- }
1564
- /* .cluster div {
1565
- color: ${s.titleColor};
1566
- } */
1567
-
1568
- div.mermaidTooltip {
1569
- position: absolute;
1570
- text-align: center;
1571
- max-width: 200px;
1572
- padding: 2px;
1573
- font-family: ${s.fontFamily};
1574
- font-size: 12px;
1575
- background: ${s.tertiaryColor};
1576
- border: 1px solid ${s.border2};
1577
- border-radius: 2px;
1578
- pointer-events: none;
1579
- z-index: 100;
1580
- }
1581
-
1582
- .flowchartTitleText {
1583
- text-anchor: middle;
1584
- font-size: 18px;
1585
- fill: ${s.textColor};
1586
- }
1587
-
1588
- rect.text {
1589
- fill: none;
1590
- stroke-width: 0;
1591
- }
1592
-
1593
- .icon-shape, .image-shape {
1594
- background-color: ${s.edgeLabelBackground};
1595
- p {
1596
- background-color: ${s.edgeLabelBackground};
1597
- padding: 2px;
1598
- }
1599
- rect {
1600
- opacity: 0.5;
1601
- background-color: ${s.edgeLabelBackground};
1602
- fill: ${s.edgeLabelBackground};
1603
- }
1604
- text-align: center;
1605
- }
1606
- ${qt()}
1607
- `, "getStyles"), Ee = me, ye = {
1608
- parser: Ae,
1609
- get db() {
1610
- return new pe();
1611
- },
1612
- renderer: be,
1613
- styles: Ee,
1614
- init: /* @__PURE__ */ m((s) => {
1615
- s.flowchart || (s.flowchart = {}), s.layout && Ot({ layout: s.layout }), s.flowchart.arrowMarkerAbsolute = s.arrowMarkerAbsolute, Ot({ flowchart: { arrowMarkerAbsolute: s.arrowMarkerAbsolute } });
1616
- }, "init")
1617
- };
1618
- export {
1619
- ye as diagram
1620
- };