kordoc 4.24.46 → 4.24.47
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 +4 -4
- package/dist/{-N45T7D3V.js → -PWMZE4CC.js} +21 -21
- package/dist/{chunk-JRYQERD5.js → chunk-2CBIY2OH.js} +2 -2
- package/dist/chunk-2CBIY2OH.js.map +1 -0
- package/dist/{chunk-YV6BBJXJ.js → chunk-2VXVBB5Q.js} +3 -3
- package/dist/{chunk-CUYBCAYZ.cjs → chunk-3CWVQNFL.cjs} +58 -58
- package/dist/{chunk-CUYBCAYZ.cjs.map → chunk-3CWVQNFL.cjs.map} +1 -1
- package/dist/{chunk-TXEWEFWH.js → chunk-4MNRUPS5.js} +18 -4
- package/dist/chunk-4MNRUPS5.js.map +1 -0
- package/dist/{chunk-5WR335MB.js → chunk-56FEGA44.js} +11 -11
- package/dist/{chunk-QDBOIQQI.js → chunk-57BKTVR5.js} +2 -2
- package/dist/{chunk-FRVE5JWE.js → chunk-A67OXFXM.js} +19 -5
- package/dist/chunk-A67OXFXM.js.map +1 -0
- package/dist/{chunk-QF7UXLA2.js → chunk-AB7MYMPZ.js} +2 -2
- package/dist/{chunk-NJBY4HME.js → chunk-AO3YFJVW.js} +2 -2
- package/dist/{chunk-G2T6PBYW.js → chunk-AYM7XTI2.js} +2 -2
- package/dist/{chunk-7GM5ZLTC.cjs → chunk-BKK2SMVM.cjs} +2 -2
- package/dist/{chunk-7GM5ZLTC.cjs.map → chunk-BKK2SMVM.cjs.map} +1 -1
- package/dist/{chunk-HEH5WH2Q.js → chunk-BO2IJGNZ.js} +2 -2
- package/dist/{chunk-GKD7J45E.js → chunk-BP5GDQBT.js} +5 -5
- package/dist/{chunk-UHCEBHIY.js → chunk-CQ33HCSU.js} +2 -2
- package/dist/{chunk-4IIMCEUZ.js → chunk-FI7ULBC6.js} +6 -6
- package/dist/{chunk-BVLUNWRF.js → chunk-FOTG4MMD.js} +5 -5
- package/dist/{chunk-B2VBXPXH.js → chunk-GRQXAWNW.js} +2 -2
- package/dist/{chunk-MIJ7EO56.js → chunk-HFQFCAEJ.js} +2 -2
- package/dist/{chunk-VL7UACGR.js → chunk-HMD35PMD.js} +3 -3
- package/dist/{chunk-BOQQO7X7.js → chunk-IPXFIH5E.js} +2 -2
- package/dist/{chunk-BOQQO7X7.js.map → chunk-IPXFIH5E.js.map} +1 -1
- package/dist/{chunk-MZX36SAT.js → chunk-IWC6PTMT.js} +2 -2
- package/dist/{chunk-BY25KD5A.js → chunk-KIVWAZKL.js} +2 -2
- package/dist/{chunk-QIRUP2IN.js → chunk-KSE5HSU3.js} +2 -2
- package/dist/{chunk-V5EDKEW3.js → chunk-LEUAWTMU.js} +6 -6
- package/dist/{chunk-XEMHC53A.cjs → chunk-LMHE4HDR.cjs} +131 -96
- package/dist/chunk-LMHE4HDR.cjs.map +1 -0
- package/dist/{chunk-ZWOUNYCK.js → chunk-MOWJOFIH.js} +2 -2
- package/dist/{chunk-JISE24L4.js → chunk-NYIJU4Q6.js} +10 -10
- package/dist/{chunk-X2UNKZT4.cjs → chunk-O2652KK3.cjs} +3 -3
- package/dist/{chunk-X2UNKZT4.cjs.map → chunk-O2652KK3.cjs.map} +1 -1
- package/dist/{chunk-WBBTXX7T.js → chunk-OAKJNKAS.js} +50 -15
- package/dist/chunk-OAKJNKAS.js.map +1 -0
- package/dist/{chunk-RNWOGZWU.js → chunk-PM46GSMV.js} +51 -16
- package/dist/chunk-PM46GSMV.js.map +1 -0
- package/dist/{chunk-SHYDVLFD.js → chunk-Q3UCWUEV.js} +5 -5
- package/dist/{chunk-D46JZLFC.cjs → chunk-RQ4XTX4J.cjs} +98 -98
- package/dist/{chunk-D46JZLFC.cjs.map → chunk-RQ4XTX4J.cjs.map} +1 -1
- package/dist/{chunk-NWABYDS5.js → chunk-SQ5Q4Q3R.js} +7 -7
- package/dist/{chunk-FQP6MKZY.js → chunk-SUIH5LY7.js} +2 -2
- package/dist/{chunk-7L7VO2L2.js → chunk-T5J4GW6B.js} +2 -2
- package/dist/{chunk-X5APVAKP.js → chunk-TGLXN6VH.js} +3 -3
- package/dist/{chunk-NJEMXMHP.js → chunk-TN5ZK2WN.js} +2 -2
- package/dist/{chunk-MYLKNYSY.cjs → chunk-UFY6XX4U.cjs} +64 -50
- package/dist/chunk-UFY6XX4U.cjs.map +1 -0
- package/dist/{chunk-5O5BKPET.js → chunk-VL43TUO6.js} +2 -2
- package/dist/{chunk-6A36TKBX.cjs → chunk-WAFJUSUF.cjs} +6 -6
- package/dist/{chunk-6A36TKBX.cjs.map → chunk-WAFJUSUF.cjs.map} +1 -1
- package/dist/{chunk-ZRKB6EVS.cjs → chunk-WPLAEJU5.cjs} +3 -3
- package/dist/{chunk-ZRKB6EVS.cjs.map → chunk-WPLAEJU5.cjs.map} +1 -1
- package/dist/{chunk-MVFUAMCR.js → chunk-YLYSJSEP.js} +2 -2
- package/dist/{chunk-KVRW3522.js → chunk-Z5TDZDWU.js} +82 -24
- package/dist/chunk-Z5TDZDWU.js.map +1 -0
- package/dist/chunks-SHXTE5HM.js +11 -0
- package/dist/cli.js +43 -43
- package/dist/{formula-NSUMSGTH.js → formula-2BQBGPM2.js} +3 -3
- package/dist/{formula-C6ODQNSO.cjs → formula-V6CNOC4G.cjs} +9 -9
- package/dist/{formula-C6ODQNSO.cjs.map → formula-V6CNOC4G.cjs.map} +1 -1
- package/dist/{formula-K6TX7MPD.js → formula-W5MTLANP.js} +4 -4
- package/dist/generator-E4VQKPRP.js +10 -0
- package/dist/generator-MBR4V3JQ.js +17 -0
- package/dist/generator-U2BRFTJ4.cjs +11 -0
- package/dist/{generator-QQ43CWBH.cjs.map → generator-U2BRFTJ4.cjs.map} +1 -1
- package/dist/{hancom-HXONTKAF.js → hancom-7SU4XBXJ.js} +2 -2
- package/dist/{hancom-MFD3WGNU.cjs → hancom-MP7D7HWW.cjs} +5 -5
- package/dist/{hancom-MFD3WGNU.cjs.map → hancom-MP7D7HWW.cjs.map} +1 -1
- package/dist/{hancom-24ZZS7G6.js → hancom-RNJWH63M.js} +2 -2
- package/dist/{image-ocr-C4PANEFS.js → image-ocr-2WSZULNO.js} +7 -7
- package/dist/{image-ocr-UWM2JO4F.js → image-ocr-COBRSG6O.js} +10 -10
- package/dist/{image-ocr-44UBGI4O.cjs → image-ocr-MVOSHIY5.cjs} +27 -27
- package/dist/{image-ocr-44UBGI4O.cjs.map → image-ocr-MVOSHIY5.cjs.map} +1 -1
- package/dist/index.cjs +1580 -1522
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +4 -3
- package/dist/index.d.ts +4 -3
- package/dist/index.js +76 -18
- package/dist/index.js.map +1 -1
- package/dist/mcp.js +36 -36
- package/dist/memo-QJ5RKTBN.js +17 -0
- package/dist/{model-bundle-WAPNK77M.js → model-bundle-LFLRW2SI.js} +5 -5
- package/dist/{models-RVSU27QC.js → models-UGOWUUAL.js} +5 -5
- package/dist/{parse-worker-v2-SV4YBNJU.js → parse-worker-v2-LCCTZWPT.js} +22 -22
- package/dist/{parser-YYGB5XWO.js → parser-J56FGU6P.js} +9 -9
- package/dist/{parser-N7XYSGJF.js → parser-JAL2OOOL.js} +12 -12
- package/dist/{parser-QOBNISNN.cjs → parser-RE52HQXO.cjs} +159 -159
- package/dist/{parser-QOBNISNN.cjs.map → parser-RE52HQXO.cjs.map} +1 -1
- package/dist/pdf-ocr-5O336TCR.cjs +42 -0
- package/dist/{pdf-ocr-EEMKTX5R.cjs.map → pdf-ocr-5O336TCR.cjs.map} +1 -1
- package/dist/{pdf-ocr-WXNQMLU2.js → pdf-ocr-NQ3HAL77.js} +9 -9
- package/dist/{pdf-ocr-GFQNIMQG.js → pdf-ocr-PQZZVFI5.js} +6 -6
- package/dist/{profile-io-EKLAEN7W.js → profile-io-K22CB2ZB.js} +3 -3
- package/dist/{rasterize-IXUL6Y5W.js → rasterize-A6B5K4QN.js} +3 -3
- package/dist/{redact-doc-JUTJ3SOJ.js → redact-doc-TPXMML5Q.js} +21 -21
- package/dist/{render-YPFJPUNC.js → render-ROFIMWW5.js} +12 -12
- package/dist/{rewrite-fallback-H6ORRXXB.js → rewrite-fallback-WG7Z3LR3.js} +13 -13
- package/dist/seal-35U76WY2.js +16 -0
- package/dist/{setup-R2HZNN6F.js → setup-J5SHDFIE.js} +3 -3
- package/dist/to-hwpx-RWDQB3T2.cjs +16 -0
- package/dist/{to-hwpx-WHCXM2SA.cjs.map → to-hwpx-RWDQB3T2.cjs.map} +1 -1
- package/dist/{to-hwpx-LRYNPYMS.js → to-hwpx-X7JE6YJB.js} +4 -4
- package/dist/{to-hwpx-WWWZ7USZ.js → to-hwpx-XQULU2I7.js} +7 -7
- package/dist/visual-4HRP2VIH.js +37 -0
- package/dist/{watch-ETBDIPSJ.js → watch-WZBW6UE7.js} +22 -22
- package/package.json +1 -1
- package/dist/chunk-FRVE5JWE.js.map +0 -1
- package/dist/chunk-JRYQERD5.js.map +0 -1
- package/dist/chunk-KVRW3522.js.map +0 -1
- package/dist/chunk-MYLKNYSY.cjs.map +0 -1
- package/dist/chunk-RNWOGZWU.js.map +0 -1
- package/dist/chunk-TXEWEFWH.js.map +0 -1
- package/dist/chunk-WBBTXX7T.js.map +0 -1
- package/dist/chunk-XEMHC53A.cjs.map +0 -1
- package/dist/chunks-4ERKEYKW.js +0 -11
- package/dist/generator-OHDWVKTZ.js +0 -10
- package/dist/generator-QQ43CWBH.cjs +0 -11
- package/dist/generator-SEH6W2LS.js +0 -17
- package/dist/memo-WOHINE33.js +0 -17
- package/dist/pdf-ocr-EEMKTX5R.cjs +0 -42
- package/dist/seal-J3JWCKI6.js +0 -16
- package/dist/to-hwpx-WHCXM2SA.cjs +0 -16
- package/dist/visual-3XBGXVFX.js +0 -37
- /package/dist/{-N45T7D3V.js.map → -PWMZE4CC.js.map} +0 -0
- /package/dist/{chunk-YV6BBJXJ.js.map → chunk-2VXVBB5Q.js.map} +0 -0
- /package/dist/{chunk-5WR335MB.js.map → chunk-56FEGA44.js.map} +0 -0
- /package/dist/{chunk-QDBOIQQI.js.map → chunk-57BKTVR5.js.map} +0 -0
- /package/dist/{chunk-QF7UXLA2.js.map → chunk-AB7MYMPZ.js.map} +0 -0
- /package/dist/{chunk-NJBY4HME.js.map → chunk-AO3YFJVW.js.map} +0 -0
- /package/dist/{chunk-G2T6PBYW.js.map → chunk-AYM7XTI2.js.map} +0 -0
- /package/dist/{chunk-HEH5WH2Q.js.map → chunk-BO2IJGNZ.js.map} +0 -0
- /package/dist/{chunk-GKD7J45E.js.map → chunk-BP5GDQBT.js.map} +0 -0
- /package/dist/{chunk-UHCEBHIY.js.map → chunk-CQ33HCSU.js.map} +0 -0
- /package/dist/{chunk-4IIMCEUZ.js.map → chunk-FI7ULBC6.js.map} +0 -0
- /package/dist/{chunk-BVLUNWRF.js.map → chunk-FOTG4MMD.js.map} +0 -0
- /package/dist/{chunk-B2VBXPXH.js.map → chunk-GRQXAWNW.js.map} +0 -0
- /package/dist/{chunk-MIJ7EO56.js.map → chunk-HFQFCAEJ.js.map} +0 -0
- /package/dist/{chunk-VL7UACGR.js.map → chunk-HMD35PMD.js.map} +0 -0
- /package/dist/{chunk-MZX36SAT.js.map → chunk-IWC6PTMT.js.map} +0 -0
- /package/dist/{chunk-BY25KD5A.js.map → chunk-KIVWAZKL.js.map} +0 -0
- /package/dist/{chunk-QIRUP2IN.js.map → chunk-KSE5HSU3.js.map} +0 -0
- /package/dist/{chunk-V5EDKEW3.js.map → chunk-LEUAWTMU.js.map} +0 -0
- /package/dist/{chunk-ZWOUNYCK.js.map → chunk-MOWJOFIH.js.map} +0 -0
- /package/dist/{chunk-JISE24L4.js.map → chunk-NYIJU4Q6.js.map} +0 -0
- /package/dist/{chunk-SHYDVLFD.js.map → chunk-Q3UCWUEV.js.map} +0 -0
- /package/dist/{chunk-NWABYDS5.js.map → chunk-SQ5Q4Q3R.js.map} +0 -0
- /package/dist/{chunk-FQP6MKZY.js.map → chunk-SUIH5LY7.js.map} +0 -0
- /package/dist/{chunk-7L7VO2L2.js.map → chunk-T5J4GW6B.js.map} +0 -0
- /package/dist/{chunk-X5APVAKP.js.map → chunk-TGLXN6VH.js.map} +0 -0
- /package/dist/{chunk-NJEMXMHP.js.map → chunk-TN5ZK2WN.js.map} +0 -0
- /package/dist/{chunk-5O5BKPET.js.map → chunk-VL43TUO6.js.map} +0 -0
- /package/dist/{chunk-MVFUAMCR.js.map → chunk-YLYSJSEP.js.map} +0 -0
- /package/dist/{chunks-4ERKEYKW.js.map → chunks-SHXTE5HM.js.map} +0 -0
- /package/dist/{formula-NSUMSGTH.js.map → formula-2BQBGPM2.js.map} +0 -0
- /package/dist/{formula-K6TX7MPD.js.map → formula-W5MTLANP.js.map} +0 -0
- /package/dist/{generator-OHDWVKTZ.js.map → generator-E4VQKPRP.js.map} +0 -0
- /package/dist/{generator-SEH6W2LS.js.map → generator-MBR4V3JQ.js.map} +0 -0
- /package/dist/{hancom-HXONTKAF.js.map → hancom-7SU4XBXJ.js.map} +0 -0
- /package/dist/{hancom-24ZZS7G6.js.map → hancom-RNJWH63M.js.map} +0 -0
- /package/dist/{image-ocr-C4PANEFS.js.map → image-ocr-2WSZULNO.js.map} +0 -0
- /package/dist/{image-ocr-UWM2JO4F.js.map → image-ocr-COBRSG6O.js.map} +0 -0
- /package/dist/{memo-WOHINE33.js.map → memo-QJ5RKTBN.js.map} +0 -0
- /package/dist/{model-bundle-WAPNK77M.js.map → model-bundle-LFLRW2SI.js.map} +0 -0
- /package/dist/{models-RVSU27QC.js.map → models-UGOWUUAL.js.map} +0 -0
- /package/dist/{parse-worker-v2-SV4YBNJU.js.map → parse-worker-v2-LCCTZWPT.js.map} +0 -0
- /package/dist/{parser-YYGB5XWO.js.map → parser-J56FGU6P.js.map} +0 -0
- /package/dist/{parser-N7XYSGJF.js.map → parser-JAL2OOOL.js.map} +0 -0
- /package/dist/{pdf-ocr-GFQNIMQG.js.map → pdf-ocr-NQ3HAL77.js.map} +0 -0
- /package/dist/{pdf-ocr-WXNQMLU2.js.map → pdf-ocr-PQZZVFI5.js.map} +0 -0
- /package/dist/{profile-io-EKLAEN7W.js.map → profile-io-K22CB2ZB.js.map} +0 -0
- /package/dist/{rasterize-IXUL6Y5W.js.map → rasterize-A6B5K4QN.js.map} +0 -0
- /package/dist/{redact-doc-JUTJ3SOJ.js.map → redact-doc-TPXMML5Q.js.map} +0 -0
- /package/dist/{render-YPFJPUNC.js.map → render-ROFIMWW5.js.map} +0 -0
- /package/dist/{rewrite-fallback-H6ORRXXB.js.map → rewrite-fallback-WG7Z3LR3.js.map} +0 -0
- /package/dist/{seal-J3JWCKI6.js.map → seal-35U76WY2.js.map} +0 -0
- /package/dist/{setup-R2HZNN6F.js.map → setup-J5SHDFIE.js.map} +0 -0
- /package/dist/{to-hwpx-LRYNPYMS.js.map → to-hwpx-X7JE6YJB.js.map} +0 -0
- /package/dist/{to-hwpx-WWWZ7USZ.js.map → to-hwpx-XQULU2I7.js.map} +0 -0
- /package/dist/{visual-3XBGXVFX.js.map → visual-4HRP2VIH.js.map} +0 -0
- /package/dist/{watch-ETBDIPSJ.js.map → watch-WZBW6UE7.js.map} +0 -0
package/dist/mcp.js
CHANGED
|
@@ -45,45 +45,45 @@ import {
|
|
|
45
45
|
unknownFontWarnings,
|
|
46
46
|
usesGaejosikMunche,
|
|
47
47
|
usesLogicStructure
|
|
48
|
-
} from "./chunk-
|
|
49
|
-
import "./chunk-
|
|
50
|
-
import "./chunk-
|
|
48
|
+
} from "./chunk-Z5TDZDWU.js";
|
|
49
|
+
import "./chunk-NYIJU4Q6.js";
|
|
50
|
+
import "./chunk-CQ33HCSU.js";
|
|
51
51
|
import {
|
|
52
52
|
extractHwpxMetadataOnly,
|
|
53
53
|
patchHwp,
|
|
54
54
|
patchHwpx
|
|
55
|
-
} from "./chunk-
|
|
56
|
-
import "./chunk-
|
|
55
|
+
} from "./chunk-56FEGA44.js";
|
|
56
|
+
import "./chunk-HMD35PMD.js";
|
|
57
57
|
import {
|
|
58
58
|
AGENCY_COMMON_NAME,
|
|
59
59
|
PRESET_ALIAS,
|
|
60
60
|
agencyNames,
|
|
61
61
|
incompatibleGongmunWarnings,
|
|
62
62
|
markdownToHwpx
|
|
63
|
-
} from "./chunk-
|
|
64
|
-
import "./chunk-
|
|
65
|
-
import "./chunk-
|
|
66
|
-
import "./chunk-
|
|
67
|
-
import "./chunk-
|
|
68
|
-
import "./chunk-
|
|
63
|
+
} from "./chunk-LEUAWTMU.js";
|
|
64
|
+
import "./chunk-MOWJOFIH.js";
|
|
65
|
+
import "./chunk-FI7ULBC6.js";
|
|
66
|
+
import "./chunk-BP5GDQBT.js";
|
|
67
|
+
import "./chunk-AO3YFJVW.js";
|
|
68
|
+
import "./chunk-VL43TUO6.js";
|
|
69
69
|
import {
|
|
70
70
|
extractFormFields,
|
|
71
71
|
fillWithUniqueGuard
|
|
72
72
|
} from "./chunk-3AHL6YEA.js";
|
|
73
|
-
import "./chunk-
|
|
73
|
+
import "./chunk-AB7MYMPZ.js";
|
|
74
74
|
import {
|
|
75
75
|
hwpToHwpx
|
|
76
|
-
} from "./chunk-
|
|
76
|
+
} from "./chunk-SQ5Q4Q3R.js";
|
|
77
77
|
import {
|
|
78
78
|
extractHwp5MetadataOnly
|
|
79
|
-
} from "./chunk-
|
|
79
|
+
} from "./chunk-FOTG4MMD.js";
|
|
80
80
|
import "./chunk-VKVDMH7X.js";
|
|
81
81
|
import "./chunk-OFVHQ2TZ.js";
|
|
82
|
-
import "./chunk-
|
|
82
|
+
import "./chunk-BO2IJGNZ.js";
|
|
83
83
|
import "./chunk-WFKFG2RT.js";
|
|
84
84
|
import "./chunk-3WSNLH4B.js";
|
|
85
|
-
import "./chunk-
|
|
86
|
-
import "./chunk-
|
|
85
|
+
import "./chunk-YLYSJSEP.js";
|
|
86
|
+
import "./chunk-TN5ZK2WN.js";
|
|
87
87
|
import "./chunk-VQFA55IC.js";
|
|
88
88
|
import {
|
|
89
89
|
detectFormat,
|
|
@@ -92,16 +92,16 @@ import {
|
|
|
92
92
|
} from "./chunk-GHHVT4Q5.js";
|
|
93
93
|
import "./chunk-H7K5YHWQ.js";
|
|
94
94
|
import "./chunk-IIOBUTXH.js";
|
|
95
|
-
import "./chunk-
|
|
95
|
+
import "./chunk-2CBIY2OH.js";
|
|
96
96
|
import {
|
|
97
97
|
blocksToMarkdown
|
|
98
|
-
} from "./chunk-
|
|
98
|
+
} from "./chunk-KSE5HSU3.js";
|
|
99
99
|
import "./chunk-KFF47XZ7.js";
|
|
100
100
|
import {
|
|
101
101
|
assertWithinRoot,
|
|
102
102
|
getAccessRoot,
|
|
103
103
|
isOfflineMode
|
|
104
|
-
} from "./chunk-
|
|
104
|
+
} from "./chunk-KIVWAZKL.js";
|
|
105
105
|
import {
|
|
106
106
|
KordocError,
|
|
107
107
|
VERSION,
|
|
@@ -109,7 +109,7 @@ import {
|
|
|
109
109
|
routeConsoleToStderr,
|
|
110
110
|
sanitizeError,
|
|
111
111
|
toArrayBuffer
|
|
112
|
-
} from "./chunk-
|
|
112
|
+
} from "./chunk-57BKTVR5.js";
|
|
113
113
|
|
|
114
114
|
// src/mcp.ts
|
|
115
115
|
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
|
|
@@ -426,7 +426,7 @@ ${markdown}`);
|
|
|
426
426
|
break;
|
|
427
427
|
case "pdf":
|
|
428
428
|
try {
|
|
429
|
-
const { extractPdfMetadataOnly } = await import("./parser-
|
|
429
|
+
const { extractPdfMetadataOnly } = await import("./parser-JAL2OOOL.js");
|
|
430
430
|
metadata = await extractPdfMetadataOnly(buffer);
|
|
431
431
|
} catch {
|
|
432
432
|
metadata = void 0;
|
|
@@ -603,7 +603,7 @@ ${tableMarkdown}` }]
|
|
|
603
603
|
if (!parsed.success) {
|
|
604
604
|
return { content: [{ type: "text", text: `\uD30C\uC2F1 \uC2E4\uD328: ${parsed.error}` }], isError: true };
|
|
605
605
|
}
|
|
606
|
-
const { blocksToChunks } = await import("./chunks-
|
|
606
|
+
const { blocksToChunks } = await import("./chunks-SHXTE5HM.js");
|
|
607
607
|
const chunks = blocksToChunks(parsed.blocks, { granularity, includeTableCells: include_table_cells });
|
|
608
608
|
return { content: [{ type: "text", text: capResponseText(JSON.stringify(chunks, null, 2)) }] };
|
|
609
609
|
} catch (err) {
|
|
@@ -883,7 +883,7 @@ ${previewMd}` }]
|
|
|
883
883
|
}
|
|
884
884
|
const image = new Uint8Array(await readFile2(imgResolved));
|
|
885
885
|
const ext = extname2(imgResolved).slice(1).toLowerCase();
|
|
886
|
-
const { placeSealHwpx } = await import("./seal-
|
|
886
|
+
const { placeSealHwpx } = await import("./seal-35U76WY2.js");
|
|
887
887
|
const result = await placeSealHwpx(buffer, [{
|
|
888
888
|
anchor,
|
|
889
889
|
occurrence,
|
|
@@ -939,7 +939,7 @@ ${previewMd}` }]
|
|
|
939
939
|
if (format !== "hwpx") {
|
|
940
940
|
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 };
|
|
941
941
|
}
|
|
942
|
-
const { addMemoHwpx } = await import("./memo-
|
|
942
|
+
const { addMemoHwpx } = await import("./memo-QJ5RKTBN.js");
|
|
943
943
|
const result = await addMemoHwpx(buffer, [{ anchor, text, author, occurrence }]);
|
|
944
944
|
await mkdir(dirname2(outPath), { recursive: true });
|
|
945
945
|
await writeOutputFile(outPath, Buffer.from(result.buffer));
|
|
@@ -981,7 +981,7 @@ ${previewMd}` }]
|
|
|
981
981
|
}
|
|
982
982
|
const original = new Uint8Array(buffer);
|
|
983
983
|
const result = isHwpx ? await patchHwpx(original, edited_markdown, structure === false ? { structure: false } : void 0) : await patchHwp(original, edited_markdown);
|
|
984
|
-
const { needsRewrite, rewriteEdited, rewritePath } = await import("./rewrite-fallback-
|
|
984
|
+
const { needsRewrite, rewriteEdited, rewritePath } = await import("./rewrite-fallback-WG7Z3LR3.js");
|
|
985
985
|
const rewrite = needsRewrite(result) ? await rewriteEdited(original, isHwpx, edited_markdown, result.success) : null;
|
|
986
986
|
const rwOut = rewrite ? safeOutputPath(rewritePath(out), /* @__PURE__ */ new Set([".hwpx"])) : void 0;
|
|
987
987
|
if (rewrite && rwOut) {
|
|
@@ -1050,7 +1050,7 @@ ${rewriteLine}` }] };
|
|
|
1050
1050
|
if (outPath && await isSameFile(outPath, resolved)) {
|
|
1051
1051
|
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 };
|
|
1052
1052
|
}
|
|
1053
|
-
const { redactDocument } = await import("./redact-doc-
|
|
1053
|
+
const { redactDocument } = await import("./redact-doc-TPXMML5Q.js");
|
|
1054
1054
|
const r = await redactDocument(buffer, { rules, maskChar: mask_char, filePath: file_path, dryRun: dry_run });
|
|
1055
1055
|
const MAX_LINES = 50;
|
|
1056
1056
|
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}`);
|
|
@@ -1125,7 +1125,7 @@ function registerRenderTools(server2) {
|
|
|
1125
1125
|
const { buffer, resolved } = await readValidatedFile(file_path, MAX_FILE_SIZE, /* @__PURE__ */ new Set([".hwpx", ".hwp"]));
|
|
1126
1126
|
const isHwp5 = resolved.toLowerCase().endsWith(".hwp");
|
|
1127
1127
|
if (!isHwp5 && !pages && (format === "png" || format === "svg")) {
|
|
1128
|
-
const { renderHwpxToSvg } = await import("./render-
|
|
1128
|
+
const { renderHwpxToSvg } = await import("./render-ROFIMWW5.js");
|
|
1129
1129
|
const result = await renderHwpxToSvg(buffer, { highlights, reflow: true, reflowMode: reflow_mode, password });
|
|
1130
1130
|
const summary2 = [
|
|
1131
1131
|
`\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})`,
|
|
@@ -1137,7 +1137,7 @@ function registerRenderTools(server2) {
|
|
|
1137
1137
|
summary2.push(`\uC800\uC7A5: ${outPath}`);
|
|
1138
1138
|
return { content: [{ type: "text", text: summary2.join("\n") }] };
|
|
1139
1139
|
}
|
|
1140
|
-
const { rasterizeSvg } = await import("./rasterize-
|
|
1140
|
+
const { rasterizeSvg } = await import("./rasterize-A6B5K4QN.js");
|
|
1141
1141
|
const raster = await rasterizeSvg(result.svg, result.width, result.height, max_width_px ? { maxWidthPx: max_width_px } : void 0);
|
|
1142
1142
|
if (outPath) {
|
|
1143
1143
|
await mkdir2(dirname3(outPath), { recursive: true });
|
|
@@ -1152,7 +1152,7 @@ function registerRenderTools(server2) {
|
|
|
1152
1152
|
]
|
|
1153
1153
|
};
|
|
1154
1154
|
}
|
|
1155
|
-
const { renderDocument } = await import("./render-
|
|
1155
|
+
const { renderDocument } = await import("./render-ROFIMWW5.js");
|
|
1156
1156
|
const { scene, assets } = await renderDocument(buffer, { format, pages, highlights, reflow: true, reflowMode: reflow_mode, maxWidthPx: max_width_px, password });
|
|
1157
1157
|
const summary = [
|
|
1158
1158
|
`\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})`,
|
|
@@ -1202,7 +1202,7 @@ function registerRenderTools(server2) {
|
|
|
1202
1202
|
try {
|
|
1203
1203
|
const { buffer } = await readValidatedFile(file_path, MAX_FILE_SIZE, /* @__PURE__ */ new Set([".hwpx", ".hwp"]));
|
|
1204
1204
|
const dir = safeOutputPath(join2(output_dir, "regions.json"), /* @__PURE__ */ new Set([".json"])).replace(/[\\/]regions\.json$/, "");
|
|
1205
|
-
const { extractRenderedRegions } = await import("./render-
|
|
1205
|
+
const { extractRenderedRegions } = await import("./render-ROFIMWW5.js");
|
|
1206
1206
|
const regions = await extractRenderedRegions(buffer, { types: target, format, pages, paddingPt: padding_pt, reflow: true });
|
|
1207
1207
|
await mkdir2(dir, { recursive: true });
|
|
1208
1208
|
const ext = format === "jpeg" ? "jpg" : "png";
|
|
@@ -1238,7 +1238,7 @@ function registerRenderTools(server2) {
|
|
|
1238
1238
|
}
|
|
1239
1239
|
const { buffer } = await readValidatedFile(file_path, MAX_FILE_SIZE, /* @__PURE__ */ new Set([".hwpx", ".hwp"]));
|
|
1240
1240
|
const dir = output_dir ? safeOutputPath(join2(output_dir, "tables.json"), /* @__PURE__ */ new Set([".json"])).replace(/[\\/]tables\.json$/, "") : void 0;
|
|
1241
|
-
const { extractTables } = await import("./visual-
|
|
1241
|
+
const { extractTables } = await import("./visual-4HRP2VIH.js");
|
|
1242
1242
|
const tables = await extractTables(buffer, { policy: visual, format, paddingPt: padding_pt });
|
|
1243
1243
|
if (dir) await mkdir2(dir, { recursive: true });
|
|
1244
1244
|
const ext = format === "jpeg" ? "jpg" : "png";
|
|
@@ -1295,7 +1295,7 @@ function registerGenerateTools(server2) {
|
|
|
1295
1295
|
try {
|
|
1296
1296
|
const out = safeOutputPath(output_path, PROFILE_EXTENSIONS);
|
|
1297
1297
|
const { buffer } = await readValidatedFile(hwpx_path);
|
|
1298
|
-
const { hwpxToProfile } = await import("./-
|
|
1298
|
+
const { hwpxToProfile } = await import("./-PWMZE4CC.js");
|
|
1299
1299
|
const profile = await hwpxToProfile(buffer);
|
|
1300
1300
|
await mkdir3(dirname4(out), { recursive: true });
|
|
1301
1301
|
await writeOutputFile(out, JSON.stringify(profile, null, 2));
|
|
@@ -1448,7 +1448,7 @@ ${g.blocking.map((f) => `- ${formatGateFinding(f)}`).join("\n")}` }],
|
|
|
1448
1448
|
}
|
|
1449
1449
|
let profile;
|
|
1450
1450
|
if (profile_path) {
|
|
1451
|
-
const { parseFormatProfileJson } = await import("./profile-io-
|
|
1451
|
+
const { parseFormatProfileJson } = await import("./profile-io-K22CB2ZB.js");
|
|
1452
1452
|
profile = parseFormatProfileJson(await readFile3(safePath(profile_path, PROFILE_EXTENSIONS), "utf-8"));
|
|
1453
1453
|
}
|
|
1454
1454
|
const out = safeOutputPath(output_path, /* @__PURE__ */ new Set([".hwpx"]));
|
|
@@ -1599,7 +1599,7 @@ function registerLintTools(server2) {
|
|
|
1599
1599
|
let irBlocks;
|
|
1600
1600
|
if (file_path !== void 0) {
|
|
1601
1601
|
const { buffer, resolved } = await readValidatedFile(file_path, MAX_FILE_SIZE, ALLOWED_EXTENSIONS);
|
|
1602
|
-
const { parse: parse2 } = await import("./-
|
|
1602
|
+
const { parse: parse2 } = await import("./-PWMZE4CC.js");
|
|
1603
1603
|
const parsed = await parse2(buffer, { filePath: resolved });
|
|
1604
1604
|
if (!parsed.success) throw new KordocError(`\uBB38\uC11C\uB97C \uC77D\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4 \u2014 ${parsed.error}`);
|
|
1605
1605
|
body = parsed.markdown;
|
|
@@ -1658,7 +1658,7 @@ function registerConvertTools(server2) {
|
|
|
1658
1658
|
if (!output_path && await access(outPath).then(() => true, () => false)) {
|
|
1659
1659
|
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`);
|
|
1660
1660
|
}
|
|
1661
|
-
const { convertToHwpx, validateHwpx } = await import("./-
|
|
1661
|
+
const { convertToHwpx, validateHwpx } = await import("./-PWMZE4CC.js");
|
|
1662
1662
|
const result = await convertToHwpx(buffer, { password, engine });
|
|
1663
1663
|
const check = await validateHwpx(result.data);
|
|
1664
1664
|
await mkdir4(dirname5(outPath), { recursive: true });
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import {
|
|
3
|
+
addMemoHwpx
|
|
4
|
+
} from "./chunk-FI7ULBC6.js";
|
|
5
|
+
import "./chunk-BP5GDQBT.js";
|
|
6
|
+
import "./chunk-AO3YFJVW.js";
|
|
7
|
+
import "./chunk-VL43TUO6.js";
|
|
8
|
+
import "./chunk-3AHL6YEA.js";
|
|
9
|
+
import "./chunk-AB7MYMPZ.js";
|
|
10
|
+
import "./chunk-BO2IJGNZ.js";
|
|
11
|
+
import "./chunk-WFKFG2RT.js";
|
|
12
|
+
import "./chunk-KFF47XZ7.js";
|
|
13
|
+
import "./chunk-57BKTVR5.js";
|
|
14
|
+
export {
|
|
15
|
+
addMemoHwpx
|
|
16
|
+
};
|
|
17
|
+
//# sourceMappingURL=memo-QJ5RKTBN.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-T5J4GW6B.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-HFQFCAEJ.js";
|
|
10
|
+
import "./chunk-KIVWAZKL.js";
|
|
11
|
+
import "./chunk-57BKTVR5.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-LFLRW2SI.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-T5J4GW6B.js";
|
|
23
|
+
import "./chunk-HFQFCAEJ.js";
|
|
24
|
+
import "./chunk-KIVWAZKL.js";
|
|
25
|
+
import "./chunk-57BKTVR5.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-UGOWUUAL.js.map
|
|
@@ -1,46 +1,46 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
parseWorkerFile
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-TGLXN6VH.js";
|
|
5
5
|
import {
|
|
6
6
|
lintBlocks
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
7
|
+
} from "./chunk-Z5TDZDWU.js";
|
|
8
|
+
import "./chunk-NYIJU4Q6.js";
|
|
9
|
+
import "./chunk-CQ33HCSU.js";
|
|
10
|
+
import "./chunk-56FEGA44.js";
|
|
11
|
+
import "./chunk-HMD35PMD.js";
|
|
12
12
|
import {
|
|
13
13
|
PRESET_ALIAS
|
|
14
|
-
} from "./chunk-
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-
|
|
19
|
-
import "./chunk-
|
|
14
|
+
} from "./chunk-LEUAWTMU.js";
|
|
15
|
+
import "./chunk-MOWJOFIH.js";
|
|
16
|
+
import "./chunk-FI7ULBC6.js";
|
|
17
|
+
import "./chunk-BP5GDQBT.js";
|
|
18
|
+
import "./chunk-AO3YFJVW.js";
|
|
19
|
+
import "./chunk-VL43TUO6.js";
|
|
20
20
|
import "./chunk-3AHL6YEA.js";
|
|
21
|
-
import "./chunk-
|
|
22
|
-
import "./chunk-
|
|
23
|
-
import "./chunk-
|
|
21
|
+
import "./chunk-AB7MYMPZ.js";
|
|
22
|
+
import "./chunk-SQ5Q4Q3R.js";
|
|
23
|
+
import "./chunk-FOTG4MMD.js";
|
|
24
24
|
import "./chunk-VKVDMH7X.js";
|
|
25
25
|
import "./chunk-OFVHQ2TZ.js";
|
|
26
|
-
import "./chunk-
|
|
26
|
+
import "./chunk-BO2IJGNZ.js";
|
|
27
27
|
import "./chunk-WFKFG2RT.js";
|
|
28
28
|
import "./chunk-3WSNLH4B.js";
|
|
29
|
-
import "./chunk-
|
|
30
|
-
import "./chunk-
|
|
29
|
+
import "./chunk-YLYSJSEP.js";
|
|
30
|
+
import "./chunk-TN5ZK2WN.js";
|
|
31
31
|
import "./chunk-VQFA55IC.js";
|
|
32
32
|
import "./chunk-GHHVT4Q5.js";
|
|
33
33
|
import "./chunk-H7K5YHWQ.js";
|
|
34
34
|
import {
|
|
35
35
|
validateOcrOptions
|
|
36
36
|
} from "./chunk-IIOBUTXH.js";
|
|
37
|
-
import "./chunk-
|
|
38
|
-
import "./chunk-
|
|
37
|
+
import "./chunk-2CBIY2OH.js";
|
|
38
|
+
import "./chunk-KSE5HSU3.js";
|
|
39
39
|
import "./chunk-KFF47XZ7.js";
|
|
40
40
|
import {
|
|
41
41
|
VERSION,
|
|
42
42
|
sanitizeError
|
|
43
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-57BKTVR5.js";
|
|
44
44
|
|
|
45
45
|
// src/cli/parse-worker-v2.ts
|
|
46
46
|
import { createHash } from "crypto";
|
|
@@ -372,4 +372,4 @@ export {
|
|
|
372
372
|
runParseWorkerV2,
|
|
373
373
|
toParseOptions
|
|
374
374
|
};
|
|
375
|
-
//# sourceMappingURL=parse-worker-v2-
|
|
375
|
+
//# sourceMappingURL=parse-worker-v2-LCCTZWPT.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
blocksToPages
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-AYM7XTI2.js";
|
|
4
4
|
import {
|
|
5
5
|
encodePng
|
|
6
6
|
} from "./chunk-U556XJW6.js";
|
|
@@ -64,11 +64,11 @@ import {
|
|
|
64
64
|
stripAbsorbedRunningLines,
|
|
65
65
|
trimTrailingEmptyTableCols,
|
|
66
66
|
wrapJoiner
|
|
67
|
-
} from "./chunk-
|
|
67
|
+
} from "./chunk-A67OXFXM.js";
|
|
68
68
|
import {
|
|
69
69
|
validateOcrOptions
|
|
70
70
|
} from "./chunk-TBGGAR7W.js";
|
|
71
|
-
import "./chunk-
|
|
71
|
+
import "./chunk-GRQXAWNW.js";
|
|
72
72
|
import {
|
|
73
73
|
CELL_BASELINES,
|
|
74
74
|
CELL_EDGES,
|
|
@@ -85,11 +85,11 @@ import {
|
|
|
85
85
|
stripScriptTags,
|
|
86
86
|
toTex,
|
|
87
87
|
unframeLayoutTables
|
|
88
|
-
} from "./chunk-
|
|
88
|
+
} from "./chunk-IPXFIH5E.js";
|
|
89
89
|
import {
|
|
90
90
|
KordocError,
|
|
91
91
|
sanitizeHref
|
|
92
|
-
} from "./chunk-
|
|
92
|
+
} from "./chunk-SUIH5LY7.js";
|
|
93
93
|
|
|
94
94
|
// src/pdf/image-extract.ts
|
|
95
95
|
import { createHash } from "crypto";
|
|
@@ -4286,7 +4286,7 @@ function mergeLinkRuns(markdown) {
|
|
|
4286
4286
|
|
|
4287
4287
|
// src/pdf/formula-ocr.ts
|
|
4288
4288
|
async function applyFormulaOcr(buffer, blocks, pageFilter, effectivePageCount, warnings, _onProgress) {
|
|
4289
|
-
const formulaMod = await import("./formula-
|
|
4289
|
+
const formulaMod = await import("./formula-2BQBGPM2.js");
|
|
4290
4290
|
const { FormulaPipeline, ensureFormulaModels } = formulaMod;
|
|
4291
4291
|
await ensureFormulaModels((p) => {
|
|
4292
4292
|
if (p.phase === "download" && p.total) {
|
|
@@ -4723,10 +4723,10 @@ async function parsePdfDocument(buffer, options) {
|
|
|
4723
4723
|
}
|
|
4724
4724
|
if (targets.size > 0) {
|
|
4725
4725
|
try {
|
|
4726
|
-
const { runPdfOcr } = await import("./pdf-ocr-
|
|
4726
|
+
const { runPdfOcr } = await import("./pdf-ocr-PQZZVFI5.js");
|
|
4727
4727
|
const mode = typeof options?.ocr === "function" ? options.ocr : "builtin";
|
|
4728
4728
|
const regionPages = new Map([...ocrRegions].filter(([p]) => options?.ocr !== "force" && !isImageBased && !pageQuality.find((q) => q.page === p)?.needsOcr));
|
|
4729
|
-
const { builtinOcrConfig } = await import("./pdf-ocr-
|
|
4729
|
+
const { builtinOcrConfig } = await import("./pdf-ocr-PQZZVFI5.js");
|
|
4730
4730
|
const ocrPageBlocks = await runPdfOcr(ocrBuffer, targets, mode, warnings, options?.onProgress, options?.tables !== false, vectorPageOps, regionPages, builtinOcrConfig(options), ocrLinesOut);
|
|
4731
4731
|
for (const obs of ocrPageBlocks.values()) stripScriptTags({ blocks: obs });
|
|
4732
4732
|
if (ocrPageBlocks.size > 0) {
|
|
@@ -4971,4 +4971,4 @@ export {
|
|
|
4971
4971
|
parsePdfDocument,
|
|
4972
4972
|
removeHeaderFooterBlocks
|
|
4973
4973
|
};
|
|
4974
|
-
//# sourceMappingURL=parser-
|
|
4974
|
+
//# sourceMappingURL=parser-J56FGU6P.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
blocksToPages
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-CQ33HCSU.js";
|
|
5
5
|
import {
|
|
6
6
|
encodePng
|
|
7
7
|
} from "./chunk-VKVDMH7X.js";
|
|
@@ -62,7 +62,7 @@ import {
|
|
|
62
62
|
stripAbsorbedRunningLines,
|
|
63
63
|
trimTrailingEmptyTableCols,
|
|
64
64
|
wrapJoiner
|
|
65
|
-
} from "./chunk-
|
|
65
|
+
} from "./chunk-4MNRUPS5.js";
|
|
66
66
|
import {
|
|
67
67
|
validateOcrOptions
|
|
68
68
|
} from "./chunk-IIOBUTXH.js";
|
|
@@ -75,12 +75,12 @@ import {
|
|
|
75
75
|
stripScriptTags,
|
|
76
76
|
toTex,
|
|
77
77
|
unframeLayoutTables
|
|
78
|
-
} from "./chunk-
|
|
78
|
+
} from "./chunk-2CBIY2OH.js";
|
|
79
79
|
import {
|
|
80
80
|
assignTableIds,
|
|
81
81
|
blocksToMarkdown,
|
|
82
82
|
escapeLiteralDollar
|
|
83
|
-
} from "./chunk-
|
|
83
|
+
} from "./chunk-KSE5HSU3.js";
|
|
84
84
|
import {
|
|
85
85
|
WINGDINGS,
|
|
86
86
|
enclosedNumber,
|
|
@@ -91,13 +91,13 @@ import {
|
|
|
91
91
|
handwritingFallbackModels,
|
|
92
92
|
ocrModelsCached,
|
|
93
93
|
resolveOcrModels
|
|
94
|
-
} from "./chunk-
|
|
95
|
-
import "./chunk-
|
|
96
|
-
import "./chunk-
|
|
94
|
+
} from "./chunk-T5J4GW6B.js";
|
|
95
|
+
import "./chunk-HFQFCAEJ.js";
|
|
96
|
+
import "./chunk-KIVWAZKL.js";
|
|
97
97
|
import {
|
|
98
98
|
KordocError,
|
|
99
99
|
sanitizeHref
|
|
100
|
-
} from "./chunk-
|
|
100
|
+
} from "./chunk-57BKTVR5.js";
|
|
101
101
|
|
|
102
102
|
// src/pdf/image-extract.ts
|
|
103
103
|
import { createHash } from "crypto";
|
|
@@ -4294,7 +4294,7 @@ function mergeLinkRuns(markdown) {
|
|
|
4294
4294
|
|
|
4295
4295
|
// src/pdf/formula-ocr.ts
|
|
4296
4296
|
async function applyFormulaOcr(buffer, blocks, pageFilter, effectivePageCount, warnings, _onProgress) {
|
|
4297
|
-
const formulaMod = await import("./formula-
|
|
4297
|
+
const formulaMod = await import("./formula-W5MTLANP.js");
|
|
4298
4298
|
const { FormulaPipeline, ensureFormulaModels } = formulaMod;
|
|
4299
4299
|
await ensureFormulaModels((p) => {
|
|
4300
4300
|
if (p.phase === "download" && p.total) {
|
|
@@ -4731,10 +4731,10 @@ async function parsePdfDocument(buffer, options) {
|
|
|
4731
4731
|
}
|
|
4732
4732
|
if (targets.size > 0) {
|
|
4733
4733
|
try {
|
|
4734
|
-
const { runPdfOcr } = await import("./pdf-ocr-
|
|
4734
|
+
const { runPdfOcr } = await import("./pdf-ocr-NQ3HAL77.js");
|
|
4735
4735
|
const mode = typeof options?.ocr === "function" ? options.ocr : "builtin";
|
|
4736
4736
|
const regionPages = new Map([...ocrRegions].filter(([p]) => options?.ocr !== "force" && !isImageBased && !pageQuality.find((q) => q.page === p)?.needsOcr));
|
|
4737
|
-
const { builtinOcrConfig } = await import("./pdf-ocr-
|
|
4737
|
+
const { builtinOcrConfig } = await import("./pdf-ocr-NQ3HAL77.js");
|
|
4738
4738
|
const ocrPageBlocks = await runPdfOcr(ocrBuffer, targets, mode, warnings, options?.onProgress, options?.tables !== false, vectorPageOps, regionPages, builtinOcrConfig(options), ocrLinesOut);
|
|
4739
4739
|
for (const obs of ocrPageBlocks.values()) stripScriptTags({ blocks: obs });
|
|
4740
4740
|
if (ocrPageBlocks.size > 0) {
|
|
@@ -4979,4 +4979,4 @@ export {
|
|
|
4979
4979
|
parsePdfDocument,
|
|
4980
4980
|
removeHeaderFooterBlocks
|
|
4981
4981
|
};
|
|
4982
|
-
//# sourceMappingURL=parser-
|
|
4982
|
+
//# sourceMappingURL=parser-JAL2OOOL.js.map
|