file-viewer3 1.0.8 → 1.0.26

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 (370) hide show
  1. package/LICENSE +160 -0
  2. package/README.en.md +390 -0
  3. package/README.md +306 -89
  4. package/dist/components/3MFLoader.js +527 -0
  5. package/dist/components/AMFLoader.js +188 -0
  6. package/dist/components/ArchiveViewer.js +526 -0
  7. package/dist/components/AudioViewer.js +66 -0
  8. package/dist/components/CadViewer.js +9040 -0
  9. package/dist/components/CodeViewer.js +151 -0
  10. package/dist/components/ColladaLoader.js +2282 -0
  11. package/dist/components/DrawingViewer.js +295 -0
  12. package/dist/components/EdaViewer.js +630 -0
  13. package/dist/components/EmailViewer.js +276 -0
  14. package/dist/components/EpubViewer.js +172 -0
  15. package/dist/components/FBXLoader.js +1574 -0
  16. package/dist/components/GLTFLoader.js +1383 -0
  17. package/dist/components/ImageViewer.js +1516 -1895
  18. package/dist/components/KMZLoader.js +45 -0
  19. package/dist/components/MarkdownViewer.js +1456 -1557
  20. package/dist/components/ModelViewer.js +797 -0
  21. package/dist/components/OBJLoader.js +287 -0
  22. package/dist/components/OfdViewer.js +133 -0
  23. package/dist/components/PCDLoader.js +141 -0
  24. package/dist/components/PLYLoader.js +305 -0
  25. package/dist/components/PdfView.js +27662 -21655
  26. package/dist/components/PptxRender.js +11170 -21118
  27. package/dist/components/STLLoader.js +83 -0
  28. package/dist/components/TDSLoader.js +228 -0
  29. package/dist/components/TypstViewer.js +1697 -0
  30. package/dist/components/USDLoader.js +2526 -0
  31. package/dist/components/UmdViewer.js +1873 -0
  32. package/dist/components/VRMLLoader.js +6422 -0
  33. package/dist/components/VTKLoader.js +337 -0
  34. package/dist/components/XYZLoader.js +30 -0
  35. package/dist/components/XlsxTable.js +7871 -69873
  36. package/dist/components/__vite-browser-external.js +7 -0
  37. package/dist/components/_plugin-vue_export-helper.js +8 -0
  38. package/dist/components/ar-SA-G6X2FPQ2.js +523 -0
  39. package/dist/components/arc.js +79 -0
  40. package/dist/components/architecture-7EHR7CIX.js +3 -0
  41. package/dist/components/architectureDiagram-3BPJPVTR.js +4096 -0
  42. package/dist/components/archive.js +24 -0
  43. package/dist/components/asyncToGenerator.js +29 -0
  44. package/dist/components/audio.js +19 -0
  45. package/dist/components/az-AZ-76LH7QW2.js +523 -0
  46. package/dist/components/bash.js +169 -0
  47. package/dist/components/bg-BG-XCXSNQG7.js +523 -0
  48. package/dist/components/blockDiagram-GPEHLZMM.js +3357 -0
  49. package/dist/components/bn-BD-2XOGV67Q.js +523 -0
  50. package/dist/components/c4Diagram-AAUBKEIU.js +2957 -0
  51. package/dist/components/ca-ES-6MX7JW3Y.js +523 -0
  52. package/dist/components/cad.js +23 -0
  53. package/dist/components/cfb.js +1174 -0
  54. package/dist/components/channel.js +5 -0
  55. package/dist/components/chunk-2J33WTMH.js +26 -0
  56. package/dist/components/chunk-3OPIFGDE.js +4167 -0
  57. package/dist/components/chunk-4BX2VUAB.js +19 -0
  58. package/dist/components/chunk-55IACEB6.js +9 -0
  59. package/dist/components/chunk-5ZQYHXKU.js +669 -0
  60. package/dist/components/chunk-6U3AYISY.js +624 -0
  61. package/dist/components/chunk-727SXJPM.js +3356 -0
  62. package/dist/components/chunk-AGHRB4JF.js +324 -0
  63. package/dist/components/chunk-AQP2D5EJ.js +2055 -0
  64. package/dist/components/chunk-BSJP7CBP.js +83 -0
  65. package/dist/components/chunk-CSCIHK7Q.js +3500 -0
  66. package/dist/components/chunk-EIO257PC.js +1836 -0
  67. package/dist/components/chunk-FMBD7UC4.js +5 -0
  68. package/dist/components/chunk-K2UTITRG.js +17627 -0
  69. package/dist/components/chunk-KSCS5N6A.js +572 -0
  70. package/dist/components/chunk-L5ZTLDWV.js +40 -0
  71. package/dist/components/chunk-LZXEDZCA.js +60 -0
  72. package/dist/components/chunk-ND2GUHAM.js +61 -0
  73. package/dist/components/chunk-NNHCCRGN.js +20425 -0
  74. package/dist/components/chunk-NZK2D7GU.js +68 -0
  75. package/dist/components/chunk-O5CBEL6O.js +1894 -0
  76. package/dist/components/chunk-QZHKN3VN.js +12 -0
  77. package/dist/components/chunk-SRAX5OIU.js +22 -0
  78. package/dist/components/chunk-WU5MYG2G.js +14 -0
  79. package/dist/components/chunk-XPW4576I.js +1146 -0
  80. package/dist/components/chunk-Z3N5DIM6.js +59 -0
  81. package/dist/components/chunk-ZUYEQ4TG.js +22 -0
  82. package/dist/components/chunk.js +23 -0
  83. package/dist/components/classDiagram-4FO5ZUOK.js +29 -0
  84. package/dist/components/classDiagram-v2-Q7XG4LA2.js +29 -0
  85. package/dist/components/compiler.js +2 -0
  86. package/dist/components/core.js +845 -0
  87. package/dist/components/cose-bilkent-S5V4N54A.js +2268 -0
  88. package/dist/components/cpp.js +225 -0
  89. package/dist/components/cs-CZ-2BRQDIVT.js +523 -0
  90. package/dist/components/csharp.js +260 -0
  91. package/dist/components/css.js +140 -0
  92. package/dist/components/cytoscape.esm.js +18114 -0
  93. package/dist/components/da-DK-5WZEPLOC.js +523 -0
  94. package/dist/components/dagre-BM42HDAG.js +325 -0
  95. package/dist/components/dagre.js +1936 -0
  96. package/dist/components/de-DE-XR44H4JA.js +523 -0
  97. package/dist/components/defaultLocale.js +201 -0
  98. package/dist/components/defineProperty.js +50 -0
  99. package/dist/components/diagram-2AECGRRQ.js +229 -0
  100. package/dist/components/diagram-5GNKFQAL.js +108 -0
  101. package/dist/components/diagram-KO2AKTUF.js +443 -0
  102. package/dist/components/diagram-LMA3HP47.js +139 -0
  103. package/dist/components/diagram-OG6HWLK6.js +541 -0
  104. package/dist/components/diff.js +39 -0
  105. package/dist/components/directory-open-01563666.js +26 -0
  106. package/dist/components/directory-open-4ed118d0.js +83 -0
  107. package/dist/components/dist.js +50 -0
  108. package/dist/components/dist2.js +3291 -0
  109. package/dist/components/dist3.js +1593 -0
  110. package/dist/components/documentSearch.js +378 -0
  111. package/dist/components/docx-preview.js +3113 -0
  112. package/dist/components/drawing.js +19 -0
  113. package/dist/components/ebook.js +16 -0
  114. package/dist/components/eda.js +20 -0
  115. package/dist/components/el-GR-BZB4AONW.js +523 -0
  116. package/dist/components/email.js +21 -0
  117. package/dist/components/en-B4ZKOASM.js +3 -0
  118. package/dist/components/erDiagram-TEJ5UH35.js +1719 -0
  119. package/dist/components/es-ES-U4NZUMDT.js +523 -0
  120. package/dist/components/eu-ES-A7QVB2H4.js +523 -0
  121. package/dist/components/eventmodeling-FCH6USID.js +3 -0
  122. package/dist/components/fa-IR-HGAKTJCU.js +523 -0
  123. package/dist/components/fflate.module.js +323 -0
  124. package/dist/components/fi-FI-Z5N7JZ37.js +523 -0
  125. package/dist/components/file-open-002ab408.js +38 -0
  126. package/dist/components/file-open-7c801643.js +24 -0
  127. package/dist/components/file-save-3189631c.js +40 -0
  128. package/dist/components/file-save-745eba88.js +36 -0
  129. package/dist/components/flowDiagram-I6XJVG4X.js +4181 -0
  130. package/dist/components/fr-FR-RHASNOE6.js +523 -0
  131. package/dist/components/ganttDiagram-6RSMTGT7.js +2182 -0
  132. package/dist/components/gitGraph-WXDBUCRP.js +3 -0
  133. package/dist/components/gitGraphDiagram-PVQCEYII.js +788 -0
  134. package/dist/components/gl-ES-HMX3MZ6V.js +523 -0
  135. package/dist/components/global-compiler.js +23 -0
  136. package/dist/components/global-renderer.js +23 -0
  137. package/dist/components/go.js +140 -0
  138. package/dist/components/graphlib.js +1267 -0
  139. package/dist/components/he-IL-6SHJWFNN.js +523 -0
  140. package/dist/components/hi-IN-IWLTKZ5I.js +523 -0
  141. package/dist/components/hu-HU-A5ZG7DT2.js +523 -0
  142. package/dist/components/id-ID-SAP4L64H.js +523 -0
  143. package/dist/components/image-GAAHSSAO.js +3 -0
  144. package/dist/components/image-blob-reduce.esm.js +1429 -0
  145. package/dist/components/image.js +17 -0
  146. package/dist/components/info-J43DQDTF.js +3 -0
  147. package/dist/components/infoDiagram-5YYISTIA.js +26 -0
  148. package/dist/components/ini.js +88 -0
  149. package/dist/components/init.js +15 -0
  150. package/dist/components/ishikawaDiagram-YF4QCWOH.js +718 -0
  151. package/dist/components/it-IT-JPQ66NNP.js +523 -0
  152. package/dist/components/ja-JP-DBVTYXUO.js +523 -0
  153. package/dist/components/java.js +169 -0
  154. package/dist/components/javascript.js +436 -0
  155. package/dist/components/journeyDiagram-JHISSGLW.js +885 -0
  156. package/dist/components/json.js +36 -0
  157. package/dist/components/jszip.min.js +3033 -0
  158. package/dist/components/kaa-6HZHGXH3.js +523 -0
  159. package/dist/components/kab-KAB-ZGHBKWFO.js +523 -0
  160. package/dist/components/kanban-definition-UN3LZRKU.js +986 -0
  161. package/dist/components/katex.js +21979 -0
  162. package/dist/components/kk-KZ-P5N5QNE5.js +523 -0
  163. package/dist/components/km-KH-HSX4SM5Z.js +523 -0
  164. package/dist/components/ko-KR-MTYHY66A.js +523 -0
  165. package/dist/components/ku-TR-6OUDTVRD.js +523 -0
  166. package/dist/components/lib.js +4877 -0
  167. package/dist/components/libarchive.js +360 -0
  168. package/dist/components/linear.js +289 -0
  169. package/dist/components/lt-LT-XHIRWOB4.js +523 -0
  170. package/dist/components/lv-LV-5QDEKY6T.js +523 -0
  171. package/dist/components/markdown.js +181 -0
  172. package/dist/components/md.js +17 -0
  173. package/dist/components/mermaid-parser.core.js +328 -0
  174. package/dist/components/mindmap-definition-RKZ34NQL.js +1016 -0
  175. package/dist/components/model.js +21 -0
  176. package/dist/components/mp4.js +12 -0
  177. package/dist/components/mr-IN-CRQNXWMA.js +523 -0
  178. package/dist/components/my-MM-5M5IBNSE.js +523 -0
  179. package/dist/components/nb-NO-T6EIAALU.js +523 -0
  180. package/dist/components/nestedRender.js +158 -0
  181. package/dist/components/nl-NL-IS3SIHDZ.js +523 -0
  182. package/dist/components/nn-NO-6E72VCQL.js +523 -0
  183. package/dist/components/objectSpread2.js +29 -0
  184. package/dist/components/objectWithoutProperties.js +28 -0
  185. package/dist/components/oc-FR-POXYY2M6.js +523 -0
  186. package/dist/components/ofd.js +5261 -0
  187. package/dist/components/ofd2.js +16 -0
  188. package/dist/components/ordinal.js +65 -0
  189. package/dist/components/pa-IN-N4M65BXN.js +523 -0
  190. package/dist/components/packet-YPE3B663.js +3 -0
  191. package/dist/components/pdf.js +24 -0
  192. package/dist/components/percentages-BXMCSKIN.js +3 -0
  193. package/dist/components/php.js +294 -0
  194. package/dist/components/pica.js +1009 -0
  195. package/dist/components/pie-LRSECV5Y.js +3 -0
  196. package/dist/components/pie.js +47 -0
  197. package/dist/components/pieDiagram-4H26LBE5.js +130 -0
  198. package/dist/components/pl-PL-T2D74RX3.js +523 -0
  199. package/dist/components/postal-mime.js +3146 -0
  200. package/dist/components/pptx.js +15 -0
  201. package/dist/components/printLayout.js +42 -0
  202. package/dist/components/prod.js +21770 -0
  203. package/dist/components/pt-BR-5N22H2LF.js +523 -0
  204. package/dist/components/pt-PT-UZXXM6DQ.js +523 -0
  205. package/dist/components/python.js +238 -0
  206. package/dist/components/quadrantDiagram-W4KKPZXB.js +1988 -0
  207. package/dist/components/radar-GUYGQ44K.js +3 -0
  208. package/dist/components/renderer.js +2 -0
  209. package/dist/components/requirementDiagram-4Y6WPE33.js +2230 -0
  210. package/dist/components/ro-RO-JPDTUUEW.js +523 -0
  211. package/dist/components/rough.esm.js +1355 -0
  212. package/dist/components/roundRect.js +90 -0
  213. package/dist/components/ru-RU-B4JR7IUQ.js +523 -0
  214. package/dist/components/rust.js +169 -0
  215. package/dist/components/sankeyDiagram-5OEKKPKP.js +972 -0
  216. package/dist/components/sequenceDiagram-3UESZ5HK.js +4255 -0
  217. package/dist/components/shared.js +175 -0
  218. package/dist/components/shared2.js +4 -0
  219. package/dist/components/si-LK-N5RQ5JYF.js +523 -0
  220. package/dist/components/sk-SK-C5VTKIMK.js +523 -0
  221. package/dist/components/sl-SI-NN7IZMDC.js +523 -0
  222. package/dist/components/sourceLoading.js +134 -0
  223. package/dist/components/sql.js +118 -0
  224. package/dist/components/src.js +2664 -0
  225. package/dist/components/src2.js +10722 -0
  226. package/dist/components/stateDiagram-AJRCARHV.js +217 -0
  227. package/dist/components/stateDiagram-v2-BHNVJYJU.js +27 -0
  228. package/dist/components/subset-shared.chunk.js +3 -0
  229. package/dist/components/subset-worker.chunk.js +21 -0
  230. package/dist/components/sv-SE-XGPEYMSR.js +523 -0
  231. package/dist/components/ta-IN-2NMHFXQM.js +523 -0
  232. package/dist/components/text.js +20 -0
  233. package/dist/components/th-TH-HPSO5L25.js +523 -0
  234. package/dist/components/three.module.js +13134 -0
  235. package/dist/components/time.js +910 -0
  236. package/dist/components/timeline-definition-PNZ67QCA.js +1084 -0
  237. package/dist/components/tr-TR-DEFEU3FU.js +523 -0
  238. package/dist/components/treeView-BLDUP644.js +3 -0
  239. package/dist/components/treemap-LRROVOQU.js +3 -0
  240. package/dist/components/typescript.js +521 -0
  241. package/dist/components/typst.js +25 -0
  242. package/dist/components/uk-UA-QMV73CPH.js +523 -0
  243. package/dist/components/umd.js +16 -0
  244. package/dist/components/use.js +422 -0
  245. package/dist/components/util.js +49 -0
  246. package/dist/components/vennDiagram-CIIHVFJN.js +1880 -0
  247. package/dist/components/vi-VN-M7AON7JQ.js +523 -0
  248. package/dist/components/viewerZoom.js +92 -0
  249. package/dist/components/wardley-L42UT6IY.js +3 -0
  250. package/dist/components/wardleyDiagram-YWT4CUSO.js +656 -0
  251. package/dist/components/wasm-pack-shim.js +1711 -0
  252. package/dist/components/wasm-pack-shim2.js +934 -0
  253. package/dist/components/wasm.js +97 -0
  254. package/dist/components/word.js +3055 -0
  255. package/dist/components/worker-ref.js +15 -20
  256. package/dist/components/xlsx.js +21 -0
  257. package/dist/components/xml.js +166 -0
  258. package/dist/components/xychartDiagram-2RQKCTM6.js +2015 -0
  259. package/dist/components/yaml.js +144 -0
  260. package/dist/components/zh-CN-LNUGB5OW.js +523 -0
  261. package/dist/components/zh-HK-E62DVLB3.js +523 -0
  262. package/dist/components/zh-TW-RAJ6MFWO.js +523 -0
  263. package/dist/file-viewer3.css +2 -0
  264. package/dist/index.mjs +3292 -5
  265. package/dist/src/App.vue.d.ts +3 -0
  266. package/dist/src/compare/CompareApp.vue.d.ts +3 -0
  267. package/dist/src/compare/main.d.ts +0 -0
  268. package/dist/src/compare/useSynchronizedScroll.d.ts +7 -0
  269. package/dist/src/components/HelloWorld.vue.d.ts +3 -0
  270. package/dist/src/components/utils.d.ts +4 -0
  271. package/dist/src/main.d.ts +0 -0
  272. package/dist/src/package/common/printCapability.d.ts +27 -0
  273. package/dist/src/package/common/printLayout.d.ts +16 -0
  274. package/dist/src/package/common/sourceLoading.d.ts +10 -0
  275. package/dist/src/package/common/type.d.ts +522 -8
  276. package/dist/src/package/common/worker-ref.d.ts +1 -1
  277. package/dist/src/package/components/FileViewer/FileViewer.vue.d.ts +74 -24
  278. package/dist/src/package/components/FileViewer/exportDocumentTemplate.d.ts +9 -0
  279. package/dist/src/package/components/FileViewer/hooks/useViewerDocumentFeatures.d.ts +29 -0
  280. package/dist/src/package/components/FileViewer/hooks/useViewerExport.d.ts +21 -0
  281. package/dist/src/package/components/FileViewer/hooks/useViewerWatermark.d.ts +8 -0
  282. package/dist/src/package/components/FileViewer/hooks/useViewerZoom.d.ts +34 -0
  283. package/dist/src/package/components/FileViewer/index.d.ts +1 -1
  284. package/dist/src/package/components/FileViewer/util.d.ts +2 -1
  285. package/dist/src/package/index.d.ts +14 -4
  286. package/dist/src/package/use/documentLocation.d.ts +15 -0
  287. package/dist/src/package/use/documentSearch.d.ts +234 -0
  288. package/dist/src/package/use/index.d.ts +4 -0
  289. package/dist/src/package/use/loading.d.ts +33 -0
  290. package/dist/src/package/use/viewerZoom.d.ts +42 -0
  291. package/dist/src/package/use/worker.d.ts +2 -2
  292. package/dist/src/package/vendors/archive/ArchiveViewer.vue.d.ts +9 -0
  293. package/dist/src/package/vendors/archive/cache.d.ts +10 -0
  294. package/dist/src/package/vendors/archive/fallback.d.ts +9 -0
  295. package/dist/src/package/vendors/archive/index.d.ts +3 -0
  296. package/dist/src/package/vendors/archive/shared.d.ts +24 -0
  297. package/dist/src/package/vendors/audio/AudioViewer.vue.d.ts +7 -0
  298. package/dist/src/package/vendors/audio/index.d.ts +7 -0
  299. package/dist/src/package/vendors/cad/CadViewer.vue.d.ts +9 -0
  300. package/dist/src/package/vendors/cad/index.d.ts +8 -0
  301. package/dist/src/package/vendors/drawing/DrawingViewer.vue.d.ts +15 -0
  302. package/dist/src/package/vendors/drawing/index.d.ts +7 -0
  303. package/dist/src/package/vendors/ebook/EpubViewer.vue.d.ts +6 -0
  304. package/dist/src/package/vendors/ebook/index.d.ts +7 -0
  305. package/dist/src/package/vendors/eda/EdaViewer.vue.d.ts +8 -0
  306. package/dist/src/package/vendors/eda/index.d.ts +2 -0
  307. package/dist/src/package/vendors/eda/parser.d.ts +77 -0
  308. package/dist/src/package/vendors/email/EmailViewer.vue.d.ts +10 -0
  309. package/dist/src/package/vendors/email/index.d.ts +2 -0
  310. package/dist/src/package/vendors/image/ImageViewer.vue.d.ts +6 -13
  311. package/dist/src/package/vendors/image/index.d.ts +1 -1
  312. package/dist/src/package/vendors/md/MarkdownViewer.vue.d.ts +6 -13
  313. package/dist/src/package/vendors/md/index.d.ts +1 -1
  314. package/dist/src/package/vendors/model/ModelViewer.vue.d.ts +8 -0
  315. package/dist/src/package/vendors/model/index.d.ts +3 -0
  316. package/dist/src/package/vendors/model/shared.d.ts +1 -0
  317. package/dist/src/package/vendors/nestedRender.d.ts +10 -0
  318. package/dist/src/package/vendors/ofd/OfdViewer.vue.d.ts +6 -0
  319. package/dist/src/package/vendors/ofd/index.d.ts +7 -0
  320. package/dist/src/package/vendors/pdf/PdfView.vue.d.ts +10 -13
  321. package/dist/src/package/vendors/pdf/index.d.ts +2 -1
  322. package/dist/src/package/vendors/pdf/worker/pdf.worker.d.ts +0 -0
  323. package/dist/src/package/vendors/pptx/PptxRender.vue.d.ts +9 -81
  324. package/dist/src/package/vendors/pptx/index.d.ts +1 -1
  325. package/dist/src/package/vendors/renders.d.ts +1 -1
  326. package/dist/src/package/vendors/text/CodeViewer.vue.d.ts +7 -13
  327. package/dist/src/package/vendors/text/index.d.ts +6 -2
  328. package/dist/src/package/vendors/typst/TypstViewer.vue.d.ts +15 -0
  329. package/dist/src/package/vendors/typst/index.d.ts +8 -0
  330. package/dist/src/package/vendors/umd/UmdViewer.vue.d.ts +6 -0
  331. package/dist/src/package/vendors/umd/index.d.ts +7 -0
  332. package/dist/src/package/vendors/umd/parser.d.ts +30 -0
  333. package/dist/src/package/vendors/word/doc.d.ts +5 -0
  334. package/dist/src/package/vendors/word/docx.d.ts +5 -0
  335. package/dist/src/package/vendors/word/docx.worker.d.ts +1 -0
  336. package/dist/src/package/vendors/word/index.d.ts +3 -0
  337. package/dist/src/package/vendors/xlsx/XlsxTable.state.d.ts +80 -0
  338. package/dist/src/package/vendors/xlsx/XlsxTable.view.d.ts +25 -0
  339. package/dist/src/package/vendors/xlsx/XlsxTable.vue.d.ts +6 -21
  340. package/dist/src/package/vendors/xlsx/index.d.ts +3 -2
  341. package/dist/src/package/vendors/xlsx/util.d.ts +0 -5
  342. package/dist/src/package/vendors/xlsx/worker/index.d.ts +4 -6
  343. package/dist/src/package/vendors/xlsx/worker/sheetjs/SheetJsModel.d.ts +73 -0
  344. package/dist/src/package/vendors/xlsx/worker/sheetjs/sheet.worker.d.ts +1 -0
  345. package/dist/style.css +1 -57
  346. package/dist/wasm/cad/dwfv-render.wasm +0 -0
  347. package/dist/wasm/cad/dwg-worker.js +24 -0
  348. package/dist/wasm/cad/libredwg-web.js +15 -0
  349. package/dist/wasm/cad/libredwg-web.wasm +0 -0
  350. package/package.json +118 -42
  351. package/.vscode/extensions.json +0 -3
  352. package/dist/components/_commonjs-dynamic-modules.js +0 -6
  353. package/dist/components/_commonjsHelpers.js +0 -36
  354. package/dist/components/docx-preview.min.js +0 -5287
  355. package/dist/components/index.js +0 -1717
  356. package/dist/favicon.ico +0 -0
  357. package/dist/index.umd.js +0 -436
  358. package/dist/src/package/vendors/docx/index.d.ts +0 -4
  359. package/dist/src/package/vendors/xlsx/render.d.ts +0 -6
  360. package/dist/src/package/vendors/xlsx/worker/xls/SheetJsModel.d.ts +0 -36
  361. package/dist/src/package/vendors/xlsx/worker/xlsx/ExcelJsModel.d.ts +0 -39
  362. package/dist/src/package/vendors/xlsx/worker/xlsx/context.d.ts +0 -7
  363. package/dist/src/package/vendors/xlsx/worker/xlsx/index.d.ts +0 -4
  364. package/dist/src/package/vendors/xlsx/worker/xlsx/util.d.ts +0 -10
  365. package/dist/worker/pdf.worker.js +0 -66
  366. package/dist/worker/pptx.worker.js +0 -21
  367. package/dist/worker/sheet.worker.js +0 -38
  368. package/dist/worker/xlsx.worker.js +0 -65
  369. /package/dist/src/package/vendors/xlsx/worker/{xlsx → sheetjs}/color.d.ts +0 -0
  370. /package/dist/src/package/vendors/xlsx/worker/{xls → sheetjs}/index.d.ts +0 -0
@@ -0,0 +1,718 @@
1
+ import { n as e } from "./chunk-AGHRB4JF.js";
2
+ import { H as t, K as n, U as r, a as i, c as a, s as o, v as s, w as c, x as l, y as u } from "./chunk-CSCIHK7Q.js";
3
+ import { p as d } from "./chunk-5ZQYHXKU.js";
4
+ import { t as f } from "./chunk-WU5MYG2G.js";
5
+ import { t as p } from "./rough.esm.js";
6
+ //#region node_modules/.pnpm/mermaid@11.15.0/node_modules/mermaid/dist/chunks/mermaid.core/ishikawaDiagram-YF4QCWOH.mjs
7
+ var m, h = (function() {
8
+ var t = /* @__PURE__ */ e(function(e, t, n, r) {
9
+ for (n = n || {}, r = e.length; r--; n[e[r]] = t);
10
+ return n;
11
+ }, "o"), n = [1, 4], r = [1, 14], i = [1, 12], a = [1, 13], o = [
12
+ 6,
13
+ 7,
14
+ 8
15
+ ], s = [1, 20], c = [1, 18], l = [1, 19], u = [
16
+ 6,
17
+ 7,
18
+ 11
19
+ ], d = [
20
+ 1,
21
+ 6,
22
+ 13,
23
+ 14
24
+ ], f = [1, 23], p = [1, 24], m = [
25
+ 1,
26
+ 6,
27
+ 7,
28
+ 11,
29
+ 13,
30
+ 14
31
+ ], h = {
32
+ trace: /* @__PURE__ */ e(function() {}, "trace"),
33
+ yy: {},
34
+ symbols_: {
35
+ error: 2,
36
+ start: 3,
37
+ ishikawa: 4,
38
+ spaceLines: 5,
39
+ SPACELINE: 6,
40
+ NL: 7,
41
+ ISHIKAWA: 8,
42
+ document: 9,
43
+ stop: 10,
44
+ EOF: 11,
45
+ statement: 12,
46
+ SPACELIST: 13,
47
+ TEXT: 14,
48
+ $accept: 0,
49
+ $end: 1
50
+ },
51
+ terminals_: {
52
+ 2: "error",
53
+ 6: "SPACELINE",
54
+ 7: "NL",
55
+ 8: "ISHIKAWA",
56
+ 11: "EOF",
57
+ 13: "SPACELIST",
58
+ 14: "TEXT"
59
+ },
60
+ productions_: [
61
+ 0,
62
+ [3, 1],
63
+ [3, 2],
64
+ [5, 1],
65
+ [5, 2],
66
+ [5, 2],
67
+ [4, 2],
68
+ [4, 3],
69
+ [10, 1],
70
+ [10, 1],
71
+ [10, 1],
72
+ [10, 2],
73
+ [10, 2],
74
+ [9, 3],
75
+ [9, 2],
76
+ [12, 2],
77
+ [12, 1],
78
+ [12, 1],
79
+ [12, 1]
80
+ ],
81
+ performAction: /* @__PURE__ */ e(function(e, t, n, r, i, a, o) {
82
+ var s = a.length - 1;
83
+ switch (i) {
84
+ case 6:
85
+ case 7: return r;
86
+ case 15:
87
+ r.addNode(a[s - 1].length, a[s].trim());
88
+ break;
89
+ case 16:
90
+ r.addNode(0, a[s].trim());
91
+ break;
92
+ }
93
+ }, "anonymous"),
94
+ table: [
95
+ {
96
+ 3: 1,
97
+ 4: 2,
98
+ 5: 3,
99
+ 6: [1, 5],
100
+ 8: n
101
+ },
102
+ { 1: [3] },
103
+ { 1: [2, 1] },
104
+ {
105
+ 4: 6,
106
+ 6: [1, 7],
107
+ 7: [1, 8],
108
+ 8: n
109
+ },
110
+ {
111
+ 6: r,
112
+ 7: [1, 10],
113
+ 9: 9,
114
+ 12: 11,
115
+ 13: i,
116
+ 14: a
117
+ },
118
+ t(o, [2, 3]),
119
+ { 1: [2, 2] },
120
+ t(o, [2, 4]),
121
+ t(o, [2, 5]),
122
+ {
123
+ 1: [2, 6],
124
+ 6: r,
125
+ 12: 15,
126
+ 13: i,
127
+ 14: a
128
+ },
129
+ {
130
+ 6: r,
131
+ 9: 16,
132
+ 12: 11,
133
+ 13: i,
134
+ 14: a
135
+ },
136
+ {
137
+ 6: s,
138
+ 7: c,
139
+ 10: 17,
140
+ 11: l
141
+ },
142
+ t(u, [2, 18], { 14: [1, 21] }),
143
+ t(u, [2, 16]),
144
+ t(u, [2, 17]),
145
+ {
146
+ 6: s,
147
+ 7: c,
148
+ 10: 22,
149
+ 11: l
150
+ },
151
+ {
152
+ 1: [2, 7],
153
+ 6: r,
154
+ 12: 15,
155
+ 13: i,
156
+ 14: a
157
+ },
158
+ t(d, [2, 14], {
159
+ 7: f,
160
+ 11: p
161
+ }),
162
+ t(m, [2, 8]),
163
+ t(m, [2, 9]),
164
+ t(m, [2, 10]),
165
+ t(u, [2, 15]),
166
+ t(d, [2, 13], {
167
+ 7: f,
168
+ 11: p
169
+ }),
170
+ t(m, [2, 11]),
171
+ t(m, [2, 12])
172
+ ],
173
+ defaultActions: {
174
+ 2: [2, 1],
175
+ 6: [2, 2]
176
+ },
177
+ parseError: /* @__PURE__ */ e(function(e, t) {
178
+ if (t.recoverable) this.trace(e);
179
+ else {
180
+ var n = Error(e);
181
+ throw n.hash = t, n;
182
+ }
183
+ }, "parseError"),
184
+ parse: /* @__PURE__ */ e(function(t) {
185
+ var n = 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: {} };
186
+ for (var _ in this.yy) Object.prototype.hasOwnProperty.call(this.yy, _) && (g.yy[_] = this.yy[_]);
187
+ h.setInput(t, g.yy), g.yy.lexer = h, g.yy.parser = this, h.yylloc === void 0 && (h.yylloc = {});
188
+ var v = h.yylloc;
189
+ o.push(v);
190
+ var y = h.options && h.options.ranges;
191
+ typeof g.yy.parseError == "function" ? this.parseError = g.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
192
+ function b(e) {
193
+ r.length -= 2 * e, a.length -= e, o.length -= e;
194
+ }
195
+ e(b, "popStack");
196
+ function x() {
197
+ var e = i.pop() || h.lex() || p;
198
+ return typeof e != "number" && (e instanceof Array && (i = e, e = i.pop()), e = n.symbols_[e] || e), e;
199
+ }
200
+ e(x, "lex");
201
+ for (var S, C, w, T, E, D = {}, O, k, A, j;;) {
202
+ 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]) {
203
+ var M = "";
204
+ for (O in j = [], s[w]) this.terminals_[O] && O > f && j.push("'" + this.terminals_[O] + "'");
205
+ 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, {
206
+ text: h.match,
207
+ token: this.terminals_[S] || S,
208
+ line: h.yylineno,
209
+ loc: v,
210
+ expected: j
211
+ });
212
+ }
213
+ if (T[0] instanceof Array && T.length > 1) throw Error("Parse Error: multiple actions possible at state: " + w + ", token: " + S);
214
+ switch (T[0]) {
215
+ case 1:
216
+ 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--);
217
+ break;
218
+ case 2:
219
+ if (k = this.productions_[T[1]][1], D.$ = a[a.length - k], D._$ = {
220
+ first_line: o[o.length - (k || 1)].first_line,
221
+ last_line: o[o.length - 1].last_line,
222
+ first_column: o[o.length - (k || 1)].first_column,
223
+ last_column: o[o.length - 1].last_column
224
+ }, y && (D._$.range = [o[o.length - (k || 1)].range[0], o[o.length - 1].range[1]]), E = this.performAction.apply(D, [
225
+ c,
226
+ u,
227
+ l,
228
+ g.yy,
229
+ T[1],
230
+ a,
231
+ o
232
+ ].concat(m)), E !== void 0) return E;
233
+ 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);
234
+ break;
235
+ case 3: return !0;
236
+ }
237
+ }
238
+ return !0;
239
+ }, "parse")
240
+ };
241
+ h.lexer = /* @__PURE__ */ (function() {
242
+ return {
243
+ EOF: 1,
244
+ parseError: /* @__PURE__ */ e(function(e, t) {
245
+ if (this.yy.parser) this.yy.parser.parseError(e, t);
246
+ else throw Error(e);
247
+ }, "parseError"),
248
+ setInput: /* @__PURE__ */ e(function(e, t) {
249
+ 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 = {
250
+ first_line: 1,
251
+ first_column: 0,
252
+ last_line: 1,
253
+ last_column: 0
254
+ }, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
255
+ }, "setInput"),
256
+ input: /* @__PURE__ */ e(function() {
257
+ var e = this._input[0];
258
+ 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;
259
+ }, "input"),
260
+ unput: /* @__PURE__ */ e(function(e) {
261
+ var t = e.length, n = e.split(/(?:\r\n?|\n)/g);
262
+ this._input = e + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - t), this.offset -= t;
263
+ var r = this.match.split(/(?:\r\n?|\n)/g);
264
+ 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);
265
+ var i = this.yylloc.range;
266
+ return this.yylloc = {
267
+ first_line: this.yylloc.first_line,
268
+ last_line: this.yylineno + 1,
269
+ first_column: this.yylloc.first_column,
270
+ 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
271
+ }, this.options.ranges && (this.yylloc.range = [i[0], i[0] + this.yyleng - t]), this.yyleng = this.yytext.length, this;
272
+ }, "unput"),
273
+ more: /* @__PURE__ */ e(function() {
274
+ return this._more = !0, this;
275
+ }, "more"),
276
+ reject: /* @__PURE__ */ e(function() {
277
+ if (this.options.backtrack_lexer) this._backtrack = !0;
278
+ 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(), {
279
+ text: "",
280
+ token: null,
281
+ line: this.yylineno
282
+ });
283
+ return this;
284
+ }, "reject"),
285
+ less: /* @__PURE__ */ e(function(e) {
286
+ this.unput(this.match.slice(e));
287
+ }, "less"),
288
+ pastInput: /* @__PURE__ */ e(function() {
289
+ var e = this.matched.substr(0, this.matched.length - this.match.length);
290
+ return (e.length > 20 ? "..." : "") + e.substr(-20).replace(/\n/g, "");
291
+ }, "pastInput"),
292
+ upcomingInput: /* @__PURE__ */ e(function() {
293
+ var e = this.match;
294
+ return e.length < 20 && (e += this._input.substr(0, 20 - e.length)), (e.substr(0, 20) + (e.length > 20 ? "..." : "")).replace(/\n/g, "");
295
+ }, "upcomingInput"),
296
+ showPosition: /* @__PURE__ */ e(function() {
297
+ var e = this.pastInput(), t = Array(e.length + 1).join("-");
298
+ return e + this.upcomingInput() + "\n" + t + "^";
299
+ }, "showPosition"),
300
+ test_match: /* @__PURE__ */ e(function(e, t) {
301
+ var n, r, i;
302
+ if (this.options.backtrack_lexer && (i = {
303
+ yylineno: this.yylineno,
304
+ yylloc: {
305
+ first_line: this.yylloc.first_line,
306
+ last_line: this.last_line,
307
+ first_column: this.yylloc.first_column,
308
+ last_column: this.yylloc.last_column
309
+ },
310
+ yytext: this.yytext,
311
+ match: this.match,
312
+ matches: this.matches,
313
+ matched: this.matched,
314
+ yyleng: this.yyleng,
315
+ offset: this.offset,
316
+ _more: this._more,
317
+ _input: this._input,
318
+ yy: this.yy,
319
+ conditionStack: this.conditionStack.slice(0),
320
+ done: this.done
321
+ }, 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 = {
322
+ first_line: this.yylloc.last_line,
323
+ last_line: this.yylineno + 1,
324
+ first_column: this.yylloc.last_column,
325
+ last_column: r ? r[r.length - 1].length - r[r.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + e[0].length
326
+ }, 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;
327
+ if (this._backtrack) {
328
+ for (var a in i) this[a] = i[a];
329
+ return !1;
330
+ }
331
+ return !1;
332
+ }, "test_match"),
333
+ next: /* @__PURE__ */ e(function() {
334
+ if (this.done) return this.EOF;
335
+ this._input || (this.done = !0);
336
+ var e, t, n, r;
337
+ this._more || (this.yytext = "", this.match = "");
338
+ 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)) {
339
+ if (t = n, r = a, this.options.backtrack_lexer) {
340
+ if (e = this.test_match(n, i[a]), e !== !1) return e;
341
+ if (this._backtrack) {
342
+ t = !1;
343
+ continue;
344
+ } else return !1;
345
+ } else if (!this.options.flex) break;
346
+ }
347
+ 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(), {
348
+ text: "",
349
+ token: null,
350
+ line: this.yylineno
351
+ });
352
+ }, "next"),
353
+ lex: /* @__PURE__ */ e(function() {
354
+ return this.next() || this.lex();
355
+ }, "lex"),
356
+ begin: /* @__PURE__ */ e(function(e) {
357
+ this.conditionStack.push(e);
358
+ }, "begin"),
359
+ popState: /* @__PURE__ */ e(function() {
360
+ return this.conditionStack.length - 1 > 0 ? this.conditionStack.pop() : this.conditionStack[0];
361
+ }, "popState"),
362
+ _currentRules: /* @__PURE__ */ e(function() {
363
+ return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
364
+ }, "_currentRules"),
365
+ topState: /* @__PURE__ */ e(function(e) {
366
+ return e = this.conditionStack.length - 1 - Math.abs(e || 0), e >= 0 ? this.conditionStack[e] : "INITIAL";
367
+ }, "topState"),
368
+ pushState: /* @__PURE__ */ e(function(e) {
369
+ this.begin(e);
370
+ }, "pushState"),
371
+ stateStackSize: /* @__PURE__ */ e(function() {
372
+ return this.conditionStack.length;
373
+ }, "stateStackSize"),
374
+ options: { "case-insensitive": !0 },
375
+ performAction: /* @__PURE__ */ e(function(e, t, n, r) {
376
+ switch (n) {
377
+ case 0: return 6;
378
+ case 1: return 8;
379
+ case 2: return 8;
380
+ case 3: return 6;
381
+ case 4: return 7;
382
+ case 5: return 13;
383
+ case 6: return 14;
384
+ case 7: return 11;
385
+ }
386
+ }, "anonymous"),
387
+ rules: [
388
+ /^(?:\s*%%.*)/i,
389
+ /^(?:ishikawa-beta\b)/i,
390
+ /^(?:ishikawa\b)/i,
391
+ /^(?:[\s]+[\n])/i,
392
+ /^(?:[\n]+)/i,
393
+ /^(?:[\s]+)/i,
394
+ /^(?:[^\n]+)/i,
395
+ /^(?:$)/i
396
+ ],
397
+ conditions: { INITIAL: {
398
+ rules: [
399
+ 0,
400
+ 1,
401
+ 2,
402
+ 3,
403
+ 4,
404
+ 5,
405
+ 6,
406
+ 7
407
+ ],
408
+ inclusive: !0
409
+ } }
410
+ };
411
+ })();
412
+ function g() {
413
+ this.yy = {};
414
+ }
415
+ return e(g, "Parser"), g.prototype = h, h.Parser = g, new g();
416
+ })();
417
+ h.parser = h;
418
+ var g = h, _ = (m = class {
419
+ constructor() {
420
+ this.stack = [], this.clear = this.clear.bind(this), this.addNode = this.addNode.bind(this), this.getRoot = this.getRoot.bind(this);
421
+ }
422
+ clear() {
423
+ this.root = void 0, this.stack = [], this.baseLevel = void 0, i();
424
+ }
425
+ getRoot() {
426
+ return this.root;
427
+ }
428
+ addNode(e, t) {
429
+ let r = o.sanitizeText(t, l());
430
+ if (!this.root) {
431
+ this.root = {
432
+ text: r,
433
+ children: []
434
+ }, this.stack = [{
435
+ level: 0,
436
+ node: this.root
437
+ }], n(r);
438
+ return;
439
+ }
440
+ this.baseLevel != null || (this.baseLevel = e);
441
+ let i = e - this.baseLevel + 1;
442
+ for (i <= 0 && (i = 1); this.stack.length > 1 && this.stack[this.stack.length - 1].level >= i;) this.stack.pop();
443
+ let a = this.stack[this.stack.length - 1].node, s = {
444
+ text: r,
445
+ children: []
446
+ };
447
+ a.children.push(s), this.stack.push({
448
+ level: i,
449
+ node: s
450
+ });
451
+ }
452
+ getAccTitle() {
453
+ return u();
454
+ }
455
+ setAccTitle(e) {
456
+ r(e);
457
+ }
458
+ getAccDescription() {
459
+ return s();
460
+ }
461
+ setAccDescription(e) {
462
+ t(e);
463
+ }
464
+ getDiagramTitle() {
465
+ return c();
466
+ }
467
+ setDiagramTitle(e) {
468
+ n(e);
469
+ }
470
+ }, e(m, "IshikawaDB"), m), v = 14, y = 250, b = 30, x = 60, S = 5, C = 82 * Math.PI / 180, w = Math.cos(C), T = Math.sin(C), E = /* @__PURE__ */ e((e, t, n) => {
471
+ let r = e.node().getBBox(), i = r.width + t * 2, o = r.height + t * 2;
472
+ a(e, o, i, n), e.attr("viewBox", `${r.x - t} ${r.y - t} ${i} ${o}`);
473
+ }, "applyPaddedViewBox"), D = /* @__PURE__ */ e((e, t, n, r) => {
474
+ var i, a, o, s, c, u, m, h;
475
+ let g = r.db.getRoot();
476
+ if (!g) return;
477
+ let _ = l(), { look: b, handDrawnSeed: x, themeVariables: S } = _, C = (i = d(_.fontSize)[0]) == null ? v : i, w = b === "handDrawn", T = (a = g.children) == null ? [] : a, D = (o = (s = _.ishikawa) == null ? void 0 : s.diagramPadding) == null ? 20 : o, A = (c = (u = _.ishikawa) == null ? void 0 : u.useMaxWidth) == null ? !1 : c, j = f(t), M = j.append("g").attr("class", "ishikawa"), P = w ? p.svg(j.node()) : void 0, F = P ? {
478
+ roughSvg: P,
479
+ seed: x == null ? 0 : x,
480
+ lineColor: (m = S == null ? void 0 : S.lineColor) == null ? "#333" : m,
481
+ fillColor: (h = S == null ? void 0 : S.mainBkg) == null ? "#fff" : h
482
+ } : void 0, I = `ishikawa-arrow-${t}`;
483
+ w || M.append("defs").append("marker").attr("id", I).attr("viewBox", "0 0 10 10").attr("refX", 0).attr("refY", 5).attr("markerWidth", 6).attr("markerHeight", 6).attr("orient", "auto").append("path").attr("d", "M 10 0 L 0 5 L 10 10 Z").attr("class", "ishikawa-arrow");
484
+ let L = 0, z = y, B = w ? void 0 : R(M, L, z, L, z, "ishikawa-spine");
485
+ if (k(M, L, z, g.text, C, F), !T.length) {
486
+ w && R(M, L, z, L, z, "ishikawa-spine", F), E(j, D, A);
487
+ return;
488
+ }
489
+ L -= 20;
490
+ let V = T.filter((e, t) => t % 2 == 0), H = T.filter((e, t) => t % 2 == 1), U = O(V), W = O(H), G = U.total + W.total, K = y, q = y;
491
+ if (G > 0) {
492
+ let e = y * 2, t = y * .3;
493
+ K = Math.max(t, e * (U.total / G)), q = Math.max(t, e * (W.total / G));
494
+ }
495
+ let J = C * 2;
496
+ K = Math.max(K, U.max * J), q = Math.max(q, W.max * J), z = Math.max(K, y), B && B.attr("y1", z).attr("y2", z), M.select(".ishikawa-head-group").attr("transform", `translate(0,${z})`);
497
+ let Y = Math.ceil(T.length / 2);
498
+ for (let e = 0; e < Y; e++) {
499
+ let t = M.append("g").attr("class", "ishikawa-pair");
500
+ for (let [n, r, i] of [[
501
+ T[e * 2],
502
+ -1,
503
+ K
504
+ ], [
505
+ T[e * 2 + 1],
506
+ 1,
507
+ q
508
+ ]]) n && N(t, n, L, z, r, i, C, F);
509
+ L = t.selectAll("text").nodes().reduce((e, t) => Math.min(e, t.getBBox().x), Infinity);
510
+ }
511
+ if (w) R(M, L, z, 0, z, "ishikawa-spine", F);
512
+ else {
513
+ B.attr("x1", L);
514
+ let e = `url(#${I})`;
515
+ M.selectAll("line.ishikawa-branch, line.ishikawa-sub-branch").attr("marker-start", e);
516
+ }
517
+ E(j, D, A);
518
+ }, "draw"), O = /* @__PURE__ */ e((t) => {
519
+ let n = /* @__PURE__ */ e((e) => e.children.reduce((e, t) => e + 1 + n(t), 0), "countDescendants");
520
+ return t.reduce((e, t) => {
521
+ let r = n(t);
522
+ return e.total += r, e.max = Math.max(e.max, r), e;
523
+ }, {
524
+ total: 0,
525
+ max: 0
526
+ });
527
+ }, "sideStats"), k = /* @__PURE__ */ e((e, t, n, r, i, a) => {
528
+ let o = Math.max(6, Math.floor(110 / (i * .6))), s = e.append("g").attr("class", "ishikawa-head-group").attr("transform", `translate(${t},${n})`), c = I(s, F(r, o), 0, 0, "ishikawa-head-label", "start", i), l = c.node().getBBox(), u = Math.max(60, l.width + 6), d = Math.max(40, l.height * 2 + 40), f = `M 0 ${-d / 2} L 0 ${d / 2} Q ${u * 2.4} 0 0 ${-d / 2} Z`;
529
+ if (a) {
530
+ let e = a.roughSvg.path(f, {
531
+ roughness: 1.5,
532
+ seed: a.seed,
533
+ fill: a.fillColor,
534
+ fillStyle: "hachure",
535
+ fillWeight: 2.5,
536
+ hachureGap: 5,
537
+ stroke: a.lineColor,
538
+ strokeWidth: 2
539
+ });
540
+ s.insert(() => e, ":first-child").attr("class", "ishikawa-head");
541
+ } else s.insert("path", ":first-child").attr("class", "ishikawa-head").attr("d", f);
542
+ c.attr("transform", `translate(${(u - l.width) / 2 - l.x + 3},${-l.y - l.height / 2})`);
543
+ }, "drawHead"), A = /* @__PURE__ */ e((t, n) => {
544
+ let r = [], i = [], a = /* @__PURE__ */ e((e, t, o) => {
545
+ let s = n === -1 ? [...e].reverse() : e;
546
+ for (let e of s) {
547
+ var c;
548
+ let n = r.length, s = (c = e.children) == null ? [] : c;
549
+ r.push({
550
+ depth: o,
551
+ text: F(e.text, 15),
552
+ parentIndex: t,
553
+ childCount: s.length
554
+ }), o % 2 == 0 ? (i.push(n), s.length && a(s, n, o + 1)) : (s.length && a(s, n, o + 1), i.push(n));
555
+ }
556
+ }, "walk");
557
+ return a(t, -1, 2), {
558
+ entries: r,
559
+ yOrder: i
560
+ };
561
+ }, "flattenTree"), j = /* @__PURE__ */ e((e, t, n, r, i, a, o) => {
562
+ let s = e.append("g").attr("class", "ishikawa-label-group"), c = I(s, t, n, r + 11 * i, "ishikawa-label cause", "middle", a).node().getBBox();
563
+ if (o) {
564
+ let e = o.roughSvg.rectangle(c.x - 20, c.y - 2, c.width + 40, c.height + 4, {
565
+ roughness: 1.5,
566
+ seed: o.seed,
567
+ fill: o.fillColor,
568
+ fillStyle: "hachure",
569
+ fillWeight: 2.5,
570
+ hachureGap: 5,
571
+ stroke: o.lineColor,
572
+ strokeWidth: 2
573
+ });
574
+ s.insert(() => e, ":first-child").attr("class", "ishikawa-label-box");
575
+ } else s.insert("rect", ":first-child").attr("class", "ishikawa-label-box").attr("x", c.x - 20).attr("y", c.y - 2).attr("width", c.width + 40).attr("height", c.height + 4);
576
+ }, "drawCauseLabel"), M = /* @__PURE__ */ e((e, t, n, r, i, a) => {
577
+ let o = Math.sqrt(r * r + i * i);
578
+ if (o === 0) return;
579
+ let s = r / o, c = i / o, l = -c * 6, u = s * 6, d = t, f = n, p = `M ${d} ${f} L ${d - s * 6 * 2 + l} ${f - c * 6 * 2 + u} L ${d - s * 6 * 2 - l} ${f - c * 6 * 2 - u} Z`, m = a.roughSvg.path(p, {
580
+ roughness: 1,
581
+ seed: a.seed,
582
+ fill: a.lineColor,
583
+ fillStyle: "solid",
584
+ stroke: a.lineColor,
585
+ strokeWidth: 1
586
+ });
587
+ e.append(() => m);
588
+ }, "drawArrowMarker"), N = /* @__PURE__ */ e((e, t, n, r, i, a, o, s) => {
589
+ var c;
590
+ let l = (c = t.children) == null ? [] : c, u = a * (l.length ? 1 : .2), d = -w * u, f = T * u * i, p = n + d, m = r + f;
591
+ if (R(e, n, r, p, m, "ishikawa-branch", s), s && M(e, n, r, n - p, r - m, s), j(e, t.text, p, m, i, o, s), !l.length) return;
592
+ let { entries: h, yOrder: g } = A(l, i), _ = h.length, v = Array(_);
593
+ for (let [e, t] of g.entries()) v[t] = r + f * ((e + 1) / (_ + 1));
594
+ let y = /* @__PURE__ */ new Map();
595
+ y.set(-1, {
596
+ x0: n,
597
+ y0: r,
598
+ x1: p,
599
+ y1: m,
600
+ childCount: l.length,
601
+ childrenDrawn: 0
602
+ });
603
+ let C = -w, E = T * i, D = i < 0 ? "ishikawa-label up" : "ishikawa-label down";
604
+ for (let [t, n] of h.entries()) {
605
+ let r = v[t], i = y.get(n.parentIndex), a = e.append("g").attr("class", "ishikawa-sub-group"), c = 0, l = 0, u = 0;
606
+ if (n.depth % 2 == 0) {
607
+ let e = i.y1 - i.y0;
608
+ c = L(i.x0, i.x1, e ? (r - i.y0) / e : .5), l = r, u = c - (n.childCount > 0 ? x + n.childCount * S : b), R(a, c, r, u, r, "ishikawa-sub-branch", s), s && M(a, c, r, 1, 0, s), I(a, n.text, u, r, "ishikawa-label align", "end", o);
609
+ } else {
610
+ let e = i.childrenDrawn++;
611
+ c = L(i.x0, i.x1, (i.childCount - e) / (i.childCount + 1)), l = i.y0, u = c + C * ((r - l) / E), R(a, c, l, u, r, "ishikawa-sub-branch", s), s && M(a, c, l, c - u, l - r, s), I(a, n.text, u, r, D, "end", o);
612
+ }
613
+ n.childCount > 0 && y.set(t, {
614
+ x0: c,
615
+ y0: l,
616
+ x1: u,
617
+ y1: r,
618
+ childCount: n.childCount,
619
+ childrenDrawn: 0
620
+ });
621
+ }
622
+ }, "drawBranch"), P = /* @__PURE__ */ e((e) => e.split(/<br\s*\/?>|\n/), "splitLines"), F = /* @__PURE__ */ e((e, t) => {
623
+ if (e.length <= t) return e;
624
+ let n = [];
625
+ for (let r of e.split(/\s+/)) {
626
+ let e = n.length - 1;
627
+ e >= 0 && n[e].length + 1 + r.length <= t ? n[e] += " " + r : n.push(r);
628
+ }
629
+ return n.join("\n");
630
+ }, "wrapText"), I = /* @__PURE__ */ e((e, t, n, r, i, a, o) => {
631
+ let s = P(t), c = o * 1.05, l = e.append("text").attr("class", i).attr("text-anchor", a).attr("x", n).attr("y", r - (s.length - 1) * c / 2);
632
+ for (let [e, t] of s.entries()) l.append("tspan").attr("x", n).attr("dy", e === 0 ? 0 : c).text(t);
633
+ return l;
634
+ }, "drawMultilineText"), L = /* @__PURE__ */ e((e, t, n) => e + (t - e) * n, "lerp"), R = /* @__PURE__ */ e((e, t, n, r, i, a, o) => {
635
+ if (o) {
636
+ let s = o.roughSvg.line(t, n, r, i, {
637
+ roughness: 1.5,
638
+ seed: o.seed,
639
+ stroke: o.lineColor,
640
+ strokeWidth: 2
641
+ });
642
+ e.append(() => s).attr("class", a);
643
+ return;
644
+ }
645
+ return e.append("line").attr("class", a).attr("x1", t).attr("y1", n).attr("x2", r).attr("y2", i);
646
+ }, "drawLine"), z = {
647
+ parser: g,
648
+ get db() {
649
+ return new _();
650
+ },
651
+ renderer: { draw: D },
652
+ styles: /* @__PURE__ */ e((e) => `
653
+ .ishikawa .ishikawa-spine,
654
+ .ishikawa .ishikawa-branch,
655
+ .ishikawa .ishikawa-sub-branch {
656
+ stroke: ${e.lineColor};
657
+ stroke-width: 2;
658
+ fill: none;
659
+ }
660
+
661
+ .ishikawa .ishikawa-sub-branch {
662
+ stroke-width: 1;
663
+ }
664
+
665
+ .ishikawa .ishikawa-arrow {
666
+ fill: ${e.lineColor};
667
+ }
668
+
669
+ .ishikawa .ishikawa-head {
670
+ fill: ${e.mainBkg};
671
+ stroke: ${e.lineColor};
672
+ stroke-width: 2;
673
+ }
674
+
675
+ .ishikawa .ishikawa-label-box {
676
+ fill: ${e.mainBkg};
677
+ stroke: ${e.lineColor};
678
+ stroke-width: 2;
679
+ }
680
+
681
+ .ishikawa text {
682
+ font-family: ${e.fontFamily};
683
+ font-size: ${e.fontSize};
684
+ fill: ${e.textColor};
685
+ }
686
+
687
+ .ishikawa .ishikawa-head-label {
688
+ font-weight: 600;
689
+ text-anchor: middle;
690
+ dominant-baseline: middle;
691
+ font-size: 14px;
692
+ }
693
+
694
+ .ishikawa .ishikawa-label {
695
+ text-anchor: end;
696
+ }
697
+
698
+ .ishikawa .ishikawa-label.cause {
699
+ text-anchor: middle;
700
+ dominant-baseline: middle;
701
+ }
702
+
703
+ .ishikawa .ishikawa-label.align {
704
+ text-anchor: end;
705
+ dominant-baseline: middle;
706
+ }
707
+
708
+ .ishikawa .ishikawa-label.up {
709
+ dominant-baseline: baseline;
710
+ }
711
+
712
+ .ishikawa .ishikawa-label.down {
713
+ dominant-baseline: hanging;
714
+ }
715
+ `, "getStyles")
716
+ };
717
+ //#endregion
718
+ export { z as diagram };