kordoc 4.24.66 → 4.24.67

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 (176) hide show
  1. package/README.md +4 -4
  2. package/dist/{-F525UPLU.js → -7TPBQODI.js} +21 -21
  3. package/dist/{chunk-2XL56JBH.js → chunk-3AEPELHI.js} +10 -10
  4. package/dist/{chunk-3UBJILCL.js → chunk-3Q7VWFSC.js} +2 -2
  5. package/dist/{chunk-ADVM2BSC.js → chunk-4RRWKO2T.js} +3 -3
  6. package/dist/{chunk-EKLKGFW3.js → chunk-4YLZR2X6.js} +2 -2
  7. package/dist/{chunk-RXE7BWTU.js → chunk-5Z2TRKU7.js} +2 -2
  8. package/dist/{chunk-JWPSOXBE.cjs → chunk-6RA4KZHK.cjs} +8 -8
  9. package/dist/{chunk-JWPSOXBE.cjs.map → chunk-6RA4KZHK.cjs.map} +1 -1
  10. package/dist/{chunk-DQAHD7AV.js → chunk-73EKNKTF.js} +2 -2
  11. package/dist/{chunk-TW7LJ4CT.js → chunk-7TYITQPR.js} +2 -2
  12. package/dist/{chunk-AQ2MNHLW.js → chunk-7ULJRLAV.js} +4 -4
  13. package/dist/{chunk-7VOBRIAX.js → chunk-B4ILQPEH.js} +2 -2
  14. package/dist/{chunk-S2KMYEFM.js → chunk-DHYKBCDL.js} +2 -2
  15. package/dist/{chunk-AKHGU46M.js → chunk-DUPB5XGN.js} +7 -7
  16. package/dist/{chunk-WD5KO2FI.cjs → chunk-E7QOWHAY.cjs} +51 -30
  17. package/dist/chunk-E7QOWHAY.cjs.map +1 -0
  18. package/dist/{chunk-WL6FHOXS.cjs → chunk-FABG65BG.cjs} +2 -2
  19. package/dist/{chunk-WL6FHOXS.cjs.map → chunk-FABG65BG.cjs.map} +1 -1
  20. package/dist/{chunk-JDLRNVPW.js → chunk-FARHGCF2.js} +2 -2
  21. package/dist/{chunk-MJBGYWZE.cjs → chunk-FIR4AEWA.cjs} +104 -104
  22. package/dist/{chunk-MJBGYWZE.cjs.map → chunk-FIR4AEWA.cjs.map} +1 -1
  23. package/dist/{chunk-CFQG5H5S.js → chunk-FYAFEINW.js} +2 -2
  24. package/dist/{chunk-6I5IGEH5.js → chunk-GJMIO344.js} +2 -2
  25. package/dist/{chunk-JTBGDI7W.js → chunk-HFER3UG6.js} +29 -8
  26. package/dist/chunk-HFER3UG6.js.map +1 -0
  27. package/dist/{chunk-O62APXCV.js → chunk-HHKGOBE2.js} +5 -5
  28. package/dist/{chunk-ZLZ3XYNR.cjs → chunk-HY3O6EDL.cjs} +3 -3
  29. package/dist/{chunk-ZLZ3XYNR.cjs.map → chunk-HY3O6EDL.cjs.map} +1 -1
  30. package/dist/{chunk-U5BSGXWG.js → chunk-JS6P3636.js} +3 -3
  31. package/dist/{chunk-V5AGFLMV.js → chunk-K23AEIDZ.js} +15 -15
  32. package/dist/{chunk-4UU2SHSY.js → chunk-L5GKQX4P.js} +30 -9
  33. package/dist/chunk-L5GKQX4P.js.map +1 -0
  34. package/dist/{chunk-X2JWEVBD.js → chunk-LLQAB3SS.js} +6 -6
  35. package/dist/{chunk-4AQEYIQ3.js → chunk-MKDM6JB4.js} +2 -2
  36. package/dist/{chunk-QN6WSJVU.cjs → chunk-MT5WGKV7.cjs} +58 -58
  37. package/dist/{chunk-QN6WSJVU.cjs.map → chunk-MT5WGKV7.cjs.map} +1 -1
  38. package/dist/{chunk-PHWKC6UC.js → chunk-NMRQGQML.js} +3 -3
  39. package/dist/{chunk-THKLA33K.js → chunk-NOWCGRKY.js} +2 -2
  40. package/dist/{chunk-JMCNY622.cjs → chunk-OFWBSK6D.cjs} +88 -88
  41. package/dist/{chunk-JMCNY622.cjs.map → chunk-OFWBSK6D.cjs.map} +1 -1
  42. package/dist/{chunk-727NQOEV.js → chunk-OILA3YTC.js} +2 -2
  43. package/dist/{chunk-S532VXZW.js → chunk-OMFCOSBY.js} +2 -2
  44. package/dist/{chunk-E3MKUDIV.js → chunk-Q2O6KEL3.js} +2 -2
  45. package/dist/{chunk-R4JIQ5TC.js → chunk-QZTECR6E.js} +2 -2
  46. package/dist/{chunk-CNM5LSE2.js → chunk-SBJ4MJDD.js} +2 -2
  47. package/dist/{chunk-TLN3QVS3.js → chunk-SOAIESRF.js} +5 -5
  48. package/dist/{chunk-RN46L3AU.js → chunk-T7RMYBYP.js} +6 -6
  49. package/dist/{chunk-SMPW433I.js → chunk-TYE5W7RJ.js} +2 -2
  50. package/dist/{chunk-64EE67KV.cjs → chunk-UXWQYWSJ.cjs} +3 -3
  51. package/dist/{chunk-64EE67KV.cjs.map → chunk-UXWQYWSJ.cjs.map} +1 -1
  52. package/dist/{chunk-QPEOOQV5.js → chunk-WECXPIBP.js} +2 -2
  53. package/dist/{chunk-NHTQRDJ6.js → chunk-WGUANGGA.js} +11 -11
  54. package/dist/{chunk-RDNYND2I.js → chunk-XV554HLH.js} +5 -5
  55. package/dist/{chunk-VUVENRQF.js → chunk-ZT2YHDRX.js} +3 -3
  56. package/dist/chunks-XSXJ7WHX.js +11 -0
  57. package/dist/cli.js +45 -45
  58. package/dist/{formula-HKMKULZI.cjs → formula-2IC5OKZ6.cjs} +9 -9
  59. package/dist/{formula-HKMKULZI.cjs.map → formula-2IC5OKZ6.cjs.map} +1 -1
  60. package/dist/{formula-DNEIS4K3.js → formula-7ZWQ6LS2.js} +3 -3
  61. package/dist/{formula-Z6MQKJK4.js → formula-OKSR2NJY.js} +4 -4
  62. package/dist/generator-6YIOSSFN.cjs +12 -0
  63. package/dist/{generator-LGPN5WJF.cjs.map → generator-6YIOSSFN.cjs.map} +1 -1
  64. package/dist/generator-GYR4PZAJ.js +18 -0
  65. package/dist/generator-HAJKBJRD.js +11 -0
  66. package/dist/{hancom-EKGYO3DR.js → hancom-42PJQLYF.js} +2 -2
  67. package/dist/{hancom-UA3FAKPN.js → hancom-PBWLHPG6.js} +2 -2
  68. package/dist/{hancom-DYJIMXYD.cjs → hancom-RM65BNHD.cjs} +5 -5
  69. package/dist/{hancom-DYJIMXYD.cjs.map → hancom-RM65BNHD.cjs.map} +1 -1
  70. package/dist/{image-ocr-AEJC2HYX.js → image-ocr-B32JZFLP.js} +7 -7
  71. package/dist/{image-ocr-PZ2U43B5.cjs → image-ocr-IIPN7IH6.cjs} +28 -28
  72. package/dist/{image-ocr-PZ2U43B5.cjs.map → image-ocr-IIPN7IH6.cjs.map} +1 -1
  73. package/dist/{image-ocr-V5ULS7PL.js → image-ocr-S4U3UXRJ.js} +10 -10
  74. package/dist/index.cjs +1115 -1115
  75. package/dist/index.js +9 -9
  76. package/dist/mcp.js +36 -36
  77. package/dist/memo-ZQOVJ7UJ.js +17 -0
  78. package/dist/{model-bundle-OYH3ZTJK.js → model-bundle-MJJ73AEH.js} +5 -5
  79. package/dist/{models-52726NXY.js → models-G4JXJ2ON.js} +5 -5
  80. package/dist/{parse-worker-v2-5C3VXRFT.js → parse-worker-v2-TLTNAXAZ.js} +22 -22
  81. package/dist/{parser-Y3F7ULSO.cjs → parser-OXRSENMG.cjs} +166 -166
  82. package/dist/{parser-Y3F7ULSO.cjs.map → parser-OXRSENMG.cjs.map} +1 -1
  83. package/dist/{parser-L55CW5GW.js → parser-TWCVEECS.js} +9 -9
  84. package/dist/{parser-4EIBYZUS.js → parser-YQA3F7IL.js} +12 -12
  85. package/dist/{pdf-ocr-DO3GQSVO.js → pdf-ocr-2BQ4ME6Y.js} +6 -6
  86. package/dist/{pdf-ocr-4XG2GDWK.js → pdf-ocr-BA5LM535.js} +9 -9
  87. package/dist/pdf-ocr-GKN76Y2W.cjs +43 -0
  88. package/dist/{pdf-ocr-6DDEOYWS.cjs.map → pdf-ocr-GKN76Y2W.cjs.map} +1 -1
  89. package/dist/{profile-io-J4BGPXD6.js → profile-io-PBYC4MTQ.js} +3 -3
  90. package/dist/{rasterize-2BD3ST5L.js → rasterize-B3H32G23.js} +3 -3
  91. package/dist/{redact-doc-T5ZO5BUF.js → redact-doc-QY7DXOQE.js} +21 -21
  92. package/dist/{render-XHAEGFDS.js → render-SRJ6ZIYE.js} +12 -12
  93. package/dist/{rewrite-fallback-GDC6ISST.js → rewrite-fallback-WVGGZ2QV.js} +13 -13
  94. package/dist/seal-J7SSWMVR.js +16 -0
  95. package/dist/{setup-JAH3DJMB.js → setup-EHHJHPIQ.js} +3 -3
  96. package/dist/{to-hwpx-HQLTHIOW.js → to-hwpx-BYNLZ2U3.js} +4 -4
  97. package/dist/{to-hwpx-FU5MRESY.js → to-hwpx-ESTHBOHH.js} +7 -7
  98. package/dist/to-hwpx-Y53M4SSD.cjs +16 -0
  99. package/dist/{to-hwpx-CBFKBA26.cjs.map → to-hwpx-Y53M4SSD.cjs.map} +1 -1
  100. package/dist/visual-DVJGGPVU.js +38 -0
  101. package/dist/{watch-52TBPFGB.js → watch-KJMMJVZ4.js} +22 -22
  102. package/package.json +1 -1
  103. package/dist/chunk-4UU2SHSY.js.map +0 -1
  104. package/dist/chunk-JTBGDI7W.js.map +0 -1
  105. package/dist/chunk-WD5KO2FI.cjs.map +0 -1
  106. package/dist/chunks-4IEOCUKM.js +0 -11
  107. package/dist/generator-54YDTC4H.js +0 -11
  108. package/dist/generator-LGPN5WJF.cjs +0 -12
  109. package/dist/generator-ZECPB7JM.js +0 -18
  110. package/dist/memo-WGP7QJ7M.js +0 -17
  111. package/dist/pdf-ocr-6DDEOYWS.cjs +0 -43
  112. package/dist/seal-DDP5FWKY.js +0 -16
  113. package/dist/to-hwpx-CBFKBA26.cjs +0 -16
  114. package/dist/visual-TYA7MDHZ.js +0 -38
  115. /package/dist/{-F525UPLU.js.map → -7TPBQODI.js.map} +0 -0
  116. /package/dist/{chunk-2XL56JBH.js.map → chunk-3AEPELHI.js.map} +0 -0
  117. /package/dist/{chunk-3UBJILCL.js.map → chunk-3Q7VWFSC.js.map} +0 -0
  118. /package/dist/{chunk-ADVM2BSC.js.map → chunk-4RRWKO2T.js.map} +0 -0
  119. /package/dist/{chunk-EKLKGFW3.js.map → chunk-4YLZR2X6.js.map} +0 -0
  120. /package/dist/{chunk-RXE7BWTU.js.map → chunk-5Z2TRKU7.js.map} +0 -0
  121. /package/dist/{chunk-DQAHD7AV.js.map → chunk-73EKNKTF.js.map} +0 -0
  122. /package/dist/{chunk-TW7LJ4CT.js.map → chunk-7TYITQPR.js.map} +0 -0
  123. /package/dist/{chunk-AQ2MNHLW.js.map → chunk-7ULJRLAV.js.map} +0 -0
  124. /package/dist/{chunk-7VOBRIAX.js.map → chunk-B4ILQPEH.js.map} +0 -0
  125. /package/dist/{chunk-S2KMYEFM.js.map → chunk-DHYKBCDL.js.map} +0 -0
  126. /package/dist/{chunk-AKHGU46M.js.map → chunk-DUPB5XGN.js.map} +0 -0
  127. /package/dist/{chunk-JDLRNVPW.js.map → chunk-FARHGCF2.js.map} +0 -0
  128. /package/dist/{chunk-CFQG5H5S.js.map → chunk-FYAFEINW.js.map} +0 -0
  129. /package/dist/{chunk-6I5IGEH5.js.map → chunk-GJMIO344.js.map} +0 -0
  130. /package/dist/{chunk-O62APXCV.js.map → chunk-HHKGOBE2.js.map} +0 -0
  131. /package/dist/{chunk-U5BSGXWG.js.map → chunk-JS6P3636.js.map} +0 -0
  132. /package/dist/{chunk-V5AGFLMV.js.map → chunk-K23AEIDZ.js.map} +0 -0
  133. /package/dist/{chunk-X2JWEVBD.js.map → chunk-LLQAB3SS.js.map} +0 -0
  134. /package/dist/{chunk-4AQEYIQ3.js.map → chunk-MKDM6JB4.js.map} +0 -0
  135. /package/dist/{chunk-PHWKC6UC.js.map → chunk-NMRQGQML.js.map} +0 -0
  136. /package/dist/{chunk-THKLA33K.js.map → chunk-NOWCGRKY.js.map} +0 -0
  137. /package/dist/{chunk-727NQOEV.js.map → chunk-OILA3YTC.js.map} +0 -0
  138. /package/dist/{chunk-S532VXZW.js.map → chunk-OMFCOSBY.js.map} +0 -0
  139. /package/dist/{chunk-E3MKUDIV.js.map → chunk-Q2O6KEL3.js.map} +0 -0
  140. /package/dist/{chunk-R4JIQ5TC.js.map → chunk-QZTECR6E.js.map} +0 -0
  141. /package/dist/{chunk-CNM5LSE2.js.map → chunk-SBJ4MJDD.js.map} +0 -0
  142. /package/dist/{chunk-TLN3QVS3.js.map → chunk-SOAIESRF.js.map} +0 -0
  143. /package/dist/{chunk-RN46L3AU.js.map → chunk-T7RMYBYP.js.map} +0 -0
  144. /package/dist/{chunk-SMPW433I.js.map → chunk-TYE5W7RJ.js.map} +0 -0
  145. /package/dist/{chunk-QPEOOQV5.js.map → chunk-WECXPIBP.js.map} +0 -0
  146. /package/dist/{chunk-NHTQRDJ6.js.map → chunk-WGUANGGA.js.map} +0 -0
  147. /package/dist/{chunk-RDNYND2I.js.map → chunk-XV554HLH.js.map} +0 -0
  148. /package/dist/{chunk-VUVENRQF.js.map → chunk-ZT2YHDRX.js.map} +0 -0
  149. /package/dist/{chunks-4IEOCUKM.js.map → chunks-XSXJ7WHX.js.map} +0 -0
  150. /package/dist/{formula-DNEIS4K3.js.map → formula-7ZWQ6LS2.js.map} +0 -0
  151. /package/dist/{formula-Z6MQKJK4.js.map → formula-OKSR2NJY.js.map} +0 -0
  152. /package/dist/{generator-54YDTC4H.js.map → generator-GYR4PZAJ.js.map} +0 -0
  153. /package/dist/{generator-ZECPB7JM.js.map → generator-HAJKBJRD.js.map} +0 -0
  154. /package/dist/{hancom-EKGYO3DR.js.map → hancom-42PJQLYF.js.map} +0 -0
  155. /package/dist/{hancom-UA3FAKPN.js.map → hancom-PBWLHPG6.js.map} +0 -0
  156. /package/dist/{image-ocr-AEJC2HYX.js.map → image-ocr-B32JZFLP.js.map} +0 -0
  157. /package/dist/{image-ocr-V5ULS7PL.js.map → image-ocr-S4U3UXRJ.js.map} +0 -0
  158. /package/dist/{memo-WGP7QJ7M.js.map → memo-ZQOVJ7UJ.js.map} +0 -0
  159. /package/dist/{model-bundle-OYH3ZTJK.js.map → model-bundle-MJJ73AEH.js.map} +0 -0
  160. /package/dist/{models-52726NXY.js.map → models-G4JXJ2ON.js.map} +0 -0
  161. /package/dist/{parse-worker-v2-5C3VXRFT.js.map → parse-worker-v2-TLTNAXAZ.js.map} +0 -0
  162. /package/dist/{parser-L55CW5GW.js.map → parser-TWCVEECS.js.map} +0 -0
  163. /package/dist/{parser-4EIBYZUS.js.map → parser-YQA3F7IL.js.map} +0 -0
  164. /package/dist/{pdf-ocr-4XG2GDWK.js.map → pdf-ocr-2BQ4ME6Y.js.map} +0 -0
  165. /package/dist/{pdf-ocr-DO3GQSVO.js.map → pdf-ocr-BA5LM535.js.map} +0 -0
  166. /package/dist/{profile-io-J4BGPXD6.js.map → profile-io-PBYC4MTQ.js.map} +0 -0
  167. /package/dist/{rasterize-2BD3ST5L.js.map → rasterize-B3H32G23.js.map} +0 -0
  168. /package/dist/{redact-doc-T5ZO5BUF.js.map → redact-doc-QY7DXOQE.js.map} +0 -0
  169. /package/dist/{render-XHAEGFDS.js.map → render-SRJ6ZIYE.js.map} +0 -0
  170. /package/dist/{rewrite-fallback-GDC6ISST.js.map → rewrite-fallback-WVGGZ2QV.js.map} +0 -0
  171. /package/dist/{seal-DDP5FWKY.js.map → seal-J7SSWMVR.js.map} +0 -0
  172. /package/dist/{setup-JAH3DJMB.js.map → setup-EHHJHPIQ.js.map} +0 -0
  173. /package/dist/{to-hwpx-FU5MRESY.js.map → to-hwpx-BYNLZ2U3.js.map} +0 -0
  174. /package/dist/{to-hwpx-HQLTHIOW.js.map → to-hwpx-ESTHBOHH.js.map} +0 -0
  175. /package/dist/{visual-TYA7MDHZ.js.map → visual-DVJGGPVU.js.map} +0 -0
  176. /package/dist/{watch-52TBPFGB.js.map → watch-KJMMJVZ4.js.map} +0 -0
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  KordocError
3
- } from "./chunk-E3MKUDIV.js";
3
+ } from "./chunk-Q2O6KEL3.js";
4
4
 
5
5
  // src/pdf/formula/models.ts
6
6
  import { createHash as createHash2 } from "crypto";
@@ -310,4 +310,4 @@ export {
310
310
  ensureFormulaModels,
311
311
  ensureSingleModel
312
312
  };
313
- //# sourceMappingURL=chunk-DQAHD7AV.js.map
313
+ //# sourceMappingURL=chunk-73EKNKTF.js.map
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  KordocError,
4
4
  OPTIONAL_DEP_INSTALL_HINT
5
- } from "./chunk-SMPW433I.js";
5
+ } from "./chunk-TYE5W7RJ.js";
6
6
 
7
7
  // src/render/rasterize.ts
8
8
  var densityExponent = null;
@@ -88,4 +88,4 @@ export {
88
88
  rasterizeSvg,
89
89
  rasterizePageSvg
90
90
  };
91
- //# sourceMappingURL=chunk-TW7LJ4CT.js.map
91
+ //# sourceMappingURL=chunk-7TYITQPR.js.map
@@ -30,7 +30,7 @@ import {
30
30
  stackedGlyphBands,
31
31
  starRun,
32
32
  tallInkCount
33
- } from "./chunk-JTBGDI7W.js";
33
+ } from "./chunk-HFER3UG6.js";
34
34
  import {
35
35
  validateOcrOptions
36
36
  } from "./chunk-IIOBUTXH.js";
@@ -46,14 +46,14 @@ import {
46
46
  ocrSourcePath,
47
47
  parseCharacterDict,
48
48
  resolveOcrModels
49
- } from "./chunk-S532VXZW.js";
49
+ } from "./chunk-OMFCOSBY.js";
50
50
  import {
51
51
  disableOrtTelemetry
52
52
  } from "./chunk-6H25SXDI.js";
53
53
  import {
54
54
  KordocError,
55
55
  OPTIONAL_DEP_INSTALL_HINT
56
- } from "./chunk-SMPW433I.js";
56
+ } from "./chunk-TYE5W7RJ.js";
57
57
 
58
58
  // src/ocr/ocr-stacked-rows.ts
59
59
  var NUMERIC = /^[-+−△▲▽▼]?[\d.,]+[%p원]?$|^[-–—·∼~]원?$|^\([-+−△▲▽▼]?[\d.,]+%?\)$/;
@@ -3503,4 +3503,4 @@ export {
3503
3503
  ocrItemsToBlocks,
3504
3504
  markOcrHeadings
3505
3505
  };
3506
- //# sourceMappingURL=chunk-AQ2MNHLW.js.map
3506
+ //# sourceMappingURL=chunk-7ULJRLAV.js.map
@@ -7,7 +7,7 @@ import {
7
7
  escapeHtml,
8
8
  isGfmUrl,
9
9
  sanitizeHref
10
- } from "./chunk-SMPW433I.js";
10
+ } from "./chunk-TYE5W7RJ.js";
11
11
 
12
12
  // src/table/builder.ts
13
13
  var MAX_COLS = 200;
@@ -701,4 +701,4 @@ export {
701
701
  hasInlineCellBlocks,
702
702
  cellToMarkdown
703
703
  };
704
- //# sourceMappingURL=chunk-7VOBRIAX.js.map
704
+ //# sourceMappingURL=chunk-B4ILQPEH.js.map
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  KordocError
4
- } from "./chunk-SMPW433I.js";
4
+ } from "./chunk-TYE5W7RJ.js";
5
5
 
6
6
  // src/shared/offline.ts
7
7
  import { realpathSync } from "fs";
@@ -49,4 +49,4 @@ export {
49
49
  getAccessRoot,
50
50
  assertWithinRoot
51
51
  };
52
- //# sourceMappingURL=chunk-S2KMYEFM.js.map
52
+ //# sourceMappingURL=chunk-DHYKBCDL.js.map
@@ -5,20 +5,20 @@ import {
5
5
  readHwp5DocInfoRecords,
6
6
  readHwp5SectionRecords,
7
7
  readHwp5SectionStreams
8
- } from "./chunk-O62APXCV.js";
8
+ } from "./chunk-HHKGOBE2.js";
9
9
  import {
10
10
  FLAG_TRACK_CHANGES,
11
11
  decompressStream,
12
12
  fileTimeText,
13
13
  readRecords
14
- } from "./chunk-THKLA33K.js";
14
+ } from "./chunk-NOWCGRKY.js";
15
15
  import {
16
16
  composeDigits
17
17
  } from "./chunk-KFF47XZ7.js";
18
18
  import {
19
19
  KordocError,
20
20
  VERSION
21
- } from "./chunk-SMPW433I.js";
21
+ } from "./chunk-TYE5W7RJ.js";
22
22
 
23
23
  // src/hwp5/to-hwpx/index.ts
24
24
  import JSZip from "jszip";
@@ -2246,15 +2246,15 @@ async function convertToHwpx(input, options) {
2246
2246
  if (format !== "hwp" && format !== "hwp3" && format !== "hwpml") throw new KordocError(`HWP \uBB38\uC11C\uAC00 \uC544\uB2D9\uB2C8\uB2E4 (${format})`);
2247
2247
  const engine = options?.engine ?? "kordoc";
2248
2248
  if (engine !== "kordoc") {
2249
- const { hancomAvailable, hwpToHwpxViaHancom } = await import("./hancom-EKGYO3DR.js");
2249
+ const { hancomAvailable, hwpToHwpxViaHancom } = await import("./hancom-42PJQLYF.js");
2250
2250
  if (engine === "hancom" || !options?.password && hancomAvailable()) {
2251
2251
  if (options?.password) throw new KordocError('\uD55C/\uAE00 \uC800\uC7A5 \uBCC0\uD658\uC740 \uC5F4\uAE30 \uC554\uD638\uB97C \uBC1B\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4 \u2014 engine "kordoc" \uC73C\uB85C \uBC14\uAFB8\uC138\uC694');
2252
2252
  return { data: hwpToHwpxViaHancom(bytes, format === "hwpml" ? "hml" : "hwp"), mode: "preserve", engine: "hancom", warnings: [] };
2253
2253
  }
2254
2254
  }
2255
2255
  if (format === "hwp") return { data: await hwpToHwpx(bytes, options), mode: "preserve", engine: "kordoc", warnings: [] };
2256
- const { parse } = await import("./-F525UPLU.js");
2257
- const { markdownToHwpx } = await import("./generator-ZECPB7JM.js");
2256
+ const { parse } = await import("./-7TPBQODI.js");
2257
+ const { markdownToHwpx } = await import("./generator-GYR4PZAJ.js");
2258
2258
  const parsed = await parse(ab, { password: options?.password });
2259
2259
  if (!parsed.success) throw new KordocError(parsed.error ?? "\uBB38\uC11C\uB97C \uC77D\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4");
2260
2260
  return {
@@ -2269,4 +2269,4 @@ export {
2269
2269
  hwpToHwpx,
2270
2270
  convertToHwpx
2271
2271
  };
2272
- //# sourceMappingURL=chunk-AKHGU46M.js.map
2272
+ //# sourceMappingURL=chunk-DUPB5XGN.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 _chunkZLZ3XYNRcjs = require('./chunk-ZLZ3XYNR.cjs');
4
+ var _chunkHY3O6EDLcjs = require('./chunk-HY3O6EDL.cjs');
5
5
 
6
6
 
7
7
 
@@ -9,11 +9,11 @@ var _chunkZLZ3XYNRcjs = require('./chunk-ZLZ3XYNR.cjs');
9
9
 
10
10
 
11
11
 
12
- var _chunkJWPSOXBEcjs = require('./chunk-JWPSOXBE.cjs');
12
+ var _chunk6RA4KZHKcjs = require('./chunk-6RA4KZHK.cjs');
13
13
 
14
14
 
15
15
 
16
- var _chunkWL6FHOXScjs = require('./chunk-WL6FHOXS.cjs');
16
+ var _chunkFABG65BGcjs = require('./chunk-FABG65BG.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 _chunkZLZ3XYNRcjs.getModelsDir.call(void 0, "ppocr");
68
+ return _chunkHY3O6EDLcjs.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 _chunkZLZ3XYNRcjs.ensureModelsIn.call(void 0, dir, todo, onProgress);
113
+ await _chunkHY3O6EDLcjs.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);
@@ -2234,6 +2234,7 @@ function hasShadedRowBands(host, clips, fills, verticals, horizontals) {
2234
2234
 
2235
2235
  // src/pdf/table-grid.ts
2236
2236
  var CONNECT_TOL = 5;
2237
+ var CLOSED_BOX_GAP = 10;
2237
2238
  var MIN_COL_WIDTH = 15;
2238
2239
  var NARROW_RUN_MIN_WIDTH = 12;
2239
2240
  var NARROW_RUN_MAX_WIDTH = 20;
@@ -2436,7 +2437,11 @@ function buildTableGrids(horizontals, verticals, narrowRuns = true) {
2436
2437
  x2: validColXs[validColXs.length - 1],
2437
2438
  y2: validRowYs[0]
2438
2439
  };
2439
- grids.push({ rowYs: validRowYs, colXs: validColXs, bbox, vertexRadius: groupRadius, ...nested ? { lineNested: true } : {} });
2440
+ const edgeTol = Math.max(CONNECT_TOL, coordMergeTol);
2441
+ const sideClosed = (x) => vLines.some((l) => Math.abs(l.x1 - x) <= edgeTol && Math.min(l.y1, l.y2) <= bbox.y1 + edgeTol && Math.max(l.y1, l.y2) >= bbox.y2 - edgeTol);
2442
+ const capClosed = (y) => hLines.some((l) => Math.abs(l.y1 - y) <= edgeTol && Math.abs(Math.min(l.x1, l.x2) - bbox.x1) <= edgeTol && Math.abs(Math.max(l.x1, l.x2) - bbox.x2) <= edgeTol);
2443
+ const closedBox = sideClosed(bbox.x1) && sideClosed(bbox.x2) && capClosed(bbox.y1) && capClosed(bbox.y2);
2444
+ grids.push({ rowYs: validRowYs, colXs: validColXs, bbox, vertexRadius: groupRadius, ...nested ? { lineNested: true } : {}, ...closedBox ? { closedBox: true } : {} });
2440
2445
  }
2441
2446
  return [...mergeAdjacentGrids(grids.filter((g) => !g.lineNested)), ...grids.filter((g) => g.lineNested)];
2442
2447
  }
@@ -2541,7 +2546,8 @@ function mergeAdjacentGrids(grids) {
2541
2546
  const mergeTol = Math.max(VERTEX_MERGE_FACTOR * Math.max(prev.vertexRadius, curr.vertexRadius), 6) * 3;
2542
2547
  const colMatch = prev.colXs.every((x, ci) => Math.abs(x - curr.colXs[ci]) <= mergeTol);
2543
2548
  const verticalGap = prev.bbox.y1 - curr.bbox.y2;
2544
- if (colMatch && verticalGap >= -CONNECT_TOL && verticalGap <= 20) {
2549
+ const maxGap = prev.closedBox && curr.closedBox && prev.colXs.length > 2 ? CLOSED_BOX_GAP : 20;
2550
+ if (colMatch && verticalGap >= -CONNECT_TOL && verticalGap <= maxGap) {
2545
2551
  const allRowYs = [.../* @__PURE__ */ new Set([...prev.rowYs, ...curr.rowYs])].sort((a, b) => b - a);
2546
2552
  merged[merged.length - 1] = {
2547
2553
  rowYs: allRowYs,
@@ -3407,16 +3413,16 @@ function recordOpenEndCellEdges(grid, cells, horizontals) {
3407
3413
  }
3408
3414
  function takeClipCellEdges(from, to) {
3409
3415
  const e = CLIP_CELL_EDGES.get(from);
3410
- if (e) _chunkJWPSOXBEcjs.CELL_EDGES.set(to, e);
3416
+ if (e) _chunk6RA4KZHKcjs.CELL_EDGES.set(to, e);
3411
3417
  }
3412
3418
  function hasOpenCellSeam(a, b) {
3413
- const u = _chunkJWPSOXBEcjs.CELL_EDGES.get(a), d = _chunkJWPSOXBEcjs.CELL_EDGES.get(b);
3419
+ const u = _chunk6RA4KZHKcjs.CELL_EDGES.get(a), d = _chunk6RA4KZHKcjs.CELL_EDGES.get(b);
3414
3420
  return !!u && !!d && u.t && !u.b && !d.t && d.b && u.l && u.r && d.l && d.r;
3415
3421
  }
3416
3422
  function joinCellEdges(a, b) {
3417
- const u = _chunkJWPSOXBEcjs.CELL_EDGES.get(a), d = _chunkJWPSOXBEcjs.CELL_EDGES.get(b);
3423
+ const u = _chunk6RA4KZHKcjs.CELL_EDGES.get(a), d = _chunk6RA4KZHKcjs.CELL_EDGES.get(b);
3418
3424
  if (!u || !d) return;
3419
- _chunkJWPSOXBEcjs.CELL_EDGES.set(a, { t: u.t, b: d.b, l: u.l || d.l, r: u.r || d.r });
3425
+ _chunk6RA4KZHKcjs.CELL_EDGES.set(a, { t: u.t, b: d.b, l: u.l || d.l, r: u.r || d.r });
3420
3426
  }
3421
3427
 
3422
3428
  // src/pdf/cell-extract.ts
@@ -3592,7 +3598,7 @@ function tagScripts(text, lines) {
3592
3598
  const [s, e, kind] = marks[m];
3593
3599
  out = out.slice(0, s) + `<${kind}>` + out.slice(s, e) + `</${kind}>` + out.slice(e);
3594
3600
  }
3595
- return _chunkJWPSOXBEcjs.tidyScriptTags.call(void 0, out);
3601
+ return _chunk6RA4KZHKcjs.tidyScriptTags.call(void 0, out);
3596
3602
  }
3597
3603
 
3598
3604
  // src/pdf/line-wrap.ts
@@ -4503,8 +4509,8 @@ function sortLineByX(items) {
4503
4509
  function isCjkLatinAutospace(prevText, nextText, gap, fontSize, hangulLine = false) {
4504
4510
  if (!(gap < fontSize * 0.35)) return false;
4505
4511
  if (hangulLine) return false;
4506
- const a = prevText.slice(-1), b = _nullishCoalesce(nextText[0], () => ( ""));
4507
- const cjk = /[\u3040-\u30ff\u3400-\u9fff\uf900-\ufaff]/, latin = /[A-Za-z0-9]/;
4512
+ const a = prevText.replace(/(?:<\/?u>|~~)+$/, "").slice(-1), b = _nullishCoalesce(nextText.replace(/^(?:<\/?u>|~~)+/, "")[0], () => ( ""));
4513
+ const cjk = /[\u3000-\u303f\u3040-\u30ff\u3400-\u9fff\uf900-\ufaff\uff00-\uffef]/, latin = /[A-Za-z0-9]/;
4508
4514
  return cjk.test(a) && latin.test(b) || latin.test(a) && cjk.test(b);
4509
4515
  }
4510
4516
  function filterHiddenText(items, pageWidth, pageHeight, originX = 0, originY = 0) {
@@ -5232,7 +5238,7 @@ function detectClusterTables(items, pageNum, rejected, lex) {
5232
5238
  }
5233
5239
  return results.filter((r) => {
5234
5240
  const twoColumns = isTwoColumnProse(r);
5235
- const prose = twoColumns || isProseTable(r.table) || [...r.usedItems].every((it) => it.fontName === "ocr") && isProseFragmentTable(r.table);
5241
+ const prose = twoColumns || isProseTable(r.table) || gaplessCjkLines(r) || [...r.usedItems].every((it) => it.fontName === "ocr") && isProseFragmentTable(r.table);
5236
5242
  if (prose && rejected) rejected.prose++;
5237
5243
  if (twoColumns && rejected && [...r.usedItems].every((it) => it.fontName === "ocr")) {
5238
5244
  const used = [...r.usedItems].sort((a, b) => a.x - b.x);
@@ -5251,6 +5257,21 @@ function detectClusterTables(items, pageNum, rejected, lex) {
5251
5257
  return !prose;
5252
5258
  });
5253
5259
  }
5260
+ function gaplessCjkLines(r) {
5261
+ let lines = 0, gapless = 0;
5262
+ for (const row of groupByBaseline([...r.usedItems].filter((i) => i.text.trim()))) {
5263
+ const sorted = [...row.items].sort((a, b) => a.x - b.x);
5264
+ if (sorted.length < 2) continue;
5265
+ lines++;
5266
+ const text = sorted.map((i) => i.text).join("").replace(/\s+/g, "");
5267
+ if ([...text].filter((c) => CJK_CHAR.test(c)).length < text.length * 0.5) continue;
5268
+ let maxGap = 0;
5269
+ for (let k = [...sorted[0].text.trim()].length <= 2 ? 2 : 1; k < sorted.length; k++) maxGap = Math.max(maxGap, sorted[k].x - (sorted[k - 1].x + sorted[k - 1].w));
5270
+ if (maxGap < sorted[0].fontSize * 0.5) gapless++;
5271
+ }
5272
+ return gapless >= 3 && gapless >= lines * 0.6;
5273
+ }
5274
+ var CJK_CHAR = /[\u3000-\u303f\u3040-\u30ff\u3400-\u9fff\uf900-\ufaff\uff00-\uffef]/;
5254
5275
  var SIDE_TAB_MIN = 6;
5255
5276
  var SIDE_TAB_BAND_MIN = 4;
5256
5277
  var SIDE_TAB_BAND = 0.12;
@@ -7043,9 +7064,9 @@ function detectHeadings(blocks, medianFontSize) {
7043
7064
  if (/^\d+$/.test(text) && !isChapterNumber(block, blocks[bi + 1], medianFontSize)) continue;
7044
7065
  const ratio = block.style.fontSize / medianFontSize;
7045
7066
  let level = 0;
7046
- if (ratio >= _chunkJWPSOXBEcjs.HEADING_RATIO_H1) level = 1;
7047
- else if (ratio >= _chunkJWPSOXBEcjs.HEADING_RATIO_H2) level = 2;
7048
- else if (ratio >= _chunkJWPSOXBEcjs.HEADING_RATIO_H3) level = 3;
7067
+ if (ratio >= _chunk6RA4KZHKcjs.HEADING_RATIO_H1) level = 1;
7068
+ else if (ratio >= _chunk6RA4KZHKcjs.HEADING_RATIO_H2) level = 2;
7069
+ else if (ratio >= _chunk6RA4KZHKcjs.HEADING_RATIO_H3) level = 3;
7049
7070
  if (level > 0) {
7050
7071
  block.type = "heading";
7051
7072
  block.level = level;
@@ -7058,7 +7079,7 @@ function isChapterNumber(block, next, medianFontSize) {
7058
7079
  const nextSize = _nullishCoalesce(_optionalChain([next, 'optionalAccess', _197 => _197.style, 'optionalAccess', _198 => _198.fontSize]), () => ( 0));
7059
7080
  const text = _nullishCoalesce(_optionalChain([next, 'optionalAccess', _199 => _199.text, 'optionalAccess', _200 => _200.trim, 'call', _201 => _201()]), () => ( ""));
7060
7081
  const a = block.bbox, b = _optionalChain([next, 'optionalAccess', _202 => _202.bbox]);
7061
- return /^\d{1,2}$/.test(_nullishCoalesce(_optionalChain([block, 'access', _203 => _203.text, 'optionalAccess', _204 => _204.trim, 'call', _205 => _205()]), () => ( ""))) && size >= medianFontSize * 2.5 && !!next && (next.type === "paragraph" || next.type === "heading") && next.pageNumber === block.pageNumber && nextSize >= medianFontSize * _chunkJWPSOXBEcjs.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;
7082
+ return /^\d{1,2}$/.test(_nullishCoalesce(_optionalChain([block, 'access', _203 => _203.text, 'optionalAccess', _204 => _204.trim, 'call', _205 => _205()]), () => ( ""))) && size >= medianFontSize * 2.5 && !!next && (next.type === "paragraph" || next.type === "heading") && next.pageNumber === block.pageNumber && nextSize >= medianFontSize * _chunk6RA4KZHKcjs.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;
7062
7083
  }
7063
7084
  function mergeStackedHeadingLines(blocks, medianFontSize) {
7064
7085
  for (let i = 0; i < blocks.length - 1; ) {
@@ -8828,16 +8849,16 @@ function isProseSpread(items) {
8828
8849
  for (let i = 1; i < sorted.length; i++) {
8829
8850
  gaps.push(sorted[i].x - (sorted[i - 1].x + sorted[i - 1].w));
8830
8851
  }
8831
- const maxGap = _chunkWL6FHOXScjs.safeMax.call(void 0, gaps);
8852
+ const maxGap = _chunkFABG65BGcjs.safeMax.call(void 0, gaps);
8832
8853
  const avgLen = items.reduce((s, i) => s + i.text.length, 0) / items.length;
8833
8854
  if (items.length >= 4 && maxGap < 40 && avgLen < 5) return true;
8834
- const minGap = _chunkWL6FHOXScjs.safeMin.call(void 0, gaps);
8855
+ const minGap = _chunkFABG65BGcjs.safeMin.call(void 0, gaps);
8835
8856
  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)));
8836
8857
  }
8837
8858
  function detectColumns(yLines) {
8838
8859
  const allItems = yLines.flat();
8839
8860
  if (allItems.length === 0) return null;
8840
- const pageWidth = _chunkWL6FHOXScjs.safeMax.call(void 0, allItems.map((i) => i.x + i.w)) - _chunkWL6FHOXScjs.safeMin.call(void 0, allItems.map((i) => i.x));
8861
+ const pageWidth = _chunkFABG65BGcjs.safeMax.call(void 0, allItems.map((i) => i.x + i.w)) - _chunkFABG65BGcjs.safeMin.call(void 0, allItems.map((i) => i.x));
8841
8862
  if (pageWidth < 100) return null;
8842
8863
  let bigoLineIdx = -1;
8843
8864
  for (let i = 0; i < yLines.length; i++) {
@@ -9235,13 +9256,13 @@ function partTex(group) {
9235
9256
  const base = Math.min(...g.filter((i) => i.fontSize >= size * SCRIPT_SIZE_RATIO).map((i) => i.y));
9236
9257
  let s = "", run = "";
9237
9258
  const flush = () => {
9238
- if (run) s += _chunkJWPSOXBEcjs.toTex.call(void 0, run);
9259
+ if (run) s += _chunk6RA4KZHKcjs.toTex.call(void 0, run);
9239
9260
  run = "";
9240
9261
  };
9241
9262
  g.forEach((it, k) => {
9242
9263
  if (it.fontSize < size * SCRIPT_SIZE_RATIO && it.y - base >= size * SCRIPT_RISE_EM) {
9243
9264
  flush();
9244
- s += `^{${_chunkJWPSOXBEcjs.toTex.call(void 0, it.text)}}`;
9265
+ s += `^{${_chunk6RA4KZHKcjs.toTex.call(void 0, it.text)}}`;
9245
9266
  return;
9246
9267
  }
9247
9268
  if (k && it.x - (g[k - 1].x + g[k - 1].w) > spaceGapThreshold(it.fontSize)) run += " ";
@@ -9414,7 +9435,7 @@ function rebuildUnitLine(items, grid) {
9414
9435
  function prependUnitRow(cells, cols, line, usedItems) {
9415
9436
  const text = cleanCellText(line.map((item) => item.text).join(""));
9416
9437
  cells.unshift(Array.from({ length: cols }, (_, c) => ({ text: c === 0 ? text : "", colSpan: c === 0 ? cols : 1, rowSpan: 1 })));
9417
- for (const cell of cells[0]) _chunkJWPSOXBEcjs.CELL_EDGES.set(cell, NO_EDGES);
9438
+ for (const cell of cells[0]) _chunk6RA4KZHKcjs.CELL_EDGES.set(cell, NO_EDGES);
9418
9439
  for (const item of line) usedItems.add(item);
9419
9440
  }
9420
9441
  function attachUnitRow(items, grid, cells, cols, usedItems) {
@@ -9996,7 +10017,7 @@ function recordFrameTitle(table, source, pageNum) {
9996
10017
  const [label, spacer, title] = cells;
9997
10018
  if (!/^(?:붙임|별첨|첨부|부록)\s*\d{1,3}$/.test(label.text.trim()) || spacer.text.trim() || !title.text.trim()) return;
9998
10019
  if (cells.some((c) => {
9999
- const e = _chunkJWPSOXBEcjs.CELL_EDGES.get(c);
10020
+ const e = _chunk6RA4KZHKcjs.CELL_EDGES.get(c);
10000
10021
  return !e || e.t || e.b || e.l || e.r;
10001
10022
  })) return;
10002
10023
  const xs = TABLE_COLXS.get(table), style = dominantStyle(source), fs = _nullishCoalesce(_optionalChain([style, 'optionalAccess', _397 => _397.fontSize]), () => ( 0));
@@ -10757,7 +10778,7 @@ function extractBlocksWithGrids(items, pageNum, pageWidth, pageHeight, grids, ho
10757
10778
  groupSizes.push(1);
10758
10779
  }
10759
10780
  const allY = remaining.map((i) => i.y);
10760
- const pageH = _chunkWL6FHOXScjs.safeMax.call(void 0, allY) - _chunkWL6FHOXScjs.safeMin.call(void 0, allY);
10781
+ const pageH = _chunkFABG65BGcjs.safeMax.call(void 0, allY) - _chunkFABG65BGcjs.safeMin.call(void 0, allY);
10761
10782
  const gapThreshold = Math.max(15, pageH * 0.03);
10762
10783
  const sides = frameColumnTextBands(remaining, spanning, gx);
10763
10784
  const textBlocks = [];
@@ -10773,7 +10794,7 @@ function extractBlocksWithGrids(items, pageNum, pageWidth, pageHeight, grids, ho
10773
10794
  finalTextBlocks.push(...detectListBlocks(textBlocks));
10774
10795
  } else {
10775
10796
  const allY = remaining.map((i) => i.y);
10776
- const pageH = _chunkWL6FHOXScjs.safeMax.call(void 0, allY) - _chunkWL6FHOXScjs.safeMin.call(void 0, allY);
10797
+ const pageH = _chunkFABG65BGcjs.safeMax.call(void 0, allY) - _chunkFABG65BGcjs.safeMin.call(void 0, allY);
10777
10798
  const gapThreshold = Math.max(15, pageH * 0.03);
10778
10799
  const groups = xyCutOrder(remaining, gapThreshold);
10779
10800
  const textBlocks = [];
@@ -11135,7 +11156,7 @@ function extractPageBlocksFallback(items, pageNum, fullPage = false, detectTable
11135
11156
  blocks.push(...columnTextToBlocks(tableText, pageNum, bbox, dominantStyle(items)));
11136
11157
  } else {
11137
11158
  const allY = items.map((i) => i.y);
11138
- const pageHeight = _chunkWL6FHOXScjs.safeMax.call(void 0, allY) - _chunkWL6FHOXScjs.safeMin.call(void 0, allY);
11159
+ const pageHeight = _chunkFABG65BGcjs.safeMax.call(void 0, allY) - _chunkFABG65BGcjs.safeMin.call(void 0, allY);
11139
11160
  const gapThreshold = Math.max(15, pageHeight * 0.03);
11140
11161
  const orderedGroups = proseCutX !== null ? splitTwoColumnProse(items, proseCutX) : xyCutOrder(items, gapThreshold, 0, void 0, minGap);
11141
11162
  for (const group of orderedGroups) {
@@ -11405,4 +11426,4 @@ function rowParagraphs(block) {
11405
11426
 
11406
11427
 
11407
11428
  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.ringBoxes = ringBoxes; 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.stackedGlyphBands = stackedGlyphBands; 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;
11408
- //# sourceMappingURL=chunk-WD5KO2FI.cjs.map
11429
+ //# sourceMappingURL=chunk-E7QOWHAY.cjs.map