@flyfish-group/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 +3 -388
  2. package/README.md +3 -364
  3. package/dist/file-viewer3.css +1 -2
  4. package/dist/index.d.ts +2 -0
  5. package/dist/index.js +2 -0
  6. package/package.json +22 -126
  7. package/dist/components/3MFLoader.js +0 -527
  8. package/dist/components/AMFLoader.js +0 -188
  9. package/dist/components/ArchiveViewer.js +0 -526
  10. package/dist/components/AudioViewer.js +0 -66
  11. package/dist/components/CadViewer.js +0 -9040
  12. package/dist/components/CodeViewer.js +0 -151
  13. package/dist/components/ColladaLoader.js +0 -2282
  14. package/dist/components/DrawingViewer.js +0 -295
  15. package/dist/components/EdaViewer.js +0 -630
  16. package/dist/components/EmailViewer.js +0 -276
  17. package/dist/components/EpubViewer.js +0 -172
  18. package/dist/components/FBXLoader.js +0 -1574
  19. package/dist/components/GLTFLoader.js +0 -1383
  20. package/dist/components/ImageViewer.js +0 -1519
  21. package/dist/components/KMZLoader.js +0 -45
  22. package/dist/components/MarkdownViewer.js +0 -1476
  23. package/dist/components/ModelViewer.js +0 -797
  24. package/dist/components/OBJLoader.js +0 -287
  25. package/dist/components/OfdViewer.js +0 -133
  26. package/dist/components/PCDLoader.js +0 -141
  27. package/dist/components/PLYLoader.js +0 -305
  28. package/dist/components/PdfView.js +0 -27667
  29. package/dist/components/PptxRender.js +0 -11217
  30. package/dist/components/STLLoader.js +0 -83
  31. package/dist/components/TDSLoader.js +0 -228
  32. package/dist/components/TypstViewer.js +0 -1697
  33. package/dist/components/USDLoader.js +0 -2526
  34. package/dist/components/UmdViewer.js +0 -1873
  35. package/dist/components/VRMLLoader.js +0 -6422
  36. package/dist/components/VTKLoader.js +0 -337
  37. package/dist/components/XYZLoader.js +0 -30
  38. package/dist/components/XlsxTable.js +0 -7879
  39. package/dist/components/__vite-browser-external.js +0 -7
  40. package/dist/components/_plugin-vue_export-helper.js +0 -8
  41. package/dist/components/ar-SA-G6X2FPQ2.js +0 -523
  42. package/dist/components/arc.js +0 -79
  43. package/dist/components/architecture-7EHR7CIX.js +0 -3
  44. package/dist/components/architectureDiagram-3BPJPVTR.js +0 -4096
  45. package/dist/components/archive.js +0 -24
  46. package/dist/components/asyncToGenerator.js +0 -29
  47. package/dist/components/audio.js +0 -19
  48. package/dist/components/az-AZ-76LH7QW2.js +0 -523
  49. package/dist/components/bash.js +0 -169
  50. package/dist/components/bg-BG-XCXSNQG7.js +0 -523
  51. package/dist/components/blockDiagram-GPEHLZMM.js +0 -3357
  52. package/dist/components/bn-BD-2XOGV67Q.js +0 -523
  53. package/dist/components/c4Diagram-AAUBKEIU.js +0 -2957
  54. package/dist/components/ca-ES-6MX7JW3Y.js +0 -523
  55. package/dist/components/cad.js +0 -23
  56. package/dist/components/cfb.js +0 -1174
  57. package/dist/components/channel.js +0 -5
  58. package/dist/components/chunk-2J33WTMH.js +0 -26
  59. package/dist/components/chunk-3OPIFGDE.js +0 -4167
  60. package/dist/components/chunk-4BX2VUAB.js +0 -19
  61. package/dist/components/chunk-55IACEB6.js +0 -9
  62. package/dist/components/chunk-5ZQYHXKU.js +0 -669
  63. package/dist/components/chunk-6U3AYISY.js +0 -624
  64. package/dist/components/chunk-727SXJPM.js +0 -3356
  65. package/dist/components/chunk-AGHRB4JF.js +0 -324
  66. package/dist/components/chunk-AQP2D5EJ.js +0 -2055
  67. package/dist/components/chunk-BSJP7CBP.js +0 -83
  68. package/dist/components/chunk-CSCIHK7Q.js +0 -3500
  69. package/dist/components/chunk-EIO257PC.js +0 -1836
  70. package/dist/components/chunk-FMBD7UC4.js +0 -5
  71. package/dist/components/chunk-K2UTITRG.js +0 -17627
  72. package/dist/components/chunk-KSCS5N6A.js +0 -572
  73. package/dist/components/chunk-L5ZTLDWV.js +0 -40
  74. package/dist/components/chunk-LZXEDZCA.js +0 -60
  75. package/dist/components/chunk-ND2GUHAM.js +0 -61
  76. package/dist/components/chunk-NNHCCRGN.js +0 -20425
  77. package/dist/components/chunk-NZK2D7GU.js +0 -68
  78. package/dist/components/chunk-O5CBEL6O.js +0 -1894
  79. package/dist/components/chunk-QZHKN3VN.js +0 -12
  80. package/dist/components/chunk-SRAX5OIU.js +0 -22
  81. package/dist/components/chunk-WU5MYG2G.js +0 -14
  82. package/dist/components/chunk-XPW4576I.js +0 -1146
  83. package/dist/components/chunk-Z3N5DIM6.js +0 -59
  84. package/dist/components/chunk-ZUYEQ4TG.js +0 -22
  85. package/dist/components/chunk.js +0 -23
  86. package/dist/components/classDiagram-4FO5ZUOK.js +0 -29
  87. package/dist/components/classDiagram-v2-Q7XG4LA2.js +0 -29
  88. package/dist/components/compiler.js +0 -2
  89. package/dist/components/core.js +0 -845
  90. package/dist/components/cose-bilkent-S5V4N54A.js +0 -2268
  91. package/dist/components/cpp.js +0 -225
  92. package/dist/components/cs-CZ-2BRQDIVT.js +0 -523
  93. package/dist/components/csharp.js +0 -260
  94. package/dist/components/css.js +0 -140
  95. package/dist/components/cytoscape.esm.js +0 -18114
  96. package/dist/components/da-DK-5WZEPLOC.js +0 -523
  97. package/dist/components/dagre-BM42HDAG.js +0 -325
  98. package/dist/components/dagre.js +0 -1936
  99. package/dist/components/de-DE-XR44H4JA.js +0 -523
  100. package/dist/components/defaultLocale.js +0 -201
  101. package/dist/components/defineProperty.js +0 -50
  102. package/dist/components/diagram-2AECGRRQ.js +0 -229
  103. package/dist/components/diagram-5GNKFQAL.js +0 -108
  104. package/dist/components/diagram-KO2AKTUF.js +0 -443
  105. package/dist/components/diagram-LMA3HP47.js +0 -139
  106. package/dist/components/diagram-OG6HWLK6.js +0 -541
  107. package/dist/components/diff.js +0 -39
  108. package/dist/components/directory-open-01563666.js +0 -26
  109. package/dist/components/directory-open-4ed118d0.js +0 -83
  110. package/dist/components/dist.js +0 -50
  111. package/dist/components/dist2.js +0 -3291
  112. package/dist/components/dist3.js +0 -1593
  113. package/dist/components/documentSearch.js +0 -378
  114. package/dist/components/docx-preview.js +0 -3113
  115. package/dist/components/drawing.js +0 -19
  116. package/dist/components/ebook.js +0 -16
  117. package/dist/components/eda.js +0 -20
  118. package/dist/components/el-GR-BZB4AONW.js +0 -523
  119. package/dist/components/email.js +0 -21
  120. package/dist/components/en-B4ZKOASM.js +0 -3
  121. package/dist/components/erDiagram-TEJ5UH35.js +0 -1719
  122. package/dist/components/es-ES-U4NZUMDT.js +0 -523
  123. package/dist/components/eu-ES-A7QVB2H4.js +0 -523
  124. package/dist/components/eventmodeling-FCH6USID.js +0 -3
  125. package/dist/components/fa-IR-HGAKTJCU.js +0 -523
  126. package/dist/components/fflate.module.js +0 -323
  127. package/dist/components/fi-FI-Z5N7JZ37.js +0 -523
  128. package/dist/components/file-open-002ab408.js +0 -38
  129. package/dist/components/file-open-7c801643.js +0 -24
  130. package/dist/components/file-save-3189631c.js +0 -40
  131. package/dist/components/file-save-745eba88.js +0 -36
  132. package/dist/components/flowDiagram-I6XJVG4X.js +0 -4181
  133. package/dist/components/fr-FR-RHASNOE6.js +0 -523
  134. package/dist/components/ganttDiagram-6RSMTGT7.js +0 -2182
  135. package/dist/components/gitGraph-WXDBUCRP.js +0 -3
  136. package/dist/components/gitGraphDiagram-PVQCEYII.js +0 -788
  137. package/dist/components/gl-ES-HMX3MZ6V.js +0 -523
  138. package/dist/components/global-compiler.js +0 -23
  139. package/dist/components/global-renderer.js +0 -23
  140. package/dist/components/go.js +0 -140
  141. package/dist/components/graphlib.js +0 -1267
  142. package/dist/components/he-IL-6SHJWFNN.js +0 -523
  143. package/dist/components/hi-IN-IWLTKZ5I.js +0 -523
  144. package/dist/components/hu-HU-A5ZG7DT2.js +0 -523
  145. package/dist/components/id-ID-SAP4L64H.js +0 -523
  146. package/dist/components/image-GAAHSSAO.js +0 -3
  147. package/dist/components/image-blob-reduce.esm.js +0 -1429
  148. package/dist/components/image.js +0 -17
  149. package/dist/components/info-J43DQDTF.js +0 -3
  150. package/dist/components/infoDiagram-5YYISTIA.js +0 -26
  151. package/dist/components/ini.js +0 -88
  152. package/dist/components/init.js +0 -15
  153. package/dist/components/ishikawaDiagram-YF4QCWOH.js +0 -718
  154. package/dist/components/it-IT-JPQ66NNP.js +0 -523
  155. package/dist/components/ja-JP-DBVTYXUO.js +0 -523
  156. package/dist/components/java.js +0 -169
  157. package/dist/components/javascript.js +0 -436
  158. package/dist/components/journeyDiagram-JHISSGLW.js +0 -885
  159. package/dist/components/json.js +0 -36
  160. package/dist/components/jszip.min.js +0 -3033
  161. package/dist/components/kaa-6HZHGXH3.js +0 -523
  162. package/dist/components/kab-KAB-ZGHBKWFO.js +0 -523
  163. package/dist/components/kanban-definition-UN3LZRKU.js +0 -986
  164. package/dist/components/katex.js +0 -21979
  165. package/dist/components/kk-KZ-P5N5QNE5.js +0 -523
  166. package/dist/components/km-KH-HSX4SM5Z.js +0 -523
  167. package/dist/components/ko-KR-MTYHY66A.js +0 -523
  168. package/dist/components/ku-TR-6OUDTVRD.js +0 -523
  169. package/dist/components/lib.js +0 -4877
  170. package/dist/components/libarchive.js +0 -360
  171. package/dist/components/linear.js +0 -289
  172. package/dist/components/lt-LT-XHIRWOB4.js +0 -523
  173. package/dist/components/lv-LV-5QDEKY6T.js +0 -523
  174. package/dist/components/markdown.js +0 -181
  175. package/dist/components/md.js +0 -17
  176. package/dist/components/mermaid-parser.core.js +0 -328
  177. package/dist/components/mindmap-definition-RKZ34NQL.js +0 -1016
  178. package/dist/components/model.js +0 -21
  179. package/dist/components/mp4.js +0 -12
  180. package/dist/components/mr-IN-CRQNXWMA.js +0 -523
  181. package/dist/components/my-MM-5M5IBNSE.js +0 -523
  182. package/dist/components/nb-NO-T6EIAALU.js +0 -523
  183. package/dist/components/nestedRender.js +0 -158
  184. package/dist/components/nl-NL-IS3SIHDZ.js +0 -523
  185. package/dist/components/nn-NO-6E72VCQL.js +0 -523
  186. package/dist/components/objectSpread2.js +0 -29
  187. package/dist/components/objectWithoutProperties.js +0 -28
  188. package/dist/components/oc-FR-POXYY2M6.js +0 -523
  189. package/dist/components/ofd.js +0 -5261
  190. package/dist/components/ofd2.js +0 -16
  191. package/dist/components/ordinal.js +0 -65
  192. package/dist/components/pa-IN-N4M65BXN.js +0 -523
  193. package/dist/components/packet-YPE3B663.js +0 -3
  194. package/dist/components/pdf.js +0 -24
  195. package/dist/components/percentages-BXMCSKIN.js +0 -3
  196. package/dist/components/php.js +0 -294
  197. package/dist/components/pica.js +0 -1009
  198. package/dist/components/pie-LRSECV5Y.js +0 -3
  199. package/dist/components/pie.js +0 -47
  200. package/dist/components/pieDiagram-4H26LBE5.js +0 -130
  201. package/dist/components/pl-PL-T2D74RX3.js +0 -523
  202. package/dist/components/postal-mime.js +0 -3146
  203. package/dist/components/pptx.js +0 -15
  204. package/dist/components/printLayout.js +0 -42
  205. package/dist/components/prod.js +0 -21770
  206. package/dist/components/pt-BR-5N22H2LF.js +0 -523
  207. package/dist/components/pt-PT-UZXXM6DQ.js +0 -523
  208. package/dist/components/python.js +0 -238
  209. package/dist/components/quadrantDiagram-W4KKPZXB.js +0 -1988
  210. package/dist/components/radar-GUYGQ44K.js +0 -3
  211. package/dist/components/renderer.js +0 -2
  212. package/dist/components/requirementDiagram-4Y6WPE33.js +0 -2230
  213. package/dist/components/ro-RO-JPDTUUEW.js +0 -523
  214. package/dist/components/rough.esm.js +0 -1355
  215. package/dist/components/roundRect.js +0 -90
  216. package/dist/components/ru-RU-B4JR7IUQ.js +0 -523
  217. package/dist/components/rust.js +0 -169
  218. package/dist/components/sankeyDiagram-5OEKKPKP.js +0 -972
  219. package/dist/components/sequenceDiagram-3UESZ5HK.js +0 -4255
  220. package/dist/components/shared.js +0 -175
  221. package/dist/components/shared2.js +0 -4
  222. package/dist/components/si-LK-N5RQ5JYF.js +0 -523
  223. package/dist/components/sk-SK-C5VTKIMK.js +0 -523
  224. package/dist/components/sl-SI-NN7IZMDC.js +0 -523
  225. package/dist/components/sourceLoading.js +0 -134
  226. package/dist/components/sql.js +0 -118
  227. package/dist/components/src.js +0 -2664
  228. package/dist/components/src2.js +0 -10722
  229. package/dist/components/stateDiagram-AJRCARHV.js +0 -217
  230. package/dist/components/stateDiagram-v2-BHNVJYJU.js +0 -27
  231. package/dist/components/subset-shared.chunk.js +0 -3
  232. package/dist/components/subset-worker.chunk.js +0 -21
  233. package/dist/components/sv-SE-XGPEYMSR.js +0 -523
  234. package/dist/components/ta-IN-2NMHFXQM.js +0 -523
  235. package/dist/components/text.js +0 -20
  236. package/dist/components/th-TH-HPSO5L25.js +0 -523
  237. package/dist/components/three.module.js +0 -13134
  238. package/dist/components/time.js +0 -910
  239. package/dist/components/timeline-definition-PNZ67QCA.js +0 -1084
  240. package/dist/components/tr-TR-DEFEU3FU.js +0 -523
  241. package/dist/components/treeView-BLDUP644.js +0 -3
  242. package/dist/components/treemap-LRROVOQU.js +0 -3
  243. package/dist/components/typescript.js +0 -521
  244. package/dist/components/typst.js +0 -25
  245. package/dist/components/uk-UA-QMV73CPH.js +0 -523
  246. package/dist/components/umd.js +0 -16
  247. package/dist/components/use.js +0 -422
  248. package/dist/components/util.js +0 -49
  249. package/dist/components/vennDiagram-CIIHVFJN.js +0 -1880
  250. package/dist/components/vi-VN-M7AON7JQ.js +0 -523
  251. package/dist/components/viewerZoom.js +0 -92
  252. package/dist/components/wardley-L42UT6IY.js +0 -3
  253. package/dist/components/wardleyDiagram-YWT4CUSO.js +0 -656
  254. package/dist/components/wasm-pack-shim.js +0 -1711
  255. package/dist/components/wasm-pack-shim2.js +0 -934
  256. package/dist/components/wasm.js +0 -97
  257. package/dist/components/word.js +0 -3055
  258. package/dist/components/worker-ref.js +0 -16
  259. package/dist/components/xlsx.js +0 -21
  260. package/dist/components/xml.js +0 -166
  261. package/dist/components/xychartDiagram-2RQKCTM6.js +0 -2015
  262. package/dist/components/yaml.js +0 -144
  263. package/dist/components/zh-CN-LNUGB5OW.js +0 -523
  264. package/dist/components/zh-HK-E62DVLB3.js +0 -523
  265. package/dist/components/zh-TW-RAJ6MFWO.js +0 -523
  266. package/dist/index.mjs +0 -3293
  267. package/dist/src/App.vue.d.ts +0 -3
  268. package/dist/src/compare/CompareApp.vue.d.ts +0 -3
  269. package/dist/src/compare/main.d.ts +0 -0
  270. package/dist/src/compare/useSynchronizedScroll.d.ts +0 -7
  271. package/dist/src/components/HelloWorld.vue.d.ts +0 -3
  272. package/dist/src/components/utils.d.ts +0 -4
  273. package/dist/src/main.d.ts +0 -0
  274. package/dist/src/package/common/printCapability.d.ts +0 -27
  275. package/dist/src/package/common/printLayout.d.ts +0 -16
  276. package/dist/src/package/common/sourceLoading.d.ts +0 -10
  277. package/dist/src/package/common/type.d.ts +0 -544
  278. package/dist/src/package/common/util.d.ts +0 -5
  279. package/dist/src/package/common/worker-ref.d.ts +0 -12
  280. package/dist/src/package/components/FileViewer/FileViewer.vue.d.ts +0 -75
  281. package/dist/src/package/components/FileViewer/exportDocumentTemplate.d.ts +0 -9
  282. package/dist/src/package/components/FileViewer/hooks/useViewerDocumentFeatures.d.ts +0 -29
  283. package/dist/src/package/components/FileViewer/hooks/useViewerExport.d.ts +0 -21
  284. package/dist/src/package/components/FileViewer/hooks/useViewerWatermark.d.ts +0 -8
  285. package/dist/src/package/components/FileViewer/hooks/useViewerZoom.d.ts +0 -34
  286. package/dist/src/package/components/FileViewer/index.d.ts +0 -2
  287. package/dist/src/package/components/FileViewer/util.d.ts +0 -3
  288. package/dist/src/package/index.d.ts +0 -22
  289. package/dist/src/package/use/documentLocation.d.ts +0 -15
  290. package/dist/src/package/use/documentSearch.d.ts +0 -234
  291. package/dist/src/package/use/index.d.ts +0 -5
  292. package/dist/src/package/use/loading.d.ts +0 -33
  293. package/dist/src/package/use/viewerZoom.d.ts +0 -42
  294. package/dist/src/package/use/worker.d.ts +0 -24
  295. package/dist/src/package/vendors/archive/ArchiveViewer.vue.d.ts +0 -9
  296. package/dist/src/package/vendors/archive/cache.d.ts +0 -10
  297. package/dist/src/package/vendors/archive/fallback.d.ts +0 -9
  298. package/dist/src/package/vendors/archive/index.d.ts +0 -3
  299. package/dist/src/package/vendors/archive/shared.d.ts +0 -24
  300. package/dist/src/package/vendors/audio/AudioViewer.vue.d.ts +0 -7
  301. package/dist/src/package/vendors/audio/index.d.ts +0 -7
  302. package/dist/src/package/vendors/cad/CadViewer.vue.d.ts +0 -9
  303. package/dist/src/package/vendors/cad/index.d.ts +0 -8
  304. package/dist/src/package/vendors/drawing/DrawingViewer.vue.d.ts +0 -15
  305. package/dist/src/package/vendors/drawing/index.d.ts +0 -7
  306. package/dist/src/package/vendors/ebook/EpubViewer.vue.d.ts +0 -6
  307. package/dist/src/package/vendors/ebook/index.d.ts +0 -7
  308. package/dist/src/package/vendors/eda/EdaViewer.vue.d.ts +0 -8
  309. package/dist/src/package/vendors/eda/index.d.ts +0 -2
  310. package/dist/src/package/vendors/eda/parser.d.ts +0 -77
  311. package/dist/src/package/vendors/email/EmailViewer.vue.d.ts +0 -10
  312. package/dist/src/package/vendors/email/index.d.ts +0 -2
  313. package/dist/src/package/vendors/image/ImageViewer.vue.d.ts +0 -6
  314. package/dist/src/package/vendors/image/index.d.ts +0 -4
  315. package/dist/src/package/vendors/md/MarkdownViewer.vue.d.ts +0 -6
  316. package/dist/src/package/vendors/md/index.d.ts +0 -4
  317. package/dist/src/package/vendors/model/ModelViewer.vue.d.ts +0 -8
  318. package/dist/src/package/vendors/model/index.d.ts +0 -3
  319. package/dist/src/package/vendors/model/shared.d.ts +0 -1
  320. package/dist/src/package/vendors/mp4/index.d.ts +0 -4
  321. package/dist/src/package/vendors/nestedRender.d.ts +0 -10
  322. package/dist/src/package/vendors/ofd/OfdViewer.vue.d.ts +0 -6
  323. package/dist/src/package/vendors/ofd/index.d.ts +0 -7
  324. package/dist/src/package/vendors/pdf/PdfView.vue.d.ts +0 -10
  325. package/dist/src/package/vendors/pdf/index.d.ts +0 -2
  326. package/dist/src/package/vendors/pdf/worker/index.d.ts +0 -4
  327. package/dist/src/package/vendors/pdf/worker/pdf.worker.d.ts +0 -0
  328. package/dist/src/package/vendors/pptx/PptxRender.vue.d.ts +0 -9
  329. package/dist/src/package/vendors/pptx/index.d.ts +0 -6
  330. package/dist/src/package/vendors/pptx/options.d.ts +0 -39
  331. package/dist/src/package/vendors/pptx/support/chart.d.ts +0 -4
  332. package/dist/src/package/vendors/pptx/worker/index.d.ts +0 -4
  333. package/dist/src/package/vendors/renders.d.ts +0 -3
  334. package/dist/src/package/vendors/text/CodeViewer.vue.d.ts +0 -7
  335. package/dist/src/package/vendors/text/index.d.ts +0 -10
  336. package/dist/src/package/vendors/typst/TypstViewer.vue.d.ts +0 -15
  337. package/dist/src/package/vendors/typst/index.d.ts +0 -8
  338. package/dist/src/package/vendors/umd/UmdViewer.vue.d.ts +0 -6
  339. package/dist/src/package/vendors/umd/index.d.ts +0 -7
  340. package/dist/src/package/vendors/umd/parser.d.ts +0 -30
  341. package/dist/src/package/vendors/word/doc.d.ts +0 -5
  342. package/dist/src/package/vendors/word/docx.d.ts +0 -5
  343. package/dist/src/package/vendors/word/docx.worker.d.ts +0 -1
  344. package/dist/src/package/vendors/word/index.d.ts +0 -3
  345. package/dist/src/package/vendors/xlsx/XlsxTable.state.d.ts +0 -80
  346. package/dist/src/package/vendors/xlsx/XlsxTable.view.d.ts +0 -25
  347. package/dist/src/package/vendors/xlsx/XlsxTable.vue.d.ts +0 -6
  348. package/dist/src/package/vendors/xlsx/index.d.ts +0 -6
  349. package/dist/src/package/vendors/xlsx/util.d.ts +0 -3
  350. package/dist/src/package/vendors/xlsx/worker/index.d.ts +0 -4
  351. package/dist/src/package/vendors/xlsx/worker/sheetjs/SheetJsModel.d.ts +0 -73
  352. package/dist/src/package/vendors/xlsx/worker/sheetjs/color.d.ts +0 -2
  353. package/dist/src/package/vendors/xlsx/worker/sheetjs/index.d.ts +0 -4
  354. package/dist/src/package/vendors/xlsx/worker/sheetjs/sheet.worker.d.ts +0 -1
  355. package/dist/style.css +0 -1
  356. package/dist/wasm/cad/dwfv-render.wasm +0 -0
  357. package/dist/wasm/cad/dwg-worker.js +0 -24
  358. package/dist/wasm/cad/libredwg-web.js +0 -15
  359. package/dist/wasm/cad/libredwg-web.wasm +0 -0
@@ -1,1711 +0,0 @@
1
- import { n as e, t } from "./asyncToGenerator.js";
2
- //#region node_modules/.pnpm/@myriaddreamin+typst-ts-renderer@0.7.0/node_modules/@myriaddreamin/typst-ts-renderer/pkg/typst_ts_renderer.mjs
3
- e();
4
- var n;
5
- function r(e) {
6
- x === b.length && b.push(b.length + 1);
7
- let t = x;
8
- if (x = b[t], typeof x != "number") throw Error("corrupt heap");
9
- return b[t] = e, t;
10
- }
11
- function i(e) {
12
- if (typeof e != "boolean") throw Error(`expected a boolean argument, found ${typeof e}`);
13
- }
14
- function a(e, t) {
15
- if (!(e instanceof t)) throw Error(`expected instance of ${t.name}`);
16
- }
17
- function o(e) {
18
- if (typeof e != "number") throw Error(`expected a number argument, found ${typeof e}`);
19
- }
20
- var s = typeof FinalizationRegistry > "u" ? {
21
- register: () => {},
22
- unregister: () => {}
23
- } : new FinalizationRegistry((e) => e.dtor(e.a, e.b));
24
- function c(e) {
25
- let t = typeof e;
26
- if (t == "number" || t == "boolean" || e == null) return `${e}`;
27
- if (t == "string") return `"${e}"`;
28
- if (t == "symbol") {
29
- let t = e.description;
30
- return t == null ? "Symbol" : `Symbol(${t})`;
31
- }
32
- if (t == "function") {
33
- let t = e.name;
34
- return typeof t == "string" && t.length > 0 ? `Function(${t})` : "Function";
35
- }
36
- if (Array.isArray(e)) {
37
- let t = e.length, n = "[";
38
- t > 0 && (n += c(e[0]));
39
- for (let r = 1; r < t; r++) n += ", " + c(e[r]);
40
- return n += "]", n;
41
- }
42
- let n = /\[object ([^\]]+)\]/.exec(toString.call(e)), r;
43
- if (n && n.length > 1) r = n[1];
44
- else return toString.call(e);
45
- if (r == "Object") try {
46
- return "Object(" + JSON.stringify(e) + ")";
47
- } catch (e) {
48
- return "Object";
49
- }
50
- return e instanceof Error ? `${e.name}: ${e.message}\n${e.stack}` : r;
51
- }
52
- function l(e) {
53
- e < 132 || (b[e] = x, x = e);
54
- }
55
- function u(e, t) {
56
- return e >>>= 0, _().subarray(e / 1, e / 1 + t);
57
- }
58
- var d = null;
59
- function f() {
60
- return (d === null || d.buffer.detached === !0 || d.buffer.detached === void 0 && d.buffer !== n.memory.buffer) && (d = new DataView(n.memory.buffer)), d;
61
- }
62
- function p(e, t) {
63
- return e >>>= 0, ae(e, t);
64
- }
65
- var m = null;
66
- function h() {
67
- return (m === null || m.byteLength === 0) && (m = new Uint32Array(n.memory.buffer)), m;
68
- }
69
- var g = null;
70
- function _() {
71
- return (g === null || g.byteLength === 0) && (g = new Uint8Array(n.memory.buffer)), g;
72
- }
73
- function v(e) {
74
- return b[e];
75
- }
76
- function y(e, t) {
77
- try {
78
- return e.apply(this, t);
79
- } catch (e) {
80
- n.__wbindgen_export3(r(e));
81
- }
82
- }
83
- var b = Array(128).fill(void 0);
84
- b.push(void 0, null, !0, !1);
85
- var x = b.length;
86
- function S(e) {
87
- return e == null;
88
- }
89
- function C(e, t) {
90
- try {
91
- return e.apply(this, t);
92
- } catch (e) {
93
- let t = function() {
94
- try {
95
- return e instanceof Error ? `${e.message}\n\nStack:\n${e.stack}` : e.toString();
96
- } catch (e) {
97
- return "<failed to stringify thrown value>";
98
- }
99
- }();
100
- throw console.error("wasm-bindgen: imported JS function that was not marked as `catch` threw an error:", t), e;
101
- }
102
- }
103
- function ee(e, t, n, r) {
104
- let i = {
105
- a: e,
106
- b: t,
107
- cnt: 1,
108
- dtor: n
109
- }, a = (...e) => {
110
- i.cnt++;
111
- try {
112
- return r(i.a, i.b, ...e);
113
- } finally {
114
- a._wbg_cb_unref();
115
- }
116
- };
117
- return a._wbg_cb_unref = () => {
118
- --i.cnt === 0 && (i.dtor(i.a, i.b), i.a = 0, s.unregister(i));
119
- }, s.register(a, i, i), a;
120
- }
121
- function te(e, t, n, r) {
122
- let i = {
123
- a: e,
124
- b: t,
125
- cnt: 1,
126
- dtor: n
127
- }, a = (...e) => {
128
- i.cnt++;
129
- let t = i.a;
130
- i.a = 0;
131
- try {
132
- return r(t, i.b, ...e);
133
- } finally {
134
- i.a = t, a._wbg_cb_unref();
135
- }
136
- };
137
- return a._wbg_cb_unref = () => {
138
- --i.cnt === 0 && (i.dtor(i.a, i.b), i.a = 0, s.unregister(i));
139
- }, s.register(a, i, i), a;
140
- }
141
- function ne(e, t) {
142
- let n = t(e.length * 4, 4) >>> 0;
143
- return h().set(e, n / 4), A = e.length, n;
144
- }
145
- function w(e, t) {
146
- let n = t(e.length * 1, 1) >>> 0;
147
- return _().set(e, n / 1), A = e.length, n;
148
- }
149
- function re(e, t) {
150
- let n = t(e.length * 4, 4) >>> 0, i = f();
151
- for (let t = 0; t < e.length; t++) i.setUint32(n + 4 * t, r(e[t]), !0);
152
- return A = e.length, n;
153
- }
154
- function T(e, t, n) {
155
- if (typeof e != "string") throw Error(`expected a string argument, found ${typeof e}`);
156
- if (n === void 0) {
157
- let n = k.encode(e), r = t(n.length, 1) >>> 0;
158
- return _().subarray(r, r + n.length).set(n), A = n.length, r;
159
- }
160
- let r = e.length, i = t(r, 1) >>> 0, a = _(), o = 0;
161
- for (; o < r; o++) {
162
- let t = e.charCodeAt(o);
163
- if (t > 127) break;
164
- a[i + o] = t;
165
- }
166
- if (o !== r) {
167
- o !== 0 && (e = e.slice(o)), i = n(i, r, r = o + e.length * 3, 1) >>> 0;
168
- let t = _().subarray(i + o, i + r), a = k.encodeInto(e, t);
169
- if (a.read !== e.length) throw Error("failed to pass whole string");
170
- o += a.written, i = n(i, r, o, 1) >>> 0;
171
- }
172
- return A = o, i;
173
- }
174
- function E(e) {
175
- let t = v(e);
176
- return l(e), t;
177
- }
178
- var D = new TextDecoder("utf-8", {
179
- ignoreBOM: !0,
180
- fatal: !0
181
- });
182
- D.decode();
183
- var ie = 2146435072, O = 0;
184
- function ae(e, t) {
185
- return O += t, O >= ie && (D = new TextDecoder("utf-8", {
186
- ignoreBOM: !0,
187
- fatal: !0
188
- }), D.decode(), O = t), D.decode(_().subarray(e, e + t));
189
- }
190
- var k = new TextEncoder();
191
- "encodeInto" in k || (k.encodeInto = function(e, t) {
192
- let n = k.encode(e);
193
- return t.set(n), {
194
- read: e.length,
195
- written: n.length
196
- };
197
- });
198
- var A = 0;
199
- function oe(e, t, i) {
200
- o(e), o(t), n.__wasm_bindgen_func_elem_1056(e, t, r(i));
201
- }
202
- function se(e, t) {
203
- o(e), o(t), n.__wasm_bindgen_func_elem_1035(e, t);
204
- }
205
- function ce(e, t, i) {
206
- o(e), o(t), n.__wasm_bindgen_func_elem_1034(e, t, r(i));
207
- }
208
- function le(e, t, i, a) {
209
- o(e), o(t), n.__wasm_bindgen_func_elem_3555(e, t, r(i), r(a));
210
- }
211
- var j = ["nonzero", "evenodd"], M = typeof FinalizationRegistry > "u" ? {
212
- register: () => {},
213
- unregister: () => {}
214
- } : new FinalizationRegistry((e) => n.__wbg_createsessionoptions_free(e >>> 0, 1)), N = typeof FinalizationRegistry > "u" ? {
215
- register: () => {},
216
- unregister: () => {}
217
- } : new FinalizationRegistry((e) => n.__wbg_incrdomdocclient_free(e >>> 0, 1)), P = typeof FinalizationRegistry > "u" ? {
218
- register: () => {},
219
- unregister: () => {}
220
- } : new FinalizationRegistry((e) => n.__wbg_pageinfo_free(e >>> 0, 1)), F = typeof FinalizationRegistry > "u" ? {
221
- register: () => {},
222
- unregister: () => {}
223
- } : new FinalizationRegistry((e) => n.__wbg_pagesinfo_free(e >>> 0, 1)), I = typeof FinalizationRegistry > "u" ? {
224
- register: () => {},
225
- unregister: () => {}
226
- } : new FinalizationRegistry((e) => n.__wbg_renderpageimageoptions_free(e >>> 0, 1)), L = typeof FinalizationRegistry > "u" ? {
227
- register: () => {},
228
- unregister: () => {}
229
- } : new FinalizationRegistry((e) => n.__wbg_rendersession_free(e >>> 0, 1)), R = typeof FinalizationRegistry > "u" ? {
230
- register: () => {},
231
- unregister: () => {}
232
- } : new FinalizationRegistry((e) => n.__wbg_rendersessionoptions_free(e >>> 0, 1)), z = typeof FinalizationRegistry > "u" ? {
233
- register: () => {},
234
- unregister: () => {}
235
- } : new FinalizationRegistry((e) => n.__wbg_typstrenderer_free(e >>> 0, 1)), ue = typeof FinalizationRegistry > "u" ? {
236
- register: () => {},
237
- unregister: () => {}
238
- } : new FinalizationRegistry((e) => n.__wbg_typstrendererbuilder_free(e >>> 0, 1)), de = typeof FinalizationRegistry > "u" ? {
239
- register: () => {},
240
- unregister: () => {}
241
- } : new FinalizationRegistry((e) => n.__wbg_typstworker_free(e >>> 0, 1)), fe = typeof FinalizationRegistry > "u" ? {
242
- register: () => {},
243
- unregister: () => {}
244
- } : new FinalizationRegistry((e) => n.__wbg_workerbridge_free(e >>> 0, 1)), B = class {
245
- __destroy_into_raw() {
246
- let e = this.__wbg_ptr;
247
- return this.__wbg_ptr = 0, M.unregister(this), e;
248
- }
249
- free() {
250
- let e = this.__destroy_into_raw();
251
- n.__wbg_createsessionoptions_free(e, 0);
252
- }
253
- constructor() {
254
- let e = n.createsessionoptions_new();
255
- return this.__wbg_ptr = e >>> 0, M.register(this, this.__wbg_ptr, this), this;
256
- }
257
- set format(e) {
258
- if (this.__wbg_ptr == 0) throw Error("Attempt to use a moved value");
259
- o(this.__wbg_ptr);
260
- let t = T(e, n.__wbindgen_export, n.__wbindgen_export2), r = A;
261
- n.createsessionoptions_set_format(this.__wbg_ptr, t, r);
262
- }
263
- set artifact_content(e) {
264
- if (this.__wbg_ptr == 0) throw Error("Attempt to use a moved value");
265
- o(this.__wbg_ptr);
266
- let t = w(e, n.__wbindgen_export), r = A;
267
- n.createsessionoptions_set_artifact_content(this.__wbg_ptr, t, r);
268
- }
269
- };
270
- Symbol.dispose && (B.prototype[Symbol.dispose] = B.prototype.free);
271
- var V = class e {
272
- constructor() {
273
- throw Error("cannot invoke `new` directly");
274
- }
275
- static __wrap(t) {
276
- t >>>= 0;
277
- let n = Object.create(e.prototype);
278
- return n.__wbg_ptr = t, N.register(n, n.__wbg_ptr, n), n;
279
- }
280
- __destroy_into_raw() {
281
- let e = this.__wbg_ptr;
282
- return this.__wbg_ptr = 0, N.unregister(this), e;
283
- }
284
- free() {
285
- let e = this.__destroy_into_raw();
286
- n.__wbg_incrdomdocclient_free(e, 0);
287
- }
288
- bind_functions(e) {
289
- if (this.__wbg_ptr == 0) throw Error("Attempt to use a moved value");
290
- o(this.__wbg_ptr), n.incrdomdocclient_bind_functions(this.__wbg_ptr, r(e));
291
- }
292
- relayout(e, t, r, i) {
293
- if (this.__wbg_ptr == 0) throw Error("Attempt to use a moved value");
294
- return o(this.__wbg_ptr), E(n.incrdomdocclient_relayout(this.__wbg_ptr, e, t, r, i));
295
- }
296
- need_repaint(e, t, r, i, a, s) {
297
- try {
298
- if (this.__wbg_ptr == 0) throw Error("Attempt to use a moved value");
299
- let u = n.__wbindgen_add_to_stack_pointer(-16);
300
- o(this.__wbg_ptr), o(e), o(s), n.incrdomdocclient_need_repaint(u, this.__wbg_ptr, e, t, r, i, a, s);
301
- var c = f().getInt32(u + 0, !0), l = f().getInt32(u + 4, !0);
302
- if (f().getInt32(u + 8, !0)) throw E(l);
303
- return c !== 0;
304
- } finally {
305
- n.__wbindgen_add_to_stack_pointer(16);
306
- }
307
- }
308
- repaint(e, t, r, i, a, s) {
309
- try {
310
- if (this.__wbg_ptr == 0) throw Error("Attempt to use a moved value");
311
- let u = n.__wbindgen_add_to_stack_pointer(-16);
312
- o(this.__wbg_ptr), o(e), o(s), n.incrdomdocclient_repaint(u, this.__wbg_ptr, e, t, r, i, a, s);
313
- var c = f().getInt32(u + 0, !0), l = f().getInt32(u + 4, !0);
314
- if (f().getInt32(u + 8, !0)) throw E(l);
315
- return E(c);
316
- } finally {
317
- n.__wbindgen_add_to_stack_pointer(16);
318
- }
319
- }
320
- };
321
- Symbol.dispose && (V.prototype[Symbol.dispose] = V.prototype.free);
322
- var H = class e {
323
- constructor() {
324
- throw Error("cannot invoke `new` directly");
325
- }
326
- static __wrap(t) {
327
- t >>>= 0;
328
- let n = Object.create(e.prototype);
329
- return n.__wbg_ptr = t, P.register(n, n.__wbg_ptr, n), n;
330
- }
331
- __destroy_into_raw() {
332
- let e = this.__wbg_ptr;
333
- return this.__wbg_ptr = 0, P.unregister(this), e;
334
- }
335
- free() {
336
- let e = this.__destroy_into_raw();
337
- n.__wbg_pageinfo_free(e, 0);
338
- }
339
- get page_off() {
340
- if (this.__wbg_ptr == 0) throw Error("Attempt to use a moved value");
341
- return o(this.__wbg_ptr), n.pageinfo_page_off(this.__wbg_ptr) >>> 0;
342
- }
343
- get width_pt() {
344
- if (this.__wbg_ptr == 0) throw Error("Attempt to use a moved value");
345
- return o(this.__wbg_ptr), n.pageinfo_width_pt(this.__wbg_ptr);
346
- }
347
- get height_pt() {
348
- if (this.__wbg_ptr == 0) throw Error("Attempt to use a moved value");
349
- return o(this.__wbg_ptr), n.pageinfo_height_pt(this.__wbg_ptr);
350
- }
351
- };
352
- Symbol.dispose && (H.prototype[Symbol.dispose] = H.prototype.free);
353
- var U = class e {
354
- constructor() {
355
- throw Error("cannot invoke `new` directly");
356
- }
357
- static __wrap(t) {
358
- t >>>= 0;
359
- let n = Object.create(e.prototype);
360
- return n.__wbg_ptr = t, F.register(n, n.__wbg_ptr, n), n;
361
- }
362
- __destroy_into_raw() {
363
- let e = this.__wbg_ptr;
364
- return this.__wbg_ptr = 0, F.unregister(this), e;
365
- }
366
- free() {
367
- let e = this.__destroy_into_raw();
368
- n.__wbg_pagesinfo_free(e, 0);
369
- }
370
- get page_count() {
371
- if (this.__wbg_ptr == 0) throw Error("Attempt to use a moved value");
372
- return o(this.__wbg_ptr), n.pagesinfo_page_count(this.__wbg_ptr) >>> 0;
373
- }
374
- page_by_number(e) {
375
- if (this.__wbg_ptr == 0) throw Error("Attempt to use a moved value");
376
- o(this.__wbg_ptr), o(e);
377
- let t = n.pagesinfo_page_by_number(this.__wbg_ptr, e);
378
- return t === 0 ? void 0 : H.__wrap(t);
379
- }
380
- page(e) {
381
- if (this.__wbg_ptr == 0) throw Error("Attempt to use a moved value");
382
- o(this.__wbg_ptr), o(e);
383
- let t = n.pagesinfo_page(this.__wbg_ptr, e);
384
- return H.__wrap(t);
385
- }
386
- width() {
387
- if (this.__wbg_ptr == 0) throw Error("Attempt to use a moved value");
388
- return o(this.__wbg_ptr), n.pagesinfo_width(this.__wbg_ptr);
389
- }
390
- height() {
391
- if (this.__wbg_ptr == 0) throw Error("Attempt to use a moved value");
392
- return o(this.__wbg_ptr), n.pagesinfo_height(this.__wbg_ptr);
393
- }
394
- };
395
- Symbol.dispose && (U.prototype[Symbol.dispose] = U.prototype.free);
396
- var W = class e {
397
- static __unwrap(t) {
398
- return t instanceof e ? t.__destroy_into_raw() : 0;
399
- }
400
- __destroy_into_raw() {
401
- let e = this.__wbg_ptr;
402
- return this.__wbg_ptr = 0, I.unregister(this), e;
403
- }
404
- free() {
405
- let e = this.__destroy_into_raw();
406
- n.__wbg_renderpageimageoptions_free(e, 0);
407
- }
408
- constructor() {
409
- let e = n.renderpageimageoptions_new();
410
- return this.__wbg_ptr = e >>> 0, I.register(this, this.__wbg_ptr, this), this;
411
- }
412
- get pixel_per_pt() {
413
- if (this.__wbg_ptr == 0) throw Error("Attempt to use a moved value");
414
- o(this.__wbg_ptr);
415
- let e = n.renderpageimageoptions_pixel_per_pt(this.__wbg_ptr);
416
- return e === 4294967297 ? void 0 : e;
417
- }
418
- set pixel_per_pt(e) {
419
- if (this.__wbg_ptr == 0) throw Error("Attempt to use a moved value");
420
- o(this.__wbg_ptr), S(e) || o(e), n.renderpageimageoptions_set_pixel_per_pt(this.__wbg_ptr, S(e) ? 4294967297 : Math.fround(e));
421
- }
422
- get background_color() {
423
- try {
424
- if (this.__wbg_ptr == 0) throw Error("Attempt to use a moved value");
425
- let r = n.__wbindgen_add_to_stack_pointer(-16);
426
- o(this.__wbg_ptr), n.renderpageimageoptions_background_color(r, this.__wbg_ptr);
427
- var e = f().getInt32(r + 0, !0), t = f().getInt32(r + 4, !0);
428
- let i;
429
- return e !== 0 && (i = p(e, t).slice(), n.__wbindgen_export4(e, t * 1, 1)), i;
430
- } finally {
431
- n.__wbindgen_add_to_stack_pointer(16);
432
- }
433
- }
434
- set background_color(e) {
435
- if (this.__wbg_ptr == 0) throw Error("Attempt to use a moved value");
436
- o(this.__wbg_ptr);
437
- var t = S(e) ? 0 : T(e, n.__wbindgen_export, n.__wbindgen_export2), r = A;
438
- n.renderpageimageoptions_set_background_color(this.__wbg_ptr, t, r);
439
- }
440
- get page_off() {
441
- if (this.__wbg_ptr == 0) throw Error("Attempt to use a moved value");
442
- return o(this.__wbg_ptr), n.renderpageimageoptions_page_off(this.__wbg_ptr) >>> 0;
443
- }
444
- set page_off(e) {
445
- if (this.__wbg_ptr == 0) throw Error("Attempt to use a moved value");
446
- o(this.__wbg_ptr), o(e), n.renderpageimageoptions_set_page_off(this.__wbg_ptr, e);
447
- }
448
- get cache_key() {
449
- try {
450
- if (this.__wbg_ptr == 0) throw Error("Attempt to use a moved value");
451
- let r = n.__wbindgen_add_to_stack_pointer(-16);
452
- o(this.__wbg_ptr), n.renderpageimageoptions_cache_key(r, this.__wbg_ptr);
453
- var e = f().getInt32(r + 0, !0), t = f().getInt32(r + 4, !0);
454
- let i;
455
- return e !== 0 && (i = p(e, t).slice(), n.__wbindgen_export4(e, t * 1, 1)), i;
456
- } finally {
457
- n.__wbindgen_add_to_stack_pointer(16);
458
- }
459
- }
460
- set cache_key(e) {
461
- if (this.__wbg_ptr == 0) throw Error("Attempt to use a moved value");
462
- o(this.__wbg_ptr);
463
- var t = S(e) ? 0 : T(e, n.__wbindgen_export, n.__wbindgen_export2), r = A;
464
- n.renderpageimageoptions_set_cache_key(this.__wbg_ptr, t, r);
465
- }
466
- get data_selection() {
467
- if (this.__wbg_ptr == 0) throw Error("Attempt to use a moved value");
468
- o(this.__wbg_ptr);
469
- let e = n.renderpageimageoptions_data_selection(this.__wbg_ptr);
470
- return e === 4294967297 ? void 0 : e;
471
- }
472
- set data_selection(e) {
473
- if (this.__wbg_ptr == 0) throw Error("Attempt to use a moved value");
474
- o(this.__wbg_ptr), S(e) || o(e), n.renderpageimageoptions_set_data_selection(this.__wbg_ptr, S(e) ? 4294967297 : e >>> 0);
475
- }
476
- };
477
- Symbol.dispose && (W.prototype[Symbol.dispose] = W.prototype.free);
478
- var G = class e {
479
- constructor() {
480
- throw Error("cannot invoke `new` directly");
481
- }
482
- static __wrap(t) {
483
- t >>>= 0;
484
- let n = Object.create(e.prototype);
485
- return n.__wbg_ptr = t, L.register(n, n.__wbg_ptr, n), n;
486
- }
487
- __destroy_into_raw() {
488
- let e = this.__wbg_ptr;
489
- return this.__wbg_ptr = 0, L.unregister(this), e;
490
- }
491
- free() {
492
- let e = this.__destroy_into_raw();
493
- n.__wbg_rendersession_free(e, 0);
494
- }
495
- render_in_window(e, t, r, i) {
496
- let a, s;
497
- try {
498
- if (this.__wbg_ptr == 0) throw Error("Attempt to use a moved value");
499
- let u = n.__wbindgen_add_to_stack_pointer(-16);
500
- o(this.__wbg_ptr), n.rendersession_render_in_window(u, this.__wbg_ptr, e, t, r, i);
501
- var c = f().getInt32(u + 0, !0), l = f().getInt32(u + 4, !0);
502
- return a = c, s = l, p(c, l);
503
- } finally {
504
- n.__wbindgen_add_to_stack_pointer(16), n.__wbindgen_export4(a, s, 1);
505
- }
506
- }
507
- get pixel_per_pt() {
508
- if (this.__wbg_ptr == 0) throw Error("Attempt to use a moved value");
509
- o(this.__wbg_ptr);
510
- let e = n.rendersession_pixel_per_pt(this.__wbg_ptr);
511
- return e === 4294967297 ? void 0 : e;
512
- }
513
- set pixel_per_pt(e) {
514
- if (this.__wbg_ptr == 0) throw Error("Attempt to use a moved value");
515
- o(this.__wbg_ptr), S(e) || o(e), n.rendersession_set_pixel_per_pt(this.__wbg_ptr, S(e) ? 4294967297 : Math.fround(e));
516
- }
517
- get background_color() {
518
- try {
519
- if (this.__wbg_ptr == 0) throw Error("Attempt to use a moved value");
520
- let r = n.__wbindgen_add_to_stack_pointer(-16);
521
- o(this.__wbg_ptr), n.rendersession_background_color(r, this.__wbg_ptr);
522
- var e = f().getInt32(r + 0, !0), t = f().getInt32(r + 4, !0);
523
- let i;
524
- return e !== 0 && (i = p(e, t).slice(), n.__wbindgen_export4(e, t * 1, 1)), i;
525
- } finally {
526
- n.__wbindgen_add_to_stack_pointer(16);
527
- }
528
- }
529
- set background_color(e) {
530
- if (this.__wbg_ptr == 0) throw Error("Attempt to use a moved value");
531
- o(this.__wbg_ptr);
532
- var t = S(e) ? 0 : T(e, n.__wbindgen_export, n.__wbindgen_export2), r = A;
533
- n.rendersession_set_background_color(this.__wbg_ptr, t, r);
534
- }
535
- get pages_info() {
536
- if (this.__wbg_ptr == 0) throw Error("Attempt to use a moved value");
537
- o(this.__wbg_ptr);
538
- let e = n.rendersession_pages_info(this.__wbg_ptr);
539
- return U.__wrap(e);
540
- }
541
- get doc_width() {
542
- if (this.__wbg_ptr == 0) throw Error("Attempt to use a moved value");
543
- return o(this.__wbg_ptr), n.rendersession_doc_width(this.__wbg_ptr);
544
- }
545
- get doc_height() {
546
- if (this.__wbg_ptr == 0) throw Error("Attempt to use a moved value");
547
- return o(this.__wbg_ptr), n.rendersession_doc_height(this.__wbg_ptr);
548
- }
549
- source_span(e) {
550
- try {
551
- if (this.__wbg_ptr == 0) throw Error("Attempt to use a moved value");
552
- let a = n.__wbindgen_add_to_stack_pointer(-16);
553
- o(this.__wbg_ptr);
554
- let s = ne(e, n.__wbindgen_export), c = A;
555
- n.rendersession_source_span(a, this.__wbg_ptr, s, c);
556
- var t = f().getInt32(a + 0, !0), r = f().getInt32(a + 4, !0), i = f().getInt32(a + 8, !0);
557
- if (f().getInt32(a + 12, !0)) throw E(i);
558
- let l;
559
- return t !== 0 && (l = p(t, r).slice(), n.__wbindgen_export4(t, r * 1, 1)), l;
560
- } finally {
561
- n.__wbindgen_add_to_stack_pointer(16);
562
- }
563
- }
564
- };
565
- Symbol.dispose && (G.prototype[Symbol.dispose] = G.prototype.free);
566
- var K = class {
567
- __destroy_into_raw() {
568
- let e = this.__wbg_ptr;
569
- return this.__wbg_ptr = 0, R.unregister(this), e;
570
- }
571
- free() {
572
- let e = this.__destroy_into_raw();
573
- n.__wbg_rendersessionoptions_free(e, 0);
574
- }
575
- constructor() {
576
- let e = n.rendersessionoptions_new();
577
- return this.__wbg_ptr = e >>> 0, R.register(this, this.__wbg_ptr, this), this;
578
- }
579
- get pixel_per_pt() {
580
- if (this.__wbg_ptr == 0) throw Error("Attempt to use a moved value");
581
- o(this.__wbg_ptr);
582
- let e = n.rendersession_pixel_per_pt(this.__wbg_ptr);
583
- return e === 4294967297 ? void 0 : e;
584
- }
585
- set pixel_per_pt(e) {
586
- if (this.__wbg_ptr == 0) throw Error("Attempt to use a moved value");
587
- o(this.__wbg_ptr), S(e) || o(e), n.rendersession_set_pixel_per_pt(this.__wbg_ptr, S(e) ? 4294967297 : Math.fround(e));
588
- }
589
- get background_color() {
590
- try {
591
- if (this.__wbg_ptr == 0) throw Error("Attempt to use a moved value");
592
- let r = n.__wbindgen_add_to_stack_pointer(-16);
593
- o(this.__wbg_ptr), n.rendersessionoptions_background_color(r, this.__wbg_ptr);
594
- var e = f().getInt32(r + 0, !0), t = f().getInt32(r + 4, !0);
595
- let i;
596
- return e !== 0 && (i = p(e, t).slice(), n.__wbindgen_export4(e, t * 1, 1)), i;
597
- } finally {
598
- n.__wbindgen_add_to_stack_pointer(16);
599
- }
600
- }
601
- set background_color(e) {
602
- if (this.__wbg_ptr == 0) throw Error("Attempt to use a moved value");
603
- o(this.__wbg_ptr);
604
- var t = S(e) ? 0 : T(e, n.__wbindgen_export, n.__wbindgen_export2), r = A;
605
- n.rendersessionoptions_set_background_color(this.__wbg_ptr, t, r);
606
- }
607
- get format() {
608
- try {
609
- if (this.__wbg_ptr == 0) throw Error("Attempt to use a moved value");
610
- let r = n.__wbindgen_add_to_stack_pointer(-16);
611
- o(this.__wbg_ptr), n.rendersessionoptions_format(r, this.__wbg_ptr);
612
- var e = f().getInt32(r + 0, !0), t = f().getInt32(r + 4, !0);
613
- let i;
614
- return e !== 0 && (i = p(e, t).slice(), n.__wbindgen_export4(e, t * 1, 1)), i;
615
- } finally {
616
- n.__wbindgen_add_to_stack_pointer(16);
617
- }
618
- }
619
- set format(e) {
620
- if (this.__wbg_ptr == 0) throw Error("Attempt to use a moved value");
621
- o(this.__wbg_ptr);
622
- var t = S(e) ? 0 : T(e, n.__wbindgen_export, n.__wbindgen_export2), r = A;
623
- n.rendersessionoptions_set_format(this.__wbg_ptr, t, r);
624
- }
625
- };
626
- Symbol.dispose && (K.prototype[Symbol.dispose] = K.prototype.free);
627
- var q = class e {
628
- static __wrap(t) {
629
- t >>>= 0;
630
- let n = Object.create(e.prototype);
631
- return n.__wbg_ptr = t, z.register(n, n.__wbg_ptr, n), n;
632
- }
633
- __destroy_into_raw() {
634
- let e = this.__wbg_ptr;
635
- return this.__wbg_ptr = 0, z.unregister(this), e;
636
- }
637
- free() {
638
- let e = this.__destroy_into_raw();
639
- n.__wbg_typstrenderer_free(e, 0);
640
- }
641
- constructor() {
642
- let e = n.typstrenderer_new();
643
- return this.__wbg_ptr = e >>> 0, z.register(this, this.__wbg_ptr, this), this;
644
- }
645
- create_session(e) {
646
- try {
647
- if (this.__wbg_ptr == 0) throw Error("Attempt to use a moved value");
648
- let i = n.__wbindgen_add_to_stack_pointer(-16);
649
- o(this.__wbg_ptr);
650
- let s = 0;
651
- if (!S(e)) {
652
- if (a(e, B), e.__wbg_ptr === 0) throw Error("Attempt to use a moved value");
653
- s = e.__destroy_into_raw();
654
- }
655
- n.typstrenderer_create_session(i, this.__wbg_ptr, s);
656
- var t = f().getInt32(i + 0, !0), r = f().getInt32(i + 4, !0);
657
- if (f().getInt32(i + 8, !0)) throw E(r);
658
- return G.__wrap(t);
659
- } finally {
660
- n.__wbindgen_add_to_stack_pointer(16);
661
- }
662
- }
663
- reset(e) {
664
- try {
665
- if (this.__wbg_ptr == 0) throw Error("Attempt to use a moved value");
666
- let r = n.__wbindgen_add_to_stack_pointer(-16);
667
- if (o(this.__wbg_ptr), a(e, G), e.__wbg_ptr === 0) throw Error("Attempt to use a moved value");
668
- n.typstrenderer_reset(r, this.__wbg_ptr, e.__wbg_ptr);
669
- var t = f().getInt32(r + 0, !0);
670
- if (f().getInt32(r + 4, !0)) throw E(t);
671
- } finally {
672
- n.__wbindgen_add_to_stack_pointer(16);
673
- }
674
- }
675
- manipulate_data(e, t, r) {
676
- try {
677
- if (this.__wbg_ptr == 0) throw Error("Attempt to use a moved value");
678
- let s = n.__wbindgen_add_to_stack_pointer(-16);
679
- if (o(this.__wbg_ptr), a(e, G), e.__wbg_ptr === 0) throw Error("Attempt to use a moved value");
680
- let c = T(t, n.__wbindgen_export, n.__wbindgen_export2), l = A, u = w(r, n.__wbindgen_export), d = A;
681
- n.typstrenderer_manipulate_data(s, this.__wbg_ptr, e.__wbg_ptr, c, l, u, d);
682
- var i = f().getInt32(s + 0, !0);
683
- if (f().getInt32(s + 4, !0)) throw E(i);
684
- } finally {
685
- n.__wbindgen_add_to_stack_pointer(16);
686
- }
687
- }
688
- session_from_artifact(e, t) {
689
- try {
690
- if (this.__wbg_ptr == 0) throw Error("Attempt to use a moved value");
691
- let a = n.__wbindgen_add_to_stack_pointer(-16);
692
- o(this.__wbg_ptr);
693
- let s = w(e, n.__wbindgen_export), c = A, l = T(t, n.__wbindgen_export, n.__wbindgen_export2), u = A;
694
- n.typstrenderer_session_from_artifact(a, this.__wbg_ptr, s, c, l, u);
695
- var r = f().getInt32(a + 0, !0), i = f().getInt32(a + 4, !0);
696
- if (f().getInt32(a + 8, !0)) throw E(i);
697
- return G.__wrap(r);
698
- } finally {
699
- n.__wbindgen_add_to_stack_pointer(16);
700
- }
701
- }
702
- load_glyph_pack(e) {
703
- try {
704
- if (this.__wbg_ptr == 0) throw Error("Attempt to use a moved value");
705
- let i = n.__wbindgen_add_to_stack_pointer(-16);
706
- o(this.__wbg_ptr), n.typstrenderer_load_glyph_pack(i, this.__wbg_ptr, r(e));
707
- var t = f().getInt32(i + 0, !0);
708
- if (f().getInt32(i + 4, !0)) throw E(t);
709
- } finally {
710
- n.__wbindgen_add_to_stack_pointer(16);
711
- }
712
- }
713
- render_svg_diff(e, t, r, i, s) {
714
- let c, l;
715
- try {
716
- if (this.__wbg_ptr == 0) throw Error("Attempt to use a moved value");
717
- let m = n.__wbindgen_add_to_stack_pointer(-16);
718
- if (o(this.__wbg_ptr), a(e, G), e.__wbg_ptr === 0) throw Error("Attempt to use a moved value");
719
- n.typstrenderer_render_svg_diff(m, this.__wbg_ptr, e.__wbg_ptr, t, r, i, s);
720
- var u = f().getInt32(m + 0, !0), d = f().getInt32(m + 4, !0);
721
- return c = u, l = d, p(u, d);
722
- } finally {
723
- n.__wbindgen_add_to_stack_pointer(16), n.__wbindgen_export4(c, l, 1);
724
- }
725
- }
726
- svg_data(e, t) {
727
- let r, i;
728
- try {
729
- if (this.__wbg_ptr == 0) throw Error("Attempt to use a moved value");
730
- let h = n.__wbindgen_add_to_stack_pointer(-16);
731
- if (o(this.__wbg_ptr), a(e, G), e.__wbg_ptr === 0) throw Error("Attempt to use a moved value");
732
- S(t) || o(t), n.typstrenderer_svg_data(h, this.__wbg_ptr, e.__wbg_ptr, S(t) ? 4294967297 : t >>> 0);
733
- var s = f().getInt32(h + 0, !0), c = f().getInt32(h + 4, !0), l = f().getInt32(h + 8, !0), u = f().getInt32(h + 12, !0), d = s, m = c;
734
- if (u) throw d = 0, m = 0, E(l);
735
- return r = d, i = m, p(d, m);
736
- } finally {
737
- n.__wbindgen_add_to_stack_pointer(16), n.__wbindgen_export4(r, i, 1);
738
- }
739
- }
740
- get_customs(e) {
741
- if (this.__wbg_ptr == 0 || (o(this.__wbg_ptr), a(e, G), e.__wbg_ptr === 0)) throw Error("Attempt to use a moved value");
742
- return E(n.typstrenderer_get_customs(this.__wbg_ptr, e.__wbg_ptr));
743
- }
744
- render_svg(e, t) {
745
- try {
746
- if (this.__wbg_ptr == 0) throw Error("Attempt to use a moved value");
747
- let c = n.__wbindgen_add_to_stack_pointer(-16);
748
- if (o(this.__wbg_ptr), a(e, G), e.__wbg_ptr === 0) throw Error("Attempt to use a moved value");
749
- n.typstrenderer_render_svg(c, this.__wbg_ptr, e.__wbg_ptr, r(t));
750
- var i = f().getInt32(c + 0, !0), s = f().getInt32(c + 4, !0);
751
- if (f().getInt32(c + 8, !0)) throw E(s);
752
- return i !== 0;
753
- } finally {
754
- n.__wbindgen_add_to_stack_pointer(16);
755
- }
756
- }
757
- create_worker(e) {
758
- if (this.__wbg_ptr == 0) throw Error("Attempt to use a moved value");
759
- return o(this.__wbg_ptr), E(n.typstrenderer_create_worker(this.__wbg_ptr, r(e)));
760
- }
761
- create_worker_bridge() {
762
- try {
763
- if (this.__wbg_ptr == 0) throw Error("Attempt to use a moved value");
764
- let r = this.__destroy_into_raw(), i = n.__wbindgen_add_to_stack_pointer(-16);
765
- o(r), n.typstrenderer_create_worker_bridge(i, r);
766
- var e = f().getInt32(i + 0, !0), t = f().getInt32(i + 4, !0);
767
- if (f().getInt32(i + 8, !0)) throw E(t);
768
- return X.__wrap(e);
769
- } finally {
770
- n.__wbindgen_add_to_stack_pointer(16);
771
- }
772
- }
773
- render_page_to_canvas(e, t, i) {
774
- if (this.__wbg_ptr == 0 || (o(this.__wbg_ptr), a(e, G), e.__wbg_ptr === 0)) throw Error("Attempt to use a moved value");
775
- let s = 0;
776
- if (!S(i)) {
777
- if (a(i, W), i.__wbg_ptr === 0) throw Error("Attempt to use a moved value");
778
- s = i.__destroy_into_raw();
779
- }
780
- return E(n.typstrenderer_render_page_to_canvas(this.__wbg_ptr, e.__wbg_ptr, r(t), s));
781
- }
782
- mount_dom(e, t) {
783
- if (this.__wbg_ptr == 0 || (o(this.__wbg_ptr), a(e, G), e.__wbg_ptr === 0)) throw Error("Attempt to use a moved value");
784
- return E(n.typstrenderer_mount_dom(this.__wbg_ptr, e.__wbg_ptr, r(t)));
785
- }
786
- };
787
- Symbol.dispose && (q.prototype[Symbol.dispose] = q.prototype.free);
788
- var J = class {
789
- __destroy_into_raw() {
790
- let e = this.__wbg_ptr;
791
- return this.__wbg_ptr = 0, ue.unregister(this), e;
792
- }
793
- free() {
794
- let e = this.__destroy_into_raw();
795
- n.__wbg_typstrendererbuilder_free(e, 0);
796
- }
797
- constructor() {
798
- try {
799
- let r = n.__wbindgen_add_to_stack_pointer(-16);
800
- n.typstrendererbuilder_new(r);
801
- var e = f().getInt32(r + 0, !0), t = f().getInt32(r + 4, !0);
802
- if (f().getInt32(r + 8, !0)) throw E(t);
803
- return this.__wbg_ptr = e >>> 0, ue.register(this, this.__wbg_ptr, this), this;
804
- } finally {
805
- n.__wbindgen_add_to_stack_pointer(16);
806
- }
807
- }
808
- build() {
809
- if (this.__wbg_ptr == 0) throw Error("Attempt to use a moved value");
810
- let e = this.__destroy_into_raw();
811
- return o(e), E(n.typstrendererbuilder_build(e));
812
- }
813
- add_glyph_pack(e) {
814
- if (this.__wbg_ptr == 0) throw Error("Attempt to use a moved value");
815
- return o(this.__wbg_ptr), E(n.typstrendererbuilder_add_glyph_pack(this.__wbg_ptr, r(e)));
816
- }
817
- add_raw_font(e) {
818
- if (this.__wbg_ptr == 0) throw Error("Attempt to use a moved value");
819
- return o(this.__wbg_ptr), E(n.typstrendererbuilder_add_raw_font(this.__wbg_ptr, r(e)));
820
- }
821
- add_lazy_font(e, t) {
822
- if (this.__wbg_ptr == 0) throw Error("Attempt to use a moved value");
823
- return o(this.__wbg_ptr), E(n.typstrendererbuilder_add_lazy_font(this.__wbg_ptr, r(e), r(t)));
824
- }
825
- };
826
- Symbol.dispose && (J.prototype[Symbol.dispose] = J.prototype.free);
827
- var Y = class {
828
- constructor() {
829
- throw Error("cannot invoke `new` directly");
830
- }
831
- __destroy_into_raw() {
832
- let e = this.__wbg_ptr;
833
- return this.__wbg_ptr = 0, de.unregister(this), e;
834
- }
835
- free() {
836
- let e = this.__destroy_into_raw();
837
- n.__wbg_typstworker_free(e, 0);
838
- }
839
- manipulate_data(e, t) {
840
- try {
841
- if (this.__wbg_ptr == 0) throw Error("Attempt to use a moved value");
842
- let s = n.__wbindgen_add_to_stack_pointer(-16);
843
- o(this.__wbg_ptr);
844
- let c = T(e, n.__wbindgen_export, n.__wbindgen_export2), l = A;
845
- n.typstworker_manipulate_data(s, this.__wbg_ptr, c, l, r(t));
846
- var i = f().getInt32(s + 0, !0), a = f().getInt32(s + 4, !0);
847
- if (f().getInt32(s + 8, !0)) throw E(a);
848
- return E(i);
849
- } finally {
850
- n.__wbindgen_add_to_stack_pointer(16);
851
- }
852
- }
853
- get_pages_info() {
854
- if (this.__wbg_ptr == 0) throw Error("Attempt to use a moved value");
855
- return o(this.__wbg_ptr), E(n.typstworker_get_pages_info(this.__wbg_ptr));
856
- }
857
- render_canvas(e, t, r) {
858
- try {
859
- if (this.__wbg_ptr == 0) throw Error("Attempt to use a moved value");
860
- let s = n.__wbindgen_add_to_stack_pointer(-16);
861
- o(this.__wbg_ptr);
862
- let c = w(e, n.__wbindgen_export), l = A, u = re(t, n.__wbindgen_export), d = A, p = re(r, n.__wbindgen_export), m = A;
863
- n.typstworker_render_canvas(s, this.__wbg_ptr, c, l, u, d, p, m);
864
- var i = f().getInt32(s + 0, !0), a = f().getInt32(s + 4, !0);
865
- if (f().getInt32(s + 8, !0)) throw E(a);
866
- return E(i);
867
- } finally {
868
- n.__wbindgen_add_to_stack_pointer(16);
869
- }
870
- }
871
- };
872
- Symbol.dispose && (Y.prototype[Symbol.dispose] = Y.prototype.free);
873
- var X = class e {
874
- constructor() {
875
- throw Error("cannot invoke `new` directly");
876
- }
877
- static __wrap(t) {
878
- t >>>= 0;
879
- let n = Object.create(e.prototype);
880
- return n.__wbg_ptr = t, fe.register(n, n.__wbg_ptr, n), n;
881
- }
882
- __destroy_into_raw() {
883
- let e = this.__wbg_ptr;
884
- return this.__wbg_ptr = 0, fe.unregister(this), e;
885
- }
886
- free() {
887
- let e = this.__destroy_into_raw();
888
- n.__wbg_workerbridge_free(e, 0);
889
- }
890
- };
891
- Symbol.dispose && (X.prototype[Symbol.dispose] = X.prototype.free);
892
- function pe() {
893
- return E(n.renderer_build_info());
894
- }
895
- var me = new Set([
896
- "basic",
897
- "cors",
898
- "default"
899
- ]);
900
- function he(e, t) {
901
- return Z.apply(this, arguments);
902
- }
903
- function Z() {
904
- return Z = t(function* (e, t) {
905
- if (typeof Response == "function" && e instanceof Response) {
906
- if (typeof WebAssembly.instantiateStreaming == "function") try {
907
- return yield WebAssembly.instantiateStreaming(e, t);
908
- } catch (t) {
909
- if (e.ok && me.has(e.type) && e.headers.get("Content-Type") !== "application/wasm") console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve Wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n", t);
910
- else throw t;
911
- }
912
- let n = yield e.arrayBuffer();
913
- return yield WebAssembly.instantiate(n, t);
914
- } else {
915
- let n = yield WebAssembly.instantiate(e, t);
916
- return n instanceof WebAssembly.Instance ? {
917
- instance: n,
918
- module: e
919
- } : n;
920
- }
921
- }), Z.apply(this, arguments);
922
- }
923
- function ge() {
924
- let e = {};
925
- return e.wbg = {}, e.wbg.__wbg___wbindgen_debug_string_adfb662ae34724b6 = function(e, t) {
926
- let r = T(c(v(t)), n.__wbindgen_export, n.__wbindgen_export2), i = A;
927
- f().setInt32(e + 4, i, !0), f().setInt32(e + 0, r, !0);
928
- }, e.wbg.__wbg___wbindgen_is_function_8d400b8b1af978cd = function(e) {
929
- let t = typeof v(e) == "function";
930
- return i(t), t;
931
- }, e.wbg.__wbg___wbindgen_is_undefined_f6b95eab589e0269 = function(e) {
932
- let t = v(e) === void 0;
933
- return i(t), t;
934
- }, e.wbg.__wbg___wbindgen_jsval_eq_b6101cc9cef1fe36 = function(e, t) {
935
- let n = v(e) === v(t);
936
- return i(n), n;
937
- }, e.wbg.__wbg___wbindgen_string_get_a2a31e16edf96e42 = function(e, t) {
938
- let r = v(t), i = typeof r == "string" ? r : void 0;
939
- var a = S(i) ? 0 : T(i, n.__wbindgen_export, n.__wbindgen_export2), o = A;
940
- f().setInt32(e + 4, o, !0), f().setInt32(e + 0, a, !0);
941
- }, e.wbg.__wbg___wbindgen_throw_dd24417ed36fc46e = function(e, t) {
942
- throw Error(p(e, t));
943
- }, e.wbg.__wbg__wbg_cb_unref_87dfb5aaa0cbcea7 = function() {
944
- return C(function(e) {
945
- v(e)._wbg_cb_unref();
946
- }, arguments);
947
- }, e.wbg.__wbg_appendChild_7465eba84213c75f = function() {
948
- return y(function(e, t) {
949
- return r(v(e).appendChild(v(t)));
950
- }, arguments);
951
- }, e.wbg.__wbg_call_3020136f7a2d6e44 = function() {
952
- return y(function(e, t, n) {
953
- return r(v(e).call(v(t), v(n)));
954
- }, arguments);
955
- }, e.wbg.__wbg_call_78f94eb02ec7f9b2 = function() {
956
- return y(function(e, t, n, i, a) {
957
- return r(v(e).call(v(t), v(n), v(i), v(a)));
958
- }, arguments);
959
- }, e.wbg.__wbg_call_abb4ff46ce38be40 = function() {
960
- return y(function(e, t) {
961
- return r(v(e).call(v(t)));
962
- }, arguments);
963
- }, e.wbg.__wbg_call_c8baa5c5e72d274e = function() {
964
- return y(function(e, t, n, i) {
965
- return r(v(e).call(v(t), v(n), v(i)));
966
- }, arguments);
967
- }, e.wbg.__wbg_clearRect_c2909c2f38887f82 = function() {
968
- return C(function(e, t, n, r, i) {
969
- v(e).clearRect(t, n, r, i);
970
- }, arguments);
971
- }, e.wbg.__wbg_clientWidth_dbc9540f4ebdce2a = function() {
972
- return C(function(e) {
973
- let t = v(e).clientWidth;
974
- return o(t), t;
975
- }, arguments);
976
- }, e.wbg.__wbg_clip_35de02bb25d222d9 = function() {
977
- return C(function(e, t) {
978
- v(e).clip(v(t));
979
- }, arguments);
980
- }, e.wbg.__wbg_clip_afc9a92171eee96e = function() {
981
- return C(function(e, t) {
982
- v(e).clip(v(t));
983
- }, arguments);
984
- }, e.wbg.__wbg_cloneNode_c9c45b24b171a776 = function() {
985
- return y(function(e) {
986
- return r(v(e).cloneNode());
987
- }, arguments);
988
- }, e.wbg.__wbg_content_ad90fa08b8c037c5 = function() {
989
- return C(function(e) {
990
- let t = v(e).content;
991
- return r(t);
992
- }, arguments);
993
- }, e.wbg.__wbg_createElement_da4ed2b219560fc6 = function() {
994
- return y(function(e, t, n) {
995
- return r(v(e).createElement(p(t, n)));
996
- }, arguments);
997
- }, e.wbg.__wbg_createImageBitmap_15b94d7a7277d0be = function() {
998
- return y(function(e, t) {
999
- return r(v(e).createImageBitmap(v(t)));
1000
- }, arguments);
1001
- }, e.wbg.__wbg_createImageBitmap_4772db6cb0dff013 = function() {
1002
- return y(function(e, t) {
1003
- return r(v(e).createImageBitmap(v(t)));
1004
- }, arguments);
1005
- }, e.wbg.__wbg_createObjectURL_7d9f7f8f41373850 = function() {
1006
- return y(function(e, t) {
1007
- let r = T(URL.createObjectURL(v(t)), n.__wbindgen_export, n.__wbindgen_export2), i = A;
1008
- f().setInt32(e + 4, i, !0), f().setInt32(e + 0, r, !0);
1009
- }, arguments);
1010
- }, e.wbg.__wbg_document_5b745e82ba551ca5 = function() {
1011
- return C(function(e) {
1012
- let t = v(e).document;
1013
- return S(t) ? 0 : r(t);
1014
- }, arguments);
1015
- }, e.wbg.__wbg_drawImage_2859dfb229439d8c = function() {
1016
- return y(function(e, t, n, r, i, a) {
1017
- v(e).drawImage(v(t), n, r, i, a);
1018
- }, arguments);
1019
- }, e.wbg.__wbg_drawImage_6949f7679b2a9758 = function() {
1020
- return y(function(e, t, n, r, i, a) {
1021
- v(e).drawImage(v(t), n, r, i, a);
1022
- }, arguments);
1023
- }, e.wbg.__wbg_drawImage_c2aacfe3133aedb7 = function() {
1024
- return y(function(e, t, n, r) {
1025
- v(e).drawImage(v(t), n, r);
1026
- }, arguments);
1027
- }, e.wbg.__wbg_drawImage_c40aff4a38206f4a = function() {
1028
- return y(function(e, t, n, r, i, a) {
1029
- v(e).drawImage(v(t), n, r, i, a);
1030
- }, arguments);
1031
- }, e.wbg.__wbg_drawImage_c4f2c6d2bcfa9463 = function() {
1032
- return y(function(e, t, n, r) {
1033
- v(e).drawImage(v(t), n, r);
1034
- }, arguments);
1035
- }, e.wbg.__wbg_drawImage_de5946f9cc23c2b9 = function() {
1036
- return y(function(e, t, n, r) {
1037
- v(e).drawImage(v(t), n, r);
1038
- }, arguments);
1039
- }, e.wbg.__wbg_drawImage_e2012c2a2d434ee2 = function() {
1040
- return y(function(e, t, n, r, i, a) {
1041
- v(e).drawImage(v(t), n, r, i, a);
1042
- }, arguments);
1043
- }, e.wbg.__wbg_error_7534b8e9a36f1ab4 = function() {
1044
- return C(function(e, t) {
1045
- let r, i;
1046
- try {
1047
- r = e, i = t, console.error(p(e, t));
1048
- } finally {
1049
- n.__wbindgen_export4(r, i, 1);
1050
- }
1051
- }, arguments);
1052
- }, e.wbg.__wbg_fillRect_84131220403e26a4 = function() {
1053
- return C(function(e, t, n, r, i) {
1054
- v(e).fillRect(t, n, r, i);
1055
- }, arguments);
1056
- }, e.wbg.__wbg_fillRect_e0efe328740308e7 = function() {
1057
- return C(function(e, t, n, r, i) {
1058
- v(e).fillRect(t, n, r, i);
1059
- }, arguments);
1060
- }, e.wbg.__wbg_fill_2f2cb4f3f75aadd4 = function() {
1061
- return C(function(e, t, n) {
1062
- v(e).fill(v(t), j[n]);
1063
- }, arguments);
1064
- }, e.wbg.__wbg_fill_38a7d7455451c001 = function() {
1065
- return C(function(e, t, n) {
1066
- v(e).fill(v(t), j[n]);
1067
- }, arguments);
1068
- }, e.wbg.__wbg_fill_3d82e52894462c95 = function() {
1069
- return C(function(e, t) {
1070
- v(e).fill(v(t));
1071
- }, arguments);
1072
- }, e.wbg.__wbg_fill_f1043be5324533f3 = function() {
1073
- return C(function(e, t) {
1074
- v(e).fill(v(t));
1075
- }, arguments);
1076
- }, e.wbg.__wbg_firstElementChild_54d515b19cee5ae7 = function() {
1077
- return C(function(e) {
1078
- let t = v(e).firstElementChild;
1079
- return S(t) ? 0 : r(t);
1080
- }, arguments);
1081
- }, e.wbg.__wbg_firstElementChild_e207b33aaa4a86df = function() {
1082
- return C(function(e) {
1083
- let t = v(e).firstElementChild;
1084
- return S(t) ? 0 : r(t);
1085
- }, arguments);
1086
- }, e.wbg.__wbg_getAttribute_80900eec94cb3636 = function() {
1087
- return C(function(e, t, r, i) {
1088
- let a = v(t).getAttribute(p(r, i));
1089
- var o = S(a) ? 0 : T(a, n.__wbindgen_export, n.__wbindgen_export2), s = A;
1090
- f().setInt32(e + 4, s, !0), f().setInt32(e + 0, o, !0);
1091
- }, arguments);
1092
- }, e.wbg.__wbg_getContext_01f42b234e833f0a = function() {
1093
- return y(function(e, t, n) {
1094
- let i = v(e).getContext(p(t, n));
1095
- return S(i) ? 0 : r(i);
1096
- }, arguments);
1097
- }, e.wbg.__wbg_getContext_2f210d0a58d43d95 = function() {
1098
- return y(function(e, t, n) {
1099
- let i = v(e).getContext(p(t, n));
1100
- return S(i) ? 0 : r(i);
1101
- }, arguments);
1102
- }, e.wbg.__wbg_get_af9dab7e9603ea93 = function() {
1103
- return y(function(e, t) {
1104
- return r(Reflect.get(v(e), v(t)));
1105
- }, arguments);
1106
- }, e.wbg.__wbg_globalCompositeOperation_03e6a5201c8ee369 = function() {
1107
- return y(function(e, t) {
1108
- let r = v(t).globalCompositeOperation, i = T(r, n.__wbindgen_export, n.__wbindgen_export2), a = A;
1109
- f().setInt32(e + 4, a, !0), f().setInt32(e + 0, i, !0);
1110
- }, arguments);
1111
- }, e.wbg.__wbg_globalCompositeOperation_d52c6e6666e4be00 = function() {
1112
- return y(function(e, t) {
1113
- let r = v(t).globalCompositeOperation, i = T(r, n.__wbindgen_export, n.__wbindgen_export2), a = A;
1114
- f().setInt32(e + 4, a, !0), f().setInt32(e + 0, i, !0);
1115
- }, arguments);
1116
- }, e.wbg.__wbg_height_3a0b31e52a5b7f17 = function() {
1117
- return C(function(e) {
1118
- let t = v(e).height;
1119
- return o(t), t;
1120
- }, arguments);
1121
- }, e.wbg.__wbg_incrdomdocclient_new = function() {
1122
- return C(function(e) {
1123
- return r(V.__wrap(e));
1124
- }, arguments);
1125
- }, e.wbg.__wbg_instanceof_CanvasRenderingContext2d_d070139aaac1459f = function() {
1126
- return C(function(e) {
1127
- let t;
1128
- try {
1129
- t = v(e) instanceof CanvasRenderingContext2D;
1130
- } catch (e) {
1131
- t = !1;
1132
- }
1133
- let n = t;
1134
- return i(n), n;
1135
- }, arguments);
1136
- }, e.wbg.__wbg_instanceof_Element_6f7ba982258cfc0f = function() {
1137
- return C(function(e) {
1138
- let t;
1139
- try {
1140
- t = v(e) instanceof Element;
1141
- } catch (e) {
1142
- t = !1;
1143
- }
1144
- let n = t;
1145
- return i(n), n;
1146
- }, arguments);
1147
- }, e.wbg.__wbg_instanceof_HtmlCanvasElement_c4251b1b6a15edcc = function() {
1148
- return C(function(e) {
1149
- let t;
1150
- try {
1151
- t = v(e) instanceof HTMLCanvasElement;
1152
- } catch (e) {
1153
- t = !1;
1154
- }
1155
- let n = t;
1156
- return i(n), n;
1157
- }, arguments);
1158
- }, e.wbg.__wbg_instanceof_HtmlDivElement_a55b9d453d2d8037 = function() {
1159
- return C(function(e) {
1160
- let t;
1161
- try {
1162
- t = v(e) instanceof HTMLDivElement;
1163
- } catch (e) {
1164
- t = !1;
1165
- }
1166
- let n = t;
1167
- return i(n), n;
1168
- }, arguments);
1169
- }, e.wbg.__wbg_instanceof_HtmlElement_20a3acb594113d73 = function() {
1170
- return C(function(e) {
1171
- let t;
1172
- try {
1173
- t = v(e) instanceof HTMLElement;
1174
- } catch (e) {
1175
- t = !1;
1176
- }
1177
- let n = t;
1178
- return i(n), n;
1179
- }, arguments);
1180
- }, e.wbg.__wbg_instanceof_HtmlTemplateElement_702a22ea7e74d089 = function() {
1181
- return C(function(e) {
1182
- let t;
1183
- try {
1184
- t = v(e) instanceof HTMLTemplateElement;
1185
- } catch (e) {
1186
- t = !1;
1187
- }
1188
- let n = t;
1189
- return i(n), n;
1190
- }, arguments);
1191
- }, e.wbg.__wbg_instanceof_ImageBitmap_e44697c70dffc0fe = function() {
1192
- return C(function(e) {
1193
- let t;
1194
- try {
1195
- t = v(e) instanceof ImageBitmap;
1196
- } catch (e) {
1197
- t = !1;
1198
- }
1199
- let n = t;
1200
- return i(n), n;
1201
- }, arguments);
1202
- }, e.wbg.__wbg_instanceof_OffscreenCanvasRenderingContext2d_52996da29a2bf2f5 = function() {
1203
- return C(function(e) {
1204
- let t;
1205
- try {
1206
- t = v(e) instanceof OffscreenCanvasRenderingContext2D;
1207
- } catch (e) {
1208
- t = !1;
1209
- }
1210
- let n = t;
1211
- return i(n), n;
1212
- }, arguments);
1213
- }, e.wbg.__wbg_instanceof_OffscreenCanvas_8fb961f5ea27473f = function() {
1214
- return C(function(e) {
1215
- let t;
1216
- try {
1217
- t = v(e) instanceof OffscreenCanvas;
1218
- } catch (e) {
1219
- t = !1;
1220
- }
1221
- let n = t;
1222
- return i(n), n;
1223
- }, arguments);
1224
- }, e.wbg.__wbg_instanceof_Promise_eca6c43a2610558d = function() {
1225
- return C(function(e) {
1226
- let t;
1227
- try {
1228
- t = v(e) instanceof Promise;
1229
- } catch (e) {
1230
- t = !1;
1231
- }
1232
- let n = t;
1233
- return i(n), n;
1234
- }, arguments);
1235
- }, e.wbg.__wbg_instanceof_SvgGraphicsElement_16c442d1a36270b3 = function() {
1236
- return C(function(e) {
1237
- let t;
1238
- try {
1239
- t = v(e) instanceof SVGGraphicsElement;
1240
- } catch (e) {
1241
- t = !1;
1242
- }
1243
- let n = t;
1244
- return i(n), n;
1245
- }, arguments);
1246
- }, e.wbg.__wbg_instanceof_SvgsvgElement_27a38efc9750b6fa = function() {
1247
- return C(function(e) {
1248
- let t;
1249
- try {
1250
- t = v(e) instanceof SVGSVGElement;
1251
- } catch (e) {
1252
- t = !1;
1253
- }
1254
- let n = t;
1255
- return i(n), n;
1256
- }, arguments);
1257
- }, e.wbg.__wbg_instanceof_Window_b5cf7783caa68180 = function() {
1258
- return C(function(e) {
1259
- let t;
1260
- try {
1261
- t = v(e) instanceof Window;
1262
- } catch (e) {
1263
- t = !1;
1264
- }
1265
- let n = t;
1266
- return i(n), n;
1267
- }, arguments);
1268
- }, e.wbg.__wbg_instanceof_WorkerGlobalScope_9a3411db21c65a54 = function() {
1269
- return C(function(e) {
1270
- let t;
1271
- try {
1272
- t = v(e) instanceof WorkerGlobalScope;
1273
- } catch (e) {
1274
- t = !1;
1275
- }
1276
- let n = t;
1277
- return i(n), n;
1278
- }, arguments);
1279
- }, e.wbg.__wbg_lastElementChild_6b90fe10adf639a2 = function() {
1280
- return C(function(e) {
1281
- let t = v(e).lastElementChild;
1282
- return S(t) ? 0 : r(t);
1283
- }, arguments);
1284
- }, e.wbg.__wbg_length_22ac23eaec9d8053 = function() {
1285
- return C(function(e) {
1286
- let t = v(e).length;
1287
- return o(t), t;
1288
- }, arguments);
1289
- }, e.wbg.__wbg_log_1d990106d99dacb7 = function() {
1290
- return C(function(e) {
1291
- console.log(v(e));
1292
- }, arguments);
1293
- }, e.wbg.__wbg_log_fd6486c6d5396ce5 = function() {
1294
- return C(function(e, t) {
1295
- console.log(v(e), v(t));
1296
- }, arguments);
1297
- }, e.wbg.__wbg_measureText_a465ecc06491802d = function() {
1298
- return y(function(e, t, n) {
1299
- return r(v(e).measureText(p(t, n)));
1300
- }, arguments);
1301
- }, e.wbg.__wbg_new_1ba21ce319a06297 = function() {
1302
- return C(function() {
1303
- return r({});
1304
- }, arguments);
1305
- }, e.wbg.__wbg_new_25f239778d6112b9 = function() {
1306
- return C(function() {
1307
- return r([]);
1308
- }, arguments);
1309
- }, e.wbg.__wbg_new_2884ddbcda091bc1 = function() {
1310
- return y(function() {
1311
- return r(new Image());
1312
- }, arguments);
1313
- }, e.wbg.__wbg_new_8a6f238a6ece86ea = function() {
1314
- return C(function() {
1315
- return r(/* @__PURE__ */ Error());
1316
- }, arguments);
1317
- }, e.wbg.__wbg_new_9468dd6e5df427f6 = function() {
1318
- return y(function(e, t) {
1319
- return r(new OffscreenCanvas(e >>> 0, t >>> 0));
1320
- }, arguments);
1321
- }, e.wbg.__wbg_new_df1173567d5ff028 = function() {
1322
- return C(function(e, t) {
1323
- return r(Error(p(e, t)));
1324
- }, arguments);
1325
- }, e.wbg.__wbg_new_ff12d2b041fb48f1 = function() {
1326
- return C(function(e, t) {
1327
- try {
1328
- var n = {
1329
- a: e,
1330
- b: t
1331
- };
1332
- return r(new Promise((e, t) => {
1333
- let r = n.a;
1334
- n.a = 0;
1335
- try {
1336
- return le(r, n.b, e, t);
1337
- } finally {
1338
- n.a = r;
1339
- }
1340
- }));
1341
- } finally {
1342
- n.a = n.b = 0;
1343
- }
1344
- }, arguments);
1345
- }, e.wbg.__wbg_new_from_slice_f9c22b9153b26992 = function() {
1346
- return C(function(e, t) {
1347
- return r(new Uint8Array(u(e, t)));
1348
- }, arguments);
1349
- }, e.wbg.__wbg_new_no_args_cb138f77cf6151ee = function() {
1350
- return C(function(e, t) {
1351
- return r(Function(p(e, t)));
1352
- }, arguments);
1353
- }, e.wbg.__wbg_new_with_length_aa5eaf41d35235e5 = function() {
1354
- return C(function(e) {
1355
- return r(new Uint8Array(e >>> 0));
1356
- }, arguments);
1357
- }, e.wbg.__wbg_new_with_path_string_3aea637e78135c46 = function() {
1358
- return y(function(e, t) {
1359
- return r(new Path2D(p(e, t)));
1360
- }, arguments);
1361
- }, e.wbg.__wbg_new_with_u8_array_sequence_and_options_d4def9ec0588c7ec = function() {
1362
- return y(function(e, t) {
1363
- return r(new Blob(v(e), v(t)));
1364
- }, arguments);
1365
- }, e.wbg.__wbg_nextElementSibling_c745ee48314963c0 = function() {
1366
- return C(function(e) {
1367
- let t = v(e).nextElementSibling;
1368
- return S(t) ? 0 : r(t);
1369
- }, arguments);
1370
- }, e.wbg.__wbg_push_7d9be8f38fc13975 = function() {
1371
- return C(function(e, t) {
1372
- let n = v(e).push(v(t));
1373
- return o(n), n;
1374
- }, arguments);
1375
- }, e.wbg.__wbg_putImageData_c280ca107c4b7828 = function() {
1376
- return y(function(e, t, n, r) {
1377
- v(e).putImageData(v(t), n, r);
1378
- }, arguments);
1379
- }, e.wbg.__wbg_putImageData_e96eabf0e9610ed3 = function() {
1380
- return y(function(e, t, n, r) {
1381
- v(e).putImageData(v(t), n, r);
1382
- }, arguments);
1383
- }, e.wbg.__wbg_queueMicrotask_9b549dfce8865860 = function() {
1384
- return C(function(e) {
1385
- let t = v(e).queueMicrotask;
1386
- return r(t);
1387
- }, arguments);
1388
- }, e.wbg.__wbg_queueMicrotask_fca69f5bfad613a5 = function() {
1389
- return C(function(e) {
1390
- queueMicrotask(v(e));
1391
- }, arguments);
1392
- }, e.wbg.__wbg_removeProperty_c2e16faee2834bef = function() {
1393
- return y(function(e, t, r, i) {
1394
- let a = T(v(t).removeProperty(p(r, i)), n.__wbindgen_export, n.__wbindgen_export2), o = A;
1395
- f().setInt32(e + 4, o, !0), f().setInt32(e + 0, a, !0);
1396
- }, arguments);
1397
- }, e.wbg.__wbg_remove_32f69ffabcbc4072 = function() {
1398
- return C(function(e) {
1399
- v(e).remove();
1400
- }, arguments);
1401
- }, e.wbg.__wbg_renderpageimageoptions_unwrap = function() {
1402
- return C(function(e) {
1403
- let t = W.__unwrap(v(e));
1404
- return o(t), t;
1405
- }, arguments);
1406
- }, e.wbg.__wbg_replaceWith_923cfb1b2f584408 = function() {
1407
- return y(function(e, t) {
1408
- v(e).replaceWith(v(t));
1409
- }, arguments);
1410
- }, e.wbg.__wbg_resolve_fd5bfbaa4ce36e1e = function() {
1411
- return C(function(e) {
1412
- return r(Promise.resolve(v(e)));
1413
- }, arguments);
1414
- }, e.wbg.__wbg_restore_352c39c9bbeedc91 = function() {
1415
- return C(function(e) {
1416
- v(e).restore();
1417
- }, arguments);
1418
- }, e.wbg.__wbg_restore_6486cb1a7aa3af7b = function() {
1419
- return C(function(e) {
1420
- v(e).restore();
1421
- }, arguments);
1422
- }, e.wbg.__wbg_revokeObjectURL_88db3468842ff09e = function() {
1423
- return y(function(e, t) {
1424
- URL.revokeObjectURL(p(e, t));
1425
- }, arguments);
1426
- }, e.wbg.__wbg_save_131c8dc648f702b6 = function() {
1427
- return C(function(e) {
1428
- v(e).save();
1429
- }, arguments);
1430
- }, e.wbg.__wbg_save_b8767cfd2ee7f600 = function() {
1431
- return C(function(e) {
1432
- v(e).save();
1433
- }, arguments);
1434
- }, e.wbg.__wbg_setAttribute_34747dd193f45828 = function() {
1435
- return y(function(e, t, n, r, i) {
1436
- v(e).setAttribute(p(t, n), p(r, i));
1437
- }, arguments);
1438
- }, e.wbg.__wbg_setLineDash_7e3aad159aa2710c = function() {
1439
- return y(function(e, t) {
1440
- v(e).setLineDash(v(t));
1441
- }, arguments);
1442
- }, e.wbg.__wbg_setLineDash_cfbc3a6bfddeee62 = function() {
1443
- return y(function(e, t) {
1444
- v(e).setLineDash(v(t));
1445
- }, arguments);
1446
- }, e.wbg.__wbg_setProperty_f27b2c05323daf8a = function() {
1447
- return y(function(e, t, n, r, i) {
1448
- v(e).setProperty(p(t, n), p(r, i));
1449
- }, arguments);
1450
- }, e.wbg.__wbg_setTransform_9de588d9f080f5bc = function() {
1451
- return y(function(e, t, n, r, i, a, o) {
1452
- v(e).setTransform(t, n, r, i, a, o);
1453
- }, arguments);
1454
- }, e.wbg.__wbg_setTransform_c55eca1193bf5ea1 = function() {
1455
- return y(function(e, t, n, r, i, a, o) {
1456
- v(e).setTransform(t, n, r, i, a, o);
1457
- }, arguments);
1458
- }, e.wbg.__wbg_set_169e13b608078b7b = function() {
1459
- return C(function(e, t, n) {
1460
- v(e).set(u(t, n));
1461
- }, arguments);
1462
- }, e.wbg.__wbg_set_781438a03c0c3c81 = function() {
1463
- return y(function(e, t, n) {
1464
- let r = Reflect.set(v(e), v(t), v(n));
1465
- return i(r), r;
1466
- }, arguments);
1467
- }, e.wbg.__wbg_set_7df433eea03a5c14 = function() {
1468
- return C(function(e, t, n) {
1469
- v(e)[t >>> 0] = E(n);
1470
- }, arguments);
1471
- }, e.wbg.__wbg_set_fillStyle_b26e462a87b14315 = function() {
1472
- return C(function(e, t, n) {
1473
- v(e).fillStyle = p(t, n);
1474
- }, arguments);
1475
- }, e.wbg.__wbg_set_fillStyle_c9a0550307cd4671 = function() {
1476
- return C(function(e, t, n) {
1477
- v(e).fillStyle = p(t, n);
1478
- }, arguments);
1479
- }, e.wbg.__wbg_set_font_6d67b15564a1e344 = function() {
1480
- return C(function(e, t, n) {
1481
- v(e).font = p(t, n);
1482
- }, arguments);
1483
- }, e.wbg.__wbg_set_globalCompositeOperation_418a0b97ba91a947 = function() {
1484
- return y(function(e, t, n) {
1485
- v(e).globalCompositeOperation = p(t, n);
1486
- }, arguments);
1487
- }, e.wbg.__wbg_set_globalCompositeOperation_7e16c72877ba5f86 = function() {
1488
- return y(function(e, t, n) {
1489
- v(e).globalCompositeOperation = p(t, n);
1490
- }, arguments);
1491
- }, e.wbg.__wbg_set_height_6f8f8ef4cb40e496 = function() {
1492
- return C(function(e, t) {
1493
- v(e).height = t >>> 0;
1494
- }, arguments);
1495
- }, e.wbg.__wbg_set_innerHTML_f1d03f780518a596 = function() {
1496
- return C(function(e, t, n) {
1497
- v(e).innerHTML = p(t, n);
1498
- }, arguments);
1499
- }, e.wbg.__wbg_set_lineCap_74b37c7ff968f854 = function() {
1500
- return C(function(e, t, n) {
1501
- v(e).lineCap = p(t, n);
1502
- }, arguments);
1503
- }, e.wbg.__wbg_set_lineCap_791e7648138cc371 = function() {
1504
- return C(function(e, t, n) {
1505
- v(e).lineCap = p(t, n);
1506
- }, arguments);
1507
- }, e.wbg.__wbg_set_lineDashOffset_85f21a63ddf34d2c = function() {
1508
- return C(function(e, t) {
1509
- v(e).lineDashOffset = t;
1510
- }, arguments);
1511
- }, e.wbg.__wbg_set_lineDashOffset_f032b4e2a273a2f5 = function() {
1512
- return C(function(e, t) {
1513
- v(e).lineDashOffset = t;
1514
- }, arguments);
1515
- }, e.wbg.__wbg_set_lineJoin_196c6ac02fd494c3 = function() {
1516
- return C(function(e, t, n) {
1517
- v(e).lineJoin = p(t, n);
1518
- }, arguments);
1519
- }, e.wbg.__wbg_set_lineJoin_a136f09dd803e0cc = function() {
1520
- return C(function(e, t, n) {
1521
- v(e).lineJoin = p(t, n);
1522
- }, arguments);
1523
- }, e.wbg.__wbg_set_lineWidth_ed39767bf75d602d = function() {
1524
- return C(function(e, t) {
1525
- v(e).lineWidth = t;
1526
- }, arguments);
1527
- }, e.wbg.__wbg_set_lineWidth_feda4b79a15c660b = function() {
1528
- return C(function(e, t) {
1529
- v(e).lineWidth = t;
1530
- }, arguments);
1531
- }, e.wbg.__wbg_set_miterLimit_b12c03757937d228 = function() {
1532
- return C(function(e, t) {
1533
- v(e).miterLimit = t;
1534
- }, arguments);
1535
- }, e.wbg.__wbg_set_miterLimit_d891f47e244a915c = function() {
1536
- return C(function(e, t) {
1537
- v(e).miterLimit = t;
1538
- }, arguments);
1539
- }, e.wbg.__wbg_set_onerror_e7e40c62a55a0770 = function() {
1540
- return C(function(e, t) {
1541
- v(e).onerror = v(t);
1542
- }, arguments);
1543
- }, e.wbg.__wbg_set_onload_5e2862e3453854de = function() {
1544
- return C(function(e, t) {
1545
- v(e).onload = v(t);
1546
- }, arguments);
1547
- }, e.wbg.__wbg_set_src_84f27c5105946dce = function() {
1548
- return C(function(e, t, n) {
1549
- v(e).src = p(t, n);
1550
- }, arguments);
1551
- }, e.wbg.__wbg_set_strokeStyle_25d5381be570e780 = function() {
1552
- return C(function(e, t, n) {
1553
- v(e).strokeStyle = p(t, n);
1554
- }, arguments);
1555
- }, e.wbg.__wbg_set_strokeStyle_697a576d2d3fbeaa = function() {
1556
- return C(function(e, t, n) {
1557
- v(e).strokeStyle = p(t, n);
1558
- }, arguments);
1559
- }, e.wbg.__wbg_set_type_7ce650670a34c68f = function() {
1560
- return C(function(e, t, n) {
1561
- v(e).type = p(t, n);
1562
- }, arguments);
1563
- }, e.wbg.__wbg_set_width_7ff7a22c6e9f423e = function() {
1564
- return C(function(e, t) {
1565
- v(e).width = t >>> 0;
1566
- }, arguments);
1567
- }, e.wbg.__wbg_stack_0ed75d68575b0f3c = function() {
1568
- return C(function(e, t) {
1569
- let r = v(t).stack, i = T(r, n.__wbindgen_export, n.__wbindgen_export2), a = A;
1570
- f().setInt32(e + 4, a, !0), f().setInt32(e + 0, i, !0);
1571
- }, arguments);
1572
- }, e.wbg.__wbg_static_accessor_GLOBAL_769e6b65d6557335 = function() {
1573
- return C(function() {
1574
- let e = typeof global > "u" ? null : global;
1575
- return S(e) ? 0 : r(e);
1576
- }, arguments);
1577
- }, e.wbg.__wbg_static_accessor_GLOBAL_THIS_60cf02db4de8e1c1 = function() {
1578
- return C(function() {
1579
- let e = typeof globalThis > "u" ? null : globalThis;
1580
- return S(e) ? 0 : r(e);
1581
- }, arguments);
1582
- }, e.wbg.__wbg_static_accessor_SELF_08f5a74c69739274 = function() {
1583
- return C(function() {
1584
- let e = typeof self > "u" ? null : self;
1585
- return S(e) ? 0 : r(e);
1586
- }, arguments);
1587
- }, e.wbg.__wbg_static_accessor_WINDOW_a8924b26aa92d024 = function() {
1588
- return C(function() {
1589
- let e = typeof window > "u" ? null : window;
1590
- return S(e) ? 0 : r(e);
1591
- }, arguments);
1592
- }, e.wbg.__wbg_stringify_655a6390e1f5eb6b = function() {
1593
- return y(function(e) {
1594
- return r(JSON.stringify(v(e)));
1595
- }, arguments);
1596
- }, e.wbg.__wbg_stroke_41b0736a6a0b61aa = function() {
1597
- return C(function(e, t) {
1598
- v(e).stroke(v(t));
1599
- }, arguments);
1600
- }, e.wbg.__wbg_stroke_7cfe6d60a6c48303 = function() {
1601
- return C(function(e, t) {
1602
- v(e).stroke(v(t));
1603
- }, arguments);
1604
- }, e.wbg.__wbg_style_521a717da50e53c6 = function() {
1605
- return C(function(e) {
1606
- let t = v(e).style;
1607
- return r(t);
1608
- }, arguments);
1609
- }, e.wbg.__wbg_then_429f7caf1026411d = function() {
1610
- return C(function(e, t, n) {
1611
- return r(v(e).then(v(t), v(n)));
1612
- }, arguments);
1613
- }, e.wbg.__wbg_then_4f95312d68691235 = function() {
1614
- return C(function(e, t) {
1615
- return r(v(e).then(v(t)));
1616
- }, arguments);
1617
- }, e.wbg.__wbg_transferToImageBitmap_7048556ff33da7ed = function() {
1618
- return y(function(e) {
1619
- return r(v(e).transferToImageBitmap());
1620
- }, arguments);
1621
- }, e.wbg.__wbg_typstrenderer_new = function() {
1622
- return C(function(e) {
1623
- return r(q.__wrap(e));
1624
- }, arguments);
1625
- }, e.wbg.__wbg_warn_6e567d0d926ff881 = function() {
1626
- return C(function(e) {
1627
- console.warn(v(e));
1628
- }, arguments);
1629
- }, e.wbg.__wbg_width_c3f96f2ca7ab208d = function() {
1630
- return C(function(e) {
1631
- return v(e).width;
1632
- }, arguments);
1633
- }, e.wbg.__wbg_width_f13d2e86324fc226 = function() {
1634
- return C(function(e) {
1635
- let t = v(e).width;
1636
- return o(t), t;
1637
- }, arguments);
1638
- }, e.wbg.__wbindgen_cast_2241b6af4c4b2941 = function() {
1639
- return C(function(e, t) {
1640
- return r(p(e, t));
1641
- }, arguments);
1642
- }, e.wbg.__wbindgen_cast_34ce245e5be1ba8b = function() {
1643
- return C(function(e, t) {
1644
- return r(ee(e, t, n.__wasm_bindgen_func_elem_1022, se));
1645
- }, arguments);
1646
- }, e.wbg.__wbindgen_cast_b2e692da0ea8478a = function() {
1647
- return C(function(e, t) {
1648
- return r(te(e, t, n.__wasm_bindgen_func_elem_1077, oe));
1649
- }, arguments);
1650
- }, e.wbg.__wbindgen_cast_d3d3bd81840cfbdd = function() {
1651
- return C(function(e, t) {
1652
- return r(ee(e, t, n.__wasm_bindgen_func_elem_1022, ce));
1653
- }, arguments);
1654
- }, e.wbg.__wbindgen_cast_d6cd19b81560fd6e = function() {
1655
- return C(function(e) {
1656
- return r(e);
1657
- }, arguments);
1658
- }, e.wbg.__wbindgen_object_clone_ref = function(e) {
1659
- return r(v(e));
1660
- }, e.wbg.__wbindgen_object_drop_ref = function(e) {
1661
- E(e);
1662
- }, e;
1663
- }
1664
- function _e(e, t) {
1665
- return n = e.exports, ye.__wbindgen_wasm_module = t, d = null, m = null, g = null, n;
1666
- }
1667
- function ve(e) {
1668
- if (n !== void 0) return n;
1669
- e !== void 0 && (Object.getPrototypeOf(e) === Object.prototype ? {module: e} = e : console.warn("using deprecated parameters for `initSync()`; pass a single object instead"));
1670
- let t = ge();
1671
- return e instanceof WebAssembly.Module || (e = new WebAssembly.Module(e)), _e(new WebAssembly.Instance(e, t), e);
1672
- }
1673
- function ye(e) {
1674
- return Q.apply(this, arguments);
1675
- }
1676
- function Q() {
1677
- return Q = t(function* (e) {
1678
- if (n !== void 0) return n;
1679
- e !== void 0 && (Object.getPrototypeOf(e) === Object.prototype ? {module_or_path: e} = e : console.warn("using deprecated parameters for the initialization function; pass a single object instead")), e === void 0 && (e = be("typst_ts_renderer_bg.wasm", import.meta.url));
1680
- let t = ge();
1681
- (typeof e == "string" || typeof Request == "function" && e instanceof Request || typeof URL == "function" && e instanceof URL) && (e = fetch(e));
1682
- let { instance: r, module: i } = yield he(yield e, t);
1683
- return _e(r, i);
1684
- }), Q.apply(this, arguments);
1685
- }
1686
- var be = /* @__PURE__ */ function() {
1687
- var e = t(function* (e, t) {
1688
- throw Error("Cannot import wasm module without importer: " + e + " " + t);
1689
- });
1690
- return function(t, n) {
1691
- return e.apply(this, arguments);
1692
- };
1693
- }();
1694
- function $(e) {
1695
- be = e;
1696
- }
1697
- //#endregion
1698
- //#region node_modules/.pnpm/@myriaddreamin+typst-ts-renderer@0.7.0/node_modules/@myriaddreamin/typst-ts-renderer/pkg/wasm-pack-shim.mjs
1699
- e();
1700
- var xe = ye, Se = /* @__PURE__ */ function() {
1701
- var e = t(function* (e, t) {
1702
- let { readFileSync: n } = yield Function("m", "return import(m)")("fs");
1703
- return yield n(new URL(e, t)).buffer;
1704
- });
1705
- return function(t, n) {
1706
- return e.apply(this, arguments);
1707
- };
1708
- }();
1709
- typeof process < "u" && process.versions != null && process.versions.node != null && $(Se);
1710
- //#endregion
1711
- export { B as CreateSessionOptions, V as IncrDomDocClient, H as PageInfo, U as PagesInfo, W as RenderPageImageOptions, G as RenderSession, K as RenderSessionOptions, q as TypstRenderer, J as TypstRendererBuilder, Y as TypstWorker, X as WorkerBridge, xe as default, ve as initSync, pe as renderer_build_info, $ as setImportWasmModule };