@flyfish-group/file-viewer3 1.0.26 → 2.0.1

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 (359) hide show
  1. package/README.en.md +3 -388
  2. package/README.md +3 -364
  3. package/dist/file-viewer3.css +1 -2
  4. package/dist/index.d.ts +2 -0
  5. package/dist/index.js +2 -0
  6. package/package.json +22 -126
  7. package/dist/components/3MFLoader.js +0 -527
  8. package/dist/components/AMFLoader.js +0 -188
  9. package/dist/components/ArchiveViewer.js +0 -526
  10. package/dist/components/AudioViewer.js +0 -66
  11. package/dist/components/CadViewer.js +0 -9040
  12. package/dist/components/CodeViewer.js +0 -151
  13. package/dist/components/ColladaLoader.js +0 -2282
  14. package/dist/components/DrawingViewer.js +0 -295
  15. package/dist/components/EdaViewer.js +0 -630
  16. package/dist/components/EmailViewer.js +0 -276
  17. package/dist/components/EpubViewer.js +0 -172
  18. package/dist/components/FBXLoader.js +0 -1574
  19. package/dist/components/GLTFLoader.js +0 -1383
  20. package/dist/components/ImageViewer.js +0 -1519
  21. package/dist/components/KMZLoader.js +0 -45
  22. package/dist/components/MarkdownViewer.js +0 -1476
  23. package/dist/components/ModelViewer.js +0 -797
  24. package/dist/components/OBJLoader.js +0 -287
  25. package/dist/components/OfdViewer.js +0 -133
  26. package/dist/components/PCDLoader.js +0 -141
  27. package/dist/components/PLYLoader.js +0 -305
  28. package/dist/components/PdfView.js +0 -27667
  29. package/dist/components/PptxRender.js +0 -11217
  30. package/dist/components/STLLoader.js +0 -83
  31. package/dist/components/TDSLoader.js +0 -228
  32. package/dist/components/TypstViewer.js +0 -1697
  33. package/dist/components/USDLoader.js +0 -2526
  34. package/dist/components/UmdViewer.js +0 -1873
  35. package/dist/components/VRMLLoader.js +0 -6422
  36. package/dist/components/VTKLoader.js +0 -337
  37. package/dist/components/XYZLoader.js +0 -30
  38. package/dist/components/XlsxTable.js +0 -7879
  39. package/dist/components/__vite-browser-external.js +0 -7
  40. package/dist/components/_plugin-vue_export-helper.js +0 -8
  41. package/dist/components/ar-SA-G6X2FPQ2.js +0 -523
  42. package/dist/components/arc.js +0 -79
  43. package/dist/components/architecture-7EHR7CIX.js +0 -3
  44. package/dist/components/architectureDiagram-3BPJPVTR.js +0 -4096
  45. package/dist/components/archive.js +0 -24
  46. package/dist/components/asyncToGenerator.js +0 -29
  47. package/dist/components/audio.js +0 -19
  48. package/dist/components/az-AZ-76LH7QW2.js +0 -523
  49. package/dist/components/bash.js +0 -169
  50. package/dist/components/bg-BG-XCXSNQG7.js +0 -523
  51. package/dist/components/blockDiagram-GPEHLZMM.js +0 -3357
  52. package/dist/components/bn-BD-2XOGV67Q.js +0 -523
  53. package/dist/components/c4Diagram-AAUBKEIU.js +0 -2957
  54. package/dist/components/ca-ES-6MX7JW3Y.js +0 -523
  55. package/dist/components/cad.js +0 -23
  56. package/dist/components/cfb.js +0 -1174
  57. package/dist/components/channel.js +0 -5
  58. package/dist/components/chunk-2J33WTMH.js +0 -26
  59. package/dist/components/chunk-3OPIFGDE.js +0 -4167
  60. package/dist/components/chunk-4BX2VUAB.js +0 -19
  61. package/dist/components/chunk-55IACEB6.js +0 -9
  62. package/dist/components/chunk-5ZQYHXKU.js +0 -669
  63. package/dist/components/chunk-6U3AYISY.js +0 -624
  64. package/dist/components/chunk-727SXJPM.js +0 -3356
  65. package/dist/components/chunk-AGHRB4JF.js +0 -324
  66. package/dist/components/chunk-AQP2D5EJ.js +0 -2055
  67. package/dist/components/chunk-BSJP7CBP.js +0 -83
  68. package/dist/components/chunk-CSCIHK7Q.js +0 -3500
  69. package/dist/components/chunk-EIO257PC.js +0 -1836
  70. package/dist/components/chunk-FMBD7UC4.js +0 -5
  71. package/dist/components/chunk-K2UTITRG.js +0 -17627
  72. package/dist/components/chunk-KSCS5N6A.js +0 -572
  73. package/dist/components/chunk-L5ZTLDWV.js +0 -40
  74. package/dist/components/chunk-LZXEDZCA.js +0 -60
  75. package/dist/components/chunk-ND2GUHAM.js +0 -61
  76. package/dist/components/chunk-NNHCCRGN.js +0 -20425
  77. package/dist/components/chunk-NZK2D7GU.js +0 -68
  78. package/dist/components/chunk-O5CBEL6O.js +0 -1894
  79. package/dist/components/chunk-QZHKN3VN.js +0 -12
  80. package/dist/components/chunk-SRAX5OIU.js +0 -22
  81. package/dist/components/chunk-WU5MYG2G.js +0 -14
  82. package/dist/components/chunk-XPW4576I.js +0 -1146
  83. package/dist/components/chunk-Z3N5DIM6.js +0 -59
  84. package/dist/components/chunk-ZUYEQ4TG.js +0 -22
  85. package/dist/components/chunk.js +0 -23
  86. package/dist/components/classDiagram-4FO5ZUOK.js +0 -29
  87. package/dist/components/classDiagram-v2-Q7XG4LA2.js +0 -29
  88. package/dist/components/compiler.js +0 -2
  89. package/dist/components/core.js +0 -845
  90. package/dist/components/cose-bilkent-S5V4N54A.js +0 -2268
  91. package/dist/components/cpp.js +0 -225
  92. package/dist/components/cs-CZ-2BRQDIVT.js +0 -523
  93. package/dist/components/csharp.js +0 -260
  94. package/dist/components/css.js +0 -140
  95. package/dist/components/cytoscape.esm.js +0 -18114
  96. package/dist/components/da-DK-5WZEPLOC.js +0 -523
  97. package/dist/components/dagre-BM42HDAG.js +0 -325
  98. package/dist/components/dagre.js +0 -1936
  99. package/dist/components/de-DE-XR44H4JA.js +0 -523
  100. package/dist/components/defaultLocale.js +0 -201
  101. package/dist/components/defineProperty.js +0 -50
  102. package/dist/components/diagram-2AECGRRQ.js +0 -229
  103. package/dist/components/diagram-5GNKFQAL.js +0 -108
  104. package/dist/components/diagram-KO2AKTUF.js +0 -443
  105. package/dist/components/diagram-LMA3HP47.js +0 -139
  106. package/dist/components/diagram-OG6HWLK6.js +0 -541
  107. package/dist/components/diff.js +0 -39
  108. package/dist/components/directory-open-01563666.js +0 -26
  109. package/dist/components/directory-open-4ed118d0.js +0 -83
  110. package/dist/components/dist.js +0 -50
  111. package/dist/components/dist2.js +0 -3291
  112. package/dist/components/dist3.js +0 -1593
  113. package/dist/components/documentSearch.js +0 -378
  114. package/dist/components/docx-preview.js +0 -3113
  115. package/dist/components/drawing.js +0 -19
  116. package/dist/components/ebook.js +0 -16
  117. package/dist/components/eda.js +0 -20
  118. package/dist/components/el-GR-BZB4AONW.js +0 -523
  119. package/dist/components/email.js +0 -21
  120. package/dist/components/en-B4ZKOASM.js +0 -3
  121. package/dist/components/erDiagram-TEJ5UH35.js +0 -1719
  122. package/dist/components/es-ES-U4NZUMDT.js +0 -523
  123. package/dist/components/eu-ES-A7QVB2H4.js +0 -523
  124. package/dist/components/eventmodeling-FCH6USID.js +0 -3
  125. package/dist/components/fa-IR-HGAKTJCU.js +0 -523
  126. package/dist/components/fflate.module.js +0 -323
  127. package/dist/components/fi-FI-Z5N7JZ37.js +0 -523
  128. package/dist/components/file-open-002ab408.js +0 -38
  129. package/dist/components/file-open-7c801643.js +0 -24
  130. package/dist/components/file-save-3189631c.js +0 -40
  131. package/dist/components/file-save-745eba88.js +0 -36
  132. package/dist/components/flowDiagram-I6XJVG4X.js +0 -4181
  133. package/dist/components/fr-FR-RHASNOE6.js +0 -523
  134. package/dist/components/ganttDiagram-6RSMTGT7.js +0 -2182
  135. package/dist/components/gitGraph-WXDBUCRP.js +0 -3
  136. package/dist/components/gitGraphDiagram-PVQCEYII.js +0 -788
  137. package/dist/components/gl-ES-HMX3MZ6V.js +0 -523
  138. package/dist/components/global-compiler.js +0 -23
  139. package/dist/components/global-renderer.js +0 -23
  140. package/dist/components/go.js +0 -140
  141. package/dist/components/graphlib.js +0 -1267
  142. package/dist/components/he-IL-6SHJWFNN.js +0 -523
  143. package/dist/components/hi-IN-IWLTKZ5I.js +0 -523
  144. package/dist/components/hu-HU-A5ZG7DT2.js +0 -523
  145. package/dist/components/id-ID-SAP4L64H.js +0 -523
  146. package/dist/components/image-GAAHSSAO.js +0 -3
  147. package/dist/components/image-blob-reduce.esm.js +0 -1429
  148. package/dist/components/image.js +0 -17
  149. package/dist/components/info-J43DQDTF.js +0 -3
  150. package/dist/components/infoDiagram-5YYISTIA.js +0 -26
  151. package/dist/components/ini.js +0 -88
  152. package/dist/components/init.js +0 -15
  153. package/dist/components/ishikawaDiagram-YF4QCWOH.js +0 -718
  154. package/dist/components/it-IT-JPQ66NNP.js +0 -523
  155. package/dist/components/ja-JP-DBVTYXUO.js +0 -523
  156. package/dist/components/java.js +0 -169
  157. package/dist/components/javascript.js +0 -436
  158. package/dist/components/journeyDiagram-JHISSGLW.js +0 -885
  159. package/dist/components/json.js +0 -36
  160. package/dist/components/jszip.min.js +0 -3033
  161. package/dist/components/kaa-6HZHGXH3.js +0 -523
  162. package/dist/components/kab-KAB-ZGHBKWFO.js +0 -523
  163. package/dist/components/kanban-definition-UN3LZRKU.js +0 -986
  164. package/dist/components/katex.js +0 -21979
  165. package/dist/components/kk-KZ-P5N5QNE5.js +0 -523
  166. package/dist/components/km-KH-HSX4SM5Z.js +0 -523
  167. package/dist/components/ko-KR-MTYHY66A.js +0 -523
  168. package/dist/components/ku-TR-6OUDTVRD.js +0 -523
  169. package/dist/components/lib.js +0 -4877
  170. package/dist/components/libarchive.js +0 -360
  171. package/dist/components/linear.js +0 -289
  172. package/dist/components/lt-LT-XHIRWOB4.js +0 -523
  173. package/dist/components/lv-LV-5QDEKY6T.js +0 -523
  174. package/dist/components/markdown.js +0 -181
  175. package/dist/components/md.js +0 -17
  176. package/dist/components/mermaid-parser.core.js +0 -328
  177. package/dist/components/mindmap-definition-RKZ34NQL.js +0 -1016
  178. package/dist/components/model.js +0 -21
  179. package/dist/components/mp4.js +0 -12
  180. package/dist/components/mr-IN-CRQNXWMA.js +0 -523
  181. package/dist/components/my-MM-5M5IBNSE.js +0 -523
  182. package/dist/components/nb-NO-T6EIAALU.js +0 -523
  183. package/dist/components/nestedRender.js +0 -158
  184. package/dist/components/nl-NL-IS3SIHDZ.js +0 -523
  185. package/dist/components/nn-NO-6E72VCQL.js +0 -523
  186. package/dist/components/objectSpread2.js +0 -29
  187. package/dist/components/objectWithoutProperties.js +0 -28
  188. package/dist/components/oc-FR-POXYY2M6.js +0 -523
  189. package/dist/components/ofd.js +0 -5261
  190. package/dist/components/ofd2.js +0 -16
  191. package/dist/components/ordinal.js +0 -65
  192. package/dist/components/pa-IN-N4M65BXN.js +0 -523
  193. package/dist/components/packet-YPE3B663.js +0 -3
  194. package/dist/components/pdf.js +0 -24
  195. package/dist/components/percentages-BXMCSKIN.js +0 -3
  196. package/dist/components/php.js +0 -294
  197. package/dist/components/pica.js +0 -1009
  198. package/dist/components/pie-LRSECV5Y.js +0 -3
  199. package/dist/components/pie.js +0 -47
  200. package/dist/components/pieDiagram-4H26LBE5.js +0 -130
  201. package/dist/components/pl-PL-T2D74RX3.js +0 -523
  202. package/dist/components/postal-mime.js +0 -3146
  203. package/dist/components/pptx.js +0 -15
  204. package/dist/components/printLayout.js +0 -42
  205. package/dist/components/prod.js +0 -21770
  206. package/dist/components/pt-BR-5N22H2LF.js +0 -523
  207. package/dist/components/pt-PT-UZXXM6DQ.js +0 -523
  208. package/dist/components/python.js +0 -238
  209. package/dist/components/quadrantDiagram-W4KKPZXB.js +0 -1988
  210. package/dist/components/radar-GUYGQ44K.js +0 -3
  211. package/dist/components/renderer.js +0 -2
  212. package/dist/components/requirementDiagram-4Y6WPE33.js +0 -2230
  213. package/dist/components/ro-RO-JPDTUUEW.js +0 -523
  214. package/dist/components/rough.esm.js +0 -1355
  215. package/dist/components/roundRect.js +0 -90
  216. package/dist/components/ru-RU-B4JR7IUQ.js +0 -523
  217. package/dist/components/rust.js +0 -169
  218. package/dist/components/sankeyDiagram-5OEKKPKP.js +0 -972
  219. package/dist/components/sequenceDiagram-3UESZ5HK.js +0 -4255
  220. package/dist/components/shared.js +0 -175
  221. package/dist/components/shared2.js +0 -4
  222. package/dist/components/si-LK-N5RQ5JYF.js +0 -523
  223. package/dist/components/sk-SK-C5VTKIMK.js +0 -523
  224. package/dist/components/sl-SI-NN7IZMDC.js +0 -523
  225. package/dist/components/sourceLoading.js +0 -134
  226. package/dist/components/sql.js +0 -118
  227. package/dist/components/src.js +0 -2664
  228. package/dist/components/src2.js +0 -10722
  229. package/dist/components/stateDiagram-AJRCARHV.js +0 -217
  230. package/dist/components/stateDiagram-v2-BHNVJYJU.js +0 -27
  231. package/dist/components/subset-shared.chunk.js +0 -3
  232. package/dist/components/subset-worker.chunk.js +0 -21
  233. package/dist/components/sv-SE-XGPEYMSR.js +0 -523
  234. package/dist/components/ta-IN-2NMHFXQM.js +0 -523
  235. package/dist/components/text.js +0 -20
  236. package/dist/components/th-TH-HPSO5L25.js +0 -523
  237. package/dist/components/three.module.js +0 -13134
  238. package/dist/components/time.js +0 -910
  239. package/dist/components/timeline-definition-PNZ67QCA.js +0 -1084
  240. package/dist/components/tr-TR-DEFEU3FU.js +0 -523
  241. package/dist/components/treeView-BLDUP644.js +0 -3
  242. package/dist/components/treemap-LRROVOQU.js +0 -3
  243. package/dist/components/typescript.js +0 -521
  244. package/dist/components/typst.js +0 -25
  245. package/dist/components/uk-UA-QMV73CPH.js +0 -523
  246. package/dist/components/umd.js +0 -16
  247. package/dist/components/use.js +0 -422
  248. package/dist/components/util.js +0 -49
  249. package/dist/components/vennDiagram-CIIHVFJN.js +0 -1880
  250. package/dist/components/vi-VN-M7AON7JQ.js +0 -523
  251. package/dist/components/viewerZoom.js +0 -92
  252. package/dist/components/wardley-L42UT6IY.js +0 -3
  253. package/dist/components/wardleyDiagram-YWT4CUSO.js +0 -656
  254. package/dist/components/wasm-pack-shim.js +0 -1711
  255. package/dist/components/wasm-pack-shim2.js +0 -934
  256. package/dist/components/wasm.js +0 -97
  257. package/dist/components/word.js +0 -3055
  258. package/dist/components/worker-ref.js +0 -16
  259. package/dist/components/xlsx.js +0 -21
  260. package/dist/components/xml.js +0 -166
  261. package/dist/components/xychartDiagram-2RQKCTM6.js +0 -2015
  262. package/dist/components/yaml.js +0 -144
  263. package/dist/components/zh-CN-LNUGB5OW.js +0 -523
  264. package/dist/components/zh-HK-E62DVLB3.js +0 -523
  265. package/dist/components/zh-TW-RAJ6MFWO.js +0 -523
  266. package/dist/index.mjs +0 -3293
  267. package/dist/src/App.vue.d.ts +0 -3
  268. package/dist/src/compare/CompareApp.vue.d.ts +0 -3
  269. package/dist/src/compare/main.d.ts +0 -0
  270. package/dist/src/compare/useSynchronizedScroll.d.ts +0 -7
  271. package/dist/src/components/HelloWorld.vue.d.ts +0 -3
  272. package/dist/src/components/utils.d.ts +0 -4
  273. package/dist/src/main.d.ts +0 -0
  274. package/dist/src/package/common/printCapability.d.ts +0 -27
  275. package/dist/src/package/common/printLayout.d.ts +0 -16
  276. package/dist/src/package/common/sourceLoading.d.ts +0 -10
  277. package/dist/src/package/common/type.d.ts +0 -544
  278. package/dist/src/package/common/util.d.ts +0 -5
  279. package/dist/src/package/common/worker-ref.d.ts +0 -12
  280. package/dist/src/package/components/FileViewer/FileViewer.vue.d.ts +0 -75
  281. package/dist/src/package/components/FileViewer/exportDocumentTemplate.d.ts +0 -9
  282. package/dist/src/package/components/FileViewer/hooks/useViewerDocumentFeatures.d.ts +0 -29
  283. package/dist/src/package/components/FileViewer/hooks/useViewerExport.d.ts +0 -21
  284. package/dist/src/package/components/FileViewer/hooks/useViewerWatermark.d.ts +0 -8
  285. package/dist/src/package/components/FileViewer/hooks/useViewerZoom.d.ts +0 -34
  286. package/dist/src/package/components/FileViewer/index.d.ts +0 -2
  287. package/dist/src/package/components/FileViewer/util.d.ts +0 -3
  288. package/dist/src/package/index.d.ts +0 -22
  289. package/dist/src/package/use/documentLocation.d.ts +0 -15
  290. package/dist/src/package/use/documentSearch.d.ts +0 -234
  291. package/dist/src/package/use/index.d.ts +0 -5
  292. package/dist/src/package/use/loading.d.ts +0 -33
  293. package/dist/src/package/use/viewerZoom.d.ts +0 -42
  294. package/dist/src/package/use/worker.d.ts +0 -24
  295. package/dist/src/package/vendors/archive/ArchiveViewer.vue.d.ts +0 -9
  296. package/dist/src/package/vendors/archive/cache.d.ts +0 -10
  297. package/dist/src/package/vendors/archive/fallback.d.ts +0 -9
  298. package/dist/src/package/vendors/archive/index.d.ts +0 -3
  299. package/dist/src/package/vendors/archive/shared.d.ts +0 -24
  300. package/dist/src/package/vendors/audio/AudioViewer.vue.d.ts +0 -7
  301. package/dist/src/package/vendors/audio/index.d.ts +0 -7
  302. package/dist/src/package/vendors/cad/CadViewer.vue.d.ts +0 -9
  303. package/dist/src/package/vendors/cad/index.d.ts +0 -8
  304. package/dist/src/package/vendors/drawing/DrawingViewer.vue.d.ts +0 -15
  305. package/dist/src/package/vendors/drawing/index.d.ts +0 -7
  306. package/dist/src/package/vendors/ebook/EpubViewer.vue.d.ts +0 -6
  307. package/dist/src/package/vendors/ebook/index.d.ts +0 -7
  308. package/dist/src/package/vendors/eda/EdaViewer.vue.d.ts +0 -8
  309. package/dist/src/package/vendors/eda/index.d.ts +0 -2
  310. package/dist/src/package/vendors/eda/parser.d.ts +0 -77
  311. package/dist/src/package/vendors/email/EmailViewer.vue.d.ts +0 -10
  312. package/dist/src/package/vendors/email/index.d.ts +0 -2
  313. package/dist/src/package/vendors/image/ImageViewer.vue.d.ts +0 -6
  314. package/dist/src/package/vendors/image/index.d.ts +0 -4
  315. package/dist/src/package/vendors/md/MarkdownViewer.vue.d.ts +0 -6
  316. package/dist/src/package/vendors/md/index.d.ts +0 -4
  317. package/dist/src/package/vendors/model/ModelViewer.vue.d.ts +0 -8
  318. package/dist/src/package/vendors/model/index.d.ts +0 -3
  319. package/dist/src/package/vendors/model/shared.d.ts +0 -1
  320. package/dist/src/package/vendors/mp4/index.d.ts +0 -4
  321. package/dist/src/package/vendors/nestedRender.d.ts +0 -10
  322. package/dist/src/package/vendors/ofd/OfdViewer.vue.d.ts +0 -6
  323. package/dist/src/package/vendors/ofd/index.d.ts +0 -7
  324. package/dist/src/package/vendors/pdf/PdfView.vue.d.ts +0 -10
  325. package/dist/src/package/vendors/pdf/index.d.ts +0 -2
  326. package/dist/src/package/vendors/pdf/worker/index.d.ts +0 -4
  327. package/dist/src/package/vendors/pdf/worker/pdf.worker.d.ts +0 -0
  328. package/dist/src/package/vendors/pptx/PptxRender.vue.d.ts +0 -9
  329. package/dist/src/package/vendors/pptx/index.d.ts +0 -6
  330. package/dist/src/package/vendors/pptx/options.d.ts +0 -39
  331. package/dist/src/package/vendors/pptx/support/chart.d.ts +0 -4
  332. package/dist/src/package/vendors/pptx/worker/index.d.ts +0 -4
  333. package/dist/src/package/vendors/renders.d.ts +0 -3
  334. package/dist/src/package/vendors/text/CodeViewer.vue.d.ts +0 -7
  335. package/dist/src/package/vendors/text/index.d.ts +0 -10
  336. package/dist/src/package/vendors/typst/TypstViewer.vue.d.ts +0 -15
  337. package/dist/src/package/vendors/typst/index.d.ts +0 -8
  338. package/dist/src/package/vendors/umd/UmdViewer.vue.d.ts +0 -6
  339. package/dist/src/package/vendors/umd/index.d.ts +0 -7
  340. package/dist/src/package/vendors/umd/parser.d.ts +0 -30
  341. package/dist/src/package/vendors/word/doc.d.ts +0 -5
  342. package/dist/src/package/vendors/word/docx.d.ts +0 -5
  343. package/dist/src/package/vendors/word/docx.worker.d.ts +0 -1
  344. package/dist/src/package/vendors/word/index.d.ts +0 -3
  345. package/dist/src/package/vendors/xlsx/XlsxTable.state.d.ts +0 -80
  346. package/dist/src/package/vendors/xlsx/XlsxTable.view.d.ts +0 -25
  347. package/dist/src/package/vendors/xlsx/XlsxTable.vue.d.ts +0 -6
  348. package/dist/src/package/vendors/xlsx/index.d.ts +0 -6
  349. package/dist/src/package/vendors/xlsx/util.d.ts +0 -3
  350. package/dist/src/package/vendors/xlsx/worker/index.d.ts +0 -4
  351. package/dist/src/package/vendors/xlsx/worker/sheetjs/SheetJsModel.d.ts +0 -73
  352. package/dist/src/package/vendors/xlsx/worker/sheetjs/color.d.ts +0 -2
  353. package/dist/src/package/vendors/xlsx/worker/sheetjs/index.d.ts +0 -4
  354. package/dist/src/package/vendors/xlsx/worker/sheetjs/sheet.worker.d.ts +0 -1
  355. package/dist/style.css +0 -1
  356. package/dist/wasm/cad/dwfv-render.wasm +0 -0
  357. package/dist/wasm/cad/dwg-worker.js +0 -24
  358. package/dist/wasm/cad/libredwg-web.js +0 -15
  359. package/dist/wasm/cad/libredwg-web.wasm +0 -0
@@ -1,2957 +0,0 @@
1
- import { n as e, r as t } from "./chunk-AGHRB4JF.js";
2
- import { H as n, U as r, c as i, r as a, s as o, v as s, x as l, y as u, z as d } from "./chunk-CSCIHK7Q.js";
3
- import { Q as f } from "./src.js";
4
- import { _ as p, n as m, r as h } from "./chunk-5ZQYHXKU.js";
5
- import { t as g } from "./dist.js";
6
- import { a as _, s as v } from "./chunk-ND2GUHAM.js";
7
- //#region node_modules/.pnpm/mermaid@11.15.0/node_modules/mermaid/dist/chunks/mermaid.core/c4Diagram-AAUBKEIU.mjs
8
- var y = g(), b, x, S = (function() {
9
- var t = /* @__PURE__ */ e(function(e, t, n, r) {
10
- for (n = n || {}, r = e.length; r--; n[e[r]] = t);
11
- return n;
12
- }, "o"), n = [1, 24], r = [1, 25], i = [1, 26], a = [1, 27], o = [1, 28], s = [1, 63], l = [1, 64], u = [1, 65], d = [1, 66], f = [1, 67], p = [1, 68], m = [1, 69], h = [1, 29], g = [1, 30], _ = [1, 31], v = [1, 32], y = [1, 33], b = [1, 34], x = [1, 35], S = [1, 36], C = [1, 37], w = [1, 38], T = [1, 39], E = [1, 40], D = [1, 41], O = [1, 42], k = [1, 43], A = [1, 44], j = [1, 45], M = [1, 46], N = [1, 47], P = [1, 48], F = [1, 50], I = [1, 51], L = [1, 52], R = [1, 53], z = [1, 54], B = [1, 55], V = [1, 56], H = [1, 57], U = [1, 58], ee = [1, 59], te = [1, 60], ne = [14, 42], re = [
13
- 14,
14
- 34,
15
- 36,
16
- 37,
17
- 38,
18
- 39,
19
- 40,
20
- 41,
21
- 42,
22
- 44,
23
- 45,
24
- 46,
25
- 47,
26
- 48,
27
- 49,
28
- 50,
29
- 51,
30
- 52,
31
- 53,
32
- 54,
33
- 55,
34
- 56,
35
- 57,
36
- 58,
37
- 59,
38
- 60,
39
- 61,
40
- 62,
41
- 63,
42
- 64,
43
- 65,
44
- 66,
45
- 67,
46
- 68,
47
- 69,
48
- 70,
49
- 71,
50
- 72,
51
- 73,
52
- 74
53
- ], ie = [
54
- 12,
55
- 14,
56
- 34,
57
- 36,
58
- 37,
59
- 38,
60
- 39,
61
- 40,
62
- 41,
63
- 42,
64
- 44,
65
- 45,
66
- 46,
67
- 47,
68
- 48,
69
- 49,
70
- 50,
71
- 51,
72
- 52,
73
- 53,
74
- 54,
75
- 55,
76
- 56,
77
- 57,
78
- 58,
79
- 59,
80
- 60,
81
- 61,
82
- 62,
83
- 63,
84
- 64,
85
- 65,
86
- 66,
87
- 67,
88
- 68,
89
- 69,
90
- 70,
91
- 71,
92
- 72,
93
- 73,
94
- 74
95
- ], W = [1, 82], G = [1, 83], K = [1, 84], q = [1, 85], J = [
96
- 12,
97
- 14,
98
- 42
99
- ], ae = [
100
- 12,
101
- 14,
102
- 33,
103
- 42
104
- ], oe = [
105
- 12,
106
- 14,
107
- 33,
108
- 42,
109
- 76,
110
- 77,
111
- 79,
112
- 80
113
- ], se = [12, 33], ce = [
114
- 34,
115
- 36,
116
- 37,
117
- 38,
118
- 39,
119
- 40,
120
- 41,
121
- 44,
122
- 45,
123
- 46,
124
- 47,
125
- 48,
126
- 49,
127
- 50,
128
- 51,
129
- 52,
130
- 53,
131
- 54,
132
- 55,
133
- 56,
134
- 57,
135
- 58,
136
- 59,
137
- 60,
138
- 61,
139
- 62,
140
- 63,
141
- 64,
142
- 65,
143
- 66,
144
- 67,
145
- 68,
146
- 69,
147
- 70,
148
- 71,
149
- 72,
150
- 73,
151
- 74
152
- ], le = {
153
- trace: /* @__PURE__ */ e(function() {}, "trace"),
154
- yy: {},
155
- symbols_: {
156
- error: 2,
157
- start: 3,
158
- mermaidDoc: 4,
159
- direction: 5,
160
- direction_tb: 6,
161
- direction_bt: 7,
162
- direction_rl: 8,
163
- direction_lr: 9,
164
- graphConfig: 10,
165
- C4_CONTEXT: 11,
166
- NEWLINE: 12,
167
- statements: 13,
168
- EOF: 14,
169
- C4_CONTAINER: 15,
170
- C4_COMPONENT: 16,
171
- C4_DYNAMIC: 17,
172
- C4_DEPLOYMENT: 18,
173
- otherStatements: 19,
174
- diagramStatements: 20,
175
- otherStatement: 21,
176
- title: 22,
177
- accDescription: 23,
178
- acc_title: 24,
179
- acc_title_value: 25,
180
- acc_descr: 26,
181
- acc_descr_value: 27,
182
- acc_descr_multiline_value: 28,
183
- boundaryStatement: 29,
184
- boundaryStartStatement: 30,
185
- boundaryStopStatement: 31,
186
- boundaryStart: 32,
187
- LBRACE: 33,
188
- ENTERPRISE_BOUNDARY: 34,
189
- attributes: 35,
190
- SYSTEM_BOUNDARY: 36,
191
- BOUNDARY: 37,
192
- CONTAINER_BOUNDARY: 38,
193
- NODE: 39,
194
- NODE_L: 40,
195
- NODE_R: 41,
196
- RBRACE: 42,
197
- diagramStatement: 43,
198
- PERSON: 44,
199
- PERSON_EXT: 45,
200
- SYSTEM: 46,
201
- SYSTEM_DB: 47,
202
- SYSTEM_QUEUE: 48,
203
- SYSTEM_EXT: 49,
204
- SYSTEM_EXT_DB: 50,
205
- SYSTEM_EXT_QUEUE: 51,
206
- CONTAINER: 52,
207
- CONTAINER_DB: 53,
208
- CONTAINER_QUEUE: 54,
209
- CONTAINER_EXT: 55,
210
- CONTAINER_EXT_DB: 56,
211
- CONTAINER_EXT_QUEUE: 57,
212
- COMPONENT: 58,
213
- COMPONENT_DB: 59,
214
- COMPONENT_QUEUE: 60,
215
- COMPONENT_EXT: 61,
216
- COMPONENT_EXT_DB: 62,
217
- COMPONENT_EXT_QUEUE: 63,
218
- REL: 64,
219
- BIREL: 65,
220
- REL_U: 66,
221
- REL_D: 67,
222
- REL_L: 68,
223
- REL_R: 69,
224
- REL_B: 70,
225
- REL_INDEX: 71,
226
- UPDATE_EL_STYLE: 72,
227
- UPDATE_REL_STYLE: 73,
228
- UPDATE_LAYOUT_CONFIG: 74,
229
- attribute: 75,
230
- STR: 76,
231
- STR_KEY: 77,
232
- STR_VALUE: 78,
233
- ATTRIBUTE: 79,
234
- ATTRIBUTE_EMPTY: 80,
235
- $accept: 0,
236
- $end: 1
237
- },
238
- terminals_: {
239
- 2: "error",
240
- 6: "direction_tb",
241
- 7: "direction_bt",
242
- 8: "direction_rl",
243
- 9: "direction_lr",
244
- 11: "C4_CONTEXT",
245
- 12: "NEWLINE",
246
- 14: "EOF",
247
- 15: "C4_CONTAINER",
248
- 16: "C4_COMPONENT",
249
- 17: "C4_DYNAMIC",
250
- 18: "C4_DEPLOYMENT",
251
- 22: "title",
252
- 23: "accDescription",
253
- 24: "acc_title",
254
- 25: "acc_title_value",
255
- 26: "acc_descr",
256
- 27: "acc_descr_value",
257
- 28: "acc_descr_multiline_value",
258
- 33: "LBRACE",
259
- 34: "ENTERPRISE_BOUNDARY",
260
- 36: "SYSTEM_BOUNDARY",
261
- 37: "BOUNDARY",
262
- 38: "CONTAINER_BOUNDARY",
263
- 39: "NODE",
264
- 40: "NODE_L",
265
- 41: "NODE_R",
266
- 42: "RBRACE",
267
- 44: "PERSON",
268
- 45: "PERSON_EXT",
269
- 46: "SYSTEM",
270
- 47: "SYSTEM_DB",
271
- 48: "SYSTEM_QUEUE",
272
- 49: "SYSTEM_EXT",
273
- 50: "SYSTEM_EXT_DB",
274
- 51: "SYSTEM_EXT_QUEUE",
275
- 52: "CONTAINER",
276
- 53: "CONTAINER_DB",
277
- 54: "CONTAINER_QUEUE",
278
- 55: "CONTAINER_EXT",
279
- 56: "CONTAINER_EXT_DB",
280
- 57: "CONTAINER_EXT_QUEUE",
281
- 58: "COMPONENT",
282
- 59: "COMPONENT_DB",
283
- 60: "COMPONENT_QUEUE",
284
- 61: "COMPONENT_EXT",
285
- 62: "COMPONENT_EXT_DB",
286
- 63: "COMPONENT_EXT_QUEUE",
287
- 64: "REL",
288
- 65: "BIREL",
289
- 66: "REL_U",
290
- 67: "REL_D",
291
- 68: "REL_L",
292
- 69: "REL_R",
293
- 70: "REL_B",
294
- 71: "REL_INDEX",
295
- 72: "UPDATE_EL_STYLE",
296
- 73: "UPDATE_REL_STYLE",
297
- 74: "UPDATE_LAYOUT_CONFIG",
298
- 76: "STR",
299
- 77: "STR_KEY",
300
- 78: "STR_VALUE",
301
- 79: "ATTRIBUTE",
302
- 80: "ATTRIBUTE_EMPTY"
303
- },
304
- productions_: [
305
- 0,
306
- [3, 1],
307
- [3, 1],
308
- [5, 1],
309
- [5, 1],
310
- [5, 1],
311
- [5, 1],
312
- [4, 1],
313
- [10, 4],
314
- [10, 4],
315
- [10, 4],
316
- [10, 4],
317
- [10, 4],
318
- [13, 1],
319
- [13, 1],
320
- [13, 2],
321
- [19, 1],
322
- [19, 2],
323
- [19, 3],
324
- [21, 1],
325
- [21, 1],
326
- [21, 2],
327
- [21, 2],
328
- [21, 1],
329
- [29, 3],
330
- [30, 3],
331
- [30, 3],
332
- [30, 4],
333
- [32, 2],
334
- [32, 2],
335
- [32, 2],
336
- [32, 2],
337
- [32, 2],
338
- [32, 2],
339
- [32, 2],
340
- [31, 1],
341
- [20, 1],
342
- [20, 2],
343
- [20, 3],
344
- [43, 2],
345
- [43, 2],
346
- [43, 2],
347
- [43, 2],
348
- [43, 2],
349
- [43, 2],
350
- [43, 2],
351
- [43, 2],
352
- [43, 2],
353
- [43, 2],
354
- [43, 2],
355
- [43, 2],
356
- [43, 2],
357
- [43, 2],
358
- [43, 2],
359
- [43, 2],
360
- [43, 2],
361
- [43, 2],
362
- [43, 2],
363
- [43, 2],
364
- [43, 1],
365
- [43, 2],
366
- [43, 2],
367
- [43, 2],
368
- [43, 2],
369
- [43, 2],
370
- [43, 2],
371
- [43, 2],
372
- [43, 2],
373
- [43, 2],
374
- [43, 2],
375
- [43, 2],
376
- [35, 1],
377
- [35, 2],
378
- [75, 1],
379
- [75, 2],
380
- [75, 1],
381
- [75, 1]
382
- ],
383
- performAction: /* @__PURE__ */ e(function(e, t, n, r, i, a, o) {
384
- var s = a.length - 1;
385
- switch (i) {
386
- case 3:
387
- r.setDirection("TB");
388
- break;
389
- case 4:
390
- r.setDirection("BT");
391
- break;
392
- case 5:
393
- r.setDirection("RL");
394
- break;
395
- case 6:
396
- r.setDirection("LR");
397
- break;
398
- case 8:
399
- case 9:
400
- case 10:
401
- case 11:
402
- case 12:
403
- r.setC4Type(a[s - 3]);
404
- break;
405
- case 19:
406
- r.setTitle(a[s].substring(6)), this.$ = a[s].substring(6);
407
- break;
408
- case 20:
409
- r.setAccDescription(a[s].substring(15)), this.$ = a[s].substring(15);
410
- break;
411
- case 21:
412
- this.$ = a[s].trim(), r.setTitle(this.$);
413
- break;
414
- case 22:
415
- case 23:
416
- this.$ = a[s].trim(), r.setAccDescription(this.$);
417
- break;
418
- case 28:
419
- a[s].splice(2, 0, "ENTERPRISE"), r.addPersonOrSystemBoundary(...a[s]), this.$ = a[s];
420
- break;
421
- case 29:
422
- a[s].splice(2, 0, "SYSTEM"), r.addPersonOrSystemBoundary(...a[s]), this.$ = a[s];
423
- break;
424
- case 30:
425
- r.addPersonOrSystemBoundary(...a[s]), this.$ = a[s];
426
- break;
427
- case 31:
428
- a[s].splice(2, 0, "CONTAINER"), r.addContainerBoundary(...a[s]), this.$ = a[s];
429
- break;
430
- case 32:
431
- r.addDeploymentNode("node", ...a[s]), this.$ = a[s];
432
- break;
433
- case 33:
434
- r.addDeploymentNode("nodeL", ...a[s]), this.$ = a[s];
435
- break;
436
- case 34:
437
- r.addDeploymentNode("nodeR", ...a[s]), this.$ = a[s];
438
- break;
439
- case 35:
440
- r.popBoundaryParseStack();
441
- break;
442
- case 39:
443
- r.addPersonOrSystem("person", ...a[s]), this.$ = a[s];
444
- break;
445
- case 40:
446
- r.addPersonOrSystem("external_person", ...a[s]), this.$ = a[s];
447
- break;
448
- case 41:
449
- r.addPersonOrSystem("system", ...a[s]), this.$ = a[s];
450
- break;
451
- case 42:
452
- r.addPersonOrSystem("system_db", ...a[s]), this.$ = a[s];
453
- break;
454
- case 43:
455
- r.addPersonOrSystem("system_queue", ...a[s]), this.$ = a[s];
456
- break;
457
- case 44:
458
- r.addPersonOrSystem("external_system", ...a[s]), this.$ = a[s];
459
- break;
460
- case 45:
461
- r.addPersonOrSystem("external_system_db", ...a[s]), this.$ = a[s];
462
- break;
463
- case 46:
464
- r.addPersonOrSystem("external_system_queue", ...a[s]), this.$ = a[s];
465
- break;
466
- case 47:
467
- r.addContainer("container", ...a[s]), this.$ = a[s];
468
- break;
469
- case 48:
470
- r.addContainer("container_db", ...a[s]), this.$ = a[s];
471
- break;
472
- case 49:
473
- r.addContainer("container_queue", ...a[s]), this.$ = a[s];
474
- break;
475
- case 50:
476
- r.addContainer("external_container", ...a[s]), this.$ = a[s];
477
- break;
478
- case 51:
479
- r.addContainer("external_container_db", ...a[s]), this.$ = a[s];
480
- break;
481
- case 52:
482
- r.addContainer("external_container_queue", ...a[s]), this.$ = a[s];
483
- break;
484
- case 53:
485
- r.addComponent("component", ...a[s]), this.$ = a[s];
486
- break;
487
- case 54:
488
- r.addComponent("component_db", ...a[s]), this.$ = a[s];
489
- break;
490
- case 55:
491
- r.addComponent("component_queue", ...a[s]), this.$ = a[s];
492
- break;
493
- case 56:
494
- r.addComponent("external_component", ...a[s]), this.$ = a[s];
495
- break;
496
- case 57:
497
- r.addComponent("external_component_db", ...a[s]), this.$ = a[s];
498
- break;
499
- case 58:
500
- r.addComponent("external_component_queue", ...a[s]), this.$ = a[s];
501
- break;
502
- case 60:
503
- r.addRel("rel", ...a[s]), this.$ = a[s];
504
- break;
505
- case 61:
506
- r.addRel("birel", ...a[s]), this.$ = a[s];
507
- break;
508
- case 62:
509
- r.addRel("rel_u", ...a[s]), this.$ = a[s];
510
- break;
511
- case 63:
512
- r.addRel("rel_d", ...a[s]), this.$ = a[s];
513
- break;
514
- case 64:
515
- r.addRel("rel_l", ...a[s]), this.$ = a[s];
516
- break;
517
- case 65:
518
- r.addRel("rel_r", ...a[s]), this.$ = a[s];
519
- break;
520
- case 66:
521
- r.addRel("rel_b", ...a[s]), this.$ = a[s];
522
- break;
523
- case 67:
524
- a[s].splice(0, 1), r.addRel("rel", ...a[s]), this.$ = a[s];
525
- break;
526
- case 68:
527
- r.updateElStyle("update_el_style", ...a[s]), this.$ = a[s];
528
- break;
529
- case 69:
530
- r.updateRelStyle("update_rel_style", ...a[s]), this.$ = a[s];
531
- break;
532
- case 70:
533
- r.updateLayoutConfig("update_layout_config", ...a[s]), this.$ = a[s];
534
- break;
535
- case 71:
536
- this.$ = [a[s]];
537
- break;
538
- case 72:
539
- a[s].unshift(a[s - 1]), this.$ = a[s];
540
- break;
541
- case 73:
542
- case 75:
543
- this.$ = a[s].trim();
544
- break;
545
- case 74:
546
- let e = {};
547
- e[a[s - 1].trim()] = a[s].trim(), this.$ = e;
548
- break;
549
- case 76:
550
- this.$ = "";
551
- break;
552
- }
553
- }, "anonymous"),
554
- table: [
555
- {
556
- 3: 1,
557
- 4: 2,
558
- 5: 3,
559
- 6: [1, 5],
560
- 7: [1, 6],
561
- 8: [1, 7],
562
- 9: [1, 8],
563
- 10: 4,
564
- 11: [1, 9],
565
- 15: [1, 10],
566
- 16: [1, 11],
567
- 17: [1, 12],
568
- 18: [1, 13]
569
- },
570
- { 1: [3] },
571
- { 1: [2, 1] },
572
- { 1: [2, 2] },
573
- { 1: [2, 7] },
574
- { 1: [2, 3] },
575
- { 1: [2, 4] },
576
- { 1: [2, 5] },
577
- { 1: [2, 6] },
578
- { 12: [1, 14] },
579
- { 12: [1, 15] },
580
- { 12: [1, 16] },
581
- { 12: [1, 17] },
582
- { 12: [1, 18] },
583
- {
584
- 13: 19,
585
- 19: 20,
586
- 20: 21,
587
- 21: 22,
588
- 22: n,
589
- 23: r,
590
- 24: i,
591
- 26: a,
592
- 28: o,
593
- 29: 49,
594
- 30: 61,
595
- 32: 62,
596
- 34: s,
597
- 36: l,
598
- 37: u,
599
- 38: d,
600
- 39: f,
601
- 40: p,
602
- 41: m,
603
- 43: 23,
604
- 44: h,
605
- 45: g,
606
- 46: _,
607
- 47: v,
608
- 48: y,
609
- 49: b,
610
- 50: x,
611
- 51: S,
612
- 52: C,
613
- 53: w,
614
- 54: T,
615
- 55: E,
616
- 56: D,
617
- 57: O,
618
- 58: k,
619
- 59: A,
620
- 60: j,
621
- 61: M,
622
- 62: N,
623
- 63: P,
624
- 64: F,
625
- 65: I,
626
- 66: L,
627
- 67: R,
628
- 68: z,
629
- 69: B,
630
- 70: V,
631
- 71: H,
632
- 72: U,
633
- 73: ee,
634
- 74: te
635
- },
636
- {
637
- 13: 70,
638
- 19: 20,
639
- 20: 21,
640
- 21: 22,
641
- 22: n,
642
- 23: r,
643
- 24: i,
644
- 26: a,
645
- 28: o,
646
- 29: 49,
647
- 30: 61,
648
- 32: 62,
649
- 34: s,
650
- 36: l,
651
- 37: u,
652
- 38: d,
653
- 39: f,
654
- 40: p,
655
- 41: m,
656
- 43: 23,
657
- 44: h,
658
- 45: g,
659
- 46: _,
660
- 47: v,
661
- 48: y,
662
- 49: b,
663
- 50: x,
664
- 51: S,
665
- 52: C,
666
- 53: w,
667
- 54: T,
668
- 55: E,
669
- 56: D,
670
- 57: O,
671
- 58: k,
672
- 59: A,
673
- 60: j,
674
- 61: M,
675
- 62: N,
676
- 63: P,
677
- 64: F,
678
- 65: I,
679
- 66: L,
680
- 67: R,
681
- 68: z,
682
- 69: B,
683
- 70: V,
684
- 71: H,
685
- 72: U,
686
- 73: ee,
687
- 74: te
688
- },
689
- {
690
- 13: 71,
691
- 19: 20,
692
- 20: 21,
693
- 21: 22,
694
- 22: n,
695
- 23: r,
696
- 24: i,
697
- 26: a,
698
- 28: o,
699
- 29: 49,
700
- 30: 61,
701
- 32: 62,
702
- 34: s,
703
- 36: l,
704
- 37: u,
705
- 38: d,
706
- 39: f,
707
- 40: p,
708
- 41: m,
709
- 43: 23,
710
- 44: h,
711
- 45: g,
712
- 46: _,
713
- 47: v,
714
- 48: y,
715
- 49: b,
716
- 50: x,
717
- 51: S,
718
- 52: C,
719
- 53: w,
720
- 54: T,
721
- 55: E,
722
- 56: D,
723
- 57: O,
724
- 58: k,
725
- 59: A,
726
- 60: j,
727
- 61: M,
728
- 62: N,
729
- 63: P,
730
- 64: F,
731
- 65: I,
732
- 66: L,
733
- 67: R,
734
- 68: z,
735
- 69: B,
736
- 70: V,
737
- 71: H,
738
- 72: U,
739
- 73: ee,
740
- 74: te
741
- },
742
- {
743
- 13: 72,
744
- 19: 20,
745
- 20: 21,
746
- 21: 22,
747
- 22: n,
748
- 23: r,
749
- 24: i,
750
- 26: a,
751
- 28: o,
752
- 29: 49,
753
- 30: 61,
754
- 32: 62,
755
- 34: s,
756
- 36: l,
757
- 37: u,
758
- 38: d,
759
- 39: f,
760
- 40: p,
761
- 41: m,
762
- 43: 23,
763
- 44: h,
764
- 45: g,
765
- 46: _,
766
- 47: v,
767
- 48: y,
768
- 49: b,
769
- 50: x,
770
- 51: S,
771
- 52: C,
772
- 53: w,
773
- 54: T,
774
- 55: E,
775
- 56: D,
776
- 57: O,
777
- 58: k,
778
- 59: A,
779
- 60: j,
780
- 61: M,
781
- 62: N,
782
- 63: P,
783
- 64: F,
784
- 65: I,
785
- 66: L,
786
- 67: R,
787
- 68: z,
788
- 69: B,
789
- 70: V,
790
- 71: H,
791
- 72: U,
792
- 73: ee,
793
- 74: te
794
- },
795
- {
796
- 13: 73,
797
- 19: 20,
798
- 20: 21,
799
- 21: 22,
800
- 22: n,
801
- 23: r,
802
- 24: i,
803
- 26: a,
804
- 28: o,
805
- 29: 49,
806
- 30: 61,
807
- 32: 62,
808
- 34: s,
809
- 36: l,
810
- 37: u,
811
- 38: d,
812
- 39: f,
813
- 40: p,
814
- 41: m,
815
- 43: 23,
816
- 44: h,
817
- 45: g,
818
- 46: _,
819
- 47: v,
820
- 48: y,
821
- 49: b,
822
- 50: x,
823
- 51: S,
824
- 52: C,
825
- 53: w,
826
- 54: T,
827
- 55: E,
828
- 56: D,
829
- 57: O,
830
- 58: k,
831
- 59: A,
832
- 60: j,
833
- 61: M,
834
- 62: N,
835
- 63: P,
836
- 64: F,
837
- 65: I,
838
- 66: L,
839
- 67: R,
840
- 68: z,
841
- 69: B,
842
- 70: V,
843
- 71: H,
844
- 72: U,
845
- 73: ee,
846
- 74: te
847
- },
848
- { 14: [1, 74] },
849
- t(ne, [2, 13], {
850
- 43: 23,
851
- 29: 49,
852
- 30: 61,
853
- 32: 62,
854
- 20: 75,
855
- 34: s,
856
- 36: l,
857
- 37: u,
858
- 38: d,
859
- 39: f,
860
- 40: p,
861
- 41: m,
862
- 44: h,
863
- 45: g,
864
- 46: _,
865
- 47: v,
866
- 48: y,
867
- 49: b,
868
- 50: x,
869
- 51: S,
870
- 52: C,
871
- 53: w,
872
- 54: T,
873
- 55: E,
874
- 56: D,
875
- 57: O,
876
- 58: k,
877
- 59: A,
878
- 60: j,
879
- 61: M,
880
- 62: N,
881
- 63: P,
882
- 64: F,
883
- 65: I,
884
- 66: L,
885
- 67: R,
886
- 68: z,
887
- 69: B,
888
- 70: V,
889
- 71: H,
890
- 72: U,
891
- 73: ee,
892
- 74: te
893
- }),
894
- t(ne, [2, 14]),
895
- t(re, [2, 16], { 12: [1, 76] }),
896
- t(ne, [2, 36], { 12: [1, 77] }),
897
- t(ie, [2, 19]),
898
- t(ie, [2, 20]),
899
- { 25: [1, 78] },
900
- { 27: [1, 79] },
901
- t(ie, [2, 23]),
902
- {
903
- 35: 80,
904
- 75: 81,
905
- 76: W,
906
- 77: G,
907
- 79: K,
908
- 80: q
909
- },
910
- {
911
- 35: 86,
912
- 75: 81,
913
- 76: W,
914
- 77: G,
915
- 79: K,
916
- 80: q
917
- },
918
- {
919
- 35: 87,
920
- 75: 81,
921
- 76: W,
922
- 77: G,
923
- 79: K,
924
- 80: q
925
- },
926
- {
927
- 35: 88,
928
- 75: 81,
929
- 76: W,
930
- 77: G,
931
- 79: K,
932
- 80: q
933
- },
934
- {
935
- 35: 89,
936
- 75: 81,
937
- 76: W,
938
- 77: G,
939
- 79: K,
940
- 80: q
941
- },
942
- {
943
- 35: 90,
944
- 75: 81,
945
- 76: W,
946
- 77: G,
947
- 79: K,
948
- 80: q
949
- },
950
- {
951
- 35: 91,
952
- 75: 81,
953
- 76: W,
954
- 77: G,
955
- 79: K,
956
- 80: q
957
- },
958
- {
959
- 35: 92,
960
- 75: 81,
961
- 76: W,
962
- 77: G,
963
- 79: K,
964
- 80: q
965
- },
966
- {
967
- 35: 93,
968
- 75: 81,
969
- 76: W,
970
- 77: G,
971
- 79: K,
972
- 80: q
973
- },
974
- {
975
- 35: 94,
976
- 75: 81,
977
- 76: W,
978
- 77: G,
979
- 79: K,
980
- 80: q
981
- },
982
- {
983
- 35: 95,
984
- 75: 81,
985
- 76: W,
986
- 77: G,
987
- 79: K,
988
- 80: q
989
- },
990
- {
991
- 35: 96,
992
- 75: 81,
993
- 76: W,
994
- 77: G,
995
- 79: K,
996
- 80: q
997
- },
998
- {
999
- 35: 97,
1000
- 75: 81,
1001
- 76: W,
1002
- 77: G,
1003
- 79: K,
1004
- 80: q
1005
- },
1006
- {
1007
- 35: 98,
1008
- 75: 81,
1009
- 76: W,
1010
- 77: G,
1011
- 79: K,
1012
- 80: q
1013
- },
1014
- {
1015
- 35: 99,
1016
- 75: 81,
1017
- 76: W,
1018
- 77: G,
1019
- 79: K,
1020
- 80: q
1021
- },
1022
- {
1023
- 35: 100,
1024
- 75: 81,
1025
- 76: W,
1026
- 77: G,
1027
- 79: K,
1028
- 80: q
1029
- },
1030
- {
1031
- 35: 101,
1032
- 75: 81,
1033
- 76: W,
1034
- 77: G,
1035
- 79: K,
1036
- 80: q
1037
- },
1038
- {
1039
- 35: 102,
1040
- 75: 81,
1041
- 76: W,
1042
- 77: G,
1043
- 79: K,
1044
- 80: q
1045
- },
1046
- {
1047
- 35: 103,
1048
- 75: 81,
1049
- 76: W,
1050
- 77: G,
1051
- 79: K,
1052
- 80: q
1053
- },
1054
- {
1055
- 35: 104,
1056
- 75: 81,
1057
- 76: W,
1058
- 77: G,
1059
- 79: K,
1060
- 80: q
1061
- },
1062
- t(J, [2, 59]),
1063
- {
1064
- 35: 105,
1065
- 75: 81,
1066
- 76: W,
1067
- 77: G,
1068
- 79: K,
1069
- 80: q
1070
- },
1071
- {
1072
- 35: 106,
1073
- 75: 81,
1074
- 76: W,
1075
- 77: G,
1076
- 79: K,
1077
- 80: q
1078
- },
1079
- {
1080
- 35: 107,
1081
- 75: 81,
1082
- 76: W,
1083
- 77: G,
1084
- 79: K,
1085
- 80: q
1086
- },
1087
- {
1088
- 35: 108,
1089
- 75: 81,
1090
- 76: W,
1091
- 77: G,
1092
- 79: K,
1093
- 80: q
1094
- },
1095
- {
1096
- 35: 109,
1097
- 75: 81,
1098
- 76: W,
1099
- 77: G,
1100
- 79: K,
1101
- 80: q
1102
- },
1103
- {
1104
- 35: 110,
1105
- 75: 81,
1106
- 76: W,
1107
- 77: G,
1108
- 79: K,
1109
- 80: q
1110
- },
1111
- {
1112
- 35: 111,
1113
- 75: 81,
1114
- 76: W,
1115
- 77: G,
1116
- 79: K,
1117
- 80: q
1118
- },
1119
- {
1120
- 35: 112,
1121
- 75: 81,
1122
- 76: W,
1123
- 77: G,
1124
- 79: K,
1125
- 80: q
1126
- },
1127
- {
1128
- 35: 113,
1129
- 75: 81,
1130
- 76: W,
1131
- 77: G,
1132
- 79: K,
1133
- 80: q
1134
- },
1135
- {
1136
- 35: 114,
1137
- 75: 81,
1138
- 76: W,
1139
- 77: G,
1140
- 79: K,
1141
- 80: q
1142
- },
1143
- {
1144
- 35: 115,
1145
- 75: 81,
1146
- 76: W,
1147
- 77: G,
1148
- 79: K,
1149
- 80: q
1150
- },
1151
- {
1152
- 20: 116,
1153
- 29: 49,
1154
- 30: 61,
1155
- 32: 62,
1156
- 34: s,
1157
- 36: l,
1158
- 37: u,
1159
- 38: d,
1160
- 39: f,
1161
- 40: p,
1162
- 41: m,
1163
- 43: 23,
1164
- 44: h,
1165
- 45: g,
1166
- 46: _,
1167
- 47: v,
1168
- 48: y,
1169
- 49: b,
1170
- 50: x,
1171
- 51: S,
1172
- 52: C,
1173
- 53: w,
1174
- 54: T,
1175
- 55: E,
1176
- 56: D,
1177
- 57: O,
1178
- 58: k,
1179
- 59: A,
1180
- 60: j,
1181
- 61: M,
1182
- 62: N,
1183
- 63: P,
1184
- 64: F,
1185
- 65: I,
1186
- 66: L,
1187
- 67: R,
1188
- 68: z,
1189
- 69: B,
1190
- 70: V,
1191
- 71: H,
1192
- 72: U,
1193
- 73: ee,
1194
- 74: te
1195
- },
1196
- {
1197
- 12: [1, 118],
1198
- 33: [1, 117]
1199
- },
1200
- {
1201
- 35: 119,
1202
- 75: 81,
1203
- 76: W,
1204
- 77: G,
1205
- 79: K,
1206
- 80: q
1207
- },
1208
- {
1209
- 35: 120,
1210
- 75: 81,
1211
- 76: W,
1212
- 77: G,
1213
- 79: K,
1214
- 80: q
1215
- },
1216
- {
1217
- 35: 121,
1218
- 75: 81,
1219
- 76: W,
1220
- 77: G,
1221
- 79: K,
1222
- 80: q
1223
- },
1224
- {
1225
- 35: 122,
1226
- 75: 81,
1227
- 76: W,
1228
- 77: G,
1229
- 79: K,
1230
- 80: q
1231
- },
1232
- {
1233
- 35: 123,
1234
- 75: 81,
1235
- 76: W,
1236
- 77: G,
1237
- 79: K,
1238
- 80: q
1239
- },
1240
- {
1241
- 35: 124,
1242
- 75: 81,
1243
- 76: W,
1244
- 77: G,
1245
- 79: K,
1246
- 80: q
1247
- },
1248
- {
1249
- 35: 125,
1250
- 75: 81,
1251
- 76: W,
1252
- 77: G,
1253
- 79: K,
1254
- 80: q
1255
- },
1256
- { 14: [1, 126] },
1257
- { 14: [1, 127] },
1258
- { 14: [1, 128] },
1259
- { 14: [1, 129] },
1260
- { 1: [2, 8] },
1261
- t(ne, [2, 15]),
1262
- t(re, [2, 17], {
1263
- 21: 22,
1264
- 19: 130,
1265
- 22: n,
1266
- 23: r,
1267
- 24: i,
1268
- 26: a,
1269
- 28: o
1270
- }),
1271
- t(ne, [2, 37], {
1272
- 19: 20,
1273
- 20: 21,
1274
- 21: 22,
1275
- 43: 23,
1276
- 29: 49,
1277
- 30: 61,
1278
- 32: 62,
1279
- 13: 131,
1280
- 22: n,
1281
- 23: r,
1282
- 24: i,
1283
- 26: a,
1284
- 28: o,
1285
- 34: s,
1286
- 36: l,
1287
- 37: u,
1288
- 38: d,
1289
- 39: f,
1290
- 40: p,
1291
- 41: m,
1292
- 44: h,
1293
- 45: g,
1294
- 46: _,
1295
- 47: v,
1296
- 48: y,
1297
- 49: b,
1298
- 50: x,
1299
- 51: S,
1300
- 52: C,
1301
- 53: w,
1302
- 54: T,
1303
- 55: E,
1304
- 56: D,
1305
- 57: O,
1306
- 58: k,
1307
- 59: A,
1308
- 60: j,
1309
- 61: M,
1310
- 62: N,
1311
- 63: P,
1312
- 64: F,
1313
- 65: I,
1314
- 66: L,
1315
- 67: R,
1316
- 68: z,
1317
- 69: B,
1318
- 70: V,
1319
- 71: H,
1320
- 72: U,
1321
- 73: ee,
1322
- 74: te
1323
- }),
1324
- t(ie, [2, 21]),
1325
- t(ie, [2, 22]),
1326
- t(J, [2, 39]),
1327
- t(ae, [2, 71], {
1328
- 75: 81,
1329
- 35: 132,
1330
- 76: W,
1331
- 77: G,
1332
- 79: K,
1333
- 80: q
1334
- }),
1335
- t(oe, [2, 73]),
1336
- { 78: [1, 133] },
1337
- t(oe, [2, 75]),
1338
- t(oe, [2, 76]),
1339
- t(J, [2, 40]),
1340
- t(J, [2, 41]),
1341
- t(J, [2, 42]),
1342
- t(J, [2, 43]),
1343
- t(J, [2, 44]),
1344
- t(J, [2, 45]),
1345
- t(J, [2, 46]),
1346
- t(J, [2, 47]),
1347
- t(J, [2, 48]),
1348
- t(J, [2, 49]),
1349
- t(J, [2, 50]),
1350
- t(J, [2, 51]),
1351
- t(J, [2, 52]),
1352
- t(J, [2, 53]),
1353
- t(J, [2, 54]),
1354
- t(J, [2, 55]),
1355
- t(J, [2, 56]),
1356
- t(J, [2, 57]),
1357
- t(J, [2, 58]),
1358
- t(J, [2, 60]),
1359
- t(J, [2, 61]),
1360
- t(J, [2, 62]),
1361
- t(J, [2, 63]),
1362
- t(J, [2, 64]),
1363
- t(J, [2, 65]),
1364
- t(J, [2, 66]),
1365
- t(J, [2, 67]),
1366
- t(J, [2, 68]),
1367
- t(J, [2, 69]),
1368
- t(J, [2, 70]),
1369
- {
1370
- 31: 134,
1371
- 42: [1, 135]
1372
- },
1373
- { 12: [1, 136] },
1374
- { 33: [1, 137] },
1375
- t(se, [2, 28]),
1376
- t(se, [2, 29]),
1377
- t(se, [2, 30]),
1378
- t(se, [2, 31]),
1379
- t(se, [2, 32]),
1380
- t(se, [2, 33]),
1381
- t(se, [2, 34]),
1382
- { 1: [2, 9] },
1383
- { 1: [2, 10] },
1384
- { 1: [2, 11] },
1385
- { 1: [2, 12] },
1386
- t(re, [2, 18]),
1387
- t(ne, [2, 38]),
1388
- t(ae, [2, 72]),
1389
- t(oe, [2, 74]),
1390
- t(J, [2, 24]),
1391
- t(J, [2, 35]),
1392
- t(ce, [2, 25]),
1393
- t(ce, [2, 26], { 12: [1, 138] }),
1394
- t(ce, [2, 27])
1395
- ],
1396
- defaultActions: {
1397
- 2: [2, 1],
1398
- 3: [2, 2],
1399
- 4: [2, 7],
1400
- 5: [2, 3],
1401
- 6: [2, 4],
1402
- 7: [2, 5],
1403
- 8: [2, 6],
1404
- 74: [2, 8],
1405
- 126: [2, 9],
1406
- 127: [2, 10],
1407
- 128: [2, 11],
1408
- 129: [2, 12]
1409
- },
1410
- parseError: /* @__PURE__ */ e(function(e, t) {
1411
- if (t.recoverable) this.trace(e);
1412
- else {
1413
- var n = Error(e);
1414
- throw n.hash = t, n;
1415
- }
1416
- }, "parseError"),
1417
- parse: /* @__PURE__ */ e(function(t) {
1418
- var n = this, r = [0], i = [], a = [null], o = [], s = this.table, l = "", u = 0, d = 0, f = 0, p = 2, m = 1, h = o.slice.call(arguments, 1), g = Object.create(this.lexer), _ = { yy: {} };
1419
- for (var v in this.yy) Object.prototype.hasOwnProperty.call(this.yy, v) && (_.yy[v] = this.yy[v]);
1420
- g.setInput(t, _.yy), _.yy.lexer = g, _.yy.parser = this, g.yylloc === void 0 && (g.yylloc = {});
1421
- var y = g.yylloc;
1422
- o.push(y);
1423
- var b = g.options && g.options.ranges;
1424
- typeof _.yy.parseError == "function" ? this.parseError = _.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
1425
- function x(e) {
1426
- r.length -= 2 * e, a.length -= e, o.length -= e;
1427
- }
1428
- e(x, "popStack");
1429
- function S() {
1430
- var e = i.pop() || g.lex() || m;
1431
- return typeof e != "number" && (e instanceof Array && (i = e, e = i.pop()), e = n.symbols_[e] || e), e;
1432
- }
1433
- e(S, "lex");
1434
- for (var C, w, T, E, D, O = {}, k, A, j, M;;) {
1435
- if (T = r[r.length - 1], this.defaultActions[T] ? E = this.defaultActions[T] : (C == null && (C = S()), E = s[T] && s[T][C]), E === void 0 || !E.length || !E[0]) {
1436
- var N = "";
1437
- for (k in M = [], s[T]) this.terminals_[k] && k > p && M.push("'" + this.terminals_[k] + "'");
1438
- N = g.showPosition ? "Parse error on line " + (u + 1) + ":\n" + g.showPosition() + "\nExpecting " + M.join(", ") + ", got '" + (this.terminals_[C] || C) + "'" : "Parse error on line " + (u + 1) + ": Unexpected " + (C == m ? "end of input" : "'" + (this.terminals_[C] || C) + "'"), this.parseError(N, {
1439
- text: g.match,
1440
- token: this.terminals_[C] || C,
1441
- line: g.yylineno,
1442
- loc: y,
1443
- expected: M
1444
- });
1445
- }
1446
- if (E[0] instanceof Array && E.length > 1) throw Error("Parse Error: multiple actions possible at state: " + T + ", token: " + C);
1447
- switch (E[0]) {
1448
- case 1:
1449
- r.push(C), a.push(g.yytext), o.push(g.yylloc), r.push(E[1]), C = null, w ? (C = w, w = null) : (d = g.yyleng, l = g.yytext, u = g.yylineno, y = g.yylloc, f > 0 && f--);
1450
- break;
1451
- case 2:
1452
- if (A = this.productions_[E[1]][1], O.$ = a[a.length - A], O._$ = {
1453
- first_line: o[o.length - (A || 1)].first_line,
1454
- last_line: o[o.length - 1].last_line,
1455
- first_column: o[o.length - (A || 1)].first_column,
1456
- last_column: o[o.length - 1].last_column
1457
- }, b && (O._$.range = [o[o.length - (A || 1)].range[0], o[o.length - 1].range[1]]), D = this.performAction.apply(O, [
1458
- l,
1459
- d,
1460
- u,
1461
- _.yy,
1462
- E[1],
1463
- a,
1464
- o
1465
- ].concat(h)), D !== void 0) return D;
1466
- A && (r = r.slice(0, -1 * A * 2), a = a.slice(0, -1 * A), o = o.slice(0, -1 * A)), r.push(this.productions_[E[1]][0]), a.push(O.$), o.push(O._$), j = s[r[r.length - 2]][r[r.length - 1]], r.push(j);
1467
- break;
1468
- case 3: return !0;
1469
- }
1470
- }
1471
- return !0;
1472
- }, "parse")
1473
- };
1474
- le.lexer = /* @__PURE__ */ (function() {
1475
- return {
1476
- EOF: 1,
1477
- parseError: /* @__PURE__ */ e(function(e, t) {
1478
- if (this.yy.parser) this.yy.parser.parseError(e, t);
1479
- else throw Error(e);
1480
- }, "parseError"),
1481
- setInput: /* @__PURE__ */ e(function(e, t) {
1482
- return this.yy = t || this.yy || {}, this._input = e, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
1483
- first_line: 1,
1484
- first_column: 0,
1485
- last_line: 1,
1486
- last_column: 0
1487
- }, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
1488
- }, "setInput"),
1489
- input: /* @__PURE__ */ e(function() {
1490
- var e = this._input[0];
1491
- return this.yytext += e, this.yyleng++, this.offset++, this.match += e, this.matched += e, e.match(/(?:\r\n?|\n).*/g) ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), e;
1492
- }, "input"),
1493
- unput: /* @__PURE__ */ e(function(e) {
1494
- var t = e.length, n = e.split(/(?:\r\n?|\n)/g);
1495
- this._input = e + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - t), this.offset -= t;
1496
- var r = this.match.split(/(?:\r\n?|\n)/g);
1497
- this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), n.length - 1 && (this.yylineno -= n.length - 1);
1498
- var i = this.yylloc.range;
1499
- return this.yylloc = {
1500
- first_line: this.yylloc.first_line,
1501
- last_line: this.yylineno + 1,
1502
- first_column: this.yylloc.first_column,
1503
- last_column: n ? (n.length === r.length ? this.yylloc.first_column : 0) + r[r.length - n.length].length - n[0].length : this.yylloc.first_column - t
1504
- }, this.options.ranges && (this.yylloc.range = [i[0], i[0] + this.yyleng - t]), this.yyleng = this.yytext.length, this;
1505
- }, "unput"),
1506
- more: /* @__PURE__ */ e(function() {
1507
- return this._more = !0, this;
1508
- }, "more"),
1509
- reject: /* @__PURE__ */ e(function() {
1510
- if (this.options.backtrack_lexer) this._backtrack = !0;
1511
- else return this.parseError("Lexical error on line " + (this.yylineno + 1) + ". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n" + this.showPosition(), {
1512
- text: "",
1513
- token: null,
1514
- line: this.yylineno
1515
- });
1516
- return this;
1517
- }, "reject"),
1518
- less: /* @__PURE__ */ e(function(e) {
1519
- this.unput(this.match.slice(e));
1520
- }, "less"),
1521
- pastInput: /* @__PURE__ */ e(function() {
1522
- var e = this.matched.substr(0, this.matched.length - this.match.length);
1523
- return (e.length > 20 ? "..." : "") + e.substr(-20).replace(/\n/g, "");
1524
- }, "pastInput"),
1525
- upcomingInput: /* @__PURE__ */ e(function() {
1526
- var e = this.match;
1527
- return e.length < 20 && (e += this._input.substr(0, 20 - e.length)), (e.substr(0, 20) + (e.length > 20 ? "..." : "")).replace(/\n/g, "");
1528
- }, "upcomingInput"),
1529
- showPosition: /* @__PURE__ */ e(function() {
1530
- var e = this.pastInput(), t = Array(e.length + 1).join("-");
1531
- return e + this.upcomingInput() + "\n" + t + "^";
1532
- }, "showPosition"),
1533
- test_match: /* @__PURE__ */ e(function(e, t) {
1534
- var n, r, i;
1535
- if (this.options.backtrack_lexer && (i = {
1536
- yylineno: this.yylineno,
1537
- yylloc: {
1538
- first_line: this.yylloc.first_line,
1539
- last_line: this.last_line,
1540
- first_column: this.yylloc.first_column,
1541
- last_column: this.yylloc.last_column
1542
- },
1543
- yytext: this.yytext,
1544
- match: this.match,
1545
- matches: this.matches,
1546
- matched: this.matched,
1547
- yyleng: this.yyleng,
1548
- offset: this.offset,
1549
- _more: this._more,
1550
- _input: this._input,
1551
- yy: this.yy,
1552
- conditionStack: this.conditionStack.slice(0),
1553
- done: this.done
1554
- }, this.options.ranges && (i.yylloc.range = this.yylloc.range.slice(0))), r = e[0].match(/(?:\r\n?|\n).*/g), r && (this.yylineno += r.length), this.yylloc = {
1555
- first_line: this.yylloc.last_line,
1556
- last_line: this.yylineno + 1,
1557
- first_column: this.yylloc.last_column,
1558
- last_column: r ? r[r.length - 1].length - r[r.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + e[0].length
1559
- }, this.yytext += e[0], this.match += e[0], this.matches = e, this.yyleng = this.yytext.length, this.options.ranges && (this.yylloc.range = [this.offset, this.offset += this.yyleng]), this._more = !1, this._backtrack = !1, this._input = this._input.slice(e[0].length), this.matched += e[0], n = this.performAction.call(this, this.yy, this, t, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), n) return n;
1560
- if (this._backtrack) {
1561
- for (var a in i) this[a] = i[a];
1562
- return !1;
1563
- }
1564
- return !1;
1565
- }, "test_match"),
1566
- next: /* @__PURE__ */ e(function() {
1567
- if (this.done) return this.EOF;
1568
- this._input || (this.done = !0);
1569
- var e, t, n, r;
1570
- this._more || (this.yytext = "", this.match = "");
1571
- for (var i = this._currentRules(), a = 0; a < i.length; a++) if (n = this._input.match(this.rules[i[a]]), n && (!t || n[0].length > t[0].length)) {
1572
- if (t = n, r = a, this.options.backtrack_lexer) {
1573
- if (e = this.test_match(n, i[a]), e !== !1) return e;
1574
- if (this._backtrack) {
1575
- t = !1;
1576
- continue;
1577
- } else return !1;
1578
- } else if (!this.options.flex) break;
1579
- }
1580
- return t ? (e = this.test_match(t, i[r]), e === !1 ? !1 : e) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + ". Unrecognized text.\n" + this.showPosition(), {
1581
- text: "",
1582
- token: null,
1583
- line: this.yylineno
1584
- });
1585
- }, "next"),
1586
- lex: /* @__PURE__ */ e(function() {
1587
- return this.next() || this.lex();
1588
- }, "lex"),
1589
- begin: /* @__PURE__ */ e(function(e) {
1590
- this.conditionStack.push(e);
1591
- }, "begin"),
1592
- popState: /* @__PURE__ */ e(function() {
1593
- return this.conditionStack.length - 1 > 0 ? this.conditionStack.pop() : this.conditionStack[0];
1594
- }, "popState"),
1595
- _currentRules: /* @__PURE__ */ e(function() {
1596
- return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
1597
- }, "_currentRules"),
1598
- topState: /* @__PURE__ */ e(function(e) {
1599
- return e = this.conditionStack.length - 1 - Math.abs(e || 0), e >= 0 ? this.conditionStack[e] : "INITIAL";
1600
- }, "topState"),
1601
- pushState: /* @__PURE__ */ e(function(e) {
1602
- this.begin(e);
1603
- }, "pushState"),
1604
- stateStackSize: /* @__PURE__ */ e(function() {
1605
- return this.conditionStack.length;
1606
- }, "stateStackSize"),
1607
- options: {},
1608
- performAction: /* @__PURE__ */ e(function(e, t, n, r) {
1609
- switch (n) {
1610
- case 0: return 6;
1611
- case 1: return 7;
1612
- case 2: return 8;
1613
- case 3: return 9;
1614
- case 4: return 22;
1615
- case 5: return 23;
1616
- case 6: return this.begin("acc_title"), 24;
1617
- case 7: return this.popState(), "acc_title_value";
1618
- case 8: return this.begin("acc_descr"), 26;
1619
- case 9: return this.popState(), "acc_descr_value";
1620
- case 10:
1621
- this.begin("acc_descr_multiline");
1622
- break;
1623
- case 11:
1624
- this.popState();
1625
- break;
1626
- case 12: return "acc_descr_multiline_value";
1627
- case 13: break;
1628
- case 14:
1629
- c;
1630
- break;
1631
- case 15: return 12;
1632
- case 16: break;
1633
- case 17: return 11;
1634
- case 18: return 15;
1635
- case 19: return 16;
1636
- case 20: return 17;
1637
- case 21: return 18;
1638
- case 22: return this.begin("person_ext"), 45;
1639
- case 23: return this.begin("person"), 44;
1640
- case 24: return this.begin("system_ext_queue"), 51;
1641
- case 25: return this.begin("system_ext_db"), 50;
1642
- case 26: return this.begin("system_ext"), 49;
1643
- case 27: return this.begin("system_queue"), 48;
1644
- case 28: return this.begin("system_db"), 47;
1645
- case 29: return this.begin("system"), 46;
1646
- case 30: return this.begin("boundary"), 37;
1647
- case 31: return this.begin("enterprise_boundary"), 34;
1648
- case 32: return this.begin("system_boundary"), 36;
1649
- case 33: return this.begin("container_ext_queue"), 57;
1650
- case 34: return this.begin("container_ext_db"), 56;
1651
- case 35: return this.begin("container_ext"), 55;
1652
- case 36: return this.begin("container_queue"), 54;
1653
- case 37: return this.begin("container_db"), 53;
1654
- case 38: return this.begin("container"), 52;
1655
- case 39: return this.begin("container_boundary"), 38;
1656
- case 40: return this.begin("component_ext_queue"), 63;
1657
- case 41: return this.begin("component_ext_db"), 62;
1658
- case 42: return this.begin("component_ext"), 61;
1659
- case 43: return this.begin("component_queue"), 60;
1660
- case 44: return this.begin("component_db"), 59;
1661
- case 45: return this.begin("component"), 58;
1662
- case 46: return this.begin("node"), 39;
1663
- case 47: return this.begin("node"), 39;
1664
- case 48: return this.begin("node_l"), 40;
1665
- case 49: return this.begin("node_r"), 41;
1666
- case 50: return this.begin("rel"), 64;
1667
- case 51: return this.begin("birel"), 65;
1668
- case 52: return this.begin("rel_u"), 66;
1669
- case 53: return this.begin("rel_u"), 66;
1670
- case 54: return this.begin("rel_d"), 67;
1671
- case 55: return this.begin("rel_d"), 67;
1672
- case 56: return this.begin("rel_l"), 68;
1673
- case 57: return this.begin("rel_l"), 68;
1674
- case 58: return this.begin("rel_r"), 69;
1675
- case 59: return this.begin("rel_r"), 69;
1676
- case 60: return this.begin("rel_b"), 70;
1677
- case 61: return this.begin("rel_index"), 71;
1678
- case 62: return this.begin("update_el_style"), 72;
1679
- case 63: return this.begin("update_rel_style"), 73;
1680
- case 64: return this.begin("update_layout_config"), 74;
1681
- case 65: return "EOF_IN_STRUCT";
1682
- case 66: return this.begin("attribute"), "ATTRIBUTE_EMPTY";
1683
- case 67:
1684
- this.begin("attribute");
1685
- break;
1686
- case 68:
1687
- this.popState(), this.popState();
1688
- break;
1689
- case 69: return 80;
1690
- case 70: break;
1691
- case 71: return 80;
1692
- case 72:
1693
- this.begin("string");
1694
- break;
1695
- case 73:
1696
- this.popState();
1697
- break;
1698
- case 74: return "STR";
1699
- case 75:
1700
- this.begin("string_kv");
1701
- break;
1702
- case 76: return this.begin("string_kv_key"), "STR_KEY";
1703
- case 77:
1704
- this.popState(), this.begin("string_kv_value");
1705
- break;
1706
- case 78: return "STR_VALUE";
1707
- case 79:
1708
- this.popState(), this.popState();
1709
- break;
1710
- case 80: return "STR";
1711
- case 81: return "LBRACE";
1712
- case 82: return "RBRACE";
1713
- case 83: return "SPACE";
1714
- case 84: return "EOL";
1715
- case 85: return 14;
1716
- }
1717
- }, "anonymous"),
1718
- rules: [
1719
- /^(?:.*direction\s+TB[^\n]*)/,
1720
- /^(?:.*direction\s+BT[^\n]*)/,
1721
- /^(?:.*direction\s+RL[^\n]*)/,
1722
- /^(?:.*direction\s+LR[^\n]*)/,
1723
- /^(?:title\s[^#\n;]+)/,
1724
- /^(?:accDescription\s[^#\n;]+)/,
1725
- /^(?:accTitle\s*:\s*)/,
1726
- /^(?:(?!\n||)*[^\n]*)/,
1727
- /^(?:accDescr\s*:\s*)/,
1728
- /^(?:(?!\n||)*[^\n]*)/,
1729
- /^(?:accDescr\s*\{\s*)/,
1730
- /^(?:[\}])/,
1731
- /^(?:[^\}]*)/,
1732
- /^(?:%%(?!\{)*[^\n]*(\r?\n?)+)/,
1733
- /^(?:%%[^\n]*(\r?\n)*)/,
1734
- /^(?:\s*(\r?\n)+)/,
1735
- /^(?:\s+)/,
1736
- /^(?:C4Context\b)/,
1737
- /^(?:C4Container\b)/,
1738
- /^(?:C4Component\b)/,
1739
- /^(?:C4Dynamic\b)/,
1740
- /^(?:C4Deployment\b)/,
1741
- /^(?:Person_Ext\b)/,
1742
- /^(?:Person\b)/,
1743
- /^(?:SystemQueue_Ext\b)/,
1744
- /^(?:SystemDb_Ext\b)/,
1745
- /^(?:System_Ext\b)/,
1746
- /^(?:SystemQueue\b)/,
1747
- /^(?:SystemDb\b)/,
1748
- /^(?:System\b)/,
1749
- /^(?:Boundary\b)/,
1750
- /^(?:Enterprise_Boundary\b)/,
1751
- /^(?:System_Boundary\b)/,
1752
- /^(?:ContainerQueue_Ext\b)/,
1753
- /^(?:ContainerDb_Ext\b)/,
1754
- /^(?:Container_Ext\b)/,
1755
- /^(?:ContainerQueue\b)/,
1756
- /^(?:ContainerDb\b)/,
1757
- /^(?:Container\b)/,
1758
- /^(?:Container_Boundary\b)/,
1759
- /^(?:ComponentQueue_Ext\b)/,
1760
- /^(?:ComponentDb_Ext\b)/,
1761
- /^(?:Component_Ext\b)/,
1762
- /^(?:ComponentQueue\b)/,
1763
- /^(?:ComponentDb\b)/,
1764
- /^(?:Component\b)/,
1765
- /^(?:Deployment_Node\b)/,
1766
- /^(?:Node\b)/,
1767
- /^(?:Node_L\b)/,
1768
- /^(?:Node_R\b)/,
1769
- /^(?:Rel\b)/,
1770
- /^(?:BiRel\b)/,
1771
- /^(?:Rel_Up\b)/,
1772
- /^(?:Rel_U\b)/,
1773
- /^(?:Rel_Down\b)/,
1774
- /^(?:Rel_D\b)/,
1775
- /^(?:Rel_Left\b)/,
1776
- /^(?:Rel_L\b)/,
1777
- /^(?:Rel_Right\b)/,
1778
- /^(?:Rel_R\b)/,
1779
- /^(?:Rel_Back\b)/,
1780
- /^(?:RelIndex\b)/,
1781
- /^(?:UpdateElementStyle\b)/,
1782
- /^(?:UpdateRelStyle\b)/,
1783
- /^(?:UpdateLayoutConfig\b)/,
1784
- /^(?:$)/,
1785
- /^(?:[(][ ]*[,])/,
1786
- /^(?:[(])/,
1787
- /^(?:[)])/,
1788
- /^(?:,,)/,
1789
- /^(?:,)/,
1790
- /^(?:[ ]*["]["])/,
1791
- /^(?:[ ]*["])/,
1792
- /^(?:["])/,
1793
- /^(?:[^"]*)/,
1794
- /^(?:[ ]*[\$])/,
1795
- /^(?:[^=]*)/,
1796
- /^(?:[=][ ]*["])/,
1797
- /^(?:[^"]+)/,
1798
- /^(?:["])/,
1799
- /^(?:[^,]+)/,
1800
- /^(?:\{)/,
1801
- /^(?:\})/,
1802
- /^(?:[\s]+)/,
1803
- /^(?:[\n\r]+)/,
1804
- /^(?:$)/
1805
- ],
1806
- conditions: {
1807
- acc_descr_multiline: {
1808
- rules: [11, 12],
1809
- inclusive: !1
1810
- },
1811
- acc_descr: {
1812
- rules: [9],
1813
- inclusive: !1
1814
- },
1815
- acc_title: {
1816
- rules: [7],
1817
- inclusive: !1
1818
- },
1819
- string_kv_value: {
1820
- rules: [78, 79],
1821
- inclusive: !1
1822
- },
1823
- string_kv_key: {
1824
- rules: [77],
1825
- inclusive: !1
1826
- },
1827
- string_kv: {
1828
- rules: [76],
1829
- inclusive: !1
1830
- },
1831
- string: {
1832
- rules: [73, 74],
1833
- inclusive: !1
1834
- },
1835
- attribute: {
1836
- rules: [
1837
- 68,
1838
- 69,
1839
- 70,
1840
- 71,
1841
- 72,
1842
- 75,
1843
- 80
1844
- ],
1845
- inclusive: !1
1846
- },
1847
- update_layout_config: {
1848
- rules: [
1849
- 65,
1850
- 66,
1851
- 67,
1852
- 68
1853
- ],
1854
- inclusive: !1
1855
- },
1856
- update_rel_style: {
1857
- rules: [
1858
- 65,
1859
- 66,
1860
- 67,
1861
- 68
1862
- ],
1863
- inclusive: !1
1864
- },
1865
- update_el_style: {
1866
- rules: [
1867
- 65,
1868
- 66,
1869
- 67,
1870
- 68
1871
- ],
1872
- inclusive: !1
1873
- },
1874
- rel_b: {
1875
- rules: [
1876
- 65,
1877
- 66,
1878
- 67,
1879
- 68
1880
- ],
1881
- inclusive: !1
1882
- },
1883
- rel_r: {
1884
- rules: [
1885
- 65,
1886
- 66,
1887
- 67,
1888
- 68
1889
- ],
1890
- inclusive: !1
1891
- },
1892
- rel_l: {
1893
- rules: [
1894
- 65,
1895
- 66,
1896
- 67,
1897
- 68
1898
- ],
1899
- inclusive: !1
1900
- },
1901
- rel_d: {
1902
- rules: [
1903
- 65,
1904
- 66,
1905
- 67,
1906
- 68
1907
- ],
1908
- inclusive: !1
1909
- },
1910
- rel_u: {
1911
- rules: [
1912
- 65,
1913
- 66,
1914
- 67,
1915
- 68
1916
- ],
1917
- inclusive: !1
1918
- },
1919
- rel_bi: {
1920
- rules: [],
1921
- inclusive: !1
1922
- },
1923
- rel: {
1924
- rules: [
1925
- 65,
1926
- 66,
1927
- 67,
1928
- 68
1929
- ],
1930
- inclusive: !1
1931
- },
1932
- node_r: {
1933
- rules: [
1934
- 65,
1935
- 66,
1936
- 67,
1937
- 68
1938
- ],
1939
- inclusive: !1
1940
- },
1941
- node_l: {
1942
- rules: [
1943
- 65,
1944
- 66,
1945
- 67,
1946
- 68
1947
- ],
1948
- inclusive: !1
1949
- },
1950
- node: {
1951
- rules: [
1952
- 65,
1953
- 66,
1954
- 67,
1955
- 68
1956
- ],
1957
- inclusive: !1
1958
- },
1959
- index: {
1960
- rules: [],
1961
- inclusive: !1
1962
- },
1963
- rel_index: {
1964
- rules: [
1965
- 65,
1966
- 66,
1967
- 67,
1968
- 68
1969
- ],
1970
- inclusive: !1
1971
- },
1972
- component_ext_queue: {
1973
- rules: [
1974
- 65,
1975
- 66,
1976
- 67,
1977
- 68
1978
- ],
1979
- inclusive: !1
1980
- },
1981
- component_ext_db: {
1982
- rules: [
1983
- 65,
1984
- 66,
1985
- 67,
1986
- 68
1987
- ],
1988
- inclusive: !1
1989
- },
1990
- component_ext: {
1991
- rules: [
1992
- 65,
1993
- 66,
1994
- 67,
1995
- 68
1996
- ],
1997
- inclusive: !1
1998
- },
1999
- component_queue: {
2000
- rules: [
2001
- 65,
2002
- 66,
2003
- 67,
2004
- 68
2005
- ],
2006
- inclusive: !1
2007
- },
2008
- component_db: {
2009
- rules: [
2010
- 65,
2011
- 66,
2012
- 67,
2013
- 68
2014
- ],
2015
- inclusive: !1
2016
- },
2017
- component: {
2018
- rules: [
2019
- 65,
2020
- 66,
2021
- 67,
2022
- 68
2023
- ],
2024
- inclusive: !1
2025
- },
2026
- container_boundary: {
2027
- rules: [
2028
- 65,
2029
- 66,
2030
- 67,
2031
- 68
2032
- ],
2033
- inclusive: !1
2034
- },
2035
- container_ext_queue: {
2036
- rules: [
2037
- 65,
2038
- 66,
2039
- 67,
2040
- 68
2041
- ],
2042
- inclusive: !1
2043
- },
2044
- container_ext_db: {
2045
- rules: [
2046
- 65,
2047
- 66,
2048
- 67,
2049
- 68
2050
- ],
2051
- inclusive: !1
2052
- },
2053
- container_ext: {
2054
- rules: [
2055
- 65,
2056
- 66,
2057
- 67,
2058
- 68
2059
- ],
2060
- inclusive: !1
2061
- },
2062
- container_queue: {
2063
- rules: [
2064
- 65,
2065
- 66,
2066
- 67,
2067
- 68
2068
- ],
2069
- inclusive: !1
2070
- },
2071
- container_db: {
2072
- rules: [
2073
- 65,
2074
- 66,
2075
- 67,
2076
- 68
2077
- ],
2078
- inclusive: !1
2079
- },
2080
- container: {
2081
- rules: [
2082
- 65,
2083
- 66,
2084
- 67,
2085
- 68
2086
- ],
2087
- inclusive: !1
2088
- },
2089
- birel: {
2090
- rules: [
2091
- 65,
2092
- 66,
2093
- 67,
2094
- 68
2095
- ],
2096
- inclusive: !1
2097
- },
2098
- system_boundary: {
2099
- rules: [
2100
- 65,
2101
- 66,
2102
- 67,
2103
- 68
2104
- ],
2105
- inclusive: !1
2106
- },
2107
- enterprise_boundary: {
2108
- rules: [
2109
- 65,
2110
- 66,
2111
- 67,
2112
- 68
2113
- ],
2114
- inclusive: !1
2115
- },
2116
- boundary: {
2117
- rules: [
2118
- 65,
2119
- 66,
2120
- 67,
2121
- 68
2122
- ],
2123
- inclusive: !1
2124
- },
2125
- system_ext_queue: {
2126
- rules: [
2127
- 65,
2128
- 66,
2129
- 67,
2130
- 68
2131
- ],
2132
- inclusive: !1
2133
- },
2134
- system_ext_db: {
2135
- rules: [
2136
- 65,
2137
- 66,
2138
- 67,
2139
- 68
2140
- ],
2141
- inclusive: !1
2142
- },
2143
- system_ext: {
2144
- rules: [
2145
- 65,
2146
- 66,
2147
- 67,
2148
- 68
2149
- ],
2150
- inclusive: !1
2151
- },
2152
- system_queue: {
2153
- rules: [
2154
- 65,
2155
- 66,
2156
- 67,
2157
- 68
2158
- ],
2159
- inclusive: !1
2160
- },
2161
- system_db: {
2162
- rules: [
2163
- 65,
2164
- 66,
2165
- 67,
2166
- 68
2167
- ],
2168
- inclusive: !1
2169
- },
2170
- system: {
2171
- rules: [
2172
- 65,
2173
- 66,
2174
- 67,
2175
- 68
2176
- ],
2177
- inclusive: !1
2178
- },
2179
- person_ext: {
2180
- rules: [
2181
- 65,
2182
- 66,
2183
- 67,
2184
- 68
2185
- ],
2186
- inclusive: !1
2187
- },
2188
- person: {
2189
- rules: [
2190
- 65,
2191
- 66,
2192
- 67,
2193
- 68
2194
- ],
2195
- inclusive: !1
2196
- },
2197
- INITIAL: {
2198
- rules: [
2199
- 0,
2200
- 1,
2201
- 2,
2202
- 3,
2203
- 4,
2204
- 5,
2205
- 6,
2206
- 8,
2207
- 10,
2208
- 13,
2209
- 14,
2210
- 15,
2211
- 16,
2212
- 17,
2213
- 18,
2214
- 19,
2215
- 20,
2216
- 21,
2217
- 22,
2218
- 23,
2219
- 24,
2220
- 25,
2221
- 26,
2222
- 27,
2223
- 28,
2224
- 29,
2225
- 30,
2226
- 31,
2227
- 32,
2228
- 33,
2229
- 34,
2230
- 35,
2231
- 36,
2232
- 37,
2233
- 38,
2234
- 39,
2235
- 40,
2236
- 41,
2237
- 42,
2238
- 43,
2239
- 44,
2240
- 45,
2241
- 46,
2242
- 47,
2243
- 48,
2244
- 49,
2245
- 50,
2246
- 51,
2247
- 52,
2248
- 53,
2249
- 54,
2250
- 55,
2251
- 56,
2252
- 57,
2253
- 58,
2254
- 59,
2255
- 60,
2256
- 61,
2257
- 62,
2258
- 63,
2259
- 64,
2260
- 81,
2261
- 82,
2262
- 83,
2263
- 84,
2264
- 85
2265
- ],
2266
- inclusive: !0
2267
- }
2268
- }
2269
- };
2270
- })();
2271
- function ue() {
2272
- this.yy = {};
2273
- }
2274
- return e(ue, "Parser"), ue.prototype = le, le.Parser = ue, new ue();
2275
- })();
2276
- S.parser = S;
2277
- var C = S, w = [], T = [""], E = "global", D = "", O = [{
2278
- alias: "global",
2279
- label: { text: "global" },
2280
- type: { text: "global" },
2281
- tags: null,
2282
- link: null,
2283
- parentBoundary: ""
2284
- }], k = [], A = "", j = !1, M = 4, N = 2, P, F = /* @__PURE__ */ e(function() {
2285
- return P;
2286
- }, "getC4Type"), I = /* @__PURE__ */ e(function(e) {
2287
- P = d(e, l());
2288
- }, "setC4Type"), L = /* @__PURE__ */ e(function(e, t, n, r, i, a, o, s, l) {
2289
- if (e == null || t == null || n == null || r == null) return;
2290
- let u = {}, d = k.find((e) => e.from === t && e.to === n);
2291
- if (d ? u = d : k.push(u), u.type = e, u.from = t, u.to = n, u.label = { text: r }, i == null) u.techn = { text: "" };
2292
- else if (typeof i == "object") {
2293
- let [e, t] = Object.entries(i)[0];
2294
- u[e] = { text: t };
2295
- } else u.techn = { text: i };
2296
- if (a == null) u.descr = { text: "" };
2297
- else if (typeof a == "object") {
2298
- let [e, t] = Object.entries(a)[0];
2299
- u[e] = { text: t };
2300
- } else u.descr = { text: a };
2301
- if (typeof o == "object") {
2302
- let [e, t] = Object.entries(o)[0];
2303
- u[e] = t;
2304
- } else u.sprite = o;
2305
- if (typeof s == "object") {
2306
- let [e, t] = Object.entries(s)[0];
2307
- u[e] = t;
2308
- } else u.tags = s;
2309
- if (typeof l == "object") {
2310
- let [e, t] = Object.entries(l)[0];
2311
- u[e] = t;
2312
- } else u.link = l;
2313
- u.wrap = de();
2314
- }, "addRel"), R = /* @__PURE__ */ e(function(e, t, n, r, i, a, o) {
2315
- if (t === null || n === null) return;
2316
- let s = {}, l = w.find((e) => e.alias === t);
2317
- if (l && t === l.alias ? s = l : (s.alias = t, w.push(s)), n == null ? s.label = { text: "" } : s.label = { text: n }, r == null) s.descr = { text: "" };
2318
- else if (typeof r == "object") {
2319
- let [e, t] = Object.entries(r)[0];
2320
- s[e] = { text: t };
2321
- } else s.descr = { text: r };
2322
- if (typeof i == "object") {
2323
- let [e, t] = Object.entries(i)[0];
2324
- s[e] = t;
2325
- } else s.sprite = i;
2326
- if (typeof a == "object") {
2327
- let [e, t] = Object.entries(a)[0];
2328
- s[e] = t;
2329
- } else s.tags = a;
2330
- if (typeof o == "object") {
2331
- let [e, t] = Object.entries(o)[0];
2332
- s[e] = t;
2333
- } else s.link = o;
2334
- s.typeC4Shape = { text: e }, s.parentBoundary = E, s.wrap = de();
2335
- }, "addPersonOrSystem"), z = /* @__PURE__ */ e(function(e, t, n, r, i, a, o, s) {
2336
- if (t === null || n === null) return;
2337
- let l = {}, u = w.find((e) => e.alias === t);
2338
- if (u && t === u.alias ? l = u : (l.alias = t, w.push(l)), n == null ? l.label = { text: "" } : l.label = { text: n }, r == null) l.techn = { text: "" };
2339
- else if (typeof r == "object") {
2340
- let [e, t] = Object.entries(r)[0];
2341
- l[e] = { text: t };
2342
- } else l.techn = { text: r };
2343
- if (i == null) l.descr = { text: "" };
2344
- else if (typeof i == "object") {
2345
- let [e, t] = Object.entries(i)[0];
2346
- l[e] = { text: t };
2347
- } else l.descr = { text: i };
2348
- if (typeof a == "object") {
2349
- let [e, t] = Object.entries(a)[0];
2350
- l[e] = t;
2351
- } else l.sprite = a;
2352
- if (typeof o == "object") {
2353
- let [e, t] = Object.entries(o)[0];
2354
- l[e] = t;
2355
- } else l.tags = o;
2356
- if (typeof s == "object") {
2357
- let [e, t] = Object.entries(s)[0];
2358
- l[e] = t;
2359
- } else l.link = s;
2360
- l.wrap = de(), l.typeC4Shape = { text: e }, l.parentBoundary = E;
2361
- }, "addContainer"), B = /* @__PURE__ */ e(function(e, t, n, r, i, a, o, s) {
2362
- if (t === null || n === null) return;
2363
- let l = {}, u = w.find((e) => e.alias === t);
2364
- if (u && t === u.alias ? l = u : (l.alias = t, w.push(l)), n == null ? l.label = { text: "" } : l.label = { text: n }, r == null) l.techn = { text: "" };
2365
- else if (typeof r == "object") {
2366
- let [e, t] = Object.entries(r)[0];
2367
- l[e] = { text: t };
2368
- } else l.techn = { text: r };
2369
- if (i == null) l.descr = { text: "" };
2370
- else if (typeof i == "object") {
2371
- let [e, t] = Object.entries(i)[0];
2372
- l[e] = { text: t };
2373
- } else l.descr = { text: i };
2374
- if (typeof a == "object") {
2375
- let [e, t] = Object.entries(a)[0];
2376
- l[e] = t;
2377
- } else l.sprite = a;
2378
- if (typeof o == "object") {
2379
- let [e, t] = Object.entries(o)[0];
2380
- l[e] = t;
2381
- } else l.tags = o;
2382
- if (typeof s == "object") {
2383
- let [e, t] = Object.entries(s)[0];
2384
- l[e] = t;
2385
- } else l.link = s;
2386
- l.wrap = de(), l.typeC4Shape = { text: e }, l.parentBoundary = E;
2387
- }, "addComponent"), V = /* @__PURE__ */ e(function(e, t, n, r, i) {
2388
- if (e === null || t === null) return;
2389
- let a = {}, o = O.find((t) => t.alias === e);
2390
- if (o && e === o.alias ? a = o : (a.alias = e, O.push(a)), t == null ? a.label = { text: "" } : a.label = { text: t }, n == null) a.type = { text: "system" };
2391
- else if (typeof n == "object") {
2392
- let [e, t] = Object.entries(n)[0];
2393
- a[e] = { text: t };
2394
- } else a.type = { text: n };
2395
- if (typeof r == "object") {
2396
- let [e, t] = Object.entries(r)[0];
2397
- a[e] = t;
2398
- } else a.tags = r;
2399
- if (typeof i == "object") {
2400
- let [e, t] = Object.entries(i)[0];
2401
- a[e] = t;
2402
- } else a.link = i;
2403
- a.parentBoundary = E, a.wrap = de(), D = E, E = e, T.push(D);
2404
- }, "addPersonOrSystemBoundary"), H = /* @__PURE__ */ e(function(e, t, n, r, i) {
2405
- if (e === null || t === null) return;
2406
- let a = {}, o = O.find((t) => t.alias === e);
2407
- if (o && e === o.alias ? a = o : (a.alias = e, O.push(a)), t == null ? a.label = { text: "" } : a.label = { text: t }, n == null) a.type = { text: "container" };
2408
- else if (typeof n == "object") {
2409
- let [e, t] = Object.entries(n)[0];
2410
- a[e] = { text: t };
2411
- } else a.type = { text: n };
2412
- if (typeof r == "object") {
2413
- let [e, t] = Object.entries(r)[0];
2414
- a[e] = t;
2415
- } else a.tags = r;
2416
- if (typeof i == "object") {
2417
- let [e, t] = Object.entries(i)[0];
2418
- a[e] = t;
2419
- } else a.link = i;
2420
- a.parentBoundary = E, a.wrap = de(), D = E, E = e, T.push(D);
2421
- }, "addContainerBoundary"), U = /* @__PURE__ */ e(function(e, t, n, r, i, a, o, s) {
2422
- if (t === null || n === null) return;
2423
- let l = {}, u = O.find((e) => e.alias === t);
2424
- if (u && t === u.alias ? l = u : (l.alias = t, O.push(l)), n == null ? l.label = { text: "" } : l.label = { text: n }, r == null) l.type = { text: "node" };
2425
- else if (typeof r == "object") {
2426
- let [e, t] = Object.entries(r)[0];
2427
- l[e] = { text: t };
2428
- } else l.type = { text: r };
2429
- if (i == null) l.descr = { text: "" };
2430
- else if (typeof i == "object") {
2431
- let [e, t] = Object.entries(i)[0];
2432
- l[e] = { text: t };
2433
- } else l.descr = { text: i };
2434
- if (typeof o == "object") {
2435
- let [e, t] = Object.entries(o)[0];
2436
- l[e] = t;
2437
- } else l.tags = o;
2438
- if (typeof s == "object") {
2439
- let [e, t] = Object.entries(s)[0];
2440
- l[e] = t;
2441
- } else l.link = s;
2442
- l.nodeType = e, l.parentBoundary = E, l.wrap = de(), D = E, E = t, T.push(D);
2443
- }, "addDeploymentNode"), ee = /* @__PURE__ */ e(function() {
2444
- E = D, T.pop(), D = T.pop(), T.push(D);
2445
- }, "popBoundaryParseStack"), te = /* @__PURE__ */ e(function(e, t, n, r, i, a, o, s, l, u, d) {
2446
- let f = w.find((e) => e.alias === t);
2447
- if (!(f === void 0 && (f = O.find((e) => e.alias === t), f === void 0))) {
2448
- if (n != null) if (typeof n == "object") {
2449
- let [e, t] = Object.entries(n)[0];
2450
- f[e] = t;
2451
- } else f.bgColor = n;
2452
- if (r != null) if (typeof r == "object") {
2453
- let [e, t] = Object.entries(r)[0];
2454
- f[e] = t;
2455
- } else f.fontColor = r;
2456
- if (i != null) if (typeof i == "object") {
2457
- let [e, t] = Object.entries(i)[0];
2458
- f[e] = t;
2459
- } else f.borderColor = i;
2460
- if (a != null) if (typeof a == "object") {
2461
- let [e, t] = Object.entries(a)[0];
2462
- f[e] = t;
2463
- } else f.shadowing = a;
2464
- if (o != null) if (typeof o == "object") {
2465
- let [e, t] = Object.entries(o)[0];
2466
- f[e] = t;
2467
- } else f.shape = o;
2468
- if (s != null) if (typeof s == "object") {
2469
- let [e, t] = Object.entries(s)[0];
2470
- f[e] = t;
2471
- } else f.sprite = s;
2472
- if (l != null) if (typeof l == "object") {
2473
- let [e, t] = Object.entries(l)[0];
2474
- f[e] = t;
2475
- } else f.techn = l;
2476
- if (u != null) if (typeof u == "object") {
2477
- let [e, t] = Object.entries(u)[0];
2478
- f[e] = t;
2479
- } else f.legendText = u;
2480
- if (d != null) if (typeof d == "object") {
2481
- let [e, t] = Object.entries(d)[0];
2482
- f[e] = t;
2483
- } else f.legendSprite = d;
2484
- }
2485
- }, "updateElStyle"), ne = /* @__PURE__ */ e(function(e, t, n, r, i, a, o) {
2486
- let s = k.find((e) => e.from === t && e.to === n);
2487
- if (s !== void 0) {
2488
- if (r != null) if (typeof r == "object") {
2489
- let [e, t] = Object.entries(r)[0];
2490
- s[e] = t;
2491
- } else s.textColor = r;
2492
- if (i != null) if (typeof i == "object") {
2493
- let [e, t] = Object.entries(i)[0];
2494
- s[e] = t;
2495
- } else s.lineColor = i;
2496
- if (a != null) if (typeof a == "object") {
2497
- let [e, t] = Object.entries(a)[0];
2498
- s[e] = parseInt(t);
2499
- } else s.offsetX = parseInt(a);
2500
- if (o != null) if (typeof o == "object") {
2501
- let [e, t] = Object.entries(o)[0];
2502
- s[e] = parseInt(t);
2503
- } else s.offsetY = parseInt(o);
2504
- }
2505
- }, "updateRelStyle"), re = /* @__PURE__ */ e(function(e, t, n) {
2506
- let r = M, i = N;
2507
- if (typeof t == "object") {
2508
- let e = Object.values(t)[0];
2509
- r = parseInt(e);
2510
- } else r = parseInt(t);
2511
- if (typeof n == "object") {
2512
- let e = Object.values(n)[0];
2513
- i = parseInt(e);
2514
- } else i = parseInt(n);
2515
- r >= 1 && (M = r), i >= 1 && (N = i);
2516
- }, "updateLayoutConfig"), ie = /* @__PURE__ */ e(function() {
2517
- return M;
2518
- }, "getC4ShapeInRow"), W = /* @__PURE__ */ e(function() {
2519
- return N;
2520
- }, "getC4BoundaryInRow"), G = /* @__PURE__ */ e(function() {
2521
- return E;
2522
- }, "getCurrentBoundaryParse"), K = /* @__PURE__ */ e(function() {
2523
- return D;
2524
- }, "getParentBoundaryParse"), q = /* @__PURE__ */ e(function(e) {
2525
- return e == null ? w : w.filter((t) => t.parentBoundary === e);
2526
- }, "getC4ShapeArray"), J = /* @__PURE__ */ e(function(e) {
2527
- return w.find((t) => t.alias === e);
2528
- }, "getC4Shape"), ae = /* @__PURE__ */ e(function(e) {
2529
- return Object.keys(q(e));
2530
- }, "getC4ShapeKeys"), oe = /* @__PURE__ */ e(function(e) {
2531
- return e == null ? O : O.filter((t) => t.parentBoundary === e);
2532
- }, "getBoundaries"), se = oe, ce = /* @__PURE__ */ e(function() {
2533
- return k;
2534
- }, "getRels"), le = /* @__PURE__ */ e(function() {
2535
- return A;
2536
- }, "getTitle"), ue = /* @__PURE__ */ e(function(e) {
2537
- j = e;
2538
- }, "setWrap"), de = /* @__PURE__ */ e(function() {
2539
- return j;
2540
- }, "autoWrap"), fe = {
2541
- addPersonOrSystem: R,
2542
- addPersonOrSystemBoundary: V,
2543
- addContainer: z,
2544
- addContainerBoundary: H,
2545
- addComponent: B,
2546
- addDeploymentNode: U,
2547
- popBoundaryParseStack: ee,
2548
- addRel: L,
2549
- updateElStyle: te,
2550
- updateRelStyle: ne,
2551
- updateLayoutConfig: re,
2552
- autoWrap: de,
2553
- setWrap: ue,
2554
- getC4ShapeArray: q,
2555
- getC4Shape: J,
2556
- getC4ShapeKeys: ae,
2557
- getBoundaries: oe,
2558
- getBoundarys: se,
2559
- getCurrentBoundaryParse: G,
2560
- getParentBoundaryParse: K,
2561
- getRels: ce,
2562
- getTitle: le,
2563
- getC4Type: F,
2564
- getC4ShapeInRow: ie,
2565
- getC4BoundaryInRow: W,
2566
- setAccTitle: r,
2567
- getAccTitle: u,
2568
- getAccDescription: s,
2569
- setAccDescription: n,
2570
- getConfig: /* @__PURE__ */ e(() => l().c4, "getConfig"),
2571
- clear: /* @__PURE__ */ e(function() {
2572
- w = [], O = [{
2573
- alias: "global",
2574
- label: { text: "global" },
2575
- type: { text: "global" },
2576
- tags: null,
2577
- link: null,
2578
- parentBoundary: ""
2579
- }], D = "", E = "global", T = [""], k = [], T = [""], A = "", j = !1, M = 4, N = 2;
2580
- }, "clear"),
2581
- LINETYPE: {
2582
- SOLID: 0,
2583
- DOTTED: 1,
2584
- NOTE: 2,
2585
- SOLID_CROSS: 3,
2586
- DOTTED_CROSS: 4,
2587
- SOLID_OPEN: 5,
2588
- DOTTED_OPEN: 6,
2589
- LOOP_START: 10,
2590
- LOOP_END: 11,
2591
- ALT_START: 12,
2592
- ALT_ELSE: 13,
2593
- ALT_END: 14,
2594
- OPT_START: 15,
2595
- OPT_END: 16,
2596
- ACTIVE_START: 17,
2597
- ACTIVE_END: 18,
2598
- PAR_START: 19,
2599
- PAR_AND: 20,
2600
- PAR_END: 21,
2601
- RECT_START: 22,
2602
- RECT_END: 23,
2603
- SOLID_POINT: 24,
2604
- DOTTED_POINT: 25
2605
- },
2606
- ARROWTYPE: {
2607
- FILLED: 0,
2608
- OPEN: 1
2609
- },
2610
- PLACEMENT: {
2611
- LEFTOF: 0,
2612
- RIGHTOF: 1,
2613
- OVER: 2
2614
- },
2615
- setTitle: /* @__PURE__ */ e(function(e) {
2616
- A = d(e, l());
2617
- }, "setTitle"),
2618
- setC4Type: I
2619
- }, pe = /* @__PURE__ */ e(function(e, t) {
2620
- return _(e, t);
2621
- }, "drawRect"), me = /* @__PURE__ */ e(function(e, t, n, r, i, a) {
2622
- let o = e.append("image");
2623
- o.attr("width", t), o.attr("height", n), o.attr("x", r), o.attr("y", i);
2624
- let s = a.startsWith("data:image/png;base64") ? a : (0, y.sanitizeUrl)(a);
2625
- o.attr("xlink:href", s);
2626
- }, "drawImage"), he = /* @__PURE__ */ e((e, t, n, r) => {
2627
- let i = e.append("g"), a = 0;
2628
- for (let e of t) {
2629
- let t = e.textColor ? e.textColor : "#444444", o = e.lineColor ? e.lineColor : "#444444", s = e.offsetX ? parseInt(e.offsetX) : 0, l = e.offsetY ? parseInt(e.offsetY) : 0;
2630
- if (a === 0) {
2631
- let t = i.append("line");
2632
- t.attr("x1", e.startPoint.x), t.attr("y1", e.startPoint.y), t.attr("x2", e.endPoint.x), t.attr("y2", e.endPoint.y), t.attr("stroke-width", "1"), t.attr("stroke", o), t.style("fill", "none"), e.type !== "rel_b" && t.attr("marker-end", "url(#" + r + "-arrowhead)"), (e.type === "birel" || e.type === "rel_b") && t.attr("marker-start", "url(#" + r + "-arrowend)"), a = -1;
2633
- } else {
2634
- let t = i.append("path");
2635
- t.attr("fill", "none").attr("stroke-width", "1").attr("stroke", o).attr("d", "Mstartx,starty Qcontrolx,controly stopx,stopy ".replaceAll("startx", e.startPoint.x).replaceAll("starty", e.startPoint.y).replaceAll("controlx", e.startPoint.x + (e.endPoint.x - e.startPoint.x) / 2 - (e.endPoint.x - e.startPoint.x) / 4).replaceAll("controly", e.startPoint.y + (e.endPoint.y - e.startPoint.y) / 2).replaceAll("stopx", e.endPoint.x).replaceAll("stopy", e.endPoint.y)), e.type !== "rel_b" && t.attr("marker-end", "url(#" + r + "-arrowhead)"), (e.type === "birel" || e.type === "rel_b") && t.attr("marker-start", "url(#" + r + "-arrowend)");
2636
- }
2637
- let u = n.messageFont();
2638
- Y(n)(e.label.text, i, Math.min(e.startPoint.x, e.endPoint.x) + Math.abs(e.endPoint.x - e.startPoint.x) / 2 + s, Math.min(e.startPoint.y, e.endPoint.y) + Math.abs(e.endPoint.y - e.startPoint.y) / 2 + l, e.label.width, e.label.height, { fill: t }, u), e.techn && e.techn.text !== "" && (u = n.messageFont(), Y(n)("[" + e.techn.text + "]", i, Math.min(e.startPoint.x, e.endPoint.x) + Math.abs(e.endPoint.x - e.startPoint.x) / 2 + s, Math.min(e.startPoint.y, e.endPoint.y) + Math.abs(e.endPoint.y - e.startPoint.y) / 2 + n.messageFontSize + 5 + l, Math.max(e.label.width, e.techn.width), e.techn.height, {
2639
- fill: t,
2640
- "font-style": "italic"
2641
- }, u));
2642
- }
2643
- }, "drawRels"), ge = /* @__PURE__ */ e(function(e, t, n) {
2644
- let r = e.append("g"), i = t.bgColor ? t.bgColor : "none", a = t.borderColor ? t.borderColor : "#444444", o = t.fontColor ? t.fontColor : "black", s = {
2645
- "stroke-width": 1,
2646
- "stroke-dasharray": "7.0,7.0"
2647
- };
2648
- t.nodeType && (s = { "stroke-width": 1 }), pe(r, {
2649
- x: t.x,
2650
- y: t.y,
2651
- fill: i,
2652
- stroke: a,
2653
- width: t.width,
2654
- height: t.height,
2655
- rx: 2.5,
2656
- ry: 2.5,
2657
- attrs: s
2658
- });
2659
- let l = n.boundaryFont();
2660
- l.fontWeight = "bold", l.fontSize += 2, l.fontColor = o, Y(n)(t.label.text, r, t.x, t.y + t.label.Y, t.width, t.height, { fill: "#444444" }, l), t.type && t.type.text !== "" && (l = n.boundaryFont(), l.fontColor = o, Y(n)(t.type.text, r, t.x, t.y + t.type.Y, t.width, t.height, { fill: "#444444" }, l)), t.descr && t.descr.text !== "" && (l = n.boundaryFont(), l.fontSize -= 2, l.fontColor = o, Y(n)(t.descr.text, r, t.x, t.y + t.descr.Y, t.width, t.height, { fill: "#444444" }, l));
2661
- }, "drawBoundary"), _e = /* @__PURE__ */ e(function(e, t, n) {
2662
- var r;
2663
- let i = t.bgColor ? t.bgColor : n[t.typeC4Shape.text + "_bg_color"], a = t.borderColor ? t.borderColor : n[t.typeC4Shape.text + "_border_color"], o = t.fontColor ? t.fontColor : "#FFFFFF", s = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAIAAADYYG7QAAACD0lEQVR4Xu2YoU4EMRCGT+4j8Ai8AhaH4QHgAUjQuFMECUgMIUgwJAgMhgQsAYUiJCiQIBBY+EITsjfTdme6V24v4c8vyGbb+ZjOtN0bNcvjQXmkH83WvYBWto6PLm6v7p7uH1/w2fXD+PBycX1Pv2l3IdDm/vn7x+dXQiAubRzoURa7gRZWd0iGRIiJbOnhnfYBQZNJjNbuyY2eJG8fkDE3bbG4ep6MHUAsgYxmE3nVs6VsBWJSGccsOlFPmLIViMzLOB7pCVO2AtHJMohH7Fh6zqitQK7m0rJvAVYgGcEpe//PLdDz65sM4pF9N7ICcXDKIB5Nv6j7tD0NoSdM2QrU9Gg0ewE1LqBhHR3BBdvj2vapnidjHxD/q6vd7Pvhr31AwcY8eXMTXAKECZZJFXuEq27aLgQK5uLMohCenGGuGewOxSjBvYBqeG6B+Nqiblggdjnc+ZXDy+FNFpFzw76O3UBAROuXh6FoiAcf5g9eTvUgzy0nWg6I8cXHRUpg5bOVBCo+KDpFajOf23GgPme7RSQ+lacIENUgJ6gg1k6HjgOlqnLqip4tEuhv0hNEMXUD0clyXE3p6pZA0S2nnvTlXwLJEZWlb7cTQH1+USgTN4VhAenm/wea1OCAOmqo6fE1WCb9WSKBah+rbUWPWAmE2Rvk0ApiB45eOyNAzU8xcTvj8KvkKEoOaIYeHNA3ZuygAvFMUO0AAAAASUVORK5CYII=";
2664
- switch (t.typeC4Shape.text) {
2665
- case "person":
2666
- s = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAIAAADYYG7QAAACD0lEQVR4Xu2YoU4EMRCGT+4j8Ai8AhaH4QHgAUjQuFMECUgMIUgwJAgMhgQsAYUiJCiQIBBY+EITsjfTdme6V24v4c8vyGbb+ZjOtN0bNcvjQXmkH83WvYBWto6PLm6v7p7uH1/w2fXD+PBycX1Pv2l3IdDm/vn7x+dXQiAubRzoURa7gRZWd0iGRIiJbOnhnfYBQZNJjNbuyY2eJG8fkDE3bbG4ep6MHUAsgYxmE3nVs6VsBWJSGccsOlFPmLIViMzLOB7pCVO2AtHJMohH7Fh6zqitQK7m0rJvAVYgGcEpe//PLdDz65sM4pF9N7ICcXDKIB5Nv6j7tD0NoSdM2QrU9Gg0ewE1LqBhHR3BBdvj2vapnidjHxD/q6vd7Pvhr31AwcY8eXMTXAKECZZJFXuEq27aLgQK5uLMohCenGGuGewOxSjBvYBqeG6B+Nqiblggdjnc+ZXDy+FNFpFzw76O3UBAROuXh6FoiAcf5g9eTvUgzy0nWg6I8cXHRUpg5bOVBCo+KDpFajOf23GgPme7RSQ+lacIENUgJ6gg1k6HjgOlqnLqip4tEuhv0hNEMXUD0clyXE3p6pZA0S2nnvTlXwLJEZWlb7cTQH1+USgTN4VhAenm/wea1OCAOmqo6fE1WCb9WSKBah+rbUWPWAmE2Rvk0ApiB45eOyNAzU8xcTvj8KvkKEoOaIYeHNA3ZuygAvFMUO0AAAAASUVORK5CYII=";
2667
- break;
2668
- case "external_person":
2669
- s = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAIAAADYYG7QAAAB6ElEQVR4Xu2YLY+EMBCG9+dWr0aj0Wg0Go1Go0+j8Xdv2uTCvv1gpt0ebHKPuhDaeW4605Z9mJvx4AdXUyTUdd08z+u6flmWZRnHsWkafk9DptAwDPu+f0eAYtu2PEaGWuj5fCIZrBAC2eLBAnRCsEkkxmeaJp7iDJ2QMDdHsLg8SxKFEJaAo8lAXnmuOFIhTMpxxKATebo4UiFknuNo4OniSIXQyRxEA3YsnjGCVEjVXD7yLUAqxBGUyPv/Y4W2beMgGuS7kVQIBycH0fD+oi5pezQETxdHKmQKGk1eQEYldK+jw5GxPfZ9z7Mk0Qnhf1W1m3w//EUn5BDmSZsbR44QQLBEqrBHqOrmSKaQAxdnLArCrxZcM7A7ZKs4ioRq8LFC+NpC3WCBJsvpVw5edm9iEXFuyNfxXAgSwfrFQ1c0iNda8AdejvUgnktOtJQQxmcfFzGglc5WVCj7oDgFqU18boeFSs52CUh8LE8BIVQDT1ABrB0HtgSEYlX5doJnCwv9TXocKCaKbnwhdDKPq4lf3SwU3HLq4V/+WYhHVMa/3b4IlfyikAduCkcBc7mQ3/z/Qq/cTuikhkzB12Ae/mcJC9U+Vo8Ej1gWAtgbeGgFsAMHr50BIWOLCbezvhpBFUdY6EJuJ/QDW0XoMX60zZ0AAAAASUVORK5CYII=";
2670
- break;
2671
- }
2672
- let l = e.append("g");
2673
- l.attr("class", "person-man");
2674
- let u = v();
2675
- switch (t.typeC4Shape.text) {
2676
- case "person":
2677
- case "external_person":
2678
- case "system":
2679
- case "external_system":
2680
- case "container":
2681
- case "external_container":
2682
- case "component":
2683
- case "external_component":
2684
- u.x = t.x, u.y = t.y, u.fill = i, u.width = t.width, u.height = t.height, u.stroke = a, u.rx = 2.5, u.ry = 2.5, u.attrs = { "stroke-width": .5 }, pe(l, u);
2685
- break;
2686
- case "system_db":
2687
- case "external_system_db":
2688
- case "container_db":
2689
- case "external_container_db":
2690
- case "component_db":
2691
- case "external_component_db":
2692
- l.append("path").attr("fill", i).attr("stroke-width", "0.5").attr("stroke", a).attr("d", "Mstartx,startyc0,-10 half,-10 half,-10c0,0 half,0 half,10l0,heightc0,10 -half,10 -half,10c0,0 -half,0 -half,-10l0,-height".replaceAll("startx", t.x).replaceAll("starty", t.y).replaceAll("half", t.width / 2).replaceAll("height", t.height)), l.append("path").attr("fill", "none").attr("stroke-width", "0.5").attr("stroke", a).attr("d", "Mstartx,startyc0,10 half,10 half,10c0,0 half,0 half,-10".replaceAll("startx", t.x).replaceAll("starty", t.y).replaceAll("half", t.width / 2));
2693
- break;
2694
- case "system_queue":
2695
- case "external_system_queue":
2696
- case "container_queue":
2697
- case "external_container_queue":
2698
- case "component_queue":
2699
- case "external_component_queue":
2700
- l.append("path").attr("fill", i).attr("stroke-width", "0.5").attr("stroke", a).attr("d", "Mstartx,startylwidth,0c5,0 5,half 5,halfc0,0 0,half -5,halfl-width,0c-5,0 -5,-half -5,-halfc0,0 0,-half 5,-half".replaceAll("startx", t.x).replaceAll("starty", t.y).replaceAll("width", t.width).replaceAll("half", t.height / 2)), l.append("path").attr("fill", "none").attr("stroke-width", "0.5").attr("stroke", a).attr("d", "Mstartx,startyc-5,0 -5,half -5,halfc0,half 5,half 5,half".replaceAll("startx", t.x + t.width).replaceAll("starty", t.y).replaceAll("half", t.height / 2));
2701
- break;
2702
- }
2703
- let d = Te(n, t.typeC4Shape.text);
2704
- switch (l.append("text").attr("fill", o).attr("font-family", d.fontFamily).attr("font-size", d.fontSize - 2).attr("font-style", "italic").attr("lengthAdjust", "spacing").attr("textLength", t.typeC4Shape.width).attr("x", t.x + t.width / 2 - t.typeC4Shape.width / 2).attr("y", t.y + t.typeC4Shape.Y).text("<<" + t.typeC4Shape.text + ">>"), t.typeC4Shape.text) {
2705
- case "person":
2706
- case "external_person":
2707
- me(l, 48, 48, t.x + t.width / 2 - 24, t.y + t.image.Y, s);
2708
- break;
2709
- }
2710
- let f = n[t.typeC4Shape.text + "Font"]();
2711
- return f.fontWeight = "bold", f.fontSize += 2, f.fontColor = o, Y(n)(t.label.text, l, t.x, t.y + t.label.Y, t.width, t.height, { fill: o }, f), f = n[t.typeC4Shape.text + "Font"](), f.fontColor = o, t.techn && ((r = t.techn) == null ? void 0 : r.text) !== "" ? Y(n)(t.techn.text, l, t.x, t.y + t.techn.Y, t.width, t.height, {
2712
- fill: o,
2713
- "font-style": "italic"
2714
- }, f) : t.type && t.type.text !== "" && Y(n)(t.type.text, l, t.x, t.y + t.type.Y, t.width, t.height, {
2715
- fill: o,
2716
- "font-style": "italic"
2717
- }, f), t.descr && t.descr.text !== "" && (f = n.personFont(), f.fontColor = o, Y(n)(t.descr.text, l, t.x, t.y + t.descr.Y, t.width, t.height, { fill: o }, f)), t.height;
2718
- }, "drawC4Shape"), ve = /* @__PURE__ */ e(function(e, t) {
2719
- e.append("defs").append("symbol").attr("id", t + "-database").attr("fill-rule", "evenodd").attr("clip-rule", "evenodd").append("path").attr("transform", "scale(.5)").attr("d", "M12.258.001l.256.004.255.005.253.008.251.01.249.012.247.015.246.016.242.019.241.02.239.023.236.024.233.027.231.028.229.031.225.032.223.034.22.036.217.038.214.04.211.041.208.043.205.045.201.046.198.048.194.05.191.051.187.053.183.054.18.056.175.057.172.059.168.06.163.061.16.063.155.064.15.066.074.033.073.033.071.034.07.034.069.035.068.035.067.035.066.035.064.036.064.036.062.036.06.036.06.037.058.037.058.037.055.038.055.038.053.038.052.038.051.039.05.039.048.039.047.039.045.04.044.04.043.04.041.04.04.041.039.041.037.041.036.041.034.041.033.042.032.042.03.042.029.042.027.042.026.043.024.043.023.043.021.043.02.043.018.044.017.043.015.044.013.044.012.044.011.045.009.044.007.045.006.045.004.045.002.045.001.045v17l-.001.045-.002.045-.004.045-.006.045-.007.045-.009.044-.011.045-.012.044-.013.044-.015.044-.017.043-.018.044-.02.043-.021.043-.023.043-.024.043-.026.043-.027.042-.029.042-.03.042-.032.042-.033.042-.034.041-.036.041-.037.041-.039.041-.04.041-.041.04-.043.04-.044.04-.045.04-.047.039-.048.039-.05.039-.051.039-.052.038-.053.038-.055.038-.055.038-.058.037-.058.037-.06.037-.06.036-.062.036-.064.036-.064.036-.066.035-.067.035-.068.035-.069.035-.07.034-.071.034-.073.033-.074.033-.15.066-.155.064-.16.063-.163.061-.168.06-.172.059-.175.057-.18.056-.183.054-.187.053-.191.051-.194.05-.198.048-.201.046-.205.045-.208.043-.211.041-.214.04-.217.038-.22.036-.223.034-.225.032-.229.031-.231.028-.233.027-.236.024-.239.023-.241.02-.242.019-.246.016-.247.015-.249.012-.251.01-.253.008-.255.005-.256.004-.258.001-.258-.001-.256-.004-.255-.005-.253-.008-.251-.01-.249-.012-.247-.015-.245-.016-.243-.019-.241-.02-.238-.023-.236-.024-.234-.027-.231-.028-.228-.031-.226-.032-.223-.034-.22-.036-.217-.038-.214-.04-.211-.041-.208-.043-.204-.045-.201-.046-.198-.048-.195-.05-.19-.051-.187-.053-.184-.054-.179-.056-.176-.057-.172-.059-.167-.06-.164-.061-.159-.063-.155-.064-.151-.066-.074-.033-.072-.033-.072-.034-.07-.034-.069-.035-.068-.035-.067-.035-.066-.035-.064-.036-.063-.036-.062-.036-.061-.036-.06-.037-.058-.037-.057-.037-.056-.038-.055-.038-.053-.038-.052-.038-.051-.039-.049-.039-.049-.039-.046-.039-.046-.04-.044-.04-.043-.04-.041-.04-.04-.041-.039-.041-.037-.041-.036-.041-.034-.041-.033-.042-.032-.042-.03-.042-.029-.042-.027-.042-.026-.043-.024-.043-.023-.043-.021-.043-.02-.043-.018-.044-.017-.043-.015-.044-.013-.044-.012-.044-.011-.045-.009-.044-.007-.045-.006-.045-.004-.045-.002-.045-.001-.045v-17l.001-.045.002-.045.004-.045.006-.045.007-.045.009-.044.011-.045.012-.044.013-.044.015-.044.017-.043.018-.044.02-.043.021-.043.023-.043.024-.043.026-.043.027-.042.029-.042.03-.042.032-.042.033-.042.034-.041.036-.041.037-.041.039-.041.04-.041.041-.04.043-.04.044-.04.046-.04.046-.039.049-.039.049-.039.051-.039.052-.038.053-.038.055-.038.056-.038.057-.037.058-.037.06-.037.061-.036.062-.036.063-.036.064-.036.066-.035.067-.035.068-.035.069-.035.07-.034.072-.034.072-.033.074-.033.151-.066.155-.064.159-.063.164-.061.167-.06.172-.059.176-.057.179-.056.184-.054.187-.053.19-.051.195-.05.198-.048.201-.046.204-.045.208-.043.211-.041.214-.04.217-.038.22-.036.223-.034.226-.032.228-.031.231-.028.234-.027.236-.024.238-.023.241-.02.243-.019.245-.016.247-.015.249-.012.251-.01.253-.008.255-.005.256-.004.258-.001.258.001zm-9.258 20.499v.01l.001.021.003.021.004.022.005.021.006.022.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.023.018.024.019.024.021.024.022.025.023.024.024.025.052.049.056.05.061.051.066.051.07.051.075.051.079.052.084.052.088.052.092.052.097.052.102.051.105.052.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.048.144.049.147.047.152.047.155.047.16.045.163.045.167.043.171.043.176.041.178.041.183.039.187.039.19.037.194.035.197.035.202.033.204.031.209.03.212.029.216.027.219.025.222.024.226.021.23.02.233.018.236.016.24.015.243.012.246.01.249.008.253.005.256.004.259.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.021.224-.024.22-.026.216-.027.212-.028.21-.031.205-.031.202-.034.198-.034.194-.036.191-.037.187-.039.183-.04.179-.04.175-.042.172-.043.168-.044.163-.045.16-.046.155-.046.152-.047.148-.048.143-.049.139-.049.136-.05.131-.05.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.053.083-.051.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.05.023-.024.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.023.01-.022.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.127l-.077.055-.08.053-.083.054-.085.053-.087.052-.09.052-.093.051-.095.05-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.045-.118.044-.12.043-.122.042-.124.042-.126.041-.128.04-.13.04-.132.038-.134.038-.135.037-.138.037-.139.035-.142.035-.143.034-.144.033-.147.032-.148.031-.15.03-.151.03-.153.029-.154.027-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.01-.179.008-.179.008-.181.006-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.006-.179-.008-.179-.008-.178-.01-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.027-.153-.029-.151-.03-.15-.03-.148-.031-.146-.032-.145-.033-.143-.034-.141-.035-.14-.035-.137-.037-.136-.037-.134-.038-.132-.038-.13-.04-.128-.04-.126-.041-.124-.042-.122-.042-.12-.044-.117-.043-.116-.045-.113-.045-.112-.046-.109-.047-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.05-.093-.052-.09-.051-.087-.052-.085-.053-.083-.054-.08-.054-.077-.054v4.127zm0-5.654v.011l.001.021.003.021.004.021.005.022.006.022.007.022.009.022.01.022.011.023.012.023.013.023.015.024.016.023.017.024.018.024.019.024.021.024.022.024.023.025.024.024.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.052.11.051.114.051.119.052.123.05.127.051.131.05.135.049.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.044.171.042.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.022.23.02.233.018.236.016.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.012.241-.015.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.048.139-.05.136-.049.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.051.051-.049.023-.025.023-.024.021-.025.02-.024.019-.024.018-.024.017-.024.015-.023.014-.023.013-.024.012-.022.01-.023.01-.023.008-.022.006-.022.006-.022.004-.021.004-.022.001-.021.001-.021v-4.139l-.077.054-.08.054-.083.054-.085.052-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.044-.118.044-.12.044-.122.042-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.035-.143.033-.144.033-.147.033-.148.031-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.009-.179.009-.179.007-.181.007-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.007-.179-.007-.179-.009-.178-.009-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.031-.146-.033-.145-.033-.143-.033-.141-.035-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.04-.126-.041-.124-.042-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.051-.093-.051-.09-.051-.087-.053-.085-.052-.083-.054-.08-.054-.077-.054v4.139zm0-5.666v.011l.001.02.003.022.004.021.005.022.006.021.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.024.018.023.019.024.021.025.022.024.023.024.024.025.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.051.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.043.171.043.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.021.23.02.233.018.236.017.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.013.241-.014.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.049.139-.049.136-.049.131-.051.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.049.023-.025.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.022.01-.023.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.153l-.077.054-.08.054-.083.053-.085.053-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.048-.105.048-.106.048-.109.046-.111.046-.114.046-.115.044-.118.044-.12.043-.122.043-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.034-.143.034-.144.033-.147.032-.148.032-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.024-.161.024-.162.023-.163.023-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.01-.178.01-.179.009-.179.007-.181.006-.182.006-.182.004-.184.003-.184.001-.185.001-.185-.001-.184-.001-.184-.003-.182-.004-.182-.006-.181-.006-.179-.007-.179-.009-.178-.01-.176-.01-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.023-.162-.023-.161-.024-.159-.024-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.032-.146-.032-.145-.033-.143-.034-.141-.034-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.041-.126-.041-.124-.041-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.048-.105-.048-.102-.048-.1-.05-.097-.049-.095-.051-.093-.051-.09-.052-.087-.052-.085-.053-.083-.053-.08-.054-.077-.054v4.153zm8.74-8.179l-.257.004-.254.005-.25.008-.247.011-.244.012-.241.014-.237.016-.233.018-.231.021-.226.022-.224.023-.22.026-.216.027-.212.028-.21.031-.205.032-.202.033-.198.034-.194.036-.191.038-.187.038-.183.04-.179.041-.175.042-.172.043-.168.043-.163.045-.16.046-.155.046-.152.048-.148.048-.143.048-.139.049-.136.05-.131.05-.126.051-.123.051-.118.051-.114.052-.11.052-.106.052-.101.052-.096.052-.092.052-.088.052-.083.052-.079.052-.074.051-.07.052-.065.051-.06.05-.056.05-.051.05-.023.025-.023.024-.021.024-.02.025-.019.024-.018.024-.017.023-.015.024-.014.023-.013.023-.012.023-.01.023-.01.022-.008.022-.006.023-.006.021-.004.022-.004.021-.001.021-.001.021.001.021.001.021.004.021.004.022.006.021.006.023.008.022.01.022.01.023.012.023.013.023.014.023.015.024.017.023.018.024.019.024.02.025.021.024.023.024.023.025.051.05.056.05.06.05.065.051.07.052.074.051.079.052.083.052.088.052.092.052.096.052.101.052.106.052.11.052.114.052.118.051.123.051.126.051.131.05.136.05.139.049.143.048.148.048.152.048.155.046.16.046.163.045.168.043.172.043.175.042.179.041.183.04.187.038.191.038.194.036.198.034.202.033.205.032.21.031.212.028.216.027.22.026.224.023.226.022.231.021.233.018.237.016.241.014.244.012.247.011.25.008.254.005.257.004.26.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.022.224-.023.22-.026.216-.027.212-.028.21-.031.205-.032.202-.033.198-.034.194-.036.191-.038.187-.038.183-.04.179-.041.175-.042.172-.043.168-.043.163-.045.16-.046.155-.046.152-.048.148-.048.143-.048.139-.049.136-.05.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.05.051-.05.023-.025.023-.024.021-.024.02-.025.019-.024.018-.024.017-.023.015-.024.014-.023.013-.023.012-.023.01-.023.01-.022.008-.022.006-.023.006-.021.004-.022.004-.021.001-.021.001-.021-.001-.021-.001-.021-.004-.021-.004-.022-.006-.021-.006-.023-.008-.022-.01-.022-.01-.023-.012-.023-.013-.023-.014-.023-.015-.024-.017-.023-.018-.024-.019-.024-.02-.025-.021-.024-.023-.024-.023-.025-.051-.05-.056-.05-.06-.05-.065-.051-.07-.052-.074-.051-.079-.052-.083-.052-.088-.052-.092-.052-.096-.052-.101-.052-.106-.052-.11-.052-.114-.052-.118-.051-.123-.051-.126-.051-.131-.05-.136-.05-.139-.049-.143-.048-.148-.048-.152-.048-.155-.046-.16-.046-.163-.045-.168-.043-.172-.043-.175-.042-.179-.041-.183-.04-.187-.038-.191-.038-.194-.036-.198-.034-.202-.033-.205-.032-.21-.031-.212-.028-.216-.027-.22-.026-.224-.023-.226-.022-.231-.021-.233-.018-.237-.016-.241-.014-.244-.012-.247-.011-.25-.008-.254-.005-.257-.004-.26-.001-.26.001z");
2720
- }, "insertDatabaseIcon"), ye = /* @__PURE__ */ e(function(e, t) {
2721
- e.append("defs").append("symbol").attr("id", t + "-computer").attr("width", "24").attr("height", "24").append("path").attr("transform", "scale(.5)").attr("d", "M2 2v13h20v-13h-20zm18 11h-16v-9h16v9zm-10.228 6l.466-1h3.524l.467 1h-4.457zm14.228 3h-24l2-6h2.104l-1.33 4h18.45l-1.297-4h2.073l2 6zm-5-10h-14v-7h14v7z");
2722
- }, "insertComputerIcon"), be = /* @__PURE__ */ e(function(e, t) {
2723
- e.append("defs").append("symbol").attr("id", t + "-clock").attr("width", "24").attr("height", "24").append("path").attr("transform", "scale(.5)").attr("d", "M12 2c5.514 0 10 4.486 10 10s-4.486 10-10 10-10-4.486-10-10 4.486-10 10-10zm0-2c-6.627 0-12 5.373-12 12s5.373 12 12 12 12-5.373 12-12-5.373-12-12-12zm5.848 12.459c.202.038.202.333.001.372-1.907.361-6.045 1.111-6.547 1.111-.719 0-1.301-.582-1.301-1.301 0-.512.77-5.447 1.125-7.445.034-.192.312-.181.343.014l.985 6.238 5.394 1.011z");
2724
- }, "insertClockIcon"), xe = /* @__PURE__ */ e(function(e, t) {
2725
- e.append("defs").append("marker").attr("id", t + "-arrowhead").attr("refX", 9).attr("refY", 5).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 12).attr("markerHeight", 12).attr("orient", "auto").append("path").attr("d", "M 0 0 L 10 5 L 0 10 z");
2726
- }, "insertArrowHead"), Se = /* @__PURE__ */ e(function(e, t) {
2727
- e.append("defs").append("marker").attr("id", t + "-arrowend").attr("refX", 1).attr("refY", 5).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 12).attr("markerHeight", 12).attr("orient", "auto").append("path").attr("d", "M 10 0 L 0 5 L 10 10 z");
2728
- }, "insertArrowEnd"), Ce = /* @__PURE__ */ e(function(e, t) {
2729
- e.append("defs").append("marker").attr("id", t + "-filled-head").attr("refX", 18).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L14,7 L9,1 Z");
2730
- }, "insertArrowFilledHead"), we = /* @__PURE__ */ e(function(e, t) {
2731
- let n = e.append("defs").append("marker").attr("id", t + "-crosshead").attr("markerWidth", 15).attr("markerHeight", 8).attr("orient", "auto").attr("refX", 16).attr("refY", 4);
2732
- n.append("path").attr("fill", "black").attr("stroke", "#000000").style("stroke-dasharray", "0, 0").attr("stroke-width", "1px").attr("d", "M 9,2 V 6 L16,4 Z"), n.append("path").attr("fill", "none").attr("stroke", "#000000").style("stroke-dasharray", "0, 0").attr("stroke-width", "1px").attr("d", "M 0,1 L 6,7 M 6,1 L 0,7");
2733
- }, "insertArrowCrossHead"), Te = /* @__PURE__ */ e((e, t) => ({
2734
- fontFamily: e[t + "FontFamily"],
2735
- fontSize: e[t + "FontSize"],
2736
- fontWeight: e[t + "FontWeight"]
2737
- }), "getC4ShapeFont"), Y = /* @__PURE__ */ (function() {
2738
- function t(e, t, n, r, a, o, s) {
2739
- i(t.append("text").attr("x", n + a / 2).attr("y", r + o / 2 + 5).style("text-anchor", "middle").text(e), s);
2740
- }
2741
- e(t, "byText");
2742
- function n(e, t, n, r, a, s, l, u) {
2743
- let { fontSize: d, fontFamily: f, fontWeight: p } = u, m = e.split(o.lineBreakRegex);
2744
- for (let e = 0; e < m.length; e++) {
2745
- let o = e * d - d * (m.length - 1) / 2, s = t.append("text").attr("x", n + a / 2).attr("y", r).style("text-anchor", "middle").attr("dominant-baseline", "middle").style("font-size", d).style("font-weight", p).style("font-family", f);
2746
- s.append("tspan").attr("dy", o).text(m[e]).attr("alignment-baseline", "mathematical"), i(s, l);
2747
- }
2748
- }
2749
- e(n, "byTspan");
2750
- function r(e, t, r, a, o, s, l, u) {
2751
- let d = t.append("switch"), f = d.append("foreignObject").attr("x", r).attr("y", a).attr("width", o).attr("height", s).append("xhtml:div").style("display", "table").style("height", "100%").style("width", "100%");
2752
- f.append("div").style("display", "table-cell").style("text-align", "center").style("vertical-align", "middle").text(e), n(e, d, r, a, o, s, l, u), i(f, l);
2753
- }
2754
- e(r, "byFo");
2755
- function i(e, t) {
2756
- for (let n in t) t.hasOwnProperty(n) && e.attr(n, t[n]);
2757
- }
2758
- return e(i, "_setTextAttrs"), function(e) {
2759
- return e.textPlacement === "fo" ? r : e.textPlacement === "old" ? t : n;
2760
- };
2761
- })(), X = {
2762
- drawRect: pe,
2763
- drawBoundary: ge,
2764
- drawC4Shape: _e,
2765
- drawRels: he,
2766
- drawImage: me,
2767
- insertArrowHead: xe,
2768
- insertArrowEnd: Se,
2769
- insertArrowFilledHead: Ce,
2770
- insertArrowCrossHead: we,
2771
- insertDatabaseIcon: ve,
2772
- insertComputerIcon: ye,
2773
- insertClockIcon: be
2774
- }, Ee = 0, De = 0, Oe = 4, ke = 2;
2775
- S.yy = fe;
2776
- var Z = {}, Ae = (b = class {
2777
- constructor(e) {
2778
- this.name = "", this.data = {}, this.data.startx = void 0, this.data.stopx = void 0, this.data.starty = void 0, this.data.stopy = void 0, this.data.widthLimit = void 0, this.nextData = {}, this.nextData.startx = void 0, this.nextData.stopx = void 0, this.nextData.starty = void 0, this.nextData.stopy = void 0, this.nextData.cnt = 0, je(e.db.getConfig());
2779
- }
2780
- setData(e, t, n, r) {
2781
- this.nextData.startx = this.data.startx = e, this.nextData.stopx = this.data.stopx = t, this.nextData.starty = this.data.starty = n, this.nextData.stopy = this.data.stopy = r;
2782
- }
2783
- updateVal(e, t, n, r) {
2784
- e[t] === void 0 ? e[t] = n : e[t] = r(n, e[t]);
2785
- }
2786
- insert(e) {
2787
- this.nextData.cnt = this.nextData.cnt + 1;
2788
- let t = this.nextData.startx === this.nextData.stopx ? this.nextData.stopx + e.margin : this.nextData.stopx + e.margin * 2, n = t + e.width, r = this.nextData.starty + e.margin * 2, i = r + e.height;
2789
- (t >= this.data.widthLimit || n >= this.data.widthLimit || this.nextData.cnt > Oe) && (t = this.nextData.startx + e.margin + Z.nextLinePaddingX, r = this.nextData.stopy + e.margin * 2, this.nextData.stopx = n = t + e.width, this.nextData.starty = this.nextData.stopy, this.nextData.stopy = i = r + e.height, this.nextData.cnt = 1), e.x = t, e.y = r, this.updateVal(this.data, "startx", t, Math.min), this.updateVal(this.data, "starty", r, Math.min), this.updateVal(this.data, "stopx", n, Math.max), this.updateVal(this.data, "stopy", i, Math.max), this.updateVal(this.nextData, "startx", t, Math.min), this.updateVal(this.nextData, "starty", r, Math.min), this.updateVal(this.nextData, "stopx", n, Math.max), this.updateVal(this.nextData, "stopy", i, Math.max);
2790
- }
2791
- init(e) {
2792
- this.name = "", this.data = {
2793
- startx: void 0,
2794
- stopx: void 0,
2795
- starty: void 0,
2796
- stopy: void 0,
2797
- widthLimit: void 0
2798
- }, this.nextData = {
2799
- startx: void 0,
2800
- stopx: void 0,
2801
- starty: void 0,
2802
- stopy: void 0,
2803
- cnt: 0
2804
- }, je(e.db.getConfig());
2805
- }
2806
- bumpLastMargin(e) {
2807
- this.data.stopx += e, this.data.stopy += e;
2808
- }
2809
- }, e(b, "Bounds"), b), je = /* @__PURE__ */ e(function(e) {
2810
- a(Z, e), e.fontFamily && (Z.personFontFamily = Z.systemFontFamily = Z.messageFontFamily = e.fontFamily), e.fontSize && (Z.personFontSize = Z.systemFontSize = Z.messageFontSize = e.fontSize), e.fontWeight && (Z.personFontWeight = Z.systemFontWeight = Z.messageFontWeight = e.fontWeight);
2811
- }, "setConf"), Me = /* @__PURE__ */ e((e, t) => ({
2812
- fontFamily: e[t + "FontFamily"],
2813
- fontSize: e[t + "FontSize"],
2814
- fontWeight: e[t + "FontWeight"]
2815
- }), "c4ShapeFont"), Ne = /* @__PURE__ */ e((e) => ({
2816
- fontFamily: e.boundaryFontFamily,
2817
- fontSize: e.boundaryFontSize,
2818
- fontWeight: e.boundaryFontWeight
2819
- }), "boundaryFont"), Pe = /* @__PURE__ */ e((e) => ({
2820
- fontFamily: e.messageFontFamily,
2821
- fontSize: e.messageFontSize,
2822
- fontWeight: e.messageFontWeight
2823
- }), "messageFont");
2824
- function Q(e, t, n, r, i) {
2825
- if (!t[e].width) if (n) t[e].text = p(t[e].text, i, r), t[e].textLines = t[e].text.split(o.lineBreakRegex).length, t[e].width = i, t[e].height = m(t[e].text, r);
2826
- else {
2827
- let n = t[e].text.split(o.lineBreakRegex);
2828
- t[e].textLines = n.length;
2829
- let i = 0;
2830
- t[e].height = 0, t[e].width = 0;
2831
- for (let a of n) t[e].width = Math.max(h(a, r), t[e].width), i = m(a, r), t[e].height = t[e].height + i;
2832
- }
2833
- }
2834
- e(Q, "calcC4ShapeTextWH");
2835
- var Fe = /* @__PURE__ */ e(function(e, t, n) {
2836
- t.x = n.data.startx, t.y = n.data.starty, t.width = n.data.stopx - n.data.startx, t.height = n.data.stopy - n.data.starty, t.label.y = Z.c4ShapeMargin - 35;
2837
- let r = t.wrap && Z.wrap, i = Ne(Z);
2838
- i.fontSize += 2, i.fontWeight = "bold", Q("label", t, r, i, h(t.label.text, i)), X.drawBoundary(e, t, Z);
2839
- }, "drawBoundary"), Ie = /* @__PURE__ */ e(function(e, t, n, r) {
2840
- let i = 0;
2841
- for (let a of r) {
2842
- i = 0;
2843
- let r = n[a], o = Me(Z, r.typeC4Shape.text);
2844
- switch (o.fontSize -= 2, r.typeC4Shape.width = h("«" + r.typeC4Shape.text + "»", o), r.typeC4Shape.height = o.fontSize + 2, r.typeC4Shape.Y = Z.c4ShapePadding, i = r.typeC4Shape.Y + r.typeC4Shape.height - 4, r.image = {
2845
- width: 0,
2846
- height: 0,
2847
- Y: 0
2848
- }, r.typeC4Shape.text) {
2849
- case "person":
2850
- case "external_person":
2851
- r.image.width = 48, r.image.height = 48, r.image.Y = i, i = r.image.Y + r.image.height;
2852
- break;
2853
- }
2854
- r.sprite && (r.image.width = 48, r.image.height = 48, r.image.Y = i, i = r.image.Y + r.image.height);
2855
- let s = r.wrap && Z.wrap, l = Z.width - Z.c4ShapePadding * 2, u = Me(Z, r.typeC4Shape.text);
2856
- u.fontSize += 2, u.fontWeight = "bold", Q("label", r, s, u, l), r.label.Y = i + 8, i = r.label.Y + r.label.height, r.type && r.type.text !== "" ? (r.type.text = "[" + r.type.text + "]", Q("type", r, s, Me(Z, r.typeC4Shape.text), l), r.type.Y = i + 5, i = r.type.Y + r.type.height) : r.techn && r.techn.text !== "" && (r.techn.text = "[" + r.techn.text + "]", Q("techn", r, s, Me(Z, r.techn.text), l), r.techn.Y = i + 5, i = r.techn.Y + r.techn.height);
2857
- let d = i, f = r.label.width;
2858
- r.descr && r.descr.text !== "" && (Q("descr", r, s, Me(Z, r.typeC4Shape.text), l), r.descr.Y = i + 20, i = r.descr.Y + r.descr.height, f = Math.max(r.label.width, r.descr.width), d = i - r.descr.textLines * 5), f += Z.c4ShapePadding, r.width = Math.max(r.width || Z.width, f, Z.width), r.height = Math.max(r.height || Z.height, d, Z.height), r.margin = r.margin || Z.c4ShapeMargin, e.insert(r), X.drawC4Shape(t, r, Z);
2859
- }
2860
- e.bumpLastMargin(Z.c4ShapeMargin);
2861
- }, "drawC4ShapeArray"), $ = (x = class {
2862
- constructor(e, t) {
2863
- this.x = e, this.y = t;
2864
- }
2865
- }, e(x, "Point"), x), Le = /* @__PURE__ */ e(function(e, t) {
2866
- let n = e.x, r = e.y, i = t.x, a = t.y, o = n + e.width / 2, s = r + e.height / 2, l = Math.abs(n - i), u = Math.abs(r - a), d = u / l, f = e.height / e.width, p = null;
2867
- return r == a && n < i ? p = new $(n + e.width, s) : r == a && n > i ? p = new $(n, s) : n == i && r < a ? p = new $(o, r + e.height) : n == i && r > a && (p = new $(o, r)), n > i && r < a ? p = f >= d ? new $(n, s + d * e.width / 2) : new $(o - l / u * e.height / 2, r + e.height) : n < i && r < a ? p = f >= d ? new $(n + e.width, s + d * e.width / 2) : new $(o + l / u * e.height / 2, r + e.height) : n < i && r > a ? p = f >= d ? new $(n + e.width, s - d * e.width / 2) : new $(o + e.height / 2 * l / u, r) : n > i && r > a && (p = f >= d ? new $(n, s - e.width / 2 * d) : new $(o - e.height / 2 * l / u, r)), p;
2868
- }, "getIntersectPoint"), Re = /* @__PURE__ */ e(function(e, t) {
2869
- let n = {
2870
- x: 0,
2871
- y: 0
2872
- };
2873
- n.x = t.x + t.width / 2, n.y = t.y + t.height / 2;
2874
- let r = Le(e, n);
2875
- return n.x = e.x + e.width / 2, n.y = e.y + e.height / 2, {
2876
- startPoint: r,
2877
- endPoint: Le(t, n)
2878
- };
2879
- }, "getIntersectPoints"), ze = /* @__PURE__ */ e(function(e, t, n, r, i) {
2880
- let a = 0;
2881
- for (let e of t) {
2882
- a += 1;
2883
- let t = e.wrap && Z.wrap, i = Pe(Z);
2884
- r.db.getC4Type() === "C4Dynamic" && (e.label.text = a + ": " + e.label.text);
2885
- let o = h(e.label.text, i);
2886
- Q("label", e, t, i, o), e.techn && e.techn.text !== "" && (o = h(e.techn.text, i), Q("techn", e, t, i, o)), e.descr && e.descr.text !== "" && (o = h(e.descr.text, i), Q("descr", e, t, i, o));
2887
- let s = Re(n(e.from), n(e.to));
2888
- e.startPoint = s.startPoint, e.endPoint = s.endPoint;
2889
- }
2890
- X.drawRels(e, t, Z, i);
2891
- }, "drawRels");
2892
- function Be(e, t, n, r, i) {
2893
- let a = new Ae(i);
2894
- a.data.widthLimit = n.data.widthLimit / Math.min(ke, r.length);
2895
- for (let [o, s] of r.entries()) {
2896
- let r = 0;
2897
- s.image = {
2898
- width: 0,
2899
- height: 0,
2900
- Y: 0
2901
- }, s.sprite && (s.image.width = 48, s.image.height = 48, s.image.Y = r, r = s.image.Y + s.image.height);
2902
- let l = s.wrap && Z.wrap, u = Ne(Z);
2903
- if (u.fontSize += 2, u.fontWeight = "bold", Q("label", s, l, u, a.data.widthLimit), s.label.Y = r + 8, r = s.label.Y + s.label.height, s.type && s.type.text !== "" && (s.type.text = "[" + s.type.text + "]", Q("type", s, l, Ne(Z), a.data.widthLimit), s.type.Y = r + 5, r = s.type.Y + s.type.height), s.descr && s.descr.text !== "") {
2904
- let e = Ne(Z);
2905
- e.fontSize -= 2, Q("descr", s, l, e, a.data.widthLimit), s.descr.Y = r + 20, r = s.descr.Y + s.descr.height;
2906
- }
2907
- if (o == 0 || o % ke === 0) {
2908
- let e = n.data.startx + Z.diagramMarginX, t = n.data.stopy + Z.diagramMarginY + r;
2909
- a.setData(e, e, t, t);
2910
- } else {
2911
- let e = a.data.stopx === a.data.startx ? a.data.startx : a.data.stopx + Z.diagramMarginX, t = a.data.starty;
2912
- a.setData(e, e, t, t);
2913
- }
2914
- a.name = s.alias;
2915
- let d = i.db.getC4ShapeArray(s.alias), f = i.db.getC4ShapeKeys(s.alias);
2916
- f.length > 0 && Ie(a, e, d, f), t = s.alias;
2917
- let p = i.db.getBoundaries(t);
2918
- p.length > 0 && Be(e, t, a, p, i), s.alias !== "global" && Fe(e, s, a), n.data.stopy = Math.max(a.data.stopy + Z.c4ShapeMargin, n.data.stopy), n.data.stopx = Math.max(a.data.stopx + Z.c4ShapeMargin, n.data.stopx), Ee = Math.max(Ee, n.data.stopx), De = Math.max(De, n.data.stopy);
2919
- }
2920
- }
2921
- e(Be, "drawInsideBoundary");
2922
- var Ve = {
2923
- drawPersonOrSystemArray: Ie,
2924
- drawBoundary: Fe,
2925
- setConf: je,
2926
- draw: /* @__PURE__ */ e(function(e, n, r, a) {
2927
- Z = l().c4;
2928
- let o = l().securityLevel, s;
2929
- o === "sandbox" && (s = f("#i" + n));
2930
- let u = f(o === "sandbox" ? s.nodes()[0].contentDocument.body : "body"), d = a.db;
2931
- a.db.setWrap(Z.wrap), Oe = d.getC4ShapeInRow(), ke = d.getC4BoundaryInRow(), t.debug(`C:${JSON.stringify(Z, null, 2)}`);
2932
- let p = o === "sandbox" ? u.select(`[id="${n}"]`) : f(`[id="${n}"]`);
2933
- X.insertComputerIcon(p, n), X.insertDatabaseIcon(p, n), X.insertClockIcon(p, n);
2934
- let m = new Ae(a);
2935
- m.setData(Z.diagramMarginX, Z.diagramMarginX, Z.diagramMarginY, Z.diagramMarginY), m.data.widthLimit = screen.availWidth, Ee = Z.diagramMarginX, De = Z.diagramMarginY;
2936
- let h = a.db.getTitle();
2937
- Be(p, "", m, a.db.getBoundaries(""), a), X.insertArrowHead(p, n), X.insertArrowEnd(p, n), X.insertArrowCrossHead(p, n), X.insertArrowFilledHead(p, n), ze(p, a.db.getRels(), a.db.getC4Shape, a, n), m.data.stopx = Ee, m.data.stopy = De;
2938
- let g = m.data, _ = g.stopy - g.starty + 2 * Z.diagramMarginY, v = g.stopx - g.startx + 2 * Z.diagramMarginX;
2939
- h && p.append("text").text(h).attr("x", (g.stopx - g.startx) / 2 - 4 * Z.diagramMarginX).attr("y", g.starty + Z.diagramMarginY), i(p, _, v, Z.useMaxWidth);
2940
- let y = h ? 60 : 0;
2941
- p.attr("viewBox", g.startx - Z.diagramMarginX + " -" + (Z.diagramMarginY + y) + " " + v + " " + (_ + y)), t.debug("models:", g);
2942
- }, "draw")
2943
- }, He = {
2944
- parser: C,
2945
- db: fe,
2946
- renderer: Ve,
2947
- styles: /* @__PURE__ */ e((e) => `.person {
2948
- stroke: ${e.personBorder};
2949
- fill: ${e.personBkg};
2950
- }
2951
- `, "getStyles"),
2952
- init: /* @__PURE__ */ e(({ c4: e, wrap: t }) => {
2953
- Ve.setConf(e), fe.setWrap(t);
2954
- }, "init")
2955
- };
2956
- //#endregion
2957
- export { He as diagram };