kordoc 4.25.2 → 4.25.3
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/NOTICE +14 -8
- package/README.md +2 -2
- package/dist/{chunk-QJWSNET3.js → chunk-44JOWCSX.js} +8 -8
- package/dist/{chunk-CEYITKNO.js → chunk-7LVAULK7.js} +2 -2
- package/dist/{chunk-AHJOET62.js → chunk-ATOUJ2QT.js} +5 -5
- package/dist/{chunk-6VSEMZ2J.js → chunk-BAYK74RD.js} +10 -10
- package/dist/{chunk-EWUBFEPZ.js → chunk-BP54NHUP.js} +2 -2
- package/dist/{chunk-EWUBFEPZ.js.map → chunk-BP54NHUP.js.map} +2 -2
- package/dist/{chunk-ZMLZVD3J.js → chunk-CKRFG6QS.js} +2 -2
- package/dist/{chunk-BDBVGJW3.js → chunk-EL3TM6NH.js} +2 -2
- package/dist/{chunk-PE2Z234F.js → chunk-FZNY4DWZ.js} +2 -2
- package/dist/{chunk-NXDACGEH.js → chunk-G6HRSHV2.js} +39 -4
- package/dist/{chunk-NXDACGEH.js.map → chunk-G6HRSHV2.js.map} +2 -2
- package/dist/{chunk-NRHDHCJN.js → chunk-GRKTIXRO.js} +2 -2
- package/dist/{chunk-N4WIRSNW.js → chunk-H5JMMJSH.js} +2 -2
- package/dist/{chunk-ZHVSRDVF.js → chunk-H76I34IS.js} +6 -6
- package/dist/{chunk-A36NOLXN.js → chunk-HUN4CRUL.js} +6 -6
- package/dist/{chunk-GUOXYUMU.js → chunk-HWUAMWA2.js} +2 -2
- package/dist/{chunk-4X5R5EKL.js → chunk-JYZGHREO.js} +6 -6
- package/dist/{chunk-UMWSG2SJ.js → chunk-MJDPJ5XQ.js} +3 -3
- package/dist/{chunk-RWWLUT3Z.js → chunk-MLGR4AJ6.js} +25 -6
- package/dist/chunk-MLGR4AJ6.js.map +7 -0
- package/dist/{chunk-OQKYJVLL.js → chunk-NCZRKC5G.js} +4 -4
- package/dist/{chunk-RR7F4MV7.js → chunk-NOKFHQ6K.js} +2 -2
- package/dist/{chunk-GEWICG46.js → chunk-PEN2SUJQ.js} +2 -2
- package/dist/{chunk-OE76DPYB.js → chunk-Q4YOIJQF.js} +3 -3
- package/dist/{chunk-KK3ADW4V.js → chunk-Q525ZJZK.js} +28 -10
- package/dist/{chunk-KK3ADW4V.js.map → chunk-Q525ZJZK.js.map} +3 -3
- package/dist/{chunk-RCFCHOMY.js → chunk-S2DA7IZJ.js} +2 -2
- package/dist/{chunk-HS4V42R5.js → chunk-WYH2DSPZ.js} +2 -2
- package/dist/{chunk-BVJX756H.js → chunk-YJ6ZL7O2.js} +16 -16
- package/dist/{chunk-IK3FDYOE.js → chunk-ZD2KWXR2.js} +2 -2
- package/dist/chunks-EBMYAFDM.js +10 -0
- package/dist/cli.js +35 -35
- package/dist/{formula-6DMQSBFW.js → formula-3QN7DVFM.js} +4 -4
- package/dist/{generator-ORDTMIQM.js → generator-O5RTSTX6.js} +7 -7
- package/dist/{hancom-KN5SQMKT.js → hancom-ZJR546EJ.js} +2 -2
- package/dist/{image-ocr-LVJFXGL4.js → image-ocr-LA3LCRXK.js} +11 -11
- package/dist/index.cjs +87 -15
- package/dist/index.cjs.map +3 -3
- package/dist/index.d.cts +6 -5
- package/dist/index.d.ts +6 -5
- package/dist/index.js +19 -19
- package/dist/mcp.js +33 -33
- package/dist/mcp.js.map +2 -2
- package/dist/memo-ZKU7B66X.js +15 -0
- package/dist/{model-bundle-VWCZDFFG.js → model-bundle-HEEEA6YP.js} +5 -5
- package/dist/{models-R67ZWDF4.js → models-BS5CBYRY.js} +9 -5
- package/dist/{parse-worker-v2-6WBBR7Z2.js → parse-worker-v2-J4OWXPNE.js} +21 -21
- package/dist/{parser-TCYP5RBA.js → parser-OGWIHRB7.js} +14 -13
- package/dist/{parser-TCYP5RBA.js.map → parser-OGWIHRB7.js.map} +2 -2
- package/dist/{pdf-ocr-DVCI7AAR.js → pdf-ocr-DLE7J6MD.js} +9 -9
- package/dist/{profile-io-4XUVQIFE.js → profile-io-3RT4KWON.js} +3 -3
- package/dist/{rasterize-WUSJNYMZ.js → rasterize-UBAGOEIC.js} +3 -3
- package/dist/{redact-doc-HCXNHJUZ.js → redact-doc-7CKGFON7.js} +20 -20
- package/dist/{render-NGSGUNWX.js → render-HOLN6Y7J.js} +10 -10
- package/dist/{rewrite-fallback-S7F2TP4G.js → rewrite-fallback-O6TBXS3M.js} +12 -12
- package/dist/seal-EYDUKV3T.js +14 -0
- package/dist/{setup-ECJK3FIE.js → setup-HVPORSZU.js} +3 -3
- package/dist/{to-hwpx-PSJYFTDW.js → to-hwpx-VPK7TIL6.js} +7 -7
- package/dist/visual-IWW6J4I4.js +38 -0
- package/dist/{watch-CTPPLNO4.js → watch-LSDUKNBM.js} +21 -21
- package/package.json +1 -1
- package/dist/chunk-RWWLUT3Z.js.map +0 -7
- package/dist/chunks-JNZ2WBME.js +0 -10
- package/dist/memo-UJ4UYP5C.js +0 -15
- package/dist/seal-BB7STCXD.js +0 -14
- package/dist/visual-QQC436MI.js +0 -38
- /package/dist/{chunk-QJWSNET3.js.map → chunk-44JOWCSX.js.map} +0 -0
- /package/dist/{chunk-CEYITKNO.js.map → chunk-7LVAULK7.js.map} +0 -0
- /package/dist/{chunk-AHJOET62.js.map → chunk-ATOUJ2QT.js.map} +0 -0
- /package/dist/{chunk-6VSEMZ2J.js.map → chunk-BAYK74RD.js.map} +0 -0
- /package/dist/{chunk-ZMLZVD3J.js.map → chunk-CKRFG6QS.js.map} +0 -0
- /package/dist/{chunk-BDBVGJW3.js.map → chunk-EL3TM6NH.js.map} +0 -0
- /package/dist/{chunk-PE2Z234F.js.map → chunk-FZNY4DWZ.js.map} +0 -0
- /package/dist/{chunk-NRHDHCJN.js.map → chunk-GRKTIXRO.js.map} +0 -0
- /package/dist/{chunk-N4WIRSNW.js.map → chunk-H5JMMJSH.js.map} +0 -0
- /package/dist/{chunk-ZHVSRDVF.js.map → chunk-H76I34IS.js.map} +0 -0
- /package/dist/{chunk-A36NOLXN.js.map → chunk-HUN4CRUL.js.map} +0 -0
- /package/dist/{chunk-GUOXYUMU.js.map → chunk-HWUAMWA2.js.map} +0 -0
- /package/dist/{chunk-4X5R5EKL.js.map → chunk-JYZGHREO.js.map} +0 -0
- /package/dist/{chunk-UMWSG2SJ.js.map → chunk-MJDPJ5XQ.js.map} +0 -0
- /package/dist/{chunk-OQKYJVLL.js.map → chunk-NCZRKC5G.js.map} +0 -0
- /package/dist/{chunk-RR7F4MV7.js.map → chunk-NOKFHQ6K.js.map} +0 -0
- /package/dist/{chunk-GEWICG46.js.map → chunk-PEN2SUJQ.js.map} +0 -0
- /package/dist/{chunk-OE76DPYB.js.map → chunk-Q4YOIJQF.js.map} +0 -0
- /package/dist/{chunk-RCFCHOMY.js.map → chunk-S2DA7IZJ.js.map} +0 -0
- /package/dist/{chunk-HS4V42R5.js.map → chunk-WYH2DSPZ.js.map} +0 -0
- /package/dist/{chunk-BVJX756H.js.map → chunk-YJ6ZL7O2.js.map} +0 -0
- /package/dist/{chunk-IK3FDYOE.js.map → chunk-ZD2KWXR2.js.map} +0 -0
- /package/dist/{chunks-JNZ2WBME.js.map → chunks-EBMYAFDM.js.map} +0 -0
- /package/dist/{formula-6DMQSBFW.js.map → formula-3QN7DVFM.js.map} +0 -0
- /package/dist/{generator-ORDTMIQM.js.map → generator-O5RTSTX6.js.map} +0 -0
- /package/dist/{hancom-KN5SQMKT.js.map → hancom-ZJR546EJ.js.map} +0 -0
- /package/dist/{image-ocr-LVJFXGL4.js.map → image-ocr-LA3LCRXK.js.map} +0 -0
- /package/dist/{memo-UJ4UYP5C.js.map → memo-ZKU7B66X.js.map} +0 -0
- /package/dist/{model-bundle-VWCZDFFG.js.map → model-bundle-HEEEA6YP.js.map} +0 -0
- /package/dist/{models-R67ZWDF4.js.map → models-BS5CBYRY.js.map} +0 -0
- /package/dist/{parse-worker-v2-6WBBR7Z2.js.map → parse-worker-v2-J4OWXPNE.js.map} +0 -0
- /package/dist/{pdf-ocr-DVCI7AAR.js.map → pdf-ocr-DLE7J6MD.js.map} +0 -0
- /package/dist/{profile-io-4XUVQIFE.js.map → profile-io-3RT4KWON.js.map} +0 -0
- /package/dist/{rasterize-WUSJNYMZ.js.map → rasterize-UBAGOEIC.js.map} +0 -0
- /package/dist/{redact-doc-HCXNHJUZ.js.map → redact-doc-7CKGFON7.js.map} +0 -0
- /package/dist/{render-NGSGUNWX.js.map → render-HOLN6Y7J.js.map} +0 -0
- /package/dist/{rewrite-fallback-S7F2TP4G.js.map → rewrite-fallback-O6TBXS3M.js.map} +0 -0
- /package/dist/{seal-BB7STCXD.js.map → seal-EYDUKV3T.js.map} +0 -0
- /package/dist/{setup-ECJK3FIE.js.map → setup-HVPORSZU.js.map} +0 -0
- /package/dist/{to-hwpx-PSJYFTDW.js.map → to-hwpx-VPK7TIL6.js.map} +0 -0
- /package/dist/{visual-QQC436MI.js.map → visual-IWW6J4I4.js.map} +0 -0
- /package/dist/{watch-CTPPLNO4.js.map → watch-LSDUKNBM.js.map} +0 -0
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./chunk-63UKHBUV.js";
|
|
4
4
|
import {
|
|
5
5
|
KordocError
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-7LVAULK7.js";
|
|
7
7
|
|
|
8
8
|
// src/hwp5/record.ts
|
|
9
9
|
import { inflateRawSync, inflateSync } from "zlib";
|
|
@@ -403,4 +403,4 @@ export {
|
|
|
403
403
|
appendParaText,
|
|
404
404
|
extractEquationText
|
|
405
405
|
};
|
|
406
|
-
//# sourceMappingURL=chunk-
|
|
406
|
+
//# sourceMappingURL=chunk-S2DA7IZJ.js.map
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
} from "./chunk-5TRTCMDI.js";
|
|
13
13
|
import {
|
|
14
14
|
blocksToMarkdown
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-CKRFG6QS.js";
|
|
16
16
|
import {
|
|
17
17
|
mapPuaText,
|
|
18
18
|
pairedNumber
|
|
@@ -2199,4 +2199,4 @@ export {
|
|
|
2199
2199
|
restoreNamedGlyphs,
|
|
2200
2200
|
restoreUnmappedCidSpaces
|
|
2201
2201
|
};
|
|
2202
|
-
//# sourceMappingURL=chunk-
|
|
2202
|
+
//# sourceMappingURL=chunk-WYH2DSPZ.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
extractRenderedRegions,
|
|
3
3
|
renderDocumentToScene
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-44JOWCSX.js";
|
|
5
5
|
import {
|
|
6
6
|
EV,
|
|
7
7
|
blocksToPages,
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
restoreUnmappedGlyphs,
|
|
18
18
|
spaceMappedDots,
|
|
19
19
|
wmfBitmap
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-WYH2DSPZ.js";
|
|
21
21
|
import {
|
|
22
22
|
applyCellEdit,
|
|
23
23
|
buildOrigUnits,
|
|
@@ -30,13 +30,13 @@ import {
|
|
|
30
30
|
resolveParagraphMappings,
|
|
31
31
|
resolveSectionEntryNames,
|
|
32
32
|
stripCellTokens
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-BAYK74RD.js";
|
|
34
34
|
import {
|
|
35
35
|
dcxPages,
|
|
36
36
|
hasLibheif,
|
|
37
37
|
heicToRgba,
|
|
38
38
|
pcxToRgba
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-PEN2SUJQ.js";
|
|
40
40
|
import {
|
|
41
41
|
WEBP_OPTIONS,
|
|
42
42
|
flushHeifCache,
|
|
@@ -69,10 +69,10 @@ import {
|
|
|
69
69
|
summarize,
|
|
70
70
|
topLevelParagraphs,
|
|
71
71
|
usesV5Engine
|
|
72
|
-
} from "./chunk-
|
|
72
|
+
} from "./chunk-HUN4CRUL.js";
|
|
73
73
|
import {
|
|
74
74
|
patchZipEntries
|
|
75
|
-
} from "./chunk-
|
|
75
|
+
} from "./chunk-FZNY4DWZ.js";
|
|
76
76
|
import {
|
|
77
77
|
ANNOTATION_BLANK_RE,
|
|
78
78
|
ValueCursor,
|
|
@@ -111,7 +111,7 @@ import {
|
|
|
111
111
|
rawTextContent,
|
|
112
112
|
readZipEntry,
|
|
113
113
|
warnInto
|
|
114
|
-
} from "./chunk-
|
|
114
|
+
} from "./chunk-H5JMMJSH.js";
|
|
115
115
|
import {
|
|
116
116
|
comResultToParseResult,
|
|
117
117
|
extractTextViaCom,
|
|
@@ -128,7 +128,7 @@ import {
|
|
|
128
128
|
memosMarkdown,
|
|
129
129
|
parseHwp5Document,
|
|
130
130
|
resolveImageBlocks
|
|
131
|
-
} from "./chunk-
|
|
131
|
+
} from "./chunk-ATOUJ2QT.js";
|
|
132
132
|
import {
|
|
133
133
|
MAX_PIXELS,
|
|
134
134
|
bmpToPng,
|
|
@@ -166,7 +166,7 @@ import {
|
|
|
166
166
|
stripScriptTags,
|
|
167
167
|
tidyScriptTags,
|
|
168
168
|
wrapScript
|
|
169
|
-
} from "./chunk-
|
|
169
|
+
} from "./chunk-BP54NHUP.js";
|
|
170
170
|
import {
|
|
171
171
|
MAX_COLS,
|
|
172
172
|
MAX_ROWS,
|
|
@@ -177,7 +177,7 @@ import {
|
|
|
177
177
|
flattenLayoutTables,
|
|
178
178
|
hasStructuredCellContent,
|
|
179
179
|
sanitizeText
|
|
180
|
-
} from "./chunk-
|
|
180
|
+
} from "./chunk-CKRFG6QS.js";
|
|
181
181
|
import {
|
|
182
182
|
hangulAmount,
|
|
183
183
|
mapPuaText
|
|
@@ -199,7 +199,7 @@ import {
|
|
|
199
199
|
toArrayBuffer,
|
|
200
200
|
unescapeHtml,
|
|
201
201
|
unzipLimitBytes
|
|
202
|
-
} from "./chunk-
|
|
202
|
+
} from "./chunk-7LVAULK7.js";
|
|
203
203
|
|
|
204
204
|
// src/table/visual.ts
|
|
205
205
|
import { readFile as readFile3 } from "node:fs/promises";
|
|
@@ -16977,7 +16977,7 @@ var MIN_SIDE = 24;
|
|
|
16977
16977
|
async function ocrEmbeddedImages(blocks, options, warnings) {
|
|
16978
16978
|
const ocr = options?.ocr;
|
|
16979
16979
|
if (ocr !== true && ocr !== "force" && typeof ocr !== "function") return false;
|
|
16980
|
-
const { parseImageDocument } = await import("./image-ocr-
|
|
16980
|
+
const { parseImageDocument } = await import("./image-ocr-LA3LCRXK.js");
|
|
16981
16981
|
let inserted = false, unreadable = 0;
|
|
16982
16982
|
let failed = null;
|
|
16983
16983
|
const walk = async (list, depth) => {
|
|
@@ -21053,7 +21053,7 @@ var MAX_MULTIPAGE_PIXELS = 1e9;
|
|
|
21053
21053
|
var MIN_PAGE_PIXELS = 1e6;
|
|
21054
21054
|
async function parseImage(buffer, options) {
|
|
21055
21055
|
try {
|
|
21056
|
-
const { parseImageDocument, imagePageCount, imagePage, imagePagePixels } = await import("./image-ocr-
|
|
21056
|
+
const { parseImageDocument, imagePageCount, imagePage, imagePagePixels } = await import("./image-ocr-LA3LCRXK.js");
|
|
21057
21057
|
const pageCount = await imagePageCount(buffer);
|
|
21058
21058
|
const wanted = pageCount > 1 && options?.pages ? parsePageRange(options.pages, pageCount) : null;
|
|
21059
21059
|
const blocks = [], warnings = [], lines = [], images = [];
|
|
@@ -21150,7 +21150,7 @@ async function parseHwp(buffer, options) {
|
|
|
21150
21150
|
async function parsePdf(buffer, options) {
|
|
21151
21151
|
let parsePdfDocument;
|
|
21152
21152
|
try {
|
|
21153
|
-
const mod = await import("./parser-
|
|
21153
|
+
const mod = await import("./parser-OGWIHRB7.js");
|
|
21154
21154
|
parsePdfDocument = mod.parsePdfDocument;
|
|
21155
21155
|
} catch (err) {
|
|
21156
21156
|
return { success: false, fileType: "pdf", error: sanitizeError(err), code: classifyError(err) };
|
|
@@ -21227,7 +21227,7 @@ async function fillForm(input, values, outputFormat = "markdown") {
|
|
|
21227
21227
|
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})`);
|
|
21228
21228
|
}
|
|
21229
21229
|
} else if (format2 === "hwp" && detectOle2Format(buffer) === "hwp") {
|
|
21230
|
-
const { hwpToHwpx: hwpToHwpx2 } = await import("./to-hwpx-
|
|
21230
|
+
const { hwpToHwpx: hwpToHwpx2 } = await import("./to-hwpx-VPK7TIL6.js");
|
|
21231
21231
|
const hwpx = await hwpToHwpx2(new Uint8Array(buffer));
|
|
21232
21232
|
buffer = hwpx.buffer.slice(hwpx.byteOffset, hwpx.byteOffset + hwpx.byteLength);
|
|
21233
21233
|
} else {
|
|
@@ -21380,4 +21380,4 @@ export {
|
|
|
21380
21380
|
parseHwpml,
|
|
21381
21381
|
fillForm
|
|
21382
21382
|
};
|
|
21383
|
-
//# sourceMappingURL=chunk-
|
|
21383
|
+
//# sourceMappingURL=chunk-YJ6ZL7O2.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
assignTableIds,
|
|
3
3
|
blocksToMarkdown
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-CKRFG6QS.js";
|
|
5
5
|
|
|
6
6
|
// src/chunks.ts
|
|
7
7
|
var LIST_MARKER_RE = /^(?:[□■◇◆○◎●◦ㅇ•▪▸▶※-]|\d{1,3}[.)]|[가나다라마바사아자차카타파하][.)]|\([가나다라마바사아자차카타파하0-9]{1,3}\)|[①-⑳㉮-㉻㈎-㈛])\s/;
|
|
@@ -81,4 +81,4 @@ function blocksToChunks(blocks, options) {
|
|
|
81
81
|
export {
|
|
82
82
|
blocksToChunks
|
|
83
83
|
};
|
|
84
|
-
//# sourceMappingURL=chunk-
|
|
84
|
+
//# sourceMappingURL=chunk-ZD2KWXR2.js.map
|
package/dist/cli.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
parseWorkerFile
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-MJDPJ5XQ.js";
|
|
5
5
|
import {
|
|
6
6
|
parseFormatProfileJson
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-HWUAMWA2.js";
|
|
8
8
|
import {
|
|
9
9
|
BODY_FONTS,
|
|
10
10
|
BULLET2_CHARS,
|
|
@@ -50,14 +50,14 @@ import {
|
|
|
50
50
|
unknownFontWarnings,
|
|
51
51
|
usesGaejosikMunche,
|
|
52
52
|
usesLogicStructure
|
|
53
|
-
} from "./chunk-
|
|
54
|
-
import "./chunk-
|
|
55
|
-
import "./chunk-
|
|
56
|
-
import "./chunk-
|
|
53
|
+
} from "./chunk-YJ6ZL7O2.js";
|
|
54
|
+
import "./chunk-44JOWCSX.js";
|
|
55
|
+
import "./chunk-GRKTIXRO.js";
|
|
56
|
+
import "./chunk-WYH2DSPZ.js";
|
|
57
57
|
import {
|
|
58
58
|
extractClickHereFields
|
|
59
|
-
} from "./chunk-
|
|
60
|
-
import "./chunk-
|
|
59
|
+
} from "./chunk-BAYK74RD.js";
|
|
60
|
+
import "./chunk-PEN2SUJQ.js";
|
|
61
61
|
import "./chunk-3UIIEZBT.js";
|
|
62
62
|
import {
|
|
63
63
|
PRESET_ALIAS,
|
|
@@ -66,11 +66,11 @@ import {
|
|
|
66
66
|
markdownToHwpx,
|
|
67
67
|
parseLeadingMarker,
|
|
68
68
|
resolveSectionPaths
|
|
69
|
-
} from "./chunk-
|
|
70
|
-
import "./chunk-
|
|
71
|
-
import "./chunk-
|
|
72
|
-
import "./chunk-
|
|
73
|
-
import "./chunk-
|
|
69
|
+
} from "./chunk-HUN4CRUL.js";
|
|
70
|
+
import "./chunk-Q4YOIJQF.js";
|
|
71
|
+
import "./chunk-H76I34IS.js";
|
|
72
|
+
import "./chunk-NCZRKC5G.js";
|
|
73
|
+
import "./chunk-FZNY4DWZ.js";
|
|
74
74
|
import {
|
|
75
75
|
extractFormFields,
|
|
76
76
|
fillPlan,
|
|
@@ -79,20 +79,20 @@ import {
|
|
|
79
79
|
import {
|
|
80
80
|
createXmlParser,
|
|
81
81
|
readZipEntry
|
|
82
|
-
} from "./chunk-
|
|
82
|
+
} from "./chunk-H5JMMJSH.js";
|
|
83
83
|
import "./chunk-HVXDD6QZ.js";
|
|
84
84
|
import {
|
|
85
85
|
hwpToHwpx
|
|
86
|
-
} from "./chunk-
|
|
86
|
+
} from "./chunk-JYZGHREO.js";
|
|
87
87
|
import {
|
|
88
88
|
detectImageMime
|
|
89
|
-
} from "./chunk-
|
|
89
|
+
} from "./chunk-ATOUJ2QT.js";
|
|
90
90
|
import "./chunk-T3CW5OXA.js";
|
|
91
91
|
import "./chunk-CG6DUPWU.js";
|
|
92
|
-
import "./chunk-
|
|
92
|
+
import "./chunk-S2DA7IZJ.js";
|
|
93
93
|
import "./chunk-63UKHBUV.js";
|
|
94
94
|
import "./chunk-MQCNWXMU.js";
|
|
95
|
-
import "./chunk-
|
|
95
|
+
import "./chunk-ZD2KWXR2.js";
|
|
96
96
|
import "./chunk-W5CMIZUB.js";
|
|
97
97
|
import {
|
|
98
98
|
detectFormat,
|
|
@@ -101,10 +101,10 @@ import {
|
|
|
101
101
|
import "./chunk-O5YMQ22P.js";
|
|
102
102
|
import "./chunk-5TRTCMDI.js";
|
|
103
103
|
import "./chunk-G5XEBGZD.js";
|
|
104
|
-
import "./chunk-
|
|
104
|
+
import "./chunk-BP54NHUP.js";
|
|
105
105
|
import {
|
|
106
106
|
blocksToMarkdown
|
|
107
|
-
} from "./chunk-
|
|
107
|
+
} from "./chunk-CKRFG6QS.js";
|
|
108
108
|
import "./chunk-RJCXOE4N.js";
|
|
109
109
|
import {
|
|
110
110
|
KordocError,
|
|
@@ -115,7 +115,7 @@ import {
|
|
|
115
115
|
sanitizeError,
|
|
116
116
|
stripDtd,
|
|
117
117
|
toArrayBuffer
|
|
118
|
-
} from "./chunk-
|
|
118
|
+
} from "./chunk-7LVAULK7.js";
|
|
119
119
|
|
|
120
120
|
// src/cli.ts
|
|
121
121
|
import { Command, Option } from "commander";
|
|
@@ -264,7 +264,7 @@ async function convertFiles(files, opts, writeOutput = (text) => {
|
|
|
264
264
|
`);
|
|
265
265
|
}
|
|
266
266
|
} else if (opts.format === "chunks") {
|
|
267
|
-
const { blocksToChunks } = await import("./chunks-
|
|
267
|
+
const { blocksToChunks } = await import("./chunks-EBMYAFDM.js");
|
|
268
268
|
const chunks = blocksToChunks(result.blocks, { tableFormat: parseOptions.tableFormat }).map((c) => {
|
|
269
269
|
let text = c.text;
|
|
270
270
|
if (opts.plain) text = toPlainMarkdown(text);
|
|
@@ -448,7 +448,7 @@ function registerDocCommands(program2) {
|
|
|
448
448
|
if (command.getOptionValueSource("format") === "default" && program2.getOptionValueSource("format") === "cli") {
|
|
449
449
|
opts.format = rootOpts.format;
|
|
450
450
|
}
|
|
451
|
-
const { watchDirectory } = await import("./watch-
|
|
451
|
+
const { watchDirectory } = await import("./watch-LSDUKNBM.js");
|
|
452
452
|
await watchDirectory({
|
|
453
453
|
dir,
|
|
454
454
|
outDir: opts.outDir,
|
|
@@ -839,7 +839,7 @@ function registerDocCommands(program2) {
|
|
|
839
839
|
const result = format === "hwp" ? await patchHwp(originalBuf, editedMarkdown, { verify: opts.verify !== false, keepLineseg: opts.keepLineseg === true }) : await patchHwpx(originalBuf, editedMarkdown, { verify: opts.verify !== false, structure: opts.structure !== false });
|
|
840
840
|
const ext = format === "hwp" ? ".hwp" : ".hwpx";
|
|
841
841
|
const outPath = resolve3(output ?? original.replace(/\.hwpx?$/i, "") + ".patched" + ext);
|
|
842
|
-
const { needsRewrite, rewriteEdited, rewritePath } = await import("./rewrite-fallback-
|
|
842
|
+
const { needsRewrite, rewriteEdited, rewritePath } = await import("./rewrite-fallback-O6TBXS3M.js");
|
|
843
843
|
const rewrite = needsRewrite(result) ? await rewriteEdited(originalBuf, format !== "hwp", editedMarkdown, result.success) : null;
|
|
844
844
|
const rewriteOut = rewrite ? rewritePath(outPath) : void 0;
|
|
845
845
|
if (rewrite && rewriteOut) {
|
|
@@ -1723,7 +1723,7 @@ function registerGenerateCommands(program2) {
|
|
|
1723
1723
|
});
|
|
1724
1724
|
program2.command("redact <files...>").description("\uAC1C\uC778\uC815\uBCF4 \uC11C\uC2DD \uBCF4\uC874 \uB9C8\uC2A4\uD0B9 \u2014 \uC8FC\uBBFC\xB7\uC678\uAD6D\uC778\uB4F1\uB85D\uBC88\uD638\xB7\uC804\uD654\xB7\uC774\uBA54\uC77C\xB7\uCE74\uB4DC\xB7\uACC4\uC88C\xB7\uC0AC\uC5C5\uC790\uB4F1\uB85D\uBC88\uD638\xB7\uC5EC\uAD8C\xB7\uC6B4\uC804\uBA74\uD5C8(--rules \uB85C \uC778\uBA85\xB7\uC8FC\uC18C opt-in)\uB97C \uD0D0\uC9C0\uD574 HWPX/HWP\uB294 \uC6D0\uBCF8 \uC11C\uC2DD \uADF8\uB300\uB85C \uAC19\uC740 \uAE38\uC774\uB85C \uAC00\uB9B0 \uD30C\uC77C(\uBCF8\uBB38\xB7\uD45C\xB7\uBA38\uB9AC\uB9D0/\uAF2C\uB9AC\uB9D0\xB7\uAC01\uC8FC\xB7\uAE00\uC0C1\uC790\xB7\uBBF8\uB9AC\uBCF4\uAE30\xB7\uBA54\uD0C0\uB370\uC774\uD130 \uD3EC\uD568), \uADF8 \uC678 \uD3EC\uB9F7(PDF \uB4F1)\uC740 \uC6D0\uBCF8\uC744 \uAC74\uB4DC\uB9AC\uC9C0 \uC54A\uACE0 \uB9C8\uC2A4\uD0B9\uB41C \uB9C8\uD06C\uB2E4\uC6B4\uB9CC \uCD9C\uB825. \uC790\uB3D9 \uAC80\uCD9C \uBCF4\uC870 \uB3C4\uAD6C\uC774\uBBC0\uB85C \uACB0\uACFC\uB294 \uBC18\uB4DC\uC2DC \uC0AC\uB78C\uC774 \uCD5C\uC885 \uD655\uC778\uD558\uC138\uC694 (\uC774\uBBF8\uC9C0 \uC18D \uAE00\uC790\uB294 \uD0D0\uC9C0 \uBD88\uAC00)").option("--rules <csv>", "\uC801\uC6A9 \uB8F0 (\uAE30\uBCF8: rrn,phone,email,card,account,brn,passport,driver \u2014 crn(\uBC95\uC778\uB4F1\uB85D\uBC88\uD638),ip,name(\uC778\uBA85),address(\uC8FC\uC18C)\uB294 opt-in)").option("--mask-char <ch>", "\uB9C8\uC2A4\uD06C \uBB38\uC790 1\uAE00\uC790 (\uAE30\uBCF8: \u25CF)").option("-o, --output <path>", "\uCD9C\uB825 \uACBD\uB85C (\uB2E8\uC77C \uD30C\uC77C \uC2DC)").option("-d, --out-dir <dir>", "\uCD9C\uB825 \uB514\uB809\uD1A0\uB9AC (\uB2E4\uC911 \uD30C\uC77C \uC2DC)").option("--dry-run", "\uD0D0\uC9C0 \uB9AC\uD3EC\uD2B8\uB9CC \uCD9C\uB825, \uD30C\uC77C \uBBF8\uC0DD\uC131").option("--json", "\uB9AC\uD3EC\uD2B8\uB97C JSON\uC73C\uB85C stdout \uCD9C\uB825").option("--silent", "\uC9C4\uD589 \uBA54\uC2DC\uC9C0 \uC228\uAE30\uAE30").action(async (files, opts) => {
|
|
1725
1725
|
const { ALL_REDACT_RULES, DEFAULT_REDACT_RULES, redactText } = await import("./redact-XWZQ7XUF.js");
|
|
1726
|
-
const { redactDocument } = await import("./redact-doc-
|
|
1726
|
+
const { redactDocument } = await import("./redact-doc-7CKGFON7.js");
|
|
1727
1727
|
const rootOpts = program2.opts();
|
|
1728
1728
|
const output = opts.output ?? rootOpts.output;
|
|
1729
1729
|
const outDir = opts.outDir ?? rootOpts.outDir;
|
|
@@ -1934,7 +1934,7 @@ function registerRenderCommands(program2) {
|
|
|
1934
1934
|
const absPath = resolve7(file);
|
|
1935
1935
|
const stem = file.replace(/\.hwpx?$/i, "");
|
|
1936
1936
|
if (fmt === "svg" && !outDir && !pages && !/\.hwp$/i.test(absPath)) {
|
|
1937
|
-
const { renderHwpxToSvg } = await import("./render-
|
|
1937
|
+
const { renderHwpxToSvg } = await import("./render-HOLN6Y7J.js");
|
|
1938
1938
|
const buffer = readFileSync6(absPath);
|
|
1939
1939
|
const result = await renderHwpxToSvg(toArrayBuffer(buffer), { highlights, reflow: opts.reflow, reflowMode: opts.reflowMode, password: rootOpts.password });
|
|
1940
1940
|
const outPath = resolve7(output ?? stem + ".svg");
|
|
@@ -1948,7 +1948,7 @@ function registerRenderCommands(program2) {
|
|
|
1948
1948
|
}
|
|
1949
1949
|
return;
|
|
1950
1950
|
}
|
|
1951
|
-
const { renderDocument } = await import("./render-
|
|
1951
|
+
const { renderDocument } = await import("./render-HOLN6Y7J.js");
|
|
1952
1952
|
const { scene, assets } = await renderDocument(absPath, {
|
|
1953
1953
|
format: fmt,
|
|
1954
1954
|
pages,
|
|
@@ -1999,7 +1999,7 @@ function registerRenderCommands(program2) {
|
|
|
1999
1999
|
if (!outDir) throw new KordocError("--out-dir \uC774 \uD544\uC694\uD569\uB2C8\uB2E4 (crop \uC740 \uD30C\uC77C \uC5EC\uB7EC \uAC1C\uB97C \uB0C5\uB2C8\uB2E4)");
|
|
2000
2000
|
const types = String(opts.target).split(",").map((t) => t.trim()).filter(Boolean);
|
|
2001
2001
|
for (const t of types) if (!["table", "image", "paragraph", "shape"].includes(t)) throw new KordocError(`--target \uC720\uD615 \uC624\uB958: ${t}`);
|
|
2002
|
-
const { extractRenderedRegions } = await import("./render-
|
|
2002
|
+
const { extractRenderedRegions } = await import("./render-HOLN6Y7J.js");
|
|
2003
2003
|
const regions = await extractRenderedRegions(resolve7(file), {
|
|
2004
2004
|
types,
|
|
2005
2005
|
format: fmt,
|
|
@@ -2037,7 +2037,7 @@ function registerRenderCommands(program2) {
|
|
|
2037
2037
|
if (policy !== "none" && !outDir) throw new KordocError("--visual \uC740 crop \uD30C\uC77C\uC744 \uB0B4\uBBC0\uB85C --out-dir \uC774 \uD544\uC694\uD569\uB2C8\uB2E4");
|
|
2038
2038
|
const cropFmt = String(opts.cropFormat);
|
|
2039
2039
|
if (!["png", "jpeg"].includes(cropFmt)) throw new KordocError(`--crop-format \uC740 png|jpeg: ${cropFmt}`);
|
|
2040
|
-
const { extractTables } = await import("./visual-
|
|
2040
|
+
const { extractTables } = await import("./visual-IWW6J4I4.js");
|
|
2041
2041
|
const tables = await extractTables(resolve7(file), { policy, format: cropFmt, paddingPt: Number(opts.padding) || 0 });
|
|
2042
2042
|
const dir = outDir ? resolve7(outDir) : void 0;
|
|
2043
2043
|
if (dir) mkdirSync6(dir, { recursive: true });
|
|
@@ -2081,7 +2081,7 @@ function registerRenderCommands(program2) {
|
|
|
2081
2081
|
});
|
|
2082
2082
|
program2.command("render-worker").description("persistent \uB80C\uB354 \uC6CC\uCEE4 \u2014 stdin NDJSON \uC694\uCCAD \u2192 \uC870\uD310 SVG \uD30C\uC77C \uCD9C\uB825 (\uD504\uB85C\uC138\uC2A4 \uC720\uC9C0, \uCF5C\uB4DC\uC2A4\uD0C0\uD2B8 \uC81C\uAC70)").action(async () => {
|
|
2083
2083
|
const { createInterface } = await import("node:readline");
|
|
2084
|
-
const { renderHwpxToSvg } = await import("./render-
|
|
2084
|
+
const { renderHwpxToSvg } = await import("./render-HOLN6Y7J.js");
|
|
2085
2085
|
const rl = createInterface({ input: process.stdin });
|
|
2086
2086
|
const write = (o) => void process.stdout.write(JSON.stringify(o) + "\n");
|
|
2087
2087
|
write({ ready: true, version: VERSION });
|
|
@@ -2130,12 +2130,12 @@ function registerSystemCommands(program2) {
|
|
|
2130
2130
|
await startMcpServer();
|
|
2131
2131
|
});
|
|
2132
2132
|
program2.command("setup").description("\uB300\uD654\uD615 \uC124\uCE58 \uB9C8\uBC95\uC0AC \u2014 AI \uD074\uB77C\uC774\uC5B8\uD2B8 \uC790\uB3D9 \uB4F1\uB85D (Mac/Win/Linux)").action(async () => {
|
|
2133
|
-
const { runSetup } = await import("./setup-
|
|
2133
|
+
const { runSetup } = await import("./setup-HVPORSZU.js");
|
|
2134
2134
|
await runSetup();
|
|
2135
2135
|
});
|
|
2136
2136
|
program2.command("check-formula-models").description("PDF \uC218\uC2DD OCR \uBAA8\uB378(MFD + MFR + tokenizer, ~155MB) \uC0C1\uD0DC \uD655\uC778 \u2014 \uC5C6\uAC70\uB098 SHA \uBD88\uC77C\uCE58\uBA74 \uB2E4\uC6B4\uB85C\uB4DC").option("--status-only", "\uC0C1\uD0DC\uB9CC JSON \uC73C\uB85C \uCD9C\uB825 (\uB2E4\uC6B4\uB85C\uB4DC \uC548 \uD568)").action(async (opts) => {
|
|
2137
2137
|
try {
|
|
2138
|
-
const { getFormulaModelStatus, ensureFormulaModels, getFormulaModelsDir } = await import("./formula-
|
|
2138
|
+
const { getFormulaModelStatus, ensureFormulaModels, getFormulaModelsDir } = await import("./formula-3QN7DVFM.js");
|
|
2139
2139
|
const dir = getFormulaModelsDir();
|
|
2140
2140
|
if (opts.statusOnly) {
|
|
2141
2141
|
const status = await getFormulaModelStatus();
|
|
@@ -2189,7 +2189,7 @@ function registerSystemCommands(program2) {
|
|
|
2189
2189
|
});
|
|
2190
2190
|
program2.command("check-ocr-models").description("\uD14D\uC2A4\uD2B8 OCR \uBAA8\uB378(PP-OCRv5 korean det+rec, ~18MB) \uC0C1\uD0DC \uD655\uC778 \u2014 \uC5C6\uAC70\uB098 SHA \uBD88\uC77C\uCE58\uBA74 \uB2E4\uC6B4\uB85C\uB4DC").option("--status-only", "\uC0C1\uD0DC\uB9CC JSON \uC73C\uB85C \uCD9C\uB825 (\uB2E4\uC6B4\uB85C\uB4DC \uC548 \uD568)").action(async (opts) => {
|
|
2191
2191
|
try {
|
|
2192
|
-
const { getOcrModelStatus, ensureOcrModels, getOcrModelsDir } = await import("./models-
|
|
2192
|
+
const { getOcrModelStatus, ensureOcrModels, getOcrModelsDir } = await import("./models-BS5CBYRY.js");
|
|
2193
2193
|
const dir = getOcrModelsDir();
|
|
2194
2194
|
if (opts.statusOnly) {
|
|
2195
2195
|
const status = await getOcrModelStatus();
|
|
@@ -2243,7 +2243,7 @@ function registerSystemCommands(program2) {
|
|
|
2243
2243
|
});
|
|
2244
2244
|
program2.command("models").description("OCR/\uC218\uC2DD \uBAA8\uB378 \uC624\uD504\uB77C\uC778 \uC0AC\uC774\uB4DC\uB85C\uB4DC \u2014 \uD3D0\uC1C4\uB9DD \uBC18\uC785\uC6A9 \uB0B4\uBCF4\uB0B4\uAE30/\uAC00\uC838\uC624\uAE30 (SHA-256 \uAC80\uC99D)").option("--status", "\uCE90\uC2DC\uC5D0 \uC124\uCE58\uB41C \uBAA8\uB378 \uC0C1\uD0DC\uB97C JSON \uC73C\uB85C \uCD9C\uB825").option("--export <dir>", "\uB85C\uCEEC \uCE90\uC2DC \u2192 \uBC88\uB4E4 \uB514\uB809\uD1A0\uB9AC\uB85C \uB0B4\uBCF4\uB0B4\uAE30 (\uC628\uB77C\uC778 PC\uC5D0\uC11C \uC2E4\uD589)").option("--import <dir>", "\uBC88\uB4E4 \uB514\uB809\uD1A0\uB9AC \u2192 \uB85C\uCEEC \uCE90\uC2DC\uB85C \uC124\uCE58 (\uB0B4\uBD80\uB9DD PC\uC5D0\uC11C \uC2E4\uD589)").action(async (opts) => {
|
|
2245
2245
|
try {
|
|
2246
|
-
const { exportModels, importModels, modelCacheStatus } = await import("./model-bundle-
|
|
2246
|
+
const { exportModels, importModels, modelCacheStatus } = await import("./model-bundle-HEEEA6YP.js");
|
|
2247
2247
|
if (opts.status) {
|
|
2248
2248
|
process.stdout.write(JSON.stringify(await modelCacheStatus(), null, 2) + "\n");
|
|
2249
2249
|
return;
|
|
@@ -2309,7 +2309,7 @@ function registerWorkerCommands(program2) {
|
|
|
2309
2309
|
const maxRequestBytes = limit(opts.maxRequestBytes, "--max-request-bytes");
|
|
2310
2310
|
const maxResponseBytes = limit(opts.maxResponseBytes, "--max-response-bytes");
|
|
2311
2311
|
routeConsoleToStderr();
|
|
2312
|
-
const { runParseWorkerV2 } = await import("./parse-worker-v2-
|
|
2312
|
+
const { runParseWorkerV2 } = await import("./parse-worker-v2-J4OWXPNE.js");
|
|
2313
2313
|
await runParseWorkerV2({ maxRequestBytes, maxResponseBytes });
|
|
2314
2314
|
process.exit(0);
|
|
2315
2315
|
}
|
|
@@ -11,9 +11,9 @@ import {
|
|
|
11
11
|
ensureSingleModel,
|
|
12
12
|
getFormulaModelStatus,
|
|
13
13
|
getFormulaModelsDir
|
|
14
|
-
} from "./chunk-
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-
|
|
14
|
+
} from "./chunk-EL3TM6NH.js";
|
|
15
|
+
import "./chunk-NOKFHQ6K.js";
|
|
16
|
+
import "./chunk-7LVAULK7.js";
|
|
17
17
|
|
|
18
18
|
// src/pdf/formula/postprocess.ts
|
|
19
19
|
var TRAILING_WHITESPACE_CMDS = [
|
|
@@ -1176,4 +1176,4 @@ export {
|
|
|
1176
1176
|
getFormulaModelsDir,
|
|
1177
1177
|
postProcessLatex
|
|
1178
1178
|
};
|
|
1179
|
-
//# sourceMappingURL=formula-
|
|
1179
|
+
//# sourceMappingURL=formula-3QN7DVFM.js.map
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import {
|
|
2
2
|
markdownToHwpx
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-HUN4CRUL.js";
|
|
4
|
+
import "./chunk-Q4YOIJQF.js";
|
|
5
5
|
import "./chunk-OP4EPPXU.js";
|
|
6
|
-
import "./chunk-
|
|
6
|
+
import "./chunk-H5JMMJSH.js";
|
|
7
7
|
import "./chunk-HVXDD6QZ.js";
|
|
8
8
|
import "./chunk-CG6DUPWU.js";
|
|
9
9
|
import "./chunk-63UKHBUV.js";
|
|
10
10
|
import "./chunk-G5XEBGZD.js";
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
11
|
+
import "./chunk-BP54NHUP.js";
|
|
12
|
+
import "./chunk-CKRFG6QS.js";
|
|
13
13
|
import "./chunk-RJCXOE4N.js";
|
|
14
|
-
import "./chunk-
|
|
14
|
+
import "./chunk-7LVAULK7.js";
|
|
15
15
|
export {
|
|
16
16
|
markdownToHwpx
|
|
17
17
|
};
|
|
18
|
-
//# sourceMappingURL=generator-
|
|
18
|
+
//# sourceMappingURL=generator-O5RTSTX6.js.map
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
} from "./chunk-HVXDD6QZ.js";
|
|
6
6
|
import {
|
|
7
7
|
KordocError
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-7LVAULK7.js";
|
|
9
9
|
|
|
10
10
|
// src/hwp5/to-hwpx/hancom.ts
|
|
11
11
|
import { execFileSync } from "child_process";
|
|
@@ -87,4 +87,4 @@ export {
|
|
|
87
87
|
hancomSaveInvocation,
|
|
88
88
|
hwpToHwpxViaHancom
|
|
89
89
|
};
|
|
90
|
-
//# sourceMappingURL=hancom-
|
|
90
|
+
//# sourceMappingURL=hancom-ZJR546EJ.js.map
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
dcxPages,
|
|
3
3
|
heicToRgba,
|
|
4
4
|
pcxToRgba
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-PEN2SUJQ.js";
|
|
6
6
|
import {
|
|
7
7
|
flushHeifCache
|
|
8
8
|
} from "./chunk-3UIIEZBT.js";
|
|
@@ -30,29 +30,29 @@ import {
|
|
|
30
30
|
rescueEmptyCells,
|
|
31
31
|
rotateQuarter,
|
|
32
32
|
rulingToPdfLines
|
|
33
|
-
} from "./chunk-
|
|
34
|
-
import "./chunk-
|
|
33
|
+
} from "./chunk-Q525ZJZK.js";
|
|
34
|
+
import "./chunk-G6HRSHV2.js";
|
|
35
35
|
import "./chunk-5TRTCMDI.js";
|
|
36
36
|
import "./chunk-G5XEBGZD.js";
|
|
37
|
-
import "./chunk-
|
|
38
|
-
import "./chunk-
|
|
37
|
+
import "./chunk-BP54NHUP.js";
|
|
38
|
+
import "./chunk-CKRFG6QS.js";
|
|
39
39
|
import "./chunk-RJCXOE4N.js";
|
|
40
40
|
import {
|
|
41
41
|
ensureOcrModelsFor
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-MLGR4AJ6.js";
|
|
43
43
|
import "./chunk-AY66PEUP.js";
|
|
44
|
-
import "./chunk-
|
|
45
|
-
import "./chunk-
|
|
44
|
+
import "./chunk-EL3TM6NH.js";
|
|
45
|
+
import "./chunk-NOKFHQ6K.js";
|
|
46
46
|
import {
|
|
47
47
|
KordocError,
|
|
48
48
|
OPTIONAL_DEP_INSTALL_HINT
|
|
49
|
-
} from "./chunk-
|
|
49
|
+
} from "./chunk-7LVAULK7.js";
|
|
50
50
|
|
|
51
51
|
// src/ocr/image-formula.ts
|
|
52
52
|
async function applyImageFormulas(items, rgba, width, height, warnings) {
|
|
53
53
|
let regions;
|
|
54
54
|
try {
|
|
55
|
-
const { FormulaPipeline, ensureFormulaModels } = await import("./formula-
|
|
55
|
+
const { FormulaPipeline, ensureFormulaModels } = await import("./formula-3QN7DVFM.js");
|
|
56
56
|
await ensureFormulaModels();
|
|
57
57
|
const pipeline = await FormulaPipeline.create();
|
|
58
58
|
try {
|
|
@@ -284,4 +284,4 @@ export {
|
|
|
284
284
|
imageScale,
|
|
285
285
|
parseImageDocument
|
|
286
286
|
};
|
|
287
|
-
//# sourceMappingURL=image-ocr-
|
|
287
|
+
//# sourceMappingURL=image-ocr-LA3LCRXK.js.map
|