kordoc 4.24.75 → 4.24.76
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.
- package/README.md +2 -2
- package/dist/{-IA5KLKYE.js → -2LCJEMU4.js} +22 -22
- package/dist/{chunk-7JMND4DW.cjs → chunk-2P3SFHOF.cjs} +88 -88
- package/dist/{chunk-7JMND4DW.cjs.map → chunk-2P3SFHOF.cjs.map} +1 -1
- package/dist/{chunk-UXWF3PM7.js → chunk-2P5GYSEI.js} +2 -2
- package/dist/{chunk-RYYDGS4R.js → chunk-2ZQUSUDC.js} +5 -5
- package/dist/{chunk-UNIYOWUQ.js → chunk-3X3ETOLW.js} +7 -7
- package/dist/{chunk-XNHDKTTV.cjs → chunk-43VUUMKV.cjs} +6 -6
- package/dist/{chunk-XNHDKTTV.cjs.map → chunk-43VUUMKV.cjs.map} +1 -1
- package/dist/{chunk-BX6TAXOM.js → chunk-45AT4XJD.js} +2 -2
- package/dist/{chunk-JQ6N26LA.js → chunk-4L3SF7EF.js} +2 -2
- package/dist/{chunk-RJBQXQAM.js → chunk-4RB5OPUZ.js} +2 -2
- package/dist/{chunk-HY3LV5HN.cjs → chunk-A7QRUXCJ.cjs} +3 -3
- package/dist/{chunk-HY3LV5HN.cjs.map → chunk-A7QRUXCJ.cjs.map} +1 -1
- package/dist/{chunk-V5XT2PRB.js → chunk-BUZLNJXB.js} +2 -2
- package/dist/{chunk-SODVNDR5.js → chunk-CWEB4XAH.js} +5 -5
- package/dist/{chunk-6F54BTUN.cjs → chunk-DIUYXWT2.cjs} +3 -3
- package/dist/{chunk-6F54BTUN.cjs.map → chunk-DIUYXWT2.cjs.map} +1 -1
- package/dist/{chunk-SEO3FQLR.cjs → chunk-DKRKNL2X.cjs} +58 -58
- package/dist/{chunk-SEO3FQLR.cjs.map → chunk-DKRKNL2X.cjs.map} +1 -1
- package/dist/{chunk-M33WZZPM.js → chunk-DTKVCSRC.js} +2 -2
- package/dist/{chunk-IITWVZF5.js → chunk-E2RQPNXX.js} +2 -2
- package/dist/{chunk-QQTMRZUG.cjs → chunk-HHRQX733.cjs} +203 -162
- package/dist/chunk-HHRQX733.cjs.map +1 -0
- package/dist/{chunk-RGSVM7RL.js → chunk-HQXVNLH2.js} +6 -6
- package/dist/{chunk-7USEKDFP.js → chunk-IRCO55NY.js} +2 -2
- package/dist/{chunk-TSACZSXD.js → chunk-J6RLB6KE.js} +2 -2
- package/dist/{chunk-WQQVAAPX.js → chunk-JT54JHR3.js} +2 -2
- package/dist/{chunk-GBOVNTH6.js → chunk-JYNG27VR.js} +54 -13
- package/dist/chunk-JYNG27VR.js.map +1 -0
- package/dist/{chunk-H7OEE7UV.js → chunk-LFXIZHPE.js} +16 -16
- package/dist/{chunk-N564V2TH.js → chunk-MHDVZBUV.js} +2 -2
- package/dist/{chunk-XV6A6WHZ.js → chunk-MQ44UJN6.js} +55 -14
- package/dist/chunk-MQ44UJN6.js.map +1 -0
- package/dist/{chunk-NNTUIJLC.js → chunk-MRHLGVK5.js} +2 -2
- package/dist/{chunk-SOW4ES4Y.js → chunk-ODJRLTXE.js} +2 -2
- package/dist/{chunk-DZPF2PWU.js → chunk-ODQJEBCB.js} +2 -2
- package/dist/{chunk-XJID65VS.js → chunk-PATC34WZ.js} +10 -10
- package/dist/{chunk-2RTRPVUB.js → chunk-PE3XRCTM.js} +4 -4
- package/dist/{chunk-XJNRTANY.js → chunk-PJ32UFPA.js} +2 -2
- package/dist/{chunk-QKOORIR2.cjs → chunk-QCH63KBP.cjs} +104 -104
- package/dist/{chunk-QKOORIR2.cjs.map → chunk-QCH63KBP.cjs.map} +1 -1
- package/dist/{chunk-SDQZSUFR.js → chunk-QDETIVPA.js} +6 -6
- package/dist/{chunk-NI3YCMGC.cjs → chunk-QIVOVMEC.cjs} +2 -2
- package/dist/{chunk-NI3YCMGC.cjs.map → chunk-QIVOVMEC.cjs.map} +1 -1
- package/dist/{chunk-YIW4AEC6.js → chunk-RNBBMRKF.js} +2 -2
- package/dist/{chunk-CXQXLQVT.js → chunk-RZXJFM3A.js} +2 -2
- package/dist/{chunk-ZOXPQZ4D.js → chunk-SABDVSQU.js} +11 -11
- package/dist/{chunk-S3RWTPEO.js → chunk-SQ7BI34M.js} +3 -3
- package/dist/{chunk-BIHQG2N7.js → chunk-T7YHAP4A.js} +3 -3
- package/dist/{chunk-SJG57YQQ.js → chunk-TGM5V7UD.js} +2 -2
- package/dist/{chunk-OQAE5NDF.js → chunk-U7EJ6QY7.js} +3 -3
- package/dist/{chunk-FZMAFLAY.js → chunk-V3MVGLWO.js} +5 -5
- package/dist/{chunk-CJYGYR2V.js → chunk-WTKISVEW.js} +2 -2
- package/dist/{chunk-MG2DFKP7.js → chunk-XIUXBJHE.js} +2 -2
- package/dist/{chunk-TOBOXNSE.cjs → chunk-XM4VBVYH.cjs} +8 -8
- package/dist/{chunk-TOBOXNSE.cjs.map → chunk-XM4VBVYH.cjs.map} +1 -1
- package/dist/{chunk-IPR3I6YO.js → chunk-XOC5PVAC.js} +2 -2
- package/dist/{chunk-FV57PXPQ.js → chunk-ZWA3MWAE.js} +3 -3
- package/dist/chunks-INR44FWQ.js +11 -0
- package/dist/cli.js +46 -46
- package/dist/{formula-XSFAUBCL.js → formula-3RUSZL2X.js} +4 -4
- package/dist/{formula-VPH2VTGN.cjs → formula-PNWIA2MN.cjs} +9 -9
- package/dist/{formula-VPH2VTGN.cjs.map → formula-PNWIA2MN.cjs.map} +1 -1
- package/dist/{formula-PMHBDDCI.js → formula-UJKRUT4H.js} +3 -3
- package/dist/generator-335G75L5.js +11 -0
- package/dist/generator-3S2MTXHO.cjs +12 -0
- package/dist/{generator-GFSOVACB.cjs.map → generator-3S2MTXHO.cjs.map} +1 -1
- package/dist/generator-R2CZZ2KU.js +18 -0
- package/dist/{hancom-UZAYAZLU.cjs → hancom-35Z4YAJB.cjs} +5 -5
- package/dist/{hancom-UZAYAZLU.cjs.map → hancom-35Z4YAJB.cjs.map} +1 -1
- package/dist/{hancom-Q2VC3YBY.js → hancom-4LFQU2RS.js} +2 -2
- package/dist/{hancom-MOQ5X7BT.js → hancom-VLS77NRS.js} +2 -2
- package/dist/{image-ocr-4RGMDWKZ.cjs → image-ocr-AGEB22EF.cjs} +36 -36
- package/dist/{image-ocr-4RGMDWKZ.cjs.map → image-ocr-AGEB22EF.cjs.map} +1 -1
- package/dist/{image-ocr-2Q2ZJYAJ.js → image-ocr-B7RRK43I.js} +8 -8
- package/dist/{image-ocr-KVV5JKY6.js → image-ocr-CCLUXSWY.js} +11 -11
- package/dist/index.cjs +1113 -1113
- package/dist/index.js +10 -10
- package/dist/mcp.js +37 -37
- package/dist/memo-SPNLGMIZ.js +17 -0
- package/dist/{model-bundle-SKRKICE4.js → model-bundle-KFPWVEFB.js} +5 -5
- package/dist/{models-QRQ4SU52.js → models-IOX5WK67.js} +5 -5
- package/dist/{parse-worker-v2-4BSQYNJ4.js → parse-worker-v2-IL6U65X3.js} +23 -23
- package/dist/{parser-B6YSYZTH.js → parser-ANWES7Z3.js} +12 -12
- package/dist/{parser-LVDXYJ2F.js → parser-ATU5CQZY.js} +9 -9
- package/dist/{parser-N5CJ252P.cjs → parser-NCSJG5KJ.cjs} +164 -164
- package/dist/{parser-N5CJ252P.cjs.map → parser-NCSJG5KJ.cjs.map} +1 -1
- package/dist/{pdf-ocr-5X2ZFG5O.js → pdf-ocr-7IH7FGKQ.js} +9 -9
- package/dist/pdf-ocr-F3ABLLXD.cjs +43 -0
- package/dist/{pdf-ocr-ZEP6O2UV.cjs.map → pdf-ocr-F3ABLLXD.cjs.map} +1 -1
- package/dist/{pdf-ocr-BJFC7NL3.js → pdf-ocr-ZUGHKM32.js} +6 -6
- package/dist/{profile-io-C55VLUZW.js → profile-io-BGUQJDGK.js} +3 -3
- package/dist/{rasterize-LCD3Q43I.js → rasterize-JOAG2QCQ.js} +3 -3
- package/dist/{redact-doc-BKNJOYE3.js → redact-doc-WL2GWBMN.js} +22 -22
- package/dist/{render-TWO5VQNJ.js → render-672D354C.js} +12 -12
- package/dist/{rewrite-fallback-AH3RNFIL.js → rewrite-fallback-2JAAIU6G.js} +13 -13
- package/dist/seal-XLDIGIIE.js +16 -0
- package/dist/{setup-VPGX6IJS.js → setup-L4PVFG65.js} +3 -3
- package/dist/{to-hwpx-JUWORW4M.js → to-hwpx-FR6GDNMY.js} +7 -7
- package/dist/{to-hwpx-TZFO5KL2.js → to-hwpx-OHZK2KBP.js} +4 -4
- package/dist/to-hwpx-VBVI5H4N.cjs +16 -0
- package/dist/{to-hwpx-LJQWVGOZ.cjs.map → to-hwpx-VBVI5H4N.cjs.map} +1 -1
- package/dist/visual-IXMRTYJK.js +40 -0
- package/dist/{watch-3J3O5GZN.js → watch-OH4BMY2N.js} +23 -23
- package/package.json +1 -1
- package/dist/chunk-GBOVNTH6.js.map +0 -1
- package/dist/chunk-QQTMRZUG.cjs.map +0 -1
- package/dist/chunk-XV6A6WHZ.js.map +0 -1
- package/dist/chunks-SC2MGE4B.js +0 -11
- package/dist/generator-4P5RXII7.js +0 -18
- package/dist/generator-GFSOVACB.cjs +0 -12
- package/dist/generator-NABTD6TU.js +0 -11
- package/dist/memo-K65K6E5J.js +0 -17
- package/dist/pdf-ocr-ZEP6O2UV.cjs +0 -43
- package/dist/seal-OCTCBT5O.js +0 -16
- package/dist/to-hwpx-LJQWVGOZ.cjs +0 -16
- package/dist/visual-SDJQ6EGR.js +0 -40
- /package/dist/{-IA5KLKYE.js.map → -2LCJEMU4.js.map} +0 -0
- /package/dist/{chunk-UXWF3PM7.js.map → chunk-2P5GYSEI.js.map} +0 -0
- /package/dist/{chunk-RYYDGS4R.js.map → chunk-2ZQUSUDC.js.map} +0 -0
- /package/dist/{chunk-UNIYOWUQ.js.map → chunk-3X3ETOLW.js.map} +0 -0
- /package/dist/{chunk-BX6TAXOM.js.map → chunk-45AT4XJD.js.map} +0 -0
- /package/dist/{chunk-JQ6N26LA.js.map → chunk-4L3SF7EF.js.map} +0 -0
- /package/dist/{chunk-RJBQXQAM.js.map → chunk-4RB5OPUZ.js.map} +0 -0
- /package/dist/{chunk-V5XT2PRB.js.map → chunk-BUZLNJXB.js.map} +0 -0
- /package/dist/{chunk-SODVNDR5.js.map → chunk-CWEB4XAH.js.map} +0 -0
- /package/dist/{chunk-M33WZZPM.js.map → chunk-DTKVCSRC.js.map} +0 -0
- /package/dist/{chunk-IITWVZF5.js.map → chunk-E2RQPNXX.js.map} +0 -0
- /package/dist/{chunk-RGSVM7RL.js.map → chunk-HQXVNLH2.js.map} +0 -0
- /package/dist/{chunk-7USEKDFP.js.map → chunk-IRCO55NY.js.map} +0 -0
- /package/dist/{chunk-TSACZSXD.js.map → chunk-J6RLB6KE.js.map} +0 -0
- /package/dist/{chunk-WQQVAAPX.js.map → chunk-JT54JHR3.js.map} +0 -0
- /package/dist/{chunk-H7OEE7UV.js.map → chunk-LFXIZHPE.js.map} +0 -0
- /package/dist/{chunk-N564V2TH.js.map → chunk-MHDVZBUV.js.map} +0 -0
- /package/dist/{chunk-NNTUIJLC.js.map → chunk-MRHLGVK5.js.map} +0 -0
- /package/dist/{chunk-SOW4ES4Y.js.map → chunk-ODJRLTXE.js.map} +0 -0
- /package/dist/{chunk-DZPF2PWU.js.map → chunk-ODQJEBCB.js.map} +0 -0
- /package/dist/{chunk-XJID65VS.js.map → chunk-PATC34WZ.js.map} +0 -0
- /package/dist/{chunk-2RTRPVUB.js.map → chunk-PE3XRCTM.js.map} +0 -0
- /package/dist/{chunk-XJNRTANY.js.map → chunk-PJ32UFPA.js.map} +0 -0
- /package/dist/{chunk-SDQZSUFR.js.map → chunk-QDETIVPA.js.map} +0 -0
- /package/dist/{chunk-YIW4AEC6.js.map → chunk-RNBBMRKF.js.map} +0 -0
- /package/dist/{chunk-CXQXLQVT.js.map → chunk-RZXJFM3A.js.map} +0 -0
- /package/dist/{chunk-ZOXPQZ4D.js.map → chunk-SABDVSQU.js.map} +0 -0
- /package/dist/{chunk-S3RWTPEO.js.map → chunk-SQ7BI34M.js.map} +0 -0
- /package/dist/{chunk-BIHQG2N7.js.map → chunk-T7YHAP4A.js.map} +0 -0
- /package/dist/{chunk-SJG57YQQ.js.map → chunk-TGM5V7UD.js.map} +0 -0
- /package/dist/{chunk-OQAE5NDF.js.map → chunk-U7EJ6QY7.js.map} +0 -0
- /package/dist/{chunk-FZMAFLAY.js.map → chunk-V3MVGLWO.js.map} +0 -0
- /package/dist/{chunk-CJYGYR2V.js.map → chunk-WTKISVEW.js.map} +0 -0
- /package/dist/{chunk-MG2DFKP7.js.map → chunk-XIUXBJHE.js.map} +0 -0
- /package/dist/{chunk-IPR3I6YO.js.map → chunk-XOC5PVAC.js.map} +0 -0
- /package/dist/{chunk-FV57PXPQ.js.map → chunk-ZWA3MWAE.js.map} +0 -0
- /package/dist/{chunks-SC2MGE4B.js.map → chunks-INR44FWQ.js.map} +0 -0
- /package/dist/{formula-XSFAUBCL.js.map → formula-3RUSZL2X.js.map} +0 -0
- /package/dist/{formula-PMHBDDCI.js.map → formula-UJKRUT4H.js.map} +0 -0
- /package/dist/{generator-4P5RXII7.js.map → generator-335G75L5.js.map} +0 -0
- /package/dist/{generator-NABTD6TU.js.map → generator-R2CZZ2KU.js.map} +0 -0
- /package/dist/{hancom-Q2VC3YBY.js.map → hancom-4LFQU2RS.js.map} +0 -0
- /package/dist/{hancom-MOQ5X7BT.js.map → hancom-VLS77NRS.js.map} +0 -0
- /package/dist/{image-ocr-2Q2ZJYAJ.js.map → image-ocr-B7RRK43I.js.map} +0 -0
- /package/dist/{image-ocr-KVV5JKY6.js.map → image-ocr-CCLUXSWY.js.map} +0 -0
- /package/dist/{memo-K65K6E5J.js.map → memo-SPNLGMIZ.js.map} +0 -0
- /package/dist/{model-bundle-SKRKICE4.js.map → model-bundle-KFPWVEFB.js.map} +0 -0
- /package/dist/{models-QRQ4SU52.js.map → models-IOX5WK67.js.map} +0 -0
- /package/dist/{parse-worker-v2-4BSQYNJ4.js.map → parse-worker-v2-IL6U65X3.js.map} +0 -0
- /package/dist/{parser-B6YSYZTH.js.map → parser-ANWES7Z3.js.map} +0 -0
- /package/dist/{parser-LVDXYJ2F.js.map → parser-ATU5CQZY.js.map} +0 -0
- /package/dist/{pdf-ocr-5X2ZFG5O.js.map → pdf-ocr-7IH7FGKQ.js.map} +0 -0
- /package/dist/{pdf-ocr-BJFC7NL3.js.map → pdf-ocr-ZUGHKM32.js.map} +0 -0
- /package/dist/{profile-io-C55VLUZW.js.map → profile-io-BGUQJDGK.js.map} +0 -0
- /package/dist/{rasterize-LCD3Q43I.js.map → rasterize-JOAG2QCQ.js.map} +0 -0
- /package/dist/{redact-doc-BKNJOYE3.js.map → redact-doc-WL2GWBMN.js.map} +0 -0
- /package/dist/{render-TWO5VQNJ.js.map → render-672D354C.js.map} +0 -0
- /package/dist/{rewrite-fallback-AH3RNFIL.js.map → rewrite-fallback-2JAAIU6G.js.map} +0 -0
- /package/dist/{seal-OCTCBT5O.js.map → seal-XLDIGIIE.js.map} +0 -0
- /package/dist/{setup-VPGX6IJS.js.map → setup-L4PVFG65.js.map} +0 -0
- /package/dist/{to-hwpx-JUWORW4M.js.map → to-hwpx-FR6GDNMY.js.map} +0 -0
- /package/dist/{to-hwpx-TZFO5KL2.js.map → to-hwpx-OHZK2KBP.js.map} +0 -0
- /package/dist/{visual-SDJQ6EGR.js.map → visual-IXMRTYJK.js.map} +0 -0
- /package/dist/{watch-3J3O5GZN.js.map → watch-OH4BMY2N.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-
|
|
51
|
+
} from "./chunk-CWEB4XAH.js";
|
|
52
52
|
import {
|
|
53
53
|
blocksToPages,
|
|
54
54
|
dropBlankImages,
|
|
55
55
|
readImageQrCodes,
|
|
56
56
|
wmfBitmap
|
|
57
|
-
} from "./chunk-
|
|
57
|
+
} from "./chunk-WTKISVEW.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-
|
|
66
|
+
} from "./chunk-ODQJEBCB.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-
|
|
250
|
+
} from "./chunk-U7EJ6QY7.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-
|
|
280
|
+
} from "./chunk-XIUXBJHE.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-
|
|
301
|
+
} from "./chunk-JT54JHR3.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-
|
|
17927
|
+
const { parseImageDocument } = await import("./image-ocr-B7RRK43I.js");
|
|
17928
17928
|
let inserted = false, unreadable = 0;
|
|
17929
17929
|
let failed = null;
|
|
17930
17930
|
const walk = async (list, depth) => {
|
|
@@ -34087,7 +34087,7 @@ var MAX_MULTIPAGE_PIXELS = 1e9;
|
|
|
34087
34087
|
var MIN_PAGE_PIXELS = 1e6;
|
|
34088
34088
|
async function parseImage(buffer, options) {
|
|
34089
34089
|
try {
|
|
34090
|
-
const { parseImageDocument, imagePageCount, imagePage, imagePagePixels } = await import("./image-ocr-
|
|
34090
|
+
const { parseImageDocument, imagePageCount, imagePage, imagePagePixels } = await import("./image-ocr-B7RRK43I.js");
|
|
34091
34091
|
const pageCount = await imagePageCount(buffer);
|
|
34092
34092
|
const wanted = pageCount > 1 && options?.pages ? parsePageRange(options.pages, pageCount) : null;
|
|
34093
34093
|
const blocks = [], warnings = [], lines = [], images = [];
|
|
@@ -34184,7 +34184,7 @@ async function parseHwp(buffer, options) {
|
|
|
34184
34184
|
async function parsePdf(buffer, options) {
|
|
34185
34185
|
let parsePdfDocument;
|
|
34186
34186
|
try {
|
|
34187
|
-
const mod = await import("./parser-
|
|
34187
|
+
const mod = await import("./parser-ATU5CQZY.js");
|
|
34188
34188
|
parsePdfDocument = mod.parsePdfDocument;
|
|
34189
34189
|
} catch {
|
|
34190
34190
|
return {
|
|
@@ -34266,7 +34266,7 @@ async function fillForm(input, values, outputFormat = "markdown") {
|
|
|
34266
34266
|
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})`);
|
|
34267
34267
|
}
|
|
34268
34268
|
} else if (format2 === "hwp" && detectOle2Format(buffer) === "hwp") {
|
|
34269
|
-
const { hwpToHwpx: hwpToHwpx2 } = await import("./to-hwpx-
|
|
34269
|
+
const { hwpToHwpx: hwpToHwpx2 } = await import("./to-hwpx-OHZK2KBP.js");
|
|
34270
34270
|
const hwpx = await hwpToHwpx2(new Uint8Array(buffer));
|
|
34271
34271
|
buffer = hwpx.buffer.slice(hwpx.byteOffset, hwpx.byteOffset + hwpx.byteLength);
|
|
34272
34272
|
} else {
|
package/dist/mcp.js
CHANGED
|
@@ -48,46 +48,46 @@ import {
|
|
|
48
48
|
unknownFontWarnings,
|
|
49
49
|
usesGaejosikMunche,
|
|
50
50
|
usesLogicStructure
|
|
51
|
-
} from "./chunk-
|
|
52
|
-
import "./chunk-
|
|
53
|
-
import "./chunk-
|
|
51
|
+
} from "./chunk-LFXIZHPE.js";
|
|
52
|
+
import "./chunk-PATC34WZ.js";
|
|
53
|
+
import "./chunk-TGM5V7UD.js";
|
|
54
54
|
import {
|
|
55
55
|
extractHwpxMetadataOnly,
|
|
56
56
|
patchHwp,
|
|
57
57
|
patchHwpx
|
|
58
|
-
} from "./chunk-
|
|
59
|
-
import "./chunk-
|
|
58
|
+
} from "./chunk-SABDVSQU.js";
|
|
59
|
+
import "./chunk-T7YHAP4A.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-
|
|
67
|
-
import "./chunk-
|
|
68
|
-
import "./chunk-
|
|
69
|
-
import "./chunk-
|
|
70
|
-
import "./chunk-
|
|
71
|
-
import "./chunk-
|
|
66
|
+
} from "./chunk-HQXVNLH2.js";
|
|
67
|
+
import "./chunk-BUZLNJXB.js";
|
|
68
|
+
import "./chunk-QDETIVPA.js";
|
|
69
|
+
import "./chunk-2ZQUSUDC.js";
|
|
70
|
+
import "./chunk-XOC5PVAC.js";
|
|
71
|
+
import "./chunk-RZXJFM3A.js";
|
|
72
72
|
import {
|
|
73
73
|
extractFormFields,
|
|
74
74
|
fillWithUniqueGuard
|
|
75
75
|
} from "./chunk-3AHL6YEA.js";
|
|
76
|
-
import "./chunk-
|
|
76
|
+
import "./chunk-RNBBMRKF.js";
|
|
77
77
|
import {
|
|
78
78
|
hwpToHwpx
|
|
79
|
-
} from "./chunk-
|
|
79
|
+
} from "./chunk-3X3ETOLW.js";
|
|
80
80
|
import {
|
|
81
81
|
extractHwp5MetadataOnly
|
|
82
|
-
} from "./chunk-
|
|
82
|
+
} from "./chunk-V3MVGLWO.js";
|
|
83
83
|
import "./chunk-ZP2EW3YG.js";
|
|
84
|
-
import "./chunk-
|
|
84
|
+
import "./chunk-PJ32UFPA.js";
|
|
85
85
|
import "./chunk-WFKFG2RT.js";
|
|
86
86
|
import "./chunk-3WSNLH4B.js";
|
|
87
|
-
import "./chunk-
|
|
88
|
-
import "./chunk-
|
|
87
|
+
import "./chunk-2P5GYSEI.js";
|
|
88
|
+
import "./chunk-45AT4XJD.js";
|
|
89
89
|
import "./chunk-VQFA55IC.js";
|
|
90
|
-
import "./chunk-
|
|
90
|
+
import "./chunk-4L3SF7EF.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-
|
|
101
|
+
import "./chunk-4RB5OPUZ.js";
|
|
102
102
|
import {
|
|
103
103
|
blocksToMarkdown
|
|
104
|
-
} from "./chunk-
|
|
104
|
+
} from "./chunk-IRCO55NY.js";
|
|
105
105
|
import "./chunk-KFF47XZ7.js";
|
|
106
106
|
import {
|
|
107
107
|
assertWithinRoot,
|
|
108
108
|
getAccessRoot,
|
|
109
109
|
isOfflineMode
|
|
110
|
-
} from "./chunk-
|
|
110
|
+
} from "./chunk-MRHLGVK5.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-
|
|
118
|
+
} from "./chunk-DTKVCSRC.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-
|
|
435
|
+
const { extractPdfMetadataOnly } = await import("./parser-ANWES7Z3.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-
|
|
612
|
+
const { blocksToChunks } = await import("./chunks-INR44FWQ.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-
|
|
892
|
+
const { placeSealHwpx } = await import("./seal-XLDIGIIE.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-
|
|
948
|
+
const { addMemoHwpx } = await import("./memo-SPNLGMIZ.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-
|
|
990
|
+
const { needsRewrite, rewriteEdited, rewritePath } = await import("./rewrite-fallback-2JAAIU6G.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-
|
|
1059
|
+
const { redactDocument } = await import("./redact-doc-WL2GWBMN.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-
|
|
1134
|
+
const { renderHwpxToSvg } = await import("./render-672D354C.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-
|
|
1146
|
+
const { rasterizeSvg } = await import("./rasterize-JOAG2QCQ.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-
|
|
1161
|
+
const { renderDocument } = await import("./render-672D354C.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-
|
|
1211
|
+
const { extractRenderedRegions } = await import("./render-672D354C.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-
|
|
1247
|
+
const { extractTables } = await import("./visual-IXMRTYJK.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("./-
|
|
1304
|
+
const { hwpxToProfile } = await import("./-2LCJEMU4.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-
|
|
1459
|
+
const { parseFormatProfileJson } = await import("./profile-io-BGUQJDGK.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("./-
|
|
1612
|
+
const { parse: parse2 } = await import("./-2LCJEMU4.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("./-
|
|
1671
|
+
const { convertToHwpx, validateHwpx } = await import("./-2LCJEMU4.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-QDETIVPA.js";
|
|
5
|
+
import "./chunk-2ZQUSUDC.js";
|
|
6
|
+
import "./chunk-XOC5PVAC.js";
|
|
7
|
+
import "./chunk-RZXJFM3A.js";
|
|
8
|
+
import "./chunk-3AHL6YEA.js";
|
|
9
|
+
import "./chunk-RNBBMRKF.js";
|
|
10
|
+
import "./chunk-PJ32UFPA.js";
|
|
11
|
+
import "./chunk-WFKFG2RT.js";
|
|
12
|
+
import "./chunk-KFF47XZ7.js";
|
|
13
|
+
import "./chunk-DTKVCSRC.js";
|
|
14
|
+
export {
|
|
15
|
+
addMemoHwpx
|
|
16
|
+
};
|
|
17
|
+
//# sourceMappingURL=memo-SPNLGMIZ.js.map
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
ALL_OCR_MODELS
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-MHDVZBUV.js";
|
|
5
5
|
import {
|
|
6
6
|
ALL_FORMULA_MODELS,
|
|
7
7
|
getModelStatusIn,
|
|
8
8
|
getModelsDir
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
9
|
+
} from "./chunk-ODJRLTXE.js";
|
|
10
|
+
import "./chunk-MRHLGVK5.js";
|
|
11
|
+
import "./chunk-DTKVCSRC.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-
|
|
104
|
+
//# sourceMappingURL=model-bundle-KFPWVEFB.js.map
|
|
@@ -19,10 +19,10 @@ import {
|
|
|
19
19
|
ocrSourcePath,
|
|
20
20
|
parseCharacterDict,
|
|
21
21
|
resolveOcrModels
|
|
22
|
-
} from "./chunk-
|
|
23
|
-
import "./chunk-
|
|
24
|
-
import "./chunk-
|
|
25
|
-
import "./chunk-
|
|
22
|
+
} from "./chunk-MHDVZBUV.js";
|
|
23
|
+
import "./chunk-ODJRLTXE.js";
|
|
24
|
+
import "./chunk-MRHLGVK5.js";
|
|
25
|
+
import "./chunk-DTKVCSRC.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-
|
|
47
|
+
//# sourceMappingURL=models-IOX5WK67.js.map
|
|
@@ -1,37 +1,37 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
parseWorkerFile
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-ZWA3MWAE.js";
|
|
5
5
|
import {
|
|
6
6
|
insideSandbox
|
|
7
7
|
} from "./chunk-7Y6KVNIT.js";
|
|
8
8
|
import {
|
|
9
9
|
lintBlocks
|
|
10
|
-
} from "./chunk-
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
10
|
+
} from "./chunk-LFXIZHPE.js";
|
|
11
|
+
import "./chunk-PATC34WZ.js";
|
|
12
|
+
import "./chunk-TGM5V7UD.js";
|
|
13
|
+
import "./chunk-SABDVSQU.js";
|
|
14
|
+
import "./chunk-T7YHAP4A.js";
|
|
15
15
|
import {
|
|
16
16
|
PRESET_ALIAS
|
|
17
|
-
} from "./chunk-
|
|
18
|
-
import "./chunk-
|
|
19
|
-
import "./chunk-
|
|
20
|
-
import "./chunk-
|
|
21
|
-
import "./chunk-
|
|
22
|
-
import "./chunk-
|
|
17
|
+
} from "./chunk-HQXVNLH2.js";
|
|
18
|
+
import "./chunk-BUZLNJXB.js";
|
|
19
|
+
import "./chunk-QDETIVPA.js";
|
|
20
|
+
import "./chunk-2ZQUSUDC.js";
|
|
21
|
+
import "./chunk-XOC5PVAC.js";
|
|
22
|
+
import "./chunk-RZXJFM3A.js";
|
|
23
23
|
import "./chunk-3AHL6YEA.js";
|
|
24
|
-
import "./chunk-
|
|
25
|
-
import "./chunk-
|
|
26
|
-
import "./chunk-
|
|
24
|
+
import "./chunk-RNBBMRKF.js";
|
|
25
|
+
import "./chunk-3X3ETOLW.js";
|
|
26
|
+
import "./chunk-V3MVGLWO.js";
|
|
27
27
|
import "./chunk-ZP2EW3YG.js";
|
|
28
|
-
import "./chunk-
|
|
28
|
+
import "./chunk-PJ32UFPA.js";
|
|
29
29
|
import "./chunk-WFKFG2RT.js";
|
|
30
30
|
import "./chunk-3WSNLH4B.js";
|
|
31
|
-
import "./chunk-
|
|
32
|
-
import "./chunk-
|
|
31
|
+
import "./chunk-2P5GYSEI.js";
|
|
32
|
+
import "./chunk-45AT4XJD.js";
|
|
33
33
|
import "./chunk-VQFA55IC.js";
|
|
34
|
-
import "./chunk-
|
|
34
|
+
import "./chunk-4L3SF7EF.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-
|
|
44
|
-
import "./chunk-
|
|
43
|
+
import "./chunk-4RB5OPUZ.js";
|
|
44
|
+
import "./chunk-IRCO55NY.js";
|
|
45
45
|
import "./chunk-KFF47XZ7.js";
|
|
46
46
|
import {
|
|
47
47
|
VERSION,
|
|
48
48
|
sanitizeError
|
|
49
|
-
} from "./chunk-
|
|
49
|
+
} from "./chunk-DTKVCSRC.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-
|
|
392
|
+
//# sourceMappingURL=parse-worker-v2-IL6U65X3.js.map
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
blocksToPages,
|
|
5
5
|
isBlankRgba,
|
|
6
6
|
loadQrReader
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-TGM5V7UD.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-
|
|
72
|
+
} from "./chunk-JYNG27VR.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-
|
|
85
|
+
} from "./chunk-4RB5OPUZ.js";
|
|
86
86
|
import {
|
|
87
87
|
assignTableIds,
|
|
88
88
|
blocksToMarkdown,
|
|
89
89
|
escapeLiteralDollar
|
|
90
|
-
} from "./chunk-
|
|
90
|
+
} from "./chunk-IRCO55NY.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-
|
|
102
|
-
import "./chunk-
|
|
103
|
-
import "./chunk-
|
|
101
|
+
} from "./chunk-MHDVZBUV.js";
|
|
102
|
+
import "./chunk-ODJRLTXE.js";
|
|
103
|
+
import "./chunk-MRHLGVK5.js";
|
|
104
104
|
import {
|
|
105
105
|
KordocError,
|
|
106
106
|
sanitizeHref
|
|
107
|
-
} from "./chunk-
|
|
107
|
+
} from "./chunk-DTKVCSRC.js";
|
|
108
108
|
|
|
109
109
|
// src/pdf/image-blank.ts
|
|
110
110
|
import { createHash } from "crypto";
|
|
@@ -4731,7 +4731,7 @@ function mergeLinkRuns(markdown) {
|
|
|
4731
4731
|
|
|
4732
4732
|
// src/pdf/formula-ocr.ts
|
|
4733
4733
|
async function applyFormulaOcr(buffer, blocks, pageFilter, effectivePageCount, warnings, _onProgress) {
|
|
4734
|
-
const formulaMod = await import("./formula-
|
|
4734
|
+
const formulaMod = await import("./formula-3RUSZL2X.js");
|
|
4735
4735
|
const { FormulaPipeline, ensureFormulaModels } = formulaMod;
|
|
4736
4736
|
await ensureFormulaModels((p) => {
|
|
4737
4737
|
if (p.phase === "download" && p.total) {
|
|
@@ -5180,10 +5180,10 @@ async function parsePdfDocument(buffer, options) {
|
|
|
5180
5180
|
}
|
|
5181
5181
|
if (targets.size > 0) {
|
|
5182
5182
|
try {
|
|
5183
|
-
const { runPdfOcr } = await import("./pdf-ocr-
|
|
5183
|
+
const { runPdfOcr } = await import("./pdf-ocr-7IH7FGKQ.js");
|
|
5184
5184
|
const mode = typeof options?.ocr === "function" ? options.ocr : "builtin";
|
|
5185
5185
|
const regionPages = new Map([...ocrRegions].filter(([p]) => options?.ocr !== "force" && !isImageBased && !pageQuality.find((q) => q.page === p)?.needsOcr));
|
|
5186
|
-
const { builtinOcrConfig } = await import("./pdf-ocr-
|
|
5186
|
+
const { builtinOcrConfig } = await import("./pdf-ocr-7IH7FGKQ.js");
|
|
5187
5187
|
const ocrPageBlocks = await runPdfOcr(ocrBuffer, targets, mode, warnings, options?.onProgress, options?.tables !== false, vectorPageOps, regionPages, builtinOcrConfig(options), ocrLinesOut);
|
|
5188
5188
|
for (const obs of ocrPageBlocks.values()) stripScriptTags({ blocks: obs });
|
|
5189
5189
|
if (ocrPageBlocks.size > 0) {
|
|
@@ -5433,4 +5433,4 @@ export {
|
|
|
5433
5433
|
parsePdfDocument,
|
|
5434
5434
|
removeHeaderFooterBlocks
|
|
5435
5435
|
};
|
|
5436
|
-
//# sourceMappingURL=parser-
|
|
5436
|
+
//# sourceMappingURL=parser-ANWES7Z3.js.map
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
blocksToPages,
|
|
4
4
|
isBlankRgba,
|
|
5
5
|
loadQrReader
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-WTKISVEW.js";
|
|
7
7
|
import {
|
|
8
8
|
hasRequestedPagesAfter,
|
|
9
9
|
parsePageRange
|
|
@@ -71,11 +71,11 @@ import {
|
|
|
71
71
|
stripAbsorbedRunningLines,
|
|
72
72
|
trimTrailingEmptyTableCols,
|
|
73
73
|
wrapJoiner
|
|
74
|
-
} from "./chunk-
|
|
74
|
+
} from "./chunk-MQ44UJN6.js";
|
|
75
75
|
import {
|
|
76
76
|
validateOcrOptions
|
|
77
77
|
} from "./chunk-TBGGAR7W.js";
|
|
78
|
-
import "./chunk-
|
|
78
|
+
import "./chunk-J6RLB6KE.js";
|
|
79
79
|
import {
|
|
80
80
|
CELL_BASELINES,
|
|
81
81
|
CELL_EDGES,
|
|
@@ -92,11 +92,11 @@ import {
|
|
|
92
92
|
stripScriptTags,
|
|
93
93
|
toTex,
|
|
94
94
|
unframeLayoutTables
|
|
95
|
-
} from "./chunk-
|
|
95
|
+
} from "./chunk-XIUXBJHE.js";
|
|
96
96
|
import {
|
|
97
97
|
KordocError,
|
|
98
98
|
sanitizeHref
|
|
99
|
-
} from "./chunk-
|
|
99
|
+
} from "./chunk-JT54JHR3.js";
|
|
100
100
|
|
|
101
101
|
// src/pdf/image-blank.ts
|
|
102
102
|
import { createHash } from "crypto";
|
|
@@ -4723,7 +4723,7 @@ function mergeLinkRuns(markdown) {
|
|
|
4723
4723
|
|
|
4724
4724
|
// src/pdf/formula-ocr.ts
|
|
4725
4725
|
async function applyFormulaOcr(buffer, blocks, pageFilter, effectivePageCount, warnings, _onProgress) {
|
|
4726
|
-
const formulaMod = await import("./formula-
|
|
4726
|
+
const formulaMod = await import("./formula-UJKRUT4H.js");
|
|
4727
4727
|
const { FormulaPipeline, ensureFormulaModels } = formulaMod;
|
|
4728
4728
|
await ensureFormulaModels((p) => {
|
|
4729
4729
|
if (p.phase === "download" && p.total) {
|
|
@@ -5172,10 +5172,10 @@ async function parsePdfDocument(buffer, options) {
|
|
|
5172
5172
|
}
|
|
5173
5173
|
if (targets.size > 0) {
|
|
5174
5174
|
try {
|
|
5175
|
-
const { runPdfOcr } = await import("./pdf-ocr-
|
|
5175
|
+
const { runPdfOcr } = await import("./pdf-ocr-ZUGHKM32.js");
|
|
5176
5176
|
const mode = typeof options?.ocr === "function" ? options.ocr : "builtin";
|
|
5177
5177
|
const regionPages = new Map([...ocrRegions].filter(([p]) => options?.ocr !== "force" && !isImageBased && !pageQuality.find((q) => q.page === p)?.needsOcr));
|
|
5178
|
-
const { builtinOcrConfig } = await import("./pdf-ocr-
|
|
5178
|
+
const { builtinOcrConfig } = await import("./pdf-ocr-ZUGHKM32.js");
|
|
5179
5179
|
const ocrPageBlocks = await runPdfOcr(ocrBuffer, targets, mode, warnings, options?.onProgress, options?.tables !== false, vectorPageOps, regionPages, builtinOcrConfig(options), ocrLinesOut);
|
|
5180
5180
|
for (const obs of ocrPageBlocks.values()) stripScriptTags({ blocks: obs });
|
|
5181
5181
|
if (ocrPageBlocks.size > 0) {
|
|
@@ -5425,4 +5425,4 @@ export {
|
|
|
5425
5425
|
parsePdfDocument,
|
|
5426
5426
|
removeHeaderFooterBlocks
|
|
5427
5427
|
};
|
|
5428
|
-
//# sourceMappingURL=parser-
|
|
5428
|
+
//# sourceMappingURL=parser-ATU5CQZY.js.map
|