file-viewer3 1.0.26 → 2.0.0

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 +7 -377
  2. package/README.md +8 -352
  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 +27 -129
  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,1719 +0,0 @@
1
- import { n as e, t } from "./asyncToGenerator.js";
2
- import { n, r, t as i } from "./chunk-AGHRB4JF.js";
3
- import { H as a, K as o, U as s, a as c, it as l, v as u, w as d, x as f, y as p } from "./chunk-CSCIHK7Q.js";
4
- import { t as m } from "./channel.js";
5
- import { Q as h } from "./src.js";
6
- import { c as g, g as _ } from "./chunk-5ZQYHXKU.js";
7
- import "./chunk-BSJP7CBP.js";
8
- import "./chunk-L5ZTLDWV.js";
9
- import "./chunk-NZK2D7GU.js";
10
- import "./chunk-O5CBEL6O.js";
11
- import "./chunk-3OPIFGDE.js";
12
- import "./chunk-KSCS5N6A.js";
13
- import { r as v, t as y } from "./chunk-LZXEDZCA.js";
14
- import { t as b } from "./chunk-55IACEB6.js";
15
- import { t as x } from "./chunk-2J33WTMH.js";
16
- //#region node_modules/.pnpm/mermaid@11.15.0/node_modules/mermaid/dist/chunks/mermaid.core/erDiagram-TEJ5UH35.mjs
17
- e();
18
- var S, C = (function() {
19
- var e = /* @__PURE__ */ n(function(e, t, n, r) {
20
- for (n = n || {}, r = e.length; r--; n[e[r]] = t);
21
- return n;
22
- }, "o"), t = [
23
- 6,
24
- 8,
25
- 10,
26
- 22,
27
- 24,
28
- 26,
29
- 28,
30
- 33,
31
- 34,
32
- 35,
33
- 36,
34
- 37,
35
- 40,
36
- 43,
37
- 44,
38
- 48,
39
- 50,
40
- 51,
41
- 52
42
- ], r = [1, 10], i = [1, 11], a = [1, 12], o = [1, 13], s = [1, 23], c = [1, 24], l = [1, 25], u = [1, 26], d = [1, 27], f = [1, 19], p = [1, 28], m = [1, 29], h = [1, 20], g = [1, 18], _ = [1, 21], v = [1, 22], y = [1, 36], b = [1, 37], x = [1, 38], S = [1, 39], C = [1, 40], w = [
43
- 6,
44
- 8,
45
- 10,
46
- 13,
47
- 15,
48
- 17,
49
- 20,
50
- 21,
51
- 22,
52
- 24,
53
- 26,
54
- 28,
55
- 33,
56
- 34,
57
- 35,
58
- 36,
59
- 37,
60
- 40,
61
- 43,
62
- 44,
63
- 48,
64
- 50,
65
- 51,
66
- 52,
67
- 65,
68
- 66,
69
- 67,
70
- 68,
71
- 69
72
- ], T = [1, 45], E = [1, 46], D = [1, 55], O = [
73
- 40,
74
- 48,
75
- 50,
76
- 51,
77
- 52,
78
- 70,
79
- 71
80
- ], k = [1, 66], A = [1, 64], j = [1, 61], M = [1, 65], N = [1, 67], P = [
81
- 6,
82
- 8,
83
- 10,
84
- 13,
85
- 17,
86
- 22,
87
- 24,
88
- 26,
89
- 28,
90
- 33,
91
- 34,
92
- 35,
93
- 36,
94
- 37,
95
- 40,
96
- 41,
97
- 42,
98
- 43,
99
- 44,
100
- 48,
101
- 49,
102
- 50,
103
- 51,
104
- 52,
105
- 65,
106
- 66,
107
- 67,
108
- 68,
109
- 69
110
- ], F = [
111
- 65,
112
- 66,
113
- 67,
114
- 68,
115
- 69
116
- ], I = [1, 84], L = [1, 83], R = [1, 81], z = [1, 82], B = [
117
- 6,
118
- 10,
119
- 42,
120
- 47
121
- ], V = [
122
- 6,
123
- 10,
124
- 13,
125
- 41,
126
- 42,
127
- 47,
128
- 48,
129
- 49
130
- ], H = [1, 92], U = [1, 91], W = [1, 90], G = [19, 58], K = [1, 101], q = [1, 100], J = [
131
- 19,
132
- 58,
133
- 60,
134
- 62
135
- ], Y = {
136
- trace: /* @__PURE__ */ n(function() {}, "trace"),
137
- yy: {},
138
- symbols_: {
139
- error: 2,
140
- start: 3,
141
- ER_DIAGRAM: 4,
142
- document: 5,
143
- EOF: 6,
144
- line: 7,
145
- SPACE: 8,
146
- statement: 9,
147
- NEWLINE: 10,
148
- entityName: 11,
149
- relSpec: 12,
150
- COLON: 13,
151
- role: 14,
152
- STYLE_SEPARATOR: 15,
153
- idList: 16,
154
- BLOCK_START: 17,
155
- attributes: 18,
156
- BLOCK_STOP: 19,
157
- SQS: 20,
158
- SQE: 21,
159
- title: 22,
160
- title_value: 23,
161
- acc_title: 24,
162
- acc_title_value: 25,
163
- acc_descr: 26,
164
- acc_descr_value: 27,
165
- acc_descr_multiline_value: 28,
166
- direction: 29,
167
- classDefStatement: 30,
168
- classStatement: 31,
169
- styleStatement: 32,
170
- direction_tb: 33,
171
- direction_bt: 34,
172
- direction_rl: 35,
173
- direction_lr: 36,
174
- CLASSDEF: 37,
175
- stylesOpt: 38,
176
- separator: 39,
177
- UNICODE_TEXT: 40,
178
- STYLE_TEXT: 41,
179
- COMMA: 42,
180
- CLASS: 43,
181
- STYLE: 44,
182
- style: 45,
183
- styleComponent: 46,
184
- SEMI: 47,
185
- NUM: 48,
186
- BRKT: 49,
187
- ENTITY_NAME: 50,
188
- DECIMAL_NUM: 51,
189
- ENTITY_ONE: 52,
190
- attribute: 53,
191
- attributeType: 54,
192
- attributeName: 55,
193
- attributeKeyTypeList: 56,
194
- attributeComment: 57,
195
- ATTRIBUTE_WORD: 58,
196
- attributeKeyType: 59,
197
- ",": 60,
198
- ATTRIBUTE_KEY: 61,
199
- COMMENT: 62,
200
- cardinality: 63,
201
- relType: 64,
202
- ZERO_OR_ONE: 65,
203
- ZERO_OR_MORE: 66,
204
- ONE_OR_MORE: 67,
205
- ONLY_ONE: 68,
206
- MD_PARENT: 69,
207
- NON_IDENTIFYING: 70,
208
- IDENTIFYING: 71,
209
- WORD: 72,
210
- $accept: 0,
211
- $end: 1
212
- },
213
- terminals_: {
214
- 2: "error",
215
- 4: "ER_DIAGRAM",
216
- 6: "EOF",
217
- 8: "SPACE",
218
- 10: "NEWLINE",
219
- 13: "COLON",
220
- 15: "STYLE_SEPARATOR",
221
- 17: "BLOCK_START",
222
- 19: "BLOCK_STOP",
223
- 20: "SQS",
224
- 21: "SQE",
225
- 22: "title",
226
- 23: "title_value",
227
- 24: "acc_title",
228
- 25: "acc_title_value",
229
- 26: "acc_descr",
230
- 27: "acc_descr_value",
231
- 28: "acc_descr_multiline_value",
232
- 33: "direction_tb",
233
- 34: "direction_bt",
234
- 35: "direction_rl",
235
- 36: "direction_lr",
236
- 37: "CLASSDEF",
237
- 40: "UNICODE_TEXT",
238
- 41: "STYLE_TEXT",
239
- 42: "COMMA",
240
- 43: "CLASS",
241
- 44: "STYLE",
242
- 47: "SEMI",
243
- 48: "NUM",
244
- 49: "BRKT",
245
- 50: "ENTITY_NAME",
246
- 51: "DECIMAL_NUM",
247
- 52: "ENTITY_ONE",
248
- 58: "ATTRIBUTE_WORD",
249
- 60: ",",
250
- 61: "ATTRIBUTE_KEY",
251
- 62: "COMMENT",
252
- 65: "ZERO_OR_ONE",
253
- 66: "ZERO_OR_MORE",
254
- 67: "ONE_OR_MORE",
255
- 68: "ONLY_ONE",
256
- 69: "MD_PARENT",
257
- 70: "NON_IDENTIFYING",
258
- 71: "IDENTIFYING",
259
- 72: "WORD"
260
- },
261
- productions_: [
262
- 0,
263
- [3, 3],
264
- [5, 0],
265
- [5, 2],
266
- [7, 2],
267
- [7, 1],
268
- [7, 1],
269
- [7, 1],
270
- [9, 5],
271
- [9, 9],
272
- [9, 7],
273
- [9, 7],
274
- [9, 4],
275
- [9, 6],
276
- [9, 3],
277
- [9, 5],
278
- [9, 1],
279
- [9, 3],
280
- [9, 7],
281
- [9, 9],
282
- [9, 6],
283
- [9, 8],
284
- [9, 4],
285
- [9, 6],
286
- [9, 2],
287
- [9, 2],
288
- [9, 2],
289
- [9, 1],
290
- [9, 1],
291
- [9, 1],
292
- [9, 1],
293
- [9, 1],
294
- [29, 1],
295
- [29, 1],
296
- [29, 1],
297
- [29, 1],
298
- [30, 4],
299
- [16, 1],
300
- [16, 1],
301
- [16, 3],
302
- [16, 3],
303
- [31, 3],
304
- [32, 4],
305
- [38, 1],
306
- [38, 3],
307
- [45, 1],
308
- [45, 2],
309
- [39, 1],
310
- [39, 1],
311
- [39, 1],
312
- [46, 1],
313
- [46, 1],
314
- [46, 1],
315
- [46, 1],
316
- [11, 1],
317
- [11, 1],
318
- [11, 1],
319
- [11, 1],
320
- [11, 1],
321
- [18, 1],
322
- [18, 2],
323
- [53, 2],
324
- [53, 3],
325
- [53, 3],
326
- [53, 4],
327
- [54, 1],
328
- [55, 1],
329
- [56, 1],
330
- [56, 3],
331
- [59, 1],
332
- [57, 1],
333
- [12, 3],
334
- [63, 1],
335
- [63, 1],
336
- [63, 1],
337
- [63, 1],
338
- [63, 1],
339
- [64, 1],
340
- [64, 1],
341
- [14, 1],
342
- [14, 1],
343
- [14, 1]
344
- ],
345
- performAction: /* @__PURE__ */ n(function(e, t, n, r, i, a, o) {
346
- var s = a.length - 1;
347
- switch (i) {
348
- case 1: break;
349
- case 2:
350
- this.$ = [];
351
- break;
352
- case 3:
353
- a[s - 1].push(a[s]), this.$ = a[s - 1];
354
- break;
355
- case 4:
356
- case 5:
357
- this.$ = a[s];
358
- break;
359
- case 6:
360
- case 7:
361
- this.$ = [];
362
- break;
363
- case 8:
364
- r.addEntity(a[s - 4]), r.addEntity(a[s - 2]), r.addRelationship(a[s - 4], a[s], a[s - 2], a[s - 3]);
365
- break;
366
- case 9:
367
- r.addEntity(a[s - 8]), r.addEntity(a[s - 4]), r.addRelationship(a[s - 8], a[s], a[s - 4], a[s - 5]), r.setClass([a[s - 8]], a[s - 6]), r.setClass([a[s - 4]], a[s - 2]);
368
- break;
369
- case 10:
370
- r.addEntity(a[s - 6]), r.addEntity(a[s - 2]), r.addRelationship(a[s - 6], a[s], a[s - 2], a[s - 3]), r.setClass([a[s - 6]], a[s - 4]);
371
- break;
372
- case 11:
373
- r.addEntity(a[s - 6]), r.addEntity(a[s - 4]), r.addRelationship(a[s - 6], a[s], a[s - 4], a[s - 5]), r.setClass([a[s - 4]], a[s - 2]);
374
- break;
375
- case 12:
376
- r.addEntity(a[s - 3]), r.addAttributes(a[s - 3], a[s - 1]);
377
- break;
378
- case 13:
379
- r.addEntity(a[s - 5]), r.addAttributes(a[s - 5], a[s - 1]), r.setClass([a[s - 5]], a[s - 3]);
380
- break;
381
- case 14:
382
- r.addEntity(a[s - 2]);
383
- break;
384
- case 15:
385
- r.addEntity(a[s - 4]), r.setClass([a[s - 4]], a[s - 2]);
386
- break;
387
- case 16:
388
- r.addEntity(a[s]);
389
- break;
390
- case 17:
391
- r.addEntity(a[s - 2]), r.setClass([a[s - 2]], a[s]);
392
- break;
393
- case 18:
394
- r.addEntity(a[s - 6], a[s - 4]), r.addAttributes(a[s - 6], a[s - 1]);
395
- break;
396
- case 19:
397
- r.addEntity(a[s - 8], a[s - 6]), r.addAttributes(a[s - 8], a[s - 1]), r.setClass([a[s - 8]], a[s - 3]);
398
- break;
399
- case 20:
400
- r.addEntity(a[s - 5], a[s - 3]);
401
- break;
402
- case 21:
403
- r.addEntity(a[s - 7], a[s - 5]), r.setClass([a[s - 7]], a[s - 2]);
404
- break;
405
- case 22:
406
- r.addEntity(a[s - 3], a[s - 1]);
407
- break;
408
- case 23:
409
- r.addEntity(a[s - 5], a[s - 3]), r.setClass([a[s - 5]], a[s]);
410
- break;
411
- case 24:
412
- case 25:
413
- this.$ = a[s].trim(), r.setAccTitle(this.$);
414
- break;
415
- case 26:
416
- case 27:
417
- this.$ = a[s].trim(), r.setAccDescription(this.$);
418
- break;
419
- case 32:
420
- r.setDirection("TB");
421
- break;
422
- case 33:
423
- r.setDirection("BT");
424
- break;
425
- case 34:
426
- r.setDirection("RL");
427
- break;
428
- case 35:
429
- r.setDirection("LR");
430
- break;
431
- case 36:
432
- this.$ = a[s - 3], r.addClass(a[s - 2], a[s - 1]);
433
- break;
434
- case 37:
435
- case 38:
436
- case 59:
437
- case 67:
438
- this.$ = [a[s]];
439
- break;
440
- case 39:
441
- case 40:
442
- this.$ = a[s - 2].concat([a[s]]);
443
- break;
444
- case 41:
445
- this.$ = a[s - 2], r.setClass(a[s - 1], a[s]);
446
- break;
447
- case 42:
448
- this.$ = a[s - 3], r.addCssStyles(a[s - 2], a[s - 1]);
449
- break;
450
- case 43:
451
- this.$ = [a[s]];
452
- break;
453
- case 44:
454
- a[s - 2].push(a[s]), this.$ = a[s - 2];
455
- break;
456
- case 46:
457
- this.$ = a[s - 1] + a[s];
458
- break;
459
- case 54:
460
- case 79:
461
- case 80:
462
- this.$ = a[s].replace(/"/g, "");
463
- break;
464
- case 55:
465
- case 56:
466
- case 57:
467
- case 58:
468
- case 81:
469
- this.$ = a[s];
470
- break;
471
- case 60:
472
- a[s].push(a[s - 1]), this.$ = a[s];
473
- break;
474
- case 61:
475
- this.$ = {
476
- type: a[s - 1],
477
- name: a[s]
478
- };
479
- break;
480
- case 62:
481
- this.$ = {
482
- type: a[s - 2],
483
- name: a[s - 1],
484
- keys: a[s]
485
- };
486
- break;
487
- case 63:
488
- this.$ = {
489
- type: a[s - 2],
490
- name: a[s - 1],
491
- comment: a[s]
492
- };
493
- break;
494
- case 64:
495
- this.$ = {
496
- type: a[s - 3],
497
- name: a[s - 2],
498
- keys: a[s - 1],
499
- comment: a[s]
500
- };
501
- break;
502
- case 65:
503
- case 66:
504
- case 69:
505
- this.$ = a[s];
506
- break;
507
- case 68:
508
- a[s - 2].push(a[s]), this.$ = a[s - 2];
509
- break;
510
- case 70:
511
- this.$ = a[s].replace(/"/g, "");
512
- break;
513
- case 71:
514
- this.$ = {
515
- cardA: a[s],
516
- relType: a[s - 1],
517
- cardB: a[s - 2]
518
- };
519
- break;
520
- case 72:
521
- this.$ = r.Cardinality.ZERO_OR_ONE;
522
- break;
523
- case 73:
524
- this.$ = r.Cardinality.ZERO_OR_MORE;
525
- break;
526
- case 74:
527
- this.$ = r.Cardinality.ONE_OR_MORE;
528
- break;
529
- case 75:
530
- this.$ = r.Cardinality.ONLY_ONE;
531
- break;
532
- case 76:
533
- this.$ = r.Cardinality.MD_PARENT;
534
- break;
535
- case 77:
536
- this.$ = r.Identification.NON_IDENTIFYING;
537
- break;
538
- case 78:
539
- this.$ = r.Identification.IDENTIFYING;
540
- break;
541
- }
542
- }, "anonymous"),
543
- table: [
544
- {
545
- 3: 1,
546
- 4: [1, 2]
547
- },
548
- { 1: [3] },
549
- e(t, [2, 2], { 5: 3 }),
550
- {
551
- 6: [1, 4],
552
- 7: 5,
553
- 8: [1, 6],
554
- 9: 7,
555
- 10: [1, 8],
556
- 11: 9,
557
- 22: r,
558
- 24: i,
559
- 26: a,
560
- 28: o,
561
- 29: 14,
562
- 30: 15,
563
- 31: 16,
564
- 32: 17,
565
- 33: s,
566
- 34: c,
567
- 35: l,
568
- 36: u,
569
- 37: d,
570
- 40: f,
571
- 43: p,
572
- 44: m,
573
- 48: h,
574
- 50: g,
575
- 51: _,
576
- 52: v
577
- },
578
- e(t, [2, 7], { 1: [2, 1] }),
579
- e(t, [2, 3]),
580
- {
581
- 9: 30,
582
- 11: 9,
583
- 22: r,
584
- 24: i,
585
- 26: a,
586
- 28: o,
587
- 29: 14,
588
- 30: 15,
589
- 31: 16,
590
- 32: 17,
591
- 33: s,
592
- 34: c,
593
- 35: l,
594
- 36: u,
595
- 37: d,
596
- 40: f,
597
- 43: p,
598
- 44: m,
599
- 48: h,
600
- 50: g,
601
- 51: _,
602
- 52: v
603
- },
604
- e(t, [2, 5]),
605
- e(t, [2, 6]),
606
- e(t, [2, 16], {
607
- 12: 31,
608
- 63: 35,
609
- 15: [1, 32],
610
- 17: [1, 33],
611
- 20: [1, 34],
612
- 65: y,
613
- 66: b,
614
- 67: x,
615
- 68: S,
616
- 69: C
617
- }),
618
- { 23: [1, 41] },
619
- { 25: [1, 42] },
620
- { 27: [1, 43] },
621
- e(t, [2, 27]),
622
- e(t, [2, 28]),
623
- e(t, [2, 29]),
624
- e(t, [2, 30]),
625
- e(t, [2, 31]),
626
- e(w, [2, 54]),
627
- e(w, [2, 55]),
628
- e(w, [2, 56]),
629
- e(w, [2, 57]),
630
- e(w, [2, 58]),
631
- e(t, [2, 32]),
632
- e(t, [2, 33]),
633
- e(t, [2, 34]),
634
- e(t, [2, 35]),
635
- {
636
- 16: 44,
637
- 40: T,
638
- 41: E
639
- },
640
- {
641
- 16: 47,
642
- 40: T,
643
- 41: E
644
- },
645
- {
646
- 16: 48,
647
- 40: T,
648
- 41: E
649
- },
650
- e(t, [2, 4]),
651
- {
652
- 11: 49,
653
- 40: f,
654
- 48: h,
655
- 50: g,
656
- 51: _,
657
- 52: v
658
- },
659
- {
660
- 16: 50,
661
- 40: T,
662
- 41: E
663
- },
664
- {
665
- 18: 51,
666
- 19: [1, 52],
667
- 53: 53,
668
- 54: 54,
669
- 58: D
670
- },
671
- {
672
- 11: 56,
673
- 40: f,
674
- 48: h,
675
- 50: g,
676
- 51: _,
677
- 52: v
678
- },
679
- {
680
- 64: 57,
681
- 70: [1, 58],
682
- 71: [1, 59]
683
- },
684
- e(O, [2, 72]),
685
- e(O, [2, 73]),
686
- e(O, [2, 74]),
687
- e(O, [2, 75]),
688
- e(O, [2, 76]),
689
- e(t, [2, 24]),
690
- e(t, [2, 25]),
691
- e(t, [2, 26]),
692
- {
693
- 13: k,
694
- 38: 60,
695
- 41: A,
696
- 42: j,
697
- 45: 62,
698
- 46: 63,
699
- 48: M,
700
- 49: N
701
- },
702
- e(P, [2, 37]),
703
- e(P, [2, 38]),
704
- {
705
- 16: 68,
706
- 40: T,
707
- 41: E,
708
- 42: j
709
- },
710
- {
711
- 13: k,
712
- 38: 69,
713
- 41: A,
714
- 42: j,
715
- 45: 62,
716
- 46: 63,
717
- 48: M,
718
- 49: N
719
- },
720
- {
721
- 13: [1, 70],
722
- 15: [1, 71]
723
- },
724
- e(t, [2, 17], {
725
- 63: 35,
726
- 12: 72,
727
- 17: [1, 73],
728
- 42: j,
729
- 65: y,
730
- 66: b,
731
- 67: x,
732
- 68: S,
733
- 69: C
734
- }),
735
- { 19: [1, 74] },
736
- e(t, [2, 14]),
737
- {
738
- 18: 75,
739
- 19: [2, 59],
740
- 53: 53,
741
- 54: 54,
742
- 58: D
743
- },
744
- {
745
- 55: 76,
746
- 58: [1, 77]
747
- },
748
- { 58: [2, 65] },
749
- { 21: [1, 78] },
750
- {
751
- 63: 79,
752
- 65: y,
753
- 66: b,
754
- 67: x,
755
- 68: S,
756
- 69: C
757
- },
758
- e(F, [2, 77]),
759
- e(F, [2, 78]),
760
- {
761
- 6: I,
762
- 10: L,
763
- 39: 80,
764
- 42: R,
765
- 47: z
766
- },
767
- {
768
- 40: [1, 85],
769
- 41: [1, 86]
770
- },
771
- e(B, [2, 43], {
772
- 46: 87,
773
- 13: k,
774
- 41: A,
775
- 48: M,
776
- 49: N
777
- }),
778
- e(V, [2, 45]),
779
- e(V, [2, 50]),
780
- e(V, [2, 51]),
781
- e(V, [2, 52]),
782
- e(V, [2, 53]),
783
- e(t, [2, 41], { 42: j }),
784
- {
785
- 6: I,
786
- 10: L,
787
- 39: 88,
788
- 42: R,
789
- 47: z
790
- },
791
- {
792
- 14: 89,
793
- 40: H,
794
- 50: U,
795
- 72: W
796
- },
797
- {
798
- 16: 93,
799
- 40: T,
800
- 41: E
801
- },
802
- {
803
- 11: 94,
804
- 40: f,
805
- 48: h,
806
- 50: g,
807
- 51: _,
808
- 52: v
809
- },
810
- {
811
- 18: 95,
812
- 19: [1, 96],
813
- 53: 53,
814
- 54: 54,
815
- 58: D
816
- },
817
- e(t, [2, 12]),
818
- { 19: [2, 60] },
819
- e(G, [2, 61], {
820
- 56: 97,
821
- 57: 98,
822
- 59: 99,
823
- 61: K,
824
- 62: q
825
- }),
826
- e([
827
- 19,
828
- 58,
829
- 61,
830
- 62
831
- ], [2, 66]),
832
- e(t, [2, 22], {
833
- 15: [1, 103],
834
- 17: [1, 102]
835
- }),
836
- e([
837
- 40,
838
- 48,
839
- 50,
840
- 51,
841
- 52
842
- ], [2, 71]),
843
- e(t, [2, 36]),
844
- {
845
- 13: k,
846
- 41: A,
847
- 45: 104,
848
- 46: 63,
849
- 48: M,
850
- 49: N
851
- },
852
- e(t, [2, 47]),
853
- e(t, [2, 48]),
854
- e(t, [2, 49]),
855
- e(P, [2, 39]),
856
- e(P, [2, 40]),
857
- e(V, [2, 46]),
858
- e(t, [2, 42]),
859
- e(t, [2, 8]),
860
- e(t, [2, 79]),
861
- e(t, [2, 80]),
862
- e(t, [2, 81]),
863
- {
864
- 13: [1, 105],
865
- 42: j
866
- },
867
- {
868
- 13: [1, 107],
869
- 15: [1, 106]
870
- },
871
- { 19: [1, 108] },
872
- e(t, [2, 15]),
873
- e(G, [2, 62], {
874
- 57: 109,
875
- 60: [1, 110],
876
- 62: q
877
- }),
878
- e(G, [2, 63]),
879
- e(J, [2, 67]),
880
- e(G, [2, 70]),
881
- e(J, [2, 69]),
882
- {
883
- 18: 111,
884
- 19: [1, 112],
885
- 53: 53,
886
- 54: 54,
887
- 58: D
888
- },
889
- {
890
- 16: 113,
891
- 40: T,
892
- 41: E
893
- },
894
- e(B, [2, 44], {
895
- 46: 87,
896
- 13: k,
897
- 41: A,
898
- 48: M,
899
- 49: N
900
- }),
901
- {
902
- 14: 114,
903
- 40: H,
904
- 50: U,
905
- 72: W
906
- },
907
- {
908
- 16: 115,
909
- 40: T,
910
- 41: E
911
- },
912
- {
913
- 14: 116,
914
- 40: H,
915
- 50: U,
916
- 72: W
917
- },
918
- e(t, [2, 13]),
919
- e(G, [2, 64]),
920
- {
921
- 59: 117,
922
- 61: K
923
- },
924
- { 19: [1, 118] },
925
- e(t, [2, 20]),
926
- e(t, [2, 23], {
927
- 17: [1, 119],
928
- 42: j
929
- }),
930
- e(t, [2, 11]),
931
- {
932
- 13: [1, 120],
933
- 42: j
934
- },
935
- e(t, [2, 10]),
936
- e(J, [2, 68]),
937
- e(t, [2, 18]),
938
- {
939
- 18: 121,
940
- 19: [1, 122],
941
- 53: 53,
942
- 54: 54,
943
- 58: D
944
- },
945
- {
946
- 14: 123,
947
- 40: H,
948
- 50: U,
949
- 72: W
950
- },
951
- { 19: [1, 124] },
952
- e(t, [2, 21]),
953
- e(t, [2, 9]),
954
- e(t, [2, 19])
955
- ],
956
- defaultActions: {
957
- 55: [2, 65],
958
- 75: [2, 60]
959
- },
960
- parseError: /* @__PURE__ */ n(function(e, t) {
961
- if (t.recoverable) this.trace(e);
962
- else {
963
- var n = Error(e);
964
- throw n.hash = t, n;
965
- }
966
- }, "parseError"),
967
- parse: /* @__PURE__ */ n(function(e) {
968
- var t = this, r = [0], i = [], a = [null], o = [], s = this.table, c = "", l = 0, u = 0, d = 0, f = 2, p = 1, m = o.slice.call(arguments, 1), h = Object.create(this.lexer), g = { yy: {} };
969
- for (var _ in this.yy) Object.prototype.hasOwnProperty.call(this.yy, _) && (g.yy[_] = this.yy[_]);
970
- h.setInput(e, g.yy), g.yy.lexer = h, g.yy.parser = this, h.yylloc === void 0 && (h.yylloc = {});
971
- var v = h.yylloc;
972
- o.push(v);
973
- var y = h.options && h.options.ranges;
974
- typeof g.yy.parseError == "function" ? this.parseError = g.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
975
- function b(e) {
976
- r.length -= 2 * e, a.length -= e, o.length -= e;
977
- }
978
- n(b, "popStack");
979
- function x() {
980
- var e = i.pop() || h.lex() || p;
981
- return typeof e != "number" && (e instanceof Array && (i = e, e = i.pop()), e = t.symbols_[e] || e), e;
982
- }
983
- n(x, "lex");
984
- for (var S, C, w, T, E, D = {}, O, k, A, j;;) {
985
- if (w = r[r.length - 1], this.defaultActions[w] ? T = this.defaultActions[w] : (S == null && (S = x()), T = s[w] && s[w][S]), T === void 0 || !T.length || !T[0]) {
986
- var M = "";
987
- for (O in j = [], s[w]) this.terminals_[O] && O > f && j.push("'" + this.terminals_[O] + "'");
988
- M = h.showPosition ? "Parse error on line " + (l + 1) + ":\n" + h.showPosition() + "\nExpecting " + j.join(", ") + ", got '" + (this.terminals_[S] || S) + "'" : "Parse error on line " + (l + 1) + ": Unexpected " + (S == p ? "end of input" : "'" + (this.terminals_[S] || S) + "'"), this.parseError(M, {
989
- text: h.match,
990
- token: this.terminals_[S] || S,
991
- line: h.yylineno,
992
- loc: v,
993
- expected: j
994
- });
995
- }
996
- if (T[0] instanceof Array && T.length > 1) throw Error("Parse Error: multiple actions possible at state: " + w + ", token: " + S);
997
- switch (T[0]) {
998
- case 1:
999
- r.push(S), a.push(h.yytext), o.push(h.yylloc), r.push(T[1]), S = null, C ? (S = C, C = null) : (u = h.yyleng, c = h.yytext, l = h.yylineno, v = h.yylloc, d > 0 && d--);
1000
- break;
1001
- case 2:
1002
- if (k = this.productions_[T[1]][1], D.$ = a[a.length - k], D._$ = {
1003
- first_line: o[o.length - (k || 1)].first_line,
1004
- last_line: o[o.length - 1].last_line,
1005
- first_column: o[o.length - (k || 1)].first_column,
1006
- last_column: o[o.length - 1].last_column
1007
- }, y && (D._$.range = [o[o.length - (k || 1)].range[0], o[o.length - 1].range[1]]), E = this.performAction.apply(D, [
1008
- c,
1009
- u,
1010
- l,
1011
- g.yy,
1012
- T[1],
1013
- a,
1014
- o
1015
- ].concat(m)), E !== void 0) return E;
1016
- k && (r = r.slice(0, -1 * k * 2), a = a.slice(0, -1 * k), o = o.slice(0, -1 * k)), r.push(this.productions_[T[1]][0]), a.push(D.$), o.push(D._$), A = s[r[r.length - 2]][r[r.length - 1]], r.push(A);
1017
- break;
1018
- case 3: return !0;
1019
- }
1020
- }
1021
- return !0;
1022
- }, "parse")
1023
- };
1024
- Y.lexer = /* @__PURE__ */ (function() {
1025
- return {
1026
- EOF: 1,
1027
- parseError: /* @__PURE__ */ n(function(e, t) {
1028
- if (this.yy.parser) this.yy.parser.parseError(e, t);
1029
- else throw Error(e);
1030
- }, "parseError"),
1031
- setInput: /* @__PURE__ */ n(function(e, t) {
1032
- 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 = {
1033
- first_line: 1,
1034
- first_column: 0,
1035
- last_line: 1,
1036
- last_column: 0
1037
- }, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
1038
- }, "setInput"),
1039
- input: /* @__PURE__ */ n(function() {
1040
- var e = this._input[0];
1041
- 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;
1042
- }, "input"),
1043
- unput: /* @__PURE__ */ n(function(e) {
1044
- var t = e.length, n = e.split(/(?:\r\n?|\n)/g);
1045
- this._input = e + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - t), this.offset -= t;
1046
- var r = this.match.split(/(?:\r\n?|\n)/g);
1047
- 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);
1048
- var i = this.yylloc.range;
1049
- return this.yylloc = {
1050
- first_line: this.yylloc.first_line,
1051
- last_line: this.yylineno + 1,
1052
- first_column: this.yylloc.first_column,
1053
- 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
1054
- }, this.options.ranges && (this.yylloc.range = [i[0], i[0] + this.yyleng - t]), this.yyleng = this.yytext.length, this;
1055
- }, "unput"),
1056
- more: /* @__PURE__ */ n(function() {
1057
- return this._more = !0, this;
1058
- }, "more"),
1059
- reject: /* @__PURE__ */ n(function() {
1060
- if (this.options.backtrack_lexer) this._backtrack = !0;
1061
- 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(), {
1062
- text: "",
1063
- token: null,
1064
- line: this.yylineno
1065
- });
1066
- return this;
1067
- }, "reject"),
1068
- less: /* @__PURE__ */ n(function(e) {
1069
- this.unput(this.match.slice(e));
1070
- }, "less"),
1071
- pastInput: /* @__PURE__ */ n(function() {
1072
- var e = this.matched.substr(0, this.matched.length - this.match.length);
1073
- return (e.length > 20 ? "..." : "") + e.substr(-20).replace(/\n/g, "");
1074
- }, "pastInput"),
1075
- upcomingInput: /* @__PURE__ */ n(function() {
1076
- var e = this.match;
1077
- return e.length < 20 && (e += this._input.substr(0, 20 - e.length)), (e.substr(0, 20) + (e.length > 20 ? "..." : "")).replace(/\n/g, "");
1078
- }, "upcomingInput"),
1079
- showPosition: /* @__PURE__ */ n(function() {
1080
- var e = this.pastInput(), t = Array(e.length + 1).join("-");
1081
- return e + this.upcomingInput() + "\n" + t + "^";
1082
- }, "showPosition"),
1083
- test_match: /* @__PURE__ */ n(function(e, t) {
1084
- var n, r, i;
1085
- if (this.options.backtrack_lexer && (i = {
1086
- yylineno: this.yylineno,
1087
- yylloc: {
1088
- first_line: this.yylloc.first_line,
1089
- last_line: this.last_line,
1090
- first_column: this.yylloc.first_column,
1091
- last_column: this.yylloc.last_column
1092
- },
1093
- yytext: this.yytext,
1094
- match: this.match,
1095
- matches: this.matches,
1096
- matched: this.matched,
1097
- yyleng: this.yyleng,
1098
- offset: this.offset,
1099
- _more: this._more,
1100
- _input: this._input,
1101
- yy: this.yy,
1102
- conditionStack: this.conditionStack.slice(0),
1103
- done: this.done
1104
- }, 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 = {
1105
- first_line: this.yylloc.last_line,
1106
- last_line: this.yylineno + 1,
1107
- first_column: this.yylloc.last_column,
1108
- last_column: r ? r[r.length - 1].length - r[r.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + e[0].length
1109
- }, 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;
1110
- if (this._backtrack) {
1111
- for (var a in i) this[a] = i[a];
1112
- return !1;
1113
- }
1114
- return !1;
1115
- }, "test_match"),
1116
- next: /* @__PURE__ */ n(function() {
1117
- if (this.done) return this.EOF;
1118
- this._input || (this.done = !0);
1119
- var e, t, n, r;
1120
- this._more || (this.yytext = "", this.match = "");
1121
- 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)) {
1122
- if (t = n, r = a, this.options.backtrack_lexer) {
1123
- if (e = this.test_match(n, i[a]), e !== !1) return e;
1124
- if (this._backtrack) {
1125
- t = !1;
1126
- continue;
1127
- } else return !1;
1128
- } else if (!this.options.flex) break;
1129
- }
1130
- 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(), {
1131
- text: "",
1132
- token: null,
1133
- line: this.yylineno
1134
- });
1135
- }, "next"),
1136
- lex: /* @__PURE__ */ n(function() {
1137
- return this.next() || this.lex();
1138
- }, "lex"),
1139
- begin: /* @__PURE__ */ n(function(e) {
1140
- this.conditionStack.push(e);
1141
- }, "begin"),
1142
- popState: /* @__PURE__ */ n(function() {
1143
- return this.conditionStack.length - 1 > 0 ? this.conditionStack.pop() : this.conditionStack[0];
1144
- }, "popState"),
1145
- _currentRules: /* @__PURE__ */ n(function() {
1146
- return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
1147
- }, "_currentRules"),
1148
- topState: /* @__PURE__ */ n(function(e) {
1149
- return e = this.conditionStack.length - 1 - Math.abs(e || 0), e >= 0 ? this.conditionStack[e] : "INITIAL";
1150
- }, "topState"),
1151
- pushState: /* @__PURE__ */ n(function(e) {
1152
- this.begin(e);
1153
- }, "pushState"),
1154
- stateStackSize: /* @__PURE__ */ n(function() {
1155
- return this.conditionStack.length;
1156
- }, "stateStackSize"),
1157
- options: { "case-insensitive": !0 },
1158
- performAction: /* @__PURE__ */ n(function(e, t, n, r) {
1159
- switch (n) {
1160
- case 0: return this.begin("acc_title"), 24;
1161
- case 1: return this.popState(), "acc_title_value";
1162
- case 2: return this.begin("acc_descr"), 26;
1163
- case 3: return this.popState(), "acc_descr_value";
1164
- case 4:
1165
- this.begin("acc_descr_multiline");
1166
- break;
1167
- case 5:
1168
- this.popState();
1169
- break;
1170
- case 6: return "acc_descr_multiline_value";
1171
- case 7: return 33;
1172
- case 8: return 34;
1173
- case 9: return 35;
1174
- case 10: return 36;
1175
- case 11: return 10;
1176
- case 12: break;
1177
- case 13: return 8;
1178
- case 14: return 50;
1179
- case 15: return 72;
1180
- case 16: return 4;
1181
- case 17: return this.begin("block"), 17;
1182
- case 18: return 49;
1183
- case 19: return 49;
1184
- case 20: return 42;
1185
- case 21: return 15;
1186
- case 22: return 13;
1187
- case 23: break;
1188
- case 24: return 61;
1189
- case 25: return 58;
1190
- case 26: return 58;
1191
- case 27: return 62;
1192
- case 28: break;
1193
- case 29: return this.popState(), 19;
1194
- case 30: return t.yytext[0];
1195
- case 31: return 20;
1196
- case 32: return 21;
1197
- case 33: return this.begin("style"), 44;
1198
- case 34: return this.popState(), 10;
1199
- case 35: break;
1200
- case 36: return 13;
1201
- case 37: return 42;
1202
- case 38: return 49;
1203
- case 39: return this.begin("style"), 37;
1204
- case 40: return 43;
1205
- case 41: return 65;
1206
- case 42: return 67;
1207
- case 43: return 67;
1208
- case 44: return 67;
1209
- case 45: return 65;
1210
- case 46: return 65;
1211
- case 47: return 66;
1212
- case 48: return 66;
1213
- case 49: return 66;
1214
- case 50: return 66;
1215
- case 51: return 66;
1216
- case 52: return 67;
1217
- case 53: return 66;
1218
- case 54: return 67;
1219
- case 55: return 68;
1220
- case 56: return 68;
1221
- case 57: return 51;
1222
- case 58: return 68;
1223
- case 59: return 68;
1224
- case 60: return 68;
1225
- case 61: return 52;
1226
- case 62: return 48;
1227
- case 63: return 68;
1228
- case 64: return 65;
1229
- case 65: return 66;
1230
- case 66: return 67;
1231
- case 67: return 69;
1232
- case 68: return 70;
1233
- case 69: return 71;
1234
- case 70: return 71;
1235
- case 71: return 70;
1236
- case 72: return 70;
1237
- case 73: return 70;
1238
- case 74: return 41;
1239
- case 75: return 47;
1240
- case 76: return 40;
1241
- case 77: return t.yytext[0];
1242
- case 78: return 6;
1243
- }
1244
- }, "anonymous"),
1245
- rules: [
1246
- /^(?:accTitle\s*:\s*)/i,
1247
- /^(?:(?!\n||)*[^\n]*)/i,
1248
- /^(?:accDescr\s*:\s*)/i,
1249
- /^(?:(?!\n||)*[^\n]*)/i,
1250
- /^(?:accDescr\s*\{\s*)/i,
1251
- /^(?:[\}])/i,
1252
- /^(?:[^\}]*)/i,
1253
- /^(?:.*direction\s+TB[^\n]*)/i,
1254
- /^(?:.*direction\s+BT[^\n]*)/i,
1255
- /^(?:.*direction\s+RL[^\n]*)/i,
1256
- /^(?:.*direction\s+LR[^\n]*)/i,
1257
- /^(?:[\n]+)/i,
1258
- /^(?:\s+)/i,
1259
- /^(?:[\s]+)/i,
1260
- /^(?:"[^"%\r\n\v\b\\]+")/i,
1261
- /^(?:"[^"]*")/i,
1262
- /^(?:erDiagram\b)/i,
1263
- /^(?:\{)/i,
1264
- /^(?:#)/i,
1265
- /^(?:#)/i,
1266
- /^(?:,)/i,
1267
- /^(?::::)/i,
1268
- /^(?::)/i,
1269
- /^(?:\s+)/i,
1270
- /^(?:\b((?:PK)|(?:FK)|(?:UK))\b)/i,
1271
- /^(?:([^\s]*)[~].*[~]([^\s]*))/i,
1272
- /^(?:([\*A-Za-z_\u00C0-\uFFFF][A-Za-z0-9\-\_\[\]\(\)\u00C0-\uFFFF\*]*))/i,
1273
- /^(?:"[^"]*")/i,
1274
- /^(?:[\n]+)/i,
1275
- /^(?:\})/i,
1276
- /^(?:.)/i,
1277
- /^(?:\[)/i,
1278
- /^(?:\])/i,
1279
- /^(?:style\b)/i,
1280
- /^(?:[\n]+)/i,
1281
- /^(?:\s+)/i,
1282
- /^(?::)/i,
1283
- /^(?:,)/i,
1284
- /^(?:#)/i,
1285
- /^(?:classDef\b)/i,
1286
- /^(?:class\b)/i,
1287
- /^(?:one or zero\b)/i,
1288
- /^(?:one or more\b)/i,
1289
- /^(?:one or many\b)/i,
1290
- /^(?:1\+)/i,
1291
- /^(?:\|o\b)/i,
1292
- /^(?:zero or one\b)/i,
1293
- /^(?:zero or more\b)/i,
1294
- /^(?:zero or many\b)/i,
1295
- /^(?:0\+)/i,
1296
- /^(?:\}o\b)/i,
1297
- /^(?:many\(0\))/i,
1298
- /^(?:many\(1\))/i,
1299
- /^(?:many\b)/i,
1300
- /^(?:\}\|)/i,
1301
- /^(?:one\b)/i,
1302
- /^(?:only one\b)/i,
1303
- /^(?:[0-9]+\.[0-9]+)/i,
1304
- /^(?:1(?=\s+[A-Za-z_"']))/i,
1305
- /^(?:1(?=\s+[0-9]))/i,
1306
- /^(?:1(?=(--|\.\.|\.-|-\.)))/i,
1307
- /^(?:1\b)/i,
1308
- /^(?:[0-9]+)/i,
1309
- /^(?:\|\|)/i,
1310
- /^(?:o\|)/i,
1311
- /^(?:o\{)/i,
1312
- /^(?:\|\{)/i,
1313
- /^(?:u(?=[\.\-\|]))/i,
1314
- /^(?:\.\.)/i,
1315
- /^(?:--)/i,
1316
- /^(?:to\b)/i,
1317
- /^(?:optionally to\b)/i,
1318
- /^(?:\.-)/i,
1319
- /^(?:-\.)/i,
1320
- /^(?:([^\x00-\x7F]|\w|-|\*)+)/i,
1321
- /^(?:;)/i,
1322
- /^(?:([^\x00-\x7F]|\w|-|\*|\.)+)/i,
1323
- /^(?:.)/i,
1324
- /^(?:$)/i
1325
- ],
1326
- conditions: {
1327
- style: {
1328
- rules: [
1329
- 34,
1330
- 35,
1331
- 36,
1332
- 37,
1333
- 38,
1334
- 74,
1335
- 75
1336
- ],
1337
- inclusive: !1
1338
- },
1339
- acc_descr_multiline: {
1340
- rules: [5, 6],
1341
- inclusive: !1
1342
- },
1343
- acc_descr: {
1344
- rules: [3],
1345
- inclusive: !1
1346
- },
1347
- acc_title: {
1348
- rules: [1],
1349
- inclusive: !1
1350
- },
1351
- block: {
1352
- rules: [
1353
- 23,
1354
- 24,
1355
- 25,
1356
- 26,
1357
- 27,
1358
- 28,
1359
- 29,
1360
- 30
1361
- ],
1362
- inclusive: !1
1363
- },
1364
- INITIAL: {
1365
- rules: [
1366
- 0,
1367
- 2,
1368
- 4,
1369
- 7,
1370
- 8,
1371
- 9,
1372
- 10,
1373
- 11,
1374
- 12,
1375
- 13,
1376
- 14,
1377
- 15,
1378
- 16,
1379
- 17,
1380
- 18,
1381
- 19,
1382
- 20,
1383
- 21,
1384
- 22,
1385
- 31,
1386
- 32,
1387
- 33,
1388
- 39,
1389
- 40,
1390
- 41,
1391
- 42,
1392
- 43,
1393
- 44,
1394
- 45,
1395
- 46,
1396
- 47,
1397
- 48,
1398
- 49,
1399
- 50,
1400
- 51,
1401
- 52,
1402
- 53,
1403
- 54,
1404
- 55,
1405
- 56,
1406
- 57,
1407
- 58,
1408
- 59,
1409
- 60,
1410
- 61,
1411
- 62,
1412
- 63,
1413
- 64,
1414
- 65,
1415
- 66,
1416
- 67,
1417
- 68,
1418
- 69,
1419
- 70,
1420
- 71,
1421
- 72,
1422
- 73,
1423
- 76,
1424
- 77,
1425
- 78
1426
- ],
1427
- inclusive: !0
1428
- }
1429
- }
1430
- };
1431
- })();
1432
- function X() {
1433
- this.yy = {};
1434
- }
1435
- return n(X, "Parser"), X.prototype = Y, Y.Parser = X, new X();
1436
- })();
1437
- C.parser = C;
1438
- var w = C, T = (S = class {
1439
- constructor() {
1440
- this.entities = /* @__PURE__ */ new Map(), this.relationships = [], this.classes = /* @__PURE__ */ new Map(), this.direction = "TB", this.Cardinality = {
1441
- ZERO_OR_ONE: "ZERO_OR_ONE",
1442
- ZERO_OR_MORE: "ZERO_OR_MORE",
1443
- ONE_OR_MORE: "ONE_OR_MORE",
1444
- ONLY_ONE: "ONLY_ONE",
1445
- MD_PARENT: "MD_PARENT"
1446
- }, this.Identification = {
1447
- NON_IDENTIFYING: "NON_IDENTIFYING",
1448
- IDENTIFYING: "IDENTIFYING"
1449
- }, this.setAccTitle = s, this.getAccTitle = p, this.setAccDescription = a, this.getAccDescription = u, this.setDiagramTitle = o, this.getDiagramTitle = d, this.getConfig = /* @__PURE__ */ n(() => f().er, "getConfig"), this.clear(), this.addEntity = this.addEntity.bind(this), this.addAttributes = this.addAttributes.bind(this), this.addRelationship = this.addRelationship.bind(this), this.setDirection = this.setDirection.bind(this), this.addCssStyles = this.addCssStyles.bind(this), this.addClass = this.addClass.bind(this), this.setClass = this.setClass.bind(this), this.setAccTitle = this.setAccTitle.bind(this), this.setAccDescription = this.setAccDescription.bind(this);
1450
- }
1451
- addEntity(e, t = "") {
1452
- var n;
1453
- if (this.entities.has(e)) !((n = this.entities.get(e)) != null && n.alias) && t && (this.entities.get(e).alias = t, r.info(`Add alias '${t}' to entity '${e}'`));
1454
- else {
1455
- var i;
1456
- this.entities.set(e, {
1457
- id: `entity-${e}-${this.entities.size}`,
1458
- label: e,
1459
- attributes: [],
1460
- alias: t,
1461
- shape: "erBox",
1462
- look: (i = f().look) == null ? "default" : i,
1463
- cssClasses: "default",
1464
- cssStyles: [],
1465
- labelType: "markdown"
1466
- }), r.info("Added new entity :", e);
1467
- }
1468
- return this.entities.get(e);
1469
- }
1470
- getEntity(e) {
1471
- return this.entities.get(e);
1472
- }
1473
- getEntities() {
1474
- return this.entities;
1475
- }
1476
- getClasses() {
1477
- return this.classes;
1478
- }
1479
- addAttributes(e, t) {
1480
- let n = this.addEntity(e), i;
1481
- for (i = t.length - 1; i >= 0; i--) t[i].keys || (t[i].keys = []), t[i].comment || (t[i].comment = ""), n.attributes.push(t[i]), r.debug("Added attribute ", t[i].name);
1482
- }
1483
- addRelationship(e, t, n, i) {
1484
- let a = this.entities.get(e), o = this.entities.get(n);
1485
- if (!a || !o) return;
1486
- let s = {
1487
- entityA: a.id,
1488
- roleA: t,
1489
- entityB: o.id,
1490
- relSpec: i
1491
- };
1492
- this.relationships.push(s), r.debug("Added new relationship :", s);
1493
- }
1494
- getRelationships() {
1495
- return this.relationships;
1496
- }
1497
- getDirection() {
1498
- return this.direction;
1499
- }
1500
- setDirection(e) {
1501
- this.direction = e;
1502
- }
1503
- getCompiledStyles(e) {
1504
- let t = [];
1505
- for (let i of e) {
1506
- let e = this.classes.get(i);
1507
- if (e != null && e.styles) {
1508
- var n;
1509
- t = [...t, ...(n = e.styles) == null ? [] : n].map((e) => e.trim());
1510
- }
1511
- if (e != null && e.textStyles) {
1512
- var r;
1513
- t = [...t, ...(r = e.textStyles) == null ? [] : r].map((e) => e.trim());
1514
- }
1515
- }
1516
- return t;
1517
- }
1518
- addCssStyles(e, t) {
1519
- for (let n of e) {
1520
- let e = this.entities.get(n);
1521
- if (!t || !e) return;
1522
- for (let n of t) e.cssStyles.push(n);
1523
- }
1524
- }
1525
- addClass(e, t) {
1526
- e.forEach((e) => {
1527
- let n = this.classes.get(e);
1528
- n === void 0 && (n = {
1529
- id: e,
1530
- styles: [],
1531
- textStyles: []
1532
- }, this.classes.set(e, n)), t && t.forEach(function(e) {
1533
- if (/color/.exec(e)) {
1534
- let t = e.replace("fill", "bgFill");
1535
- n.textStyles.push(t);
1536
- }
1537
- n.styles.push(e);
1538
- });
1539
- });
1540
- }
1541
- setClass(e, t) {
1542
- for (let n of e) {
1543
- let e = this.entities.get(n);
1544
- if (e) for (let n of t) e.cssClasses += " " + n;
1545
- }
1546
- }
1547
- clear() {
1548
- this.entities = /* @__PURE__ */ new Map(), this.classes = /* @__PURE__ */ new Map(), this.relationships = [], c();
1549
- }
1550
- getData() {
1551
- let e = [], t = [], n = f(), r = 0;
1552
- for (let t of this.entities.keys()) {
1553
- let n = this.entities.get(t);
1554
- n && (n.cssCompiledStyles = this.getCompiledStyles(n.cssClasses.split(" ")), n.colorIndex = r++, e.push(n));
1555
- }
1556
- let i = 0;
1557
- for (let e of this.relationships) {
1558
- let r = {
1559
- id: g(e.entityA, e.entityB, {
1560
- prefix: "id",
1561
- counter: i++
1562
- }),
1563
- type: "normal",
1564
- curve: "basis",
1565
- start: e.entityA,
1566
- end: e.entityB,
1567
- label: e.roleA,
1568
- labelpos: "c",
1569
- thickness: "normal",
1570
- classes: "relationshipLine",
1571
- arrowTypeStart: e.relSpec.cardB.toLowerCase(),
1572
- arrowTypeEnd: e.relSpec.cardA.toLowerCase(),
1573
- pattern: e.relSpec.relType == "IDENTIFYING" ? "solid" : "dashed",
1574
- look: n.look,
1575
- labelType: "markdown"
1576
- };
1577
- t.push(r);
1578
- }
1579
- return {
1580
- nodes: e,
1581
- edges: t,
1582
- other: {},
1583
- config: n,
1584
- direction: "TB"
1585
- };
1586
- }
1587
- }, n(S, "ErDB"), S), E = {};
1588
- i(E, { draw: () => D });
1589
- var D = /* @__PURE__ */ n(/* @__PURE__ */ function() {
1590
- var e = t(function* (e, t, n, i) {
1591
- var a, o;
1592
- r.info("REF0:"), r.info("Drawing er diagram (unified)", t);
1593
- let { securityLevel: s, er: c, layout: l } = f(), u = i.db.getData(), d = b(t, s);
1594
- u.type = i.type, u.layoutAlgorithm = y(l), u.config.flowchart.nodeSpacing = (c == null ? void 0 : c.nodeSpacing) || 140, u.config.flowchart.rankSpacing = (c == null ? void 0 : c.rankSpacing) || 80, u.direction = i.db.getDirection();
1595
- let { config: p } = u, { look: m } = p;
1596
- m === "neo" ? u.markers = [
1597
- "only_one_neo",
1598
- "zero_or_one_neo",
1599
- "one_or_more_neo",
1600
- "zero_or_more_neo"
1601
- ] : u.markers = [
1602
- "only_one",
1603
- "zero_or_one",
1604
- "one_or_more",
1605
- "zero_or_more"
1606
- ], u.diagramId = t, yield v(u, d), u.layoutAlgorithm === "elk" && d.select(".edges").lower();
1607
- let g = d.selectAll("[id*=\"-background\"]");
1608
- Array.from(g).length > 0 && g.each(function() {
1609
- let e = h(this), t = e.attr("id").replace("-background", ""), n = d.select(`#${CSS.escape(t)}`);
1610
- if (!n.empty()) {
1611
- let t = n.attr("transform");
1612
- e.attr("transform", t);
1613
- }
1614
- }), _.insertTitle(d, "erDiagramTitleText", (a = c == null ? void 0 : c.titleTopMargin) == null ? 25 : a, i.db.getDiagramTitle()), x(d, 8, "erDiagram", (o = c == null ? void 0 : c.useMaxWidth) == null ? !0 : o);
1615
- });
1616
- return function(t, n, r, i) {
1617
- return e.apply(this, arguments);
1618
- };
1619
- }(), "draw"), O = /* @__PURE__ */ n((e, t) => {
1620
- let n = m;
1621
- return l(n(e, "r"), n(e, "g"), n(e, "b"), t);
1622
- }, "fade"), k = /* @__PURE__ */ new Set(["redux-color", "redux-dark-color"]), A = /* @__PURE__ */ n((e) => {
1623
- let { theme: t, look: n, bkgColorArray: r, borderColorArray: i } = e;
1624
- if (!k.has(t)) return "";
1625
- let a = (r == null ? void 0 : r.length) > 0, o = "";
1626
- for (let t = 0; t < e.THEME_COLOR_LIMIT; t++) o += `
1627
-
1628
- [data-look="${n}"][data-color-id="color-${t}"].node path {
1629
- stroke: ${i[t]};
1630
- ${a ? `fill: ${r[t]};` : ""}
1631
- }
1632
-
1633
- [data-look="${n}"][data-color-id="color-${t}"].node rect {
1634
- stroke: ${i[t]};
1635
- ${a ? `fill: ${r[t]};` : ""}
1636
- }
1637
- `;
1638
- return o;
1639
- }, "genColor"), j = {
1640
- parser: w,
1641
- get db() {
1642
- return new T();
1643
- },
1644
- renderer: E,
1645
- styles: /* @__PURE__ */ n((e) => {
1646
- let { look: t, theme: n, erEdgeLabelBackground: r, strokeWidth: i } = e;
1647
- return `
1648
- ${A(e)}
1649
- .entityBox {
1650
- fill: ${e.mainBkg};
1651
- stroke: ${e.nodeBorder};
1652
- }
1653
-
1654
- .relationshipLabelBox {
1655
- fill: ${e.tertiaryColor};
1656
- opacity: 0.7;
1657
- background-color: ${e.tertiaryColor};
1658
- rect {
1659
- opacity: 0.5;
1660
- }
1661
- }
1662
-
1663
- .labelBkg {
1664
- background-color: ${k.has(n) && r ? r : O(e.tertiaryColor, .5)};
1665
- }
1666
-
1667
- .edgeLabel {
1668
- background-color: ${k.has(n) && r ? r : e.edgeLabelBackground};
1669
- }
1670
- .edgeLabel .label rect {
1671
- fill: ${k.has(n) && r ? r : e.edgeLabelBackground};
1672
- }
1673
- .edgeLabel .label text {
1674
- fill: ${e.textColor};
1675
- }
1676
-
1677
- .edgeLabel .label {
1678
- fill: ${e.nodeBorder};
1679
- font-size: 14px;
1680
- }
1681
-
1682
- .label {
1683
- font-family: ${e.fontFamily};
1684
- color: ${e.nodeTextColor || e.textColor};
1685
- }
1686
-
1687
- .edge-pattern-dashed {
1688
- stroke-dasharray: 8,8;
1689
- }
1690
-
1691
- .node rect,
1692
- .node circle,
1693
- .node ellipse,
1694
- .node polygon
1695
- {
1696
- fill: ${e.mainBkg};
1697
- stroke: ${e.nodeBorder};
1698
- stroke-width: ${t === "neo" ? i : "1px"};
1699
- }
1700
-
1701
- .relationshipLine {
1702
- stroke: ${e.lineColor};
1703
- stroke-width: ${t === "neo" ? i : "1px"};
1704
- fill: none;
1705
- }
1706
-
1707
- .marker {
1708
- fill: none !important;
1709
- stroke: ${e.lineColor} !important;
1710
- stroke-width: 1;
1711
- }
1712
- [data-look=neo].labelBkg {
1713
- background-color: ${O(e.tertiaryColor, .5)};
1714
- }
1715
- `;
1716
- }, "getStyles")
1717
- };
1718
- //#endregion
1719
- export { j as diagram };