kordoc 4.24.73 → 4.24.74
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 +17 -0
- package/README.md +3 -3
- package/dist/{-CNXSUEGZ.js → -U7FV47XK.js} +25 -23
- package/dist/{chunk-S6K222FM.js → chunk-2HHE3D4S.js} +2 -2
- package/dist/{chunk-IV6UP7MO.js → chunk-2SMYX3L4.js} +2 -2
- package/dist/{chunk-X4HNVXJI.js → chunk-2ZZCE4EM.js} +2 -2
- package/dist/{chunk-GHHVT4Q5.js → chunk-3O3KTZ7H.js} +38 -7
- package/dist/chunk-3O3KTZ7H.js.map +1 -0
- package/dist/{chunk-TTIJTR5Z.js → chunk-3PTQBVDC.js} +6 -6
- package/dist/{chunk-QLUFTCAE.cjs → chunk-4TDUZ6UN.cjs} +126 -39
- package/dist/chunk-4TDUZ6UN.cjs.map +1 -0
- package/dist/{chunk-JY4YMR6F.js → chunk-4VOOFNBK.js} +122 -35
- package/dist/chunk-4VOOFNBK.js.map +1 -0
- package/dist/{chunk-ARVHYL3V.cjs → chunk-56KADCSC.cjs} +39 -8
- package/dist/chunk-56KADCSC.cjs.map +1 -0
- package/dist/{chunk-CGOCVSWC.js → chunk-5CGWJW3U.js} +3 -3
- package/dist/chunk-5IEMZTNA.js +107 -0
- package/dist/chunk-5IEMZTNA.js.map +1 -0
- package/dist/{chunk-VMM5PVOA.js → chunk-6OFHUEHR.js} +2 -2
- package/dist/{chunk-O4TKUBCF.cjs → chunk-7DB4UKU4.cjs} +3 -3
- package/dist/{chunk-O4TKUBCF.cjs.map → chunk-7DB4UKU4.cjs.map} +1 -1
- package/dist/{chunk-LUQH3SUU.cjs → chunk-A4GYP4G4.cjs} +62 -62
- package/dist/{chunk-LUQH3SUU.cjs.map → chunk-A4GYP4G4.cjs.map} +1 -1
- package/dist/{chunk-ABNK5QI2.js → chunk-AJYPIUQK.js} +2 -2
- package/dist/{chunk-UMVL776E.js → chunk-AYEDNFX7.js} +2 -2
- package/dist/chunk-CK7LADMK.js +232 -0
- package/dist/chunk-CK7LADMK.js.map +1 -0
- package/dist/{chunk-CBGH37CU.js → chunk-CRUAWSRK.js} +3 -3
- package/dist/{chunk-RJ26GRDB.js → chunk-DDWV6OTG.js} +8 -8
- package/dist/chunk-EFQPEQ43.js +45 -0
- package/dist/chunk-EFQPEQ43.js.map +1 -0
- package/dist/{chunk-2JA4FJJM.js → chunk-EYDAQBE7.js} +2 -2
- package/dist/{chunk-BK55EX56.js → chunk-FCAMCNBA.js} +4 -4
- package/dist/{chunk-5MBQW3KP.cjs → chunk-FE7463HF.cjs} +8 -8
- package/dist/{chunk-5MBQW3KP.cjs.map → chunk-FE7463HF.cjs.map} +1 -1
- package/dist/{chunk-VSWGRKTF.js → chunk-GJFS3GMY.js} +3 -3
- package/dist/{chunk-OOD35TZR.cjs → chunk-HFYDNNDB.cjs} +25 -25
- package/dist/{chunk-OOD35TZR.cjs.map → chunk-HFYDNNDB.cjs.map} +1 -1
- package/dist/chunk-HHLZQQNL.cjs +230 -0
- package/dist/chunk-HHLZQQNL.cjs.map +1 -0
- package/dist/{chunk-LMHDQWQM.js → chunk-HSDIWTFF.js} +2 -2
- package/dist/{chunk-B5F7B5NL.js → chunk-IOMH3NL4.js} +2 -2
- package/dist/{chunk-XSDVY4S6.js → chunk-KD6SFQFJ.js} +6 -6
- package/dist/{chunk-YLC25Z64.js → chunk-LGCD3V22.js} +3 -3
- package/dist/{chunk-E3G3JTXW.js → chunk-LUMA2HI3.js} +2 -2
- package/dist/{chunk-E3G3JTXW.js.map → chunk-LUMA2HI3.js.map} +1 -1
- package/dist/{chunk-BX23BOYN.js → chunk-N32TKLQ6.js} +5 -5
- package/dist/chunk-NOYOXAOE.js +230 -0
- package/dist/chunk-NOYOXAOE.js.map +1 -0
- package/dist/{chunk-A6YD5KUQ.js → chunk-NSGKHLS6.js} +104 -50
- package/dist/chunk-NSGKHLS6.js.map +1 -0
- package/dist/{chunk-MHLTXTP2.js → chunk-NT5EVBAI.js} +11 -11
- package/dist/{chunk-NQL7NCSE.js → chunk-PNAMF4RV.js} +2 -2
- package/dist/{chunk-G7QVY67O.js → chunk-PS7U47KE.js} +2 -2
- package/dist/{chunk-G7QVY67O.js.map → chunk-PS7U47KE.js.map} +1 -1
- package/dist/chunk-Q6U3VJIE.js +106 -0
- package/dist/chunk-Q6U3VJIE.js.map +1 -0
- package/dist/{chunk-S6H3ZPYQ.js → chunk-Q7CKFUYR.js} +38 -7
- package/dist/chunk-Q7CKFUYR.js.map +1 -0
- package/dist/{chunk-JDGPQVTX.js → chunk-R2EIJJ34.js} +2 -2
- package/dist/{chunk-ZH322FQG.js → chunk-RI5NWSUQ.js} +122 -35
- package/dist/chunk-RI5NWSUQ.js.map +1 -0
- package/dist/{chunk-HMHIF6QF.cjs → chunk-TOUR2SPI.cjs} +2 -2
- package/dist/{chunk-HMHIF6QF.cjs.map → chunk-TOUR2SPI.cjs.map} +1 -1
- package/dist/chunk-TV7B6DJQ.cjs +43 -0
- package/dist/chunk-TV7B6DJQ.cjs.map +1 -0
- package/dist/{chunk-AUGOG3KY.js → chunk-TXX5GDY3.js} +2 -2
- package/dist/{chunk-BUB3O7LS.js → chunk-UI4NGY4W.js} +4 -4
- package/dist/{chunk-32NWTEPA.js → chunk-UPBZ2BVU.js} +3 -3
- package/dist/{chunk-P4FHTYVX.js → chunk-VFSDX4GE.js} +2 -2
- package/dist/{chunk-376JPHHC.js → chunk-VOW7QLFA.js} +9 -9
- package/dist/{chunk-S366ICXS.js → chunk-VREPDKMC.js} +2 -2
- package/dist/chunk-VRUIVEGD.cjs +106 -0
- package/dist/chunk-VRUIVEGD.cjs.map +1 -0
- package/dist/{chunk-64QDDZO3.js → chunk-VZUIOYCU.js} +17 -14
- package/dist/chunk-VZUIOYCU.js.map +1 -0
- package/dist/{chunk-AAXWKG3C.js → chunk-WSNU2OAY.js} +2 -2
- package/dist/chunk-XJW45ICD.js +43 -0
- package/dist/chunk-XJW45ICD.js.map +1 -0
- package/dist/{chunk-ROYGVYLL.cjs → chunk-XKT4J6AG.cjs} +88 -88
- package/dist/{chunk-ROYGVYLL.cjs.map → chunk-XKT4J6AG.cjs.map} +1 -1
- package/dist/{chunk-M4QZCXT4.js → chunk-YGCR55V2.js} +8 -8
- package/dist/{chunk-MDDQRVA4.cjs → chunk-ZYSH465A.cjs} +104 -104
- package/dist/{chunk-MDDQRVA4.cjs.map → chunk-ZYSH465A.cjs.map} +1 -1
- package/dist/chunks-EVKTSUGA.js +11 -0
- package/dist/cli.js +50 -48
- package/dist/cli.js.map +1 -1
- package/dist/{detect-ALS4RBCY.js → detect-EBGOXZ66.js} +8 -4
- package/dist/{detect-LCFITDPT.js → detect-H2VUHKJS.js} +8 -4
- package/dist/detect-W6JF4PI4.cjs +31 -0
- package/dist/detect-W6JF4PI4.cjs.map +1 -0
- package/dist/{formula-AORKEC66.cjs → formula-CXRJQ5FS.cjs} +9 -9
- package/dist/{formula-AORKEC66.cjs.map → formula-CXRJQ5FS.cjs.map} +1 -1
- package/dist/{formula-IP2SLKUY.js → formula-JZZKJXHR.js} +3 -3
- package/dist/{formula-7Q6CKLK2.js → formula-TE5U7IPG.js} +4 -4
- package/dist/generator-CKTUVW7V.js +11 -0
- package/dist/generator-EVRLN745.cjs +12 -0
- package/dist/{generator-BPEAWT2P.cjs.map → generator-EVRLN745.cjs.map} +1 -1
- package/dist/generator-Q5M3CZPW.js +18 -0
- package/dist/{hancom-J2SWJYM6.cjs → hancom-GYOFLPQZ.cjs} +5 -5
- package/dist/{hancom-J2SWJYM6.cjs.map → hancom-GYOFLPQZ.cjs.map} +1 -1
- package/dist/{hancom-P34JL3HX.js → hancom-JHPB6VOJ.js} +2 -2
- package/dist/{hancom-DVWCKSEN.js → hancom-UFNCFHMZ.js} +2 -2
- package/dist/{image-ocr-7EOTOS42.js → image-ocr-CYVL5C2B.js} +96 -26
- package/dist/image-ocr-CYVL5C2B.js.map +1 -0
- package/dist/{image-ocr-5RBEPJPK.js → image-ocr-YPZTKLHR.js} +93 -23
- package/dist/image-ocr-YPZTKLHR.js.map +1 -0
- package/dist/image-ocr-YYC2JENT.cjs +284 -0
- package/dist/image-ocr-YYC2JENT.cjs.map +1 -0
- package/dist/index.cjs +1223 -1166
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +5 -4
- package/dist/index.d.ts +5 -4
- package/dist/index.js +102 -45
- package/dist/index.js.map +1 -1
- package/dist/mcp.js +43 -41
- package/dist/mcp.js.map +1 -1
- package/dist/memo-FOTH3KQZ.js +17 -0
- package/dist/{model-bundle-7YL3PW4N.js → model-bundle-PJXVN44L.js} +5 -5
- package/dist/{models-ZXDUWX64.js → models-GGI6Z7WG.js} +5 -5
- package/dist/{parse-worker-v2-SGBIWVYJ.js → parse-worker-v2-22KSHQGB.js} +26 -24
- package/dist/{parse-worker-v2-SGBIWVYJ.js.map → parse-worker-v2-22KSHQGB.js.map} +1 -1
- package/dist/{parser-HZANYZZA.js → parser-7WVQ4BOA.js} +20 -18
- package/dist/{parser-HZANYZZA.js.map → parser-7WVQ4BOA.js.map} +1 -1
- package/dist/{parser-RYPZ245J.js → parser-M3T5WYXG.js} +17 -15
- package/dist/{parser-RYPZ245J.js.map → parser-M3T5WYXG.js.map} +1 -1
- package/dist/{parser-6M4IIKSU.cjs → parser-YJYGGUJP.cjs} +172 -170
- package/dist/parser-YJYGGUJP.cjs.map +1 -0
- package/dist/{pdf-ocr-J5BIUOOQ.js → pdf-ocr-T7XAXRHM.js} +6 -6
- package/dist/pdf-ocr-TBGICSC2.cjs +43 -0
- package/dist/{pdf-ocr-26AWXUHX.cjs.map → pdf-ocr-TBGICSC2.cjs.map} +1 -1
- package/dist/{pdf-ocr-VMB4NOXR.js → pdf-ocr-ZS6UGPZE.js} +9 -9
- package/dist/{profile-io-F6WUV5PU.js → profile-io-BRKSGV5H.js} +3 -3
- package/dist/{rasterize-AFUYHCSP.js → rasterize-NE7ODEL3.js} +3 -3
- package/dist/{redact-doc-UKYOAVBS.js → redact-doc-QMKBSH77.js} +25 -23
- package/dist/{redact-doc-UKYOAVBS.js.map → redact-doc-QMKBSH77.js.map} +1 -1
- package/dist/{render-VRZS47LX.js → render-YUUT36B3.js} +14 -14
- package/dist/{rewrite-fallback-PNSM4XRC.js → rewrite-fallback-VMIWMLXI.js} +15 -15
- package/dist/seal-WH555ZEQ.js +16 -0
- package/dist/{setup-VV6ERJGY.js → setup-EINQOQZN.js} +3 -3
- package/dist/to-hwpx-4VONWOHX.js +21 -0
- package/dist/to-hwpx-FL6MGYNQ.cjs +16 -0
- package/dist/{to-hwpx-3OWX37Q4.cjs.map → to-hwpx-FL6MGYNQ.cjs.map} +1 -1
- package/dist/{to-hwpx-YYMXNCCW.js → to-hwpx-RGSKEFZO.js} +5 -5
- package/dist/visual-TROK2J5W.js +40 -0
- package/dist/{watch-BTAIN7LZ.js → watch-LNCWW6C5.js} +26 -24
- package/dist/{watch-BTAIN7LZ.js.map → watch-LNCWW6C5.js.map} +1 -1
- package/package.json +6 -1
- package/dist/chunk-64QDDZO3.js.map +0 -1
- package/dist/chunk-6NZ32OTX.cjs +0 -149
- package/dist/chunk-6NZ32OTX.cjs.map +0 -1
- package/dist/chunk-A6YD5KUQ.js.map +0 -1
- package/dist/chunk-ARVHYL3V.cjs.map +0 -1
- package/dist/chunk-FU6ZDWCI.js +0 -151
- package/dist/chunk-FU6ZDWCI.js.map +0 -1
- package/dist/chunk-GHHVT4Q5.js.map +0 -1
- package/dist/chunk-JY4YMR6F.js.map +0 -1
- package/dist/chunk-QLUFTCAE.cjs.map +0 -1
- package/dist/chunk-S6H3ZPYQ.js.map +0 -1
- package/dist/chunk-UJELMNOU.js +0 -149
- package/dist/chunk-UJELMNOU.js.map +0 -1
- package/dist/chunk-ZH322FQG.js.map +0 -1
- package/dist/chunks-7XYOWREB.js +0 -11
- package/dist/detect-V75ERMYL.cjs +0 -27
- package/dist/detect-V75ERMYL.cjs.map +0 -1
- package/dist/generator-BPEAWT2P.cjs +0 -12
- package/dist/generator-NLWOHWUW.js +0 -18
- package/dist/generator-VBJWJI3E.js +0 -11
- package/dist/image-ocr-3CJ4KVOT.cjs +0 -214
- package/dist/image-ocr-3CJ4KVOT.cjs.map +0 -1
- package/dist/image-ocr-5RBEPJPK.js.map +0 -1
- package/dist/image-ocr-7EOTOS42.js.map +0 -1
- package/dist/memo-ARHG3OC5.js +0 -17
- package/dist/parser-6M4IIKSU.cjs.map +0 -1
- package/dist/pdf-ocr-26AWXUHX.cjs +0 -43
- package/dist/seal-CJOUVTMN.js +0 -16
- package/dist/to-hwpx-3OWX37Q4.cjs +0 -16
- package/dist/to-hwpx-WBMWA54L.js +0 -21
- package/dist/visual-YY2BPPCJ.js +0 -38
- /package/dist/{-CNXSUEGZ.js.map → -U7FV47XK.js.map} +0 -0
- /package/dist/{chunk-S6K222FM.js.map → chunk-2HHE3D4S.js.map} +0 -0
- /package/dist/{chunk-IV6UP7MO.js.map → chunk-2SMYX3L4.js.map} +0 -0
- /package/dist/{chunk-X4HNVXJI.js.map → chunk-2ZZCE4EM.js.map} +0 -0
- /package/dist/{chunk-TTIJTR5Z.js.map → chunk-3PTQBVDC.js.map} +0 -0
- /package/dist/{chunk-CGOCVSWC.js.map → chunk-5CGWJW3U.js.map} +0 -0
- /package/dist/{chunk-VMM5PVOA.js.map → chunk-6OFHUEHR.js.map} +0 -0
- /package/dist/{chunk-ABNK5QI2.js.map → chunk-AJYPIUQK.js.map} +0 -0
- /package/dist/{chunk-UMVL776E.js.map → chunk-AYEDNFX7.js.map} +0 -0
- /package/dist/{chunk-CBGH37CU.js.map → chunk-CRUAWSRK.js.map} +0 -0
- /package/dist/{chunk-RJ26GRDB.js.map → chunk-DDWV6OTG.js.map} +0 -0
- /package/dist/{chunk-2JA4FJJM.js.map → chunk-EYDAQBE7.js.map} +0 -0
- /package/dist/{chunk-BK55EX56.js.map → chunk-FCAMCNBA.js.map} +0 -0
- /package/dist/{chunk-VSWGRKTF.js.map → chunk-GJFS3GMY.js.map} +0 -0
- /package/dist/{chunk-LMHDQWQM.js.map → chunk-HSDIWTFF.js.map} +0 -0
- /package/dist/{chunk-B5F7B5NL.js.map → chunk-IOMH3NL4.js.map} +0 -0
- /package/dist/{chunk-XSDVY4S6.js.map → chunk-KD6SFQFJ.js.map} +0 -0
- /package/dist/{chunk-YLC25Z64.js.map → chunk-LGCD3V22.js.map} +0 -0
- /package/dist/{chunk-BX23BOYN.js.map → chunk-N32TKLQ6.js.map} +0 -0
- /package/dist/{chunk-MHLTXTP2.js.map → chunk-NT5EVBAI.js.map} +0 -0
- /package/dist/{chunk-NQL7NCSE.js.map → chunk-PNAMF4RV.js.map} +0 -0
- /package/dist/{chunk-JDGPQVTX.js.map → chunk-R2EIJJ34.js.map} +0 -0
- /package/dist/{chunk-AUGOG3KY.js.map → chunk-TXX5GDY3.js.map} +0 -0
- /package/dist/{chunk-BUB3O7LS.js.map → chunk-UI4NGY4W.js.map} +0 -0
- /package/dist/{chunk-32NWTEPA.js.map → chunk-UPBZ2BVU.js.map} +0 -0
- /package/dist/{chunk-P4FHTYVX.js.map → chunk-VFSDX4GE.js.map} +0 -0
- /package/dist/{chunk-376JPHHC.js.map → chunk-VOW7QLFA.js.map} +0 -0
- /package/dist/{chunk-S366ICXS.js.map → chunk-VREPDKMC.js.map} +0 -0
- /package/dist/{chunk-AAXWKG3C.js.map → chunk-WSNU2OAY.js.map} +0 -0
- /package/dist/{chunk-M4QZCXT4.js.map → chunk-YGCR55V2.js.map} +0 -0
- /package/dist/{chunks-7XYOWREB.js.map → chunks-EVKTSUGA.js.map} +0 -0
- /package/dist/{detect-ALS4RBCY.js.map → detect-EBGOXZ66.js.map} +0 -0
- /package/dist/{detect-LCFITDPT.js.map → detect-H2VUHKJS.js.map} +0 -0
- /package/dist/{formula-IP2SLKUY.js.map → formula-JZZKJXHR.js.map} +0 -0
- /package/dist/{formula-7Q6CKLK2.js.map → formula-TE5U7IPG.js.map} +0 -0
- /package/dist/{generator-NLWOHWUW.js.map → generator-CKTUVW7V.js.map} +0 -0
- /package/dist/{generator-VBJWJI3E.js.map → generator-Q5M3CZPW.js.map} +0 -0
- /package/dist/{hancom-P34JL3HX.js.map → hancom-JHPB6VOJ.js.map} +0 -0
- /package/dist/{hancom-DVWCKSEN.js.map → hancom-UFNCFHMZ.js.map} +0 -0
- /package/dist/{memo-ARHG3OC5.js.map → memo-FOTH3KQZ.js.map} +0 -0
- /package/dist/{model-bundle-7YL3PW4N.js.map → model-bundle-PJXVN44L.js.map} +0 -0
- /package/dist/{models-ZXDUWX64.js.map → models-GGI6Z7WG.js.map} +0 -0
- /package/dist/{pdf-ocr-J5BIUOOQ.js.map → pdf-ocr-T7XAXRHM.js.map} +0 -0
- /package/dist/{pdf-ocr-VMB4NOXR.js.map → pdf-ocr-ZS6UGPZE.js.map} +0 -0
- /package/dist/{profile-io-F6WUV5PU.js.map → profile-io-BRKSGV5H.js.map} +0 -0
- /package/dist/{rasterize-AFUYHCSP.js.map → rasterize-NE7ODEL3.js.map} +0 -0
- /package/dist/{render-VRZS47LX.js.map → render-YUUT36B3.js.map} +0 -0
- /package/dist/{rewrite-fallback-PNSM4XRC.js.map → rewrite-fallback-VMIWMLXI.js.map} +0 -0
- /package/dist/{seal-CJOUVTMN.js.map → seal-WH555ZEQ.js.map} +0 -0
- /package/dist/{setup-VV6ERJGY.js.map → setup-EINQOQZN.js.map} +0 -0
- /package/dist/{to-hwpx-WBMWA54L.js.map → to-hwpx-4VONWOHX.js.map} +0 -0
- /package/dist/{to-hwpx-YYMXNCCW.js.map → to-hwpx-RGSKEFZO.js.map} +0 -0
- /package/dist/{visual-YY2BPPCJ.js.map → visual-TROK2J5W.js.map} +0 -0
|
@@ -40,7 +40,7 @@ import {
|
|
|
40
40
|
tidyScriptTags,
|
|
41
41
|
visibleText,
|
|
42
42
|
wrapScript
|
|
43
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-LUMA2HI3.js";
|
|
44
44
|
import {
|
|
45
45
|
BARE_URL,
|
|
46
46
|
KordocError,
|
|
@@ -57,7 +57,7 @@ import {
|
|
|
57
57
|
stripDtd,
|
|
58
58
|
unescapeHtml,
|
|
59
59
|
unzipLimitBytes
|
|
60
|
-
} from "./chunk-
|
|
60
|
+
} from "./chunk-HSDIWTFF.js";
|
|
61
61
|
|
|
62
62
|
// src/hwpx/generator.ts
|
|
63
63
|
import JSZip2 from "jszip";
|
|
@@ -23931,4 +23931,4 @@ export {
|
|
|
23931
23931
|
markdownToHwpxFromTemplate,
|
|
23932
23932
|
markdownToHwpx
|
|
23933
23933
|
};
|
|
23934
|
-
//# sourceMappingURL=chunk-
|
|
23934
|
+
//# sourceMappingURL=chunk-GJFS3GMY.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; } var _class;
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunk7DB4UKU4cjs = require('./chunk-7DB4UKU4.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
@@ -9,11 +9,11 @@ var _chunkO4TKUBCFcjs = require('./chunk-O4TKUBCF.cjs');
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _chunkFE7463HFcjs = require('./chunk-FE7463HF.cjs');
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _chunkTOUR2SPIcjs = require('./chunk-TOUR2SPI.cjs');
|
|
17
17
|
|
|
18
18
|
// src/ocr/models.ts
|
|
19
19
|
var _path = require('path');
|
|
@@ -65,7 +65,7 @@ var OCR_REC_DICT = {
|
|
|
65
65
|
sizeMb: 1
|
|
66
66
|
};
|
|
67
67
|
function getOcrModelsDir() {
|
|
68
|
-
return
|
|
68
|
+
return _chunk7DB4UKU4cjs.getModelsDir.call(void 0, "ppocr");
|
|
69
69
|
}
|
|
70
70
|
var DEFAULT_OCR_MODELS = Object.freeze({
|
|
71
71
|
det: { spec: OCR_DET_MODEL },
|
|
@@ -110,7 +110,7 @@ async function ensureOcrModelsFor(sel, onProgress) {
|
|
|
110
110
|
if (!stamp || verifiedInProcess.get(path) !== stamp) todo.push(s.spec);
|
|
111
111
|
}
|
|
112
112
|
if (!todo.length) return;
|
|
113
|
-
await
|
|
113
|
+
await _chunk7DB4UKU4cjs.ensureModelsIn.call(void 0, dir, todo, onProgress);
|
|
114
114
|
for (const spec of todo) {
|
|
115
115
|
const path = _path.join.call(void 0, dir, spec.filename), stamp = await fileStamp(path);
|
|
116
116
|
if (stamp) verifiedInProcess.set(path, stamp);
|
|
@@ -3414,16 +3414,16 @@ function recordOpenEndCellEdges(grid, cells, horizontals) {
|
|
|
3414
3414
|
}
|
|
3415
3415
|
function takeClipCellEdges(from, to) {
|
|
3416
3416
|
const e = CLIP_CELL_EDGES.get(from);
|
|
3417
|
-
if (e)
|
|
3417
|
+
if (e) _chunkFE7463HFcjs.CELL_EDGES.set(to, e);
|
|
3418
3418
|
}
|
|
3419
3419
|
function hasOpenCellSeam(a, b) {
|
|
3420
|
-
const u =
|
|
3420
|
+
const u = _chunkFE7463HFcjs.CELL_EDGES.get(a), d = _chunkFE7463HFcjs.CELL_EDGES.get(b);
|
|
3421
3421
|
return !!u && !!d && u.t && !u.b && !d.t && d.b && u.l && u.r && d.l && d.r;
|
|
3422
3422
|
}
|
|
3423
3423
|
function joinCellEdges(a, b) {
|
|
3424
|
-
const u =
|
|
3424
|
+
const u = _chunkFE7463HFcjs.CELL_EDGES.get(a), d = _chunkFE7463HFcjs.CELL_EDGES.get(b);
|
|
3425
3425
|
if (!u || !d) return;
|
|
3426
|
-
|
|
3426
|
+
_chunkFE7463HFcjs.CELL_EDGES.set(a, { t: u.t, b: d.b, l: u.l || d.l, r: u.r || d.r });
|
|
3427
3427
|
}
|
|
3428
3428
|
|
|
3429
3429
|
// src/pdf/cell-extract.ts
|
|
@@ -3608,7 +3608,7 @@ function tagScripts(text, lines) {
|
|
|
3608
3608
|
const [s, e, kind] = marks[m];
|
|
3609
3609
|
out = out.slice(0, s) + `<${kind}>` + out.slice(s, e) + `</${kind}>` + out.slice(e);
|
|
3610
3610
|
}
|
|
3611
|
-
return
|
|
3611
|
+
return _chunkFE7463HFcjs.tidyScriptTags.call(void 0, out);
|
|
3612
3612
|
}
|
|
3613
3613
|
|
|
3614
3614
|
// src/pdf/line-wrap.ts
|
|
@@ -7166,9 +7166,9 @@ function detectHeadings(blocks, medianFontSize) {
|
|
|
7166
7166
|
if (/^\d+$/.test(text) && !isChapterNumber(block, blocks[bi + 1], medianFontSize)) continue;
|
|
7167
7167
|
const ratio = block.style.fontSize / medianFontSize;
|
|
7168
7168
|
let level = 0;
|
|
7169
|
-
if (ratio >=
|
|
7170
|
-
else if (ratio >=
|
|
7171
|
-
else if (ratio >=
|
|
7169
|
+
if (ratio >= _chunkFE7463HFcjs.HEADING_RATIO_H1) level = 1;
|
|
7170
|
+
else if (ratio >= _chunkFE7463HFcjs.HEADING_RATIO_H2) level = 2;
|
|
7171
|
+
else if (ratio >= _chunkFE7463HFcjs.HEADING_RATIO_H3) level = 3;
|
|
7172
7172
|
if (level > 0) {
|
|
7173
7173
|
block.type = "heading";
|
|
7174
7174
|
block.level = level;
|
|
@@ -7181,7 +7181,7 @@ function isChapterNumber(block, next, medianFontSize) {
|
|
|
7181
7181
|
const nextSize = _nullishCoalesce(_optionalChain([next, 'optionalAccess', _218 => _218.style, 'optionalAccess', _219 => _219.fontSize]), () => ( 0));
|
|
7182
7182
|
const text = _nullishCoalesce(_optionalChain([next, 'optionalAccess', _220 => _220.text, 'optionalAccess', _221 => _221.trim, 'call', _222 => _222()]), () => ( ""));
|
|
7183
7183
|
const a = block.bbox, b = _optionalChain([next, 'optionalAccess', _223 => _223.bbox]);
|
|
7184
|
-
return /^\d{1,2}$/.test(_nullishCoalesce(_optionalChain([block, 'access', _224 => _224.text, 'optionalAccess', _225 => _225.trim, 'call', _226 => _226()]), () => ( ""))) && size >= medianFontSize * 2.5 && !!next && (next.type === "paragraph" || next.type === "heading") && next.pageNumber === block.pageNumber && nextSize >= medianFontSize *
|
|
7184
|
+
return /^\d{1,2}$/.test(_nullishCoalesce(_optionalChain([block, 'access', _224 => _224.text, 'optionalAccess', _225 => _225.trim, 'call', _226 => _226()]), () => ( ""))) && size >= medianFontSize * 2.5 && !!next && (next.type === "paragraph" || next.type === "heading") && next.pageNumber === block.pageNumber && nextSize >= medianFontSize * _chunkFE7463HFcjs.HEADING_RATIO_H1 && text.length > 0 && text.length <= 80 && !/^[\d\s.]+$/.test(text) && !!a && !!b && a.y > b.y && a.y - (b.y + b.height) <= size * 2;
|
|
7185
7185
|
}
|
|
7186
7186
|
function mergeStackedHeadingLines(blocks, medianFontSize) {
|
|
7187
7187
|
for (let i = 0; i < blocks.length - 1; ) {
|
|
@@ -8954,16 +8954,16 @@ function isProseSpread(items) {
|
|
|
8954
8954
|
for (let i = 1; i < sorted.length; i++) {
|
|
8955
8955
|
gaps.push(sorted[i].x - (sorted[i - 1].x + sorted[i - 1].w));
|
|
8956
8956
|
}
|
|
8957
|
-
const maxGap =
|
|
8957
|
+
const maxGap = _chunkTOUR2SPIcjs.safeMax.call(void 0, gaps);
|
|
8958
8958
|
const avgLen = items.reduce((s, i) => s + i.text.length, 0) / items.length;
|
|
8959
8959
|
if (items.length >= 4 && maxGap < 40 && avgLen < 5) return true;
|
|
8960
|
-
const minGap =
|
|
8960
|
+
const minGap = _chunkTOUR2SPIcjs.safeMin.call(void 0, gaps);
|
|
8961
8961
|
return minGap > 0 && maxGap - minGap <= Math.max(2, maxGap * 0.15) && (items.filter((i) => /^\P{L}*\p{Ll}/u.test(i.text)).length * 2 >= items.length || items.some((i) => /\p{L}[,.;:]["”’)]?$/u.test(i.text)));
|
|
8962
8962
|
}
|
|
8963
8963
|
function detectColumns(yLines) {
|
|
8964
8964
|
const allItems = yLines.flat();
|
|
8965
8965
|
if (allItems.length === 0) return null;
|
|
8966
|
-
const pageWidth =
|
|
8966
|
+
const pageWidth = _chunkTOUR2SPIcjs.safeMax.call(void 0, allItems.map((i) => i.x + i.w)) - _chunkTOUR2SPIcjs.safeMin.call(void 0, allItems.map((i) => i.x));
|
|
8967
8967
|
if (pageWidth < 100) return null;
|
|
8968
8968
|
let bigoLineIdx = -1;
|
|
8969
8969
|
for (let i = 0; i < yLines.length; i++) {
|
|
@@ -9361,13 +9361,13 @@ function partTex(group) {
|
|
|
9361
9361
|
const base = Math.min(...g.filter((i) => i.fontSize >= size * SCRIPT_SIZE_RATIO).map((i) => i.y));
|
|
9362
9362
|
let s = "", run = "";
|
|
9363
9363
|
const flush = () => {
|
|
9364
|
-
if (run) s +=
|
|
9364
|
+
if (run) s += _chunkFE7463HFcjs.toTex.call(void 0, run);
|
|
9365
9365
|
run = "";
|
|
9366
9366
|
};
|
|
9367
9367
|
g.forEach((it, k) => {
|
|
9368
9368
|
if (it.fontSize < size * SCRIPT_SIZE_RATIO && it.y - base >= size * SCRIPT_RISE_EM) {
|
|
9369
9369
|
flush();
|
|
9370
|
-
s += `^{${
|
|
9370
|
+
s += `^{${_chunkFE7463HFcjs.toTex.call(void 0, it.text)}}`;
|
|
9371
9371
|
return;
|
|
9372
9372
|
}
|
|
9373
9373
|
if (k && it.x - (g[k - 1].x + g[k - 1].w) > spaceGapThreshold(it.fontSize)) run += " ";
|
|
@@ -9540,7 +9540,7 @@ function rebuildUnitLine(items, grid) {
|
|
|
9540
9540
|
function prependUnitRow(cells, cols, line, usedItems) {
|
|
9541
9541
|
const text = cleanCellText(line.map((item) => item.text).join(""));
|
|
9542
9542
|
cells.unshift(Array.from({ length: cols }, (_, c) => ({ text: c === 0 ? text : "", colSpan: c === 0 ? cols : 1, rowSpan: 1 })));
|
|
9543
|
-
for (const cell of cells[0])
|
|
9543
|
+
for (const cell of cells[0]) _chunkFE7463HFcjs.CELL_EDGES.set(cell, NO_EDGES);
|
|
9544
9544
|
for (const item of line) usedItems.add(item);
|
|
9545
9545
|
}
|
|
9546
9546
|
function attachUnitRow(items, grid, cells, cols, usedItems) {
|
|
@@ -10122,7 +10122,7 @@ function recordFrameTitle(table, source, pageNum) {
|
|
|
10122
10122
|
const [label, spacer, title] = cells;
|
|
10123
10123
|
if (!/^(?:붙임|별첨|첨부|부록)\s*\d{1,3}$/.test(label.text.trim()) || spacer.text.trim() || !title.text.trim()) return;
|
|
10124
10124
|
if (cells.some((c) => {
|
|
10125
|
-
const e =
|
|
10125
|
+
const e = _chunkFE7463HFcjs.CELL_EDGES.get(c);
|
|
10126
10126
|
return !e || e.t || e.b || e.l || e.r;
|
|
10127
10127
|
})) return;
|
|
10128
10128
|
const xs = TABLE_COLXS.get(table), style = dominantStyle(source), fs = _nullishCoalesce(_optionalChain([style, 'optionalAccess', _418 => _418.fontSize]), () => ( 0));
|
|
@@ -10886,7 +10886,7 @@ function extractBlocksWithGrids(items, pageNum, pageWidth, pageHeight, grids, ho
|
|
|
10886
10886
|
groupSizes.push(1);
|
|
10887
10887
|
}
|
|
10888
10888
|
const allY = remaining.map((i) => i.y);
|
|
10889
|
-
const pageH =
|
|
10889
|
+
const pageH = _chunkTOUR2SPIcjs.safeMax.call(void 0, allY) - _chunkTOUR2SPIcjs.safeMin.call(void 0, allY);
|
|
10890
10890
|
const gapThreshold = Math.max(15, pageH * 0.03);
|
|
10891
10891
|
const sides = frameColumnTextBands(remaining, spanning, gx);
|
|
10892
10892
|
const textBlocks = [];
|
|
@@ -10902,7 +10902,7 @@ function extractBlocksWithGrids(items, pageNum, pageWidth, pageHeight, grids, ho
|
|
|
10902
10902
|
finalTextBlocks.push(...detectListBlocks(textBlocks));
|
|
10903
10903
|
} else {
|
|
10904
10904
|
const allY = remaining.map((i) => i.y);
|
|
10905
|
-
const pageH =
|
|
10905
|
+
const pageH = _chunkTOUR2SPIcjs.safeMax.call(void 0, allY) - _chunkTOUR2SPIcjs.safeMin.call(void 0, allY);
|
|
10906
10906
|
const gapThreshold = Math.max(15, pageH * 0.03);
|
|
10907
10907
|
const groups = xyCutOrder(remaining, gapThreshold, 0, void 0, 0, lex);
|
|
10908
10908
|
const textBlocks = [];
|
|
@@ -11264,7 +11264,7 @@ function extractPageBlocksFallback(items, pageNum, fullPage = false, detectTable
|
|
|
11264
11264
|
blocks.push(...columnTextToBlocks(tableText, pageNum, bbox, dominantStyle(items)));
|
|
11265
11265
|
} else {
|
|
11266
11266
|
const allY = items.map((i) => i.y);
|
|
11267
|
-
const pageHeight =
|
|
11267
|
+
const pageHeight = _chunkTOUR2SPIcjs.safeMax.call(void 0, allY) - _chunkTOUR2SPIcjs.safeMin.call(void 0, allY);
|
|
11268
11268
|
const gapThreshold = Math.max(15, pageHeight * 0.03);
|
|
11269
11269
|
const orderedGroups = proseCutX !== null ? splitTwoColumnProse(items, proseCutX) : xyCutOrder(items, gapThreshold, 0, void 0, minGap, lex);
|
|
11270
11270
|
for (const group of orderedGroups) {
|
|
@@ -11534,4 +11534,4 @@ function rowParagraphs(block) {
|
|
|
11534
11534
|
|
|
11535
11535
|
|
|
11536
11536
|
exports.DEFAULT_OCR_MODELS = DEFAULT_OCR_MODELS; exports.resolveOcrModels = resolveOcrModels; exports.handwritingFallbackModels = handwritingFallbackModels; exports.ocrSelectionKey = ocrSelectionKey; exports.ocrSourcePath = ocrSourcePath; exports.ensureOcrModelsFor = ensureOcrModelsFor; exports.ocrModelsCached = ocrModelsCached; exports.parseCharacterDict = parseCharacterDict; exports.grayCrop = grayCrop; exports.inkStats = inkStats; exports.splitRowBands = splitRowBands; exports.leadingTriangle = leadingTriangle; exports.arrowGlyph = arrowGlyph; exports.leaderRuns = leaderRuns; exports.inkBounds = inkBounds; exports.bracketFeatures = bracketFeatures; exports.slantedPair = slantedPair; exports.romanStems = romanStems; exports.circledAt = circledAt; exports.ringBoxes = ringBoxes; exports.quoteHead = quoteHead; exports.edgeTrim = edgeTrim; exports.tallInkCount = tallInkCount; exports.gapGlyphs = gapGlyphs; exports.ringBullet = ringBullet; exports.dashRatio = dashRatio; exports.leadingRing = leadingRing; exports.discAt = discAt; exports.serifOne = serifOne; exports.starRun = starRun; exports.bracketShape = bracketShape; exports.leadingBullet = leadingBullet; exports.stackedGlyphBands = stackedGlyphBands; exports.rememberOcrTextGaps = rememberOcrTextGaps; exports.copyOcrTextGaps = copyOcrTextGaps; exports.findOcrTextGaps = findOcrTextGaps; exports.extractLines = extractLines; exports.extractImageRegions = extractImageRegions; exports.NO_EDGES = NO_EDGES; exports.hasOpenCellSeam = hasOpenCellSeam; exports.joinCellEdges = joinCellEdges; exports.filterHiddenText = filterHiddenText; exports.collapseEvenSpacing = collapseEvenSpacing; exports.computeBBox = computeBBox; exports.dominantStyle = dominantStyle; exports.normalizeItems = normalizeItems; exports.groupByY = groupByY; exports.mergeLineSimple = mergeLineSimple; exports.WrapLexicon = WrapLexicon; exports.startsNewItem = startsNewItem; exports.wrapJoiner = wrapJoiner; exports.joinPageBreakWraps = joinPageBreakWraps; exports.splitPageBreakWraps = splitPageBreakWraps; exports.latinSoftWrap = latinSoftWrap; exports.TOC_BLOCKS = TOC_BLOCKS; exports.computeMedianFontSizeFromFreq = computeMedianFontSizeFromFreq; exports.detectHeadings = detectHeadings; exports.mergeStackedHeadingLines = mergeStackedHeadingLines; exports.detectTypographyHeadings = detectTypographyHeadings; exports.detectDocumentStyleHeadings = detectDocumentStyleHeadings; exports.detectSiblingStyleHeadings = detectSiblingStyleHeadings; exports.detectRepeatedPageLabels = detectRepeatedPageLabels; exports.detectPageLeadHeadings = detectPageLeadHeadings; exports.refineDocumentStyleHeadings = refineDocumentStyleHeadings; exports.detectMarkerHeadings = detectMarkerHeadings; exports.detectTableCaptions = detectTableCaptions; exports.detectKoreanListBlocks = detectKoreanListBlocks; exports.removeHeaderFooterBlocks = removeHeaderFooterBlocks; exports.runningLinePatterns = runningLinePatterns; exports.stripAbsorbedRunningLines = stripAbsorbedRunningLines; exports.CLIP_TABLES = CLIP_TABLES; exports.FRAME_TITLE_BLOCKS = FRAME_TITLE_BLOCKS; exports.TABLE_COLXS = TABLE_COLXS; exports.TABLE_ROWYS = TABLE_ROWYS; exports.TABLE_TAIL = TABLE_TAIL; exports.PART_COLXS = PART_COLXS; exports.EMPTY_PARTS = EMPTY_PARTS; exports.IMAGE_CELLS = IMAGE_CELLS; exports.FILLER_CELLS = FILLER_CELLS; exports.CONT_PARTS = CONT_PARTS; exports.CELL_LINES = CELL_LINES; exports.ROW_RULES = ROW_RULES; exports.trimTrailingEmptyTableCols = trimTrailingEmptyTableCols; exports.restoreImageBullets = restoreImageBullets; exports.detectRightArrowRegions = detectRightArrowRegions; exports.removeSideTabs = removeSideTabs; exports.extractPageBlocksWithLines = extractPageBlocksWithLines; exports.UNRULED_REGION_TABLES = UNRULED_REGION_TABLES; exports.mergeOcrImageRegions = mergeOcrImageRegions;
|
|
11537
|
-
//# sourceMappingURL=chunk-
|
|
11537
|
+
//# sourceMappingURL=chunk-HFYDNNDB.cjs.map
|