kordoc 4.24.39 → 4.24.41

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 (209) hide show
  1. package/README.md +4 -4
  2. package/dist/{-7VE547IT.js → -5XLO3RHD.js} +21 -21
  3. package/dist/{chunk-F2JYJ2SP.js → chunk-2CHSOHDE.js} +2 -2
  4. package/dist/{chunk-YXKU6UJD.js → chunk-2IK2Z6PO.js} +2 -2
  5. package/dist/{chunk-3MHRL3OO.js → chunk-3GJ3CMYS.js} +2 -2
  6. package/dist/{chunk-4FWLCWNU.js → chunk-57LVGVIS.js} +2 -2
  7. package/dist/{chunk-PFHMNNW7.js → chunk-5QHQ56AK.js} +36 -6
  8. package/dist/chunk-5QHQ56AK.js.map +1 -0
  9. package/dist/{chunk-IM5SIGUN.cjs → chunk-5QMMROCA.cjs} +3 -3
  10. package/dist/chunk-5QMMROCA.cjs.map +1 -0
  11. package/dist/chunk-ARVHYL3V.cjs.map +1 -1
  12. package/dist/{chunk-RPAEXGWZ.js → chunk-C2YUJXHB.js} +2 -2
  13. package/dist/{chunk-QDQPAC4L.js → chunk-C5XJDCXW.js} +2 -2
  14. package/dist/{chunk-ZDMLZRS4.js → chunk-CCGGLBHD.js} +111 -34
  15. package/dist/chunk-CCGGLBHD.js.map +1 -0
  16. package/dist/chunk-DEVQZTE7.cjs.map +1 -1
  17. package/dist/{chunk-SFLHCRO6.js → chunk-EPR3TQS3.js} +2 -2
  18. package/dist/{chunk-7ZRUR4TZ.js → chunk-EPZVMBAQ.js} +2 -2
  19. package/dist/{chunk-CS76UPUC.js → chunk-FVYTDR6E.js} +29 -7
  20. package/dist/chunk-FVYTDR6E.js.map +1 -0
  21. package/dist/chunk-GS7T56RP.cjs.map +1 -1
  22. package/dist/{chunk-7BQWFZJO.js → chunk-GYMAGQNQ.js} +6 -6
  23. package/dist/{chunk-XYVTCXAG.cjs → chunk-HJGKVI7D.cjs} +81 -51
  24. package/dist/chunk-HJGKVI7D.cjs.map +1 -0
  25. package/dist/{chunk-RJNHXCMP.cjs → chunk-HR72SA4M.cjs} +182 -106
  26. package/dist/chunk-HR72SA4M.cjs.map +1 -0
  27. package/dist/{chunk-LU7X6LLW.cjs → chunk-IHMDGE7Z.cjs} +3 -3
  28. package/dist/chunk-IHMDGE7Z.cjs.map +1 -0
  29. package/dist/{chunk-WVER4OWF.js → chunk-IXFRVO7E.js} +3 -3
  30. package/dist/chunk-J55UQC5H.cjs.map +1 -1
  31. package/dist/{chunk-QDPYTJ4Y.js → chunk-JBQ5R4VV.js} +2 -2
  32. package/dist/{chunk-MANE7HAZ.cjs → chunk-JZEMASGR.cjs} +2 -2
  33. package/dist/chunk-JZEMASGR.cjs.map +1 -0
  34. package/dist/{chunk-NQJL3664.js → chunk-K2AVB6ZW.js} +3 -3
  35. package/dist/{chunk-PQIIYKNL.js → chunk-KF6MJIPV.js} +11 -11
  36. package/dist/{chunk-WPIG3KUV.js → chunk-KQDO246G.js} +28 -6
  37. package/dist/chunk-KQDO246G.js.map +1 -0
  38. package/dist/{chunk-NL5OTD2E.js → chunk-KTWCSSNS.js} +10 -10
  39. package/dist/chunk-LAYKIZOX.cjs.map +1 -1
  40. package/dist/{chunk-Y5O4DS56.js → chunk-MZ7AGKAN.js} +2 -2
  41. package/dist/{chunk-LOJYJISM.js → chunk-NHDOSQZ6.js} +110 -34
  42. package/dist/chunk-NHDOSQZ6.js.map +1 -0
  43. package/dist/{chunk-M2ZRTYQ5.js → chunk-OPE2XDGY.js} +5 -5
  44. package/dist/{chunk-2XXTL4S4.js → chunk-QNXWOUWQ.js} +2 -2
  45. package/dist/{chunk-FRMJTW3C.js → chunk-S7TKYRJB.js} +2 -2
  46. package/dist/{chunk-346W5O2J.js → chunk-SGBD6MTI.js} +2 -2
  47. package/dist/{chunk-BWBR5GWQ.js → chunk-SV462GOK.js} +2 -2
  48. package/dist/{chunk-7AYP2XO6.js → chunk-TGKYTBQ2.js} +3 -3
  49. package/dist/{chunk-UKTRLJII.cjs → chunk-TJARBWAJ.cjs} +98 -98
  50. package/dist/chunk-TJARBWAJ.cjs.map +1 -0
  51. package/dist/chunk-TK3FDAEE.cjs.map +1 -1
  52. package/dist/{chunk-LE3733C2.cjs → chunk-TVMNTRPZ.cjs} +104 -82
  53. package/dist/chunk-TVMNTRPZ.cjs.map +1 -0
  54. package/dist/{chunk-GXED6LJX.js → chunk-TWFL7T4K.js} +2 -2
  55. package/dist/{chunk-FZMZUX7B.js → chunk-UHN5TULI.js} +37 -7
  56. package/dist/chunk-UHN5TULI.js.map +1 -0
  57. package/dist/{chunk-L23XOAKF.js → chunk-UI3SZQXC.js} +6 -6
  58. package/dist/{chunk-V3IMDOZE.cjs → chunk-WNOSEEBH.cjs} +6 -6
  59. package/dist/chunk-WNOSEEBH.cjs.map +1 -0
  60. package/dist/{chunk-PHVAJBHM.js → chunk-WYJWJ7X4.js} +2 -2
  61. package/dist/chunk-X7RBVVDC.cjs.map +1 -1
  62. package/dist/{chunk-IZWZ3RQC.js → chunk-XBWP6REN.js} +2 -2
  63. package/dist/{chunk-COH7WXBK.js → chunk-XPYC55DA.js} +5 -5
  64. package/dist/{chunk-ZVAX6E63.js → chunk-ZDTP5IJU.js} +2 -2
  65. package/dist/{chunk-V2RIY72D.js → chunk-ZOCDODX3.js} +2 -2
  66. package/dist/chunk-ZTN3T3GH.cjs.map +1 -1
  67. package/dist/{chunk-U5OV6D66.js → chunk-ZUFIMOGS.js} +15 -15
  68. package/dist/chunks-23JEOBIH.js +11 -0
  69. package/dist/cli.js +43 -43
  70. package/dist/detect-V75ERMYL.cjs.map +1 -1
  71. package/dist/{formula-PFSZZNPP.js → formula-3X2Y6F6V.js} +3 -3
  72. package/dist/{formula-UI2UR74M.cjs → formula-4WGDQBOM.cjs} +9 -9
  73. package/dist/formula-4WGDQBOM.cjs.map +1 -0
  74. package/dist/{formula-MMLDES2Z.js → formula-IBE4CZ5R.js} +4 -4
  75. package/dist/generator-JYJLWH7T.js +17 -0
  76. package/dist/generator-PGOJNK7D.js +10 -0
  77. package/dist/generator-ZRVKK7UG.cjs +11 -0
  78. package/dist/generator-ZRVKK7UG.cjs.map +1 -0
  79. package/dist/{hancom-XO52GNC3.js → hancom-CBYVMPCO.js} +2 -2
  80. package/dist/{hancom-3V3USCW5.js → hancom-UACA2WTF.js} +2 -2
  81. package/dist/{hancom-GV5TTF5H.cjs → hancom-YR2BB373.cjs} +5 -5
  82. package/dist/hancom-YR2BB373.cjs.map +1 -0
  83. package/dist/{image-ocr-R2ASFKHX.js → image-ocr-2CUGPHIK.js} +10 -10
  84. package/dist/{image-ocr-SU4RPHBF.js → image-ocr-JEHNWQVE.js} +7 -7
  85. package/dist/{image-ocr-2WKCFABH.cjs → image-ocr-RNAJ66EN.cjs} +27 -27
  86. package/dist/image-ocr-RNAJ66EN.cjs.map +1 -0
  87. package/dist/index.cjs +1105 -1105
  88. package/dist/index.cjs.map +1 -1
  89. package/dist/index.d.cts +2 -2
  90. package/dist/index.d.ts +2 -2
  91. package/dist/index.js +9 -9
  92. package/dist/mcp.js +37 -37
  93. package/dist/mcp.js.map +1 -1
  94. package/dist/memo-V24MEWBZ.js +17 -0
  95. package/dist/{model-bundle-JMSH2F4A.js → model-bundle-HLPWOTCS.js} +5 -5
  96. package/dist/{models-D5SATVOZ.js → models-AMOW56WP.js} +5 -5
  97. package/dist/page-range-QHHFTL7X.cjs.map +1 -1
  98. package/dist/{parse-worker-v2-WIIZQFRX.js → parse-worker-v2-Z4BCWVRX.js} +22 -22
  99. package/dist/{parser-MFBTEGJA.cjs → parser-D2DQIUP3.cjs} +159 -159
  100. package/dist/parser-D2DQIUP3.cjs.map +1 -0
  101. package/dist/{parser-SBJKV5GS.js → parser-Y4GUP7PZ.js} +12 -12
  102. package/dist/{parser-KCY43TBS.js → parser-YMNUQBLB.js} +9 -9
  103. package/dist/{pdf-ocr-UU5PSZ7Z.js → pdf-ocr-3K266ENT.js} +9 -9
  104. package/dist/{pdf-ocr-I6GNQEFS.js → pdf-ocr-EPIM3YWE.js} +6 -6
  105. package/dist/pdf-ocr-OX7H7NOU.cjs +40 -0
  106. package/dist/pdf-ocr-OX7H7NOU.cjs.map +1 -0
  107. package/dist/{profile-io-HZK4ZZ2O.js → profile-io-AW4GEYDQ.js} +3 -3
  108. package/dist/{rasterize-VNP4ULXM.js → rasterize-75AWRNSO.js} +3 -3
  109. package/dist/{redact-doc-SPHSBCPN.js → redact-doc-3UUPTXFI.js} +21 -21
  110. package/dist/{render-CKTTIDU2.js → render-JGMRAI2P.js} +12 -12
  111. package/dist/{rewrite-fallback-H2KMJV6G.js → rewrite-fallback-UDQAKQN2.js} +13 -13
  112. package/dist/rewrite-fallback-UDQAKQN2.js.map +1 -0
  113. package/dist/seal-WFNKTHBW.js +16 -0
  114. package/dist/{setup-GJVOXJN7.js → setup-JTHBR676.js} +3 -3
  115. package/dist/{to-hwpx-5UIBNW3D.js → to-hwpx-GJP66LQS.js} +7 -7
  116. package/dist/to-hwpx-LKPXAHSQ.cjs +16 -0
  117. package/dist/to-hwpx-LKPXAHSQ.cjs.map +1 -0
  118. package/dist/{to-hwpx-JJHDCYER.js → to-hwpx-ZD7IGU7G.js} +4 -4
  119. package/dist/visual-666SNQ3Y.js +37 -0
  120. package/dist/{watch-YZZES36Q.js → watch-QL4YAMRV.js} +22 -22
  121. package/package.json +1 -1
  122. package/dist/chunk-CS76UPUC.js.map +0 -1
  123. package/dist/chunk-FZMZUX7B.js.map +0 -1
  124. package/dist/chunk-IM5SIGUN.cjs.map +0 -1
  125. package/dist/chunk-LE3733C2.cjs.map +0 -1
  126. package/dist/chunk-LOJYJISM.js.map +0 -1
  127. package/dist/chunk-LU7X6LLW.cjs.map +0 -1
  128. package/dist/chunk-MANE7HAZ.cjs.map +0 -1
  129. package/dist/chunk-PFHMNNW7.js.map +0 -1
  130. package/dist/chunk-RJNHXCMP.cjs.map +0 -1
  131. package/dist/chunk-UKTRLJII.cjs.map +0 -1
  132. package/dist/chunk-V3IMDOZE.cjs.map +0 -1
  133. package/dist/chunk-WPIG3KUV.js.map +0 -1
  134. package/dist/chunk-XYVTCXAG.cjs.map +0 -1
  135. package/dist/chunk-ZDMLZRS4.js.map +0 -1
  136. package/dist/chunks-WTYZ4KG2.js +0 -11
  137. package/dist/formula-UI2UR74M.cjs.map +0 -1
  138. package/dist/generator-C3SCP3ZG.js +0 -10
  139. package/dist/generator-CHBOCLYX.cjs +0 -11
  140. package/dist/generator-CHBOCLYX.cjs.map +0 -1
  141. package/dist/generator-RTSNDZJB.js +0 -17
  142. package/dist/hancom-GV5TTF5H.cjs.map +0 -1
  143. package/dist/image-ocr-2WKCFABH.cjs.map +0 -1
  144. package/dist/memo-U4RZJRU2.js +0 -17
  145. package/dist/parser-MFBTEGJA.cjs.map +0 -1
  146. package/dist/pdf-ocr-L2O4SQUK.cjs +0 -40
  147. package/dist/pdf-ocr-L2O4SQUK.cjs.map +0 -1
  148. package/dist/rewrite-fallback-H2KMJV6G.js.map +0 -1
  149. package/dist/seal-MSY5G3UR.js +0 -16
  150. package/dist/to-hwpx-6BQNMA6P.cjs +0 -16
  151. package/dist/to-hwpx-6BQNMA6P.cjs.map +0 -1
  152. package/dist/visual-Q6PIMKSA.js +0 -37
  153. /package/dist/{-7VE547IT.js.map → -5XLO3RHD.js.map} +0 -0
  154. /package/dist/{chunk-F2JYJ2SP.js.map → chunk-2CHSOHDE.js.map} +0 -0
  155. /package/dist/{chunk-YXKU6UJD.js.map → chunk-2IK2Z6PO.js.map} +0 -0
  156. /package/dist/{chunk-3MHRL3OO.js.map → chunk-3GJ3CMYS.js.map} +0 -0
  157. /package/dist/{chunk-4FWLCWNU.js.map → chunk-57LVGVIS.js.map} +0 -0
  158. /package/dist/{chunk-RPAEXGWZ.js.map → chunk-C2YUJXHB.js.map} +0 -0
  159. /package/dist/{chunk-QDQPAC4L.js.map → chunk-C5XJDCXW.js.map} +0 -0
  160. /package/dist/{chunk-SFLHCRO6.js.map → chunk-EPR3TQS3.js.map} +0 -0
  161. /package/dist/{chunk-7ZRUR4TZ.js.map → chunk-EPZVMBAQ.js.map} +0 -0
  162. /package/dist/{chunk-7BQWFZJO.js.map → chunk-GYMAGQNQ.js.map} +0 -0
  163. /package/dist/{chunk-WVER4OWF.js.map → chunk-IXFRVO7E.js.map} +0 -0
  164. /package/dist/{chunk-QDPYTJ4Y.js.map → chunk-JBQ5R4VV.js.map} +0 -0
  165. /package/dist/{chunk-NQJL3664.js.map → chunk-K2AVB6ZW.js.map} +0 -0
  166. /package/dist/{chunk-PQIIYKNL.js.map → chunk-KF6MJIPV.js.map} +0 -0
  167. /package/dist/{chunk-NL5OTD2E.js.map → chunk-KTWCSSNS.js.map} +0 -0
  168. /package/dist/{chunk-Y5O4DS56.js.map → chunk-MZ7AGKAN.js.map} +0 -0
  169. /package/dist/{chunk-M2ZRTYQ5.js.map → chunk-OPE2XDGY.js.map} +0 -0
  170. /package/dist/{chunk-2XXTL4S4.js.map → chunk-QNXWOUWQ.js.map} +0 -0
  171. /package/dist/{chunk-FRMJTW3C.js.map → chunk-S7TKYRJB.js.map} +0 -0
  172. /package/dist/{chunk-346W5O2J.js.map → chunk-SGBD6MTI.js.map} +0 -0
  173. /package/dist/{chunk-BWBR5GWQ.js.map → chunk-SV462GOK.js.map} +0 -0
  174. /package/dist/{chunk-7AYP2XO6.js.map → chunk-TGKYTBQ2.js.map} +0 -0
  175. /package/dist/{chunk-GXED6LJX.js.map → chunk-TWFL7T4K.js.map} +0 -0
  176. /package/dist/{chunk-L23XOAKF.js.map → chunk-UI3SZQXC.js.map} +0 -0
  177. /package/dist/{chunk-PHVAJBHM.js.map → chunk-WYJWJ7X4.js.map} +0 -0
  178. /package/dist/{chunk-IZWZ3RQC.js.map → chunk-XBWP6REN.js.map} +0 -0
  179. /package/dist/{chunk-COH7WXBK.js.map → chunk-XPYC55DA.js.map} +0 -0
  180. /package/dist/{chunk-ZVAX6E63.js.map → chunk-ZDTP5IJU.js.map} +0 -0
  181. /package/dist/{chunk-V2RIY72D.js.map → chunk-ZOCDODX3.js.map} +0 -0
  182. /package/dist/{chunk-U5OV6D66.js.map → chunk-ZUFIMOGS.js.map} +0 -0
  183. /package/dist/{chunks-WTYZ4KG2.js.map → chunks-23JEOBIH.js.map} +0 -0
  184. /package/dist/{formula-PFSZZNPP.js.map → formula-3X2Y6F6V.js.map} +0 -0
  185. /package/dist/{formula-MMLDES2Z.js.map → formula-IBE4CZ5R.js.map} +0 -0
  186. /package/dist/{generator-C3SCP3ZG.js.map → generator-JYJLWH7T.js.map} +0 -0
  187. /package/dist/{generator-RTSNDZJB.js.map → generator-PGOJNK7D.js.map} +0 -0
  188. /package/dist/{hancom-XO52GNC3.js.map → hancom-CBYVMPCO.js.map} +0 -0
  189. /package/dist/{hancom-3V3USCW5.js.map → hancom-UACA2WTF.js.map} +0 -0
  190. /package/dist/{image-ocr-R2ASFKHX.js.map → image-ocr-2CUGPHIK.js.map} +0 -0
  191. /package/dist/{image-ocr-SU4RPHBF.js.map → image-ocr-JEHNWQVE.js.map} +0 -0
  192. /package/dist/{memo-U4RZJRU2.js.map → memo-V24MEWBZ.js.map} +0 -0
  193. /package/dist/{model-bundle-JMSH2F4A.js.map → model-bundle-HLPWOTCS.js.map} +0 -0
  194. /package/dist/{models-D5SATVOZ.js.map → models-AMOW56WP.js.map} +0 -0
  195. /package/dist/{parse-worker-v2-WIIZQFRX.js.map → parse-worker-v2-Z4BCWVRX.js.map} +0 -0
  196. /package/dist/{parser-SBJKV5GS.js.map → parser-Y4GUP7PZ.js.map} +0 -0
  197. /package/dist/{parser-KCY43TBS.js.map → parser-YMNUQBLB.js.map} +0 -0
  198. /package/dist/{pdf-ocr-I6GNQEFS.js.map → pdf-ocr-3K266ENT.js.map} +0 -0
  199. /package/dist/{pdf-ocr-UU5PSZ7Z.js.map → pdf-ocr-EPIM3YWE.js.map} +0 -0
  200. /package/dist/{profile-io-HZK4ZZ2O.js.map → profile-io-AW4GEYDQ.js.map} +0 -0
  201. /package/dist/{rasterize-VNP4ULXM.js.map → rasterize-75AWRNSO.js.map} +0 -0
  202. /package/dist/{redact-doc-SPHSBCPN.js.map → redact-doc-3UUPTXFI.js.map} +0 -0
  203. /package/dist/{render-CKTTIDU2.js.map → render-JGMRAI2P.js.map} +0 -0
  204. /package/dist/{seal-MSY5G3UR.js.map → seal-WFNKTHBW.js.map} +0 -0
  205. /package/dist/{setup-GJVOXJN7.js.map → setup-JTHBR676.js.map} +0 -0
  206. /package/dist/{to-hwpx-5UIBNW3D.js.map → to-hwpx-GJP66LQS.js.map} +0 -0
  207. /package/dist/{to-hwpx-JJHDCYER.js.map → to-hwpx-ZD7IGU7G.js.map} +0 -0
  208. /package/dist/{visual-Q6PIMKSA.js.map → visual-666SNQ3Y.js.map} +0 -0
  209. /package/dist/{watch-YZZES36Q.js.map → watch-QL4YAMRV.js.map} +0 -0
@@ -1 +1 @@
1
- {"version":3,"sources":["/Users/mong-e/workspace/kordoc/dist/chunk-GS7T56RP.cjs","../node_modules/tsup/assets/cjs_shims.js"],"names":[],"mappings":"AAAA;ACKA,IAAM,iBAAA,EAAmB,CAAA,EAAA,GACvB,OAAO,SAAA,IAAa,YAAA,EAChB,IAAI,GAAA,CAAI,CAAA,KAAA,EAAQ,UAAU,CAAA,CAAA;AAK8B;ADT4B;AACA;AACA;AACA","file":"/Users/mong-e/workspace/kordoc/dist/chunk-GS7T56RP.cjs","sourcesContent":[null,"// Shim globals in cjs bundle\n// There's a weird bug that esbuild will always inject importMetaUrl\n// if we export it as `const importMetaUrl = ... __filename ...`\n// But using a function will not cause this issue\n\nconst getImportMetaUrl = () => \n typeof document === \"undefined\" \n ? new URL(`file:${__filename}`).href \n : (document.currentScript && document.currentScript.tagName.toUpperCase() === 'SCRIPT') \n ? document.currentScript.src \n : new URL(\"main.js\", document.baseURI).href;\n\nexport const importMetaUrl = /* @__PURE__ */ getImportMetaUrl()\n"]}
1
+ {"version":3,"sources":["/private/tmp/kd-pub/dist/chunk-GS7T56RP.cjs","../node_modules/tsup/assets/cjs_shims.js"],"names":[],"mappings":"AAAA;ACKA,IAAM,iBAAA,EAAmB,CAAA,EAAA,GACvB,OAAO,SAAA,IAAa,YAAA,EAChB,IAAI,GAAA,CAAI,CAAA,KAAA,EAAQ,UAAU,CAAA,CAAA;AAK8B;ADT4B;AACA;AACA;AACA","file":"/private/tmp/kd-pub/dist/chunk-GS7T56RP.cjs","sourcesContent":[null,"// Shim globals in cjs bundle\n// There's a weird bug that esbuild will always inject importMetaUrl\n// if we export it as `const importMetaUrl = ... __filename ...`\n// But using a function will not cause this issue\n\nconst getImportMetaUrl = () => \n typeof document === \"undefined\" \n ? new URL(`file:${__filename}`).href \n : (document.currentScript && document.currentScript.tagName.toUpperCase() === 'SCRIPT') \n ? document.currentScript.src \n : new URL(\"main.js\", document.baseURI).href;\n\nexport const importMetaUrl = /* @__PURE__ */ getImportMetaUrl()\n"]}
@@ -1,10 +1,10 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  collectSites
4
- } from "./chunk-COH7WXBK.js";
4
+ } from "./chunk-XPYC55DA.js";
5
5
  import {
6
6
  patchZipEntries
7
- } from "./chunk-SFLHCRO6.js";
7
+ } from "./chunk-EPR3TQS3.js";
8
8
  import {
9
9
  applySplices,
10
10
  changedLinesegRemovalSplices,
@@ -14,14 +14,14 @@ import {
14
14
  } from "./chunk-3AHL6YEA.js";
15
15
  import {
16
16
  readZipEntry
17
- } from "./chunk-4FWLCWNU.js";
17
+ } from "./chunk-57LVGVIS.js";
18
18
  import {
19
19
  fileTimeText
20
- } from "./chunk-3MHRL3OO.js";
20
+ } from "./chunk-3GJ3CMYS.js";
21
21
  import {
22
22
  KordocError,
23
23
  precheckZipSize
24
- } from "./chunk-V2RIY72D.js";
24
+ } from "./chunk-ZOCDODX3.js";
25
25
 
26
26
  // src/form/memo.ts
27
27
  import JSZip from "jszip";
@@ -128,4 +128,4 @@ async function addMemoHwpx(hwpxBuffer, ops, now = /* @__PURE__ */ new Date()) {
128
128
  export {
129
129
  addMemoHwpx
130
130
  };
131
- //# sourceMappingURL=chunk-7BQWFZJO.js.map
131
+ //# sourceMappingURL=chunk-GYMAGQNQ.js.map
@@ -1,7 +1,7 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; } var _class;
2
2
 
3
3
 
4
- var _chunkIM5SIGUNcjs = require('./chunk-IM5SIGUN.cjs');
4
+ var _chunk5QMMROCAcjs = require('./chunk-5QMMROCA.cjs');
5
5
 
6
6
 
7
7
 
@@ -9,11 +9,11 @@ var _chunkIM5SIGUNcjs = require('./chunk-IM5SIGUN.cjs');
9
9
 
10
10
 
11
11
 
12
- var _chunkV3IMDOZEcjs = require('./chunk-V3IMDOZE.cjs');
12
+ var _chunkWNOSEEBHcjs = require('./chunk-WNOSEEBH.cjs');
13
13
 
14
14
 
15
15
 
16
- var _chunkMANE7HAZcjs = require('./chunk-MANE7HAZ.cjs');
16
+ var _chunkJZEMASGRcjs = require('./chunk-JZEMASGR.cjs');
17
17
 
18
18
  // src/ocr/models.ts
19
19
  var _path = require('path');
@@ -65,7 +65,7 @@ var OCR_REC_DICT = {
65
65
  sizeMb: 1
66
66
  };
67
67
  function getOcrModelsDir() {
68
- return _chunkIM5SIGUNcjs.getModelsDir.call(void 0, "ppocr");
68
+ return _chunk5QMMROCAcjs.getModelsDir.call(void 0, "ppocr");
69
69
  }
70
70
  var DEFAULT_OCR_MODELS = Object.freeze({
71
71
  det: { spec: OCR_DET_MODEL },
@@ -110,7 +110,7 @@ async function ensureOcrModelsFor(sel, onProgress) {
110
110
  if (!stamp || verifiedInProcess.get(path) !== stamp) todo.push(s.spec);
111
111
  }
112
112
  if (!todo.length) return;
113
- await _chunkIM5SIGUNcjs.ensureModelsIn.call(void 0, dir, todo, onProgress);
113
+ await _chunk5QMMROCAcjs.ensureModelsIn.call(void 0, dir, todo, onProgress);
114
114
  for (const spec of todo) {
115
115
  const path = _path.join.call(void 0, dir, spec.filename), stamp = await fileStamp(path);
116
116
  if (stamp) verifiedInProcess.set(path, stamp);
@@ -3201,16 +3201,16 @@ function recordOpenEndCellEdges(grid, cells, horizontals) {
3201
3201
  }
3202
3202
  function takeClipCellEdges(from, to) {
3203
3203
  const e = CLIP_CELL_EDGES.get(from);
3204
- if (e) _chunkV3IMDOZEcjs.CELL_EDGES.set(to, e);
3204
+ if (e) _chunkWNOSEEBHcjs.CELL_EDGES.set(to, e);
3205
3205
  }
3206
3206
  function hasOpenCellSeam(a, b) {
3207
- const u = _chunkV3IMDOZEcjs.CELL_EDGES.get(a), d = _chunkV3IMDOZEcjs.CELL_EDGES.get(b);
3207
+ const u = _chunkWNOSEEBHcjs.CELL_EDGES.get(a), d = _chunkWNOSEEBHcjs.CELL_EDGES.get(b);
3208
3208
  return !!u && !!d && u.t && !u.b && !d.t && d.b && u.l && u.r && d.l && d.r;
3209
3209
  }
3210
3210
  function joinCellEdges(a, b) {
3211
- const u = _chunkV3IMDOZEcjs.CELL_EDGES.get(a), d = _chunkV3IMDOZEcjs.CELL_EDGES.get(b);
3211
+ const u = _chunkWNOSEEBHcjs.CELL_EDGES.get(a), d = _chunkWNOSEEBHcjs.CELL_EDGES.get(b);
3212
3212
  if (!u || !d) return;
3213
- _chunkV3IMDOZEcjs.CELL_EDGES.set(a, { t: u.t, b: d.b, l: u.l || d.l, r: u.r || d.r });
3213
+ _chunkWNOSEEBHcjs.CELL_EDGES.set(a, { t: u.t, b: d.b, l: u.l || d.l, r: u.r || d.r });
3214
3214
  }
3215
3215
 
3216
3216
  // src/pdf/cell-extract.ts
@@ -3386,7 +3386,7 @@ function tagScripts(text, lines) {
3386
3386
  const [s, e, kind] = marks[m];
3387
3387
  out = out.slice(0, s) + `<${kind}>` + out.slice(s, e) + `</${kind}>` + out.slice(e);
3388
3388
  }
3389
- return _chunkV3IMDOZEcjs.tidyScriptTags.call(void 0, out);
3389
+ return _chunkWNOSEEBHcjs.tidyScriptTags.call(void 0, out);
3390
3390
  }
3391
3391
 
3392
3392
  // src/pdf/line-wrap.ts
@@ -4093,9 +4093,9 @@ var ALIGNED_LINE_TOL = 0.5;
4093
4093
  function alignedSubRows(itemsByCol, minLines = MIN_ALIGNED_LINES) {
4094
4094
  const byCol = itemsByCol.map(groupItemsToVisualLines);
4095
4095
  const cols = byCol.filter((lines) => lines.length);
4096
- if (cols.length < MIN_ALIGNED_COLUMNS) return null;
4096
+ if (cols.length < MIN_ALIGNED_COLUMNS) return anchoredSubRows(byCol, minLines);
4097
4097
  const k = cols[0].length;
4098
- if (k < minLines || cols.some((lines) => lines.length !== k)) return null;
4098
+ if (k < minLines || cols.some((lines) => lines.length !== k)) return anchoredSubRows(byCol, minLines);
4099
4099
  const cy = (line) => line.reduce((s, it) => s + itemCenterY(it), 0) / line.length;
4100
4100
  for (let i = 0; i < k; i++) {
4101
4101
  const ys = cols.map((lines) => cy(lines[i]));
@@ -4104,6 +4104,29 @@ function alignedSubRows(itemsByCol, minLines = MIN_ALIGNED_LINES) {
4104
4104
  }
4105
4105
  return Array.from({ length: k }, (_, i) => byCol.map((lines) => lines.length ? cellTextToString(lines[i]) : ""));
4106
4106
  }
4107
+ function anchoredSubRows(byCol, minLines) {
4108
+ if (!byCol.every((lines) => lines.every((line) => line.every((it) => it.fontName === "ocr")))) return null;
4109
+ const a = byCol.reduce((best, lines, c) => lines.length > byCol[best].length ? c : best, 0);
4110
+ const anchor = byCol[a], k = anchor.length;
4111
+ if (k < Math.max(3, minLines) || !byCol.some((lines, c) => c !== a && lines.length >= 2)) return null;
4112
+ const cy = (line) => line.reduce((s, it) => s + itemCenterY(it), 0) / line.length;
4113
+ const ys = anchor.map(cy);
4114
+ const hs = anchor.map((line) => itemHeight(line[0])).sort((x, y) => x - y), h = hs[hs.length >> 1];
4115
+ const rows = Array.from({ length: k }, () => byCol.map(() => ""));
4116
+ for (let c = 0; c < byCol.length; c++) {
4117
+ const used = /* @__PURE__ */ new Set();
4118
+ for (const line of byCol[c]) {
4119
+ const y = cy(line);
4120
+ let j = 0;
4121
+ for (let i = 1; i < k; i++) if (Math.abs(ys[i] - y) < Math.abs(ys[j] - y)) j = i;
4122
+ if (Math.abs(ys[j] - y) > h * ALIGNED_LINE_TOL || used.has(j)) return null;
4123
+ used.add(j);
4124
+ rows[j][c] = cellTextToString(line);
4125
+ if (rows[j][c].includes("\n")) return null;
4126
+ }
4127
+ }
4128
+ return rows;
4129
+ }
4107
4130
  function normalizeUndersegmentedTable(originalCells, colXs, items, rowYs, kept, maxRows = MAX_UNDERSEGMENTED_ROWS, minAlignedLines = MIN_ALIGNED_LINES) {
4108
4131
  const numRows = originalCells.length;
4109
4132
  const numCols = colXs.length - 1;
@@ -6730,9 +6753,9 @@ function detectHeadings(blocks, medianFontSize) {
6730
6753
  if (/^\d+$/.test(text) && !isChapterNumber(block, blocks[bi + 1], medianFontSize)) continue;
6731
6754
  const ratio = block.style.fontSize / medianFontSize;
6732
6755
  let level = 0;
6733
- if (ratio >= _chunkV3IMDOZEcjs.HEADING_RATIO_H1) level = 1;
6734
- else if (ratio >= _chunkV3IMDOZEcjs.HEADING_RATIO_H2) level = 2;
6735
- else if (ratio >= _chunkV3IMDOZEcjs.HEADING_RATIO_H3) level = 3;
6756
+ if (ratio >= _chunkWNOSEEBHcjs.HEADING_RATIO_H1) level = 1;
6757
+ else if (ratio >= _chunkWNOSEEBHcjs.HEADING_RATIO_H2) level = 2;
6758
+ else if (ratio >= _chunkWNOSEEBHcjs.HEADING_RATIO_H3) level = 3;
6736
6759
  if (level > 0) {
6737
6760
  block.type = "heading";
6738
6761
  block.level = level;
@@ -6745,7 +6768,7 @@ function isChapterNumber(block, next, medianFontSize) {
6745
6768
  const nextSize = _nullishCoalesce(_optionalChain([next, 'optionalAccess', _187 => _187.style, 'optionalAccess', _188 => _188.fontSize]), () => ( 0));
6746
6769
  const text = _nullishCoalesce(_optionalChain([next, 'optionalAccess', _189 => _189.text, 'optionalAccess', _190 => _190.trim, 'call', _191 => _191()]), () => ( ""));
6747
6770
  const a = block.bbox, b = _optionalChain([next, 'optionalAccess', _192 => _192.bbox]);
6748
- return /^\d{1,2}$/.test(_nullishCoalesce(_optionalChain([block, 'access', _193 => _193.text, 'optionalAccess', _194 => _194.trim, 'call', _195 => _195()]), () => ( ""))) && size >= medianFontSize * 2.5 && !!next && (next.type === "paragraph" || next.type === "heading") && next.pageNumber === block.pageNumber && nextSize >= medianFontSize * _chunkV3IMDOZEcjs.HEADING_RATIO_H1 && text.length > 0 && text.length <= 80 && !/^[\d\s.]+$/.test(text) && !!a && !!b && a.y > b.y && a.y - (b.y + b.height) <= size * 2;
6771
+ return /^\d{1,2}$/.test(_nullishCoalesce(_optionalChain([block, 'access', _193 => _193.text, 'optionalAccess', _194 => _194.trim, 'call', _195 => _195()]), () => ( ""))) && size >= medianFontSize * 2.5 && !!next && (next.type === "paragraph" || next.type === "heading") && next.pageNumber === block.pageNumber && nextSize >= medianFontSize * _chunkWNOSEEBHcjs.HEADING_RATIO_H1 && text.length > 0 && text.length <= 80 && !/^[\d\s.]+$/.test(text) && !!a && !!b && a.y > b.y && a.y - (b.y + b.height) <= size * 2;
6749
6772
  }
6750
6773
  function mergeStackedHeadingLines(blocks, medianFontSize) {
6751
6774
  for (let i = 0; i < blocks.length - 1; ) {
@@ -8483,16 +8506,16 @@ function isProseSpread(items) {
8483
8506
  for (let i = 1; i < sorted.length; i++) {
8484
8507
  gaps.push(sorted[i].x - (sorted[i - 1].x + sorted[i - 1].w));
8485
8508
  }
8486
- const maxGap = _chunkMANE7HAZcjs.safeMax.call(void 0, gaps);
8509
+ const maxGap = _chunkJZEMASGRcjs.safeMax.call(void 0, gaps);
8487
8510
  const avgLen = items.reduce((s, i) => s + i.text.length, 0) / items.length;
8488
8511
  if (items.length >= 4 && maxGap < 40 && avgLen < 5) return true;
8489
- const minGap = _chunkMANE7HAZcjs.safeMin.call(void 0, gaps);
8512
+ const minGap = _chunkJZEMASGRcjs.safeMin.call(void 0, gaps);
8490
8513
  return minGap > 0 && maxGap - minGap <= Math.max(2, maxGap * 0.15) && (items.filter((i) => /^\P{L}*\p{Ll}/u.test(i.text)).length * 2 >= items.length || items.some((i) => /\p{L}[,.;:]["”’)]?$/u.test(i.text)));
8491
8514
  }
8492
8515
  function detectColumns(yLines) {
8493
8516
  const allItems = yLines.flat();
8494
8517
  if (allItems.length === 0) return null;
8495
- const pageWidth = _chunkMANE7HAZcjs.safeMax.call(void 0, allItems.map((i) => i.x + i.w)) - _chunkMANE7HAZcjs.safeMin.call(void 0, allItems.map((i) => i.x));
8518
+ const pageWidth = _chunkJZEMASGRcjs.safeMax.call(void 0, allItems.map((i) => i.x + i.w)) - _chunkJZEMASGRcjs.safeMin.call(void 0, allItems.map((i) => i.x));
8496
8519
  if (pageWidth < 100) return null;
8497
8520
  let bigoLineIdx = -1;
8498
8521
  for (let i = 0; i < yLines.length; i++) {
@@ -8890,13 +8913,13 @@ function partTex(group) {
8890
8913
  const base = Math.min(...g.filter((i) => i.fontSize >= size * SCRIPT_SIZE_RATIO).map((i) => i.y));
8891
8914
  let s = "", run = "";
8892
8915
  const flush = () => {
8893
- if (run) s += _chunkV3IMDOZEcjs.toTex.call(void 0, run);
8916
+ if (run) s += _chunkWNOSEEBHcjs.toTex.call(void 0, run);
8894
8917
  run = "";
8895
8918
  };
8896
8919
  g.forEach((it, k) => {
8897
8920
  if (it.fontSize < size * SCRIPT_SIZE_RATIO && it.y - base >= size * SCRIPT_RISE_EM) {
8898
8921
  flush();
8899
- s += `^{${_chunkV3IMDOZEcjs.toTex.call(void 0, it.text)}}`;
8922
+ s += `^{${_chunkWNOSEEBHcjs.toTex.call(void 0, it.text)}}`;
8900
8923
  return;
8901
8924
  }
8902
8925
  if (k && it.x - (g[k - 1].x + g[k - 1].w) > spaceGapThreshold(it.fontSize)) run += " ";
@@ -9069,7 +9092,7 @@ function rebuildUnitLine(items, grid) {
9069
9092
  function prependUnitRow(cells, cols, line, usedItems) {
9070
9093
  const text = cleanCellText(line.map((item) => item.text).join(""));
9071
9094
  cells.unshift(Array.from({ length: cols }, (_, c) => ({ text: c === 0 ? text : "", colSpan: c === 0 ? cols : 1, rowSpan: 1 })));
9072
- for (const cell of cells[0]) _chunkV3IMDOZEcjs.CELL_EDGES.set(cell, NO_EDGES);
9095
+ for (const cell of cells[0]) _chunkWNOSEEBHcjs.CELL_EDGES.set(cell, NO_EDGES);
9073
9096
  for (const item of line) usedItems.add(item);
9074
9097
  }
9075
9098
  function attachUnitRow(items, grid, cells, cols, usedItems) {
@@ -9651,7 +9674,7 @@ function recordFrameTitle(table, source, pageNum) {
9651
9674
  const [label, spacer, title] = cells;
9652
9675
  if (!/^(?:붙임|별첨|첨부|부록)\s*\d{1,3}$/.test(label.text.trim()) || spacer.text.trim() || !title.text.trim()) return;
9653
9676
  if (cells.some((c) => {
9654
- const e = _chunkV3IMDOZEcjs.CELL_EDGES.get(c);
9677
+ const e = _chunkWNOSEEBHcjs.CELL_EDGES.get(c);
9655
9678
  return !e || e.t || e.b || e.l || e.r;
9656
9679
  })) return;
9657
9680
  const xs = TABLE_COLXS.get(table), style = dominantStyle(source), fs = _nullishCoalesce(_optionalChain([style, 'optionalAccess', _387 => _387.fontSize]), () => ( 0));
@@ -10140,7 +10163,14 @@ function extractBlocksWithGrids(items, pageNum, pageWidth, pageHeight, grids, ho
10140
10163
  return cs.length > 0 && (_nullishCoalesce(_optionalChain([cs, 'access', _405 => _405.match, 'call', _406 => _406(/[\d.,%()+\-−–—△▲▽▼]/g), 'optionalAccess', _407 => _407.length]), () => ( 0))) >= cs.length * 0.85;
10141
10164
  };
10142
10165
  const bulletList = irGrid.slice(1).flat().some((c) => c.text.split("\n").filter((t) => /^\s*(?:[○◦•□■▪]|-\s*[^\d\s.,−-])/.test(t)).length >= 2);
10143
- return !bulletList && ls.length > 0 && ls.filter(numericLine).length >= ls.length * 0.5;
10166
+ if (bulletList || !ls.length) return false;
10167
+ const share = ls.filter(numericLine).length / ls.length;
10168
+ if (share >= 0.5) return true;
10169
+ const colShares = Array.from({ length: numCols }, (_, c) => {
10170
+ const cl = irGrid.slice(1).flatMap((row) => (_nullishCoalesce(_optionalChain([row, 'access', _408 => _408[c], 'optionalAccess', _409 => _409.text]), () => ( ""))).split("\n")).map((t) => t.trim()).filter(Boolean);
10171
+ return cl.length ? cl.filter(numericLine).length / cl.length : null;
10172
+ }).filter((v) => v !== null);
10173
+ return share >= 0.35 && colShares.some((v) => v >= 0.8) && colShares.every((v) => v >= 0.8 || v <= 0.2);
10144
10174
  })();
10145
10175
  const layoutProse = irGrid.some((row) => row.some((c) => c.colSpan >= numCols - 1 && c.text.length > 60));
10146
10176
  const maxRows = numericBody ? layoutProse ? OCR_NUMERIC_MAX_ROWS_FRAMED : OCR_NUMERIC_MAX_ROWS : 5;
@@ -10159,8 +10189,8 @@ function extractBlocksWithGrids(items, pageNum, pageWidth, pageHeight, grids, ho
10159
10189
  finalGrid = rebuilt.map((row, i) => {
10160
10190
  const o = kept.get(i);
10161
10191
  return row.map((rawText, c) => {
10162
- const src = o === void 0 ? void 0 : _optionalChain([irGrid, 'access', _408 => _408[o], 'optionalAccess', _409 => _409[c]]);
10163
- return { text: cleanCellText(rawText), colSpan: _nullishCoalesce(_optionalChain([src, 'optionalAccess', _410 => _410.colSpan]), () => ( 1)), rowSpan: src ? spanRows(o, src.rowSpan) : 1 };
10192
+ const src = o === void 0 ? void 0 : _optionalChain([irGrid, 'access', _410 => _410[o], 'optionalAccess', _411 => _411[c]]);
10193
+ return { text: cleanCellText(rawText), colSpan: _nullishCoalesce(_optionalChain([src, 'optionalAccess', _412 => _412.colSpan]), () => ( 1)), rowSpan: src ? spanRows(o, src.rowSpan) : 1 };
10164
10194
  });
10165
10195
  });
10166
10196
  finalRows = finalGrid.length;
@@ -10180,14 +10210,14 @@ function extractBlocksWithGrids(items, pageNum, pageWidth, pageHeight, grids, ho
10180
10210
  if (!assignedItems.has(textItems[ti]) && !inExpanded(textItems[ti])) usedItems.delete(owners[ti]);
10181
10211
  }
10182
10212
  }
10183
- if (unitLine.length > 0 && rebuiltUsed && !/^\s*\(\s*단위\s*[::]/.test(_nullishCoalesce(_optionalChain([finalGrid, 'access', _411 => _411[0], 'optionalAccess', _412 => _412[0], 'optionalAccess', _413 => _413.text]), () => ( "")))) {
10213
+ if (unitLine.length > 0 && rebuiltUsed && !/^\s*\(\s*단위\s*[::]/.test(_nullishCoalesce(_optionalChain([finalGrid, 'access', _413 => _413[0], 'optionalAccess', _414 => _414[0], 'optionalAccess', _415 => _415.text]), () => ( "")))) {
10184
10214
  prependUnitRow(finalGrid, numCols, unitLine, usedItems);
10185
10215
  finalRows++;
10186
10216
  }
10187
10217
  if (!rebuiltUsed && attachUnitRow(items, grid, finalGrid, numCols, usedItems)) finalRows++;
10188
10218
  let semanticOneColumn = false;
10189
10219
  if (!grid.cells && !nestedAttached && numCols === 1 && numGridRows >= 2) {
10190
- const populatedRows = finalGrid.filter((row) => _optionalChain([row, 'access', _414 => _414[0], 'optionalAccess', _415 => _415.text, 'access', _416 => _416.trim, 'call', _417 => _417()]));
10220
+ const populatedRows = finalGrid.filter((row) => _optionalChain([row, 'access', _416 => _416[0], 'optionalAccess', _417 => _417.text, 'access', _418 => _418.trim, 'call', _419 => _419()]));
10191
10221
  if (populatedRows.length >= 4) {
10192
10222
  const fontSizes = tableItems.map((item) => item.fontSize).filter((size) => size > 0).sort((a, b) => a - b);
10193
10223
  const medianFont = _nullishCoalesce(fontSizes[Math.floor(fontSizes.length / 2)], () => ( 0));
@@ -10285,7 +10315,7 @@ function extractBlocksWithGrids(items, pageNum, pageWidth, pageHeight, grids, ho
10285
10315
  height: grid.bbox.y2 - grid.bbox.y1
10286
10316
  };
10287
10317
  if (numRows === 1 && numCols === 1 && gridW < pageWidth * 0.35) {
10288
- const prose = _nullishCoalesce(_optionalChain([finalGrid, 'access', _418 => _418[0], 'optionalAccess', _419 => _419[0], 'optionalAccess', _420 => _420.text]), () => ( ""));
10318
+ const prose = _nullishCoalesce(_optionalChain([finalGrid, 'access', _420 => _420[0], 'optionalAccess', _421 => _421[0], 'optionalAccess', _422 => _422.text]), () => ( ""));
10289
10319
  const besideLines = (side) => new Set(side.map((it) => Math.round(it.y / 3))).size;
10290
10320
  const rightLines = items.filter((it) => it.x >= grid.bbox.x2 + 3 && it.y >= grid.bbox.y1 && it.y <= grid.bbox.y2);
10291
10321
  const leftLines = items.filter((it) => it.x + it.w <= grid.bbox.x1 - 3 && it.y >= grid.bbox.y1 && it.y <= grid.bbox.y2);
@@ -10304,8 +10334,8 @@ function extractBlocksWithGrids(items, pageNum, pageWidth, pageHeight, grids, ho
10304
10334
  }
10305
10335
  }
10306
10336
  if (!grid.cells && !nestedAttached && shouldDemoteTable(irTable)) {
10307
- const paragraphs = numRows === 1 && numCols === 1 ? _optionalChain([irTable, 'access', _421 => _421.cells, 'access', _422 => _422[0], 'optionalAccess', _423 => _423[0], 'optionalAccess', _424 => _424.blocks]) : void 0;
10308
- if (_optionalChain([paragraphs, 'optionalAccess', _425 => _425.length])) {
10337
+ const paragraphs = numRows === 1 && numCols === 1 ? _optionalChain([irTable, 'access', _423 => _423.cells, 'access', _424 => _424[0], 'optionalAccess', _425 => _425[0], 'optionalAccess', _426 => _426.blocks]) : void 0;
10338
+ if (_optionalChain([paragraphs, 'optionalAccess', _427 => _427.length])) {
10309
10339
  blocks.push(...paragraphs);
10310
10340
  frameParagraphUnits.push(paragraphs);
10311
10341
  recordFrameReadingUnit(paragraphs, tableBbox);
@@ -10352,7 +10382,7 @@ function extractBlocksWithGrids(items, pageNum, pageWidth, pageHeight, grids, ho
10352
10382
  const clusterResults = (proseColumns ? [] : detectClusterTables(clusterItems, pageNum, void 0, lex)).filter((cr) => {
10353
10383
  const b = cr.bbox;
10354
10384
  const overlapX = (x) => Math.min(x.x + x.width, b.x + b.width) - Math.max(x.x, b.x);
10355
- return !blocks.some((x) => x.bbox && x.bbox.y >= b.y - 2 && x.bbox.y + x.bbox.height <= b.y + b.height + 2 && (x.type === "paragraph" ? (_nullishCoalesce(_optionalChain([x, 'access', _426 => _426.text, 'optionalAccess', _427 => _427.match, 'call', _428 => _428(/\p{L}/gu), 'optionalAccess', _429 => _429.length]), () => ( 0))) >= 10 && overlapX(x.bbox) >= 0.8 * b.width : x.type === "table" && !ocrPage && _optionalChain([x, 'access', _430 => _430.table, 'optionalAccess', _431 => _431.cols]) === cr.table.cols && overlapX(x.bbox) >= 0.5 * Math.min(x.bbox.width, b.width)));
10385
+ return !blocks.some((x) => x.bbox && x.bbox.y >= b.y - 2 && x.bbox.y + x.bbox.height <= b.y + b.height + 2 && (x.type === "paragraph" ? (_nullishCoalesce(_optionalChain([x, 'access', _428 => _428.text, 'optionalAccess', _429 => _429.match, 'call', _430 => _430(/\p{L}/gu), 'optionalAccess', _431 => _431.length]), () => ( 0))) >= 10 && overlapX(x.bbox) >= 0.8 * b.width : x.type === "table" && !ocrPage && _optionalChain([x, 'access', _432 => _432.table, 'optionalAccess', _433 => _433.cols]) === cr.table.cols && overlapX(x.bbox) >= 0.5 * Math.min(x.bbox.width, b.width)));
10356
10386
  });
10357
10387
  if (clusterResults.length > 0) {
10358
10388
  const ciToIdx = /* @__PURE__ */ new Map();
@@ -10389,7 +10419,7 @@ function extractBlocksWithGrids(items, pageNum, pageWidth, pageHeight, grids, ho
10389
10419
  groupSizes.push(1);
10390
10420
  }
10391
10421
  const allY = remaining.map((i) => i.y);
10392
- const pageH = _chunkMANE7HAZcjs.safeMax.call(void 0, allY) - _chunkMANE7HAZcjs.safeMin.call(void 0, allY);
10422
+ const pageH = _chunkJZEMASGRcjs.safeMax.call(void 0, allY) - _chunkJZEMASGRcjs.safeMin.call(void 0, allY);
10393
10423
  const gapThreshold = Math.max(15, pageH * 0.03);
10394
10424
  const sides = frameColumnTextBands(remaining, spanning, gx);
10395
10425
  const textBlocks = [];
@@ -10405,7 +10435,7 @@ function extractBlocksWithGrids(items, pageNum, pageWidth, pageHeight, grids, ho
10405
10435
  finalTextBlocks.push(...detectListBlocks(textBlocks));
10406
10436
  } else {
10407
10437
  const allY = remaining.map((i) => i.y);
10408
- const pageH = _chunkMANE7HAZcjs.safeMax.call(void 0, allY) - _chunkMANE7HAZcjs.safeMin.call(void 0, allY);
10438
+ const pageH = _chunkJZEMASGRcjs.safeMax.call(void 0, allY) - _chunkJZEMASGRcjs.safeMin.call(void 0, allY);
10409
10439
  const gapThreshold = Math.max(15, pageH * 0.03);
10410
10440
  const groups = xyCutOrder(remaining, gapThreshold);
10411
10441
  const textBlocks = [];
@@ -10741,7 +10771,7 @@ function extractPageBlocksFallback(items, pageNum, fullPage = false, detectTable
10741
10771
  blocks.push(...columnTextToBlocks(tableText, pageNum, bbox, dominantStyle(items)));
10742
10772
  } else {
10743
10773
  const allY = items.map((i) => i.y);
10744
- const pageHeight = _chunkMANE7HAZcjs.safeMax.call(void 0, allY) - _chunkMANE7HAZcjs.safeMin.call(void 0, allY);
10774
+ const pageHeight = _chunkJZEMASGRcjs.safeMax.call(void 0, allY) - _chunkJZEMASGRcjs.safeMin.call(void 0, allY);
10745
10775
  const gapThreshold = Math.max(15, pageHeight * 0.03);
10746
10776
  const orderedGroups = proseCutX !== null ? splitTwoColumnProse(items, proseCutX) : xyCutOrder(items, gapThreshold, 0, void 0, minGap);
10747
10777
  for (const group of orderedGroups) {
@@ -10773,19 +10803,19 @@ function mergeOcrImageRegions(blocks, page, regions, ocrBlocks) {
10773
10803
  const overlapH = Math.max(0, Math.min(b.y + b.height, region.y2) - Math.max(b.y, region.y1));
10774
10804
  return overlapW * overlapH >= b.width * b.height * 0.8;
10775
10805
  });
10776
- const labels = candidates.filter((b) => b.type === "paragraph" && b.bbox.height <= 24 && (_nullishCoalesce(_optionalChain([b, 'access', _432 => _432.text, 'optionalAccess', _433 => _433.match, 'call', _434 => _434(/[\p{L}\p{N}]/gu), 'optionalAccess', _435 => _435.length]), () => ( 0))) >= 2);
10806
+ const labels = candidates.filter((b) => b.type === "paragraph" && b.bbox.height <= 24 && (_nullishCoalesce(_optionalChain([b, 'access', _434 => _434.text, 'optionalAccess', _435 => _435.match, 'call', _436 => _436(/[\p{L}\p{N}]/gu), 'optionalAccess', _437 => _437.length]), () => ( 0))) >= 2);
10777
10807
  const axisFragments = rotatedAxisFragments(candidates);
10778
10808
  const accepted = candidates.filter((b) => {
10779
- if (b.type === "paragraph") return (_nullishCoalesce(_optionalChain([b, 'access', _436 => _436.text, 'optionalAccess', _437 => _437.match, 'call', _438 => _438(/[\p{L}\p{N}]/gu), 'optionalAccess', _439 => _439.length]), () => ( 0))) >= 2 || !axisFragments.has(b) && (supportedDiagramLabel(b, labels, region) || axisTick(b, candidates));
10809
+ if (b.type === "paragraph") return (_nullishCoalesce(_optionalChain([b, 'access', _438 => _438.text, 'optionalAccess', _439 => _439.match, 'call', _440 => _440(/[\p{L}\p{N}]/gu), 'optionalAccess', _441 => _441.length]), () => ( 0))) >= 2 || !axisFragments.has(b) && (supportedDiagramLabel(b, labels, region) || axisTick(b, candidates));
10780
10810
  const t = b.table;
10781
10811
  if (b.type !== "table" || !t || UNRULED_REGION_TABLES.has(b)) return false;
10782
10812
  const lone = t.cells.filter((row) => row.filter((c) => c.text.trim()).length === 1 && row.some((c) => c.colSpan === t.cols)).length;
10783
10813
  if (t.rows >= 2 && lone * 2 >= t.rows) return false;
10784
10814
  if (t.rows === 1 && t.cols === 1) {
10785
- const text = _nullishCoalesce(_optionalChain([t, 'access', _440 => _440.cells, 'access', _441 => _441[0], 'optionalAccess', _442 => _442[0], 'optionalAccess', _443 => _443.text]), () => ( ""));
10786
- return (_nullishCoalesce(_optionalChain([text, 'access', _444 => _444.match, 'call', _445 => _445(/\n/g), 'optionalAccess', _446 => _446.length]), () => ( 0))) >= 5 && (_nullishCoalesce(_optionalChain([text, 'access', _447 => _447.match, 'call', _448 => _448(/\d/g), 'optionalAccess', _449 => _449.length]), () => ( 0))) >= text.length * 0.25;
10815
+ const text = _nullishCoalesce(_optionalChain([t, 'access', _442 => _442.cells, 'access', _443 => _443[0], 'optionalAccess', _444 => _444[0], 'optionalAccess', _445 => _445.text]), () => ( ""));
10816
+ return (_nullishCoalesce(_optionalChain([text, 'access', _446 => _446.match, 'call', _447 => _447(/\n/g), 'optionalAccess', _448 => _448.length]), () => ( 0))) >= 5 && (_nullishCoalesce(_optionalChain([text, 'access', _449 => _449.match, 'call', _450 => _450(/\d/g), 'optionalAccess', _451 => _451.length]), () => ( 0))) >= text.length * 0.25;
10787
10817
  }
10788
- const headerLabels = _nullishCoalesce(_optionalChain([t, 'access', _450 => _450.cells, 'access', _451 => _451[0], 'optionalAccess', _452 => _452.filter, 'call', _453 => _453((c) => c.text.replace(/[^A-Za-z가-힣]/g, "").length >= 2), 'access', _454 => _454.length]), () => ( 0));
10818
+ const headerLabels = _nullishCoalesce(_optionalChain([t, 'access', _452 => _452.cells, 'access', _453 => _453[0], 'optionalAccess', _454 => _454.filter, 'call', _455 => _455((c) => c.text.replace(/[^A-Za-z가-힣]/g, "").length >= 2), 'access', _456 => _456.length]), () => ( 0));
10789
10819
  return t.rows >= 2 && t.cols >= 2 && headerLabels >= t.cols * 0.75 && t.cells.slice(1).some((row) => row.filter((c) => c.text.trim()).length >= 2);
10790
10820
  });
10791
10821
  const selected = candidates.flatMap((b) => accepted.includes(b) ? [b] : b.type === "table" && b.table ? rowParagraphs(b).filter((p) => /[\p{L}\p{N}]{2}/u.test(_nullishCoalesce(p.text, () => ( "")))) : []);
@@ -10802,14 +10832,14 @@ function mergeOcrImageRegions(blocks, page, regions, ocrBlocks) {
10802
10832
  for (const block of selected) {
10803
10833
  if (seen2.has(block)) continue;
10804
10834
  const frame = FRAME_READING_UNITS.get(block);
10805
- const source = _optionalChain([frame, 'optionalAccess', _455 => _455.blocks, 'access', _456 => _456.every, 'call', _457 => _457((member) => selectedSet.has(member))]) ? frame.blocks : [block];
10835
+ const source = _optionalChain([frame, 'optionalAccess', _457 => _457.blocks, 'access', _458 => _458.every, 'call', _459 => _459((member) => selectedSet.has(member))]) ? frame.blocks : [block];
10806
10836
  source.forEach((member) => seen2.add(member));
10807
10837
  const available = source.filter((member) => !hasOriginal(member));
10808
10838
  const units = frame && available.length === source.length && source === frame.blocks ? [{ blocks: available, bbox: frame.bbox, atomic: true }] : available.map((member) => ({ blocks: [member], bbox: member.bbox, atomic: false }));
10809
10839
  for (const unit of units) {
10810
10840
  const b = unit.bbox;
10811
10841
  const index = blocks.findIndex((existing) => {
10812
- const e = _nullishCoalesce(_optionalChain([FRAME_READING_UNITS, 'access', _458 => _458.get, 'call', _459 => _459(existing), 'optionalAccess', _460 => _460.bbox]), () => ( existing.bbox));
10842
+ const e = _nullishCoalesce(_optionalChain([FRAME_READING_UNITS, 'access', _460 => _460.get, 'call', _461 => _461(existing), 'optionalAccess', _462 => _462.bbox]), () => ( existing.bbox));
10813
10843
  if (existing.pageNumber !== page || !e) return false;
10814
10844
  const beside = e.y < region.y2 && e.y + e.height > region.y1 && e.x >= region.x2 - 1;
10815
10845
  if (placedHere.has(existing) && Math.abs(e.y + e.height / 2 - b.y - b.height / 2) <= Math.min(e.height, b.height) * 0.25) return e.x > b.x;
@@ -10827,16 +10857,16 @@ function mergeOcrImageRegions(blocks, page, regions, ocrBlocks) {
10827
10857
  }
10828
10858
  function axisTick(block, candidates) {
10829
10859
  const b = block.bbox;
10830
- if (!/^\d$/u.test(_nullishCoalesce(_optionalChain([block, 'access', _461 => _461.text, 'optionalAccess', _462 => _462.trim, 'call', _463 => _463()]), () => ( "")))) return false;
10831
- const numeric = candidates.filter((o) => o !== block && o.type === "paragraph" && o.bbox && /^[\d\s.,%+−-]+$/u.test(_nullishCoalesce(_optionalChain([o, 'access', _464 => _464.text, 'optionalAccess', _465 => _465.trim, 'call', _466 => _466()]), () => ( ""))) && /\d/u.test(_nullishCoalesce(o.text, () => ( ""))) && Math.max(o.bbox.height, b.height) <= Math.min(o.bbox.height, b.height) * 2);
10860
+ if (!/^\d$/u.test(_nullishCoalesce(_optionalChain([block, 'access', _463 => _463.text, 'optionalAccess', _464 => _464.trim, 'call', _465 => _465()]), () => ( "")))) return false;
10861
+ const numeric = candidates.filter((o) => o !== block && o.type === "paragraph" && o.bbox && /^[\d\s.,%+−-]+$/u.test(_nullishCoalesce(_optionalChain([o, 'access', _466 => _466.text, 'optionalAccess', _467 => _467.trim, 'call', _468 => _468()]), () => ( ""))) && /\d/u.test(_nullishCoalesce(o.text, () => ( ""))) && Math.max(o.bbox.height, b.height) <= Math.min(o.bbox.height, b.height) * 2);
10832
10862
  const cy = b.y + b.height / 2, right = b.x + b.width;
10833
10863
  const row = numeric.filter((o) => Math.abs(o.bbox.y + o.bbox.height / 2 - cy) <= Math.min(o.bbox.height, b.height) * 0.35);
10834
10864
  const column = numeric.filter((o) => Math.abs(o.bbox.x + o.bbox.width - right) <= Math.max(o.bbox.height, b.height) * 0.5);
10835
10865
  return row.length >= 2 || column.length >= 2;
10836
10866
  }
10837
10867
  function supportedDiagramLabel(block, labels, region) {
10838
- const b = block.bbox, text = _nullishCoalesce(_optionalChain([block, 'access', _467 => _467.text, 'optionalAccess', _468 => _468.trim, 'call', _469 => _469()]), () => ( ""));
10839
- if (!b || !/^[\p{L}\p{N}]$/u.test(text) || b.height < 4 || b.width < 1 || b.width > b.height * 2 || b.x < region.x1 || b.y < region.y1 || b.x + b.width > region.x2 || b.y + b.height > region.y2 || b.width * b.height > (region.x2 - region.x1) * (region.y2 - region.y1) * 5e-3 || labels.length < 3 || !labels.some((l) => /\p{L}{3}/u.test(_nullishCoalesce(l.text, () => ( "")))) || labels.filter((l) => !/\p{L}/u.test(_nullishCoalesce(l.text, () => ( ""))) && (_nullishCoalesce(_optionalChain([l, 'access', _470 => _470.text, 'optionalAccess', _471 => _471.match, 'call', _472 => _472(/\p{N}/gu), 'optionalAccess', _473 => _473.length]), () => ( 0))) >= 2).length < 2) return false;
10868
+ const b = block.bbox, text = _nullishCoalesce(_optionalChain([block, 'access', _469 => _469.text, 'optionalAccess', _470 => _470.trim, 'call', _471 => _471()]), () => ( ""));
10869
+ if (!b || !/^[\p{L}\p{N}]$/u.test(text) || b.height < 4 || b.width < 1 || b.width > b.height * 2 || b.x < region.x1 || b.y < region.y1 || b.x + b.width > region.x2 || b.y + b.height > region.y2 || b.width * b.height > (region.x2 - region.x1) * (region.y2 - region.y1) * 5e-3 || labels.length < 3 || !labels.some((l) => /\p{L}{3}/u.test(_nullishCoalesce(l.text, () => ( "")))) || labels.filter((l) => !/\p{L}/u.test(_nullishCoalesce(l.text, () => ( ""))) && (_nullishCoalesce(_optionalChain([l, 'access', _472 => _472.text, 'optionalAccess', _473 => _473.match, 'call', _474 => _474(/\p{N}/gu), 'optionalAccess', _475 => _475.length]), () => ( 0))) >= 2).length < 2) return false;
10840
10870
  let above = false, below = false;
10841
10871
  for (const label of labels) {
10842
10872
  const a = label.bbox, em = Math.max(b.height, a.height);
@@ -10851,7 +10881,7 @@ function rotatedAxisFragments(candidates) {
10851
10881
  const paragraphs = candidates.filter((b) => b.type === "paragraph" && b.bbox.height <= 24);
10852
10882
  const axes = [];
10853
10883
  for (const block of paragraphs) {
10854
- const b = block.bbox, text = _nullishCoalesce(_optionalChain([block, 'access', _474 => _474.text, 'optionalAccess', _475 => _475.trim, 'call', _476 => _476()]), () => ( ""));
10884
+ const b = block.bbox, text = _nullishCoalesce(_optionalChain([block, 'access', _476 => _476.text, 'optionalAccess', _477 => _477.trim, 'call', _478 => _478()]), () => ( ""));
10855
10885
  if (!/^[\d\s.,%+−-]+$/u.test(text) || !/\d/u.test(text) || b.width > b.height * 6) continue;
10856
10886
  const axis = axes.find((a) => Math.abs(a[0].bbox.x + a[0].bbox.width - b.x - b.width) <= Math.max(a[0].bbox.height, b.height) * 0.5);
10857
10887
  if (axis) axis.push(block);
@@ -10868,8 +10898,8 @@ function rotatedAxisFragments(candidates) {
10868
10898
  const em = Math.max(...axis.map((a) => a.bbox.height)), right = axis[0].bbox.x + axis[0].bbox.width;
10869
10899
  if (top - bottom < em * 6) continue;
10870
10900
  const left = paragraphs.filter((block) => {
10871
- const b = block.bbox, text = _nullishCoalesce(_optionalChain([block, 'access', _477 => _477.text, 'optionalAccess', _478 => _478.trim, 'call', _479 => _479()]), () => ( ""));
10872
- return /\p{Script=Latin}/u.test(text) && (_nullishCoalesce(_optionalChain([text, 'access', _480 => _480.match, 'call', _481 => _481(/[\p{L}\p{N}]/gu), 'optionalAccess', _482 => _482.length]), () => ( 0))) <= 3 && b.width <= b.height * 3 && b.x + b.width >= right - em * 6 && b.x + b.width <= right - Math.max(em, b.height) && b.y >= bottom && b.y + b.height <= top;
10901
+ const b = block.bbox, text = _nullishCoalesce(_optionalChain([block, 'access', _479 => _479.text, 'optionalAccess', _480 => _480.trim, 'call', _481 => _481()]), () => ( ""));
10902
+ return /\p{Script=Latin}/u.test(text) && (_nullishCoalesce(_optionalChain([text, 'access', _482 => _482.match, 'call', _483 => _483(/[\p{L}\p{N}]/gu), 'optionalAccess', _484 => _484.length]), () => ( 0))) <= 3 && b.width <= b.height * 3 && b.x + b.width >= right - em * 6 && b.x + b.width <= right - Math.max(em, b.height) && b.y >= bottom && b.y + b.height <= top;
10873
10903
  });
10874
10904
  const stack = left.filter((a) => left.some((b) => {
10875
10905
  if (a === b || !aligned(a, b)) return false;
@@ -10879,7 +10909,7 @@ function rotatedAxisFragments(candidates) {
10879
10909
  if (stack.length < 2) continue;
10880
10910
  for (const block of paragraphs) {
10881
10911
  const b = block.bbox;
10882
- if (b.y >= bottom && b.y + b.height <= top && b.x + b.width >= right - em * 6 && b.x + b.width <= right - Math.max(em, b.height) && /^[\p{L}\p{N}]$/u.test(_nullishCoalesce(_optionalChain([block, 'access', _483 => _483.text, 'optionalAccess', _484 => _484.trim, 'call', _485 => _485()]), () => ( ""))) && stack.some((s) => aligned(s, block))) fragments.add(block);
10912
+ if (b.y >= bottom && b.y + b.height <= top && b.x + b.width >= right - em * 6 && b.x + b.width <= right - Math.max(em, b.height) && /^[\p{L}\p{N}]$/u.test(_nullishCoalesce(_optionalChain([block, 'access', _485 => _485.text, 'optionalAccess', _486 => _486.trim, 'call', _487 => _487()]), () => ( ""))) && stack.some((s) => aligned(s, block))) fragments.add(block);
10883
10913
  }
10884
10914
  }
10885
10915
  return fragments;
@@ -10984,4 +11014,4 @@ function rowParagraphs(block) {
10984
11014
 
10985
11015
 
10986
11016
  exports.DEFAULT_OCR_MODELS = DEFAULT_OCR_MODELS; exports.resolveOcrModels = resolveOcrModels; exports.handwritingFallbackModels = handwritingFallbackModels; exports.ocrSelectionKey = ocrSelectionKey; exports.ocrSourcePath = ocrSourcePath; exports.ensureOcrModelsFor = ensureOcrModelsFor; exports.ocrModelsCached = ocrModelsCached; exports.parseCharacterDict = parseCharacterDict; exports.grayCrop = grayCrop; exports.inkStats = inkStats; exports.splitRowBands = splitRowBands; exports.leadingTriangle = leadingTriangle; exports.arrowGlyph = arrowGlyph; exports.leaderRuns = leaderRuns; exports.inkBounds = inkBounds; exports.bracketFeatures = bracketFeatures; exports.slantedPair = slantedPair; exports.romanStems = romanStems; exports.circledAt = circledAt; exports.quoteHead = quoteHead; exports.edgeTrim = edgeTrim; exports.tallInkCount = tallInkCount; exports.gapGlyphs = gapGlyphs; exports.ringBullet = ringBullet; exports.dashRatio = dashRatio; exports.leadingRing = leadingRing; exports.discAt = discAt; exports.serifOne = serifOne; exports.starRun = starRun; exports.bracketShape = bracketShape; exports.leadingBullet = leadingBullet; exports.rememberOcrTextGaps = rememberOcrTextGaps; exports.copyOcrTextGaps = copyOcrTextGaps; exports.findOcrTextGaps = findOcrTextGaps; exports.extractLines = extractLines; exports.extractImageRegions = extractImageRegions; exports.NO_EDGES = NO_EDGES; exports.hasOpenCellSeam = hasOpenCellSeam; exports.joinCellEdges = joinCellEdges; exports.filterHiddenText = filterHiddenText; exports.collapseEvenSpacing = collapseEvenSpacing; exports.computeBBox = computeBBox; exports.dominantStyle = dominantStyle; exports.normalizeItems = normalizeItems; exports.groupByY = groupByY; exports.mergeLineSimple = mergeLineSimple; exports.WrapLexicon = WrapLexicon; exports.startsNewItem = startsNewItem; exports.wrapJoiner = wrapJoiner; exports.joinPageBreakWraps = joinPageBreakWraps; exports.splitPageBreakWraps = splitPageBreakWraps; exports.latinSoftWrap = latinSoftWrap; exports.TOC_BLOCKS = TOC_BLOCKS; exports.computeMedianFontSizeFromFreq = computeMedianFontSizeFromFreq; exports.detectHeadings = detectHeadings; exports.mergeStackedHeadingLines = mergeStackedHeadingLines; exports.detectTypographyHeadings = detectTypographyHeadings; exports.detectDocumentStyleHeadings = detectDocumentStyleHeadings; exports.detectSiblingStyleHeadings = detectSiblingStyleHeadings; exports.detectRepeatedPageLabels = detectRepeatedPageLabels; exports.detectPageLeadHeadings = detectPageLeadHeadings; exports.refineDocumentStyleHeadings = refineDocumentStyleHeadings; exports.detectMarkerHeadings = detectMarkerHeadings; exports.detectTableCaptions = detectTableCaptions; exports.detectKoreanListBlocks = detectKoreanListBlocks; exports.removeHeaderFooterBlocks = removeHeaderFooterBlocks; exports.runningLinePatterns = runningLinePatterns; exports.stripAbsorbedRunningLines = stripAbsorbedRunningLines; exports.CLIP_TABLES = CLIP_TABLES; exports.FRAME_TITLE_BLOCKS = FRAME_TITLE_BLOCKS; exports.TABLE_COLXS = TABLE_COLXS; exports.TABLE_ROWYS = TABLE_ROWYS; exports.TABLE_TAIL = TABLE_TAIL; exports.PART_COLXS = PART_COLXS; exports.EMPTY_PARTS = EMPTY_PARTS; exports.IMAGE_CELLS = IMAGE_CELLS; exports.FILLER_CELLS = FILLER_CELLS; exports.CONT_PARTS = CONT_PARTS; exports.CELL_LINES = CELL_LINES; exports.ROW_RULES = ROW_RULES; exports.trimTrailingEmptyTableCols = trimTrailingEmptyTableCols; exports.restoreImageBullets = restoreImageBullets; exports.detectRightArrowRegions = detectRightArrowRegions; exports.removeSideTabs = removeSideTabs; exports.extractPageBlocksWithLines = extractPageBlocksWithLines; exports.UNRULED_REGION_TABLES = UNRULED_REGION_TABLES; exports.mergeOcrImageRegions = mergeOcrImageRegions;
10987
- //# sourceMappingURL=chunk-XYVTCXAG.cjs.map
11017
+ //# sourceMappingURL=chunk-HJGKVI7D.cjs.map