kordoc 4.24.78 → 4.24.79

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 (188) hide show
  1. package/README.md +2 -2
  2. package/dist/{-3INLR7KZ.js → -WCLMRO7B.js} +22 -22
  3. package/dist/{chunk-ELOZVH5S.cjs → chunk-22L7WGJE.cjs} +8 -8
  4. package/dist/{chunk-ELOZVH5S.cjs.map → chunk-22L7WGJE.cjs.map} +1 -1
  5. package/dist/{chunk-PNKLL5TE.js → chunk-2DJI6DDM.js} +2 -2
  6. package/dist/{chunk-VEIPW7QU.js → chunk-3CQGKB62.js} +13 -10
  7. package/dist/chunk-3CQGKB62.js.map +1 -0
  8. package/dist/{chunk-MQYI7KWD.js → chunk-3G2BXR34.js} +2 -2
  9. package/dist/{chunk-QRNA3W7B.cjs → chunk-42P53WKD.cjs} +3 -3
  10. package/dist/{chunk-QRNA3W7B.cjs.map → chunk-42P53WKD.cjs.map} +1 -1
  11. package/dist/{chunk-KK77Q5NA.js → chunk-4DA67IZR.js} +2 -2
  12. package/dist/{chunk-HBKSG62C.js → chunk-7B6W4I3A.js} +2 -2
  13. package/dist/{chunk-SJF2ZMOH.js → chunk-7DD7G4BI.js} +2 -2
  14. package/dist/{chunk-V5JHID6L.js → chunk-A6KTEOXE.js} +3 -3
  15. package/dist/{chunk-ZE4OZOSO.js → chunk-ADPVFTTT.js} +12 -10
  16. package/dist/chunk-ADPVFTTT.js.map +1 -0
  17. package/dist/{chunk-TFKBIIDY.js → chunk-B6IV3WVP.js} +16 -16
  18. package/dist/{chunk-6RJGAVYA.js → chunk-B6OD2Z3R.js} +2 -2
  19. package/dist/{chunk-7BAKREYA.cjs → chunk-BJ365LX3.cjs} +3 -3
  20. package/dist/{chunk-7BAKREYA.cjs.map → chunk-BJ365LX3.cjs.map} +1 -1
  21. package/dist/{chunk-36KS4PDO.js → chunk-BWD4IPFG.js} +2 -2
  22. package/dist/{chunk-AEQJOD3U.js → chunk-CKOSQJCH.js} +2 -2
  23. package/dist/{chunk-EQO6PYJF.cjs → chunk-CKVPN66T.cjs} +33 -31
  24. package/dist/chunk-CKVPN66T.cjs.map +1 -0
  25. package/dist/{chunk-ENUL3MLZ.js → chunk-CY3JNBY7.js} +3 -3
  26. package/dist/{chunk-H6ZJK5KA.js → chunk-D6PDKX72.js} +2 -2
  27. package/dist/{chunk-7ASPTCTD.js → chunk-DKIBSCFV.js} +2 -2
  28. package/dist/{chunk-YDONOMUK.js → chunk-E4D3HKPN.js} +2 -2
  29. package/dist/{chunk-PLF5QVIR.cjs → chunk-E7ZG5NBU.cjs} +6 -6
  30. package/dist/{chunk-PLF5QVIR.cjs.map → chunk-E7ZG5NBU.cjs.map} +1 -1
  31. package/dist/{chunk-LVRS6HPA.js → chunk-EEUN7GWB.js} +6 -6
  32. package/dist/{chunk-KM5P2HJ2.js → chunk-FI4SFNUZ.js} +2 -2
  33. package/dist/{chunk-3JZINNV6.cjs → chunk-FOYPUNFB.cjs} +104 -104
  34. package/dist/{chunk-3JZINNV6.cjs.map → chunk-FOYPUNFB.cjs.map} +1 -1
  35. package/dist/{chunk-DJVCW5YA.js → chunk-FPJAA7GO.js} +12 -9
  36. package/dist/chunk-FPJAA7GO.js.map +1 -0
  37. package/dist/{chunk-Y2NIFMWC.js → chunk-GSBMOVCF.js} +7 -7
  38. package/dist/{chunk-F5RCXSUO.js → chunk-HNTRTZ2J.js} +2 -2
  39. package/dist/{chunk-7YAXU4XB.js → chunk-I5PYUR3W.js} +11 -11
  40. package/dist/{chunk-QXAQIVOI.js → chunk-IPAKNA6R.js} +2 -2
  41. package/dist/{chunk-DSUKSIMD.js → chunk-IZFALQLA.js} +6 -6
  42. package/dist/{chunk-7RQDJ63R.js → chunk-JEVINS5E.js} +11 -9
  43. package/dist/chunk-JEVINS5E.js.map +1 -0
  44. package/dist/{chunk-WENH6GSY.cjs → chunk-LPLU7527.cjs} +58 -58
  45. package/dist/{chunk-WENH6GSY.cjs.map → chunk-LPLU7527.cjs.map} +1 -1
  46. package/dist/{chunk-5JKGN6YF.js → chunk-MALK5PX5.js} +2 -2
  47. package/dist/{chunk-Q62ZOF73.js → chunk-PSYI2EYA.js} +2 -2
  48. package/dist/{chunk-ZOOI4PGA.js → chunk-Q2QT6AL6.js} +2 -2
  49. package/dist/{chunk-BXNK6DQL.js → chunk-RDDRHUSA.js} +2 -2
  50. package/dist/{chunk-Z4RKJYK4.js → chunk-RO577YPX.js} +10 -10
  51. package/dist/{chunk-YRYL75TY.js → chunk-TEWYIAFY.js} +2 -2
  52. package/dist/{chunk-XMNGFHK6.cjs → chunk-UP3KRRVN.cjs} +2 -2
  53. package/dist/{chunk-XMNGFHK6.cjs.map → chunk-UP3KRRVN.cjs.map} +1 -1
  54. package/dist/{chunk-VZRUNNZ2.js → chunk-VS5FCFDX.js} +2 -2
  55. package/dist/{chunk-PGTOBYRX.js → chunk-VTXPEJDA.js} +5 -5
  56. package/dist/{chunk-FAJO643G.js → chunk-W5FLEZV4.js} +5 -5
  57. package/dist/{chunk-PSWNPOWW.js → chunk-WHQXWZZK.js} +2 -2
  58. package/dist/{chunk-NWAA7CP7.js → chunk-XLR77IOC.js} +3 -3
  59. package/dist/{chunk-M5VCRPXU.js → chunk-Y3X53MRF.js} +5 -5
  60. package/dist/{chunk-EU7LGFMR.cjs → chunk-ZLHHSW2T.cjs} +97 -94
  61. package/dist/chunk-ZLHHSW2T.cjs.map +1 -0
  62. package/dist/chunks-6UAF6SYV.js +11 -0
  63. package/dist/cli.js +46 -46
  64. package/dist/{formula-X4J6TPFE.cjs → formula-HECGAXCQ.cjs} +9 -9
  65. package/dist/{formula-X4J6TPFE.cjs.map → formula-HECGAXCQ.cjs.map} +1 -1
  66. package/dist/{formula-OVW7R4O5.js → formula-JYXL5ZDG.js} +3 -3
  67. package/dist/{formula-OYCTBHT6.js → formula-NBB34N4Y.js} +4 -4
  68. package/dist/generator-AZ3APW7A.js +11 -0
  69. package/dist/generator-FSH6G2BY.cjs +12 -0
  70. package/dist/{generator-BCGW5ITF.cjs.map → generator-FSH6G2BY.cjs.map} +1 -1
  71. package/dist/generator-WTZZ2OSI.js +18 -0
  72. package/dist/{hancom-KYUZYWLO.js → hancom-GSUBPFCZ.js} +2 -2
  73. package/dist/{hancom-O4E5BLIX.js → hancom-GXUGVC5L.js} +2 -2
  74. package/dist/{hancom-WH7WXXZH.cjs → hancom-UUFWDLTN.cjs} +5 -5
  75. package/dist/{hancom-WH7WXXZH.cjs.map → hancom-UUFWDLTN.cjs.map} +1 -1
  76. package/dist/{image-ocr-OPDOCCLA.js → image-ocr-62D6HIBB.js} +11 -11
  77. package/dist/{image-ocr-GY4K5NOY.js → image-ocr-XSKOCOW7.js} +8 -8
  78. package/dist/{image-ocr-5ZFMCHZL.cjs → image-ocr-ZVU4TCW7.cjs} +36 -36
  79. package/dist/{image-ocr-5ZFMCHZL.cjs.map → image-ocr-ZVU4TCW7.cjs.map} +1 -1
  80. package/dist/index.cjs +1113 -1113
  81. package/dist/index.js +10 -10
  82. package/dist/mcp.js +37 -37
  83. package/dist/memo-A4PUH3YJ.js +17 -0
  84. package/dist/{model-bundle-VGXIVXVT.js → model-bundle-DPTHBESJ.js} +5 -5
  85. package/dist/{models-TUSHH7AR.js → models-O7M5SDJV.js} +5 -5
  86. package/dist/{parse-worker-v2-Z3XGSG52.js → parse-worker-v2-3ILBPY7P.js} +23 -23
  87. package/dist/{parser-OAQ2QNB6.js → parser-EIOKEMXD.js} +21 -15
  88. package/dist/parser-EIOKEMXD.js.map +1 -0
  89. package/dist/{parser-ZMBMSI3G.js → parser-LGJVHF2C.js} +18 -12
  90. package/dist/parser-LGJVHF2C.js.map +1 -0
  91. package/dist/{parser-EQTJOS7W.cjs → parser-TGMBU6NM.cjs} +173 -167
  92. package/dist/parser-TGMBU6NM.cjs.map +1 -0
  93. package/dist/{pdf-ocr-WRJDDC57.js → pdf-ocr-OU7XVMJW.js} +9 -9
  94. package/dist/pdf-ocr-VKZPLCS7.cjs +43 -0
  95. package/dist/{pdf-ocr-YGAPGMHW.cjs.map → pdf-ocr-VKZPLCS7.cjs.map} +1 -1
  96. package/dist/{pdf-ocr-3CUUB3YV.js → pdf-ocr-VQGNNEFT.js} +6 -6
  97. package/dist/{profile-io-IOVBPV7R.js → profile-io-AEG7M5KV.js} +3 -3
  98. package/dist/{rasterize-ZJZKZF5R.js → rasterize-2TX6CRQY.js} +3 -3
  99. package/dist/{redact-doc-NPMUDPQZ.js → redact-doc-UWXE2D52.js} +22 -22
  100. package/dist/{render-F43PBJAG.js → render-3TPZAAY3.js} +12 -12
  101. package/dist/{rewrite-fallback-RITELBHU.js → rewrite-fallback-FVI3MVUH.js} +13 -13
  102. package/dist/seal-ZNN4P4IN.js +16 -0
  103. package/dist/{setup-J7I3KFRD.js → setup-5SZWEMHX.js} +3 -3
  104. package/dist/to-hwpx-KHSK7PL3.cjs +16 -0
  105. package/dist/{to-hwpx-ACL6I6I7.cjs.map → to-hwpx-KHSK7PL3.cjs.map} +1 -1
  106. package/dist/{to-hwpx-M7W7O47H.js → to-hwpx-KVCLOFIT.js} +4 -4
  107. package/dist/{to-hwpx-6JBBYURE.js → to-hwpx-UNNR4Y7K.js} +7 -7
  108. package/dist/visual-UDZERIUK.js +40 -0
  109. package/dist/{watch-YILY6776.js → watch-YCNXUIJL.js} +23 -23
  110. package/package.json +1 -1
  111. package/dist/chunk-7RQDJ63R.js.map +0 -1
  112. package/dist/chunk-DJVCW5YA.js.map +0 -1
  113. package/dist/chunk-EQO6PYJF.cjs.map +0 -1
  114. package/dist/chunk-EU7LGFMR.cjs.map +0 -1
  115. package/dist/chunk-VEIPW7QU.js.map +0 -1
  116. package/dist/chunk-ZE4OZOSO.js.map +0 -1
  117. package/dist/chunks-QN3OZOZA.js +0 -11
  118. package/dist/generator-BCGW5ITF.cjs +0 -12
  119. package/dist/generator-GJJMS4RD.js +0 -11
  120. package/dist/generator-ZWGWYDPM.js +0 -18
  121. package/dist/memo-7BFDELVU.js +0 -17
  122. package/dist/parser-EQTJOS7W.cjs.map +0 -1
  123. package/dist/parser-OAQ2QNB6.js.map +0 -1
  124. package/dist/parser-ZMBMSI3G.js.map +0 -1
  125. package/dist/pdf-ocr-YGAPGMHW.cjs +0 -43
  126. package/dist/seal-BEVAF3RV.js +0 -16
  127. package/dist/to-hwpx-ACL6I6I7.cjs +0 -16
  128. package/dist/visual-EG4OBDUG.js +0 -40
  129. /package/dist/{-3INLR7KZ.js.map → -WCLMRO7B.js.map} +0 -0
  130. /package/dist/{chunk-PNKLL5TE.js.map → chunk-2DJI6DDM.js.map} +0 -0
  131. /package/dist/{chunk-MQYI7KWD.js.map → chunk-3G2BXR34.js.map} +0 -0
  132. /package/dist/{chunk-KK77Q5NA.js.map → chunk-4DA67IZR.js.map} +0 -0
  133. /package/dist/{chunk-HBKSG62C.js.map → chunk-7B6W4I3A.js.map} +0 -0
  134. /package/dist/{chunk-SJF2ZMOH.js.map → chunk-7DD7G4BI.js.map} +0 -0
  135. /package/dist/{chunk-V5JHID6L.js.map → chunk-A6KTEOXE.js.map} +0 -0
  136. /package/dist/{chunk-TFKBIIDY.js.map → chunk-B6IV3WVP.js.map} +0 -0
  137. /package/dist/{chunk-6RJGAVYA.js.map → chunk-B6OD2Z3R.js.map} +0 -0
  138. /package/dist/{chunk-36KS4PDO.js.map → chunk-BWD4IPFG.js.map} +0 -0
  139. /package/dist/{chunk-AEQJOD3U.js.map → chunk-CKOSQJCH.js.map} +0 -0
  140. /package/dist/{chunk-ENUL3MLZ.js.map → chunk-CY3JNBY7.js.map} +0 -0
  141. /package/dist/{chunk-H6ZJK5KA.js.map → chunk-D6PDKX72.js.map} +0 -0
  142. /package/dist/{chunk-7ASPTCTD.js.map → chunk-DKIBSCFV.js.map} +0 -0
  143. /package/dist/{chunk-YDONOMUK.js.map → chunk-E4D3HKPN.js.map} +0 -0
  144. /package/dist/{chunk-LVRS6HPA.js.map → chunk-EEUN7GWB.js.map} +0 -0
  145. /package/dist/{chunk-KM5P2HJ2.js.map → chunk-FI4SFNUZ.js.map} +0 -0
  146. /package/dist/{chunk-Y2NIFMWC.js.map → chunk-GSBMOVCF.js.map} +0 -0
  147. /package/dist/{chunk-F5RCXSUO.js.map → chunk-HNTRTZ2J.js.map} +0 -0
  148. /package/dist/{chunk-7YAXU4XB.js.map → chunk-I5PYUR3W.js.map} +0 -0
  149. /package/dist/{chunk-QXAQIVOI.js.map → chunk-IPAKNA6R.js.map} +0 -0
  150. /package/dist/{chunk-DSUKSIMD.js.map → chunk-IZFALQLA.js.map} +0 -0
  151. /package/dist/{chunk-5JKGN6YF.js.map → chunk-MALK5PX5.js.map} +0 -0
  152. /package/dist/{chunk-Q62ZOF73.js.map → chunk-PSYI2EYA.js.map} +0 -0
  153. /package/dist/{chunk-ZOOI4PGA.js.map → chunk-Q2QT6AL6.js.map} +0 -0
  154. /package/dist/{chunk-BXNK6DQL.js.map → chunk-RDDRHUSA.js.map} +0 -0
  155. /package/dist/{chunk-Z4RKJYK4.js.map → chunk-RO577YPX.js.map} +0 -0
  156. /package/dist/{chunk-YRYL75TY.js.map → chunk-TEWYIAFY.js.map} +0 -0
  157. /package/dist/{chunk-VZRUNNZ2.js.map → chunk-VS5FCFDX.js.map} +0 -0
  158. /package/dist/{chunk-PGTOBYRX.js.map → chunk-VTXPEJDA.js.map} +0 -0
  159. /package/dist/{chunk-FAJO643G.js.map → chunk-W5FLEZV4.js.map} +0 -0
  160. /package/dist/{chunk-PSWNPOWW.js.map → chunk-WHQXWZZK.js.map} +0 -0
  161. /package/dist/{chunk-NWAA7CP7.js.map → chunk-XLR77IOC.js.map} +0 -0
  162. /package/dist/{chunk-M5VCRPXU.js.map → chunk-Y3X53MRF.js.map} +0 -0
  163. /package/dist/{chunks-QN3OZOZA.js.map → chunks-6UAF6SYV.js.map} +0 -0
  164. /package/dist/{formula-OVW7R4O5.js.map → formula-JYXL5ZDG.js.map} +0 -0
  165. /package/dist/{formula-OYCTBHT6.js.map → formula-NBB34N4Y.js.map} +0 -0
  166. /package/dist/{generator-GJJMS4RD.js.map → generator-AZ3APW7A.js.map} +0 -0
  167. /package/dist/{generator-ZWGWYDPM.js.map → generator-WTZZ2OSI.js.map} +0 -0
  168. /package/dist/{hancom-KYUZYWLO.js.map → hancom-GSUBPFCZ.js.map} +0 -0
  169. /package/dist/{hancom-O4E5BLIX.js.map → hancom-GXUGVC5L.js.map} +0 -0
  170. /package/dist/{image-ocr-OPDOCCLA.js.map → image-ocr-62D6HIBB.js.map} +0 -0
  171. /package/dist/{image-ocr-GY4K5NOY.js.map → image-ocr-XSKOCOW7.js.map} +0 -0
  172. /package/dist/{memo-7BFDELVU.js.map → memo-A4PUH3YJ.js.map} +0 -0
  173. /package/dist/{model-bundle-VGXIVXVT.js.map → model-bundle-DPTHBESJ.js.map} +0 -0
  174. /package/dist/{models-TUSHH7AR.js.map → models-O7M5SDJV.js.map} +0 -0
  175. /package/dist/{parse-worker-v2-Z3XGSG52.js.map → parse-worker-v2-3ILBPY7P.js.map} +0 -0
  176. /package/dist/{pdf-ocr-3CUUB3YV.js.map → pdf-ocr-OU7XVMJW.js.map} +0 -0
  177. /package/dist/{pdf-ocr-WRJDDC57.js.map → pdf-ocr-VQGNNEFT.js.map} +0 -0
  178. /package/dist/{profile-io-IOVBPV7R.js.map → profile-io-AEG7M5KV.js.map} +0 -0
  179. /package/dist/{rasterize-ZJZKZF5R.js.map → rasterize-2TX6CRQY.js.map} +0 -0
  180. /package/dist/{redact-doc-NPMUDPQZ.js.map → redact-doc-UWXE2D52.js.map} +0 -0
  181. /package/dist/{render-F43PBJAG.js.map → render-3TPZAAY3.js.map} +0 -0
  182. /package/dist/{rewrite-fallback-RITELBHU.js.map → rewrite-fallback-FVI3MVUH.js.map} +0 -0
  183. /package/dist/{seal-BEVAF3RV.js.map → seal-ZNN4P4IN.js.map} +0 -0
  184. /package/dist/{setup-J7I3KFRD.js.map → setup-5SZWEMHX.js.map} +0 -0
  185. /package/dist/{to-hwpx-6JBBYURE.js.map → to-hwpx-KVCLOFIT.js.map} +0 -0
  186. /package/dist/{to-hwpx-M7W7O47H.js.map → to-hwpx-UNNR4Y7K.js.map} +0 -0
  187. /package/dist/{visual-EG4OBDUG.js.map → visual-UDZERIUK.js.map} +0 -0
  188. /package/dist/{watch-YILY6776.js.map → watch-YCNXUIJL.js.map} +0 -0
package/dist/index.js CHANGED
@@ -48,13 +48,13 @@ import {
48
48
  readRecords,
49
49
  resolveImageBlocks,
50
50
  unfilledClickHereGuide
51
- } from "./chunk-PGTOBYRX.js";
51
+ } from "./chunk-VTXPEJDA.js";
52
52
  import {
53
53
  blocksToPages,
54
54
  dropBlankImages,
55
55
  readImageQrCodes,
56
56
  wmfBitmap
57
- } from "./chunk-Q62ZOF73.js";
57
+ } from "./chunk-PSYI2EYA.js";
58
58
  import {
59
59
  parsePageRange
60
60
  } from "./chunk-V4BH5SRQ.js";
@@ -63,7 +63,7 @@ import {
63
63
  hasLibheif,
64
64
  heicToRgba,
65
65
  pcxToRgba
66
- } from "./chunk-KM5P2HJ2.js";
66
+ } from "./chunk-FI4SFNUZ.js";
67
67
  import {
68
68
  WEBP_OPTIONS,
69
69
  flushHeifCache,
@@ -247,7 +247,7 @@ import {
247
247
  unescapeGfmCell,
248
248
  warnInto,
249
249
  wordHunks
250
- } from "./chunk-NWAA7CP7.js";
250
+ } from "./chunk-XLR77IOC.js";
251
251
  import {
252
252
  hwpEquationToLatex
253
253
  } from "./chunk-MXAZLFEA.js";
@@ -277,7 +277,7 @@ import {
277
277
  tidyScriptTags,
278
278
  unframeLayoutTables,
279
279
  wrapScript
280
- } from "./chunk-H6ZJK5KA.js";
280
+ } from "./chunk-D6PDKX72.js";
281
281
  import {
282
282
  BARE_URL,
283
283
  KordocError,
@@ -298,7 +298,7 @@ import {
298
298
  toArrayBuffer,
299
299
  unescapeHtml,
300
300
  unzipLimitBytes
301
- } from "./chunk-SJF2ZMOH.js";
301
+ } from "./chunk-7DD7G4BI.js";
302
302
 
303
303
  // src/plain-markdown.ts
304
304
  function toPlainMarkdown(md2) {
@@ -17924,7 +17924,7 @@ var MIN_SIDE = 24;
17924
17924
  async function ocrEmbeddedImages(blocks, options, warnings) {
17925
17925
  const ocr = options?.ocr;
17926
17926
  if (ocr !== true && ocr !== "force" && typeof ocr !== "function") return false;
17927
- const { parseImageDocument } = await import("./image-ocr-GY4K5NOY.js");
17927
+ const { parseImageDocument } = await import("./image-ocr-XSKOCOW7.js");
17928
17928
  let inserted = false, unreadable = 0;
17929
17929
  let failed = null;
17930
17930
  const walk = async (list, depth) => {
@@ -34186,7 +34186,7 @@ var MAX_MULTIPAGE_PIXELS = 1e9;
34186
34186
  var MIN_PAGE_PIXELS = 1e6;
34187
34187
  async function parseImage(buffer, options) {
34188
34188
  try {
34189
- const { parseImageDocument, imagePageCount, imagePage, imagePagePixels } = await import("./image-ocr-GY4K5NOY.js");
34189
+ const { parseImageDocument, imagePageCount, imagePage, imagePagePixels } = await import("./image-ocr-XSKOCOW7.js");
34190
34190
  const pageCount = await imagePageCount(buffer);
34191
34191
  const wanted = pageCount > 1 && options?.pages ? parsePageRange(options.pages, pageCount) : null;
34192
34192
  const blocks = [], warnings = [], lines = [], images = [];
@@ -34283,7 +34283,7 @@ async function parseHwp(buffer, options) {
34283
34283
  async function parsePdf(buffer, options) {
34284
34284
  let parsePdfDocument;
34285
34285
  try {
34286
- const mod = await import("./parser-ZMBMSI3G.js");
34286
+ const mod = await import("./parser-LGJVHF2C.js");
34287
34287
  parsePdfDocument = mod.parsePdfDocument;
34288
34288
  } catch {
34289
34289
  return {
@@ -34365,7 +34365,7 @@ async function fillForm(input, values, outputFormat = "markdown") {
34365
34365
  throw new Error(`hwpx-preserve \uD3EC\uB9F7\uC740 HWPX\xB7HWP 5.x \uC785\uB825\uB9CC \uC9C0\uC6D0\uD569\uB2C8\uB2E4 (\uAC10\uC9C0\uB41C \uD3EC\uB9F7: ${zipFormat})`);
34366
34366
  }
34367
34367
  } else if (format2 === "hwp" && detectOle2Format(buffer) === "hwp") {
34368
- const { hwpToHwpx: hwpToHwpx2 } = await import("./to-hwpx-M7W7O47H.js");
34368
+ const { hwpToHwpx: hwpToHwpx2 } = await import("./to-hwpx-KVCLOFIT.js");
34369
34369
  const hwpx = await hwpToHwpx2(new Uint8Array(buffer));
34370
34370
  buffer = hwpx.buffer.slice(hwpx.byteOffset, hwpx.byteOffset + hwpx.byteLength);
34371
34371
  } else {
package/dist/mcp.js CHANGED
@@ -48,46 +48,46 @@ import {
48
48
  unknownFontWarnings,
49
49
  usesGaejosikMunche,
50
50
  usesLogicStructure
51
- } from "./chunk-TFKBIIDY.js";
52
- import "./chunk-Z4RKJYK4.js";
53
- import "./chunk-6RJGAVYA.js";
51
+ } from "./chunk-B6IV3WVP.js";
52
+ import "./chunk-RO577YPX.js";
53
+ import "./chunk-B6OD2Z3R.js";
54
54
  import {
55
55
  extractHwpxMetadataOnly,
56
56
  patchHwp,
57
57
  patchHwpx
58
- } from "./chunk-7YAXU4XB.js";
59
- import "./chunk-ENUL3MLZ.js";
58
+ } from "./chunk-I5PYUR3W.js";
59
+ import "./chunk-CY3JNBY7.js";
60
60
  import {
61
61
  AGENCY_COMMON_NAME,
62
62
  PRESET_ALIAS,
63
63
  agencyNames,
64
64
  incompatibleGongmunWarnings,
65
65
  markdownToHwpx
66
- } from "./chunk-DSUKSIMD.js";
67
- import "./chunk-AEQJOD3U.js";
68
- import "./chunk-LVRS6HPA.js";
69
- import "./chunk-FAJO643G.js";
70
- import "./chunk-HBKSG62C.js";
71
- import "./chunk-36KS4PDO.js";
66
+ } from "./chunk-IZFALQLA.js";
67
+ import "./chunk-CKOSQJCH.js";
68
+ import "./chunk-EEUN7GWB.js";
69
+ import "./chunk-W5FLEZV4.js";
70
+ import "./chunk-7B6W4I3A.js";
71
+ import "./chunk-BWD4IPFG.js";
72
72
  import {
73
73
  extractFormFields,
74
74
  fillWithUniqueGuard
75
75
  } from "./chunk-3AHL6YEA.js";
76
- import "./chunk-ZOOI4PGA.js";
76
+ import "./chunk-Q2QT6AL6.js";
77
77
  import {
78
78
  hwpToHwpx
79
- } from "./chunk-Y2NIFMWC.js";
79
+ } from "./chunk-GSBMOVCF.js";
80
80
  import {
81
81
  extractHwp5MetadataOnly
82
- } from "./chunk-M5VCRPXU.js";
82
+ } from "./chunk-Y3X53MRF.js";
83
83
  import "./chunk-ZP2EW3YG.js";
84
- import "./chunk-YRYL75TY.js";
84
+ import "./chunk-TEWYIAFY.js";
85
85
  import "./chunk-WFKFG2RT.js";
86
86
  import "./chunk-3WSNLH4B.js";
87
- import "./chunk-PNKLL5TE.js";
88
- import "./chunk-YDONOMUK.js";
87
+ import "./chunk-2DJI6DDM.js";
88
+ import "./chunk-E4D3HKPN.js";
89
89
  import "./chunk-VQFA55IC.js";
90
- import "./chunk-VZRUNNZ2.js";
90
+ import "./chunk-VS5FCFDX.js";
91
91
  import "./chunk-EFQPEQ43.js";
92
92
  import "./chunk-CK7LADMK.js";
93
93
  import {
@@ -98,16 +98,16 @@ import {
98
98
  import "./chunk-H7K5YHWQ.js";
99
99
  import "./chunk-IIOBUTXH.js";
100
100
  import "./chunk-QLZHIJWJ.js";
101
- import "./chunk-QXAQIVOI.js";
101
+ import "./chunk-IPAKNA6R.js";
102
102
  import {
103
103
  blocksToMarkdown
104
- } from "./chunk-BXNK6DQL.js";
104
+ } from "./chunk-RDDRHUSA.js";
105
105
  import "./chunk-KFF47XZ7.js";
106
106
  import {
107
107
  assertWithinRoot,
108
108
  getAccessRoot,
109
109
  isOfflineMode
110
- } from "./chunk-F5RCXSUO.js";
110
+ } from "./chunk-HNTRTZ2J.js";
111
111
  import {
112
112
  KordocError,
113
113
  VERSION,
@@ -115,7 +115,7 @@ import {
115
115
  routeConsoleToStderr,
116
116
  sanitizeError,
117
117
  toArrayBuffer
118
- } from "./chunk-KK77Q5NA.js";
118
+ } from "./chunk-4DA67IZR.js";
119
119
 
120
120
  // src/mcp.ts
121
121
  import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
@@ -432,7 +432,7 @@ ${markdown}`);
432
432
  break;
433
433
  case "pdf":
434
434
  try {
435
- const { extractPdfMetadataOnly } = await import("./parser-OAQ2QNB6.js");
435
+ const { extractPdfMetadataOnly } = await import("./parser-EIOKEMXD.js");
436
436
  metadata = await extractPdfMetadataOnly(buffer);
437
437
  } catch {
438
438
  metadata = void 0;
@@ -609,7 +609,7 @@ ${tableMarkdown}` }]
609
609
  if (!parsed.success) {
610
610
  return { content: [{ type: "text", text: `\uD30C\uC2F1 \uC2E4\uD328: ${parsed.error}` }], isError: true };
611
611
  }
612
- const { blocksToChunks } = await import("./chunks-QN3OZOZA.js");
612
+ const { blocksToChunks } = await import("./chunks-6UAF6SYV.js");
613
613
  const chunks = blocksToChunks(parsed.blocks, { granularity, includeTableCells: include_table_cells });
614
614
  return { content: [{ type: "text", text: capResponseText(JSON.stringify(chunks, null, 2)) }] };
615
615
  } catch (err) {
@@ -889,7 +889,7 @@ ${previewMd}` }]
889
889
  }
890
890
  const image = new Uint8Array(await readFile2(imgResolved));
891
891
  const ext = extname2(imgResolved).slice(1).toLowerCase();
892
- const { placeSealHwpx } = await import("./seal-BEVAF3RV.js");
892
+ const { placeSealHwpx } = await import("./seal-ZNN4P4IN.js");
893
893
  const result = await placeSealHwpx(buffer, [{
894
894
  anchor,
895
895
  occurrence,
@@ -945,7 +945,7 @@ ${previewMd}` }]
945
945
  if (format !== "hwpx") {
946
946
  return { content: [{ type: "text", text: `add_memo \uB294 HWPX\xB7HWP 5.x \uD30C\uC77C\uB9CC \uC9C0\uC6D0\uD569\uB2C8\uB2E4 (\uAC10\uC9C0\uB41C \uD3EC\uB9F7: ${format}).` }], isError: true };
947
947
  }
948
- const { addMemoHwpx } = await import("./memo-7BFDELVU.js");
948
+ const { addMemoHwpx } = await import("./memo-A4PUH3YJ.js");
949
949
  const result = await addMemoHwpx(buffer, [{ anchor, text, author, occurrence }]);
950
950
  await mkdir(dirname2(outPath), { recursive: true });
951
951
  await writeOutputFile(outPath, Buffer.from(result.buffer));
@@ -987,7 +987,7 @@ ${previewMd}` }]
987
987
  }
988
988
  const original = new Uint8Array(buffer);
989
989
  const result = isHwpx ? await patchHwpx(original, edited_markdown, structure === false ? { structure: false } : void 0) : await patchHwp(original, edited_markdown);
990
- const { needsRewrite, rewriteEdited, rewritePath } = await import("./rewrite-fallback-RITELBHU.js");
990
+ const { needsRewrite, rewriteEdited, rewritePath } = await import("./rewrite-fallback-FVI3MVUH.js");
991
991
  const rewrite = needsRewrite(result) ? await rewriteEdited(original, isHwpx, edited_markdown, result.success) : null;
992
992
  const rwOut = rewrite ? safeOutputPath(rewritePath(out), /* @__PURE__ */ new Set([".hwpx"])) : void 0;
993
993
  if (rewrite && rwOut) {
@@ -1056,7 +1056,7 @@ ${rewriteLine}` }] };
1056
1056
  if (outPath && await isSameFile(outPath, resolved)) {
1057
1057
  return { content: [{ type: "text", text: "output_path\uAC00 \uC785\uB825 \uD30C\uC77C\uACFC \uAC19\uC2B5\uB2C8\uB2E4 \u2014 \uC6D0\uBCF8\uC744 \uB36E\uC5B4\uC4F0\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4. \uB2E4\uB978 \uACBD\uB85C\uB97C \uC9C0\uC815\uD558\uC138\uC694." }], isError: true };
1058
1058
  }
1059
- const { redactDocument } = await import("./redact-doc-NPMUDPQZ.js");
1059
+ const { redactDocument } = await import("./redact-doc-UWXE2D52.js");
1060
1060
  const r = await redactDocument(buffer, { rules, maskChar: mask_char, filePath: file_path, dryRun: dry_run });
1061
1061
  const MAX_LINES = 50;
1062
1062
  const listed = r.fileHits.length > 0 ? r.fileHits.map((h) => ` - [${h.rule}] ${h.masked} (${h.where} @ ${h.part})`) : r.markdownHits.map((h) => ` - [${h.rule}] ${h.masked}`);
@@ -1131,7 +1131,7 @@ function registerRenderTools(server2) {
1131
1131
  const { buffer, resolved } = await readValidatedFile(file_path, MAX_FILE_SIZE, /* @__PURE__ */ new Set([".hwpx", ".hwp"]));
1132
1132
  const isHwp5 = resolved.toLowerCase().endsWith(".hwp");
1133
1133
  if (!isHwp5 && !pages && (format === "png" || format === "svg")) {
1134
- const { renderHwpxToSvg } = await import("./render-F43PBJAG.js");
1134
+ const { renderHwpxToSvg } = await import("./render-3TPZAAY3.js");
1135
1135
  const result = await renderHwpxToSvg(buffer, { highlights, reflow: true, reflowMode: reflow_mode, password });
1136
1136
  const summary2 = [
1137
1137
  `\uB80C\uB354 \uC644\uB8CC: ${result.pageCount}\uD398\uC774\uC9C0, ${Math.round(result.width)}x${Math.round(result.height)}pt (\uD14D\uC2A4\uD2B8 ${result.stats.texts}\xB7\uC774\uBBF8\uC9C0 ${result.stats.images}\xB7\uD45C ${result.stats.tables})`,
@@ -1143,7 +1143,7 @@ function registerRenderTools(server2) {
1143
1143
  summary2.push(`\uC800\uC7A5: ${outPath}`);
1144
1144
  return { content: [{ type: "text", text: summary2.join("\n") }] };
1145
1145
  }
1146
- const { rasterizeSvg } = await import("./rasterize-ZJZKZF5R.js");
1146
+ const { rasterizeSvg } = await import("./rasterize-2TX6CRQY.js");
1147
1147
  const raster = await rasterizeSvg(result.svg, result.width, result.height, max_width_px ? { maxWidthPx: max_width_px } : void 0);
1148
1148
  if (outPath) {
1149
1149
  await mkdir2(dirname3(outPath), { recursive: true });
@@ -1158,7 +1158,7 @@ function registerRenderTools(server2) {
1158
1158
  ]
1159
1159
  };
1160
1160
  }
1161
- const { renderDocument } = await import("./render-F43PBJAG.js");
1161
+ const { renderDocument } = await import("./render-3TPZAAY3.js");
1162
1162
  const { scene, assets } = await renderDocument(buffer, { format, pages, highlights, reflow: true, reflowMode: reflow_mode, maxWidthPx: max_width_px, password });
1163
1163
  const summary = [
1164
1164
  `\uB80C\uB354 \uC644\uB8CC: \uBB38\uC11C ${scene.pages.length}\uD398\uC774\uC9C0 \uC911 ${assets.filter((a) => a.page !== void 0).length || 1}\uAC74 (\uD14D\uC2A4\uD2B8 ${scene.stats.texts}\xB7\uC774\uBBF8\uC9C0 ${scene.stats.images}\xB7\uD45C ${scene.stats.tables}\xB7\uB3C4\uD615 ${scene.stats.shapes})`,
@@ -1208,7 +1208,7 @@ function registerRenderTools(server2) {
1208
1208
  try {
1209
1209
  const { buffer } = await readValidatedFile(file_path, MAX_FILE_SIZE, /* @__PURE__ */ new Set([".hwpx", ".hwp"]));
1210
1210
  const dir = safeOutputPath(join2(output_dir, "regions.json"), /* @__PURE__ */ new Set([".json"])).replace(/[\\/]regions\.json$/, "");
1211
- const { extractRenderedRegions } = await import("./render-F43PBJAG.js");
1211
+ const { extractRenderedRegions } = await import("./render-3TPZAAY3.js");
1212
1212
  const regions = await extractRenderedRegions(buffer, { types: target, format, pages, paddingPt: padding_pt, reflow: true });
1213
1213
  await mkdir2(dir, { recursive: true });
1214
1214
  const ext = format === "jpeg" ? "jpg" : "png";
@@ -1244,7 +1244,7 @@ function registerRenderTools(server2) {
1244
1244
  }
1245
1245
  const { buffer } = await readValidatedFile(file_path, MAX_FILE_SIZE, /* @__PURE__ */ new Set([".hwpx", ".hwp"]));
1246
1246
  const dir = output_dir ? safeOutputPath(join2(output_dir, "tables.json"), /* @__PURE__ */ new Set([".json"])).replace(/[\\/]tables\.json$/, "") : void 0;
1247
- const { extractTables } = await import("./visual-EG4OBDUG.js");
1247
+ const { extractTables } = await import("./visual-UDZERIUK.js");
1248
1248
  const tables = await extractTables(buffer, { policy: visual, format, paddingPt: padding_pt });
1249
1249
  if (dir) await mkdir2(dir, { recursive: true });
1250
1250
  const ext = format === "jpeg" ? "jpg" : "png";
@@ -1301,7 +1301,7 @@ function registerGenerateTools(server2) {
1301
1301
  try {
1302
1302
  const out = safeOutputPath(output_path, PROFILE_EXTENSIONS);
1303
1303
  const { buffer } = await readValidatedFile(hwpx_path);
1304
- const { hwpxToProfile } = await import("./-3INLR7KZ.js");
1304
+ const { hwpxToProfile } = await import("./-WCLMRO7B.js");
1305
1305
  const profile = await hwpxToProfile(buffer);
1306
1306
  await mkdir3(dirname4(out), { recursive: true });
1307
1307
  await writeOutputFile(out, JSON.stringify(profile, null, 2));
@@ -1456,7 +1456,7 @@ ${g.blocking.map((f) => `- ${formatGateFinding(f)}`).join("\n")}` }],
1456
1456
  }
1457
1457
  let profile;
1458
1458
  if (profile_path) {
1459
- const { parseFormatProfileJson } = await import("./profile-io-IOVBPV7R.js");
1459
+ const { parseFormatProfileJson } = await import("./profile-io-AEG7M5KV.js");
1460
1460
  profile = parseFormatProfileJson(await readFile3(safePath(profile_path, PROFILE_EXTENSIONS), "utf-8"));
1461
1461
  }
1462
1462
  const out = safeOutputPath(output_path, /* @__PURE__ */ new Set([".hwpx"]));
@@ -1609,7 +1609,7 @@ function registerLintTools(server2) {
1609
1609
  let irBlocks;
1610
1610
  if (file_path !== void 0) {
1611
1611
  const { buffer, resolved } = await readValidatedFile(file_path, MAX_FILE_SIZE, ALLOWED_EXTENSIONS);
1612
- const { parse: parse2 } = await import("./-3INLR7KZ.js");
1612
+ const { parse: parse2 } = await import("./-WCLMRO7B.js");
1613
1613
  const parsed = await parse2(buffer, { filePath: resolved });
1614
1614
  if (!parsed.success) throw new KordocError(`\uBB38\uC11C\uB97C \uC77D\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4 \u2014 ${parsed.error}`);
1615
1615
  body = parsed.markdown;
@@ -1668,7 +1668,7 @@ function registerConvertTools(server2) {
1668
1668
  if (!output_path && await access(outPath).then(() => true, () => false)) {
1669
1669
  throw new KordocError(`${outPath} \uC774(\uAC00) \uC774\uBBF8 \uC788\uC2B5\uB2C8\uB2E4 \u2014 \uB36E\uC5B4\uC4F0\uB824\uBA74 output_path \uB85C \uACBD\uB85C\uB97C \uC9C1\uC811 \uC9C0\uC815\uD558\uC138\uC694`);
1670
1670
  }
1671
- const { convertToHwpx, validateHwpx } = await import("./-3INLR7KZ.js");
1671
+ const { convertToHwpx, validateHwpx } = await import("./-WCLMRO7B.js");
1672
1672
  const result = await convertToHwpx(buffer, { password, engine });
1673
1673
  const check = await validateHwpx(result.data);
1674
1674
  await mkdir4(dirname5(outPath), { recursive: true });
@@ -0,0 +1,17 @@
1
+ #!/usr/bin/env node
2
+ import {
3
+ addMemoHwpx
4
+ } from "./chunk-EEUN7GWB.js";
5
+ import "./chunk-W5FLEZV4.js";
6
+ import "./chunk-7B6W4I3A.js";
7
+ import "./chunk-BWD4IPFG.js";
8
+ import "./chunk-3AHL6YEA.js";
9
+ import "./chunk-Q2QT6AL6.js";
10
+ import "./chunk-TEWYIAFY.js";
11
+ import "./chunk-WFKFG2RT.js";
12
+ import "./chunk-KFF47XZ7.js";
13
+ import "./chunk-4DA67IZR.js";
14
+ export {
15
+ addMemoHwpx
16
+ };
17
+ //# sourceMappingURL=memo-A4PUH3YJ.js.map
@@ -1,14 +1,14 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  ALL_OCR_MODELS
4
- } from "./chunk-PSWNPOWW.js";
4
+ } from "./chunk-WHQXWZZK.js";
5
5
  import {
6
6
  ALL_FORMULA_MODELS,
7
7
  getModelStatusIn,
8
8
  getModelsDir
9
- } from "./chunk-MQYI7KWD.js";
10
- import "./chunk-F5RCXSUO.js";
11
- import "./chunk-KK77Q5NA.js";
9
+ } from "./chunk-3G2BXR34.js";
10
+ import "./chunk-HNTRTZ2J.js";
11
+ import "./chunk-4DA67IZR.js";
12
12
 
13
13
  // src/shared/model-bundle.ts
14
14
  import { copyFile, mkdir } from "fs/promises";
@@ -101,4 +101,4 @@ export {
101
101
  importModels,
102
102
  modelCacheStatus
103
103
  };
104
- //# sourceMappingURL=model-bundle-VGXIVXVT.js.map
104
+ //# sourceMappingURL=model-bundle-DPTHBESJ.js.map
@@ -19,10 +19,10 @@ import {
19
19
  ocrSourcePath,
20
20
  parseCharacterDict,
21
21
  resolveOcrModels
22
- } from "./chunk-PSWNPOWW.js";
23
- import "./chunk-MQYI7KWD.js";
24
- import "./chunk-F5RCXSUO.js";
25
- import "./chunk-KK77Q5NA.js";
22
+ } from "./chunk-WHQXWZZK.js";
23
+ import "./chunk-3G2BXR34.js";
24
+ import "./chunk-HNTRTZ2J.js";
25
+ import "./chunk-4DA67IZR.js";
26
26
  export {
27
27
  ALL_OCR_MODELS,
28
28
  DEFAULT_OCR_MODELS,
@@ -44,4 +44,4 @@ export {
44
44
  parseCharacterDict,
45
45
  resolveOcrModels
46
46
  };
47
- //# sourceMappingURL=models-TUSHH7AR.js.map
47
+ //# sourceMappingURL=models-O7M5SDJV.js.map
@@ -1,37 +1,37 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  parseWorkerFile
4
- } from "./chunk-V5JHID6L.js";
4
+ } from "./chunk-A6KTEOXE.js";
5
5
  import {
6
6
  insideSandbox
7
7
  } from "./chunk-7Y6KVNIT.js";
8
8
  import {
9
9
  lintBlocks
10
- } from "./chunk-TFKBIIDY.js";
11
- import "./chunk-Z4RKJYK4.js";
12
- import "./chunk-6RJGAVYA.js";
13
- import "./chunk-7YAXU4XB.js";
14
- import "./chunk-ENUL3MLZ.js";
10
+ } from "./chunk-B6IV3WVP.js";
11
+ import "./chunk-RO577YPX.js";
12
+ import "./chunk-B6OD2Z3R.js";
13
+ import "./chunk-I5PYUR3W.js";
14
+ import "./chunk-CY3JNBY7.js";
15
15
  import {
16
16
  PRESET_ALIAS
17
- } from "./chunk-DSUKSIMD.js";
18
- import "./chunk-AEQJOD3U.js";
19
- import "./chunk-LVRS6HPA.js";
20
- import "./chunk-FAJO643G.js";
21
- import "./chunk-HBKSG62C.js";
22
- import "./chunk-36KS4PDO.js";
17
+ } from "./chunk-IZFALQLA.js";
18
+ import "./chunk-CKOSQJCH.js";
19
+ import "./chunk-EEUN7GWB.js";
20
+ import "./chunk-W5FLEZV4.js";
21
+ import "./chunk-7B6W4I3A.js";
22
+ import "./chunk-BWD4IPFG.js";
23
23
  import "./chunk-3AHL6YEA.js";
24
- import "./chunk-ZOOI4PGA.js";
25
- import "./chunk-Y2NIFMWC.js";
26
- import "./chunk-M5VCRPXU.js";
24
+ import "./chunk-Q2QT6AL6.js";
25
+ import "./chunk-GSBMOVCF.js";
26
+ import "./chunk-Y3X53MRF.js";
27
27
  import "./chunk-ZP2EW3YG.js";
28
- import "./chunk-YRYL75TY.js";
28
+ import "./chunk-TEWYIAFY.js";
29
29
  import "./chunk-WFKFG2RT.js";
30
30
  import "./chunk-3WSNLH4B.js";
31
- import "./chunk-PNKLL5TE.js";
32
- import "./chunk-YDONOMUK.js";
31
+ import "./chunk-2DJI6DDM.js";
32
+ import "./chunk-E4D3HKPN.js";
33
33
  import "./chunk-VQFA55IC.js";
34
- import "./chunk-VZRUNNZ2.js";
34
+ import "./chunk-VS5FCFDX.js";
35
35
  import "./chunk-EFQPEQ43.js";
36
36
  import "./chunk-CK7LADMK.js";
37
37
  import "./chunk-3O3KTZ7H.js";
@@ -40,13 +40,13 @@ import {
40
40
  validateOcrOptions
41
41
  } from "./chunk-IIOBUTXH.js";
42
42
  import "./chunk-QLZHIJWJ.js";
43
- import "./chunk-QXAQIVOI.js";
44
- import "./chunk-BXNK6DQL.js";
43
+ import "./chunk-IPAKNA6R.js";
44
+ import "./chunk-RDDRHUSA.js";
45
45
  import "./chunk-KFF47XZ7.js";
46
46
  import {
47
47
  VERSION,
48
48
  sanitizeError
49
- } from "./chunk-KK77Q5NA.js";
49
+ } from "./chunk-4DA67IZR.js";
50
50
 
51
51
  // src/cli/parse-worker-v2.ts
52
52
  import { createHash } from "crypto";
@@ -389,4 +389,4 @@ export {
389
389
  runParseWorkerV2,
390
390
  toParseOptions
391
391
  };
392
- //# sourceMappingURL=parse-worker-v2-Z3XGSG52.js.map
392
+ //# sourceMappingURL=parse-worker-v2-3ILBPY7P.js.map
@@ -4,7 +4,7 @@ import {
4
4
  blocksToPages,
5
5
  isBlankRgba,
6
6
  loadQrReader
7
- } from "./chunk-6RJGAVYA.js";
7
+ } from "./chunk-B6OD2Z3R.js";
8
8
  import {
9
9
  hasRequestedPagesAfter,
10
10
  parsePageRange
@@ -69,7 +69,7 @@ import {
69
69
  stripAbsorbedRunningLines,
70
70
  trimTrailingEmptyTableCols,
71
71
  wrapJoiner
72
- } from "./chunk-7RQDJ63R.js";
72
+ } from "./chunk-JEVINS5E.js";
73
73
  import {
74
74
  validateOcrOptions
75
75
  } from "./chunk-IIOBUTXH.js";
@@ -82,12 +82,12 @@ import {
82
82
  stripScriptTags,
83
83
  toTex,
84
84
  unframeLayoutTables
85
- } from "./chunk-QXAQIVOI.js";
85
+ } from "./chunk-IPAKNA6R.js";
86
86
  import {
87
87
  assignTableIds,
88
88
  blocksToMarkdown,
89
89
  escapeLiteralDollar
90
- } from "./chunk-BXNK6DQL.js";
90
+ } from "./chunk-RDDRHUSA.js";
91
91
  import {
92
92
  WINGDINGS,
93
93
  enclosedNumber,
@@ -98,13 +98,13 @@ import {
98
98
  handwritingFallbackModels,
99
99
  ocrModelsCached,
100
100
  resolveOcrModels
101
- } from "./chunk-PSWNPOWW.js";
102
- import "./chunk-MQYI7KWD.js";
103
- import "./chunk-F5RCXSUO.js";
101
+ } from "./chunk-WHQXWZZK.js";
102
+ import "./chunk-3G2BXR34.js";
103
+ import "./chunk-HNTRTZ2J.js";
104
104
  import {
105
105
  KordocError,
106
106
  sanitizeHref
107
- } from "./chunk-KK77Q5NA.js";
107
+ } from "./chunk-4DA67IZR.js";
108
108
 
109
109
  // src/pdf/image-blank.ts
110
110
  import { createHash } from "crypto";
@@ -1994,9 +1994,10 @@ function mergeSplitRow(table, owner, first, colXs, textOnly = false, cut = NO_CU
1994
1994
  const carriedSplit = !textOnly && carried && !newCell && (contentPairs.length <= 1 || contentPairs.every(([, d]) => d.rs > 1) || !cut.ruled && contentPairs.some(([u, d]) => wordOverflows(cell(u), cell(d), colXs[u.c], colXs[u.c + u.cs])));
1995
1995
  if (!carriedSplit && !band) {
1996
1996
  const norm = (c) => flowText(c.text).replace(/\s+/g, "");
1997
- if (pairs.some(([u, d]) => hasContent(d.cell) && norm(cell(d)) !== norm(cell(u)) && lineEnded(cell(u), colXs[u.c], colXs[u.c + u.cs], cell(d)))) return false;
1997
+ const openCut = cut.open && !newCell;
1998
+ if (!openCut && pairs.some(([u, d]) => hasContent(d.cell) && norm(cell(d)) !== norm(cell(u)) && lineEnded(cell(u), colXs[u.c], colXs[u.c + u.cs], cell(d)))) return false;
1998
1999
  const oneLine = (c) => CELL_LINES.get(c)?.length === 1;
1999
- if (pairs.some(([u, d]) => nextItemHead(cell(u).text, cell(d).text)) && pairs.some(([u, d]) => hasContent(u.cell) && hasContent(d.cell) && oneLine(cell(u)) && oneLine(cell(d)) && norm(cell(u)) !== norm(cell(d)))) return false;
2000
+ if (!openCut && pairs.some(([u, d]) => nextItemHead(cell(u).text, cell(d).text)) && pairs.some(([u, d]) => hasContent(u.cell) && hasContent(d.cell) && oneLine(cell(u)) && oneLine(cell(d)) && norm(cell(u)) !== norm(cell(d)))) return false;
2000
2001
  if (cut.ruled && pairs.some(([u, d]) => u.rs >= 2 && hasContent(u.cell) && hasContent(d.cell) && oneLine(cell(u)) && oneLine(cell(d)) && norm(cell(u)) !== norm(cell(d)))) return false;
2001
2002
  const flows = ([u, d]) => continuesAcross(cell(u), cell(d), colXs[u.c], colXs[u.c + u.cs]) || clauseContinues(cell(u), cell(d)) || quantityContinues(cell(u), cell(d));
2002
2003
  if (!(cut.open && !newCell)) {
@@ -3965,8 +3966,9 @@ function joinLoneColumns(items) {
3965
3966
  // src/pdf/tracked-text.ts
3966
3967
  import { OPS as OPS6, normalizeUnicode as normalizeUnicode3 } from "pdfjs-dist/legacy/build/pdf.mjs";
3967
3968
  var TRACKED = /^(?:[^\s\u1100-\u11ff\u3130-\u318f\uac00-\ud7a3] ){3,}[^\s\u1100-\u11ff\u3130-\u318f\uac00-\ud7a3]$/;
3969
+ var SPACED_NUMBER = /^(?=[^\d]*\d)(?=\S* )[\d\s\-().·,☎]+$/;
3968
3970
  function restoreTrackedSpacing(items, fnArray, argsArray) {
3969
- if (!items.some((it) => TRACKED.test(it.str ?? ""))) return 0;
3971
+ if (!items.some((it) => TRACKED.test(it.str ?? "") || SPACED_NUMBER.test((it.str ?? "").trim()))) return 0;
3970
3972
  const streams = /* @__PURE__ */ new Map();
3971
3973
  const saved = [];
3972
3974
  let font = "";
@@ -4012,6 +4014,10 @@ function restoreTrackedSpacing(items, fnArray, argsArray) {
4012
4014
  it.str = rebuilt;
4013
4015
  changed++;
4014
4016
  }
4017
+ } else if (SPACED_NUMBER.test(it.str.trim()) && /\S\s+\S/.test(text)) {
4018
+ it.str = text.replace(/\s+/g, " ").trim();
4019
+ it.glyphSpaced = true;
4020
+ changed++;
4015
4021
  }
4016
4022
  }
4017
4023
  return changed;
@@ -4802,7 +4808,7 @@ function mergeLinkRuns(markdown) {
4802
4808
 
4803
4809
  // src/pdf/formula-ocr.ts
4804
4810
  async function applyFormulaOcr(buffer, blocks, pageFilter, effectivePageCount, warnings, _onProgress) {
4805
- const formulaMod = await import("./formula-OYCTBHT6.js");
4811
+ const formulaMod = await import("./formula-NBB34N4Y.js");
4806
4812
  const { FormulaPipeline, ensureFormulaModels } = formulaMod;
4807
4813
  await ensureFormulaModels((p) => {
4808
4814
  if (p.phase === "download" && p.total) {
@@ -5253,10 +5259,10 @@ async function parsePdfDocument(buffer, options) {
5253
5259
  }
5254
5260
  if (targets.size > 0) {
5255
5261
  try {
5256
- const { runPdfOcr } = await import("./pdf-ocr-WRJDDC57.js");
5262
+ const { runPdfOcr } = await import("./pdf-ocr-OU7XVMJW.js");
5257
5263
  const mode = typeof options?.ocr === "function" ? options.ocr : "builtin";
5258
5264
  const regionPages = new Map([...ocrRegions].filter(([p]) => options?.ocr !== "force" && !isImageBased && !pageQuality.find((q) => q.page === p)?.needsOcr));
5259
- const { builtinOcrConfig } = await import("./pdf-ocr-WRJDDC57.js");
5265
+ const { builtinOcrConfig } = await import("./pdf-ocr-OU7XVMJW.js");
5260
5266
  const ocrPageBlocks = await runPdfOcr(ocrBuffer, targets, mode, warnings, options?.onProgress, options?.tables !== false, vectorPageOps, regionPages, builtinOcrConfig(options), ocrLinesOut);
5261
5267
  for (const obs of ocrPageBlocks.values()) stripScriptTags({ blocks: obs });
5262
5268
  if (ocrPageBlocks.size > 0) {
@@ -5515,4 +5521,4 @@ export {
5515
5521
  parsePdfDocument,
5516
5522
  removeHeaderFooterBlocks
5517
5523
  };
5518
- //# sourceMappingURL=parser-OAQ2QNB6.js.map
5524
+ //# sourceMappingURL=parser-EIOKEMXD.js.map